cdn.piano.io Open in urlscan Pro
2606:4700::6810:2a41  Public Scan

URL: https://cdn.piano.io/api/tinypass.min.js
Submission: On August 19 via api from LU — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

"use strict";function _typeof(e){return _typeof="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},_typeof(e)}!function(){var e=Object.defineProperty;window.pnFullTPVersion=!0,"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},writable:!0,configurable:!0});var n=new WeakMap;function t(e,t){return n.get(e)&&n.get(e).get(t)}function r(e,n,r){if(void 0===n)throw new TypeError;var o=t(n,r);return o&&o.get(e)}function o(e,r,o,i){if(i&&!["string","symbol"].includes(_typeof(i)))throw new TypeError;(t(o,i)||function(e,t){var r=n.get(e)||new Map;n.set(e,r);var o=r.get(t)||new Map;return r.set(t,o),o}(o,i)).set(e,r)}function i(e,n,t){return r(e,n,t)?r(e,n,t):Object.getPrototypeOf(n)?i(e,Object.getPrototypeOf(n),t):void 0}var a,s,c={decorate:function(e,n,t,r){if(!Array.isArray(e)||0===e.length)throw new TypeError;return void 0!==t?function(e,n,t,r){return e.reverse().forEach((function(e){r=e(n,t,r)||r})),r}(e,n,t,r):"function"==typeof n?function(e,n){return e.reverse().forEach((function(e){var t=e(n);t&&(n=t)})),n}(e,n):void 0},defineMetadata:function(e,n,t,r){o(e,n,t,r)},getMetadata:function(e,n,t){return i(e,n,t)},getOwnMetadata:function(e,n,t){return r(e,n,t)},hasMetadata:function(e,n,t){return!!i(e,n,t)},hasOwnMetadata:function(e,n,t){return!!r(e,n,t)},metadata:function(e,n){return function(t,r){o(e,n,t,r)}}};window.Reflect=window.Reflect||{},Object.assign(window.Reflect,c),(s=a||(a={}))[s.Transient=0]="Transient",s[s.Singleton=1]="Singleton",s[s.ResolutionScoped=2]="ResolutionScoped",s[s.ContainerScoped=3]="ContainerScoped";var u=a,l=function(e,n){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])})(e,n)};function d(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}l(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var p=function(){return p=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},p.apply(this,arguments)};function f(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function m(e,n){return function(t,r){n(t,r,e)}}function v(e,n){if("object"==("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function g(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof t?e:new t((function(n){n(e)}))}(e.value).then(a,s)}c((r=r.apply(e,n||[])).next())}))}function h(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function y(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function _(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(w(arguments[n]));return e}function b(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)(r||!(o in n))&&(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}var k="injectionTokens";function C(e){return!!e.useClass}function I(e){return!!e.useFactory}var S=function(){function e(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return e.prototype.createProxy=function(e){var n,t=this,r=!1;return new Proxy({},this.createHandler((function(){return r||(n=e(t.wrap()),r=!0),n})))},e.prototype.createHandler=function(e){var n={};return this.reflectMethods.forEach((function(t){n[t]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];n[0]=e();var o=Reflect[t];return o.apply(void 0,_(n))}})),n},e}();function E(e){return"string"==typeof e||"symbol"==_typeof(e)}function P(e){return"object"==_typeof(e)&&"token"in e&&"transform"in e}function x(e){return!!e.useToken}function T(e){return null!=e.useValue}var A=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(e){return this.ensure(e),this._registryMap.get(e)},e.prototype.get=function(e){this.ensure(e);var n=this._registryMap.get(e);return n[n.length-1]||null},e.prototype.set=function(e,n){this.ensure(e),this._registryMap.get(e).push(n)},e.prototype.setAll=function(e,n){this._registryMap.set(e,n)},e.prototype.has=function(e){return this.ensure(e),this._registryMap.get(e).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(e){this._registryMap.has(e)||this._registryMap.set(e,[])},e}(),M=A,O=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return d(n,e),n}(M),N=O,R=function(){this.scopedResolutions=new Map};function L(e,n,t){var r=w(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1],o=function(e,n){return null===e?"at position #"+n:'"'+e.split(",")[n].trim()+'" at position #'+n}(void 0===r?null:r,n);return function(e,n,t){return void 0===t&&(t="    "),_([e],n.message.split("\n").map((function(e){return t+e}))).join("\n")}("Cannot inject the dependency "+o+' of "'+e.name+'" constructor. Reason:',t)}var D=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return d(n,e),n}(M),U=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return d(n,e),n}(M),j=function(){this.preResolution=new D,this.postResolution=new U},V=new Map,F=function(){function e(e){this.parent=e,this._registry=new N,this.interceptors=new j,this.disposed=!1,this.disposables=new Set}return e.prototype.register=function(e,n,t){var r;if(void 0===t&&(t={lifecycle:u.Transient}),this.ensureNotDisposed(),r=function(e){return C(e)||T(e)||x(e)||I(e)}(n)?n:{useClass:n},x(r))for(var o=[e],i=r;null!=i;){var a=i.useToken;if(o.includes(a))throw new Error("Token registration cycle detected! "+_(o,[a]).join(" -> "));o.push(a);var s=this._registry.get(a);i=s&&x(s.provider)?s.provider:null}if((t.lifecycle===u.Singleton||t.lifecycle==u.ContainerScoped||t.lifecycle==u.ResolutionScoped)&&(T(r)||I(r)))throw new Error('Cannot use lifecycle "'+u[t.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(e,{provider:r,options:t}),this},e.prototype.registerType=function(e,n){return this.ensureNotDisposed(),E(n)?this.register(e,{useToken:n}):this.register(e,{useClass:n})},e.prototype.registerInstance=function(e,n){return this.ensureNotDisposed(),this.register(e,{useValue:n})},e.prototype.registerSingleton=function(e,n){if(this.ensureNotDisposed(),E(e)){if(E(n))return this.register(e,{useToken:n},{lifecycle:u.Singleton});if(n)return this.register(e,{useClass:n},{lifecycle:u.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var t=e;return n&&!E(n)&&(t=n),this.register(e,{useClass:t},{lifecycle:u.Singleton})},e.prototype.resolve=function(e,n){void 0===n&&(n=new R),this.ensureNotDisposed();var t=this.getRegistration(e);if(!t&&E(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"Single"),t){var r=this.resolveRegistration(t,n);return this.executePostResolutionInterceptor(e,r,"Single"),r}if(function(e){return"function"==typeof e||e instanceof S}(e)){r=this.construct(e,n);return this.executePostResolutionInterceptor(e,r,"Single"),r}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(e,n){var t,r;if(this.interceptors.preResolution.has(e)){var o=[];try{for(var i=y(this.interceptors.preResolution.getAll(e)),a=i.next();!a.done;a=i.next()){var s=a.value;"Once"!=s.options.frequency&&o.push(s),s.callback(e,n)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}this.interceptors.preResolution.setAll(e,o)}},e.prototype.executePostResolutionInterceptor=function(e,n,t){var r,o;if(this.interceptors.postResolution.has(e)){var i=[];try{for(var a=y(this.interceptors.postResolution.getAll(e)),s=a.next();!s.done;s=a.next()){var c=s.value;"Once"!=c.options.frequency&&i.push(c),c.callback(e,n,t)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(e,i)}},e.prototype.resolveRegistration=function(e,n){if(this.ensureNotDisposed(),e.options.lifecycle===u.ResolutionScoped&&n.scopedResolutions.has(e))return n.scopedResolutions.get(e);var t,r=e.options.lifecycle===u.Singleton,o=e.options.lifecycle===u.ContainerScoped,i=r||o;return t=T(e.provider)?e.provider.useValue:x(e.provider)?i?e.instance||(e.instance=this.resolve(e.provider.useToken,n)):this.resolve(e.provider.useToken,n):C(e.provider)?i?e.instance||(e.instance=this.construct(e.provider.useClass,n)):this.construct(e.provider.useClass,n):I(e.provider)?e.provider.useFactory(this):this.construct(e.provider,n),e.options.lifecycle===u.ResolutionScoped&&n.scopedResolutions.set(e,t),t},e.prototype.resolveAll=function(e,n){var t=this;void 0===n&&(n=new R),this.ensureNotDisposed();var r=this.getAllRegistrations(e);if(!r&&E(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"All"),r){var o=r.map((function(e){return t.resolveRegistration(e,n)}));return this.executePostResolutionInterceptor(e,o,"All"),o}var i=[this.construct(e,n)];return this.executePostResolutionInterceptor(e,i,"All"),i},e.prototype.isRegistered=function(e,n){return void 0===n&&(n=!1),this.ensureNotDisposed(),this._registry.has(e)||n&&(this.parent||!1)&&this.parent.isRegistered(e,!0)},e.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var e,n;this.ensureNotDisposed();try{for(var t=y(this._registry.entries()),r=t.next();!r.done;r=t.next()){var o=w(r.value,2),i=o[0],a=o[1];this._registry.setAll(i,a.filter((function(e){return!T(e.provider)})).map((function(e){return e.instance=void 0,e})))}}catch(n){e={error:n}}finally{try{r&&!r.done&&(n=t.return)&&n.call(t)}finally{if(e)throw e.error}}},e.prototype.createChildContainer=function(){var n,t;this.ensureNotDisposed();var r=new e(this);try{for(var o=y(this._registry.entries()),i=o.next();!i.done;i=o.next()){var a=w(i.value,2),s=a[0],c=a[1];c.some((function(e){return e.options.lifecycle===u.ContainerScoped}))&&r._registry.setAll(s,c.map((function(e){return e.options.lifecycle===u.ContainerScoped?{provider:e.provider,options:e.options}:e})))}}catch(e){n={error:e}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(n)throw n.error}}return r},e.prototype.beforeResolution=function(e,n,t){void 0===t&&(t={frequency:"Always"}),this.interceptors.preResolution.set(e,{callback:n,options:t})},e.prototype.afterResolution=function(e,n,t){void 0===t&&(t={frequency:"Always"}),this.interceptors.postResolution.set(e,{callback:n,options:t})},e.prototype.dispose=function(){return g(this,void 0,void 0,(function(){var e;return h(this,(function(n){switch(n.label){case 0:return this.disposed=!0,e=[],this.disposables.forEach((function(n){var t=n.dispose();t&&e.push(t)})),[4,Promise.all(e)];case 1:return n.sent(),[2]}}))}))},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.getAllRegistrations=function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null},e.prototype.construct=function(e,n){var t=this;if(e instanceof S)return e.createProxy((function(e){return t.resolve(e,n)}));var r=function(){var r=V.get(e);if(!r||0===r.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'+e.name+'"')}var o=r.map(t.resolveParams(n,e));return new(e.bind.apply(e,_([void 0],o)))}();return function(e){return"function"==typeof e.dispose&&!(e.dispose.length>0)}(r)&&this.disposables.add(r),r},e.prototype.resolveParams=function(e,n){var t=this;return function(r,o){var i,a,s;try{return function(e){return"object"==_typeof(e)&&"token"in e&&"multiple"in e}(r)?P(r)?r.multiple?(i=t.resolve(r.transform)).transform.apply(i,_([t.resolveAll(r.token)],r.transformArgs)):(a=t.resolve(r.transform)).transform.apply(a,_([t.resolve(r.token,e)],r.transformArgs)):r.multiple?t.resolveAll(r.token):t.resolve(r.token,e):P(r)?(s=t.resolve(r.transform,e)).transform.apply(s,_([t.resolve(r.token,e)],r.transformArgs)):t.resolve(r,e)}catch(e){throw new Error(L(n,o,e))}}},e.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},e}(),B=new F;var q=function(e){return function(e,n){return function(t,r,o){var i=Reflect.getOwnMetadata(k,t)||{};i[o]=n?{token:e,transform:n.transformToken,transformArgs:n.args||[]}:e,Reflect.defineMetadata(k,i,t)}}(e)};var z=function(){return function(e){V.set(e,function(e){var n=Reflect.getMetadata("design:paramtypes",e)||[],t=Reflect.getOwnMetadata(k,e)||{};return Object.keys(t).forEach((function(e){n[+e]=t[e]})),n}(e))}};var G=function(e){return void 0===e&&(e=[]),function(n){return e.forEach((function(e){var n=e.token,t=e.options,r=f(e,["token","options"]);return B.register(n,r,t)})),n}};var H,W,J,Q,X=function(){return function(e){z()(e),B.registerSingleton(e)}};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");if(window.pnInitPerformance=performance.now(),window.pnHasPolyfilled||(window.pnHasPolyfilled=!1),window.pnFullTPVersion||(window.pnFullTPVersion=!1),void 0!==window.pn&&void 0!==window.pn.container)throw new Error("Piano SDK is loaded twice on same page. Try to fix that to prevent the message.");!window.pnFullTPVersion&&"undefined"!=typeof Proxy&&(H=function(){return W},W=new Proxy({},{get:function(e,n,t){return"isv"===n||H},apply:function(e,n,t){return W}}),B.resolve=new Proxy(B.resolve,{apply:function(e,n,t){if(B.isRegistered(t[0]))return Reflect.apply(e,n,t);B.register(t[0],{useValue:W});var r=B.resolve(t[0]);return Q[t[0]]=r,r}})),J=window.pn||{},(Q=window.pn={}).container=B,Q.singleton=X,Q.injectable=z,Q.inject=q,Q.registry=G,Q.instanceCachingFactory=function(e){var n;return function(t){return null==n&&(n=e(t)),n}},Q.predefinedOptions=J,B.register("predefinedOptions",{useValue:J});var Y,$,K=!1;try{if(!window.pnHasPolyfilled){if("undefined"==typeof Proxy)throw new Error("The browser cannot Proxy");if(new Promise((function(e){})),Object.assign({},{}),[""].includes(""),!Element.prototype.closest)throw new Error("There is no closest method of a DOM element")}}catch(s){K=!0}if(K)throw Y=function(){var e,n=document.querySelectorAll("script");if(n.length)for(var t=0,r=n;t<r.length;t++){var o=r[t],i=null===(e=null==o?void 0:o.src)||void 0===e?void 0:e.match(/^.*?(tinypass.com|piano.io)/i);if(i)return i[0]}return"https://sandbox.tinypass.com"}(),delete window.pn,($=document.createElement("script")).type="text/javascript",$.async=!0,$.src="".concat(Y,"/api/piano.es5.js"),document.getElementsByTagName("head")[0].appendChild($),new Error("Load full version of piano SDK");var Z,ee=(Z=function(e){return new Promise((function(n,t){var r=document.createElement("style");r.type="text/css",r.innerHTML=e,r.onload=n,r.onerror=t,document.getElementsByTagName("head")[0].appendChild(r)}))},{name:"css",loadOfferCss:function(){Z(".tp-backdrop{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:#121214;z-index:300000;opacity:0;transition:opacity .25s linear}.tp-backdrop.tp-active{opacity:.9}.tp-modal .tp-close.tp-square{background:#ccc;border-radius:0;border:0;top:0;right:-40px}.tp-modal .tp-close{display:none;position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:#fff url(\"data:image/svg+xml,%3Csvg width='20' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.51 7.208l-.706-.708-2.798 2.798L7.207 6.5l-.707.707 2.798 2.799L6.503 12.8l.707.707 2.796-2.795 2.792 2.792.707-.707-2.792-2.792 2.798-2.798z' fill='%23000' fill-opacity='.4'/%3E%3C/svg%3E\") center center no-repeat;border:none;box-shadow:0 0 10px rgba(28,37,68,.15);outline:none;z-index:300100;border-radius:40px;opacity:0;cursor:pointer;transform:scale(.25);-webkit-appearance:none;-moz-appearance:none;appearance:none}.tp-modal .tp-close:hover,.tp-modal .tp-close:focus{box-shadow:0 0 10px 2px rgba(28,37,68,.15)}.tp-modal .tp-close:focus{border:1px solid}.tp-modal .tp-close.tp-active{display:block;opacity:1;transform:scale(1)}.tp-modal .tp-iframe-wrapper[dir=rtl] .tp-close{right:initial;left:-20px}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2 .tp-close{top:0;right:0;width:64px;height:64px;box-shadow:none;outline:none;border-radius:0;border-left:1px solid rgba(15,15,21,.2);background:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg %3E%3Cpath d='M3 3L13 13M13 3L3 13' stroke='%230F0F15' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E%0A\") center center no-repeat;opacity:.3}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2 .tp-close.tp-active{opacity:.3}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2 .tp-close:hover,.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2 .tp-close:focus{box-shadow:none;border:none;border-left:1px solid rgba(15,15,21,.06);opacity:1}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2[dir=rtl] .tp-close{right:auto;left:0;border-left:none;border-right:1px solid rgba(15,15,21,.2)}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2[dir=rtl] .tp-close:hover,.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2[dir=rtl] .tp-close:focus{border-left:none;border-right:1px solid rgba(15,15,21,.06)}.tp-modal{z-index:300050}@media screen and (max-width: 650px){.tp-modal .tp-close{right:0}.tp-modal .tp-iframe-wrapper[dir=rtl] .tp-close{right:initial;left:0}}.tp-modal .tp-iframe-wrapper.tp-curtain{width:600px;height:480px}.tp-modal-open{overflow:hidden!important;height:100vh;-webkit-overflow-scrolling:touch}.tp-modal-open.tp-modal-resizing{-webkit-overflow-scrolling:auto}.tp-modal-close{overflow:auto}.tp-iframe-wrapper{position:relative;margin:50px auto;box-shadow:0 0 10px rgba(0,0,0,.21)}.tp-iframe-wrapper.no-shadow{box-shadow:unset}.tp-modal{overflow-x:hidden;overflow-y:scroll!important;display:none;position:fixed;top:0;bottom:0;left:0;right:0;transform:translateZ(0)}.tp-modal .tp-message{font-family:Graphik Web Regular,Helvetica,Arial,sans-serif;padding:10px}.tp-modal .tp-btn-container{padding-left:10px;padding-bottom:10px}.tp-cxense-placeholder-modal{width:100%;background-color:#fff;max-width:912px;display:block;overflow:hidden;height:auto;opacity:1}.tp-widget-placeholder>div:after{display:block;content:\"\";clear:both}.tp-btn{text-decoration:none;cursor:pointer;padding:0 18px;line-height:40px;border-collapse:separate;border-radius:4px;text-align:center;vertical-align:middle;display:inline-block;color:#fff;border:none;box-shadow:inset 0 -1px rgba(216,218,221,0);background:#3878D8;background-position:bottom;text-shadow:none;font-family:Graphik Web Regular,Helvetica,Arial,sans-serif;white-space:nowrap;outline:0}.tp-please-wait.tp-active{display:block;opacity:.9;transition:opacity .25s linear}.tp-please-wait{position:absolute;top:0;left:0;background-color:#999;opacity:0;width:100%;height:100%;display:none;text-align:center;color:#fff;font-weight:lighter;font-family:Open Sans,sans-serif;font-size:15px}.tp-please-wait.tp-overlap{position:fixed;z-index:300150}.tp-please-wait.tp-local-overlap{position:absolute}.tp-please-wait>.tp-icon{width:80px;height:80px;margin:100px auto 20px}.pn-spinner{color:gray;display:inline-block;position:relative;width:80px;height:80px}.pn-spinner div{transform-origin:40px 40px;animation:pn-spinner 1.2s linear infinite}.pn-spinner div:after{content:\" \";display:block;position:absolute;top:3px;left:37px;width:6px;height:18px;border-radius:20%;background:#fff}.pn-spinner div:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.pn-spinner div:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.pn-spinner div:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.pn-spinner div:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.pn-spinner div:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.pn-spinner div:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.pn-spinner div:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.pn-spinner div:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.pn-spinner div:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.pn-spinner div:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.pn-spinner div:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.pn-spinner div:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes pn-spinner{0%{opacity:1}to{opacity:0}}.tp-please-wait>.tp-icon.tp-centered{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tp-iframe-wrapper.no-width .tp-close,.tp-iframe-wrapper.no-height .tp-close,.tp-modal.no-width .tp-close,.tp-modal.no-height .tp-close{display:none}.tp-banner{position:fixed;bottom:0;left:0;width:100%}.tp-banner>.tp-container-inner,.tp-banner>.tp-container-inner>iframe{width:inherit!important}.tp-modal-overscroll-prevented{overscroll-behavior:contain;width:100%;overflow-x:unset;overflow-y:scroll}.tp-scroll-prevented{height:100vh;overflow:hidden;touch-action:none}.tp-body-scroll-prevented{touch-action:none}\n")}});pn.container.register("css",{useValue:ee}),pn.css=pn.container.resolve("css");var ne,te,re=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()},oe=Math.round(1e4*Math.random()),ie=window.document,ae=/^(?:text|application)\/javascript/i,se=/^(?:text|application)\/xml/i,ce="application/json",ue="text/html",le=/^\s*$/,de=function e(n){var t=ke({},n||{});for(ne in e.settings)void 0===t[ne]&&(t[ne]=e.settings[ne]);fe(t),t.crossDomain||(t.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(t.url)&&RegExp.$2!=window.location.host);var r=t.dataType,o=/=\?/.test(t.url);if("jsonp"==r||o)return o||(t.url=ye(t.url,"callback=?")),e.JSONP(t);t.url||(t.url=window.location.toString()),we(t);var i,a=t.accepts[r],s={},c=/^([\w-]+:)\/\//.test(t.url)?RegExp.$1:window.location.protocol,u=e.settings.xhr();t.crossDomain||(s["X-Requested-With"]="XMLHttpRequest"),a&&(s.Accept=a,a.indexOf(",")>-1&&(a=a.split(",",2)[0]),u.overrideMimeType&&u.overrideMimeType(a)),(t.contentType||t.data&&"GET"!=t.type.toUpperCase())&&(s["Content-Type"]=t.contentType||"application/x-www-form-urlencoded"),t.headers=ke(s,t.headers||{});var l=t.xhrFields&&t.xhrFields.withCredentials;l&&(u.withCredentials=l),u.onreadystatechange=function(){if(4==u.readyState){clearTimeout(i);var e,n=!1;if(u.status>=200&&u.status<300||304==u.status||0==u.status&&"file:"==c){r=r||function(e){return e&&(e==ue?"html":e==ce?"json":ae.test(e)?"script":se.test(e)&&"xml")||"text"}(u.getResponseHeader("content-type")),e=u.responseText;try{"script"==r?(0,eval)(e):"xml"==r?e=u.responseXML:"json"==r&&(e=le.test(e)?null:JSON.parse(e))}catch(e){n=e}n?ve(n,"parsererror",u,t):me(e,u,t)}else ve(null,"error",u,t)}};var d=!("async"in t)||t.async;for(te in u.open(t.type,t.url,d),t.headers)u.setRequestHeader(te,t.headers[te]);return!1===function(e,n){var t=n.context;if(!1===n.beforeSend.call(t,e,n)||!1===pe(n,t,"ajaxBeforeSend",[e,n]))return!1;pe(n,t,"ajaxSend",[e,n])}(u,t)?(u.abort(),!1):(t.timeout>0&&(i=setTimeout((function(){u.onreadystatechange=he,u.abort(),ve(null,"timeout",u,t)}),t.timeout)),u.send(t.data?t.data:null),u)};function pe(e,n,t,r){if(e.global)return!0}function fe(e){e.global&&0==de.active++&&pe(e)}function me(e,n,t){var r=t.context,o="success";t.success.call(r,e,o,n),pe(t),ge(o,n,t)}function ve(e,n,t,r){var o=r.context;r.error.call(o,t,n,e),pe(r),ge(n,t,r)}function ge(e,n,t){var r=t.context;t.complete.call(r,n,e),pe(t),function(e){e.global&&!--de.active&&pe(e)}(t)}function he(){}function ye(e,n){return(e+"&"+n).replace(/[&?]{1,2}/,"?")}function we(e){"object"===re(e.data)&&(e.data=function(e,n){var t=[];return t.add=function(e,n){void 0!==n&&(n=null==n?"":n,this.push(_e(e)+"="+_e(n)))},be(t,e,n),t.join("&").replace("%20","+")}(e.data)),e.data&&(!e.type||"GET"==e.type.toUpperCase())&&(e.url=ye(e.url,e.data))}de.active=0,de.JSONP=function(e){if(!("type"in e))return de(e);var n,t="jsonp"+(e.cache?"Callback":++oe),r=ie.createElement("script"),o={abort:function(){t in window&&(window[t]=he),ge("abort",o,e)}},i=ie.getElementsByTagName("head")[0]||ie.documentElement;return e.error&&(r.onerror=function(){o.abort(),e.error()}),window[t]=function(r){clearTimeout(n),delete window[t],me(r,o,e)},we(e),r.src=e.url.replace(/=\?/,"="+t),i.insertBefore(r,i.firstChild),e.timeout>0&&(n=setTimeout((function(){o.abort(),ge("timeout",o,e)}),e.timeout)),o},de.settings={type:"GET",beforeSend:he,success:he,error:he,complete:he,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:ce,xml:"application/xml, text/xml",html:ue,text:"text/plain"},crossDomain:!1,timeout:0},de.get=function(e,n){return de({url:e,success:n})},de.post=function(e,n,t,r){return"function"===re(n)&&(r=r||t,t=n,n=null),de({type:"POST",url:e,data:n,success:t,dataType:r})},de.getJSON=function(e,n){return de({url:e,success:n,dataType:"json"})};var _e=encodeURIComponent;function be(e,n,t,r){var o="array"===re(n);for(var i in n){var a=n[i];r&&(i=t?r:r+"["+(o?"":i)+"]"),!r&&o?e.add(a.name,a.value):(t?"array"===re(a):"object"===re(a))?be(e,a,t,i):e.add(i,a)}}function ke(e){var n=Array.prototype.slice;return n.call(arguments,1).forEach((function(n){for(ne in n)void 0!==n[ne]&&(e[ne]=n[ne])})),e}var Ce=de,Ie={request:function(e){return e.dataType=e.dataType||"json",Ce(e)}};pn.container.register("ajax",{useValue:Ie}),pn.ajax=pn.container.resolve("ajax");var Se,Ee,Pe,xe,Te;pn.container.register("jqUtils",{useValue:(Se=function(e){return"function"==typeof e},Ee=function(e,n){return e?Pe(e,n)[0]:null},Pe=function(e,n){if(!e)return[];var t=n||document,r=e.split(","),o=[];return r.forEach((function(e){var n=e.trim();try{o=o.concat(Array.prototype.slice.call(t.querySelectorAll(n)))}catch(e){var r=n.indexOf(" ")>-1;if("."!==n[0]||r)if("#"!==n[0]||r)o=o.concat(Array.prototype.slice.call(t.querySelectorAll(n)));else{var i=document.getElementById(n.substring(1));o=o.concat(i?[i]:[])}else o=o.concat(Array.prototype.slice.call(t.getElementsByClassName(n.substring(1))))}})),o},xe=function(e,n,t){t.setAttribute(e,n)},Te=[],{scrollTop:function(){return window.pageYOffset||document.documentElement.scrollTop},winSize:function(){var e=window,n=document,t=n.documentElement,r=n.getElementsByTagName("body")[0],o=e.innerWidth||t.clientWidth||r.clientWidth;return{height:e.innerHeight||t.clientHeight||r.clientHeight,width:o}},isPlainObject:function(e){return"[object Object]"===Object.prototype.toString.call(e)},isEmptyObject:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isFunction:Se,inArray:function(e,n){return n.indexOf(e)},type:function(e){return Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},remove:function(e){var n;null===(n=e.parentNode)||void 0===n||n.removeChild(e)},empty:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},queryEl:Ee,qa:Pe,filter:function(e,n){return Array.prototype.filter.call(document.querySelectorAll(e),n)},addClass:function(e,n){n.classList.add(e)},toggleClass:function(e,n){n.classList.toggle(e)},removeClass:function(e,n){n.classList.remove(e)},getWidth:function(e){var n=getComputedStyle(e,null),t=n.paddingLeft,r=n.paddingRight,o=e.getBoundingClientRect().width;return o-=parseFloat(t)+parseFloat(r)},show:function(e){e.style.display="block"},hide:function(e){e.style.display="none"},getHeight:function(e){var n=getComputedStyle(e,null),t=n.paddingTop,r=n.paddingBottom,o=e.getBoundingClientRect().height;return o-=parseFloat(t)+parseFloat(r)},visible:function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},append:function(e,n){e.appendChild(n)},setAttr:xe,setAttrs:function(e,n){Object.keys(e).forEach((function(t){xe(t,e[t],n)}))},getAttr:function(e,n){return"string"==typeof e&&(e=Ee(e)),e?e.getAttribute(n):null},ready:function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",(function(){return e()}))},delegate:function(e,n,t,r){var o=function(t){for(var o=t.target;o&&null!=o;o=o.parentNode){var i=Te.findIndex((function(t){return t.parentEl===e&&t.elementSelector===n}));if(o.matches&&o.matches(n)&&i>=0){r.call(o,t);break}}};Te.push({parentEl:e,elementSelector:n,handler:o,eventName:t}),e.addEventListener(t,o,!1)},undelegate:function(e,n){Te=Te.filter((function(t){var r=t.parentEl!==e&&t.elementSelector!==n;return r||t.parentEl.removeEventListener(t.eventName,t.handler),r}))},on:function(e,n,t){e.addEventListener(n,(function(e){t(e)}),!1)},off:function(e,n,t){e.removeEventListener(n,t)},deepExtend:function e(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var r={},o=0,i=function(n){for(var t in n)n.hasOwnProperty(t)&&("[object Object]"===Object.prototype.toString.call(n[t])?r[t]=e(r[t],n[t]):r[t]=n[t])};o<n.length;o++)i(n[o]);return r},param:function(e){var n=[],t=function(e,n){return encodeURIComponent(e)+"="+encodeURIComponent(Se(n)?n():n||0===n||!1===n?n:"")};return Object.keys(e).forEach((function(r){Array.isArray(e[r])?e[r].forEach((function(e){n.push(t(r,e))})):n.push(t(r,e[r]))})),n.join("&")}})}),pn.jqUtils=pn.container.resolve("jqUtils");var Ae={};!function(n,t){for(var r in t)e(n,r,{get:t[r],enumerable:!0})}(Ae,{cookie:function(){return Re},localStorage:function(){return Le},sessionStorage:function(){return De}});var Me=function(e){var n=new Date,t=function(e){e&&n.setDate(n.getDate()+e)};if(e instanceof Date)n=e;else if("number"==typeof e)t(e);else{var r=e,o=r.days,i=r.minutes;t(o),i&&n.setMinutes(n.getMinutes()+i)}return n},Oe=function(e){var n=e.replace(/\+/g," ").replace(/^\s+|\s+$/g,"");try{return decodeURIComponent(n)}catch(e){return n}},Ne=function(e){return 0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),Oe(e)},Re=function(){var e=function(e,n,t){var r=void 0===t?{}:t,o=r.path,i=r.domain,a=r.expires,s=r.secure,c=r.samesite,u=r.raw,l=r.priority;return(u?e:encodeURIComponent(e))+"="+(u?n:encodeURIComponent(n))+(a?"; expires=".concat(Me(a).toUTCString()):"")+(o?"; path=".concat(o):"")+(i?"; domain=".concat(i):"")+(s?"; secure":"")+(c?"boolean"==typeof c?"; sameSite":"; sameSite=".concat(c):"")+(l?"; priority=".concat(l):"")},n=function(n,t,r,o){void 0===t||void 0!==o&&function(e){return encodeURI(e).split(/%(?:u[\dA-F]{2})?[\dA-F]{2}|./).length-1}(t)>o||(document.cookie=e(n,t,r))},t=function(e){for(var n=document.cookie.split(";"),t=0;t<n.length;t++){var r=n[t].split("=");if(e(Oe(r[0]),r[1]||""))return}};function r(e){var n=null,r={};return t((function(t,o){if(e){if(t===e)return n=Ne(o),!0}else r[t]=Ne(o)})),e?n:r}var o,i=function(e,t){n(e,"",Object.assign({},t,{expires:-1}))},a=(o="_cookie_test",function(e){void 0===e&&(e=[]);var t=window.location.hostname.split("."),a=(new Date).getTime().toString(36)+Math.round(2147483647*Math.random()).toString(36),s=new Date;s.setSeconds(s.getSeconds()+30);for(var c=0;c<t.length;c++)try{var u=t.slice(-(c+1)).join(".");if(!e.includes(u)){n(o,a,{expires:s,path:"/",domain:u});var l=r(o)===a;if(i(o,{path:"/",domain:u}),l)return u}}catch(e){}});return{set:n,get:r,getNames:function(){var e=[];return t((function(n){e.push(n)})),e},remove:i,getTopLevelDomain:a,__private__:{_generateCookieString:e}}}(),Le=function(){var e="_ls_ttl",n=function(){try{var n=window.localStorage.getItem(e);return n?JSON.parse(n):null}catch(e){return null}},t=function(n){try{Object.keys(n).length?window.localStorage.setItem(e,JSON.stringify(n)):window.localStorage.removeItem(e)}catch(e){}},r=function(){var e=o(),r=n(),i={};!r||(Object.keys(r).forEach((function(n){if(e.includes(n))if(function(e){return!e||e>Date.now()}(r[n]?parseInt(r[n],36):null))i[n]=r[n];else try{window.localStorage.removeItem(n)}catch(e){}})),JSON.stringify(r)!==JSON.stringify(i)&&t(i))},o=function(){try{return Object.keys(window.localStorage)}catch(e){return[]}};return r(),{get:function(e){var n;r();try{return null!==(n=window.localStorage.getItem(e))&&void 0!==n?n:null}catch(e){return null}},set:function(e,r,o){if(void 0===o&&(o={}),function(e,r){var o=n();if(void 0===r)return null!=o&&o[e]&&(delete o[e],t(o)),!0;var i=Me(r).getTime();return i>Date.now()&&((o=o||{})[e]=i.toString(36),t(o),!0)}(e,o.expires))try{window.localStorage.setItem(e,r)}catch(e){}},getNames:o,remove:function(e){try{window.localStorage.removeItem(e)}catch(e){}r()},expires:r,__protected__:{get ttlName(){return e}}}}(),De={get:function(e){try{return window.sessionStorage.getItem(e)}catch(e){return null}},set:function(e,n){try{window.sessionStorage.setItem(e,n)}catch(e){}},getNames:function(){try{return Object.keys(window.sessionStorage)}catch(e){return[]}},remove:function(e){try{window.sessionStorage.removeItem(e)}catch(e){}}},Ue=function(){return Ue=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},Ue.apply(this,arguments)},je=function(e,n){return void 0===n&&(n="_pctx"),{cookieName:n,readonly:!1,init:function(n){var t;return null!==(t=null!=n?n:e)&&void 0!==t?t:null},refresh:function(e){return e},update:function(e){return e},set:function(e){return e},get:function(e){return e}}},Ve=function(e){return Ue(Ue({},je(e)),{cookieName:null})},Fe=je("anon"),Be=function(e){return e?Object.keys(e):[]},qe=function(e){return Array.isArray(e)},ze=function(e){return null!=e},Ge=function(e){return"object"==_typeof(e)},He=function(e){return"string"==typeof e},We=function(){for(var e=(new Date).getTime().toString(36);e.length<16;)e+=Math.round(2147483647*Math.random()).toString(36);return e.substr(0,16)},Je=function(e,n){return e&&Be(e).filter((function(t){return n(e[t])})).reduce((function(n,t){var r;return Ue(Ue({},n),((r={})[t]=e[t],r))}),{})},Qe=function(){var e={};return{add:function(n){e[n]=!0},values:function(){return Be(e)}}},Xe=function(e){return"true"===e||!0===e},Ye=function(e,n){var t,r=NaN,o=NaN;return function(i){var a=null==n?void 0:n();return(i!==o||r!==a)&&(r=a,o=i,t=e(i)),t}},$e=function(e){var n;return function(t){var r=e();r!==n&&(n=r,t(r))}},Ke=function e(n,t){try{return n()}catch(n){return t?e(t):null}},Ze=function(e,n){return void 0===n&&(n=!1),Ke((function(){return JSON.parse(e)}),(function(){return n?JSON.parse(window.atob(e)):null}))||null},en=function(e,n){if(e===n)return!0;if(!e||!n)return null;var t=Be(e),r=Be(n);return t.length===r.length&&!t.some((function(t){return e[t]!==n[t]}))},nn=function(e){return Je(e,(function(e){return"CX"!==(null==e?void 0:e.type)}))},tn=Ue(Ue({},je(null)),{init:function(e){return nn(e||null)},refresh:nn,set:function(e,n){return null===e?null:Je(Ue(Ue({},n),e),(function(e){return null!==e}))}}),rn=function(){return window.pdl||{}},on=function(e,n){return n({protect:!0}),We()},an=Ue(Ue({},Ve()),{init:function(e,n){return n({protect:!0}),rn().pageViewId||We()},refresh:on,update:on,set:function(e,n,t){return t({protect:!0}),e}}),sn=Ue(Ue({},je(null,"_pcid")),{init:function(e,n){return n({protect:!0}),e||We()},update:function(e,n){return n({protect:!0}),We()},set:function(e,n,t){return t({protect:!0}),e}}),cn="DL",un=["PA","DMP","COMPOSER","ID","VX","ESP","SOCIAL_FLOW",cn].map((function(e,n){return{name:e,id:n}})),ln=un.reduce((function(e,n,t){var r,o=n.name;return Ue(Ue({},e),((r={})[o]=t,r[o.toLowerCase()]=t,r))}),{});ln["social flow"]=ln.SOCIAL_FLOW,ln["Social Flow"]=ln.SOCIAL_FLOW;var dn=$e((function(){var e;return null===(e=Kn(rn().consent))||void 0===e?void 0:e.products})),fn=function(){var e=un;return function(){return dn((function(n){e=n?un.filter((function(e){return n.includes(e.name)||e.name===cn})):un})),e}}(),mn=function(e,n,t){var r=fn().reduce((function(r,o){var i=o.id;return r[i]=t(null==e?void 0:e[i],null==n?void 0:n[i],i),r}),{});return en(r,n)?n:r},vn=function(e){var n=Number(e);if(Number.isNaN(n)){var t=ln[e.toLowerCase()];return null!=t?t:null}return n<un.length?n:null},gn=function(e,n){return Be(e).reduce((function(t,r){var o=un[Number(r)].name,i=e[r];return t[o]=n?n(i,o):i,t}),{})},hn="opt-in",yn="essential",wn="opt-out",_n="custom",bn=[hn,yn,wn],kn=bn.concat(_n),Cn=kn.reduce((function(e,n,t){var r;return Ue(Ue({},e),((r={})[t]=n,r))}),{}),In=[hn,_n,yn,wn],Sn=function(e){return kn.includes(e)},En={AD:["DMP","SOCIAL_FLOW"],CP:["COMPOSER"],AM:["PA"],PR:["ESP","VX","ID"],DL:["DL"]},Pn=Be(En).reduce((function(e,n){return En[n].forEach((function(t){var r=ln[t];e[r]=n})),e}),{}),xn=$e((function(){var e;return null===(e=Kn(rn().consent))||void 0===e?void 0:e.defaultPurposes})),Tn=function(){var e=Ue({},Pn);return function(){return xn((function(n){e=Ue({},Pn),n&&Be(n).forEach((function(t){var r,o=ln[t];e[o]=null===(r=n[t])||void 0===r?void 0:r.substring(0,32)}))})),e}}(),An=function(e,n){return mn(e,n,(function(e,n,t){return e||n||Tn()[t]}))},Mn=Ue(Ue({},je(null,"_pprv")),{init:function(e){return Rn()?An(e||null,null):null},set:function(e,n){return Rn()?null==e?n:An(function(e){return Be(e).reduce((function(n,t){var r=vn(t),o=Vn(e[t]);return null===r||o===Dn||r===ln.DL||o&&(n[r]=o),n}),{})}(e),n):null}}),On=function(){return rn().consent_modifiers||null},Nn=function(){return!!rn().requireConsent},Rn=function(){return"v2"===rn().requireConsent},Ln=function(e,n){var t;return e===_n&&!(null!==(t=On())&&void 0!==t&&t[n])},Dn="DL",Un=["AD","AM","CP","PR",Dn].reduce((function(e,n){var t;return Ue(Ue({},e),((t={})[n]=n,t[n.toLowerCase()]=n,t))}),{}),jn=function(e){return Un[(null==e?void 0:e.toLowerCase())||""]||null},Vn=function(e){return jn(e)||(null==e?void 0:e.substring(0,32))},Fn=function(e,n,t){return"".concat(e.join(", ")," ").concat(e.length>1?t:n)},Bn=function(e){return'"'.concat(e,'" can not be applied for the dl product')};function qn(e,n,t,r,o){var i=function(e){return{error:e}},a=function(n,t,r){var o=[];if(!Sn(n))return i(function(e){return"".concat(e," is unknown consent mode")}(n));var a=fn().reduce((function(i,a){var s=a.id,c=a.name;return(!t||(null==e?void 0:e[s])===t||(null==r?void 0:r.includes(s)))&&(Ln(n,c)?o.push(c):i[s]={mode:n}),i}),{});return o.length?i(function(e){return Fn(e,"does","do")+"n't have modifier in the pdl. Custom mode can't be applied"}(o)):Object.keys(a).length?{consent:a}:null},s=function(n,t){var r=Vn(t);return Un[r]||Object.values(e||{}).includes(r)?a(n,r):i("Unknown purpose. Provide a product or define within pdl config")};return Rn()?o?function(e,n,t){var r=Vn(n),o=qe(t)?t:[t],c=o.map(vn).filter(ze);if(!c.length)return jn(n)?s(e,n):i(function(e){return"Custom purpose: "+Fn(e,"is","are")+" unknown"}(o));if(r!==Dn&&c.includes(ln.DL))return{error:Bn(r)};if(r===Dn&&c.some((function(e){return e!==ln.DL})))return i('the "DL" purpose is reserved');var u=a(e,r,c);if(null!=u&&u.error)return u;var l=c.reduce((function(e,n){return e[n]=r,e}),{});return{consent:(null==u?void 0:u.consent)||null,purposes:l}}(r,t,o):r?s(r,t):function(e){return a(e)}(t):i("Consent v2 is disabled")}var zn=function(e,n){if(!e)return null;var t=gn(n||Pn);return fn().reduce((function(n,r){var o,i=r.name,a=t[i],s=(null===(o=e[i])||void 0===o?void 0:o.mode)||hn;return n[a]?(n[a].mode=function(e,n){var t=In.indexOf(e),r=In.indexOf(n);return In[Math.max(t,r)]}(n[a].mode,s),n[a].products.push(i)):n[a]={mode:s,products:[i]},n}),{})},Gn=["include","exclude","obfuscate"],Hn=function(e,n){return'"'.concat(e,'" should be one of ').concat(n.join(", "))},Wn=function(){},Jn=function(e,n){return function(t){return n(e+t)}},Qn=function(e,n){void 0===n&&(n=Wn);var t=ln[e.toLowerCase()];return void 0!==t?un[t].name:(n('"'.concat(e,'" is not found')),null)},Xn=function(e){return function(e){return bn.includes(e)}(e)?e:null},Yn=function(e,n){void 0===n&&(n=Wn);var t=e.source,r=e.patches||[];return Xn(t)||(n(Hn("source",bn)),t=hn),qe(r)||(n('"patches" should be an array'),r=[]),r=r.reduce((function(e,t,r){if(!Ge(t)||qe(t))return n("patch[".concat(r,"]: should be type of {action, item, with?}")),e;var o=t.action,i=t.item;return Gn.includes(o)?i&&Ge(i)&&i.key&&i.type?(e.push(t),e):(n("patch[".concat(r,']: "item" should be type of {key, type}')),e):(n("patch[".concat(r,"]: ")+Hn("action",Gn)),e)}),[]),{source:t,patches:r}},$n=function(e,n){if(void 0===n&&(n=Wn),!e)return null;var t={};e.products&&(qe(e.products)?t.products=e.products.reduce((function(e,t){var r=Qn(t,Jn("consent.products: ",n));return r&&e.push(r),e}),[]):n("consent.products: should be an array")),e.defaultPreset&&(t.defaultPreset=Be(e.defaultPreset).reduce((function(t,r){var o=Qn(r,Jn("consent.defaultPreset: ",n)),i=Xn(e.defaultPreset[r]);return i||n("consent.defaultPreset: "+Hn(r,bn)),o&&i&&(t[o]=i),t}),{}));var r=e.defaultPurposes;return r&&(t.defaultPurposes=Be(r).reduce((function(e,t){var o=Jn("consent.defaultPurposes: ",n),i=Qn(t,o),a=r[t],s=Vn(a);return s===Dn||i===cn?o('"'.concat(t,": ").concat(a,'" - invalid config')):i&&s&&(e[i]=s),e}),{})),t},Kn=Ye($n),Zn=[[0,0,0,0,0,0,0,0],[0,0,2,2,2,2,2,0],[1,2,2,2,2,2,2,1],[0,2,0,2,2,2,0,0],[1,2,2,2,2,2,1,1],[2,0,0,2,2,2,2,0],[2,0,2,2,2,2,2,0],[2,2,2,2,2,2,0,2],[2,2,0,0,0,0,2,0],[2,2,1,2,1,2,2,1],[2,2,1,1,2,2,2,1]],et=function(e){return e.reduce((function(e,n,t){var r;return Ue(Ue({},e),((r={})[t]={mode:Cn[n]},r))}),{})},nt=Zn.map((function(e,n){return{id:n,preset:et(e)}})),tt=$e((function(){var e;return null===(e=Kn(rn().consent))||void 0===e?void 0:e.defaultPreset})),rt=function(){var e=nt;return function(){return tt((function(n){e=nt.slice(),n&&(e[0]={id:0,preset:Ue({},e[0].preset)},Be(n).forEach((function(t){var r=n[t],o=ln[t];e[0].preset[o]={mode:r}})))})),e}}(),ot=function(e,n){return mn(e,n,(function(e,n,t){var r=(null==e?void 0:e.mode)||(null==n?void 0:n.mode)||rt()[0].preset[t].mode;return r!==(null==n?void 0:n.mode)?{mode:r}:n}))},it=Ue(Ue({},je(null,"_pprv")),{init:function(e){return Nn()&&e?ot(e,null):null},set:function(e,n){var t,r;return Nn()?null==e?n:(r=function(e){return"number"==typeof e}(e)?(null===(t=rt()[e])||void 0===t?void 0:t.preset)||null:qe(e)?function(e){var n=null;return e.forEach((function(e){var t=Zn[e];n||!t?!n||!t||(n=n.map((function(e,n){return Math.min(e,t[n])}))):n=t})),n&&et(n)}(e):function(e){return Be(e).reduce((function(n,t){var r=e[t],o=vn(t);if(null===o)return n;var i=Sn(r.mode)?r.mode:null;return i&&(n||(n={}),n[o]={mode:i}),n}),null)}(e),r?ot(r,n):n):null},get:Ye((function(e){return e&&gn(e,(function(e,n){var t,r=Ue({},e);return r.mode===_n&&(r.modifier=(null===(t=On())||void 0===t?void 0:t[n])||null),r}))}),(function(){return On()}))}),at=Ue(Ue({},Ve()),{init:rt,set:rt}),st=Ue(Ue({},Ve()),{init:fn,set:fn}),ct=Ue(Ue({},Ve(null)),{readonly:!0,set:function(){return null},get:On}),ut=function(e){var n=Number(e);return Number.isNaN(n)?String(e):n},lt=function(e){return qe(e)?e:e.split(",").map((function(e){return e.trim().replace(/^['"](.+)['"]$/,"$1")}))},dt=function(e){return e},pt={id:dt,type:dt,zone:dt,createdAt:ut,modifiedAt:ut,authors:lt,section:dt,tags:lt,keywords:lt,title:dt,description:dt,isNative:Xe},ft=function(e){return"last"===e};function mt(e,n){if(void 0===e&&(e="meta"),function(e){return"first"===e}(n))return document.querySelector(e);var t=document.querySelectorAll(e);return ft(n)?t[t.length-1]:Array.from(t)}var vt=function(){var e=null;return{refresh:function(){(e=mt()||null)&&setTimeout((function(){e=null}),0)},find:function(n,t){return void 0===t&&(t=!1),e?e.reduce((function(e,r){for(var o=0,i=n;o<i.length;o++){var a=i[o],s=(("name"===a?r.name:r.getAttribute(a))||"").trim().toLowerCase(),c=r.content;if(s&&(!t||c)){e[s]||(e[s]=[]),e[s].push(r);break}}return e}),{}):null}}}(),gt=function(e){var n,t=e.getContent||function(e){return e.content};return e.selector?(n=mt(e.selector,e.take||"first"))&&t(n)||null:function(){var n=vt.find(e.attr||["name"],e.hasContent),r=e.names||[],o=!function(e){return"all"===e}(e.take),i=ft(e.take);if(!n)return null;for(var a=function(e){var r=[],a=n[e];if(a){if(o){var s=a[i?a.length-1:0];return{value:t(s)||""}}a.forEach((function(e){r=r.concat(t(e)||"")}))}if(r.length)return{value:r}},s=0,c=r;s<c.length;s++){var u=a(c[s]);if("object"==_typeof(u))return u.value}return null}()},ht=function(e){for(var n=0,t=e;n<t.length;n++){var r=t[n],o=gt(r);if(o)return o}},yt=function(e,n,t){var r=pt[n];if(!Boolean(e[n])&&r){var o=("function"==typeof t?t:function(){return qe(t)?ht(t):gt(t)})(),i=o&&r(o);i&&(e[n]=i)}},wt=function(e){return{names:[e]}},_t={januar:"01",january:"01",jan:"01",februar:"02",february:"02",feb:"02",mars:"03",march:"03",mar:"03",april:"04",apr:"04",mai:"05",may:"05",juni:"06",june:"06",jun:"06",juli:"07",july:"07",jul:"07",august:"08",aug:"08",september:"09",sept:"09",sep:"09",oktober:"10",october:"10",okt:"10",oct:"10",november:"11",nov:"11",desember:"12",december:"12",dec:"12",des:"12"},bt=function(e){var n=e.replace(/DAY/g,"(0?[1-9]|[12][0-9]|3[01])").replace(/MONTHLONG/g,"("+Be(_t).join("|")+")").replace(/MONTH/g,"(0?[1-9]|1[012])").replace(/YEAR2/g,"([0-9][0-9])").replace(/YEAR/g,"(197[1-9]|19[8-9][0-9]|20[0-9][0-9])").replace(/TIME/g,"([0-9][0-9]):([0-9][0-9]):([0-9][0-9])(?:\\.[0-9][0-9][0-9])?([zZ]|[+-][0-9][0-9](?::?[0-9][0-9])?)?"),t=e.replace(/.*?([YMD])(EAR|ONTH|AY).*?/g,"$1").substring(0,3);return[new RegExp(n),t]},kt=["\\bDAY\\.MONTH\\.YEAR\\b","\\bDAY\\.?\\s{0,3}MONTHLONG\\.?\\s{1,3}YEAR\\b","\\bYEAR-MONTH-DAY(?:[tT]|\\b)","\\bMONTHLONG\\.?\\s{0,3}DAY(?:st|nd|rd|th)?,?\\s{1,3}YEAR\\b","\\bDAY(?:st|nd|rd|th|\\.)?\\s{0,3}MONTHLONG\\.?,?\\s{1,3}YEAR\\b","\\bYEAR[/年]MONTH[/月]DAY(?=\\b|日)","\\bDAY\\.MONTH\\.YEAR2\\b","\\bDAY/MONTH/YEAR\\b"].map(bt),Ct=bt("YEAR-MONTH-DAY[tT]TIME")[0],It=function(e){return e&&parseInt(e,10)||0};function St(e,n,t,r,o,i,a){var s=new Date(Date.UTC(It(e),It(n)-1,It(t),It(r),It(o),It(i))),c=(a||"").match(/^([+-][0-9][0-9])(?::?([0-9][0-9])?)$/);c&&(s=new Date(s.getTime()-36e5*Number(c[1])-6e4*(Number(c[2])||0)));var u=Date.now()-s.getTime();return u>0||-u<1728e5?s.toISOString():null}var Et=function(e){return e.replace(/<\/?[^>?]*\/?>/g," ").replace(/\s+/g," ").trim()};function Pt(e){return void 0===e&&(e=""),Et(e.replace(/,(?=\s*(jr|sr)(\.?)\b)/g," "))}var xt,Tt=function(e){return Ue(Ue({},e),{take:"last"})},At=function(e){return Ue(Ue({},e),{take:"last",hasContent:!0,getContent:function(e){return Et(e.content||"")}})},Mt=[Tt({attr:["name","property","itemprop"],names:["cxenseparse:publishtime","cxenseparse:recs:publishtime","article:published_time","date","dc.date","dc.date.created","dc.terms.issued","pub_date","article.published","datepublished","og:article:published_time"]}),Tt({selector:"time.published[datetime],time[pubdate][datetime]",getContent:function(e){return e.getAttribute("datetime")}}),Tt({selector:"time[datetime]",getContent:function(e){return e.getAttribute("datetime")}})],Ot={selector:'meta[property="article:modified_time"]'},Nt=[{attr:["property","name"],names:["cxenseparse:author","og:article:author","article:author","og:book:author","book:author","author","dc.creator","article.author"],take:"all",getContent:function(e){var n=e.getAttribute("data-separator"),t=e.content;return n?Pt(t).split(n):function(e){return void 0===e&&(e=""),Pt(e.replace(/\n+/,";").replace(/(\<|&lt;)br(\>|&gt;)/,";").replace(/\b(and|und|og)\b/g,";")).split(/[,;]/)}(t)}}],Rt=[At({names:["cxenseparse:keywords"]}),At({attr:["property","name"],names:["news_keywords"]}),At({names:["keywords"]})],Lt=[At({names:["cxenseparse:description"]}),At({attr:["property"],names:["og:description"]}),At({names:["description"]})],Dt=[{names:["cxenseparse:title"]},Tt({attr:["property","name"],names:["og:title"]})],Ut=function(e){yt(e,"createdAt",(function(){var e=ht(Mt);return e?function(e){var n=(e=e.toLowerCase()).match(Ct);if(n)return St(n[1],n[2],n[3],n[4],n[5],n[6],n[7]);for(var t=0,r=kt;t<r.length;t++){var o=r[t],i=e.match(o[0]);if(i)return St(2===(i="DMY"===o[1]?["",i[3],i[2],i[1]]:"MDY"===o[1]?["",i[3],i[1],i[2]]:i)[1].length?(It(i[1])<60?"20":"19")+i[1]:i[1],i[2].length<=2?i[2]:_t[i[2]],i[3])}}(e.toLowerCase()):null})),yt(e,"modifiedAt",Ot),yt(e,"authors",Nt),yt(e,"keywords",(function(){var e=ht(Rt);return e&&e.length<=1024?e:null})),yt(e,"title",Dt),yt(e,"description",Lt)},jt=function(){var e=Array.from(document.querySelectorAll("meta[property^=content]")).reduce((function(e,n){var t,r=null===(t=null==n?void 0:n.getAttribute("property"))||void 0===t?void 0:t.split(":").pop(),o=pt[r];return o&&n&&(e[r]=o((null==n?void 0:n.getAttribute("content"))||"")),e}),{});return vt.refresh(),function(e){yt(e,"type",{attr:["property"],names:["og:type"]}),yt(e,"section",wt("section")),yt(e,"id",wt("id")),yt(e,"authors",wt("author"))}(e),Ut(e),e},Vt=Ue(Ue({},Ve(null)),{init:function(){return jt()},set:function(e,n){return null===e?{}:Je(Ue(Ue({},n),e),(function(e){return null!=e}))}}),Ft=Ue(Ue({},je(null,"_pcus")),{init:function(e){return void 0===e&&(e=null),e&&Je(e,(function(e){return Ge(e)&&Array.isArray(e.segments)}))}}),Bt={pageViewId:an,browserId:sn,users:tn,userStatus:Fe,siteId:je(),consent:it,consentPresets:at,products:st,consentModifiers:ct,purposes:Mn,content:Vt,userSegments:Ft},qt={path:"/",expires:395,samesite:"lax",secure:"https:"===window.location.protocol,domain:Re.getTopLevelDomain(["pantheon.io","go-vip.net","go-vip.co"])},zt=function(e){return e.getTime().toString(36)},Gt=function(e){return e?Ke((function(){return new Date(parseInt(e,36))})):null},Ht=function(e,n){var t=n.encode,r=n.decode,o=!1,i=null,a=null,s=null;!function(){var n,t=null===(n=r(e||""))||void 0===n?void 0:n._t;if(t){var s=t.split("|");i=Gt(s[0]),a=Gt(s[1]),o=!!i}}();var c=function(e){return i=i||function(e){var n=new Date;if(e instanceof Date)n=e;else{if("number"!=typeof e)return null;n.setDate(n.getDate()+e)}return n}(e.expires),i};return{get fixedAt(){return o?[a,i]:null},onChange:function(e){s=e},setMode:function(e){var n=o;(o=e)!==n&&(i=null,a=null,null==s||s(o))},bindOptions:function(e){return o&&(i=c(e))?Ue(Ue({},e),{expires:i}):e},decode:function(e){var n=r(e);return null!=n&&n._t&&delete n._t,n},encode:function(e,n){return o?(i=c(n))&&(e._t=zt(i)+"|"+zt(a=a||new Date)):delete e._t,t(e)}}},Wt="essential",Jt="optional",Qt="mandatory",Xt=function(e,n,t){return void 0===n&&(n=Jt),void 0===t&&(t=!1),{cookieName:e,consent:n,encode:function(e){return function(e,n){void 0===n&&(n=!1);var t=JSON.stringify(e);return Ke((function(){return n?window.btoa(t):t}))||t}(e,t)},decode:function(e){return Ze(e,!0)}}},Yt=String.fromCharCode,$t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",Kt={};!function(e){e.URI="URI"}(xt||(xt={}));var Zt={URI:{prefix:"{u}",compress:function(e){return null==e?"":function(e,n,t){if(null==e)return"";var r,o,i,a={},s={},c="",u="",l="",d=2,p=3,f=2,m=[],v=0,g=0;for(i=0;i<e.length;i+=1)if(c=e.charAt(i),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=p++,s[c]=!0),u=l+c,Object.prototype.hasOwnProperty.call(a,u))l=u;else{if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)v<<=1,g==n-1?(g=0,m.push(t(v)),v=0):g++;for(o=l.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1}else{for(o=1,r=0;r<f;r++)v=v<<1|o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o=0;for(o=l.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[l]}else for(o=a[l],r=0;r<f;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1;0==--d&&(d=Math.pow(2,f),f++),a[u]=p++,l=String(c)}if(""!==l){if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)v<<=1,g==n-1?(g=0,m.push(t(v)),v=0):g++;for(o=l.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1}else{for(o=1,r=0;r<f;r++)v=v<<1|o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o=0;for(o=l.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[l]}else for(o=a[l],r=0;r<f;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1;0==--d&&(d=Math.pow(2,f),f++)}for(o=2,r=0;r<f;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1;for(;;){if(v<<=1,g==n-1){m.push(t(v));break}g++}return m.join("")}(e,6,(function(e){return $t.charAt(e)}))},decompress:function(e){return null==e?"":""==e?null:function(e,n,t){var r,o,i,a,s,c,u,l=[],d=4,p=4,f=3,m="",v=[],g={val:t(0),position:n,index:1};for(r=0;r<3;r+=1)l[r]=r;for(i=0,s=Math.pow(2,2),c=1;c!=s;)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=t(g.index++)),i|=(a>0?1:0)*c,c<<=1;switch(i){case 0:for(i=0,s=Math.pow(2,8),c=1;c!=s;)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=t(g.index++)),i|=(a>0?1:0)*c,c<<=1;u=Yt(i);break;case 1:for(i=0,s=Math.pow(2,16),c=1;c!=s;)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=t(g.index++)),i|=(a>0?1:0)*c,c<<=1;u=Yt(i);break;case 2:return""}for(l[3]=u,o=u,v.push(u);;){if(g.index>e)return"";for(i=0,s=Math.pow(2,f),c=1;c!=s;)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=t(g.index++)),i|=(a>0?1:0)*c,c<<=1;switch(u=i){case 0:for(i=0,s=Math.pow(2,8),c=1;c!=s;)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=t(g.index++)),i|=(a>0?1:0)*c,c<<=1;l[p++]=Yt(i),u=p-1,d--;break;case 1:for(i=0,s=Math.pow(2,16),c=1;c!=s;)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=t(g.index++)),i|=(a>0?1:0)*c,c<<=1;l[p++]=Yt(i),u=p-1,d--;break;case 2:return v.join("")}if(0==d&&(d=Math.pow(2,f),f++),l[u])m=l[u];else{if(u!==p)return null;m=o+o.charAt(0)}v.push(m),l[p++]=o+m.charAt(0),o=m,0==--d&&(d=Math.pow(2,f),f++)}}((e=e.replace(/ /g,"+")).length,32,(function(n){return function(e,n){if(!Kt[e]){Kt[e]={};for(var t=0;t<e.length;t++)Kt[e][e.charAt(t)]=t}return Kt[e][n]}($t,e.charAt(n))}))}}},er=Be(Zt).reduce((function(e,n){return e[Zt[n].prefix]=Zt[n],e}),{}),nr={cookieName:"_pctx",consent:Qt,encode:function(e,n){void 0===n&&(n=xt.URI);var t=JSON.stringify(e),r=Zt[n].compress(t);return Zt[n].prefix+r},decode:function(e){var n=function(e){var n=e.slice(0,3),t=e.slice(3);if(!er[n])return null;var r=er[n].decompress(t);if(!r)return null;try{return JSON.parse(r)}catch(e){return null}}(e||"");return Ge(n)?n:null}},tr=function(){var e,n;return!(null===(n=null===(e=rn().cookies)||void 0===e?void 0:e._pprv)||void 0===n||!n.jsonOnly)},rr={_pprv:Xt("_pprv",Qt,!tr()),_pcid:Xt("_pcid",Wt),_pcus:Xt("_pcus",Jt,!0),_pctx:nr},or=function(e){return Be(e).reduce((function(n,t){return n[t]=function(e){var n=e.cookieName,t=e.consent,r=Re.get(n),o=!!r,i=Ht(r,e),a=!!i.fixedAt,s=o,c=null,u=Ue({},qt),l=null,d=function(){return o&&s},p=function(e){var t=f(e),r=c||(l?i.encode(l,t):"");if(!r){var o=Re.get(n),s=i.decode(o||"");r=s?i.encode(s,t):""}r&&(a=!0,Re.set(n,r,i.bindOptions(t)))},f=function(e){return Ue(Ue({},u),Je(e||{},ze))},m=function(e){Re.remove(n,f(e))},v=function(e,n){var t=e&&n;!d()&&t&&p(),d()&&!t&&m(),d()&&t&&!a&&p(),o=e,s=n};return i.onChange((function(){d()&&(a=!1,p())})),{get cookieName(){return n},get cookieEnabled(){return d()},get fixedAt(){return i.fixedAt},get consent(){return t},set:function(e,n){l=e,d()&&p(n)},get:function(){return i.decode(Re.get(n)||"")},remove:m,setCookieOptions:function(e){u=f(e),d()&&p()},setCookieEnabled:function(e,n){void 0===n&&(n=null),c=e?n:null,v(e,s)},lazyActive:function(){v(o,!0)},setFixedMode:function(e){i.setMode(e)}}}(e[t]),n}),{})}(rr),ir="__pctx_connection__",ar="uvm42pas28m",sr={},cr=function(){var e=function(){var e=null,n=null;return{register:function(t){return e=Ue(Ue({},t.fields),e),n=Ue(Ue({},t.cookieByName),n)},get wrappers(){return n},get:function(){var e={};return n&&Be(n).forEach((function(t){e=Ue(Ue({},e),n[t].get())})),e},set:function(t,r){void 0===r&&(r=null);var o={};Be(t).forEach((function(i){var a=t[i],s=null==e?void 0:e[i];s&&(o[s]||(o[s]={wrapper:null==n?void 0:n[s],data:{},update:!1}),o[s].data[i]=a,(!r||!o[s].update&&a!==r[i])&&(o[s].update=!0))})),Be(o).forEach((function(e){var n=o[e],t=n.wrapper;n.update&&t.set(o[e].data)}))}}}(),n={},t=null,r=new Map,o=new Map,i=[],a=function(e,n,t){void 0===t&&(t=!1);var r=[];return Be(n).forEach((function(i){var a=n[i],s=!o.has(i)||o.get(i)===e||t;a&&s?o.set(i,e):!a&&s?o.delete(i):r.push(i)})),r.length>0?r:null};return function(s,c){var u=We();return r.set(u,s),c&&e.register(c),n=Ue(Ue({},e.get()),n),{getInitCookieData:function(){return n},getCachedData:function(){return t||sr},setProtectionData:function(e){return a(u,e)},setProtectionDataUnsafe:function(e){return a(u,e,!0)},updateData:function(r){return function(r,a){var s={},c={};Be(a).forEach((function(e){o.has(e)?s[e]=(null==t?void 0:t[e])||null:c[e]=a[e]}));var u=t||n,l=Ue(Ue({},t),c);return en(l,u)||(e.set(l,u),t=l,i.forEach((function(e){return(0,e[1])(c)}))),Be(s).length>0?s:null}(0,r)},onUpdateData:function(e){!function(e,n){i.push([e,n])}(u,e)},terminate:function(){(function(e){i=i.filter((function(n){return n[0]!==e}))})(u),r.delete(u)},setCookieOptions:function(){return null},setCookieEnabled:function(){return null},get registeredCookiesWrapper(){return e.wrappers}}}},ur=function(e){return void 0===e&&(e=!1),function(n,t){var r=cr();try{Object.defineProperty(window,ir,{configurable:e,set:function(e){var n=e();n===ar?e(r):"mrlqf5trgho"===n&&(r=cr())}})}catch(e){}return window[ir]=function(e){return e&&(r=e),ar},r(n,t)}}(),lr=function(e){return e.includes("*")},dr=function(e,n){return[new RegExp("^"+e.replace(/\*/g,".*")+"$"),n]},pr=function(e){return Be(e).filter(lr).map((function(n){return dr(n,e[n])}))},fr=function(e,n){for(var t=0,r=n;t<r.length;t++){var o=r[t];if(o[0].test(e))return o[1]}return null},mr=function(e,n){switch(e){case hn:return!0;case yn:return n===Wt||n===Qt;case wn:return n===Qt;default:return!0}},vr=function(e){switch(e){case"include":case"obfuscate":return!0;case"exclude":return!1}},gr=function(e){var n=Object.assign({},e.items),t=pr(n),r=function(e){return n[e]||fr(e,t)||Jt};return function(n,t){var o=rn().requireConsent,i=!qe(n),a=i?[n]:n,s=function(){var n=function(){return a.map((function(e){return{name:e,allowed:!o}}))},i=t||e.getConsent();if(!i)return n();if(i.mode===_n){var s=function(e,n,t){var r=n&&Yn(n,t);if(!r)return null;for(var o=[],i={},a=0,s=r.patches;a<s.length;a++){var c=s[a],u=c.action,l=c.with,d=void 0===l?null:l,p=c.item;if(p.type===e){var f={action:u,data:d};i[p.key]=f,lr(p.key)&&o.push(dr(p.key,f))}}return{source:r.source,getModifier:function(e){return i[e]||fr(e,o)}}}(e.type,i.modifier,e.log);if(!s)return n();var c=s.source;return a.map((function(e){var n=s.getModifier(e),t=function(e,n){return"obfuscate"===e?n:null}(null==n?void 0:n.action,null==n?void 0:n.data),o={name:e,allowed:null!=n&&n.action?vr(n.action):mr(c,r(e))};return null!==t&&(o.data=t),o}))}return a.map((function(e){return{name:e,allowed:mr(i.mode,r(e))}}))}();return i?s[0]:s}},hr=Object.freeze({__proto__:null,createCheckConsentWrapper:gr,createMask:dr,getByMask:fr,isMask:lr,itemsToMask:pr}),yr=function(e){var n=e&&e.length;return 16===n||36===n?e:null},wr=function(){var e={pa_vid:function(e){return yr(Ze(e||"",!0)||e)},atuserid:function(e){var n;return yr((null===(n=Ze(e||"",!0))||void 0===n?void 0:n.val)||"")}};return function(n){for(var t=function(n){try{var t=function(){if(n.ls)return function(e){var n=function(e){return Ke((function(){return window.localStorage.getItem(e)}))},t=n(e),r=Ke((function(){return parseInt(Ze(n("_ls_ttl"))[e],36)}));return r&&r<=Date.now()?null:t}(n.ls)||null;var t=Re.get(n);return e[n]&&t?e[n](t):t}();if(t)return{value:t}}catch(e){}},r=0,o=n;r<o.length;r++){var i=t(o[r]);if("object"==_typeof(i))return i.value}return null}}(),_r=[{ls:"_cX_P"},"cX_P"],br={PA:{browserId:["pa_vid","atuserid"].concat(_r)},DMP:{browserId:_r}},kr={browserId:{source:"DMP"}},Cr=function(e){var n,t=Ue(Ue({},kr),function(e,n){return void 0===n&&(n=Wn),Be(e||{}).reduce((function(t,r){var o=null==e?void 0:e[r],i=Qn((null==o?void 0:o.source)||"",n);return t[r]=Ue(Ue({},o),{source:i}),t}),{})}(null===(n=rn())||void 0===n?void 0:n.migration));Be(t).forEach((function(n){var r,o,i=e.params.get(n),a=t[n]===kr[n],s=null===(r=t[n])||void 0===r?void 0:r.source,c=s&&(null===(o=br[s])||void 0===o?void 0:o[n])||[];if(i&&c.length){var u=wr(c);u&&(i.readonly=!1,e.updateValues(n,u,!0),i.readonly=!a)}}))},Ir="@@Data-layer/",Sr=Ir+"update_value",Er=Ir+"refresh_value",Pr=function(){var e=Ue({},window.pdl),n=function(e){return function(e,n){return Ge(e)?Be(e).reduce((function(t,r){var o=e[r],i=n[r],a=i&&i(o);return void 0!==a&&(t[r]=a),t}),{}):e}(e,{path:String,domain:String,secure:Xe,expires:function(e){return e instanceof Date?e:Number(e)},samesite:function(e){return He(e)?e:Xe(e)}})};return null!=e&&e.cookies&&(e.cookies=Be(e.cookies).reduce((function(t,r){return t[r]=n(e.cookies[r]),t}),{})),null!=e&&e.cookieDefault&&(e.cookieDefault=n(e.cookieDefault)),e},xr=function(e){var n=Be(rr).reduce((function(e,n){return e[n]=rr[n].consent,e}),{}),t=function(n){var t;return n||(null===(t=e.get("consent"))||void 0===t?void 0:t.DL)||null},r=gr({items:n,type:"cookie",getConsent:t}),o=t(),i=function(n){var t,o={_pprv:!rn().requireConsent},i=null===(t=e.getConnection())||void 0===t?void 0:t.registeredCookiesWrapper;if(i){var a=Be(i).map((function(e){return i[e].cookieName}));r(a,n).forEach((function(e){var n=e.name,t=e.allowed,r=e.data,a=t&&!o[n];i[n].setCookieEnabled(a,r||null)}))}};e.addChangeListener("consent",(function(e){var n=(null==e?void 0:e.DL)||null;(null==o?void 0:o.mode)!==(null==n?void 0:n.mode)&&(o=n,i(n))})),i(o)},Tr=function(e,n,t){var r=1===t?"can not be":"was";console.warn('[DL]: Consent v2: the "'.concat(e,'" has a conflicted consent mode, ')+"mode ".concat(r,' changed to "').concat(n,'"'))},Ar=function(e,n,t){var r,o=function(e,n){return{fields:Be(e).reduce((function(n,t){var r=e[t].cookieName;return null!==r&&(n[t]=r),n}),{}),cookieByName:n}}(e,n),i=ur("data-layer",o),a=!1,s=new Map,c=new Set,u=new Map,l=function(){if(!i)throw new Error("DataLayer can't be connected");return i},d=function(e){var n=l().registeredCookiesWrapper;n&&e(n)},p=function(e){d((function(n){e.forEach((function(e){var t=n[e];t&&t.lazyActive()}))}))},f=function(){var e=null;return d((function(n){e=Be(n).reduce((function(e,t){var r=n[t].cookieEnabled,o=n[t].fixedAt||null;return e[n[t].cookieName]=r?{enabled:r,fixedAt:o}:null,e}),{})})),e},m=function(){var e={},n=function(n){return Be(e).reduce((function(t,r){var o=e[r];return void 0!==o[n]&&(t[r]=o[n]),t}),{})};return{add:function(n,t){e[n]=t},call:function(){var e;e=n("protect"),Be(e).length>0&&l().setProtectionData(e),function(){var e=n("protectUnsafe");Be(e).length>0&&l().setProtectionDataUnsafe(e)}()}}},v=function(e,n){return Be(e).reduce((function(t,r){var o=u.get(r),i=e[r];return o&&(t[r]=n?n(o,i):o.get(i)),t}),{})},g=function(){return{params:u,getConnection:l,addChangeListener:C,get:w,updateValues:y}},h=function(e){var n=!1;Be(e).forEach((function(t){var o,i=t,a=u.get(i);if(a){var c=e[i];r[i]!==c&&(r[i]=c,n=!0,null===(o=s.get(i))||void 0===o||o.forEach((function(e){return e(a.get(c))})))}})),n&&c.forEach((function(e){return e(v(r))}))},y=function(e,n,t){var o;void 0===t&&(t=!1);var i=e,a=Qe();He(e)&&((o={})[e]=n,i=o);var s=m(),c=m();i=Be(i).reduce((function(e,n){var t=i[n],o=u.get(n),l=n;return null!=o&&o.readonly||(o&&o.cookieName&&a.add(o.cookieName),!o||t===r[n])?e:t===Er?(e[n]=o.refresh(r[n],(function(e){c.add(l,e)})),e[n]!==r[n]&&s.add(l,{protectUnsafe:!1}),e):t===Sr?(e[n]=o.update(r[n],(function(e){c.add(l,e)})),e):(e[n]=o.set(t,r[n],(function(e){c.add(l,e)})),e)}),{}),p(a.values()),s.call();var d=l().updateData(i);if(d&&t){var f=Be(d).reduce((function(e,n){var t;return Ue(Ue({},e),((t={})[n]=!1,t))}),{});l().setProtectionDataUnsafe(f),l().updateData(i)}return c.call(),d&&v(d)};function w(e){var n,t,o=Qe(),i=He(e);return void 0===e?t=r:i?((n={})[e]=r[e],t=n):t=e.reduce((function(e,n){return u.has(n)&&(e[n]=r[n]),e}),{}),t=v(t,(function(e,n){return e.cookieName&&o.add(e.cookieName),e.get(n)})),p(o.values()),i?t[e]:t}function _(e,n){return y(e,n,!1)}var b=function(e,n){void 0===n&&(n=!1);var t=e;return qe(e)||(t=[e]),y(t.reduce((function(e,n){return e[n]=Sr,e}),{}),void 0,n)},k=function(e,n,t){var r;void 0===t&&(t=!1);var o=t?l().setProtectionDataUnsafe:l().setProtectionData,i=e;return He(e)&&((r={})[e]=n,i=r),o(i)};function C(e,n){var t;He(e)?null===(t=s.get(e))||void 0===t||t.add(n):c.add(e)}return{init:function(n){if(void 0===n&&(n={}),!a){i||(i=ur("data-layer",o)),function(e){var n=Ue(Ue({},e),Pr()),t=n.cookieDefault;d((function(e){Be(e).forEach((function(r){var o,i,a,s,c=e[r].cookieName,u=null===(o=n.cookies)||void 0===o?void 0:o[c],l="fixed"===(null===(i=n.cookies)||void 0===i?void 0:i.storageMode);null===(s=(a=e[r]).setFixedMode)||void 0===s||s.call(a,l),(t||u)&&e[r].setCookieOptions(Ue(Ue({},t),u))}))}))}(n),a=!0,Be(e).forEach((function(n){var t=e[n];s.set(n,new Set),u.set(n,t)}));var c=!1,p=l().getInitCookieData(),f=l().getCachedData(),v=m(),y=Be(e).reduce((function(n,t){var r=t,o=e[t];return n[t]=(null==f?void 0:f[r])||o.init(null==p?void 0:p[r],(function(e){v.add(r,e)})),null!=f&&f[r]||(c=!0),n}),{});r=y,c&&l().updateData(y),v.call(),l().onUpdateData((function(e){return h(e)})),null==t||t(g())}},set:_,get:w,update:function(e){return b(e)},refresh:function(){var e;if(l().setProtectionData(((e={})["@@Data-layer/refresh_locked_key"]=!0,e)))return!1;var n=[];u.forEach((function(e,t){return n.push(t)}));var t=n.reduce((function(e,n){return e[n]=Er,e}),{});return y(t),!0},protect:function(e,n){return k(e,n)},addChangeListener:C,removeChangeListener:function(e){c.delete(e),s.forEach((function(n){return n.delete(e)}))},terminate:function(){null==i||i.terminate(),s.clear(),c.clear(),i=null,a=!1,r={}},updateMigration:function(){a&&Cr(g())},get isReady(){return a},utils:{validateModifier:Yn,validateConsent:$n,checkConsent:hr,setConsent:function(e,n,t){w("consent");var r=qn(w("purposes"),0,e,n,t);return r?r.error?r.error:(_({consent:r.consent,purposes:r.purposes}),null):null},getConsent:function(){var e=w(["consent","purposes"]),n=e.consent,t=e.purposes;return zn(n,t)},notAcquiredConsent:Rn()?Be(En).reduce((function(e,n){return e[n]={mode:"not-acquired",products:En[n]},e}),{}):null},get cookies(){return f()},get cookieEnabled(){return f()},setUnsafe:function(e,n){y(e,n,!0)},protectUnsafe:function(e,n){return k(e,n,!0)},updateUnsafe:function(e){return b(e,!0)},setCookieEnabled:function(e){d((function(n){var t=Be(e);t.length?t.forEach((function(t){var r=n[t];r&&r.setCookieEnabled(e[t])})):Be(n).forEach((function(t){n[t].setCookieEnabled(e)}))}))}}}(Bt,or,(function(e){xr(e),Cr(e),function(e){var n=null,t={},r=function(n){var r=zn(n,e.get("purposes"));if(r&&n){var o=!1,i=Be(r).reduce((function(e,i){var a=r[i].mode;return r[i].products.forEach((function(r){var i;a!==(null===(i=n[r])||void 0===i?void 0:i.mode)&&(Ln(a,r)?t[r]||(t[r]=!0,Tr(r,a,1)):(e[r]={mode:a},o=!0,Tr(r,a,2)))})),e}),{});o&&e.updateValues({consent:i})}};e.addChangeListener("consent",(function(e){Rn()&&(n&&(clearTimeout(n),n=null),n=setTimeout((function(){r(e),n=null}),200))})),Rn()&&r(e.get("consent"))}(e)})),Mr=function(e){return function(){var n=e.dataLayer.get("consent");return n&&n[e.productName]||null}},Or=function(e,n){var t=null,r=function(r){var o=(null==r?void 0:r[e.productName])||null;o!==t&&(t=o,n(o))};return e.dataLayer.addChangeListener("consent",r),function(){e.dataLayer.removeChangeListener(r)}},Nr=function(e,n){return e.utils.checkConsent.createCheckConsentWrapper(n)},Rr=function(e,n,t){var r=e.utils.checkConsent,o=r.itemsToMask(n),i=Object.keys(n).filter((function(e){return!r.isMask(e)}));return t().filter((function(e){return i.includes(e)||r.getByMask(e,o)}))},Lr=function(e,n,t){var r=Mr(t),o=Nr(t.dataLayer,{items:t.items,type:n,getConsent:r}),i=function(n){var r;null===(r=o(Rr(t.dataLayer,t.items,e.getNames),n))||void 0===r||r.forEach((function(n){n.allowed?n.data&&e.set(n.name,n.data):e.remove(n.name)}))};return function(){var e=void 0===t.checkConsentOnInit&&t.enableAutoRemove;t.enableAutoRemove&&Or(t,i),e&&i(r())}(),Object.assign({},e,{set:function(n,t,r){var i,a=o(n);if(null!=a&&a.allowed){var s=null!==(i=a.data)&&void 0!==i?i:t,c=r?[n,s,r]:[n,s];e.set.apply(null,c)}},check:o})},Dr=function(e){var n=function(e){var n,t,r=Le.__protected__.ttlName,o={dataLayer:e,productName:"DL"},i=(t=Nr(o.dataLayer,{items:(n={},n[r]="mandatory",n),type:"localStorage",getConsent:Mr(o)}),function(){var e=t(r);return e.allowed&&!e.data}),a=!0,s=function(){(a=i())||Le.remove(r)};return Or(o,s),s(),function(){return a}}(e.dataLayer),t=Lr(Le,"localStorage",e);return Object.assign({},t,{set:function(e,r,o){var i=o;return(null==o?void 0:o.expires)&&!n()&&delete(i=Object.assign({},o)).expires,t.set(e,r,i)}})},Ur=function(e){var n=e.dataLayer.utils.checkConsent,t=Mr(e),r={},o=[],i={},a={};Object.keys(e.items).forEach((function(t){var a=e.items[t];if(a.type){var s=a,c=s.type,u=s.domain,l=s.path,d={};i[t]=c,u&&(d.domain=u),l&&(d.path=l),n.isMask(t)?o.push(n.createMask(t,d)):r[t]=d}else i[t]=a}));var s,c=Nr(e.dataLayer,{items:i,type:"cookie",getConsent:t}),u=function(t){var s;null===(s=c(Rr(e.dataLayer,i,Re.getNames),t))||void 0===s||s.forEach((function(e){var t=function(){return r[e.name]||n.getByMask(e.name,o)||a};e.allowed?e.data&&Re.set(e.name,e.data,t()):Re.remove(e.name,t())}))};s=!(void 0!==e.checkConsentOnInit||!e.enableAutoRemove),e.enableAutoRemove&&(a=e.enableAutoRemove,Or(e,u)),s&&u(t());return Object.assign({},Re,{check:c,set:function(e,n,t,r){var o,i=c(e);null!=i&&i.allowed&&Re.set(e,null!==(o=i.data)&&void 0!==o?o:n,t,r)}})},jr=function(e,n){return void 0===n&&(n=""),Object.entries(e).reduce((function(e,t){var r=t[0],o=t[1];return e[r]=function(e,n){void 0===n&&(n="Method");var t=function(){var t;return null===(t=null==pn?void 0:pn.util)||void 0===t||t.debug("".concat(n," is deprecated")),e.apply(this,arguments)};return t.skipLog=e,t}(o,n+String(r)),e}),{})},Vr=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(location.hostname),Fr=Ae.cookie.getTopLevelDomain(),Br={COMPOSER:{cookie:{items:{__tbc:"mandatory",xbc:"mandatory",__tac:"mandatory",__tae:"mandatory",__pls:{type:"mandatory",domain:Fr,path:"/"},"__pls_*":{type:"mandatory",domain:Fr,path:"/"},"_pc_*":{type:"mandatory",domain:"",path:"/"}}},localStorage:{items:{__pnml:"mandatory","__tp-customVariables":"essential","__tp-customVariables-expiration":"essential"},enableAutoRemove:!0}},VX:{cookie:{items:{"__ut_*":"mandatory",__ut:"mandatory",__pvi:"optional",__pat:"optional",__pnahc:"mandatory","glt_*":"optional","__utg_*":"optional",__gom:"optional","tpcc_*":{type:"optional",domain:Vr?"":Fr,path:"/"}}},localStorage:{items:{"__tp-gaAccount":"optional","__tp-trackOnlyAids":"optional","__tp-metricsGAAccount":"optional","__tp-exrs":"optional",tp__unprocessedCookies:"optional","tp__unprocessedСookies":"optional","__tp-gaAccount-expiration":"optional","__tp-trackOnlyAids-expiration":"optional","__tp-metricsGAAccount-expiration":"optional","__tp-exrs-expiration":"optional"},enableAutoRemove:!0}},DMP:{cookie:{items:{cX_P:"essential"},enableAutoRemove:{domain:Fr,path:"/"}},localStorage:{items:{_cX_P:"essential"},enableAutoRemove:!0}},ID:{cookie:{items:{__utp:"mandatory","__utp_*":"mandatory",__pid:"mandatory",__pil:"essential",__idr:"essential",__eea:"essential","piano-id-initial-gm-sso-shown-*":"mandatory"}},localStorage:{items:{"pnid-tc-string":"optional"},enableAutoRemove:!0}}},qr=["opt-in","essential","opt-out","custom"],zr=["PA","DMP","COMPOSER","ID","VX","ESP","SOCIAL_FLOW","DL"].reduce((function(e,n,t){var r;return p(p({},e),((r={})[n.toLowerCase()]={name:n,id:t},r))}),{});zr["social flow"]=zr.SOCIAL_FLOW;var Gr=function(e){return zr[e.toLowerCase()]||null},Hr=function(){return window.pdl||null},Wr=function(){var e;return!(null===(e=Hr())||void 0===e||!e.requireConsent)},Jr=function(){var e;return"v2"===(null===(e=Hr())||void 0===e?void 0:e.requireConsent)},Qr=function(){return Wr()?Jr()?2:1:null},Xr=function(){return!(Wr()&&!Jr())||(console.error('Consent v2 is disabled. To use the feature set pdl.requireConsent = "v2"'),!1)},Yr=function(){return!Jr()||(console.error("Consent v2 is enabled. To change consent use tp.consent.setByPurpose or tp.consent.setAllPurposes"),!1)},$r=Object.entries({AD:["DMP","SOCIAL_FLOW"],CP:["COMPOSER"],AM:["PA"],PR:["ESP","VX","ID"],DL:["DL"]}).reduce((function(e,n){var t=n[0];return n[1].forEach((function(n){e[Gr(n).id]=t})),e}),{}),Kr=function(e){var n=e.reduce((function(e,n){var t,r=n.id;return p(p({},e),((t={})[r]=4,t))}),{}),t=Ar.get("purposes")||{};return{addConsent:function(e,t){var r=Gr(e).id;n[r]=function(e){return qr.indexOf(e)}(t)},addPurpose:function(e,n){t[Gr(e).id]=n},toModeParamString:function(){return JSON.stringify(n)},toPurposeParamString:function(){return Object.entries(t).some((function(e){var n=e[0];return e[1]!==$r[n]}))?JSON.stringify(t):null}}};pn.container.register("consent",{useValue:function(){var e=!1,n=[],t={composer:null,vx:null,dmp:null,id:null};var r=function(e){e(t)},o=jr({setByPreset:function(e){Yr()&&Ar.set("consent",e)},set:function(e,n){var t;Yr()&&("string"==typeof e?Ar.set("consent",((t={})[e]=n,t)):Ar.set("consent",e))},get:function(e){var n=Ar.get("consent");return e&&n?n[e]:n}},"tp.consent.");return{setByPreset:o.setByPreset,set:o.set,get:o.get,setByPurpose:function(e,n,t){if(Xr()){if(!n)return void pn.util.error("consent.setByPurpose: mode is required");var r=Ar.utils.setConsent(e,n,t);r&&pn.util.error("consent.setByPurpose: [DL]: "+r)}},setAllPurposes:function(e){if(Xr()){var n=Ar.utils.setConsent(e);n&&pn.util.error("consent.setAllPurpose: [DL]: "+n)}},getByPurpose:function(){return Ar.utils.getConsent()},get composer(){return t.composer},get vx(){return t.vx},get dmp(){return t.dmp},get id(){return t.id},__protected__:{getVersion:Qr,addConsentsToParams:function(e){var n,t=Ar.get("products"),r=2===Qr()?Ar.utils.getConsent():null,o=1===Qr()?Ar.get("consent"):null,i=!(null===(n=Hr())||void 0===n||!n.requireConsent);if(!(r&&o||i))return e;var a=Kr(t);o&&Object.keys(o).forEach((function(e){a.addConsent(e,o[e].mode)})),r&&Object.keys(r).forEach((function(e){var n=r[e],t=n.mode;n.products.forEach((function(n){a.addConsent(n,t),a.addPurpose(n,e)}))}));var s=a.toModeParamString(),c=a.toPurposeParamString();return s&&(e.consent_modes=s),c&&(e.consent_purposes=c),e},init:function(){var o,i=pn.debug?function(e){var n;null===(n=pn.util)||void 0===n||n.debug("[PDL validation]: "+e)}:void 0,a=Hr(),s=function(){var e;return(null===(e=Hr())||void 0===e?void 0:e.consent_modifiers)||null}();s&&(Object.keys(s).forEach((function(e){var n,t=s[e],r=null===(n=Gr(e))||void 0===n?void 0:n.name;r&&(delete s[e],s[r]=t)})),null===(o=Ar.get("products"))||void 0===o||o.forEach((function(e){var n=e.name;if(s[n]){var t=function(e){return pn.debug?function(n){var t;null===(t=pn.util)||void 0===t||t.debug("[PDL validation]: consent_modifier: ".concat(e," - ").concat(n))}:void 0}(n);s[n]=Ar.utils.validateModifier(s[n],t)}}))),null!=a&&a.consent&&(a.consent=Ar.utils.validateConsent(a.consent,i)||a.consent);var c={domain:pn.cookieDomain||Ae.cookie.getTopLevelDomain(),path:pn.cookiePath||"/"};Object.entries(Br).forEach((function(e){var n,r=e[0],o=e[1],i=r,a=i.toLowerCase(),s={dataLayer:Ar,productName:i};t[a]={cookie:Ur(p(p(p({},s),o.cookie),{enableAutoRemove:null!==(n=o.cookie.enableAutoRemove)&&void 0!==n?n:c})),localStorage:Dr(p(p({},s),o.localStorage))}})),n.forEach(r),n=[],e=!0},getConsentConfig:function(){return pn.debug?Br:null},async:function(t){e?r(t):n.push(t)}}}}()}),pn.consent=pn.container.resolve("consent");var Zr={name:"cookie",raw:!1,set:function(e,n,t){var r=t;Ae.cookie.set(e,n,r)},get:function(e){return Ae.cookie.get(e)||void 0},remove:function(e,n){return null!==Ae.cookie.get(e)&&(Ae.cookie.remove(e,n),!0)}};pn.container.register("cookie",{useValue:Zr}),pn.cookie=pn.container.resolve("cookie");var eo=function(){var e=function(){try{return window.localStorage}catch(e){return null}}();window.name||(window.name=Math.floor(1e8*Math.random()));return{get:function(n){if(e&&"function"==typeof e.getItem){var t=Ae.localStorage.get(n);try{return JSON.parse(t)}catch(e){return t}}},set:function(n,t){!e||"function"!=typeof e.getItem||Ae.localStorage.set(n,JSON.stringify(t))},remove:function(n){!e||"function"!=typeof e.getItem||Ae.localStorage.remove(n)}}}();pn.container.register("localStorage",{useValue:eo}),pn.localStorage=pn.container.resolve("localStorage");var no=function(){var e=function(){return"1.7.133"};return window.__tpVersion="1.7.133",{name:"versionService",getTinypassVersion:e}}();pn.container.register("versionService",{useValue:no}),pn.versionService=pn.container.resolve("versionService");var to=function(e){void 0===e&&(e=pn.container);var n,t,r,o=e.resolve("ajax"),i=e.resolve("localStorage"),a=e.resolve("consent"),s="tp__unprocessedCookies",c={};function u(){n&&clearTimeout(n),n=setTimeout((function(){o.request({url:pn.cloudflareWorkerUrl+"?maxAge=2628000",type:"POST",data:JSON.stringify(c),crossDomain:!0,xhrFields:{withCredentials:!0},success:function(){c={},i.remove(s)},error:function(e,n){console.error(n)}})}),2500)}function l(){try{var e=i.get(s);e&&Object.keys(e).forEach((function(n){c[n]=e[n]}))}catch(e){console.error(e)}}return t="tp__unprocessedСookies",(r=i.get(t))&&(i.remove(t),i.get(s)||i.set(s,r)),{name:"itp",init:function(){!pn.cloudflareWorkerUrl||!pn.util.isSafariOrUiWebView()||(l(),Object.keys(c).length>0&&u())},synchronizeCookie:function(e,n,t){!pn.cloudflareWorkerUrl||!pn.util.isSafariOrUiWebView()||(l(),function(e,n,t){c[e]={value:n},t&&(t instanceof Date?c[e].expires=t:c[e].maxAge=3600*t)}(e,n,t),function(){var e=a.vx;null!==e&&e.localStorage.set(s,JSON.stringify(c))}(),u())}}}();pn.container.register("itp",{useValue:to}),pn.itp=pn.container.resolve("itp");pn.container.register("util",{useValue:function(e){void 0===e&&(e=pn.container);var n,t=e.resolve("jqUtils"),r=e.resolve("cookie"),o=e.resolve("versionService"),i=e.resolve("itp"),a=e.resolve("consent"),s="",c={ENABLED_AFTER_DISABLED:-2,NOT_DETECTED:-1,DISABLED:0,ENABLED:1};void 0==="testString".toHex&&Object.defineProperty(String.prototype,"toHex",{enumerable:!1,value:function(){for(var e="",n=0;n<this.length;++n)e+=""+this.charCodeAt(n).toString(16);return e}});var u=function(e,n,t){var o={path:"/",expires:0};void 0!==n&&(o.domain=n),void 0!==t&&(o.path=t),r.remove(e,o)},l=function(e,n,t){-1!==n.indexOf("abril.com.br")&&u(e,".abril.com.br",t),-1!==n.indexOf("scotsman.com")&&u(e,".scotsman.com",t)},d=function(e){var n;if(0===document.cookie.length)return null;if(e instanceof RegExp)for(var t=document.cookie.split(";"),r=0;r<t.length;r++){var o=t[r].indexOf("=");if(-1!==o){var i,a=t[r].substr(0,o).trim();if(e.test(a)){i=t[r].substr(o+1).trim();try{return decodeURIComponent(i)}catch(n){m('Could not uri-decode cookie "'+e.toString()+'"',n)}return i}}}else{var s=("; "+document.cookie).split("; "+e+"=");if(s.length>=2){var c=null===(n=s.pop())||void 0===n?void 0:n.split(";").shift();if(void 0===c)return null;try{return decodeURIComponent(c)}catch(n){m('Could not uri-decode cookie "'+e+'"',n)}return c}}return null},f=function(e){if(0===document.cookie.length)return[];for(var n=[],t=document.cookie.split(";"),r=0;r<t.length;r++){var o=t[r].indexOf("=");if(-1!==o){var i,a=t[r].substr(0,o).trim();if(e instanceof RegExp&&e.test(a)){i=t[r].substr(o+1).replace(/^\s+|\s+$/g,"");try{i=decodeURIComponent(i)}catch(n){m('Could not uri-decode cookie "'+e.toString()+'"',n)}n.push({name:a,value:i})}else if(a===e){i=t[r].substr(o+1).replace(/^\s+|\s+$/g,"");try{i=decodeURIComponent(i)}catch(n){m('Could not uri-decode cookie "'+e+'"',n)}n.push({name:a,value:i})}}}return n};function m(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];!0===pn.debug&&g.apply(void 0,e)}function v(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t;g.apply(void 0,e),(t="string"==typeof arguments[0]?new Error(arguments[0]):new Error).stack&&g(t.stack)}function g(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(window.console&&window.console.log&&window.console.log.apply&&window.console.log.apply.call&&void 0!==window.console&&void 0!==window.console.log){var t=["TP:"];try{for(var r=0;r<e.length;r++)t.push(e[r])}catch(n){t=e}Y()&&(t=y(t)),"object"==_typeof(window.console.log)?window.console.log.apply.call(this,console,t):console.log.apply(console,t)}}var h=function(){var e=0;return window.pageYOffset?e=window.pageYOffset:e="number"==typeof(e=document.documentElement||document.body.parentNode).scrollTop?e.scrollTop:document.body.scrollTop,e},y=function(e){var n="";try{for(var t=0;t<e.length;t++)try{n+=JSON.stringify(e[t])+", "}catch(e){n+=""+e}return[n]}catch(n){return e}},w=function(){var e,n;return"CSS1Compat"===document.compatMode?(e=document.documentElement.clientWidth,n=document.documentElement.clientHeight):(e=document.body.clientWidth,n=document.body.clientHeight),{x:e,y:n}},_=function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))},b=function(e){var n=e(location.href);if(history&&"function"==typeof history.replaceState){var t="object"==_typeof(window.next)&&"object"==_typeof(window.next.router)?{url:e(history.state.url||""),as:e(history.state.as||""),options:history.state.options}:history.state;history.replaceState(t,document.title,n)}else location.href=n},k=function(e,n,t){var r=p({path:"/",expires:730},t&&{domain:t}),o=P();for(var i in o)u(e,o[i]);r.domain&&l(e,r.domain),(pn.cookieDomain||pn.cookiePath)&&(r.domain=pn.cookieDomain?pn.cookieDomain:r.domain,u(e,r.domain,r.path),r.path=pn.cookiePath?pn.cookiePath:r.path,u(e,r.domain,r.path)),u(e),W("composer",e,n,r)},C=function(){return Ae.cookie.getTopLevelDomain()},I=function(e){return pn.useAidSpecifiedCookies&&pn.aid?e+"_"+pn.aid:e},S=function(){var e,n=I("__pls"),t=d(n);if(t)try{if((e=JSON.parse(t))&&!Array.isArray(e))throw new Error("Push list subscriptions must be an array")}catch(e){m("Can't get push list subscriptions",e)}return e},E=function(e){n=e;var t=C();W("vx","__pat",n,{path:"/",expires:30,domain:t})},P=function(){var e,n=[];n.push(document.domain);for(var t=(null===(e=document.domain)||void 0===e?void 0:e.split("."))||[];t.length>=2;)n.push("."+t.join(".")),t.shift();return n},x=function(e){var n=H(e);return"boolean"===t.type(n)||"string"===t.type(n)&&n.length?!0===n||"true"===n?c.ENABLED:c.DISABLED:c.NOT_DETECTED},T=function(){var e=H("__pnahc"),n=!1;return void 0===e&&(e="0",n=!0),{cookieValue:parseInt(e,10),isFirst:n}},A={},M=function(e){A[e]?A[e].counter++:A[e]={counter:1,waiters:[]}},O=function(e,n){if(A[e]&&(A[e].counter--,A[e].counter<=0)){var t=[];A[e].waiters.forEach((function(e){t.push(e)})),delete A[e],t.forEach((function(e){e(void 0!==n?n:{})}))}},N=function(){return navigator.userAgent||navigator.vendor||window.opera},R=function(){return o.getTinypassVersion().indexOf("SNAPSHOT")>=0},L=function(){return"https:"===document.location.protocol},D=function(e,n){var t=[],r=e.indexOf(n);return-1===r?t.push(e):(t.push(e.substr(0,r)),t.push(e.substr(r+1))),t},U=function(e){var n,t,r=D(e,"=");void 0!==e&&(n=r[0],t=r[1]);var o="";return void 0!==n&&(o+=encodeURIComponent(decodeURIComponent(n))),void 0!==t&&(o+="="+encodeURIComponent(decodeURIComponent(t))),o},j=function(e){if(!e)return"";var n=function(e){var n=e.indexOf("?"),t=e.indexOf("#"),r=!1;-1!==t&&(r=!0);var o=!1;-1!==n&&(o=!0),r&&o&&t<n&&(o=!1);var i,a="",s="";if(o){var c=D(e,"?");if(i=c[0],r){var u=D(c[1],"#");a=u[0],s=u[1]}else a=c[1]}else if(r){var l=D(e,"#");i=l[0],s=l[1]}else i=e;return{schemeDomainAndPath:i,queryString:a,hash:s,hasQueryString:o,hasHash:r}}(e=e.replace(/^((%20)|\s)+/,"")),t=encodeURI(decodeURI(n.schemeDomainAndPath));return n.hasQueryString&&(t+="?"+function(e){var n="";if(void 0!==e)for(var t=e.split("&"),r=0;r<t.length;r++)r>0&&(n+="&"),n+=U(t[r]);return n}(n.queryString)),n.hasHash&&(t+="#"+encodeURIComponent(decodeURIComponent(n.hash))),t},V=function(e){var n=parseInt(e,10);return!(isNaN(parseFloat(n))||n<0||n>255)},F=function(e){var n=document.createElement("a");n.href=/^https?:\/\//i.test(e)?e:"http://"+e;var t=n.hostname;return 0===t.indexOf("www.")&&(t=t.replace("www.","")),t};var B=function(e,n){return new RegExp("\\?"+n,"gi").test(e)?e.split("&").length>1?e.replace(new RegExp(n+"[^&]+&?","gi"),""):e.replace(new RegExp("\\?"+n+"[^&]+&?","gi"),""):new RegExp("\\&"+n,"gi").test(e)?e.replace(new RegExp("\\&"+n+"[^&]+","gi"),""):e},q=function(e){try{var n=new Error;z({trace:Z(n.stack,6),desc:"clearing __tp cookie",accessTokenList:e})}catch(e){}},z=function(e){try{var n=pn.user.getProvider(),t=JSON.stringify([p({aid:pn.aid,up:n.getName(),url:window.location.href,t:(new Date).getTime(),v:o.getTinypassVersion(),tags:["sdk"]},e)]);pn.api.callApi("/anon/error/log",{log_message:t})}catch(e){}};var G=function(e){e||(e=730);var n=pn.getMaxCookieExpirationInDays();if(null!==n){var t;"number"==typeof e?(t=new Date).setDate(t.getDate()+e):t=e;var r=new Date;if(r.setDate(r.getDate()+n),t>r)return n}return e},H=function(e){return r.get(e)},W=function(e,n,t,o){var i;a[e]||m("CONSENT ERROR: Consent module was not initiliazed"),J(n,t,o,(null===(i=a[e])||void 0===i?void 0:i.cookie.set)||r.set)},J=function(e,n,t,o){void 0===o&&(o=r.set),t=t||{},"11C6aYHwtb"===pn.aid?(t.samesite="none",t.secure=!0):t.samesite="lax",t.expires&&(t.expires=G(t.expires)),o(e,n,t),void 0!==i.synchronizeCookie&&i.synchronizeCookie(e,n,t.expires)},Q="__tp-",X="-expiration",Y=function(){var e=["__webdriver_evaluate","__selenium_evaluate","__webdriver_script_function","__webdriver_script_func","__webdriver_script_fn","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__driver_evaluate","__selenium_unwrapped","__fxdriver_unwrapped"],n=["_phantom","__nightmare","_selenium","callPhantom","callSelenium","_Selenium_IDE_Recorder"];for(var t in n){if(window[n[t]])return!0}for(var r in e){var o=e[r];if(window.document[o])return!0}for(var i in window.document)if(i.match(/\$[a-z]dc_/)&&window.document[i].cache_)return!0;return!!(window.external&&window.external.toString&&window.external.toString()&&-1!==window.external.toString().indexOf("Sequentum")||window.document.documentElement.getAttribute("selenium")||window.document.documentElement.getAttribute("webdriver")||window.document.documentElement.getAttribute("driver"))},$=function(){return H("__tac")},K=function(){return document.referrer},Z=function(e,n){return e&&e.split("\n").filter((function(e,t){return t>1&&t<n+1})).map((function(e){return e.trim()})).join("")},ee=function e(n,t){try{return n()}catch(n){return t?e(t):null}},ne=function(e,n){return void 0===n&&(n=!1),ee((function(){return JSON.parse(e)}),(function(){return n?JSON.parse(window.atob(e)):null}))||null};return{name:"util",__private__:{getAdjustedCookieExpiration:G},__protected__:{deleteTLDCookieForSpecificDomains:l,documentReady:function(e){var n=function n(){document.removeEventListener("DOMContentLoaded",n),window.removeEventListener("load",n),e()};"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(e):(document.addEventListener("DOMContentLoaded",n),window.addEventListener("load",n))},getCookie:H,setCookieConsent:W,setCookie:J,getLocalStorageItem:function(e){var n=Q+e,t=Ae.localStorage.get(n),r=Ae.localStorage.get(n+X);return r&&r<Math.floor((new Date).getTime()/1e3)?(Ae.localStorage.remove(n),Ae.localStorage.remove(n+X),null):t},hasLocalStorage:function(){try{return"object"==_typeof(window.localStorage)&&"function"==typeof window.localStorage.getItem}catch(e){return!1}},randomStringCxCompatible:function(){for(var e=(new Date).getTime().toString(36);e.length<16;)e+=Math.round(2147483647*Math.random()).toString(36);return e.substr(0,16)},setLocalStorageItem:function(e,n,t,r,o){void 0===o&&(o=!0);var i=(o?Q:"")+n,s=a[e];s?s.localStorage.set(i,t,{expires:r}):v("There is no such initiated consentProduct ->",e)},removeLocalStorageItem:function(e){var n=Q+e;Ae.localStorage.remove(n)},cameFromFbSubscriptions:function(){return 0===_("redirect_uri").indexOf("https://www.facebook.com/subscriptions/account-linking/confirm/")},logRemoveTokens:function(e){var n,t;z({uid:null!==(n=e.uid)&&void 0!==n?n:"n",desc:"clearing __utp cookie",actions:null!==(t=e.actions)&&void 0!==t?t:"n"})},waitAllPromises:function(e){return Promise.all(e)},isInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},racePromise:function(e){return Promise.race(e)},isCxenseBot:function(){var e=N();return/(cxensebot)/i.test(e)},isHttpsProtocol:L,isApplePayAllowed:function(){var e=!1;try{e=window.ApplePaySession&&window.ApplePaySession.canMakePayments()}catch(e){g("ApplePay error",e)}return(R()||L())&&e},isDevEndpoint:R,setVxUsersToDataLayer:function(e){var n=Ar.get("users"),t=!1,r=n?Object.keys(n).reduce((function(e,r){var o;return"VX"===(null===(o=n[r])||void 0===o?void 0:o.type)&&(t=!0,e[r]=null),e}),{}):{};(n&&t||e)&&Ar.set("users",p(p({},r),e))}},toJSON:function(e,n){void 0===n&&(n=!1);var t=JSON.stringify(e);return ee((function(){return n?window.btoa(t):t}))||t},parseJSON:ne,addScript:function(e,n){var t,r=document.createElement("script"),o=document.getElementsByTagName("script")[0];null===(t=o.parentNode)||void 0===t||t.insertBefore(r,o),r.type="text/javascript",r.async=!0,r.onload=n,r.src=e},fromUnderscoreToCamelCase:function(e){return e.slice().replace(/_[a-z]/g,(function(e){return e.replace("_","").toUpperCase()}))},randomString:function(e){e||(e=5);var n="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";if(window.crypto&&window.crypto.getRandomValues&&"function"==typeof Uint32Array){var r=new Uint32Array(e);window.crypto.getRandomValues(r);for(var o=0;o<e;o++)n+=t.charAt(r[o]%t.length)}else for(o=0;o<e;o++)n+=t.charAt(Math.floor(Math.random()*t.length));return n},log:g,debug:m,error:v,findCookieByName:d,findCookiesByName:f,removeVoucherCodeFromUrl:function(e){return B(e,"voucher_code")},removeSharedAccountCodeFromUrl:function(e){return B(e,"shared_account_code")},deleteCookie:u,mapArrayIndex:function(e,n){return n},getScroll:h,getPageSize:function(){return{x:Math.max(document.documentElement.clientWidth,document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth),y:Math.max(document.documentElement.clientHeight,document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight)}},getViewport:w,center:function(e,n){var t=h(),r=w();return(r={x:r.x/2-e/2,y:r.y/2-n/2+t}).x=Math.max(0,r.x),r.y=Math.max(10,r.y),r},centerScreen:function(e,n){e=e||0,n=n||0;var r=void 0!==window.screenLeft?window.screenLeft:window.screen.left,o=void 0!==window.screenTop?window.screenTop:window.screen.top,i=t.winSize();return{left:(i.width||document.documentElement.clientWidth||window.screen.width)/2-e/2+r,top:(i.height||document.documentElement.clientHeight||window.screen.height)/2-n/2+o}},getQueryParamByName:_,hasQueryParamByName:function(e){var n={};return location.search.substr(1).split("&").forEach((function(e){var t=e.split("="),r=t[0],o=t[1]&&decodeURIComponent(t[1]);r in n?n[r].push(o):n[r]=[o]})),n.hasOwnProperty(e)},removeQueryParamByName:function(e){b((function(n){return function(e,n){var t,r=e.split("#"),o=r[0].split("?");if(r.length>=2&&(t=r[1]),n=Array.isArray(n)?n:[n],o.length>=2){for(var i=o[1].split(/[&;]/g),a=0;a<n.length;a++)for(var s=encodeURIComponent(n[a])+"=",c=i.length;c-- >0;)-1!==i[c].lastIndexOf(s,0)&&i.splice(c,1);return e=o[0]+(i.length>0?"?"+i.join("&"):""),t?e+"#"+t:e}return e}(n,e)}))},setAccessTokenListCookie:function(e,n,r){var o=I("__ut");if(e&&"string"===t.type(e.value)){var i=new Date,a={domain:void 0,path:"/",expires:730};e.cookie_domain&&"localhost"!==e.cookie_domain&&t.inArray(e.cookie_domain,P())>=0&&(a.domain=e.cookie_domain),pn.cookieDomain&&(a.domain=pn.cookieDomain),pn.cookiePath&&(a.path=pn.cookiePath);var s=P();for(var c in s)u("__tac",s[c]),u("__tae",s[c]),u(o,s[c]);W("composer","__tac",e.value,a),W("composer","__tae",i.getTime(),a),W("vx",o,n,a),""===n&&!r&&q(e)}else{var l=P();if(l.push(void 0),pn.cookieDomain&&l.push(pn.cookieDomain),pn.cookiePath)for(var c in l)u("__tac",l[c],pn.cookiePath),u("__tae",l[c],pn.cookiePath),u("__eea",l[c],pn.cookiePath),u(o,l[c],pn.cookiePath);for(var c in l)u("__tac",l[c]),u("__tae",l[c]),u("__eea",l[c]),u(o,l[c]);r||q(e)}},setTpccCookies:function(){var e=_("tpcc");if(e){var n=new Date,t=JSON.stringify({date:n.getTime()}),r=C();/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(location.hostname)&&(r=""),r||(r=""),W("vx","tpcc_"+e,t,{path:"/",expires:90,domain:r})}},getCampaigns:function(e){var n=f(/^tpcc_.+/),t=_("tpcc"),r="tpcc_".concat(t),o=!1;n.forEach((function(n){e[n.name]=n.value,t&&n.name===r&&(o=!0)})),t&&!o&&(e[r]=JSON.stringify({date:Date.now()}))},getCustomCookies:function(){var e={};return f(/^_pc_.+/).forEach((function(n){e[decodeURIComponent(n.name)]=n.value})),e},ADBLOCKER_STATUS:c,getAdblockStatus:function(){var e=c.NOT_DETECTED,n=T();return pn.adblockerCookieName&&(e=x(pn.adblockerCookieName)),e===c.NOT_DETECTED&&(e=x("__pac")),e===c.NOT_DETECTED&&(e=x("__adblocker")),function(e,n){e<<=1,n===c.ENABLED?e|=1:e&=-2,n!==c.NOT_DETECTED&&W("vx","__pnahc",e+"",{path:"/",expires:90})}(n.cookieValue,e),e===c.ENABLED&&(n.isFirst||function(e){return 1==(e>>0&1)}(n.cookieValue)||(e=c.ENABLED_AFTER_DISABLED)),e},getAdblockerStatusReason:function(){return void 0!==window.blockAdBlock?"1":"0"},getAdblockerHistoryCookieInfo:T,waitCall:function(e,n){A[e]?A[e].waiters.push(n):n()},startCall:M,doneCall:O,hasCall:function(e){return!!A[e]},debounce:function(e,n,t){var r;return function(){var o=this,i=Array.prototype.slice.call(arguments),a=function(){r=null,t||e.apply(o,i)},s=t&&!r;clearTimeout(r),r=setTimeout(a,n),s&&e.apply(o,i)}},throttle:function(e,n){var t,r,o=!1;return function i(){if(o)return t=arguments,void(r=this);e.apply(this,arguments),o=!0,setTimeout((function(){o=!1,t&&(i.apply(r,t),t=r=null)}),n)}},profile:function(e){function n(){return n.__invokeCount++,e.apply(this,arguments)}return Object.defineProperty(n,"__invokeCount",{writable:!0,value:0}),Object.defineProperty(n,"invokeCount",{get:function(){return this.__invokeCount}}),n},setTbcCookieFromResponse:function(e){e.browser&&void 0!==e.browser.tbc&&k("__tbc",e.browser.tbc,e.browser.cookie_domain),e.tbc&&e.tbc.cookie_value&&k("__tbc",e.tbc.cookie_value,e.tbc.cookie_domain)},setTacCookieFromResponse:function(e){var n=(new Date).getTime(),t=$(),r=function(e,r){!e||e===t||(k("__tac",e,r),k("__tae",n,r))};e.browser&&r(e.browser.tac,e.browser.cookie_domain),e.tac&&r(e.tac.cookie_value,e.tac.cookie_domain)},setXbcCookieFromResponse:function(e){var n="xbc";if(e.xbc&&e.xbc.cookie_value){var t={path:"/",expires:730};if(e.xbc.cookie_domain&&"localhost"!==e.xbc.cookie_domain&&(t.domain=e.xbc.cookie_domain,l(n,e.xbc.cookie_domain)),pn.cookieDomain||pn.cookiePath){var r=P();for(var o in r)u(n,r[o]);t.domain=pn.cookieDomain?pn.cookieDomain:t.domain,l(n,t.domain,t.path),t.path=pn.cookiePath?pn.cookiePath:t.path,l(n,t.domain,t.path)}u(n),W("composer",n,e.xbc.cookie_value,t)}},getTbcCookie:function(){return H("__tbc")},getPcidCookie:function(){return H("_pcid")},getTacCookie:$,getAidSpecifiedName:I,getUserTokenCookie:function(){var e=I("__ut"),n=d(e);return void 0!==n&&n&&n.length>=0?n:null},getPushListsCookie:S,setPushListsCookie:function(e){if(e){var n=I("__pls"),t=S()||[];t.indexOf(e)>-1||(t.push(e),u(n),W("composer",n,JSON.stringify(t),{path:"/",expires:730,domain:C()}))}},setAppTimezoneOffsetFromResponse:function(e){e.browser&&void 0!==e.browser.app_timezone_offset?E(e.browser.app_timezone_offset):void 0!==e.timezone_offset&&E(e.timezone_offset)},setAppTimezoneOffset:E,getAppTimezoneOffset:function(){return null==n&&(n=H("__pat")),n||0},getBrowserTimezoneOffset:function(){return-Math.round((new Date).getTimezoneOffset())},str2timestamp:function(e){if(void 0!==e&&0!==e.length){if("string"!=typeof e&&(e=""+e),(e=e.trim()).match(/^[0-9]{0,10}$/))return parseInt(e);if(e.match(/^[0-9]{13,}$/))return parseInt(e)/1e3;var n=Date.parse(e);if(n)return n/1e3;if((e=(e=(e=(e=e.replace(/00:([0-9]{2}(:[0-9]{2})?\s*[AP]M)/i,"12:$1").replace(/([0-9]{2})([AP|M])/i,"$1 $2")).replace(/\s*(at|@|\-|on|\|)\s*/gi," ")).replace(/\s*(mon(day)?|tue(s?day)?|wed(nesday)?|thu((rs)?day)?|fri(day)?|sat(urday)?|sun(day)?)\s*/gi,"")).replace(/([0-9]{1,2})(st|nd|rd|th)/,"$1")).match(/\s+ET$/))e=240===(new Date).getTimezoneOffset()?e.replace(/\s+ET$/," EDT"):e.replace(/\s+ET$/," EST");if(e=e.trim(),n=Date.parse(e))return n/1e3;var t=e.match(/!^([a-z]+)[-/ ]([0-9]+)[-/ ]([0-9]+)(.*)$!i/);if(t?e=t[2]+" "+t[1]+" "+t[3]+t[4]:(t=e.match(/!^([0-9]+)[-/ ]([a-z]+)[-/ ]([0-9]+)(.*)$!i/))&&(e=t[1]+" "+t[2]+" "+t[3]+t[4]),n=Date.parse(e))return n/1e3}},getPossibleCookieDomains:P,isMobileTabletIOs:function(){var e=N();return/iPad|iPhone|iPod/.test(e)&&!window.MSStream},isIphone:function(){var e=N();return/iPhone/.test(e)&&!window.MSStream},isIOS:function(){var e=N();return/iPad|iPhone|iPod/.test(e)&&!window.MSStream},isIOsUiWebView:function(){var e=N();return/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e)},isSafariOrIOsUiWebView:function(){var e=N();return/(iPhone|iPod|iPad).*AppleWebKit/i.test(e)},isSafariOrUiWebView:function(){var e=N();return/(Macintosh|iPhone|iPod|iPad)(?!.*Chrome)(?!.*Firefox)(?!.*Opera)(?!.*MSIE)(?!.*Trident)(.*AppleWebKit|.*Safari)/i.test(e)},isFBOrInstWebView:function(){var e=N();return e.indexOf("FBAN")>-1||e.indexOf("FBAV")>-1||e.indexOf("Instagram")>-1},isAndroid:function(){var e=N();return/(android)/i.test(e)},isIE:function(){var e=-1!==(navigator&&navigator.appVersion||"").indexOf("MSIE"),n=(navigator&&navigator.userAgent||"").indexOf("Trident/")>0;return e||n},isCriOS:function(){return-1!==(navigator&&navigator.userAgent||"").indexOf("CriOS")},isRelativeUrl:function(e){return/^\/(?:\w+|\.{1,2}\/\w+)/.test(e)},prepareUrlParameter:j,getReferrer:K,getHostname:F,extractCookieDomain:function(e){if(e&&e.length&&"."===e[0])return e;var n=e||window.location.href,t=F(n);return function(e){var n=e.split("."),t=!0;return 4===n.length&&V(n[0])&&V(n[1])&&V(n[2])&&V(n[3])||(t=!1),t}(t)?t:"localhost"===t?null:"."+t},setCurrentDomainFromResponse:function(e){void 0!==e.browser&&void 0!==e.browser.cookie_domain&&O("domainIsReceived",e.browser.cookie_domain),e.tbc&&e.tbc.cookie_domain&&O("domainIsReceived",e.tbc.cookie_domain)},getCurrentDomainFromCookie:function(e,n){void 0===n&&(n=!1);try{return ne(H(e),n).domain}catch(e){M("domainIsReceived")}},isBot:Y,getAffiliateToken:function(e){var n=window.location.hash.slice(1);if(n){var t=n.split("="),r=t[0],o=t[1];r&&o&&r===e&&(b((function(e){return e.split("#")[0]})),s=o)}return s},removeAffiliateToken:function(){s=""},asUint8Array:function(e){for(var n=new Uint8Array(e.length),t=e.split(""),r=0;r<e.length;r++)n[r]=t[r].charCodeAt(0);return n},setUserSegments:function(e){var n=e.userSegments||{},t=Object.keys(n).reduce((function(e,t){var r=n[t].segments;return Array.isArray(r)&&r.length&&(e[t]={segments:n[t].segments}),e}),{});Ar.set("userSegments",Object.keys(t).length?t:null)},getPageViewContext:function(){var e=Ar.isReady&&Ar.get("content")||{},n=e.createdAt?new Date(e.createdAt).getTime():0;return(!n||isNaN(n))&&(n=void 0),{pageTitle:e.title||window.document.title,referrerUrl:j(K()||window.document.referrer),url:j(window.location.href),pageViewId:Ar.isReady&&Ar.get("pageViewId")||null,author:(e.authors||[]).join(","),created:n,section:e.section,tags:e.tags}},getBrowserId:function(){return Ar.isReady?Ar.get("browserId"):null},getCookieConsents:function(){return Ar.utils.getConsent()||Ar.utils.notAcquiredConsent}}}()}),pn.util=pn.container.resolve("util");var ro="composer-control-policy",oo="composer-request-control-policy",io=function(e){var n={},t=e;if(e){if("object"!=_typeof(e))try{t=JSON.parse(e)}catch(e){}n=["deny-web","deny-all","deny-fbia"].reduce((function(e,n){return t[n]&&(e[n]=t[n]),e}),{})}return n},ao=function(e){var n=!1,t=Object.keys(e).reduce((function(t,r){return function(e){return!!e&&Math.ceil(Date.now()/1e3)<=e}(e[r])?t[r]=e[r]:n=!0,t}),{});return{needToRemove:!Object.keys(t).length,needToUpdate:n,newValue:t}};pn.container.register("composerControlPolicy",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("localStorage"),t=io(n.get(ro)),r=function(e){var r=ao(t),o=r.needToUpdate,i=r.needToRemove,a=r.newValue;t=p(p({},a),e),(o||e)&&n.set(ro,JSON.stringify(t)),!e&&i&&n.remove(ro)};r();var o=function(e){return r(),!!t["deny-all"]||!!t[e]};return{get denyFbia(){return o("deny-fbia")},get denyWeb(){return o("deny-web")},get denyAll(){return o("deny-all")},__private__:{setPolicyByRequest:function(e){var n;if(e.getAllResponseHeaders().includes(oo)){var t=e.getResponseHeader(oo);t&&r(((n={})[t]=function(e){return void 0===e&&(e=15),Math.ceil(Date.now()/1e3)+60*e}(),n))}},checkLS:function(){t=io(n.get(ro))}}}}()}),pn.composerControlPolicy=pn.container.resolve("composerControlPolicy");var so=function(){pn.container.resolve("jqUtils");var e,n=pn.container.resolve("util"),t=pn.container.resolve("ajax"),r=n.findCookieByName(/__TP_*/);if(void 0!==window._tpm&&void 0!==window._tpm.paywallID){var o=window._tpm.paywallID;e=n.__protected__.getCookie("umc_"+o)}var i=function(){return pn.getApiEndpoint()},a=function(t,o){var i=n.__protected__.getCookie("__tac");(void 0===t||!t)&&(t={}),t.aid=pn.aid,e&&(t.umc=e),r&&(t.tp_access_token_v2=r),i&&(t.tac=i),!t.user_provider&&o&&!o.isv&&(t.user_provider=o.getName()),(void 0===t.user_token||!t.user_token)&&o&&!o.isv&&(t.user_token="string"==typeof o.getToken()?o.getToken():"");var a=n.getAffiliateToken(pn.affiliateTokenName);a&&(t.affiliate_token=a)};function s(e,r,o,s,c,u){var l;n.debug("Calling API method: "+e),l=void 0!==s?s:i(),l+=e,(void 0===r||!r)&&(r={});var d,f,m=n.getTbcCookie();m&&(r.tbc=m),pn.user&&(d=pn.user.getProvider()),a(r,d),f=function(e){n.debug("API Response",e),n.setTbcCookieFromResponse(e),n.setAppTimezoneOffsetFromResponse(e),n.setCurrentDomainFromResponse(e),void 0!==o&&o(e)};var v=function(e){var n="/access/list",t="/access/check";if(e!==n&&e!==t&&"/user/access/list"!==e&&"/user/access/check.jwt"!==e)return null;var r=Math.floor((new Date).getTime()/1e3);return e===n?{code:0,count:0,data:[],limit:0,offset:0,total:0,ts:r}:e===t?{code:0,ts:1548942314,access:{access_id:null,parent_access_id:null,granted:!1,resource:null,user:null,expire_date:r}}:{code:403,ts:r,message:"User doesn't have permission to call this method"}}(e);if(null===v||pn.user.getProvider().isUserValid()){!function(e){!pn.isDoubleOptInCheckOnAccessCheckEnabled||"/access/check"===e&&pn.doubleOptIn.check()}(e);var g=r.aid,h=p({},r);delete h.aid;var y={type:"POST",dataType:"json",data:h};l+="?aid="+g,y.url=l,c&&(y.async=!1),y.success=function(e){f(e)},y.error=function(e){var t={code:503,message:"Error: Received error when requesting API response from URL: "+l};n.log(t.message),f(t)},t.request(y)}else f(v)}return{name:"api",callApi:function(e,n,t,r,o,i){return s(e,n,t,r,o)},getEndpoint:function(){return i()},getCallParams:function(e,n){return a(e,n)}}}();pn.container.register("api",{useValue:so}),pn.api=pn.container.resolve("api");var co=function(){var e,n,t,r,o,i,a,s,c,u,l,d=pn.container.resolve("jqUtils"),p=pn.container.resolve("util"),f={},m={},v=[],g={},h=(e={},i=1,a=window,s=!1,u="addEventListener",l=a[c="postMessage"],e[c]=function(e,n,t){!n||(e="string"==typeof e?e:d.param(e),t=t||parent,l?t[c](e,n.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):n&&(t.location=n.replace(/#.*$/,"")+"#"+ +new Date+i+++"&"+e))},e.receiveMessage=o=function(e,i,c){l?(e&&(r&&o(),r=function(n){if("string"==typeof i&&n.origin!==i||d.isFunction(i)&&i(n.origin)===s)return s;e(n)}),a[u]?a[e?u:"removeEventListener"]("message",r,s):a[e?"attachEvent":"detachEvent"]("onmessage",r)):(n&&clearInterval(n),n=null,e&&(c="number"==typeof i?i:"number"==typeof c?c:100,n=setInterval((function(){var n=document.location.hash,r=/^#?\d+&/;n!==t&&r.test(n)&&(t=n,e({data:n.replace(r,"")}))}),c)))},e);var y=function(e,n,t){t&&k(t)&&!(t in m)?p.error("Cannot send message to unmanaged iframe: "+t):t&&m[t].element&&("popup"===m[t].config.displayMode||"popup"!==m[t].config.displayMode&&m[t].element.contentWindow?w(e,n,t):(v.push({event:e,params:n,recipient:t}),d.on(m[t].element,"load",function(e){return function(){var n=v.filter((function(n){return n.recipient===e}));v=v.filter((function(n){return n.recipient!==e}));for(var t=n.length;t--;){var r=n.pop();w(r.event,r.params,r.recipient)}}}(t))))},w=function(e,n,t){var r,o={},i="popup"===m[t].config.displayMode?"opener":"parent";o.sender=k(t)?i:t,o.recipient=k(t)?t:i,o.event=e,o.params=n;var a=m[t].element;r="popup"===m[t].config.displayMode?m[t].container:a&&a.contentWindow?a.contentWindow:a&&"[object Window]"===a.toString()?m[t].element:window[i],h.postMessage(JSON.stringify(o),f[t].postMessageUrl,r)};var _=function(e){f[e.iframeId]={iframeConfig:null,receive:null,postMessageUrl:null,initializedListener:!1,initializedKeystrokeHandler:!1},m[e.iframeId]=e},b=function(e){return!(!f[e]||!f[e].iframeConfig)},k=function(e){return!(f[e]&&f[e].iframeConfig)},C=function(e){var n=I(e);return n.showCloseButton&&"inline"!==n.displayMode},I=function(e){var n=f[e],t=n&&n.iframeConfig&&n.iframeConfig.iframe;return t&&t.config};function S(e){var n,t,r=!1;try{n=JSON.parse(e.data)}catch(t){try{n=function(e,n){var t={},r={true:!0,false:!1,null:null};return e.replace(/\+/g," ").split("&").forEach((function(e,o){var i=o.split("="),a="";try{a=decodeURIComponent(i[0])}catch(e){return}var s,c=t,u=0,l=a.split("]["),d=l.length-1;if(/\[/.test(l[0])&&/\]$/.test(l[d])?(l[d]=l[d].replace(/\]$/,""),d=(l=l.shift().split("[").concat(l)).length-1):d=0,2===i.length)if(s=decodeURIComponent(i[1]),n&&(s=s&&!isNaN(s)?+s:"undefined"===s?void 0:void 0!==r[s]?r[s]:s),d)for(;u<=d;u++)c=c[a=""===l[u]?c.length:l[u]]=u<d?c[a]||(l[u+1]&&isNaN(l[u+1])?{}:[]):s;else Array.isArray(t[a])?t[a].push(s):void 0!==t[a]?t[a]=[t[a],s]:t[a]=s;else a&&(t[a]=n?void 0:"")})),t}(e.data),n&&(r=!0)}catch(n){return void p.debug("Error parsing postMessage: "+e.data)}}if(E(n),r){var o;for(var i in m)(t=m[i]).config.isCurtain&&(o=!0,t.config.parent&&f[t.config.parent].receive&&f[t.config.parent].receive(n),f[i].receive&&f[i].receive(n));o||p.debug("Error parsing postMessage: "+e.data)}else if(!k(n.sender)||n.sender&&n.sender in m){if(p.debug((b(n.sender)?"iframe("+n.recipient:"the parent")+") received event '"+n.event+"' from iframe("+n.sender+")",n),f[n.sender].receive&&f[n.sender].receive(n),m[n.sender]&&((t=m[n.sender]).config.parent&&f[t.config.parent].receive)){n.sender=t.config.parent,f[t.config.parent].receive(n,!0)}}else p.debug("Received message from unmanaged iframe: "+n.sender)}var E=function(e){(g[e.event]||[]).forEach((function(n){n(e)}))};return{name:"postmessage",init:function(e,n){if(_(e.iframe),e.postMessageUrl){if(e.iframe.iframeId){f[e.iframe.iframeId].initializedKeystrokeHandler||(f[e.iframe.iframeId].initializedKeystrokeHandler=!0,d.delegate(window,"#".concat(e.iframe.iframeId),"keyup",(function(e){return function(e){27===e.keyCode&&b(e.data.iframeId)&&C(e.data.iframeId)&&y("close",null,e.data.iframeId)}(e)}))),f[e.iframe.iframeId].postMessageUrl=e.postMessageUrl,f[e.iframe.iframeId].initializedListener||(f[e.iframe.iframeId].initializedListener=!0,f[e.iframe.iframeId].receive=e.receive,h.receiveMessage(S)),f[e.iframe.iframeId].iframeConfig=e;var t=n||{};t.height=document.documentElement.offsetHeight,t.width=e.iframeParams&&e.iframeParams.width?e.iframeParams.width:document.documentElement.offsetWidth,y("loaded",t,e.iframe.iframeId)}}else p.error("Must specify postMessageUrl to send and receive postMessages")},__protected__:{isIframeManaged:function(e){var n=m[e];return n&&k(n)}},send:y,removeIframe:function(e){delete m[e],delete f[e]},broadcast:function(e,n,t){for(var r in m)m.hasOwnProperty(r)&&r===t||y(e,n,r)},subscribe:function(e,n){g[e]=g[e]||[],g[e].push(n)},unsubscribe:function(e,n){g[e]instanceof Array&&(g[e]=g[e].filter((function(e){return e!==n})))}}}();pn.container.register("postmessage",{useValue:co}),pn.postmessage=pn.container.resolve("postmessage");var uo=function(){var e=pn.container.resolve("jqUtils"),n=pn.container.resolve("util"),t=pn.container.resolve("postmessage");return{name:"eventUtils",createEventManager:function(r){var o,i={};for(o=0;o<r.length;o++)i[r[o]]=[];var a={addEvent:function(e){void 0===i[e]&&(i[e]=[])},hasIframeCallback:function(e,n){var t,r;if(i[e]&&i[e].length>0)for(r=0,null,t=null;r<i[e].length;++r)if("object"==_typeof(t=i[e][r])&&n===t.iframeId)return!0;return!1},hasCallback:function(e){return i[e]&&i[e].length>0},registerCallback:function(e,t){var r,o,a,s="string"==typeof e?e:null,c="object"==_typeof(e)?e:null;if(s){if(r="function"==typeof t?t:null,void 0===i[s])return;i[s].push(r)}if(c)for(a in o="string"==typeof t?t:null,i)"function"==typeof c[a]&&(n.debug("Registering "+a+" callback for iframe "+o),i[a].push({iframeId:o,callback:c[a]}))},fireCallbacks:function(e,n,t,r){return a.fire(t,e,r,n)},fire:function(r,o,a,s,c,u){var l,d,p,f=!1,m=[];s&&m.push(s),c&&m.push(c),u&&m.push(u);var v=s&&s.resultCallbackId,g=function(t){if(a)try{if(m.length>1)return d.apply(null,m);if("loginRequired"===o){var i=e.deepExtend({},t.term);return delete t.term,d(t,r,i)}return d(t,r)}catch(e){n.debug(e)}};if(void 0!==i[o]){for(p=0,l=null,d=null;p<i[o].length;++p){if("function"==typeof(d=i[o][p]))n.debug("firing callback for event '"+o+"' from iframe("+r+")"),l=g(s),f=!0;else if("object"==_typeof(d)){if(r!==d.iframeId)continue;n.debug("firing callback for event '"+o+"' from iframe("+r+")"),d=d.callback,l=g(s),f=!0}v&&(s.result=l,s.event=o,t.send("resultCallback",s,r))}return!f&&v&&(s.callbackNotFound=!0,s.event=o,t.send("resultCallback",s,r)),l}},fireCallbacksAndStopOnFirstFalse:function(e,t,r,o){for(var a=[],s=4;s<arguments.length;s++)a[s-4]=arguments[s];if(void 0===i[e])return!0;for(var c=!0,u=0;u<i[e].length;u++){var l=i[e][u];if("function"==typeof l){n.debug("firing callback for event '"+e+"'");try{var d=[];if(d.push(t),d.push(r),d.push(o),d=d.concat([].slice.call(a)),!1===l.apply(null,d)){n.debug("callback for event '"+e+"' returned false"),c=!1;break}}catch(t){n.debug("firing callback for event '"+e+"' failed",t)}}}return c}};return a}}}();pn.container.register("eventUtils",{useValue:uo}),pn.eventUtils=pn.container.resolve("eventUtils");var lo=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("api"),t=pn.container.resolve("eventUtils"),r=pn.container.resolve("localStorage"),o=t.createEventManager(["userChanged","logout"]),i="janrain",a=function(){return e.getUserTokenCookie()},s=function(){var e=a();return!!(void 0!==e&&e&&e.length>=0)},c=!1,u=!1,l={onCaptureSessionCreated:[]},d={loginRequiredScreen:"signIn",appName:null,appId:null,clientId:null,settings:null,disableLogout:!1,startCapture:!1},p={register:"traditionalRegistration",login:"signIn"};var f=function(e){return e&&p.hasOwnProperty(e.startScreen)?p[e.startScreen]:d.loginRequiredScreen};var m=function(){d.disableLogout||e.setAccessTokenListCookie(void 0,void 0,!0)},v=!0,g=function(){var e=window.janrain;return e&&e.capture&&e.capture.ui&&e.capture.ui.hasActiveSession()};function h(){e.log("JANRAIN:","Processing janrain user"),v?v=!1:e.startCall("refreshUserToken"),e.log("JANRAIN:","hasActiveSession:"+g());var t=y();if(!g())return e.log("JANRAIN:","No token found.  Done processing user"),m(),void e.doneCall("refreshUserToken");if(s())return e.log("JANRAIN:","Using __ut.  Done processing user"),void e.doneCall("refreshUserToken");var r={janrain_capture_token:t,url:e.prepareUrlParameter(window.location.href)};n.callApi("/anon/janrain/verifyAccountInfo",r,(function(n){if(n&&n.access)try{e.log("JANRAIN:","Verify success.  Done processing user"),e.setAccessTokenListCookie(n.access.access_token,n.access.user_token);var t={access_token:n.access.access_token,user_token:n.access.user_token};n.access.user&&(t.user={uid:n.access.user.uid,email:n.access.user.email,firstName:n.access.user.first_name,lastName:n.access.user.last_name,valid:n.access.user.valid}),function(e,n){if(void 0!==l[e]&&0!==l[e].length)for(var t=0;t<l[e].length;++t)l[e][t].apply(null,arguments)}("onCaptureSessionCreated",t),o.fireCallbacks("userChanged",t,void 0,!0)}finally{e.doneCall("refreshUserToken")}else e.log("JANRAIN:","Verify failed")}))}var y=function(){return r.get("janrainCaptureToken")},w=function(){var n=window.janrain;n.events.onProviderLogoutComplete.addHandler((function(){m()})),n.events.onCaptureSessionEnded.addHandler((function(n){e.log("JANRAIN: Events received for logout",n),m()})),_()},_=function(){if(g())return e.log("JANRAIN:","Found early active session via function"),void h();if(!g()&&!s()&&!y())return e.log("JANRAIN:","not found __ut cookie and janrain token"),void h();var n=!1,t=window.janrain;t.events.onCaptureSessionFound.addHandler((function(t){b()?n&&(e.log("JANRAIN: Events received for logged in user",t),h()):h()})),t.events.onCaptureSessionNotFound.addHandler((function(t){b()?n&&(e.log("JANRAIN: Events received for logged out user",t),h()):h()})),t.events.onCaptureFederateNoLogin.addHandler((function(e){n=e})),t.events.onCaptureFederateLogin.addHandler((function(n){e.log("JANRAIN: Events received for SSO login",n),h()}))},b=function(){var e=window.janrain;return e&&e.settings&&e.settings.capture&&e.settings.capture.federate};function k(e,n){if(!c)throw"Janrain is not configured";var t=0;!function r(){var o=window.janrain;if(u)o.events[e].addHandler((function(e){n(e)}));else{if(t>100)throw"Janrain is not initialized";t++,window.setTimeout(r,100)}}()}return{name:i,isv:!1,init:function(n){if(!c){if(!n.appName||!n.appId||!n.clientId)throw"Must specify appName, appId, and clientId to initialize janrain";for(var t in d)void 0!==n[t]&&(d[t]=n[t]);if(n.settings&&(d.settings=n.settings),n.loginRequiredScreen&&(d.loginRequiredScreen=n.loginRequiredScreen),d.settings){"object"!=_typeof(window.janrain)&&(window.janrain={}),"object"!=_typeof(window.janrain.settings)&&(window.janrain.settings={});var r=window.janrain;r.settings=d.settings,"object"!=_typeof(window.janrain.settings.capture)&&(window.janrain.settings.capture={}),r.settings.appUrl="https://"+d.appName+".rpxnow.com",r.settings.capture.captureServer="https://"+d.appName+".janraincapture.com",r.settings.capture.appId=d.appId,r.settings.capture.clientId=d.clientId;var o,i=d.appName.replace(/\./g,"-"),a="http://widget-cdn.rpxnow.com/load/"+i,s="https://rpxnow.com/load/"+i;o=e.__protected__.isHttpsProtocol()?s:a,pn.push(["addExternalLibrary",o,function(){r.ready=!0}])}e.log("JANRAIN:","start refresh user token"),e.startCall("refreshUserToken",3e4),e.waitCall("refreshUserToken",(function(){e.log("JANRAIN:","end refresh user token")})),function(){var n=100,t=0;function r(){var o=window.janrain;if(window.janrain&&window.janrain.ready&&window.janrain.capture&&window.janrain.capture.ui&&window.janrain.capture.ui.hasActiveSession)(function(){var n=window.janrain,t=function(t){n.events[t].addHandler((function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.log("JANRAIN: ",t,n)}))};pn.debug&&n.events.captureEvents.forEach(t)})(),w(),d.startCapture&&o.capture.ui.start(),u=!0;else{if(t>n)throw"Janrain is not initialized";t++,window.setTimeout(r,100)}}r()}(),c=!0,pn.zIndexes={backdrop:900,modal:950,close:990};var l=function(n){e.log("JANRAIN: onLogin"),window.janrain.capture.ui.modal.close(),h()};k("onCaptureLoginSuccess",l),k("onCaptureRegistrationSuccess",l)}},isUserValid:s,getToken:a,getName:function(){return i},onLoginSuccess:function(n){e.setAccessTokenListCookie({value:n.token_list,cookie_domain:n.cookie_domain},n.user_token)},login:function(e,n){if(!c)throw"Janrain is not configured";var t=0;!function r(){if(u)try{window.janrain.capture.ui.renderScreen(f(n)),"function"==typeof e&&function(e,n){l[e]=[],l[e].push(n)}("onCaptureSessionCreated",e)}catch(e){return t++,void window.setTimeout(r,100)}else{if(t>100)throw"Janrain is not initialized";t++,window.setTimeout(r,100)}}()},logout:function(e){if(!c)throw"Janrain is not configured";var n=0,t=0;function r(){t>100?e():g()?(t++,window.setTimeout(r,100)):e()}m(),function t(){if(u){var i=window.janrain;i.capture.ui.modal.close(),i.capture.ui.endCaptureSession(),o.fireCallbacks("logout",null,void 0,!0),e&&r()}else{if(n>100)throw"Janrain is not initialized";n++,window.setTimeout(t,100)}}()},isConfigured:function(){return c},getLoginRequiredScreen:f,addEventHandler:k,registerCallback:function(e,n){o.addEvent(e),o.registerCallback(e,(function(e){n(e)}))}}}();pn.container.register("janrain",{useValue:lo}),pn.janrain=pn.container.resolve("janrain");var po={name:"sha1",hash:function(e,n){function t(e,n){return e<<n|e>>>32-n}function r(e){var n,t="";for(n=7;n>=0;n--)t+=(e>>>4*n&15).toString(16);return t}n=n||32;var o,i,a,s,c,u,l,d,p,f=new Array(80),m=1732584193,v=4023233417,g=2562383102,h=271733878,y=3285377520;e=function(e){e=e.replace(/\r\n/g,"\n");for(var n="",t=0;t<e.length;t++){var r=e.charCodeAt(t);r<128?n+=String.fromCharCode(r):r>127&&r<2048?(n+=String.fromCharCode(r>>6|192),n+=String.fromCharCode(63&r|128)):(n+=String.fromCharCode(r>>12|224),n+=String.fromCharCode(r>>6&63|128),n+=String.fromCharCode(63&r|128))}return n}(e);var w=e.length,_=new Array;for(i=0;i<w-3;i+=4)a=e.charCodeAt(i)<<24|e.charCodeAt(i+1)<<16|e.charCodeAt(i+2)<<8|e.charCodeAt(i+3),_.push(a);switch(w%4){case 0:i=2147483648;break;case 1:i=e.charCodeAt(w-1)<<24|8388608;break;case 2:i=e.charCodeAt(w-2)<<24|e.charCodeAt(w-1)<<16|32768;break;case 3:i=e.charCodeAt(w-3)<<24|e.charCodeAt(w-2)<<16|e.charCodeAt(w-1)<<8|128}for(_.push(i);_.length%16!=14;)_.push(0);for(_.push(w>>>29),_.push(w<<3&4294967295),o=0;o<_.length;o+=16){for(i=0;i<16;i++)f[i]=_[o+i];for(i=16;i<=79;i++)f[i]=t(f[i-3]^f[i-8]^f[i-14]^f[i-16],1);for(s=m,c=v,u=g,l=h,d=y,i=0;i<=19;i++)p=t(s,5)+(c&u|~c&l)+d+f[i]+1518500249&4294967295,d=l,l=u,u=t(c,30),c=s,s=p;for(i=20;i<=39;i++)p=t(s,5)+(c^u^l)+d+f[i]+1859775393&4294967295,d=l,l=u,u=t(c,30),c=s,s=p;for(i=40;i<=59;i++)p=t(s,5)+(c&u|c&l|u&l)+d+f[i]+2400959708&4294967295,d=l,l=u,u=t(c,30),c=s,s=p;for(i=60;i<=79;i++)p=t(s,5)+(c^u^l)+d+f[i]+3395469782&4294967295,d=l,l=u,u=t(c,30),c=s,s=p;m=m+s&4294967295,v=v+c&4294967295,g=g+u&4294967295,h=h+l&4294967295,y=y+d&4294967295}return(p=r(m)+r(v)+r(g)+r(h)+r(y)).toLowerCase().slice(0,n)}};pn.sha1=po,pn.container.register("sha1",{useValue:po});var fo=function(){function e(e,n){this._isActive=!1,this.targets=[],this.timeout=200,this.util=n,this.callback=e}return e.prototype._mutationSearch=function(){var e=this;this.targets.forEach((function(n){var t=e._getState(n.element);!t===n.currentState&&(n.currentState=t,e.callback([{target:n.element}]))})),this._isActive&&setTimeout(this._mutationSearch.bind(this),this.timeout)},e.prototype._getState=function(e){var n=[].slice.call(e.attributes).reduce((function(n,t){return n[t.name]=e.getAttribute(t.name),n}),{});return JSON.stringify(n)},e.prototype.observe=function(e){this.targets.push({id:this.util.randomString(),element:e,currentState:this._getState(e)}),this._isActive||(this._isActive=!0,this._mutationSearch())},e.prototype.disconnect=function(){this._isActive=!1,this.targets=[]},e}(),mo=function(){pn.container.resolve("jqUtils");var e=pn.container.resolve("util"),n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,t={attributes:!0};return{name:"observer",create:function(r,o){r||e.error("element must be NODE");var i=new(n||fo)((function(e){var n=e.map((function(e){return e.target}));return"function"==typeof o&&o(n)}),e);return i.observe(r,t),i}}}();pn.container.register("observer",{useValue:mo}),pn.observer=pn.container.resolve("observer");var vo,go,ho=function(){var e,n,t,r=pn.container.resolve("jqUtils"),o=pn.container.resolve("util"),i=pn.container.resolve("postmessage"),a=pn.container.resolve("eventUtils"),s=pn.container.resolve("sha1"),c={},u={},l=a.createEventManager(["close"]),d="tp-container-inner",p=new Map,f=[],m="tp-modal-overscroll-prevented",v="tp-scroll-prevented",g="tp-body-scroll-prevented",h={_initialScrollPosition:{x:0,y:0},applyFix:function(){var e=window.visualViewport?Math.max(window.scrollY,document.documentElement.scrollTop,window.visualViewport.pageTop):Math.max(window.scrollY,document.documentElement.scrollTop);this.saveInitialScroll(window.scrollX,e),t&&(k(),w(),y(t,m))},removeFix:function(){document.querySelectorAll(".tp-iframe-wrapper.tp-active").length||(this._scrollBack(),n&&(n.disconnect(),n=null),b())},_scrollBack:function(){(this._initialScrollPosition.y||this._initialScrollPosition.x)&&C(this._initialScrollPosition.x,this._initialScrollPosition.y)},saveInitialScroll:function(e,n){this._initialScrollPosition.x=e,this._initialScrollPosition.y=n},modalOpened:function(){this.applyFix()},modalClosed:function(){this.removeFix()}},y=function(e,n){e.classList.add(n)},w=function(){y(document.documentElement,v),y(document.body,g)},_=function(e){document.querySelectorAll(".".concat(e)).forEach((function(n){n.classList.remove(e)}))},b=function(){_(v),_(g)},k=function(){var e=document.querySelectorAll(".tp-iframe-wrapper"),t=e[e.length-1];(n=new MutationObserver((function(e,n){for(var t=0,r=e;t<r.length;t++){var o=r[t];"attributes"===o.type&&"style"===o.attributeName&&C(0,0)}}))).observe(t,{attributes:!0,childList:!0,subtree:!0})},C=function(e,n){function t(e){return/\{\s*\[native code\]\s*\}/.test(""+e)}try{if(t(window.scrollTo))return void window.scrollTo(e,n);if(t(window.scroll))return void window.scroll(e,n);document.body&&(document.body.scrollTop=0)}catch(e){console.warn("Can not perform scroll: "+e.message)}};r.on(window,"resize",(function(){var e;if(Y(),o.isAndroid()){var n=null===(e=document.querySelector(".tp-iframe-wrapper.tp-active"))||void 0===e?void 0:e.closest(".tp-modal");n&&n.scrollBy(0,1)}})),o.isIOS()&&r.on(window,"orientationchange",(function(){setTimeout((function(){return Y()}),100)})),i.subscribe("close",(function(){h.modalClosed()})),i.subscribe("toggleIframeShadow",(function(e){E(e.params.isEnabled)})),i.subscribe("toggleLoadingContainer",(function(e){if(e.params.isEnabled)return ee();ne()}));var I,S,E=function(e){var n=document.querySelector(".tp-iframe-wrapper");if(n){if(e)return n.classList.contains("no-shadow")&&n.classList.remove("no-shadow");n.classList.add("no-shadow")}},P=function(e){(function(e){i.send("checkProccessesForClose",{},e.iframeId)})(e),"popup"===e.config.displayMode?e.container.close():(function(e){if(o.debug("Removing iframe",e),e.element&&(r.hide(e.element),"inline"===e.config.displayMode)){var n=e.element.parentElement;n&&r.hide(n)}e.resizeObserver&&e.resizeObserver.disconnect(),("modal"===e.config.displayMode||"inline"===e.config.displayMode)&&(e.waitFinishProcesses=!0)}(e),R(),D())},x=function(){for(var e in c){var n=c[e];if("modal"===n.config.displayMode&&!n.waitFinishProcesses&&!n.config.isPreload)return!0}return!1},T=function(e){var n=document.createElement("form"),t={id:"form_"+e.iframeId,method:"post",action:e.iframeSrc,target:e.iframeId};return r.setAttrs(t,n),[{name:"userToken",value:e.userToken}].forEach((function(e){var t=document.createElement("input"),o={type:"hidden",name:e.name};r.setAttrs(o,t),t.value=e.value,r.append(n,t)})),n},A=function(e){return c[e]},M=function(){function e(e,n,t){this.$=e,this._operationWithContainer=t,this.util=n,this._initModalContainer(),this.iOSBottomToolbarHeight=90}return e.prototype._initModalContainer=function(){var e=this;return this.container||(this.container=document.createElement("div"),this.element=this.container,this.$.addClass("tp-modal",this.container),this.close=document.createElement("button"),this.$.setAttr("type","button",this.close),this.$.setAttr("aria-label","Close",this.close),this.$.addClass("tp-close",this.close),this.iframeWrapper=document.createElement("div"),this.$.addClass("tp-iframe-wrapper",this.iframeWrapper),this.$.append(this.iframeWrapper,this.close),this.container.style.zIndex=pn.zIndexes.modal+"",this.close.style.zIndex=pn.zIndexes.close+"",this.$.on(this.close,"click",(function(){"function"==typeof e.closeClick&&e.closeClick()})),this.util.isIOS()&&!this.util.isFBOrInstWebView()&&(this.iframeWrapper.style.marginBottom="".concat(this.iOSBottomToolbarHeight,"px")),this.$.append(this.container,this.iframeWrapper),this._operationWithContainer("body",(function(n){e.$.append(n,e.container)}))),this.container},e.prototype.getContainer=function(e,n){return this._initModalContainer(),this.closeClick=n,void 0===e&&(e=!0),e?this.showCloseButton():this.hideCloseButton(),this.iframeWrapper},e.prototype.show=function(e){this._initModalContainer(),void 0===e&&(e=!0),e?this.showCloseButton():this.hideCloseButton(),this.$.addClass("tp-active",this.container)},e.prototype.hide=function(){this._initModalContainer(),this.$.removeClass("tp-active",this.container)},e.prototype.showCloseButton=function(){this._initModalContainer(),this.$.addClass("tp-active",this.close)},e.prototype.hideCloseButton=function(){this._initModalContainer(),this.$.removeClass("tp-active",this.close)},e}(),O=function(e,n,t){for(var r in o.debug("Search container to close",e,n,t),c){var i=c[r];e&&r!==e||t&&"inline"===i.config.displayMode||t&&i.config.isPreload||("modal"===i.config.displayMode&&N(i),P(i))}l.fireCallbacks("close",null,e,!0)},N=function(e){var n=f.shift();I&&!n&&r.removeClass("tp-active",I),e.iframeParams.shown=!1,r.removeClass("tp-active",e.container),n?(r.hide(t),t=n,r.show(t)):(R(),D())},R=function(){!t||(B("body",(function(e){r.addClass("tp-modal-close",e),r.removeClass("tp-modal-open",e),e.classList.contains("body-fixed")&&r.removeClass("body-fixed",e)})),r.hide(t))},L=function(e,n,i){if(function(){if(I)return I;var e=document.createElement("div");r.addClass("tp-backdrop",e),e.style.zIndex=pn.zIndexes.backdrop+"",B("body",(function(n){r.append(n,e)})),I=e}(),r.visible(I)){var a=r.qa(".tp-modal").find((function(e){return r.visible(e)}));n&&!i?(a&&(r.hide(a),f.unshift(a)),e&&r.show(e)):n&&(a?(e&&f.push(e),t=a):e&&r.show(e))}else r.show(I),e&&function(e){r.visible(e)||(B("body",(function(e){r.removeClass("tp-modal-close",e),r.addClass("tp-modal-open",e)})),r.show(e),(o.isIphone()||o.isSafariOrIOsUiWebView()||o.isAndroid())&&h.modalOpened())}(e),S=window.setTimeout((function(){r.addClass("tp-active",I)}),50)},D=function(){I&&(r.removeClass("tp-active",I),r.hide(I),clearTimeout(S)),h.modalClosed()},U=function(e){I&&(I.style.height="100%");var n=r.queryEl(".tp-close",e);n&&r.removeClass("tp-square",n)},j=function(e,n){if(e){$(e.element,n);var t=Object.assign({},n,{animate:!1});switch(e.config.displayMode){case"modal":$(e.container,t),B("body",(function(e){r.addClass("tp-modal-resizing",e),setTimeout((function(){r.removeClass("tp-modal-resizing",e)}),50)}));break;case"inline":var o=r.queryEl("."+d,e.container);o&&$(o,n)}}},V=function(e,n,o){var i=e.container,a=i.parentElement;a&&a.classList.contains("tp-modal")?t=a:a=t,e.iframeParams=e.iframeParams||{},e.iframeParams.shown||(e.iframeParams.shown=!0,L(a,n,o),o||(i.classList.contains("tp-active")||r.addClass("tp-active",i),U(i)))},F={},B=function e(n,t){var o=r.queryEl(n);F[n]||(F[n]=0),o?(delete F[n],t(o)):F[n]<100&&(F[n]+=1,setTimeout((function(){e(n,t)}),50))},q=function(e,n){if(void 0===e.showCloseButton&&(e.showCloseButton=!0),e.container)return e.container;var i=new M(r,o,B);return e.isPreload||(t=i.element),i.getContainer(e.showCloseButton,n)},z=function(e){var n={container:null,containerReady:!1};if(!e.iframeParams.containerSelector)return o.log("Inline offer must have a valid containerSelector"),n;if(n.container=e.singleContainer||r.queryEl(e.iframeParams.containerSelector),!n.container)return o.log("Invalid containerSelector"),n;var t=e.config,i="object"==_typeof(t)&&null!==t;return r.empty(n.container),i?!!t.preview||(e.iframeParams.width=r.getWidth(n.container)):e.iframeParams.width=e.iframeParams.width||r.getWidth(n.container),n.containerReady=!0,n},G=function(e){var n=r.winSize(),t=e.width?e.width:n.width,i=e.height?e.height:n.height,a=o.centerScreen(t,i);return{width:t,height:i,top:a.top,left:a.left}},H=function(e,n){var t=G(e),r=window.open(n,o.randomString(16),"scrollbars=yes,location=yes,status=0,toolbar=0,resizable=1, width="+t.width+", height="+t.height+", top="+t.top+", left="+t.left);return window.focus&&r&&r.focus(),r},W=1,J=function(e,n,t){var i="iframe-"+W+++"-"+o.randomString();n.iframeId&&(i=n.iframeId);var a=document.createElement("iframe"),s={id:i,name:i,title:i,scrolling:"no",allowtransparency:"true",allow:"payment",allowfullscreen:"true"};(!pn.isSensitiveDataProtectionEnabled||e.isSensitiveDataProtectionDisabled)&&(s.src=t),Object.keys(s).forEach((function(e){r.setAttr(e,s[e],a)}));var c={overflow:"hidden",backgroundColor:"transparent",border:"0",width:"inline"===e.displayMode?n.width+"px":"0px",height:"0px"};Object.keys(c).forEach((function(e){a.style[e]=c[e]}));try{r.setAttr("frameBorder","0",a)}catch(e){o.log(e)}return a},Q=function(e,n){var t=function(e){return r.queryEl("."+d,e.container)?r.getWidth(e.container):0}(e);return!(!t||!n)&&Math.abs(t-n)<.1},X=function(e,n,t){var o=setInterval((function(){r.empty(e)}),150);r.ready((function(){clearInterval(o),r.append(e,n),pn.isSensitiveDataProtectionEnabled&&(r.append(n,t),t.submit())}))},Y=function(){for(var e in c){var n=c[e];if(!n.config.preview&&"inline"===n.config.displayMode&&n.container&&j(n,{width:r.getWidth(n.container)}),"modal"===n.config.displayMode&&n.container){var t=Math.max(document.documentElement.clientWidth,document.body.offsetWidth,document.documentElement.offsetWidth);i.send("RESIZE_MODAL_CHECKOUT",{iframe:n,width:t},n.iframeId)}}},$=function(e,n){!e||(void 0!==n.width&&(e.style.width=n.width+"px",(0===n.width&&!e.classList.contains("no-width")||0!==n.width&&e.classList.contains("no-width"))&&r.toggleClass("no-width",e)),void 0!==n.height&&(n.animate,e.style.height=n.height+"px",(0===n.height&&!e.classList.contains("no-height")||0!==n.height&&e.classList.contains("no-height"))&&r.toggleClass("no-height",e)))},K=function(e){var n=document.createElement("div");return n.innerHTML=e.trim(),n.firstChild},Z=function(e){return void 0===e&&(e=""),'<div class="tp-please-wait tp-active tp-overlap '.concat(e,'"><div class="tp-icon tp-centered"><div class="pn-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div></div></div>')},ee=function(){e||(e=K(Z()))&&document.body.appendChild(e)},ne=function(){!e||(document.body.removeChild(e),e=null)};function te(e){if(e&&e.container){!function(e){if(e&&null!=e&&e.container&&!p.has(e.iframeId)){var n=K(Z("tp-local-overlap"));n&&(e.container.appendChild(n),p.set(e.iframeId,n))}}(e);e.container.addEventListener("load",(function(){!function(e){if(e&&null!=e&&e.container&&p.has(e.iframeId)){var n=p.get(e.iframeId);n&&(e.container.removeChild(n),p.delete(e.iframeId))}}(e)}),{once:!0,capture:!0})}}function re(e){!e||!e.element||(function(e){var n;return!!e&&!(null===(n=null==e?void 0:e.element.getBoundingClientRect())||void 0===n||!n.width)}(e)&&te(e),e.element.src=e.element.src)}function oe(){for(var e in c){var n=c[e];n&&re(n)}}return{name:"containerUtils",fakeOfferId:"fakeOfferId",createContainer:function(e){var n,t,a,p,f={},m=document.createElement("form"),v=!0,g=e.iframeParams;if("inline"!==g.displayMode&&!g.width&&(g.width=window.innerWidth),a=e.config.buildQueryStringFn?function(n){return e.config.buildQueryStringFn(n,r)}:function(e){var n=r.param(e);return n+"&_qh="+s.hash(n,10)},"popup"===g.displayMode){g.width||(g.width=window.innerWidth);var h=e.url+"?"+a(g);t=H(g,h);try{p=t.document}catch(e){try{p=t}catch(e){p=null,console.warn("Unable to get popup element")}}u[g.iframeId]={container:t,interval:setInterval((function(){u[g.iframeId].container.closed&&(clearInterval(u[g.iframeId].interval),u[g.iframeId].container.close(),e.onCloseCallback&&e.onCloseCallback())}),100)}}else{if("inline"===g.displayMode){void 0!==e.config.showCloseButton&&delete e.config.showCloseButton;var y=z(e);t=y.container,v=!!y.containerReady}else t=q(e.config,(function(){O(g.iframeId,e.parent)}));pn.isSensitiveDataProtectionEnabled&&(f={userToken:g.userToken,iframeId:g.iframeId},delete g.userToken),n=e.url+"?"+a(g),p=J(e.config,g,n)}l.registerCallback(e,g.iframeId);var w=c[g.iframeId]={iframeId:g.iframeId,config:e.config,element:p,container:t,iframeParams:g,containerReady:v};if(i.init({postMessageUrl:e.postMessageUrl,parent:e.parent,receive:e.receive,iframe:w,iframeParams:g}),r.on(document,"keyup",(function(e){})),pn.isSensitiveDataProtectionEnabled&&(f.iframeSrc=n,m=T(f)),"modal"===g.displayMode)r.on(window,"resize",(function(){U(t)})),pn.isSensitiveDataProtectionEnabled?(r.append(t,p),r.append(t,m),null==m||m.submit()):r.append(t,p);else if("inline"===g.displayMode){if(c[g.iframeId].containerReady){var _=document.createElement("div");r.addClass(d,_),r.append(_,p),e.config.isPreload&&r.hide(_),("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)&&t?(r.empty(t),r.append(t,_),pn.isSensitiveDataProtectionEnabled&&(r.append(_,m),null==m||m.submit())):X(t,_,m)}else{var b=document.createElement("div");r.setAttr("id","temp-inline-"+g.iframeId,b),r.hide(b),B("body",(function(e){r.append(e,b)})),r.append(b,p)}if(window.ResizeObserver){var k=new ResizeObserver((function(e){var n=r.getWidth(w.container);if(n>0){if("inline"===w.config.displayMode&&Q(w,n))return;j(w,{width:n})}}));k.observe(w.container),w.resizeObserver=k}}return o.debug("creating iframe: ",e),w},showPreloadedContainer:function(e){if("modal"===e.config.displayMode){if(x())return void o.log("Modal is already shown; must be one modal per time");!function(e){(t=e.container.closest(".tp-modal"))||o.error("there is no such modal container"),V(e,!0,!0)}(e)}else"inline"===e.config.displayMode?function(e){r.show(e.container);var n=r.queryEl(".".concat(d),e.container);n&&r.show(n),j(e,{width:r.getWidth(e.container)})}(e):o.log("Unexpected displayMode of preloaded iframe\n");return e.config.isPreload=!1,e.iframeParams.isPreload=!1,o.debug("show preloaded iframe: ",e.config),e},redirectContainer:function(e,n){var t=n.url+"?"+r.param(n.iframeParams),o=c[e];if("popup"===o.config.displayMode)o.container.location=t;else{var a=o.element;(a.contentWindow||a).location=t}o.config=n.config,i.init({postMessageUrl:n.postMessageUrl,receive:n.receive,iframe:c[n.iframeParams.iframeId],iframeParams:n.iframeParams})},hasModalIframe:x,getForm:T,getIframe:A,generateIframe:J,generateIframeWrapper:function(){var e=document.createElement("div"),n={overflow:"hidden",backgroundColor:"transparent",border:"0",width:"0px",height:"0px",position:"absolute",display:"block",top:"-1px",left:"-1px"};return Object.keys(n).forEach((function(t){e.style[t]=n[t]})),e},getPopupPosition:G,generatePopup:H,initInlineContainer:z,getModalContainer:q,centerBackdrop:function(e){if(I){var n=r.winSize();e.offsetHeight>n.height?I.style.height=n.height+"":I.style.height="100%"}},showBackdrop:L,hideBackdrop:D,checkBackdropAndContainer:V,resizeIframe:j,centerIt:U,operationWithContainer:B,closeContainer:O,closeModalContainer:function(e,n){O(e,n,!0)},purgeIframe:function(e,n){o.debug("Purging iframe",e);var t=c[e];try{if(t.resizeObserver&&t.resizeObserver.disconnect(),i.removeIframe(t.iframeId),r.remove(t.element),"inline"===t.config.displayMode){var a=r.queryEl(".tp-container-inner",t.container);a&&r.remove(a)}}catch(e){}delete c[e]},hideModalContainer:function(e){var n=[];for(var t in c){var o=c[t];e&&t!==e||"inline"!==o.config.displayMode&&"modal"===o.config.displayMode&&(N(o),r.hide(o.container),n.push(t))}return n},closeModal:N,hideCloseButton:function(e){if(e){var n=r.queryEl(".tp-close",e);n&&n.classList.contains("tp-active")&&r.removeClass("tp-active",n)}},activateContainers:function(e){if(e&&e.length)for(var n in c)for(var t=c[n],o=0;o<e.length;o++)if(n===e[o]){var i=t.container,a=i.parentElement;a&&L(a),r.addClass("tp-active",i),r.show(i)}},showWaitPanel:ee,hideWaitPanel:ne,addClassToContainer:function(e,n){r.addClass(n,e.container)},turnOnRTL:function(e){e.container&&e.container.setAttribute&&e.container.setAttribute("dir","rtl")},turnOffRTL:function(e){e.container&&e.container.removeAttribute&&e.container.removeAttribute("dir")},setIframesPopstateHandlers:function(){!o.isIphone()&&!o.isSafariOrIOsUiWebView()||window.addEventListener("popstate",oe)},__protected__:{setElementSizes:$,closeInlineContainers:function(e){Array.prototype.slice.call(document.querySelectorAll(e+" > ."+d+" > iframe")).forEach((function(e){e.id&&function(e){var n=A(e);n.config.child&&O(n.config.child),O(e)}(e.id)}))},addChildToInlineIframe:function(e,n){if(e){var t=A(n);t&&t.config&&(t.config.child=e.iframeId)}},closeAndRemoveIframe:P},__private__:{mobileModalFix:h}}}();pn.container.register("containerUtils",{useValue:ho}),pn.containerUtils=pn.container.resolve("containerUtils"),function(e){e.EXTERNAL_LINK="EXTERNAL_LINK",e.EXTERNAL_EVENT="EXTERNAL_EVENT"}(vo||(vo={})),function(e){e.LOG_MICRO_CONVERSION="logMicroConversion",e.LOG_AUTO_MICRO_CONVERSION="logAutoMicroConversion",e.LOG_CONVERSION="logConversion",e.LOG_FUNNEL_STEP="logFunnelStep",e.LOG_ESP_MICRO_CONVERSION="logEspMicroConversion",e.LOG_BEACON_REQUEST="logBeaconRequest",e.LOG_CUSTOM_FORM_IMPRESSION="logCustomFormImpression",e.LOG_CUSTOM_FORM_SUBMISSION="logCustomFormSubmission"}(go||(go={}));var yo;pn.container.register("log",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("ajax"),t=e.resolve("util");e.resolve("postmessage").subscribe("iframeLogRequest",(function(e){var n="browser_id"in e.queryParams?e.queryParams:i(e.queryParams);o(e.url,n)}));var r=function(e){var n=[];for(var t in e){var r=e[t];n.push(encodeURIComponent(t)+"="+encodeURIComponent("object"==_typeof(r)?JSON.stringify(r):r))}return n.join("&")},o=function(e,o){var i=r(o);t.isRelativeUrl(e.trim())?i.length>6e3?n.request({type:"POST",url:pn.getTrackingEndpoint()+e,data:i}):n.request({url:pn.getTrackingEndpoint()+e+"?"+i,dataType:"jsonp"}):t.log("Url parameter is incorrect")},i=function(e,n){var r;void 0===n&&(n=!1);var o=t.getBrowserId(),i=p({},e),a=function(e,n){n&&(i[e]=n)};if(a("browser_id",o),n){var s=t.getPageViewContext();a("page_title",s.pageTitle),a("url",s.url),a("page_view_id",s.pageViewId),a("referrer",s.referrerUrl),a("content_author",s.author),a("content_created",null===(r=s.created)||void 0===r?void 0:r.toString()),a("content_section",s.section),a("tags",s.tags?JSON.stringify(s.tags):null)}return i},a=function(e){return i(e,!0)},s=function(e,n,r){var i=a({tracking_id:e,event_group_id:n,custom_params:r||"",cookie_consents:t.getCookieConsents()});e?n?o("/api/v3/conversion/logMicroConversion",i):t.log("Parameter eventGroupId is required to log micro conversion."):t.log("Parameter trackingId is required to log micro conversion.")},c=function(e,n,r,i){var s=a({tracking_id:e,event_type:r,event_group_id:n,custom_params:i||"",cookie_consents:t.getCookieConsents()});e?n?o("/api/v3/conversion/logAutoMicroConversion",s):t.log("Parameter eventGroupId is required to log auto micro conversion."):t.log("Parameter trackingId is required to log auto micro conversion.")},u=function(e,n,r,i,s){var c=a({tracking_id:e,esp_widget_id:n,event_type:i,event_group_id:r,custom_params:s||"",cookie_consents:t.getCookieConsents()});e?r?n?o("/api/v3/conversion/logEspMicroConversion",c):t.log("Parameter espWidgetId is required to log esp micro conversion."):t.log("Parameter eventGroupId is required to log esp micro conversion."):t.log("Parameter trackingId is required to log esp micro conversion.")},l=function(e,n,r,i,s,c,u,l){var d=a({tracking_id:e,term_id:n,term_name:r,cookie_consents:t.getCookieConsents()});e?n?r?(void 0!==i&&(d.step_number=i),void 0!==s&&(d.amount=s),void 0!==c&&(d.currency=c),void 0!==u&&(d.custom_params=u),void 0!==l&&(d.conversion_category=l),o("/api/v3/conversion/log",d)):t.log("Parameter termName is required to log conversion."):t.log("Parameter termId is required to log conversion."):t.log("Parameter trackingId is required to log conversion.")},d=function(e,n,t,r,o,i,a,s){if("object"==_typeof(e)){var c=e;l(c.tracking_id,c.term_id,c.term_name,c.step_number,c.amount,c.currency,c.custom_params,c.conversion_category)}else l(e,n,t,r,o,i,a,s)},f=function(e,n,r,i){var s=a({tracking_id:e,step_number:n,step_name:r,custom_params:i||"",cookie_consents:t.getCookieConsents()});e?n?r?o("/api/v3/conversion/logFunnelStep",s):t.log("Parameter stepName is required to log funnel step."):t.log("Parameter stepNumber is required to log funnel step."):t.log("Parameter trackingId is required to log funnel step.")},m=function(e,n,r){n||t.log("Parameter formName is required to log impression."),r||t.log("Parameter source is required to log impression.");var i={aid:pn.aid,pageview_id:pn.main.fetchPageViewId(),custom_form_name:n,custom_form_source:r,cookie_consents:t.getCookieConsents()},a=pn.user.getProvider().getToken();return a&&(i.user_token=a),e&&(i.tracking_id=e),o("/api/v3/customform/log/impression",i)},v=function(e,n,r){n||t.log("Parameter formName is required to log submission."),r||t.log("Parameter source is required to log submission.");var i={aid:pn.aid,pageview_id:pn.main.fetchPageViewId(),custom_form_name:n,custom_form_source:r,cookie_consents:t.getCookieConsents()},a=pn.user.getProvider().getToken();return a&&(i.user_token=a),e&&(i.tracking_id=e),o("/api/v3/customform/log/submission",i)},g=function(e,o){if(!function(){var e=window.doNotTrack||window.navigator.doNotTrack||window.navigator.msDoNotTrack;return!!e&&("1"===e.charAt(0)||"yes"===e)}()){var i,a=r(o),s=e+"?"+a;if(navigator.sendBeacon)if(s.length>6e3){var c=new Blob([a],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(e,c)}else navigator.sendBeacon(s);else(i=-1!==navigator.appVersion.indexOf("MSIE 9")?{dataType:"jsonp",url:s}:{type:"post",url:s,async:!1,xhrFields:{withCredentials:!0}}).error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.debug.apply(t,b(["Beacon request has been failed"],e,!1))},n.request(i)}};return{name:"log",logMicroConversion:s,logConversion:d,logFunnelStep:f,logEspMicroConversion:u,logBeaconRequest:g,logAutoMicroConversion:c,__protected__:{handleEvent:function(e,n){var t=n.trackingId,r=n.termId,o=n.termName,i=n.stepNumber,a=n.stepName,l=n.amount,p=n.currency,h=n.customParams,y=n.conversionCategory,w=n.eventGroupId,_=n.eventType,b=n.url,k=n.params,C=n.formName,I=n.source,S=n.espWidgetId;switch(e){case go.LOG_CONVERSION:return void d(t,r,o,i,l,p,h,y);case go.LOG_AUTO_MICRO_CONVERSION:return void c(t,w,_,h);case go.LOG_BEACON_REQUEST:return void g(b,k);case go.LOG_CUSTOM_FORM_IMPRESSION:return void m(t,C,I);case go.LOG_CUSTOM_FORM_SUBMISSION:return void v(t,C,I);case go.LOG_ESP_MICRO_CONVERSION:return void u(t,S,w,_,h);case go.LOG_FUNNEL_STEP:return void f(t,i,a,h);case go.LOG_MICRO_CONVERSION:return void s(t,w,h)}},logCustomFormImpression:m,logCustomFormSubmission:v,logEspMicroConversion:u,logAutoMicroConversion:c},__private__:{doLog:o,logBeaconRequest:g}}}()}),pn.log=pn.container.resolve("log"),function(e){e.TRACK_EVENT="track",e.TRACK_CUSTOM_EVENT="trackCustom"}(yo||(yo={}));var wo=function(){var e=pn.container.resolve("util"),n=!1,t=function(t,r,o){n?(o||(o={}),e.log("fbpixel: Track Facebook Pixel event",r,o),window.fbq(t,r,o)):e.log("fbpixel: Skip tracking event - Facebook Pixel is not initalized",r,o)},r=function(){return n};return{name:"fbpixel",isInitialized:r,__private__:{isInitialized:r},__protected__:{init:function(){if(!n){var t=pn.getFbPixelId();if(!t)return void e.error("fbpixel: Facebook Pixel ID is not defined");e.log("fbpixel: Initialize Facebook Pixel tracking",t),function(e,n,t,r,o,i,a){e.fbq||(o=e.fbq=function(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)},e._fbq||(e._fbq=o),o.push=o,o.loaded=!0,o.version="2.0",o.queue=[],(i=n.createElement(t)).async=!0,i.src="https://connect.facebook.net/en_US/fbevents.js",(a=n.getElementsByTagName(t)[0]).parentNode.insertBefore(i,a))}(window,document,"script"),window.fbq("set","autoConfig","false",t),window.fbq("init",t),n=!0}},handleEvent:function(e,n){var r=n.eventName,o=n.eventParams;switch(e){case yo.TRACK_EVENT:return void t(yo.TRACK_EVENT,r,o);case yo.TRACK_CUSTOM_EVENT:return void t(yo.TRACK_CUSTOM_EVENT,r,o)}}}}}();pn.container.register("fbpixel",{useValue:wo}),pn.fbpixel=pn.container.resolve("fbpixel");var _o,bo=function(){var e={},n={};return{name:"gaCollectingService",setParam:function(e,t){t&&(n[e]=t)},getParams:function(){return p({aid:pn.aid,tags:pn.tags,debug:pn.debug,url:window.location.href},n)},setParamMap:function(e){n=p(p({},n),e)},isEventExcluded:function(n){return e[n]},setExcludedEvents:function(n){e=p(p({},e),n)}}}();pn.container.register("gaCollectingService",{useValue:bo}),pn.gaCollectingService=pn.container.resolve("gaCollectingService"),function(e){e.EMIT_GA_EVENT="emitGAEvent",e.EMIT_METRICS_EVENT="emitMetricsEvent"}(_o||(_o={}));var ko={experienceExecute:!0,meterActive:!0,meterExpired:!0,beforeBrowserEvent:!1,setResponseVariable:!0,startCheckout:!1,showOffer:!0,showTemplate:!0,termSelected:!0,promoApplied:!0,promoInvalid:!0,submitPayment:!1,checkoutCustomEvent:!0,checkoutStateChange:!1,receiptDisplayed:!1,checkoutSuccess:!0,checkoutRestarted:!1,checkoutError:!0,checkoutClose:!1,publisherLoginRequired:!1,loginRequired:!1,loginDisplayed:!1,registrationDisplayed:!1,loginSuccess:!0,registrationSuccess:!0,logout:!1},Co=function(){var e,n=pn.container.resolve("util"),t=pn.container.resolve("api"),r=pn.container.resolve("postmessage"),o=pn.container.resolve("gaCollectingService"),i="pianoTracker",a="performanceTracker",s="gaAccount",c="metricsGAAccount",u="trackOnlyAids",l="disabled",d={gaAccount:void 0,trackerName:i,trackOnlyAids:[],metricsGAAccount:void 0,isGAEnabled:!1,isGAAppended:!1,isMetricsEnabled:!1,isTrackerAppended:!1,isMetricsTrackerAppended:!1},p=[],f=!1,m=!0,v=!1,g=!1,h=[],y=function(e){if(e.hitType="timing",!d.isMetricsTrackerAppended)return C("send",e),void function(){if(!g){if(g=!0,P(),!d.metricsGAAccount)return void new Promise((function(e,n){t.callApi("/anon/assets/performanceMetrics",null,(function(t){0===t.code?(T(t.performance_metrics_dto),e(null)):n()}))})).then((function(){return M()})).catch((function(e){n.error("PN catch: something vent wrong with GA injection: ".concat(e))}));M().catch((function(e){n.error("PN catch: something vent wrong with GA injection: ".concat(e))}))}}();if(d.isMetricsEnabled){if(!window.ga||!d.isMetricsTrackerAppended)return void C("send",e);h.length&&I(),E("send",e)}};function w(){v||(v=!0,m?setTimeout((function(){m=!1,_()}),3e3):_())}function _(){P(),d.gaAccount?A().catch((function(){})):new Promise((function(e,n){t.callApi("/anon/assets/gaAccount",{aid:tp.aid},(function(t){0===t.code?(x(t.data),e(null)):n()}))})).then((function(){return A()})).catch((function(){}))}var b=function(e,n){p.push({action:e,params:n})},k=function(){if(window.ga&&d.isTrackerAppended)for(;p.length;){var e=p.pop();S(e.action,e.params)}},C=function(e,n){h.push({action:e,params:n})},I=function(){if(window.ga&&d.isMetricsTrackerAppended)for(;h.length;){var e=h.pop();E(e.action,e.params)}},S=function(e,n){if(!o.isEventExcluded(n.eventCategory)){if(!window.ga||!d.isTrackerAppended)return void b(e,n);window.ga(d.trackerName+"."+e,n)}},E=function(e,n){if(d.isMetricsEnabled){if(!window.ga||!d.isMetricsTrackerAppended)return void C(e,n);window.ga(a+"."+e,n)}},P=function(){if(!f){if(tp.gaClientId&&(e=tp.gaClientId),n.__protected__.hasLocalStorage()){var t=n.__protected__.getLocalStorageItem(s),r=n.__protected__.getLocalStorageItem(c),o=n.__protected__.getLocalStorageItem(u);d.isGAEnabled=!!t&&t!==l,d.isMetricsEnabled=!!r&&r!==l,d.gaAccount=t,d.metricsGAAccount=r,d.trackOnlyAids=o||[]}f=!0}};var x=function(e){d.isGAEnabled=!!e,d.gaAccount=e||l,n.__protected__.setLocalStorageItem("vx",s,d.gaAccount,1)},T=function(e){d.isMetricsEnabled=JSON.parse(e.is_enabled),d.metricsGAAccount=d.isMetricsEnabled?e.ga_account:l,d.trackOnlyAids=d.isMetricsEnabled?JSON.parse(e.track_only_aids):[],n.__protected__.setLocalStorageItem("vx",u,d.trackOnlyAids,1),n.__protected__.setLocalStorageItem("vx",c,d.metricsGAAccount,1)};function A(){return new Promise((function(n,t){d.isGAEnabled?O().then((function(){if(d.isGAAppended)if(d.isTrackerAppended)n(null);else try{var r=document.createElement("script");r.innerHTML=function(){var n=new RegExp("^UA-[0-9a-zA-Z]*-[0-9a-zA-Z]*$").test(d.gaAccount),t=new RegExp("([{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?)|([0-9]*\\.[0-9]*)").test(e||"");if(!n)return"";var r="ga(function() {\n        ga('create', '".concat(d.gaAccount,"', 'auto', '").concat(i,"'");return r+=e&&t?", { clientId: '".concat(e,"' });"):");\n        tp.gaService.setClientId(ga.getByName('".concat(i,"').get('clientId'));"),r+"tp.gaService.trackerAppended(); });"}(),document.head.appendChild(r),d.isTrackerAppended=!0,n(null)}catch(e){t()}else t()})).catch((function(e){})):t()}))}function M(){return new Promise((function(e,n){d.isMetricsEnabled?O().then((function(){if(d.isGAAppended)if(d.isMetricsTrackerAppended)e(null);else try{var t=!d.trackOnlyAids.length||d.trackOnlyAids.contains(tp.aid),r=document.createElement("script");if(!new RegExp("^UA-[0-9a-zA-Z]*-[0-9a-zA-Z]*$").test(d.metricsGAAccount))return void n();r.innerHTML="\n                  ga(function() {\n                    if (".concat(t,") {\n                      ga('create', '").concat(d.metricsGAAccount,"', 'auto', '").concat(a,"', { storage: 'none' });\n                      tp.gaService.metricsTrackerAppended();\n                    }\n                  });\n                  "),document.head.appendChild(r),d.isMetricsTrackerAppended=!0,e(null)}catch(e){n()}else n()})):e("isMetricsEnabled !== true")}))}function O(){return new Promise((function(e,n){if(d.isGAAppended)e(null);else try{var t=document.createElement("script");t.innerHTML="\n            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n            })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n          ",document.head.appendChild(t),d.isGAAppended=!0,e(null)}catch(e){n()}}))}return{name:"gaService",getClientId:function(){return e},getGAAccount:function(){return d.gaAccount},metricsTrackerAppended:function(){d.isMetricsTrackerAppended=!0,g=!1,I()},recreateWithClientId:function(n){e=n,w()},setClientId:function(n){e=n},setTrackerName:function(e){d.trackerName=e},trackerAppended:function(){d.isTrackerAppended=!0,r.broadcast("gaAppended",{clientId:e,gaAccount:d.gaAccount}),v=!1,k()},__protected__:{handleEvent:function(e,n){switch(e){case _o.EMIT_GA_EVENT:return void function(e){if(e.hitType="event",e.nonInteraction=ko[e.eventCategory],!d.isTrackerAppended)return b("send",e),void w();if(d.isGAEnabled){if(!window.ga||!d.isTrackerAppended)return void b("send",e);p.length&&k(),S("send",e)}}(n);case _o.EMIT_METRICS_EVENT:return void y(n)}}}}}();pn.container.register("gaService",{useValue:Co}),pn.gaService=pn.container.resolve("gaService");var Io=function(e){void 0===e&&(e=pn.container);var n=e.resolve("gaCollectingService"),t=["trackingId"],r={measurementId:""},o=[],i=function(){return"function"==typeof window.gtag},a=function(e){return e.eventParameters?"gtag('config', '".concat(e.measurementId,"', ").concat(function(e){return e||(e={}),JSON.stringify(e)}(e.eventParameters),");"):"gtag('config', '".concat(e.measurementId,"');")},s=function(e){var n=document.createElement("script");return n.innerHTML="".concat(i()?"":"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());","\n")+"function setGoogleTagConfig() {\n"+"  if (".concat(!e.measurementId,") { return; }\n")+"  ".concat(a(e),"\n")+"}\nsetGoogleTagConfig();",n},c=function(e,n,t,r){void 0===e&&(e="");return e&&e.includes(t)?e:["offerId","aid","templateId","templateVariantId"].reduce((function(e,o){return r[o]&&(e.length&&(e+=n),e+="".concat(o).concat(t).concat(r[o])),e}),e)},u=function(e,n){var r=p(p(p({},e),n),{non_interaction:ko[e.eventCategory],event_action:c(e.eventAction,"____","_",n),event_label:c(e.eventLabel," ",":",n)});return Object.keys(r).reduce((function(e,n){var o=r[n];return function(e,n){return e.includes("user")||"nonInteraction"===e||"object"==_typeof(n)||"function"==typeof n}(n,o)||(e[function(e){return t.includes(e)&&(e="piano_"+e),function(e){return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(function(e,n){return n?"_"+e:e})).toLowerCase()}(e)}(n)]=o),e}),{})},l=function(){!r.measurementId||(function(){if(!i()){var e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id=".concat(r.measurementId),document.head.appendChild(e)}}(),document.head.appendChild(s(r)))},d=function(e){n.isEventExcluded(e.name)||window.gtag("event",e.name,p({send_to:e.sendTo},e.params))};return{name:"ga4Service",getMeasurementId:function(){return r.measurementId},appendGoogleTag:l,sendCustomEvent:d,setGa4Config:function(e){r=e,l()},__protected__:{handleEvent:function(e,t){if(e===_o.EMIT_GA_EVENT){var a=function(e,t){return{name:t.eventCategory,sendTo:r.measurementId,params:u(t,n.getParams())}}(0,t);if(i()&&a.sendTo)return d(a),o.forEach((function(e){e.sendTo||(e.sendTo=r.measurementId),d(e)})),void(o=[]);!function(e){o.push(e)}(a)}}}}}();pn.container.register("ga4Service",{useValue:Io}),pn.ga4Service=pn.container.resolve("ga4Service");pn.container.register("analytics",{useValue:function(e){void 0===e&&(e=pn.container);var n,t,r=e.resolve("gaService"),o=e.resolve("ga4Service"),i=e.resolve("fbpixel"),a=e.resolve("log"),s=function(e){return e||function(){}},c=function(e){return{initialize:s(e.__protected__.init),event:function(n){var t=n.eventType,r=n.payload;return e.__protected__.handleEvent(t,r)}}};return{name:"analytics",ga:(n=r,t=o,{initialize:function(){},event:function(e){var r=e.eventType,o=e.payload;n.__protected__.handleEvent(r,o),t.__protected__.handleEvent(r,o)}}),fbpixel:c(i),log:c(a)}}()}),pn.analytics=pn.container.resolve("analytics");var So=function(){var e=pn.container.resolve("api"),n=pn.container.resolve("analytics"),t={completeInit:0,expExec:0,idShow:0,myAccountShow:0,offerShow:0,templateShow:0,tpAccShow:0,track:0};setTimeout((function(){r()}),1e4);var r=function(r){if(Math.floor(500*Math.random())+1===255){var o=r||(pn.fullTPVersion?"ts_c":"ts_s"),i={completeInit:t.completeInit,track:t.track,expExec:t.expExec,idShow:t.idShow,myAccountShow:t.myAccountShow,offerShow:t.offerShow,templateShow:t.templateShow,tpAccShow:t.tpAccShow,aid:pn.aid,type:o};n.log.event({eventType:go.LOG_BEACON_REQUEST,payload:{url:e.getEndpoint()+"/internal/anon/telemetry/ux/init/time/log",params:i}})}};return{name:"logging",setTime:function(e){0===t[e]&&(t[e]=Math.round(performance.now()-window.pnInitPerformance))}}}();pn.container.register("logging",{useValue:So}),pn.logging=pn.container.resolve("logging");var Eo,Po="/execution/credit",xo="".concat(Po,"/redeem"),To="".concat(Po,"/check");!function(e){e.AUTO="A",e.MANUAL="M"}(Eo||(Eo={}));var Ao=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("ajax"),t=pn.container.resolve("jqUtils"),r=pn.container.resolve("eventUtils"),o=pn.container.resolve("consent"),i=function(e){return Object.entries(e).reduce((function(e,n){var t=n[0],r=n[1];return(r||0===r)&&(e[t]=r),e}),{})},a=r.createEventManager([]),s=function(){return e.__protected__.getCookie("xbc")||void 0},c=function(r,o,a){return new Promise((function(c,u){var l=a?"?"+t.param(a):"",d=function(){var e=pn.getExperienceEndpoint(!1);return"".concat(e,"/").concat(pn.aid)}()+r+l,f=i({xbc:s(),tbc:e.getTbcCookie()||void 0}),m=i(p(p({},f),o));if(!(m.cid&&m.itemId&&m.xbc)){var v="credit: Error: Required params are absent";e.debug(v),u({code:0,message:v})}n.request({type:"post",url:d,data:p(p({},f),o),xhrFields:{withCredentials:!0},error:function(n){var t="credit: Error: Received error:".concat(n.status," ").concat(n.responseText);e.debug(t),u({code:n.status,message:n.responseText})},success:function(e){c(e)}})}))},u=function(e,n,t,r){var o=function(e){return function(n){return a.fire(void 0,e,!0,n),n}},i=o("string"==typeof e?e:e.success),s=o("string"==typeof e?e:e.failure);return c(n,t,r).then(i).catch(s)};return{redeem:function(n){var t=o.__protected__.addConsentsToParams({}),r=t.consent_modes,i=t.consent_purposes;return u("manualCreditRedeemed",xo,p(p({},n),{previousUserSegments:Ar.get("userSegments"),consentModes:r,consentPurposes:i})).then((function(n){var t=n.xbc;t&&t!==s()&&e.setXbcCookieFromResponse({xbc:t})}))},check:function(e){return u("creditChecked",To,e)},registerCallback:function(e,n){a.addEvent(e),a.registerCallback(e,n)}}}();pn.container.register("credit",{useValue:Ao}),pn.credit=pn.container.resolve("credit");var Mo=function(){var e,n=pn.container.resolve("postmessage"),t=pn.container.resolve("containerUtils"),r=pn.container.resolve("util"),o=pn.container.resolve("eventUtils"),i=pn.container.resolve("logging"),a=o.createEventManager(["resize","loginSuccess","logout"]),s=function(){return pn.getEndpointRoot(!0)+"/checkout/user/loginShow"};function c(o){r.debug("Login event received",o.event,o.params,o);var i=!t.getIframe(o.sender).config.parent;switch(o.event){case"loaded":e=!1,!0;break;case"close":t.closeModalContainer(),a.fireCallbacks(o.event,o.params,o.sender,i);break;case"cancel":case"error":case"customEvent":a.fireCallbacks(o.event,o.params,o.sender,i);break;case"loginSuccess":!function(e,n,o,i){var s=t.getIframe(o);r.setAccessTokenListCookie({value:n.token_list,cookie_domain:n.cookie_domain},n.user_token),s.config.userToken=n.user_token,s&&s.config&&s.config.loginSuccess&&s.config.loginSuccess(n.event,n.params,n.sender),a.fireCallbacks(e,n,o,i),s&&s.config&&s.config.closeAfterSuccess&&t.closeModalContainer(o);var c={reloadAfterLogin:!0,userToken:n.user_token,user:n.user};u(c)}(o.event,o.params,o.sender,i);break;case"logoutSuccess":!function(e,n,t,o){a.fireCallbacks("logout",null,void 0,!0),r.setAccessTokenListCookie({value:n.token_list,cookie_domain:n.cookie_domain},n.user_token,!0)}(o.event,o.params,o.sender);break;case"readyToSubmitStats":var s={pageViewId:pn.main.fetchPageViewId(),tbc:r.getTbcCookie()};n.send("submitStats",s,o.sender);break;default:return void r.debug("Received invalid event type: "+o.event)}}var u=function(e){n.broadcast("reloadOffer",e)};var l;function d(e){l&&t.closeModalContainer(l);var n={};Object.assign(n,{closeAfterSuccess:!0},e),n.displayMode="popup",n.width=360,n.height=660,n.state=n.state?n.state:"login";var o=function(e){var n={};return["displayMode","aid","width","height","state"].forEach((function(t){e[t]&&(n[t]=e[t])})),n}(n);o.iframeId=r.randomString(16),o.url=window.location.href,o.host_url=window.location.href,l=o.iframeId,function(e){["aid","gaClientId","tags","contentSection","contentAuthor"].forEach((function(n){pn[n]&&(e[n]=pn[n])})),pn.contentCreated&&(e.contentCreated=pn.contentCreated)}(o),o.user_provider="tinypass_accounts",e.userToken&&(o.user_token=e.userToken),r.getCampaigns(o);var i,u={url:s(),config:n,postMessageUrl:s(),receive:c,iframeParams:o};return n.iframeId?(u.iframeParams.iframeId=n.iframeId,i=t.redirectContainer(n.iframeId,u)):i=t.createContainer(u),a.registerCallback(n,o.iframeId),i}return{name:"tinypassLogin",show:function(n){if(e)return!1;e=!0,setTimeout((function(){e=!1}),1e4),d(n)||r.error("Could not initialize login; check configuration"),i.setTime("tpAccShow")},close:function(){t.closeModalContainer()},showBackdrop:function(){t.showBackdrop()},hideBackdrop:function(){t.hideBackdrop()},centerBackdrop:function(e){t.centerBackdrop(e)},registerCallback:function(e,n){a.registerCallback(e,n)},listenLogin:function(e){!function(e){a.registerCallback(e,e.iframeId);var t={iframeId:e.iframeId,config:e,iframeParams:e};n.init({postMessageUrl:s(),receive:c,iframe:t,iframeParams:{}})}(e)}}}();pn.container.register("tinypassLogin",{useValue:Mo}),pn.tinypassLogin=pn.container.resolve("tinypassLogin");var Oo=function(){var e=pn.container.resolve("ajax"),n=pn.container.resolve("jqUtils"),t=pn.container.resolve("util"),r=pn.container.resolve("tinypassLogin"),o=pn.container.resolve("eventUtils").createEventManager(["logout"]),i=function(){return t.getUserTokenCookie()||null};return{name:"tinypassAccounts",isv:!1,isUserValid:function(){return!!t.getUserTokenCookie()},getToken:i,getName:function(){return"tinypass_accounts"},onLoginSuccess:function(e){t.setAccessTokenListCookie({value:e.token_list,cookie_domain:e.cookie_domain},e.user_token)},isConfigured:function(){return!0===pn.useTinypassAccounts||"string"==typeof pn.useTinypassAccounts&&"true"===pn.useTinypassAccounts},login:function(e){return(e=e||{}).userToken=i(),r.show(e)},logout:function(r){var i={aid:pn.aid,url:document.location.href},a=pn.getEndpointRoot(!0)+"/checkout/user/logout?"+n.param(i);t.setAccessTokenListCookie({value:null},void 0,!0),e.request({url:a,dataType:"jsonp",success:function(e){t.setAccessTokenListCookie({value:"",cookie_domain:e.models.cookie_domain},e.models.user_token,!0),o.fireCallbacks("logout",null,void 0,!0),r&&r(e)},error:function(e){t.setAccessTokenListCookie(null,void 0,!0),o.fireCallbacks("logout",null,void 0,!0),r&&r(e)}})},registerCallback:function(e,n){o.addEvent(e),o.registerCallback(e,n)}}}();pn.container.register("tinypassAccounts",{useValue:Oo}),pn.tinypassAccounts=pn.container.resolve("tinypassAccounts");var No=function(){var e=pn.container.resolve("jqUtils"),n=pn.container.resolve("cookie"),t=pn.container.resolve("util"),r=pn.container.resolve("eventUtils").createEventManager(["logout"]);return{isv:!1,name:"condeUserProvider",getName:function(){return"conde"},isUserValid:function(){return!!t.getUserTokenCookie()},getToken:function(){var e=t.findCookieByName("amg_user_partner");return void 0!==e&&e&&e.length>=0?e:null},onLoginSuccess:function(r){t.setAccessTokenListCookie({value:r.token_list,cookie_domain:r.cookie_domain},r.user_token);var o={path:"/",expires:730};r.cookie_domain&&"localhost"!==r.cookie_domain&&e.inArray(r.cookie_domain,t.getPossibleCookieDomains())>=0&&(o.domain=r.cookie_domain),n.raw=!0,t.__protected__.setCookie(r.params.cookieName,r.params.cookieValue,o),t.__protected__.setCookie("amg_user_partner",r.params.externalId,o),t.__protected__.setCookie("amg_user_info",r.params.userName,o),t.__protected__.setCookie("amg_user_ext",r.params.siteUserId,o),r.params.updateToken&&t.__protected__.setCookie("amg_user_update",r.params.updateToken,o),n.raw=!1},logout:function(e){t.setAccessTokenListCookie({value:null},void 0,!0);var n=t.getPossibleCookieDomains();for(var o in n)t.deleteCookie("amg_user",n[o]),t.deleteCookie("amg_user_partner",n[o]),t.deleteCookie("amg_user_info",n[o]),t.deleteCookie("amg_user_ext",n[o]),t.deleteCookie("amg_user_update",n[o]);t.deleteCookie("amg_user"),t.deleteCookie("amg_user_partner"),t.deleteCookie("amg_user_info"),t.deleteCookie("amg_user_ext"),t.deleteCookie("amg_user_update"),r.fireCallbacks("logout",null,void 0,!0),e&&e()},isConfigured:function(){return!0===pn.useCondeUserProvider||"string"==typeof pn.useCondeUserProvider&&"true"===pn.useCondeUserProvider},registerCallback:function(e,n){r.addEvent(e),r.registerCallback(e,n)}}}();pn.container.register("condeUserProvider",{useValue:No}),pn.condeUserProvider=pn.container.resolve("condeUserProvider");var Ro=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("api"),t=pn.container.resolve("eventUtils"),r=pn.container.resolve("jqUtils"),o=!1;var i=t.createEventManager(["userChanged","onHide","logout"]),a={apiKey:null,screenSet:"Default-RegistrationLogin",startScreen:null,enabledProviders:null,lang:null};function s(){var n=e.getUserTokenCookie();if(n&&e.findCookieByName("glt_"+a.apiKey)===e.findCookieByName("__utg_"+a.apiKey))return n;return null}function c(){var e=s();return!!(void 0!==e&&e&&e.length>=0)}var u=[];function l(t,s){if(!o)throw"Gigya is not configured";p();var l=e.findCookieByName("glt_"+a.apiKey),d=e.findCookieByName("__utg_"+a.apiKey);(l!==d||l&&l===d&&!c()||t)&&(u.push(s),1===u.length&&window.gigya.accounts.getAccountInfo({callback:function(t){if(0===t.errorCode){var o={uid:t.UID,signature:t.UIDSignature,signature_timestamp:t.signatureTimestamp,url:e.prepareUrlParameter(window.location.href)};e.startCall("refreshUserToken"),n.callApi("/anon/gigya/verifyAccountInfo",o,(function(n){if(n&&n.result){e.setAccessTokenListCookie(n.result.access_token,n.result.user_token);var t={path:"/",expires:730};if(n.result.access_token){var o=n.result.access_token.cookie_domain;o&&"localhost"!==o&&r.inArray(o,e.getPossibleCookieDomains())>=0&&(t.domain=o)}var s=e.findCookieByName("glt_"+a.apiKey);e.__protected__.setCookieConsent("vx","__utg_"+a.apiKey,s,t);for(var c=0;c<u.length;c++){var l=u[c];l&&l(n.result)}n.result.user&&(n.result.user={uid:n.result.user.uid,email:n.result.user.email,firstName:n.result.user.first_name,lastName:n.result.user.last_name,valid:n.result.user.valid}),i.fireCallbacks("userChanged",n.result,void 0,!0)}else e.log("Can't verify gigya user: may be the configuration of gigya user provider is invalid"),e.setAccessTokenListCookie();u=[],e.doneCall("refreshUserToken")}))}else e.setAccessTokenListCookie(),u=[]}}))}var d=!1;function p(){if(!window.gigya||!window.gigya.__initialized)throw"Gigya is not initialized"}return{isv:!1,name:"gigya",init:function(n){if(!o){for(var t in n)void 0!==n[t]&&(a[t]=n[t]);if(!a.screenSet)throw"Gigya is not configured: screenSet parameter required";if(!a.apiKey)throw"Gigya is not configured: apiKey parameter required";p(),window.gigya.accounts.addEventHandlers({onLogin:function(){d=!0,l()},onLogout:function(){e.setAccessTokenListCookie({value:null},void 0,!0),i.fireCallbacks("logout",null,void 0,!0)}}),o=!0,l()}},isUserValid:c,getToken:s,getName:function(){return"gigya"},onLoginSuccess:function(n){e.setAccessTokenListCookie({value:n.token_list,cookie_domain:n.cookie_domain},n.user_token)},login:function(e){if(!o)throw"Gigya is not configured";p(),e&&window.gigya.accounts.addEventHandlers({onLogin:function(){l(!0,e)}});var n={screenSet:a.screenSet,onHide:function(){i.fireCallbacks("onHide",{afterLogin:d},void 0,!0)}},t=["apiKey","screenSet"];for(var r in a){r in t||(n[r]=a[r])}d=!1,window.gigya.accounts.showScreenSet(n)},logout:function(n){if(!o)throw"Gigya is not configured";p(),window.gigya.accounts.logout({callback:function(){i.fireCallbacks("logout",null,void 0,!0),n&&n(),e.setAccessTokenListCookie({value:null},void 0,!0)}}),e.setAccessTokenListCookie({value:null},void 0,!0)},isConfigured:function(){return!0===pn.useGigyaUserProvider||"string"==typeof pn.useGigyaUserProvider&&"true"===pn.useGigyaUserProvider},registerCallback:function(e,n){i.addEvent(e),i.registerCallback(e,(function(e){return n(e)}))},loginByPasswordless:function(n){if(!n)throw"Session info is empty";var t=n.accessTokenName,r=n.accessToken;e.__protected__.setCookie(t,r);var o="glt_"+a.apiKey;e.__protected__.setCookieConsent("vx",o,r),l(!0)}}}();pn.container.register("gigya",{useValue:Ro}),pn.gigya=pn.container.resolve("gigya");var Lo,Do,Uo=function(){var e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return d(n,e),n.prototype.construct=function(e){this.message=e,this.name="InvalidCharacterError"},n}(Error);function n(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,a=0,s="";o=t.charAt(a++);~o&&(r=i%4?64*r+o:o,i++%4)?s+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s}try{var t=window.atob&&window.atob.bind(window)||n}catch(e){t=n}var r=function(e){var n=e.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(t(e).replace(/(.)/g,(function(e,n){var t=n.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(n)}catch(e){return t(n)}};return function(e,n){if("string"!=typeof e)throw new Error("Invalid token specified");var t=!0===(n=n||{}).header?0:1;return JSON.parse(r(e.split(".")[t]))}}();pn.jwtDecode=Uo,pn.container.register("jwtDecode",{useValue:Uo}),function(e){e.Modal="modal",e.Inline="inline",e.Popup="popup",e.Redirect="redirect",e.InlinePopup="inlinePopup"}(Lo||(Lo={})),function(e){e.None="none",e.Before="before",e.After="after"}(Do||(Do={}));pn.container.register("pianoId",{useValue:function(e){void 0===e&&(e=pn.container);var n,t,r,o,i,a=e.resolve("cookie"),s=e.resolve("jqUtils"),c=e.resolve("ajax"),u=e.resolve("jwtDecode"),l=e.resolve("util"),d=e.resolve("containerUtils"),f=e.resolve("postmessage"),m=e.resolve("observer"),v=e.resolve("gaService"),y=e.resolve("api"),w=e.resolve("logging"),_=e.resolve("localStorage"),k=e.resolve("consent"),C=e.resolve("analytics"),I="gm_sso_redirect",S="token",E="term_id",P="offer_id",x="form_name",T="form_name_by_term_id",A="remember",M="reset_token",O="passwordless_token",N="verification_code",R="piano_social_token",L=l.getAidSpecifiedName("__utp"),D="__pil",U="__pid",j="__idr",V="__eea",F="PIANOID",B="show_form",q="registration",z="checkout",G=3e3,H="pnid-tc-string",W=["he_IL","ar_EG"],J={},Q=[],X={},Y={loggedIn:[],loggedOut:[],loginSuccess:[],registrationSuccess:[],profileUpdate:[],langChange:[],fire_loginSuccess:[],loginDisplayed:[],registerDisplayed:[],loginFailed:[],registrationFailed:[],onShow:[],layoutReady:[]},$={},K={},Z=[],ee=!1,ne={};s.on(window,"resize",(function(){return te()}));var te=function(e){Q.filter((function(e){return"inline"===e.config.displayMode})).filter((function(n){return!e||e.some((function(e){return n.container===e}))})).forEach((function(e){var n=s.getWidth(e.container);d.resizeIframe(e,{width:n}),f.send("resize",{width:n},e.iframeId)}))},re=function(e,n){var t=u(e);t.rememberMe=!!n,Qe({user:t,token:e})},oe=function(e){if(r&&!e)return r;var n;J=Object.assign(J,e),e&&Pe(e),Object.keys(Y).forEach((function(e){!!J[e]&&delete J[e]})),r=new Promise((function(e){n=e})),In()||pn.setUsePianoIdUserProvider(!0);var t=l.getQueryParamByName(M);if(void 0===J.resetPasswordToken&&t&&(J.resetPasswordToken=t),l.getQueryParamByName(I)){var o=l.getQueryParamByName(E),i=l.getQueryParamByName(P),a=l.getQueryParamByName(x),s=l.getQueryParamByName(T);o&&i&&(ne.termId=o,ne.offerId=i),a&&(ne.formName=a),s&&(ne.formNameByTermId=s),function(){var e=l.getQueryParamByName(S),n=!!l.getQueryParamByName(A);l.removeQueryParamByName([I,S,A,E,P,x,T]),re(e,n)}(),function(){var e=en(),n=u(e);e&&n.email_confirmation_required&&(ne.emailConfirmationRequired=n.email_confirmation_required)}()}var c=l.getQueryParamByName(O);void 0===J.passwordlessToken&&c&&(J.passwordlessToken=c);var d=l.getQueryParamByName(N);void 0===J.verification_code&&d&&(J.verification_code=d);var p=l.getQueryParamByName(R);return p&&(l.removeQueryParamByName(R),tn()||(pn.inappBrowserReturn=!0,re(p,!0))),setTimeout((function(){return n()}),50),r},ie=function(e,n){if(t&&!e)return t;var r;t=new Promise((function(e){r=e}));var o=function(){l.doneCall("refreshUserToken"),t=null,r()},i=function(e){"token_not_valid"===e?o():"request_failed"===e&&console.error("Opening the ID screen is prohibited because authentication via cookie failed.")};return e&&e.preview?(setTimeout((function(){return r()}),10),t):(l.startCall("refreshUserToken"),oe(e).then((function(){return J.passwordlessToken?de().then(o,o):n?Promise.resolve().then(o,o):an().then(o,i)})),t)},ae=function(e){var t=!tn(),r=Pn();ie().then((function(){var o,i=Object.assign({},J,e,{isRegistration:!0,isSensitiveDataProtectionDisabled:!0});if(r&&(i.sss=An()),ee)wn(i)?_n(i):on(i);else if(Pn()&&"redirect"===(null===(o=i.sss)||void 0===o?void 0:o.sss_mode))bn(i);else{var a=tn();if(a)_e(i,{emitGlobalLoginSuccessEvent:t&&a});else n?l.log("Modal login window already shown"):(xe(i),Ge(i));w.setTime("idShow")}}))},se=function(){var e="email_is_not_confirmed",n=Ze();if(n){var t=l.getQueryParamByName(e);if(t)l.removeQueryParamByName(e),ue({screen:"registration"===t?"email_is_not_confirmed":"email_confirmation_required",email:null==n?void 0:n.email})}},ce=function(e){n?l.log("Modal window already shown"):ie().then((function(){var n=Object.assign({screen:"email_confirmation_required"},J,e);xe(n),Ge(n)}))},ue=function(e){if(n)l.log("Modal window already shown");else{e||(e={});var t=Object.assign({},e,J);e.customEvents&&"object"==_typeof(e.customEvents)&&($=e.customEvents),xe(t),Ge(t)}},le=function(e){ie().then((function(){var t=Object.assign({},J,e,{isRegistration:!1});if(!t.formName)throw new Error('Form name should be specified, like\ntp.pianosId.showForm({formName: "..."});');var r=function(){if(n)l.log("Modal login window already shown");else{if(xe(t),!t.preview&&o)return void l.log("Skip show form, register new user");if(!t.hideIfComplete)return void Ge(p(p({},t),{entityType:"customForm",readyCallback:function(e){f.send("setToken",en(),e.iframeId)}}));yn(t).then((function(e){(null==e?void 0:e.has_all_custom_field_values_filled)&&t.hideIfComplete?l.log("Skip show form, all fields are completed"):Ge(p(p({},t),{entityType:"customForm",readyCallback:function(n){f.send("userData",e,n.iframeId)}}))}))}};if(e.preview||tn())r();else{var i=Object.assign({},e,{closedCallback:function(){tn()&&r()}});ae(i)}}))},de=function(){return new Promise((function(e,n){var t={aid:J.aid||pn.aid,passwordless_token:J.passwordlessToken,lang:vn()};c.request({url:"".concat(Fe(),"/passwordless/authorization/code?").concat(s.param(t)),type:"POST",success:function(n){pe(n),e(null)},error:function(e){var t=e.response,r=JSON.parse(t).error_code_list;fe(r),n()}})}))},pe=function(e){return g(void 0,void 0,void 0,(function(){var n,t,r,o,i,a,s;return h(this,(function(c){switch(c.label){case 0:return n=e.access_token,t=e.error,r=e.token_type,o=e.direction_url,i=e.code,a=e.extend_expired_access_enabled,!t&&"code"===r&&o&&i?((s=new URL(o)).searchParams.append("code",i),window.open(s,window.name),[3,3]):[3,1];case 1:return!t&&n?(me(e),delete J.passwordlessToken,l.removeQueryParamByName(O),Pn()&&pn.setSssAccessToken(n),[4,nn({source:F,token:n,user:u(n),extendExpiredAccessEnabled:a})]):[3,3];case 2:c.sent(),Pn()&&Tn(n),c.label=3;case 3:return l.doneCall("refreshUserToken"),[2]}}))}))},fe=function(e){ue({screen:"passwordless_confirmation",jsonpError:{error_description:e.map((function(e){return e.message})).join("\n")}}),delete J.passwordlessToken,l.removeQueryParamByName(O)},me=function(e){var n={aid:J.aid||pn.aid,login_token_id:e.login_token_id,user_token:e.access_token},t={passwordlessToken:e.passwordless_token,redirectUri:e.direction_url};ve(n,t)},ve=function(e,n){d.showWaitPanel(),y.callApi("/anon/passwordless/complete",e,(function(e){if(e.result&&e.result.polling_enabled)return ge(e).then((function(e){ye(e,n)}));ye(e,n)}))},ge=function(e){return new Promise((function(n){var t={aid:pn.aid,oid:e.result.oid,process_id:e.result.process_id,user_token:pn.user.getProvider().getToken()};he(t,0,e.result.polling_timeouts,n)}))},he=function e(n,t,r,o){y.callApi("/anon/passwordless/check",n,(function(i){t++,i&&i.result&&"waiting"!==i.result.poll_status?o(i):!i.result&&i.message?(l.error("Passwordless purchase failed",i.message),o()):t<=r.length?setTimeout((function(){e(n,t,r,o)}),r[t-1]):o()}))},ye=function(e,n){try{var t=e.result.resource||{},r=JSON.parse(e.result.show_offer_params),o=we(n);if(!Object.keys(t).length&&!Object.keys(r).length)return ue(o);o=t.name?we(n,{customParams:{resourceName:t.name}}):we(n,{customEvents:{checkoutContinue:function(){We(),d.closeModalContainer(),pn.offer.show(r)}}}),ue(o)}catch(e){ue(we(n))}finally{d.hideWaitPanel()}},we=function(e,n){var t={screen:"passwordless_confirmation"};return e&&(t.passwordlessToken=e.passwordlessToken,t.redirectUri=e.redirectUri),n?Object.assign(t,n):Object.assign(t,{passwordlessSuccess:!0})},_e=function(e,n){n=n||{};var t=Ze();if(t){var r={token:Ye(),user:t,source:n.source,stage:n.stage},i={event:"loginSuccess",source:n.source,params:r.user,user_token:r.token,registration:o,stage:n.stage};e?(e.loggedIn&&e.loggedIn(r),n.emitGlobalLoginSuccessEvent&&Se("loginSuccess",i)):(ke("loggedIn",r),ke("loginSuccess",r),n.source===F&&(ke("fire_loginSuccess",i),Se("loginSuccess",i)))}},be=function(e,n){var t={login:"loginDisplayed",register:"registerDisplayed"}[e];n||ke(t,{}),Se(t,{})},ke=function(e,n){var t;Ce(e,n),null===(t=Y[e])||void 0===t||t.forEach((function(e){return e(n)}))},Ce=function(e,n){Q.filter((function(e){return!e.closed})).map((function(n){return Ie(n.config,e)})).filter((function(e){return!!e})).forEach((function(e){return e(n)}))},Ie=function(e,n){return"function"==typeof(null==e?void 0:e[n])?e[n]:void 0},Se=function(e,n){var t;null===(t=K[e])||void 0===t||t.forEach((function(e){return e(n)}))},Ee=function(e,n){ke(e,n),Se(e,n)},Pe=function(e){!e||Object.keys(Y).forEach((function(n){var t,r=e[n];r&&(null===(t=Y[n])||void 0===t||t.push(r))}))},xe=function(e){var n;e.aid||(e.aid=pn.aid),e.displayMode||(e.displayMode=Lo.Modal),e.displayMode===Lo.Popup?(e.width=parseInt(e.width)||Ae(),e.height=parseInt(e.height)||460):e.displayMode===Lo.Modal&&(e.width=parseInt(e.width)||Ae()),ee&&(e.confirmation=null!==(n=e.confirmation)&&void 0!==n?n:Do.After),e.accessToken=Ye()},Te=function(e){G=e},Ae=function(){var e=window.innerWidth||document.documentElement.clientWidth||window.screen.width;return Math.min(e,400)},Me=function(e,n,t){return g(void 0,void 0,void 0,(function(){return h(this,(function(r){switch(r.label){case 0:return o=!1,[4,un()];case 1:return r.sent(),Ke(),Pn()&&pn.sssAccessToken&&pn.setSssAccessToken(void 0),_.remove(H),l.setAccessTokenListCookie({value:null},void 0,!0),t||function(e){var n={source:e};ke("loggedOut",n),Se("logout",n)}(n),e&&e(),[2]}}))}))};function Oe(e){return function(n){var t,r,o,i,a,c=e.config,u=c.trackingId,p=c.formName;switch(n.event){case"updateToken":nn(n.params);break;case"loaded":c.displayMode===Lo.Modal&&d.checkBackdropAndContainer(e,!0),null===(t=c.loadedCallback)||void 0===t||t.call(c,e);var m=pn.consent.getByPurpose();m&&f.send("consentWithModes",m,e.iframeId);break;case"stateReady":null===(r=c.readyCallback)||void 0===r||r.call(c,e);break;case"resize":d.resizeIframe(e,n.params);break;case"restoreSize":"inline"===e.config.displayMode&&d.resizeIframe(e,{width:s.getWidth(e.container)});break;case"loginSuccess":Ue(n,(function(){var e;null===(e=c.callback)||void 0===e||e.call(c),pn.user.refreshAccessToken(!0),f.broadcast("pianoIdLoginSuccess",n.params)}));break;case"loginFailed":Ee("loginFailed",n.params);break;case"registrationSuccess":Ue(n,(function(){Ee("registrationSuccess",n.params),f.broadcast("pianoIdLoginSuccess",n.params)}));break;case"registrationFailed":Ee("registrationFailed",n.params);break;case"lang":mn(n.params.lang,!0),Cn(n.params.lang,e);break;case"customEvent":!function(e,n){var t;null===(t=null==e?void 0:e.customEvent)||void 0===t||t.call(e,n),Se("customEvent",n)}(e.config,n.params);break;case"closed":"customForm"===e.config.entityType&&Se("customFormClosed",{config:e.config,reason:null===(o=n.params)||void 0===o?void 0:o.reason}),dn(e,{force:!0}),null===(i=c.closedCallback)||void 0===i||i.call(c,e);break;case"cfFormSubmission":C.log.event({eventType:go.LOG_CUSTOM_FORM_SUBMISSION,payload:{trackingId:u,formName:p,source:B}});break;case"formSend":Se("customFormSubmitted",{config:e.config,submittedFields:null===(a=n.params)||void 0===a?void 0:a.submittedFields}),dn(e,{reason:"customFormSubmitted"});break;case"formSkip":dn(e);break;case"cfAppImpression":C.log.event({eventType:go.LOG_CUSTOM_FORM_IMPRESSION,payload:{trackingId:u,formName:p,source:q}});break;case"cfAppSubmission":C.log.event({eventType:go.LOG_CUSTOM_FORM_SUBMISSION,payload:{trackingId:u,formName:p,source:q}});break;case"cfFormImpression":C.log.event({eventType:go.LOG_CUSTOM_FORM_IMPRESSION,payload:{trackingId:u,formName:p,source:B}});break;case"changeScreen":be(n.params.screen);break;case"screenReady":Ee("onShow");break;case"layoutReady":Ee("layoutReady",n.params);break;case"confirmationEmailSent":"inline"!==e.config.displayMode&&!n.params.isDOI&&!n.params.isPasswordlessDigitalCode&&dn(e);break;case"verificationCodeStartCheckout":var v={};try{v=JSON.parse(n.params.startCheckoutParams)}catch(e){l.log("error parse start checkout params"),v={}}an(!0,!0).then((function(){dn(e,{force:!0})})),l.waitCall("refreshUserToken",(function(){pn.offer.show(v)}));break;case"removeParamFromGlobalConfig":Re(n);break;case"verifyCode":Le(n,e);break;case"openPasswordlessLoginWithCreatingUser":Ne();break;case"fireCustomEvent":!function(e){$&&"function"==typeof $[e]&&$[e]()}(n.params.name);break;case"passwordRestored":l.removeQueryParamByName(M),J.resetPasswordToken=void 0;break;case _o.EMIT_GA_EVENT:C.ga.event({payload:n.params,eventType:_o.EMIT_GA_EVENT});break;case"redirect":document.location.href=n.params.url;break;case"designVersion":d.addClassToContainer(e,"piano-id-modal-ver-".concat(n.params.version));break;case"profileUpdated":ke("profileUpdate",n.params);break;case"logout":tn()&&Me();break;case"successDOI":f.broadcast("successDOI",n.params);break;default:l.debug("Received invalid event type: "+n.event)}}}var Ne=function(){ae({createPasswordlessUser:!0})},Re=function(e){var n=e.params.name,t=l.fromUnderscoreToCamelCase(n);delete J[t],e.params.removeFromUrl&&l.removeQueryParamByName(n)},Le=function(e,n){var t=e.params.verificationCode,r=e.params.locale,o=J.aid||pn.aid,i=en(),a=document.location.href;c.request({url:"".concat(Fe(),"/verification/code"),dataType:"jsonp",data:{client_id:o,access_token:i,site:a,verification_code:t,lang:r},success:function(e){e.error||De(e,n)},xhrFields:{withCredentials:!0},crossDomain:!0})},De=function(e,n){!e.error&&e.access_token&&(Qe({token:e.access_token,user:u(e.access_token),cookie_domain:e.site_cookie_domain}),Pn()&&(pn.setSssAccessToken(e.access_token),Tn(e.access_token))),f.send("verificationCodeComplete",e,n.iframeId)},Ue=function(e,n){return g(void 0,void 0,void 0,(function(){var t,r;return h(this,(function(i){switch(i.label){case 0:return e&&e.params&&!e.params.areCookiesSet?(e.params.source=F,o=!!e.params.registration,[4,nn(e.params)]):[3,2];case 1:return t=i.sent(),n(t),Be(null===(r=e.params)||void 0===r?void 0:r.user),[3,3];case 2:"function"==typeof n&&n(),i.label=3;case 3:return En(),[2]}}))}))},je=function(){var e=pn.sandbox||pn.isNonProdEndpoint(),n=J.iframeUrl||pn.pianoIdUrl||!e&&"https://id.tinypass.com"||"/";return"/"===n&&(n=pn.getEndpointRoot(!0)),n.replace(/\/$/,"")},Ve=function(){return"".concat(je(),"/id/")},Fe=function(){return"".concat(Ve(),"api/v1/identity")},Be=function(e){var n=null==e?void 0:e.email_confirmation_required,t=J.verification_code;n||t?d.hideCloseButton():fn()},qe=function(e,n,t,r){var o={client_id:n.aid,sender:null==t?void 0:t.iframeId,origin:r||window.location.origin||window.location.href,site:window.location.href,display_mode:n.displayMode,pageViewId:pn.main.fetchPageViewId(),tbc:l.getTbcCookie()},i=vn();if(i&&(o.lang=i),v.getClientId()&&(o.ga_client_id=v.getClientId()),v.getGAAccount()&&(o.ga=v.getGAAccount()),n.disableSignUp&&(o.disable_sign_up=!0),n.screen&&(o.screen=n.screen),n.resetPasswordToken&&(o.reset=n.resetPasswordToken),n.verification_code&&(o.verification_code=n.verification_code),n.stage&&(o.stage=n.stage),n.resetPasswordLandingUrl&&(o.reset_uri=n.resetPasswordLandingUrl),n.width&&n.displayMode===Lo.Modal&&(o.width=n.width),n.formName&&(o.form_name=n.formName),n.preview)switch(n.template){case"custom_form":e+="form";break;case"profile":e+="profile";break;case"newsletters":e+="newsletters";break;case"layout_gm_sso":case"sso_confirm":case"sso_confirm_before":e+="gm-sso"}else ze(n,e)&&(e+="form"),n.isGmSsoEnabled&&(e+="gm-sso");if(n.confirmation&&(o.gm_sso_confirm=n.confirmation),n.hideIfComplete&&(o.hide_if_complete=n.hideIfComplete),n.preview&&(o.preview=n.preview),n.templateVersion&&(o.templateVersion=n.templateVersion),n.template&&(o.template=n.template),n.accessToken&&(o.access_token=n.accessToken),n.email&&(o.email=n.email),n.singleStep&&(o.single_step=!0),n.createPasswordlessUser&&(o.create_passwordless_user=!0),n.customParams&&(o.custom_params=JSON.stringify(n.customParams)),n.customEvents){var a=Object.keys(n.customEvents);a.length&&(o.custom_events=JSON.stringify(a))}return n.jsonpError&&(o.jsonp_error=JSON.stringify(n.jsonpError)),n.passwordlessSuccess&&(o.passwordless_success=!0),n.passwordlessToken&&(o.passwordless_token=n.passwordlessToken),n.redirectUri&&(o.redirect_uri=n.redirectUri),null!=t&&t.iframeUrl&&(o.url=t.iframeUrl),n.returnBack&&(o.return_back=n.returnBack),null!=t&&t.pos&&(o.width=t.pos.width,o.height=t.pos.height,o.top=t.pos.top,o.left=t.pos.left),n.templateId&&(o.template_id=n.templateId),n.variantId&&(o.variant_id=n.variantId),n.sss&&(o.sss_mode=n.sss.sss_mode,o.sss_callback_url=n.sss.sss_callback_url,o.sss_origin_url=n.sss.sss_origin_url),n.trackingId&&(o.tracking_id=n.trackingId),[e,s.param(o)].join("?")},ze=function(e,n){var t=!e.isRegistration,r=!/\.html$/.test(n);return e.formName&&r&&t},Ge=function(e){var t=e.containerSelector?s.queryEl(e.containerSelector):null,r="piano-id-".concat(e.isRegistration?"":"form-").concat(l.randomString());e.singleContainer=t;var o,i,a,c={iframeId:r,containerSelector:e.containerSelector,width:e.width,height:e.height},u=qe(Ve(),e,c),p=!0;if(e.iframeParams=c,e.displayMode===Lo.Inline){var f=d.initInlineContainer(e);if(!(o=f.container))return;i=d.generateIframe(e,c,u),p=!!f.containerReady,e.observeContainer&&(a=m.create(o,te))}else if(e.displayMode===Lo.Modal)o=d.getModalContainer(e,(function(){return dn(n)})),i=d.generateIframe(e,c,u);else if(e.displayMode===Lo.Popup)if(l.isIE()){o=d.generateIframeWrapper(),u=qe(Ve(),e,c,Ve()+"proxy.html"),c.iframeUrl=u,c.pos=d.getPopupPosition(c);var v=qe(Ve()+"proxy.html",e,c);e.displayMode=Lo.InlinePopup,i=d.generateIframe({},c,v)}else{o=d.generatePopup(c,u);try{try{i=o.document}catch(e){i=o}}catch(e){i=window.document}}var g={iframeId:c.iframeId,config:e,element:i,container:o,iframeParams:c,containerReady:p};if(He(g),e.displayMode===Lo.Inline){var h=document.createElement("div");s.addClass("piano-id-container",h),s.append(h,i),s.append(o,h)}else e.displayMode===Lo.Modal?s.append(o,i):e.displayMode===Lo.InlinePopup&&(s.append(o,i),s.append(document.body,o));if(l.debug("creating iframe: ",e),Q.push(g),e.displayMode===Lo.Modal){(n=g).observer=a;var y=vn();Cn(y,g)}return g},He=function(e){var n={center:l.centerScreen(),originUrl:document.location.href};f.init({postMessageUrl:Ve(),receive:Oe(e),iframe:e,iframeParams:e.iframeParams},n)},We=function(e){if(n){var t=d.__private__.mobileModalFix;d.closeModal(n),s.remove(n.element),n.observer&&n.observer.disconnect(),t.isIphoneCaretFixed&&t.modalClosed(),n=void 0}},Je=function(){var e={path:"/",secure:l.__protected__.isHttpsProtocol(),priority:"High"},n=l.__protected__.getCookie(U),t=l.extractCookieDomain(n);return t&&(e.domain=t),(pn.cookieDomain||pn.cookiePath)&&(e.domain=pn.cookieDomain?pn.cookieDomain:e.domain,e.path=pn.cookiePath?pn.cookiePath:e.path),e},Qe=function(e){if(e&&e.user&&e.token){Ke({keepRememberMe:!0,keepExtendExpiredAccess:!0}),e.cookie_domain&&$e(e.cookie_domain),e.extendExpiredAccessEnabled&&(kn("setExtendExpiredAccess",!0,"broadcast"),Xe(V,"true"));var n={};if(("r"in e.user?e.user.r:e.user.rememberMe||hn())&&(n.expires=new Date(1e3*e.user.exp),Xe(j,1,n)),!Pn()){var t=l.getPossibleCookieDomains();for(var r in t)l.deleteCookie(L,t[r]);Xe(L,e.token,n)}}},Xe=function(e,n,t){l.__protected__.setCookieConsent("id",e,n,p(p({},Je()),t))},Ye=function(){return Pn()&&pn.sssAccessToken?pn.sssAccessToken:l.findCookieByName(L)||null},$e=function(e){Xe(U,e,{domain:e,expires:30})},Ke=function(e){var n=void 0===e?{}:e,t=n.keepRememberMe,r=n.keepExtendExpiredAccess,o=Je();l.getPossibleCookieDomains(o.domain).forEach((function(e){var n=p(p({},o),{domain:e});a.remove(L,n),r||a.remove(V,n),t||gn(n)}))},Ze=function(){var e=null,n=Ye();if(n)try{if(e=u(n)){e.firstName=e.given_name,e.lastName=e.family_name,e.valid=!0,e.uid=e.sub,e.confirmed=!e.email_confirmation_required;var t=new Date;new Date(1e3*e.exp)<t&&(Ke(),e=null)}}catch(e){}return e},en=function(){return pn.externalJWT&&In()?pn.externalJWT:Ye()},nn=function(e,n){return g(void 0,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:return Qe(e),[4,ln(e.token,e.rememberMe)];case 1:return t.sent(),!n&&_e(null,{stage:e.stage,source:e.source}),[2]}}))}))},tn=function(){return In()?!!pn.externalJWT:!!Ze()},rn=function(e,n,t){return g(void 0,void 0,void 0,(function(){var r,o;return h(this,(function(i){switch(i.label){case 0:return r=u(e.access_token),[4,nn({token:e.access_token,user:r,cookie_domain:e.site_cookie_domain,extendExpiredAccessEnabled:e.extend_expired_access_enabled},n)];case 1:return o=i.sent(),t&&Be(r),l.doneCall("refreshUserToken"),[2,o]}}))}))},on=function(e){return g(void 0,void 0,void 0,(function(){var t;return h(this,(function(r){return t=p(p({},e),{isGmSsoEnabled:ee}),xe(t),n?(l.log("Modal login window already shown"),[2]):(en()?t.confirmation!==Do.None&&!Sn()&&t.displayMode!==Lo.Popup&&(Ge(p(p({},t),{confirmation:Do.After})),En()):Ge(t),[2])}))}))},an=function(e,n){return new Promise((function(e,n){l.startCall("refreshUserToken");var t=function(t){t.isSuccessful?(e(null),ee&&function(){if(null!=ne&&ne.emailConfirmationRequired)ce({displayMode:Lo.Modal});else{if((null==ne?void 0:ne.offerId)&&(null==ne?void 0:ne.termId)){var e={offerId:ne.offerId,termId:ne.termId};ne.formNameByTermId&&(e=p(p({},e),{formNameByTermId:ne.formNameByTermId})),pn.offer.show(e),ne.offerId=void 0,ne.termId=void 0,ne.formNameByTermId=void 0}null!=ne&&ne.formName&&(le({formName:null==ne?void 0:ne.formName}),ne.formName=void 0),J.confirmation===Do.None||Sn()||ae({displayMode:Lo.Modal})}}()):n(t.failReason),l.doneCall("refreshUserToken")},r=function(e){return g(void 0,void 0,void 0,(function(){return h(this,(function(n){switch(n.label){case 0:return ee=e.authorized_by_sso,!e.error&&e.access_token?[4,rn(e,!1,!0)]:[3,2];case 1:return n.sent(),t({isSuccessful:!0}),[3,3];case 2:e.site_cookie_domain&&$e(e.site_cookie_domain),Ke(),t({isSuccessful:!1,failReason:"token_not_valid"}),n.label=3;case 3:return[2]}}))}))},o=en()||void 0,i={client_id:J.aid||pn.aid,site:document.location.origin||document.location.href},a=sn();a&&(i.tcf=a),o?c.request({url:"".concat(Fe(),"/token/validation"),data:{client_id:J.aid||pn.aid,site:document.location.origin||document.location.href},headers:{Authorization:o},success:function(e){r(e),e.access_token&&cn(a)},error:function(){return t({isSuccessful:!1,failReason:"request_failed"})}}):c.request({url:"".concat(Fe(),"/token/verify"),data:i,success:function(e){r(e),e.access_token&&(cn(a),Pn()&&(pn.setSssAccessToken(e.access_token),Tn(e.access_token)))},error:function(){return t({isSuccessful:!1,failReason:"request_failed"})},dataType:"jsonp",xhrFields:{withCredentials:!0},crossDomain:!0})}))},sn=function(){var e,n=window;return function(e){if(!e)return!1;var n=e;if(!n||!n.tcString||!n.date)return!1;var t=new Date,r=new Date(n.date),o=Math.abs(r.getTime()-t.getTime());return Math.ceil(o/864e5)<=1}(_.get(H))?null:(e=null,n.__tcfapi&&n.__tcfapi("getTCData",2,(function(n,t){t&&n.tcString&&(e=n.tcString)}),[412]),e)},cn=function(e){if(e){var n={date:(new Date).toString(),tcString:e};xn(H,JSON.stringify(n))}},un=function(){return new Promise((function(e){var n=en(),t={client_id:J.aid||pn.aid};n&&Object.assign(t,{token:n}),c.request({url:"".concat(Fe(),"/logout"),data:t,dataType:"jsonp",complete:e,xhrFields:{withCredentials:!0},crossDomain:!0})}))},ln=function(e,n){return new Promise((function(t){var r=!(n||hn());c.request({url:"".concat(Fe(),"/vxauth/cookie"),data:{client_id:J.aid||pn.aid,session_cookie:r},headers:{Authorization:e||void 0},complete:t})}))},dn=function e(n,t){var r=void 0===t?{}:t,o=r.force,i=r.reason;!n||(o?n.closed||(n.closed=!0,"inline"===n.config.displayMode?s.empty(n.container):"popup"===n.config.displayMode?n.container.close():"modal"===n.config.displayMode&&(We(n),s.remove(n.container.parentElement)),ee&&En()):(f.send("close",{reason:i},n.iframeId),Q=Q.filter((function(e){return e.iframeId!==n.iframeId})),setTimeout((function(){e(n,{force:!0})}),600)))},fn=function(){Q.forEach((function(e){dn(e)})),Q=[]},mn=function(e,n){var t=l.__protected__.getCookie(D),r=l.__protected__.getCookie(U);t===e||!r||(Xe(D,e,{expires:30}),n||Q.forEach((function(n){f.send("lang",{lang:e},n.iframeId)})),Object.keys(X).forEach((function(n){var t=X[n];f.__protected__.isIframeManaged(n)&&t?t(e):delete X[n]})),Ee("langChange",e))},vn=function(){return pn.locale||l.__protected__.getCookie(D)||""},gn=function(e){e&&a.remove(j,e)},hn=function(){return!!l.__protected__.getCookie(j)},yn=function(e){return new Promise((function(n){var t=Object.assign({},J,e);c.request({url:"".concat(Fe(),"/userinfo"),data:{client_id:J.aid||pn.aid,form_name:t.formName},headers:{Authorization:en()||void 0},success:n,complete:function(){return n(null)}}),setTimeout(n,G)}))},wn=function(e){var n=(null==e?void 0:e.displayMode)===Lo.Redirect||!(null!=e&&e.displayMode)&&(null==J?void 0:J.displayMode)===Lo.Redirect,t=l.isSafariOrUiWebView()&&!(null!=e&&e.displayMode)&&!(null!=J&&J.displayMode);return n||t},_n=function(e){var n,t,r;if(!en()){e=p(p(p({},J),e),{redirectUri:null!==(n=e.redirectUri)&&void 0!==n?n:window.location.href});xe(e),t=e,r=window.open(function(e,n){var t,r={client_id:n.aid,gm_sso_piano_id_domain:je(),site:document.location.href,display_mode:"redirect",gm_sso_redirect_container_width:null!==(t=n.width)&&void 0!==t?t:Ae()},o=vn();return o&&(r.lang=o),n.screen&&(r.screen=n.screen),n.resetPasswordToken&&(r.reset=n.resetPasswordToken),n.redirectUri&&(r.redirect_uri=n.redirectUri),n.offerId&&(r.gm_sso_offer_id=n.offerId),n.termId&&(r.gm_sso_term_id=n.termId),n.confirmation&&(r.gm_sso_confirm=n.confirmation),n.formName&&(r.form_name=n.formName),n.formNameByTermId&&(r.form_name_by_term_id=n.formNameByTermId),n.sss&&(r.sss_mode=n.sss.sss_mode,r.sss_callback_url=n.sss.sss_callback_url,r.sss_origin_url=n.sss.sss_origin_url),[e+="gm-sso",s.param(r)].join("?")}(Ve(),t),window.name),r&&En()}},bn=function(e){xe(e),en()||window.open(qe(Ve(),e),window.name)},kn=function(e,n,t){Z.push({type:t,name:e,data:n})},Cn=function(e,n){W.includes(e)?d.turnOnRTL(n):d.turnOffRTL(n)},In=function(){return!0===pn.usePianoIdLiteUserProvider||"string"==typeof pn.usePianoIdLiteUserProvider&&"true"===pn.usePianoIdLiteUserProvider},Sn=function(){return!!l.__protected__.getCookie("piano-id-initial-gm-sso-shown-"+(J.aid||pn.aid))},En=function(){Xe("piano-id-initial-gm-sso-shown-".concat(J.aid||pn.aid),!0,{expires:30})},Pn=function(){return!!An().sss_mode&&!!An().sss_callback_url},xn=function(e,n){k.id?k.id.localStorage.set(e,n):_.set(e,n)},Tn=function(e){var n="";n+="callback_url="+An().sss_callback_url,n+="&origin_url="+An().sss_origin_url,n+="&aid="+pn.aid,n+="&lang="+vn(),n+="&token="+e,window.location.href=je()+"/id/api/v1/sss?"+n},An=function(){var e=pn.sssOriginUrl||window.location.href||window.location.origin;return{sss_mode:pn.sssMode,sss_callback_url:pn.sssCallbackUrl,sss_origin_url:e}};return{name:"pianoId",isv:!1,init:ie,prepare:function(){return oe()},show:ae,showForm:le,checkAndShowEmailIsNotConfirmed:se,showEmailConfirmationRequired:ce,submitLoginForm:function(){f.send("submitLoginForm",null,null==n?void 0:n.iframeId)},loginByToken:function(e){return g(void 0,void 0,void 0,(function(){var n;return h(this,(function(t){switch(t.label){case 0:return n=u(e),[4,nn({user:n,token:e})];case 1:return t.sent(),Be(n),[2]}}))}))},logout:Me,getToken:en,getUser:Ze,loadExtendedUser:function(e){var n=Object.assign({},J,e);yn(n).then((function(e){var t=Object.assign({},e);e&&Array.isArray(e.custom_field_values)&&(e.custom_field_values=e.custom_field_values.map((function(e){var n;try{n=JSON.parse(e.value)}catch(t){n=e.value}return{field_name:e.field_name,value:n,created:e.created}}))),"function"==typeof n.extendedUserLoaded&&n.extendedUserLoaded(t),Se("extendedUserLoaded",t)}))},getName:function(){return"piano_id"},isConfigured:function(){return!0===pn.usePianoIdUserProvider||"string"==typeof pn.usePianoIdUserProvider&&"true"===pn.usePianoIdUserProvider},onLoginSuccess:function(e){return g(void 0,void 0,void 0,(function(){var n;return h(this,(function(t){switch(t.label){case 0:return i?[2]:(i=!0,n={source:e.source,token:e.user_token,user:e.params||e.user,cookie_domain:e.cookie_domain,stage:e.stage},l.setAccessTokenListCookie({value:e.token_list,cookie_domain:e.cookie_domain},e.user_token),[4,nn(n)]);case 1:return t.sent(),Be(n.user),i=!1,[2]}}))}))},onProfileUpdate:function(e,n){return g(void 0,void 0,void 0,(function(){var t;return h(this,(function(r){switch(r.label){case 0:return t={token:e.token,user:e.user,cookie_domain:e.cookie_domain},[4,nn(t,!0)];case 1:return r.sent(),n(),ke("profileUpdate",t),[2]}}))}))},onExtendedUserLoginRequired:function(){ue()},isUserValid:tn,setCallbacks:Pe,getIframeUrl:function(){return Ve()},updateLang:mn,onLangChange:function(e,n){return X[n]=e,function(){delete X[n]}},getLang:vn,isAot:function(){Q.forEach((function(e){f.send("isAOT",{},e.iframeId)}))},registerCallback:function(e,n){var t,r=null!==(t=K[e])&&void 0!==t?t:[];K[e]=b(b([],r,!0),[n],!1)},setRequestTimeout:Te,__protected__:{offerMessageReceiver:function(e){switch(e.params.event){case"cfAppImpression":case"cfFormImpression":C.log.event({eventType:go.LOG_CUSTOM_FORM_IMPRESSION,payload:{trackingId:e.params.trackingId,formName:e.params.trackingId,source:z}});break;case"cfFormSubmission":C.log.event({eventType:go.LOG_CUSTOM_FORM_SUBMISSION,payload:{trackingId:e.params.trackingId,formName:e.params.trackingId,source:z}});break;case"updateToken":nn(e.params.params);break;case"changeScreen":be(e.params.params.screen,!0);break;case"loginFailed":case"registrationFailed":case"successDOI":case"registrationSuccess":case"customEvent":Se(e.params.event,e.params.params);break;case _o.EMIT_GA_EVENT:C.ga.event({payload:e.params.params,eventType:_o.EMIT_GA_EVENT});break;case"redirect":document.location.href=e.params.params.url;break;default:return void l.debug("Received invalid event type: "+e.params.event)}},showEmailConfirmation:function(e){n?l.log("Modal window already shown"):ie().then((function(){var n=Object.assign({screen:"email_confirmation"},J,e);wn(n)&&(n.displayMode=Lo.Modal),l.getQueryParamByName(N)&&l.removeQueryParamByName(N),xe(n),Ge(n)}))},checkAndShowEmailIsNotConfirmed:se,closeModalContainer:We,executePostMessagesBatch:function(){for(;Z.length;){var e=Z.pop();"broadcast"===e.type?f.broadcast(e.name,e.data):f.send(e.name,e.data)}},isGmSso:function(){return ee},isGmSsoRedirectEnabled:wn,authByGmSsoRedirect:_n,extendUserToken:function(){var e=Ye();if(e){var n=(new Date).getTime(),t=l.__protected__.getCookie(V),r=n-1e3*u(e).iat>864e5;t&&r&&an(!1,!0)}},getSssParams:An,isSssEnabled:Pn},__private__:{prepareConfig:xe,setRequestTimeout:Te,createIframe:Ge,addEventsListener:He}}}()}),pn.pianoId=pn.container.resolve("pianoId");var jo=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("pianoId"),t=pn.container.resolve("eventUtils").createEventManager(["userChanged","onHide","logout"]),r=e.getAidSpecifiedName("__utp"),o=function(){return pn.externalJWT||i()},i=function(){return e.findCookieByName(r)||null};return{name:"pianoIdLite",isv:!1,isConfigured:function(){return!0===pn.usePianoIdLiteUserProvider||"string"==typeof pn.usePianoIdLiteUserProvider&&"true"===pn.usePianoIdLiteUserProvider},isUserValid:function(){return!!o()},getToken:o,getName:function(){return"piano_id_lite"},onLoginSuccess:function(n){e.setAccessTokenListCookie({value:n.token_list,cookie_domain:n.cookie_domain},n.user_token)},registerCallback:function(e,n){t.addEvent(e),t.registerCallback(e,n)},loginByToken:function(e){n.loginByToken(e)},logout:function(n){e.waitCall("refreshUserToken",(function(){"function"==typeof n&&n()})),t.fireCallbacks("logout",null,void 0,!0)}}}();pn.container.register("pianoIdLite",{useValue:jo}),pn.pianoIdLite=pn.container.resolve("pianoIdLite");pn.container.register("user",{useValue:function(e){void 0===e&&(e=pn.container);var n,t,r=e.resolve("api"),o=e.resolve("util"),i=e.resolve("janrain"),a=e.resolve("tinypassAccounts"),s=e.resolve("condeUserProvider"),c=e.resolve("gigya"),u=e.resolve("pianoId"),l=e.resolve("pianoIdLite"),d=e.resolve("eventUtils").createEventManager([]);n="logout",t=function(){o.__protected__.setVxUsersToDataLayer(null),Ar.set("userStatus","anon")},[i,a,s,c,u,l].forEach((function(e){e.registerCallback(n,t)}));var p={isv:!1,getName:function(){return"publisher_user_ref"},getToken:function(){return pn.userRef?pn.userRef.constructor==="".constructor?pn.userRef:pn.userRef.constructor==={}.constructor?"{jox}"+JSON.stringify(pn.userRef):pn.userRef:null},isUserValid:function(){return!!(void 0!==pn.userRef&&pn.userRef&&pn.userRef.length>0)},onLoginSuccess:function(e){o.setAccessTokenListCookie({value:e.token_list,cookie_domain:e.cookie_domain},e.user_token)},logout:function(e){o.setAccessTokenListCookie(),e&&e()}},f=function(){var e=[i,a,s,c,u,l].find((function(e){return e.isConfigured()&&!e.isv}));return e||p};return{name:"user",getProvider:f,providerInit:function(e){(void 0===e||!e)&&(e=function(){});var n=f();"function"==typeof n.prepare?"prepare"in n&&n.prepare().then(e,e):e()},refreshAccessToken:function(e,n){(void 0===n||!n)&&(n=function(){});var t=f().isUserValid(),i=!1;if(void 0!==e&&e)i=!0;else if(t){var a=o.__protected__.getCookie("__tae");if(void 0!==a&&a){var s=new Date(parseInt(a));(new Date).getTime()-s.getTime()>864e5&&(i=!0)}else i=!0}i||!t?o.waitCall("refreshUserToken",(function(){o.waitCall("offerCreate",(function(){o.waitCall("experienceExecute",(function(){if(!f().isUserValid())return o.__protected__.getCookie("__tac")&&o.setAccessTokenListCookie(null,"",!0),void(n&&n(""));o.startCall("refreshAccessTokenList");var e={url:o.prepareUrlParameter(window.location.href)};r.callApi("/access/token/list",e,(function(e){o.doneCall("refreshAccessTokenList"),void 0!==e.access_token_list?(o.setAccessTokenListCookie(e.access_token_list),n&&n(e.access_token_list.value)):n&&n(null)}),void 0,void 0,!0)}))}))})):n(null)},showLogin:function(e){var n=f().getName();if("tinypass_accounts"===n)a.login(e);else if("piano_id"===n){var t=e||{};u.show(t)}else"publisher_user_ref"===n&&d.fireCallbacks("loginRequired",{},void 0,!0)},isUserValid:function(){return f().isUserValid()},logout:function(e,n){f().logout(e,n)},registerCallback:function(e,n){d.addEvent(e),d.registerCallback(e,n)},getUserInfoParams:function(e){var n=e.userToken;if(!n){var t=f().getToken();n=t&&t.length>0?t:""}return{user_token:n,user_lang:o.__protected__.getCookie("LANG")||"",is_preview:e.preview,is_non_logged_user:e.previewNonLoggedUser}}}}()}),pn.user=pn.container.resolve("user");var Vo=function(){var e=pn.container.resolve("jqUtils"),n=pn.container.resolve("util"),t="viewport-exit-activated",r="viewport-exit-prepared",o=!1,i=!1,a=0,s=0,c=["top","right","bottom","left"],u=!0,l=!1,d=!1,p=[],f={top:{visited:!1,value:1},right:{visited:!1,value:2},bottom:{visited:!1,value:4},left:{visited:!1,value:8}},m=0,v=function(){if(!l){l=!0,m=0;var n=/(?:Firefox|Safari)[\/\s](\d+\.\d+)/.test(navigator.userAgent)?document.body:document;e.on(n,"mouseleave",(function(e){return g(e)})),e.on(document,"mousemove",(function(e){return h(e)}))}};var g=function(t){var r;r=function(e){return e.clientX===e.clientY&&e.clientX<0&&e.clientX>=-1}(t)?"":function(n,t){var r=e.winSize(),o=r.width,i=r.height,a="";return n>=o&&(a="right"),t>=i&&(a="bottom"),n<=0&&(a="left"),t<=0&&(a="top"),a}(t.clientX,t.clientY),r||(r=function(){if(!i)return"";var n=e.winSize(),t=n.width,r=n.height;return c[function(e){if(0===e.length)return-1;for(var n=e[0],t=0,r=1;r<e.length;r++)e[r]<n&&(t=r,n=e[r]);return t}([s,t-a,r-s,a])]}(),r||n.debug("viewportExit: the detect of the exit side failed")),r&&function(e){-1!==c.indexOf(e)?f[e].visited||(f[e].visited=!0,m+=f[e].value):n.debug("viewportExit: the detect of the exit side failed")}(r),y("all"),"top"===r&&y("top")},h=function(e){i=!0,s=e.clientY,a=e.clientX},y=function(e){if(u){for(var t,r=[],o=[],i=0;i<p.length;i++)((t=p[i]).detectExitMode===e||"back"===e&&t.detectBackButtonForMobile)&&t.consumeEventFn()?r.push(t):o.push(t);r.length&&n.debug("viewportExit: listeners was run fire with type: ",e),p=o;for(i=0;i<r.length;i++)(t=r[i]).callback()}};return{name:"viewportExit",initialize:v,isInitialized:function(){return l},addListener:function(e,n,i){("mobile"===n.clientDevice||"tablet"===n.clientDevice)&&!!n.detectBackButtonForMobile&&function(){if(!d){d=!0,window.addEventListener("popstate",(function(e){o&&e.state&&e.state.pianoViewportExitState===t&&(o=!1,y("back"))}));var e=window.history.state||{};e&&e.pianoViewportExitState!==r&&(e.pianoViewportExitState!==t&&(e.pianoViewportExitState=t,window.history.replaceState(e,document.title)),window.history.pushState({pianoViewportExitState:r},document.title)),o=!0}}(),v(),"function"!=typeof i&&(i=function(){return!0}),p.push({callback:e,detectExitMode:n.detectExitMode,detectBackButtonForMobile:n.detectBackButtonForMobile,consumeEventFn:i})},resetSumOfCodesDirectionToDefault:function(){m=0},getSumOfCodesDirection:function(){return m},removeListeners:function(){p=[]},enable:function(){u=!0},disable:function(){u=!1}}}();pn.container.register("viewportExit",{useValue:Vo}),pn.viewportExit=pn.container.resolve("viewportExit");var Fo,Bo=function(){var e=pn.container.resolve("postmessage"),n=pn.container.resolve("containerUtils"),t=pn.container.resolve("user"),r=pn.container.resolve("api"),o=pn.container.resolve("util");function i(e){return s(e,"/checkout/template/show")}function a(e){return e.initContextLoadPromise=function(e,n){e.contextLoadingPromise=c(e,n)},s(e,"/checkout/template/cacheableShow")}var s=function(e,n){var t=pn.getEndpointRoot(!0)+n;return e.iframeUrl=t,e.postMessageUrl=t,e.widget="template",pn.offer.createOfferIframe(e)},c=function(e,n){var i=t.getUserInfoParams(e);return i.tracking_id=e.trackingId,i.templateId=e.templateId,i.templateVariantId=e.templateVariantId,i.aid=pn.aid,i.preload=e.isPreload,i.cookie_consents=JSON.stringify(o.getCookieConsents()),e.affiliateState&&(i.affiliateState=JSON.stringify(e.affiliateState)),Object.keys(n).forEach((function(e){i[e]=n[e]})),new Promise((function(e,n){r.callApi("/anon/template/loadTemplateContext",i,(function(t){var r=t.code,o=t.templateContext,i=t.message;0===r?e(o):n(i)}),void 0,void 0,!0)}))},u=function(e,n){var t={};return["aid","templateId","templateVariantId","previewTemplateVersion","preload","preview","previewUncached","deploymentItemId","gaClientId","zuoraSelectedRatePlanIds","newscycleSelectedIds","addNewsletterAssets","offerId","experienceId","iframeId","displayMode","debug","pianoIdUrl","widget","url"].forEach((function(n){e[n]&&(t[n]=e[n])})),n.param(t)};function l(e){pn.getCacheableShowTemplate()?(function(e){e.deferredContextLoading=!0,e.buildQueryStringFn=u}(e),e.createIframeFn=a):e.createIframeFn=i}return{name:"template",show:function(e){return e.offerId=n.fakeOfferId,e.trackStatsOnShow=!0,l(e),pn.offer.show(e)},deferredShow:function(e){return e.offerId=n.fakeOfferId,l(e),pn.offer.deferredShow(e)},close:function(){n.closeModalContainer()},closeInline:function(e){n.__protected__.closeInlineContainers(e)},createTemplateIframe:i,showBackdrop:function(){n.showBackdrop()},hideBackdrop:function(){n.hideBackdrop()},centerBackdrop:function(e){n.centerBackdrop(e)},registerCallback:function(e,n){},refreshUser:function(n){t.refreshAccessToken(!0,(function(){e.send("externalLoginSuccess",{user_token:t.getProvider().getToken()},n)}))}}}();pn.container.register("template",{useValue:Bo}),pn.template=pn.container.resolve("template"),function(e){e.COMMON="linkedTermData",e.SIGNED="linkTermSignedData"}(Fo||(Fo={}));pn.container.register("offer",{useValue:function(e){void 0===e&&(e=pn.container);var n,t,r,o=e.resolve("jqUtils"),i=e.resolve("util"),a=e.resolve("postmessage"),s=e.resolve("user"),c=e.resolve("containerUtils"),u=e.resolve("eventUtils"),l=e.resolve("viewportExit"),d=e.resolve("gaService"),m=e.resolve("sha1"),v=e.resolve("logging"),g=e.resolve("template"),h=e.resolve("analytics"),y=e.resolve("gaCollectingService"),w=e.resolve("ajax"),_=[],b={},k=0,C="close",I="OFFER",S=!1,E=!1,P=!1,x={},T=new Map,A={},M=["he_IL","ar_EG"],O="",N="pn_rurl_3ds",R=Symbol(),L=Symbol(),D=u.createEventManager(["complete","cancel","close","error","loginRequired","loginSuccess","loaded","customEvent","startCheckout","resize","onMeterExpired","onMeterActive","onAccessGranted","onShowOffer","pianoIdEvent","parentSize","redeemCredit","onStartCreditRedemption","showAuthForm","callLinkTermSelectedCallback","callLinkedTermSelectedCallback"]);c.setIframesPopstateHandlers();var U=function(){return pn.offerBaseUrl?pn.offerBaseUrl:pn.getEndpointRoot()+"/checkout/offer/show"},j=function(e,n){void 0===e&&(e={}),void 0===n&&(n={});var t=pn.getApiEndpoint()+"/linkedTerm/session/create",r=p(p({tracking_id:O||"",tbc:i.getTbcCookie()||"",pcid:i.getPcidCookie()||"",consents:JSON.stringify(i.getCookieConsents())},e),n);return new Promise((function(e,n){try{w.request({url:t,type:"POST",dataType:"json",data:JSON.stringify(r),contentType:"application/json",success:e,error:n})}catch(e){n(e)}}))},V=function(e,n){var t="".concat(pn.getApiEndpoint(),"/linkedTerm/subscription/hasActive"),r={aid:e,external_term_id:n,user_token:s.getProvider().getToken()};return new Promise((function(e,n){try{w.request({url:t,type:"POST",dataType:"json",data:r,contentType:"application/x-www-form-urlencoded",success:e,error:n})}catch(e){n(e)}}))},F=function(e,n){var t=function(e){switch(e){case"purge":return{eventCategory:"checkoutClose",eventLabel:"Checkout close"};case"customEvent":return{eventCategory:"checkoutCustomEvent",eventLabel:"Checkout custom event"};case"checkoutPaymentError":case"error":return{eventCategory:"checkoutError",eventLabel:"Checkout error"};case"checkoutStateChange":return{eventCategory:"checkoutStateChange",eventLabel:"Checkout state change"};case"showTemplate":return{eventCategory:"showTemplate",eventLabel:"Show template"};case"startCheckout":return{eventCategory:"startCheckout",eventLabel:"Start checkout"};case"submitPayment":return{eventCategory:"submitPayment",eventLabel:"Submit payment"};case"logout":return{eventCategory:"logout",eventLabel:"Logout event"};default:return null}}(e);t&&r!==t.eventCategory&&(h.ga.event({eventType:_o.EMIT_GA_EVENT,payload:p(p({iframeId:n.sender},t),n.params)}),r=t.eventCategory)};function B(e,n){var r=c.getIframe(e.sender),u=!0;switch(r&&r.config&&(u=!r.config.parent),e.event){case"initContext":if(e.params&&e.params.resultCallbackId){var d={resultCallbackId:e.params.resultCallbackId,affiliateState:r.config.affiliateState};a.send("resultCallback",d,e.sender)}break;case"storeCustomVariables":tp.saveCustomVariablesToLocalStorage(300);break;case"fullRedirectThreeDS":window.location.href=e.params.bankSecureUrl;break;case"resize":if(e.params.iframeId===e.sender){var m=void 0===e.params.width?p(p({},e.params),{width:o.getWidth(r.container)}):e.params;c.resizeIframe(r,m),"modal"===r.config.displayMode&&("boilerplate"===e.params.closeButtonType&&c.hideCloseButton(r.container),c.centerIt(r.container)),a.send("afterResize",{},r.iframeId)}D.fireCallbacks(e.event,e.params,e.sender,u);break;case"startCheckout":if(e.params.width=null,"inline"===e.displayMode){e.params.closeOnLogout=!0;var v=ce(e.params,r.statParams);v.browserId=r.browserId,v.isOpenedFromInlineCheckout=!0,we(v,e.sender)}e.params.iframeId===e.sender&&(D.fireCallbacks(e.event,e.params,e.sender,u),F(e.event,e));break;case"showAuthForm":var g=e.params,y=void 0===g?{}:g;pn.pianoId.show(p({closedCallback:function(){a.send("authFormClosed",{},e.sender)}},y));break;case"callLinkTermSelectedCallback":case"callLinkedTermSelectedCallback":if(!e.params||"function"!=typeof tp.linkedTermSelected)return;var w=e.params,_=w.linkedTermData,b=w.linkTermData,k=w.offerStatData,I=w.pageViewData,E=f(w,["linkedTermData","linkTermData","offerStatData","pageViewData"]),P=function(e){if(!e)return null;var n=e.linkedTermData,t=e.linkTermSignedData,r=e.linkedTermSignedData,o=f(e,["linkedTermData","linkTermSignedData","linkedTermSignedData"]),i=r||t;switch(!0){case Boolean(n):return p({linkedTermData:n},o);case Boolean(i):return p({linkTermSignedData:i},o);default:return o}}(_||b)||E,T=P.linkedTermData?Fo.COMMON:Fo.SIGNED,A=function(e,n){if(n===Fo.COMMON)return e.externalTermId||"";if(n===Fo.SIGNED)try{return JSON.parse(e.payload).externalTermId||""}catch(e){return console.warn(e),""}return""}(P[T],T);Promise.all([j(k,I),V(tp.aid,A)]).then((function(e){var n,t=e[0].data,r=e[1].data;tp.linkedTermSelected(t||"",p(p({},P),((n={})[T]=p(p({},P[T]),{userHasActiveSubscriptionToTerm:r}),n)))})).catch(i.debug);break;case"loaded":if(e.params.iframeId===e.sender){if(a.send("setupCustomVariables",x[e.params.iframeId],e.params.iframeId),a.send("setupEVTFields",r.config.externalVerificationFields,e.params.iframeId),ae(r),r.config.deferredContextLoading&&z(r,e),r.waitFinishProcesses)return void c.__protected__.closeAndRemoveIframe(r);"pianoId"===s.getProvider().name&&pn.pianoId.__protected__.executePostMessagesBatch(),"modal"===r.config.displayMode&&(c.resizeIframe(r,e.params),r.config.isPreload||c.checkBackdropAndContainer(r,!0)),"popup"===r.config.displayMode&&c.resizeIframe(r,e.params),!r.config.isPreload&&!r.config.trackStatsOnShow&&re(r),oe(r),ie(r),se(r),D.fireCallbacks(e.event,e.params,e.sender,u),"inline"===r.config.displayMode&&(r.containerReady?c.resizeIframe(r,e.params):c.operationWithContainer(r.iframeParams.containerSelector,(function(n){var t=o.queryEl("#temp-inline-"+r.iframeId);t&&(n.innerHTML=t.innerHTML,o.remove(t)),r.element=o.queryEl("iframe",n),r.containerReady=!0,c.resizeIframe(r,e.params)}))),J(r.config),i.doneCall("offerCreate")}break;case"downForMaintenance":c.resizeIframe(r,{width:300,height:200}),"modal"===r.config.displayMode&&(r.config.isPreload||c.checkBackdropAndContainer(r));break;case"removeQueryParamByName":e&&e.params&&Array.isArray(e.params.paramsToRemove)&&e.params.paramsToRemove.forEach((function(e){i.removeQueryParamByName(e)}));break;case"purge":n||(e&&e.params&&e.params.alreadyPurchased&&(C="alreadyHasAccess"),e&&e.params&&e.params.completePayment&&(C="checkoutCompleted"),c.purgeIframe(e.sender,r.config.parent),J(r.config),F(e.event,e));break;case"close":n||(e&&e.params&&e.params.alreadyPurchased&&(C="alreadyHasAccess"),e&&e.params&&e.params.completePayment&&(C="checkoutCompleted"),i.hasQueryParamByName("voucher_code")&&(C="voucherRedemptionCompleted"),c.closeContainer(e.sender,r.config.parent),J(r.config));break;case"closeAndRefresh":var O=e.params;O?window.location.assign(O):window.location.reload();break;case"selectTerm":C=e&&e.params&&e.params.alreadyPurchased?"alreadyHasAccess":"close";break;case"submitPayment":D.fireCallbacks(e.event,ce(e.params,{offerId:r.iframeParams.offerId}),e.sender,u),F(e.event,e);break;case"complete":if(void 0!==e.params.token_list){var N=s.getProvider().getToken();i.setAccessTokenListCookie({value:e.params.token_list,cookie_domain:e.params.cookie_domain},N)}var R=ce(e.params,{offerId:r.iframeParams.offerId});D.fireCallbacks(e.event,R,e.sender,u),C="checkoutCompleted";break;case"checkoutSelectTerm":D.fireCallbacks(e.event,ce(e.params,{offerId:r.iframeParams.offerId}),e.sender,u);break;case"checkoutStateChange":case"checkoutPaymentError":case"alreadyPurchased":case"startThreeDBankSecure":case"cancel":case"error":case"customEvent":case"completeUpgradePurchase":D.fireCallbacks(e.event,e.params,e.sender,u),F(e.event,e);break;case"loginRequired":S=!0,D.fireCallbacks(e.event,ke(r,e.params,e.sender),e.sender,u);break;case"logout":G(e.event,e.params,e.sender,r.config.parent,u),F(e.event,e);break;case"loginSuccess":H(e.event,e.params,e.sender,u);break;case"inputFocus":var L=o.queryEl(".tp-modal");L&&(L.style.zIndex=pn.zIndexes.modal+1+"",L.style.zIndex=pn.zIndexes.modal+"");break;case"inputBlur":var U=o.queryEl(".tp-modal");U&&(U.style.zIndex=pn.zIndexes.modal+1+"",U.style.zIndex=pn.zIndexes.modal+"");break;case"getLocation":e.params&&e.params.resultCallbackId&&(e.params.result=window.location.href,a.send("resultCallback",e.params,e.sender));break;case"setLocationHash":e.params&&e.params.hash&&(window.location.hash=e.params.hash);break;case"langChangedWithinOffer":pn.pianoId.isConfigured()&&pn.pianoId.updateLang(e.params.lang),M.indexOf(e.params.lang)>=0?c.turnOnRTL(r):c.turnOffRTL(r);break;case"loginStart":l.disable();break;case"loginEnd":l.enable();break;case"pianoIdEvent":e.params.iframeId===e.sender&&("closed"===e.params.event&&c.closeContainer(e.sender),pn.pianoId.__protected__.offerMessageReceiver(e)),q(e.params,e.sender);break;case"swgCheckoutStart":break;case"sharedAccountsSuccessfullyAdded":a.broadcast("refreshMyAccount",{userToken:s.getProvider().getToken()});break;case"newsletterSignupImpression":case"newsletterSignupSubmission":pn.pianoEsp.__protected__.offerMessageReceiver(e),D.fireCallbacks(e.event,e.params,e.sender,u);break;case"parentSize":var B=o.winSize(),W={width:B.width,height:B.height};a.send("parentSize",W,e.sender);break;case"gigyaPasswordlessLogin":e.params.iframeId===e.sender&&(t=e.params.iframeId,pn.gigya.loginByPasswordless(e.params));break;case _o.EMIT_GA_EVENT:return void(!n&&h.ga.event({eventType:_o.EMIT_GA_EVENT,payload:p({iframeId:e.sender},e.params)}));case _o.EMIT_METRICS_EVENT:!n&&h.ga.event({eventType:_o.EMIT_METRICS_EVENT,payload:e.params});break;case"bannerInit":r.config.singleContainer.classList.add("tp-banner");break;case"bannerDestroy":r.config.singleContainer.classList.remove("tp-banner");break;case"redeemCredit":var Q=D.fireCallbacks("onStartCreditRedemption",e.params,e.sender,u);Q&&Q.then&&Q.then((function(n){a.send("successfullyCreditRedeem",n,e.sender)}),(function(n){a.send("creditRedeemFailed",n,e.sender)}));break;case"scrollModalTo":if("modal"===e.displayMode){var X=o.queryEl(".tp-modal");if(X){var Y=e.params.x||0,$=e.params.y||0;X.scrollTo(Y,$)}}break;default:return void i.debug("Received invalid event type: "+e.event)}}var q=function(e,n){"successDOI"===e.event&&(e.iframeId!==n&&c.closeContainer(e.iframeId),a.send("afterSuccessDOI",e.params,n))},z=function(e,n){e.config.contextLoadingPromise.then((function(t){var r={iframeParams:e.iframeParams,userContext:t};r.iframeParams.url=i.prepareUrlParameter(window.location.href),a.send("userDataContextLoaded",r,n.params.iframeId)}))},G=function(e,n,t,r,o){s.logout((function(){var e={};e.userProvider=s.getProvider().getName(),e.userToken=s.getProvider().getToken()&&s.getProvider().getToken().length>0?s.getProvider().getToken():"",e.noNeedStartCheckout=!0,be(e)}),I),n.closeOnLogout&&c.closeModalContainer(t,r)},H=function(e,n,t,r){if(n.source=I,s.getProvider().onLoginSuccess(n),D.fireCallbacks("loginSuccess",n,t,r),!P){var o={userToken:n.user_token,user:n.user,reloadAfterLogin:!0};be(o,t)}},W=function(e){var n=e.displayMode||"modal";return[e.offerId,n,e.containerSelector].join("|")},J=function(e){var n=W(e);delete b[n]},Q=function(e){if(C="close",me(e),void 0===e.displayMode)e.displayMode="modal";else if("modal"!==e.displayMode&&"inline"!==e.displayMode&&"popup"!==e.displayMode)return i.log("Invalid offer displayMode; must be one of: modal, inline, popup"),void J(e);if("modal"===e.displayMode&&!e.isPreload&&c.hasModalIframe())return i.log("Modal offer is already shown; must be one modal offer per time"),void J(e);if("modal"!==e.displayMode){var n,t=o.qa(e.containerSelector);if(!e.isPreload)if(t.forEach((function(t){var r=ce({},e);r.singleContainer=t,n=Y(r)})),n)return n;var r=t[t.length-1];r&&(e.singleContainer=r)}return Y(e)};function X(e,n){var t=i.getPageViewContext(),r=t.pageTitle,o=t.url,a=t.referrerUrl;n.pageTitle=r,n.url=o,n.referrerUrl=a}function Y(e,r){var u=function(e){var n={};e.termIds&&(e.termIds instanceof Array||(e.termIds=[e.termIds]));var t=e.additionalParamNames?e.additionalParamNames:[];["displayMode","containerSelector","templateId","templateVariantId","offerId","termId","termIds","rid","aid","isCheckout","isOpenedFromInlineCheckout","pw_id","paywallId","width","preview","previewUncached","previewTemplateType","previewTemplateVersion","tokenType","janrainCaptureToken","closeOnLogout","voucherCode","isRedemption","allowReturnToStartState","startFromInlineCheckout","formNameByTermId","hideCompletedFields","startFromInlineCheckout","reloadAfterLogin","preventReloadAfterLogin","isAuth","authStartScreen","showCloseButton","closeButtonType","checkoutFlowId","offerState","oid","promoCode","promoCodeId","promoCodeTermId","rurl_3ds","thirdPartyParams","termId3ds","providerId","deploymentItemId","sharedAccountCode","targetedTermId","widget","linkTermCheckoutState","linkedTermCheckoutState","purchasedLinkTermData","purchasedLinkedTermData"].concat(["trackingId","experienceId","activeMeters"],t).forEach((function(t){e[t]&&(n[t]=e[t]),"showCloseButton"===t&&(void 0===e[t]?n[t]=!0:n[t]=e[t])}));var r=decodeURIComponent(i.getQueryParamByName("_ptid"));return r&&(n.trackingId=r,K(r)),e.preview&&(n.activeMeters=JSON.stringify([{meterName:"preview-meter",views:10,viewsLeft:5,maxViews:20,totalViews:20}])),n}(e);u.widget||(u.widget="offer");var l=i.getTbcCookie();l&&l.length>0&&(u.tbc=l),e.deferredContextLoading?(u.iframeId=Z(e),u.url=window.location.origin):(u.iframeId="offer-"+k+++"-"+i.randomString(),u.url=i.prepareUrlParameter(window.location.href));var p=o.winSize();u.parentDualScreenLeft=void 0!==window.screenLeft?window.screenLeft:screen.left,u.parentDualScreenTop=void 0!==window.screenTop?window.screenTop:screen.top,u.parentWidth=p.width?p.width:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,u.parentHeight=p.height?p.height:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,u.parentOuterHeight=window.outerHeight,e.previewNonLoggedUser&&(u.previewNonLoggedUser=e.previewNonLoggedUser),e.isPreload&&(u.preload=1),pn.locale&&(u.lang=pn.locale),d.getClientId()&&(u.gaClientId=d.getClientId()),d.getGAAccount()&&(u.gaAccount=d.getGAAccount()),function(e){["debug","aid","gaClientId","tags","contentSection","contentAuthor","debug","zone"].forEach((function(n){pn[n]&&(e[n]=pn[n])})),pn.customVariables&&(x[e.iframeId]=JSON.stringify(pn.customVariables));var n=pn.contentCreated;n&&(e.contentCreated=n),pn&&pn.main&&(e.pageViewId=pn.main.fetchPageViewId(),e.visitId=pn.main.fetchVisitId())}(u);var f=D.hasCallback("loginRequired");if(!pn.janrain.isConfigured()||void 0!==e.loginRequired&&e.loginRequired)if(!pn.gigya.isConfigured()||void 0!==e.loginRequired&&e.loginRequired)if(pn.pianoId.isConfigured()){(void 0===e.loginRequired||!e.loginRequired)&&(e.loginRequired=function(e){if(!e.preventExternalLogin)return n=e.termId,t=u.iframeId,pn.pianoId.show({screen:e.startScreen}),!1}),de(),u.pianoIdUrl=pn.pianoId.getIframeUrl(),e.isGmSso&&(u.isGmSso=e.isGmSso);var m=pn.pianoId.getLang();m&&(u.lang=m),pn.pianoId.onLangChange((function(e){a.send("langChanged",{lang:e},u.iframeId)}),u.iframeId)}else pn.pianoIdLite.isConfigured()&&(u.pianoIdUrl=pn.pianoId.getIframeUrl());else{g=[];pn.gigya.registerCallback("onHide",(function(e){e&&e.afterLogin?c.activateContainers(g):pn.offer.close(),a.send("gigyaHide",e,t)})),ue(),e.loginRequired=function(e){return E=e.allowReturnToStartState,S=!1,g=c.hideModalContainer(),n=e.termId,t=u.iframeId,i.waitCall("refreshUserToken",(function(){pn.gigya.login()})),!1}}else{var g=[];pn.janrain.addEventHandler("onModalClose",(function(){c.activateContainers(g)})),le(),e.loginRequired=function(e){return g=c.hideModalContainer(),E=e.allowReturnToStartState,S=!1,n=e.termId,t=u.iframeId,i.waitCall("refreshUserToken",(function(){pn.janrain.login(void 0,e)})),!1}}u.userProvider=s.getProvider().getName(),e.userToken?u.userToken=e.userToken:u.userToken=s.getProvider().getToken()&&s.getProvider().getToken().length>0?s.getProvider().getToken():"",i.getCampaigns(u),u.customCookies=JSON.stringify(i.getCustomCookies()),D.registerCallback(e,u.iframeId),u.hasLoginRequiredCallback=D.hasIframeCallback("loginRequired",u.iframeId)||f,u.initMode="context",ee(u);var h=e.iframeUrl?e.iframeUrl:u.isCheckout?pn.getEndpointRoot(!0)+"/checkout/offer/show":U(),y=e.postMessageUrl?e.postMessageUrl:U();if(e.deferredContextLoading){var w=ne(u);X(0,w),e.initContextLoadPromise(e,w)}var b=te(u,e);if(pn.pianoId.__protected__.isSssEnabled()){var I=pn.pianoId.__protected__.getSssParams();u.sss_mode=I.sss_mode,u.sss_callback_url=I.sss_callback_url,u.sss_origin_url=I.sss_origin_url}e.splitTestIds&&(u.abTestIds=e.splitTestIds),e.socialName&&(u.socialName=e.socialName),e.responseType&&(u.responseType=e.responseType),u.requestUserAuthForLinkedTerm=!Ie()||tp.requestUserAuthForLinkedTerm;var P=c.createContainer({url:h,config:e,parent:e.parent,postMessageUrl:y,receive:B,iframeParams:u,singleContainer:e.singleContainer,close:function(){D.fireCallbacks("close",{state:C},u.iframeId,!0)}}),T=h.indexOf("/offer/")?"offerShow":"templateShow";return v.setTime(T),A=h.indexOf("/template/")&&u.offerId===c.fakeOfferId?u:A,$(u,"offerId","width","termId","displayMode","experienceId","iframeId","templateId","templateVariantId"),P.statParams=b,P.browserId=e.browserId,_.push(P),P}var $=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];var r=n.reduce((function(n,t){var r;return p(p({},n),((r={})[t]=e[t],r))}),{});y.setParamMap(r)},K=function(e){y.setParam("trackingId",e)},Z=function(e){var n=0,t="offer_"+m.hash(e.iframeUrl+"?"+e.buildQueryStringFn(e,o),20);return T.has(t)&&(n=T.get(t)+1),T.set(t,n),t+"-"+n},ee=function(e){var n=i.getQueryParamByName("termId"),t=i.getQueryParamByName("paySource");n&&(e.termId=n),t&&(e.paySource=t)},ne=function(e){var n={};return["tbc","trackingId","pageViewId","visitId","tags","contentCreated","contentSection","contentAuthor","pageTitle","referrerUrl"].forEach((function(t){e[t]&&(n[t]=e[t])})),Object.keys(e).forEach((function(t){0===t.indexOf("tpcc_")&&(n[t]=e[t])})),n},te=function(e,n){var t={};return n.trackStatsOnShow||n.deferredContextLoading||(t=ne(e),Object.keys(t).forEach((function(n){delete e[n]}))),t},re=function(e){var n=ce(e.iframeParams,e.statParams);e.config.affiliateState&&(n.affiliateState=e.config.affiliateState),X(e.config,n),a.send("trackStat",n,e.iframeId)},oe=function(e){var n={browserId:e.browserId};a.send("passBrowserId",n,e.iframeId)},ie=function(e){a.send("passPcidBrowserId",{browser_id:i.getBrowserId()},e.iframeId)},ae=function(e){a.send("passCookieConsents",i.getCookieConsents(),e.iframeId)},se=function(e){var n=i.getPageViewContext(),t=n.pageTitle,r=n.url,o=n.pageViewId,s=n.referrerUrl,c=n.author,u=n.created,l=n.section,d=n.tags;a.send("passPageViewContext",{page_title:t,url:r,page_view_id:o,referrer:s,content_author:c,content_created:null==u?void 0:u.toString(),content_section:l,tags:d?JSON.stringify(d):null},e.iframeId)},ce=function(e,n){var t={};return Object.keys(e).forEach((function(n){t[n]=e[n]})),Object.keys(n).forEach((function(e){t[e]=n[e]})),t},ue=function(){P||(pn.gigya.registerCallback("userChanged",(function(e){if(e&&e.user_token){var r={token_list:e.access_token.value,user_token:e.user_token,userToken:e.user_token,cookie_domain:e.access_token.cookie_domain,user:e.user,allowReturnToStartState:E,termId:n};if(t)c.getIframe(t)?(a.send("externalLoginSuccess",r,t),delete r.termId,be(r,t)):be(r);else be(r)}})),pn.gigya.registerCallback("logout",(function(){var e,r={};r.userProvider=s.getProvider().getName(),r.userToken=s.getProvider().getToken()&&s.getProvider().getToken().length>0?s.getProvider().getToken():"",r.noNeedStartCheckout=!0,t&&(e=c.getIframe(t)),e&&"inline"===e.config.displayMode&&c.closeModalContainer(),n="",t="",E=!1,be(r)})),P=!0)},le=function(){P||(pn.janrain.registerCallback("userChanged",(function(e){if(e&&e.user_token){var r={token_list:e.access_token.value,user_token:e.user_token,userToken:e.user_token,cookie_domain:e.access_token.cookie_domain,user:e.user,allowReturnToStartState:E,termId:n};if(t)c.getIframe(t)?(a.send("externalLoginSuccess",r,t),delete r.termId,be(r,t)):be(r);else be(r)}})),pn.janrain.addEventHandler("onCaptureSessionEnded",(function(){var e,r={};r.userProvider=s.getProvider().getName(),r.userToken=s.getProvider().getToken()&&s.getProvider().getToken().length>0?s.getProvider().getToken():"",r.noNeedStartCheckout=!0,t&&(e=c.getIframe(t)),e&&"inline"===e.config.displayMode&&c.closeModalContainer(),n="",t="",E=!1,be(r)})),P=!0)},de=function(){P||(pn.pianoId.setCallbacks({loggedIn:function(e){i.log("offer.js - piano id user logged in");var r={user_token:e.token,userToken:e.token,user:e.user,reloadAfterLogin:!0,termId:n};t?c.getIframe(t)?(a.send("externalLoginSuccess",r,t),_e(t,r),delete r.termId,be(r,t)):be(r):be(r)},loggedOut:function(e){if(e.source!==I){var r={};r.userProvider=s.getProvider().getName(),r.userToken=s.getProvider().getToken()&&s.getProvider().getToken().length>0?s.getProvider().getToken():"",r.noNeedStartCheckout=!0,be(r)}n="",t=""}}),P=!0)};function pe(e){return c.showPreloadedContainer(e)}var fe=function(e){var n=e.offerId===c.fakeOfferId?"showTemplate":"showOffer";D.hasCallback(n)&&D.fireCallbacks(n,e,void 0,!0),F(n,{params:e})},me=function(e){[{queryParam:"promo_code",configParam:"promoCode"}].forEach((function(n){var t=i.getQueryParamByName(n.queryParam);t.length&&(e[n.configParam]=t)}))},ve=function(){return i.getQueryParamByName(N)},ge=function(e){if(e.offerId||!0===e.preview)return!function(e){var n=W(e);return!!b[n]}(e)&&void(function(e){return ve()&&!e.rurl_3ds&&"modal"===e.displayMode}(e)||(O=e.trackingId,K(O),e.preview||function(e){var n=W(e);b[n]=!0}(e),setTimeout((function(){J(e)}),1e4),i.waitCall("refreshUserToken",(function(){i.waitCall("refreshAccessTokenList",(function(){i.waitCall("myAccountLogin",(function(){var n;if(i.startCall("offerCreate"),e.createIframeFn?(me(e),n=e.createIframeFn(e)):n=Q(e),!n)return i.doneCall("offerCreate"),void i.error("Could not initialize offer; check configuration");he(e)&&ye(n.iframeId),fe(e)}))}))}))));i.error("Must specify offerId")};var he=function(e){return!!e.directCheckout&&"inline"!==e.displayMode},ye=function(e){i.waitCall("offerCreate",(function(){a.send("startDirectCheckout",{},e)}))},we=function(e,n){if(!function(e){return!e.offerId&&!e.isRedemption&&!e.preview}(e)){var t=D.hasCallback("loginRequired");if(e.isSiteLicensing&&t&&(Ce()||Ie()))return void g.refreshUser(A.iframeId);c.hasModalIframe()&&c.closeModalContainer(),i.debug("creating checkout: ",e),e.displayMode="popup"===e.displayMode?"popup":"modal",e.isCheckout=!0,e.parent=n,i.waitCall("refreshUserToken",(function(){i.waitCall("refreshAccessTokenList",(function(){var t,r;if(("linked"===e[R]||"link"===e[R])&&e.reloadAfterLogin&&Ie()){var o=null===(t=s.getProvider())||void 0===t?void 0:t.getToken();return o&&e[L]?void function(e){var n,t=e.token,r=e.termId,o=e.iframeId;a.send("startLinkedTermProcessAfterExternalLogin",{termId:r},o),S&&(be({userProvider:null===(n=s.getProvider())||void 0===n?void 0:n.getName(),userToken:t,noNeedStartCheckout:!0,noNeedStartCheckoutAfterLogin:!0}),S=!1)}({token:o,termId:e.termId,iframeId:e[L]}):void i.log("external checkout cannot be continued.")}if(i.startCall("offerCreate"),pn.pianoId.__protected__.isGmSso()){if(pn.pianoId.__protected__.isGmSsoRedirectEnabled()&&!pn.pianoId.getToken())return void pn.pianoId.__protected__.authByGmSsoRedirect(e);e=p(p({},e),{isGmSso:!0})}r=e.createIframeFn?e.createIframeFn(e):Q(e),c.__protected__.addChildToInlineIframe(r,n),r?S&&i.waitCall("offerCreate",(function(){S=!1;var e={};e.userProvider=s.getProvider().getName(),s.getProvider().getToken()&&s.getProvider().getToken().length>0?e.userToken=s.getProvider().getToken():e.userToken="",e.noNeedStartCheckout=!0,e.noNeedStartCheckoutAfterLogin=!0,be(e,r.iframeId)})):(i.doneCall("offerCreate"),i.error("Could not start checkout; check configuration"))}))}))}},_e=function(e,n){a.send("reloadOffer",n,e)},be=function(e,n){a.broadcast("reloadOffer",e,n)},ke=function(e,n,t){var r={reloadAfterLogin:!0};return Object.assign(r,e.config),r.singleContainer&&delete r.singleContainer,n.termId&&(r.termId=n.termId),n.term&&(r.term={},r.term=ce(r.term,n.term)),n.startScreen&&(r.startScreen=n.startScreen),n.isRedemption&&(r.isRedemption=n.isRedemption,r.voucherCode=n.redemption&&n.redemption.form&&n.redemption.form.redeemCode,r.termId=null),n&&n.currentState&&"modal"===e.config.displayMode&&(r.allowReturnToStartState=!0),n.preventExternalLogin&&(r.preventExternalLogin=n.preventExternalLogin),n.sharedAccountCode&&(r.sharedAccountCode=n.sharedAccountCode),n.isSiteLicensing&&(r.isSiteLicensing=n.isSiteLicensing),n.campaignCode&&(r.campaignCode=n.campaignCode),n.campaignGroupId&&(r.campaignGroupId=n.campaignGroupId),n.termType&&(r[R]=n.termType),t&&(r[L]=t),r.displayMode="modal",r},Ce=function(){return"publisher_user_ref"===s.getProvider().getName()},Ie=function(){return"piano_id_lite"===s.getProvider().getName()};return{name:"offer",show:function(e){"inline"===e.displayMode?c.operationWithContainer(e.containerSelector,(function(){ge(e)})):ge(e)},deferredShow:function(e){return function(e){var n,t,r,o=new Promise((function(e,r){n=e,t=r})),a=new Promise((function(e,n){r=e}));return"popup"!==e.displayMode&&e.offerId?i.waitCall("refreshAccessTokenList",(function(){var o;e.isPreload=!0,i.startCall("offerCreate"),e.createIframeFn?(me(e),o=e.createIframeFn(e)):o=Q(e),o?(o.element.onload=function(){r(o)},n(o)):(i.doneCall("offerCreate"),i.error("Could not initialize offer; check configuration"),t())})):t(),{promise:o,show:function(){o.then(pe).then((function(){return a})).then((function(n){re(n),he(e)&&ye(n.iframeId),fe(e)}),(function(){ge(e),delete e.isPreload}))}}}(e)},close:function(){c.closeModalContainer()},closeInline:function(e){c.__protected__.closeInlineContainers(e)},startCheckout:we,startRedeemVoucher:function(e,n){c.closeModalContainer(),e||(e={}),e.isRedemption=!0,i.debug("starting redeem voucher: ",e),e.displayMode="popup"===e.displayMode?"popup":"modal",e.isCheckout=!1,e.parent=n,i.waitCall("refreshAccessTokenList",(function(){i.startCall("offerCreate"),(e.createIframeFn?e.createIframeFn(e):Q(e))||(i.doneCall("offerCreate"),i.error("Could not start redeem; check configuration"))}))},createOfferIframe:Q,showBackdrop:function(){c.showBackdrop()},hideBackdrop:function(){c.hideBackdrop()},centerBackdrop:function(e){c.centerBackdrop(e)},registerCallback:function(e,n){D.addEvent(e),D.registerCallback(e,n)},reload:_e,reloadAll:function(e,n){var t=e||{};i.waitCall("refreshUserToken",(function(){be(Object.assign(t,{userToken:pn.user.getProvider().getToken()}),n)}))},resetUserAndReloadAll:function(e,n){var t=e||{};be(Object.assign(t,{userToken:""}),n)},checkThreeDSRedirect:function(){var e=ve();if(e){var n={offerId:"pn_offer_id",oid:"pn_oid",termId3ds:"pn_term_id",providerId:"pn_provider_id",thirdPartyParams:"third_party_params"},t=[N],r=Object.keys(n).reduce((function(e,r){var o=Object.assign({},e);return o[r]=i.getQueryParamByName(n[r]),t.push(n[r]),o}),{});i.removeQueryParamByName(t),ge(Object.assign({displayMode:"modal",rurl_3ds:e},r))}}}}()}),pn.offer=pn.container.resolve("offer");var qo=function(){var e,n=pn.container.resolve("jqUtils"),t=pn.container.resolve("util"),r=pn.container.resolve("postmessage"),o=pn.container.resolve("offer"),i=pn.container.resolve("user"),a=pn.container.resolve("containerUtils"),s=pn.container.resolve("pianoId"),c=pn.container.resolve("logging"),u={},l=!1,d={loginRequired:[],loginSuccess:[]},p=function(){return pn.getEndpointRoot()+"/checkout/myaccount/show"},f=function(e,n){e.element.style.height=(e.config.maxHeight?Math.min(n.height,e.config.maxHeight):n.height)+"px",e.container.style.height=(e.config.maxHeight?Math.min(n.height,e.config.maxHeight):n.height)+"px",e.element.style.width=n.width+"px","modal"===e.config.displayMode&&(e.container.style.width=n.width+"px"),r.send("resized",{height:e.config.maxHeight?Math.min(n.height,e.config.maxHeight):n.height,width:n.width},e.iframeId)},m=function(t,r,i){return function(){e&&(n.removeClass("tp-active",e),o.hideBackdrop(),window.setTimeout((function(){n.remove(e)}),250),r.result=i,t(r))}},v=function(e){var t=n.winSize();e.offsetHeight>t.height?(!1===l&&(e.style.position="absolute",l=!0),e.style.marginTop=window.scrollY-.5*t.height+""):(!0===l&&(e.style.position="fixed",l=!1),e.style.marginTop=0-.5*e.offsetHeight+""),o.centerBackdrop(e),e.style.marginLeft=0-.5*e.offsetWidth+""},g=function(t,i){!function(t,r){var i=document.createElement("div");n.addClass("tp-modal",i);var a=document.createElement("div");n.addClass("tp-close",a);var s=document.createElement("div");n.addClass("tp-message",s),i.style.width=(t.width?t.width:400)+"px",s.innerHTML=t.message;var c=document.createElement("div");n.addClass("tp-btn-container",c);var u=document.createElement("button");n.addClass("tp-btn",u),n.addClass("tp-ok-btn",u),u.innerHTML=t.ok?t.ok:"Ok";var l=document.createElement("button");n.addClass("tp-btn",l),n.addClass("tp-cancel-btn",l),l.innerHTML=t.cancel?t.cancel:"Cancel",n.on(a,"click",m(r,t,"cancel")),n.on(l,"click",m(r,t,"cancel")),n.on(u,"click",m(r,t,"ok")),n.append(i,a),n.append(i,s),n.append(c,u),n.append(c,l),n.append(i,c),n.append(document.body,i),o.showBackdrop(),n.addClass("tp-active",i),v(i),e=i}(i.params,(function(e){r.send("closeDialog",e,u[i.sender].iframeId)}))},h=function(e,n){d[e]=d[e]||[],d[e].push(n)},y=function(e,n,o){if(t.debug("received event: "+e,n),void 0!==d[e]){for(var i=0;i<d[e].length;++i){t.debug("firing callback for event: "+e);var a=d[e][i](n);n&&n.resultCallbackId&&(n.result=a,n.event=e,r.send("resultCallback",n,o))}!d[e].length&&n&&n.resultCallbackId&&(n.callbackNotFound=!0,n.event=e,r.send("resultCallback",n,o))}},w=function(e){switch(t.log("*** My account event received",e.event,e.params),e.event){case"resize":t.debug("*** Resize event",e.params.width,e.params.height),f(u[e.sender],e.params),"modal"===u[e.sender].config.displayMode&&v(u[e.sender].container);break;case"loaded":r.send("initMaxHeight",{height:u[e.sender].config.maxHeight},u[e.sender].iframeId),r.send("passCookieConsents",t.getCookieConsents(),u[e.sender].iframeId),f(u[e.sender],e.params),"pianoId"===i.getProvider().name&&s.__protected__.executePostMessagesBatch(),"modal"===u[e.sender].config.displayMode&&window.setTimeout((function(){n.addClass("tp-active",u[e.sender].container),v(u[e.sender].container)}),25);break;case"cancel":case"complete":case"error":case"loginRequired":case"customEvent":y(e.event,e.params,e.sender);break;case"openDialog":g(e.event,e);break;case"pianoIdProfileUpdated":s.onProfileUpdate(e.params,(function(){var n=e.params;n&&n.resultCallbackId&&r.send("resultCallback",n,e.sender);var t={userToken:e.params.token,user:e.params.user};_(t)}));break;case"extendedUserLoginRequired":s.onExtendedUserLoginRequired();break;case"loginSuccess":i.getProvider().onLoginSuccess(e.params);var o={reloadAfterLogin:!0,userToken:e.params.user_token,user:e.params.user};_(o),y(e.event,e.params,e.sender);break;case"logout":i.logout((function(){var e={};e.userProvider=i.getProvider().getName(),e.userToken=i.getProvider().getToken()&&i.getProvider().getToken().length>0?i.getProvider().getToken():"",_(e)})),y(e.event,e.params,e.sender);break;case"userProfileUpdateSuccess":var a=e,c=a.event,l=a.params,d=a.sender;i.getProvider().onLoginSuccess(l);var p={userProvider:l.user_provider,userToken:l.user_token};for(var m in _(p),y(c,l,d),u)if(u.hasOwnProperty(m)){var h=u[m].config;h.hasOwnProperty("userToken")&&delete h.userToken,C(h)}break;case"langChangedWithinMyAccount":s.isConfigured()&&s.updateLang(e.params.lang);break;case"requestScrollData":b(e.sender);break;case"downForMaintenance":f(u[e.sender],{width:300,height:200});break;case"removeQueryParamByName":Array.isArray(e.params.paramsToRemove)&&e.params.paramsToRemove.forEach((function(e){t.removeQueryParamByName(e)}));break;case"getTrackingData":r.send("getTrackingDataResponseEvent",{pageViewId:pn.main.fetchPageViewId(),tbc:t.getTbcCookie()},e.sender);break;case"redirect":document.location.href=e.params.url;break;default:return void t.log("Received invalid event type: "+e.event)}},_=function(e){r.broadcast("reloadOffer",e)},b=function(e){var n=u[e].element.getBoundingClientRect(),t={iframeRect:{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width}};r.send("returnScrollData",t,e)};function k(e){var o={widget:"myaccount"};if(e.templateId&&(o.templateId=e.templateId),void 0===e.displayMode)e.displayMode="inline";else if("modal"!==e.displayMode&&"inline"!==e.displayMode)return void t.log("Invalid offer displayMode; must be one of: modal, inline");if(o.displayMode=e.displayMode,o.iframeId=t.randomString(16),o.url=window.location.href,o.initialWidth=e.width,o.initialHeight=e.height,o.maxHeight=e.maxHeight,i.getProvider().getName()===s.getName()&&s.__protected__.isSssEnabled()){var l=s.__protected__.getSssParams();o.piano_id_sss_mode=l.sss_mode,o.piano_id_sss_callback_url=l.sss_callback_url,o.piano_id_sss_origin_url=l.sss_origin_url}if(pn.locale&&(o.lang=pn.locale),!pn.janrain.isConfigured()||void 0!==e.loginRequired&&e.loginRequired)if(!pn.gigya.isConfigured()||void 0!==e.loginRequired&&e.loginRequired)if(pn.pianoId.isConfigured()){b=e;if(pn.pianoId.setCallbacks({loggedIn:function(n){var t;o.userToken!==n.token&&(e.loginSuccess&&(t=e.loginSuccess(n)),(void 0===t||t)&&(b.userToken=n.token,C(b)))},loggedOut:function(){var e={};e.userProvider=i.getProvider().getName(),e.userToken=i.getProvider().getToken()&&i.getProvider().getToken().length>0?i.getProvider().getToken():"",_(e)}}),void 0===e.loginRequired||!e.loginRequired){var m=0;e.loginRequired=function(){if(++m>10)t.log("Too many attemps to login for myAccount");else{var e=t.getQueryParamByName("verification_code"),n=pn.pianoId.__protected__,r=n.isGmSso,o=n.isGmSsoRedirectEnabled;!(r()&&o())&&pn.pianoId.show({verificationCode:e})}}}o.pianoIdUrl=pn.pianoId.getIframeUrl();var g=pn.pianoId.getLang();g&&(o.lang=g),pn.pianoId.onLangChange((function(e){r.send("langChanged",{lang:e},o.iframeId)}),o.iframeId)}else pn.pianoIdLite.isConfigured()&&(o.pianoIdUrl=pn.pianoId.getIframeUrl());else{y=[];pn.gigya.registerCallback("onHide",(function(){a.activateContainers(y),t.doneCall("myAccountLogin")})),e.loginRequired=function(){var n=e;t.waitCall("refreshAccessTokenList",(function(){t.waitCall("offerCreate",(function(){t.startCall("myAccountLogin"),y=a.hideModalContainer(),pn.gigya.login((function(t){var r;e.loginSuccess&&(r=e.loginSuccess(t)),(void 0===r||r)&&(n.userToken=t.user_token,C(n))}))}))}))}}else{var y=[],b=e;pn.janrain.addEventHandler("onModalClose",(function(){a.activateContainers(y),t.doneCall("myAccountLogin")})),pn.janrain.registerCallback("userChanged",(function(n){var t;n&&n.user_token&&(e.loginSuccess&&(t=e.loginSuccess(n)),(void 0===t||t)&&(b.userToken=n.user_token,C(b)))})),pn.janrain.addEventHandler("onCaptureSessionEnded",(function(n){var t;e.loginSuccess&&(t=e.loginSuccess(n)),(void 0===t||t)&&(b.userToken=null,C(b))})),e.loginRequired=function(){return t.waitCall("refreshAccessTokenList",(function(){t.waitCall("offerCreate",(function(){t.startCall("myAccountLogin"),y=a.hideModalContainer(),pn.janrain.login()}))})),!1}}return new Promise((function(s){t.waitCall("refreshUserToken",(function(){var l,m={};if("inline"===e.displayMode){if(!e.containerSelector)return void t.log("My account must have a valid containerSelector");if(!(l=n.queryEl(e.containerSelector)))return void t.log("My account must have a valid containerSelector");o.width=n.getWidth(l)}else l=function(){var e=document.createElement("div");n.addClass("tp-modal",e);var t=document.createElement("div");return n.addClass("tp-close",t),n.append(e,t),n.append(document.body,e),e}();for(var g in o.pageViewId=pn.main.fetchPageViewId(),o.tbc=t.getTbcCookie(),o.userProvider=i.getProvider().getName(),e.userToken?o.userToken=e.userToken:o.userToken=i.getProvider().getToken(),d)"function"==typeof e[g]&&(t.debug("Registering "+g+" callback for iframe "+o.iframeId),h(g,e[g]));o.aid=pn.aid,pn.isSensitiveDataProtectionEnabled&&(m={userToken:o.userToken,iframeId:o.iframeId},delete o.userToken);var y=p()+"?"+n.param(o),_=document.createElement("iframe"),b={scrolling:"no",allowtransparency:"true",name:o.iframeId,id:o.iframeId,allow:"payment"};pn.isSensitiveDataProtectionEnabled||(b.src=y),Object.keys(b).forEach((function(e){n.setAttr(e,b[e],_)}));var k={overflow:"hidden",border:"0",height:"0"};if("inline"===e.displayMode?k.width=o.width+"px":k.width=0,Object.keys(k).forEach((function(e){_.style[e]=k[e]})),u[o.iframeId]={iframeId:o.iframeId,config:e,element:_,container:l,containerWidth:n.getWidth(l),containerHeight:n.getHeight(l)},r.init({postMessageUrl:p(),receive:w,iframe:u[o.iframeId]}),n.on(window,"keyup",(function(e){})),"modal"===e.displayMode&&n.on(window,"resize",(function(){v(l)})),"modal"===e.displayMode?v(l):n.empty(l),pn.isSensitiveDataProtectionEnabled){m.iframeSrc=y;var C=a.getForm(m);n.append(l,_),n.append(l,C),C.submit()}else n.append(l,_);if(n.on(window,"resize",(function(){!function(){for(var e in u){var t=u[e],o=!1,i=n.getWidth(t.container);i!==t.containerWidth&&(t.element.style.width=i+"",t.containerWidth=i,o=!0);var a=n.getHeight(t.container);a!==t.containerHeight&&(t.element.style.height=a+"",t.containerHeight=a,o=!0),o&&r.send("resize",{width:i,height:a},e)}}()})),"inline"===e.displayMode&&window.ResizeObserver){var I=new ResizeObserver((function(e){var t=n.getWidth(l);t>0&&f(u[o.iframeId],{width:t})}));I.observe(l),u[o.iframeId].resizeObserver=I}pn.offer&&pn.offer.registerCallback("complete",(function(){r.send("refreshNow",{},o.iframeId)})),s(u[o.iframeId]),c.setTime("myAccountShow")}))}))}var C=function(e){t.waitCall("offerCreate",(function(){t.waitCall("refreshAccessTokenList",(function(){var n;null===(n=k(e))||void 0===n||n.then((function(e){e||t.log("Could not initialize my account; check configuration")}))}))}))};return{name:"myaccount",show:C,registerCallback:h}}();pn.container.register("myaccount",{useValue:qo}),pn.myaccount=pn.container.resolve("myaccount");var zo=function(){var e=pn.container.resolve("jqUtils"),n=pn.container.resolve("util"),t=pn.container.resolve("api"),r=pn.container.resolve("offer"),o=pn.container.resolve("eventUtils").createEventManager(["onCheckoutSuccess","onMeterExpired","onMeterError","onAccessGranted","onMeterActive","onMeterInactive","meterSelector"]),i={state:"ok",views_left:null,offer_id:"",curtain_template_id:"",reminder_template_id:"",cookie_name:"",cookie_value:"",cookie_expires:"",show_reminder:!1,show_close_button:!1},a=function(e,t){return o.fire(void 0,e,!0,t),!l[e]||"function"!=typeof l[e]||(n.debug("_customCaller called with "+e),l[e](t))},s=function(n){(n=n||{}).offerId||(n.offerId=i.offer_id),n.templateId||(n.templateId=i.curtain_template_id),n.displayMode||(n.displayMode=l.displayMode),n.containerSelector||(n.containerSelector=l.containerSelector),n.showCloseButton||(n.showCloseButton=i.show_close_button),"function"===e.type(l.close)&&(n.close=l.close),"function"===e.type(l.loginRequired)&&(n.loginRequired=l.loginRequired),"function"===e.type(l.customEvent)&&(n.customEvent=l.customEvent),"function"===e.type(l.onCheckoutSuccess)&&(n.complete=l.onCheckoutSuccess),r.createOfferIframe(n)},c=function(e){if(a("___onProcessMeter",e),!e.user_meter)return n.log("Could not load meter",e),void function(e){a("onMeterError",e)}(e);if((i=e.user_meter)&&i.cookie_name&&i.cookie_value&&i.cookie_expires){var t={path:"/",expires:i.cookie_expires};i.cookie_domain&&(t.domain=i.cookie_domain),n.__protected__.setCookie(i.cookie_name,i.cookie_value,t)}"ok"===i.state?function(e){n.debug("_handleMeterActive",e),e.show_reminder&&e.reminder_template_id&&e.track_page_view&&a("onShowOffer",e)&&s({templateId:e.reminder_template_id}),a("onMeterActive",e)}(i):"ap"===i.state?function(e){n.debug("_handleAccessGranted",e),a("onAccessGranted",e)}(i):"ia"===i.state?function(e){n.debug("_handleMeterInactive",e),a("onMeterInactive",e)}(i):function(e){n.debug("_handleExpired",e),a("onMeterExpired",e),e.track_page_view&&a("onShowOffer",e)&&s()}(i)},u=function(e,r,o){if(null!==l.paywallId&&""!==l.paywallId){var i=document.URL;e&&"function"==typeof e.getAttribute&&e.getAttribute("href")?i=e.getAttribute("href"):e&&"function"==typeof e.attr&&e.attr("href")&&(i=e.attr("href"));var a=l.trackPageview;a&&delete l.trackPageview;var s=l.meterSelector();s||(s="");var u={paywall_id:l.paywallId,url:encodeURI(i),referer:encodeURI(l.referer),track_page_view:a,meter_name:s,pageview_id:pn.main.fetchPageViewId()};r&&(u.transaction_id=r),l.referer="";var d=n.__protected__.getCookie("umc");if(d)u.umc=d;else{var p=n.__protected__.getCookie("umc_"+l.paywallId);p&&(u.umc=p)}t.callApi("/anon/meter/load",u,(function(e){c(e),"function"==typeof o&&o()}))}else n.debug("You must specify a paywallId in your configuration")},l={paywallId:null,trackPageview:!0,trackExternalReferrer:!0,referer:document.referrer,offerURL:"",displayMode:"modal",containerSelector:"",onCheckoutSuccess:function(){},onMeterExpired:function(){},onMeterError:function(){},onAccessGranted:function(){},onMeterActive:function(){},onMeterInactive:function(){},meterSelector:function(){}};return{name:"meter",init:function(e){if(void 0!==e)if(void 0!==e.paywallID||void 0!==e.paywallId){for(var t in void 0===e.paywallId&&(e.paywallId=e.paywallID),e)l[t]=e[t];l.referer=document.referrer,n.debug("Initializing paywall: "+l.paywallId),u()}else n.error("Must specify paywallId to load Piano paywall");else n.error("Must specify paywall configuration to load Piano paywall")},isExpired:function(){return i.state&&"ex"===i.state},isExpiredNextClick:function(){return void 0!==i.views_left&&0===i.views_left},checkMeter:function(e){l.trackPageview=!0,u(e)},showCurtain:s,last:function(){return i},registerCallback:function(e,n){o.addEvent(e),o.registerCallback(e,n)}}}();pn.container.register("meter",{useValue:zo}),pn.meter=pn.container.resolve("meter");var Go=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("sha1"),t="",r=function(){var e="";return["ShockwaveFlash.ShockwaveFlash.6","ShockwaveFlash.ShockwaveFlash.7","SWCt1.SWCt1.9","SWCtl.SWCtl","Adobe.SVGCtl","WMPlayer.OCX","AgControl.AgControl","AcroPDF.PDF","PDF.PdfCtrl","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealPlayer","Skype.Detection","3dmlw.IEPlugin","GoogleTalk.Plugin","GoogleTalk.Plugin.1"].map((function(n){try{new window.ActiveXObject(n),e+=n+"|"}catch(e){}})),e},o=function(){if(t)return t;var o=function(){try{var e;return e=window.navigator.userLanguage||window.navigator.language,(new Date).getTimezoneOffset()+":"+e}catch(e){return""}}();return o+=function(){if(window.ActiveXObject)return r();try{var e="",n=navigator.plugins.length;if(n>0)for(var t=0;t<n;t++)e+=navigator.plugins[t].name+"|";return e}catch(e){return""}}(),o+=function(){try{return screen.height+"x"+screen.width+"+"+screen.colorDepth}catch(e){return""}}(),o+=navigator.userAgent,o+=function(){var e="";try{e+=document.getElementById?1:0,e+=window.getComputedStyle?1:0,e+=screen.globalStorage?1:0,e+=window.localStorage?1:0,e+=window.sessionStorage?1:0,e+=document.getElementsByClassName?1:0,e+=document.querySelector?1:0,e+=document.all?1:0,e+=window.attachEvent?1:0,e+=window.createPopup?1:0,e+=window.XMLHttpRequest?1:0,e+=window.ActiveXObject?1:0,e+=window.XDomainRequest?1:0,e+=window.msPerformance?1:0,e+=document.documentMode?1:0,e+=navigator.cpuClass?1:0,e+=navigator.browserLanguage?1:0,e+=window.opera?1:0,e+=window.chrome?1:0}catch(e){}return e}(),t=n.hash(o),e.debug("Current browser fingerprint is: "+t),t};return o(),{name:"fingerprint",getFingerprint:o}}();pn.container.register("fingerprint",{useValue:Go}),pn.fingerprint=pn.container.resolve("fingerprint");var Ho=function(){var e,n=pn.container.resolve("jqUtils"),t=0,r=0,o=200,i=0,a=[];n.on(window,"scroll",(function(){c()}));var s=function(){var e=n.scrollTop();e>i&&(i=e)},c=function(){s(),l()},u=function(e){if(e.consumeEventFn()){if("pixels"===e.measureType)return e.position<=i;if("percentage"===e.measureType)return i/(t-n.winSize().height)>=e.position/100}},l=function(){for(var e,n=[],t=[],r=0;r<a.length;r++)e=a[r],u(e)?n.push(e):t.push(e);a=t;for(r=0;r<n.length;r++)n[r].callback()};return{name:"scrollDepth",initialize:function(i){var a=document;i&&i>0&&(o=i||o);!function i(){var s=a.body||{},c=a.documentElement||{},u=Math.max(s.scrollHeight,c.scrollHeight,s.offsetHeight,c.offsetHeight,s.clientHeight,c.clientHeight);u>t&&(t=u);var l=n.scrollTop()+n.winSize().height;l>r&&((r=l)>t&&(t=r)),e&&clearTimeout(e),e=setTimeout(i,o)}()},getMaxScrollDepth:function(){return r},getMaxDocumentHeight:function(){return t},addListener:function(e,n,t){"function"!=typeof t&&(t=function(){return!0}),a.push({callback:e,position:n.scrollDepth,measureType:n.measureType,repeat:"once",consumeEventFn:t}),s(),l()},removeListeners:function(){a=[]},clearMaxScrolledPosition:function(){i=0,r=0,t=0}}}();pn.container.register("scrollDepth",{useValue:Ho}),pn.scrollDepth=pn.container.resolve("scrollDepth");var Wo=function(){var e,n=pn.container.resolve("util"),t=pn.container.resolve("jqUtils"),r=!1,o=[];function i(){r||(r=!0,t.on(document,"mousemove",(function(){return s()})),t.on(document,"keypress",(function(){return s()})),t.on(window,"scroll",(function(){return s()})))}function a(){o.length&&function(){for(var e,t,r=[],i=[],a=Date.now(),s=0;s<o.length;s++)t=!1,a-(e=o[s]).startTime>=e.idleTime&&(e.consumeEventFn()?t=!0:e.startTime=a),t?r.push(e):i.push(e);r.length&&n.debug("idle: run fire"),o=i;for(s=0;s<r.length;s++)(e=r[s]).callback()}(),e&&clearTimeout(e),o.length&&(e=setTimeout((function(){return a()}),200))}function s(){for(var n=Date.now(),t=0;t<o.length;t++)o[t].startTime=n;clearTimeout(e),o.length&&(e=setTimeout((function(){return a()}),200))}return{name:"idle",initialize:i,addListener:function(n,t,r){i(),"function"!=typeof r&&(r=function(){return!0}),o.push({callback:n,idleTime:1e3*t,startTime:Date.now(),consumeEventFn:r}),e||(e=setTimeout((function(){return a()}),200))},removeListeners:function(){o=[]}}}();pn.container.register("idle",{useValue:Wo}),pn.idle=pn.container.resolve("idle");var Jo=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("jqUtils"),t=[];return{name:"interaction",bind:function(r,o,i){var a=function(e){for(var n={click:"click",doubleClick:"dblclick",rightClick:"contextmenu",mouseOut:"mouseout",mouseIn:"mouseover"},t=[],r=0;r<e.length;r++){var o=e[r];t.push(n[o])}return t};"function"!=typeof i&&(i=function(){return!0}),e.__protected__.documentReady((function(){for(var e=0;e<o.length;e++){var s=o[e],c=a(s.elementActions).join(" "),u=s.elementSelector,l=s.repetitive;c.trim().length&&function(e,o,a){var s=function(){!i()||(a||n.undelegate(document.body,e),r())};n.delegate(document.body,e,o,s),t.push({action:c,selector:u,func:s})}(u,c,l)}}))},unbindAll:function(){t.forEach((function(e){n.undelegate(document.body,e.selector)})),t=[]}}}();pn.container.register("interaction",{useValue:Jo}),pn.interaction=pn.container.resolve("interaction");var Qo=function(){var e=pn.container.resolve("jqUtils"),n=pn.container.resolve("util"),t=pn.container.resolve("containerUtils"),r=function(e){return"inline"===e.displayMode},o=function(e){return"modal"===e.displayMode};return{name:"recWidgetService",__protected__:{getInstance:function(){var i,a=[];function s(n){var s=n||{},c=s.widget||{};r(c.config)?e.empty(c.container):o(c.config)&&(function(n){if(i){t.closeModal(i),e.empty(i.container);var r=t.__private__.mobileModalFix;r.isIphoneCaretFixed&&r.modalClosed(),i=null}}(),e.remove(c.container)),!s.skipOnclose&&e.isFunction(c.onclose)&&c.onclose(),a=a.filter((function(e){return e.uuid!==c.uuid}))}function c(e){return a.filter((function(n){return e===n.widgetId}))[0]}return{showRecommendation:function(u){var l=u.widgetConfig||{},d=u.createPlaceholderFn,p=l.widgetId;if(!p)throw new Error("widgetId should be specified");if(c(p))n.log("widget with id "+l.widgetId+" already initialize");else if(o(l)&&i)n.log("modal widget already shown");else{var f=function(t){var r=e.queryEl(t.containerSelector),o="widget-id-"+n.randomString(),i={singleContainer:r||void 0,displayMode:t.displayMode||"modal",showCloseButton:t.showCloseButton,iframeParams:{iframeId:o,containerSelector:t.containerSelector,width:t.width,height:t.height}};return{uuid:o,widgetId:t.widgetId,placeholder:t.placeholder,trackingId:t.trackingId,config:i}}(l),m=f.config,v=d();if(f.container=function(e,n){var i;return r(e)?i=t.initInlineContainer(e).container:o(e)&&(i=t.getModalContainer(e,(function(){n instanceof Function&&n()}))),i}(m,(function(){s({widget:f})})),f.container)return e.append(f.container,v),f.element=v,o(m)&&(i=f),function(n,t){void 0===t&&(t={}),Object.keys(t).forEach((function(r){e.isFunction(t[r])&&(n[r]=t[r](n))}))}(f,u.widgetCallbacks),a.push(f),f;n.log('widget has invalid selector "'.concat(m.iframeParams.containerSelector,'"'))}},fireWidgetCallback:function(n,t,r){a.forEach((function(o){if(o.widgetId===t.toString()){var i=o["on"+n];e.isFunction(i)&&i(r)}}))},findWidget:c,clearWidgets:function(){a=[],i=null},closeWidget:s,fixWidgetModalWidth:function(n,r){if(!n||o(n.config)){var i=n.container,a=r?e.queryEl("iframe",i):e.queryEl(".tp-widget-placeholder",i);t.checkBackdropAndContainer(n,!0,!0),setTimeout((function(){a&&t.__protected__.setElementSizes(i,{width:e.getWidth(a)})}),100)}}}},insertWidgetLib:function(n){var t=document.getElementsByTagName("script")[0],r=document.createElement("script");n.id&&r.setAttribute("id",n.id),e.isFunction(n.onerror)&&(r.onerror=n.onerror),e.isFunction(n.onload)&&(r.onload=n.onload),n.defer&&(r.defer=!0),r.type="text/javascript",r.src=n.src,t&&t.parentNode&&t.parentNode.insertBefore(r,t)}}}}();pn.container.register("recWidgetService",{useValue:Qo}),pn.recWidgetService=pn.container.resolve("recWidgetService");var Xo=function(){pn.container.resolve("predefinedOptions");return{testPianoOption:""}}();pn.container.register("piano",{useValue:Xo});var Yo,$o=pn.container.resolve("piano");for(Yo in $o)pn[Yo]=$o[Yo];pn.container.register("pianoEsp",{useValue:function(e){void 0===e&&(e=pn.container);var n,t=e.resolve("util"),r=e.resolve("user"),o=(e.resolve("api"),e.resolve("jqUtils")),i=e.resolve("consent"),a=e.resolve("analytics"),s=e.resolve("recWidgetService"),c="__pnml",u={granted:"ALLOWED",default:"UNKNOWN",denied:"FORBIDDEN"},l=s.__protected__.getInstance();function d(){return new Promise((function(e,n){window.PianoESPConfig=p(p({},window.PianoESPConfig||{}),{onload:e,widget_init_on_event:{rec:!0,"opt-in":!1},onclick:function(e){l.fireWidgetCallback("click",e.widgetId,e)},onwidgetinit:function(e){l.fireWidgetCallback("init",e.widgetId,e)},onrecsloaded:function(e){l.fireWidgetCallback("recsloaded",e.widgetId,e)}}),t.debug("pianoESP: loading PianoESP with config:",window.PianoESPConfig),s.__protected__.insertWidgetLib({id:"pnesplucidsdksel",src:m()+"/public/sdk/v04/sdk.js?v="+(localStorage&&localStorage.lucidsdkver||"xxx"),onerror:n})}))}function f(){return n||(n=new Promise((function(e,n){var t,r=function(){return e(null)};if(null!==(t=window.PianoESPConfig)&&void 0!==t&&t.id)d().then(r,n);else var o=0,i=setInterval((function(){var e;return null!==(e=window.PianoESPConfig)&&void 0!==e&&e.id?(d().then(r,n),void clearInterval(i)):o>=5e3?(clearInterval(i),void n()):void(o+=500)}),500)})))}setTimeout((function(){pn.addHandler("logout",(function(){g([])}));var e=r.getProvider();e.registerCallback&&e.registerCallback("logout",(function(){g([])}))}),300);var m=function(){var e="//api-esp.piano.io";return pn.espEndpoint?e=pn.espEndpoint:pn.isSandbox()&&(e="//sandbox-api-esp.piano.io"),e},v=function(e,n){f().then((function(){window.PianoESP.getCurrentPushState().then((function(e){"prompt"===e&&a.log.event({eventType:go.LOG_MICRO_CONVERSION,payload:{trackingId:n,eventGroupId:"showPrompt"}})})),window.PianoESP.subscribeToPushSquads([e]).then((function(r){var o=r||{};!0===o.result?(t.setPushListsCookie(e),t.debug("pianoESP: Push notification was set:",o),a.log.event({eventType:go.LOG_MICRO_CONVERSION,payload:{trackingId:n,eventGroupId:"enrollPushCampaign"}})):!1===o.result&&("closed"===o.reason?a.log.event({eventType:go.LOG_MICRO_CONVERSION,payload:{trackingId:n,eventGroupId:"closePrompt"}}):a.log.event({eventType:go.LOG_MICRO_CONVERSION,payload:{trackingId:n,eventGroupId:"declineEnrollPushCampaign"}}))})).catch((function(e){t.log("pianoESP: Push notification error:",e)}))}))},g=function(e){try{var n=JSON.stringify(e);i.composer?i.composer.localStorage.set(c,n):localStorage.setItem(c,n)}catch(e){t.debug("can't save mailing lists to storage",e)}},h=function(){var e=[];try{var n=localStorage.getItem(c);if(!n)return[];if(e=JSON.parse(n),!Array.isArray(e))throw new Error("MAINLING_LIST should be array")}catch(e){t.debug("can't load mailing lists from storage",e)}return e||[]};var y=function(e){return function(){var n=document.createElement("pnespwgtplaceholder");return o.setAttr("holdername",e,n),n}};function w(){return{onrecsloaded:function(e){return function(n){0!==n.countOfRecs?(l.fixWidgetModalWidth(e,!0),a.log.event({eventType:go.LOG_ESP_MICRO_CONVERSION,payload:{trackingId:e.trackingId,espWidgetId:e.widgetId,eventGroupId:"init",eventType:vo.EXTERNAL_EVENT}}),t.debug("creating recommendation widget: ",e.config)):l.closeWidget({widget:e,skipOnclose:!0})}},onclick:function(e){return function(n){var t={href:n.url};a.log.event({eventType:go.LOG_ESP_MICRO_CONVERSION,payload:{trackingId:e.trackingId,espWidgetId:e.widgetId,eventGroupId:"click",eventType:vo.EXTERNAL_LINK,customParams:t}})}},onclose:function(e){return function(){a.log.event({eventType:go.LOG_ESP_MICRO_CONVERSION,payload:{trackingId:e.trackingId,espWidgetId:e.widgetId,eventGroupId:"close",eventType:vo.EXTERNAL_EVENT,customParams:{event:"widgetClosed"}}})}}}}return{name:"pianoEsp",__protected__:{init:f,setVisitorId:function(e){window.PianoESPConfig=Object.assign({},window.PianoESPConfig,{visitor:e})},showRecommendation:function(e){var n=w();return l.showRecommendation({widgetConfig:e,widgetCallbacks:n,createPlaceholderFn:y(e.placeholder)}),f().then((function(){window.PianoESP.initWidget(parseInt(e.widgetId))}))},showPushSignup:function(e){var n=e||{};n.templateId?(a.log.event({eventType:go.LOG_CUSTOM_FORM_IMPRESSION,payload:{trackingId:n.trackingId,formName:"pushSignup",source:"show_form"}}),pn.template.show({templateId:n.templateId,templateVariantId:n.templateVariantId,displayMode:n.displayMode,containerSelector:n.containerSelector||null,showCloseButton:n.showCloseButton,customEvent:function(e){switch(e.eventName){case"push-allow":a.log.event({eventType:go.LOG_MICRO_CONVERSION,payload:{trackingId:n.trackingId,eventGroupId:"allowSoftEnrollPushCampaign"}}),v(n.pushListId,n.trackingId);break;case"push-dont-allow":a.log.event({eventType:go.LOG_MICRO_CONVERSION,payload:{trackingId:n.trackingId,eventGroupId:"declineSoftEnrollPushCampaign"}});break;case"push-close":a.log.event({eventType:go.LOG_MICRO_CONVERSION,payload:{trackingId:n.trackingId,eventGroupId:"close"}})}}})):v(n.pushListId,n.trackingId)},getNotificationStatus:function(){if(window.Notification)return u[window.Notification.permission]||u.default},showNewsletterSignup:function(e){if(e&&e.mailingListIds){var n=h().indexOf(e.mailingListIds)>-1;e.notShowIfFilled&&n?t.log("Mailing list with ids "+e.mailingListIds+" already shown"):pn.template.show(e)}else t.log("mailingListIds should be specified")},offerMessageReceiver:function(e){if("newsletterSignupSubmission"===e.event){var n=h();-1===n.indexOf(e.params.mailingListIds)&&(n.push(e.params.mailingListIds),g(n))}},loadCompleteMailingLists:h},__private__:{removeWidgetsAndSdk:function(){l.clearWidgets(),n=null,delete window.PianoESP},getWidgetCallbacks:w,onInit:function(e){!n||"function"==typeof e&&n.then(e)}}}}()}),pn.pianoEsp=pn.container.resolve("pianoEsp");var Ko=function(){var e,n=pn.container.resolve("postmessage"),t=pn.container.resolve("user"),r=pn.container.resolve("util"),o=pn.container.resolve("eventUtils"),i=pn.container.resolve("containerUtils"),a="externalCheckoutComplete",s="loginPrompt",c="deferredAccountCreation",u="buy",l=o.createEventManager([a]),d="__gom",p=!1,f=!1,m=!1,v=[];window.SWG=window.SWG||[],window.SWG.push((function(n){n.setOnPaymentResponse((function(n){f||(r.debug("swg: onPaymentResponse is triggered"),f=!0,n.then((function(n){r.debug("swg: onPaymentResponse",n),e&&C(n,n.purchaseData,n.userData,e,u)})).catch((function(e){r.log("swg: onPaymentResponse failed",e)})))}))})),n.subscribe("swgCheckoutStart",(function(n){p||r.log("swg: incorrect SwG configuration. Please make sure that Experience user segment is configured properly. Details at https://docs.piano.io/subscribe-with-google/#SwGscript");var t=n.params.sku;e=n.params.termId,window.SWG.push((function(e){e.subscribe(t)}))}));var g=function(e){if(l.hasCallback(a)){var n={type:"swg",flow:e};l.fireCallbacks(a,n,void 0,!0)}},h=function(e){for(var n=!1,t=v.reduce((function(e,n){return e.concat(n.products)}),[]),r=0;r<e.length;r++)if(-1===t.indexOf(e[r])){n=!0;break}return n},y=function(e){if(p&&!m){var n=e||t.getProvider().getToken();!n||(m=!0,function(e){var n="/swg/sync";return"piano_id_lite"===t.getProvider().getName()&&(n+="/external"),new Promise((function(t,r){pn.api.callApi(n,{aid:pn.aid,access_token:e},(function(e){var n;0!==e.code&&r(),t(null!==(n=e.SwgResponse)&&void 0!==n?n:{products:[]})}))}))}(n).then((function(e){return e.products&&h(e.products)})).then((function(e){e&&function(e){window.SWG.push((function(n){n.saveSubscription((function(){return{token:e}})).then((function(e){!e&&r.log("swg: save subscription process was stopped")}))}))}(n),m=!1})).catch((function(e){r.log("swg: save subscription flow failed with error - ",e),m=!1})))}},w=function e(){y(),n.unsubscribe("purge",e)},_=function(){n.subscribe("loginSuccess",(function(e){if(i.hasModalIframe())n.subscribe("purge",w);else{var t=e.params.token||e.params.user_token;y(t)}})),n.subscribe("purge",(function(e){e.params.completePayment&&y()}))},b=function(e){return new Promise((function(n,t){pn.api.callApi("/swg/check",{entitlement:JSON.stringify(e)},(function(e){0!==e.code&&(r.log("swg: check subscription response - "+e.message),t()),n(e.CheckSubscriptionResponse)}))}))},k=function(e){return new Promise((function(n,t){pn.api.callApi("/swg/check/external",{entitlements:JSON.stringify(e)},(function(e){0!==e.code&&(r.log("swg: check external entitlement response - "+e.message),t());var o=e.data;o||(r.log("swg: check external entitlement empty response"),t()),n(o)}))}))},C=function(e,t,o,i,a){pn.api.callApi("/swg/subscribe",{term_id:i,purchase_data:JSON.stringify(t),user_data:JSON.stringify(o)},(function(t){if(0===t.code){var o=t.data;I(o),n.broadcast("swgCheckoutComplete"),e.complete().then((function(){g(a)})).catch((function(e){r.log("swg: complete failed:",e)}))}else r.log("swg: subscribe response - "+t.message)}))},I=function(e){e&&t.getProvider().loginByToken&&t.getProvider().loginByToken(e)},S=!1,E=!1;return{name:"swg",__protected__:{injectMarkup:function(e){var n;if(!S&&e){r.debug("swg: rendering swg markup with config:",e);var t='{\n   "@context": "http://schema.org",\n   "@type": "CreativeWork",\n   "isAccessibleForFree": '+e.isAccessibleForFree;!1===e.isAccessibleForFree&&e.productId&&(t=t+',\n   "isPartOf": {\n       "@type": ["CreativeWork", "Product"],\n       "name" : "'+e.resourceName+'",\n       "productID": "'+e.productId+'"\n   }'),t+="\n}";var o=document.createElement("script");o.type="application/ld+json",o.innerHTML=t,null===(n=document.getElementsByTagName("script")[0].parentNode)||void 0===n||n.appendChild(o),S=!0}},addLibrary:function(){var e;if(!E){r.debug("swg: adding swg.js library");var n=document.createElement("script");n.type="text/javascript",n.setAttribute("subscriptions-control","manual"),n.async=!0,n.src="https://news.google.com/swg/js/v1/swg.js",null===(e=document.getElementsByTagName("script")[0].parentNode)||void 0===e||e.appendChild(n),E=!0}},initSwgFlow:function(){window.SWG.push((function(e){e.getEntitlements().then((function(n){if(p=!0,r.debug("swg: getEntitlements",n),n.enablesThis()){var o=n.getEntitlementForSource("google");if(v=n.entitlements,!o)return void(v&&k(v).then((function(){r.debug("swg: checkExternalEntitlement"),n.ack()}),(function(){r.log("swg: checkExternalEntitlement failed")})));b(o).then((function(o){if(f)r.debug("swg: onPaymentResponse is already triggered. Skipping entitlements flow.");else if(o)switch(o.type){case"USER_FOUND":if(t.isUserValid())return void r.error("swg: user found, but not valid");r.debug("swg: user found, initiate login prompt");var i=o.user_token;if(function(e){return r.__protected__.getCookie(d)&&r.__protected__.getCookie(d).includes(e)}(o.type))return;e.showLoginPrompt().then((function(){I(i),g(s)})).catch((function(e){(function(e){r.__protected__.setCookieConsent("vx",d,e,{expires:30})})(o.type),r.log("swg: showLoginPrompt failed",e)}));break;case"TERM_FOUND":r.debug("swg: term found, initiate deferred account creation");var a=o.term_id;e.completeDeferredAccountCreation({entitlements:n,consent:!0}).then((function(e){r.debug("swg: completeDeferredAccountCreation",e),C(e,e.purchaseData,e.userData,a,c)})).catch((function(e){r.log("swg: completeDeferredAccountCreation failed",e)}));break;default:r.debug("swg: check subscription response type "+o.type+". Nothing to do")}}),(function(){r.log("swg: checkSubscription failed")})),n.ack()}})).catch((function(e){r.log("swg: get entitlements failed",e)}))})),_()}},registerCallback:function(e,n){l.addEvent(e),l.registerCallback(e,n)}}}();pn.container.register("swg",{useValue:Ko}),pn.swg=pn.container.resolve("swg");var Zo=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("analytics"),t=pn.container.resolve("offer"),r=pn.container.resolve("user"),o=pn.container.resolve("api"),i=!1,a="",s={},c={};function u(n){return new Promise((function(t){var i={aid:pn.aid,rid:"",account_linking_token:e.getQueryParamByName("account_linking_token"),user_token:r.getProvider().getToken(),user_provider:r.getProvider().getName()};n&&(i.rid=n),o.callApi("/fbia/subscriptionPayload/generate",i,(function(e){e&&e.data&&(a=e.data),t(null)}))}))}var l=function(){u().then((function(){a&&p()}))},d=function(n){if(n){var t=new Promise((function(e){setTimeout((function(){e(null)}),1e3*pn.redirectToFbTimeout)})),r=u(n);e.__protected__.waitAllPromises([t,r]).then((function(){p()}))}else e.error("fbsubscriptions: 'rid' could not be empty on generating subscription payload")},p=function(){var n=e.getQueryParamByName("account_linking_token"),t=e.getQueryParamByName("redirect_uri")+"?account_linking_token="+encodeURIComponent(n);a&&(t+="&subscription_payload="+encodeURIComponent(a)),window.location.href=t},f=function(e,t){s[e]||(s[e]=!0,n.fbpixel.event({eventType:yo.TRACK_EVENT,payload:{eventName:e,eventParams:t}}))},m=function(e,t){c[e]||(c[e]=!0,n.fbpixel.event({eventType:yo.TRACK_CUSTOM_EVENT,payload:{eventName:e,eventParams:t}}))},v=function(){return i};return{name:"fbsubscriptions",checkUserAccessAndRedirectToFb:function(){u().then((function(){p()}))},isInitialized:v,__private__:{isInitialized:v},__protected__:{init:function(){if(!i){n.fbpixel.initialize(),t.registerCallback("loaded",(function(){var n=e.getQueryParamByName("surface");("meter_limit_reached"===n||"locked_article"===n)&&!pn.inappBrowserReturn&&m("ViewPaywall",{surface:"IA"})}));pn.addHandler("loginSuccess",(function(e){u().then((function(){e.registration?m("CreateAccount"):m("LogIntoAccount",{is_subscriber:!!a}),a&&setTimeout((function(){p()}),200)}))})),pn.addHandler("experienceExecute",(function(){r.isUserValid()&&l()})),t.registerCallback("alreadyPurchased",(function(e){d(e.rid)})),t.registerCallback("startCheckout",(function(e){f("InitiateCheckout",{offer_code:e.offerId,campaign_code:e.termId})})),t.registerCallback("complete",(function(e){e.hasOwnProperty("chargeCurrency")&&e.hasOwnProperty("chargeAmount")&&f("Purchase",{currency:e.chargeCurrency,value:e.chargeAmount,offer_code:e.offerId,campaign_code:e.termId}),d(e.rid)})),t.registerCallback("close",(function(){p()})),i=!0}}}}}();pn.container.register("fbsubscriptions",{useValue:Zo}),pn.fbsubscriptions=pn.container.resolve("fbsubscriptions");pn.container.register("cxense",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("jqUtils"),t=e.resolve("util"),r=e.resolve("analytics"),o=e.resolve("recWidgetService").__protected__.getInstance(),i=[],a=function(){return void 0!==pn.cxCdnUrl&&""!==pn.cxCdnUrl?pn.cxCdnUrl:"https://cdn.cxense.com"},s=function(){return void 0!==pn.cxenseSiteId&&""!==pn.cxenseSiteId},c=function(e){return void 0!==window.cX&&void 0!==window.cX.library&&(e||void 0!==window.cX.CCE&&void 0!==window.cX.CCE.library)},u=function(e){return void 0!==e.cxenseCustomerPrefix&&""!==e.cxenseCustomerPrefix},l=function(e,n){var r,o,i,a="anon",s=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n&&t.debug.apply(t,e)};e.uid&&"anon"!==e.uid&&""!==e.uid&&(a=!(null===(i=null===(o=e.eventExecutionContext)||void 0===o?void 0:o.accessList)||void 0===i||!i.length)?"hasActiveAccess":"registered",s("c1x: adding externalId",{uid:e.uid,prefix:e.cxenseCustomerPrefix}));if(s("c1x: adding CustomParameters userState",{userState:a}),s("c1x: sending pageview event"),"anon"!==a?t.__protected__.setVxUsersToDataLayer(((r={})[e.uid]={prefix:e.cxenseCustomerPrefix||"",type:"VX"},r)):t.__protected__.setVxUsersToDataLayer(null),Ar.set("userStatus",a),n){Ar.set("siteId",pn.cxenseSiteId);var c=window.cX=window.cX||{};c.callQueue=c.callQueue||[],c.callQueue.push(["sendPageViewEvent"])}},d=function(e){var n=null,t=[];function r(){n&&clearTimeout(n),n=null,e(t),t=[]}return function(e){n||(n=setTimeout(r,10)),t.push(e)}}((function(e){if(s()){for(var n=[],a=function(){var t=e[c]||{};o.showRecommendation({widgetConfig:t,createPlaceholderFn:p(t.widgetId,t.displayMode)})&&n.push({widgetParams:{widgetId:t.widgetId,targetElementId:"cxense-"+t.widgetId,experienceId:t.experienceId,trackingId:t.trackingId},widgetCallback:function(e){var n=e&&e.response;if(n&&!e.response.error){"modal"===t.displayMode&&o.fixWidgetModalWidth(o.findWidget(t.widgetId));for(var a=0;a<n.items.length;a++){var s=n.items[a].id;-1===i.indexOf(s)&&i.push(s)}r.log.event({eventType:go.LOG_AUTO_MICRO_CONVERSION,payload:{trackingId:t.trackingId,eventGroupId:"init",eventType:vo.EXTERNAL_EVENT,customParams:{source:"CX"}}})}}})},c=0;c<e.length;c++)a();f((function(){(function(){var e=pn.cxenseSiteId;t.debug("c1x: setting siteId: ",e),window.cX.setSiteId(e)})(),window.cX.CCE.runMulti(n,["id"],i)}))}else t.debug("c1x: can not show recommendation because siteId is not configured using `setCxenseSiteId`")})),p=function(e,t){return function(){var r=document.createElement("div");n.addClass("tp-cxense-placeholder-".concat(t),r),n.addClass("tp-widget-placeholder",r);var o=document.createElement("div");return o.id="cxense-".concat(e),r.appendChild(o),r}},f=function(e){window.cX=window.cX||{},window.cX.CCE=window.cX.CCE||{},window.cX.CCE.callQueue=window.cX.CCE.callQueue||[],window.cX.CCE.callQueue.push(["invoke",e])},m=function(e){return c(e)};return{name:"cxense",__protected__:{showRecommendation:d,clearWidgets:function(){o.clearWidgets()},sendPageViewEvent:function(e){var n=!0;!s()&&!u(e)&&(n=!1),!s()&&u(e)&&(t.debug("cxense: can not send pageview because siteId is not configured using `setCxenseSiteId`"),n=!1),s()&&!u(e)&&(t.debug("cxense: can not send pageview because customer prefix is not configured in app settings"),n=!1),l(e,n)},isActivated:s,isCustomerPrefixConfigured:u,isConfiguredPollingAsync:function(e,n,t){n=n||0,t=t||0;var r=0;return new Promise((function(o,i){m(e)?o(!0):setTimeout((function a(){m(e)?o(!0):r>=t?i(e?"c1x: cX object is not found after "+t+" retries with "+n+"ms interval":"c1x: cX and cX.CCE objects are not found after "+t+" retries with "+n+"ms interval"):(r++,setTimeout(a,n))}),n)}))},invokeCxenseFn:f,getC1XIntegrationVersion:function(){return void 0!==pn.c1XIntegrationVersion&&""!==pn.cxenseSiteId?pn.c1XIntegrationVersion:"N/A"},loadCxLibIfNeeded:function(){var e;if(!s()||!c(!0)){var n=document.getElementsByTagName("script")[0],r=document.createElement("script");r.onerror=function(e){t.debug("c1x: error during load of cx.js. ",e)},r.onload=function(){t.debug("c1x: cx.js has been successfully loaded")},r.async=!0,r.type="text/javascript",pn.c1XLoadCce?r.src=a()+"/cx.cce.js":r.src=a()+"/cx.js",t.debug("c1x: start loading cx.js on the page..."),null===(e=n.parentNode)||void 0===e||e.insertBefore(r,n)}}}}}()}),pn.cxense=pn.container.resolve("cxense");pn.container.register("experience",{useValue:function(e){void 0===e&&(e=pn.container);var n,t,r,o=e.resolve("jqUtils"),i=e.resolve("util"),a=e.resolve("consent"),s=e.resolve("api"),c=e.resolve("eventUtils"),u=e.resolve("scrollDepth"),l=e.resolve("ajax"),d=e.resolve("viewportExit"),f=e.resolve("idle"),m=e.resolve("interaction"),v=e.resolve("pianoEsp"),g=e.resolve("swg"),h=e.resolve("fbsubscriptions"),y=e.resolve("user"),w=e.resolve("cxense"),_=e.resolve("logging"),b=e.resolve("composerControlPolicy"),k=e.resolve("analytics"),C=e.resolve("gaCollectingService"),I=[],S={},E="",P=!1,x="reader_id",T={},A=!1,M={},O=(n={applyCss:{fn:function(e){e.eventParams.ruleList.forEach((function(e){var n,t=e.classes,r=e.elements;t&&(t=t.replace(/[,.]/g," ").split(" ").filter((function(e){return""!==e})),"add"===e.type&&(n=o.qa(r))&&n.length&&n.forEach((function(e){t.forEach((function(n){o.addClass(n,e)}))})),"remove"===e.type&&(n=o.qa(r))&&n.length&&n.forEach((function(e){t.forEach((function(n){o.removeClass(n,e)}))})));i.debug("exp: css applied with rule:",e)}))},isAction:!0,shouldFireCallback:!0},runJs:{fn:function(e){if(e.eventParams&&e.eventParams.snippet){var n=e.eventParams.snippet;i.debug("exp: run js with snippet:",n);var t=e.eventExecutionContext;i.debug("exp: set publisher's context and custom:",t),we("var context = "+JSON.stringify(t)+";\nvar custom = "+JSON.stringify(pn.customVariables)+";\n"+n)}},isAction:!0,shouldFireCallback:!0},setCookie:{fn:function(e){var n=e.eventParams;if(n&&void 0!==n.cookieName&&void 0!==n.cookieValue){i.debug("exp: set cookie with parameters:",n);var t=(n.isReadableCookie?"_pc_":"")+n.cookieName,r={domain:n.cookieDomain,path:n.cookiePath};if(!n.isSessionCookie){var o=new Date;switch(n.expirationUnit){case"seconds":o.setSeconds(o.getSeconds()+n.expirationValue);break;case"minutes":o.setMinutes(o.getMinutes()+n.expirationValue);break;case"hours":o.setHours(o.getHours()+n.expirationValue);break;case"days":o.setDate(o.getDate()+n.expirationValue);break;case"months":o.setMonth(o.getMonth()+n.expirationValue);break;case"years":o.setFullYear(o.getFullYear()+n.expirationValue);break;default:i.log("Wrong eventParams.expirationUnit : ",n.expirationUnit)}r.expires=o}i.__protected__.setCookieConsent("composer",t,n.cookieValue,r)}},isAction:!0,shouldFireCallback:!0},nonSite:{fn:function(e){i.debug("exp: non-site action:",e)},isAction:!0,shouldFireCallback:!0},showForm:{fn:function(e){var n=e.eventParams;if(n&&n.formName){var t={formName:n.formName,hideIfComplete:n.hideCompletedFields,trackingId:e.eventExecutionContext.trackingId,displayMode:n.displayMode,containerSelector:n.containerSelector,showCloseButton:n.showCloseButton,templateId:n.templateId,variantId:n.templateVariantId,accessToken:y.getProvider().getToken()};n.formWidth&&n.formWidth.enabled&&(t=o.deepExtend({},{width:n.formWidth.width},t)),i.debug("exp: show form with params:",n),pn.pianoId.showForm(t)}},isAction:!0,shouldFireCallback:!0},showRecommendations:{fn:function(e){return _e(e,function(e){return{ESP:v.__protected__.showRecommendation.bind(v),CXENSE:w.__protected__.showRecommendation.bind(w)}[e]||function(){}}(e.eventParams.type))},isAction:!0,shouldFireCallback:!0},showOffer:{fn:function(e){return _e(e,(function(e){return pn.offer.show(e)}))},isAction:!0,shouldFireCallback:!1},showTemplate:{fn:be,isAction:!0,shouldFireCallback:!1},showZuoraOffer:{fn:be,isAction:!0,shouldFireCallback:!1},showNewscycleOffer:{fn:be,isAction:!0,shouldFireCallback:!1},showNewsletterSignup:{fn:function(e){return _e(e,(function(e){return v.__protected__.showNewsletterSignup(e)}))},isAction:!0,shouldFireCallback:!1},showPushSignUp:{fn:function(e){return _e(e,(function(e){return v.__protected__.showPushSignup(e)}))},isAction:!0,shouldFireCallback:!1},showLogin:{fn:function(e){y.showLogin({trackingId:e.eventExecutionContext.trackingId})},isAction:!0,shouldFireCallback:!0},continueExecution:{fn:function(e,n,t,r){i.debug("exp: continue execution action:",e,"with requestParameters",n);var o=n||{};o.experience_id=e.eventExecutionContext.experienceId,o.experience_version=e.eventExecutionContext.experienceVersion,o.context_data=e.eventParams.contextData,$("auto",o,!0,r)},shouldFireCallback:!0},continueExecutionCompleted:{fn:Ee,shouldFireCallback:!0},meterActive:{fn:Ee,shouldFireCallback:!0,ga:function(e){return{eventCategory:"meterActive",eventLabel:"Meter active",experienceId:e.eventExecutionContext.experienceId,meterName:e.eventExecutionContext.currentMeterName}}},meterExpired:{fn:Ee,shouldFireCallback:!0,ga:function(e){return{eventCategory:"meterExpired",eventLabel:"Meter expired",experienceId:e.eventExecutionContext.experienceId,meterName:e.eventExecutionContext.currentMeterName}}},userSegmentTrue:{fn:ye,shouldFireCallback:!0},userSegmentFalse:{fn:ye,shouldFireCallback:!0},experienceExecutionFailed:{fn:Ee,shouldFireCallback:!0},log:{fn:function(e){ie(e.eventModuleParams.moduleId,e)},shouldFireCallback:!1},experienceExecute:{fn:function(e,n,t){e.eventParams.result=t},shouldFireCallback:!0,ga:function(e){return{eventCategory:"experienceExecute",eventLabel:"Experience execute",experienceId:e.eventExecutionContext.experienceId}}},setResponseVariable:{fn:function(e){return e.eventParams},isAction:!0,shouldFireCallback:!0,ga:function(e){return p({eventCategory:"setResponseVariable",eventLabel:"Set response variable",experienceId:e.eventExecutionContext.experienceId,setResponseVariableId:e.eventModuleParams.moduleId},e.eventParams.responseVariables)}},creditRedeemed:{fn:function(e){i.debug("exp: credit redeemed action:",e)},isAction:!0,shouldFireCallback:!0}},t={},r=function(e,n){return function(t,r,o,a){if(e.isAction){var s=function(e){var n=e.eventParams,t=e.eventModuleParams,r=e.eventExecutionContext;return i.debug("exp: fire event 'beforeComposerAction' with eventParams:",n,", moduleParams:",t,", context:",r),H.fireCallbacksAndStopOnFirstFalse("beforeComposerAction",n,t,r)}(t);if(!s)return;var c=ce(t),u=se(t);(c||u)&&ie(t.eventModuleParams.moduleId,t)}var l=t.eventModuleParams.moduleId;!M[l]&&"N/A"!==l&&(M[l]={experienceId:t.eventExecutionContext.experienceId,moduleName:t.eventModuleParams.moduleName});var d=(null==a?void 0:a.handlers)||{},p="on".concat(n[0].toUpperCase()).concat(n.slice(1));"function"==typeof(null==d?void 0:d[p])&&d[p](t,r);var f=Object.assign({},t);f.eventParams&&(f.eventParams=Object.assign({},t.eventParams)),e.fn(f,r,o,a),e.ga&&he(e.ga(f)),e.shouldFireCallback&&function(e){return function(n){var t=n.eventParams.callback,r=n.eventParams,o=n.eventModuleParams,a=n.eventExecutionContext;i.debug("exp: fire event ",e," with eventParams:",r,", moduleParams:",o,", context:",a),H.fire("experience",e,!0,r,o,a),t&&e!==t&&(i.debug("exp: execute event ",e," with callback: ",t),we(t))}}(n)(f)}},Object.keys(n).forEach((function(e){if("function"!=typeof n[e].fn)throw new Error("Unsupported config for "+e+" handler");t[e]=r(n[e],e)})),t),N={showOffer:function(e){return ke(e,(function(e){return pn.offer.deferredShow(e)}))},showTemplate:Ce,showZuoraOffer:Ce,showNewscycleOffer:Ce},R=i.profile((function(e,n){b.__private__.checkLS(),$("manual",e,!1,{overrides:e,handlers:n})})),L=function(e,n){H.addEvent(e),H.registerCallback(e,n)},D={},U="",j="",V="",F=[],B="handler",q="eventCondition",z="innerEventCondition",G="preload",H=c.createEventManager([]),W=["showOffer","showZuoraOffer","showNewscycleOffer","showTemplate"];var J,Q=function(){return pn.getExperienceEndpoint(!1)+"/api/v3"},X=function(){h.__protected__.init()},Y=function e(n){var t=I;t.length&&(k.log.event({eventType:go.LOG_BEACON_REQUEST,payload:{url:Q()+"/composer/logExecutionStats",params:{aid:pn.aid,items:JSON.stringify(t),execution_stats_context:E,ts:(new Date).getTime(),source:n}}}),I=[]),window.clearTimeout(J),J=window.setTimeout((function(){e("timer"+J)}),2e3)},$=function(e,n,t,r){Boolean((window.pdl||{}).requireConsent&&!pn.consent.get())&&i.debug("WARNING: The RequireConsent feature is enabled. The Piano services might be working unstable until user consent provided"),void 0===pn.main.appHasApplePay()&&H.fireCallbacks("experienceFlow",null,"experience",!0);var a=new Promise((function(e){setTimeout((function(){e({})}),3e4)}));return Promise.race([pn.main.externalResourcesDelay(),a]).then((function(a){o.isPlainObject(a)||(i.error("exp: error get external resources ",a),a={});var s={new_bid:Ar.get("browserId")};if(w.__protected__.isActivated()){i.debug("c1x: integration is activated"),w.__protected__.loadCxLibIfNeeded();var c=o.deepExtend({},n,a,s,{c1x_integration_version:"v2"});K(e,c,t,r)}else K(e,o.deepExtend({},n,a,s),t,r)})).catch((function(e){}))},K=function(e,n,t,r){n=n||{};var c=o.deepExtend({},{protocol_version:1},n);Z(c),ee(c),ne(c),re(c),i.hasQueryParamByName(x)&&(c[x]=i.getQueryParamByName(x)),i.waitCall("refreshUserToken",(function(){if(t)c.executed_nodes=JSON.stringify(M);else{pn.main.trackPageUnloadIfNecessary.skipLog(),te(c),s.getCallParams(c,y.getProvider()),i.removeAffiliateToken();var n={url:window.location.href,tags:pn.tags,submitType:e};pn.main.buildPageTrackParams(c,n)}a.__protected__.addConsentsToParams(c),i.debug("exp: Experience initialized with params:",c),i.waitCall("refreshAccessTokenList",(function(){i.startCall("experienceExecute");var e,n=function(){var e=null;return i.__protected__.cameFromFbSubscriptions()?b.denyFbia||(e="/xbuilder/experience/executeFbia",X()):b.denyWeb||(e="/xbuilder/experience/execute"),e&&pn.getExperienceEndpoint(!1)+e}();if(!n)return i.doneCall("experienceExecute"),t||Ie(),void i.debug("execute: is denied");if(-1!==navigator.appVersion.indexOf("MSIE 9"))e={dataType:"jsonp",url:n+"?"+o.param(c)};else{var a="?"+o.param({aid:c.aid});e={type:"post",url:n+a,data:o.deepExtend({},c,(null==r?void 0:r.overrides)||{}),xhrFields:{withCredentials:!0}}}e.success=function(e){i.doneCall("experienceExecute");var n=o.deepExtend({},c);t||(Ie(),pn.main.registerTrackUnload.skipLog()),oe(e.errors),ge(e.models,n,r)},e.error=function(e){b.__private__.setPolicyByRequest(e),i.doneCall("experienceExecute"),t||Ie();var r={code:503,message:"Error: Received error when requesting API response from URL: "+n};i.debug(r.message)},l.request(e)}))}))},Z=function(e){var n=i.__protected__.getCookie("xbc");n&&(e.xbc=n);var t=i.getTbcCookie();t&&t.length>0&&(e.tbc=t),i.getCampaigns(e),e.custom_cookies=JSON.stringify(i.getCustomCookies())},ee=function(e){var n=i.getPushListsCookie(),t=v.__protected__.getNotificationStatus();n&&n.length>0&&(e.push_list_subscriptions=JSON.stringify(n)),t&&(e.push_notification_settings=t)},ne=function(e){e.mailing_lists=JSON.stringify(v.__protected__.loadCompleteMailingLists())},te=function(e){return[{property:"debug",parameter:"debug",skipFalse:!0},{property:"trackPageView",parameter:"increment_pageview_meter"}].forEach((function(n){void 0!==pn[n.property]&&(!n.skipFalse||pn[n.property])&&(e[n.parameter]=pn[n.property])})),e},re=function(e){var n=Ar.get("userSegments");n&&(e.previous_user_segments=JSON.stringify(n))},oe=function(e){Array.isArray(e)&&(e.length&&i.debug("exp: composer execution has been failed with errors"),e.forEach((function(e){i.debug("exp: "+e.msg)})))},ie=function(e,n){!function(e){I.push(e)}({mId:e,eId:n.eventExecutionContext.experienceId,eV:n.eventExecutionContext.experienceVersion,eeId:n.eventExecutionContext.executionId})};function ae(e,n,t,r,o){return{type:B,eventType:n.eventType,children:[],run:function(){e.bind(this,n,t,r,o)()}}}var se=function(e){var n,t=e.eventParams.delayBy||{};return t.value&&("time"===t.type?n={type:"timer",timer:t.value}:"scroll"===t.type&&(n={type:"scrollDepth",scrollDepth:t.value,measureType:"pixels"})),n},ce=function(e){return e.eventConditions&&Array.isArray(e.eventConditions)?e.eventConditions.length:0},ue=function(e,n){return function(){var t,r=!1;return{type:G,eventType:n.eventType,children:[],run:function(){!1===r&&(t=e(n),r=!0)},getPreloadResult:function(){return t}}}()};function le(e,n){var t=function(){return function(e){T[e.type]||(he(p({eventCategory:"beforeBrowserEvent",eventLabel:"Before browser event"},e)),T[e.type]=!0)}(e),H.fireCallbacksAndStopOnFirstFalse("beforeBrowserEvent",e)};switch(e.type){case"viewportExit":d.addListener(n,{detectExitMode:e.detectExitMode,detectBackButtonForMobile:e.detectBackButtonForMobile,clientDevice:e.clientDevice},t);break;case"scrollDepth":u.addListener(n,{scrollDepth:e.scrollDepth,measureType:e.measureType},t);break;case"timer":var r=setTimeout((function(){t()&&n()}),1e3*e.timer);F.push(r);break;case"interaction":m.bind(n,e.interactions,t);break;case"idle":f.addListener(n,e.idleTime,t)}}var de=function(e){return e.type===B&&-1===["continueExecution","meterActive","meterExpired"].indexOf(e.eventType)};function pe(e,n){return function(){var t=!1,r=function(){ie(e.moduleId,n);for(var r=S[e.moduleId].children,o=0;o<r.length;o++){var a=r[o],s=S[a];if(!1===t||de(s))try{s.run()}catch(e){i.error("exp: error execute chain event",s,e)}}t=!0,P&&Y("chain")};return{type:q,children:[],run:function(){le(e,r)}}}()}function fe(e,n){return function(){var t=!1,r=function(){for(var e=S[n+z].children,r=0;r<e.length;r++){var o=e[r],a=S[o];if(!1===t||de(a))try{a.run()}catch(e){i.error("exp: error execute chain event",a,e)}}t=!0};return{type:z,children:[n],run:function(){le(e,r)}}}()}var me=function(e){e.swgMarkupData&&(i.debug("exp: swg markup data :",e.swgMarkupData),function(e){g.__protected__.injectMarkup(e)}(e.swgMarkupData),e.swgMarkupData.isAccessibleForFree||g.__protected__.addLibrary()),e.swgEnabled&&g.__protected__.initSwgFlow()},ve=function(e){if(e){for(var n={},t=0;t<e.events.length;t++){var r=e.events[t];try{"experienceExecute"===r.eventType&&((n=o.deepExtend({},r.eventExecutionContext)).result=o.deepExtend({},e))}catch(e){i.error("exp: error on execute event: ",r,e)}}return n}i.debug("exp: no composer execution result")},ge=function(e,n,t){if(e){i.setTbcCookieFromResponse(e),i.setTacCookieFromResponse(e),i.setAppTimezoneOffsetFromResponse(e),i.setCurrentDomainFromResponse(e),function(e){v.__protected__.setVisitorId(e.bid)}(e),function(e){w.__protected__.sendPageViewEvent({browserId:e.bid,uid:e.uid,cxenseCustomerPrefix:e.cxenseCustomerPrefix,pageViewId:pn.main.fetchPageViewId(),eventExecutionContext:ve(e.result)})}(e),function(e){U=e.bid}(e),function(e){e.iss&&(j=e.iss)}(e),function(e){V=e.itemId}(e),i.setXbcCookieFromResponse(e);var r=e.result,a={};if(!r)return void i.debug("exp: no composer execution result");me(r),i.debug("exp: processed experiences :",r.experiences),E=e.executionStatsContext,r.debugMessages.forEach((function(e){i.debug("exp: execute :",e)}));for(var s,c=function(e,n,t){for(var r=e.eventConditions,o=0;o<r.length;o++){var a=r[o],s=a.moduleId,c=r[o-1],u=!r[o+1];if(S[s]||(S[s]=pe(a,e)),u)if(S[s].children.push(n),-1!==W.indexOf(e.eventType)&&"viewportExit"===a.type&&!se(e)){var l=N[e.eventType];if(!l){i.error("exp: not found preload handler for event: ",e);continue}var d=n+G;S[d]=ue(l,e),c?S[c.moduleId].children.push(d):t.push(d)}c&&-1===S[c.moduleId].children.indexOf(s)&&S[c.moduleId].children.push(s)}},u=[],l=0,d=0;d<r.events.length;d++){var p=r.events[d];try{var f=p.eventType,m=p.eventModuleParams||{};if(i.debug("exp: process event '"+f+"' ("+m.moduleId+")"),"experienceExecute"===f&&((a=o.deepExtend({},p.eventExecutionContext)).result=o.deepExtend({},r),i.setUserSegments(a)),!(s=m.moduleId)){i.error("exp: not found moduleId for linked node event: ",p);continue}var g=O[f];if(!g){i.error("exp: not found handler for event: ",p);continue}S[s]=ae(g,p,n,r,t);var h=ce(p),y=se(p);if(h||y){var _=s;if(y){var b=fe(y,s);S[_=s+z]=b}h?-1===u.indexOf(p.eventConditions[0].moduleId)&&u.push(p.eventConditions[0].moduleId):y&&u.push(_),c(p,_,u),l++}else u.push(s)}catch(e){i.error("exp: error on execute event: ",p,e)}}l<=3&&(P=!0);for(var k=0;k<u.length;k++)s=u[k],S[s]&&S[s].run();window.clearTimeout(J),J=window.setTimeout((function(){Y("rootTimer"+J)}),2e3),D=a}};function he(e){k.ga.event({eventType:_o.EMIT_GA_EVENT,payload:p({aid:pn.aid},e)})}function ye(e){ce(e)&&ie(e.eventModuleParams.moduleId,e)}function we(e){try{eval.call(window,"(function () {"+e+"\n})();")}catch(e){i.log("Error occurred in RunJS\n",e)}}function _e(e,n){var t=S[e.eventModuleParams.moduleId+G];return t&&t.getPreloadResult?t.getPreloadResult().show():Se(e,n)}function be(e){return _e(e,(function(e){return pn.template.show(e)}))}function ke(e,n){return i.debug("exp: run preloading for:",e),Se(e,(function(e){return n(e)}))}function Ce(e){return ke(e,(function(e){return pn.template.deferredShow(e)}))}function Ie(){Y("reset"),F.forEach((function(e){clearTimeout(e)})),F=[],d.removeListeners(),f.removeListeners(),u.removeListeners(),m.unbindAll(),S={},M={}}function Se(e,n){var t=o.deepExtend({},e.eventParams),r=e.eventExecutionContext.splitTests,a=e.eventExecutionContext.activeMeters,s=e.eventParams.formNameByTermId,c=e.eventParams.hideCompletedFields,u=function(e){var n;if(!j)return null;var t=e||{};return{issuerId:j,premium:t.user&&t.user.premium||null,redemptionCandidateItemId:V||null,creditStates:t.creditStates||null,userId:(null===(n=t.user)||void 0===n?void 0:n.uid)||null,targetGroups:{l1:"target",l2:null}}}(e.eventExecutionContext);if(t.trackingId=e.eventExecutionContext.trackingId,t.experienceId=e.eventExecutionContext.experienceId,t.experienceExecutionId=e.eventExecutionContext.executionId,t.experienceActionId=e.eventModuleParams.moduleId,t.experienceConditions=e.eventConditions,t.browserId=U,t.onStartCreditRedemption=function(n){var t=o.deepExtend({},n),r="https://www.piano.io"===j,i=e.eventExecutionContext.user&&"anon"!==e.eventExecutionContext.uid;return t.trackingId=e.eventExecutionContext.trackingId||void 0,r&&i&&(t.uid=e.eventExecutionContext.user.uid||void 0),pn.credit.redeem(t)},r&&r.length>0){var l=r.map((function(e){return e.variantId}));t.splitTestIds=JSON.stringify(l)}if(t.additionalParamNames=[],a&&a.length>0&&(t.activeMeters=JSON.stringify(a)),"showZuoraOffer"===e.eventType){var d=e.eventParams.ratePlanIds;d&&d.length>0&&(t.zuoraSelectedRatePlanIds=JSON.stringify(d),t.additionalParamNames.push("zuoraSelectedRatePlanIds"))}if("showNewscycleOffer"===e.eventType){var p=e.eventParams.ids;p&&p.length>0&&(t.newscycleSelectedIds=JSON.stringify(p),t.additionalParamNames.push("newscycleSelectedIds","campaignCode","campaignGroupId"))}if("showNewsletterSignup"===e.eventType){var f=e.eventParams.mailingListIds,m=e.eventParams.siteId;f&&f.length>0&&(t.mailingListIds=JSON.stringify(f),t.siteId=m,t.additionalParamNames.push("mailingListIds","siteId"))}return"showRecommendations"===e.eventType&&(t.widgetId=e.eventParams.widgetId,t.placeholder=e.eventParams.placeholder),s&&(t.formNameByTermId=JSON.stringify(s),t.hideCompletedFields=c),u&&(t.affiliateState=u),i.debug("exp: show with params:",t),C.setParam("splitTestIds",t.splitTestIds),n(t)}function Ee(){return function(){}}return{name:"experience",init:function(){if(!A&&!i.__protected__.isCxenseBot()){A=!0;var e=!0;if(pn.customPreChecks&&pn.customPreChecks.length)for(var n=null,t=pn.customPreChecks.length;t--;)try{1!==(n=pn.customPreChecks[t]())&&!0!==n&&(e=!1)}catch(e){}e&&$("auto").then((function(){_.setTime("expExec")}))}},execute:R,_getLastExecutionResult:function(){return D},registerCallback:L,__private__:{handlers:O,executedNodes:I,linkedNodes:S,processResult:ge,processErrors:oe,show:Se,getTrackingEndpoint:Q,initialized:A,registerCallback:L},__protected__:{sendStatisticsExecutedNodes:Y}}}()}),pn.experience=pn.container.resolve("experience");var ei=function(){var e,n,t=0,r=document,o=!1,i="active",a=6e4,s=function(){var e,n,t;return e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)},function(){return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},t={},n="__ceGUID",{add:function(e,r,o){return e[n]=void 0,e[n]||(e[n]="ifvisible.object.event.identifier"),t[e[n]]||(t[e[n]]={}),t[e[n]][r]||(t[e[n]][r]=[]),t[e[n]][r].push(o)},remove:function(e,r,o){var i,a,s,c,u;if(o){if(e[n]&&t[e[n]]&&t[e[n]][r])for(a=s=0,c=(u=t[e[n]][r]).length;s<c;a=++s)if((i=u[a])===o)return t[e[n]][r].splice(a,1),i}else if(e[n]&&t[e[n]]&&t[e[n]][r])return delete t[e[n]][r]},fire:function(e,r,o){var i,a,s,c,u;if(e[n]&&t[e[n]]&&t[e[n]][r]){for(u=[],a=0,s=(c=t[e[n]][r]).length;a<s;a++)i=c[a],u.push(i(o||{}));return u}}}}(),c=function(){var e;return function(n,t,r){return e||(e=n.addEventListener?function(e,n,t){return e.addEventListener(n,t.bind(ei),!1)}:n.attachEvent?function(e,n,t){return e.attachEvent("on"+n,t,!1)}:function(e,n,t){return e["on"+n]=t}),e(n,t,r)}}(),u=function(){var e,n=r.createElement("div"),t=n.getElementsByTagName("i"),o=3;for(e=function(){return n.innerHTML="\x3c!--[if gt IE "+ ++o+"]><i></i><![endif]--\x3e",t[0]};e(););return o>4?o:void 0}();function l(){var s;return!!o||(e?c(r,n,(function(){return r.hidden?p():d()}),!1):(s="blur",u&&u<9&&(s="focusout"),c(window,s,(function(){return ei.blur()})),c(window,"focus",(function(){return ei.focus()}))),o=!0,function(){var e,n;return(n=function(){return clearTimeout(e),"active"!==i&&m(),t=+new Date,e=setTimeout((function(){if("active"===i)return f()}),a)})(),c(r,"mousemove",n),c(r,"mouseup",n),c(r,"keyup",n),c(r,"touchstart",n),c(window,"scroll",n),c(window,"resize",n),d(n),m(n)}())}void 0!==r.hidden?(e="hidden",n="visibilitychange"):void 0!==r.mozHidden?(e="mozHidden",n="mozvisibilitychange"):void 0!==r.msHidden?(e="msHidden",n="msvisibilitychange"):void 0!==r.webkitHidden&&(e="webkitHidden",n="webkitvisibilitychange");function d(e){return"function"==typeof e?v("focus",(function(n){e(n)})):(i="active",s.fire(ei,"focus"),s.fire(ei,"wakeup"),s.fire(ei,"statusChanged",{status:i})),ei}function p(e){return"function"==typeof e?v("blur",(function(n){e(n)})):(i="hidden",s.fire(ei,"blur"),s.fire(ei,"idle"),s.fire(ei,"statusChanged",{status:i})),ei}function f(e){return"function"==typeof e?v("idle",(function(n){e(n)})):(i="idle",s.fire(ei,"idle"),s.fire(ei,"statusChanged",{status:i})),ei}function m(e){return"function"==typeof e?v("wakeup",(function(n){return e(n)})):(i="active",s.fire(ei,"wakeup"),s.fire(ei,"statusChanged",{status:i})),ei}function v(e,n){return l(),s.add(ei,e,n),ei}return{name:"ifvisible",setIdleDuration:function(e){return a=1e3*e},getIdleDuration:function(){return a},getIdleInfo:function(){var e,n;return e=+new Date,n={},"idle"===i?(n.isIdle=!0,n.idleFor=e-t,n.timeLeft=0,n.timeLeftPer=100):(n.isIdle=!1,n.idleFor=e-t,n.timeLeft=t+a-e,n.timeLeftPer=(100-100*n.timeLeft/a).toFixed(2)),n},wakeup:m,idle:f,focus:d,blur:p,on:v,off:function(e,n){return l(),s.remove(ei,e,n),ei},onEvery:function(e,n){var t,r=!1;return l(),n&&(t=setInterval((function(){if("active"===i&&!r)return n()}),1e3*e)),{stop:function(){return clearInterval(t)},pause:function(){return r=!0},resume:function(){return r=!1},code:t,callback:n}},now:function(e){return l(),i===(e||"active")}}}();pn.container.register("ifvisible",{useValue:ei}),pn.ifvisible=pn.container.resolve("ifvisible");var ni=function(){var e,n=pn.container.resolve("jqUtils"),t=pn.container.resolve("ifvisible"),r=0,o=[],i=60,a=!0,s=function(){m();var e=o[o.length-1];void 0!==e&&void 0===e.stopTime||o.push({startTime:new Date,startMinute:r,stopTime:void 0})},c=function(){if(0!==o.length&&!a){if(d())return void f();var e=o[o.length-1];void 0===e.stopTime&&(e.stopTime=new Date,e.stopMinute=r)}},u=function(e,n,t,r){var o=Math.abs(e.getTime()-n.getTime()),i=t-r;return o>6e4*(i+10)&&(o=6e4*i),o},l=function(e){var n=parseFloat(e);if(isNaN(n))throw{name:"InvalidDurationException",message:"An invalid duration time ("+e+") was provided."};t.setIdleDuration(n),i=n},d=function(){return!!(e=n.filter("video,audio",(function(e){return!e.paused}))).length},p=function(){setTimeout((function(){c()}),15e3)},f=function(){!e||e.forEach((function(e){n.on(e,"pause",p)}))},m=function(){!e||e.forEach((function(e){n.off(e,"pause",p)}))};return{name:"activetimer",setIdleDurationInSeconds:l,getActiveTimeInSeconds:function(){for(var e=0,n=0;n<o.length;n++){var t=o[n].startTime,i=o[n].stopTime,a=o[n].startMinute,s=o[n].stopMinute;void 0===i&&(i=new Date,s=r),e+=u(i,t,s,a)}return Math.floor(e/1e3)},getTotalTimeInSeconds:function(){var e=0,n=o[0];if(void 0!==n){var t=n.startTime,i=n.startMinute,a=new Date;e=u(a,t,r,i)}return Math.floor(e/1e3)},resetRecordedTime:function(){o=[],s()},startTimer:s,stopTimer:c,initialize:function(e){e&&l(e),t.on("blur",(function(){a=!1,c()})),t.on("focus",(function(){a=!0,s()})),t.on("idle",(function(){i>0&&(a=!1,c())})),t.on("wakeup",(function(){i>0&&(a=!0,s())})),s(),setInterval((function(){r++}),6e4)}}}();pn.container.register("activetimer",{useValue:ni}),pn.activetimer=pn.container.resolve("activetimer");var ti=function(){var e,n={},t=[],r=!1,o=1,i=2,a=3;function s(e){e&&(l(),r=!1),function(){if(r)return!1;r=!0;try{var e=window.googletag=window.googletag||{};e.cmd=e.cmd||[],e.cmd.push((function(){e.pubads().addEventListener("slotRenderEnded",f),e.pubads().addEventListener("impressionViewable",m),e.companionAds().addEventListener("slotRenderEnded",f),e.companionAds().addEventListener("impressionViewable",m)})),e.apiReady&&e.cmd.push((function(){d(e.pubads().getSlots()),d(e.companionAds().getSlots())}))}catch(e){return g(e),!1}}()}function c(n,t){"function"==typeof e&&e(n,t)}function u(e){return e&&void 0!==n[e]&&null!==n[e]&&n.hasOwnProperty(e)}function l(){n={},t=[]}function d(e){for(var n=0;n<e.length;n++){var t=e[n];f({eventSource:a,slot:t})}}function p(e){var n;try{var t=e.serviceName,r=e.slot;if(!t){var o=e.slot.getServices();o&&o.length&&(t=o[0].getName())}var i=r.getResponseInformation()||{},a=r.getSlotId?r.getSlotId():{},s=r.getSlotElementId?r.getSlotElementId():a.getDomId?a.getDomId():null;n={companion:!!t&&"companion_ads"===t,adUnit:r.getAdUnitPath?r.getAdUnitPath():0,isEmpty:e.isEmpty,elementId:s,advertiserId:e.advertiserId||i.advertiserId,campaignId:e.campaignId||i.campaignId,lineItemId:e.lineItemId||i.lineItemId,creativeId:e.creativeId||i.creativeId,eventSource:e.eventSource||null,size:e.size&&e.size.slice(0,2)||null,viewed:!1,position:null};var c=document.getElementById(s);if(s&&c&&(n.position={top:c.offsetTop,left:c.offsetLeft},void 0===e.isEmpty&&(n.isEmpty=c.offsetWidth<=0&&c.offsetHeight<=0,!n.isEmpty&&!n.size))){var u=r.getSizes();u&&u.length&&(n.size="object"==_typeof(u[0])?[u[0].getWidth(),u[0].getHeight()]:u[0])}}catch(e){g(e)}return n}function f(e){e.eventSource=e.eventSource||o;var r=p(e),i=v(e.slot);!i||(n[i]?r.viewed=n[i].viewed:t.push(i),n[i]=r,c(r,i))}function m(e){var r=v(e.slot);if(r){var o=n[r]||p(e);u(r)||(n[r]=o,t.push(r)),void 0===o.companion&&(o.companion="companion_ads"===e.serviceName),(!o.eventSource||o.eventSource>i)&&(o.eventSource=i),o.viewed=!0,c(o,r)}}function v(e){try{var n=e.getSlotId?e.getSlotId():{},t=e.getSlotElementId?e.getSlotElementId():n.getDomId?n.getDomId():null,r=e.getAdUnitPath?e.getAdUnitPath():0;return[t,n.getId?n.getId():0,r].join(":")}catch(e){g(e)}}function g(e){pn&&pn.util&&pn.util.error&&pn.util.error("DFP module error: ",e)}return s(),{name:"doubleClickForPublisher",initialize:s,setCustomHandler:function(n){e=n},getAds:function(e){var r=[],o=0,i=t.length;e&&function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)&&e>0&&e<i&&(o=i-e);for(var a=o;a<i;a++){var s=t[a];!u(s)||r.push(n[s])}return r},resetAds:l}}();pn.container.register("doubleClickForPublisher",{useValue:ti}),pn.doubleClickForPublisher=pn.container.resolve("doubleClickForPublisher");var ri=function(){var e,n,t,r,o,i,a=pn.container.resolve("postmessage"),s=pn.container.resolve("util"),c="https://js.braintreegateway.com/web/3.79.1/js/client.min.js",u="https://js.braintreegateway.com/web/3.79.1/js/apple-pay.min.js",l="";a.subscribe("loaded",(function(){d()})),a.subscribe("startCheckout",(function(){d()})),a.subscribe("applePayBtClientToken",(function(e){v(e.params.clientToken)})),a.subscribe("applePayBtCheckoutFlowProperties",(function(e){r=e.params.requestEmail,o=e.params.requestPostalAddress})),a.subscribe("applyTaxFailed",(function(n){e.abort()})),a.subscribe("checkApplePayBtInstance",(function(e){n&&a.broadcast("applePayInit",{})})),a.subscribe("applyTaxCompleted",(function(e){m(e.params)})),a.subscribe("applePayBtBeginSession",(function(i){var s={},c=i.params;c.resourceTitle&&(s=c),c.termId&&(l=c.termId||"");var u={currencyCode:c.currencyCode,total:{label:c.resourceTitle,amount:c.chargeAmount}};p(u);try{t=n.createPaymentRequest(u)}catch(e){a.broadcast("payment-error",{errorCode:101})}(e=new window.ApplePaySession(2,t)).onvalidatemerchant=function(t){n.performValidation({validationURL:t.validationURL,displayName:c.resourceTitle||s.resourceTitle},(function(n,t){if(n)return e.abort(),void a.broadcast("payment-error",{errorCode:102});e.completeMerchantValidation(t)}))},e.onpaymentauthorized=function(t){n.tokenize({token:t.payment.token},(function(n,i){if(n)return a.broadcast("payment-error",{errorCode:103}),void e.completePayment(window.ApplePaySession.STATUS_FAILURE);var s={nonce:i.nonce,cardType:i.details.cardType};r||o?f(t,s):m(s)}))},e.begin()}));var d=function(){var e=s.__protected__.isApplePayAllowed();a.broadcast("EVENT_APPLE_PAY_CAN_MAKE_PAYMENTS",{canMakePayments:e})},p=function(e){r&&(e.requiredShippingContactFields=["email"]),o&&(e.requiredBillingContactFields=["postalAddress"])},f=function(e,n){var t=e.payment.billingContact,r={countryCode:t.countryCode?t.countryCode.toUpperCase():t.countryCode,zipCode:t.postalCode,billingZipCode:t.postalCode,nonce:n.nonce,cardType:n.cardType};e.payment.shippingContact&&(r.user={email:e.payment.shippingContact.emailAddress}),a.broadcast("applePayPaymentAuthorized"+l,r)},m=function(n){e.completePayment(window.ApplePaySession.STATUS_SUCCESS),a.broadcast("applePayNonce"+l,n)},v=function(e){i=e,g()},g=function(){w()||y(c,(function(){!0,h()}))},h=function(){_()||y(u,(function(){!0,window.braintree.client.create({authorization:i}).then((function(e){window.braintree.applePay.create({client:e},(function(e,t){e?a.broadcast("payment-error",{errorCode:101}):(n=t,a.broadcast("applePayInit",{}))}))})).catch((function(e){if(e)return a.broadcast("payment-error",{errorCode:100}),void s.error("[TP] Client error: "+e.message)}))}))},y=function(e,n){s.addScript(e,n)},w=function(){for(var e=document.getElementsByTagName("script"),n=0,t=e.length;n<t;n++)if(e[n].src.indexOf(c)>-1)return!0},_=function(){for(var e=document.getElementsByTagName("script"),n=0,t=e.length;n<t;n++)if(e[n].src.indexOf(u)>-1)return!0};return{name:"applePay"}}();pn.container.register("applePay",{useValue:ri}),pn.applePay=pn.container.resolve("applePay");var oi=function(){var e=pn.container.resolve("postmessage"),n=pn.container.resolve("util"),t="",r={environment:"",billingRequestFlowId:""},o={customer:"",mandate:"",bank_account_ending:"",bank_account_holder:"",bank_name:"",currency:""},i=!1;e.subscribe("LOAD_GOCARDLESS_DROPIN",(function(n){t=n.sender,i?e.send("GOCARDLESS_DROPIN_LOADED",null,t):s("https://pay.gocardless.com/billing/static/dropin/v2/initialise.js",(function(){i=!0,e.send("GOCARDLESS_DROPIN_LOADED",null,t)}))})),e.subscribe("GOCARDLESS_DROPIN_MANDATE_CREATION_INIT",(function(e){r=e.params,i&&a()}));var a=function(){window.GoCardlessDropin.create({billingRequestFlowID:r.billingRequestFlowId,environment:r.environment,onSuccess:function(n){var r=n.links,i=r.customer,a=r.mandate_request_mandate,s=n.resources.customer_bank_account,c=s.account_number_ending,u=s.account_holder_name,l=s.bank_name,d=n.mandate_request.currency;o={customer:i,mandate:a,bank_account_ending:c,bank_account_holder:u,bank_name:l,currency:d},null,e.send("GOCARDLESS_DROPIN_MANDATE_CREATION_COMPLETE",o,t)},onExit:function(n){null,n?e.send("payment-error",{message:n},t):e.send("GOCARDLESS_DROPIN_ENABLE_PLUGIN",null,t)}}).open()},s=function(e,t){n.addScript(e,t)};return{name:"goCardlessDropin"}}();pn.container.register("goCardlessDropin",{useValue:oi}),pn.goCardlessDropin=pn.container.resolve("goCardlessDropin");var ii=function(){var e,n,t,r=pn.container.resolve("postmessage"),o=pn.container.resolve("util"),i=!1;return{name:"applePayIntegrationService",initialize:function(){var a=function(){i=o.__protected__.isApplePayAllowed(),r.broadcast("EVENT_APPLE_PAY_CAN_MAKE_PAYMENTS",{canMakePayments:i})};r.subscribe("provider-component-initiated",(function(){i&&r.broadcast("apple-pay-init",{})})),r.subscribe("initPwApplePay",(function(){a()})),r.subscribe("startCheckout",(function(){a()})),r.subscribe("pay-session-received",(function(e){try{n.completeMerchantValidation(e.params.applePaySession)}catch(e){r.broadcast("payment-error",{errorCode:111,errors:e})}})),r.subscribe("apple-pay-complete-payment",(function(e){!function(e){return!t||t===e}(e.params.termId)||n.completePayment(e.params.status,e.params.errors)})),r.subscribe("start-purchase",(function(o){t=o.params.termId||"",e=o.params.resourceName,n=new window.ApplePaySession(3,function(e){return{countryCode:e.params.countryCode,currencyCode:e.params.currencyCode,supportedNetworks:["visa","masterCard","amex","discover"],merchantCapabilities:["supports3DS"],requiredShippingContactFields:e.params.requiredShippingContactFields||[],requiredBillingContactFields:e.params.requiredBillingContactFields||[],total:{label:e.params.resourceName,amount:e.params.chargeAmount}}}(o)),n.onvalidatemerchant=function(n){!function(e,n){var o={validationUrl:e,displayedCaption:n,userToken:null,userProvider:null,userRef:null,janrainCaptureToken:null,domainName:window.location.hostname,aid:null,termId:t};r.broadcast("apple-pay-pay-session-request",o)}(n.validationURL,e)},n.onpaymentauthorized=function(e){try{r.broadcast("apple-pay-payment-authorized",{paymentData:e.payment,termId:t})}catch(e){r.broadcast("payment-error",{errorCode:110,error:e})}};try{n.begin()}catch(e){r.broadcast("payment-error",{errorCode:112,error:e,termId:t})}})),r.subscribe("abort-apple-pay-session",(function(){!function(){try{n.abort()}catch(e){o.error(e)}}()}))},__protected__:{applePayCanMakePaymentsWithActiveCard:function(){var e={then:function(e){return e(null)},catch:function(){}};return pn.applePayMerchantId&&o.__protected__.isApplePayAllowed()&&pn.applePayMerchantId?window.ApplePaySession.canMakePaymentsWithActiveCard(pn.applePayMerchantId):e}}}}();pn.container.register("applePayIntegrationService",{useValue:ii}),pn.applePayIntegrationService=pn.container.resolve("applePayIntegrationService");var ai=function(){var e,n,t=pn.container.resolve("postmessage"),r=pn.container.resolve("util"),o=pn.container.resolve("ajax"),i="datatrans-applepay-button",a=!1,s=null,c=null,u=!1,l=function(n){e=n.sender,v().then(g).then(h)},d=function(n){t.send("datatrans-applepay-service-error",n,e)},p=function(e){n=e.params,v().then(g).then(f).catch((function(){d({eventName:"init-error",message:"Apple Pay button init error"})}))},f=function(){PaymentButton.init(n.applePayConfig)},m=function(){var e=document.getElementById(i);null!==e&&null!==e.firstElementChild?e.firstElementChild.click():d({eventName:"system-error",message:"Could not process with Apple Pay. Please, try again."})},v=function(){return null!==c||(c=new Promise((function(e){o.request({url:tp.getApiEndpoint()+"/anon/datatrans/applepay/config",data:{aid:tp.aid},dataType:"jsonp",jsonpCallback:"jsonpCallback",success:function(n){var t=n.config;e(t.url)}})}))),c},g=function(e){if(null!==s)return s;var n="datatrans-apple-pay";return document.getElementById(n)?void 0:s=new Promise((function(t){var r=document.createElement("script");r.addEventListener("load",(function(){return t(null)})),r.src=e,r.id=n,document.body.appendChild(r)}))},h=function(){u||(PaymentButton.on("init",y),PaymentButton.on("create",w),PaymentButton.on("token",_),PaymentButton.on("abort",(function(){d({eventName:"abort",message:null})})),PaymentButton.on("unsupported",(function(){d({eventName:"unsupported",message:"No payment method is supported"})})),PaymentButton.on("error",(function(e){e&&(r.error("datatransApplePayIntegrationService. apple pay button error: "+e),d({eventName:"error",message:"Could not process with Apple Pay. Please, try again."}))})),u=!0)},y=function(){var e=b();PaymentButton.create(e,n.paymentConfig).catch((function(){d({eventName:"create-error",message:"Apple Pay button create error"})}))},w=function(){r.log("datatransApplePayIntegrationService paymentButtonOnCreate"),t.send("datatrans-applepay-service-ready",null,e)},_=function(n){r.log("datatransApplePayIntegrationService paymentButtonOnToken"),t.send("datatrans-applepay-service-token",n.token.details.token,e)},b=function(){var e=document.getElementById(i);return null===e&&((e=document.createElement("div")).setAttribute("id",i),e.style.display="none",document.body.appendChild(e)),e.innerHTML="",e};return{name:"datatransApplePayIntegrationService",initialize:function(){!r.__protected__.isApplePayAllowed()&&a||(a=!0,t.subscribe("datatrans-applepay-loaded",l),t.subscribe("datatrans-applepay-checkout-initiate-purchase",p),t.subscribe("datatrans-applepay-make-purchase",m))}}}();pn.container.register("datatransApplePayIntegrationService",{useValue:ai}),pn.datatransApplePayIntegrationService=pn.container.resolve("datatransApplePayIntegrationService");var si=function(){var e,n=pn.container.resolve("postmessage"),t=pn.container.resolve("util"),r=null,o=null,i=!1,a="";n.subscribe("stripe-applepay-initialized",(function(){s()})),n.subscribe("stripe-applepay-initiate-purchase",(function(e){s().then((function(){var n=e.params.apiKey,t=e.params.accountId;null===r&&(r=t?window.Stripe(n,{stripeAccount:t}):window.Stripe(n));var o=e.params.paymentRequestPayload;return r.paymentRequest(o)})).then((function(e){return o=e,e.canMakePayment()})).then((function(e){i=e&&e.applePay,n.broadcast("stripe-applepay-initiate-purchase-complete",{canMakePayment:i}),i&&(o.on("cancel",(function(){n.broadcast("stripe-applepay-start-purchase-complete"+a,{status:"fail"})})),o.on("paymentmethod",(function(e){var t=e.paymentMethod.billing_details.address,r={countryCode:t.country,zipCode:t.postal_code,billingZipCode:t.postal_code},o=e.paymentMethod.id;n.broadcast("stripe-applepay-start-purchase-complete"+a,{status:"success",paymentMethodId:o,payerEmail:e.payerEmail,billingAddress:r}),e.complete("success")})))})).catch((function(e){t.error(e),n.broadcast("stripe-applepay-initiate-purchase-complete",{canMakePayment:!1})}))})),n.subscribe("stripe-applepay-start-purchase",(function(e){a=e.params.termId||"";var n=e.params.paymentRequestPayload;o.update(n),o.show()})),n.subscribe("stripe-applepay-abort-request",(function(){o&&o.abort(),n.broadcast("stripe-applepay-reopen-request")}));var s=function(){if(null!=e)return e;if(!document.getElementById("stripe.js")){var n=document.createElement("script");return n.src="https://js.stripe.com/v3/",n.id="stripe.js",document.body.appendChild(n),e=new Promise((function(e){n.onload=function(){e(null)}}))}};return{name:"stripeApplePayIntegrationService"}}();pn.container.register("stripeApplePayIntegrationService",{useValue:si}),pn.stripeApplePayIntegrationService=pn.container.resolve("stripeApplePayIntegrationService");var ci=function(){var e=pn.container.resolve("postmessage"),n=pn.container.resolve("util");e.subscribe("obi-handle-3ds-challenge",(function(e){var r=e.params;if(window.obick)t(r);else{if(-1===["https://jsl.qat.obi.aol.com/obipmservice/obick.umd.js","https://jsl.prod.obi.aol.com/obipmservice/obick.umd.js"].indexOf(r.obickUrl))return void n.error("Untrusted obickUrl detected: "+r.obickUrl);var o=document.createElement("script");o.src=r.obickUrl,o.id="obick.js",document.body.appendChild(o),o.onload=function(){n.log("".concat(o.id," onload")),t(r)}}}));var t=function(t){if(t.stepUpUrl&&0!==t.stepUpUrl.indexOf("http"))n.error("There is no link in params.stepUpUrl for OBI");else{var r={stepUpUrl:t.stepUpUrl,jwt:t.jwt,transactionId:t.transactionId,zIndex:t.zIndex};window.obick.handle3dsChallenge(r).then((function(t){n.debug(t),e.broadcast("obi-3ds-challenge-complete",{threeDSTransactionId:t.threeDSTransactionId,challengeStatus:t.challengeStatus})})).catch((function(t){n.error(t),e.broadcast("obi-3ds-challenge-complete",{error:"challenge-error",payload:t})}))}};return{name:"obi3DSChallenge"}}();pn.container.register("obi3DSChallenge",{useValue:ci}),pn.obi3DSChallenge=pn.container.resolve("obi3DSChallenge");var ui=function(){var e=pn.container.resolve("jqUtils"),n=pn.container.resolve("util"),t=pn.container.resolve("api"),r=pn.container.resolve("user"),o=pn.container.resolve("pianoId"),i={displayMode:"inline",containerSelector:"body",loginSuccess:d},a="reader_id",s=function(){return"/"+pn.aid+"/execution/amp"},c=function(){window.location.href=n.getQueryParamByName("return")+"#success=true"};var u=function(e){return/^\w+$/i.test(e)},l=function(e){var r={};if(r.reader_id=n.getQueryParamByName(a),r.reader_id){var o=pn.getExperienceEndpoint(!1);t.callApi(s()+"/logout",r,e,o,!1,!0)}else n.log("reader_id cannot be empty")};function d(e,r){var o=e||{};if(o.reader_id||(o.reader_id=n.getQueryParamByName(a)),o.reader_id){var i=pn.getExperienceEndpoint(!1);t.callApi(s()+"/login",o,r,i,!1,!0)}else n.log("reader_id cannot be empty")}return{name:"amp",showLogin:function(t){t=t||{};var a=r.getProvider();if(a.getName()===o.getName()){var s;s=t.loginSuccess&&e.isFunction(t.loginSuccess)?t.loginSuccess:c;var u=function(){d({},s)},l=Object.assign({},i,t);r.isUserValid()?u():(l.loginSuccess=u,o.show(l))}else n.log("Current user provider"+a.name+" is not allowed for amp")},logout:function(n){n=e.isFunction(n)?n:c,r.getProvider().getName()===o.getName()?o.logout((function(){l(n)})):l(n)},login:function(t){var i=r.getProvider().getName();i===o.getName()&&(t=t?e.deepExtend({},t,{userProvider:i}):{userProvider:i});var a={user_transient:!0,user_provider:"publisher_user"};if(t&&t.readerId&&(a.reader_id=t.readerId),t&&t.userToken&&(a.user_token=t.userToken),t&&t.userProvider&&(a.user_provider=t.userProvider,a.user_transient=!1),!function(t){if(t&&t.userState&&e.isPlainObject(t.userState)){var r=Object.keys(t.userState);if(r.filter(u).length!==r.length)return n.error("user_state accept only contain letters, numbers and underscore"),!1}return!0}(t))return!1;t&&t.userState&&(a.user_state=JSON.stringify(t.userState));d(a,(function(n){0===n.code?t.loginSuccess&&e.isFunction(t.loginSuccess)&&t.loginSuccess():t.loginFail&&e.isFunction(t.loginFail)&&t.loginFail()}))}}}();pn.container.register("amp",{useValue:ui}),pn.amp=pn.container.resolve("amp");var li=function(){var e,n=pn.container.resolve("postmessage"),t=[{resourceRegExp:new RegExp("/checkout/offer/show"),label:"showOffer"},{resourceRegExp:new RegExp("tinypass.min.js$"),label:"tinypassMinJS"},{resourceRegExp:new RegExp("/xbuilder/experience/execute"),label:"experienceExecute"}],r=!1,o=[];function i(e){e.forEach((function(e){!function(e){!function(e){return t.some((function(n){return e.name.match(n.resourceRegExp)}))}(e)||function(e){if(!a())return void o.push(e);o.push(e),s()}(e)}(e)}))}function a(){return r&&e}function s(){!a()||(o.forEach((function(t){n.send("EVENT_TP_PERFORMANCE_DATA",{entry:t},e)})),o=[])}return function(){if(window.performance&&window.PerformanceObserver&&"function"==typeof performance.getEntries){var t=window.PerformanceObserver.prototype.observe;window.PerformanceObserver.prototype.observe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{t.apply(this,e)}catch(e){}},n.subscribe("EVENT_LOGGER_READY",(function(n){e=n.sender,r=!0,s()})),i(performance.getEntries()),new PerformanceObserver((function(e){i(e.getEntries())})).observe({entryTypes:["measure","resource"]})}}(),{name:"performanceMetrics"}}();pn.container.register("performanceMetrics",{useValue:li}),pn.performanceMetrics=pn.container.resolve("performanceMetrics");var di=function(){var e=pn.container.resolve("api"),n=pn.container.resolve("pianoId");return{name:"doubleOptIn",check:function(){!pn.user.isUserValid()||new Promise((function(n){e.callApi("/email/confirmation/check",{},(function(e){n(e)}))})).then((function(e){e&&!1===e.data&&n.showEmailConfirmationRequired()}))}}}();pn.container.register("doubleOptIn",{useValue:di}),pn.doubleOptIn=pn.container.resolve("doubleOptIn");var pi=function(){var e=pn.container.resolve("api"),n=pn.container.resolve("postmessage"),t=pn.container.resolve("util"),r=t.debounce((function(){new Promise((function(n,t){var r={aid:pn.aid};e.callApi(o,r,(function(e){e&&e.data&&n(e.data),t(e.message)}))})).then(i,a)}),1500),o="/externalVerification/synchronizeSubscriptions",i=function(e){n.broadcast("NEWSCYCLE_HAS_BEEN_SYNCHRONIZED_SUCCESS",{data:e})},a=function(e){t.error("newscycle module: sync request failed with error: "+e)};return{name:"newscycle",syncSubscriptions:r}}();pn.container.register("newscycle",{useValue:pi}),pn.newscycle=pn.container.resolve("newscycle");var fi=function(){var e=pn.container.resolve("postmessage"),n={enabled:!1,captcha3SiteKey:"",aid:""};function t(){window.grecaptcha.ready(r)}var r=function(){var e=document.createElement("div");e.id="tp-recaptcha",document.body.appendChild(e),window.grecaptcha.render("tp-recaptcha",{sitekey:n.captcha3SiteKey,size:"invisible","error-callback":function(){e.style.display="none"}})},o=function(){window.onCaptchaV3Load=t;var e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?onload=onCaptchaV3Load&render=explicit",e.type="text/javascript",e.async=!0,e.defer=!0,document.head.appendChild(e)},i=function(){e.subscribe("set-captcha-v3-config",(function(e){!function(e){e&&e.enabled&&(n=e,o())}(e.params.config)})),e.subscribe("get-captcha-v3-config",(function(){e.broadcast("get-captcha-v3-config-value",{config:n})}))};e.subscribe("get-captcha-v3-token",(function(e){window.grecaptcha.ready((function(){return a(e.params.action)}))}));var a=function(n){window.grecaptcha.execute({action:n}).then((function(n){e.broadcast("captcha-v3-token",{token:n})})).catch((function(){e.broadcast("captcha-v3-token",{token:""})}))};return{name:"captchaV3",addCaptchaV3:function(){i()}}}();pn.container.register("captchaV3",{useValue:fi}),pn.captchaV3=pn.container.resolve("captchaV3");pn.container.register("tinypassErrorHandler",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("postmessage"),t=e.resolve("api"),r=e.resolve("util"),o=e.resolve("analytics"),i=e.resolve("versionService"),a="EVENT_TP_ERROR_HANDLER",s="sdk",c=[],u=!0,l=function(e){if(h(e)&&!v(c,e)){e.tags||(e.tags=["unknown"]),e.aid=pn.aid,e.v=i.getTinypassVersion();var n={details:e};c.push(n)}};var d=function(e){var n=e.params;Array.isArray(n)&&n.forEach((function(e){e.tags.push(pn.aid),l(e)}))};function p(e){var n,t;if(e.message.toLowerCase().indexOf("script error")>-1)l({message:"Probably that is Piano error.",url:window.location.href,tags:[s]});else{var r=null==e?void 0:e.error;if(g(null==r?void 0:r.stack))return!1;l({stack:null!==(n=null==r?void 0:r.stack)&&void 0!==n?n:"n/a",message:null!==(t=null==r?void 0:r.message)&&void 0!==t?t:"n/a",userAgent:navigator.userAgent,tags:[s]})}return!1}var f=function(){setInterval((function(){m(),u=!1}),15e3)},m=function(){var e=c.filter((function(e){return!e.send}));if(0!==e.length){var n=e.map((function(e){return e.details})),r={type:"console-error-message",srcType:"ts",log_message:JSON.stringify(n)};o.log.event({eventType:go.LOG_BEACON_REQUEST,payload:{url:t.getEndpoint()+"/anon/error/log",params:r}}),e.forEach((function(e){return e.send=!0}))}},v=function(e,n){var t=e.map((function(e){return JSON.stringify(e.details)})),r=JSON.stringify(n);return-1!==t.indexOf(r)},g=function(e){return-1===(null==e?void 0:e.indexOf("tinypass"))},h=function(e){var n=!!r.__protected__.getLocalStorageItem("tinypassErrorHandlerTestMode");return e.tags.indexOf("wgt_err")>=0||n||0===y(0,1e3)},y=function(e,n){var t=e-.5+Math.random()*(n-e+1);return Math.round(t)},w=function(e,n){return void 0===e&&(e=[]),n?e.concat(n):e};return{name:"tinypassErrorHandler",addError:function(e,n){try{var t={place:n,tags:[s]};e instanceof Error?(t.stack=e.stack,t.message=e.message):t.stack=JSON.stringify(e),u&&(t.tags=w(t.tags,"initError")),l(t)}catch(e){}},initialize:function(){try{pn.isSandbox()||(n.subscribe(a,d),null===(e=window.addEventListener)||void 0===e||e.call(window,"error",p),f())}catch(e){console.warn("Cannot start watching errors",e)}var e}}}()}),pn.tinypassErrorHandler=pn.container.resolve("tinypassErrorHandler");pn.container.register("main",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("api"),t=e.resolve("cookie"),r=e.resolve("jqUtils"),o=e.resolve("util"),i=e.resolve("logging"),a=e.resolve("fingerprint"),s=e.resolve("user"),c=e.resolve("sha1"),u=e.resolve("activetimer"),l=e.resolve("scrollDepth"),d=e.resolve("doubleClickForPublisher"),f=e.resolve("offer"),m=e.resolve("viewportExit"),v=e.resolve("idle"),g=e.resolve("experience"),h=e.resolve("pianoId"),y=e.resolve("pianoEsp"),w=e.resolve("applePayIntegrationService"),_=e.resolve("datatransApplePayIntegrationService"),b=e.resolve("cxense"),k=(e.resolve("tinypassErrorHandler"),e.resolve("captchaV3")),C=pn.container.resolve("postmessage"),I=e.resolve("composerControlPolicy"),S=e.resolve("analytics"),E=e.resolve("consent"),P="exrs",x={minutes:120},T=null,A="voucher_code",M="__pvi",O=!1,N=!1,R={},L=null,D={APPLE_PAY_BT:25,APPLE_PAY_SS:38,APPLE_PAY_STRIPE:41,APPLE_PAY_PW:42,DATATRANS_APPLE_PAY:61},U=new Set(Object.values(D)),j=void 0,V=[],F=!1,B=function(){if("iP"===navigator.platform.substr(0,2)){var e=/constructor/i.test(window.HTMLElement),n=window.navigator,t=n.userAgent,r=!!window.indexedDB;if((-1===t.indexOf("Safari")||-1===t.indexOf("Version")||n.standalone)&&(r||!e)&&window.statusbar.visible&&(window.webkit&&window.webkit.messageHandlers||!e||r))return!0}return!1}();var q,z,G,H=function(){return o.parseJSON(o.__protected__.getCookie(M),!0)||{}},W=function(){return o.getCurrentDomainFromCookie(M,!0)},J=function(e,n){var t=R;R={};var r={};for(var o in t)if(t.hasOwnProperty(o))for(var i in r[o]=r[o]||[],t[o])t[o].hasOwnProperty(i)&&r[o].push(t[o][i]);_e(r,e,n)},Q=function(){return g.execute.invokeCount>0&&Ar.refresh(),b.__protected__.clearWidgets(),Ar.get("pageViewId")};function X(){function e(e,n,t){t=t||"0";var r=String(e);return r.length>=n?r:new Array(n-r.length+1).join(t)+r}if(Ce())return Ie();var n=o.randomString(16),t=c.hash([a.getFingerprint(),window.location.href].join("")),r=new Date;return[[e(r.getFullYear(),4),e(r.getMonth()+1,2),e(r.getDate(),2),e(r.getHours(),2),e(r.getMinutes(),2),e(r.getSeconds(),2),e(r.getMilliseconds(),3)].join("-"),n,t].join("-")}var Y=function(e){var n={path:"/",expires:1,domain:z.currentDomain};return e&&(n.domain=e),n},$=function(e,n){e.domain=n.domain,e.time=(new Date).getTime(),o.__protected__.setCookieConsent("vx",M,o.toJSON(e,!0),n)},K=function(e){var n=(new Date).getTime(),t=6e4*o.getBrowserTimezoneOffset(),r=o.getAppTimezoneOffset(),i=new Date(e.time).setHours(0,0,0,0)+864e5-t-r;return e.time+18e5<n||n>=i},Z=function(){if(o.__protected__.cameFromFbSubscriptions()||!z.currentDomain)return!1;var e=o.getReferrer();if(L&&L===e)return!1;var n=o.getHostname(e),t=new RegExp(z.currentDomain.replace(/\./g,"\\.").replace(/^\\./,"\\.?")+"$").test(n);return Boolean(n)&&!t},ee=function(){var e=H();(!e||!e.id||!e.time||K(e)||Z())&&(e.id="v-"+X()),function(e){var n=Y();e.domain||z.currentDomain?$(e,n):o.waitCall("domainIsReceived",(function(t){ue(t),n.domain=t,$(e,n)}))}(e),z.visit=e},ne=function(e,n,t){var i,s,c,u="manual";if(void 0===n)n=window.location.href;else{if("object"!=_typeof(n))throw new Error("First parameter to track page must be a URL or an object");var l=n;if(void 0===l.url)throw new Error("Must supply url property");n=l.url,void 0!==l.tags&&(t=l.tags),void 0!==l.submitType&&(u=l.submitType)}t||(t=pn.tags),pn.customPageUrl&&(e.custom_page_url=o.prepareUrlParameter(pn.customPageUrl)),void 0!==t?"[object Array]"!==Object.prototype.toString.call(t)&&"[object String]"!==Object.prototype.toString.call(t)?(o.log("Tags must be an array or a comma-separated string, ignoring supplied tags"),t=""):t instanceof Array&&(t=t.join(",")):t="",G.track(),e.page_session_id=G.pageSessionId,e.track_count=G.trackCount,ye(e),pn.contentCreated?c=pn.contentCreated:pn.contentCreatedSelector&&r.queryEl(pn.contentCreatedSelector)&&(c=null===(i=r.queryEl(pn.contentCreatedSelector))||void 0===i?void 0:i.innerHTML),c&&(pn.contentCreated||(pn.contentCreated=c),e.content_created=c),"boolean"==typeof pn.contentIsNative&&(e.content_is_native=pn.contentIsNative),pn.zone&&(e.zone=pn.zone),pn.itemId&&(e.item_id=pn.itemId);var d=pn.contentSection||ce("section");d&&(e.content_section=d);var p=pn.contentAuthor||ce("author");p&&(e.content_author=p);var f=pn.contentId||ce("id");f&&(e.content_id=f);var m,v=o.__protected__.getCookie("sailthru_hid");v&&(e.sailthru_hid=v),L&&L===o.getReferrer()?m="":(m=o.getReferrer(),L=m),e.referer=o.prepareUrlParameter(m),t&&(e.tags=t),e.url=o.prepareUrlParameter(n),e.fingerprint=a.getFingerprint(),e.adblocker=o.getAdblockStatus(),(e.adblocker===o.ADBLOCKER_STATUS.ENABLED_AFTER_DISABLED||e.adblocker===o.ADBLOCKER_STATUS.ENABLED)&&(pn.setCustomParam("_abr",o.getAdblockerStatusReason(),"user",!0),pn.setCustomParam("_absh",o.getAdblockerHistoryCookieInfo().cookieValue+"","user",!0)),e.timezone_offset=o.getBrowserTimezoneOffset(),e.submit_type=u;var g=se();e.visit_id=g,e.new_visit=ie(g);var h=function(){return Ar.get("content")||{}};return e.keywords=(null===(s=h().keywords)||void 0===s?void 0:s.join(","))||"",e.title=h().title||"",e.description=h().description||"",e.content_type=h().type||"",["keywords","title","description","content_type"].forEach((function(n){e[n]=e[n].substr(0,8192)})),e.custom_variables=JSON.stringify(pn.customVariables),re(e),E.__protected__.addConsentsToParams(e),e},te=function(){return ae(),{}},re=function(e){var n={};return pn.customParams&&(n=r.deepExtend({},pn.customParams)),r.isEmptyObject(n)||(e.custom_params=JSON.stringify(n)),e},oe=function(){return G.id},ie=function(e){var n=z.lastTrackedVisitId!==e;return z.lastTrackedVisitId=e,n},ae=function(){z.checkForRefresh=!0},se=function(){return z.checkForRefresh&&(ee(),z.checkForRefresh=!1),z.visit.id},ce=function(e){return(document.head.querySelector("meta[name="+e+"]")||{}).content},ue=function(e){z.currentDomain=e},le=function(){return!(pn.endpoint&&pn.endpoint.match(/sandbox/))},de=function(e,t,r,a){pn.aid&&0!==pn.aid.length?!le()||o.waitCall("refreshAccessTokenList",(function(){o.waitCall("offerCreate",(function(){i.setTime("track"),o.startCall("pageTrack"),n.callApi(e,t,(function(e){o.doneCall("pageTrack"),r&&r(e)}),pn.getExperienceEndpoint(!1)+"/api/v3",a)}))})):o.log("Must supply a valid tp.aid before calling tp.init()")},pe=function(){O&&G.trackCount>0&&(fe(),he())},fe=function(e){if(le()&&!I.denyAll)try{te(),m.isInitialized()&&m.resetSumOfCodesDirectionToDefault(),ge()}catch(e){o.error("main: error on tracking page unload event: ",e)}},me=function(){N||(N=!0,fe(!0))},ve=function(){O=!0},ge=function(){O=!1},he=function(){u.resetRecordedTime()},ye=function(e){e&&(e.pageview_id=oe())},we=function(e,n){if(le()&&!I.denyAll)try{pe();var t=ne({},e,n);de("/page/track",t),ve()}catch(e){o.error("main: error on page tracking event: ",e)}},_e=function(e,n,t){},be=function(){var e=o.getQueryParamByName(A);e&&f.startRedeemVoucher({voucherCode:e})},ke=function(){return T||(T=new Promise((function(e){if(null!==o.__protected__.getLocalStorageItem(P)&&e({has_active_apple_pay_card:o.__protected__.getLocalStorageItem(P)}),!pn.applePayMerchantId)return e({has_active_apple_pay_card:null}),T;Ee((function(e){g.registerCallback("experienceFlow",(function(){j=!0,e(!0)}))})).then((function(n){var t=function(n){e({has_active_apple_pay_card:n}),o.__protected__.setLocalStorageItem("vx",P,n,x)};n?w.__protected__.applePayCanMakePaymentsWithActiveCard().then(t):t(null)}))})))};function Ce(){return b.__protected__.isActivated()}var Ie=function(){return o.__protected__.randomStringCxCompatible()};function Se(e){return function(n){var t=n.params;void 0===j&&(j=function(e){if(!Array.isArray(e)||!e.length)return!1;for(var n=0,t=e;n<t.length;n++){var r=t[n];if(U.has(r))return!0}return!1}(t)),V=t||[],e(j)}}function Ee(e){return void 0!==j?Promise.resolve(j):B?(j=!1,Promise.resolve(!1)):new Promise((function(n){e(n)}))}var Pe=function(){Ee((function(e){C.subscribe("ACTIVE_PAYMENT_METHODS_IDS_INITIALIZED",Se(e)),C.subscribe("MY_ACCOUNT_ACTIVE_PAYMENT_METHODS_IDS_INITIALIZED",Se(e))})).then((function(e){!e||(!F&&r.isFunction(w.initialize)&&(F=!0,w.initialize()),xe(V))}))},xe=function(e){var n=-1!==e.indexOf(D.DATATRANS_APPLE_PAY);r.isFunction(_.initialize)&&n&&_.initialize()};return p(p({name:"main",fetchVisitId:se},jr({trackPageUnloadIfNecessary:pe,trackPageUnload:fe,unregisterTrackUnload:ge,isRegisteredTrackUnload:function(){return O},registerTrackUnload:ve})),{externalResourcesDelay:ke,pageTrack:we,trackPage:function(e,n){return we(e,n)},buildPageTrackParams:ne,fetchPageViewId:oe,resetTimer:he,resetAds:function(){d.resetAds()},trackAd:function(e,n,t){R[e]||(R[e]={}),R[e][n]=t,q()},init:function(){if(Ar.isReady||(o.log("DataLayer should be initialized while calling tp.init()"),o.log("DataLayer was initialized by default configs"),Ar.init()),pn.aid&&0!==pn.aid.length){q=o.debounce(J,3e3),z={currentDomain:W(),lastTrackedVisitId:H().id,visit:{},checkForRefresh:!1},G={id:Q(),pageSessionId:"s-"+X(),trackCount:0,tracked:!1,track:function(){G.tracked?G.id=Q():G.tracked=!0,G.trackCount++}},Ce()&&pn.cxenseSiteId&&Ar.set("siteId",pn.cxenseSiteId),ee(),pn.isMockMode||(r.isFunction(d.initialize)&&d.initialize(),r.isFunction(u.initialize)&&u.initialize(),r.isFunction(l.initialize)&&l.initialize()),r.isFunction(v.initialize)&&v.initialize(),Pe(),r.isFunction(y.__protected__.init)&&y.__protected__.init().catch((function(){})),r.isFunction(s.refreshAccessToken)&&s.refreshAccessToken(),ke();var e=s.getProvider();e.getName()===h.getName()&&e.__protected__.extendUserToken(),k.addCaptchaV3();var n="cxTrackingId",t=o.getQueryParamByName(n);t&&(o.removeQueryParamByName(n),S.log.event({eventType:go.LOG_AUTO_MICRO_CONVERSION,payload:{trackingId:t,eventGroupId:"click",eventType:vo.EXTERNAL_LINK,customParams:{href:location.href,source:"CX"}}}))}else o.log("Must supply a valid tp.aid before calling tp.init()")},checkToRunWidgetImmediately:function(){var e;be(),!(e=o.getQueryParamByName("verification_code"))||"pianoId"!==s.getProvider().name||o.waitCall("offerCreate",(function(){h.isUserValid()?h.__protected__.showEmailConfirmation({verification_code:e}):h.show({verification_code:e})})),h.checkAndShowEmailIsNotConfirmed(),r.isFunction(f.checkThreeDSRedirect)&&f.checkThreeDSRedirect()},trackAds:_e,appHasApplePay:function(){return j},__private__:p(p({VISIT_ID_COOKIE:M,VOUCHER_QUERY:A,collectedAds:R,unloadRegistered:O,unloadTriggered:N,getPageView:function(){return G},getVisitContainer:function(){return z},track:de,checkVoucher:be,setPageViewId:ye,currentEnvironmentSupportsPageTrack:le,invalidateLastVisit:function(){var e=Y();t.remove(M,e)},getCurrentDomain:W,loadLastVisit:H,setVisitCurrentDomain:ue,saveVisitCookie:$,getVisitCookieOptions:Y,isTimeExpired:K,refreshVisit:ee,generatePageViewId:X,trackCollectedAds:J},jr({buildPageUnloadParams:te,unloadHandler:function(){O&&me(),J(!0,"beacon_request"),g.__protected__.sendStatisticsExecutedNodes("unload")},unloadAction:me})),{buildPageCustomParams:re,hasExternalReferrer:Z})})}()}),pn.main=pn.container.resolve("main");var mi=function(){var e=null,n=function(n){e=n&&p(p({},e),n),Ar.isReady&&n&&(Ar.set("content",e),e=null)};return{set:function(e,t){var r;return n(((r={})[e]=t,r))},get:function(n){var t;return Ar.isReady?null===(t=Ar.get("content"))||void 0===t?void 0:t[n]:null==e?void 0:e[n]},init:function(){return n(e)}}}(),vi={predefineValues:[]};window.tp&&window.tp.length&&(vi.predefineValues=b([],window.tp||[],!0)),pn.tpPredefinedOptions=vi,pn.container.register("tpPredefinedOptions",{useValue:vi});var gi=function(){function e(e,n,t,r,o,i,a,s){this.tpPredefinedOptions=e,this.css=n,this.tinypassErrorHandler=t,this.gaService=r,this.ga4Service=o,this.gaCollectingService=i,this.utilService=a,this.consent=s,this.isDataLayerEnabled=!0,this.fullTPVersion=!1,this.isInitialized=!1,this.aid="",this.isSensitiveDataProtectionEnabled=!1,this.affiliateTokenName="affiliateToken",this.cxCdnUrl="https://cdn.cxense.com",this.c1XLoadCce=!0,this.c1XIntegrationVersion="v2",this.cxenseLibAwaitingTimeout=0,this.cxenseLibAwaitingRetryCount=0,this.trackPages=!0,this.debug=!1,this.userRef="",this.usePianoIdLiteUserProvider=!1,this.useTinypassAccounts=!1,this.useCondeUserProvider=!1,this.useGigyaUserProvider=!1,this.usePianoIdUserProvider=!1,this.useAidSpecifiedCookies=!1,this.sandbox=!1,this.zIndexes={backdrop:3e5,modal:300050,close:300100},this.requestUserAuthForLinkedTerm=!0,this.customPreChecks=[],this.customParams={},this.externalLibraries=[],this.externalLibrariesCallbacks=[],this.customVariables={},this.locale="",this.trackPageView=!0,this.redirectToFbTimeout=3,this.isDoubleOptInCheckOnAccessCheckEnabled=!1,this.isMockMode=!1,this.inappBrowserReturn=!1,this.events=[],this.appList=[],this.cacheableShowTemplate=!0,this.initCallbacks=[],this.mainModuleInited=!1,this.restCallbacks=[],this.initTries=0,this.listOfAddedHandlers=[],this.callbacks=[],n.loadOfferCss()}return Object.defineProperty(e.prototype,"tags",{get:function(){var e;return null===(e=mi.get("tags"))||void 0===e?void 0:e.join(",")},set:function(e){var n;n=Array.isArray(e)?e:"string"==typeof e?[e]:null,mi.set("tags",n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentIsNative",{get:function(){return mi.get("isNative")},set:function(e){mi.set("isNative",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentId",{get:function(){return mi.get("id")},set:function(e){mi.set("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentCreated",{get:function(){var e;return(null===(e=mi.get("createdAt"))||void 0===e?void 0:e.toString())||""},set:function(e){mi.set("createdAt",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentAuthor",{get:function(){var e;return(null===(e=mi.get("authors"))||void 0===e?void 0:e.join(","))||""},set:function(e){mi.set("authors",[e])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentSection",{get:function(){return mi.get("section")},set:function(e){mi.set("section",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zone",{get:function(){return mi.get("zone")},set:function(e){mi.set("zone",e)},enumerable:!1,configurable:!0}),e.prototype.initTp=function(){var e=this;try{var n=this.tpPredefinedOptions.predefineValues;if(this.tpPredefinedOptions.predefineValues=[],n.forEach((function(n){"function"==typeof n[1]?"init"===n[0]?e.initCallbacks.push(n[1]):e.restCallbacks.push(n):"init"===n[1]&&"function"==typeof n[2]?e.initCallbacks.push(n[2]):e.push(n)})),!this.aid&&this.initTries<10)return this.initTries++,void setTimeout((function(){return e.initTp()}),50);if(!this.aid)return;for(this.tinypassErrorHandler.initialize();this.restCallbacks.length;)try{var t=this.restCallbacks.shift();this.push(t)}catch(e){console.error(e),pn.tinypassErrorHandler.addError(e)}this._init(),this.externalLibraries.length&&this.realizeExternalLibraries(),this.isInitialized=!0,window.___tp=function(){}}catch(e){pn.tinypassErrorHandler.addError(e,"initTP"),console.error("init PN process error",e)}},e.prototype.realizeExternalLibraries=function(){var e=this,n=[];this.externalLibraries.forEach((function(t){var r=e.requireJsFile(t);n.push(r)})),Promise.all(n).then((function(){if(e.externalLibraries=[],e.externalLibrariesCallbacks)for(var n=0;n<e.externalLibrariesCallbacks.length;++n)yi.externalLibrariesCallbacks[n]();yi.externalLibrariesCallbacks=[]}))},e.prototype.push=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t,r,o;for(t=0;t<e.length;t++)if("string"==typeof(r=(o=e[t]).shift())||r instanceof String){if(!this[r])return void console.error("Undefined method "+r);this[r].apply(this,o)}else r.apply(this,o)},e.prototype.init=function(e){this.isInitialized?(this.mainModuleInited||(this.mainModuleInited=!0,this.initMainModuleAfterInitCbk()),e&&e()):(e&&this.tpPredefinedOptions.predefineValues.push(["init",e]),this.initTp())},e.prototype._init=function(){var e={};if((this.cookieDomain||this.cookiePath)&&(e.cookieDefault={domain:this.cookieDomain,path:this.cookiePath}),Ar.init(e),mi.init(),this.cxenseSiteId&&Ar.set("siteId",this.cxenseSiteId),pn.consent.__protected__.init(),pn.util&&pn.util.hasQueryParamByName&&pn.util.hasQueryParamByName("xpdebug")&&pn.setDebug(!0),pn.util.setTpccCookies(),pn.util.isSafariOrIOsUiWebView()&&!pn.user.isUserValid()&&pn.util.getQueryParamByName("userToken")){var n=pn.util.getQueryParamByName("cookieDomain"),t=pn.util.getQueryParamByName("userToken"),r=pn.util.getQueryParamByName("tokenListValue");pn.util.setAccessTokenListCookie({cookie_domain:n,value:r},t),pn.util.removeQueryParamByName("userToken"),pn.util.removeQueryParamByName("cookieDomain"),pn.util.removeQueryParamByName("tokenListValue")}if(this.mainModuleInited||(this.mainModuleInited=!0,this.initMainModuleAfterInitCbk()),pn.itp.init(),!this.aid){var o=new Error("Incorrect aid integration: ".concat(yi.aid," url: ").concat(window.location.href));this.tinypassErrorHandler.addError(o)}pn.logging.setTime("completeInit")},e.prototype.initMainModuleAfterInitCbk=function(){for(pn.user.providerInit(),this.appList.indexOf(this.aid)<0&&(this.appList.push(this.aid),pn.main.init());this.initCallbacks.length;)try{this.initCallbacks.shift()()}catch(e){console.error(e),pn.tinypassErrorHandler.addError(e)}if(pn.main.checkToRunWidgetImmediately(),this.events){for(var e=0;e<this.events.length;e++)this.events[e]();this.events=[]}},e.prototype.requireJsFile=function(e){return new Promise((function(n,t){var r=document.createElement("script");r.onload=n,r.onerror=n,r.type="text/javascript",r.charset="utf-8",r.async=!0,r.src=e,document.getElementsByTagName("head")[0].appendChild(r)}))},e.prototype.setAid=function(e){this.aid=e},e.prototype.enableSensitiveDataProtection=function(e){this.isSensitiveDataProtectionEnabled=e},e.prototype.reload=function(){location.href=pn.util.removeVoucherCodeFromUrl(location.href)},e.prototype.removeSharedAccountCodeFromUrl=function(){location.href=pn.util.removeSharedAccountCodeFromUrl(location.href)},e.prototype.setGAClientId=function(e){this.gaClientId=e,this.gaService.recreateWithClientId(e)},e.prototype.getGAClientId=function(){return this.gaClientId},e.prototype.enableGACrossDomainLinking=function(e){var n=this;this.gaCrossDomainLinking=!0;var t=Date.now();!function r(){var o=window.ga;if(o&&"function"==typeof o)try{o((function(t){if(void 0!==t&&void 0===e)n.setGAClientId(t.get("clientId"));else if(void 0!==e)for(var r=o.getAll(),i=0;i<r.length;i++){var a=r[i];if(a.get("trackingId")===e){n.setGAClientId(a.get("clientId"));break}}}))}catch(e){}else Date.now()-t<6e4&&setTimeout(r,500)}()},e.prototype.setExcludedGAEvents=function(e){this.gaCollectingService.setExcludedEvents(e)},e.prototype.setGA4Config=function(e){this.ga4Service.setGa4Config(e)},e.prototype.setTags=function(e){this.tags=e instanceof Array?e.join(","):e},e.prototype.setCookieDomain=function(e){"."!==e[0]&&(e="."+e),this.cookieDomain=e},e.prototype.setCookiePath=function(e){this.cookiePath=e},e.prototype.setDontScrollTopModal=function(e){this.dontScrollTopModal=e},e.prototype.setUseExperience=function(e){this.useExperience=e},e.prototype.setExperimentalIosModal=function(e){this.experimentalIosModal=e},e.prototype.setApplePayMerchantId=function(e){this.applePayMerchantId=e},e.prototype.setContentIsNative=function(e){this.contentIsNative=e},e.prototype.setComposerHost=function(e){this.composerHost=e},e.prototype.setEndpoint=function(e){this.endpoint=e},e.prototype.setAffiliateTokenName=function(e){this.affiliateTokenName=e},e.prototype.setEspEndpoint=function(e){this.espEndpoint=e},e.prototype.setCxCdnUrl=function(e){this.cxCdnUrl=e},e.prototype.setC1XLoadCce=function(e){this.c1XLoadCce=e},e.prototype.setC1XIntegrationVersion=function(e){this.c1XIntegrationVersion=e},e.prototype.setDataLayerEnabled=function(e){this.isDataLayerEnabled=e},e.prototype.setCxenseSiteId=function(e){this.cxenseSiteId=e,Ar.set("siteId",e)},e.prototype.setCxenseLibAwaitingTimeout=function(e){this.cxenseLibAwaitingTimeout=e},e.prototype.setCxenseLibAwaitingRetryCount=function(e){this.cxenseLibAwaitingRetryCount=e},e.prototype.setContentId=function(e){this.contentId=e},e.prototype.setTrackPages=function(e){this.trackPages=e},e.prototype.setDebug=function(e){this.debug=e},e.prototype.setUserRef=function(e){this.userRef=e},e.prototype.setUsePianoIdLiteUserProvider=function(e){this.usePianoIdLiteUserProvider=e},e.prototype.setExternalJWT=function(e){this.externalJWT=e},e.prototype.getExternalJWT=function(){return this.externalJWT},e.prototype.setUseTinypassAccounts=function(e){this.useTinypassAccounts=e},e.prototype.setUseCondeUserProvider=function(e){this.useCondeUserProvider=e},e.prototype.setUseGigyaUserProvider=function(e){this.useGigyaUserProvider=e},e.prototype.setUsePianoIdUserProvider=function(e){this.usePianoIdUserProvider=e},e.prototype.setPianoIdUrl=function(e){this.pianoIdUrl=e},e.prototype.setItemId=function(e){this.itemId=e},e.prototype.setUseAidSpecifiedCookies=function(e){this.useAidSpecifiedCookies=e},e.prototype.setSandbox=function(e){this.sandbox=e},e.prototype.setContentCreatedSelector=function(e){this.contentCreatedSelector=e},e.prototype.setContentCreated=function(e){this.contentCreated=e},e.prototype.setContentAuthor=function(e){this.contentAuthor=e},e.prototype.setContentSection=function(e){this.contentSection=e},e.prototype.setZone=function(e){this.zone=e||""},e.prototype.isNonProdEndpoint=function(){return"sandbox"===this.endpoint||/^https?:\/\/(.*sandbox.*|\d+\.dev)\.(tinypass\.com|piano\.io)/i.test(this.endpoint)},e.prototype.setZIndexes=function(e){this.zIndexes=e},e.prototype.setCustomPreCheck=function(e){this.customPreChecks.push(e)},e.prototype.setLinkTermSelected=function(e){this.linkedTermSelected=e},e.prototype.setLinkedTermSelected=function(e){this.linkedTermSelected=e},e.prototype.setRequestUserAuthForLinkedTerm=function(e){this.requestUserAuthForLinkedTerm=e},e.prototype.setCustomParam=function(e,n,t,r){var o=["content","user","request"];if(t||(t="content"),t=t.toLowerCase(),o.indexOf(t)<0)throw new Error("Undefined scope "+t+"\nAvailable scopes: "+o.join(", "));void 0===this.customParams[t]&&(this.customParams[t]={}),(void 0===this.customParams[t][e]||r)&&(this.customParams[t][e]=[]);for(var i=[].concat(n),a=0;a<i.length;a++){if("string"!=typeof i[a])throw new Error("setCustomParam accept only string values or array of strings");this.customParams[t][e].push(i[a])}},e.prototype.resetCustomParam=function(e){e||(e="content"),delete this.customParams[e]},e.prototype.addExternalLibrary=function(e,n){if("string"==typeof e)this.externalLibraries.push(e);else for(var t=0;t<e.length;++t)this.externalLibraries.push(e[t]);n&&this.externalLibrariesCallbacks.push(n),this.isInitialized&&this.realizeExternalLibraries()},e.prototype.setCustomVariable=function(e,n){this.customVariables[e]=n},e.prototype.saveCustomVariablesToLocalStorage=function(e){var n=function(e,n){pn.consent.__protected__.async((function(t){var r;return null===(r=t.composer)||void 0===r?void 0:r.localStorage.set(e,n)}))},t="__tp-customVariables";n(t,JSON.stringify(this.customVariables)),e&&n(t+"-expiration",Math.floor((new Date).getTime()/1e3)+e+"")},e.prototype.restoreCustomVariablesFromLocalstorage=function(){if("localStorage"in window&&null!==window.localStorage){var e=yi.util.__protected__.getLocalStorageItem("customVariables");if(yi.util.__protected__.removeLocalStorageItem("customVariables"),e)for(var n in e)this.customVariables[n]=e[n]}},e.prototype.handler=function(e,n){var t=this.registerPrefixedEvents;return function(){for(var r,o=[pn.offer,pn.template,pn.meter,pn.experience,pn.myaccount,pn.pianoId,pn.tinypassLogin,pn.swg,pn.user,pn.credit],i=0;i<o.length;i++){var a=o[i];if(a){var s=a.registerCallback(e,n);void 0!==s&&(r=s),void 0!==(s=t(a,e,n))&&(r=s)}}return r}},e.prototype.registerPrefixedEvents=function(e,n,t){for(var r,o,i,a=[{module:"offer",prefix:"checkout"},{module:"pianoId",prefix:"pianoId"}],s=0;s<a.length;s++){var c=a[s];e.name===c.module&&n.substring(0,c.prefix.length)===c.prefix&&(r=n.substring(c.prefix.length,c.prefix.length+1).toLowerCase()+n.substring(c.prefix.length+1,n.length),void 0!==(o=e.registerCallback(r,t))&&(i=o))}return i},e.prototype.addHandler=function(e,n){var t=this.handler(e,n);this.isInitialized?t():this.events.push(t),this.listOfAddedHandlers.push(e)},e.prototype.getListOfAddedHandlers=function(){return this.listOfAddedHandlers},e.prototype.setTrackPageview=function(e){this.trackPageView=e},e.prototype.setLocale=function(e){var n=this;this.locale=e,this.utilService.__protected__.setCookie("LANG",this.locale),this.isInitialized?this.changeLocale(e):this.initCallbacks.push((function(){n.changeLocale(e)}))},e.prototype.setPageURL=function(e){this.customPageUrl=e},e.prototype.setAdblockerCookieName=function(e){this.adblockerCookieName=e},e.prototype.setMaxCookieExpirationInDays=function(e){var n="string"==typeof e?parseInt(e,10):e;if(!(isFinite(n)&&n>0))throw new Error("maxCookieExpirationInDays must be a positive number");this.maxCookieExpirationInDays=n},e.prototype.getMaxCookieExpirationInDays=function(){return this.maxCookieExpirationInDays},e.prototype.setFbPixelId=function(e){this.fbPixelId=e},e.prototype.getFbPixelId=function(){return this.fbPixelId},e.prototype.setRedirectToFbTimeout=function(e){this.redirectToFbTimeout=e},e.prototype.enableDoubleOptInCheckOnAccessCheck=function(){this.isDoubleOptInCheckOnAccessCheckEnabled=!0},e.prototype.setCloudflareWorkerUrl=function(e){this.cloudflareWorkerUrl=e},e.prototype.getEndpoint=function(e,n){return e.lastIndexOf("/")===e.length-1&&(e=e.substr(0,e.length-1)),e.match(/\/v3$/)&&(e=e.substr(0,e.lastIndexOf("/v3"))),e.match(/\/api$/)&&(e=e.substr(0,e.lastIndexOf("/api"))),e.match(/^(http[s]?:)?\/\//)||(e="//"+e),void 0!==n&&n&&!e.match(/^http[s]?:/)&&(e="https:"+e),e},e.prototype._getEndpointRoot=function(e){var n="https://buy.tinypass.com";return!0===this.sandbox&&(this.endpoint="sandbox"),this.endpoint&&("sandbox"===this.endpoint?n="https://sandbox.tinypass.com":"prod"!==this.endpoint&&"production"!==this.endpoint&&(n=this.endpoint)),this.getEndpoint(n,e)},e.prototype._getApiEndpoint=function(){return this._getEndpointRoot()+"/api/v3"},e.prototype._getTrackingEndpoint=function(e){void 0===e&&(e="");var n=e||this.endpoint;return!0===this.sandbox?n="https://sandbox.tinypass.com":(void 0===this.endpoint||null===this.endpoint||""===this.endpoint||"prod"===this.endpoint||"production"===this.endpoint||this.endpoint.match(/(buy|api|api-v3)\.tinypass\.com/))&&(n=e||"https://api-v3.tinypass.com"),this.getEndpoint(n,!0)},e.prototype._getExperienceEndpoint=function(e){var n="https://c2.piano.io";return this.composerHost?n=this.composerHost:(!0===this.sandbox&&(this.endpoint="sandbox"),this.endpoint&&("sandbox"===this.endpoint?n="https://c2-sandbox.piano.io":"prod"!==this.endpoint&&"production"!==this.endpoint&&(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=this.endpoint).replace("//buy.tinypass.com","//c2.piano.io")).replace("//api.tinypass.com","//c2.piano.io")).replace("//buy-au.piano.io","//c2-au.piano.io")).replace("//api-au.piano.io","//c2-au.piano.io")).replace("//buy-ap.piano.io","//c2-ap.piano.io")).replace("//api-ap.piano.io","//c2-ap.piano.io")).replace("//buy-eu.piano.io","//c2-eu.piano.io")).replace("//api-eu.piano.io","//c2-eu.piano.io")).replace("//sandbox.tinypass.com","//c2-sandbox.piano.io")).replace("//sandbox.piano.io","//c2-sandbox.piano.io")).replace("//experience-au.piano.io","//c2-au.piano.io")).replace("//experience-eu.piano.io","//c2-eu.piano.io")).replace("//experience-ap.piano.io","//c2-ap.piano.io")).replace("//experience.tinypass.com","//c2.piano.io")).replace("//buy.piano.io","//c2.piano.io")).replace("//api.piano.io","//c2.piano.io")).replace("//experience.piano.io","//c2.piano.io")))),this.getEndpoint(n,e)},e.prototype._isSandbox=function(){return this.sandbox||"sandbox"===this.endpoint||!!this.endpoint&&-1!==this.endpoint.indexOf("//sandbox.tinypass.com")},e.prototype.changeLocale=function(e){pn.pianoId.isConfigured()&&pn.pianoId.updateLang(e),pn.postmessage.broadcast("langChanged",{lang:e})},e.prototype.pageTrack=function(e,n){pn.main.pageTrack(e,n)},e.prototype.trackPage=function(e,n){pn.main.pageTrack(e,n)},e.prototype.trackPageUnload=function(){pn.main.trackPageUnload()},e.prototype.trackAds=function(e){pn.main.trackAds(e)},e.prototype.trackAd=function(e,n,t){pn.main.trackAd(e,n,t)},e.prototype.onLoad=function(e){this.callbacks.push(e)},e.prototype.getEndpointRoot=function(e){return this._getEndpointRoot(e)},e.prototype.getExperienceEndpoint=function(e){return this._getExperienceEndpoint(e)},e.prototype.getApiEndpoint=function(){return this._getApiEndpoint()},e.prototype.getTrackingEndpoint=function(e){return void 0===e&&(e=""),this._getTrackingEndpoint(e)},e.prototype.isSandbox=function(){return this._isSandbox()},e.prototype.setCacheableShowTemplate=function(e){this.cacheableShowTemplate=e},e.prototype.getCacheableShowTemplate=function(){return this.cacheableShowTemplate},e.prototype.setSssAccessToken=function(e){this.sssAccessToken=e},e.prototype.setSssCallbackUrl=function(e){this.sssCallbackUrl=e},e.prototype.setSssMode=function(e){this.sssMode=e},e.prototype.setSssOriginUrl=function(e){this.sssOriginUrl=e},e.prototype.verifySignature=function(e,n,t){var r=this.utilService.asUint8Array(window.atob(t)),o=this.utilService.asUint8Array(e),i=this.utilService.asUint8Array(window.atob(n)),a={name:"RSASSA-PKCS1-v1_5",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:{name:"SHA-256"}};return crypto.subtle.importKey("spki",r,a,!1,["verify"]).then((function(e){return crypto.subtle.verify(a,e,i,o)}))},e=function(e,n,t,r){var o,i=arguments.length,a=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a}([pn.singleton(),m(0,pn.inject("tpPredefinedOptions")),m(1,pn.inject("css")),m(2,pn.inject("tinypassErrorHandler")),m(3,pn.inject("gaService")),m(4,pn.inject("ga4Service")),m(5,pn.inject("gaCollectingService")),m(6,pn.inject("util")),m(7,pn.inject("consent")),v("design:paramtypes",[Object,Object,Object,Object,Object,Object,Object,Object])],e),e}();pn.container.registerSingleton("tinypass",gi);var hi=pn.container.resolve("tinypass");[{n:"polyfill",hM:!1},{n:"predefine",hM:!1},{n:"predefineTinypass",hM:!1},{n:"checkTinypass",hM:!1},{n:"css",hM:!0},{n:"ajax",hM:!0},{n:"jqUtils",hM:!0},{n:"cookie",hM:!0},{n:"localStorage",hM:!0},{n:"versionService",hM:!0},{n:"itp",hM:!0},{n:"util",hM:!0},{n:"api",hM:!0},{n:"postmessage",hM:!0},{n:"eventUtils",hM:!0},{n:"janrain",hM:!0},{n:"sha1",hM:!0},{n:"containerUtils",hM:!0},{n:"tinypassLogin",hM:!0},{n:"tinypassAccounts",hM:!0},{n:"condeUserProvider",hM:!0},{n:"gigya",hM:!0},{n:"jwtDecode",hM:!0},{n:"log",hM:!0},{n:"logging",hM:!0},{n:"observer",hM:!0},{n:"gaCollectingService",hM:!0},{n:"gaService",hM:!0},{n:"ga4Service",hM:!0},{n:"pianoIdLite",hM:!0},{n:"pianoId",hM:!0},{n:"user",hM:!0},{n:"viewportExit",hM:!0},{n:"template",hM:!0},{n:"offer",hM:!0},{n:"myaccount",hM:!0},{n:"meter",hM:!0},{n:"fingerprint",hM:!0},{n:"scrollDepth",hM:!0},{n:"idle",hM:!0},{n:"interaction",hM:!0},{n:"recWidgetService",hM:!0},{n:"piano",hM:!0},{n:"pianoEsp",hM:!0},{n:"swg",hM:!0},{n:"fbpixel",hM:!0},{n:"fbsubscriptions",hM:!0},{n:"cxense",hM:!0},{n:"experience",hM:!0},{n:"ifvisible",hM:!0},{n:"activetimer",hM:!0},{n:"doubleClickForPublisher",hM:!0},{n:"applePay",hM:!0},{n:"goCardlessDropin",hM:!0},{n:"applePayIntegrationService",hM:!0},{n:"datatransApplePayIntegrationService",hM:!0},{n:"stripeApplePayIntegrationService",hM:!0},{n:"obi3DSChallenge",hM:!0},{n:"amp",hM:!0},{n:"performanceMetrics",hM:!0},{n:"doubleOptIn",hM:!0},{n:"newscycle",hM:!0},{n:"captchaV3",hM:!0},{n:"main",hM:!0},{n:"tinypassErrorHandler",hM:!0},{n:"tinypass",hM:!0},{n:"postProcessing",hM:!1}].forEach((function(e){e.hM&&!pn.container.isRegistered(e.n)&&pn.container.resolve(e.n)})),Object.assign(pn,hi),Object.setPrototypeOf(pn,gi.prototype);var yi=window.tp=pn;pn.initTp()}();