@vkontakte/videoplayer-tv 1.0.1-dev.45dd8a5f.0 → 1.0.1-dev.481c1206.0
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 +34 -34
- package/es2015.esm.js +34 -34
- package/es2018.cjs +33 -33
- package/es2018.esm.js +33 -33
- package/es2024.cjs +33 -33
- package/es2024.esm.js +33 -33
- package/esnext.cjs +33 -33
- package/esnext.esm.js +33 -33
- package/evergreen.esm.js +33 -33
- package/package.json +1 -1
- package/types/AndroidTvPlayer.d.ts +44 -0
- package/types/components/Ads/admanWrapper.d.ts +1 -1
- package/types/components/Controls/CircleButton/types.d.ts +12 -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 +8 -0
- package/types/store/index.d.ts +2 -217
- package/types/store/types.d.ts +433 -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 -97
package/es2015.cjs
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-tv v1.0.1-dev.
|
|
3
|
-
* Wed,
|
|
2
|
+
* @vkontakte/videoplayer-tv v1.0.1-dev.481c1206.0
|
|
3
|
+
* Wed, 25 Feb 2026 12:35:50 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-1/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Fu=Object.create;var $n=Object.defineProperty,Hu=Object.defineProperties,Qu=Object.getOwnPropertyDescriptor,Bu=Object.getOwnPropertyDescriptors,Yu=Object.getOwnPropertyNames,bs=Object.getOwnPropertySymbols,Wu=Object.getPrototypeOf,xs=Object.prototype.hasOwnProperty,Gu=Object.prototype.propertyIsEnumerable;var Es=t=>{throw TypeError(t)};var Ao=(t,e,i)=>e in t?$n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ee=(t,e)=>{for(var i in e||(e={}))xs.call(e,i)&&Ao(t,i,e[i]);if(bs)for(var i of bs(e))Gu.call(e,i)&&Ao(t,i,e[i]);return t},Ge=(t,e)=>Hu(t,Bu(e));var qu=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ku=(t,e)=>{for(var i in e)$n(t,i,{get:e[i],enumerable:!0})},As=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Yu(e))!xs.call(t,r)&&r!==i&&$n(t,r,{get:()=>e[r],enumerable:!(n=Qu(e,r))||n.enumerable});return t};var Zu=(t,e,i)=>(i=t!=null?Fu(Wu(t)):{},As(e||!t||!t.__esModule?$n(i,"default",{value:t,enumerable:!0}):i,t)),Ju=t=>As($n({},"__esModule",{value:!0}),t);var Jt=(t,e,i)=>Ao(t,typeof e!="symbol"?e+"":e,i),ws=(t,e,i)=>e.has(t)||Es("Cannot "+i);var kt=(t,e,i)=>(ws(t,e,"read from private field"),i?i.call(t):e.get(t)),pr=(t,e,i)=>e.has(t)?Es("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),fr=(t,e,i,n)=>(ws(t,e,"write to private field"),n?n.call(t,i):e.set(t,i),i);var Ft=(t,e,i)=>new Promise((n,r)=>{var a=u=>{try{o(i.next(u))}catch(m){r(m)}},l=u=>{try{o(i.throw(u))}catch(m){r(m)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(a,l);o((i=i.apply(t,e)).next())});var wd=qu(()=>{"use strict";AdmanHTML=function(){"use strict";function t(y){y&&typeof y=="string"&&new AdmanHTML.OpenLinkPopupRender($).open(y)}function e(y){Re.initMode(y.slot?"slot":"json",{slot:y.slot,version:$.version}),$.slotId=y.slot,$.playerEl=y.playerEl,$.wrapper=y.wrapper,$.videoEl=y.videoEl,$.audioEl=y.audioEl,$.clickEl=y.clickEl,$.quality=parseInt(y.videoQuality||y.params&&y.params.videoQuality||360,10),$.browser=y.browser||{},$.config=y.config||{},$.pauseOnHide=y.pauseOnHide||!1,$.viewabilityValue=y.viewabilityValue||.5,$.viewabilityEl=y.viewabilityEl||$.videoEl,$.disclaimer=y.disclaimer!==!1,$.callToActionButton=y.callToActionButton!==!1,$.forcePreloadAdditionalData=!!y.forcePreloadAdditionalData,$.ctaStyles=y.ctaStyles,$.pause=f,$.resume=d,$.openPopup=t;var Q=AdmanHTML.Utils.getPageLocation(),ne=AdmanHTML.Utils.getHostname(Q||""),ze=AdmanHTML.Utils.isMobile(navigator.userAgent||navigator.vendor||window.opera);AdmanHTML.Utils.isElement($.videoEl)&&ze&&$.videoEl.setAttribute("playsinline",""),$.location={top:Q,topEncoded:encodeURIComponent(Q||""),hostname:ne,hostnameEncoded:encodeURIComponent(ne||"")},Re.rb(Re.code.ADMAN_SUCCESSFULLY_INITIALIZED),$.stats.metrics("initing"),w=y.midrollPointsP||null,Ne=!w&&y.midrollPoints?y.midrollPoints:null,$.config.vpaidJsInterface||($.config.vpaidJsInterface=de),$.config.vpaidHtmlInterface||($.config.vpaidHtmlInterface=me);var Ce="https://ad.mail.ru/vp/"+$.slotId+"?app_name=admanhtml&version="+this.getVersion();if(y.params&&y.params.constructor&&y.params.constructor===Object){var tt=[];"flash"in y.params||(y.params.flash=AdmanHTML.Utils.checkFlash()?1:0);for(var Je in y.params)y.params.hasOwnProperty(Je)&&tt.push(Je+"="+y.params[Je]);var dt=AdmanHTML.Utils.getUserIdQuery();dt&&tt.push(dt),tt.length&&(Ce+="&"+tt.join("&"))}if(($.slotId||y.json||y.adUrl)&&!$.browser.adBlock){var it={},bi=this;$.slotId?it.url=Ce:y.adUrl?(y.adUrl.indexOf("ad.mail.ru/")!==-1&&(y.adUrl+=y.adUrl.indexOf("?")===-1?"?":"&",y.adUrl+="version="+this.getVersion()),it.url=y.adUrl):it.data=y.json,pe=new AdmanHTML.AdSlot($,it,function(){var Zt=pe.getRootSettings()||{},xi=Zt.requestHostname;if(xi&&!AdmanHTML.Utils.matchHostname($.location.hostname,xi,P))return $.stats.logError("HOSTNAME_MISMATCH:"+xi+":"+$.location.topEncoded,{impressionID:Zt.impressionID,padID:Zt.padID,bannerIDs:Zt.bannerIDs}),void($.callbacks.onError&&$.callbacks.onError());$.location.hostname||$.stats.logError("HOSTNAME_EMPTY:"+xi+":"+$.location.topEncoded),$.cb("onReady",[{settings:pe.settings}]);var Ui=1e6,Ci=[],Be=[],Fe=y.params&&y.params.duration?parseInt(y.params.duration,10):Ui;Fe===0&&(Fe=Ui),Ne&&Ne.sort(AdmanHTML.Utils.numSorter),w&&w.sort(AdmanHTML.Utils.numSorter);var ot=pe.getSection("midroll")||[],po=pe.getServices("midroll",function(yt){return!yt.started()&&yt.isAfter()})||[];ot=ot.concat(po),ot.forEach(function(yt){var nt=yt.getAd();nt.point||nt.pointP||(nt.pointP=50)}),ot.sort(function(yt,nt){var zi=yt.getAd(),on=nt.getAd();return zi.pointP&&on.pointP?zi.pointP-on.pointP:(zi.point||zi.pointP/100*Fe)-(on.point||on.pointP/100*Fe)}).forEach(function(yt){if(!yt.isEmpty||!yt.isEmpty()){var nt=yt.getAd();Ne&&Ne.length?(nt.point=Ne.shift(),nt.pointP=null,Be.push(nt.point),yt.addImmutableProperty("point",nt.point)):w&&w.length?(nt.pointP=w.shift(),nt.point=null,Ci.push(nt.pointP),yt.addImmutableProperty("pointP",nt.pointP)):Ne||w||(nt.point?(yt.addImmutableProperty("point",nt.point),Be.push(nt.point)):nt.pointP&&(yt.addImmutableProperty("pointP",nt.pointP),Ci.push(nt.pointP)))}}),O=Ci.sort(AdmanHTML.Utils.numSorter),M=Be.sort(AdmanHTML.Utils.numSorter);var Dn=pe.getSection("research");Dn&&Dn.length>0&&(Ie=Dn[0]),$.pauseOnHide&&xe(bi)})}else{Re.logError("Adman init failed");var ii=$.callbacks.onError;ii&&ii(),q=_e=B=null}}function i(y,Q){Q=Q||!1;var ne;if(q&&(q.log("sectionShown"),q.disposed||(q.dispose(),q.disposed=!0,D(q,B)),y&&q.log("closedByUser")),B&&!ue[B]&&(ue[B]=B!=="midroll",ne=y?$.callbacks.onClosed:$.callbacks.onCompleted),le[B]&&_e&&(le[B]=le[B].concat(_e.splice(0,_e.length))),q=_e=B=null,l(),typeof Q=="object"&&Q.force===!0)return void((ne=$.callbacks.onError)&&ne(Q.message));ne&&ne()}function n(y){var Q=pe.getSettings(B).maxBannersShow||0,ne=De[B]||0,ze=!Q||ne<Q;if(q&&!q.disposed&&(q.complete&&q.log("playbackCompleted"),q.dispose(),q.disposed=!0,D(q,B)),_e&&_e.length&&ze)q=_e.shift(),De[B]=ne+(q.isEmpty()?0:1),q.reset(),q.started=!0,q.start();else{var Ce=pe.getNextAfterService(B);B!=="midroll"&&Ce&&ze?Ce.start(function(){_e=pe.getSection(B),n()}):pe.getSettings(B).loop&&le[B]&&le[B].length?(_e=le[B],le[B]=[],n()):i(!1,y)}}function r(y){_e||(B=y||"preroll",pe.resetServices(B),ue[B]=!1,_e=pe.getSection(B),y==="midroll"&&(_e=u(_e)),n(),B&&(le[B]=le[B]||[]),q&&(q.log("sectionStarted"),$.debugMode&&console.log(B,q.getAd(),q.getSettings(),_e)),a(B),$.stats.metrics("started"))}function a(y){(Ue=pe.getDebug(y))&&Ue.start()}function l(){Ue&&Ue.dispose(),Ue=null}function o(y,Q){function ne(Be,Fe){for(var ot=0;ot<Be.length&&!(Math.abs(Be[ot])>Fe);ot++);return ot>0?[Be[ot-1]]:[]}function ze(Be){var Fe=Be.getAd();return!(Fe.point&&M.indexOf(Fe.point)===-1||Fe.pointP&&O.indexOf(Fe.pointP)===-1)&&(Fe.point&&Fe.point<=Zt||Fe.pointP&&Fe.pointP<=xi)}function Ce(){W=O.reduce(function(Be,Fe){var ot=Math.ceil(Q*Fe/100);Be.indexOf(ot)===-1&&Be.push(ot)},M).sort(AdmanHTML.Utils.numSorter)}function tt(Be){return W.reduce(function(Fe,ot){return Fe===0&&ot>0&&ot-Be>=0?ot-Be:Fe},0)}if(!isNaN(y)&&!isNaN(Q)){var Je=parseInt(y),dt=Math.floor(100*y/Q);fe=Q,ee=O&&isFinite(dt)?ne(O,dt):[],re=M?ne(M,Je):[],ee[0]&&re[0]&&(Math.abs(ee[0]*fe/100)>Math.abs(re[0])?re=[]:ee=[]);var it=typeof pe=="object"&&typeof pe.getSettings=="function"?pe.getSettings("midroll").midpointAllowableDelta:void 0;g=it!=null?it:g;var bi=100*g/Q,ii=g!==0&&g<5?g:5,Zt=Je+ii,xi=dt+ii/Q*100;if(pe.getServices("midroll",function(Be){return!(!Be.isAfter()||Be.started()||!ze(Be))}).forEach(function(Be){var Fe=Je-Be.getAd().point,ot=dt-Be.getAd().pointP;Fe<g||ot<bi||g===0?Be.start():$.debugMode&&console.log("skip midroll fetch")}),ee.length&&ee[0]>0||re.length&&re[0]>0){var Ui=!1,Ci=pe.getSection("midroll");Ci&&Ci.forEach(function(Be){var Fe=Be.getAd();(Fe.pointP&&~ee.indexOf(Fe.pointP)||Fe.point&&~re.indexOf(Fe.point))&&(Ui=!0)}),Ui&&$.cb("adMidrollPoint",[y])}return $.forcePreloadAdditionalData?(Ce(),tt(y)):void 0}}function u(y){function Q(ze,Ce){var tt=ze.getAd(),Je=Ce.getAd();return(tt.point||tt.pointP*fe/100)-(Je.point||Je.pointP*fe/100)}var ne=[];return y&&y.forEach(function(ze){var Ce=ze.getAd();(Ce.pointP&&~ee.indexOf(Ce.pointP)||Ce.point&&~re.indexOf(Ce.point))&&ne.push(ze)}),M.forEach(function(ze,Ce){~re.indexOf(ze)&&(M[Ce]=-M[Ce])}),O.forEach(function(ze,Ce){~ee.indexOf(ze)&&(O[Ce]=-O[Ce])}),ne.sort(Q),ne}function m(){$.cb("onSkipped"),q&&(q.log("closedByUser"),q.skip(n))}function f(){q&&(q.log("playbackPaused"),q.pause())}function d(y){q&&(y||q.log("playbackResumed"),q.resume())}function c(y){y=y<0?0:y>1?1:y,q&&q.setVolume(y)}function h(){q&&q.log("fullscreenOn")}function x(){q&&q.log("fullscreenOff")}function _(){i()}function b(y,Q){$.callbacks[y]=Q}function L(y){var Q=[],ne=pe.getSection(y||"preroll");return ne&&ne.forEach(function(ze){ze.isEmpty()||Q.push(ze.getExtendedAdForApp())}),Q}function k(y){return pe.getAfterServices(y||"preroll")}function D(y,Q){y.isEmpty()||y.isStat()||le[Q]&&le[Q].push(y)}function S(y){return(y.right-y.left)*(y.bottom-y.top)}function E(y,Q){return{left:y.left+Q.left,right:y.right+Q.left,top:y.top+Q.top,bottom:y.bottom+Q.top}}function T(y){return y&&!isNaN(y)?y:null}function N(y,Q){var ne=y.document,ze=Q==="width"?"clientWidth":"clientHeight",Ce=Q==="width"?"innerWidth":"innerHeight",tt=y[Ce],Je=ne.body[ze],dt=ne.documentElement[ze],it=1/0;return it=T(Je)||it,it=T(dt)||it,tt&&!isNaN(tt)&&(it=Math.min(it,tt)),it}function v(y){return{width:N(y,"width"),height:N(y,"height")}}function z(y,Q){var ne=v(Q);return{left:Math.max(0,y.left),right:Math.min(ne.width,y.right),top:Math.max(0,y.top),bottom:Math.min(ne.height,y.bottom)}}function A(y,Q){try{for(var ne=y.getBoundingClientRect(),ze=S(ne),Ce=Q,tt=Ce.parent;Ce!==tt;){var Je=Ce.frameElement.getBoundingClientRect();ne=E(ne,Je);var dt=Math.max(Je.left,ne.left),it=Math.min(Je.right,ne.right),bi=Math.max(Je.top,ne.top),ii=Math.min(Je.bottom,ne.bottom);ne.left=dt,ne.right=it<dt?dt:it,ne.top=bi,ne.bottom=ii<bi?bi:ii,Ce=Ce.parent}ne=z(ne,tt);var Zt=S(ne);return{left:ne.left,right:ne.right,top:ne.top,bottom:ne.bottom,percent:Zt/ze*100}}catch(xi){return{left:0,right:0,top:0,bottom:0,percent:0}}}function I(){return window.hasOwnProperty("IntersectionObserver")}function U(y){try{if(y===y.top)return"ON_PAGE";for(var Q=y;Q!==Q.parent;){if(Q.document.domain!==Q.parent.document.domain)return"XD_FRAME";Q=Q.parent}return"S_FRAME"}catch(ne){}return"XD_FRAME"}function j(y){return!I(y)&&U(y)!=="XD_FRAME"}function se(y,Q,ne){X(ne,A(y,window).percent>=100*Q)}function R(y){return y.mozVisibilityState?"mozvisibilitychange":y.webkitVisibilityState?"webkitvisibilitychange":y.visibilityState?"visibilitychange":""}function Y(y){X(y,!0)}function F(y){X(y,!1)}function X(y,Q){var ne=y.getPlayStatus();y.prevVisibility!==Q&&(y.prevVisibility=Q,ne.curStatus!==void 0&&ne.curStatus!==ne.prevStatus&&(Q?y.resume():y.pause()))}function xe(y){var Q=y,ne=$.viewabilityValue,ze=$.viewabilityEl;if(ze){if(I()){var Ce=new IntersectionObserver(function(dt){dt.forEach(function(it){X(Q,it.intersectionRatio>=ne)})},{threshold:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});Ce.observe(ze)}else if(j){var tt=function(){se(ze,ne,Q)};window.addEventListener("resize",tt,!1),window.addEventListener("scroll",tt,!1)}}var Je=(R(document),J.hasFocus());setInterval(function(){var dt=J.hasFocus();Je!==dt&&(Je=dt,Je?Y(Q):F(Q))},500)}function te(){return $.playStatus===void 0?{prevStatus:void 0,curStatus:void 0}:$.playStatus}var pe,B,_e,q,Ue,Ie,fe,$={version:"2.2.57",debugMode:!0,callbacks:{},cb:function(y,Q){switch(y){case"onCompleted":q&&(q.complete=!0),n();break;case"onError":q&&(q.error=!0),n(Q);break;case"onClosed":i(!0);break;default:var ne=$.callbacks[y];ne&&ne.apply(this,Q)}}},ye=window.location.protocol==="http:"?"http:":"https:",de=ye+"//ad.mail.ru/static/admanhtml/vpaid-js-interface.swf",me=ye+"//ad.mail.ru/static/rbadman-vpaid.html",Re=new AdmanHTML.Stats($),Oe=new AdmanHTML.Viewability,Ne=[],w=[],M=[],O=[],W=[],ee=[],re=[],De={},le={},g=3,P=function(){for(var y=window,Q=frameElement;Q;){try{Q=y.parent.frameElement}catch(ne){break}y=y.parent}return y}(),J=P.document;$.stats=Re,$.viewability=Oe,$.protocol=ye,$.stats.metrics();var ue={};return{init:e,start:r,stop:_,pause:f,resume:d,setVolume:c,fullscreenOn:h,fullscreenOff:x,setFullscreen:function(y){y?h():x()},skip:m,destroy:_,getPlayStatus:te,getSlot:function(){return $.slotId},setSlot:function(y){$.slotId=y},getVersion:function(){return $.version},getBannersForSection:L,getServicesForSection:k,hasSection:function(y){return y=y||"preroll",!(!L(y).length&&!k(y).length)},setDebug:function(y){$.debugMode=y},setPosition:o,getUserIdQuery:AdmanHTML.Utils.getUserIdQuery,onReady:b.bind(this,"onReady"),onError:b.bind(this,"onError"),onStarted:b.bind(this,"onStarted"),onPaused:b.bind(this,"onPaused"),onPlayed:b.bind(this,"onPlayed"),onCompleted:b.bind(this,"onCompleted"),onClosed:b.bind(this,"onClosed"),onSkipped:b.bind(this,"onSkipped"),onClicked:b.bind(this,"onClicked"),onTimeRemained:b.bind(this,"onTimeRemained"),onDurationChanged:b.bind(this,"onDurationChanged"),adMidrollPoint:b.bind(this,"adMidrollPoint"),_onVPAIDStarted:b.bind(this,"onVPAIDStarted"),research:{pause:function(){Ie&&Ie.pause()},resume:function(){Ie&&Ie.resume()},complete:function(){Ie&&Ie.setComplete()},setVolume:function(y){Ie&&Ie.setVolume(y)},setFullscreen:function(y){Ie&&Ie.setFullscreen(y)},setPosition:function(y,Q){Ie&&Ie.setPosition(y,Q)}}}},AdmanHTML.Ad=function(t,e){"use strict";function i(S){S&&S.forEach(function(E){n(E.url,E.type,E)})}function n(S,E,T){var N,v,z,A;if(S){try{S=decodeURIComponent(S)}catch(Y){}if(E==="playheadReachedValue")T.thresholdValue!==void 0||T.value!==void 0?(N=parseInt(T.thresholdValue||T.value,10),e.stats.push({name:"thresholdValue",value:N,type:"thresholdValue."+N,url:S})):T.thresholdPValue===void 0&&T.pvalue===void 0||(N=parseInt(T.thresholdPValue||T.pvalue,10),e.stats.push({name:"thresholdPValue",value:N,type:"thresholdPValue."+N,url:S}));else if(E==="playheadViewabilityValue"){var I=parseInt(T.viewablePercent,10),U=T.ovv===void 0&&T.mrc===void 0||!!T.ovv||!!T.mrc,j="";z=T.startTimer!==void 0?parseInt(T.startTimer,10):0,A=T.endTimer!==void 0?parseInt(T.endTimer,10):0,I=isNaN(I)?50:I,T.value!==void 0?(N=parseInt(T.value,10),v="ovvValue"):T.pvalue!==void 0?(N=parseInt(T.pvalue,10),v="ovvPValue"):T.duration!==void 0&&(N=parseInt(T.duration,10),v="mrcValue",U||(j=T.unload?"unload":"complete"));var se={name:v,value:N,url:S,percent:I,viewable:U,start:z,end:A,onevent:j};"target"in T&&(se.target=T.target),e.stats.push(se)}else if(E==="playheadTimerValue"){z=T.startTimer!==void 0?parseInt(T.startTimer,10):0,A=T.endTimer!==void 0?parseInt(T.endTimer,10):0;var R=T.rate!==void 0?parseInt(T.rate,10):1;e.stats.push({name:"timerValue",rate:R,url:S,start:z,end:A})}else e.stats.push({name:E,type:E,url:S})}}function r(S){e.click=S,e.ad&&(e.ad.urlToNavigateOnClick=S)}function a(S,E){e.extensions[S]=E}function l(S,E,T){!T&&S in e.immutables||(e.immutables[S]=E)}function o(S){e.settings=e.settings||{},AdmanHTML.Utils.deepExtend(e.settings,S)}function u(S){function E(A){var I=A.type||"";return!(~I.indexOf("video")&&I!=="video/mp4"||~I.indexOf("audio")&&I!=="audio/mp3"&&I!=="audio/mpeg")}function T(){t.stats.rb(t.stats.code.UNKNOWN_ADV_TYPE),t.stats.logError("UNKNOWN_ADV_TYPE")}if(e.ad=S,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 N;e.ad.mediafiles.forEach(function(A){E(A)&&(!N||Math.abs(parseInt(A.height)-t.quality)<Math.abs(parseInt(N.height)-t.quality))&&(N=A)}),N&&AdmanHTML.Utils.mixin(e.ad,N)}delete e.ad.statistics,delete e.ad.mediafiles;var v,z;switch(e.ad.type){case"swf":case"application/x-shockwave-flash":if(z=e.ad.apiFramework||e.ad.api,t.browser.mobile||z&&z!=="VPAID")return T(),!1;v=z?new AdmanHTML.VpaidSwfAdRenderer(t,this):new AdmanHTML.SwfAdRenderer(t,this);break;case"javascript":case"application/javascript":if((z=e.ad.apiFramework||e.ad.api)&&z!=="VPAID")return T(),!1;v=new AdmanHTML.VpaidJsAdRenderer(t,this);break;case"video":case"video/mp4":v=new AdmanHTML.VideoAdRenderer(t,this);break;case"audio":case"audio/mp3":case"audio/mpeg":v=new AdmanHTML.AudioAdRenderer(t,this);break;case"image":case"image/bmp":case"image/gif":case"image/jpeg":case"image/png":v=new AdmanHTML.ImgAdRenderer(t,this);break;case"text":v=new AdmanHTML.TextAdRenderer(t,this);break;case"html":v=new AdmanHTML.HtmlAdRenderer(t,this);break;case"empty":v=new AdmanHTML.EmptyAdRenderer(t,this);break;case"statistics":v=new AdmanHTML.StatisticsAdRenderer(t,this);break;case"debugData":v=new AdmanHTML.DebugAdRenderer(t,this);break;case"research":v=new AdmanHTML.ResearchAdRenderer(t,this);break;case"video/x-flv":default:return T(),!1}return e.renderer=v,!0}function m(){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 d(S,E,T){var N=S.url;N=N.replace("{requesthostname}",t.location.hostnameEncoded||""),AdmanHTML.Utils.loadImg(N);var v=E.indexOf(S);~v&&T&&E.splice(v,1)}function c(S,E){var T=E.indexOf(S);~T&&E.splice(T,1)}function h(S,E){function T(U){U=25*Math.floor(U/25);var j=D["thresholdPValue."+U];j&&(A=A.concat(j))}var N=e.stats.slice(0);if(Array.isArray(S)){var v;for(v=0;v<S.length&&!~N.findIndex(function(U){return U.name===S[v]});v++);S=S[v]||S.slice(-1)}if(!t.isPopupOpen||S!=="playbackPaused"&&S!=="playbackResumed"){var z=S+(E===void 0?"":"."+E),A=D[z]?D[z].slice(0):[];A.push(z),S==="thresholdPValue"&&T(E);var I=S==="thresholdPValue"||S==="thresholdValue"||S==="closedByUser";e.stats.forEach(function(U){(S==="thresholdPValue"&&U.name==="thresholdPValue"&&U.value<E||S==="thresholdValue"&&U.name==="thresholdValue"&&U.value<E)&&d(U,N,I),~A.indexOf(U.type)&&d(U,N,I)}),e.stats=N}}function x(S,E){function T(I,U){U[Math.ceil(I.percent/10)].duration>=1e3*I.value?I.viewable?d(I,v,!0):c(I,v):z++}function N(I){I.viewable||I.onevent===E&&d(I,v,!0)}var v=e.stats.slice(0),z=0,A=S&&S.length?T:N;return e.stats.forEach(function(I){I.name==="mrcValue"&&A(I,S)}),e.stats=v,z}function _(S,E){var T,N,v=e.stats.slice(0);e.stats.forEach(function(z){(z.name==="ovvValue"&&z.value<=S||z.name==="ovvPValue"&&z.value<=E)&&(T=T||t.viewability.getViewabilityState(),N=T.percent>z.percent&&T.focus,T.state!=="UNDETERMINED"&&(N&&z.viewable||!N&&!z.viewable)&&AdmanHTML.Utils.loadImg(z.url),c(z,v))}),e.stats=v}function b(S,E){e.renderer&&e.renderer[S]&&e.renderer[S](E)}function L(){var S={};return S=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(S,e.ad),S}function k(){var S=L();return S.statistics=e.stats.slice(0),S}e=e||{stats:[],extensions:{},immutables:{}};var D={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:a,addImmutableProperty:l,addSettings:o,getSettings:function(){return e.settings},addAd:u,getAd:function(){return e.ad},getAdForApp:L,getExtendedAdForApp:k,isEmpty:function(){return e.ad.type==="empty"},isStat:function(){return e.ad.type==="statistics"},clone:m,reset:f,log:h,logMRC:x,logOVV:_,start:b.bind(this,"start"),dispose:b.bind(this,"dispose"),pause:b.bind(this,"pause"),resume:b.bind(this,"resume"),setVolume:b.bind(this,"setVolume"),setFullscreen:b.bind(this,"setFullscreen"),setComplete:b.bind(this,"setComplete"),skip:b.bind(this,"skip"),setPosition:function(S,E){e.renderer&&e.renderer.setPosition&&e.renderer.setPosition(S,E)},complete:!1,error:!1}},AdmanHTML.AdSlot=function(t,e,i){"use strict";function n(A){k||(k={});for(var I in A)A.hasOwnProperty(I)&&(k[I]=A[I])}function r(A,I,U,j,se,R){function Y(X){t.stats.metrics("inited");var xe={};--S,X&&(E++,X=typeof X=="string"?X.trim():X,typeof X=="object"||X.charAt(0)==="{"?(xe=o(X,A,I,U||0,j,se,R),T++):X.charAt(0)==="<"?(xe=u(X,A,I,U||0,j,se,R),T++):(t.stats.rb(t.stats.code.UNKNOWN_DATA_FORMAT),t.stats.logError("UNKNOWN_DATA_FORMAT"))),A.id&&(xe.banners||xe.services?xe.banners&&z.markNonEmptyService(A.id):z.markEmptyService(A.id)),a(R)}if(U&&U>4)return void a(R);var F=z.getService(A.id);F&&F.log("serviceRequested"),++S,A.url?(A.url.indexOf("ad.mail.ru/")!==-1&&A.url.indexOf("version="+t.version)===-1&&(A.url+=A.url.indexOf("?")===-1?"?":"&",A.url+="version="+t.version),AdmanHTML.Utils.xhr(A.url,Y)):A.data&&setTimeout(Y,0,A.data)}function a(A){if(!S){if(E&&T){var I=z.getNextOnEmptyService();if(I)return void I.start(a.bind(null,A));x();var U=A||i;return U.called||(U.called=!0,U()),void(t.debugMode&&console.log(b))}l()}}function l(){var A=t.callbacks.onError;A&&A()}function o(A,I,U,j,se,R,Y){function F(fe){return fe?fe.filter(function($){return $.type&&($.type==="sectionShown"||$.type==="sectionStarted"||$.type==="sectionEmpty")}):[]}function X(fe,$,ye,de){var me=U?U.clone():new AdmanHTML.Ad(t);if(me.addStatCollection(fe.statistics),me.addStatCollection(fe.serviceStatistics),fe.type==="additionalData"){var Re;fe.id=fe.id||AdmanHTML.Utils.createIntUID(),pe.services++;var Oe=!b[ye]||b[ye].length===0;if($>0&&Oe&&(v[ye]=!0),fe.extensions)for(var Ne in fe.extensions)fe.extensions.hasOwnProperty(Ne)&&m(me,fe.extensions[Ne],Ne);if(["point","pointP","hasVolume","hasPause","allowClose","allowCloseDelay","allowSeek","allowSkip","allowTrackChange","allowVolumeChange"].forEach(function(O){O in fe&&me.addImmutableProperty(O,fe[O])}),t.forcePreloadAdditionalData||fe.doAfter!=="true"&&fe.doAfter!==!0&&!fe.doOnEmptyResponseFromId)Re=new AdmanHTML.ServiceAd(t),d(ye,I.id,Re,fe),$===0&&Oe?r(fe,me,j+1,ye,N.PRE,Y):r(fe,me,j+1,ye,null,Y);else{var w=fe.doAfter==="true"||fe.doAfter===!0?N.POST:null,M=function(O,W){r(fe,O||me,fe.allowRepeat?0:j+1,ye,w,function(){W&&W()})};Re=new AdmanHTML.ServiceAd(t,null,M),d(ye,I.id,Re,fe,me)}}else f(ye,de,me,fe),pe.banners++;return me}var xe,te=A,pe={banners:0,services:0};if(typeof A=="string")try{te=JSON.parse(A)}catch(fe){return t.stats.rb(t.stats.code.ERROR_CONVERTING_STRING_TO_JSON),void t.stats.logError("ERROR_CONVERTING_STRING_TO_JSON")}if(te.settings&&te.settings.requestHostname&&!k.requestHostname&&(k.requestHostname=te.settings.requestHostname),te&&te.settings&&(k=t.slot&&t.slot.getRootSettings()||k||{},n&&typeof n=="function")){var B=te.sections&&te.sections.preroll&&te.sections.preroll.length&&te.sections.preroll[0]||null;n({impressionID:te.settings.impressionID||"",padID:te.settings.padID||"",bannerIDs:B&&B.bannerID||""})}for(var _e in te.sections)if(te.sections.hasOwnProperty(_e)){var q=te.sections[_e],Ue=0;if(te.settings&&(xe=te.settings[_e])&&(xe.controlsStyle=te.settings.controlsStyle||0,h(_e,xe)),q.forEach(function(fe){if(fe.type==="debugData"){var $=new AdmanHTML.Ad(t);return $.addClick(fe.url),void c(_e,$,fe)}var ye=se===_e?R:"",de=X(fe,Ue,_e,ye);xe&&(de.addStatCollection(F(xe.statistics)),de.addSettings(xe)),Ue++}),q.length===0){var Ie=new AdmanHTML.Ad(t);xe&&Ie.addStatCollection(F(xe.statistics)),f(_e,"",Ie,{type:"empty"})}}return te.type&&X(te,0,se,R),pe}function u(A,I,U,j,se,R,Y){function F(q,Ue,Ie){xe(q.getElementsByTagName(Ue),Ie)}function X(q,Ue,Ie,fe){F(q,Ue,function($){fe(pe($),Ie?te($,Ie):null,$)})}function xe(q,Ue){Array.prototype.forEach.call(q,Ue.bind(this))}function te(q,Ue){var Ie=q.attributes.getNamedItem(Ue);return Ie?Ie.value:null}function pe(q){return q&&q.childNodes&&q.childNodes[0]&&q.childNodes[0].wholeText?q.childNodes[0].wholeText.trim():null}var B,_e={banners:0,services:0};try{B=AdmanHTML.Utils.parseXml(A)}catch(q){return t.stats.rb(t.stats.code.ERROR_CONVERTING_STRING_TO_XML),void t.stats.logError("ERROR_CONVERTING_STRING_TO_XML")}return F(B,"Ad",function(q){function Ue($){var ye=U?U.clone():new AdmanHTML.Ad(t);X(q,"Impression","id",function(me){try{ye.addStat(me,"playbackStarted")}catch(Re){}}),X(q,"Extension","type",function(me,Re){m(ye,me,Re)}),X(q,"Error",null,function(me){ye.addStat(me,"error")}),X($,"Tracking","event",ye.addStat);var de=$.getElementsByTagName("VideoClicks")[0];return de&&xe(de.childNodes,function(me){me.tagName==="ClickThrough"?ye.addClick(pe(me)):me.tagName==="ClickTracking"&&ye.addStat(pe(me),"click")}),ye}function Ie($){var ye={width:te($,"width"),height:te($,"height"),id:te($,"id"),assetWidth:te($,"assetWidth"),assetHeight:te($,"assetHeight"),expandedWidth:te($,"expandedWidth"),expandedHeight:te($,"expandedHeight"),apiFramework:te($,"apiFramework"),adSlotID:te($,"adSlotID"),statistics:[]};return X($,"StaticResource",null,function(de){ye.staticResource=de}),X($,"HTMLResource",null,function(de){ye.htmlResource=de}),X($,"IFrameResource",null,function(de){ye.iframeResource=de}),X($,"CompanionClickTracking",null,function(de){ye.statistics.push({type:"click",url:de})}),X($,"Tracking","event",function(de,me){ye.statistics.push({type:me,url:de})}),X($,"CompanionClickThrough",null,function(de){ye.urlToNavigateOnClick=de}),ye}var fe=te(q,"id");F(q,"InLine",function($){var ye=[];F($,"CompanionAds",function(de){var me=te(de,"required")||"none";F($,"Companion",function(Re){var Oe=Ie(Re);Oe.required=me,ye.push(Oe)})}),F($,"Linear",function(de){var me,Re=Ue(de),Oe=de.parentNode;Oe&&(me=te(Oe,"adId")||te(Oe,"adID")||te(Oe,"AdId")||te(Oe,"AdID")||te(Oe,"id")),me=me||fe;var Ne={bannerID:me,mediafiles:[],duration:AdmanHTML.Utils.convertDuration(pe(de.getElementsByTagName("Duration")[0]))};I.urlToNavigateOnClick&&(Ne.urlToNavigateOnClick=I.urlToNavigateOnClick),F(de,"MediaFile",function(w){Ne.mediafiles.push({apiFramework:te(w,"apiFramework"),type:te(w,"type"),width:te(w,"width"),height:te(w,"height"),src:pe(w)})}),F(de,"AdParameters",function(w){Ne.params=pe(w);try{var M=JSON.parse(Ne.params);if(M&&M.settings&&(k=t.slot&&t.slot.getRootSettings()||k||{},n&&typeof n=="function")){var O=M.sections&&M.sections.preroll&&M.sections.preroll.length&&M.sections.preroll[0]||null;M.settings&&M.settings.preroll,n({impressionID:M.settings.impressionID||"",padID:M.settings.padID||"",bannerIDs:O&&O.bannerID||""})}}catch(W){console.log(W)}}),ye.length&&(Ne.companionAds=ye),f(se||"preroll",R,Re,Ne),_e.banners++}),F($,"NonLinear",function(de){var me=Ue(de),Re={width:te(de,"width"),height:te(de,"height"),duration:AdmanHTML.Utils.convertDuration(te(de,"minSuggestedDuration")),mediafiles:[]};X(de,"NonLinearClickThrough",null,function(Oe){me.addStat(Oe,"click")}),X(de,"StaticResource","creativeType",function(Oe,Ne){Re.mediafiles.push({type:Ne,src:Oe})}),f(se||"overlay",R,me,Re),_e.banners++})}),F(q,"VASTAdTagURI",function($){_e.services++,r({url:pe($),id:I.id},Ue(q),j+1,se,R,Y)})}),_e}function m(A,I,U){U==="controls"?A.addExtension("showControls",!!parseInt(I,10)):U==="skipTime2"?(I=isNaN(I)?AdmanHTML.Utils.convertDuration("00:"+I):parseInt(I,10),A.addExtension("allowCloseDelay",I)):U==="linkTxt"&&(A.addExtension("linkText",I),A.addExtension("adText",I))}function f(A,I,U,j){U.addAd(j)&&(U.sectionType=A,I===N.PRE&&v[A]&&(I=""),A=(I||"")+A,b[A]=b[A]||[],b[A].push(U))}function d(A,I,U,j,se){U.addAd(j),U.addInheritedAd(se),U.addStatCollection(j.statistics),U.addStatCollection(j.serviceStatistics),U.sectionType=A,z.addService(U,I)}function c(A,I,U){I.addAd(U)&&(I.section=A,D[A]=I)}function h(A,I){L[A]=L[A]||{},AdmanHTML.Utils.mixin(L[A],I),delete L[A].statistics,delete L[A].view,delete L[A].advertisment}function x(){"preroll midroll pauseroll overlay postroll claimroll".split(" ").forEach(function(A){var I=v[A]?b[A]:b[N.PRE+A],U=v[A]?b[N.PRE+A]:b[A],j=b[N.POST+A];b[A]=[].concat(I||[],U||[],j||[]),_(N.PRE+A),_(N.POST+A)})}function _(A){b[A]=[]}var b={},L={},k={},D={},S=0,E=0,T=0,N={PRE:"pre-",POST:"post-"},v={},z=new AdmanHTML.ServiceStorage(t);return r({url:e.url,data:e.data}),{getSection:function(A){return b[A]},getAfterServices:z.getAfterServices,getNextAfterService:z.getNextAfterService,resetServices:z.resetAll,getServices:z.getServices,removeService:z.removeService,getSettings:function(A){return L[A]||{}},getRootSettings:function(){return k},getDebug:function(A){return D[A]}}},AdmanHTML.ServiceAd=function(t,e,i){"use strict";function n(h){return e.ad=h,!0}function r(h){e.inheritedAd=h}function a(h,x){e.inheritedAd.addImmutableProperty(h,x,!0)}function l(h){var x=h?h.filter(function(_){return _.type==="serviceRequested"||_.type==="serviceAnswerEmpty"}):[];x&&x.forEach(function(_){o(_.url,_.type,_)})}function o(h,x){h=decodeURIComponent(h),e.stats.push({name:x,type:x,url:h})}function u(h){c=!0,i&&i(e.inheritedAd,h)}function m(){c=!1}function f(){return!(t.forcePreloadAdditionalData||!e.ad||!e.ad.doAfter)&&(e.ad.doAfter===!0||e.ad.doAfter==="true")}function d(h){function x(b){AdmanHTML.Utils.loadImg(b.url);var L=_.indexOf(b);~L&&_.splice(L,1)}var _=e.stats.slice(0);e.stats.forEach(function(b){b.type===h&&x(b)}),e.stats=_}e=e||{stats:[]};var c=!1;return{addStatCollection:l,addStat:o,addAd:n,addInheritedAd:r,addImmutableProperty:a,getAd:function(){return e.ad},start:u,reset:m,started:function(){return c},log:d,isAfter:f}},AdmanHTML.ServiceStorage=function(t){"use strict";function e(_,b){var L=_.getAd();h.push(L.id),c[L.id]={service:_},b&&c[b]&&(c[b].children=c[b].children||[],c[b].children.push(L.id)),t.forcePreloadAdditionalData||L.doAfter!=="true"&&L.doAfter!==!0&&!L.doOnEmptyResponseFromId||d.push(_)}function i(_){return c[_]?c[_].service:null}function n(_){var b=typeof _=="string"||typeof _=="number"?_:_.getAd().id;delete c[b];var L,k;for(L=0,k=d.length;L<k;L++)if(_=d[L],_.getAd().id===b){d.splice(L,1);break}}function r(_,b){if(!_)return[];var L,k,D=[];for(L in c)c.hasOwnProperty(L)&&(k=c[L].service,k.sectionType!==_||b&&!b(k)||D.push(k));return D}function a(_){h.forEach(function(b,L){_===b?(c[b].service.log("serviceAnswerEmpty"),h.splice(L,1),x.push(_),delete c[b]):c[b].children&&c[b].children.indexOf(_)!==-1&&c[b].children.splice(c[b].children.indexOf(_),1)})}function l(_){var b=c[_];b&&(b.children=null)}function o(){var _,b,L,k;for(_=0,b=d.length;_<b;_++)if(L=d[_],(k=L.getAd().doOnEmptyResponseFromId)&&x.indexOf(k)!==-1&&!L.isAfter())return d.splice(_,1),L;return null}function u(_){if(!_)return[];var b,L,k,D=[];for(b=0,L=d.length;b<L;b++)k=d[b],k.sectionType===_&&k.isAfter()&&!k.started()&&D.push(k);return D}function m(_){if(!_)return null;var b,L,k,D;for(b=0,L=d.length;b<L;b++)if(k=d[b],k.sectionType===_&&k.isAfter()&&!k.started()){if((D=k.getAd().doOnEmptyResponseFromId)&&x.indexOf(D)===-1)continue;return k.getAd().allowRepeat||d.splice(b,1),k}return null}function f(_){var b,L,k;for(b=0,L=d.length;b<L;b++)k=d[b],_&&k.sectionType!==_||k.reset()}var d=[],c={},h=[],x=[];return{addService:e,getService:i,getServices:r,removeService:n,resetAll:f,markEmptyService:a,markNonEmptyService:l,getAfterServices:u,getNextAfterService:m,getNextOnEmptyService:o}},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(D){if(c){var S=x[D];S&&l("https://r.mail.ru/d"+S+".gif?rnd="+Math.random())}else h.push(D)}function i(D,S){if(!n()){if(D)try{Object.defineProperty(_,D,{writable:!1,enumerable:!0,value:S||Date.now()-u})}catch(E){}else _.sessionId=AdmanHTML.Utils._genSessionId();u=Date.now(),Object.keys(x).length&&l("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(D){return _.hasOwnProperty(D)})}function r(D,S,E){var T=[];if(E)for(var N in E)E.hasOwnProperty(N)&&T.push(N+"="+String(E[N]));var v="";T.length&&(v="&"+T.join("&")),k||l("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+t.version+"&"+D+"="+encodeURI(S)+"&slot="+(m==="slot"?t.slotId:"json")+v),t.debugMode&&console&&console.log&&(console.log("MESSAGE: "+D+" = "+S),E&&console.log("MESSAGE EXTRA PARAMS: "+JSON.stringify(E)))}function a(D,S){var E=[];if(S)for(var T in S)S.hasOwnProperty(T)&&E.push(T+"="+String(S[T]));var N="";E.length&&(N="&"+E.join("&")),k||l("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+t.version+"&error="+encodeURI(D)+"&slot="+(m==="slot"?t.slotId:"json")+N),t.debugMode&&console&&console.warn&&console.warn("Error: "+D)}function l(D){AdmanHTML.Utils.loadImg(D)}function o(D){if(!d){var S="https://ad.mail.ru/vp/"+f+"?original="+(D.slot||"")+"&version="+D.version;d=!0,k?(console.log(S),c=!0):AdmanHTML.Utils.xhr(S,function(E){if(c=!0,E){if(typeof E=="string")try{x=JSON.parse(E.trim())}catch(N){}else typeof E=="object"&&(x=E);var T=h.slice();h=[],T.forEach(e)}})}}var u,m="slot",f=3107,d=!1,c=!1,h=[],x={},_={},b=AdmanHTML.Utils.getPageLocation(),L=AdmanHTML.Utils.getHostname(b||""),k=L.indexOf("localhost")!==-1;return{rb:e,logError:a,logMessage:r,simple:l,metrics:i,initMode:function(D,S){m=D,D==="slot"&&o(S)},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(m,f){return f?f.toUpperCase():""})}function e(u,m,f){var d,c=l[m];if(!c){for(d=0;d<o.length;d++)if(c=o[d]===""?m:t(o[d]+"-"+m),u[c]!==void 0){l[m]=c;break}}u[c]=f}function i(u){return parseInt(u)+"px"}function n(u,m){function f(d,c){return d=parseInt(d,16),c=c||1,"rgba("+(d>>16&255)+","+(d>>8&255)+","+(255&d)+","+c+")"}return Array.isArray(u)?"linear-gradient("+u.map(function(d){return f(d,m)}).join(", ")+")":f(u,m)}function r(u,m,f){var d=u.style;(f||Object.keys(m)).forEach(function(c){m.hasOwnProperty(c)&&a(d,c,m[c],m)})}function a(u,m,f,d){var c,h,x;switch(m){case"fontFace":c="fontFamily",h=f;break;case"hasBackground":f||(c="background",h="none",delete d.backgroundColor);break;case"backgroundColor":c="background",h=n(f,d.backgroundAlpha);break;case"cornerRounding":case"borderCornerRounding":c="borderRadius",h=i(Math.floor(f/2));break;case"headerColor":case"bodyColor":case"hyperlinkColor":case"textColor":c="color",h=n(f);break;case"headerSize":case"bodySize":case"hyperlinkSize":case"textSize":c="fontSize",h=i(f);break;case"headerUnderline":case"bodyUnderline":case"hyperlinkUnderline":case"textUnderline":c="text-decoration",h=f?"underline":"none",x="";break;case"headerUnderlineOnRollOver":c="text-decoration",h=f?"":"none",x=f?"":"important";break;case"headerBold":case"bodyBold":case"hyperlinkBold":case"textBold":c="fontWeight",h=f?"bold":"normal";break;case"headerIndent":case"bodyIndent":case"hyperlinkIndent":c="marginTop",h=i(f);break;case"bodyPaddingRight":c="marginRight",h=i(f);break;case"width":case"height":c=m,h=i(f);break;case"contentPadding":case"contentIndent":case"controlsSafeArea":c="padding",h=i(f);break;case"maxImageWidth":case"maxImageHeight":c=m==="maxImageWidth"?"maxWidth":"maxHeight",h=i(f);break;case"borderSize":c="borderWidth",h=i(f);break;case"borderColor":c="borderColor",h=n(f,d.borderAlpha);break;case"paddingLeft":case"paddingTop":c=m==="paddingLeft"?"left":"top",h=i(f);break;case"controlsPaddingTop":case"controlsPaddingRight":c=m==="controlsPaddingRight"?"right":"top",h=i(f)}c&&h&&(x!==void 0?u.setProperty(c,h,x):e(u,c,h))}var l={},o=["","webkit","Moz","O","ms"];return{applyStyle:r,getLength:i}}(),AdmanHTML.Utils=function(){"use strict";function t(){return fe||(fe=function(){try{if(window===window.top)return $;for(var w=window;w!==w.parent;){if(w.document.domain!==w.parent.document.domain)return de;w=w.parent}return ye}catch(M){}return de}())}function e(){if(me!==null)return me;var w=window;try{for(;w.parent!==w&&w.document.domain===w.parent.document.domain;)w=w.parent}catch(M){}return me=w,w}function i(){var w=window,M="",O=e();try{M=w.top.location.href}catch(ee){if(O&&O.parent===w.top&&(M=O.document.referrer),!M){var W=w.location.ancestorOrigins;W&&W.length&&(M=W[W.length-1])}}return M||(M=(O||window).document.referrer),M}function n(){return Ne.major?Oe:Re}function r(w){w(n())}function a(w,M){M&&w.addEventListener("load",M,!1);var O=document.getElementsByTagName("head");if(O&&O.length){var W=O[0];W&&W.appendChild(w)}}function l(w,M,O){var W=document.getElementById(M);if(W&&W.parentNode){if(!O)return;W.parentNode.removeChild(W)}W=document.createElement("style"),W.type="text/css",W.id=M,W.innerHTML=w,a(W)}function o(w){var M=document.querySelector("link[href*='"+w+"']");M||(M=document.createElement("link"),M.type="text/css",M.rel="stylesheet",M.href=w,a(M))}function u(w){var M=document.querySelector("script[src*='"+w+"']");M||(M=document.createElement("script"),M.setAttribute("type","text/javascript"),M.setAttribute("charset","utf8"),M.setAttribute("src",w),a(M))}function m(w,M){var O=AdmanHTML.Utils.getPageLocation();if(AdmanHTML.Utils.getHostname(O||"").indexOf("localhost")===-1){var W=new Image;W.onload=function(){M&&M(W)},W.src=w}else console.log(w)}function f(w,M,O,W,ee){W=W||"GET";var re=new XMLHttpRequest;return re.open(W,w,!0),re.withCredentials=!ee,re.setRequestHeader("Content-Type","text/plain"),re.send(O||null),M&&(re.onreadystatechange=function(){re.readyState===4&&(re.status===200?M(re.response):M())},re.onerror=function(){ee?M():f(w,M,O,W,!0)}),re}function d(w,M,O,W,ee){ee===void 0&&(ee=!0);var re=M*O<w*W;ee&&(re=!re);var De=re?W/M:O/w,le=Math.floor(w*De),g=Math.floor(M*De);return{x:Math.floor((O-le)/2),y:Math.floor((W-g)/2),width:Math.floor(le),height:Math.floor(g)}}function c(w){return typeof w=="object"&&!!w&&!Array.isArray(w)}function h(w){var M;for(M in w)return!1;return!0}function x(w,M){if(!w)return null;if(M){var O;for(O in M)Object.prototype.hasOwnProperty.call(M,O)&&(w[O]=M[O])}return w}function _(w,M){if(M){var O,W;for(O in M)Object.prototype.hasOwnProperty.call(M,O)&&(W=M[O],c(W)?(w[O]=w[O]||{},w[O]=_(w[O],W)):w[O]=W)}return w}function b(w,M,O){return w=w||0,M=M||0,O=O||1,Math.min(O,Math.max(M,w))}function L(w,M){return w-M}function k(){return Math.floor(Math.random()*Math.pow(2,48)).toString()}function D(w){w=w.split("+").join(" ");for(var M,O={},W=/[?&]?([^=]+)=([^&]*)/g;M=W.exec(w);)O[decodeURIComponent(M[1])]=decodeURIComponent(M[2]);return O}function S(w,M){var O;document.createEvent?(O=document.createEvent("HTMLEvents"),O.initEvent(M,!0,!0)):(O=document.createEventObject(),O.eventType=M),O.eventName=M,document.createEvent?w.dispatchEvent(O):w.fireEvent("on"+O.eventType,O)}function E(w){return w?w.substring(w.indexOf("//")+2,w.indexOf("/?")):""}function T(w){var M=document.createElement("a");return M.href=w,M.hostname}function N(w){return w.replace(/^(www[0-9]?\.)?/,"")}function v(w,M,O){if(!w||!M)return!0;if(w=N(w),M=N(M),!(O&&O.URL&&Array.prototype.includes))return new RegExp("^"+M.replace(/^(\*\.?)/,"([^/]*.)?").replace(/\./g,"\\.")+"$").test(w);try{w=new URL(w);try{return M=new URL(M),w.host.includes(M.host)}catch(W){return w.host.includes(M)}}catch(W){return w.includes(M)}}function z(w){var M=w.button,O=w.which;return O||M===void 0?O:1&M?1:2&M?3:4&M?2:0}function A(w){return z(w)===1}function I(w,M){return M=M||document.body,w!==M&&M.contains(w)}function U(w){return w&&w.nodeType===1}function j(w){var M=w.ownerDocument;return M.defaultView||M.parentWindow}function se(w){w.preventDefault()}function R(w){var M;if(window.DOMParser)M=new DOMParser().parseFromString(w,"text/xml");else{if(!window.ActiveXObject)return;M=new window.ActiveXObject("Microsoft.XMLDOM"),M.async=!1,M.loadXML(w)}return M.documentElement}function Y(w){if(w){var M=w.split(":");if(M.length===3){var O=parseInt(M[0],10),W=parseInt(M[1],10),ee=M[2].split("."),re=parseInt(ee[0],10),De=0;if(ee.length===2&&(De=parseInt(ee[1],10)),!(isNaN(O)||isNaN(W)||isNaN(re)||isNaN(De)))return 3600*O+60*W+re+De/1e3}}return NaN}function F(w,M){var O,W=w;for(O in M)M.hasOwnProperty(O)&&(W=W.replace("{{"+O+"}}",M[O]));return W}function X(w,M){if(M=M||0,window.Worker&&window.Blob){var O,W=new Blob(['var timeout; onmessage = function(e) {clearTimeout(timeout); if (e.data === "start") {timeout = setTimeout(function() { postMessage({}); }, '+M+");}}"]);try{O=new Worker(window.URL.createObjectURL(W)),O.onmessage=function(){O.terminate(),w()},O.postMessage("start")}catch(ee){return setTimeout(w,M)}return O}return setTimeout(w,M)}function xe(){function w(De){var le={};try{var g=window[De].getItem("rb_sync_id");g&&typeof(le=JSON.parse(g))!="object"&&(le={})}catch(P){}return le}var M=[],O=w("localStorage"),W=w("sessionStorage"),ee=x(O,W);for(var re in ee)ee.hasOwnProperty(re)&&M.push(re+"="+encodeURIComponent(ee[re]));return M.join("&")}function te(w){return/nr-vpaid(\.min)?\.js/.test(w)}function pe(w,M){w&&w.style&&B(w,M,!0)}function B(w,M,O){O=O||!1;var W=O?function(ee,re){w.style.setProperty(ee,re,"important")}:function(ee,re){w.style.setProperty(ee,re)};Object.getOwnPropertyNames(M).forEach(function(ee){W(ee,M[ee])})}function _e(){function w(le,g){return function(){return le.apply(g,arguments)}}function M(le){var g=le.toString(16);return g.length===1?"0"+g:g}function O(le,g,P){for(var J="",ue=g;ue<=P;ue++)J+=M(le[ue]);return J}var W="undefined",ee=typeof crypto!==W&&crypto.getRandomValues&&w(crypto.getRandomValues,crypto)||typeof msCrypto!==W&&window.msCrypto.getRandomValues&&w(window.msCrypto.getRandomValues,window.msCrypto),re=function(){if(ee){var le=new Uint8Array(16);return function(){return ee(le),le}}var g=new Array(16);return function(){for(var P,J=0;J<16;J++)(3&J)==0&&(P=4294967296*Math.random()),g[J]=P>>>((3&J)<<3)&255;return g}}(),De=re();return De[6]=15&De[6]|64,De[8]=63&De[8]|128,O(De,0,3)+"-"+O(De,4,5)+"-"+O(De,6,7)+"-"+O(De,8,9)+"-"+O(De,10,15)}function q(w,M){var O=AdmanHTML.Constants.AD_ACTIONS_DEFAULT_CONFIG,W=[M,w].reduce(function(ee,re){return re&&Object.keys(O).forEach(function(De){ee[De]!==re[De]&&(ee[De]=re[De]?re[De]:ee[De]),typeof re.members=="object"&&(ee.members=re.members)}),ee},Object.assign({},O));return Ue(W)?W:O}function Ue(w){return!!Array.isArray(w.members)&&(w.members.forEach(function(M){if(["adchoice","disclaimer","timer"].indexOf(M)===-1)return!1}),typeof w.positionX=="string"&&["left","right"].indexOf(w.positionX)!==-1&&typeof w.positionY=="string"&&["top","bottom"].indexOf(w.positionY)!==-1&&typeof w.offsetX=="string"&&typeof w.offsetY=="string"&&!(typeof w.disclaimerText!="string"||!w.disclaimerText.length)&&!(typeof w.headerText!="string"||!w.headerText.length)&&!(typeof w.aboutText!="string"||!w.aboutText.length)&&!(typeof w.copyText!="string"||!w.copyText.length))}function Ie(w){w=w||navigator.userAgent;var M=!1;return function(O){(/(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(O)||/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(O.substr(0,4)))&&(M=!0)}(w),M}var fe,$=1,ye=2,de=3,me=null,Re=0,Oe=1,Ne=function(){var w="undefined",M="Shockwave Flash",O="application/x-shockwave-flash",W={major:0,minor:0,release:0},ee=null;if(typeof navigator.plugins!==w&&typeof navigator.plugins[M]=="object")(ee=navigator.plugins[M].description)&&typeof navigator.mimeTypes!==w&&navigator.mimeTypes[O]&&navigator.mimeTypes[O].enabledPlugin&&(ee=ee.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),W.major=parseInt(ee.replace(/^(.*)\..*$/,"$1"),10),W.minor=parseInt(ee.replace(/^.*\.(.*)\s.*$/,"$1"),10),W.release=/[a-zA-Z]/.test(ee)?parseInt(ee.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof window.ActiveXObject!==w)try{var re=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash");re&&(ee=re.GetVariable("$version"))&&(ee=ee.split(" ")[1].split(","),W.major=parseInt(ee[0],10),W.minor=parseInt(ee[1],10),W.release=parseInt(ee[2],10))}catch(De){}return W}();return{setStyle:pe,isNRVpaid:te,addCss:l,loadCss:o,loadJs:u,loadImg:m,xhr:f,scaleBySide:d,isEmptyObject:h,mixin:x,deepExtend:_,validateMinMax:b,numSorter:L,createIntUID:k,getQueryParams:D,triggerEvent:S,getUserIdQuery:xe,getPageLocation:i,getDomain:E,getHostname:T,_genSessionId:_e,matchHostname:v,isLeftButtonPressed:A,isElementInDocument:I,isElement:U,getElementViewport:j,preventDefault:se,parseXml:R,convertDuration:Y,renderTemplate:F,setTimeout:X,checkFlash:n,checkFlashAsync:r,FLASH_READY:Oe,FLASH_MISSING:Re,getServingType:t,servingTypes:{ON_PAGE:$,S_FRAME:ye,XD_FRAME:de},adActionsConfigPrepare:q,isMobile:Ie}}(),AdmanHTML.Viewability=function(){"use strict";function t(R,Y,F){return R.forEach(function(X){X.duration=Y.focus&&Y.percent>=X.threshold?X.duration+F:0}),R}function e(R){R.forEach(function(Y){Y.duration=0})}function i(R){return new window.IntersectionObserver(function(Y){Y&&Y.length&&Y[0].intersectionRatio!==void 0&&(R(Y[0].intersectionRatio),!I&&(Y[0].intersectionRatio>0||Y[0].isIntersecting)&&(I=!0,b.log("viewin")))},{threshold:j})}function n(){return v?!document[v]:T===N.XD_FRAME||!window.top.document.hasFocus||window.top.document.hasFocus()}function r(){var R=a();if(R.state!=="UNDETERMINED")return t(se,R,S),b&&(b.logMRC(se)||_()),R}function a(){var R,Y,F=n();return E?(R=U,Y="DETERMINED"):T!==N.XD_FRAME?(R=l(L).percent,Y="DETERMINED"):(R=0,Y="UNDETERMINED"),{percent:R,focus:F,state:Y,viewinOccured:I}}function l(R,Y){try{var F=R.getBoundingClientRect(),X=o(F),xe=AdmanHTML.Utils.getElementViewport(R)||window;for(Y=Y||window.top;xe!==Y;){var te=xe.frameElement.getBoundingClientRect();F=u(F,te),F.left=Math.max(te.left,F.left),F.right=Math.min(te.right,F.right),F.top=Math.max(te.top,F.top),F.bottom=Math.min(te.bottom,F.bottom),F.right<F.left&&(F.right=F.left),F.bottom<F.top&&(F.bottom=F.top),xe=xe.parent}F=m(F,Y);var pe=o(F);return F.percent=pe/X*100,F}catch(B){return{left:0,right:0,top:0,bottom:0,percent:0}}}function o(R){return(R.right-R.left)*(R.bottom-R.top)}function u(R,Y){return{left:R.left+Y.left,right:R.right+Y.left,top:R.top+Y.top,bottom:R.bottom+Y.top}}function m(R,Y){var F={},X=f(Y);return F.left=Math.max(0,R.left),F.right=Math.min(X.width,R.right),F.top=Math.max(0,R.top),F.bottom=Math.min(X.height,R.bottom),F}function f(R){var Y={width:1/0,height:1/0};return!isNaN(R.document.body.clientWidth)&&R.document.body.clientWidth>0&&(Y.width=R.document.body.clientWidth),!isNaN(R.document.body.clientHeight)&&R.document.body.clientHeight>0&&(Y.height=R.document.body.clientHeight),R.document.documentElement&&R.document.documentElement.clientWidth&&!isNaN(R.document.documentElement.clientWidth)&&(Y.width=R.document.documentElement.clientWidth),R.document.documentElement&&R.document.documentElement.clientHeight&&!isNaN(R.document.documentElement.clientHeight)&&(Y.height=R.document.documentElement.clientHeight),R.innerWidth&&!isNaN(R.innerWidth)&&(Y.width=Math.min(Y.width,R.innerWidth)),R.innerHeight&&!isNaN(R.innerHeight)&&(Y.height=Math.min(Y.height,R.innerHeight)),Y}function d(R,Y,F){if(b=Y,A=!F,L=R,E)D=D||i(function(X){U=100*X}),D.observe(R);else if(T===N.XD_FRAME)return z=!1,void b.log("viewabilityUnmeasurable");F||(k=setInterval(r,S)),z=!0,b.log("viewabilityMeasurable"),window.addEventListener("unload",c)}function c(){x("unload")}function h(){k||(k=setInterval(r,S))}function x(R){z&&b&&A&&b.logMRC([],R||"complete"),b=null,z=!1,A=!1,L=null,clearInterval(k),k=void 0,e(se),D&&D.disconnect(),window.removeEventListener("unload",c)}function _(){k&&(clearInterval(k),k=void 0,e(se))}var b,L,k,D,S=255,E=!!window.IntersectionObserver,T=AdmanHTML.Utils.getServingType(),N=AdmanHTML.Utils.servingTypes,v=function(){for(var R=["h","webkitH","mozH","msH","oH"],Y=0;Y<R.length;Y++)if(document[R[Y]+"idden"]!==void 0)return R[Y]+"idden";return""}(),z=!1,A=!1,I=!1,U=0,j=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],se=[];return j.forEach(function(R){se.push({threshold:Math.round(100*R),duration:0})}),{start:d,pause:_,resume:h,stop:x,getViewabilityState:a}},AdmanHTML.AdRenderer=function(t,e){"use strict";function i(){D.wrapperEl=D.wrapperEl||t.wrapper,D.mainEl=D.mainEl||document.createElement("div"),D.clickEl=D.clickEl||D.mainEl,AdmanHTML.Utils.isElement(D.mainEl)&&!D.mainEl.parentNode&&(D.wrapperEl.childNodes.length?D.wrapperEl.insertBefore(D.mainEl,D.wrapperEl.childNodes[0]):D.wrapperEl.appendChild(D.mainEl),k=!0),D.clickEl.addEventListener("click",D.onClick),window.addEventListener("resize",h)}function n(T){T()}function r(){t.viewability.stop(),window.removeEventListener("resize",h),D.clickEl&&D.clickEl.removeEventListener("click",D.onClick),clearTimeout(_),AdmanHTML.Utils.isElement(D.mainEl)&&k&&D.mainEl.parentNode&&D.mainEl.parentNode.removeChild(D.mainEl)}function a(){if(!S&&(S=!0,clearTimeout(_),b)){var T=Date.now()-b;L=1e3*E.duration-T}}function l(){S&&(S=!1,o())}function o(){b=Date.now();var T=L||1e3*E.duration;_=setTimeout(function(){r(),t.cb("onCompleted")},T)}function u(){E.urlToNavigateOnClick&&(E.openLinkInPopup?t.openPopup(E.urlToNavigateOnClick||E.trackingLink):window.open(E.urlToNavigateOnClick,"_blank"),e.log("click"),t.cb("onClicked"))}function m(T){t.cb("onStarted",[e.sectionType,AdmanHTML.Utils.mixin(e.getAdForApp()||{},T||{})]),e.log("playbackStarted")}function f(T,N){var v=parseInt(T/N*100);t.cb("onTimeRemained",[{remained:N-T,percent:v,duration:N,currentTime:T}]),T=parseInt(T),e.log("thresholdPValue",v),e.log("thresholdValue",T),e.logOVV(T,v)}function d(T,N){typeof T!="string"&&T?D.mainEl.appendChild(T):D.mainEl.innerHTML=T,AdmanHTML.Utils.mixin(D.mainEl.style,N)}function c(T){D.wrapperEl=T}function h(){D.onResize(D.mainEl.offsetWidth,D.mainEl.offsetHeight)}function x(){}var _,b,L,k,D={},S=!1,E=e.getAd();return D={start:i,pause:a,resume:l,skip:n,dispose:r,onClick:u,onStart:m,registerTimer:o,setView:d,setWrapper:c,onTimeRemained:f,onResize:x}},AdmanHTML.AudioAdRenderer=function(t,e){"use strict";function i(){l.mainEl=t.audioEl||document.createElement("audio"),o.forEach(function(u){l.mainEl.addEventListener(u,r)}),t.audioEl||l.setView(null,{position:"absolute",width:"1px",height:"1px",top:"-10000px",left:"-10000px"}),a=e.getAd().duration,l.mainEl.src=e.getAd().src,l.mainEl.load(),e.log("render"),l.mainEl.play(),t.audioEl||l.start()}function n(){l.dispose(),o.forEach(function(u){l.mainEl.removeEventListener(u,r)})}function r(u){var m,f;switch(u.type){case"loadedmetadata":l.onStart();break;case"play":t.cb("onPlayed");break;case"pause":t.cb("onPaused");break;case"timeupdate":m=l.mainEl.duration,f=l.mainEl.currentTime,!isNaN(m)&&a&&Math.abs(a-m)>1&&(m=a,f=Math.min(f,m)),l.onTimeRemained(f,m);break;case"ended":t.cb("onCompleted");break;case"error":t.cb("onError")}}var a,l=new AdmanHTML.AdRenderer(t,e),o=["loadedmetadata","error","pause","play","timeupdate","ended"];return{start:i,skip:l.skip,dispose:n,pause:function(){l.mainEl.pause()},resume:function(){l.mainEl.play()},setVolume:function(u){var m=l.mainEl.muted?0:l.mainEl.volume;l.mainEl.muted=u===0,l.mainEl.volume=u,(m===0&&u>0||m>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(x){x.propertyName==="transform"&&x.target===d&&h.moveWithControls()}function r(){c.start(),f=e.getAd(),m=e.getSettings(),d=document.querySelector("div.videoplayer_controls");var x=AdmanHTML.Utils.adActionsConfigPrepare(f?f.adActionsConfig:null,m?m.adActionsConfig:null);if(!f.ctaWebEnabled||x.positionY==="bottom"&&x.positionX==="left")return void(o=Function.prototype);h.setText(f.ctaText),h.setStyles(),u=a(),h.setCustomStyles(u),h.addListeners(),h.appendTo(t.wrapper),o=function(){h.destroy()},d&&d.addEventListener("transitionstart",n)}function a(){return[t,f,m].reduce(function(x,_){return Object.keys(x).length||typeof _.ctaStyles!="object"?x:_.ctaStyles},{})}function l(){d&&d.removeEventListener("transitionstart",n),o&&o(),c.dispose()}if(!t.callToActionButton)return{render:Function.prototype,dispose:Function.prototype};var o,u,m,f,d,c=new AdmanHTML.AdRenderer(t,e);i.prototype._setStyles=function(x,_){AdmanHTML.Utils.setStyle(x,_)},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:d?"20px":"16%",left:"20px"})},i.prototype.setCustomStyles=function(x){x.background&&(this.background=x.background),this._setStyles(this.ctaButtonEl,x)},i.prototype.setText=function(x){this.ctaButtonTextEl.innerText=x&&typeof x=="string"?x:"Перейти"},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 x=f.ctaLink||f.urlToNavigateOnClick;f.openLinkInPopup?t.openPopup(x||f.trackingLink):window.open(x,"_blank"),e.log(["ctaClick","click"]),t.cb("onClicked")},i.prototype._hoverCTABtnListener=function(x){this._setStyles(this.ctaButtonEl,{background:x?"#1460C9":this.background,"box-shadow":x?"0px 4px 8px 0px #0000000A":this.boxShadow})},i.prototype.appendTo=function(x){x&&(x.appendChild(this.ctaButtonEl),this.isRendered=!0)},i.prototype.moveWithControls=function(){var x=d.classList.contains("hidden");this.ctaButtonEl.style.setProperty("transform","translateY("+(x?"0":"-"+Math.round(d.offsetHeight))+"px)")};var h=new i;return{render:r,dispose:l}},AdmanHTML.CloseBtnRenderer=function(t,e){"use strict";function i(){a.start();var f=e.getSettings(),d=f.controlsStyle||0,c=l[d],h=o[d];h.bg=h.bg||h.width;var x={};for(var _ in m)m.hasOwnProperty(_)&&(x[_]=f[_]!==void 0?f[_]:m[_]);if(x.controlsPaddingTop=x.controlsPaddingTop-x.controlsSafeArea,x.controlsPaddingRight=x.controlsPaddingRight-x.controlsSafeArea,a.setView(AdmanHTML.Utils.renderTemplate(u,{img:c,width:h.width,height:h.height,bg:h.bg}),{position:"absolute",cursor:"pointer"}),AdmanHTML.StyleUtils.applyStyle(a.mainEl,x),h.bg!==h.width){var b=h.bg-h.width,L=function(D){D.target.className==="rb-adman_close"&&(D.target.style.backgroundPosition="-"+b+"px 0")},k=function(D){D.target.className==="rb-adman_close"&&(D.target.style.backgroundPosition="0 0")};a.mainEl.addEventListener("mouseover",L),a.mainEl.addEventListener("mouseout",k),r=function(){a.mainEl.removeEventListener("mouseover",L),a.mainEl.removeEventListener("mouseout",k)}}}function n(){r&&r(),a.dispose()}var r,a=new AdmanHTML.AdRenderer(t,e),l=["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"],o=[{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>',m={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),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(d,c,h,x){var _=document.createElement("style");_.appendChild(document.createTextNode(" @font-face { font-family: "+d+"; font-style: normal; font-weight: 300; unicode-range: "+x+"; src: url('"+c+"') format('"+h+"'); } ")),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 d=e.getSettings(),c=e.getAd();if(typeof c=="object"&&typeof c.adActionsConfig=="object"&&c.adActionsConfig.members===null||typeof d=="object"&&typeof d.adActionsConfig=="object"&&d.adActionsConfig.members===null)return void l();var h={originalBannerId:c.bannerID,cipherBannerID:c.cipherBannerID?c.cipherBannerID:null,bannerOrdId:c.ordID||null,advData:c.advData||null},x=AdmanHTML.Utils.adActionsConfigPrepare(c?c.adActionsConfig:null,d?d.adActionsConfig:null);f.build(x,h),f.init(),f.addListeners(),f.appendTo(t.wrapper),o=function(){f.destroy()}}function a(d,c){var h=Math.floor(c-d);h||(h="00"),f.updateRemainTime(h)}function l(){o&&o(),u&&typeof u=="object"&&typeof u.remove=="function"&&u.remove(),m.dispose()}if(!t.disclaimer)return{render:Function.prototype,onTimeRemained:Function.prototype,dispose:Function.prototype};var o,u,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(d){i(d.name,d.url,d.format,d.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(d,c){this.config=d,this.data=c,this.config.members.forEach(function(h){switch(h){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 d={};this.config.positionX==="left"&&(d.left=this.config.offsetX),this.config.positionX==="right"&&(d.right=this.config.offsetX),this.config.positionY==="top"&&(d.top=this.config.offsetY),this.config.positionY==="bottom"&&(d.bottom=this.config.offsetY),this._setStyles(this.adActionsEl,d),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 d=".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=d:u.appendChild(document.createTextNode(d)),this.adActionsEl.appendChild(u),this._setStyles(this.adChoiceEl,{width:"14px",height:"14px"})},n.prototype._setStyles=function(d,c){AdmanHTML.Utils.setStyle(d,c)},n.prototype.updateRemainTime=function(d){var c=Math.trunc(d/60),h=d-60*c;c=c.toString(),h=h.toString(),h.length===1&&(h="0"+h),this.remainTimeEl.innerText=c+":"+h},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(d){d.stopPropagation();var c=this.data.advData?"data":"id",h=this.data.advData?this.data.advData:this.data.cipherBannerID;window.open(this._advPageUrlPart+c+"="+h,"_blank")},n.prototype._copyToClipboard=function(d){var c=document.createElement("textarea");document.body.appendChild(c),c.value=d,c.select(),document.execCommand("copy"),document.body.removeChild(c)},n.prototype._copyBannerOrdIdToClipboardListener=function(d){d.stopPropagation(),this._copyToClipboard(this.data.bannerOrdId)},n.prototype._setAdActionsHoverListener=function(d){d?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(d){d.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(d){d.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(d){d?(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(d){d?(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(d){d?this._setStyles(this.actionsHeaderButton,{"background-image":'url("'+this.closeIconActiveSrc+'")'}):this._setStyles(this.actionsHeaderButton,{"background-image":'url("'+this.closeIconSrc+'")'})},n.prototype.appendTo=function(d){if(d){try{var c=window.getComputedStyle(d).width,h=this.actionsWrapperWidth+parseInt(this.adActionsEl.style.paddingLeft)+parseInt(this.adActionsEl.style.paddingRight);(c?parseInt(c):h+1)<=h&&(this.isSmall=!0,this._setStyles(this.adActionsEl,{"border-radius":"6px","font-size":"12px",padding:"5px 6px 5px 8px"}))}catch(x){console.warn("Failed detect small wrapper size",x)}this.appendedTo=d,d.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:a,dispose:l}},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(){T.start(),I=e.getAd(),D=I.duration,k=L(),k.width="100%",k.height="100%",k.setAttribute("style","display:block;width:100%;height:100%"),T.setView(k,{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"transparent"}),AdmanHTML.Utils.isElement(t.videoEl)&&t.videoEl.parentNode===T.mainEl.parentNode&&T.mainEl.parentNode.insertBefore(T.mainEl,t.videoEl.nextSibling),k.contentWindow||k.contentDocument?r():k.onload=function(B){r()},v&&v.render(),N&&N.render()}function n(B){B.preventDefault(),B.stopPropagation(),e.log("click"),t.cb("onClicked"),t.openPopup(I.urlToNavigateOnClick||I.trackingLink)}function r(){function B(){var _e=k.contentWindow.document.body||k.contentDocument.body;_e&&_e.addEventListener("click",n,!0)}A=k.contentWindow?k.contentWindow.document:k.contentDocument,A.open(),R?(A.write('<!DOCTYPE html><html style="width: 100%; height: 100%"><head></head><body>'),A.write(I.src),A.write("</body></html>"),F=document.querySelector("div.videoplayer_controls"),F&&(X=F.style.display,F.style.display="none"),(xe=document.querySelector("div.videoplayer_ads_skip"))&&(te=xe.style.display,xe.style.display="none")):(A.write(I.src),e.log("render")),A.close(),z=AdmanHTML.Utils.getElementViewport(t.wrapper),z.addEventListener("message",d),I.openLinkInPopup&&(I.urlToNavigateOnClick||I.trackingLink)&&(k.contentWindow.document.body||k.contentDocument.body?B():k.onload=B),t.viewability.start(T.mainEl,e),u(),T.onStart()}function a(){U||(U=!0,j+=Date.now()-se,clearInterval(S),S=null,F?F.style.display=X:R&&c("pauseAd",[]),t.cb("onPaused"))}function l(){return I.creativeType==="video-motion"}function o(){U&&(U=!1,u(),t.cb("onPlayed"))}function u(){if(!S){if(R){if(!Y)return;F?F.style.display="none":c("startAd",[])}S=setInterval(f,251),se=Date.now(),U=!1}}function m(){pe||t.cb("onCompleted")}function f(){j+=Date.now()-se,se=Date.now(),T.onTimeRemained(j/1e3,D),R?c("timeUpdateAd",[j/1e3,D]):v.onTimeRemained(j/1e3,D),j>=1e3*D&&(clearInterval(S),S=null,m())}function d(B){if(B.source===k.contentWindow){if(R&&typeof B.data=="object")return void h(B.data);try{switch(JSON.parse(B.data).type){case"trg:click":e.log("click"),t.cb("onClicked")}}catch(_e){}}}function c(B,_e){if(typeof k=="object"&&typeof k.contentWindow=="object")try{var q=k.contentWindow.origin;k.contentWindow.postMessage({initiator:"render-runner",id:E,method:B,args:_e},q)}catch(Ue){}}function h(B){if(R&&typeof B=="object"&&B.initiator==="render-runner"&&Array.isArray(B.args)&&B.args[0]===E)switch(B.event){case"AdStarted":Y=!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_"+B.args[1]+"_click"),t.cb("onClicked",{type:"card",cardId:B.args[1]});break;case"ItemShow":e.log("card_"+B.args[1]+"_show");break;case"AdClickThru":e.log("click"),t.cb("onClicked",{type:"common"});break;case"AdError":t.cb("onError",B.args[1]);break;case"ClosedByUser":e.log("closedByUser"),t.cb("onClosed"),t.cb("onSkipped"),pe=null,b();break;case"UserAction":pe=Date.now()}}function x(){F&&(F.style.display=X),xe&&(xe.style.display=te)}function _(){S&&clearInterval(S),S=null,x(),z.removeEventListener("message",d)}function b(){_(),T.dispose(),v&&v.dispose(),N&&N.dispose()}function L(){var B=document.createElement("iframe");return B.scrolling="no",B.marginWidth="0",B.marginHeight="0",B.frameBorder="0",B.id="ad-frame-"+Math.round(1e5*Math.random()),B.onclose=x,B}var k,D,S,E,T=new AdmanHTML.AdRenderer(t,e),N=new AdmanHTML.CallToActionBtnRenderer(t,e),v=null,z=null,A=null,I=e.getAd(),U=!1,j=0,se=0,R=l(),Y=!1,F=null,X="flex",xe=null,te="block",pe=null;return R?E="b"+I.bannerID:v=new AdmanHTML.DisclaimerRenderer(t,e),T.onClick=function(){},{start:i,pause:a,resume:o,skip:T.skip,dispose:b}},AdmanHTML.ImgAdRenderer=function(t,e){"use strict";function i(){r.start(),r.registerTimer(),AdmanHTML.Utils.addCss(u,o);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 d=e.getSettings(),c=r.mainEl.querySelector(".rb-adman_age_wrapper");if(d&&d.advertisment&&d.advertisment.image){var h=d.advertisment.image;AdmanHTML.StyleUtils.applyStyle(r.mainEl,h,"fontFace contentIndent hasBackground backgroundColor backgroundAlpha cornerRounding".split(" ")),AdmanHTML.StyleUtils.applyStyle(r.mainEl.querySelector(".rb-adman_image_wrapper"),h,"borderSize borderColor borderAlpha borderCornerRounding".split(" "));var x=d.advertisment.image.ageRestrictions;f.ageRestrictions&&x&&(AdmanHTML.StyleUtils.applyStyle(c,x),AdmanHTML.StyleUtils.applyStyle(c.querySelector(".rb-adman_age_content"),x,["textUnderline"]))}f.ageRestrictions||c.parentNode.removeChild(c),a.setWrapper(r.mainEl),a.start(),r.onStart(),l.render(),e.log("render")}function n(){r.dispose(),a.dispose(),l.dispose()}var r=new AdmanHTML.AdRenderer(t,e),a=new AdmanHTML.CloseBtnRenderer(t,e),l=new AdmanHTML.DisclaimerRenderer(t,e),o="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}",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 u=window;u.parent&&u.parent.frameElement;)u=u.parent;return u}function i(u){t.isPopupOpen=!0,t.pause(),l=n(u)}function n(u){l=o.createElement("div"),r(),l.classList.add("rb-adman-popup");var m=o.createElement("div");m.classList.add("rb-adman-popup-body"),l.appendChild(m);var f=o.createElement("div");f.classList.add("rb-adman-popup-closeButton");var d=l;a=function(){d.remove(),d=null,t.resume(!0),t.isPopupOpen=!1},f.onclick=a,m.appendChild(f);var c=o.createElement("iframe");c.classList.add("rb-adman-popup-frame"),c.setAttribute("src",u),m.appendChild(c),o.body.append(l)}function r(){var u=o.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);}",l.appendChild(u)}var a,l=null,o=e().document;return{open:i,close:a}},AdmanHTML.ResearchAdRenderer=function(t,e){"use strict";function i(E,T){var N=[];return E.forEach(function(v){v.name===T&&N.push(v)}),N}function n(E,T,N){return T<=E&&(!N||N>=E)}function r(){!_&&x&&(_=!0,e.log("playbackPaused"))}function a(){_&&x&&(_=!1,e.log("playbackResumed"))}function l(){x=!1,_=!1,h.stop()}function o(E){var T=!E;T!==b&&(b=T,e.log(T?"volumeOff":"volumeOn"))}function u(){x&&(k&&f(k,k),d&&D.forEach(function(E){E.completed||(E.completed=!0,!E.viewable&&AdmanHTML.Utils.loadImg(E.url))}),l())}function m(E){e.log(E?"fullscreenOn":"fullscreenOff")}function f(E,T){if(!isNaN(E)){x||(x=!0,h.start(t.playerEl,e,!0),e.log("playbackStarted")),E=Math.round(E);var N=L!==null?E-L:null;if(L=E,e.log("thresholdValue",E),!isNaN(T)&&isFinite(T)&&T>0&&(T=Math.round(T),k=T,e.log("thresholdPValue",Math.floor(E/T*100))),N<0&&e.log("rewind"),S.forEach(function(A){if(n(E,A.start,A.end)){var I=Math.floor((E-A.start)/A.rate);I>0&&A.last!==I&&(A.last=I,AdmanHTML.Utils.loadImg(A.url.replace("[CONTENTPLAYHEAD]",E)))}else A.last=null}),d!==!1&&N!==0){var v,z=N<0||N>1;D.forEach(function(A){if(n(E,A.start,A.end)&&!A.completed){v=v||h.getViewabilityState(),d=v.state==="DETERMINED";var I=v.percent>A.percent&&v.focus;A.duration=A.duration||0,A.lastViewable&&I&&!z?A.duration+=N:A.duration=0,A.lastViewable=I,A.duration>=A.value&&(A.completed=!0,A.viewable&&AdmanHTML.Utils.loadImg(A.url))}else A.duration=0,A.lastViewable=!1})}}}var d,c=e.getExtendedAdForApp().statistics,h=new AdmanHTML.Viewability,x=!1,_=!1,b=!1,L=null,k=null,D=i(c,"mrcValue"),S=i(c,"timerValue");return{pause:r,resume:a,setVolume:o,setPosition:f,setComplete:u,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(a){a===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(a,l,o){var u,m,f=l||{},d=o||{};f.type="application/x-shockwave-flash",window.ActiveXObject?(f.classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",d.movie=a):f.data=a,m="<object";for(u in f)f.hasOwnProperty(u)&&(m+=" "+u+'="'+f[u]+'"');m+=">";for(u in d)d.hasOwnProperty(u)&&(m+='<param name="'+u+'" value="'+d[u]+'" />');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(u,o);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 d=e.getSettings();if(d&&d.advertisment&&d.advertisment.text){var c=d.advertisment.text;AdmanHTML.StyleUtils.applyStyle(r.mainEl,c,"fontFace width height contentPadding hasBackground backgroundColor backgroundAlpha cornerRounding".split(" ")),AdmanHTML.StyleUtils.applyStyle(r.mainEl.querySelector(".rb-adman_header"),c,"headerColor headerSize headerUnderline headerBold headerIndent".split(" ")),AdmanHTML.StyleUtils.applyStyle(r.mainEl.querySelector(".rb-adman_header_text"),c,["headerUnderlineOnRollOver"]),AdmanHTML.StyleUtils.applyStyle(r.mainEl.querySelector(".rb-adman_body"),c,"bodyColor bodySize bodyUnderline bodyLeading bodyIndent bodyPaddingRight".split(" ")),AdmanHTML.StyleUtils.applyStyle(r.mainEl.querySelector(".rb-adman_link"),c,"hyperlinkColor hyperlinkSize hyperlinkUnderline hyperlinkIndent".split(" "));var h=d.advertisment.text.ageRestrictions,x=r.mainEl.querySelector(".rb-adman_age_wrapper");f.ageRestrictions?h&&(AdmanHTML.StyleUtils.applyStyle(x,h),AdmanHTML.StyleUtils.applyStyle(x.querySelector(".rb-adman_age_content"),h,["textUnderline"])):x.parentNode.removeChild(x);var _=r.mainEl.querySelector(".rb-adman_image_wrapper span");if(c.noImage)_.parentNode.removeChild(_);else if(c.contentPadding&&(_.style.marginRight=AdmanHTML.StyleUtils.getLength(c.contentPadding)),c.maxImageHeight||c.maxImageWidth){var b=f.width/f.height;_.style.width=AdmanHTML.StyleUtils.getLength(Math.round(c.maxImageWidth||c.maxImageHeight*b)),_.style.height=AdmanHTML.StyleUtils.getLength(Math.round(c.maxImageHeight||c.maxImageWidth/b))}}a.setWrapper(r.mainEl),a.start(),l.render(),e.log("render"),r.onStart()}function n(){r.dispose(),a.dispose(),l.dispose()}var r=new AdmanHTML.AdRenderer(t,e),a=new AdmanHTML.CloseBtnRenderer(t,e),l=new AdmanHTML.DisclaimerRenderer(t,e),o="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}",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(){d.mainEl=t.videoEl,d.clickEl=t.clickEl||d.mainEl,x.forEach(function(S){d.mainEl.addEventListener(S,l)}),d.mainEl.parentNode?L={src:d.mainEl.src,time:d.mainEl.currentTime,muted:d.mainEl.muted}:d.setView(null,{position:"absolute",width:"100%",height:"100%",top:0}),d.mainEl.controls=t.browser.mobile,d.mainEl.src=e.getAd().src,d.mainEl.load(),e.log("render"),u(0),m=d.mainEl.play(),m&&m.then&&m.then(o,function(){d.mainEl.muted=!0,m=d.mainEl.play(),m.then(o,function(){})}),d.start(),c.render(),h.render()}function n(S){return S.indexOf("videolink.mycdn.me")!==-1}function r(){c.dispose(),h.dispose(),d.dispose(),x.forEach(function(S){d.mainEl.removeEventListener(S,l)}),L.src?(d.mainEl.src=L.src,d.mainEl.load(),d.mainEl.play(),u(L.time)):(d.mainEl.src="",d.mainEl.removeAttribute&&d.mainEl.removeAttribute("src"))}function a(S){if(S.indexOf("mradx")!==-1)return"rb";if(S.indexOf("videolink.mycdn.me")!==-1)return"ev";var E=new URL(S);return"evcdn:"+("hostname"in E?E.hostname:"")}function l(S){switch(S.type){case"loadstart":f=Date.now();break;case"loadeddata":k||(k=!0,D=Date.now()-f,t.stats.logMessage("firstLoadedData",D,{banner_id:b.bannerID,duration:Math.round(d.mainEl.duration),geo:b.geo!=="undefined"?b.geo:void 0,one_video_src:n(d.mainEl.src),slot:"slotId"in b?b.slotId:"no_slot_id",video_source:a(d.mainEl.src),resolution:("width"in b?b.width:"no_ad_width")+"x"+("height"in b?b.height:"no_ad_height"),label:"experimentLabel"in b?b.experimentLabel:""}));break;case"loadedmetadata":t.stats.metrics("ready"),t.stats.metrics("creative_type","video"),c.onTimeRemained(d.mainEl.currentTime,d.mainEl.duration);break;case"playing":m||o();break;case"play":t.cb("onPlayed");break;case"pause":t.cb("onPaused");break;case"timeupdate":d.onTimeRemained(d.mainEl.currentTime,d.mainEl.duration),c.onTimeRemained(d.mainEl.currentTime,d.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 E=S.target&&typeof S.target=="object"&&S.target.error&&typeof S.target.error=="object"&&S.target.error.code?S.target.error.code:"unknown_code",T="video_el_err_code:"+E;t.stats.logError(T),t.stats.metrics("media_error_code",E),t.cb("onError")}}function o(){if(!_){_=!0;var S=AdmanHTML.Utils.isElement(d.mainEl)?d.mainEl:d.wrapperEl;t.viewability.start(S,e),d.onStart({muted:d.mainEl.muted})}}function u(S){if(d.mainEl)try{d.mainEl.currentTime=S}catch(E){}}var m,f,d=new AdmanHTML.AdRenderer(t,e),c=new AdmanHTML.DisclaimerRenderer(t,e),h=new AdmanHTML.CallToActionBtnRenderer(t,e),x=["loadstart","loadeddata","loadedmetadata","error","pause","play","playing","timeupdate","ended"],_=!1,b=e.getAd(),L={},k=!1,D=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"),d.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",d.mainEl.pause()},resume:function(){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="play",d.mainEl.play()},setVolume:function(S){var E=d.mainEl.muted?0:d.mainEl.volume;S>0&&d.mainEl.muted&&(d.mainEl.muted=!1),S===0&&(d.mainEl.muted=!0),d.mainEl.volume=S,(E===0&&S>0||E>0&&S===0)&&e.log(S?"volumeOn":"volumeOff")}}},AdmanHTML.VpaidJsAdRenderer=function(t,e){"use strict";function i(){var U;if(!u)return T.duration;try{U=u.callGet("adDuration"),U===void 0&&(U=T.duration)}catch(j){U=T.duration}return U}function n(){if(S.start(),E.render(),AdmanHTML.Utils.isElement(t.videoEl)){var U=AdmanHTML.Utils.getElementViewport;U(t.videoEl)===U(S.wrapperEl)&&(t.videoEl.parentNode?(f=t.videoEl.parentNode,d=t.videoEl.nextSibling):m=!0,S.wrapperEl.insertBefore(t.videoEl,S.wrapperEl.childNodes[0]),AdmanHTML.Utils.mixin(t.videoEl.style,{position:"absolute",width:"100%",height:"100%",top:0,display:"block"}))}var j=e.getSettings();j&&(j.loadTimeout&&(N=j.loadTimeout),j.startTimeout&&(v=j.startTimeout)),AdmanHTML.Utils.isNRVpaid(T.src)&&typeof T.timeoutsFactor=="number"&&T.timeoutsFactor>1&&(N*=T.timeoutsFactor,v*=T.timeoutsFactor),t.cb("onStarted",[e.sectionType,e.getAdForApp()||{}]),a(N,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:LoadInterface"),u.urlToNavigateOnClick=e.getAd().urlToNavigateOnClick,S.setView(u.load(T.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,d&&d.parentNode?d:null),l(),u.destroy(),E.dispose(),S.dispose()}function a(U,j){l(),L=j,h=setTimeout(o,U)}function l(){clearTimeout(h)}function o(){b=!0,l(),e.log("error"),L&&t.stats.logError(L,{bannerID:T.bannerID,isNRVpaid:AdmanHTML.Utils.isNRVpaid(T.src)}),t.cb("onError",{force:!0,message:L})}var u,m,f,d,c,h,x,_,b,L,k,D,S=new AdmanHTML.AdRenderer(t,e),E=new AdmanHTML.DisclaimerRenderer(t,e),T=e.getAd(),N=500,v=1e3;S.onResize=function(U,j){u&&u.call("resizeAd",[U,j,"normal"])},S.onClick=function(){};var z=function(U,j){if(!b){var se,R;switch(U){case"loaded":a(N,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:LoadJs");break;case"vpaidloaded":l();break;case"inited":u.call("handshakeVersion",["2.0"])?(a(v,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:InitAd"),u.call("initAd",[S.mainEl.offsetWidth,S.mainEl.offsetHeight,"normal",T.bitrate,{AdParameters:T.params}])):t.cb("onError");break;case"AdStarted":l(),_=u.callGet("adVolume"),x===void 0||u.autoMuted||u.callSet("adVolume",x),e.log("playbackStarted"),t.viewability.start(S.mainEl,e),t.cb("onVPAIDStarted"),t.stats.metrics("playing");break;case"AdLoaded":a(v,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:StartAd"),u.call("startAd"),t.stats.metrics("ready"),t.stats.metrics("creative_type","vpaid");break;case"AdRemainingTimeChange":se=i(),R=u.callGet("adRemainingTime"),se>0&&R>=0?(S.onTimeRemained(se-R,se),E.onTimeRemained(se-R,se)):t.cb("onDurationChanged",[{remained:R,duration:se}]);break;case"AdVolumeChange":var Y=u.callGet("adVolume");(_===0&&Y>0||_>0&&Y===0)&&e.log(Y?"volumeOn":"volumeOff"),_=Y;break;case"AdVideoComplete":t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",se=i(),S.onTimeRemained(se,se);break;case"AdStopped":case"AdSkipped":k||(k=!0,setTimeout(function(){c?c():t.cb("onCompleted")})),t.stats.metrics(U==="AdStopped"?"completed":"skipped");break;case"AdClickThru":j.url&&j.playerHandles&&window.open(j.url,"_blank"),e.log("click"),t.cb("onClicked");break;case"AdError":t.stats.logError("EXTERNAL_JS_ADVERTISMENT_ERROR:"+(j&&j.message||"")),t.stats.metrics("vpaid_error_message",j&&j.message||"vpaid script err"),t.cb("onError");break;case"AdPaused":D||(D=!0,t.cb("onPaused"));break;case"AdPlaying":D&&(D=!1,t.cb("onPlayed"));break;case"AdUserClose":e.log("closedByUser");break;case"video:pause":D||u&&u.call("pauseAd");break;case"video:play":D&&u&&u.call("resumeAd")}}},A=t.wrapper.ownerDocument,I=A.defaultView||A.parentWindow;return u=new AdmanHTML.VpaidLoader(t.videoEl,I),u.onVpaidEvent(z),{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",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(U){u&&u.callSet("adVolume",U),x=U},skip:function(U){t.playStatus||(t.playStatus={}),t.playStatus.prevStatus=t.playStatus.curStatus,t.playStatus.curStatus="pause",c=U;try{u&&u.call("skipAd")}catch(j){}t.stats.metrics("skipped")}}},AdmanHTML.VpaidSwfAdRenderer=function(t,e){"use strict";function i(){var E;if(!u)return L.duration;try{E=u.callGet("adDuration")||L.duration}catch(T){E=L.duration}return E}function n(){b.start();var E=e.getSettings();E&&(E.loadTimeout&&(D=E.loadTimeout),E.startTimeout&&(S=E.startTimeout)),AdmanHTML.Utils.checkFlashAsync(function(T){if(T===AdmanHTML.Utils.FLASH_READY){t.cb("onStarted",[e.sectionType,e.getAdForApp()||{}]),a(D);var N="vpaidSwfUrl="+encodeURIComponent(L.src)+"&proxyMethodName="+k;b.setView(x.createSwfObject(t.config.vpaidJsInterface,{width:"100%",height:"100%"},{flashvars:N,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(){l(),b.dispose(),_.dispose(),window[k]=null}function a(E){l(),f=setTimeout(o,E)}function l(){clearTimeout(f)}function o(){h=!0,l(),e.log("error"),t.cb("onError")}var u,m,f,d,c,h,x=new AdmanHTML.SwfAdRenderer(t,e),_=new AdmanHTML.DisclaimerRenderer(t,e),b=x.super,L=e.getAd(),k="vpaidProxyMethod"+Date.now(),D=500,S=1e3;return b.onResize=function(E,T){u&&u.call("resizeAd",[E,T,"normal"])},b.onClick=function(){},window[k]=function(E,T){if(!h){var N;switch(E){case"loaded":a(D);break;case"vpaidloaded":l();break;case"inited":u=b.mainEl.getElementsByTagName("object")[0],u.call("handshakeVersion",["2.0"])?(a(S),u.call("initAd",[b.mainEl.offsetWidth,b.mainEl.offsetHeight,"normal",L.bitrate,L.params,""])):t.cb("onError");break;case"AdStarted":l(),c=u.callGet("adVolume"),d!==void 0&&u.callSet("adVolume",d),e.log("playbackStarted"),t.viewability.start(b.mainEl,e),t.cb("onVPAIDStarted");break;case"AdLoaded":a(S),u.call("startAd");break;case"AdRemainingTimeChange":N=i(),b.onTimeRemained(N-u.callGet("adRemainingTime"),N),_.onTimeRemained(N-u.callGet("adRemainingTime"),N);break;case"AdVolumeChange":var v=u.callGet("adVolume");(c===0&&v>0||c>0&&v===0)&&e.log(v?"volumeOn":"volumeOff"),c=v;break;case"AdVideoComplete":N=i(),b.onTimeRemained(N,N);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:"+(T&&T.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(){u&&u.call("pauseAd")},resume:function(){u&&u.call("resumeAd")},setVolume:function(E){u&&u.callSet("adVolume",E),d=E},skip:function(E){m=E;try{u&&u.call("skipAd")}catch(T){}}}};window.admanAsyncLoader?setTimeout(admanAsyncLoader):window.admanAsyncInit&&setTimeout(admanAsyncInit)});var Sf={};Ku(Sf,{InterfaceLanguage:()=>Nn.InterfaceLanguage,VERSION:()=>Xi,VKNumericLanguage:()=>Nn.VKNumericLanguage,VideoFormat:()=>co.VideoFormat,VideoQuality:()=>co.VideoQuality,loadVKLangPack:()=>Nn.loadVKLangPack,registerPlayerWebComponent:()=>Tf});module.exports=Ju(Sf);var Oi="[",Fi="[!",an="]",Ei={};var at=Symbol(),ni=Symbol("filename"),Ts=Symbol("hmr"),Ss="http://www.w3.org/1999/xhtml";var Is,Ns,Ms=(Ns=(Is=globalThis.process)==null?void 0:Is.env)==null?void 0:Ns.NODE_ENV,K=Ms&&!Ms.toLowerCase().startsWith("prod");var ri=Array.isArray,Ds=Array.prototype.indexOf,wo=Array.from,To=Object.keys,ft=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,So=Object.getOwnPropertyDescriptors,Mo=Object.prototype,ks=Array.prototype,sn=Object.getPrototypeOf,Io=Object.isExtensible;var gt=()=>{};function ln(t){for(var e=0;e<t.length;e++)t[e]()}var Pt=Symbol("$state"),On=Symbol("legacy props"),Ls=Symbol(""),mr=Symbol("proxy path");var Rn=3,oi=8;function hr(t){return t===this.v}function dn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Cs(t,e){return t!==e}function un(t){return!dn(t,this.v)}function $s(){if(K){let t=new Error(`derived_references_self
|
|
6
|
+
"use strict";var pc=Object.create;var Bn=Object.defineProperty,fc=Object.defineProperties,mc=Object.getOwnPropertyDescriptor,hc=Object.getOwnPropertyDescriptors,gc=Object.getOwnPropertyNames,qs=Object.getOwnPropertySymbols,vc=Object.getPrototypeOf,Gs=Object.prototype.hasOwnProperty,_c=Object.prototype.propertyIsEnumerable;var Ks=t=>{throw TypeError(t)};var Uo=(t,e,i)=>e in t?Bn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ee=(t,e)=>{for(var i in e||(e={}))Gs.call(e,i)&&Uo(t,i,e[i]);if(qs)for(var i of qs(e))_c.call(e,i)&&Uo(t,i,e[i]);return t},Ke=(t,e)=>fc(t,hc(e));var yc=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),bc=(t,e)=>{for(var i in e)Bn(t,i,{get:e[i],enumerable:!0})},Zs=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of gc(e))!Gs.call(t,r)&&r!==i&&Bn(t,r,{get:()=>e[r],enumerable:!(n=mc(e,r))||n.enumerable});return t};var xc=(t,e,i)=>(i=t!=null?pc(vc(t)):{},Zs(e||!t||!t.__esModule?Bn(i,"default",{value:t,enumerable:!0}):i,t)),Ec=t=>Zs(Bn({},"__esModule",{value:!0}),t);var ci=(t,e,i)=>Uo(t,typeof e!="symbol"?e+"":e,i),Xs=(t,e,i)=>e.has(t)||Ks("Cannot "+i);var Ft=(t,e,i)=>(Xs(t,e,"read from private field"),i?i.call(t):e.get(t)),Tr=(t,e,i)=>e.has(t)?Ks("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Mr=(t,e,i,n)=>(Xs(t,e,"write to private field"),n?n.call(t,i):e.set(t,i),i);var Zt=(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 Id=yc(()=>{"use strict";AdmanHTML=function(){"use strict";function t(w){w&&typeof w=="string"&&new AdmanHTML.OpenLinkPopupRender(V).open(w)}function e(w){He.initMode(w.slot?"slot":"json",{slot:w.slot,version:V.version}),V.slotId=w.slot,V.playerEl=w.playerEl,V.wrapper=w.wrapper,V.videoEl=w.videoEl,V.audioEl=w.audioEl,V.clickEl=w.clickEl,V.quality=parseInt(w.videoQuality||w.params&&w.params.videoQuality||360,10),V.browser=w.browser||{},V.config=w.config||{},V.pauseOnHide=w.pauseOnHide||!1,V.viewabilityValue=w.viewabilityValue||.5,V.viewabilityEl=w.viewabilityEl||V.videoEl,V.disclaimer=w.disclaimer!==!1,V.callToActionButton=w.callToActionButton!==!1,V.forcePreloadAdditionalData=!!w.forcePreloadAdditionalData,V.ctaStyles=w.ctaStyles,V.pause=p,V.resume=l,V.openPopup=t;var ee=AdmanHTML.Utils.getPageLocation(),ce=AdmanHTML.Utils.getHostname(ee||""),We=AdmanHTML.Utils.isMobile(navigator.userAgent||navigator.vendor||window.opera);AdmanHTML.Utils.isElement(V.videoEl)&&We&&V.videoEl.setAttribute("playsinline",""),V.location={top:ee,topEncoded:encodeURIComponent(ee||""),hostname:ce,hostnameEncoded:encodeURIComponent(ce||"")},He.rb(He.code.ADMAN_SUCCESSFULLY_INITIALIZED),V.stats.metrics("initing"),S=w.midrollPointsP||null,Ve=!S&&w.midrollPoints?w.midrollPoints:null,V.config.vpaidJsInterface||(V.config.vpaidJsInterface=xe),V.config.vpaidHtmlInterface||(V.config.vpaidHtmlInterface=ye);var ze="https://ad.mail.ru/vp/"+V.slotId+"?app_name=admanhtml&version="+this.getVersion();if(w.params&&w.params.constructor&&w.params.constructor===Object){var ut=[];"flash"in w.params||(w.params.flash=AdmanHTML.Utils.checkFlash()?1:0);for(var st in w.params)w.params.hasOwnProperty(st)&&ut.push(st+"="+w.params[st]);var yt=AdmanHTML.Utils.getUserIdQuery();yt&&ut.push(yt),ut.length&&(ze+="&"+ut.join("&"))}if((V.slotId||w.json||w.adUrl)&&!V.browser.adBlock){var ft={},Pi=this;V.slotId?ft.url=ze:w.adUrl?(w.adUrl.indexOf("ad.mail.ru/")!==-1&&(w.adUrl+=w.adUrl.indexOf("?")===-1?"?":"&",w.adUrl+="version="+this.getVersion()),ft.url=w.adUrl):ft.data=w.json,fe=new AdmanHTML.AdSlot(V,ft,function(){var ui=fe.getRootSettings()||{},Ri=ui.requestHostname;if(Ri&&!AdmanHTML.Utils.matchHostname(V.location.hostname,Ri,X))return V.stats.logError("HOSTNAME_MISMATCH:"+Ri+":"+V.location.topEncoded,{impressionID:ui.impressionID,padID:ui.padID,bannerIDs:ui.bannerIDs}),void(V.callbacks.onError&&V.callbacks.onError());V.location.hostname||V.stats.logError("HOSTNAME_EMPTY:"+Ri+":"+V.location.topEncoded),V.cb("onReady",[{settings:fe.settings}]);var Xi=1e6,Yi=[],Ze=[],Ge=w.params&&w.params.duration?parseInt(w.params.duration,10):Xi;Ge===0&&(Ge=Xi),Ve&&Ve.sort(AdmanHTML.Utils.numSorter),S&&S.sort(AdmanHTML.Utils.numSorter);var ht=fe.getSection("midroll")||[],ko=fe.getServices("midroll",function(Nt){return!Nt.started()&&Nt.isAfter()})||[];ht=ht.concat(ko),ht.forEach(function(Nt){var mt=Nt.getAd();mt.point||mt.pointP||(mt.pointP=50)}),ht.sort(function(Nt,mt){var vn=Nt.getAd(),_n=mt.getAd();return vn.pointP&&_n.pointP?vn.pointP-_n.pointP:(vn.point||vn.pointP/100*Ge)-(_n.point||_n.pointP/100*Ge)}).forEach(function(Nt){if(!Nt.isEmpty||!Nt.isEmpty()){var mt=Nt.getAd();Ve&&Ve.length?(mt.point=Ve.shift(),mt.pointP=null,Ze.push(mt.point),Nt.addImmutableProperty("point",mt.point)):S&&S.length?(mt.pointP=S.shift(),mt.point=null,Yi.push(mt.pointP),Nt.addImmutableProperty("pointP",mt.pointP)):Ve||S||(mt.point?(Nt.addImmutableProperty("point",mt.point),Ze.push(mt.point)):mt.pointP&&(Nt.addImmutableProperty("pointP",mt.pointP),Yi.push(mt.pointP)))}}),z=Yi.sort(AdmanHTML.Utils.numSorter),k=Ze.sort(AdmanHTML.Utils.numSorter);var zn=fe.getSection("research");zn&&zn.length>0&&(ae=zn[0]),V.pauseOnHide&&oe(Pi)})}else{He.logError("Adman init failed");var xi=V.callbacks.onError;xi&&xi(),G=Ae=W=null}}function i(w,ee){ee=ee||!1;var ce;if(G&&(G.log("sectionShown"),G.disposed||(G.dispose(),G.disposed=!0,I(G,W)),w&&G.log("closedByUser")),W&&!De[W]&&(De[W]=W!=="midroll",ce=w?V.callbacks.onClosed:V.callbacks.onCompleted),Ye[W]&&Ae&&(Ye[W]=Ye[W].concat(Ae.splice(0,Ae.length))),G=Ae=W=null,s(),typeof ee=="object"&&ee.force===!0)return void((ce=V.callbacks.onError)&&ce(ee.message));ce&&ce()}function n(w){var ee=fe.getSettings(W).maxBannersShow||0,ce=je[W]||0,We=!ee||ce<ee;if(G&&!G.disposed&&(G.complete&&G.log("playbackCompleted"),G.dispose(),G.disposed=!0,I(G,W)),Ae&&Ae.length&&We)G=Ae.shift(),je[W]=ce+(G.isEmpty()?0:1),G.reset(),G.started=!0,G.start();else{var ze=fe.getNextAfterService(W);W!=="midroll"&&ze&&We?ze.start(function(){Ae=fe.getSection(W),n()}):fe.getSettings(W).loop&&Ye[W]&&Ye[W].length?(Ae=Ye[W],Ye[W]=[],n()):i(!1,w)}}function r(w){Ae||(W=w||"preroll",fe.resetServices(W),De[W]=!1,Ae=fe.getSection(W),w==="midroll"&&(Ae=c(Ae)),n(),W&&(Ye[W]=Ye[W]||[]),G&&(G.log("sectionStarted"),V.debugMode&&console.log(W,G.getAd(),G.getSettings(),Ae)),o(W),V.stats.metrics("started"))}function o(w){(Be=fe.getDebug(w))&&Be.start()}function s(){Be&&Be.dispose(),Be=null}function a(w,ee){function ce(Ze,Ge){for(var ht=0;ht<Ze.length&&!(Math.abs(Ze[ht])>Ge);ht++);return ht>0?[Ze[ht-1]]:[]}function We(Ze){var Ge=Ze.getAd();return!(Ge.point&&k.indexOf(Ge.point)===-1||Ge.pointP&&z.indexOf(Ge.pointP)===-1)&&(Ge.point&&Ge.point<=ui||Ge.pointP&&Ge.pointP<=Ri)}function ze(){ie=z.reduce(function(Ze,Ge){var ht=Math.ceil(ee*Ge/100);Ze.indexOf(ht)===-1&&Ze.push(ht)},k).sort(AdmanHTML.Utils.numSorter)}function ut(Ze){return ie.reduce(function(Ge,ht){return Ge===0&&ht>0&&ht-Ze>=0?ht-Ze:Ge},0)}if(!isNaN(w)&&!isNaN(ee)){var st=parseInt(w),yt=Math.floor(100*w/ee);ve=ee,se=z&&isFinite(yt)?ce(z,yt):[],de=k?ce(k,st):[],se[0]&&de[0]&&(Math.abs(se[0]*ve/100)>Math.abs(de[0])?de=[]:se=[]);var ft=typeof fe=="object"&&typeof fe.getSettings=="function"?fe.getSettings("midroll").midpointAllowableDelta:void 0;Y=ft!=null?ft:Y;var Pi=100*Y/ee,xi=Y!==0&&Y<5?Y:5,ui=st+xi,Ri=yt+xi/ee*100;if(fe.getServices("midroll",function(Ze){return!(!Ze.isAfter()||Ze.started()||!We(Ze))}).forEach(function(Ze){var Ge=st-Ze.getAd().point,ht=yt-Ze.getAd().pointP;Ge<Y||ht<Pi||Y===0?Ze.start():V.debugMode&&console.log("skip midroll fetch")}),se.length&&se[0]>0||de.length&&de[0]>0){var Xi=!1,Yi=fe.getSection("midroll");Yi&&Yi.forEach(function(Ze){var Ge=Ze.getAd();(Ge.pointP&&~se.indexOf(Ge.pointP)||Ge.point&&~de.indexOf(Ge.point))&&(Xi=!0)}),Xi&&V.cb("adMidrollPoint",[w])}return V.forcePreloadAdditionalData?(ze(),ut(w)):void 0}}function c(w){function ee(We,ze){var ut=We.getAd(),st=ze.getAd();return(ut.point||ut.pointP*ve/100)-(st.point||st.pointP*ve/100)}var ce=[];return w&&w.forEach(function(We){var ze=We.getAd();(ze.pointP&&~se.indexOf(ze.pointP)||ze.point&&~de.indexOf(ze.point))&&ce.push(We)}),k.forEach(function(We,ze){~de.indexOf(We)&&(k[ze]=-k[ze])}),z.forEach(function(We,ze){~se.indexOf(We)&&(z[ze]=-z[ze])}),ce.sort(ee),ce}function m(){V.cb("onSkipped"),G&&(G.log("closedByUser"),G.skip(n))}function p(){G&&(G.log("playbackPaused"),G.pause())}function l(w){G&&(w||G.log("playbackResumed"),G.resume())}function u(w){w=w<0?0:w>1?1:w,G&&G.setVolume(w)}function h(){G&&G.log("fullscreenOn")}function v(){G&&G.log("fullscreenOff")}function _(){i()}function y(w,ee){V.callbacks[w]=ee}function D(w){var ee=[],ce=fe.getSection(w||"preroll");return ce&&ce.forEach(function(We){We.isEmpty()||ee.push(We.getExtendedAdForApp())}),ee}function N(w){return fe.getAfterServices(w||"preroll")}function I(w,ee){w.isEmpty()||w.isStat()||Ye[ee]&&Ye[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 E(w){return w&&!isNaN(w)?w:null}function M(w,ee){var ce=w.document,We=ee==="width"?"clientWidth":"clientHeight",ze=ee==="width"?"innerWidth":"innerHeight",ut=w[ze],st=ce.body[We],yt=ce.documentElement[We],ft=1/0;return ft=E(st)||ft,ft=E(yt)||ft,ut&&!isNaN(ut)&&(ft=Math.min(ft,ut)),ft}function P(w){return{width:M(w,"width"),height:M(w,"height")}}function L(w,ee){var ce=P(ee);return{left:Math.max(0,w.left),right:Math.min(ce.width,w.right),top:Math.max(0,w.top),bottom:Math.min(ce.height,w.bottom)}}function A(w,ee){try{for(var ce=w.getBoundingClientRect(),We=b(ce),ze=ee,ut=ze.parent;ze!==ut;){var st=ze.frameElement.getBoundingClientRect();ce=x(ce,st);var yt=Math.max(st.left,ce.left),ft=Math.min(st.right,ce.right),Pi=Math.max(st.top,ce.top),xi=Math.min(st.bottom,ce.bottom);ce.left=yt,ce.right=ft<yt?yt:ft,ce.top=Pi,ce.bottom=xi<Pi?Pi:xi,ze=ze.parent}ce=L(ce,ut);var ui=b(ce);return{left:ce.left,right:ce.right,top:ce.top,bottom:ce.bottom,percent:ui/We*100}}catch(Ri){return{left:0,right:0,top:0,bottom:0,percent:0}}}function T(){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(ce){}return"XD_FRAME"}function j(w){return!T(w)&&g(w)!=="XD_FRAME"}function U(w,ee,ce){q(ce,A(w,window).percent>=100*ee)}function $(w){return w.mozVisibilityState?"mozvisibilitychange":w.webkitVisibilityState?"webkitvisibilitychange":w.visibilityState?"visibilitychange":""}function B(w){q(w,!0)}function O(w){q(w,!1)}function q(w,ee){var ce=w.getPlayStatus();w.prevVisibility!==ee&&(w.prevVisibility=ee,ce.curStatus!==void 0&&ce.curStatus!==ce.prevStatus&&(ee?w.resume():w.pause()))}function oe(w){var ee=w,ce=V.viewabilityValue,We=V.viewabilityEl;if(We){if(T()){var ze=new IntersectionObserver(function(yt){yt.forEach(function(ft){q(ee,ft.intersectionRatio>=ce)})},{threshold:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});ze.observe(We)}else if(j){var ut=function(){U(We,ce,ee)};window.addEventListener("resize",ut,!1),window.addEventListener("scroll",ut,!1)}}var st=($(document),ue.hasFocus());setInterval(function(){var yt=ue.hasFocus();st!==yt&&(st=yt,st?B(ee):O(ee))},500)}function Z(){return V.playStatus===void 0?{prevStatus:void 0,curStatus:void 0}:V.playStatus}var fe,W,Ae,G,Be,ae,ve,V={version:"2.2.57",debugMode:!0,callbacks:{},cb:function(w,ee){switch(w){case"onCompleted":G&&(G.complete=!0),n();break;case"onError":G&&(G.error=!0),n(ee);break;case"onClosed":i(!0);break;default:var ce=V.callbacks[w];ce&&ce.apply(this,ee)}}},Te=window.location.protocol==="http:"?"http:":"https:",xe=Te+"//ad.mail.ru/static/admanhtml/vpaid-js-interface.swf",ye=Te+"//ad.mail.ru/static/rbadman-vpaid.html",He=new AdmanHTML.Stats(V),qe=new AdmanHTML.Viewability,Ve=[],S=[],k=[],z=[],ie=[],se=[],de=[],je={},Ye={},Y=3,X=function(){for(var w=window,ee=frameElement;ee;){try{ee=w.parent.frameElement}catch(ce){break}w=w.parent}return w}(),ue=X.document;V.stats=He,V.viewability=qe,V.protocol=Te,V.stats.metrics();var De={};return{init:e,start:r,stop:_,pause:p,resume:l,setVolume:u,fullscreenOn:h,fullscreenOff:v,setFullscreen:function(w){w?h():v()},skip:m,destroy:_,getPlayStatus:Z,getSlot:function(){return V.slotId},setSlot:function(w){V.slotId=w},getVersion:function(){return V.version},getBannersForSection:D,getServicesForSection:N,hasSection:function(w){return w=w||"preroll",!(!D(w).length&&!N(w).length)},setDebug:function(w){V.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,E){var M,P,L,A;if(b){try{b=decodeURIComponent(b)}catch(B){}if(x==="playheadReachedValue")E.thresholdValue!==void 0||E.value!==void 0?(M=parseInt(E.thresholdValue||E.value,10),e.stats.push({name:"thresholdValue",value:M,type:"thresholdValue."+M,url:b})):E.thresholdPValue===void 0&&E.pvalue===void 0||(M=parseInt(E.thresholdPValue||E.pvalue,10),e.stats.push({name:"thresholdPValue",value:M,type:"thresholdPValue."+M,url:b}));else if(x==="playheadViewabilityValue"){var T=parseInt(E.viewablePercent,10),g=E.ovv===void 0&&E.mrc===void 0||!!E.ovv||!!E.mrc,j="";L=E.startTimer!==void 0?parseInt(E.startTimer,10):0,A=E.endTimer!==void 0?parseInt(E.endTimer,10):0,T=isNaN(T)?50:T,E.value!==void 0?(M=parseInt(E.value,10),P="ovvValue"):E.pvalue!==void 0?(M=parseInt(E.pvalue,10),P="ovvPValue"):E.duration!==void 0&&(M=parseInt(E.duration,10),P="mrcValue",g||(j=E.unload?"unload":"complete"));var U={name:P,value:M,url:b,percent:T,viewable:g,start:L,end:A,onevent:j};"target"in E&&(U.target=E.target),e.stats.push(U)}else if(x==="playheadTimerValue"){L=E.startTimer!==void 0?parseInt(E.startTimer,10):0,A=E.endTimer!==void 0?parseInt(E.endTimer,10):0;var $=E.rate!==void 0?parseInt(E.rate,10):1;e.stats.push({name:"timerValue",rate:$,url:b,start:L,end:A})}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,E){!E&&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(A){var T=A.type||"";return!(~T.indexOf("video")&&T!=="video/mp4"||~T.indexOf("audio")&&T!=="audio/mp3"&&T!=="audio/mpeg")}function E(){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 M;e.ad.mediafiles.forEach(function(A){x(A)&&(!M||Math.abs(parseInt(A.height)-t.quality)<Math.abs(parseInt(M.height)-t.quality))&&(M=A)}),M&&AdmanHTML.Utils.mixin(e.ad,M)}delete e.ad.statistics,delete e.ad.mediafiles;var P,L;switch(e.ad.type){case"swf":case"application/x-shockwave-flash":if(L=e.ad.apiFramework||e.ad.api,t.browser.mobile||L&&L!=="VPAID")return E(),!1;P=L?new AdmanHTML.VpaidSwfAdRenderer(t,this):new AdmanHTML.SwfAdRenderer(t,this);break;case"javascript":case"application/javascript":if((L=e.ad.apiFramework||e.ad.api)&&L!=="VPAID")return E(),!1;P=new AdmanHTML.VpaidJsAdRenderer(t,this);break;case"video":case"video/mp4":P=new AdmanHTML.VideoAdRenderer(t,this);break;case"audio":case"audio/mp3":case"audio/mpeg":P=new AdmanHTML.AudioAdRenderer(t,this);break;case"image":case"image/bmp":case"image/gif":case"image/jpeg":case"image/png":P=new AdmanHTML.ImgAdRenderer(t,this);break;case"text":P=new AdmanHTML.TextAdRenderer(t,this);break;case"html":P=new AdmanHTML.HtmlAdRenderer(t,this);break;case"empty":P=new AdmanHTML.EmptyAdRenderer(t,this);break;case"statistics":P=new AdmanHTML.StatisticsAdRenderer(t,this);break;case"debugData":P=new AdmanHTML.DebugAdRenderer(t,this);break;case"research":P=new AdmanHTML.ResearchAdRenderer(t,this);break;case"video/x-flv":default:return E(),!1}return e.renderer=P,!0}function m(){return new AdmanHTML.Ad(t,JSON.parse(JSON.stringify(e)))}function p(){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,E){var M=b.url;M=M.replace("{requesthostname}",t.location.hostnameEncoded||""),AdmanHTML.Utils.loadImg(M);var P=x.indexOf(b);~P&&E&&x.splice(P,1)}function u(b,x){var E=x.indexOf(b);~E&&x.splice(E,1)}function h(b,x){function E(g){g=25*Math.floor(g/25);var j=I["thresholdPValue."+g];j&&(A=A.concat(j))}var M=e.stats.slice(0);if(Array.isArray(b)){var P;for(P=0;P<b.length&&!~M.findIndex(function(g){return g.name===b[P]});P++);b=b[P]||b.slice(-1)}if(!t.isPopupOpen||b!=="playbackPaused"&&b!=="playbackResumed"){var L=b+(x===void 0?"":"."+x),A=I[L]?I[L].slice(0):[];A.push(L),b==="thresholdPValue"&&E(x);var T=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,M,T),~A.indexOf(g.type)&&l(g,M,T)}),e.stats=M}}function v(b,x){function E(T,g){g[Math.ceil(T.percent/10)].duration>=1e3*T.value?T.viewable?l(T,P,!0):u(T,P):L++}function M(T){T.viewable||T.onevent===x&&l(T,P,!0)}var P=e.stats.slice(0),L=0,A=b&&b.length?E:M;return e.stats.forEach(function(T){T.name==="mrcValue"&&A(T,b)}),e.stats=P,L}function _(b,x){var E,M,P=e.stats.slice(0);e.stats.forEach(function(L){(L.name==="ovvValue"&&L.value<=b||L.name==="ovvPValue"&&L.value<=x)&&(E=E||t.viewability.getViewabilityState(),M=E.percent>L.percent&&E.focus,E.state!=="UNDETERMINED"&&(M&&L.viewable||!M&&!L.viewable)&&AdmanHTML.Utils.loadImg(L.url),u(L,P))}),e.stats=P}function y(b,x){e.renderer&&e.renderer[b]&&e.renderer[b](x)}function D(){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 N(){var b=D();return b.statistics=e.stats.slice(0),b}e=e||{stats:[],extensions:{},immutables:{}};var I={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:D,getExtendedAdForApp:N,isEmpty:function(){return e.ad.type==="empty"},isStat:function(){return e.ad.type==="statistics"},clone:m,reset:p,log:h,logMRC:v,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(A){N||(N={});for(var T in A)A.hasOwnProperty(T)&&(N[T]=A[T])}function r(A,T,g,j,U,$){function B(q){t.stats.metrics("inited");var oe={};--b,q&&(x++,q=typeof q=="string"?q.trim():q,typeof q=="object"||q.charAt(0)==="{"?(oe=a(q,A,T,g||0,j,U,$),E++):q.charAt(0)==="<"?(oe=c(q,A,T,g||0,j,U,$),E++):(t.stats.rb(t.stats.code.UNKNOWN_DATA_FORMAT),t.stats.logError("UNKNOWN_DATA_FORMAT"))),A.id&&(oe.banners||oe.services?oe.banners&&L.markNonEmptyService(A.id):L.markEmptyService(A.id)),o($)}if(g&&g>4)return void o($);var O=L.getService(A.id);O&&O.log("serviceRequested"),++b,A.url?(A.url.indexOf("ad.mail.ru/")!==-1&&A.url.indexOf("version="+t.version)===-1&&(A.url+=A.url.indexOf("?")===-1?"?":"&",A.url+="version="+t.version),AdmanHTML.Utils.xhr(A.url,B)):A.data&&setTimeout(B,0,A.data)}function o(A){if(!b){if(x&&E){var T=L.getNextOnEmptyService();if(T)return void T.start(o.bind(null,A));v();var g=A||i;return g.called||(g.called=!0,g()),void(t.debugMode&&console.log(y))}s()}}function s(){var A=t.callbacks.onError;A&&A()}function a(A,T,g,j,U,$,B){function O(ve){return ve?ve.filter(function(V){return V.type&&(V.type==="sectionShown"||V.type==="sectionStarted"||V.type==="sectionEmpty")}):[]}function q(ve,V,Te,xe){var ye=g?g.clone():new AdmanHTML.Ad(t);if(ye.addStatCollection(ve.statistics),ye.addStatCollection(ve.serviceStatistics),ve.type==="additionalData"){var He;ve.id=ve.id||AdmanHTML.Utils.createIntUID(),fe.services++;var qe=!y[Te]||y[Te].length===0;if(V>0&&qe&&(P[Te]=!0),ve.extensions)for(var Ve in ve.extensions)ve.extensions.hasOwnProperty(Ve)&&m(ye,ve.extensions[Ve],Ve);if(["point","pointP","hasVolume","hasPause","allowClose","allowCloseDelay","allowSeek","allowSkip","allowTrackChange","allowVolumeChange"].forEach(function(z){z in ve&&ye.addImmutableProperty(z,ve[z])}),t.forcePreloadAdditionalData||ve.doAfter!=="true"&&ve.doAfter!==!0&&!ve.doOnEmptyResponseFromId)He=new AdmanHTML.ServiceAd(t),l(Te,T.id,He,ve),V===0&&qe?r(ve,ye,j+1,Te,M.PRE,B):r(ve,ye,j+1,Te,null,B);else{var S=ve.doAfter==="true"||ve.doAfter===!0?M.POST:null,k=function(z,ie){r(ve,z||ye,ve.allowRepeat?0:j+1,Te,S,function(){ie&&ie()})};He=new AdmanHTML.ServiceAd(t,null,k),l(Te,T.id,He,ve,ye)}}else p(Te,xe,ye,ve),fe.banners++;return ye}var oe,Z=A,fe={banners:0,services:0};if(typeof A=="string")try{Z=JSON.parse(A)}catch(ve){return t.stats.rb(t.stats.code.ERROR_CONVERTING_STRING_TO_JSON),void t.stats.logError("ERROR_CONVERTING_STRING_TO_JSON")}if(Z.settings&&Z.settings.requestHostname&&!N.requestHostname&&(N.requestHostname=Z.settings.requestHostname),Z&&Z.settings&&(N=t.slot&&t.slot.getRootSettings()||N||{},n&&typeof n=="function")){var W=Z.sections&&Z.sections.preroll&&Z.sections.preroll.length&&Z.sections.preroll[0]||null;n({impressionID:Z.settings.impressionID||"",padID:Z.settings.padID||"",bannerIDs:W&&W.bannerID||""})}for(var Ae in Z.sections)if(Z.sections.hasOwnProperty(Ae)){var G=Z.sections[Ae],Be=0;if(Z.settings&&(oe=Z.settings[Ae])&&(oe.controlsStyle=Z.settings.controlsStyle||0,h(Ae,oe)),G.forEach(function(ve){if(ve.type==="debugData"){var V=new AdmanHTML.Ad(t);return V.addClick(ve.url),void u(Ae,V,ve)}var Te=U===Ae?$:"",xe=q(ve,Be,Ae,Te);oe&&(xe.addStatCollection(O(oe.statistics)),xe.addSettings(oe)),Be++}),G.length===0){var ae=new AdmanHTML.Ad(t);oe&&ae.addStatCollection(O(oe.statistics)),p(Ae,"",ae,{type:"empty"})}}return Z.type&&q(Z,0,U,$),fe}function c(A,T,g,j,U,$,B){function O(G,Be,ae){oe(G.getElementsByTagName(Be),ae)}function q(G,Be,ae,ve){O(G,Be,function(V){ve(fe(V),ae?Z(V,ae):null,V)})}function oe(G,Be){Array.prototype.forEach.call(G,Be.bind(this))}function Z(G,Be){var ae=G.attributes.getNamedItem(Be);return ae?ae.value:null}function fe(G){return G&&G.childNodes&&G.childNodes[0]&&G.childNodes[0].wholeText?G.childNodes[0].wholeText.trim():null}var W,Ae={banners:0,services:0};try{W=AdmanHTML.Utils.parseXml(A)}catch(G){return t.stats.rb(t.stats.code.ERROR_CONVERTING_STRING_TO_XML),void t.stats.logError("ERROR_CONVERTING_STRING_TO_XML")}return O(W,"Ad",function(G){function Be(V){var Te=g?g.clone():new AdmanHTML.Ad(t);q(G,"Impression","id",function(ye){try{Te.addStat(ye,"playbackStarted")}catch(He){}}),q(G,"Extension","type",function(ye,He){m(Te,ye,He)}),q(G,"Error",null,function(ye){Te.addStat(ye,"error")}),q(V,"Tracking","event",Te.addStat);var xe=V.getElementsByTagName("VideoClicks")[0];return xe&&oe(xe.childNodes,function(ye){ye.tagName==="ClickThrough"?Te.addClick(fe(ye)):ye.tagName==="ClickTracking"&&Te.addStat(fe(ye),"click")}),Te}function ae(V){var Te={width:Z(V,"width"),height:Z(V,"height"),id:Z(V,"id"),assetWidth:Z(V,"assetWidth"),assetHeight:Z(V,"assetHeight"),expandedWidth:Z(V,"expandedWidth"),expandedHeight:Z(V,"expandedHeight"),apiFramework:Z(V,"apiFramework"),adSlotID:Z(V,"adSlotID"),statistics:[]};return q(V,"StaticResource",null,function(xe){Te.staticResource=xe}),q(V,"HTMLResource",null,function(xe){Te.htmlResource=xe}),q(V,"IFrameResource",null,function(xe){Te.iframeResource=xe}),q(V,"CompanionClickTracking",null,function(xe){Te.statistics.push({type:"click",url:xe})}),q(V,"Tracking","event",function(xe,ye){Te.statistics.push({type:ye,url:xe})}),q(V,"CompanionClickThrough",null,function(xe){Te.urlToNavigateOnClick=xe}),Te}var ve=Z(G,"id");O(G,"InLine",function(V){var Te=[];O(V,"CompanionAds",function(xe){var ye=Z(xe,"required")||"none";O(V,"Companion",function(He){var qe=ae(He);qe.required=ye,Te.push(qe)})}),O(V,"Linear",function(xe){var ye,He=Be(xe),qe=xe.parentNode;qe&&(ye=Z(qe,"adId")||Z(qe,"adID")||Z(qe,"AdId")||Z(qe,"AdID")||Z(qe,"id")),ye=ye||ve;var Ve={bannerID:ye,mediafiles:[],duration:AdmanHTML.Utils.convertDuration(fe(xe.getElementsByTagName("Duration")[0]))};T.urlToNavigateOnClick&&(Ve.urlToNavigateOnClick=T.urlToNavigateOnClick),O(xe,"MediaFile",function(S){Ve.mediafiles.push({apiFramework:Z(S,"apiFramework"),type:Z(S,"type"),width:Z(S,"width"),height:Z(S,"height"),src:fe(S)})}),O(xe,"AdParameters",function(S){Ve.params=fe(S);try{var k=JSON.parse(Ve.params);if(k&&k.settings&&(N=t.slot&&t.slot.getRootSettings()||N||{},n&&typeof n=="function")){var z=k.sections&&k.sections.preroll&&k.sections.preroll.length&&k.sections.preroll[0]||null;k.settings&&k.settings.preroll,n({impressionID:k.settings.impressionID||"",padID:k.settings.padID||"",bannerIDs:z&&z.bannerID||""})}}catch(ie){console.log(ie)}}),Te.length&&(Ve.companionAds=Te),p(U||"preroll",$,He,Ve),Ae.banners++}),O(V,"NonLinear",function(xe){var ye=Be(xe),He={width:Z(xe,"width"),height:Z(xe,"height"),duration:AdmanHTML.Utils.convertDuration(Z(xe,"minSuggestedDuration")),mediafiles:[]};q(xe,"NonLinearClickThrough",null,function(qe){ye.addStat(qe,"click")}),q(xe,"StaticResource","creativeType",function(qe,Ve){He.mediafiles.push({type:Ve,src:qe})}),p(U||"overlay",$,ye,He),Ae.banners++})}),O(G,"VASTAdTagURI",function(V){Ae.services++,r({url:fe(V),id:T.id},Be(G),j+1,U,$,B)})}),Ae}function m(A,T,g){g==="controls"?A.addExtension("showControls",!!parseInt(T,10)):g==="skipTime2"?(T=isNaN(T)?AdmanHTML.Utils.convertDuration("00:"+T):parseInt(T,10),A.addExtension("allowCloseDelay",T)):g==="linkTxt"&&(A.addExtension("linkText",T),A.addExtension("adText",T))}function p(A,T,g,j){g.addAd(j)&&(g.sectionType=A,T===M.PRE&&P[A]&&(T=""),A=(T||"")+A,y[A]=y[A]||[],y[A].push(g))}function l(A,T,g,j,U){g.addAd(j),g.addInheritedAd(U),g.addStatCollection(j.statistics),g.addStatCollection(j.serviceStatistics),g.sectionType=A,L.addService(g,T)}function u(A,T,g){T.addAd(g)&&(T.section=A,I[A]=T)}function h(A,T){D[A]=D[A]||{},AdmanHTML.Utils.mixin(D[A],T),delete D[A].statistics,delete D[A].view,delete D[A].advertisment}function v(){"preroll midroll pauseroll overlay postroll claimroll".split(" ").forEach(function(A){var T=P[A]?y[A]:y[M.PRE+A],g=P[A]?y[M.PRE+A]:y[A],j=y[M.POST+A];y[A]=[].concat(T||[],g||[],j||[]),_(M.PRE+A),_(M.POST+A)})}function _(A){y[A]=[]}var y={},D={},N={},I={},b=0,x=0,E=0,M={PRE:"pre-",POST:"post-"},P={},L=new AdmanHTML.ServiceStorage(t);return r({url:e.url,data:e.data}),{getSection:function(A){return y[A]},getAfterServices:L.getAfterServices,getNextAfterService:L.getNextAfterService,resetServices:L.resetAll,getServices:L.getServices,removeService:L.removeService,getSettings:function(A){return D[A]||{}},getRootSettings:function(){return N},getDebug:function(A){return I[A]}}},AdmanHTML.ServiceAd=function(t,e,i){"use strict";function n(h){return e.ad=h,!0}function r(h){e.inheritedAd=h}function o(h,v){e.inheritedAd.addImmutableProperty(h,v,!0)}function s(h){var v=h?h.filter(function(_){return _.type==="serviceRequested"||_.type==="serviceAnswerEmpty"}):[];v&&v.forEach(function(_){a(_.url,_.type,_)})}function a(h,v){h=decodeURIComponent(h),e.stats.push({name:v,type:v,url:h})}function c(h){u=!0,i&&i(e.inheritedAd,h)}function m(){u=!1}function p(){return!(t.forcePreloadAdditionalData||!e.ad||!e.ad.doAfter)&&(e.ad.doAfter===!0||e.ad.doAfter==="true")}function l(h){function v(y){AdmanHTML.Utils.loadImg(y.url);var D=_.indexOf(y);~D&&_.splice(D,1)}var _=e.stats.slice(0);e.stats.forEach(function(y){y.type===h&&v(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:p}},AdmanHTML.ServiceStorage=function(t){"use strict";function e(_,y){var D=_.getAd();h.push(D.id),u[D.id]={service:_},y&&u[y]&&(u[y].children=u[y].children||[],u[y].children.push(D.id)),t.forcePreloadAdditionalData||D.doAfter!=="true"&&D.doAfter!==!0&&!D.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,N;for(D=0,N=l.length;D<N;D++)if(_=l[D],_.getAd().id===y){l.splice(D,1);break}}function r(_,y){if(!_)return[];var D,N,I=[];for(D in u)u.hasOwnProperty(D)&&(N=u[D].service,N.sectionType!==_||y&&!y(N)||I.push(N));return I}function o(_){h.forEach(function(y,D){_===y?(u[y].service.log("serviceAnswerEmpty"),h.splice(D,1),v.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,N;for(_=0,y=l.length;_<y;_++)if(D=l[_],(N=D.getAd().doOnEmptyResponseFromId)&&v.indexOf(N)!==-1&&!D.isAfter())return l.splice(_,1),D;return null}function c(_){if(!_)return[];var y,D,N,I=[];for(y=0,D=l.length;y<D;y++)N=l[y],N.sectionType===_&&N.isAfter()&&!N.started()&&I.push(N);return I}function m(_){if(!_)return null;var y,D,N,I;for(y=0,D=l.length;y<D;y++)if(N=l[y],N.sectionType===_&&N.isAfter()&&!N.started()){if((I=N.getAd().doOnEmptyResponseFromId)&&v.indexOf(I)===-1)continue;return N.getAd().allowRepeat||l.splice(y,1),N}return null}function p(_){var y,D,N;for(y=0,D=l.length;y<D;y++)N=l[y],_&&N.sectionType!==_||N.reset()}var l=[],u={},h=[],v=[];return{addService:e,getService:i,getServices:r,removeService:n,resetAll:p,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(I){if(u){var b=v[I];b&&s("https://r.mail.ru/d"+b+".gif?rnd="+Math.random())}else h.push(I)}function i(I,b){if(!n()){if(I)try{Object.defineProperty(_,I,{writable:!1,enumerable:!0,value:b||Date.now()-c})}catch(x){}else _.sessionId=AdmanHTML.Utils._genSessionId();c=Date.now(),Object.keys(v).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(I){return _.hasOwnProperty(I)})}function r(I,b,x){var E=[];if(x)for(var M in x)x.hasOwnProperty(M)&&E.push(M+"="+String(x[M]));var P="";E.length&&(P="&"+E.join("&")),N||s("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+t.version+"&"+I+"="+encodeURI(b)+"&slot="+(m==="slot"?t.slotId:"json")+P),t.debugMode&&console&&console.log&&(console.log("MESSAGE: "+I+" = "+b),x&&console.log("MESSAGE EXTRA PARAMS: "+JSON.stringify(x)))}function o(I,b){var x=[];if(b)for(var E in b)b.hasOwnProperty(E)&&x.push(E+"="+String(b[E]));var M="";x.length&&(M="&"+x.join("&")),N||s("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+t.version+"&error="+encodeURI(I)+"&slot="+(m==="slot"?t.slotId:"json")+M),t.debugMode&&console&&console.warn&&console.warn("Error: "+I)}function s(I){AdmanHTML.Utils.loadImg(I)}function a(I){if(!l){var b="https://ad.mail.ru/vp/"+p+"?original="+(I.slot||"")+"&version="+I.version;l=!0,N?(console.log(b),u=!0):AdmanHTML.Utils.xhr(b,function(x){if(u=!0,x){if(typeof x=="string")try{v=JSON.parse(x.trim())}catch(M){}else typeof x=="object"&&(v=x);var E=h.slice();h=[],E.forEach(e)}})}}var c,m="slot",p=3107,l=!1,u=!1,h=[],v={},_={},y=AdmanHTML.Utils.getPageLocation(),D=AdmanHTML.Utils.getHostname(y||""),N=D.indexOf("localhost")!==-1;return{rb:e,logError:o,logMessage:r,simple:s,metrics:i,initMode:function(I,b){m=I,I==="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,p){return p?p.toUpperCase():""})}function e(c,m,p){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]=p}function i(c){return parseInt(c)+"px"}function n(c,m){function p(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 p(l,m)}).join(", ")+")":p(c,m)}function r(c,m,p){var l=c.style;(p||Object.keys(m)).forEach(function(u){m.hasOwnProperty(u)&&o(l,u,m[u],m)})}function o(c,m,p,l){var u,h,v;switch(m){case"fontFace":u="fontFamily",h=p;break;case"hasBackground":p||(u="background",h="none",delete l.backgroundColor);break;case"backgroundColor":u="background",h=n(p,l.backgroundAlpha);break;case"cornerRounding":case"borderCornerRounding":u="borderRadius",h=i(Math.floor(p/2));break;case"headerColor":case"bodyColor":case"hyperlinkColor":case"textColor":u="color",h=n(p);break;case"headerSize":case"bodySize":case"hyperlinkSize":case"textSize":u="fontSize",h=i(p);break;case"headerUnderline":case"bodyUnderline":case"hyperlinkUnderline":case"textUnderline":u="text-decoration",h=p?"underline":"none",v="";break;case"headerUnderlineOnRollOver":u="text-decoration",h=p?"":"none",v=p?"":"important";break;case"headerBold":case"bodyBold":case"hyperlinkBold":case"textBold":u="fontWeight",h=p?"bold":"normal";break;case"headerIndent":case"bodyIndent":case"hyperlinkIndent":u="marginTop",h=i(p);break;case"bodyPaddingRight":u="marginRight",h=i(p);break;case"width":case"height":u=m,h=i(p);break;case"contentPadding":case"contentIndent":case"controlsSafeArea":u="padding",h=i(p);break;case"maxImageWidth":case"maxImageHeight":u=m==="maxImageWidth"?"maxWidth":"maxHeight",h=i(p);break;case"borderSize":u="borderWidth",h=i(p);break;case"borderColor":u="borderColor",h=n(p,l.borderAlpha);break;case"paddingLeft":case"paddingTop":u=m==="paddingLeft"?"left":"top",h=i(p);break;case"controlsPaddingTop":case"controlsPaddingRight":u=m==="controlsPaddingRight"?"right":"top",h=i(p)}u&&h&&(v!==void 0?c.setProperty(u,h,v):e(c,u,h))}var s={},a=["","webkit","Moz","O","ms"];return{applyStyle:r,getLength:i}}(),AdmanHTML.Utils=function(){"use strict";function t(){return ve||(ve=function(){try{if(window===window.top)return V;for(var S=window;S!==S.parent;){if(S.document.domain!==S.parent.document.domain)return xe;S=S.parent}return Te}catch(k){}return xe}())}function e(){if(ye!==null)return ye;var S=window;try{for(;S.parent!==S&&S.document.domain===S.parent.document.domain;)S=S.parent}catch(k){}return ye=S,S}function i(){var S=window,k="",z=e();try{k=S.top.location.href}catch(se){if(z&&z.parent===S.top&&(k=z.document.referrer),!k){var ie=S.location.ancestorOrigins;ie&&ie.length&&(k=ie[ie.length-1])}}return k||(k=(z||window).document.referrer),k}function n(){return Ve.major?qe:He}function r(S){S(n())}function o(S,k){k&&S.addEventListener("load",k,!1);var z=document.getElementsByTagName("head");if(z&&z.length){var ie=z[0];ie&&ie.appendChild(S)}}function s(S,k,z){var ie=document.getElementById(k);if(ie&&ie.parentNode){if(!z)return;ie.parentNode.removeChild(ie)}ie=document.createElement("style"),ie.type="text/css",ie.id=k,ie.innerHTML=S,o(ie)}function a(S){var k=document.querySelector("link[href*='"+S+"']");k||(k=document.createElement("link"),k.type="text/css",k.rel="stylesheet",k.href=S,o(k))}function c(S){var k=document.querySelector("script[src*='"+S+"']");k||(k=document.createElement("script"),k.setAttribute("type","text/javascript"),k.setAttribute("charset","utf8"),k.setAttribute("src",S),o(k))}function m(S,k){var z=AdmanHTML.Utils.getPageLocation();if(AdmanHTML.Utils.getHostname(z||"").indexOf("localhost")===-1){var ie=new Image;ie.onload=function(){k&&k(ie)},ie.src=S}else console.log(S)}function p(S,k,z,ie,se){ie=ie||"GET";var de=new XMLHttpRequest;return de.open(ie,S,!0),de.withCredentials=!se,de.setRequestHeader("Content-Type","text/plain"),de.send(z||null),k&&(de.onreadystatechange=function(){de.readyState===4&&(de.status===200?k(de.response):k())},de.onerror=function(){se?k():p(S,k,z,ie,!0)}),de}function l(S,k,z,ie,se){se===void 0&&(se=!0);var de=k*z<S*ie;se&&(de=!de);var je=de?ie/k:z/S,Ye=Math.floor(S*je),Y=Math.floor(k*je);return{x:Math.floor((z-Ye)/2),y:Math.floor((ie-Y)/2),width:Math.floor(Ye),height:Math.floor(Y)}}function u(S){return typeof S=="object"&&!!S&&!Array.isArray(S)}function h(S){var k;for(k in S)return!1;return!0}function v(S,k){if(!S)return null;if(k){var z;for(z in k)Object.prototype.hasOwnProperty.call(k,z)&&(S[z]=k[z])}return S}function _(S,k){if(k){var z,ie;for(z in k)Object.prototype.hasOwnProperty.call(k,z)&&(ie=k[z],u(ie)?(S[z]=S[z]||{},S[z]=_(S[z],ie)):S[z]=ie)}return S}function y(S,k,z){return S=S||0,k=k||0,z=z||1,Math.min(z,Math.max(k,S))}function D(S,k){return S-k}function N(){return Math.floor(Math.random()*Math.pow(2,48)).toString()}function I(S){S=S.split("+").join(" ");for(var k,z={},ie=/[?&]?([^=]+)=([^&]*)/g;k=ie.exec(S);)z[decodeURIComponent(k[1])]=decodeURIComponent(k[2]);return z}function b(S,k){var z;document.createEvent?(z=document.createEvent("HTMLEvents"),z.initEvent(k,!0,!0)):(z=document.createEventObject(),z.eventType=k),z.eventName=k,document.createEvent?S.dispatchEvent(z):S.fireEvent("on"+z.eventType,z)}function x(S){return S?S.substring(S.indexOf("//")+2,S.indexOf("/?")):""}function E(S){var k=document.createElement("a");return k.href=S,k.hostname}function M(S){return S.replace(/^(www[0-9]?\.)?/,"")}function P(S,k,z){if(!S||!k)return!0;if(S=M(S),k=M(k),!(z&&z.URL&&Array.prototype.includes))return new RegExp("^"+k.replace(/^(\*\.?)/,"([^/]*.)?").replace(/\./g,"\\.")+"$").test(S);try{S=new URL(S);try{return k=new URL(k),S.host.includes(k.host)}catch(ie){return S.host.includes(k)}}catch(ie){return S.includes(k)}}function L(S){var k=S.button,z=S.which;return z||k===void 0?z:1&k?1:2&k?3:4&k?2:0}function A(S){return L(S)===1}function T(S,k){return k=k||document.body,S!==k&&k.contains(S)}function g(S){return S&&S.nodeType===1}function j(S){var k=S.ownerDocument;return k.defaultView||k.parentWindow}function U(S){S.preventDefault()}function $(S){var k;if(window.DOMParser)k=new DOMParser().parseFromString(S,"text/xml");else{if(!window.ActiveXObject)return;k=new window.ActiveXObject("Microsoft.XMLDOM"),k.async=!1,k.loadXML(S)}return k.documentElement}function B(S){if(S){var k=S.split(":");if(k.length===3){var z=parseInt(k[0],10),ie=parseInt(k[1],10),se=k[2].split("."),de=parseInt(se[0],10),je=0;if(se.length===2&&(je=parseInt(se[1],10)),!(isNaN(z)||isNaN(ie)||isNaN(de)||isNaN(je)))return 3600*z+60*ie+de+je/1e3}}return NaN}function O(S,k){var z,ie=S;for(z in k)k.hasOwnProperty(z)&&(ie=ie.replace("{{"+z+"}}",k[z]));return ie}function q(S,k){if(k=k||0,window.Worker&&window.Blob){var z,ie=new Blob(['var timeout; onmessage = function(e) {clearTimeout(timeout); if (e.data === "start") {timeout = setTimeout(function() { postMessage({}); }, '+k+");}}"]);try{z=new Worker(window.URL.createObjectURL(ie)),z.onmessage=function(){z.terminate(),S()},z.postMessage("start")}catch(se){return setTimeout(S,k)}return z}return setTimeout(S,k)}function oe(){function S(je){var Ye={};try{var Y=window[je].getItem("rb_sync_id");Y&&typeof(Ye=JSON.parse(Y))!="object"&&(Ye={})}catch(X){}return Ye}var k=[],z=S("localStorage"),ie=S("sessionStorage"),se=v(z,ie);for(var de in se)se.hasOwnProperty(de)&&k.push(de+"="+encodeURIComponent(se[de]));return k.join("&")}function Z(S){return/nr-vpaid(\.min)?\.js/.test(S)}function fe(S,k){S&&S.style&&W(S,k,!0)}function W(S,k,z){z=z||!1;var ie=z?function(se,de){S.style.setProperty(se,de,"important")}:function(se,de){S.style.setProperty(se,de)};Object.getOwnPropertyNames(k).forEach(function(se){ie(se,k[se])})}function Ae(){function S(Ye,Y){return function(){return Ye.apply(Y,arguments)}}function k(Ye){var Y=Ye.toString(16);return Y.length===1?"0"+Y:Y}function z(Ye,Y,X){for(var ue="",De=Y;De<=X;De++)ue+=k(Ye[De]);return ue}var ie="undefined",se=typeof crypto!==ie&&crypto.getRandomValues&&S(crypto.getRandomValues,crypto)||typeof msCrypto!==ie&&window.msCrypto.getRandomValues&&S(window.msCrypto.getRandomValues,window.msCrypto),de=function(){if(se){var Ye=new Uint8Array(16);return function(){return se(Ye),Ye}}var Y=new Array(16);return function(){for(var X,ue=0;ue<16;ue++)(3&ue)==0&&(X=4294967296*Math.random()),Y[ue]=X>>>((3&ue)<<3)&255;return Y}}(),je=de();return je[6]=15&je[6]|64,je[8]=63&je[8]|128,z(je,0,3)+"-"+z(je,4,5)+"-"+z(je,6,7)+"-"+z(je,8,9)+"-"+z(je,10,15)}function G(S,k){var z=AdmanHTML.Constants.AD_ACTIONS_DEFAULT_CONFIG,ie=[k,S].reduce(function(se,de){return de&&Object.keys(z).forEach(function(je){se[je]!==de[je]&&(se[je]=de[je]?de[je]:se[je]),typeof de.members=="object"&&(se.members=de.members)}),se},Object.assign({},z));return Be(ie)?ie:z}function Be(S){return!!Array.isArray(S.members)&&(S.members.forEach(function(k){if(["adchoice","disclaimer","timer"].indexOf(k)===-1)return!1}),typeof S.positionX=="string"&&["left","right"].indexOf(S.positionX)!==-1&&typeof S.positionY=="string"&&["top","bottom"].indexOf(S.positionY)!==-1&&typeof S.offsetX=="string"&&typeof S.offsetY=="string"&&!(typeof S.disclaimerText!="string"||!S.disclaimerText.length)&&!(typeof S.headerText!="string"||!S.headerText.length)&&!(typeof S.aboutText!="string"||!S.aboutText.length)&&!(typeof S.copyText!="string"||!S.copyText.length))}function ae(S){S=S||navigator.userAgent;var k=!1;return function(z){(/(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(z)||/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(z.substr(0,4)))&&(k=!0)}(S),k}var ve,V=1,Te=2,xe=3,ye=null,He=0,qe=1,Ve=function(){var S="undefined",k="Shockwave Flash",z="application/x-shockwave-flash",ie={major:0,minor:0,release:0},se=null;if(typeof navigator.plugins!==S&&typeof navigator.plugins[k]=="object")(se=navigator.plugins[k].description)&&typeof navigator.mimeTypes!==S&&navigator.mimeTypes[z]&&navigator.mimeTypes[z].enabledPlugin&&(se=se.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),ie.major=parseInt(se.replace(/^(.*)\..*$/,"$1"),10),ie.minor=parseInt(se.replace(/^.*\.(.*)\s.*$/,"$1"),10),ie.release=/[a-zA-Z]/.test(se)?parseInt(se.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof window.ActiveXObject!==S)try{var de=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash");de&&(se=de.GetVariable("$version"))&&(se=se.split(" ")[1].split(","),ie.major=parseInt(se[0],10),ie.minor=parseInt(se[1],10),ie.release=parseInt(se[2],10))}catch(je){}return ie}();return{setStyle:fe,isNRVpaid:Z,addCss:s,loadCss:a,loadJs:c,loadImg:m,xhr:p,scaleBySide:l,isEmptyObject:h,mixin:v,deepExtend:_,validateMinMax:y,numSorter:D,createIntUID:N,getQueryParams:I,triggerEvent:b,getUserIdQuery:oe,getPageLocation:i,getDomain:x,getHostname:E,_genSessionId:Ae,matchHostname:P,isLeftButtonPressed:A,isElementInDocument:T,isElement:g,getElementViewport:j,preventDefault:U,parseXml:$,convertDuration:B,renderTemplate:O,setTimeout:q,checkFlash:n,checkFlashAsync:r,FLASH_READY:qe,FLASH_MISSING:He,getServingType:t,servingTypes:{ON_PAGE:V,S_FRAME:Te,XD_FRAME:xe},adActionsConfigPrepare:G,isMobile:ae}}(),AdmanHTML.Viewability=function(){"use strict";function t($,B,O){return $.forEach(function(q){q.duration=B.focus&&B.percent>=q.threshold?q.duration+O:0}),$}function e($){$.forEach(function(B){B.duration=0})}function i($){return new window.IntersectionObserver(function(B){B&&B.length&&B[0].intersectionRatio!==void 0&&($(B[0].intersectionRatio),!T&&(B[0].intersectionRatio>0||B[0].isIntersecting)&&(T=!0,y.log("viewin")))},{threshold:j})}function n(){return P?!document[P]:E===M.XD_FRAME||!window.top.document.hasFocus||window.top.document.hasFocus()}function r(){var $=o();if($.state!=="UNDETERMINED")return t(U,$,b),y&&(y.logMRC(U)||_()),$}function o(){var $,B,O=n();return x?($=g,B="DETERMINED"):E!==M.XD_FRAME?($=s(D).percent,B="DETERMINED"):($=0,B="UNDETERMINED"),{percent:$,focus:O,state:B,viewinOccured:T}}function s($,B){try{var O=$.getBoundingClientRect(),q=a(O),oe=AdmanHTML.Utils.getElementViewport($)||window;for(B=B||window.top;oe!==B;){var Z=oe.frameElement.getBoundingClientRect();O=c(O,Z),O.left=Math.max(Z.left,O.left),O.right=Math.min(Z.right,O.right),O.top=Math.max(Z.top,O.top),O.bottom=Math.min(Z.bottom,O.bottom),O.right<O.left&&(O.right=O.left),O.bottom<O.top&&(O.bottom=O.top),oe=oe.parent}O=m(O,B);var fe=a(O);return O.percent=fe/q*100,O}catch(W){return{left:0,right:0,top:0,bottom:0,percent:0}}}function a($){return($.right-$.left)*($.bottom-$.top)}function c($,B){return{left:$.left+B.left,right:$.right+B.left,top:$.top+B.top,bottom:$.bottom+B.top}}function m($,B){var O={},q=p(B);return O.left=Math.max(0,$.left),O.right=Math.min(q.width,$.right),O.top=Math.max(0,$.top),O.bottom=Math.min(q.height,$.bottom),O}function p($){var B={width:1/0,height:1/0};return!isNaN($.document.body.clientWidth)&&$.document.body.clientWidth>0&&(B.width=$.document.body.clientWidth),!isNaN($.document.body.clientHeight)&&$.document.body.clientHeight>0&&(B.height=$.document.body.clientHeight),$.document.documentElement&&$.document.documentElement.clientWidth&&!isNaN($.document.documentElement.clientWidth)&&(B.width=$.document.documentElement.clientWidth),$.document.documentElement&&$.document.documentElement.clientHeight&&!isNaN($.document.documentElement.clientHeight)&&(B.height=$.document.documentElement.clientHeight),$.innerWidth&&!isNaN($.innerWidth)&&(B.width=Math.min(B.width,$.innerWidth)),$.innerHeight&&!isNaN($.innerHeight)&&(B.height=Math.min(B.height,$.innerHeight)),B}function l($,B,O){if(y=B,A=!O,D=$,x)I=I||i(function(q){g=100*q}),I.observe($);else if(E===M.XD_FRAME)return L=!1,void y.log("viewabilityUnmeasurable");O||(N=setInterval(r,b)),L=!0,y.log("viewabilityMeasurable"),window.addEventListener("unload",u)}function u(){v("unload")}function h(){N||(N=setInterval(r,b))}function v($){L&&y&&A&&y.logMRC([],$||"complete"),y=null,L=!1,A=!1,D=null,clearInterval(N),N=void 0,e(U),I&&I.disconnect(),window.removeEventListener("unload",u)}function _(){N&&(clearInterval(N),N=void 0,e(U))}var y,D,N,I,b=255,x=!!window.IntersectionObserver,E=AdmanHTML.Utils.getServingType(),M=AdmanHTML.Utils.servingTypes,P=function(){for(var $=["h","webkitH","mozH","msH","oH"],B=0;B<$.length;B++)if(document[$[B]+"idden"]!==void 0)return $[B]+"idden";return""}(),L=!1,A=!1,T=!1,g=0,j=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],U=[];return j.forEach(function($){U.push({threshold:Math.round(100*$),duration:0})}),{start:l,pause:_,resume:h,stop:v,getViewabilityState:o}},AdmanHTML.AdRenderer=function(t,e){"use strict";function i(){I.wrapperEl=I.wrapperEl||t.wrapper,I.mainEl=I.mainEl||document.createElement("div"),I.clickEl=I.clickEl||I.mainEl,AdmanHTML.Utils.isElement(I.mainEl)&&!I.mainEl.parentNode&&(I.wrapperEl.childNodes.length?I.wrapperEl.insertBefore(I.mainEl,I.wrapperEl.childNodes[0]):I.wrapperEl.appendChild(I.mainEl),N=!0),I.clickEl.addEventListener("click",I.onClick),window.addEventListener("resize",h)}function n(E){E()}function r(){t.viewability.stop(),window.removeEventListener("resize",h),I.clickEl&&I.clickEl.removeEventListener("click",I.onClick),clearTimeout(_),AdmanHTML.Utils.isElement(I.mainEl)&&N&&I.mainEl.parentNode&&I.mainEl.parentNode.removeChild(I.mainEl)}function o(){if(!b&&(b=!0,clearTimeout(_),y)){var E=Date.now()-y;D=1e3*x.duration-E}}function s(){b&&(b=!1,a())}function a(){y=Date.now();var E=D||1e3*x.duration;_=setTimeout(function(){r(),t.cb("onCompleted")},E)}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(E){t.cb("onStarted",[e.sectionType,AdmanHTML.Utils.mixin(e.getAdForApp()||{},E||{})]),e.log("playbackStarted")}function p(E,M){var P=parseInt(E/M*100);t.cb("onTimeRemained",[{remained:M-E,percent:P,duration:M,currentTime:E}]),E=parseInt(E),e.log("thresholdPValue",P),e.log("thresholdValue",E),e.logOVV(E,P)}function l(E,M){typeof E!="string"&&E?I.mainEl.appendChild(E):I.mainEl.innerHTML=E,AdmanHTML.Utils.mixin(I.mainEl.style,M)}function u(E){I.wrapperEl=E}function h(){I.onResize(I.mainEl.offsetWidth,I.mainEl.offsetHeight)}function v(){}var _,y,D,N,I={},b=!1,x=e.getAd();return I={start:i,pause:o,resume:s,skip:n,dispose:r,onClick:c,onStart:m,registerTimer:a,setView:l,setWrapper:u,onTimeRemained:p,onResize:v}},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,p;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,p=s.mainEl.currentTime,!isNaN(m)&&o&&Math.abs(o-m)>1&&(m=o,p=Math.min(p,m)),s.onTimeRemained(p,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(v){v.propertyName==="transform"&&v.target===l&&h.moveWithControls()}function r(){u.start(),p=e.getAd(),m=e.getSettings(),l=document.querySelector("div.videoplayer_controls");var v=AdmanHTML.Utils.adActionsConfigPrepare(p?p.adActionsConfig:null,m?m.adActionsConfig:null);if(!p.ctaWebEnabled||v.positionY==="bottom"&&v.positionX==="left")return void(a=Function.prototype);h.setText(p.ctaText),h.setStyles(),c=o(),h.setCustomStyles(c),h.addListeners(),h.appendTo(t.wrapper),a=function(){h.destroy()},l&&l.addEventListener("transitionstart",n)}function o(){return[t,p,m].reduce(function(v,_){return Object.keys(v).length||typeof _.ctaStyles!="object"?v:_.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,p,l,u=new AdmanHTML.AdRenderer(t,e);i.prototype._setStyles=function(v,_){AdmanHTML.Utils.setStyle(v,_)},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(v){v.background&&(this.background=v.background),this._setStyles(this.ctaButtonEl,v)},i.prototype.setText=function(v){this.ctaButtonTextEl.innerText=v&&typeof v=="string"?v:"Перейти"},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 v=p.ctaLink||p.urlToNavigateOnClick;p.openLinkInPopup?t.openPopup(v||p.trackingLink):window.open(v,"_blank"),e.log(["ctaClick","click"]),t.cb("onClicked")},i.prototype._hoverCTABtnListener=function(v){this._setStyles(this.ctaButtonEl,{background:v?"#1460C9":this.background,"box-shadow":v?"0px 4px 8px 0px #0000000A":this.boxShadow})},i.prototype.appendTo=function(v){v&&(v.appendChild(this.ctaButtonEl),this.isRendered=!0)},i.prototype.moveWithControls=function(){var v=l.classList.contains("hidden");this.ctaButtonEl.style.setProperty("transform","translateY("+(v?"0":"-"+Math.round(l.offsetHeight))+"px)")};var h=new i;return{render:r,dispose:s}},AdmanHTML.CloseBtnRenderer=function(t,e){"use strict";function i(){o.start();var p=e.getSettings(),l=p.controlsStyle||0,u=s[l],h=a[l];h.bg=h.bg||h.width;var v={};for(var _ in m)m.hasOwnProperty(_)&&(v[_]=p[_]!==void 0?p[_]:m[_]);if(v.controlsPaddingTop=v.controlsPaddingTop-v.controlsSafeArea,v.controlsPaddingRight=v.controlsPaddingRight-v.controlsSafeArea,o.setView(AdmanHTML.Utils.renderTemplate(c,{img:u,width:h.width,height:h.height,bg:h.bg}),{position:"absolute",cursor:"pointer"}),AdmanHTML.StyleUtils.applyStyle(o.mainEl,v),h.bg!==h.width){var y=h.bg-h.width,D=function(I){I.target.className==="rb-adman_close"&&(I.target.style.backgroundPosition="-"+y+"px 0")},N=function(I){I.target.className==="rb-adman_close"&&(I.target.style.backgroundPosition="0 0")};o.mainEl.addEventListener("mouseover",D),o.mainEl.addEventListener("mouseout",N),r=function(){o.mainEl.removeEventListener("mouseover",D),o.mainEl.removeEventListener("mouseout",N)}}}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(p){p.stopPropagation(),p.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,h,v){var _=document.createElement("style");_.appendChild(document.createTextNode(" @font-face { font-family: "+l+"; font-style: normal; font-weight: 300; unicode-range: "+v+"; src: url('"+u+"') format('"+h+"'); } ")),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 h={originalBannerId:u.bannerID,cipherBannerID:u.cipherBannerID?u.cipherBannerID:null,bannerOrdId:u.ordID||null,advData:u.advData||null},v=AdmanHTML.Utils.adActionsConfigPrepare(u?u.adActionsConfig:null,l?l.adActionsConfig:null);p.build(v,h),p.init(),p.addListeners(),p.appendTo(t.wrapper),a=function(){p.destroy()}}function o(l,u){var h=Math.floor(u-l);h||(h="00"),p.updateRemainTime(h)}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(h){switch(h){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),h=l-60*u;u=u.toString(),h=h.toString(),h.length===1&&(h="0"+h),this.remainTimeEl.innerText=u+":"+h},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",h=this.data.advData?this.data.advData:this.data.cipherBannerID;window.open(this._advPageUrlPart+u+"="+h,"_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,h=this.actionsWrapperWidth+parseInt(this.adActionsEl.style.paddingLeft)+parseInt(this.adActionsEl.style.paddingRight);(u?parseInt(u):h+1)<=h&&(this.isSmall=!0,this._setStyles(this.adActionsEl,{"border-radius":"6px","font-size":"12px",padding:"5px 6px 5px 8px"}))}catch(v){console.warn("Failed detect small wrapper size",v)}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 p=new n;return p.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(){E.start(),T=e.getAd(),I=T.duration,N=D(),N.width="100%",N.height="100%",N.setAttribute("style","display:block;width:100%;height:100%"),E.setView(N,{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"transparent"}),AdmanHTML.Utils.isElement(t.videoEl)&&t.videoEl.parentNode===E.mainEl.parentNode&&E.mainEl.parentNode.insertBefore(E.mainEl,t.videoEl.nextSibling),N.contentWindow||N.contentDocument?r():N.onload=function(W){r()},P&&P.render(),M&&M.render()}function n(W){W.preventDefault(),W.stopPropagation(),e.log("click"),t.cb("onClicked"),t.openPopup(T.urlToNavigateOnClick||T.trackingLink)}function r(){function W(){var Ae=N.contentWindow.document.body||N.contentDocument.body;Ae&&Ae.addEventListener("click",n,!0)}A=N.contentWindow?N.contentWindow.document:N.contentDocument,A.open(),$?(A.write('<!DOCTYPE html><html style="width: 100%; height: 100%"><head></head><body>'),A.write(T.src),A.write("</body></html>"),O=document.querySelector("div.videoplayer_controls"),O&&(q=O.style.display,O.style.display="none"),(oe=document.querySelector("div.videoplayer_ads_skip"))&&(Z=oe.style.display,oe.style.display="none")):(A.write(T.src),e.log("render")),A.close(),L=AdmanHTML.Utils.getElementViewport(t.wrapper),L.addEventListener("message",l),T.openLinkInPopup&&(T.urlToNavigateOnClick||T.trackingLink)&&(N.contentWindow.document.body||N.contentDocument.body?W():N.onload=W),t.viewability.start(E.mainEl,e),c(),E.onStart()}function o(){g||(g=!0,j+=Date.now()-U,clearInterval(b),b=null,O?O.style.display=q:$&&u("pauseAd",[]),t.cb("onPaused"))}function s(){return T.creativeType==="video-motion"}function a(){g&&(g=!1,c(),t.cb("onPlayed"))}function c(){if(!b){if($){if(!B)return;O?O.style.display="none":u("startAd",[])}b=setInterval(p,251),U=Date.now(),g=!1}}function m(){fe||t.cb("onCompleted")}function p(){j+=Date.now()-U,U=Date.now(),E.onTimeRemained(j/1e3,I),$?u("timeUpdateAd",[j/1e3,I]):P.onTimeRemained(j/1e3,I),j>=1e3*I&&(clearInterval(b),b=null,m())}function l(W){if(W.source===N.contentWindow){if($&&typeof W.data=="object")return void h(W.data);try{switch(JSON.parse(W.data).type){case"trg:click":e.log("click"),t.cb("onClicked")}}catch(Ae){}}}function u(W,Ae){if(typeof N=="object"&&typeof N.contentWindow=="object")try{var G=N.contentWindow.origin;N.contentWindow.postMessage({initiator:"render-runner",id:x,method:W,args:Ae},G)}catch(Be){}}function h(W){if($&&typeof W=="object"&&W.initiator==="render-runner"&&Array.isArray(W.args)&&W.args[0]===x)switch(W.event){case"AdStarted":B=!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_"+W.args[1]+"_click"),t.cb("onClicked",{type:"card",cardId:W.args[1]});break;case"ItemShow":e.log("card_"+W.args[1]+"_show");break;case"AdClickThru":e.log("click"),t.cb("onClicked",{type:"common"});break;case"AdError":t.cb("onError",W.args[1]);break;case"ClosedByUser":e.log("closedByUser"),t.cb("onClosed"),t.cb("onSkipped"),fe=null,y();break;case"UserAction":fe=Date.now()}}function v(){O&&(O.style.display=q),oe&&(oe.style.display=Z)}function _(){b&&clearInterval(b),b=null,v(),L.removeEventListener("message",l)}function y(){_(),E.dispose(),P&&P.dispose(),M&&M.dispose()}function D(){var W=document.createElement("iframe");return W.scrolling="no",W.marginWidth="0",W.marginHeight="0",W.frameBorder="0",W.id="ad-frame-"+Math.round(1e5*Math.random()),W.onclose=v,W}var N,I,b,x,E=new AdmanHTML.AdRenderer(t,e),M=new AdmanHTML.CallToActionBtnRenderer(t,e),P=null,L=null,A=null,T=e.getAd(),g=!1,j=0,U=0,$=s(),B=!1,O=null,q="flex",oe=null,Z="block",fe=null;return $?x="b"+T.bannerID:P=new AdmanHTML.DisclaimerRenderer(t,e),E.onClick=function(){},{start:i,pause:o,resume:a,skip:E.skip,dispose:y}},AdmanHTML.ImgAdRenderer=function(t,e){"use strict";function i(){r.start(),r.registerTimer(),AdmanHTML.Utils.addCss(c,a);var p=e.getAd();r.setView(AdmanHTML.Utils.renderTemplate(m,p),{position:"absolute",display:"inline-block",width:"100%","max-width":p.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 h=l.advertisment.image;AdmanHTML.StyleUtils.applyStyle(r.mainEl,h,"fontFace contentIndent hasBackground backgroundColor backgroundAlpha cornerRounding".split(" ")),AdmanHTML.StyleUtils.applyStyle(r.mainEl.querySelector(".rb-adman_image_wrapper"),h,"borderSize borderColor borderAlpha borderCornerRounding".split(" "));var v=l.advertisment.image.ageRestrictions;p.ageRestrictions&&v&&(AdmanHTML.StyleUtils.applyStyle(u,v),AdmanHTML.StyleUtils.applyStyle(u.querySelector(".rb-adman_age_content"),v,["textUnderline"]))}p.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 p=a.createElement("div");p.classList.add("rb-adman-popup-closeButton");var l=s;o=function(){l.remove(),l=null,t.resume(!0),t.isPopupOpen=!1},p.onclick=o,m.appendChild(p);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,E){var M=[];return x.forEach(function(P){P.name===E&&M.push(P)}),M}function n(x,E,M){return E<=x&&(!M||M>=x)}function r(){!_&&v&&(_=!0,e.log("playbackPaused"))}function o(){_&&v&&(_=!1,e.log("playbackResumed"))}function s(){v=!1,_=!1,h.stop()}function a(x){var E=!x;E!==y&&(y=E,e.log(E?"volumeOff":"volumeOn"))}function c(){v&&(N&&p(N,N),l&&I.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 p(x,E){if(!isNaN(x)){v||(v=!0,h.start(t.playerEl,e,!0),e.log("playbackStarted")),x=Math.round(x);var M=D!==null?x-D:null;if(D=x,e.log("thresholdValue",x),!isNaN(E)&&isFinite(E)&&E>0&&(E=Math.round(E),N=E,e.log("thresholdPValue",Math.floor(x/E*100))),M<0&&e.log("rewind"),b.forEach(function(A){if(n(x,A.start,A.end)){var T=Math.floor((x-A.start)/A.rate);T>0&&A.last!==T&&(A.last=T,AdmanHTML.Utils.loadImg(A.url.replace("[CONTENTPLAYHEAD]",x)))}else A.last=null}),l!==!1&&M!==0){var P,L=M<0||M>1;I.forEach(function(A){if(n(x,A.start,A.end)&&!A.completed){P=P||h.getViewabilityState(),l=P.state==="DETERMINED";var T=P.percent>A.percent&&P.focus;A.duration=A.duration||0,A.lastViewable&&T&&!L?A.duration+=M:A.duration=0,A.lastViewable=T,A.duration>=A.value&&(A.completed=!0,A.viewable&&AdmanHTML.Utils.loadImg(A.url))}else A.duration=0,A.lastViewable=!1})}}}var l,u=e.getExtendedAdForApp().statistics,h=new AdmanHTML.Viewability,v=!1,_=!1,y=!1,D=null,N=null,I=i(u,"mrcValue"),b=i(u,"timerValue");return{pause:r,resume:o,setVolume:a,setPosition:p,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,p=s||{},l=a||{};p.type="application/x-shockwave-flash",window.ActiveXObject?(p.classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",l.movie=o):p.data=o,m="<object";for(c in p)p.hasOwnProperty(c)&&(m+=" "+c+'="'+p[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 p=AdmanHTML.Utils.mixin({header:"",body:"",hyperlinkText:""},e.getAd());r.setView(AdmanHTML.Utils.renderTemplate(m,p),{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 h=l.advertisment.text.ageRestrictions,v=r.mainEl.querySelector(".rb-adman_age_wrapper");p.ageRestrictions?h&&(AdmanHTML.StyleUtils.applyStyle(v,h),AdmanHTML.StyleUtils.applyStyle(v.querySelector(".rb-adman_age_content"),h,["textUnderline"])):v.parentNode.removeChild(v);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=p.width/p.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,v.forEach(function(b){l.mainEl.addEventListener(b,s)}),l.mainEl.parentNode?D={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(),h.render()}function n(b){return b.indexOf("videolink.mycdn.me")!==-1}function r(){u.dispose(),h.dispose(),l.dispose(),v.forEach(function(b){l.mainEl.removeEventListener(b,s)}),D.src?(l.mainEl.src=D.src,l.mainEl.load(),l.mainEl.play(),c(D.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":p=Date.now();break;case"loadeddata":N||(N=!0,I=Date.now()-p,t.stats.logMessage("firstLoadedData",I,{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",E="video_el_err_code:"+x;t.stats.logError(E),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,p,l=new AdmanHTML.AdRenderer(t,e),u=new AdmanHTML.DisclaimerRenderer(t,e),h=new AdmanHTML.CallToActionBtnRenderer(t,e),v=["loadstart","loadeddata","loadedmetadata","error","pause","play","playing","timeupdate","ended"],_=!1,y=e.getAd(),D={},N=!1,I=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 E.duration;try{g=c.callGet("adDuration"),g===void 0&&(g=E.duration)}catch(j){g=E.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?(p=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 j=e.getSettings();j&&(j.loadTimeout&&(M=j.loadTimeout),j.startTimeout&&(P=j.startTimeout)),AdmanHTML.Utils.isNRVpaid(E.src)&&typeof E.timeoutsFactor=="number"&&E.timeoutsFactor>1&&(M*=E.timeoutsFactor,P*=E.timeoutsFactor),t.cb("onStarted",[e.sectionType,e.getAdForApp()||{}]),o(M,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:LoadInterface"),c.urlToNavigateOnClick=e.getAd().urlToNavigateOnClick,b.setView(c.load(E.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):p&&p.insertBefore(t.videoEl,l&&l.parentNode?l:null),s(),c.destroy(),x.dispose(),b.dispose()}function o(g,j){s(),D=j,h=setTimeout(a,g)}function s(){clearTimeout(h)}function a(){y=!0,s(),e.log("error"),D&&t.stats.logError(D,{bannerID:E.bannerID,isNRVpaid:AdmanHTML.Utils.isNRVpaid(E.src)}),t.cb("onError",{force:!0,message:D})}var c,m,p,l,u,h,v,_,y,D,N,I,b=new AdmanHTML.AdRenderer(t,e),x=new AdmanHTML.DisclaimerRenderer(t,e),E=e.getAd(),M=500,P=1e3;b.onResize=function(g,j){c&&c.call("resizeAd",[g,j,"normal"])},b.onClick=function(){};var L=function(g,j){if(!y){var U,$;switch(g){case"loaded":o(M,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:LoadJs");break;case"vpaidloaded":s();break;case"inited":c.call("handshakeVersion",["2.0"])?(o(P,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:InitAd"),c.call("initAd",[b.mainEl.offsetWidth,b.mainEl.offsetHeight,"normal",E.bitrate,{AdParameters:E.params}])):t.cb("onError");break;case"AdStarted":s(),_=c.callGet("adVolume"),v===void 0||c.autoMuted||c.callSet("adVolume",v),e.log("playbackStarted"),t.viewability.start(b.mainEl,e),t.cb("onVPAIDStarted"),t.stats.metrics("playing");break;case"AdLoaded":o(P,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:StartAd"),c.call("startAd"),t.stats.metrics("ready"),t.stats.metrics("creative_type","vpaid");break;case"AdRemainingTimeChange":U=i(),$=c.callGet("adRemainingTime"),U>0&&$>=0?(b.onTimeRemained(U-$,U),x.onTimeRemained(U-$,U)):t.cb("onDurationChanged",[{remained:$,duration:U}]);break;case"AdVolumeChange":var B=c.callGet("adVolume");(_===0&&B>0||_>0&&B===0)&&e.log(B?"volumeOn":"volumeOff"),_=B;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":N||(N=!0,setTimeout(function(){u?u():t.cb("onCompleted")})),t.stats.metrics(g==="AdStopped"?"completed":"skipped");break;case"AdClickThru":j.url&&j.playerHandles&&window.open(j.url,"_blank"),e.log("click"),t.cb("onClicked");break;case"AdError":t.stats.logError("EXTERNAL_JS_ADVERTISMENT_ERROR:"+(j&&j.message||"")),t.stats.metrics("vpaid_error_message",j&&j.message||"vpaid script err"),t.cb("onError");break;case"AdPaused":I||(I=!0,t.cb("onPaused"));break;case"AdPlaying":I&&(I=!1,t.cb("onPlayed"));break;case"AdUserClose":e.log("closedByUser");break;case"video:pause":I||c&&c.call("pauseAd");break;case"video:play":I&&c&&c.call("resumeAd")}}},A=t.wrapper.ownerDocument,T=A.defaultView||A.parentWindow;return c=new AdmanHTML.VpaidLoader(t.videoEl,T),c.onVpaidEvent(L),{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),v=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(j){}t.stats.metrics("skipped")}}},AdmanHTML.VpaidSwfAdRenderer=function(t,e){"use strict";function i(){var x;if(!c)return D.duration;try{x=c.callGet("adDuration")||D.duration}catch(E){x=D.duration}return x}function n(){y.start();var x=e.getSettings();x&&(x.loadTimeout&&(I=x.loadTimeout),x.startTimeout&&(b=x.startTimeout)),AdmanHTML.Utils.checkFlashAsync(function(E){if(E===AdmanHTML.Utils.FLASH_READY){t.cb("onStarted",[e.sectionType,e.getAdForApp()||{}]),o(I);var M="vpaidSwfUrl="+encodeURIComponent(D.src)+"&proxyMethodName="+N;y.setView(v.createSwfObject(t.config.vpaidJsInterface,{width:"100%",height:"100%"},{flashvars:M,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[N]=null}function o(x){s(),p=setTimeout(a,x)}function s(){clearTimeout(p)}function a(){h=!0,s(),e.log("error"),t.cb("onError")}var c,m,p,l,u,h,v=new AdmanHTML.SwfAdRenderer(t,e),_=new AdmanHTML.DisclaimerRenderer(t,e),y=v.super,D=e.getAd(),N="vpaidProxyMethod"+Date.now(),I=500,b=1e3;return y.onResize=function(x,E){c&&c.call("resizeAd",[x,E,"normal"])},y.onClick=function(){},window[N]=function(x,E){if(!h){var M;switch(x){case"loaded":o(I);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",D.bitrate,D.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":M=i(),y.onTimeRemained(M-c.callGet("adRemainingTime"),M),_.onTimeRemained(M-c.callGet("adRemainingTime"),M);break;case"AdVolumeChange":var P=c.callGet("adVolume");(u===0&&P>0||u>0&&P===0)&&e.log(P?"volumeOn":"volumeOff"),u=P;break;case"AdVideoComplete":M=i(),y.onTimeRemained(M,M);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:"+(E&&E.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(E){}}}};window.admanAsyncLoader?setTimeout(admanAsyncLoader):window.admanAsyncInit&&setTimeout(admanAsyncInit)});var Sm={};bc(Sm,{AndroidTvPlayer:()=>Co,InterfaceLanguage:()=>jn.InterfaceLanguage,VERSION:()=>Ji,VKNumericLanguage:()=>jn.VKNumericLanguage,VideoFormat:()=>Do.VideoFormat,VideoQuality:()=>Do.VideoQuality,loadVKLangPack:()=>jn.loadVKLangPack});module.exports=Ec(Sm);var Ir="prod",Ji="1.0.1-dev.481c1206.0";var pn=require("@vkontakte/videoplayer-shared/es2015");var el,tl,Js=(tl=(el=globalThis.process)==null?void 0:el.env)==null?void 0:tl.NODE_ENV,K=Js&&!Js.toLowerCase().startsWith("prod");var pi=Array.isArray,il=Array.prototype.indexOf,Qn=Array.from,Fo=Object.keys,Et=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,Ho=Object.getOwnPropertyDescriptors,Bo=Object.prototype,nl=Array.prototype,yn=Object.getPrototypeOf,Qo=Object.isExtensible;var wt=()=>{};function bn(t){for(var e=0;e<t.length;e++)t[e]()}var Yt=Symbol("$state"),Yn=Symbol("legacy props"),rl=Symbol(""),Nr=Symbol("proxy path");var Wn=3,fi=8;function Cr(t){return t===this.v}function xn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function ol(t,e){return t!==e}function En(t){return!xn(t,this.v)}function al(){if(K){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 sl(t){if(K){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 ll(){if(K){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 dl(t){if(K){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 ul(){if(K){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 cl(){if(K){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 pl(){if(K){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 fl(t){if(K){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 ml(t){if(K){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
|
|
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 hl(){if(K){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 gl(){if(K){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 vl(){if(K){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,Di=!1;function _l(){Ci=!0}var qi="[",Gi="[!",en="]",Vi={};var gt=Symbol(),Ei=Symbol("filename"),yl=Symbol("hmr"),bl="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
21
|
`),r=[`
|
|
22
|
-
`];for(let
|
|
23
|
-
`)}),
|
|
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;Et(e,"stack",{value:r.join(`
|
|
23
|
+
`)}),Et(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[Nr])==null||i.call(t,e),t}function kr(){if(K){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 An(t){if(K){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 ke=null;function Gn(t){ke=t}var wi=null;function Kn(t){wi=t}function Zn(t){return El("getContext").get(t)}function Xn(t,e){return El("setContext").set(t,e),e}function Ie(t,e=!1,i){var n=ke={p:ke,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Ci&&!e&&(ke.l={s:null,u:null,r1:[],r2:hi(!1)}),Lt(()=>{n.d=!0}),K&&(ke.function=i,wi=i)}function Ne(t){var s,a;let e=ke;if(e!==null){t!==void 0&&(e.x=t);let c=e.e;if(c!==null){var i=be,n=Me;e.e=null;try{for(var r=0;r<c.length;r++){var o=c[r];St(o.effect),xt(o.reaction),Wt(o.fn)}}finally{St(i),xt(n)}}ke=e.p,K&&(wi=(a=(s=e.p)==null?void 0:s.function)!=null?a:null),e.m=!0}return t||{}}function ki(){return!Ci||ke!==null&&ke.l===null}function El(t){var e;return ke===null&&An(t),(e=ke.c)!=null?e:ke.c=new Map(Sc(ke)||void 0)}function Sc(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var Tc=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function $t(t){if(typeof t!="object"||t===null||Yt in t)return t;let e=yn(t);if(e!==Bo&&e!==nl)return t;var i=new Map,n=pi(t),r=Pe(0),o=K&&Di?ji("CreatedAt"):null,s=Me,a=p=>{var l=Me;xt(s);var u=p();return xt(l),u};n&&i.set("length",Pe(t.length,o));var c="";function m(p){c=p,Ai(r,`${c} version`);for(let[l,u]of i)Ai(u,tn(c,l))}return new Proxy(t,{defineProperty(p,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&hl();var h=i.get(l);return h===void 0?h=a(()=>{var v=Pe(u.value,o);return i.set(l,v),K&&typeof l=="string"&&Ai(v,tn(c,l)),v}):me(h,u.value,!0),!0},deleteProperty(p,l){var u=i.get(l);if(u===void 0){if(l in p){let _=a(()=>Pe(gt,o));i.set(l,_),qo(r),K&&Ai(_,tn(c,l))}}else{if(n&&typeof l=="string"){var h=i.get("length"),v=Number(l);Number.isInteger(v)&&v<h.v&&me(h,v)}me(u,gt),qo(r)}return!0},get(p,l,u){var y;if(l===Yt)return t;if(K&&l===Nr)return m;var h=i.get(l),v=l in p;if(h===void 0&&(!v||(y=Qt(p,l))!=null&&y.writable)&&(h=a(()=>{var D=$t(v?p[l]:gt),N=Pe(D,o);return K&&Ai(N,tn(c,l)),N}),i.set(l,h)),h!==void 0){var _=C(h);return _===gt?void 0:_}return Reflect.get(p,l,u)},getOwnPropertyDescriptor(p,l){var u=Reflect.getOwnPropertyDescriptor(p,l);if(u&&"value"in u){var h=i.get(l);h&&(u.value=C(h))}else if(u===void 0){var v=i.get(l),_=v==null?void 0:v.v;if(v!==void 0&&_!==gt)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return u},has(p,l){var _;if(l===Yt)return!0;var u=i.get(l),h=u!==void 0&&u.v!==gt||Reflect.has(p,l);if(u!==void 0||be!==null&&(!h||(_=Qt(p,l))!=null&&_.writable)){u===void 0&&(u=a(()=>{var y=h?$t(p[l]):gt,D=Pe(y,o);return K&&Ai(D,tn(c,l)),D}),i.set(l,u));var v=C(u);if(v===gt)return!1}return h},set(p,l,u,h){var E;var v=i.get(l),_=l in p;if(n&&l==="length")for(var y=u;y<v.v;y+=1){var D=i.get(y+"");D!==void 0?me(D,gt):y in p&&(D=a(()=>Pe(gt,o)),i.set(y+"",D),K&&Ai(D,tn(c,y)))}if(v===void 0)(!_||(E=Qt(p,l))!=null&&E.writable)&&(v=a(()=>Pe(void 0,o)),me(v,$t(u)),i.set(l,v),K&&Ai(v,tn(c,l)));else{_=v.v!==gt;var N=a(()=>$t(u));me(v,N)}var I=Reflect.getOwnPropertyDescriptor(p,l);if(I!=null&&I.set&&I.set.call(h,u),!_){if(n&&typeof l=="string"){var b=i.get("length"),x=Number(l);Number.isInteger(x)&&x>=b.v&&me(b,x+1)}qo(r)}return!0},ownKeys(p){C(r);var l=Reflect.ownKeys(p).filter(v=>{var _=i.get(v);return _===void 0||_.v!==gt});for(var[u,h]of i)h.v!==gt&&!(u in p)&&l.push(u);return l},setPrototypeOf(){gl()}})}function tn(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:Tc.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function qo(t,e=1){me(t,t.v+e)}function Lr(t){try{if(t!==null&&typeof t=="object"&&Yt in t)return t[Yt]}catch(e){}return t}function zi(t){var e=2050,i=Me!==null&&(Me.f&2)!==0?Me:null;be===null||i!==null&&(i.f&256)!==0?e|=256:be.f|=1048576;let n={ctx:ke,deps:null,effects:null,equals:Cr,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:be};return K&&Di&&(n.created=ji("CreatedAt")),n}function Re(t){let e=zi(t);return Pr(e),e}function Jn(t){let e=zi(t);return e.equals=En,e}function $r(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Tt(e[i])}}var Go=[];function Mc(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Xo(t){var e,i=be;if(St(Mc(t)),K){let n=nn;Ko(new Set);try{Go.includes(t)&&al(),Go.push(t),$r(t),e=Or(t)}finally{St(i),Ko(n),Go.pop()}}else try{$r(t),e=Or(t)}finally{St(i)}return e}function Jo(t){var e=Xo(t);if(t.equals(e)||(t.v=e,t.wv=er()),!Ui){var i=(Fi||(t.f&256)!==0)&&t.deps!==null?4096:1024;Ht(t,i)}}var nn=new Set,wn=new Map;function Ko(t){nn=t}function hi(t,e){var i={f:0,v:t,reactions:null,equals:Cr,rv:0,wv:0};return K&&Di&&(i.created=e!=null?e:ji("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Pe(t,e){let i=hi(t,e);return Pr(i),i}function Li(t,e=!1,i=!0){var r,o;let n=hi(t);return e||(n.equals=En),Ci&&i&&ke!==null&&ke.l!==null&&((o=(r=ke.l).s)!=null?o:r.s=[]).push(n),n}function me(t,e,i=!1){var r;Me!==null&&(!ei||(Me.f&262144)!==0)&&ki()&&(Me.f&262162)!==0&&!((r=Dt)!=null&&r[1].includes(t)&&Dt[0]===Me)&&vl();let n=i?$t(e):e;return K&&Dr(n,t.label),Tn(t,n)}function Tn(t,e){if(!t.equals(e)){var i=t.v;if(Ui?wn.set(t,e):wn.set(t,i),t.v=e,K&&Di&&(t.updated=ji("UpdatedAt"),be!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Xo(t),Ht(t,(t.f&256)===0?1024:4096)),t.wv=er(),Al(t,2048),ki()&&be!==null&&(be.f&1024)!==0&&(be.f&96)===0&&(Jt===null?wl([t]):Jt.push(t)),K&&nn.size>0){let n=Array.from(nn);for(let r of n)(r.f&1024)!==0&&Ht(r,4096),rn(r)&&Mn(r);nn.clear()}}return e}function Al(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===be)){if(K&&(a&262144)!==0){nn.add(s);continue}Ht(s,e),(a&1280)!==0&&((a&2)!==0?Al(s,4096):ir(s))}}}var Rr="font-weight: bold",Vr="font-weight: normal";function Sl(t,e,i){K?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`,Rr,Vr):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function on(t){K?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`,Rr,Vr):console.warn("https://svelte.dev/e/hydration_mismatch")}function Tl(){K?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`,Rr,Vr):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function jr(t){K?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 ${(o
|
|
33
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Rr,Vr):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var he=!1;function Pt(t){he=t}var we;function ct(t){if(t===null)throw on(),Vi;return we=t}function Mt(){return ct(Rt(we))}function F(t){if(he){if(Rt(we)!==null)throw on(),Vi;we=t}}function zr(t=1){if(he){for(var e=t,i=we;e--;)i=Rt(i);we=i}}function an(){for(var t=0,e=we;;){if(e.nodeType===fi){var i=e.data;if(i===en){if(t===0)return e;t-=1}else(i===qi||i===Gi)&&(t+=1)}var n=Rt(e);e.remove(),e=n}}function Ur(t){if(!t||t.nodeType!==fi)throw on(),Vi;return t.data}function Ml(){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(Lr(this[c])===o){jr("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(Lr(this[c])===o){jr("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(Lr(this[c])===o){jr("array.includes(...)");break}}return a},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=n,t.includes=r}}var ea,Il,nr,Nl,Cl;function Fr(){if(ea===void 0){ea=window,Il=document,nr=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Nl=Qt(e,"firstChild").get,Cl=Qt(e,"nextSibling").get,Qo(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Qo(i)&&(i.__t=void 0),K&&(t.__svelte_meta=null,Ml())}}function gi(t=""){return document.createTextNode(t)}function vt(t){return Nl.call(t)}function Rt(t){return Cl.call(t)}function H(t,e){if(!he)return vt(t);var i=vt(we);if(i===null)i=we.appendChild(gi());else if(e&&i.nodeType!==Wn){var n=gi();return i==null||i.before(n),ct(n),n}return ct(i),i}function ii(t,e){var r,o;if(!he){var i=vt(t);return i.nodeType===8&&i.data===""?Rt(i):i}if(e&&((r=we)==null?void 0:r.nodeType)!==Wn){var n=gi();return(o=we)==null||o.before(n),ct(n),n}return we}function ne(t,e=1,i=!1){let n=he?we:t;for(var r;e--;)r=n,n=Rt(n);if(!he)return n;if(i&&(n==null?void 0:n.nodeType)!==Wn){var o=gi();return n===null?r==null||r.after(o):n.before(o),ct(o),o}return ct(n),n}function rr(t){t.textContent=""}function kl(t){be===null&&Me===null&&dl(t),Me!==null&&(Me.f&256)!==0&&be===null&&ll(),Ui&&sl(t)}function Ic(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function sn(t,e,i,n=!0){var c;var r=be;if(K)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var o={ctx:ke,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(K&&(o.component_function=wi),i)try{Mn(o),o.f|=32768}catch(m){throw Tt(o),m}else e!==null&&ir(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&&Ic(o,r),Me!==null&&(Me.f&2)!==0)){var a=Me;((c=a.effects)!=null?c:a.effects=[]).push(o)}return o}function Lt(t){let e=sn(8,null,!1);return Ht(e,1024),e.teardown=t,e}function Gt(t){var r;kl("$effect");var e=be!==null&&(be.f&32)!==0&&ke!==null&&!ke.m;if(K&&Et(t,"name",{value:"$effect"}),e){var i=ke;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:be,reaction:Me})}else{var n=Wt(t);return n}}function Yr(t){let e=sn(64,t,!0);return()=>{Tt(e)}}function Ll(t){let e=sn(64,t,!0);return(i={})=>new Promise(n=>{i.outro?vi(e,()=>{Tt(e),n(void 0)}):(Tt(e),n(void 0))})}function Wt(t){return sn(4,t,!1)}function Vt(t){return sn(8,t,!0)}function _e(t,e=[],i=zi){if(K)return Vt(()=>{var r=be,o=()=>t(...s.map(C));Et(r.fn,"name",{value:"{expression}"}),Et(o,"name",{value:"{expression}"});let s=e.map(i);It(o)});let n=e.map(i);return It(()=>t(...n.map(C)))}function It(t,e=0){return sn(24|e,t,!0)}function At(t,e=!0){return sn(40,t,!0,e)}function na(t){var e=t.teardown;if(e!==null){let i=Ui,n=Me;ta(!0),xt(null);try{e.call(null)}finally{ta(i),xt(n)}}}function ra(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:Tt(i,e),i=n}}function $l(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Tt(e),e=i}}function Tt(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Ol(t.nodes_start,t.nodes_end),i=!0),ra(t,e&&!i),ar(t,0),Ht(t,16384);var n=t.transitions;if(n!==null)for(let o of n)o.stop();na(t);var r=t.parent;r!==null&&r.first!==null&&oa(t),K&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Ol(t,e){for(;t!==null;){var i=t===e?null:Rt(t);t.remove(),t=i}}function oa(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 vi(t,e){var i=[];Wr(t,i,!0),aa(i,()=>{Tt(t),e&&e()})}function aa(t,e){var i=t.length;if(i>0){var n=()=>--i||e();for(var r of t)r.out(n)}else e()}function Wr(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;Wr(n,e,o?i:!1),n=r}}}function Ki(t){Pl(t,!0)}function Pl(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;Pl(i,r?e:!1),i=n}if(t.transitions!==null)for(let o of t.transitions)(o.is_global||e)&&o.in()}}var sr=[],sa=[];function Rl(){var t=sr;sr=[],bn(t)}function Nc(){var t=sa;sa=[],bn(t)}function ni(t){sr.length===0&&queueMicrotask(Rl),sr.push(t)}function Vl(){sr.length>0&&Rl(),sa.length>0&&Nc()}function zl(t){var e=be;if(K&&t instanceof Error&&Cc(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else lr(t,e)}function lr(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var jl=new WeakSet;function Cc(t,e){var s,a;if(jl.has(t))return;jl.add(t);let i=Qt(t,"message");if(!(i&&!i.configurable)){for(var n=nr?" ":" ",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[Ei].split("/").pop()}`,o=o.p;Et(t,"message",{value:t.message+`
|
|
36
36
|
${r}
|
|
37
|
-
`}),t.stack&&
|
|
38
|
-
`).filter(
|
|
39
|
-
`)})}}var Gi=!1,gn=null,qi=!1,Si=!1;function jo(t){Si=t}var Jn=[],Xn=[],Ae=null,Bt=!1;function _t(t){Ae=t}var be=null;function St(t){be=t}var Et=null;function xr(t){Ae!==null&&Ae.f&2097152&&(Et===null?Et=[Ae,[t]]:Et[1].push(t))}var Ot=null,Gt=0,Qt=null;function Ks(t){Qt=t}var vl=1,Cr=0,Mi=!1,$r=null;function Hn(){return++vl}function Bi(t){var d,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 r,a,l=(e&512)!==0,o=n&&be!==null&&!Mi,u=i.length;if(l||o){var m=t,f=m.parent;for(r=0;r<u;r++)a=i[r],(l||!((d=a==null?void 0:a.reactions)!=null&&d.includes(m)))&&((c=a.reactions)!=null?c:a.reactions=[]).push(m);l&&(m.f^=512),o&&f!==null&&(f.f&256)===0&&(m.f^=256)}for(r=0;r<u;r++)if(a=i[r],Bi(a)&&Ro(a),a.wv>t.wv)return!0}(!n||be!==null&&!Mi)&&Ct(t,1024)}return!1}function gl(t,e,i=!0){var n=t.reactions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r];Et!=null&&Et[1].includes(t)&&Et[0]===Ae||((a.f&2)!==0?gl(a,e,!1):e===a&&(i?Ct(a,2048):(a.f&1024)!==0&&Ct(a,4096),Bn(a)))}}function yr(t){var h,x;var e=Ot,i=Gt,n=Qt,r=Ae,a=Mi,l=Et,o=Me,u=Bt,m=t.f;Ot=null,Gt=0,Qt=null,Mi=(m&256)!==0&&(Bt||!qi||Ae===null),Ae=(m&96)===0?t:null,Et=null,jn(t.ctx),Bt=!1,Cr++,t.f|=2097152;try{var f=(0,t.fn)(),d=t.deps;if(Ot!==null){var c;if(qn(t,Gt),d!==null&&Gt>0)for(d.length=Gt+Ot.length,c=0;c<Ot.length;c++)d[Gt+c]=Ot[c];else t.deps=d=Ot;if(!Mi||(m&2)!==0&&t.reactions!==null)for(c=Gt;c<d.length;c++)((x=(h=d[c]).reactions)!=null?x:h.reactions=[]).push(t)}else d!==null&&Gt<d.length&&(qn(t,Gt),d.length=Gt);if(gi()&&Qt!==null&&!Bt&&d!==null&&(t.f&6146)===0)for(c=0;c<Qt.length;c++)gl(Qt[c],t);return r!==null&&r!==t&&(Cr++,Qt!==null&&(n===null?n=Qt:n.push(...Qt))),f}catch(_){fl(_)}finally{Ot=e,Gt=i,Qt=n,Ae=r,Mi=a,Et=l,jn(o),Bt=u,t.f^=2097152}}function sc(t,e){let i=e.reactions;if(i!==null){var n=Ds.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&&(Ot===null||!Ot.includes(e))&&(Ct(e,4096),(e.f&768)===0&&(e.f^=512),_r(e),qn(e,0))}function qn(t,e){var i=t.deps;if(i!==null)for(var n=e;n<i.length;n++)sc(t,i[n])}function fn(t){var e=t.f;if((e&16384)===0){Ct(t,1024);var i=be,n=qi;if(be=t,qi=!0,K){var r=si;Un(t.component_function)}try{(e&16)!==0?al(t):Fo(t),zo(t);var a=yr(t);if(t.teardown=typeof a=="function"?a:null,t.wv=vl,K&&vi&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Hn(),l.set_during_effect=!1);K&&Xn.push(t)}finally{qi=n,be=i,K&&Un(r)}}}function ml(){console.error("Last ten effects were: ",Xn.slice(-10).map(t=>t.fn)),Xn=[]}function lc(){try{Vs()}catch(t){if(K&&ft(t,"stack",{value:""}),gn!==null)if(K)try{Zn(t,gn)}catch(e){throw ml(),e}else Zn(t,gn);else throw K&&ml(),t}}function Wo(){var t=qi;try{var e=0;for(qi=!0;Jn.length>0;){e++>1e3&&lc();var i=Jn,n=i.length;Jn=[];for(var r=0;r<n;r++){var a=uc(i[r]);dc(a)}cn.clear()}}finally{Gi=!1,qi=t,gn=null,K&&(Xn=[])}}function dc(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var n=t[i];(n.f&24576)===0&&Bi(n)&&(fn(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Ho(n):n.fn=null))}}function Bn(t){Gi||(Gi=!0,queueMicrotask(Wo));for(var e=gn=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Jn.push(e)}function uc(t){for(var e=[],i=t;i!==null;){var n=i.f,r=(n&96)!==0,a=r&&(n&1024)!==0;if(!a&&(n&8192)===0){(n&4)!==0?e.push(i):r?i.f^=1024:Bi(i)&&fn(i);var l=i.first;if(l!==null){i=l;continue}}var o=i.parent;for(i=i.next;i===null&&o!==null;)i=o.next,o=o.parent}return e}function er(t){var e;for(t&&(Gi=!0,Wo(),Gi=!0,e=t());;){if(cl(),Jn.length===0)return Gi=!1,gn=null,K&&(Xn=[]),e;Gi=!0,Wo()}}function V(t){var e=t.f,i=(e&2)!==0;if($r!==null&&$r.add(t),Ae!==null&&!Bt){if(!(Et!=null&&Et[1].includes(t))||Et[0]!==Ae){var n=Ae.deps;t.rv<Cr&&(t.rv=Cr,Ot===null&&n!==null&&n[Gt]===t?Gt++:Ot===null?Ot=[t]:(!Mi||!Ot.includes(t))&&Ot.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,Bi(r)&&Ro(r)),K&&vi&&!Bt&&Pn!==null&&Ae!==null&&Pn.reaction===Ae)if(t.trace)t.trace();else{var l=Ai("TracedAt");if(l){var o=Pn.entries.get(t);o===void 0&&(o={traces:[]},Pn.entries.set(t,o));var u=o.traces[o.traces.length-1];l.stack!==(u==null?void 0:u.stack)&&o.traces.push(l)}}return Si&&cn.has(t)?cn.get(t):t.v}function Xe(t){var e=Bt;try{return Bt=!0,t()}finally{Bt=e}}var cc=-7169;function Ct(t,e){t.f=t.f&cc|e}var Go=new Set,Or=new Set;function _n(t){for(var e=0;e<t.length;e++)Go.add(t[e]);for(var i of Or)i(t)}function tr(t){var k;var e=this,i=e.ownerDocument,n=t.type,r=((k=t.composedPath)==null?void 0:k.call(t))||[],a=r[0]||t.target,l=0,o=t.__root;if(o){var u=r.indexOf(o);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var m=r.indexOf(e);if(m===-1)return;u<=m&&(l=u)}if(a=r[l]||t.target,a!==e){ft(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Ae,d=be;_t(null),St(null);try{for(var c,h=[];a!==null;){var x=a.assignedSlot||a.parentNode||a.host||null;try{var _=a["__"+n];if(_!=null&&(!a.disabled||t.target===a))if(ri(_)){var[b,...L]=_;b.apply(a,[t,...L])}else _.call(a,t)}catch(D){c?h.push(D):c=D}if(t.cancelBubble||x===e||x===null)break;a=x}if(c){for(let D of h)queueMicrotask(()=>{throw D});throw c}}finally{t.__root=e,delete t.currentTarget,_t(f),St(d)}}}var fc;function yl(){fc=void 0}function ir(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function qt(t,e){var i=be;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function $e(t,e){var i=(e&1)!==0,n=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(ge)return qt(Se,null),Se;r===void 0&&(r=ir(a?t:"<!>"+t),i||(r=pt(r)));var l=n||Wn?document.importNode(r,!0):r.cloneNode(!0);if(i){var o=pt(l),u=l.lastChild;qt(o,u)}else qt(l,l);return l}}function vc(t,e,i="svg"){var n=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${n?t:"<!>"+t}</${i}>`,l;return()=>{if(ge)return qt(Se,null),Se;if(!l){var o=ir(a),u=pt(o);if(r)for(l=document.createDocumentFragment();pt(u);)l.appendChild(pt(u));else l=pt(u)}var m=l.cloneNode(!0);if(r){var f=pt(m),d=m.lastChild;qt(f,d)}else qt(m,m);return m}}function yi(t,e){return vc(t,e,"svg")}function qo(){if(ge)return qt(Se,null),Se;var t=document.createDocumentFragment(),e=document.createComment(""),i=di();return t.append(e,i),qt(e,i),t}function ve(t,e){if(ge){be.nodes_end=Se,Nt();return}t!==null&&t.before(e)}var gc=["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 hv=[...gc,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var _c=["touchstart","touchmove"];function El(t){return _c.includes(t)}var yc=["$state","$state.raw","$derived","$derived.by"],vv=[...yc,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var Ko=!0;function rt(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 Al(t,e)}function Jo(t,e){var l;Sr(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,n=ge,r=Se;try{for(var a=pt(i);a&&(a.nodeType!==oi||a.data!==Oi);)a=$t(a);if(!a)throw Ei;Wt(!0),ct(a),Nt();let o=Al(t,Ge(Ee({},e),{anchor:a}));if(Se===null||Se.nodeType!==oi||Se.data!==an)throw Yi(),Ei;return Wt(!1),o}catch(o){if(o===Ei)return e.recover===!1&&js(),Sr(),Mr(i),Wt(!1),Pi(t,e);throw o}finally{Wt(n),ct(r),yl()}}var yn=new Map;function Al(t,{target:e,anchor:i,props:n={},events:r,context:a,intro:l=!0}){Sr();var o=new Set,u=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!o.has(h)){o.add(h);var x=El(h);e.addEventListener(h,tr,{passive:x});var _=yn.get(h);_===void 0?(document.addEventListener(h,tr,{passive:x}),yn.set(h,1)):yn.set(h,_+1)}}};u(wo(Go)),Or.add(u);var m=void 0,f=ol(()=>{var d=i!=null?i:e.appendChild(di());return wt(()=>{if(a){mt({});var c=Me;c.c=a}r&&(n.$$events=r),ge&&qt(d,null),Ko=l,m=t(d,n)||{},Ko=!0,ge&&(be.nodes_end=Se),a&&ht()}),()=>{var x;for(var c of o){e.removeEventListener(c,tr);var h=yn.get(c);--h===0?(document.removeEventListener(c,tr),yn.delete(c)):yn.set(c,h)}Or.delete(u),d!==i&&((x=d.parentNode)==null||x.removeChild(d))}});return Zo.set(m,f),m}var Zo=new WeakMap;function nr(t,e){let i=Zo.get(t);return i?(Zo.delete(t),i(e)):(K&&Js(),Promise.resolve())}function Rr(t,e,...i){var n=t,r=gt,a;At(()=>{r!==(r=e())&&(a&&(xt(a),a=null),K&&r==null&&Us(),a=wt(()=>r(n,...i)))},65536),ge&&(n=Se)}if(K){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Fs(e)},set:n=>{i=n}})}};Ac=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Ac;function bn(t){Me===null&&Vn("onMount"),hi&&Me.l!==null?Ec(Me).m.push(t):Di(()=>{let e=Xe(t);if(typeof e=="function")return e})}function Ec(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Ml=new Map;function Il(t,e){var i=Ml.get(t);i||(i=new Set,Ml.set(t,i)),i.add(e)}function Ye(t,e,[i,n]=[0,0]){ge&&i===0&&Nt();var r=t,a=null,l=null,o=at,u=i>0?65536:0,m=!1;let f=(c,h=!0)=>{m=!0,d(h,c)},d=(c,h)=>{if(o===(o=c))return;let x=!1;if(ge&&n!==-1){if(i===0){let b=Po(r);b===Oi?n=0:b===Fi?n=1/0:(n=parseInt(b.substring(1)),n!==n&&(n=o?1/0:-1))}let _=n>i;!!o===_&&(r=Yn(),ct(r),Wt(!1),x=!0,n=-1)}o?(a?vn(a):h&&(a=wt(()=>h(r))),l&&ci(l,()=>{l=null})):(l?vn(l):h&&(l=wt(()=>h(r,[i+1,n]))),a&&ci(a,()=>{a=null})),x&&Wt(!0)};At(()=>{m=!1,e(f),m||d(null,null)},u),ge&&(r=Se)}function Xo(t,e,i){ge&&Nt();var n=t,r=at,a,l=gi()?Cs:dn;At(()=>{l(r,r=e())&&(a&&ci(a),a=wt(()=>i(n)))}),ge&&(n=Se)}var ia;function Nl(t){return ia=t.target,new ta(t)}var ki,ei,ta=class{constructor(e){pr(this,ki);pr(this,ei);var a,l;var i=new Map,n=(o,u)=>{var m=Ni(u,!1,!1);return i.set(o,m),m};let r=new Proxy(Ge(Ee({},e.props||{}),{$$events:{}}),{get(o,u){var m;return V((m=i.get(u))!=null?m:n(u,Reflect.get(o,u)))},has(o,u){var m;return u===On?!0:(V((m=i.get(u))!=null?m:n(u,Reflect.get(o,u))),Reflect.has(o,u))},set(o,u,m){var f;return ke((f=i.get(u))!=null?f:n(u,m),m),Reflect.set(o,u,m)}});fr(this,ei,(e.hydrate?Jo:Pi)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&er(),fr(this,ki,r.$$events);for(let o of Object.keys(kt(this,ei)))o==="$set"||o==="$destroy"||o==="$on"||ft(this,o,{get(){return kt(this,ei)[o]},set(u){kt(this,ei)[o]=u},enumerable:!0});kt(this,ei).$set=o=>{Object.assign(r,o)},kt(this,ei).$destroy=()=>{nr(kt(this,ei))}}$set(e){kt(this,ei).$set(e)}$on(e,i){kt(this,ki)[e]=kt(this,ki)[e]||[];let n=(...r)=>i.call(this,...r);return kt(this,ki)[e].push(n),()=>{kt(this,ki)[e]=kt(this,ki)[e].filter(r=>r!==n)}}$destroy(){kt(this,ei).$destroy()}};ki=new WeakMap,ei=new WeakMap;function vt(t,e){pi(()=>{var r,a,l;var i=t.getRootNode(),n=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=ia)==null?void 0:a.parentNode;if(!(n!=null&&n.querySelector("#"+e.hash))){let o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o),K&&Il(e.hash,o)}})}var kl=[...`
|
|
40
|
-
\r\f \v\uFEFF`];function Cl(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 a=r.length,l=0;(l=n.indexOf(r,l))>=0;){var o=l+a;(l===0||kl.includes(n[l-1]))&&(o===n.length||kl.includes(n[o]))?n=(l===0?"":n.substring(0,l))+n.substring(o+1):l=o}}return n===""?null:n}function Ll(t,e=!1){var i=e?" !important;":";",n="";for(var r in t){var a=t[r];a!=null&&a!==""&&(n+=" "+r+": "+a+i)}return n}function na(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function $l(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 a=!1,l=0,o=!1,u=[];n&&u.push(...Object.keys(n).map(na)),r&&u.push(...Object.keys(r).map(na));var m=0,f=-1;let _=t.length;for(var d=0;d<_;d++){var c=t[d];if(o?c==="/"&&t[d-1]==="*"&&(o=!1):a?a===c&&(a=!1):c==="/"&&t[d+1]==="*"?o=!0:c==='"'||c==="'"?a=c:c==="("?l++:c===")"&&l--,!o&&a===!1&&l===0){if(c===":"&&f===-1)f=d;else if(c===";"||d===_-1){if(f!==-1){var h=na(t.substring(m,f).trim());if(!u.includes(h)){c!==";"&&d++;var x=t.substring(m,d).trim();i+=" "+x+";"}}m=d+1,f=-1}}}}return n&&(i+=Ll(n)),r&&(i+=Ll(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function xn(t,e,i,n,r,a){var l=t.__className;if(ge||l!==i||l===void 0){var o=Cl(i,n,a);(!ge||o!==t.getAttribute("class"))&&(o==null?t.removeAttribute("class"):e?t.className=o:t.setAttribute("class",o)),t.__className=i}else if(a&&r!==a)for(var u in a){var m=!!a[u];(r==null||m!==!!r[u])&&t.classList.toggle(u,m)}return a}function ra(t,e={},i,n){for(var r in i){var a=i[r];e[r]!==a&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,n))}}function Vi(t,e,i,n){var r=t.__style;if(ge||r!==e){var a=$l(e,n);(!ge||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else n&&(Array.isArray(n)?(ra(t,i==null?void 0:i[0],n[0]),ra(t,i==null?void 0:i[1],n[1],"important")):ra(t,i,n));return n}var Uc=Symbol("class"),zc=Symbol("style"),Fc=Symbol("is custom element"),Hc=Symbol("is html");function Kt(t,e,i,n){var r=Qc(t);if(ge&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){n||Yc(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Ls]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Bc(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Qc(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Fc]:t.nodeName.includes("-"),[Hc]:t.namespaceURI===Ss}}var Ol=new Map;function Bc(t){var e=Ol.get(t.nodeName);if(e)return e;Ol.set(t.nodeName,e=[]);for(var i,n=t,r=Element.prototype;r!==n;){i=So(n);for(var a in i)i[a].set&&e.push(a);n=sn(n)}return e}function Yc(t,e,i){var n;K&&(e==="srcset"&&Wc(t,i)||oa((n=t.getAttribute(e))!=null?n:"",i)||Zs(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function oa(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Rl(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Wc(t,e){var i=Rl(t.srcset),n=Rl(e);return n.length===i.length&&n.every(([r,a],l)=>a===i[l][1]&&(oa(i[l][0],r)||oa(r,i[l][0])))}function Pl(t,e){return t===e||(t==null?void 0:t[Pt])===e}function Ki(t={},e,i,n){return Vt(()=>{var r,a;return Dt(()=>{r=a,a=(n==null?void 0:n())||[],Xe(()=>{t!==i(...a)&&(e(t,...a),r&&Pl(i(...r),t)&&e(null,...r))})}),()=>{pi(()=>{a&&Pl(i(...a),t)&&e(null,...a)})}}),t}function rr(t,e,i){if(t==null)return e(void 0),i&&i(void 0),gt;let n=Xe(()=>t.subscribe(e,i));return n.unsubscribe?()=>n.unsubscribe():n}var En=[];function ti(t,e){return{subscribe:H(t,e).subscribe}}function H(t,e=gt){let i=null,n=new Set;function r(o){if(dn(t,o)&&(t=o,i)){let u=!En.length;for(let m of n)m[1](),En.push(m,t);if(u){for(let m=0;m<En.length;m+=2)En[m][0](En[m+1]);En.length=0}}}function a(o){r(o(t))}function l(o,u=gt){let m=[o,u];return n.add(m),n.size===1&&(i=e(r,a)||gt),o(t),()=>{n.delete(m),n.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function st(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 a=e.length<2;return ti(i,(l,o)=>{let u=!1,m=[],f=0,d=gt,c=()=>{if(f)return;d();let x=e(n?m[0]:m,l,o);a?l(x):d=typeof x=="function"?x:gt},h=r.map((x,_)=>rr(x,b=>{m[_]=b,f&=~(1<<_),u&&c()},()=>{f|=1<<_}));return u=!0,c(),function(){ln(h),d(),u=!1}})}function we(t){let e;return rr(t,i=>e=i)(),e}var Vr=!1,aa=Symbol();function fi(t,e,i){var a;let n=(a=i[e])!=null?a:i[e]={store:null,source:Ni(void 0),unsubscribe:gt};if(n.store!==t&&!(aa in i))if(n.unsubscribe(),n.store=t!=null?t:null,t==null)n.source.v=void 0,n.unsubscribe=gt;else{var r=!0;n.unsubscribe=rr(t,l=>{r?n.source.v=l:ke(n.source,l)}),r=!1}return t&&aa in i?we(t):V(n.source)}function Zi(){let t={};function e(){Lt(()=>{for(var i in t)t[i].unsubscribe();ft(t,aa,{enumerable:!1,value:!0})})}return[t,e]}function sa(t){var e=Vr;try{return Vr=!1,[t(),Vr]}finally{Vr=e}}function Vl(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function Te(t,e,i,n){var N,v;var r=(i&1)!==0,a=!hi||(i&2)!==0,l=(i&8)!==0,o=(i&16)!==0,u=!1,m;l?[m,u]=sa(()=>t[e]):m=t[e];var f=Pt in t||On in t,d=l&&((v=(N=Rt(t,e))==null?void 0:N.set)!=null?v:f&&e in t&&(z=>t[e]=z))||void 0,c=n,h=!0,x=!1,_=()=>(x=!0,h&&(h=!1,o?c=Xe(n):c=n),c);m===void 0&&n!==void 0&&(d&&a&&zs(e),m=_(),d&&d(m));var b;if(a)b=()=>{var z=t[e];return z===void 0?_():(h=!0,x=!1,z)};else{var L=(r?wi:br)(()=>t[e]);L.f|=131072,b=()=>{var z=V(L);return z!==void 0&&(c=void 0),z===void 0?c:z}}if((i&4)===0&&a)return b;if(d){var k=t.$$legacy;return function(z,A){return arguments.length>0?((!a||!A||k||u)&&d(A?b():z),z):b()}}var D=!1,S=!1,E=Ni(m),T=wi(()=>{var z=b(),A=V(E);return D?(D=!1,S=!0,A):(S=!1,E.v=z)});return l&&V(T),r||(T.equals=un),function(z,A){if($r!==null&&(D=S,b(),V(E)),arguments.length>0){let I=A?V(T):a&&l?Mt(z):z;if(!T.equals(I)){if(D=!0,ke(E,I),x&&c!==void 0&&(c=I),Vl(T))return z;Xe(()=>V(T))}return z}return Vl(T)?T.v:V(T)}}var ip;typeof HTMLElement=="function"&&(ip=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 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 Ft(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let o=document.createElement("slot");a!=="default"&&(o.name=a),ve(l,o)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},r=np(this);for(let a of this.$$s)a in r&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),n.default=!0):n[a]=i(a));for(let a of this.attributes){let l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=la(l,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=Nl({component:this.$$ctor,target:this.shadowRoot||this,props:Ge(Ee({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=kr(()=>{Dt(()=>{var a;this.$$r=!0;for(let l of To(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let o=la(l,this.$$d[l],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,o)}this.$$r=!1})});for(let a in this.$$l)for(let l of this.$$l[a]){let o=this.$$c.$on(a,l);this.$$l_u.set(l,o)}this.$$l={}}})}attributeChangedCallback(e,i,n){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=la(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 To(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function la(t,e,i,n){var a;let r=(a=i[t])==null?void 0:a.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 np(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var jl="5";var Ul,zl,Fl;typeof window!="undefined"&&((Fl=(zl=(Ul=window.__svelte)!=null?Ul:window.__svelte={}).v)!=null?Fl:zl.v=new Set).add(jl);var xd=require("@vkontakte/videoplayer-core/es2015"),z0=require("@vkontakte/videoplayer-core/es2015"),Ed=require("@vkontakte/videoplayer-shared/es2015"),Ad=require("@vkontakte/videoplayer-statistics/es2015");var Ji=require("@vkontakte/videoplayer-shared/es2015");var rp={debugLog:!1,devNullLog:!1,defaultLanguage:Ji.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:Ji.VideoQuality.Q_480P,highQualityLimit:Ji.VideoQuality.Q_720P,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,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"},Hl=t=>(0,Ji.fillWithDefault)(t,rp),Ql=t=>Fn("ui-config",t),An=()=>zn("ui-config");var or="vk_player_debug_panel_opened";var Bl="videoplayer",Yl="videoplayer";var zr=require("@vkontakte/videoplayer-shared/es2015"),Gl=require("@vkontakte/videoplayer-core/es2015"),ql=require("@vkontakte/videoplayer-statistics/es2015");var jr="prod",Xi="1.0.1-dev.45dd8a5f.0";var Wl=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Kl=Symbol("storeContext"),Zl=t=>{Fn(Kl,t),jr==="dev"&&(window.app={store:t})},ji=()=>{let t=zn(Kl);return(0,zr.assertNonNullable)(t,"Store context is empty!"),t},je=(t,e)=>Fr(t,t.getValue(),e),Fr=(t,e,i)=>ti(e,n=>{let r=t.subscribe(a=>{n(a),i==null||i(a)});return()=>r.unsubscribe()}),Jl=(t,e,i,n,r=["meta config not provided"])=>{var v,z,A,I,U,j,se,R,Y;let a=t.info,{width:l,height:o}=we(i.ui.playerSize),u=(z=(v=a.throughputEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?z:0,m=(I=(A=a.rttEstimation$.getValue())==null?void 0:A.toFixed(0))!=null?I:0,f=a.isAutoQualityEnabled$.getValue()?"auto":"manual",d=`${Xi} (core: ${Gl.VERSION}, stat: ${ql.VERSION}, shared: ${zr.VERSION})`,c=we(i.state.errorLog$),h=c.length?`
|
|
41
|
-
|
|
42
|
-
`,te=`Message: ${F.message} (${F.thrown})
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
`),
|
|
48
|
-
`).filter(i=>!!i)[0]}function bp(t){try{let e=yp(t);if(e)return e}catch(e){}return{value:fd(t),type:t&&t.name,stacktrace:{frames:[]}}}function xp(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Wr=class{constructor(e){if(e&&e.dsn){let i=_p.exec(e.dsn),n=i?i.slice(1):[],r=n[5].split("/"),a=r.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(a?"/"+a:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return Ge(Ee({},this.getRequestBlank()),{exception:{values:[bp(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(gp,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:xp(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function md(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Ep(){return window}var Gr=class t extends Wr{constructor(e,i=Ep()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:r=m=>m,beforeBreadcrumb:a=m=>m,blacklistUrls:l=[],ignoreErrors:o=[],release:u=void 0}=this.options||{};this.plugins=n.map(m=>new m(this)),this.beforeSend=r,this.beforeBreadcrumb=a,this.blacklistUrls=l,this.ignoreErrors=o,this.release=u}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Ee({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",Ee({},e)),this}setUser(e){return this.setKeyState("user",Ee({},e)),this}clone(){let e=new t(Ge(Ee({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[Ee({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ge(Ee({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(n=>md(i,n))):!1}getRequestBlank(){return Ee(Ge(Ee({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(Ee({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${i}: ${n}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(n=>md(i,n)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,n)=>{let r=this._state[n],a=Array.isArray(r)?r:null,l=e[n],o=Array.isArray(l)?l:null;return Ge(Ee({},i),{[n]:a||o?[...a||[],...o||[]]:Ee(Ee({},typeof r!="string"?r:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var en=require("@vkontakte/videoplayer-shared/es2015");var qr=null,tn=class{constructor(e,i,n={}){!qr&&e.dsn&&(this.sentryClient=new Gr({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new en.Subscription,this.options=e,this.context=n,qr=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),qr=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},n={}){let{sentryClient:r,context:a,options:l}=this,{sampleRate:o=0,whiteErrorIdList:u,whiteErrorCategoryList:m=[],blackErrorIdList:f,blackErrorCategoryList:d}=l,{errorType:c,category:h}=i;if((0,en.isNonNullable)(h)&&d.includes(h)||(0,en.isNonNullable)(c)&&f.includes(c))return;if(Math.random()<=o||(0,en.isNonNullable)(h)&&m.includes(h)||(0,en.isNonNullable)(c)&&u.includes(c)){Object.keys(i).length&&r.setTags(Ee({version:this.version},i)),(Object.keys(a).length||Object.keys(n).length)&&r.setExtras(Ee(Ee({},a),n));try{c&&r.captureMessage(c,i.fatal?wn.fatal:wn.error),r.report(e)}catch(_){console.error(_)}}}static getInstance(){return qr}};var Kr=class{constructor(e){this.value=e,this.next=null}};var Tn=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Kr(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 Ap=$e('<div class="container s-8"><canvas class="s-8"></canvas></div>'),wp={hash:"s-8",code:".container.s-8{display:inline-block;height:16px;width:120px}canvas.s-8{margin-top:2px;transform:scaleY(-1)}"};function ar(t,e){mt(e,!0),vt(t,wp);let i=Te(e,"values",19,()=>[]),n=Qe(void 0),r=Qe(null),a=16,l=120,o=60,u=l/o;bn(()=>{V(n).width=l,V(n).height=a,ke(r,V(n).getContext("2d"),!0)});function m(c,h,x,_,b){b===0&&(b=1),c.fillStyle="#fff",c.fillRect(h,x,_,b)}Di(()=>{let c="";if(V(r)){let h=i()[0];for(let _=1;_<i().length;_++)i()[_]>h&&(h=i()[_]);V(r).clearRect(0,0,l,a);let x=o-1;for(let _=i().length-1;_>=0;_--){let b=x*u,L=h>0?a*(i()[_]/h):0;m(V(r),b,0,u,L),c=L+" "+c,x--}}});var f=Ap(),d=ae(f);Ki(d,c=>ke(n,c),()=>V(n)),oe(f),ve(t,f),ht()}var ba=require("@vkontakte/videoplayer-shared/es2015");var Sn=require("@vkontakte/videoplayer-shared/es2015");var Tp={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:`Видео грузится слишком медленно,
|
|
37
|
+
`}),t.stack&&Et(t,"stack",{value:t.stack.split(`
|
|
38
|
+
`).filter(c=>!c.includes("svelte/src/internal")).join(`
|
|
39
|
+
`)})}}var ln=!1,In=null,dn=!1,Ui=!1;function ta(t){Ui=t}var dr=[],ur=[],Me=null,ei=!1;function xt(t){Me=t}var be=null;function St(t){be=t}var Dt=null;function Pr(t){Me!==null&&Me.f&2097152&&(Dt===null?Dt=[Me,[t]]:Dt[1].push(t))}var Bt=null,ri=0,Jt=null;function wl(t){Jt=t}var Hl=1,Gr=0,Fi=!1,Kr=null;function er(){return++Hl}function rn(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&&be!==null&&!Fi,c=i.length;if(s||a){var m=t,p=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&&p!==null&&(p.f&256)===0&&(m.f^=256)}for(r=0;r<c;r++)if(o=i[r],rn(o)&&Jo(o),o.wv>t.wv)return!0}(!n||be!==null&&!Fi)&&Ht(t,1024)}return!1}function Bl(t,e,i=!0){var n=t.reactions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];Dt!=null&&Dt[1].includes(t)&&Dt[0]===Me||((o.f&2)!==0?Bl(o,e,!1):e===o&&(i?Ht(o,2048):(o.f&1024)!==0&&Ht(o,4096),ir(o)))}}function Or(t){var h,v;var e=Bt,i=ri,n=Jt,r=Me,o=Fi,s=Dt,a=ke,c=ei,m=t.f;Bt=null,ri=0,Jt=null,Fi=(m&256)!==0&&(ei||!dn||Me===null),Me=(m&96)===0?t:null,Dt=null,Gn(t.ctx),ei=!1,Gr++,t.f|=2097152;try{var p=(0,t.fn)(),l=t.deps;if(Bt!==null){var u;if(ar(t,ri),l!==null&&ri>0)for(l.length=ri+Bt.length,u=0;u<Bt.length;u++)l[ri+u]=Bt[u];else t.deps=l=Bt;if(!Fi||(m&2)!==0&&t.reactions!==null)for(u=ri;u<l.length;u++)((v=(h=l[u]).reactions)!=null?v:h.reactions=[]).push(t)}else l!==null&&ri<l.length&&(ar(t,ri),l.length=ri);if(ki()&&Jt!==null&&!ei&&l!==null&&(t.f&6146)===0)for(u=0;u<Jt.length;u++)Bl(Jt[u],t);return r!==null&&r!==t&&(Gr++,Jt!==null&&(n===null?n=Jt:n.push(...Jt))),p}catch(_){zl(_)}finally{Bt=e,ri=i,Jt=n,Me=r,Fi=o,Dt=s,Gn(a),ei=c,t.f^=2097152}}function Dc(t,e){let i=e.reactions;if(i!==null){var n=il.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&&(Bt===null||!Bt.includes(e))&&(Ht(e,4096),(e.f&768)===0&&(e.f^=512),$r(e),ar(e,0))}function ar(t,e){var i=t.deps;if(i!==null)for(var n=e;n<i.length;n++)Dc(t,i[n])}function Mn(t){var e=t.f;if((e&16384)===0){Ht(t,1024);var i=be,n=dn;if(be=t,dn=!0,K){var r=wi;Kn(t.component_function)}try{(e&16)!==0?$l(t):ra(t),na(t);var o=Or(t);if(t.teardown=typeof o=="function"?o:null,t.wv=Hl,K&&Di&&(t.f&2048)!==0&&t.deps!==null)for(var s of t.deps)s.set_during_effect&&(s.wv=er(),s.set_during_effect=!1);K&&ur.push(t)}finally{dn=n,be=i,K&&Kn(r)}}}function Ul(){console.error("Last ten effects were: ",ur.slice(-10).map(t=>t.fn)),ur=[]}function kc(){try{ul()}catch(t){if(K&&Et(t,"stack",{value:""}),In!==null)if(K)try{lr(t,In)}catch(e){throw Ul(),e}else lr(t,In);else throw K&&Ul(),t}}function da(){var t=dn;try{var e=0;for(dn=!0;dr.length>0;){e++>1e3&&kc();var i=dr,n=i.length;dr=[];for(var r=0;r<n;r++){var o=$c(i[r]);Lc(o)}wn.clear()}}finally{ln=!1,dn=t,In=null,K&&(ur=[])}}function Lc(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var n=t[i];(n.f&24576)===0&&rn(n)&&(Mn(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?oa(n):n.fn=null))}}function ir(t){ln||(ln=!0,queueMicrotask(da));for(var e=In=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}dr.push(e)}function $c(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:rn(i)&&Mn(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 cr(t){var e;for(t&&(ln=!0,da(),ln=!0,e=t());;){if(Vl(),dr.length===0)return ln=!1,In=null,K&&(ur=[]),e;ln=!0,da()}}function C(t){var e=t.f,i=(e&2)!==0;if(Kr!==null&&Kr.add(t),Me!==null&&!ei){if(!(Dt!=null&&Dt[1].includes(t))||Dt[0]!==Me){var n=Me.deps;t.rv<Gr&&(t.rv=Gr,Bt===null&&n!==null&&n[ri]===t?ri++:Bt===null?Bt=[t]:(!Fi||!Bt.includes(t))&&Bt.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,rn(r)&&Jo(r)),K&&Di&&!ei&&qn!==null&&Me!==null&&qn.reaction===Me)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&&wn.has(t)?wn.get(t):t.v}function tt(t){var e=ei;try{return ei=!0,t()}finally{ei=e}}var Oc=-7169;function Ht(t,e){t.f=t.f&Oc|e}var Rc=["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 Pg=[...Rc,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Vc=["touchstart","touchmove"];function Ql(t){return Vc.includes(t)}var jc=["$state","$state.raw","$derived","$derived.by"],Rg=[...jc,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var Wl=new Map;function ql(t,e){var i=Wl.get(t);i||(i=new Set,Wl.set(t,i)),i.add(e)}function Zr(t){var e=Me,i=be;xt(null),St(null);try{return t()}finally{xt(e),St(i)}}var ua=new Set,Xr=new Set;function Kl(t,e,i,n={}){function r(o){if(n.capture||Nn.call(e,o),!o.cancelBubble)return Zr(()=>i==null?void 0:i.call(this,o))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?ni(()=>{e.addEventListener(t,r,n)}):e.addEventListener(t,r,n),r}function ca(t,e,i,n,r){var o={capture:n,passive:r},s=Kl(t,e,i,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Lt(()=>{e.removeEventListener(t,s,o)})}function Kt(t){for(var e=0;e<t.length;e++)ua.add(t[e]);for(var i of Xr)i(t)}function Nn(t){var N;var e=this,i=e.ownerDocument,n=t.type,r=((N=t.composedPath)==null?void 0:N.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){Et(t,"currentTarget",{configurable:!0,get(){return o||i}});var p=Me,l=be;xt(null),St(null);try{for(var u,h=[];o!==null;){var v=o.assignedSlot||o.parentNode||o.host||null;try{var _=o["__"+n];if(_!=null&&(!o.disabled||t.target===o))if(pi(_)){var[y,...D]=_;y.apply(o,[t,...D])}else _.call(o,t)}catch(I){u?h.push(I):u=I}if(t.cancelBubble||v===e||v===null)break;o=v}if(u){for(let I of h)queueMicrotask(()=>{throw I});throw u}}finally{t.__root=e,delete t.currentTarget,xt(p),St(l)}}}var Fc;function Zl(){Fc=void 0}function pr(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function oi(t,e){var i=be;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function pe(t,e){var i=(e&1)!==0,n=(e&2)!==0,r,o=!t.startsWith("<!>");return()=>{if(he)return oi(we,null),we;r===void 0&&(r=pr(o?t:"<!>"+t),i||(r=vt(r)));var s=n||nr?document.importNode(r,!0):r.cloneNode(!0);if(i){var a=vt(s),c=s.lastChild;oi(a,c)}else oi(s,s);return s}}function Bc(t,e,i="svg"){var n=!t.startsWith("<!>"),r=(e&1)!==0,o=`<${i}>${n?t:"<!>"+t}</${i}>`,s;return()=>{if(he)return oi(we,null),we;if(!s){var a=pr(o),c=vt(a);if(r)for(s=document.createDocumentFragment();vt(c);)s.appendChild(vt(c));else s=vt(c)}var m=s.cloneNode(!0);if(r){var p=vt(m),l=m.lastChild;oi(p,l)}else oi(m,m);return m}}function jt(t,e){return Bc(t,e,"svg")}function un(){if(he)return oi(we,null),we;var t=document.createDocumentFragment(),e=document.createComment(""),i=gi();return t.append(e,i),oi(e,i),t}function te(t,e){if(he){be.nodes_end=we,Mt();return}t!==null&&t.before(e)}var pa=!0;function Ce(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 cn(t,e){return ed(t,e)}function ma(t,e){var s;Fr(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,n=he,r=we;try{for(var o=vt(i);o&&(o.nodeType!==fi||o.data!==qi);)o=Rt(o);if(!o)throw Vi;Pt(!0),ct(o),Mt();let a=ed(t,Ke(Ee({},e),{anchor:o}));if(we===null||we.nodeType!==fi||we.data!==en)throw on(),Vi;return Pt(!1),a}catch(a){if(a===Vi)return e.recover===!1&&cl(),Fr(),rr(i),Pt(!1),cn(t,e);throw a}finally{Pt(n),ct(r),Zl()}}var Cn=new Map;function ed(t,{target:e,anchor:i,props:n={},events:r,context:o,intro:s=!0}){Fr();var a=new Set,c=l=>{for(var u=0;u<l.length;u++){var h=l[u];if(!a.has(h)){a.add(h);var v=Ql(h);e.addEventListener(h,Nn,{passive:v});var _=Cn.get(h);_===void 0?(document.addEventListener(h,Nn,{passive:v}),Cn.set(h,1)):Cn.set(h,_+1)}}};c(Qn(ua)),Xr.add(c);var m=void 0,p=Ll(()=>{var l=i!=null?i:e.appendChild(gi());return At(()=>{if(o){Ie({});var u=ke;u.c=o}r&&(n.$$events=r),he&&oi(l,null),pa=s,m=t(l,n)||{},pa=!0,he&&(be.nodes_end=we),o&&Ne()}),()=>{var v;for(var u of a){e.removeEventListener(u,Nn);var h=Cn.get(u);--h===0?(document.removeEventListener(u,Nn),Cn.delete(u)):Cn.set(u,h)}Xr.delete(c),l!==i&&((v=l.parentNode)==null||v.removeChild(l))}});return fa.set(m,p),m}var fa=new WeakMap;function fr(t,e){let i=fa.get(t);return i?(fa.delete(t),i(e)):(K&&Tl(),Promise.resolve())}function Le(t,e,[i,n]=[0,0]){he&&i===0&&Mt();var r=t,o=null,s=null,a=gt,c=i>0?65536:0,m=!1;let p=(u,h=!0)=>{m=!0,l(h,u)},l=(u,h)=>{if(a===(a=u))return;let v=!1;if(he&&n!==-1){if(i===0){let y=Ur(r);y===qi?n=0:y===Gi?n=1/0:(n=parseInt(y.substring(1)),n!==n&&(n=a?1/0:-1))}let _=n>i;!!a===_&&(r=an(),ct(r),Pt(!1),v=!0,n=-1)}a?(o?Ki(o):h&&(o=At(()=>h(r))),s&&vi(s,()=>{s=null})):(s?Ki(s):h&&(s=At(()=>h(r,[i+1,n]))),o&&vi(o,()=>{o=null})),v&&Pt(!0)};It(()=>{m=!1,e(p),m||l(null,null)},c),he&&(r=we)}function ha(t,e,i){he&&Mt();var n=t,r=gt,o,s=ki()?ol:xn;It(()=>{s(r,r=e())&&(o&&vi(o),o=At(()=>i(n)))}),he&&(n=we)}var mr=null;function qc(t,e,i,n){for(var r=[],o=e.length,s=0;s<o;s++)Wr(e[s].e,r,!0);var a=o>0&&r.length===0&&i!==null;if(a){var c=i.parentNode;rr(c),c.append(i),n.clear(),Zi(t,e[0].prev,e[o-1].next)}aa(r,()=>{for(var m=0;m<o;m++){var p=e[m];a||(n.delete(p.k),Zi(t,p.prev,p.next)),Tt(p.e,!a)}})}function _a(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=he?ct(vt(m)):m.appendChild(gi())}he&&Mt();var p=null,l=!1,u=Jn(()=>{var h=i();return pi(h)?h:h==null?[]:Qn(h)});It(()=>{var h=C(u),v=h.length;if(l&&v===0)return;l=v===0;let _=!1;if(he){var y=Ur(s)===Gi;y!==(v===0)&&(s=an(),ct(s),Pt(!1),_=!0)}if(he){for(var D=null,N,I=0;I<v;I++){if(we.nodeType===fi&&we.data===en){s=we,_=!0,Pt(!1);break}var b=h[I],x=n(b,I);N=nd(we,a,D,null,b,x,I,r,e,i),a.items.set(x,N),D=N}v>0&&ct(an())}he||Gc(h,a,s,r,e,n,i),o!==null&&(v===0?p?Ki(p):p=At(()=>o(s)):p!==null&&vi(p,()=>{p=null})),_&&Pt(!0),C(u)}),he&&(s=we)}function Gc(t,e,i,n,r,o,s){var U,$,B,O;var a=(r&8)!==0,c=(r&3)!==0,m=t.length,p=e.items,l=e.first,u=l,h,v=null,_,y=[],D=[],N,I,b,x;if(a)for(x=0;x<m;x+=1)N=t[x],I=o(N,x),b=p.get(I),b!==void 0&&((U=b.a)==null||U.measure(),(_!=null?_:_=new Set).add(b));for(x=0;x<m;x+=1){if(N=t[x],I=o(N,x),b=p.get(I),b===void 0){var E=u?u.e.nodes_start:i;v=nd(E,e,v,v===null?e.first:v.next,N,I,x,n,r,s),p.set(I,v),y=[],D=[],u=v.next;continue}if(c&&Kc(b,N,x,r),(b.e.f&8192)!==0&&(Ki(b.e),a&&(($=b.a)==null||$.unfix(),(_!=null?_:_=new Set).delete(b))),b!==u){if(h!==void 0&&h.has(b)){if(y.length<D.length){var M=D[0],P;v=M.prev;var L=y[0],A=y[y.length-1];for(P=0;P<y.length;P+=1)td(y[P],M,i);for(P=0;P<D.length;P+=1)h.delete(D[P]);Zi(e,L.prev,A.next),Zi(e,v,L),Zi(e,A,M),u=M,v=A,x-=1,y=[],D=[]}else h.delete(b),td(b,u,i),Zi(e,b.prev,b.next),Zi(e,b,v===null?e.first:v.next),Zi(e,v,b),v=b;continue}for(y=[],D=[];u!==null&&u.k!==I;)(u.e.f&8192)===0&&(h!=null?h:h=new Set).add(u),D.push(u),u=u.next;if(u===null)continue;b=u}y.push(b),v=b,u=b.next}if(u!==null||h!==void 0){for(var T=h===void 0?[]:Qn(h);u!==null;)(u.e.f&8192)===0&&T.push(u),u=u.next;var g=T.length;if(g>0){var j=(r&4)!==0&&m===0?i:null;if(a){for(x=0;x<g;x+=1)(B=T[x].a)==null||B.measure();for(x=0;x<g;x+=1)(O=T[x].a)==null||O.fix()}qc(e,T,j,p)}}a&&ni(()=>{var q;if(_!==void 0)for(b of _)(q=b.a)==null||q.apply()}),be.first=e.first&&e.first.e,be.last=v&&v.e}function Kc(t,e,i,n){(n&1)!==0&&Tn(t.v,e),(n&2)!==0?Tn(t.i,i):t.i=i}function nd(t,e,i,n,r,o,s,a,c,m){var p=mr,l=(c&1)!==0,u=(c&16)===0,h=l?u?Li(r,!1,!1):hi(r):r,v=(c&2)===0?s:hi(s);K&&l&&(h.trace=()=>{var y=typeof v=="number"?s:v.v;m()[y]});var _={i:v,v:h,k:o,a:null,e:null,prev:i,next:n};mr=_;try{return _.e=At(()=>a(t,h,v,m),he),_.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{mr=p}}function td(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=Rt(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 ya(t,e,i,n,r){var a;he&&Mt();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 Dn(t,e,...i){var n=t,r=wt,o;It(()=>{r!==(r=e())&&(o&&(Tt(o),o=null),K&&r==null&&pl(),o=At(()=>r(n,...i)))},65536),he&&(n=we)}var Ea;function rd(t){return Ea=t.target,new xa(t)}var Bi,_i,xa=class{constructor(e){Tr(this,Bi);Tr(this,_i);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(Ke(Ee({},e.props||{}),{$$events:{}}),{get(a,c){var m;return C((m=i.get(c))!=null?m:n(c,Reflect.get(a,c)))},has(a,c){var m;return c===Yn?!0:(C((m=i.get(c))!=null?m:n(c,Reflect.get(a,c))),Reflect.has(a,c))},set(a,c,m){var p;return me((p=i.get(c))!=null?p:n(c,m),m),Reflect.set(a,c,m)}});Mr(this,_i,(e.hydrate?ma:cn)(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)&&cr(),Mr(this,Bi,r.$$events);for(let a of Object.keys(Ft(this,_i)))a==="$set"||a==="$destroy"||a==="$on"||Et(this,a,{get(){return Ft(this,_i)[a]},set(c){Ft(this,_i)[a]=c},enumerable:!0});Ft(this,_i).$set=a=>{Object.assign(r,a)},Ft(this,_i).$destroy=()=>{fr(Ft(this,_i))}}$set(e){Ft(this,_i).$set(e)}$on(e,i){Ft(this,Bi)[e]=Ft(this,Bi)[e]||[];let n=(...r)=>i.call(this,...r);return Ft(this,Bi)[e].push(n),()=>{Ft(this,Bi)[e]=Ft(this,Bi)[e].filter(r=>r!==n)}}$destroy(){Ft(this,_i).$destroy()}};Bi=new WeakMap,_i=new WeakMap;function Oe(t,e){ni(()=>{var r,o,s;var i=t.getRootNode(),n=i.host?i:(s=(r=i.head)!=null?r:i.ownerDocument.head)!=null?s:(o=Ea)==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),K&&ql(e.hash,a)}})}function ad(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=ad(t[e]))&&(n&&(n+=" "),n+=i)}else for(i in t)t[i]&&(n&&(n+=" "),n+=i);return n}function sd(){for(var t,e,i=0,n="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=ad(t))&&(n&&(n+=" "),n+=e);return n}function $i(t){return typeof t=="object"?sd(t):t!=null?t:""}var ld=[...`
|
|
40
|
+
\r\f \v\uFEFF`];function ud(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||ld.includes(n[s-1]))&&(a===n.length||ld.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function dd(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 Aa(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function cd(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(Aa)),r&&c.push(...Object.keys(r).map(Aa));var m=0,p=-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===":"&&p===-1)p=l;else if(u===";"||l===_-1){if(p!==-1){var h=Aa(t.substring(m,p).trim());if(!c.includes(h)){u!==";"&&l++;var v=t.substring(m,l).trim();i+=" "+v+";"}}m=l+1,p=-1}}}}return n&&(i+=dd(n)),r&&(i+=dd(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function yi(t,e,i,n,r,o){var s=t.__className;if(he||s!==i||s===void 0){var a=ud(i,n,o);(!he||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 wa(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 lt(t,e,i,n){var r=t.__style;if(he||r!==e){var o=cd(e,n);(!he||o!==t.getAttribute("style"))&&(o==null?t.removeAttribute("style"):t.style.cssText=o),t.__style=e}else n&&(Array.isArray(n)?(wa(t,i==null?void 0:i[0],n[0]),wa(t,i==null?void 0:i[1],n[1],"important")):wa(t,i,n));return n}var up=Symbol("class"),cp=Symbol("style"),pp=Symbol("is custom element"),fp=Symbol("is html");function it(t,e,i,n){var r=mp(t);if(he&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){n||gp(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[rl]=i),i==null?t.removeAttribute(e):typeof i!="string"&&hp(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function mp(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[pp]:t.nodeName.includes("-"),[fp]:t.namespaceURI===bl}}var pd=new Map;function hp(t){var e=pd.get(t.nodeName);if(e)return e;pd.set(t.nodeName,e=[]);for(var i,n=t,r=Element.prototype;r!==n;){i=Ho(n);for(var o in i)i[o].set&&e.push(o);n=yn(n)}return e}function gp(t,e,i){var n;K&&(e==="srcset"&&vp(t,i)||Sa((n=t.getAttribute(e))!=null?n:"",i)||Sl(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Sa(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function fd(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function vp(t,e){var i=fd(t.srcset),n=fd(e);return n.length===i.length&&n.every(([r,o],s)=>o===i[s][1]&&(Sa(i[s][0],r)||Sa(r,i[s][0])))}function md(t,e){return t===e||(t==null?void 0:t[Yt])===e}function ai(t={},e,i,n){return Wt(()=>{var r,o;return Vt(()=>{r=o,o=(n==null?void 0:n())||[],tt(()=>{t!==i(...o)&&(e(t,...o),r&&md(i(...r),t)&&e(null,...r))})}),()=>{ni(()=>{o&&md(i(...o),t)&&e(null,...o)})}}),t}function hr(t,e,i){if(t==null)return e(void 0),i&&i(void 0),wt;let n=tt(()=>t.subscribe(e,i));return n.unsubscribe?()=>n.unsubscribe():n}var kn=[];function si(t,e){return{subscribe:Q(t,e).subscribe}}function Q(t,e=wt){let i=null,n=new Set;function r(a){if(xn(t,a)&&(t=a,i)){let c=!kn.length;for(let m of n)m[1](),kn.push(m,t);if(c){for(let m=0;m<kn.length;m+=2)kn[m][0](kn[m+1]);kn.length=0}}}function o(a){r(a(t))}function s(a,c=wt){let m=[a,c];return n.add(m),n.size===1&&(i=e(r,o)||wt),a(t),()=>{n.delete(m),n.size===0&&i&&(i(),i=null)}}return{set:r,update:o,subscribe:s}}function nt(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 si(i,(s,a)=>{let c=!1,m=[],p=0,l=wt,u=()=>{if(p)return;l();let v=e(n?m[0]:m,s,a);o?s(v):l=typeof v=="function"?v:wt},h=r.map((v,_)=>hr(v,y=>{m[_]=y,p&=~(1<<_),c&&u()},()=>{p|=1<<_}));return c=!0,u(),function(){bn(h),l(),c=!1}})}function Se(t){let e;return hr(t,i=>e=i)(),e}var eo=!1,Ta=Symbol();function rt(t,e,i){var o;let n=(o=i[e])!=null?o:i[e]={store:null,source:Li(void 0),unsubscribe:wt};if(n.store!==t&&!(Ta in i))if(n.unsubscribe(),n.store=t!=null?t:null,t==null)n.source.v=void 0,n.unsubscribe=wt;else{var r=!0;n.unsubscribe=hr(t,s=>{r?n.source.v=s:me(n.source,s)}),r=!1}return t&&Ta in i?Se(t):C(n.source)}function li(){let t={};function e(){Lt(()=>{for(var i in t)t[i].unsubscribe();Et(t,Ta,{enumerable:!1,value:!0})})}return[t,e]}function Ma(t){var e=eo;try{return eo=!1,[t(),eo]}finally{eo=e}}function hd(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function ot(t,e,i,n){var M,P;var r=(i&1)!==0,o=!Ci||(i&2)!==0,s=(i&8)!==0,a=(i&16)!==0,c=!1,m;s?[m,c]=Ma(()=>t[e]):m=t[e];var p=Yt in t||Yn in t,l=s&&((P=(M=Qt(t,e))==null?void 0:M.set)!=null?P:p&&e in t&&(L=>t[e]=L))||void 0,u=n,h=!0,v=!1,_=()=>(v=!0,h&&(h=!1,a?u=tt(n):u=n),u);m===void 0&&n!==void 0&&(l&&o&&fl(e),m=_(),l&&l(m));var y;if(o)y=()=>{var L=t[e];return L===void 0?_():(h=!0,v=!1,L)};else{var D=(r?zi:Jn)(()=>t[e]);D.f|=131072,y=()=>{var L=C(D);return L!==void 0&&(u=void 0),L===void 0?u:L}}if((i&4)===0&&o)return y;if(l){var N=t.$$legacy;return function(L,A){return arguments.length>0?((!o||!A||N||c)&&l(A?y():L),L):y()}}var I=!1,b=!1,x=Li(m),E=zi(()=>{var L=y(),A=C(x);return I?(I=!1,b=!0,A):(b=!1,x.v=L)});return s&&C(E),r||(E.equals=En),function(L,A){if(Kr!==null&&(I=b,y(),C(x)),arguments.length>0){let T=A?C(E):o&&s?$t(L):L;if(!E.equals(T)){if(I=!0,me(x,T),v&&u!==void 0&&(u=T),hd(E))return L;tt(()=>C(E))}return L}return hd(E)?E.v:C(E)}}var Tp;typeof HTMLElement=="function"&&(Tp=class extends HTMLElement{constructor(e,i,n){super();ci(this,"$$ctor");ci(this,"$$s");ci(this,"$$c");ci(this,"$$cn",!1);ci(this,"$$d",{});ci(this,"$$r",!1);ci(this,"$$p_d",{});ci(this,"$$l",{});ci(this,"$$l_u",new Map);ci(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 Zt(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),te(s,a)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},r=Mp(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]=Ia(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=rd({component:this.$$ctor,target:this.shadowRoot||this,props:Ke(Ee({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=Yr(()=>{Vt(()=>{var o;this.$$r=!0;for(let s of Fo(this.$$c)){if(!((o=this.$$p_d[s])!=null&&o.reflect))continue;this.$$d[s]=this.$$c[s];let a=Ia(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]=Ia(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 Fo(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Ia(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 Mp(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}if(K){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;ml(e)},set:n=>{i=n}})}};Np=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Np;function Ii(t){ke===null&&An("onMount"),Ci&&ke.l!==null?Ip(ke).m.push(t):Gt(()=>{let e=tt(t);if(typeof e=="function")return e})}function vd(t){ke===null&&An("onDestroy"),Ii(()=>()=>tt(t))}function Ip(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Cp={debugLog:!1,devNullLog:!1,defaultLanguage:pn.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:pn.VideoQuality.Q_480P,highQualityLimit:pn.VideoQuality.Q_720P,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,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"},Na=t=>(0,pn.fillWithDefault)(t,Cp),_d=t=>Xn("ui-config",t),to=()=>Zn("ui-config");var pt=require("@vkontakte/videoplayer-shared/es2015");var yd="5";var bd,xd,Ed;typeof window!="undefined"&&((Ed=(xd=(bd=window.__svelte)!=null?bd:window.__svelte={}).v)!=null?Ed:xd.v=new Set).add(yd);_l();var Ad="var(--btn-color, #fff)";var Dp=jt('<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),kp=jt('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function di(t,e){var p;Ie(e,!0);let i=ot(e,"width",19,()=>"14"),n=ot(e,"height",19,()=>"14"),r=ot(e,"fill",3,Ad),o=(p=e.viewBox)!=null?p:`0 0 ${i()} ${n()}`;var s=kp(),a=H(s);{var c=l=>{var u=Dp(),h=ii(u),v=H(h);Dn(v,()=>e.children),F(h),zr(),te(l,u)},m=l=>{var u=un(),h=ii(u);Dn(h,()=>e.children),te(l,u)};Le(a,l=>{e.shadow?l(c):l(m,!1)})}F(s),_e(()=>{it(s,"aria-label",e.ariaLabel),it(s,"aria-hidden",!e.ariaLabel),it(s,"width",i()),it(s,"height",n()),it(s,"viewBox",o),it(s,"fill",r()),lt(s,e.style),it(s,"data-testid",e.testId)}),te(t,s),Ne()}var Lp=jt('<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 Ca(t){di(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var n=Lp();te(e,n)},$$slots:{default:!0}})}var $p=pe('<div class="container s-2"><!></div>'),Op={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 gr(t){Oe(t,Op);var e=$p(),i=H(e);Ca(i,{}),F(e),te(t,e)}var Pp=pe('<div class="playerError s-0"><!></div>'),Rp={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 Da(t){Oe(t,Rp);var e=Pp(),i=H(e);gr(i,{}),F(e),te(t,e)}function wd(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 vr="ui-tv";var Vn=require("@vkontakte/videoplayer-statistics/es2015");var Sd=require("@vkontakte/videoplayer-shared/es2015"),US=require("@vkontakte/videoplayer-statistics/es2015"),no=class{constructor(e,i,n,r=new Sd.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 Ln;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ln||(Ln={}));var Vp=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,jp=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,zp=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ro="?",Up="X-Sentry-Auth",Fp=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Hp(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
41
|
+
`),n,r;for(let o=0;o<i.length;++o){if(n=Vp.exec(i[o]))r={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||ro,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=zp.exec(i[o]))r={filename:n[2],function:n[1]||ro,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=jp.exec(i[o]))o===0&&!n[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:n[3],function:n[1]||ro,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!r.function&&r.lineno&&(r.function=ro),e.push(r)}return e.length?{value:Td(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Td(t){return(t&&t.message||"No error message").split(`
|
|
42
|
+
`).filter(i=>!!i)[0]}function Bp(t){try{let e=Hp(t);if(e)return e}catch(e){}return{value:Td(t),type:t&&t.name,stacktrace:{frames:[]}}}function Qp(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var oo=class{constructor(e){if(e&&e.dsn){let i=Fp.exec(e.dsn),n=i?i.slice(1):[],r=n[5].split("/"),o=r.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(o?"/"+o:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return Ke(Ee({},this.getRequestBlank()),{exception:{values:[Bp(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(Up,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Qp(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Md(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Yp(){return window}var ao=class t extends oo{constructor(e,i=Yp()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:r=m=>m,beforeBreadcrumb:o=m=>m,blacklistUrls:s=[],ignoreErrors:a=[],release:c=void 0}=this.options||{};this.plugins=n.map(m=>new m(this)),this.beforeSend=r,this.beforeBreadcrumb=o,this.blacklistUrls=s,this.ignoreErrors=a,this.release=c}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Ee({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",Ee({},e)),this}setUser(e){return this.setKeyState("user",Ee({},e)),this}clone(){let e=new t(Ke(Ee({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[Ee({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ke(Ee({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(n=>Md(i,n))):!1}getRequestBlank(){return Ee(Ke(Ee({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(Ee({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${i}: ${n}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(n=>Md(i,n)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,n)=>{let r=this._state[n],o=Array.isArray(r)?r:null,s=e[n],a=Array.isArray(s)?s:null;return Ke(Ee({},i),{[n]:o||a?[...o||[],...a||[]]:Ee(Ee({},typeof r!="string"?r:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var fn=require("@vkontakte/videoplayer-shared/es2015");var so=null,mn=class{constructor(e,i,n={}){!so&&e.dsn&&(this.sentryClient=new ao({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new fn.Subscription,this.options=e,this.context=n,so=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),so=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},n={}){let{sentryClient:r,context:o,options:s}=this,{sampleRate:a=0,whiteErrorIdList:c,whiteErrorCategoryList:m=[],blackErrorIdList:p,blackErrorCategoryList:l}=s,{errorType:u,category:h}=i;if((0,fn.isNonNullable)(h)&&l.includes(h)||(0,fn.isNonNullable)(u)&&p.includes(u))return;if(Math.random()<=a||(0,fn.isNonNullable)(h)&&m.includes(h)||(0,fn.isNonNullable)(u)&&c.includes(u)){Object.keys(i).length&&r.setTags(Ee({version:this.version},i)),(Object.keys(o).length||Object.keys(n).length)&&r.setExtras(Ee(Ee({},o),n));try{u&&r.captureMessage(u,i.fatal?Ln.fatal:Ln.error),r.report(e)}catch(_){console.error(_)}}}static getInstance(){return so}};var at=require("@vkontakte/videoplayer-core/es2015"),ge=require("@vkontakte/videoplayer-shared/es2015"),gn=require("@vkontakte/videoplayer-statistics/es2015");var vT=require("@vkontakte/videoplayer-core/es2015");var re=require("@vkontakte/videoplayer-shared/es2015"),_t=require("@vkontakte/videoplayer-shared/es2015");var Wp="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",lo=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=>(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,re.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?(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,re.now)()]}),i(),this.events.loadEnded$.next()):(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,re.now)()]}),n())};(0,_t.addScript)(Wp,e,this.loadTimeout).then(()=>{re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,re.now)()]}),window.AdmanHTML?(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,re.now)()]}),i(),this.events.loadEnded$.next()):(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,re.now)()]}),window.admanAsyncInit=o,r=window.setTimeout(o,this.initTimeout))}).catch(s=>{re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,re.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?(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,re.now)()]}),i(),this.events.loadEnded$.next()):(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,re.now)()]}),n())},s=()=>{a=!0,n()},a=!1,c=window.setTimeout(()=>{re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,re.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,re.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,Promise.resolve().then(()=>xc(Id(),1)).then(()=>{re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(a)],numbers:[(0,re.now)()]}),!a&&(window.AdmanHTML?(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,re.now)()]}),i(),this.events.loadEnded$.next()):(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,re.now)()]}),window.admanAsyncInit=o,r=window.setTimeout(o,this.initTimeout)))},s).finally(()=>{clearTimeout(r),clearTimeout(c),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,re.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var n;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,re.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?Se(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;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,re.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;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,re.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(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,re.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;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,re.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,re.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,re.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;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,re.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")=>{re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,re.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"),re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,re.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 Zt(this,null,function*(){var I,b;if(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,re.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:p,externalApi:l}=e;this.externalApi=l;let u,h=this.playerState&&Se(this.playerState.vsid);h&&(this.isVsidOriginal?u=h:u=parseInt(h,36));let{isEmbed:v,immediateOrigin:_}=(0,re.detectEmbed)(),y=(I=v?_:window.location.href)!=null?I:window.location.href,D=Ee(Ke(Ee(Ke(Ee({},c),{dl:encodeURIComponent(y),autoplay:r?1:0,player_width:i,player_height:n}),u?{request_id:u}:{}),{duration:p}),m);D=Object.fromEntries(Object.entries(D).filter(([x,E])=>(0,re.isNonNullable)(E)));let N={slot:a,wrapper:o,videoEl:s,videoQuality:n,params:D,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 E=yield this.safeExternalCall(this.externalApi.videoGetAds,D);E&&(delete N.slot,delete N.params,Object.assign(N,{json:E}))}x.init(N),this.adman=x,this.videoElement=s,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(N)}`})}catch(x){re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(x)],numbers:[(0,re.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var n,r,o;if(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(n=this.currentAdSection)!=null?n:"","force: "+e],numbers:[(0,re.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(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,re.now)()]}),this.adsState){this.log({message:"toggle play"});let i=Se(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(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,re.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(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,re.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(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,re.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(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,re.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(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,re.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,p,l,u;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,re.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),(p=this.adman)==null||p.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 Zt(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 $n=require("@vkontakte/videoplayer-shared/es2015");var co=require("@vkontakte/videoplayer-shared/es2015"),Dd=require("@vkontakte/videoplayer-core/es2015"),kd=require("@vkontakte/videoplayer-statistics/es2015");var Cd=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Ld=Symbol("storeContext"),$d=t=>{Xn(Ld,t),Ir==="dev"&&(window.app={store:t})},zt=()=>{let t=Zn(Ld);return(0,co.assertNonNullable)(t,"Store context is empty!"),t},Qe=(t,e)=>po(t,t.getValue(),e),po=(t,e,i)=>si(e,n=>{let r=t.subscribe(o=>{n(o),i==null||i(o)});return()=>r.unsubscribe()}),Od=(t,e,i,n,r=["meta config not provided"])=>{var P,L,A,T,g,j,U,$,B;let o=t.info,{width:s,height:a}=Se(i.ui.playerSize),c=(L=(P=o.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?L:0,m=(T=(A=o.rttEstimation$.getValue())==null?void 0:A.toFixed(0))!=null?T:0,p=o.isAutoQualityEnabled$.getValue()?"auto":"manual",l=`${Ji} (core: ${Dd.VERSION}, stat: ${kd.VERSION}, shared: ${co.VERSION})`,u=Se(i.state.errorLog$),h=u.length?`
|
|
43
|
+
`+u.map((O,q)=>{var W;let oe=`${q}) Type: ${O.id}
|
|
44
|
+
`,Z=`Message: ${O.message} (${O.thrown})
|
|
45
|
+
`,fe=`Trace: ${(W=O.thrown)==null?void 0:W.stack}
|
|
46
|
+
`;return oe+Z+fe}).join(`
|
|
47
|
+
`):void 0,v=i.state.isAudioDisabled?"disabled":Se(i.state.isAudioAvailable$)?void 0:"unavailable",_=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),D=[];_&&D.push(`Video: ${(g=_==null?void 0:_.codec)!=null?g:""}`+(_!=null&&_.hdr?" (HDR)":"")),y&&D.push(`Audio: ${(j=y==null?void 0:y.codec)!=null?j:""}`+(y!=null&&y.language?` (${y.language})`:""));let N=o.currentQuality$.getValue(),I="";if(N){let O=o.availableQualitiesFps$.getValue()[N];I=O?`${O}fps`:""}let b=o.httpConnectionType$.getValue(),x=($=(U=o.currentBuffer$.getValue())==null?void 0:U.end)!=null?$:0,E=Math.max(x-Se(i.state.positionExact$),0),M={Version:l,Browser:navigator.userAgent,Config:r.join(", "),"United video id":String(i.videoId),TraceId:n,VSID:Se(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:D.join(", "),Quality:`${p} ${N!=null?N:""} ${I}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:v,Position:`${Se(i.state.positionExact$)}s`,Buffer:`${E}s`,State:`${Se(i.playerPhase)} ${(B=o.playbackState$.getValue())!=null?B:""}`,"Player size":`${s}x${a}`,URL:window.location.href,Errors:h};return Object.entries(M).filter(([O,q])=>q!==void 0).map(([O,q])=>`${O}: ${q}`).join(`
|
|
48
|
+
`)},Pd=(t,e,i)=>{var P,L,A,T;let n=t.info,{width:r,height:o}=Se(i.ui.playerSize),s={version:Ji,viewport:`${r}x${o}`,volume:Math.round(Se(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 p=n.currentBuffer$.getValue(),l=n.currentNativeBuffer$.getValue(),u=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();p&&l&&(u&&h?(s.buffer=p.end-h,s.nativeBuffer=l.end-h):(s.buffer=Math.max(p.end-Se(i.state.positionExact$),0),s.nativeBuffer=Math.max(l.end-Se(i.state.positionExact$),0))),s.position=Se(i.state.positionExact$);let v=n.throughputEstimation$.getValue();v&&(s.speed=v);let _=n.videoBitrate$.getValue();_&&(s.bitrate=_);let y=n.liveLatency$.getValue();y&&(s.liveLatency=y);let D=n.currentVideoSegmentLength$.getValue();D&&(s.currentVideoSegmentLength=D);let N=n.currentAudioSegmentLength$.getValue();N&&(s.currentAudioSegmentLength=N);let I=Se(i.vsid);typeof I=="string"&&(s.vsid=I);let b=(P=t.info.currentVideoStream$.getValue())==null?void 0:P.codec;b&&(s.videoCodec=b);let x=(L=t.info.currentAudioStream$.getValue())==null?void 0:L.codec;x&&(s.audioCodec=x),((A=t.info.currentVideoStream$.getValue())==null?void 0:A.hdr)&&(s.hdr=!0);let M=(T=t.info.currentAudioStream$.getValue())==null?void 0:T.language;return M&&(s.audioLanguage=M),s},Rd=(t,e)=>Cd(t,e,"mp4"),Vd=()=>{let e=[],i=0;return{add:(n,r)=>{e[i]=[n,r],i=(i+1)%10},find:n=>e.find(([r])=>r===n)}},uo=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return Zt(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 fo(t,e=i=>i){let i=Q(t);return[si(t,o=>{i.subscribe(o)}),o=>{i.set(e(o))}]}var qp={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:`Видео грузится слишком медленно,
|
|
49
49
|
качество изменено на «Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
|
|
50
|
-
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},
|
|
50
|
+
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},jd=qp;var Gp={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,
|
|
51
51
|
so the quality was changed to Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
52
|
-
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"},vd=Sp;var Li=new Map;Li.set(Sn.InterfaceLanguage.EN,vd);Li.set(Sn.InterfaceLanguage.RU,hd);var gd=new Map,ga=({language:t,pack:e,fallback:i})=>{if(Li.has(t)){let n=Li.get(t);Li.set(t,Ee(Ee({},n),e))}else Li.set(t,e);gd.set(t,i)},_a=t=>Li.has(t),ya=(t,e,i,n)=>{var l;let r=Li.get(t),a=r==null?void 0:r[e];if((0,Sn.isNullable)(a)){let o=(l=gd.get(t))!=null?l:n,u=o?Li.get(o):void 0;a=u==null?void 0:u[e]}return(0,Sn.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(o,u)=>{var m;return(m=i[u])!=null?m:""}):a},Zr=(t,e)=>{let{interfaceLanguage$:i}=ji(),n=we(i),r=An();return ya(n,t,e,r.defaultLanguage)};var Mp=(t,e)=>{t.stopPropagation(),ba.safeStorage.remove(or),e.set(!1)},Ip=$e('<div class="s-7"><div class="s-7">Video id</div> <span> </span></div>'),Np=$e('<div class="s-7"><div class="s-7">VSID</div> <span> </span></div>'),Dp=$e('<div class="s-7"><div class="s-7">Provider</div> <span> </span></div>'),kp=$e('<div class="s-7"><div class="s-7">Streams</div> <span> </span></div>'),Lp=$e('<div class="s-7"><div class="s-7">Viewport</div> <span> </span></div>'),Cp=$e('<div class="s-7"><div class="s-7">Video size</div> <span> </span></div>'),$p=$e('<div class="s-7"><div class="s-7">CDN host</div> <span> </span></div>'),Op=$e('<div class="s-7"><div class="s-7">Volume</div> <span> </span></div>'),Rp=$e('<div class="s-7"><div class="s-7">Position</div> <span> </span></div>'),Pp=$e('<div class="s-7"><div class="s-7">Buffer</div> <span> </span></div>'),Vp=$e('<div class="s-7"><div class="s-7">Nbuffer</div> <span> </span></div>'),jp=$e('<div class="s-7"><div class="s-7">Live latency</div> <span> </span></div>'),Up=$e('<div class="s-7"><div class="s-7">Segment</div> <span> </span></div>'),zp=$e('<div class="s-7"><div class="s-7">Network</div> <!> <span> </span></div>'),Fp=$e('<div class="s-7"><div class="s-7">V bitrate</div> <!> <span> </span></div>'),Hp=$e('<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>'),Qp={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 xa(t,e){mt(e,!0),vt(t,Qp);let i=ji(),n=i.ui.debugPanelVisible,r=Qe(Mt(i.actions.internal.getDebugPanelData())),a=i.actions.internal.getVideoElement(),l=Qe(0),o=Qe(0),u=Qe(0),m=new Tn(60),f=new Tn(60),d=new Tn(60),c=Qe(Mt([])),h=Qe(Mt([])),x=Qe(Mt([])),_=Zr("aria_label_debug_panel");bn(()=>{ba.safeStorage.set(or,"true"),a&&(ke(o,a.getVideoPlaybackQuality().droppedVideoFrames,!0),ke(l,a.getVideoPlaybackQuality().totalVideoFrames,!0));let g=window.setInterval(()=>{ke(r,i.actions.internal.getDebugPanelData(),!0)},500),P;return a&&(P=window.setInterval(()=>{if(a){ke(o,a.getVideoPlaybackQuality().droppedVideoFrames,!0);let J=a.getVideoPlaybackQuality().totalVideoFrames;ke(u,J-V(l)),ke(l,J,!0),m.push(V(u)),V(r).speed&&f.push(V(r).speed),V(r).bitrate&&d.push(V(r).bitrate),ke(c,m.getValuesFromBottom(),!0),ke(h,f.getValuesFromBottom(),!0),ke(x,d.getValuesFromBottom(),!0)}},1e3)),()=>{clearInterval(g),P&&clearInterval(P)}});var b=Hp(),L=ae(b);L.__click=[Mp,n];var k=he(L,2),D=ae(k),S=he(ae(D),2),E=ae(S,!0);oe(S),oe(D);var T=he(D,2);{var N=g=>{var P=Ip(),J=he(ae(P),2),ue=ae(J,!0);oe(J),oe(P),He(()=>rt(ue,V(r).id)),ve(g,P)};Ye(T,g=>{V(r).id&&g(N)})}var v=he(T,2);{var z=g=>{var P=Np(),J=he(ae(P),2),ue=ae(J,!0);oe(J),oe(P),He(()=>rt(ue,V(r).vsid)),ve(g,P)};Ye(v,g=>{V(r).vsid&&g(z)})}var A=he(v,2);{var I=g=>{var P=Dp(),J=he(ae(P),2),ue=ae(J,!0);oe(J),oe(P),He(()=>rt(ue,V(r).provider)),ve(g,P)};Ye(A,g=>{V(r).provider&&g(I)})}var U=he(A,2);{var j=g=>{var P=kp(),J=he(ae(P),2),ue=ae(J);oe(J),oe(P),He(()=>{var y,Q;return rt(ue,`Video: ${(y=V(r).videoCodec||"")!=null?y:""} ${V(r).hdr?"(HDR)":""}
|
|
52
|
+
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"},zd=Gp;var Qi=new Map;Qi.set($n.InterfaceLanguage.EN,zd);Qi.set($n.InterfaceLanguage.RU,jd);var Ud=new Map,ka=({language:t,pack:e,fallback:i})=>{if(Qi.has(t)){let n=Qi.get(t);Qi.set(t,Ee(Ee({},n),e))}else Qi.set(t,e);Ud.set(t,i)},La=t=>Qi.has(t),$a=(t,e,i,n)=>{var s;let r=Qi.get(t),o=r==null?void 0:r[e];if((0,$n.isNullable)(o)){let a=(s=Ud.get(t))!=null?s:n,c=a?Qi.get(a):void 0;o=c==null?void 0:c[e]}return(0,$n.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},Ut=(t,e)=>{let{interfaceLanguage$:i}=zt(),n=Se(i),r=to();return $a(n,t,e,r.defaultLanguage)};var Fd=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,Hd=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Kp=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Bd=()=>!!Kp();var Qd=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 et=require("@vkontakte/videoplayer-shared/es2015"),KT=require("@vkontakte/videoplayer-core/es2015");var Zp="vk_player_",Wd="vk_player_prefer_traffic_saving_enabled",Xp="vk_player_preferred_volume",Jp="vk_player_prefer_volume_mute",Va="vk_player_preferred_quality",Oa="vk_player_preferred_default_quality_settings",Pa="vk_player_preferred_quality_settings_by_video",qd="vk_player_preferred_stream_language",Gd="vk_player_preferred_rate";var Ra="vk_player_preferred_subtitles_language",ef="vk_player_user_video_prefs",ZT=`${Zp}preview_track_close_tooltip`,tf=t=>t>1?1:t<0?0:t;var mo=()=>{let t=et.safeStorage.get(Xp);return(0,et.isNullable)(t)?void 0:tf(parseFloat(t))},ja=(t,e)=>et.safeStorage.set(Va,JSON.stringify({videoId:t,value:e})),ho=()=>et.safeStorage.remove(Va),za=t=>{let e=et.safeStorage.get(Va);if((0,et.isNullable)(e))return;let{videoId:i,value:n}=JSON.parse(e);if(t!==i){ho();return}return n},nf=(t,e)=>{e?et.safeStorage.set(t,"true"):et.safeStorage.remove(t)},Kd=t=>et.safeStorage.get(t)==="true";var Zd=()=>Kd(Jp),Yd=t=>nf(Wd,t),Ua=()=>Kd(Wd),Xd=()=>et.safeStorage.get(qd),Jd=t=>et.safeStorage.set(qd,t),Fa=()=>et.safeStorage.get(Ra),rf=t=>{t?et.safeStorage.set(Ra,t):et.safeStorage.remove(Ra)},eu=t=>et.safeStorage.set(Gd,JSON.stringify({rate:t})),tu=()=>{let t=et.safeStorage.get(Gd);if((0,et.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e};var of=()=>{let t=p=>{et.safeStorage.set(Oa,JSON.stringify(p))},e=()=>{try{let p=et.safeStorage.get(Oa);return p?JSON.parse(p):null}catch(p){return null}},i=()=>{try{let p=et.safeStorage.get(Pa);return p?JSON.parse(p):null}catch(p){return null}},n=p=>{et.safeStorage.set(Pa,JSON.stringify(p))},r=p=>{m(p);let l=p?i():null;if(l&&(l==null?void 0:l.videoId)===p)return Ke(Ee({},l),{appliesTo:"to-video"});l&&o();let u=e();return u?Ke(Ee({},u),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},o=()=>{et.safeStorage.remove(Pa)},s=()=>{et.safeStorage.remove(Oa)},a=(p,l="as-default")=>{p.type==="exact_quality"||l==="to-video"?n(p):t(p)},c=p=>{let l=r(p);if(l){switch(l.type){case"traffic_saving":Yd(!0);break;case"exact_quality":ja(p,l.quality)}o(),s()}},m=p=>{let l=za(p);if(l){n({type:"exact_quality",videoId:p,quality:l});return}Ua()&&t({type:"traffic_saving",videoId:p}),Yd(!1),ho()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:c,savePreferredQualitySettings:a,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:o,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Fa,savePreferredSubtitlesLanguage:rf}},{getPreferredQualitySettings:XT,migrateSettingsToLegacyWay:iu,savePreferredQualitySettings:JT,savePreferredDefaultQualitySettings:eM,removePreferredQualitySettingsByVideo:tM,getPreferredDefaultQualitySettings:iM}=of();var af=()=>{let t=et.safeStorage.get(ef);if(t)try{return JSON.parse(t)}catch(e){return null}return null},go=(t,e)=>{var r,o;let i=af();return(o=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?o:null};var Ha=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 vo,{startTime:p,endTime:l}=m.parse(c);s.startTime=p,s.endTime=l}else if(c.trim()!==""){let m=new Ba,{texts:p}=m.parse(c);s.texts=[...s.texts,...p]}(s.startTime||s.endTime)&&s.texts.length>0&&n.push(s)}return n}},vo=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}},Ba=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((p,l)=>{let u=s.indexOf(l,a);return p===-1||p>u?u:p},-1);if(m===-1){c.push(s.substring(a));break}c.push(s.substring(a,m)),a=m+1}return c}}),o=new vo;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}},nu=Ha;var yo=require("@vkontakte/videoplayer-shared/es2015"),hn,dt,Qa=0,Ya=!1,ru="",ou=(t,e=0,i=0)=>t<e&&t<i,_o=(t,e=0,i=0)=>t>=e&&t<=i,sf=(t,e=0,i=0)=>t>e&&t>i,au=(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:p})=>_o(t,m,p));let o=t>=Qa,s=t<Qa;if(Qa=t,s&&(Ya=!1),(0,yo.isNonNullable)(hn)&&_o(t,hn.startTime,hn.endTime)&&ru===e.value)return hn;if(!(0,yo.isNonNullable)(dt)&&(r!=null&&r.length)&&!Ya){dt=r.find(({startTime:m,endTime:p})=>_o(t,m,p)||o&&ou(t,m,p)),hn=void 0,!(0,yo.isNonNullable)(dt)&&r[r.length-1].endTime<t&&(Ya=!0);return}else{if(_o(t,dt==null?void 0:dt.startTime,dt==null?void 0:dt.endTime))return hn=dt,dt=void 0,ru=e.value,hn;(o&&sf(t,dt==null?void 0:dt.startTime,dt==null?void 0:dt.endTime)||s&&ou(t,dt==null?void 0:dt.startTime,dt==null?void 0:dt.endTime))&&(dt=void 0)}};var bo={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"},lf={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"},Wa=t=>{var e,i;return(i=(e=bo[t])!=null?e:bo[lf[t]])!=null?i:void 0};var _r="vk_player_debug_panel_opened";var su="videoplayer",lu="videoplayer";var Ni="off";var On=require("@vkontakte/videoplayer-shared/es2015"),df=5e3;function du(){let t=Q(!1),e=Q(!0),i=()=>{t.set(!0)},n=()=>{t.set(!1)},r=N=>{e.set(N)},[o,s]=fo(!1),[a,c]=fo(!0),[m,p]=fo(!1),l=Q(!1),u=(0,On.getWindow)().setTimeout(()=>{},0),h=()=>{l.set(!0),(0,On.getWindow)().clearTimeout(u),u=(0,On.getWindow)().setTimeout(()=>{l.set(!1)},df)},v=()=>{(0,On.getWindow)().clearTimeout(u),l.set(!1)},_=()=>{(0,On.getWindow)().clearTimeout(u),l.set(!1)},y=()=>{if(Se(m))return p(!1),!0;let N=Se(l);return _(),N};function D(N){let{state:{isPlaying$:I,isEnded$:b,isLoaderVisible:x,crashed$:E},ui:{settingsVisible:M},ads:{playbackState:P},playerPhase:L}=N;nt([I,b,l,M],([A,T,g,j])=>!j&&(!A||T||g)).subscribe(A=>{s(A),A||v()}),nt([L,x,P,E],([A,T,g,j])=>(A==="video"&&T||A==="ads"&&g==="inactive")&&!j).subscribe(c)}return{state:{touched:Q(!1),controls:{prevButton:Q(void 0),playButton:Q(void 0),replayButton:Q(void 0),nextButton:Q(void 0),playPrevChapterButton:Q(void 0),seekToInteractiveButton:Q(void 0),interactiveGraphButton:Q(void 0),liveButton:Q(void 0),time:Q(void 0),episodes:Q(void 0),volume:Q(void 0),subtitles:Q(void 0),settings:Q(void 0),context:Q(void 0),chromecast:Q(void 0),pip:Q(void 0),fullscreen:Q(void 0),vkLogo:Q(void 0),interactiveTimeIndicator:Q(void 0),timeline:Q(void 0),autoplayNextToggle:Q(void 0),"theater-mode-button":Q(void 0),additionalButtons:[]},modals:{hotKeyMap:{show:Q(!1),data:Q({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Q(Bd()),isFullscreenOpenedByKeyboard:Q(!1),isAutoplay:Q(!1),debugPanelVisible:Q(!1),episodes:{panelOpened$:Q(!1),openedByKeyboard$:Q(!1)},contextMenu:{visible$:Q(!1),btnRef$:Q(void 0),openedByBtnKeyboard$:Q(!1),openedByHotKey$:Q(!1),lastActiveElem$:Q(void 0),showContextMenuBtn$:Q(!1),position$:Q({top:0,left:0})},playerSize:Q({width:0,height:0}),isMobile:Q(!1),icon3DVideoVisible:Q(!1),scrubbingInProgress:Q(!1),volumeChangingInProgress:t,interactiveHideMobileControls:Q(!1),overlayContainer$:Q(void 0),startedByKeyboard$:Q(!1),autoplayNextEnabled$:Q(!1),timerNextVideoRunning$:Q(!0),settingsMenu:{visible$:Q(!1),ref$:Q(void 0),openedByBtnKeyboard$:Q(!1)},settingsSubMenu:{visible$:Q(!1),ref$:Q(void 0),name$:Q(void 0)},userActionsDisabled:Q(!1),hiddenControls:{volume:Q(!1),vkLogo:Q(!1),pip:Q(!1),chromecast:Q(!1),settings:Q(!1)},isControlsAvailable:e,controlBlocks:{topLeft:Q(void 0),topRight:Q(void 0),middle:Q(void 0),bottom:Q(void 0),bottomLeft:Q(void 0),bottomRight:Q(void 0)},videoTitleInfo:Q(void 0),doubleForwardOn$:Q(!1),doubleForwardAvailable$:Q(!1),previewTrackActive:Q(!1),previewTrackDragInProgress:Q(!1),previewTrackAvailable:Q(!1),isPreviewTrackHorizontallyAligned:Q(!1),isShowLoader:a,controlsVisible:o,settingsVisible:m},action:{stopVolumeChanging:n,startVolumeChanging:i,setControlsAvailibility:r,onUserInput:h,clearShowByInput:_,onBackButton:y,setSettingsVisibility:p},resolveDependency:D}}var uu=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:o,canDownload:s,callbacks:a,webApi:c,previewThumbsData:m,uiConfig:p,coreConfig:l,player:u,stopPlayer:h,looped:v=!1,statistics:_,saveRate:y,internalsExposure:D,playerId:N,metaConfig:I,app:b,video:x,deviceCapabilities:E})=>{var Ws;let M=du(),P=Ke(Ee({},l),{isAudioDisabled:o,live:Ke(Ee({},(Ws=l.live)!=null?Ws:{}),{isLiveCatchUpMode:!!n})}),L=p,A=ge.TracerFactory.createRootTracer(!1),T=A.createComponentTracer("Store"),g=u||new at.Player(P,A,{playerId:N,onDevNullLog:a==null?void 0:a.onDevNullLog});D==null||D.expose({corePlayer:g});let j=new ge.Logger,U=new lo(j,{loadTimeout:L.ads.loadTimeout,initTimeout:L.ads.initTimeout,runtimeTimeout:L.ads.runtimeTimeout,useAdmanFromNPM:L.ads.useAdmanFromNPM,volumeMultiplier:L.ads.volumeMultiplier,isVsidOriginal:L.ads.isVsidOriginal}),$=mn.getInstance(),B=c==null?void 0:c.focusManager,O=j.createComponentLog("Store"),q,oe,Z={},fe=new uo,W=new ge.Subscription,Ae="",G=_&&_.oneStat?Qe(_.oneStat.vsid$):si(void 0),Be=()=>Fd(document,at.clientChecker.device.isIOS),ae=Q(!1),ve=Q([]),V=(0,ge.merge)(g.events.fatalError$,g.events.managedError$).subscribe(d=>ve.update(f=>[...f,d])),Te=si(!1,d=>{let f=g.events.fatalError$.subscribe(()=>d(!0));return()=>f.unsubscribe()}),xe=d=>Zt(null,null,function*(){var J;let f=Object.values(ge.InterfaceLanguage).includes(d);if(L.downloadVKLanguages&&(f&&L.updateBuiltinLanguages||!La(d))){let le;try{le=yield(0,ge.loadVKLangPack)(d,su,lu)}catch($e){(J=_==null?void 0:_.oneStat)==null||J.logError({errorType:"VKLangPack",fatal:!1}),$==null||$.report($e,{errorType:"VKLangPack",fatal:!1})}le&&(ka({language:d,pack:le,fallback:L.defaultLanguage}),ye.set(d),He.update($e=>$e+1))}La(d)&&ye.set(d)}),ye=Q(t),He=Q(0),qe=Q(e);xe(t);let Ve=(d,f)=>{let R=Se(ye);return $a(R,d,f,L.defaultLanguage)},S=Q("thumb");S.subscribe(d=>{d==="ads"&&g.info.playbackState$.getValue()&&ie()});let k=(()=>{let d=nt([Te,S],([f,R])=>f?"crashed":R);return Ke(Ee({},d),{is:f=>Se(d)===f})})(),z=Q(),ie=()=>{z.set({muted:g.info.muted$.getValue()})},se=null,de=g.info.isBuffering$,je=si(de.getValue(),d=>{let f=de.subscribe(R=>{R&&se===null?se=window.setTimeout(()=>{d(de.getValue()),se=null},L.loaderDelay):d(R)});return()=>{f.unsubscribe(),se&&clearTimeout(se)}});T.log("create store"),O({message:"create store"});let Ye=d=>{O({message:`init video, config: ${JSON.stringify(d)}`}),ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ge.now)()]}),g.initVideo(d),T.log("init video"),d.subtitles&&g.setExternalTextTracks(d.subtitles),q=d,Ae=d.subtitlesForcedLanguage||""},Y=new ge.Subject,X=new ge.ValueSubject(gn.SeekAction.UNKNOWN),ue=new ge.Subject,De={actionRewind$:Y,actionSeek$:X,inFullscreen$:new ge.Observable(d=>M.state.isFullscreen.subscribe(f=>d.next(f))),actionSetSubtitle$:ue},w=new ge.Subject,ee=new ge.Subject,ce={actionSeek$:X,actionSubtitlesSwitched$:w,actionQuality$:ee,playerSize$:new ge.Observable(d=>M.state.playerSize.subscribe(f=>d.next(f))),inFullscreen$:new ge.Observable(d=>M.state.isFullscreen.subscribe(f=>d.next(f))),isLoaderVisible$:new ge.Observable(d=>je.subscribe(f=>d.next(f)))};if(_){let{oneStat:d,thinOneStat:f,mediascopePixel:R,statSubscription:J}=_;d&&(J.add(d.attachToUi(De)),J.add(d.attachToAds(U.events)),d.authorize(r).catch(le=>{O({message:`onestat auth error ${String(le)}`})}),R&&R.attachTo(g)),f&&(J.add(f.attachTo(g,U.events)),J.add(f.attachToUi(ce)),J.add(f.attachToAds(U.events)),f.updateContext({isMobile:Se(M.state.isMobile)}),f.authorize(r))}if($){let d=new ge.Subscription,f=(R,J)=>d.add(R.subscribe(J));if(f(g.events.managedError$,R=>{$.logIError(R)}),f(g.events.fatalError$,R=>{$.logIError(R,!0)}),_){let{oneStat:R}=_;R&&f(R.experimental.error$,J=>{$.logIError(J)})}$.sentrySubscription.add(d)}let We=()=>{if(at.clientChecker.device.isIOS&&oe)try{Hd(oe)}catch(d){O({message:`exitIosSafariFullscreen failed: ${d}`})}};W.add(g.experimental.element$.subscribe(d=>{d&&(oe=d,d.classList.add("player-media"))})).add(g.events.ended$.subscribe(()=>{var d;We(),(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(()=>Zt(null,null,function*(){var f,R;let d=g.info.muted$.getValue();(f=a==null?void 0:a.onStarted)==null||f.call(a),(R=Z.onStarted)==null||R.call(Z,d)}))).add(g.events.willSeek$.subscribe(({from:d,to:f})=>{var R;(R=a==null?void 0:a.onSeek)==null||R.call(a,d,f,X.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 R;let f=g.info.duration$.getValue();isFinite(f)&&f>0&&((R=a==null?void 0:a.onTimeupdate)==null||R.call(a,f,d),U.setPosition(d,f))})).add(g.events.fatalError$.subscribe(d=>{var f;(f=a==null?void 0:a.onCrashed)==null||f.call(a,d?`${d.id}: ${d.message}`:void 0)})).add(g.events.fetcherRecoverableError$.subscribe(d=>{var f;(f=a==null?void 0:a.onRecoverableError)==null||f.call(a,d?`${d.id}: ${d.message}`:void 0)})).add(g.events.loadedMetadata$.subscribe(()=>{ae.set(!0)})).add(g.info.liveTime$.subscribe(d=>{var f;(f=a==null?void 0:a.onLiveTime)==null||f.call(a,d)})).add(g.info.isStalled$.subscribe(d=>{var f;(f=a==null?void 0:a.onStalledChanged)==null||f.call(a,d)})).add(g.info.isLiveEnded$.subscribe(d=>{var f;return d&&((f=a==null?void 0:a.onLiveEnded)==null?void 0:f.call(a))})).add(U.events.loadStarted$.subscribe(()=>{var d,f;return(f=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onLoadStarted)==null?void 0:f.call(d)})).add(U.events.loadEnded$.subscribe(()=>{var d,f;return(f=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onLoadEnded)==null?void 0:f.call(d)})).add(U.events.loadError$.subscribe(()=>{var d,f;return(f=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onLoadError)==null?void 0:f.call(d)})).add(U.events.init$.subscribe(()=>{var d,f;return(f=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onInit)==null?void 0:f.call(d)})).add(U.events.ready$.subscribe(()=>{var d,f;return(f=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onReady)==null?void 0:f.call(d)})).add(U.events.started$.subscribe(d=>{var f,R;return(R=(f=a==null?void 0:a.adsInfo)==null?void 0:f.onStarted)==null?void 0:R.call(f,d)})).add(U.events.timeRemained$.subscribe(d=>{var f,R;return(R=(f=a==null?void 0:a.adsInfo)==null?void 0:f.onTimeRemained)==null?void 0:R.call(f,d)})).add(U.events.ended$.subscribe(d=>{var f,R;return(R=(f=a==null?void 0:a.adsInfo)==null?void 0:f.onCompleted)==null?void 0:R.call(f,d)})).add(U.events.empty$.subscribe(()=>{var d,f;return(f=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onEmpty)==null?void 0:f.call(d)})).add(U.events.clicked$.subscribe(d=>{var f,R;return(R=(f=a==null?void 0:a.adsInfo)==null?void 0:f.onClicked)==null?void 0:R.call(f,d)})).add(U.events.closed$.subscribe(d=>{var f,R;return(R=(f=a==null?void 0:a.adsInfo)==null?void 0:f.onClosed)==null?void 0:R.call(f,d)})).add(U.events.error$.subscribe(d=>{var f,R;return(R=(f=a==null?void 0:a.adsInfo)==null?void 0:f.onError)==null?void 0:R.call(f,d)})).add(U.events.paused$.subscribe(()=>{var d,f;return(f=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onPaused)==null?void 0:f.call(d)})).add(U.events.resumed$.subscribe(()=>{var d,f;return(f=(d=a==null?void 0:a.adsInfo)==null?void 0:d.onResumed)==null?void 0:f.call(d)}));let ze=si(g.info.position$.getValue(),d=>{let f,R,J=()=>{let le=g.info.playbackState$.getValue(),$e=g.info.isLive$.getValue(),Ue=g.info.duration$.getValue(),Fe=g.info.position$.getValue();if(le&&[at.PlaybackState.PLAYING,at.PlaybackState.PAUSED].includes(le)){let bt=$e?Fe-Ue:g.getExactTime();bt!==R&&d(bt),R=bt}f=requestAnimationFrame(J)};return J(),()=>cancelAnimationFrame(f)}),ut=Qe(g.info.playbackState$),st=Qe(g.info.isBuffering$),yt=nt([ut,st],([d,f])=>f?"buffering":d),ft=Qe(g.info.currentBuffer$),Pi=Qe(g.info.isEnded$),xi=Qe(g.info.isLive$),ui=L.features.playbackRate?Qe(g.info.canChangePlaybackSpeed$):si(!1),Ri=Qe(g.info.liveBufferTime$),Xi=Qe(g.info.volume$),Yi=Qe(g.info.muted$),Ze=po(g.info.predefinedQualityLimitType$.pipe((0,ge.map)(d=>d===at.PredefinedQualityLimits.TRAFFIC_SAVING)),g.info.predefinedQualityLimitType$.getValue()===at.PredefinedQualityLimits.TRAFFIC_SAVING),Ge=po(g.info.predefinedQualityLimitType$.pipe((0,ge.map)(d=>d===at.PredefinedQualityLimits.HIGH_QUALITY)),g.info.predefinedQualityLimitType$.getValue()===at.PredefinedQualityLimits.HIGH_QUALITY),ht=Qe(g.info.autoQualityLimitingAvailable$),ko=Qe(g.info.availableQualities$),zn=Qe(g.info.availableQualitiesFps$),Nt=Qe(g.info.currentFormat$),mt=Qe(g.info.throughputEstimation$),vn=Qe(g.info.videoBitrate$),_n=Qe(g.info.intrinsicVideoSize$),hs=Qe(g.info.duration$),mu=Qe(g.info.isAudioAvailable$),hu=()=>{se&&clearTimeout(se),se=null},Ar=nt([hs,xi],([d,f])=>f?-d:d),gs=nt([ut],([d])=>d===at.PlaybackState.PLAYING),vs=Qe(g.info.atLiveEdge$),_s=Qe(g.info.atLiveDurationEdge$),ys=Qe(g.info.position$),gu=nt([ys,hs],([d,f])=>isFinite(d)&&isFinite(f)&&!!f),vu=Qe(g.info.availableVideoStreams$),bs=L.features.audioLanguages?Qe(g.info.availableAudioStreams$):si([]),_u=Qe(g.info.currentVideoStream$),xs=Qe(g.info.currentAudioStream$),yu=d=>{d.language&&Jd(d.language),g.setVideoStream(d)},Es=d=>{g.setAudioStream(d)},As=d=>{let f;if(d.length===1&&(f=d.at(0)),f!=null||(f=d.find(J=>"isDefault"in J&&J.isDefault)),L.features.userVideoPrefs&&i){let J=go(L.userSalt,String(i));if(J!=null&&J.audioTrackId){let le=d.find($e=>$e.id===J.audioTrackId);f=le!=null?le:f}}let R=Xd();return R&&(f!=null||(f=d.find(({language:J})=>R===J))),f!=null||(f=d.at(0)),f},bu=d=>{T.log("change audio stream",{id:d});let f=g.info.availableAudioStreams$.getValue().find(R=>R.id===d);f&&Es(f)},ws=!1;W.add(g.info.availableAudioStreams$.subscribe(d=>{if(!ws&&d.length){let f=As(d);f&&(g.setAudioStream(f),ws=!0)}})),bs.subscribe(d=>{var f;(f=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||f.call(a,d.map(({label:R="",id:J="",language:le=""})=>({label:R,language:le,id:J})))}),xs.subscribe(d=>{var f;return d&&((f=a==null?void 0:a.onAudioStreamChanged)==null?void 0:f.call(a,d.id))});let Ss=!1;W.add(g.info.availableVideoStreams$.subscribe(d=>{if(!Ss&&d.length){let f=As(d);f&&(g.setVideoStream(f),Ss=!0)}}));let wr=Q(void 0),Ts=Qe(g.info.isAutoQualityEnabled$,d=>d&&wr.set(void 0)),xu=Qe(g.info.currentQuality$,()=>wr.set(void 0)),Ms=nt([wr,xu],([d,f])=>d!=null?d:f),Is=nt(Nt,d=>d!==at.VideoFormat.MPEG),Eu=nt([ko,zn,Ts,Ms,Is],([d,f,R,J,le])=>{let $e=[];le&&$e.push({value:"auto",displayValue:Ve("auto_quality_option"),selected:R});let Ue=d.filter(Fe=>!(0,ge.isInvariantQuality)(Fe));for(let Fe of Ue){let bt=f[Fe];$e.push({value:Fe,displayValue:`${Fe}${bt?Qd(bt):""}`,selected:R?!1:Fe===J})}return $e}),Lo=Qe(g.info.currentPlaybackRate$),$o=nt([Lo,vs,_s],([d,f,R])=>{let J=R?1:L.controls.playbackRateMin,le=f?1:L.controls.playbackRateMax,$e=L.controls.playbackRateStep,Ue=[];for(let Fe=J;Fe<=le;Fe+=$e)Ue.push({value:Fe,displayValue:Fe===1?Ve("playback_rate_1"):Ve("playback_rate",{multiplier:Fe.toString(10)}),selected:d===Fe});return Ue}),Sr=()=>({displayValue:Ve("subtitles_off"),value:Ni,language:""}),Ns=Q(Sr()),Wi=nt([Ns,He],([d],f)=>{d.value===Ni?f(Sr()):f(d)}),Oo=L.features.subtitles?Qe(g.info.availableTextTracks$):si([]),Cs=Vd(),Au=nt([Oo,Wi],([d,f],R)=>{var $e;let J=[],le=d.find(({id:Ue})=>Ue===f.value);if(le!=null&&le.url){let[,Ue]=($e=Cs.find(le.url))!=null?$e:[];if(Ue){R(Ue);return}fe.download(le.url).then(Fe=>{if(!Fe||fe.isDestroyed())return;let bt=new nu,Hn=le.language;if(Hn){let uc=!!le.isAuto,cc=bt.parse(Fe,Hn);J.push({lang:Hn,subtitles:cc,isAuto:uc,id:le.id})}Cs.add(le.url,J),Se(Wi).value===f.value&&R(J)}).catch(Fe=>{var bt;(bt=_==null?void 0:_.oneStat)==null||bt.logError({errorType:"Subtitles download",fatal:!1}),$==null||$.report(Fe,{errorType:"Subtitles download",fatal:!1})})}R(J)}),wu=nt([Lo,gs,Wi],([d,f,R],J)=>{let Ue;if(g.info.isLive$.getValue()&&f&&R.value!==Ni){let bt=()=>{let Hn=1e3/(3*d);Ue=setTimeout(bt,Hn),J(Date.now())};return bt(),()=>clearTimeout(Ue)}}),Ds=nt([Oo,Wi],([d,f])=>{if(!d.length)return[];let R=[];for(let{language:J,isAuto:le,id:$e}of d){let Ue=J&&Wa(J);J&&Ue&&R.push({displayValue:le?Ve("subtitles_auto",{language:Ue}):Ue,value:$e,selected:(f==null?void 0:f.value)===$e,isAuto:le,language:J})}return R.length?(R.unshift(Ke(Ee({},Sr()),{selected:(f==null?void 0:f.value)===Ni})),R):[]}),Un={available:[],prev:[]},Su=()=>{var f,R;let d=g.experimental.getCurrentTime$.getValue();return(R=(f=d==null?void 0:d())!=null?f:oe==null?void 0:oe.currentTime)!=null?R:0},Tu=nt([ze,Wi,Au,wu],([d,f,R,J])=>{var $e;let le=g.info.isLive$.getValue();if(le&&Un.prev!==R){let Ue=R.find(({id:bt})=>bt===f.value),Fe=Un.prev.find(({id:bt})=>bt===f.value);if(Ue){let bt=Ke(Ee({},Ue),{subtitles:[...($e=Fe==null?void 0:Fe.subtitles)!=null?$e:[],...Ue.subtitles]});Un.available=[bt],Un.prev=R}}if(f&&f.value!==Ni){let Ue=le?Su():d,Fe=le?Un.available:R;return au(Ue,f,Fe,le)}}),Mu=nt([Tu],([d])=>d!=null&&d.texts?d.texts:[]);W.add(Wi.subscribe(d=>{var f,R;if(d.value===Ni)(f=a==null?void 0:a.onSubtitleOff)==null||f.call(a);else{let J=Object.entries(bo).find(([le,$e])=>$e===d.displayValue);(R=a==null?void 0:a.onSubtitleOn)==null||R.call(a,J?J[0]:"",d.value)}}));let Iu=Q(!0),Nu=nt([ft,Ar,ys,Ri],([d,f,R,J])=>{var Fe;let le=(Fe=d==null?void 0:d.end)!=null?Fe:0;if(!J)return le/f;let Ue=-R+J-f;return(le-Ue)/f}),ks=Qe(g.info.availableSources$),Cu=nt([ks],([d])=>Object.keys((d==null?void 0:d[at.VideoFormat.MPEG])||{}).length>0),Du=()=>{var R,J,le;let d=Object.keys(((J=(R=g.info.availableSources$)==null?void 0:R.getValue())==null?void 0:J[at.VideoFormat.MPEG])||{}),f=(0,ge.getHighestQuality)(d)||ge.VideoQuality.Q_144P;return(le=q.sources[at.VideoFormat.MPEG])==null?void 0:le[f]},ku=()=>{var f;let d=Du();if(d)T.log("download video",{url:d}),Rd(d,((f=q==null?void 0:q.meta)==null?void 0:f.title)||"video");else{let R="There is no URL for download video";T.log("download video",{message:R}),O({message:R})}},Lu=()=>{O({message:"toggle muted"});let d=g.info.muted$.getValue();g.info.volume$.getValue()===0&&!d?Ro(Po()):Fn(!d)},$u=()=>{Xe.ui.settingsMenu.visible$.set(!1),T.log("close settings menu")},Ou=(d,f=()=>Promise.resolve())=>Zt(null,null,function*(){Xe.ui.settingsMenu.visible$.set(!0),yield f(),T.log("open settings menu",{wasOpenedByKeyboard:d})}),Po=()=>{var f;let d=Math.max(L.volumeMinRestore,(f=mo())!=null?f:0);return d===0?L.volumeDefault:d},Ro=d=>{let f=d===0?Po():d,R=g.info.muted$.getValue();O({message:`set volume, volume: ${d}, preferredVolume: ${f}`});let J=!o||k.is("ads");R&&d>0&&J&&(R=!1),g.setVolume(d,R),U.setVolume(d)},Fn=d=>{let f=g.info.volume$.getValue();O({message:`set muted, currentVolume: ${f}, mute: ${d}`});let R=k.is("ads");if(g.setMuted(d,R),U.setVolume(d?0:f),!d&&f===0){let J=Po();g.setVolume(J),U.setVolume(J)}},Ls=Q(!1),$s=d=>{T.log("set looped",{isLooped:d}),Ls.set(d),g.setLooped(d)};$s(v);let Pu=()=>{g.prepare()},Ru=()=>{(0,ge.assertNonNullable)(Xe);let d=Se(Xe.playerPhase),f={playerPhase:d,isVideoEnded:!1,action:"none"};if(O({message:"toggle play"}),d==="ads"){f.action="play",T.log("toggle adman play",f),U.togglePlay();return}let R=()=>{var le;O({message:"toggle play, call player.play"}),f.action="play",g.play(),(le=a==null?void 0:a.onPlay)==null||le.call(a)},J=()=>{var le;O({message:"toggle play, call player.pause"}),f.action="pause",g.pause(),(le=a==null?void 0:a.onPause)==null||le.call(a)};g.info.isEnded$.getValue()?(O({message:"toggle play, video ended, seek to 0"}),Y.next(),X.next(gn.SeekAction.REWIND),g.seekTime(0),R()):g.info.playbackState$.getValue()!==at.PlaybackState.PLAYING?R():J(),T.log("toggle play",f)},Os=(d,{byUser:f=!1}={})=>{O({message:`set quality, quality: ${d}`}),T.log("set quality",{quality:d}),f&&ee.next(d),g.setAutoQuality(d==="auto"),ho(),d!=="auto"&&(ja(i,d),wr.set(d),g.setQuality(d))},Ps=d=>{O({message:`set trafficSavingEnabled, value: ${d}`}),T.log("set traffic saving enabled",{trafficSavingEnabled:d});let f=d?at.PredefinedQualityLimits.TRAFFIC_SAVING:at.PredefinedQualityLimits.UNKNOWN;g.setPredefinedQualityLimits(f)},Rs=d=>{O({message:`set highQualityEnabled, value: ${d}`}),T.log("set high quality enabled",{highQualityEnabled:d}),Vu(d?at.PredefinedQualityLimits.HIGH_QUALITY:at.PredefinedQualityLimits.UNKNOWN)},Vu=d=>{g.setPredefinedQualityLimits(d)},Vo=(d,f=!0)=>{T.log("set playback rate",{playbackRate:d}),g.setPlaybackRate(d),L.features.saveRate&&y&&!g.info.isLive$.getValue()&&f&&eu(d)},ju=()=>{let d=Se(ui),f=Se($o),R=f.findIndex(({selected:le})=>le);if(R===f.length-1||!d)return f[R];let J=f[R+1];return Vo(J.value),J},zu=()=>{let d=Se(ui),f=Se($o),R=f.findIndex(({selected:le})=>le);if(R===0||!d)return f[R];let J=f[R-1];return Vo(J.value),J},jo=(d=Ke(Ee({},Sr()),{selected:!1}))=>{T.log("set subtitles",Ee({},d)),d.value!==Ni&&ue.next(d.isAuto?d.value+"_auto":d.value),w.next({enabled:d.value!==Ni,lang:d.language,auto:!!d.isAuto}),Ns.set(d)},Vs=d=>{T.log("toggle subtitles");let f=Se(Wi);(f==null?void 0:f.value)===Ni?js(d):zs()},Uu=(d,f)=>{T.log("change subtitle",{enabled:d}),d?js(!0,f):zs()},js=(d,f)=>{T.log("subtitle on");let R=Se(Ds),J=Se(ye),le=Ae!=null?Ae:J,$e;f&&($e=R.find(Ue=>Ue.value===f)),$e!=null||($e=R.filter(Ue=>Ue.value!==Ni).find(Ue=>Ue.language===le)),jo($e!=null?$e:R[1])},zs=()=>{T.log("subtitle off"),jo(void 0)};W.add(g.info.availableTextTracks$.subscribe(d=>{var R;function f(){let J=[];for(let{language:le,isAuto:$e,id:Ue}of d){let Fe=le&&Wa(le);le&&Fe&&J.push({id:Ue,language:le,title:$e?Ve("subtitles_auto",{language:Fe}):Fe})}return J}(R=a==null?void 0:a.onAvailableSubtitlesChanged)==null||R.call(a,f())}));let Us=(d,f,R=!0)=>{var J;if(O({message:`seek to time, time: ${d}`}),T.log("seek to time",{time:d,action:f,forcePrecise:R}),X.next(f),g.info.isLive$.getValue()){let le=g.info.duration$.getValue(),$e=Math.min(0,le+d);g.seekTime($e,R)}else g.info.isEnded$.getValue()&&(O({message:"seek after ended, call callbacks.onPlay"}),(J=a==null?void 0:a.onPlay)==null||J.call(a)),g.seekTime(d,R)},Fs=(d,f,R=!1)=>{O({message:`seek to percent, percent: ${d}`}),T.log("seek to percent",{percent:d,action:f});let J=Se(Ar)*d;Us(J,f,R)},Fu=d=>{O({message:`seek external, time: ${d}`}),T.log("seek external",{time:d}),X.next(gn.SeekAction.UNKNOWN),g.seekTime(g.info.isLive$.getValue()?-d:d)},Hu=d=>{var J,le;let f=(J=d.max)!=null?J:"none",R=(le=d.min)!=null?le:"none";O({message:`set auto quality limitation. Max: ${f}. Min: ${R}`}),T.log("set auto quality limits",{max:f,min:R}),g.setAutoQualityLimits(d)},Bu=d=>{O({message:`set playback rate to: ${d}`}),T.log("set playback rate external",{playbackRate:d}),g.setPlaybackRate(d)},zo=Q(void 0),Qu=d=>{O({message:`start scrubbing, progress: ${d}`}),T.log("start scrubbing",{progress:d}),M.state.scrubbingInProgress.set(!0),Hs(d)},Hs=d=>{zo.set(d)},Yu=()=>{zo.set(void 0),M.state.scrubbingInProgress.set(!1)},Wu=(d,f=!1)=>{O({message:`complete scrubbing, progress: ${d}`}),T.log("complete scrubbing",{progress:d}),Fs(d,gn.SeekAction.SLIDER,f),Yu()},qu=nt([ze,Ar,zo],([d,f,R],J)=>{J((0,ge.isNonNullable)(R)?R*f:d)}),Gu=d=>{X.next(gn.SeekAction.LIVE),O({message:"live switch to low latency "+d}),T.log("live switch to low latency "+d),g.setLiveLowLatency(d)},Ku=()=>{X.next(gn.SeekAction.LIVE),O({message:"switch to active live"}),T.log("switch to active live"),g.seekTime(0),g.info.playbackState$.getValue()!==at.PlaybackState.PLAYING&&Xe.actions.internal.togglePlay()},Zu=()=>{T.log("skip adman"),U.skip()},Xu=(d=!0)=>{var J;(0,ge.assertNonNullable)(Xe),O({message:`switch from ads to video, callPlay: ${d}`}),T.log("switch from ads to video",{callPlay:d}),S.set("video"),d&&g.play(),o&&Fn(!0);let f=(J=Se(z))==null?void 0:J.muted,R=!g.info.muted$.getValue();f!==void 0&&!R&&Fn(f),z.set(void 0)},Ju=()=>{(0,ge.assertNonNullable)(Xe),O({message:"switch from video to ads"}),T.log("switch from video to ads"),Xe.actions.internal.pause(),We(),S.set("ads")},ec=d=>{(0,ge.assertNonNullable)(Xe);let f=d?"LiveWaitingStart":"thumb";T.log("set live waiting start",{state:d,playerPhase:f}),S.set(f)},tc=d=>{(0,ge.assertNonNullable)(Xe);let f=d?"LiveWaitingRecover":"thumb";T.log("set live waiting recover",{state:d,playerPhase:f}),S.set(f)},ic=d=>{(0,ge.assertNonNullable)(Xe);let f=d?"LiveWaitingRecord":"thumb";T.log("set live waiting record",{state:d,playerPhase:f}),S.set(f)},nc=()=>((0,ge.assertNonNullable)(Xe),T.log("get debug text data"),Od(g,q,Xe,A.getTraceId(),I)),rc=()=>((0,ge.assertNonNullable)(Xe),JSON.stringify(A.getFinishedSpans())),oc=()=>((0,ge.assertNonNullable)(Xe),Pd(g,q,Xe)),ac=()=>oe,Bs=d=>{var R;if((0,ge.assertNonNullable)(Xe),g.info.isEnded$.getValue())return;let f=!d;if(Se(Xe.playerPhase)==="ads"){O({message:`pause ads, internalCall: ${f}`}),T.log("pause ads",{internalCall:f}),U.pause();return}O({message:`pause video, internalCall: ${f}`}),T.log("pause video",{internalCall:f}),f&&((R=a==null?void 0:a.onPause)==null||R.call(a)),g.pause()},Qs=d=>{var R;(0,ge.assertNonNullable)(Xe);let f=!d;if(Se(Xe.playerPhase)==="ads"){O({message:`play ads, internalCall: ${f}`}),T.log("play ads",{internalCall:f}),U.play();return}O({message:`play video, internalCall: ${f}`}),T.log("play video",{internalCall:f}),f&&((R=a==null?void 0:a.onPlay)==null||R.call(a)),g.play()},sc=d=>{(0,ge.assertNonNullable)(Xe);let f=!d;if(Se(Xe.playerPhase)==="ads"){O({message:"player cannot be stopped during ads via external method"});return}O({message:`player will be stopped, internalCall: ${f}`}),h==null||h()},Ys=(d,f)=>{(0,ge.assertNonNullable)(Xe),O({message:`first start, show ads: ${d}, internalCall: ${!f}`}),T.log("first start",{showAds:d,external:f}),d?S.set("ads"):(S.set("video"),f?g.play():Xe.actions.internal.togglePlay())},lc=()=>(O({message:"getting preview thumbs data"}),T.log("get preview thumbs data",Ee({},m)),m),dc=()=>{T.log("destroy store"),W.unsubscribe(),g.destroy(),U.destroy(),_==null||_.destroy(),$==null||$.destroy(),V.unsubscribe(),fe.destroy()},Xe={interfaceLanguage$:ye,isCyrillicRelatedInterface$:qe,initVideo:Ye,videoId:i,playerPhase:k,vsid:G,i18n:Ve,app:b,video:(0,ge.cloneDeep)(x),state:{positionExact$:ze,positionWithScrubbing$:qu,duration$:Ar,playbackState$:ut,playbackStateRealistic$:yt,isPlaying$:gs,isLoaderVisible:je,bufferedProgress$:Nu,isLive$:xi,canChangePlaybackSpeed$:ui,isActiveLive$:vs,isOldestAvailableLive$:_s,isRewindableLive$:gu,isEnded$:Pi,muted$:Yi,volume$:Xi,trafficSavingEnabled$:Ze,highQualityEnabled$:Ge,autoQualityLimitingAvailable$:ht,availableVideoStreams$:vu,availableAudioStreams$:bs,videoStream$:_u,audioStream$:xs,currentQuality$:Ms,isAutoQualityEnabled$:Ts,availableQualities$:Eu,currentPlaybackRate$:Lo,availablePlaybackRates$:$o,currentSubtitle$:Wi,availableTextTracks$:Oo,availableSubtitlesList$:Ds,currentSubtitleCaptions$:Mu,isAutoSubtitleCaptionVisible$:Iu,currentFormat$:Nt,throughputEstimation$:mt,videoBitrate$:vn,videoSize$:_n,errorLog$:ve,crashed$:Te,isAudioAvailable$:mu,isAudioDisabled:!!o,canDownload:L.features.download&&!!s,availableSources$:ks,hasMpegSources$:Cu,looped$:Ls,loadedMetadata$:ae,isAutoQualityAvailable$:Is},ui:M.state,ads:{position:Q(0),duration:Q(0),playbackState:Q("inactive"),canSkip:Q(!1),secondsToWatchBeforeSkip:Q(0),postrollPassed:Q(!1)},webApi:{focusManager:B},actions:{internal:{preload:Pu,firstStart:d=>Ys(d,!1),play:()=>Qs(!1),pause:()=>Bs(!1),togglePlay:Ru,toggleMuted:Lu,openSettingsMenu:Ou,closeSettingsMenu:$u,setVolume:d=>Ro(d),setMuted:d=>Fn(d),startVolumeChanging:M.action.startVolumeChanging,stopVolumeChanging:M.action.stopVolumeChanging,onUserInput:M.action.onUserInput,setSettingsVisibility:M.action.setSettingsVisibility,clearShowByInput:M.action.clearShowByInput,onBackButton:M.action.onBackButton,setVideoStream:yu,setAudioStream:d=>Es(d),setQuality:(d,f)=>Os(d,f),setTrafficSavingEnabled:d=>Ps(d),setHighQualityEnabled:d=>Rs(d),setPlaybackRate:Vo,incrementPlaybackRate:ju,decrementPlaybackRate:zu,setSubtitle:d=>jo(d),toggleSubtitle:()=>Vs(!1),startScrubbing:Qu,progressScrubbing:Hs,completeScrubbing:Wu,switchToActiveLive:Ku,switchFromAdsToVideo:Xu,switchFromVideoToAds:Ju,skipAd:Zu,setLiveWaitingStart:ec,setLiveWaitingRecover:tc,setLiveWaitingRecord:ic,getDebugTextData:nc,getTraceTextData:rc,getDebugPanelData:oc,getVideoElement:ac,seekTime:(d,f,R)=>Us(d,f,R),clearDelayedBufferingCheckTimeout:hu,seekToPercent:Fs,getPreviewThumbsData:lc,downloadVideo:ku,addLanguage:ka,setLanguage:xe,setLooped:$s,checkFullscreenSupport:Be},external:{firstStart:d=>Ys(d,!0),play:()=>Qs(!0),pause:()=>Bs(!0),stop:()=>sc(!0),seekTime:d=>Fu(d),setPlaybackRate:d=>Bu(d),setAutoQualityLimits:d=>Hu(d),setMuted:d=>Fn(d),toggleSubtitle:()=>Vs(!0),changeSubtitle:Uu,setVolume:d=>Ro(d),setLiveLowLatency:Gu,hideControls:()=>M.action.setControlsAvailibility(!1),showControls:()=>M.action.setControlsAvailibility(!0),setQuality:d=>Os(d),setTrafficSavingEnabled:d=>Ps(d),setHighQualityEnabled:d=>Rs(d),changeAudioStream:bu}},callbacks:a,setUiCallbacks:d=>{Z=Ee({},d)},getAdmanWrapper:()=>U,getLogger:()=>j,getPlayer:()=>g,deviceCapabilities:E,destroy:dc};return M.resolveDependency(Xe),Xe};var fu=require("@vkontakte/videoplayer-core/es2015"),fs=require("@vkontakte/videoplayer-core/es2015"),xr=require("@vkontakte/videoplayer-shared/es2015");var xo=class{constructor(e){this.value=e,this.next=null}};var Pn=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new xo(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 cf=pe('<div class="container s-c"><canvas class="s-c"></canvas></div>'),pf={hash:"s-c",code:".container.s-c{display:inline-block;height:16px;width:120px}canvas.s-c{margin-top:2px;transform:scaleY(-1)}"};function yr(t,e){Ie(e,!0),Oe(t,pf);let i=ot(e,"values",19,()=>[]),n=Pe(void 0),r=Pe(null),o=16,s=120,a=60,c=s/a;Ii(()=>{C(n).width=s,C(n).height=o,me(r,C(n).getContext("2d"),!0)});function m(u,h,v,_,y){y===0&&(y=1),u.fillStyle="#fff",u.fillRect(h,v,_,y)}Gt(()=>{let u="";if(C(r)){let h=i()[0];for(let _=1;_<i().length;_++)i()[_]>h&&(h=i()[_]);C(r).clearRect(0,0,s,o);let v=a-1;for(let _=i().length-1;_>=0;_--){let y=v*c,D=h>0?o*(i()[_]/h):0;m(C(r),y,0,c,D),u=D+" "+u,v--}}});var p=cf(),l=H(p);ai(l,u=>me(n,u),()=>C(n)),F(p),te(t,p),Ne()}var Ga=require("@vkontakte/videoplayer-shared/es2015");var ff=(t,e)=>{t.stopPropagation(),Ga.safeStorage.remove(_r),e.set(!1)},mf=pe('<div class="s-6"><div class="s-6">Video id</div> <span> </span></div>'),hf=pe('<div class="s-6"><div class="s-6">VSID</div> <span> </span></div>'),gf=pe('<div class="s-6"><div class="s-6">Provider</div> <span> </span></div>'),vf=pe('<div class="s-6"><div class="s-6">Streams</div> <span> </span></div>'),_f=pe('<div class="s-6"><div class="s-6">Viewport</div> <span> </span></div>'),yf=pe('<div class="s-6"><div class="s-6">Video size</div> <span> </span></div>'),bf=pe('<div class="s-6"><div class="s-6">CDN host</div> <span> </span></div>'),xf=pe('<div class="s-6"><div class="s-6">Volume</div> <span> </span></div>'),Ef=pe('<div class="s-6"><div class="s-6">Position</div> <span> </span></div>'),Af=pe('<div class="s-6"><div class="s-6">Buffer</div> <span> </span></div>'),wf=pe('<div class="s-6"><div class="s-6">Nbuffer</div> <span> </span></div>'),Sf=pe('<div class="s-6"><div class="s-6">Live latency</div> <span> </span></div>'),Tf=pe('<div class="s-6"><div class="s-6">Segment</div> <span> </span></div>'),Mf=pe('<div class="s-6"><div class="s-6">Network</div> <!> <span> </span></div>'),If=pe('<div class="s-6"><div class="s-6">V bitrate</div> <!> <span> </span></div>'),Nf=pe('<div class="container s-6" role="region"><button class="close s-6" title="закрыть">[x]</button> <div class="content s-6"><div class="s-6"><div class="s-6">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-6"><div class="s-6">Dropped</div> <span> </span></div> <!> <!> <div class="s-6"><div class="s-6">FPS</div> <!> <span> </span></div></div></div>'),Cf={hash:"s-6",code:".container.s-6{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-6,button.close.s-6{color:#fff;position:absolute}button.close.s-6{background-color:transparent;border:none;cursor:pointer;outline:0;padding:0;right:5px;top:3px}.content.s-6{padding:5px}.content.s-6>div:where(.s-6)>div:where(.s-6){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function Ka(t,e){Ie(e,!0),Oe(t,Cf);let i=zt(),n=i.ui.debugPanelVisible,r=Pe($t(i.actions.internal.getDebugPanelData())),o=i.actions.internal.getVideoElement(),s=Pe(0),a=Pe(0),c=Pe(0),m=new Pn(60),p=new Pn(60),l=new Pn(60),u=Pe($t([])),h=Pe($t([])),v=Pe($t([])),_=Ut("aria_label_debug_panel");Ii(()=>{Ga.safeStorage.set(_r,"true"),o&&(me(a,o.getVideoPlaybackQuality().droppedVideoFrames,!0),me(s,o.getVideoPlaybackQuality().totalVideoFrames,!0));let Y=window.setInterval(()=>{me(r,i.actions.internal.getDebugPanelData(),!0)},500),X;return o&&(X=window.setInterval(()=>{if(o){me(a,o.getVideoPlaybackQuality().droppedVideoFrames,!0);let ue=o.getVideoPlaybackQuality().totalVideoFrames;me(c,ue-C(s)),me(s,ue,!0),m.push(C(c)),C(r).speed&&p.push(C(r).speed),C(r).bitrate&&l.push(C(r).bitrate),me(u,m.getValuesFromBottom(),!0),me(h,p.getValuesFromBottom(),!0),me(v,l.getValuesFromBottom(),!0)}},1e3)),()=>{clearInterval(Y),X&&clearInterval(X)}});var y=Nf(),D=H(y);D.__click=[ff,n];var N=ne(D,2),I=H(N),b=ne(H(I),2),x=H(b,!0);F(b),F(I);var E=ne(I,2);{var M=Y=>{var X=mf(),ue=ne(H(X),2),De=H(ue,!0);F(ue),F(X),_e(()=>Ce(De,C(r).id)),te(Y,X)};Le(E,Y=>{C(r).id&&Y(M)})}var P=ne(E,2);{var L=Y=>{var X=hf(),ue=ne(H(X),2),De=H(ue,!0);F(ue),F(X),_e(()=>Ce(De,C(r).vsid)),te(Y,X)};Le(P,Y=>{C(r).vsid&&Y(L)})}var A=ne(P,2);{var T=Y=>{var X=gf(),ue=ne(H(X),2),De=H(ue,!0);F(ue),F(X),_e(()=>Ce(De,C(r).provider)),te(Y,X)};Le(A,Y=>{C(r).provider&&Y(T)})}var g=ne(A,2);{var j=Y=>{var X=vf(),ue=ne(H(X),2),De=H(ue);F(ue),F(X),_e(()=>{var w,ee;return Ce(De,`Video: ${(w=C(r).videoCodec||"")!=null?w:""} ${C(r).hdr?"(HDR)":""}
|
|
53
53
|
&
|
|
54
|
-
Audio: ${(Q=V(r).audioCodec||"")!=null?Q:""} ${V(r).audioLanguage?`(${V(r).audioLanguage})`:""}`)}),ve(g,P)};Ye(U,g=>{(V(r).videoCodec||V(r).audioCodec)&&g(j)})}var se=he(U,2);{var R=g=>{var P=Lp(),J=he(ae(P),2),ue=ae(J,!0);oe(J),oe(P),He(()=>rt(ue,V(r).viewport)),ve(g,P)};Ye(se,g=>{V(r).viewport&&g(R)})}var Y=he(se,2);{var F=g=>{var P=Cp(),J=he(ae(P),2),ue=ae(J,!0);oe(J),oe(P),He(()=>rt(ue,V(r).videoSize)),ve(g,P)};Ye(Y,g=>{V(r).videoSize&&g(F)})}var X=he(Y,2);{var xe=g=>{var P=$p(),J=he(ae(P),2),ue=ae(J,!0);oe(J),oe(P),He(()=>rt(ue,V(r).cdn)),ve(g,P)};Ye(X,g=>{V(r).cdn&&g(xe)})}var te=he(X,2);{var pe=g=>{var P=Op(),J=he(ae(P),2),ue=ae(J);oe(J),oe(P),He(()=>{var y;return rt(ue,`${(y=V(r).volume)!=null?y:""} %`)}),ve(g,P)};Ye(te,g=>{V(r).volume&&g(pe)})}var B=he(te,2);{var _e=g=>{var P=Rp(),J=he(ae(P),2),ue=ae(J);oe(J),oe(P),He(y=>rt(ue,`${y!=null?y:""} s`),[()=>V(r).position.toFixed(2)]),ve(g,P)};Ye(B,g=>{V(r).position&&g(_e)})}var q=he(B,2);{var Ue=g=>{var P=Pp(),J=he(ae(P),2),ue=ae(J);oe(J),oe(P),He(y=>rt(ue,`${y!=null?y:""} s`),[()=>V(r).buffer.toFixed(2)]),ve(g,P)};Ye(q,g=>{V(r).buffer&&g(Ue)})}var Ie=he(q,2);{var fe=g=>{var P=Vp(),J=he(ae(P),2),ue=ae(J);oe(J),oe(P),He(y=>rt(ue,`${y!=null?y:""} s`),[()=>V(r).nativeBuffer.toFixed(2)]),ve(g,P)};Ye(Ie,g=>{V(r).nativeBuffer&&g(fe)})}var $=he(Ie,2);{var ye=g=>{var P=jp(),J=he(ae(P),2),ue=ae(J);oe(J),oe(P),He(y=>rt(ue,`${y!=null?y:""} s`),[()=>V(r).liveLatency.toFixed(2)]),ve(g,P)};Ye($,g=>{V(r).liveLatency&&g(ye)})}var de=he($,2);{var me=g=>{var P=Up(),J=he(ae(P),2),ue=ae(J,!0);oe(J),oe(P),He(y=>rt(ue,y),[()=>[{value:V(r).currentVideoSegmentLength,title:"Video:"},{value:V(r).currentAudioSegmentLength,title:"Audio:"}].filter(({value:y})=>y).map(({value:y,title:Q})=>`${Q} ${((y!=null?y:0)/1e3).toFixed(2)} s`).join(" & ")]),ve(g,P)};Ye(de,g=>{(V(r).currentVideoSegmentLength||V(r).currentAudioSegmentLength)&&g(me)})}var Re=he(de,2),Oe=he(ae(Re),2),Ne=ae(Oe);oe(Oe),oe(Re);var w=he(Re,2);{var M=g=>{var P=zp(),J=he(ae(P),2);ar(J,{get values(){return V(h)}});var ue=he(J,2),y=ae(ue);oe(ue),oe(P),He(Q=>rt(y,`${Q!=null?Q:""} Kbps`),[()=>V(r).speed.toFixed(2)]),ve(g,P)};Ye(w,g=>{V(r).speed&&g(M)})}var O=he(w,2);{var W=g=>{var P=Fp(),J=he(ae(P),2);ar(J,{get values(){return V(x)}});var ue=he(J,2),y=ae(ue);oe(ue),oe(P),He(Q=>rt(y,`${Q!=null?Q:""} Kbps`),[()=>V(r).bitrate.toFixed(2)]),ve(g,P)};Ye(O,g=>{V(r).bitrate&&g(W)})}var ee=he(O,2),re=he(ae(ee),2);ar(re,{get values(){return V(c)}});var De=he(re,2),le=ae(De,!0);oe(De),oe(ee),oe(k),oe(b),He(()=>{var g,P;Kt(b,"aria-label",_),rt(E,V(r).version),rt(Ne,`${(g=V(o))!=null?g:""} / ${(P=V(l))!=null?P:""} frames`),rt(le,V(u))}),ve(t,b),ht()}_n(["click"]);Ys();var _d="var(--btn-color, #fff)";var Bp=yi('<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),Yp=yi('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function nn(t,e){var f;mt(e,!0);let i=Te(e,"width",19,()=>"24"),n=Te(e,"height",19,()=>"24"),r=Te(e,"fill",3,_d),a=(f=e.viewBox)!=null?f:`0 0 ${i()} ${n()}`;var l=Yp(),o=ae(l);{var u=d=>{var c=Bp(),h=hn(c),x=ae(h);Rr(x,()=>e.children),oe(h),mn(),ve(d,c)},m=d=>{var c=qo(),h=hn(c);Rr(h,()=>e.children),ve(d,c)};Ye(o,d=>{e.shadow?d(u):d(m,!1)})}oe(l),He(()=>{Kt(l,"aria-label",e.ariaLabel),Kt(l,"aria-hidden",!e.ariaLabel),Kt(l,"width",i()),Kt(l,"height",n()),Kt(l,"viewBox",a),Kt(l,"fill",r()),Vi(l,e.style),Kt(l,"data-testid",e.testId)}),ve(t,l),ht()}var Wp=yi('<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 Ea(t){nn(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var n=Wp();ve(e,n)},$$slots:{default:!0}})}var Gp=$e('<div class="container s-3"><!></div>'),qp={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 sr(t){vt(t,qp);var e=Gp(),i=ae(e);Ea(i,{}),oe(e),ve(t,e)}var bd=t=>`width:${t}px;height:${t}px;`;var Kp=yi('<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 Aa(t,e){mt(e,!0);let i=Ti(()=>bd(e.size));nn(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return V(i)},testId:"play-icon",get shadow(){return e.shadow},children:(n,r)=>{var a=Kp();ve(n,a)},$$slots:{default:!0}}),ht()}var Zp=$e('<div class="playButton s-6" tabindex="0" role="button"><div class="playButtonBackground s-6"></div> <!></div>'),Jp=$e('<div data-testid="unstarted-thumb"><!></div>'),Xp={hash:"s-6",code:".container.s-6{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-6{opacity:0;visibility:hidden}.container.bgCover.s-6{background-size:cover}.playButton.s-6{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-6,.playButtonBackground.s-6{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-6{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-6:hover .playButtonBackground:where(.s-6){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-6 svg{position:relative}"};function wa(t,e){mt(e,!0),vt(t,Xp);let i=Te(e,"iconVisible",3,!0),n=An(),r=Zr("tooltip_play"),a=f=>{var d,c;f.stopPropagation(),(d=e.startVideo)==null||d.call(e),(c=e.onClick)==null||c.call(e,f)};var l=Jp();let o;l.__click=a,l.__contextmenu=function(...f){var d;(d=e.onContextMenu)==null||d.apply(this,f)};var u=ae(l);{var m=f=>{var d=Zp(),c=he(ae(d),2);Aa(c,{get size(){return"48"}}),oe(d),He(()=>Kt(d,"aria-label",r)),ve(f,d)};Ye(u,f=>{i()&&f(m)})}return oe(l),He(f=>{o=xn(l,1,"container s-6",null,o,f),Vi(l,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),ve(t,l),ht({handleClick:a})}_n(["click","contextmenu"]);var ef=$e('<div><div class="video-container s-5"></div></div>'),tf={hash:"s-5",code:".video-container.s-5,.video-wrapper.s-5{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-5{background:var(--black)}.video-container.s-5,.video-wrapper.s-5{z-index:var(--video-container-z-index)}.video-container.s-5{transition:var(--rotate-transition-duration) ease all}"};function Sa(t,e){mt(e,!0),vt(t,tf);let[i,n]=Zi(),r=()=>fi(l,"$playerPhase",i),a=Te(e,"videoContainer",15),{playerPhase:l}=ji();var o=ef();let u;var m=ae(o);Ki(m,f=>a(f),()=>a()),oe(o),He(f=>u=xn(o,1,"video-wrapper s-5",null,u,f),[()=>({hidden:r()!=="video"})]),ve(t,o),ht(),n()}var nf=$e("<!> <!> <!> <!>",1),rf=$e('<div class="player-wrapper s-4"><!></div>'),of={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 Ma(t,e){mt(e,!0),vt(t,of);let[i,n]=Zi(),r=()=>fi(f,"$language$",i),a=()=>fi(d,"$playerPhase",i),l=()=>fi(c,"$crashed",i),o=()=>fi(h,"$debugPanelVisible",i),u=Te(e,"videoContainer",15),m=ji(),f=m.interfaceLanguage$,d=m.playerPhase,c=m.state.crashed$,h=m.ui.debugPanelVisible,x=Qe(void 0);var _=rf(),b=ae(_);Xo(b,r,L=>{var k=nf(),D=hn(k);Sa(D,{get videoContainer(){return u()},set videoContainer(A){u(A)}});var S=he(D,2);let E=Ti(()=>a()!=="thumb"||l()&&e.autoplay);wa(S,{get hidden(){return V(E)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var T=he(S,2);{var N=A=>{sr(A,{})};Ye(T,A=>{l()&&A(N)})}var v=he(T,2);{var z=A=>{xa(A,{})};Ye(v,A=>{o()&&A(z)})}ve(L,k)}),oe(_),Ki(_,L=>ke(x,L),()=>V(x)),ve(t,_),ht(),n()}var sf=$e('<div class="vk-vp-tv-root s-2"><!></div>'),lf={hash:"s-2",code:'.vk-vp-tv-root.s-2{--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 Ia(t,e){mt(e,!0),vt(t,lf);let[i,n]=Zi(),r=()=>fi(te,"$isLive$",i),a=()=>fi(ee,"$availableSubtitlesList$",i),l=Te(e,"sources",7),o=Te(e,"store",7),u=Te(e,"videoConfig",7),m=Te(e,"uiConfig",7),f=Te(e,"title",7),d=Te(e,"thumbUrl",7),c=Te(e,"subtitles",7),h=Te(e,"subtitlesForcedLanguage",7),x=Te(e,"live",7),_=Te(e,"preload",7),b=Te(e,"autoplay",7),L=Te(e,"volume",7,void 0),k=Te(e,"muted",7,void 0),D=Te(e,"fromTime",7),S=Te(e,"canRewindLive",7),E=Te(e,"showAds",7),T=Te(e,"adsSlotId",7,void 0),N=Te(e,"adsParams",7,void 0),v=Te(e,"adsAutoplayParam",7,void 0),z=Te(e,"duration",7,void 0),A=Te(e,"supportLink",7),I=Te(e,"shadowRootContainer",7),U=Te(e,"outerContainerRef",7),j=Te(e,"fullScreenTarget",7,void 0),se=Te(e,"failoverHosts",7,void 0),R=Te(e,"saveRate",7),Y=Te(e,"volumeMultiplier",7),F=Te(e,"showEndScreen",7,!0);Ql(m());let X=An(),xe=o().ui.debugPanelVisible,te=o().state.isLive$,pe=Qe(void 0),B=Qe(!1);o().getAdmanWrapper().init({switchFromAdsToVideo:o().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:o().actions.internal.switchFromVideoToAds,setMuted:o().actions.external.setMuted},o().ads,{vsid:o().vsid}),Zl(o()),Di(()=>{var g,P;(P=(g=u().callbacks)==null?void 0:g.onDomReady)==null||P.call(g)});let _e=(g=!1)=>{ke(B,!0),g?o().actions.external.firstStart(E()):o().actions.internal.firstStart(E())},q=()=>{pd(o().videoId),ha()&&o().actions.internal.setTrafficSavingEnabled(!0);let P=ma(o().videoId);P&&o().actions.internal.setQuality(P)};function Ue(g){var Q,ne,ze;let P=l()||g;P&&o().initVideo({container:V(pe),sources:P,failoverHosts:se(),subtitles:c(),subtitlesForcedLanguage:h(),volumeMultiplier:Y()});let J=Ed.safeStorage.get(or)==="true";xe.set(J),D()>0&&o().actions.external.seekTime(D());let ue=(ne=(Q=L())!=null?Q:Hr())!=null?ne:X.volumeDefault,y=(ze=k())!=null?ze:sd();if(o().actions.external.setVolume(ue),o().actions.external.setMuted(y),o().getAdmanWrapper().setInitialVolume(y?0:ue),q(),X.features.saveRate&&R()){let Ce=cd();Ce&&!r()&&o().actions.internal.setPlaybackRate(Ce)}o().ui.isAutoplay.set(b()),b()&&_e(),_()&&X.features.preload&&o().actions.internal.preload()}bn(()=>{var P,J,ue,y;let g=()=>o().destroy();return((P=x())==null?void 0:P.status)==="upcoming"?(o().actions.internal.setLiveWaitingStart(!0),g):((J=x())==null?void 0:J.status)==="waiting"?(o().actions.internal.setLiveWaitingRecover(!0),g):(((ue=x())==null?void 0:ue.status)==="finished"||((y=x())==null?void 0:y.status)==="postlive")&&!(l()&&(0,xd.areValidLiveRecordSources)(l()))?(o().actions.internal.setLiveWaitingRecord(!0),g):(Ue(),g)});function Ie(){V(B)?o().actions.external.play():_e(!0)}function fe(){o().actions.external.pause()}function $(g){o().actions.external.setMuted(g)}function ye(){o().actions.external.toggleSubtitle()}function de(g,P){o().actions.external.changeSubtitle(g,P)}function me(g){o().actions.external.changeAudioStream(g)}function Re(g){g>=0&&g<=1&&o().actions.external.setVolume(g)}function Oe(g){o().actions.internal.seekTime(g,Ad.SeekAction.UNKNOWN)}function Ne(g){o().actions.external.setPlaybackRate(g)}function w(g){o().actions.external.setAutoQualityLimits(g)}function M(){o().actions.external.setQuality("auto")}function O(g){o().actions.external.setTrafficSavingEnabled(g)}function W(g){o().actions.external.setHighQualityEnabled(g)}let ee=o().state.availableSubtitlesList$;if(X.features.initSubtitles){let g=!1;Di(()=>{var P;if(!g&&a().length){g=!0;let J;if(X.features.userVideoPrefs&&o().videoId){let y=Br(X.userSalt,String(o().videoId));y!=null&&y.subtitleTrackId&&(J=a().find(Q=>Q.value===y.subtitleTrackId))}let ue=(P=h())!=null?P:va();ue&&(J=a().find(y=>y.language===ue)),o().actions.internal.setSubtitle(J)}})}var re=sf(),De=ae(re);Ma(De,{get thumbUrl(){return d()},firstStart:_e,get autoplay(){return b()},get videoContainer(){return V(pe)},set videoContainer(g){ke(pe,g,!0)}}),oe(re),ve(t,re);var le=ht({initVideo:Ue,play:Ie,pause:fe,setMuted:$,toggleSubtitle:ye,changeSubtitle:de,changeAudioStream:me,setVolume:Re,seekTime:Oe,setPlaybackRate:Ne,setAutoQualityLimits:w,setAutoQuality:M,toggleTrafficSaving:O,toggleHighQuality:W,get sources(){return l()},set sources(g){l(g)},get store(){return o()},set store(g){o(g)},get videoConfig(){return u()},set videoConfig(g){u(g)},get uiConfig(){return m()},set uiConfig(g){m(g)},get title(){return f()},set title(g){f(g)},get thumbUrl(){return d()},set thumbUrl(g){d(g)},get subtitles(){return c()},set subtitles(g){c(g)},get subtitlesForcedLanguage(){return h()},set subtitlesForcedLanguage(g){h(g)},get live(){return x()},set live(g){x(g)},get preload(){return _()},set preload(g){_(g)},get autoplay(){return b()},set autoplay(g){b(g)},get volume(){return L()},set volume(g){L(g)},get muted(){return k()},set muted(g){k(g)},get fromTime(){return D()},set fromTime(g){D(g)},get canRewindLive(){return S()},set canRewindLive(g){S(g)},get showAds(){return E()},set showAds(g){E(g)},get adsSlotId(){return T()},set adsSlotId(g){T(g)},get adsParams(){return N()},set adsParams(g){N(g)},get adsAutoplayParam(){return v()},set adsAutoplayParam(g){v(g)},get duration(){return z()},set duration(g){z(g)},get supportLink(){return A()},set supportLink(g){A(g)},get shadowRootContainer(){return I()},set shadowRootContainer(g){I(g)},get outerContainerRef(){return U()},set outerContainerRef(g){U(g)},get fullScreenTarget(){return j()},set fullScreenTarget(g){j(g)},get failoverHosts(){return se()},set failoverHosts(g){se(g)},get saveRate(){return R()},set saveRate(g){R(g)},get volumeMultiplier(){return Y()},set volumeMultiplier(g){Y(g)},get showEndScreen(){return F()},set showEndScreen(g){F(g)}});return n(),le}var df=yi('<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 Na(t,e){let i=Te(e,"isWhite",3,!1),n=Ti(()=>i()?"#fff":"#909499");nn(t,{width:"57",height:"60",get fill(){return V(n)},testId:"stub-icon",children:(r,a)=>{var l=df();mn(9),ve(r,l)},$$slots:{default:!0}})}var uf=$e('<div class="title s-0"> </div>'),cf=$e('<div class="playerStub s-0"><!> <!></div>'),pf={hash:"s-0",code:".playerStub.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%}.title.s-0{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 Da(t,e){vt(t,pf);var i=cf(),n=ae(i);{var r=o=>{var u=uf(),m=ae(u,!0);oe(u),He(()=>rt(m,e.title)),ve(o,u)};Ye(n,o=>{e.title&&o(r)})}var a=he(n,2);{var l=o=>{let u=Ti(()=>!!e.thumbUrl);Na(o,{get isWhite(){return V(u)}})};Ye(a,o=>{(!e.title||!e.thumbUrl)&&o(l)})}oe(i),He(()=>Vi(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),ve(t,i)}var ff=$e('<div class="playerError s-1"><!></div>'),mf={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 ka(t){vt(t,mf);var e=ff(),i=ae(e);sr(i,{}),oe(e),ve(t,e)}var We=require("@vkontakte/videoplayer-core/es2015"),ce=require("@vkontakte/videoplayer-shared/es2015"),Mn=require("@vkontakte/videoplayer-statistics/es2015");var Z=require("@vkontakte/videoplayer-shared/es2015"),lt=require("@vkontakte/videoplayer-shared/es2015");var vf="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Jr=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 lt.Subject,loadStarted$:new lt.Subject,loadEnded$:new lt.Subject,loadError$:new lt.Subject,ready$:new lt.Subject,slotRequested$:new lt.Subject,started$:new lt.Subject,timeRemained$:new lt.Subject,paused$:new lt.Subject,resumed$:new lt.Subject,ended$:new lt.Subject,empty$:new lt.Subject,skipped$:new lt.Subject,clicked$:new lt.Subject,closed$:new lt.Subject,error$:new lt.Subject};this.loadAdman=e=>(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Z.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,n)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Z.now)()]}),i(),this.events.loadEnded$.next()):(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Z.now)()]}),n())};(0,lt.addScript)(vf,e,this.loadTimeout).then(()=>{Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Z.now)()]}),window.AdmanHTML?(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Z.now)()]}),i(),this.events.loadEnded$.next()):(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Z.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Z.now)()]}),n(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,n)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Z.now)()]}),i(),this.events.loadEnded$.next()):(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Z.now)()]}),n())},l=()=>{o=!0,n()},o=!1,u=window.setTimeout(()=>{Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Z.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Z.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,Promise.resolve().then(()=>Zu(wd(),1)).then(()=>{Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(o)],numbers:[(0,Z.now)()]}),!o&&(window.AdmanHTML?(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Z.now)()]}),i(),this.events.loadEnded$.next()):(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Z.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(u),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Z.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var n;Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Z.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?we(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;Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Z.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;Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Z.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(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Z.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;Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Z.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Z.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Z.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;Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Z.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")=>{Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Z.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"),Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Z.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 D,S;if(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Z.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:n,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:o,params:u={},paramsOverride:m={},duration:f,externalApi:d}=e;this.externalApi=d;let c,h=this.playerState&&we(this.playerState.vsid);h&&(this.isVsidOriginal?c=h:c=parseInt(h,36));let{isEmbed:x,immediateOrigin:_}=(0,Z.detectEmbed)(),b=(D=x?_:window.location.href)!=null?D:window.location.href,L=Ee(Ge(Ee(Ge(Ee({},u),{dl:encodeURIComponent(b),autoplay:r?1:0,player_width:i,player_height:n}),c?{request_id:c}:{}),{duration:f}),m);L=Object.fromEntries(Object.entries(L).filter(([E,T])=>(0,Z.isNonNullable)(T)));let k={slot:o,wrapper:a,videoEl:l,videoQuality:n,params:L,browser:{mobile:!1}};try{let E=new window.AdmanHTML;if(E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.setDebug(!1),(S=this.externalApi)!=null&&S.videoGetAds){let T=yield this.safeExternalCall(this.externalApi.videoGetAds,L);T&&(delete k.slot,delete k.params,Object.assign(k,{json:T}))}E.init(k),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(E){Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,Z.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var n,r,a;if(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(n=this.currentAdSection)!=null?n:"","force: "+e],numbers:[(0,Z.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 l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(a=(r=this.actions).switchFromAdsToVideo)==null||a.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Z.now)()]}),this.adsState){this.log({message:"toggle play"});let i=we(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(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Z.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(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Z.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(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Z.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(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Z.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(Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Z.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,a,l,o,u,m,f,d,c;Z.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Z.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),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(o=this.adman)==null||o.onSkipped(void 0),(u=this.adman)==null||u.onClicked(void 0),(m=this.adman)==null||m.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(d=this.adman)==null||d.onError(void 0),(c=this.adman)==null||c.destroy(),this.videoElement&&(0,lt.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return Ft(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 Td=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,Sd=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},gf=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Md=()=>!!gf();var Id=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 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 a of r){let l={startTime:0,endTime:0,texts:[],lang:i},o=a.split(this.oneLineRegExp);for(let u of o)if(!l.startTime&&!l.endTime){let m=new Xr,{startTime:f,endTime:d}=m.parse(u);l.startTime=f,l.endTime=d}else if(u.trim()!==""){let m=new Ca,{texts:f}=m.parse(u);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&n.push(l)}return n}},Xr=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 a=Number(e)*60*60,l=Number(i)*60,o=Number(n),u=+`0.${r}`;return a+l+o+u}},Ca=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let o=0,u=[];for(;o<l.length;){let m=["<",">"].reduce((f,d)=>{let c=l.indexOf(d,o);return f===-1||f>c?c:f},-1);if(m===-1){u.push(l.substring(o));break}u.push(l.substring(o,m)),o=m+1}return u}}),a=new Xr;for(let l of r)a.isTime(l)?i.texts.push({type:"timestamp",value:a.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},Nd=La;var to=require("@vkontakte/videoplayer-shared/es2015"),rn,et,$a=0,Oa=!1,Dd="",kd=(t,e=0,i=0)=>t<e&&t<i,eo=(t,e=0,i=0)=>t>=e&&t<=i,_f=(t,e=0,i=0)=>t>e&&t>i,Ld=(t,e,i,n=!1)=>{var o;let r=(o=i.find(({id:u})=>u===e.value))==null?void 0:o.subtitles;if(n)return r==null?void 0:r.find(({startTime:m,endTime:f})=>eo(t,m,f));let a=t>=$a,l=t<$a;if($a=t,l&&(Oa=!1),(0,to.isNonNullable)(rn)&&eo(t,rn.startTime,rn.endTime)&&Dd===e.value)return rn;if(!(0,to.isNonNullable)(et)&&(r!=null&&r.length)&&!Oa){et=r.find(({startTime:m,endTime:f})=>eo(t,m,f)||a&&kd(t,m,f)),rn=void 0,!(0,to.isNonNullable)(et)&&r[r.length-1].endTime<t&&(Oa=!0);return}else{if(eo(t,et==null?void 0:et.startTime,et==null?void 0:et.endTime))return rn=et,et=void 0,Dd=e.value,rn;(a&&_f(t,et==null?void 0:et.startTime,et==null?void 0:et.endTime)||l&&kd(t,et==null?void 0:et.startTime,et==null?void 0:et.endTime))&&(et=void 0)}};var io={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"},yf={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"},Ra=t=>{var e,i;return(i=(e=io[t])!=null?e:io[yf[t]])!=null?i:void 0};var Cd=require("@vkontakte/videoplayer-shared/es2015"),bI=require("@vkontakte/videoplayer-statistics/es2015"),no=class{constructor(e,i,n,r=new Cd.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 mi="off";var $d=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:a,canDownload:l,callbacks:o,webApi:u,previewThumbsData:m,uiConfig:f,coreConfig:d,player:c,stopPlayer:h,looped:x=!1,statistics:_,saveRate:b,internalsExposure:L,playerId:k,metaConfig:D})=>{var ys;let S=Ge(Ee({},d),{isAudioDisabled:a,live:Ge(Ee({},(ys=d.live)!=null?ys:{}),{isLiveCatchUpMode:!!n})}),E=f,T=ce.TracerFactory.createRootTracer(!1),N=T.createComponentTracer("Store"),v=c||new We.Player(S,T,{playerId:k,onDevNullLog:o==null?void 0:o.onDevNullLog});L==null||L.expose({corePlayer:v});let z=new ce.Logger,A=new Jr(z,{loadTimeout:E.ads.loadTimeout,initTimeout:E.ads.initTimeout,runtimeTimeout:E.ads.runtimeTimeout,useAdmanFromNPM:E.ads.useAdmanFromNPM,volumeMultiplier:E.ads.volumeMultiplier,isVsidOriginal:E.ads.isVsidOriginal}),I=tn.getInstance(),U=u==null?void 0:u.focusManager,j=z.createComponentLog("Store"),se,R,Y={},F=new Ur,X=new ce.Subscription,xe="",te=H(!1),pe=_&&_.oneStat?je(_.oneStat.vsid$):ti(void 0),B=H(Md()),_e=H(!1),q=()=>Td(document,We.clientChecker.device.isIOS),Ue=H(!1),Ie=H([]),fe=(0,ce.merge)(v.events.fatalError$,v.events.managedError$).subscribe(s=>Ie.update(p=>[...p,s])),$=ti(!1,s=>{let p=v.events.fatalError$.subscribe(()=>s(!0));return()=>p.unsubscribe()}),ye=s=>Ft(null,null,function*(){var G;let p=Object.values(ce.InterfaceLanguage).includes(s);if(E.downloadVKLanguages&&(p&&E.updateBuiltinLanguages||!_a(s))){let ie;try{ie=yield(0,ce.loadVKLangPack)(s,Bl,Yl)}catch(Le){(G=_==null?void 0:_.oneStat)==null||G.logError({errorType:"VKLangPack",fatal:!1}),I==null||I.report(Le,{errorType:"VKLangPack",fatal:!1})}ie&&(ga({language:s,pack:ie,fallback:E.defaultLanguage}),de.set(s),me.update(Le=>Le+1))}_a(s)&&de.set(s)}),de=H(t),me=H(0),Re=H(e);ye(t);let Oe=(s,p)=>{let C=we(de);return ya(C,s,p,E.defaultLanguage)},Ne=H("thumb");Ne.subscribe(s=>{s==="ads"&&v.info.playbackState$.getValue()&&O()});let w=(()=>{let s=st([$,Ne],([p,C])=>p?"crashed":C);return Ge(Ee({},s),{is:p=>we(s)===p})})(),M=H(),O=()=>{M.set({muted:v.info.muted$.getValue()})},W=H({width:0,height:0}),ee=null,re=v.info.isBuffering$,De=ti(re.getValue(),s=>{let p=re.subscribe(C=>{C&&ee===null?ee=window.setTimeout(()=>{s(re.getValue()),ee=null},E.loaderDelay):s(C)});return()=>{p.unsubscribe(),ee&&clearTimeout(ee)}});N.log("create store"),j({message:"create store"});let le=s=>{j({message:`init video, config: ${JSON.stringify(s)}`}),ce.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ce.now)()]}),v.initVideo(s),N.log("init video"),s.subtitles&&v.setExternalTextTracks(s.subtitles),se=s,xe=s.subtitlesForcedLanguage||""},g=new ce.Subject,P=new ce.Subject,J=new ce.Subject,ue={actionRewind$:g,actionSeek$:P,inFullscreen$:new ce.Observable(s=>B.subscribe(p=>s.next(p))),actionSetSubtitle$:J},y=new ce.Subject,Q=new ce.Subject,ne={actionSeek$:P,actionSubtitlesSwitched$:y,actionQuality$:Q,playerSize$:new ce.Observable(s=>W.subscribe(p=>s.next(p))),inFullscreen$:new ce.Observable(s=>B.subscribe(p=>s.next(p))),isLoaderVisible$:new ce.Observable(s=>De.subscribe(p=>s.next(p)))};if(_){let{oneStat:s,thinOneStat:p,mediascopePixel:C,statSubscription:G}=_;s&&(G.add(s.attachToUi(ue)),G.add(s.attachToAds(A.events)),s.authorize(r).catch(ie=>{j({message:`onestat auth error ${String(ie)}`})}),C&&C.attachTo(v)),p&&(G.add(p.attachTo(v,A.events)),G.add(p.attachToUi(ne)),G.add(p.attachToAds(A.events)),p.updateContext({isMobile:we(te)}),p.authorize(r))}if(I){let s=new ce.Subscription,p=(C,G)=>s.add(C.subscribe(G));if(p(v.events.managedError$,C=>{I.logIError(C)}),p(v.events.fatalError$,C=>{I.logIError(C,!0)}),_){let{oneStat:C}=_;C&&p(C.experimental.error$,G=>{I.logIError(G)})}I.sentrySubscription.add(s)}let ze=()=>{if(We.clientChecker.device.isIOS&&R)try{Sd(R)}catch(s){j({message:`exitIosSafariFullscreen failed: ${s}`})}};X.add(v.experimental.element$.subscribe(s=>{s&&(R=s,s.classList.add("player-media"))})).add(v.events.ended$.subscribe(()=>{var s;ze(),(s=o==null?void 0:o.onEnded)==null||s.call(o)})).add(v.events.looped$.subscribe(()=>{var s;(s=o==null?void 0:o.onLooped)==null||s.call(o)})).add(v.events.started$.subscribe(()=>Ft(null,null,function*(){var p,C;let s=v.info.muted$.getValue();(p=o==null?void 0:o.onStarted)==null||p.call(o),(C=Y.onStarted)==null||C.call(Y,s)}))).add(v.events.willSeek$.subscribe(({from:s,to:p})=>{var C;(C=o==null?void 0:o.onSeek)==null||C.call(o,s,p)})).add(v.events.autoplaySoundProhibited$.subscribe(()=>{var s;(s=o==null?void 0:o.onAutoplaySoundProhibited)==null||s.call(o)})).add(v.info.position$.subscribe(s=>{var C;let p=v.info.duration$.getValue();isFinite(p)&&p>0&&((C=o==null?void 0:o.onTimeupdate)==null||C.call(o,p,s),A.setPosition(s,p))})).add(v.events.fatalError$.subscribe(s=>{var p;(p=o==null?void 0:o.onCrashed)==null||p.call(o,s?`${s.id}: ${s.message}`:void 0)})).add(v.events.fetcherRecoverableError$.subscribe(s=>{var p;(p=o==null?void 0:o.onRecoverableError)==null||p.call(o,s?`${s.id}: ${s.message}`:void 0)})).add(v.events.loadedMetadata$.subscribe(()=>{Ue.set(!0)})).add(v.info.liveTime$.subscribe(s=>{var p;(p=o==null?void 0:o.onLiveTime)==null||p.call(o,s)})).add(v.info.isStalled$.subscribe(s=>{var p;(p=o==null?void 0:o.onStalledChanged)==null||p.call(o,s)})).add(v.info.isLiveEnded$.subscribe(s=>{var p;return s&&((p=o==null?void 0:o.onLiveEnded)==null?void 0:p.call(o))})).add(A.events.loadStarted$.subscribe(()=>{var s,p;return(p=(s=o==null?void 0:o.adsInfo)==null?void 0:s.onLoadStarted)==null?void 0:p.call(s)})).add(A.events.loadEnded$.subscribe(()=>{var s,p;return(p=(s=o==null?void 0:o.adsInfo)==null?void 0:s.onLoadEnded)==null?void 0:p.call(s)})).add(A.events.loadError$.subscribe(()=>{var s,p;return(p=(s=o==null?void 0:o.adsInfo)==null?void 0:s.onLoadError)==null?void 0:p.call(s)})).add(A.events.init$.subscribe(()=>{var s,p;return(p=(s=o==null?void 0:o.adsInfo)==null?void 0:s.onInit)==null?void 0:p.call(s)})).add(A.events.ready$.subscribe(()=>{var s,p;return(p=(s=o==null?void 0:o.adsInfo)==null?void 0:s.onReady)==null?void 0:p.call(s)})).add(A.events.started$.subscribe(s=>{var p,C;return(C=(p=o==null?void 0:o.adsInfo)==null?void 0:p.onStarted)==null?void 0:C.call(p,s)})).add(A.events.timeRemained$.subscribe(s=>{var p,C;return(C=(p=o==null?void 0:o.adsInfo)==null?void 0:p.onTimeRemained)==null?void 0:C.call(p,s)})).add(A.events.ended$.subscribe(s=>{var p,C;return(C=(p=o==null?void 0:o.adsInfo)==null?void 0:p.onCompleted)==null?void 0:C.call(p,s)})).add(A.events.empty$.subscribe(()=>{var s,p;return(p=(s=o==null?void 0:o.adsInfo)==null?void 0:s.onEmpty)==null?void 0:p.call(s)})).add(A.events.clicked$.subscribe(s=>{var p,C;return(C=(p=o==null?void 0:o.adsInfo)==null?void 0:p.onClicked)==null?void 0:C.call(p,s)})).add(A.events.closed$.subscribe(s=>{var p,C;return(C=(p=o==null?void 0:o.adsInfo)==null?void 0:p.onClosed)==null?void 0:C.call(p,s)})).add(A.events.error$.subscribe(s=>{var p,C;return(C=(p=o==null?void 0:o.adsInfo)==null?void 0:p.onError)==null?void 0:C.call(p,s)})).add(A.events.paused$.subscribe(()=>{var s,p;return(p=(s=o==null?void 0:o.adsInfo)==null?void 0:s.onPaused)==null?void 0:p.call(s)})).add(A.events.resumed$.subscribe(()=>{var s,p;return(p=(s=o==null?void 0:o.adsInfo)==null?void 0:s.onResumed)==null?void 0:p.call(s)}));let Ce=ti(v.info.position$.getValue(),s=>{let p,C,G=()=>{let ie=v.info.playbackState$.getValue(),Le=v.info.isLive$.getValue(),Pe=v.info.duration$.getValue(),Ve=v.info.position$.getValue();if(ie&&[We.PlaybackState.PLAYING,We.PlaybackState.PAUSED].includes(ie)){let ut=Le?Ve-Pe:v.getExactTime();ut!==C&&s(ut),C=ut}p=requestAnimationFrame(G)};return G(),()=>cancelAnimationFrame(p)}),tt=je(v.info.playbackState$),Je=je(v.info.isBuffering$),dt=st([tt,Je],([s,p])=>p?"buffering":s),it=je(v.info.currentBuffer$),bi=je(v.info.isEnded$),ii=je(v.info.isLive$),Zt=E.features.playbackRate?je(v.info.canChangePlaybackSpeed$):ti(!1),xi=je(v.info.liveBufferTime$),Ui=je(v.info.volume$),Ci=je(v.info.muted$),Be=Fr(v.info.predefinedQualityLimitType$.pipe((0,ce.map)(s=>s===We.PredefinedQualityLimits.TRAFFIC_SAVING)),v.info.predefinedQualityLimitType$.getValue()===We.PredefinedQualityLimits.TRAFFIC_SAVING),Fe=Fr(v.info.predefinedQualityLimitType$.pipe((0,ce.map)(s=>s===We.PredefinedQualityLimits.HIGH_QUALITY)),v.info.predefinedQualityLimitType$.getValue()===We.PredefinedQualityLimits.HIGH_QUALITY),ot=je(v.info.autoQualityLimitingAvailable$),po=je(v.info.availableQualities$),Dn=je(v.info.availableQualitiesFps$),yt=je(v.info.chromecastState$),nt=je(v.info.chromecastDeviceName$),zi=je(v.info.currentFormat$),on=je(v.info.throughputEstimation$),jd=je(v.info.videoBitrate$),Ud=je(v.info.intrinsicVideoSize$),ja=je(v.info.duration$),zd=je(v.info.isAudioAvailable$),Fd=()=>{ee&&clearTimeout(ee),ee=null},dr=st([ja,ii],([s,p])=>p?-s:s),Ua=st([tt],([s])=>s===We.PlaybackState.PLAYING),za=je(v.info.atLiveEdge$),Fa=je(v.info.atLiveDurationEdge$),Ha=je(v.info.position$),Hd=st([Ha,ja],([s,p])=>isFinite(s)&&isFinite(p)&&!!p),Qd=st([yt],([s])=>s===We.ChromecastState.CONNECTED),Bd=je(v.info.availableVideoStreams$),Qa=E.features.audioLanguages?je(v.info.availableAudioStreams$):ti([]),Yd=je(v.info.currentVideoStream$),Ba=je(v.info.currentAudioStream$),Wd=s=>{s.language&&dd(s.language),v.setVideoStream(s)},Ya=s=>{v.setAudioStream(s)},Wa=s=>{let p;if(s.length===1&&(p=s.at(0)),p!=null||(p=s.find(G=>"isDefault"in G&&G.isDefault)),E.features.userVideoPrefs&&i){let G=Br(E.userSalt,String(i));if(G!=null&&G.audioTrackId){let ie=s.find(Le=>Le.id===G.audioTrackId);p=ie!=null?ie:p}}let C=ld();return C&&(p!=null||(p=s.find(({language:G})=>C===G))),p!=null||(p=s.at(0)),p},Gd=s=>{N.log("change audio stream",{id:s});let p=v.info.availableAudioStreams$.getValue().find(C=>C.id===s);p&&Ya(p)},Ga=!1;X.add(v.info.availableAudioStreams$.subscribe(s=>{if(!Ga&&s.length){let p=Wa(s);p&&(v.setAudioStream(p),Ga=!0)}})),Qa.subscribe(s=>{var p;(p=o==null?void 0:o.onAvailableAudioStreamsChanged)==null||p.call(o,s.map(({label:C="",id:G="",language:ie=""})=>({label:C,language:ie,id:G})))}),Ba.subscribe(s=>{var p;return s&&((p=o==null?void 0:o.onAudioStreamChanged)==null?void 0:p.call(o,s.id))});let qa=!1;X.add(v.info.availableVideoStreams$.subscribe(s=>{if(!qa&&s.length){let p=Wa(s);p&&(v.setVideoStream(p),qa=!0)}}));let ur=H(void 0),Ka=je(v.info.isAutoQualityEnabled$,s=>s&&ur.set(void 0)),qd=je(v.info.currentQuality$,()=>ur.set(void 0)),Za=st([ur,qd],([s,p])=>s!=null?s:p),Ja=st(zi,s=>s!==We.VideoFormat.MPEG),Kd=st([po,Dn,Ka,Za,Ja],([s,p,C,G,ie])=>{let Le=[];ie&&Le.push({value:"auto",displayValue:Oe("auto_quality_option"),selected:C});let Pe=s.filter(Ve=>!(0,ce.isInvariantQuality)(Ve));for(let Ve of Pe){let ut=p[Ve];Le.push({value:Ve,displayValue:`${Ve}${ut?Id(ut):""}`,selected:C?!1:Ve===G})}return Le}),fo=je(v.info.currentPlaybackRate$),mo=st([fo,za,Fa],([s,p,C])=>{let G=C?1:E.controls.playbackRateMin,ie=p?1:E.controls.playbackRateMax,Le=E.controls.playbackRateStep,Pe=[];for(let Ve=G;Ve<=ie;Ve+=Le)Pe.push({value:Ve,displayValue:Ve===1?Oe("playback_rate_1"):Oe("playback_rate",{multiplier:Ve.toString(10)}),selected:s===Ve});return Pe}),cr=()=>({displayValue:Oe("subtitles_off"),value:mi,language:""}),Xa=H(cr()),$i=st([Xa,me],([s],p)=>{s.value===mi?p(cr()):p(s)}),ho=E.features.subtitles?je(v.info.availableTextTracks$):ti([]),es=td(),Zd=st([ho,$i],([s,p],C)=>{var Le;let G=[],ie=s.find(({id:Pe})=>Pe===p.value);if(ie!=null&&ie.url){let[,Pe]=(Le=es.find(ie.url))!=null?Le:[];if(Pe){C(Pe);return}F.download(ie.url).then(Ve=>{if(!Ve||F.isDestroyed())return;let ut=new Nd,Cn=ie.language;if(Cn){let Uu=!!ie.isAuto,zu=ut.parse(Ve,Cn);G.push({lang:Cn,subtitles:zu,isAuto:Uu,id:ie.id})}es.add(ie.url,G),we($i).value===p.value&&C(G)}).catch(Ve=>{var ut;(ut=_==null?void 0:_.oneStat)==null||ut.logError({errorType:"Subtitles download",fatal:!1}),I==null||I.report(Ve,{errorType:"Subtitles download",fatal:!1})})}C(G)}),Jd=st([fo,Ua,$i],([s,p,C],G)=>{let Pe;if(v.info.isLive$.getValue()&&p&&C.value!==mi){let ut=()=>{let Cn=1e3/(3*s);Pe=setTimeout(ut,Cn),G(Date.now())};return ut(),()=>clearTimeout(Pe)}}),ts=st([ho,$i],([s,p])=>{if(!s.length)return[];let C=[];for(let{language:G,isAuto:ie,id:Le}of s){let Pe=G&&Ra(G);G&&Pe&&C.push({displayValue:ie?Oe("subtitles_auto",{language:Pe}):Pe,value:Le,selected:(p==null?void 0:p.value)===Le,isAuto:ie,language:G})}return C.length?(C.unshift(Ge(Ee({},cr()),{selected:(p==null?void 0:p.value)===mi})),C):[]}),kn={available:[],prev:[]},Xd=()=>{var p,C;let s=v.experimental.getCurrentTime$.getValue();return(C=(p=s==null?void 0:s())!=null?p:R==null?void 0:R.currentTime)!=null?C:0},eu=st([Ce,$i,Zd,Jd],([s,p,C,G])=>{var Le;let ie=v.info.isLive$.getValue();if(ie&&kn.prev!==C){let Pe=C.find(({id:ut})=>ut===p.value),Ve=kn.prev.find(({id:ut})=>ut===p.value);if(Pe){let ut=Ge(Ee({},Pe),{subtitles:[...(Le=Ve==null?void 0:Ve.subtitles)!=null?Le:[],...Pe.subtitles]});kn.available=[ut],kn.prev=C}}if(p&&p.value!==mi){let Pe=ie?Xd():s,Ve=ie?kn.available:C;return Ld(Pe,p,Ve,ie)}}),tu=st([eu],([s])=>s!=null&&s.texts?s.texts:[]);X.add($i.subscribe(s=>{var p,C;if(s.value===mi)(p=o==null?void 0:o.onSubtitleOff)==null||p.call(o);else{let G=Object.entries(io).find(([ie,Le])=>Le===s.displayValue);(C=o==null?void 0:o.onSubtitleOn)==null||C.call(o,G?G[0]:"",s.value)}}));let iu=H(!0),nu=st([it,dr,Ha,xi],([s,p,C,G])=>{var Ve;let ie=(Ve=s==null?void 0:s.end)!=null?Ve:0;if(!G)return ie/p;let Pe=-C+G-p;return(ie-Pe)/p}),is=je(v.info.availableSources$),ru=st([is],([s])=>Object.keys((s==null?void 0:s[We.VideoFormat.MPEG])||{}).length>0),ou=()=>{var C,G,ie;let s=Object.keys(((G=(C=v.info.availableSources$)==null?void 0:C.getValue())==null?void 0:G[We.VideoFormat.MPEG])||{}),p=(0,ce.getHighestQuality)(s)||ce.VideoQuality.Q_144P;return(ie=se.sources[We.VideoFormat.MPEG])==null?void 0:ie[p]},au=()=>{var p;let s=ou();if(s)N.log("download video",{url:s}),ed(s,((p=se==null?void 0:se.meta)==null?void 0:p.title)||"video");else{let C="There is no URL for download video";N.log("download video",{message:C}),j({message:C})}},su=()=>{j({message:"toggle muted"});let s=v.info.muted$.getValue();v.info.volume$.getValue()===0&&!s?go(vo()):Ln(!s)},lu=()=>{Ze.ui.settingsMenu.visible$.set(!1),N.log("close settings menu")},du=(s,p=()=>Promise.resolve())=>Ft(null,null,function*(){Ze.ui.settingsMenu.visible$.set(!0),yield p(),N.log("open settings menu",{wasOpenedByKeyboard:s})}),vo=()=>{var p;let s=Math.max(E.volumeMinRestore,(p=Hr())!=null?p:0);return s===0?E.volumeDefault:s},go=s=>{let p=s===0?vo():s,C=v.info.muted$.getValue();j({message:`set volume, volume: ${s}, preferredVolume: ${p}`});let G=!a||w.is("ads");C&&s>0&&G&&(C=!1),v.setVolume(s,C),A.setVolume(s)},Ln=s=>{let p=v.info.volume$.getValue();j({message:`set muted, currentVolume: ${p}, mute: ${s}`});let C=w.is("ads");if(v.setMuted(s,C),A.setVolume(s?0:p),!s&&p===0){let G=vo();v.setVolume(G),A.setVolume(G)}},ns=H(!1),rs=s=>{N.log("set looped",{isLooped:s}),ns.set(s),v.setLooped(s)};rs(x);let uu=()=>{v.prepare()},cu=()=>{(0,ce.assertNonNullable)(Ze);let s=we(Ze.playerPhase),p={playerPhase:s,isVideoEnded:!1,action:"none"};if(j({message:"toggle play"}),s==="ads"){p.action="play",N.log("toggle adman play",p),A.togglePlay();return}let C=()=>{var ie;j({message:"toggle play, call player.play"}),p.action="play",v.play(),(ie=o==null?void 0:o.onPlay)==null||ie.call(o)},G=()=>{var ie;j({message:"toggle play, call player.pause"}),p.action="pause",v.pause(),(ie=o==null?void 0:o.onPause)==null||ie.call(o)};v.info.isEnded$.getValue()?(j({message:"toggle play, video ended, seek to 0"}),g.next(),P.next(Mn.SeekAction.REWIND),v.seekTime(0),C()):v.info.playbackState$.getValue()!==We.PlaybackState.PLAYING?C():G(),N.log("toggle play",p)},os=(s,{byUser:p=!1}={})=>{j({message:`set quality, quality: ${s}`}),N.log("set quality",{quality:s}),p&&Q.next(s),v.setAutoQuality(s==="auto"),Qr(),s!=="auto"&&(fa(i,s),ur.set(s),v.setQuality(s))},as=s=>{j({message:`set trafficSavingEnabled, value: ${s}`}),N.log("set traffic saving enabled",{trafficSavingEnabled:s});let p=s?We.PredefinedQualityLimits.TRAFFIC_SAVING:We.PredefinedQualityLimits.UNKNOWN;v.setPredefinedQualityLimits(p)},ss=s=>{j({message:`set highQualityEnabled, value: ${s}`}),N.log("set high quality enabled",{highQualityEnabled:s}),pu(s?We.PredefinedQualityLimits.HIGH_QUALITY:We.PredefinedQualityLimits.UNKNOWN)},pu=s=>{v.setPredefinedQualityLimits(s)},_o=(s,p=!0)=>{N.log("set playback rate",{playbackRate:s}),v.setPlaybackRate(s),E.features.saveRate&&b&&!v.info.isLive$.getValue()&&p&&ud(s)},fu=()=>{let s=we(Zt),p=we(mo),C=p.findIndex(({selected:ie})=>ie);if(C===p.length-1||!s)return p[C];let G=p[C+1];return _o(G.value),G},mu=()=>{let s=we(Zt),p=we(mo),C=p.findIndex(({selected:ie})=>ie);if(C===0||!s)return p[C];let G=p[C-1];return _o(G.value),G},yo=(s=Ge(Ee({},cr()),{selected:!1}))=>{N.log("set subtitles",Ee({},s)),s.value!==mi&&J.next(s.isAuto?s.value+"_auto":s.value),y.next({enabled:s.value!==mi,lang:s.language,auto:!!s.isAuto}),Xa.set(s)},ls=s=>{N.log("toggle subtitles");let p=we($i);(p==null?void 0:p.value)===mi?ds(s):us()},hu=(s,p)=>{N.log("change subtitle",{enabled:s}),s?ds(!0,p):us()},ds=(s,p)=>{N.log("subtitle on");let C=we(ts),G=we(de),ie=xe!=null?xe:G,Le;p&&(Le=C.find(Pe=>Pe.value===p)),Le!=null||(Le=C.filter(Pe=>Pe.value!==mi).find(Pe=>Pe.language===ie)),yo(Le!=null?Le:C[1])},us=()=>{N.log("subtitle off"),yo(void 0)};X.add(v.info.availableTextTracks$.subscribe(s=>{var C;function p(){let G=[];for(let{language:ie,isAuto:Le,id:Pe}of s){let Ve=ie&&Ra(ie);ie&&Ve&&G.push({id:Pe,language:ie,title:Le?Oe("subtitles_auto",{language:Ve}):Ve})}return G}(C=o==null?void 0:o.onAvailableSubtitlesChanged)==null||C.call(o,p())}));let cs=H(!0),ps=s=>{cs.set(s)},fs=(s,p,C=!0)=>{var G;if(j({message:`seek to time, time: ${s}`}),N.log("seek to time",{time:s,action:p,forcePrecise:C}),P.next(p),v.info.isLive$.getValue()){let ie=v.info.duration$.getValue(),Le=Math.min(0,ie+s);v.seekTime(Le,C)}else v.info.isEnded$.getValue()&&(j({message:"seek after ended, call callbacks.onPlay"}),(G=o==null?void 0:o.onPlay)==null||G.call(o)),v.seekTime(s,C)},ms=(s,p,C=!1)=>{j({message:`seek to percent, percent: ${s}`}),N.log("seek to percent",{percent:s,action:p});let G=we(dr)*s;fs(G,p,C)},vu=s=>{j({message:`seek external, time: ${s}`}),N.log("seek external",{time:s}),P.next(Mn.SeekAction.UNKNOWN),v.seekTime(v.info.isLive$.getValue()?-s:s)},gu=s=>{var G,ie;let p=(G=s.max)!=null?G:"none",C=(ie=s.min)!=null?ie:"none";j({message:`set auto quality limitation. Max: ${p}. Min: ${C}`}),N.log("set auto quality limits",{max:p,min:C}),v.setAutoQualityLimits(s)},_u=s=>{j({message:`set playback rate to: ${s}`}),N.log("set playback rate external",{playbackRate:s}),v.setPlaybackRate(s)},bo=H(void 0),xo=H(!1),yu=s=>{j({message:`start scrubbing, progress: ${s}`}),N.log("start scrubbing",{progress:s}),xo.set(!0),hs(s)},hs=s=>{bo.set(s)},bu=()=>{bo.set(void 0),xo.set(!1)},xu=(s,p=!1)=>{j({message:`complete scrubbing, progress: ${s}`}),N.log("complete scrubbing",{progress:s}),ms(s,Mn.SeekAction.SLIDER,p),bu()},Eu=st([Ce,dr,bo],([s,p,C],G)=>{G((0,ce.isNonNullable)(C)?C*p:s)}),Eo=H(!1),Au=()=>{Eo.set(!0)},wu=()=>{Eo.set(!1)},Tu=s=>{P.next(Mn.SeekAction.LIVE),j({message:"live switch to low latency "+s}),N.log("live switch to low latency "+s),v.setLiveLowLatency(s)},Su=()=>{P.next(Mn.SeekAction.LIVE),j({message:"switch to active live"}),N.log("switch to active live"),v.seekTime(0),v.info.playbackState$.getValue()!==We.PlaybackState.PLAYING&&Ze.actions.internal.togglePlay()},Mu=()=>{N.log("skip adman"),A.skip()},Iu=(s=!0)=>{var G;(0,ce.assertNonNullable)(Ze),j({message:`switch from ads to video, callPlay: ${s}`}),N.log("switch from ads to video",{callPlay:s}),Ne.set("video"),s&&v.play(),a&&Ln(!0);let p=(G=we(M))==null?void 0:G.muted,C=!v.info.muted$.getValue();p!==void 0&&!C&&Ln(p),M.set(void 0)},Nu=()=>{(0,ce.assertNonNullable)(Ze),j({message:"switch from video to ads"}),N.log("switch from video to ads"),Ze.actions.internal.pause(),ze(),Ne.set("ads")},Du=s=>{(0,ce.assertNonNullable)(Ze);let p=s?"LiveWaitingStart":"thumb";N.log("set live waiting start",{state:s,playerPhase:p}),Ne.set(p)},ku=s=>{(0,ce.assertNonNullable)(Ze);let p=s?"LiveWaitingRecover":"thumb";N.log("set live waiting recover",{state:s,playerPhase:p}),Ne.set(p)},Lu=s=>{(0,ce.assertNonNullable)(Ze);let p=s?"LiveWaitingRecord":"thumb";N.log("set live waiting record",{state:s,playerPhase:p}),Ne.set(p)},Cu=()=>((0,ce.assertNonNullable)(Ze),N.log("get debug text data"),Jl(v,se,Ze,T.getTraceId(),D)),$u=()=>((0,ce.assertNonNullable)(Ze),JSON.stringify(T.getFinishedSpans())),Ou=()=>((0,ce.assertNonNullable)(Ze),Xl(v,se,Ze)),Ru=()=>R,vs=s=>{var C;if((0,ce.assertNonNullable)(Ze),v.info.isEnded$.getValue())return;let p=!s;if(we(Ze.playerPhase)==="ads"){j({message:`pause ads, internalCall: ${p}`}),N.log("pause ads",{internalCall:p}),A.pause();return}j({message:`pause video, internalCall: ${p}`}),N.log("pause video",{internalCall:p}),p&&((C=o==null?void 0:o.onPause)==null||C.call(o)),v.pause()},gs=s=>{var C;(0,ce.assertNonNullable)(Ze);let p=!s;if(we(Ze.playerPhase)==="ads"){j({message:`play ads, internalCall: ${p}`}),N.log("play ads",{internalCall:p}),A.play();return}j({message:`play video, internalCall: ${p}`}),N.log("play video",{internalCall:p}),p&&((C=o==null?void 0:o.onPlay)==null||C.call(o)),v.play()},Pu=s=>{(0,ce.assertNonNullable)(Ze);let p=!s;if(we(Ze.playerPhase)==="ads"){j({message:"player cannot be stopped during ads via external method"});return}j({message:`player will be stopped, internalCall: ${p}`}),h==null||h()},_s=(s,p)=>{(0,ce.assertNonNullable)(Ze),j({message:`first start, show ads: ${s}, internalCall: ${!p}`}),N.log("first start",{showAds:s,external:p}),s?Ne.set("ads"):(Ne.set("video"),p?v.play():Ze.actions.internal.togglePlay())},Vu=()=>(j({message:"getting preview thumbs data"}),N.log("get preview thumbs data",Ee({},m)),m),ju=()=>{N.log("destroy store"),X.unsubscribe(),v.destroy(),A.destroy(),_==null||_.destroy(),I==null||I.destroy(),fe.unsubscribe(),F.destroy()},Ze={interfaceLanguage$:de,isCyrillicRelatedInterface$:Re,initVideo:le,videoId:i,playerPhase:w,vsid:pe,state:{positionExact$:Ce,positionWithScrubbing$:Eu,duration$:dr,playbackState$:tt,playbackStateRealistic$:dt,isPlaying$:Ua,isLoaderVisible:De,bufferedProgress$:nu,isLive$:ii,canChangePlaybackSpeed$:Zt,isActiveLive$:za,isOldestAvailableLive$:Fa,isRewindableLive$:Hd,isEnded$:bi,muted$:Ci,volume$:Ui,trafficSavingEnabled$:Be,highQualityEnabled$:Fe,autoQualityLimitingAvailable$:ot,availableVideoStreams$:Bd,availableAudioStreams$:Qa,videoStream$:Yd,audioStream$:Ba,currentQuality$:Za,isAutoQualityEnabled$:Ka,availableQualities$:Kd,currentPlaybackRate$:fo,availablePlaybackRates$:mo,currentSubtitle$:$i,availableTextTracks$:ho,availableSubtitlesList$:ts,currentSubtitleCaptions$:tu,isAutoSubtitleCaptionVisible$:iu,chromecastState$:yt,chromecastDeviceName$:nt,chromecastConnected$:Qd,currentFormat$:zi,throughputEstimation$:on,videoBitrate$:jd,videoSize$:Ud,errorLog$:Ie,crashed$:$,isAudioAvailable$:zd,isAudioDisabled:!!a,canDownload:E.features.download&&!!l,availableSources$:is,hasMpegSources$:ru,looped$:ns,loadedMetadata$:Ue,isAutoQualityAvailable$:Ja},ui:{t:Oe,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:B,isFullscreenOpenedByKeyboard:_e,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:W,isMobile:te,icon3DVideoVisible:H(!1),scrubbingInProgress:xo,volumeChangingInProgress:Eo,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:cs,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:U},actions:{internal:{preload:uu,firstStart:s=>_s(s,!1),play:()=>gs(!1),pause:()=>vs(!1),togglePlay:cu,toggleMuted:su,openSettingsMenu:du,closeSettingsMenu:lu,setVolume:s=>go(s),setMuted:s=>Ln(s),startVolumeChanging:Au,stopVolumeChanging:wu,setVideoStream:Wd,setAudioStream:s=>Ya(s),setQuality:(s,p)=>os(s,p),setTrafficSavingEnabled:s=>as(s),setHighQualityEnabled:s=>ss(s),setPlaybackRate:_o,incrementPlaybackRate:fu,decrementPlaybackRate:mu,setSubtitle:s=>yo(s),toggleSubtitle:()=>ls(!1),startScrubbing:yu,progressScrubbing:hs,completeScrubbing:xu,switchToActiveLive:Su,switchFromAdsToVideo:Iu,switchFromVideoToAds:Nu,skipAd:Mu,setLiveWaitingStart:Du,setLiveWaitingRecover:ku,setLiveWaitingRecord:Lu,getDebugTextData:Cu,getTraceTextData:$u,getDebugPanelData:Ou,getVideoElement:Ru,seekTime:(s,p,C)=>fs(s,p,C),clearDelayedBufferingCheckTimeout:Fd,seekToPercent:ms,getPreviewThumbsData:Vu,downloadVideo:au,addLanguage:ga,setLanguage:ye,setLooped:rs,checkFullscreenSupport:q},external:{firstStart:s=>_s(s,!0),play:()=>gs(!0),pause:()=>vs(!0),stop:()=>Pu(!0),seekTime:s=>vu(s),setPlaybackRate:s=>_u(s),setAutoQualityLimits:s=>gu(s),setMuted:s=>Ln(s),toggleSubtitle:()=>ls(!0),changeSubtitle:hu,setVolume:s=>go(s),setLiveLowLatency:Tu,hideControls:()=>ps(!1),showControls:()=>ps(!0),setQuality:s=>os(s),setTrafficSavingEnabled:s=>as(s),setHighQualityEnabled:s=>ss(s),changeAudioStream:Gd}},callbacks:o,setUiCallbacks:s=>{Y=Ee({},s)},getAdmanWrapper:()=>A,getLogger:()=>z,getPlayer:()=>v,destroy:ju};return Ze};var uo=require("@vkontakte/videoplayer-shared/es2015"),zt=require("@vkontakte/videoplayer-shared/es2015"),Vd=require("@vkontakte/videoplayer-core/es2015"),In=require("@vkontakte/videoplayer-statistics/es2015");function lr(t,e){var r,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),n={};for(let l of i)n[l]=(a=(r=e[l])!=null?r:t[l])!=null?a:void 0;return n}var so=require("@vkontakte/videoplayer-shared/es2015");var ro=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],r=this.getActiveElement();e.shiftKey&&r===i?(e.preventDefault(),n.focus()):!e.shiftKey&&r===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 oo=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 ro(()=>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 Od=require("@vkontakte/videoplayer-shared/es2015"),Pa=(0,Od.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var bf=Object.defineProperty,Rd=Object.getOwnPropertySymbols,xf=Object.prototype.hasOwnProperty,Ef=Object.prototype.propertyIsEnumerable,Va=(t,e,i)=>e in t?bf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ao=(t,e)=>{for(var i in e||(e={}))xf.call(e,i)&&Va(t,i,e[i]);if(Rd)for(var i of Rd(e))Ef.call(e,i)&&Va(t,i,e[i]);return t},Ke=(t,e,i)=>Va(t,typeof e!="symbol"?e+"":e,i),Af=(t,e,i)=>new Promise((n,r)=>{var a=u=>{try{o(i.next(u))}catch(m){r(m)}},l=u=>{try{o(i.throw(u))}catch(m){r(m)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(a,l);o((i=i.apply(t,e)).next())}),wf={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},Pd=Qe(void 0),lo=class extends Pa{constructor(){super(),Ke(this,"svelteStubComponent"),Ke(this,"svelteRootComponent"),Ke(this,"svelteErrorComponent"),Ke(this,"store"),Ke(this,"statistics"),Ke(this,"sentry"),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 uo.ValueSubject(null)),Ke(this,"createOneStat",(e,i={})=>{if(!this.videoConfig)return;let{albumId:n,statPlace:r,statUserSalt:a,statTrackCode:l,statVKAppId:o,refreshStatAuthToken:u,autoplay:m,isTouch:f,refDomain:d,deviceId:c}=lr(this.videoConfig,i),{unitedVideoId:h,isClip:x=!1}=e;if(this.uiConfig.features.statistics&&h)try{return new In.OneStat({movieId:h,albumId:n,place:r,trackCode:l,vkAppId:o,autoplay:m!=null?m:!1,mobile:f,clip:x,refDomain:d,deviceId:c,isPreviewPlayerView:!1},{refreshAuthToken:u,userSalt:a,config:this.statisticsConfig})}catch(b){console.error(b)}}),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(ka,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let n=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=Mt({title:n,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Pi(Da,l),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:r,refreshStatAuthToken:a}=lr(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new In.ThinOneStat.ThinOneStat({deviceId:n,movieId:l,preload:r,isPreviewPlayerView:!1},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},n){var r;if(!this.videoConfig)return;let{albumId:a,statPlace:l,statAuthToken:o,preload:u,autoplay:m,volume:f,muted:d,fromTime:c,canRewindLive:h,supportLink:x,showAds:_,adsSlotId:b,adsParams:L={},adsAutoplayParam:k,interfaceLanguage:D,isCyrillicRelatedInterface:S,isTouch:E,isAudioDisabled:T,isLiveCatchUpMode:N,fullScreenTarget:v,failoverHosts:z,canDownload:A,callbacks:I,saveRate:U,volumeMultiplier:j,showEndScreen:se,mediascopePixels:R}=lr(this.videoConfig,i),{sources:Y,title:F,thumbUrl:X,unitedVideoId:xe,isClip:te=!1,duration:pe,adsParams:B={},previewThumbsData:_e,subtitles:q,subtitlesForcedLanguage:Ue,live:Ie,adsExternalApi:fe}=e;if(!Y&&!Ie){let w=new Error("empty sources and live");this.fatalError$.next(w),(r=I==null?void 0:I.onCrashed)==null||r.call(I,w.message);return}let $=ao(ao({},L),B),ye={focusManager:this.focusManager},de=this.createOneStat(e,i),me=this.createThinOneStat(e,i),Re;R&&(Re=new In.MediascopePixel({pixels:R})),(de||me)&&(this.statistics=new no(de,me,Re)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new tn(this.uiConfig.sentry,{version:Xi,env:jr},{movieId:xe,albumId:a,place:l,autoplay:m!=null?m:!1,mobile:E,clip:te}),this.sentry=ao(ao({},this.sentry),tn.getInstance()),this.store=$d({player:n,interfaceLanguage:D,isCyrillicRelatedInterface:S,videoId:xe,isLiveCatchUpMode:N,isAudioDisabled:T,statAuthToken:o,callbacks:I,webApi:ye,previewThumbsData:_e,canDownload:A,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,saveRate:U,stopPlayer:()=>this.stop(),statistics:this.statistics,internalsExposure:this.internalsExposure,playerId:this.playerId});let Ne=()=>{var w,M,O,W,ee,re;if(!this.store||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(le=>{var g;return(g=I==null?void 0:I.onCurrentFormatChanged)==null?void 0:g.call(I,le)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(le=>{var g;return(g=I==null?void 0:I.onThroughputEstimationChanged)==null?void 0:g.call(I,le)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(le=>{var g;return(g=I==null?void 0:I.onTrafficSavingEnabledChanged)==null?void 0:g.call(I,le)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(le=>{var g;return(g=I==null?void 0:I.onHighQualityEnabledChanged)==null?void 0:g.call(I,le)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(le=>{var g;return(g=I==null?void 0:I.onAutoQualityEnabledChanged)==null?void 0:g.call(I,!!le)})),this.subscription.add(new zt.Observable(le=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(g=>le.next(g)))}).pipe((0,zt.skip)(1)).subscribe(le=>{var g;return(g=I==null?void 0:I.onCurrentPlaybackRateChanged)==null?void 0:g.call(I,le)})),this.subscription.add(this.store.state.volume$.subscribe(le=>{var g;return(g=I==null?void 0:I.onVolumeChange)==null?void 0:g.call(I,le)})),this.subscription.add(this.store.state.muted$.subscribe(le=>{var g,P,J,ue;if(le)(g=I==null?void 0:I.onMute)==null||g.call(I);else{let y=(J=((P=this.store)==null?void 0:P.state.volume$)&&we(this.store.state.volume$))!=null?J:0;(ue=I==null?void 0:I.onUnmute)==null||ue.call(I,y)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(le=>{var g;return(g=I==null?void 0:I.onVideoBitrateChanged)==null?void 0:g.call(I,le)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(le=>{var g;return(g=I==null?void 0:I.onVSIDChanged)==null?void 0:g.call(I,le)})),ke(Pd,{sources:Y,store:this.store,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:F,thumbUrl:X,subtitles:q,subtitlesForcedLanguage:Ue,live:Ie,preload:u,autoplay:m,muted:d,volume:f,fromTime:c,canRewindLive:h,supportLink:x,showAds:_,adsSlotId:b,adsParams:$,adsAutoplayParam:k,duration:pe,failoverHosts:z,fullScreenTarget:v,saveRate:U,shadowRootContainer:this.shadowRootContainer,outerContainerRef:this.rootContainer,volumeMultiplier:j,showEndScreen:se,adsExternalApi:fe,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let De={target:this.playerContainer,props:V(Pd)};this.svelteRootComponent=Pi(Ia,De),this.isInited||(this.isInited=!0,(O=(M=(w=this.videoConfig)==null?void 0:w.callbacks)==null?void 0:M.onInited)==null||O.call(M)),(W=this.internalsExposure)==null||W.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig}),this.uiConfig.devNullLog&&((re=(ee=this.videoConfig)==null?void 0:ee.callbacks)!=null&&re.onDevNullLog)?so.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):so.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Vd.clientChecker.isInited$.subscribe(w=>{w&&(console.log("UI TV SDK async start"),Ne())}):Ne()}initPlayer(e,i={}){var n,r,a,l,o,u,m,f,d,c,h,x,_,b;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0){let L=new Error("empty videos");this.fatalError$.next(L),(r=(n=e.callbacks)==null?void 0:n.onCrashed)==null||r.call(n,L.message);return}else this.fatalError$.next(null);this.videoConfig=lr(wf,(0,zt.cloneDeepWith)(e,L=>L instanceof Pa?L:void 0)),this.playerId=(0,zt.getPlayerId)(e.playerId),this.uiConfig=Hl((a=i.ui)!=null?a:{}),this.coreConfig=(l=i.core)!=null?l:{},this.statisticsConfig=(o=i.statistics)!=null?o:{},this.metaConfig=i.meta,this.sentry={config:(u=this.uiConfig.sentry)!=null?u:{}},this.uiConfig.features.exposeInternalsToGlobal&&((m=this.internalsExposure)!=null||(this.internalsExposure=new zt.InternalsExposure("ui",this.playerId))),so.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,uo.now)()]}),(d=this.videoConfig).autoplay&&(d.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(c=this.uiConfig.ads.enable)!=null?c:this.videoConfig.showAds,this.videoConfig.adsSlotId=(h=this.uiConfig.ads.slot)!=null?h:this.videoConfig.adsSlotId,(x=this.videoConfig).canRewindLive&&(x.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(_=this.videoConfig.supportLink)!=null?_:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((b=this.videoConfig.videos)!=null&&b[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.focusManager=this._shadowRoot?new oo(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,r;(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(n=this.store)!=null&&n.playerPhase.is("LiveWaitingRecord")||(r=this.svelteRootComponent)==null||r.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 Af(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(),r=e||!n,a=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||a(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let n=!this.isLiveTailPlaying(),r=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};n&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;n||r(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let r=!this.isLiveTailPlaying(),a=()=>{var l,o;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){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&&nr(e)}};var Nn=require("@vkontakte/videoplayer-shared/es2015"),co=require("@vkontakte/videoplayer-core/es2015"),Tf=()=>{window.customElements.define("vk-video-player-tv",lo)};
|
|
54
|
+
Audio: ${(ee=C(r).audioCodec||"")!=null?ee:""} ${C(r).audioLanguage?`(${C(r).audioLanguage})`:""}`)}),te(Y,X)};Le(g,Y=>{(C(r).videoCodec||C(r).audioCodec)&&Y(j)})}var U=ne(g,2);{var $=Y=>{var X=_f(),ue=ne(H(X),2),De=H(ue,!0);F(ue),F(X),_e(()=>Ce(De,C(r).viewport)),te(Y,X)};Le(U,Y=>{C(r).viewport&&Y($)})}var B=ne(U,2);{var O=Y=>{var X=yf(),ue=ne(H(X),2),De=H(ue,!0);F(ue),F(X),_e(()=>Ce(De,C(r).videoSize)),te(Y,X)};Le(B,Y=>{C(r).videoSize&&Y(O)})}var q=ne(B,2);{var oe=Y=>{var X=bf(),ue=ne(H(X),2),De=H(ue,!0);F(ue),F(X),_e(()=>Ce(De,C(r).cdn)),te(Y,X)};Le(q,Y=>{C(r).cdn&&Y(oe)})}var Z=ne(q,2);{var fe=Y=>{var X=xf(),ue=ne(H(X),2),De=H(ue);F(ue),F(X),_e(()=>{var w;return Ce(De,`${(w=C(r).volume)!=null?w:""} %`)}),te(Y,X)};Le(Z,Y=>{C(r).volume&&Y(fe)})}var W=ne(Z,2);{var Ae=Y=>{var X=Ef(),ue=ne(H(X),2),De=H(ue);F(ue),F(X),_e(w=>Ce(De,`${w!=null?w:""} s`),[()=>C(r).position.toFixed(2)]),te(Y,X)};Le(W,Y=>{C(r).position&&Y(Ae)})}var G=ne(W,2);{var Be=Y=>{var X=Af(),ue=ne(H(X),2),De=H(ue);F(ue),F(X),_e(w=>Ce(De,`${w!=null?w:""} s`),[()=>C(r).buffer.toFixed(2)]),te(Y,X)};Le(G,Y=>{C(r).buffer&&Y(Be)})}var ae=ne(G,2);{var ve=Y=>{var X=wf(),ue=ne(H(X),2),De=H(ue);F(ue),F(X),_e(w=>Ce(De,`${w!=null?w:""} s`),[()=>C(r).nativeBuffer.toFixed(2)]),te(Y,X)};Le(ae,Y=>{C(r).nativeBuffer&&Y(ve)})}var V=ne(ae,2);{var Te=Y=>{var X=Sf(),ue=ne(H(X),2),De=H(ue);F(ue),F(X),_e(w=>Ce(De,`${w!=null?w:""} s`),[()=>C(r).liveLatency.toFixed(2)]),te(Y,X)};Le(V,Y=>{C(r).liveLatency&&Y(Te)})}var xe=ne(V,2);{var ye=Y=>{var X=Tf(),ue=ne(H(X),2),De=H(ue,!0);F(ue),F(X),_e(w=>Ce(De,w),[()=>[{value:C(r).currentVideoSegmentLength,title:"Video:"},{value:C(r).currentAudioSegmentLength,title:"Audio:"}].filter(({value:w})=>w).map(({value:w,title:ee})=>`${ee} ${((w!=null?w:0)/1e3).toFixed(2)} s`).join(" & ")]),te(Y,X)};Le(xe,Y=>{(C(r).currentVideoSegmentLength||C(r).currentAudioSegmentLength)&&Y(ye)})}var He=ne(xe,2),qe=ne(H(He),2),Ve=H(qe);F(qe),F(He);var S=ne(He,2);{var k=Y=>{var X=Mf(),ue=ne(H(X),2);yr(ue,{get values(){return C(h)}});var De=ne(ue,2),w=H(De);F(De),F(X),_e(ee=>Ce(w,`${ee!=null?ee:""} Kbps`),[()=>C(r).speed.toFixed(2)]),te(Y,X)};Le(S,Y=>{C(r).speed&&Y(k)})}var z=ne(S,2);{var ie=Y=>{var X=If(),ue=ne(H(X),2);yr(ue,{get values(){return C(v)}});var De=ne(ue,2),w=H(De);F(De),F(X),_e(ee=>Ce(w,`${ee!=null?ee:""} Kbps`),[()=>C(r).bitrate.toFixed(2)]),te(Y,X)};Le(z,Y=>{C(r).bitrate&&Y(ie)})}var se=ne(z,2),de=ne(H(se),2);yr(de,{get values(){return C(u)}});var je=ne(de,2),Ye=H(je,!0);F(je),F(se),F(N),F(y),_e(()=>{var Y,X;it(y,"aria-label",_),Ce(x,C(r).version),Ce(Ve,`${(Y=C(a))!=null?Y:""} / ${(X=C(s))!=null?X:""} frames`),Ce(Ye,C(c))}),te(t,y),Ne()}Kt(["click"]);var Df=pe('<div><div class="video-container s-5"></div></div>'),kf={hash:"s-5",code:".video-container.s-5,.video-wrapper.s-5{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-5{background:var(--black)}.video-container.s-5,.video-wrapper.s-5{z-index:var(--video-container-z-index)}.video-container.s-5{transition:var(--rotate-transition-duration) ease all}"};function Za(t,e){Ie(e,!0),Oe(t,kf);let[i,n]=li(),r=()=>rt(s,"$playerPhase",i),o=ot(e,"videoContainer",15),{playerPhase:s}=zt();var a=Df();let c;var m=H(a);ai(m,p=>o(p),()=>o()),F(a),_e(p=>c=yi(a,1,"video-wrapper s-5",null,c,p),[()=>({hidden:r()!=="video"})]),te(t,a),Ne(),n()}var bi=t=>`width:${t}rem;height:${t}rem;`;var Lf=(t,e)=>{var i;t.preventDefault(),t.stopPropagation(),(i=e.onclick)==null||i.call(e)},$f=pe("<button><!></button>"),Of={hash:"s-f",code:".button.s-f{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-f:focus{background:#fff;color:#000;outline:0}.button.s-f:hover:not(:focus){background-color:#76787a}"};function Rn(t,e){Ie(e,!0),Oe(t,Of);let i=ot(e,"ref",15),n=Re(()=>bi(Number(e.size||"14")*2));var r=$f();r.__click=[Lf,e];var o=H(r);Dn(o,()=>e.children),F(r),ai(r,s=>i(s),()=>i()),_e(()=>{yi(r,1,$i(["button",e.class]),"s-f"),lt(r,C(n)),it(r,"data-row",e.row),it(r,"data-col",e.col),it(r,"data-layer",e.layer)}),te(t,r),Ne()}Kt(["click"]);var Xa=require("@vkontakte/videoplayer-statistics/es2015");var Pf=pe("<div> </div>"),Rf={hash:"s-h",code:".video-time.s-h{color:#fff;line-height:125%}"};function Eo(t,e){Oe(t,Rf);let i=10,n=Re(()=>e.current+(e.duration?` / ${e.duration}`:"")),r=Re(()=>`font-size: ${e.size||i}rem`);var o=Pf(),s=H(o,!0);F(o),_e(()=>{lt(o,C(r)),yi(o,1,$i(["video-time",e.class]),"s-h"),Ce(s,C(n))}),te(t,o)}var Ao=t=>{if(t<0)return"";let e=Math.round(t),i=Math.floor(e/3600),n=e%3600,r=Math.floor(n/60),o=n%60;return String(i).padStart(2,"0")+":"+String(r).padStart(2,"0")+":"+String(o).padStart(2,"0")};var Vf=(t,e,i,n,r)=>{t.preventDefault(),t.stopPropagation(),e(i()*t.offsetX/r().offsetWidth,Xa.SeekAction.SLIDER)},jf=pe('<div class="pointer-time-wrapper s-g"><!></div>'),zf=pe('<div><div class="time-wrapper s-g"><!></div> <div class="current-progress s-g"></div> <div class="pointer s-g"><!></div></div>'),Uf={hash:"s-g",code:".progress-bar.s-g{background:hsla(0,0%,100%,.15);border-radius:2rem;font-size:inherit;height:4rem;position:relative;width:100%}.current-progress.s-g{background-color:#fff;border-radius:inherit;height:100%;left:0;position:absolute;top:0}.pointer.s-g{background:#fff;border-radius:50%;display:none;height:7rem;position:absolute;top:50%;transform:translate(-50%,-50%);width:7rem}.time-wrapper.s-g{position:absolute;right:0;top:0;transform:translateY(calc(-100% - 20rem))}.pointer-time-wrapper.s-g{bottom:0;left:50%;position:absolute;transform:translate(-50%,calc(100% + 5rem))}.progress-bar.s-g:focus{outline:0}.progress-bar.s-g:focus .pointer:where(.s-g){display:block}.button.s-g:hover:not(:focus){background-color:#76787a}"};function Ja(t,e){Ie(e,!0),Oe(t,Uf);let[i,n]=li(),r=()=>rt(v,"$duration$",i),o=()=>rt(I,"$positionPercent$",i),s=()=>rt(h,"$positionExact$",i),a=0,c=1,m=10,{actions:{internal:{seekTime:p,pause:l,play:u}},state:{positionExact$:h,duration$:v}}=zt(),_=m/r(),y=ot(e,"ref",15),D=Pe($t(NaN)),N=Re(()=>isFinite(C(D))),I=nt([h,v],([oe,Z])=>Z>0?oe/Z:0),b=()=>{C(N)||(me(D,o(),!0),l())},x=oe=>{switch(oe.key){case"ArrowLeft":oe.stopPropagation(),b(),me(D,Math.max(a,C(D)-_),!0);break;case"ArrowRight":oe.stopPropagation(),b(),me(D,Math.min(c,C(D)+_),!0);break;case"Enter":oe.preventDefault(),p(Se(v)*C(D),Xa.SeekAction.SLIDER),u(),me(D,NaN,!0);break;case"Escape":C(N)&&(oe.stopPropagation(),u(),me(D,NaN,!0));break}},E=Re(()=>Number(C(N)?C(D):o())),M=Re(()=>`width: ${C(E)*100}%`),P=Re(()=>`left: ${C(E)*100}%`),L=Re(()=>Ao(s())),A=Re(()=>Ao(r())),T=Re(()=>C(N)?Ao(C(D)*r()):0);var g=zf();it(g,"tabindex",0),g.__keydown=x,g.__click=[Vf,p,r,v,y];var j=H(g),U=H(j);Eo(U,{get size(){return"10"},get current(){return C(L)},get duration(){return C(A)}}),F(j);var $=ne(j,2),B=ne($,2),O=H(B);{var q=oe=>{var Z=jf(),fe=H(Z);Eo(fe,{get size(){return"8"},get current(){return C(T)}}),F(Z),te(oe,Z)};Le(O,oe=>{C(T)&&oe(q)})}F(B),F(g),ai(g,oe=>y(oe),()=>y()),_e(()=>{yi(g,1,$i(["progress-bar",e.class]),"s-g"),it(g,"data-row",e.row),it(g,"data-col",e.col),it(g,"data-layer",e.layer),lt($,C(M)),lt(B,C(P))}),te(t,g),Ne(),n()}Kt(["keydown","click"]);var Ff=jt('<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 es(t,e){Ie(e,!0);let i=Re(()=>bi(e.size));di(t,{width:"48",height:"48",fill:"currentColor",get style(){return C(i)},testId:"play-icon",get shadow(){return e.shadow},children:(n,r)=>{var o=Ff();te(n,o)},$$slots:{default:!0}}),Ne()}var cu=require("@vkontakte/videoplayer-core/es2015");var Hf=jt('<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 ts(t,e){Ie(e,!0);let i=Re(()=>bi(e.size));di(t,{width:"48",height:"48",fill:"currentColor",get style(){return C(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(n,r)=>{var o=Hf();te(n,o)},$$slots:{default:!0}}),Ne()}var Bf=jt('<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 is(t,e){Ie(e,!0);let i=Re(()=>bi(e.size));di(t,{width:"36",height:"36",viewBox:"0 0 36 36",fill:"currentColor",get style(){return C(i)},testId:"settings-icon",get shadow(){return e.shadow},children:(n,r)=>{var o=Bf();te(n,o)},$$slots:{default:!0}}),Ne()}var Qf=pe('<div class="wrapper s-9"><div class="container s-9"><div class="top-buttons"></div> <div class="filler s-9"></div> <div class="video-title s-9"> </div> <!> <div class="bottom-buttons s-9"><div class="play-pause-button-container"><!></div> <div class="settings-button-container s-9"><!></div></div></div></div>'),Yf={hash:"s-9",code:".wrapper.s-9{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-9{box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:10rem 48rem 0}.filler.s-9{flex-grow:1}.video-title.s-9{color:#fff;font-size:14rem;line-height:18rem;margin-bottom:20rem;max-width:320rem}.bottom-buttons.s-9{align-items:center;display:flex;justify-content:center;margin:20rem 0;position:relative;width:100%}.settings-button-container.s-9{position:absolute;right:0;top:50%;transform:translateY(-50%)}"};function ns(t,e){Ie(e,!0),Oe(t,Yf);let[i,n]=li(),r=()=>rt(a,"$playbackState$",i),{actions:{internal:{togglePlay:o,setSettingsVisibility:s}},state:{playbackState$:a},video:{title:c}}=zt(),m=Re(()=>r()===cu.PlaybackState.PLAYING),p=Pe(void 0);Gt(()=>{var E;(E=C(p))==null||E.focus()});let l=()=>{s(!0)};var u=Qf(),h=H(u),v=ne(H(h),4),_=H(v,!0);F(v);var y=ne(v,2);Ja(y,{row:2,col:1,layer:"controls"});var D=ne(y,2),N=H(D),I=H(N);Rn(I,{get size(){return"20"},get onclick(){return o},row:3,col:1,layer:"controls",get ref(){return C(p)},set ref(E){me(p,E,!0)},children:(E,M)=>{var P=un(),L=ii(P);{var A=g=>{ts(g,{get size(){return"20"}})},T=g=>{es(g,{get size(){return"20"}})};Le(L,g=>{C(m)?g(A):g(T,!1)})}te(E,P)},$$slots:{default:!0}}),F(N);var b=ne(N,2),x=H(b);Rn(x,{get size(){return"14"},onclick:l,row:3,col:2,layer:"controls",children:(E,M)=>{is(E,{get size(){return"14"}})},$$slots:{default:!0}}),F(b),F(D),F(h),F(u),_e(()=>Ce(_,c)),te(t,u),Ne(),n()}var Wf=(t,e,i)=>{switch(t.key){case"ArrowUp":me(e,Math.max(C(e)-1,0),!0),t.stopPropagation();break;case"ArrowDown":me(e,Math.min(C(e)+1,i.items.length-1),!0),t.stopPropagation();break;case"Enter":if(t.stopPropagation(),i.items[C(e)].disabled)return;i.onAction(C(e));break}},qf=pe('<button class="s-d"><!></button>'),Gf=pe('<div class="list s-d"></div>'),Kf={hash:"s-d",code:".list.s-d{display:flex;flex-direction:column;gap:4rem}.list.s-d:focus{outline:0}.list.s-d button:where(.s-d){background:none;border:none;color:inherit}"};function rs(t,e){Ie(e,!0),Oe(t,Kf);let i=ot(e,"ref",15),n=Pe(0);Ii(()=>{me(n,e.items.findIndex(s=>s.isSelected),!0)});let r=s=>{me(n,s,!0),!e.items[s].disabled&&e.onAction(s)};var o=Gf();it(o,"tabindex",0),o.__keydown=[Wf,n,e],_a(o,23,()=>e.items,s=>s.id,(s,a,c)=>{var m=qf();m.__click=()=>r(C(c));var p=H(m);ya(p,e,"default",{get item(){return C(a)},get focused(){return C(c)===C(n)}},null),F(m),_e(()=>m.disabled=C(a).disabled),te(s,m)}),F(o),ai(o,s=>i(s),()=>i()),_e(()=>{it(o,"data-row",e.row),it(o,"data-col",e.col),it(o,"data-layer",e.layer)}),te(t,o),Ne()}Kt(["keydown","click"]);var Zf=jt('<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 os(t,e){Ie(e,!0);let i=Re(()=>bi(e.size));di(t,{width:"39",height:"36",viewBox:"0 0 39 36",fill:"currentColor",get style(){return C(i)},testId:"back-icon",get shadow(){return e.shadow},children:(n,r)=>{var o=Zf();te(n,o)},$$slots:{default:!0}}),Ne()}var Xf=pe("<div> <!></div>"),Jf={hash:"s-e",code:".quality-list-item.s-e{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-e:hover{background-color:#76787a;color:#e1e3e6}.quality-list-item.selected.s-e{background:var(--vkui--color_background_contrast_secondary_alpha);color:var(--vkui--color_text_subhead)}:focus .quality-list-item.focused.s-e{background-color:#fff;color:#000}.quality-list-item.disabled.s-e{opacity:.5}"};function as(t,e){Ie(e,!0),Oe(t,Jf);var i=Xf(),n=H(i),r=ne(n);{var o=s=>{os(s,{get size(){return"7"}})};Le(r,s=>{e.data.isSelected&&s(o)})}F(i),_e(()=>{var s;yi(i,1,$i(["quality-list-item",e.data.isSelected?"selected":"",e.data.isFocused?"focused":"",e.data.disabled&&"disabled"]),"s-e"),Ce(n,`${(s=e.data.text)!=null?s:""} `)}),te(t,i),Ne()}var em=jt('<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 ss(t,e){Ie(e,!0);let i=Re(()=>bi(e.size));di(t,{width:"42",height:"42",viewBox:"0 0 42 42",fill:"currentColor",get style(){return C(i)},testId:"back-icon",get shadow(){return e.shadow},children:(n,r)=>{var o=em();te(n,o)},$$slots:{default:!0}}),Ne()}var pu=require("@vkontakte/videoplayer-shared/es2015");var tm=pe('<div class="settings-layer s-8"><div class="settings-menu s-8"><div class="settings-title s-8">Качество</div> <div class="menu-list"><div class="close-button-container s-8"><!></div> <!></div></div></div>'),im={hash:"s-8",code:".settings-layer.s-8{bottom:0;left:0}.settings-layer.s-8,.settings-menu.s-8{position:absolute;right:0;top:0}.settings-menu.s-8{background:#000;box-sizing:border-box;height:100%;padding:10rem;width:163rem}.settings-title.s-8{color:#fff;font-size:12rem;line-height:116%;margin-bottom:12rem;margin-left:8rem;margin-top:5rem}.close-button-container.s-8{left:0;position:absolute;top:15rem;transform:translateX(calc(-100% - 7rem))}"};function ls(t,e){Ie(e,!0),Oe(t,im);let[i,n]=li(),r=()=>rt(c,"$availableQualities$",i),o=()=>rt(m,"$currentQuality$",i),{actions:{internal:{setSettingsVisibility:s,setQuality:a}},state:{availableQualities$:c,currentQuality$:m},deviceCapabilities:p}=zt(),l=Pe(void 0),u=Re(()=>r().map(x=>{let{value:E,displayValue:M,selected:P}=x,L={id:E,text:M,isSelected:P,disabled:E!=="auto"&&E!==pu.VideoQuality.INVARIANT&&!p.isCodecSupported(E)};return P&&E==="auto"&&(L.text=`${M} (${o()})`),L}));Gt(()=>{var x;(x=C(l))==null||x.focus()});let h=()=>{s(!1)},v=x=>{let E=C(u)[x];a(E.id)};var _=tm(),y=H(_),D=ne(H(y),2),N=H(D),I=H(N);Rn(I,{get size(){return"14"},onclick:h,row:1,col:1,layer:"settings",children:(x,E)=>{ss(x,{get size(){return"14"}})},$$slots:{default:!0}}),F(N);var b=ne(N,2);rs(b,{row:1,col:2,layer:"settings",get items(){return C(u)},onAction:v,get ref(){return C(l)},set ref(x){me(l,x,!0)},children:kr,$$slots:{default:(x,E)=>{let M=Re(()=>E.item),P=Re(()=>E.focused),L=Re(()=>Ke(Ee({},C(M)),{isFocused:C(P)}));as(x,{get data(){return C(L)}})}}}),F(D),F(y),F(_),te(t,_),Ne(),n()}var nm=pe('<div class="container s-a"><div class="dot s-a"></div> <div class="dot s-a"></div> <div class="dot s-a"></div></div>'),rm={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){Oe(t,rm);let i=ot(e,"style",3,"");var n=nm();_e(()=>lt(n,i())),te(t,n)}var om=pe('<div class="container s-4"><!></div>'),am={hash:"s-4",code:".container.s-4{bottom:0;color:green;font-size:33px;left:0;position:absolute;right:0;top:0}"};function ds(t){Oe(t,am);var e=om(),i=H(e);br(i,{}),F(e),te(t,e)}var wo=require("@vkontakte/videoplayer-shared/es2015"),sm=pe('<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),lm=pe('<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),dm=pe('<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),um=pe('<div class="timer__cell cell s-b"><span class="cell__value s-b"> </span> <span class="cell__unit s-b"> </span></div>'),cm=pe('<div class="timer__container s-b"><!> <!> <!> <!></div>'),pm={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 us(t,e){Ie(e,!0),Oe(t,pm);let i=Pe(""),n=Pe(""),r=Pe(""),o=Pe(""),s,a=32,c=a/2,m=M=>String(M).padStart(2,"0"),p=M=>Math.max(M.length,1),l=M=>`${(e.isSmallSize?c:a)*p(M)}px`,u=M=>{let P=Math.floor(M/86400);P&&(M-=P*86400,me(i,m(P),!0));let L=Math.floor(M/3600);me(n,m(L),!0);let A=Math.floor(M/60)%60;me(r,m(A),!0);let T=M%60;me(o,m(T),!0)},h=()=>{let M=Math.floor(Date.now()/1e3),P=e.startTime-M;u(P),P>=1?s=(0,wo.getWindow)().requestAnimationFrame(h):e.onTimerOver()};Ii(()=>{s=(0,wo.getWindow)().requestAnimationFrame(h)}),vd(()=>{(0,wo.getWindow)().cancelAnimationFrame(s)});var v=cm(),_=H(v);{var y=M=>{var P=sm(),L=ii(P);let A;var T=H(L),g=H(T,!0);F(T);var j=ne(T,2),U=H(j,!0);F(j),F(L);var $=ne(L,2),B=H($,!0);F($),_e((O,q,oe)=>{A=lt(L,"",A,{width:O}),Ce(g,C(i)),Ce(U,q),Ce(B,oe)},[()=>l(C(i)),()=>Ut("waiting_live_day_value"),()=>Ut("waiting_live_colon")]),te(M,P)};Le(_,M=>{C(i)&&M(y)})}var D=ne(_,2);{var N=M=>{var P=lm(),L=ii(P);let A;var T=H(L),g=H(T,!0);F(T);var j=ne(T,2),U=H(j,!0);F(j),F(L);var $=ne(L,2),B=H($,!0);F($),_e((O,q,oe)=>{A=lt(L,"",A,{width:O}),Ce(g,C(n)),Ce(U,q),Ce(B,oe)},[()=>l(C(n)),()=>Ut("waiting_live_hour_value"),()=>Ut("waiting_live_colon")]),te(M,P)};Le(D,M=>{C(n)&&M(N)})}var I=ne(D,2);{var b=M=>{var P=dm(),L=ii(P);let A;var T=H(L),g=H(T,!0);F(T);var j=ne(T,2),U=H(j,!0);F(j),F(L);var $=ne(L,2),B=H($,!0);F($),_e((O,q,oe)=>{A=lt(L,"",A,{width:O}),Ce(g,C(r)),Ce(U,q),Ce(B,oe)},[()=>l(C(r)),()=>Ut("waiting_live_minute_value"),()=>Ut("waiting_live_colon")]),te(M,P)};Le(I,M=>{C(r)&&M(b)})}var x=ne(I,2);{var E=M=>{var P=um();let L;var A=H(P),T=H(A,!0);F(A);var g=ne(A,2),j=H(g,!0);F(g),F(P),_e((U,$)=>{L=lt(P,"",L,{width:U}),Ce(T,C(o)),Ce(j,$)},[()=>l(C(o)),()=>Ut("waiting_live_second_value")]),te(M,P)};Le(x,M=>{C(o)&&M(E)})}F(v),te(t,v),Ne()}var fm=pe('<div class="waiting s-7"><span class="waiting__title medium s-7"> </span></div>'),mm=pe('<div class="upcoming-timer timer s-7"><span class="timer__title medium s-7"> </span> <!></div>'),hm=pe('<div class="waiting-container s-7"><!></div>'),gm={hash:"s-7",code:'.waiting-container.s-7{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;color:#fff;white-space:nowrap}.waiting-container.s-7,.waiting-container.s-7:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-7:before{backdrop-filter:blur(5em);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-7{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-7{font-size:7em;font-weight:600;line-height:1.2}.upcoming-timer.s-7{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-7{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-7{display:inline-block;font-size:6.6666em;font-weight:600;line-height:1.2;margin-bottom:.7em;vertical-align:middle}.medium.s-7{font-size:6em}'};function cs(t,e){Ie(e,!0),Oe(t,gm);let{video:{thumbUrl:i,live:n}}=zt(),r=(n==null?void 0:n.startTime)||0,o=Re(()=>r<Math.floor(Date.now()/1e3));var s=hm(),a=H(s);{var c=p=>{var l=fm(),u=H(l),h=H(u,!0);F(u),F(l),_e(v=>Ce(h,v),[()=>Ut("waiting_live_upcoming_title")]),te(p,l)},m=p=>{var l=mm(),u=H(l),h=H(u,!0);F(u);var v=ne(u,2);let _=Re(()=>r||0);us(v,{get startTime(){return C(_)},onTimerOver:()=>me(o,!0)}),F(l),_e(y=>Ce(h,y),[()=>Ut("waiting_live_timer_title")]),te(p,l)};Le(a,p=>{C(o)?p(c):p(m,!1)})}F(s),_e(()=>lt(s,`background-image: url(${i})`)),te(t,s),Ne()}var vm=pe('<div class="waiting-container s-3"><div class="waiting-caption s-3"><!> <p class="waiting-title s-3"> </p></div></div>'),_m={hash:"s-3",code:'.waiting-container.s-3{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-3,.waiting-container.s-3:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-3:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-3{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-3{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function So(t,e){Ie(e,!0),Oe(t,_m);let i=ot(e,"thumbUrl",3,""),n={recover:Ut("waiting_live_recover_title"),record:Ut("waiting_record_title")},r=Re(()=>n[e.kind]||"");var o=vm();o.__contextmenu=function(...p){var l;(l=e.onContextMenu)==null||l.apply(this,p)},o.__click=function(...p){var l;(l=e.onClick)==null||l.apply(this,p)};var s=H(o),a=H(s);br(a,{style:"position: static; transform: translate(0, 0)"});var c=ne(a,2),m=H(c,!0);F(c),F(s),F(o),_e(()=>{lt(o,`background-image: url('${i()}')`),Ce(m,C(r))}),te(t,o),Ne()}Kt(["contextmenu","click"]);var ym=pe("<!> <!> <!> <!> <!> <!> <!> <!> <!>",1);function ps(t,e){Ie(e,!0);let[i,n]=li(),r=()=>rt(h,"$language$",i),o=()=>rt(D,"$isShowLoader",i),s=()=>rt(y,"$controlsVisible",i),a=()=>rt(N,"$settingsVisible",i),c=()=>rt(I,"$playerPhase",i),m=()=>rt(v,"$crashed",i),p=()=>rt(_,"$debugPanelVisible",i),l=ot(e,"videoContainer",15),u=zt(),h=u.interfaceLanguage$,v=u.state.crashed$,_=u.ui.debugPanelVisible,{ui:{controlsVisible:y,isShowLoader:D,settingsVisible:N},playerPhase:I,video:{thumbUrl:b}}=u;var x=un(),E=ii(x);ha(E,r,M=>{var P=ym(),L=ii(P);Za(L,{get videoContainer(){return l()},set videoContainer(ae){l(ae)}});var A=ne(L,2);{var T=ae=>{ds(ae,{})};Le(A,ae=>{o()&&ae(T)})}var g=ne(A,2);{var j=ae=>{ns(ae,{})};Le(g,ae=>{s()&&ae(j)})}var U=ne(g,2);{var $=ae=>{ls(ae,{})};Le(U,ae=>{a()&&ae($)})}var B=ne(U,2);{var O=ae=>{cs(ae,{})};Le(B,ae=>{c()==="LiveWaitingStart"&&ae(O)})}var q=ne(B,2);{var oe=ae=>{So(ae,{kind:"recover",get thumbUrl(){return b}})};Le(q,ae=>{c()==="LiveWaitingRecover"&&ae(oe)})}var Z=ne(q,2);{var fe=ae=>{So(ae,{kind:"record",get thumbUrl(){return b}})};Le(Z,ae=>{c()==="LiveWaitingRecord"&&ae(fe)})}var W=ne(Z,2);{var Ae=ae=>{gr(ae,{})};Le(W,ae=>{m()&&ae(Ae)})}var G=ne(W,2);{var Be=ae=>{Ka(ae,{})};Le(G,ae=>{p()&&ae(Be)})}te(M,P)}),te(t,x),Ne(),n()}var To=require("@vkontakte/videoplayer-shared/es2015"),Mo=class{constructor(e){this.onKeyDown=e=>{let i=(0,To.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)}moveFocusVertical(e,i,n){let r=(0,To.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,To.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}};var bm=(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()))},xm=(t,e)=>{e.store.actions.internal.onUserInput()},Em=pe('<div class="player-wrapper s-1" tabindex="0"><!></div>'),Am={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 ms(t,e){Ie(e,!0),Oe(t,Am);let[i,n]=li(),r=()=>rt(h,"$isLive$",i),o=()=>rt(N,"$availableSubtitlesList$",i),s=()=>rt(x,"$settingsVisible",i),a=()=>rt(b,"$controlsVisible",i),c=ot(e,"volume",3,void 0),m=ot(e,"muted",3,void 0),p=ot(e,"failoverHosts",3,void 0);_d(e.uiConfig);let l=to(),u=e.store.ui.debugPanelVisible,h=e.store.state.isLive$,v=Pe(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}),$d(e.store),Gt(()=>{var j,U;(U=(j=e.videoConfig.callbacks)==null?void 0:j.onDomReady)==null||U.call(j)});let _=(j=!1)=>{j?e.store.actions.external.firstStart(e.showAds):e.store.actions.internal.firstStart(e.showAds)},y=()=>{iu(e.store.videoId),Ua()&&e.store.actions.internal.setTrafficSavingEnabled(!0),e.store.deviceCapabilities.maxQuality!==fs.VideoQuality.INVARIANT&&e.store.getPlayer().setAutoQualityLimits({max:e.store.deviceCapabilities.maxQuality});let U=za(e.store.videoId);if(U&&U!==fs.VideoQuality.INVARIANT&&e.store.deviceCapabilities.isCodecSupported(U)){e.store.actions.internal.setQuality(U);return}};function D(j){var q,oe,Z;let U=e.sources||j;U&&e.store.initVideo({container:C(v),sources:U,failoverHosts:p(),subtitles:e.subtitles,subtitlesForcedLanguage:e.subtitlesForcedLanguage,volumeMultiplier:e.volumeMultiplier});let $=xr.safeStorage.get(_r)==="true";u.set($),e.fromTime>0&&e.store.actions.external.seekTime(e.fromTime);let B=(oe=(q=c())!=null?q:mo())!=null?oe:l.volumeDefault,O=(Z=m())!=null?Z:Zd();if(e.store.actions.external.setVolume(B),e.store.actions.external.setMuted(O),e.store.getAdmanWrapper().setInitialVolume(O?0:B),y(),l.features.saveRate&&e.saveRate){let fe=tu();fe&&!r()&&e.store.actions.internal.setPlaybackRate(fe)}e.store.ui.isAutoplay.set(e.autoplay),e.autoplay&&_(),e.preload&&l.features.preload&&e.store.actions.internal.preload()}Ii(()=>{var U,$,B,O;let j=()=>e.store.destroy();return((U=e.live)==null?void 0:U.status)==="upcoming"?(e.store.actions.internal.setLiveWaitingStart(!0),j):(($=e.live)==null?void 0:$.status)==="waiting"?(e.store.actions.internal.setLiveWaitingRecover(!0),j):(((B=e.live)==null?void 0:B.status)==="finished"||((O=e.live)==null?void 0:O.status)==="postlive")&&!(e.sources&&(0,fu.areValidLiveRecordSources)(e.sources))?(e.store.actions.internal.setLiveWaitingRecord(!0),j):(D(),j)});let N=e.store.state.availableSubtitlesList$;if(l.features.initSubtitles){let j=!1;Gt(()=>{var U;if(!j&&o().length){j=!0;let $;if(l.features.userVideoPrefs&&e.store.videoId){let O=go(l.userSalt,String(e.store.videoId));O!=null&&O.subtitleTrackId&&($=o().find(q=>q.value===O.subtitleTrackId))}let B=(U=e.subtitlesForcedLanguage)!=null?U:Fa();B&&($=o().find(O=>O.language===B)),e.store.actions.internal.setSubtitle($)}})}let I=(0,xr.getWindow)().innerWidth/640;(0,xr.getWindow)().document.documentElement.style.fontSize=`${I}px`;let{controlsVisible:b,settingsVisible:x}=e.store.ui,E=j=>{switch(j.key){case"Escape":e.store.actions.internal.onBackButton()||e.store.app.destroy();return;case"ArrowUp":case"ArrowDown":L.onKeyDown(j)||(a()?e.store.actions.internal.clearShowByInput():e.store.actions.internal.onUserInput());break;default:L.onKeyDown(j)}},M=j=>{["ArrowUp","ArrowDown"].includes(j.key)||e.store.actions.internal.onUserInput()},P,L;Gt(()=>(L=new Mo(P),()=>{L.destroy()})),e.store.ui.controlsVisible.subscribe(j=>{j||P.focus()});var A=Em();A.__click=[bm,s,x,a,b,e],A.__keydown=E,A.__mousemove=[xm,e];var T=H(A);ps(T,{get videoContainer(){return C(v)},set videoContainer(j){me(v,j,!0)}}),F(A),ai(A,j=>P=j,()=>P),_e(()=>lt(A,`font-size: ${I}px;`)),ca("keydown",A,M,!0),te(t,A);var g=Ne({initVideo:D});return n(),g}Kt(["click","keydown","mousemove"]);var Er=require("@vkontakte/videoplayer-shared/es2015"),Io=class{constructor(e){this.hasFakeState=!1;this.onPopState=({state:e})=>{let i=this.store.actions.internal.onBackButton(),n=(0,Er.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,Er.getWindow)();i.history.pushState(i.history.state,""),this.hasFakeState=!0,i.addEventListener("popstate",this.onPopState)}destroy(){(0,Er.getWindow)().removeEventListener("popstate",this.onPopState),this.hasFakeState&&(0,Er.getWindow)().history.back()}};var Oi=require("@vkontakte/videoplayer-shared/es2015"),No=class{constructor(){this.maxQuality=(0,Oi.videoHeightToQuality)((0,Oi.getWindow)().document.body.offsetHeight*(0,Oi.getWindow)().devicePixelRatio)||Oi.VideoQuality.INVARIANT}isCodecSupported(e){return this.maxQuality===Oi.VideoQuality.INVARIANT?!0:(0,Oi.isLowerOrEqual)(e,this.maxQuality)}};var wm={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:pt.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,isTouch:!1,isAudioDisabled:!1,tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showNextPrevButtons:!1},Co=class{constructor(e,i={},n=(0,pt.getWindow)().document.body){this.fatalError$=new pt.ValueSubject(null);this.subscription=new pt.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:p,deviceId:l}=this.videoConfig,{unitedVideoId:u,isClip:h=!1}=e;if(this.uiConfig.features.statistics&&u)try{return new Vn.OneStat({movieId:u,albumId:i,place:n,trackCode:o,vkAppId:s,autoplay:c!=null?c:!1,mobile:m,clip:h,refDomain:p,deviceId:l,isPreviewPlayerView:!1},{refreshAuthToken:a,userSalt:r,config:this.statisticsConfig})}catch(_){console.error(_)}};var G,Be,ae,ve,V,Te,xe,ye,He,qe,Ve,S,k,z,ie,se;if((0,pt.getWindow)()!==top)throw new Error("Must run in top frame");if(this.logger=new pt.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.parentNode=n,this.parentNode.className="vk-vp-tv-parentNode",this.fatalError$.subscribe(de=>{this.unmountComponent(this.svelteErrorComponent),de&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=cn(Da,{target:this.parentNode}))}),!Array.isArray(e.videos)||e.videos.length===0){let de=new Error("empty videos");this.fatalError$.next(de),(Be=(G=e.callbacks)==null?void 0:G.onCrashed)==null||Be.call(G,de.message);return}else this.fatalError$.next(null);this.uiConfig=Na((ae=i.ui)!=null?ae:{}),this.videoConfig=wd(wm,(0,pt.cloneDeepWith)(e)),(ve=this.videoConfig).autoplay&&(ve.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(V=this.uiConfig.ads.enable)!=null?V:this.videoConfig.showAds,this.videoConfig.adsSlotId=(Te=this.uiConfig.ads.slot)!=null?Te:this.videoConfig.adsSlotId,(xe=this.videoConfig).canRewindLive&&(xe.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(ye=this.videoConfig.supportLink)!=null?ye:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,pt.devNull.push(vr,{key:"videoplayer_embed",strings:["new","player_init_player"],numbers:[(0,pt.now)()]}),this.statisticsConfig=(He=i.statistics)!=null?He:{},this.playerId=(0,pt.getPlayerId)(e.playerId),this.uiConfig=Na((qe=i.ui)!=null?qe:{}),this.coreConfig=(Ve=i.core)!=null?Ve:{},this.metaConfig=i.meta;let r=this.videoConfig.videos[0],{albumId:o,statPlace:s,statAuthToken:a,preload:c,autoplay:m,volume:p,muted:l,fromTime:u,supportLink:h,showAds:v,interfaceLanguage:_,isCyrillicRelatedInterface:y,isTouch:D,isAudioDisabled:N,isLiveCatchUpMode:I,failoverHosts:b,canDownload:x,callbacks:E,saveRate:M,volumeMultiplier:P,mediascopePixels:L}=this.videoConfig,{sources:A,unitedVideoId:T,isClip:g=!1,previewThumbsData:j,subtitles:U,subtitlesForcedLanguage:$,live:B,adsExternalApi:O}=r;if(!A&&!B){let de=new Error("empty sources and live");this.fatalError$.next(de),(S=E==null?void 0:E.onCrashed)==null||S.call(E,de.message);return}let q=this.createOneStat(r),oe=this.createThinOneStat(r),Z;L&&(Z=new Vn.MediascopePixel({pixels:L})),(q||oe)&&(this.statistics=new no(q,oe,Z)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new mn(this.uiConfig.sentry,{version:Ji,env:Ir},{movieId:T,albumId:o,place:s,autoplay:m!=null?m:!1,mobile:D,clip:g}),this.sentry=Ee({config:(k=this.uiConfig.sentry)!=null?k:{}},mn.getInstance()),this.store=uu({interfaceLanguage:_,isCyrillicRelatedInterface:y,videoId:T,isLiveCatchUpMode:I,isAudioDisabled:N,statAuthToken:a,callbacks:E,previewThumbsData:j,canDownload:x,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,saveRate:M,internalsExposure:this.internalsExposure,statistics:this.statistics,playerId:this.playerId,app:this,video:r,deviceCapabilities:new No});let W={sources:A,store:this.store,videoConfig:this.videoConfig,uiConfig:this.uiConfig,subtitles:U,subtitlesForcedLanguage:$,live:B,preload:c,autoplay:m,muted:l,volume:p,fromTime:u,supportLink:h,showAds:v,failoverHosts:b,saveRate:M,volumeMultiplier:P,adsExternalApi:O,getVideoDeeplink:this.videoConfig.getVideoDeeplink},Ae={target:this.parentNode,props:W};this.svelteRootComponent=cn(ms,Ae),(z=this.internalsExposure)==null||z.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((se=(ie=this.videoConfig)==null?void 0:ie.callbacks)!=null&&se.onDevNullLog)?pt.devNull.subscribe(vr,this.videoConfig.callbacks.onDevNullLog):pt.devNull.destroy(vr),this.backButtonService=new Io(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(),pt.devNull.destroy(vr),(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,pt.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 Vn.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 jn=require("@vkontakte/videoplayer-shared/es2015"),Do=require("@vkontakte/videoplayer-core/es2015");
|