var stringPrototype=String.prototype;document.createElement("template"),function(){var e=0;window.requestAnimationFrame&&window.cancelAnimationFrame||(window.requestAnimationFrame=function(t,n){var r=Date.now(),o=Math.max(0,16-(r-e)),i=window.setTimeout((function(){t(r+o)}),o);return e=r+o,i},window.cancelAnimationFrame=clearTimeout)}(),window.SVGElement&&("classList"in SVGElement.prototype||function(){var e=function(e){return new RegExp("(^| )"+e+"( |$)")},t=function(e,t,n){for(var r=0;r>>0,o=arguments[1],i=0;i>>0,o=arguments[1],i=0;i=0&&t.item(n)!==this;);return n>-1}),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;rn.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}}),"function"!=typeof stringPrototype.startsWith&&(stringPrototype.startsWith=function(e,t){return this.indexOf(e,t=t||0)===t}),stringPrototype.includes||(stringPrototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),String.fromCodePoint||function(e){var t=function(){for(var t=[],n=0,r="",o=0,i=arguments.length;o!==i;++o){var a=+arguments[o];if(!(a<1114111&&a>>>0===a))throw RangeError("Invalid code point: "+a);a<=65535?n=t.push(a):(a-=65536,n=t.push(55296+(a>>10),a%1024+56320)),n>=16383&&(r+=e.apply(null,t),t.length=0)}return r+e.apply(null,t)};try{Object.defineProperty(String,"fromCodePoint",{value:t,configurable:!0,writable:!0})}catch(e){String.fromCodePoint=t}}(String.fromCharCode),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){var r=this;setTimeout((function(){for(var o=atob(r.toDataURL(t,n).split(",")[1]),i=o.length,a=new Uint8Array(i),c=0;c0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),n)},function(e){if(e instanceof Set&&(e=e.values()),e instanceof Map&&(e=e.entries()),void 0===e.length&&"function"==typeof e.next){for(var n,o=[];(n=e.next())&&!n.done;)o.push(n.value);return o}var i=this,a=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var c,l=arguments.length>1?arguments[1]:void 0;if(void 0!==l){if(!t(l))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(c=arguments[2])}for(var u,s=r(a.length),d=t(i)?Object(new i(s)):new Array(s),f=0;f>>0;if(0===r)return!1;for(var o,i,a=0|t,c=Math.max(a>=0?a:r-Math.abs(a),0);c-1?(r[n][1]=t,i[n]=t):(r.push([e,t]),o.push(e),i.push(t))},l=function(e){if(2!==e.length)throw new TypeError("Invalid iterable passed to Map constructor");c(e[0],e[1])};return Array.isArray(n)?n.forEach(l):n instanceof t&&n.forEach((function(e,t){return l([t,e])})),Object.create(t.prototype,{_entries:{value:function(){return[].slice.call(r)}},entries:{value:function(){return new e(this,"keys+values")}},_keys:{value:function(){return[].slice.call(o)}},keys:{value:function(){return new e(this,"keys")}},_values:{value:function(){return[].slice.call(i)}},values:{value:function(){return new e(this,"values")}},has:{value:function(e){return a.call(o,e)>-1}},get:{value:function(e){var t=a.call(o,e);return t>-1?i[t]:void 0}},set:{value:c},size:{get:function(){return r.length}},clear:{value:function(){o.length=i.length=r.length=0}},delete:{value:function(e){var t=a.call(o,e);return t>-1&&(o.splice(t,1),i.splice(t,1),r.splice(t,1),!0)}},forEach:{value:function(e){if("function"!=typeof e)throw new TypeError("Invalid callback function given to forEach");var t=this;r.forEach((function(n){e.apply(arguments[1],[n[1],n[0],t])}))}},toString:{value:function(){return"[Object Map]"}}})}t.prototype=new t,t.prototype.constructor=t,window.Map=t}(),i()&&function(){function e(e,t){var n=0;return Object.create({},{next:{value:function(){if(n-1?(r[t][1]=e,o[t]=e):(r.push([e,e]),o.push(e))};return(Array.isArray(n)||n instanceof t)&&n.forEach(i),Object.create(t.prototype,{_entries:{value:function(){return[].slice.call(r)}},entries:{value:function(){return new e(this,"keys+values")}},_values:{value:function(){return[].slice.call(o)}},values:{value:function(){return new e(this,"values")}},keys:{value:function(){return new e(this,"values")}},has:{value:function(e){return a.call(o,e)>-1}},add:{value:i},size:{get:function(){return r.length}},clear:{value:function(){o.length=r.length=0}},delete:{value:function(e){var t=a.call(o,e);return t>-1&&(o.splice(t,1),r.splice(t,1),!0)}},forEach:{value:function(e){if("function"!=typeof e)throw new TypeError("Invalid callback function given to forEach");var t=this;r.forEach((function(n){e.apply(arguments[1],[n[1],n[0],t])}))}},toString:{value:function(){return"[Object Set]"}}})}t.prototype=new t,t.prototype.constructor=t,window.Set=t}()}(),window.MutationObserver=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,function(e){function t(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0}),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0})}function n(){Object.defineProperty(this,"signal",{value:new t,writable:!0,configurable:!0})}("function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController)&&(t.prototype={addEventListener:function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},dispatchEvent:function(e){if("abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),e.type in this.listeners){for(var t=this.listeners[e.type],n=0,r=t.length;n-1&&(o=!0),o?t.removeChild(n):i++,!(8==n.nodeType&&n.textContent.indexOf("META END")>-1)););o&&t.insertAdjacentHTML("afterbegin",e)}(t);else{var n=document.getElementById("hook_Block_"+e);n&&(require.defined("OK/capture")&&require("OK/capture").deactivate(n),n.innerHTML=t,require(["OK/capture"],(function(e){e.activate(n)})))}},captureBlockHook:OK.fn.empty,isHookEmpty:function(e){var t=this.getHookById(e);return!(t&&t.element&&t.element.childNodes&&t.element.childNodes.length)}},OK.clickLog=OK.clickLog||{getCounter:OK.fn.empty,incCounter:OK.fn.empty,decCounter:OK.fn.empty},OK.logging={isSeleniumBot:!1,currentLoggerFn:OK.fn.empty,setUp:function(e){OK.logging.currentLoggerFn=e},tearDown:function(){OK.logging.currentLoggerFn=OK.fn.empty},alert:function(e){OK.fn.isDebug()&&alert(e)},info:function(){if(OK.fn.isDebug())try{console&&console.log.apply(console,arguments)}catch(e){}},logger:{queue:[],replayQueue:function(){var e,t=this.queue,n=t.length;for(e=0;e0){var i=r;r=OK.fn.delegate(OK.loader.use,[i,o])}if(n)t.push(r);else try{r.call(e)}catch(e){OK.logging.alert("Onload callback error after immidiate execute: "+e.message)}},fire:function(){n=!1;for(var r=0;r=0&&(h.splice(O,1),w.push("jquery"));var b=function(){for(var e=0;e1.3},setHighDensityCookie:function(e){var n=e+"=";OK.util.isHighDensity()?n+="h;max-age=31536000;path=/":n+=";expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/",t.cookie=n},plurals:function(e){if((e=Math.abs(e)%100)>10&&e<20)return 5;var t=e%10;return t>1&&t<5?2:1==t?1:5},parseJSON:function(e){var t="\x3c!--",n=t.length,r="--\x3e".length;if(e)return 0===e.indexOf(t)&&(e=e.substring(n,e.length-r)),JSON.parse(e)},parseJsonCorrected:function(e){var t="\x3c!--",n=t.length,r="--\x3e".length;return e&&(0!==e.indexOf(t)||(e=e.substring(n,e.length-r).replace(/\\u0026#45;\\u0026#45;/g,"--")).length)?JSON.parse(e):null},nextId:function(){return this.counterId++},getOffset:function(e){var t={left:0,top:0};do{t.left+=e.offsetLeft,t.top+=e.offsetTop}while(e=e.offsetParent);return t},is4ColumnActive:function(){return window.matchMedia("screen and (min-width: 1274px)").matches},processCssHeaders:function(e){return new Promise((function(t){var n=e.getResponseHeader("required-css");if(n){var r=[];if(n.split(",").forEach((function(e){e&&r.push("OK/css-loader!"+e)})),r.length)return void require(r,t,t)}t()}))}}}(window,document),OK.favicon={change:function(e){var t=document.getElementById("favicon");if(t){var n=t.cloneNode(!0);n.setAttribute("href",e),t.parentNode.replaceChild(n,t)}}},OK.css={display:function(e,t){!function(e,t){var n="string"==typeof e?document.getElementById(e):e;n&&(n.style.display=t?"block":"none")}(e,t)},addClass:function(e,t){var n=document.getElementById(e);n&&n.classList.add(t)},removeClass:function(e,t){var n=document.getElementById(e);n&&n.classList.remove(t)}},OK.form=function(){var e="input__active";return{submit:function(e){return function(e){for(var t=e.parentNode;t&&t.tagName&&"form"!=t.tagName.toLowerCase();)t=t.parentNode;return t&&t.submit&&t.submit(),!1}(e)},selectCBxs:function(e,t){!function(e,t){var n=e.form.elements,r=n.length;for(i=0;i0);)if(0==(i=i.parent()).length)return;null!=(r=t.find("a.controls-list_lk")[0])?n=r.href:null!=(r=t.find("span.controls-list_lk")[0])&&(n=r.getAttribute("data-href"),(o=r.getAttribute("data-l-p"))&&(n+="&st.v.cl="+o)),n&&navigateOnUrlFromJS(n+"&st.v.ff=on")}else document.location.href="/"}function OKVideoOpenUserUpload(){OK.VideoPlayer.OKVideoOpenUserUpload()}function runLinkedVideoCallbackFromJS(e){likeCallbackFromJs(e.callbackId+"Object",e.liked,e.likeCount),likeCallbackFromJs(e.callbackId+"E",e.liked,e.likeCount),likeCallbackFromJs("VideoPopup_player_"+e.callbackId+"Object",e.liked,e.likeCount)}function runLinkedVideoCallback(e){var t=document.getElementById("mc"+e.blockId);t.parentNode.removeChild(t),disableKlassByPlayerId(e.callbackId+"Object")||disableKlassByPlayerId(e.callbackId+"E")||disableKlassByPlayerId("VideoPopup_player_"+e.callbackId+"Object")}function runLinkedVideoCallbackU(e){var t=document.getElementById("mc"+e.blockId);t.parentNode.removeChild(t),runLinkedVideoCallbackFromJS(e),require(["jquery"],(function(t){t(".js-like-marker[data-l-id="+e.resourceId+"]").each((function(){var n=OK.hookModel.getNearestBlockHookId(this),r=t("#hook_Block_"+n);r.length&&likeCallbackFromJs(r.data("playerId")+"E",e.liked,e.likeCount)}))}))}function disableKlassByPlayerId(e){try{document.getElementById(e).disableKlassFromJs()}catch(e){}}function likeCallbackFromJs(e,t,n){try{document.getElementById(e).likeCallbackFromJs(t,n)}catch(e){}}!function(e,t){try{var n=null,r="undefined",o="Shockwave Flash",i="application/x-shockwave-flash",a=[0,0,0],c=n,l=t.plugins,u=parseInt,s="$1";if(typeof l!=r&&"object"==typeof l[o]){c=l[o].description;var d=t.mimeTypes;!c||typeof d!=r&&d[i]&&!d[i].enabledPlugin||(c=c.replace(/^.*\s+(\S+\s+\S+$)/,s),a[0]=u(c.replace(/^(.*)\..*$/,s),10),a[1]=u(c.replace(/^.*\.(.*)\s.*$/,s),10),a[2]=/[a-zA-Z]/.test(c)?u(c.replace(/^.*[a-zA-Z]+(.*)$/,s),10):0)}else if(typeof e.ActiveXObject!=r)try{(c=function(){try{for(var e=11;e>8;e--)try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+e).GetVariable("$version")}catch(e){}return n}catch(e){return n}}())&&(c=c.split(" ")[1].split(","),a=[u(c[0],10),u(c[1],10),u(c[2],10)])}catch(e){}e.okFlashVersion=a,e.flashVerForGWT=a,OK.onload.addCallback((function(){require(["OK/cookie"],(function(e){e.setCookie("_flashVersion",a[0],30,"/"),a[0]>0&&e.setCookie("_flash7dVersion",a[0],7,"/")}))}))}catch(e){}}(window,navigator),OK.il={handlers:{},ah:function(e){if(e&&e.handle&&e.id){var t=e.id;null==this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t][this.handlers[t].length]=e}},f:function(e,t,n){if(t&&this.handlers[t])for(var r=this.handlers[t].length,o=this.handlers[t],i=0;i-1&&this.handlers[t].splice(i,1)}}},OK.pf={},OK.scrollBar=function(){OK.scrollBar.width=document.getElementById("sc").offsetWidth-document.getElementById("sch").offsetWidth},OK.setContentWidth=function(){var e=OK.scrollBar.width,t=window.innerWidth-e;t=Math.max(1e3,t);var n=document.getElementById("topPanel"),r=document.getElementById("hook_Block_BodySwitcher");r&&(r.style.width=t+"px"),n&&(n.style.width=t+"px")},OK.stop=function(e){return"click"===(e=e||window.event).type&&OK.clickLog.getCounter()>0?(e["log-clicks"]=!0,!1):(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,!1)},OK.hardStopEvent=function(e){return(e=e||window.event).stopPropagation?e.stopPropagation():e.cancelBubble=!0,!1},OK.isStopped=function(e){return(e=e||window.event)&&e["log-clicks"]},OK.eventTarget=function(e){var t;return 3===(t=(e=e||window.event).target?e.target:e.srcElement?e.srcElement:window.document).nodeType&&(t=t.parentNode),t},OK.submit=function(e){var t=e;if("form"!==e.tagName.toLowerCase()&&(t=e.parentNode),document.createEvent)(n=document.createEvent("Event")).initEvent("submit",!0,!0),t.dispatchEvent(n);else if(document.createEventObject){var n=document.createEventObject();t.fireEvent("onsubmit",n)}},OK.userCache={_users:[],getFromUserCache:function(e){return this._users[e]},updateUserCache:function(e){for(var t in e)this._users[t]=e[t]},getLinkOnUserAvatar:function(e){return""}},OK.showTopicInLayerOnClick=function(e,t,n,r,o,i,a,c){if(e)for(var l=OK.eventTarget(t);l&&l!=e;l=l.parentNode)if("A"==l.tagName)return;if(document.getElementById("mtLayer"))return require(["OK/MediaLayer"],(function(e){e.showTopicInLayer(n,r,o,!1,"",null,null,!1,i,a,!1,c)})),OK.stop(t)},OK.historyManager=OK.historyManager||{isHistorySupported:function(){return window.history&&window.history.pushState&&window.history.replaceState},getState:function(){var e=location.pathname+location.search;return e||(e="undefined"!=typeof __gwt_currentHistoryItem&&__gwt_currentHistoryItem||"/"),e},replaceState:function(e){__gwt_currentHistoryItem=e,window.history.replaceState(e,document.title,e)},pushState:function(e){__gwt_currentHistoryItem=e,window.history.pushState(e,document.title,e)},_cache:{},putItemToCache:function(e,t){OK.historyManager._cache[e]=t},back:function(){return window.history.back()}},OK.ntf={close:OK.fn.empty,lock:OK.fn.empty},OK.configurations=function(){var e={};return{get:function(t){return new Promise((function(n){var r=e[t];r?n(r):require(["OK/utils/vanilla"],(function(o){o.ajax({type:"GET",url:"/web-api/pms?name="+encodeURIComponent(t),headers:{"Content-Type":"application/json"},dataType:"json"}).then((function(o){r=JSON.parse(o.response.data),e[t]=r,n(r)}),(function(){require(["OK/logger"],(function(e){e.error("configurations.loading.error",t)}))}))}))}))}}}(),OK.afterWindowOnloadAttach=function(e){var t=function(){performance.timing.loadEventEnd>0?e.call():setTimeout(t,100)};performance.timing.loadEventStart>0?setTimeout(t,10):window.addEventListener("load",(function(){setTimeout(t)}))},OK.sendBeacon=function(e,t){var n=!0;if(navigator.sendBeacon){var r=new Blob([t],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(e,r)&&(n=!1)}if(n){r=new Blob([t]);var o=new XMLHttpRequest;o.open("POST",e,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(r)}},OK.isStateRedesign=OK.isStateRedesign||function(){return!1},OK.getRedesignVersion=OK.getRedesignVersion||function(){return null},OK.getMSVersion=OK.getMSVersion||function(){var e=document.documentElement.getAttribute("data-ms-version");return e||"V1"},OK.topPanelHeight=function(){var e=document.documentElement.classList;return e.contains("small-toolbar")||e.contains("smooth-hiding")?48:e.contains("new-external-mrg-toolbar")?85:76},OK.VideoPlayer=OK.VideoPlayer||{},OK.VideoPlayer.likeVideoFromFlash=function(e){window.navigateOnUrlFromJS?require(["jquery"],(function(t){var n=t(".controls-list .controls-list_lk[data-l-id="+e+"]:first"),r=t(".widget-list .controls-list_lk[data-id1="+e+"]:first");r.length||(r=t(".widget .controls-list_lk[data-id1="+e+"]:first")),r.length&&r.data("clickFromVideo",!0),n.length&&n.click(),r.length&&r.click()})):document.location.href="/"},OK.VideoPlayer.toggleSubscriptionFromFlash=function(e,t,n,r,o,i){require(["OK/utils/utils"],(function(a){var c={cmd:"VideoSubscriptionBlock","st.vvs.action":r,"st._aid":i};e.notifyMovieSubscription?c["st.vvs.vid"]=n:c["st.vvs.aid"]=t,a.ajax({url:"/dk",data:c}).done(a.updateBlockModelCallback).done(o)}))},OK.VideoPlayer.answerOnPoll=function(e,t,n,r){require(["OK/utils/utils"],(function(o){o.ajax({type:"POST",url:"/web-api/annotations/poll/answer",data:{movieId:e,questionId:t,answerId:n}}).done(r)}))},OK.VideoPlayer.reshare=function(e,t){require(["OK/utils/utils"],(function(n){n.ajax({type:"GET",url:"/web-api/video/reshare/"+e}).done(t)}))},OK.VideoPlayer.joinGroup=function(e,t){require(["OK/utils/utils"],(function(n){n.ajax({url:"/dk",data:{cmd:"videoCommand",a:"joinGroup",gid:e}}).done(t).fail(t)}))},OK.VideoPlayer.subscribeProfile=function(e,t){require(["OK/utils/utils"],(function(n){n.ajax({url:"/dk",data:{cmd:"videoCommand",a:"subscribeProfile",pid:e}}).done(t).fail(t)}))},OK.VideoPlayer.OKVideoOpenUserUpload=function(){window.navigateOnUrlFromJS?window.navigateOnUrlFromJS("/video/myVideo"):document.location.href="/video/myVideo"},OK.VideoPlayer.addWatched=function(e){e=parseInt(e,10),OK.VideoPlayer.storage.addWatched(e)},OK.VideoPlayer.openProduct=function(e,t){require(["OK/utils/vanilla"],(function(e){var n;n=null!=t.groupId?{cmd:"PopLayerMediaTopicOpen","st.mt.id":t.id,"st.mt.ot":"GROUP_ADVERT","st.cmd":"altGroupAdvertsPage","st.groupId":t.groupId}:{cmd:"PopLayer","st.cmd":"mall","st.layer.cmd":"PopLayerMallProduct","st.layer.productId":t.id,"st.layer.section":t.section,"st.layer.ePT":t.campaignId||"cn:shoppingtv"},e.ajax({url:"/dk",data:n}).then((function(t){e.updateBlockModelCallback(t)}))}))},OK.VideoPlayer.openLogin=function(){require(["OK/AuthLoginPopup"],(function(e){e.open({href:decodeURIComponent(OK.historyManager.getState())})}))},OK.VideoPlayer.storage=function(){var e="_vp_",t=function(){var e,t,n=new Date;try{return(e=window.localStorage).setItem(n,n),t=e.getItem(n)==n,e.removeItem(n),t&&e}catch(e){}}();function n(n){try{return t&&JSON.parse(t.getItem(e+n))}catch(e){return null}}function r(n,r){try{t&&t.setItem(e+n,JSON.stringify(r))}catch(e){}}function o(e,t,n){for(e.push(n);e.length>t;)e.shift();return e}var i=n("volume"),a=n("lastVideoQualityName"),c=n("cid"),l=n("lastSpeed"),u=n("lastVideoShowTime"),s=n("lastDayVideoShown"),d=n("lastDayAdvShown"),f=n("movielastPlayingTime")||[],p=n("watchedMoviesCache")||[],h=n("autoplayEnabled"),y=n("cinemaModeEnabled"),v=n("miniPlayerWidth"),m=n("miniPlayerTop"),g=n("miniPlayerLeft");return{getVolume:function(){return i},setVolume:function(e){r("volume",i=e)},getLastVideoQualityName:function(){return a},setLastVideoQualityName:function(e){r("lastVideoQualityName",a=e)},getCid:function(){return c},setCid:function(e){r("cid",c=e)},getLastSpeed:function(){return l},setLastSpeed:function(e){r("lastSpeed",l=e)},getLastVideoShowTime:function(){return u},setLastVideoShowTime:function(e){r("lastVideoShowTime",u=e)},getLastDayVideoShown:function(){return s},setLastDayVideoShown:function(e){r("lastDayVideoShown",s=e)},getLastDayAdvShown:function(){return d},setLastDayAdvShown:function(e){r("lastDayAdvShown",d=e)},getMovieLastPlayingTime:function(e){f=Array.isArray(f)?f:[],e=parseInt(e,10);for(var t=0,n=f.length;t