@vkontakte/videoplayer-tv 1.0.4-dev.ffe03d52.0 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs +35 -35
- package/es2015.esm.js +35 -35
- package/es2018.cjs +34 -34
- package/es2018.esm.js +34 -34
- package/es2024.cjs +35 -35
- package/es2024.esm.js +35 -35
- package/esnext.cjs +35 -35
- package/esnext.esm.js +35 -35
- package/evergreen.esm.js +35 -35
- package/package.json +4 -4
- package/types/AndroidTvPlayer.d.ts +43 -0
- package/types/components/Ads/admanWrapper.d.ts +1 -1
- package/types/components/Controls/CircleButton/types.d.ts +13 -0
- package/types/components/Controls/ProgressBar/types.d.ts +7 -0
- package/types/components/Icons/constants.d.ts +5 -5
- package/types/components/Icons/utils.d.ts +1 -1
- package/types/components/List/types.d.ts +8 -0
- package/types/components/Root/types.d.ts +2 -29
- package/types/components/Time/constants.d.ts +4 -0
- package/types/consts.d.ts +1 -0
- package/types/index.d.ts +2 -3
- package/types/services/BackButton.d.ts +8 -0
- package/types/services/DeviceCapabilities.d.ts +5 -0
- package/types/services/FocusManager.d.ts +13 -0
- package/types/store/index.d.ts +2 -217
- package/types/store/types.d.ts +434 -0
- package/types/store/ui.d.ts +2 -0
- package/types/store/utils.d.ts +3 -2
- package/types/types/index.d.ts +247 -4
- package/types/utils/formatTime.d.ts +1 -0
- package/types/utils/userSettings.d.ts +1 -1
- package/types/utils/volumeChange.d.ts +1 -1
- package/types/VKVideoPlayerTv/HTMLElement.d.ts +0 -2
- package/types/VKVideoPlayerTv/index.svelte.d.ts +0 -96
package/es2015.cjs
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-tv v1.0.
|
|
3
|
-
*
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-
|
|
2
|
+
* @vkontakte/videoplayer-tv v1.0.5
|
|
3
|
+
* Wed, 11 Mar 2026 06:08:55 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-5/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var ku=Object.create;var Dn=Object.defineProperty,Cu=Object.defineProperties,$u=Object.getOwnPropertyDescriptor,Ou=Object.getOwnPropertyDescriptors,Ru=Object.getOwnPropertyNames,cs=Object.getOwnPropertySymbols,Pu=Object.getPrototypeOf,ps=Object.prototype.hasOwnProperty,Vu=Object.prototype.propertyIsEnumerable;var fs=t=>{throw TypeError(t)};var mr=(t,e,i)=>e in t?Dn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,We=(t,e)=>{for(var i in e||(e={}))ps.call(e,i)&&mr(t,i,e[i]);if(cs)for(var i of cs(e))Vu.call(e,i)&&mr(t,i,e[i]);return t},ct=(t,e)=>Cu(t,Ou(e));var ju=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Uu=(t,e)=>{for(var i in e)Dn(t,i,{get:e[i],enumerable:!0})},ms=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ru(e))!ps.call(t,o)&&o!==i&&Dn(t,o,{get:()=>e[o],enumerable:!(n=$u(e,o))||n.enumerable});return t};var zu=(t,e,i)=>(i=t!=null?ku(Pu(t)):{},ms(e||!t||!t.__esModule?Dn(i,"default",{value:t,enumerable:!0}):i,t)),Fu=t=>ms(Dn({},"__esModule",{value:!0}),t);var Jt=(t,e,i)=>mr(t,typeof e!="symbol"?e+"":e,i),hs=(t,e,i)=>e.has(t)||fs("Cannot "+i);var Lt=(t,e,i)=>(hs(t,e,"read from private field"),i?i.call(t):e.get(t)),uo=(t,e,i)=>e.has(t)?fs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),co=(t,e,i,n)=>(hs(t,e,"write to private field"),n?n.call(t,i):e.set(t,i),i);var Ft=(t,e,i)=>new Promise((n,o)=>{var a=u=>{try{r(i.next(u))}catch(h){o(h)}},d=u=>{try{r(i.throw(u))}catch(h){o(h)}},r=u=>u.done?n(u.value):Promise.resolve(u.value).then(a,d);r((i=i.apply(t,e)).next())});var md=ju(()=>{"use strict";AdmanHTML=function(){"use strict";function t(_){_&&typeof _=="string"&&new AdmanHTML.OpenLinkPopupRender(O).open(_)}function e(_){Me.initMode(_.slot?"slot":"json",{slot:_.slot,version:O.version}),O.slotId=_.slot,O.playerEl=_.playerEl,O.wrapper=_.wrapper,O.videoEl=_.videoEl,O.audioEl=_.audioEl,O.clickEl=_.clickEl,O.quality=parseInt(_.videoQuality||_.params&&_.params.videoQuality||360,10),O.browser=_.browser||{},O.config=_.config||{},O.pauseOnHide=_.pauseOnHide||!1,O.viewabilityValue=_.viewabilityValue||.5,O.viewabilityEl=_.viewabilityEl||O.videoEl,O.disclaimer=_.disclaimer!==!1,O.callToActionButton=_.callToActionButton!==!1,O.forcePreloadAdditionalData=!!_.forcePreloadAdditionalData,O.ctaStyles=_.ctaStyles,O.pause=f,O.resume=l,O.openPopup=t;var Q=AdmanHTML.Utils.getPageLocation(),ie=AdmanHTML.Utils.getHostname(Q||""),Re=AdmanHTML.Utils.isMobile(navigator.userAgent||navigator.vendor||window.opera);AdmanHTML.Utils.isElement(O.videoEl)&&Re&&O.videoEl.setAttribute("playsinline",""),O.location={top:Q,topEncoded:encodeURIComponent(Q||""),hostname:ie,hostnameEncoded:encodeURIComponent(ie||"")},Me.rb(Me.code.ADMAN_SUCCESSFULLY_INITIALIZED),O.stats.metrics("initing"),T=_.midrollPointsP||null,Ue=!T&&_.midrollPoints?_.midrollPoints:null,O.config.vpaidJsInterface||(O.config.vpaidJsInterface=le),O.config.vpaidHtmlInterface||(O.config.vpaidHtmlInterface=me);var Le="https://ad.mail.ru/vp/"+O.slotId+"?app_name=admanhtml&version="+this.getVersion();if(_.params&&_.params.constructor&&_.params.constructor===Object){var nt=[];"flash"in _.params||(_.params.flash=AdmanHTML.Utils.checkFlash()?1:0);for(var Ze in _.params)_.params.hasOwnProperty(Ze)&&nt.push(Ze+"="+_.params[Ze]);var lt=AdmanHTML.Utils.getUserIdQuery();lt&&nt.push(lt),nt.length&&(Le+="&"+nt.join("&"))}if((O.slotId||_.json||_.adUrl)&&!O.browser.adBlock){var tt={},mi=this;O.slotId?tt.url=Le:_.adUrl?(_.adUrl.indexOf("ad.mail.ru/")!==-1&&(_.adUrl+=_.adUrl.indexOf("?")===-1?"?":"&",_.adUrl+="version="+this.getVersion()),tt.url=_.adUrl):tt.data=_.json,de=new AdmanHTML.AdSlot(O,tt,function(){var hi=de.getRootSettings()||{},Ai=hi.requestHostname;if(Ai&&!AdmanHTML.Utils.matchHostname(O.location.hostname,Ai,z))return O.stats.logError("HOSTNAME_MISMATCH:"+Ai+":"+O.location.topEncoded,{impressionID:hi.impressionID,padID:hi.padID,bannerIDs:hi.bannerIDs}),void(O.callbacks.onError&&O.callbacks.onError());O.location.hostname||O.stats.logError("HOSTNAME_EMPTY:"+Ai+":"+O.location.topEncoded),O.cb("onReady",[{settings:de.settings}]);var Ui=1e6,Ci=[],Qe=[],ze=_.params&&_.params.duration?parseInt(_.params.duration,10):Ui;ze===0&&(ze=Ui),Ue&&Ue.sort(AdmanHTML.Utils.numSorter),T&&T.sort(AdmanHTML.Utils.numSorter);var ot=de.getSection("midroll")||[],nr=de.getServices("midroll",function(Tt){return!Tt.started()&&Tt.isAfter()})||[];ot=ot.concat(nr),ot.forEach(function(Tt){var et=Tt.getAd();et.point||et.pointP||(et.pointP=50)}),ot.sort(function(Tt,et){var tn=Tt.getAd(),nn=et.getAd();return tn.pointP&&nn.pointP?tn.pointP-nn.pointP:(tn.point||tn.pointP/100*ze)-(nn.point||nn.pointP/100*ze)}).forEach(function(Tt){if(!Tt.isEmpty||!Tt.isEmpty()){var et=Tt.getAd();Ue&&Ue.length?(et.point=Ue.shift(),et.pointP=null,Qe.push(et.point),Tt.addImmutableProperty("point",et.point)):T&&T.length?(et.pointP=T.shift(),et.point=null,Ci.push(et.pointP),Tt.addImmutableProperty("pointP",et.pointP)):Ue||T||(et.point?(Tt.addImmutableProperty("point",et.point),Qe.push(et.point)):et.pointP&&(Tt.addImmutableProperty("pointP",et.pointP),Ci.push(et.pointP)))}}),L=Ci.sort(AdmanHTML.Utils.numSorter),S=Qe.sort(AdmanHTML.Utils.numSorter);var en=de.getSection("research");en&&en.length>0&&(De=en[0]),O.pauseOnHide&&Ee(mi)})}else{Me.logError("Adman init failed");var Zt=O.callbacks.onError;Zt&&Zt(),B=_e=Y=null}}function i(_,Q){Q=Q||!1;var ie;if(B&&(B.log("sectionShown"),B.disposed||(B.dispose(),B.disposed=!0,N(B,Y)),_&&B.log("closedByUser")),Y&&!fe[Y]&&(fe[Y]=Y!=="midroll",ie=_?O.callbacks.onClosed:O.callbacks.onCompleted),$e[Y]&&_e&&($e[Y]=$e[Y].concat(_e.splice(0,_e.length))),B=_e=Y=null,d(),typeof Q=="object"&&Q.force===!0)return void((ie=O.callbacks.onError)&&ie(Q.message));ie&&ie()}function n(_){var Q=de.getSettings(Y).maxBannersShow||0,ie=Ie[Y]||0,Re=!Q||ie<Q;if(B&&!B.disposed&&(B.complete&&B.log("playbackCompleted"),B.dispose(),B.disposed=!0,N(B,Y)),_e&&_e.length&&Re)B=_e.shift(),Ie[Y]=ie+(B.isEmpty()?0:1),B.reset(),B.started=!0,B.start();else{var Le=de.getNextAfterService(Y);Y!=="midroll"&&Le&&Re?Le.start(function(){_e=de.getSection(Y),n()}):de.getSettings(Y).loop&&$e[Y]&&$e[Y].length?(_e=$e[Y],$e[Y]=[],n()):i(!1,_)}}function o(_){_e||(Y=_||"preroll",de.resetServices(Y),fe[Y]=!1,_e=de.getSection(Y),_==="midroll"&&(_e=u(_e)),n(),Y&&($e[Y]=$e[Y]||[]),B&&(B.log("sectionStarted"),O.debugMode&&console.log(Y,B.getAd(),B.getSettings(),_e)),a(Y),O.stats.metrics("started"))}function a(_){(je=de.getDebug(_))&&je.start()}function d(){je&&je.dispose(),je=null}function r(_,Q){function ie(Qe,ze){for(var ot=0;ot<Qe.length&&!(Math.abs(Qe[ot])>ze);ot++);return ot>0?[Qe[ot-1]]:[]}function Re(Qe){var ze=Qe.getAd();return!(ze.point&&S.indexOf(ze.point)===-1||ze.pointP&&L.indexOf(ze.pointP)===-1)&&(ze.point&&ze.point<=hi||ze.pointP&&ze.pointP<=Ai)}function Le(){R=L.reduce(function(Qe,ze){var ot=Math.ceil(Q*ze/100);Qe.indexOf(ot)===-1&&Qe.push(ot)},S).sort(AdmanHTML.Utils.numSorter)}function nt(Qe){return R.reduce(function(ze,ot){return ze===0&&ot>0&&ot-Qe>=0?ot-Qe:ze},0)}if(!isNaN(_)&&!isNaN(Q)){var Ze=parseInt(_),lt=Math.floor(100*_/Q);ue=Q,te=L&&isFinite(lt)?ie(L,lt):[],se=S?ie(S,Ze):[],te[0]&&se[0]&&(Math.abs(te[0]*ue/100)>Math.abs(se[0])?se=[]:te=[]);var tt=typeof de=="object"&&typeof de.getSettings=="function"?de.getSettings("midroll").midpointAllowableDelta:void 0;E=tt!=null?tt:E;var mi=100*E/Q,Zt=E!==0&&E<5?E:5,hi=Ze+Zt,Ai=lt+Zt/Q*100;if(de.getServices("midroll",function(Qe){return!(!Qe.isAfter()||Qe.started()||!Re(Qe))}).forEach(function(Qe){var ze=Ze-Qe.getAd().point,ot=lt-Qe.getAd().pointP;ze<E||ot<mi||E===0?Qe.start():O.debugMode&&console.log("skip midroll fetch")}),te.length&&te[0]>0||se.length&&se[0]>0){var Ui=!1,Ci=de.getSection("midroll");Ci&&Ci.forEach(function(Qe){var ze=Qe.getAd();(ze.pointP&&~te.indexOf(ze.pointP)||ze.point&&~se.indexOf(ze.point))&&(Ui=!0)}),Ui&&O.cb("adMidrollPoint",[_])}return O.forcePreloadAdditionalData?(Le(),nt(_)):void 0}}function u(_){function Q(Re,Le){var nt=Re.getAd(),Ze=Le.getAd();return(nt.point||nt.pointP*ue/100)-(Ze.point||Ze.pointP*ue/100)}var ie=[];return _&&_.forEach(function(Re){var Le=Re.getAd();(Le.pointP&&~te.indexOf(Le.pointP)||Le.point&&~se.indexOf(Le.point))&&ie.push(Re)}),S.forEach(function(Re,Le){~se.indexOf(Re)&&(S[Le]=-S[Le])}),L.forEach(function(Re,Le){~te.indexOf(Re)&&(L[Le]=-L[Le])}),ie.sort(Q),ie}function h(){O.cb("onSkipped"),B&&(B.log("closedByUser"),B.skip(n))}function f(){B&&(B.log("playbackPaused"),B.pause())}function l(_){B&&(_||B.log("playbackResumed"),B.resume())}function c(_){_=_<0?0:_>1?1:_,B&&B.setVolume(_)}function v(){B&&B.log("fullscreenOn")}function b(){B&&B.log("fullscreenOff")}function y(){i()}function g(_,Q){O.callbacks[_]=Q}function C(_){var Q=[],ie=de.getSection(_||"preroll");return ie&&ie.forEach(function(Re){Re.isEmpty()||Q.push(Re.getExtendedAdForApp())}),Q}function D(_){return de.getAfterServices(_||"preroll")}function N(_,Q){_.isEmpty()||_.isStat()||$e[Q]&&$e[Q].push(_)}function w(_){return(_.right-_.left)*(_.bottom-_.top)}function A(_,Q){return{left:_.left+Q.left,right:_.right+Q.left,top:_.top+Q.top,bottom:_.bottom+Q.top}}function M(_){return _&&!isNaN(_)?_:null}function I(_,Q){var ie=_.document,Re=Q==="width"?"clientWidth":"clientHeight",Le=Q==="width"?"innerWidth":"innerHeight",nt=_[Le],Ze=ie.body[Re],lt=ie.documentElement[Re],tt=1/0;return tt=M(Ze)||tt,tt=M(lt)||tt,nt&&!isNaN(nt)&&(tt=Math.min(tt,nt)),tt}function m(_){return{width:I(_,"width"),height:I(_,"height")}}function U(_,Q){var ie=m(Q);return{left:Math.max(0,_.left),right:Math.min(ie.width,_.right),top:Math.max(0,_.top),bottom:Math.min(ie.height,_.bottom)}}function x(_,Q){try{for(var ie=_.getBoundingClientRect(),Re=w(ie),Le=Q,nt=Le.parent;Le!==nt;){var Ze=Le.frameElement.getBoundingClientRect();ie=A(ie,Ze);var lt=Math.max(Ze.left,ie.left),tt=Math.min(Ze.right,ie.right),mi=Math.max(Ze.top,ie.top),Zt=Math.min(Ze.bottom,ie.bottom);ie.left=lt,ie.right=tt<lt?lt:tt,ie.top=mi,ie.bottom=Zt<mi?mi:Zt,Le=Le.parent}ie=U(ie,nt);var hi=w(ie);return{left:ie.left,right:ie.right,top:ie.top,bottom:ie.bottom,percent:hi/Re*100}}catch(Ai){return{left:0,right:0,top:0,bottom:0,percent:0}}}function P(){return window.hasOwnProperty("IntersectionObserver")}function k(_){try{if(_===_.top)return"ON_PAGE";for(var Q=_;Q!==Q.parent;){if(Q.document.domain!==Q.parent.document.domain)return"XD_FRAME";Q=Q.parent}return"S_FRAME"}catch(ie){}return"XD_FRAME"}function Z(_){return!P(_)&&k(_)!=="XD_FRAME"}function ae(_,Q,ie){J(ie,x(_,window).percent>=100*Q)}function V(_){return _.mozVisibilityState?"mozvisibilitychange":_.webkitVisibilityState?"webkitvisibilitychange":_.visibilityState?"visibilitychange":""}function G(_){J(_,!0)}function F(_){J(_,!1)}function J(_,Q){var ie=_.getPlayStatus();_.prevVisibility!==Q&&(_.prevVisibility=Q,ie.curStatus!==void 0&&ie.curStatus!==ie.prevStatus&&(Q?_.resume():_.pause()))}function Ee(_){var Q=_,ie=O.viewabilityValue,Re=O.viewabilityEl;if(Re){if(P()){var Le=new IntersectionObserver(function(lt){lt.forEach(function(tt){J(Q,tt.intersectionRatio>=ie)})},{threshold:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});Le.observe(Re)}else if(Z){var nt=function(){ae(Re,ie,Q)};window.addEventListener("resize",nt,!1),window.addEventListener("scroll",nt,!1)}}var Ze=(V(document),X.hasFocus());setInterval(function(){var lt=X.hasFocus();Ze!==lt&&(Ze=lt,Ze?G(Q):F(Q))},500)}function ee(){return O.playStatus===void 0?{prevStatus:void 0,curStatus:void 0}:O.playStatus}var de,Y,_e,B,je,De,ue,O={version:"2.2.57",debugMode:!0,callbacks:{},cb:function(_,Q){switch(_){case"onCompleted":B&&(B.complete=!0),n();break;case"onError":B&&(B.error=!0),n(Q);break;case"onClosed":i(!0);break;default:var ie=O.callbacks[_];ie&&ie.apply(this,Q)}}},pe=window.location.protocol==="http:"?"http:":"https:",le=pe+"//ad.mail.ru/static/admanhtml/vpaid-js-interface.swf",me=pe+"//ad.mail.ru/static/rbadman-vpaid.html",Me=new AdmanHTML.Stats(O),Se=new AdmanHTML.Viewability,Ue=[],T=[],S=[],L=[],R=[],te=[],se=[],Ie={},$e={},E=3,z=function(){for(var _=window,Q=frameElement;Q;){try{Q=_.parent.frameElement}catch(ie){break}_=_.parent}return _}(),X=z.document;O.stats=Me,O.viewability=Se,O.protocol=pe,O.stats.metrics();var fe={};return{init:e,start:o,stop:y,pause:f,resume:l,setVolume:c,fullscreenOn:v,fullscreenOff:b,setFullscreen:function(_){_?v():b()},skip:h,destroy:y,getPlayStatus:ee,getSlot:function(){return O.slotId},setSlot:function(_){O.slotId=_},getVersion:function(){return O.version},getBannersForSection:C,getServicesForSection:D,hasSection:function(_){return _=_||"preroll",!(!C(_).length&&!D(_).length)},setDebug:function(_){O.debugMode=_},setPosition:r,getUserIdQuery:AdmanHTML.Utils.getUserIdQuery,onReady:g.bind(this,"onReady"),onError:g.bind(this,"onError"),onStarted:g.bind(this,"onStarted"),onPaused:g.bind(this,"onPaused"),onPlayed:g.bind(this,"onPlayed"),onCompleted:g.bind(this,"onCompleted"),onClosed:g.bind(this,"onClosed"),onSkipped:g.bind(this,"onSkipped"),onClicked:g.bind(this,"onClicked"),onTimeRemained:g.bind(this,"onTimeRemained"),onDurationChanged:g.bind(this,"onDurationChanged"),adMidrollPoint:g.bind(this,"adMidrollPoint"),_onVPAIDStarted:g.bind(this,"onVPAIDStarted"),research:{pause:function(){De&&De.pause()},resume:function(){De&&De.resume()},complete:function(){De&&De.setComplete()},setVolume:function(_){De&&De.setVolume(_)},setFullscreen:function(_){De&&De.setFullscreen(_)},setPosition:function(_,Q){De&&De.setPosition(_,Q)}}}},AdmanHTML.Ad=function(t,e){"use strict";function i(w){w&&w.forEach(function(A){n(A.url,A.type,A)})}function n(w,A,M){var I,m,U,x;if(w){try{w=decodeURIComponent(w)}catch(G){}if(A==="playheadReachedValue")M.thresholdValue!==void 0||M.value!==void 0?(I=parseInt(M.thresholdValue||M.value,10),e.stats.push({name:"thresholdValue",value:I,type:"thresholdValue."+I,url:w})):M.thresholdPValue===void 0&&M.pvalue===void 0||(I=parseInt(M.thresholdPValue||M.pvalue,10),e.stats.push({name:"thresholdPValue",value:I,type:"thresholdPValue."+I,url:w}));else if(A==="playheadViewabilityValue"){var P=parseInt(M.viewablePercent,10),k=M.ovv===void 0&&M.mrc===void 0||!!M.ovv||!!M.mrc,Z="";U=M.startTimer!==void 0?parseInt(M.startTimer,10):0,x=M.endTimer!==void 0?parseInt(M.endTimer,10):0,P=isNaN(P)?50:P,M.value!==void 0?(I=parseInt(M.value,10),m="ovvValue"):M.pvalue!==void 0?(I=parseInt(M.pvalue,10),m="ovvPValue"):M.duration!==void 0&&(I=parseInt(M.duration,10),m="mrcValue",k||(Z=M.unload?"unload":"complete"));var ae={name:m,value:I,url:w,percent:P,viewable:k,start:U,end:x,onevent:Z};"target"in M&&(ae.target=M.target),e.stats.push(ae)}else if(A==="playheadTimerValue"){U=M.startTimer!==void 0?parseInt(M.startTimer,10):0,x=M.endTimer!==void 0?parseInt(M.endTimer,10):0;var V=M.rate!==void 0?parseInt(M.rate,10):1;e.stats.push({name:"timerValue",rate:V,url:w,start:U,end:x})}else e.stats.push({name:A,type:A,url:w})}}function o(w){e.click=w,e.ad&&(e.ad.urlToNavigateOnClick=w)}function a(w,A){e.extensions[w]=A}function d(w,A,M){!M&&w in e.immutables||(e.immutables[w]=A)}function r(w){e.settings=e.settings||{},AdmanHTML.Utils.deepExtend(e.settings,w)}function u(w){function A(x){var P=x.type||"";return!(~P.indexOf("video")&&P!=="video/mp4"||~P.indexOf("audio")&&P!=="audio/mp3"&&P!=="audio/mpeg")}function M(){t.stats.rb(t.stats.code.UNKNOWN_ADV_TYPE),t.stats.logError("UNKNOWN_ADV_TYPE")}if(e.ad=w,e.click&&(e.ad.urlToNavigateOnClick=e.click),AdmanHTML.Utils.mixin(e.ad,e.extensions),AdmanHTML.Utils.mixin(e.ad,e.immutables),e.ad.mediafiles&&e.ad.mediafiles.length){var I;e.ad.mediafiles.forEach(function(x){A(x)&&(!I||Math.abs(parseInt(x.height)-t.quality)<Math.abs(parseInt(I.height)-t.quality))&&(I=x)}),I&&AdmanHTML.Utils.mixin(e.ad,I)}delete e.ad.statistics,delete e.ad.mediafiles;var m,U;switch(e.ad.type){case"swf":case"application/x-shockwave-flash":if(U=e.ad.apiFramework||e.ad.api,t.browser.mobile||U&&U!=="VPAID")return M(),!1;m=U?new AdmanHTML.VpaidSwfAdRenderer(t,this):new AdmanHTML.SwfAdRenderer(t,this);break;case"javascript":case"application/javascript":if((U=e.ad.apiFramework||e.ad.api)&&U!=="VPAID")return M(),!1;m=new AdmanHTML.VpaidJsAdRenderer(t,this);break;case"video":case"video/mp4":m=new AdmanHTML.VideoAdRenderer(t,this);break;case"audio":case"audio/mp3":case"audio/mpeg":m=new AdmanHTML.AudioAdRenderer(t,this);break;case"image":case"image/bmp":case"image/gif":case"image/jpeg":case"image/png":m=new AdmanHTML.ImgAdRenderer(t,this);break;case"text":m=new AdmanHTML.TextAdRenderer(t,this);break;case"html":m=new AdmanHTML.HtmlAdRenderer(t,this);break;case"empty":m=new AdmanHTML.EmptyAdRenderer(t,this);break;case"statistics":m=new AdmanHTML.StatisticsAdRenderer(t,this);break;case"debugData":m=new AdmanHTML.DebugAdRenderer(t,this);break;case"research":m=new AdmanHTML.ResearchAdRenderer(t,this);break;case"video/x-flv":default:return M(),!1}return e.renderer=m,!0}function h(){return new AdmanHTML.Ad(t,JSON.parse(JSON.stringify(e)))}function f(){this.started&&(e.ad&&u.call(this,e.ad),this.disposed=!1,this.completed=!1,this.error=!1,this.started=!1),e.statsBackup?e.stats=e.statsBackup.slice():e.statsBackup=e.stats.slice()}function l(w,A,M){var I=w.url;I=I.replace("{requesthostname}",t.location.hostnameEncoded||""),AdmanHTML.Utils.loadImg(I);var m=A.indexOf(w);~m&&M&&A.splice(m,1)}function c(w,A){var M=A.indexOf(w);~M&&A.splice(M,1)}function v(w,A){function M(k){k=25*Math.floor(k/25);var Z=N["thresholdPValue."+k];Z&&(x=x.concat(Z))}var I=e.stats.slice(0);if(Array.isArray(w)){var m;for(m=0;m<w.length&&!~I.findIndex(function(k){return k.name===w[m]});m++);w=w[m]||w.slice(-1)}if(!t.isPopupOpen||w!=="playbackPaused"&&w!=="playbackResumed"){var U=w+(A===void 0?"":"."+A),x=N[U]?N[U].slice(0):[];x.push(U),w==="thresholdPValue"&&M(A);var P=w==="thresholdPValue"||w==="thresholdValue"||w==="closedByUser";e.stats.forEach(function(k){(w==="thresholdPValue"&&k.name==="thresholdPValue"&&k.value<A||w==="thresholdValue"&&k.name==="thresholdValue"&&k.value<A)&&l(k,I,P),~x.indexOf(k.type)&&l(k,I,P)}),e.stats=I}}function b(w,A){function M(P,k){k[Math.ceil(P.percent/10)].duration>=1e3*P.value?P.viewable?l(P,m,!0):c(P,m):U++}function I(P){P.viewable||P.onevent===A&&l(P,m,!0)}var m=e.stats.slice(0),U=0,x=w&&w.length?M:I;return e.stats.forEach(function(P){P.name==="mrcValue"&&x(P,w)}),e.stats=m,U}function y(w,A){var M,I,m=e.stats.slice(0);e.stats.forEach(function(U){(U.name==="ovvValue"&&U.value<=w||U.name==="ovvPValue"&&U.value<=A)&&(M=M||t.viewability.getViewabilityState(),I=M.percent>U.percent&&M.focus,M.state!=="UNDETERMINED"&&(I&&U.viewable||!I&&!U.viewable)&&AdmanHTML.Utils.loadImg(U.url),c(U,m))}),e.stats=m}function g(w,A){e.renderer&&e.renderer[w]&&e.renderer[w](A)}function C(){var w={};return w=e.ad.type==="audio"||e.ad.type==="audio/mp3"||e.ad.type==="audio/mpeg"?{allowSeek:!1,allowSkip:!1,allowTrackChange:!1,allowVolumeChange:!1}:e.settings?{allowClose:!e.settings.hasOwnProperty("allowClose")||e.settings.allowClose,allowCloseDelay:e.settings.hasOwnProperty("allowCloseDelay")?e.settings.allowCloseDelay:0}:{allowClose:!0,allowCloseDelay:0},AdmanHTML.Utils.mixin(w,e.ad),w}function D(){var w=C();return w.statistics=e.stats.slice(0),w}e=e||{stats:[],extensions:{},immutables:{}};var N={closedByUser:["close","skipAd"],click:["addClick"],"thresholdPValue.25":["firstQuartile"],"thresholdPValue.50":["secondQuartile","midpoint"],"thresholdPValue.75":["thirdQuartile"],"thresholdPValue.100":["fourthQuartile"],playbackStarted:["start"],playbackCompleted:["complete"],volumeOff:["mute"],volumeOn:["unmute"],playbackPaused:["pause"],playbackResumed:["resume"],fullscreenOn:["fullscreen"],error:["Error"]};return{addStatCollection:i,addStat:n,addClick:o,addExtension:a,addImmutableProperty:d,addSettings:r,getSettings:function(){return e.settings},addAd:u,getAd:function(){return e.ad},getAdForApp:C,getExtendedAdForApp:D,isEmpty:function(){return e.ad.type==="empty"},isStat:function(){return e.ad.type==="statistics"},clone:h,reset:f,log:v,logMRC:b,logOVV:y,start:g.bind(this,"start"),dispose:g.bind(this,"dispose"),pause:g.bind(this,"pause"),resume:g.bind(this,"resume"),setVolume:g.bind(this,"setVolume"),setFullscreen:g.bind(this,"setFullscreen"),setComplete:g.bind(this,"setComplete"),skip:g.bind(this,"skip"),setPosition:function(w,A){e.renderer&&e.renderer.setPosition&&e.renderer.setPosition(w,A)},complete:!1,error:!1}},AdmanHTML.AdSlot=function(t,e,i){"use strict";function n(x){D||(D={});for(var P in x)x.hasOwnProperty(P)&&(D[P]=x[P])}function o(x,P,k,Z,ae,V){function G(J){t.stats.metrics("inited");var Ee={};--w,J&&(A++,J=typeof J=="string"?J.trim():J,typeof J=="object"||J.charAt(0)==="{"?(Ee=r(J,x,P,k||0,Z,ae,V),M++):J.charAt(0)==="<"?(Ee=u(J,x,P,k||0,Z,ae,V),M++):(t.stats.rb(t.stats.code.UNKNOWN_DATA_FORMAT),t.stats.logError("UNKNOWN_DATA_FORMAT"))),x.id&&(Ee.banners||Ee.services?Ee.banners&&U.markNonEmptyService(x.id):U.markEmptyService(x.id)),a(V)}if(k&&k>4)return void a(V);var F=U.getService(x.id);F&&F.log("serviceRequested"),++w,x.url?(x.url.indexOf("ad.mail.ru/")!==-1&&x.url.indexOf("version="+t.version)===-1&&(x.url+=x.url.indexOf("?")===-1?"?":"&",x.url+="version="+t.version),AdmanHTML.Utils.xhr(x.url,G)):x.data&&setTimeout(G,0,x.data)}function a(x){if(!w){if(A&&M){var P=U.getNextOnEmptyService();if(P)return void P.start(a.bind(null,x));b();var k=x||i;return k.called||(k.called=!0,k()),void(t.debugMode&&console.log(g))}d()}}function d(){var x=t.callbacks.onError;x&&x()}function r(x,P,k,Z,ae,V,G){function F(ue){return ue?ue.filter(function(O){return O.type&&(O.type==="sectionShown"||O.type==="sectionStarted"||O.type==="sectionEmpty")}):[]}function J(ue,O,pe,le){var me=k?k.clone():new AdmanHTML.Ad(t);if(me.addStatCollection(ue.statistics),me.addStatCollection(ue.serviceStatistics),ue.type==="additionalData"){var Me;ue.id=ue.id||AdmanHTML.Utils.createIntUID(),de.services++;var Se=!g[pe]||g[pe].length===0;if(O>0&&Se&&(m[pe]=!0),ue.extensions)for(var Ue in ue.extensions)ue.extensions.hasOwnProperty(Ue)&&h(me,ue.extensions[Ue],Ue);if(["point","pointP","hasVolume","hasPause","allowClose","allowCloseDelay","allowSeek","allowSkip","allowTrackChange","allowVolumeChange"].forEach(function(L){L in ue&&me.addImmutableProperty(L,ue[L])}),t.forcePreloadAdditionalData||ue.doAfter!=="true"&&ue.doAfter!==!0&&!ue.doOnEmptyResponseFromId)Me=new AdmanHTML.ServiceAd(t),l(pe,P.id,Me,ue),O===0&&Se?o(ue,me,Z+1,pe,I.PRE,G):o(ue,me,Z+1,pe,null,G);else{var T=ue.doAfter==="true"||ue.doAfter===!0?I.POST:null,S=function(L,R){o(ue,L||me,ue.allowRepeat?0:Z+1,pe,T,function(){R&&R()})};Me=new AdmanHTML.ServiceAd(t,null,S),l(pe,P.id,Me,ue,me)}}else f(pe,le,me,ue),de.banners++;return me}var Ee,ee=x,de={banners:0,services:0};if(typeof x=="string")try{ee=JSON.parse(x)}catch(ue){return t.stats.rb(t.stats.code.ERROR_CONVERTING_STRING_TO_JSON),void t.stats.logError("ERROR_CONVERTING_STRING_TO_JSON")}if(ee.settings&&ee.settings.requestHostname&&!D.requestHostname&&(D.requestHostname=ee.settings.requestHostname),ee&&ee.settings&&(D=t.slot&&t.slot.getRootSettings()||D||{},n&&typeof n=="function")){var Y=ee.sections&&ee.sections.preroll&&ee.sections.preroll.length&&ee.sections.preroll[0]||null;n({impressionID:ee.settings.impressionID||"",padID:ee.settings.padID||"",bannerIDs:Y&&Y.bannerID||""})}for(var _e in ee.sections)if(ee.sections.hasOwnProperty(_e)){var B=ee.sections[_e],je=0;if(ee.settings&&(Ee=ee.settings[_e])&&(Ee.controlsStyle=ee.settings.controlsStyle||0,v(_e,Ee)),B.forEach(function(ue){if(ue.type==="debugData"){var O=new AdmanHTML.Ad(t);return O.addClick(ue.url),void c(_e,O,ue)}var pe=ae===_e?V:"",le=J(ue,je,_e,pe);Ee&&(le.addStatCollection(F(Ee.statistics)),le.addSettings(Ee)),je++}),B.length===0){var De=new AdmanHTML.Ad(t);Ee&&De.addStatCollection(F(Ee.statistics)),f(_e,"",De,{type:"empty"})}}return ee.type&&J(ee,0,ae,V),de}function u(x,P,k,Z,ae,V,G){function F(B,je,De){Ee(B.getElementsByTagName(je),De)}function J(B,je,De,ue){F(B,je,function(O){ue(de(O),De?ee(O,De):null,O)})}function Ee(B,je){Array.prototype.forEach.call(B,je.bind(this))}function ee(B,je){var De=B.attributes.getNamedItem(je);return De?De.value:null}function de(B){return B&&B.childNodes&&B.childNodes[0]&&B.childNodes[0].wholeText?B.childNodes[0].wholeText.trim():null}var Y,_e={banners:0,services:0};try{Y=AdmanHTML.Utils.parseXml(x)}catch(B){return t.stats.rb(t.stats.code.ERROR_CONVERTING_STRING_TO_XML),void t.stats.logError("ERROR_CONVERTING_STRING_TO_XML")}return F(Y,"Ad",function(B){function je(O){var pe=k?k.clone():new AdmanHTML.Ad(t);J(B,"Impression","id",function(me){try{pe.addStat(me,"playbackStarted")}catch(Me){}}),J(B,"Extension","type",function(me,Me){h(pe,me,Me)}),J(B,"Error",null,function(me){pe.addStat(me,"error")}),J(O,"Tracking","event",pe.addStat);var le=O.getElementsByTagName("VideoClicks")[0];return le&&Ee(le.childNodes,function(me){me.tagName==="ClickThrough"?pe.addClick(de(me)):me.tagName==="ClickTracking"&&pe.addStat(de(me),"click")}),pe}function De(O){var pe={width:ee(O,"width"),height:ee(O,"height"),id:ee(O,"id"),assetWidth:ee(O,"assetWidth"),assetHeight:ee(O,"assetHeight"),expandedWidth:ee(O,"expandedWidth"),expandedHeight:ee(O,"expandedHeight"),apiFramework:ee(O,"apiFramework"),adSlotID:ee(O,"adSlotID"),statistics:[]};return J(O,"StaticResource",null,function(le){pe.staticResource=le}),J(O,"HTMLResource",null,function(le){pe.htmlResource=le}),J(O,"IFrameResource",null,function(le){pe.iframeResource=le}),J(O,"CompanionClickTracking",null,function(le){pe.statistics.push({type:"click",url:le})}),J(O,"Tracking","event",function(le,me){pe.statistics.push({type:me,url:le})}),J(O,"CompanionClickThrough",null,function(le){pe.urlToNavigateOnClick=le}),pe}var ue=ee(B,"id");F(B,"InLine",function(O){var pe=[];F(O,"CompanionAds",function(le){var me=ee(le,"required")||"none";F(O,"Companion",function(Me){var Se=De(Me);Se.required=me,pe.push(Se)})}),F(O,"Linear",function(le){var me,Me=je(le),Se=le.parentNode;Se&&(me=ee(Se,"adId")||ee(Se,"adID")||ee(Se,"AdId")||ee(Se,"AdID")||ee(Se,"id")),me=me||ue;var Ue={bannerID:me,mediafiles:[],duration:AdmanHTML.Utils.convertDuration(de(le.getElementsByTagName("Duration")[0]))};P.urlToNavigateOnClick&&(Ue.urlToNavigateOnClick=P.urlToNavigateOnClick),F(le,"MediaFile",function(T){Ue.mediafiles.push({apiFramework:ee(T,"apiFramework"),type:ee(T,"type"),width:ee(T,"width"),height:ee(T,"height"),src:de(T)})}),F(le,"AdParameters",function(T){Ue.params=de(T);try{var S=JSON.parse(Ue.params);if(S&&S.settings&&(D=t.slot&&t.slot.getRootSettings()||D||{},n&&typeof n=="function")){var L=S.sections&&S.sections.preroll&&S.sections.preroll.length&&S.sections.preroll[0]||null;S.settings&&S.settings.preroll,n({impressionID:S.settings.impressionID||"",padID:S.settings.padID||"",bannerIDs:L&&L.bannerID||""})}}catch(R){console.log(R)}}),pe.length&&(Ue.companionAds=pe),f(ae||"preroll",V,Me,Ue),_e.banners++}),F(O,"NonLinear",function(le){var me=je(le),Me={width:ee(le,"width"),height:ee(le,"height"),duration:AdmanHTML.Utils.convertDuration(ee(le,"minSuggestedDuration")),mediafiles:[]};J(le,"NonLinearClickThrough",null,function(Se){me.addStat(Se,"click")}),J(le,"StaticResource","creativeType",function(Se,Ue){Me.mediafiles.push({type:Ue,src:Se})}),f(ae||"overlay",V,me,Me),_e.banners++})}),F(B,"VASTAdTagURI",function(O){_e.services++,o({url:de(O),id:P.id},je(B),Z+1,ae,V,G)})}),_e}function h(x,P,k){k==="controls"?x.addExtension("showControls",!!parseInt(P,10)):k==="skipTime2"?(P=isNaN(P)?AdmanHTML.Utils.convertDuration("00:"+P):parseInt(P,10),x.addExtension("allowCloseDelay",P)):k==="linkTxt"&&(x.addExtension("linkText",P),x.addExtension("adText",P))}function f(x,P,k,Z){k.addAd(Z)&&(k.sectionType=x,P===I.PRE&&m[x]&&(P=""),x=(P||"")+x,g[x]=g[x]||[],g[x].push(k))}function l(x,P,k,Z,ae){k.addAd(Z),k.addInheritedAd(ae),k.addStatCollection(Z.statistics),k.addStatCollection(Z.serviceStatistics),k.sectionType=x,U.addService(k,P)}function c(x,P,k){P.addAd(k)&&(P.section=x,N[x]=P)}function v(x,P){C[x]=C[x]||{},AdmanHTML.Utils.mixin(C[x],P),delete C[x].statistics,delete C[x].view,delete C[x].advertisment}function b(){"preroll midroll pauseroll overlay postroll claimroll".split(" ").forEach(function(x){var P=m[x]?g[x]:g[I.PRE+x],k=m[x]?g[I.PRE+x]:g[x],Z=g[I.POST+x];g[x]=[].concat(P||[],k||[],Z||[]),y(I.PRE+x),y(I.POST+x)})}function y(x){g[x]=[]}var g={},C={},D={},N={},w=0,A=0,M=0,I={PRE:"pre-",POST:"post-"},m={},U=new AdmanHTML.ServiceStorage(t);return o({url:e.url,data:e.data}),{getSection:function(x){return g[x]},getAfterServices:U.getAfterServices,getNextAfterService:U.getNextAfterService,resetServices:U.resetAll,getServices:U.getServices,removeService:U.removeService,getSettings:function(x){return C[x]||{}},getRootSettings:function(){return D},getDebug:function(x){return N[x]}}},AdmanHTML.ServiceAd=function(t,e,i){"use strict";function n(v){return e.ad=v,!0}function o(v){e.inheritedAd=v}function a(v,b){e.inheritedAd.addImmutableProperty(v,b,!0)}function d(v){var b=v?v.filter(function(y){return y.type==="serviceRequested"||y.type==="serviceAnswerEmpty"}):[];b&&b.forEach(function(y){r(y.url,y.type,y)})}function r(v,b){v=decodeURIComponent(v),e.stats.push({name:b,type:b,url:v})}function u(v){c=!0,i&&i(e.inheritedAd,v)}function h(){c=!1}function f(){return!(t.forcePreloadAdditionalData||!e.ad||!e.ad.doAfter)&&(e.ad.doAfter===!0||e.ad.doAfter==="true")}function l(v){function b(g){AdmanHTML.Utils.loadImg(g.url);var C=y.indexOf(g);~C&&y.splice(C,1)}var y=e.stats.slice(0);e.stats.forEach(function(g){g.type===v&&b(g)}),e.stats=y}e=e||{stats:[]};var c=!1;return{addStatCollection:d,addStat:r,addAd:n,addInheritedAd:o,addImmutableProperty:a,getAd:function(){return e.ad},start:u,reset:h,started:function(){return c},log:l,isAfter:f}},AdmanHTML.ServiceStorage=function(t){"use strict";function e(y,g){var C=y.getAd();v.push(C.id),c[C.id]={service:y},g&&c[g]&&(c[g].children=c[g].children||[],c[g].children.push(C.id)),t.forcePreloadAdditionalData||C.doAfter!=="true"&&C.doAfter!==!0&&!C.doOnEmptyResponseFromId||l.push(y)}function i(y){return c[y]?c[y].service:null}function n(y){var g=typeof y=="string"||typeof y=="number"?y:y.getAd().id;delete c[g];var C,D;for(C=0,D=l.length;C<D;C++)if(y=l[C],y.getAd().id===g){l.splice(C,1);break}}function o(y,g){if(!y)return[];var C,D,N=[];for(C in c)c.hasOwnProperty(C)&&(D=c[C].service,D.sectionType!==y||g&&!g(D)||N.push(D));return N}function a(y){v.forEach(function(g,C){y===g?(c[g].service.log("serviceAnswerEmpty"),v.splice(C,1),b.push(y),delete c[g]):c[g].children&&c[g].children.indexOf(y)!==-1&&c[g].children.splice(c[g].children.indexOf(y),1)})}function d(y){var g=c[y];g&&(g.children=null)}function r(){var y,g,C,D;for(y=0,g=l.length;y<g;y++)if(C=l[y],(D=C.getAd().doOnEmptyResponseFromId)&&b.indexOf(D)!==-1&&!C.isAfter())return l.splice(y,1),C;return null}function u(y){if(!y)return[];var g,C,D,N=[];for(g=0,C=l.length;g<C;g++)D=l[g],D.sectionType===y&&D.isAfter()&&!D.started()&&N.push(D);return N}function h(y){if(!y)return null;var g,C,D,N;for(g=0,C=l.length;g<C;g++)if(D=l[g],D.sectionType===y&&D.isAfter()&&!D.started()){if((N=D.getAd().doOnEmptyResponseFromId)&&b.indexOf(N)===-1)continue;return D.getAd().allowRepeat||l.splice(g,1),D}return null}function f(y){var g,C,D;for(g=0,C=l.length;g<C;g++)D=l[g],y&&D.sectionType!==y||D.reset()}var l=[],c={},v=[],b=[];return{addService:e,getService:i,getServices:o,removeService:n,resetAll:f,markEmptyService:a,markNonEmptyService:d,getAfterServices:u,getNextAfterService:h,getNextOnEmptyService:r}},typeof define=="function"&&define.amd&&define(function(){"use strict";return AdmanHTML}),AdmanHTML.VpaidLoader=function(){"use strict";function t(i,n){this.id=Math.round(1e6*Math.random()),this.video=i,this.videoIsElement=AdmanHTML.Utils.isElement(this.video),this._props={},this.autoMuted=!1,this.win=n||window}var e=300;return t.prototype.load=function(i,n){var o=document.createElement("iframe");return this.adframe=o,this.src=i,o.width="100%",o.height="100%",o.scrolling="no",o.marginWidth="0",o.marginHeight="0",o.frameBorder="0",o.src=n,o.id="ad-frame-"+this.id,o.setAttribute("allow","autoplay"),o.onload=function(){this.src.indexOf("yandex.ru")!==-1&&this.send({type:"vpaid",method:"log"}),this.send({type:"vpaid",method:"load",src:this.src,urlToNavigateOnClick:this.urlToNavigateOnClick})}.bind(this),this.processMessage=this.processMessage.bind(this),this.videoEventHandler=this.videoEventHandler.bind(this),this.videoEvents=["play","pause","volumechange","timeupdate","ended"],this.video.addEventListener("play",this.videoEventHandler),this.video.addEventListener("pause",this.videoEventHandler),this.video.addEventListener("volumechange",this.videoEventHandler),this.video.addEventListener("timeupdate",this.videoEventHandler),this.video.addEventListener("ended",this.videoEventHandler),this.win.addEventListener("message",this.processMessage),o.setAttribute("style","color-scheme: light;"),o},t.prototype.processMessage=function(i){if(i.source===this.adframe.contentWindow)try{var n=JSON.parse(i.data);switch(this.urlToNavigateOnClick&&(n.urlToNavigateOnClick=this.urlToNavigateOnClick),n.type){case"video":this.videoMessageHandler(n);break;case"vpaid":this.vpaidMessageHandler(n)}}catch(o){}},t.prototype.videoMessageHandler=function(i){switch(i.src&&i.src.replace(/https?:/,"")!==this.video.src.replace(/https?:/,"")&&(this.video.src=i.src),i.method){case"load":this.video.load();break;case"play":var n=this.video.play();n.then&&n.then(function(){this.video.muted&&!this.autoMutedTS&&(this.autoMutedTS=new Date().getTime())}.bind(this),function(){this.autoMuted=!0,this.autoMutedTS=new Date().getTime(),this.video.muted=!0,this.video.volume=0,this.videoEventHandler({type:"volumechange"}),this.callSet("adVolume",0),this.video.play()}.bind(this));break;case"pause":this.video.pause();break;case"muted":if(!i.value&&this.video.muted&&this.autoMutedTS&&new Date().getTime()-this.autoMutedTS<e)return;this.mutedByVPAID=i.value,this.video.muted=i.value;break;case"volume":i.value&&this.video.muted&&!this.mutedByVPAID?!this.autoMutedTS||new Date().getTime()-this.autoMutedTS>e?(this.video.muted=!1,this.video.volume=i.value):this.callSet("adVolume",0):(this.video.volume=i.value,i.value===0&&(this.video.muted=!0));break;case"styles":AdmanHTML.Utils.setStyle(this.video,i.styles);break;case"addEventListener":this.videoEvents=this.videoEvents||[],this.videoEvents.push(i.eventType),this.video.addEventListener(i.eventType,this.videoEventHandler)}},t.prototype.videoEventHandler=function(i){this.send({type:"video",method:"emit",eventType:i.type,currentTime:this.video.currentTime,duration:this.video.duration,volume:this.video.volume,muted:this.video.muted}),this.videoIsElement&&(i.type==="play"?this.onVpaidCallback("video:play"):i.type==="pause"&&this.video.currentTime>0&&this.video.currentTime<.99*this.video.duration&&this.onVpaidCallback("video:pause"))},t.prototype.vpaidMessageHandler=function(i){AdmanHTML.Utils.mixin(this._props,i.props),typeof this.onVpaidCallback=="function"&&this.onVpaidCallback(i.eventType,i.props)},t.prototype.call=function(i,n){var o={type:"vpaid",method:i};if(n&&(o.params=n),this.send(o),i in this._props)return this._props[i]},t.prototype.callGet=function(i){return this._props[i]},t.prototype.callSet=function(i,n){return i="set"+i.charAt(0).toUpperCase()+i.slice(1),this.call(i,[n])},t.prototype.send=function(i){this.adframe&&(i.id=this.id,this.adframe.contentWindow&&this.adframe.contentWindow.postMessage(JSON.stringify(i),"*"))},t.prototype.onVpaidEvent=function(i){this.onVpaidCallback=i},t.prototype.destroy=function(){if(this.adframe&&this.adframe.parentNode&&this.adframe.parentNode.removeChild(this.adframe),this.videoEvents&&this.videoEvents.length)for(var i=0,n=this.videoEvents.length;i<n;i++)this.video.removeEventListener(this.videoEvents[i],this.videoEventHandler);this.video.pause(),this.video.src="",this.autoMuted&&(this.video.muted=!1),this.adframe=null,this.win.removeEventListener("message",this.processMessage),this.win=null},t}(),AdmanHTML.Constants=function(){"use strict";return{AD_ACTIONS_DEFAULT_CONFIG:{members:["disclaimer","timer","adchoice"],positionX:"left",positionY:"top",offsetX:"6px",offsetY:"6px",disclaimerText:"Реклама",headerText:"Рекламное объявление",aboutText:"О рекламодателе",copyText:"Скопировать ID"}}}(),AdmanHTML.Stats=function(t){"use strict";function e(N){if(c){var w=b[N];w&&d("https://r.mail.ru/d"+w+".gif?rnd="+Math.random())}else v.push(N)}function i(N,w){if(!n()){if(N)try{Object.defineProperty(y,N,{writable:!1,enumerable:!0,value:w||Date.now()-u})}catch(A){}else y.sessionId=AdmanHTML.Utils._genSessionId();u=Date.now(),Object.keys(b).length&&d("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+t.version+"&metrics="+encodeURIComponent(JSON.stringify(y))+"&slot="+(h==="slot"?t.slotId:"json"))}}function n(){return["media_error_code","vpaid_error_message","skipped","completed"].some(function(N){return y.hasOwnProperty(N)})}function o(N,w,A){var M=[];if(A)for(var I in A)A.hasOwnProperty(I)&&M.push(I+"="+String(A[I]));var m="";M.length&&(m="&"+M.join("&")),D||d("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+t.version+"&"+N+"="+encodeURI(w)+"&slot="+(h==="slot"?t.slotId:"json")+m),t.debugMode&&console&&console.log&&(console.log("MESSAGE: "+N+" = "+w),A&&console.log("MESSAGE EXTRA PARAMS: "+JSON.stringify(A)))}function a(N,w){var A=[];if(w)for(var M in w)w.hasOwnProperty(M)&&A.push(M+"="+String(w[M]));var I="";A.length&&(I="&"+A.join("&")),D||d("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+t.version+"&error="+encodeURI(N)+"&slot="+(h==="slot"?t.slotId:"json")+I),t.debugMode&&console&&console.warn&&console.warn("Error: "+N)}function d(N){AdmanHTML.Utils.loadImg(N)}function r(N){if(!l){var w="https://ad.mail.ru/vp/"+f+"?original="+(N.slot||"")+"&version="+N.version;l=!0,D?(console.log(w),c=!0):AdmanHTML.Utils.xhr(w,function(A){if(c=!0,A){if(typeof A=="string")try{b=JSON.parse(A.trim())}catch(I){}else typeof A=="object"&&(b=A);var M=v.slice();v=[],M.forEach(e)}})}}var u,h="slot",f=3107,l=!1,c=!1,v=[],b={},y={},g=AdmanHTML.Utils.getPageLocation(),C=AdmanHTML.Utils.getHostname(g||""),D=C.indexOf("localhost")!==-1;return{rb:e,logError:a,logMessage:o,simple:d,metrics:i,initMode:function(N,w){h=N,N==="slot"&&r(w)},code:{ADMAN_INSTANCE_CREATED:"ADMAN_INSTANCE_CREATED",ADMAN_SUCCESSFULLY_INITIALIZED:"ADMAN_SUCCESSFULLY_INITIALIZED",ERROR_CONVERTING_STRING_TO_JSON:"ERROR_CONVERTING_STRING_TO_JSON",ERROR_PARSING_JSON:"ERROR_PARSING_JSON",ERROR_CONVERTING_STRING_TO_XML:"ERROR_CONVERTING_STRING_TO_XML",ERROR_PARSING_XML:"ERROR_PARSING_XML",UNKNOWN_DATA_FORMAT:"UNKNOWN_DATA_FORMAT",UNKNOWN_ADV_TYPE:"UNKNOWN_ADV_TYPE"}}},AdmanHTML.StyleUtils=function(){"use strict";function t(u){return u.replace(/-+(.)?/g,function(h,f){return f?f.toUpperCase():""})}function e(u,h,f){var l,c=d[h];if(!c){for(l=0;l<r.length;l++)if(c=r[l]===""?h:t(r[l]+"-"+h),u[c]!==void 0){d[h]=c;break}}u[c]=f}function i(u){return parseInt(u)+"px"}function n(u,h){function f(l,c){return l=parseInt(l,16),c=c||1,"rgba("+(l>>16&255)+","+(l>>8&255)+","+(255&l)+","+c+")"}return Array.isArray(u)?"linear-gradient("+u.map(function(l){return f(l,h)}).join(", ")+")":f(u,h)}function o(u,h,f){var l=u.style;(f||Object.keys(h)).forEach(function(c){h.hasOwnProperty(c)&&a(l,c,h[c],h)})}function a(u,h,f,l){var c,v,b;switch(h){case"fontFace":c="fontFamily",v=f;break;case"hasBackground":f||(c="background",v="none",delete l.backgroundColor);break;case"backgroundColor":c="background",v=n(f,l.backgroundAlpha);break;case"cornerRounding":case"borderCornerRounding":c="borderRadius",v=i(Math.floor(f/2));break;case"headerColor":case"bodyColor":case"hyperlinkColor":case"textColor":c="color",v=n(f);break;case"headerSize":case"bodySize":case"hyperlinkSize":case"textSize":c="fontSize",v=i(f);break;case"headerUnderline":case"bodyUnderline":case"hyperlinkUnderline":case"textUnderline":c="text-decoration",v=f?"underline":"none",b="";break;case"headerUnderlineOnRollOver":c="text-decoration",v=f?"":"none",b=f?"":"important";break;case"headerBold":case"bodyBold":case"hyperlinkBold":case"textBold":c="fontWeight",v=f?"bold":"normal";break;case"headerIndent":case"bodyIndent":case"hyperlinkIndent":c="marginTop",v=i(f);break;case"bodyPaddingRight":c="marginRight",v=i(f);break;case"width":case"height":c=h,v=i(f);break;case"contentPadding":case"contentIndent":case"controlsSafeArea":c="padding",v=i(f);break;case"maxImageWidth":case"maxImageHeight":c=h==="maxImageWidth"?"maxWidth":"maxHeight",v=i(f);break;case"borderSize":c="borderWidth",v=i(f);break;case"borderColor":c="borderColor",v=n(f,l.borderAlpha);break;case"paddingLeft":case"paddingTop":c=h==="paddingLeft"?"left":"top",v=i(f);break;case"controlsPaddingTop":case"controlsPaddingRight":c=h==="controlsPaddingRight"?"right":"top",v=i(f)}c&&v&&(b!==void 0?u.setProperty(c,v,b):e(u,c,v))}var d={},r=["","webkit","Moz","O","ms"];return{applyStyle:o,getLength:i}}(),AdmanHTML.Utils=function(){"use strict";function t(){return ue||(ue=function(){try{if(window===window.top)return O;for(var T=window;T!==T.parent;){if(T.document.domain!==T.parent.document.domain)return le;T=T.parent}return pe}catch(S){}return le}())}function e(){if(me!==null)return me;var T=window;try{for(;T.parent!==T&&T.document.domain===T.parent.document.domain;)T=T.parent}catch(S){}return me=T,T}function i(){var T=window,S="",L=e();try{S=T.top.location.href}catch(te){if(L&&L.parent===T.top&&(S=L.document.referrer),!S){var R=T.location.ancestorOrigins;R&&R.length&&(S=R[R.length-1])}}return S||(S=(L||window).document.referrer),S}function n(){return Ue.major?Se:Me}function o(T){T(n())}function a(T,S){S&&T.addEventListener("load",S,!1);var L=document.getElementsByTagName("head");if(L&&L.length){var R=L[0];R&&R.appendChild(T)}}function d(T,S,L){var R=document.getElementById(S);if(R&&R.parentNode){if(!L)return;R.parentNode.removeChild(R)}R=document.createElement("style"),R.type="text/css",R.id=S,R.innerHTML=T,a(R)}function r(T){var S=document.querySelector("link[href*='"+T+"']");S||(S=document.createElement("link"),S.type="text/css",S.rel="stylesheet",S.href=T,a(S))}function u(T){var S=document.querySelector("script[src*='"+T+"']");S||(S=document.createElement("script"),S.setAttribute("type","text/javascript"),S.setAttribute("charset","utf8"),S.setAttribute("src",T),a(S))}function h(T,S){var L=AdmanHTML.Utils.getPageLocation();if(AdmanHTML.Utils.getHostname(L||"").indexOf("localhost")===-1){var R=new Image;R.onload=function(){S&&S(R)},R.src=T}else console.log(T)}function f(T,S,L,R,te){R=R||"GET";var se=new XMLHttpRequest;return se.open(R,T,!0),se.withCredentials=!te,se.setRequestHeader("Content-Type","text/plain"),se.send(L||null),S&&(se.onreadystatechange=function(){se.readyState===4&&(se.status===200?S(se.response):S())},se.onerror=function(){te?S():f(T,S,L,R,!0)}),se}function l(T,S,L,R,te){te===void 0&&(te=!0);var se=S*L<T*R;te&&(se=!se);var Ie=se?R/S:L/T,$e=Math.floor(T*Ie),E=Math.floor(S*Ie);return{x:Math.floor((L-$e)/2),y:Math.floor((R-E)/2),width:Math.floor($e),height:Math.floor(E)}}function c(T){return typeof T=="object"&&!!T&&!Array.isArray(T)}function v(T){var S;for(S in T)return!1;return!0}function b(T,S){if(!T)return null;if(S){var L;for(L in S)Object.prototype.hasOwnProperty.call(S,L)&&(T[L]=S[L])}return T}function y(T,S){if(S){var L,R;for(L in S)Object.prototype.hasOwnProperty.call(S,L)&&(R=S[L],c(R)?(T[L]=T[L]||{},T[L]=y(T[L],R)):T[L]=R)}return T}function g(T,S,L){return T=T||0,S=S||0,L=L||1,Math.min(L,Math.max(S,T))}function C(T,S){return T-S}function D(){return Math.floor(Math.random()*Math.pow(2,48)).toString()}function N(T){T=T.split("+").join(" ");for(var S,L={},R=/[?&]?([^=]+)=([^&]*)/g;S=R.exec(T);)L[decodeURIComponent(S[1])]=decodeURIComponent(S[2]);return L}function w(T,S){var L;document.createEvent?(L=document.createEvent("HTMLEvents"),L.initEvent(S,!0,!0)):(L=document.createEventObject(),L.eventType=S),L.eventName=S,document.createEvent?T.dispatchEvent(L):T.fireEvent("on"+L.eventType,L)}function A(T){return T?T.substring(T.indexOf("//")+2,T.indexOf("/?")):""}function M(T){var S=document.createElement("a");return S.href=T,S.hostname}function I(T){return T.replace(/^(www[0-9]?\.)?/,"")}function m(T,S,L){if(!T||!S)return!0;if(T=I(T),S=I(S),!(L&&L.URL&&Array.prototype.includes))return new RegExp("^"+S.replace(/^(\*\.?)/,"([^/]*.)?").replace(/\./g,"\\.")+"$").test(T);try{T=new URL(T);try{return S=new URL(S),T.host.includes(S.host)}catch(R){return T.host.includes(S)}}catch(R){return T.includes(S)}}function U(T){var S=T.button,L=T.which;return L||S===void 0?L:1&S?1:2&S?3:4&S?2:0}function x(T){return U(T)===1}function P(T,S){return S=S||document.body,T!==S&&S.contains(T)}function k(T){return T&&T.nodeType===1}function Z(T){var S=T.ownerDocument;return S.defaultView||S.parentWindow}function ae(T){T.preventDefault()}function V(T){var S;if(window.DOMParser)S=new DOMParser().parseFromString(T,"text/xml");else{if(!window.ActiveXObject)return;S=new window.ActiveXObject("Microsoft.XMLDOM"),S.async=!1,S.loadXML(T)}return S.documentElement}function G(T){if(T){var S=T.split(":");if(S.length===3){var L=parseInt(S[0],10),R=parseInt(S[1],10),te=S[2].split("."),se=parseInt(te[0],10),Ie=0;if(te.length===2&&(Ie=parseInt(te[1],10)),!(isNaN(L)||isNaN(R)||isNaN(se)||isNaN(Ie)))return 3600*L+60*R+se+Ie/1e3}}return NaN}function F(T,S){var L,R=T;for(L in S)S.hasOwnProperty(L)&&(R=R.replace("{{"+L+"}}",S[L]));return R}function J(T,S){if(S=S||0,window.Worker&&window.Blob){var L,R=new Blob(['var timeout; onmessage = function(e) {clearTimeout(timeout); if (e.data === "start") {timeout = setTimeout(function() { postMessage({}); }, '+S+");}}"]);try{L=new Worker(window.URL.createObjectURL(R)),L.onmessage=function(){L.terminate(),T()},L.postMessage("start")}catch(te){return setTimeout(T,S)}return L}return setTimeout(T,S)}function Ee(){function T(Ie){var $e={};try{var E=window[Ie].getItem("rb_sync_id");E&&typeof($e=JSON.parse(E))!="object"&&($e={})}catch(z){}return $e}var S=[],L=T("localStorage"),R=T("sessionStorage"),te=b(L,R);for(var se in te)te.hasOwnProperty(se)&&S.push(se+"="+encodeURIComponent(te[se]));return S.join("&")}function ee(T){return/nr-vpaid(\.min)?\.js/.test(T)}function de(T,S){T&&T.style&&Y(T,S,!0)}function Y(T,S,L){L=L||!1;var R=L?function(te,se){T.style.setProperty(te,se,"important")}:function(te,se){T.style.setProperty(te,se)};Object.getOwnPropertyNames(S).forEach(function(te){R(te,S[te])})}function _e(){function T($e,E){return function(){return $e.apply(E,arguments)}}function S($e){var E=$e.toString(16);return E.length===1?"0"+E:E}function L($e,E,z){for(var X="",fe=E;fe<=z;fe++)X+=S($e[fe]);return X}var R="undefined",te=typeof crypto!==R&&crypto.getRandomValues&&T(crypto.getRandomValues,crypto)||typeof msCrypto!==R&&window.msCrypto.getRandomValues&&T(window.msCrypto.getRandomValues,window.msCrypto),se=function(){if(te){var $e=new Uint8Array(16);return function(){return te($e),$e}}var E=new Array(16);return function(){for(var z,X=0;X<16;X++)(3&X)==0&&(z=4294967296*Math.random()),E[X]=z>>>((3&X)<<3)&255;return E}}(),Ie=se();return Ie[6]=15&Ie[6]|64,Ie[8]=63&Ie[8]|128,L(Ie,0,3)+"-"+L(Ie,4,5)+"-"+L(Ie,6,7)+"-"+L(Ie,8,9)+"-"+L(Ie,10,15)}function B(T,S){var L=AdmanHTML.Constants.AD_ACTIONS_DEFAULT_CONFIG,R=[S,T].reduce(function(te,se){return se&&Object.keys(L).forEach(function(Ie){te[Ie]!==se[Ie]&&(te[Ie]=se[Ie]?se[Ie]:te[Ie]),typeof se.members=="object"&&(te.members=se.members)}),te},Object.assign({},L));return je(R)?R:L}function je(T){return!!Array.isArray(T.members)&&(T.members.forEach(function(S){if(["adchoice","disclaimer","timer"].indexOf(S)===-1)return!1}),typeof T.positionX=="string"&&["left","right"].indexOf(T.positionX)!==-1&&typeof T.positionY=="string"&&["top","bottom"].indexOf(T.positionY)!==-1&&typeof T.offsetX=="string"&&typeof T.offsetY=="string"&&!(typeof T.disclaimerText!="string"||!T.disclaimerText.length)&&!(typeof T.headerText!="string"||!T.headerText.length)&&!(typeof T.aboutText!="string"||!T.aboutText.length)&&!(typeof T.copyText!="string"||!T.copyText.length))}function De(T){T=T||navigator.userAgent;var S=!1;return function(L){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(L)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(L.substr(0,4)))&&(S=!0)}(T),S}var ue,O=1,pe=2,le=3,me=null,Me=0,Se=1,Ue=function(){var T="undefined",S="Shockwave Flash",L="application/x-shockwave-flash",R={major:0,minor:0,release:0},te=null;if(typeof navigator.plugins!==T&&typeof navigator.plugins[S]=="object")(te=navigator.plugins[S].description)&&typeof navigator.mimeTypes!==T&&navigator.mimeTypes[L]&&navigator.mimeTypes[L].enabledPlugin&&(te=te.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),R.major=parseInt(te.replace(/^(.*)\..*$/,"$1"),10),R.minor=parseInt(te.replace(/^.*\.(.*)\s.*$/,"$1"),10),R.release=/[a-zA-Z]/.test(te)?parseInt(te.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof window.ActiveXObject!==T)try{var se=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash");se&&(te=se.GetVariable("$version"))&&(te=te.split(" ")[1].split(","),R.major=parseInt(te[0],10),R.minor=parseInt(te[1],10),R.release=parseInt(te[2],10))}catch(Ie){}return R}();return{setStyle:de,isNRVpaid:ee,addCss:d,loadCss:r,loadJs:u,loadImg:h,xhr:f,scaleBySide:l,isEmptyObject:v,mixin:b,deepExtend:y,validateMinMax:g,numSorter:C,createIntUID:D,getQueryParams:N,triggerEvent:w,getUserIdQuery:Ee,getPageLocation:i,getDomain:A,getHostname:M,_genSessionId:_e,matchHostname:m,isLeftButtonPressed:x,isElementInDocument:P,isElement:k,getElementViewport:Z,preventDefault:ae,parseXml:V,convertDuration:G,renderTemplate:F,setTimeout:J,checkFlash:n,checkFlashAsync:o,FLASH_READY:Se,FLASH_MISSING:Me,getServingType:t,servingTypes:{ON_PAGE:O,S_FRAME:pe,XD_FRAME:le},adActionsConfigPrepare:B,isMobile:De}}(),AdmanHTML.Viewability=function(){"use strict";function t(V,G,F){return V.forEach(function(J){J.duration=G.focus&&G.percent>=J.threshold?J.duration+F:0}),V}function e(V){V.forEach(function(G){G.duration=0})}function i(V){return new window.IntersectionObserver(function(G){G&&G.length&&G[0].intersectionRatio!==void 0&&(V(G[0].intersectionRatio),!P&&(G[0].intersectionRatio>0||G[0].isIntersecting)&&(P=!0,g.log("viewin")))},{threshold:Z})}function n(){return m?!document[m]:M===I.XD_FRAME||!window.top.document.hasFocus||window.top.document.hasFocus()}function o(){var V=a();if(V.state!=="UNDETERMINED")return t(ae,V,w),g&&(g.logMRC(ae)||y()),V}function a(){var V,G,F=n();return A?(V=k,G="DETERMINED"):M!==I.XD_FRAME?(V=d(C).percent,G="DETERMINED"):(V=0,G="UNDETERMINED"),{percent:V,focus:F,state:G,viewinOccured:P}}function d(V,G){try{var F=V.getBoundingClientRect(),J=r(F),Ee=AdmanHTML.Utils.getElementViewport(V)||window;for(G=G||window.top;Ee!==G;){var ee=Ee.frameElement.getBoundingClientRect();F=u(F,ee),F.left=Math.max(ee.left,F.left),F.right=Math.min(ee.right,F.right),F.top=Math.max(ee.top,F.top),F.bottom=Math.min(ee.bottom,F.bottom),F.right<F.left&&(F.right=F.left),F.bottom<F.top&&(F.bottom=F.top),Ee=Ee.parent}F=h(F,G);var de=r(F);return F.percent=de/J*100,F}catch(Y){return{left:0,right:0,top:0,bottom:0,percent:0}}}function r(V){return(V.right-V.left)*(V.bottom-V.top)}function u(V,G){return{left:V.left+G.left,right:V.right+G.left,top:V.top+G.top,bottom:V.bottom+G.top}}function h(V,G){var F={},J=f(G);return F.left=Math.max(0,V.left),F.right=Math.min(J.width,V.right),F.top=Math.max(0,V.top),F.bottom=Math.min(J.height,V.bottom),F}function f(V){var G={width:1/0,height:1/0};return!isNaN(V.document.body.clientWidth)&&V.document.body.clientWidth>0&&(G.width=V.document.body.clientWidth),!isNaN(V.document.body.clientHeight)&&V.document.body.clientHeight>0&&(G.height=V.document.body.clientHeight),V.document.documentElement&&V.document.documentElement.clientWidth&&!isNaN(V.document.documentElement.clientWidth)&&(G.width=V.document.documentElement.clientWidth),V.document.documentElement&&V.document.documentElement.clientHeight&&!isNaN(V.document.documentElement.clientHeight)&&(G.height=V.document.documentElement.clientHeight),V.innerWidth&&!isNaN(V.innerWidth)&&(G.width=Math.min(G.width,V.innerWidth)),V.innerHeight&&!isNaN(V.innerHeight)&&(G.height=Math.min(G.height,V.innerHeight)),G}function l(V,G,F){if(g=G,x=!F,C=V,A)N=N||i(function(J){k=100*J}),N.observe(V);else if(M===I.XD_FRAME)return U=!1,void g.log("viewabilityUnmeasurable");F||(D=setInterval(o,w)),U=!0,g.log("viewabilityMeasurable"),window.addEventListener("unload",c)}function c(){b("unload")}function v(){D||(D=setInterval(o,w))}function b(V){U&&g&&x&&g.logMRC([],V||"complete"),g=null,U=!1,x=!1,C=null,clearInterval(D),D=void 0,e(ae),N&&N.disconnect(),window.removeEventListener("unload",c)}function y(){D&&(clearInterval(D),D=void 0,e(ae))}var g,C,D,N,w=255,A=!!window.IntersectionObserver,M=AdmanHTML.Utils.getServingType(),I=AdmanHTML.Utils.servingTypes,m=function(){for(var V=["h","webkitH","mozH","msH","oH"],G=0;G<V.length;G++)if(document[V[G]+"idden"]!==void 0)return V[G]+"idden";return""}(),U=!1,x=!1,P=!1,k=0,Z=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],ae=[];return Z.forEach(function(V){ae.push({threshold:Math.round(100*V),duration:0})}),{start:l,pause:y,resume:v,stop:b,getViewabilityState:a}},AdmanHTML.AdRenderer=function(t,e){"use strict";function i(){N.wrapperEl=N.wrapperEl||t.wrapper,N.mainEl=N.mainEl||document.createElement("div"),N.clickEl=N.clickEl||N.mainEl,AdmanHTML.Utils.isElement(N.mainEl)&&!N.mainEl.parentNode&&(N.wrapperEl.childNodes.length?N.wrapperEl.insertBefore(N.mainEl,N.wrapperEl.childNodes[0]):N.wrapperEl.appendChild(N.mainEl),D=!0),N.clickEl.addEventListener("click",N.onClick),window.addEventListener("resize",v)}function n(M){M()}function o(){t.viewability.stop(),window.removeEventListener("resize",v),N.clickEl&&N.clickEl.removeEventListener("click",N.onClick),clearTimeout(y),AdmanHTML.Utils.isElement(N.mainEl)&&D&&N.mainEl.parentNode&&N.mainEl.parentNode.removeChild(N.mainEl)}function a(){if(!w&&(w=!0,clearTimeout(y),g)){var M=Date.now()-g;C=1e3*A.duration-M}}function d(){w&&(w=!1,r())}function r(){g=Date.now();var M=C||1e3*A.duration;y=setTimeout(function(){o(),t.cb("onCompleted")},M)}function u(){A.urlToNavigateOnClick&&(A.openLinkInPopup?t.openPopup(A.urlToNavigateOnClick||A.trackingLink):window.open(A.urlToNavigateOnClick,"_blank"),e.log("click"),t.cb("onClicked"))}function h(M){t.cb("onStarted",[e.sectionType,AdmanHTML.Utils.mixin(e.getAdForApp()||{},M||{})]),e.log("playbackStarted")}function f(M,I){var m=parseInt(M/I*100);t.cb("onTimeRemained",[{remained:I-M,percent:m,duration:I,currentTime:M}]),M=parseInt(M),e.log("thresholdPValue",m),e.log("thresholdValue",M),e.logOVV(M,m)}function l(M,I){typeof M!="string"&&M?N.mainEl.appendChild(M):N.mainEl.innerHTML=M,AdmanHTML.Utils.mixin(N.mainEl.style,I)}function c(M){N.wrapperEl=M}function v(){N.onResize(N.mainEl.offsetWidth,N.mainEl.offsetHeight)}function b(){}var y,g,C,D,N={},w=!1,A=e.getAd();return N={start:i,pause:a,resume:d,skip:n,dispose:o,onClick:u,onStart:h,registerTimer:r,setView:l,setWrapper:c,onTimeRemained:f,onResize:b}},AdmanHTML.AudioAdRenderer=function(t,e){"use strict";function i(){d.mainEl=t.audioEl||document.createElement("audio"),r.forEach(function(u){d.mainEl.addEventListener(u,o)}),t.audioEl||d.setView(null,{position:"absolute",width:"1px",height:"1px",top:"-10000px",left:"-10000px"}),a=e.getAd().duration,d.mainEl.src=e.getAd().src,d.mainEl.load(),e.log("render"),d.mainEl.play(),t.audioEl||d.start()}function n(){d.dispose(),r.forEach(function(u){d.mainEl.removeEventListener(u,o)})}function o(u){var h,f;switch(u.type){case"loadedmetadata":d.onStart();break;case"play":t.cb("onPlayed");break;case"pause":t.cb("onPaused");break;case"timeupdate":h=d.mainEl.duration,f=d.mainEl.currentTime,!isNaN(h)&&a&&Math.abs(a-h)>1&&(h=a,f=Math.min(f,h)),d.onTimeRemained(f,h);break;case"ended":t.cb("onCompleted");break;case"error":t.cb("onError")}}var a,d=new AdmanHTML.AdRenderer(t,e),r=["loadedmetadata","error","pause","play","timeupdate","ended"];return{start:i,skip:d.skip,dispose:n,pause:function(){d.mainEl.pause()},resume:function(){d.mainEl.play()},setVolume:function(u){var h=d.mainEl.muted?0:d.mainEl.volume;d.mainEl.muted=u===0,d.mainEl.volume=u,(h===0&&u>0||h>0&&u===0)&&e.log(u?"volumeOn":"volumeOff")}}},AdmanHTML.CallToActionBtnRenderer=function(t,e){"use strict";function i(){this.isRendered=!1,this.background="#1a79ff",this.boxShadow="0px 0px 4px 0px #0000000F",this.ctaButtonEl=document.createElement("div"),this.ctaButtonEl.className="rb-adman-cta-btn",this.ctaButtonTextEl=document.createElement("span"),this.ctaButtonTextEl.className="rb-adman-cta-btn-text",this.ctaButtonEl.appendChild(this.ctaButtonTextEl)}function n(b){b.propertyName==="transform"&&b.target===l&&v.moveWithControls()}function o(){c.start(),f=e.getAd(),h=e.getSettings(),l=document.querySelector("div.videoplayer_controls");var b=AdmanHTML.Utils.adActionsConfigPrepare(f?f.adActionsConfig:null,h?h.adActionsConfig:null);if(!f.ctaWebEnabled||b.positionY==="bottom"&&b.positionX==="left")return void(r=Function.prototype);v.setText(f.ctaText),v.setStyles(),u=a(),v.setCustomStyles(u),v.addListeners(),v.appendTo(t.wrapper),r=function(){v.destroy()},l&&l.addEventListener("transitionstart",n)}function a(){return[t,f,h].reduce(function(b,y){return Object.keys(b).length||typeof y.ctaStyles!="object"?b:y.ctaStyles},{})}function d(){l&&l.removeEventListener("transitionstart",n),r&&r(),c.dispose()}if(!t.callToActionButton)return{render:Function.prototype,dispose:Function.prototype};var r,u,h,f,l,c=new AdmanHTML.AdRenderer(t,e);i.prototype._setStyles=function(b,y){AdmanHTML.Utils.setStyle(b,y)},i.prototype.setStyles=function(){this._setStyles(this.ctaButtonEl,{position:"absolute","font-family":"Roboto","font-style":"normal","font-weight":"500","font-size":"14px","line-height":"18px",transition:"background-color .15s ease-out,opacity .15s ease-out, transform 250ms cubic-bezier(0.455, 0.03, 0.515, 0.955)",border:"0.5px solid "+this.background,"box-shadow":this.boxShadow,height:"36px",cursor:"pointer",display:"flex","flex-direction":"row","align-items":"center",padding:"0px 20px",gap:"8px",background:this.background,"border-radius":"8px",color:"#FFF",bottom:l?"20px":"16%",left:"20px"})},i.prototype.setCustomStyles=function(b){b.background&&(this.background=b.background),this._setStyles(this.ctaButtonEl,b)},i.prototype.setText=function(b){this.ctaButtonTextEl.innerText=b&&typeof b=="string"?b:"Перейти"},i.prototype.removeFromDOM=function(){this.ctaButtonEl.remove()},i.prototype.addListeners=function(){this.ctaButtonEl.addEventListener("mouseover",this._hoverCTABtnListener.bind(this,!0)),this.ctaButtonEl.addEventListener("mouseout",this._hoverCTABtnListener.bind(this,!1)),this.ctaButtonEl.addEventListener("click",this._clickCTABtnListener.bind(this))},i.prototype.removeListeners=function(){this.ctaButtonEl.removeEventListener("mouseover",this._hoverCTABtnListener.bind(this,!0)),this.ctaButtonEl.removeEventListener("mouseout",this._hoverCTABtnListener.bind(this,!1)),this.ctaButtonEl.removeEventListener("click",this._clickCTABtnListener.bind(this))},i.prototype.destroy=function(){this.removeListeners(),this.removeFromDOM()},i.prototype._clickCTABtnListener=function(){var b=f.ctaLink||f.urlToNavigateOnClick;f.openLinkInPopup?t.openPopup(b||f.trackingLink):window.open(b,"_blank"),e.log(["ctaClick","click"]),t.cb("onClicked")},i.prototype._hoverCTABtnListener=function(b){this._setStyles(this.ctaButtonEl,{background:b?"#1460C9":this.background,"box-shadow":b?"0px 4px 8px 0px #0000000A":this.boxShadow})},i.prototype.appendTo=function(b){b&&(b.appendChild(this.ctaButtonEl),this.isRendered=!0)},i.prototype.moveWithControls=function(){var b=l.classList.contains("hidden");this.ctaButtonEl.style.setProperty("transform","translateY("+(b?"0":"-"+Math.round(l.offsetHeight))+"px)")};var v=new i;return{render:o,dispose:d}},AdmanHTML.CloseBtnRenderer=function(t,e){"use strict";function i(){a.start();var f=e.getSettings(),l=f.controlsStyle||0,c=d[l],v=r[l];v.bg=v.bg||v.width;var b={};for(var y in h)h.hasOwnProperty(y)&&(b[y]=f[y]!==void 0?f[y]:h[y]);if(b.controlsPaddingTop=b.controlsPaddingTop-b.controlsSafeArea,b.controlsPaddingRight=b.controlsPaddingRight-b.controlsSafeArea,a.setView(AdmanHTML.Utils.renderTemplate(u,{img:c,width:v.width,height:v.height,bg:v.bg}),{position:"absolute",cursor:"pointer"}),AdmanHTML.StyleUtils.applyStyle(a.mainEl,b),v.bg!==v.width){var g=v.bg-v.width,C=function(N){N.target.className==="rb-adman_close"&&(N.target.style.backgroundPosition="-"+g+"px 0")},D=function(N){N.target.className==="rb-adman_close"&&(N.target.style.backgroundPosition="0 0")};a.mainEl.addEventListener("mouseover",C),a.mainEl.addEventListener("mouseout",D),o=function(){a.mainEl.removeEventListener("mouseover",C),a.mainEl.removeEventListener("mouseout",D)}}}function n(){o&&o(),a.dispose()}var o,a=new AdmanHTML.AdRenderer(t,e),d=["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAASCAMAAAAE/YwaAAABTVBMVEUAAAD4+PiLi4sAAAD////////q6uokJCT4+PiDg4MVFRUAAAD////9/f2AgICwsLC8vLyWlpaTk5MAAADq6urGxsYmJiZra2v29vZ2dnba2trQ0NCmpqbb29unp6c0NDTs7OzPz8+xsbH+/v7///9jY2P///+fn5+ysrLe3t5LS0uzs7PBwcEuLi66urpYWFi3t7cAAAD39/fW1tb8/PzGxsba2tpKSkpUVFR/f39sbGyRkZF2dnaqqqqioqLKyspERET6+vr////l5eX////w8PD////////a2tr////Y2Nj///+Pj4////+Dg4N6enq3t7dkZGSGhoaMjIz///+amppeXl7///9MTExxcXE9PT3///////9CQkL////////////n5+fKysrq6uq9vb2jo6Pk5OScnJyoqKjk5OS9vb2IiIhAQEBeXl7///8RDLJoAAAAbnRSTlNegIEhrIlmZmWAZkky/GeCgYFnBoCAdGbzq4GAgGZmZvHfzaefnJiXkpGKcG5uZmZDQ/fq466sqqeZmJeSd2xnZvnw7Onj2dHMyMfAvLe2tLCwpJGQjH92b25ubFpYUUhA4NrQzsrHvqqolnl5b4/gN4MAAAGhSURBVCjPZdFXbxpBEMDxORYSks1VDrgOpphqwKF34t7j3lt6n+//mOFtkX/Srlaj/8NKAzG2CoJVFns5AVZuhwXtMmP5JgqaeQa8I0UF0i/O01lJkE1zgNyrBTmANWnBGgAs+351PK761cq4UvX9ZYAN0yzYdsEsntqnRdPcoOh8WukgdipeCy11Oj0HaJnFDOLXgp1G68gxWxRFarXJd5R/f0G5OKnVIgBbjjNcQvlHE+WDguNsUSQFweTPJsqIbSMIAglg23U1e30+yQxd192m6MowDCVkIe4pBrkC2I3H4xcf3yN+7sfJLkV3iqLchGi0c6OQO4B9TdPO5tFSXyP7FEWTyeTlJn5APP5HzyjAoapenKTnk0xfVdVDiu7r9esdlM/2UB5e1+v3AGHPG9DHj+gcjDwvTNHj7PYY8eft309oXc5mjwBZfZRB/DboraN1outZip5SqZVEYoWu+Z16oh3oer7bzeujXrc30PUcRc+vFzzTDkILaAe88fBW8NDgvKS+EaglDizReCdoJBgrlyKCUplBjHEQcBZ7OfkPWYpTXkAiSDwAAAAASUVORK5CYII=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANBAMAAACAxflPAAAAGFBMVEX///8AAAD///////////////////////8GrCwdAAAACHRSTlPMAKZNgI0NmlQIVC0AAABMSURBVAjXYxAUVmBQFhRgEFNgYGBQE2AQYgACJgEGA6YAhiAGAwYFVhEWcQaQpKOhAwMIMAsDCRgfLC8KlDdgKmAoYjCA6oebBzMfAF6oBtnQTZWMAAAAAElFTkSuQmCC","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAA0CAMAAABRjo0fAAAARVBMVEUAAAAAAAAAAAD///+3t7e3t7cAAAAtLS3FxcUAAAAtLS3z8/Px8fHIyMjCwsJKSkpKSkoAAAAAAAD29vbi4uLi4uL////qCBnnAAAAFnRSTlMAgE2Zx3c4jHxiVJLy0s2VWR8K9eSJJoi7pQAAAS1JREFUWMPs0DkSwzAIQNFoV+R90/2PGg0DTQI2RQoX/hUN84ReT09Pf22JViwu/E58G7F3ZFdWZERqZXaQEamVgdCRY95Hjiwx/2YvW37eZi6L/EEld46pywVOYg9KQ1+Z+iHxJ4EDDEuB9L0DzlaFNpBYKDuxLEFDFRtEqJOhToJ6GepFyJ0kQfWku0DHXLLDcpkPDbRPaazYmKZdBc1tCg4KbZw10NQmXyHfxkkFFQsSOrZooGRAQsckFZQtSgGGrIFGg5KHYdRABISAoAIiwHsEVRBJ6KggktDRQCSRo4FIIkcDkUSOBiKJnDtCn1EadIMtMVAheQ+uDEuNImhwFarUqCYGV8VHPYsGvnFCi+YW3RqQdGsS062RT69uC906YvTqWo6CUTAKqAkAIPxHpRLLbKUAAAAASUVORK5CYII=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAAAiCAMAAADRYI/HAAAAOVBMVEUAAAD///+7u7uxsbF9fX2Pj4/W1taJiYn39/eTk5PNzc2tra2CgoLx8fHIyMioqKiioqJ3d3fh4eHCLdXsAAAAAXRSTlMAQObYZgAAAPhJREFUSMfszksOgzAMRdFiYoKdL+x/sTWRDJXyppU66BtF6HLk13+/vbTCpac4AtzxFNYTmH32IoQceVrMIXzcQbpNU7pvOcxoNK2Z4reYcS5gJ/kpZigq1BRHyArYkCOx4aLFB9lwst0IEy6Iv4Jo3ZexvSpGUveiJ4woEe2jsIciJLFIuR5FhBNEKq2mDGOlipAuOcpVSMzSITJ+tpgGhpDCMZhiRohcEOKKGxPiCrMbAHHFDYAs44j3wM7BE8VAI4Bm4ItioClAMyBsyg2hsncoD1jKo5jyxEZBsueAJ3sqZsDBWJ5QXjxSXlBTXmVQo/KiZjUKAAVsE9yzWNzOAAAAAElFTkSuQmCC"],r=[{width:18,height:18,bg:36},{width:13,height:13},{width:26,height:26,bg:52},{width:17,height:17,bg:34}],u='<div class="rb-adman_close" style="background:url({{img}});background-size:{{bg}}px 100%;width:{{width}}px;height:{{height}}px""></div>',h={controlsPaddingTop:3,controlsPaddingRight:0,controlsSafeArea:0};return a.onClick=function(f){f.stopPropagation(),f.target.className==="rb-adman_close"&&t.cb("onClosed")},{start:i,dispose:n,setWrapper:a.setWrapper}},AdmanHTML.DebugAdRenderer=function(t,e){"use strict";function i(){n.mainEl=document.createElement("span"),n.start(),n.setView("⚒ "+e.section,{position:"absolute",cursor:"pointer",top:"5px",left:"5px",background:"rgba(204,204,204,0.8)",padding:"5px",color:"#333","border-radius":"6px",font:"12px/19px Tahoma",display:"inline-block","z-index":100})}var n=new AdmanHTML.AdRenderer(t,e),o=e.getAd();return n.onClick=function(){window.open(o.urlToNavigateOnClick,"_blank")},{start:i,dispose:n.dispose}},AdmanHTML.DisclaimerRenderer=function(t,e){"use strict";function i(l,c,v,b){var y=document.createElement("style");y.appendChild(document.createTextNode(" @font-face { font-family: "+l+"; font-style: normal; font-weight: 300; unicode-range: "+b+"; src: url('"+c+"') format('"+v+"'); } ")),document.head.appendChild(y)}function n(){this.isOpened=!1,this.isSmall=!1,this.appendedTo=null,this._advPageUrlPart="https://ads.vk.com/adv_info?",this.actionsWrapperWidth=175,this.infoOrdIdDescription="",this.closeIconSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOS43MzY0MSAwLjI2MzYwNEMxMC4wODc5IDAuNjE1MDc2IDEwLjA4NzkgMS4xODQ5MiA5LjczNjQxIDEuNTM2NEw2LjI3MyA1TDkuNzM2NDEgOC40NjM2MkMxMC4wNTg2IDguNzg1OCAxMC4wODU0IDkuMjkxNDggOS44MTY5NSA5LjY0NDI0TDkuNzM2NDEgOS43MzY0MUM5LjM4NDk0IDEwLjA4NzkgOC44MTUwOSAxMC4wODc5IDguNDYzNjIgOS43MzY0MUw1IDYuMjczTDEuNTM2NCA5LjczNjQxQzEuMTg0OTIgMTAuMDg3OSAwLjYxNTA3NiAxMC4wODc5IDAuMjYzNjA0IDkuNzM2NDFDLTAuMDg3ODY3OSA5LjM4NDk0IC0wLjA4Nzg2NzkgOC44MTUwOSAwLjI2MzYwNCA4LjQ2MzYyTDMuNzI3IDVMMC4yNjM2MDQgMS41MzY0Qy0wLjA1ODU3ODYgMS4yMTQyMSAtMC4wODU0MjcyIDAuNzA4NTM0IDAuMTgzMDU4IDAuMzU1NzY5TDAuMjYzNjA0IDAuMjYzNjA0QzAuNjE1MDc2IC0wLjA4Nzg2OCAxLjE4NDkyIC0wLjA4Nzg2OCAxLjUzNjQgMC4yNjM2MDRMNSAzLjcyN0w4LjQ2MzYyIDAuMjYzNjA0QzguODE1MDkgLTAuMDg3ODY4IDkuMzg0OTQgLTAuMDg3ODY4IDkuNzM2NDEgMC4yNjM2MDRaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjY0Ii8+PC9zdmc+",this.closeIconActiveSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOS43MzY0MSAwLjI2MzYwNEMxMC4wODc5IDAuNjE1MDc2IDEwLjA4NzkgMS4xODQ5MiA5LjczNjQxIDEuNTM2NEw2LjI3MyA1TDkuNzM2NDEgOC40NjM2MkMxMC4wNTg2IDguNzg1OCAxMC4wODU0IDkuMjkxNDggOS44MTY5NSA5LjY0NDI0TDkuNzM2NDEgOS43MzY0MUM5LjM4NDk0IDEwLjA4NzkgOC44MTUwOSAxMC4wODc5IDguNDYzNjIgOS43MzY0MUw1IDYuMjczTDEuNTM2NCA5LjczNjQxQzEuMTg0OTIgMTAuMDg3OSAwLjYxNTA3NiAxMC4wODc5IDAuMjYzNjA0IDkuNzM2NDFDLTAuMDg3ODY3OSA5LjM4NDk0IC0wLjA4Nzg2NzkgOC44MTUwOSAwLjI2MzYwNCA4LjQ2MzYyTDMuNzI3IDVMMC4yNjM2MDQgMS41MzY0Qy0wLjA1ODU3ODYgMS4yMTQyMSAtMC4wODU0MjcyIDAuNzA4NTM0IDAuMTgzMDU4IDAuMzU1NzY5TDAuMjYzNjA0IDAuMjYzNjA0QzAuNjE1MDc2IC0wLjA4Nzg2OCAxLjE4NDkyIC0wLjA4Nzg2OCAxLjUzNjQgMC4yNjM2MDRMNSAzLjcyN0w4LjQ2MzYyIDAuMjYzNjA0QzguODE1MDkgLTAuMDg3ODY4IDkuMzg0OTQgLTAuMDg3ODY4IDkuNzM2NDEgMC4yNjM2MDRaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIxLjAwIi8+PC9zdmc+",this.aboutIconSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNiA2Ljc1QzYgNy4xNjQyMSA2LjMzNTc5IDcuNSA2Ljc1IDcuNUg5LjQzOTM0TDYuMjE5NjcgMTAuNzE5N0M1LjkyNjc4IDExLjAxMjYgNS45MjY3OCAxMS40ODc0IDYuMjE5NjcgMTEuNzgwM0M2LjUxMjU2IDEyLjA3MzIgNi45ODc0NCAxMi4wNzMyIDcuMjgwMzMgMTEuNzgwM0wxMC41IDguNTYwNjZWMTEuMjVDMTAuNSAxMS42NjQyIDEwLjgzNTggMTIgMTEuMjUgMTJDMTEuNjY0MiAxMiAxMiAxMS42NjQyIDEyIDExLjI1VjYuNzVDMTIgNi4zMzU3OSAxMS42NjQyIDYgMTEuMjUgNkg2Ljc1QzYuMzM1NzkgNiA2IDYuMzM1NzkgNiA2Ljc1WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42NCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkgMTcuNUMxMy42OTQ0IDE3LjUgMTcuNSAxMy42OTQ0IDE3LjUgOUMxNy41IDQuMzA1NTggMTMuNjk0NCAwLjUgOSAwLjVDNC4zMDU1OCAwLjUgMC41IDQuMzA1NTggMC41IDlDMC41IDEzLjY5NDQgNC4zMDU1OCAxNy41IDkgMTcuNVpNMTYgOUMxNiAxMi44NjYgMTIuODY2IDE2IDkgMTZDNS4xMzQwMSAxNiAyIDEyLjg2NiAyIDlDMiA1LjEzNDAxIDUuMTM0MDEgMiA5IDJDMTIuODY2IDIgMTYgNS4xMzQwMSAxNiA5WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42NCIvPjwvc3ZnPgo=",this.aboutIconActiveSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNiA2Ljc1QzYgNy4xNjQyMSA2LjMzNTc5IDcuNSA2Ljc1IDcuNUg5LjQzOTM0TDYuMjE5NjcgMTAuNzE5N0M1LjkyNjc4IDExLjAxMjYgNS45MjY3OCAxMS40ODc0IDYuMjE5NjcgMTEuNzgwM0M2LjUxMjU2IDEyLjA3MzIgNi45ODc0NCAxMi4wNzMyIDcuMjgwMzMgMTEuNzgwM0wxMC41IDguNTYwNjZWMTEuMjVDMTAuNSAxMS42NjQyIDEwLjgzNTggMTIgMTEuMjUgMTJDMTEuNjY0MiAxMiAxMiAxMS42NjQyIDEyIDExLjI1VjYuNzVDMTIgNi4zMzU3OSAxMS42NjQyIDYgMTEuMjUgNkg2Ljc1QzYuMzM1NzkgNiA2IDYuMzM1NzkgNiA2Ljc1WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMS4wMCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkgMTcuNUMxMy42OTQ0IDE3LjUgMTcuNSAxMy42OTQ0IDE3LjUgOUMxNy41IDQuMzA1NTggMTMuNjk0NCAwLjUgOSAwLjVDNC4zMDU1OCAwLjUgMC41IDQuMzA1NTggMC41IDlDMC41IDEzLjY5NDQgNC4zMDU1OCAxNy41IDkgMTcuNVpNMTYgOUMxNiAxMi44NjYgMTIuODY2IDE2IDkgMTZDNS4xMzQwMSAxNiAyIDEyLjg2NiAyIDlDMiA1LjEzNDAxIDUuMTM0MDEgMiA5IDJDMTIuODY2IDIgMTYgNS4xMzQwMSAxNiA5WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMS4wMCIvPjwvc3ZnPgo=",this.copyIconSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNiAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNy4yIDJDNS45MTUxMyAyIDUuMDQxNjkgMi4wMDExNyA0LjM2NjU2IDIuMDU2MzNDMy43MDg5MyAyLjExMDA2IDMuMzcyNjMgMi4yMDc0NSAzLjEzODAzIDIuMzI2OThDMi41NzM1NCAyLjYxNDYgMi4xMTQ2IDMuMDczNTQgMS44MjY5OCAzLjYzODAzQzEuNzA3NDUgMy44NzI2MyAxLjYxMDA2IDQuMjA4OTMgMS41NTYzMyA0Ljg2NjU2QzEuNTAxMTcgNS41NDE2OSAxLjUgNi40MTUxMyAxLjUgNy43VjEwLjNDMS41IDEwLjg4NDggMS41MDExNyAxMS4yMzMyIDEuNTIyMjcgMTEuNDkxNEMxLjUzMTI4IDExLjYwMTcgMS41NDIzIDExLjY2NzMgMS41NSAxMS43MDI4VjExLjhDMS41NSAxMi41NjExIDEuNTUgMTMuMDYzNiAxLjYxODM4IDEzLjQ0MThDMS40MTMzMiAxMy40MDk2IDEuMjQ0MjkgMTMuMzU5NiAxLjA5MjAyIDEzLjI4MkMwLjcxNTY5NSAxMy4wOTAzIDAuNDA5NzM0IDEyLjc4NDMgMC4yMTc5ODcgMTIuNDA4QzAgMTEuOTgwMiAwIDExLjQyMDEgMCAxMC4zVjcuN0MwIDUuMTc5NzYgMCAzLjkxOTY1IDAuNDkwNDcxIDIuOTU3MDRDMC45MjE5MDEgMi4xMTAzMSAxLjYxMDMxIDEuNDIxOSAyLjQ1NzA0IDAuOTkwNDcxQzMuNDE5NjUgMC41IDQuNjc5NzYgMC41IDcuMiAwLjVIOS4yQzEwLjMyMDEgMC41IDEwLjg4MDIgMC41IDExLjMwOCAwLjcxNzk4N0MxMS42ODQzIDAuOTA5NzM0IDExLjk5MDMgMS4yMTU2OSAxMi4xODIgMS41OTIwMkMxMi4yNTE5IDEuNzI5MTUgMTIuMjk5NCAxLjg3OTg2IDEyLjMzMTYgMi4wNTgyNEMxMS45NjA1IDIgMTEuNDcxNCAyIDEwLjc1IDJINy4yWiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42NCIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMy4xIDYuN0MzLjEgNS41Nzk5IDMuMSA1LjAxOTg0IDMuMzE3OTkgNC41OTIwMkMzLjUwOTczIDQuMjE1NjkgMy44MTU2OSAzLjkwOTczIDQuMTkyMDIgMy43MTc5OUM0LjYxOTg0IDMuNSA1LjE3OTg5IDMuNSA2LjMgMy41SDEyLjNDMTMuNDIwMSAzLjUgMTMuOTgwMiAzLjUgMTQuNDA4IDMuNzE3OTlDMTQuNzg0MyAzLjkwOTczIDE1LjA5MDMgNC4yMTU2OSAxNS4yODIgNC41OTIwMkMxNS41IDUuMDE5ODQgMTUuNSA1LjU3OTkgMTUuNSA2LjdWMTQuM0MxNS41IDE1LjQyMDEgMTUuNSAxNS45ODAyIDE1LjI4MiAxNi40MDhDMTUuMDkwMyAxNi43ODQzIDE0Ljc4NDMgMTcuMDkwMyAxNC40MDggMTcuMjgyQzEzLjk4MDIgMTcuNSAxMy40MjAxIDE3LjUgMTIuMyAxNy41SDYuM0M1LjE3OTkgMTcuNSA0LjYxOTg0IDE3LjUgNC4xOTIwMiAxNy4yODJDMy44MTU2OSAxNy4wOTAzIDMuNTA5NzMgMTYuNzg0MyAzLjMxNzk5IDE2LjQwOEMzLjEgMTUuOTgwMiAzLjEgMTUuNDIwMSAzLjEgMTQuM1Y2LjdaTTYuMyA1SDEyLjNDMTIuODg0OCA1IDEzLjIzMzIgNS4wMDExNyAxMy40OTE0IDUuMDIyMjdDMTMuNjQ5MSA1LjAzNTE0IDEzLjcxNTMgNS4wNTIxNCAxMy43MzMxIDUuMDU3NjVDMTMuODIyNCA1LjEwNDY5IDEzLjg5NTMgNS4xNzc2NSAxMy45NDI0IDUuMjY2OTNDMTMuOTQ3OSA1LjI4NDY4IDEzLjk2NDkgNS4zNTA5NCAxMy45Nzc3IDUuNTA4NTVDMTMuOTk4OCA1Ljc2NjgxIDE0IDYuMTE1MiAxNCA2LjdWMTQuM0MxNCAxNC44ODQ4IDEzLjk5ODggMTUuMjMzMiAxMy45Nzc3IDE1LjQ5MTRDMTMuOTY0OSAxNS42NDkxIDEzLjk0NzkgMTUuNzE1MyAxMy45NDI0IDE1LjczMzFDMTMuODk1MyAxNS44MjI0IDEzLjgyMjQgMTUuODk1MyAxMy43MzMxIDE1Ljk0MjRDMTMuNzE1MyAxNS45NDc5IDEzLjY0OTEgMTUuOTY0OSAxMy40OTE0IDE1Ljk3NzdDMTMuMjMzMiAxNS45OTg4IDEyLjg4NDggMTYgMTIuMyAxNkg2LjNDNS43MTUyIDE2IDUuMzY2ODEgMTUuOTk4OCA1LjEwODU1IDE1Ljk3NzdDNC45NTA5NCAxNS45NjQ5IDQuODg0NjkgMTUuOTQ3OSA0Ljg2NjkzIDE1Ljk0MjRDNC43Nzc2NSAxNS44OTUzIDQuNzA0NjkgMTUuODIyNCA0LjY1NzY1IDE1LjczMzFDNC42NTIxNCAxNS43MTUzIDQuNjM1MTQgMTUuNjQ5MSA0LjYyMjI3IDE1LjQ5MTRDNC42MDExNyAxNS4yMzMyIDQuNiAxNC44ODQ4IDQuNiAxNC4zVjYuN0M0LjYgNi4xMTUyIDQuNjAxMTcgNS43NjY4MSA0LjYyMjI3IDUuNTA4NTVDNC42MzUxNCA1LjM1MDkzIDQuNjUyMTQgNS4yODQ2OCA0LjY1NzY1IDUuMjY2OTNDNC43MDQ2OSA1LjE3NzY1IDQuNzc3NjUgNS4xMDQ2OSA0Ljg2NjkzIDUuMDU3NjVDNC44ODQ2OCA1LjA1MjE0IDQuOTUwOTQgNS4wMzUxNCA1LjEwODU1IDUuMDIyMjdDNS4zNjY4MSA1LjAwMTE3IDUuNzE1MiA1IDYuMyA1Wk0xMy43MzgzIDUuMDU5NDVMMTMuNzM1MiA1LjA1ODMzQzEzLjczNzQgNS4wNTkwNCAxMy43MzgzIDUuMDU5NDMgMTMuNzM4MyA1LjA1OTQ1Wk0xMy45NDA1IDUuMjYxNzVDMTMuOTQwNiA1LjI2MTY5IDEzLjk0MSA1LjI2MjY0IDEzLjk0MTcgNS4yNjQ3OEwxMy45NDA1IDUuMjYxNzVaTTEzLjk0MDUgMTUuNzM4M0wxMy45NDE3IDE1LjczNTJDMTMuOTQxIDE1LjczNzMgMTMuOTQwNiAxNS43MzgzIDEzLjk0MDUgMTUuNzM4M1pNMTMuNzM4MiAxNS45NDA1QzEzLjczODMgMTUuOTQwNiAxMy43Mzc0IDE1Ljk0MDkgMTMuNzM1MyAxNS45NDE3TDEzLjczODIgMTUuOTQwNVpNNC44NjE3NSAxNS45NDA1TDQuODY0NzggMTUuOTQxN0M0Ljg2MjY1IDE1Ljk0MSA0Ljg2MTY5IDE1Ljk0MDYgNC44NjE3NSAxNS45NDA1Wk00LjY1OTQ1IDE1LjczODNDNC42NTk0MyAxNS43MzgzIDQuNjU5MDQgMTUuNzM3NCA0LjY1ODMzIDE1LjczNTJMNC42NTk0NSAxNS43MzgzWk00LjY1OTQ1IDUuMjYxNzVMNC42NTgzMyA1LjI2NDc4QzQuNjU5MDQgNS4yNjI2NCA0LjY1OTQzIDUuMjYxNjkgNC42NTk0NSA1LjI2MTc1Wk00Ljg2MjE0IDUuMDU5MjdDNC44NjIxMiA1LjA1OTI2IDQuODYxODUgNS4wNTkzOCA0Ljg2MjE0IDUuMDU5MjdMNC44NjQ3OCA1LjA1ODMzQzQuODYzNDcgNS4wNTg3NyA0Ljg2MjYgNS4wNTkwOCA0Ljg2MjE0IDUuMDU5MjdaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjY0Ii8+PC9zdmc+",this.copyIconActiveSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNiAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNy4yIDJDNS45MTUxMyAyIDUuMDQxNjkgMi4wMDExNyA0LjM2NjU2IDIuMDU2MzNDMy43MDg5MyAyLjExMDA2IDMuMzcyNjMgMi4yMDc0NSAzLjEzODAzIDIuMzI2OThDMi41NzM1NCAyLjYxNDYgMi4xMTQ2IDMuMDczNTQgMS44MjY5OCAzLjYzODAzQzEuNzA3NDUgMy44NzI2MyAxLjYxMDA2IDQuMjA4OTMgMS41NTYzMyA0Ljg2NjU2QzEuNTAxMTcgNS41NDE2OSAxLjUgNi40MTUxMyAxLjUgNy43VjEwLjNDMS41IDEwLjg4NDggMS41MDExNyAxMS4yMzMyIDEuNTIyMjcgMTEuNDkxNEMxLjUzMTI4IDExLjYwMTcgMS41NDIzIDExLjY2NzMgMS41NSAxMS43MDI4VjExLjhDMS41NSAxMi41NjExIDEuNTUgMTMuMDYzNiAxLjYxODM4IDEzLjQ0MThDMS40MTMzMiAxMy40MDk2IDEuMjQ0MjkgMTMuMzU5NiAxLjA5MjAyIDEzLjI4MkMwLjcxNTY5NSAxMy4wOTAzIDAuNDA5NzM0IDEyLjc4NDMgMC4yMTc5ODcgMTIuNDA4QzAgMTEuOTgwMiAwIDExLjQyMDEgMCAxMC4zVjcuN0MwIDUuMTc5NzYgMCAzLjkxOTY1IDAuNDkwNDcxIDIuOTU3MDRDMC45MjE5MDEgMi4xMTAzMSAxLjYxMDMxIDEuNDIxOSAyLjQ1NzA0IDAuOTkwNDcxQzMuNDE5NjUgMC41IDQuNjc5NzYgMC41IDcuMiAwLjVIOS4yQzEwLjMyMDEgMC41IDEwLjg4MDIgMC41IDExLjMwOCAwLjcxNzk4N0MxMS42ODQzIDAuOTA5NzM0IDExLjk5MDMgMS4yMTU2OSAxMi4xODIgMS41OTIwMkMxMi4yNTE5IDEuNzI5MTUgMTIuMjk5NCAxLjg3OTg2IDEyLjMzMTYgMi4wNTgyNEMxMS45NjA1IDIgMTEuNDcxNCAyIDEwLjc1IDJINy4yWiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMS4wMCIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMy4xIDYuN0MzLjEgNS41Nzk5IDMuMSA1LjAxOTg0IDMuMzE3OTkgNC41OTIwMkMzLjUwOTczIDQuMjE1NjkgMy44MTU2OSAzLjkwOTczIDQuMTkyMDIgMy43MTc5OUM0LjYxOTg0IDMuNSA1LjE3OTg5IDMuNSA2LjMgMy41SDEyLjNDMTMuNDIwMSAzLjUgMTMuOTgwMiAzLjUgMTQuNDA4IDMuNzE3OTlDMTQuNzg0MyAzLjkwOTczIDE1LjA5MDMgNC4yMTU2OSAxNS4yODIgNC41OTIwMkMxNS41IDUuMDE5ODQgMTUuNSA1LjU3OTkgMTUuNSA2LjdWMTQuM0MxNS41IDE1LjQyMDEgMTUuNSAxNS45ODAyIDE1LjI4MiAxNi40MDhDMTUuMDkwMyAxNi43ODQzIDE0Ljc4NDMgMTcuMDkwMyAxNC40MDggMTcuMjgyQzEzLjk4MDIgMTcuNSAxMy40MjAxIDE3LjUgMTIuMyAxNy41SDYuM0M1LjE3OTkgMTcuNSA0LjYxOTg0IDE3LjUgNC4xOTIwMiAxNy4yODJDMy44MTU2OSAxNy4wOTAzIDMuNTA5NzMgMTYuNzg0MyAzLjMxNzk5IDE2LjQwOEMzLjEgMTUuOTgwMiAzLjEgMTUuNDIwMSAzLjEgMTQuM1Y2LjdaTTYuMyA1SDEyLjNDMTIuODg0OCA1IDEzLjIzMzIgNS4wMDExNyAxMy40OTE0IDUuMDIyMjdDMTMuNjQ5MSA1LjAzNTE0IDEzLjcxNTMgNS4wNTIxNCAxMy43MzMxIDUuMDU3NjVDMTMuODIyNCA1LjEwNDY5IDEzLjg5NTMgNS4xNzc2NSAxMy45NDI0IDUuMjY2OTNDMTMuOTQ3OSA1LjI4NDY4IDEzLjk2NDkgNS4zNTA5NCAxMy45Nzc3IDUuNTA4NTVDMTMuOTk4OCA1Ljc2NjgxIDE0IDYuMTE1MiAxNCA2LjdWMTQuM0MxNCAxNC44ODQ4IDEzLjk5ODggMTUuMjMzMiAxMy45Nzc3IDE1LjQ5MTRDMTMuOTY0OSAxNS42NDkxIDEzLjk0NzkgMTUuNzE1MyAxMy45NDI0IDE1LjczMzFDMTMuODk1MyAxNS44MjI0IDEzLjgyMjQgMTUuODk1MyAxMy43MzMxIDE1Ljk0MjRDMTMuNzE1MyAxNS45NDc5IDEzLjY0OTEgMTUuOTY0OSAxMy40OTE0IDE1Ljk3NzdDMTMuMjMzMiAxNS45OTg4IDEyLjg4NDggMTYgMTIuMyAxNkg2LjNDNS43MTUyIDE2IDUuMzY2ODEgMTUuOTk4OCA1LjEwODU1IDE1Ljk3NzdDNC45NTA5NCAxNS45NjQ5IDQuODg0NjkgMTUuOTQ3OSA0Ljg2NjkzIDE1Ljk0MjRDNC43Nzc2NSAxNS44OTUzIDQuNzA0NjkgMTUuODIyNCA0LjY1NzY1IDE1LjczMzFDNC42NTIxNCAxNS43MTUzIDQuNjM1MTQgMTUuNjQ5MSA0LjYyMjI3IDE1LjQ5MTRDNC42MDExNyAxNS4yMzMyIDQuNiAxNC44ODQ4IDQuNiAxNC4zVjYuN0M0LjYgNi4xMTUyIDQuNjAxMTcgNS43NjY4MSA0LjYyMjI3IDUuNTA4NTVDNC42MzUxNCA1LjM1MDkzIDQuNjUyMTQgNS4yODQ2OCA0LjY1NzY1IDUuMjY2OTNDNC43MDQ2OSA1LjE3NzY1IDQuNzc3NjUgNS4xMDQ2OSA0Ljg2NjkzIDUuMDU3NjVDNC44ODQ2OCA1LjA1MjE0IDQuOTUwOTQgNS4wMzUxNCA1LjEwODU1IDUuMDIyMjdDNS4zNjY4MSA1LjAwMTE3IDUuNzE1MiA1IDYuMyA1Wk0xMy43MzgzIDUuMDU5NDVMMTMuNzM1MiA1LjA1ODMzQzEzLjczNzQgNS4wNTkwNCAxMy43MzgzIDUuMDU5NDMgMTMuNzM4MyA1LjA1OTQ1Wk0xMy45NDA1IDUuMjYxNzVDMTMuOTQwNiA1LjI2MTY5IDEzLjk0MSA1LjI2MjY0IDEzLjk0MTcgNS4yNjQ3OEwxMy45NDA1IDUuMjYxNzVaTTEzLjk0MDUgMTUuNzM4M0wxMy45NDE3IDE1LjczNTJDMTMuOTQxIDE1LjczNzMgMTMuOTQwNiAxNS43MzgzIDEzLjk0MDUgMTUuNzM4M1pNMTMuNzM4MiAxNS45NDA1QzEzLjczODMgMTUuOTQwNiAxMy43Mzc0IDE1Ljk0MDkgMTMuNzM1MyAxNS45NDE3TDEzLjczODIgMTUuOTQwNVpNNC44NjE3NSAxNS45NDA1TDQuODY0NzggMTUuOTQxN0M0Ljg2MjY1IDE1Ljk0MSA0Ljg2MTY5IDE1Ljk0MDYgNC44NjE3NSAxNS45NDA1Wk00LjY1OTQ1IDE1LjczODNDNC42NTk0MyAxNS43MzgzIDQuNjU5MDQgMTUuNzM3NCA0LjY1ODMzIDE1LjczNTJMNC42NTk0NSAxNS43MzgzWk00LjY1OTQ1IDUuMjYxNzVMNC42NTgzMyA1LjI2NDc4QzQuNjU5MDQgNS4yNjI2NCA0LjY1OTQzIDUuMjYxNjkgNC42NTk0NSA1LjI2MTc1Wk00Ljg2MjE0IDUuMDU5MjdDNC44NjIxMiA1LjA1OTI2IDQuODYxODUgNS4wNTkzOCA0Ljg2MjE0IDUuMDU5MjdMNC44NjQ3OCA1LjA1ODMzQzQuODYzNDcgNS4wNTg3NyA0Ljg2MjYgNS4wNTkwOCA0Ljg2MjE0IDUuMDU5MjdaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIxLjAwIi8+PC9zdmc+",this.adchoiceIconSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcgMTIuNUMxMC4wMzc2IDEyLjUgMTIuNSAxMC4wMzc2IDEyLjUgN0MxMi41IDMuOTYyNDMgMTAuMDM3NiAxLjUgNyAxLjVDMy45NjI0MyAxLjUgMS41IDMuOTYyNDMgMS41IDdDMS41IDEwLjAzNzYgMy45NjI0MyAxMi41IDcgMTIuNVpNMTQgN0MxNCAxMC44NjYgMTAuODY2IDE0IDcgMTRDMy4xMzQwMSAxNCAwIDEwLjg2NiAwIDdDMCAzLjEzNDAxIDMuMTM0MDEgMCA3IDBDMTAuODY2IDAgMTQgMy4xMzQwMSAxNCA3WiIgZmlsbD0id2hpdGUiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcgMTFDNi41ODU3OSAxMSA2LjI1IDEwLjY2NDIgNi4yNSAxMC4yNVY2Ljc1QzYuMjUgNi4zMzU3OSA2LjU4NTc5IDYgNyA2QzcuNDE0MjEgNiA3Ljc1IDYuMzM1NzkgNy43NSA2Ljc1VjEwLjI1QzcuNzUgMTAuNjY0MiA3LjQxNDIxIDExIDcgMTFaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik02LjEwMDAyIDMuOUM2LjEwMDAyIDMuNDAyOTUgNi41MDI5NyAzIDcuMDAwMDIgM0M3LjQ5NzA4IDMgNy45MDAwMiAzLjQwMjk1IDcuOTAwMDIgMy45QzcuOTAwMDIgNC4zOTcwNiA3LjQ5NzA4IDQuOCA3LjAwMDAyIDQuOEM2LjUwMjk3IDQuOCA2LjEwMDAyIDQuMzk3MDYgNi4xMDAwMiAzLjlaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPgo=",this.adActionsEl=document.createElement("div"),this.adActionsEl.className="rb-adman-ad-actions",this.disclaimerWrapperEl=document.createElement("div"),this.disclaimerWrapperEl.className="disclaimer-wrapper",this.disclaimerEl=document.createElement("span"),this.disclaimerEl.className="disclaimer-text",this.remainTimeEl=document.createElement("span"),this.remainTimeEl.className="remain-time",this.adChoiceEl=document.createElement("span"),this.adChoiceEl.className="ad-choice",this.actionsWrapperEl=document.createElement("div"),this.actionsWrapperEl.className="actions-wrapper",this.actionsHeaderEl=document.createElement("div"),this.actionsHeaderEl.className="actions-header",this.actionsHeaderText=document.createElement("span"),this.actionsHeaderText.className="actions-header-text",this.actionsHeaderButton=document.createElement("span"),this.actionsHeaderButton.className="actions-header-close",this.actionsAboutEl=document.createElement("div"),this.actionsAboutEl.className="actions-about",this.actionsAboutPictureEl=document.createElement("span"),this.actionsAboutPictureEl.className="actions-about-picture",this.actionsAboutTextEl=document.createElement("span"),this.actionsAboutTextEl.className="actions-about-text",this.actionsCopyEl=document.createElement("div"),this.actionsCopyEl.className="actions-copy",this.actionsCopyPictureEl=document.createElement("div"),this.actionsCopyPictureEl.className="actions-copy-picture",this.actionsCopyTextEl=document.createElement("div"),this.actionsCopyTextEl.className="actions-copy-text",this.infoWrapperEl=document.createElement("div"),this.infoWrapperEl.className="info-wrapper",this.infoOrdIdEl=document.createElement("div"),this.infoOrdIdEl.className="info-ord-id",this.infoOrdIdDescriptionEl=document.createElement("span"),this.infoOrdIdDescriptionEl.className="info-ord-id-description",this.infoOrdIdValueEl=document.createElement("span"),this.infoOrdIdValueEl.className="info-ord-id-value"}function o(){h.start();var l=e.getSettings(),c=e.getAd();if(typeof c=="object"&&typeof c.adActionsConfig=="object"&&c.adActionsConfig.members===null||typeof l=="object"&&typeof l.adActionsConfig=="object"&&l.adActionsConfig.members===null)return void d();var v={originalBannerId:c.bannerID,cipherBannerID:c.cipherBannerID?c.cipherBannerID:null,bannerOrdId:c.ordID||null,advData:c.advData||null},b=AdmanHTML.Utils.adActionsConfigPrepare(c?c.adActionsConfig:null,l?l.adActionsConfig:null);f.build(b,v),f.init(),f.addListeners(),f.appendTo(t.wrapper),r=function(){f.destroy()}}function a(l,c){var v=Math.floor(c-l);v||(v="00"),f.updateRemainTime(v)}function d(){r&&r(),u&&typeof u=="object"&&typeof u.remove=="function"&&u.remove(),h.dispose()}if(!t.disclaimer)return{render:Function.prototype,onTimeRemained:Function.prototype,dispose:Function.prototype};var r,u,h=new AdmanHTML.AdRenderer(t,e);[{name:"Roboto",description:"cyrillic-ext",url:"https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2",format:"woff2",unicodeRange:"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F"},{name:"Roboto",description:"cyrillic",url:"https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2",format:"woff2",unicodeRange:"U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116"},{name:"Roboto",description:"latin-ext",url:"https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2",format:"woff2",unicodeRange:"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF"},{name:"Roboto",description:"latin",url:"https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2",format:"woff2",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"}].forEach(function(l){i(l.name,l.url,l.format,l.unicodeRange)}),n.prototype.preBuild=function(){this.actionsHeaderEl.appendChild(this.actionsHeaderText),this.actionsHeaderEl.appendChild(this.actionsHeaderButton),this.actionsAboutEl.appendChild(this.actionsAboutPictureEl),this.actionsAboutEl.appendChild(this.actionsAboutTextEl),this.actionsCopyEl.appendChild(this.actionsCopyPictureEl),this.actionsCopyEl.appendChild(this.actionsCopyTextEl),this.infoOrdIdEl.appendChild(this.infoOrdIdDescriptionEl),this.infoOrdIdEl.appendChild(this.infoOrdIdValueEl),this.infoWrapperEl.appendChild(this.infoOrdIdEl),this.actionsWrapperEl.appendChild(this.actionsHeaderEl),this.actionsWrapperEl.appendChild(this.actionsAboutEl),this.actionsWrapperEl.appendChild(this.actionsCopyEl),this.actionsWrapperEl.appendChild(this.infoWrapperEl),this.adActionsEl.appendChild(this.disclaimerWrapperEl),this.adActionsEl.appendChild(this.actionsWrapperEl)},n.prototype.build=function(l,c){this.config=l,this.data=c,this.config.members.forEach(function(v){switch(v){case"disclaimer":this.disclaimerWrapperEl.appendChild(this.disclaimerEl);break;case"timer":this.disclaimerWrapperEl.appendChild(this.remainTimeEl);break;case"adchoice":this.disclaimerWrapperEl.appendChild(this.adChoiceEl)}}.bind(this))},n.prototype.init=function(){this._fillData(),this._setInitialStyles(),this._setSpecificStyles()},n.prototype._setSpecificStyles=function(){var l={};this.config.positionX==="left"&&(l.left=this.config.offsetX),this.config.positionX==="right"&&(l.right=this.config.offsetX),this.config.positionY==="top"&&(l.top=this.config.offsetY),this.config.positionY==="bottom"&&(l.bottom=this.config.offsetY),this._setStyles(this.adActionsEl,l),this.data.bannerOrdId||(this._setStyles(this.infoWrapperEl,{display:"none"}),this._setStyles(this.actionsCopyEl,{display:"none"}))},n.prototype._fillData=function(){this.disclaimerEl.innerText=this.config.disclaimerText,this.actionsHeaderText.innerText=this.config.headerText,this.actionsAboutTextEl.innerText=this.config.aboutText,this.actionsCopyTextEl.innerText=this.data.bannerOrdId?"Скопировать ERID":this.config.copyText,this.infoOrdIdDescriptionEl.innerText=this.infoOrdIdDescription,this.infoOrdIdValueEl.innerText=this.data.bannerOrdId||this.data.originalBannerId||this.data.cipherBannerID},n.prototype._setInitialStyles=function(){this._setStyles(this.disclaimerWrapperEl,{display:"flex","flex-direction":"row","align-items":"center",gap:"8px"}),this._setStyles(this.adChoiceEl,{"background-image":'url("'+this.adchoiceIconSrc+'")',"background-repeat":"no-repeat",width:"14px",height:"14px","background-position":"center"}),this._setStyles(this.actionsHeaderButton,{"background-image":'url("'+this.closeIconSrc+'")',"background-repeat":"no-repeat",width:"10px","background-position":"center"}),this._setStyles(this.actionsAboutPictureEl,{"background-image":'url("'+this.aboutIconSrc+'")',"background-repeat":"no-repeat",width:"17px",height:"17px","background-position":"center"}),this._setStyles(this.actionsCopyPictureEl,{"background-image":'url("'+this.copyIconSrc+'")',"background-repeat":"no-repeat",width:"17px",height:"17px","background-position":"center"}),this._setStyles(this.actionsCopyTextEl,{"margin-left":"8px"}),this._setStyles(this.actionsAboutTextEl,{"margin-left":"8px"}),this._setStyles(this.actionsHeaderEl,{width:"100%",display:"flex"}),this._setStyles(this.infoWrapperEl,{width:"100%",display:"flex",cursor:"initial"}),this._setStyles(this.infoOrdIdValueEl,{"margin-left":"9px",color:"rgba(255, 255, 255, 0.8)"}),this._setStyles(this.infoOrdIdDescriptionEl,{width:"17px","text-align":"center"}),this._setStyles(this.actionsAboutEl,{width:"100%",display:"flex",color:"rgba(255, 255, 255, 0.72)","border-radius":"8px","margin-top":"8px"}),this._setStyles(this.actionsCopyEl,{width:"100%",display:"flex",color:"rgba(255, 255, 255, 0.72)","border-radius":"8px","margin-top":"8px"}),this._setStyles(this.infoOrdIdEl,{width:"100%",display:"flex",color:"rgba(255, 255, 255, 0.72)","border-radius":"8px"}),this._setStyles(this.actionsHeaderEl,{width:"100%",display:"flex","flex-direction":"row","justify-content":"space-between"}),this._setStyles(this.actionsWrapperEl,{"flex-direction":"column","align-items":"flex-start",display:"none",width:this.actionsWrapperWidth+"px"}),this._setStyles(this.adActionsEl,{"border-radius":"5px",color:"white",cursor:"pointer",display:"flex","flex-direction":"row","align-items":"center",padding:"3px 6px",gap:"2px",position:"absolute","font-family":"Roboto","font-style":"normal","font-weight":"300","font-size":"12px","line-height":"15px"});var l=".rb-adman-ad-actions { background-color: rgba(17,17,17,0.4)!important} .rb-adman-ad-actions:hover{ background-color: rgba(17,17,17,0.8)!important} div.videoplayer_ads_skip {border-radius: 5px !important; background: rgba(17, 17, 17, 0.4) !important; color: white !important; cursor: pointer !important; padding: 5px 8px 5px 8px !important; font-weight: 300 !important; font-size: 12px !important; line-height: 15px !important; right: 6px !important; top: 6px !important;}";u=document.createElement("style"),u.styleSheet?u.styleSheet.cssText=l:u.appendChild(document.createTextNode(l)),this.adActionsEl.appendChild(u),this._setStyles(this.adChoiceEl,{width:"14px",height:"14px"})},n.prototype._setStyles=function(l,c){AdmanHTML.Utils.setStyle(l,c)},n.prototype.updateRemainTime=function(l){var c=Math.trunc(l/60),v=l-60*c;c=c.toString(),v=v.toString(),v.length===1&&(v="0"+v),this.remainTimeEl.innerText=c+":"+v},n.prototype.addListeners=function(){this.actionsAboutEl.addEventListener("mouseover",this._setHoverActionsAboutListener.bind(this,!0)),this.actionsAboutEl.addEventListener("mouseout",this._setHoverActionsAboutListener.bind(this,!1)),this.actionsAboutEl.addEventListener("click",this._redirToAboutAdvPageListener.bind(this)),this.actionsCopyEl.addEventListener("mouseover",this._setHoverActionsCopyListener.bind(this,!0)),this.actionsCopyEl.addEventListener("mouseout",this._setHoverActionsCopyListener.bind(this,!1)),this.actionsCopyEl.addEventListener("click",this._copyBannerOrdIdToClipboardListener.bind(this)),this.actionsHeaderButton.addEventListener("mouseover",this._setHoverActionsHeaderButton.bind(this,!0)),this.actionsHeaderButton.addEventListener("mouseout",this._setHoverActionsHeaderButton.bind(this,!1)),this.adActionsEl.addEventListener("click",this._clickListener.bind(this)),this.actionsHeaderButton.addEventListener("click",this._actionsHeaderButtonListener.bind(this))},n.prototype._redirToAboutAdvPageListener=function(l){l.stopPropagation();var c=this.data.advData?"data":"id",v=this.data.advData?this.data.advData:this.data.cipherBannerID;window.open(this._advPageUrlPart+c+"="+v,"_blank")},n.prototype._copyToClipboard=function(l){var c=document.createElement("textarea");document.body.appendChild(c),c.value=l,c.select(),document.execCommand("copy"),document.body.removeChild(c)},n.prototype._copyBannerOrdIdToClipboardListener=function(l){l.stopPropagation(),this._copyToClipboard(this.data.bannerOrdId)},n.prototype._setAdActionsHoverListener=function(l){l?AdmanHTML.Utils.setStyle(this.adActionsEl,{background:"rgba(17,17,17,.72)"}):AdmanHTML.Utils.setStyle(this.adActionsEl,{background:"rgba(17,17,17,.8)"})},n.prototype._actionsHeaderButtonListener=function(l){l.stopPropagation(),this._setStyles(this.actionsWrapperEl,{display:"none"}),this._setStyles(this.disclaimerWrapperEl,{display:"flex"}),this.isSmall&&this._setStyles(this.adActionsEl,{left:this.config.positionX==="left"?this.config.offsetX:"unset",right:this.config.positionX==="right"?this.config.offsetX:"unset",bottom:this.config.positionY==="bottom"?this.config.offsetY:"unset",top:this.config.positionY==="top"?this.config.offsetY:"unset","font-size":"12px",padding:"5px 6px 5px 8px"}),this.isOpened=!1},n.prototype._clickListener=function(l){l.stopPropagation(),!this.isOpened&&(this.data.advData||this.data.cipherBannerID||this.data.bannerOrdId)&&(this._setStyles(this.actionsWrapperEl,{display:"flex"}),this._setStyles(this.disclaimerWrapperEl,{display:"none"}),this.isSmall&&(this._setStyles(this.adActionsEl,{left:"2px",right:"2px"}),this.config.positionY==="top"?this._setStyles(this.adActionsEl,{top:this.config.offsetY}):this._setStyles(this.adActionsEl,{bottom:this.config.offsetY}),this._setStyles(this.adActionsEl,{"font-size":"12px",padding:"4px 6px 4px 9px"})),this.isOpened=!0)},n.prototype._setHoverActionsCopyListener=function(l){l?(this._setStyles(this.actionsCopyPictureEl,{"background-image":'url("'+this.copyIconActiveSrc+'")'}),this._setStyles(this.actionsCopyEl,{color:"rgba(255, 255, 255, 0.8)"})):(this._setStyles(this.actionsCopyPictureEl,{"background-image":'url("'+this.copyIconSrc+'")'}),this._setStyles(this.actionsCopyEl,{color:"rgba(255, 255, 255, 0.72)"}))},n.prototype._setHoverActionsAboutListener=function(l){l?(this._setStyles(this.actionsAboutPictureEl,{"background-image":'url("'+this.aboutIconActiveSrc+'")'}),this._setStyles(this.actionsAboutEl,{color:"rgba(255, 255, 255, 0.8)"})):(this._setStyles(this.actionsAboutPictureEl,{"background-image":'url("'+this.aboutIconSrc+'")'}),this._setStyles(this.actionsAboutEl,{color:"rgba(255, 255, 255, 0.72)"}))},n.prototype._setHoverActionsHeaderButton=function(l){l?this._setStyles(this.actionsHeaderButton,{"background-image":'url("'+this.closeIconActiveSrc+'")'}):this._setStyles(this.actionsHeaderButton,{"background-image":'url("'+this.closeIconSrc+'")'})},n.prototype.appendTo=function(l){if(l){try{var c=window.getComputedStyle(l).width,v=this.actionsWrapperWidth+parseInt(this.adActionsEl.style.paddingLeft)+parseInt(this.adActionsEl.style.paddingRight);(c?parseInt(c):v+1)<=v&&(this.isSmall=!0,this._setStyles(this.adActionsEl,{"border-radius":"6px","font-size":"12px",padding:"5px 6px 5px 8px"}))}catch(b){console.warn("Failed detect small wrapper size",b)}this.appendedTo=l,l.appendChild(this.adActionsEl)}},n.prototype.getEl=function(){return this.adActionsEl},n.prototype.destroy=function(){this.removeListeners(),this.removeFromDOM()},n.prototype.removeFromDOM=function(){this.adActionsEl.remove()},n.prototype.removeListeners=function(){this.actionsAboutEl.removeEventListener("mouseover",this._setHoverActionsAboutListener.bind(this,!0)),this.actionsAboutEl.removeEventListener("mouseout",this._setHoverActionsAboutListener.bind(this,!1)),this.actionsCopyEl.removeEventListener("mouseover",this._setHoverActionsCopyListener.bind(this,!0)),this.actionsCopyEl.removeEventListener("mouseout",this._setHoverActionsCopyListener.bind(this,!1)),this.actionsHeaderButton.removeEventListener("mouseover",this._setHoverActionsHeaderButton.bind(this,!0)),this.actionsHeaderButton.removeEventListener("mouseout",this._setHoverActionsHeaderButton.bind(this,!1)),this.adActionsEl.removeEventListener("mouseover",this._setAdActionsHoverListener.bind(this,!0)),this.adActionsEl.removeEventListener("mouseout",this._setAdActionsHoverListener.bind(this,!1)),this.adActionsEl.removeEventListener("click",this._clickListener.bind(this)),this.actionsHeaderButton.removeEventListener("click",this._actionsHeaderButtonListener.bind(this))};var f=new n;return f.preBuild(),{render:o,onTimeRemained:a,dispose:d}},AdmanHTML.EmptyAdRenderer=function(t,e){"use strict";function i(){e.log("sectionEmpty"),setTimeout(function(){t.cb("onCompleted")})}return{start:i}},AdmanHTML.HtmlAdRenderer=function(t,e){"use strict";function i(){M.start(),P=e.getAd(),N=P.duration,D=C(),D.width="100%",D.height="100%",D.setAttribute("style","display:block;width:100%;height:100%"),M.setView(D,{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"transparent"}),AdmanHTML.Utils.isElement(t.videoEl)&&t.videoEl.parentNode===M.mainEl.parentNode&&M.mainEl.parentNode.insertBefore(M.mainEl,t.videoEl.nextSibling),D.contentWindow||D.contentDocument?o():D.onload=function(Y){o()},m&&m.render(),I&&I.render()}function n(Y){Y.preventDefault(),Y.stopPropagation(),e.log("click"),t.cb("onClicked"),t.openPopup(P.urlToNavigateOnClick||P.trackingLink)}function o(){function Y(){var _e=D.contentWindow.document.body||D.contentDocument.body;_e&&_e.addEventListener("click",n,!0)}x=D.contentWindow?D.contentWindow.document:D.contentDocument,x.open(),V?(x.write('<!DOCTYPE html><html style="width: 100%; height: 100%"><head></head><body>'),x.write(P.src),x.write("</body></html>"),F=document.querySelector("div.videoplayer_controls"),F&&(J=F.style.display,F.style.display="none"),(Ee=document.querySelector("div.videoplayer_ads_skip"))&&(ee=Ee.style.display,Ee.style.display="none")):(x.write(P.src),e.log("render")),x.close(),U=AdmanHTML.Utils.getElementViewport(t.wrapper),U.addEventListener("message",l),P.openLinkInPopup&&(P.urlToNavigateOnClick||P.trackingLink)&&(D.contentWindow.document.body||D.contentDocument.body?Y():D.onload=Y),t.viewability.start(M.mainEl,e),u(),M.onStart()}function a(){k||(k=!0,Z+=Date.now()-ae,clearInterval(w),w=null,F?F.style.display=J:V&&c("pauseAd",[]),t.cb("onPaused"))}function d(){return P.creativeType==="video-motion"}function r(){k&&(k=!1,u(),t.cb("onPlayed"))}function u(){if(!w){if(V){if(!G)return;F?F.style.display="none":c("startAd",[])}w=setInterval(f,251),ae=Date.now(),k=!1}}function h(){de||t.cb("onCompleted")}function f(){Z+=Date.now()-ae,ae=Date.now(),M.onTimeRemained(Z/1e3,N),V?c("timeUpdateAd",[Z/1e3,N]):m.onTimeRemained(Z/1e3,N),Z>=1e3*N&&(clearInterval(w),w=null,h())}function l(Y){if(Y.source===D.contentWindow){if(V&&typeof Y.data=="object")return void v(Y.data);try{switch(JSON.parse(Y.data).type){case"trg:click":e.log("click"),t.cb("onClicked")}}catch(_e){}}}function c(Y,_e){if(typeof D=="object"&&typeof D.contentWindow=="object")try{var B=D.contentWindow.origin;D.contentWindow.postMessage({initiator:"render-runner",id:A,method:Y,args:_e},B)}catch(je){}}function v(Y){if(V&&typeof Y=="object"&&Y.initiator==="render-runner"&&Array.isArray(Y.args)&&Y.args[0]===A)switch(Y.event){case"AdStarted":G=!0,u();break;case"AdCanPlay":e.log("render");break;case"HeaderClick":e.log("click"),t.cb("onClicked",{type:"header"});break;case"ItemClick":e.log("card_"+Y.args[1]+"_click"),t.cb("onClicked",{type:"card",cardId:Y.args[1]});break;case"ItemShow":e.log("card_"+Y.args[1]+"_show");break;case"AdClickThru":e.log("click"),t.cb("onClicked",{type:"common"});break;case"AdError":t.cb("onError",Y.args[1]);break;case"ClosedByUser":e.log("closedByUser"),t.cb("onClosed"),t.cb("onSkipped"),de=null,g();break;case"UserAction":de=Date.now()}}function b(){F&&(F.style.display=J),Ee&&(Ee.style.display=ee)}function y(){w&&clearInterval(w),w=null,b(),U.removeEventListener("message",l)}function g(){y(),M.dispose(),m&&m.dispose(),I&&I.dispose()}function C(){var Y=document.createElement("iframe");return Y.scrolling="no",Y.marginWidth="0",Y.marginHeight="0",Y.frameBorder="0",Y.id="ad-frame-"+Math.round(1e5*Math.random()),Y.onclose=b,Y}var D,N,w,A,M=new AdmanHTML.AdRenderer(t,e),I=new AdmanHTML.CallToActionBtnRenderer(t,e),m=null,U=null,x=null,P=e.getAd(),k=!1,Z=0,ae=0,V=d(),G=!1,F=null,J="flex",Ee=null,ee="block",de=null;return V?A="b"+P.bannerID:m=new AdmanHTML.DisclaimerRenderer(t,e),M.onClick=function(){},{start:i,pause:a,resume:r,skip:M.skip,dispose:g}},AdmanHTML.ImgAdRenderer=function(t,e){"use strict";function i(){o.start(),o.registerTimer(),AdmanHTML.Utils.addCss(u,r);var f=e.getAd();o.setView(AdmanHTML.Utils.renderTemplate(h,f),{position:"absolute",display:"inline-block",width:"100%","max-width":f.width+"px",left:"50%",bottom:0,transform:"translate(-50%,0)","box-sizing":"border-box",overflow:"hidden","z-index":"999999","text-align":"center"});var l=e.getSettings(),c=o.mainEl.querySelector(".rb-adman_age_wrapper");if(l&&l.advertisment&&l.advertisment.image){var v=l.advertisment.image;AdmanHTML.StyleUtils.applyStyle(o.mainEl,v,"fontFace contentIndent hasBackground backgroundColor backgroundAlpha cornerRounding".split(" ")),AdmanHTML.StyleUtils.applyStyle(o.mainEl.querySelector(".rb-adman_image_wrapper"),v,"borderSize borderColor borderAlpha borderCornerRounding".split(" "));var b=l.advertisment.image.ageRestrictions;f.ageRestrictions&&b&&(AdmanHTML.StyleUtils.applyStyle(c,b),AdmanHTML.StyleUtils.applyStyle(c.querySelector(".rb-adman_age_content"),b,["textUnderline"]))}f.ageRestrictions||c.parentNode.removeChild(c),a.setWrapper(o.mainEl),a.start(),o.onStart(),d.render(),e.log("render")}function n(){o.dispose(),a.dispose(),d.dispose()}var o=new AdmanHTML.AdRenderer(t,e),a=new AdmanHTML.CloseBtnRenderer(t,e),d=new AdmanHTML.DisclaimerRenderer(t,e),r="rb-adman-img-style",u=".rb-adman_image_overlay {display:inline-block; overflow:hidden;vertical-align:middle;cursor:pointer;color:#fff}.rb-adman_image_overlay .rb-adman_image_wrapper {display:block;border:0px solid transparent;overflow:hidden;}.rb-adman_image_overlay .rb-adman_image_wrapper img {vertical-align:top;}.rb-adman_image_overlay .rb-adman_age_wrapper {display:block;position:absolute;top:0px;left:3px;border:0px solid transparent;margin-right:1px;text-decoration:none!important}",h='<div class="rb-adman_image_overlay"><div class="rb-adman_image_wrapper"><img src="{{src}}" width="100%" height="auto"></div><span class="rb-adman_age_wrapper"><span class="rb-adman_age_content">{{ageRestrictions}}</span></span></div>';return{start:i,pause:o.pause,resume:o.resume,skip:o.skip,dispose:n}},AdmanHTML.OpenLinkPopupRender=function(t){"use strict";function e(){for(var u=window;u.parent&&u.parent.frameElement;)u=u.parent;return u}function i(u){t.isPopupOpen=!0,t.pause(),d=n(u)}function n(u){d=r.createElement("div"),o(),d.classList.add("rb-adman-popup");var h=r.createElement("div");h.classList.add("rb-adman-popup-body"),d.appendChild(h);var f=r.createElement("div");f.classList.add("rb-adman-popup-closeButton");var l=d;a=function(){l.remove(),l=null,t.resume(!0),t.isPopupOpen=!1},f.onclick=a,h.appendChild(f);var c=r.createElement("iframe");c.classList.add("rb-adman-popup-frame"),c.setAttribute("src",u),h.appendChild(c),r.body.append(d)}function o(){var u=r.createElement("style");u.innerHTML=".rb-adman-popup{position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;flex-direction:row;align-items:center;justify-content:center;overflow:auto;padding: 7vh 0;box-sizing:border-box;background:rgba(0,0,0,.4);z-index: 1000000;}.rb-adman-popup-body{position:relative;max-width:630px;min-width:500px;width:50%;height:100%;z-index:20;border-radius:12px;background-color:#FFF;-webkit-box-shadow: 12px 12px 8px 0px rgba(34, 60, 80, 0.2);-moz-box-shadow: 12px 12px 8px 0px rgba(34, 60, 80, 0.2);box-shadow: 12px 12px 8px 0px rgba(34, 60, 80, 0.2);color: #FEFEFE}.rb-adman-popup-frame{width:100%;height:100%;overflow:hidden;border-radius: 12px;border:none;}.rb-adman-popup-closeButton{background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJ3aGl0ZSIgdmlld0JveD0iMCAwIDE3IDE3IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Im05LjIgOC41IDYuNjUgNi42NS0uNy43TDguNSA5LjIxbC02LjY1IDYuNjQtLjctLjdMNy43OSA4LjUgMS4xNSAxLjg1bC43LS43TDguNSA3Ljc5bDYuNjUtNi42NC43LjdMOS4yMSA4LjV6IiBzdHJva2U9Im5vbmUiLz48L3N2Zz4K);background-repeat:no-repeat;background-position:center;background-size:50%;position:absolute;top:0;right:-38px;width:28px;height:28px;border-radius:14px;padding: 4px;background-color:rgba(0,0,0,.35);background-color:#000;cursor:pointer;filter:opacity(35%);color:white;box-sizing:border-box;transition: transform .15s ease-in;}.rb-adman-popup-closeButton:hover{filter:opacity(55%);transform:scale(1.1) rotate(90deg);}",d.appendChild(u)}var a,d=null,r=e().document;return{open:i,close:a}},AdmanHTML.ResearchAdRenderer=function(t,e){"use strict";function i(A,M){var I=[];return A.forEach(function(m){m.name===M&&I.push(m)}),I}function n(A,M,I){return M<=A&&(!I||I>=A)}function o(){!y&&b&&(y=!0,e.log("playbackPaused"))}function a(){y&&b&&(y=!1,e.log("playbackResumed"))}function d(){b=!1,y=!1,v.stop()}function r(A){var M=!A;M!==g&&(g=M,e.log(M?"volumeOff":"volumeOn"))}function u(){b&&(D&&f(D,D),l&&N.forEach(function(A){A.completed||(A.completed=!0,!A.viewable&&AdmanHTML.Utils.loadImg(A.url))}),d())}function h(A){e.log(A?"fullscreenOn":"fullscreenOff")}function f(A,M){if(!isNaN(A)){b||(b=!0,v.start(t.playerEl,e,!0),e.log("playbackStarted")),A=Math.round(A);var I=C!==null?A-C:null;if(C=A,e.log("thresholdValue",A),!isNaN(M)&&isFinite(M)&&M>0&&(M=Math.round(M),D=M,e.log("thresholdPValue",Math.floor(A/M*100))),I<0&&e.log("rewind"),w.forEach(function(x){if(n(A,x.start,x.end)){var P=Math.floor((A-x.start)/x.rate);P>0&&x.last!==P&&(x.last=P,AdmanHTML.Utils.loadImg(x.url.replace("[CONTENTPLAYHEAD]",A)))}else x.last=null}),l!==!1&&I!==0){var m,U=I<0||I>1;N.forEach(function(x){if(n(A,x.start,x.end)&&!x.completed){m=m||v.getViewabilityState(),l=m.state==="DETERMINED";var P=m.percent>x.percent&&m.focus;x.duration=x.duration||0,x.lastViewable&&P&&!U?x.duration+=I:x.duration=0,x.lastViewable=P,x.duration>=x.value&&(x.completed=!0,x.viewable&&AdmanHTML.Utils.loadImg(x.url))}else x.duration=0,x.lastViewable=!1})}}}var l,c=e.getExtendedAdForApp().statistics,v=new AdmanHTML.Viewability,b=!1,y=!1,g=!1,C=null,D=null,N=i(c,"mrcValue"),w=i(c,"timerValue");return{pause:o,resume:a,setVolume:r,setPosition:f,setComplete:u,setFullscreen:h}},AdmanHTML.StatisticsAdRenderer=function(t,e){"use strict";function i(){e.log("playbackStarted"),AdmanHTML.Utils.setTimeout(function(){t.cb("onCompleted")})}return{start:i}},AdmanHTML.SwfAdRenderer=function(t,e){"use strict";function i(){o.start(),AdmanHTML.Utils.checkFlashAsync(function(a){a===AdmanHTML.Utils.FLASH_READY?(o.registerTimer(),o.setView(n(e.getAd().src,{width:"100%",height:"100%"},{}),{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"black"}),e.log("render"),o.onStart()):t.cb("onError")})}function n(a,d,r){var u,h,f=d||{},l=r||{};f.type="application/x-shockwave-flash",window.ActiveXObject?(f.classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",l.movie=a):f.data=a,h="<object";for(u in f)f.hasOwnProperty(u)&&(h+=" "+u+'="'+f[u]+'"');h+=">";for(u in l)l.hasOwnProperty(u)&&(h+='<param name="'+u+'" value="'+l[u]+'" />');return h+="</object>"}var o=new AdmanHTML.AdRenderer(t,e);return{start:i,skip:o.skip,dispose:o.dispose,createSwfObject:n,super:o}},AdmanHTML.TextAdRenderer=function(t,e){"use strict";function i(){o.start(),o.registerTimer(),AdmanHTML.Utils.addCss(u,r);var f=AdmanHTML.Utils.mixin({header:"",body:"",hyperlinkText:""},e.getAd());o.setView(AdmanHTML.Utils.renderTemplate(h,f),{position:"absolute",margin:"0 auto",left:0,right:0,bottom:0,"box-sizing":"border-box",overflow:"hidden"});var l=e.getSettings();if(l&&l.advertisment&&l.advertisment.text){var c=l.advertisment.text;AdmanHTML.StyleUtils.applyStyle(o.mainEl,c,"fontFace width height contentPadding hasBackground backgroundColor backgroundAlpha cornerRounding".split(" ")),AdmanHTML.StyleUtils.applyStyle(o.mainEl.querySelector(".rb-adman_header"),c,"headerColor headerSize headerUnderline headerBold headerIndent".split(" ")),AdmanHTML.StyleUtils.applyStyle(o.mainEl.querySelector(".rb-adman_header_text"),c,["headerUnderlineOnRollOver"]),AdmanHTML.StyleUtils.applyStyle(o.mainEl.querySelector(".rb-adman_body"),c,"bodyColor bodySize bodyUnderline bodyLeading bodyIndent bodyPaddingRight".split(" ")),AdmanHTML.StyleUtils.applyStyle(o.mainEl.querySelector(".rb-adman_link"),c,"hyperlinkColor hyperlinkSize hyperlinkUnderline hyperlinkIndent".split(" "));var v=l.advertisment.text.ageRestrictions,b=o.mainEl.querySelector(".rb-adman_age_wrapper");f.ageRestrictions?v&&(AdmanHTML.StyleUtils.applyStyle(b,v),AdmanHTML.StyleUtils.applyStyle(b.querySelector(".rb-adman_age_content"),v,["textUnderline"])):b.parentNode.removeChild(b);var y=o.mainEl.querySelector(".rb-adman_image_wrapper span");if(c.noImage)y.parentNode.removeChild(y);else if(c.contentPadding&&(y.style.marginRight=AdmanHTML.StyleUtils.getLength(c.contentPadding)),c.maxImageHeight||c.maxImageWidth){var g=f.width/f.height;y.style.width=AdmanHTML.StyleUtils.getLength(Math.round(c.maxImageWidth||c.maxImageHeight*g)),y.style.height=AdmanHTML.StyleUtils.getLength(Math.round(c.maxImageHeight||c.maxImageWidth/g))}}a.setWrapper(o.mainEl),a.start(),d.render(),e.log("render"),o.onStart()}function n(){o.dispose(),a.dispose(),d.dispose()}var o=new AdmanHTML.AdRenderer(t,e),a=new AdmanHTML.CloseBtnRenderer(t,e),d=new AdmanHTML.DisclaimerRenderer(t,e),r="rb-adman-text-style",u=".rb-adman_text_overlay {display:block; overflow:hidden;height:100%;cursor:pointer;color:#fff}.rb-adman_text_overlay .rb-adman_image_wrapper {display:block;float:left;position:relative;height:100%;vertical-align:middle}.rb-adman_text_overlay .rb-adman_image_wrapper span {display:inline-block;vertical-align:middle;background-size:contain;background-position:center}.rb-adman_text_overlay .rb-adman_text_wrapper {display:block;overflow:hidden;height:100%;vertical-align:top;line-height:1.2}.rb-adman_text_overlay .rb-adman_header {display:block;white-space:nowrap;margin-right:20px;overflow:hidden;text-overflow:ellipsis}.rb-adman_text_overlay .rb-adman_age_wrapper {display:inline-block; vertical-align:middle;border:0px solid transparent;margin-right:1px;text-decoration:none!important}.rb-adman_text_overlay .rb-adman_header_text {color:inherit;text-decoration:none;letter-spacing:normal;line-height:1.5;vertical-align:middle}.rb-adman_text_overlay .rb-adman_header_text:hover {color:inherit;text-decoration:underline}.rb-adman_text_overlay .rb-adman_body {padding:2px 0}.rb-adman_text_overlay .rb-adman_body, .rb-adman_link {display:block;text-decoration:none;padding-top:2px}",h='<div class="rb-adman_text_overlay"><div class="rb-adman_image_wrapper"><div style="display:table;height:100%;"><div style="display:table-cell;height:100%;vertical-align:middle"><span style="background-image: url({{src}});width:{{width}}px;height:{{height}}px"></span></div></div></div><div class="rb-adman_text_wrapper"><span class="rb-adman_header"><span class="rb-adman_age_wrapper"><span class="rb-adman_age_content">{{ageRestrictions}}</span></span><span class="rb-adman_header_text">{{header}}</span></span><span class="rb-adman_body">{{body}}</span><span class="rb-adman_link">{{hyperlinkText}}</span></div></div>';return{start:i,pause:o.pause,resume:o.resume,skip:o.skip,dispose:n}},AdmanHTML.VideoAdRenderer=function(t,e){"use strict";function i(){l.mainEl=t.videoEl,l.clickEl=t.clickEl||l.mainEl,b.forEach(function(w){l.mainEl.addEventListener(w,d)}),l.mainEl.parentNode?C={src:l.mainEl.src,time:l.mainEl.currentTime,muted:l.mainEl.muted}:l.setView(null,{position:"absolute",width:"100%",height:"100%",top:0}),l.mainEl.controls=t.browser.mobile,l.mainEl.src=e.getAd().src,l.mainEl.load(),e.log("render"),u(0),h=l.mainEl.play(),h&&h.then&&h.then(r,function(){l.mainEl.muted=!0,h=l.mainEl.play(),h.then(r,function(){})}),l.start(),c.render(),v.render()}function n(w){return w.indexOf("videolink.mycdn.me")!==-1}function o(){c.dispose(),v.dispose(),l.dispose(),b.forEach(function(w){l.mainEl.removeEventListener(w,d)}),C.src?(l.mainEl.src=C.src,l.mainEl.load(),l.mainEl.play(),u(C.time)):(l.mainEl.src="",l.mainEl.removeAttribute&&l.mainEl.removeAttribute("src"))}function a(w){if(w.indexOf("mradx")!==-1)return"rb";if(w.indexOf("videolink.mycdn.me")!==-1)return"ev";var A=new URL(w);return"evcdn:"+("hostname"in A?A.hostname:"")}function d(w){switch(w.type){case"loadstart":f=Date.now();break;case"loadeddata":D||(D=!0,N=Date.now()-f,t.stats.logMessage("firstLoadedData",N,{banner_id:g.bannerID,duration:Math.round(l.mainEl.duration),geo:g.geo!=="undefined"?g.geo:void 0,one_video_src:n(l.mainEl.src),slot:"slotId"in g?g.slotId:"no_slot_id",video_source:a(l.mainEl.src),resolution:("width"in g?g.width:"no_ad_width")+"x"+("height"in g?g.height:"no_ad_height"),label:"experimentLabel"in g?g.experimentLabel:""}));break;case"loadedmetadata":t.stats.metrics("ready"),t.stats.metrics("creative_type","video"),c.onTimeRemained(l.mainEl.currentTime,l.mainEl.duration);break;case"playing":h||r();break;case"play":t.cb("onPlayed");break;case"pause":t.cb("onPaused");break;case"timeupdate":l.onTimeRemained(l.mainEl.currentTime,l.mainEl.duration),c.onTimeRemained(l.mainEl.currentTime,l.mainEl.duration);break;case"ended":t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",t.cb("onCompleted"),t.stats.metrics("completed");break;case"error":var A=w.target&&typeof w.target=="object"&&w.target.error&&typeof w.target.error=="object"&&w.target.error.code?w.target.error.code:"unknown_code",M="video_el_err_code:"+A;t.stats.logError(M),t.stats.metrics("media_error_code",A),t.cb("onError")}}function r(){if(!y){y=!0;var w=AdmanHTML.Utils.isElement(l.mainEl)?l.mainEl:l.wrapperEl;t.viewability.start(w,e),l.onStart({muted:l.mainEl.muted})}}function u(w){if(l.mainEl)try{l.mainEl.currentTime=w}catch(A){}}var h,f,l=new AdmanHTML.AdRenderer(t,e),c=new AdmanHTML.DisclaimerRenderer(t,e),v=new AdmanHTML.CallToActionBtnRenderer(t,e),b=["loadstart","loadeddata","loadedmetadata","error","pause","play","playing","timeupdate","ended"],y=!1,g=e.getAd(),C={},D=!1,N=null;return{start:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="play",i(),t.stats.metrics("playing")},skip:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",t.stats.metrics("skipped"),l.skip.apply(t,arguments)},dispose:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",o()},pause:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",l.mainEl.pause()},resume:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="play",l.mainEl.play()},setVolume:function(w){var A=l.mainEl.muted?0:l.mainEl.volume;w>0&&l.mainEl.muted&&(l.mainEl.muted=!1),w===0&&(l.mainEl.muted=!0),l.mainEl.volume=w,(A===0&&w>0||A>0&&w===0)&&e.log(w?"volumeOn":"volumeOff")}}},AdmanHTML.VpaidJsAdRenderer=function(t,e){"use strict";function i(){var k;if(!u)return M.duration;try{k=u.callGet("adDuration"),k===void 0&&(k=M.duration)}catch(Z){k=M.duration}return k}function n(){if(w.start(),A.render(),AdmanHTML.Utils.isElement(t.videoEl)){var k=AdmanHTML.Utils.getElementViewport;k(t.videoEl)===k(w.wrapperEl)&&(t.videoEl.parentNode?(f=t.videoEl.parentNode,l=t.videoEl.nextSibling):h=!0,w.wrapperEl.insertBefore(t.videoEl,w.wrapperEl.childNodes[0]),AdmanHTML.Utils.mixin(t.videoEl.style,{position:"absolute",width:"100%",height:"100%",top:0,display:"block"}))}var Z=e.getSettings();Z&&(Z.loadTimeout&&(I=Z.loadTimeout),Z.startTimeout&&(m=Z.startTimeout)),AdmanHTML.Utils.isNRVpaid(M.src)&&typeof M.timeoutsFactor=="number"&&M.timeoutsFactor>1&&(I*=M.timeoutsFactor,m*=M.timeoutsFactor),t.cb("onStarted",[e.sectionType,e.getAdForApp()||{}]),a(I,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:LoadInterface"),u.urlToNavigateOnClick=e.getAd().urlToNavigateOnClick,w.setView(u.load(M.src,t.config.vpaidHtmlInterface),{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"transparent"}),e.log("render")}function o(){h&&t.videoEl.parentNode?t.videoEl.parentNode.removeChild(t.videoEl):f&&f.insertBefore(t.videoEl,l&&l.parentNode?l:null),d(),u.destroy(),A.dispose(),w.dispose()}function a(k,Z){d(),C=Z,v=setTimeout(r,k)}function d(){clearTimeout(v)}function r(){g=!0,d(),e.log("error"),C&&t.stats.logError(C,{bannerID:M.bannerID,isNRVpaid:AdmanHTML.Utils.isNRVpaid(M.src)}),t.cb("onError",{force:!0,message:C})}var u,h,f,l,c,v,b,y,g,C,D,N,w=new AdmanHTML.AdRenderer(t,e),A=new AdmanHTML.DisclaimerRenderer(t,e),M=e.getAd(),I=500,m=1e3;w.onResize=function(k,Z){u&&u.call("resizeAd",[k,Z,"normal"])},w.onClick=function(){};var U=function(k,Z){if(!g){var ae,V;switch(k){case"loaded":a(I,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:LoadJs");break;case"vpaidloaded":d();break;case"inited":u.call("handshakeVersion",["2.0"])?(a(m,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:InitAd"),u.call("initAd",[w.mainEl.offsetWidth,w.mainEl.offsetHeight,"normal",M.bitrate,{AdParameters:M.params}])):t.cb("onError");break;case"AdStarted":d(),y=u.callGet("adVolume"),b===void 0||u.autoMuted||u.callSet("adVolume",b),e.log("playbackStarted"),t.viewability.start(w.mainEl,e),t.cb("onVPAIDStarted"),t.stats.metrics("playing");break;case"AdLoaded":a(m,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:StartAd"),u.call("startAd"),t.stats.metrics("ready"),t.stats.metrics("creative_type","vpaid");break;case"AdRemainingTimeChange":ae=i(),V=u.callGet("adRemainingTime"),ae>0&&V>=0?(w.onTimeRemained(ae-V,ae),A.onTimeRemained(ae-V,ae)):t.cb("onDurationChanged",[{remained:V,duration:ae}]);break;case"AdVolumeChange":var G=u.callGet("adVolume");(y===0&&G>0||y>0&&G===0)&&e.log(G?"volumeOn":"volumeOff"),y=G;break;case"AdVideoComplete":t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",ae=i(),w.onTimeRemained(ae,ae);break;case"AdStopped":case"AdSkipped":D||(D=!0,setTimeout(function(){c?c():t.cb("onCompleted")})),t.stats.metrics(k==="AdStopped"?"completed":"skipped");break;case"AdClickThru":Z.url&&Z.playerHandles&&window.open(Z.url,"_blank"),e.log("click"),t.cb("onClicked");break;case"AdError":t.stats.logError("EXTERNAL_JS_ADVERTISMENT_ERROR:"+(Z&&Z.message||"")),t.stats.metrics("vpaid_error_message",Z&&Z.message||"vpaid script err"),t.cb("onError");break;case"AdPaused":N||(N=!0,t.cb("onPaused"));break;case"AdPlaying":N&&(N=!1,t.cb("onPlayed"));break;case"AdUserClose":e.log("closedByUser");break;case"video:pause":N||u&&u.call("pauseAd");break;case"video:play":N&&u&&u.call("resumeAd")}}},x=t.wrapper.ownerDocument,P=x.defaultView||x.parentWindow;return u=new AdmanHTML.VpaidLoader(t.videoEl,P),u.onVpaidEvent(U),{start:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="play",n()},dispose:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",o()},pause:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",u&&u.call("pauseAd")},resume:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="play",u&&u.call("resumeAd")},setVolume:function(k){u&&u.callSet("adVolume",k),b=k},skip:function(k){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",c=k;try{u&&u.call("skipAd")}catch(Z){}t.stats.metrics("skipped")}}},AdmanHTML.VpaidSwfAdRenderer=function(t,e){"use strict";function i(){var A;if(!u)return C.duration;try{A=u.callGet("adDuration")||C.duration}catch(M){A=C.duration}return A}function n(){g.start();var A=e.getSettings();A&&(A.loadTimeout&&(N=A.loadTimeout),A.startTimeout&&(w=A.startTimeout)),AdmanHTML.Utils.checkFlashAsync(function(M){if(M===AdmanHTML.Utils.FLASH_READY){t.cb("onStarted",[e.sectionType,e.getAdForApp()||{}]),a(N);var I="vpaidSwfUrl="+encodeURIComponent(C.src)+"&proxyMethodName="+D;g.setView(b.createSwfObject(t.config.vpaidJsInterface,{width:"100%",height:"100%"},{flashvars:I,allowScriptAccess:"always",wmode:"opaque"}),{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"black"})}else t.cb("onError")}),y.render(),e.log("render")}function o(){d(),g.dispose(),y.dispose(),window[D]=null}function a(A){d(),f=setTimeout(r,A)}function d(){clearTimeout(f)}function r(){v=!0,d(),e.log("error"),t.cb("onError")}var u,h,f,l,c,v,b=new AdmanHTML.SwfAdRenderer(t,e),y=new AdmanHTML.DisclaimerRenderer(t,e),g=b.super,C=e.getAd(),D="vpaidProxyMethod"+Date.now(),N=500,w=1e3;return g.onResize=function(A,M){u&&u.call("resizeAd",[A,M,"normal"])},g.onClick=function(){},window[D]=function(A,M){if(!v){var I;switch(A){case"loaded":a(N);break;case"vpaidloaded":d();break;case"inited":u=g.mainEl.getElementsByTagName("object")[0],u.call("handshakeVersion",["2.0"])?(a(w),u.call("initAd",[g.mainEl.offsetWidth,g.mainEl.offsetHeight,"normal",C.bitrate,C.params,""])):t.cb("onError");break;case"AdStarted":d(),c=u.callGet("adVolume"),l!==void 0&&u.callSet("adVolume",l),e.log("playbackStarted"),t.viewability.start(g.mainEl,e),t.cb("onVPAIDStarted");break;case"AdLoaded":a(w),u.call("startAd");break;case"AdRemainingTimeChange":I=i(),g.onTimeRemained(I-u.callGet("adRemainingTime"),I),y.onTimeRemained(I-u.callGet("adRemainingTime"),I);break;case"AdVolumeChange":var m=u.callGet("adVolume");(c===0&&m>0||c>0&&m===0)&&e.log(m?"volumeOn":"volumeOff"),c=m;break;case"AdVideoComplete":I=i(),g.onTimeRemained(I,I);break;case"AdStopped":case"AdSkipped":setTimeout(function(){h?h():t.cb("onCompleted")});break;case"AdClickThru":e.log("click"),t.cb("onClicked");break;case"AdError":t.stats.logError("EXTERNAL_SWF_ADVERTISMENT_ERROR:"+(M&&M.message||"")),t.cb("onError");break;case"AdPaused":t.cb("onPaused");break;case"AdPlaying":t.cb("onPlayed");break;case"AdUserClose":e.log("closedByUser")}}},{start:n,dispose:o,pause:function(){u&&u.call("pauseAd")},resume:function(){u&&u.call("resumeAd")},setVolume:function(A){u&&u.callSet("adVolume",A),l=A},skip:function(A){h=A;try{u&&u.call("skipAd")}catch(M){}}}};window.admanAsyncLoader?setTimeout(admanAsyncLoader):window.admanAsyncInit&&setTimeout(admanAsyncInit)});var sf={};Uu(sf,{InterfaceLanguage:()=>wn.InterfaceLanguage,VERSION:()=>io,VKNumericLanguage:()=>wn.VKNumericLanguage,VideoFormat:()=>ir.VideoFormat,VideoQuality:()=>ir.VideoQuality,loadVKLangPack:()=>wn.loadVKLangPack,registerPlayerWebComponent:()=>af});module.exports=Fu(sf);var Oi="[",zi="[!",on="]",xi={};var rt=Symbol(),ii=Symbol("filename"),vs=Symbol("hmr"),gs="http://www.w3.org/1999/xhtml";var ys,bs,_s=(bs=(ys=globalThis.process)==null?void 0:ys.env)==null?void 0:bs.NODE_ENV,W=_s&&!_s.toLowerCase().startsWith("prod");var ni=Array.isArray,As=Array.prototype.indexOf,hr=Array.from,vr=Object.keys,pt=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyDescriptors,_r=Object.prototype,xs=Array.prototype,rn=Object.getPrototypeOf,yr=Object.isExtensible;var vt=()=>{};function an(t){for(var e=0;e<t.length;e++)t[e]()}var Pt=Symbol("$state"),Ln=Symbol("legacy props"),Es=Symbol(""),po=Symbol("proxy path");var kn=3,oi=8;function fo(t){return t===this.v}function sn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ts(t,e){return t!==e}function ln(t){return!sn(t,this.v)}function Ms(){if(W){let t=new Error(`derived_references_self
|
|
6
|
+
"use strict";var rc=Object.create;var Bn=Object.defineProperty,oc=Object.defineProperties,ac=Object.getOwnPropertyDescriptor,sc=Object.getOwnPropertyDescriptors,lc=Object.getOwnPropertyNames,zs=Object.getOwnPropertySymbols,dc=Object.getPrototypeOf,Us=Object.prototype.hasOwnProperty,uc=Object.prototype.propertyIsEnumerable;var Fs=t=>{throw TypeError(t)};var ko=(t,e,i)=>e in t?Bn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ke=(t,e)=>{for(var i in e||(e={}))Us.call(e,i)&&ko(t,i,e[i]);if(zs)for(var i of zs(e))uc.call(e,i)&&ko(t,i,e[i]);return t},vt=(t,e)=>oc(t,sc(e));var cc=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),fc=(t,e)=>{for(var i in e)Bn(t,i,{get:e[i],enumerable:!0})},Hs=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of lc(e))!Us.call(t,r)&&r!==i&&Bn(t,r,{get:()=>e[r],enumerable:!(n=ac(e,r))||n.enumerable});return t};var pc=(t,e,i)=>(i=t!=null?rc(dc(t)):{},Hs(e||!t||!t.__esModule?Bn(i,"default",{value:t,enumerable:!0}):i,t)),mc=t=>Hs(Bn({},"__esModule",{value:!0}),t);var fi=(t,e,i)=>ko(t,typeof e!="symbol"?e+"":e,i),Bs=(t,e,i)=>e.has(t)||Fs("Cannot "+i);var Ht=(t,e,i)=>(Bs(t,e,"read from private field"),i?i.call(t):e.get(t)),Tr=(t,e,i)=>e.has(t)?Fs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Sr=(t,e,i,n)=>(Bs(t,e,"write to private field"),n?n.call(t,i):e.set(t,i),i);var Xt=(t,e,i)=>new Promise((n,r)=>{var o=c=>{try{a(i.next(c))}catch(m){r(m)}},s=c=>{try{a(i.throw(c))}catch(m){r(m)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((i=i.apply(t,e)).next())});var yd=cc(()=>{"use strict";AdmanHTML=function(){"use strict";function t(w){w&&typeof w=="string"&&new AdmanHTML.OpenLinkPopupRender(j).open(w)}function e(w){Be.initMode(w.slot?"slot":"json",{slot:w.slot,version:j.version}),j.slotId=w.slot,j.playerEl=w.playerEl,j.wrapper=w.wrapper,j.videoEl=w.videoEl,j.audioEl=w.audioEl,j.clickEl=w.clickEl,j.quality=parseInt(w.videoQuality||w.params&&w.params.videoQuality||360,10),j.browser=w.browser||{},j.config=w.config||{},j.pauseOnHide=w.pauseOnHide||!1,j.viewabilityValue=w.viewabilityValue||.5,j.viewabilityEl=w.viewabilityEl||j.videoEl,j.disclaimer=w.disclaimer!==!1,j.callToActionButton=w.callToActionButton!==!1,j.forcePreloadAdditionalData=!!w.forcePreloadAdditionalData,j.ctaStyles=w.ctaStyles,j.pause=f,j.resume=l,j.openPopup=t;var ee=AdmanHTML.Utils.getPageLocation(),de=AdmanHTML.Utils.getHostname(ee||""),We=AdmanHTML.Utils.isMobile(navigator.userAgent||navigator.vendor||window.opera);AdmanHTML.Utils.isElement(j.videoEl)&&We&&j.videoEl.setAttribute("playsinline",""),j.location={top:ee,topEncoded:encodeURIComponent(ee||""),hostname:de,hostnameEncoded:encodeURIComponent(de||"")},Be.rb(Be.code.ADMAN_SUCCESSFULLY_INITIALIZED),j.stats.metrics("initing"),I=w.midrollPointsP||null,je=!I&&w.midrollPoints?w.midrollPoints:null,j.config.vpaidJsInterface||(j.config.vpaidJsInterface=he),j.config.vpaidHtmlInterface||(j.config.vpaidHtmlInterface=Ae);var Ue="https://ad.mail.ru/vp/"+j.slotId+"?app_name=admanhtml&version="+this.getVersion();if(w.params&&w.params.constructor&&w.params.constructor===Object){var pt=[];"flash"in w.params||(w.params.flash=AdmanHTML.Utils.checkFlash()?1:0);for(var at in w.params)w.params.hasOwnProperty(at)&&pt.push(at+"="+w.params[at]);var yt=AdmanHTML.Utils.getUserIdQuery();yt&&pt.push(yt),pt.length&&(Ue+="&"+pt.join("&"))}if((j.slotId||w.json||w.adUrl)&&!j.browser.adBlock){var ct={},Ni=this;j.slotId?ct.url=Ue:w.adUrl?(w.adUrl.indexOf("ad.mail.ru/")!==-1&&(w.adUrl+=w.adUrl.indexOf("?")===-1?"?":"&",w.adUrl+="version="+this.getVersion()),ct.url=w.adUrl):ct.data=w.json,ie=new AdmanHTML.AdSlot(j,ct,function(){var Di=ie.getRootSettings()||{},Ri=Di.requestHostname;if(Ri&&!AdmanHTML.Utils.matchHostname(j.location.hostname,Ri,re))return j.stats.logError("HOSTNAME_MISMATCH:"+Ri+":"+j.location.topEncoded,{impressionID:Di.impressionID,padID:Di.padID,bannerIDs:Di.bannerIDs}),void(j.callbacks.onError&&j.callbacks.onError());j.location.hostname||j.stats.logError("HOSTNAME_EMPTY:"+Ri+":"+j.location.topEncoded),j.cb("onReady",[{settings:ie.settings}]);var Xi=1e6,Yi=[],Ze=[],Ge=w.params&&w.params.duration?parseInt(w.params.duration,10):Xi;Ge===0&&(Ge=Xi),je&&je.sort(AdmanHTML.Utils.numSorter),I&&I.sort(AdmanHTML.Utils.numSorter);var mt=ie.getSection("midroll")||[],wo=ie.getServices("midroll",function($t){return!$t.started()&&$t.isAfter()})||[];mt=mt.concat(wo),mt.forEach(function($t){var ft=$t.getAd();ft.point||ft.pointP||(ft.pointP=50)}),mt.sort(function($t,ft){var bn=$t.getAd(),en=ft.getAd();return bn.pointP&&en.pointP?bn.pointP-en.pointP:(bn.point||bn.pointP/100*Ge)-(en.point||en.pointP/100*Ge)}).forEach(function($t){if(!$t.isEmpty||!$t.isEmpty()){var ft=$t.getAd();je&&je.length?(ft.point=je.shift(),ft.pointP=null,Ze.push(ft.point),$t.addImmutableProperty("point",ft.point)):I&&I.length?(ft.pointP=I.shift(),ft.point=null,Yi.push(ft.pointP),$t.addImmutableProperty("pointP",ft.pointP)):je||I||(ft.point?($t.addImmutableProperty("point",ft.point),Ze.push(ft.point)):ft.pointP&&($t.addImmutableProperty("pointP",ft.pointP),Yi.push(ft.pointP)))}}),F=Yi.sort(AdmanHTML.Utils.numSorter),C=Ze.sort(AdmanHTML.Utils.numSorter);var yn=ie.getSection("research");yn&&yn.length>0&&(ae=yn[0]),j.pauseOnHide&&ce(Ni)})}else{Be.logError("Adman init failed");var ci=j.callbacks.onError;ci&&ci(),q=be=Y=null}}function i(w,ee){ee=ee||!1;var de;if(q&&(q.log("sectionShown"),q.disposed||(q.dispose(),q.disposed=!0,T(q,Y)),w&&q.log("closedByUser")),Y&&!Ce[Y]&&(Ce[Y]=Y!=="midroll",de=w?j.callbacks.onClosed:j.callbacks.onCompleted),Qe[Y]&&be&&(Qe[Y]=Qe[Y].concat(be.splice(0,be.length))),q=be=Y=null,s(),typeof ee=="object"&&ee.force===!0)return void((de=j.callbacks.onError)&&de(ee.message));de&&de()}function n(w){var ee=ie.getSettings(Y).maxBannersShow||0,de=ze[Y]||0,We=!ee||de<ee;if(q&&!q.disposed&&(q.complete&&q.log("playbackCompleted"),q.dispose(),q.disposed=!0,T(q,Y)),be&&be.length&&We)q=be.shift(),ze[Y]=de+(q.isEmpty()?0:1),q.reset(),q.started=!0,q.start();else{var Ue=ie.getNextAfterService(Y);Y!=="midroll"&&Ue&&We?Ue.start(function(){be=ie.getSection(Y),n()}):ie.getSettings(Y).loop&&Qe[Y]&&Qe[Y].length?(be=Qe[Y],Qe[Y]=[],n()):i(!1,w)}}function r(w){be||(Y=w||"preroll",ie.resetServices(Y),Ce[Y]=!1,be=ie.getSection(Y),w==="midroll"&&(be=c(be)),n(),Y&&(Qe[Y]=Qe[Y]||[]),q&&(q.log("sectionStarted"),j.debugMode&&console.log(Y,q.getAd(),q.getSettings(),be)),o(Y),j.stats.metrics("started"))}function o(w){(He=ie.getDebug(w))&&He.start()}function s(){He&&He.dispose(),He=null}function a(w,ee){function de(Ze,Ge){for(var mt=0;mt<Ze.length&&!(Math.abs(Ze[mt])>Ge);mt++);return mt>0?[Ze[mt-1]]:[]}function We(Ze){var Ge=Ze.getAd();return!(Ge.point&&C.indexOf(Ge.point)===-1||Ge.pointP&&F.indexOf(Ge.pointP)===-1)&&(Ge.point&&Ge.point<=Di||Ge.pointP&&Ge.pointP<=Ri)}function Ue(){K=F.reduce(function(Ze,Ge){var mt=Math.ceil(ee*Ge/100);Ze.indexOf(mt)===-1&&Ze.push(mt)},C).sort(AdmanHTML.Utils.numSorter)}function pt(Ze){return K.reduce(function(Ge,mt){return Ge===0&&mt>0&&mt-Ze>=0?mt-Ze:Ge},0)}if(!isNaN(w)&&!isNaN(ee)){var at=parseInt(w),yt=Math.floor(100*w/ee);_e=ee,le=F&&isFinite(yt)?de(F,yt):[],ge=C?de(C,at):[],le[0]&&ge[0]&&(Math.abs(le[0]*_e/100)>Math.abs(ge[0])?ge=[]:le=[]);var ct=typeof ie=="object"&&typeof ie.getSettings=="function"?ie.getSettings("midroll").midpointAllowableDelta:void 0;G=ct!=null?ct:G;var Ni=100*G/ee,ci=G!==0&&G<5?G:5,Di=at+ci,Ri=yt+ci/ee*100;if(ie.getServices("midroll",function(Ze){return!(!Ze.isAfter()||Ze.started()||!We(Ze))}).forEach(function(Ze){var Ge=at-Ze.getAd().point,mt=yt-Ze.getAd().pointP;Ge<G||mt<Ni||G===0?Ze.start():j.debugMode&&console.log("skip midroll fetch")}),le.length&&le[0]>0||ge.length&&ge[0]>0){var Xi=!1,Yi=ie.getSection("midroll");Yi&&Yi.forEach(function(Ze){var Ge=Ze.getAd();(Ge.pointP&&~le.indexOf(Ge.pointP)||Ge.point&&~ge.indexOf(Ge.point))&&(Xi=!0)}),Xi&&j.cb("adMidrollPoint",[w])}return j.forcePreloadAdditionalData?(Ue(),pt(w)):void 0}}function c(w){function ee(We,Ue){var pt=We.getAd(),at=Ue.getAd();return(pt.point||pt.pointP*_e/100)-(at.point||at.pointP*_e/100)}var de=[];return w&&w.forEach(function(We){var Ue=We.getAd();(Ue.pointP&&~le.indexOf(Ue.pointP)||Ue.point&&~ge.indexOf(Ue.point))&&de.push(We)}),C.forEach(function(We,Ue){~ge.indexOf(We)&&(C[Ue]=-C[Ue])}),F.forEach(function(We,Ue){~le.indexOf(We)&&(F[Ue]=-F[Ue])}),de.sort(ee),de}function m(){j.cb("onSkipped"),q&&(q.log("closedByUser"),q.skip(n))}function f(){q&&(q.log("playbackPaused"),q.pause())}function l(w){q&&(w||q.log("playbackResumed"),q.resume())}function u(w){w=w<0?0:w>1?1:w,q&&q.setVolume(w)}function v(){q&&q.log("fullscreenOn")}function h(){q&&q.log("fullscreenOff")}function _(){i()}function y(w,ee){j.callbacks[w]=ee}function $(w){var ee=[],de=ie.getSection(w||"preroll");return de&&de.forEach(function(We){We.isEmpty()||ee.push(We.getExtendedAdForApp())}),ee}function D(w){return ie.getAfterServices(w||"preroll")}function T(w,ee){w.isEmpty()||w.isStat()||Qe[ee]&&Qe[ee].push(w)}function b(w){return(w.right-w.left)*(w.bottom-w.top)}function x(w,ee){return{left:w.left+ee.left,right:w.right+ee.left,top:w.top+ee.top,bottom:w.bottom+ee.top}}function A(w){return w&&!isNaN(w)?w:null}function S(w,ee){var de=w.document,We=ee==="width"?"clientWidth":"clientHeight",Ue=ee==="width"?"innerWidth":"innerHeight",pt=w[Ue],at=de.body[We],yt=de.documentElement[We],ct=1/0;return ct=A(at)||ct,ct=A(yt)||ct,pt&&!isNaN(pt)&&(ct=Math.min(ct,pt)),ct}function L(w){return{width:S(w,"width"),height:S(w,"height")}}function k(w,ee){var de=L(ee);return{left:Math.max(0,w.left),right:Math.min(de.width,w.right),top:Math.max(0,w.top),bottom:Math.min(de.height,w.bottom)}}function E(w,ee){try{for(var de=w.getBoundingClientRect(),We=b(de),Ue=ee,pt=Ue.parent;Ue!==pt;){var at=Ue.frameElement.getBoundingClientRect();de=x(de,at);var yt=Math.max(at.left,de.left),ct=Math.min(at.right,de.right),Ni=Math.max(at.top,de.top),ci=Math.min(at.bottom,de.bottom);de.left=yt,de.right=ct<yt?yt:ct,de.top=Ni,de.bottom=ci<Ni?Ni:ci,Ue=Ue.parent}de=k(de,pt);var Di=b(de);return{left:de.left,right:de.right,top:de.top,bottom:de.bottom,percent:Di/We*100}}catch(Ri){return{left:0,right:0,top:0,bottom:0,percent:0}}}function M(){return window.hasOwnProperty("IntersectionObserver")}function g(w){try{if(w===w.top)return"ON_PAGE";for(var ee=w;ee!==ee.parent;){if(ee.document.domain!==ee.parent.document.domain)return"XD_FRAME";ee=ee.parent}return"S_FRAME"}catch(de){}return"XD_FRAME"}function R(w){return!M(w)&&g(w)!=="XD_FRAME"}function U(w,ee,de){Q(de,E(w,window).percent>=100*ee)}function O(w){return w.mozVisibilityState?"mozvisibilitychange":w.webkitVisibilityState?"webkitvisibilitychange":w.visibilityState?"visibilitychange":""}function P(w){Q(w,!0)}function z(w){Q(w,!1)}function Q(w,ee){var de=w.getPlayStatus();w.prevVisibility!==ee&&(w.prevVisibility=ee,de.curStatus!==void 0&&de.curStatus!==de.prevStatus&&(ee?w.resume():w.pause()))}function ce(w){var ee=w,de=j.viewabilityValue,We=j.viewabilityEl;if(We){if(M()){var Ue=new IntersectionObserver(function(yt){yt.forEach(function(ct){Q(ee,ct.intersectionRatio>=de)})},{threshold:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});Ue.observe(We)}else if(R){var pt=function(){U(We,de,ee)};window.addEventListener("resize",pt,!1),window.addEventListener("scroll",pt,!1)}}var at=(O(document),fe.hasFocus());setInterval(function(){var yt=fe.hasFocus();at!==yt&&(at=yt,at?P(ee):z(ee))},500)}function X(){return j.playStatus===void 0?{prevStatus:void 0,curStatus:void 0}:j.playStatus}var ie,Y,be,q,He,ae,_e,j={version:"2.2.57",debugMode:!0,callbacks:{},cb:function(w,ee){switch(w){case"onCompleted":q&&(q.complete=!0),n();break;case"onError":q&&(q.error=!0),n(ee);break;case"onClosed":i(!0);break;default:var de=j.callbacks[w];de&&de.apply(this,ee)}}},Se=window.location.protocol==="http:"?"http:":"https:",he=Se+"//ad.mail.ru/static/admanhtml/vpaid-js-interface.swf",Ae=Se+"//ad.mail.ru/static/rbadman-vpaid.html",Be=new AdmanHTML.Stats(j),ke=new AdmanHTML.Viewability,je=[],I=[],C=[],F=[],K=[],le=[],ge=[],ze={},Qe={},G=3,re=function(){for(var w=window,ee=frameElement;ee;){try{ee=w.parent.frameElement}catch(de){break}w=w.parent}return w}(),fe=re.document;j.stats=Be,j.viewability=ke,j.protocol=Se,j.stats.metrics();var Ce={};return{init:e,start:r,stop:_,pause:f,resume:l,setVolume:u,fullscreenOn:v,fullscreenOff:h,setFullscreen:function(w){w?v():h()},skip:m,destroy:_,getPlayStatus:X,getSlot:function(){return j.slotId},setSlot:function(w){j.slotId=w},getVersion:function(){return j.version},getBannersForSection:$,getServicesForSection:D,hasSection:function(w){return w=w||"preroll",!(!$(w).length&&!D(w).length)},setDebug:function(w){j.debugMode=w},setPosition:a,getUserIdQuery:AdmanHTML.Utils.getUserIdQuery,onReady:y.bind(this,"onReady"),onError:y.bind(this,"onError"),onStarted:y.bind(this,"onStarted"),onPaused:y.bind(this,"onPaused"),onPlayed:y.bind(this,"onPlayed"),onCompleted:y.bind(this,"onCompleted"),onClosed:y.bind(this,"onClosed"),onSkipped:y.bind(this,"onSkipped"),onClicked:y.bind(this,"onClicked"),onTimeRemained:y.bind(this,"onTimeRemained"),onDurationChanged:y.bind(this,"onDurationChanged"),adMidrollPoint:y.bind(this,"adMidrollPoint"),_onVPAIDStarted:y.bind(this,"onVPAIDStarted"),research:{pause:function(){ae&&ae.pause()},resume:function(){ae&&ae.resume()},complete:function(){ae&&ae.setComplete()},setVolume:function(w){ae&&ae.setVolume(w)},setFullscreen:function(w){ae&&ae.setFullscreen(w)},setPosition:function(w,ee){ae&&ae.setPosition(w,ee)}}}},AdmanHTML.Ad=function(t,e){"use strict";function i(b){b&&b.forEach(function(x){n(x.url,x.type,x)})}function n(b,x,A){var S,L,k,E;if(b){try{b=decodeURIComponent(b)}catch(P){}if(x==="playheadReachedValue")A.thresholdValue!==void 0||A.value!==void 0?(S=parseInt(A.thresholdValue||A.value,10),e.stats.push({name:"thresholdValue",value:S,type:"thresholdValue."+S,url:b})):A.thresholdPValue===void 0&&A.pvalue===void 0||(S=parseInt(A.thresholdPValue||A.pvalue,10),e.stats.push({name:"thresholdPValue",value:S,type:"thresholdPValue."+S,url:b}));else if(x==="playheadViewabilityValue"){var M=parseInt(A.viewablePercent,10),g=A.ovv===void 0&&A.mrc===void 0||!!A.ovv||!!A.mrc,R="";k=A.startTimer!==void 0?parseInt(A.startTimer,10):0,E=A.endTimer!==void 0?parseInt(A.endTimer,10):0,M=isNaN(M)?50:M,A.value!==void 0?(S=parseInt(A.value,10),L="ovvValue"):A.pvalue!==void 0?(S=parseInt(A.pvalue,10),L="ovvPValue"):A.duration!==void 0&&(S=parseInt(A.duration,10),L="mrcValue",g||(R=A.unload?"unload":"complete"));var U={name:L,value:S,url:b,percent:M,viewable:g,start:k,end:E,onevent:R};"target"in A&&(U.target=A.target),e.stats.push(U)}else if(x==="playheadTimerValue"){k=A.startTimer!==void 0?parseInt(A.startTimer,10):0,E=A.endTimer!==void 0?parseInt(A.endTimer,10):0;var O=A.rate!==void 0?parseInt(A.rate,10):1;e.stats.push({name:"timerValue",rate:O,url:b,start:k,end:E})}else e.stats.push({name:x,type:x,url:b})}}function r(b){e.click=b,e.ad&&(e.ad.urlToNavigateOnClick=b)}function o(b,x){e.extensions[b]=x}function s(b,x,A){!A&&b in e.immutables||(e.immutables[b]=x)}function a(b){e.settings=e.settings||{},AdmanHTML.Utils.deepExtend(e.settings,b)}function c(b){function x(E){var M=E.type||"";return!(~M.indexOf("video")&&M!=="video/mp4"||~M.indexOf("audio")&&M!=="audio/mp3"&&M!=="audio/mpeg")}function A(){t.stats.rb(t.stats.code.UNKNOWN_ADV_TYPE),t.stats.logError("UNKNOWN_ADV_TYPE")}if(e.ad=b,e.click&&(e.ad.urlToNavigateOnClick=e.click),AdmanHTML.Utils.mixin(e.ad,e.extensions),AdmanHTML.Utils.mixin(e.ad,e.immutables),e.ad.mediafiles&&e.ad.mediafiles.length){var S;e.ad.mediafiles.forEach(function(E){x(E)&&(!S||Math.abs(parseInt(E.height)-t.quality)<Math.abs(parseInt(S.height)-t.quality))&&(S=E)}),S&&AdmanHTML.Utils.mixin(e.ad,S)}delete e.ad.statistics,delete e.ad.mediafiles;var L,k;switch(e.ad.type){case"swf":case"application/x-shockwave-flash":if(k=e.ad.apiFramework||e.ad.api,t.browser.mobile||k&&k!=="VPAID")return A(),!1;L=k?new AdmanHTML.VpaidSwfAdRenderer(t,this):new AdmanHTML.SwfAdRenderer(t,this);break;case"javascript":case"application/javascript":if((k=e.ad.apiFramework||e.ad.api)&&k!=="VPAID")return A(),!1;L=new AdmanHTML.VpaidJsAdRenderer(t,this);break;case"video":case"video/mp4":L=new AdmanHTML.VideoAdRenderer(t,this);break;case"audio":case"audio/mp3":case"audio/mpeg":L=new AdmanHTML.AudioAdRenderer(t,this);break;case"image":case"image/bmp":case"image/gif":case"image/jpeg":case"image/png":L=new AdmanHTML.ImgAdRenderer(t,this);break;case"text":L=new AdmanHTML.TextAdRenderer(t,this);break;case"html":L=new AdmanHTML.HtmlAdRenderer(t,this);break;case"empty":L=new AdmanHTML.EmptyAdRenderer(t,this);break;case"statistics":L=new AdmanHTML.StatisticsAdRenderer(t,this);break;case"debugData":L=new AdmanHTML.DebugAdRenderer(t,this);break;case"research":L=new AdmanHTML.ResearchAdRenderer(t,this);break;case"video/x-flv":default:return A(),!1}return e.renderer=L,!0}function m(){return new AdmanHTML.Ad(t,JSON.parse(JSON.stringify(e)))}function f(){this.started&&(e.ad&&c.call(this,e.ad),this.disposed=!1,this.completed=!1,this.error=!1,this.started=!1),e.statsBackup?e.stats=e.statsBackup.slice():e.statsBackup=e.stats.slice()}function l(b,x,A){var S=b.url;S=S.replace("{requesthostname}",t.location.hostnameEncoded||""),AdmanHTML.Utils.loadImg(S);var L=x.indexOf(b);~L&&A&&x.splice(L,1)}function u(b,x){var A=x.indexOf(b);~A&&x.splice(A,1)}function v(b,x){function A(g){g=25*Math.floor(g/25);var R=T["thresholdPValue."+g];R&&(E=E.concat(R))}var S=e.stats.slice(0);if(Array.isArray(b)){var L;for(L=0;L<b.length&&!~S.findIndex(function(g){return g.name===b[L]});L++);b=b[L]||b.slice(-1)}if(!t.isPopupOpen||b!=="playbackPaused"&&b!=="playbackResumed"){var k=b+(x===void 0?"":"."+x),E=T[k]?T[k].slice(0):[];E.push(k),b==="thresholdPValue"&&A(x);var M=b==="thresholdPValue"||b==="thresholdValue"||b==="closedByUser";e.stats.forEach(function(g){(b==="thresholdPValue"&&g.name==="thresholdPValue"&&g.value<x||b==="thresholdValue"&&g.name==="thresholdValue"&&g.value<x)&&l(g,S,M),~E.indexOf(g.type)&&l(g,S,M)}),e.stats=S}}function h(b,x){function A(M,g){g[Math.ceil(M.percent/10)].duration>=1e3*M.value?M.viewable?l(M,L,!0):u(M,L):k++}function S(M){M.viewable||M.onevent===x&&l(M,L,!0)}var L=e.stats.slice(0),k=0,E=b&&b.length?A:S;return e.stats.forEach(function(M){M.name==="mrcValue"&&E(M,b)}),e.stats=L,k}function _(b,x){var A,S,L=e.stats.slice(0);e.stats.forEach(function(k){(k.name==="ovvValue"&&k.value<=b||k.name==="ovvPValue"&&k.value<=x)&&(A=A||t.viewability.getViewabilityState(),S=A.percent>k.percent&&A.focus,A.state!=="UNDETERMINED"&&(S&&k.viewable||!S&&!k.viewable)&&AdmanHTML.Utils.loadImg(k.url),u(k,L))}),e.stats=L}function y(b,x){e.renderer&&e.renderer[b]&&e.renderer[b](x)}function $(){var b={};return b=e.ad.type==="audio"||e.ad.type==="audio/mp3"||e.ad.type==="audio/mpeg"?{allowSeek:!1,allowSkip:!1,allowTrackChange:!1,allowVolumeChange:!1}:e.settings?{allowClose:!e.settings.hasOwnProperty("allowClose")||e.settings.allowClose,allowCloseDelay:e.settings.hasOwnProperty("allowCloseDelay")?e.settings.allowCloseDelay:0}:{allowClose:!0,allowCloseDelay:0},AdmanHTML.Utils.mixin(b,e.ad),b}function D(){var b=$();return b.statistics=e.stats.slice(0),b}e=e||{stats:[],extensions:{},immutables:{}};var T={closedByUser:["close","skipAd"],click:["addClick"],"thresholdPValue.25":["firstQuartile"],"thresholdPValue.50":["secondQuartile","midpoint"],"thresholdPValue.75":["thirdQuartile"],"thresholdPValue.100":["fourthQuartile"],playbackStarted:["start"],playbackCompleted:["complete"],volumeOff:["mute"],volumeOn:["unmute"],playbackPaused:["pause"],playbackResumed:["resume"],fullscreenOn:["fullscreen"],error:["Error"]};return{addStatCollection:i,addStat:n,addClick:r,addExtension:o,addImmutableProperty:s,addSettings:a,getSettings:function(){return e.settings},addAd:c,getAd:function(){return e.ad},getAdForApp:$,getExtendedAdForApp:D,isEmpty:function(){return e.ad.type==="empty"},isStat:function(){return e.ad.type==="statistics"},clone:m,reset:f,log:v,logMRC:h,logOVV:_,start:y.bind(this,"start"),dispose:y.bind(this,"dispose"),pause:y.bind(this,"pause"),resume:y.bind(this,"resume"),setVolume:y.bind(this,"setVolume"),setFullscreen:y.bind(this,"setFullscreen"),setComplete:y.bind(this,"setComplete"),skip:y.bind(this,"skip"),setPosition:function(b,x){e.renderer&&e.renderer.setPosition&&e.renderer.setPosition(b,x)},complete:!1,error:!1}},AdmanHTML.AdSlot=function(t,e,i){"use strict";function n(E){D||(D={});for(var M in E)E.hasOwnProperty(M)&&(D[M]=E[M])}function r(E,M,g,R,U,O){function P(Q){t.stats.metrics("inited");var ce={};--b,Q&&(x++,Q=typeof Q=="string"?Q.trim():Q,typeof Q=="object"||Q.charAt(0)==="{"?(ce=a(Q,E,M,g||0,R,U,O),A++):Q.charAt(0)==="<"?(ce=c(Q,E,M,g||0,R,U,O),A++):(t.stats.rb(t.stats.code.UNKNOWN_DATA_FORMAT),t.stats.logError("UNKNOWN_DATA_FORMAT"))),E.id&&(ce.banners||ce.services?ce.banners&&k.markNonEmptyService(E.id):k.markEmptyService(E.id)),o(O)}if(g&&g>4)return void o(O);var z=k.getService(E.id);z&&z.log("serviceRequested"),++b,E.url?(E.url.indexOf("ad.mail.ru/")!==-1&&E.url.indexOf("version="+t.version)===-1&&(E.url+=E.url.indexOf("?")===-1?"?":"&",E.url+="version="+t.version),AdmanHTML.Utils.xhr(E.url,P)):E.data&&setTimeout(P,0,E.data)}function o(E){if(!b){if(x&&A){var M=k.getNextOnEmptyService();if(M)return void M.start(o.bind(null,E));h();var g=E||i;return g.called||(g.called=!0,g()),void(t.debugMode&&console.log(y))}s()}}function s(){var E=t.callbacks.onError;E&&E()}function a(E,M,g,R,U,O,P){function z(_e){return _e?_e.filter(function(j){return j.type&&(j.type==="sectionShown"||j.type==="sectionStarted"||j.type==="sectionEmpty")}):[]}function Q(_e,j,Se,he){var Ae=g?g.clone():new AdmanHTML.Ad(t);if(Ae.addStatCollection(_e.statistics),Ae.addStatCollection(_e.serviceStatistics),_e.type==="additionalData"){var Be;_e.id=_e.id||AdmanHTML.Utils.createIntUID(),ie.services++;var ke=!y[Se]||y[Se].length===0;if(j>0&&ke&&(L[Se]=!0),_e.extensions)for(var je in _e.extensions)_e.extensions.hasOwnProperty(je)&&m(Ae,_e.extensions[je],je);if(["point","pointP","hasVolume","hasPause","allowClose","allowCloseDelay","allowSeek","allowSkip","allowTrackChange","allowVolumeChange"].forEach(function(F){F in _e&&Ae.addImmutableProperty(F,_e[F])}),t.forcePreloadAdditionalData||_e.doAfter!=="true"&&_e.doAfter!==!0&&!_e.doOnEmptyResponseFromId)Be=new AdmanHTML.ServiceAd(t),l(Se,M.id,Be,_e),j===0&&ke?r(_e,Ae,R+1,Se,S.PRE,P):r(_e,Ae,R+1,Se,null,P);else{var I=_e.doAfter==="true"||_e.doAfter===!0?S.POST:null,C=function(F,K){r(_e,F||Ae,_e.allowRepeat?0:R+1,Se,I,function(){K&&K()})};Be=new AdmanHTML.ServiceAd(t,null,C),l(Se,M.id,Be,_e,Ae)}}else f(Se,he,Ae,_e),ie.banners++;return Ae}var ce,X=E,ie={banners:0,services:0};if(typeof E=="string")try{X=JSON.parse(E)}catch(_e){return t.stats.rb(t.stats.code.ERROR_CONVERTING_STRING_TO_JSON),void t.stats.logError("ERROR_CONVERTING_STRING_TO_JSON")}if(X.settings&&X.settings.requestHostname&&!D.requestHostname&&(D.requestHostname=X.settings.requestHostname),X&&X.settings&&(D=t.slot&&t.slot.getRootSettings()||D||{},n&&typeof n=="function")){var Y=X.sections&&X.sections.preroll&&X.sections.preroll.length&&X.sections.preroll[0]||null;n({impressionID:X.settings.impressionID||"",padID:X.settings.padID||"",bannerIDs:Y&&Y.bannerID||""})}for(var be in X.sections)if(X.sections.hasOwnProperty(be)){var q=X.sections[be],He=0;if(X.settings&&(ce=X.settings[be])&&(ce.controlsStyle=X.settings.controlsStyle||0,v(be,ce)),q.forEach(function(_e){if(_e.type==="debugData"){var j=new AdmanHTML.Ad(t);return j.addClick(_e.url),void u(be,j,_e)}var Se=U===be?O:"",he=Q(_e,He,be,Se);ce&&(he.addStatCollection(z(ce.statistics)),he.addSettings(ce)),He++}),q.length===0){var ae=new AdmanHTML.Ad(t);ce&&ae.addStatCollection(z(ce.statistics)),f(be,"",ae,{type:"empty"})}}return X.type&&Q(X,0,U,O),ie}function c(E,M,g,R,U,O,P){function z(q,He,ae){ce(q.getElementsByTagName(He),ae)}function Q(q,He,ae,_e){z(q,He,function(j){_e(ie(j),ae?X(j,ae):null,j)})}function ce(q,He){Array.prototype.forEach.call(q,He.bind(this))}function X(q,He){var ae=q.attributes.getNamedItem(He);return ae?ae.value:null}function ie(q){return q&&q.childNodes&&q.childNodes[0]&&q.childNodes[0].wholeText?q.childNodes[0].wholeText.trim():null}var Y,be={banners:0,services:0};try{Y=AdmanHTML.Utils.parseXml(E)}catch(q){return t.stats.rb(t.stats.code.ERROR_CONVERTING_STRING_TO_XML),void t.stats.logError("ERROR_CONVERTING_STRING_TO_XML")}return z(Y,"Ad",function(q){function He(j){var Se=g?g.clone():new AdmanHTML.Ad(t);Q(q,"Impression","id",function(Ae){try{Se.addStat(Ae,"playbackStarted")}catch(Be){}}),Q(q,"Extension","type",function(Ae,Be){m(Se,Ae,Be)}),Q(q,"Error",null,function(Ae){Se.addStat(Ae,"error")}),Q(j,"Tracking","event",Se.addStat);var he=j.getElementsByTagName("VideoClicks")[0];return he&&ce(he.childNodes,function(Ae){Ae.tagName==="ClickThrough"?Se.addClick(ie(Ae)):Ae.tagName==="ClickTracking"&&Se.addStat(ie(Ae),"click")}),Se}function ae(j){var Se={width:X(j,"width"),height:X(j,"height"),id:X(j,"id"),assetWidth:X(j,"assetWidth"),assetHeight:X(j,"assetHeight"),expandedWidth:X(j,"expandedWidth"),expandedHeight:X(j,"expandedHeight"),apiFramework:X(j,"apiFramework"),adSlotID:X(j,"adSlotID"),statistics:[]};return Q(j,"StaticResource",null,function(he){Se.staticResource=he}),Q(j,"HTMLResource",null,function(he){Se.htmlResource=he}),Q(j,"IFrameResource",null,function(he){Se.iframeResource=he}),Q(j,"CompanionClickTracking",null,function(he){Se.statistics.push({type:"click",url:he})}),Q(j,"Tracking","event",function(he,Ae){Se.statistics.push({type:Ae,url:he})}),Q(j,"CompanionClickThrough",null,function(he){Se.urlToNavigateOnClick=he}),Se}var _e=X(q,"id");z(q,"InLine",function(j){var Se=[];z(j,"CompanionAds",function(he){var Ae=X(he,"required")||"none";z(j,"Companion",function(Be){var ke=ae(Be);ke.required=Ae,Se.push(ke)})}),z(j,"Linear",function(he){var Ae,Be=He(he),ke=he.parentNode;ke&&(Ae=X(ke,"adId")||X(ke,"adID")||X(ke,"AdId")||X(ke,"AdID")||X(ke,"id")),Ae=Ae||_e;var je={bannerID:Ae,mediafiles:[],duration:AdmanHTML.Utils.convertDuration(ie(he.getElementsByTagName("Duration")[0]))};M.urlToNavigateOnClick&&(je.urlToNavigateOnClick=M.urlToNavigateOnClick),z(he,"MediaFile",function(I){je.mediafiles.push({apiFramework:X(I,"apiFramework"),type:X(I,"type"),width:X(I,"width"),height:X(I,"height"),src:ie(I)})}),z(he,"AdParameters",function(I){je.params=ie(I);try{var C=JSON.parse(je.params);if(C&&C.settings&&(D=t.slot&&t.slot.getRootSettings()||D||{},n&&typeof n=="function")){var F=C.sections&&C.sections.preroll&&C.sections.preroll.length&&C.sections.preroll[0]||null;C.settings&&C.settings.preroll,n({impressionID:C.settings.impressionID||"",padID:C.settings.padID||"",bannerIDs:F&&F.bannerID||""})}}catch(K){console.log(K)}}),Se.length&&(je.companionAds=Se),f(U||"preroll",O,Be,je),be.banners++}),z(j,"NonLinear",function(he){var Ae=He(he),Be={width:X(he,"width"),height:X(he,"height"),duration:AdmanHTML.Utils.convertDuration(X(he,"minSuggestedDuration")),mediafiles:[]};Q(he,"NonLinearClickThrough",null,function(ke){Ae.addStat(ke,"click")}),Q(he,"StaticResource","creativeType",function(ke,je){Be.mediafiles.push({type:je,src:ke})}),f(U||"overlay",O,Ae,Be),be.banners++})}),z(q,"VASTAdTagURI",function(j){be.services++,r({url:ie(j),id:M.id},He(q),R+1,U,O,P)})}),be}function m(E,M,g){g==="controls"?E.addExtension("showControls",!!parseInt(M,10)):g==="skipTime2"?(M=isNaN(M)?AdmanHTML.Utils.convertDuration("00:"+M):parseInt(M,10),E.addExtension("allowCloseDelay",M)):g==="linkTxt"&&(E.addExtension("linkText",M),E.addExtension("adText",M))}function f(E,M,g,R){g.addAd(R)&&(g.sectionType=E,M===S.PRE&&L[E]&&(M=""),E=(M||"")+E,y[E]=y[E]||[],y[E].push(g))}function l(E,M,g,R,U){g.addAd(R),g.addInheritedAd(U),g.addStatCollection(R.statistics),g.addStatCollection(R.serviceStatistics),g.sectionType=E,k.addService(g,M)}function u(E,M,g){M.addAd(g)&&(M.section=E,T[E]=M)}function v(E,M){$[E]=$[E]||{},AdmanHTML.Utils.mixin($[E],M),delete $[E].statistics,delete $[E].view,delete $[E].advertisment}function h(){"preroll midroll pauseroll overlay postroll claimroll".split(" ").forEach(function(E){var M=L[E]?y[E]:y[S.PRE+E],g=L[E]?y[S.PRE+E]:y[E],R=y[S.POST+E];y[E]=[].concat(M||[],g||[],R||[]),_(S.PRE+E),_(S.POST+E)})}function _(E){y[E]=[]}var y={},$={},D={},T={},b=0,x=0,A=0,S={PRE:"pre-",POST:"post-"},L={},k=new AdmanHTML.ServiceStorage(t);return r({url:e.url,data:e.data}),{getSection:function(E){return y[E]},getAfterServices:k.getAfterServices,getNextAfterService:k.getNextAfterService,resetServices:k.resetAll,getServices:k.getServices,removeService:k.removeService,getSettings:function(E){return $[E]||{}},getRootSettings:function(){return D},getDebug:function(E){return T[E]}}},AdmanHTML.ServiceAd=function(t,e,i){"use strict";function n(v){return e.ad=v,!0}function r(v){e.inheritedAd=v}function o(v,h){e.inheritedAd.addImmutableProperty(v,h,!0)}function s(v){var h=v?v.filter(function(_){return _.type==="serviceRequested"||_.type==="serviceAnswerEmpty"}):[];h&&h.forEach(function(_){a(_.url,_.type,_)})}function a(v,h){v=decodeURIComponent(v),e.stats.push({name:h,type:h,url:v})}function c(v){u=!0,i&&i(e.inheritedAd,v)}function m(){u=!1}function f(){return!(t.forcePreloadAdditionalData||!e.ad||!e.ad.doAfter)&&(e.ad.doAfter===!0||e.ad.doAfter==="true")}function l(v){function h(y){AdmanHTML.Utils.loadImg(y.url);var $=_.indexOf(y);~$&&_.splice($,1)}var _=e.stats.slice(0);e.stats.forEach(function(y){y.type===v&&h(y)}),e.stats=_}e=e||{stats:[]};var u=!1;return{addStatCollection:s,addStat:a,addAd:n,addInheritedAd:r,addImmutableProperty:o,getAd:function(){return e.ad},start:c,reset:m,started:function(){return u},log:l,isAfter:f}},AdmanHTML.ServiceStorage=function(t){"use strict";function e(_,y){var $=_.getAd();v.push($.id),u[$.id]={service:_},y&&u[y]&&(u[y].children=u[y].children||[],u[y].children.push($.id)),t.forcePreloadAdditionalData||$.doAfter!=="true"&&$.doAfter!==!0&&!$.doOnEmptyResponseFromId||l.push(_)}function i(_){return u[_]?u[_].service:null}function n(_){var y=typeof _=="string"||typeof _=="number"?_:_.getAd().id;delete u[y];var $,D;for($=0,D=l.length;$<D;$++)if(_=l[$],_.getAd().id===y){l.splice($,1);break}}function r(_,y){if(!_)return[];var $,D,T=[];for($ in u)u.hasOwnProperty($)&&(D=u[$].service,D.sectionType!==_||y&&!y(D)||T.push(D));return T}function o(_){v.forEach(function(y,$){_===y?(u[y].service.log("serviceAnswerEmpty"),v.splice($,1),h.push(_),delete u[y]):u[y].children&&u[y].children.indexOf(_)!==-1&&u[y].children.splice(u[y].children.indexOf(_),1)})}function s(_){var y=u[_];y&&(y.children=null)}function a(){var _,y,$,D;for(_=0,y=l.length;_<y;_++)if($=l[_],(D=$.getAd().doOnEmptyResponseFromId)&&h.indexOf(D)!==-1&&!$.isAfter())return l.splice(_,1),$;return null}function c(_){if(!_)return[];var y,$,D,T=[];for(y=0,$=l.length;y<$;y++)D=l[y],D.sectionType===_&&D.isAfter()&&!D.started()&&T.push(D);return T}function m(_){if(!_)return null;var y,$,D,T;for(y=0,$=l.length;y<$;y++)if(D=l[y],D.sectionType===_&&D.isAfter()&&!D.started()){if((T=D.getAd().doOnEmptyResponseFromId)&&h.indexOf(T)===-1)continue;return D.getAd().allowRepeat||l.splice(y,1),D}return null}function f(_){var y,$,D;for(y=0,$=l.length;y<$;y++)D=l[y],_&&D.sectionType!==_||D.reset()}var l=[],u={},v=[],h=[];return{addService:e,getService:i,getServices:r,removeService:n,resetAll:f,markEmptyService:o,markNonEmptyService:s,getAfterServices:c,getNextAfterService:m,getNextOnEmptyService:a}},typeof define=="function"&&define.amd&&define(function(){"use strict";return AdmanHTML}),AdmanHTML.VpaidLoader=function(){"use strict";function t(i,n){this.id=Math.round(1e6*Math.random()),this.video=i,this.videoIsElement=AdmanHTML.Utils.isElement(this.video),this._props={},this.autoMuted=!1,this.win=n||window}var e=300;return t.prototype.load=function(i,n){var r=document.createElement("iframe");return this.adframe=r,this.src=i,r.width="100%",r.height="100%",r.scrolling="no",r.marginWidth="0",r.marginHeight="0",r.frameBorder="0",r.src=n,r.id="ad-frame-"+this.id,r.setAttribute("allow","autoplay"),r.onload=function(){this.src.indexOf("yandex.ru")!==-1&&this.send({type:"vpaid",method:"log"}),this.send({type:"vpaid",method:"load",src:this.src,urlToNavigateOnClick:this.urlToNavigateOnClick})}.bind(this),this.processMessage=this.processMessage.bind(this),this.videoEventHandler=this.videoEventHandler.bind(this),this.videoEvents=["play","pause","volumechange","timeupdate","ended"],this.video.addEventListener("play",this.videoEventHandler),this.video.addEventListener("pause",this.videoEventHandler),this.video.addEventListener("volumechange",this.videoEventHandler),this.video.addEventListener("timeupdate",this.videoEventHandler),this.video.addEventListener("ended",this.videoEventHandler),this.win.addEventListener("message",this.processMessage),r.setAttribute("style","color-scheme: light;"),r},t.prototype.processMessage=function(i){if(i.source===this.adframe.contentWindow)try{var n=JSON.parse(i.data);switch(this.urlToNavigateOnClick&&(n.urlToNavigateOnClick=this.urlToNavigateOnClick),n.type){case"video":this.videoMessageHandler(n);break;case"vpaid":this.vpaidMessageHandler(n)}}catch(r){}},t.prototype.videoMessageHandler=function(i){switch(i.src&&i.src.replace(/https?:/,"")!==this.video.src.replace(/https?:/,"")&&(this.video.src=i.src),i.method){case"load":this.video.load();break;case"play":var n=this.video.play();n.then&&n.then(function(){this.video.muted&&!this.autoMutedTS&&(this.autoMutedTS=new Date().getTime())}.bind(this),function(){this.autoMuted=!0,this.autoMutedTS=new Date().getTime(),this.video.muted=!0,this.video.volume=0,this.videoEventHandler({type:"volumechange"}),this.callSet("adVolume",0),this.video.play()}.bind(this));break;case"pause":this.video.pause();break;case"muted":if(!i.value&&this.video.muted&&this.autoMutedTS&&new Date().getTime()-this.autoMutedTS<e)return;this.mutedByVPAID=i.value,this.video.muted=i.value;break;case"volume":i.value&&this.video.muted&&!this.mutedByVPAID?!this.autoMutedTS||new Date().getTime()-this.autoMutedTS>e?(this.video.muted=!1,this.video.volume=i.value):this.callSet("adVolume",0):(this.video.volume=i.value,i.value===0&&(this.video.muted=!0));break;case"styles":AdmanHTML.Utils.setStyle(this.video,i.styles);break;case"addEventListener":this.videoEvents=this.videoEvents||[],this.videoEvents.push(i.eventType),this.video.addEventListener(i.eventType,this.videoEventHandler)}},t.prototype.videoEventHandler=function(i){this.send({type:"video",method:"emit",eventType:i.type,currentTime:this.video.currentTime,duration:this.video.duration,volume:this.video.volume,muted:this.video.muted}),this.videoIsElement&&(i.type==="play"?this.onVpaidCallback("video:play"):i.type==="pause"&&this.video.currentTime>0&&this.video.currentTime<.99*this.video.duration&&this.onVpaidCallback("video:pause"))},t.prototype.vpaidMessageHandler=function(i){AdmanHTML.Utils.mixin(this._props,i.props),typeof this.onVpaidCallback=="function"&&this.onVpaidCallback(i.eventType,i.props)},t.prototype.call=function(i,n){var r={type:"vpaid",method:i};if(n&&(r.params=n),this.send(r),i in this._props)return this._props[i]},t.prototype.callGet=function(i){return this._props[i]},t.prototype.callSet=function(i,n){return i="set"+i.charAt(0).toUpperCase()+i.slice(1),this.call(i,[n])},t.prototype.send=function(i){this.adframe&&(i.id=this.id,this.adframe.contentWindow&&this.adframe.contentWindow.postMessage(JSON.stringify(i),"*"))},t.prototype.onVpaidEvent=function(i){this.onVpaidCallback=i},t.prototype.destroy=function(){if(this.adframe&&this.adframe.parentNode&&this.adframe.parentNode.removeChild(this.adframe),this.videoEvents&&this.videoEvents.length)for(var i=0,n=this.videoEvents.length;i<n;i++)this.video.removeEventListener(this.videoEvents[i],this.videoEventHandler);this.video.pause(),this.video.src="",this.autoMuted&&(this.video.muted=!1),this.adframe=null,this.win.removeEventListener("message",this.processMessage),this.win=null},t}(),AdmanHTML.Constants=function(){"use strict";return{AD_ACTIONS_DEFAULT_CONFIG:{members:["disclaimer","timer","adchoice"],positionX:"left",positionY:"top",offsetX:"6px",offsetY:"6px",disclaimerText:"Реклама",headerText:"Рекламное объявление",aboutText:"О рекламодателе",copyText:"Скопировать ID"}}}(),AdmanHTML.Stats=function(t){"use strict";function e(T){if(u){var b=h[T];b&&s("https://r.mail.ru/d"+b+".gif?rnd="+Math.random())}else v.push(T)}function i(T,b){if(!n()){if(T)try{Object.defineProperty(_,T,{writable:!1,enumerable:!0,value:b||Date.now()-c})}catch(x){}else _.sessionId=AdmanHTML.Utils._genSessionId();c=Date.now(),Object.keys(h).length&&s("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+t.version+"&metrics="+encodeURIComponent(JSON.stringify(_))+"&slot="+(m==="slot"?t.slotId:"json"))}}function n(){return["media_error_code","vpaid_error_message","skipped","completed"].some(function(T){return _.hasOwnProperty(T)})}function r(T,b,x){var A=[];if(x)for(var S in x)x.hasOwnProperty(S)&&A.push(S+"="+String(x[S]));var L="";A.length&&(L="&"+A.join("&")),D||s("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+t.version+"&"+T+"="+encodeURI(b)+"&slot="+(m==="slot"?t.slotId:"json")+L),t.debugMode&&console&&console.log&&(console.log("MESSAGE: "+T+" = "+b),x&&console.log("MESSAGE EXTRA PARAMS: "+JSON.stringify(x)))}function o(T,b){var x=[];if(b)for(var A in b)b.hasOwnProperty(A)&&x.push(A+"="+String(b[A]));var S="";x.length&&(S="&"+x.join("&")),D||s("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+t.version+"&error="+encodeURI(T)+"&slot="+(m==="slot"?t.slotId:"json")+S),t.debugMode&&console&&console.warn&&console.warn("Error: "+T)}function s(T){AdmanHTML.Utils.loadImg(T)}function a(T){if(!l){var b="https://ad.mail.ru/vp/"+f+"?original="+(T.slot||"")+"&version="+T.version;l=!0,D?(console.log(b),u=!0):AdmanHTML.Utils.xhr(b,function(x){if(u=!0,x){if(typeof x=="string")try{h=JSON.parse(x.trim())}catch(S){}else typeof x=="object"&&(h=x);var A=v.slice();v=[],A.forEach(e)}})}}var c,m="slot",f=3107,l=!1,u=!1,v=[],h={},_={},y=AdmanHTML.Utils.getPageLocation(),$=AdmanHTML.Utils.getHostname(y||""),D=$.indexOf("localhost")!==-1;return{rb:e,logError:o,logMessage:r,simple:s,metrics:i,initMode:function(T,b){m=T,T==="slot"&&a(b)},code:{ADMAN_INSTANCE_CREATED:"ADMAN_INSTANCE_CREATED",ADMAN_SUCCESSFULLY_INITIALIZED:"ADMAN_SUCCESSFULLY_INITIALIZED",ERROR_CONVERTING_STRING_TO_JSON:"ERROR_CONVERTING_STRING_TO_JSON",ERROR_PARSING_JSON:"ERROR_PARSING_JSON",ERROR_CONVERTING_STRING_TO_XML:"ERROR_CONVERTING_STRING_TO_XML",ERROR_PARSING_XML:"ERROR_PARSING_XML",UNKNOWN_DATA_FORMAT:"UNKNOWN_DATA_FORMAT",UNKNOWN_ADV_TYPE:"UNKNOWN_ADV_TYPE"}}},AdmanHTML.StyleUtils=function(){"use strict";function t(c){return c.replace(/-+(.)?/g,function(m,f){return f?f.toUpperCase():""})}function e(c,m,f){var l,u=s[m];if(!u){for(l=0;l<a.length;l++)if(u=a[l]===""?m:t(a[l]+"-"+m),c[u]!==void 0){s[m]=u;break}}c[u]=f}function i(c){return parseInt(c)+"px"}function n(c,m){function f(l,u){return l=parseInt(l,16),u=u||1,"rgba("+(l>>16&255)+","+(l>>8&255)+","+(255&l)+","+u+")"}return Array.isArray(c)?"linear-gradient("+c.map(function(l){return f(l,m)}).join(", ")+")":f(c,m)}function r(c,m,f){var l=c.style;(f||Object.keys(m)).forEach(function(u){m.hasOwnProperty(u)&&o(l,u,m[u],m)})}function o(c,m,f,l){var u,v,h;switch(m){case"fontFace":u="fontFamily",v=f;break;case"hasBackground":f||(u="background",v="none",delete l.backgroundColor);break;case"backgroundColor":u="background",v=n(f,l.backgroundAlpha);break;case"cornerRounding":case"borderCornerRounding":u="borderRadius",v=i(Math.floor(f/2));break;case"headerColor":case"bodyColor":case"hyperlinkColor":case"textColor":u="color",v=n(f);break;case"headerSize":case"bodySize":case"hyperlinkSize":case"textSize":u="fontSize",v=i(f);break;case"headerUnderline":case"bodyUnderline":case"hyperlinkUnderline":case"textUnderline":u="text-decoration",v=f?"underline":"none",h="";break;case"headerUnderlineOnRollOver":u="text-decoration",v=f?"":"none",h=f?"":"important";break;case"headerBold":case"bodyBold":case"hyperlinkBold":case"textBold":u="fontWeight",v=f?"bold":"normal";break;case"headerIndent":case"bodyIndent":case"hyperlinkIndent":u="marginTop",v=i(f);break;case"bodyPaddingRight":u="marginRight",v=i(f);break;case"width":case"height":u=m,v=i(f);break;case"contentPadding":case"contentIndent":case"controlsSafeArea":u="padding",v=i(f);break;case"maxImageWidth":case"maxImageHeight":u=m==="maxImageWidth"?"maxWidth":"maxHeight",v=i(f);break;case"borderSize":u="borderWidth",v=i(f);break;case"borderColor":u="borderColor",v=n(f,l.borderAlpha);break;case"paddingLeft":case"paddingTop":u=m==="paddingLeft"?"left":"top",v=i(f);break;case"controlsPaddingTop":case"controlsPaddingRight":u=m==="controlsPaddingRight"?"right":"top",v=i(f)}u&&v&&(h!==void 0?c.setProperty(u,v,h):e(c,u,v))}var s={},a=["","webkit","Moz","O","ms"];return{applyStyle:r,getLength:i}}(),AdmanHTML.Utils=function(){"use strict";function t(){return _e||(_e=function(){try{if(window===window.top)return j;for(var I=window;I!==I.parent;){if(I.document.domain!==I.parent.document.domain)return he;I=I.parent}return Se}catch(C){}return he}())}function e(){if(Ae!==null)return Ae;var I=window;try{for(;I.parent!==I&&I.document.domain===I.parent.document.domain;)I=I.parent}catch(C){}return Ae=I,I}function i(){var I=window,C="",F=e();try{C=I.top.location.href}catch(le){if(F&&F.parent===I.top&&(C=F.document.referrer),!C){var K=I.location.ancestorOrigins;K&&K.length&&(C=K[K.length-1])}}return C||(C=(F||window).document.referrer),C}function n(){return je.major?ke:Be}function r(I){I(n())}function o(I,C){C&&I.addEventListener("load",C,!1);var F=document.getElementsByTagName("head");if(F&&F.length){var K=F[0];K&&K.appendChild(I)}}function s(I,C,F){var K=document.getElementById(C);if(K&&K.parentNode){if(!F)return;K.parentNode.removeChild(K)}K=document.createElement("style"),K.type="text/css",K.id=C,K.innerHTML=I,o(K)}function a(I){var C=document.querySelector("link[href*='"+I+"']");C||(C=document.createElement("link"),C.type="text/css",C.rel="stylesheet",C.href=I,o(C))}function c(I){var C=document.querySelector("script[src*='"+I+"']");C||(C=document.createElement("script"),C.setAttribute("type","text/javascript"),C.setAttribute("charset","utf8"),C.setAttribute("src",I),o(C))}function m(I,C){var F=AdmanHTML.Utils.getPageLocation();if(AdmanHTML.Utils.getHostname(F||"").indexOf("localhost")===-1){var K=new Image;K.onload=function(){C&&C(K)},K.src=I}else console.log(I)}function f(I,C,F,K,le){K=K||"GET";var ge=new XMLHttpRequest;return ge.open(K,I,!0),ge.withCredentials=!le,ge.setRequestHeader("Content-Type","text/plain"),ge.send(F||null),C&&(ge.onreadystatechange=function(){ge.readyState===4&&(ge.status===200?C(ge.response):C())},ge.onerror=function(){le?C():f(I,C,F,K,!0)}),ge}function l(I,C,F,K,le){le===void 0&&(le=!0);var ge=C*F<I*K;le&&(ge=!ge);var ze=ge?K/C:F/I,Qe=Math.floor(I*ze),G=Math.floor(C*ze);return{x:Math.floor((F-Qe)/2),y:Math.floor((K-G)/2),width:Math.floor(Qe),height:Math.floor(G)}}function u(I){return typeof I=="object"&&!!I&&!Array.isArray(I)}function v(I){var C;for(C in I)return!1;return!0}function h(I,C){if(!I)return null;if(C){var F;for(F in C)Object.prototype.hasOwnProperty.call(C,F)&&(I[F]=C[F])}return I}function _(I,C){if(C){var F,K;for(F in C)Object.prototype.hasOwnProperty.call(C,F)&&(K=C[F],u(K)?(I[F]=I[F]||{},I[F]=_(I[F],K)):I[F]=K)}return I}function y(I,C,F){return I=I||0,C=C||0,F=F||1,Math.min(F,Math.max(C,I))}function $(I,C){return I-C}function D(){return Math.floor(Math.random()*Math.pow(2,48)).toString()}function T(I){I=I.split("+").join(" ");for(var C,F={},K=/[?&]?([^=]+)=([^&]*)/g;C=K.exec(I);)F[decodeURIComponent(C[1])]=decodeURIComponent(C[2]);return F}function b(I,C){var F;document.createEvent?(F=document.createEvent("HTMLEvents"),F.initEvent(C,!0,!0)):(F=document.createEventObject(),F.eventType=C),F.eventName=C,document.createEvent?I.dispatchEvent(F):I.fireEvent("on"+F.eventType,F)}function x(I){return I?I.substring(I.indexOf("//")+2,I.indexOf("/?")):""}function A(I){var C=document.createElement("a");return C.href=I,C.hostname}function S(I){return I.replace(/^(www[0-9]?\.)?/,"")}function L(I,C,F){if(!I||!C)return!0;if(I=S(I),C=S(C),!(F&&F.URL&&Array.prototype.includes))return new RegExp("^"+C.replace(/^(\*\.?)/,"([^/]*.)?").replace(/\./g,"\\.")+"$").test(I);try{I=new URL(I);try{return C=new URL(C),I.host.includes(C.host)}catch(K){return I.host.includes(C)}}catch(K){return I.includes(C)}}function k(I){var C=I.button,F=I.which;return F||C===void 0?F:1&C?1:2&C?3:4&C?2:0}function E(I){return k(I)===1}function M(I,C){return C=C||document.body,I!==C&&C.contains(I)}function g(I){return I&&I.nodeType===1}function R(I){var C=I.ownerDocument;return C.defaultView||C.parentWindow}function U(I){I.preventDefault()}function O(I){var C;if(window.DOMParser)C=new DOMParser().parseFromString(I,"text/xml");else{if(!window.ActiveXObject)return;C=new window.ActiveXObject("Microsoft.XMLDOM"),C.async=!1,C.loadXML(I)}return C.documentElement}function P(I){if(I){var C=I.split(":");if(C.length===3){var F=parseInt(C[0],10),K=parseInt(C[1],10),le=C[2].split("."),ge=parseInt(le[0],10),ze=0;if(le.length===2&&(ze=parseInt(le[1],10)),!(isNaN(F)||isNaN(K)||isNaN(ge)||isNaN(ze)))return 3600*F+60*K+ge+ze/1e3}}return NaN}function z(I,C){var F,K=I;for(F in C)C.hasOwnProperty(F)&&(K=K.replace("{{"+F+"}}",C[F]));return K}function Q(I,C){if(C=C||0,window.Worker&&window.Blob){var F,K=new Blob(['var timeout; onmessage = function(e) {clearTimeout(timeout); if (e.data === "start") {timeout = setTimeout(function() { postMessage({}); }, '+C+");}}"]);try{F=new Worker(window.URL.createObjectURL(K)),F.onmessage=function(){F.terminate(),I()},F.postMessage("start")}catch(le){return setTimeout(I,C)}return F}return setTimeout(I,C)}function ce(){function I(ze){var Qe={};try{var G=window[ze].getItem("rb_sync_id");G&&typeof(Qe=JSON.parse(G))!="object"&&(Qe={})}catch(re){}return Qe}var C=[],F=I("localStorage"),K=I("sessionStorage"),le=h(F,K);for(var ge in le)le.hasOwnProperty(ge)&&C.push(ge+"="+encodeURIComponent(le[ge]));return C.join("&")}function X(I){return/nr-vpaid(\.min)?\.js/.test(I)}function ie(I,C){I&&I.style&&Y(I,C,!0)}function Y(I,C,F){F=F||!1;var K=F?function(le,ge){I.style.setProperty(le,ge,"important")}:function(le,ge){I.style.setProperty(le,ge)};Object.getOwnPropertyNames(C).forEach(function(le){K(le,C[le])})}function be(){function I(Qe,G){return function(){return Qe.apply(G,arguments)}}function C(Qe){var G=Qe.toString(16);return G.length===1?"0"+G:G}function F(Qe,G,re){for(var fe="",Ce=G;Ce<=re;Ce++)fe+=C(Qe[Ce]);return fe}var K="undefined",le=typeof crypto!==K&&crypto.getRandomValues&&I(crypto.getRandomValues,crypto)||typeof msCrypto!==K&&window.msCrypto.getRandomValues&&I(window.msCrypto.getRandomValues,window.msCrypto),ge=function(){if(le){var Qe=new Uint8Array(16);return function(){return le(Qe),Qe}}var G=new Array(16);return function(){for(var re,fe=0;fe<16;fe++)(3&fe)==0&&(re=4294967296*Math.random()),G[fe]=re>>>((3&fe)<<3)&255;return G}}(),ze=ge();return ze[6]=15&ze[6]|64,ze[8]=63&ze[8]|128,F(ze,0,3)+"-"+F(ze,4,5)+"-"+F(ze,6,7)+"-"+F(ze,8,9)+"-"+F(ze,10,15)}function q(I,C){var F=AdmanHTML.Constants.AD_ACTIONS_DEFAULT_CONFIG,K=[C,I].reduce(function(le,ge){return ge&&Object.keys(F).forEach(function(ze){le[ze]!==ge[ze]&&(le[ze]=ge[ze]?ge[ze]:le[ze]),typeof ge.members=="object"&&(le.members=ge.members)}),le},Object.assign({},F));return He(K)?K:F}function He(I){return!!Array.isArray(I.members)&&(I.members.forEach(function(C){if(["adchoice","disclaimer","timer"].indexOf(C)===-1)return!1}),typeof I.positionX=="string"&&["left","right"].indexOf(I.positionX)!==-1&&typeof I.positionY=="string"&&["top","bottom"].indexOf(I.positionY)!==-1&&typeof I.offsetX=="string"&&typeof I.offsetY=="string"&&!(typeof I.disclaimerText!="string"||!I.disclaimerText.length)&&!(typeof I.headerText!="string"||!I.headerText.length)&&!(typeof I.aboutText!="string"||!I.aboutText.length)&&!(typeof I.copyText!="string"||!I.copyText.length))}function ae(I){I=I||navigator.userAgent;var C=!1;return function(F){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(F)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(F.substr(0,4)))&&(C=!0)}(I),C}var _e,j=1,Se=2,he=3,Ae=null,Be=0,ke=1,je=function(){var I="undefined",C="Shockwave Flash",F="application/x-shockwave-flash",K={major:0,minor:0,release:0},le=null;if(typeof navigator.plugins!==I&&typeof navigator.plugins[C]=="object")(le=navigator.plugins[C].description)&&typeof navigator.mimeTypes!==I&&navigator.mimeTypes[F]&&navigator.mimeTypes[F].enabledPlugin&&(le=le.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),K.major=parseInt(le.replace(/^(.*)\..*$/,"$1"),10),K.minor=parseInt(le.replace(/^.*\.(.*)\s.*$/,"$1"),10),K.release=/[a-zA-Z]/.test(le)?parseInt(le.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof window.ActiveXObject!==I)try{var ge=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash");ge&&(le=ge.GetVariable("$version"))&&(le=le.split(" ")[1].split(","),K.major=parseInt(le[0],10),K.minor=parseInt(le[1],10),K.release=parseInt(le[2],10))}catch(ze){}return K}();return{setStyle:ie,isNRVpaid:X,addCss:s,loadCss:a,loadJs:c,loadImg:m,xhr:f,scaleBySide:l,isEmptyObject:v,mixin:h,deepExtend:_,validateMinMax:y,numSorter:$,createIntUID:D,getQueryParams:T,triggerEvent:b,getUserIdQuery:ce,getPageLocation:i,getDomain:x,getHostname:A,_genSessionId:be,matchHostname:L,isLeftButtonPressed:E,isElementInDocument:M,isElement:g,getElementViewport:R,preventDefault:U,parseXml:O,convertDuration:P,renderTemplate:z,setTimeout:Q,checkFlash:n,checkFlashAsync:r,FLASH_READY:ke,FLASH_MISSING:Be,getServingType:t,servingTypes:{ON_PAGE:j,S_FRAME:Se,XD_FRAME:he},adActionsConfigPrepare:q,isMobile:ae}}(),AdmanHTML.Viewability=function(){"use strict";function t(O,P,z){return O.forEach(function(Q){Q.duration=P.focus&&P.percent>=Q.threshold?Q.duration+z:0}),O}function e(O){O.forEach(function(P){P.duration=0})}function i(O){return new window.IntersectionObserver(function(P){P&&P.length&&P[0].intersectionRatio!==void 0&&(O(P[0].intersectionRatio),!M&&(P[0].intersectionRatio>0||P[0].isIntersecting)&&(M=!0,y.log("viewin")))},{threshold:R})}function n(){return L?!document[L]:A===S.XD_FRAME||!window.top.document.hasFocus||window.top.document.hasFocus()}function r(){var O=o();if(O.state!=="UNDETERMINED")return t(U,O,b),y&&(y.logMRC(U)||_()),O}function o(){var O,P,z=n();return x?(O=g,P="DETERMINED"):A!==S.XD_FRAME?(O=s($).percent,P="DETERMINED"):(O=0,P="UNDETERMINED"),{percent:O,focus:z,state:P,viewinOccured:M}}function s(O,P){try{var z=O.getBoundingClientRect(),Q=a(z),ce=AdmanHTML.Utils.getElementViewport(O)||window;for(P=P||window.top;ce!==P;){var X=ce.frameElement.getBoundingClientRect();z=c(z,X),z.left=Math.max(X.left,z.left),z.right=Math.min(X.right,z.right),z.top=Math.max(X.top,z.top),z.bottom=Math.min(X.bottom,z.bottom),z.right<z.left&&(z.right=z.left),z.bottom<z.top&&(z.bottom=z.top),ce=ce.parent}z=m(z,P);var ie=a(z);return z.percent=ie/Q*100,z}catch(Y){return{left:0,right:0,top:0,bottom:0,percent:0}}}function a(O){return(O.right-O.left)*(O.bottom-O.top)}function c(O,P){return{left:O.left+P.left,right:O.right+P.left,top:O.top+P.top,bottom:O.bottom+P.top}}function m(O,P){var z={},Q=f(P);return z.left=Math.max(0,O.left),z.right=Math.min(Q.width,O.right),z.top=Math.max(0,O.top),z.bottom=Math.min(Q.height,O.bottom),z}function f(O){var P={width:1/0,height:1/0};return!isNaN(O.document.body.clientWidth)&&O.document.body.clientWidth>0&&(P.width=O.document.body.clientWidth),!isNaN(O.document.body.clientHeight)&&O.document.body.clientHeight>0&&(P.height=O.document.body.clientHeight),O.document.documentElement&&O.document.documentElement.clientWidth&&!isNaN(O.document.documentElement.clientWidth)&&(P.width=O.document.documentElement.clientWidth),O.document.documentElement&&O.document.documentElement.clientHeight&&!isNaN(O.document.documentElement.clientHeight)&&(P.height=O.document.documentElement.clientHeight),O.innerWidth&&!isNaN(O.innerWidth)&&(P.width=Math.min(P.width,O.innerWidth)),O.innerHeight&&!isNaN(O.innerHeight)&&(P.height=Math.min(P.height,O.innerHeight)),P}function l(O,P,z){if(y=P,E=!z,$=O,x)T=T||i(function(Q){g=100*Q}),T.observe(O);else if(A===S.XD_FRAME)return k=!1,void y.log("viewabilityUnmeasurable");z||(D=setInterval(r,b)),k=!0,y.log("viewabilityMeasurable"),window.addEventListener("unload",u)}function u(){h("unload")}function v(){D||(D=setInterval(r,b))}function h(O){k&&y&&E&&y.logMRC([],O||"complete"),y=null,k=!1,E=!1,$=null,clearInterval(D),D=void 0,e(U),T&&T.disconnect(),window.removeEventListener("unload",u)}function _(){D&&(clearInterval(D),D=void 0,e(U))}var y,$,D,T,b=255,x=!!window.IntersectionObserver,A=AdmanHTML.Utils.getServingType(),S=AdmanHTML.Utils.servingTypes,L=function(){for(var O=["h","webkitH","mozH","msH","oH"],P=0;P<O.length;P++)if(document[O[P]+"idden"]!==void 0)return O[P]+"idden";return""}(),k=!1,E=!1,M=!1,g=0,R=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],U=[];return R.forEach(function(O){U.push({threshold:Math.round(100*O),duration:0})}),{start:l,pause:_,resume:v,stop:h,getViewabilityState:o}},AdmanHTML.AdRenderer=function(t,e){"use strict";function i(){T.wrapperEl=T.wrapperEl||t.wrapper,T.mainEl=T.mainEl||document.createElement("div"),T.clickEl=T.clickEl||T.mainEl,AdmanHTML.Utils.isElement(T.mainEl)&&!T.mainEl.parentNode&&(T.wrapperEl.childNodes.length?T.wrapperEl.insertBefore(T.mainEl,T.wrapperEl.childNodes[0]):T.wrapperEl.appendChild(T.mainEl),D=!0),T.clickEl.addEventListener("click",T.onClick),window.addEventListener("resize",v)}function n(A){A()}function r(){t.viewability.stop(),window.removeEventListener("resize",v),T.clickEl&&T.clickEl.removeEventListener("click",T.onClick),clearTimeout(_),AdmanHTML.Utils.isElement(T.mainEl)&&D&&T.mainEl.parentNode&&T.mainEl.parentNode.removeChild(T.mainEl)}function o(){if(!b&&(b=!0,clearTimeout(_),y)){var A=Date.now()-y;$=1e3*x.duration-A}}function s(){b&&(b=!1,a())}function a(){y=Date.now();var A=$||1e3*x.duration;_=setTimeout(function(){r(),t.cb("onCompleted")},A)}function c(){x.urlToNavigateOnClick&&(x.openLinkInPopup?t.openPopup(x.urlToNavigateOnClick||x.trackingLink):window.open(x.urlToNavigateOnClick,"_blank"),e.log("click"),t.cb("onClicked"))}function m(A){t.cb("onStarted",[e.sectionType,AdmanHTML.Utils.mixin(e.getAdForApp()||{},A||{})]),e.log("playbackStarted")}function f(A,S){var L=parseInt(A/S*100);t.cb("onTimeRemained",[{remained:S-A,percent:L,duration:S,currentTime:A}]),A=parseInt(A),e.log("thresholdPValue",L),e.log("thresholdValue",A),e.logOVV(A,L)}function l(A,S){typeof A!="string"&&A?T.mainEl.appendChild(A):T.mainEl.innerHTML=A,AdmanHTML.Utils.mixin(T.mainEl.style,S)}function u(A){T.wrapperEl=A}function v(){T.onResize(T.mainEl.offsetWidth,T.mainEl.offsetHeight)}function h(){}var _,y,$,D,T={},b=!1,x=e.getAd();return T={start:i,pause:o,resume:s,skip:n,dispose:r,onClick:c,onStart:m,registerTimer:a,setView:l,setWrapper:u,onTimeRemained:f,onResize:h}},AdmanHTML.AudioAdRenderer=function(t,e){"use strict";function i(){s.mainEl=t.audioEl||document.createElement("audio"),a.forEach(function(c){s.mainEl.addEventListener(c,r)}),t.audioEl||s.setView(null,{position:"absolute",width:"1px",height:"1px",top:"-10000px",left:"-10000px"}),o=e.getAd().duration,s.mainEl.src=e.getAd().src,s.mainEl.load(),e.log("render"),s.mainEl.play(),t.audioEl||s.start()}function n(){s.dispose(),a.forEach(function(c){s.mainEl.removeEventListener(c,r)})}function r(c){var m,f;switch(c.type){case"loadedmetadata":s.onStart();break;case"play":t.cb("onPlayed");break;case"pause":t.cb("onPaused");break;case"timeupdate":m=s.mainEl.duration,f=s.mainEl.currentTime,!isNaN(m)&&o&&Math.abs(o-m)>1&&(m=o,f=Math.min(f,m)),s.onTimeRemained(f,m);break;case"ended":t.cb("onCompleted");break;case"error":t.cb("onError")}}var o,s=new AdmanHTML.AdRenderer(t,e),a=["loadedmetadata","error","pause","play","timeupdate","ended"];return{start:i,skip:s.skip,dispose:n,pause:function(){s.mainEl.pause()},resume:function(){s.mainEl.play()},setVolume:function(c){var m=s.mainEl.muted?0:s.mainEl.volume;s.mainEl.muted=c===0,s.mainEl.volume=c,(m===0&&c>0||m>0&&c===0)&&e.log(c?"volumeOn":"volumeOff")}}},AdmanHTML.CallToActionBtnRenderer=function(t,e){"use strict";function i(){this.isRendered=!1,this.background="#1a79ff",this.boxShadow="0px 0px 4px 0px #0000000F",this.ctaButtonEl=document.createElement("div"),this.ctaButtonEl.className="rb-adman-cta-btn",this.ctaButtonTextEl=document.createElement("span"),this.ctaButtonTextEl.className="rb-adman-cta-btn-text",this.ctaButtonEl.appendChild(this.ctaButtonTextEl)}function n(h){h.propertyName==="transform"&&h.target===l&&v.moveWithControls()}function r(){u.start(),f=e.getAd(),m=e.getSettings(),l=document.querySelector("div.videoplayer_controls");var h=AdmanHTML.Utils.adActionsConfigPrepare(f?f.adActionsConfig:null,m?m.adActionsConfig:null);if(!f.ctaWebEnabled||h.positionY==="bottom"&&h.positionX==="left")return void(a=Function.prototype);v.setText(f.ctaText),v.setStyles(),c=o(),v.setCustomStyles(c),v.addListeners(),v.appendTo(t.wrapper),a=function(){v.destroy()},l&&l.addEventListener("transitionstart",n)}function o(){return[t,f,m].reduce(function(h,_){return Object.keys(h).length||typeof _.ctaStyles!="object"?h:_.ctaStyles},{})}function s(){l&&l.removeEventListener("transitionstart",n),a&&a(),u.dispose()}if(!t.callToActionButton)return{render:Function.prototype,dispose:Function.prototype};var a,c,m,f,l,u=new AdmanHTML.AdRenderer(t,e);i.prototype._setStyles=function(h,_){AdmanHTML.Utils.setStyle(h,_)},i.prototype.setStyles=function(){this._setStyles(this.ctaButtonEl,{position:"absolute","font-family":"Roboto","font-style":"normal","font-weight":"500","font-size":"14px","line-height":"18px",transition:"background-color .15s ease-out,opacity .15s ease-out, transform 250ms cubic-bezier(0.455, 0.03, 0.515, 0.955)",border:"0.5px solid "+this.background,"box-shadow":this.boxShadow,height:"36px",cursor:"pointer",display:"flex","flex-direction":"row","align-items":"center",padding:"0px 20px",gap:"8px",background:this.background,"border-radius":"8px",color:"#FFF",bottom:l?"20px":"16%",left:"20px"})},i.prototype.setCustomStyles=function(h){h.background&&(this.background=h.background),this._setStyles(this.ctaButtonEl,h)},i.prototype.setText=function(h){this.ctaButtonTextEl.innerText=h&&typeof h=="string"?h:"Перейти"},i.prototype.removeFromDOM=function(){this.ctaButtonEl.remove()},i.prototype.addListeners=function(){this.ctaButtonEl.addEventListener("mouseover",this._hoverCTABtnListener.bind(this,!0)),this.ctaButtonEl.addEventListener("mouseout",this._hoverCTABtnListener.bind(this,!1)),this.ctaButtonEl.addEventListener("click",this._clickCTABtnListener.bind(this))},i.prototype.removeListeners=function(){this.ctaButtonEl.removeEventListener("mouseover",this._hoverCTABtnListener.bind(this,!0)),this.ctaButtonEl.removeEventListener("mouseout",this._hoverCTABtnListener.bind(this,!1)),this.ctaButtonEl.removeEventListener("click",this._clickCTABtnListener.bind(this))},i.prototype.destroy=function(){this.removeListeners(),this.removeFromDOM()},i.prototype._clickCTABtnListener=function(){var h=f.ctaLink||f.urlToNavigateOnClick;f.openLinkInPopup?t.openPopup(h||f.trackingLink):window.open(h,"_blank"),e.log(["ctaClick","click"]),t.cb("onClicked")},i.prototype._hoverCTABtnListener=function(h){this._setStyles(this.ctaButtonEl,{background:h?"#1460C9":this.background,"box-shadow":h?"0px 4px 8px 0px #0000000A":this.boxShadow})},i.prototype.appendTo=function(h){h&&(h.appendChild(this.ctaButtonEl),this.isRendered=!0)},i.prototype.moveWithControls=function(){var h=l.classList.contains("hidden");this.ctaButtonEl.style.setProperty("transform","translateY("+(h?"0":"-"+Math.round(l.offsetHeight))+"px)")};var v=new i;return{render:r,dispose:s}},AdmanHTML.CloseBtnRenderer=function(t,e){"use strict";function i(){o.start();var f=e.getSettings(),l=f.controlsStyle||0,u=s[l],v=a[l];v.bg=v.bg||v.width;var h={};for(var _ in m)m.hasOwnProperty(_)&&(h[_]=f[_]!==void 0?f[_]:m[_]);if(h.controlsPaddingTop=h.controlsPaddingTop-h.controlsSafeArea,h.controlsPaddingRight=h.controlsPaddingRight-h.controlsSafeArea,o.setView(AdmanHTML.Utils.renderTemplate(c,{img:u,width:v.width,height:v.height,bg:v.bg}),{position:"absolute",cursor:"pointer"}),AdmanHTML.StyleUtils.applyStyle(o.mainEl,h),v.bg!==v.width){var y=v.bg-v.width,$=function(T){T.target.className==="rb-adman_close"&&(T.target.style.backgroundPosition="-"+y+"px 0")},D=function(T){T.target.className==="rb-adman_close"&&(T.target.style.backgroundPosition="0 0")};o.mainEl.addEventListener("mouseover",$),o.mainEl.addEventListener("mouseout",D),r=function(){o.mainEl.removeEventListener("mouseover",$),o.mainEl.removeEventListener("mouseout",D)}}}function n(){r&&r(),o.dispose()}var r,o=new AdmanHTML.AdRenderer(t,e),s=["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAASCAMAAAAE/YwaAAABTVBMVEUAAAD4+PiLi4sAAAD////////q6uokJCT4+PiDg4MVFRUAAAD////9/f2AgICwsLC8vLyWlpaTk5MAAADq6urGxsYmJiZra2v29vZ2dnba2trQ0NCmpqbb29unp6c0NDTs7OzPz8+xsbH+/v7///9jY2P///+fn5+ysrLe3t5LS0uzs7PBwcEuLi66urpYWFi3t7cAAAD39/fW1tb8/PzGxsba2tpKSkpUVFR/f39sbGyRkZF2dnaqqqqioqLKyspERET6+vr////l5eX////w8PD////////a2tr////Y2Nj///+Pj4////+Dg4N6enq3t7dkZGSGhoaMjIz///+amppeXl7///9MTExxcXE9PT3///////9CQkL////////////n5+fKysrq6uq9vb2jo6Pk5OScnJyoqKjk5OS9vb2IiIhAQEBeXl7///8RDLJoAAAAbnRSTlNegIEhrIlmZmWAZkky/GeCgYFnBoCAdGbzq4GAgGZmZvHfzaefnJiXkpGKcG5uZmZDQ/fq466sqqeZmJeSd2xnZvnw7Onj2dHMyMfAvLe2tLCwpJGQjH92b25ubFpYUUhA4NrQzsrHvqqolnl5b4/gN4MAAAGhSURBVCjPZdFXbxpBEMDxORYSks1VDrgOpphqwKF34t7j3lt6n+//mOFtkX/Srlaj/8NKAzG2CoJVFns5AVZuhwXtMmP5JgqaeQa8I0UF0i/O01lJkE1zgNyrBTmANWnBGgAs+351PK761cq4UvX9ZYAN0yzYdsEsntqnRdPcoOh8WukgdipeCy11Oj0HaJnFDOLXgp1G68gxWxRFarXJd5R/f0G5OKnVIgBbjjNcQvlHE+WDguNsUSQFweTPJsqIbSMIAglg23U1e30+yQxd192m6MowDCVkIe4pBrkC2I3H4xcf3yN+7sfJLkV3iqLchGi0c6OQO4B9TdPO5tFSXyP7FEWTyeTlJn5APP5HzyjAoapenKTnk0xfVdVDiu7r9esdlM/2UB5e1+v3AGHPG9DHj+gcjDwvTNHj7PYY8eft309oXc5mjwBZfZRB/DboraN1outZip5SqZVEYoWu+Z16oh3oer7bzeujXrc30PUcRc+vFzzTDkILaAe88fBW8NDgvKS+EaglDizReCdoJBgrlyKCUplBjHEQcBZ7OfkPWYpTXkAiSDwAAAAASUVORK5CYII=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANBAMAAACAxflPAAAAGFBMVEX///8AAAD///////////////////////8GrCwdAAAACHRSTlPMAKZNgI0NmlQIVC0AAABMSURBVAjXYxAUVmBQFhRgEFNgYGBQE2AQYgACJgEGA6YAhiAGAwYFVhEWcQaQpKOhAwMIMAsDCRgfLC8KlDdgKmAoYjCA6oebBzMfAF6oBtnQTZWMAAAAAElFTkSuQmCC","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAA0CAMAAABRjo0fAAAARVBMVEUAAAAAAAAAAAD///+3t7e3t7cAAAAtLS3FxcUAAAAtLS3z8/Px8fHIyMjCwsJKSkpKSkoAAAAAAAD29vbi4uLi4uL////qCBnnAAAAFnRSTlMAgE2Zx3c4jHxiVJLy0s2VWR8K9eSJJoi7pQAAAS1JREFUWMPs0DkSwzAIQNFoV+R90/2PGg0DTQI2RQoX/hUN84ReT09Pf22JViwu/E58G7F3ZFdWZERqZXaQEamVgdCRY95Hjiwx/2YvW37eZi6L/EEld46pywVOYg9KQ1+Z+iHxJ4EDDEuB9L0DzlaFNpBYKDuxLEFDFRtEqJOhToJ6GepFyJ0kQfWku0DHXLLDcpkPDbRPaazYmKZdBc1tCg4KbZw10NQmXyHfxkkFFQsSOrZooGRAQsckFZQtSgGGrIFGg5KHYdRABISAoAIiwHsEVRBJ6KggktDRQCSRo4FIIkcDkUSOBiKJnDtCn1EadIMtMVAheQ+uDEuNImhwFarUqCYGV8VHPYsGvnFCi+YW3RqQdGsS062RT69uC906YvTqWo6CUTAKqAkAIPxHpRLLbKUAAAAASUVORK5CYII=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAAAiCAMAAADRYI/HAAAAOVBMVEUAAAD///+7u7uxsbF9fX2Pj4/W1taJiYn39/eTk5PNzc2tra2CgoLx8fHIyMioqKiioqJ3d3fh4eHCLdXsAAAAAXRSTlMAQObYZgAAAPhJREFUSMfszksOgzAMRdFiYoKdL+x/sTWRDJXyppU66BtF6HLk13+/vbTCpac4AtzxFNYTmH32IoQceVrMIXzcQbpNU7pvOcxoNK2Z4reYcS5gJ/kpZigq1BRHyArYkCOx4aLFB9lwst0IEy6Iv4Jo3ZexvSpGUveiJ4woEe2jsIciJLFIuR5FhBNEKq2mDGOlipAuOcpVSMzSITJ+tpgGhpDCMZhiRohcEOKKGxPiCrMbAHHFDYAs44j3wM7BE8VAI4Bm4ItioClAMyBsyg2hsncoD1jKo5jyxEZBsueAJ3sqZsDBWJ5QXjxSXlBTXmVQo/KiZjUKAAVsE9yzWNzOAAAAAElFTkSuQmCC"],a=[{width:18,height:18,bg:36},{width:13,height:13},{width:26,height:26,bg:52},{width:17,height:17,bg:34}],c='<div class="rb-adman_close" style="background:url({{img}});background-size:{{bg}}px 100%;width:{{width}}px;height:{{height}}px""></div>',m={controlsPaddingTop:3,controlsPaddingRight:0,controlsSafeArea:0};return o.onClick=function(f){f.stopPropagation(),f.target.className==="rb-adman_close"&&t.cb("onClosed")},{start:i,dispose:n,setWrapper:o.setWrapper}},AdmanHTML.DebugAdRenderer=function(t,e){"use strict";function i(){n.mainEl=document.createElement("span"),n.start(),n.setView("⚒ "+e.section,{position:"absolute",cursor:"pointer",top:"5px",left:"5px",background:"rgba(204,204,204,0.8)",padding:"5px",color:"#333","border-radius":"6px",font:"12px/19px Tahoma",display:"inline-block","z-index":100})}var n=new AdmanHTML.AdRenderer(t,e),r=e.getAd();return n.onClick=function(){window.open(r.urlToNavigateOnClick,"_blank")},{start:i,dispose:n.dispose}},AdmanHTML.DisclaimerRenderer=function(t,e){"use strict";function i(l,u,v,h){var _=document.createElement("style");_.appendChild(document.createTextNode(" @font-face { font-family: "+l+"; font-style: normal; font-weight: 300; unicode-range: "+h+"; src: url('"+u+"') format('"+v+"'); } ")),document.head.appendChild(_)}function n(){this.isOpened=!1,this.isSmall=!1,this.appendedTo=null,this._advPageUrlPart="https://ads.vk.com/adv_info?",this.actionsWrapperWidth=175,this.infoOrdIdDescription="",this.closeIconSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOS43MzY0MSAwLjI2MzYwNEMxMC4wODc5IDAuNjE1MDc2IDEwLjA4NzkgMS4xODQ5MiA5LjczNjQxIDEuNTM2NEw2LjI3MyA1TDkuNzM2NDEgOC40NjM2MkMxMC4wNTg2IDguNzg1OCAxMC4wODU0IDkuMjkxNDggOS44MTY5NSA5LjY0NDI0TDkuNzM2NDEgOS43MzY0MUM5LjM4NDk0IDEwLjA4NzkgOC44MTUwOSAxMC4wODc5IDguNDYzNjIgOS43MzY0MUw1IDYuMjczTDEuNTM2NCA5LjczNjQxQzEuMTg0OTIgMTAuMDg3OSAwLjYxNTA3NiAxMC4wODc5IDAuMjYzNjA0IDkuNzM2NDFDLTAuMDg3ODY3OSA5LjM4NDk0IC0wLjA4Nzg2NzkgOC44MTUwOSAwLjI2MzYwNCA4LjQ2MzYyTDMuNzI3IDVMMC4yNjM2MDQgMS41MzY0Qy0wLjA1ODU3ODYgMS4yMTQyMSAtMC4wODU0MjcyIDAuNzA4NTM0IDAuMTgzMDU4IDAuMzU1NzY5TDAuMjYzNjA0IDAuMjYzNjA0QzAuNjE1MDc2IC0wLjA4Nzg2OCAxLjE4NDkyIC0wLjA4Nzg2OCAxLjUzNjQgMC4yNjM2MDRMNSAzLjcyN0w4LjQ2MzYyIDAuMjYzNjA0QzguODE1MDkgLTAuMDg3ODY4IDkuMzg0OTQgLTAuMDg3ODY4IDkuNzM2NDEgMC4yNjM2MDRaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjY0Ii8+PC9zdmc+",this.closeIconActiveSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOS43MzY0MSAwLjI2MzYwNEMxMC4wODc5IDAuNjE1MDc2IDEwLjA4NzkgMS4xODQ5MiA5LjczNjQxIDEuNTM2NEw2LjI3MyA1TDkuNzM2NDEgOC40NjM2MkMxMC4wNTg2IDguNzg1OCAxMC4wODU0IDkuMjkxNDggOS44MTY5NSA5LjY0NDI0TDkuNzM2NDEgOS43MzY0MUM5LjM4NDk0IDEwLjA4NzkgOC44MTUwOSAxMC4wODc5IDguNDYzNjIgOS43MzY0MUw1IDYuMjczTDEuNTM2NCA5LjczNjQxQzEuMTg0OTIgMTAuMDg3OSAwLjYxNTA3NiAxMC4wODc5IDAuMjYzNjA0IDkuNzM2NDFDLTAuMDg3ODY3OSA5LjM4NDk0IC0wLjA4Nzg2NzkgOC44MTUwOSAwLjI2MzYwNCA4LjQ2MzYyTDMuNzI3IDVMMC4yNjM2MDQgMS41MzY0Qy0wLjA1ODU3ODYgMS4yMTQyMSAtMC4wODU0MjcyIDAuNzA4NTM0IDAuMTgzMDU4IDAuMzU1NzY5TDAuMjYzNjA0IDAuMjYzNjA0QzAuNjE1MDc2IC0wLjA4Nzg2OCAxLjE4NDkyIC0wLjA4Nzg2OCAxLjUzNjQgMC4yNjM2MDRMNSAzLjcyN0w4LjQ2MzYyIDAuMjYzNjA0QzguODE1MDkgLTAuMDg3ODY4IDkuMzg0OTQgLTAuMDg3ODY4IDkuNzM2NDEgMC4yNjM2MDRaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIxLjAwIi8+PC9zdmc+",this.aboutIconSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNiA2Ljc1QzYgNy4xNjQyMSA2LjMzNTc5IDcuNSA2Ljc1IDcuNUg5LjQzOTM0TDYuMjE5NjcgMTAuNzE5N0M1LjkyNjc4IDExLjAxMjYgNS45MjY3OCAxMS40ODc0IDYuMjE5NjcgMTEuNzgwM0M2LjUxMjU2IDEyLjA3MzIgNi45ODc0NCAxMi4wNzMyIDcuMjgwMzMgMTEuNzgwM0wxMC41IDguNTYwNjZWMTEuMjVDMTAuNSAxMS42NjQyIDEwLjgzNTggMTIgMTEuMjUgMTJDMTEuNjY0MiAxMiAxMiAxMS42NjQyIDEyIDExLjI1VjYuNzVDMTIgNi4zMzU3OSAxMS42NjQyIDYgMTEuMjUgNkg2Ljc1QzYuMzM1NzkgNiA2IDYuMzM1NzkgNiA2Ljc1WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42NCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkgMTcuNUMxMy42OTQ0IDE3LjUgMTcuNSAxMy42OTQ0IDE3LjUgOUMxNy41IDQuMzA1NTggMTMuNjk0NCAwLjUgOSAwLjVDNC4zMDU1OCAwLjUgMC41IDQuMzA1NTggMC41IDlDMC41IDEzLjY5NDQgNC4zMDU1OCAxNy41IDkgMTcuNVpNMTYgOUMxNiAxMi44NjYgMTIuODY2IDE2IDkgMTZDNS4xMzQwMSAxNiAyIDEyLjg2NiAyIDlDMiA1LjEzNDAxIDUuMTM0MDEgMiA5IDJDMTIuODY2IDIgMTYgNS4xMzQwMSAxNiA5WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42NCIvPjwvc3ZnPgo=",this.aboutIconActiveSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNiA2Ljc1QzYgNy4xNjQyMSA2LjMzNTc5IDcuNSA2Ljc1IDcuNUg5LjQzOTM0TDYuMjE5NjcgMTAuNzE5N0M1LjkyNjc4IDExLjAxMjYgNS45MjY3OCAxMS40ODc0IDYuMjE5NjcgMTEuNzgwM0M2LjUxMjU2IDEyLjA3MzIgNi45ODc0NCAxMi4wNzMyIDcuMjgwMzMgMTEuNzgwM0wxMC41IDguNTYwNjZWMTEuMjVDMTAuNSAxMS42NjQyIDEwLjgzNTggMTIgMTEuMjUgMTJDMTEuNjY0MiAxMiAxMiAxMS42NjQyIDEyIDExLjI1VjYuNzVDMTIgNi4zMzU3OSAxMS42NjQyIDYgMTEuMjUgNkg2Ljc1QzYuMzM1NzkgNiA2IDYuMzM1NzkgNiA2Ljc1WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMS4wMCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkgMTcuNUMxMy42OTQ0IDE3LjUgMTcuNSAxMy42OTQ0IDE3LjUgOUMxNy41IDQuMzA1NTggMTMuNjk0NCAwLjUgOSAwLjVDNC4zMDU1OCAwLjUgMC41IDQuMzA1NTggMC41IDlDMC41IDEzLjY5NDQgNC4zMDU1OCAxNy41IDkgMTcuNVpNMTYgOUMxNiAxMi44NjYgMTIuODY2IDE2IDkgMTZDNS4xMzQwMSAxNiAyIDEyLjg2NiAyIDlDMiA1LjEzNDAxIDUuMTM0MDEgMiA5IDJDMTIuODY2IDIgMTYgNS4xMzQwMSAxNiA5WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMS4wMCIvPjwvc3ZnPgo=",this.copyIconSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNiAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNy4yIDJDNS45MTUxMyAyIDUuMDQxNjkgMi4wMDExNyA0LjM2NjU2IDIuMDU2MzNDMy43MDg5MyAyLjExMDA2IDMuMzcyNjMgMi4yMDc0NSAzLjEzODAzIDIuMzI2OThDMi41NzM1NCAyLjYxNDYgMi4xMTQ2IDMuMDczNTQgMS44MjY5OCAzLjYzODAzQzEuNzA3NDUgMy44NzI2MyAxLjYxMDA2IDQuMjA4OTMgMS41NTYzMyA0Ljg2NjU2QzEuNTAxMTcgNS41NDE2OSAxLjUgNi40MTUxMyAxLjUgNy43VjEwLjNDMS41IDEwLjg4NDggMS41MDExNyAxMS4yMzMyIDEuNTIyMjcgMTEuNDkxNEMxLjUzMTI4IDExLjYwMTcgMS41NDIzIDExLjY2NzMgMS41NSAxMS43MDI4VjExLjhDMS41NSAxMi41NjExIDEuNTUgMTMuMDYzNiAxLjYxODM4IDEzLjQ0MThDMS40MTMzMiAxMy40MDk2IDEuMjQ0MjkgMTMuMzU5NiAxLjA5MjAyIDEzLjI4MkMwLjcxNTY5NSAxMy4wOTAzIDAuNDA5NzM0IDEyLjc4NDMgMC4yMTc5ODcgMTIuNDA4QzAgMTEuOTgwMiAwIDExLjQyMDEgMCAxMC4zVjcuN0MwIDUuMTc5NzYgMCAzLjkxOTY1IDAuNDkwNDcxIDIuOTU3MDRDMC45MjE5MDEgMi4xMTAzMSAxLjYxMDMxIDEuNDIxOSAyLjQ1NzA0IDAuOTkwNDcxQzMuNDE5NjUgMC41IDQuNjc5NzYgMC41IDcuMiAwLjVIOS4yQzEwLjMyMDEgMC41IDEwLjg4MDIgMC41IDExLjMwOCAwLjcxNzk4N0MxMS42ODQzIDAuOTA5NzM0IDExLjk5MDMgMS4yMTU2OSAxMi4xODIgMS41OTIwMkMxMi4yNTE5IDEuNzI5MTUgMTIuMjk5NCAxLjg3OTg2IDEyLjMzMTYgMi4wNTgyNEMxMS45NjA1IDIgMTEuNDcxNCAyIDEwLjc1IDJINy4yWiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42NCIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMy4xIDYuN0MzLjEgNS41Nzk5IDMuMSA1LjAxOTg0IDMuMzE3OTkgNC41OTIwMkMzLjUwOTczIDQuMjE1NjkgMy44MTU2OSAzLjkwOTczIDQuMTkyMDIgMy43MTc5OUM0LjYxOTg0IDMuNSA1LjE3OTg5IDMuNSA2LjMgMy41SDEyLjNDMTMuNDIwMSAzLjUgMTMuOTgwMiAzLjUgMTQuNDA4IDMuNzE3OTlDMTQuNzg0MyAzLjkwOTczIDE1LjA5MDMgNC4yMTU2OSAxNS4yODIgNC41OTIwMkMxNS41IDUuMDE5ODQgMTUuNSA1LjU3OTkgMTUuNSA2LjdWMTQuM0MxNS41IDE1LjQyMDEgMTUuNSAxNS45ODAyIDE1LjI4MiAxNi40MDhDMTUuMDkwMyAxNi43ODQzIDE0Ljc4NDMgMTcuMDkwMyAxNC40MDggMTcuMjgyQzEzLjk4MDIgMTcuNSAxMy40MjAxIDE3LjUgMTIuMyAxNy41SDYuM0M1LjE3OTkgMTcuNSA0LjYxOTg0IDE3LjUgNC4xOTIwMiAxNy4yODJDMy44MTU2OSAxNy4wOTAzIDMuNTA5NzMgMTYuNzg0MyAzLjMxNzk5IDE2LjQwOEMzLjEgMTUuOTgwMiAzLjEgMTUuNDIwMSAzLjEgMTQuM1Y2LjdaTTYuMyA1SDEyLjNDMTIuODg0OCA1IDEzLjIzMzIgNS4wMDExNyAxMy40OTE0IDUuMDIyMjdDMTMuNjQ5MSA1LjAzNTE0IDEzLjcxNTMgNS4wNTIxNCAxMy43MzMxIDUuMDU3NjVDMTMuODIyNCA1LjEwNDY5IDEzLjg5NTMgNS4xNzc2NSAxMy45NDI0IDUuMjY2OTNDMTMuOTQ3OSA1LjI4NDY4IDEzLjk2NDkgNS4zNTA5NCAxMy45Nzc3IDUuNTA4NTVDMTMuOTk4OCA1Ljc2NjgxIDE0IDYuMTE1MiAxNCA2LjdWMTQuM0MxNCAxNC44ODQ4IDEzLjk5ODggMTUuMjMzMiAxMy45Nzc3IDE1LjQ5MTRDMTMuOTY0OSAxNS42NDkxIDEzLjk0NzkgMTUuNzE1MyAxMy45NDI0IDE1LjczMzFDMTMuODk1MyAxNS44MjI0IDEzLjgyMjQgMTUuODk1MyAxMy43MzMxIDE1Ljk0MjRDMTMuNzE1MyAxNS45NDc5IDEzLjY0OTEgMTUuOTY0OSAxMy40OTE0IDE1Ljk3NzdDMTMuMjMzMiAxNS45OTg4IDEyLjg4NDggMTYgMTIuMyAxNkg2LjNDNS43MTUyIDE2IDUuMzY2ODEgMTUuOTk4OCA1LjEwODU1IDE1Ljk3NzdDNC45NTA5NCAxNS45NjQ5IDQuODg0NjkgMTUuOTQ3OSA0Ljg2NjkzIDE1Ljk0MjRDNC43Nzc2NSAxNS44OTUzIDQuNzA0NjkgMTUuODIyNCA0LjY1NzY1IDE1LjczMzFDNC42NTIxNCAxNS43MTUzIDQuNjM1MTQgMTUuNjQ5MSA0LjYyMjI3IDE1LjQ5MTRDNC42MDExNyAxNS4yMzMyIDQuNiAxNC44ODQ4IDQuNiAxNC4zVjYuN0M0LjYgNi4xMTUyIDQuNjAxMTcgNS43NjY4MSA0LjYyMjI3IDUuNTA4NTVDNC42MzUxNCA1LjM1MDkzIDQuNjUyMTQgNS4yODQ2OCA0LjY1NzY1IDUuMjY2OTNDNC43MDQ2OSA1LjE3NzY1IDQuNzc3NjUgNS4xMDQ2OSA0Ljg2NjkzIDUuMDU3NjVDNC44ODQ2OCA1LjA1MjE0IDQuOTUwOTQgNS4wMzUxNCA1LjEwODU1IDUuMDIyMjdDNS4zNjY4MSA1LjAwMTE3IDUuNzE1MiA1IDYuMyA1Wk0xMy43MzgzIDUuMDU5NDVMMTMuNzM1MiA1LjA1ODMzQzEzLjczNzQgNS4wNTkwNCAxMy43MzgzIDUuMDU5NDMgMTMuNzM4MyA1LjA1OTQ1Wk0xMy45NDA1IDUuMjYxNzVDMTMuOTQwNiA1LjI2MTY5IDEzLjk0MSA1LjI2MjY0IDEzLjk0MTcgNS4yNjQ3OEwxMy45NDA1IDUuMjYxNzVaTTEzLjk0MDUgMTUuNzM4M0wxMy45NDE3IDE1LjczNTJDMTMuOTQxIDE1LjczNzMgMTMuOTQwNiAxNS43MzgzIDEzLjk0MDUgMTUuNzM4M1pNMTMuNzM4MiAxNS45NDA1QzEzLjczODMgMTUuOTQwNiAxMy43Mzc0IDE1Ljk0MDkgMTMuNzM1MyAxNS45NDE3TDEzLjczODIgMTUuOTQwNVpNNC44NjE3NSAxNS45NDA1TDQuODY0NzggMTUuOTQxN0M0Ljg2MjY1IDE1Ljk0MSA0Ljg2MTY5IDE1Ljk0MDYgNC44NjE3NSAxNS45NDA1Wk00LjY1OTQ1IDE1LjczODNDNC42NTk0MyAxNS43MzgzIDQuNjU5MDQgMTUuNzM3NCA0LjY1ODMzIDE1LjczNTJMNC42NTk0NSAxNS43MzgzWk00LjY1OTQ1IDUuMjYxNzVMNC42NTgzMyA1LjI2NDc4QzQuNjU5MDQgNS4yNjI2NCA0LjY1OTQzIDUuMjYxNjkgNC42NTk0NSA1LjI2MTc1Wk00Ljg2MjE0IDUuMDU5MjdDNC44NjIxMiA1LjA1OTI2IDQuODYxODUgNS4wNTkzOCA0Ljg2MjE0IDUuMDU5MjdMNC44NjQ3OCA1LjA1ODMzQzQuODYzNDcgNS4wNTg3NyA0Ljg2MjYgNS4wNTkwOCA0Ljg2MjE0IDUuMDU5MjdaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjY0Ii8+PC9zdmc+",this.copyIconActiveSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNiAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNy4yIDJDNS45MTUxMyAyIDUuMDQxNjkgMi4wMDExNyA0LjM2NjU2IDIuMDU2MzNDMy43MDg5MyAyLjExMDA2IDMuMzcyNjMgMi4yMDc0NSAzLjEzODAzIDIuMzI2OThDMi41NzM1NCAyLjYxNDYgMi4xMTQ2IDMuMDczNTQgMS44MjY5OCAzLjYzODAzQzEuNzA3NDUgMy44NzI2MyAxLjYxMDA2IDQuMjA4OTMgMS41NTYzMyA0Ljg2NjU2QzEuNTAxMTcgNS41NDE2OSAxLjUgNi40MTUxMyAxLjUgNy43VjEwLjNDMS41IDEwLjg4NDggMS41MDExNyAxMS4yMzMyIDEuNTIyMjcgMTEuNDkxNEMxLjUzMTI4IDExLjYwMTcgMS41NDIzIDExLjY2NzMgMS41NSAxMS43MDI4VjExLjhDMS41NSAxMi41NjExIDEuNTUgMTMuMDYzNiAxLjYxODM4IDEzLjQ0MThDMS40MTMzMiAxMy40MDk2IDEuMjQ0MjkgMTMuMzU5NiAxLjA5MjAyIDEzLjI4MkMwLjcxNTY5NSAxMy4wOTAzIDAuNDA5NzM0IDEyLjc4NDMgMC4yMTc5ODcgMTIuNDA4QzAgMTEuOTgwMiAwIDExLjQyMDEgMCAxMC4zVjcuN0MwIDUuMTc5NzYgMCAzLjkxOTY1IDAuNDkwNDcxIDIuOTU3MDRDMC45MjE5MDEgMi4xMTAzMSAxLjYxMDMxIDEuNDIxOSAyLjQ1NzA0IDAuOTkwNDcxQzMuNDE5NjUgMC41IDQuNjc5NzYgMC41IDcuMiAwLjVIOS4yQzEwLjMyMDEgMC41IDEwLjg4MDIgMC41IDExLjMwOCAwLjcxNzk4N0MxMS42ODQzIDAuOTA5NzM0IDExLjk5MDMgMS4yMTU2OSAxMi4xODIgMS41OTIwMkMxMi4yNTE5IDEuNzI5MTUgMTIuMjk5NCAxLjg3OTg2IDEyLjMzMTYgMi4wNTgyNEMxMS45NjA1IDIgMTEuNDcxNCAyIDEwLjc1IDJINy4yWiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMS4wMCIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMy4xIDYuN0MzLjEgNS41Nzk5IDMuMSA1LjAxOTg0IDMuMzE3OTkgNC41OTIwMkMzLjUwOTczIDQuMjE1NjkgMy44MTU2OSAzLjkwOTczIDQuMTkyMDIgMy43MTc5OUM0LjYxOTg0IDMuNSA1LjE3OTg5IDMuNSA2LjMgMy41SDEyLjNDMTMuNDIwMSAzLjUgMTMuOTgwMiAzLjUgMTQuNDA4IDMuNzE3OTlDMTQuNzg0MyAzLjkwOTczIDE1LjA5MDMgNC4yMTU2OSAxNS4yODIgNC41OTIwMkMxNS41IDUuMDE5ODQgMTUuNSA1LjU3OTkgMTUuNSA2LjdWMTQuM0MxNS41IDE1LjQyMDEgMTUuNSAxNS45ODAyIDE1LjI4MiAxNi40MDhDMTUuMDkwMyAxNi43ODQzIDE0Ljc4NDMgMTcuMDkwMyAxNC40MDggMTcuMjgyQzEzLjk4MDIgMTcuNSAxMy40MjAxIDE3LjUgMTIuMyAxNy41SDYuM0M1LjE3OTkgMTcuNSA0LjYxOTg0IDE3LjUgNC4xOTIwMiAxNy4yODJDMy44MTU2OSAxNy4wOTAzIDMuNTA5NzMgMTYuNzg0MyAzLjMxNzk5IDE2LjQwOEMzLjEgMTUuOTgwMiAzLjEgMTUuNDIwMSAzLjEgMTQuM1Y2LjdaTTYuMyA1SDEyLjNDMTIuODg0OCA1IDEzLjIzMzIgNS4wMDExNyAxMy40OTE0IDUuMDIyMjdDMTMuNjQ5MSA1LjAzNTE0IDEzLjcxNTMgNS4wNTIxNCAxMy43MzMxIDUuMDU3NjVDMTMuODIyNCA1LjEwNDY5IDEzLjg5NTMgNS4xNzc2NSAxMy45NDI0IDUuMjY2OTNDMTMuOTQ3OSA1LjI4NDY4IDEzLjk2NDkgNS4zNTA5NCAxMy45Nzc3IDUuNTA4NTVDMTMuOTk4OCA1Ljc2NjgxIDE0IDYuMTE1MiAxNCA2LjdWMTQuM0MxNCAxNC44ODQ4IDEzLjk5ODggMTUuMjMzMiAxMy45Nzc3IDE1LjQ5MTRDMTMuOTY0OSAxNS42NDkxIDEzLjk0NzkgMTUuNzE1MyAxMy45NDI0IDE1LjczMzFDMTMuODk1MyAxNS44MjI0IDEzLjgyMjQgMTUuODk1MyAxMy43MzMxIDE1Ljk0MjRDMTMuNzE1MyAxNS45NDc5IDEzLjY0OTEgMTUuOTY0OSAxMy40OTE0IDE1Ljk3NzdDMTMuMjMzMiAxNS45OTg4IDEyLjg4NDggMTYgMTIuMyAxNkg2LjNDNS43MTUyIDE2IDUuMzY2ODEgMTUuOTk4OCA1LjEwODU1IDE1Ljk3NzdDNC45NTA5NCAxNS45NjQ5IDQuODg0NjkgMTUuOTQ3OSA0Ljg2NjkzIDE1Ljk0MjRDNC43Nzc2NSAxNS44OTUzIDQuNzA0NjkgMTUuODIyNCA0LjY1NzY1IDE1LjczMzFDNC42NTIxNCAxNS43MTUzIDQuNjM1MTQgMTUuNjQ5MSA0LjYyMjI3IDE1LjQ5MTRDNC42MDExNyAxNS4yMzMyIDQuNiAxNC44ODQ4IDQuNiAxNC4zVjYuN0M0LjYgNi4xMTUyIDQuNjAxMTcgNS43NjY4MSA0LjYyMjI3IDUuNTA4NTVDNC42MzUxNCA1LjM1MDkzIDQuNjUyMTQgNS4yODQ2OCA0LjY1NzY1IDUuMjY2OTNDNC43MDQ2OSA1LjE3NzY1IDQuNzc3NjUgNS4xMDQ2OSA0Ljg2NjkzIDUuMDU3NjVDNC44ODQ2OCA1LjA1MjE0IDQuOTUwOTQgNS4wMzUxNCA1LjEwODU1IDUuMDIyMjdDNS4zNjY4MSA1LjAwMTE3IDUuNzE1MiA1IDYuMyA1Wk0xMy43MzgzIDUuMDU5NDVMMTMuNzM1MiA1LjA1ODMzQzEzLjczNzQgNS4wNTkwNCAxMy43MzgzIDUuMDU5NDMgMTMuNzM4MyA1LjA1OTQ1Wk0xMy45NDA1IDUuMjYxNzVDMTMuOTQwNiA1LjI2MTY5IDEzLjk0MSA1LjI2MjY0IDEzLjk0MTcgNS4yNjQ3OEwxMy45NDA1IDUuMjYxNzVaTTEzLjk0MDUgMTUuNzM4M0wxMy45NDE3IDE1LjczNTJDMTMuOTQxIDE1LjczNzMgMTMuOTQwNiAxNS43MzgzIDEzLjk0MDUgMTUuNzM4M1pNMTMuNzM4MiAxNS45NDA1QzEzLjczODMgMTUuOTQwNiAxMy43Mzc0IDE1Ljk0MDkgMTMuNzM1MyAxNS45NDE3TDEzLjczODIgMTUuOTQwNVpNNC44NjE3NSAxNS45NDA1TDQuODY0NzggMTUuOTQxN0M0Ljg2MjY1IDE1Ljk0MSA0Ljg2MTY5IDE1Ljk0MDYgNC44NjE3NSAxNS45NDA1Wk00LjY1OTQ1IDE1LjczODNDNC42NTk0MyAxNS43MzgzIDQuNjU5MDQgMTUuNzM3NCA0LjY1ODMzIDE1LjczNTJMNC42NTk0NSAxNS43MzgzWk00LjY1OTQ1IDUuMjYxNzVMNC42NTgzMyA1LjI2NDc4QzQuNjU5MDQgNS4yNjI2NCA0LjY1OTQzIDUuMjYxNjkgNC42NTk0NSA1LjI2MTc1Wk00Ljg2MjE0IDUuMDU5MjdDNC44NjIxMiA1LjA1OTI2IDQuODYxODUgNS4wNTkzOCA0Ljg2MjE0IDUuMDU5MjdMNC44NjQ3OCA1LjA1ODMzQzQuODYzNDcgNS4wNTg3NyA0Ljg2MjYgNS4wNTkwOCA0Ljg2MjE0IDUuMDU5MjdaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIxLjAwIi8+PC9zdmc+",this.adchoiceIconSrc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcgMTIuNUMxMC4wMzc2IDEyLjUgMTIuNSAxMC4wMzc2IDEyLjUgN0MxMi41IDMuOTYyNDMgMTAuMDM3NiAxLjUgNyAxLjVDMy45NjI0MyAxLjUgMS41IDMuOTYyNDMgMS41IDdDMS41IDEwLjAzNzYgMy45NjI0MyAxMi41IDcgMTIuNVpNMTQgN0MxNCAxMC44NjYgMTAuODY2IDE0IDcgMTRDMy4xMzQwMSAxNCAwIDEwLjg2NiAwIDdDMCAzLjEzNDAxIDMuMTM0MDEgMCA3IDBDMTAuODY2IDAgMTQgMy4xMzQwMSAxNCA3WiIgZmlsbD0id2hpdGUiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcgMTFDNi41ODU3OSAxMSA2LjI1IDEwLjY2NDIgNi4yNSAxMC4yNVY2Ljc1QzYuMjUgNi4zMzU3OSA2LjU4NTc5IDYgNyA2QzcuNDE0MjEgNiA3Ljc1IDYuMzM1NzkgNy43NSA2Ljc1VjEwLjI1QzcuNzUgMTAuNjY0MiA3LjQxNDIxIDExIDcgMTFaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik02LjEwMDAyIDMuOUM2LjEwMDAyIDMuNDAyOTUgNi41MDI5NyAzIDcuMDAwMDIgM0M3LjQ5NzA4IDMgNy45MDAwMiAzLjQwMjk1IDcuOTAwMDIgMy45QzcuOTAwMDIgNC4zOTcwNiA3LjQ5NzA4IDQuOCA3LjAwMDAyIDQuOEM2LjUwMjk3IDQuOCA2LjEwMDAyIDQuMzk3MDYgNi4xMDAwMiAzLjlaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPgo=",this.adActionsEl=document.createElement("div"),this.adActionsEl.className="rb-adman-ad-actions",this.disclaimerWrapperEl=document.createElement("div"),this.disclaimerWrapperEl.className="disclaimer-wrapper",this.disclaimerEl=document.createElement("span"),this.disclaimerEl.className="disclaimer-text",this.remainTimeEl=document.createElement("span"),this.remainTimeEl.className="remain-time",this.adChoiceEl=document.createElement("span"),this.adChoiceEl.className="ad-choice",this.actionsWrapperEl=document.createElement("div"),this.actionsWrapperEl.className="actions-wrapper",this.actionsHeaderEl=document.createElement("div"),this.actionsHeaderEl.className="actions-header",this.actionsHeaderText=document.createElement("span"),this.actionsHeaderText.className="actions-header-text",this.actionsHeaderButton=document.createElement("span"),this.actionsHeaderButton.className="actions-header-close",this.actionsAboutEl=document.createElement("div"),this.actionsAboutEl.className="actions-about",this.actionsAboutPictureEl=document.createElement("span"),this.actionsAboutPictureEl.className="actions-about-picture",this.actionsAboutTextEl=document.createElement("span"),this.actionsAboutTextEl.className="actions-about-text",this.actionsCopyEl=document.createElement("div"),this.actionsCopyEl.className="actions-copy",this.actionsCopyPictureEl=document.createElement("div"),this.actionsCopyPictureEl.className="actions-copy-picture",this.actionsCopyTextEl=document.createElement("div"),this.actionsCopyTextEl.className="actions-copy-text",this.infoWrapperEl=document.createElement("div"),this.infoWrapperEl.className="info-wrapper",this.infoOrdIdEl=document.createElement("div"),this.infoOrdIdEl.className="info-ord-id",this.infoOrdIdDescriptionEl=document.createElement("span"),this.infoOrdIdDescriptionEl.className="info-ord-id-description",this.infoOrdIdValueEl=document.createElement("span"),this.infoOrdIdValueEl.className="info-ord-id-value"}function r(){m.start();var l=e.getSettings(),u=e.getAd();if(typeof u=="object"&&typeof u.adActionsConfig=="object"&&u.adActionsConfig.members===null||typeof l=="object"&&typeof l.adActionsConfig=="object"&&l.adActionsConfig.members===null)return void s();var v={originalBannerId:u.bannerID,cipherBannerID:u.cipherBannerID?u.cipherBannerID:null,bannerOrdId:u.ordID||null,advData:u.advData||null},h=AdmanHTML.Utils.adActionsConfigPrepare(u?u.adActionsConfig:null,l?l.adActionsConfig:null);f.build(h,v),f.init(),f.addListeners(),f.appendTo(t.wrapper),a=function(){f.destroy()}}function o(l,u){var v=Math.floor(u-l);v||(v="00"),f.updateRemainTime(v)}function s(){a&&a(),c&&typeof c=="object"&&typeof c.remove=="function"&&c.remove(),m.dispose()}if(!t.disclaimer)return{render:Function.prototype,onTimeRemained:Function.prototype,dispose:Function.prototype};var a,c,m=new AdmanHTML.AdRenderer(t,e);[{name:"Roboto",description:"cyrillic-ext",url:"https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2",format:"woff2",unicodeRange:"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F"},{name:"Roboto",description:"cyrillic",url:"https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2",format:"woff2",unicodeRange:"U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116"},{name:"Roboto",description:"latin-ext",url:"https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2",format:"woff2",unicodeRange:"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF"},{name:"Roboto",description:"latin",url:"https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2",format:"woff2",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"}].forEach(function(l){i(l.name,l.url,l.format,l.unicodeRange)}),n.prototype.preBuild=function(){this.actionsHeaderEl.appendChild(this.actionsHeaderText),this.actionsHeaderEl.appendChild(this.actionsHeaderButton),this.actionsAboutEl.appendChild(this.actionsAboutPictureEl),this.actionsAboutEl.appendChild(this.actionsAboutTextEl),this.actionsCopyEl.appendChild(this.actionsCopyPictureEl),this.actionsCopyEl.appendChild(this.actionsCopyTextEl),this.infoOrdIdEl.appendChild(this.infoOrdIdDescriptionEl),this.infoOrdIdEl.appendChild(this.infoOrdIdValueEl),this.infoWrapperEl.appendChild(this.infoOrdIdEl),this.actionsWrapperEl.appendChild(this.actionsHeaderEl),this.actionsWrapperEl.appendChild(this.actionsAboutEl),this.actionsWrapperEl.appendChild(this.actionsCopyEl),this.actionsWrapperEl.appendChild(this.infoWrapperEl),this.adActionsEl.appendChild(this.disclaimerWrapperEl),this.adActionsEl.appendChild(this.actionsWrapperEl)},n.prototype.build=function(l,u){this.config=l,this.data=u,this.config.members.forEach(function(v){switch(v){case"disclaimer":this.disclaimerWrapperEl.appendChild(this.disclaimerEl);break;case"timer":this.disclaimerWrapperEl.appendChild(this.remainTimeEl);break;case"adchoice":this.disclaimerWrapperEl.appendChild(this.adChoiceEl)}}.bind(this))},n.prototype.init=function(){this._fillData(),this._setInitialStyles(),this._setSpecificStyles()},n.prototype._setSpecificStyles=function(){var l={};this.config.positionX==="left"&&(l.left=this.config.offsetX),this.config.positionX==="right"&&(l.right=this.config.offsetX),this.config.positionY==="top"&&(l.top=this.config.offsetY),this.config.positionY==="bottom"&&(l.bottom=this.config.offsetY),this._setStyles(this.adActionsEl,l),this.data.bannerOrdId||(this._setStyles(this.infoWrapperEl,{display:"none"}),this._setStyles(this.actionsCopyEl,{display:"none"}))},n.prototype._fillData=function(){this.disclaimerEl.innerText=this.config.disclaimerText,this.actionsHeaderText.innerText=this.config.headerText,this.actionsAboutTextEl.innerText=this.config.aboutText,this.actionsCopyTextEl.innerText=this.data.bannerOrdId?"Скопировать ERID":this.config.copyText,this.infoOrdIdDescriptionEl.innerText=this.infoOrdIdDescription,this.infoOrdIdValueEl.innerText=this.data.bannerOrdId||this.data.originalBannerId||this.data.cipherBannerID},n.prototype._setInitialStyles=function(){this._setStyles(this.disclaimerWrapperEl,{display:"flex","flex-direction":"row","align-items":"center",gap:"8px"}),this._setStyles(this.adChoiceEl,{"background-image":'url("'+this.adchoiceIconSrc+'")',"background-repeat":"no-repeat",width:"14px",height:"14px","background-position":"center"}),this._setStyles(this.actionsHeaderButton,{"background-image":'url("'+this.closeIconSrc+'")',"background-repeat":"no-repeat",width:"10px","background-position":"center"}),this._setStyles(this.actionsAboutPictureEl,{"background-image":'url("'+this.aboutIconSrc+'")',"background-repeat":"no-repeat",width:"17px",height:"17px","background-position":"center"}),this._setStyles(this.actionsCopyPictureEl,{"background-image":'url("'+this.copyIconSrc+'")',"background-repeat":"no-repeat",width:"17px",height:"17px","background-position":"center"}),this._setStyles(this.actionsCopyTextEl,{"margin-left":"8px"}),this._setStyles(this.actionsAboutTextEl,{"margin-left":"8px"}),this._setStyles(this.actionsHeaderEl,{width:"100%",display:"flex"}),this._setStyles(this.infoWrapperEl,{width:"100%",display:"flex",cursor:"initial"}),this._setStyles(this.infoOrdIdValueEl,{"margin-left":"9px",color:"rgba(255, 255, 255, 0.8)"}),this._setStyles(this.infoOrdIdDescriptionEl,{width:"17px","text-align":"center"}),this._setStyles(this.actionsAboutEl,{width:"100%",display:"flex",color:"rgba(255, 255, 255, 0.72)","border-radius":"8px","margin-top":"8px"}),this._setStyles(this.actionsCopyEl,{width:"100%",display:"flex",color:"rgba(255, 255, 255, 0.72)","border-radius":"8px","margin-top":"8px"}),this._setStyles(this.infoOrdIdEl,{width:"100%",display:"flex",color:"rgba(255, 255, 255, 0.72)","border-radius":"8px"}),this._setStyles(this.actionsHeaderEl,{width:"100%",display:"flex","flex-direction":"row","justify-content":"space-between"}),this._setStyles(this.actionsWrapperEl,{"flex-direction":"column","align-items":"flex-start",display:"none",width:this.actionsWrapperWidth+"px"}),this._setStyles(this.adActionsEl,{"border-radius":"5px",color:"white",cursor:"pointer",display:"flex","flex-direction":"row","align-items":"center",padding:"3px 6px",gap:"2px",position:"absolute","font-family":"Roboto","font-style":"normal","font-weight":"300","font-size":"12px","line-height":"15px"});var l=".rb-adman-ad-actions { background-color: rgba(17,17,17,0.4)!important} .rb-adman-ad-actions:hover{ background-color: rgba(17,17,17,0.8)!important} div.videoplayer_ads_skip {border-radius: 5px !important; background: rgba(17, 17, 17, 0.4) !important; color: white !important; cursor: pointer !important; padding: 5px 8px 5px 8px !important; font-weight: 300 !important; font-size: 12px !important; line-height: 15px !important; right: 6px !important; top: 6px !important;}";c=document.createElement("style"),c.styleSheet?c.styleSheet.cssText=l:c.appendChild(document.createTextNode(l)),this.adActionsEl.appendChild(c),this._setStyles(this.adChoiceEl,{width:"14px",height:"14px"})},n.prototype._setStyles=function(l,u){AdmanHTML.Utils.setStyle(l,u)},n.prototype.updateRemainTime=function(l){var u=Math.trunc(l/60),v=l-60*u;u=u.toString(),v=v.toString(),v.length===1&&(v="0"+v),this.remainTimeEl.innerText=u+":"+v},n.prototype.addListeners=function(){this.actionsAboutEl.addEventListener("mouseover",this._setHoverActionsAboutListener.bind(this,!0)),this.actionsAboutEl.addEventListener("mouseout",this._setHoverActionsAboutListener.bind(this,!1)),this.actionsAboutEl.addEventListener("click",this._redirToAboutAdvPageListener.bind(this)),this.actionsCopyEl.addEventListener("mouseover",this._setHoverActionsCopyListener.bind(this,!0)),this.actionsCopyEl.addEventListener("mouseout",this._setHoverActionsCopyListener.bind(this,!1)),this.actionsCopyEl.addEventListener("click",this._copyBannerOrdIdToClipboardListener.bind(this)),this.actionsHeaderButton.addEventListener("mouseover",this._setHoverActionsHeaderButton.bind(this,!0)),this.actionsHeaderButton.addEventListener("mouseout",this._setHoverActionsHeaderButton.bind(this,!1)),this.adActionsEl.addEventListener("click",this._clickListener.bind(this)),this.actionsHeaderButton.addEventListener("click",this._actionsHeaderButtonListener.bind(this))},n.prototype._redirToAboutAdvPageListener=function(l){l.stopPropagation();var u=this.data.advData?"data":"id",v=this.data.advData?this.data.advData:this.data.cipherBannerID;window.open(this._advPageUrlPart+u+"="+v,"_blank")},n.prototype._copyToClipboard=function(l){var u=document.createElement("textarea");document.body.appendChild(u),u.value=l,u.select(),document.execCommand("copy"),document.body.removeChild(u)},n.prototype._copyBannerOrdIdToClipboardListener=function(l){l.stopPropagation(),this._copyToClipboard(this.data.bannerOrdId)},n.prototype._setAdActionsHoverListener=function(l){l?AdmanHTML.Utils.setStyle(this.adActionsEl,{background:"rgba(17,17,17,.72)"}):AdmanHTML.Utils.setStyle(this.adActionsEl,{background:"rgba(17,17,17,.8)"})},n.prototype._actionsHeaderButtonListener=function(l){l.stopPropagation(),this._setStyles(this.actionsWrapperEl,{display:"none"}),this._setStyles(this.disclaimerWrapperEl,{display:"flex"}),this.isSmall&&this._setStyles(this.adActionsEl,{left:this.config.positionX==="left"?this.config.offsetX:"unset",right:this.config.positionX==="right"?this.config.offsetX:"unset",bottom:this.config.positionY==="bottom"?this.config.offsetY:"unset",top:this.config.positionY==="top"?this.config.offsetY:"unset","font-size":"12px",padding:"5px 6px 5px 8px"}),this.isOpened=!1},n.prototype._clickListener=function(l){l.stopPropagation(),!this.isOpened&&(this.data.advData||this.data.cipherBannerID||this.data.bannerOrdId)&&(this._setStyles(this.actionsWrapperEl,{display:"flex"}),this._setStyles(this.disclaimerWrapperEl,{display:"none"}),this.isSmall&&(this._setStyles(this.adActionsEl,{left:"2px",right:"2px"}),this.config.positionY==="top"?this._setStyles(this.adActionsEl,{top:this.config.offsetY}):this._setStyles(this.adActionsEl,{bottom:this.config.offsetY}),this._setStyles(this.adActionsEl,{"font-size":"12px",padding:"4px 6px 4px 9px"})),this.isOpened=!0)},n.prototype._setHoverActionsCopyListener=function(l){l?(this._setStyles(this.actionsCopyPictureEl,{"background-image":'url("'+this.copyIconActiveSrc+'")'}),this._setStyles(this.actionsCopyEl,{color:"rgba(255, 255, 255, 0.8)"})):(this._setStyles(this.actionsCopyPictureEl,{"background-image":'url("'+this.copyIconSrc+'")'}),this._setStyles(this.actionsCopyEl,{color:"rgba(255, 255, 255, 0.72)"}))},n.prototype._setHoverActionsAboutListener=function(l){l?(this._setStyles(this.actionsAboutPictureEl,{"background-image":'url("'+this.aboutIconActiveSrc+'")'}),this._setStyles(this.actionsAboutEl,{color:"rgba(255, 255, 255, 0.8)"})):(this._setStyles(this.actionsAboutPictureEl,{"background-image":'url("'+this.aboutIconSrc+'")'}),this._setStyles(this.actionsAboutEl,{color:"rgba(255, 255, 255, 0.72)"}))},n.prototype._setHoverActionsHeaderButton=function(l){l?this._setStyles(this.actionsHeaderButton,{"background-image":'url("'+this.closeIconActiveSrc+'")'}):this._setStyles(this.actionsHeaderButton,{"background-image":'url("'+this.closeIconSrc+'")'})},n.prototype.appendTo=function(l){if(l){try{var u=window.getComputedStyle(l).width,v=this.actionsWrapperWidth+parseInt(this.adActionsEl.style.paddingLeft)+parseInt(this.adActionsEl.style.paddingRight);(u?parseInt(u):v+1)<=v&&(this.isSmall=!0,this._setStyles(this.adActionsEl,{"border-radius":"6px","font-size":"12px",padding:"5px 6px 5px 8px"}))}catch(h){console.warn("Failed detect small wrapper size",h)}this.appendedTo=l,l.appendChild(this.adActionsEl)}},n.prototype.getEl=function(){return this.adActionsEl},n.prototype.destroy=function(){this.removeListeners(),this.removeFromDOM()},n.prototype.removeFromDOM=function(){this.adActionsEl.remove()},n.prototype.removeListeners=function(){this.actionsAboutEl.removeEventListener("mouseover",this._setHoverActionsAboutListener.bind(this,!0)),this.actionsAboutEl.removeEventListener("mouseout",this._setHoverActionsAboutListener.bind(this,!1)),this.actionsCopyEl.removeEventListener("mouseover",this._setHoverActionsCopyListener.bind(this,!0)),this.actionsCopyEl.removeEventListener("mouseout",this._setHoverActionsCopyListener.bind(this,!1)),this.actionsHeaderButton.removeEventListener("mouseover",this._setHoverActionsHeaderButton.bind(this,!0)),this.actionsHeaderButton.removeEventListener("mouseout",this._setHoverActionsHeaderButton.bind(this,!1)),this.adActionsEl.removeEventListener("mouseover",this._setAdActionsHoverListener.bind(this,!0)),this.adActionsEl.removeEventListener("mouseout",this._setAdActionsHoverListener.bind(this,!1)),this.adActionsEl.removeEventListener("click",this._clickListener.bind(this)),this.actionsHeaderButton.removeEventListener("click",this._actionsHeaderButtonListener.bind(this))};var f=new n;return f.preBuild(),{render:r,onTimeRemained:o,dispose:s}},AdmanHTML.EmptyAdRenderer=function(t,e){"use strict";function i(){e.log("sectionEmpty"),setTimeout(function(){t.cb("onCompleted")})}return{start:i}},AdmanHTML.HtmlAdRenderer=function(t,e){"use strict";function i(){A.start(),M=e.getAd(),T=M.duration,D=$(),D.width="100%",D.height="100%",D.setAttribute("style","display:block;width:100%;height:100%"),A.setView(D,{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"transparent"}),AdmanHTML.Utils.isElement(t.videoEl)&&t.videoEl.parentNode===A.mainEl.parentNode&&A.mainEl.parentNode.insertBefore(A.mainEl,t.videoEl.nextSibling),D.contentWindow||D.contentDocument?r():D.onload=function(Y){r()},L&&L.render(),S&&S.render()}function n(Y){Y.preventDefault(),Y.stopPropagation(),e.log("click"),t.cb("onClicked"),t.openPopup(M.urlToNavigateOnClick||M.trackingLink)}function r(){function Y(){var be=D.contentWindow.document.body||D.contentDocument.body;be&&be.addEventListener("click",n,!0)}E=D.contentWindow?D.contentWindow.document:D.contentDocument,E.open(),O?(E.write('<!DOCTYPE html><html style="width: 100%; height: 100%"><head></head><body>'),E.write(M.src),E.write("</body></html>"),z=document.querySelector("div.videoplayer_controls"),z&&(Q=z.style.display,z.style.display="none"),(ce=document.querySelector("div.videoplayer_ads_skip"))&&(X=ce.style.display,ce.style.display="none")):(E.write(M.src),e.log("render")),E.close(),k=AdmanHTML.Utils.getElementViewport(t.wrapper),k.addEventListener("message",l),M.openLinkInPopup&&(M.urlToNavigateOnClick||M.trackingLink)&&(D.contentWindow.document.body||D.contentDocument.body?Y():D.onload=Y),t.viewability.start(A.mainEl,e),c(),A.onStart()}function o(){g||(g=!0,R+=Date.now()-U,clearInterval(b),b=null,z?z.style.display=Q:O&&u("pauseAd",[]),t.cb("onPaused"))}function s(){return M.creativeType==="video-motion"}function a(){g&&(g=!1,c(),t.cb("onPlayed"))}function c(){if(!b){if(O){if(!P)return;z?z.style.display="none":u("startAd",[])}b=setInterval(f,251),U=Date.now(),g=!1}}function m(){ie||t.cb("onCompleted")}function f(){R+=Date.now()-U,U=Date.now(),A.onTimeRemained(R/1e3,T),O?u("timeUpdateAd",[R/1e3,T]):L.onTimeRemained(R/1e3,T),R>=1e3*T&&(clearInterval(b),b=null,m())}function l(Y){if(Y.source===D.contentWindow){if(O&&typeof Y.data=="object")return void v(Y.data);try{switch(JSON.parse(Y.data).type){case"trg:click":e.log("click"),t.cb("onClicked")}}catch(be){}}}function u(Y,be){if(typeof D=="object"&&typeof D.contentWindow=="object")try{var q=D.contentWindow.origin;D.contentWindow.postMessage({initiator:"render-runner",id:x,method:Y,args:be},q)}catch(He){}}function v(Y){if(O&&typeof Y=="object"&&Y.initiator==="render-runner"&&Array.isArray(Y.args)&&Y.args[0]===x)switch(Y.event){case"AdStarted":P=!0,c();break;case"AdCanPlay":e.log("render");break;case"HeaderClick":e.log("click"),t.cb("onClicked",{type:"header"});break;case"ItemClick":e.log("card_"+Y.args[1]+"_click"),t.cb("onClicked",{type:"card",cardId:Y.args[1]});break;case"ItemShow":e.log("card_"+Y.args[1]+"_show");break;case"AdClickThru":e.log("click"),t.cb("onClicked",{type:"common"});break;case"AdError":t.cb("onError",Y.args[1]);break;case"ClosedByUser":e.log("closedByUser"),t.cb("onClosed"),t.cb("onSkipped"),ie=null,y();break;case"UserAction":ie=Date.now()}}function h(){z&&(z.style.display=Q),ce&&(ce.style.display=X)}function _(){b&&clearInterval(b),b=null,h(),k.removeEventListener("message",l)}function y(){_(),A.dispose(),L&&L.dispose(),S&&S.dispose()}function $(){var Y=document.createElement("iframe");return Y.scrolling="no",Y.marginWidth="0",Y.marginHeight="0",Y.frameBorder="0",Y.id="ad-frame-"+Math.round(1e5*Math.random()),Y.onclose=h,Y}var D,T,b,x,A=new AdmanHTML.AdRenderer(t,e),S=new AdmanHTML.CallToActionBtnRenderer(t,e),L=null,k=null,E=null,M=e.getAd(),g=!1,R=0,U=0,O=s(),P=!1,z=null,Q="flex",ce=null,X="block",ie=null;return O?x="b"+M.bannerID:L=new AdmanHTML.DisclaimerRenderer(t,e),A.onClick=function(){},{start:i,pause:o,resume:a,skip:A.skip,dispose:y}},AdmanHTML.ImgAdRenderer=function(t,e){"use strict";function i(){r.start(),r.registerTimer(),AdmanHTML.Utils.addCss(c,a);var f=e.getAd();r.setView(AdmanHTML.Utils.renderTemplate(m,f),{position:"absolute",display:"inline-block",width:"100%","max-width":f.width+"px",left:"50%",bottom:0,transform:"translate(-50%,0)","box-sizing":"border-box",overflow:"hidden","z-index":"999999","text-align":"center"});var l=e.getSettings(),u=r.mainEl.querySelector(".rb-adman_age_wrapper");if(l&&l.advertisment&&l.advertisment.image){var v=l.advertisment.image;AdmanHTML.StyleUtils.applyStyle(r.mainEl,v,"fontFace contentIndent hasBackground backgroundColor backgroundAlpha cornerRounding".split(" ")),AdmanHTML.StyleUtils.applyStyle(r.mainEl.querySelector(".rb-adman_image_wrapper"),v,"borderSize borderColor borderAlpha borderCornerRounding".split(" "));var h=l.advertisment.image.ageRestrictions;f.ageRestrictions&&h&&(AdmanHTML.StyleUtils.applyStyle(u,h),AdmanHTML.StyleUtils.applyStyle(u.querySelector(".rb-adman_age_content"),h,["textUnderline"]))}f.ageRestrictions||u.parentNode.removeChild(u),o.setWrapper(r.mainEl),o.start(),r.onStart(),s.render(),e.log("render")}function n(){r.dispose(),o.dispose(),s.dispose()}var r=new AdmanHTML.AdRenderer(t,e),o=new AdmanHTML.CloseBtnRenderer(t,e),s=new AdmanHTML.DisclaimerRenderer(t,e),a="rb-adman-img-style",c=".rb-adman_image_overlay {display:inline-block; overflow:hidden;vertical-align:middle;cursor:pointer;color:#fff}.rb-adman_image_overlay .rb-adman_image_wrapper {display:block;border:0px solid transparent;overflow:hidden;}.rb-adman_image_overlay .rb-adman_image_wrapper img {vertical-align:top;}.rb-adman_image_overlay .rb-adman_age_wrapper {display:block;position:absolute;top:0px;left:3px;border:0px solid transparent;margin-right:1px;text-decoration:none!important}",m='<div class="rb-adman_image_overlay"><div class="rb-adman_image_wrapper"><img src="{{src}}" width="100%" height="auto"></div><span class="rb-adman_age_wrapper"><span class="rb-adman_age_content">{{ageRestrictions}}</span></span></div>';return{start:i,pause:r.pause,resume:r.resume,skip:r.skip,dispose:n}},AdmanHTML.OpenLinkPopupRender=function(t){"use strict";function e(){for(var c=window;c.parent&&c.parent.frameElement;)c=c.parent;return c}function i(c){t.isPopupOpen=!0,t.pause(),s=n(c)}function n(c){s=a.createElement("div"),r(),s.classList.add("rb-adman-popup");var m=a.createElement("div");m.classList.add("rb-adman-popup-body"),s.appendChild(m);var f=a.createElement("div");f.classList.add("rb-adman-popup-closeButton");var l=s;o=function(){l.remove(),l=null,t.resume(!0),t.isPopupOpen=!1},f.onclick=o,m.appendChild(f);var u=a.createElement("iframe");u.classList.add("rb-adman-popup-frame"),u.setAttribute("src",c),m.appendChild(u),a.body.append(s)}function r(){var c=a.createElement("style");c.innerHTML=".rb-adman-popup{position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;flex-direction:row;align-items:center;justify-content:center;overflow:auto;padding: 7vh 0;box-sizing:border-box;background:rgba(0,0,0,.4);z-index: 1000000;}.rb-adman-popup-body{position:relative;max-width:630px;min-width:500px;width:50%;height:100%;z-index:20;border-radius:12px;background-color:#FFF;-webkit-box-shadow: 12px 12px 8px 0px rgba(34, 60, 80, 0.2);-moz-box-shadow: 12px 12px 8px 0px rgba(34, 60, 80, 0.2);box-shadow: 12px 12px 8px 0px rgba(34, 60, 80, 0.2);color: #FEFEFE}.rb-adman-popup-frame{width:100%;height:100%;overflow:hidden;border-radius: 12px;border:none;}.rb-adman-popup-closeButton{background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJ3aGl0ZSIgdmlld0JveD0iMCAwIDE3IDE3IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Im05LjIgOC41IDYuNjUgNi42NS0uNy43TDguNSA5LjIxbC02LjY1IDYuNjQtLjctLjdMNy43OSA4LjUgMS4xNSAxLjg1bC43LS43TDguNSA3Ljc5bDYuNjUtNi42NC43LjdMOS4yMSA4LjV6IiBzdHJva2U9Im5vbmUiLz48L3N2Zz4K);background-repeat:no-repeat;background-position:center;background-size:50%;position:absolute;top:0;right:-38px;width:28px;height:28px;border-radius:14px;padding: 4px;background-color:rgba(0,0,0,.35);background-color:#000;cursor:pointer;filter:opacity(35%);color:white;box-sizing:border-box;transition: transform .15s ease-in;}.rb-adman-popup-closeButton:hover{filter:opacity(55%);transform:scale(1.1) rotate(90deg);}",s.appendChild(c)}var o,s=null,a=e().document;return{open:i,close:o}},AdmanHTML.ResearchAdRenderer=function(t,e){"use strict";function i(x,A){var S=[];return x.forEach(function(L){L.name===A&&S.push(L)}),S}function n(x,A,S){return A<=x&&(!S||S>=x)}function r(){!_&&h&&(_=!0,e.log("playbackPaused"))}function o(){_&&h&&(_=!1,e.log("playbackResumed"))}function s(){h=!1,_=!1,v.stop()}function a(x){var A=!x;A!==y&&(y=A,e.log(A?"volumeOff":"volumeOn"))}function c(){h&&(D&&f(D,D),l&&T.forEach(function(x){x.completed||(x.completed=!0,!x.viewable&&AdmanHTML.Utils.loadImg(x.url))}),s())}function m(x){e.log(x?"fullscreenOn":"fullscreenOff")}function f(x,A){if(!isNaN(x)){h||(h=!0,v.start(t.playerEl,e,!0),e.log("playbackStarted")),x=Math.round(x);var S=$!==null?x-$:null;if($=x,e.log("thresholdValue",x),!isNaN(A)&&isFinite(A)&&A>0&&(A=Math.round(A),D=A,e.log("thresholdPValue",Math.floor(x/A*100))),S<0&&e.log("rewind"),b.forEach(function(E){if(n(x,E.start,E.end)){var M=Math.floor((x-E.start)/E.rate);M>0&&E.last!==M&&(E.last=M,AdmanHTML.Utils.loadImg(E.url.replace("[CONTENTPLAYHEAD]",x)))}else E.last=null}),l!==!1&&S!==0){var L,k=S<0||S>1;T.forEach(function(E){if(n(x,E.start,E.end)&&!E.completed){L=L||v.getViewabilityState(),l=L.state==="DETERMINED";var M=L.percent>E.percent&&L.focus;E.duration=E.duration||0,E.lastViewable&&M&&!k?E.duration+=S:E.duration=0,E.lastViewable=M,E.duration>=E.value&&(E.completed=!0,E.viewable&&AdmanHTML.Utils.loadImg(E.url))}else E.duration=0,E.lastViewable=!1})}}}var l,u=e.getExtendedAdForApp().statistics,v=new AdmanHTML.Viewability,h=!1,_=!1,y=!1,$=null,D=null,T=i(u,"mrcValue"),b=i(u,"timerValue");return{pause:r,resume:o,setVolume:a,setPosition:f,setComplete:c,setFullscreen:m}},AdmanHTML.StatisticsAdRenderer=function(t,e){"use strict";function i(){e.log("playbackStarted"),AdmanHTML.Utils.setTimeout(function(){t.cb("onCompleted")})}return{start:i}},AdmanHTML.SwfAdRenderer=function(t,e){"use strict";function i(){r.start(),AdmanHTML.Utils.checkFlashAsync(function(o){o===AdmanHTML.Utils.FLASH_READY?(r.registerTimer(),r.setView(n(e.getAd().src,{width:"100%",height:"100%"},{}),{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"black"}),e.log("render"),r.onStart()):t.cb("onError")})}function n(o,s,a){var c,m,f=s||{},l=a||{};f.type="application/x-shockwave-flash",window.ActiveXObject?(f.classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",l.movie=o):f.data=o,m="<object";for(c in f)f.hasOwnProperty(c)&&(m+=" "+c+'="'+f[c]+'"');m+=">";for(c in l)l.hasOwnProperty(c)&&(m+='<param name="'+c+'" value="'+l[c]+'" />');return m+="</object>"}var r=new AdmanHTML.AdRenderer(t,e);return{start:i,skip:r.skip,dispose:r.dispose,createSwfObject:n,super:r}},AdmanHTML.TextAdRenderer=function(t,e){"use strict";function i(){r.start(),r.registerTimer(),AdmanHTML.Utils.addCss(c,a);var f=AdmanHTML.Utils.mixin({header:"",body:"",hyperlinkText:""},e.getAd());r.setView(AdmanHTML.Utils.renderTemplate(m,f),{position:"absolute",margin:"0 auto",left:0,right:0,bottom:0,"box-sizing":"border-box",overflow:"hidden"});var l=e.getSettings();if(l&&l.advertisment&&l.advertisment.text){var u=l.advertisment.text;AdmanHTML.StyleUtils.applyStyle(r.mainEl,u,"fontFace width height contentPadding hasBackground backgroundColor backgroundAlpha cornerRounding".split(" ")),AdmanHTML.StyleUtils.applyStyle(r.mainEl.querySelector(".rb-adman_header"),u,"headerColor headerSize headerUnderline headerBold headerIndent".split(" ")),AdmanHTML.StyleUtils.applyStyle(r.mainEl.querySelector(".rb-adman_header_text"),u,["headerUnderlineOnRollOver"]),AdmanHTML.StyleUtils.applyStyle(r.mainEl.querySelector(".rb-adman_body"),u,"bodyColor bodySize bodyUnderline bodyLeading bodyIndent bodyPaddingRight".split(" ")),AdmanHTML.StyleUtils.applyStyle(r.mainEl.querySelector(".rb-adman_link"),u,"hyperlinkColor hyperlinkSize hyperlinkUnderline hyperlinkIndent".split(" "));var v=l.advertisment.text.ageRestrictions,h=r.mainEl.querySelector(".rb-adman_age_wrapper");f.ageRestrictions?v&&(AdmanHTML.StyleUtils.applyStyle(h,v),AdmanHTML.StyleUtils.applyStyle(h.querySelector(".rb-adman_age_content"),v,["textUnderline"])):h.parentNode.removeChild(h);var _=r.mainEl.querySelector(".rb-adman_image_wrapper span");if(u.noImage)_.parentNode.removeChild(_);else if(u.contentPadding&&(_.style.marginRight=AdmanHTML.StyleUtils.getLength(u.contentPadding)),u.maxImageHeight||u.maxImageWidth){var y=f.width/f.height;_.style.width=AdmanHTML.StyleUtils.getLength(Math.round(u.maxImageWidth||u.maxImageHeight*y)),_.style.height=AdmanHTML.StyleUtils.getLength(Math.round(u.maxImageHeight||u.maxImageWidth/y))}}o.setWrapper(r.mainEl),o.start(),s.render(),e.log("render"),r.onStart()}function n(){r.dispose(),o.dispose(),s.dispose()}var r=new AdmanHTML.AdRenderer(t,e),o=new AdmanHTML.CloseBtnRenderer(t,e),s=new AdmanHTML.DisclaimerRenderer(t,e),a="rb-adman-text-style",c=".rb-adman_text_overlay {display:block; overflow:hidden;height:100%;cursor:pointer;color:#fff}.rb-adman_text_overlay .rb-adman_image_wrapper {display:block;float:left;position:relative;height:100%;vertical-align:middle}.rb-adman_text_overlay .rb-adman_image_wrapper span {display:inline-block;vertical-align:middle;background-size:contain;background-position:center}.rb-adman_text_overlay .rb-adman_text_wrapper {display:block;overflow:hidden;height:100%;vertical-align:top;line-height:1.2}.rb-adman_text_overlay .rb-adman_header {display:block;white-space:nowrap;margin-right:20px;overflow:hidden;text-overflow:ellipsis}.rb-adman_text_overlay .rb-adman_age_wrapper {display:inline-block; vertical-align:middle;border:0px solid transparent;margin-right:1px;text-decoration:none!important}.rb-adman_text_overlay .rb-adman_header_text {color:inherit;text-decoration:none;letter-spacing:normal;line-height:1.5;vertical-align:middle}.rb-adman_text_overlay .rb-adman_header_text:hover {color:inherit;text-decoration:underline}.rb-adman_text_overlay .rb-adman_body {padding:2px 0}.rb-adman_text_overlay .rb-adman_body, .rb-adman_link {display:block;text-decoration:none;padding-top:2px}",m='<div class="rb-adman_text_overlay"><div class="rb-adman_image_wrapper"><div style="display:table;height:100%;"><div style="display:table-cell;height:100%;vertical-align:middle"><span style="background-image: url({{src}});width:{{width}}px;height:{{height}}px"></span></div></div></div><div class="rb-adman_text_wrapper"><span class="rb-adman_header"><span class="rb-adman_age_wrapper"><span class="rb-adman_age_content">{{ageRestrictions}}</span></span><span class="rb-adman_header_text">{{header}}</span></span><span class="rb-adman_body">{{body}}</span><span class="rb-adman_link">{{hyperlinkText}}</span></div></div>';return{start:i,pause:r.pause,resume:r.resume,skip:r.skip,dispose:n}},AdmanHTML.VideoAdRenderer=function(t,e){"use strict";function i(){l.mainEl=t.videoEl,l.clickEl=t.clickEl||l.mainEl,h.forEach(function(b){l.mainEl.addEventListener(b,s)}),l.mainEl.parentNode?$={src:l.mainEl.src,time:l.mainEl.currentTime,muted:l.mainEl.muted}:l.setView(null,{position:"absolute",width:"100%",height:"100%",top:0}),l.mainEl.controls=t.browser.mobile,l.mainEl.src=e.getAd().src,l.mainEl.load(),e.log("render"),c(0),m=l.mainEl.play(),m&&m.then&&m.then(a,function(){l.mainEl.muted=!0,m=l.mainEl.play(),m.then(a,function(){})}),l.start(),u.render(),v.render()}function n(b){return b.indexOf("videolink.mycdn.me")!==-1}function r(){u.dispose(),v.dispose(),l.dispose(),h.forEach(function(b){l.mainEl.removeEventListener(b,s)}),$.src?(l.mainEl.src=$.src,l.mainEl.load(),l.mainEl.play(),c($.time)):(l.mainEl.src="",l.mainEl.removeAttribute&&l.mainEl.removeAttribute("src"))}function o(b){if(b.indexOf("mradx")!==-1)return"rb";if(b.indexOf("videolink.mycdn.me")!==-1)return"ev";var x=new URL(b);return"evcdn:"+("hostname"in x?x.hostname:"")}function s(b){switch(b.type){case"loadstart":f=Date.now();break;case"loadeddata":D||(D=!0,T=Date.now()-f,t.stats.logMessage("firstLoadedData",T,{banner_id:y.bannerID,duration:Math.round(l.mainEl.duration),geo:y.geo!=="undefined"?y.geo:void 0,one_video_src:n(l.mainEl.src),slot:"slotId"in y?y.slotId:"no_slot_id",video_source:o(l.mainEl.src),resolution:("width"in y?y.width:"no_ad_width")+"x"+("height"in y?y.height:"no_ad_height"),label:"experimentLabel"in y?y.experimentLabel:""}));break;case"loadedmetadata":t.stats.metrics("ready"),t.stats.metrics("creative_type","video"),u.onTimeRemained(l.mainEl.currentTime,l.mainEl.duration);break;case"playing":m||a();break;case"play":t.cb("onPlayed");break;case"pause":t.cb("onPaused");break;case"timeupdate":l.onTimeRemained(l.mainEl.currentTime,l.mainEl.duration),u.onTimeRemained(l.mainEl.currentTime,l.mainEl.duration);break;case"ended":t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",t.cb("onCompleted"),t.stats.metrics("completed");break;case"error":var x=b.target&&typeof b.target=="object"&&b.target.error&&typeof b.target.error=="object"&&b.target.error.code?b.target.error.code:"unknown_code",A="video_el_err_code:"+x;t.stats.logError(A),t.stats.metrics("media_error_code",x),t.cb("onError")}}function a(){if(!_){_=!0;var b=AdmanHTML.Utils.isElement(l.mainEl)?l.mainEl:l.wrapperEl;t.viewability.start(b,e),l.onStart({muted:l.mainEl.muted})}}function c(b){if(l.mainEl)try{l.mainEl.currentTime=b}catch(x){}}var m,f,l=new AdmanHTML.AdRenderer(t,e),u=new AdmanHTML.DisclaimerRenderer(t,e),v=new AdmanHTML.CallToActionBtnRenderer(t,e),h=["loadstart","loadeddata","loadedmetadata","error","pause","play","playing","timeupdate","ended"],_=!1,y=e.getAd(),$={},D=!1,T=null;return{start:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="play",i(),t.stats.metrics("playing")},skip:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",t.stats.metrics("skipped"),l.skip.apply(t,arguments)},dispose:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",r()},pause:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",l.mainEl.pause()},resume:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="play",l.mainEl.play()},setVolume:function(b){var x=l.mainEl.muted?0:l.mainEl.volume;b>0&&l.mainEl.muted&&(l.mainEl.muted=!1),b===0&&(l.mainEl.muted=!0),l.mainEl.volume=b,(x===0&&b>0||x>0&&b===0)&&e.log(b?"volumeOn":"volumeOff")}}},AdmanHTML.VpaidJsAdRenderer=function(t,e){"use strict";function i(){var g;if(!c)return A.duration;try{g=c.callGet("adDuration"),g===void 0&&(g=A.duration)}catch(R){g=A.duration}return g}function n(){if(b.start(),x.render(),AdmanHTML.Utils.isElement(t.videoEl)){var g=AdmanHTML.Utils.getElementViewport;g(t.videoEl)===g(b.wrapperEl)&&(t.videoEl.parentNode?(f=t.videoEl.parentNode,l=t.videoEl.nextSibling):m=!0,b.wrapperEl.insertBefore(t.videoEl,b.wrapperEl.childNodes[0]),AdmanHTML.Utils.mixin(t.videoEl.style,{position:"absolute",width:"100%",height:"100%",top:0,display:"block"}))}var R=e.getSettings();R&&(R.loadTimeout&&(S=R.loadTimeout),R.startTimeout&&(L=R.startTimeout)),AdmanHTML.Utils.isNRVpaid(A.src)&&typeof A.timeoutsFactor=="number"&&A.timeoutsFactor>1&&(S*=A.timeoutsFactor,L*=A.timeoutsFactor),t.cb("onStarted",[e.sectionType,e.getAdForApp()||{}]),o(S,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:LoadInterface"),c.urlToNavigateOnClick=e.getAd().urlToNavigateOnClick,b.setView(c.load(A.src,t.config.vpaidHtmlInterface),{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"transparent"}),e.log("render")}function r(){m&&t.videoEl.parentNode?t.videoEl.parentNode.removeChild(t.videoEl):f&&f.insertBefore(t.videoEl,l&&l.parentNode?l:null),s(),c.destroy(),x.dispose(),b.dispose()}function o(g,R){s(),$=R,v=setTimeout(a,g)}function s(){clearTimeout(v)}function a(){y=!0,s(),e.log("error"),$&&t.stats.logError($,{bannerID:A.bannerID,isNRVpaid:AdmanHTML.Utils.isNRVpaid(A.src)}),t.cb("onError",{force:!0,message:$})}var c,m,f,l,u,v,h,_,y,$,D,T,b=new AdmanHTML.AdRenderer(t,e),x=new AdmanHTML.DisclaimerRenderer(t,e),A=e.getAd(),S=500,L=1e3;b.onResize=function(g,R){c&&c.call("resizeAd",[g,R,"normal"])},b.onClick=function(){};var k=function(g,R){if(!y){var U,O;switch(g){case"loaded":o(S,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:LoadJs");break;case"vpaidloaded":s();break;case"inited":c.call("handshakeVersion",["2.0"])?(o(L,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:InitAd"),c.call("initAd",[b.mainEl.offsetWidth,b.mainEl.offsetHeight,"normal",A.bitrate,{AdParameters:A.params}])):t.cb("onError");break;case"AdStarted":s(),_=c.callGet("adVolume"),h===void 0||c.autoMuted||c.callSet("adVolume",h),e.log("playbackStarted"),t.viewability.start(b.mainEl,e),t.cb("onVPAIDStarted"),t.stats.metrics("playing");break;case"AdLoaded":o(L,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:StartAd"),c.call("startAd"),t.stats.metrics("ready"),t.stats.metrics("creative_type","vpaid");break;case"AdRemainingTimeChange":U=i(),O=c.callGet("adRemainingTime"),U>0&&O>=0?(b.onTimeRemained(U-O,U),x.onTimeRemained(U-O,U)):t.cb("onDurationChanged",[{remained:O,duration:U}]);break;case"AdVolumeChange":var P=c.callGet("adVolume");(_===0&&P>0||_>0&&P===0)&&e.log(P?"volumeOn":"volumeOff"),_=P;break;case"AdVideoComplete":t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",U=i(),b.onTimeRemained(U,U);break;case"AdStopped":case"AdSkipped":D||(D=!0,setTimeout(function(){u?u():t.cb("onCompleted")})),t.stats.metrics(g==="AdStopped"?"completed":"skipped");break;case"AdClickThru":R.url&&R.playerHandles&&window.open(R.url,"_blank"),e.log("click"),t.cb("onClicked");break;case"AdError":t.stats.logError("EXTERNAL_JS_ADVERTISMENT_ERROR:"+(R&&R.message||"")),t.stats.metrics("vpaid_error_message",R&&R.message||"vpaid script err"),t.cb("onError");break;case"AdPaused":T||(T=!0,t.cb("onPaused"));break;case"AdPlaying":T&&(T=!1,t.cb("onPlayed"));break;case"AdUserClose":e.log("closedByUser");break;case"video:pause":T||c&&c.call("pauseAd");break;case"video:play":T&&c&&c.call("resumeAd")}}},E=t.wrapper.ownerDocument,M=E.defaultView||E.parentWindow;return c=new AdmanHTML.VpaidLoader(t.videoEl,M),c.onVpaidEvent(k),{start:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="play",n()},dispose:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",r()},pause:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",c&&c.call("pauseAd")},resume:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="play",c&&c.call("resumeAd")},setVolume:function(g){c&&c.callSet("adVolume",g),h=g},skip:function(g){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",u=g;try{c&&c.call("skipAd")}catch(R){}t.stats.metrics("skipped")}}},AdmanHTML.VpaidSwfAdRenderer=function(t,e){"use strict";function i(){var x;if(!c)return $.duration;try{x=c.callGet("adDuration")||$.duration}catch(A){x=$.duration}return x}function n(){y.start();var x=e.getSettings();x&&(x.loadTimeout&&(T=x.loadTimeout),x.startTimeout&&(b=x.startTimeout)),AdmanHTML.Utils.checkFlashAsync(function(A){if(A===AdmanHTML.Utils.FLASH_READY){t.cb("onStarted",[e.sectionType,e.getAdForApp()||{}]),o(T);var S="vpaidSwfUrl="+encodeURIComponent($.src)+"&proxyMethodName="+D;y.setView(h.createSwfObject(t.config.vpaidJsInterface,{width:"100%",height:"100%"},{flashvars:S,allowScriptAccess:"always",wmode:"opaque"}),{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"black"})}else t.cb("onError")}),_.render(),e.log("render")}function r(){s(),y.dispose(),_.dispose(),window[D]=null}function o(x){s(),f=setTimeout(a,x)}function s(){clearTimeout(f)}function a(){v=!0,s(),e.log("error"),t.cb("onError")}var c,m,f,l,u,v,h=new AdmanHTML.SwfAdRenderer(t,e),_=new AdmanHTML.DisclaimerRenderer(t,e),y=h.super,$=e.getAd(),D="vpaidProxyMethod"+Date.now(),T=500,b=1e3;return y.onResize=function(x,A){c&&c.call("resizeAd",[x,A,"normal"])},y.onClick=function(){},window[D]=function(x,A){if(!v){var S;switch(x){case"loaded":o(T);break;case"vpaidloaded":s();break;case"inited":c=y.mainEl.getElementsByTagName("object")[0],c.call("handshakeVersion",["2.0"])?(o(b),c.call("initAd",[y.mainEl.offsetWidth,y.mainEl.offsetHeight,"normal",$.bitrate,$.params,""])):t.cb("onError");break;case"AdStarted":s(),u=c.callGet("adVolume"),l!==void 0&&c.callSet("adVolume",l),e.log("playbackStarted"),t.viewability.start(y.mainEl,e),t.cb("onVPAIDStarted");break;case"AdLoaded":o(b),c.call("startAd");break;case"AdRemainingTimeChange":S=i(),y.onTimeRemained(S-c.callGet("adRemainingTime"),S),_.onTimeRemained(S-c.callGet("adRemainingTime"),S);break;case"AdVolumeChange":var L=c.callGet("adVolume");(u===0&&L>0||u>0&&L===0)&&e.log(L?"volumeOn":"volumeOff"),u=L;break;case"AdVideoComplete":S=i(),y.onTimeRemained(S,S);break;case"AdStopped":case"AdSkipped":setTimeout(function(){m?m():t.cb("onCompleted")});break;case"AdClickThru":e.log("click"),t.cb("onClicked");break;case"AdError":t.stats.logError("EXTERNAL_SWF_ADVERTISMENT_ERROR:"+(A&&A.message||"")),t.cb("onError");break;case"AdPaused":t.cb("onPaused");break;case"AdPlaying":t.cb("onPlayed");break;case"AdUserClose":e.log("closedByUser")}}},{start:n,dispose:r,pause:function(){c&&c.call("pauseAd")},resume:function(){c&&c.call("resumeAd")},setVolume:function(x){c&&c.callSet("adVolume",x),l=x},skip:function(x){m=x;try{c&&c.call("skipAd")}catch(A){}}}};window.admanAsyncLoader?setTimeout(admanAsyncLoader):window.admanAsyncInit&&setTimeout(admanAsyncInit)});var dm={};fc(dm,{AndroidTvPlayer:()=>Ao,InterfaceLanguage:()=>zn.InterfaceLanguage,VERSION:()=>Qn,VKNumericLanguage:()=>zn.VKNumericLanguage,VideoFormat:()=>Eo.VideoFormat,VideoQuality:()=>Eo.VideoQuality,loadVKLangPack:()=>zn.loadVKLangPack});module.exports=mc(dm);var Qs="prod",Qn="1.0.5";var vn=require("@vkontakte/videoplayer-shared/es2015");var Ws,Gs,Ys=(Gs=(Ws=globalThis.process)==null?void 0:Ws.env)==null?void 0:Gs.NODE_ENV,Z=Ys&&!Ys.toLowerCase().startsWith("prod");var pi=Array.isArray,qs=Array.prototype.indexOf,Yn=Array.from,Lo=Object.keys,xt=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,Oo=Object.getOwnPropertyDescriptors,Po=Object.prototype,Ks=Array.prototype,xn=Object.getPrototypeOf,Ro=Object.isExtensible;var Et=()=>{};function An(t){for(var e=0;e<t.length;e++)t[e]()}var Gt=Symbol("$state"),Wn=Symbol("legacy props"),Zs=Symbol(""),Ir=Symbol("proxy path");var Gn=3,mi=8;function Nr(t){return t===this.v}function En(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Js(t,e){return t!==e}function wn(t){return!En(t,this.v)}function Xs(){if(Z){let t=new Error(`derived_references_self
|
|
7
7
|
A derived value cannot reference itself recursively
|
|
8
|
-
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function
|
|
8
|
+
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function el(t){if(Z){let e=new Error(`effect_in_teardown
|
|
9
9
|
\`${t}\` cannot be used inside an effect cleanup function
|
|
10
|
-
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function
|
|
10
|
+
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function tl(){if(Z){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function il(t){if(Z){let e=new Error(`effect_orphan
|
|
11
11
|
\`${t}\` can only be used inside an effect (e.g. during component initialisation)
|
|
12
|
-
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function nl(){if(Z){let t=new Error(`effect_update_depth_exceeded
|
|
13
13
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
14
|
-
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function
|
|
14
|
+
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function rl(){if(Z){let t=new Error(`hydration_failed
|
|
15
15
|
Failed to hydrate the application
|
|
16
|
-
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function ol(){if(Z){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function al(t){if(Z){let e=new Error(`props_invalid_value
|
|
17
17
|
Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
|
|
18
|
-
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function
|
|
18
|
+
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function sl(t){if(Z){let e=new Error(`rune_outside_svelte
|
|
19
19
|
The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
20
|
-
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function
|
|
21
|
-
`),
|
|
22
|
-
`];for(let
|
|
23
|
-
`)}),
|
|
20
|
+
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function ll(){if(Z){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function dl(){if(Z){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ul(){if(Z){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Ci=!1,$i=!1;function cl(){Ci=!0}var Gi="[",qi="[!",tn="]",Vi={};var gt=Symbol(),xi=Symbol("filename"),fl=Symbol("hmr"),pl="http://www.w3.org/1999/xhtml";var qn=null;function ji(t){let e=Error(),i=e.stack;if(i){let n=i.split(`
|
|
21
|
+
`),r=[`
|
|
22
|
+
`];for(let o=0;o<n.length;o++){let s=n[o];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||r.push(s)}}if(r.length===1)return null;xt(e,"stack",{value:r.join(`
|
|
23
|
+
`)}),xt(e,"name",{value:`${t}Error`})}return e}function Ai(t,e){return t.label=e,Dr(t.v,e),t}function Dr(t,e){var i;return(i=t==null?void 0:t[Ir])==null||i.call(t,e),t}function Cr(){if(Z){let t=new Error("invalid_default_snippet\nCannot use `{@render children(...)}` if the parent component uses `let:` directives. Consider using a named snippet instead\nhttps://svelte.dev/e/invalid_default_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_default_snippet")}function Mn(t){if(Z){let e=new Error(`lifecycle_outside_component
|
|
24
24
|
\`${t}(...)\` can only be used during component initialisation
|
|
25
|
-
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var
|
|
25
|
+
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var $e=null;function Kn(t){$e=t}var Ei=null;function Zn(t){Ei=t}function nn(t){return vl("getContext").get(t)}function rn(t,e){return vl("setContext").set(t,e),e}function Ee(t,e=!1,i){var n=$e={p:$e,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Ci&&!e&&($e.l={s:null,u:null,r1:[],r2:gi(!1)}),Lt(()=>{n.d=!0}),Z&&($e.function=i,Ei=i)}function we(t){var s,a;let e=$e;if(e!==null){t!==void 0&&(e.x=t);let c=e.e;if(c!==null){var i=xe,n=Ie;e.e=null;try{for(var r=0;r<c.length;r++){var o=c[r];wt(o.effect),bt(o.reaction),qt(o.fn)}}finally{wt(i),bt(n)}}$e=e.p,Z&&(Ei=(a=(s=e.p)==null?void 0:s.function)!=null?a:null),e.m=!0}return t||{}}function ki(){return!Ci||$e!==null&&$e.l===null}function vl(t){var e;return $e===null&&Mn(t),(e=$e.c)!=null?e:$e.c=new Map(hc($e)||void 0)}function hc(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var _c=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Ot(t){if(typeof t!="object"||t===null||Gt in t)return t;let e=xn(t);if(e!==Po&&e!==Ks)return t;var i=new Map,n=pi(t),r=Oe(0),o=Z&&$i?ji("CreatedAt"):null,s=Ie,a=f=>{var l=Ie;bt(s);var u=f();return bt(l),u};n&&i.set("length",Oe(t.length,o));var c="";function m(f){c=f,Ai(r,`${c} version`);for(let[l,u]of i)Ai(u,on(c,l))}return new Proxy(t,{defineProperty(f,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&ll();var v=i.get(l);return v===void 0?v=a(()=>{var h=Oe(u.value,o);return i.set(l,h),Z&&typeof l=="string"&&Ai(h,on(c,l)),h}):pe(v,u.value,!0),!0},deleteProperty(f,l){var u=i.get(l);if(u===void 0){if(l in f){let _=a(()=>Oe(gt,o));i.set(l,_),zo(r),Z&&Ai(_,on(c,l))}}else{if(n&&typeof l=="string"){var v=i.get("length"),h=Number(l);Number.isInteger(h)&&h<v.v&&pe(v,h)}pe(u,gt),zo(r)}return!0},get(f,l,u){var y;if(l===Gt)return t;if(Z&&l===Ir)return m;var v=i.get(l),h=l in f;if(v===void 0&&(!h||(y=Wt(f,l))!=null&&y.writable)&&(v=a(()=>{var $=Ot(h?f[l]:gt),D=Oe($,o);return Z&&Ai(D,on(c,l)),D}),i.set(l,v)),v!==void 0){var _=N(v);return _===gt?void 0:_}return Reflect.get(f,l,u)},getOwnPropertyDescriptor(f,l){var u=Reflect.getOwnPropertyDescriptor(f,l);if(u&&"value"in u){var v=i.get(l);v&&(u.value=N(v))}else if(u===void 0){var h=i.get(l),_=h==null?void 0:h.v;if(h!==void 0&&_!==gt)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return u},has(f,l){var _;if(l===Gt)return!0;var u=i.get(l),v=u!==void 0&&u.v!==gt||Reflect.has(f,l);if(u!==void 0||xe!==null&&(!v||(_=Wt(f,l))!=null&&_.writable)){u===void 0&&(u=a(()=>{var y=v?Ot(f[l]):gt,$=Oe(y,o);return Z&&Ai($,on(c,l)),$}),i.set(l,u));var h=N(u);if(h===gt)return!1}return v},set(f,l,u,v){var A;var h=i.get(l),_=l in f;if(n&&l==="length")for(var y=u;y<h.v;y+=1){var $=i.get(y+"");$!==void 0?pe($,gt):y in f&&($=a(()=>Oe(gt,o)),i.set(y+"",$),Z&&Ai($,on(c,y)))}if(h===void 0)(!_||(A=Wt(f,l))!=null&&A.writable)&&(h=a(()=>Oe(void 0,o)),pe(h,Ot(u)),i.set(l,h),Z&&Ai(h,on(c,l)));else{_=h.v!==gt;var D=a(()=>Ot(u));pe(h,D)}var T=Reflect.getOwnPropertyDescriptor(f,l);if(T!=null&&T.set&&T.set.call(v,u),!_){if(n&&typeof l=="string"){var b=i.get("length"),x=Number(l);Number.isInteger(x)&&x>=b.v&&pe(b,x+1)}zo(r)}return!0},ownKeys(f){N(r);var l=Reflect.ownKeys(f).filter(h=>{var _=i.get(h);return _===void 0||_.v!==gt});for(var[u,v]of i)v.v!==gt&&!(u in f)&&l.push(u);return l},setPrototypeOf(){dl()}})}function on(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:_c.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function zo(t,e=1){pe(t,t.v+e)}function $r(t){try{if(t!==null&&typeof t=="object"&&Gt in t)return t[Gt]}catch(e){}return t}function zi(t){var e=2050,i=Ie!==null&&(Ie.f&2)!==0?Ie:null;xe===null||i!==null&&(i.f&256)!==0?e|=256:xe.f|=1048576;let n={ctx:$e,deps:null,effects:null,equals:Nr,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:xe};return Z&&$i&&(n.created=ji("CreatedAt")),n}function Le(t){let e=zi(t);return Or(e),e}function Jn(t){let e=zi(t);return e.equals=wn,e}function kr(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Mt(e[i])}}var Uo=[];function yc(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Bo(t){var e,i=xe;if(wt(yc(t)),Z){let n=an;Fo(new Set);try{Uo.includes(t)&&Xs(),Uo.push(t),kr(t),e=Lr(t)}finally{wt(i),Fo(n),Uo.pop()}}else try{kr(t),e=Lr(t)}finally{wt(i)}return e}function Qo(t){var e=Bo(t);if(t.equals(e)||(t.v=e,t.wv=Xn()),!Ui){var i=(Fi||(t.f&256)!==0)&&t.deps!==null?4096:1024;Bt(t,i)}}var an=new Set,Tn=new Map;function Fo(t){an=t}function gi(t,e){var i={f:0,v:t,reactions:null,equals:Nr,rv:0,wv:0};return Z&&$i&&(i.created=e!=null?e:ji("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Oe(t,e){let i=gi(t,e);return Or(i),i}function Li(t,e=!1,i=!0){var r,o;let n=gi(t);return e||(n.equals=wn),Ci&&i&&$e!==null&&$e.l!==null&&((o=(r=$e.l).s)!=null?o:r.s=[]).push(n),n}function pe(t,e,i=!1){var r;Ie!==null&&(!ii||(Ie.f&262144)!==0)&&ki()&&(Ie.f&262162)!==0&&!((r=Ct)!=null&&r[1].includes(t)&&Ct[0]===Ie)&&ul();let n=i?Ot(e):e;return Z&&Dr(n,t.label),In(t,n)}function In(t,e){if(!t.equals(e)){var i=t.v;if(Ui?Tn.set(t,e):Tn.set(t,i),t.v=e,Z&&$i&&(t.updated=ji("UpdatedAt"),xe!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Bo(t),Bt(t,(t.f&256)===0?1024:4096)),t.wv=Xn(),gl(t,2048),ki()&&xe!==null&&(xe.f&1024)!==0&&(xe.f&96)===0&&(ti===null?hl([t]):ti.push(t)),Z&&an.size>0){let n=Array.from(an);for(let r of n)(r.f&1024)!==0&&Bt(r,4096),sn(r)&&Nn(r);an.clear()}}return e}function gl(t,e){var i=t.reactions;if(i!==null)for(var n=ki(),r=i.length,o=0;o<r;o++){var s=i[o],a=s.f;if((a&2048)===0&&!(!n&&s===xe)){if(Z&&(a&262144)!==0){an.add(s);continue}Bt(s,e),(a&1280)!==0&&((a&2)!==0?gl(s,4096):tr(s))}}}var Pr="font-weight: bold",Rr="font-weight: normal";function _l(t,e,i){Z?console.warn(`%c[svelte] hydration_attribute_changed
|
|
26
26
|
%cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
|
|
27
|
-
https://svelte.dev/e/hydration_attribute_changed`,
|
|
27
|
+
https://svelte.dev/e/hydration_attribute_changed`,Pr,Rr):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function ln(t){Z?console.warn(`%c[svelte] hydration_mismatch
|
|
28
28
|
%c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
|
|
29
|
-
https://svelte.dev/e/hydration_mismatch`,
|
|
29
|
+
https://svelte.dev/e/hydration_mismatch`,Pr,Rr):console.warn("https://svelte.dev/e/hydration_mismatch")}function yl(){Z?console.warn(`%c[svelte] lifecycle_double_unmount
|
|
30
30
|
%cTried to unmount a component that was not mounted
|
|
31
|
-
https://svelte.dev/e/lifecycle_double_unmount`,
|
|
31
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Pr,Rr):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Vr(t){Z?console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
32
32
|
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
|
|
33
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`,
|
|
34
|
-
${n}in ${((
|
|
35
|
-
${n}in ${(
|
|
36
|
-
${
|
|
37
|
-
`}),t.stack&&
|
|
38
|
-
`).filter(
|
|
39
|
-
`)})}}var Wi=!1,hn=null,Gi=!1,wi=!1;function Dr(t){wi=t}var Gn=[],qn=[],be=null,Yt=!1;function gt(t){be=t}var ye=null;function wt(t){ye=t}var At=null;function yo(t){be!==null&&be.f&2097152&&(At===null?At=[be,[t]]:At[1].push(t))}var Ot=null,Gt=0,Qt=null;function zs(t){Qt=t}var sl=1,Lo=0,Si=!1,ko=null;function jn(){return++sl}function Qi(t){var l,c;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,n=(e&256)!==0;if(i!==null){var o,a,d=(e&512)!==0,r=n&&ye!==null&&!Si,u=i.length;if(d||r){var h=t,f=h.parent;for(o=0;o<u;o++)a=i[o],(d||!((l=a==null?void 0:a.reactions)!=null&&l.includes(h)))&&((c=a.reactions)!=null?c:a.reactions=[]).push(h);d&&(h.f^=512),r&&f!==null&&(f.f&256)===0&&(h.f^=256)}for(o=0;o<u;o++)if(a=i[o],Qi(a)&&Sr(a),a.wv>t.wv)return!0}(!n||ye!==null&&!Si)&&Ct(t,1024)}return!1}function ll(t,e,i=!0){var n=t.reactions;if(n!==null)for(var o=0;o<n.length;o++){var a=n[o];At!=null&&At[1].includes(t)&&At[0]===be||((a.f&2)!==0?ll(a,e,!1):e===a&&(i?Ct(a,2048):(a.f&1024)!==0&&Ct(a,4096),zn(a)))}}function go(t){var v,b;var e=Ot,i=Gt,n=Qt,o=be,a=Si,d=At,r=we,u=Yt,h=t.f;Ot=null,Gt=0,Qt=null,Si=(h&256)!==0&&(Yt||!Gi||be===null),be=(h&96)===0?t:null,At=null,On(t.ctx),Yt=!1,Lo++,t.f|=2097152;try{var f=(0,t.fn)(),l=t.deps;if(Ot!==null){var c;if(Yn(t,Gt),l!==null&&Gt>0)for(l.length=Gt+Ot.length,c=0;c<Ot.length;c++)l[Gt+c]=Ot[c];else t.deps=l=Ot;if(!Si||(h&2)!==0&&t.reactions!==null)for(c=Gt;c<l.length;c++)((b=(v=l[c]).reactions)!=null?b:v.reactions=[]).push(t)}else l!==null&&Gt<l.length&&(Yn(t,Gt),l.length=Gt);if(_i()&&Qt!==null&&!Yt&&l!==null&&(t.f&6146)===0)for(c=0;c<Qt.length;c++)ll(Qt[c],t);return o!==null&&o!==t&&(Lo++,Qt!==null&&(n===null?n=Qt:n.push(...Qt))),f}catch(y){ol(y)}finally{Ot=e,Gt=i,Qt=n,be=o,Si=a,At=d,On(r),Yt=u,t.f^=2097152}}function Zu(t,e){let i=e.reactions;if(i!==null){var n=As.call(i,t);if(n!==-1){var o=i.length-1;o===0?i=e.reactions=null:(i[n]=i[o],i.pop())}}i===null&&(e.f&2)!==0&&(Ot===null||!Ot.includes(e))&&(Ct(e,4096),(e.f&768)===0&&(e.f^=512),vo(e),Yn(e,0))}function Yn(t,e){var i=t.deps;if(i!==null)for(var n=e;n<i.length;n++)Zu(t,i[n])}function cn(t){var e=t.f;if((e&16384)===0){Ct(t,1024);var i=ye,n=Gi;if(ye=t,Gi=!0,W){var o=ai;Rn(t.component_function)}try{(e&16)!==0?Zs(t):Cr(t),kr(t);var a=go(t);if(t.teardown=typeof a=="function"?a:null,t.wv=sl,W&&gi&&(t.f&2048)!==0&&t.deps!==null)for(var d of t.deps)d.set_during_effect&&(d.wv=jn(),d.set_during_effect=!1);W&&qn.push(t)}finally{Gi=n,ye=i,W&&Rn(o)}}}function rl(){console.error("Last ten effects were: ",qn.slice(-10).map(t=>t.fn)),qn=[]}function Ju(){try{Ns()}catch(t){if(W&&pt(t,"stack",{value:""}),hn!==null)if(W)try{Wn(t,hn)}catch(e){throw rl(),e}else Wn(t,hn);else throw W&&rl(),t}}function Vr(){var t=Gi;try{var e=0;for(Gi=!0;Gn.length>0;){e++>1e3&&Ju();var i=Gn,n=i.length;Gn=[];for(var o=0;o<n;o++){var a=ec(i[o]);Xu(a)}dn.clear()}}finally{Wi=!1,Gi=t,hn=null,W&&(qn=[])}}function Xu(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var n=t[i];(n.f&24576)===0&&Qi(n)&&(cn(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?$r(n):n.fn=null))}}function zn(t){Wi||(Wi=!0,queueMicrotask(Vr));for(var e=hn=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Gn.push(e)}function ec(t){for(var e=[],i=t;i!==null;){var n=i.f,o=(n&96)!==0,a=o&&(n&1024)!==0;if(!a&&(n&8192)===0){(n&4)!==0?e.push(i):o?i.f^=1024:Qi(i)&&cn(i);var d=i.first;if(d!==null){i=d;continue}}var r=i.parent;for(i=i.next;i===null&&r!==null;)i=r.next,r=r.parent}return e}function Kn(t){var e;for(t&&(Wi=!0,Vr(),Wi=!0,e=t());;){if(il(),Gn.length===0)return Wi=!1,hn=null,W&&(qn=[]),e;Wi=!0,Vr()}}function j(t){var e=t.f,i=(e&2)!==0;if(ko!==null&&ko.add(t),be!==null&&!Yt){if(!(At!=null&&At[1].includes(t))||At[0]!==be){var n=be.deps;t.rv<Lo&&(t.rv=Lo,Ot===null&&n!==null&&n[Gt]===t?Gt++:Ot===null?Ot=[t]:(!Si||!Ot.includes(t))&&Ot.push(t))}}else if(i&&t.deps===null&&t.effects===null){var o=t,a=o.parent;a!==null&&(a.f&256)===0&&(o.f^=256)}if(i&&(o=t,Qi(o)&&Sr(o)),W&&gi&&!Yt&&Cn!==null&&be!==null&&Cn.reaction===be)if(t.trace)t.trace();else{var d=Ei("TracedAt");if(d){var r=Cn.entries.get(t);r===void 0&&(r={traces:[]},Cn.entries.set(t,r));var u=r.traces[r.traces.length-1];d.stack!==(u==null?void 0:u.stack)&&r.traces.push(d)}}return wi&&dn.has(t)?dn.get(t):t.v}function Je(t){var e=Yt;try{return Yt=!0,t()}finally{Yt=e}}var tc=-7169;function Ct(t,e){t.f=t.f&tc|e}var jr=new Set,Co=new Set;function vn(t){for(var e=0;e<t.length;e++)jr.add(t[e]);for(var i of Co)i(t)}function Zn(t){var D;var e=this,i=e.ownerDocument,n=t.type,o=((D=t.composedPath)==null?void 0:D.call(t))||[],a=o[0]||t.target,d=0,r=t.__root;if(r){var u=o.indexOf(r);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var h=o.indexOf(e);if(h===-1)return;u<=h&&(d=u)}if(a=o[d]||t.target,a!==e){pt(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=be,l=ye;gt(null),wt(null);try{for(var c,v=[];a!==null;){var b=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+n];if(y!=null&&(!a.disabled||t.target===a))if(ni(y)){var[g,...C]=y;g.apply(a,[t,...C])}else y.call(a,t)}catch(N){c?v.push(N):c=N}if(t.cancelBubble||b===e||b===null)break;a=b}if(c){for(let N of v)queueMicrotask(()=>{throw N});throw c}}finally{t.__root=e,delete t.currentTarget,gt(f),wt(l)}}}var nc;function ul(){nc=void 0}function Jn(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function qt(t,e){var i=ye;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function Ce(t,e){var i=(e&1)!==0,n=(e&2)!==0,o,a=!t.startsWith("<!>");return()=>{if(ge)return qt(Te,null),Te;o===void 0&&(o=Jn(a?t:"<!>"+t),i||(o=ut(o)));var d=n||Hn?document.importNode(o,!0):o.cloneNode(!0);if(i){var r=ut(d),u=d.lastChild;qt(r,u)}else qt(d,d);return d}}function ac(t,e,i="svg"){var n=!t.startsWith("<!>"),o=(e&1)!==0,a=`<${i}>${n?t:"<!>"+t}</${i}>`,d;return()=>{if(ge)return qt(Te,null),Te;if(!d){var r=Jn(a),u=ut(r);if(o)for(d=document.createDocumentFragment();ut(u);)d.appendChild(ut(u));else d=ut(u)}var h=d.cloneNode(!0);if(o){var f=ut(h),l=h.lastChild;qt(f,l)}else qt(h,h);return h}}function bi(t,e){return ac(t,e,"svg")}function Ur(){if(ge)return qt(Te,null),Te;var t=document.createDocumentFragment(),e=document.createComment(""),i=li();return t.append(e,i),qt(e,i),t}function ve(t,e){if(ge){ye.nodes_end=Te,Nt();return}t!==null&&t.before(e)}var sc=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var Kh=[...sc,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var lc=["touchstart","touchmove"];function fl(t){return lc.includes(t)}var dc=["$state","$state.raw","$derived","$derived.by"],Zh=[...dc,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var zr=!0;function it(t,e){var n;var i=e==null?"":typeof e=="object"?e+"":e;i!==((n=t.__t)!=null?n:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Pi(t,e){return ml(t,e)}function Hr(t,e){var d;To(),e.intro=(d=e.intro)!=null?d:!1;let i=e.target,n=ge,o=Te;try{for(var a=ut(i);a&&(a.nodeType!==oi||a.data!==Oi);)a=$t(a);if(!a)throw xi;Wt(!0),dt(a),Nt();let r=ml(t,ct(We({},e),{anchor:a}));if(Te===null||Te.nodeType!==oi||Te.data!==on)throw Yi(),xi;return Wt(!1),r}catch(r){if(r===xi)return e.recover===!1&&Ds(),To(),Mo(i),Wt(!1),Pi(t,e);throw r}finally{Wt(n),dt(o),ul()}}var gn=new Map;function ml(t,{target:e,anchor:i,props:n={},events:o,context:a,intro:d=!0}){To();var r=new Set,u=l=>{for(var c=0;c<l.length;c++){var v=l[c];if(!r.has(v)){r.add(v);var b=fl(v);e.addEventListener(v,Zn,{passive:b});var y=gn.get(v);y===void 0?(document.addEventListener(v,Zn,{passive:b}),gn.set(v,1)):gn.set(v,y+1)}}};u(hr(jr)),Co.add(u);var h=void 0,f=Ks(()=>{var l=i!=null?i:e.appendChild(li());return Et(()=>{if(a){ft({});var c=we;c.c=a}o&&(n.$$events=o),ge&&qt(l,null),zr=d,h=t(l,n)||{},zr=!0,ge&&(ye.nodes_end=Te),a&&mt()}),()=>{var b;for(var c of r){e.removeEventListener(c,Zn);var v=gn.get(c);--v===0?(document.removeEventListener(c,Zn),gn.delete(c)):gn.set(c,v)}Co.delete(u),l!==i&&((b=l.parentNode)==null||b.removeChild(l))}});return Fr.set(h,f),h}var Fr=new WeakMap;function Xn(t,e){let i=Fr.get(t);return i?(Fr.delete(t),i(e)):(W&&Hs(),Promise.resolve())}function $o(t,e,...i){var n=t,o=vt,a;xt(()=>{o!==(o=e())&&(a&&(bt(a),a=null),W&&o==null&&Ls(),a=Et(()=>o(n,...i)))},65536),ge&&(n=Te)}if(W){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Cs(e)},set:n=>{i=n}})}};fc=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var fc;function _n(t){we===null&&$n("onMount"),vi&&we.l!==null?pc(we).m.push(t):Di(()=>{let e=Je(t);if(typeof e=="function")return e})}function pc(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var _l=new Map;function yl(t,e){var i=_l.get(t);i||(i=new Set,_l.set(t,i)),i.add(e)}function Ye(t,e,[i,n]=[0,0]){ge&&i===0&&Nt();var o=t,a=null,d=null,r=rt,u=i>0?65536:0,h=!1;let f=(c,v=!0)=>{h=!0,l(v,c)},l=(c,v)=>{if(r===(r=c))return;let b=!1;if(ge&&n!==-1){if(i===0){let g=Ir(o);g===Oi?n=0:g===zi?n=1/0:(n=parseInt(g.substring(1)),n!==n&&(n=r?1/0:-1))}let y=n>i;!!r===y&&(o=Fn(),dt(o),Wt(!1),b=!0,n=-1)}r?(a?mn(a):v&&(a=Et(()=>v(o))),d&&ui(d,()=>{d=null})):(d?mn(d):v&&(d=Et(()=>v(o,[i+1,n]))),a&&ui(a,()=>{a=null})),b&&Wt(!0)};xt(()=>{h=!1,e(f),h||l(null,null)},u),ge&&(o=Te)}function Qr(t,e,i){ge&&Nt();var n=t,o=rt,a,d=_i()?Ts:sn;xt(()=>{d(o,o=e())&&(a&&ui(a),a=Et(()=>i(n)))}),ge&&(n=Te)}var Wr;function bl(t){return Wr=t.target,new Br(t)}var Li,ei,Br=class{constructor(e){uo(this,Li);uo(this,ei);var a,d;var i=new Map,n=(r,u)=>{var h=Ni(u,!1,!1);return i.set(r,h),h};let o=new Proxy(ct(We({},e.props||{}),{$$events:{}}),{get(r,u){var h;return j((h=i.get(u))!=null?h:n(u,Reflect.get(r,u)))},has(r,u){var h;return u===Ln?!0:(j((h=i.get(u))!=null?h:n(u,Reflect.get(r,u))),Reflect.has(r,u))},set(r,u,h){var f;return Ne((f=i.get(u))!=null?f:n(u,h),h),Reflect.set(r,u,h)}});co(this,ei,(e.hydrate?Hr:Pi)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((d=e==null?void 0:e.props)!=null&&d.$$host)||e.sync===!1)&&Kn(),co(this,Li,o.$$events);for(let r of Object.keys(Lt(this,ei)))r==="$set"||r==="$destroy"||r==="$on"||pt(this,r,{get(){return Lt(this,ei)[r]},set(u){Lt(this,ei)[r]=u},enumerable:!0});Lt(this,ei).$set=r=>{Object.assign(o,r)},Lt(this,ei).$destroy=()=>{Xn(Lt(this,ei))}}$set(e){Lt(this,ei).$set(e)}$on(e,i){Lt(this,Li)[e]=Lt(this,Li)[e]||[];let n=(...o)=>i.call(this,...o);return Lt(this,Li)[e].push(n),()=>{Lt(this,Li)[e]=Lt(this,Li)[e].filter(o=>o!==n)}}$destroy(){Lt(this,ei).$destroy()}};Li=new WeakMap,ei=new WeakMap;function ht(t,e){ci(()=>{var o,a,d;var i=t.getRootNode(),n=i.host?i:(d=(o=i.head)!=null?o:i.ownerDocument.head)!=null?d:(a=Wr)==null?void 0:a.parentNode;if(!(n!=null&&n.querySelector("#"+e.hash))){let r=document.createElement("style");r.id=e.hash,r.textContent=e.code,n.appendChild(r),W&&yl(e.hash,r)}})}var xl=[...`
|
|
40
|
-
\r\f \v\uFEFF`];function Tl(t,e,i){var n=t==null?"":""+t;if(e&&(n=n?n+" "+e:e),i){for(var o in i)if(i[o])n=n?n+" "+o:o;else if(n.length)for(var a=o.length,d=0;(d=n.indexOf(o,d))>=0;){var r=d+a;(d===0||xl.includes(n[d-1]))&&(r===n.length||xl.includes(n[r]))?n=(d===0?"":n.substring(0,d))+n.substring(r+1):d=r}}return n===""?null:n}function El(t,e=!1){var i=e?" !important;":";",n="";for(var o in t){var a=t[o];a!=null&&a!==""&&(n+=" "+o+": "+a+i)}return n}function Gr(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ml(t,e){if(e){var i="",n,o;if(Array.isArray(e)?(n=e[0],o=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,d=0,r=!1,u=[];n&&u.push(...Object.keys(n).map(Gr)),o&&u.push(...Object.keys(o).map(Gr));var h=0,f=-1;let y=t.length;for(var l=0;l<y;l++){var c=t[l];if(r?c==="/"&&t[l-1]==="*"&&(r=!1):a?a===c&&(a=!1):c==="/"&&t[l+1]==="*"?r=!0:c==='"'||c==="'"?a=c:c==="("?d++:c===")"&&d--,!r&&a===!1&&d===0){if(c===":"&&f===-1)f=l;else if(c===";"||l===y-1){if(f!==-1){var v=Gr(t.substring(h,f).trim());if(!u.includes(v)){c!==";"&&l++;var b=t.substring(h,l).trim();i+=" "+b+";"}}h=l+1,f=-1}}}}return n&&(i+=El(n)),o&&(i+=El(o,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function yn(t,e,i,n,o,a){var d=t.__className;if(ge||d!==i||d===void 0){var r=Tl(i,n,a);(!ge||r!==t.getAttribute("class"))&&(r==null?t.removeAttribute("class"):e?t.className=r:t.setAttribute("class",r)),t.__className=i}else if(a&&o!==a)for(var u in a){var h=!!a[u];(o==null||h!==!!o[u])&&t.classList.toggle(u,h)}return a}function qr(t,e={},i,n){for(var o in i){var a=i[o];e[o]!==a&&(i[o]==null?t.style.removeProperty(o):t.style.setProperty(o,a,n))}}function Vi(t,e,i,n){var o=t.__style;if(ge||o!==e){var a=Ml(e,n);(!ge||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else n&&(Array.isArray(n)?(qr(t,i==null?void 0:i[0],n[0]),qr(t,i==null?void 0:i[1],n[1],"important")):qr(t,i,n));return n}var Dc=Symbol("class"),Lc=Symbol("style"),kc=Symbol("is custom element"),Cc=Symbol("is html");function Kt(t,e,i,n){var o=$c(t);if(ge&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){n||Rc(t,e,i!=null?i:"");return}o[e]!==(o[e]=i)&&(e==="loading"&&(t[Es]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Oc(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function $c(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[kc]:t.nodeName.includes("-"),[Cc]:t.namespaceURI===gs}}var wl=new Map;function Oc(t){var e=wl.get(t.nodeName);if(e)return e;wl.set(t.nodeName,e=[]);for(var i,n=t,o=Element.prototype;o!==n;){i=gr(n);for(var a in i)i[a].set&&e.push(a);n=rn(n)}return e}function Rc(t,e,i){var n;W&&(e==="srcset"&&Pc(t,i)||Kr((n=t.getAttribute(e))!=null?n:"",i)||Fs(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Kr(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Sl(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Pc(t,e){var i=Sl(t.srcset),n=Sl(e);return n.length===i.length&&n.every(([o,a],d)=>a===i[d][1]&&(Kr(i[d][0],o)||Kr(o,i[d][0])))}function Il(t,e){return t===e||(t==null?void 0:t[Pt])===e}function qi(t={},e,i,n){return Vt(()=>{var o,a;return Dt(()=>{o=a,a=(n==null?void 0:n())||[],Je(()=>{t!==i(...a)&&(e(t,...a),o&&Il(i(...o),t)&&e(null,...o))})}),()=>{ci(()=>{a&&Il(i(...a),t)&&e(null,...a)})}}),t}function eo(t,e,i){if(t==null)return e(void 0),i&&i(void 0),vt;let n=Je(()=>t.subscribe(e,i));return n.unsubscribe?()=>n.unsubscribe():n}var bn=[];function ti(t,e){return{subscribe:H(t,e).subscribe}}function H(t,e=vt){let i=null,n=new Set;function o(r){if(sn(t,r)&&(t=r,i)){let u=!bn.length;for(let h of n)h[1](),bn.push(h,t);if(u){for(let h=0;h<bn.length;h+=2)bn[h][0](bn[h+1]);bn.length=0}}}function a(r){o(r(t))}function d(r,u=vt){let h=[r,u];return n.add(h),n.size===1&&(i=e(o,a)||vt),r(t),()=>{n.delete(h),n.size===0&&i&&(i(),i=null)}}return{set:o,update:a,subscribe:d}}function at(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return ti(i,(d,r)=>{let u=!1,h=[],f=0,l=vt,c=()=>{if(f)return;l();let b=e(n?h[0]:h,d,r);a?d(b):l=typeof b=="function"?b:vt},v=o.map((b,y)=>eo(b,g=>{h[y]=g,f&=~(1<<y),u&&c()},()=>{f|=1<<y}));return u=!0,c(),function(){an(v),l(),u=!1}})}function Ae(t){let e;return eo(t,i=>e=i)(),e}var Ro=!1,Zr=Symbol();function pi(t,e,i){var a;let n=(a=i[e])!=null?a:i[e]={store:null,source:Ni(void 0),unsubscribe:vt};if(n.store!==t&&!(Zr in i))if(n.unsubscribe(),n.store=t!=null?t:null,t==null)n.source.v=void 0,n.unsubscribe=vt;else{var o=!0;n.unsubscribe=eo(t,d=>{o?n.source.v=d:Ne(n.source,d)}),o=!1}return t&&Zr in i?Ae(t):j(n.source)}function Ki(){let t={};function e(){kt(()=>{for(var i in t)t[i].unsubscribe();pt(t,Zr,{enumerable:!1,value:!0})})}return[t,e]}function Jr(t){var e=Ro;try{return Ro=!1,[t(),Ro]}finally{Ro=e}}function Nl(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function xe(t,e,i,n){var I,m;var o=(i&1)!==0,a=!vi||(i&2)!==0,d=(i&8)!==0,r=(i&16)!==0,u=!1,h;d?[h,u]=Jr(()=>t[e]):h=t[e];var f=Pt in t||Ln in t,l=d&&((m=(I=Rt(t,e))==null?void 0:I.set)!=null?m:f&&e in t&&(U=>t[e]=U))||void 0,c=n,v=!0,b=!1,y=()=>(b=!0,v&&(v=!1,r?c=Je(n):c=n),c);h===void 0&&n!==void 0&&(l&&a&&ks(e),h=y(),l&&l(h));var g;if(a)g=()=>{var U=t[e];return U===void 0?y():(v=!0,b=!1,U)};else{var C=(o?Ti:_o)(()=>t[e]);C.f|=131072,g=()=>{var U=j(C);return U!==void 0&&(c=void 0),U===void 0?c:U}}if((i&4)===0&&a)return g;if(l){var D=t.$$legacy;return function(U,x){return arguments.length>0?((!a||!x||D||u)&&l(x?g():U),U):g()}}var N=!1,w=!1,A=Ni(h),M=Ti(()=>{var U=g(),x=j(A);return N?(N=!1,w=!0,x):(w=!1,A.v=U)});return d&&j(M),o||(M.equals=ln),function(U,x){if(ko!==null&&(N=w,g(),j(A)),arguments.length>0){let P=x?j(M):a&&d?St(U):U;if(!M.equals(P)){if(N=!0,Ne(A,P),b&&c!==void 0&&(c=P),Nl(M))return U;Je(()=>j(M))}return U}return Nl(M)?M.v:j(M)}}var Bc;typeof HTMLElement=="function"&&(Bc=class extends HTMLElement{constructor(e,i,n){super();Jt(this,"$$ctor");Jt(this,"$$s");Jt(this,"$$c");Jt(this,"$$cn",!1);Jt(this,"$$d",{});Jt(this,"$$r",!1);Jt(this,"$$p_d",{});Jt(this,"$$l",{});Jt(this,"$$l_u",new Map);Jt(this,"$$me");this.$$ctor=e,this.$$s=i,n&&this.attachShadow({mode:"open"})}addEventListener(e,i,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let o=this.$$c.$on(e,i);this.$$l_u.set(i,o)}super.addEventListener(e,i,n)}removeEventListener(e,i,n){if(super.removeEventListener(e,i,n),this.$$c){let o=this.$$l_u.get(i);o&&(o(),this.$$l_u.delete(i))}}connectedCallback(){return Ft(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return d=>{let r=document.createElement("slot");a!=="default"&&(r.name=a),ve(d,r)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Wc(this);for(let a of this.$$s)a in o&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),n.default=!0):n[a]=i(a));for(let a of this.attributes){let d=this.$$g_p(a.name);d in this.$$d||(this.$$d[d]=Xr(d,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=bl({component:this.$$ctor,target:this.shadowRoot||this,props:ct(We({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=No(()=>{Dt(()=>{var a;this.$$r=!0;for(let d of vr(this.$$c)){if(!((a=this.$$p_d[d])!=null&&a.reflect))continue;this.$$d[d]=this.$$c[d];let r=Xr(d,this.$$d[d],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[d].attribute||d):this.setAttribute(this.$$p_d[d].attribute||d,r)}this.$$r=!1})});for(let a in this.$$l)for(let d of this.$$l[a]){let r=this.$$c.$on(a,d);this.$$l_u.set(d,r)}this.$$l={}}})}attributeChangedCallback(e,i,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Xr(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return vr(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Xr(t,e,i,n){var a;let o=(a=i[t])==null?void 0:a.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Wc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Dl="5";var Ll,kl,Cl;typeof window!="undefined"&&((Cl=(kl=(Ll=window.__svelte)!=null?Ll:window.__svelte={}).v)!=null?Cl:kl.v=new Set).add(Dl);var cd=require("@vkontakte/videoplayer-core/es2015"),d0=require("@vkontakte/videoplayer-core/es2015"),pd=require("@vkontakte/videoplayer-shared/es2015"),fd=require("@vkontakte/videoplayer-statistics/es2015");var Zi=require("@vkontakte/videoplayer-shared/es2015");var Gc={debugLog:!1,devNullLog:!1,defaultLanguage:Zi.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,trafficSavingLimit:Zi.VideoQuality.Q_480P,highQualityLimit:Zi.VideoQuality.Q_720P,features:{autoplay:!0,statistics:!0,thinStatistics:!1,preload:!0,subtitles:!0,fullscreen:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,copyVideoLink:!0,videoRotate:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,userVideoPrefs:!1,initSubtitles:!0},controls:{playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},userSalt:"0"},$l=t=>(0,Zi.fillWithDefault)(t,Gc),Ol=t=>Vn("ui-config",t),An=()=>Pn("ui-config");var to="vk_player_debug_panel_opened";var Rl="videoplayer",Pl="videoplayer";var Vo=require("@vkontakte/videoplayer-shared/es2015"),Ul=require("@vkontakte/videoplayer-core/es2015"),zl=require("@vkontakte/videoplayer-statistics/es2015");var Vl="prod",io="1.0.4-dev.ffe03d52.0";var jl=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Fl=Symbol("storeContext"),Hl=t=>{Vn(Fl,t),Vl==="dev"&&(window.app={store:t})},ji=()=>{let t=Pn(Fl);return(0,Vo.assertNonNullable)(t,"Store context is empty!"),t},Ve=(t,e)=>jo(t,t.getValue(),e),jo=(t,e,i)=>ti(e,n=>{let o=t.subscribe(a=>{n(a),i==null||i(a)});return()=>o.unsubscribe()}),Ql=(t,e,i,n,o=["meta config not provided"])=>{var m,U,x,P,k,Z,ae,V,G;let a=t.info,{width:d,height:r}=Ae(i.ui.playerSize),u=(U=(m=a.throughputEstimation$.getValue())==null?void 0:m.toFixed(0))!=null?U:0,h=(P=(x=a.rttEstimation$.getValue())==null?void 0:x.toFixed(0))!=null?P:0,f=a.isAutoQualityEnabled$.getValue()?"auto":"manual",l=`${io} (core: ${Ul.VERSION}, stat: ${zl.VERSION}, shared: ${Vo.VERSION})`,c=Ae(i.state.errorLog$),v=c.length?`
|
|
41
|
-
`+
|
|
42
|
-
`,
|
|
43
|
-
`,
|
|
44
|
-
`;return
|
|
45
|
-
`):void 0,
|
|
46
|
-
`)},Yl=(t,e,i)=>{var m,U,x,P;let n=t.info,{width:o,height:a}=Ae(i.ui.playerSize),d={version:io,viewport:`${o}x${a}`,volume:Math.round(Ae(i.state.volume$)*100)};d.id=i.videoId,n.currentFormat$.getValue()&&(d.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(d.cdn=n.hostname$.getValue());let h=n.intrinsicVideoSize$.getValue();h&&(d.videoSize=`${h.width}x${h.height}`);let f=n.currentBuffer$.getValue(),l=n.currentNativeBuffer$.getValue(),c=n.isLive$.getValue(),v=n.liveBufferTime$.getValue();f&&l&&(c&&v?(d.buffer=f.end-v,d.nativeBuffer=l.end-v):(d.buffer=Math.max(f.end-Ae(i.state.positionExact$),0),d.nativeBuffer=Math.max(l.end-Ae(i.state.positionExact$),0))),d.position=Ae(i.state.positionExact$);let b=n.throughputEstimation$.getValue();b&&(d.speed=b);let y=n.videoBitrate$.getValue();y&&(d.bitrate=y);let g=n.liveLatency$.getValue();g&&(d.liveLatency=g);let C=n.currentVideoSegmentLength$.getValue();C&&(d.currentVideoSegmentLength=C);let D=n.currentAudioSegmentLength$.getValue();D&&(d.currentAudioSegmentLength=D);let N=Ae(i.vsid);typeof N=="string"&&(d.vsid=N);let w=(m=t.info.currentVideoStream$.getValue())==null?void 0:m.codec;w&&(d.videoCodec=w);let A=(U=t.info.currentAudioStream$.getValue())==null?void 0:U.codec;A&&(d.audioCodec=A),((x=t.info.currentVideoStream$.getValue())==null?void 0:x.hdr)&&(d.hdr=!0);let I=(P=t.info.currentAudioStream$.getValue())==null?void 0:P.language;return I&&(d.audioLanguage=I),d},Bl=(t,e)=>jl(t,e,"mp4"),Wl=()=>{let e=[],i=0;return{add:(n,o)=>{e[i]=[n,o],i=(i+1)%10},find:n=>e.find(([o])=>o===n)}},Po=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return Ft(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Ge=require("@vkontakte/videoplayer-shared/es2015"),Qw=require("@vkontakte/videoplayer-core/es2015");var qc="vk_player_",ql="vk_player_prefer_traffic_saving_enabled",Kc="vk_player_preferred_volume",Zc="vk_player_prefer_volume_mute",na="vk_player_preferred_quality",ea="vk_player_preferred_default_quality_settings",ta="vk_player_preferred_quality_settings_by_video",Kl="vk_player_preferred_stream_language",Zl="vk_player_preferred_rate";var ia="vk_player_preferred_subtitles_language",Jc="vk_player_user_video_prefs",Yw=`${qc}preview_track_close_tooltip`,Xc=t=>t>1?1:t<0?0:t;var Uo=()=>{let t=Ge.safeStorage.get(Kc);return(0,Ge.isNullable)(t)?void 0:Xc(parseFloat(t))},oa=(t,e)=>Ge.safeStorage.set(na,JSON.stringify({videoId:t,value:e})),zo=()=>Ge.safeStorage.remove(na),ra=t=>{let e=Ge.safeStorage.get(na);if((0,Ge.isNullable)(e))return;let{videoId:i,value:n}=JSON.parse(e);if(t!==i){zo();return}return n},ep=(t,e)=>{e?Ge.safeStorage.set(t,"true"):Ge.safeStorage.remove(t)},Jl=t=>Ge.safeStorage.get(t)==="true";var Xl=()=>Jl(Zc),Gl=t=>ep(ql,t),aa=()=>Jl(ql),ed=()=>Ge.safeStorage.get(Kl),td=t=>Ge.safeStorage.set(Kl,t),sa=()=>Ge.safeStorage.get(ia),tp=t=>{t?Ge.safeStorage.set(ia,t):Ge.safeStorage.remove(ia)},id=t=>Ge.safeStorage.set(Zl,JSON.stringify({rate:t})),nd=()=>{let t=Ge.safeStorage.get(Zl);if((0,Ge.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e};var ip=()=>{let t=f=>{Ge.safeStorage.set(ea,JSON.stringify(f))},e=()=>{try{let f=Ge.safeStorage.get(ea);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Ge.safeStorage.get(ta);return f?JSON.parse(f):null}catch(f){return null}},n=f=>{Ge.safeStorage.set(ta,JSON.stringify(f))},o=f=>{h(f);let l=f?i():null;if(l&&(l==null?void 0:l.videoId)===f)return ct(We({},l),{appliesTo:"to-video"});l&&a();let c=e();return c?ct(We({},c),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Ge.safeStorage.remove(ta)},d=()=>{Ge.safeStorage.remove(ea)},r=(f,l="as-default")=>{f.type==="exact_quality"||l==="to-video"?n(f):t(f)},u=f=>{let l=o(f);if(l){switch(l.type){case"traffic_saving":Gl(!0);break;case"exact_quality":oa(f,l.quality)}a(),d()}},h=f=>{let l=ra(f);if(l){n({type:"exact_quality",videoId:f,quality:l});return}aa()&&t({type:"traffic_saving",videoId:f}),Gl(!1),zo()};return{getPreferredQualitySettings:o,migrateSettingsToLegacyWay:u,savePreferredQualitySettings:r,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:sa,savePreferredSubtitlesLanguage:tp}},{getPreferredQualitySettings:Bw,migrateSettingsToLegacyWay:od,savePreferredQualitySettings:Ww,savePreferredDefaultQualitySettings:Gw,removePreferredQualitySettingsByVideo:qw,getPreferredDefaultQualitySettings:Kw}=ip();var np=()=>{let t=Ge.safeStorage.get(Jc);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Fo=(t,e)=>{var o,a;let i=np();return(a=(o=i==null?void 0:i[t])==null?void 0:o[e])!=null?a:null};var Xw=require("@vkontakte/videoplayer-core/es2015");var Ho=class{constructor(e){this.value=e,this.next=null}};var xn=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Ho(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var op=Ce('<div class="container s-8"><canvas class="s-8"></canvas></div>'),rp={hash:"s-8",code:".container.s-8{display:inline-block;height:16px;width:120px}canvas.s-8{margin-top:2px;transform:scaleY(-1)}"};function no(t,e){ft(e,!0),ht(t,rp);let i=xe(e,"values",19,()=>[]),n=He(void 0),o=He(null),a=16,d=120,r=60,u=d/r;_n(()=>{j(n).width=d,j(n).height=a,Ne(o,j(n).getContext("2d"),!0)});function h(c,v,b,y,g){g===0&&(g=1),c.fillStyle="#fff",c.fillRect(v,b,y,g)}Di(()=>{let c="";if(j(o)){let v=i()[0];for(let y=1;y<i().length;y++)i()[y]>v&&(v=i()[y]);j(o).clearRect(0,0,d,a);let b=r-1;for(let y=i().length-1;y>=0;y--){let g=b*u,C=v>0?a*(i()[y]/v):0;h(j(o),g,0,u,C),c=C+" "+c,b--}}});var f=op(),l=re(f);qi(l,c=>Ne(n,c),()=>j(n)),oe(f),ve(t,f),mt()}var ca=require("@vkontakte/videoplayer-shared/es2015");var En=require("@vkontakte/videoplayer-shared/es2015");var ap={auto_quality_invariant:"Авто",auto_quality:"Авто ({actual})",auto_quality_option:"Авто",other_quality:"Другое",high_quality:"Высокое качество",high_quality_description:"Будет использовано больше трафика",auto_quality_limit:"Автоматически",traffic_saving_quality:"Экономия трафика",traffic_saving_quality_description:"Видео грузятся быстрее, но качество ниже",default_quality_for_any_video:"Качество для всех видео",quality_applience:"Качество по умолчанию можно {action}",quality_applience_action:"изменить",menu_quality:"Качество",menu_traffic_saving:"Экономия данных",menu_playback_rate:"Скорость",menu_report:"Сообщить о проблеме",menu_pip:"Картинка в картинке",menu_pip_close:"Развернуть видео",menu_copy_video_link:"Скопировать ссылку на видео",menu_copy_video_link_with_timestamp:"Скопировать ссылку на кадр",menu_video_rotate:"Повернуть",menu_video_loop_on:"Включить повторение",menu_video_loop_off:"Отключить повторение",menu_chromecast:"Chromecast трансляция",menu_copy_debug:"Копировать данные для диагностики",menu_save_debug:"Сохранить данные для диагностики",menu_debug_overlay:"Техническая информация",menu_copy_embed_code:"Копировать код для встраивания",menu_audio_languages:"Звуковая дорожка",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Дорожка {index}",pip_dummy_title:"Видео воспроизводится в режиме картинка в картинке",submenu_quality:"Качество",submenu_playback_rate:"Скорость",submenu_settings:"Настройки",submenu_traffic_saving:"Экономия данных",submenu_audio_languages:"Звуковая дорожка",playing_ads:"Реклама {timeleft}",skip_ads_now:"Пропустить рекламу",skip_ads_after:"Пропустить {time}с",visit_advertiser:"Перейти на сайт",aria_timeline:"Ползунок временной шкалы",aria_timeline_value:"{position} (общая длительность {duration}",doubletap_seek_step:"{seconds} секунд",playback_rate_1:"Обычная",playback_rate:"{multiplier}x",video360:"панорамное видео",subtitles_caption:"Субтитры",subtitles_auto:"{language} (Автоматические)",subtitles_off:"Выкл.",subtitles_auto_caption:"Автоматические субтитры",subtitles_turn_on:"Включить субтитры",subtitles_turn_off:"Выключить субтитры",traffic_saving_off:"Откл.",traffic_saving_on:"Вкл.",traffic_saving_helper_text:"При включении качество видео будет снижено для экономии трафика",tooltip_button_disabled:"Кнопка недоступна",tooltip_previous:"Предыдущее видео",tooltip_restart:"Начать заново",tooltip_play:"Смотреть",tooltip_pause:"Пауза",tooltip_next:"Следующее видео",tooltip_interactive_go_back:"Вернуться к предыдущей главе",tooltip_interactive_go_back_disabled:"История прохождения недоступна",tooltip_interactive_go_back_disabled_first:"Вы смотрите первую главу",tooltip_interactive_go_back_disabled_limit:"Лимит возвратов исчерпан",tooltip_chapter_without_interactive:"В этой главе нет интерактива",tooltip_interactive_of_chapter_completed:"Интерактивы этой главы уже пройдены",tooltip_interactive_seek:"Перейти к интерактиву",tooltip_interactive_graph_off:"Показать карту сюжета",tooltip_interactive_graph_on:"Скрыть карту сюжета",tooltip_live:"Перемотать на актуальный лайв",tooltip_episodes:"Эпизоды",tooltip_volume:"Включить звук",tooltip_volume_muted:"Выключить звук",tooltip_sound_unavailable:"Звук недоступен",tooltip_subtitles_off:"Включить субтитры",tooltip_subtitles_on:"Выключить субтитры",tooltip_settings_off:"Открыть настройки",tooltip_settings_on:"Закрыть настройки",tooltip_fullscreen_off:"На весь экран",tooltip_fullscreen_on:"Выйти из полноэкранного режима",tooltip_chromecast_off:"Включить Chromecast",tooltip_chromecast_on:"Выключить Chromecast",tooltip_episode_finished:"Вы уже сделали свой выбор",tooltip_episode_unfinished:"Не пройдено",tooltip_disabled_when_interactive:"Интерактив уже идёт",tooltip_disabled_when_graph_on:"Кнопка недоступна во время просмотра карты",tooltip_interactive_interaction_time_indicator:"Нажмите на элемент интерактива",tooltip_vk_logo:"Открыть в VK Видео",tooltip_vk_video_logo:"Перейти в VK Видео",tooltip_autoplay_off:"Включить автовоспроизведение",tooltip_autoplay_on:"Отключить автовоспроизведение",tooltip_context_menu_open:"Открыть контекстное меню",tooltip_context_menu_close:"Закрыть контекстное меню",download_video_caption:"Скачать видео",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Быстрые клавиши",hotkey_map_modal_close_btn_text:"Закрыть",hotkey_map_group_title_common:"Общие",hotkey_map_group_title_playback:"Воспроизведение",hotkey_map_group_title_subtitles:"Субтитры",hotkey_map_group_title_episodes:"Эпизоды",hotkey_map_item_mute_description:"Включить или отключить звук",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Увеличить громкость",hotkey_map_item_volume_up_value:"Стрелка вверх",hotkey_map_item_volume_down_description:"Уменьшить громкость",hotkey_map_item_volume_down_value:"Стрелка вниз",hotkey_map_item_pip_description:"Свернуть или развернуть мини-проигрыватель",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Включить или выключить полноэкранный режим",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Скрыть или показать контекстное меню",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Скрыть или показать список горячих клавиш",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Приостановить или продолжить воспроизведение",hotkey_map_item_play_toggle_value:"Пробел (или k)",hotkey_map_item_seek_backward_description:"Перемотать ролик на 10 секунд назад",hotkey_map_item_seek_backward_value:"Стрелка влево (или j)",hotkey_map_item_seek_forward_description:"Перемотать ролик на 10 секунд вперёд",hotkey_map_item_seek_forward_value:"Стрелка вправо (или l)",hotkey_map_item_fast_seek_backward_description:"Ускоренная перемотка назад",hotkey_map_item_fast_seek_backward_value:"Shift + Стрелка влево",hotkey_map_item_fast_seek_forward_description:"Ускоренная перемотка вперёд",hotkey_map_item_fast_seek_forward_value:"Shift + Стрелка вправо",hotkey_map_item_rate_down_description:"Уменьшить скорость воспроизведения",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Увеличить скорость воспроизведения",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Перейти к предыдущему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Перейти к следующему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Перейти к определённому моменту видео <br />(например, при нажатии на цифру «7» ролик будет перемотан до временной отметки, которая соответствует 70% от длительности видео)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Включить или отключить субтитры",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Перейти к предыдущему эпизоду",hotkey_map_item_prev_episode_pc_value:"Ctrl + Стрелка влево",hotkey_map_item_prev_episode_mac_value:"Option + Стрелка влево",hotkey_map_item_next_episode_description:"Перейти к следующему эпизоду",hotkey_map_item_next_episode_pc_value:"Ctrl + Стрелка вправо",hotkey_map_item_next_episode_mac_value:"Option + Стрелка вправо",hotkey_map_item_next_video_description:"Перейти к следующему видео",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Перейти к предыдущему видео",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"дн",waiting_live_hour_value:"ч",waiting_live_minute_value:"мин",waiting_live_second_value:"сек",waiting_live_colon:":",waiting_live_upcoming_title:"Трансляция еще не началась",waiting_live_timer_title:"До начала трансляции осталось",waiting_live_recover_title:"Трансляция приостановлена - она продолжится, когда автор вернётся",waiting_record_title:"Трансляция завершена - запись появится позже",aria_label_video_player:"Видео плеер",aria_label_spherical_control:"Контроллер для сферического видео. Используйте клавиши со стрелками для панорамирования видео.",aria_label_debug_panel:"Область с технической информацией, сделайте скриншот для техподдержки",aria_label_new_tab_alert:"Откроется в новой вкладке.",aria_label_menu_quality:"Качество: {actual}",aria_label_menu_audio_languages:"Язык аудио: {actual}",aria_label_menu_rate:"Скорость: {actual}",aria_label_menu_subtitle:"Субтитры: {actual}",aria_label_menu_download:"Скачать видео",aria_label_menu_debug_overlay:"Отображение технической информации",aria_label_menu_rotate:"Повернуть видео на 90 градусов",aria_label_menu_loop:"Переключение режима повторения",aria_label_submenu_back:"Вернуться в меню настроек",aria_label_submenu_traffic_saving:"Режим экономии данных",aria_label_settings:"Настройки",aria_label_context_menu:"Контекстное меню",aria_label_autoplay:"Автовоспроизведение",end_screen_next_video:"Следующее видео",end_screen_recommended_video:"Рекомендуемое видео",slow_video_notification_button:"Выбрать качество «Авто»",slow_video_notification_force_description:`Видео грузится слишком медленно,
|
|
33
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Pr,Rr):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var me=!1;function Rt(t){me=t}var Me;function dt(t){if(t===null)throw ln(),Vi;return Me=t}function Tt(){return dt(Vt(Me))}function H(t){if(me){if(Vt(Me)!==null)throw ln(),Vi;Me=t}}function jr(t=1){if(me){for(var e=t,i=Me;e--;)i=Vt(i);Me=i}}function dn(){for(var t=0,e=Me;;){if(e.nodeType===mi){var i=e.data;if(i===tn){if(t===0)return e;t-=1}else(i===Gi||i===qi)&&(t+=1)}var n=Vt(e);e.remove(),e=n}}function zr(t){if(!t||t.nodeType!==mi)throw ln(),Vi;return t.data}function bl(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:n,includes:r}=t;t.indexOf=function(o,s){let a=i.call(this,o,s);if(a===-1){for(let c=s!=null?s:0;c<this.length;c+=1)if($r(this[c])===o){Vr("array.indexOf(...)");break}}return a},t.lastIndexOf=function(o,s){let a=n.call(this,o,s!=null?s:this.length-1);if(a===-1){for(let c=0;c<=(s!=null?s:this.length-1);c+=1)if($r(this[c])===o){Vr("array.lastIndexOf(...)");break}}return a},t.includes=function(o,s){let a=r.call(this,o,s);if(!a){for(let c=0;c<this.length;c+=1)if($r(this[c])===o){Vr("array.includes(...)");break}}return a},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=n,t.includes=r}}var Yo,xl,ir,Al,El;function Ur(){if(Yo===void 0){Yo=window,xl=document,ir=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Al=Wt(e,"firstChild").get,El=Wt(e,"nextSibling").get,Ro(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Ro(i)&&(i.__t=void 0),Z&&(t.__svelte_meta=null,bl())}}function hi(t=""){return document.createTextNode(t)}function ht(t){return Al.call(t)}function Vt(t){return El.call(t)}function B(t,e){if(!me)return ht(t);var i=ht(Me);if(i===null)i=Me.appendChild(hi());else if(e&&i.nodeType!==Gn){var n=hi();return i==null||i.before(n),dt(n),n}return dt(i),i}function ri(t,e){var r,o;if(!me){var i=ht(t);return i.nodeType===8&&i.data===""?Vt(i):i}if(e&&((r=Me)==null?void 0:r.nodeType)!==Gn){var n=hi();return(o=Me)==null||o.before(n),dt(n),n}return Me}function ne(t,e=1,i=!1){let n=me?Me:t;for(var r;e--;)r=n,n=Vt(n);if(!me)return n;if(i&&(n==null?void 0:n.nodeType)!==Gn){var o=hi();return n===null?r==null||r.after(o):n.before(o),dt(o),o}return dt(n),n}function nr(t){t.textContent=""}function Ml(t){xe===null&&Ie===null&&il(t),Ie!==null&&(Ie.f&256)!==0&&xe===null&&tl(),Ui&&el(t)}function bc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function un(t,e,i,n=!0){var c;var r=xe;if(Z)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var o={ctx:$e,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Z&&(o.component_function=Ei),i)try{Nn(o),o.f|=32768}catch(m){throw Mt(o),m}else e!==null&&tr(o);var s=i&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&1048704)===0;if(!s&&n&&(r!==null&&bc(o,r),Ie!==null&&(Ie.f&2)!==0)){var a=Ie;((c=a.effects)!=null?c:a.effects=[]).push(o)}return o}function Lt(t){let e=un(8,null,!1);return Bt(e,1024),e.teardown=t,e}function jt(t){var r;Ml("$effect");var e=xe!==null&&(xe.f&32)!==0&&$e!==null&&!$e.m;if(Z&&xt(t,"name",{value:"$effect"}),e){var i=$e;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:xe,reaction:Ie})}else{var n=qt(t);return n}}function Qr(t){let e=un(64,t,!0);return()=>{Mt(e)}}function Tl(t){let e=un(64,t,!0);return(i={})=>new Promise(n=>{i.outro?_i(e,()=>{Mt(e),n(void 0)}):(Mt(e),n(void 0))})}function qt(t){return un(4,t,!1)}function zt(t){return un(8,t,!0)}function ye(t,e=[],i=zi){if(Z)return zt(()=>{var r=xe,o=()=>t(...s.map(N));xt(r.fn,"name",{value:"{expression}"}),xt(o,"name",{value:"{expression}"});let s=e.map(i);St(o)});let n=e.map(i);return St(()=>t(...n.map(N)))}function St(t,e=0){return un(24|e,t,!0)}function At(t,e=!0){return un(40,t,!0,e)}function qo(t){var e=t.teardown;if(e!==null){let i=Ui,n=Ie;Wo(!0),bt(null);try{e.call(null)}finally{Wo(i),bt(n)}}}function Ko(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var n=i.next;(i.f&64)!==0?i.parent=null:Mt(i,e),i=n}}function Sl(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Mt(e),e=i}}function Mt(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Il(t.nodes_start,t.nodes_end),i=!0),Ko(t,e&&!i),or(t,0),Bt(t,16384);var n=t.transitions;if(n!==null)for(let o of n)o.stop();qo(t);var r=t.parent;r!==null&&r.first!==null&&Zo(t),Z&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Il(t,e){for(;t!==null;){var i=t===e?null:Vt(t);t.remove(),t=i}}function Zo(t){var e=t.parent,i=t.prev,n=t.next;i!==null&&(i.next=n),n!==null&&(n.prev=i),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=i))}function _i(t,e){var i=[];Yr(t,i,!0),Jo(i,()=>{Mt(t),e&&e()})}function Jo(t,e){var i=t.length;if(i>0){var n=()=>--i||e();for(var r of t)r.out(n)}else e()}function Yr(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let s of t.transitions)(s.is_global||i)&&e.push(s);for(var n=t.first;n!==null;){var r=n.next,o=(n.f&65536)!==0||(n.f&32)!==0;Yr(n,e,o?i:!1),n=r}}}function Ki(t){Nl(t,!0)}function Nl(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var n=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;Nl(i,r?e:!1),i=n}if(t.transitions!==null)for(let o of t.transitions)(o.is_global||e)&&o.in()}}var ar=[],Xo=[];function Dl(){var t=ar;ar=[],An(t)}function xc(){var t=Xo;Xo=[],An(t)}function oi(t){ar.length===0&&queueMicrotask(Dl),ar.push(t)}function Cl(){ar.length>0&&Dl(),Xo.length>0&&xc()}function kl(t){var e=xe;if(Z&&t instanceof Error&&Ac(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else sr(t,e)}function sr(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var $l=new WeakSet;function Ac(t,e){var s,a;if($l.has(t))return;$l.add(t);let i=Wt(t,"message");if(!(i&&!i.configurable)){for(var n=ir?" ":" ",r=`
|
|
34
|
+
${n}in ${((s=e.fn)==null?void 0:s.name)||"<unknown>"}`,o=e.ctx;o!==null;)r+=`
|
|
35
|
+
${n}in ${(a=o.function)==null?void 0:a[xi].split("/").pop()}`,o=o.p;xt(t,"message",{value:t.message+`
|
|
36
|
+
${r}
|
|
37
|
+
`}),t.stack&&xt(t,"stack",{value:t.stack.split(`
|
|
38
|
+
`).filter(c=>!c.includes("svelte/src/internal")).join(`
|
|
39
|
+
`)})}}var cn=!1,Dn=null,fn=!1,Ui=!1;function Wo(t){Ui=t}var lr=[],dr=[],Ie=null,ii=!1;function bt(t){Ie=t}var xe=null;function wt(t){xe=t}var Ct=null;function Or(t){Ie!==null&&Ie.f&2097152&&(Ct===null?Ct=[Ie,[t]]:Ct[1].push(t))}var Qt=null,ai=0,ti=null;function hl(t){ti=t}var Pl=1,Gr=0,Fi=!1,qr=null;function Xn(){return++Pl}function sn(t){var l,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,n=(e&256)!==0;if(i!==null){var r,o,s=(e&512)!==0,a=n&&xe!==null&&!Fi,c=i.length;if(s||a){var m=t,f=m.parent;for(r=0;r<c;r++)o=i[r],(s||!((l=o==null?void 0:o.reactions)!=null&&l.includes(m)))&&((u=o.reactions)!=null?u:o.reactions=[]).push(m);s&&(m.f^=512),a&&f!==null&&(f.f&256)===0&&(m.f^=256)}for(r=0;r<c;r++)if(o=i[r],sn(o)&&Qo(o),o.wv>t.wv)return!0}(!n||xe!==null&&!Fi)&&Bt(t,1024)}return!1}function Rl(t,e,i=!0){var n=t.reactions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];Ct!=null&&Ct[1].includes(t)&&Ct[0]===Ie||((o.f&2)!==0?Rl(o,e,!1):e===o&&(i?Bt(o,2048):(o.f&1024)!==0&&Bt(o,4096),tr(o)))}}function Lr(t){var v,h;var e=Qt,i=ai,n=ti,r=Ie,o=Fi,s=Ct,a=$e,c=ii,m=t.f;Qt=null,ai=0,ti=null,Fi=(m&256)!==0&&(ii||!fn||Ie===null),Ie=(m&96)===0?t:null,Ct=null,Kn(t.ctx),ii=!1,Gr++,t.f|=2097152;try{var f=(0,t.fn)(),l=t.deps;if(Qt!==null){var u;if(or(t,ai),l!==null&&ai>0)for(l.length=ai+Qt.length,u=0;u<Qt.length;u++)l[ai+u]=Qt[u];else t.deps=l=Qt;if(!Fi||(m&2)!==0&&t.reactions!==null)for(u=ai;u<l.length;u++)((h=(v=l[u]).reactions)!=null?h:v.reactions=[]).push(t)}else l!==null&&ai<l.length&&(or(t,ai),l.length=ai);if(ki()&&ti!==null&&!ii&&l!==null&&(t.f&6146)===0)for(u=0;u<ti.length;u++)Rl(ti[u],t);return r!==null&&r!==t&&(Gr++,ti!==null&&(n===null?n=ti:n.push(...ti))),f}catch(_){kl(_)}finally{Qt=e,ai=i,ti=n,Ie=r,Fi=o,Ct=s,Kn(a),ii=c,t.f^=2097152}}function Ec(t,e){let i=e.reactions;if(i!==null){var n=qs.call(i,t);if(n!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[n]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Qt===null||!Qt.includes(e))&&(Bt(e,4096),(e.f&768)===0&&(e.f^=512),kr(e),or(e,0))}function or(t,e){var i=t.deps;if(i!==null)for(var n=e;n<i.length;n++)Ec(t,i[n])}function Nn(t){var e=t.f;if((e&16384)===0){Bt(t,1024);var i=xe,n=fn;if(xe=t,fn=!0,Z){var r=Ei;Zn(t.component_function)}try{(e&16)!==0?Sl(t):Ko(t),qo(t);var o=Lr(t);if(t.teardown=typeof o=="function"?o:null,t.wv=Pl,Z&&$i&&(t.f&2048)!==0&&t.deps!==null)for(var s of t.deps)s.set_during_effect&&(s.wv=Xn(),s.set_during_effect=!1);Z&&dr.push(t)}finally{fn=n,xe=i,Z&&Zn(r)}}}function Ll(){console.error("Last ten effects were: ",dr.slice(-10).map(t=>t.fn)),dr=[]}function wc(){try{nl()}catch(t){if(Z&&xt(t,"stack",{value:""}),Dn!==null)if(Z)try{sr(t,Dn)}catch(e){throw Ll(),e}else sr(t,Dn);else throw Z&&Ll(),t}}function ta(){var t=fn;try{var e=0;for(fn=!0;lr.length>0;){e++>1e3&&wc();var i=lr,n=i.length;lr=[];for(var r=0;r<n;r++){var o=Tc(i[r]);Mc(o)}Tn.clear()}}finally{cn=!1,fn=t,Dn=null,Z&&(dr=[])}}function Mc(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var n=t[i];(n.f&24576)===0&&sn(n)&&(Nn(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Zo(n):n.fn=null))}}function tr(t){cn||(cn=!0,queueMicrotask(ta));for(var e=Dn=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}lr.push(e)}function Tc(t){for(var e=[],i=t;i!==null;){var n=i.f,r=(n&96)!==0,o=r&&(n&1024)!==0;if(!o&&(n&8192)===0){(n&4)!==0?e.push(i):r?i.f^=1024:sn(i)&&Nn(i);var s=i.first;if(s!==null){i=s;continue}}var a=i.parent;for(i=i.next;i===null&&a!==null;)i=a.next,a=a.parent}return e}function ur(t){var e;for(t&&(cn=!0,ta(),cn=!0,e=t());;){if(Cl(),lr.length===0)return cn=!1,Dn=null,Z&&(dr=[]),e;cn=!0,ta()}}function N(t){var e=t.f,i=(e&2)!==0;if(qr!==null&&qr.add(t),Ie!==null&&!ii){if(!(Ct!=null&&Ct[1].includes(t))||Ct[0]!==Ie){var n=Ie.deps;t.rv<Gr&&(t.rv=Gr,Qt===null&&n!==null&&n[ai]===t?ai++:Qt===null?Qt=[t]:(!Fi||!Qt.includes(t))&&Qt.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,o=r.parent;o!==null&&(o.f&256)===0&&(r.f^=256)}if(i&&(r=t,sn(r)&&Qo(r)),Z&&$i&&!ii&&qn!==null&&Ie!==null&&qn.reaction===Ie)if(t.trace)t.trace();else{var s=ji("TracedAt");if(s){var a=qn.entries.get(t);a===void 0&&(a={traces:[]},qn.entries.set(t,a));var c=a.traces[a.traces.length-1];s.stack!==(c==null?void 0:c.stack)&&a.traces.push(s)}}return Ui&&Tn.has(t)?Tn.get(t):t.v}function nt(t){var e=ii;try{return ii=!0,t()}finally{ii=e}}var Sc=-7169;function Bt(t,e){t.f=t.f&Sc|e}var Nc=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var bg=[...Nc,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Dc=["touchstart","touchmove"];function Vl(t){return Dc.includes(t)}var Cc=["$state","$state.raw","$derived","$derived.by"],xg=[...Cc,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var zl=new Map;function Ul(t,e){var i=zl.get(t);i||(i=new Set,zl.set(t,i)),i.add(e)}function Kr(t){var e=Ie,i=xe;bt(null),wt(null);try{return t()}finally{bt(e),wt(i)}}var ia=new Set,Zr=new Set;function Hl(t,e,i,n={}){function r(o){if(n.capture||$n.call(e,o),!o.cancelBubble)return Kr(()=>i==null?void 0:i.call(this,o))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?oi(()=>{e.addEventListener(t,r,n)}):e.addEventListener(t,r,n),r}function Cn(t,e,i,n,r){var o={capture:n,passive:r},s=Hl(t,e,i,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Lt(()=>{e.removeEventListener(t,s,o)})}function Zt(t){for(var e=0;e<t.length;e++)ia.add(t[e]);for(var i of Zr)i(t)}function $n(t){var D;var e=this,i=e.ownerDocument,n=t.type,r=((D=t.composedPath)==null?void 0:D.call(t))||[],o=r[0]||t.target,s=0,a=t.__root;if(a){var c=r.indexOf(a);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var m=r.indexOf(e);if(m===-1)return;c<=m&&(s=c)}if(o=r[s]||t.target,o!==e){xt(t,"currentTarget",{configurable:!0,get(){return o||i}});var f=Ie,l=xe;bt(null),wt(null);try{for(var u,v=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var _=o["__"+n];if(_!=null&&(!o.disabled||t.target===o))if(pi(_)){var[y,...$]=_;y.apply(o,[t,...$])}else _.call(o,t)}catch(T){u?v.push(T):u=T}if(t.cancelBubble||h===e||h===null)break;o=h}if(u){for(let T of v)queueMicrotask(()=>{throw T});throw u}}finally{t.__root=e,delete t.currentTarget,bt(f),wt(l)}}}var Lc;function Bl(){Lc=void 0}function cr(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function si(t,e){var i=xe;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function ue(t,e){var i=(e&1)!==0,n=(e&2)!==0,r,o=!t.startsWith("<!>");return()=>{if(me)return si(Me,null),Me;r===void 0&&(r=cr(o?t:"<!>"+t),i||(r=ht(r)));var s=n||ir?document.importNode(r,!0):r.cloneNode(!0);if(i){var a=ht(s),c=s.lastChild;si(a,c)}else si(s,s);return s}}function Pc(t,e,i="svg"){var n=!t.startsWith("<!>"),r=(e&1)!==0,o=`<${i}>${n?t:"<!>"+t}</${i}>`,s;return()=>{if(me)return si(Me,null),Me;if(!s){var a=cr(o),c=ht(a);if(r)for(s=document.createDocumentFragment();ht(c);)s.appendChild(ht(c));else s=ht(c)}var m=s.cloneNode(!0);if(r){var f=ht(m),l=m.lastChild;si(f,l)}else si(m,m);return m}}function It(t,e){return Pc(t,e,"svg")}function pn(){if(me)return si(Me,null),Me;var t=document.createDocumentFragment(),e=document.createComment(""),i=hi();return t.append(e,i),si(e,i),t}function J(t,e){if(me){xe.nodes_end=Me,Tt();return}t!==null&&t.before(e)}var na=!0;function Ne(t,e){var n;var i=e==null?"":typeof e=="object"?e+"":e;i!==((n=t.__t)!=null?n:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function mn(t,e){return Wl(t,e)}function oa(t,e){var s;Ur(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,n=me,r=Me;try{for(var o=ht(i);o&&(o.nodeType!==mi||o.data!==Gi);)o=Vt(o);if(!o)throw Vi;Rt(!0),dt(o),Tt();let a=Wl(t,vt(Ke({},e),{anchor:o}));if(Me===null||Me.nodeType!==mi||Me.data!==tn)throw ln(),Vi;return Rt(!1),a}catch(a){if(a===Vi)return e.recover===!1&&rl(),Ur(),nr(i),Rt(!1),mn(t,e);throw a}finally{Rt(n),dt(r),Bl()}}var kn=new Map;function Wl(t,{target:e,anchor:i,props:n={},events:r,context:o,intro:s=!0}){Ur();var a=new Set,c=l=>{for(var u=0;u<l.length;u++){var v=l[u];if(!a.has(v)){a.add(v);var h=Vl(v);e.addEventListener(v,$n,{passive:h});var _=kn.get(v);_===void 0?(document.addEventListener(v,$n,{passive:h}),kn.set(v,1)):kn.set(v,_+1)}}};c(Yn(ia)),Zr.add(c);var m=void 0,f=Tl(()=>{var l=i!=null?i:e.appendChild(hi());return At(()=>{if(o){Ee({});var u=$e;u.c=o}r&&(n.$$events=r),me&&si(l,null),na=s,m=t(l,n)||{},na=!0,me&&(xe.nodes_end=Me),o&&we()}),()=>{var h;for(var u of a){e.removeEventListener(u,$n);var v=kn.get(u);--v===0?(document.removeEventListener(u,$n),kn.delete(u)):kn.set(u,v)}Zr.delete(c),l!==i&&((h=l.parentNode)==null||h.removeChild(l))}});return ra.set(m,f),m}var ra=new WeakMap;function fr(t,e){let i=ra.get(t);return i?(ra.delete(t),i(e)):(Z&&yl(),Promise.resolve())}function De(t,e,[i,n]=[0,0]){me&&i===0&&Tt();var r=t,o=null,s=null,a=gt,c=i>0?65536:0,m=!1;let f=(u,v=!0)=>{m=!0,l(v,u)},l=(u,v)=>{if(a===(a=u))return;let h=!1;if(me&&n!==-1){if(i===0){let y=zr(r);y===Gi?n=0:y===qi?n=1/0:(n=parseInt(y.substring(1)),n!==n&&(n=a?1/0:-1))}let _=n>i;!!a===_&&(r=dn(),dt(r),Rt(!1),h=!0,n=-1)}a?(o?Ki(o):v&&(o=At(()=>v(r))),s&&_i(s,()=>{s=null})):(s?Ki(s):v&&(s=At(()=>v(r,[i+1,n]))),o&&_i(o,()=>{o=null})),h&&Rt(!0)};St(()=>{m=!1,e(f),m||l(null,null)},c),me&&(r=Me)}function aa(t,e,i){me&&Tt();var n=t,r=gt,o,s=ki()?Js:En;St(()=>{s(r,r=e())&&(o&&_i(o),o=At(()=>i(n)))}),me&&(n=Me)}var pr=null;function zc(t,e,i,n){for(var r=[],o=e.length,s=0;s<o;s++)Yr(e[s].e,r,!0);var a=o>0&&r.length===0&&i!==null;if(a){var c=i.parentNode;nr(c),c.append(i),n.clear(),Zi(t,e[0].prev,e[o-1].next)}Jo(r,()=>{for(var m=0;m<o;m++){var f=e[m];a||(n.delete(f.k),Zi(t,f.prev,f.next)),Mt(f.e,!a)}})}function da(t,e,i,n,r,o=null){var s=t,a={flags:e,items:new Map,first:null},c=(e&4)!==0;if(c){var m=t;s=me?dt(ht(m)):m.appendChild(hi())}me&&Tt();var f=null,l=!1,u=Jn(()=>{var v=i();return pi(v)?v:v==null?[]:Yn(v)});St(()=>{var v=N(u),h=v.length;if(l&&h===0)return;l=h===0;let _=!1;if(me){var y=zr(s)===qi;y!==(h===0)&&(s=dn(),dt(s),Rt(!1),_=!0)}if(me){for(var $=null,D,T=0;T<h;T++){if(Me.nodeType===mi&&Me.data===tn){s=Me,_=!0,Rt(!1);break}var b=v[T],x=n(b,T);D=Kl(Me,a,$,null,b,x,T,r,e,i),a.items.set(x,D),$=D}h>0&&dt(dn())}me||Uc(v,a,s,r,e,n,i),o!==null&&(h===0?f?Ki(f):f=At(()=>o(s)):f!==null&&_i(f,()=>{f=null})),_&&Rt(!0),N(u)}),me&&(s=Me)}function Uc(t,e,i,n,r,o,s){var U,O,P,z;var a=(r&8)!==0,c=(r&3)!==0,m=t.length,f=e.items,l=e.first,u=l,v,h=null,_,y=[],$=[],D,T,b,x;if(a)for(x=0;x<m;x+=1)D=t[x],T=o(D,x),b=f.get(T),b!==void 0&&((U=b.a)==null||U.measure(),(_!=null?_:_=new Set).add(b));for(x=0;x<m;x+=1){if(D=t[x],T=o(D,x),b=f.get(T),b===void 0){var A=u?u.e.nodes_start:i;h=Kl(A,e,h,h===null?e.first:h.next,D,T,x,n,r,s),f.set(T,h),y=[],$=[],u=h.next;continue}if(c&&Fc(b,D,x,r),(b.e.f&8192)!==0&&(Ki(b.e),a&&((O=b.a)==null||O.unfix(),(_!=null?_:_=new Set).delete(b))),b!==u){if(v!==void 0&&v.has(b)){if(y.length<$.length){var S=$[0],L;h=S.prev;var k=y[0],E=y[y.length-1];for(L=0;L<y.length;L+=1)Gl(y[L],S,i);for(L=0;L<$.length;L+=1)v.delete($[L]);Zi(e,k.prev,E.next),Zi(e,h,k),Zi(e,E,S),u=S,h=E,x-=1,y=[],$=[]}else v.delete(b),Gl(b,u,i),Zi(e,b.prev,b.next),Zi(e,b,h===null?e.first:h.next),Zi(e,h,b),h=b;continue}for(y=[],$=[];u!==null&&u.k!==T;)(u.e.f&8192)===0&&(v!=null?v:v=new Set).add(u),$.push(u),u=u.next;if(u===null)continue;b=u}y.push(b),h=b,u=b.next}if(u!==null||v!==void 0){for(var M=v===void 0?[]:Yn(v);u!==null;)(u.e.f&8192)===0&&M.push(u),u=u.next;var g=M.length;if(g>0){var R=(r&4)!==0&&m===0?i:null;if(a){for(x=0;x<g;x+=1)(P=M[x].a)==null||P.measure();for(x=0;x<g;x+=1)(z=M[x].a)==null||z.fix()}zc(e,M,R,f)}}a&&oi(()=>{var Q;if(_!==void 0)for(b of _)(Q=b.a)==null||Q.apply()}),xe.first=e.first&&e.first.e,xe.last=h&&h.e}function Fc(t,e,i,n){(n&1)!==0&&In(t.v,e),(n&2)!==0?In(t.i,i):t.i=i}function Kl(t,e,i,n,r,o,s,a,c,m){var f=pr,l=(c&1)!==0,u=(c&16)===0,v=l?u?Li(r,!1,!1):gi(r):r,h=(c&2)===0?s:gi(s);Z&&l&&(v.trace=()=>{var y=typeof h=="number"?s:h.v;m()[y]});var _={i:h,v,k:o,a:null,e:null,prev:i,next:n};pr=_;try{return _.e=At(()=>a(t,v,h,m),me),_.e.prev=i&&i.e,_.e.next=n&&n.e,i===null?e.first=_:(i.next=_,i.e.next=_.e),n!==null&&(n.prev=_,n.e.prev=_.e),_}finally{pr=f}}function Gl(t,e,i){for(var n=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,o=t.e.nodes_start;o!==n;){var s=Vt(o);r.before(o),o=s}}function Zi(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function ua(t,e,i,n,r){var a;me&&Tt();var o=(a=e.$$slots)==null?void 0:a[i],s=!1;o===!0&&(o=e[i==="default"?"children":i],s=!0),o===void 0?r!==null&&r(t):o(t,s?()=>n:n)}function Ln(t,e,...i){var n=t,r=Et,o;St(()=>{r!==(r=e())&&(o&&(Mt(o),o=null),Z&&r==null&&ol(),o=At(()=>r(n,...i)))},65536),me&&(n=Me)}var pa;function Zl(t){return pa=t.target,new fa(t)}var Bi,yi,fa=class{constructor(e){Tr(this,Bi);Tr(this,yi);var o,s;var i=new Map,n=(a,c)=>{var m=Li(c,!1,!1);return i.set(a,m),m};let r=new Proxy(vt(Ke({},e.props||{}),{$$events:{}}),{get(a,c){var m;return N((m=i.get(c))!=null?m:n(c,Reflect.get(a,c)))},has(a,c){var m;return c===Wn?!0:(N((m=i.get(c))!=null?m:n(c,Reflect.get(a,c))),Reflect.has(a,c))},set(a,c,m){var f;return pe((f=i.get(c))!=null?f:n(c,m),m),Reflect.set(a,c,m)}});Sr(this,yi,(e.hydrate?oa:mn)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(o=e.intro)!=null?o:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&ur(),Sr(this,Bi,r.$$events);for(let a of Object.keys(Ht(this,yi)))a==="$set"||a==="$destroy"||a==="$on"||xt(this,a,{get(){return Ht(this,yi)[a]},set(c){Ht(this,yi)[a]=c},enumerable:!0});Ht(this,yi).$set=a=>{Object.assign(r,a)},Ht(this,yi).$destroy=()=>{fr(Ht(this,yi))}}$set(e){Ht(this,yi).$set(e)}$on(e,i){Ht(this,Bi)[e]=Ht(this,Bi)[e]||[];let n=(...r)=>i.call(this,...r);return Ht(this,Bi)[e].push(n),()=>{Ht(this,Bi)[e]=Ht(this,Bi)[e].filter(r=>r!==n)}}$destroy(){Ht(this,yi).$destroy()}};Bi=new WeakMap,yi=new WeakMap;function Re(t,e){oi(()=>{var r,o,s;var i=t.getRootNode(),n=i.host?i:(s=(r=i.head)!=null?r:i.ownerDocument.head)!=null?s:(o=pa)==null?void 0:o.parentNode;if(!(n!=null&&n.querySelector("#"+e.hash))){let a=document.createElement("style");a.id=e.hash,a.textContent=e.code,n.appendChild(a),Z&&Ul(e.hash,a)}})}function Xl(t){var e,i,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Xl(t[e]))&&(n&&(n+=" "),n+=i)}else for(i in t)t[i]&&(n&&(n+=" "),n+=i);return n}function ed(){for(var t,e,i=0,n="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Xl(t))&&(n&&(n+=" "),n+=e);return n}function Oi(t){return typeof t=="object"?ed(t):t!=null?t:""}var td=[...`
|
|
40
|
+
\r\f \v\uFEFF`];function nd(t,e,i){var n=t==null?"":""+t;if(e&&(n=n?n+" "+e:e),i){for(var r in i)if(i[r])n=n?n+" "+r:r;else if(n.length)for(var o=r.length,s=0;(s=n.indexOf(r,s))>=0;){var a=s+o;(s===0||td.includes(n[s-1]))&&(a===n.length||td.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function id(t,e=!1){var i=e?" !important;":";",n="";for(var r in t){var o=t[r];o!=null&&o!==""&&(n+=" "+r+": "+o+i)}return n}function ma(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function rd(t,e){if(e){var i="",n,r;if(Array.isArray(e)?(n=e[0],r=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,a=!1,c=[];n&&c.push(...Object.keys(n).map(ma)),r&&c.push(...Object.keys(r).map(ma));var m=0,f=-1;let _=t.length;for(var l=0;l<_;l++){var u=t[l];if(a?u==="/"&&t[l-1]==="*"&&(a=!1):o?o===u&&(o=!1):u==="/"&&t[l+1]==="*"?a=!0:u==='"'||u==="'"?o=u:u==="("?s++:u===")"&&s--,!a&&o===!1&&s===0){if(u===":"&&f===-1)f=l;else if(u===";"||l===_-1){if(f!==-1){var v=ma(t.substring(m,f).trim());if(!c.includes(v)){u!==";"&&l++;var h=t.substring(m,l).trim();i+=" "+h+";"}}m=l+1,f=-1}}}}return n&&(i+=id(n)),r&&(i+=id(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function bi(t,e,i,n,r,o){var s=t.__className;if(me||s!==i||s===void 0){var a=nd(i,n,o);(!me||a!==t.getAttribute("class"))&&(a==null?t.removeAttribute("class"):e?t.className=a:t.setAttribute("class",a)),t.__className=i}else if(o&&r!==o)for(var c in o){var m=!!o[c];(r==null||m!==!!r[c])&&t.classList.toggle(c,m)}return o}function va(t,e={},i,n){for(var r in i){var o=i[r];e[r]!==o&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,o,n))}}function st(t,e,i,n){var r=t.__style;if(me||r!==e){var o=rd(e,n);(!me||o!==t.getAttribute("style"))&&(o==null?t.removeAttribute("style"):t.style.cssText=o),t.__style=e}else n&&(Array.isArray(n)?(va(t,i==null?void 0:i[0],n[0]),va(t,i==null?void 0:i[1],n[1],"important")):va(t,i,n));return n}var nf=Symbol("class"),rf=Symbol("style"),of=Symbol("is custom element"),af=Symbol("is html");function et(t,e,i,n){var r=sf(t);if(me&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){n||df(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Zs]=i),i==null?t.removeAttribute(e):typeof i!="string"&&lf(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function sf(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[of]:t.nodeName.includes("-"),[af]:t.namespaceURI===pl}}var od=new Map;function lf(t){var e=od.get(t.nodeName);if(e)return e;od.set(t.nodeName,e=[]);for(var i,n=t,r=Element.prototype;r!==n;){i=Oo(n);for(var o in i)i[o].set&&e.push(o);n=xn(n)}return e}function df(t,e,i){var n;Z&&(e==="srcset"&&uf(t,i)||ga((n=t.getAttribute(e))!=null?n:"",i)||_l(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function ga(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ad(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function uf(t,e){var i=ad(t.srcset),n=ad(e);return n.length===i.length&&n.every(([r,o],s)=>o===i[s][1]&&(ga(i[s][0],r)||ga(r,i[s][0])))}function sd(t,e){return t===e||(t==null?void 0:t[Gt])===e}function li(t={},e,i,n){return qt(()=>{var r,o;return zt(()=>{r=o,o=(n==null?void 0:n())||[],nt(()=>{t!==i(...o)&&(e(t,...o),r&&sd(i(...r),t)&&e(null,...r))})}),()=>{oi(()=>{o&&sd(i(...o),t)&&e(null,...o)})}}),t}function mr(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Et;let n=nt(()=>t.subscribe(e,i));return n.unsubscribe?()=>n.unsubscribe():n}var On=[];function di(t,e){return{subscribe:W(t,e).subscribe}}function W(t,e=Et){let i=null,n=new Set;function r(a){if(En(t,a)&&(t=a,i)){let c=!On.length;for(let m of n)m[1](),On.push(m,t);if(c){for(let m=0;m<On.length;m+=2)On[m][0](On[m+1]);On.length=0}}}function o(a){r(a(t))}function s(a,c=Et){let m=[a,c];return n.add(m),n.size===1&&(i=e(r,o)||Et),a(t),()=>{n.delete(m),n.size===0&&i&&(i(),i=null)}}return{set:r,update:o,subscribe:s}}function rt(t,e,i){let n=!Array.isArray(t),r=n?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let o=e.length<2;return di(i,(s,a)=>{let c=!1,m=[],f=0,l=Et,u=()=>{if(f)return;l();let h=e(n?m[0]:m,s,a);o?s(h):l=typeof h=="function"?h:Et},v=r.map((h,_)=>mr(h,y=>{m[_]=y,f&=~(1<<_),c&&u()},()=>{f|=1<<_}));return c=!0,u(),function(){An(v),l(),c=!1}})}function Te(t){let e;return mr(t,i=>e=i)(),e}var Xr=!1,ha=Symbol();function qe(t,e,i){var o;let n=(o=i[e])!=null?o:i[e]={store:null,source:Li(void 0),unsubscribe:Et};if(n.store!==t&&!(ha in i))if(n.unsubscribe(),n.store=t!=null?t:null,t==null)n.source.v=void 0,n.unsubscribe=Et;else{var r=!0;n.unsubscribe=mr(t,s=>{r?n.source.v=s:pe(n.source,s)}),r=!1}return t&&ha in i?Te(t):N(n.source)}function ui(){let t={};function e(){Lt(()=>{for(var i in t)t[i].unsubscribe();xt(t,ha,{enumerable:!1,value:!0})})}return[t,e]}function _a(t){var e=Xr;try{return Xr=!1,[t(),Xr]}finally{Xr=e}}function ld(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function tt(t,e,i,n){var S,L;var r=(i&1)!==0,o=!Ci||(i&2)!==0,s=(i&8)!==0,a=(i&16)!==0,c=!1,m;s?[m,c]=_a(()=>t[e]):m=t[e];var f=Gt in t||Wn in t,l=s&&((L=(S=Wt(t,e))==null?void 0:S.set)!=null?L:f&&e in t&&(k=>t[e]=k))||void 0,u=n,v=!0,h=!1,_=()=>(h=!0,v&&(v=!1,a?u=nt(n):u=n),u);m===void 0&&n!==void 0&&(l&&o&&al(e),m=_(),l&&l(m));var y;if(o)y=()=>{var k=t[e];return k===void 0?_():(v=!0,h=!1,k)};else{var $=(r?zi:Jn)(()=>t[e]);$.f|=131072,y=()=>{var k=N($);return k!==void 0&&(u=void 0),k===void 0?u:k}}if((i&4)===0&&o)return y;if(l){var D=t.$$legacy;return function(k,E){return arguments.length>0?((!o||!E||D||c)&&l(E?y():k),k):y()}}var T=!1,b=!1,x=Li(m),A=zi(()=>{var k=y(),E=N(x);return T?(T=!1,b=!0,E):(b=!1,x.v=k)});return s&&N(A),r||(A.equals=wn),function(k,E){if(qr!==null&&(T=b,y(),N(x)),arguments.length>0){let M=E?N(A):o&&s?Ot(k):k;if(!A.equals(M)){if(T=!0,pe(x,M),h&&u!==void 0&&(u=M),ld(A))return k;nt(()=>N(A))}return k}return ld(A)?A.v:N(A)}}var yf;typeof HTMLElement=="function"&&(yf=class extends HTMLElement{constructor(e,i,n){super();fi(this,"$$ctor");fi(this,"$$s");fi(this,"$$c");fi(this,"$$cn",!1);fi(this,"$$d",{});fi(this,"$$r",!1);fi(this,"$$p_d",{});fi(this,"$$l",{});fi(this,"$$l_u",new Map);fi(this,"$$me");this.$$ctor=e,this.$$s=i,n&&this.attachShadow({mode:"open"})}addEventListener(e,i,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,n)}removeEventListener(e,i,n){if(super.removeEventListener(e,i,n),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}connectedCallback(){return Xt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(o){return s=>{let a=document.createElement("slot");o!=="default"&&(a.name=o),J(s,a)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},r=bf(this);for(let o of this.$$s)o in r&&(o==="default"&&!this.$$d.children?(this.$$d.children=i(o),n.default=!0):n[o]=i(o));for(let o of this.attributes){let s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=ya(s,o.value,this.$$p_d,"toProp"))}for(let o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=Zl({component:this.$$ctor,target:this.shadowRoot||this,props:vt(Ke({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=Qr(()=>{zt(()=>{var o;this.$$r=!0;for(let s of Lo(this.$$c)){if(!((o=this.$$p_d[s])!=null&&o.reflect))continue;this.$$d[s]=this.$$c[s];let a=ya(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1})});for(let o in this.$$l)for(let s of this.$$l[o]){let a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(e,i,n){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ya(e,n,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Lo(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function ya(t,e,i,n){var o;let r=(o=i[t])==null?void 0:o.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function bf(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}if(Z){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;sl(e)},set:n=>{i=n}})}};Af=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Af;function Si(t){$e===null&&Mn("onMount"),Ci&&$e.l!==null?xf($e).m.push(t):jt(()=>{let e=nt(t);if(typeof e=="function")return e})}function ud(t){$e===null&&Mn("onDestroy"),Si(()=>()=>nt(t))}function xf(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Ef={debugLog:!1,devNullLog:!1,defaultLanguage:vn.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,trafficSavingLimit:vn.VideoQuality.Q_480P,highQualityLimit:vn.VideoQuality.Q_720P,features:{autoplay:!0,statistics:!0,thinStatistics:!1,preload:!0,subtitles:!0,fullscreen:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,copyVideoLink:!0,videoRotate:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,userVideoPrefs:!1,initSubtitles:!0},controls:{playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},userSalt:"0"},ba=t=>(0,vn.fillWithDefault)(t,Ef),cd=t=>rn("ui-config",t),eo=()=>nn("ui-config");var ut=require("@vkontakte/videoplayer-shared/es2015");var fd="5";var pd,md,vd;typeof window!="undefined"&&((vd=(md=(pd=window.__svelte)!=null?pd:window.__svelte={}).v)!=null?vd:md.v=new Set).add(fd);cl();var gd="var(--btn-color, #fff)";var wf=It('<g filter="url(#strokeAndShadow)"><!></g><defs><filter x="-12" width="72" y="-12" height="72" id="strokeAndShadow"><feMorphology operator="dilate" radius=".4" result="outer"></feMorphology><feFlood flood-color="rgba(0,0,0,0.1)" result="outerColor"></feFlood><feComposite operator="in" in="outerColor" in2="outer" result="outerOutline"></feComposite><feDropShadow in="SourceGraphic" dx="0" dy="0" stdDeviation="3" flood-color="rgba(0,0,0,0.4)" result="outerShadow"></feDropShadow><feMerge><feMergeNode in="outerShadow"></feMergeNode><feMergeNode in="outerOutline"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs>',1),Mf=It('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Yt(t,e){var f;Ee(e,!0);let i=tt(e,"width",19,()=>"14"),n=tt(e,"height",19,()=>"14"),r=tt(e,"fill",3,gd),o=(f=e.viewBox)!=null?f:`0 0 ${i()} ${n()}`;var s=Mf(),a=B(s);{var c=l=>{var u=wf(),v=ri(u),h=B(v);Ln(h,()=>e.children),H(v),jr(),J(l,u)},m=l=>{var u=pn(),v=ri(u);Ln(v,()=>e.children),J(l,u)};De(a,l=>{e.shadow?l(c):l(m,!1)})}H(s),ye(()=>{et(s,"aria-label",e.ariaLabel),et(s,"aria-hidden",!e.ariaLabel),et(s,"width",i()),et(s,"height",n()),et(s,"viewBox",o),et(s,"fill",r()),st(s,e.style),et(s,"data-testid",e.testId)}),J(t,s),we()}var Tf=It('<path d="M460 194a4 4 0 0 1 4-4h122a4 4 0 0 1 4 4v82a4 4 0 0 1-4 4H464a4 4 0 0 1-4-4zm6 3a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm112-72a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm-71-37a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.62 4.45 11.94 4.65 2.11 1.35 3.26.77 3.96.16s1.15-2.81-1.04-4.66c-1.74-1.48-5.8-5.16-14.86-5.15s-12.95 3.5-14.8 5.18c-1.83 1.69-2.28 3.5-.96 4.66s2.31 1.16 4.35-.33c0 .01 5.36-4.51 11.41-4.51"></path>');function xa(t){Yt(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var n=Tf();J(e,n)},$$slots:{default:!0}})}var Sf=ue('<div class="container s-2"><!></div>'),If={hash:"s-2",code:".container.s-2{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function vr(t){Re(t,If);var e=Sf(),i=B(e);xa(i,{}),H(e),J(t,e)}var Nf=ue('<div class="playerError s-0"><!></div>'),Df={hash:"s-0",code:".playerError.s-0{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}"};function Aa(t){Re(t,Df);var e=Nf(),i=B(e);vr(i,{}),H(e),J(t,e)}function hd(t,e){var r,o;let i=new Set([...Object.keys(t),...Object.keys(e)]),n={};for(let s of i)n[s]=(o=(r=e[s])!=null?r:t[s])!=null?o:void 0;return n}var gr="ui-tv";var jn=require("@vkontakte/videoplayer-statistics/es2015");var _d=require("@vkontakte/videoplayer-shared/es2015"),wM=require("@vkontakte/videoplayer-statistics/es2015"),io=class{constructor(e,i,n,r=new _d.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=n;this.statSubscription=r}destroy(){var e,i,n;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(n=this.mediascopePixel)==null||n.destroy(),this.statSubscription.unsubscribe()}};var ot=require("@vkontakte/videoplayer-core/es2015"),ve=require("@vkontakte/videoplayer-shared/es2015"),hn=require("@vkontakte/videoplayer-statistics/es2015");var BM=require("@vkontakte/videoplayer-core/es2015");var oe=require("@vkontakte/videoplayer-shared/es2015"),_t=require("@vkontakte/videoplayer-shared/es2015");var Cf="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",no=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new _t.Subject,loadStarted$:new _t.Subject,loadEnded$:new _t.Subject,loadError$:new _t.Subject,ready$:new _t.Subject,slotRequested$:new _t.Subject,started$:new _t.Subject,timeRemained$:new _t.Subject,paused$:new _t.Subject,resumed$:new _t.Subject,ended$:new _t.Subject,empty$:new _t.Subject,skipped$:new _t.Subject,clicked$:new _t.Subject,closed$:new _t.Subject,error$:new _t.Subject};this.loadAdman=e=>(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,oe.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,n)=>{let r;this.events.loadStarted$.next();let o=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,oe.now)()]}),i(),this.events.loadEnded$.next()):(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,oe.now)()]}),n())};(0,_t.addScript)(Cf,e,this.loadTimeout).then(()=>{oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,oe.now)()]}),window.AdmanHTML?(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,oe.now)()]}),i(),this.events.loadEnded$.next()):(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,oe.now)()]}),window.admanAsyncInit=o,r=window.setTimeout(o,this.initTimeout))}).catch(s=>{oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,oe.now)()]}),n(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,n)=>{let r;this.events.loadStarted$.next();let o=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,oe.now)()]}),i(),this.events.loadEnded$.next()):(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,oe.now)()]}),n())},s=()=>{a=!0,n()},a=!1,c=window.setTimeout(()=>{oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,oe.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,oe.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,Promise.resolve().then(()=>pc(yd(),1)).then(()=>{oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(a)],numbers:[(0,oe.now)()]}),!a&&(window.AdmanHTML?(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,oe.now)()]}),i(),this.events.loadEnded$.next()):(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,oe.now)()]}),window.admanAsyncInit=o,r=window.setTimeout(o,this.initTimeout)))},s).finally(()=>{clearTimeout(r),clearTimeout(c),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,oe.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var n;oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,oe.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(n=this.externalApi)!=null&&n.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var n;((n=this.adsState)!=null&&n.playbackState?Te(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,oe.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,oe.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,oe.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,oe.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,oe.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,oe.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,oe.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,oe.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,oe.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,n){this.actions=e,this.adsState=i,this.playerState=n}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){return Xt(this,null,function*(){var T,b;if(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,oe.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:n,isAutoplay:r,adsContainer:o,adsVideoElement:s,slotId:a,params:c={},paramsOverride:m={},duration:f,externalApi:l}=e;this.externalApi=l;let u,v=this.playerState&&Te(this.playerState.vsid);v&&(this.isVsidOriginal?u=v:u=parseInt(v,36));let{isEmbed:h,immediateOrigin:_}=(0,oe.detectEmbed)(),y=(T=h?_:window.location.href)!=null?T:window.location.href,$=Ke(vt(Ke(vt(Ke({},c),{dl:encodeURIComponent(y),autoplay:r?1:0,player_width:i,player_height:n}),u?{request_id:u}:{}),{duration:f}),m);$=Object.fromEntries(Object.entries($).filter(([x,A])=>(0,oe.isNonNullable)(A)));let D={slot:a,wrapper:o,videoEl:s,videoQuality:n,params:$,browser:{mobile:!1}};try{let x=new window.AdmanHTML;if(x.onReady(this.onAdsReady),x.onStarted(this.onAdStarted),x.onPlayed(this.onAdPlayed),x.onPaused(this.onAdPaused),x.adMidrollPoint(this.onAdMidrollPoint),x.onClosed(this.onAdClosed),x.onSkipped(this.onAdSkipped),x.onClicked(this.onAdClicked),x.onTimeRemained(this.onAdTimeRemained),x.onCompleted(this.onAdCompleted),x.onError(this.onAdError),x.setDebug(!1),(b=this.externalApi)!=null&&b.videoGetAds){let A=yield this.safeExternalCall(this.externalApi.videoGetAds,$);A&&(delete D.slot,delete D.params,Object.assign(D,{json:A}))}x.init(D),this.adman=x,this.videoElement=s,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(D)}`})}catch(x){oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(x)],numbers:[(0,oe.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var n,r,o;if(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(n=this.currentAdSection)!=null?n:"","force: "+e],numbers:[(0,oe.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(o=(r=this.actions).switchFromAdsToVideo)==null||o.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,oe.now)()]}),this.adsState){this.log({message:"toggle play"});let i=Te(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(n){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,oe.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,oe.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,oe.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,oe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,oe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,n,r,o,s,a,c,m,f,l,u;oe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,oe.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(n=this.adman)==null||n.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(o=this.adman)==null||o.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(a=this.adman)==null||a.onSkipped(void 0),(c=this.adman)==null||c.onClicked(void 0),(m=this.adman)==null||m.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(l=this.adman)==null||l.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,_t.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return Xt(this,null,function*(){var n;try{return yield e(...i)}catch(r){return this.onAdError((n=r==null?void 0:r.message)!=null?n:"External call failed"),null}})}};var Pn=require("@vkontakte/videoplayer-shared/es2015");var oo=require("@vkontakte/videoplayer-shared/es2015"),Ad=require("@vkontakte/videoplayer-core/es2015"),Ed=require("@vkontakte/videoplayer-statistics/es2015");var xd=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var wd=Symbol("storeContext"),Md=t=>{rn(wd,t),Qs==="dev"&&(window.app={store:t})},Ut=()=>{let t=nn(wd);return(0,oo.assertNonNullable)(t,"Store context is empty!"),t},Ye=(t,e)=>ao(t,t.getValue(),e),ao=(t,e,i)=>di(e,n=>{let r=t.subscribe(o=>{n(o),i==null||i(o)});return()=>r.unsubscribe()}),Td=(t,e,i,n,r=["meta config not provided"])=>{var L,k,E,M,g,R,U,O,P;let o=t.info,{width:s,height:a}=Te(i.ui.playerSize),c=(k=(L=o.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?k:0,m=(M=(E=o.rttEstimation$.getValue())==null?void 0:E.toFixed(0))!=null?M:0,f=o.isAutoQualityEnabled$.getValue()?"auto":"manual",l=`${Qn} (core: ${Ad.VERSION}, stat: ${Ed.VERSION}, shared: ${oo.VERSION})`,u=Te(i.state.errorLog$),v=u.length?`
|
|
41
|
+
`+u.map((z,Q)=>{var Y;let ce=`${Q}) Type: ${z.id}
|
|
42
|
+
`,X=`Message: ${z.message} (${z.thrown})
|
|
43
|
+
`,ie=`Trace: ${(Y=z.thrown)==null?void 0:Y.stack}
|
|
44
|
+
`;return ce+X+ie}).join(`
|
|
45
|
+
`):void 0,h=i.state.isAudioDisabled?"disabled":Te(i.state.isAudioAvailable$)?void 0:"unavailable",_=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),$=[];_&&$.push(`Video: ${(g=_==null?void 0:_.codec)!=null?g:""}`+(_!=null&&_.hdr?" (HDR)":"")),y&&$.push(`Audio: ${(R=y==null?void 0:y.codec)!=null?R:""}`+(y!=null&&y.language?` (${y.language})`:""));let D=o.currentQuality$.getValue(),T="";if(D){let z=o.availableQualitiesFps$.getValue()[D];T=z?`${z}fps`:""}let b=o.httpConnectionType$.getValue(),x=(O=(U=o.currentBuffer$.getValue())==null?void 0:U.end)!=null?O:0,A=Math.max(x-Te(i.state.positionExact$),0),S={Version:l,Browser:navigator.userAgent,Config:r.join(", "),"United video id":String(i.videoId),TraceId:n,VSID:Te(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":b?b+(o.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${c}Kbps @ ${m}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:$.join(", "),Quality:`${f} ${D!=null?D:""} ${T}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:h,Position:`${Te(i.state.positionExact$)}s`,Buffer:`${A}s`,State:`${Te(i.playerPhase)} ${(P=o.playbackState$.getValue())!=null?P:""}`,"Player size":`${s}x${a}`,URL:window.location.href,Errors:v};return Object.entries(S).filter(([z,Q])=>Q!==void 0).map(([z,Q])=>`${z}: ${Q}`).join(`
|
|
46
|
+
`)},Sd=(t,e,i)=>{var L,k,E,M;let n=t.info,{width:r,height:o}=Te(i.ui.playerSize),s={version:Qn,viewport:`${r}x${o}`,volume:Math.round(Te(i.state.volume$)*100)};s.id=i.videoId,n.currentFormat$.getValue()&&(s.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(s.cdn=n.hostname$.getValue());let m=n.intrinsicVideoSize$.getValue();m&&(s.videoSize=`${m.width}x${m.height}`);let f=n.currentBuffer$.getValue(),l=n.currentNativeBuffer$.getValue(),u=n.isLive$.getValue(),v=n.liveBufferTime$.getValue();f&&l&&(u&&v?(s.buffer=f.end-v,s.nativeBuffer=l.end-v):(s.buffer=Math.max(f.end-Te(i.state.positionExact$),0),s.nativeBuffer=Math.max(l.end-Te(i.state.positionExact$),0))),s.position=Te(i.state.positionExact$);let h=n.throughputEstimation$.getValue();h&&(s.speed=h);let _=n.videoBitrate$.getValue();_&&(s.bitrate=_);let y=n.liveLatency$.getValue();y&&(s.liveLatency=y);let $=n.currentVideoSegmentLength$.getValue();$&&(s.currentVideoSegmentLength=$);let D=n.currentAudioSegmentLength$.getValue();D&&(s.currentAudioSegmentLength=D);let T=Te(i.vsid);typeof T=="string"&&(s.vsid=T);let b=(L=t.info.currentVideoStream$.getValue())==null?void 0:L.codec;b&&(s.videoCodec=b);let x=(k=t.info.currentAudioStream$.getValue())==null?void 0:k.codec;x&&(s.audioCodec=x),((E=t.info.currentVideoStream$.getValue())==null?void 0:E.hdr)&&(s.hdr=!0);let S=(M=t.info.currentAudioStream$.getValue())==null?void 0:M.language;return S&&(s.audioLanguage=S),s},Id=(t,e)=>xd(t,e,"mp4"),Nd=()=>{let e=[],i=0;return{add:(n,r)=>{e[i]=[n,r],i=(i+1)%10},find:n=>e.find(([r])=>r===n)}},ro=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return Xt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};function so(t,e=i=>i){let i=W(t);return[di(t,o=>{i.subscribe(o)}),o=>{i.set(e(o))}]}var $f={auto_quality_invariant:"Авто",auto_quality:"Авто ({actual})",auto_quality_option:"Авто",other_quality:"Другое",high_quality:"Высокое качество",high_quality_description:"Будет использовано больше трафика",auto_quality_limit:"Автоматически",traffic_saving_quality:"Экономия трафика",traffic_saving_quality_description:"Видео грузятся быстрее, но качество ниже",default_quality_for_any_video:"Качество для всех видео",quality_applience:"Качество по умолчанию можно {action}",quality_applience_action:"изменить",menu_quality:"Качество",menu_traffic_saving:"Экономия данных",menu_playback_rate:"Скорость",menu_report:"Сообщить о проблеме",menu_pip:"Картинка в картинке",menu_pip_close:"Развернуть видео",menu_copy_video_link:"Скопировать ссылку на видео",menu_copy_video_link_with_timestamp:"Скопировать ссылку на кадр",menu_video_rotate:"Повернуть",menu_video_loop_on:"Включить повторение",menu_video_loop_off:"Отключить повторение",menu_chromecast:"Chromecast трансляция",menu_copy_debug:"Копировать данные для диагностики",menu_save_debug:"Сохранить данные для диагностики",menu_debug_overlay:"Техническая информация",menu_copy_embed_code:"Копировать код для встраивания",menu_audio_languages:"Звуковая дорожка",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Дорожка {index}",pip_dummy_title:"Видео воспроизводится в режиме картинка в картинке",submenu_quality:"Качество",submenu_playback_rate:"Скорость",submenu_settings:"Настройки",submenu_traffic_saving:"Экономия данных",submenu_audio_languages:"Звуковая дорожка",playing_ads:"Реклама {timeleft}",skip_ads_now:"Пропустить рекламу",skip_ads_after:"Пропустить {time}с",visit_advertiser:"Перейти на сайт",aria_timeline:"Ползунок временной шкалы",aria_timeline_value:"{position} (общая длительность {duration}",doubletap_seek_step:"{seconds} секунд",playback_rate_1:"Обычная",playback_rate:"{multiplier}x",video360:"панорамное видео",subtitles_caption:"Субтитры",subtitles_auto:"{language} (Автоматические)",subtitles_off:"Выкл.",subtitles_auto_caption:"Автоматические субтитры",subtitles_turn_on:"Включить субтитры",subtitles_turn_off:"Выключить субтитры",traffic_saving_off:"Откл.",traffic_saving_on:"Вкл.",traffic_saving_helper_text:"При включении качество видео будет снижено для экономии трафика",tooltip_button_disabled:"Кнопка недоступна",tooltip_previous:"Предыдущее видео",tooltip_restart:"Начать заново",tooltip_play:"Смотреть",tooltip_pause:"Пауза",tooltip_next:"Следующее видео",tooltip_interactive_go_back:"Вернуться к предыдущей главе",tooltip_interactive_go_back_disabled:"История прохождения недоступна",tooltip_interactive_go_back_disabled_first:"Вы смотрите первую главу",tooltip_interactive_go_back_disabled_limit:"Лимит возвратов исчерпан",tooltip_chapter_without_interactive:"В этой главе нет интерактива",tooltip_interactive_of_chapter_completed:"Интерактивы этой главы уже пройдены",tooltip_interactive_seek:"Перейти к интерактиву",tooltip_interactive_graph_off:"Показать карту сюжета",tooltip_interactive_graph_on:"Скрыть карту сюжета",tooltip_live:"Перемотать на актуальный лайв",tooltip_episodes:"Эпизоды",tooltip_volume:"Включить звук",tooltip_volume_muted:"Выключить звук",tooltip_sound_unavailable:"Звук недоступен",tooltip_subtitles_off:"Включить субтитры",tooltip_subtitles_on:"Выключить субтитры",tooltip_settings_off:"Открыть настройки",tooltip_settings_on:"Закрыть настройки",tooltip_fullscreen_off:"На весь экран",tooltip_fullscreen_on:"Выйти из полноэкранного режима",tooltip_chromecast_off:"Включить Chromecast",tooltip_chromecast_on:"Выключить Chromecast",tooltip_episode_finished:"Вы уже сделали свой выбор",tooltip_episode_unfinished:"Не пройдено",tooltip_disabled_when_interactive:"Интерактив уже идёт",tooltip_disabled_when_graph_on:"Кнопка недоступна во время просмотра карты",tooltip_interactive_interaction_time_indicator:"Нажмите на элемент интерактива",tooltip_vk_logo:"Открыть в VK Видео",tooltip_vk_video_logo:"Перейти в VK Видео",tooltip_autoplay_off:"Включить автовоспроизведение",tooltip_autoplay_on:"Отключить автовоспроизведение",tooltip_context_menu_open:"Открыть контекстное меню",tooltip_context_menu_close:"Закрыть контекстное меню",download_video_caption:"Скачать видео",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Быстрые клавиши",hotkey_map_modal_close_btn_text:"Закрыть",hotkey_map_group_title_common:"Общие",hotkey_map_group_title_playback:"Воспроизведение",hotkey_map_group_title_subtitles:"Субтитры",hotkey_map_group_title_episodes:"Эпизоды",hotkey_map_item_mute_description:"Включить или отключить звук",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Увеличить громкость",hotkey_map_item_volume_up_value:"Стрелка вверх",hotkey_map_item_volume_down_description:"Уменьшить громкость",hotkey_map_item_volume_down_value:"Стрелка вниз",hotkey_map_item_pip_description:"Свернуть или развернуть мини-проигрыватель",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Включить или выключить полноэкранный режим",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Скрыть или показать контекстное меню",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Скрыть или показать список горячих клавиш",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Приостановить или продолжить воспроизведение",hotkey_map_item_play_toggle_value:"Пробел (или k)",hotkey_map_item_seek_backward_description:"Перемотать ролик на 10 секунд назад",hotkey_map_item_seek_backward_value:"Стрелка влево (или j)",hotkey_map_item_seek_forward_description:"Перемотать ролик на 10 секунд вперёд",hotkey_map_item_seek_forward_value:"Стрелка вправо (или l)",hotkey_map_item_fast_seek_backward_description:"Ускоренная перемотка назад",hotkey_map_item_fast_seek_backward_value:"Shift + Стрелка влево",hotkey_map_item_fast_seek_forward_description:"Ускоренная перемотка вперёд",hotkey_map_item_fast_seek_forward_value:"Shift + Стрелка вправо",hotkey_map_item_rate_down_description:"Уменьшить скорость воспроизведения",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Увеличить скорость воспроизведения",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Перейти к предыдущему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Перейти к следующему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Перейти к определённому моменту видео <br />(например, при нажатии на цифру «7» ролик будет перемотан до временной отметки, которая соответствует 70% от длительности видео)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Включить или отключить субтитры",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Перейти к предыдущему эпизоду",hotkey_map_item_prev_episode_pc_value:"Ctrl + Стрелка влево",hotkey_map_item_prev_episode_mac_value:"Option + Стрелка влево",hotkey_map_item_next_episode_description:"Перейти к следующему эпизоду",hotkey_map_item_next_episode_pc_value:"Ctrl + Стрелка вправо",hotkey_map_item_next_episode_mac_value:"Option + Стрелка вправо",hotkey_map_item_next_video_description:"Перейти к следующему видео",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Перейти к предыдущему видео",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"дн",waiting_live_hour_value:"ч",waiting_live_minute_value:"мин",waiting_live_second_value:"сек",waiting_live_colon:":",waiting_live_upcoming_title:"Трансляция еще не началась",waiting_live_timer_title:"До начала трансляции осталось",waiting_live_recover_title:"Трансляция приостановлена - она продолжится, когда автор вернётся",waiting_record_title:"Трансляция завершена - запись появится позже",aria_label_video_player:"Видео плеер",aria_label_spherical_control:"Контроллер для сферического видео. Используйте клавиши со стрелками для панорамирования видео.",aria_label_debug_panel:"Область с технической информацией, сделайте скриншот для техподдержки",aria_label_new_tab_alert:"Откроется в новой вкладке.",aria_label_menu_quality:"Качество: {actual}",aria_label_menu_audio_languages:"Язык аудио: {actual}",aria_label_menu_rate:"Скорость: {actual}",aria_label_menu_subtitle:"Субтитры: {actual}",aria_label_menu_download:"Скачать видео",aria_label_menu_debug_overlay:"Отображение технической информации",aria_label_menu_rotate:"Повернуть видео на 90 градусов",aria_label_menu_loop:"Переключение режима повторения",aria_label_submenu_back:"Вернуться в меню настроек",aria_label_submenu_traffic_saving:"Режим экономии данных",aria_label_settings:"Настройки",aria_label_context_menu:"Контекстное меню",aria_label_autoplay:"Автовоспроизведение",end_screen_next_video:"Следующее видео",end_screen_recommended_video:"Рекомендуемое видео",slow_video_notification_button:"Выбрать качество «Авто»",slow_video_notification_force_description:`Видео грузится слишком медленно,
|
|
47
47
|
качество изменено на «Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
|
|
48
|
-
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},
|
|
48
|
+
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},Dd=$f;var kf={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but at lower quality",quality_applience:"You can {action} the default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
|
|
49
49
|
so the quality was changed to Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
50
|
-
Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},ad=sp;var ki=new Map;ki.set(En.InterfaceLanguage.EN,ad);ki.set(En.InterfaceLanguage.RU,rd);var sd=new Map,la=({language:t,pack:e,fallback:i})=>{if(ki.has(t)){let n=ki.get(t);ki.set(t,We(We({},n),e))}else ki.set(t,e);sd.set(t,i)},da=t=>ki.has(t),ua=(t,e,i,n)=>{var d;let o=ki.get(t),a=o==null?void 0:o[e];if((0,En.isNullable)(a)){let r=(d=sd.get(t))!=null?d:n,u=r?ki.get(r):void 0;a=u==null?void 0:u[e]}return(0,En.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(r,u)=>{var h;return(h=i[u])!=null?h:""}):a},Qo=(t,e)=>{let{interfaceLanguage$:i}=ji(),n=Ae(i),o=An();return ua(n,t,e,o.defaultLanguage)};var lp=(t,e)=>{t.stopPropagation(),ca.safeStorage.remove(to),e.set(!1)},dp=Ce('<div class="s-7"><div class="s-7">Video id</div> <span> </span></div>'),up=Ce('<div class="s-7"><div class="s-7">VSID</div> <span> </span></div>'),cp=Ce('<div class="s-7"><div class="s-7">Provider</div> <span> </span></div>'),pp=Ce('<div class="s-7"><div class="s-7">Streams</div> <span> </span></div>'),fp=Ce('<div class="s-7"><div class="s-7">Viewport</div> <span> </span></div>'),mp=Ce('<div class="s-7"><div class="s-7">Video size</div> <span> </span></div>'),hp=Ce('<div class="s-7"><div class="s-7">CDN host</div> <span> </span></div>'),vp=Ce('<div class="s-7"><div class="s-7">Volume</div> <span> </span></div>'),gp=Ce('<div class="s-7"><div class="s-7">Position</div> <span> </span></div>'),_p=Ce('<div class="s-7"><div class="s-7">Buffer</div> <span> </span></div>'),yp=Ce('<div class="s-7"><div class="s-7">Nbuffer</div> <span> </span></div>'),bp=Ce('<div class="s-7"><div class="s-7">Live latency</div> <span> </span></div>'),Ap=Ce('<div class="s-7"><div class="s-7">Segment</div> <span> </span></div>'),xp=Ce('<div class="s-7"><div class="s-7">Network</div> <!> <span> </span></div>'),Ep=Ce('<div class="s-7"><div class="s-7">V bitrate</div> <!> <span> </span></div>'),Tp=Ce('<div class="container s-7" role="region"><button class="close s-7" title="закрыть">[x]</button> <div class="content s-7"><div class="s-7"><div class="s-7">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-7"><div class="s-7">Dropped</div> <span> </span></div> <!> <!> <div class="s-7"><div class="s-7">FPS</div> <!> <span> </span></div></div></div>'),Mp={hash:"s-7",code:".container.s-7{background:rgba(28,28,28,.8);border-radius:4px;font-size:10px;left:20px;min-width:160px;text-align:left;top:45px;user-select:text;z-index:var(--debug-panel-z-index)}.container.s-7,button.close.s-7{color:#fff;position:absolute}button.close.s-7{background-color:transparent;border:none;cursor:pointer;outline:0;padding:0;right:5px;top:3px}.content.s-7{padding:5px}.content.s-7>div:where(.s-7)>div:where(.s-7){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function pa(t,e){ft(e,!0),ht(t,Mp);let i=ji(),n=i.ui.debugPanelVisible,o=He(St(i.actions.internal.getDebugPanelData())),a=i.actions.internal.getVideoElement(),d=He(0),r=He(0),u=He(0),h=new xn(60),f=new xn(60),l=new xn(60),c=He(St([])),v=He(St([])),b=He(St([])),y=Qo("aria_label_debug_panel");_n(()=>{ca.safeStorage.set(to,"true"),a&&(Ne(r,a.getVideoPlaybackQuality().droppedVideoFrames,!0),Ne(d,a.getVideoPlaybackQuality().totalVideoFrames,!0));let E=window.setInterval(()=>{Ne(o,i.actions.internal.getDebugPanelData(),!0)},500),z;return a&&(z=window.setInterval(()=>{if(a){Ne(r,a.getVideoPlaybackQuality().droppedVideoFrames,!0);let X=a.getVideoPlaybackQuality().totalVideoFrames;Ne(u,X-j(d)),Ne(d,X,!0),h.push(j(u)),j(o).speed&&f.push(j(o).speed),j(o).bitrate&&l.push(j(o).bitrate),Ne(c,h.getValuesFromBottom(),!0),Ne(v,f.getValuesFromBottom(),!0),Ne(b,l.getValuesFromBottom(),!0)}},1e3)),()=>{clearInterval(E),z&&clearInterval(z)}});var g=Tp(),C=re(g);C.__click=[lp,n];var D=he(C,2),N=re(D),w=he(re(N),2),A=re(w,!0);oe(w),oe(N);var M=he(N,2);{var I=E=>{var z=dp(),X=he(re(z),2),fe=re(X,!0);oe(X),oe(z),Fe(()=>it(fe,j(o).id)),ve(E,z)};Ye(M,E=>{j(o).id&&E(I)})}var m=he(M,2);{var U=E=>{var z=up(),X=he(re(z),2),fe=re(X,!0);oe(X),oe(z),Fe(()=>it(fe,j(o).vsid)),ve(E,z)};Ye(m,E=>{j(o).vsid&&E(U)})}var x=he(m,2);{var P=E=>{var z=cp(),X=he(re(z),2),fe=re(X,!0);oe(X),oe(z),Fe(()=>it(fe,j(o).provider)),ve(E,z)};Ye(x,E=>{j(o).provider&&E(P)})}var k=he(x,2);{var Z=E=>{var z=pp(),X=he(re(z),2),fe=re(X);oe(X),oe(z),Fe(()=>{var _,Q;return it(fe,`Video: ${(_=j(o).videoCodec||"")!=null?_:""} ${j(o).hdr?"(HDR)":""}
|
|
50
|
+
Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},Cd=kf;var Qi=new Map;Qi.set(Pn.InterfaceLanguage.EN,Cd);Qi.set(Pn.InterfaceLanguage.RU,Dd);var $d=new Map,Ea=({language:t,pack:e,fallback:i})=>{if(Qi.has(t)){let n=Qi.get(t);Qi.set(t,Ke(Ke({},n),e))}else Qi.set(t,e);$d.set(t,i)},wa=t=>Qi.has(t),Ma=(t,e,i,n)=>{var s;let r=Qi.get(t),o=r==null?void 0:r[e];if((0,Pn.isNullable)(o)){let a=(s=$d.get(t))!=null?s:n,c=a?Qi.get(a):void 0;o=c==null?void 0:c[e]}return(0,Pn.isNullable)(o)?e+Object.values(i!=null?i:{}).join(" "):i?o.replaceAll(/{(\w+?)}/g,(a,c)=>{var m;return(m=i[c])!=null?m:""}):o},Ft=(t,e)=>{let{interfaceLanguage$:i}=Ut(),n=Te(i),r=eo();return Ma(n,t,e,r.defaultLanguage)};var kd=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,Ld=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Lf=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Od=()=>!!Lf();var Pd=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var it=require("@vkontakte/videoplayer-shared/es2015"),xT=require("@vkontakte/videoplayer-core/es2015");var Of="vk_player_",Vd="vk_player_prefer_traffic_saving_enabled",Pf="vk_player_preferred_volume",Rf="vk_player_prefer_volume_mute",Na="vk_player_preferred_quality",Ta="vk_player_preferred_default_quality_settings",Sa="vk_player_preferred_quality_settings_by_video",jd="vk_player_preferred_stream_language",zd="vk_player_preferred_rate";var Ia="vk_player_preferred_subtitles_language",Vf="vk_player_user_video_prefs",AT=`${Of}preview_track_close_tooltip`,jf=t=>t>1?1:t<0?0:t;var lo=()=>{let t=it.safeStorage.get(Pf);return(0,it.isNullable)(t)?void 0:jf(parseFloat(t))},Da=(t,e)=>it.safeStorage.set(Na,JSON.stringify({videoId:t,value:e})),uo=()=>it.safeStorage.remove(Na),Ca=t=>{let e=it.safeStorage.get(Na);if((0,it.isNullable)(e))return;let{videoId:i,value:n}=JSON.parse(e);if(t!==i){uo();return}return n},zf=(t,e)=>{e?it.safeStorage.set(t,"true"):it.safeStorage.remove(t)},Ud=t=>it.safeStorage.get(t)==="true";var Fd=()=>Ud(Rf),Rd=t=>zf(Vd,t),$a=()=>Ud(Vd),Hd=()=>it.safeStorage.get(jd),Bd=t=>it.safeStorage.set(jd,t),ka=()=>it.safeStorage.get(Ia),Uf=t=>{t?it.safeStorage.set(Ia,t):it.safeStorage.remove(Ia)},Qd=t=>it.safeStorage.set(zd,JSON.stringify({rate:t})),Yd=()=>{let t=it.safeStorage.get(zd);if((0,it.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e};var Ff=()=>{let t=f=>{it.safeStorage.set(Ta,JSON.stringify(f))},e=()=>{try{let f=it.safeStorage.get(Ta);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=it.safeStorage.get(Sa);return f?JSON.parse(f):null}catch(f){return null}},n=f=>{it.safeStorage.set(Sa,JSON.stringify(f))},r=f=>{m(f);let l=f?i():null;if(l&&(l==null?void 0:l.videoId)===f)return vt(Ke({},l),{appliesTo:"to-video"});l&&o();let u=e();return u?vt(Ke({},u),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},o=()=>{it.safeStorage.remove(Sa)},s=()=>{it.safeStorage.remove(Ta)},a=(f,l="as-default")=>{f.type==="exact_quality"||l==="to-video"?n(f):t(f)},c=f=>{let l=r(f);if(l){switch(l.type){case"traffic_saving":Rd(!0);break;case"exact_quality":Da(f,l.quality)}o(),s()}},m=f=>{let l=Ca(f);if(l){n({type:"exact_quality",videoId:f,quality:l});return}$a()&&t({type:"traffic_saving",videoId:f}),Rd(!1),uo()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:c,savePreferredQualitySettings:a,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:o,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:ka,savePreferredSubtitlesLanguage:Uf}},{getPreferredQualitySettings:ET,migrateSettingsToLegacyWay:Wd,savePreferredQualitySettings:wT,savePreferredDefaultQualitySettings:MT,removePreferredQualitySettingsByVideo:TT,getPreferredDefaultQualitySettings:ST}=Ff();var Hf=()=>{let t=it.safeStorage.get(Vf);if(t)try{return JSON.parse(t)}catch(e){return null}return null},co=(t,e)=>{var r,o;let i=Hf();return(o=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?o:null};var La=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let n=[],r=e.split(this.twoLinesRegExp);for(let o of r){let s={startTime:0,endTime:0,texts:[],lang:i},a=o.split(this.oneLineRegExp);for(let c of a)if(!s.startTime&&!s.endTime){let m=new fo,{startTime:f,endTime:l}=m.parse(c);s.startTime=f,s.endTime=l}else if(c.trim()!==""){let m=new Oa,{texts:f}=m.parse(c);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&n.push(s)}return n}},fo=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(i.startTime=this.calcTime(n[1],n[2],n[3],n[4]),i.endTime=this.calcTime(n[6],n[7],n[8],n[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",n="0",r="0"){let o=Number(e)*60*60,s=Number(i)*60,a=Number(n),c=+`0.${r}`;return o+s+a+c}},Oa=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let a=0,c=[];for(;a<s.length;){let m=["<",">"].reduce((f,l)=>{let u=s.indexOf(l,a);return f===-1||f>u?u:f},-1);if(m===-1){c.push(s.substring(a));break}c.push(s.substring(a,m)),a=m+1}return c}}),o=new fo;for(let s of r)o.isTime(s)?i.texts.push({type:"timestamp",value:o.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},Gd=La;var mo=require("@vkontakte/videoplayer-shared/es2015"),gn,lt,Pa=0,Ra=!1,qd="",Kd=(t,e=0,i=0)=>t<e&&t<i,po=(t,e=0,i=0)=>t>=e&&t<=i,Bf=(t,e=0,i=0)=>t>e&&t>i,Zd=(t,e,i,n=!1)=>{var a;let r=(a=i.find(({id:c})=>c===e.value))==null?void 0:a.subtitles;if(n)return r==null?void 0:r.find(({startTime:m,endTime:f})=>po(t,m,f));let o=t>=Pa,s=t<Pa;if(Pa=t,s&&(Ra=!1),(0,mo.isNonNullable)(gn)&&po(t,gn.startTime,gn.endTime)&&qd===e.value)return gn;if(!(0,mo.isNonNullable)(lt)&&(r!=null&&r.length)&&!Ra){lt=r.find(({startTime:m,endTime:f})=>po(t,m,f)||o&&Kd(t,m,f)),gn=void 0,!(0,mo.isNonNullable)(lt)&&r[r.length-1].endTime<t&&(Ra=!0);return}else{if(po(t,lt==null?void 0:lt.startTime,lt==null?void 0:lt.endTime))return gn=lt,lt=void 0,qd=e.value,gn;(o&&Bf(t,lt==null?void 0:lt.startTime,lt==null?void 0:lt.endTime)||s&&Kd(t,lt==null?void 0:lt.startTime,lt==null?void 0:lt.endTime))&&(lt=void 0)}};var vo={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",eu:"Euskara",eo:"Esperanto"},Qf={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Va=t=>{var e,i;return(i=(e=vo[t])!=null?e:vo[Qf[t]])!=null?i:void 0};var hr="vk_player_debug_panel_opened";var Jd="videoplayer",Xd="videoplayer";var Ii="off";var Rn=require("@vkontakte/videoplayer-shared/es2015"),Yf=5e3;function eu(){let t=W(!1),e=W(!0),i=()=>{t.set(!0)},n=()=>{t.set(!1)},r=T=>{e.set(T)},[o,s]=so(!1),[a,c]=so(!0),[m,f]=so(!1),l=W(!1),u=(0,Rn.getWindow)().setTimeout(()=>{},0),v=()=>{l.set(!0),(0,Rn.getWindow)().clearTimeout(u),u=(0,Rn.getWindow)().setTimeout(()=>{l.set(!1)},Yf)},h=()=>{(0,Rn.getWindow)().clearTimeout(u),l.set(!1)},_=()=>{(0,Rn.getWindow)().clearTimeout(u),l.set(!1)},y=()=>{if(Te(m))return f(!1),!0;let T=Te(l);return _(),T},$=()=>{_()};function D(T){let{state:{isPlaying$:b,isEnded$:x,isLoaderVisible:A,crashed$:S},ui:{settingsVisible:L},ads:{playbackState:k},playerPhase:E}=T;rt([b,x,l,L],([M,g,R,U])=>!U&&(!M||g||R)).subscribe(M=>{s(M),M||h()}),rt([E,A,k,S],([M,g,R,U])=>(M==="video"&&g||M==="ads"&&R==="inactive")&&!U).subscribe(c)}return{state:{touched:W(!1),controls:{prevButton:W(void 0),playButton:W(void 0),replayButton:W(void 0),nextButton:W(void 0),playPrevChapterButton:W(void 0),seekToInteractiveButton:W(void 0),interactiveGraphButton:W(void 0),liveButton:W(void 0),time:W(void 0),episodes:W(void 0),volume:W(void 0),subtitles:W(void 0),settings:W(void 0),context:W(void 0),chromecast:W(void 0),pip:W(void 0),fullscreen:W(void 0),vkLogo:W(void 0),interactiveTimeIndicator:W(void 0),timeline:W(void 0),autoplayNextToggle:W(void 0),"theater-mode-button":W(void 0),additionalButtons:[]},modals:{hotKeyMap:{show:W(!1),data:W({title:"",closeBtnText:"",groups:[]})}},isFullscreen:W(Od()),isFullscreenOpenedByKeyboard:W(!1),isAutoplay:W(!1),debugPanelVisible:W(!1),episodes:{panelOpened$:W(!1),openedByKeyboard$:W(!1)},contextMenu:{visible$:W(!1),btnRef$:W(void 0),openedByBtnKeyboard$:W(!1),openedByHotKey$:W(!1),lastActiveElem$:W(void 0),showContextMenuBtn$:W(!1),position$:W({top:0,left:0})},playerSize:W({width:0,height:0}),isMobile:W(!1),icon3DVideoVisible:W(!1),scrubbingInProgress:W(!1),volumeChangingInProgress:t,interactiveHideMobileControls:W(!1),overlayContainer$:W(void 0),startedByKeyboard$:W(!1),autoplayNextEnabled$:W(!1),timerNextVideoRunning$:W(!0),settingsMenu:{visible$:W(!1),ref$:W(void 0),openedByBtnKeyboard$:W(!1)},settingsSubMenu:{visible$:W(!1),ref$:W(void 0),name$:W(void 0)},userActionsDisabled:W(!1),hiddenControls:{volume:W(!1),vkLogo:W(!1),pip:W(!1),chromecast:W(!1),settings:W(!1)},isControlsAvailable:e,controlBlocks:{topLeft:W(void 0),topRight:W(void 0),middle:W(void 0),bottom:W(void 0),bottomLeft:W(void 0),bottomRight:W(void 0)},videoTitleInfo:W(void 0),doubleForwardOn$:W(!1),doubleForwardAvailable$:W(!1),previewTrackActive:W(!1),previewTrackDragInProgress:W(!1),previewTrackAvailable:W(!1),isPreviewTrackHorizontallyAligned:W(!1),isShowLoader:a,controlsVisible:o,settingsVisible:m},action:{stopVolumeChanging:n,startVolumeChanging:i,setControlsAvailibility:r,onUserInput:v,clearShowByInput:_,onBackButton:y,setSettingsVisibility:f,onPlay:$},resolveDependency:D}}var tu=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:o,canDownload:s,callbacks:a,webApi:c,previewThumbsData:m,uiConfig:f,coreConfig:l,player:u,stopPlayer:v,looped:h=!1,statistics:_,saveRate:y,internalsExposure:$,playerId:D,metaConfig:T,app:b,video:x,deviceCapabilities:A})=>{var js;let S=eu(),L=vt(Ke({},l),{isAudioDisabled:o,live:vt(Ke({},(js=l.live)!=null?js:{}),{isLiveCatchUpMode:!!n})}),k=f,E=ve.TracerFactory.createRootTracer(!1),M=E.createComponentTracer("Store"),g=u||new ot.Player(L,E,{playerId:D,onDevNullLog:a==null?void 0:a.onDevNullLog});$==null||$.expose({corePlayer:g});let R=new ve.Logger,U=new no(R,{loadTimeout:k.ads.loadTimeout,initTimeout:k.ads.initTimeout,runtimeTimeout:k.ads.runtimeTimeout,useAdmanFromNPM:k.ads.useAdmanFromNPM,volumeMultiplier:k.ads.volumeMultiplier,isVsidOriginal:k.ads.isVsidOriginal}),O=c==null?void 0:c.focusManager,P=R.createComponentLog("Store"),z,Q,ce={},X=new ro,ie=new ve.Subscription,Y="",be=_&&_.oneStat?Ye(_.oneStat.vsid$):di(void 0),q=()=>kd(document,ot.clientChecker.device.isIOS),He=W(!1),ae=W([]),_e=(0,ve.merge)(g.events.fatalError$,g.events.managedError$).subscribe(d=>ae.update(p=>[...p,d])),j=di(!1,d=>{let p=g.events.fatalError$.subscribe(()=>d(!0));return()=>p.unsubscribe()}),Se=d=>Xt(null,null,function*(){var te;let p=Object.values(ve.InterfaceLanguage).includes(d);if(k.downloadVKLanguages&&(p&&k.updateBuiltinLanguages||!wa(d))){let se;try{se=yield(0,ve.loadVKLangPack)(d,Jd,Xd)}catch(Pe){(te=_==null?void 0:_.oneStat)==null||te.logError({errorType:"VKLangPack",fatal:!1})}se&&(Ea({language:d,pack:se,fallback:k.defaultLanguage}),he.set(d),Ae.update(Pe=>Pe+1))}wa(d)&&he.set(d)}),he=W(t),Ae=W(0),Be=W(e);Se(t);let ke=(d,p)=>{let V=Te(he);return Ma(V,d,p,k.defaultLanguage)},je=W("thumb");je.subscribe(d=>{d==="ads"&&g.info.playbackState$.getValue()&&F()});let I=(()=>{let d=rt([j,je],([p,V])=>p?"crashed":V);return vt(Ke({},d),{is:p=>Te(d)===p})})(),C=W(),F=()=>{C.set({muted:g.info.muted$.getValue()})},K=null,le=g.info.isBuffering$,ge=di(le.getValue(),d=>{let p=le.subscribe(V=>{V&&K===null?K=window.setTimeout(()=>{d(le.getValue()),K=null},k.loaderDelay):d(V)});return()=>{p.unsubscribe(),K&&clearTimeout(K)}});M.log("create store"),P({message:"create store"});let ze=d=>{P({message:`init video, config: ${JSON.stringify(d)}`}),ve.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ve.now)()]}),g.initVideo(d),M.log("init video"),d.subtitles&&g.setExternalTextTracks(d.subtitles),z=d,Y=d.subtitlesForcedLanguage||""},Qe=new ve.Subject,G=new ve.ValueSubject(hn.SeekAction.UNKNOWN),re=new ve.Subject,fe={actionRewind$:Qe,actionSeek$:G,inFullscreen$:new ve.Observable(d=>S.state.isFullscreen.subscribe(p=>d.next(p))),actionSetSubtitle$:re},Ce=new ve.Subject,w=new ve.Subject,ee={actionSeek$:G,actionSubtitlesSwitched$:Ce,actionQuality$:w,playerSize$:new ve.Observable(d=>S.state.playerSize.subscribe(p=>d.next(p))),inFullscreen$:new ve.Observable(d=>S.state.isFullscreen.subscribe(p=>d.next(p))),isLoaderVisible$:new ve.Observable(d=>ge.subscribe(p=>d.next(p)))};if(_){let{oneStat:d,thinOneStat:p,mediascopePixel:V,statSubscription:te}=_;d&&(te.add(d.attachTo(g)),te.add(d.attachToUi(fe)),te.add(d.attachToAds(U.events)),d.authorize(r).catch(se=>{P({message:`onestat auth error ${String(se)}`})}),V&&V.attachTo(g)),p&&(te.add(p.attachTo(g,U.events)),te.add(p.attachToUi(ee)),te.add(p.attachToAds(U.events)),p.updateContext({isMobile:Te(S.state.isMobile)}),p.authorize(r))}let de=()=>{if(ot.clientChecker.device.isIOS&&Q)try{Ld(Q)}catch(d){P({message:`exitIosSafariFullscreen failed: ${d}`})}};ie.add(g.experimental.element$.subscribe(d=>{d&&(Q=d,d.classList.add("player-media"))})).add(g.events.ended$.subscribe(()=>{var d;de(),(d=a==null?void 0:a.onEnded)==null||d.call(a)})).add(g.events.looped$.subscribe(()=>{var d;(d=a==null?void 0:a.onLooped)==null||d.call(a)})).add(g.events.started$.subscribe(()=>Xt(null,null,function*(){var p,V;let d=g.info.muted$.getValue();(p=a==null?void 0:a.onStarted)==null||p.call(a),(V=ce.onStarted)==null||V.call(ce,d)}))).add(g.events.willSeek$.subscribe(({from:d,to:p})=>{var V;(V=a==null?void 0:a.onSeek)==null||V.call(a,d,p,G.getValue())})).add(g.events.autoplaySoundProhibited$.subscribe(()=>{var d;(d=a==null?void 0:a.onAutoplaySoundProhibited)==null||d.call(a)})).add(g.info.position$.subscribe(d=>{var V;let p=g.info.duration$.getValue();isFinite(p)&&p>0&&((V=a==null?void 0:a.onTimeupdate)==null||V.call(a,p,d),U.setPosition(d,p))})).add(g.events.fatalError$.subscribe(d=>{var p;(p=a==null?void 0:a.onCrashed)==null||p.call(a,d?`${d.id}: ${d.message}`:void 0)})).add(g.events.fetcherRecoverableError$.subscribe(d=>{var p;(p=a==null?void 0:a.onRecoverableError)==null||p.call(a,d?`${d.id}: ${d.message}`:void 0)})).add(g.events.loadedMetadata$.subscribe(()=>{He.set(!0)})).add(g.info.liveTime$.subscribe(d=>{var p;(p=a==null?void 0:a.onLiveTime)==null||p.call(a,d)})).add(g.info.isStalled$.subscribe(d=>{var p;(p=a==null?void 0:a.onStalledChanged)==null||p.call(a,d)})).add(g.info.isLiveEnded$.subscribe(d=>{var p;return d&&((p=a==null?void 0:a.onLiveEnded)==null?void 0:p.call(a))})).add(U.events.loadStarted$.subscribe(()=>{var d,p;return(p=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onLoadStarted)==null?void 0:p.call(d)})).add(U.events.loadEnded$.subscribe(()=>{var d,p;return(p=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onLoadEnded)==null?void 0:p.call(d)})).add(U.events.loadError$.subscribe(()=>{var d,p;return(p=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onLoadError)==null?void 0:p.call(d)})).add(U.events.init$.subscribe(()=>{var d,p;return(p=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onInit)==null?void 0:p.call(d)})).add(U.events.ready$.subscribe(()=>{var d,p;return(p=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onReady)==null?void 0:p.call(d)})).add(U.events.started$.subscribe(d=>{var p,V;return(V=(p=a==null?void 0:a.adsInfo)==null?void 0:p.onStarted)==null?void 0:V.call(p,d)})).add(U.events.timeRemained$.subscribe(d=>{var p,V;return(V=(p=a==null?void 0:a.adsInfo)==null?void 0:p.onTimeRemained)==null?void 0:V.call(p,d)})).add(U.events.ended$.subscribe(d=>{var p,V;return(V=(p=a==null?void 0:a.adsInfo)==null?void 0:p.onCompleted)==null?void 0:V.call(p,d)})).add(U.events.empty$.subscribe(()=>{var d,p;return(p=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onEmpty)==null?void 0:p.call(d)})).add(U.events.clicked$.subscribe(d=>{var p,V;return(V=(p=a==null?void 0:a.adsInfo)==null?void 0:p.onClicked)==null?void 0:V.call(p,d)})).add(U.events.closed$.subscribe(d=>{var p,V;return(V=(p=a==null?void 0:a.adsInfo)==null?void 0:p.onClosed)==null?void 0:V.call(p,d)})).add(U.events.error$.subscribe(d=>{var p,V;return(V=(p=a==null?void 0:a.adsInfo)==null?void 0:p.onError)==null?void 0:V.call(p,d)})).add(U.events.paused$.subscribe(()=>{var d,p;return(p=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onPaused)==null?void 0:p.call(d)})).add(U.events.resumed$.subscribe(()=>{var d,p;return(p=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onResumed)==null?void 0:p.call(d)}));let We=di(g.info.position$.getValue(),d=>{let p,V,te=()=>{let se=g.info.playbackState$.getValue(),Pe=g.info.isLive$.getValue(),Fe=g.info.duration$.getValue(),Ve=g.info.position$.getValue();if(se&&[ot.PlaybackState.PLAYING,ot.PlaybackState.PAUSED].includes(se)){let Nt=Pe?Ve-Fe:g.getExactTime();Nt!==V&&d(Nt),V=Nt}p=requestAnimationFrame(te)};return te(),()=>cancelAnimationFrame(p)}),Ue=Ye(g.info.playbackState$),pt=Ye(g.info.isBuffering$),at=rt([Ue,pt],([d,p])=>p?"buffering":d),yt=Ye(g.info.currentBuffer$),ct=Ye(g.info.isEnded$),Ni=Ye(g.info.isLive$),ci=k.features.playbackRate?Ye(g.info.canChangePlaybackSpeed$):di(!1),Di=Ye(g.info.liveBufferTime$),Ri=Ye(g.info.volume$),Xi=Ye(g.info.muted$),Yi=ao(g.info.predefinedQualityLimitType$.pipe((0,ve.map)(d=>d===ot.PredefinedQualityLimits.TRAFFIC_SAVING)),g.info.predefinedQualityLimitType$.getValue()===ot.PredefinedQualityLimits.TRAFFIC_SAVING),Ze=ao(g.info.predefinedQualityLimitType$.pipe((0,ve.map)(d=>d===ot.PredefinedQualityLimits.HIGH_QUALITY)),g.info.predefinedQualityLimitType$.getValue()===ot.PredefinedQualityLimits.HIGH_QUALITY),Ge=Ye(g.info.autoQualityLimitingAvailable$),mt=Ye(g.info.availableQualities$),wo=Ye(g.info.availableQualitiesFps$),yn=Ye(g.info.currentFormat$),$t=Ye(g.info.throughputEstimation$),ft=Ye(g.info.videoBitrate$),bn=Ye(g.info.intrinsicVideoSize$),en=Ye(g.info.duration$),au=Ye(g.info.isAudioAvailable$),su=()=>{K&&clearTimeout(K),K=null},Er=rt([en,Ni],([d,p])=>p?-d:d),ls=rt([Ue],([d])=>d===ot.PlaybackState.PLAYING),ds=Ye(g.info.atLiveEdge$),us=Ye(g.info.atLiveDurationEdge$),cs=Ye(g.info.position$),lu=rt([cs,en],([d,p])=>isFinite(d)&&isFinite(p)&&!!p),du=Ye(g.info.availableVideoStreams$),fs=k.features.audioLanguages?Ye(g.info.availableAudioStreams$):di([]),uu=Ye(g.info.currentVideoStream$),ps=Ye(g.info.currentAudioStream$),cu=d=>{d.language&&Bd(d.language),g.setVideoStream(d)},ms=d=>{g.setAudioStream(d)},vs=d=>{let p;if(d.length===1&&(p=d.at(0)),p!=null||(p=d.find(te=>"isDefault"in te&&te.isDefault)),k.features.userVideoPrefs&&i){let te=co(k.userSalt,String(i));if(te!=null&&te.audioTrackId){let se=d.find(Pe=>Pe.id===te.audioTrackId);p=se!=null?se:p}}let V=Hd();return V&&(p!=null||(p=d.find(({language:te})=>V===te))),p!=null||(p=d.at(0)),p},fu=d=>{M.log("change audio stream",{id:d});let p=g.info.availableAudioStreams$.getValue().find(V=>V.id===d);p&&ms(p)},gs=!1;ie.add(g.info.availableAudioStreams$.subscribe(d=>{if(!gs&&d.length){let p=vs(d);p&&(g.setAudioStream(p),gs=!0)}})),fs.subscribe(d=>{var p;(p=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||p.call(a,d.map(({label:V="",id:te="",language:se=""})=>({label:V,language:se,id:te})))}),ps.subscribe(d=>{var p;return d&&((p=a==null?void 0:a.onAudioStreamChanged)==null?void 0:p.call(a,d.id))});let hs=!1;ie.add(g.info.availableVideoStreams$.subscribe(d=>{if(!hs&&d.length){let p=vs(d);p&&(g.setVideoStream(p),hs=!0)}}));let wr=W(void 0),_s=Ye(g.info.isAutoQualityEnabled$,d=>d&&wr.set(void 0)),pu=Ye(g.info.currentQuality$,()=>wr.set(void 0)),ys=rt([wr,pu],([d,p])=>d!=null?d:p),bs=rt(yn,d=>d!==ot.VideoFormat.MPEG),mu=rt([mt,wo,_s,ys,bs],([d,p,V,te,se])=>{let Pe=[];se&&Pe.push({value:"auto",displayValue:ke("auto_quality_option"),selected:V});let Fe=d.filter(Ve=>!(0,ve.isInvariantQuality)(Ve));for(let Ve of Fe){let Nt=p[Ve];Pe.push({value:Ve,displayValue:`${Ve}${Nt?Pd(Nt):""}`,selected:V?!1:Ve===te})}return Pe}),Mo=Ye(g.info.currentPlaybackRate$),To=rt([Mo,ds,us],([d,p,V])=>{let te=V?1:k.controls.playbackRateMin,se=p?1:k.controls.playbackRateMax,Pe=k.controls.playbackRateStep,Fe=[];for(let Ve=te;Ve<=se;Ve+=Pe)Fe.push({value:Ve,displayValue:Ve===1?ke("playback_rate_1"):ke("playback_rate",{multiplier:Ve.toString(10)}),selected:d===Ve});return Fe}),Mr=()=>({displayValue:ke("subtitles_off"),value:Ii,language:""}),xs=W(Mr()),Wi=rt([xs,Ae],([d],p)=>{d.value===Ii?p(Mr()):p(d)}),So=k.features.subtitles?Ye(g.info.availableTextTracks$):di([]),As=Nd(),vu=rt([So,Wi],([d,p],V)=>{var Pe;let te=[],se=d.find(({id:Fe})=>Fe===p.value);if(se!=null&&se.url){let[,Fe]=(Pe=As.find(se.url))!=null?Pe:[];if(Fe){V(Fe);return}X.download(se.url).then(Ve=>{if(!Ve||X.isDestroyed())return;let Nt=new Gd,Hn=se.language;if(Hn){let ic=!!se.isAuto,nc=Nt.parse(Ve,Hn);te.push({lang:Hn,subtitles:nc,isAuto:ic,id:se.id})}As.add(se.url,te),Te(Wi).value===p.value&&V(te)}).catch(()=>{var Ve;(Ve=_==null?void 0:_.oneStat)==null||Ve.logError({errorType:"Subtitles download",fatal:!1})})}V(te)}),gu=rt([Mo,ls,Wi],([d,p,V],te)=>{let Fe;if(g.info.isLive$.getValue()&&p&&V.value!==Ii){let Nt=()=>{let Hn=1e3/(3*d);Fe=setTimeout(Nt,Hn),te(Date.now())};return Nt(),()=>clearTimeout(Fe)}}),Es=rt([So,Wi],([d,p])=>{if(!d.length)return[];let V=[];for(let{language:te,isAuto:se,id:Pe}of d){let Fe=te&&Va(te);te&&Fe&&V.push({displayValue:se?ke("subtitles_auto",{language:Fe}):Fe,value:Pe,selected:(p==null?void 0:p.value)===Pe,isAuto:se,language:te})}return V.length?(V.unshift(vt(Ke({},Mr()),{selected:(p==null?void 0:p.value)===Ii})),V):[]}),Un={available:[],prev:[]},hu=()=>{var p,V;let d=g.experimental.getCurrentTime$.getValue();return(V=(p=d==null?void 0:d())!=null?p:Q==null?void 0:Q.currentTime)!=null?V:0},_u=rt([We,Wi,vu,gu],([d,p,V,te])=>{var Pe;let se=g.info.isLive$.getValue();if(se&&Un.prev!==V){let Fe=V.find(({id:Nt})=>Nt===p.value),Ve=Un.prev.find(({id:Nt})=>Nt===p.value);if(Fe){let Nt=vt(Ke({},Fe),{subtitles:[...(Pe=Ve==null?void 0:Ve.subtitles)!=null?Pe:[],...Fe.subtitles]});Un.available=[Nt],Un.prev=V}}if(p&&p.value!==Ii){let Fe=se?hu():d,Ve=se?Un.available:V;return Zd(Fe,p,Ve,se)}}),yu=rt([_u],([d])=>d!=null&&d.texts?d.texts:[]);ie.add(Wi.subscribe(d=>{var p,V;if(d.value===Ii)(p=a==null?void 0:a.onSubtitleOff)==null||p.call(a);else{let te=Object.entries(vo).find(([se,Pe])=>Pe===d.displayValue);(V=a==null?void 0:a.onSubtitleOn)==null||V.call(a,te?te[0]:"",d.value)}}));let bu=W(!0),xu=rt([yt,Er,cs,Di],([d,p,V,te])=>{var Ve;let se=(Ve=d==null?void 0:d.end)!=null?Ve:0;if(!te)return se/p;let Fe=-V+te-p;return(se-Fe)/p}),ws=Ye(g.info.availableSources$),Au=rt([ws],([d])=>Object.keys((d==null?void 0:d[ot.VideoFormat.MPEG])||{}).length>0),Eu=()=>{var V,te,se;let d=Object.keys(((te=(V=g.info.availableSources$)==null?void 0:V.getValue())==null?void 0:te[ot.VideoFormat.MPEG])||{}),p=(0,ve.getHighestQuality)(d)||ve.VideoQuality.Q_144P;return(se=z.sources[ot.VideoFormat.MPEG])==null?void 0:se[p]},wu=()=>{var p;let d=Eu();if(d)M.log("download video",{url:d}),Id(d,((p=z==null?void 0:z.meta)==null?void 0:p.title)||"video");else{let V="There is no URL for download video";M.log("download video",{message:V}),P({message:V})}},Mu=()=>{P({message:"toggle muted"});let d=g.info.muted$.getValue();g.info.volume$.getValue()===0&&!d?No(Io()):Fn(!d)},Tu=()=>{Xe.ui.settingsMenu.visible$.set(!1),M.log("close settings menu")},Su=(d,p=()=>Promise.resolve())=>Xt(null,null,function*(){Xe.ui.settingsMenu.visible$.set(!0),yield p(),M.log("open settings menu",{wasOpenedByKeyboard:d})}),Io=()=>{var p;let d=Math.max(k.volumeMinRestore,(p=lo())!=null?p:0);return d===0?k.volumeDefault:d},No=d=>{let p=d===0?Io():d,V=g.info.muted$.getValue();P({message:`set volume, volume: ${d}, preferredVolume: ${p}`});let te=!o||I.is("ads");V&&d>0&&te&&(V=!1),g.setVolume(d,V),U.setVolume(d)},Fn=d=>{let p=g.info.volume$.getValue();P({message:`set muted, currentVolume: ${p}, mute: ${d}`});let V=I.is("ads");if(g.setMuted(d,V),U.setVolume(d?0:p),!d&&p===0){let te=Io();g.setVolume(te),U.setVolume(te)}},Ms=W(!1),Ts=d=>{M.log("set looped",{isLooped:d}),Ms.set(d),g.setLooped(d)};Ts(h);let Iu=()=>{g.prepare()},Nu=()=>{(0,ve.assertNonNullable)(Xe);let d=Te(Xe.playerPhase),p={playerPhase:d,isVideoEnded:!1,action:"none"};if(P({message:"toggle play"}),d==="ads"){p.action="play",M.log("toggle adman play",p),U.togglePlay();return}let V=()=>{var se;P({message:"toggle play, call player.play"}),S.action.onPlay(),p.action="play",g.play(),(se=a==null?void 0:a.onPlay)==null||se.call(a)},te=()=>{var se;P({message:"toggle play, call player.pause"}),p.action="pause",g.pause(),(se=a==null?void 0:a.onPause)==null||se.call(a)};g.info.isEnded$.getValue()?(P({message:"toggle play, video ended, seek to 0"}),Qe.next(),G.next(hn.SeekAction.REWIND),g.seekTime(0),V()):g.info.playbackState$.getValue()!==ot.PlaybackState.PLAYING?V():te(),M.log("toggle play",p)},Ss=(d,{byUser:p=!1}={})=>{P({message:`set quality, quality: ${d}`}),M.log("set quality",{quality:d}),p&&w.next(d),g.setAutoQuality(d==="auto"),uo(),d!=="auto"&&(Da(i,d),wr.set(d),g.setQuality(d))},Is=d=>{P({message:`set trafficSavingEnabled, value: ${d}`}),M.log("set traffic saving enabled",{trafficSavingEnabled:d});let p=d?ot.PredefinedQualityLimits.TRAFFIC_SAVING:ot.PredefinedQualityLimits.UNKNOWN;g.setPredefinedQualityLimits(p)},Ns=d=>{P({message:`set highQualityEnabled, value: ${d}`}),M.log("set high quality enabled",{highQualityEnabled:d}),Du(d?ot.PredefinedQualityLimits.HIGH_QUALITY:ot.PredefinedQualityLimits.UNKNOWN)},Du=d=>{g.setPredefinedQualityLimits(d)},Do=(d,p=!0)=>{M.log("set playback rate",{playbackRate:d}),g.setPlaybackRate(d),k.features.saveRate&&y&&!g.info.isLive$.getValue()&&p&&Qd(d)},Cu=()=>{let d=Te(ci),p=Te(To),V=p.findIndex(({selected:se})=>se);if(V===p.length-1||!d)return p[V];let te=p[V+1];return Do(te.value),te},$u=()=>{let d=Te(ci),p=Te(To),V=p.findIndex(({selected:se})=>se);if(V===0||!d)return p[V];let te=p[V-1];return Do(te.value),te},Co=(d=vt(Ke({},Mr()),{selected:!1}))=>{M.log("set subtitles",Ke({},d)),d.value!==Ii&&re.next(d.isAuto?d.value+"_auto":d.value),Ce.next({enabled:d.value!==Ii,lang:d.language,auto:!!d.isAuto}),xs.set(d)},Ds=d=>{M.log("toggle subtitles");let p=Te(Wi);(p==null?void 0:p.value)===Ii?Cs(d):$s()},ku=(d,p)=>{M.log("change subtitle",{enabled:d}),d?Cs(!0,p):$s()},Cs=(d,p)=>{M.log("subtitle on");let V=Te(Es),te=Te(he),se=Y!=null?Y:te,Pe;p&&(Pe=V.find(Fe=>Fe.value===p)),Pe!=null||(Pe=V.filter(Fe=>Fe.value!==Ii).find(Fe=>Fe.language===se)),Co(Pe!=null?Pe:V[1])},$s=()=>{M.log("subtitle off"),Co(void 0)};ie.add(g.info.availableTextTracks$.subscribe(d=>{var V;function p(){let te=[];for(let{language:se,isAuto:Pe,id:Fe}of d){let Ve=se&&Va(se);se&&Ve&&te.push({id:Fe,language:se,title:Pe?ke("subtitles_auto",{language:Ve}):Ve})}return te}(V=a==null?void 0:a.onAvailableSubtitlesChanged)==null||V.call(a,p())}));let ks=(d,p,V=!0)=>{var te;if(P({message:`seek to time, time: ${d}`}),M.log("seek to time",{time:d,action:p,forcePrecise:V}),G.next(p),g.info.isLive$.getValue()){let se=g.info.duration$.getValue(),Pe=Math.min(0,se+d);g.seekTime(Pe,V)}else g.info.isEnded$.getValue()&&(P({message:"seek after ended, call callbacks.onPlay"}),(te=a==null?void 0:a.onPlay)==null||te.call(a)),g.seekTime(d,V)},Ls=(d,p,V=!1)=>{P({message:`seek to percent, percent: ${d}`}),M.log("seek to percent",{percent:d,action:p});let te=Te(Er)*d;ks(te,p,V)},Lu=d=>{P({message:`seek external, time: ${d}`}),M.log("seek external",{time:d}),G.next(hn.SeekAction.UNKNOWN),g.seekTime(g.info.isLive$.getValue()?-d:d)},Ou=d=>{var te,se;let p=(te=d.max)!=null?te:"none",V=(se=d.min)!=null?se:"none";P({message:`set auto quality limitation. Max: ${p}. Min: ${V}`}),M.log("set auto quality limits",{max:p,min:V}),g.setAutoQualityLimits(d)},Pu=d=>{P({message:`set playback rate to: ${d}`}),M.log("set playback rate external",{playbackRate:d}),g.setPlaybackRate(d)},$o=W(void 0),Ru=d=>{P({message:`start scrubbing, progress: ${d}`}),M.log("start scrubbing",{progress:d}),S.state.scrubbingInProgress.set(!0),Os(d)},Os=d=>{$o.set(d)},Vu=()=>{$o.set(void 0),S.state.scrubbingInProgress.set(!1)},ju=(d,p=!1)=>{P({message:`complete scrubbing, progress: ${d}`}),M.log("complete scrubbing",{progress:d}),Ls(d,hn.SeekAction.SLIDER,p),Vu()},zu=rt([We,Er,$o],([d,p,V],te)=>{te((0,ve.isNonNullable)(V)?V*p:d)}),Uu=d=>{G.next(hn.SeekAction.LIVE),P({message:"live switch to low latency "+d}),M.log("live switch to low latency "+d),g.setLiveLowLatency(d)},Fu=()=>{G.next(hn.SeekAction.LIVE),P({message:"switch to active live"}),M.log("switch to active live"),g.seekTime(0),g.info.playbackState$.getValue()!==ot.PlaybackState.PLAYING&&Xe.actions.internal.togglePlay()},Hu=()=>{M.log("skip adman"),U.skip()},Bu=(d=!0)=>{var te;(0,ve.assertNonNullable)(Xe),P({message:`switch from ads to video, callPlay: ${d}`}),M.log("switch from ads to video",{callPlay:d}),je.set("video"),d&&g.play(),o&&Fn(!0);let p=(te=Te(C))==null?void 0:te.muted,V=!g.info.muted$.getValue();p!==void 0&&!V&&Fn(p),C.set(void 0)},Qu=()=>{(0,ve.assertNonNullable)(Xe),P({message:"switch from video to ads"}),M.log("switch from video to ads"),Xe.actions.internal.pause(),de(),je.set("ads")},Yu=d=>{(0,ve.assertNonNullable)(Xe);let p=d?"LiveWaitingStart":"thumb";M.log("set live waiting start",{state:d,playerPhase:p}),je.set(p)},Wu=d=>{(0,ve.assertNonNullable)(Xe);let p=d?"LiveWaitingRecover":"thumb";M.log("set live waiting recover",{state:d,playerPhase:p}),je.set(p)},Gu=d=>{(0,ve.assertNonNullable)(Xe);let p=d?"LiveWaitingRecord":"thumb";M.log("set live waiting record",{state:d,playerPhase:p}),je.set(p)},qu=()=>((0,ve.assertNonNullable)(Xe),M.log("get debug text data"),Td(g,z,Xe,E.getTraceId(),T)),Ku=()=>((0,ve.assertNonNullable)(Xe),JSON.stringify(E.getFinishedSpans())),Zu=()=>((0,ve.assertNonNullable)(Xe),Sd(g,z,Xe)),Ju=()=>Q,Ps=d=>{var V;if((0,ve.assertNonNullable)(Xe),g.info.isEnded$.getValue())return;let p=!d;if(Te(Xe.playerPhase)==="ads"){P({message:`pause ads, internalCall: ${p}`}),M.log("pause ads",{internalCall:p}),U.pause();return}P({message:`pause video, internalCall: ${p}`}),M.log("pause video",{internalCall:p}),p&&((V=a==null?void 0:a.onPause)==null||V.call(a)),g.pause()},Rs=d=>{var V;(0,ve.assertNonNullable)(Xe);let p=!d;if(Te(Xe.playerPhase)==="ads"){P({message:`play ads, internalCall: ${p}`}),M.log("play ads",{internalCall:p}),U.play();return}P({message:`play video, internalCall: ${p}`}),M.log("play video",{internalCall:p}),p&&((V=a==null?void 0:a.onPlay)==null||V.call(a)),g.play()},Xu=d=>{(0,ve.assertNonNullable)(Xe);let p=!d;if(Te(Xe.playerPhase)==="ads"){P({message:"player cannot be stopped during ads via external method"});return}P({message:`player will be stopped, internalCall: ${p}`}),v==null||v()},Vs=(d,p)=>{(0,ve.assertNonNullable)(Xe),P({message:`first start, show ads: ${d}, internalCall: ${!p}`}),M.log("first start",{showAds:d,external:p}),d?je.set("ads"):(je.set("video"),p?g.play():Xe.actions.internal.togglePlay())},ec=()=>(P({message:"getting preview thumbs data"}),M.log("get preview thumbs data",Ke({},m)),m),tc=()=>{M.log("destroy store"),ie.unsubscribe(),g.destroy(),U.destroy(),_==null||_.destroy(),_e.unsubscribe(),X.destroy()},Xe={interfaceLanguage$:he,isCyrillicRelatedInterface$:Be,initVideo:ze,videoId:i,playerPhase:I,vsid:be,i18n:ke,app:b,video:(0,ve.cloneDeep)(x),state:{positionExact$:We,positionWithScrubbing$:zu,duration$:Er,playbackState$:Ue,playbackStateRealistic$:at,isPlaying$:ls,isLoaderVisible:ge,bufferedProgress$:xu,isLive$:Ni,canChangePlaybackSpeed$:ci,isActiveLive$:ds,isOldestAvailableLive$:us,isRewindableLive$:lu,isEnded$:ct,muted$:Xi,volume$:Ri,trafficSavingEnabled$:Yi,highQualityEnabled$:Ze,autoQualityLimitingAvailable$:Ge,availableVideoStreams$:du,availableAudioStreams$:fs,videoStream$:uu,audioStream$:ps,currentQuality$:ys,isAutoQualityEnabled$:_s,availableQualities$:mu,currentPlaybackRate$:Mo,availablePlaybackRates$:To,currentSubtitle$:Wi,availableTextTracks$:So,availableSubtitlesList$:Es,currentSubtitleCaptions$:yu,isAutoSubtitleCaptionVisible$:bu,currentFormat$:yn,throughputEstimation$:$t,videoBitrate$:ft,videoSize$:bn,errorLog$:ae,crashed$:j,isAudioAvailable$:au,isAudioDisabled:!!o,canDownload:k.features.download&&!!s,availableSources$:ws,hasMpegSources$:Au,looped$:Ms,loadedMetadata$:He,isAutoQualityAvailable$:bs},ui:S.state,ads:{position:W(0),duration:W(0),playbackState:W("inactive"),canSkip:W(!1),secondsToWatchBeforeSkip:W(0),postrollPassed:W(!1)},webApi:{focusManager:O},actions:{internal:{preload:Iu,firstStart:d=>Vs(d,!1),play:()=>Rs(!1),pause:()=>Ps(!1),togglePlay:Nu,toggleMuted:Mu,openSettingsMenu:Su,closeSettingsMenu:Tu,setVolume:d=>No(d),setMuted:d=>Fn(d),startVolumeChanging:S.action.startVolumeChanging,stopVolumeChanging:S.action.stopVolumeChanging,onUserInput:S.action.onUserInput,setSettingsVisibility:S.action.setSettingsVisibility,clearShowByInput:S.action.clearShowByInput,onBackButton:S.action.onBackButton,setVideoStream:cu,setAudioStream:d=>ms(d),setQuality:(d,p)=>Ss(d,p),setTrafficSavingEnabled:d=>Is(d),setHighQualityEnabled:d=>Ns(d),setPlaybackRate:Do,incrementPlaybackRate:Cu,decrementPlaybackRate:$u,setSubtitle:d=>Co(d),toggleSubtitle:()=>Ds(!1),startScrubbing:Ru,progressScrubbing:Os,completeScrubbing:ju,switchToActiveLive:Fu,switchFromAdsToVideo:Bu,switchFromVideoToAds:Qu,skipAd:Hu,setLiveWaitingStart:Yu,setLiveWaitingRecover:Wu,setLiveWaitingRecord:Gu,getDebugTextData:qu,getTraceTextData:Ku,getDebugPanelData:Zu,getVideoElement:Ju,seekTime:(d,p,V)=>ks(d,p,V),clearDelayedBufferingCheckTimeout:su,seekToPercent:Ls,getPreviewThumbsData:ec,downloadVideo:wu,addLanguage:Ea,setLanguage:Se,setLooped:Ts,checkFullscreenSupport:q},external:{firstStart:d=>Vs(d,!0),play:()=>Rs(!0),pause:()=>Ps(!0),stop:()=>Xu(!0),seekTime:d=>Lu(d),setPlaybackRate:d=>Pu(d),setAutoQualityLimits:d=>Ou(d),setMuted:d=>Fn(d),toggleSubtitle:()=>Ds(!0),changeSubtitle:ku,setVolume:d=>No(d),setLiveLowLatency:Uu,hideControls:()=>S.action.setControlsAvailibility(!1),showControls:()=>S.action.setControlsAvailibility(!0),setQuality:d=>Ss(d),setTrafficSavingEnabled:d=>Is(d),setHighQualityEnabled:d=>Ns(d),changeAudioStream:fu}},callbacks:a,setUiCallbacks:d=>{ce=Ke({},d)},getAdmanWrapper:()=>U,getLogger:()=>R,getPlayer:()=>g,deviceCapabilities:A,destroy:tc};return S.resolveDependency(Xe),Xe};var ou=require("@vkontakte/videoplayer-core/es2015"),as=require("@vkontakte/videoplayer-core/es2015"),xr=require("@vkontakte/videoplayer-shared/es2015");var go=class{constructor(e){this.value=e,this.next=null}};var Vn=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new go(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Gf=ue('<div class="container s-c"><canvas class="s-c"></canvas></div>'),qf={hash:"s-c",code:".container.s-c{display:inline-block;height:16px;width:120px}canvas.s-c{margin-top:2px;transform:scaleY(-1)}"};function _r(t,e){Ee(e,!0),Re(t,qf);let i=tt(e,"values",19,()=>[]),n=Oe(void 0),r=Oe(null),o=16,s=120,a=60,c=s/a;Si(()=>{N(n).width=s,N(n).height=o,pe(r,N(n).getContext("2d"),!0)});function m(u,v,h,_,y){y===0&&(y=1),u.fillStyle="#fff",u.fillRect(v,h,_,y)}jt(()=>{let u="";if(N(r)){let v=i()[0];for(let _=1;_<i().length;_++)i()[_]>v&&(v=i()[_]);N(r).clearRect(0,0,s,o);let h=a-1;for(let _=i().length-1;_>=0;_--){let y=h*c,$=v>0?o*(i()[_]/v):0;m(N(r),y,0,c,$),u=$+" "+u,h--}}});var f=Gf(),l=B(f);li(l,u=>pe(n,u),()=>N(n)),H(f),J(t,f),we()}var za=require("@vkontakte/videoplayer-shared/es2015");var Kf=(t,e)=>{t.stopPropagation(),za.safeStorage.remove(hr),e.set(!1)},Zf=ue('<div class="s-4"><div class="s-4">Video id</div> <span> </span></div>'),Jf=ue('<div class="s-4"><div class="s-4">VSID</div> <span> </span></div>'),Xf=ue('<div class="s-4"><div class="s-4">Provider</div> <span> </span></div>'),ep=ue('<div class="s-4"><div class="s-4">Streams</div> <span> </span></div>'),tp=ue('<div class="s-4"><div class="s-4">Viewport</div> <span> </span></div>'),ip=ue('<div class="s-4"><div class="s-4">Video size</div> <span> </span></div>'),np=ue('<div class="s-4"><div class="s-4">CDN host</div> <span> </span></div>'),rp=ue('<div class="s-4"><div class="s-4">Volume</div> <span> </span></div>'),op=ue('<div class="s-4"><div class="s-4">Position</div> <span> </span></div>'),ap=ue('<div class="s-4"><div class="s-4">Buffer</div> <span> </span></div>'),sp=ue('<div class="s-4"><div class="s-4">Nbuffer</div> <span> </span></div>'),lp=ue('<div class="s-4"><div class="s-4">Live latency</div> <span> </span></div>'),dp=ue('<div class="s-4"><div class="s-4">Segment</div> <span> </span></div>'),up=ue('<div class="s-4"><div class="s-4">Network</div> <!> <span> </span></div>'),cp=ue('<div class="s-4"><div class="s-4">V bitrate</div> <!> <span> </span></div>'),fp=ue('<div class="container s-4" role="region"><button class="close s-4" title="закрыть">[x]</button> <div class="content s-4"><div class="s-4"><div class="s-4">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-4"><div class="s-4">Dropped</div> <span> </span></div> <!> <!> <div class="s-4"><div class="s-4">FPS</div> <!> <span> </span></div></div></div>'),pp={hash:"s-4",code:".container.s-4{background:rgba(28,28,28,.8);border-radius:4px;font-size:10px;left:20px;min-width:160px;text-align:left;top:45px;user-select:text;z-index:var(--debug-panel-z-index)}.container.s-4,button.close.s-4{color:#fff;position:absolute}button.close.s-4{background-color:transparent;border:none;cursor:pointer;outline:0;padding:0;right:5px;top:3px}.content.s-4{padding:5px}.content.s-4>div:where(.s-4)>div:where(.s-4){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function Ua(t,e){Ee(e,!0),Re(t,pp);let i=Ut(),n=i.ui.debugPanelVisible,r=Oe(Ot(i.actions.internal.getDebugPanelData())),o=i.actions.internal.getVideoElement(),s=Oe(0),a=Oe(0),c=Oe(0),m=new Vn(60),f=new Vn(60),l=new Vn(60),u=Oe(Ot([])),v=Oe(Ot([])),h=Oe(Ot([])),_=Ft("aria_label_debug_panel");Si(()=>{za.safeStorage.set(hr,"true"),o&&(pe(a,o.getVideoPlaybackQuality().droppedVideoFrames,!0),pe(s,o.getVideoPlaybackQuality().totalVideoFrames,!0));let G=window.setInterval(()=>{pe(r,i.actions.internal.getDebugPanelData(),!0)},500),re;return o&&(re=window.setInterval(()=>{if(o){pe(a,o.getVideoPlaybackQuality().droppedVideoFrames,!0);let fe=o.getVideoPlaybackQuality().totalVideoFrames;pe(c,fe-N(s)),pe(s,fe,!0),m.push(N(c)),N(r).speed&&f.push(N(r).speed),N(r).bitrate&&l.push(N(r).bitrate),pe(u,m.getValuesFromBottom(),!0),pe(v,f.getValuesFromBottom(),!0),pe(h,l.getValuesFromBottom(),!0)}},1e3)),()=>{clearInterval(G),re&&clearInterval(re)}});var y=fp(),$=B(y);$.__click=[Kf,n];var D=ne($,2),T=B(D),b=ne(B(T),2),x=B(b,!0);H(b),H(T);var A=ne(T,2);{var S=G=>{var re=Zf(),fe=ne(B(re),2),Ce=B(fe,!0);H(fe),H(re),ye(()=>Ne(Ce,N(r).id)),J(G,re)};De(A,G=>{N(r).id&&G(S)})}var L=ne(A,2);{var k=G=>{var re=Jf(),fe=ne(B(re),2),Ce=B(fe,!0);H(fe),H(re),ye(()=>Ne(Ce,N(r).vsid)),J(G,re)};De(L,G=>{N(r).vsid&&G(k)})}var E=ne(L,2);{var M=G=>{var re=Xf(),fe=ne(B(re),2),Ce=B(fe,!0);H(fe),H(re),ye(()=>Ne(Ce,N(r).provider)),J(G,re)};De(E,G=>{N(r).provider&&G(M)})}var g=ne(E,2);{var R=G=>{var re=ep(),fe=ne(B(re),2),Ce=B(fe);H(fe),H(re),ye(()=>{var w,ee;return Ne(Ce,`Video: ${(w=N(r).videoCodec||"")!=null?w:""} ${N(r).hdr?"(HDR)":""}
|
|
51
51
|
&
|
|
52
|
-
Audio: ${(Q=j(o).audioCodec||"")!=null?Q:""} ${j(o).audioLanguage?`(${j(o).audioLanguage})`:""}`)}),ve(E,z)};Ye(k,E=>{(j(o).videoCodec||j(o).audioCodec)&&E(Z)})}var ae=he(k,2);{var V=E=>{var z=fp(),X=he(re(z),2),fe=re(X,!0);oe(X),oe(z),Fe(()=>it(fe,j(o).viewport)),ve(E,z)};Ye(ae,E=>{j(o).viewport&&E(V)})}var G=he(ae,2);{var F=E=>{var z=mp(),X=he(re(z),2),fe=re(X,!0);oe(X),oe(z),Fe(()=>it(fe,j(o).videoSize)),ve(E,z)};Ye(G,E=>{j(o).videoSize&&E(F)})}var J=he(G,2);{var Ee=E=>{var z=hp(),X=he(re(z),2),fe=re(X,!0);oe(X),oe(z),Fe(()=>it(fe,j(o).cdn)),ve(E,z)};Ye(J,E=>{j(o).cdn&&E(Ee)})}var ee=he(J,2);{var de=E=>{var z=vp(),X=he(re(z),2),fe=re(X);oe(X),oe(z),Fe(()=>{var _;return it(fe,`${(_=j(o).volume)!=null?_:""} %`)}),ve(E,z)};Ye(ee,E=>{j(o).volume&&E(de)})}var Y=he(ee,2);{var _e=E=>{var z=gp(),X=he(re(z),2),fe=re(X);oe(X),oe(z),Fe(_=>it(fe,`${_!=null?_:""} s`),[()=>j(o).position.toFixed(2)]),ve(E,z)};Ye(Y,E=>{j(o).position&&E(_e)})}var B=he(Y,2);{var je=E=>{var z=_p(),X=he(re(z),2),fe=re(X);oe(X),oe(z),Fe(_=>it(fe,`${_!=null?_:""} s`),[()=>j(o).buffer.toFixed(2)]),ve(E,z)};Ye(B,E=>{j(o).buffer&&E(je)})}var De=he(B,2);{var ue=E=>{var z=yp(),X=he(re(z),2),fe=re(X);oe(X),oe(z),Fe(_=>it(fe,`${_!=null?_:""} s`),[()=>j(o).nativeBuffer.toFixed(2)]),ve(E,z)};Ye(De,E=>{j(o).nativeBuffer&&E(ue)})}var O=he(De,2);{var pe=E=>{var z=bp(),X=he(re(z),2),fe=re(X);oe(X),oe(z),Fe(_=>it(fe,`${_!=null?_:""} s`),[()=>j(o).liveLatency.toFixed(2)]),ve(E,z)};Ye(O,E=>{j(o).liveLatency&&E(pe)})}var le=he(O,2);{var me=E=>{var z=Ap(),X=he(re(z),2),fe=re(X,!0);oe(X),oe(z),Fe(_=>it(fe,_),[()=>[{value:j(o).currentVideoSegmentLength,title:"Video:"},{value:j(o).currentAudioSegmentLength,title:"Audio:"}].filter(({value:_})=>_).map(({value:_,title:Q})=>`${Q} ${((_!=null?_:0)/1e3).toFixed(2)} s`).join(" & ")]),ve(E,z)};Ye(le,E=>{(j(o).currentVideoSegmentLength||j(o).currentAudioSegmentLength)&&E(me)})}var Me=he(le,2),Se=he(re(Me),2),Ue=re(Se);oe(Se),oe(Me);var T=he(Me,2);{var S=E=>{var z=xp(),X=he(re(z),2);no(X,{get values(){return j(v)}});var fe=he(X,2),_=re(fe);oe(fe),oe(z),Fe(Q=>it(_,`${Q!=null?Q:""} Kbps`),[()=>j(o).speed.toFixed(2)]),ve(E,z)};Ye(T,E=>{j(o).speed&&E(S)})}var L=he(T,2);{var R=E=>{var z=Ep(),X=he(re(z),2);no(X,{get values(){return j(b)}});var fe=he(X,2),_=re(fe);oe(fe),oe(z),Fe(Q=>it(_,`${Q!=null?Q:""} Kbps`),[()=>j(o).bitrate.toFixed(2)]),ve(E,z)};Ye(L,E=>{j(o).bitrate&&E(R)})}var te=he(L,2),se=he(re(te),2);no(se,{get values(){return j(c)}});var Ie=he(se,2),$e=re(Ie,!0);oe(Ie),oe(te),oe(D),oe(g),Fe(()=>{var E,z;Kt(g,"aria-label",y),it(A,j(o).version),it(Ue,`${(E=j(r))!=null?E:""} / ${(z=j(d))!=null?z:""} frames`),it($e,j(u))}),ve(t,g),mt()}vn(["click"]);Ps();var ld="var(--btn-color, #fff)";var wp=bi('<g filter="url(#strokeAndShadow)"><!></g><defs><filter x="-12" width="72" y="-12" height="72" id="strokeAndShadow"><feMorphology operator="dilate" radius=".4" result="outer"></feMorphology><feFlood flood-color="rgba(0,0,0,0.1)" result="outerColor"></feFlood><feComposite operator="in" in="outerColor" in2="outer" result="outerOutline"></feComposite><feDropShadow in="SourceGraphic" dx="0" dy="0" stdDeviation="3" flood-color="rgba(0,0,0,0.4)" result="outerShadow"></feDropShadow><feMerge><feMergeNode in="outerShadow"></feMergeNode><feMergeNode in="outerOutline"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs>',1),Sp=bi('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Ji(t,e){var f;ft(e,!0);let i=xe(e,"width",19,()=>"24"),n=xe(e,"height",19,()=>"24"),o=xe(e,"fill",3,ld),a=(f=e.viewBox)!=null?f:`0 0 ${i()} ${n()}`;var d=Sp(),r=re(d);{var u=l=>{var c=wp(),v=fn(c),b=re(v);$o(b,()=>e.children),oe(v),pn(),ve(l,c)},h=l=>{var c=Ur(),v=fn(c);$o(v,()=>e.children),ve(l,c)};Ye(r,l=>{e.shadow?l(u):l(h,!1)})}oe(d),Fe(()=>{Kt(d,"aria-label",e.ariaLabel),Kt(d,"aria-hidden",!e.ariaLabel),Kt(d,"width",i()),Kt(d,"height",n()),Kt(d,"viewBox",a),Kt(d,"fill",o()),Vi(d,e.style),Kt(d,"data-testid",e.testId)}),ve(t,d),mt()}var Ip=bi('<path d="M460 194a4 4 0 0 1 4-4h122a4 4 0 0 1 4 4v82a4 4 0 0 1-4 4H464a4 4 0 0 1-4-4zm6 3a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm112-72a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm-71-37a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.62 4.45 11.94 4.65 2.11 1.35 3.26.77 3.96.16s1.15-2.81-1.04-4.66c-1.74-1.48-5.8-5.16-14.86-5.15s-12.95 3.5-14.8 5.18c-1.83 1.69-2.28 3.5-.96 4.66s2.31 1.16 4.35-.33c0 .01 5.36-4.51 11.41-4.51"></path>');function fa(t){Ji(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var n=Ip();ve(e,n)},$$slots:{default:!0}})}var Np=Ce('<div class="container s-3"><!></div>'),Dp={hash:"s-3",code:".container.s-3{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function oo(t){ht(t,Dp);var e=Np(),i=re(e);fa(i,{}),oe(e),ve(t,e)}var ud=t=>`width:${t}px;height:${t}px;`;var Lp=bi('<path d="m14.4 8.76 24.02 13.85a1.6 1.6 0 0 1 0 2.78L14.4 39.24a1.6 1.6 0 0 1-2.4-1.39v-27.7a1.6 1.6 0 0 1 2.4-1.39"></path>');function ma(t,e){ft(e,!0);let i=Mi(()=>ud(e.size));Ji(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return j(i)},testId:"play-icon",get shadow(){return e.shadow},children:(n,o)=>{var a=Lp();ve(n,a)},$$slots:{default:!0}}),mt()}var kp=Ce('<div class="playButton s-5" tabindex="0" role="button"><div class="playButtonBackground s-5"></div> <!></div>'),Cp=Ce('<div data-testid="unstarted-thumb"><!></div>'),$p={hash:"s-5",code:".container.s-5{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-5{opacity:0;visibility:hidden}.container.bgCover.s-5{background-size:cover}.playButton.s-5{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-5,.playButtonBackground.s-5{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-5{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-5:hover .playButtonBackground:where(.s-5){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-5 svg{position:relative}"};function ha(t,e){ft(e,!0),ht(t,$p);let i=xe(e,"iconVisible",3,!0),n=An(),o=Qo("tooltip_play"),a=f=>{var l,c;f.stopPropagation(),(l=e.startVideo)==null||l.call(e),(c=e.onClick)==null||c.call(e,f)};var d=Cp();let r;d.__click=a,d.__contextmenu=function(...f){var l;(l=e.onContextMenu)==null||l.apply(this,f)};var u=re(d);{var h=f=>{var l=kp(),c=he(re(l),2);ma(c,{get size(){return"48"}}),oe(l),Fe(()=>Kt(l,"aria-label",o)),ve(f,l)};Ye(u,f=>{i()&&f(h)})}return oe(d),Fe(f=>{r=yn(d,1,"container s-5",null,r,f),Vi(d,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),ve(t,d),mt({handleClick:a})}vn(["click","contextmenu"]);var Op=Ce('<div><div class="video-container s-6"></div></div>'),Rp={hash:"s-6",code:".video-container.s-6,.video-wrapper.s-6{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-6{background:var(--black)}.video-container.s-6,.video-wrapper.s-6{z-index:var(--video-container-z-index)}.video-container.s-6{transition:var(--rotate-transition-duration) ease all}"};function ga(t,e){ft(e,!0),ht(t,Rp);let[i,n]=Ki(),o=()=>pi(d,"$playerPhase",i),a=xe(e,"videoContainer",15),{playerPhase:d}=ji();var r=Op();let u;var h=re(r);qi(h,f=>a(f),()=>a()),oe(r),Fe(f=>u=yn(r,1,"video-wrapper s-6",null,u,f),[()=>({hidden:o()!=="video"})]),ve(t,r),mt(),n()}var Pp=Ce("<!> <!> <!> <!>",1),Vp=Ce('<div class="player-wrapper s-4"><!></div>'),jp={hash:"s-4",code:".player-wrapper.s-4{height:100%;position:absolute;width:100%}.player-wrapper.s-4 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}"};function _a(t,e){ft(e,!0),ht(t,jp);let[i,n]=Ki(),o=()=>pi(f,"$language$",i),a=()=>pi(l,"$playerPhase",i),d=()=>pi(c,"$crashed",i),r=()=>pi(v,"$debugPanelVisible",i),u=xe(e,"videoContainer",15),h=ji(),f=h.interfaceLanguage$,l=h.playerPhase,c=h.state.crashed$,v=h.ui.debugPanelVisible,b=He(void 0);var y=Vp(),g=re(y);Qr(g,o,C=>{var D=Pp(),N=fn(D);ga(N,{get videoContainer(){return u()},set videoContainer(x){u(x)}});var w=he(N,2);let A=Mi(()=>a()!=="thumb"||d()&&e.autoplay);ha(w,{get hidden(){return j(A)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var M=he(w,2);{var I=x=>{oo(x,{})};Ye(M,x=>{d()&&x(I)})}var m=he(M,2);{var U=x=>{pa(x,{})};Ye(m,x=>{r()&&x(U)})}ve(C,D)}),oe(y),qi(y,C=>Ne(b,C),()=>j(b)),ve(t,y),mt(),n()}var zp=Ce('<div class="vk-vp-tv-root s-0"><!></div>'),Fp={hash:"s-0",code:'.vk-vp-tv-root.s-0{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px}'};function ya(t,e){ft(e,!0),ht(t,Fp);let[i,n]=Ki(),o=()=>pi(ee,"$isLive$",i),a=()=>pi(te,"$availableSubtitlesList$",i),d=xe(e,"sources",7),r=xe(e,"store",7),u=xe(e,"videoConfig",7),h=xe(e,"uiConfig",7),f=xe(e,"title",7),l=xe(e,"thumbUrl",7),c=xe(e,"subtitles",7),v=xe(e,"subtitlesForcedLanguage",7),b=xe(e,"live",7),y=xe(e,"preload",7),g=xe(e,"autoplay",7),C=xe(e,"volume",7,void 0),D=xe(e,"muted",7,void 0),N=xe(e,"fromTime",7),w=xe(e,"canRewindLive",7),A=xe(e,"showAds",7),M=xe(e,"adsSlotId",7,void 0),I=xe(e,"adsParams",7,void 0),m=xe(e,"adsAutoplayParam",7,void 0),U=xe(e,"duration",7,void 0),x=xe(e,"supportLink",7),P=xe(e,"shadowRootContainer",7),k=xe(e,"outerContainerRef",7),Z=xe(e,"fullScreenTarget",7,void 0),ae=xe(e,"failoverHosts",7,void 0),V=xe(e,"saveRate",7),G=xe(e,"volumeMultiplier",7),F=xe(e,"showEndScreen",7,!0);Ol(h());let J=An(),Ee=r().ui.debugPanelVisible,ee=r().state.isLive$,de=He(void 0),Y=He(!1);r().getAdmanWrapper().init({switchFromAdsToVideo:r().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r().actions.internal.switchFromVideoToAds,setMuted:r().actions.external.setMuted},r().ads,{vsid:r().vsid}),Hl(r()),Di(()=>{var E,z;(z=(E=u().callbacks)==null?void 0:E.onDomReady)==null||z.call(E)});let _e=(E=!1)=>{Ne(Y,!0),E?r().actions.external.firstStart(A()):r().actions.internal.firstStart(A())},B=()=>{od(r().videoId),aa()&&r().actions.internal.setTrafficSavingEnabled(!0);let z=ra(r().videoId);z&&r().actions.internal.setQuality(z)};function je(E){var Q,ie,Re;let z=d()||E;z&&r().initVideo({container:j(de),sources:z,failoverHosts:ae(),subtitles:c(),subtitlesForcedLanguage:v(),volumeMultiplier:G()});let X=pd.safeStorage.get(to)==="true";Ee.set(X),N()>0&&r().actions.external.seekTime(N());let fe=(ie=(Q=C())!=null?Q:Uo())!=null?ie:J.volumeDefault,_=(Re=D())!=null?Re:Xl();if(r().actions.external.setVolume(fe),r().actions.external.setMuted(_),r().getAdmanWrapper().setInitialVolume(_?0:fe),B(),J.features.saveRate&&V()){let Le=nd();Le&&!o()&&r().actions.internal.setPlaybackRate(Le)}r().ui.isAutoplay.set(g()),g()&&_e(),y()&&J.features.preload&&r().actions.internal.preload()}_n(()=>{var z,X,fe,_;let E=()=>r().destroy();return((z=b())==null?void 0:z.status)==="upcoming"?(r().actions.internal.setLiveWaitingStart(!0),E):((X=b())==null?void 0:X.status)==="waiting"?(r().actions.internal.setLiveWaitingRecover(!0),E):(((fe=b())==null?void 0:fe.status)==="finished"||((_=b())==null?void 0:_.status)==="postlive")&&!(d()&&(0,cd.areValidLiveRecordSources)(d()))?(r().actions.internal.setLiveWaitingRecord(!0),E):(je(),E)});function De(){j(Y)?r().actions.external.play():_e(!0)}function ue(){r().actions.external.pause()}function O(E){r().actions.external.setMuted(E)}function pe(){r().actions.external.toggleSubtitle()}function le(E,z){r().actions.external.changeSubtitle(E,z)}function me(E){r().actions.external.changeAudioStream(E)}function Me(E){E>=0&&E<=1&&r().actions.external.setVolume(E)}function Se(E){r().actions.internal.seekTime(E,fd.SeekAction.UNKNOWN)}function Ue(E){r().actions.external.setPlaybackRate(E)}function T(E){r().actions.external.setAutoQualityLimits(E)}function S(){r().actions.external.setQuality("auto")}function L(E){r().actions.external.setTrafficSavingEnabled(E)}function R(E){r().actions.external.setHighQualityEnabled(E)}let te=r().state.availableSubtitlesList$;if(J.features.initSubtitles){let E=!1;Di(()=>{var z;if(!E&&a().length){E=!0;let X;if(J.features.userVideoPrefs&&r().videoId){let _=Fo(J.userSalt,String(r().videoId));_!=null&&_.subtitleTrackId&&(X=a().find(Q=>Q.value===_.subtitleTrackId))}let fe=(z=v())!=null?z:sa();fe&&(X=a().find(_=>_.language===fe)),r().actions.internal.setSubtitle(X)}})}var se=zp(),Ie=re(se);_a(Ie,{get thumbUrl(){return l()},firstStart:_e,get autoplay(){return g()},get videoContainer(){return j(de)},set videoContainer(E){Ne(de,E,!0)}}),oe(se),ve(t,se);var $e=mt({initVideo:je,play:De,pause:ue,setMuted:O,toggleSubtitle:pe,changeSubtitle:le,changeAudioStream:me,setVolume:Me,seekTime:Se,setPlaybackRate:Ue,setAutoQualityLimits:T,setAutoQuality:S,toggleTrafficSaving:L,toggleHighQuality:R,get sources(){return d()},set sources(E){d(E)},get store(){return r()},set store(E){r(E)},get videoConfig(){return u()},set videoConfig(E){u(E)},get uiConfig(){return h()},set uiConfig(E){h(E)},get title(){return f()},set title(E){f(E)},get thumbUrl(){return l()},set thumbUrl(E){l(E)},get subtitles(){return c()},set subtitles(E){c(E)},get subtitlesForcedLanguage(){return v()},set subtitlesForcedLanguage(E){v(E)},get live(){return b()},set live(E){b(E)},get preload(){return y()},set preload(E){y(E)},get autoplay(){return g()},set autoplay(E){g(E)},get volume(){return C()},set volume(E){C(E)},get muted(){return D()},set muted(E){D(E)},get fromTime(){return N()},set fromTime(E){N(E)},get canRewindLive(){return w()},set canRewindLive(E){w(E)},get showAds(){return A()},set showAds(E){A(E)},get adsSlotId(){return M()},set adsSlotId(E){M(E)},get adsParams(){return I()},set adsParams(E){I(E)},get adsAutoplayParam(){return m()},set adsAutoplayParam(E){m(E)},get duration(){return U()},set duration(E){U(E)},get supportLink(){return x()},set supportLink(E){x(E)},get shadowRootContainer(){return P()},set shadowRootContainer(E){P(E)},get outerContainerRef(){return k()},set outerContainerRef(E){k(E)},get fullScreenTarget(){return Z()},set fullScreenTarget(E){Z(E)},get failoverHosts(){return ae()},set failoverHosts(E){ae(E)},get saveRate(){return V()},set saveRate(E){V(E)},get volumeMultiplier(){return G()},set volumeMultiplier(E){G(E)},get showEndScreen(){return F()},set showEndScreen(E){F(E)}});return n(),$e}var Hp=bi('<defs><path id="rect" d="m2.72 0c.45 0 .6.05.77.13a1 1 0 01.38.38c.09.16.13.33.13.77v1.44c0 .44-.04.6-.13.77a1 1 0 01-.38.38c-.16.08-.32.13-.77.13h-1.44c-.44 0-.6-.05-.77-.13a1 1 0 01-.37-.38c-.1-.16-.14-.33-.14-.77v-1.44c0-.44.05-.6.13-.77a1 1 0 01.38-.38c.17-.08.33-.13.77-.13z"></path></defs><path d="M38.24 6c3.57 0 4.86.37 6.17 1.07a7.3 7.3 0 0 1 3.02 3.02c.7 1.3 1.07 2.6 1.07 6.17v23.49c0 3.56-.37 4.85-1.07 6.16a7.3 7.3 0 0 1-3.02 3.02c-1.3.7-2.6 1.07-6.16 1.07h-19.5c-3.56 0-4.85-.37-6.16-1.07a7.3 7.3 0 0 1-3.02-3.02c-.7-1.3-1.07-2.6-1.07-6.16v-23.5c0-3.56.37-4.85 1.07-6.16a7.3 7.3 0 0 1 3.02-3.02C13.9 6.37 15.2 6 18.76 6zm.32 3h-19.8c-2.8 0-3.77.19-4.75.71a4.3 4.3 0 0 0-1.8 1.8c-.5.95-.7 1.87-.7 4.43l-.01 23.8c0 2.8.19 3.76.71 4.75a4.3 4.3 0 0 0 1.8 1.8c.98.52 1.95.71 4.75.71h19.49c2.8 0 3.76-.19 4.74-.71a4.3 4.3 0 0 0 1.8-1.8c.52-.98.71-1.95.71-4.74v-23.5c0-2.8-.19-3.75-.71-4.74a4.3 4.3 0 0 0-1.8-1.8c-.95-.5-1.87-.7-4.43-.7z"></path><use xlink:href="#rect" x="16.5" y="14"></use><use xlink:href="#rect" x="16.5" y="22"></use><use xlink:href="#rect" x="16.5" y="30"></use><use xlink:href="#rect" x="16.5" y="38"></use><use xlink:href="#rect" x="37" y="14"></use><use xlink:href="#rect" x="37" y="22"></use><use xlink:href="#rect" x="37" y="30"></use><use xlink:href="#rect" x="37" y="38"></use>',1);function ba(t,e){let i=xe(e,"isWhite",3,!1),n=Mi(()=>i()?"#fff":"#909499");Ji(t,{width:"57",height:"60",get fill(){return j(n)},testId:"stub-icon",children:(o,a)=>{var d=Hp();pn(9),ve(o,d)},$$slots:{default:!0}})}var Qp=Ce('<div class="title s-2"> </div>'),Yp=Ce('<div class="playerStub s-2"><!> <!></div>'),Bp={hash:"s-2",code:".playerStub.s-2{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-2{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function Aa(t,e){ht(t,Bp);var i=Yp(),n=re(i);{var o=r=>{var u=Qp(),h=re(u,!0);oe(u),Fe(()=>it(h,e.title)),ve(r,u)};Ye(n,r=>{e.title&&r(o)})}var a=he(n,2);{var d=r=>{let u=Mi(()=>!!e.thumbUrl);ba(r,{get isWhite(){return j(u)}})};Ye(a,r=>{(!e.title||!e.thumbUrl)&&r(d)})}oe(i),Fe(()=>Vi(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),ve(t,i)}var Wp=Ce('<div class="playerError s-1"><!></div>'),Gp={hash:"s-1",code:".playerError.s-1{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}"};function xa(t){ht(t,Gp);var e=Wp(),i=re(e);oo(i,{}),oe(e),ve(t,e)}var Be=require("@vkontakte/videoplayer-core/es2015"),ce=require("@vkontakte/videoplayer-shared/es2015"),Tn=require("@vkontakte/videoplayer-statistics/es2015");var K=require("@vkontakte/videoplayer-shared/es2015"),st=require("@vkontakte/videoplayer-shared/es2015");var Kp="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Yo=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new st.Subject,loadStarted$:new st.Subject,loadEnded$:new st.Subject,loadError$:new st.Subject,ready$:new st.Subject,slotRequested$:new st.Subject,started$:new st.Subject,timeRemained$:new st.Subject,paused$:new st.Subject,resumed$:new st.Subject,ended$:new st.Subject,empty$:new st.Subject,skipped$:new st.Subject,clicked$:new st.Subject,closed$:new st.Subject,error$:new st.Subject};this.loadAdman=e=>(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,K.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,n)=>{let o;this.events.loadStarted$.next();let a=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,K.now)()]}),i(),this.events.loadEnded$.next()):(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,K.now)()]}),n())};(0,st.addScript)(Kp,e,this.loadTimeout).then(()=>{K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,K.now)()]}),window.AdmanHTML?(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,K.now)()]}),i(),this.events.loadEnded$.next()):(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,K.now)()]}),window.admanAsyncInit=a,o=window.setTimeout(a,this.initTimeout))}).catch(d=>{K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(d)],numbers:[(0,K.now)()]}),n(),clearTimeout(o)})});this.loadAdmanNPM=e=>new Promise((i,n)=>{let o;this.events.loadStarted$.next();let a=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,K.now)()]}),i(),this.events.loadEnded$.next()):(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,K.now)()]}),n())},d=()=>{r=!0,n()},r=!1,u=window.setTimeout(()=>{K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,K.now)()]}),d()},this.loadTimeout);e.addEventListener("abort",d),e.aborted&&(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,K.now)()]}),d()),window.AdmanHTML=window.AdmanHTML||null,Promise.resolve().then(()=>zu(md(),1)).then(()=>{K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(r)],numbers:[(0,K.now)()]}),!r&&(window.AdmanHTML?(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,K.now)()]}),i(),this.events.loadEnded$.next()):(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,K.now)()]}),window.admanAsyncInit=a,o=window.setTimeout(a,this.initTimeout)))},d).finally(()=>{clearTimeout(o),clearTimeout(u),e.removeEventListener("abort",d)})});this.onAdsReady=()=>{K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,K.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var n;K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,K.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(n=this.externalApi)!=null&&n.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var n;((n=this.adsState)!=null&&n.playbackState?Ae(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,K.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,K.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,K.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,K.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,K.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,K.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,K.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,K.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,K.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,n){this.actions=e,this.adsState=i,this.playerState=n}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){return Ft(this,null,function*(){var N,w;if(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,K.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:n,isAutoplay:o,adsContainer:a,adsVideoElement:d,slotId:r,params:u={},paramsOverride:h={},duration:f,externalApi:l}=e;this.externalApi=l;let c,v=this.playerState&&Ae(this.playerState.vsid);v&&(this.isVsidOriginal?c=v:c=parseInt(v,36));let{isEmbed:b,immediateOrigin:y}=(0,K.detectEmbed)(),g=(N=b?y:window.location.href)!=null?N:window.location.href,C=We(ct(We(ct(We({},u),{dl:encodeURIComponent(g),autoplay:o?1:0,player_width:i,player_height:n}),c?{request_id:c}:{}),{duration:f}),h);C=Object.fromEntries(Object.entries(C).filter(([A,M])=>(0,K.isNonNullable)(M)));let D={slot:r,wrapper:a,videoEl:d,videoQuality:n,params:C,browser:{mobile:!1}};try{let A=new window.AdmanHTML;if(A.onReady(this.onAdsReady),A.onStarted(this.onAdStarted),A.onPlayed(this.onAdPlayed),A.onPaused(this.onAdPaused),A.adMidrollPoint(this.onAdMidrollPoint),A.onClosed(this.onAdClosed),A.onSkipped(this.onAdSkipped),A.onClicked(this.onAdClicked),A.onTimeRemained(this.onAdTimeRemained),A.onCompleted(this.onAdCompleted),A.onError(this.onAdError),A.setDebug(!1),(w=this.externalApi)!=null&&w.videoGetAds){let M=yield this.safeExternalCall(this.externalApi.videoGetAds,C);M&&(delete D.slot,delete D.params,Object.assign(D,{json:M}))}A.init(D),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(D)}`})}catch(A){K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[(0,K.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var n,o,a;if(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(n=this.currentAdSection)!=null?n:"","force: "+e],numbers:[(0,K.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let d="Switch to video: Adman state was not updated correctly";this.log({message:d}),this.events.error$.next(d)}(a=(o=this.actions).switchFromAdsToVideo)==null||a.call(o,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,K.now)()]}),this.adsState){this.log({message:"toggle play"});let i=Ae(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(n){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,K.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,K.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,K.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,K.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,K.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,n,o,a,d,r,u,h,f,l,c;K.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,K.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(n=this.adman)==null||n.onPlayed(void 0),(o=this.adman)==null||o.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(d=this.adman)==null||d.onClosed(void 0),(r=this.adman)==null||r.onSkipped(void 0),(u=this.adman)==null||u.onClicked(void 0),(h=this.adman)==null||h.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(l=this.adman)==null||l.onError(void 0),(c=this.adman)==null||c.destroy(),this.videoElement&&(0,st.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return Ft(this,null,function*(){var n;try{return yield e(...i)}catch(o){return this.onAdError((n=o==null?void 0:o.message)!=null?n:"External call failed"),null}})}};var hd=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,vd=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Zp=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},gd=()=>!!Zp();var _d=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Ea=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let n=[],o=e.split(this.twoLinesRegExp);for(let a of o){let d={startTime:0,endTime:0,texts:[],lang:i},r=a.split(this.oneLineRegExp);for(let u of r)if(!d.startTime&&!d.endTime){let h=new Bo,{startTime:f,endTime:l}=h.parse(u);d.startTime=f,d.endTime=l}else if(u.trim()!==""){let h=new Ta,{texts:f}=h.parse(u);d.texts=[...d.texts,...f]}(d.startTime||d.endTime)&&d.texts.length>0&&n.push(d)}return n}},Bo=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(i.startTime=this.calcTime(n[1],n[2],n[3],n[4]),i.endTime=this.calcTime(n[6],n[7],n[8],n[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",n="0",o="0"){let a=Number(e)*60*60,d=Number(i)*60,r=Number(n),u=+`0.${o}`;return a+d+r+u}},Ta=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](d){let r=0,u=[];for(;r<d.length;){let h=["<",">"].reduce((f,l)=>{let c=d.indexOf(l,r);return f===-1||f>c?c:f},-1);if(h===-1){u.push(d.substring(r));break}u.push(d.substring(r,h)),r=h+1}return u}}),a=new Bo;for(let d of o)a.isTime(d)?i.texts.push({type:"timestamp",value:a.parseTime(d)}):i.texts.push({type:"text",value:d});return i}},yd=Ea;var Go=require("@vkontakte/videoplayer-shared/es2015"),Xi,Xe,Ma=0,wa=!1,bd="",Ad=(t,e=0,i=0)=>t<e&&t<i,Wo=(t,e=0,i=0)=>t>=e&&t<=i,Jp=(t,e=0,i=0)=>t>e&&t>i,xd=(t,e,i,n=!1)=>{var r;let o=(r=i.find(({id:u})=>u===e.value))==null?void 0:r.subtitles;if(n)return o==null?void 0:o.find(({startTime:h,endTime:f})=>Wo(t,h,f));let a=t>=Ma,d=t<Ma;if(Ma=t,d&&(wa=!1),(0,Go.isNonNullable)(Xi)&&Wo(t,Xi.startTime,Xi.endTime)&&bd===e.value)return Xi;if(!(0,Go.isNonNullable)(Xe)&&(o!=null&&o.length)&&!wa){Xe=o.find(({startTime:h,endTime:f})=>Wo(t,h,f)||a&&Ad(t,h,f)),Xi=void 0,!(0,Go.isNonNullable)(Xe)&&o[o.length-1].endTime<t&&(wa=!0);return}else{if(Wo(t,Xe==null?void 0:Xe.startTime,Xe==null?void 0:Xe.endTime))return Xi=Xe,Xe=void 0,bd=e.value,Xi;(a&&Jp(t,Xe==null?void 0:Xe.startTime,Xe==null?void 0:Xe.endTime)||d&&Ad(t,Xe==null?void 0:Xe.startTime,Xe==null?void 0:Xe.endTime))&&(Xe=void 0)}};var qo={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",eu:"Euskara",eo:"Esperanto"},Xp={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Sa=t=>{var e,i;return(i=(e=qo[t])!=null?e:qo[Xp[t]])!=null?i:void 0};var Ed=require("@vkontakte/videoplayer-shared/es2015"),F0=require("@vkontakte/videoplayer-statistics/es2015"),Ko=class{constructor(e,i,n,o=new Ed.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=n;this.statSubscription=o}destroy(){var e,i,n;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(n=this.mediascopePixel)==null||n.destroy(),this.statSubscription.unsubscribe()}};var fi="off";var Td=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:a,canDownload:d,callbacks:r,webApi:u,previewThumbsData:h,uiConfig:f,coreConfig:l,player:c,stopPlayer:v,looped:b=!1,statistics:y,saveRate:g,internalsExposure:C,playerId:D,metaConfig:N})=>{var us;let w=ct(We({},l),{isAudioDisabled:a,live:ct(We({},(us=l.live)!=null?us:{}),{isLiveCatchUpMode:!!n})}),A=f,M=ce.TracerFactory.createRootTracer(!1),I=M.createComponentTracer("Store"),m=c||new Be.Player(w,M,{playerId:D,onDevNullLog:r==null?void 0:r.onDevNullLog});C==null||C.expose({corePlayer:m});let U=new ce.Logger,x=new Yo(U,{loadTimeout:A.ads.loadTimeout,initTimeout:A.ads.initTimeout,runtimeTimeout:A.ads.runtimeTimeout,useAdmanFromNPM:A.ads.useAdmanFromNPM,volumeMultiplier:A.ads.volumeMultiplier,isVsidOriginal:A.ads.isVsidOriginal}),P=u==null?void 0:u.focusManager,k=U.createComponentLog("Store"),Z,ae,V={},G=new Po,F=new ce.Subscription,J="",Ee=H(!1),ee=y&&y.oneStat?Ve(y.oneStat.vsid$):ti(void 0),de=H(gd()),Y=H(!1),_e=()=>hd(document,Be.clientChecker.device.isIOS),B=H(!1),je=H([]),De=(0,ce.merge)(m.events.fatalError$,m.events.managedError$).subscribe(s=>je.update(p=>[...p,s])),ue=ti(!1,s=>{let p=m.events.fatalError$.subscribe(()=>s(!0));return()=>p.unsubscribe()}),O=s=>Ft(null,null,function*(){var q;let p=Object.values(ce.InterfaceLanguage).includes(s);if(A.downloadVKLanguages&&(p&&A.updateBuiltinLanguages||!da(s))){let ne;try{ne=yield(0,ce.loadVKLangPack)(s,Rl,Pl)}catch(ke){(q=y==null?void 0:y.oneStat)==null||q.logError({errorType:"VKLangPack",fatal:!1})}ne&&(la({language:s,pack:ne,fallback:A.defaultLanguage}),pe.set(s),le.update(ke=>ke+1))}da(s)&&pe.set(s)}),pe=H(t),le=H(0),me=H(e);O(t);let Me=(s,p)=>{let $=Ae(pe);return ua($,s,p,A.defaultLanguage)},Se=H("thumb");Se.subscribe(s=>{s==="ads"&&m.info.playbackState$.getValue()&&S()});let Ue=(()=>{let s=at([ue,Se],([p,$])=>p?"crashed":$);return ct(We({},s),{is:p=>Ae(s)===p})})(),T=H(),S=()=>{T.set({muted:m.info.muted$.getValue()})},L=H({width:0,height:0}),R=null,te=m.info.isBuffering$,se=ti(te.getValue(),s=>{let p=te.subscribe($=>{$&&R===null?R=window.setTimeout(()=>{s(te.getValue()),R=null},A.loaderDelay):s($)});return()=>{p.unsubscribe(),R&&clearTimeout(R)}});I.log("create store"),k({message:"create store"});let Ie=s=>{k({message:`init video, config: ${JSON.stringify(s)}`}),ce.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ce.now)()]}),m.initVideo(s),I.log("init video"),s.subtitles&&m.setExternalTextTracks(s.subtitles),Z=s,J=s.subtitlesForcedLanguage||""},$e=new ce.Subject,E=new ce.Subject,z=new ce.Subject,X={actionRewind$:$e,actionSeek$:E,inFullscreen$:new ce.Observable(s=>de.subscribe(p=>s.next(p))),actionSetSubtitle$:z},fe=new ce.Subject,_=new ce.Subject,Q={actionSeek$:E,actionSubtitlesSwitched$:fe,actionQuality$:_,playerSize$:new ce.Observable(s=>L.subscribe(p=>s.next(p))),inFullscreen$:new ce.Observable(s=>de.subscribe(p=>s.next(p))),isLoaderVisible$:new ce.Observable(s=>se.subscribe(p=>s.next(p)))};if(y){let{oneStat:s,thinOneStat:p,mediascopePixel:$,statSubscription:q}=y;s&&(q.add(s.attachToUi(X)),q.add(s.attachToAds(x.events)),s.authorize(o).catch(ne=>{k({message:`onestat auth error ${String(ne)}`})}),$&&$.attachTo(m)),p&&(q.add(p.attachTo(m,x.events)),q.add(p.attachToUi(Q)),q.add(p.attachToAds(x.events)),p.updateContext({isMobile:Ae(Ee)}),p.authorize(o))}let ie=()=>{if(Be.clientChecker.device.isIOS&&ae)try{vd(ae)}catch(s){k({message:`exitIosSafariFullscreen failed: ${s}`})}};F.add(m.experimental.element$.subscribe(s=>{s&&(ae=s,s.classList.add("player-media"))})).add(m.events.ended$.subscribe(()=>{var s;ie(),(s=r==null?void 0:r.onEnded)==null||s.call(r)})).add(m.events.looped$.subscribe(()=>{var s;(s=r==null?void 0:r.onLooped)==null||s.call(r)})).add(m.events.started$.subscribe(()=>Ft(null,null,function*(){var p,$;let s=m.info.muted$.getValue();(p=r==null?void 0:r.onStarted)==null||p.call(r),($=V.onStarted)==null||$.call(V,s)}))).add(m.events.willSeek$.subscribe(({from:s,to:p})=>{var $;($=r==null?void 0:r.onSeek)==null||$.call(r,s,p)})).add(m.events.autoplaySoundProhibited$.subscribe(()=>{var s;(s=r==null?void 0:r.onAutoplaySoundProhibited)==null||s.call(r)})).add(m.info.position$.subscribe(s=>{var $;let p=m.info.duration$.getValue();isFinite(p)&&p>0&&(($=r==null?void 0:r.onTimeupdate)==null||$.call(r,p,s),x.setPosition(s,p))})).add(m.events.fatalError$.subscribe(s=>{var p;(p=r==null?void 0:r.onCrashed)==null||p.call(r,s?`${s.id}: ${s.message}`:void 0)})).add(m.events.fetcherRecoverableError$.subscribe(s=>{var p;(p=r==null?void 0:r.onRecoverableError)==null||p.call(r,s?`${s.id}: ${s.message}`:void 0)})).add(m.events.loadedMetadata$.subscribe(()=>{B.set(!0)})).add(m.info.liveTime$.subscribe(s=>{var p;(p=r==null?void 0:r.onLiveTime)==null||p.call(r,s)})).add(m.info.isStalled$.subscribe(s=>{var p;(p=r==null?void 0:r.onStalledChanged)==null||p.call(r,s)})).add(m.info.isLiveEnded$.subscribe(s=>{var p;return s&&((p=r==null?void 0:r.onLiveEnded)==null?void 0:p.call(r))})).add(x.events.loadStarted$.subscribe(()=>{var s,p;return(p=(s=r==null?void 0:r.adsInfo)==null?void 0:s.onLoadStarted)==null?void 0:p.call(s)})).add(x.events.loadEnded$.subscribe(()=>{var s,p;return(p=(s=r==null?void 0:r.adsInfo)==null?void 0:s.onLoadEnded)==null?void 0:p.call(s)})).add(x.events.loadError$.subscribe(()=>{var s,p;return(p=(s=r==null?void 0:r.adsInfo)==null?void 0:s.onLoadError)==null?void 0:p.call(s)})).add(x.events.init$.subscribe(()=>{var s,p;return(p=(s=r==null?void 0:r.adsInfo)==null?void 0:s.onInit)==null?void 0:p.call(s)})).add(x.events.ready$.subscribe(()=>{var s,p;return(p=(s=r==null?void 0:r.adsInfo)==null?void 0:s.onReady)==null?void 0:p.call(s)})).add(x.events.started$.subscribe(s=>{var p,$;return($=(p=r==null?void 0:r.adsInfo)==null?void 0:p.onStarted)==null?void 0:$.call(p,s)})).add(x.events.timeRemained$.subscribe(s=>{var p,$;return($=(p=r==null?void 0:r.adsInfo)==null?void 0:p.onTimeRemained)==null?void 0:$.call(p,s)})).add(x.events.ended$.subscribe(s=>{var p,$;return($=(p=r==null?void 0:r.adsInfo)==null?void 0:p.onCompleted)==null?void 0:$.call(p,s)})).add(x.events.empty$.subscribe(()=>{var s,p;return(p=(s=r==null?void 0:r.adsInfo)==null?void 0:s.onEmpty)==null?void 0:p.call(s)})).add(x.events.clicked$.subscribe(s=>{var p,$;return($=(p=r==null?void 0:r.adsInfo)==null?void 0:p.onClicked)==null?void 0:$.call(p,s)})).add(x.events.closed$.subscribe(s=>{var p,$;return($=(p=r==null?void 0:r.adsInfo)==null?void 0:p.onClosed)==null?void 0:$.call(p,s)})).add(x.events.error$.subscribe(s=>{var p,$;return($=(p=r==null?void 0:r.adsInfo)==null?void 0:p.onError)==null?void 0:$.call(p,s)})).add(x.events.paused$.subscribe(()=>{var s,p;return(p=(s=r==null?void 0:r.adsInfo)==null?void 0:s.onPaused)==null?void 0:p.call(s)})).add(x.events.resumed$.subscribe(()=>{var s,p;return(p=(s=r==null?void 0:r.adsInfo)==null?void 0:s.onResumed)==null?void 0:p.call(s)}));let Re=ti(m.info.position$.getValue(),s=>{let p,$,q=()=>{let ne=m.info.playbackState$.getValue(),ke=m.info.isLive$.getValue(),Pe=m.info.duration$.getValue(),Oe=m.info.position$.getValue();if(ne&&[Be.PlaybackState.PLAYING,Be.PlaybackState.PAUSED].includes(ne)){let _t=ke?Oe-Pe:m.getExactTime();_t!==$&&s(_t),$=_t}p=requestAnimationFrame(q)};return q(),()=>cancelAnimationFrame(p)}),Le=Ve(m.info.playbackState$),nt=Ve(m.info.isBuffering$),Ze=at([Le,nt],([s,p])=>p?"buffering":s),lt=Ve(m.info.currentBuffer$),tt=Ve(m.info.isEnded$),mi=Ve(m.info.isLive$),Zt=A.features.playbackRate?Ve(m.info.canChangePlaybackSpeed$):ti(!1),hi=Ve(m.info.liveBufferTime$),Ai=Ve(m.info.volume$),Ui=Ve(m.info.muted$),Ci=jo(m.info.predefinedQualityLimitType$.pipe((0,ce.map)(s=>s===Be.PredefinedQualityLimits.TRAFFIC_SAVING)),m.info.predefinedQualityLimitType$.getValue()===Be.PredefinedQualityLimits.TRAFFIC_SAVING),Qe=jo(m.info.predefinedQualityLimitType$.pipe((0,ce.map)(s=>s===Be.PredefinedQualityLimits.HIGH_QUALITY)),m.info.predefinedQualityLimitType$.getValue()===Be.PredefinedQualityLimits.HIGH_QUALITY),ze=Ve(m.info.autoQualityLimitingAvailable$),ot=Ve(m.info.availableQualities$),nr=Ve(m.info.availableQualitiesFps$),en=Ve(m.info.chromecastState$),Tt=Ve(m.info.chromecastDeviceName$),et=Ve(m.info.currentFormat$),tn=Ve(m.info.throughputEstimation$),nn=Ve(m.info.videoBitrate$),Dd=Ve(m.info.intrinsicVideoSize$),Da=Ve(m.info.duration$),Ld=Ve(m.info.isAudioAvailable$),kd=()=>{R&&clearTimeout(R),R=null},ao=at([Da,mi],([s,p])=>p?-s:s),La=at([Le],([s])=>s===Be.PlaybackState.PLAYING),ka=Ve(m.info.atLiveEdge$),Ca=Ve(m.info.atLiveDurationEdge$),$a=Ve(m.info.position$),Cd=at([$a,Da],([s,p])=>isFinite(s)&&isFinite(p)&&!!p),$d=at([en],([s])=>s===Be.ChromecastState.CONNECTED),Od=Ve(m.info.availableVideoStreams$),Oa=A.features.audioLanguages?Ve(m.info.availableAudioStreams$):ti([]),Rd=Ve(m.info.currentVideoStream$),Ra=Ve(m.info.currentAudioStream$),Pd=s=>{s.language&&td(s.language),m.setVideoStream(s)},Pa=s=>{m.setAudioStream(s)},Va=s=>{let p;if(s.length===1&&(p=s.at(0)),p!=null||(p=s.find(q=>"isDefault"in q&&q.isDefault)),A.features.userVideoPrefs&&i){let q=Fo(A.userSalt,String(i));if(q!=null&&q.audioTrackId){let ne=s.find(ke=>ke.id===q.audioTrackId);p=ne!=null?ne:p}}let $=ed();return $&&(p!=null||(p=s.find(({language:q})=>$===q))),p!=null||(p=s.at(0)),p},Vd=s=>{I.log("change audio stream",{id:s});let p=m.info.availableAudioStreams$.getValue().find($=>$.id===s);p&&Pa(p)},ja=!1;F.add(m.info.availableAudioStreams$.subscribe(s=>{if(!ja&&s.length){let p=Va(s);p&&(m.setAudioStream(p),ja=!0)}})),Oa.subscribe(s=>{var p;(p=r==null?void 0:r.onAvailableAudioStreamsChanged)==null||p.call(r,s.map(({label:$="",id:q="",language:ne=""})=>({label:$,language:ne,id:q})))}),Ra.subscribe(s=>{var p;return s&&((p=r==null?void 0:r.onAudioStreamChanged)==null?void 0:p.call(r,s.id))});let Ua=!1;F.add(m.info.availableVideoStreams$.subscribe(s=>{if(!Ua&&s.length){let p=Va(s);p&&(m.setVideoStream(p),Ua=!0)}}));let so=H(void 0),za=Ve(m.info.isAutoQualityEnabled$,s=>s&&so.set(void 0)),jd=Ve(m.info.currentQuality$,()=>so.set(void 0)),Fa=at([so,jd],([s,p])=>s!=null?s:p),Ha=at(et,s=>s!==Be.VideoFormat.MPEG),Ud=at([ot,nr,za,Fa,Ha],([s,p,$,q,ne])=>{let ke=[];ne&&ke.push({value:"auto",displayValue:Me("auto_quality_option"),selected:$});let Pe=s.filter(Oe=>!(0,ce.isInvariantQuality)(Oe));for(let Oe of Pe){let _t=p[Oe];ke.push({value:Oe,displayValue:`${Oe}${_t?_d(_t):""}`,selected:$?!1:Oe===q})}return ke}),or=Ve(m.info.currentPlaybackRate$),rr=at([or,ka,Ca],([s,p,$])=>{let q=$?1:A.controls.playbackRateMin,ne=p?1:A.controls.playbackRateMax,ke=A.controls.playbackRateStep,Pe=[];for(let Oe=q;Oe<=ne;Oe+=ke)Pe.push({value:Oe,displayValue:Oe===1?Me("playback_rate_1"):Me("playback_rate",{multiplier:Oe.toString(10)}),selected:s===Oe});return Pe}),lo=()=>({displayValue:Me("subtitles_off"),value:fi,language:""}),Qa=H(lo()),$i=at([Qa,le],([s],p)=>{s.value===fi?p(lo()):p(s)}),ar=A.features.subtitles?Ve(m.info.availableTextTracks$):ti([]),Ya=Wl(),zd=at([ar,$i],([s,p],$)=>{var ke;let q=[],ne=s.find(({id:Pe})=>Pe===p.value);if(ne!=null&&ne.url){let[,Pe]=(ke=Ya.find(ne.url))!=null?ke:[];if(Pe){$(Pe);return}G.download(ne.url).then(Oe=>{if(!Oe||G.isDestroyed())return;let _t=new yd,Nn=ne.language;if(Nn){let Du=!!ne.isAuto,Lu=_t.parse(Oe,Nn);q.push({lang:Nn,subtitles:Lu,isAuto:Du,id:ne.id})}Ya.add(ne.url,q),Ae($i).value===p.value&&$(q)}).catch(()=>{var Oe;(Oe=y==null?void 0:y.oneStat)==null||Oe.logError({errorType:"Subtitles download",fatal:!1})})}$(q)}),Fd=at([or,La,$i],([s,p,$],q)=>{let Pe;if(m.info.isLive$.getValue()&&p&&$.value!==fi){let _t=()=>{let Nn=1e3/(3*s);Pe=setTimeout(_t,Nn),q(Date.now())};return _t(),()=>clearTimeout(Pe)}}),Ba=at([ar,$i],([s,p])=>{if(!s.length)return[];let $=[];for(let{language:q,isAuto:ne,id:ke}of s){let Pe=q&&Sa(q);q&&Pe&&$.push({displayValue:ne?Me("subtitles_auto",{language:Pe}):Pe,value:ke,selected:(p==null?void 0:p.value)===ke,isAuto:ne,language:q})}return $.length?($.unshift(ct(We({},lo()),{selected:(p==null?void 0:p.value)===fi})),$):[]}),Sn={available:[],prev:[]},Hd=()=>{var p,$;let s=m.experimental.getCurrentTime$.getValue();return($=(p=s==null?void 0:s())!=null?p:ae==null?void 0:ae.currentTime)!=null?$:0},Qd=at([Re,$i,zd,Fd],([s,p,$,q])=>{var ke;let ne=m.info.isLive$.getValue();if(ne&&Sn.prev!==$){let Pe=$.find(({id:_t})=>_t===p.value),Oe=Sn.prev.find(({id:_t})=>_t===p.value);if(Pe){let _t=ct(We({},Pe),{subtitles:[...(ke=Oe==null?void 0:Oe.subtitles)!=null?ke:[],...Pe.subtitles]});Sn.available=[_t],Sn.prev=$}}if(p&&p.value!==fi){let Pe=ne?Hd():s,Oe=ne?Sn.available:$;return xd(Pe,p,Oe,ne)}}),Yd=at([Qd],([s])=>s!=null&&s.texts?s.texts:[]);F.add($i.subscribe(s=>{var p,$;if(s.value===fi)(p=r==null?void 0:r.onSubtitleOff)==null||p.call(r);else{let q=Object.entries(qo).find(([ne,ke])=>ke===s.displayValue);($=r==null?void 0:r.onSubtitleOn)==null||$.call(r,q?q[0]:"",s.value)}}));let Bd=H(!0),Wd=at([lt,ao,$a,hi],([s,p,$,q])=>{var Oe;let ne=(Oe=s==null?void 0:s.end)!=null?Oe:0;if(!q)return ne/p;let Pe=-$+q-p;return(ne-Pe)/p}),Wa=Ve(m.info.availableSources$),Gd=at([Wa],([s])=>Object.keys((s==null?void 0:s[Be.VideoFormat.MPEG])||{}).length>0),qd=()=>{var $,q,ne;let s=Object.keys(((q=($=m.info.availableSources$)==null?void 0:$.getValue())==null?void 0:q[Be.VideoFormat.MPEG])||{}),p=(0,ce.getHighestQuality)(s)||ce.VideoQuality.Q_144P;return(ne=Z.sources[Be.VideoFormat.MPEG])==null?void 0:ne[p]},Kd=()=>{var p;let s=qd();if(s)I.log("download video",{url:s}),Bl(s,((p=Z==null?void 0:Z.meta)==null?void 0:p.title)||"video");else{let $="There is no URL for download video";I.log("download video",{message:$}),k({message:$})}},Zd=()=>{k({message:"toggle muted"});let s=m.info.muted$.getValue();m.info.volume$.getValue()===0&&!s?lr(sr()):In(!s)},Jd=()=>{qe.ui.settingsMenu.visible$.set(!1),I.log("close settings menu")},Xd=(s,p=()=>Promise.resolve())=>Ft(null,null,function*(){qe.ui.settingsMenu.visible$.set(!0),yield p(),I.log("open settings menu",{wasOpenedByKeyboard:s})}),sr=()=>{var p;let s=Math.max(A.volumeMinRestore,(p=Uo())!=null?p:0);return s===0?A.volumeDefault:s},lr=s=>{let p=s===0?sr():s,$=m.info.muted$.getValue();k({message:`set volume, volume: ${s}, preferredVolume: ${p}`});let q=!a||Ue.is("ads");$&&s>0&&q&&($=!1),m.setVolume(s,$),x.setVolume(s)},In=s=>{let p=m.info.volume$.getValue();k({message:`set muted, currentVolume: ${p}, mute: ${s}`});let $=Ue.is("ads");if(m.setMuted(s,$),x.setVolume(s?0:p),!s&&p===0){let q=sr();m.setVolume(q),x.setVolume(q)}},Ga=H(!1),qa=s=>{I.log("set looped",{isLooped:s}),Ga.set(s),m.setLooped(s)};qa(b);let eu=()=>{m.prepare()},tu=()=>{(0,ce.assertNonNullable)(qe);let s=Ae(qe.playerPhase),p={playerPhase:s,isVideoEnded:!1,action:"none"};if(k({message:"toggle play"}),s==="ads"){p.action="play",I.log("toggle adman play",p),x.togglePlay();return}let $=()=>{var ne;k({message:"toggle play, call player.play"}),p.action="play",m.play(),(ne=r==null?void 0:r.onPlay)==null||ne.call(r)},q=()=>{var ne;k({message:"toggle play, call player.pause"}),p.action="pause",m.pause(),(ne=r==null?void 0:r.onPause)==null||ne.call(r)};m.info.isEnded$.getValue()?(k({message:"toggle play, video ended, seek to 0"}),$e.next(),E.next(Tn.SeekAction.REWIND),m.seekTime(0),$()):m.info.playbackState$.getValue()!==Be.PlaybackState.PLAYING?$():q(),I.log("toggle play",p)},Ka=(s,{byUser:p=!1}={})=>{k({message:`set quality, quality: ${s}`}),I.log("set quality",{quality:s}),p&&_.next(s),m.setAutoQuality(s==="auto"),zo(),s!=="auto"&&(oa(i,s),so.set(s),m.setQuality(s))},Za=s=>{k({message:`set trafficSavingEnabled, value: ${s}`}),I.log("set traffic saving enabled",{trafficSavingEnabled:s});let p=s?Be.PredefinedQualityLimits.TRAFFIC_SAVING:Be.PredefinedQualityLimits.UNKNOWN;m.setPredefinedQualityLimits(p)},Ja=s=>{k({message:`set highQualityEnabled, value: ${s}`}),I.log("set high quality enabled",{highQualityEnabled:s}),iu(s?Be.PredefinedQualityLimits.HIGH_QUALITY:Be.PredefinedQualityLimits.UNKNOWN)},iu=s=>{m.setPredefinedQualityLimits(s)},dr=(s,p=!0)=>{I.log("set playback rate",{playbackRate:s}),m.setPlaybackRate(s),A.features.saveRate&&g&&!m.info.isLive$.getValue()&&p&&id(s)},nu=()=>{let s=Ae(Zt),p=Ae(rr),$=p.findIndex(({selected:ne})=>ne);if($===p.length-1||!s)return p[$];let q=p[$+1];return dr(q.value),q},ou=()=>{let s=Ae(Zt),p=Ae(rr),$=p.findIndex(({selected:ne})=>ne);if($===0||!s)return p[$];let q=p[$-1];return dr(q.value),q},ur=(s=ct(We({},lo()),{selected:!1}))=>{I.log("set subtitles",We({},s)),s.value!==fi&&z.next(s.isAuto?s.value+"_auto":s.value),fe.next({enabled:s.value!==fi,lang:s.language,auto:!!s.isAuto}),Qa.set(s)},Xa=s=>{I.log("toggle subtitles");let p=Ae($i);(p==null?void 0:p.value)===fi?es(s):ts()},ru=(s,p)=>{I.log("change subtitle",{enabled:s}),s?es(!0,p):ts()},es=(s,p)=>{I.log("subtitle on");let $=Ae(Ba),q=Ae(pe),ne=J!=null?J:q,ke;p&&(ke=$.find(Pe=>Pe.value===p)),ke!=null||(ke=$.filter(Pe=>Pe.value!==fi).find(Pe=>Pe.language===ne)),ur(ke!=null?ke:$[1])},ts=()=>{I.log("subtitle off"),ur(void 0)};F.add(m.info.availableTextTracks$.subscribe(s=>{var $;function p(){let q=[];for(let{language:ne,isAuto:ke,id:Pe}of s){let Oe=ne&&Sa(ne);ne&&Oe&&q.push({id:Pe,language:ne,title:ke?Me("subtitles_auto",{language:Oe}):Oe})}return q}($=r==null?void 0:r.onAvailableSubtitlesChanged)==null||$.call(r,p())}));let is=H(!0),ns=s=>{is.set(s)},os=(s,p,$=!0)=>{var q;if(k({message:`seek to time, time: ${s}`}),I.log("seek to time",{time:s,action:p,forcePrecise:$}),E.next(p),m.info.isLive$.getValue()){let ne=m.info.duration$.getValue(),ke=Math.min(0,ne+s);m.seekTime(ke,$)}else m.info.isEnded$.getValue()&&(k({message:"seek after ended, call callbacks.onPlay"}),(q=r==null?void 0:r.onPlay)==null||q.call(r)),m.seekTime(s,$)},rs=(s,p,$=!1)=>{k({message:`seek to percent, percent: ${s}`}),I.log("seek to percent",{percent:s,action:p});let q=Ae(ao)*s;os(q,p,$)},au=s=>{k({message:`seek external, time: ${s}`}),I.log("seek external",{time:s}),E.next(Tn.SeekAction.UNKNOWN),m.seekTime(m.info.isLive$.getValue()?-s:s)},su=s=>{var q,ne;let p=(q=s.max)!=null?q:"none",$=(ne=s.min)!=null?ne:"none";k({message:`set auto quality limitation. Max: ${p}. Min: ${$}`}),I.log("set auto quality limits",{max:p,min:$}),m.setAutoQualityLimits(s)},lu=s=>{k({message:`set playback rate to: ${s}`}),I.log("set playback rate external",{playbackRate:s}),m.setPlaybackRate(s)},cr=H(void 0),pr=H(!1),du=s=>{k({message:`start scrubbing, progress: ${s}`}),I.log("start scrubbing",{progress:s}),pr.set(!0),as(s)},as=s=>{cr.set(s)},uu=()=>{cr.set(void 0),pr.set(!1)},cu=(s,p=!1)=>{k({message:`complete scrubbing, progress: ${s}`}),I.log("complete scrubbing",{progress:s}),rs(s,Tn.SeekAction.SLIDER,p),uu()},pu=at([Re,ao,cr],([s,p,$],q)=>{q((0,ce.isNonNullable)($)?$*p:s)}),fr=H(!1),fu=()=>{fr.set(!0)},mu=()=>{fr.set(!1)},hu=s=>{E.next(Tn.SeekAction.LIVE),k({message:"live switch to low latency "+s}),I.log("live switch to low latency "+s),m.setLiveLowLatency(s)},vu=()=>{E.next(Tn.SeekAction.LIVE),k({message:"switch to active live"}),I.log("switch to active live"),m.seekTime(0),m.info.playbackState$.getValue()!==Be.PlaybackState.PLAYING&&qe.actions.internal.togglePlay()},gu=()=>{I.log("skip adman"),x.skip()},_u=(s=!0)=>{var q;(0,ce.assertNonNullable)(qe),k({message:`switch from ads to video, callPlay: ${s}`}),I.log("switch from ads to video",{callPlay:s}),Se.set("video"),s&&m.play(),a&&In(!0);let p=(q=Ae(T))==null?void 0:q.muted,$=!m.info.muted$.getValue();p!==void 0&&!$&&In(p),T.set(void 0)},yu=()=>{(0,ce.assertNonNullable)(qe),k({message:"switch from video to ads"}),I.log("switch from video to ads"),qe.actions.internal.pause(),ie(),Se.set("ads")},bu=s=>{(0,ce.assertNonNullable)(qe);let p=s?"LiveWaitingStart":"thumb";I.log("set live waiting start",{state:s,playerPhase:p}),Se.set(p)},Au=s=>{(0,ce.assertNonNullable)(qe);let p=s?"LiveWaitingRecover":"thumb";I.log("set live waiting recover",{state:s,playerPhase:p}),Se.set(p)},xu=s=>{(0,ce.assertNonNullable)(qe);let p=s?"LiveWaitingRecord":"thumb";I.log("set live waiting record",{state:s,playerPhase:p}),Se.set(p)},Eu=()=>((0,ce.assertNonNullable)(qe),I.log("get debug text data"),Ql(m,Z,qe,M.getTraceId(),N)),Tu=()=>((0,ce.assertNonNullable)(qe),JSON.stringify(M.getFinishedSpans())),Mu=()=>((0,ce.assertNonNullable)(qe),Yl(m,Z,qe)),wu=()=>ae,ss=s=>{var $;if((0,ce.assertNonNullable)(qe),m.info.isEnded$.getValue())return;let p=!s;if(Ae(qe.playerPhase)==="ads"){k({message:`pause ads, internalCall: ${p}`}),I.log("pause ads",{internalCall:p}),x.pause();return}k({message:`pause video, internalCall: ${p}`}),I.log("pause video",{internalCall:p}),p&&(($=r==null?void 0:r.onPause)==null||$.call(r)),m.pause()},ls=s=>{var $;(0,ce.assertNonNullable)(qe);let p=!s;if(Ae(qe.playerPhase)==="ads"){k({message:`play ads, internalCall: ${p}`}),I.log("play ads",{internalCall:p}),x.play();return}k({message:`play video, internalCall: ${p}`}),I.log("play video",{internalCall:p}),p&&(($=r==null?void 0:r.onPlay)==null||$.call(r)),m.play()},Su=s=>{(0,ce.assertNonNullable)(qe);let p=!s;if(Ae(qe.playerPhase)==="ads"){k({message:"player cannot be stopped during ads via external method"});return}k({message:`player will be stopped, internalCall: ${p}`}),v==null||v()},ds=(s,p)=>{(0,ce.assertNonNullable)(qe),k({message:`first start, show ads: ${s}, internalCall: ${!p}`}),I.log("first start",{showAds:s,external:p}),s?Se.set("ads"):(Se.set("video"),p?m.play():qe.actions.internal.togglePlay())},Iu=()=>(k({message:"getting preview thumbs data"}),I.log("get preview thumbs data",We({},h)),h),Nu=()=>{I.log("destroy store"),F.unsubscribe(),m.destroy(),x.destroy(),y==null||y.destroy(),De.unsubscribe(),G.destroy()},qe={interfaceLanguage$:pe,isCyrillicRelatedInterface$:me,initVideo:Ie,videoId:i,playerPhase:Ue,vsid:ee,state:{positionExact$:Re,positionWithScrubbing$:pu,duration$:ao,playbackState$:Le,playbackStateRealistic$:Ze,isPlaying$:La,isLoaderVisible:se,bufferedProgress$:Wd,isLive$:mi,canChangePlaybackSpeed$:Zt,isActiveLive$:ka,isOldestAvailableLive$:Ca,isRewindableLive$:Cd,isEnded$:tt,muted$:Ui,volume$:Ai,trafficSavingEnabled$:Ci,highQualityEnabled$:Qe,autoQualityLimitingAvailable$:ze,availableVideoStreams$:Od,availableAudioStreams$:Oa,videoStream$:Rd,audioStream$:Ra,currentQuality$:Fa,isAutoQualityEnabled$:za,availableQualities$:Ud,currentPlaybackRate$:or,availablePlaybackRates$:rr,currentSubtitle$:$i,availableTextTracks$:ar,availableSubtitlesList$:Ba,currentSubtitleCaptions$:Yd,isAutoSubtitleCaptionVisible$:Bd,chromecastState$:en,chromecastDeviceName$:Tt,chromecastConnected$:$d,currentFormat$:et,throughputEstimation$:tn,videoBitrate$:nn,videoSize$:Dd,errorLog$:je,crashed$:ue,isAudioAvailable$:Ld,isAudioDisabled:!!a,canDownload:A.features.download&&!!d,availableSources$:Wa,hasMpegSources$:Gd,looped$:Ga,loadedMetadata$:B,isAutoQualityAvailable$:Ha},ui:{t:Me,controlsVisible:H(!1),touched:H(!1),controls:{prevButton:H(void 0),playButton:H(void 0),replayButton:H(void 0),nextButton:H(void 0),playPrevChapterButton:H(void 0),seekToInteractiveButton:H(void 0),interactiveGraphButton:H(void 0),liveButton:H(void 0),time:H(void 0),episodes:H(void 0),volume:H(void 0),subtitles:H(void 0),settings:H(void 0),context:H(void 0),chromecast:H(void 0),pip:H(void 0),fullscreen:H(void 0),vkLogo:H(void 0),interactiveTimeIndicator:H(void 0),timeline:H(void 0),autoplayNextToggle:H(void 0)},modals:{hotKeyMap:{show:H(!1),data:H({title:"",closeBtnText:"",groups:[]})}},isFullscreen:de,isFullscreenOpenedByKeyboard:Y,isAutoplay:H(!1),debugPanelVisible:H(!1),episodes:{panelOpened$:H(!1),openedByKeyboard$:H(!1)},contextMenu:{visible$:H(!1),btnRef$:H(void 0),openedByBtnKeyboard$:H(!1),openedByHotKey$:H(!1),lastActiveElem$:H(void 0),showContextMenuBtn$:H(!1),position$:H({top:0,left:0})},playerSize:L,isMobile:Ee,icon3DVideoVisible:H(!1),scrubbingInProgress:pr,volumeChangingInProgress:fr,interactiveHideMobileControls:H(!1),overlayContainer$:H(void 0),startedByKeyboard$:H(!1),autoplayNextEnabled$:H(!1),timerNextVideoRunning$:H(!0),settingsMenu:{visible$:H(!1),ref$:H(void 0),openedByBtnKeyboard$:H(!1)},settingsSubMenu:{visible$:H(!1),ref$:H(void 0),name$:H(void 0)},userActionsDisabled:H(!1),hiddenControls:{volume:H(!1),vkLogo:H(!1),pip:H(!1),chromecast:H(!1),settings:H(!1)},isControlsAvailable:is,controlBlocks:{topLeft:H(void 0),topRight:H(void 0),middle:H(void 0),bottom:H(void 0),bottomLeft:H(void 0),bottomRight:H(void 0)},videoTitleInfo:H(void 0),previewTrackNotificationVisible:H(!1)},ads:{position:H(0),duration:H(0),playbackState:H("inactive"),canSkip:H(!1),secondsToWatchBeforeSkip:H(0),postrollPassed:H(!1)},webApi:{focusManager:P},actions:{internal:{preload:eu,firstStart:s=>ds(s,!1),play:()=>ls(!1),pause:()=>ss(!1),togglePlay:tu,toggleMuted:Zd,openSettingsMenu:Xd,closeSettingsMenu:Jd,setVolume:s=>lr(s),setMuted:s=>In(s),startVolumeChanging:fu,stopVolumeChanging:mu,setVideoStream:Pd,setAudioStream:s=>Pa(s),setQuality:(s,p)=>Ka(s,p),setTrafficSavingEnabled:s=>Za(s),setHighQualityEnabled:s=>Ja(s),setPlaybackRate:dr,incrementPlaybackRate:nu,decrementPlaybackRate:ou,setSubtitle:s=>ur(s),toggleSubtitle:()=>Xa(!1),startScrubbing:du,progressScrubbing:as,completeScrubbing:cu,switchToActiveLive:vu,switchFromAdsToVideo:_u,switchFromVideoToAds:yu,skipAd:gu,setLiveWaitingStart:bu,setLiveWaitingRecover:Au,setLiveWaitingRecord:xu,getDebugTextData:Eu,getTraceTextData:Tu,getDebugPanelData:Mu,getVideoElement:wu,seekTime:(s,p,$)=>os(s,p,$),clearDelayedBufferingCheckTimeout:kd,seekToPercent:rs,getPreviewThumbsData:Iu,downloadVideo:Kd,addLanguage:la,setLanguage:O,setLooped:qa,checkFullscreenSupport:_e},external:{firstStart:s=>ds(s,!0),play:()=>ls(!0),pause:()=>ss(!0),stop:()=>Su(!0),seekTime:s=>au(s),setPlaybackRate:s=>lu(s),setAutoQualityLimits:s=>su(s),setMuted:s=>In(s),toggleSubtitle:()=>Xa(!0),changeSubtitle:ru,setVolume:s=>lr(s),setLiveLowLatency:hu,hideControls:()=>ns(!1),showControls:()=>ns(!0),setQuality:s=>Ka(s),setTrafficSavingEnabled:s=>Za(s),setHighQualityEnabled:s=>Ja(s),changeAudioStream:Vd}},callbacks:r,setUiCallbacks:s=>{V=We({},s)},getAdmanWrapper:()=>x,getLogger:()=>U,getPlayer:()=>m,destroy:Nu};return qe};var tr=require("@vkontakte/videoplayer-shared/es2015"),zt=require("@vkontakte/videoplayer-shared/es2015"),Nd=require("@vkontakte/videoplayer-core/es2015"),Mn=require("@vkontakte/videoplayer-statistics/es2015");function ro(t,e){var o,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),n={};for(let d of i)n[d]=(a=(o=e[d])!=null?o:t[d])!=null?a:void 0;return n}var Xo=require("@vkontakte/videoplayer-shared/es2015");var Zo=class{constructor(e){this.getActiveElement=e;this.focusableElements=[];this.isActive=!1;this.handleTabKey=e=>{if(this.updateFocusableElements(),!this.focusableElements.length)return;let i=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1],o=this.getActiveElement();e.shiftKey&&o===i?(e.preventDefault(),n.focus()):!e.shiftKey&&o===n&&(e.preventDefault(),i.focus())}}activate(){this.isActive||(document.addEventListener("keydown",this.handleTabKey),this.isActive=!0)}deactivate(){this.isActive&&(document.removeEventListener("keydown",this.handleTabKey),this.isActive=!1,this.focusableElements=[])}updateFocusableElements(){this.isActive&&(this.focusableElements=this.getFocusableElements())}getFocusableElements(){let e=["button:not([disabled])","[href]:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])'].join(", ");return Array.from(this.container.querySelectorAll(e)).filter(i=>!i.disabled&&i.offsetParent!==null)}destroy(){this.deactivate()}setContainer(e){this.container=e}};var Jo=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.focusLock=new Zo(()=>this.lastFocusedNode),this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange),this.focusLock.destroy()}getLastFocusedNode(){return this.lastFocusedNode}activateLock(){this.focusLock.activate()}deactivateLock(){this.focusLock.deactivate()}setContainerForFocusLock(e){this.focusLock.setContainer(e)}};var Md=require("@vkontakte/videoplayer-shared/es2015"),Ia=(0,Md.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var ef=Object.defineProperty,wd=Object.getOwnPropertySymbols,tf=Object.prototype.hasOwnProperty,nf=Object.prototype.propertyIsEnumerable,Na=(t,e,i)=>e in t?ef(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Sd=(t,e)=>{for(var i in e||(e={}))tf.call(e,i)&&Na(t,i,e[i]);if(wd)for(var i of wd(e))nf.call(e,i)&&Na(t,i,e[i]);return t},Ke=(t,e,i)=>Na(t,typeof e!="symbol"?e+"":e,i),of=(t,e,i)=>new Promise((n,o)=>{var a=u=>{try{r(i.next(u))}catch(h){o(h)}},d=u=>{try{r(i.throw(u))}catch(h){o(h)}},r=u=>u.done?n(u.value):Promise.resolve(u.value).then(a,d);r((i=i.apply(t,e)).next())}),rf={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:zt.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,isTouch:!1,isAudioDisabled:!1,tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showNextPrevButtons:!1},Id=He(void 0),er=class extends Ia{constructor(){super(),Ke(this,"svelteStubComponent"),Ke(this,"svelteRootComponent"),Ke(this,"svelteErrorComponent"),Ke(this,"store"),Ke(this,"statistics"),Ke(this,"_shadowRoot"),Ke(this,"playerContainer"),Ke(this,"rootContainer"),Ke(this,"stateContainer"),Ke(this,"shadowRootContainer"),Ke(this,"playerId"),Ke(this,"uiConfig"),Ke(this,"coreConfig"),Ke(this,"statisticsConfig"),Ke(this,"metaConfig"),Ke(this,"currentPlayingVideoIndex",0),Ke(this,"videoConfig"),Ke(this,"subscription"),Ke(this,"focusManager"),Ke(this,"prevIsid"),Ke(this,"isInited",!1),Ke(this,"postponedInitParams",null),Ke(this,"internalsExposure",null),Ke(this,"fatalError$",new tr.ValueSubject(null)),Ke(this,"createOneStat",(e,i={})=>{if(!this.videoConfig)return;let{albumId:n,statPlace:o,statUserSalt:a,statTrackCode:d,statVKAppId:r,refreshStatAuthToken:u,autoplay:h,isTouch:f,refDomain:l,deviceId:c}=ro(this.videoConfig,i),{unitedVideoId:v,isClip:b=!1}=e;if(this.uiConfig.features.statistics&&v)try{return new Mn.OneStat({movieId:v,albumId:n,place:o,trackCode:d,vkAppId:r,autoplay:h!=null?h:!1,mobile:f,clip:b,refDomain:l,deviceId:c,isPreviewPlayerView:!1},{refreshAuthToken:u,userSalt:a,config:this.statisticsConfig})}catch(g){console.error(g)}}),this.subscription=new zt.Subscription,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Pi(xa,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let n=(e=this.getAttribute("stub-title"))!=null?e:void 0,o=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=St({title:n,thumbUrl:o}),d={target:this.playerContainer,props:a};this.svelteStubComponent=Pi(Aa,d),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}disconnectedCallback(){var e,i;(e=this.focusManager)==null||e.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),(i=this.internalsExposure)==null||i.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.stateContainer=document.createElement("div"),this.stateContainer.className="state-container",this.stateContainer.style.width="1px",this.stateContainer.style.height="1px",this.stateContainer.style.position="absolute",this.stateContainer.style.backgroundColor="transparent",this.stateContainer.style.left="-100000px",this.append(this.rootContainer),this.append(this.stateContainer)}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:n,preload:o,refreshStatAuthToken:a}=ro(this.videoConfig,i),{unitedVideoId:d}=e;if(this.uiConfig.features.thinStatistics&&d)return new Mn.ThinOneStat.ThinOneStat({deviceId:n,movieId:d,preload:o,isPreviewPlayerView:!1},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},n){var o;if(!this.videoConfig)return;let{statAuthToken:a,preload:d,autoplay:r,volume:u,muted:h,fromTime:f,canRewindLive:l,supportLink:c,showAds:v,adsSlotId:b,adsParams:y={},adsAutoplayParam:g,interfaceLanguage:C,isCyrillicRelatedInterface:D,isAudioDisabled:N,isLiveCatchUpMode:w,fullScreenTarget:A,failoverHosts:M,canDownload:I,callbacks:m,saveRate:U,volumeMultiplier:x,showEndScreen:P,mediascopePixels:k}=ro(this.videoConfig,i),{sources:Z,title:ae,thumbUrl:V,unitedVideoId:G,duration:F,adsParams:J={},previewThumbsData:Ee,subtitles:ee,subtitlesForcedLanguage:de,live:Y,adsExternalApi:_e}=e;if(!Z&&!Y){let le=new Error("empty sources and live");this.fatalError$.next(le),(o=m==null?void 0:m.onCrashed)==null||o.call(m,le.message);return}let B=Sd(Sd({},y),J),je={focusManager:this.focusManager},De=this.createOneStat(e,i),ue=this.createThinOneStat(e,i),O;k&&(O=new Mn.MediascopePixel({pixels:k})),(De||ue)&&(this.statistics=new Ko(De,ue,O)),this.store=Td({player:n,interfaceLanguage:C,isCyrillicRelatedInterface:D,videoId:G,isLiveCatchUpMode:w,isAudioDisabled:N,statAuthToken:a,callbacks:m,webApi:je,previewThumbsData:Ee,canDownload:I,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,saveRate:U,stopPlayer:()=>this.stop(),statistics:this.statistics,internalsExposure:this.internalsExposure,playerId:this.playerId});let pe=()=>{var le,me,Me,Se,Ue,T;if(!this.store||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(L=>{var R;return(R=m==null?void 0:m.onCurrentFormatChanged)==null?void 0:R.call(m,L)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(L=>{var R;return(R=m==null?void 0:m.onThroughputEstimationChanged)==null?void 0:R.call(m,L)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(L=>{var R;return(R=m==null?void 0:m.onTrafficSavingEnabledChanged)==null?void 0:R.call(m,L)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(L=>{var R;return(R=m==null?void 0:m.onHighQualityEnabledChanged)==null?void 0:R.call(m,L)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(L=>{var R;return(R=m==null?void 0:m.onAutoQualityEnabledChanged)==null?void 0:R.call(m,!!L)})),this.subscription.add(new zt.Observable(L=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(R=>L.next(R)))}).pipe((0,zt.skip)(1)).subscribe(L=>{var R;return(R=m==null?void 0:m.onCurrentPlaybackRateChanged)==null?void 0:R.call(m,L)})),this.subscription.add(this.store.state.volume$.subscribe(L=>{var R;return(R=m==null?void 0:m.onVolumeChange)==null?void 0:R.call(m,L)})),this.subscription.add(this.store.state.muted$.subscribe(L=>{var R,te,se,Ie;if(L)(R=m==null?void 0:m.onMute)==null||R.call(m);else{let $e=(se=((te=this.store)==null?void 0:te.state.volume$)&&Ae(this.store.state.volume$))!=null?se:0;(Ie=m==null?void 0:m.onUnmute)==null||Ie.call(m,$e)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(L=>{var R;return(R=m==null?void 0:m.onVideoBitrateChanged)==null?void 0:R.call(m,L)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(L=>{var R;return(R=m==null?void 0:m.onVSIDChanged)==null?void 0:R.call(m,L)})),Ne(Id,{sources:Z,store:this.store,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ae,thumbUrl:V,subtitles:ee,subtitlesForcedLanguage:de,live:Y,preload:d,autoplay:r,muted:h,volume:u,fromTime:f,canRewindLive:l,supportLink:c,showAds:v,adsSlotId:b,adsParams:B,adsAutoplayParam:g,duration:F,failoverHosts:M,fullScreenTarget:A,saveRate:U,shadowRootContainer:this.shadowRootContainer,outerContainerRef:this.rootContainer,volumeMultiplier:x,showEndScreen:P,adsExternalApi:_e,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let S={target:this.playerContainer,props:j(Id)};this.svelteRootComponent=Pi(ya,S),this.isInited||(this.isInited=!0,(Me=(me=(le=this.videoConfig)==null?void 0:le.callbacks)==null?void 0:me.onInited)==null||Me.call(me)),(Se=this.internalsExposure)==null||Se.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig}),this.uiConfig.devNullLog&&((T=(Ue=this.videoConfig)==null?void 0:Ue.callbacks)!=null&&T.onDevNullLog)?Xo.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Xo.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Nd.clientChecker.isInited$.subscribe(le=>{le&&(console.log("UI TV SDK async start"),pe())}):pe()}initPlayer(e,i={}){var n,o,a,d,r,u,h,f,l,c,v,b,y;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0){let g=new Error("empty videos");this.fatalError$.next(g),(o=(n=e.callbacks)==null?void 0:n.onCrashed)==null||o.call(n,g.message);return}else this.fatalError$.next(null);this.videoConfig=ro(rf,(0,zt.cloneDeepWith)(e,g=>g instanceof Ia?g:void 0)),this.playerId=(0,zt.getPlayerId)(e.playerId),this.uiConfig=$l((a=i.ui)!=null?a:{}),this.coreConfig=(d=i.core)!=null?d:{},this.statisticsConfig=(r=i.statistics)!=null?r:{},this.metaConfig=i.meta,this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new zt.InternalsExposure("ui",this.playerId))),Xo.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((h=this.videoConfig)==null?void 0:h.showAds)],numbers:[(0,tr.now)()]}),(f=this.videoConfig).autoplay&&(f.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(l=this.uiConfig.ads.enable)!=null?l:this.videoConfig.showAds,this.videoConfig.adsSlotId=(c=this.uiConfig.ads.slot)!=null?c:this.videoConfig.adsSlotId,(v=this.videoConfig).canRewindLive&&(v.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(b=this.videoConfig.supportLink)!=null?b:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((y=this.videoConfig.videos)!=null&&y[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.focusManager=this._shadowRoot?new Jo(this._shadowRoot):void 0,this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex])}play(){var e,i,n,o;(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(n=this.store)!=null&&n.playerPhase.is("LiveWaitingRecord")||(o=this.svelteRootComponent)==null||o.play()}pause(){var e;(e=this.svelteRootComponent)==null||e.pause()}stop(){if(!this.videoConfig)return;this.unmountComponent(this.svelteStubComponent);let e=this.videoConfig.videos[0];e&&(this.unmountComponent(this.svelteRootComponent),this.createPlayer(e))}setMuted(e){var i;(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var n;(n=this.svelteRootComponent)==null||n.changeSubtitle(e,i)}setVolume(e){var i;(i=this.svelteRootComponent)==null||i.setVolume(e)}seekTime(e){var i;(i=this.svelteRootComponent)==null||i.seekTime(e)}setPlaybackRate(e){var i;(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i;(i=this.svelteRootComponent)==null||i.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return of(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,n;this.isLiveTailPlaying()||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:n}=i;return n.canPlayLiveTailBuffer$.getValue()&&!n.isStalled$.getValue()&&!n.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let n=this.isLiveTailPlaying(),o=e||!n,a=()=>{var d;(d=this.store)==null||d.actions.internal.setLiveWaitingRecover(!0)};o&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var d;o||a(),(d=this.store)==null||d.destroy()})}setLiveWaitingRecord(){var e;let n=!this.isLiveTailPlaying(),o=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};n&&o(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;n||o(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=!this.isLiveTailPlaying(),a=()=>{var d,r;(d=this.store)==null||d.actions.internal.setLiveWaitingRecover(!1),(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(o){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}setLiveLowLatency(e){var i;(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,n;return(n=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?n:void 0}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Xn(e)}};var wn=require("@vkontakte/videoplayer-shared/es2015"),ir=require("@vkontakte/videoplayer-core/es2015"),af=()=>{window.customElements.define("vk-video-player-tv",er)};
|
|
52
|
+
Audio: ${(ee=N(r).audioCodec||"")!=null?ee:""} ${N(r).audioLanguage?`(${N(r).audioLanguage})`:""}`)}),J(G,re)};De(g,G=>{(N(r).videoCodec||N(r).audioCodec)&&G(R)})}var U=ne(g,2);{var O=G=>{var re=tp(),fe=ne(B(re),2),Ce=B(fe,!0);H(fe),H(re),ye(()=>Ne(Ce,N(r).viewport)),J(G,re)};De(U,G=>{N(r).viewport&&G(O)})}var P=ne(U,2);{var z=G=>{var re=ip(),fe=ne(B(re),2),Ce=B(fe,!0);H(fe),H(re),ye(()=>Ne(Ce,N(r).videoSize)),J(G,re)};De(P,G=>{N(r).videoSize&&G(z)})}var Q=ne(P,2);{var ce=G=>{var re=np(),fe=ne(B(re),2),Ce=B(fe,!0);H(fe),H(re),ye(()=>Ne(Ce,N(r).cdn)),J(G,re)};De(Q,G=>{N(r).cdn&&G(ce)})}var X=ne(Q,2);{var ie=G=>{var re=rp(),fe=ne(B(re),2),Ce=B(fe);H(fe),H(re),ye(()=>{var w;return Ne(Ce,`${(w=N(r).volume)!=null?w:""} %`)}),J(G,re)};De(X,G=>{N(r).volume&&G(ie)})}var Y=ne(X,2);{var be=G=>{var re=op(),fe=ne(B(re),2),Ce=B(fe);H(fe),H(re),ye(w=>Ne(Ce,`${w!=null?w:""} s`),[()=>N(r).position.toFixed(2)]),J(G,re)};De(Y,G=>{N(r).position&&G(be)})}var q=ne(Y,2);{var He=G=>{var re=ap(),fe=ne(B(re),2),Ce=B(fe);H(fe),H(re),ye(w=>Ne(Ce,`${w!=null?w:""} s`),[()=>N(r).buffer.toFixed(2)]),J(G,re)};De(q,G=>{N(r).buffer&&G(He)})}var ae=ne(q,2);{var _e=G=>{var re=sp(),fe=ne(B(re),2),Ce=B(fe);H(fe),H(re),ye(w=>Ne(Ce,`${w!=null?w:""} s`),[()=>N(r).nativeBuffer.toFixed(2)]),J(G,re)};De(ae,G=>{N(r).nativeBuffer&&G(_e)})}var j=ne(ae,2);{var Se=G=>{var re=lp(),fe=ne(B(re),2),Ce=B(fe);H(fe),H(re),ye(w=>Ne(Ce,`${w!=null?w:""} s`),[()=>N(r).liveLatency.toFixed(2)]),J(G,re)};De(j,G=>{N(r).liveLatency&&G(Se)})}var he=ne(j,2);{var Ae=G=>{var re=dp(),fe=ne(B(re),2),Ce=B(fe,!0);H(fe),H(re),ye(w=>Ne(Ce,w),[()=>[{value:N(r).currentVideoSegmentLength,title:"Video:"},{value:N(r).currentAudioSegmentLength,title:"Audio:"}].filter(({value:w})=>w).map(({value:w,title:ee})=>`${ee} ${((w!=null?w:0)/1e3).toFixed(2)} s`).join(" & ")]),J(G,re)};De(he,G=>{(N(r).currentVideoSegmentLength||N(r).currentAudioSegmentLength)&&G(Ae)})}var Be=ne(he,2),ke=ne(B(Be),2),je=B(ke);H(ke),H(Be);var I=ne(Be,2);{var C=G=>{var re=up(),fe=ne(B(re),2);_r(fe,{get values(){return N(v)}});var Ce=ne(fe,2),w=B(Ce);H(Ce),H(re),ye(ee=>Ne(w,`${ee!=null?ee:""} Kbps`),[()=>N(r).speed.toFixed(2)]),J(G,re)};De(I,G=>{N(r).speed&&G(C)})}var F=ne(I,2);{var K=G=>{var re=cp(),fe=ne(B(re),2);_r(fe,{get values(){return N(h)}});var Ce=ne(fe,2),w=B(Ce);H(Ce),H(re),ye(ee=>Ne(w,`${ee!=null?ee:""} Kbps`),[()=>N(r).bitrate.toFixed(2)]),J(G,re)};De(F,G=>{N(r).bitrate&&G(K)})}var le=ne(F,2),ge=ne(B(le),2);_r(ge,{get values(){return N(u)}});var ze=ne(ge,2),Qe=B(ze,!0);H(ze),H(le),H(D),H(y),ye(()=>{var G,re;et(y,"aria-label",_),Ne(x,N(r).version),Ne(je,`${(G=N(a))!=null?G:""} / ${(re=N(s))!=null?re:""} frames`),Ne(Qe,N(c))}),J(t,y),we()}Zt(["click"]);var mp=ue('<div><div class="video-container s-3"></div></div>'),vp={hash:"s-3",code:".video-container.s-3,.video-wrapper.s-3{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-3{background:var(--black)}.video-container.s-3,.video-wrapper.s-3{z-index:var(--video-container-z-index)}.video-container.s-3{transition:var(--rotate-transition-duration) ease all}"};function Fa(t,e){Ee(e,!0),Re(t,vp);let[i,n]=ui(),r=()=>qe(s,"$playerPhase",i),o=tt(e,"videoContainer",15),{playerPhase:s}=Ut();var a=mp();let c;var m=B(a);li(m,f=>o(f),()=>o()),H(a),ye(f=>c=bi(a,1,"video-wrapper s-3",null,c,f),[()=>({hidden:r()!=="video"})]),J(t,a),we(),n()}var Jt=t=>`width:${t}rem;height:${t}rem;`;var yr=require("@vkontakte/videoplayer-shared/es2015"),Ji=class{constructor(e){this.onKeyDown=e=>{let i=(0,yr.getWindow)().document.activeElement;if(!i)return console.warn("no active element"),!1;let{row:n,col:r,layer:o}=i.dataset;if(!n||!r||!o)return console.warn("no col or row or layer"),!1;let s=!1;switch(e.key){case"ArrowDown":s=this.moveFocusVertical(Number(n)+1,r,o);break;case"ArrowUp":s=this.moveFocusVertical(Number(n)-1,r,o);break;case"ArrowLeft":s=this.moveFocusHorizontal(Number(r)-1,n,o);break;case"ArrowRight":s=this.moveFocusHorizontal(Number(r)+1,n,o);break}return s&&(e.preventDefault(),e.stopPropagation()),s};this.root=e}destroy(){this.root.removeEventListener("keydown",this.onKeyDown)}unmountedElement(e,i,n,r){var o;r&&(this.moveFocusHorizontal(Number(e)-1,i.toString(),n)||this.moveFocusHorizontal(Number(e)+1,i.toString(),n)||this.moveFocusVertical(Number(e)-1,i.toString(),n)||this.moveFocusVertical(Number(e)+1,i.toString(),n)||(o=(0,yr.getWindow)().document.querySelector(`[data-layer=${n}][data-default]`))==null||o.focus())}moveFocusVertical(e,i,n){let r=(0,yr.getWindow)().document.querySelectorAll(`[data-row="${e}"][data-layer="${n}"]`);if(r.length===0)return!1;let o;for(let s=0;s<r.length;s++){let a=r[s];if(a.dataset.col===i)return a.focus(),!0;a.dataset.col==="1"&&(o=a)}return o?o.focus():r[0].focus(),!0}moveFocusHorizontal(e,i,n){let r=(0,yr.getWindow)().document.querySelectorAll(`[data-col="${e}"][data-layer="${n}"]`);if(r.length===0)return!1;let o;for(let s=0;s<r.length;s++){let a=r[s];if(a.dataset.row===i)return a.focus(),!0;a.dataset.row==="1"&&(o=a)}return o?o.focus():r[0].focus(),!0}};Ji.CONTEXT_KEY="focusManager";var gp=(t,e)=>{var i;t.preventDefault(),t.stopPropagation(),(i=e.onclick)==null||i.call(e)},hp=ue("<button><!></button>"),_p={hash:"s-d",code:".button.s-d{align-items:center;background:hsla(0,0%,100%,.15);border:0;border-radius:50%;color:#fff;display:inline-block;font-size:inherit;justify-content:center;padding:0}.button.s-d:focus{background:#fff;color:#000;outline:0}.button.s-d:hover:not(:focus){background-color:#76787a}"};function _n(t,e){Ee(e,!0),Re(t,_p);let i=tt(e,"ref",15),n=tt(e,"defaultInLayer",3,!1),r=Oe(!1),o=()=>{pe(r,!0)},s=()=>{pe(r,!1)},a=Le(()=>Jt(Number(e.size||"14")*2)),c=nn(Ji.CONTEXT_KEY);jt(()=>()=>{c.focusManager.unmountedElement(e.col,e.row,e.layer,N(r))});var m=hp();m.__click=[gp,e];var f=B(m);Ln(f,()=>e.children),H(m),li(m,l=>i(l),()=>i()),ye(()=>{bi(m,1,Oi(["button",e.class]),"s-d"),st(m,N(a)),et(m,"data-row",e.row),et(m,"data-col",e.col),et(m,"data-layer",e.layer),et(m,"data-default",n())}),Cn("focus",m,o),Cn("blur",m,s),J(t,m),we()}Zt(["click"]);var Ba=require("@vkontakte/videoplayer-statistics/es2015");var Ha=t=>{let e=Math.abs(Math.round(t)),i=Math.floor(e/3600),n=e%3600,r=Math.floor(n/60),o=n%60;return`${t<0?"-":""}${i?String(i).padStart(2,"0")+":":""}${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`};var yp=ue("<div> </div>"),bp={hash:"s-h",code:".video-time.s-h{color:#fff;line-height:125%}"};function ho(t,e){Ee(e,!0),Re(t,bp);let i=10,n=Le(()=>Ha(e.current)+(e.duration?` / ${Ha(e.duration)}`:"")),r=Le(()=>`font-size: ${e.size||i}rem`);var o=yp(),s=B(o,!0);H(o),ye(()=>{st(o,N(r)),bi(o,1,Oi(["video-time",e.class]),"s-h"),Ne(s,N(n))}),J(t,o),we()}var xp=(t,e,i,n,r)=>{t.preventDefault(),t.stopPropagation(),e(i()*t.offsetX/r().offsetWidth,Ba.SeekAction.SLIDER)},Ap=ue('<div class="pointer-time-wrapper s-e"><!></div>'),Ep=ue('<div><div class="time-wrapper s-e"><!></div> <div class="current-progress s-e"></div> <div class="pointer s-e"><!></div></div>'),wp={hash:"s-e",code:".progress-bar.s-e{background:hsla(0,0%,100%,.15);border-radius:2rem;font-size:inherit;height:4rem;position:relative;width:100%}.current-progress.s-e{background-color:#fff;border-radius:inherit;height:100%;left:0;position:absolute;top:0}.is-live-now.s-e .current-progress:where(.s-e){background:#ff5c5c}.pointer.s-e{background:#fff;border-radius:50%;display:none;height:7rem;position:absolute;top:50%;transform:translate(-50%,-50%);width:7rem;will-change:transform}.time-wrapper.s-e{position:absolute;right:0;top:0;transform:translateY(calc(-100% - 20rem))}.pointer-time-wrapper.s-e{bottom:0;left:50%;position:absolute;transform:translate(-50%,calc(100% + 5rem))}.progress-bar.s-e:focus{outline:0}.progress-bar.s-e:focus .pointer:where(.s-e){display:block}.button.s-e:hover:not(:focus){background-color:#76787a}"};function Qa(t,e){Ee(e,!0),Re(t,wp);let[i,n]=ui(),r=()=>qe(_,"$duration$",i),o=()=>qe(x,"$positionPercent$",i),s=()=>qe(h,"$positionExact$",i),a=()=>qe(y,"$isLive$",i),c=0,m=1,f=10,{actions:{internal:{seekTime:l,pause:u,play:v}},state:{positionExact$:h,duration$:_,isLive$:y}}=Ut(),$=f/r(),D=tt(e,"ref",15),T=Oe(Ot(NaN)),b=Le(()=>isFinite(N(T))),x=rt([h,_],([ie,Y])=>Y>0?ie/Y:0),A=()=>{N(b)||(pe(T,o(),!0),u())},S=ie=>{switch(ie.key){case"ArrowLeft":ie.stopPropagation(),A(),pe(T,Math.max(c,N(T)-$),!0);break;case"ArrowRight":ie.stopPropagation(),A(),pe(T,Math.min(m,N(T)+$),!0);break;case"ArrowDown":case"ArrowUp":pe(T,NaN,!0);break;case"Enter":ie.preventDefault(),l(Te(_)*N(T),Ba.SeekAction.SLIDER),v(),pe(T,NaN,!0);break;case"Escape":N(b)&&(ie.stopPropagation(),v(),pe(T,NaN,!0));break}},L=Le(()=>Number(N(b)?N(T):o())),k=Le(()=>`width: ${N(L)*100}%`),E=Le(()=>`left: ${N(L)*100}%`),M=Le(()=>s()-(a()?r():0)),g=Le(()=>N(b)?N(T)*r()-(a()?r():0):0);var R=Ep();et(R,"tabindex",0),R.__keydown=S,R.__click=[xp,l,r,_,D];var U=B(R),O=B(U);{var P=ie=>{let Y=Le(()=>a()?0:r());ho(ie,{get size(){return"10"},get current(){return N(M)},get duration(){return N(Y)}})};De(O,ie=>{a()||ie(P)})}H(U);var z=ne(U,2),Q=ne(z,2),ce=B(Q);{var X=ie=>{var Y=Ap(),be=B(Y);ho(be,{get size(){return"8"},get current(){return N(g)}}),H(Y),J(ie,Y)};De(ce,ie=>{N(g)&&ie(X)})}H(Q),H(R),li(R,ie=>D(ie),()=>D()),ye(()=>{bi(R,1,Oi(["progress-bar",e.class,a()&&N(L)===1&&"is-live-now"]),"s-e"),et(R,"data-row",e.row),et(R,"data-col",e.col),et(R,"data-layer",e.layer),st(z,N(k)),st(Q,N(E))}),J(t,R),we(),n()}Zt(["keydown","click"]);var Mp=It('<path d="m14.4 8.76 24.02 13.85a1.6 1.6 0 0 1 0 2.78L14.4 39.24a1.6 1.6 0 0 1-2.4-1.39v-27.7a1.6 1.6 0 0 1 2.4-1.39"></path>');function Ya(t,e){Ee(e,!0);let i=Le(()=>Jt(e.size));Yt(t,{width:"48",height:"48",fill:"currentColor",get style(){return N(i)},testId:"play-icon",get shadow(){return e.shadow},children:(n,r)=>{var o=Mp();J(n,o)},$$slots:{default:!0}}),we()}var iu=require("@vkontakte/videoplayer-core/es2015");var Tp=It('<path d="m17.4 10 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h3.801zm16 0 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h4z"></path>');function Wa(t,e){Ee(e,!0);let i=Le(()=>Jt(e.size));Yt(t,{width:"48",height:"48",fill:"currentColor",get style(){return N(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(n,r)=>{var o=Tp();J(n,o)},$$slots:{default:!0}}),we()}var Sp=It('<path d="M19.605 0.0611157C20.2463 0.163726 20.8529 0.409114 21.3976 0.844894C22.29 1.55876 22.7149 2.45864 23.0434 3.77239C23.1274 4.10872 23.2729 4.50079 23.4548 4.88131C23.8719 5.05864 24.28 5.25575 24.6777 5.47185C25.0704 5.37484 25.4474 5.24601 25.7485 5.10584C27.8669 4.11966 29.644 4.17147 31.0993 5.74115C31.2224 5.87392 31.2959 5.96187 31.4558 6.15934L32.3998 7.32506C32.6537 7.63857 32.7621 7.78141 32.9223 8.04795C33.96 9.7751 33.5554 11.3836 32.2437 13.1266C32.026 13.4159 31.8038 13.7945 31.6179 14.1928C31.7352 14.6166 31.8328 15.0463 31.9105 15.4809C32.2446 15.7486 32.5997 15.9831 32.9134 16.1432C34.1196 16.7587 34.9009 17.3752 35.3957 18.4053C35.6978 19.0341 35.8004 19.6804 35.7561 20.3283C35.7327 20.6708 35.6957 20.8617 35.597 21.2892L35.2596 22.7507C35.1609 23.1782 35.1105 23.366 34.9814 23.6841C34.7371 24.2859 34.3616 24.8218 33.8144 25.2545C32.9181 25.9634 31.9457 26.175 30.5917 26.1995C30.2492 26.2057 29.84 26.2581 29.4328 26.3478C29.1681 26.7135 28.8862 27.0665 28.5882 27.4055C28.5933 27.8168 28.6342 28.221 28.7042 28.5516C28.9849 29.8764 28.9975 30.8715 28.5084 31.9043C28.2098 32.5347 27.7721 33.0212 27.2407 33.3946C26.9598 33.5919 26.7882 33.6833 26.3939 33.8756L25.0457 34.5332C24.6514 34.7255 24.4737 34.8045 24.1452 34.9043C23.5238 35.0933 22.871 35.1386 22.1904 34.9858C21.0754 34.7353 20.299 34.1128 19.4279 33.076C19.1976 32.8019 18.883 32.5036 18.5409 32.235C18.3222 32.245 18.1028 32.25 17.8829 32.25C17.6631 32.25 17.4437 32.245 17.225 32.235C16.8829 32.5036 16.5682 32.8019 16.338 33.076C15.4669 34.1128 14.6905 34.7353 13.5755 34.9858C12.8949 35.1386 12.242 35.0933 11.6206 34.9043C11.2922 34.8045 11.1145 34.7255 10.7202 34.5332L9.37201 33.8756C9.25348 33.8179 9.17995 33.7815 9.09407 33.7368C7.12674 32.7123 6.55001 30.9662 7.06165 28.5516C7.1317 28.221 7.17258 27.8168 7.17769 27.4055C6.87964 27.0665 6.59775 26.7135 6.33304 26.3478C5.92591 26.2581 5.51663 26.2057 5.17413 26.1995C3.82017 26.175 2.84776 25.9634 1.95146 25.2545C1.40431 24.8218 1.02875 24.2859 0.784502 23.6841C0.655401 23.366 0.604985 23.1782 0.506296 22.7507L0.168869 21.2892C0.0643852 20.8366 0.0258935 20.6348 0.00607361 20.2681C-0.031082 19.5806 0.100474 18.8976 0.449422 18.2496C0.957844 17.3055 1.71039 16.726 2.85245 16.1432C3.16613 15.9831 3.52129 15.7486 3.85542 15.4809C3.93305 15.0463 4.03072 14.6166 4.14799 14.1928C3.96209 13.7945 3.73987 13.4159 3.52222 13.1266C2.21049 11.3836 1.80583 9.7751 2.84361 8.04795C3.00377 7.78141 3.11222 7.63857 3.36609 7.32506L4.31007 6.15934C4.46998 5.96187 4.54348 5.87392 4.66657 5.74115C6.12187 4.17147 7.89898 4.11966 10.0173 5.10584C10.3184 5.24601 10.6955 5.37484 11.0881 5.47185C11.4859 5.25575 11.894 5.05864 12.3111 4.88131C12.4929 4.50079 12.6384 4.10872 12.7225 3.77239C13.0509 2.45864 13.4759 1.55876 14.3682 0.844894C14.913 0.409114 15.5196 0.163726 16.1609 0.0611157C16.4321 0.0177263 16.6107 0.00464598 16.8959 0.00114942L18.6329 0C19.0716 0 19.266 0.00687897 19.605 0.0611157ZM18.7615 3.00031L17.1329 3C16.3829 3 16.0079 3 15.6329 4.5C15.4248 5.33261 14.9856 6.39629 14.3794 7.30626C13.4155 7.62186 12.509 8.06414 11.6795 8.61343C10.6044 8.50749 9.51939 8.18318 8.75121 7.82556C7.3495 7.17301 7.1135 7.46444 6.64151 8.0473L5.69753 9.21302C5.22554 9.79588 4.98955 10.0873 5.91927 11.3227C6.44256 12.0181 7.00097 13.0476 7.3248 14.1068C6.9932 15.0058 6.77314 15.9587 6.68139 16.9489C5.92897 17.7503 4.98495 18.423 4.21611 18.8153C2.83891 19.5182 2.92327 19.8835 3.09198 20.6143L3.42941 22.0759C3.59812 22.8067 3.68248 23.172 5.22839 23.2C6.08312 23.2155 7.21283 23.4028 8.23271 23.7856C8.75071 24.6478 9.38097 25.4348 10.1033 26.1265C10.2448 27.2028 10.173 28.3403 9.99649 29.1735C9.67598 30.6861 10.013 30.8505 10.6871 31.1792L12.0353 31.8368C12.7094 32.1656 13.0465 32.33 14.0411 31.1462C14.5988 30.4824 15.4718 29.71 16.4268 29.1566C16.9035 29.2182 17.3895 29.25 17.8829 29.25C18.3764 29.25 18.8624 29.2182 19.3391 29.1566C20.2941 29.71 21.1671 30.4824 21.7248 31.1462C22.7194 32.33 23.0565 32.1656 23.7306 31.8368L25.0788 31.1792C25.7528 30.8505 26.0899 30.6861 25.7694 29.1735C25.5928 28.3403 25.5211 27.2028 25.6626 26.1265C26.3849 25.4348 27.0152 24.6478 27.5332 23.7856C28.553 23.4028 29.6828 23.2155 30.5375 23.2C32.0834 23.172 32.1678 22.8067 32.3365 22.0759L32.6739 20.6143C32.8426 19.8835 32.927 19.5182 31.5498 18.8153C30.7809 18.423 29.8369 17.7503 29.0845 16.9489C28.9927 15.9587 28.7727 15.0058 28.4411 14.1068C28.7649 13.0476 29.3233 12.0181 29.8466 11.3227C30.7763 10.0873 30.5403 9.79588 30.0683 9.21302L29.1244 8.0473C28.6524 7.46444 28.4164 7.17301 27.0147 7.82556C26.2465 8.18318 25.1615 8.50749 24.0864 8.61343C23.2569 8.06414 22.3504 7.62186 21.3865 7.30626C20.7803 6.39629 20.3411 5.33261 20.1329 4.5C19.78 3.08824 19.4271 3.00519 18.7615 3.00031ZM17.8829 11.25C21.6109 11.25 24.6329 14.2721 24.6329 18C24.6329 21.7279 21.6109 24.75 17.8829 24.75C14.155 24.75 11.1329 21.7279 11.1329 18C11.1329 14.2721 14.155 11.25 17.8829 11.25ZM17.8829 14.25C15.8119 14.25 14.1329 15.9289 14.1329 18C14.1329 20.0711 15.8119 21.75 17.8829 21.75C19.954 21.75 21.6329 20.0711 21.6329 18C21.6329 15.9289 19.954 14.25 17.8829 14.25Z"></path>');function Ga(t,e){Ee(e,!0);let i=Le(()=>Jt(e.size));Yt(t,{width:"36",height:"36",viewBox:"0 0 36 36",fill:"currentColor",get style(){return N(i)},testId:"settings-icon",get shadow(){return e.shadow},children:(n,r)=>{var o=Sp();J(n,o)},$$slots:{default:!0}}),we()}var Ip=It('<path d="M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5 M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5 M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69 z"></path>');function qa(t,e){Ee(e,!0);let i=Le(()=>Jt(e.size));Yt(t,{width:"42",height:"20",testId:"live-icon",fill:"currentColor",get style(){return N(i)},children:(n,r)=>{var o=Ip();J(n,o)},$$slots:{default:!0}}),we()}var nu=require("@vkontakte/videoplayer-statistics/es2015"),Np=ue('<div class="wrapper s-7"><div class="container s-7"><div class="top-buttons"></div> <div class="filler s-7"></div> <div class="top-above-progress-bar s-7"><div class="video-title s-7"> </div> <div class="filler s-7"></div> <!></div> <!> <div class="bottom-buttons s-7"><div class="play-pause-button-container"><!></div> <div class="settings-button-container s-7"><!></div></div></div></div>'),Dp={hash:"s-7",code:".wrapper.s-7{background-image:linear-gradient(1turn,transparent,rgba(0,0,0,.016) 9.22%,rgba(0,0,0,.055) 18.76%,rgba(0,0,0,.118) 28.48%,rgba(0,0,0,.2) 38.19%,rgba(0,0,0,.29) 47.75%,rgba(0,0,0,.392) 56.99%,rgba(0,0,0,.502) 65.75%,rgba(0,0,0,.608) 73.87%,rgba(0,0,0,.71) 81.18%,rgba(0,0,0,.8) 87.52%,rgba(0,0,0,.882) 92.74%,rgba(0,0,0,.945) 96.66%,rgba(0,0,0,.984) 99.14%,#000),linear-gradient(180deg,transparent 0,rgba(0,0,0,.016) 9.22%,rgba(0,0,0,.055) 18.76%,rgba(0,0,0,.118) 28.48%,rgba(0,0,0,.2) 38.19%,rgba(0,0,0,.29) 47.75%,rgba(0,0,0,.392) 56.99%,rgba(0,0,0,.502) 65.75%,rgba(0,0,0,.608) 73.87%,rgba(0,0,0,.71) 81.18%,rgba(0,0,0,.8) 87.52%,rgba(0,0,0,.882) 92.74%,rgba(0,0,0,.945) 96.66%,rgba(0,0,0,.984) 99.14%,#000);bottom:0;left:0;position:absolute;right:0;top:0}.container.s-7{box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:10rem 48rem 0}.filler.s-7{flex-grow:1}.top-above-progress-bar.s-7{align-items:flex-end;display:flex;padding-bottom:20rem}.video-title.s-7{color:#fff;font-size:14rem;line-height:18rem;max-width:320rem}.bottom-buttons.s-7{align-items:center;display:flex;justify-content:center;margin:20rem 0;position:relative;width:100%}.settings-button-container.s-7{position:absolute;right:0;top:50%;transform:translateY(-50%)}"};function Ka(t,e){Ee(e,!0),Re(t,Dp);let[i,n]=ui(),r=()=>qe(l,"$playbackState$",i),o=()=>qe(u,"$isLive$",i),s=()=>qe(v,"$positionExact$",i),a=()=>qe(h,"$duration$",i),{actions:{internal:{togglePlay:c,setSettingsVisibility:m,seekTime:f}},state:{playbackState$:l,isLive$:u,positionExact$:v,duration$:h},video:{title:_}}=Ut(),y=Le(()=>r()===iu.PlaybackState.PLAYING),$=Oe(void 0);jt(()=>{var Q;(Q=N($))==null||Q.focus()});let D=()=>{m(!0)},T=Le(()=>o()&&s()!==a()),b=()=>{f(a(),nu.SeekAction.LIVE)};var x=Np(),A=B(x),S=ne(B(A),4),L=B(S),k=B(L,!0);H(L);var E=ne(L,4);{var M=Q=>{_n(Q,{layer:"controls",row:1,col:1,onclick:b,children:(ce,X)=>{qa(ce,{get size(){return"14"}})},$$slots:{default:!0}})};De(E,Q=>{N(T)&&Q(M)})}H(S);var g=ne(S,2);Qa(g,{row:2,col:1,layer:"controls"});var R=ne(g,2),U=B(R),O=B(U);_n(O,{get size(){return"20"},get onclick(){return c},row:3,col:1,layer:"controls",get ref(){return N($)},set ref(Q){pe($,Q,!0)},children:(Q,ce)=>{var X=pn(),ie=ri(X);{var Y=q=>{Wa(q,{get size(){return"20"}})},be=q=>{Ya(q,{get size(){return"20"}})};De(ie,q=>{N(y)?q(Y):q(be,!1)})}J(Q,X)},$$slots:{default:!0}}),H(U);var P=ne(U,2),z=B(P);_n(z,{get size(){return"14"},onclick:D,row:3,col:2,layer:"controls",children:(Q,ce)=>{Ga(Q,{get size(){return"14"}})},$$slots:{default:!0}}),H(P),H(R),H(A),H(x),ye(()=>Ne(k,_)),J(t,x),we(),n()}var Cp=(t,e,i)=>{switch(t.key){case"ArrowUp":pe(e,Math.max(N(e)-1,0),!0),t.stopPropagation();break;case"ArrowDown":pe(e,Math.min(N(e)+1,i.items.length-1),!0),t.stopPropagation();break;case"Enter":if(t.stopPropagation(),t.preventDefault(),i.items[N(e)].disabled)return;i.onAction(N(e));break}},$p=ue('<button class="s-f"><!></button>'),kp=ue('<div class="list s-f"></div>'),Lp={hash:"s-f",code:".list.s-f{display:flex;flex-direction:column;gap:4rem}.list.s-f:focus,.list.s-f:focus-visible{outline:0}.list.s-f button:where(.s-f){background:none;border:none;color:inherit}"};function Za(t,e){Ee(e,!0),Re(t,Lp);let i=tt(e,"ref",15),n=Oe(0);Si(()=>{pe(n,e.items.findIndex(s=>s.isSelected),!0)});let r=s=>{pe(n,s,!0),!e.items[s].disabled&&e.onAction(s)};var o=kp();et(o,"tabindex",0),o.__keydown=[Cp,n,e],da(o,23,()=>e.items,s=>s.id,(s,a,c)=>{var m=$p();m.__click=()=>r(N(c));var f=B(m);ua(f,e,"default",{get item(){return N(a)},get focused(){return N(c)===N(n)}},null),H(m),ye(()=>m.disabled=N(a).disabled),J(s,m)}),H(o),li(o,s=>i(s),()=>i()),ye(()=>{et(o,"data-row",e.row),et(o,"data-col",e.col),et(o,"data-layer",e.layer)}),J(t,o),we()}Zt(["keydown","click"]);var Op=It('<path d="M16.5 24.8787L8.56066 16.9393C7.97487 16.3536 7.02513 16.3536 6.43934 16.9393C5.85355 17.5251 5.85355 18.4749 6.43934 19.0607L15.4393 28.0607C16.0251 28.6464 16.9749 28.6464 17.5607 28.0607L35.5607 10.0607C36.1464 9.47487 36.1464 8.52513 35.5607 7.93934C34.9749 7.35355 34.0251 7.35355 33.4393 7.93934L16.5 24.8787Z"></path>');function Ja(t,e){Ee(e,!0);let i=Le(()=>Jt(e.size));Yt(t,{width:"39",height:"36",viewBox:"0 0 39 36",fill:"currentColor",get style(){return N(i)},testId:"back-icon",get shadow(){return e.shadow},children:(n,r)=>{var o=Op();J(n,o)},$$slots:{default:!0}}),we()}var Pp=ue("<div> <!></div>"),Rp={hash:"s-g",code:".quality-list-item.s-g{align-items:center;border-radius:6rem;box-sizing:border-box;color:var(--vkui--color_text_subhead);display:flex;font-size:10rem;font-weight:500;justify-content:space-between;line-height:12rem;padding:6rem;width:100%}.quality-list-item.s-g:hover{background-color:#76787a;color:#e1e3e6}.quality-list-item.selected.s-g{background:var(--vkui--color_background_contrast_secondary_alpha);color:var(--vkui--color_text_subhead)}:focus .quality-list-item.focused.s-g{background-color:#fff;color:#000}.quality-list-item.disabled.s-g{opacity:.5}"};function Xa(t,e){Ee(e,!0),Re(t,Rp);var i=Pp(),n=B(i),r=ne(n);{var o=s=>{Ja(s,{get size(){return"7"}})};De(r,s=>{e.data.isSelected&&s(o)})}H(i),ye(()=>{var s;bi(i,1,Oi(["quality-list-item",e.data.isSelected?"selected":"",e.data.isFocused?"focused":"",e.data.disabled&&"disabled"]),"s-g"),Ne(n,`${(s=e.data.text)!=null?s:""} `)}),J(t,i),we()}var Vp=It('<path d="M9.43934 9.43934C10.0251 8.85355 10.9749 8.85355 11.5607 9.43934L21 18.8775L30.4393 9.43934C30.9801 8.89861 31.8309 8.85702 32.4193 9.31456L32.5607 9.43934C33.1464 10.0251 33.1464 10.9749 32.5607 11.5607L23.1225 21L32.5607 30.4393C33.1014 30.9801 33.143 31.8309 32.6854 32.4193L32.5607 32.5607C31.9749 33.1464 31.0251 33.1464 30.4393 32.5607L21 23.1225L11.5607 32.5607C11.0199 33.1014 10.1691 33.143 9.58065 32.6854L9.43934 32.5607C8.85355 31.9749 8.85355 31.0251 9.43934 30.4393L18.8775 21L9.43934 11.5607C8.89861 11.0199 8.85702 10.1691 9.31456 9.58065L9.43934 9.43934Z"></path>');function es(t,e){Ee(e,!0);let i=Le(()=>Jt(e.size));Yt(t,{width:"42",height:"42",viewBox:"0 0 42 42",fill:"currentColor",get style(){return N(i)},testId:"back-icon",get shadow(){return e.shadow},children:(n,r)=>{var o=Vp();J(n,o)},$$slots:{default:!0}}),we()}var ru=require("@vkontakte/videoplayer-shared/es2015");var jp=ue('<div class="settings-layer s-6"><div class="settings-menu s-6"><div class="settings-title s-6">Качество</div> <div class="menu-list"><div class="close-button-container s-6"><!></div> <!></div></div></div>'),zp={hash:"s-6",code:".settings-layer.s-6{bottom:0;left:0}.settings-layer.s-6,.settings-menu.s-6{position:absolute;right:0;top:0}.settings-menu.s-6{background:#000;box-sizing:border-box;height:100%;padding:10rem;width:163rem}.settings-title.s-6{color:#fff;font-size:12rem;line-height:116%;margin-bottom:12rem;margin-left:8rem;margin-top:5rem}.close-button-container.s-6{left:0;position:absolute;top:15rem;transform:translateX(calc(-100% - 7rem))}"};function ts(t,e){Ee(e,!0),Re(t,zp);let[i,n]=ui(),r=()=>qe(m,"$availableQualities$",i),o=()=>qe(f,"$currentQuality$",i),{actions:{internal:{setSettingsVisibility:s,setQuality:a,clearShowByInput:c}},state:{availableQualities$:m,currentQuality$:f},deviceCapabilities:l}=Ut(),u=Oe(void 0),v=Le(()=>r().map(A=>{let{value:S,displayValue:L,selected:k}=A,E={id:S,text:L,isSelected:k,disabled:S!=="auto"&&S!==ru.VideoQuality.INVARIANT&&!l.isCodecSupported(S)};return k&&S==="auto"&&(E.text=`${L} (${o()})`),E}));jt(()=>{var A;(A=N(u))==null||A.focus()});let h=()=>{s(!1)},_=A=>{let S=N(v)[A];a(S.id),s(!1),c()};var y=jp(),$=B(y),D=ne(B($),2),T=B(D),b=B(T);_n(b,{get size(){return"14"},onclick:h,row:1,col:1,layer:"settings",children:(A,S)=>{es(A,{get size(){return"14"}})},$$slots:{default:!0}}),H(T);var x=ne(T,2);Za(x,{row:1,col:2,layer:"settings",get items(){return N(v)},onAction:_,get ref(){return N(u)},set ref(A){pe(u,A,!0)},children:Cr,$$slots:{default:(A,S)=>{let L=Le(()=>S.item),k=Le(()=>S.focused),E=Le(()=>vt(Ke({},N(L)),{isFocused:N(k)}));Xa(A,{get data(){return N(E)}})}}}),H(D),H($),H(y),J(t,y),we(),n()}var Up=ue('<div class="container s-a"><div class="dot s-a"></div> <div class="dot s-a"></div> <div class="dot s-a"></div></div>'),Fp={hash:"s-a",code:".container.s-a{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-a:first-child{animation-delay:0s}.dot.s-a:nth-child(2){animation-delay:.18s}.dot.s-a:nth-child(3){animation-delay:.36s}@keyframes s-a-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-a{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-a-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-a+.dot:where(.s-a){margin-left:4px}"};function br(t,e){Re(t,Fp);let i=tt(e,"style",3,"");var n=Up();ye(()=>st(n,i())),J(t,n)}var Hp=ue('<div class="container s-9"><!></div>'),Bp={hash:"s-9",code:".container.s-9{bottom:0;color:green;font-size:33px;left:0;position:absolute;right:0;top:0}"};function is(t){Re(t,Bp);var e=Hp(),i=B(e);br(i,{}),H(e),J(t,e)}var _o=require("@vkontakte/videoplayer-shared/es2015"),Qp=ue('<div class="timer__cell cell s-b"><span class="cell__value s-b"> </span> <span class="cell__unit s-b"> </span></div> <span class="timer__points s-b"> </span>',1),Yp=ue('<div class="timer__cell cell s-b"><span class="cell__value s-b"> </span> <span class="cell__unit s-b"> </span></div> <span class="timer__points s-b"> </span>',1),Wp=ue('<div class="timer__cell cell s-b"><span class="cell__value s-b"> </span> <span class="cell__unit s-b"> </span></div> <span class="timer__points s-b"> </span>',1),Gp=ue('<div class="timer__cell cell s-b"><span class="cell__value s-b"> </span> <span class="cell__unit s-b"> </span></div>'),qp=ue('<div class="timer__container s-b"><!> <!> <!> <!></div>'),Kp={hash:"s-b",code:".timer__container.s-b{align-items:flex-start;display:flex;justify-content:center}.cell.s-b{align-items:center;display:flex;flex-direction:column}.cell__value.s-b{font-size:16em;font-weight:600;line-height:1.2}.cell__unit.s-b{font-size:4.7em;font-weight:400;line-height:1.2}.timer__points.s-b{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}"};function ns(t,e){Ee(e,!0),Re(t,Kp);let i=Oe(""),n=Oe(""),r=Oe(""),o=Oe(""),s,a=32,c=a/2,m=S=>String(S).padStart(2,"0"),f=S=>Math.max(S.length,1),l=S=>`${(e.isSmallSize?c:a)*f(S)}px`,u=S=>{let L=Math.floor(S/86400);L&&(S-=L*86400,pe(i,m(L),!0));let k=Math.floor(S/3600);pe(n,m(k),!0);let E=Math.floor(S/60)%60;pe(r,m(E),!0);let M=S%60;pe(o,m(M),!0)},v=()=>{let S=Math.floor(Date.now()/1e3),L=e.startTime-S;u(L),L>=1?s=(0,_o.getWindow)().requestAnimationFrame(v):e.onTimerOver()};Si(()=>{s=(0,_o.getWindow)().requestAnimationFrame(v)}),ud(()=>{(0,_o.getWindow)().cancelAnimationFrame(s)});var h=qp(),_=B(h);{var y=S=>{var L=Qp(),k=ri(L);let E;var M=B(k),g=B(M,!0);H(M);var R=ne(M,2),U=B(R,!0);H(R),H(k);var O=ne(k,2),P=B(O,!0);H(O),ye((z,Q,ce)=>{E=st(k,"",E,{width:z}),Ne(g,N(i)),Ne(U,Q),Ne(P,ce)},[()=>l(N(i)),()=>Ft("waiting_live_day_value"),()=>Ft("waiting_live_colon")]),J(S,L)};De(_,S=>{N(i)&&S(y)})}var $=ne(_,2);{var D=S=>{var L=Yp(),k=ri(L);let E;var M=B(k),g=B(M,!0);H(M);var R=ne(M,2),U=B(R,!0);H(R),H(k);var O=ne(k,2),P=B(O,!0);H(O),ye((z,Q,ce)=>{E=st(k,"",E,{width:z}),Ne(g,N(n)),Ne(U,Q),Ne(P,ce)},[()=>l(N(n)),()=>Ft("waiting_live_hour_value"),()=>Ft("waiting_live_colon")]),J(S,L)};De($,S=>{N(n)&&S(D)})}var T=ne($,2);{var b=S=>{var L=Wp(),k=ri(L);let E;var M=B(k),g=B(M,!0);H(M);var R=ne(M,2),U=B(R,!0);H(R),H(k);var O=ne(k,2),P=B(O,!0);H(O),ye((z,Q,ce)=>{E=st(k,"",E,{width:z}),Ne(g,N(r)),Ne(U,Q),Ne(P,ce)},[()=>l(N(r)),()=>Ft("waiting_live_minute_value"),()=>Ft("waiting_live_colon")]),J(S,L)};De(T,S=>{N(r)&&S(b)})}var x=ne(T,2);{var A=S=>{var L=Gp();let k;var E=B(L),M=B(E,!0);H(E);var g=ne(E,2),R=B(g,!0);H(g),H(L),ye((U,O)=>{k=st(L,"",k,{width:U}),Ne(M,N(o)),Ne(R,O)},[()=>l(N(o)),()=>Ft("waiting_live_second_value")]),J(S,L)};De(x,S=>{N(o)&&S(A)})}H(h),J(t,h),we()}var Zp=ue('<div class="waiting s-8"><span class="waiting__title medium s-8"> </span></div>'),Jp=ue('<div class="upcoming-timer timer s-8"><span class="timer__title medium s-8"> </span> <!></div>'),Xp=ue('<div class="waiting-container s-8"><!></div>'),em={hash:"s-8",code:'.waiting-container.s-8{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;color:#fff;white-space:nowrap}.waiting-container.s-8,.waiting-container.s-8:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-8:before{backdrop-filter:blur(5em);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-8{align-items:center;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:2}.waiting__title.s-8{font-size:7em;font-weight:600;line-height:1.2}.upcoming-timer.s-8{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-8{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-8{display:inline-block;font-size:6.6666em;font-weight:600;line-height:1.2;margin-bottom:.7em;vertical-align:middle}.medium.s-8{font-size:6em}'};function rs(t,e){Ee(e,!0),Re(t,em);let{video:{thumbUrl:i,live:n}}=Ut(),r=(n==null?void 0:n.startTime)||0,o=Le(()=>r<Math.floor(Date.now()/1e3));var s=Xp(),a=B(s);{var c=f=>{var l=Zp(),u=B(l),v=B(u,!0);H(u),H(l),ye(h=>Ne(v,h),[()=>Ft("waiting_live_upcoming_title")]),J(f,l)},m=f=>{var l=Jp(),u=B(l),v=B(u,!0);H(u);var h=ne(u,2);let _=Le(()=>r||0);ns(h,{get startTime(){return N(_)},onTimerOver:()=>pe(o,!0)}),H(l),ye(y=>Ne(v,y),[()=>Ft("waiting_live_timer_title")]),J(f,l)};De(a,f=>{N(o)?f(c):f(m,!1)})}H(s),ye(()=>st(s,`background-image: url(${i})`)),J(t,s),we()}var tm=ue('<div class="waiting-container s-5"><div class="waiting-caption s-5"><!> <p class="waiting-title s-5"> </p></div></div>'),im={hash:"s-5",code:'.waiting-container.s-5{align-items:center;background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;display:flex;justify-content:center}.waiting-container.s-5,.waiting-container.s-5:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-5:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-5{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-5{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function yo(t,e){Ee(e,!0),Re(t,im);let i=tt(e,"thumbUrl",3,""),n={recover:Ft("waiting_live_recover_title"),record:Ft("waiting_record_title")},r=Le(()=>n[e.kind]||"");var o=tm();o.__contextmenu=function(...f){var l;(l=e.onContextMenu)==null||l.apply(this,f)},o.__click=function(...f){var l;(l=e.onClick)==null||l.apply(this,f)};var s=B(o),a=B(s);br(a,{style:"position: static; transform: translate(0, 0)"});var c=ne(a,2),m=B(c,!0);H(c),H(s),H(o),ye(()=>{st(o,`background-image: url('${i()}')`),Ne(m,N(r))}),J(t,o),we()}Zt(["contextmenu","click"]);var nm=ue("<!> <!> <!> <!> <!> <!> <!> <!> <!>",1);function os(t,e){Ee(e,!0);let[i,n]=ui(),r=()=>qe(v,"$language$",i),o=()=>qe($,"$isShowLoader",i),s=()=>qe(y,"$controlsVisible",i),a=()=>qe(D,"$settingsVisible",i),c=()=>qe(T,"$playerPhase",i),m=()=>qe(h,"$crashed",i),f=()=>qe(_,"$debugPanelVisible",i),l=tt(e,"videoContainer",15),u=Ut(),v=u.interfaceLanguage$,h=u.state.crashed$,_=u.ui.debugPanelVisible,{ui:{controlsVisible:y,isShowLoader:$,settingsVisible:D},playerPhase:T,video:{thumbUrl:b}}=u;var x=pn(),A=ri(x);aa(A,r,S=>{var L=nm(),k=ri(L);Fa(k,{get videoContainer(){return l()},set videoContainer(ae){l(ae)}});var E=ne(k,2);{var M=ae=>{is(ae,{})};De(E,ae=>{o()&&ae(M)})}var g=ne(E,2);{var R=ae=>{Ka(ae,{})};De(g,ae=>{s()&&ae(R)})}var U=ne(g,2);{var O=ae=>{ts(ae,{})};De(U,ae=>{a()&&ae(O)})}var P=ne(U,2);{var z=ae=>{rs(ae,{})};De(P,ae=>{c()==="LiveWaitingStart"&&ae(z)})}var Q=ne(P,2);{var ce=ae=>{yo(ae,{kind:"recover",get thumbUrl(){return b}})};De(Q,ae=>{c()==="LiveWaitingRecover"&&ae(ce)})}var X=ne(Q,2);{var ie=ae=>{yo(ae,{kind:"record",get thumbUrl(){return b}})};De(X,ae=>{c()==="LiveWaitingRecord"&&ae(ie)})}var Y=ne(X,2);{var be=ae=>{vr(ae,{})};De(Y,ae=>{m()&&ae(be)})}var q=ne(Y,2);{var He=ae=>{Ua(ae,{})};De(q,ae=>{f()&&ae(He)})}J(S,L)}),J(t,x),we(),n()}var rm=(t,e,i,n,r,o)=>{e()||(n()?(o.store.actions.internal.clearShowByInput(),o.store.actions.internal.play()):(o.store.actions.internal.onUserInput(),o.store.actions.internal.pause()))},om=(t,e)=>{e.store.actions.internal.onUserInput()},am=ue('<div class="player-wrapper s-1" tabindex="0"><!></div>'),sm={hash:"s-1",code:'.player-wrapper.s-1{aspect-ratio:16/9;color:var(--white);height:100%;left:0;position:relative;top:0;width:100%;--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-vertical) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--modal-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);--vkui--color_background_contrast_secondary_alpha:hsla(0,0%,100%,.2);--vkui--color_text_subhead:#969a9f;font-family:var(--font)}.player-wrapper.s-1 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}'};function ss(t,e){Ee(e,!0),Re(t,sm);let[i,n]=ui(),r=()=>qe(v,"$isLive$",i),o=()=>qe(D,"$availableSubtitlesList$",i),s=()=>qe(x,"$settingsVisible",i),a=()=>qe(b,"$controlsVisible",i),c=tt(e,"volume",3,void 0),m=tt(e,"muted",3,void 0),f=tt(e,"failoverHosts",3,void 0);cd(e.uiConfig);let l=eo(),u=e.store.ui.debugPanelVisible,v=e.store.state.isLive$,h=Oe(void 0);e.store.getAdmanWrapper().init({switchFromAdsToVideo:e.store.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:e.store.actions.internal.switchFromVideoToAds,setMuted:e.store.actions.external.setMuted},e.store.ads,{vsid:e.store.vsid}),Md(e.store),jt(()=>{var R,U;(U=(R=e.videoConfig.callbacks)==null?void 0:R.onDomReady)==null||U.call(R)});let _=(R=!1)=>{R?e.store.actions.external.firstStart(e.showAds):e.store.actions.internal.firstStart(e.showAds)},y=()=>{Wd(e.store.videoId),$a()&&e.store.actions.internal.setTrafficSavingEnabled(!0),e.store.deviceCapabilities.maxQuality!==as.VideoQuality.INVARIANT&&e.store.getPlayer().setAutoQualityLimits({max:e.store.deviceCapabilities.maxQuality});let U=Ca(e.store.videoId);if(U&&U!==as.VideoQuality.INVARIANT&&e.store.deviceCapabilities.isCodecSupported(U)){e.store.actions.internal.setQuality(U);return}};function $(R){var Q,ce,X;let U=e.sources||R;U&&e.store.initVideo({container:N(h),sources:U,failoverHosts:f(),subtitles:e.subtitles,subtitlesForcedLanguage:e.subtitlesForcedLanguage,volumeMultiplier:e.volumeMultiplier});let O=xr.safeStorage.get(hr)==="true";u.set(O),e.fromTime>0&&e.store.actions.external.seekTime(e.fromTime);let P=(ce=(Q=c())!=null?Q:lo())!=null?ce:l.volumeDefault,z=(X=m())!=null?X:Fd();if(e.store.actions.external.setVolume(P),e.store.actions.external.setMuted(z),e.store.getAdmanWrapper().setInitialVolume(z?0:P),y(),l.features.saveRate&&e.saveRate){let ie=Yd();ie&&!r()&&e.store.actions.internal.setPlaybackRate(ie)}e.store.ui.isAutoplay.set(e.autoplay),e.autoplay&&_(),e.preload&&l.features.preload&&e.store.actions.internal.preload()}Si(()=>{var U,O,P,z;let R=()=>e.store.destroy();return((U=e.live)==null?void 0:U.status)==="upcoming"?(e.store.actions.internal.setLiveWaitingStart(!0),R):((O=e.live)==null?void 0:O.status)==="waiting"?(e.store.actions.internal.setLiveWaitingRecover(!0),R):(((P=e.live)==null?void 0:P.status)==="finished"||((z=e.live)==null?void 0:z.status)==="postlive")&&!(e.sources&&(0,ou.areValidLiveRecordSources)(e.sources))?(e.store.actions.internal.setLiveWaitingRecord(!0),R):($(),R)});let D=e.store.state.availableSubtitlesList$;if(l.features.initSubtitles){let R=!1;jt(()=>{var U;if(!R&&o().length){R=!0;let O;if(l.features.userVideoPrefs&&e.store.videoId){let z=co(l.userSalt,String(e.store.videoId));z!=null&&z.subtitleTrackId&&(O=o().find(Q=>Q.value===z.subtitleTrackId))}let P=(U=e.subtitlesForcedLanguage)!=null?U:ka();P&&(O=o().find(z=>z.language===P)),e.store.actions.internal.setSubtitle(O)}})}let T=(0,xr.getWindow)().innerWidth/640;(0,xr.getWindow)().document.documentElement.style.fontSize=`${T}px`;let{controlsVisible:b,settingsVisible:x}=e.store.ui,A={};rn(Ji.CONTEXT_KEY,A);let S=R=>{switch(R.key){case"Enter":R.target===R.currentTarget&&(e.store.actions.internal.onUserInput(),R.preventDefault());break;case"Escape":e.store.actions.internal.onBackButton()||e.store.app.destroy();return;case"ArrowUp":case"ArrowDown":A.focusManager.onKeyDown(R)||(a()?e.store.actions.internal.clearShowByInput():e.store.actions.internal.onUserInput());break;default:A.focusManager.onKeyDown(R)}},L=R=>{["ArrowUp","ArrowDown"].includes(R.key)||e.store.actions.internal.onUserInput()},k;jt(()=>(A.focusManager=new Ji(k),()=>{A.focusManager.destroy()})),e.store.ui.controlsVisible.subscribe(R=>{R||k.focus()});var E=am();E.__click=[rm,s,x,a,b,e],E.__keydown=S,E.__mousemove=[om,e];var M=B(E);os(M,{get videoContainer(){return N(h)},set videoContainer(R){pe(h,R,!0)}}),H(E),li(E,R=>k=R,()=>k),ye(()=>st(E,`font-size: ${T}px;`)),Cn("keydown",E,L,!0),J(t,E);var g=we({initVideo:$});return n(),g}Zt(["click","keydown","mousemove"]);var Ar=require("@vkontakte/videoplayer-shared/es2015"),bo=class{constructor(e){this.hasFakeState=!1;this.onPopState=({state:e})=>{let i=this.store.actions.internal.onBackButton(),n=(0,Ar.getWindow)();n.removeEventListener("popstate",this.onPopState),i?(n.history.pushState(e,""),n.addEventListener("popstate",this.onPopState)):this.hasFakeState&&(this.hasFakeState=!1,n.history.back())};this.store=e;let i=(0,Ar.getWindow)();i.history.pushState(i.history.state,""),this.hasFakeState=!0,i.addEventListener("popstate",this.onPopState)}destroy(){(0,Ar.getWindow)().removeEventListener("popstate",this.onPopState),this.hasFakeState&&(0,Ar.getWindow)().history.back()}};var Pi=require("@vkontakte/videoplayer-shared/es2015"),xo=class{constructor(){this.maxQuality=(0,Pi.videoHeightToQuality)((0,Pi.getWindow)().document.body.offsetHeight*(0,Pi.getWindow)().devicePixelRatio)||Pi.VideoQuality.INVARIANT}isCodecSupported(e){return this.maxQuality===Pi.VideoQuality.INVARIANT?!0:(0,Pi.isLowerOrEqual)(e,this.maxQuality)}};var lm={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:ut.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,isTouch:!1,isAudioDisabled:!1,tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showNextPrevButtons:!1},Ao=class{constructor(e,i={},n=(0,ut.getWindow)().document.body){this.fatalError$=new ut.ValueSubject(null);this.subscription=new ut.Subscription;this.videoConfig=void 0;this.internalsExposure=null;this.status="Not initialized";this.createOneStat=e=>{if(!this.videoConfig)return;let{albumId:i,statPlace:n,statUserSalt:r,statTrackCode:o,statVKAppId:s,refreshStatAuthToken:a,autoplay:c,isTouch:m,refDomain:f,deviceId:l}=this.videoConfig,{unitedVideoId:u,isClip:v=!1}=e;if(this.uiConfig.features.statistics&&u)try{return new jn.OneStat({movieId:u,albumId:i,place:n,trackCode:o,vkAppId:s,autoplay:c!=null?c:!1,mobile:m,clip:v,refDomain:f,deviceId:l,isPreviewPlayerView:!1},{refreshAuthToken:a,userSalt:r,config:this.statisticsConfig})}catch(_){console.error(_)}};var Q,ce,X,ie,Y,be,q,He,ae,_e,j,Se,he,Ae,Be;if((0,ut.getWindow)()!==top)throw new Error("Must run in top frame");if(this.logger=new ut.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.parentNode=n,this.parentNode.className="vk-vp-tv-parentNode",this.fatalError$.subscribe(ke=>{this.unmountComponent(this.svelteErrorComponent),ke&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=mn(Aa,{target:this.parentNode}))}),!Array.isArray(e.videos)||e.videos.length===0){let ke=new Error("empty videos");this.fatalError$.next(ke),(ce=(Q=e.callbacks)==null?void 0:Q.onCrashed)==null||ce.call(Q,ke.message);return}else this.fatalError$.next(null);this.uiConfig=ba((X=i.ui)!=null?X:{}),this.videoConfig=hd(lm,(0,ut.cloneDeepWith)(e)),(ie=this.videoConfig).autoplay&&(ie.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(Y=this.uiConfig.ads.enable)!=null?Y:this.videoConfig.showAds,this.videoConfig.adsSlotId=(be=this.uiConfig.ads.slot)!=null?be:this.videoConfig.adsSlotId,(q=this.videoConfig).canRewindLive&&(q.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(He=this.videoConfig.supportLink)!=null?He:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,ut.devNull.push(gr,{key:"videoplayer_embed",strings:["new","player_init_player"],numbers:[(0,ut.now)()]}),this.statisticsConfig=(ae=i.statistics)!=null?ae:{},this.playerId=(0,ut.getPlayerId)(e.playerId),this.uiConfig=ba((_e=i.ui)!=null?_e:{}),this.coreConfig=(j=i.core)!=null?j:{},this.metaConfig=i.meta;let r=this.videoConfig.videos[0],{statAuthToken:o,preload:s,autoplay:a,volume:c,muted:m,fromTime:f,supportLink:l,interfaceLanguage:u,isCyrillicRelatedInterface:v,isAudioDisabled:h,isLiveCatchUpMode:_,failoverHosts:y,canDownload:$,callbacks:D,saveRate:T,volumeMultiplier:b,mediascopePixels:x}=this.videoConfig,{sources:A,unitedVideoId:S,previewThumbsData:L,subtitles:k,subtitlesForcedLanguage:E,live:M,adsExternalApi:g}=r;if(!A&&!M){let ke=new Error("empty sources and live");this.fatalError$.next(ke),(Se=D==null?void 0:D.onCrashed)==null||Se.call(D,ke.message);return}let R=this.createOneStat(r),U=this.createThinOneStat(r),O;x&&(O=new jn.MediascopePixel({pixels:x})),(R||U)&&(this.statistics=new io(R,U,O)),this.store=tu({interfaceLanguage:u,isCyrillicRelatedInterface:v,videoId:S,isLiveCatchUpMode:_,isAudioDisabled:h,statAuthToken:o,callbacks:D,previewThumbsData:L,canDownload:$,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,saveRate:T,internalsExposure:this.internalsExposure,statistics:this.statistics,playerId:this.playerId,app:this,video:r,deviceCapabilities:new xo});let P={sources:A,store:this.store,videoConfig:this.videoConfig,uiConfig:this.uiConfig,subtitles:k,subtitlesForcedLanguage:E,live:M,preload:s,autoplay:a,muted:m,volume:c,fromTime:f,supportLink:l,showAds:!1,failoverHosts:y,saveRate:T,volumeMultiplier:b,adsExternalApi:g,getVideoDeeplink:this.videoConfig.getVideoDeeplink},z={target:this.parentNode,props:P};this.svelteRootComponent=mn(ss,z),(he=this.internalsExposure)==null||he.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Be=(Ae=this.videoConfig)==null?void 0:Ae.callbacks)!=null&&Be.onDevNullLog)?ut.devNull.subscribe(gr,this.videoConfig.callbacks.onDevNullLog):ut.devNull.destroy(gr),this.backButtonService=new bo(this.store),this.status="Normal"}destroy(){var e,i,n;this.status!=="Destroyed"&&(this.backButtonService.destroy(),this.status="Destroyed",this.subscription.unsubscribe(),(e=this.internalsExposure)==null||e.destroy(),ut.devNull.destroy(gr),(n=(i=this.store)==null?void 0:i.getPlayer())==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.svelteStubComponent),(0,ut.getWindow)().history.back())}createThinOneStat(e){if(!this.videoConfig)return;let{deviceId:i,preload:n,refreshStatAuthToken:r}=this.videoConfig,{unitedVideoId:o}=e;if(this.uiConfig.features.thinStatistics&&o)return new jn.ThinOneStat.ThinOneStat({deviceId:i,movieId:o,preload:n,isPreviewPlayerView:!1},{config:this.statisticsConfig,refreshAuthToken:r})}unmountComponent(e){e&&fr(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}setLiveStart(e){var n,r;let i=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${i}`}),i||((n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(r=this.store)==null||r.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var n;let e=(n=this.store)==null?void 0:n.getPlayer();if(!e)return!1;let{info:i}=e;return i.canPlayLiveTailBuffer$.getValue()&&!i.isStalled$.getValue()&&!i.atLiveEdge$.getValue()}createPlayer(e,i={},n){}setLiveWaitingRecover(e=!1){var o;let i=this.isLiveTailPlaying(),n=e||!i;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${i}`});let r=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecover(!0)};n&&r(),(o=this.store)!=null&&o.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;n||r(),(s=this.store)==null||s.destroy()})}setLiveWaitingRecord(){var r;let e=this.isLiveTailPlaying(),i=!e;this.log({message:`live waiting record: liveTailPlaying = ${e}`});let n=()=>{var o;(o=this.store)==null||o.actions.internal.setLiveWaitingRecord(!0)};i&&n(),(r=this.store)!=null&&r.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o;i||n(),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var o;let i=this.isLiveTailPlaying(),n=!i;this.log({message:`live ended: liveTailPlaying = ${i}`});let r=()=>{var s,a;(s=this.store)==null||s.actions.internal.setLiveWaitingRecover(!1),(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){r();return}(o=this.store)!=null&&o.callbacks&&(this.store.callbacks.onLiveEnded=r)}};var zn=require("@vkontakte/videoplayer-shared/es2015"),Eo=require("@vkontakte/videoplayer-core/es2015");
|