/*! For license information please see app.bundle.min.js.LICENSE.txt */ !function(){var t={39632:function(t,e,r){"use strict";r(10865),r(18867);var n=r(80016);function o(t){try{return decodeURIComponent(t)}catch(e){return t}}function i(t="",e){if(!e||!Object.keys(e).length)return t;let r=t;const n=t.indexOf("?");return-1!==n&&(e=Object.assign(function(t){return(function(t){let e;try{e=new URL(t,"http://example.com").search.substring(1)}catch(t){}if(e)return e}(t)||"").replace(/\+/g,"%20").split("&").reduce(((t,e)=>{const[r,n=""]=e.split("=").filter(Boolean).map(o);return r&&function(t,e,r){const n=e.length,o=n-1;for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:window.location.search,e=new URLSearchParams(t),r={};return a.forEach((t=>{e.has(t)&&(r[t]=e.get(t))})),r},c=r(72100),u=r(78194),f=r(27649),l=r(61085);function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;et}={}}=zephr;if(g=y("zephr.componentQueryParameters",g),"string"!=typeof d||!d.length)return{};d=i(d,g=(t=>{var e={};return t.forEach(((t,r)=>{e[r]=t})),e})(g));try{var m=yield fetch(d,{body:JSON.stringify(h(h({},v),{},{contentId:e,path:i(window.location.pathname,g),sdkFeatureSlug:n,session:(0,l.A)(),userAgent:navigator.userAgent},s())),credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"});if(!m.ok)return console.error("Error retrieving from Zephr",d,yield m.text()),{};try{var{outputValue:b=""}=yield m.json();return b.includes("<")?{component:{zephrOutput:{data:b,__typename:"ZephrUiComponentHtml"}}}:{}}catch(t){console.error("Error retrieving from Zephr",d,t)}return{}}catch(t){console.error("Error when retriving from Zephr",t)}return{}},g=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){v(i,n,o,a,s,"next",t)}function s(t){v(i,n,o,a,s,"throw",t)}a(void 0)}))},g.apply(this,arguments)}r(10568),r(72273),window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;class y{constructor(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250;this.callback=t,this.duration=e,this.ticking=!1,this.count=0}update(){this.callback&&this.callback(),this.ticking=!1}requestTick(){this.ticking||(window.setTimeout((()=>{window.requestAnimationFrame(this.update.bind(this))}),this.duration),this.ticking=!0)}handleEvent(){this.requestTick()}}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function b(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},{env:r=""}=window.nypZephr||{};e.event=t,"local"===r&&console.log("Zephr event",t,e),this.listeners.forEach((r=>{"*"!==r[0]&&r[0]!==t||"function"!=typeof r[1]||r[1](e)}))}fireToEmbed(t,e){var{env:r=""}=window.nypZephr;"local"===r&&console.log("Sent embed message",arguments);var n=document.getElementById(t);null!==n&&n.contentWindow.postMessage({zephr:b({},e)},"*")}setComponentModel(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.componentModels[t]=e}getComponentModel(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this.componentModels[t]||{}:Object.values(this.componentModels)[0]||null}}function E(t){var{model:e={},zephrComponent:r=""}=t;window.zephr.setComponentModel(r,e)}function S(t){var{height:e=0,iframeId:r=""}=t;if(e&&r){var n=document.getElementById(r);if(n){var o=n.closest(".zephr-component");o&&(o.style.height="".concat(e,"px"))}}}function O(){return"object"==typeof window.zephr&&window.zephr instanceof x||(void 0!==window.zephr?window.zephr=new x(...window.zephr):window.zephr=new x([]),window.zephr.push(["loaded",E]),window.zephr.push(["resize",S])),window.zephr}function T(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function C(t){for(var e=1;e{if(!t.trim())return j;var e=(new DOMParser).parseFromString(t,"text/html");if(!e)return j;var r=e.querySelector("script[data-zephr-component]");if(r){var n={};try{n=JSON.parse(r.innerHTML)||{}}catch(t){console.error("Error parsing component configuration",t,r)}return C(C({},j),{},{options:C(C({},j.options),n.options||{})},n)}return j})(o);if(i){var{options:{placement:a="left",scrollDelay:s=!1,type:c=""}}=i,u=r("zephr.componentProps",e,i,t);if("object"==typeof u){var{__typename:f,data:l}=u;if("inject"===c){if("ZephrUiComponentHtml"!==f)return void console.error("Unknown typename for component with 'inject': ".concat(f),u);var p=s&&s>0,h=document.createElement("div");if(h.setAttribute("class",["zephr-component","nyp-zephr-flyout","nyp-zephr-flyout--".concat(a),p?"hide":""].join(" ")),p){var d=new y((()=>function(t,e){var r;(window.pageYOffset||document.documentElement.scrollTop)>=t&&(!(r=document.querySelector(".tynt-ad-frame-container"))||"none"===r.style.display||!r.children||"IFRAME"!==r.children[0].tagName||r.closest(".tynt-not-viewable")||R)?(e.classList.remove("hide"),e.dataset.alreadyShown||(_(e),e.dataset.alreadyShown=!0)):e.classList.add("hide")}(s,h)));window.addEventListener("scroll",d)}else _(h);var v=document.createElement("iframe");v.id="zephr-component-".concat(k+=1),v.style.overflow="hidden",v.style.backgroundColor="transparent",v.style.border="none",v.frameBorder="0",v.scrolling="no",v.dataset.zephrComponent=t,h.appendChild(v),document.body.appendChild(h);var g=function(t){var e=(new DOMParser).parseFromString(t,"text/html");if(!e)return[];var r=[],n=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).querySelectorAll("style[parent]")}(e);return n.length&&n.forEach((t=>{r.push(t.textContent.trim())})),r}(l);if(g.length){var m=document.createElement("style");m.type="text/css",m.innerHTML="/* Injected by Zephr */ ".concat(g.join(" ")),document.body.appendChild(m)}var b="".concat(function(){var{embedScriptBundle:t}=nypZephr,e=t.map((t=>'