/*! For license information please see load.js.LICENSE.txt */ (()=>{var e,t,i,n={561:function(e,t){var i,n,r;n="undefined"!=typeof window?window:this,r=function(n,r){var s=[],o=s.slice,a=s.concat,c=s.push,l=s.indexOf,u={},d=u.toString,h=u.hasOwnProperty,p={},f=n.document,m="2.1.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated,-effects,-effects/Tween,-effects/animatedSelector,-event-alias,-wrap",v=function(e,t){return new v.fn.init(e,t)},g=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,b=/-([\da-z])/gi,E=function(e,t){return t.toUpperCase()};function w(e){var t=e.length,i=v.type(e);return"function"!==i&&!v.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}v.fn=v.prototype={nquery:m,constructor:v,selector:"",length:0,get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:o.call(this)},pushStack:function(e){var t=v.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return v.each(this,e,t)},map:function(e){return this.pushStack(v.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i0&&"object"==typeof t&&(E[r]=y.join(", "),E[s]=i+"s",E[a]=f+"s",E[o]=h||"linear")}return b=function(t){if(void 0!==t){if(t.target!==t.currentTarget)return;e(t.target).unbind(S,b)}else e(this).unbind(S,b);A=!0,e(this).css(g),p&&p.call(this)},i>0&&(this.bind(S,b),setTimeout((function(){A||b.call(T)}),1e3*(i+f)+25)),this.size()&&this.get(0),this.css(E),i<=0&&setTimeout((function(){T.each((function(){b.call(this)}))}),0),this},m=null}(v),v.extend({expando:"nQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},isFunction:function(e){return"function"===v.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!v.isArray(e)&&e-parseFloat(e)>=0},isPlainObject:function(e){return!("object"!==v.type(e)||e.nodeType||v.isWindow(e)||e.constructor&&!h.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[d.call(e)]||"object":typeof e},globalEval:function(e){var t;(e=v.trim(e))&&(e=`\n try{ \n ${e} \n } catch (error) { \n const encodedCode = \`${e}\`;\n encodedCode.replace(/'/g,\`'\`);\n encodedCode.replace(/"/g,\`"\`);\n const errorMessage = "[Client Error] Script Injection - Script:"+encodedCode+" Cause:" + error.message;\n if(ntv && ntv.Util) { ntv.Util.postError(new Error(errorMessage), true); }\n }\n `,(t=f.createElement("script")).text=e,f.head.appendChild(t).parentNode.removeChild(t))},camelCase:function(e){return e.replace(y,"ms-").replace(b,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var n=0,r=e.length,s=w(e);if(i){if(s)for(;n+~]|"+V+")"+V+"*"),z=new RegExp("="+V+"*([^\\]'\"]*?)"+V+"*\\]","g"),G=new RegExp(F),Y=new RegExp("^"+U+"$"),q={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+V+"*(even|odd|(([+-]|)(\\d*)n|)"+V+"*(?:([+-]|)"+V+"*(\\d+)|))"+V+"*\\)|)","i"),bool:new RegExp("^(?:"+x+")$","i"),needsContext:new RegExp("^"+V+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+V+"*((?:-\\d)?\\d*)"+V+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,$=/'|\\/g,ee=new RegExp("\\\\([\\da-f]{1,6}"+V+"?|("+V+")|.)","ig"),te=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)};try{_.apply(R=L.call(w.childNodes),w.childNodes)}catch(e){_={apply:R.length?function(e,t){O.apply(e,L.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function ie(e,t,n,r){var s,a,l,u,d,f,g,y,T,S;if((t?t.ownerDocument||t:w)!==p&&h(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(u=(t=t||p).nodeType)&&9!==u)return[];if(m&&!r){if(s=X.exec(e))if(l=s[1]){if(9===u){if(!(a=t.getElementById(l))||!a.parentNode)return n;if(a.id===l)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(l))&&b(t,a)&&a.id===l)return n.push(a),n}else{if(s[2])return _.apply(n,t.getElementsByTagName(e)),n;if((l=s[3])&&i.getElementsByClassName&&t.getElementsByClassName)return _.apply(n,t.getElementsByClassName(l)),n}if(i.qsa&&(!v||!v.test(e))){if(y=g=E,T=t,S=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(f=o(e),(g=t.getAttribute("id"))?y=g.replace($,"\\$&"):t.setAttribute("id",y),y="[id='"+y+"'] ",d=f.length;d--;)f[d]=y+pe(f[d]);T=J.test(e)&&de(t.parentNode)||t,S=f.join(",")}if(S)try{return _.apply(n,T.querySelectorAll(S)),n}catch(e){}finally{g||t.removeAttribute("id")}}}return c(e.replace(B,"$1"),t,n,r)}function ne(){var e=[];return function t(i,r){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=r}}function re(e){return e[E]=!0,e}function se(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function oe(e,t){for(var i=e.split("|"),r=e.length;r--;)n.attrHandle[i[r]]=t}function ae(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function le(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function ue(e){return re((function(t){return t=+t,re((function(i,n){for(var r,s=e([],i.length,t),o=s.length;o--;)i[r=s[o]]&&(i[r]=!(n[r]=i[r]))}))}))}function de(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=ie.support={},s=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=ie.setDocument=function(e){var t,r=e?e.ownerDocument||e:w,o=r.defaultView;return r!==p&&9===r.nodeType&&r.documentElement?(p=r,f=r.documentElement,m=!s(r),o&&o!==o.top&&(o.addEventListener?o.addEventListener("unload",(function(){h()}),!1):o.attachEvent&&o.attachEvent("onunload",(function(){h()}))),i.attributes=se((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=se((function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=Z.test(r.getElementsByClassName)&&se((function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length})),i.getById=se((function(e){return f.appendChild(e).id=E,!r.getElementsByName||!r.getElementsByName(E).length})),i.getById?(n.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}},n.filter.ID=function(e){var t=e.replace(ee,te);return function(e){return e.getAttribute("id")===t}}):(delete n.find.ID,n.filter.ID=function(e){var t=e.replace(ee,te);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}}),n.find.TAG=i.getElementsByTagName?function(e,t){if(void 0!==t.getElementsByTagName)return t.getElementsByTagName(e)}:function(e,t){var i,n=[],r=0,s=t.getElementsByTagName(e);if("*"===e){for(;i=s[r++];)1===i.nodeType&&n.push(i);return n}return s},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},g=[],v=[],(i.qsa=Z.test(r.querySelectorAll))&&(se((function(e){e.innerHTML="",e.querySelectorAll("[msallowclip^='']").length&&v.push("[*^$]="+V+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+V+"*(?:value|"+x+")"),e.querySelectorAll(":checked").length||v.push(":checked")})),se((function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+V+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")}))),(i.matchesSelector=Z.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&se((function(e){i.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),g.push("!=",F)})),v=v.length&&new RegExp(v.join("|")),g=g.length&&new RegExp(g.join("|")),t=Z.test(f.compareDocumentPosition),b=t||Z.test(f.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return d=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===w&&b(w,e)?-1:t===r||t.ownerDocument===w&&b(w,t)?1:u?N.call(u,e)-N.call(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var i,n=0,s=e.parentNode,o=t.parentNode,a=[e],c=[t];if(!s||!o)return e===r?-1:t===r?1:s?-1:o?1:u?N.call(u,e)-N.call(u,t):0;if(s===o)return ae(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)c.unshift(i);for(;a[n]===c[n];)n++;return n?ae(a[n],c[n]):a[n]===w?-1:c[n]===w?1:0},r):p},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(z,"='$1']"),i.matchesSelector&&m&&(!g||!g.test(t))&&(!v||!v.test(t)))try{var n=y.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return ie(t,p,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),b(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var r=n.attrHandle[t.toLowerCase()],s=r&&k.call(n.attrHandle,t.toLowerCase())?r(e,t,!m):void 0;return void 0!==s?s:i.attributes||!m?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,n=[],r=0,s=0;if(d=!i.detectDuplicates,u=!i.sortStable&&e.slice(0),e.sort(C),d){for(;t=e[s++];)t===e[s]&&(r=n.push(s));for(;r--;)e.splice(n[r],1)}return u=null,e},r=ie.getText=function(e){var t,i="",n=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[n++];)i+=r(t);return i},(n=ie.selectors={cacheLength:50,createPseudo:re,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ee,te),e[3]=(e[3]||e[4]||e[5]||"").replace(ee,te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&G.test(i)&&(t=o(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ee,te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=A[e+" "];return t||(t=new RegExp("(^|"+V+")"+e+"("+V+"|$)"))&&A(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(n){var r=ie.attr(n,e);return null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&r.indexOf(i)>-1:"$="===t?i&&r.slice(-i.length)===i:"~="===t?(" "+r+" ").indexOf(i)>-1:"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,r){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,c){var l,u,d,h,p,f,m=s!==o?"nextSibling":"previousSibling",v=t.parentNode,g=a&&t.nodeName.toLowerCase(),y=!c&&!a;if(v){if(s){for(;m;){for(d=t;d=d[m];)if(a?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?v.firstChild:v.lastChild],o&&y){for(h=(l=(u=v[E]||(v[E]={}))[e]||[])[0]===T&&l[2],d=(p=l[0]===T&&l[1])&&v.childNodes[p];d=++p&&d&&d[m]||(h=p=0)||f.pop();)if(1===d.nodeType&&++h&&d===t){u[e]=[T,p,h];break}}else if(y&&(l=(t[E]||(t[E]={}))[e])&&l[0]===T)h=l[1];else for(;(d=++p&&d&&d[m]||(h=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++h||(y&&((d[E]||(d[E]={}))[e]=[T,h]),d!==t)););return(h-=r)===n||h%n==0&&h/n>=0}}},PSEUDO:function(e,t){var i,r=n.pseudos[e]||n.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return r[E]?r(t):r.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?re((function(e,i){for(var n,s=r(e,t),o=s.length;o--;)e[n=N.call(e,s[o])]=!(i[n]=s[o])})):function(e){return r(e,0,i)}):r}},pseudos:{not:re((function(e){var t=[],i=[],n=a(e.replace(B,"$1"));return n[E]?re((function(e,t,i,r){for(var s,o=n(e,null,r,[]),a=e.length;a--;)(s=o[a])&&(e[a]=!(t[a]=s))})):function(e,r,s){return t[0]=e,n(t,null,s,i),!i.pop()}})),has:re((function(e){return function(t){return ie(e,t).length>0}})),contains:re((function(e){return function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}})),lang:re((function(e){return Y.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(ee,te).toLowerCase(),function(t){var i;do{if(i=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ue((function(){return[0]})),last:ue((function(e,t){return[t-1]})),eq:ue((function(e,t,i){return[i<0?i+t:i]})),even:ue((function(e,t){for(var i=0;i=0;)e.push(n);return e})),gt:ue((function(e,t,i){for(var n=i<0?i+t:i;++n1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function ve(e,t,i,n,r){for(var s,o=[],a=0,c=e.length,l=null!=t;a-1&&(s[l]=!(o[l]=d))}}else g=ve(g===o?g.splice(f,g.length):g),r?r(null,o,g,c):_.apply(o,g)}))}function ye(e){for(var t,i,r,s=e.length,o=n.relative[e[0].type],a=o||n.relative[" "],c=o?1:0,u=fe((function(e){return e===t}),a,!0),d=fe((function(e){return N.call(t,e)>-1}),a,!0),h=[function(e,i,n){return!o&&(n||i!==l)||((t=i).nodeType?u(e,i,n):d(e,i,n))}];c1&&me(h),c>1&&pe(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(B,"$1"),i,c0,r=e.length>0,s=function(s,o,a,c,u){var d,h,f,m=0,v="0",g=s&&[],y=[],b=l,E=s||r&&n.find.TAG("*",u),w=T+=null==b?1:Math.random()||.1,S=E.length;for(u&&(l=o!==p&&o);v!==S&&null!=(d=E[v]);v++){if(r&&d){for(h=0;f=e[h++];)if(f(d,o,a)){c.push(d);break}u&&(T=w)}i&&((d=!f&&d)&&m--,s&&g.push(d))}if(m+=v,i&&v!==m){for(h=0;f=t[h++];)f(g,y,o,a);if(s){if(m>0)for(;v--;)g[v]||y[v]||(y[v]=D.call(c));y=ve(y)}_.apply(c,y),u&&!s&&y.length>0&&m+t.length>1&&ie.uniqueSort(c)}return u&&(T=w,l=b),g};return i?re(s):s}(s,r))).selector=e}return a},c=ie.select=function(e,t,r,s){var c,l,u,d,h,p="function"==typeof e&&e,f=!s&&o(e=p.selector||e);if(r=r||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&i.getById&&9===t.nodeType&&m&&n.relative[l[1].type]){if(!(t=(n.find.ID(u.matches[0].replace(ee,te),t)||[])[0]))return r;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(c=q.needsContext.test(e)?0:l.length;c--&&!n.relative[d=(u=l[c]).type];)if((h=n.find[d])&&(s=h(u.matches[0].replace(ee,te),J.test(l[0].type)&&de(t.parentNode)||t))){if(l.splice(c,1),!(e=s.length&&pe(l)))return _.apply(r,s),r;break}}return(p||a(e,f))(s,t,!m,r,J.test(e)&&de(t.parentNode)||t),r},i.sortStable=E.split("").sort(C).join("")===E,i.detectDuplicates=!!d,h(),i.sortDetached=se((function(e){return 1&e.compareDocumentPosition(p.createElement("div"))})),se((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||oe("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&se((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||oe("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),se((function(e){return null==e.getAttribute("disabled")}))||oe(x,(function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null})),ie}(n);v.find=T,v.expr=T.selectors,v.expr[":"]=v.expr.pseudos,v.unique=T.uniqueSort,v.text=T.getText,v.isXMLDoc=T.isXML,v.contains=T.contains;var S=v.expr.match.needsContext,A=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,I=/^.[^:#\[\.,]*$/;function P(e,t,i){if(v.isFunction(t))return v.grep(e,(function(e,n){return!!t.call(e,n,e)!==i}));if(t.nodeType)return v.grep(e,(function(e){return e===t!==i}));if("string"==typeof t){if(I.test(t))return v.filter(t,e,i);t=v.filter(t,e)}return v.grep(e,(function(e){return l.call(t,e)>=0!==i}))}v.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?v.find.matchesSelector(n,e)?[n]:[]:v.find.matches(e,v.grep(t,(function(e){return 1===e.nodeType})))},v.fn.extend({find:function(e){var t,i=this.length,n=[],r=this;if("string"!=typeof e)return this.pushStack(v(e).filter((function(){for(t=0;t1?v.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&S.test(e)?v(e):e||[],!1).length}});var C,k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(v.fn.init=function(e,t){var i,n;if(!e)return this;if("string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:k.exec(e))||!i[1]&&t)return!t||t.nquery?(t||C).find(e):this.constructor(t).find(e);if(i[1]){if(v.merge(this,v.parseHTML(i[1],(t=t instanceof v?t[0]:t)&&t.nodeType?t.ownerDocument||t:f,!0)),A.test(i[1])&&v.isPlainObject(t))for(i in t)v.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(n=f.getElementById(i[2]))&&n.parentNode&&(this.length=1,this[0]=n),this.context=f,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):v.isFunction(e)?void 0!==C.ready?C.ready(e):e(v):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))}).prototype=v.fn,C=v(f);var R=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}v.extend({dir:function(e,t,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&v(e).is(i))break;n.push(e)}return n},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}}),v.fn.extend({has:function(e){var t=v(e,this),i=t.length;return this.filter((function(){for(var e=0;e1&&(D[e]||v.unique(r),R.test(e)&&r.reverse()),this.pushStack(r)}}));var _,L=/\S+/g,N={};function x(){f.removeEventListener("DOMContentLoaded",x,!1),n.removeEventListener("load",x,!1),v.ready()}v.Callbacks=function(e){e="string"==typeof e?N[e]||function(e){var t=N[e]={};return v.each(e.match(L)||[],(function(e,i){t[i]=!0})),t}(e):v.extend({},e);var t,i,n,r,s,o,a=[],c=!e.once&&[],l=function(d){for(t=e.memory&&d,i=!0,o=r||0,r=0,s=a.length,n=!0;a&&o-1;)a.splice(i,1),n&&(i<=s&&s--,i<=o&&o--)})),this},has:function(e){return e?v.inArray(e,a)>-1:!(!a||!a.length)},empty:function(){return a=[],s=0,this},disable:function(){return a=c=t=void 0,this},disabled:function(){return!a},fireWith:function(e,t){return!a||i&&!c||(t=[e,(t=t||[]).slice?t.slice():t],n?c.push(t):l(t)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred((function(i){v.each(t,(function(t,s){var o=v.isFunction(e[t])&&e[t];r[s[1]]((function(){var e=o&&o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[s[0]+"With"](this===n?i.promise():this,o?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?v.extend(e,n):n}},r={};return n.pipe=n.then,v.each(t,(function(e,s){var o=s[2],a=s[3];n[s[1]]=o.add,a&&o.add((function(){i=a}),t[1^e][2].disable,t[2][2].lock),r[s[0]]=function(){return r[s[0]+"With"](this===r?n:this,arguments),this},r[s[0]+"With"]=o.fireWith})),n.promise(r),e&&e.call(r,r),r},when:function(e){var t,i,n,r=0,s=o.call(arguments),a=s.length,c=1!==a||e&&v.isFunction(e.promise)?a:0,l=1===c?e:v.Deferred(),u=function(e,i,n){return function(r){i[e]=this,n[e]=arguments.length>1?o.call(arguments):r,n===t?l.notifyWith(i,n):--c||l.resolveWith(i,n)}};if(a>1)for(t=new Array(a),i=new Array(a),n=new Array(a);r0||(_.resolveWith(f,[v]),v.fn.triggerHandler&&(v(f).triggerHandler("ready"),v(f).off("ready"))))}}),v.ready.promise=function(e){return _||(_=v.Deferred(),"complete"===f.readyState?setTimeout(v.ready):(f.addEventListener("DOMContentLoaded",x,!1),n.addEventListener("load",x,!1))),_.promise(e)},v.ready.promise();var V=v.access=function(e,t,i,n,r,s,o){var a=0,c=e.length,l=null==i;if("object"===v.type(i))for(a in r=!0,i)v.access(e,t,a,i[a],!0,s,o);else if(void 0!==n&&(r=!0,v.isFunction(n)||(o=!0),l&&(o?(t.call(e,n),t=null):(l=t,t=function(e,t,i){return l.call(v(e),i)})),t))for(;a1,null,!0)},removeData:function(e){return this.each((function(){j.remove(this,e)}))}}),v.extend({queue:function(e,t,i){var n;if(e)return n=U.get(e,t=(t||"fx")+"queue"),i&&(!n||v.isArray(i)?n=U.access(e,t,v.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){var i=v.queue(e,t=t||"fx"),n=i.length,r=i.shift(),s=v._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete s.stop,r.call(e,(function(){v.dequeue(e,t)}),s)),!n&&s&&s.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return U.get(e,i)||U.access(e,i,{empty:v.Callbacks("once memory").add((function(){U.remove(e,[t+"queue",i])}))})}}),v.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.lengthx",p.noCloneChecked=!!H.cloneNode(!0).lastChild.defaultValue,p.focusinBubbles="onfocusin"in n;var K=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,J=/^([^.]*)(?:\.(.+)|)$/;function $(){return!0}function ee(){return!1}function te(){try{return f.activeElement}catch(e){}}v.event={global:{},add:function(e,t,i,n,r){var s,o,a,c,l,u,d,h,p,f,m,g=U.get(e);if(g)for(i.handler&&(i=(s=i).handler,r=s.selector),i.guid||(i.guid=v.guid++),(c=g.events)||(c=g.events={}),(o=g.handle)||(o=g.handle=function(t){return void 0!==v&&v.event.triggered!==t.type?v.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(L)||[""]).length;l--;)p=m=(a=J.exec(t[l])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=v.event.special[p]||{},d=v.event.special[p=(r?d.delegateType:d.bindType)||p]||{},u=v.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&v.expr.match.needsContext.test(r),namespace:f.join(".")},s),(h=c[p])||((h=c[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,n,f,o)||e.addEventListener&&e.addEventListener(p,o,!1)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),v.event.global[p]=!0)},remove:function(e,t,i,n,r){var s,o,a,c,l,u,d,h,p,f,m,g=U.hasData(e)&&U.get(e);if(g&&(c=g.events)){for(l=(t=(t||"").match(L)||[""]).length;l--;)if(p=m=(a=J.exec(t[l])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=v.event.special[p]||{},h=c[p=(n?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=h.length;s--;)u=h[s],!r&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(s,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||v.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)v.event.remove(e,p+t[l],i,n,!0);v.isEmptyObject(c)&&(delete g.handle,U.remove(e,"events"))}},trigger:function(e,t,i,r){var s,o,a,c,l,u,d,p=[i||f],m=h.call(e,"type")?e.type:e,g=h.call(e,"namespace")?e.namespace.split("."):[];if(o=a=i=i||f,3!==i.nodeType&&8!==i.nodeType&&!X.test(m+v.event.triggered)&&(m.indexOf(".")>=0&&(g=m.split("."),m=g.shift(),g.sort()),l=m.indexOf(":")<0&&"on"+m,(e=e[v.expando]?e:new v.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=g.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:v.makeArray(t,[e]),d=v.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(i,t))){if(!r&&!d.noBubble&&!v.isWindow(i)){for(X.test((c=d.delegateType||m)+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(i.ownerDocument||f)&&p.push(a.defaultView||a.parentWindow||n)}for(s=0;(o=p[s++])&&!e.isPropagationStopped();)e.type=s>1?c:d.bindType||m,(u=(U.get(o,"events")||{})[e.type]&&U.get(o,"handle"))&&u.apply(o,t),(u=l&&o[l])&&u.apply&&v.acceptData(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!v.acceptData(i)||l&&v.isFunction(i[m])&&!v.isWindow(i)&&((a=i[l])&&(i[l]=null),v.event.triggered=m,i[m](),v.event.triggered=void 0,a&&(i[l]=a)),e.result}},dispatch:function(e){e=v.event.fix(e);var t,i,n,r,s,a=[],c=o.call(arguments),l=(U.get(this,"events")||{})[e.type]||[],u=v.event.special[e.type]||{};if(c[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=v.event.handlers.call(this,e,l),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,i=0;(s=r.handlers[i++])&&!e.isImmediatePropagationStopped();)if(!e.namespace_re||e.namespace_re.test(s.namespace)){e.handleObj=s,e.data=s.data;var d=(v.event.special[s.origType]||{}).handle||s.handler;"function"==typeof d&&(n=d.apply(r.elem,c)),void 0!==n&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation())}return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,r,s,o=[],a=t.delegateCount,c=e.target;if(a&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!==this;c=c.parentNode||this)if(!0!==c.disabled||"click"!==e.type){for(n=[],i=0;i=0:v.find(r,this,null,[c]).length),n[r]&&n.push(s);n.length&&o.push({elem:c,handlers:n})}return a]*)\/>/gi,ne=/<([\w:]+)/,re=/<|&#?\w+;/,se=/<(?:script|style|link)/i,oe=/checked\s*(?:[^=]|=\s*.checked.)/i,ae=/^$|\/(?:java|ecma)script/i,ce=/^true\/(.*)/,le=/^\s*\s*$/g,ue={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function de(e,t){return v.nodeName(e,"table")&&v.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function he(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function pe(e){var t=ce.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function fe(e,t){for(var i=0,n=e.length;i0&&fe(o,!d&&ve(e,"script")),u},buildFragment:function(e,t,i,n){for(var r,s,o,a,c,l,u=t.createDocumentFragment(),d=[],h=0,p=e.length;h")+a[2],l=a[0];l--;)s=s.lastChild;v.merge(d,s.childNodes),(s=u.firstChild).textContent=""}else d.push(t.createTextNode(r));for(u.textContent="",h=0;r=d[h++];)if((!n||-1===v.inArray(r,n))&&(c=v.contains(r.ownerDocument,r),s=ve(u.appendChild(r),"script"),c&&fe(s),i))for(l=0;r=s[l++];)ae.test(r.type||"")&&i.push(r);return u},cleanData:function(e){for(var t,i,n,r,s=v.event.special,o=0;void 0!==(i=e[o]);o++){if(v.acceptData(i)&&(r=i[U.expando])&&(t=U.cache[r])){if(t.events)for(n in t.events)s[n]?v.event.remove(i,n):v.removeEvent(i,n,t.handle);U.cache[r]&&delete U.cache[r]}delete j.cache[i[j.expando]]}}}),v.fn.extend({text:function(e){return V(this,(function(e){return void 0===e?v.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||de(this,e).appendChild(Ee(e))}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=de(this,e);t.insertBefore(Ee(e),t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(Ee(e),this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(Ee(e),this.nextSibling)}))},remove:function(e,t){for(var i,n=e?v.filter(e,this):this,r=0;null!=(i=n[r]);r++)t||1!==i.nodeType||v.cleanData(ve(i)),i.parentNode&&(t&&v.contains(i.ownerDocument,i)&&fe(ve(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(v.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return v.clone(this,e,t)}))},html:function(e){return V(this,(function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!se.test(e)&&!ue[(ne.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ie,"<$1>");try{for(;i=1)var i=t.cloneNode(!0);e.replaceChild(t,this),setTimeout(Ee,0,i||t.cloneNode(!0))}})),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=a.apply([],e);var i,n,r,s,o,c,l=0,u=this.length,d=this,h=u-1,f=e[0],m=v.isFunction(f);if(m||u>1&&"string"==typeof f&&!p.checkClone&&oe.test(f))return this.each((function(i){var n=d.eq(i);m&&(e[0]=f.call(this,i,n.html())),n.domManip(e,t)}));if(u&&(n=(i=v.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===i.childNodes.length&&(i=n),n)){for(s=(r=v.map(ve(i,"script"),he)).length;l")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),i=Se(e,t),we.detach()),Te[e]=i),i}var Ie=/^margin/,Pe=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),Ce=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)};function ke(e,t,i){var n,r,s,o,a=e.style;return(i=i||Ce(e))&&(o=i.getPropertyValue(t)||i[t]),i&&(""!==o||v.contains(e.ownerDocument,e)||(o=v.style(e,t)),Pe.test(o)&&Ie.test(t)&&(n=a.width,r=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=i.width,a.width=n,a.minWidth=r,a.maxWidth=s)),void 0!==o?o+"":o}function Re(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var e,t,i=f.documentElement,r=f.createElement("div"),s=f.createElement("div");function o(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",s.innerHTML="",i.appendChild(r);var o=n.getComputedStyle(s,null);e="1%"!==o.top,t="4px"===o.width,i.removeChild(r)}s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===s.style.backgroundClip,r.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",r.appendChild(s),n.getComputedStyle&&v.extend(p,{pixelPosition:function(){return o(),e},boxSizingReliable:function(){return null==t&&o(),t},reliableMarginRight:function(){var e,t=s.appendChild(f.createElement("div"));return t.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",s.style.width="1px",i.appendChild(r),e=!parseFloat(n.getComputedStyle(t,null).marginRight),i.removeChild(r),e}}))}(),v.swap=function(e,t,i,n){var r,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];for(s in r=i.apply(e,n||[]),t)e.style[s]=o[s];return r};var De=/^(none|table(?!-c[ea]).+)/,Oe=new RegExp("^("+G+")(.*)$","i"),_e=new RegExp("^([+-])=("+G+")","i"),Le={position:"absolute",visibility:"hidden",display:"block"},Ne={letterSpacing:"0",fontWeight:"400"},xe=["Webkit","O","Moz","ms"];function Ve(e,t){if(t in e)return t;for(var i=t[0].toUpperCase()+t.slice(1),n=t,r=xe.length;r--;)if((t=xe[r]+i)in e)return t;return n}function Me(e,t,i){var n=Oe.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function Ue(e,t,i,n,r){for(var s=i===(n?"border":"content")?4:"width"===t?1:0,o=0;s<4;s+=2)"margin"===i&&(o+=v.css(e,i+Y[s],!0,r)),n?("content"===i&&(o-=v.css(e,"padding"+Y[s],!0,r)),"margin"!==i&&(o-=v.css(e,"border"+Y[s]+"Width",!0,r))):(o+=v.css(e,"padding"+Y[s],!0,r),"padding"!==i&&(o+=v.css(e,"border"+Y[s]+"Width",!0,r)));return o}function je(e,t,i){var n=!0,r="width"===t?e.offsetWidth:e.offsetHeight,s=Ce(e),o="border-box"===v.css(e,"boxSizing",!1,s);if(r<=0||null==r){if(((r=ke(e,t,s))<0||null==r)&&(r=e.style[t]),Pe.test(r))return r;n=o&&(p.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+Ue(e,t,i||(o?"border":"content"),n,s)+"px"}function Fe(e,t){for(var i,n,r,s=[],o=0,a=e.length;o1)},show:function(){return Fe(this,!0)},hide:function(){return Fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){q(this)?v(this).show():v(this).hide()}))}}),v.fn.delay=function(e,t){return e=v.fx&&v.fx.speeds[e]||e,this.queue(t=t||"fx",(function(t,i){var n=setTimeout(t,e);i.stop=function(){clearTimeout(n)}}))},v.fn.size=function(){return this.length},function(){var e=f.createElement("input"),t=f.createElement("select"),i=t.appendChild(f.createElement("option"));e.type="checkbox",p.checkOn=""!==e.value,p.optSelected=i.selected,t.disabled=!0,p.optDisabled=!i.disabled,(e=f.createElement("input")).value="t",e.type="radio",p.radioValue="t"===e.value}();var Be,We=v.expr.attrHandle;v.fn.extend({attr:function(e,t){return V(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){v.removeAttr(this,e)}))}}),v.extend({attr:function(e,t,i){var n,r,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?v.prop(e,t,i):(1===s&&v.isXMLDoc(e)||(t=t.toLowerCase(),n=v.attrHooks[t]||(v.expr.match.bool.test(t)?Be:void 0)),void 0===i?n&&"get"in n&&null!==(r=n.get(e,t))?r:null==(r=v.find.attr(e,t))?void 0:r:null!==i?n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:(e.setAttribute(t,i+""),i):void v.removeAttr(e,t))},removeAttr:function(e,t){var i,n,r=0,s=t&&t.match(L);if(s&&1===e.nodeType)for(;i=s[r++];)n=v.propFix[i]||i,v.expr.match.bool.test(i)&&(e[n]=!1),e.removeAttribute(i)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&v.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}}}),Be={set:function(e,t,i){return!1===t?v.removeAttr(e,i):e.setAttribute(i,i),i}},v.each(v.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=We[t]||v.find.attr;We[t]=function(e,t,n){var r,s;return n||(s=We[t],We[t]=r,r=null!=i(e,t,n)?t.toLowerCase():null,We[t]=s),r}}));var He=/^(?:input|select|textarea|button)$/i;v.fn.extend({prop:function(e,t){return V(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[v.propFix[e]||e]}))}}),v.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,i){var n,r,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return(1!==s||!v.isXMLDoc(e))&&(r=v.propHooks[t=v.propFix[t]||t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||He.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),p.optSelected||(v.propHooks.selected={get:function(e){return null}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){v.propFix[this.toLowerCase()]=this}));var ze=/[\t\r\n\f]/g;v.fn.extend({addClass:function(e){var t,i,n,r,s,o,a="string"==typeof e&&e,c=0,l=this.length;if(v.isFunction(e))return this.each((function(t){v(this).addClass(e.call(this,t,this.className))}));if(a)for(t=(e||"").match(L)||[];c=0;)n=n.replace(" "+r+" "," ");o=e?v.trim(n):"",i.className!==o&&(i.className=o)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):v.isFunction(e)?this.each((function(i){v(this).toggleClass(e.call(this,i,this.className,t),t)})):this.each((function(){if("string"===i)for(var t,n=0,r=v(this),s=e.match(L)||[];t=s[n++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else"undefined"!==i&&"boolean"!==i||(this.className&&U.set(this,"__className__",this.className),this.className=this.className||!1===e?"":U.get(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",i=0,n=this.length;i=0)return!0;return!1}});var Ge=/\r/g;v.fn.extend({val:function(e){var t,i,n,r=this[0];return arguments.length?(n=v.isFunction(e),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?e.call(this,i,v(this).val()):e)?r="":"number"==typeof r?r+="":v.isArray(r)&&(r=v.map(r,(function(e){return null==e?"":e+""}))),(t=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=v.valHooks[r.type]||v.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(Ge,""):null==i?"":i:void 0}}),v.extend({valHooks:{option:{get:function(e){var t=v.find.attr(e,"value");return null!=t?t:v.trim(v.text(e))}},select:{get:function(e){for(var t,i,n=e.options,r=e.selectedIndex,s="select-one"===e.type||r<0,o=s?null:[],a=s?r+1:n.length,c=r<0?a:s?r:0;c=0)&&(i=!0);return i||(e.selectedIndex=-1),s}}}}),v.each(["radio","checkbox"],(function(){v.valHooks[this]={set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>=0}},p.checkOn||(v.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){v.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}})),v.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}}),v.fn.extend({size:function(){return this.length}}),v.fn.andSelf=v.fn.addBack,v.each({margin:"",padding:"",border:"Width"},(function(e,t){v.cssHooks[e+t]={expand:function(i){for(var n=0,r={},s="string"==typeof i?i.split(" "):[i];n<4;n++)r[e+Y[n]+t]=s[n]||s[n-2]||s[0];return r}},Ie.test(e)||(v.cssHooks[e+t].set=Me)})),v.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)};var Ye=/%20/g,qe=/\[\]$/;function Qe(e,t,i,n){var r;if(v.isArray(t))v.each(t,(function(t,r){i||qe.test(e)?n(e,r):Qe(e+"["+("object"==typeof r?t:"")+"]",r,i,n)}));else if(i||"object"!==v.type(t))n(e,t);else for(r in t)Qe(e+"["+r+"]",t[r],i,n)}v.param=function(e,t){var i,n=[],r=function(e,t){t=v.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=v.ajaxSettings&&v.ajaxSettings.traditional),v.isArray(e)||e.nquery&&!v.isPlainObject(e))v.each(e,(function(){r(this.name,this.value)}));else for(i in e)Qe(i,e[i],t,r);return n.join("&").replace(Ye,"+")},v.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||f;var n=A.exec(e),r=!i&&[];return n?[t.createElement(n[1])]:(n=v.buildFragment([e],t,r),r&&r.length&&v(r).remove(),v.merge([],n.childNodes))};var Ke=n.document.documentElement;function Ze(e){return v.isWindow(e)?e:9===e.nodeType&&e.defaultView}v.offset={setOffset:function(e,t,i){var n,r,s,o,a,c,l=v.css(e,"position"),u=v(e),d={};"static"===l&&(e.style.position="relative"),a=u.offset(),s=v.css(e,"top"),c=v.css(e,"left"),("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1?(o=(n=u.position()).top,r=n.left):(o=parseFloat(s)||0,r=parseFloat(c)||0),v.isFunction(t)&&(t=t.call(e,i,a)),null!=t.top&&(d.top=t.top-a.top+o),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):u.css(d)}},v.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){v.offset.setOffset(this,e,t)}));var t,i,n=this[0],r={top:0,left:0},s=n&&n.ownerDocument;return s?v.contains(t=s.documentElement,n)?(void 0!==n.getBoundingClientRect&&(r=n.getBoundingClientRect()),i=Ze(s),{top:r.top+i.pageYOffset-t.clientTop,left:r.left+i.pageXOffset-t.clientLeft}):r:void 0},position:function(){if(this[0]){var e,t,i=this[0],n={top:0,left:0};return"fixed"===v.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),v.nodeName(e[0],"html")||(n=e.offset()),n.top+=v.css(e[0],"borderTopWidth",!0),n.left+=v.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-v.css(i,"marginTop",!0),left:t.left-n.left-v.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||Ke;e&&!v.nodeName(e,"html")&&"static"===v.css(e,"position");)e=e.offsetParent;return e||Ke}))}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i="pageYOffset"===t;v.fn[e]=function(r){return V(this,(function(e,r,s){var o=Ze(e);if(void 0===s)return o?o[t]:e[r];o?o.scrollTo(i?n.pageXOffset:s,i?s:n.pageYOffset):e[r]=s}),e,r,arguments.length,null)}})),v.each(["top","left"],(function(e,t){v.cssHooks[t]=Re(p.pixelPosition,(function(e,i){if(i)return i=ke(e,t),Pe.test(i)?v(e).position()[t]+"px":i}))})),v.each({Height:"height",Width:"width"},(function(e,t){v.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){v.fn[n]=function(n,r){var s=arguments.length&&(i||"boolean"!=typeof n),o=i||(!0===n||!0===r?"margin":"border");return V(this,(function(t,i,n){var r;return v.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===n?v.css(t,i,o):v.style(t,i,n,o)}),t,s?n:void 0,s,null)}}))})),void 0===(i=function(){return v}.apply(t,[]))||(e.exports=i);var Xe=n.nQuery,Je=n.$;return v.noConflict=function(e){return n.$===v&&(n.$=Je),e&&n.nQuery===v&&(n.nQuery=Xe),v},void 0===r&&(n.nQuery=n.$=v),n.nQuery=v,v},"object"==typeof e.exports?e.exports=n.document?r(n,!0):function(e){if(!e.document)throw new Error("nQuery requires a window with a document");return r(e)}:r(n)},9803:(e,t,i)=>{"use strict";i.d(t,{d:()=>r});var n=i(1611);const r={getAd:function(e){if(window.ntvToutAds&&window.ntvToutAds[e])return window.ntvToutAds[e];const t=n.util.getTopWindow();return t.ntvToutAds&&t.ntvToutAds[e]?t.ntvToutAds[e]:void 0}}},6937:(e,t,i)=>{"use strict";i.d(t,{UN:()=>n,WN:()=>r,Z9:()=>s});let n=function(e){return e[e.TOUT=0]="TOUT",e[e.ARTICLE=1]="ARTICLE",e[e.CONTENT_PREVIEW=2]="CONTENT_PREVIEW",e[e.MOBILE_SDK=3]="MOBILE_SDK",e[e.DFP=4]="DFP",e[e.CONTENT_HUB=5]="CONTENT_HUB",e[e.API=6]="API",e[e.VISITOR_OPT=7]="VISITOR_OPT",e[e.RTB_SERVLET=8]="RTB_SERVLET",e[e.NAI_OPTOUT=9]="NAI_OPTOUT",e[e.GENERIC_PREVIEW=10]="GENERIC_PREVIEW",e[e.PRIVACY_CONSENT=11]="PRIVACY_CONSENT",e[e.SDK_CONFIG=12]="SDK_CONFIG",e[e.CLIENT_ERROR_LOG=13]="CLIENT_ERROR_LOG",e[e.TRACKING=14]="TRACKING",e[e.CONVERSION_TRACKING=15]="CONVERSION_TRACKING",e[e.CONTENT_Q_TRACKING=16]="CONTENT_Q_TRACKING",e[e.RETARGETING=17]="RETARGETING",e[e.CONTENT_REQUEST_TOUT_PREVIEW=18]="CONTENT_REQUEST_TOUT_PREVIEW",e[e.CONTENT_REQUEST_ARTICLE_PREVIEW=19]="CONTENT_REQUEST_ARTICLE_PREVIEW",e[e.EXCHANGE_INTEGRATION=20]="EXCHANGE_INTEGRATION",e[e.PREBID_ADAPTER=21]="PREBID_ADAPTER",e[e.ADSERVINGAPI=22]="ADSERVINGAPI",e[e.VISITOR_DATA_DELETE=23]="VISITOR_DATA_DELETE",e}({}),r=function(e){return e[e.NATIVO=0]="NATIVO",e[e.THIRD_PARTY_ADSERVER=1]="THIRD_PARTY_ADSERVER",e[e.MRAID=3]="MRAID",e[e.EXCHANGE=4]="EXCHANGE",e[e.HEADER=5]="HEADER",e[e.SERVERSIDE_HEADER=6]="SERVERSIDE_HEADER",e[e.AMAZON_CXM=7]="AMAZON_CXM",e[e.PREBID_SERVER=8]="PREBID_SERVER",e[e.APPLE_NEWS=9]="APPLE_NEWS",e}({}),s=function(e){return e[e.ARTICLE=0]="ARTICLE",e[e.DISPLAY=2]="DISPLAY",e[e.CLICK_TO_PLAY_VIDEO=3]="CLICK_TO_PLAY_VIDEO",e[e.CAROUSEL=4]="CAROUSEL",e[e.SCROLL_TO_PLAY_VIDEO=5]="SCROLL_TO_PLAY_VIDEO",e[e.STANDARD_DISPLAY=6]="STANDARD_DISPLAY",e[e.STORY=7]="STORY",e}({})},2603:(e,t,i)=>{"use strict";i.d(t,{e:()=>n});const n={IMAGE:1,JAVASCRIPT:2,HTML:600}},255:(e,t,i)=>{"use strict";i.d(t,{UT:()=>n,bB:()=>r});i(278),i(6265);const n={impression:1,"viewable-mrc50":2,"viewable-mrc100":3,"viewable-video50":4},r={...n,"video-start":600,"timed-video-event":601,"video-complete":602,"video-error":603,"px-in-view":604,"user-interaction":605,"timed-video-halted":606,"time-on-content-trigger-event":607,"time-on-content-halted-event":608,"survey-slide-in-view":628};Object.entries(r).reduce((e,t)=>{let[i,n]=t;return e[n]=i,e},{})},3980:(e,t,i)=>{"use strict";i.d(t,{r:()=>g});i(560),i(6265),i(1057);function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var o=new WeakMap,a=new WeakSet;class c{constructor(){var e,t;r(e=this,t=a),t.add(e),function(e,t,i){r(e,t),t.set(e,i)}(this,o,new Map),n(this,"eventMap",new Map),n(this,"groupMap",new Map)}addEventTracker(e){s(a,this,l).call(this,e),s(a,this,u).call(this,e)}}function l(e){var t;const{event:i}=e.data;this.eventMap.has(i)||this.eventMap.set(i,[]),null===(t=this.eventMap.get(i))||void 0===t||t.push(e)}function u(e){const{eventgroup:t}=e.data.ext;if(null==t||""==t.trim())return;this.groupMap.has(t)||this.groupMap.set(t,[]);const i=this.groupMap.get(t);i.push(e),e.registerEventGroup(i)}var d=i(6664),h=i(4402),p=i(5481);function f(e){const t=[],i=[];for(const n of e)m(n)?t.push(n):i.push(n);if(i.length>0){const e=new h.X("Invalid ORTB event trackers found");e.data={invalidEventTrackers:i},p.Z.postError(e)}return[t,i]}function m(e){return!!(e&&"number"==typeof e.event&&"number"==typeof e.method&&v(e.url,"string")&&v(e.customdata,"object")&&v(e.ext,"object"))}const v=(e,t)=>null==e||typeof e===t;function g(e){return e?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new d.V;const i=new c,[n]=f(e);for(const e of n){const n=Object.assign({},e);try{const e=t.createTracker(n);i.addEventTracker(e)}catch(e){const t=new h.X(e.message);t.data={eventTrackerData:n},p.Z.postError(t)}}return i}(e):new c}},7002:(e,t,i)=>{"use strict";i.d(t,{x:()=>r});i(1057),i(6265);function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class r{static store(e){try{const t=this.generateCacheKey(e);return this.cache.size>=this.MAX_CACHE_SIZE&&this.evictOldest(),this.cache.set(t,e),t}catch(e){throw console.error("Failed to cache enhanced ad data:",e),e}}static retrieve(e){return this.cache.get(e)||null}static has(e){return this.cache.has(e)}static clear(){this.cache.clear()}static delete(e){return this.cache.delete(e)}static generateCacheKey(e){if(!e.adVersionPlacement){const t="Enhanced Ad Cache Error: AdVersionPlacement missing - cannot generate cache key";throw console.error(t,e),new Error(t)}return e.adVersionPlacement}static evictOldest(){const e=this.cache.keys().next().value;e&&this.cache.delete(e)}}n(r,"cache",new Map),n(r,"MAX_CACHE_SIZE",50)},9483:(e,t,i)=>{"use strict";i.d(t,{U:()=>n});const n={SURVEY:"survey",IMAGE:"image",VIDEO:"video",HTML:"html"}},7625:(e,t,i)=>{"use strict";i.d(t,{r:()=>c});i(1057);var n=i(7002),r=i(726),s=i(5481),o=i(4402),a=i(1611);class c{static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=n.x.retrieve(e);if(!i)throw s.Z.postError(new o.X("Enhanced ad failed to initialize. Data not found",{avpId:e})),new Error("Enhanced ad data not found for avpId: ".concat(e));if(!r.oT[i.type])return void console.warn("Unknown enhanced ad type: ".concat(i.type));i.trackingConfig=a.util.mergeDefined(i.trackingConfig,t.tracking);const c={...i,targetElement:t.targetElement,uid:t.uid||i.uid,...t.customConfig};return new r.oT[i.type](c)}static createDirect(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r.oT[e.type])throw new Error("Unknown enhanced ad type: ".concat(e.type));const i={...e,targetElement:t.targetElement,uid:t.uid||e.uid,...t.customConfig};return new r.oT[e.type](i)}static canCreate(e){return n.x.has(e)}static getCachedType(e){const t=n.x.retrieve(e);return t?t.type:null}}},7200:(e,t,i)=>{"use strict";i.d(t,{X:()=>l});i(1057),i(278),i(6265);var n=i(85),r=i(2784),s=i(3980),o=i(5798),a=i(7002),c=i(3798);class l{static async processDynamicAssets(e){try{const t=await(0,o.fC)(e,{}),i=(0,s.r)(e.eventtrackers);return{adType:e.adType,config:e.config||{},slideConfig:e.slideConfig,slideshowConfig:e.slideshowConfig,eventtrackers:e.eventtrackers||[],eventTrackerMaps:i,content:t,...e}}catch(t){throw console.error("Enhanced Ad Pipeline Error: Failed to process dynamic assets",t,e),new Error("Failed to process dynamic assets: ".concat(t.message))}}static cacheDynamicAssets(e){try{const t=this.transform(e);return{key:a.x.store(t),data:t}}catch(t){throw console.error("Enhanced Ad Pipeline Error: Failed to cache dynamic assets",t,e),new Error("Failed to cache dynamic assets: ".concat(t.message))}}static transform(e){return this.pipe(e,this.extractRequiredFields,this.useStoriesConfig,this.addTrackingConfiguration,this.validate)}static pipe(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;nt(e),e)}static extractRequiredFields(e){var t,i,n;const r=(null===(t=e.slideConfig)||void 0===t?void 0:t.adVersionPlacement)||(null===(i=e.config)||void 0===i?void 0:i.AdVersionPlacementId);if(!r){const t="Enhanced Ad Error: AdVersionPlacement missing from server data - cannot create cache key";throw console.error(t,e),new Error(t)}const s=null===(n=e.config)||void 0===n?void 0:n.adWrapperClass;if(!s){const t="Enhanced Ad Error: adWrapperClass missing from server data - cannot create DOM identifier";throw console.error(t,e),new Error(t)}let o;if(!s.startsWith("ntv")){const t='Enhanced Ad Error: adWrapperClass "'.concat(s,'" has invalid format - cannot extract uid');throw console.error(t,e),new Error(t)}return o=s.slice(3),{...e,adVersionPlacement:r,uid:o,eventTrackerMaps:e.eventTrackerMaps||{}}}static useStoriesConfig(e){try{var t;const i=(0,n.wb)(e);return e.content&&Array.isArray(e.content)&&i.slideAssetsFromParsedDynamicAssets(e.content),{type:e.adType,adType:e.adType,uid:e.uid,adVersionPlacement:e.adVersionPlacement,eventTrackerMaps:e.eventTrackerMaps,adParams:i.adParams,trackingConfig:i.trackingConfig,storyConfig:i.storyConfig,assetDefaults:i.assetDefaults,slideshowConfig:i.slideshowConfig,slideAssets:i.slideAssets,templates:(null===(t=i.storyConfig)||void 0===t?void 0:t.templates)||{}}}catch(t){throw console.error("Enhanced Ad Error: Failed to process with StoriesConfig",t,e),t}}static addTrackingConfiguration(e){try{let t=new Map;const i=e.eventTrackerMaps&&e.eventTrackerMaps.eventMap&&"function"==typeof e.eventTrackerMaps.eventMap.entries;return"VERTICAL_VIDEO"===e.type&&i&&(t=(0,r.R)(e.eventTrackerMaps)),e.trackingConfig.tracker=e.trackingConfig.tracker||new c.f(e.trackingConfig),e.trackingConfig={...e.trackingConfig,adEventMap:t,eventTrackerMaps:e.eventTrackerMaps||{}},e}catch(t){return console.error("Enhanced Ad Error: Failed to add tracking configuration",t,e),e.trackingConfig={...e.trackingConfig,adEventMap:new Map,eventTrackerMaps:{}},e}}static validate(e){if(!e.type)throw new Error("Enhanced Ad Error: type missing from processed data");if(!e.adParams)throw new Error("Enhanced Ad Error: adParams missing from processed data");if(!e.trackingConfig)throw new Error("Enhanced Ad Error: trackingConfig missing from processed data");if(!e.uid)throw new Error("Enhanced Ad Error: uid missing from processed data");if(!e.adVersionPlacement)throw new Error("Enhanced Ad Error: adVersionPlacement missing from processed data");return e}}},29:(e,t,i)=>{"use strict";i.d(t,{NM:()=>h,ZP:()=>d});i(1057),i(6265);var n=i(2189);function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t){return e.get(o(e,t))}function o(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var a=new WeakMap,c=new WeakSet;class l extends n.R{constructor(e,t){var i,n;super(t),r(i=this,n=c),n.add(i),function(e,t,i){r(e,t),t.set(e,i)}(this,a,void 0),function(e,t,i){e.set(o(e,t),i)}(a,this,e);for(let e of this.trackableEvents)o(c,this,u).call(this,e)}addTrackableEvent(e){super.addTrackableEvent(e),o(c,this,u).call(this,e)}}function u(e){e.fireOnce?s(a,this).subscribeOnce(e.eventName,this.fire.bind(this,e.eventName)):s(a,this).subscribe(e.eventName,this.fire.bind(this,e.eventName))}class d extends l{constructor(e,t){void 0!==e.pubSub?super(e.pubSub,t):console.error("ComponentEventTracker: component does not have pubSub")}}class h extends n.R{constructor(e,t){super(t),e.inlineTracker=this}}},4075:(e,t,i)=>{"use strict";i.d(t,{FK:()=>b,LP:()=>g,ZP:()=>v,x$:()=>y});i(1057),i(560),i(6265);var n=i(3798),r=i(29),s=i(3444),o=i(6101),a=i(9483),c=i(9492);function l(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function u(e,t){return e.get(h(e,t))}function d(e,t,i){return e.set(h(e,t),i),i}function h(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,f=new WeakMap,m=new WeakMap;class v{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.p.ACTIVE;l(this,p,void 0),l(this,f,void 0),l(this,m,[]),d(p,this,i),d(f,this,[...e.slideComponents]);const o=new n.f(t);for(const e of u(f,this)){const t=new r.ZP(e,{tracker:o});u(m,this).push(t)}}addTrackableEventConfig(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;u(f,this).forEach((i,n)=>{if(t&&i.type!==t)return;const r=Object.assign({},e,{eventName:u(p,this)});u(m,this)[n].addTrackableEvent(r)})}}class g extends v{constructor(e,t){super(e,t,s.p.ACTIVE),this.addTrackableEventConfig(b.StoriesSlideView),this.addTrackableEventConfig(b.SurveySlideView,a.U.SURVEY)}}class y extends v{constructor(e,t){super(e,t,s.p.ACTIVE_IN_VIEW),this.addTrackableEventConfig(b.StoriesSlideView),this.addTrackableEventConfig(b.SurveySlideView,a.U.SURVEY)}}const b={StoriesSlideView:{actionTypes:[c.a.gallery],queryStringDataMap:{slideId:o.z1.SLIDE_ID},fireOnce:!0},SurveySlideView:{actionTypes:[c.a.surveyView],queryStringDataMap:{slideId:o.xc.SURVEY_ID},fireOnce:!0}}},701:(e,t,i)=>{"use strict";i.d(t,{_:()=>Kt,Z:()=>ni});i(1057),i(6265);var n,r,s,o=i(1611),a=(i(560),i(6801),i(4043),i(7267),i(3289));function c(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class l{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;c(this,"timers",new Set),c(this,"intervalId",null),c(this,"lastTickTime",0),c(this,"tickRate",void 0),c(this,"paused",!1),this.tickRate=e}addTimer(e){this.timers.add(e),this.intervalId||this.paused||this.start()}removeTimer(e){this.timers.delete(e),0===this.timers.size&&this.stop()}pause(){this.paused||(this.paused=!0,this.stop())}resume(){this.paused&&(this.paused=!1,this.timers.size>0&&this.start())}reset(){this.stop(),this.timers.clear(),this.paused=!1,this.lastTickTime=0}start(){this.lastTickTime=performance.now(),this.intervalId=setInterval(this.update.bind(this),this.tickRate)}stop(){this.intervalId&&clearInterval(this.intervalId),this.intervalId=null}update(){if(this.paused)return;const e=performance.now();this.lastTickTime=e;for(const t of this.timers)t.shouldTrigger(e)&&t.trigger()}}class u{static getInstance(){return u.instance||(u.instance=new l(arguments.length>0&&void 0!==arguments[0]?arguments[0]:50),window.addEventListener("focus",()=>u.instance.start()),window.addEventListener("blur",()=>u.instance.stop())),u.instance}}function d(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}n=u,s=void 0,(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r="instance"))in n?Object.defineProperty(n,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[r]=s;class h extends a.B7{constructor(e,t,i){super(e,i),d(this,"clock",void 0),this.clock=t||u.getInstance()}start(){super.start(),this.clock.addTimer(this)}pause(){this.running&&(super.pause(),this.clock.removeTimer(this))}resume(){super.resume(),this.clock.addTimer(this)}reset(){super.reset(),this.clock.removeTimer(this)}stop(){this.pause(),this.reset()}}var p=i(8913);function f(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class m{constructor(e,t,i){f(this,"timer",void 0),f(this,"intervals",void 0),f(this,"currentIndex",0),f(this,"totalElapsed",0),f(this,"clock",void 0),f(this,"pubSub",new p.ZP),f(this,"triggerEventKey",void 0),f(this,"haltEventKey",void 0),this.intervals=e,this.clock=t,this.triggerEventKey=(null==i?void 0:i.triggerEvent)||a.vo.TIME_TRIGGER_EVENT,this.haltEventKey=(null==i?void 0:i.haltEvent)||a.vo.TIME_PAUSE_EVENT,this.timer=new a.B7(this.intervals[0],i),this.timer.addEventListener(this.triggerEventKey,e=>this.handleInterval(e)),this.timer.addEventListener(this.haltEventKey,e=>this.handleHalt(e))}handleHalt(e){this.pubSub.publish(this.haltEventKey,{...e,index:this.currentIndex,totalElapsed:this.totalElapsed})}handleInterval(e){const t=this.intervals[this.currentIndex];if(this.totalElapsed+=t,this.currentIndex++,this.currentIndexe.has(t),isEmpty:()=>0===e.size,getAll:()=>e}}function T(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class S{constructor(e){T(this,"timer",void 0),T(this,"reasons",void 0),this.timer=e,this.reasons=w()}pauseFor(e){this.reasons.add(e)&&this.timer.pause()}resumeFor(e){this.reasons.remove(e)&&this.timer.resume()}isPausedFor(e){return this.reasons.has(e)}getPauseReasons(){return this.reasons.getAll()}isPaused(){return!this.reasons.isEmpty()}start(){this.timer.start()}reset(){this.reasons=w(),this.timer.reset()}addEventListener(e,t){this.timer.addEventListener(e,t)}removeEventListener(e,t){this.timer.removeEventListener(e,t)}getUnderlyingTimer(){return this.timer}}var A=i(6260);i(278);let I=function(e){return e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAMEL_CASE="camelCase",e.PASCAL_CASE="pascalCase",e.SNAKE_CASE="snakeCase",e.KEBAB_CASE="kebabCase",e.TITLE_CASE="titleCase",e.SENTENCE_CASE="sentenceCase",e.TRIM="trim",e.TRIM_LOWERCASE="trimLowercase",e.TRIM_UPPERCASE="trimUppercase",e}({});const P={[I.LOWERCASE]:e=>e.toLowerCase(),[I.UPPERCASE]:e=>e.toUpperCase(),[I.CAMEL_CASE]:e=>e.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>0===t?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,""),[I.PASCAL_CASE]:e=>e.replace(/(?:^\w|[A-Z]|\b\w)/g,e=>e.toUpperCase()).replace(/\s+/g,""),[I.SNAKE_CASE]:e=>e.replace(/\W+/g," ").split(/ |\B(?=[A-Z])/).map(e=>e.toLowerCase()).join("_"),[I.KEBAB_CASE]:e=>e.replace(/\W+/g," ").split(/ |\B(?=[A-Z])/).map(e=>e.toLowerCase()).join("-"),[I.TITLE_CASE]:e=>e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()),[I.SENTENCE_CASE]:e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),[I.TRIM]:e=>e.trim(),[I.TRIM_LOWERCASE]:e=>e.trim().toLowerCase(),[I.TRIM_UPPERCASE]:e=>e.trim().toUpperCase()};function C(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(null==e)return i;if("string"!=typeof e)return i;const n=P[t];if(!n)return console.warn("Unsupported string format: ".concat(t)),e;try{return n(e)}catch(n){return console.warn("String normalization failed for format ".concat(t,":"),n),e||i}}function k(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function R(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function D(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var O=new WeakSet;class _{constructor(e){k(this,O),R(this,"clock",void 0),R(this,"timeTrackerEventMap",void 0),R(this,"positionTimerGroup",void 0),R(this,"sustainedTimerGroup",void 0),R(this,"timersByEventKey",new Map),R(this,"pubSub",void 0),this.clock=u.getInstance(),this.timeTrackerEventMap=e,this.positionTimerGroup=new g,this.sustainedTimerGroup=new g,this.pubSub=new p.ZP,D(O,this,L).call(this)}addEventListener(e,t){this.pubSub.subscribe(e,t)}removeEventListener(e,t){this.pubSub.unsubscribe(e,t)}emit(e,t){this.pubSub.publish(e,t)}dispatchEvent(e,t){this.pubSub.publish(e,t)}dispose(){this.positionTimerGroup.resetAll(),this.sustainedTimerGroup.resetAll(),this.timeTrackerEventMap.clear(),this.pubSub.clear()}}function L(){for(const[e,t]of this.timeTrackerEventMap.entries())this.timersByEventKey.has(e)||this.timersByEventKey.set(e,[]),t.forEach(t=>{const i=C(t.data.ext.timingType,I.LOWERCASE,A.D.Position),n=t.data.ext.times||[],r=e.includes("time-on-content")?e.replace("trigger","halted"):a.vo.TIME_PAUSE_EVENT,s={triggerEvent:e,haltEvent:r},o=D(O,this,N).call(this,t,n,i,s);o&&(this.timersByEventKey.get(e).push(o),o.addEventListener(s.triggerEvent,e=>{t.trackTimerEvent(e)}),o.addEventListener(s.haltEvent,e=>{this.dispatchEvent(r,{...e})}))})}function N(e,t,i,n){const r=i===A.D.Sustained?this.sustainedTimerGroup:this.positionTimerGroup;let s;if(1===t.length?s=D(O,this,x).call(this,t[0],n):t.length>1&&(s=D(O,this,V).call(this,t,n)),s){const e=new S(s);return r.addTimer(e),e}}function x(e,t){return new h(e,this.clock,t)}function V(e,t){return new m(e,this.clock,t)}var M=i(9866);function U(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}function j(e,t){return Object.values(e).includes(t)}var F=i(7730);const B={ERROR:"ad-event-error",RENDER:"ad-event-render",REMOVED:"ad-event-removed",IN_VIEW:"ad-event-in-view",OUT_OF_VIEW:"ad-event-out-of-view",IN_VIEW_50:"ad-event-in-view-50",OUT_OF_VIEW_50:"ad-event-out-of-view-50",IN_VIEW_100:"ad-event-in-view-100",OUT_OF_VIEW_100:"ad-event-out-of-view-100",VIEWABILITY_CHANGE:"ad-event-viewability-change",CLICK:"ad-event-click"};const W=B;i(8324);function H(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class z{constructor(e,t,i){H(this,"element",void 0),H(this,"observer",void 0),H(this,"pubSub",void 0),H(this,"lastViewPercentage",0),H(this,"config",void 0),this.element=e,this.pubSub=t,this.config={thresholds:(null==i?void 0:i.thresholds)||z.DEFAULT_CONFIG.thresholds,thresholdEvents:(null==i?void 0:i.thresholdEvents)||z.DEFAULT_CONFIG.thresholdEvents},this.observer=new IntersectionObserver(this.handleIntersection.bind(this),{threshold:this.config.thresholds}),this.observer.observe(e)}handleIntersection(e){const t=e[0];if(!t)return;const i=t.intersectionRatio;this.pubSub.publish(W.VIEWABILITY_CHANGE,{viewPercentage:i,element:this.element}),this.config.thresholdEvents&&this.config.thresholdEvents.forEach((e,t)=>{this.lastViewPercentage=t?this.pubSub.publish(e.above,{element:this.element}):this.lastViewPercentage>=t&&i{this.pubSub.subscribe(e,t=>{const i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:t});this.element.dispatchEvent(i)})})}reportError(e){this.errorHandler.handleError(e)}destroy(){this.viewabilityTracker.destroy(),this.renderTracker.destroy(),this.clickTracker.destroy(),this.errorHandler.destroy(),this.pubSub.clear(),this.domDispatchInitialized=!1}updateViewabilityConfig(e){this.viewabilityTracker.updateConfig({thresholds:e.thresholds,thresholdEvents:e.customThresholdEvents})}addEventListener(e,t){this.pubSub.subscribeWithCache(e,t,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}addEventListenerOnce(e,t){this.pubSub.subscribeOnceWithCache(e,t,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}removeEventListener(e,t){this.pubSub.unsubscribe(e,t)}emit(e,t){this.pubSub.emit(e,t)}}var $=i(255);const ee={[$.UT["viewable-mrc50"]]:{type:"timer",triggerEventTimerConfig:{startEvent:W.IN_VIEW_50,stopEvent:W.OUT_OF_VIEW_50},times:[1e3],timingType:A.D.Continuous},[$.UT["viewable-mrc100"]]:{type:"timer",triggerEventTimerConfig:{startEvent:W.IN_VIEW_100,stopEvent:W.OUT_OF_VIEW_100},times:[1e3],timingType:A.D.Continuous},[$.UT["viewable-video50"]]:{type:"timer",triggerEventTimerConfig:{startEvent:W.IN_VIEW_50,stopEvent:W.OUT_OF_VIEW_50},times:[1e3],timingType:A.D.Continuous},[$.UT.impression]:{type:"direct",adEvent:W.RENDER}};function te(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class ie extends h{constructor(e,t,i){super(e),te(this,"eventSystem",void 0),te(this,"config",void 0),this.eventSystem=t,this.config=i,this.eventSystem.addEventListener(this.config.startEvent,this.start.bind(this)),this.eventSystem.addEventListener(this.config.stopEvent,this.stop.bind(this))}start(){super.start()}stop(){this.pause(),this.reset()}}function ne(e,t,i){new ie(i.times[0],t,i.triggerEventTimerConfig).addEventListener(a.vo.TIME_TRIGGER_EVENT,t=>{for(const i of e)i.trackTimerEvent(t)})}function re(e,t,i){t.addEventListener(i.adEvent,t=>{for(const i of e)i.track(t)},!0)}var se=i(2492),oe=i(9492),ae=i(6101);let ce=function(e){return e.STATE_CHANGE="video:state:change",e.ENTER_IDLE="video:state:enter:idle",e.ENTER_SLIDE_PAUSED="video:state:enter:slidePaused",e.ENTER_OUT_OF_FOCUS="video:state:enter:outOfFocus",e.RETURN_FROM_OUT_OF_FOCUS="video:state:returnFromOutOfFocus",e.SLIDE_TYPE_CHANGE="video:state:slideTypeChange",e}({});function le(e){return"video:slide:active:".concat(e)}function ue(e){return"video:slide:inactive:".concat(e)}function de(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class he{constructor(e,t,i){de(this,"timer",void 0),de(this,"pauseOnSlideTypes",void 0),de(this,"subscriptions",[]),this.timer=e,this.pauseOnSlideTypes=new Set(t);const n=i.pubSub;t.forEach(e=>{const t=le(e),i=n.subscribe(t,()=>{this.timer.pauseFor(b)});this.subscriptions.push({event:t,key:i})}),t.forEach(e=>{const t=ue(e),i=n.subscribe(t,()=>{this.timer.resumeFor(b)});this.subscriptions.push({event:t,key:i})}),this.handleInitialState(i)}handleInitialState(e){const t=e.getCurrentSlideType();t&&this.pauseOnSlideTypes.has(t)&&this.timer.pauseFor(b)}dispose(e){this.subscriptions.forEach(t=>{let{event:i,key:n}=t;e.unsubscribeByKey(i,n)}),this.subscriptions=[]}}function pe(e,t,i){fe(e,t),t.set(e,i)}function fe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function me(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function ve(e,t){return e.get(ye(e,t))}function ge(e,t,i){return e.set(ye(e,t),i),i}function ye(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}const be={607:{pauseOnSlideTypes:["survey"]}};var Ee=new WeakMap,we=new WeakMap,Te=new WeakMap,Se=new WeakMap,Ae=new WeakSet;class Ie{constructor(e,t){if(function(e,t){fe(e,t),t.add(e)}(this,Ae),me(this,"verticalVideo",void 0),pe(this,Ee,void 0),pe(this,we,void 0),pe(this,Te,[]),pe(this,Se,void 0),this.verticalVideo=e,!this.verticalVideo.element)throw new Error("Vertical video element is not defined");const i=t.eventTrackerMaps.eventMap,n=t.adEventMap,[r,s]=(0,F.Y)(()=>new J({id:this.verticalVideo.uid,element:this.verticalVideo.element}));null==r&&(s.init(),function(e,t){for(const i of Object.values($.UT)){if(!e.has(i))continue;const n=e.get(i);if(null==n||0===n.length)continue;const r=ee[i];r&&("timer"===r.type?ne(n,t,r):"direct"===r.type&&re(n,t,r))}}(i,s));const o=new Map,a=new Map;for(const[e,t]of n.entries())for(const i of t)i.type===M.Z.TimeEventTracker&&Ce(e)?U(o,e,i):U(a,e,i);if(a.has(se.C.IN_VIEW)||this.verticalVideo.pubSub.subscribe(se.C.IN_VIEW,e=>{const i="&".concat(ae.xc.SURVEY_ID,"=").concat(e.slideId);t.tracker.fireTracking([oe.a.surveyView],i)}),o.size>0){ge(Se,this,new _(o)),ge(Ee,this,ve(Se,this).positionTimerGroup),ge(we,this,ve(Se,this).sustainedTimerGroup);for(const[e]of a.entries())ve(Se,this).addEventListener(e,t=>{const i=a.get(e);if(i&&i.length>0)for(const e of i)e.track(t)});ye(Ae,this,Pe).call(this,o)}a.forEach((e,t)=>{this.verticalVideo.pubSub.subscribe(t,t=>{for(const i of e)i.track(t)})})}startAllTimers(){var e,t;null===(e=ve(Ee,this))||void 0===e||e.startAll(),null===(t=ve(we,this))||void 0===t||t.startAll()}pauseAllTimers(){var e,t;null===(e=ve(Ee,this))||void 0===e||e.pauseAllFor(y),null===(t=ve(we,this))||void 0===t||t.pauseAllFor(y)}resumeAllTimers(){var e,t;null===(e=ve(Ee,this))||void 0===e||e.resumeAllFor(y),null===(t=ve(we,this))||void 0===t||t.resumeAllFor(y)}stopAllTimers(){var e,t;null===(e=ve(Ee,this))||void 0===e||e.resetAll(),null===(t=ve(we,this))||void 0===t||t.resetAll()}resumeSustainedTimers(){var e;null===(e=ve(we,this))||void 0===e||e.resumeAllFor(y)}pausePositionalTimers(){var e;null===(e=ve(Ee,this))||void 0===e||e.pauseAllFor(E)}resumePositionalTimers(){var e;null===(e=ve(Ee,this))||void 0===e||e.resumeAllFor(E)}dispose(){ve(Te,this).forEach(e=>{e.dispose(this.verticalVideo.getStateManager().pubSub)}),ge(Te,this,[]),ge(Ee,this,void 0),ge(we,this,void 0),ge(Se,this,void 0)}}function Pe(e){if(ve(Se,this))for(const[t,i]of e.entries())for(const e of i){let i=e.data.ext.pauseOnSlideTypes;if(!i&&e.data.event){const t=be[e.data.event];null!=t&&t.pauseOnSlideTypes&&(i=t.pauseOnSlideTypes)}if(i&&i.length>0){const e=ve(Se,this).timersByEventKey.get(t);if(e&&e.length>0)for(const t of e){const e=new he(t,i,this.verticalVideo.getStateManager());ve(Te,this).push(e)}}}}function Ce(e){return j(a.vo,e)||j(a.U6,e)}var ke=i(418),Re=i(3341),De=i(3454),Oe=i(9655),_e=i(3444);function Le(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class Ne{constructor(){Le(this,"type","AutoAdvanceStrategy"),Le(this,"command",void 0)}start(e){this.command=e}stop(){this.command=null}}function xe(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function Ve(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Me(e,t){return e.get(je(e,t))}function Ue(e,t,i){return e.set(je(e,t),i),i}function je(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var Fe=new WeakMap;class Be extends Ne{constructor(e){super(),Ve(this,"type","TimerAutoAdvanceStrategy"),xe(this,Fe,void 0),Ue(Fe,this,new h(e,u.getInstance())),Me(Fe,this).addEventListener(a.vo.TIME_TRIGGER_EVENT,()=>{this.command&&this.command()})}start(e){super.start(e),Me(Fe,this).start()}pause(){Me(Fe,this).pause()}resume(){Me(Fe,this).resume()}stop(){super.stop(),Me(Fe,this).pause(),Me(Fe,this).reset()}updateDuration(e){Me(Fe,this).pause(),Me(Fe,this).reset(),Ue(Fe,this,new h(e,u.getInstance())),Me(Fe,this).addEventListener(a.vo.TIME_TRIGGER_EVENT,()=>{this.command&&this.command()}),this.command&&Me(Fe,this).start()}}function We(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function He(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function ze(e,t){return e.get(Ye(e,t))}function Ge(e,t,i){return e.set(Ye(e,t),i),i}function Ye(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var qe=new WeakMap,Qe=new WeakMap;class Ke extends Ne{constructor(e,t){super(),He(this,"type","EventAutoAdvanceStrategy"),We(this,qe,void 0),We(this,Qe,void 0),Ge(qe,this,e),Ge(Qe,this,t),ze(qe,this).subscribeOnce(t,()=>{this.handleEvent()})}handleEvent(){null!=this.command&&this.command()}start(e){super.start(e)}stop(){super.stop()}}var Ze=new WeakMap,Xe=new WeakMap;class Je extends Ke{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3;super(e,t),We(this,Ze,void 0),We(this,Xe,null),Ge(Ze,this,i)}handleEvent(){ze(Xe,this)&&clearTimeout(ze(Xe,this)),Ge(Xe,this,window.setTimeout(()=>{null!=this.command&&this.command()},ze(Ze,this)))}}var $e=i(7615),et=i(1125);function tt(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function it(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function nt(e,t){return e.get(st(e,t))}function rt(e,t,i){return e.set(st(e,t),i),i}function st(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var ot=new WeakMap,at=new WeakMap,ct=new WeakMap,lt=new WeakMap;class ut extends Ne{constructor(e){super(),it(this,"type","VideoStateAutoAdvanceStrategy"),tt(this,ot,void 0),tt(this,at,null),tt(this,ct,null),tt(this,lt,!1),rt(ot,this,e)}start(e){super.start(e),rt(at,this,e=>{var t;e.index!==nt(ot,this).index||nt(lt,this)||(null===(t=this.command)||void 0===t||t.call(this))}),rt(ct,this,e=>{var t;e.index!==nt(ot,this).index||nt(lt,this)||(null===(t=this.command)||void 0===t||t.call(this))}),nt(ot,this).pubSub.subscribe($e.c.VIDEO_END,nt(at,this)),nt(ot,this).pubSub.subscribe(et.c.VIDEO_ERROR,nt(ct,this))}pause(){rt(lt,this,!0),nt(ot,this).pause&&nt(ot,this).pause()}resume(){rt(lt,this,!1),nt(ot,this).start&&nt(ot,this).start()}stop(){super.stop(),nt(at,this)&&nt(ot,this).pubSub.unsubscribe&&(nt(ot,this).pubSub.unsubscribe($e.c.VIDEO_END,nt(at,this)),rt(at,this,null)),nt(ct,this)&&nt(ot,this).pubSub.unsubscribe&&(nt(ot,this).pubSub.unsubscribe(et.c.VIDEO_ERROR,nt(ct,this)),rt(ct,this,null)),rt(lt,this,!1)}}var dt=i(9483);function ht(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function pt(e,t){return e.get(mt(e,t))}function ft(e,t,i){return e.set(mt(e,t),i),i}function mt(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var vt=function(e){return e.IDLE="idle",e.RUNNING="running",e.PAUSED="paused",e.COMPLETED="completed",e}(vt||{});const gt={[vt.IDLE]:new Set([vt.RUNNING]),[vt.RUNNING]:new Set([vt.COMPLETED,vt.IDLE,vt.PAUSED]),[vt.PAUSED]:new Set([vt.RUNNING,vt.IDLE]),[vt.COMPLETED]:new Set([vt.IDLE])};var yt=new WeakMap,bt=new WeakMap,Et=new WeakMap,wt=new WeakMap,Tt=new WeakMap,St=new WeakMap,At=new WeakMap;class It{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht(this,yt,0),ht(this,bt,[]),ht(this,Et,null),ht(this,wt,vt.IDLE),ht(this,Tt,void 0),ht(this,St,void 0),ht(this,At,void 0),this.slideshowComponent=e;const i=this.slideshowComponent.components;if(null!=i&&0!==i.length){ft(Tt,this,t.onStrategyStart||(()=>{})),ft(St,this,t.onStrategyComplete||(()=>{})),ft(At,this,t.onAutoAdvanceComplete||(()=>{}));for(const e of i)pt(bt,this).push(Ct(e));i.forEach((e,t)=>{e.pubSub.subscribe(_e.p.DURATION_CHANGE,e=>{e.index===t&&this.updateStrategyDuration(t,e.duration)})})}else console.error("[StoriesViewerAutoAdvance] No slide components found")}transitionToState(e){gt[pt(wt,this)].has(e)?ft(wt,this,e):console.warn("[StoriesViewerAutoAdvance] Invalid state transition: ".concat(pt(wt,this)," → ").concat(e))}advanceSlide(){if(pt(wt,this)!==vt.RUNNING)return;const e=pt(yt,this)+1;if(e>=pt(bt,this).length)return this.cleanupCurrentStrategy(),this.transitionToState(vt.COMPLETED),void pt(At,this).call(this);this.slideshowComponent.goToNext(),ft(yt,this,e),this.applyStrategy()}cleanupCurrentStrategy(){pt(Et,this)&&(pt(Et,this).stop(),ft(Et,this,null))}pauseCurrentStrategy(){pt(Et,this)&&"pause"in pt(Et,this)&&pt(Et,this).pause()}resumeCurrentStrategy(){pt(Et,this)&&"resume"in pt(Et,this)&&pt(Et,this).resume()}applyStrategy(){pt(wt,this)===vt.RUNNING&&(this.cleanupCurrentStrategy(),ft(Et,this,pt(bt,this)[pt(yt,this)]),pt(Et,this)&&(pt(Tt,this).call(this,pt(Et,this)),pt(Et,this).start(()=>{pt(wt,this)===vt.RUNNING&&(pt(St,this).call(this,pt(Et,this)),this.advanceSlide())})))}start(){pt(wt,this)!==vt.IDLE&&pt(wt,this)!==vt.PAUSED||(pt(bt,this).length?pt(wt,this)===vt.PAUSED?(this.transitionToState(vt.RUNNING),this.resumeCurrentStrategy()):(this.transitionToState(vt.RUNNING),this.applyStrategy()):console.warn("[StoriesViewerAutoAdvance] Cannot start: no strategies available"))}pause(){pt(wt,this)===vt.RUNNING&&(this.pauseCurrentStrategy(),this.transitionToState(vt.PAUSED))}resume(){pt(wt,this)===vt.PAUSED&&this.start()}stop(){pt(wt,this)!==vt.IDLE&&(this.cleanupCurrentStrategy(),this.transitionToState(vt.IDLE))}reset(){this.stop(),ft(yt,this,0)}updateStrategyDuration(e,t){if(e>=0&&e0}(t)?new Je(e.pubSub,_e.p.INTERACTION,t.slideAdvanceDelay):new Ke(e.pubSub,_e.p.INTERACTION);const i=(null==t?void 0:t.slideDuration)||(null==t?void 0:t.duration);return i?new Be(i):(console.error("[StoriesViewerAutoAdvance] No slide duration found, setting to 0"),new Be(0))}function kt(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let Rt=function(e){return e.IDLE="idle",e.SLIDE_PAUSED="slidePaused",e.OUT_OF_FOCUS="outOfFocus",e}({});class Dt{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rt.IDLE;kt(this,"currentState",void 0),kt(this,"stateStack",[]),kt(this,"currentSlideType",null),kt(this,"pubSub",void 0),this.currentState=e,this.pubSub=new p.ZP("VerticalVideoStateManager")}getCurrentState(){return this.currentState}getCurrentSlideType(){return this.currentSlideType}setCurrentSlide(e){const t=this.currentSlideType;this.currentSlideType=e,t&&this.pubSub.publish(ue(t),{slideType:t}),this.pubSub.publish(le(e),{slideType:e}),this.pubSub.publish(ce.SLIDE_TYPE_CHANGE,{previousSlideType:t,currentSlideType:e})}toIdleState(){if(this.currentState===Rt.IDLE)return;const e=this.currentState;this.currentState=Rt.IDLE,this.publishStateChange(e,this.currentState),this.pubSub.publish(ce.ENTER_IDLE,{state:this.currentState})}toSlidePausedState(){if(this.currentState===Rt.SLIDE_PAUSED)return;const e=this.currentState;this.currentState=Rt.SLIDE_PAUSED,this.publishStateChange(e,this.currentState),this.pubSub.publish(ce.ENTER_SLIDE_PAUSED,{state:this.currentState})}toOutOfFocusState(){if(this.currentState===Rt.OUT_OF_FOCUS)return;this.stateStack.push(this.currentState);const e=this.currentState;this.currentState=Rt.OUT_OF_FOCUS,this.publishStateChange(e,this.currentState),this.pubSub.publish(ce.ENTER_OUT_OF_FOCUS,{state:this.currentState})}returnFromOutOfFocus(){if(this.currentState!==Rt.OUT_OF_FOCUS)return;const e=Rt.OUT_OF_FOCUS,t=this.stateStack.pop()||Rt.IDLE;this.pubSub.publish(ce.RETURN_FROM_OUT_OF_FOCUS,{returnToState:t}),this.currentState=t,this.publishStateChange(e,this.currentState),t===Rt.IDLE?this.pubSub.publish(ce.ENTER_IDLE,{state:this.currentState}):t===Rt.SLIDE_PAUSED&&this.pubSub.publish(ce.ENTER_SLIDE_PAUSED,{state:this.currentState})}publishStateChange(e,t){this.pubSub.publish(ce.STATE_CHANGE,{previousState:e,currentState:t})}}var Ot=i(3783);const _t="fill",Lt="aspect",Nt="9:16",xt={"16:9":"aspect_16_9","1:1":"aspect_1_1","9:16":"aspect_9_16"},Vt=Object.values(xt);function Mt(e,t){const i=e.id||e.tagName.toLowerCase();return"ntv-style-".concat(i,"-").concat(t)}class Ut{apply(e,t,i,n){const r=(null==n?void 0:n.styleId)||Mt(t,"fill");(0,Ot.H6)(r,"\n :host { display: block; width: 100%; height: 100%; }\n .ntv-vertical-video { width: 100%; height: 100%; }\n ",{root:e}),i.classList.remove(...Vt)}}class jt{constructor(e){this.aspectClass=e}apply(e,t,i,n){const r=(null==n?void 0:n.styleId)||Mt(t,"aspect");(0,Ot.H6)(r,"\n :host { all: initial; display: block; }\n ",{root:e}),i.classList.remove(...Vt),i.classList.add(this.aspectClass)}}function Ft(e,t){return e===_t?new Ut:new jt(function(e){var t;if("number"==typeof e){const t=e;return Math.abs(t-16/9)<.05?xt["16:9"]:Math.abs(t-1)<.05?xt["1:1"]:xt["9:16"]}return null!==(t=xt[e])&&void 0!==t?t:xt["9:16"]}(t))}function Bt(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class Wt{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Bt(this,"applied",void 0),this.shadow=e,this.host=t,this.rootEl=i,this.hints=n}start(){this.apply(this.decide())}updateCreativeAspect(e){const t=this.decide(e);this.applied&&this.applied.mode===t.mode&&this.applied.aspect===t.aspect||this.apply(t)}decide(e){const t=this.hints.configDefault;return null!=t&&t.mode?{mode:t.mode,aspect:t.aspectRatio}:e?{mode:Lt,aspect:e}:{mode:_t}}apply(e){Ft(e.mode,e.aspect).apply(this.shadow,this.host,this.rootEl,{styleId:this.hints.styleIdSuffix}),this.applied=e}}function Ht(e,t,i){zt(e,t),t.set(e,i)}function zt(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Gt(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Yt(e,t){return e.get(Qt(e,t))}function qt(e,t,i){return e.set(Qt(e,t),i),i}function Qt(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}const Kt={START:"vertical-video:start",COMPLETE:"vertical-video:complete"};var Zt=new WeakMap,Xt=new WeakMap,Jt=new WeakMap,$t=new WeakMap,ei=new WeakMap,ti=new WeakMap,ii=new WeakSet;class ni{constructor(e){!function(e,t){zt(e,t),t.add(e)}(this,ii),Gt(this,"element",void 0),Gt(this,"storiesViewer",void 0),Gt(this,"uid",void 0),Gt(this,"pubSub",void 0),Gt(this,"verticalVideoTracker",void 0),Gt(this,"autoAdvanceHandler",void 0),Ht(this,Zt,!1),Ht(this,Xt,!1),Ht(this,Jt,new Dt),Ht(this,$t,Qt(ii,this,ri).bind(this)),Ht(this,ei,Qt(ii,this,si).bind(this)),Ht(this,ti,void 0);const{adParams:t,trackingConfig:i,uid:n}=e;u.getInstance(),this.uid=n,e.slideshowConfig.drag=!1,this.storiesViewer=new Oe.ZP(e),this.storiesViewer.expandViewabilityToUseAPIs(),this.pubSub=this.storiesViewer.pubSub;try{var r;const n=document.createElement("ntv-stories"),s=n.attachShadow({mode:"open"}),a=["ntv-vertical-video",...e.classes||[]];this.storiesViewer.element.classList.add(...a),s.append(this.storiesViewer.element);const c=null!==(r=e.sizing)&&void 0!==r?r:{mode:Lt,aspectRatio:Nt};qt(ti,this,new Wt(s,n,this.storiesViewer.element,{configDefault:c,styleIdSuffix:"vv-".concat(this.uid||"")})),Yt(ti,this).start(),this.storiesViewer.addEventListener(Oe.ml.SLIDE_CHANGE,e=>{this.storiesViewer.resetSlideByIndex(e),this.storiesViewer.startSlideshow()});const l=".".concat(t.adWrapperClass),u=o.util.domQueryUp(l);u&&u.append(n),this.element=n,Qt(ii,this,li).call(this),this.autoAdvanceHandler=new It(this.storiesViewer.slideshowComponent,{onStrategyStart:e=>{"EventAutoAdvanceStrategy"===e.type&&Yt(Jt,this).toSlidePausedState()},onStrategyComplete:e=>{"EventAutoAdvanceStrategy"===e.type&&Yt(Jt,this).toIdleState()},onAutoAdvanceComplete:()=>{Qt(ii,this,ai).call(this)}});const d=this.storiesViewer.element.querySelector(".ntv-story-body");null==d||d.addEventListener("click",e=>{this.storiesViewer.getActiveSlideType()!==dt.U.SURVEY&&this.storiesViewer.ctaComponent&&this.storiesViewer.ctaComponent.click()}),this.verticalVideoTracker=new Ie(this,i),new ke.Z(this.storiesViewer,i),this.storiesViewer.headerViewComponent&&this.storiesViewer.headerViewComponent.pubSub.subscribe(Re.e.USER_CLICK,()=>(0,De.C)(i.adPlacementId)),Yt(Jt,this).pubSub.subscribe(ce.ENTER_IDLE,e=>{Yt(Zt,this)&&this.verticalVideoTracker.resumeAllTimers()}),Yt(Jt,this).pubSub.subscribe(ce.ENTER_OUT_OF_FOCUS,e=>{Yt(Zt,this)&&(this.verticalVideoTracker.pauseAllTimers(),this.autoAdvanceHandler.pause())}),Yt(Jt,this).pubSub.subscribe(ce.ENTER_SLIDE_PAUSED,e=>{Yt(Zt,this)&&this.verticalVideoTracker.pausePositionalTimers()}),Yt(Jt,this).pubSub.subscribe(ce.RETURN_FROM_OUT_OF_FOCUS,e=>{Yt(Zt,this)&&(this.autoAdvanceHandler.resume(),e.returnToState===Rt.SLIDE_PAUSED&&this.verticalVideoTracker.resumeSustainedTimers())}),this.pubSub.subscribe(Oe.ml.IN_VIEW,()=>{Qt(ii,this,ci).call(this)&&Qt(ii,this,oi).call(this)}),this.storiesViewer.addEventListener(Oe.ml.READY,()=>{this.storiesViewer.startSlideshow()}),this.pubSub.subscribe(Oe.ml.SLIDE_ACTIVE,e=>{e&&e.type&&Yt(Jt,this).setCurrentSlide(e.type)})}catch(e){console.error("VerticalVideo Setup Error",e),this.pubSub.publish(Oe.ml.ERROR)}}getStateManager(){return Yt(Jt,this)}}function ri(){Yt(Jt,this).toOutOfFocusState()}function si(){Yt(Jt,this).returnFromOutOfFocus()}function oi(){this.storiesViewer.addEventListener(Oe.ml.OUT_OF_FOCUS,Yt($t,this)),this.storiesViewer.addEventListener(Oe.ml.IN_FOCUS,Yt(ei,this)),this.storiesViewer.startSlideshow(),this.verticalVideoTracker.startAllTimers(),this.autoAdvanceHandler.start(),qt(Zt,this,!0),this.pubSub.publish(Kt.START)}function ai(){this.storiesViewer.removeEventListener(Oe.ml.OUT_OF_FOCUS,Yt($t,this)),this.storiesViewer.removeEventListener(Oe.ml.IN_FOCUS,Yt(ei,this)),this.verticalVideoTracker.stopAllTimers(),this.verticalVideoTracker.dispose(),this.pubSub.publish(Oe.ml.TIMERS_COMPLETE),qt(Xt,this,!0)}function ci(){return!Yt(Zt,this)&&!Yt(Xt,this)}function li(){const e=this.storiesViewer.slideComponents||[];for(let t=e.length-1;t>=0;t--)if(e[t].type!==dt.U.SURVEY){e[t].pubSub.subscribe(_e.p.COMPLETE,()=>{this.pubSub.publish(Kt.COMPLETE)});break}}},2784:(e,t,i)=>{"use strict";i.d(t,{R:()=>u});i(6265);var n=i(255),r=i(2492),s=i(9655),o=i(3289),a=i(701),c=i(7190);const l=new Map;function u(e){const t=new Map;for(const[i,n]of e.eventMap.entries()){const e=l.get(i);if(e&&!(e.length<=0))for(const i of e)t.set(i,n)}return t}l.set(n.bB["video-start"],[a._.START]),l.set(n.bB["timed-video-event"],[o.vo.TIME_TRIGGER_EVENT]),l.set(n.bB["timed-video-halted"],[o.vo.TIME_PAUSE_EVENT]),l.set(n.bB["video-complete"],[a._.COMPLETE]),l.set(n.bB["video-error"],[s.ml.ERROR]),l.set(n.bB["survey-slide-in-view"],[r.C.IN_VIEW]),l.set(n.bB["time-on-content-trigger-event"],[o.U6.TIME_ON_CONTENT]),l.set(n.bB["time-on-content-halted-event"],[o.U6.TIME_ON_CONTENT_HALT]),l.set(n.bB["user-interaction"],[c.qM.CLICK])},4085:(e,t,i)=>{"use strict";i.d(t,{w:()=>r,Z:()=>m});i(1057),i(560);var n=i(8913);const r={SWIPE:"swipe",SWIPE_LEFT:"swipeLeft",SWIPE_RIGHT:"swipeRight",SWIPE_UP:"swipeUp",SWIPE_DOWN:"swipeDown",HOLD:"hold",LONG_HOLD:"longHold",RELEASE:"holdRelease",LONG_HOLD_RELEASE:"longHoldRelease",CLICK:"click",CLICK_LEFT:"clickLeft",CLICK_RIGHT:"clickRight",CLICK_CENTER:"clickCenter"};i(6265);function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class o{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,"name","click"),s(this,"controller",void 0),s(this,"options",void 0),s(this,"debounceMap",new WeakMap),s(this,"clickHandler",void 0),this.options={debounceMs:0,targetValidation:!1,preventDefault:!1,includeVideoData:!1,...e}}initialize(e){this.controller=e,this.clickHandler=e=>{this.handleClick(e)},e.element.addEventListener("click",this.clickHandler)}cleanup(){var e;this.clickHandler&&null!==(e=this.controller)&&void 0!==e&&e.element&&this.controller.element.removeEventListener("click",this.clickHandler),this.debounceMap=new WeakMap}handleClick(e){if(this.options.targetValidation&&!this.isValidTarget(e))return;if(this.options.debounceMs&&this.options.debounceMs>0&&!this.debounceClick(this.controller.element))return void(this.options.preventDefault&&e.preventDefault());this.options.preventDefault&&e.preventDefault();const t={position:this.getPointerPosition(e),target:e.target};this.options.includeVideoData&&this.controller.getCurrentTime&&(t.currentTime=this.controller.getCurrentTime()),this.controller.publish(r.CLICK,t)}isValidTarget(e){return e.target===this.controller.element}debounceClick(e){const t=Date.now();return!(t-(this.debounceMap.get(e)||0)<(this.options.debounceMs||0))&&(this.debounceMap.set(e,t),!0)}getPointerPosition(e){return{x:e.clientX,y:e.clientY}}}var a=i(9110);function c(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class l{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,"name","clickRegions"),c(this,"controller",void 0),c(this,"options",void 0),c(this,"clickRegionChecker",void 0),c(this,"clickHandler",void 0),this.options={leftWidth:.2,rightWidth:.2,...e}}initialize(e){this.controller=e,this.clickRegionChecker=function(){let{element:e,left:t=.5,right:i=.5}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t+i>1){const e=t+i;t/=e,i/=e}let n,r=!1;function s(){n=(0,a.S3)(),r=!1}function o(t){const i=e.getBoundingClientRect();return{x:(t.x-i.x)/i.width,y:(t.y-i.y)/i.height}}function c(e){return{x:e.x/n.width,y:e.y/n.height}}return window.addEventListener("resize",()=>{r=!0}),s(),function(n){r&&s();const{x:a}=e?o(n):c(n);return a<=t?"left":a>=1-i?"right":"center"}}({element:e.element,left:this.options.leftWidth||.2,right:this.options.rightWidth||.2}),this.clickHandler=e=>{this.handleRegionClick(e)},e.element.addEventListener("click",this.clickHandler)}cleanup(){var e;this.clickHandler&&null!==(e=this.controller)&&void 0!==e&&e.element&&this.controller.element.removeEventListener("click",this.clickHandler)}handleRegionClick(e){var t;const i=this.getPointerPosition(e),n=(null===(t=this.clickRegionChecker)||void 0===t?void 0:t.call(this,i))||"center",s={position:i,target:e.target};switch(n){case"left":this.controller.publish(r.CLICK_LEFT,s);break;case"right":this.controller.publish(r.CLICK_RIGHT,s);break;case"center":this.surveySlideIsActive(this.controller.element)||this.controller.publish(r.CLICK_CENTER,s)}}getPointerPosition(e){return{x:e.clientX,y:e.clientY}}surveySlideIsActive(e){return null!==e.querySelector(".ntv-splide-slide.is-active #ntv-survey")}}function u(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class d{constructor(){u(this,"name","gestures"),u(this,"controller",void 0),u(this,"mousemoveHandler",null),u(this,"prevInteractionPosition",null),u(this,"prevInteractionTime",null),u(this,"interactionMovement",null),u(this,"interacting",!1)}initialize(e){this.controller=e,this.addGestureHandlers()}cleanup(){var e;this.mousemoveHandler&&null!==(e=this.controller)&&void 0!==e&&e.element&&(this.controller.element.removeEventListener("mousemove",this.mousemoveHandler),this.mousemoveHandler=null)}addGestureHandlers(){this.controller.element.addEventListener("touchmove",e=>{this.handleInput("interactionMove",{position:this.getPointerPosition(e),target:e.target||void 0})})}handleInput(e,t){switch(e){case"interactionStart":this.handleInteractionStart(t);break;case"interactionMove":this.handleInteractionMove(t);break;case"interactionEnd":this.handleInteractionEnd(t)}}handleInteractionStart(e){this.prevInteractionTime=Date.now(),this.prevInteractionPosition=e.position,this.interacting=!0,e.target&&"clientX"in e.target&&(this.mousemoveHandler=e=>{this.handleInput("interactionMove",{position:this.getPointerPosition(e)})},this.controller.element.addEventListener("mousemove",this.mousemoveHandler))}handleInteractionMove(e){if(!this.interacting||!this.prevInteractionPosition)return;const t=Date.now();if(this.interactionMovement=this.getPositionDifference(this.prevInteractionPosition,e.position),this.prevInteractionTime){const e=t-this.prevInteractionTime;this.interactionMovement.velocity={x:this.interactionMovement.x/e,y:this.interactionMovement.y/e}}this.prevInteractionTime=t,this.prevInteractionPosition=e.position}handleInteractionEnd(e){this.mousemoveHandler&&(this.controller.element.removeEventListener("mousemove",this.mousemoveHandler),this.mousemoveHandler=null);const t=this.interactionMovement;this.interactionMovement=null,this.interacting=!1,t&&this.checkForGesture(t)}checkForGesture(e){var t,i;Math.abs(e.y)>Math.abs(e.x)?this.handleVerticalSwipe(e.y,(null===(i=e.velocity)||void 0===i?void 0:i.y)||0):this.handleHorizontalSwipe(e.x,(null===(t=e.velocity)||void 0===t?void 0:t.x)||0)}handleHorizontalSwipe(e,t){if(!(t&&Math.abs(t)<.15||Math.abs(e)<5)){if(e>0)return this.controller.publish(r.SWIPE,{direction:"left"}),void this.controller.publish(r.SWIPE_LEFT);this.controller.publish(r.SWIPE,{direction:"right"}),this.controller.publish(r.SWIPE_RIGHT)}}handleVerticalSwipe(e,t){if(!(t&&Math.abs(t)<.15||Math.abs(e)<2)){if(e>0)return this.controller.publish(r.SWIPE,{direction:"down"}),void this.controller.publish(r.SWIPE_DOWN);this.controller.publish(r.SWIPE,{direction:"up"}),this.controller.publish(r.SWIPE_UP)}}getPointerPosition(e){if("touches"in e){let t=e.touches[0];return"touchend"===e.type&&(t=e.changedTouches[0]),{x:t.clientX,y:t.clientY}}return{x:e.clientX,y:e.clientY}}getPositionDifference(e,t){return{x:t.x-e.x,y:t.y-e.y}}}function h(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class p{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,"name","holds"),h(this,"controller",void 0),h(this,"options",void 0),h(this,"holdTimer",void 0),h(this,"longHoldTimer",void 0),this.options={holdDuration:200,longHoldDuration:6e3,...e}}initialize(e){this.controller=e}cleanup(){this.clearHolds()}handleInteractionStart(){this.holdTimer=setTimeout(()=>this.controller.publish(r.HOLD),this.options.holdDuration||200),this.longHoldTimer=setTimeout(()=>this.controller.publish(r.LONG_HOLD),this.options.longHoldDuration||6e3)}handleInteractionMove(){this.controller.publish(r.HOLD)}handleInteractionEnd(){this.clearHolds()}clearHolds(){this.holdTimer&&(clearTimeout(this.holdTimer),this.holdTimer=void 0),this.longHoldTimer&&(clearTimeout(this.longHoldTimer),this.longHoldTimer=void 0),this.controller.publish(r.RELEASE),this.controller.publish(r.LONG_HOLD_RELEASE)}}function f(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class m{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,"pubSub",new n.ZP),f(this,"element",void 0),f(this,"modules",[]),f(this,"options",void 0),f(this,"clickModule",void 0),f(this,"clickRegionsModule",void 0),f(this,"gesturesModule",void 0),f(this,"holdsModule",void 0),f(this,"inputHandlers",{}),this.element=e,this.options=this.normalizeOptions(t),this.initializeModules(),this.setupCoreHandlers(),this.addInteractionHandlers()}normalizeOptions(e){if(!e.modules){const t=["click"];!1!==e.useGestures&&t.push("gestures"),(e.leftClickWidth||e.rightClickWidth)&&t.push("clickRegions"),(e.holdDuration||e.longHoldDuration)&&t.push("holds"),e.modules=t}return e}initializeModules(){(this.options.modules||[]).forEach(e=>{let t;switch(e){case"click":t=new o(this.options.clickOptions),this.clickModule=t;break;case"clickRegions":t=new l({leftWidth:this.options.leftClickWidth,rightWidth:this.options.rightClickWidth}),this.clickRegionsModule=t;break;case"gestures":t=new d,this.gesturesModule=t;break;case"holds":t=new p({holdDuration:this.options.holdDuration,longHoldDuration:this.options.longHoldDuration}),this.holdsModule=t}t&&(this.modules.push(t),t.initialize(this))})}setupCoreHandlers(){this.inputHandlers={interactionStart:e=>{this.holdsModule&&this.holdsModule.handleInteractionStart(),this.gesturesModule&&e.position&&this.gesturesModule.handleInput("interactionStart",e)},interactionMove:e=>{this.holdsModule&&this.holdsModule.handleInteractionMove(),this.gesturesModule&&e.position&&this.gesturesModule.handleInput("interactionMove",e)},interactionEnd:e=>{this.holdsModule&&this.holdsModule.handleInteractionEnd(),this.gesturesModule&&e.position&&this.gesturesModule.handleInput("interactionEnd",e)},click:e=>{}}}addInteractionHandlers(){this.element.addEventListener("touchstart",e=>{this.handleInput("interactionStart",{position:this.getPointerPosition(e),target:e.target})}),this.element.addEventListener("touchend",e=>{this.handleInput("interactionEnd",{position:this.getPointerPosition(e),target:e.target})}),this.element.addEventListener("mousedown",e=>{this.handleInput("interactionStart",{position:this.getPointerPosition(e),target:e.target})}),this.element.addEventListener("mouseup",e=>{this.handleInput("interactionEnd",{position:this.getPointerPosition(e),target:e.target})})}handleInput(e){const t=this.inputHandlers[e];t&&t(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}clearHolds(){this.holdsModule&&this.holdsModule.clearHolds()}getCurrentTime(){return this.element instanceof HTMLVideoElement&&this.element.currentTime||0}getPointerPosition(e){if("touches"in e){let t=e.touches[0];return"touchend"===e.type&&(t=e.changedTouches[0]),{x:t.clientX,y:t.clientY}}return{x:e.clientX,y:e.clientY}}publish(e,t){this.pubSub.publish(e,t)}on(e,t,i){this.pubSub.subscribe(e,t,i)}off(e,t,i){this.pubSub.unsubscribe(e,t,i)}destroy(){this.modules.forEach(e=>e.cleanup()),this.modules=[],this.clickModule=void 0,this.clickRegionsModule=void 0,this.gesturesModule=void 0,this.holdsModule=void 0}}},276:(e,t,i)=>{"use strict";i.d(t,{T:()=>p});i(1057),i(6265);var n=i(4085);function r(e,t,i){s(e,t),t.set(e,i)}function s(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function o(e,t){return e.get(c(e,t))}function a(e,t,i){return e.set(c(e,t),i),i}function c(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}const l={longHoldDuration:4e3,leftClickWidth:.15,rightClickWidth:.15};var u=new WeakMap,d=new WeakMap,h=new WeakSet;class p{constructor(e){var t,i;s(t=this,i=h),i.add(t),r(this,u,void 0),r(this,d,void 0),a(u,this,e),a(d,this,new n.Z(o(u,this).element,l));const p={[n.w.CLICK_LEFT]:()=>{o(u,this).goToPreviousSlide()},[n.w.CLICK_RIGHT]:()=>{o(u,this).goToNextSlide()},[n.w.CLICK_CENTER]:()=>{c(h,this,f).call(this)},[n.w.HOLD]:()=>{o(u,this).pauseSlideshow()},[n.w.LONG_HOLD]:()=>{o(u,this).hideHeader()},[n.w.RELEASE]:()=>{o(u,this).showHeader(),o(u,this).startSlideshow()}};let m;Object.keys(p).forEach(e=>{m=p[e],o(d,this).on(e,m)})}}function f(){o(u,this).ctaComponent&&o(u,this).ctaComponent.click()}},5798:(e,t,i)=>{"use strict";i.d(t,{fC:()=>re,Ao:()=>ne});i(6801),i(6265);var n=i(1611),r=(i(1057),i(1389)),s=(i(560),i(278),i(1719),function(e,t){throw new Error("Implement!")});function o(){return{parseData:s}}const a={title:"title",url:"url",authorlogo:"authorlogo",image:"image",author:"author",preview:"preview"},c={...a,cta:"ctaLabel",video:"video",clicktrackers:"clicktrackers"};function l(e){this.config=e}l.prototype.setParser=function(e){let t=new e(this.config);if(!(!t instanceof o))return this.parser=t,this.parser},l.prototype.parseData=function(e){if(this.parser)return this.parser.parseData(e)},l.prototype.checkForMissingAssets=function(e){return Object.keys(a).filter(t=>!e.hasOwnProperty(t))};const u={sponsored:1,desc:2,rating:3,likes:4,downloads:5,price:6,saleprice:7,phone:8,address:9,desc2:10,displayUrl:11,ctatext:12},d=(Object.entries(u).reduce((e,t)=>{let[i,n]=t;return e[n]=i,e},{}),{icon:1,icon_legacy:2,main:3}),h=(Object.entries(d).reduce((e,t)=>{let[i,n]=t;return e[n]=i,e},{}),u),p=d;function f(){o.call(this),this.assetMap={title:{name:()=>c.title,value:e=>e.text},link:{name:()=>"merge",value:e=>{const t={};return t[c.url]=e.url,e.clicktrackers&&(t[c.clicktrackers]=e.clicktrackers),t}},img:{name:e=>e===p.icon||e===p.icon_legacy?c.authorlogo:e===p.main?c.image:void 0,value:e=>e.url},data:{name:e=>e===h.sponsored?c.author:e===h.desc?c.preview:e===h.ctatext?c.cta:void 0,value:e=>e.value},video:{name:()=>c.video,value:(e,t)=>(null!=t&&Object.assign(e,t),e)},ext:{name:e=>{if(e.mediaSource)return"videoSources"},value:e=>e.mediaSource?e.mediaSource:e}}}(f.prototype=Object.create(o.prototype)).parseData=function(e){const{assets:t,eventtrackers:i,...n}=e,s=new r.c;return s.params=n,t&&(s.assets=this.parseAssets(t)),i&&(s.trackers=this.parseEventTrackers(i)),function(e){const{assets:t,trackers:i}=e;if(!t.clicktrackers)return;i.clickTrackingData={url:t.url,clicktrackers:t.clicktrackers},delete e.clicktrackers}(s),s},f.prototype.parseAssets=function(e){if(!e)return;let t,i,r,s={};return e.forEach(e=>{null!=e&&Object.keys(e).filter(e=>this.assetMap[e]).forEach(o=>{if(i=e[o],t=this.assetMap[o].name(i.type||i),t){if(r=this.assetMap[o].value(i),"string"==typeof r)try{r=n.util.decodeHtmlEntity(r)}catch(e){}"merge"===t?Object.assign(s,r):s[t]=r}})}),s},f.prototype.parseEventTrackers=function(e){let t=new r.nu;return e.forEach(e=>{const i=e.url;1===e.event?t.addPrimaryTracker(i):2===e.event&&t.addViewableTracker(i)}),t};const m=function(){this.processedData={parsed:null,missing:null}};m.prototype.setFallbackData=function(e){this.fallbackData=e},m.prototype.processData=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;if(null==e&&null==this.fallbackData)return this;this.assetProcessor=new l(this.config),this.assetProcessor.setParser(t),this.processedData.config=this.assetProcessor.config,this.assetArrayProcessOrder=[];let i=this.getAssetArray(this.fallbackData);if(i&&i.length>0){this.assetArrayProcessOrder.push(i);i[0].eventtrackers=(i[0].eventtrackers||[]).concat(...this.fallbackData.eventtrackers)}let n,r=this.getAssetArray(e);for(b(r)&&(g(r,i),this.assetArrayProcessOrder.unshift(r));!this.processedData.parsed&&this.assetArrayProcessOrder.length;)n=this.getNextProcessedDataSet(),n&&(this.processedData.parsed=n.parsed,this.processedData.missing=n.missing);return this.tryToFillMissingAssets(this.processedData),this},m.prototype.hasBeenProcessed=function(){return this.processedData.parsed&&this.processedData.parsed.length>0},m.prototype.getAssetArray=function(e){if(e)return e.ads?e.ads:[{assets:e.assets,eventtrackers:e.eventtrackers}]},m.prototype.getNextProcessedDataSet=function(){let e=this.assetArrayProcessOrder[0];return this.assetArrayProcessOrder.shift(),this.processAssetArrays(e)},m.prototype.processAssetArrays=function(e){if(!e)return;let t,i=[],n=[];return e.forEach(e=>{t=this.assetProcessor.parseData(e),i.push(t),n.push(this.assetProcessor.checkForMissingAssets(t.assets))}),{parsed:i,missing:n}},m.prototype.tryToFillMissingAssets=function(e){const t=e.missing.reduce((e,t)=>e||Boolean(t.length),!1);if(!t||!this.assetArrayProcessOrder.length)return;let i=this.getNextProcessedDataSet().parsed[0].assets;e.missing.forEach((t,n)=>{t.forEach(t=>{i[t]&&(e.parsed[n].assets[t]=i[t])})}),t&&this.assetArrayProcessOrder.length&&tryToFillMissingAssets(e)};const v=m;function g(e,t){if(e&&e.length&&t&&t.length)for(let i=0;i=t.length)return;let n=e[i];n.eventtrackers=y(n,t[i])}}function y(e,t){if(e.eventtrackers||t.eventtrackers)return e.eventtrackers=e.eventtrackers||[],t.eventtrackers=t.eventtrackers||[],e.eventtrackers.concat(t.eventtrackers)}function b(e){return!(null==e||!Array.isArray(e))&&e.some(e=>{var t;return null===(t=e.assets)||void 0===t?void 0:t.some(e=>null==e.link)})}function E(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}var w=new WeakSet;class T extends r.Rn{constructor(e){super(e),E(this,w),this.type="DCO"}async getAssets(e){return function(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}(w,this,S).call(this,e).then(e=>this.parseResponse(e)).catch(e=>this.parseResponse())}parseResponse(e){const t=new v;t.setFallbackData(this.config.fallbackAssets),t.processData(e);const{parsed:i}=t.processedData;return i}}function S(e){return new Promise((t,i)=>{e?n.util.ajax({method:"get",url:e,credentials:!0,success:s=>{s&&Object.keys(s).length>0&&t(s),n.util.postError(new Error("\n DCO request failed for ".concat(e,", \n Error code: ").concat(s.code,",\n Error: ").concat(s.error,"\n "))),i(r.Q4.FALLBACK)},error:()=>{n.util.postError(new Error("DCO request failed for ".concat(e))),i(r.Q4.FALLBACK)}}):i(r.Q4.FALLBACK)})}const A={content:{name:()=>c.title,value:e=>e},desc:{name:()=>c.preview,value:e=>e},url:{name:()=>c.url,value:e=>e},source_display_name:{name:()=>c.author,value:e=>e},thumbnail:{name:()=>c.image,value:e=>n.util.hasWebProtocol(e.url)?e.url:n.util.getProtocol()+e.url}},I={"on-viewed":{type:()=>"viewable",value:e=>e},pixels:{type:()=>"pixels",value:e=>e},jsTrackers:{type:()=>"jsTrackers",value:e=>e}};function P(){o.call(this),this.dynamicAssetData=[]}(P.prototype=Object.create(o.prototype)).parseData=function(e){if(null==e)return;const{doc:t}=e;return t&&this.parseAssets(t),this.dynamicAssetData},P.prototype.parseAssets=function(e){e.forEach(e=>{const t=new r.c;t.assets=this.parseAssetData(e),t.trackers=this.parseTrackerData(e),this.dynamicAssetData.push(t)})},P.prototype.parseAssetData=function(e){if(!e)return;let t,i,n,r,s={};return Object.keys(A).forEach(o=>{t=e[o],t&&(i=A[o],n=i.name(t),r=i.value(t),s[n]=r)}),s},P.prototype.parseTrackerData=function(e){if(!e)return;let t,i,n,s,o=new r.nu;return Object.keys(I).forEach(r=>{t=e[r],i=I[r],n=i.type(t),s=i.value(t),o.addTrackerByType(n,s)}),o};class C extends r.Rn{constructor(e){super(e),this.type="OUTBRAIN"}async getAssets(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?C.injectOutbrainJS(e).then(e=>C.callOutbrainRequest(t)).then(e=>this.verifyResponse(e)).then(e=>this.parseResponse(e)):Promise.reject(new Error("No Outbrain JS URL supplied"))}verifyResponse(e){return new Promise((t,i)=>{0===(null==e?void 0:e.doc.length)&&i(r.Q4.NO_RENDER),t(e)})}parseResponse(e){const t=new P;return this.assets=t.parseData(e),this.assets}static injectOutbrainJS(e){return new Promise((t,i)=>{try{n.util.appendScript(e,()=>{t()},"NTV_OutbrainJS")}catch(e){i(e)}})}static callOutbrainRequest(e){return new Promise((t,i)=>{if(void 0!==window.OBR)try{OBR.extern.callRecs(e,e=>{t(e)})}catch(e){i(e)}else i("OBR doesn't exist on the window context")})}}i(4043),i(7267);function k(e,t,i){return i.replace(e,t)}function R(e,t,i){if(!e)return i;const n=function(e,t){return Object.keys(e).filter(i=>t[i]&&e[i]).map(i=>t[i](e[i])).reduce((e,t)=>e.concat(t),[])}(e,t);return n?function(e,t){return e.reduce((e,t)=>k(t.pattern,t.value,e),t)}(n,i):i}var D=i(1498);const O={title:e=>[{pattern:/"@Title"/gi,value:'"'.concat(e,'"')},{pattern:/@Title/gi,value:"".concat(e,"")}],url:e=>[{pattern:/@Url/gi,value:e}],authorlogo:e=>[{pattern:/@authorlogo/gi,value:e}],image:e=>[{pattern:/@Image/gi,value:e}],author:e=>[{pattern:/(@Author)(?!Logo)/gi,value:e}],preview:e=>[{pattern:/@Preview/gi,value:"".concat(e,"")}],viewableImpTrackers:e=>[{pattern:/@dco_viewable_imp_tracker/gi,value:(0,D.v$)(e)}],viewable:e=>[{pattern:/@dco_viewable_imp_tracker/gi,value:(0,D.v$)(e)}]};class _{constructor(e){this.rawHtml=e,this.html=e}reset(){this.html=this.rawHtml}fillTokensFromData(e){this.html=R(e,O,this.html)}cleanTokens(){this.html=k(/(@dco_primary_imp_tracker|@dco_viewable_imp_tracker|@Author|@FullTitle|@Url|@Title|@Image|@Sponsored|@Preview|@authorlogo)/gi,"",this.html)}}function L(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function N(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var x=new WeakSet;class V{constructor(e){L(this,x),this.tokenizedHtml=new _(e)}get html(){return this.tokenizedHtml.html}applyDynamicAsset(e){this.applyDynamicAssetData(e.assets),this.applyDynamicAssetTrackers(e.trackers),this.cleanUpUnusedTokens()}applyDynamicAssetData(e){void 0!==e&&this.tokenizedHtml.fillTokensFromData(e)}applyDynamicAssetTrackers(e){void 0!==e&&Object.keys(e).forEach(t=>{const i=e[t];switch(t){case r.nu.TRACKER_TYPES.VIEWABLE:N(x,this,M).call(this,i);break;case r.nu.TRACKER_TYPES.PRIMARY:N(x,this,U).call(this,i);break;default:N(x,this,j).call(this,i)}})}cleanUpUnusedTokens(){this.tokenizedHtml.cleanTokens()}}function M(e){this.tokenizedHtml.fillTokensFromData({viewable:e.join("")})}function U(e){e.forEach(e=>n.util.appendThirdPartyTracking(e))}function j(e){e&&e.length&&n.util.handleThirdPartyTracking(e)}function F(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function B(e,t){return e.get(W(e,t))}function W(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var H=new WeakMap,z=new WeakSet;class G{constructor(e){var t,i;F(t=this,i=z),i.add(t),function(e,t,i){F(e,t),t.set(e,i)}(this,H,void 0),Object.assign(this,n.util.pick(e,"clickTrackerRedirect","previewImageResizer","authorImageResizer","allowHeadLineTrimming","maxHeadLineLength","maxPreviewLength","usePreviewResizerForAssets")),function(e,t,i){e.set(W(e,t),i)}(H,this,{image:e=>(e=n.util.hasWebProtocol(e)?e:n.util.getProtocol()+e,this.usePreviewResizerForAssets?W(z,this,Y).call(this,e,this.previewImageResizer):e),authorlogo:e=>W(z,this,Y).call(this,e,this.authorImageResizer),title:e=>this.allowHeadLineTrimming?W(z,this,q).call(this,e,this.maxHeadLineLength):e,preview:e=>W(z,this,q).call(this,e,this.maxPreviewLength),url:e=>(e=n.util.hasWebProtocol(e)?e:n.util.getProtocol()+e,null==this.clickTrackerRedirect?e:this.clickTrackerRedirect+encodeURIComponent(e))})}conform(e,t){return B(H,this).hasOwnProperty(e)&&void 0!==t?B(H,this)[e](t):t}}function Y(e,t){if(!t||!e)return e;if(!t)return e;return t+encodeURIComponent(n.util.applyProtocolToUrl(e))}function q(e,t){return e&&t?e.length{var t;const i=se(e);if(!i)return Promise.reject("No flashtalk/dco data in ad");const r=i.adType,s=e.toutClickTracker,o=null===(t=i.config)||void 0===t?void 0:t.ctaLink;i.config||(i.config={}),i.config.clickTrackerRedirect=function(e,t,i){let r=ee.includes(e)||!i?t:i;return n.util.generateClickRedirect(r)}(r,s,o);const{eventtrackers:a,...c}=i;return new Promise((t,n)=>{try{const n=(0,Z.r)(a);re(i,e).then(s=>{if(r&&ie.includes(r)){const t=new V(e.html);t.applyDynamicAsset(s[0]),e.html=t.html}t({type:r||"DCO",adType:r||"DCO",config:i.config||{},slideConfig:i.slideConfig,slideshowConfig:i.slideshowConfig,eventtrackers:i.eventtrackers||[],eventTrackerMaps:n,content:s})})}catch(e){n(e)}})},re=(e,t)=>{const i={ads:e.ads,eventtrackers:e.eventtrackers},r=e.adType;return new Promise((t,s)=>{try{const{assetUrl:n,requestConfig:o,config:a}=e,c=((e,t)=>e===X?new C(t):new T(t))(r||"DCO",{fallbackAssets:i});e.config||(e.config={}),e.config.usePreviewResizerForAssets=te.includes(r||"DCO"),c.getAssets(n,o).then(i=>{try{!function(e){if(!Array.isArray(e))throw"Dynamic Asset Data is not an Array";if(0===e.length)throw"No Dynamic Asset Data"}(i);for(let t of i)(0,K.ru)(t,a,{"assets.authorlogo":"advertiserLogo"}),Q(t.assets,e.config);t(i)}catch(e){return void s(e)}}).catch(e=>{s(e)})}catch(e){n.util.postError(e),s(e)}})};const se=function(e){if(e)return e.dynamicAssets?{...e.dynamicAssets}:e.dcoResponse?oe(e.dcoResponse):void 0},oe=e=>{const{dcoEndpointUrl:t="",assets:i=[],eventtrackers:n={},...r}=e;return{adType:"DCO",assetUrl:t,ads:[{assets:i}],eventtrackers:n,config:r}}},9549:(e,t,i)=>{"use strict";i.d(t,{T:()=>a,j:()=>c});i(8324),i(3429),i(4043);var n=i(1611);var r=i(6101),s=i(4957),o=i(2406);function a(){if(!o.core.setting||!o.core.setting.liveRamp)return;const e=function(){try{let e=decodeURIComponent(document.cookie.match("(^|;) *_lr_env=([^;]*)")[2]);return e=JSON.parse(atob(e)).envelope||window.localStorage.getItem("_lr_env"),e?{source:"liveramp.com",uids:[{id:e,atype:1}]}:null}catch(e){n.util.postError(e)}}();if(!e)return;s.K.saveData(r.z1.EIDS_STORAGE_KEY,[e])}function c(){const e=s.K.getData(r.z1.EIDS_STORAGE_KEY);return e&&e.length?function(e){return btoa(JSON.stringify(e))}(e):""}},1251:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});i(1057);var n=i(2151);function r(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const s={pauseOnHover:!0,pauseOnTouch:!0,resumeDelay:1e3};class o{constructor(e,t,i){r(this,"scroller",void 0),r(this,"container",void 0),r(this,"config",void 0),r(this,"boundMouseEnterHandler",void 0),r(this,"boundMouseLeaveHandler",void 0),r(this,"boundTouchStartHandler",void 0),r(this,"boundTouchEndHandler",void 0),r(this,"boundInteractionStartHandler",void 0),r(this,"boundInteractionEndHandler",void 0),r(this,"resumeTimeout",null),this.scroller=e,this.container=t,this.config={...s,...i},this.boundMouseEnterHandler=this.handleMouseEnter.bind(this),this.boundMouseLeaveHandler=this.handleMouseLeave.bind(this),this.boundTouchStartHandler=this.handleInteractionStart.bind(this),this.boundTouchEndHandler=this.handleInteractionEnd.bind(this),this.boundInteractionStartHandler=this.handleInteractionStart.bind(this),this.boundInteractionEndHandler=this.handleInteractionEnd.bind(this),this.setupInteractionHandlers()}setupInteractionHandlers(){this.config.pauseOnHover&&(this.container.addEventListener("pointerenter",this.boundMouseEnterHandler),this.container.addEventListener("pointerleave",this.boundMouseLeaveHandler)),this.config.pauseOnTouch&&(this.container.addEventListener("touchstart",this.boundTouchStartHandler,{passive:!0}),this.container.addEventListener("touchend",this.boundTouchEndHandler,{passive:!0}))}removeInteractionHandlers(){this.container.removeEventListener("pointerenter",this.boundMouseEnterHandler),this.container.removeEventListener("pointerleave",this.boundMouseLeaveHandler),this.container.removeEventListener("touchstart",this.boundTouchStartHandler),this.container.removeEventListener("touchend",this.boundTouchEndHandler)}handleMouseEnter(){this.pauseScroll()}handleMouseLeave(){this.scheduleScrollResume()}handleInteractionStart(e){null!==this.resumeTimeout&&(window.clearTimeout(this.resumeTimeout),this.resumeTimeout=null),this.pauseScroll(),this.container.dispatchEvent(new CustomEvent("interactionstart",{detail:{originalEvent:e}}))}handleInteractionEnd(e){e.target&&(this.container===e.target||this.container.contains(e.target))&&(this.scheduleScrollResume(),this.container.dispatchEvent(new CustomEvent("interactionend",{detail:{originalEvent:e}})))}scheduleScrollResume(){null!==this.resumeTimeout&&window.clearTimeout(this.resumeTimeout),this.resumeTimeout=window.setTimeout(()=>{this.scroller.resumeScroll(),this.resumeTimeout=null},this.config.resumeDelay||1e3)}updateConfig(e){const t=this.config,i=void 0!==e.pauseOnHover&&e.pauseOnHover!==t.pauseOnHover||void 0!==e.pauseOnTouch&&e.pauseOnTouch!==t.pauseOnTouch;i&&this.removeInteractionHandlers(),i&&this.setupInteractionHandlers()}pauseScroll(){null!==this.resumeTimeout&&(window.clearTimeout(this.resumeTimeout),this.resumeTimeout=null),this.scroller.pauseScroll()}destroy(){null!==this.resumeTimeout&&(window.clearTimeout(this.resumeTimeout),this.resumeTimeout=null),this.removeInteractionHandlers()}}function a(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class c{constructor(e,t,i){var n;a(this,"observer",null),a(this,"hasStarted",!1),a(this,"autoStartTimeout",null),a(this,"autoStartDelay",void 0),this.scroller=e,this.container=t,this.autoStartDelay=null!==(n=null==i?void 0:i.autoStartDelay)&&void 0!==n?n:2e3,this.scroller.pauseScroll(),this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.hasStarted?this.scroller.resumeScroll():this.scheduleInitialStart():(this.cancelScheduledStart(),this.scroller.pauseScroll())})}),this.observer.observe(this.container)}scheduleInitialStart(){null===this.autoStartTimeout&&(this.autoStartTimeout=window.setTimeout(()=>{this.hasStarted=!0,this.scroller.startScroll(),this.autoStartTimeout=null},this.autoStartDelay))}cancelScheduledStart(){null!==this.autoStartTimeout&&(window.clearTimeout(this.autoStartTimeout),this.autoStartTimeout=null)}destroy(){this.cancelScheduledStart(),this.observer&&(this.observer.disconnect(),this.observer=null)}}function l(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class u{constructor(e,t){l(this,"isiContainer",void 0),l(this,"scroller",void 0),l(this,"ScrollInteractionBehavior",void 0),l(this,"ScrollIntersectionBehavior",void 0),this.isiContainer=e;const i=this.isiContainer.ownerDocument;i&&i.documentElement&&i.body&&(i.documentElement.style.height="100%",i.documentElement.style.overflow="hidden",i.body.style.height="100%",i.body.style.overflow="hidden",i.body.style.margin="0",i.body.style.padding="0"),this.isiContainer.style.height="100%",this.isiContainer.style.overflow="auto";const r={...t,autoStart:!1};this.scroller=new n.f(this.isiContainer,r),this.ScrollInteractionBehavior=new o(this.scroller,this.isiContainer,t);this.ScrollIntersectionBehavior=new c(this.scroller,this.isiContainer,{autoStartDelay:t.autoStartDelay})}cleanup(){this.scroller.destroy(),this.ScrollInteractionBehavior&&this.ScrollInteractionBehavior.destroy(),this.ScrollIntersectionBehavior&&this.ScrollIntersectionBehavior.destroy()}}},8477:(e,t,i)=>{"use strict";i.d(t,{$r:()=>s,SU:()=>c,eO:()=>l,jo:()=>a});var n=i(2505),r=i(4862);let s="useMraid";(0,r.W)().set(s,!0);const o=a();function a(){return window.MRAID_ENV||(0,n.b3)().MRAID_ENV}function c(){const e=window.mraid||(0,n.b3)().mraid;return null!=(null==e?void 0:e.getVersion)?e:void 0}function l(){return(null!=o||null!=c())&&(0,r.W)().get(s)}},7608:(e,t,i)=>{"use strict";i.d(t,{c:()=>n});let n=function(e){return e.Error="error",e.Ready="ready",e.StateChange="stateChange",e.SizeChange="sizeChange",e.ViewableChange="viewableChange",e.ExposureChange="exposureChange",e.AudioVolumeChange="audioVolumeChange",e.AdAction="adAction",e}({})},1311:(e,t,i)=>{"use strict";i.d(t,{Tm:()=>C,XN:()=>P,gj:()=>m,kp:()=>L,wI:()=>_,yv:()=>k});i(1057),i(4043),i(6265);var n,r=i(8477),s=i(2505),o=i(7608),a=i(9803),c=i(6937),l=i(1498),u=i(5481),d=i(5797),h=i(6101);function p(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const f=(0,r.jo)();let m;var v=null===(n=window.frameElement)||void 0===n||null===(n=n.style)||void 0===n?void 0:n.cssText;const g=(e,t)=>{ntv.Events.PubSub.publish(o.c.Error,{message:e,action:t})},y=e=>{const t=window.frameElement;if(t&&"default"===e&&v)t.style.cssText=v;else if("expanded"===e&&t){const e=m.mraid.getExpandProperties();t.style.width=e.width+"px",t.style.height=e.height+"px"}ntv.Events.PubSub.publish(o.c.StateChange,{state:e})},b=e=>{ntv.Events.PubSub.publish(o.c.ViewableChange,{isViewable:e})},E=(e,t,i)=>{ntv.Events.PubSub.publish(o.c.ExposureChange,{exposedPercentage:e,visibleRectangle:t,occlusionRectangles:i})};class w{constructor(){p(this,"mraid",void 0)}readyPromise(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;return new Promise((t,i)=>{if("loading"==this.mraid.getState()){let n=setTimeout(()=>{i(new Error("MRAID ready event timeout"))},e);this.mraid.addEventListener(o.c.Ready,()=>{clearTimeout(n),t()})}else t()})}getState(){return this.mraid.getState()}unload(){this.mraid.close()}open(e){this.mraid.open(e)}expand(e){null!=e?this.mraid.expand(e):this.mraid.expand()}close(){this.mraid.close()}isViewable(){return this.mraid.isViewable()}}class T extends w{constructor(){super(...arguments),p(this,"mraid",(0,r.SU)())}registerEventListeners(){this.mraid.addEventListener(o.c.Error,g),this.mraid.addEventListener(o.c.StateChange,y),this.mraid.addEventListener(o.c.ViewableChange,b)}}class S extends w{constructor(){super(...arguments),p(this,"mraid",(0,r.SU)())}registerEventListeners(){this.mraid.addEventListener(o.c.Error,g),this.mraid.addEventListener(o.c.StateChange,y),this.mraid.addEventListener(o.c.ViewableChange,b)}}class A extends w{constructor(){super(...arguments),p(this,"mraid",(0,r.SU)())}registerEventListeners(){try{this.mraid.addEventListener(o.c.Error,g),this.mraid.addEventListener(o.c.StateChange,y),this.mraid.addEventListener(o.c.ExposureChange,E),this.mraid.addEventListener(o.c.ViewableChange,b)}catch(e){u.Z.postErrorMsg("Failed to register MRAID event listeners. env: "+(0,l.ye)(f),e)}}unload(){super.unload(),this.mraid.unload()}}class I{getMraid(){var e;let t;switch(null===(e=(0,r.SU)())||void 0===e?void 0:e.getVersion()){case"1.0":t=new T;break;case"2.0":t=new S;break;case"3.0":t=new A;break;default:throw new Error("Could not find mraid object on window: "+window.location.href)}return t}}function P(e){try{if(!m&&(0,r.eO)()){m=(new I).getMraid(),m.registerEventListeners(),(0,d._)([{id:"ntv-mraid-modal-css",type:"style",url:h.z1.DEPENDENCIES.MRAID_MODAL_CSS}]);const t=new Promise(e=>{try{const t=(0,s.b3)();"complete"===t.document.readyState?e():t.addEventListener("load",()=>{e()})}catch(e){u.Z.postError(new Error("Mraid onLoad: "+e+" env: "+(0,l.ye)(f)))}});Promise.all([t,m.readyPromise()]).then(()=>{e()}).catch(t=>{console.error(t),e()}),ntv.Events.PubSub.subscribe("noAds",()=>{m.unload()})}else e()}catch(t){u.Z.postError(new Error("Mraid Initialize: "+t+" env: "+(0,l.ye)(f))),e()}}function C(e){try{var t,i;null===(t=window.event)||void 0===t||t.preventDefault(),null===(i=window.event)||void 0===i||i.stopPropagation(),e.element.classList.remove("ntv-mraid-modal"),e.element.classList.add("ntv-mraid-modal");let n=!1;const r=()=>{if(!n){n=!0,ntv.Events.PubSub.unsubscribe(o.c.StateChange,s);try{m.mraid.removeEventListener(o.c.StateChange,a)}catch(e){}e.close()}},s=e=>{var t;"default"===(null==e||null===(t=e.data)||void 0===t?void 0:t.state)&&r()},a=e=>{"default"===e&&r()};ntv.Events.PubSub.subscribe(o.c.StateChange,s);try{m.mraid.addEventListener(o.c.StateChange,a)}catch(e){}m.expand()}catch(e){var n,r;if(u.Z.postErrorMsg("Failed to open MRAID modal. env: "+(0,l.ye)(f),e),"expanded"===(null===(n=m)||void 0===n?void 0:n.getState()))null===(r=m)||void 0===r||r.close()}}function k(e,t){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;try{const r=a.d.getAd(t);if(i=(null==r?void 0:r.adType)==c.Z9.ARTICLE?r.articleUrl:n||(null==r?void 0:r.toutClickTracker),!i)throw new Error("No URL for MRAID click");return(null==r?void 0:r.adType)!=c.Z9.ARTICLE||(null==r?void 0:r.integrationType)===c.WN.APPLE_NEWS?(m.open(i),!0):!(e&&"aps-ios-admob"!==(null==f?void 0:f.sdk)&&!D())&&(O()?R(r,i):m.expand(i),!0)}catch(e){const i=a.d.getAd(t);return u.Z.postErrorMsg("Failed to handle MRAID Click. AdID: ".concat(null==i?void 0:i.adId," env: ").concat((0,l.ye)(f)),e),!0}}function R(e,t){let i=document.createElement("iframe");i.id="ntv-clp",i.width="100%",i.height="100%",i.setAttribute("sandbox","allow-same-origin allow-scripts"),i.style.position="fixed",i.style.top=function(){const e=navigator.userAgent;if(/iPhone/.test(e)){if(852===screen.height)return!0;if(932===screen.height)return!0}return!1}()?"55px":"0px",i.height=screen.height-parseInt(i.style.top)+"px",fetch(t).then(e=>{e.text().then(e=>{try{i.contentDocument&&(i.contentWindow.mraid=(0,r.SU)(),i.srcdoc=e)}catch(e){u.Z.postErrorMsg("Mraid failed to inject article: ".concat(t," env: ").concat((0,l.ye)(f)),e)}})}).catch(e=>{u.Z.postErrorMsg("Mraid failed to fetch article: ".concat(t," env: ").concat((0,l.ye)(f)),e)}),document.body.appendChild(i);const n=e.element.style.display;e.element.style.display="none";const s=t=>{try{var r;var a;if("default"==(null==t||null===(r=t.data)||void 0===r?void 0:r.state))null===(a=i.parentNode)||void 0===a||a.removeChild(i),e.element.style.display=n,ntv.Events.PubSub.unsubscribe(o.c.StateChange,s)}catch(e){u.Z.postErrorMsg("Failed to handle MRAID CLP close. env: "+(0,l.ye)(f),e)}};ntv.Events.PubSub.subscribe(o.c.StateChange,s),m.expand()}function D(){let e=/Android/.test(navigator.userAgent);return"Google Mobile Ads"===(null==f?void 0:f.sdk)&&e}function O(){let e=/iPhone|iPad/.test(navigator.userAgent);return"Google Mobile Ads"===(null==f?void 0:f.sdk)&&e}function _(e){try{m=m||(new I).getMraid(),null==e||e.addEventListener("click",(function(e){const t=e.target.closest("a");var i;t&&((null===(i=t.href)||void 0===i?void 0:i.indexOf("://"))>0?(e.preventDefault(),m.open(t.href)):u.Z.postErrorMsg("Failed to find valid anchor tag with CTA. Article URL: ".concat(window.location,". Env: ").concat((0,l.ye)(f))))}))}catch(e){u.Z.postErrorMsg("Failed to handle Article click. env: "+(0,l.ye)(f),e)}}function L(e){if(D())if(e.isFullscreen()){m.expand();const t=i=>{var n;"default"==(null==i||null===(n=i.data)||void 0===n?void 0:n.state)&&(e.isFullscreen()&&e.exitFullscreen(),ntv.Events.PubSub.unsubscribe(o.c.StateChange,t))};ntv.Events.PubSub.subscribe(o.c.StateChange,t)}else"expanded"===m.getState()&&m.close()}},3804:(e,t,i)=>{"use strict";i.d(t,{Pj:()=>c,wI:()=>a});i(6265);var n=i(1611),r=i(5246),s=i(8011),o=i(4862);function a(){const e=n.util.getTopWindow();if(e.ntvSatellite)return Promise.resolve(e.ntvSatellite);let t,i;const o=new Promise((e,n)=>{t=e,i=n});return e.addEventListener(s.P.LOAD_COMPLETE,()=>{if(e[r.OH].state==r.RW.READY)return t(e[r.OH]);e[r.OH].addEventListener(s.P.READY,()=>{t(e[r.OH])})}),e.addEventListener(s.P.LOAD_ERROR,()=>{i()}),o}function c(){let e,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if((0,o.W)().get("sateliteLaunched")||null!=i[r.OH])return;(0,o.W)().set("sateliteLaunched",!0),l();const n=new Promise((i,n)=>{e=i,t=n}),a=document.createElement("script");function c(){i.dispatchEvent(new Event(s.P.LOAD_COMPLETE)),e()}function u(){i.dispatchEvent(new Event(s.P.LOAD_ERROR)),e()}return a.id=r.O,a.addEventListener("load",c,{once:!0}),a.addEventListener("error",u,{once:!0}),a.src="https://s.ntv.io/serve/satellite.js",i.document.head.appendChild(a),n}function l(){const e=document.querySelectorAll("script#".concat(r.O));for(const t of e)t.remove()}},4957:(e,t,i)=>{"use strict";i.d(t,{K:()=>o});i(1057),i(8324);var n=i(2505),r=i(1611);function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class o{static saveData(e,t){try{"string"!=typeof t&&(t=JSON.stringify(t)),l.setItem(e,t)}catch(i){r.util.postError(new Error("Error saving storage item [".concat(e,":").concat(t,"] - ").concat(i.message,"}")))}}static getData(e){try{const t=l.getItem(e);return null===t?null:function(e){try{return JSON.parse(e)}catch(t){return e}}(t)}catch(t){return r.util.postError(new Error("Error parsing storage item [".concat(e,"] - ").concat(t.message,"}"))),null}}static deleteData(e){try{l.removeItem(e)}catch(t){r.util.postError(new Error("Error deleting storage item [".concat(e,"] - ").concat(t.message,"}")))}}}class a{setItem(e,t){localStorage.setItem(e,t)}getItem(e){return localStorage.getItem(e)}removeItem(e){localStorage.removeItem(e)}}class c{setItem(e,t){(0,n.d8)(e,t)}getItem(e){return(0,n.ej)(e)}removeItem(e){(0,n.kT)(e)}}const l=new class{constructor(){s(this,"localStorage",void 0),s(this,"cookieStorage",void 0),this.localStorage=function(){try{return window.localStorage?new a:null}catch(e){return null}}(),this.cookieStorage=new c}setItem(e,t){this.localStorage?this.localStorage.setItem(e,t):this.cookieStorage.setItem(e,t)}getItem(e){let t;return this.localStorage&&(t=this.localStorage.getItem(e)),null==t&&(t=this.cookieStorage.getItem(e)),t}removeItem(e){this.localStorage&&this.localStorage.removeItem(e),this.cookieStorage.removeItem(e)}}},9492:(e,t,i)=>{"use strict";i.d(t,{a:()=>n});const n={secondaryImpressionActionType:2,clickActionType:3,cta:4,readAndClickActionTypes:"2,3",videoView:22,videoEndActionType:23,timeOnContent:34,slideTimeOnContent:62,storiesCompletion:63,vastError:64,vastErrorOpenProgrammatic:585,videoProgress25PercentActionType:39,videoProgress50PercentActionType:40,videoProgress75PercentActionType:41,videoHeadlineClick:48,articlePageViewActionType:52,gallery:54,clickToUnMute:55,videoStartActionType:56,videoBillableView:58,companionCta:59,videoPlayed15SecondsType:60,videoPlayed30SecondsType:61,prerollVideoStartType:62,optVideoByClick:65,surveyView:2022,VEV_PAGE_LOAD:2023,VEV_LINK_CLICK:2031,VEV_VIDEO_PLAY:2032,VEV_VIDEO_COMPLETE:2033,VEV_VIDEO_QUARTILE_25:2034,VEV_VIDEO_QUARTILE_50:2035,VEV_VIDEO_QUARTILE_75:2036}},7178:(e,t,i)=>{"use strict";i.d(t,{Z:()=>L});i(1057),i(6265);var n=i(1611);i(560),i(4043);function r(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class s{constructor(e){r(this,"stringArray",void 0),this.stringArray=e||new Array}static fromString(e){return new s([e])}append(e){this.stringArray.push(e)}toString(){return this.stringArray.join("")}get length(){return this.stringArray.length}}function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class a extends s{constructor(e){if(super(e),o(this,"tokens",[]),e)for(let t=0;t=0;t--){const{index:i,value:n}=this.tokens[t],r=e[n];void 0!==r&&(this.stringArray[i]=r.toString())}}}function c(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class l{constructor(){c(this,"tokenDefinitions",new Map)}static getInstance(){return l.instance||(l.instance=new l),l.instance}registerToken(e,t){this.tokenDefinitions.set(e,t)}registerTokens(e){for(const[t,i]of Object.entries(e))this.registerToken(t,i)}processData(e){const t={};if(!e)return t;for(const[i,n]of this.tokenDefinitions.entries())try{let r=n.extract(e);void 0===r&&void 0!==n.defaultValue&&(r=n.defaultValue),void 0!==r&&(t[i]=n.transform(r))}catch(e){console.error("Error processing token ".concat(i,":"),e)}return t}}function u(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}c(l,"instance",void 0),l.getInstance().registerTokens({DURATION_VALUE:{extract:e=>void 0!==e.durationSeconds?e.durationSeconds:void 0!==e.duration?e.duration/1e3:void 0,transform:e=>e},POSITION_VALUE:{extract:e=>void 0!==e.positionSeconds?e.positionSeconds:void 0!==e.elapsed?e.elapsed/1e3:void 0,transform:e=>e},TIME_VALUE:{extract:e=>void 0!==e.position?e.position:void 0!==e.elapsed?e.elapsed:void 0,transform:e=>Math.round(e)},TIME_TOTAL_VALUE:{extract:e=>{if(void 0!==e.totalElapsed)return e.totalElapsed},transform:e=>Math.round(e)},TIMESTAMP:{extract:()=>Date.now(),transform:e=>e},CACHEBUSTER:{extract:()=>Math.random(),transform:e=>Math.floor(1e7*e)}});class d{constructor(e){u(this,"eventTracker",void 0),u(this,"tokenRegistry",void 0),this.eventTracker=e,this.tokenRegistry=l.getInstance()}track(e){const t=e?this.tokenRegistry.processData(e):{};this.executeTracking(t)}}function h(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class p extends d{constructor(e){if(super(e),h(this,"urlBuilder",void 0),e.data.url){this.urlBuilder=a.fromString(e.data.url);for(const[t,i]of Object.entries(e.data.customdata))this.urlBuilder.append("&".concat(t,"=")),this.urlBuilder.append("".concat(i))}}executeTracking(e){this.urlBuilder.fillTokensFromMap(e)}get url(){return this.urlBuilder.toString()}}class f extends p{executeTracking(e){super.executeTracking(e),n.util.appendScript(this.url)}}class m extends p{executeTracking(e){super.executeTracking(e),n.util.appendImage(this.url)}}var v=i(9866),g=i(8258),y=i(4402),b=i(5481);function E(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function w(e,t){return e.get(S(e,t))}function T(e,t,i){return e.set(S(e,t),i),i}function S(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var A=new WeakMap,I=new WeakMap;class P extends d{constructor(e){if(super(e),E(this,A,void 0),E(this,I,void 0),T(A,this,e.data.ext.html),void 0===w(A,this))throw new Error("[HTMLTrackingMethod] tracking method requires html string")}executeTracking(e){try{T(I,this,(0,g.createScriptEvaluatingFragmentFromHTMLString)(w(A,this)));(document.head||document.body).appendChild(w(I,this))}catch(e){const t=new y.X("[HTMLTrackingMethod] Tracking Failed: Error creating HTML fragment from string");t.data={htmlString:w(A,this)},b.Z.postError(t)}}}var C=i(2603);function k(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function R(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function D(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var O=new WeakMap,_=new WeakSet;class L{constructor(e){var t,i;R(t=this,i=_),i.add(t),function(e,t,i){R(e,t),t.set(e,i)}(this,O,void 0),k(this,"data",void 0),k(this,"type",v.Z.EventTracker),k(this,"eventGroup",void 0),k(this,"enabled",!0),this.validateData(e),this.data=e,function(e,t,i){e.set(D(e,t),i)}(O,this,D(_,this,N).call(this,this.data.method))}validateData(e){if(!e.event)throw new Error("EventTrackerData must include an event (integer) property");if(!e.method)throw new Error("EventTrackerData must include a method (integer) property")}registerEventGroup(e){this.eventGroup=e}enable(){this.enabled=!1}disable(){this.enabled=!1}track(e){var t,i;if(!(this.enabled&&this.data.ext.fireOnce&&this.data.ext.fired)&&((t=O,i=this,t.get(D(t,i))).track(e),this.data.ext.fired=!0,this.eventGroup))for(const e of this.eventGroup)e!==this&&e.disable()}}function N(e){if(e===C.e.IMAGE)return new m(this);if(e===C.e.JAVASCRIPT)return new f(this);if(e===C.e.HTML)return new P(this);throw new Error("Unsupported tracking method: ".concat(e))}},9866:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n={EventTracker:"EventTracker",TimeEventTracker:"TimeEventTracker"}},6664:(e,t,i)=>{"use strict";i.d(t,{V:()=>c});i(1057),i(6801),i(6265);var n,r=i(255),s=i(7178),o=i(6260);function a(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class c{createTracker(e){var t;return this.isTimedOpenRTBEvent(e.event)?this.createTimeEventTracker(this.mergeTimedEventData(e)):null!=e&&null!==(t=e.ext)&&void 0!==t&&t.times&&e.ext.times.length>0?this.createTimeEventTracker(this.mergeCustomTimedEventData(e)):c.createBaseEventTracker(e)}mergeTimedEventData(e){let t={...c.DEFAULT_TRIGGERED_TIME_EXTENSION,...e.ext};return t.times&&t.times.length>0||(t.times=c.DEFAULT_TIMING_VALUES[e.event]||[]),{...c.DEFAULT_OPTIONAL_PROPERTIES,...e,ext:t}}mergeCustomTimedEventData(e){return{...c.DEFAULT_OPTIONAL_PROPERTIES,...e,ext:{...c.DEFAULT_TIME_EXTENSION,...e.ext}}}isTimedOpenRTBEvent(e){return[r.bB["viewable-mrc50"],r.bB["viewable-mrc100"],r.bB["viewable-video50"]].includes(e)}createTimeEventTracker(e){return new o.e(e)}static createBaseEventTracker(e){return new s.Z({...c.DEFAULT_OPTIONAL_PROPERTIES,...e,ext:{...c.DEFAULT_EXTENSION,...e.ext}})}}n=c,a(c,"DEFAULT_EXTENSION",{fired:!1,fireOnce:!0,eventgroup:""}),a(c,"DEFAULT_TIME_EXTENSION",{...n.DEFAULT_EXTENSION,times:[],timingType:"position"}),a(c,"DEFAULT_OPTIONAL_PROPERTIES",{ext:{},customdata:new Map,url:""}),a(c,"DEFAULT_TIMING_VALUES",{[r.bB["viewable-mrc50"]]:[1e3],[r.bB["viewable-mrc100"]]:[1e3],[r.bB["viewable-video50"]]:[2e3]}),a(c,"DEFAULT_TRIGGERED_TIME_EXTENSION",{...n.DEFAULT_EXTENSION,times:[],timingType:"continuous"})},2189:(e,t,i)=>{"use strict";i.d(t,{R:()=>m,n:()=>y});i(1057),i(560),i(6265);var n=i(8784),r=i(5481);function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(e,t,i){a(e,t),t.set(e,i)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(e,t){return e.get(u(e,t))}function l(e,t,i){return e.set(u(e,t),i),i}function u(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}const d={additionalQSParamArray:{},queryStringDataMap:{},fired:!1,fireOnce:!1};var h=new WeakMap,p=new WeakMap,f=new WeakSet;class m{constructor(e){let{tracker:t,trackableEvents:i=[]}=e;var n,r;a(n=this,r=f),r.add(n),o(this,h,void 0),o(this,p,void 0),s(this,"trackableEvents",void 0),l(h,this,t),this.trackableEvents=i,l(p,this,new Map);for(let e of this.trackableEvents){var u;e={...d,...e},c(p,this).has(e.eventName)||c(p,this).set(e.eventName,[]),null===(u=c(p,this).get(e.eventName))||void 0===u||u.push(e)}}addTrackableEvent(e){var t;e={...d,...e},c(p,this).has(e.eventName)||c(p,this).set(e.eventName,[]),null===(t=c(p,this).get(e.eventName))||void 0===t||t.push(e)}fire(e,t){const i=c(p,this).get(e);if(i)for(const e of i)g(e)&&u(f,this,v).call(this,e,t)}}function v(e,t){if(e.fireOnce&&e.fired)return;if(e.callback&&e.callback(t),null==e.actionTypes||0==e.actionTypes.length)return;let i="";for(const[t,n]of Object.entries(e.additionalQSParamArray))i+="&".concat(t,"=").concat(n);for(const[n,r]of Object.entries(e.queryStringDataMap))t.hasOwnProperty(n)&&(i+="&".concat(r,"=").concat(t[n]));c(h,this).fireTracking(e.actionTypes,i),e.fired=!0,e.firesAfterActionTypes&&e.firesAfterActionTypes.length>0&&(function(e,t){const i=(0,n.x2)(e).firedActionTypes;return void 0!==i&&t.every(e=>i.has(e))}(c(h,this).adPlacementId,e.firesAfterActionTypes)||r.Z.postError(new Error("EventTracker for adPlacement [".concat(c(h,this).adPlacementId,", integrationType:").concat(c(h,this).integrationType,"] fired [").concat(e.actionTypes,"] before [").concat(e.firesAfterActionTypes,"] on ").concat(window.location.href," from event ").concat(e.eventName,".")))),y(c(h,this).adPlacementId,e.actionTypes)}function g(e){return function(e){return null!=e.eventName}(e)&&function(e){return!e.fired||!e.fireOnce}(e)}function y(e,t){const i=(0,n.x2)(e);i.firedActionTypes=i.firedActionTypes||new Set,t.forEach(e=>i.firedActionTypes.add(e))}},6260:(e,t,i)=>{"use strict";i.d(t,{D:()=>o,e:()=>a});i(1057);var n=i(7178),r=i(9866);function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const o={Position:"position",Sustained:"sustained",Continuous:"continuous"};class a extends n.Z{constructor(e){super(e),s(this,"type",r.Z.TimeEventTracker),this.validateTimeData(e)}validateTimeData(e){if(!e.ext.times||0===e.ext.times.length)throw new Error("TimeEventTrackerData must include times in ext property")}track(e){super.track(e)}trackTimerEvent(e){super.track(e)}}},3798:(e,t,i)=>{"use strict";i.d(t,{f:()=>c});var n=i(8784),r=i(1288),s=i(1611),o=i(1171);const a={baseTrackingUrl:void 0,adId:void 0,placementId:void 0,adVersionPlacement:void 0,thirdPartyTrackers:{},extraQS:""};function c(e){const t=function(e){const t={...e};return(0,o.h3)(t,"trackingBaseUrl","baseTrackingUrl"),t}(e);Object.assign(this,a,t)}c.prototype.fireTracking=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!Array.isArray(e)||0===e.length)return;let i=(0,n.SQ)(this.baseTrackingUrl,e.join(),this.adId,this.adVersionPlacement);this.extraQS&&s.util.is("s",this.extraQS)&&(i=i.concat(this.extraQS)),t&&s.util.is("s",t)&&(i=i.concat(t));let o="";e.forEach(e=>{this.thirdPartyTrackers[e]&&(o+=this.thirdPartyTrackers[e])}),(0,r.HG)(i,o,1)}},5573:(e,t,i)=>{"use strict";i.d(t,{$:()=>r});i(1057);function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class r{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,"visible",!1),n(this,"totalArea",0),n(this,"ratioInView",0),n(this,"xInView",0),n(this,"yInView",0),Object.assign(this,e)}}},9601:(e,t,i)=>{"use strict";i.d(t,{Ps:()=>s,YM:()=>o,c9:()=>c});var n=i(2406),r=i(6101);function s(){0==n.core.viewableImpressionTrackers.length&&a()}const o=()=>{if(null!=n.core&&n.core.viwabilityEventsCreated)return;const e=n.core.internalPubSub;e.subscribe(r.xu.TOP_WINDOW_READY,c),e.subscribe(r.xu.TOP_WINDOW_SCROLL,c),n.core.viwabilityEventsCreated=!0},a=()=>{const e=n.core.internalPubSub;e.unsubscribe(r.xu.TOP_WINDOW_READY,c),e.unsubscribe(r.xu.TOP_WINDOW_SCROLL,c),n.core.viwabilityEventsCreated=!1},c=e=>{const t=n.core.viewableImpressionTrackers,i=t.length;if(0===i)return;let r,s=0;for(;s{"use strict";i.d(t,{A:()=>u});i(1057);var n=i(1611),r=i(8913),s=i(3021),o=i(1171),a=i(5573);function c(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const l={enabled:!0};class u{constructor(e){c(this,"tracker",void 0),c(this,"type",void 0),c(this,"id",void 0),c(this,"element",void 0),c(this,"enabled",void 0),c(this,"checkOnFocus",void 0),c(this,"selector",void 0),c(this,"isInvTracking",void 0),c(this,"minimumAreaViewable",void 0),c(this,"checkMinimumAreaViewable",void 0),c(this,"visible",void 0),c(this,"pubSub",void 0),c(this,"viewabilityData",void 0),(0,o.LP)(e,l),this.tracker=e,this.id=e.id,this.element=e.element,this.enabled=e.enabled,this.checkOnFocus=e.checkOnFocus,this.selector=e.selector,this.isInvTracking=e.isInvTracking,this.minimumAreaViewable=e.minimumAreaViewable,this.checkMinimumAreaViewable=e.checkMinimumAreaViewable,this.visible=!1,this.pubSub=new r.ZP,this.viewabilityData=new a.$}addViewableEventListener(e,t){void 0!==s._[e]&&this.pubSub.subscribe(s._[e],t)}removeViewableEventListener(e,t){void 0!==s._[e]&&this.pubSub.unsubscribe(s._[e],t)}dispose(){this.pubSub.clear()}isInFocus(){return!this.checkOnFocus||n.util.isOnFocus()}publishViewabilityChange(){this.pubSub.publish(s._.VIEWABLE_CHANGE,this.viewabilityData);this.pubSub.publish(this.viewabilityData.ratioInView>=this.minimumAreaViewable?s._.IN_VIEW:s._.OUT_OF_VIEW)}isInView(){return!0}enable(){this.enabled=!0}disable(){this.enabled=!1}checkViewability(e){}}},3221:(e,t,i)=>{"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){if(!t){const t=o(e);if(t)return parseFloat(t)}return"VIDEO"===e.tagName?r(e):"IMG"===e.tagName?s(e):c(e)}}function r(e){if(!e)return;const t=e.videoWidth,i=e.videoHeight;if(t&&i){const n=t/i;return a(e,n),n}return c(e)}function s(e){if(!e)return;const t=e.naturalWidth,i=e.naturalHeight;if(t&&i){const n=t/i;return a(e,n),n}return c(e)}function o(e){return e.dataset.ntvAspectRatio}function a(e,t){e.dataset.ntvAspectRatio=t.toString()}function c(e){const t=e.clientWidth,i=e.clientHeight;if(t&&i){const n=t/i;return a(e,n),n}return 0}i.d(t,{Pk:()=>r,Xv:()=>a,n3:()=>n})},3160:(e,t,i)=>{"use strict";i.d(t,{cg:()=>s});i(1057),i(560);var n=i(1746);function r(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class s{constructor(e){r(this,"value",void 0),r(this,"adId",void 0),r(this,"versionId",void 0),r(this,"placementId",void 0),r(this,"adPlacementId",void 0),this.value=e;const{adId:t,versionId:i,placementId:s}=function(e){const t=Number(c(e.slice(0,5))),i=Number(c(e.slice(5,10))),n=Number(c(e.slice(10,15)));return{adId:t,versionId:i,placementId:n}}(e);this.adId=t,this.versionId=i,this.placementId=s,Object.defineProperty(this,"adPlacementId",{get(){return(0,n.l)(this.adId,this.placementId)}})}static fromIdValues(e,t,i){return new s(o(e,t,i))}}function o(e,t,i){return""+l(e)+l(t)+l(i)}const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=";function c(e){let t=[];for(let i=0;i<5;i++){const n=d(h(a.indexOf(e[i])),6);t.push(n)}return p(u(t.join("")+"00"))}function l(e){let t="";const i=u(h(e,4));for(var n=0;n<5;n++){const e=6*n,r=p(i.slice(e,e+6));t+=a.charAt(Number(r))}return t}function u(e){const t=[];for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:4;return e.padStart(t,"0")}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e>>>0).toString(2).padStart(8*t,"0")}function p(e){return parseInt(e,2).toString(10)}},1422:(e,t,i)=>{"use strict";i.d(t,{s:()=>n});const n={CONTENT_COMPLETE:"content-complete",NOTICE_CONTAINER_OPEN:"notice-container-open",NOTICE_CONTAINER_CLOSE:"notice-container-close"}},1171:(e,t,i)=>{"use strict";i.d(t,{LP:()=>r,QD:()=>l,ei:()=>o,gu:()=>a,h3:()=>c,io:()=>n,sM:()=>s,uO:()=>u});i(6801),i(278),i(9045),i(3627),i(4774),i(4043),i(7267),i(8607),i(5194),i(9943),i(522),i(82),i(1638),i(3356),i(4224),i(1121),i(7133),i(6265),i(3429);function n(){for(var e=arguments.length,t=new Array(e),i=0;ivoid 0===e)}function r(e,t){for(const i of Object.keys(t)){if(e.hasOwnProperty(i))return;e[i]=t[i]}return e}function s(e){for(var t="",i=new Uint8Array(e),n=i.byteLength,r=0;r1?t-1:0),n=1;n(t[i]=e[i],t),{})}function a(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n{let[n,r]=t;return i.includes(n)||(e[n]=r),e},{})}function c(e,t,i){return e.hasOwnProperty(t)?(e[i]=e[t],delete e[t],e):e}function l(e,t){for(const i of Object.keys(e))t[i]&&(e[i]=t[i])}function u(e){let t;try{t=JSON.parse(e)}catch(e){console.error("Error parsing JSON",e),t={}}return t}},3081:(e,t,i)=>{"use strict";i.d(t,{Fh:()=>o,TC:()=>s,n$:()=>a,pw:()=>r});i(1057);function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class r{constructor(e,t){n(this,"width",void 0),n(this,"height",void 0),n(this,"aspectRatio",void 0),this.width=e,this.height=t,this.aspectRatio=this.width/this.height,Object.freeze(this)}}function s(e){return new r(e.naturalWidth,e.naturalHeight)}function o(e){return new r(e.videoWidth,e.videoHeight)}function a(e){return e+"px"}},2151:(e,t,i)=>{"use strict";i.d(t,{f:()=>u});i(1057);var n=i(2505);class r{updateScroll(e,t,i,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e=>{};e.scrollTop+=t,e.scrollTop+i>=n&&r(e)}handleLoop(e){e.scrollTop=0}}class s{updateScroll(e,t,i,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e=>{};e.scrollLeft+=t,e.scrollLeft+i>=n&&r(e)}handleLoop(e){e.scrollLeft=0}}function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;o(this,"animationFrameId",null),o(this,"lastTimestamp",0),o(this,"isRunning",!1),o(this,"boundFrameCallback",void 0),o(this,"minFrameDuration",void 0),this.frameHandler=e,this.boundFrameCallback=this.onAnimationFrame.bind(this),this.minFrameDuration=1e3/t}start(){this.isRunning||(this.isRunning=!0,this.lastTimestamp=performance.now(),this.animationFrameId=requestAnimationFrame(this.boundFrameCallback))}stop(){this.isRunning=!1,null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}onAnimationFrame(e){if(!this.isRunning)return;const t=e-this.lastTimestamp;t>=this.minFrameDuration&&(this.lastTimestamp=e,this.frameHandler(t)),this.isRunning&&(this.animationFrameId=requestAnimationFrame(this.boundFrameCallback))}}function c(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const l={speed:10,autoStart:!0,autoStartDelay:2e3,direction:"vertical",loop:!0};class u{constructor(e,t){c(this,"container",void 0),c(this,"config",void 0),c(this,"isScrolling",!1),c(this,"lastTimestamp",0),c(this,"containerHeight",0),c(this,"containerWidth",0),c(this,"scrollHeight",0),c(this,"scrollWidth",0),c(this,"resizeObserver",null),c(this,"debouncedUpdateDimensions",(0,n.Ds)(()=>this.updateDimensions(),100)),c(this,"remainingScroll",0),c(this,"scrollingStrategy",void 0),c(this,"animator",void 0),this.container=e,this.config={...l,...t},this.scrollingStrategy="vertical"===this.config.direction?new r:new s,this.animator=new a(e=>this.onFrame(e)),this.init()}init(){this.container.style.overflow="auto",this.updateDimensions(),this.resizeObserver=new ResizeObserver(this.debouncedUpdateDimensions),this.resizeObserver.observe(this.container),this.config.autoStart&&setTimeout(()=>{this.startScroll()},this.config.autoStartDelay)}updateDimensions(){this.containerHeight=this.container.clientHeight,this.containerWidth=this.container.clientWidth,this.scrollHeight=this.container.scrollHeight,this.scrollWidth=this.container.scrollWidth}startScroll(){if(this.isScrolling)return;("vertical"===this.config.direction?this.container.scrollHeight>this.container.clientHeight:this.container.scrollWidth>this.container.clientWidth)&&(this.updateDimensions(),this.isScrolling=!0,this.animator.start(),this.container.dispatchEvent(new CustomEvent("scrollstart")))}pauseScroll(){this.isScrolling&&(this.isScrolling=!1,this.animator.stop(),this.container.dispatchEvent(new CustomEvent("scrollpause")))}resumeScroll(){this.isScrolling||this.startScroll()}onFrame(e){if(!this.isScrolling)return;this.lastTimestamp+=e;const t=e/1e3*this.config.speed+this.remainingScroll,i=Math.floor(t);this.remainingScroll=t-i;const n="vertical"===this.config.direction;this.scrollingStrategy.updateScroll(this.container,i,n?this.containerHeight:this.containerWidth,n?this.scrollHeight:this.scrollWidth,e=>{this.pauseScroll(),this.config.loop&&setTimeout(()=>{this.scrollingStrategy.handleLoop(e),this.startScroll()},this.config.autoStartDelay)})}updateConfig(e){const t=this.isScrolling;this.pauseScroll(),e.direction&&e.direction!==this.config.direction&&this.updateDimensions(),this.config={...this.config,...e},t&&this.startScroll()}destroy(){this.pauseScroll(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}}},8792:(e,t,i)=>{"use strict";i.d(t,{$:()=>b});i(1057),i(6265);var n=i(8913);function r(e,t,i){s(e,t),t.set(e,i)}function s(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function a(e,t){return e.get(l(e,t))}function c(e,t,i){return e.set(l(e,t),i),i}function l(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}const u="ntv-hide",d="ntv-show",h="ntv-animated",p="hide",f="show",m=()=>{};var v=new WeakMap,g=new WeakMap,y=new WeakSet;class b{constructor(e){var t,i;s(t=this,i=y),i.add(t),o(this,"element",void 0),o(this,"pubsub",void 0),r(this,v,void 0),r(this,g,void 0),this.element=e,this.pubsub=new n.ZP,c(v,this,new AbortController),c(g,this,!1)}hide(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return a(g,this)&&l(y,this,w).call(this),e?l(y,this,E).call(this).then(t).catch(()=>{t()}):t(),this.element.classList.remove(d),this.element.classList.add(u),this.pubsub.publish(p),this}show(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return a(g,this)&&l(y,this,w).call(this),e?l(y,this,E).call(this).then(t).catch(()=>{t()}):t(),this.element.classList.remove(u),this.element.classList.add(d),this.pubsub.publish(f),this}bindShowHideMethods(e){e.show=this.show.bind(this),e.hide=this.hide.bind(this)}}async function E(){return c(v,this,new AbortController),this.element.classList.add(h),new Promise((e,t)=>{a(v,this).signal.addEventListener("abort",()=>{l(y,this,w).call(this),t("ANIMATION ABORTED")}),this.element.addEventListener("animationend",t=>{t.currentTarget===this.element&&(l(y,this,w).call(this),e(this))},{signal:a(v,this).signal}),c(g,this,!0)})}function w(){a(v,this).abort(),c(g,this,!1),this.element.classList.remove(h)}},4402:(e,t,i)=>{"use strict";i.d(t,{D:()=>c,X:()=>a});i(1057),i(6265);function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function s(e,t){return e.get(function(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}(e,t))}var o=new WeakMap;class a extends Error{constructor(e,t){super(e),r(this,o,void 0),n(this,"data",void 0),this.name="ClientError",this.data=t||{}}toObject(){return{name:this.name,message:this.message,stack:this.stack,cause:this.cause,severityLevel:s(o,this),data:this.data}}static fromError(e){const t=new a(e.message);return"Error"!==e.name&&(t.name=e.name),t.stack=e.stack,t}}class c extends a{constructor(e,t){super(e,t),this.name="DataError"}}},5481:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});i(6265);var n=i(6101),r=(i(8324),i(4402)),s=i(7730);function o(e){const[t,i]=(0,s.Y)(()=>JSON.stringify(e));if(t)throw new r.D("Failed to stringify JSON: ".concat(t.message));return i}var a=i(4651),c=i(6410);let l=new Set;class u{static postErrorMsg(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t?t.message="".concat(t.message," - ").concat(e):t=new r.X(e),this.postError(t,i)}static postError(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=e instanceof r.X?e:r.X.fromError(e),u=function(e){const t=e.toObject();return{errorType:t.name,errorMessage:t.message,errorStacktrace:t.stack,errorCause:t.cause,severityLevel:t.severityLevel,errorData:t.data}}(i),d={clientVersion:"5.1.4+0",href:encodeURIComponent(window.location.href)},h=Object.assign({},u,d);console.error(i,u);const[p,f]=(0,s.Y)(o.bind(this,h));if(p)return void this.postError(new r.X("Failed to stringify error JSON",{cause:p.message}),!0);const m=Math.floor(20*Math.random());var v,g,y;(t||!l.has(f)&&1===m)&&(l.add(f),v=f,(0,a.h)({method:"post",url:(0,c.Ev)()+"//"+n.z1.JDOMAIN+"/clientErrorLogging",contentType:"application/json",payload:v,success:e=>{g&&g(e)},error:e=>{y&&y(e)}}))}}},1746:(e,t,i)=>{"use strict";i.d(t,{d4:()=>r,l:()=>n});i(4043);function n(e,t){return"".concat(t,"-").concat(e)}function r(e){if(!e)return;const t=/ntv(\d+)-(\d+)-\d+/;let i=t.exec(e.id||e.selector||"");if(!i&&e.closest){const n=e.closest('[id^="ntv"]');n&&(i=t.exec(n.id))}if(i){return n(i[2],i[1])}}},6719:(e,t,i)=>{"use strict";i.d(t,{Yd:()=>l,ON:()=>o,pv:()=>a,Tj:()=>c});i(1057),i(6265);class n{constructor(e){this.section=e}trace(){}debug(){}info(){}warn(e){try{const r="function"==typeof e?e():e;for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n{}}async timeAsync(e,t){return t()}}i(560);function r(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const o={bg:"#1f75fe",text:"#ffffff"},a={core:{bg:"#00bf8f",text:"#ffffff"},video:{bg:"#de6f00ff",text:"#ffffff"},privacy:{bg:"#7c3aed",text:"#ffffff"},default:{bg:"#6b7280",text:"#ffffff"}};function c(){return Object.keys(a).filter(e=>"default"!==e)}class l{static get(e){const[t,i]=e.toLowerCase().split(":").map(e=>e.trim()),r="".concat(t,":").concat(i),s=i?"".concat(t,":").concat(r):t;let o=this.loggers.get(s);return o||(o=new n(e),this.loggers.set(s,o),o)}constructor(){}}s(l,"loggers",new Map),s(l,"formatter",new class{constructor(){r(this,"formatBuffer",[]),r(this,"styleBuffer",[]),r(this,"argBuffer",[]),r(this,"SPACER","background-color: unset;"),r(this,"RESET","")}NTV_PREFIX(e,t){return"background-color: ".concat(o.bg,"; ")+"color: ".concat(o.text,"; ")+"font-weight: bold; font-size: 10px; padding: 3px 5px 1px 5px; border-radius: 20px; "}LABEL(e,t){return"background-color: ".concat(e,"; ")+"color: ".concat(t,"; ")+"padding: 2px 6px; border-radius: 3px;"}addNtvPrefix(e,t){this.formatBuffer.push("%cN","%c "),this.styleBuffer.push(this.NTV_PREFIX(e,t),this.SPACER)}addLabel(e,t,i){this.formatBuffer.push("%c".concat(e,"%c")),this.styleBuffer.push(this.LABEL(t,i),this.SPACER)}log(e,t,i,n){this.formatBuffer.length=0,this.styleBuffer.length=0,this.argBuffer.length=0,this.addNtvPrefix(i,n),this.addLabel(t,i,n),this.formatBuffer.push("%c"),this.styleBuffer.push(this.RESET);for(var r=arguments.length,s=new Array(r>4?r-4:0),o=4;o{"use strict";i.d(t,{bc:()=>m,_n:()=>b,Vn:()=>a,q$:()=>S,Iy:()=>l,nC:()=>d,ZP:()=>l});i(1057);var n=i(1611);i(560),i(6265);function r(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class s{constructor(e){r(this,"eventDispatcher",void 0),r(this,"relayDispatchers",[]),r(this,"hasExtendedEmitSupport",!0),this.eventDispatcher=e}addEventListener(e,t){this.eventDispatcher.addEventListener(e,t)}addEventListenerOnce(e,t){this.eventDispatcher.addEventListenerOnce&&this.eventDispatcher.addEventListenerOnce(e,t)}removeEventListener(e,t){this.eventDispatcher.removeEventListener(e,t)}emit(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;i>s.MAX_RELAY_COUNT?console.warn('MeshDecorator: Maximum relay depth exceeded for event "'.concat(e,'". This could indicate a circular relay chain or an overly deep relay structure. Stopping propagation to prevent infinite loop.')):(this.eventDispatcher.emit(e,t),this.relayDispatchers.forEach((n,r)=>{try{this.supportsExtendedEmit(n)?n.emit(e,t,i+1):n.emit(e,t)}catch(t){console.error("MeshDecorator: Error in relay dispatcher ".concat(r,' for event "').concat(e,'":'),t)}}))}supportsExtendedEmit(e){try{return"hasExtendedEmitSupport"in e&&!0===e.hasExtendedEmitSupport||e instanceof s}catch(e){return!1}}relayTo(e){if(e===this||e===this.eventDispatcher)throw new Error("Cannot relay to self - this would create a circular relay");if(!e)throw new Error("Cannot relay to null or undefined dispatcher");if("function"!=typeof e.emit)throw new Error("Dispatcher must have an emit method");this.relayDispatchers.push(e)}removeRelay(e){const t=this.relayDispatchers.indexOf(e);return t>-1&&(this.relayDispatchers.splice(t,1),!0)}getRelayDispatchers(){return[...this.relayDispatchers]}clearRelays(){this.relayDispatchers=[]}clear(){this.clearRelays(),"clear"in this.eventDispatcher&&"function"==typeof this.eventDispatcher.clear&&this.eventDispatcher.clear()}}function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}r(s,"MAX_RELAY_COUNT",10);class a{constructor(e,t){o(this,"decorator",void 0),o(this,"id",void 0),o(this,"trigger",this.publish),o(this,"on",this.subscribe),o(this,"off",this.unsubscribe),o(this,"once",this.subscribeOnce);const i=new l(e);this.decorator=new s(i,t),this.id=e||i.id||""}static compose(e,t){const i=e.id||"composed",n=Object.create(a.prototype);return n.decorator=new s(e,t),n.id="mesh-".concat(i),n}addEventListener(e,t){this.decorator.addEventListener(e,t)}addEventListenerOnce(e,t){var i,n;null===(i=(n=this.decorator).addEventListenerOnce)||void 0===i||i.call(n,e,t)}removeEventListener(e,t){this.decorator.removeEventListener(e,t)}emit(e,t,i){this.decorator.emit(e,t,i)}subscribe(e,t,i){return"subscribe"in this.decorator&&"function"==typeof this.decorator.subscribe?this.decorator.subscribe(e,t,i):(this.addEventListener(e,t),i||"default-key")}subscribeOnce(e,t,i){"subscribeOnce"in this.decorator&&"function"==typeof this.decorator.subscribeOnce?this.decorator.subscribeOnce(e,t,i):this.addEventListenerOnce&&this.addEventListenerOnce(e,t)}unsubscribe(e,t,i){return this.removeEventListener(e,t),!0}unsubscribeByKey(e,t){return!0}publish(e,t){this.emit(e,t)}clear(){this.decorator.clear()}relayTo(e){if(e===this)throw new Error("Cannot relay to self");this.decorator.relayTo(e)}removeRelay(e){return this.decorator.removeRelay(e)}getRelayDispatchers(){return this.decorator.getRelayDispatchers()}clearRelays(){this.decorator.clearRelays()}getActiveEventCount(){return this.decorator.getActiveEventCount()}clearActiveEvents(){this.decorator.clearActiveEvents()}get relayPubSubs(){return this.getRelayDispatchers()}}function c(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class l{constructor(e){c(this,"id",void 0),c(this,"map",void 0),c(this,"trigger",this.publish),c(this,"on",this.subscribe),c(this,"off",this.unsubscribe),c(this,"once",this.subscribeOnce),c(this,"addEventListener",this.subscribe),c(this,"removeEventListener",this.unsubscribe),this.id=e||"",this.map=new u}subscribe(e,t,i){const r=i||n.util.generateUniqueId();return this.map.addPubSubEntry(e,t,r),r}subscribeOnce(e,t,i){const r=i||n.util.generateUniqueId();this.subscribe(e,i=>{t(i),this.unsubscribeByKey(e,r)},r)}unsubscribe(e,t,i){return this.map.removePubSubEntry(e,t,i)}unsubscribeByKey(e,t){return this.map.removePubSubEntryByKey(e,t)}publish(e,t){this.map.getPubSubscribers(e).forEach(e=>{"function"==typeof e&&e(t)})}emit(e,t){this.publish(e,t)}addEventListenerOnce(e,t){this.subscribeOnce(e,t)}clear(){this.map.clear()}}class u{constructor(){c(this,"map",void 0),this.map={}}addPubSubEntry(e,t,i){this.map.hasOwnProperty(e)||(this.map[e]={}),this.map[e][i]=t}removePubSubEntry(e,t,i){if(!this.map.hasOwnProperty(e))return!1;let n=!1;if(i&&this.map[e].hasOwnProperty(i))delete this.map[e][i],n=!0;else for(const i in this.map[e])if(this.map[e][i]===t){delete this.map[e][i],n=!0;break}return n}removePubSubEntryByKey(e,t){if(!this.map.hasOwnProperty(e))return!1;const i=this.map[e].hasOwnProperty(t);return delete this.map[e][t],i}removePub(e){this.map.hasOwnProperty(e)&&delete this.map[e]}getPubSubscribers(e){return this.map.hasOwnProperty(e)?Object.values(this.map[e]):[]}hasSubscribers(e){return this.getPubSubscribers(e).length>0}clear(){this.map={}}}function d(e,t){e.on=t.subscribe.bind(t),e.addEventListener=t.subscribe.bind(t),e.once=t.subscribeOnce.bind(t),e.removeEventLIstener=t.unsubscribe.bind(t),e.off=t.unsubscribe.bind(t)}function h(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class p{constructor(e){h(this,"eventCache",new Map),h(this,"eventDispatcher",void 0),this.eventDispatcher=e}addEventListener(e,t){this.eventDispatcher.addEventListener(e,t)}addEventListenerOnce(e,t){this.eventDispatcher.addEventListenerOnce&&this.eventDispatcher.addEventListenerOnce(e,t)}removeEventListener(e,t){this.eventDispatcher.removeEventListener(e,t)}emit(e,t){this.eventCache.set(e,{data:t,timestamp:Date.now()}),this.eventDispatcher.emit(e,t)}addEventListenerWithCache(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.addEventListener(e,t),i&&this.handleCachedEvent(e,t)}addEventListenerOnceWithCache(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]){const i=this.eventCache.get(e);if(i){try{t(i.data)}catch(t){console.error("Error handling cached event ".concat(e,":"),t)}return}}this.addEventListenerOnce&&this.addEventListenerOnce(e,t)}handleCachedEvent(e,t){const i=this.eventCache.get(e);if(i)try{t(i.data)}catch(t){console.error("Error handling cached event ".concat(e,":"),t)}}getCachedEvent(e){return this.eventCache.get(e)||null}getAllCachedEvents(){return new Map(this.eventCache)}clearCachedEvents(e){e?this.eventCache.delete(e):this.eventCache.clear()}hasCachedEvent(e){return this.eventCache.has(e)}clear(){this.eventCache.clear(),"clear"in this.eventDispatcher&&"function"==typeof this.eventDispatcher.clear&&this.eventDispatcher.clear()}}function f(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class m{constructor(e){f(this,"decorator",void 0),f(this,"id",void 0),f(this,"trigger",this.publish),f(this,"on",this.subscribe),f(this,"off",this.unsubscribe),f(this,"once",this.subscribeOnce);const t=new l(e);this.decorator=new p(t),this.id=e||t.id||""}static compose(e){const t=e.id||"composed",i=Object.create(m.prototype);return i.decorator=new p(e),i.id="cached-".concat(t),i}addEventListener(e,t){this.decorator.addEventListener(e,t)}addEventListenerOnce(e,t){var i,n;null===(i=(n=this.decorator).addEventListenerOnce)||void 0===i||i.call(n,e,t)}removeEventListener(e,t){this.decorator.removeEventListener(e,t)}emit(e,t){this.decorator.emit(e,t)}subscribe(e,t,i){return"subscribe"in this.decorator&&"function"==typeof this.decorator.subscribe?this.decorator.subscribe(e,t,i):(this.addEventListener(e,t),i||"default-key")}subscribeOnce(e,t,i){"subscribeOnce"in this.decorator&&"function"==typeof this.decorator.subscribeOnce?this.decorator.subscribeOnce(e,t,i):this.addEventListenerOnce&&this.addEventListenerOnce(e,t)}unsubscribe(e,t,i){return this.removeEventListener(e,t),!0}unsubscribeByKey(e,t){return!0}publish(e,t){this.emit(e,t)}clear(){this.decorator.clear()}subscribeWithCache(e,t){let i=arguments.length>3?arguments[3]:void 0;return this.decorator.addEventListenerWithCache(e,t,arguments.length>2&&void 0!==arguments[2]&&arguments[2]),i||"cache-key"}subscribeOnceWithCache(e,t){this.decorator.addEventListenerOnceWithCache(e,t,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}getCachedEvent(e){return this.decorator.getCachedEvent(e)}getAllCachedEvents(){return this.decorator.getAllCachedEvents()}clearCachedEvents(e){this.decorator.clearCachedEvents(e)}hasCachedEvent(e){return this.decorator.hasCachedEvent(e)}}function v(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class g{constructor(e,t,i){v(this,"eventDispatcher",void 0),v(this,"element",void 0),v(this,"eventMap",void 0),this.element=e,this.eventDispatcher=t,this.eventMap=i instanceof Map?i:void 0}addEventListener(e,t){this.eventDispatcher.addEventListener(e,t)}addEventListenerOnce(e,t){this.eventDispatcher.addEventListenerOnce&&this.eventDispatcher.addEventListenerOnce(e,t)}removeEventListener(e,t){this.eventDispatcher.removeEventListener(e,t)}emit(e,t){this.eventDispatcher.emit(e,t),this.dispatchToDOM(e,t)}dispatchToDOM(e,t){var i;const n=(null===(i=this.eventMap)||void 0===i?void 0:i.get(e))||e,r={relayEvent:e,topic:this.getDispatcherId(),data:t};this.element.dispatchEvent(new CustomEvent(n,{detail:r,bubbles:!0,composed:!0}))}getDispatcherId(){return"id"in this.eventDispatcher&&"string"==typeof this.eventDispatcher.id?this.eventDispatcher.id:"dom-dispatcher"}setEventMap(e){this.eventMap=e instanceof Map?e:void 0}getEventMap(){return this.eventMap}getElement(){return this.element}setElement(e){this.element=e}clear(){"clear"in this.eventDispatcher&&"function"==typeof this.eventDispatcher.clear&&this.eventDispatcher.clear()}}function y(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class b{constructor(e,t,i){y(this,"decorator",void 0),y(this,"id",void 0),y(this,"trigger",this.publish),y(this,"on",this.subscribe),y(this,"off",this.unsubscribe),y(this,"once",this.subscribeOnce);const n=new l(i);this.decorator=new g(e,n,t),this.id=i||n.id||""}static compose(e,t,i){const n=t.id||"composed",r=Object.create(b.prototype);return r.decorator=new g(e,t,i),r.id="dispatch-".concat(n),r}addEventListener(e,t){this.decorator.addEventListener(e,t)}addEventListenerOnce(e,t){var i,n;null===(i=(n=this.decorator).addEventListenerOnce)||void 0===i||i.call(n,e,t)}removeEventListener(e,t){this.decorator.removeEventListener(e,t)}emit(e,t){this.decorator.emit(e,t)}subscribe(e,t,i){return"subscribe"in this.decorator&&"function"==typeof this.decorator.subscribe?this.decorator.subscribe(e,t,i):(this.addEventListener(e,t),i||"default-key")}subscribeOnce(e,t,i){"subscribeOnce"in this.decorator&&"function"==typeof this.decorator.subscribeOnce?this.decorator.subscribeOnce(e,t,i):this.addEventListenerOnce&&this.addEventListenerOnce(e,t)}unsubscribe(e,t,i){return this.removeEventListener(e,t),!0}unsubscribeByKey(e,t){return!0}publish(e,t){this.emit(e,t)}clear(){this.decorator.clear()}setEventMap(e){this.decorator.setEventMap(e)}getEventMap(){return this.decorator.getEventMap()}getElement(){return this.decorator.getElement()}setElement(e){this.decorator.setElement(e)}}function E(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class w{constructor(e){E(this,"eventDispatcher",void 0),E(this,"listenerMap",new WeakMap),this.eventDispatcher=e}addEventListener(e,t){const i=i=>{const n=new Event(e);t(n,i)};this.listenerMap.set(t,i),this.eventDispatcher.addEventListener(e,i)}addEventListenerOnce(e,t){if(this.eventDispatcher.addEventListenerOnce){const i=i=>{const n=new Event(e);t(n,i)};this.listenerMap.set(t,i),this.eventDispatcher.addEventListenerOnce(e,i)}}removeEventListener(e,t){const i=this.listenerMap.get(t);i?(this.eventDispatcher.removeEventListener(e,i),this.listenerMap.delete(t)):this.eventDispatcher.removeEventListener(e,t)}emit(e,t){this.eventDispatcher.emit(e,t)}clear(){"clear"in this.eventDispatcher&&"function"==typeof this.eventDispatcher.clear&&this.eventDispatcher.clear(),this.listenerMap=new WeakMap}}function T(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class S{constructor(e){T(this,"trigger",this.publish),T(this,"on",this.subscribe),T(this,"off",this.unsubscribe),T(this,"once",this.subscribeOnce);const t=new l(e);this.decorator=new w(t),this.id=e||t.id||""}static compose(e){const t=e.id||"composed",i=Object.create(S.prototype);return i.decorator=new w(e),i.id="public-".concat(t),i}addEventListener(e,t){this.decorator.addEventListener(e,t)}addEventListenerOnce(e,t){this.decorator.addEventListenerOnce&&this.decorator.addEventListenerOnce(e,t)}removeEventListener(e,t){this.decorator.removeEventListener(e,t)}emit(e,t){this.decorator.emit(e,t)}subscribe(e,t,i){return"subscribe"in this.decorator&&"function"==typeof this.decorator.subscribe?this.decorator.subscribe(e,t,i):(this.addEventListener(e,t),i||"default-key")}subscribeOnce(e,t,i){"subscribeOnce"in this.decorator&&"function"==typeof this.decorator.subscribeOnce?this.decorator.subscribeOnce(e,t,i):this.addEventListenerOnce&&this.addEventListenerOnce(e,t)}unsubscribe(e,t,i){return this.removeEventListener(e,t),!0}unsubscribeByKey(e,t){return!0}publish(e,t){this.emit(e,t)}clear(){this.decorator.clear()}}},7125:(e,t,i)=>{"use strict";function n(e){!function(e,t){e.dataset.ntvOverflowSaved=e.style.overflow,e.style.overflow=t}(e,"hidden")}function r(e){!function(e){const t=e.dataset.ntvOverflowSaved;if(null==t)return;e.style.overflow=t,delete e.dataset.ntvOverflowSaved}(e)}i.d(t,{Tm:()=>r,iU:()=>n})},3289:(e,t,i)=>{"use strict";i.d(t,{B7:()=>a,U6:()=>o,vo:()=>s});i(1057);var n=i(8913);function r(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const s={TIME_TRIGGER_EVENT:"time-trigger-event",TIME_PAUSE_EVENT:"time-halt-event"},o={TIME_ON_CONTENT:"time-on-content-trigger-event",TIME_ON_CONTENT_HALT:"time-on-content-halted-event"};class a{constructor(e,t){r(this,"startTime",0),r(this,"elapsedTime",0),r(this,"running",!1),r(this,"triggered",!1),r(this,"interval",void 0),r(this,"pubSub",new n.ZP),r(this,"triggerEventKey",void 0),r(this,"haltEventKey",void 0),this.interval=e,this.triggerEventKey=(null==t?void 0:t.triggerEvent)||s.TIME_TRIGGER_EVENT,this.haltEventKey=(null==t?void 0:t.haltEvent)||s.TIME_PAUSE_EVENT}start(){this.running||(this.running=!0,this.triggered=!1,this.elapsedTime=0,this.startTime=performance.now())}resume(){this.running||(this.running=!0,this.startTime=performance.now())}pause(){this.running&&(this.running=!1,this.elapsedTime+=performance.now()-this.startTime,this.pubSub.publish(this.haltEventKey,{elapsed:this.elapsedTime,duration:this.interval}))}reset(){this.pause(),this.triggered=!1,this.elapsedTime=0}getElapsedTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:performance.now();return this.running?this.elapsedTime+(e-this.startTime):this.elapsedTime}shouldTrigger(e){if(!this.running||this.triggered)return!1;return this.getElapsedTime(e)>=this.interval}trigger(){if(this.triggered||!this.running)return;const e=performance.now(),t=this.getElapsedTime(e);t>=this.interval&&(this.triggered=!0,this.running=!1,this.pubSub.publish(this.triggerEventKey,{elapsed:t,duration:this.interval}))}addEventListener(e,t){this.pubSub.subscribe(e,t)}addEventListenerOnce(e,t){this.pubSub.subscribeOnce(e,t)}removeEventListener(e,t){this.pubSub.unsubscribe(e,t)}emit(e,t){this.pubSub.emit(e,t)}setInterval(e){if(this.running)throw new Error("Cannot change interval while timer is running. Pause the timer first.");this.interval=e}}},7730:(e,t,i)=>{"use strict";i.d(t,{Y:()=>n,Z:()=>r});const n=e=>{try{return[null,e()]}catch(e){return[e,null]}},r=async e=>{try{return[null,await e()]}catch(e){return[e,null]}}},6410:(e,t,i)=>{"use strict";i.d(t,{Ev:()=>l,Me:()=>u,Qb:()=>a,_G:()=>c,bl:()=>d,yt:()=>h});i(1057),i(6801),i(560),i(4043),i(7267),i(3429);var n=i(1171),r=i(4862),s=i(1498);function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class a{constructor(e,t){o(this,"key",void 0),o(this,"value",void 0),this.key=e,this.value=t}isValid(){return null!=this.key&&null!=this.value}toString(){return null==this.key||null==this.value?"":"".concat(this.key,"=").concat(this.value)}}function c(e,t){try{if(!e.isValid())return t;const i=t.search(/ntv_r/);return i>=0?(0,s._D)("".concat(e.toString(),"&"),t,i):function(e,t){return function(e){return e.includes("?")}(t)?t+="&".concat(e.toString()):t+="?".concat(e.toString())}(e,t)}catch(e){return t}}function l(){return"https:"}function u(e){let t=!1,i=e,n="";const s=(0,r.W)("settings"),o=s.get("adBlocker"),a=s.get("adBlockerDomain");if(o&&e.indexOf(a)>=0)try{let r=e.split("/");i=h(r[r.length-1]),i.startsWith("proxyTracking/")?i=i.replace("proxyTracking/",""):i.startsWith("https://proxyTracking/")&&(i=i.replace("https://proxyTracking/","")),t=!0,n=r[r.length-2]}catch(e){}return{decodedUrl:i,isDecoded:t,domain:n}}function d(e,t){let i=[72,-124,36];i.push(t?50:Number(new Date)/864e5&255);var r=p(e,i),s=i.concat(r);return(0,n.sM)(s)}function h(e){e=(e=e.replace(/[-]/g,"+")).replace(/[_]/g,"/");let t=atob(e),i=[];for(o=0;o{"use strict";i.d(t,{R:()=>n,k:()=>r});const n={PAUSE:1,RESTART:2,PLAY:3},r={NONE:0,DEFAULT_TEMPLATE:1,COLLAPSED_VIDEO_TEMPLATE:2,EXPANDED_VIDEO_TEMPLATE:4,PRE_EXPANDED_VIDEO_TEMPLATE:8,JUMPSTART_TEMPLATE:16,BANNER_TEMPLATE:32}},6046:(e,t,i)=>{"use strict";function n(e,t){e.wrapper&&(e.wrapper.style.aspectRatio=t,e.wrapper.dataset.ntvVideoAspectRatio=t)}function r(e){return e.wrapper?e.wrapper.dataset.ntvVideoAspectRatio:null}i.d(t,{c:()=>n,j:()=>r})},25:(e,t,i)=>{"use strict";i.d(t,{v:()=>r});i(1057);function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class r{constructor(e){n(this,"items",[]),n(this,"currentIndex",0),this.items=this.buildPrioritizedItems(e)}next(){return this.currentIndex>=this.items.length?null:this.items[this.currentIndex++].item}hasNext(){return this.currentIndexe.item)}sortAndFilter(e,t){return(t?e.filter(e=>t(e.item)):e).sort((e,t)=>e.priority-t.priority)}peek(){return this.currentIndex>=this.items.length?null:this.items[this.currentIndex].item}getRemainingCount(){return Math.max(0,this.items.length-this.currentIndex)}isExhausted(){return this.currentIndex>=this.items.length}}},8e3:(e,t,i)=>{"use strict";i.d(t,{n:()=>r});i(1057),i(6801),i(6265);var n=i(262);class r{isDirect(){return this.getType()===n.V.DIRECT}isMulti(){return this.getType()===n.V.MULTI}isVAST(){return this.getType()===n.V.VAST}inferMimeType(e){var t;switch(null===(t=e.split(".").pop())||void 0===t?void 0:t.toLowerCase()){case"mp4":return"video/mp4";case"webm":return"video/webm";case"ogg":return"video/ogg";case"m3u8":return"application/x-mpegURL";case"mpd":return"application/dash+xml";default:return"video/mp4"}}static isVASTUrl(e){if(!e||"string"!=typeof e)return!1;const t=e.toLowerCase();return!!t.includes(".xml")||(!(!t.includes("vast")&&!t.includes("vmap"))||!(!t.includes("adtag")&&!t.includes("ad_tag")))}static async create(e){if(e.src){if("string"==typeof e.src){const{DirectVideoSource:t}=await Promise.resolve().then(i.bind(i,2829));return new t(e.src)}{const{DirectVideoSource:t}=await Promise.resolve().then(i.bind(i,2829));return new t(e.src)}}if(e.sources&&e.sources.length>0){if(1===e.sources.length){const t=e.sources[0],{DirectVideoSource:n}=await Promise.resolve().then(i.bind(i,2829));return new n(t)}{const{MultiDirectVideoSource:t}=await Promise.resolve().then(i.bind(i,7057));return new t(e.sources)}}throw new Error("No valid video source configuration provided")}}},2829:(e,t,i)=>{"use strict";i.d(t,{DirectVideoSource:()=>o});i(1057);var n=i(8e3),r=i(262);function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class o extends n.n{constructor(e){super(),s(this,"videoSource",void 0),s(this,"initialized",!1),this.videoSource="string"==typeof e?{src:e,type:this.inferMimeType(e)}:{src:e.src,type:e.type||this.inferMimeType(e.src)}}async initialize(){this.initialized=!0}getType(){return r.V.DIRECT}getSrc(){return this.videoSource.src}getVideoJSConfig(){return{sources:[this.videoSource]}}getVideoSource(){return{...this.videoSource}}}},7057:(e,t,i)=>{"use strict";i.d(t,{MultiDirectVideoSource:()=>o});i(1057),i(6265);var n=i(8e3),r=i(262);function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class o extends n.n{constructor(e){super(),s(this,"videoSources",[]),s(this,"initialized",!1),this.videoSources=this.normalizeSources(e)}async initialize(){this.initialized=!0}getType(){return r.V.MULTI}getVideoJSConfig(){return{sources:this.videoSources}}getAllSources(){return[...this.videoSources]}getSourceCount(){return this.videoSources.length}getPrimarySource(){return this.videoSources[0]||null}normalizeSources(e){return e.map(e=>"string"==typeof e?{src:e,type:this.inferMimeType(e)}:{src:e.src,type:e.type||this.inferMimeType(e.src)})}}},262:(e,t,i)=>{"use strict";i.d(t,{V:()=>n});let n=function(e){return e.DIRECT="direct",e.MULTI="multi",e.VAST="vast",e}({})},3204:e=>{"use strict";const t=(e,t)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);if(0===(e=Array.isArray(e)?e.map(e=>e.trim()).filter(e=>e.length).join("-"):e.trim()).length)return"";if(1===e.length)return t.pascalCase?e.toUpperCase():e.toLowerCase();return e!==e.toLowerCase()&&(e=(e=>{let t=!1,i=!1,n=!1;for(let r=0;rt.toUpperCase()).replace(/\d+(\w|$)/g,e=>e.toUpperCase()),i=e,t.pascalCase?i.charAt(0).toUpperCase()+i.slice(1):i;var i};e.exports=t,e.exports.default=t},7310:(e,t,i)=>{"use strict";e.exports=i(2702).polyfill()},2702:function(e,t,i){e.exports=function(){"use strict";function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,r=void 0,s=void 0,o=function(e,t){p[n]=e,p[n+1]=t,2===(n+=2)&&(s?s(f):b())},a="undefined"!=typeof window?window:void 0,c=a||{},l=c.MutationObserver||c.WebKitMutationObserver,u="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var e=setTimeout;return function(){return e(f,1)}}var p=new Array(1e3);function f(){for(var e=0;e{"use strict";var t=["handshakeVersion","initAd","startAd","stopAd","skipAd","resizeAd","pauseAd","resumeAd","expandAd","collapseAd","subscribe","unsubscribe"];function i(e,t,i){}i.prototype.handshakeVersion=function(e,t){},i.prototype.initAd=function(e,t,i,n,r,s,o){},i.prototype.startAd=function(e){},i.prototype.stopAd=function(e){},i.prototype.skipAd=function(e){},i.prototype.resizeAd=function(e,t,i,n){},i.prototype.pauseAd=function(e){},i.prototype.resumeAd=function(e){},i.prototype.expandAd=function(e){},i.prototype.collapseAd=function(e){},i.prototype.subscribe=function(e,t,i){},i.prototype.unsubscribe=function(e,t){},i.prototype.getAdLinear=function(e){},i.prototype.getAdWidth=function(e){},i.prototype.getAdHeight=function(e){},i.prototype.getAdExpanded=function(e){},i.prototype.getAdSkippableState=function(e){},i.prototype.getAdRemainingTime=function(e){},i.prototype.getAdDuration=function(e){},i.prototype.getAdVolume=function(e){},i.prototype.getAdCompanions=function(e){},i.prototype.getAdIcons=function(e){},i.prototype.setAdVolume=function(e,t){},r(i,"METHODS",t),r(i,"GETTERS",["getAdLinear","getAdWidth","getAdHeight","getAdExpanded","getAdSkippableState","getAdRemainingTime","getAdDuration","getAdVolume","getAdCompanions","getAdIcons"]),r(i,"SETTERS",["setAdVolume"]),r(i,"EVENTS",["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange","AdSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdRemainingTimeChange","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdPaused","AdPlaying","AdLog","AdError"]);var n=t.filter((function(e){return-1===["skipAd"].indexOf(e)}));function r(e,t,i){Object.defineProperty(e,t,{writable:!1,configurable:!1,value:i})}r(i,"checkVPAIDInterface",(function(e){return n.every((function(t){return"function"==typeof e[t]}))})),e.exports=i},7013:(e,t,i)=>{"use strict";var n=i(5596),r=i(3437),s=n.checkVPAIDInterface,o=i(8077),a=n.EVENTS.filter((function(e){return"AdClickThru"!=e}));function c(e,t,i,n){this._isValid=s(e),this._isValid&&(this._creative=e,this._el=t,this._videoEl=i,this._iframe=n,this._subscribers=new r,o.setFullSizeStyle(t),l.call(this))}function l(){if(a.forEach(function(e){this._creative.subscribe(d.bind(this,e),e)}.bind(this)),this._creative.subscribe(u.bind(this),"AdClickThru"),this._videoEl){var e=this._iframe.contentDocument.documentElement,t=this._videoEl;e.addEventListener("click",(function(i){i.target===e&&t.click()}))}}function u(e,t,i){this._subscribers.triggerSync("AdClickThru",{url:e,id:t,playerHandles:i})}function d(e){this._subscribers.trigger(e,Array.prototype.slice(arguments,1))}function h(e,t,i,n){e?e(i,n):i&&t.trigger("AdError",i)}(c.prototype=Object.create(n.prototype)).isValidVPAIDAd=function(){return this._isValid},n.METHODS.forEach((function(e){-1===["subscribe","unsubscribe","initAd"].indexOf(e)&&(c.prototype[e]=function(){var t=n.prototype[e].length,i=Array.prototype.slice.call(arguments),r=t===i.length?i.pop():void 0;setTimeout(function(){var t,n=null;try{t=this._creative[e].apply(this._creative,i)}catch(e){n=e}h(r,this._subscribers,n,t)}.bind(this),0)})})),c.prototype.initAd=function(e,t,i,n,r,s,a){r=r||{},s=o.extend({slot:this._el,videoSlot:this._videoEl},s||{}),setTimeout(function(){var o;try{this._creative.initAd(e,t,i,n,r,s)}catch(e){o=e}h(a,this._subscribers,o)}.bind(this),0)},c.prototype.subscribe=function(e,t,i){this._subscribers.subscribe(t,e,i)},c.prototype.unsubscribe=function(e,t){this._subscribers.unsubscribe(t,e)},c.prototype.on=c.prototype.subscribe,c.prototype.off=c.prototype.unsubscribe,n.GETTERS.forEach((function(e){c.prototype[e]=function(t){setTimeout(function(){var i,n=null;try{i=this._creative[e]()}catch(e){n=e}h(t,this._subscribers,n,i)}.bind(this),0)}})),c.prototype.setAdVolume=function(e,t){setTimeout(function(){var i,n=null;try{this._creative.setAdVolume(e),i=this._creative.getAdVolume()}catch(e){n=e}n||(n=o.validate(i===e,"failed to apply volume: "+e)),h(t,this._subscribers,n,i)}.bind(this),0)},c.prototype._destroy=function(){this.stopAd(),this._subscribers.unsubscribeAll()},e.exports=c},1178:(e,t,i)=>{"use strict";var n=i(8077),r=n.unique("vpaidIframe"),s=i(7013);function o(e,t,i,s){i=i||{},this._id=r(),this._destroyed=!1,this._frameContainer=n.createElementInEl(e,"div"),this._videoEl=t,this._vpaidOptions=s||{timeout:1e4},this._templateConfig={template:i.template||'