@vkontakte/videoplayer-tv 1.0.4-dev.0da85b58.0 → 1.0.4-dev.319d6ebf.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.
Files changed (62) hide show
  1. package/es2018.cjs +50 -41
  2. package/es2018.esm.js +55 -46
  3. package/es2024.cjs +50 -41
  4. package/es2024.esm.js +50 -41
  5. package/esnext.cjs +50 -41
  6. package/esnext.esm.js +50 -41
  7. package/evergreen.esm.js +50 -41
  8. package/package.json +4 -4
  9. package/types/VKVideoPlayerTv/HTMLElement.d.ts +2 -0
  10. package/types/VKVideoPlayerTv/index.svelte.d.ts +96 -0
  11. package/types/components/Ads/admanWrapper.d.ts +75 -75
  12. package/types/components/Ads/types.d.ts +26 -26
  13. package/types/components/Controls/types.d.ts +3 -3
  14. package/types/components/Icons/constants.d.ts +5 -5
  15. package/types/components/Icons/utils.d.ts +2 -2
  16. package/types/components/Root/types.d.ts +51 -24
  17. package/types/config.d.ts +95 -95
  18. package/types/constans/index.d.ts +2 -2
  19. package/types/index.d.ts +11 -10
  20. package/types/services/statistics.d.ts +13 -13
  21. package/types/store/index.d.ts +220 -5
  22. package/types/store/utils.d.ts +34 -35
  23. package/types/translation/index.d.ts +2 -2
  24. package/types/translation/labels.d.ts +1 -1
  25. package/types/translation/packs/en.d.ts +1 -1
  26. package/types/translation/packs/ru.d.ts +1 -1
  27. package/types/translation/types.d.ts +5 -5
  28. package/types/types/index.d.ts +199 -442
  29. package/types/types/svg.d.d.ts +5 -0
  30. package/types/utils/WebVttParser.d.ts +11 -11
  31. package/types/utils/attachments/defferedDisableByCondition.d.ts +3 -3
  32. package/types/utils/changeVolume.d.ts +6 -6
  33. package/types/utils/elementHelpers.d.ts +2 -2
  34. package/types/utils/findCurrentSubtltlePhrase.d.ts +1 -1
  35. package/types/utils/fullscreen.d.ts +14 -14
  36. package/types/utils/roundFps.d.ts +1 -1
  37. package/types/utils/sanitizeHtml.d.ts +3 -3
  38. package/types/utils/sorts.d.ts +2 -2
  39. package/types/utils/stack/index.d.ts +7 -7
  40. package/types/utils/stack/node.d.ts +3 -3
  41. package/types/utils/subtitles.d.ts +8 -8
  42. package/types/utils/timeout.d.ts +2 -2
  43. package/types/utils/userSettings.d.ts +24 -19
  44. package/types/utils/videoConfig.d.ts +6 -2
  45. package/types/utils/volumeChange.d.ts +1 -1
  46. package/types/utils/webAPI/focusLock.d.ts +30 -30
  47. package/types/utils/webAPI/focusManager.d.ts +15 -15
  48. package/types/utils/webAPI/language.d.ts +1 -1
  49. package/es2015.cjs +0 -52
  50. package/es2015.esm.js +0 -52
  51. package/types/AndroidTvPlayer.d.ts +0 -43
  52. package/types/components/Controls/CircleButton/types.d.ts +0 -12
  53. package/types/components/Controls/ProgressBar/types.d.ts +0 -7
  54. package/types/components/List/types.d.ts +0 -8
  55. package/types/components/Time/constants.d.ts +0 -4
  56. package/types/consts.d.ts +0 -1
  57. package/types/services/BackButton.d.ts +0 -8
  58. package/types/services/DeviceCapabilities.d.ts +0 -5
  59. package/types/services/FocusManager.d.ts +0 -8
  60. package/types/store/types.d.ts +0 -433
  61. package/types/store/ui.d.ts +0 -2
  62. package/types/utils/formatTime.d.ts +0 -1
package/es2018.cjs CHANGED
@@ -1,52 +1,61 @@
1
1
  /**
2
- * @vkontakte/videoplayer-tv v1.0.4-dev.0da85b58.0
3
- * Fri, 27 Feb 2026 09:37:35 GMT
2
+ * @vkontakte/videoplayer-tv v1.0.4-dev.319d6ebf.0
3
+ * Wed, 04 Mar 2026 10:27:11 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-4/doc/
5
5
  */
6
- "use strict";var Ku=Object.create;var Rn=Object.defineProperty;var Zu=Object.getOwnPropertyDescriptor;var Ju=Object.getOwnPropertyNames;var Xu=Object.getPrototypeOf,ec=Object.prototype.hasOwnProperty;var Os=e=>{throw TypeError(e)};var tc=(e,t,i)=>t in e?Rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var ic=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nc=(e,t)=>{for(var i in t)Rn(e,i,{get:t[i],enumerable:!0})},Ps=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Ju(t))!ec.call(e,r)&&r!==i&&Rn(e,r,{get:()=>t[r],enumerable:!(n=Zu(t,r))||n.enumerable});return e};var rc=(e,t,i)=>(i=e!=null?Ku(Xu(e)):{},Ps(t||!e||!e.__esModule?Rn(i,"default",{value:e,enumerable:!0}):i,e)),oc=e=>Ps(Rn({},"__esModule",{value:!0}),e);var li=(e,t,i)=>tc(e,typeof t!="symbol"?t+"":t,i),Rs=(e,t,i)=>t.has(e)||Os("Cannot "+i);var zt=(e,t,i)=>(Rs(e,t,"read from private field"),i?i.call(e):t.get(e)),br=(e,t,i)=>t.has(e)?Os("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),xr=(e,t,i,n)=>(Rs(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i);var pd=ic(()=>{"use strict";AdmanHTML=function(){"use strict";function e(w){w&&typeof w=="string"&&new AdmanHTML.OpenLinkPopupRender(V).open(w)}function t(w){Be.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=e;var X=AdmanHTML.Utils.getPageLocation(),de=AdmanHTML.Utils.getHostname(X||""),We=AdmanHTML.Utils.isMobile(navigator.userAgent||navigator.vendor||window.opera);AdmanHTML.Utils.isElement(V.videoEl)&&We&&V.videoEl.setAttribute("playsinline",""),V.location={top:X,topEncoded:encodeURIComponent(X||""),hostname:de,hostnameEncoded:encodeURIComponent(de||"")},Be.rb(Be.code.ADMAN_SUCCESSFULLY_INITIALIZED),V.stats.metrics("initing"),T=w.midrollPointsP||null,je=!T&&w.midrollPoints?w.midrollPoints:null,V.config.vpaidJsInterface||(V.config.vpaidJsInterface=he),V.config.vpaidHtmlInterface||(V.config.vpaidHtmlInterface=xe);var Ue="https://ad.mail.ru/vp/"+V.slotId+"?app_name=admanhtml&version="+this.getVersion();if(w.params&&w.params.constructor&&w.params.constructor===Object){var pt=[];"flash"in w.params||(w.params.flash=AdmanHTML.Utils.checkFlash()?1:0);for(var ot in w.params)w.params.hasOwnProperty(ot)&&pt.push(ot+"="+w.params[ot]);var ht=AdmanHTML.Utils.getUserIdQuery();ht&&pt.push(ht),pt.length&&(Ue+="&"+pt.join("&"))}if((V.slotId||w.json||w.adUrl)&&!V.browser.adBlock){var ut={},Ti=this;V.slotId?ut.url=Ue:w.adUrl?(w.adUrl.indexOf("ad.mail.ru/")!==-1&&(w.adUrl+=w.adUrl.indexOf("?")===-1?"?":"&",w.adUrl+="version="+this.getVersion()),ut.url=w.adUrl):ut.data=w.json,ce=new AdmanHTML.AdSlot(V,ut,function(){var Si=ce.getRootSettings()||{},$i=Si.requestHostname;if($i&&!AdmanHTML.Utils.matchHostname(V.location.hostname,$i,ie))return V.stats.logError("HOSTNAME_MISMATCH:"+$i+":"+V.location.topEncoded,{impressionID:Si.impressionID,padID:Si.padID,bannerIDs:Si.bannerIDs}),void(V.callbacks.onError&&V.callbacks.onError());V.location.hostname||V.stats.logError("HOSTNAME_EMPTY:"+$i+":"+V.location.topEncoded),V.cb("onReady",[{settings:ce.settings}]);var qi=1e6,Hi=[],qe=[],Ge=w.params&&w.params.duration?parseInt(w.params.duration,10):qi;Ge===0&&(Ge=qi),je&&je.sort(AdmanHTML.Utils.numSorter),T&&T.sort(AdmanHTML.Utils.numSorter);var ft=ce.getSection("midroll")||[],xo=ce.getServices("midroll",function(Nt){return!Nt.started()&&Nt.isAfter()})||[];ft=ft.concat(xo),ft.forEach(function(Nt){var ct=Nt.getAd();ct.point||ct.pointP||(ct.pointP=50)}),ft.sort(function(Nt,ct){var fn=Nt.getAd(),Ki=ct.getAd();return fn.pointP&&Ki.pointP?fn.pointP-Ki.pointP:(fn.point||fn.pointP/100*Ge)-(Ki.point||Ki.pointP/100*Ge)}).forEach(function(Nt){if(!Nt.isEmpty||!Nt.isEmpty()){var ct=Nt.getAd();je&&je.length?(ct.point=je.shift(),ct.pointP=null,qe.push(ct.point),Nt.addImmutableProperty("point",ct.point)):T&&T.length?(ct.pointP=T.shift(),ct.point=null,Hi.push(ct.pointP),Nt.addImmutableProperty("pointP",ct.pointP)):je||T||(ct.point?(Nt.addImmutableProperty("point",ct.point),qe.push(ct.point)):ct.pointP&&(Nt.addImmutableProperty("pointP",ct.pointP),Hi.push(ct.pointP)))}}),U=Hi.sort(AdmanHTML.Utils.numSorter),k=qe.sort(AdmanHTML.Utils.numSorter);var pn=ce.getSection("research");pn&&pn.length>0&&(oe=pn[0]),V.pauseOnHide&&ae(Ti)})}else{Be.logError("Adman init failed");var si=V.callbacks.onError;si&&si(),Z=we=G=null}}function i(w,X){X=X||!1;var de;if(Z&&(Z.log("sectionShown"),Z.disposed||(Z.dispose(),Z.disposed=!0,N(Z,G)),w&&Z.log("closedByUser")),G&&!De[G]&&(De[G]=G!=="midroll",de=w?V.callbacks.onClosed:V.callbacks.onCompleted),Qe[G]&&we&&(Qe[G]=Qe[G].concat(we.splice(0,we.length))),Z=we=G=null,s(),typeof X=="object"&&X.force===!0)return void((de=V.callbacks.onError)&&de(X.message));de&&de()}function n(w){var X=ce.getSettings(G).maxBannersShow||0,de=ze[G]||0,We=!X||de<X;if(Z&&!Z.disposed&&(Z.complete&&Z.log("playbackCompleted"),Z.dispose(),Z.disposed=!0,N(Z,G)),we&&we.length&&We)Z=we.shift(),ze[G]=de+(Z.isEmpty()?0:1),Z.reset(),Z.started=!0,Z.start();else{var Ue=ce.getNextAfterService(G);G!=="midroll"&&Ue&&We?Ue.start(function(){we=ce.getSection(G),n()}):ce.getSettings(G).loop&&Qe[G]&&Qe[G].length?(we=Qe[G],Qe[G]=[],n()):i(!1,w)}}function r(w){we||(G=w||"preroll",ce.resetServices(G),De[G]=!1,we=ce.getSection(G),w==="midroll"&&(we=c(we)),n(),G&&(Qe[G]=Qe[G]||[]),Z&&(Z.log("sectionStarted"),V.debugMode&&console.log(G,Z.getAd(),Z.getSettings(),we)),o(G),V.stats.metrics("started"))}function o(w){(He=ce.getDebug(w))&&He.start()}function s(){He&&He.dispose(),He=null}function a(w,X){function de(qe,Ge){for(var ft=0;ft<qe.length&&!(Math.abs(qe[ft])>Ge);ft++);return ft>0?[qe[ft-1]]:[]}function We(qe){var Ge=qe.getAd();return!(Ge.point&&k.indexOf(Ge.point)===-1||Ge.pointP&&U.indexOf(Ge.pointP)===-1)&&(Ge.point&&Ge.point<=Si||Ge.pointP&&Ge.pointP<=$i)}function Ue(){q=U.reduce(function(qe,Ge){var ft=Math.ceil(X*Ge/100);qe.indexOf(ft)===-1&&qe.push(ft)},k).sort(AdmanHTML.Utils.numSorter)}function pt(qe){return q.reduce(function(Ge,ft){return Ge===0&&ft>0&&ft-qe>=0?ft-qe:Ge},0)}if(!isNaN(w)&&!isNaN(X)){var ot=parseInt(w),ht=Math.floor(100*w/X);_e=X,le=U&&isFinite(ht)?de(U,ht):[],ge=k?de(k,ot):[],le[0]&&ge[0]&&(Math.abs(le[0]*_e/100)>Math.abs(ge[0])?ge=[]:le=[]);var ut=typeof ce=="object"&&typeof ce.getSettings=="function"?ce.getSettings("midroll").midpointAllowableDelta:void 0;Y=ut!=null?ut:Y;var Ti=100*Y/X,si=Y!==0&&Y<5?Y:5,Si=ot+si,$i=ht+si/X*100;if(ce.getServices("midroll",function(qe){return!(!qe.isAfter()||qe.started()||!We(qe))}).forEach(function(qe){var Ge=ot-qe.getAd().point,ft=ht-qe.getAd().pointP;Ge<Y||ft<Ti||Y===0?qe.start():V.debugMode&&console.log("skip midroll fetch")}),le.length&&le[0]>0||ge.length&&ge[0]>0){var qi=!1,Hi=ce.getSection("midroll");Hi&&Hi.forEach(function(qe){var Ge=qe.getAd();(Ge.pointP&&~le.indexOf(Ge.pointP)||Ge.point&&~ge.indexOf(Ge.point))&&(qi=!0)}),qi&&V.cb("adMidrollPoint",[w])}return V.forcePreloadAdditionalData?(Ue(),pt(w)):void 0}}function c(w){function X(We,Ue){var pt=We.getAd(),ot=Ue.getAd();return(pt.point||pt.pointP*_e/100)-(ot.point||ot.pointP*_e/100)}var de=[];return w&&w.forEach(function(We){var Ue=We.getAd();(Ue.pointP&&~le.indexOf(Ue.pointP)||Ue.point&&~ge.indexOf(Ue.point))&&de.push(We)}),k.forEach(function(We,Ue){~ge.indexOf(We)&&(k[Ue]=-k[Ue])}),U.forEach(function(We,Ue){~le.indexOf(We)&&(U[Ue]=-U[Ue])}),de.sort(X),de}function v(){V.cb("onSkipped"),Z&&(Z.log("closedByUser"),Z.skip(n))}function p(){Z&&(Z.log("playbackPaused"),Z.pause())}function l(w){Z&&(w||Z.log("playbackResumed"),Z.resume())}function u(w){w=w<0?0:w>1?1:w,Z&&Z.setVolume(w)}function m(){Z&&Z.log("fullscreenOn")}function h(){Z&&Z.log("fullscreenOff")}function _(){i()}function y(w,X){V.callbacks[w]=X}function C(w){var X=[],de=ce.getSection(w||"preroll");return de&&de.forEach(function(We){We.isEmpty()||X.push(We.getExtendedAdForApp())}),X}function I(w){return ce.getAfterServices(w||"preroll")}function N(w,X){w.isEmpty()||w.isStat()||Qe[X]&&Qe[X].push(w)}function b(w){return(w.right-w.left)*(w.bottom-w.top)}function x(w,X){return{left:w.left+X.left,right:w.right+X.left,top:w.top+X.top,bottom:w.bottom+X.top}}function A(w){return w&&!isNaN(w)?w:null}function S(w,X){var de=w.document,We=X==="width"?"clientWidth":"clientHeight",Ue=X==="width"?"innerWidth":"innerHeight",pt=w[Ue],ot=de.body[We],ht=de.documentElement[We],ut=1/0;return ut=A(ot)||ut,ut=A(ht)||ut,pt&&!isNaN(pt)&&(ut=Math.min(ut,pt)),ut}function $(w){return{width:S(w,"width"),height:S(w,"height")}}function L(w,X){var de=$(X);return{left:Math.max(0,w.left),right:Math.min(de.width,w.right),top:Math.max(0,w.top),bottom:Math.min(de.height,w.bottom)}}function E(w,X){try{for(var de=w.getBoundingClientRect(),We=b(de),Ue=X,pt=Ue.parent;Ue!==pt;){var ot=Ue.frameElement.getBoundingClientRect();de=x(de,ot);var ht=Math.max(ot.left,de.left),ut=Math.min(ot.right,de.right),Ti=Math.max(ot.top,de.top),si=Math.min(ot.bottom,de.bottom);de.left=ht,de.right=ut<ht?ht:ut,de.top=Ti,de.bottom=si<Ti?Ti:si,Ue=Ue.parent}de=L(de,pt);var Si=b(de);return{left:de.left,right:de.right,top:de.top,bottom:de.bottom,percent:Si/We*100}}catch($i){return{left:0,right:0,top:0,bottom:0,percent:0}}}function M(){return window.hasOwnProperty("IntersectionObserver")}function g(w){try{if(w===w.top)return"ON_PAGE";for(var X=w;X!==X.parent;){if(X.document.domain!==X.parent.document.domain)return"XD_FRAME";X=X.parent}return"S_FRAME"}catch(de){}return"XD_FRAME"}function j(w){return!M(w)&&g(w)!=="XD_FRAME"}function F(w,X,de){W(de,E(w,window).percent>=100*X)}function O(w){return w.mozVisibilityState?"mozvisibilitychange":w.webkitVisibilityState?"webkitvisibilitychange":w.visibilityState?"visibilitychange":""}function P(w){W(w,!0)}function z(w){W(w,!1)}function W(w,X){var de=w.getPlayStatus();w.prevVisibility!==X&&(w.prevVisibility=X,de.curStatus!==void 0&&de.curStatus!==de.prevStatus&&(X?w.resume():w.pause()))}function ae(w){var X=w,de=V.viewabilityValue,We=V.viewabilityEl;if(We){if(M()){var Ue=new IntersectionObserver(function(ht){ht.forEach(function(ut){W(X,ut.intersectionRatio>=de)})},{threshold:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});Ue.observe(We)}else if(j){var pt=function(){F(We,de,X)};window.addEventListener("resize",pt,!1),window.addEventListener("scroll",pt,!1)}}var ot=(O(document),pe.hasFocus());setInterval(function(){var ht=pe.hasFocus();ot!==ht&&(ot=ht,ot?P(X):z(X))},500)}function J(){return V.playStatus===void 0?{prevStatus:void 0,curStatus:void 0}:V.playStatus}var ce,G,we,Z,He,oe,_e,V={version:"2.2.57",debugMode:!0,callbacks:{},cb:function(w,X){switch(w){case"onCompleted":Z&&(Z.complete=!0),n();break;case"onError":Z&&(Z.error=!0),n(X);break;case"onClosed":i(!0);break;default:var de=V.callbacks[w];de&&de.apply(this,X)}}},Me=window.location.protocol==="http:"?"http:":"https:",he=Me+"//ad.mail.ru/static/admanhtml/vpaid-js-interface.swf",xe=Me+"//ad.mail.ru/static/rbadman-vpaid.html",Be=new AdmanHTML.Stats(V),Le=new AdmanHTML.Viewability,je=[],T=[],k=[],U=[],q=[],le=[],ge=[],ze={},Qe={},Y=3,ie=function(){for(var w=window,X=frameElement;X;){try{X=w.parent.frameElement}catch(de){break}w=w.parent}return w}(),pe=ie.document;V.stats=Be,V.viewability=Le,V.protocol=Me,V.stats.metrics();var De={};return{init:t,start:r,stop:_,pause:p,resume:l,setVolume:u,fullscreenOn:m,fullscreenOff:h,setFullscreen:function(w){w?m():h()},skip:v,destroy:_,getPlayStatus:J,getSlot:function(){return V.slotId},setSlot:function(w){V.slotId=w},getVersion:function(){return V.version},getBannersForSection:C,getServicesForSection:I,hasSection:function(w){return w=w||"preroll",!(!C(w).length&&!I(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(){oe&&oe.pause()},resume:function(){oe&&oe.resume()},complete:function(){oe&&oe.setComplete()},setVolume:function(w){oe&&oe.setVolume(w)},setFullscreen:function(w){oe&&oe.setFullscreen(w)},setPosition:function(w,X){oe&&oe.setPosition(w,X)}}}},AdmanHTML.Ad=function(e,t){"use strict";function i(b){b&&b.forEach(function(x){n(x.url,x.type,x)})}function n(b,x,A){var S,$,L,E;if(b){try{b=decodeURIComponent(b)}catch(P){}if(x==="playheadReachedValue")A.thresholdValue!==void 0||A.value!==void 0?(S=parseInt(A.thresholdValue||A.value,10),t.stats.push({name:"thresholdValue",value:S,type:"thresholdValue."+S,url:b})):A.thresholdPValue===void 0&&A.pvalue===void 0||(S=parseInt(A.thresholdPValue||A.pvalue,10),t.stats.push({name:"thresholdPValue",value:S,type:"thresholdPValue."+S,url:b}));else if(x==="playheadViewabilityValue"){var M=parseInt(A.viewablePercent,10),g=A.ovv===void 0&&A.mrc===void 0||!!A.ovv||!!A.mrc,j="";L=A.startTimer!==void 0?parseInt(A.startTimer,10):0,E=A.endTimer!==void 0?parseInt(A.endTimer,10):0,M=isNaN(M)?50:M,A.value!==void 0?(S=parseInt(A.value,10),$="ovvValue"):A.pvalue!==void 0?(S=parseInt(A.pvalue,10),$="ovvPValue"):A.duration!==void 0&&(S=parseInt(A.duration,10),$="mrcValue",g||(j=A.unload?"unload":"complete"));var F={name:$,value:S,url:b,percent:M,viewable:g,start:L,end:E,onevent:j};"target"in A&&(F.target=A.target),t.stats.push(F)}else if(x==="playheadTimerValue"){L=A.startTimer!==void 0?parseInt(A.startTimer,10):0,E=A.endTimer!==void 0?parseInt(A.endTimer,10):0;var O=A.rate!==void 0?parseInt(A.rate,10):1;t.stats.push({name:"timerValue",rate:O,url:b,start:L,end:E})}else t.stats.push({name:x,type:x,url:b})}}function r(b){t.click=b,t.ad&&(t.ad.urlToNavigateOnClick=b)}function o(b,x){t.extensions[b]=x}function s(b,x,A){!A&&b in t.immutables||(t.immutables[b]=x)}function a(b){t.settings=t.settings||{},AdmanHTML.Utils.deepExtend(t.settings,b)}function c(b){function x(E){var M=E.type||"";return!(~M.indexOf("video")&&M!=="video/mp4"||~M.indexOf("audio")&&M!=="audio/mp3"&&M!=="audio/mpeg")}function A(){e.stats.rb(e.stats.code.UNKNOWN_ADV_TYPE),e.stats.logError("UNKNOWN_ADV_TYPE")}if(t.ad=b,t.click&&(t.ad.urlToNavigateOnClick=t.click),AdmanHTML.Utils.mixin(t.ad,t.extensions),AdmanHTML.Utils.mixin(t.ad,t.immutables),t.ad.mediafiles&&t.ad.mediafiles.length){var S;t.ad.mediafiles.forEach(function(E){x(E)&&(!S||Math.abs(parseInt(E.height)-e.quality)<Math.abs(parseInt(S.height)-e.quality))&&(S=E)}),S&&AdmanHTML.Utils.mixin(t.ad,S)}delete t.ad.statistics,delete t.ad.mediafiles;var $,L;switch(t.ad.type){case"swf":case"application/x-shockwave-flash":if(L=t.ad.apiFramework||t.ad.api,e.browser.mobile||L&&L!=="VPAID")return A(),!1;$=L?new AdmanHTML.VpaidSwfAdRenderer(e,this):new AdmanHTML.SwfAdRenderer(e,this);break;case"javascript":case"application/javascript":if((L=t.ad.apiFramework||t.ad.api)&&L!=="VPAID")return A(),!1;$=new AdmanHTML.VpaidJsAdRenderer(e,this);break;case"video":case"video/mp4":$=new AdmanHTML.VideoAdRenderer(e,this);break;case"audio":case"audio/mp3":case"audio/mpeg":$=new AdmanHTML.AudioAdRenderer(e,this);break;case"image":case"image/bmp":case"image/gif":case"image/jpeg":case"image/png":$=new AdmanHTML.ImgAdRenderer(e,this);break;case"text":$=new AdmanHTML.TextAdRenderer(e,this);break;case"html":$=new AdmanHTML.HtmlAdRenderer(e,this);break;case"empty":$=new AdmanHTML.EmptyAdRenderer(e,this);break;case"statistics":$=new AdmanHTML.StatisticsAdRenderer(e,this);break;case"debugData":$=new AdmanHTML.DebugAdRenderer(e,this);break;case"research":$=new AdmanHTML.ResearchAdRenderer(e,this);break;case"video/x-flv":default:return A(),!1}return t.renderer=$,!0}function v(){return new AdmanHTML.Ad(e,JSON.parse(JSON.stringify(t)))}function p(){this.started&&(t.ad&&c.call(this,t.ad),this.disposed=!1,this.completed=!1,this.error=!1,this.started=!1),t.statsBackup?t.stats=t.statsBackup.slice():t.statsBackup=t.stats.slice()}function l(b,x,A){var S=b.url;S=S.replace("{requesthostname}",e.location.hostnameEncoded||""),AdmanHTML.Utils.loadImg(S);var $=x.indexOf(b);~$&&A&&x.splice($,1)}function u(b,x){var A=x.indexOf(b);~A&&x.splice(A,1)}function m(b,x){function A(g){g=25*Math.floor(g/25);var j=N["thresholdPValue."+g];j&&(E=E.concat(j))}var S=t.stats.slice(0);if(Array.isArray(b)){var $;for($=0;$<b.length&&!~S.findIndex(function(g){return g.name===b[$]});$++);b=b[$]||b.slice(-1)}if(!e.isPopupOpen||b!=="playbackPaused"&&b!=="playbackResumed"){var L=b+(x===void 0?"":"."+x),E=N[L]?N[L].slice(0):[];E.push(L),b==="thresholdPValue"&&A(x);var M=b==="thresholdPValue"||b==="thresholdValue"||b==="closedByUser";t.stats.forEach(function(g){(b==="thresholdPValue"&&g.name==="thresholdPValue"&&g.value<x||b==="thresholdValue"&&g.name==="thresholdValue"&&g.value<x)&&l(g,S,M),~E.indexOf(g.type)&&l(g,S,M)}),t.stats=S}}function h(b,x){function A(M,g){g[Math.ceil(M.percent/10)].duration>=1e3*M.value?M.viewable?l(M,$,!0):u(M,$):L++}function S(M){M.viewable||M.onevent===x&&l(M,$,!0)}var $=t.stats.slice(0),L=0,E=b&&b.length?A:S;return t.stats.forEach(function(M){M.name==="mrcValue"&&E(M,b)}),t.stats=$,L}function _(b,x){var A,S,$=t.stats.slice(0);t.stats.forEach(function(L){(L.name==="ovvValue"&&L.value<=b||L.name==="ovvPValue"&&L.value<=x)&&(A=A||e.viewability.getViewabilityState(),S=A.percent>L.percent&&A.focus,A.state!=="UNDETERMINED"&&(S&&L.viewable||!S&&!L.viewable)&&AdmanHTML.Utils.loadImg(L.url),u(L,$))}),t.stats=$}function y(b,x){t.renderer&&t.renderer[b]&&t.renderer[b](x)}function C(){var b={};return b=t.ad.type==="audio"||t.ad.type==="audio/mp3"||t.ad.type==="audio/mpeg"?{allowSeek:!1,allowSkip:!1,allowTrackChange:!1,allowVolumeChange:!1}:t.settings?{allowClose:!t.settings.hasOwnProperty("allowClose")||t.settings.allowClose,allowCloseDelay:t.settings.hasOwnProperty("allowCloseDelay")?t.settings.allowCloseDelay:0}:{allowClose:!0,allowCloseDelay:0},AdmanHTML.Utils.mixin(b,t.ad),b}function I(){var b=C();return b.statistics=t.stats.slice(0),b}t=t||{stats:[],extensions:{},immutables:{}};var N={closedByUser:["close","skipAd"],click:["addClick"],"thresholdPValue.25":["firstQuartile"],"thresholdPValue.50":["secondQuartile","midpoint"],"thresholdPValue.75":["thirdQuartile"],"thresholdPValue.100":["fourthQuartile"],playbackStarted:["start"],playbackCompleted:["complete"],volumeOff:["mute"],volumeOn:["unmute"],playbackPaused:["pause"],playbackResumed:["resume"],fullscreenOn:["fullscreen"],error:["Error"]};return{addStatCollection:i,addStat:n,addClick:r,addExtension:o,addImmutableProperty:s,addSettings:a,getSettings:function(){return t.settings},addAd:c,getAd:function(){return t.ad},getAdForApp:C,getExtendedAdForApp:I,isEmpty:function(){return t.ad.type==="empty"},isStat:function(){return t.ad.type==="statistics"},clone:v,reset:p,log:m,logMRC:h,logOVV:_,start:y.bind(this,"start"),dispose:y.bind(this,"dispose"),pause:y.bind(this,"pause"),resume:y.bind(this,"resume"),setVolume:y.bind(this,"setVolume"),setFullscreen:y.bind(this,"setFullscreen"),setComplete:y.bind(this,"setComplete"),skip:y.bind(this,"skip"),setPosition:function(b,x){t.renderer&&t.renderer.setPosition&&t.renderer.setPosition(b,x)},complete:!1,error:!1}},AdmanHTML.AdSlot=function(e,t,i){"use strict";function n(E){I||(I={});for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])}function r(E,M,g,j,F,O){function P(W){e.stats.metrics("inited");var ae={};--b,W&&(x++,W=typeof W=="string"?W.trim():W,typeof W=="object"||W.charAt(0)==="{"?(ae=a(W,E,M,g||0,j,F,O),A++):W.charAt(0)==="<"?(ae=c(W,E,M,g||0,j,F,O),A++):(e.stats.rb(e.stats.code.UNKNOWN_DATA_FORMAT),e.stats.logError("UNKNOWN_DATA_FORMAT"))),E.id&&(ae.banners||ae.services?ae.banners&&L.markNonEmptyService(E.id):L.markEmptyService(E.id)),o(O)}if(g&&g>4)return void o(O);var z=L.getService(E.id);z&&z.log("serviceRequested"),++b,E.url?(E.url.indexOf("ad.mail.ru/")!==-1&&E.url.indexOf("version="+e.version)===-1&&(E.url+=E.url.indexOf("?")===-1?"?":"&",E.url+="version="+e.version),AdmanHTML.Utils.xhr(E.url,P)):E.data&&setTimeout(P,0,E.data)}function o(E){if(!b){if(x&&A){var M=L.getNextOnEmptyService();if(M)return void M.start(o.bind(null,E));h();var g=E||i;return g.called||(g.called=!0,g()),void(e.debugMode&&console.log(y))}s()}}function s(){var E=e.callbacks.onError;E&&E()}function a(E,M,g,j,F,O,P){function z(_e){return _e?_e.filter(function(V){return V.type&&(V.type==="sectionShown"||V.type==="sectionStarted"||V.type==="sectionEmpty")}):[]}function W(_e,V,Me,he){var xe=g?g.clone():new AdmanHTML.Ad(e);if(xe.addStatCollection(_e.statistics),xe.addStatCollection(_e.serviceStatistics),_e.type==="additionalData"){var Be;_e.id=_e.id||AdmanHTML.Utils.createIntUID(),ce.services++;var Le=!y[Me]||y[Me].length===0;if(V>0&&Le&&($[Me]=!0),_e.extensions)for(var je in _e.extensions)_e.extensions.hasOwnProperty(je)&&v(xe,_e.extensions[je],je);if(["point","pointP","hasVolume","hasPause","allowClose","allowCloseDelay","allowSeek","allowSkip","allowTrackChange","allowVolumeChange"].forEach(function(U){U in _e&&xe.addImmutableProperty(U,_e[U])}),e.forcePreloadAdditionalData||_e.doAfter!=="true"&&_e.doAfter!==!0&&!_e.doOnEmptyResponseFromId)Be=new AdmanHTML.ServiceAd(e),l(Me,M.id,Be,_e),V===0&&Le?r(_e,xe,j+1,Me,S.PRE,P):r(_e,xe,j+1,Me,null,P);else{var T=_e.doAfter==="true"||_e.doAfter===!0?S.POST:null,k=function(U,q){r(_e,U||xe,_e.allowRepeat?0:j+1,Me,T,function(){q&&q()})};Be=new AdmanHTML.ServiceAd(e,null,k),l(Me,M.id,Be,_e,xe)}}else p(Me,he,xe,_e),ce.banners++;return xe}var ae,J=E,ce={banners:0,services:0};if(typeof E=="string")try{J=JSON.parse(E)}catch(_e){return e.stats.rb(e.stats.code.ERROR_CONVERTING_STRING_TO_JSON),void e.stats.logError("ERROR_CONVERTING_STRING_TO_JSON")}if(J.settings&&J.settings.requestHostname&&!I.requestHostname&&(I.requestHostname=J.settings.requestHostname),J&&J.settings&&(I=e.slot&&e.slot.getRootSettings()||I||{},n&&typeof n=="function")){var G=J.sections&&J.sections.preroll&&J.sections.preroll.length&&J.sections.preroll[0]||null;n({impressionID:J.settings.impressionID||"",padID:J.settings.padID||"",bannerIDs:G&&G.bannerID||""})}for(var we in J.sections)if(J.sections.hasOwnProperty(we)){var Z=J.sections[we],He=0;if(J.settings&&(ae=J.settings[we])&&(ae.controlsStyle=J.settings.controlsStyle||0,m(we,ae)),Z.forEach(function(_e){if(_e.type==="debugData"){var V=new AdmanHTML.Ad(e);return V.addClick(_e.url),void u(we,V,_e)}var Me=F===we?O:"",he=W(_e,He,we,Me);ae&&(he.addStatCollection(z(ae.statistics)),he.addSettings(ae)),He++}),Z.length===0){var oe=new AdmanHTML.Ad(e);ae&&oe.addStatCollection(z(ae.statistics)),p(we,"",oe,{type:"empty"})}}return J.type&&W(J,0,F,O),ce}function c(E,M,g,j,F,O,P){function z(Z,He,oe){ae(Z.getElementsByTagName(He),oe)}function W(Z,He,oe,_e){z(Z,He,function(V){_e(ce(V),oe?J(V,oe):null,V)})}function ae(Z,He){Array.prototype.forEach.call(Z,He.bind(this))}function J(Z,He){var oe=Z.attributes.getNamedItem(He);return oe?oe.value:null}function ce(Z){return Z&&Z.childNodes&&Z.childNodes[0]&&Z.childNodes[0].wholeText?Z.childNodes[0].wholeText.trim():null}var G,we={banners:0,services:0};try{G=AdmanHTML.Utils.parseXml(E)}catch(Z){return e.stats.rb(e.stats.code.ERROR_CONVERTING_STRING_TO_XML),void e.stats.logError("ERROR_CONVERTING_STRING_TO_XML")}return z(G,"Ad",function(Z){function He(V){var Me=g?g.clone():new AdmanHTML.Ad(e);W(Z,"Impression","id",function(xe){try{Me.addStat(xe,"playbackStarted")}catch(Be){}}),W(Z,"Extension","type",function(xe,Be){v(Me,xe,Be)}),W(Z,"Error",null,function(xe){Me.addStat(xe,"error")}),W(V,"Tracking","event",Me.addStat);var he=V.getElementsByTagName("VideoClicks")[0];return he&&ae(he.childNodes,function(xe){xe.tagName==="ClickThrough"?Me.addClick(ce(xe)):xe.tagName==="ClickTracking"&&Me.addStat(ce(xe),"click")}),Me}function oe(V){var Me={width:J(V,"width"),height:J(V,"height"),id:J(V,"id"),assetWidth:J(V,"assetWidth"),assetHeight:J(V,"assetHeight"),expandedWidth:J(V,"expandedWidth"),expandedHeight:J(V,"expandedHeight"),apiFramework:J(V,"apiFramework"),adSlotID:J(V,"adSlotID"),statistics:[]};return W(V,"StaticResource",null,function(he){Me.staticResource=he}),W(V,"HTMLResource",null,function(he){Me.htmlResource=he}),W(V,"IFrameResource",null,function(he){Me.iframeResource=he}),W(V,"CompanionClickTracking",null,function(he){Me.statistics.push({type:"click",url:he})}),W(V,"Tracking","event",function(he,xe){Me.statistics.push({type:xe,url:he})}),W(V,"CompanionClickThrough",null,function(he){Me.urlToNavigateOnClick=he}),Me}var _e=J(Z,"id");z(Z,"InLine",function(V){var Me=[];z(V,"CompanionAds",function(he){var xe=J(he,"required")||"none";z(V,"Companion",function(Be){var Le=oe(Be);Le.required=xe,Me.push(Le)})}),z(V,"Linear",function(he){var xe,Be=He(he),Le=he.parentNode;Le&&(xe=J(Le,"adId")||J(Le,"adID")||J(Le,"AdId")||J(Le,"AdID")||J(Le,"id")),xe=xe||_e;var je={bannerID:xe,mediafiles:[],duration:AdmanHTML.Utils.convertDuration(ce(he.getElementsByTagName("Duration")[0]))};M.urlToNavigateOnClick&&(je.urlToNavigateOnClick=M.urlToNavigateOnClick),z(he,"MediaFile",function(T){je.mediafiles.push({apiFramework:J(T,"apiFramework"),type:J(T,"type"),width:J(T,"width"),height:J(T,"height"),src:ce(T)})}),z(he,"AdParameters",function(T){je.params=ce(T);try{var k=JSON.parse(je.params);if(k&&k.settings&&(I=e.slot&&e.slot.getRootSettings()||I||{},n&&typeof n=="function")){var U=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:U&&U.bannerID||""})}}catch(q){console.log(q)}}),Me.length&&(je.companionAds=Me),p(F||"preroll",O,Be,je),we.banners++}),z(V,"NonLinear",function(he){var xe=He(he),Be={width:J(he,"width"),height:J(he,"height"),duration:AdmanHTML.Utils.convertDuration(J(he,"minSuggestedDuration")),mediafiles:[]};W(he,"NonLinearClickThrough",null,function(Le){xe.addStat(Le,"click")}),W(he,"StaticResource","creativeType",function(Le,je){Be.mediafiles.push({type:je,src:Le})}),p(F||"overlay",O,xe,Be),we.banners++})}),z(Z,"VASTAdTagURI",function(V){we.services++,r({url:ce(V),id:M.id},He(Z),j+1,F,O,P)})}),we}function v(E,M,g){g==="controls"?E.addExtension("showControls",!!parseInt(M,10)):g==="skipTime2"?(M=isNaN(M)?AdmanHTML.Utils.convertDuration("00:"+M):parseInt(M,10),E.addExtension("allowCloseDelay",M)):g==="linkTxt"&&(E.addExtension("linkText",M),E.addExtension("adText",M))}function p(E,M,g,j){g.addAd(j)&&(g.sectionType=E,M===S.PRE&&$[E]&&(M=""),E=(M||"")+E,y[E]=y[E]||[],y[E].push(g))}function l(E,M,g,j,F){g.addAd(j),g.addInheritedAd(F),g.addStatCollection(j.statistics),g.addStatCollection(j.serviceStatistics),g.sectionType=E,L.addService(g,M)}function u(E,M,g){M.addAd(g)&&(M.section=E,N[E]=M)}function m(E,M){C[E]=C[E]||{},AdmanHTML.Utils.mixin(C[E],M),delete C[E].statistics,delete C[E].view,delete C[E].advertisment}function h(){"preroll midroll pauseroll overlay postroll claimroll".split(" ").forEach(function(E){var M=$[E]?y[E]:y[S.PRE+E],g=$[E]?y[S.PRE+E]:y[E],j=y[S.POST+E];y[E]=[].concat(M||[],g||[],j||[]),_(S.PRE+E),_(S.POST+E)})}function _(E){y[E]=[]}var y={},C={},I={},N={},b=0,x=0,A=0,S={PRE:"pre-",POST:"post-"},$={},L=new AdmanHTML.ServiceStorage(e);return r({url:t.url,data:t.data}),{getSection:function(E){return y[E]},getAfterServices:L.getAfterServices,getNextAfterService:L.getNextAfterService,resetServices:L.resetAll,getServices:L.getServices,removeService:L.removeService,getSettings:function(E){return C[E]||{}},getRootSettings:function(){return I},getDebug:function(E){return N[E]}}},AdmanHTML.ServiceAd=function(e,t,i){"use strict";function n(m){return t.ad=m,!0}function r(m){t.inheritedAd=m}function o(m,h){t.inheritedAd.addImmutableProperty(m,h,!0)}function s(m){var h=m?m.filter(function(_){return _.type==="serviceRequested"||_.type==="serviceAnswerEmpty"}):[];h&&h.forEach(function(_){a(_.url,_.type,_)})}function a(m,h){m=decodeURIComponent(m),t.stats.push({name:h,type:h,url:m})}function c(m){u=!0,i&&i(t.inheritedAd,m)}function v(){u=!1}function p(){return!(e.forcePreloadAdditionalData||!t.ad||!t.ad.doAfter)&&(t.ad.doAfter===!0||t.ad.doAfter==="true")}function l(m){function h(y){AdmanHTML.Utils.loadImg(y.url);var C=_.indexOf(y);~C&&_.splice(C,1)}var _=t.stats.slice(0);t.stats.forEach(function(y){y.type===m&&h(y)}),t.stats=_}t=t||{stats:[]};var u=!1;return{addStatCollection:s,addStat:a,addAd:n,addInheritedAd:r,addImmutableProperty:o,getAd:function(){return t.ad},start:c,reset:v,started:function(){return u},log:l,isAfter:p}},AdmanHTML.ServiceStorage=function(e){"use strict";function t(_,y){var C=_.getAd();m.push(C.id),u[C.id]={service:_},y&&u[y]&&(u[y].children=u[y].children||[],u[y].children.push(C.id)),e.forcePreloadAdditionalData||C.doAfter!=="true"&&C.doAfter!==!0&&!C.doOnEmptyResponseFromId||l.push(_)}function i(_){return u[_]?u[_].service:null}function n(_){var y=typeof _=="string"||typeof _=="number"?_:_.getAd().id;delete u[y];var C,I;for(C=0,I=l.length;C<I;C++)if(_=l[C],_.getAd().id===y){l.splice(C,1);break}}function r(_,y){if(!_)return[];var C,I,N=[];for(C in u)u.hasOwnProperty(C)&&(I=u[C].service,I.sectionType!==_||y&&!y(I)||N.push(I));return N}function o(_){m.forEach(function(y,C){_===y?(u[y].service.log("serviceAnswerEmpty"),m.splice(C,1),h.push(_),delete u[y]):u[y].children&&u[y].children.indexOf(_)!==-1&&u[y].children.splice(u[y].children.indexOf(_),1)})}function s(_){var y=u[_];y&&(y.children=null)}function a(){var _,y,C,I;for(_=0,y=l.length;_<y;_++)if(C=l[_],(I=C.getAd().doOnEmptyResponseFromId)&&h.indexOf(I)!==-1&&!C.isAfter())return l.splice(_,1),C;return null}function c(_){if(!_)return[];var y,C,I,N=[];for(y=0,C=l.length;y<C;y++)I=l[y],I.sectionType===_&&I.isAfter()&&!I.started()&&N.push(I);return N}function v(_){if(!_)return null;var y,C,I,N;for(y=0,C=l.length;y<C;y++)if(I=l[y],I.sectionType===_&&I.isAfter()&&!I.started()){if((N=I.getAd().doOnEmptyResponseFromId)&&h.indexOf(N)===-1)continue;return I.getAd().allowRepeat||l.splice(y,1),I}return null}function p(_){var y,C,I;for(y=0,C=l.length;y<C;y++)I=l[y],_&&I.sectionType!==_||I.reset()}var l=[],u={},m=[],h=[];return{addService:t,getService:i,getServices:r,removeService:n,resetAll:p,markEmptyService:o,markNonEmptyService:s,getAfterServices:c,getNextAfterService:v,getNextOnEmptyService:a}},typeof define=="function"&&define.amd&&define(function(){"use strict";return AdmanHTML}),AdmanHTML.VpaidLoader=function(){"use strict";function e(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 t=300;return e.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},e.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){}},e.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<t)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>t?(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)}},e.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"))},e.prototype.vpaidMessageHandler=function(i){AdmanHTML.Utils.mixin(this._props,i.props),typeof this.onVpaidCallback=="function"&&this.onVpaidCallback(i.eventType,i.props)},e.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]},e.prototype.callGet=function(i){return this._props[i]},e.prototype.callSet=function(i,n){return i="set"+i.charAt(0).toUpperCase()+i.slice(1),this.call(i,[n])},e.prototype.send=function(i){this.adframe&&(i.id=this.id,this.adframe.contentWindow&&this.adframe.contentWindow.postMessage(JSON.stringify(i),"*"))},e.prototype.onVpaidEvent=function(i){this.onVpaidCallback=i},e.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},e}(),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(e){"use strict";function t(N){if(u){var b=h[N];b&&s("https://r.mail.ru/d"+b+".gif?rnd="+Math.random())}else m.push(N)}function i(N,b){if(!n()){if(N)try{Object.defineProperty(_,N,{writable:!1,enumerable:!0,value:b||Date.now()-c})}catch(x){}else _.sessionId=AdmanHTML.Utils._genSessionId();c=Date.now(),Object.keys(h).length&&s("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+e.version+"&metrics="+encodeURIComponent(JSON.stringify(_))+"&slot="+(v==="slot"?e.slotId:"json"))}}function n(){return["media_error_code","vpaid_error_message","skipped","completed"].some(function(N){return _.hasOwnProperty(N)})}function r(N,b,x){var A=[];if(x)for(var S in x)x.hasOwnProperty(S)&&A.push(S+"="+String(x[S]));var $="";A.length&&($="&"+A.join("&")),I||s("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+e.version+"&"+N+"="+encodeURI(b)+"&slot="+(v==="slot"?e.slotId:"json")+$),e.debugMode&&console&&console.log&&(console.log("MESSAGE: "+N+" = "+b),x&&console.log("MESSAGE EXTRA PARAMS: "+JSON.stringify(x)))}function o(N,b){var x=[];if(b)for(var A in b)b.hasOwnProperty(A)&&x.push(A+"="+String(b[A]));var S="";x.length&&(S="&"+x.join("&")),I||s("https://ad.mail.ru/admanhtml/?app=admanhtml&ver="+e.version+"&error="+encodeURI(N)+"&slot="+(v==="slot"?e.slotId:"json")+S),e.debugMode&&console&&console.warn&&console.warn("Error: "+N)}function s(N){AdmanHTML.Utils.loadImg(N)}function a(N){if(!l){var b="https://ad.mail.ru/vp/"+p+"?original="+(N.slot||"")+"&version="+N.version;l=!0,I?(console.log(b),u=!0):AdmanHTML.Utils.xhr(b,function(x){if(u=!0,x){if(typeof x=="string")try{h=JSON.parse(x.trim())}catch(S){}else typeof x=="object"&&(h=x);var A=m.slice();m=[],A.forEach(t)}})}}var c,v="slot",p=3107,l=!1,u=!1,m=[],h={},_={},y=AdmanHTML.Utils.getPageLocation(),C=AdmanHTML.Utils.getHostname(y||""),I=C.indexOf("localhost")!==-1;return{rb:t,logError:o,logMessage:r,simple:s,metrics:i,initMode:function(N,b){v=N,N==="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 e(c){return c.replace(/-+(.)?/g,function(v,p){return p?p.toUpperCase():""})}function t(c,v,p){var l,u=s[v];if(!u){for(l=0;l<a.length;l++)if(u=a[l]===""?v:e(a[l]+"-"+v),c[u]!==void 0){s[v]=u;break}}c[u]=p}function i(c){return parseInt(c)+"px"}function n(c,v){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,v)}).join(", ")+")":p(c,v)}function r(c,v,p){var l=c.style;(p||Object.keys(v)).forEach(function(u){v.hasOwnProperty(u)&&o(l,u,v[u],v)})}function o(c,v,p,l){var u,m,h;switch(v){case"fontFace":u="fontFamily",m=p;break;case"hasBackground":p||(u="background",m="none",delete l.backgroundColor);break;case"backgroundColor":u="background",m=n(p,l.backgroundAlpha);break;case"cornerRounding":case"borderCornerRounding":u="borderRadius",m=i(Math.floor(p/2));break;case"headerColor":case"bodyColor":case"hyperlinkColor":case"textColor":u="color",m=n(p);break;case"headerSize":case"bodySize":case"hyperlinkSize":case"textSize":u="fontSize",m=i(p);break;case"headerUnderline":case"bodyUnderline":case"hyperlinkUnderline":case"textUnderline":u="text-decoration",m=p?"underline":"none",h="";break;case"headerUnderlineOnRollOver":u="text-decoration",m=p?"":"none",h=p?"":"important";break;case"headerBold":case"bodyBold":case"hyperlinkBold":case"textBold":u="fontWeight",m=p?"bold":"normal";break;case"headerIndent":case"bodyIndent":case"hyperlinkIndent":u="marginTop",m=i(p);break;case"bodyPaddingRight":u="marginRight",m=i(p);break;case"width":case"height":u=v,m=i(p);break;case"contentPadding":case"contentIndent":case"controlsSafeArea":u="padding",m=i(p);break;case"maxImageWidth":case"maxImageHeight":u=v==="maxImageWidth"?"maxWidth":"maxHeight",m=i(p);break;case"borderSize":u="borderWidth",m=i(p);break;case"borderColor":u="borderColor",m=n(p,l.borderAlpha);break;case"paddingLeft":case"paddingTop":u=v==="paddingLeft"?"left":"top",m=i(p);break;case"controlsPaddingTop":case"controlsPaddingRight":u=v==="controlsPaddingRight"?"right":"top",m=i(p)}u&&m&&(h!==void 0?c.setProperty(u,m,h):t(c,u,m))}var s={},a=["","webkit","Moz","O","ms"];return{applyStyle:r,getLength:i}}(),AdmanHTML.Utils=function(){"use strict";function e(){return _e||(_e=function(){try{if(window===window.top)return V;for(var T=window;T!==T.parent;){if(T.document.domain!==T.parent.document.domain)return he;T=T.parent}return Me}catch(k){}return he}())}function t(){if(xe!==null)return xe;var T=window;try{for(;T.parent!==T&&T.document.domain===T.parent.document.domain;)T=T.parent}catch(k){}return xe=T,T}function i(){var T=window,k="",U=t();try{k=T.top.location.href}catch(le){if(U&&U.parent===T.top&&(k=U.document.referrer),!k){var q=T.location.ancestorOrigins;q&&q.length&&(k=q[q.length-1])}}return k||(k=(U||window).document.referrer),k}function n(){return je.major?Le:Be}function r(T){T(n())}function o(T,k){k&&T.addEventListener("load",k,!1);var U=document.getElementsByTagName("head");if(U&&U.length){var q=U[0];q&&q.appendChild(T)}}function s(T,k,U){var q=document.getElementById(k);if(q&&q.parentNode){if(!U)return;q.parentNode.removeChild(q)}q=document.createElement("style"),q.type="text/css",q.id=k,q.innerHTML=T,o(q)}function a(T){var k=document.querySelector("link[href*='"+T+"']");k||(k=document.createElement("link"),k.type="text/css",k.rel="stylesheet",k.href=T,o(k))}function c(T){var k=document.querySelector("script[src*='"+T+"']");k||(k=document.createElement("script"),k.setAttribute("type","text/javascript"),k.setAttribute("charset","utf8"),k.setAttribute("src",T),o(k))}function v(T,k){var U=AdmanHTML.Utils.getPageLocation();if(AdmanHTML.Utils.getHostname(U||"").indexOf("localhost")===-1){var q=new Image;q.onload=function(){k&&k(q)},q.src=T}else console.log(T)}function p(T,k,U,q,le){q=q||"GET";var ge=new XMLHttpRequest;return ge.open(q,T,!0),ge.withCredentials=!le,ge.setRequestHeader("Content-Type","text/plain"),ge.send(U||null),k&&(ge.onreadystatechange=function(){ge.readyState===4&&(ge.status===200?k(ge.response):k())},ge.onerror=function(){le?k():p(T,k,U,q,!0)}),ge}function l(T,k,U,q,le){le===void 0&&(le=!0);var ge=k*U<T*q;le&&(ge=!ge);var ze=ge?q/k:U/T,Qe=Math.floor(T*ze),Y=Math.floor(k*ze);return{x:Math.floor((U-Qe)/2),y:Math.floor((q-Y)/2),width:Math.floor(Qe),height:Math.floor(Y)}}function u(T){return typeof T=="object"&&!!T&&!Array.isArray(T)}function m(T){var k;for(k in T)return!1;return!0}function h(T,k){if(!T)return null;if(k){var U;for(U in k)Object.prototype.hasOwnProperty.call(k,U)&&(T[U]=k[U])}return T}function _(T,k){if(k){var U,q;for(U in k)Object.prototype.hasOwnProperty.call(k,U)&&(q=k[U],u(q)?(T[U]=T[U]||{},T[U]=_(T[U],q)):T[U]=q)}return T}function y(T,k,U){return T=T||0,k=k||0,U=U||1,Math.min(U,Math.max(k,T))}function C(T,k){return T-k}function I(){return Math.floor(Math.random()*Math.pow(2,48)).toString()}function N(T){T=T.split("+").join(" ");for(var k,U={},q=/[?&]?([^=]+)=([^&]*)/g;k=q.exec(T);)U[decodeURIComponent(k[1])]=decodeURIComponent(k[2]);return U}function b(T,k){var U;document.createEvent?(U=document.createEvent("HTMLEvents"),U.initEvent(k,!0,!0)):(U=document.createEventObject(),U.eventType=k),U.eventName=k,document.createEvent?T.dispatchEvent(U):T.fireEvent("on"+U.eventType,U)}function x(T){return T?T.substring(T.indexOf("//")+2,T.indexOf("/?")):""}function A(T){var k=document.createElement("a");return k.href=T,k.hostname}function S(T){return T.replace(/^(www[0-9]?\.)?/,"")}function $(T,k,U){if(!T||!k)return!0;if(T=S(T),k=S(k),!(U&&U.URL&&Array.prototype.includes))return new RegExp("^"+k.replace(/^(\*\.?)/,"([^/]*.)?").replace(/\./g,"\\.")+"$").test(T);try{T=new URL(T);try{return k=new URL(k),T.host.includes(k.host)}catch(q){return T.host.includes(k)}}catch(q){return T.includes(k)}}function L(T){var k=T.button,U=T.which;return U||k===void 0?U:1&k?1:2&k?3:4&k?2:0}function E(T){return L(T)===1}function M(T,k){return k=k||document.body,T!==k&&k.contains(T)}function g(T){return T&&T.nodeType===1}function j(T){var k=T.ownerDocument;return k.defaultView||k.parentWindow}function F(T){T.preventDefault()}function O(T){var k;if(window.DOMParser)k=new DOMParser().parseFromString(T,"text/xml");else{if(!window.ActiveXObject)return;k=new window.ActiveXObject("Microsoft.XMLDOM"),k.async=!1,k.loadXML(T)}return k.documentElement}function P(T){if(T){var k=T.split(":");if(k.length===3){var U=parseInt(k[0],10),q=parseInt(k[1],10),le=k[2].split("."),ge=parseInt(le[0],10),ze=0;if(le.length===2&&(ze=parseInt(le[1],10)),!(isNaN(U)||isNaN(q)||isNaN(ge)||isNaN(ze)))return 3600*U+60*q+ge+ze/1e3}}return NaN}function z(T,k){var U,q=T;for(U in k)k.hasOwnProperty(U)&&(q=q.replace("{{"+U+"}}",k[U]));return q}function W(T,k){if(k=k||0,window.Worker&&window.Blob){var U,q=new Blob(['var timeout; onmessage = function(e) {clearTimeout(timeout); if (e.data === "start") {timeout = setTimeout(function() { postMessage({}); }, '+k+");}}"]);try{U=new Worker(window.URL.createObjectURL(q)),U.onmessage=function(){U.terminate(),T()},U.postMessage("start")}catch(le){return setTimeout(T,k)}return U}return setTimeout(T,k)}function ae(){function T(ze){var Qe={};try{var Y=window[ze].getItem("rb_sync_id");Y&&typeof(Qe=JSON.parse(Y))!="object"&&(Qe={})}catch(ie){}return Qe}var k=[],U=T("localStorage"),q=T("sessionStorage"),le=h(U,q);for(var ge in le)le.hasOwnProperty(ge)&&k.push(ge+"="+encodeURIComponent(le[ge]));return k.join("&")}function J(T){return/nr-vpaid(\.min)?\.js/.test(T)}function ce(T,k){T&&T.style&&G(T,k,!0)}function G(T,k,U){U=U||!1;var q=U?function(le,ge){T.style.setProperty(le,ge,"important")}:function(le,ge){T.style.setProperty(le,ge)};Object.getOwnPropertyNames(k).forEach(function(le){q(le,k[le])})}function we(){function T(Qe,Y){return function(){return Qe.apply(Y,arguments)}}function k(Qe){var Y=Qe.toString(16);return Y.length===1?"0"+Y:Y}function U(Qe,Y,ie){for(var pe="",De=Y;De<=ie;De++)pe+=k(Qe[De]);return pe}var q="undefined",le=typeof crypto!==q&&crypto.getRandomValues&&T(crypto.getRandomValues,crypto)||typeof msCrypto!==q&&window.msCrypto.getRandomValues&&T(window.msCrypto.getRandomValues,window.msCrypto),ge=function(){if(le){var Qe=new Uint8Array(16);return function(){return le(Qe),Qe}}var Y=new Array(16);return function(){for(var ie,pe=0;pe<16;pe++)(3&pe)==0&&(ie=4294967296*Math.random()),Y[pe]=ie>>>((3&pe)<<3)&255;return Y}}(),ze=ge();return ze[6]=15&ze[6]|64,ze[8]=63&ze[8]|128,U(ze,0,3)+"-"+U(ze,4,5)+"-"+U(ze,6,7)+"-"+U(ze,8,9)+"-"+U(ze,10,15)}function Z(T,k){var U=AdmanHTML.Constants.AD_ACTIONS_DEFAULT_CONFIG,q=[k,T].reduce(function(le,ge){return ge&&Object.keys(U).forEach(function(ze){le[ze]!==ge[ze]&&(le[ze]=ge[ze]?ge[ze]:le[ze]),typeof ge.members=="object"&&(le.members=ge.members)}),le},Object.assign({},U));return He(q)?q:U}function He(T){return!!Array.isArray(T.members)&&(T.members.forEach(function(k){if(["adchoice","disclaimer","timer"].indexOf(k)===-1)return!1}),typeof T.positionX=="string"&&["left","right"].indexOf(T.positionX)!==-1&&typeof T.positionY=="string"&&["top","bottom"].indexOf(T.positionY)!==-1&&typeof T.offsetX=="string"&&typeof T.offsetY=="string"&&!(typeof T.disclaimerText!="string"||!T.disclaimerText.length)&&!(typeof T.headerText!="string"||!T.headerText.length)&&!(typeof T.aboutText!="string"||!T.aboutText.length)&&!(typeof T.copyText!="string"||!T.copyText.length))}function oe(T){T=T||navigator.userAgent;var k=!1;return function(U){(/(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(U)||/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(U.substr(0,4)))&&(k=!0)}(T),k}var _e,V=1,Me=2,he=3,xe=null,Be=0,Le=1,je=function(){var T="undefined",k="Shockwave Flash",U="application/x-shockwave-flash",q={major:0,minor:0,release:0},le=null;if(typeof navigator.plugins!==T&&typeof navigator.plugins[k]=="object")(le=navigator.plugins[k].description)&&typeof navigator.mimeTypes!==T&&navigator.mimeTypes[U]&&navigator.mimeTypes[U].enabledPlugin&&(le=le.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),q.major=parseInt(le.replace(/^(.*)\..*$/,"$1"),10),q.minor=parseInt(le.replace(/^.*\.(.*)\s.*$/,"$1"),10),q.release=/[a-zA-Z]/.test(le)?parseInt(le.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof window.ActiveXObject!==T)try{var ge=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash");ge&&(le=ge.GetVariable("$version"))&&(le=le.split(" ")[1].split(","),q.major=parseInt(le[0],10),q.minor=parseInt(le[1],10),q.release=parseInt(le[2],10))}catch(ze){}return q}();return{setStyle:ce,isNRVpaid:J,addCss:s,loadCss:a,loadJs:c,loadImg:v,xhr:p,scaleBySide:l,isEmptyObject:m,mixin:h,deepExtend:_,validateMinMax:y,numSorter:C,createIntUID:I,getQueryParams:N,triggerEvent:b,getUserIdQuery:ae,getPageLocation:i,getDomain:x,getHostname:A,_genSessionId:we,matchHostname:$,isLeftButtonPressed:E,isElementInDocument:M,isElement:g,getElementViewport:j,preventDefault:F,parseXml:O,convertDuration:P,renderTemplate:z,setTimeout:W,checkFlash:n,checkFlashAsync:r,FLASH_READY:Le,FLASH_MISSING:Be,getServingType:e,servingTypes:{ON_PAGE:V,S_FRAME:Me,XD_FRAME:he},adActionsConfigPrepare:Z,isMobile:oe}}(),AdmanHTML.Viewability=function(){"use strict";function e(O,P,z){return O.forEach(function(W){W.duration=P.focus&&P.percent>=W.threshold?W.duration+z:0}),O}function t(O){O.forEach(function(P){P.duration=0})}function i(O){return new window.IntersectionObserver(function(P){P&&P.length&&P[0].intersectionRatio!==void 0&&(O(P[0].intersectionRatio),!M&&(P[0].intersectionRatio>0||P[0].isIntersecting)&&(M=!0,y.log("viewin")))},{threshold:j})}function n(){return $?!document[$]:A===S.XD_FRAME||!window.top.document.hasFocus||window.top.document.hasFocus()}function r(){var O=o();if(O.state!=="UNDETERMINED")return e(F,O,b),y&&(y.logMRC(F)||_()),O}function o(){var O,P,z=n();return x?(O=g,P="DETERMINED"):A!==S.XD_FRAME?(O=s(C).percent,P="DETERMINED"):(O=0,P="UNDETERMINED"),{percent:O,focus:z,state:P,viewinOccured:M}}function s(O,P){try{var z=O.getBoundingClientRect(),W=a(z),ae=AdmanHTML.Utils.getElementViewport(O)||window;for(P=P||window.top;ae!==P;){var J=ae.frameElement.getBoundingClientRect();z=c(z,J),z.left=Math.max(J.left,z.left),z.right=Math.min(J.right,z.right),z.top=Math.max(J.top,z.top),z.bottom=Math.min(J.bottom,z.bottom),z.right<z.left&&(z.right=z.left),z.bottom<z.top&&(z.bottom=z.top),ae=ae.parent}z=v(z,P);var ce=a(z);return z.percent=ce/W*100,z}catch(G){return{left:0,right:0,top:0,bottom:0,percent:0}}}function a(O){return(O.right-O.left)*(O.bottom-O.top)}function c(O,P){return{left:O.left+P.left,right:O.right+P.left,top:O.top+P.top,bottom:O.bottom+P.top}}function v(O,P){var z={},W=p(P);return z.left=Math.max(0,O.left),z.right=Math.min(W.width,O.right),z.top=Math.max(0,O.top),z.bottom=Math.min(W.height,O.bottom),z}function p(O){var P={width:1/0,height:1/0};return!isNaN(O.document.body.clientWidth)&&O.document.body.clientWidth>0&&(P.width=O.document.body.clientWidth),!isNaN(O.document.body.clientHeight)&&O.document.body.clientHeight>0&&(P.height=O.document.body.clientHeight),O.document.documentElement&&O.document.documentElement.clientWidth&&!isNaN(O.document.documentElement.clientWidth)&&(P.width=O.document.documentElement.clientWidth),O.document.documentElement&&O.document.documentElement.clientHeight&&!isNaN(O.document.documentElement.clientHeight)&&(P.height=O.document.documentElement.clientHeight),O.innerWidth&&!isNaN(O.innerWidth)&&(P.width=Math.min(P.width,O.innerWidth)),O.innerHeight&&!isNaN(O.innerHeight)&&(P.height=Math.min(P.height,O.innerHeight)),P}function l(O,P,z){if(y=P,E=!z,C=O,x)N=N||i(function(W){g=100*W}),N.observe(O);else if(A===S.XD_FRAME)return L=!1,void y.log("viewabilityUnmeasurable");z||(I=setInterval(r,b)),L=!0,y.log("viewabilityMeasurable"),window.addEventListener("unload",u)}function u(){h("unload")}function m(){I||(I=setInterval(r,b))}function h(O){L&&y&&E&&y.logMRC([],O||"complete"),y=null,L=!1,E=!1,C=null,clearInterval(I),I=void 0,t(F),N&&N.disconnect(),window.removeEventListener("unload",u)}function _(){I&&(clearInterval(I),I=void 0,t(F))}var y,C,I,N,b=255,x=!!window.IntersectionObserver,A=AdmanHTML.Utils.getServingType(),S=AdmanHTML.Utils.servingTypes,$=function(){for(var O=["h","webkitH","mozH","msH","oH"],P=0;P<O.length;P++)if(document[O[P]+"idden"]!==void 0)return O[P]+"idden";return""}(),L=!1,E=!1,M=!1,g=0,j=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],F=[];return j.forEach(function(O){F.push({threshold:Math.round(100*O),duration:0})}),{start:l,pause:_,resume:m,stop:h,getViewabilityState:o}},AdmanHTML.AdRenderer=function(e,t){"use strict";function i(){N.wrapperEl=N.wrapperEl||e.wrapper,N.mainEl=N.mainEl||document.createElement("div"),N.clickEl=N.clickEl||N.mainEl,AdmanHTML.Utils.isElement(N.mainEl)&&!N.mainEl.parentNode&&(N.wrapperEl.childNodes.length?N.wrapperEl.insertBefore(N.mainEl,N.wrapperEl.childNodes[0]):N.wrapperEl.appendChild(N.mainEl),I=!0),N.clickEl.addEventListener("click",N.onClick),window.addEventListener("resize",m)}function n(A){A()}function r(){e.viewability.stop(),window.removeEventListener("resize",m),N.clickEl&&N.clickEl.removeEventListener("click",N.onClick),clearTimeout(_),AdmanHTML.Utils.isElement(N.mainEl)&&I&&N.mainEl.parentNode&&N.mainEl.parentNode.removeChild(N.mainEl)}function o(){if(!b&&(b=!0,clearTimeout(_),y)){var A=Date.now()-y;C=1e3*x.duration-A}}function s(){b&&(b=!1,a())}function a(){y=Date.now();var A=C||1e3*x.duration;_=setTimeout(function(){r(),e.cb("onCompleted")},A)}function c(){x.urlToNavigateOnClick&&(x.openLinkInPopup?e.openPopup(x.urlToNavigateOnClick||x.trackingLink):window.open(x.urlToNavigateOnClick,"_blank"),t.log("click"),e.cb("onClicked"))}function v(A){e.cb("onStarted",[t.sectionType,AdmanHTML.Utils.mixin(t.getAdForApp()||{},A||{})]),t.log("playbackStarted")}function p(A,S){var $=parseInt(A/S*100);e.cb("onTimeRemained",[{remained:S-A,percent:$,duration:S,currentTime:A}]),A=parseInt(A),t.log("thresholdPValue",$),t.log("thresholdValue",A),t.logOVV(A,$)}function l(A,S){typeof A!="string"&&A?N.mainEl.appendChild(A):N.mainEl.innerHTML=A,AdmanHTML.Utils.mixin(N.mainEl.style,S)}function u(A){N.wrapperEl=A}function m(){N.onResize(N.mainEl.offsetWidth,N.mainEl.offsetHeight)}function h(){}var _,y,C,I,N={},b=!1,x=t.getAd();return N={start:i,pause:o,resume:s,skip:n,dispose:r,onClick:c,onStart:v,registerTimer:a,setView:l,setWrapper:u,onTimeRemained:p,onResize:h}},AdmanHTML.AudioAdRenderer=function(e,t){"use strict";function i(){s.mainEl=e.audioEl||document.createElement("audio"),a.forEach(function(c){s.mainEl.addEventListener(c,r)}),e.audioEl||s.setView(null,{position:"absolute",width:"1px",height:"1px",top:"-10000px",left:"-10000px"}),o=t.getAd().duration,s.mainEl.src=t.getAd().src,s.mainEl.load(),t.log("render"),s.mainEl.play(),e.audioEl||s.start()}function n(){s.dispose(),a.forEach(function(c){s.mainEl.removeEventListener(c,r)})}function r(c){var v,p;switch(c.type){case"loadedmetadata":s.onStart();break;case"play":e.cb("onPlayed");break;case"pause":e.cb("onPaused");break;case"timeupdate":v=s.mainEl.duration,p=s.mainEl.currentTime,!isNaN(v)&&o&&Math.abs(o-v)>1&&(v=o,p=Math.min(p,v)),s.onTimeRemained(p,v);break;case"ended":e.cb("onCompleted");break;case"error":e.cb("onError")}}var o,s=new AdmanHTML.AdRenderer(e,t),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 v=s.mainEl.muted?0:s.mainEl.volume;s.mainEl.muted=c===0,s.mainEl.volume=c,(v===0&&c>0||v>0&&c===0)&&t.log(c?"volumeOn":"volumeOff")}}},AdmanHTML.CallToActionBtnRenderer=function(e,t){"use strict";function i(){this.isRendered=!1,this.background="#1a79ff",this.boxShadow="0px 0px 4px 0px #0000000F",this.ctaButtonEl=document.createElement("div"),this.ctaButtonEl.className="rb-adman-cta-btn",this.ctaButtonTextEl=document.createElement("span"),this.ctaButtonTextEl.className="rb-adman-cta-btn-text",this.ctaButtonEl.appendChild(this.ctaButtonTextEl)}function n(h){h.propertyName==="transform"&&h.target===l&&m.moveWithControls()}function r(){u.start(),p=t.getAd(),v=t.getSettings(),l=document.querySelector("div.videoplayer_controls");var h=AdmanHTML.Utils.adActionsConfigPrepare(p?p.adActionsConfig:null,v?v.adActionsConfig:null);if(!p.ctaWebEnabled||h.positionY==="bottom"&&h.positionX==="left")return void(a=Function.prototype);m.setText(p.ctaText),m.setStyles(),c=o(),m.setCustomStyles(c),m.addListeners(),m.appendTo(e.wrapper),a=function(){m.destroy()},l&&l.addEventListener("transitionstart",n)}function o(){return[e,p,v].reduce(function(h,_){return Object.keys(h).length||typeof _.ctaStyles!="object"?h:_.ctaStyles},{})}function s(){l&&l.removeEventListener("transitionstart",n),a&&a(),u.dispose()}if(!e.callToActionButton)return{render:Function.prototype,dispose:Function.prototype};var a,c,v,p,l,u=new AdmanHTML.AdRenderer(e,t);i.prototype._setStyles=function(h,_){AdmanHTML.Utils.setStyle(h,_)},i.prototype.setStyles=function(){this._setStyles(this.ctaButtonEl,{position:"absolute","font-family":"Roboto","font-style":"normal","font-weight":"500","font-size":"14px","line-height":"18px",transition:"background-color .15s ease-out,opacity .15s ease-out, transform 250ms cubic-bezier(0.455, 0.03, 0.515, 0.955)",border:"0.5px solid "+this.background,"box-shadow":this.boxShadow,height:"36px",cursor:"pointer",display:"flex","flex-direction":"row","align-items":"center",padding:"0px 20px",gap:"8px",background:this.background,"border-radius":"8px",color:"#FFF",bottom:l?"20px":"16%",left:"20px"})},i.prototype.setCustomStyles=function(h){h.background&&(this.background=h.background),this._setStyles(this.ctaButtonEl,h)},i.prototype.setText=function(h){this.ctaButtonTextEl.innerText=h&&typeof h=="string"?h:"Перейти"},i.prototype.removeFromDOM=function(){this.ctaButtonEl.remove()},i.prototype.addListeners=function(){this.ctaButtonEl.addEventListener("mouseover",this._hoverCTABtnListener.bind(this,!0)),this.ctaButtonEl.addEventListener("mouseout",this._hoverCTABtnListener.bind(this,!1)),this.ctaButtonEl.addEventListener("click",this._clickCTABtnListener.bind(this))},i.prototype.removeListeners=function(){this.ctaButtonEl.removeEventListener("mouseover",this._hoverCTABtnListener.bind(this,!0)),this.ctaButtonEl.removeEventListener("mouseout",this._hoverCTABtnListener.bind(this,!1)),this.ctaButtonEl.removeEventListener("click",this._clickCTABtnListener.bind(this))},i.prototype.destroy=function(){this.removeListeners(),this.removeFromDOM()},i.prototype._clickCTABtnListener=function(){var h=p.ctaLink||p.urlToNavigateOnClick;p.openLinkInPopup?e.openPopup(h||p.trackingLink):window.open(h,"_blank"),t.log(["ctaClick","click"]),e.cb("onClicked")},i.prototype._hoverCTABtnListener=function(h){this._setStyles(this.ctaButtonEl,{background:h?"#1460C9":this.background,"box-shadow":h?"0px 4px 8px 0px #0000000A":this.boxShadow})},i.prototype.appendTo=function(h){h&&(h.appendChild(this.ctaButtonEl),this.isRendered=!0)},i.prototype.moveWithControls=function(){var h=l.classList.contains("hidden");this.ctaButtonEl.style.setProperty("transform","translateY("+(h?"0":"-"+Math.round(l.offsetHeight))+"px)")};var m=new i;return{render:r,dispose:s}},AdmanHTML.CloseBtnRenderer=function(e,t){"use strict";function i(){o.start();var p=t.getSettings(),l=p.controlsStyle||0,u=s[l],m=a[l];m.bg=m.bg||m.width;var h={};for(var _ in v)v.hasOwnProperty(_)&&(h[_]=p[_]!==void 0?p[_]:v[_]);if(h.controlsPaddingTop=h.controlsPaddingTop-h.controlsSafeArea,h.controlsPaddingRight=h.controlsPaddingRight-h.controlsSafeArea,o.setView(AdmanHTML.Utils.renderTemplate(c,{img:u,width:m.width,height:m.height,bg:m.bg}),{position:"absolute",cursor:"pointer"}),AdmanHTML.StyleUtils.applyStyle(o.mainEl,h),m.bg!==m.width){var y=m.bg-m.width,C=function(N){N.target.className==="rb-adman_close"&&(N.target.style.backgroundPosition="-"+y+"px 0")},I=function(N){N.target.className==="rb-adman_close"&&(N.target.style.backgroundPosition="0 0")};o.mainEl.addEventListener("mouseover",C),o.mainEl.addEventListener("mouseout",I),r=function(){o.mainEl.removeEventListener("mouseover",C),o.mainEl.removeEventListener("mouseout",I)}}}function n(){r&&r(),o.dispose()}var r,o=new AdmanHTML.AdRenderer(e,t),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>',v={controlsPaddingTop:3,controlsPaddingRight:0,controlsSafeArea:0};return o.onClick=function(p){p.stopPropagation(),p.target.className==="rb-adman_close"&&e.cb("onClosed")},{start:i,dispose:n,setWrapper:o.setWrapper}},AdmanHTML.DebugAdRenderer=function(e,t){"use strict";function i(){n.mainEl=document.createElement("span"),n.start(),n.setView("&#9874; "+t.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(e,t),r=t.getAd();return n.onClick=function(){window.open(r.urlToNavigateOnClick,"_blank")},{start:i,dispose:n.dispose}},AdmanHTML.DisclaimerRenderer=function(e,t){"use strict";function i(l,u,m,h){var _=document.createElement("style");_.appendChild(document.createTextNode(" @font-face { font-family: "+l+"; font-style: normal; font-weight: 300; unicode-range: "+h+"; src: url('"+u+"') format('"+m+"'); } ")),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(){v.start();var l=t.getSettings(),u=t.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 m={originalBannerId:u.bannerID,cipherBannerID:u.cipherBannerID?u.cipherBannerID:null,bannerOrdId:u.ordID||null,advData:u.advData||null},h=AdmanHTML.Utils.adActionsConfigPrepare(u?u.adActionsConfig:null,l?l.adActionsConfig:null);p.build(h,m),p.init(),p.addListeners(),p.appendTo(e.wrapper),a=function(){p.destroy()}}function o(l,u){var m=Math.floor(u-l);m||(m="00"),p.updateRemainTime(m)}function s(){a&&a(),c&&typeof c=="object"&&typeof c.remove=="function"&&c.remove(),v.dispose()}if(!e.disclaimer)return{render:Function.prototype,onTimeRemained:Function.prototype,dispose:Function.prototype};var a,c,v=new AdmanHTML.AdRenderer(e,t);[{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(m){switch(m){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),m=l-60*u;u=u.toString(),m=m.toString(),m.length===1&&(m="0"+m),this.remainTimeEl.innerText=u+":"+m},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",m=this.data.advData?this.data.advData:this.data.cipherBannerID;window.open(this._advPageUrlPart+u+"="+m,"_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,m=this.actionsWrapperWidth+parseInt(this.adActionsEl.style.paddingLeft)+parseInt(this.adActionsEl.style.paddingRight);(u?parseInt(u):m+1)<=m&&(this.isSmall=!0,this._setStyles(this.adActionsEl,{"border-radius":"6px","font-size":"12px",padding:"5px 6px 5px 8px"}))}catch(h){console.warn("Failed detect small wrapper size",h)}this.appendedTo=l,l.appendChild(this.adActionsEl)}},n.prototype.getEl=function(){return this.adActionsEl},n.prototype.destroy=function(){this.removeListeners(),this.removeFromDOM()},n.prototype.removeFromDOM=function(){this.adActionsEl.remove()},n.prototype.removeListeners=function(){this.actionsAboutEl.removeEventListener("mouseover",this._setHoverActionsAboutListener.bind(this,!0)),this.actionsAboutEl.removeEventListener("mouseout",this._setHoverActionsAboutListener.bind(this,!1)),this.actionsCopyEl.removeEventListener("mouseover",this._setHoverActionsCopyListener.bind(this,!0)),this.actionsCopyEl.removeEventListener("mouseout",this._setHoverActionsCopyListener.bind(this,!1)),this.actionsHeaderButton.removeEventListener("mouseover",this._setHoverActionsHeaderButton.bind(this,!0)),this.actionsHeaderButton.removeEventListener("mouseout",this._setHoverActionsHeaderButton.bind(this,!1)),this.adActionsEl.removeEventListener("mouseover",this._setAdActionsHoverListener.bind(this,!0)),this.adActionsEl.removeEventListener("mouseout",this._setAdActionsHoverListener.bind(this,!1)),this.adActionsEl.removeEventListener("click",this._clickListener.bind(this)),this.actionsHeaderButton.removeEventListener("click",this._actionsHeaderButtonListener.bind(this))};var p=new n;return p.preBuild(),{render:r,onTimeRemained:o,dispose:s}},AdmanHTML.EmptyAdRenderer=function(e,t){"use strict";function i(){t.log("sectionEmpty"),setTimeout(function(){e.cb("onCompleted")})}return{start:i}},AdmanHTML.HtmlAdRenderer=function(e,t){"use strict";function i(){A.start(),M=t.getAd(),N=M.duration,I=C(),I.width="100%",I.height="100%",I.setAttribute("style","display:block;width:100%;height:100%"),A.setView(I,{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"transparent"}),AdmanHTML.Utils.isElement(e.videoEl)&&e.videoEl.parentNode===A.mainEl.parentNode&&A.mainEl.parentNode.insertBefore(A.mainEl,e.videoEl.nextSibling),I.contentWindow||I.contentDocument?r():I.onload=function(G){r()},$&&$.render(),S&&S.render()}function n(G){G.preventDefault(),G.stopPropagation(),t.log("click"),e.cb("onClicked"),e.openPopup(M.urlToNavigateOnClick||M.trackingLink)}function r(){function G(){var we=I.contentWindow.document.body||I.contentDocument.body;we&&we.addEventListener("click",n,!0)}E=I.contentWindow?I.contentWindow.document:I.contentDocument,E.open(),O?(E.write('<!DOCTYPE html><html style="width: 100%; height: 100%"><head></head><body>'),E.write(M.src),E.write("</body></html>"),z=document.querySelector("div.videoplayer_controls"),z&&(W=z.style.display,z.style.display="none"),(ae=document.querySelector("div.videoplayer_ads_skip"))&&(J=ae.style.display,ae.style.display="none")):(E.write(M.src),t.log("render")),E.close(),L=AdmanHTML.Utils.getElementViewport(e.wrapper),L.addEventListener("message",l),M.openLinkInPopup&&(M.urlToNavigateOnClick||M.trackingLink)&&(I.contentWindow.document.body||I.contentDocument.body?G():I.onload=G),e.viewability.start(A.mainEl,t),c(),A.onStart()}function o(){g||(g=!0,j+=Date.now()-F,clearInterval(b),b=null,z?z.style.display=W:O&&u("pauseAd",[]),e.cb("onPaused"))}function s(){return M.creativeType==="video-motion"}function a(){g&&(g=!1,c(),e.cb("onPlayed"))}function c(){if(!b){if(O){if(!P)return;z?z.style.display="none":u("startAd",[])}b=setInterval(p,251),F=Date.now(),g=!1}}function v(){ce||e.cb("onCompleted")}function p(){j+=Date.now()-F,F=Date.now(),A.onTimeRemained(j/1e3,N),O?u("timeUpdateAd",[j/1e3,N]):$.onTimeRemained(j/1e3,N),j>=1e3*N&&(clearInterval(b),b=null,v())}function l(G){if(G.source===I.contentWindow){if(O&&typeof G.data=="object")return void m(G.data);try{switch(JSON.parse(G.data).type){case"trg:click":t.log("click"),e.cb("onClicked")}}catch(we){}}}function u(G,we){if(typeof I=="object"&&typeof I.contentWindow=="object")try{var Z=I.contentWindow.origin;I.contentWindow.postMessage({initiator:"render-runner",id:x,method:G,args:we},Z)}catch(He){}}function m(G){if(O&&typeof G=="object"&&G.initiator==="render-runner"&&Array.isArray(G.args)&&G.args[0]===x)switch(G.event){case"AdStarted":P=!0,c();break;case"AdCanPlay":t.log("render");break;case"HeaderClick":t.log("click"),e.cb("onClicked",{type:"header"});break;case"ItemClick":t.log("card_"+G.args[1]+"_click"),e.cb("onClicked",{type:"card",cardId:G.args[1]});break;case"ItemShow":t.log("card_"+G.args[1]+"_show");break;case"AdClickThru":t.log("click"),e.cb("onClicked",{type:"common"});break;case"AdError":e.cb("onError",G.args[1]);break;case"ClosedByUser":t.log("closedByUser"),e.cb("onClosed"),e.cb("onSkipped"),ce=null,y();break;case"UserAction":ce=Date.now()}}function h(){z&&(z.style.display=W),ae&&(ae.style.display=J)}function _(){b&&clearInterval(b),b=null,h(),L.removeEventListener("message",l)}function y(){_(),A.dispose(),$&&$.dispose(),S&&S.dispose()}function C(){var G=document.createElement("iframe");return G.scrolling="no",G.marginWidth="0",G.marginHeight="0",G.frameBorder="0",G.id="ad-frame-"+Math.round(1e5*Math.random()),G.onclose=h,G}var I,N,b,x,A=new AdmanHTML.AdRenderer(e,t),S=new AdmanHTML.CallToActionBtnRenderer(e,t),$=null,L=null,E=null,M=t.getAd(),g=!1,j=0,F=0,O=s(),P=!1,z=null,W="flex",ae=null,J="block",ce=null;return O?x="b"+M.bannerID:$=new AdmanHTML.DisclaimerRenderer(e,t),A.onClick=function(){},{start:i,pause:o,resume:a,skip:A.skip,dispose:y}},AdmanHTML.ImgAdRenderer=function(e,t){"use strict";function i(){r.start(),r.registerTimer(),AdmanHTML.Utils.addCss(c,a);var p=t.getAd();r.setView(AdmanHTML.Utils.renderTemplate(v,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=t.getSettings(),u=r.mainEl.querySelector(".rb-adman_age_wrapper");if(l&&l.advertisment&&l.advertisment.image){var m=l.advertisment.image;AdmanHTML.StyleUtils.applyStyle(r.mainEl,m,"fontFace contentIndent hasBackground backgroundColor backgroundAlpha cornerRounding".split(" ")),AdmanHTML.StyleUtils.applyStyle(r.mainEl.querySelector(".rb-adman_image_wrapper"),m,"borderSize borderColor borderAlpha borderCornerRounding".split(" "));var h=l.advertisment.image.ageRestrictions;p.ageRestrictions&&h&&(AdmanHTML.StyleUtils.applyStyle(u,h),AdmanHTML.StyleUtils.applyStyle(u.querySelector(".rb-adman_age_content"),h,["textUnderline"]))}p.ageRestrictions||u.parentNode.removeChild(u),o.setWrapper(r.mainEl),o.start(),r.onStart(),s.render(),t.log("render")}function n(){r.dispose(),o.dispose(),s.dispose()}var r=new AdmanHTML.AdRenderer(e,t),o=new AdmanHTML.CloseBtnRenderer(e,t),s=new AdmanHTML.DisclaimerRenderer(e,t),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}",v='<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(e){"use strict";function t(){for(var c=window;c.parent&&c.parent.frameElement;)c=c.parent;return c}function i(c){e.isPopupOpen=!0,e.pause(),s=n(c)}function n(c){s=a.createElement("div"),r(),s.classList.add("rb-adman-popup");var v=a.createElement("div");v.classList.add("rb-adman-popup-body"),s.appendChild(v);var p=a.createElement("div");p.classList.add("rb-adman-popup-closeButton");var l=s;o=function(){l.remove(),l=null,e.resume(!0),e.isPopupOpen=!1},p.onclick=o,v.appendChild(p);var u=a.createElement("iframe");u.classList.add("rb-adman-popup-frame"),u.setAttribute("src",c),v.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=t().document;return{open:i,close:o}},AdmanHTML.ResearchAdRenderer=function(e,t){"use strict";function i(x,A){var S=[];return x.forEach(function($){$.name===A&&S.push($)}),S}function n(x,A,S){return A<=x&&(!S||S>=x)}function r(){!_&&h&&(_=!0,t.log("playbackPaused"))}function o(){_&&h&&(_=!1,t.log("playbackResumed"))}function s(){h=!1,_=!1,m.stop()}function a(x){var A=!x;A!==y&&(y=A,t.log(A?"volumeOff":"volumeOn"))}function c(){h&&(I&&p(I,I),l&&N.forEach(function(x){x.completed||(x.completed=!0,!x.viewable&&AdmanHTML.Utils.loadImg(x.url))}),s())}function v(x){t.log(x?"fullscreenOn":"fullscreenOff")}function p(x,A){if(!isNaN(x)){h||(h=!0,m.start(e.playerEl,t,!0),t.log("playbackStarted")),x=Math.round(x);var S=C!==null?x-C:null;if(C=x,t.log("thresholdValue",x),!isNaN(A)&&isFinite(A)&&A>0&&(A=Math.round(A),I=A,t.log("thresholdPValue",Math.floor(x/A*100))),S<0&&t.log("rewind"),b.forEach(function(E){if(n(x,E.start,E.end)){var M=Math.floor((x-E.start)/E.rate);M>0&&E.last!==M&&(E.last=M,AdmanHTML.Utils.loadImg(E.url.replace("[CONTENTPLAYHEAD]",x)))}else E.last=null}),l!==!1&&S!==0){var $,L=S<0||S>1;N.forEach(function(E){if(n(x,E.start,E.end)&&!E.completed){$=$||m.getViewabilityState(),l=$.state==="DETERMINED";var M=$.percent>E.percent&&$.focus;E.duration=E.duration||0,E.lastViewable&&M&&!L?E.duration+=S:E.duration=0,E.lastViewable=M,E.duration>=E.value&&(E.completed=!0,E.viewable&&AdmanHTML.Utils.loadImg(E.url))}else E.duration=0,E.lastViewable=!1})}}}var l,u=t.getExtendedAdForApp().statistics,m=new AdmanHTML.Viewability,h=!1,_=!1,y=!1,C=null,I=null,N=i(u,"mrcValue"),b=i(u,"timerValue");return{pause:r,resume:o,setVolume:a,setPosition:p,setComplete:c,setFullscreen:v}},AdmanHTML.StatisticsAdRenderer=function(e,t){"use strict";function i(){t.log("playbackStarted"),AdmanHTML.Utils.setTimeout(function(){e.cb("onCompleted")})}return{start:i}},AdmanHTML.SwfAdRenderer=function(e,t){"use strict";function i(){r.start(),AdmanHTML.Utils.checkFlashAsync(function(o){o===AdmanHTML.Utils.FLASH_READY?(r.registerTimer(),r.setView(n(t.getAd().src,{width:"100%",height:"100%"},{}),{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"black"}),t.log("render"),r.onStart()):e.cb("onError")})}function n(o,s,a){var c,v,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,v="<object";for(c in p)p.hasOwnProperty(c)&&(v+=" "+c+'="'+p[c]+'"');v+=">";for(c in l)l.hasOwnProperty(c)&&(v+='<param name="'+c+'" value="'+l[c]+'" />');return v+="</object>"}var r=new AdmanHTML.AdRenderer(e,t);return{start:i,skip:r.skip,dispose:r.dispose,createSwfObject:n,super:r}},AdmanHTML.TextAdRenderer=function(e,t){"use strict";function i(){r.start(),r.registerTimer(),AdmanHTML.Utils.addCss(c,a);var p=AdmanHTML.Utils.mixin({header:"",body:"",hyperlinkText:""},t.getAd());r.setView(AdmanHTML.Utils.renderTemplate(v,p),{position:"absolute",margin:"0 auto",left:0,right:0,bottom:0,"box-sizing":"border-box",overflow:"hidden"});var l=t.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 m=l.advertisment.text.ageRestrictions,h=r.mainEl.querySelector(".rb-adman_age_wrapper");p.ageRestrictions?m&&(AdmanHTML.StyleUtils.applyStyle(h,m),AdmanHTML.StyleUtils.applyStyle(h.querySelector(".rb-adman_age_content"),m,["textUnderline"])):h.parentNode.removeChild(h);var _=r.mainEl.querySelector(".rb-adman_image_wrapper span");if(u.noImage)_.parentNode.removeChild(_);else if(u.contentPadding&&(_.style.marginRight=AdmanHTML.StyleUtils.getLength(u.contentPadding)),u.maxImageHeight||u.maxImageWidth){var y=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(),t.log("render"),r.onStart()}function n(){r.dispose(),o.dispose(),s.dispose()}var r=new AdmanHTML.AdRenderer(e,t),o=new AdmanHTML.CloseBtnRenderer(e,t),s=new AdmanHTML.DisclaimerRenderer(e,t),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}",v='<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(e,t){"use strict";function i(){l.mainEl=e.videoEl,l.clickEl=e.clickEl||l.mainEl,h.forEach(function(b){l.mainEl.addEventListener(b,s)}),l.mainEl.parentNode?C={src:l.mainEl.src,time:l.mainEl.currentTime,muted:l.mainEl.muted}:l.setView(null,{position:"absolute",width:"100%",height:"100%",top:0}),l.mainEl.controls=e.browser.mobile,l.mainEl.src=t.getAd().src,l.mainEl.load(),t.log("render"),c(0),v=l.mainEl.play(),v&&v.then&&v.then(a,function(){l.mainEl.muted=!0,v=l.mainEl.play(),v.then(a,function(){})}),l.start(),u.render(),m.render()}function n(b){return b.indexOf("videolink.mycdn.me")!==-1}function r(){u.dispose(),m.dispose(),l.dispose(),h.forEach(function(b){l.mainEl.removeEventListener(b,s)}),C.src?(l.mainEl.src=C.src,l.mainEl.load(),l.mainEl.play(),c(C.time)):(l.mainEl.src="",l.mainEl.removeAttribute&&l.mainEl.removeAttribute("src"))}function o(b){if(b.indexOf("mradx")!==-1)return"rb";if(b.indexOf("videolink.mycdn.me")!==-1)return"ev";var x=new URL(b);return"evcdn:"+("hostname"in x?x.hostname:"")}function s(b){switch(b.type){case"loadstart":p=Date.now();break;case"loadeddata":I||(I=!0,N=Date.now()-p,e.stats.logMessage("firstLoadedData",N,{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":e.stats.metrics("ready"),e.stats.metrics("creative_type","video"),u.onTimeRemained(l.mainEl.currentTime,l.mainEl.duration);break;case"playing":v||a();break;case"play":e.cb("onPlayed");break;case"pause":e.cb("onPaused");break;case"timeupdate":l.onTimeRemained(l.mainEl.currentTime,l.mainEl.duration),u.onTimeRemained(l.mainEl.currentTime,l.mainEl.duration);break;case"ended":e.playStatus||(e.playStatus={}),e.playStatus.prevStatus=e.playStatus.curStatus,e.playStatus.curStatus="pause",e.cb("onCompleted"),e.stats.metrics("completed");break;case"error":var x=b.target&&typeof b.target=="object"&&b.target.error&&typeof b.target.error=="object"&&b.target.error.code?b.target.error.code:"unknown_code",A="video_el_err_code:"+x;e.stats.logError(A),e.stats.metrics("media_error_code",x),e.cb("onError")}}function a(){if(!_){_=!0;var b=AdmanHTML.Utils.isElement(l.mainEl)?l.mainEl:l.wrapperEl;e.viewability.start(b,t),l.onStart({muted:l.mainEl.muted})}}function c(b){if(l.mainEl)try{l.mainEl.currentTime=b}catch(x){}}var v,p,l=new AdmanHTML.AdRenderer(e,t),u=new AdmanHTML.DisclaimerRenderer(e,t),m=new AdmanHTML.CallToActionBtnRenderer(e,t),h=["loadstart","loadeddata","loadedmetadata","error","pause","play","playing","timeupdate","ended"],_=!1,y=t.getAd(),C={},I=!1,N=null;return{start:function(){e.playStatus||(e.playStatus={}),e.playStatus.prevStatus=e.playStatus.curStatus,e.playStatus.curStatus="play",i(),e.stats.metrics("playing")},skip:function(){e.playStatus||(e.playStatus={}),e.playStatus.prevStatus=e.playStatus.curStatus,e.playStatus.curStatus="pause",e.stats.metrics("skipped"),l.skip.apply(e,arguments)},dispose:function(){e.playStatus||(e.playStatus={}),e.playStatus.prevStatus=e.playStatus.curStatus,e.playStatus.curStatus="pause",r()},pause:function(){e.playStatus||(e.playStatus={}),e.playStatus.prevStatus=e.playStatus.curStatus,e.playStatus.curStatus="pause",l.mainEl.pause()},resume:function(){e.playStatus||(e.playStatus={}),e.playStatus.prevStatus=e.playStatus.curStatus,e.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)&&t.log(b?"volumeOn":"volumeOff")}}},AdmanHTML.VpaidJsAdRenderer=function(e,t){"use strict";function i(){var g;if(!c)return A.duration;try{g=c.callGet("adDuration"),g===void 0&&(g=A.duration)}catch(j){g=A.duration}return g}function n(){if(b.start(),x.render(),AdmanHTML.Utils.isElement(e.videoEl)){var g=AdmanHTML.Utils.getElementViewport;g(e.videoEl)===g(b.wrapperEl)&&(e.videoEl.parentNode?(p=e.videoEl.parentNode,l=e.videoEl.nextSibling):v=!0,b.wrapperEl.insertBefore(e.videoEl,b.wrapperEl.childNodes[0]),AdmanHTML.Utils.mixin(e.videoEl.style,{position:"absolute",width:"100%",height:"100%",top:0,display:"block"}))}var j=t.getSettings();j&&(j.loadTimeout&&(S=j.loadTimeout),j.startTimeout&&($=j.startTimeout)),AdmanHTML.Utils.isNRVpaid(A.src)&&typeof A.timeoutsFactor=="number"&&A.timeoutsFactor>1&&(S*=A.timeoutsFactor,$*=A.timeoutsFactor),e.cb("onStarted",[t.sectionType,t.getAdForApp()||{}]),o(S,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:LoadInterface"),c.urlToNavigateOnClick=t.getAd().urlToNavigateOnClick,b.setView(c.load(A.src,e.config.vpaidHtmlInterface),{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"transparent"}),t.log("render")}function r(){v&&e.videoEl.parentNode?e.videoEl.parentNode.removeChild(e.videoEl):p&&p.insertBefore(e.videoEl,l&&l.parentNode?l:null),s(),c.destroy(),x.dispose(),b.dispose()}function o(g,j){s(),C=j,m=setTimeout(a,g)}function s(){clearTimeout(m)}function a(){y=!0,s(),t.log("error"),C&&e.stats.logError(C,{bannerID:A.bannerID,isNRVpaid:AdmanHTML.Utils.isNRVpaid(A.src)}),e.cb("onError",{force:!0,message:C})}var c,v,p,l,u,m,h,_,y,C,I,N,b=new AdmanHTML.AdRenderer(e,t),x=new AdmanHTML.DisclaimerRenderer(e,t),A=t.getAd(),S=500,$=1e3;b.onResize=function(g,j){c&&c.call("resizeAd",[g,j,"normal"])},b.onClick=function(){};var L=function(g,j){if(!y){var F,O;switch(g){case"loaded":o(S,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:LoadJs");break;case"vpaidloaded":s();break;case"inited":c.call("handshakeVersion",["2.0"])?(o($,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:InitAd"),c.call("initAd",[b.mainEl.offsetWidth,b.mainEl.offsetHeight,"normal",A.bitrate,{AdParameters:A.params}])):e.cb("onError");break;case"AdStarted":s(),_=c.callGet("adVolume"),h===void 0||c.autoMuted||c.callSet("adVolume",h),t.log("playbackStarted"),e.viewability.start(b.mainEl,t),e.cb("onVPAIDStarted"),e.stats.metrics("playing");break;case"AdLoaded":o($,"EXTERNAL_JS_ADVERTISMENT_TIMEOUT:StartAd"),c.call("startAd"),e.stats.metrics("ready"),e.stats.metrics("creative_type","vpaid");break;case"AdRemainingTimeChange":F=i(),O=c.callGet("adRemainingTime"),F>0&&O>=0?(b.onTimeRemained(F-O,F),x.onTimeRemained(F-O,F)):e.cb("onDurationChanged",[{remained:O,duration:F}]);break;case"AdVolumeChange":var P=c.callGet("adVolume");(_===0&&P>0||_>0&&P===0)&&t.log(P?"volumeOn":"volumeOff"),_=P;break;case"AdVideoComplete":e.playStatus||(e.playStatus={}),e.playStatus.prevStatus=e.playStatus.curStatus,e.playStatus.curStatus="pause",F=i(),b.onTimeRemained(F,F);break;case"AdStopped":case"AdSkipped":I||(I=!0,setTimeout(function(){u?u():e.cb("onCompleted")})),e.stats.metrics(g==="AdStopped"?"completed":"skipped");break;case"AdClickThru":j.url&&j.playerHandles&&window.open(j.url,"_blank"),t.log("click"),e.cb("onClicked");break;case"AdError":e.stats.logError("EXTERNAL_JS_ADVERTISMENT_ERROR:"+(j&&j.message||"")),e.stats.metrics("vpaid_error_message",j&&j.message||"vpaid script err"),e.cb("onError");break;case"AdPaused":N||(N=!0,e.cb("onPaused"));break;case"AdPlaying":N&&(N=!1,e.cb("onPlayed"));break;case"AdUserClose":t.log("closedByUser");break;case"video:pause":N||c&&c.call("pauseAd");break;case"video:play":N&&c&&c.call("resumeAd")}}},E=e.wrapper.ownerDocument,M=E.defaultView||E.parentWindow;return c=new AdmanHTML.VpaidLoader(e.videoEl,M),c.onVpaidEvent(L),{start:function(){e.playStatus||(e.playStatus={}),e.playStatus.prevStatus=e.playStatus.curStatus,e.playStatus.curStatus="play",n()},dispose:function(){e.playStatus||(e.playStatus={}),e.playStatus.prevStatus=e.playStatus.curStatus,e.playStatus.curStatus="pause",r()},pause:function(){e.playStatus||(e.playStatus={}),e.playStatus.prevStatus=e.playStatus.curStatus,e.playStatus.curStatus="pause",c&&c.call("pauseAd")},resume:function(){e.playStatus||(e.playStatus={}),e.playStatus.prevStatus=e.playStatus.curStatus,e.playStatus.curStatus="play",c&&c.call("resumeAd")},setVolume:function(g){c&&c.callSet("adVolume",g),h=g},skip:function(g){e.playStatus||(e.playStatus={}),e.playStatus.prevStatus=e.playStatus.curStatus,e.playStatus.curStatus="pause",u=g;try{c&&c.call("skipAd")}catch(j){}e.stats.metrics("skipped")}}},AdmanHTML.VpaidSwfAdRenderer=function(e,t){"use strict";function i(){var x;if(!c)return C.duration;try{x=c.callGet("adDuration")||C.duration}catch(A){x=C.duration}return x}function n(){y.start();var x=t.getSettings();x&&(x.loadTimeout&&(N=x.loadTimeout),x.startTimeout&&(b=x.startTimeout)),AdmanHTML.Utils.checkFlashAsync(function(A){if(A===AdmanHTML.Utils.FLASH_READY){e.cb("onStarted",[t.sectionType,t.getAdForApp()||{}]),o(N);var S="vpaidSwfUrl="+encodeURIComponent(C.src)+"&proxyMethodName="+I;y.setView(h.createSwfObject(e.config.vpaidJsInterface,{width:"100%",height:"100%"},{flashvars:S,allowScriptAccess:"always",wmode:"opaque"}),{position:"absolute",top:0,left:0,right:0,bottom:0,"background-color":"black"})}else e.cb("onError")}),_.render(),t.log("render")}function r(){s(),y.dispose(),_.dispose(),window[I]=null}function o(x){s(),p=setTimeout(a,x)}function s(){clearTimeout(p)}function a(){m=!0,s(),t.log("error"),e.cb("onError")}var c,v,p,l,u,m,h=new AdmanHTML.SwfAdRenderer(e,t),_=new AdmanHTML.DisclaimerRenderer(e,t),y=h.super,C=t.getAd(),I="vpaidProxyMethod"+Date.now(),N=500,b=1e3;return y.onResize=function(x,A){c&&c.call("resizeAd",[x,A,"normal"])},y.onClick=function(){},window[I]=function(x,A){if(!m){var S;switch(x){case"loaded":o(N);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",C.bitrate,C.params,""])):e.cb("onError");break;case"AdStarted":s(),u=c.callGet("adVolume"),l!==void 0&&c.callSet("adVolume",l),t.log("playbackStarted"),e.viewability.start(y.mainEl,t),e.cb("onVPAIDStarted");break;case"AdLoaded":o(b),c.call("startAd");break;case"AdRemainingTimeChange":S=i(),y.onTimeRemained(S-c.callGet("adRemainingTime"),S),_.onTimeRemained(S-c.callGet("adRemainingTime"),S);break;case"AdVolumeChange":var $=c.callGet("adVolume");(u===0&&$>0||u>0&&$===0)&&t.log($?"volumeOn":"volumeOff"),u=$;break;case"AdVideoComplete":S=i(),y.onTimeRemained(S,S);break;case"AdStopped":case"AdSkipped":setTimeout(function(){v?v():e.cb("onCompleted")});break;case"AdClickThru":t.log("click"),e.cb("onClicked");break;case"AdError":e.stats.logError("EXTERNAL_SWF_ADVERTISMENT_ERROR:"+(A&&A.message||"")),e.cb("onError");break;case"AdPaused":e.cb("onPaused");break;case"AdPlaying":e.cb("onPlayed");break;case"AdUserClose":t.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){v=x;try{c&&c.call("skipAd")}catch(A){}}}};window.admanAsyncLoader?setTimeout(admanAsyncLoader):window.admanAsyncInit&&setTimeout(admanAsyncInit)});var Xf={};nc(Xf,{AndroidTvPlayer:()=>yo,InterfaceLanguage:()=>Ln.InterfaceLanguage,VERSION:()=>Vn,VKNumericLanguage:()=>Ln.VKNumericLanguage,VideoFormat:()=>bo.VideoFormat,VideoQuality:()=>bo.VideoQuality,loadVKLangPack:()=>Ln.loadVKLangPack});module.exports=oc(Xf);var Vs="prod",Vn="1.0.4-dev.0da85b58.0";var dn=require("@vkontakte/videoplayer-shared/es2018");var zs,Us,js=(Us=(zs=globalThis.process)==null?void 0:zs.env)==null?void 0:Us.NODE_ENV,K=js&&!js.toLowerCase().startsWith("prod");var di=Array.isArray,Fs=Array.prototype.indexOf,jn=Array.from,Do=Object.keys,yt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Co=Object.getOwnPropertyDescriptors,ko=Object.prototype,Hs=Array.prototype,mn=Object.getPrototypeOf,Lo=Object.isExtensible;var xt=()=>{};function vn(e){for(var t=0;t<e.length;t++)e[t]()}var Bt=Symbol("$state"),zn=Symbol("legacy props"),Bs=Symbol(""),Ar=Symbol("proxy path");var Un=3,ui=8;function Er(e){return e===this.v}function gn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Qs(e,t){return e!==t}function hn(e){return!gn(e,this.v)}function Ys(){if(K){let e=new Error(`derived_references_self
6
+ var e=require(`@oxc-project/runtime/helpers/defineProperty`),t=require(`@oxc-project/runtime/helpers/classPrivateMethodInitSpec`),n=require(`@oxc-project/runtime/helpers/classPrivateFieldInitSpec`),r=require(`@oxc-project/runtime/helpers/classPrivateFieldGet2`),i=require(`@oxc-project/runtime/helpers/assertClassBrand`),a=require(`@oxc-project/runtime/helpers/classPrivateFieldSet2`),o,s,c=Object.create,l=Object.getPrototypeOf,u=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertyDescriptor,p=Object.prototype.hasOwnProperty;function m(e){return this[e]}var h,g,_=(e,t,n)=>{var r=typeof e==`object`&&!!e;if(r){var i=t?h??=new WeakMap:g??=new WeakMap,a=i.get(e);if(a)return a}n=e==null?{}:c(l(e));let o=t||!e||!e.__esModule?u(n,`default`,{value:e,enumerable:!0}):n;for(let t of d(e))p.call(o,t)||u(o,t,{get:m.bind(e,t),enumerable:!0});return r&&i.set(e,o),o},v=e=>{var t=(y??=new WeakMap).get(e),n;if(t)return t;if(t=u({},`__esModule`,{value:!0}),e&&typeof e==`object`||typeof e==`function`)for(var r of d(e))p.call(t,r)||u(t,r,{get:m.bind(e,r),enumerable:!(n=f(e,r))||n.enumerable});return y.set(e,t),t},y,b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),x=e=>e;function S(e,t){this[e]=x.bind(null,t)}var C=(e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0,configurable:!0,set:S.bind(t,n)})},w=b((e,t)=>{var n=function(e){return e&&e.Math===Math&&e};t.exports=n(typeof globalThis==`object`&&globalThis)||n(typeof window==`object`&&window)||n(typeof self==`object`&&self)||n(typeof global==`object`&&global)||n(typeof e==`object`&&e)||function(){return this}()||Function(`return this`)()}),T=b((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}}),E=b((e,t)=>{t.exports=!T()(function(){var e=function(){}.bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})}),D=b((e,t)=>{var n=E(),r=Function.prototype,i=r.apply,a=r.call;t.exports=typeof Reflect==`object`&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})}),O=b((e,t)=>{var n=E(),r=Function.prototype,i=r.call,a=n&&r.bind.bind(i,i);t.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}}),k=b((e,t)=>{var n=O(),r=n({}.toString),i=n(``.slice);t.exports=function(e){return i(r(e),8,-1)}}),A=b((e,t)=>{var n=k(),r=O();t.exports=function(e){if(n(e)===`Function`)return r(e)}}),j=b((e,t)=>{var n=typeof document==`object`&&document.all;t.exports=n===void 0&&n!==void 0?function(e){return typeof e==`function`||e===n}:function(e){return typeof e==`function`}}),M=b((e,t)=>{t.exports=!T()(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),N=b((e,t)=>{var n=E(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}}),P=b(e=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;e.f=n&&!t.call({1:2},1)?function(e){var t=n(this,e);return!!t&&t.enumerable}:t}),ee=b((e,t)=>{t.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}}),te=b((e,t)=>{var n=O(),r=T(),i=k(),a=Object,o=n(``.split);t.exports=r(function(){return!a(`z`).propertyIsEnumerable(0)})?function(e){return i(e)===`String`?o(e,``):a(e)}:a}),ne=b((e,t)=>{t.exports=function(e){return e==null}}),re=b((e,t)=>{var n=ne(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`Can't call method on `+e);return e}}),ie=b((e,t)=>{var n=te(),r=re();t.exports=function(e){return n(r(e))}}),ae=b((e,t)=>{var n=j();t.exports=function(e){return typeof e==`object`?e!==null:n(e)}}),oe=b((e,t)=>{t.exports={}}),se=b((e,t)=>{var n=oe(),r=w(),i=j(),a=function(e){return i(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?a(n[e])||a(r[e]):n[e]&&n[e][t]||r[e]&&r[e][t]}}),ce=b((e,t)=>{t.exports=O()({}.isPrototypeOf)}),le=b((e,t)=>{var n=w().navigator,r=n&&n.userAgent;t.exports=r?String(r):``}),ue=b((e,t)=>{var n=w(),r=le(),i=n.process,a=n.Deno,o=i&&i.versions||a&&a.version,s=o&&o.v8,c,l;s&&(c=s.split(`.`),l=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!l&&r&&(c=r.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=r.match(/Chrome\/(\d+)/),c&&(l=+c[1]))),t.exports=l}),de=b((e,t)=>{var n=ue(),r=T(),i=w().String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol(`symbol detection`);return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})}),fe=b((e,t)=>{t.exports=de()&&!Symbol.sham&&typeof Symbol.iterator==`symbol`}),pe=b((e,t)=>{var n=se(),r=j(),i=ce(),a=fe(),o=Object;t.exports=a?function(e){return typeof e==`symbol`}:function(e){var t=n(`Symbol`);return r(t)&&i(t.prototype,o(e))}}),me=b((e,t)=>{var n=String;t.exports=function(e){try{return n(e)}catch{return`Object`}}}),he=b((e,t)=>{var n=j(),r=me(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a function`)}}),ge=b((e,t)=>{var n=he(),r=ne();t.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}}),_e=b((e,t)=>{var n=N(),r=j(),i=ae(),a=TypeError;t.exports=function(e,t){var o,s;if(t===`string`&&r(o=e.toString)&&!i(s=n(o,e))||r(o=e.valueOf)&&!i(s=n(o,e))||t!==`string`&&r(o=e.toString)&&!i(s=n(o,e)))return s;throw new a(`Can't convert object to primitive value`)}}),ve=b((e,t)=>{t.exports=!0}),ye=b((e,t)=>{var n=w(),r=Object.defineProperty;t.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}}),be=b((e,t)=>{var n=ve(),r=w(),i=ye(),a=`__core-js_shared__`,o=t.exports=r[a]||i(a,{});(o.versions||=[]).push({version:`3.43.0`,mode:n?`pure`:`global`,copyright:`© 2014-2025 Denis Pushkarev (zloirock.ru)`,license:`https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE`,source:`https://github.com/zloirock/core-js`})}),xe=b((e,t)=>{var n=be();t.exports=function(e,t){return n[e]||(n[e]=t||{})}}),Se=b((e,t)=>{var n=re(),r=Object;t.exports=function(e){return r(n(e))}}),Ce=b((e,t)=>{var n=O(),r=Se(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(r(e),t)}}),we=b((e,t)=>{var n=O(),r=0,i=Math.random(),a=n(1.1.toString);t.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+a(++r+i,36)}}),Te=b((e,t)=>{var n=w(),r=xe(),i=Ce(),a=we(),o=de(),s=fe(),c=n.Symbol,l=r(`wks`),u=s?c.for||c:c&&c.withoutSetter||a;t.exports=function(e){return i(l,e)||(l[e]=o&&i(c,e)?c[e]:u(`Symbol.`+e)),l[e]}}),Ee=b((e,t)=>{var n=N(),r=ae(),i=pe(),a=ge(),o=_e(),s=Te(),c=TypeError,l=s(`toPrimitive`);t.exports=function(e,t){if(!r(e)||i(e))return e;var s=a(e,l),u;if(s){if(t===void 0&&(t=`default`),u=n(s,e,t),!r(u)||i(u))return u;throw new c(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),o(e,t)}}),De=b((e,t)=>{var n=Ee(),r=pe();t.exports=function(e){var t=n(e,`string`);return r(t)?t:t+``}}),Oe=b((e,t)=>{var n=w(),r=ae(),i=n.document,a=r(i)&&r(i.createElement);t.exports=function(e){return a?i.createElement(e):{}}}),ke=b((e,t)=>{var n=M(),r=T(),i=Oe();t.exports=!n&&!r(function(){return Object.defineProperty(i(`div`),`a`,{get:function(){return 7}}).a!==7})}),Ae=b(e=>{var t=M(),n=N(),r=P(),i=ee(),a=ie(),o=De(),s=Ce(),c=ke(),l=Object.getOwnPropertyDescriptor;e.f=t?l:function(e,t){if(e=a(e),t=o(t),c)try{return l(e,t)}catch{}if(s(e,t))return i(!n(r.f,e,t),e[t])}}),je=b((e,t)=>{var n=T(),r=j(),i=/#|\.prototype\./,a=function(e,t){var i=s[o(e)];return i===l?!0:i===c?!1:r(t)?n(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;t.exports=a}),Me=b((e,t)=>{var n=A(),r=he(),i=E(),a=n(n.bind);t.exports=function(e,t){return r(e),t===void 0?e:i?a(e,t):function(){return e.apply(t,arguments)}}}),Ne=b((e,t)=>{var n=M(),r=T();t.exports=n&&r(function(){return Object.defineProperty(function(){},`prototype`,{value:42,writable:!1}).prototype!==42})}),Pe=b((e,t)=>{var n=ae(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not an object`)}}),Fe=b(e=>{var t=M(),n=ke(),r=Ne(),i=Pe(),a=De(),o=TypeError,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=`enumerable`,u=`configurable`,d=`writable`;e.f=t?r?function(e,t,n){if(i(e),t=a(t),i(n),typeof e==`function`&&t===`prototype`&&`value`in n&&d in n&&!n[d]){var r=c(e,t);r&&r[d]&&(e[t]=n.value,n={configurable:u in n?n[u]:r[u],enumerable:l in n?n[l]:r[l],writable:!1})}return s(e,t,n)}:s:function(e,t,r){if(i(e),t=a(t),i(r),n)try{return s(e,t,r)}catch{}if(`get`in r||`set`in r)throw new o(`Accessors not supported`);return`value`in r&&(e[t]=r.value),e}}),Ie=b((e,t)=>{var n=M(),r=Fe(),i=ee();t.exports=n?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}}),Le=b((e,t)=>{var n=w(),r=D(),i=A(),a=j(),o=Ae().f,s=je(),c=oe(),l=Me(),u=Ie(),d=Ce();be();var f=function(e){var t=function(n,i,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,a)}return r(e,this,arguments)};return t.prototype=e.prototype,t};t.exports=function(e,t){var r=e.target,p=e.global,m=e.stat,h=e.proto,g=p?n:m?n[r]:n[r]&&n[r].prototype,_=p?c:c[r]||u(c,r,{})[r],v=_.prototype,y,b,x,S,C,w,T,E,D;for(S in t)y=s(p?S:r+(m?`.`:`#`)+S,e.forced),b=!y&&g&&d(g,S),w=_[S],b&&(e.dontCallGetSet?(D=o(g,S),T=D&&D.value):T=g[S]),C=b&&T?T:t[S],!(!y&&!h&&typeof w==typeof C)&&(E=e.bind&&b?l(C,n):e.wrap&&b?f(C):h&&a(C)?i(C):C,(e.sham||C&&C.sham||w&&w.sham)&&u(E,`sham`,!0),u(_,S,E),h&&(x=r+`Prototype`,d(c,x)||u(c,x,{}),u(c[x],S,C),e.real&&v&&(y||!v[S])&&u(v,S,C)))}}),Re=b((e,t)=>{var n=xe(),r=we(),i=n(`keys`);t.exports=function(e){return i[e]||(i[e]=r(e))}}),ze=b((e,t)=>{t.exports=!T()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}),Be=b((e,t)=>{var n=Ce(),r=j(),i=Se(),a=Re(),o=ze(),s=a(`IE_PROTO`),c=Object,l=c.prototype;t.exports=o?c.getPrototypeOf:function(e){var t=i(e);if(n(t,s))return t[s];var a=t.constructor;return r(a)&&t instanceof a?a.prototype:t instanceof c?l:null}}),Ve=b((e,t)=>{var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}}),He=b((e,t)=>{var n=Ve();t.exports=function(e){var t=+e;return t!==t||t===0?0:n(t)}}),Ue=b((e,t)=>{var n=He(),r=Math.max,i=Math.min;t.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):i(a,t)}}),We=b((e,t)=>{var n=He(),r=Math.min;t.exports=function(e){var t=n(e);return t>0?r(t,9007199254740991):0}}),Ge=b((e,t)=>{var n=We();t.exports=function(e){return n(e.length)}}),Ke=b((e,t)=>{var n=ie(),r=Ue(),i=Ge(),a=function(e){return function(t,a,o){var s=n(t),c=i(s);if(c===0)return!e&&-1;var l=r(o,c),u;if(e&&a!==a){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===a)return e||l||0;return!e&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}}),qe=b((e,t)=>{t.exports={}}),Je=b((e,t)=>{var n=O(),r=Ce(),i=ie(),a=Ke().indexOf,o=qe(),s=n([].push);t.exports=function(e,t){var n=i(e),c=0,l=[],u;for(u in n)!r(o,u)&&r(n,u)&&s(l,u);for(;t.length>c;)r(n,u=t[c++])&&(~a(l,u)||s(l,u));return l}}),Ye=b((e,t)=>{t.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]}),Xe=b((e,t)=>{var n=Je(),r=Ye();t.exports=Object.keys||function(e){return n(e,r)}}),Ze=b((e,t)=>{var n=M(),r=T(),i=O(),a=Be(),o=Xe(),s=ie(),c=P().f,l=i(c),u=i([].push),d=n&&r(function(){var e=Object.create(null);return e[2]=2,!l(e,2)}),f=function(e){return function(t){for(var r=s(t),i=o(r),c=d&&a(r)===null,f=i.length,p=0,m=[],h;f>p;)h=i[p++],(!n||(c?h in r:l(r,h)))&&u(m,e?[h,r[h]]:r[h]);return m}};t.exports={entries:f(!0),values:f(!1)}}),Qe=b(()=>{var e=Le(),t=Ze().entries;e({target:`Object`,stat:!0},{entries:function(e){return t(e)}})}),$e=b((e,t)=>{Qe(),t.exports=oe().Object.entries}),et=b((e,t)=>{t.exports=$e()}),tt=b((e,t)=>{t.exports=et()}),nt=b(()=>{var e=Le(),t=Ze().values;e({target:`Object`,stat:!0},{values:function(e){return t(e)}})}),rt=b((e,t)=>{nt(),t.exports=oe().Object.values}),it=b((e,t)=>{t.exports=rt()}),at=b((e,t)=>{t.exports=it()}),ot=b((e,t)=>{t.exports=function(){}}),st=b((e,t)=>{t.exports={}}),ct=b((e,t)=>{var n=w(),r=j(),i=n.WeakMap;t.exports=r(i)&&/native code/.test(String(i))}),lt=b((e,t)=>{var n=ct(),r=w(),i=ae(),a=Ie(),o=Ce(),s=be(),c=Re(),l=qe(),u=`Object already initialized`,d=r.TypeError,f=r.WeakMap,p,m,h,g=function(e){return h(e)?m(e):p(e,{})},_=function(e){return function(t){var n;if(!i(t)||(n=m(t)).type!==e)throw new d(`Incompatible receiver, `+e+` required`);return n}};n||s.state?(v=s.state||=new f,v.get=v.get,v.has=v.has,v.set=v.set,p=function(e,t){if(v.has(e))throw new d(u);return t.facade=e,v.set(e,t),t},m=function(e){return v.get(e)||{}},h=function(e){return v.has(e)}):(y=c(`state`),l[y]=!0,p=function(e,t){if(o(e,y))throw new d(u);return t.facade=e,a(e,y,t),t},m=function(e){return o(e,y)?e[y]:{}},h=function(e){return o(e,y)});var v,y;t.exports={set:p,get:m,has:h,enforce:g,getterFor:_}}),ut=b((e,t)=>{var n=M(),r=Ce(),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,o=r(i,`name`);t.exports={EXISTS:o,PROPER:o&&function(){}.name===`something`,CONFIGURABLE:o&&(!n||n&&a(i,`name`).configurable)}}),dt=b(e=>{var t=M(),n=Ne(),r=Fe(),i=Pe(),a=ie(),o=Xe();e.f=t&&!n?Object.defineProperties:function(e,t){i(e);for(var n=a(t),s=o(t),c=s.length,l=0,u;c>l;)r.f(e,u=s[l++],n[u]);return e}}),ft=b((e,t)=>{t.exports=se()(`document`,`documentElement`)}),pt=b((e,t)=>{var n=Pe(),r=dt(),i=Ye(),a=qe(),o=ft(),s=Oe(),c=Re(),l=`>`,u=`<`,d=`prototype`,f=`script`,p=c(`IE_PROTO`),m=function(){},h=function(e){return u+f+l+e+u+`/`+f+l},g=function(e){e.write(h(``)),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e=s(`iframe`),t=`java`+f+`:`,n;return e.style.display=`none`,o.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(h(`document.F=Object`)),n.close(),n.F},v,y=function(){try{v=new ActiveXObject(`htmlfile`)}catch{}y=typeof document<`u`?document.domain&&v?g(v):_():g(v);for(var e=i.length;e--;)delete y[d][i[e]];return y()};a[p]=!0,t.exports=Object.create||function(e,t){var i;return e===null?i=y():(m[d]=n(e),i=new m,m[d]=null,i[p]=e),t===void 0?i:r.f(i,t)}}),mt=b((e,t)=>{var n=Ie();t.exports=function(e,t,r,i){return i&&i.enumerable?e[t]=r:n(e,t,r),e}}),ht=b((e,t)=>{var n=T(),r=j(),i=ae(),a=pt(),o=Be(),s=mt(),c=Te(),l=ve(),u=c(`iterator`),d=!1,f,p,m;[].keys&&(m=[].keys(),`next`in m?(p=o(o(m)),p!==Object.prototype&&(f=p)):d=!0),!i(f)||n(function(){var e={};return f[u].call(e)!==e})?f={}:l&&(f=a(f)),r(f[u])||s(f,u,function(){return this}),t.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:d}}),gt=b((e,t)=>{var n=Te()(`toStringTag`),r={};r[n]=`z`,t.exports=String(r)===`[object z]`}),_t=b((e,t)=>{var n=gt(),r=j(),i=k(),a=Te()(`toStringTag`),o=Object,s=i(function(){return arguments}())===`Arguments`,c=function(e,t){try{return e[t]}catch{}};t.exports=n?i:function(e){var t,n,l;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=c(t=o(e),a))==`string`?n:s?i(t):(l=i(t))===`Object`&&r(t.callee)?`Arguments`:l}}),vt=b((e,t)=>{var n=gt(),r=_t();t.exports=n?{}.toString:function(){return`[object `+r(this)+`]`}}),yt=b((e,t)=>{var n=gt(),r=Fe().f,i=Ie(),a=Ce(),o=vt(),s=Te()(`toStringTag`);t.exports=function(e,t,c,l){var u=c?e:e&&e.prototype;u&&(a(u,s)||r(u,s,{configurable:!0,value:t}),l&&!n&&i(u,`toString`,o))}}),bt=b((e,t)=>{var n=ht().IteratorPrototype,r=pt(),i=ee(),a=yt(),o=st(),s=function(){return this};t.exports=function(e,t,c,l){var u=t+` Iterator`;return e.prototype=r(n,{next:i(+!l,c)}),a(e,u,!1,!0),o[u]=s,e}}),xt=b((e,t)=>{var n=O(),r=he();t.exports=function(e,t,i){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[i]))}catch{}}}),St=b((e,t)=>{var n=ae();t.exports=function(e){return n(e)||e===null}}),Ct=b((e,t)=>{var n=St(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(`Can't set `+r(e)+` as a prototype`)}}),wt=b((e,t)=>{var n=xt(),r=ae(),i=re(),a=Ct();t.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},o;try{o=n(Object.prototype,`__proto__`,`set`),o(t,[]),e=t instanceof Array}catch{}return function(t,n){return i(t),a(n),r(t)&&(e?o(t,n):t.__proto__=n),t}}():void 0)}),Tt=b((e,t)=>{var n=Le(),r=N(),i=ve(),a=ut(),o=j(),s=bt(),c=Be(),l=wt(),u=yt(),d=Ie(),f=mt(),p=Te(),m=st(),h=ht(),g=a.PROPER,_=a.CONFIGURABLE,v=h.IteratorPrototype,y=h.BUGGY_SAFARI_ITERATORS,b=p(`iterator`),x=`keys`,S=`values`,C=`entries`,w=function(){return this};t.exports=function(e,t,a,p,h,T,E){s(a,t,p);var D=function(e){if(e===h&&M)return M;if(!y&&e&&e in A)return A[e];switch(e){case x:return function(){return new a(this,e)};case S:return function(){return new a(this,e)};case C:return function(){return new a(this,e)}}return function(){return new a(this)}},O=t+` Iterator`,k=!1,A=e.prototype,j=A[b]||A[`@@iterator`]||h&&A[h],M=!y&&j||D(h),N=t===`Array`&&A.entries||j,P,ee,te;if(N&&(P=c(N.call(new e)),P!==Object.prototype&&P.next&&(!i&&c(P)!==v&&(l?l(P,v):o(P[b])||f(P,b,w)),u(P,O,!0,!0),i&&(m[O]=w))),g&&h===S&&j&&j.name!==S&&(!i&&_?d(A,`name`,S):(k=!0,M=function(){return r(j,this)})),h)if(ee={values:D(S),keys:T?M:D(x),entries:D(C)},E)for(te in ee)(y||k||!(te in A))&&f(A,te,ee[te]);else n({target:t,proto:!0,forced:y||k},ee);return(!i||E)&&A[b]!==M&&f(A,b,M,{name:h}),m[t]=M,ee}}),Et=b((e,t)=>{t.exports=function(e,t){return{value:e,done:t}}}),Dt=b((e,t)=>{var n=ie(),r=ot(),i=st(),a=lt(),o=Fe().f,s=Tt(),c=Et(),l=ve(),u=M(),d=`Array Iterator`,f=a.set,p=a.getterFor(d);t.exports=s(Array,`Array`,function(e,t){f(this,{type:d,target:n(e),index:0,kind:t})},function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case`keys`:return c(n,!1);case`values`:return c(t[n],!1)}return c([n,t[n]],!1)},`values`);var m=i.Arguments=i.Array;if(r(`keys`),r(`values`),r(`entries`),!l&&u&&m.name!==`values`)try{o(m,`name`,{value:`values`})}catch{}}),Ot=b((e,t)=>{var n=Te(),r=st(),i=n(`iterator`),a=Array.prototype;t.exports=function(e){return e!==void 0&&(r.Array===e||a[i]===e)}}),kt=b((e,t)=>{var n=_t(),r=ge(),i=ne(),a=st(),o=Te()(`iterator`);t.exports=function(e){if(!i(e))return r(e,o)||r(e,`@@iterator`)||a[n(e)]}}),At=b((e,t)=>{var n=N(),r=he(),i=Pe(),a=me(),o=kt(),s=TypeError;t.exports=function(e,t){var c=arguments.length<2?o(e):t;if(r(c))return i(n(c,e));throw new s(a(e)+` is not iterable`)}}),jt=b((e,t)=>{var n=N(),r=Pe(),i=ge();t.exports=function(e,t,a){var o,s;r(e);try{if(o=i(e,`return`),!o){if(t===`throw`)throw a;return a}o=n(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw a;if(s)throw o;return r(o),a}}),Mt=b((e,t)=>{var n=Me(),r=N(),i=Pe(),a=me(),o=Ot(),s=Ge(),c=ce(),l=At(),u=kt(),d=jt(),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;t.exports=function(e,t,h){var g=h&&h.that,_=!!(h&&h.AS_ENTRIES),v=!!(h&&h.IS_RECORD),y=!!(h&&h.IS_ITERATOR),b=!!(h&&h.INTERRUPTED),x=n(t,g),S,C,w,T,E,D,O,k=function(e){return S&&d(S,`normal`),new p(!0,e)},A=function(e){return _?(i(e),b?x(e[0],e[1],k):x(e[0],e[1])):b?x(e,k):x(e)};if(v)S=e.iterator;else if(y)S=e;else{if(C=u(e),!C)throw new f(a(e)+` is not iterable`);if(o(C)){for(w=0,T=s(e);T>w;w++)if(E=A(e[w]),E&&c(m,E))return E;return new p(!1)}S=l(e,C)}for(D=v?e.next:S.next;!(O=r(D,S)).done;){try{E=A(O.value)}catch(e){d(S,`throw`,e)}if(typeof E==`object`&&E&&c(m,E))return E}return new p(!1)}}),Nt=b((e,t)=>{var n=M(),r=Fe(),i=ee();t.exports=function(e,t,a){n?r.f(e,t,i(0,a)):e[t]=a}}),Pt=b(()=>{var e=Le(),t=Mt(),n=Nt();e({target:`Object`,stat:!0},{fromEntries:function(e){var r={};return t(e,function(e,t){n(r,e,t)},{AS_ENTRIES:!0}),r}})}),Ft=b((e,t)=>{Dt(),Pt(),t.exports=oe().Object.fromEntries}),It=b((e,t)=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),Lt=b(()=>{Dt();var e=It(),t=w(),n=yt(),r=st();for(i in e)n(t[i],i),r[i]=r.Array;var i}),Rt=b((e,t)=>{var n=Ft();Lt(),t.exports=n}),zt=b((e,t)=>{t.exports=Rt()}),Bt=b((e,t)=>{var n=ae(),r=k(),i=Te()(`match`);t.exports=function(e){var t;return n(e)&&((t=e[i])===void 0?r(e)===`RegExp`:!!t)}}),Vt=b((e,t)=>{var n=_t(),r=String;t.exports=function(e){if(n(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return r(e)}}),Ht=b((e,t)=>{var n=w(),r=T(),i=n.RegExp;t.exports={correct:!r(function(){var e=!0;try{i(`.`,`d`)}catch{e=!1}var t={},n=``,r=e?`dgimsy`:`gimsy`,a=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:`s`,global:`g`,ignoreCase:`i`,multiline:`m`,sticky:`y`};for(var s in e&&(o.hasIndices=`d`),o)a(s,o[s]);return Object.getOwnPropertyDescriptor(i.prototype,`flags`).get.call(t)!==r||n!==r})}}),Ut=b((e,t)=>{var n=Pe();t.exports=function(){var e=n(this),t=``;return e.hasIndices&&(t+=`d`),e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.unicodeSets&&(t+=`v`),e.sticky&&(t+=`y`),t}}),Wt=b((e,t)=>{var n=N(),r=Ce(),i=ce(),a=Ht(),o=Ut(),s=RegExp.prototype;t.exports=a.correct?function(e){return e.flags}:function(e){return!a.correct&&i(s,e)&&!r(e,`flags`)?n(o,e):e.flags}}),Gt=b((e,t)=>{var n=O(),r=Se(),i=Math.floor,a=n(``.charAt),o=n(``.replace),s=n(``.slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(e,t,n,u,d,f){var p=n+e.length,m=u.length,h=l;return d!==void 0&&(d=r(d),h=c),o(f,h,function(r,o){var c;switch(a(o,0)){case`$`:return`$`;case`&`:return e;case"`":return s(t,0,n);case`'`:return s(t,p);case`<`:c=d[s(o,1,-1)];break;default:var l=+o;if(l===0)return r;if(l>m){var f=i(l/10);return f===0?r:f<=m?u[f-1]===void 0?a(o,1):u[f-1]+a(o,1):r}c=u[l-1]}return c===void 0?``:c})}}),Kt=b(()=>{var e=Le(),t=N(),n=O(),r=re(),i=j(),a=ae(),o=Bt(),s=Vt(),c=ge(),l=Wt(),u=Gt(),d=Te(),f=ve(),p=d(`replace`),m=TypeError,h=n(``.indexOf),g=n(``.replace),_=n(``.slice),v=Math.max;e({target:`String`,proto:!0},{replaceAll:function(e,n){var d=r(this),y,b,x,S,C,w,T,E,D,O,k=0,A=``;if(a(e)){if(y=o(e),y&&(b=s(r(l(e))),!~h(b,`g`)))throw new m("`.replaceAll` does not allow non-global regexes");if(x=c(e,p),x)return t(x,e,d,n);if(f&&y)return g(s(d),e,n)}for(S=s(d),C=s(e),w=i(n),w||(n=s(n)),T=C.length,E=v(1,T),D=h(S,C);D!==-1;)O=w?s(n(C,D,S)):u(C,S,D,[],void 0,n),A+=_(S,k,D)+O,k=D+T,D=D+E>S.length?-1:h(S,C,D+E);return k<S.length&&(A+=_(S,k)),A}})}),qt=b((e,t)=>{t.exports=se()}),Jt=b((e,t)=>{Kt(),t.exports=qt()(`String`,`replaceAll`)}),Yt=b((e,t)=>{t.exports=Jt()}),Xt=b((e,t)=>{t.exports=Yt()}),Zt=b(()=>{var e=Le(),t=Ke().includes,n=T(),r=ot();e({target:`Array`,proto:!0,forced:n(function(){return![,].includes()})},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r(`includes`)}),Qt=b((e,t)=>{Zt(),t.exports=qt()(`Array`,`includes`)}),$t=b((e,t)=>{t.exports=Qt()}),en=b((e,t)=>{t.exports=$t()}),tn=b(()=>{var e=Le(),t=Se(),n=Ge(),r=He(),i=ot();e({target:`Array`,proto:!0},{at:function(e){var i=t(this),a=n(i),o=r(e),s=o>=0?o:a+o;return s<0||s>=a?void 0:i[s]}}),i(`at`)}),nn=b((e,t)=>{tn(),t.exports=qt()(`Array`,`at`)}),rn=b((e,t)=>{t.exports=nn()}),an=b((e,t)=>{t.exports=rn()}),on=b((e,t)=>{var n=w(),r=le(),i=k(),a=function(e){return r.slice(0,e.length)===e};t.exports=function(){return a(`Bun/`)?`BUN`:a(`Cloudflare-Workers`)?`CLOUDFLARE`:a(`Deno/`)?`DENO`:a(`Node.js/`)?`NODE`:n.Bun&&typeof Bun.version==`string`?`BUN`:n.Deno&&typeof Deno.version==`object`?`DENO`:i(n.process)===`process`?`NODE`:n.window&&n.document?`BROWSER`:`REST`}()}),sn=b((e,t)=>{t.exports=on()===`NODE`}),cn=b((e,t)=>{var n=Fe();t.exports=function(e,t,r){return n.f(e,t,r)}}),ln=b((e,t)=>{var n=se(),r=cn(),i=Te(),a=M(),o=i(`species`);t.exports=function(e){var t=n(e);a&&t&&!t[o]&&r(t,o,{configurable:!0,get:function(){return this}})}}),un=b((e,t)=>{var n=ce(),r=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new r(`Incorrect invocation`)}}),dn=b((e,t)=>{var n=O(),r=j(),i=be(),a=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),t.exports=i.inspectSource}),fn=b((e,t)=>{var n=O(),r=T(),i=j(),a=_t(),o=se(),s=dn(),c=function(){},l=o(`Reflect`,`construct`),u=/^\s*(?:class|function)\b/,d=n(u.exec),f=!u.test(c),p=function(e){if(!i(e))return!1;try{return l(c,[],e),!0}catch{return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}try{return f||!!d(u,s(e))}catch{return!0}};m.sham=!0,t.exports=!l||r(function(){var e;return p(p.call)||!p(Object)||!p(function(){e=!0})||e})?m:p}),pn=b((e,t)=>{var n=fn(),r=me(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a constructor`)}}),mn=b((e,t)=>{var n=Pe(),r=pn(),i=ne(),a=Te()(`species`);t.exports=function(e,t){var o=n(e).constructor,s;return o===void 0||i(s=n(o)[a])?t:r(s)}}),hn=b((e,t)=>{t.exports=O()([].slice)}),gn=b((e,t)=>{var n=TypeError;t.exports=function(e,t){if(e<t)throw new n(`Not enough arguments`);return e}}),_n=b((e,t)=>{var n=le();t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)}),vn=b((e,t)=>{var n=w(),r=D(),i=Me(),a=j(),o=Ce(),s=T(),c=ft(),l=hn(),u=Oe(),d=gn(),f=_n(),p=sn(),m=n.setImmediate,h=n.clearImmediate,g=n.process,_=n.Dispatch,v=n.Function,y=n.MessageChannel,b=n.String,x=0,S={},C=`onreadystatechange`,E,O,k,A;s(function(){E=n.location});var M=function(e){if(o(S,e)){var t=S[e];delete S[e],t()}},N=function(e){return function(){M(e)}},P=function(e){M(e.data)},ee=function(e){n.postMessage(b(e),E.protocol+`//`+E.host)};(!m||!h)&&(m=function(e){d(arguments.length,1);var t=a(e)?e:v(e),n=l(arguments,1);return S[++x]=function(){r(t,void 0,n)},O(x),x},h=function(e){delete S[e]},p?O=function(e){g.nextTick(N(e))}:_&&_.now?O=function(e){_.now(N(e))}:y&&!f?(k=new y,A=k.port2,k.port1.onmessage=P,O=i(A.postMessage,A)):n.addEventListener&&a(n.postMessage)&&!n.importScripts&&E&&E.protocol!==`file:`&&!s(ee)?(O=ee,n.addEventListener(`message`,P,!1)):O=C in u(`script`)?function(e){c.appendChild(u(`script`))[C]=function(){c.removeChild(this),M(e)}}:function(e){setTimeout(N(e),0)}),t.exports={set:m,clear:h}}),yn=b((e,t)=>{var n=w(),r=M(),i=Object.getOwnPropertyDescriptor;t.exports=function(e){if(!r)return n[e];var t=i(n,e);return t&&t.value}}),bn=b((e,t)=>{var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return(this.head=e.next)===null&&(this.tail=null),e.item}},t.exports=n}),xn=b((e,t)=>{var n=le();t.exports=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<`u`}),Sn=b((e,t)=>{var n=le();t.exports=/web0s(?!.*chrome)/i.test(n)}),Cn=b((e,t)=>{var n=w(),r=yn(),i=Me(),a=vn().set,o=bn(),s=_n(),c=xn(),l=Sn(),u=sn(),d=n.MutationObserver||n.WebKitMutationObserver,f=n.document,p=n.process,m=n.Promise,h=r(`queueMicrotask`),g,_,v,y,b;h||=(x=new o,S=function(){var e,t;for(u&&(e=p.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&g(),e}e&&e.enter()},!s&&!u&&!l&&d&&f?(_=!0,v=f.createTextNode(``),new d(S).observe(v,{characterData:!0}),g=function(){v.data=_=!_}):!c&&m&&m.resolve?(y=m.resolve(void 0),y.constructor=m,b=i(y.then,y),g=function(){b(S)}):u?g=function(){p.nextTick(S)}:(a=i(a,n),g=function(){a(S)}),function(e){x.head||g(),x.add(e)});var x,S;t.exports=h}),wn=b((e,t)=>{t.exports=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}}}),Tn=b((e,t)=>{t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}}),En=b((e,t)=>{t.exports=w().Promise}),Dn=b((e,t)=>{var n=w(),r=En(),i=j(),a=je(),o=dn(),s=Te(),c=on(),l=ve(),u=ue(),d=r&&r.prototype,f=s(`species`),p=!1,m=i(n.PromiseRejectionEvent);t.exports={CONSTRUCTOR:a(`Promise`,function(){var e=o(r),t=e!==String(r);if(!t&&u===66||l&&!(d.catch&&d.finally))return!0;if(!u||u<51||!/native code/.test(e)){var n=new r(function(e){e(1)}),i=function(e){e(function(){},function(){})},a=n.constructor={};if(a[f]=i,p=n.then(function(){})instanceof i,!p)return!0}return!t&&(c===`BROWSER`||c===`DENO`)&&!m}),REJECTION_EVENT:m,SUBCLASSING:p}}),On=b((e,t)=>{var n=he(),r=TypeError,i=function(e){var t,i;this.promise=new e(function(e,n){if(t!==void 0||i!==void 0)throw new r(`Bad Promise constructor`);t=e,i=n}),this.resolve=n(t),this.reject=n(i)};t.exports.f=function(e){return new i(e)}}),kn=b(()=>{var e=Le(),t=ve(),n=sn(),r=w(),i=oe(),a=N(),o=mt(),s=wt(),c=yt(),l=ln(),u=he(),d=j(),f=ae(),p=un(),m=mn(),h=vn().set,g=Cn(),_=wn(),v=Tn(),y=bn(),b=lt(),x=En(),S=Dn(),C=On(),T=`Promise`,E=S.CONSTRUCTOR,D=S.REJECTION_EVENT,O=S.SUBCLASSING,k=b.getterFor(T),A=b.set,M=x&&x.prototype,P=x,ee=M,te=r.TypeError,ne=r.document,re=r.process,ie=C.f,se=ie,ce=!!(ne&&ne.createEvent&&r.dispatchEvent),le=`unhandledrejection`,ue=`rejectionhandled`,de=0,fe=1,pe=2,me=1,ge=2,_e,ye,be,xe,Se=function(e){var t;return f(e)&&d(t=e.then)?t:!1},Ce=function(e,t){var n=t.value,r=t.state===fe,i=r?e.ok:e.fail,o=e.resolve,s=e.reject,c=e.domain,l,u,d;try{i?(r||(t.rejection===ge&&Oe(t),t.rejection=me),i===!0?l=n:(c&&c.enter(),l=i(n),c&&(c.exit(),d=!0)),l===e.promise?s(new te(`Promise-chain cycle`)):(u=Se(l))?a(u,l,o,s):o(l)):s(n)}catch(e){c&&!d&&c.exit(),s(e)}},we=function(e,t){e.notified||(e.notified=!0,g(function(){for(var n=e.reactions,r;r=n.get();)Ce(r,e);e.notified=!1,t&&!e.rejection&&Ee(e)}))},Te=function(e,t,n){var i,a;ce?(i=ne.createEvent(`Event`),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),r.dispatchEvent(i)):i={promise:t,reason:n},!D&&(a=r[`on`+e])?a(i):e===le&&_(`Unhandled promise rejection`,n)},Ee=function(e){a(h,r,function(){var t=e.facade,r=e.value,i=De(e),a;if(i&&(a=v(function(){n?re.emit(`unhandledRejection`,r,t):Te(le,t,r)}),e.rejection=n||De(e)?ge:me,a.error))throw a.value})},De=function(e){return e.rejection!==me&&!e.parent},Oe=function(e){a(h,r,function(){var t=e.facade;n?re.emit(`rejectionHandled`,t):Te(ue,t,e.value)})},ke=function(e,t,n){return function(r){e(t,r,n)}},Ae=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=pe,we(e,!0))},je=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new te(`Promise can't be resolved itself`);var r=Se(t);r?g(function(){var n={done:!1};try{a(r,t,ke(je,n,e),ke(Ae,n,e))}catch(t){Ae(n,t,e)}}):(e.value=t,e.state=fe,we(e,!1))}catch(t){Ae({done:!1},t,e)}}};if(E&&(P=function(e){p(this,ee),u(e),a(_e,this);var t=k(this);try{e(ke(je,t),ke(Ae,t))}catch(e){Ae(t,e)}},ee=P.prototype,_e=function(e){A(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new y,rejection:!1,state:de,value:null})},_e.prototype=o(ee,`then`,function(e,t){var r=k(this),i=ie(m(this,P));return r.parent=!0,i.ok=d(e)?e:!0,i.fail=d(t)&&t,i.domain=n?re.domain:void 0,r.state===de?r.reactions.add(i):g(function(){Ce(i,r)}),i.promise}),ye=function(){var e=new _e,t=k(e);this.promise=e,this.resolve=ke(je,t),this.reject=ke(Ae,t)},C.f=ie=function(e){return e===P||e===be?new ye(e):se(e)},!t&&d(x)&&M!==Object.prototype)){xe=M.then,O||o(M,`then`,function(e,t){var n=this;return new P(function(e,t){a(xe,n,e,t)}).then(e,t)},{unsafe:!0});try{delete M.constructor}catch{}s&&s(M,ee)}e({global:!0,constructor:!0,wrap:!0,forced:E},{Promise:P}),be=i.Promise,c(P,T,!1,!0),l(T)}),An=b((e,t)=>{var n=Te()(`iterator`),r=!1;try{i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}},a[n]=function(){return this},Array.from(a,function(){throw 2})}catch{}var i,a;t.exports=function(e,t){try{if(!t&&!r)return!1}catch{return!1}var i=!1;try{var a={};a[n]=function(){return{next:function(){return{done:i=!0}}}},e(a)}catch{}return i}}),jn=b((e,t)=>{var n=En(),r=An();t.exports=Dn().CONSTRUCTOR||!r(function(e){n.all(e).then(void 0,function(){})})}),Mn=b(()=>{var e=Le(),t=N(),n=he(),r=On(),i=Tn(),a=Mt();e({target:`Promise`,stat:!0,forced:jn()},{all:function(e){var o=this,s=r.f(o),c=s.resolve,l=s.reject,u=i(function(){var r=n(o.resolve),i=[],s=0,u=1;a(e,function(e){var n=s++,a=!1;u++,t(r,o,e).then(function(e){a||(a=!0,i[n]=e,--u||c(i))},l)}),--u||c(i)});return u.error&&l(u.value),s.promise}})}),Nn=b(()=>{var e=Le(),t=ve(),n=Dn().CONSTRUCTOR,r=En(),i=se(),a=j(),o=mt(),s=r&&r.prototype;e({target:`Promise`,proto:!0,forced:n,real:!0},{catch:function(e){return this.then(void 0,e)}}),!t&&a(r)&&(c=i(`Promise`).prototype.catch,s.catch!==c&&o(s,`catch`,c,{unsafe:!0}));var c}),Pn=b(()=>{var e=Le(),t=N(),n=he(),r=On(),i=Tn(),a=Mt();e({target:`Promise`,stat:!0,forced:jn()},{race:function(e){var o=this,s=r.f(o),c=s.reject,l=i(function(){var r=n(o.resolve);a(e,function(e){t(r,o,e).then(s.resolve,c)})});return l.error&&c(l.value),s.promise}})}),Fn=b(()=>{var e=Le(),t=On(),n=Dn().CONSTRUCTOR;e({target:`Promise`,stat:!0,forced:n},{reject:function(e){var n=t.f(this),r=n.reject;return r(e),n.promise}})}),In=b((e,t)=>{var n=Pe(),r=ae(),i=On();t.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var a=i.f(e),o=a.resolve;return o(t),a.promise}}),Ln=b(()=>{var e=Le(),t=se(),n=ve(),r=En(),i=Dn().CONSTRUCTOR,a=In(),o=t(`Promise`),s=n&&!i;e({target:`Promise`,stat:!0,forced:n||i},{resolve:function(e){return a(s&&this===o?r:this,e)}})}),Rn=b(()=>{kn(),Mn(),Nn(),Pn(),Fn(),Ln()}),zn=b(()=>{var e=Le(),t=ve(),n=En(),r=T(),i=se(),a=j(),o=mn(),s=In(),c=mt(),l=n&&n.prototype;e({target:`Promise`,proto:!0,real:!0,forced:!!n&&r(function(){l.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=o(this,i(`Promise`)),n=a(e);return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}}),!t&&a(n)&&(u=i(`Promise`).prototype.finally,l.finally!==u&&c(l,`finally`,u,{unsafe:!0}));var u}),Bn=b((e,t)=>{Rn(),zn(),t.exports=qt()(`Promise`,`finally`)}),Vn=b((e,t)=>{t.exports=Bn()}),Hn=b((e,t)=>{t.exports=Vn()}),Un={};C(Un,{registerPlayerWebComponent:()=>dp,loadVKLangPack:()=>lp.loadVKLangPack,VideoQuality:()=>up.VideoQuality,VideoFormat:()=>up.VideoFormat,VKNumericLanguage:()=>lp.VKNumericLanguage,VERSION:()=>su,InterfaceLanguage:()=>lp.InterfaceLanguage}),module.exports=v(Un);var F=1,Wn=2,Gn=4,Kn=8,qn=16,Jn=1,Yn=2,Xn=`[`,Zn=`[!`,Qn=`[?`,$n=`]`,er={},tr=Symbol(),nr=Symbol(`filename`),rr=`http://www.w3.org/1999/xhtml`,I=!0,ir=Array.isArray,ar=Array.prototype.indexOf,or=Array.prototype.includes,sr=Array.from;Object.keys;var cr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,ur=Object.getOwnPropertyDescriptors,dr=Object.prototype,fr=Array.prototype,pr=Object.getPrototypeOf,mr=Object.isExtensible,hr=()=>{};function gr(e){for(var t=0;t<e.length;t++)e[t]()}function _r(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var vr=2,yr=4,br=8,xr=1<<24,Sr=16,Cr=32,wr=64,Tr=128,Er=512,Dr=1024,Or=2048,kr=4096,Ar=8192,jr=16384,Mr=32768,Nr=65536,Pr=1<<17,Fr=1<<18,Ir=1<<19,Lr=1<<20,Rr=65536,zr=1<<21,Br=1<<22,Vr=1<<23,Hr=Symbol(`$state`),Ur=Symbol(`legacy props`),Wr=Symbol(``),Gr=Symbol(`proxy path`),Kr=new class extends Error{constructor(...t){super(...t),e(this,`name`,`StaleReactionError`),e(this,`message`,"The reaction that called `getAbortSignal()` was re-run or destroyed")}},qr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`),Jr=3,Yr=8;function Xr(e){if(I){let t=Error(`lifecycle_outside_component
7
+ \`${e}(...)\` can only be used during component initialisation
8
+ https://svelte.dev/e/lifecycle_outside_component`);throw t.name=`Svelte error`,t}else throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Zr(){if(I){let e=Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw e.name=`Svelte error`,e}else throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Qr(){if(I){let e=Error(`derived_references_self
7
9
  A derived value cannot reference itself recursively
8
- https://svelte.dev/e/derived_references_self`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/derived_references_self")}function Ws(e){if(K){let t=new Error(`effect_in_teardown
10
+ https://svelte.dev/e/derived_references_self`);throw e.name=`Svelte error`,e}else throw Error(`https://svelte.dev/e/derived_references_self`)}function $r(e){if(I){let t=Error(`effect_in_teardown
9
11
  \`${e}\` cannot be used inside an effect cleanup function
10
- https://svelte.dev/e/effect_in_teardown`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Gs(){if(K){let e=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 e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function qs(e){if(K){let t=new Error(`effect_orphan
12
+ https://svelte.dev/e/effect_in_teardown`);throw t.name=`Svelte error`,t}else throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ei(){if(I){let e=Error(`effect_in_unowned_derived
13
+ Effect cannot be created inside a \`$derived\` value that was not itself created inside an effect
14
+ https://svelte.dev/e/effect_in_unowned_derived`);throw e.name=`Svelte error`,e}else throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ti(e){if(I){let t=Error(`effect_orphan
11
15
  \`${e}\` can only be used inside an effect (e.g. during component initialisation)
12
- https://svelte.dev/e/effect_orphan`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_orphan")}function Ks(){if(K){let e=new Error(`effect_update_depth_exceeded
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 e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Zs(){if(K){let e=new Error(`hydration_failed
15
- Failed to hydrate the application
16
- https://svelte.dev/e/hydration_failed`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/hydration_failed")}function Js(){if(K){let e=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 e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Xs(e){if(K){let t=new Error(`props_invalid_value
16
+ https://svelte.dev/e/effect_orphan`);throw t.name=`Svelte error`,t}else throw Error(`https://svelte.dev/e/effect_orphan`)}function ni(){if(I){let e=Error(`effect_update_depth_exceeded
17
+ Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state
18
+ https://svelte.dev/e/effect_update_depth_exceeded`);throw e.name=`Svelte error`,e}else throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ri(){if(I){let e=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 e.name=`Svelte error`,e}else throw Error(`https://svelte.dev/e/invalid_snippet`)}function ii(e){if(I){let t=Error(`props_invalid_value
17
19
  Cannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value
18
- https://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/props_invalid_value")}function el(e){if(K){let t=new Error(`rune_outside_svelte
20
+ https://svelte.dev/e/props_invalid_value`);throw t.name=`Svelte error`,t}else throw Error(`https://svelte.dev/e/props_invalid_value`)}function ai(e){if(I){let t=Error(`rune_outside_svelte
19
21
  The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
20
- https://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function tl(){if(K){let e=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 e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function il(){if(K){let e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function nl(){if(K){let e=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 e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Ii=!1,Ni=!1;function rl(){Ii=!0}var Qi="[",Yi="[!",Zi="]",Oi={};var mt=Symbol(),_i=Symbol("filename"),ol=Symbol("hmr"),al="http://www.w3.org/1999/xhtml";var Fn=null;function Pi(e){let t=Error(),i=t.stack;if(i){let n=i.split(`
21
- `),r=[`
22
- `];for(let o=0;o<n.length;o++){let s=n[o];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||r.push(s)}}if(r.length===1)return null;yt(t,"stack",{value:r.join(`
23
- `)}),yt(t,"name",{value:`${e}Error`})}return t}function yi(e,t){return e.label=t,wr(e.v,t),e}function wr(e,t){var i;return(i=e==null?void 0:e[Ar])==null||i.call(e,t),e}function Mr(){if(K){let e=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 e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/invalid_default_snippet")}function _n(e){if(K){let t=new Error(`lifecycle_outside_component
24
- \`${e}(...)\` can only be used during component initialisation
25
- https://svelte.dev/e/lifecycle_outside_component`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Ce=null;function Hn(e){Ce=e}var bi=null;function Bn(e){bi=e}function Qn(e){return ll("getContext").get(e)}function Yn(e,t){return ll("setContext").set(e,t),t}function Se(e,t=!1,i){var n=Ce={p:Ce,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};Ii&&!t&&(Ce.l={s:null,u:null,r1:[],r2:pi(!1)}),Ct(()=>{n.d=!0}),K&&(Ce.function=i,bi=i)}function Ie(e){var s,a;let t=Ce;if(t!==null){e!==void 0&&(t.x=e);let c=t.e;if(c!==null){var i=be,n=Te;t.e=null;try{for(var r=0;r<c.length;r++){var o=c[r];At(o.effect),_t(o.reaction),Qt(o.fn)}}finally{At(i),_t(n)}}Ce=t.p,K&&(bi=(a=(s=t.p)==null?void 0:s.function)!=null?a:null),t.m=!0}return e||{}}function Di(){return!Ii||Ce!==null&&Ce.l===null}function ll(e){var t;return Ce===null&&_n(e),(t=Ce.c)!=null?t:Ce.c=new Map(lc(Ce)||void 0)}function lc(e){let t=e.p;for(;t!==null;){let i=t.c;if(i!==null)return i;t=t.p}return null}var dc=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function kt(e){if(typeof e!="object"||e===null||Bt in e)return e;let t=mn(e);if(t!==ko&&t!==Hs)return e;var i=new Map,n=di(e),r=Pe(0),o=K&&Ni?Pi("CreatedAt"):null,s=Te,a=p=>{var l=Te;_t(s);var u=p();return _t(l),u};n&&i.set("length",Pe(e.length,o));var c="";function v(p){c=p,yi(r,`${c} version`);for(let[l,u]of i)yi(u,Ji(c,l))}return new Proxy(e,{defineProperty(p,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&tl();var m=i.get(l);return m===void 0?m=a(()=>{var h=Pe(u.value,o);return i.set(l,h),K&&typeof l=="string"&&yi(h,Ji(c,l)),h}):fe(m,u.value,!0),!0},deleteProperty(p,l){var u=i.get(l);if(u===void 0){if(l in p){let _=a(()=>Pe(mt,o));i.set(l,_),Po(r),K&&yi(_,Ji(c,l))}}else{if(n&&typeof l=="string"){var m=i.get("length"),h=Number(l);Number.isInteger(h)&&h<m.v&&fe(m,h)}fe(u,mt),Po(r)}return!0},get(p,l,u){var y;if(l===Bt)return e;if(K&&l===Ar)return v;var m=i.get(l),h=l in p;if(m===void 0&&(!h||(y=Ht(p,l))!=null&&y.writable)&&(m=a(()=>{var C=kt(h?p[l]:mt),I=Pe(C,o);return K&&yi(I,Ji(c,l)),I}),i.set(l,m)),m!==void 0){var _=D(m);return _===mt?void 0:_}return Reflect.get(p,l,u)},getOwnPropertyDescriptor(p,l){var u=Reflect.getOwnPropertyDescriptor(p,l);if(u&&"value"in u){var m=i.get(l);m&&(u.value=D(m))}else if(u===void 0){var h=i.get(l),_=h==null?void 0:h.v;if(h!==void 0&&_!==mt)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return u},has(p,l){var _;if(l===Bt)return!0;var u=i.get(l),m=u!==void 0&&u.v!==mt||Reflect.has(p,l);if(u!==void 0||be!==null&&(!m||(_=Ht(p,l))!=null&&_.writable)){u===void 0&&(u=a(()=>{var y=m?kt(p[l]):mt,C=Pe(y,o);return K&&yi(C,Ji(c,l)),C}),i.set(l,u));var h=D(u);if(h===mt)return!1}return m},set(p,l,u,m){var A;var h=i.get(l),_=l in p;if(n&&l==="length")for(var y=u;y<h.v;y+=1){var C=i.get(y+"");C!==void 0?fe(C,mt):y in p&&(C=a(()=>Pe(mt,o)),i.set(y+"",C),K&&yi(C,Ji(c,y)))}if(h===void 0)(!_||(A=Ht(p,l))!=null&&A.writable)&&(h=a(()=>Pe(void 0,o)),fe(h,kt(u)),i.set(l,h),K&&yi(h,Ji(c,l)));else{_=h.v!==mt;var I=a(()=>kt(u));fe(h,I)}var N=Reflect.getOwnPropertyDescriptor(p,l);if(N!=null&&N.set&&N.set.call(m,u),!_){if(n&&typeof l=="string"){var b=i.get("length"),x=Number(l);Number.isInteger(x)&&x>=b.v&&fe(b,x+1)}Po(r)}return!0},ownKeys(p){D(r);var l=Reflect.ownKeys(p).filter(h=>{var _=i.get(h);return _===void 0||_.v!==mt});for(var[u,m]of i)m.v!==mt&&!(u in p)&&l.push(u);return l},setPrototypeOf(){il()}})}function Ji(e,t){var i;return typeof t=="symbol"?`${e}[Symbol(${(i=t.description)!=null?i:""})]`:dc.test(t)?`${e}.${t}`:/^\d+$/.test(t)?`${e}[${t}]`:`${e}['${t}']`}function Po(e,t=1){fe(e,e.v+t)}function Tr(e){try{if(e!==null&&typeof e=="object"&&Bt in e)return e[Bt]}catch(t){}return e}function Ri(e){var t=2050,i=Te!==null&&(Te.f&2)!==0?Te:null;be===null||i!==null&&(i.f&256)!==0?t|=256:be.f|=1048576;let n={ctx:Ce,deps:null,effects:null,equals:Er,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:be};return K&&Ni&&(n.created=Pi("CreatedAt")),n}function Re(e){let t=Ri(e);return Nr(t),t}function Wn(e){let t=Ri(e);return t.equals=hn,t}function Sr(e){var t=e.effects;if(t!==null){e.effects=null;for(var i=0;i<t.length;i+=1)Et(t[i])}}var Ro=[];function uc(e){for(var t=e.parent;t!==null;){if((t.f&2)===0)return t;t=t.parent}return null}function zo(e){var t,i=be;if(At(uc(e)),K){let n=Xi;Vo(new Set);try{Ro.includes(e)&&Ys(),Ro.push(e),Sr(e),t=Ir(e)}finally{At(i),Vo(n),Ro.pop()}}else try{Sr(e),t=Ir(e)}finally{At(i)}return t}function Uo(e){var t=zo(e);if(e.equals(t)||(e.v=t,e.wv=Gn()),!Vi){var i=(ji||(e.f&256)!==0)&&e.deps!==null?4096:1024;Ut(e,i)}}var Xi=new Set,yn=new Map;function Vo(e){Xi=e}function pi(e,t){var i={f:0,v:e,reactions:null,equals:Er,rv:0,wv:0};return K&&Ni&&(i.created=t!=null?t:Pi("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Pe(e,t){let i=pi(e,t);return Nr(i),i}function Ci(e,t=!1,i=!0){var r,o;let n=pi(e);return t||(n.equals=hn),Ii&&i&&Ce!==null&&Ce.l!==null&&((o=(r=Ce.l).s)!=null?o:r.s=[]).push(n),n}function fe(e,t,i=!1){var r;Te!==null&&(!Zt||(Te.f&262144)!==0)&&Di()&&(Te.f&262162)!==0&&!((r=It)!=null&&r[1].includes(e)&&It[0]===Te)&&nl();let n=i?kt(t):t;return K&&wr(n,e.label),xn(e,n)}function xn(e,t){if(!e.equals(t)){var i=e.v;if(Vi?yn.set(e,t):yn.set(e,i),e.v=t,K&&Ni&&(e.updated=Pi("UpdatedAt"),be!==null&&(e.set_during_effect=!0)),(e.f&2)!==0&&((e.f&2048)!==0&&zo(e),Ut(e,(e.f&256)===0?1024:4096)),e.wv=Gn(),dl(e,2048),Di()&&be!==null&&(be.f&1024)!==0&&(be.f&96)===0&&(Kt===null?ul([e]):Kt.push(e)),K&&Xi.size>0){let n=Array.from(Xi);for(let r of n)(r.f&1024)!==0&&Ut(r,4096),en(r)&&An(r);Xi.clear()}}return t}function dl(e,t){var i=e.reactions;if(i!==null)for(var n=Di(),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){Xi.add(s);continue}Ut(s,t),(a&1280)!==0&&((a&2)!==0?dl(s,4096):Kn(s))}}}var Dr="font-weight: bold",Cr="font-weight: normal";function cl(e,t,i){K?console.warn(`%c[svelte] hydration_attribute_changed
26
- %cThe \`${e}\` attribute on \`${t}\` 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`,Dr,Cr):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function tn(e){K?console.warn(`%c[svelte] hydration_mismatch
28
- %c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
29
- https://svelte.dev/e/hydration_mismatch`,Dr,Cr):console.warn("https://svelte.dev/e/hydration_mismatch")}function pl(){K?console.warn(`%c[svelte] lifecycle_double_unmount
22
+ https://svelte.dev/e/rune_outside_svelte`);throw t.name=`Svelte error`,t}else throw Error(`https://svelte.dev/e/rune_outside_svelte`)}function oi(){if(I){let e=Error("set_context_after_init\n`setContext` must be called when a component first initializes, not in a subsequent effect or after an `await` expression\nhttps://svelte.dev/e/set_context_after_init");throw e.name=`Svelte error`,e}else throw Error(`https://svelte.dev/e/set_context_after_init`)}function si(){if(I){let e=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 e.name=`Svelte error`,e}else throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function ci(){if(I){let e=Error(`state_prototype_fixed
23
+ Cannot set prototype of \`$state\` object
24
+ https://svelte.dev/e/state_prototype_fixed`);throw e.name=`Svelte error`,e}else throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function li(){if(I){let e=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 e.name=`Svelte error`,e}else throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function ui(){if(I){let e=Error("svelte_boundary_reset_onerror\nA `<svelte:boundary>` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw e.name=`Svelte error`,e}else throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var di=`font-weight: bold`,fi=`font-weight: normal`;function pi(e,t){I?console.warn(`%c[svelte] await_waterfall
25
+ %cAn async derived, \`${e}\` (${t}) was not read immediately after it resolved. This often indicates an unnecessary waterfall, which can slow down your app
26
+ https://svelte.dev/e/await_waterfall`,di,fi):console.warn(`https://svelte.dev/e/await_waterfall`)}function mi(e,t,n){I?console.warn(`%c[svelte] hydration_attribute_changed
27
+ %cThe \`${e}\` attribute on \`${t}\` changed its value between server and client renders. The client value, \`${n}\`, will be ignored in favour of the server value
28
+ https://svelte.dev/e/hydration_attribute_changed`,di,fi):console.warn(`https://svelte.dev/e/hydration_attribute_changed`)}function hi(e){I?console.warn(`%c[svelte] hydration_mismatch
29
+ %c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:`Hydration failed because the initial UI does not match what was rendered on the server`}
30
+ https://svelte.dev/e/hydration_mismatch`,di,fi):console.warn(`https://svelte.dev/e/hydration_mismatch`)}function gi(){I?console.warn(`%c[svelte] lifecycle_double_unmount
30
31
  %cTried to unmount a component that was not mounted
31
- https://svelte.dev/e/lifecycle_double_unmount`,Dr,Cr):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function kr(e){K?console.warn(`%c[svelte] state_proxy_equality_mismatch
32
+ https://svelte.dev/e/lifecycle_double_unmount`,di,fi):console.warn(`https://svelte.dev/e/lifecycle_double_unmount`)}function _i(e){I?console.warn(`%c[svelte] state_proxy_equality_mismatch
32
33
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
33
- https://svelte.dev/e/state_proxy_equality_mismatch`,Dr,Cr):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var me=!1;function $t(e){me=e}var Ae;function lt(e){if(e===null)throw tn(),Oi;return Ae=e}function wt(){return lt(Ot(Ae))}function H(e){if(me){if(Ot(Ae)!==null)throw tn(),Oi;Ae=e}}function Lr(e=1){if(me){for(var t=e,i=Ae;t--;)i=Ot(i);Ae=i}}function nn(){for(var e=0,t=Ae;;){if(t.nodeType===ui){var i=t.data;if(i===Zi){if(e===0)return t;e-=1}else(i===Qi||i===Yi)&&(e+=1)}var n=Ot(t);t.remove(),t=n}}function $r(e){if(!e||e.nodeType!==ui)throw tn(),Oi;return e.data}function fl(){let e=Array.prototype,t=Array.__svelte_cleanup;t&&t();let{indexOf:i,lastIndexOf:n,includes:r}=e;e.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(Tr(this[c])===o){kr("array.indexOf(...)");break}}return a},e.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(Tr(this[c])===o){kr("array.lastIndexOf(...)");break}}return a},e.includes=function(o,s){let a=r.call(this,o,s);if(!a){for(let c=0;c<this.length;c+=1)if(Tr(this[c])===o){kr("array.includes(...)");break}}return a},Array.__svelte_cleanup=()=>{e.indexOf=i,e.lastIndexOf=n,e.includes=r}}var Fo,ml,Zn,vl,gl;function Or(){if(Fo===void 0){Fo=window,ml=document,Zn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,i=Text.prototype;vl=Ht(t,"firstChild").get,gl=Ht(t,"nextSibling").get,Lo(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Lo(i)&&(i.__t=void 0),K&&(e.__svelte_meta=null,fl())}}function fi(e=""){return document.createTextNode(e)}function vt(e){return vl.call(e)}function Ot(e){return gl.call(e)}function B(e,t){if(!me)return vt(e);var i=vt(Ae);if(i===null)i=Ae.appendChild(fi());else if(t&&i.nodeType!==Un){var n=fi();return i==null||i.before(n),lt(n),n}return lt(i),i}function Xt(e,t){var r,o;if(!me){var i=vt(e);return i.nodeType===8&&i.data===""?Ot(i):i}if(t&&((r=Ae)==null?void 0:r.nodeType)!==Un){var n=fi();return(o=Ae)==null||o.before(n),lt(n),n}return Ae}function ne(e,t=1,i=!1){let n=me?Ae:e;for(var r;t--;)r=n,n=Ot(n);if(!me)return n;if(i&&(n==null?void 0:n.nodeType)!==Un){var o=fi();return n===null?r==null||r.after(o):n.before(o),lt(o),o}return lt(n),n}function Jn(e){e.textContent=""}function _l(e){be===null&&Te===null&&qs(e),Te!==null&&(Te.f&256)!==0&&be===null&&Gs(),Vi&&Ws(e)}function cc(e,t){var i=t.last;i===null?t.last=t.first=e:(i.next=e,e.prev=i,t.last=e)}function rn(e,t,i,n=!0){var c;var r=be;if(K)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var o={ctx:Ce,deps:null,nodes_start:null,nodes_end:null,f:e|2048,first:null,fn:t,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(K&&(o.component_function=bi),i)try{An(o),o.f|=32768}catch(v){throw Et(o),v}else t!==null&&Kn(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&&cc(o,r),Te!==null&&(Te.f&2)!==0)){var a=Te;((c=a.effects)!=null?c:a.effects=[]).push(o)}return o}function Ct(e){let t=rn(8,null,!1);return Ut(t,1024),t.teardown=e,t}function Wt(e){var r;_l("$effect");var t=be!==null&&(be.f&32)!==0&&Ce!==null&&!Ce.m;if(K&&yt(e,"name",{value:"$effect"}),t){var i=Ce;((r=i.e)!=null?r:i.e=[]).push({fn:e,effect:be,reaction:Te})}else{var n=Qt(e);return n}}function jr(e){let t=rn(64,e,!0);return()=>{Et(t)}}function yl(e){let t=rn(64,e,!0);return(i={})=>new Promise(n=>{i.outro?mi(t,()=>{Et(t),n(void 0)}):(Et(t),n(void 0))})}function Qt(e){return rn(4,e,!1)}function Pt(e){return rn(8,e,!0)}function ye(e,t=[],i=Ri){if(K)return Pt(()=>{var r=be,o=()=>e(...s.map(D));yt(r.fn,"name",{value:"{expression}"}),yt(o,"name",{value:"{expression}"});let s=t.map(i);Mt(o)});let n=t.map(i);return Mt(()=>e(...n.map(D)))}function Mt(e,t=0){return rn(24|t,e,!0)}function bt(e,t=!0){return rn(40,e,!0,t)}function Qo(e){var t=e.teardown;if(t!==null){let i=Vi,n=Te;Ho(!0),_t(null);try{t.call(null)}finally{Ho(i),_t(n)}}}function Yo(e,t=!1){var i=e.first;for(e.first=e.last=null;i!==null;){var n=i.next;(i.f&64)!==0?i.parent=null:Et(i,t),i=n}}function bl(e){for(var t=e.first;t!==null;){var i=t.next;(t.f&32)===0&&Et(t),t=i}}function Et(e,t=!0){var i=!1;(t||(e.f&524288)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(xl(e.nodes_start,e.nodes_end),i=!0),Yo(e,t&&!i),er(e,0),Ut(e,16384);var n=e.transitions;if(n!==null)for(let o of n)o.stop();Qo(e);var r=e.parent;r!==null&&r.first!==null&&Wo(e),K&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function xl(e,t){for(;e!==null;){var i=e===t?null:Ot(e);e.remove(),e=i}}function Wo(e){var t=e.parent,i=e.prev,n=e.next;i!==null&&(i.next=n),n!==null&&(n.prev=i),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=i))}function mi(e,t){var i=[];zr(e,i,!0),Go(i,()=>{Et(e),t&&t()})}function Go(e,t){var i=e.length;if(i>0){var n=()=>--i||t();for(var r of e)r.out(n)}else t()}function zr(e,t,i){if((e.f&8192)===0){if(e.f^=8192,e.transitions!==null)for(let s of e.transitions)(s.is_global||i)&&t.push(s);for(var n=e.first;n!==null;){var r=n.next,o=(n.f&65536)!==0||(n.f&32)!==0;zr(n,t,o?i:!1),n=r}}}function Wi(e){Al(e,!0)}function Al(e,t){if((e.f&8192)!==0){e.f^=8192;for(var i=e.first;i!==null;){var n=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;Al(i,r?t:!1),i=n}if(e.transitions!==null)for(let o of e.transitions)(o.is_global||t)&&o.in()}}var tr=[],qo=[];function El(){var e=tr;tr=[],vn(e)}function pc(){var e=qo;qo=[],vn(e)}function ei(e){tr.length===0&&queueMicrotask(El),tr.push(e)}function wl(){tr.length>0&&El(),qo.length>0&&pc()}function Tl(e){var t=be;if(K&&e instanceof Error&&fc(e,t),(t.f&32768)===0){if((t.f&128)===0)throw e;t.fn(e)}else ir(e,t)}function ir(e,t){for(;t!==null;){if((t.f&128)!==0)try{t.fn(e);return}catch(i){}t=t.parent}throw e}var Ml=new WeakSet;function fc(e,t){var s,a;if(Ml.has(e))return;Ml.add(e);let i=Ht(e,"message");if(!(i&&!i.configurable)){for(var n=Zn?" ":" ",r=`
34
- ${n}in ${((s=t.fn)==null?void 0:s.name)||"<unknown>"}`,o=t.ctx;o!==null;)r+=`
35
- ${n}in ${(a=o.function)==null?void 0:a[_i].split("/").pop()}`,o=o.p;yt(e,"message",{value:e.message+`
36
- ${r}
37
- `}),e.stack&&yt(e,"stack",{value:e.stack.split(`
38
- `).filter(c=>!c.includes("svelte/src/internal")).join(`
39
- `)})}}var on=!1,En=null,an=!1,Vi=!1;function Ho(e){Vi=e}var nr=[],rr=[],Te=null,Zt=!1;function _t(e){Te=e}var be=null;function At(e){be=e}var It=null;function Nr(e){Te!==null&&Te.f&2097152&&(It===null?It=[Te,[e]]:It[1].push(e))}var Ft=null,ti=0,Kt=null;function ul(e){Kt=e}var Nl=1,Fr=0,ji=!1,Hr=null;function Gn(){return++Nl}function en(e){var l,u;var t=e.f;if((t&2048)!==0)return!0;if((t&4096)!==0){var i=e.deps,n=(t&256)!==0;if(i!==null){var r,o,s=(t&512)!==0,a=n&&be!==null&&!ji,c=i.length;if(s||a){var v=e,p=v.parent;for(r=0;r<c;r++)o=i[r],(s||!((l=o==null?void 0:o.reactions)!=null&&l.includes(v)))&&((u=o.reactions)!=null?u:o.reactions=[]).push(v);s&&(v.f^=512),a&&p!==null&&(p.f&256)===0&&(v.f^=256)}for(r=0;r<c;r++)if(o=i[r],en(o)&&Uo(o),o.wv>e.wv)return!0}(!n||be!==null&&!ji)&&Ut(e,1024)}return!1}function Dl(e,t,i=!0){var n=e.reactions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];It!=null&&It[1].includes(e)&&It[0]===Te||((o.f&2)!==0?Dl(o,t,!1):t===o&&(i?Ut(o,2048):(o.f&1024)!==0&&Ut(o,4096),Kn(o)))}}function Ir(e){var m,h;var t=Ft,i=ti,n=Kt,r=Te,o=ji,s=It,a=Ce,c=Zt,v=e.f;Ft=null,ti=0,Kt=null,ji=(v&256)!==0&&(Zt||!an||Te===null),Te=(v&96)===0?e:null,It=null,Hn(e.ctx),Zt=!1,Fr++,e.f|=2097152;try{var p=(0,e.fn)(),l=e.deps;if(Ft!==null){var u;if(er(e,ti),l!==null&&ti>0)for(l.length=ti+Ft.length,u=0;u<Ft.length;u++)l[ti+u]=Ft[u];else e.deps=l=Ft;if(!ji||(v&2)!==0&&e.reactions!==null)for(u=ti;u<l.length;u++)((h=(m=l[u]).reactions)!=null?h:m.reactions=[]).push(e)}else l!==null&&ti<l.length&&(er(e,ti),l.length=ti);if(Di()&&Kt!==null&&!Zt&&l!==null&&(e.f&6146)===0)for(u=0;u<Kt.length;u++)Dl(Kt[u],e);return r!==null&&r!==e&&(Fr++,Kt!==null&&(n===null?n=Kt:n.push(...Kt))),p}catch(_){Tl(_)}finally{Ft=t,ti=i,Kt=n,Te=r,ji=o,It=s,Hn(a),Zt=c,e.f^=2097152}}function mc(e,t){let i=t.reactions;if(i!==null){var n=Fs.call(i,e);if(n!==-1){var r=i.length-1;r===0?i=t.reactions=null:(i[n]=i[r],i.pop())}}i===null&&(t.f&2)!==0&&(Ft===null||!Ft.includes(t))&&(Ut(t,4096),(t.f&768)===0&&(t.f^=512),Sr(t),er(t,0))}function er(e,t){var i=e.deps;if(i!==null)for(var n=t;n<i.length;n++)mc(e,i[n])}function An(e){var t=e.f;if((t&16384)===0){Ut(e,1024);var i=be,n=an;if(be=e,an=!0,K){var r=bi;Bn(e.component_function)}try{(t&16)!==0?bl(e):Yo(e),Qo(e);var o=Ir(e);if(e.teardown=typeof o=="function"?o:null,e.wv=Nl,K&&Ni&&(e.f&2048)!==0&&e.deps!==null)for(var s of e.deps)s.set_during_effect&&(s.wv=Gn(),s.set_during_effect=!1);K&&rr.push(e)}finally{an=n,be=i,K&&Bn(r)}}}function Sl(){console.error("Last ten effects were: ",rr.slice(-10).map(e=>e.fn)),rr=[]}function vc(){try{Ks()}catch(e){if(K&&yt(e,"stack",{value:""}),En!==null)if(K)try{ir(e,En)}catch(t){throw Sl(),t}else ir(e,En);else throw K&&Sl(),e}}function Zo(){var e=an;try{var t=0;for(an=!0;nr.length>0;){t++>1e3&&vc();var i=nr,n=i.length;nr=[];for(var r=0;r<n;r++){var o=hc(i[r]);gc(o)}yn.clear()}}finally{on=!1,an=e,En=null,K&&(rr=[])}}function gc(e){var t=e.length;if(t!==0)for(var i=0;i<t;i++){var n=e[i];(n.f&24576)===0&&en(n)&&(An(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Wo(n):n.fn=null))}}function Kn(e){on||(on=!0,queueMicrotask(Zo));for(var t=En=e;t.parent!==null;){t=t.parent;var i=t.f;if((i&96)!==0){if((i&1024)===0)return;t.f^=1024}}nr.push(t)}function hc(e){for(var t=[],i=e;i!==null;){var n=i.f,r=(n&96)!==0,o=r&&(n&1024)!==0;if(!o&&(n&8192)===0){(n&4)!==0?t.push(i):r?i.f^=1024:en(i)&&An(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 t}function or(e){var t;for(e&&(on=!0,Zo(),on=!0,t=e());;){if(wl(),nr.length===0)return on=!1,En=null,K&&(rr=[]),t;on=!0,Zo()}}function D(e){var t=e.f,i=(t&2)!==0;if(Hr!==null&&Hr.add(e),Te!==null&&!Zt){if(!(It!=null&&It[1].includes(e))||It[0]!==Te){var n=Te.deps;e.rv<Fr&&(e.rv=Fr,Ft===null&&n!==null&&n[ti]===e?ti++:Ft===null?Ft=[e]:(!ji||!Ft.includes(e))&&Ft.push(e))}}else if(i&&e.deps===null&&e.effects===null){var r=e,o=r.parent;o!==null&&(o.f&256)===0&&(r.f^=256)}if(i&&(r=e,en(r)&&Uo(r)),K&&Ni&&!Zt&&Fn!==null&&Te!==null&&Fn.reaction===Te)if(e.trace)e.trace();else{var s=Pi("TracedAt");if(s){var a=Fn.entries.get(e);a===void 0&&(a={traces:[]},Fn.entries.set(e,a));var c=a.traces[a.traces.length-1];s.stack!==(c==null?void 0:c.stack)&&a.traces.push(s)}}return Vi&&yn.has(e)?yn.get(e):e.v}function Xe(e){var t=Zt;try{return Zt=!0,e()}finally{Zt=t}}var _c=-7169;function Ut(e,t){e.f=e.f&_c|t}var bc=["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 dg=[...bc,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var xc=["touchstart","touchmove"];function Cl(e){return xc.includes(e)}var Ac=["$state","$state.raw","$derived","$derived.by"],ug=[...Ac,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var Ll=new Map;function $l(e,t){var i=Ll.get(e);i||(i=new Set,Ll.set(e,i)),i.add(t)}function Br(e){var t=Te,i=be;_t(null),At(null);try{return e()}finally{_t(t),At(i)}}var Jo=new Set,Qr=new Set;function Pl(e,t,i,n={}){function r(o){if(n.capture||wn.call(t,o),!o.cancelBubble)return Br(()=>i==null?void 0:i.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ei(()=>{t.addEventListener(e,r,n)}):t.addEventListener(e,r,n),r}function Xo(e,t,i,n,r){var o={capture:n,passive:r},s=Pl(e,t,i,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ct(()=>{t.removeEventListener(e,s,o)})}function Gt(e){for(var t=0;t<e.length;t++)Jo.add(e[t]);for(var i of Qr)i(e)}function wn(e){var I;var t=this,i=t.ownerDocument,n=e.type,r=((I=e.composedPath)==null?void 0:I.call(e))||[],o=r[0]||e.target,s=0,a=e.__root;if(a){var c=r.indexOf(a);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var v=r.indexOf(t);if(v===-1)return;c<=v&&(s=c)}if(o=r[s]||e.target,o!==t){yt(e,"currentTarget",{configurable:!0,get(){return o||i}});var p=Te,l=be;_t(null),At(null);try{for(var u,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var _=o["__"+n];if(_!=null&&(!o.disabled||e.target===o))if(di(_)){var[y,...C]=_;y.apply(o,[e,...C])}else _.call(o,e)}catch(N){u?m.push(N):u=N}if(e.cancelBubble||h===t||h===null)break;o=h}if(u){for(let N of m)queueMicrotask(()=>{throw N});throw u}}finally{e.__root=t,delete e.currentTarget,_t(p),At(l)}}}var Mc;function Rl(){Mc=void 0}function ar(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ii(e,t){var i=be;i.nodes_start===null&&(i.nodes_start=e,i.nodes_end=t)}function ue(e,t){var i=(t&1)!==0,n=(t&2)!==0,r,o=!e.startsWith("<!>");return()=>{if(me)return ii(Ae,null),Ae;r===void 0&&(r=ar(o?e:"<!>"+e),i||(r=vt(r)));var s=n||Zn?document.importNode(r,!0):r.cloneNode(!0);if(i){var a=vt(s),c=s.lastChild;ii(a,c)}else ii(s,s);return s}}function Sc(e,t,i="svg"){var n=!e.startsWith("<!>"),r=(t&1)!==0,o=`<${i}>${n?e:"<!>"+e}</${i}>`,s;return()=>{if(me)return ii(Ae,null),Ae;if(!s){var a=ar(o),c=vt(a);if(r)for(s=document.createDocumentFragment();vt(c);)s.appendChild(vt(c));else s=vt(c)}var v=s.cloneNode(!0);if(r){var p=vt(v),l=v.lastChild;ii(p,l)}else ii(v,v);return v}}function Rt(e,t){return Sc(e,t,"svg")}function sn(){if(me)return ii(Ae,null),Ae;var e=document.createDocumentFragment(),t=document.createComment(""),i=fi();return e.append(t,i),ii(t,i),e}function ee(e,t){if(me){be.nodes_end=Ae,wt();return}e!==null&&e.before(t)}var ea=!0;function Ne(e,t){var n;var i=t==null?"":typeof t=="object"?t+"":t;i!==((n=e.__t)!=null?n:e.__t=e.nodeValue)&&(e.__t=i,e.nodeValue=i+"")}function ln(e,t){return zl(e,t)}function ia(e,t){var s;Or(),t.intro=(s=t.intro)!=null?s:!1;let i=t.target,n=me,r=Ae;try{for(var o=vt(i);o&&(o.nodeType!==ui||o.data!==Qi);)o=Ot(o);if(!o)throw Oi;$t(!0),lt(o),wt();let a=zl(e,{...t,anchor:o});if(Ae===null||Ae.nodeType!==ui||Ae.data!==Zi)throw tn(),Oi;return $t(!1),a}catch(a){if(a===Oi)return t.recover===!1&&Zs(),Or(),Jn(i),$t(!1),ln(e,t);throw a}finally{$t(n),lt(r),Rl()}}var Mn=new Map;function zl(e,{target:t,anchor:i,props:n={},events:r,context:o,intro:s=!0}){Or();var a=new Set,c=l=>{for(var u=0;u<l.length;u++){var m=l[u];if(!a.has(m)){a.add(m);var h=Cl(m);t.addEventListener(m,wn,{passive:h});var _=Mn.get(m);_===void 0?(document.addEventListener(m,wn,{passive:h}),Mn.set(m,1)):Mn.set(m,_+1)}}};c(jn(Jo)),Qr.add(c);var v=void 0,p=yl(()=>{var l=i!=null?i:t.appendChild(fi());return bt(()=>{if(o){Se({});var u=Ce;u.c=o}r&&(n.$$events=r),me&&ii(l,null),ea=s,v=e(l,n)||{},ea=!0,me&&(be.nodes_end=Ae),o&&Ie()}),()=>{var h;for(var u of a){t.removeEventListener(u,wn);var m=Mn.get(u);--m===0?(document.removeEventListener(u,wn),Mn.delete(u)):Mn.set(u,m)}Qr.delete(c),l!==i&&((h=l.parentNode)==null||h.removeChild(l))}});return ta.set(v,p),v}var ta=new WeakMap;function sr(e,t){let i=ta.get(e);return i?(ta.delete(e),i(t)):(K&&pl(),Promise.resolve())}function ke(e,t,[i,n]=[0,0]){me&&i===0&&wt();var r=e,o=null,s=null,a=mt,c=i>0?65536:0,v=!1;let p=(u,m=!0)=>{v=!0,l(m,u)},l=(u,m)=>{if(a===(a=u))return;let h=!1;if(me&&n!==-1){if(i===0){let y=$r(r);y===Qi?n=0:y===Yi?n=1/0:(n=parseInt(y.substring(1)),n!==n&&(n=a?1/0:-1))}let _=n>i;!!a===_&&(r=nn(),lt(r),$t(!1),h=!0,n=-1)}a?(o?Wi(o):m&&(o=bt(()=>m(r))),s&&mi(s,()=>{s=null})):(s?Wi(s):m&&(s=bt(()=>m(r,[i+1,n]))),o&&mi(o,()=>{o=null})),h&&$t(!0)};Mt(()=>{v=!1,t(p),v||l(null,null)},c),me&&(r=Ae)}function na(e,t,i){me&&wt();var n=e,r=mt,o,s=Di()?Qs:gn;Mt(()=>{s(r,r=t())&&(o&&mi(o),o=bt(()=>i(n)))}),me&&(n=Ae)}var lr=null;function Cc(e,t,i,n){for(var r=[],o=t.length,s=0;s<o;s++)zr(t[s].e,r,!0);var a=o>0&&r.length===0&&i!==null;if(a){var c=i.parentNode;Jn(c),c.append(i),n.clear(),Gi(e,t[0].prev,t[o-1].next)}Go(r,()=>{for(var v=0;v<o;v++){var p=t[v];a||(n.delete(p.k),Gi(e,p.prev,p.next)),Et(p.e,!a)}})}function aa(e,t,i,n,r,o=null){var s=e,a={flags:t,items:new Map,first:null},c=(t&4)!==0;if(c){var v=e;s=me?lt(vt(v)):v.appendChild(fi())}me&&wt();var p=null,l=!1,u=Wn(()=>{var m=i();return di(m)?m:m==null?[]:jn(m)});Mt(()=>{var m=D(u),h=m.length;if(l&&h===0)return;l=h===0;let _=!1;if(me){var y=$r(s)===Yi;y!==(h===0)&&(s=nn(),lt(s),$t(!1),_=!0)}if(me){for(var C=null,I,N=0;N<h;N++){if(Ae.nodeType===ui&&Ae.data===Zi){s=Ae,_=!0,$t(!1);break}var b=m[N],x=n(b,N);I=Hl(Ae,a,C,null,b,x,N,r,t,i),a.items.set(x,I),C=I}h>0&&lt(nn())}me||kc(m,a,s,r,t,n,i),o!==null&&(h===0?p?Wi(p):p=bt(()=>o(s)):p!==null&&mi(p,()=>{p=null})),_&&$t(!0),D(u)}),me&&(s=Ae)}function kc(e,t,i,n,r,o,s){var F,O,P,z;var a=(r&8)!==0,c=(r&3)!==0,v=e.length,p=t.items,l=t.first,u=l,m,h=null,_,y=[],C=[],I,N,b,x;if(a)for(x=0;x<v;x+=1)I=e[x],N=o(I,x),b=p.get(N),b!==void 0&&((F=b.a)==null||F.measure(),(_!=null?_:_=new Set).add(b));for(x=0;x<v;x+=1){if(I=e[x],N=o(I,x),b=p.get(N),b===void 0){var A=u?u.e.nodes_start:i;h=Hl(A,t,h,h===null?t.first:h.next,I,N,x,n,r,s),p.set(N,h),y=[],C=[],u=h.next;continue}if(c&&Lc(b,I,x,r),(b.e.f&8192)!==0&&(Wi(b.e),a&&((O=b.a)==null||O.unfix(),(_!=null?_:_=new Set).delete(b))),b!==u){if(m!==void 0&&m.has(b)){if(y.length<C.length){var S=C[0],$;h=S.prev;var L=y[0],E=y[y.length-1];for($=0;$<y.length;$+=1)Ul(y[$],S,i);for($=0;$<C.length;$+=1)m.delete(C[$]);Gi(t,L.prev,E.next),Gi(t,h,L),Gi(t,E,S),u=S,h=E,x-=1,y=[],C=[]}else m.delete(b),Ul(b,u,i),Gi(t,b.prev,b.next),Gi(t,b,h===null?t.first:h.next),Gi(t,h,b),h=b;continue}for(y=[],C=[];u!==null&&u.k!==N;)(u.e.f&8192)===0&&(m!=null?m:m=new Set).add(u),C.push(u),u=u.next;if(u===null)continue;b=u}y.push(b),h=b,u=b.next}if(u!==null||m!==void 0){for(var M=m===void 0?[]:jn(m);u!==null;)(u.e.f&8192)===0&&M.push(u),u=u.next;var g=M.length;if(g>0){var j=(r&4)!==0&&v===0?i:null;if(a){for(x=0;x<g;x+=1)(P=M[x].a)==null||P.measure();for(x=0;x<g;x+=1)(z=M[x].a)==null||z.fix()}Cc(t,M,j,p)}}a&&ei(()=>{var W;if(_!==void 0)for(b of _)(W=b.a)==null||W.apply()}),be.first=t.first&&t.first.e,be.last=h&&h.e}function Lc(e,t,i,n){(n&1)!==0&&xn(e.v,t),(n&2)!==0?xn(e.i,i):e.i=i}function Hl(e,t,i,n,r,o,s,a,c,v){var p=lr,l=(c&1)!==0,u=(c&16)===0,m=l?u?Ci(r,!1,!1):pi(r):r,h=(c&2)===0?s:pi(s);K&&l&&(m.trace=()=>{var y=typeof h=="number"?s:h.v;v()[y]});var _={i:h,v:m,k:o,a:null,e:null,prev:i,next:n};lr=_;try{return _.e=bt(()=>a(e,m,h,v),me),_.e.prev=i&&i.e,_.e.next=n&&n.e,i===null?t.first=_:(i.next=_,i.e.next=_.e),n!==null&&(n.prev=_,n.e.prev=_.e),_}finally{lr=p}}function Ul(e,t,i){for(var n=e.next?e.next.e.nodes_start:i,r=t?t.e.nodes_start:i,o=e.e.nodes_start;o!==n;){var s=Ot(o);r.before(o),o=s}}function Gi(e,t,i){t===null?e.first=i:(t.next=i,t.e.next=i&&i.e),i!==null&&(i.prev=t,i.e.prev=t&&t.e)}function sa(e,t,i,n,r){var a;me&&wt();var o=(a=t.$$slots)==null?void 0:a[i],s=!1;o===!0&&(o=t[i==="default"?"children":i],s=!0),o===void 0?r!==null&&r(e):o(e,s?()=>n:n)}function Tn(e,t,...i){var n=e,r=xt,o;Mt(()=>{r!==(r=t())&&(o&&(Et(o),o=null),K&&r==null&&Js(),o=bt(()=>r(n,...i)))},65536),me&&(n=Ae)}var ua;function Bl(e){return ua=e.target,new da(e)}var Ui,vi,da=class{constructor(t){br(this,Ui);br(this,vi);var o,s;var i=new Map,n=(a,c)=>{var v=Ci(c,!1,!1);return i.set(a,v),v};let r=new Proxy({...t.props||{},$$events:{}},{get(a,c){var v;return D((v=i.get(c))!=null?v:n(c,Reflect.get(a,c)))},has(a,c){var v;return c===zn?!0:(D((v=i.get(c))!=null?v:n(c,Reflect.get(a,c))),Reflect.has(a,c))},set(a,c,v){var p;return fe((p=i.get(c))!=null?p:n(c,v),v),Reflect.set(a,c,v)}});xr(this,vi,(t.hydrate?ia:ln)(t.component,{target:t.target,anchor:t.anchor,props:r,context:t.context,intro:(o=t.intro)!=null?o:!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&or(),xr(this,Ui,r.$$events);for(let a of Object.keys(zt(this,vi)))a==="$set"||a==="$destroy"||a==="$on"||yt(this,a,{get(){return zt(this,vi)[a]},set(c){zt(this,vi)[a]=c},enumerable:!0});zt(this,vi).$set=a=>{Object.assign(r,a)},zt(this,vi).$destroy=()=>{sr(zt(this,vi))}}$set(t){zt(this,vi).$set(t)}$on(t,i){zt(this,Ui)[t]=zt(this,Ui)[t]||[];let n=(...r)=>i.call(this,...r);return zt(this,Ui)[t].push(n),()=>{zt(this,Ui)[t]=zt(this,Ui)[t].filter(r=>r!==n)}}$destroy(){zt(this,vi).$destroy()}};Ui=new WeakMap,vi=new WeakMap;function Oe(e,t){ei(()=>{var r,o,s;var i=e.getRootNode(),n=i.host?i:(s=(r=i.head)!=null?r:i.ownerDocument.head)!=null?s:(o=ua)==null?void 0:o.parentNode;if(!(n!=null&&n.querySelector("#"+t.hash))){let a=document.createElement("style");a.id=t.hash,a.textContent=t.code,n.appendChild(a),K&&$l(t.hash,a)}})}function Yl(e){var t,i,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(i=Yl(e[t]))&&(n&&(n+=" "),n+=i)}else for(i in e)e[i]&&(n&&(n+=" "),n+=i);return n}function Wl(){for(var e,t,i=0,n="",r=arguments.length;i<r;i++)(e=arguments[i])&&(t=Yl(e))&&(n&&(n+=" "),n+=t);return n}function ki(e){return typeof e=="object"?Wl(e):e!=null?e:""}var Gl=[...`
40
- \r\f \v\uFEFF`];function Kl(e,t,i){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),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||Gl.includes(n[s-1]))&&(a===n.length||Gl.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function ql(e,t=!1){var i=t?" !important;":";",n="";for(var r in e){var o=e[r];o!=null&&o!==""&&(n+=" "+r+": "+o+i)}return n}function ca(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Zl(e,t){if(t){var i="",n,r;if(Array.isArray(t)?(n=t[0],r=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,a=!1,c=[];n&&c.push(...Object.keys(n).map(ca)),r&&c.push(...Object.keys(r).map(ca));var v=0,p=-1;let _=e.length;for(var l=0;l<_;l++){var u=e[l];if(a?u==="/"&&e[l-1]==="*"&&(a=!1):o?o===u&&(o=!1):u==="/"&&e[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 m=ca(e.substring(v,p).trim());if(!c.includes(m)){u!==";"&&l++;var h=e.substring(v,l).trim();i+=" "+h+";"}}v=l+1,p=-1}}}}return n&&(i+=ql(n)),r&&(i+=ql(r,!0)),i=i.trim(),i===""?null:i}return e==null?null:String(e)}function gi(e,t,i,n,r,o){var s=e.__className;if(me||s!==i||s===void 0){var a=Kl(i,n,o);(!me||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=i}else if(o&&r!==o)for(var c in o){var v=!!o[c];(r==null||v!==!!r[c])&&e.classList.toggle(c,v)}return o}function pa(e,t={},i,n){for(var r in i){var o=i[r];t[r]!==o&&(i[r]==null?e.style.removeProperty(r):e.style.setProperty(r,o,n))}}function at(e,t,i,n){var r=e.__style;if(me||r!==t){var o=Zl(t,n);(!me||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(pa(e,i==null?void 0:i[0],n[0]),pa(e,i==null?void 0:i[1],n[1],"important")):pa(e,i,n));return n}var Wc=Symbol("class"),Gc=Symbol("style"),qc=Symbol("is custom element"),Kc=Symbol("is html");function et(e,t,i,n){var r=Zc(e);if(me&&(r[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")){n||Xc(e,t,i!=null?i:"");return}r[t]!==(r[t]=i)&&(t==="loading"&&(e[Bs]=i),i==null?e.removeAttribute(t):typeof i!="string"&&Jc(e).includes(t)?e[t]=i:e.setAttribute(t,i))}function Zc(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[qc]:e.nodeName.includes("-"),[Kc]:e.namespaceURI===al}}var Jl=new Map;function Jc(e){var t=Jl.get(e.nodeName);if(t)return t;Jl.set(e.nodeName,t=[]);for(var i,n=e,r=Element.prototype;r!==n;){i=Co(n);for(var o in i)i[o].set&&t.push(o);n=mn(n)}return t}function Xc(e,t,i){var n;K&&(t==="srcset"&&ep(e,i)||fa((n=e.getAttribute(t))!=null?n:"",i)||cl(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(i)))}function fa(e,t){return e===t?!0:new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function Xl(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function ep(e,t){var i=Xl(e.srcset),n=Xl(t);return n.length===i.length&&n.every(([r,o],s)=>o===i[s][1]&&(fa(i[s][0],r)||fa(r,i[s][0])))}function ed(e,t){return e===t||(e==null?void 0:e[Bt])===t}function ni(e={},t,i,n){return Qt(()=>{var r,o;return Pt(()=>{r=o,o=(n==null?void 0:n())||[],Xe(()=>{e!==i(...o)&&(t(e,...o),r&&ed(i(...r),e)&&t(null,...r))})}),()=>{ei(()=>{o&&ed(i(...o),e)&&t(null,...o)})}}),e}function dr(e,t,i){if(e==null)return t(void 0),i&&i(void 0),xt;let n=Xe(()=>e.subscribe(t,i));return n.unsubscribe?()=>n.unsubscribe():n}var Sn=[];function ri(e,t){return{subscribe:Q(e,t).subscribe}}function Q(e,t=xt){let i=null,n=new Set;function r(a){if(gn(e,a)&&(e=a,i)){let c=!Sn.length;for(let v of n)v[1](),Sn.push(v,e);if(c){for(let v=0;v<Sn.length;v+=2)Sn[v][0](Sn[v+1]);Sn.length=0}}}function o(a){r(a(e))}function s(a,c=xt){let v=[a,c];return n.add(v),n.size===1&&(i=t(r,o)||xt),a(e),()=>{n.delete(v),n.size===0&&i&&(i(),i=null)}}return{set:r,update:o,subscribe:s}}function tt(e,t,i){let n=!Array.isArray(e),r=n?[e]:e;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let o=t.length<2;return ri(i,(s,a)=>{let c=!1,v=[],p=0,l=xt,u=()=>{if(p)return;l();let h=t(n?v[0]:v,s,a);o?s(h):l=typeof h=="function"?h:xt},m=r.map((h,_)=>dr(h,y=>{v[_]=y,p&=~(1<<_),c&&u()},()=>{p|=1<<_}));return c=!0,u(),function(){vn(m),l(),c=!1}})}function Ee(e){let t;return dr(e,i=>t=i)(),t}var Wr=!1,ma=Symbol();function it(e,t,i){var o;let n=(o=i[t])!=null?o:i[t]={store:null,source:Ci(void 0),unsubscribe:xt};if(n.store!==e&&!(ma in i))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=xt;else{var r=!0;n.unsubscribe=dr(e,s=>{r?n.source.v=s:fe(n.source,s)}),r=!1}return e&&ma in i?Ee(e):D(n.source)}function oi(){let e={};function t(){Ct(()=>{for(var i in e)e[i].unsubscribe();yt(e,ma,{enumerable:!1,value:!0})})}return[e,t]}function va(e){var t=Wr;try{return Wr=!1,[e(),Wr]}finally{Wr=t}}function td(e){var t,i;return(i=(t=e.ctx)==null?void 0:t.d)!=null?i:!1}function nt(e,t,i,n){var S,$;var r=(i&1)!==0,o=!Ii||(i&2)!==0,s=(i&8)!==0,a=(i&16)!==0,c=!1,v;s?[v,c]=va(()=>e[t]):v=e[t];var p=Bt in e||zn in e,l=s&&(($=(S=Ht(e,t))==null?void 0:S.set)!=null?$:p&&t in e&&(L=>e[t]=L))||void 0,u=n,m=!0,h=!1,_=()=>(h=!0,m&&(m=!1,a?u=Xe(n):u=n),u);v===void 0&&n!==void 0&&(l&&o&&Xs(t),v=_(),l&&l(v));var y;if(o)y=()=>{var L=e[t];return L===void 0?_():(m=!0,h=!1,L)};else{var C=(r?Ri:Wn)(()=>e[t]);C.f|=131072,y=()=>{var L=D(C);return L!==void 0&&(u=void 0),L===void 0?u:L}}if((i&4)===0&&o)return y;if(l){var I=e.$$legacy;return function(L,E){return arguments.length>0?((!o||!E||I||c)&&l(E?y():L),L):y()}}var N=!1,b=!1,x=Ci(v),A=Ri(()=>{var L=y(),E=D(x);return N?(N=!1,b=!0,E):(b=!1,x.v=L)});return s&&D(A),r||(A.equals=hn),function(L,E){if(Hr!==null&&(N=b,y(),D(x)),arguments.length>0){let M=E?D(A):o&&s?kt(L):L;if(!A.equals(M)){if(N=!0,fe(x,M),h&&u!==void 0&&(u=M),td(A))return L;Xe(()=>D(A))}return L}return td(A)?A.v:D(A)}}var dp;typeof HTMLElement=="function"&&(dp=class extends HTMLElement{constructor(t,i,n){super();li(this,"$$ctor");li(this,"$$s");li(this,"$$c");li(this,"$$cn",!1);li(this,"$$d",{});li(this,"$$r",!1);li(this,"$$p_d",{});li(this,"$$l",{});li(this,"$$l_u",new Map);li(this,"$$me");this.$$ctor=t,this.$$s=i,n&&this.attachShadow({mode:"open"})}addEventListener(t,i,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(i),this.$$c){let r=this.$$c.$on(t,i);this.$$l_u.set(i,r)}super.addEventListener(t,i,n)}removeEventListener(t,i,n){if(super.removeEventListener(t,i,n),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(o){return s=>{let a=document.createElement("slot");o!=="default"&&(a.name=o),ee(s,a)}};var t=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},r=up(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]=ga(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=Bl({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=jr(()=>{Pt(()=>{var o;this.$$r=!0;for(let s of Do(this.$$c)){if(!((o=this.$$p_d[s])!=null&&o.reflect))continue;this.$$d[s]=this.$$c[s];let a=ga(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(t,i,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ga(t,n,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Do(this.$$p_d).find(i=>this.$$p_d[i].attribute===t||!this.$$p_d[i].attribute&&i.toLowerCase()===t)||t}});function ga(e,t,i,n){var o;let r=(o=i[e])==null?void 0:o.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!i[e])return t;if(n==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function up(e){let t={};return e.childNodes.forEach(i=>{t[i.slot||"default"]=!0}),t}if(K){let e=function(t){if(!(t in globalThis)){let i;Object.defineProperty(globalThis,t,{configurable:!0,get:()=>{if(i!==void 0)return i;el(t)},set:n=>{i=n}})}};pp=e,e("$state"),e("$effect"),e("$derived"),e("$inspect"),e("$props"),e("$bindable")}var pp;function wi(e){Ce===null&&_n("onMount"),Ii&&Ce.l!==null?cp(Ce).m.push(e):Wt(()=>{let t=Xe(e);if(typeof t=="function")return t})}function nd(e){Ce===null&&_n("onDestroy"),wi(()=>()=>Xe(e))}function cp(e){var i;var t=e.l;return(i=t.u)!=null?i:t.u={a:[],b:[],m:[]}}var fp={debugLog:!1,devNullLog:!1,defaultLanguage:dn.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:dn.VideoQuality.Q_480P,highQualityLimit:dn.VideoQuality.Q_720P,features:{autoplay:!0,statistics:!0,thinStatistics:!1,preload:!0,subtitles:!0,fullscreen:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,copyVideoLink:!0,videoRotate:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,userVideoPrefs:!1,initSubtitles:!0},controls:{playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},userSalt:"0"},ha=e=>(0,dn.fillWithDefault)(e,fp),rd=e=>Yn("ui-config",e),Gr=()=>Qn("ui-config");var dt=require("@vkontakte/videoplayer-shared/es2018");var od="5";var ad,sd,ld;typeof window!="undefined"&&((ld=(sd=(ad=window.__svelte)!=null?ad:window.__svelte={}).v)!=null?ld:sd.v=new Set).add(od);rl();var dd="var(--btn-color, #fff)";var mp=Rt('<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),vp=Rt('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function ai(e,t){var p;Se(t,!0);let i=nt(t,"width",19,()=>"14"),n=nt(t,"height",19,()=>"14"),r=nt(t,"fill",3,dd),o=(p=t.viewBox)!=null?p:`0 0 ${i()} ${n()}`;var s=vp(),a=B(s);{var c=l=>{var u=mp(),m=Xt(u),h=B(m);Tn(h,()=>t.children),H(m),Lr(),ee(l,u)},v=l=>{var u=sn(),m=Xt(u);Tn(m,()=>t.children),ee(l,u)};ke(a,l=>{t.shadow?l(c):l(v,!1)})}H(s),ye(()=>{et(s,"aria-label",t.ariaLabel),et(s,"aria-hidden",!t.ariaLabel),et(s,"width",i()),et(s,"height",n()),et(s,"viewBox",o),et(s,"fill",r()),at(s,t.style),et(s,"data-testid",t.testId)}),ee(e,s),Ie()}var gp=Rt('<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 _a(e){ai(e,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(t,i)=>{var n=gp();ee(t,n)},$$slots:{default:!0}})}var hp=ue('<div class="container s-2"><!></div>'),_p={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 ur(e){Oe(e,_p);var t=hp(),i=B(t);_a(i,{}),H(t),ee(e,t)}var yp=ue('<div class="playerError s-0"><!></div>'),bp={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 ya(e){Oe(e,bp);var t=yp(),i=B(t);ur(i,{}),H(t),ee(e,t)}function ud(e,t){var r,o;let i=new Set([...Object.keys(e),...Object.keys(t)]),n={};for(let s of i)n[s]=(o=(r=t[s])!=null?r:e[s])!=null?o:void 0;return n}var cr="ui-tv";var kn=require("@vkontakte/videoplayer-statistics/es2018");var cd=require("@vkontakte/videoplayer-shared/es2018"),pM=require("@vkontakte/videoplayer-statistics/es2018"),Kr=class{constructor(t,i,n,r=new cd.Subscription){this.oneStat=t;this.thinOneStat=i;this.mediascopePixel=n;this.statSubscription=r}destroy(){var t,i,n;(t=this.oneStat)==null||t.destroy(),(i=this.thinOneStat)==null||i.destroy(),(n=this.mediascopePixel)==null||n.destroy(),this.statSubscription.unsubscribe()}};var rt=require("@vkontakte/videoplayer-core/es2018"),ve=require("@vkontakte/videoplayer-shared/es2018"),cn=require("@vkontakte/videoplayer-statistics/es2018");var kM=require("@vkontakte/videoplayer-core/es2018");var re=require("@vkontakte/videoplayer-shared/es2018"),gt=require("@vkontakte/videoplayer-shared/es2018"),xp="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Zr=class{constructor(t,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 gt.Subject,loadStarted$:new gt.Subject,loadEnded$:new gt.Subject,loadError$:new gt.Subject,ready$:new gt.Subject,slotRequested$:new gt.Subject,started$:new gt.Subject,timeRemained$:new gt.Subject,paused$:new gt.Subject,resumed$:new gt.Subject,ended$:new gt.Subject,empty$:new gt.Subject,skipped$:new gt.Subject,clicked$:new gt.Subject,closed$:new gt.Subject,error$:new gt.Subject};this.loadAdman=t=>(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,re.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(t):this.loadAdmanMailRu(t));this.loadAdmanMailRu=t=>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,gt.addScript)(xp,t,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=t=>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);t.addEventListener("abort",s),t.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(()=>rc(pd(),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),t.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=(t,i)=>{var n;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",t,"muted: "+i.muted],numbers:[(0,re.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${t}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(t),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,t,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=t=>{var n;((n=this.adsState)!=null&&n.playbackState?Ee(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(t.currentTime),this.events.timeRemained$.next(t),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var t;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(t=this.currentAdSection)!=null?t:""],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 t;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(t=this.currentAdSection)!=null?t:""],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(t){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var t;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(t=this.currentAdSection)!=null?t:""],numbers:[(0,re.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var t;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(t=this.currentAdSection)!=null?t:""],numbers:[(0,re.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var t;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(t=this.currentAdSection)!=null?t:""],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 t,i;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(t=this.currentAdSection)!=null?t:""],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=(t="ad error")=>{re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",t],numbers:[(0,re.now)()]}),this.log({message:t}),this.events.error$.next(t),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=t.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(t,i,n){this.actions=t,this.adsState=i,this.playerState=n}onAdmanLoadingError(){this.onAdError("adman loading error")}async initAdman(t){var N,b;if(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,re.now)(),t.slotId]}),this.adman)return;this.events.init$.next(t.slotId),this.startWatchDog();let{width:i,height:n,isAutoplay:r,adsContainer:o,adsVideoElement:s,slotId:a,params:c={},paramsOverride:v={},duration:p,externalApi:l}=t;this.externalApi=l;let u,m=this.playerState&&Ee(this.playerState.vsid);m&&(this.isVsidOriginal?u=m:u=parseInt(m,36));let{isEmbed:h,immediateOrigin:_}=(0,re.detectEmbed)(),y=(N=h?_:window.location.href)!=null?N:window.location.href,C={...c,dl:encodeURIComponent(y),autoplay:r?1:0,player_width:i,player_height:n,...u?{request_id:u}:{},duration:p,...v};C=Object.fromEntries(Object.entries(C).filter(([x,A])=>(0,re.isNonNullable)(A)));let I={slot:a,wrapper:o,videoEl:s,videoQuality:n,params:C,browser:{mobile:!1}};try{let x=new window.AdmanHTML;if(x.onReady(this.onAdsReady),x.onStarted(this.onAdStarted),x.onPlayed(this.onAdPlayed),x.onPaused(this.onAdPaused),x.adMidrollPoint(this.onAdMidrollPoint),x.onClosed(this.onAdClosed),x.onSkipped(this.onAdSkipped),x.onClicked(this.onAdClicked),x.onTimeRemained(this.onAdTimeRemained),x.onCompleted(this.onAdCompleted),x.onError(this.onAdError),x.setDebug(!1),(b=this.externalApi)!=null&&b.videoGetAds){let A=await this.safeExternalCall(this.externalApi.videoGetAds,C);A&&(delete I.slot,delete I.params,Object.assign(I,{json:A}))}x.init(I),this.adman=x,this.videoElement=s,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}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(t=!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: "+t],numbers:[(0,re.now)()]}),this.currentAdSection===null&&!t){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(t){var i;(i=this.adsState)==null||i.postrollPassed.set(t),this.log({message:"postroll passed"})}togglePlay(){var t;if(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(t=this.currentAdSection)!=null?t:""],numbers:[(0,re.now)()]}),this.adsState){this.log({message:"toggle play"});let i=Ee(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(t){this.log({message:`set initial volume ${t}`}),this.initialVolume=t}setVolume(t){let i=t*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(t){if(this.log({message:`set fullscreen ${t}`}),this.adman)try{this.adman.setFullscreen(t)}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(t){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var t;if(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(t=this.currentAdSection)!=null?t:""],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 t;if(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(t=this.currentAdSection)!=null?t:""],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 t;if(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(t=this.currentAdSection)!=null?t:""],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 t;if(re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(t=this.currentAdSection)!=null?t:""],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(t,i){var n;(n=this.adman)==null||n.setPosition(Math.floor(t),Math.floor(i))}destroy(){var t,i,n,r,o,s,a,c,v,p,l,u;re.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,re.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(t=this.adman)==null||t.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),(v=this.adman)==null||v.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,gt.clearVideoElement)(this.videoElement),this.isDestroyed=!0}async safeExternalCall(t,...i){var n;try{return await t(...i)}catch(r){return this.onAdError((n=r==null?void 0:r.message)!=null?n:"External call failed"),null}}};var In=require("@vkontakte/videoplayer-shared/es2018");var Xr=require("@vkontakte/videoplayer-shared/es2018"),vd=require("@vkontakte/videoplayer-core/es2018"),gd=require("@vkontakte/videoplayer-statistics/es2018");var md=(e,t,i)=>{let n=document.createElement("a");n.href=e,n.download=`${t}.${i}`,n.style.display="none",n.click()};var hd=Symbol("storeContext"),_d=e=>{Yn(hd,e),Vs==="dev"&&(window.app={store:e})},Vt=()=>{let e=Qn(hd);return(0,Xr.assertNonNullable)(e,"Store context is empty!"),e},Ye=(e,t)=>eo(e,e.getValue(),t),eo=(e,t,i)=>ri(t,n=>{let r=e.subscribe(o=>{n(o),i==null||i(o)});return()=>r.unsubscribe()}),yd=(e,t,i,n,r=["meta config not provided"])=>{var $,L,E,M,g,j,F,O,P;let o=e.info,{width:s,height:a}=Ee(i.ui.playerSize),c=(L=($=o.throughputEstimation$.getValue())==null?void 0:$.toFixed(0))!=null?L:0,v=(M=(E=o.rttEstimation$.getValue())==null?void 0:E.toFixed(0))!=null?M:0,p=o.isAutoQualityEnabled$.getValue()?"auto":"manual",l=`${Vn} (core: ${vd.VERSION}, stat: ${gd.VERSION}, shared: ${Xr.VERSION})`,u=Ee(i.state.errorLog$),m=u.length?`
41
- `+u.map((z,W)=>{var G;let ae=`${W}) Type: ${z.id}
42
- `,J=`Message: ${z.message} (${z.thrown})
43
- `,ce=`Trace: ${(G=z.thrown)==null?void 0:G.stack}
44
- `;return ae+J+ce}).join(`
45
- `):void 0,h=i.state.isAudioDisabled?"disabled":Ee(i.state.isAudioAvailable$)?void 0:"unavailable",_=e.info.currentVideoStream$.getValue(),y=e.info.currentAudioStream$.getValue(),C=[];_&&C.push(`Video: ${(g=_==null?void 0:_.codec)!=null?g:""}`+(_!=null&&_.hdr?" (HDR)":"")),y&&C.push(`Audio: ${(j=y==null?void 0:y.codec)!=null?j:""}`+(y!=null&&y.language?` (${y.language})`:""));let I=o.currentQuality$.getValue(),N="";if(I){let z=o.availableQualitiesFps$.getValue()[I];N=z?`${z}fps`:""}let b=o.httpConnectionType$.getValue(),x=(O=(F=o.currentBuffer$.getValue())==null?void 0:F.end)!=null?O:0,A=Math.max(x-Ee(i.state.positionExact$),0),S={Version:l,Browser:navigator.userAgent,Config:r.join(", "),"United video id":String(i.videoId),TraceId:n,VSID:Ee(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":b?b+(o.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${c}Kbps @ ${v}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":t!=null&&t.sources?Object.keys(t.sources).join(", "):"",Streams:C.join(", "),Quality:`${p} ${I!=null?I:""} ${N}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:h,Position:`${Ee(i.state.positionExact$)}s`,Buffer:`${A}s`,State:`${Ee(i.playerPhase)} ${(P=o.playbackState$.getValue())!=null?P:""}`,"Player size":`${s}x${a}`,URL:window.location.href,Errors:m};return Object.entries(S).filter(([z,W])=>W!==void 0).map(([z,W])=>`${z}: ${W}`).join(`
46
- `)},bd=(e,t,i)=>{var $,L,E,M;let n=e.info,{width:r,height:o}=Ee(i.ui.playerSize),s={version:Vn,viewport:`${r}x${o}`,volume:Math.round(Ee(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 v=n.intrinsicVideoSize$.getValue();v&&(s.videoSize=`${v.width}x${v.height}`);let p=n.currentBuffer$.getValue(),l=n.currentNativeBuffer$.getValue(),u=n.isLive$.getValue(),m=n.liveBufferTime$.getValue();p&&l&&(u&&m?(s.buffer=p.end-m,s.nativeBuffer=l.end-m):(s.buffer=Math.max(p.end-Ee(i.state.positionExact$),0),s.nativeBuffer=Math.max(l.end-Ee(i.state.positionExact$),0))),s.position=Ee(i.state.positionExact$);let h=n.throughputEstimation$.getValue();h&&(s.speed=h);let _=n.videoBitrate$.getValue();_&&(s.bitrate=_);let y=n.liveLatency$.getValue();y&&(s.liveLatency=y);let C=n.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let I=n.currentAudioSegmentLength$.getValue();I&&(s.currentAudioSegmentLength=I);let N=Ee(i.vsid);typeof N=="string"&&(s.vsid=N);let b=($=e.info.currentVideoStream$.getValue())==null?void 0:$.codec;b&&(s.videoCodec=b);let x=(L=e.info.currentAudioStream$.getValue())==null?void 0:L.codec;x&&(s.audioCodec=x),((E=e.info.currentVideoStream$.getValue())==null?void 0:E.hdr)&&(s.hdr=!0);let S=(M=e.info.currentAudioStream$.getValue())==null?void 0:M.language;return S&&(s.audioLanguage=S),s},xd=(e,t)=>md(e,t,"mp4"),Ad=()=>{let t=[],i=0;return{add:(n,r)=>{t[i]=[n,r],i=(i+1)%10},find:n=>t.find(([r])=>r===n)}},Jr=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(t){if(this.pendingDownloads.has(t))return null;this.pendingDownloads.add(t);try{let i=await fetch(t,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(t)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};function to(e,t=i=>i){let i=Q(e);return[ri(e,o=>{i.subscribe(o)}),o=>{i.set(t(o))}]}var Ap={auto_quality_invariant:"Авто",auto_quality:"Авто ({actual})",auto_quality_option:"Авто",other_quality:"Другое",high_quality:"Высокое качество",high_quality_description:"Будет использовано больше трафика",auto_quality_limit:"Автоматически",traffic_saving_quality:"Экономия трафика",traffic_saving_quality_description:"Видео грузятся быстрее, но качество ниже",default_quality_for_any_video:"Качество для всех видео",quality_applience:"Качество по умолчанию можно {action}",quality_applience_action:"изменить",menu_quality:"Качество",menu_traffic_saving:"Экономия данных",menu_playback_rate:"Скорость",menu_report:"Сообщить о проблеме",menu_pip:"Картинка в картинке",menu_pip_close:"Развернуть видео",menu_copy_video_link:"Скопировать ссылку на видео",menu_copy_video_link_with_timestamp:"Скопировать ссылку на кадр",menu_video_rotate:"Повернуть",menu_video_loop_on:"Включить повторение",menu_video_loop_off:"Отключить повторение",menu_chromecast:"Chromecast трансляция",menu_copy_debug:"Копировать данные для диагностики",menu_save_debug:"Сохранить данные для диагностики",menu_debug_overlay:"Техническая информация",menu_copy_embed_code:"Копировать код для встраивания",menu_audio_languages:"Звуковая дорожка",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Дорожка {index}",pip_dummy_title:"Видео воспроизводится в режиме картинка в картинке",submenu_quality:"Качество",submenu_playback_rate:"Скорость",submenu_settings:"Настройки",submenu_traffic_saving:"Экономия данных",submenu_audio_languages:"Звуковая дорожка",playing_ads:"Реклама {timeleft}",skip_ads_now:"Пропустить рекламу",skip_ads_after:"Пропустить {time}с",visit_advertiser:"Перейти на сайт",aria_timeline:"Ползунок временной шкалы",aria_timeline_value:"{position} (общая длительность {duration}",doubletap_seek_step:"{seconds} секунд",playback_rate_1:"Обычная",playback_rate:"{multiplier}x",video360:"панорамное видео",subtitles_caption:"Субтитры",subtitles_auto:"{language} (Автоматические)",subtitles_off:"Выкл.",subtitles_auto_caption:"Автоматические субтитры",subtitles_turn_on:"Включить субтитры",subtitles_turn_off:"Выключить субтитры",traffic_saving_off:"Откл.",traffic_saving_on:"Вкл.",traffic_saving_helper_text:"При включении качество видео будет снижено для экономии трафика",tooltip_button_disabled:"Кнопка недоступна",tooltip_previous:"Предыдущее видео",tooltip_restart:"Начать заново",tooltip_play:"Смотреть",tooltip_pause:"Пауза",tooltip_next:"Следующее видео",tooltip_interactive_go_back:"Вернуться к предыдущей главе",tooltip_interactive_go_back_disabled:"История прохождения недоступна",tooltip_interactive_go_back_disabled_first:"Вы смотрите первую главу",tooltip_interactive_go_back_disabled_limit:"Лимит возвратов исчерпан",tooltip_chapter_without_interactive:"В этой главе нет интерактива",tooltip_interactive_of_chapter_completed:"Интерактивы этой главы уже пройдены",tooltip_interactive_seek:"Перейти к интерактиву",tooltip_interactive_graph_off:"Показать карту сюжета",tooltip_interactive_graph_on:"Скрыть карту сюжета",tooltip_live:"Перемотать на актуальный лайв",tooltip_episodes:"Эпизоды",tooltip_volume:"Включить звук",tooltip_volume_muted:"Выключить звук",tooltip_sound_unavailable:"Звук недоступен",tooltip_subtitles_off:"Включить субтитры",tooltip_subtitles_on:"Выключить субтитры",tooltip_settings_off:"Открыть настройки",tooltip_settings_on:"Закрыть настройки",tooltip_fullscreen_off:"На весь экран",tooltip_fullscreen_on:"Выйти из полноэкранного режима",tooltip_chromecast_off:"Включить Chromecast",tooltip_chromecast_on:"Выключить Chromecast",tooltip_episode_finished:"Вы уже сделали свой выбор",tooltip_episode_unfinished:"Не пройдено",tooltip_disabled_when_interactive:"Интерактив уже идёт",tooltip_disabled_when_graph_on:"Кнопка недоступна во время просмотра карты",tooltip_interactive_interaction_time_indicator:"Нажмите на элемент интерактива",tooltip_vk_logo:"Открыть в VK Видео",tooltip_vk_video_logo:"Перейти в VK Видео",tooltip_autoplay_off:"Включить автовоспроизведение",tooltip_autoplay_on:"Отключить автовоспроизведение",tooltip_context_menu_open:"Открыть контекстное меню",tooltip_context_menu_close:"Закрыть контекстное меню",download_video_caption:"Скачать видео",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Быстрые клавиши",hotkey_map_modal_close_btn_text:"Закрыть",hotkey_map_group_title_common:"Общие",hotkey_map_group_title_playback:"Воспроизведение",hotkey_map_group_title_subtitles:"Субтитры",hotkey_map_group_title_episodes:"Эпизоды",hotkey_map_item_mute_description:"Включить или отключить звук",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Увеличить громкость",hotkey_map_item_volume_up_value:"Стрелка вверх",hotkey_map_item_volume_down_description:"Уменьшить громкость",hotkey_map_item_volume_down_value:"Стрелка вниз",hotkey_map_item_pip_description:"Свернуть или развернуть мини-проигрыватель",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Включить или выключить полноэкранный режим",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Скрыть или показать контекстное меню",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Скрыть или показать список горячих клавиш",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Приостановить или продолжить воспроизведение",hotkey_map_item_play_toggle_value:"Пробел (или k)",hotkey_map_item_seek_backward_description:"Перемотать ролик на 10 секунд назад",hotkey_map_item_seek_backward_value:"Стрелка влево (или j)",hotkey_map_item_seek_forward_description:"Перемотать ролик на 10 секунд вперёд",hotkey_map_item_seek_forward_value:"Стрелка вправо (или l)",hotkey_map_item_fast_seek_backward_description:"Ускоренная перемотка назад",hotkey_map_item_fast_seek_backward_value:"Shift + Стрелка влево",hotkey_map_item_fast_seek_forward_description:"Ускоренная перемотка вперёд",hotkey_map_item_fast_seek_forward_value:"Shift + Стрелка вправо",hotkey_map_item_rate_down_description:"Уменьшить скорость воспроизведения",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Увеличить скорость воспроизведения",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Перейти к предыдущему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Перейти к следующему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Перейти к определённому моменту видео <br />(например, при нажатии на цифру «7» ролик будет перемотан до временной отметки, которая соответствует 70% от длительности видео)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Включить или отключить субтитры",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Перейти к предыдущему эпизоду",hotkey_map_item_prev_episode_pc_value:"Ctrl + Стрелка влево",hotkey_map_item_prev_episode_mac_value:"Option + Стрелка влево",hotkey_map_item_next_episode_description:"Перейти к следующему эпизоду",hotkey_map_item_next_episode_pc_value:"Ctrl + Стрелка вправо",hotkey_map_item_next_episode_mac_value:"Option + Стрелка вправо",hotkey_map_item_next_video_description:"Перейти к следующему видео",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Перейти к предыдущему видео",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"дн",waiting_live_hour_value:"ч",waiting_live_minute_value:"мин",waiting_live_second_value:"сек",waiting_live_colon:":",waiting_live_upcoming_title:"Трансляция еще не началась",waiting_live_timer_title:"До начала трансляции осталось",waiting_live_recover_title:"Трансляция приостановлена - она продолжится, когда автор вернётся",waiting_record_title:"Трансляция завершена - запись появится позже",aria_label_video_player:"Видео плеер",aria_label_spherical_control:"Контроллер для сферического видео. Используйте клавиши со стрелками для панорамирования видео.",aria_label_debug_panel:"Область с технической информацией, сделайте скриншот для техподдержки",aria_label_new_tab_alert:"Откроется в новой вкладке.",aria_label_menu_quality:"Качество: {actual}",aria_label_menu_audio_languages:"Язык аудио: {actual}",aria_label_menu_rate:"Скорость: {actual}",aria_label_menu_subtitle:"Субтитры: {actual}",aria_label_menu_download:"Скачать видео",aria_label_menu_debug_overlay:"Отображение технической информации",aria_label_menu_rotate:"Повернуть видео на 90 градусов",aria_label_menu_loop:"Переключение режима повторения",aria_label_submenu_back:"Вернуться в меню настроек",aria_label_submenu_traffic_saving:"Режим экономии данных",aria_label_settings:"Настройки",aria_label_context_menu:"Контекстное меню",aria_label_autoplay:"Автовоспроизведение",end_screen_next_video:"Следующее видео",end_screen_recommended_video:"Рекомендуемое видео",slow_video_notification_button:"Выбрать качество «Авто»",slow_video_notification_force_description:`Видео грузится слишком медленно,
47
- качество изменено на «Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
48
- попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},Ed=Ap;var Ep={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but at lower quality",quality_applience:"You can {action} the default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
49
- so the quality was changed to Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
50
- Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},wd=Ep;var Fi=new Map;Fi.set(In.InterfaceLanguage.EN,wd);Fi.set(In.InterfaceLanguage.RU,Ed);var Md=new Map,ba=({language:e,pack:t,fallback:i})=>{if(Fi.has(e)){let n=Fi.get(e);Fi.set(e,{...n,...t})}else Fi.set(e,t);Md.set(e,i)},xa=e=>Fi.has(e),Aa=(e,t,i,n)=>{var s;let r=Fi.get(e),o=r==null?void 0:r[t];if((0,In.isNullable)(o)){let a=(s=Md.get(e))!=null?s:n,c=a?Fi.get(a):void 0;o=c==null?void 0:c[t]}return(0,In.isNullable)(o)?t+Object.values(i!=null?i:{}).join(" "):i?o.replaceAll(/{(\w+?)}/g,(a,c)=>{var v;return(v=i[c])!=null?v:""}):o},jt=(e,t)=>{let{interfaceLanguage$:i}=Vt(),n=Ee(i),r=Gr();return Aa(n,e,t,r.defaultLanguage)};var Td=(e,t)=>t?!0:e.fullscreenEnabled||!!e.webkitFullscreenEnabled||!!e.mozFullscreenEnabled||!!e.msFullscreenEnabled,Sd=e=>{let t=e;t!=null&&t.webkitExitFullscreen&&(t==null||t.webkitExitFullscreen())},wp=()=>{let e=document;return e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement},Id=()=>!!wp();var Nd=e=>{let t=Math.round(e);return isNaN(t)||t<40?"":t>=40&&t<55?50:t>=55&&t<90?60:t>=90&&t<180?120:t>=180?240:""};var Je=require("@vkontakte/videoplayer-shared/es2018"),oT=require("@vkontakte/videoplayer-core/es2018"),Mp="vk_player_",Cd="vk_player_prefer_traffic_saving_enabled",Tp="vk_player_preferred_volume",Sp="vk_player_prefer_volume_mute",Ta="vk_player_preferred_quality",Ea="vk_player_preferred_default_quality_settings",wa="vk_player_preferred_quality_settings_by_video",kd="vk_player_preferred_stream_language",Ld="vk_player_preferred_rate";var Ma="vk_player_preferred_subtitles_language",Ip="vk_player_user_video_prefs",aT=`${Mp}preview_track_close_tooltip`,Np=e=>e>1?1:e<0?0:e;var io=()=>{let e=Je.safeStorage.get(Tp);return(0,Je.isNullable)(e)?void 0:Np(parseFloat(e))},Sa=(e,t)=>Je.safeStorage.set(Ta,JSON.stringify({videoId:e,value:t})),no=()=>Je.safeStorage.remove(Ta),Ia=e=>{let t=Je.safeStorage.get(Ta);if((0,Je.isNullable)(t))return;let{videoId:i,value:n}=JSON.parse(t);if(e!==i){no();return}return n},Dp=(e,t)=>{t?Je.safeStorage.set(e,"true"):Je.safeStorage.remove(e)},$d=e=>Je.safeStorage.get(e)==="true";var Od=()=>$d(Sp),Dd=e=>Dp(Cd,e),Na=()=>$d(Cd),Pd=()=>Je.safeStorage.get(kd),Rd=e=>Je.safeStorage.set(kd,e),Da=()=>Je.safeStorage.get(Ma),Cp=e=>{e?Je.safeStorage.set(Ma,e):Je.safeStorage.remove(Ma)},Vd=e=>Je.safeStorage.set(Ld,JSON.stringify({rate:e})),jd=()=>{let e=Je.safeStorage.get(Ld);if((0,Je.isNullable)(e))return;let{rate:t}=JSON.parse(e);return t};var kp=()=>{let e=p=>{Je.safeStorage.set(Ea,JSON.stringify(p))},t=()=>{try{let p=Je.safeStorage.get(Ea);return p?JSON.parse(p):null}catch(p){return null}},i=()=>{try{let p=Je.safeStorage.get(wa);return p?JSON.parse(p):null}catch(p){return null}},n=p=>{Je.safeStorage.set(wa,JSON.stringify(p))},r=p=>{v(p);let l=p?i():null;if(l&&(l==null?void 0:l.videoId)===p)return{...l,appliesTo:"to-video"};l&&o();let u=t();return u?{...u,appliesTo:"as-default"}:(e({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},o=()=>{Je.safeStorage.remove(wa)},s=()=>{Je.safeStorage.remove(Ea)},a=(p,l="as-default")=>{p.type==="exact_quality"||l==="to-video"?n(p):e(p)},c=p=>{let l=r(p);if(l){switch(l.type){case"traffic_saving":Dd(!0);break;case"exact_quality":Sa(p,l.quality)}o(),s()}},v=p=>{let l=Ia(p);if(l){n({type:"exact_quality",videoId:p,quality:l});return}Na()&&e({type:"traffic_saving",videoId:p}),Dd(!1),no()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:c,savePreferredQualitySettings:a,savePreferredDefaultQualitySettings:e,removePreferredQualitySettingsByVideo:o,getPreferredDefaultQualitySettings:t,getPreferredSubtitlesLanguage:Da,savePreferredSubtitlesLanguage:Cp}},{getPreferredQualitySettings:sT,migrateSettingsToLegacyWay:zd,savePreferredQualitySettings:lT,savePreferredDefaultQualitySettings:dT,removePreferredQualitySettingsByVideo:uT,getPreferredDefaultQualitySettings:cT}=kp();var Lp=()=>{let e=Je.safeStorage.get(Ip);if(e)try{return JSON.parse(e)}catch(t){return null}return null},ro=(e,t)=>{var r,o;let i=Lp();return(o=(r=i==null?void 0:i[e])==null?void 0:r[t])!=null?o:null};var Ca=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(t,i){let n=[],r=t.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 v=new oo,{startTime:p,endTime:l}=v.parse(c);s.startTime=p,s.endTime=l}else if(c.trim()!==""){let v=new ka,{texts:p}=v.parse(c);s.texts=[...s.texts,...p]}(s.startTime||s.endTime)&&s.texts.length>0&&n.push(s)}return n}},oo=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(t){let i={startTime:0,endTime:0},n=this.timingRegExp.exec(t);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(t){let i=this.timeRegExp.exec(t);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(t){return this.timeRegExp.test(t)}calcTime(t="0",i="0",n="0",r="0"){let o=Number(t)*60*60,s=Number(i)*60,a=Number(n),c=+`0.${r}`;return o+s+a+c}},ka=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(t){let i={texts:[]},r=t.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let a=0,c=[];for(;a<s.length;){let v=["<",">"].reduce((p,l)=>{let u=s.indexOf(l,a);return p===-1||p>u?u:p},-1);if(v===-1){c.push(s.substring(a));break}c.push(s.substring(a,v)),a=v+1}return c}}),o=new oo;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}},Ud=Ca;var so=require("@vkontakte/videoplayer-shared/es2018"),un,st,La=0,$a=!1,Fd="",Hd=(e,t=0,i=0)=>e<t&&e<i,ao=(e,t=0,i=0)=>e>=t&&e<=i,$p=(e,t=0,i=0)=>e>t&&e>i,Bd=(e,t,i,n=!1)=>{var a;let r=(a=i.find(({id:c})=>c===t.value))==null?void 0:a.subtitles;if(n)return r==null?void 0:r.find(({startTime:v,endTime:p})=>ao(e,v,p));let o=e>=La,s=e<La;if(La=e,s&&($a=!1),(0,so.isNonNullable)(un)&&ao(e,un.startTime,un.endTime)&&Fd===t.value)return un;if(!(0,so.isNonNullable)(st)&&(r!=null&&r.length)&&!$a){st=r.find(({startTime:v,endTime:p})=>ao(e,v,p)||o&&Hd(e,v,p)),un=void 0,!(0,so.isNonNullable)(st)&&r[r.length-1].endTime<e&&($a=!0);return}else{if(ao(e,st==null?void 0:st.startTime,st==null?void 0:st.endTime))return un=st,st=void 0,Fd=t.value,un;(o&&$p(e,st==null?void 0:st.startTime,st==null?void 0:st.endTime)||s&&Hd(e,st==null?void 0:st.startTime,st==null?void 0:st.endTime))&&(st=void 0)}};var lo={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"},Op={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"},Oa=e=>{var t,i;return(i=(t=lo[e])!=null?t:lo[Op[e]])!=null?i:void 0};var pr="vk_player_debug_panel_opened";var Qd="videoplayer",Yd="videoplayer";var Mi="off";var Nn=require("@vkontakte/videoplayer-shared/es2018"),Pp=5e3;function Wd(){let e=Q(!1),t=Q(!0),i=()=>{e.set(!0)},n=()=>{e.set(!1)},r=I=>{t.set(I)},[o,s]=to(!1),[a,c]=to(!0),[v,p]=to(!1),l=Q(!1),u=(0,Nn.getWindow)().setTimeout(()=>{},0),m=()=>{l.set(!0),(0,Nn.getWindow)().clearTimeout(u),u=(0,Nn.getWindow)().setTimeout(()=>{l.set(!1)},Pp)},h=()=>{(0,Nn.getWindow)().clearTimeout(u),l.set(!1)},_=()=>{(0,Nn.getWindow)().clearTimeout(u),l.set(!1)},y=()=>{if(Ee(v))return p(!1),!0;let I=Ee(l);return _(),I};function C(I){let{state:{isPlaying$:N,isEnded$:b,isLoaderVisible:x,crashed$:A},ui:{settingsVisible:S},ads:{playbackState:$},playerPhase:L}=I;tt([N,b,l,S],([E,M,g,j])=>!j&&(!E||M||g)).subscribe(E=>{s(E),E||h()}),tt([L,x,$,A],([E,M,g,j])=>(E==="video"&&M||E==="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(Id()),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:e,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:t,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:v},action:{stopVolumeChanging:n,startVolumeChanging:i,setControlsAvailibility:r,onUserInput:m,clearShowByInput:_,onBackButton:y,setSettingsVisibility:p},resolveDependency:C}}var Gd=({interfaceLanguage:e,isCyrillicRelatedInterface:t,videoId:i,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:o,canDownload:s,callbacks:a,webApi:c,previewThumbsData:v,uiConfig:p,coreConfig:l,player:u,stopPlayer:m,looped:h=!1,statistics:_,saveRate:y,internalsExposure:C,playerId:I,metaConfig:N,app:b,video:x,deviceCapabilities:A})=>{var $s;let S=Wd(),$={...l,isAudioDisabled:o,live:{...($s=l.live)!=null?$s:{},isLiveCatchUpMode:!!n}},L=p,E=ve.TracerFactory.createRootTracer(!1),M=E.createComponentTracer("Store"),g=u||new rt.Player($,E,{playerId:I,onDevNullLog:a==null?void 0:a.onDevNullLog});C==null||C.expose({corePlayer:g});let j=new ve.Logger,F=new Zr(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}),O=c==null?void 0:c.focusManager,P=j.createComponentLog("Store"),z,W,ae={},J=new Jr,ce=new ve.Subscription,G="",we=_&&_.oneStat?Ye(_.oneStat.vsid$):ri(void 0),Z=()=>Td(document,rt.clientChecker.device.isIOS),He=Q(!1),oe=Q([]),_e=(0,ve.merge)(g.events.fatalError$,g.events.managedError$).subscribe(d=>oe.update(f=>[...f,d])),V=ri(!1,d=>{let f=g.events.fatalError$.subscribe(()=>d(!0));return()=>f.unsubscribe()}),Me=async d=>{var te;let f=Object.values(ve.InterfaceLanguage).includes(d);if(L.downloadVKLanguages&&(f&&L.updateBuiltinLanguages||!xa(d))){let se;try{se=await(0,ve.loadVKLangPack)(d,Qd,Yd)}catch($e){(te=_==null?void 0:_.oneStat)==null||te.logError({errorType:"VKLangPack",fatal:!1})}se&&(ba({language:d,pack:se,fallback:L.defaultLanguage}),he.set(d),xe.update($e=>$e+1))}xa(d)&&he.set(d)},he=Q(e),xe=Q(0),Be=Q(t);Me(e);let Le=(d,f)=>{let R=Ee(he);return Aa(R,d,f,L.defaultLanguage)},je=Q("thumb");je.subscribe(d=>{d==="ads"&&g.info.playbackState$.getValue()&&U()});let T=(()=>{let d=tt([V,je],([f,R])=>f?"crashed":R);return{...d,is:f=>Ee(d)===f}})(),k=Q(),U=()=>{k.set({muted:g.info.muted$.getValue()})},q=null,le=g.info.isBuffering$,ge=ri(le.getValue(),d=>{let f=le.subscribe(R=>{R&&q===null?q=window.setTimeout(()=>{d(le.getValue()),q=null},L.loaderDelay):d(R)});return()=>{f.unsubscribe(),q&&clearTimeout(q)}});M.log("create store"),P({message:"create store"});let ze=d=>{P({message:`init video, config: ${JSON.stringify(d)}`}),ve.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ve.now)()]}),g.initVideo(d),M.log("init video"),d.subtitles&&g.setExternalTextTracks(d.subtitles),z=d,G=d.subtitlesForcedLanguage||""},Qe=new ve.Subject,Y=new ve.ValueSubject(cn.SeekAction.UNKNOWN),ie=new ve.Subject,pe={actionRewind$:Qe,actionSeek$:Y,inFullscreen$:new ve.Observable(d=>S.state.isFullscreen.subscribe(f=>d.next(f))),actionSetSubtitle$:ie},De=new ve.Subject,w=new ve.Subject,X={actionSeek$:Y,actionSubtitlesSwitched$:De,actionQuality$:w,playerSize$:new ve.Observable(d=>S.state.playerSize.subscribe(f=>d.next(f))),inFullscreen$:new ve.Observable(d=>S.state.isFullscreen.subscribe(f=>d.next(f))),isLoaderVisible$:new ve.Observable(d=>ge.subscribe(f=>d.next(f)))};if(_){let{oneStat:d,thinOneStat:f,mediascopePixel:R,statSubscription:te}=_;d&&(te.add(d.attachToUi(pe)),te.add(d.attachToAds(F.events)),d.authorize(r).catch(se=>{P({message:`onestat auth error ${String(se)}`})}),R&&R.attachTo(g)),f&&(te.add(f.attachTo(g,F.events)),te.add(f.attachToUi(X)),te.add(f.attachToAds(F.events)),f.updateContext({isMobile:Ee(S.state.isMobile)}),f.authorize(r))}let de=()=>{if(rt.clientChecker.device.isIOS&&W)try{Sd(W)}catch(d){P({message:`exitIosSafariFullscreen failed: ${d}`})}};ce.add(g.experimental.element$.subscribe(d=>{d&&(W=d,d.classList.add("player-media"))})).add(g.events.ended$.subscribe(()=>{var d;de(),(d=a==null?void 0:a.onEnded)==null||d.call(a)})).add(g.events.looped$.subscribe(()=>{var d;(d=a==null?void 0:a.onLooped)==null||d.call(a)})).add(g.events.started$.subscribe(async()=>{var f,R;let d=g.info.muted$.getValue();(f=a==null?void 0:a.onStarted)==null||f.call(a),(R=ae.onStarted)==null||R.call(ae,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,Y.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),F.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(()=>{He.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(F.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(F.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(F.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(F.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(F.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(F.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(F.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(F.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(F.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(F.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(F.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(F.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(F.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(F.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 We=ri(g.info.position$.getValue(),d=>{let f,R,te=()=>{let se=g.info.playbackState$.getValue(),$e=g.info.isLive$.getValue(),Fe=g.info.duration$.getValue(),Ve=g.info.position$.getValue();if(se&&[rt.PlaybackState.PLAYING,rt.PlaybackState.PAUSED].includes(se)){let Tt=$e?Ve-Fe:g.getExactTime();Tt!==R&&d(Tt),R=Tt}f=requestAnimationFrame(te)};return te(),()=>cancelAnimationFrame(f)}),Ue=Ye(g.info.playbackState$),pt=Ye(g.info.isBuffering$),ot=tt([Ue,pt],([d,f])=>f?"buffering":d),ht=Ye(g.info.currentBuffer$),ut=Ye(g.info.isEnded$),Ti=Ye(g.info.isLive$),si=L.features.playbackRate?Ye(g.info.canChangePlaybackSpeed$):ri(!1),Si=Ye(g.info.liveBufferTime$),$i=Ye(g.info.volume$),qi=Ye(g.info.muted$),Hi=eo(g.info.predefinedQualityLimitType$.pipe((0,ve.map)(d=>d===rt.PredefinedQualityLimits.TRAFFIC_SAVING)),g.info.predefinedQualityLimitType$.getValue()===rt.PredefinedQualityLimits.TRAFFIC_SAVING),qe=eo(g.info.predefinedQualityLimitType$.pipe((0,ve.map)(d=>d===rt.PredefinedQualityLimits.HIGH_QUALITY)),g.info.predefinedQualityLimitType$.getValue()===rt.PredefinedQualityLimits.HIGH_QUALITY),Ge=Ye(g.info.autoQualityLimitingAvailable$),ft=Ye(g.info.availableQualities$),xo=Ye(g.info.availableQualitiesFps$),pn=Ye(g.info.currentFormat$),Nt=Ye(g.info.throughputEstimation$),ct=Ye(g.info.videoBitrate$),fn=Ye(g.info.intrinsicVideoSize$),Ki=Ye(g.info.duration$),Jd=Ye(g.info.isAudioAvailable$),Xd=()=>{q&&clearTimeout(q),q=null},hr=tt([Ki,Ti],([d,f])=>f?-d:d),ns=tt([Ue],([d])=>d===rt.PlaybackState.PLAYING),rs=Ye(g.info.atLiveEdge$),os=Ye(g.info.atLiveDurationEdge$),as=Ye(g.info.position$),eu=tt([as,Ki],([d,f])=>isFinite(d)&&isFinite(f)&&!!f),tu=Ye(g.info.availableVideoStreams$),ss=L.features.audioLanguages?Ye(g.info.availableAudioStreams$):ri([]),iu=Ye(g.info.currentVideoStream$),ls=Ye(g.info.currentAudioStream$),nu=d=>{d.language&&Rd(d.language),g.setVideoStream(d)},ds=d=>{g.setAudioStream(d)},us=d=>{let f;if(d.length===1&&(f=d.at(0)),f!=null||(f=d.find(te=>"isDefault"in te&&te.isDefault)),L.features.userVideoPrefs&&i){let te=ro(L.userSalt,String(i));if(te!=null&&te.audioTrackId){let se=d.find($e=>$e.id===te.audioTrackId);f=se!=null?se:f}}let R=Pd();return R&&(f!=null||(f=d.find(({language:te})=>R===te))),f!=null||(f=d.at(0)),f},ru=d=>{M.log("change audio stream",{id:d});let f=g.info.availableAudioStreams$.getValue().find(R=>R.id===d);f&&ds(f)},cs=!1;ce.add(g.info.availableAudioStreams$.subscribe(d=>{if(!cs&&d.length){let f=us(d);f&&(g.setAudioStream(f),cs=!0)}})),ss.subscribe(d=>{var f;(f=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||f.call(a,d.map(({label:R="",id:te="",language:se=""})=>({label:R,language:se,id:te})))}),ls.subscribe(d=>{var f;return d&&((f=a==null?void 0:a.onAudioStreamChanged)==null?void 0:f.call(a,d.id))});let ps=!1;ce.add(g.info.availableVideoStreams$.subscribe(d=>{if(!ps&&d.length){let f=us(d);f&&(g.setVideoStream(f),ps=!0)}}));let _r=Q(void 0),fs=Ye(g.info.isAutoQualityEnabled$,d=>d&&_r.set(void 0)),ou=Ye(g.info.currentQuality$,()=>_r.set(void 0)),ms=tt([_r,ou],([d,f])=>d!=null?d:f),vs=tt(pn,d=>d!==rt.VideoFormat.MPEG),au=tt([ft,xo,fs,ms,vs],([d,f,R,te,se])=>{let $e=[];se&&$e.push({value:"auto",displayValue:Le("auto_quality_option"),selected:R});let Fe=d.filter(Ve=>!(0,ve.isInvariantQuality)(Ve));for(let Ve of Fe){let Tt=f[Ve];$e.push({value:Ve,displayValue:`${Ve}${Tt?Nd(Tt):""}`,selected:R?!1:Ve===te})}return $e}),Ao=Ye(g.info.currentPlaybackRate$),Eo=tt([Ao,rs,os],([d,f,R])=>{let te=R?1:L.controls.playbackRateMin,se=f?1:L.controls.playbackRateMax,$e=L.controls.playbackRateStep,Fe=[];for(let Ve=te;Ve<=se;Ve+=$e)Fe.push({value:Ve,displayValue:Ve===1?Le("playback_rate_1"):Le("playback_rate",{multiplier:Ve.toString(10)}),selected:d===Ve});return Fe}),yr=()=>({displayValue:Le("subtitles_off"),value:Mi,language:""}),gs=Q(yr()),Bi=tt([gs,xe],([d],f)=>{d.value===Mi?f(yr()):f(d)}),wo=L.features.subtitles?Ye(g.info.availableTextTracks$):ri([]),hs=Ad(),su=tt([wo,Bi],([d,f],R)=>{var $e;let te=[],se=d.find(({id:Fe})=>Fe===f.value);if(se!=null&&se.url){let[,Fe]=($e=hs.find(se.url))!=null?$e:[];if(Fe){R(Fe);return}J.download(se.url).then(Ve=>{if(!Ve||J.isDestroyed())return;let Tt=new Ud,Pn=se.language;if(Pn){let Gu=!!se.isAuto,qu=Tt.parse(Ve,Pn);te.push({lang:Pn,subtitles:qu,isAuto:Gu,id:se.id})}hs.add(se.url,te),Ee(Bi).value===f.value&&R(te)}).catch(()=>{var Ve;(Ve=_==null?void 0:_.oneStat)==null||Ve.logError({errorType:"Subtitles download",fatal:!1})})}R(te)}),lu=tt([Ao,ns,Bi],([d,f,R],te)=>{let Fe;if(g.info.isLive$.getValue()&&f&&R.value!==Mi){let Tt=()=>{let Pn=1e3/(3*d);Fe=setTimeout(Tt,Pn),te(Date.now())};return Tt(),()=>clearTimeout(Fe)}}),_s=tt([wo,Bi],([d,f])=>{if(!d.length)return[];let R=[];for(let{language:te,isAuto:se,id:$e}of d){let Fe=te&&Oa(te);te&&Fe&&R.push({displayValue:se?Le("subtitles_auto",{language:Fe}):Fe,value:$e,selected:(f==null?void 0:f.value)===$e,isAuto:se,language:te})}return R.length?(R.unshift({...yr(),selected:(f==null?void 0:f.value)===Mi}),R):[]}),$n={available:[],prev:[]},du=()=>{var f,R;let d=g.experimental.getCurrentTime$.getValue();return(R=(f=d==null?void 0:d())!=null?f:W==null?void 0:W.currentTime)!=null?R:0},uu=tt([We,Bi,su,lu],([d,f,R,te])=>{var $e;let se=g.info.isLive$.getValue();if(se&&$n.prev!==R){let Fe=R.find(({id:Tt})=>Tt===f.value),Ve=$n.prev.find(({id:Tt})=>Tt===f.value);if(Fe){let Tt={...Fe,subtitles:[...($e=Ve==null?void 0:Ve.subtitles)!=null?$e:[],...Fe.subtitles]};$n.available=[Tt],$n.prev=R}}if(f&&f.value!==Mi){let Fe=se?du():d,Ve=se?$n.available:R;return Bd(Fe,f,Ve,se)}}),cu=tt([uu],([d])=>d!=null&&d.texts?d.texts:[]);ce.add(Bi.subscribe(d=>{var f,R;if(d.value===Mi)(f=a==null?void 0:a.onSubtitleOff)==null||f.call(a);else{let te=Object.entries(lo).find(([se,$e])=>$e===d.displayValue);(R=a==null?void 0:a.onSubtitleOn)==null||R.call(a,te?te[0]:"",d.value)}}));let pu=Q(!0),fu=tt([ht,hr,as,Si],([d,f,R,te])=>{var Ve;let se=(Ve=d==null?void 0:d.end)!=null?Ve:0;if(!te)return se/f;let Fe=-R+te-f;return(se-Fe)/f}),ys=Ye(g.info.availableSources$),mu=tt([ys],([d])=>Object.keys((d==null?void 0:d[rt.VideoFormat.MPEG])||{}).length>0),vu=()=>{var R,te,se;let d=Object.keys(((te=(R=g.info.availableSources$)==null?void 0:R.getValue())==null?void 0:te[rt.VideoFormat.MPEG])||{}),f=(0,ve.getHighestQuality)(d)||ve.VideoQuality.Q_144P;return(se=z.sources[rt.VideoFormat.MPEG])==null?void 0:se[f]},gu=()=>{var f;let d=vu();if(d)M.log("download video",{url:d}),xd(d,((f=z==null?void 0:z.meta)==null?void 0:f.title)||"video");else{let R="There is no URL for download video";M.log("download video",{message:R}),P({message:R})}},hu=()=>{P({message:"toggle muted"});let d=g.info.muted$.getValue();g.info.volume$.getValue()===0&&!d?To(Mo()):On(!d)},_u=()=>{Ke.ui.settingsMenu.visible$.set(!1),M.log("close settings menu")},yu=async(d,f=()=>Promise.resolve())=>{Ke.ui.settingsMenu.visible$.set(!0),await f(),M.log("open settings menu",{wasOpenedByKeyboard:d})},Mo=()=>{var f;let d=Math.max(L.volumeMinRestore,(f=io())!=null?f:0);return d===0?L.volumeDefault:d},To=d=>{let f=d===0?Mo():d,R=g.info.muted$.getValue();P({message:`set volume, volume: ${d}, preferredVolume: ${f}`});let te=!o||T.is("ads");R&&d>0&&te&&(R=!1),g.setVolume(d,R),F.setVolume(d)},On=d=>{let f=g.info.volume$.getValue();P({message:`set muted, currentVolume: ${f}, mute: ${d}`});let R=T.is("ads");if(g.setMuted(d,R),F.setVolume(d?0:f),!d&&f===0){let te=Mo();g.setVolume(te),F.setVolume(te)}},bs=Q(!1),xs=d=>{M.log("set looped",{isLooped:d}),bs.set(d),g.setLooped(d)};xs(h);let bu=()=>{g.prepare()},xu=()=>{(0,ve.assertNonNullable)(Ke);let d=Ee(Ke.playerPhase),f={playerPhase:d,isVideoEnded:!1,action:"none"};if(P({message:"toggle play"}),d==="ads"){f.action="play",M.log("toggle adman play",f),F.togglePlay();return}let R=()=>{var se;P({message:"toggle play, call player.play"}),f.action="play",g.play(),(se=a==null?void 0:a.onPlay)==null||se.call(a)},te=()=>{var se;P({message:"toggle play, call player.pause"}),f.action="pause",g.pause(),(se=a==null?void 0:a.onPause)==null||se.call(a)};g.info.isEnded$.getValue()?(P({message:"toggle play, video ended, seek to 0"}),Qe.next(),Y.next(cn.SeekAction.REWIND),g.seekTime(0),R()):g.info.playbackState$.getValue()!==rt.PlaybackState.PLAYING?R():te(),M.log("toggle play",f)},As=(d,{byUser:f=!1}={})=>{P({message:`set quality, quality: ${d}`}),M.log("set quality",{quality:d}),f&&w.next(d),g.setAutoQuality(d==="auto"),no(),d!=="auto"&&(Sa(i,d),_r.set(d),g.setQuality(d))},Es=d=>{P({message:`set trafficSavingEnabled, value: ${d}`}),M.log("set traffic saving enabled",{trafficSavingEnabled:d});let f=d?rt.PredefinedQualityLimits.TRAFFIC_SAVING:rt.PredefinedQualityLimits.UNKNOWN;g.setPredefinedQualityLimits(f)},ws=d=>{P({message:`set highQualityEnabled, value: ${d}`}),M.log("set high quality enabled",{highQualityEnabled:d}),Au(d?rt.PredefinedQualityLimits.HIGH_QUALITY:rt.PredefinedQualityLimits.UNKNOWN)},Au=d=>{g.setPredefinedQualityLimits(d)},So=(d,f=!0)=>{M.log("set playback rate",{playbackRate:d}),g.setPlaybackRate(d),L.features.saveRate&&y&&!g.info.isLive$.getValue()&&f&&Vd(d)},Eu=()=>{let d=Ee(si),f=Ee(Eo),R=f.findIndex(({selected:se})=>se);if(R===f.length-1||!d)return f[R];let te=f[R+1];return So(te.value),te},wu=()=>{let d=Ee(si),f=Ee(Eo),R=f.findIndex(({selected:se})=>se);if(R===0||!d)return f[R];let te=f[R-1];return So(te.value),te},Io=(d={...yr(),selected:!1})=>{M.log("set subtitles",{...d}),d.value!==Mi&&ie.next(d.isAuto?d.value+"_auto":d.value),De.next({enabled:d.value!==Mi,lang:d.language,auto:!!d.isAuto}),gs.set(d)},Ms=d=>{M.log("toggle subtitles");let f=Ee(Bi);(f==null?void 0:f.value)===Mi?Ts(d):Ss()},Mu=(d,f)=>{M.log("change subtitle",{enabled:d}),d?Ts(!0,f):Ss()},Ts=(d,f)=>{M.log("subtitle on");let R=Ee(_s),te=Ee(he),se=G!=null?G:te,$e;f&&($e=R.find(Fe=>Fe.value===f)),$e!=null||($e=R.filter(Fe=>Fe.value!==Mi).find(Fe=>Fe.language===se)),Io($e!=null?$e:R[1])},Ss=()=>{M.log("subtitle off"),Io(void 0)};ce.add(g.info.availableTextTracks$.subscribe(d=>{var R;function f(){let te=[];for(let{language:se,isAuto:$e,id:Fe}of d){let Ve=se&&Oa(se);se&&Ve&&te.push({id:Fe,language:se,title:$e?Le("subtitles_auto",{language:Ve}):Ve})}return te}(R=a==null?void 0:a.onAvailableSubtitlesChanged)==null||R.call(a,f())}));let Is=(d,f,R=!0)=>{var te;if(P({message:`seek to time, time: ${d}`}),M.log("seek to time",{time:d,action:f,forcePrecise:R}),Y.next(f),g.info.isLive$.getValue()){let se=g.info.duration$.getValue(),$e=Math.min(0,se+d);g.seekTime($e,R)}else g.info.isEnded$.getValue()&&(P({message:"seek after ended, call callbacks.onPlay"}),(te=a==null?void 0:a.onPlay)==null||te.call(a)),g.seekTime(d,R)},Ns=(d,f,R=!1)=>{P({message:`seek to percent, percent: ${d}`}),M.log("seek to percent",{percent:d,action:f});let te=Ee(hr)*d;Is(te,f,R)},Tu=d=>{P({message:`seek external, time: ${d}`}),M.log("seek external",{time:d}),Y.next(cn.SeekAction.UNKNOWN),g.seekTime(g.info.isLive$.getValue()?-d:d)},Su=d=>{var te,se;let f=(te=d.max)!=null?te:"none",R=(se=d.min)!=null?se:"none";P({message:`set auto quality limitation. Max: ${f}. Min: ${R}`}),M.log("set auto quality limits",{max:f,min:R}),g.setAutoQualityLimits(d)},Iu=d=>{P({message:`set playback rate to: ${d}`}),M.log("set playback rate external",{playbackRate:d}),g.setPlaybackRate(d)},No=Q(void 0),Nu=d=>{P({message:`start scrubbing, progress: ${d}`}),M.log("start scrubbing",{progress:d}),S.state.scrubbingInProgress.set(!0),Ds(d)},Ds=d=>{No.set(d)},Du=()=>{No.set(void 0),S.state.scrubbingInProgress.set(!1)},Cu=(d,f=!1)=>{P({message:`complete scrubbing, progress: ${d}`}),M.log("complete scrubbing",{progress:d}),Ns(d,cn.SeekAction.SLIDER,f),Du()},ku=tt([We,hr,No],([d,f,R],te)=>{te((0,ve.isNonNullable)(R)?R*f:d)}),Lu=d=>{Y.next(cn.SeekAction.LIVE),P({message:"live switch to low latency "+d}),M.log("live switch to low latency "+d),g.setLiveLowLatency(d)},$u=()=>{Y.next(cn.SeekAction.LIVE),P({message:"switch to active live"}),M.log("switch to active live"),g.seekTime(0),g.info.playbackState$.getValue()!==rt.PlaybackState.PLAYING&&Ke.actions.internal.togglePlay()},Ou=()=>{M.log("skip adman"),F.skip()},Pu=(d=!0)=>{var te;(0,ve.assertNonNullable)(Ke),P({message:`switch from ads to video, callPlay: ${d}`}),M.log("switch from ads to video",{callPlay:d}),je.set("video"),d&&g.play(),o&&On(!0);let f=(te=Ee(k))==null?void 0:te.muted,R=!g.info.muted$.getValue();f!==void 0&&!R&&On(f),k.set(void 0)},Ru=()=>{(0,ve.assertNonNullable)(Ke),P({message:"switch from video to ads"}),M.log("switch from video to ads"),Ke.actions.internal.pause(),de(),je.set("ads")},Vu=d=>{(0,ve.assertNonNullable)(Ke);let f=d?"LiveWaitingStart":"thumb";M.log("set live waiting start",{state:d,playerPhase:f}),je.set(f)},ju=d=>{(0,ve.assertNonNullable)(Ke);let f=d?"LiveWaitingRecover":"thumb";M.log("set live waiting recover",{state:d,playerPhase:f}),je.set(f)},zu=d=>{(0,ve.assertNonNullable)(Ke);let f=d?"LiveWaitingRecord":"thumb";M.log("set live waiting record",{state:d,playerPhase:f}),je.set(f)},Uu=()=>((0,ve.assertNonNullable)(Ke),M.log("get debug text data"),yd(g,z,Ke,E.getTraceId(),N)),Fu=()=>((0,ve.assertNonNullable)(Ke),JSON.stringify(E.getFinishedSpans())),Hu=()=>((0,ve.assertNonNullable)(Ke),bd(g,z,Ke)),Bu=()=>W,Cs=d=>{var R;if((0,ve.assertNonNullable)(Ke),g.info.isEnded$.getValue())return;let f=!d;if(Ee(Ke.playerPhase)==="ads"){P({message:`pause ads, internalCall: ${f}`}),M.log("pause ads",{internalCall:f}),F.pause();return}P({message:`pause video, internalCall: ${f}`}),M.log("pause video",{internalCall:f}),f&&((R=a==null?void 0:a.onPause)==null||R.call(a)),g.pause()},ks=d=>{var R;(0,ve.assertNonNullable)(Ke);let f=!d;if(Ee(Ke.playerPhase)==="ads"){P({message:`play ads, internalCall: ${f}`}),M.log("play ads",{internalCall:f}),F.play();return}P({message:`play video, internalCall: ${f}`}),M.log("play video",{internalCall:f}),f&&((R=a==null?void 0:a.onPlay)==null||R.call(a)),g.play()},Qu=d=>{(0,ve.assertNonNullable)(Ke);let f=!d;if(Ee(Ke.playerPhase)==="ads"){P({message:"player cannot be stopped during ads via external method"});return}P({message:`player will be stopped, internalCall: ${f}`}),m==null||m()},Ls=(d,f)=>{(0,ve.assertNonNullable)(Ke),P({message:`first start, show ads: ${d}, internalCall: ${!f}`}),M.log("first start",{showAds:d,external:f}),d?je.set("ads"):(je.set("video"),f?g.play():Ke.actions.internal.togglePlay())},Yu=()=>(P({message:"getting preview thumbs data"}),M.log("get preview thumbs data",{...v}),v),Wu=()=>{M.log("destroy store"),ce.unsubscribe(),g.destroy(),F.destroy(),_==null||_.destroy(),_e.unsubscribe(),J.destroy()},Ke={interfaceLanguage$:he,isCyrillicRelatedInterface$:Be,initVideo:ze,videoId:i,playerPhase:T,vsid:we,i18n:Le,app:b,video:(0,ve.cloneDeep)(x),state:{positionExact$:We,positionWithScrubbing$:ku,duration$:hr,playbackState$:Ue,playbackStateRealistic$:ot,isPlaying$:ns,isLoaderVisible:ge,bufferedProgress$:fu,isLive$:Ti,canChangePlaybackSpeed$:si,isActiveLive$:rs,isOldestAvailableLive$:os,isRewindableLive$:eu,isEnded$:ut,muted$:qi,volume$:$i,trafficSavingEnabled$:Hi,highQualityEnabled$:qe,autoQualityLimitingAvailable$:Ge,availableVideoStreams$:tu,availableAudioStreams$:ss,videoStream$:iu,audioStream$:ls,currentQuality$:ms,isAutoQualityEnabled$:fs,availableQualities$:au,currentPlaybackRate$:Ao,availablePlaybackRates$:Eo,currentSubtitle$:Bi,availableTextTracks$:wo,availableSubtitlesList$:_s,currentSubtitleCaptions$:cu,isAutoSubtitleCaptionVisible$:pu,currentFormat$:pn,throughputEstimation$:Nt,videoBitrate$:ct,videoSize$:fn,errorLog$:oe,crashed$:V,isAudioAvailable$:Jd,isAudioDisabled:!!o,canDownload:L.features.download&&!!s,availableSources$:ys,hasMpegSources$:mu,looped$:bs,loadedMetadata$:He,isAutoQualityAvailable$:vs},ui:S.state,ads:{position:Q(0),duration:Q(0),playbackState:Q("inactive"),canSkip:Q(!1),secondsToWatchBeforeSkip:Q(0),postrollPassed:Q(!1)},webApi:{focusManager:O},actions:{internal:{preload:bu,firstStart:d=>Ls(d,!1),play:()=>ks(!1),pause:()=>Cs(!1),togglePlay:xu,toggleMuted:hu,openSettingsMenu:yu,closeSettingsMenu:_u,setVolume:d=>To(d),setMuted:d=>On(d),startVolumeChanging:S.action.startVolumeChanging,stopVolumeChanging:S.action.stopVolumeChanging,onUserInput:S.action.onUserInput,setSettingsVisibility:S.action.setSettingsVisibility,clearShowByInput:S.action.clearShowByInput,onBackButton:S.action.onBackButton,setVideoStream:nu,setAudioStream:d=>ds(d),setQuality:(d,f)=>As(d,f),setTrafficSavingEnabled:d=>Es(d),setHighQualityEnabled:d=>ws(d),setPlaybackRate:So,incrementPlaybackRate:Eu,decrementPlaybackRate:wu,setSubtitle:d=>Io(d),toggleSubtitle:()=>Ms(!1),startScrubbing:Nu,progressScrubbing:Ds,completeScrubbing:Cu,switchToActiveLive:$u,switchFromAdsToVideo:Pu,switchFromVideoToAds:Ru,skipAd:Ou,setLiveWaitingStart:Vu,setLiveWaitingRecover:ju,setLiveWaitingRecord:zu,getDebugTextData:Uu,getTraceTextData:Fu,getDebugPanelData:Hu,getVideoElement:Bu,seekTime:(d,f,R)=>Is(d,f,R),clearDelayedBufferingCheckTimeout:Xd,seekToPercent:Ns,getPreviewThumbsData:Yu,downloadVideo:gu,addLanguage:ba,setLanguage:Me,setLooped:xs,checkFullscreenSupport:Z},external:{firstStart:d=>Ls(d,!0),play:()=>ks(!0),pause:()=>Cs(!0),stop:()=>Qu(!0),seekTime:d=>Tu(d),setPlaybackRate:d=>Iu(d),setAutoQualityLimits:d=>Su(d),setMuted:d=>On(d),toggleSubtitle:()=>Ms(!0),changeSubtitle:Mu,setVolume:d=>To(d),setLiveLowLatency:Lu,hideControls:()=>S.action.setControlsAvailibility(!1),showControls:()=>S.action.setControlsAvailibility(!0),setQuality:d=>As(d),setTrafficSavingEnabled:d=>Es(d),setHighQualityEnabled:d=>ws(d),changeAudioStream:ru}},callbacks:a,setUiCallbacks:d=>{ae={...d}},getAdmanWrapper:()=>F,getLogger:()=>j,getPlayer:()=>g,deviceCapabilities:A,destroy:Wu};return S.resolveDependency(Ke),Ke};var Zd=require("@vkontakte/videoplayer-core/es2018"),ts=require("@vkontakte/videoplayer-core/es2018"),vr=require("@vkontakte/videoplayer-shared/es2018");var uo=class{constructor(t){this.value=t,this.next=null}};var Dn=class{constructor(t){this.top=null,this.bottom=null,this.size=0,this.maxSize=t}push(t){let i=new uo(t);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 t=[],i=this.bottom;for(;i;)t.push(i.value),i=i.next;return t}};var Vp=ue('<div class="container s-d"><canvas class="s-d"></canvas></div>'),jp={hash:"s-d",code:".container.s-d{display:inline-block;height:16px;width:120px}canvas.s-d{margin-top:2px;transform:scaleY(-1)}"};function fr(e,t){Se(t,!0),Oe(e,jp);let i=nt(t,"values",19,()=>[]),n=Pe(void 0),r=Pe(null),o=16,s=120,a=60,c=s/a;wi(()=>{D(n).width=s,D(n).height=o,fe(r,D(n).getContext("2d"),!0)});function v(u,m,h,_,y){y===0&&(y=1),u.fillStyle="#fff",u.fillRect(m,h,_,y)}Wt(()=>{let u="";if(D(r)){let m=i()[0];for(let _=1;_<i().length;_++)i()[_]>m&&(m=i()[_]);D(r).clearRect(0,0,s,o);let h=a-1;for(let _=i().length-1;_>=0;_--){let y=h*c,C=m>0?o*(i()[_]/m):0;v(D(r),y,0,c,C),u=C+" "+u,h--}}});var p=Vp(),l=B(p);ni(l,u=>fe(n,u),()=>D(n)),H(p),ee(e,p),Ie()}var Ra=require("@vkontakte/videoplayer-shared/es2018");var zp=(e,t)=>{e.stopPropagation(),Ra.safeStorage.remove(pr),t.set(!1)},Up=ue('<div class="s-3"><div class="s-3">Video id</div> <span> </span></div>'),Fp=ue('<div class="s-3"><div class="s-3">VSID</div> <span> </span></div>'),Hp=ue('<div class="s-3"><div class="s-3">Provider</div> <span> </span></div>'),Bp=ue('<div class="s-3"><div class="s-3">Streams</div> <span> </span></div>'),Qp=ue('<div class="s-3"><div class="s-3">Viewport</div> <span> </span></div>'),Yp=ue('<div class="s-3"><div class="s-3">Video size</div> <span> </span></div>'),Wp=ue('<div class="s-3"><div class="s-3">CDN host</div> <span> </span></div>'),Gp=ue('<div class="s-3"><div class="s-3">Volume</div> <span> </span></div>'),qp=ue('<div class="s-3"><div class="s-3">Position</div> <span> </span></div>'),Kp=ue('<div class="s-3"><div class="s-3">Buffer</div> <span> </span></div>'),Zp=ue('<div class="s-3"><div class="s-3">Nbuffer</div> <span> </span></div>'),Jp=ue('<div class="s-3"><div class="s-3">Live latency</div> <span> </span></div>'),Xp=ue('<div class="s-3"><div class="s-3">Segment</div> <span> </span></div>'),ef=ue('<div class="s-3"><div class="s-3">Network</div> <!> <span> </span></div>'),tf=ue('<div class="s-3"><div class="s-3">V bitrate</div> <!> <span> </span></div>'),nf=ue('<div class="container s-3" role="region"><button class="close s-3" title="закрыть">[x]</button> <div class="content s-3"><div class="s-3"><div class="s-3">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-3"><div class="s-3">Dropped</div> <span> </span></div> <!> <!> <div class="s-3"><div class="s-3">FPS</div> <!> <span> </span></div></div></div>'),rf={hash:"s-3",code:".container.s-3{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-3,button.close.s-3{color:#fff;position:absolute}button.close.s-3{background-color:transparent;border:none;cursor:pointer;outline:0;padding:0;right:5px;top:3px}.content.s-3{padding:5px}.content.s-3>div:where(.s-3)>div:where(.s-3){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function Va(e,t){Se(t,!0),Oe(e,rf);let i=Vt(),n=i.ui.debugPanelVisible,r=Pe(kt(i.actions.internal.getDebugPanelData())),o=i.actions.internal.getVideoElement(),s=Pe(0),a=Pe(0),c=Pe(0),v=new Dn(60),p=new Dn(60),l=new Dn(60),u=Pe(kt([])),m=Pe(kt([])),h=Pe(kt([])),_=jt("aria_label_debug_panel");wi(()=>{Ra.safeStorage.set(pr,"true"),o&&(fe(a,o.getVideoPlaybackQuality().droppedVideoFrames,!0),fe(s,o.getVideoPlaybackQuality().totalVideoFrames,!0));let Y=window.setInterval(()=>{fe(r,i.actions.internal.getDebugPanelData(),!0)},500),ie;return o&&(ie=window.setInterval(()=>{if(o){fe(a,o.getVideoPlaybackQuality().droppedVideoFrames,!0);let pe=o.getVideoPlaybackQuality().totalVideoFrames;fe(c,pe-D(s)),fe(s,pe,!0),v.push(D(c)),D(r).speed&&p.push(D(r).speed),D(r).bitrate&&l.push(D(r).bitrate),fe(u,v.getValuesFromBottom(),!0),fe(m,p.getValuesFromBottom(),!0),fe(h,l.getValuesFromBottom(),!0)}},1e3)),()=>{clearInterval(Y),ie&&clearInterval(ie)}});var y=nf(),C=B(y);C.__click=[zp,n];var I=ne(C,2),N=B(I),b=ne(B(N),2),x=B(b,!0);H(b),H(N);var A=ne(N,2);{var S=Y=>{var ie=Up(),pe=ne(B(ie),2),De=B(pe,!0);H(pe),H(ie),ye(()=>Ne(De,D(r).id)),ee(Y,ie)};ke(A,Y=>{D(r).id&&Y(S)})}var $=ne(A,2);{var L=Y=>{var ie=Fp(),pe=ne(B(ie),2),De=B(pe,!0);H(pe),H(ie),ye(()=>Ne(De,D(r).vsid)),ee(Y,ie)};ke($,Y=>{D(r).vsid&&Y(L)})}var E=ne($,2);{var M=Y=>{var ie=Hp(),pe=ne(B(ie),2),De=B(pe,!0);H(pe),H(ie),ye(()=>Ne(De,D(r).provider)),ee(Y,ie)};ke(E,Y=>{D(r).provider&&Y(M)})}var g=ne(E,2);{var j=Y=>{var ie=Bp(),pe=ne(B(ie),2),De=B(pe);H(pe),H(ie),ye(()=>{var w,X;return Ne(De,`Video: ${(w=D(r).videoCodec||"")!=null?w:""} ${D(r).hdr?"(HDR)":""}
34
+ https://svelte.dev/e/state_proxy_equality_mismatch`,di,fi):console.warn(`https://svelte.dev/e/state_proxy_equality_mismatch`)}function vi(){I?console.warn(`%c[svelte] state_proxy_unmount
35
+ %cTried to unmount a state proxy, rather than a component
36
+ https://svelte.dev/e/state_proxy_unmount`,di,fi):console.warn(`https://svelte.dev/e/state_proxy_unmount`)}function yi(){I?console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `<svelte:boundary>` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",di,fi):console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var L=!1;function bi(e){L=e}var R;function xi(e){if(e===null)throw hi(),er;return R=e}function Si(){return xi(rs(R))}function z(e){if(L){if(rs(R)!==null)throw hi(),er;R=e}}function Ci(e=1){if(L){for(var t=e,n=R;t--;)n=rs(n);R=n}}function wi(e=!0){for(var t=0,n=R;;){if(n.nodeType===Yr){var r=n.data;if(r===$n){if(t===0)return n;--t}else (r===Xn||r===Zn||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=rs(n);e&&n.remove(),n=i}}function Ti(e){if(!e||e.nodeType!==Yr)throw hi(),er;return e.data}function Ei(e){return e===this.v}function Di(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Oi(e){return!Di(e,this.v)}var ki=!1,Ai=!1,ji=!1;function Mi(){Ai=!0}var Ni=null;function Pi(e,t){return e.label=t,Fi(e.v,t),e}function Fi(e,t){var n;return e==null||(n=e[Gr])==null||n.call(e,t),e}function Ii(e){let t=Error(),n=Li();return n.length===0?null:(n.unshift(`
37
+ `),cr(t,`stack`,{value:n.join(`
38
+ `)}),cr(t,`name`,{value:e}),t)}function Li(){let e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;let t=Error().stack;if(Error.stackTraceLimit=e,!t)return[];let n=t.split(`
39
+ `),r=[];for(let e=0;e<n.length;e++){let t=n[e],i=t.replaceAll(`\\`,`/`);if(t.trim()!==`Error`){if(t.includes(`validate_each_keys`))return[];i.includes(`svelte/src/internal`)||i.includes(`node_modules/.vite`)||r.push(t)}}return r}var B=null;function Ri(e){B=e}var zi=null;function Bi(e){zi=e}var Vi=null;function Hi(e){Vi=e}function Ui(e){return Ji(`getContext`).get(e)}function Wi(e,t){let n=Ji(`setContext`);if(ki){var r=W.f;!U&&(r&Cr)!==0&&!B.i||oi()}return n.set(e,t),t}function Gi(e,t=!1,n){B={p:B,i:!1,c:null,e:null,s:e,x:null,l:Ai&&!t?{s:null,u:null,$:[]}:null},I&&(B.function=n,Vi=n)}function Ki(e){var t=B,n=t.e;if(n!==null){t.e=null;for(var r of n)hs(r)}return e!==void 0&&(t.x=e),t.i=!0,B=t.p,I&&(Vi=B?.function??null),e??{}}function qi(){return!Ai||B!==null&&B.l===null}function Ji(e){var t;return B===null&&Xr(e),(t=B).c??(t.c=new Map(Yi(B)||void 0))}function Yi(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Xi=[];function Zi(){var e=Xi;Xi=[],gr(e)}function Qi(e){if(Xi.length===0&&!ma){var t=Xi;queueMicrotask(()=>{t===Xi&&Zi()})}Xi.push(e)}var $i=new WeakMap;function ea(e){var t=W;if(t===null)return U.f|=Vr,e;if(I&&e instanceof Error&&!$i.has(e)&&$i.set(e,na(e,t)),(t.f&Mr)===0&&(t.f&yr)===0)throw I&&!t.parent&&e instanceof Error&&ra(e),e;ta(e,t)}function ta(e,t){for(;t!==null;){if((t.f&Tr)!==0){if((t.f&Mr)===0)throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw I&&e instanceof Error&&ra(e),e}function na(e,t){let n=lr(e,`message`);if(!(n&&!n.configurable)){for(var r=Zo?` `:` `,i=`
40
+ ${r}in ${t.fn?.name||`<unknown>`}`,a=t.ctx;a!==null;)i+=`
41
+ ${r}in ${a.function?.[nr].split(`/`).pop()}`,a=a.p;return{message:e.message+`
42
+ ${i}
43
+ `,stack:e.stack?.split(`
44
+ `).filter(e=>!e.includes(`svelte/src/internal`)).join(`
45
+ `)}}}function ra(e){let t=$i.get(e);t&&(cr(e,`message`,{value:t.message}),cr(e,`stack`,{value:t.stack}))}var ia=~(Or|kr|Dr);function aa(e,t){e.f=e.f&ia|t}function oa(e){(e.f&Er)!==0||e.deps===null?aa(e,Dr):aa(e,kr)}function sa(e){if(e!==null)for(let t of e)(t.f&vr)===0||(t.f&Rr)===0||(t.f^=Rr,sa(t.deps))}function ca(e,t,n){(e.f&Or)===0?(e.f&kr)!==0&&n.add(e):t.add(e),sa(e.deps),aa(e,Dr)}var la=new Set,ua=null,da=null,fa=[],pa=null,ma=!1,ha=null,ga=new WeakMap,_a=new WeakMap,va=new WeakMap,ya=new WeakMap,ba=new WeakMap,xa=new WeakMap,Sa=new WeakMap,Ca=new WeakMap,wa=new WeakMap,Ta=new WeakSet;class Ea{constructor(){t(this,Ta),e(this,`current`,new Map),e(this,`previous`,new Map),n(this,ga,new Set),n(this,_a,new Set),n(this,va,0),n(this,ya,0),n(this,ba,null),n(this,xa,new Set),n(this,Sa,new Set),n(this,Ca,new Map),e(this,`is_fork`,!1),n(this,wa,!1)}skip_effect(e){r(Ca,this).has(e)||r(Ca,this).set(e,{d:[],m:[]})}unskip_effect(e){var t=r(Ca,this).get(e);if(t){r(Ca,this).delete(e);for(var n of t.d)aa(n,Or),La(n);for(n of t.m)aa(n,kr),La(n)}}process(e){fa=[],this.apply();var t=ha=[],n=[];for(let r of e)i(Ta,this,Oa).call(this,r,t,n);if(ha=null,i(Ta,this,Da).call(this)){i(Ta,this,ka).call(this,n),i(Ta,this,ka).call(this,t);for(let[e,t]of r(Ca,this))Ra(e,t)}else{ua=null;for(let e of r(ga,this))e(this);r(ga,this).clear(),r(va,this)===0&&i(Ta,this,Aa).call(this),Pa(n),Pa(t),r(xa,this).clear(),r(Sa,this).clear(),r(ba,this)?.resolve()}da=null}capture(e,t){t!==tr&&!this.previous.has(e)&&this.previous.set(e,t),(e.f&Vr)===0&&(this.current.set(e,e.v),da?.set(e,e.v))}activate(){ua=this,this.apply()}deactivate(){ua===this&&(ua=null,da=null)}flush(){if(fa.length>0)ua=this,ja();else if(r(va,this)===0&&!this.is_fork){for(let e of r(ga,this))e(this);r(ga,this).clear(),i(Ta,this,Aa).call(this),r(ba,this)?.resolve()}this.deactivate()}discard(){for(let e of r(_a,this))e(this);r(_a,this).clear()}increment(e){a(va,this,r(va,this)+1),e&&a(ya,this,r(ya,this)+1)}decrement(e){a(va,this,r(va,this)-1),e&&a(ya,this,r(ya,this)-1),!r(wa,this)&&(a(wa,this,!0),Qi(()=>{a(wa,this,!1),i(Ta,this,Da).call(this)?fa.length>0&&this.flush():this.revive()}))}revive(){for(let e of r(xa,this))r(Sa,this).delete(e),aa(e,Or),La(e);for(let e of r(Sa,this))aa(e,kr),La(e);this.flush()}oncommit(e){r(ga,this).add(e)}ondiscard(e){r(_a,this).add(e)}settled(){return(r(ba,this)??a(ba,this,_r())).promise}static ensure(){if(ua===null){let e=ua=new Ea;la.add(ua),ma||Qi(()=>{ua===e&&e.flush()})}return ua}apply(){if(!(!ki||!this.is_fork&&la.size===1)){da=new Map(this.current);for(let e of la)if(e!==this)for(let[t,n]of e.previous)da.has(t)||da.set(t,n)}}}function Da(){return this.is_fork||r(ya,this)>0}function Oa(e,t,n){e.f^=Dr;for(var i=e.first;i!==null;){var a=i.f,o=(a&(Cr|wr))!==0;if(!(o&&(a&Dr)!==0||(a&Ar)!==0||r(Ca,this).has(i))&&i.fn!==null){o?i.f^=Dr:(a&yr)===0?ki&&(a&(br|xr))!==0?n.push(i):Qs(i)&&((a&Sr)!==0&&r(Sa,this).add(i),rc(i)):t.push(i);var s=i.first;if(s!==null){i=s;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}function ka(e){for(var t=0;t<e.length;t+=1)ca(e[t],r(xa,this),r(Sa,this))}function Aa(){if(la.size>1){this.previous.clear();var e=ua,t=da,n=!0;for(let e of la){if(e===this){n=!1;continue}let t=[];for(let[r,i]of this.current){if(e.current.has(r))if(n&&i!==e.current.get(r))e.current.set(r,i);else continue;t.push(r)}if(t.length===0)continue;let r=[...e.current.keys()].filter(e=>!this.current.has(e));if(r.length>0){var a=fa;fa=[];let n=new Set,o=new Map;for(let e of t)Fa(e,r,n,o);if(fa.length>0){ua=e,e.apply();for(let t of fa)i(Ta,e,Oa).call(e,t,[],[]);e.deactivate()}fa=a}}ua=e,da=t}r(Ca,this).clear(),la.delete(this)}function ja(){var e=I?new Set:null;try{for(var t=0;fa.length>0;){var n=Ea.ensure();if(t++>1e3){if(I){var r=new Map;for(let e of n.current.keys())for(let[t,n]of e.updated??[]){var i=r.get(t);i||(i={error:n.error,count:0},r.set(t,i)),i.count+=n.count}for(let e of r.values())e.error&&console.error(e.error)}Ma()}if(n.process(fa),jo.clear(),I)for(let t of n.current.keys())e.add(t)}}finally{if(fa=[],pa=null,ha=null,I)for(let t of e)t.updated=null}}function Ma(){try{ni()}catch(e){I&&cr(e,`stack`,{value:``}),ta(e,pa)}}var Na=null;function Pa(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(jr|Ar))===0&&Qs(r)&&(Na=new Set,rc(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Os(r),Na?.size>0)){jo.clear();for(let e of Na){if((e.f&(jr|Ar))!==0)continue;let t=[e],n=e.parent;for(;n!==null;)Na.has(n)&&(Na.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];(n.f&(jr|Ar))===0&&rc(n)}}Na.clear()}}Na=null}}function Fa(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;(e&vr)===0?(e&(Br|Sr))!==0&&(e&Or)===0&&Ia(i,t,r)&&(aa(i,Or),La(i)):Fa(i,t,n,r)}}function Ia(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(or.call(t,r))return!0;if((r.f&vr)!==0&&Ia(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function La(e){var t=pa=e,n=t.b;if(n?.is_pending&&(e.f&(yr|br|xr))!==0&&(e.f&Mr)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(ha!==null&&t===W&&(ki||(e.f&br)===0))return;if((r&(wr|Cr))!==0){if((r&Dr)===0)return;t.f^=Dr}}fa.push(t)}function Ra(e,t){if(!((e.f&Cr)!==0&&(e.f&Dr)!==0)){(e.f&Or)===0?(e.f&kr)!==0&&t.m.push(e):t.d.push(e),aa(e,Dr);for(var n=e.first;n!==null;)Ra(n,t),n=n.next}}function za(e){let t=0,n=Fo(0),r;return I&&Pi(n,`createSubscriber version`),()=>{fs()&&(G(n),ys(()=>(t===0&&(r=oc(()=>e(()=>Vo(n)))),t+=1,()=>{Qi(()=>{--t,t===0&&(r?.(),r=void 0,Vo(n))})})))}}var Ba=Nr|Ir;function Va(e,t,n,r){new ao(e,t,n,r)}var Ha=new WeakMap,Ua=new WeakMap,Wa=new WeakMap,Ga=new WeakMap,Ka=new WeakMap,qa=new WeakMap,Ja=new WeakMap,Ya=new WeakMap,Xa=new WeakMap,Za=new WeakMap,Qa=new WeakMap,$a=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap,ro=new WeakMap,io=new WeakSet;class ao{constructor(o,s,c,l){t(this,io),e(this,`parent`,void 0),e(this,`is_pending`,!1),e(this,`transform_error`,void 0),n(this,Ha,void 0),n(this,Ua,L?R:null),n(this,Wa,void 0),n(this,Ga,void 0),n(this,Ka,void 0),n(this,qa,null),n(this,Ja,null),n(this,Ya,null),n(this,Xa,null),n(this,Za,0),n(this,Qa,0),n(this,$a,!1),n(this,eo,new Set),n(this,to,new Set),n(this,no,null),n(this,ro,za(()=>(a(no,this,Fo(r(Za,this))),I&&Pi(r(no,this),`$effect.pending()`),()=>{a(no,this,null)}))),a(Ha,this,o),a(Wa,this,s),a(Ga,this,e=>{var t=W;t.b=this,t.f|=Tr,c(e)}),this.parent=W.b,this.transform_error=l??this.parent?.transform_error??(e=>e),a(Ka,this,xs(()=>{if(L){let e=r(Ua,this);Si();let t=e.data===Zn;if(e.data.startsWith(Qn)){let t=JSON.parse(e.data.slice(Qn.length));i(io,this,so).call(this,t)}else t?i(io,this,co).call(this):i(io,this,oo).call(this)}else i(io,this,lo).call(this)},Ba)),L&&a(Ha,this,R)}defer_effect(e){ca(e,r(eo,this),r(to,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!r(Wa,this).pending}update_pending_count(e){i(io,this,po).call(this,e),a(Za,this,r(Za,this)+e),!(!r(no,this)||r($a,this))&&(a($a,this,!0),Qi(()=>{a($a,this,!1),r(no,this)&&zo(r(no,this),r(Za,this))}))}get_effect_pending(){return r(ro,this).call(this),G(r(no,this))}error(e){var t=r(Wa,this).onerror;let n=r(Wa,this).failed;if(!t&&!n)throw e;r(qa,this)&&(Es(r(qa,this)),a(qa,this,null)),r(Ja,this)&&(Es(r(Ja,this)),a(Ja,this,null)),r(Ya,this)&&(Es(r(Ya,this)),a(Ya,this,null)),L&&(xi(r(Ua,this)),Ci(),xi(wi()));var o=!1,s=!1;let c=()=>{if(o){yi();return}o=!0,s&&ui(),r(Ya,this)!==null&&ks(r(Ya,this),()=>{a(Ya,this,null)}),i(io,this,fo).call(this,()=>{Ea.ensure(),i(io,this,lo).call(this)})},l=e=>{try{s=!0,t?.(e,c),s=!1}catch(e){ta(e,r(Ka,this)&&r(Ka,this).parent)}n&&a(Ya,this,i(io,this,fo).call(this,()=>{Ea.ensure();try{return Ss(()=>{var t=W;t.b=this,t.f|=Tr,n(r(Ha,this),()=>e,()=>c)})}catch(e){return ta(e,r(Ka,this).parent),null}}))};Qi(()=>{var t;try{t=this.transform_error(e)}catch(e){ta(e,r(Ka,this)&&r(Ka,this).parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(l,e=>ta(e,r(Ka,this)&&r(Ka,this).parent)):l(t)})}}function oo(){try{a(qa,this,Ss(()=>r(Ga,this).call(this,r(Ha,this))))}catch(e){this.error(e)}}function so(e){let t=r(Wa,this).failed;t&&a(Ya,this,Ss(()=>{t(r(Ha,this),()=>e,()=>()=>{})}))}function co(){let e=r(Wa,this).pending;e&&(this.is_pending=!0,a(Ja,this,Ss(()=>e(r(Ha,this)))),Qi(()=>{var e=a(Xa,this,document.createDocumentFragment()),t=ts();e.append(t),a(qa,this,i(io,this,fo).call(this,()=>(Ea.ensure(),Ss(()=>r(Ga,this).call(this,t))))),r(Qa,this)===0&&(r(Ha,this).before(e),a(Xa,this,null),ks(r(Ja,this),()=>{a(Ja,this,null)}),i(io,this,uo).call(this))}))}function lo(){try{if(this.is_pending=this.has_pending_snippet(),a(Qa,this,0),a(Za,this,0),a(qa,this,Ss(()=>{r(Ga,this).call(this,r(Ha,this))})),r(Qa,this)>0){var e=a(Xa,this,document.createDocumentFragment());Ns(r(qa,this),e);let t=r(Wa,this).pending;a(Ja,this,Ss(()=>t(r(Ha,this))))}else i(io,this,uo).call(this)}catch(e){this.error(e)}}function uo(){this.is_pending=!1;for(let e of r(eo,this))aa(e,Or),La(e);for(let e of r(to,this))aa(e,kr),La(e);r(eo,this).clear(),r(to,this).clear()}function fo(e){var t=W,n=U,i=B;Bs(r(Ka,this)),zs(r(Ka,this)),Ri(r(Ka,this).ctx);try{return e()}catch(e){return ea(e),null}finally{Bs(t),zs(n),Ri(i)}}function po(e){if(!this.has_pending_snippet()){if(this.parent){var t;i(io,t=this.parent,po).call(t,e)}return}a(Qa,this,r(Qa,this)+e),r(Qa,this)===0&&(i(io,this,uo).call(this),r(Ja,this)&&ks(r(Ja,this),()=>{a(Ja,this,null)}),r(Xa,this)&&(r(Ha,this).before(r(Xa,this)),a(Xa,this,null)))}function mo(e,t,n,r){let i=qi()?yo:So;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=W,s=ho(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){(o.f&jr)===0&&ta(e,o)}go()}if(n.length===0){c.then(()=>l(t.map(i)));return}function u(){s(),Promise.all(n.map(e=>bo(e))).then(e=>l([...t.map(i),...e])).catch(e=>ta(e,o))}c?c.then(u):u()}function ho(){var e=W,t=U,n=B,r=ua;if(I)var i=zi;return function(a=!0){Bs(e),zs(t),Ri(n),a&&r?.activate(),I&&Bi(i)}}function go(e=!0){Bs(null),zs(null),Ri(null),e&&ua?.deactivate(),I&&Bi(null)}function _o(){var e=W.b,t=ua,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}var vo=new Set;function yo(e){var t=vr|Or,n=U!==null&&(U.f&vr)!==0?U:null;W!==null&&(W.f|=Ir);let r={ctx:B,deps:null,effects:null,equals:Ei,f:t,fn:e,reactions:null,rv:0,v:tr,wv:0,parent:n??W,ac:null};return I&&ji&&(r.created=Ii(`created at`)),r}function bo(e,t,n){W===null&&Zr();var r=void 0,i=Fo(tr);I&&(i.label=t);var a=!U,o=new Map;return vs(()=>{var t=_r();r=t.promise;try{Promise.resolve(e()).then(t.resolve,t.reject).finally(go)}catch(e){t.reject(e),go()}var s=ua;if(a){var c=_o();o.get(s)?.reject(Kr),o.delete(s),o.set(s,t)}let l=(e,t=void 0)=>{if(s.activate(),t)t!==Kr&&(i.f|=Vr,zo(i,t));else{(i.f&Vr)!==0&&(i.f^=Vr),zo(i,e);for(let[e,t]of o){if(o.delete(e),e===s)break;t.reject(Kr)}I&&n!==void 0&&(vo.add(i),setTimeout(()=>{vo.has(i)&&(pi(i.label,n),vo.delete(i))}))}c&&c()};t.promise.then(l,e=>l(null,e||`unknown`))}),ps(()=>{for(let e of o.values())e.reject(Kr)}),I&&(i.f|=Br),new Promise(e=>{function t(n){function a(){n===r?e(i):t(r)}n.then(a,a)}t(r)})}function xo(e){let t=yo(e);return ki||Hs(t),t}function So(e){let t=yo(e);return t.equals=Oi,t}function Co(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Es(t[n])}}var wo=[];function To(e){for(var t=e.parent;t!==null;){if((t.f&vr)===0)return(t.f&jr)===0?t:null;t=t.parent}return null}function Eo(e){var t,n=W;if(Bs(To(e)),I){let r=Ao;Mo(new Set);try{or.call(wo,e)&&Qr(),wo.push(e),e.f&=~Rr,Co(e),t=ec(e)}finally{Bs(n),Mo(r),wo.pop()}}else try{e.f&=~Rr,Co(e),t=ec(e)}finally{Bs(n)}return t}function Do(e){var t=Eo(e);if(!e.equals(t)&&(e.wv=Zs(),(!ua?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){aa(e,Dr);return}Is||(da===null?oa(e):(fs()||ua?.is_fork)&&da.set(e,t))}function Oo(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.call(t),t.ac?.abort(Kr),t.teardown=hr,t.ac=null,nc(t,0),ws(t))}function ko(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&rc(t)}var Ao=new Set,jo=new Map;function Mo(e){Ao=e}var No=!1;function Po(){No=!0}function Fo(e,t){var n={f:0,v:e,reactions:null,equals:Ei,rv:0,wv:0};return I&&ji&&(n.created=t??Ii(`created at`),n.updated=null,n.set_during_effect=!1,n.trace=null),n}function Io(e,t){let n=Fo(e,t);return Hs(n),n}function Lo(e,t=!1,n=!0){let r=Fo(e);if(t||(r.equals=Oi),Ai&&n&&B!==null&&B.l!==null){var i;((i=B.l).s??(i.s=[])).push(r)}return r}function Ro(e,t,n=!1){U!==null&&(!Rs||(U.f&Pr)!==0)&&qi()&&(U.f&(vr|Sr|Br|Pr))!==0&&(Vs===null||!or.call(Vs,e))&&li();let r=n?Wo(t):t;return I&&Fi(r,e.label),zo(e,r)}function zo(e,t){if(!e.equals(t)){var n=e.v;Is?jo.set(e,t):jo.set(e,n),e.v=t;var r=Ea.ensure();if(r.capture(e,n),I){if(ji||W!==null){e.updated??=new Map;let t=(e.updated.get(``)?.count??0)+1;if(e.updated.set(``,{error:null,count:t}),ji||t>5){let t=Ii(`updated at`);if(t!==null){let n=e.updated.get(t.stack);n||(n={error:t,count:0},e.updated.set(t.stack,n)),n.count++}}}W!==null&&(e.set_during_effect=!0)}if((e.f&vr)!==0){let t=e;(e.f&Or)!==0&&Eo(t),oa(t)}e.wv=Zs(),Ho(e,Or),qi()&&W!==null&&(W.f&Dr)!==0&&(W.f&(Cr|wr))===0&&(Gs===null?Ks([e]):Gs.push(e)),!r.is_fork&&Ao.size>0&&!No&&Bo()}return t}function Bo(){No=!1;for(let e of Ao)(e.f&Dr)!==0&&aa(e,kr),Qs(e)&&rc(e);Ao.clear()}function Vo(e){Ro(e,e.v+1)}function Ho(e,t){var n=e.reactions;if(n!==null)for(var r=qi(),i=n.length,a=0;a<i;a++){var o=n[a],s=o.f;if(!(!r&&o===W)){if(I&&(s&Pr)!==0){Ao.add(o);continue}var c=(s&Or)===0;if(c&&aa(o,t),(s&vr)!==0){var l=o;da?.delete(l),(s&Rr)===0&&(s&Er&&(o.f|=Rr),Ho(l,kr))}else c&&((s&Sr)!==0&&Na!==null&&Na.add(o),La(o))}}}var Uo=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Wo(e){if(typeof e!=`object`||!e||Hr in e)return e;let t=pr(e);if(t!==dr&&t!==fr)return e;var n=new Map,r=ir(e),i=Io(0),a=I&&ji?Ii(`created at`):null,o=Ys,s=e=>{if(Ys===o)return e();var t=U,n=Ys;zs(null),Xs(o);var r=e();return zs(t),Xs(n),r};r&&(n.set(`length`,Io(e.length,a)),I&&(e=Jo(e)));var c=``;let l=!1;function u(e){if(!l){l=!0,c=e,Pi(i,`${c} version`);for(let[e,t]of n)Pi(t,Go(c,e));l=!1}}return new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&si();var i=n.get(t);return i===void 0?s(()=>{var e=Io(r.value,a);return n.set(t,e),I&&typeof t==`string`&&Pi(e,Go(c,t)),e}):Ro(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>Io(tr,a));n.set(t,e),Vo(i),I&&Pi(e,Go(c,t))}}else Ro(r,tr),Vo(i);return!0},get(t,r,i){if(r===Hr)return e;if(I&&r===Gr)return u;var o=n.get(r),l=r in t;if(o===void 0&&(!l||lr(t,r)?.writable)&&(o=s(()=>{var e=Io(Wo(l?t[r]:tr),a);return I&&Pi(e,Go(c,r)),e}),n.set(r,o)),o!==void 0){var d=G(o);return d===tr?void 0:d}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=G(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==tr)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Hr)return!0;var r=n.get(t),i=r!==void 0&&r.v!==tr||Reflect.has(e,t);return(r!==void 0||W!==null&&(!i||lr(e,t)?.writable))&&(r===void 0&&(r=s(()=>{var n=Io(i?Wo(e[t]):tr,a);return I&&Pi(n,Go(c,t)),n}),n.set(t,r)),G(r)===tr)?!1:i},set(e,t,o,l){var u=n.get(t),d=t in e;if(r&&t===`length`)for(var f=o;f<u.v;f+=1){var p=n.get(f+``);p===void 0?f in e&&(p=s(()=>Io(tr,a)),n.set(f+``,p),I&&Pi(p,Go(c,f))):Ro(p,tr)}if(u===void 0)(!d||lr(e,t)?.writable)&&(u=s(()=>Io(void 0,a)),I&&Pi(u,Go(c,t)),Ro(u,Wo(o)),n.set(t,u));else{d=u.v!==tr;var m=s(()=>Wo(o));Ro(u,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(l,o),!d){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&Ro(g,_+1)}Vo(i)}return!0},ownKeys(e){G(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==tr});for(var[r,a]of n)a.v!==tr&&!(r in e)&&t.push(r);return t},setPrototypeOf(){ci()}})}function Go(e,t){return typeof t==`symbol`?`${e}[Symbol(${t.description??``})]`:Uo.test(t)?`${e}.${t}`:/^\d+$/.test(t)?`${e}[${t}]`:`${e}['${t}']`}function Ko(e){try{if(typeof e==`object`&&e&&Hr in e)return e[Hr]}catch{}return e}var qo=new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`]);function Jo(e){return new Proxy(e,{get(e,t,n){var r=Reflect.get(e,t,n);return qo.has(t)?function(...e){Po();var t=r.apply(this,e);return Bo(),t}:r}})}function Yo(){let e=Array.prototype,t=Array.__svelte_cleanup;t&&t();let{indexOf:n,lastIndexOf:r,includes:i}=e;e.indexOf=function(e,t){let r=n.call(this,e,t);if(r===-1){for(let n=t??0;n<this.length;n+=1)if(Ko(this[n])===e){_i(`array.indexOf(...)`);break}}return r},e.lastIndexOf=function(e,t){let n=r.call(this,e,t??this.length-1);if(n===-1){for(let n=0;n<=(t??this.length-1);n+=1)if(Ko(this[n])===e){_i(`array.lastIndexOf(...)`);break}}return n},e.includes=function(e,t){let n=i.call(this,e,t);if(!n){for(let t=0;t<this.length;t+=1)if(Ko(this[t])===e){_i(`array.includes(...)`);break}}return n},Array.__svelte_cleanup=()=>{e.indexOf=n,e.lastIndexOf=r,e.includes=i}}var Xo,Zo,Qo,$o;function es(){if(Xo===void 0){Xo=window,document,Zo=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Qo=lr(t,`firstChild`).get,$o=lr(t,`nextSibling`).get,mr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mr(n)&&(n.__t=void 0),I&&(e.__svelte_meta=null,Yo())}}function ts(e=``){return document.createTextNode(e)}function ns(e){return Qo.call(e)}function rs(e){return $o.call(e)}function V(e,t){if(!L)return ns(e);var n=ns(R);if(n===null)n=R.appendChild(ts());else if(t&&n.nodeType!==Jr){var r=ts();return n?.before(r),xi(r),r}return t&&ss(n),xi(n),n}function is(e,t=!1){if(!L){var n=ns(e);return n instanceof Comment&&n.data===``?rs(n):n}if(t){if(R?.nodeType!==Jr){var r=ts();return R?.before(r),xi(r),r}ss(R)}return R}function H(e,t=1,n=!1){let r=L?R:e;for(var i;t--;)i=r,r=rs(r);if(!L)return r;if(n){if(r?.nodeType!==Jr){var a=ts();return r===null?i?.after(a):r.before(a),xi(a),a}ss(r)}return xi(r),r}function as(){return!ki||Na!==null?!1:(W.f&Mr)!==0}function os(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??rr,e,r)}function ss(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Jr;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function cs(e){var t=U,n=W;zs(null),Bs(null);try{return e()}finally{zs(t),Bs(n)}}function ls(e){W===null&&(U===null&&ti(e),ei()),Is&&$r(e)}function us(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ds(e,t){var n=W;if(I)for(;n!==null&&(n.f&Pr)!==0;)n=n.parent;n!==null&&(n.f&Ar)!==0&&(e|=Ar);var r={ctx:B,deps:null,nodes:null,f:e|Or|Er,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};I&&(r.component_function=Vi);var i=r;if((e&yr)!==0)ha===null?La(r):ha.push(r);else if(t!==null){try{rc(r)}catch(e){throw Es(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Ir)===0&&(i=i.first,(e&Sr)!==0&&(e&Nr)!==0&&i!==null&&(i.f|=Nr))}if(i!==null&&(i.parent=n,n!==null&&us(i,n),U!==null&&(U.f&vr)!==0&&(e&wr)===0)){var a=U;(a.effects??=[]).push(i)}return r}function fs(){return U!==null&&!Rs}function ps(e){let t=ds(br,null);return aa(t,Dr),t.teardown=e,t}function ms(e){ls(`$effect`),I&&cr(e,`name`,{value:`$effect`});var t=W.f;if(!U&&(t&Cr)!==0&&(t&Mr)===0){var n=B;(n.e??=[]).push(e)}else return hs(e)}function hs(e){return ds(yr|Lr,e)}function gs(e){Ea.ensure();let t=ds(wr|Ir,e);return(e={})=>new Promise(n=>{e.outro?ks(t,()=>{Es(t),n(void 0)}):(Es(t),n(void 0))})}function _s(e){return ds(yr,e)}function vs(e){return ds(Br|Ir,e)}function ys(e,t=0){return ds(br|t,e)}function bs(e,t=[],n=[],r=[]){mo(r,t,n,t=>{ds(br,()=>e(...t.map(G)))})}function xs(e,t=0){var n=ds(Sr|t,e);return I&&(n.dev_stack=zi),n}function Ss(e){return ds(Cr|Ir,e)}function Cs(e){var t=e.teardown;if(t!==null){let e=Is,n=U;Ls(!0),zs(null);try{t.call(null)}finally{Ls(e),zs(n)}}}function ws(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&cs(()=>{e.abort(Kr)});var r=n.next;(n.f&wr)===0?Es(n,t):n.parent=null,n=r}}function Ts(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&Cr)===0&&Es(t),t=n}}function Es(e,t=!0){var n=!1;(t||(e.f&Fr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ds(e.nodes.start,e.nodes.end),n=!0),ws(e,t&&!n),nc(e,0),aa(e,jr);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Cs(e);var i=e.parent;i!==null&&i.first!==null&&Os(e),I&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ds(e,t){for(;e!==null;){var n=e===t?null:rs(e);e.remove(),e=n}}function Os(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function ks(e,t,n=!0){var r=[];As(e,r,!0);var i=()=>{n&&Es(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function As(e,t,n){if((e.f&Ar)===0){e.f^=Ar;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&Nr)!==0||(i.f&Cr)!==0&&(e.f&Sr)!==0;As(i,t,o?n:!1),i=a}}}function js(e){Ms(e,!0)}function Ms(e,t){if((e.f&Ar)!==0){e.f^=Ar,(e.f&Dr)===0&&(aa(e,Or),La(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Nr)!==0||(n.f&Cr)!==0;Ms(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Ns(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:rs(n);t.append(n),n=i}}var Ps=null,Fs=!1,Is=!1;function Ls(e){Is=e}var U=null,Rs=!1;function zs(e){U=e}var W=null;function Bs(e){W=e}var Vs=null;function Hs(e){U!==null&&(!ki||(U.f&vr)!==0)&&(Vs===null?Vs=[e]:Vs.push(e))}var Us=null,Ws=0,Gs=null;function Ks(e){Gs=e}var qs=1,Js=0,Ys=Js;function Xs(e){Ys=e}function Zs(){return++qs}function Qs(e){var t=e.f;if((t&Or)!==0)return!0;if(t&vr&&(e.f&=~Rr),(t&kr)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Qs(a)&&Do(a),a.wv>e.wv)return!0}(t&Er)!==0&&da===null&&aa(e,Dr)}return!1}function $s(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!ki&&Vs!==null&&or.call(Vs,e)))for(var i=0;i<r.length;i++){var a=r[i];(a.f&vr)===0?t===a&&(n?aa(a,Or):(a.f&Dr)!==0&&aa(a,kr),La(a)):$s(a,t,!1)}}function ec(e){var t=Us,n=Ws,r=Gs,i=U,a=Vs,o=B,s=Rs,c=Ys,l=e.f;Us=null,Ws=0,Gs=null,U=(l&(Cr|wr))===0?e:null,Vs=null,Ri(e.ctx),Rs=!1,Ys=++Js,e.ac!==null&&(cs(()=>{e.ac.abort(Kr)}),e.ac=null);try{e.f|=zr;var u=e.fn,d=u();e.f|=Mr;var f=e.deps,p=ua?.is_fork;if(Us!==null){var m;if(p||nc(e,Ws),f!==null&&Ws>0)for(f.length=Ws+Us.length,m=0;m<Us.length;m++)f[Ws+m]=Us[m];else e.deps=f=Us;if(fs()&&(e.f&Er)!==0)for(m=Ws;m<f.length;m++){var h;((h=f[m]).reactions??(h.reactions=[])).push(e)}}else !p&&f!==null&&Ws<f.length&&(nc(e,Ws),f.length=Ws);if(qi()&&Gs!==null&&!Rs&&f!==null&&(e.f&(vr|kr|Or))===0)for(m=0;m<Gs.length;m++)$s(Gs[m],e);if(i!==null&&i!==e){if(Js++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Js;if(t!==null)for(let e of t)e.rv=Js;Gs!==null&&(r===null?r=Gs:r.push(...Gs))}return(e.f&Vr)!==0&&(e.f^=Vr),d}catch(e){return ea(e)}finally{e.f^=zr,Us=t,Ws=n,Gs=r,U=i,Vs=a,Ri(o),Rs=s,Ys=c}}function tc(e,t){let n=t.reactions;if(n!==null){var r=ar.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&vr)!==0&&(Us===null||!or.call(Us,t))){var a=t;(a.f&Er)!==0&&(a.f^=Er,a.f&=~Rr),oa(a),Oo(a),nc(a,0)}}function nc(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)tc(e,n[r])}function rc(e){var t=e.f;if((t&jr)===0){aa(e,Dr);var n=W,r=Fs;if(W=e,Fs=!0,I){var i=Vi;Hi(e.component_function);var a=zi;Bi(e.dev_stack??zi)}try{(t&(Sr|xr))===0?ws(e):Ts(e),Cs(e);var o=ec(e);if(e.teardown=typeof o==`function`?o:null,e.wv=qs,I&&ji&&(e.f&Or)!==0&&e.deps!==null)for(var s of e.deps)s.set_during_effect&&=(s.wv=Zs(),!1)}finally{Fs=r,W=n,I&&(Hi(i),Bi(a))}}}function G(e){var t=(e.f&vr)!==0;if(Ps?.add(e),U!==null&&!Rs&&!(W!==null&&(W.f&jr)!==0)&&(Vs===null||!or.call(Vs,e))){var n=U.deps;if((U.f&zr)!==0)e.rv<Js&&(e.rv=Js,Us===null&&n!==null&&n[Ws]===e?Ws++:Us===null?Us=[e]:Us.push(e));else{var r;((r=U).deps??(r.deps=[])).push(e);var i=e.reactions;i===null?e.reactions=[U]:or.call(i,U)||i.push(U)}}if(I&&(vo.delete(e),ji&&!Rs&&Ni!==null&&U!==null&&Ni.reaction===U))if(e.trace)e.trace();else{var a=Ii(`traced at`);if(a){var o=Ni.entries.get(e);o===void 0&&(o={traces:[]},Ni.entries.set(e,o));var s=o.traces[o.traces.length-1];a.stack!==s?.stack&&o.traces.push(a)}}if(Is&&jo.has(e))return jo.get(e);if(t){var c=e;if(Is){var l=c.v;return((c.f&Dr)===0&&c.reactions!==null||ac(c))&&(l=Eo(c)),jo.set(c,l),l}var u=(c.f&Er)===0&&!Rs&&U!==null&&(Fs||(U.f&Er)!==0),d=(c.f&Mr)===0;Qs(c)&&(u&&(c.f|=Er),Do(c)),u&&!d&&(ko(c),ic(c))}if(da?.has(e))return da.get(e);if((e.f&Vr)!==0)throw e.v;return e.v}function ic(e){if(e.f|=Er,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),(t.f&vr)!==0&&(t.f&Er)===0&&(ko(t),ic(t))}function ac(e){if(e.v===tr)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(jo.has(t)||(t.f&vr)!==0&&ac(t))return!0;return!1}function oc(e){var t=Rs;try{return Rs=!0,e()}finally{Rs=t}}var sc=Symbol(`events`),cc=new Set,lc=new Set;function uc(e,t,n){(t[sc]??(t[sc]={}))[e]=n}function dc(e){for(var t=0;t<e.length;t++)cc.add(e[t]);for(var n of lc)n(e)}var fc=null;function pc(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.call(e)||[],a=i[0]||e.target;fc=e;var o=0,s=fc===e&&e[sc];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[sc]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){cr(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=U,d=W;zs(null),Bs(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[sc]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[sc]=t,delete e.currentTarget,zs(u),Bs(d)}}}var mc=((o=globalThis)==null||(o=o.window)==null?void 0:o.trustedTypes)&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function hc(e){return mc?.createHTML(e)??e}function gc(e){var t=os(`template`);return t.innerHTML=hc(e.replaceAll(`<!>`,`<!---->`)),t.content}function _c(e,t){var n=W;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function K(e,t){var n=(t&Jn)!==0,r=(t&Yn)!==0,i,a=!e.startsWith(`<!>`);return()=>{if(L)return _c(R,null),R;i===void 0&&(i=gc(a?e:`<!>`+e),n||(i=ns(i)));var t=r||Zo?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=ns(t),s=t.lastChild;_c(o,s)}else _c(t,t);return t}}function vc(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&Jn)!==0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(L)return _c(R,null),R;if(!o){var e=ns(gc(a));if(i)for(o=document.createDocumentFragment();ns(e);)o.appendChild(ns(e));else o=ns(e)}var t=o.cloneNode(!0);if(i){var n=ns(t),r=t.lastChild;_c(n,r)}else _c(t,t);return t}}function yc(e,t){return vc(e,t,`svg`)}function bc(){if(L)return _c(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(``),n=ts();return e.append(t,n),_c(t,n),e}function q(e,t){if(L){var n=W;((n.f&Mr)===0||n.nodes.end===null)&&(n.nodes.end=R),Si();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var xc=[`touchstart`,`touchmove`];function Sc(e){return xc.includes(e)}function Cc(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function wc(e,t){return Ec(e,t)}var Tc=new Map;function Ec(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){es();var c=void 0,l=gs(()=>{var o=n??t.appendChild(ts());Va(o,{pending:()=>{}},t=>{Gi({});var n=B;if(a&&(n.c=a),i&&(r.$$events=i),L&&_c(t,null),c=e(t,r)||{},L&&(W.nodes.end=R,R===null||R.nodeType!==Yr||R.data!==$n))throw hi(),er;Ki()},s);var l=new Set,u=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=Sc(r);for(let e of[t,document]){var a=Tc.get(e);a===void 0&&(a=new Map,Tc.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,pc,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return u(sr(cc)),lc.add(u),()=>{for(var e of l)for(let n of[t,document]){var r=Tc.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,pc),r.delete(e),r.size===0&&Tc.delete(n)):r.set(e,i)}lc.delete(u),o!==n&&o.parentNode?.removeChild(o)}});return Dc.set(c,l),c}var Dc=new WeakMap;function Oc(e,t){let n=Dc.get(e);return n?(Dc.delete(e),n(t)):(I&&(Hr in e?vi():gi()),Promise.resolve())}var kc=new WeakMap,Ac=new WeakMap,jc=new WeakMap,Mc=new WeakMap,Nc=new WeakMap,Pc=new WeakMap,Fc=new WeakMap;class Ic{constructor(t,i=!0){e(this,`anchor`,void 0),n(this,kc,new Map),n(this,Ac,new Map),n(this,jc,new Map),n(this,Mc,new Set),n(this,Nc,!0),n(this,Pc,e=>{if(r(kc,this).has(e)){var t=r(kc,this).get(e),n=r(Ac,this).get(t);if(n)js(n),r(Mc,this).delete(t);else{var i=r(jc,this).get(t);i&&(r(Ac,this).set(t,i.effect),r(jc,this).delete(t),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(let[t,n]of r(kc,this)){if(r(kc,this).delete(t),t===e)break;let i=r(jc,this).get(n);i&&(Es(i.effect),r(jc,this).delete(n))}for(let[e,i]of r(Ac,this)){if(e===t||r(Mc,this).has(e))continue;let a=()=>{if(Array.from(r(kc,this).values()).includes(e)){var t=document.createDocumentFragment();Ns(i,t),t.append(ts()),r(jc,this).set(e,{effect:i,fragment:t})}else Es(i);r(Mc,this).delete(e),r(Ac,this).delete(e)};r(Nc,this)||!n?(r(Mc,this).add(e),ks(i,a,!1)):a()}}}),n(this,Fc,e=>{r(kc,this).delete(e);let t=Array.from(r(kc,this).values());for(let[e,n]of r(jc,this))t.includes(e)||(Es(n.effect),r(jc,this).delete(e))}),this.anchor=t,a(Nc,this,i)}ensure(e,t){var n=ua,i=as();if(t&&!r(Ac,this).has(e)&&!r(jc,this).has(e))if(i){var a=document.createDocumentFragment(),o=ts();a.append(o),r(jc,this).set(e,{effect:Ss(()=>t(o)),fragment:a})}else r(Ac,this).set(e,Ss(()=>t(this.anchor)));if(r(kc,this).set(n,e),i){for(let[t,i]of r(Ac,this))t===e?n.unskip_effect(i):n.skip_effect(i);for(let[t,i]of r(jc,this))t===e?n.unskip_effect(i.effect):n.skip_effect(i.effect);n.oncommit(r(Pc,this)),n.ondiscard(r(Fc,this))}else L&&(this.anchor=R),r(Pc,this).call(this,n)}}function Lc(e,t,...n){var r=new Ic(e);xs(()=>{let e=t()??null;I&&e==null&&ri(),r.ensure(e,e&&(t=>e(t,...n)))},Nr)}if(I){let e=function(e){if(!(e in globalThis)){let t;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(t!==void 0)return t;ai(e)},set:e=>{t=e}})}};e(`$state`),e(`$effect`),e(`$derived`),e(`$inspect`),e(`$props`),e(`$bindable`)}function Rc(e){B===null&&Xr(`onMount`),Ai&&B.l!==null?zc(B).m.push(e):ms(()=>{let t=oc(e);if(typeof t==`function`)return t})}function zc(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}var Bc=new Map;function Vc(e,t){var n=Bc.get(e);n||(n=new Set,Bc.set(e,n)),n.add(t)}function Hc(e,t,n=!1){var r;L&&(r=R,Si());var i=new Ic(e),a=n?Nr:0;function o(e,t){if(L){var n=Ti(r);if(e!==(n===Xn?0:n===Zn?!1:parseInt(n.substring(1)))){var a=wi();xi(a),i.anchor=a,bi(!1),i.ensure(e,t),bi(!0);return}}i.ensure(e,t)}xs(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(!1,null)},a)}var Uc=Symbol(`NaN`);function Wc(e,t,n){L&&Si();var r=new Ic(e),i=!qi();xs(()=>{var e=t();e!==e&&(e=Uc),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function Gc(e,t){_s(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=os(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e),I&&Vc(t.hash,e)}})}var Kc=[...`
46
+ \r\f\xA0\v`];function qc(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Kc.includes(r[o-1]))&&(s===r.length||Kc.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Jc(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Yc(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Xc(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Yc)),i&&c.push(...Object.keys(i).map(Yc));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Yc(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Jc(r)),i&&(n+=Jc(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Zc(e,t,n,r,i,a){var o=e.__className;if(L||o!==n||o===void 0){var s=qc(n,r,a);(!L||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Qc(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function $c(e,t,n,r){var i=e.__style;if(L||i!==t){var a=Xc(t,r);(!L||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Qc(e,n?.[0],r[0]),Qc(e,n?.[1],r[1],`important`)):Qc(e,n,r));return r}var el=Symbol(`is custom element`),tl=Symbol(`is html`),nl=qr?`link`:`LINK`;function rl(e,t,n,r){var i=il(e);if(L&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===nl)){r||sl(e,t,n??``);return}i[t]!==(i[t]=n)&&(t===`loading`&&(e[Wr]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ol(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function il(e){return e.__attributes??={[el]:e.nodeName.includes(`-`),[tl]:e.namespaceURI===rr}}var al=new Map;function ol(e){var t=e.getAttribute(`is`)||e.nodeName,n=al.get(t);if(n)return n;al.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=ur(i),r)r[o].set&&n.push(o);i=pr(i)}return n}function sl(e,t,n){I&&(t===`srcset`&&ul(e,n)||cl(e.getAttribute(t)??``,n)||mi(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&`...`),String(n)))}function cl(e,t){return e===t?!0:new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function ll(e){return e.split(`,`).map(e=>e.trim().split(` `).filter(Boolean))}function ul(e,t){var n=ll(e.srcset),r=ll(t);return r.length===n.length&&r.every(([e,t],r)=>t===n[r][1]&&(cl(n[r][0],e)||cl(e,n[r][0])))}var dl=new WeakMap,fl=new WeakMap,pl=new WeakMap,ml=new WeakSet;class hl{constructor(e){t(this,ml),n(this,dl,new WeakMap),n(this,fl,void 0),n(this,pl,void 0),a(pl,this,e)}observe(e,t){var n=r(dl,this).get(e)||new Set;return n.add(t),r(dl,this).set(e,n),i(ml,this,gl).call(this).observe(e,r(pl,this)),()=>{var n=r(dl,this).get(e);n.delete(t),n.size===0&&(r(dl,this).delete(e),r(fl,this).unobserve(e))}}}s=hl;function gl(){return r(fl,this)??a(fl,this,new ResizeObserver(e=>{for(var t of e){s.entries.set(t.target,t);for(var n of r(dl,this).get(t.target)||[])n(t)}}))}e(hl,`entries`,new WeakMap);function _l(e,t){return e===t||e?.[Hr]===t}function vl(e={},t,n,r){return _s(()=>{var i,a;return ys(()=>{i=a,a=r?.()||[],oc(()=>{e!==n(...a)&&(t(e,...a),i&&_l(n(...i),e)&&t(null,...i))})}),()=>{Qi(()=>{a&&_l(n(...a),e)&&t(null,...a)})}}),e}function yl(e,t,n){if(e==null)return t(void 0),n&&n(void 0),hr;let r=oc(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var bl=[];function xl(e,t){return{subscribe:J(e,t).subscribe}}function J(e,t=hr){let n=null,r=new Set;function i(t){if(Di(e,t)&&(e=t,n)){let t=!bl.length;for(let t of r)t[1](),bl.push(t,e);if(t){for(let e=0;e<bl.length;e+=2)bl[e][0](bl[e+1]);bl.length=0}}}function a(t){i(t(e))}function o(o,s=hr){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||hr),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Sl(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return xl(n,(e,n)=>{let o=!1,s=[],c=0,l=hr,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:hr},d=i.map((e,t)=>yl(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){gr(d),l(),o=!1}})}function Y(e){let t;return yl(e,e=>t=e)(),t}var Cl=!1,wl=Symbol();function Tl(e,t,n){let r=n[t]??(n[t]={store:null,source:Lo(void 0),unsubscribe:hr});if(I&&(r.source.label=t),r.store!==e&&!(wl in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=hr;else{var i=!0;r.unsubscribe=yl(e,e=>{i?r.source.v=e:Ro(r.source,e)}),i=!1}return e&&wl in n?Y(e):G(r.source)}function El(){let e={};function t(){ps(()=>{for(var t in e)e[t].unsubscribe();cr(e,wl,{enumerable:!1,value:!0})})}return[e,t]}function Dl(e){var t=Cl;try{return Cl=!1,[e(),Cl]}finally{Cl=t}}function X(e,t,n,r){var i=!Ai||(n&Wn)!==0,a=(n&Kn)!==0,o=(n&qn)!==0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?oc(r):r),s),u;if(a){var d=Hr in e||Ur in e;u=lr(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=Dl(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&ii(t),u(f)));var m=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&(n&Gn)===0)return m;if(u){var h=e.$$legacy;return function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()}}var g=!1,_=((n&F)===0?So:yo)(()=>(g=!1,m()));I&&(_.label=t),a&&G(_);var v=W;return function(e,t){if(arguments.length>0){let n=t?G(_):i&&a?Wo(e):e;return Ro(_,n),g=!0,s!==void 0&&(s=n),e}return Is&&g||(v.f&jr)!==0?_.v:G(_)}}var Ol=`5`;if(typeof window<`u`){var kl,Al;((kl=(Al=window).__svelte??(Al.__svelte={})).v??(kl.v=new Set)).add(Ol)}var jl=require(`@vkontakte/videoplayer-core/es2018`),Ml=require(`@vkontakte/videoplayer-shared/es2018`),Nl=require(`@vkontakte/videoplayer-statistics/es2018`),Pl=require(`@vkontakte/videoplayer-shared/es2018`),Fl={debugLog:!1,devNullLog:!1,defaultLanguage:Pl.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:Pl.VideoQuality.Q_480P,highQualityLimit:Pl.VideoQuality.Q_720P,features:{autoplay:!0,statistics:!0,thinStatistics:!1,preload:!0,subtitles:!0,fullscreen:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,copyVideoLink:!0,videoRotate:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,userVideoPrefs:!1,initSubtitles:!0},controls:{playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},userSalt:`0`},Il=e=>Pl.fillWithDefault(e,Fl),Ll=e=>Wi(`ui-config`,e),Rl=()=>Ui(`ui-config`),zl=`vk_player_debug_panel_opened`,Bl=`videoplayer`,Vl=`videoplayer`,Hl=_(tt(),1),{NativeAbortSignal:Ul,NativeAbortController:Wl}=function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}}(typeof self<`u`?self:global);function Gl(e){let t;try{t=new Event(`abort`)}catch{typeof document<`u`?document.createEvent?(t=document.createEvent(`Event`),t.initEvent(`abort`,!1,!1)):(t=document.createEventObject(),t.type=`abort`):t={type:`abort`,bubbles:!1,cancelable:!1}}return t.reason=e,t}function Kl(e){if(e===void 0)if(typeof document>`u`)e=Error(`This operation was aborted`),e.name=`AbortError`;else try{e=new DOMException(`signal is aborted without reason`),Object.defineProperty(e,`name`,{value:`AbortError`})}catch{e=Error(`This operation was aborted`),e.name=`AbortError`}return e}class ql{constructor(){Object.defineProperty(this,`listeners`,{value:{},writable:!0,configurable:!0})}addEventListener(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}removeEventListener(e,t){if(!(e in this.listeners))return;let n=this.listeners[e];for(let e=0,r=n.length;e<r;e++)if(n[e].callback===t){n.splice(e,1);return}}dispatchEvent(e){if(!(e.type in this.listeners))return;let t=this.listeners[e.type].slice();for(let n=0,r=t.length;n<r;n++){let r=t[n];try{r.callback.call(this,e)}catch(e){Promise.resolve().then(()=>{throw e})}r.options&&r.options.once&&this.removeEventListener(e.type,r.callback)}return!e.defaultPrevented}}class Jl extends ql{constructor(){super(),this.listeners||ql.call(this),Object.defineProperty(this,`aborted`,{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,`onabort`,{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,`reason`,{value:void 0,writable:!0,configurable:!0})}toString(){return`[object AbortSignal]`}dispatchEvent(e){e.type===`abort`&&(this.aborted=!0,typeof this.onabort==`function`&&this.onabort.call(this,e)),super.dispatchEvent(e)}throwIfAborted(){let{aborted:e,reason:t=`Aborted`}=this;if(e)throw t}static timeout(e){let t=new Yl;return setTimeout(()=>t.abort(new DOMException(`This signal is timeout in ${e}ms`,`TimeoutError`)),e),t.signal}static any(e){let t=new Yl;function n(){t.abort(this.reason),r()}function r(){for(let t of e)t.removeEventListener(`abort`,n)}for(let r of e)if(r.aborted){t.abort(r.reason);break}else r.addEventListener(`abort`,n);return t.signal}}class Yl{constructor(){Object.defineProperty(this,`signal`,{value:new Jl,writable:!0,configurable:!0})}abort(e){let t=Kl(e),n=Gl(t);this.signal.reason=t,this.signal.dispatchEvent(n)}toString(){return`[object AbortController]`}}typeof Symbol<`u`&&Symbol.toStringTag&&(Yl.prototype[Symbol.toStringTag]=`AbortController`,Jl.prototype[Symbol.toStringTag]=`AbortSignal`);function Xl(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log(`__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill`),!0):typeof e.Request==`function`&&!e.Request.prototype.hasOwnProperty(`signal`)||!e.AbortController}function Zl(e){typeof e==`function`&&(e={fetch:e});let{fetch:t,Request:n=t.Request,AbortController:r,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Xl({fetch:t,Request:n,AbortController:r,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:t,Request:a};let a=n;(a&&!a.prototype.hasOwnProperty(`signal`)||i)&&(a=function(e,t){let r;t&&t.signal&&(r=t.signal,delete t.signal);let i=new n(e,t);return r&&Object.defineProperty(i,`signal`,{writable:!1,enumerable:!1,configurable:!0,value:r}),i},a.prototype=n.prototype);let o=t;return{fetch:(e,t)=>{let n=a&&a.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(n){let r;try{r=new DOMException(`Aborted`,`AbortError`)}catch{r=Error(`Aborted`),r.name=`AbortError`}if(n.aborted)return Promise.reject(r);let i=new Promise((e,t)=>{n.addEventListener(`abort`,()=>t(r),{once:!0})});return t&&t.signal&&delete t.signal,Promise.race([i,o(e,t)])}return o(e,t)},Request:a}}var Ql=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window,$l=`fetch`in Ql&&Xl({fetch:Ql.fetch,Request:Ql.Request,AbortController:Ql.AbortController}),eu=$l?Zl({fetch:Ql.fetch,Request:Ql.Request,AbortController:Ql.AbortController}):void 0,tu=$l?eu.fetch:Ql.fetch;$l?eu.Request:Ql.Request;var nu=$l?Yl:Ql.AbortController;$l||Ql.AbortSignal;var ru=require(`@vkontakte/videoplayer-shared/es2018`),iu=require(`@vkontakte/videoplayer-core/es2018`),au=require(`@vkontakte/videoplayer-statistics/es2018`),ou=`prod`,su=`1.0.4-dev.319d6ebf.0`,cu=(e,t,n)=>{let r=document.createElement(`a`);r.href=e,r.download=`${t}.${n}`,r.style.display=`none`,r.click()},lu=Symbol(`storeContext`),uu=e=>{Wi(lu,e),ou===`dev`&&(window.app={store:e})},du=()=>{let e=Ui(lu);return ru.assertNonNullable(e,`Store context is empty!`),e},Z=(e,t)=>fu(e,e.getValue(),t),fu=(e,t,n)=>xl(t,t=>{let r=e.subscribe(e=>{t(e),n?.(e)});return()=>r.unsubscribe()}),pu=(e,t,n,r,i=[`meta config not provided`])=>{let a=e.info,{width:o,height:s}=Y(n.ui.playerSize),c=a.throughputEstimation$.getValue()?.toFixed(0)??0,l=a.rttEstimation$.getValue()?.toFixed(0)??0,u=a.isAutoQualityEnabled$.getValue()?`auto`:`manual`,d=`${su} (core: ${iu.VERSION}, stat: ${au.VERSION}, shared: ${ru.VERSION})`,f=Y(n.state.errorLog$),p=f.length?`
47
+ `+f.map((e,t)=>{let n=`${t}) Type: ${e.id}
48
+ `,r=`Message: ${e.message} (${e.thrown})
49
+ `,i=`Trace: ${e.thrown?.stack}
50
+ `;return n+r+i}).join(`
51
+ `):void 0,m=n.state.isAudioDisabled?`disabled`:Y(n.state.isAudioAvailable$)?void 0:`unavailable`,h=e.info.currentVideoStream$.getValue(),g=e.info.currentAudioStream$.getValue(),_=[];h&&_.push(`Video: ${h?.codec??``}`+(h?.hdr?` (HDR)`:``)),g&&_.push(`Audio: ${g?.codec??``}`+(g?.language?` (${g.language})`:``));let v=a.currentQuality$.getValue(),y=``;if(v){let e=a.availableQualitiesFps$.getValue()[v];y=e?`${e}fps`:``}let b=a.httpConnectionType$.getValue(),x=a.currentBuffer$.getValue()?.end??0,S=Math.max(x-Y(n.state.positionExact$),0),C={Version:d,Browser:navigator.userAgent,Config:i.join(`, `),"United video id":String(n.videoId),TraceId:r,VSID:Y(n.vsid),"Content host":a.hostname$.getValue(),"Connection type":b?b+(a.httpConnectionReused$.getValue()?` (reused)`:``):``,Throughput:`${c}Kbps @ ${l}ms RTT`,Format:a.currentFormat$.getValue(),"Available Formats":t?.sources?Object.keys(t.sources).join(`, `):``,Streams:_.join(`, `),Quality:`${u} ${v??``} ${y}`,"Available qualities":a.availableQualities$.getValue().join(`, `),Audio:m,Position:`${Y(n.state.positionExact$)}s`,Buffer:`${S}s`,State:`${Y(n.playerPhase)} ${a.playbackState$.getValue()??``}`,"Player size":`${o}x${s}`,URL:window.location.href,Errors:p};return Hl.default(C).filter(([e,t])=>t!==void 0).map(([e,t])=>`${e}: ${t}`).join(`
52
+ `)},mu=(e,t,n)=>{let r=e.info,{width:i,height:a}=Y(n.ui.playerSize),o={version:su,viewport:`${i}x${a}`,volume:Math.round(Y(n.state.volume$)*100)};o.id=n.videoId,r.currentFormat$.getValue()&&(o.provider=r.currentFormat$.getValue()),r.hostname$.getValue()&&(o.cdn=r.hostname$.getValue());let s=r.intrinsicVideoSize$.getValue();s&&(o.videoSize=`${s.width}x${s.height}`);let c=r.currentBuffer$.getValue(),l=r.currentNativeBuffer$.getValue(),u=r.isLive$.getValue(),d=r.liveBufferTime$.getValue();c&&l&&(u&&d?(o.buffer=c.end-d,o.nativeBuffer=l.end-d):(o.buffer=Math.max(c.end-Y(n.state.positionExact$),0),o.nativeBuffer=Math.max(l.end-Y(n.state.positionExact$),0))),o.position=Y(n.state.positionExact$);let f=r.throughputEstimation$.getValue();f&&(o.speed=f);let p=r.videoBitrate$.getValue();p&&(o.bitrate=p);let m=r.liveLatency$.getValue();m&&(o.liveLatency=m);let h=r.currentVideoSegmentLength$.getValue();h&&(o.currentVideoSegmentLength=h);let g=r.currentAudioSegmentLength$.getValue();g&&(o.currentAudioSegmentLength=g);let _=Y(n.vsid);typeof _==`string`&&(o.vsid=_);let v=e.info.currentVideoStream$.getValue()?.codec;v&&(o.videoCodec=v);let y=e.info.currentAudioStream$.getValue()?.codec;y&&(o.audioCodec=y),e.info.currentVideoStream$.getValue()?.hdr&&(o.hdr=!0);let b=e.info.currentAudioStream$.getValue()?.language;return b&&(o.audioLanguage=b),o},hu=(e,t)=>cu(e,t,`mp4`),gu=()=>{let e=[],t=0;return{add:(n,r)=>{e[t]=[n,r],t=(t+1)%10},find:t=>e.find(([e])=>e===t)}};class _u{constructor(){e(this,`destroyController`,new nu),e(this,`pendingDownloads`,new Set)}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=await tu(e,{signal:this.destroyController.signal});if(t.ok)return await t.text();throw t}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}}_(tt(),1),_(at(),1),_(zt(),1);var vu=require(`@vkontakte/videoplayer-shared/es2018`),yu=`vk_player_`,bu=`vk_player_prefer_traffic_saving_enabled`,xu=`vk_player_preferred_volume`,Su=`vk_player_prefer_volume_mute`,Cu=`vk_player_preferred_quality`,wu=`vk_player_preferred_default_quality_settings`,Tu=`vk_player_preferred_quality_settings_by_video`,Eu=`vk_player_preferred_stream_language`,Du=`vk_player_preferred_rate`,Ou=`vk_player_preferred_subtitles_language`,ku=`vk_player_user_video_prefs`;`${yu}`;var Au=e=>e>1?1:e<0?0:e,ju=()=>{let e=vu.safeStorage.get(xu);return vu.isNullable(e)?void 0:Au(parseFloat(e))},Mu=(e,t)=>vu.safeStorage.set(Cu,JSON.stringify({videoId:e,value:t})),Nu=()=>vu.safeStorage.remove(Cu),Pu=e=>{let t=vu.safeStorage.get(Cu);if(vu.isNullable(t))return;let{videoId:n,value:r}=JSON.parse(t);if(e!==n){Nu();return}return r},Fu=(e,t)=>{t?vu.safeStorage.set(e,`true`):vu.safeStorage.remove(e)},Iu=e=>vu.safeStorage.get(e)===`true`,Lu=()=>Iu(Su),Ru=e=>Fu(bu,e),zu=()=>Iu(bu),Bu=()=>vu.safeStorage.get(Eu),Vu=e=>vu.safeStorage.set(Eu,e),Hu=()=>vu.safeStorage.get(Ou),Uu=e=>{e?vu.safeStorage.set(Ou,e):vu.safeStorage.remove(Ou)},Wu=e=>vu.safeStorage.set(Du,JSON.stringify({rate:e})),Gu=()=>{let e=vu.safeStorage.get(Du);if(vu.isNullable(e))return;let{rate:t}=JSON.parse(e);return t},Ku=(()=>{let e=e=>{vu.safeStorage.set(wu,JSON.stringify(e))},t=()=>{try{let e=vu.safeStorage.get(wu);return e?JSON.parse(e):null}catch{return null}},n=()=>{try{let e=vu.safeStorage.get(Tu);return e?JSON.parse(e):null}catch{return null}},r=e=>{vu.safeStorage.set(Tu,JSON.stringify(e))},i=r=>{l(r);let i=r?n():null;if(i&&i?.videoId===r)return{...i,appliesTo:`to-video`};i&&a();let o=t();return o?{...o,appliesTo:`as-default`}:(e({type:`auto_quality`}),{type:`auto_quality`,appliesTo:`as-default`})},a=()=>{vu.safeStorage.remove(Tu)},o=()=>{vu.safeStorage.remove(wu)},s=(t,n=`as-default`)=>{t.type===`exact_quality`||n===`to-video`?r(t):e(t)},c=e=>{let t=i(e);if(t){switch(t.type){case`traffic_saving`:Ru(!0);break;case`exact_quality`:Mu(e,t.quality)}a(),o()}},l=t=>{let n=Pu(t);if(n){r({type:`exact_quality`,videoId:t,quality:n});return}zu()&&e({type:`traffic_saving`,videoId:t}),Ru(!1),Nu()};return{getPreferredQualitySettings:i,migrateSettingsToLegacyWay:c,savePreferredQualitySettings:s,savePreferredDefaultQualitySettings:e,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:t,getPreferredSubtitlesLanguage:Hu,savePreferredSubtitlesLanguage:Uu}})();Ku.getPreferredQualitySettings;var qu=Ku.migrateSettingsToLegacyWay;Ku.savePreferredQualitySettings,Ku.savePreferredDefaultQualitySettings,Ku.removePreferredQualitySettingsByVideo,Ku.getPreferredDefaultQualitySettings;var Ju=()=>{let e=vu.safeStorage.get(ku);if(e)try{return JSON.parse(e)}catch{return null}return null},Yu=(e,t)=>{var n;let r=Ju();return(r==null||(n=r[e])==null?void 0:n[t])??null};class Xu{constructor(t){e(this,`value`,void 0),e(this,`next`,void 0),this.value=t,this.next=null}}class Zu{constructor(t){e(this,`top`,void 0),e(this,`bottom`,void 0),e(this,`size`,void 0),e(this,`maxSize`,void 0),this.top=null,this.bottom=null,this.size=0,this.maxSize=t}push(e){let t=new Xu(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}}var Qu=K(`<div class="container s-8"><canvas class="s-8"></canvas></div>`),$u={hash:`s-8`,code:`.container.s-8 {display:inline-block;width:120px;height:16px;}canvas.s-8 {transform:scale(1, -1);margin-top:2px;}`};function ed(e,t){Gi(t,!0),Gc(e,$u);let n=X(t,`values`,19,()=>[]),r=Io(void 0),i=Io(null);Rc(()=>{G(r).width=120,G(r).height=16,Ro(i,G(r).getContext(`2d`),!0)});function a(e,t,n,r,i){i===0&&(i=1),e.fillStyle=`#fff`,e.fillRect(t,n,r,i)}ms(()=>{let e=``;if(G(i)){let t=n()[0];for(let e=1;e<n().length;e++)n()[e]>t&&(t=n()[e]);G(i).clearRect(0,0,120,16);let r=59;for(let o=n().length-1;o>=0;o--){let s=r*2,c=t>0?16*(n()[o]/t):0;a(G(i),s,0,2,c),e=c+` `+e,r--}}});var o=Qu();vl(V(o),e=>Ro(r,e),()=>G(r)),z(o),q(e,o),Ki()}var td=require(`@vkontakte/videoplayer-shared/es2018`),nd=_(at(),1),rd=_(Xt(),1),id=require(`@vkontakte/videoplayer-shared/es2018`),ad={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:`Качество по умолчанию можно\xA0{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:`Видео грузится слишком медленно,
53
+ качество изменено на\xA0«Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
54
+ попробуйте изменить качество на «Авто»`,double_forward_label:`2x`,preview_track_notification_text:`Потяните вверх для точной перемотки`,preview_track_close_tooltip:`Выйти из режима точной перемотки`},od={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\xA0at\xA0lower quality`,quality_applience:`You can\xA0{action} the\xA0default quality`,quality_applience_action:`change`,default_quality_for_any_video:`Quality for\xA0all 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,
55
+ so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
56
+ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:`2x`,preview_track_notification_text:`pull up to open precise rewind`,preview_track_close_tooltip:`dismiss precise rewind`},sd=new Map;sd.set(id.InterfaceLanguage.EN,od),sd.set(id.InterfaceLanguage.RU,ad);var cd=new Map,ld=({language:e,pack:t,fallback:n})=>{if(sd.has(e)){let n=sd.get(e);sd.set(e,{...n,...t})}else sd.set(e,t);cd.set(e,n)},ud=e=>sd.has(e),dd=(e,t,n,r)=>{let i=sd.get(e)?.[t];if(id.isNullable(i)){let n=cd.get(e)??r;i=(n?sd.get(n):void 0)?.[t]}return id.isNullable(i)?t+nd.default(n??{}).join(` `):n?rd.default(i,/{(\w+?)}/g,(e,t)=>n[t]??``):i},fd=(e,t)=>{let{interfaceLanguage$:n}=du();return dd(Y(n),e,t,Rl().defaultLanguage)},pd=K(`<div class="s-5"><div class="s-5">Video id</div> <span> </span></div>`),md=K(`<div class="s-5"><div class="s-5">VSID</div> <span> </span></div>`),hd=K(`<div class="s-5"><div class="s-5">Provider</div> <span> </span></div>`),gd=K(`<div class="s-5"><div class="s-5">Streams</div> <span> </span></div>`),_d=K(`<div class="s-5"><div class="s-5">Viewport</div> <span> </span></div>`),vd=K(`<div class="s-5"><div class="s-5">Video size</div> <span> </span></div>`),yd=K(`<div class="s-5"><div class="s-5">CDN host</div> <span> </span></div>`),bd=K(`<div class="s-5"><div class="s-5">Volume</div> <span> </span></div>`),xd=K(`<div class="s-5"><div class="s-5">Position</div> <span> </span></div>`),Sd=K(`<div class="s-5"><div class="s-5">Buffer</div> <span> </span></div>`),Cd=K(`<div class="s-5"><div class="s-5">Nbuffer</div> <span> </span></div>`),wd=K(`<div class="s-5"><div class="s-5">Live latency</div> <span> </span></div>`),Td=K(`<div class="s-5"><div class="s-5">Segment</div> <span> </span></div>`),Ed=K(`<div class="s-5"><div class="s-5">Network</div> <!> <span> </span></div>`),Dd=K(`<div class="s-5"><div class="s-5">V bitrate</div> <!> <span> </span></div>`),Od=K(`<div class="container s-5" role="region"><button class="close s-5" title="закрыть">[x]</button> <div class="content s-5"><div class="s-5"><div class="s-5">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-5"><div class="s-5">Dropped</div> <span> </span></div> <!> <!> <div class="s-5"><div class="s-5">FPS</div> <!> <span> </span></div></div></div>`),kd={hash:`s-5`,code:`.container.s-5 {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}button.close.s-5 {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.s-5 {padding:5px;}.content.s-5 > div:where(.s-5) > div:where(.s-5) {display:inline-block;text-align:right;width:60px;padding:0 5px;}`};function Ad(e,t){Gi(t,!0),Gc(e,kd);let n=du(),r=n.ui.debugPanelVisible,i=e=>{e.stopPropagation(),td.safeStorage.remove(zl),r.set(!1)},a=Io(Wo(n.actions.internal.getDebugPanelData())),o=n.actions.internal.getVideoElement(),s=Io(0),c=Io(0),l=Io(0),u=new Zu(60),d=new Zu(60),f=new Zu(60),p=Io(Wo([])),m=Io(Wo([])),h=Io(Wo([])),g=fd(`aria_label_debug_panel`);Rc(()=>{td.safeStorage.set(zl,`true`),o&&(Ro(c,o.getVideoPlaybackQuality().droppedVideoFrames,!0),Ro(s,o.getVideoPlaybackQuality().totalVideoFrames,!0));let e=window.setInterval(()=>{Ro(a,n.actions.internal.getDebugPanelData(),!0)},500),t;return o&&(t=window.setInterval(()=>{if(o){Ro(c,o.getVideoPlaybackQuality().droppedVideoFrames,!0);let e=o.getVideoPlaybackQuality().totalVideoFrames;Ro(l,e-G(s)),Ro(s,e,!0),u.push(G(l)),G(a).speed&&d.push(G(a).speed),G(a).bitrate&&f.push(G(a).bitrate),Ro(p,u.getValuesFromBottom(),!0),Ro(m,d.getValuesFromBottom(),!0),Ro(h,f.getValuesFromBottom(),!0)}},1e3)),()=>{clearInterval(e),t&&clearInterval(t)}});var _=Od(),v=V(_),y=H(v,2),b=V(y),x=H(V(b),2),S=V(x,!0);z(x),z(b);var C=H(b,2),w=e=>{var t=pd(),n=H(V(t),2),r=V(n,!0);z(n),z(t),bs(()=>Cc(r,G(a).id)),q(e,t)};Hc(C,e=>{G(a).id&&e(w)});var T=H(C,2),E=e=>{var t=md(),n=H(V(t),2),r=V(n,!0);z(n),z(t),bs(()=>Cc(r,G(a).vsid)),q(e,t)};Hc(T,e=>{G(a).vsid&&e(E)});var D=H(T,2),O=e=>{var t=hd(),n=H(V(t),2),r=V(n,!0);z(n),z(t),bs(()=>Cc(r,G(a).provider)),q(e,t)};Hc(D,e=>{G(a).provider&&e(O)});var k=H(D,2),A=e=>{var t=gd(),n=H(V(t),2),r=V(n);z(n),z(t),bs(()=>Cc(r,`Video: ${(G(a).videoCodec||``)??``} ${G(a).hdr?`(HDR)`:``}
51
57
  &
52
- Audio: ${(X=D(r).audioCodec||"")!=null?X:""} ${D(r).audioLanguage?`(${D(r).audioLanguage})`:""}`)}),ee(Y,ie)};ke(g,Y=>{(D(r).videoCodec||D(r).audioCodec)&&Y(j)})}var F=ne(g,2);{var O=Y=>{var ie=Qp(),pe=ne(B(ie),2),De=B(pe,!0);H(pe),H(ie),ye(()=>Ne(De,D(r).viewport)),ee(Y,ie)};ke(F,Y=>{D(r).viewport&&Y(O)})}var P=ne(F,2);{var z=Y=>{var ie=Yp(),pe=ne(B(ie),2),De=B(pe,!0);H(pe),H(ie),ye(()=>Ne(De,D(r).videoSize)),ee(Y,ie)};ke(P,Y=>{D(r).videoSize&&Y(z)})}var W=ne(P,2);{var ae=Y=>{var ie=Wp(),pe=ne(B(ie),2),De=B(pe,!0);H(pe),H(ie),ye(()=>Ne(De,D(r).cdn)),ee(Y,ie)};ke(W,Y=>{D(r).cdn&&Y(ae)})}var J=ne(W,2);{var ce=Y=>{var ie=Gp(),pe=ne(B(ie),2),De=B(pe);H(pe),H(ie),ye(()=>{var w;return Ne(De,`${(w=D(r).volume)!=null?w:""} %`)}),ee(Y,ie)};ke(J,Y=>{D(r).volume&&Y(ce)})}var G=ne(J,2);{var we=Y=>{var ie=qp(),pe=ne(B(ie),2),De=B(pe);H(pe),H(ie),ye(w=>Ne(De,`${w!=null?w:""} s`),[()=>D(r).position.toFixed(2)]),ee(Y,ie)};ke(G,Y=>{D(r).position&&Y(we)})}var Z=ne(G,2);{var He=Y=>{var ie=Kp(),pe=ne(B(ie),2),De=B(pe);H(pe),H(ie),ye(w=>Ne(De,`${w!=null?w:""} s`),[()=>D(r).buffer.toFixed(2)]),ee(Y,ie)};ke(Z,Y=>{D(r).buffer&&Y(He)})}var oe=ne(Z,2);{var _e=Y=>{var ie=Zp(),pe=ne(B(ie),2),De=B(pe);H(pe),H(ie),ye(w=>Ne(De,`${w!=null?w:""} s`),[()=>D(r).nativeBuffer.toFixed(2)]),ee(Y,ie)};ke(oe,Y=>{D(r).nativeBuffer&&Y(_e)})}var V=ne(oe,2);{var Me=Y=>{var ie=Jp(),pe=ne(B(ie),2),De=B(pe);H(pe),H(ie),ye(w=>Ne(De,`${w!=null?w:""} s`),[()=>D(r).liveLatency.toFixed(2)]),ee(Y,ie)};ke(V,Y=>{D(r).liveLatency&&Y(Me)})}var he=ne(V,2);{var xe=Y=>{var ie=Xp(),pe=ne(B(ie),2),De=B(pe,!0);H(pe),H(ie),ye(w=>Ne(De,w),[()=>[{value:D(r).currentVideoSegmentLength,title:"Video:"},{value:D(r).currentAudioSegmentLength,title:"Audio:"}].filter(({value:w})=>w).map(({value:w,title:X})=>`${X} ${((w!=null?w:0)/1e3).toFixed(2)} s`).join(" & ")]),ee(Y,ie)};ke(he,Y=>{(D(r).currentVideoSegmentLength||D(r).currentAudioSegmentLength)&&Y(xe)})}var Be=ne(he,2),Le=ne(B(Be),2),je=B(Le);H(Le),H(Be);var T=ne(Be,2);{var k=Y=>{var ie=ef(),pe=ne(B(ie),2);fr(pe,{get values(){return D(m)}});var De=ne(pe,2),w=B(De);H(De),H(ie),ye(X=>Ne(w,`${X!=null?X:""} Kbps`),[()=>D(r).speed.toFixed(2)]),ee(Y,ie)};ke(T,Y=>{D(r).speed&&Y(k)})}var U=ne(T,2);{var q=Y=>{var ie=tf(),pe=ne(B(ie),2);fr(pe,{get values(){return D(h)}});var De=ne(pe,2),w=B(De);H(De),H(ie),ye(X=>Ne(w,`${X!=null?X:""} Kbps`),[()=>D(r).bitrate.toFixed(2)]),ee(Y,ie)};ke(U,Y=>{D(r).bitrate&&Y(q)})}var le=ne(U,2),ge=ne(B(le),2);fr(ge,{get values(){return D(u)}});var ze=ne(ge,2),Qe=B(ze,!0);H(ze),H(le),H(I),H(y),ye(()=>{var Y,ie;et(y,"aria-label",_),Ne(x,D(r).version),Ne(je,`${(Y=D(a))!=null?Y:""} / ${(ie=D(s))!=null?ie:""} frames`),Ne(Qe,D(c))}),ee(e,y),Ie()}Gt(["click"]);var of=ue('<div><div class="video-container s-5"></div></div>'),af={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 ja(e,t){Se(t,!0),Oe(e,af);let[i,n]=oi(),r=()=>it(s,"$playerPhase",i),o=nt(t,"videoContainer",15),{playerPhase:s}=Vt();var a=of();let c;var v=B(a);ni(v,p=>o(p),()=>o()),H(a),ye(p=>c=gi(a,1,"video-wrapper s-5",null,c,p),[()=>({hidden:r()!=="video"})]),ee(e,a),Ie(),n()}var hi=e=>`width:${e}rem;height:${e}rem;`;var sf=(e,t)=>{var i;e.preventDefault(),e.stopPropagation(),(i=t.onclick)==null||i.call(t)},lf=ue("<button><!></button>"),df={hash:"s-c",code:".button.s-c{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-c:focus{background:#fff;color:#000;outline:0}.button.s-c:hover:not(:focus){background-color:#76787a}"};function Cn(e,t){Se(t,!0),Oe(e,df);let i=nt(t,"ref",15),n=Re(()=>hi(Number(t.size||"14")*2));var r=lf();r.__click=[sf,t];var o=B(r);Tn(o,()=>t.children),H(r),ni(r,s=>i(s),()=>i()),ye(()=>{gi(r,1,ki(["button",t.class]),"s-c"),at(r,D(n)),et(r,"data-row",t.row),et(r,"data-col",t.col),et(r,"data-layer",t.layer)}),ee(e,r),Ie()}Gt(["click"]);var za=require("@vkontakte/videoplayer-statistics/es2018");var uf=ue("<div> </div>"),cf={hash:"s-h",code:".video-time.s-h{color:#fff;line-height:125%}"};function co(e,t){Oe(e,cf);let i=10,n=Re(()=>t.current+(t.duration?` / ${t.duration}`:"")),r=Re(()=>`font-size: ${t.size||i}rem`);var o=uf(),s=B(o,!0);H(o),ye(()=>{at(o,D(r)),gi(o,1,ki(["video-time",t.class]),"s-h"),Ne(s,D(n))}),ee(e,o)}var po=e=>{if(e<0)return"";let t=Math.round(e),i=Math.floor(t/3600),n=t%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 pf=(e,t,i,n,r)=>{e.preventDefault(),e.stopPropagation(),t(i()*e.offsetX/r().offsetWidth,za.SeekAction.SLIDER)},ff=ue('<div class="pointer-time-wrapper s-e"><!></div>'),mf=ue('<div><div class="time-wrapper s-e"><!></div> <div class="current-progress s-e"></div> <div class="pointer s-e"><!></div></div>'),vf={hash:"s-e",code:".progress-bar.s-e{background:hsla(0,0%,100%,.15);border-radius:2rem;font-size:inherit;height:4rem;position:relative;width:100%}.current-progress.s-e{background-color:#fff;border-radius:inherit;height:100%;left:0;position:absolute;top:0}.pointer.s-e{background:#fff;border-radius:50%;display:none;height:7rem;position:absolute;top:50%;transform:translate(-50%,-50%);width:7rem}.time-wrapper.s-e{position:absolute;right:0;top:0;transform:translateY(calc(-100% - 20rem))}.pointer-time-wrapper.s-e{bottom:0;left:50%;position:absolute;transform:translate(-50%,calc(100% + 5rem))}.progress-bar.s-e:focus{outline:0}.progress-bar.s-e:focus .pointer:where(.s-e){display:block}.button.s-e:hover:not(:focus){background-color:#76787a}"};function Ua(e,t){Se(t,!0),Oe(e,vf);let[i,n]=oi(),r=()=>it(h,"$duration$",i),o=()=>it(N,"$positionPercent$",i),s=()=>it(m,"$positionExact$",i),a=0,c=1,v=10,{actions:{internal:{seekTime:p,pause:l,play:u}},state:{positionExact$:m,duration$:h}}=Vt(),_=v/r(),y=nt(t,"ref",15),C=Pe(kt(NaN)),I=Re(()=>isFinite(D(C))),N=tt([m,h],([ae,J])=>J>0?ae/J:0),b=()=>{D(I)||(fe(C,o(),!0),l())},x=ae=>{switch(ae.key){case"ArrowLeft":ae.stopPropagation(),b(),fe(C,Math.max(a,D(C)-_),!0);break;case"ArrowRight":ae.stopPropagation(),b(),fe(C,Math.min(c,D(C)+_),!0);break;case"Enter":ae.preventDefault(),p(Ee(h)*D(C),za.SeekAction.SLIDER),u(),fe(C,NaN,!0);break;case"Escape":D(I)&&(ae.stopPropagation(),u(),fe(C,NaN,!0));break}},A=Re(()=>Number(D(I)?D(C):o())),S=Re(()=>`width: ${D(A)*100}%`),$=Re(()=>`left: ${D(A)*100}%`),L=Re(()=>po(s())),E=Re(()=>po(r())),M=Re(()=>D(I)?po(D(C)*r()):0);var g=mf();et(g,"tabindex",0),g.__keydown=x,g.__click=[pf,p,r,h,y];var j=B(g),F=B(j);co(F,{get size(){return"10"},get current(){return D(L)},get duration(){return D(E)}}),H(j);var O=ne(j,2),P=ne(O,2),z=B(P);{var W=ae=>{var J=ff(),ce=B(J);co(ce,{get size(){return"8"},get current(){return D(M)}}),H(J),ee(ae,J)};ke(z,ae=>{D(M)&&ae(W)})}H(P),H(g),ni(g,ae=>y(ae),()=>y()),ye(()=>{gi(g,1,ki(["progress-bar",t.class]),"s-e"),et(g,"data-row",t.row),et(g,"data-col",t.col),et(g,"data-layer",t.layer),at(O,D(S)),at(P,D($))}),ee(e,g),Ie(),n()}Gt(["keydown","click"]);var gf=Rt('<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 Fa(e,t){Se(t,!0);let i=Re(()=>hi(t.size));ai(e,{width:"48",height:"48",fill:"currentColor",get style(){return D(i)},testId:"play-icon",get shadow(){return t.shadow},children:(n,r)=>{var o=gf();ee(n,o)},$$slots:{default:!0}}),Ie()}var qd=require("@vkontakte/videoplayer-core/es2018");var hf=Rt('<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 Ha(e,t){Se(t,!0);let i=Re(()=>hi(t.size));ai(e,{width:"48",height:"48",fill:"currentColor",get style(){return D(i)},testId:"pause-icon",get shadow(){return t.shadow},children:(n,r)=>{var o=hf();ee(n,o)},$$slots:{default:!0}}),Ie()}var _f=Rt('<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 Ba(e,t){Se(t,!0);let i=Re(()=>hi(t.size));ai(e,{width:"36",height:"36",viewBox:"0 0 36 36",fill:"currentColor",get style(){return D(i)},testId:"settings-icon",get shadow(){return t.shadow},children:(n,r)=>{var o=_f();ee(n,o)},$$slots:{default:!0}}),Ie()}var yf=ue('<div class="wrapper s-4"><div class="container s-4"><div class="top-buttons"></div> <div class="filler s-4"></div> <div class="video-title s-4"> </div> <!> <div class="bottom-buttons s-4"><div class="play-pause-button-container"><!></div> <div class="settings-button-container s-4"><!></div></div></div></div>'),bf={hash:"s-4",code:".wrapper.s-4{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-4{box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:10rem 48rem 0}.filler.s-4{flex-grow:1}.video-title.s-4{color:#fff;font-size:14rem;line-height:18rem;margin-bottom:20rem;max-width:320rem}.bottom-buttons.s-4{align-items:center;display:flex;justify-content:center;margin:20rem 0;position:relative;width:100%}.settings-button-container.s-4{position:absolute;right:0;top:50%;transform:translateY(-50%)}"};function Qa(e,t){Se(t,!0),Oe(e,bf);let[i,n]=oi(),r=()=>it(a,"$playbackState$",i),{actions:{internal:{togglePlay:o,setSettingsVisibility:s}},state:{playbackState$:a},video:{title:c}}=Vt(),v=Re(()=>r()===qd.PlaybackState.PLAYING),p=Pe(void 0);Wt(()=>{var A;(A=D(p))==null||A.focus()});let l=()=>{s(!0)};var u=yf(),m=B(u),h=ne(B(m),4),_=B(h,!0);H(h);var y=ne(h,2);Ua(y,{row:2,col:1,layer:"controls"});var C=ne(y,2),I=B(C),N=B(I);Cn(N,{get size(){return"20"},get onclick(){return o},row:3,col:1,layer:"controls",get ref(){return D(p)},set ref(A){fe(p,A,!0)},children:(A,S)=>{var $=sn(),L=Xt($);{var E=g=>{Ha(g,{get size(){return"20"}})},M=g=>{Fa(g,{get size(){return"20"}})};ke(L,g=>{D(v)?g(E):g(M,!1)})}ee(A,$)},$$slots:{default:!0}}),H(I);var b=ne(I,2),x=B(b);Cn(x,{get size(){return"14"},onclick:l,row:3,col:2,layer:"controls",children:(A,S)=>{Ba(A,{get size(){return"14"}})},$$slots:{default:!0}}),H(b),H(C),H(m),H(u),ye(()=>Ne(_,c)),ee(e,u),Ie(),n()}var xf=(e,t,i)=>{switch(e.key){case"ArrowUp":fe(t,Math.max(D(t)-1,0),!0),e.stopPropagation();break;case"ArrowDown":fe(t,Math.min(D(t)+1,i.items.length-1),!0),e.stopPropagation();break;case"Enter":if(e.stopPropagation(),i.items[D(t)].disabled)return;i.onAction(D(t));break}},Af=ue('<button class="s-f"><!></button>'),Ef=ue('<div class="list s-f"></div>'),wf={hash:"s-f",code:".list.s-f{display:flex;flex-direction:column;gap:4rem}.list.s-f:focus{outline:0}.list.s-f button:where(.s-f){background:none;border:none;color:inherit}"};function Ya(e,t){Se(t,!0),Oe(e,wf);let i=nt(t,"ref",15),n=Pe(0);wi(()=>{fe(n,t.items.findIndex(s=>s.isSelected),!0)});let r=s=>{fe(n,s,!0),!t.items[s].disabled&&t.onAction(s)};var o=Ef();et(o,"tabindex",0),o.__keydown=[xf,n,t],aa(o,23,()=>t.items,s=>s.id,(s,a,c)=>{var v=Af();v.__click=()=>r(D(c));var p=B(v);sa(p,t,"default",{get item(){return D(a)},get focused(){return D(c)===D(n)}},null),H(v),ye(()=>v.disabled=D(a).disabled),ee(s,v)}),H(o),ni(o,s=>i(s),()=>i()),ye(()=>{et(o,"data-row",t.row),et(o,"data-col",t.col),et(o,"data-layer",t.layer)}),ee(e,o),Ie()}Gt(["keydown","click"]);var Mf=Rt('<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 Wa(e,t){Se(t,!0);let i=Re(()=>hi(t.size));ai(e,{width:"39",height:"36",viewBox:"0 0 39 36",fill:"currentColor",get style(){return D(i)},testId:"back-icon",get shadow(){return t.shadow},children:(n,r)=>{var o=Mf();ee(n,o)},$$slots:{default:!0}}),Ie()}var Tf=ue("<div> <!></div>"),Sf={hash:"s-g",code:".quality-list-item.s-g{align-items:center;border-radius:6rem;box-sizing:border-box;color:var(--vkui--color_text_subhead);display:flex;font-size:10rem;font-weight:500;justify-content:space-between;line-height:12rem;padding:6rem;width:100%}.quality-list-item.s-g:hover{background-color:#76787a;color:#e1e3e6}.quality-list-item.selected.s-g{background:var(--vkui--color_background_contrast_secondary_alpha);color:var(--vkui--color_text_subhead)}:focus .quality-list-item.focused.s-g{background-color:#fff;color:#000}.quality-list-item.disabled.s-g{opacity:.5}"};function Ga(e,t){Se(t,!0),Oe(e,Sf);var i=Tf(),n=B(i),r=ne(n);{var o=s=>{Wa(s,{get size(){return"7"}})};ke(r,s=>{t.data.isSelected&&s(o)})}H(i),ye(()=>{var s;gi(i,1,ki(["quality-list-item",t.data.isSelected?"selected":"",t.data.isFocused?"focused":"",t.data.disabled&&"disabled"]),"s-g"),Ne(n,`${(s=t.data.text)!=null?s:""} `)}),ee(e,i),Ie()}var If=Rt('<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 qa(e,t){Se(t,!0);let i=Re(()=>hi(t.size));ai(e,{width:"42",height:"42",viewBox:"0 0 42 42",fill:"currentColor",get style(){return D(i)},testId:"back-icon",get shadow(){return t.shadow},children:(n,r)=>{var o=If();ee(n,o)},$$slots:{default:!0}}),Ie()}var Kd=require("@vkontakte/videoplayer-shared/es2018"),Nf=ue('<div class="settings-layer s-9"><div class="settings-menu s-9"><div class="settings-title s-9">Качество</div> <div class="menu-list"><div class="close-button-container s-9"><!></div> <!></div></div></div>'),Df={hash:"s-9",code:".settings-layer.s-9{bottom:0;left:0}.settings-layer.s-9,.settings-menu.s-9{position:absolute;right:0;top:0}.settings-menu.s-9{background:#000;box-sizing:border-box;height:100%;padding:10rem;width:163rem}.settings-title.s-9{color:#fff;font-size:12rem;line-height:116%;margin-bottom:12rem;margin-left:8rem;margin-top:5rem}.close-button-container.s-9{left:0;position:absolute;top:15rem;transform:translateX(calc(-100% - 7rem))}"};function Ka(e,t){Se(t,!0),Oe(e,Df);let[i,n]=oi(),r=()=>it(c,"$availableQualities$",i),o=()=>it(v,"$currentQuality$",i),{actions:{internal:{setSettingsVisibility:s,setQuality:a}},state:{availableQualities$:c,currentQuality$:v},deviceCapabilities:p}=Vt(),l=Pe(void 0),u=Re(()=>r().map(x=>{let{value:A,displayValue:S,selected:$}=x,L={id:A,text:S,isSelected:$,disabled:A!=="auto"&&A!==Kd.VideoQuality.INVARIANT&&!p.isCodecSupported(A)};return $&&A==="auto"&&(L.text=`${S} (${o()})`),L}));Wt(()=>{var x;(x=D(l))==null||x.focus()});let m=()=>{s(!1)},h=x=>{let A=D(u)[x];a(A.id)};var _=Nf(),y=B(_),C=ne(B(y),2),I=B(C),N=B(I);Cn(N,{get size(){return"14"},onclick:m,row:1,col:1,layer:"settings",children:(x,A)=>{qa(x,{get size(){return"14"}})},$$slots:{default:!0}}),H(I);var b=ne(I,2);Ya(b,{row:1,col:2,layer:"settings",get items(){return D(u)},onAction:h,get ref(){return D(l)},set ref(x){fe(l,x,!0)},children:Mr,$$slots:{default:(x,A)=>{let S=Re(()=>A.item),$=Re(()=>A.focused),L=Re(()=>({...D(S),isFocused:D($)}));Ga(x,{get data(){return D(L)}})}}}),H(C),H(y),H(_),ee(e,_),Ie(),n()}var Cf=ue('<div class="container s-a"><div class="dot s-a"></div> <div class="dot s-a"></div> <div class="dot s-a"></div></div>'),kf={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 mr(e,t){Oe(e,kf);let i=nt(t,"style",3,"");var n=Cf();ye(()=>at(n,i())),ee(e,n)}var Lf=ue('<div class="container s-6"><!></div>'),$f={hash:"s-6",code:".container.s-6{bottom:0;color:green;font-size:33px;left:0;position:absolute;right:0;top:0}"};function Za(e){Oe(e,$f);var t=Lf(),i=B(t);mr(i,{}),H(t),ee(e,t)}var fo=require("@vkontakte/videoplayer-shared/es2018"),Of=ue('<div class="timer__cell cell s-b"><span class="cell__value s-b"> </span> <span class="cell__unit s-b"> </span></div> <span class="timer__points s-b"> </span>',1),Pf=ue('<div class="timer__cell cell s-b"><span class="cell__value s-b"> </span> <span class="cell__unit s-b"> </span></div> <span class="timer__points s-b"> </span>',1),Rf=ue('<div class="timer__cell cell s-b"><span class="cell__value s-b"> </span> <span class="cell__unit s-b"> </span></div> <span class="timer__points s-b"> </span>',1),Vf=ue('<div class="timer__cell cell s-b"><span class="cell__value s-b"> </span> <span class="cell__unit s-b"> </span></div>'),jf=ue('<div class="timer__container s-b"><!> <!> <!> <!></div>'),zf={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 Ja(e,t){Se(t,!0),Oe(e,zf);let i=Pe(""),n=Pe(""),r=Pe(""),o=Pe(""),s,a=32,c=a/2,v=S=>String(S).padStart(2,"0"),p=S=>Math.max(S.length,1),l=S=>`${(t.isSmallSize?c:a)*p(S)}px`,u=S=>{let $=Math.floor(S/86400);$&&(S-=$*86400,fe(i,v($),!0));let L=Math.floor(S/3600);fe(n,v(L),!0);let E=Math.floor(S/60)%60;fe(r,v(E),!0);let M=S%60;fe(o,v(M),!0)},m=()=>{let S=Math.floor(Date.now()/1e3),$=t.startTime-S;u($),$>=1?s=(0,fo.getWindow)().requestAnimationFrame(m):t.onTimerOver()};wi(()=>{s=(0,fo.getWindow)().requestAnimationFrame(m)}),nd(()=>{(0,fo.getWindow)().cancelAnimationFrame(s)});var h=jf(),_=B(h);{var y=S=>{var $=Of(),L=Xt($);let E;var M=B(L),g=B(M,!0);H(M);var j=ne(M,2),F=B(j,!0);H(j),H(L);var O=ne(L,2),P=B(O,!0);H(O),ye((z,W,ae)=>{E=at(L,"",E,{width:z}),Ne(g,D(i)),Ne(F,W),Ne(P,ae)},[()=>l(D(i)),()=>jt("waiting_live_day_value"),()=>jt("waiting_live_colon")]),ee(S,$)};ke(_,S=>{D(i)&&S(y)})}var C=ne(_,2);{var I=S=>{var $=Pf(),L=Xt($);let E;var M=B(L),g=B(M,!0);H(M);var j=ne(M,2),F=B(j,!0);H(j),H(L);var O=ne(L,2),P=B(O,!0);H(O),ye((z,W,ae)=>{E=at(L,"",E,{width:z}),Ne(g,D(n)),Ne(F,W),Ne(P,ae)},[()=>l(D(n)),()=>jt("waiting_live_hour_value"),()=>jt("waiting_live_colon")]),ee(S,$)};ke(C,S=>{D(n)&&S(I)})}var N=ne(C,2);{var b=S=>{var $=Rf(),L=Xt($);let E;var M=B(L),g=B(M,!0);H(M);var j=ne(M,2),F=B(j,!0);H(j),H(L);var O=ne(L,2),P=B(O,!0);H(O),ye((z,W,ae)=>{E=at(L,"",E,{width:z}),Ne(g,D(r)),Ne(F,W),Ne(P,ae)},[()=>l(D(r)),()=>jt("waiting_live_minute_value"),()=>jt("waiting_live_colon")]),ee(S,$)};ke(N,S=>{D(r)&&S(b)})}var x=ne(N,2);{var A=S=>{var $=Vf();let L;var E=B($),M=B(E,!0);H(E);var g=ne(E,2),j=B(g,!0);H(g),H($),ye((F,O)=>{L=at($,"",L,{width:F}),Ne(M,D(o)),Ne(j,O)},[()=>l(D(o)),()=>jt("waiting_live_second_value")]),ee(S,$)};ke(x,S=>{D(o)&&S(A)})}H(h),ee(e,h),Ie()}var Uf=ue('<div class="waiting s-8"><span class="waiting__title medium s-8"> </span></div>'),Ff=ue('<div class="upcoming-timer timer s-8"><span class="timer__title medium s-8"> </span> <!></div>'),Hf=ue('<div class="waiting-container s-8"><!></div>'),Bf={hash:"s-8",code:'.waiting-container.s-8{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;color:#fff;white-space:nowrap}.waiting-container.s-8,.waiting-container.s-8:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-8:before{backdrop-filter:blur(5em);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-8{align-items:center;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:2}.waiting__title.s-8{font-size:7em;font-weight:600;line-height:1.2}.upcoming-timer.s-8{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-8{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-8{display:inline-block;font-size:6.6666em;font-weight:600;line-height:1.2;margin-bottom:.7em;vertical-align:middle}.medium.s-8{font-size:6em}'};function Xa(e,t){Se(t,!0),Oe(e,Bf);let{video:{thumbUrl:i,live:n}}=Vt(),r=(n==null?void 0:n.startTime)||0,o=Re(()=>r<Math.floor(Date.now()/1e3));var s=Hf(),a=B(s);{var c=p=>{var l=Uf(),u=B(l),m=B(u,!0);H(u),H(l),ye(h=>Ne(m,h),[()=>jt("waiting_live_upcoming_title")]),ee(p,l)},v=p=>{var l=Ff(),u=B(l),m=B(u,!0);H(u);var h=ne(u,2);let _=Re(()=>r||0);Ja(h,{get startTime(){return D(_)},onTimerOver:()=>fe(o,!0)}),H(l),ye(y=>Ne(m,y),[()=>jt("waiting_live_timer_title")]),ee(p,l)};ke(a,p=>{D(o)?p(c):p(v,!1)})}H(s),ye(()=>at(s,`background-image: url(${i})`)),ee(e,s),Ie()}var Qf=ue('<div class="waiting-container s-7"><div class="waiting-caption s-7"><!> <p class="waiting-title s-7"> </p></div></div>'),Yf={hash:"s-7",code:'.waiting-container.s-7{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-7,.waiting-container.s-7:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-7:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-7{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-7{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function mo(e,t){Se(t,!0),Oe(e,Yf);let i=nt(t,"thumbUrl",3,""),n={recover:jt("waiting_live_recover_title"),record:jt("waiting_record_title")},r=Re(()=>n[t.kind]||"");var o=Qf();o.__contextmenu=function(...p){var l;(l=t.onContextMenu)==null||l.apply(this,p)},o.__click=function(...p){var l;(l=t.onClick)==null||l.apply(this,p)};var s=B(o),a=B(s);mr(a,{style:"position: static; transform: translate(0, 0)"});var c=ne(a,2),v=B(c,!0);H(c),H(s),H(o),ye(()=>{at(o,`background-image: url('${i()}')`),Ne(v,D(r))}),ee(e,o),Ie()}Gt(["contextmenu","click"]);var Wf=ue("<!> <!> <!> <!> <!> <!> <!> <!> <!>",1);function es(e,t){Se(t,!0);let[i,n]=oi(),r=()=>it(m,"$language$",i),o=()=>it(C,"$isShowLoader",i),s=()=>it(y,"$controlsVisible",i),a=()=>it(I,"$settingsVisible",i),c=()=>it(N,"$playerPhase",i),v=()=>it(h,"$crashed",i),p=()=>it(_,"$debugPanelVisible",i),l=nt(t,"videoContainer",15),u=Vt(),m=u.interfaceLanguage$,h=u.state.crashed$,_=u.ui.debugPanelVisible,{ui:{controlsVisible:y,isShowLoader:C,settingsVisible:I},playerPhase:N,video:{thumbUrl:b}}=u;var x=sn(),A=Xt(x);na(A,r,S=>{var $=Wf(),L=Xt($);ja(L,{get videoContainer(){return l()},set videoContainer(oe){l(oe)}});var E=ne(L,2);{var M=oe=>{Za(oe,{})};ke(E,oe=>{o()&&oe(M)})}var g=ne(E,2);{var j=oe=>{Qa(oe,{})};ke(g,oe=>{s()&&oe(j)})}var F=ne(g,2);{var O=oe=>{Ka(oe,{})};ke(F,oe=>{a()&&oe(O)})}var P=ne(F,2);{var z=oe=>{Xa(oe,{})};ke(P,oe=>{c()==="LiveWaitingStart"&&oe(z)})}var W=ne(P,2);{var ae=oe=>{mo(oe,{kind:"recover",get thumbUrl(){return b}})};ke(W,oe=>{c()==="LiveWaitingRecover"&&oe(ae)})}var J=ne(W,2);{var ce=oe=>{mo(oe,{kind:"record",get thumbUrl(){return b}})};ke(J,oe=>{c()==="LiveWaitingRecord"&&oe(ce)})}var G=ne(J,2);{var we=oe=>{ur(oe,{})};ke(G,oe=>{v()&&oe(we)})}var Z=ne(G,2);{var He=oe=>{Va(oe,{})};ke(Z,oe=>{p()&&oe(He)})}ee(S,$)}),ee(e,x),Ie(),n()}var vo=require("@vkontakte/videoplayer-shared/es2018"),go=class{constructor(t){this.onKeyDown=t=>{let i=(0,vo.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(t.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&&(t.preventDefault(),t.stopPropagation()),s};this.root=t}destroy(){this.root.removeEventListener("keydown",this.onKeyDown)}moveFocusVertical(t,i,n){let r=(0,vo.getWindow)().document.querySelectorAll(`[data-row="${t}"][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(t,i,n){let r=(0,vo.getWindow)().document.querySelectorAll(`[data-col="${t}"][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 Gf=(e,t,i,n,r,o)=>{t()||(n()?(o.store.actions.internal.clearShowByInput(),o.store.actions.internal.play()):(o.store.actions.internal.onUserInput(),o.store.actions.internal.pause()))},qf=(e,t)=>{t.store.actions.internal.onUserInput()},Kf=ue('<div class="player-wrapper s-1" tabindex="0"><!></div>'),Zf={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 is(e,t){Se(t,!0),Oe(e,Zf);let[i,n]=oi(),r=()=>it(m,"$isLive$",i),o=()=>it(I,"$availableSubtitlesList$",i),s=()=>it(x,"$settingsVisible",i),a=()=>it(b,"$controlsVisible",i),c=nt(t,"volume",3,void 0),v=nt(t,"muted",3,void 0),p=nt(t,"failoverHosts",3,void 0);rd(t.uiConfig);let l=Gr(),u=t.store.ui.debugPanelVisible,m=t.store.state.isLive$,h=Pe(void 0);t.store.getAdmanWrapper().init({switchFromAdsToVideo:t.store.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:t.store.actions.internal.switchFromVideoToAds,setMuted:t.store.actions.external.setMuted},t.store.ads,{vsid:t.store.vsid}),_d(t.store),Wt(()=>{var j,F;(F=(j=t.videoConfig.callbacks)==null?void 0:j.onDomReady)==null||F.call(j)});let _=(j=!1)=>{j?t.store.actions.external.firstStart(t.showAds):t.store.actions.internal.firstStart(t.showAds)},y=()=>{zd(t.store.videoId),Na()&&t.store.actions.internal.setTrafficSavingEnabled(!0),t.store.deviceCapabilities.maxQuality!==ts.VideoQuality.INVARIANT&&t.store.getPlayer().setAutoQualityLimits({max:t.store.deviceCapabilities.maxQuality});let F=Ia(t.store.videoId);if(F&&F!==ts.VideoQuality.INVARIANT&&t.store.deviceCapabilities.isCodecSupported(F)){t.store.actions.internal.setQuality(F);return}};function C(j){var W,ae,J;let F=t.sources||j;F&&t.store.initVideo({container:D(h),sources:F,failoverHosts:p(),subtitles:t.subtitles,subtitlesForcedLanguage:t.subtitlesForcedLanguage,volumeMultiplier:t.volumeMultiplier});let O=vr.safeStorage.get(pr)==="true";u.set(O),t.fromTime>0&&t.store.actions.external.seekTime(t.fromTime);let P=(ae=(W=c())!=null?W:io())!=null?ae:l.volumeDefault,z=(J=v())!=null?J:Od();if(t.store.actions.external.setVolume(P),t.store.actions.external.setMuted(z),t.store.getAdmanWrapper().setInitialVolume(z?0:P),y(),l.features.saveRate&&t.saveRate){let ce=jd();ce&&!r()&&t.store.actions.internal.setPlaybackRate(ce)}t.store.ui.isAutoplay.set(t.autoplay),t.autoplay&&_(),t.preload&&l.features.preload&&t.store.actions.internal.preload()}wi(()=>{var F,O,P,z;let j=()=>t.store.destroy();return((F=t.live)==null?void 0:F.status)==="upcoming"?(t.store.actions.internal.setLiveWaitingStart(!0),j):((O=t.live)==null?void 0:O.status)==="waiting"?(t.store.actions.internal.setLiveWaitingRecover(!0),j):(((P=t.live)==null?void 0:P.status)==="finished"||((z=t.live)==null?void 0:z.status)==="postlive")&&!(t.sources&&(0,Zd.areValidLiveRecordSources)(t.sources))?(t.store.actions.internal.setLiveWaitingRecord(!0),j):(C(),j)});let I=t.store.state.availableSubtitlesList$;if(l.features.initSubtitles){let j=!1;Wt(()=>{var F;if(!j&&o().length){j=!0;let O;if(l.features.userVideoPrefs&&t.store.videoId){let z=ro(l.userSalt,String(t.store.videoId));z!=null&&z.subtitleTrackId&&(O=o().find(W=>W.value===z.subtitleTrackId))}let P=(F=t.subtitlesForcedLanguage)!=null?F:Da();P&&(O=o().find(z=>z.language===P)),t.store.actions.internal.setSubtitle(O)}})}let N=(0,vr.getWindow)().innerWidth/640;(0,vr.getWindow)().document.documentElement.style.fontSize=`${N}px`;let{controlsVisible:b,settingsVisible:x}=t.store.ui,A=j=>{switch(j.key){case"Escape":t.store.actions.internal.onBackButton()||t.store.app.destroy();return;case"ArrowUp":case"ArrowDown":L.onKeyDown(j)||(a()?t.store.actions.internal.clearShowByInput():t.store.actions.internal.onUserInput());break;default:L.onKeyDown(j)}},S=j=>{["ArrowUp","ArrowDown"].includes(j.key)||t.store.actions.internal.onUserInput()},$,L;Wt(()=>(L=new go($),()=>{L.destroy()})),t.store.ui.controlsVisible.subscribe(j=>{j||$.focus()});var E=Kf();E.__click=[Gf,s,x,a,b,t],E.__keydown=A,E.__mousemove=[qf,t];var M=B(E);es(M,{get videoContainer(){return D(h)},set videoContainer(j){fe(h,j,!0)}}),H(E),ni(E,j=>$=j,()=>$),ye(()=>at(E,`font-size: ${N}px;`)),Xo("keydown",E,S,!0),ee(e,E);var g=Ie({initVideo:C});return n(),g}Gt(["click","keydown","mousemove"]);var gr=require("@vkontakte/videoplayer-shared/es2018"),ho=class{constructor(t){this.hasFakeState=!1;this.onPopState=({state:t})=>{let i=this.store.actions.internal.onBackButton(),n=(0,gr.getWindow)();n.removeEventListener("popstate",this.onPopState),i?(n.history.pushState(t,""),n.addEventListener("popstate",this.onPopState)):this.hasFakeState&&(this.hasFakeState=!1,n.history.back())};this.store=t;let i=(0,gr.getWindow)();i.history.pushState(i.history.state,""),this.hasFakeState=!0,i.addEventListener("popstate",this.onPopState)}destroy(){(0,gr.getWindow)().removeEventListener("popstate",this.onPopState),this.hasFakeState&&(0,gr.getWindow)().history.back()}};var Li=require("@vkontakte/videoplayer-shared/es2018"),_o=class{constructor(){this.maxQuality=(0,Li.videoHeightToQuality)((0,Li.getWindow)().document.body.offsetHeight*(0,Li.getWindow)().devicePixelRatio)||Li.VideoQuality.INVARIANT}isCodecSupported(t){return this.maxQuality===Li.VideoQuality.INVARIANT?!0:(0,Li.isLowerOrEqual)(t,this.maxQuality)}};var Jf={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:dt.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,isTouch:!1,isAudioDisabled:!1,tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showNextPrevButtons:!1},yo=class{constructor(t,i={},n=(0,dt.getWindow)().document.body){this.fatalError$=new dt.ValueSubject(null);this.subscription=new dt.Subscription;this.videoConfig=void 0;this.internalsExposure=null;this.status="Not initialized";this.createOneStat=t=>{if(!this.videoConfig)return;let{albumId:i,statPlace:n,statUserSalt:r,statTrackCode:o,statVKAppId:s,refreshStatAuthToken:a,autoplay:c,isTouch:v,refDomain:p,deviceId:l}=this.videoConfig,{unitedVideoId:u,isClip:m=!1}=t;if(this.uiConfig.features.statistics&&u)try{return new kn.OneStat({movieId:u,albumId:i,place:n,trackCode:o,vkAppId:s,autoplay:c!=null?c:!1,mobile:v,clip:m,refDomain:p,deviceId:l,isPreviewPlayerView:!1},{refreshAuthToken:a,userSalt:r,config:this.statisticsConfig})}catch(_){console.error(_)}};var W,ae,J,ce,G,we,Z,He,oe,_e,V,Me,he,xe,Be;if((0,dt.getWindow)()!==top)throw new Error("Must run in top frame");if(this.logger=new dt.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.parentNode=n,this.parentNode.className="vk-vp-tv-parentNode",this.fatalError$.subscribe(Le=>{this.unmountComponent(this.svelteErrorComponent),Le&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=ln(ya,{target:this.parentNode}))}),!Array.isArray(t.videos)||t.videos.length===0){let Le=new Error("empty videos");this.fatalError$.next(Le),(ae=(W=t.callbacks)==null?void 0:W.onCrashed)==null||ae.call(W,Le.message);return}else this.fatalError$.next(null);this.uiConfig=ha((J=i.ui)!=null?J:{}),this.videoConfig=ud(Jf,(0,dt.cloneDeepWith)(t)),(ce=this.videoConfig).autoplay&&(ce.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(G=this.uiConfig.ads.enable)!=null?G:this.videoConfig.showAds,this.videoConfig.adsSlotId=(we=this.uiConfig.ads.slot)!=null?we:this.videoConfig.adsSlotId,(Z=this.videoConfig).canRewindLive&&(Z.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(He=this.videoConfig.supportLink)!=null?He:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,dt.devNull.push(cr,{key:"videoplayer_embed",strings:["new","player_init_player"],numbers:[(0,dt.now)()]}),this.statisticsConfig=(oe=i.statistics)!=null?oe:{},this.playerId=(0,dt.getPlayerId)(t.playerId),this.uiConfig=ha((_e=i.ui)!=null?_e:{}),this.coreConfig=(V=i.core)!=null?V:{},this.metaConfig=i.meta;let r=this.videoConfig.videos[0],{statAuthToken:o,preload:s,autoplay:a,volume:c,muted:v,fromTime:p,supportLink:l,interfaceLanguage:u,isCyrillicRelatedInterface:m,isAudioDisabled:h,isLiveCatchUpMode:_,failoverHosts:y,canDownload:C,callbacks:I,saveRate:N,volumeMultiplier:b,mediascopePixels:x}=this.videoConfig,{sources:A,unitedVideoId:S,previewThumbsData:$,subtitles:L,subtitlesForcedLanguage:E,live:M,adsExternalApi:g}=r;if(!A&&!M){let Le=new Error("empty sources and live");this.fatalError$.next(Le),(Me=I==null?void 0:I.onCrashed)==null||Me.call(I,Le.message);return}let j=this.createOneStat(r),F=this.createThinOneStat(r),O;x&&(O=new kn.MediascopePixel({pixels:x})),(j||F)&&(this.statistics=new Kr(j,F,O)),this.store=Gd({interfaceLanguage:u,isCyrillicRelatedInterface:m,videoId:S,isLiveCatchUpMode:_,isAudioDisabled:h,statAuthToken:o,callbacks:I,previewThumbsData:$,canDownload:C,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,saveRate:N,internalsExposure:this.internalsExposure,statistics:this.statistics,playerId:this.playerId,app:this,video:r,deviceCapabilities:new _o});let P={sources:A,store:this.store,videoConfig:this.videoConfig,uiConfig:this.uiConfig,subtitles:L,subtitlesForcedLanguage:E,live:M,preload:s,autoplay:a,muted:v,volume:c,fromTime:p,supportLink:l,showAds:!1,failoverHosts:y,saveRate:N,volumeMultiplier:b,adsExternalApi:g,getVideoDeeplink:this.videoConfig.getVideoDeeplink},z={target:this.parentNode,props:P};this.svelteRootComponent=ln(is,z),(he=this.internalsExposure)==null||he.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Be=(xe=this.videoConfig)==null?void 0:xe.callbacks)!=null&&Be.onDevNullLog)?dt.devNull.subscribe(cr,this.videoConfig.callbacks.onDevNullLog):dt.devNull.destroy(cr),this.backButtonService=new ho(this.store),this.status="Normal"}destroy(){var t,i,n;this.status!=="Destroyed"&&(this.backButtonService.destroy(),this.status="Destroyed",this.subscription.unsubscribe(),(t=this.internalsExposure)==null||t.destroy(),dt.devNull.destroy(cr),(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,dt.getWindow)().history.back())}createThinOneStat(t){if(!this.videoConfig)return;let{deviceId:i,preload:n,refreshStatAuthToken:r}=this.videoConfig,{unitedVideoId:o}=t;if(this.uiConfig.features.thinStatistics&&o)return new kn.ThinOneStat.ThinOneStat({deviceId:i,movieId:o,preload:n,isPreviewPlayerView:!1},{config:this.statisticsConfig,refreshAuthToken:r})}unmountComponent(t){t&&sr(t)}updateStatContext(t){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(t),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(t))}setLiveStart(t){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(t,{autoplay:!0}))}setLiveWaitingStart(){var t;this.log({message:"live waiting"}),(t=this.store)==null||t.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var n;let t=(n=this.store)==null?void 0:n.getPlayer();if(!t)return!1;let{info:i}=t;return i.canPlayLiveTailBuffer$.getValue()&&!i.isStalled$.getValue()&&!i.atLiveEdge$.getValue()}createPlayer(t,i={},n){}setLiveWaitingRecover(t=!1){var o;let i=this.isLiveTailPlaying(),n=t||!i;this.log({message:`live waiting recover: forceImmediate = ${t}, 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 t=this.isLiveTailPlaying(),i=!t;this.log({message:`live waiting record: liveTailPlaying = ${t}`});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(t){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(t,{autoplay:!1})};if(n){r();return}(o=this.store)!=null&&o.callbacks&&(this.store.callbacks.onLiveEnded=r)}};var Ln=require("@vkontakte/videoplayer-shared/es2018"),bo=require("@vkontakte/videoplayer-core/es2018");
58
+ Audio: ${(G(a).audioCodec||``)??``} ${G(a).audioLanguage?`(${G(a).audioLanguage})`:``}`)),q(e,t)};Hc(k,e=>{(G(a).videoCodec||G(a).audioCodec)&&e(A)});var j=H(k,2),M=e=>{var t=_d(),n=H(V(t),2),r=V(n,!0);z(n),z(t),bs(()=>Cc(r,G(a).viewport)),q(e,t)};Hc(j,e=>{G(a).viewport&&e(M)});var N=H(j,2),P=e=>{var t=vd(),n=H(V(t),2),r=V(n,!0);z(n),z(t),bs(()=>Cc(r,G(a).videoSize)),q(e,t)};Hc(N,e=>{G(a).videoSize&&e(P)});var ee=H(N,2),te=e=>{var t=yd(),n=H(V(t),2),r=V(n,!0);z(n),z(t),bs(()=>Cc(r,G(a).cdn)),q(e,t)};Hc(ee,e=>{G(a).cdn&&e(te)});var ne=H(ee,2),re=e=>{var t=bd(),n=H(V(t),2),r=V(n);z(n),z(t),bs(()=>Cc(r,`${G(a).volume??``} %`)),q(e,t)};Hc(ne,e=>{G(a).volume&&e(re)});var ie=H(ne,2),ae=e=>{var t=xd(),n=H(V(t),2),r=V(n);z(n),z(t),bs(e=>Cc(r,`${e??``} s`),[()=>G(a).position.toFixed(2)]),q(e,t)};Hc(ie,e=>{G(a).position&&e(ae)});var oe=H(ie,2),se=e=>{var t=Sd(),n=H(V(t),2),r=V(n);z(n),z(t),bs(e=>Cc(r,`${e??``} s`),[()=>G(a).buffer.toFixed(2)]),q(e,t)};Hc(oe,e=>{G(a).buffer&&e(se)});var ce=H(oe,2),le=e=>{var t=Cd(),n=H(V(t),2),r=V(n);z(n),z(t),bs(e=>Cc(r,`${e??``} s`),[()=>G(a).nativeBuffer.toFixed(2)]),q(e,t)};Hc(ce,e=>{G(a).nativeBuffer&&e(le)});var ue=H(ce,2),de=e=>{var t=wd(),n=H(V(t),2),r=V(n);z(n),z(t),bs(e=>Cc(r,`${e??``} s`),[()=>G(a).liveLatency.toFixed(2)]),q(e,t)};Hc(ue,e=>{G(a).liveLatency&&e(de)});var fe=H(ue,2),pe=e=>{var t=Td(),n=H(V(t),2),r=V(n,!0);z(n),z(t),bs(e=>Cc(r,e),[()=>[{value:G(a).currentVideoSegmentLength,title:`Video:`},{value:G(a).currentAudioSegmentLength,title:`Audio:`}].filter(({value:e})=>e).map(({value:e,title:t})=>`${t} ${((e??0)/1e3).toFixed(2)} s`).join(` & `)]),q(e,t)};Hc(fe,e=>{(G(a).currentVideoSegmentLength||G(a).currentAudioSegmentLength)&&e(pe)});var me=H(fe,2),he=H(V(me),2),ge=V(he);z(he),z(me);var _e=H(me,2),ve=e=>{var t=Ed(),n=H(V(t),2);ed(n,{get values(){return G(m)}});var r=H(n,2),i=V(r);z(r),z(t),bs(e=>Cc(i,`${e??``} Kbps`),[()=>G(a).speed.toFixed(2)]),q(e,t)};Hc(_e,e=>{G(a).speed&&e(ve)});var ye=H(_e,2),be=e=>{var t=Dd(),n=H(V(t),2);ed(n,{get values(){return G(h)}});var r=H(n,2),i=V(r);z(r),z(t),bs(e=>Cc(i,`${e??``} Kbps`),[()=>G(a).bitrate.toFixed(2)]),q(e,t)};Hc(ye,e=>{G(a).bitrate&&e(be)});var xe=H(ye,2),Se=H(V(xe),2);ed(Se,{get values(){return G(p)}});var Ce=H(Se,2),we=V(Ce,!0);z(Ce),z(xe),z(y),z(_),bs(()=>{rl(_,`aria-label`,g),Cc(S,G(a).version),Cc(ge,`${G(c)??``} / ${G(s)??``} frames`),Cc(we,G(l))}),uc(`click`,v,i),q(e,_),Ki()}dc([`click`]),Mi();var jd=`var(--btn-color, #fff)`,Md=yc(`<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),Nd=yc(`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>`);function Pd(e,t){Gi(t,!0);let n=X(t,`width`,19,()=>`24`),r=X(t,`height`,19,()=>`24`),i=X(t,`fill`,3,jd),a=t.viewBox??`0 0 ${n()} ${r()}`;var o=Nd(),s=V(o),c=e=>{var n=Md(),r=is(n);Lc(V(r),()=>t.children),z(r),Ci(),q(e,n)},l=e=>{var n=bc();Lc(is(n),()=>t.children),q(e,n)};Hc(s,e=>{t.shadow?e(c):e(l,!1)}),z(o),bs(()=>{rl(o,`aria-label`,t.ariaLabel),rl(o,`aria-hidden`,!t.ariaLabel),rl(o,`width`,n()),rl(o,`height`,r()),rl(o,`viewBox`,a),rl(o,`fill`,i()),$c(o,t.style),rl(o,`data-testid`,t.testId)}),q(e,o),Ki()}var Fd=yc(`<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 Id(e){Pd(e,{width:`200`,height:`200`,viewBox:`460 190 130 90`,testId:`error-icon`,children:(e,t)=>{q(e,Fd())},$$slots:{default:!0}})}var Ld=K(`<div class="container s-4"><!></div>`),Rd={hash:`s-4`,code:`.container.s-4 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}`};function zd(e){Gc(e,Rd);var t=Ld();Id(V(t),{}),z(t),q(e,t)}var Bd=e=>`width:${e}px;height:${e}px;`,Vd=yc(`<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 Hd(e,t){Gi(t,!0);let n=xo(()=>Bd(t.size));Pd(e,{get width(){return`48`},get height(){return`48`},get fill(){return t.fill},get style(){return G(n)},testId:`play-icon`,get shadow(){return t.shadow},children:(e,t)=>{q(e,Vd())},$$slots:{default:!0}}),Ki()}var Ud=K(`<div class="playButton s-6" tabindex="0" role="button"><div class="playButtonBackground s-6"></div> <!></div>`),Wd=K(`<div data-testid="unstarted-thumb"><!></div>`),Gd={hash:`s-6`,code:`.container.s-6 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
59
+ visibility 0.2s;will-change:opacity;}.container.hidden.s-6 {opacity:0;visibility:hidden;}.container.bgCover.s-6 {background-size:cover;}.playButton.s-6 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.s-6 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
60
+ transform 0.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 Kd(e,t){Gi(t,!0),Gc(e,Gd);let n=X(t,`iconVisible`,3,!0),r=Rl(),i=fd(`tooltip_play`),a=e=>{e.stopPropagation(),t.startVideo?.call(t),t.onClick?.call(t,e)};var o={handleClick:a},s=Wd();let c;var l=V(s),u=e=>{var t=Ud();Hd(H(V(t),2),{get size(){return`48`}}),z(t),bs(()=>rl(t,`aria-label`,i)),q(e,t)};return Hc(l,e=>{n()&&e(u)}),z(s),bs(()=>{c=Zc(s,1,`container s-6`,null,c,{hidden:t.hidden,bgCover:r.features.previewNoEmptySpace}),$c(s,`background-color: #222; background-image: url('${t.thumbUrl||``}')`)}),uc(`click`,s,a),uc(`contextmenu`,s,function(...e){t.onContextMenu?.apply(this,e)}),q(e,s),Ki(o)}dc([`click`,`contextmenu`]);var qd=K(`<div><div class="video-container s-7"></div></div>`),Jd={hash:`s-7`,code:`.video-wrapper.s-7,
61
+ .video-container.s-7 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.s-7 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.s-7 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}`};function Yd(e,t){Gi(t,!0),Gc(e,Jd);let n=()=>Tl(o,`$playerPhase`,r),[r,i]=El(),a=X(t,`videoContainer`,15),{playerPhase:o}=du();var s=qd();let c;vl(V(s),e=>a(e),()=>a()),z(s),bs(()=>c=Zc(s,1,`video-wrapper s-7`,null,c,{hidden:n()!==`video`})),q(e,s),Ki(),i()}var Xd=K(`<!> <!> <!> <!>`,1),Zd=K(`<div class="player-wrapper s-3"><!></div>`),Qd={hash:`s-3`,code:`.player-wrapper.s-3 {position:absolute;width:100%;height:100%;}.player-wrapper.s-3 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}`};function $d(e,t){Gi(t,!0),Gc(e,Qd);let n=()=>Tl(u,`$language$`,o),r=()=>Tl(d,`$playerPhase`,o),i=()=>Tl(f,`$crashed`,o),a=()=>Tl(p,`$debugPanelVisible`,o),[o,s]=El(),c=X(t,`videoContainer`,15),l=du(),u=l.interfaceLanguage$,d=l.playerPhase,f=l.state.crashed$,p=l.ui.debugPanelVisible,m=Io(void 0);var h=Zd();Wc(V(h),n,e=>{var n=Xd(),o=is(n);Yd(o,{get videoContainer(){return c()},set videoContainer(e){c(e)}});var s=H(o,2);{let e=xo(()=>r()!==`thumb`||i()&&t.autoplay);Kd(s,{get hidden(){return G(e)},get thumbUrl(){return t.thumbUrl},get startVideo(){return t.firstStart}})}var l=H(s,2),u=e=>{zd(e,{})};Hc(l,e=>{i()&&e(u)});var d=H(l,2),f=e=>{Ad(e,{})};Hc(d,e=>{a()&&e(f)}),q(e,n)}),z(h),vl(h,e=>Ro(m,e),()=>G(m)),q(e,h),Ki(),s()}var ef=K(`<div class="vk-vp-tv-root s-1"><!></div>`),tf={hash:`s-1`,code:`.vk-vp-tv-root.s-1 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.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, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;}`};function nf(e,t){Gi(t,!0),Gc(e,tf);let n=()=>Tl(te,`$isLive$`,i),r=()=>Tl(be,`$availableSubtitlesList$`,i),[i,a]=El(),o=X(t,`sources`,7),s=X(t,`store`,7),c=X(t,`videoConfig`,7),l=X(t,`uiConfig`,7),u=X(t,`title`,7),d=X(t,`thumbUrl`,7),f=X(t,`subtitles`,7),p=X(t,`subtitlesForcedLanguage`,7),m=X(t,`live`,7),h=X(t,`preload`,7),g=X(t,`autoplay`,7),_=X(t,`volume`,7,void 0),v=X(t,`muted`,7,void 0),y=X(t,`fromTime`,7),b=X(t,`canRewindLive`,7),x=X(t,`showAds`,7),S=X(t,`adsSlotId`,7,void 0),C=X(t,`adsParams`,7,void 0),w=X(t,`adsAutoplayParam`,7,void 0),T=X(t,`duration`,7,void 0),E=X(t,`supportLink`,7),D=X(t,`shadowRootContainer`,7),O=X(t,`outerContainerRef`,7),k=X(t,`fullScreenTarget`,7,void 0),A=X(t,`failoverHosts`,7,void 0),j=X(t,`saveRate`,7),M=X(t,`volumeMultiplier`,7),N=X(t,`showEndScreen`,7,!0);Ll(l());let P=Rl(),ee=s().ui.debugPanelVisible,te=s().state.isLive$,ne=Io(void 0),re=Io(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{vsid:s().vsid}),uu(s()),ms(()=>{var e,t;(e=c().callbacks)==null||(t=e.onDomReady)==null||t.call(e)});let ie=(e=!1)=>{Ro(re,!0),e?s().actions.external.firstStart(x()):s().actions.internal.firstStart(x())},ae=()=>{qu(s().videoId),zu()&&s().actions.internal.setTrafficSavingEnabled(!0);let e=Pu(s().videoId);e&&s().actions.internal.setQuality(e)};function oe(e){let t=o()||e;t&&s().initVideo({container:G(ne),sources:t,failoverHosts:A(),subtitles:f(),subtitlesForcedLanguage:p(),volumeMultiplier:M()});let r=Ml.safeStorage.get(zl)===`true`;ee.set(r),y()>0&&s().actions.external.seekTime(y());let i=_()??ju()??P.volumeDefault,a=v()??Lu();if(s().actions.external.setVolume(i),s().actions.external.setMuted(a),s().getAdmanWrapper().setInitialVolume(a?0:i),ae(),P.features.saveRate&&j()){let e=Gu();e&&!n()&&s().actions.internal.setPlaybackRate(e)}s().ui.isAutoplay.set(g()),g()&&ie(),h()&&P.features.preload&&s().actions.internal.preload()}Rc(()=>{let e=()=>s().destroy();return m()?.status===`upcoming`?(s().actions.internal.setLiveWaitingStart(!0),e):m()?.status===`waiting`?(s().actions.internal.setLiveWaitingRecover(!0),e):(m()?.status===`finished`||m()?.status===`postlive`)&&!(o()&&jl.areValidLiveRecordSources(o()))?(s().actions.internal.setLiveWaitingRecord(!0),e):(oe(),e)});function se(){G(re)?s().actions.external.play():ie(!0)}function ce(){s().actions.external.pause()}function le(e){s().actions.external.setMuted(e)}function ue(){s().actions.external.toggleSubtitle()}function de(e,t){s().actions.external.changeSubtitle(e,t)}function fe(e){s().actions.external.changeAudioStream(e)}function pe(e){e>=0&&e<=1&&s().actions.external.setVolume(e)}function me(e){s().actions.internal.seekTime(e,Nl.SeekAction.UNKNOWN)}function he(e){s().actions.external.setPlaybackRate(e)}function ge(e){s().actions.external.setAutoQualityLimits(e)}function _e(){s().actions.external.setQuality(`auto`)}function ve(e){s().actions.external.setTrafficSavingEnabled(e)}function ye(e){s().actions.external.setHighQualityEnabled(e)}let be=s().state.availableSubtitlesList$;if(P.features.initSubtitles){let e=!1;ms(()=>{if(!e&&r().length){e=!0;let t;if(P.features.userVideoPrefs&&s().videoId){let e=Yu(P.userSalt,String(s().videoId));e?.subtitleTrackId&&(t=r().find(t=>t.value===e.subtitleTrackId))}let n=p()??Hu();n&&(t=r().find(e=>e.language===n)),s().actions.internal.setSubtitle(t)}})}var xe={initVideo:oe,play:se,pause:ce,setMuted:le,toggleSubtitle:ue,changeSubtitle:de,changeAudioStream:fe,setVolume:pe,seekTime:me,setPlaybackRate:he,setAutoQualityLimits:ge,setAutoQuality:_e,toggleTrafficSaving:ve,toggleHighQuality:ye,get sources(){return o()},set sources(e){o(e)},get store(){return s()},set store(e){s(e)},get videoConfig(){return c()},set videoConfig(e){c(e)},get uiConfig(){return l()},set uiConfig(e){l(e)},get title(){return u()},set title(e){u(e)},get thumbUrl(){return d()},set thumbUrl(e){d(e)},get subtitles(){return f()},set subtitles(e){f(e)},get subtitlesForcedLanguage(){return p()},set subtitlesForcedLanguage(e){p(e)},get live(){return m()},set live(e){m(e)},get preload(){return h()},set preload(e){h(e)},get autoplay(){return g()},set autoplay(e){g(e)},get volume(){return _()},set volume(e){_(e)},get muted(){return v()},set muted(e){v(e)},get fromTime(){return y()},set fromTime(e){y(e)},get canRewindLive(){return b()},set canRewindLive(e){b(e)},get showAds(){return x()},set showAds(e){x(e)},get adsSlotId(){return S()},set adsSlotId(e){S(e)},get adsParams(){return C()},set adsParams(e){C(e)},get adsAutoplayParam(){return w()},set adsAutoplayParam(e){w(e)},get duration(){return T()},set duration(e){T(e)},get supportLink(){return E()},set supportLink(e){E(e)},get shadowRootContainer(){return D()},set shadowRootContainer(e){D(e)},get outerContainerRef(){return O()},set outerContainerRef(e){O(e)},get fullScreenTarget(){return k()},set fullScreenTarget(e){k(e)},get failoverHosts(){return A()},set failoverHosts(e){A(e)},get saveRate(){return j()},set saveRate(e){j(e)},get volumeMultiplier(){return M()},set volumeMultiplier(e){M(e)},get showEndScreen(){return N()},set showEndScreen(e){N(e)}},Se=ef();$d(V(Se),{get thumbUrl(){return d()},firstStart:ie,get autoplay(){return g()},get videoContainer(){return G(ne)},set videoContainer(e){Ro(ne,e,!0)}}),z(Se),q(e,Se);var Ce=Ki(xe);return a(),Ce}var rf=yc(`<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 af(e,t){let n=X(t,`isWhite`,3,!1),r=xo(()=>n()?`#fff`:`#909499`);Pd(e,{width:`57`,height:`60`,get fill(){return G(r)},testId:`stub-icon`,children:(e,t)=>{var n=rf();Ci(9),q(e,n)},$$slots:{default:!0}})}var of=K(`<div class="title s-0"> </div>`),sf=K(`<div class="playerStub s-0"><!> <!></div>`),cf={hash:`s-0`,code:`.playerStub.s-0 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.s-0 {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}`};function lf(e,t){Gc(e,cf);var n=sf(),r=V(n),i=e=>{var n=of(),r=V(n,!0);z(n),bs(()=>Cc(r,t.title)),q(e,n)};Hc(r,e=>{t.title&&e(i)});var a=H(r,2),o=e=>{{let n=xo(()=>!!t.thumbUrl);af(e,{get isWhite(){return G(n)}})}};Hc(a,e=>{(!t.title||!t.thumbUrl)&&e(o)}),z(n),bs(()=>$c(n,t.thumbUrl?`background-image: url('${t.thumbUrl}')`:``)),q(e,n)}var uf=K(`<div class="playerError s-2"><!></div>`),df={hash:`s-2`,code:`.playerError.s-2 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}`};function ff(e){Gc(e,df);var t=uf();zd(V(t),{}),z(t),q(e,t)}var pf=_(at(),1),mf=_(en(),1),hf=_(an(),1),gf=_(tt(),1),_f=require(`@vkontakte/videoplayer-core/es2018`),Q=require(`@vkontakte/videoplayer-shared/es2018`),vf=require(`@vkontakte/videoplayer-statistics/es2018`),yf=_(Hn(),1),bf=_(tt(),1),xf=_(zt(),1),$=require(`@vkontakte/videoplayer-shared/es2018`),Sf=require(`@vkontakte/videoplayer-shared/es2018`),Cf=`//ad.mail.ru/static/admanhtml/rbadman-html5.min.js`;class wf{constructor(t,n){e(this,`adman`,null),e(this,`initialVolume`,1),e(this,`volumeMultiplier`,void 0),e(this,`videoElement`,null),e(this,`currentAdSection`,null),e(this,`actions`,null),e(this,`adsState`,null),e(this,`playerState`,null),e(this,`isDestroyed`,void 0),e(this,`log`,void 0),e(this,`loadTimeout`,void 0),e(this,`initTimeout`,void 0),e(this,`runtimeTimeout`,void 0),e(this,`useAdmanFromNPM`,void 0),e(this,`isVsidOriginal`,void 0),e(this,`watchDogTimeout`,void 0),e(this,`externalApi`,void 0),e(this,`events`,{init$:new Sf.Subject,loadStarted$:new Sf.Subject,loadEnded$:new Sf.Subject,loadError$:new Sf.Subject,ready$:new Sf.Subject,slotRequested$:new Sf.Subject,started$:new Sf.Subject,timeRemained$:new Sf.Subject,paused$:new Sf.Subject,resumed$:new Sf.Subject,ended$:new Sf.Subject,empty$:new Sf.Subject,skipped$:new Sf.Subject,clicked$:new Sf.Subject,closed$:new Sf.Subject,error$:new Sf.Subject}),e(this,`loadAdman`,e=>($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_load_start`,this.useAdmanFromNPM?`npm`:`http`],numbers:[$.now()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e))),e(this,`loadAdmanMailRu`,e=>new Promise((t,n)=>{let r;this.events.loadStarted$.next();let i=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_async_init_done`,`http`],numbers:[$.now()]}),t(),this.events.loadEnded$.next()):($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_init_timed_out`,`http`],numbers:[$.now()]}),n())};Sf.addScript(Cf,e,this.loadTimeout).then(()=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_script_loaded`,`http`],numbers:[$.now()]}),window.AdmanHTML?($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_already_inited`,`http`],numbers:[$.now()]}),t(),this.events.loadEnded$.next()):($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_wait_async_init`,`http`],numbers:[$.now()]}),window.admanAsyncInit=i,r=window.setTimeout(i,this.initTimeout))}).catch(e=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_script_load_error`,`http`,String(e)],numbers:[$.now()]}),n(),clearTimeout(r)})})),e(this,`loadAdmanNPM`,e=>new Promise((t,n)=>{let r;this.events.loadStarted$.next();let i=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_init_done`,`npm`],numbers:[$.now()]}),t(),this.events.loadEnded$.next()):($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_init_timed_out`,`npm`],numbers:[$.now()]}),n())},a=()=>{o=!0,n()},o=!1,s=window.setTimeout(()=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_load_timed_out`,`npm`],numbers:[$.now()]}),a()},this.loadTimeout);e.addEventListener(`abort`,a),e.aborted&&($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_load_aborted`,`npm`],numbers:[$.now()]}),a()),window.AdmanHTML=window.AdmanHTML||null,yf.default(import(`@adtech/rbadman/out/rbadman-html5.min.js`).then(()=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_chunk_imorted`,`npm`,`failed: `+String(o)],numbers:[$.now()]}),!o&&(window.AdmanHTML?($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_already_inited`,`npm`],numbers:[$.now()]}),t(),this.events.loadEnded$.next()):($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_wait_async_init`,`npm`],numbers:[$.now()]}),window.admanAsyncInit=i,r=window.setTimeout(i,this.initTimeout)))},a),()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener(`abort`,a)})})),e(this,`onAdsReady`,()=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_ads_ready`],numbers:[$.now()]}),this.log({message:`ads ready`}),this.events.ready$.next(),this.startPreroll()}),e(this,`onAdStarted`,(e,t)=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_ad_started`,e,`muted: `+t.muted],numbers:[$.now(),t.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:`ad muted start`})),this.adsState.duration.set(t.duration),this.adsState.playbackState.set(`playing`),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog(),this.externalApi?.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(t.bannerID))):this.onAdError(`Started callback failed: Adman is not initialized`)}),e(this,`onAdTimeRemained`,e=>{(this.adsState?.playbackState?Y(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`))}),e(this,`onAdPaused`,()=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_ad_pased`,this.currentAdSection??``],numbers:[$.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`)}),e(this,`onAdPlayed`,()=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_ad_played`,this.currentAdSection??``],numbers:[$.now()]}),this.startWatchDog(),this.adsState?(this.log({message:`ad played`}),this.adsState.playbackState.set(`playing`)):this.onAdError(`Player callback failed: Adman is not initialized`)}),e(this,`onAdMidrollPoint`,()=>{if($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_ad_midroll_pioint`],numbers:[$.now()]}),this.adman&&this.actions){this.log({message:`midroll point`}),this.actions.switchFromVideoToAds(),this.currentAdSection=`midroll`,this.startWatchDog();try{this.adman.start(`midroll`)}catch{this.onAdError(`could not start midroll`)}}else this.onAdError(`Midroll callback failed: Adman is not initialized`)}),e(this,`onAdSkipped`,()=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_ad_skipped`,this.currentAdSection??``],numbers:[$.now()]}),this.log({message:`ad skipped`}),this.stopWatchDog()}),e(this,`onAdClosed`,()=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_ad_closed`,this.currentAdSection??``],numbers:[$.now()]}),this.log({message:`ad closed`}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()}),e(this,`onAdCompleted`,()=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_ad_completed`,this.currentAdSection??``],numbers:[$.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()}),e(this,`onAdClicked`,()=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_ad_clicked`,this.currentAdSection??``],numbers:[$.now()]}),this.log({message:`ad clicked`}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()}),e(this,`onAdError`,(e=`ad error`)=>{$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_ad_error`,e],numbers:[$.now()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection===`postroll`&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()}),this.log=t.createComponentLog(`AdmanWrapper`),$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_created`],numbers:[$.now()]}),this.loadTimeout=n.loadTimeout,this.initTimeout=n.initTimeout,this.runtimeTimeout=n.runtimeTimeout,this.useAdmanFromNPM=n.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(n.volumeMultiplier,1)),this.isVsidOriginal=n.isVsidOriginal}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.onAdError(`adman loading error`)}async initAdman(e){if($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_init`,`already inited: `+!!this.adman],numbers:[$.now(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:t,height:n,isAutoplay:r,adsContainer:i,adsVideoElement:a,slotId:o,params:s={},paramsOverride:c={},duration:l,externalApi:u}=e;this.externalApi=u;let d,f=this.playerState&&Y(this.playerState.vsid);f&&(d=this.isVsidOriginal?f:parseInt(f,36));let{isEmbed:p,immediateOrigin:m}=$.detectEmbed(),h=(p?m:window.location.href)??window.location.href,g={...s,dl:encodeURIComponent(h),autoplay:r?1:0,player_width:t,player_height:n,...d?{request_id:d}:{},duration:l,...c};g=xf.default(bf.default(g).filter(([e,t])=>$.isNonNullable(t)));let _={slot:o,wrapper:i,videoEl:a,videoQuality:n,params:g,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),this.externalApi?.videoGetAds){let e=await this.safeExternalCall(this.externalApi.videoGetAds,g);e&&(delete _.slot,delete _.params,Object.assign(_,{json:e}))}e.init(_),this.adman=e,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(_)}`})}catch(e){$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_init_threw`,String(e)],numbers:[$.now()]}),this.onAdError(`could not init adman`)}}switchToVideo(e=!1){if($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_switch_to_video`,this.currentAdSection??``,`force: `+e],numbers:[$.now()]}),this.currentAdSection===null&&!e){this.log({message:`switch to video, no currentAdSection. can't switch`});return}let t=this.currentAdSection===`postroll`;if(this.actions){var n;if(this.adsState&&this.playerState)this.adsState.playbackState.set(`inactive`),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${t}`});else{let e=`Switch to video: Adman state was not updated correctly`;this.log({message:e}),this.events.error$.next(e)}(n=this.actions).switchFromAdsToVideo?.call(n,!t)}}setPostrollPassed(e){this.adsState?.postrollPassed.set(e),this.log({message:`postroll passed`})}togglePlay(){if($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_toggle_play`,this.currentAdSection??``],numbers:[$.now()]}),this.adsState){this.log({message:`toggle play`});let e=Y(this.adsState.playbackState);e===`playing`?this.pause():e===`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 t=e*this.volumeMultiplier;if(this.log({message:`set volume ${t}`}),this.adman)try{this.adman.setVolume(t)}catch{this.onAdError(`could not set ad volume`)}this.videoElement&&(this.videoElement.volume=t)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch{this.onAdError(`could not set ad fullscreen`)}}startPreroll(){if($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_start_preroll`],numbers:[$.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{this.onAdError(`could not start preroll`)}}}else this.onAdError(`Can not start preroll: Adman is not initialized`)}startPostroll(){if($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_start_postroll`,this.currentAdSection??``],numbers:[$.now()]}),this.adman&&this.actions){this.log({message:`start postroll`}),this.actions.switchFromVideoToAds(),this.currentAdSection=`postroll`,this.startWatchDog();try{this.adman.start(`postroll`)}catch{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(){if($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_pplay`,this.currentAdSection??``],numbers:[$.now()]}),this.adman){this.log({message:`ad play`}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError(`could not resume ad`)}}else this.onAdError(`Can not play: Adman is not initialized`)}pause(){if($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_pause`,this.currentAdSection??``],numbers:[$.now()]}),this.adman){this.stopWatchDog(),this.log({message:`ad pause`});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError(`could not pause ad`)}}else this.onAdError(`Can not pause: Adman is not initialized`)}skip(){if($.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_skip`,this.currentAdSection??``],numbers:[$.now()]}),this.adman){this.stopWatchDog(),this.log({message:`ad skip`});try{this.adman.skip(),this.events.skipped$.next()}catch{this.onAdError(`could not skip ad`)}}else this.onAdError(`Can not skip: Adman is not initialized`)}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){$.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`adman_destroy`],numbers:[$.now()]}),this.log({message:`destroy`}),this.stopWatchDog(),this.adman?.onReady(void 0),this.adman?.onStarted(void 0),this.adman?.onPlayed(void 0),this.adman?.onPaused(void 0),this.adman?.adMidrollPoint(void 0),this.adman?.onClosed(void 0),this.adman?.onSkipped(void 0),this.adman?.onClicked(void 0),this.adman?.onTimeRemained(void 0),this.adman?.onCompleted(void 0),this.adman?.onError(void 0),this.adman?.destroy(),this.videoElement&&Sf.clearVideoElement(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...t){try{return await e(...t)}catch(e){return this.onAdError(e?.message??`External call failed`),null}}}var Tf=(e,t)=>t?!0:e.fullscreenEnabled||!!e.webkitFullscreenEnabled||!!e.mozFullscreenEnabled||!!e.msFullscreenEnabled,Ef=e=>{let t=e;t?.webkitExitFullscreen&&t?.webkitExitFullscreen()},Df=()=>{let e=document;return e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement},Of=()=>!!Df(),kf=e=>{let t=Math.round(e);return isNaN(t)||t<40?``:t>=40&&t<55?50:t>=55&&t<90?60:t>=90&&t<180?120:t>=180?240:``};class Af{constructor(){e(this,`oneLineRegExp`,/\r\n|\n|\r/),e(this,`twoLinesRegExp`,/\r\n\r\n|\n\n|\r\r/)}parse(e,t){let n=[],r=e.split(this.twoLinesRegExp);for(let e of r){let r={startTime:0,endTime:0,texts:[],lang:t},i=e.split(this.oneLineRegExp);for(let e of i)if(!r.startTime&&!r.endTime){let{startTime:t,endTime:n}=new jf().parse(e);r.startTime=t,r.endTime=n}else if(e.trim()!==``){let{texts:t}=new Mf().parse(e);r.texts=[...r.texts,...t]}(r.startTime||r.endTime)&&r.texts.length>0&&n.push(r)}return n}}class jf{constructor(){e(this,`timeRegExp`,/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/),e(this,`timingRegExp`,RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`))}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e=`0`,t=`0`,n=`0`,r=`0`){let i=Number(e)*60*60,a=Number(t)*60,o=Number(n),s=Number(`0.${r}`);return i+a+o+s}}class Mf{constructor(){e(this,`letterTagRegExp`,/<[a-z]*>|<\/[a-z]*>/)}parse(e){let t={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,`g`),``).split({[Symbol.split](e){let t=0,n=[];for(;t<e.length;){let r=[`<`,`>`].reduce((n,r)=>{let i=e.indexOf(r,t);return n===-1||n>i?i:n},-1);if(r===-1){n.push(e.substring(t));break}n.push(e.substring(t,r)),t=r+1}return n}}),r=new jf;for(let e of n)r.isTime(e)?t.texts.push({type:`timestamp`,value:r.parseTime(e)}):t.texts.push({type:`text`,value:e});return t}}var Nf=Af,Pf=require(`@vkontakte/videoplayer-shared/es2018`),Ff,If,Lf=0,Rf=!1,zf=``,Bf=(e,t=0,n=0)=>e<t&&e<n,Vf=(e,t=0,n=0)=>e>=t&&e<=n,Hf=(e,t=0,n=0)=>e>t&&e>n,Uf=(e,t,n,r=!1)=>{let i=n.find(({id:e})=>e===t.value)?.subtitles;if(r)return i?.find(({startTime:t,endTime:n})=>Vf(e,t,n));let a=e>=Lf,o=e<Lf;if(Lf=e,o&&(Rf=!1),Pf.isNonNullable(Ff)&&Vf(e,Ff.startTime,Ff.endTime)&&zf===t.value)return Ff;if(!Pf.isNonNullable(If)&&i?.length&&!Rf){If=i.find(({startTime:t,endTime:n})=>Vf(e,t,n)||a&&Bf(e,t,n)),Ff=void 0,!Pf.isNonNullable(If)&&i[i.length-1].endTime<e&&(Rf=!0);return}else if(Vf(e,If?.startTime,If?.endTime))return Ff=If,If=void 0,zf=t.value,Ff;else (a&&Hf(e,If?.startTime,If?.endTime)||o&&Bf(e,If?.startTime,If?.endTime))&&(If=void 0)},Wf={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`},Gf={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`},Kf=e=>Wf[e]??Wf[Gf[e]]??void 0,qf=`off`,Jf=({interfaceLanguage:e,isCyrillicRelatedInterface:t,videoId:n,isLiveCatchUpMode:r,statAuthToken:i,isAudioDisabled:a,canDownload:o,callbacks:s,webApi:c,previewThumbsData:l,uiConfig:u,coreConfig:d,player:f,stopPlayer:p,looped:m=!1,statistics:h,saveRate:g,internalsExposure:_,playerId:v,metaConfig:y})=>{let b={...d,isAudioDisabled:a,live:{...d.live,isLiveCatchUpMode:!!r}},x=u,S=Q.TracerFactory.createRootTracer(!1),C=S.createComponentTracer(`Store`),w=f||new _f.Player(b,S,{playerId:v,onDevNullLog:s?.onDevNullLog});_?.expose({corePlayer:w});let T=new Q.Logger,E=new wf(T,{loadTimeout:x.ads.loadTimeout,initTimeout:x.ads.initTimeout,runtimeTimeout:x.ads.runtimeTimeout,useAdmanFromNPM:x.ads.useAdmanFromNPM,volumeMultiplier:x.ads.volumeMultiplier,isVsidOriginal:x.ads.isVsidOriginal}),D=c?.focusManager,O=T.createComponentLog(`Store`),k,A,j={},M=new _u,N=new Q.Subscription,P=``,ee=J(!1),te=h&&h.oneStat?Z(h.oneStat.vsid$):xl(void 0),ne=J(Of()),re=J(!1),ie=()=>Tf(document,_f.clientChecker.device.isIOS),ae=J(!1),oe=J([]),se=Q.merge(w.events.fatalError$,w.events.managedError$).subscribe(e=>oe.update(t=>[...t,e])),ce=xl(!1,e=>{let t=w.events.fatalError$.subscribe(()=>e(!0));return()=>t.unsubscribe()}),le=async e=>{let t=mf.default(pf.default(Q.InterfaceLanguage),e);if(x.downloadVKLanguages&&(t&&x.updateBuiltinLanguages||!ud(e))){let t;try{t=await Q.loadVKLangPack(e,Bl,Vl)}catch{var n;h==null||(n=h.oneStat)==null||n.logError({errorType:`VKLangPack`,fatal:!1})}t&&(ld({language:e,pack:t,fallback:x.defaultLanguage}),ue.set(e),de.update(e=>e+1))}ud(e)&&ue.set(e)},ue=J(e),de=J(0),fe=J(t);le(e);let pe=(e,t)=>dd(Y(ue),e,t,x.defaultLanguage),me=J(`thumb`);me.subscribe(e=>{e===`ads`&&w.info.playbackState$.getValue()&&_e()});let he=(()=>{let e=Sl([ce,me],([e,t])=>e?`crashed`:t);return{...e,is:t=>Y(e)===t}})(),ge=J(),_e=()=>{ge.set({muted:w.info.muted$.getValue()})},ve=J({width:0,height:0}),ye=null,be=w.info.isBuffering$,xe=xl(be.getValue(),e=>{let t=be.subscribe(t=>{t&&ye===null?ye=window.setTimeout(()=>{e(be.getValue()),ye=null},x.loaderDelay):e(t)});return()=>{t.unsubscribe(),ye&&clearTimeout(ye)}});C.log(`create store`),O({message:`create store`});let Se=e=>{O({message:`init video, config: ${JSON.stringify(e)}`}),Q.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`core_init_video`],numbers:[Q.now()]}),w.initVideo(e),C.log(`init video`),e.subtitles&&w.setExternalTextTracks(e.subtitles),k=e,P=e.subtitlesForcedLanguage||``},Ce=new Q.Subject,we=new Q.Subject,Te=new Q.Subject,Ee={actionRewind$:Ce,actionSeek$:we,inFullscreen$:new Q.Observable(e=>ne.subscribe(t=>e.next(t))),actionSetSubtitle$:Te},De=new Q.Subject,Oe=new Q.Subject,ke={actionSeek$:we,actionSubtitlesSwitched$:De,actionQuality$:Oe,playerSize$:new Q.Observable(e=>ve.subscribe(t=>e.next(t))),inFullscreen$:new Q.Observable(e=>ne.subscribe(t=>e.next(t))),isLoaderVisible$:new Q.Observable(e=>xe.subscribe(t=>e.next(t)))};if(h){let{oneStat:e,thinOneStat:t,mediascopePixel:n,statSubscription:r}=h;e&&(r.add(e.attachToUi(Ee)),r.add(e.attachToAds(E.events)),e.authorize(i).catch(e=>{O({message:`onestat auth error ${String(e)}`})}),n&&n.attachTo(w)),t&&(r.add(t.attachTo(w,E.events)),r.add(t.attachToUi(ke)),r.add(t.attachToAds(E.events)),t.updateContext({isMobile:Y(ee)}),t.authorize(i))}let Ae=()=>{if(_f.clientChecker.device.isIOS&&A)try{Ef(A)}catch(e){O({message:`exitIosSafariFullscreen failed: ${e}`})}};N.add(w.experimental.element$.subscribe(e=>{e&&(A=e,e.classList.add(`player-media`))})).add(w.events.ended$.subscribe(()=>{var e;Ae(),s==null||(e=s.onEnded)==null||e.call(s)})).add(w.events.looped$.subscribe(()=>{var e;s==null||(e=s.onLooped)==null||e.call(s)})).add(w.events.started$.subscribe(async()=>{var e;let t=w.info.muted$.getValue();s==null||(e=s.onStarted)==null||e.call(s),j.onStarted?.call(j,t)})).add(w.events.willSeek$.subscribe(({from:e,to:t})=>{var n;s==null||(n=s.onSeek)==null||n.call(s,e,t)})).add(w.events.autoplaySoundProhibited$.subscribe(()=>{var e;s==null||(e=s.onAutoplaySoundProhibited)==null||e.call(s)})).add(w.info.position$.subscribe(e=>{let t=w.info.duration$.getValue();if(isFinite(t)&&t>0){var n;s==null||(n=s.onTimeupdate)==null||n.call(s,t,e),E.setPosition(e,t)}})).add(w.events.fatalError$.subscribe(e=>{var t;s==null||(t=s.onCrashed)==null||t.call(s,e?`${e.id}: ${e.message}`:void 0)})).add(w.events.fetcherRecoverableError$.subscribe(e=>{var t;s==null||(t=s.onRecoverableError)==null||t.call(s,e?`${e.id}: ${e.message}`:void 0)})).add(w.events.loadedMetadata$.subscribe(()=>{ae.set(!0)})).add(w.info.liveTime$.subscribe(e=>{var t;s==null||(t=s.onLiveTime)==null||t.call(s,e)})).add(w.info.isStalled$.subscribe(e=>{var t;s==null||(t=s.onStalledChanged)==null||t.call(s,e)})).add(w.info.isLiveEnded$.subscribe(e=>{var t;return e&&(s==null||(t=s.onLiveEnded)==null?void 0:t.call(s))})).add(E.events.loadStarted$.subscribe(()=>{var e,t;return s==null||(e=s.adsInfo)==null||(t=e.onLoadStarted)==null?void 0:t.call(e)})).add(E.events.loadEnded$.subscribe(()=>{var e,t;return s==null||(e=s.adsInfo)==null||(t=e.onLoadEnded)==null?void 0:t.call(e)})).add(E.events.loadError$.subscribe(()=>{var e,t;return s==null||(e=s.adsInfo)==null||(t=e.onLoadError)==null?void 0:t.call(e)})).add(E.events.init$.subscribe(()=>{var e,t;return s==null||(e=s.adsInfo)==null||(t=e.onInit)==null?void 0:t.call(e)})).add(E.events.ready$.subscribe(()=>{var e,t;return s==null||(e=s.adsInfo)==null||(t=e.onReady)==null?void 0:t.call(e)})).add(E.events.started$.subscribe(e=>{var t,n;return s==null||(t=s.adsInfo)==null||(n=t.onStarted)==null?void 0:n.call(t,e)})).add(E.events.timeRemained$.subscribe(e=>{var t,n;return s==null||(t=s.adsInfo)==null||(n=t.onTimeRemained)==null?void 0:n.call(t,e)})).add(E.events.ended$.subscribe(e=>{var t,n;return s==null||(t=s.adsInfo)==null||(n=t.onCompleted)==null?void 0:n.call(t,e)})).add(E.events.empty$.subscribe(()=>{var e,t;return s==null||(e=s.adsInfo)==null||(t=e.onEmpty)==null?void 0:t.call(e)})).add(E.events.clicked$.subscribe(e=>{var t,n;return s==null||(t=s.adsInfo)==null||(n=t.onClicked)==null?void 0:n.call(t,e)})).add(E.events.closed$.subscribe(e=>{var t,n;return s==null||(t=s.adsInfo)==null||(n=t.onClosed)==null?void 0:n.call(t,e)})).add(E.events.error$.subscribe(e=>{var t,n;return s==null||(t=s.adsInfo)==null||(n=t.onError)==null?void 0:n.call(t,e)})).add(E.events.paused$.subscribe(()=>{var e,t;return s==null||(e=s.adsInfo)==null||(t=e.onPaused)==null?void 0:t.call(e)})).add(E.events.resumed$.subscribe(()=>{var e,t;return s==null||(e=s.adsInfo)==null||(t=e.onResumed)==null?void 0:t.call(e)}));let je=xl(w.info.position$.getValue(),e=>{let t,n,r=()=>{let i=w.info.playbackState$.getValue(),a=w.info.isLive$.getValue(),o=w.info.duration$.getValue(),s=w.info.position$.getValue();if(i&&mf.default([_f.PlaybackState.PLAYING,_f.PlaybackState.PAUSED],i)){let t=a?s-o:w.getExactTime();t!==n&&e(t),n=t}t=requestAnimationFrame(r)};return r(),()=>cancelAnimationFrame(t)}),Me=Z(w.info.playbackState$),Ne=Sl([Me,Z(w.info.isBuffering$)],([e,t])=>t?`buffering`:e),Pe=Z(w.info.currentBuffer$),Fe=Z(w.info.isEnded$),Ie=Z(w.info.isLive$),Le=x.features.playbackRate?Z(w.info.canChangePlaybackSpeed$):xl(!1),Re=Z(w.info.liveBufferTime$),ze=Z(w.info.volume$),Be=Z(w.info.muted$),Ve=fu(w.info.predefinedQualityLimitType$.pipe(Q.map(e=>e===_f.PredefinedQualityLimits.TRAFFIC_SAVING)),w.info.predefinedQualityLimitType$.getValue()===_f.PredefinedQualityLimits.TRAFFIC_SAVING),He=fu(w.info.predefinedQualityLimitType$.pipe(Q.map(e=>e===_f.PredefinedQualityLimits.HIGH_QUALITY)),w.info.predefinedQualityLimitType$.getValue()===_f.PredefinedQualityLimits.HIGH_QUALITY),Ue=Z(w.info.autoQualityLimitingAvailable$),We=Z(w.info.availableQualities$),Ge=Z(w.info.availableQualitiesFps$),Ke=Z(w.info.chromecastState$),qe=Z(w.info.chromecastDeviceName$),Je=Z(w.info.currentFormat$),Ye=Z(w.info.throughputEstimation$),Xe=Z(w.info.videoBitrate$),Ze=Z(w.info.intrinsicVideoSize$),Qe=Z(w.info.duration$),$e=Z(w.info.isAudioAvailable$),et=()=>{ye&&clearTimeout(ye),ye=null},tt=Sl([Qe,Ie],([e,t])=>t?-e:e),nt=Sl([Me],([e])=>e===_f.PlaybackState.PLAYING),rt=Z(w.info.atLiveEdge$),it=Z(w.info.atLiveDurationEdge$),at=Z(w.info.position$),ot=Sl([at,Qe],([e,t])=>isFinite(e)&&isFinite(t)&&!!t),st=Sl([Ke],([e])=>e===_f.ChromecastState.CONNECTED),ct=Z(w.info.availableVideoStreams$),lt=x.features.audioLanguages?Z(w.info.availableAudioStreams$):xl([]),ut=Z(w.info.currentVideoStream$),dt=Z(w.info.currentAudioStream$),ft=e=>{e.language&&Vu(e.language),w.setVideoStream(e)},pt=e=>{w.setAudioStream(e)},mt=e=>{let t;if(e.length===1&&(t=hf.default(e,0)),t??=e.find(e=>`isDefault`in e&&e.isDefault),x.features.userVideoPrefs&&n){let r=Yu(x.userSalt,String(n));r?.audioTrackId&&(t=e.find(e=>e.id===r.audioTrackId)??t)}let r=Bu();return r&&(t??=e.find(({language:e})=>r===e)),t??=hf.default(e,0),t},ht=e=>{C.log(`change audio stream`,{id:e});let t=w.info.availableAudioStreams$.getValue().find(t=>t.id===e);t&&pt(t)},gt=!1;N.add(w.info.availableAudioStreams$.subscribe(e=>{if(!gt&&e.length){let t=mt(e);t&&(w.setAudioStream(t),gt=!0)}})),lt.subscribe(e=>{var t;s==null||(t=s.onAvailableAudioStreamsChanged)==null||t.call(s,e.map(({label:e=``,id:t=``,language:n=``})=>({label:e,language:n,id:t})))}),dt.subscribe(e=>{var t;return e&&(s==null||(t=s.onAudioStreamChanged)==null?void 0:t.call(s,e.id))});let _t=!1;N.add(w.info.availableVideoStreams$.subscribe(e=>{if(!_t&&e.length){let t=mt(e);t&&(w.setVideoStream(t),_t=!0)}}));let vt=J(void 0),yt=Z(w.info.isAutoQualityEnabled$,e=>e&&vt.set(void 0)),bt=Sl([vt,Z(w.info.currentQuality$,()=>vt.set(void 0))],([e,t])=>e??t),xt=Sl(Je,e=>e!==_f.VideoFormat.MPEG),St=Sl([We,Ge,yt,bt,xt],([e,t,n,r,i])=>{let a=[];i&&a.push({value:`auto`,displayValue:pe(`auto_quality_option`),selected:n});let o=e.filter(e=>!Q.isInvariantQuality(e));for(let e of o){let i=t[e];a.push({value:e,displayValue:`${e}${i?kf(i):``}`,selected:n?!1:e===r})}return a}),Ct=Z(w.info.currentPlaybackRate$),wt=Sl([Ct,rt,it],([e,t,n])=>{let r=n?1:x.controls.playbackRateMin,i=t?1:x.controls.playbackRateMax,a=x.controls.playbackRateStep,o=[];for(let t=r;t<=i;t+=a)o.push({value:t,displayValue:t===1?pe(`playback_rate_1`):pe(`playback_rate`,{multiplier:t.toString(10)}),selected:e===t});return o}),Tt=()=>({displayValue:pe(`subtitles_off`),value:qf,language:``}),Et=J(Tt()),Dt=Sl([Et,de],([e],t)=>{e.value===qf?t(Tt()):t(e)}),Ot=x.features.subtitles?Z(w.info.availableTextTracks$):xl([]),kt=gu(),At=Sl([Ot,Dt],([e,t],n)=>{let r=[],i=e.find(({id:e})=>e===t.value);if(i?.url){let[,e]=kt.find(i.url)??[];if(e){n(e);return}M.download(i.url).then(e=>{if(!e||M.isDestroyed())return;let a=new Nf,o=i.language;if(o){let t=!!i.isAuto,n=a.parse(e,o);r.push({lang:o,subtitles:n,isAuto:t,id:i.id})}kt.add(i.url,r),Y(Dt).value===t.value&&n(r)}).catch(()=>{var e;h==null||(e=h.oneStat)==null||e.logError({errorType:`Subtitles download`,fatal:!1})})}n(r)}),jt=Sl([Ct,nt,Dt],([e,t,n],r)=>{let i;if(w.info.isLive$.getValue()&&t&&n.value!==qf){let t=()=>{let n=1e3/(3*e);i=setTimeout(t,n),r(Date.now())};return t(),()=>clearTimeout(i)}}),Mt=Sl([Ot,Dt],([e,t])=>{if(!e.length)return[];let n=[];for(let{language:r,isAuto:i,id:a}of e){let e=r&&Kf(r);r&&e&&n.push({displayValue:i?pe(`subtitles_auto`,{language:e}):e,value:a,selected:t?.value===a,isAuto:i,language:r})}return n.length?(n.unshift({...Tt(),selected:t?.value===qf}),n):[]}),Nt={available:[],prev:[]},Pt=()=>w.experimental.getCurrentTime$.getValue()?.()??A?.currentTime??0,Ft=Sl([Sl([je,Dt,At,jt],([e,t,n,r])=>{let i=w.info.isLive$.getValue();if(i&&Nt.prev!==n){let e=n.find(({id:e})=>e===t.value),r=Nt.prev.find(({id:e})=>e===t.value);e&&(Nt.available=[{...e,subtitles:[...r?.subtitles??[],...e.subtitles]}],Nt.prev=n)}if(t&&t.value!==qf)return Uf(i?Pt():e,t,i?Nt.available:n,i)})],([e])=>e?.texts?e.texts:[]);N.add(Dt.subscribe(e=>{if(e.value===qf){var t;s==null||(t=s.onSubtitleOff)==null||t.call(s)}else{var n;let t=gf.default(Wf).find(([t,n])=>n===e.displayValue);s==null||(n=s.onSubtitleOn)==null||n.call(s,t?t[0]:``,e.value)}}));let It=J(!0),Lt=Sl([Pe,tt,at,Re],([e,t,n,r])=>{let i=e?.end??0;return r?(i-(-n+r-t))/t:i/t}),Rt=Z(w.info.availableSources$),zt=Sl([Rt],([e])=>Object.keys(e?.[_f.VideoFormat.MPEG]||{}).length>0),Bt=()=>{var e;let t=Object.keys(((e=w.info.availableSources$)==null||(e=e.getValue())==null?void 0:e[_f.VideoFormat.MPEG])||{}),n=Q.getHighestQuality(t)||Q.VideoQuality.Q_144P;return k.sources[_f.VideoFormat.MPEG]?.[n]},Vt=()=>{let e=Bt();if(e){var t;C.log(`download video`,{url:e}),hu(e,(k==null||(t=k.meta)==null?void 0:t.title)||`video`)}else{let e=`There is no URL for download video`;C.log(`download video`,{message:e}),O({message:e})}},Ht=()=>{O({message:`toggle muted`});let e=w.info.muted$.getValue();w.info.volume$.getValue()===0&&!e?Kt(Gt()):qt(!e)},Ut=()=>{F.ui.settingsMenu.visible$.set(!1),C.log(`close settings menu`)},Wt=async(e,t=()=>Promise.resolve())=>{F.ui.settingsMenu.visible$.set(!0),await t(),C.log(`open settings menu`,{wasOpenedByKeyboard:e})},Gt=()=>{let e=Math.max(x.volumeMinRestore,ju()??0);return e===0?x.volumeDefault:e},Kt=e=>{let t=e===0?Gt():e,n=w.info.muted$.getValue();O({message:`set volume, volume: ${e}, preferredVolume: ${t}`});let r=!a||he.is(`ads`);n&&e>0&&r&&(n=!1),w.setVolume(e,n),E.setVolume(e)},qt=e=>{let t=w.info.volume$.getValue();O({message:`set muted, currentVolume: ${t}, mute: ${e}`});let n=he.is(`ads`);if(w.setMuted(e,n),E.setVolume(e?0:t),!e&&t===0){let e=Gt();w.setVolume(e),E.setVolume(e)}},Jt=J(!1),Yt=e=>{C.log(`set looped`,{isLooped:e}),Jt.set(e),w.setLooped(e)};Yt(m);let Xt=()=>{w.prepare()},Zt=()=>{Q.assertNonNullable(F);let e=Y(F.playerPhase),t={playerPhase:e,isVideoEnded:!1,action:`none`};if(O({message:`toggle play`}),e===`ads`){t.action=`play`,C.log(`toggle adman play`,t),E.togglePlay();return}let n=()=>{var e;O({message:`toggle play, call player.play`}),t.action=`play`,w.play(),s==null||(e=s.onPlay)==null||e.call(s)};w.info.isEnded$.getValue()?(O({message:`toggle play, video ended, seek to 0`}),Ce.next(),we.next(vf.SeekAction.REWIND),w.seekTime(0),n()):w.info.playbackState$.getValue()===_f.PlaybackState.PLAYING?(()=>{var e;O({message:`toggle play, call player.pause`}),t.action=`pause`,w.pause(),s==null||(e=s.onPause)==null||e.call(s)})():n(),C.log(`toggle play`,t)},Qt=(e,{byUser:t=!1}={})=>{O({message:`set quality, quality: ${e}`}),C.log(`set quality`,{quality:e}),t&&Oe.next(e),w.setAutoQuality(e===`auto`),Nu(),e!==`auto`&&(Mu(n,e),vt.set(e),w.setQuality(e))},$t=e=>{O({message:`set trafficSavingEnabled, value: ${e}`}),C.log(`set traffic saving enabled`,{trafficSavingEnabled:e});let t=e?_f.PredefinedQualityLimits.TRAFFIC_SAVING:_f.PredefinedQualityLimits.UNKNOWN;w.setPredefinedQualityLimits(t)},en=e=>{O({message:`set highQualityEnabled, value: ${e}`}),C.log(`set high quality enabled`,{highQualityEnabled:e}),tn(e?_f.PredefinedQualityLimits.HIGH_QUALITY:_f.PredefinedQualityLimits.UNKNOWN)},tn=e=>{w.setPredefinedQualityLimits(e)},nn=(e,t=!0)=>{C.log(`set playback rate`,{playbackRate:e}),w.setPlaybackRate(e),x.features.saveRate&&g&&!w.info.isLive$.getValue()&&t&&Wu(e)},rn=()=>{let e=Y(Le),t=Y(wt),n=t.findIndex(({selected:e})=>e);if(n===t.length-1||!e)return t[n];let r=t[n+1];return nn(r.value),r},an=()=>{let e=Y(Le),t=Y(wt),n=t.findIndex(({selected:e})=>e);if(n===0||!e)return t[n];let r=t[n-1];return nn(r.value),r},on=(e={...Tt(),selected:!1})=>{C.log(`set subtitles`,{...e}),e.value!==qf&&Te.next(e.isAuto?e.value+`_auto`:e.value),De.next({enabled:e.value!==qf,lang:e.language,auto:!!e.isAuto}),Et.set(e)},sn=e=>{C.log(`toggle subtitles`),Y(Dt)?.value===qf?ln(e):un()},cn=(e,t)=>{C.log(`change subtitle`,{enabled:e}),e?ln(!0,t):un()},ln=(e,t)=>{C.log(`subtitle on`);let n=Y(Mt),r=Y(ue),i=P??r,a;t&&(a=n.find(e=>e.value===t)),a??=n.filter(e=>e.value!==qf).find(e=>e.language===i),on(a??n[1])},un=()=>{C.log(`subtitle off`),on(void 0)};N.add(w.info.availableTextTracks$.subscribe(e=>{var t;function n(){let t=[];for(let{language:n,isAuto:r,id:i}of e){let e=n&&Kf(n);n&&e&&t.push({id:i,language:n,title:r?pe(`subtitles_auto`,{language:e}):e})}return t}s==null||(t=s.onAvailableSubtitlesChanged)==null||t.call(s,n())}));let dn=J(!0),fn=e=>{dn.set(e)},pn=(e,t,n=!0)=>{if(O({message:`seek to time, time: ${e}`}),C.log(`seek to time`,{time:e,action:t,forcePrecise:n}),we.next(t),w.info.isLive$.getValue()){let t=w.info.duration$.getValue(),r=Math.min(0,t+e);w.seekTime(r,n)}else{if(w.info.isEnded$.getValue()){var r;O({message:`seek after ended, call callbacks.onPlay`}),s==null||(r=s.onPlay)==null||r.call(s)}w.seekTime(e,n)}},mn=(e,t,n=!1)=>{O({message:`seek to percent, percent: ${e}`}),C.log(`seek to percent`,{percent:e,action:t}),pn(Y(tt)*e,t,n)},hn=e=>{O({message:`seek external, time: ${e}`}),C.log(`seek external`,{time:e}),we.next(vf.SeekAction.UNKNOWN),w.seekTime(w.info.isLive$.getValue()?-e:e)},gn=e=>{let t=e.max??`none`,n=e.min??`none`;O({message:`set auto quality limitation. Max: ${t}. Min: ${n}`}),C.log(`set auto quality limits`,{max:t,min:n}),w.setAutoQualityLimits(e)},_n=e=>{O({message:`set playback rate to: ${e}`}),C.log(`set playback rate external`,{playbackRate:e}),w.setPlaybackRate(e)},vn=J(void 0),yn=J(!1),bn=e=>{O({message:`start scrubbing, progress: ${e}`}),C.log(`start scrubbing`,{progress:e}),yn.set(!0),xn(e)},xn=e=>{vn.set(e)},Sn=()=>{vn.set(void 0),yn.set(!1)},Cn=(e,t=!1)=>{O({message:`complete scrubbing, progress: ${e}`}),C.log(`complete scrubbing`,{progress:e}),mn(e,vf.SeekAction.SLIDER,t),Sn()},wn=Sl([je,tt,vn],([e,t,n],r)=>{r(Q.isNonNullable(n)?n*t:e)}),Tn=J(!1),En=()=>{Tn.set(!0)},Dn=()=>{Tn.set(!1)},On=e=>{we.next(vf.SeekAction.LIVE),O({message:`live switch to low latency `+e}),C.log(`live switch to low latency `+e),w.setLiveLowLatency(e)},kn=()=>{we.next(vf.SeekAction.LIVE),O({message:`switch to active live`}),C.log(`switch to active live`),w.seekTime(0),w.info.playbackState$.getValue()!==_f.PlaybackState.PLAYING&&F.actions.internal.togglePlay()},An=()=>{C.log(`skip adman`),E.skip()},jn=(e=!0)=>{Q.assertNonNullable(F),O({message:`switch from ads to video, callPlay: ${e}`}),C.log(`switch from ads to video`,{callPlay:e}),me.set(`video`),e&&w.play(),a&&qt(!0);let t=Y(ge)?.muted,n=!w.info.muted$.getValue();t!==void 0&&!n&&qt(t),ge.set(void 0)},Mn=()=>{Q.assertNonNullable(F),O({message:`switch from video to ads`}),C.log(`switch from video to ads`),F.actions.internal.pause(),Ae(),me.set(`ads`)},Nn=e=>{Q.assertNonNullable(F);let t=e?`LiveWaitingStart`:`thumb`;C.log(`set live waiting start`,{state:e,playerPhase:t}),me.set(t)},Pn=e=>{Q.assertNonNullable(F);let t=e?`LiveWaitingRecover`:`thumb`;C.log(`set live waiting recover`,{state:e,playerPhase:t}),me.set(t)},Fn=e=>{Q.assertNonNullable(F);let t=e?`LiveWaitingRecord`:`thumb`;C.log(`set live waiting record`,{state:e,playerPhase:t}),me.set(t)},In=()=>(Q.assertNonNullable(F),C.log(`get debug text data`),pu(w,k,F,S.getTraceId(),y)),Ln=()=>(Q.assertNonNullable(F),JSON.stringify(S.getFinishedSpans())),Rn=()=>(Q.assertNonNullable(F),mu(w,k,F)),zn=()=>A,Bn=e=>{var t;if(Q.assertNonNullable(F),w.info.isEnded$.getValue())return;let n=!e;if(Y(F.playerPhase)===`ads`){O({message:`pause ads, internalCall: ${n}`}),C.log(`pause ads`,{internalCall:n}),E.pause();return}O({message:`pause video, internalCall: ${n}`}),C.log(`pause video`,{internalCall:n}),n&&(s==null||(t=s.onPause)==null||t.call(s)),w.pause()},Vn=e=>{var t;Q.assertNonNullable(F);let n=!e;if(Y(F.playerPhase)===`ads`){O({message:`play ads, internalCall: ${n}`}),C.log(`play ads`,{internalCall:n}),E.play();return}O({message:`play video, internalCall: ${n}`}),C.log(`play video`,{internalCall:n}),n&&(s==null||(t=s.onPlay)==null||t.call(s)),w.play()},Hn=e=>{Q.assertNonNullable(F);let t=!e;if(Y(F.playerPhase)===`ads`){O({message:`player cannot be stopped during ads via external method`});return}O({message:`player will be stopped, internalCall: ${t}`}),p?.()},Un=(e,t)=>{Q.assertNonNullable(F),O({message:`first start, show ads: ${e}, internalCall: ${!t}`}),C.log(`first start`,{showAds:e,external:t}),e?me.set(`ads`):(me.set(`video`),t?w.play():F.actions.internal.togglePlay())},F={interfaceLanguage$:ue,isCyrillicRelatedInterface$:fe,initVideo:Se,videoId:n,playerPhase:he,vsid:te,state:{positionExact$:je,positionWithScrubbing$:wn,duration$:tt,playbackState$:Me,playbackStateRealistic$:Ne,isPlaying$:nt,isLoaderVisible:xe,bufferedProgress$:Lt,isLive$:Ie,canChangePlaybackSpeed$:Le,isActiveLive$:rt,isOldestAvailableLive$:it,isRewindableLive$:ot,isEnded$:Fe,muted$:Be,volume$:ze,trafficSavingEnabled$:Ve,highQualityEnabled$:He,autoQualityLimitingAvailable$:Ue,availableVideoStreams$:ct,availableAudioStreams$:lt,videoStream$:ut,audioStream$:dt,currentQuality$:bt,isAutoQualityEnabled$:yt,availableQualities$:St,currentPlaybackRate$:Ct,availablePlaybackRates$:wt,currentSubtitle$:Dt,availableTextTracks$:Ot,availableSubtitlesList$:Mt,currentSubtitleCaptions$:Ft,isAutoSubtitleCaptionVisible$:It,chromecastState$:Ke,chromecastDeviceName$:qe,chromecastConnected$:st,currentFormat$:Je,throughputEstimation$:Ye,videoBitrate$:Xe,videoSize$:Ze,errorLog$:oe,crashed$:ce,isAudioAvailable$:$e,isAudioDisabled:!!a,canDownload:x.features.download&&!!o,availableSources$:Rt,hasMpegSources$:zt,looped$:Jt,loadedMetadata$:ae,isAutoQualityAvailable$:xt},ui:{t:pe,controlsVisible:J(!1),touched:J(!1),controls:{prevButton:J(void 0),playButton:J(void 0),replayButton:J(void 0),nextButton:J(void 0),playPrevChapterButton:J(void 0),seekToInteractiveButton:J(void 0),interactiveGraphButton:J(void 0),liveButton:J(void 0),time:J(void 0),episodes:J(void 0),volume:J(void 0),subtitles:J(void 0),settings:J(void 0),context:J(void 0),chromecast:J(void 0),pip:J(void 0),fullscreen:J(void 0),vkLogo:J(void 0),interactiveTimeIndicator:J(void 0),timeline:J(void 0),autoplayNextToggle:J(void 0)},modals:{hotKeyMap:{show:J(!1),data:J({title:``,closeBtnText:``,groups:[]})}},isFullscreen:ne,isFullscreenOpenedByKeyboard:re,isAutoplay:J(!1),debugPanelVisible:J(!1),episodes:{panelOpened$:J(!1),openedByKeyboard$:J(!1)},contextMenu:{visible$:J(!1),btnRef$:J(void 0),openedByBtnKeyboard$:J(!1),openedByHotKey$:J(!1),lastActiveElem$:J(void 0),showContextMenuBtn$:J(!1),position$:J({top:0,left:0})},playerSize:ve,isMobile:ee,icon3DVideoVisible:J(!1),scrubbingInProgress:yn,volumeChangingInProgress:Tn,interactiveHideMobileControls:J(!1),overlayContainer$:J(void 0),startedByKeyboard$:J(!1),autoplayNextEnabled$:J(!1),timerNextVideoRunning$:J(!0),settingsMenu:{visible$:J(!1),ref$:J(void 0),openedByBtnKeyboard$:J(!1)},settingsSubMenu:{visible$:J(!1),ref$:J(void 0),name$:J(void 0)},userActionsDisabled:J(!1),hiddenControls:{volume:J(!1),vkLogo:J(!1),pip:J(!1),chromecast:J(!1),settings:J(!1)},isControlsAvailable:dn,controlBlocks:{topLeft:J(void 0),topRight:J(void 0),middle:J(void 0),bottom:J(void 0),bottomLeft:J(void 0),bottomRight:J(void 0)},videoTitleInfo:J(void 0),previewTrackNotificationVisible:J(!1)},ads:{position:J(0),duration:J(0),playbackState:J(`inactive`),canSkip:J(!1),secondsToWatchBeforeSkip:J(0),postrollPassed:J(!1)},webApi:{focusManager:D},actions:{internal:{preload:Xt,firstStart:e=>Un(e,!1),play:()=>Vn(!1),pause:()=>Bn(!1),togglePlay:Zt,toggleMuted:Ht,openSettingsMenu:Wt,closeSettingsMenu:Ut,setVolume:e=>Kt(e),setMuted:e=>qt(e),startVolumeChanging:En,stopVolumeChanging:Dn,setVideoStream:ft,setAudioStream:e=>pt(e),setQuality:(e,t)=>Qt(e,t),setTrafficSavingEnabled:e=>$t(e),setHighQualityEnabled:e=>en(e),setPlaybackRate:nn,incrementPlaybackRate:rn,decrementPlaybackRate:an,setSubtitle:e=>on(e),toggleSubtitle:()=>sn(!1),startScrubbing:bn,progressScrubbing:xn,completeScrubbing:Cn,switchToActiveLive:kn,switchFromAdsToVideo:jn,switchFromVideoToAds:Mn,skipAd:An,setLiveWaitingStart:Nn,setLiveWaitingRecover:Pn,setLiveWaitingRecord:Fn,getDebugTextData:In,getTraceTextData:Ln,getDebugPanelData:Rn,getVideoElement:zn,seekTime:(e,t,n)=>pn(e,t,n),clearDelayedBufferingCheckTimeout:et,seekToPercent:mn,getPreviewThumbsData:()=>(O({message:`getting preview thumbs data`}),C.log(`get preview thumbs data`,{...l}),l),downloadVideo:Vt,addLanguage:ld,setLanguage:le,setLooped:Yt,checkFullscreenSupport:ie},external:{firstStart:e=>Un(e,!0),play:()=>Vn(!0),pause:()=>Bn(!0),stop:()=>Hn(!0),seekTime:e=>hn(e),setPlaybackRate:e=>_n(e),setAutoQualityLimits:e=>gn(e),setMuted:e=>qt(e),toggleSubtitle:()=>sn(!0),changeSubtitle:cn,setVolume:e=>Kt(e),setLiveLowLatency:On,hideControls:()=>fn(!1),showControls:()=>fn(!0),setQuality:e=>Qt(e),setTrafficSavingEnabled:e=>$t(e),setHighQualityEnabled:e=>en(e),changeAudioStream:ht}},callbacks:s,setUiCallbacks:e=>{j={...e}},getAdmanWrapper:()=>E,getLogger:()=>T,getPlayer:()=>w,destroy:()=>{C.log(`destroy store`),N.unsubscribe(),w.destroy(),E.destroy(),h?.destroy(),se.unsubscribe(),M.destroy()}};return F},Yf=require(`@vkontakte/videoplayer-shared/es2018`),Xf=require(`@vkontakte/videoplayer-shared/es2018`),Zf=require(`@vkontakte/videoplayer-core/es2018`),Qf=require(`@vkontakte/videoplayer-statistics/es2018`);function $f(e,t){let n=new Set([...Object.keys(e),...Object.keys(t)]),r={};for(let i of n)r[i]=t[i]??e[i]??void 0;return r}var ep=require(`@vkontakte/videoplayer-shared/es2018`);class tp{constructor(t=void 0,n=void 0,r=void 0,i=new ep.Subscription){e(this,`oneStat`,void 0),e(this,`thinOneStat`,void 0),e(this,`mediascopePixel`,void 0),e(this,`statSubscription`,void 0),this.oneStat=t,this.thinOneStat=n,this.mediascopePixel=r,this.statSubscription=i}destroy(){this.oneStat?.destroy(),this.thinOneStat?.destroy(),this.mediascopePixel?.destroy(),this.statSubscription.unsubscribe()}}var np=require(`@vkontakte/videoplayer-shared/es2018`);class rp{constructor(t){e(this,`getActiveElement`,void 0),e(this,`focusableElements`,[]),e(this,`isActive`,!1),e(this,`container`,void 0),e(this,`handleTabKey`,e=>{if(this.updateFocusableElements(),!this.focusableElements.length)return;let t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1],r=this.getActiveElement();e.shiftKey&&r===t?(e.preventDefault(),n.focus()):!e.shiftKey&&r===n&&(e.preventDefault(),t.focus())}),this.getActiveElement=t}activate(){this.isActive||=(document.addEventListener(`keydown`,this.handleTabKey),!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(e=>!e.disabled&&e.offsetParent!==null)}destroy(){this.deactivate()}setContainer(e){this.container=e}}class ip{constructor(t){e(this,`shadowRoot`,void 0),e(this,`lastFocusedNode`,null),e(this,`focusLock`,void 0),e(this,`init`,()=>{this.shadowRoot.addEventListener(`focusin`,this.handleFocusChange)}),e(this,`handleFocusChange`,()=>{this.lastFocusedNode=this.shadowRoot.activeElement}),e(this,`restoreFocus`,()=>{this.lastFocusedNode?.focus()}),this.shadowRoot=t,this.focusLock=new rp(()=>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 ap=require(`@vkontakte/videoplayer-shared/es2018`).getWindow().HTMLElement||class{constructor(){e(this,`isConnected`,!1)}},op={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Xf.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,isTouch:!1,isAudioDisabled:!1,tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showNextPrevButtons:!1},sp=Io(void 0);class cp extends ap{constructor(){super(),e(this,`svelteStubComponent`,void 0),e(this,`svelteRootComponent`,void 0),e(this,`svelteErrorComponent`,void 0),e(this,`store`,void 0),e(this,`statistics`,void 0),e(this,`_shadowRoot`,void 0),e(this,`playerContainer`,void 0),e(this,`rootContainer`,void 0),e(this,`stateContainer`,void 0),e(this,`shadowRootContainer`,void 0),e(this,`playerId`,void 0),e(this,`uiConfig`,void 0),e(this,`coreConfig`,void 0),e(this,`statisticsConfig`,void 0),e(this,`metaConfig`,void 0),e(this,`currentPlayingVideoIndex`,0),e(this,`videoConfig`,void 0),e(this,`subscription`,void 0),e(this,`focusManager`,void 0),e(this,`prevIsid`,void 0),e(this,`isInited`,!1),e(this,`postponedInitParams`,null),e(this,`internalsExposure`,null),e(this,`fatalError$`,new Yf.ValueSubject(null)),e(this,`createOneStat`,(e,t={})=>{if(!this.videoConfig)return;let{albumId:n,statPlace:r,statUserSalt:i,statTrackCode:a,statVKAppId:o,refreshStatAuthToken:s,autoplay:c,isTouch:l,refDomain:u,deviceId:d}=$f(this.videoConfig,t),{unitedVideoId:f,isClip:p=!1}=e;if(this.uiConfig.features.statistics&&f)try{return new Qf.OneStat({movieId:f,albumId:n,place:r,trackCode:a,vkAppId:o,autoplay:c??!1,mobile:l,clip:p,refDomain:u,deviceId:d,isPreviewPlayerView:!1},{refreshAuthToken:s,userSalt:i,config:this.statisticsConfig})}catch(e){console.error(e)}}),this.subscription=new Xf.Subscription,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=wc(ff,{target:this.playerContainer}))})}connectedCallback(){if(this.rootContainer)return;this.initPlayerRootContainers();let e=Wo({title:this.getAttribute(`stub-title`)??void 0,thumbUrl:this.getAttribute(`stub-thumb-url`)??void 0});this.svelteStubComponent=wc(lf,{target:this.playerContainer,props:e}),this.postponedInitParams&&=(this.initPlayer(...this.postponedInitParams),null)}disconnectedCallback(){this.focusManager?.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),this.internalsExposure?.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,t={}){if(!this.videoConfig)return;let{deviceId:n,preload:r,refreshStatAuthToken:i}=$f(this.videoConfig,t),{unitedVideoId:a}=e;if(this.uiConfig.features.thinStatistics&&a)return new Qf.ThinOneStat.ThinOneStat({deviceId:n,movieId:a,preload:r,isPreviewPlayerView:!1},{config:this.statisticsConfig,refreshAuthToken:i})}createPlayer(e,t={},n){if(!this.videoConfig)return;let{statAuthToken:r,preload:i,autoplay:a,volume:o,muted:s,fromTime:c,canRewindLive:l,supportLink:u,showAds:d,adsSlotId:f,adsParams:p={},adsAutoplayParam:m,interfaceLanguage:h,isCyrillicRelatedInterface:g,isAudioDisabled:_,isLiveCatchUpMode:v,fullScreenTarget:y,failoverHosts:b,canDownload:x,callbacks:S,saveRate:C,volumeMultiplier:w,showEndScreen:T,mediascopePixels:E}=$f(this.videoConfig,t),{sources:D,title:O,thumbUrl:k,unitedVideoId:A,duration:j,adsParams:M={},previewThumbsData:N,subtitles:P,subtitlesForcedLanguage:ee,live:te,adsExternalApi:ne}=e;if(!D&&!te){var re;let e=Error(`empty sources and live`);this.fatalError$.next(e),S==null||(re=S.onCrashed)==null||re.call(S,e.message);return}let ie={...p,...M},ae={focusManager:this.focusManager},oe=this.createOneStat(e,t),se=this.createThinOneStat(e,t),ce;E&&(ce=new Qf.MediascopePixel({pixels:E})),(oe||se)&&(this.statistics=new tp(oe,se,ce)),this.store=Jf({player:n,interfaceLanguage:h,isCyrillicRelatedInterface:g,videoId:A,isLiveCatchUpMode:v,isAudioDisabled:_,statAuthToken:r,callbacks:S,webApi:ae,previewThumbsData:N,canDownload:x,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,saveRate:C,stopPlayer:()=>this.stop(),statistics:this.statistics,internalsExposure:this.internalsExposure,playerId:this.playerId});let le=()=>{var e;if(!(!this.store||!this.videoConfig)){if(this.subscription.add(this.store.state.currentFormat$.subscribe(e=>{var t;return S==null||(t=S.onCurrentFormatChanged)==null?void 0:t.call(S,e)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(e=>{var t;return S==null||(t=S.onThroughputEstimationChanged)==null?void 0:t.call(S,e)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(e=>{var t;return S==null||(t=S.onTrafficSavingEnabledChanged)==null?void 0:t.call(S,e)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(e=>{var t;return S==null||(t=S.onHighQualityEnabledChanged)==null?void 0:t.call(S,e)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(e=>{var t;return S==null||(t=S.onAutoQualityEnabledChanged)==null?void 0:t.call(S,!!e)})),this.subscription.add(new Xf.Observable(e=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(t=>e.next(t)))}).pipe(Xf.skip(1)).subscribe(e=>{var t;return S==null||(t=S.onCurrentPlaybackRateChanged)==null?void 0:t.call(S,e)})),this.subscription.add(this.store.state.volume$.subscribe(e=>{var t;return S==null||(t=S.onVolumeChange)==null?void 0:t.call(S,e)})),this.subscription.add(this.store.state.muted$.subscribe(e=>{if(e){var t;S==null||(t=S.onMute)==null||t.call(S)}else{var n;let e=(this.store?.state.volume$&&Y(this.store.state.volume$))??0;S==null||(n=S.onUnmute)==null||n.call(S,e)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(e=>{var t;return S==null||(t=S.onVideoBitrateChanged)==null?void 0:t.call(S,e)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(e=>{var t;return S==null||(t=S.onVSIDChanged)==null?void 0:t.call(S,e)})),Ro(sp,{sources:D,store:this.store,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:O,thumbUrl:k,subtitles:P,subtitlesForcedLanguage:ee,live:te,preload:i,autoplay:a,muted:s,volume:o,fromTime:c,canRewindLive:l,supportLink:u,showAds:d,adsSlotId:f,adsParams:ie,adsAutoplayParam:m,duration:j,failoverHosts:b,fullScreenTarget:y,saveRate:C,shadowRootContainer:this.shadowRootContainer,outerContainerRef:this.rootContainer,volumeMultiplier:w,showEndScreen:T,adsExternalApi:ne,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0),this.svelteRootComponent=wc(nf,{target:this.playerContainer,props:G(sp)}),!this.isInited){var t,n;this.isInited=!0,(t=this.videoConfig)==null||(t=t.callbacks)==null||(n=t.onInited)==null||n.call(t)}this.internalsExposure?.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig}),this.uiConfig.devNullLog&&!((e=this.videoConfig)==null||(e=e.callbacks)==null)&&e.onDevNullLog?np.devNull.subscribe(`ui`,this.videoConfig.callbacks.onDevNullLog):np.devNull.destroy(`ui`)}};this.coreConfig.asyncResolveClientChecker?Zf.clientChecker.isInited$.subscribe(e=>{e&&(console.log(`UI TV SDK async start`),le())}):le()}initPlayer(e,t={}){var n,r;if(!this.isConnected){this.postponedInitParams=[e,t];return}if(!Array.isArray(e.videos)||e.videos.length===0){var i,a;let t=Error(`empty videos`);this.fatalError$.next(t),(i=e.callbacks)==null||(a=i.onCrashed)==null||a.call(i,t.message);return}else this.fatalError$.next(null);this.videoConfig=$f(op,Xf.cloneDeepWith(e,e=>e instanceof ap?e:void 0)),this.playerId=Xf.getPlayerId(e.playerId),this.uiConfig=Il(t.ui??{}),this.coreConfig=t.core??{},this.statisticsConfig=t.statistics??{},this.metaConfig=t.meta,this.uiConfig.features.exposeInternalsToGlobal&&(this.internalsExposure??=new Xf.InternalsExposure(`ui`,this.playerId)),np.devNull.push(`ui`,{key:`videoplayer_embed`,strings:[`new`,`player_init_player`,`ads.enable: `+this.uiConfig.ads.enable,`showAds: `+this.videoConfig?.showAds],numbers:[Yf.now()]}),(n=this.videoConfig).autoplay&&(n.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,(r=this.videoConfig).canRewindLive&&(r.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&this.videoConfig.videos?.[this.videoConfig.videoIndex]?this.videoConfig.videoIndex:0,this.focusManager=this._shadowRoot?new ip(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(){this.store?.playerPhase.is(`LiveWaitingStart`)||this.store?.playerPhase.is(`LiveWaitingRecover`)||this.store?.playerPhase.is(`LiveWaitingRecord`)||this.svelteRootComponent?.play()}pause(){this.svelteRootComponent?.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){this.svelteRootComponent?.setMuted(e)}toggleSubtitle(){this.svelteRootComponent?.toggleSubtitle()}changeSubtitle(e,t){this.svelteRootComponent?.changeSubtitle(e,t)}setVolume(e){this.svelteRootComponent?.setVolume(e)}seekTime(e){this.svelteRootComponent?.seekTime(e)}setPlaybackRate(e){this.svelteRootComponent?.setPlaybackRate(e)}setAutoQualityLimits(e){this.svelteRootComponent?.setAutoQualityLimits(e)}setAutoQuality(){this.svelteRootComponent?.setAutoQuality()}toggleTrafficSaving(e){this.svelteRootComponent?.toggleTrafficSaving(e)}toggleHighQuality(e){this.svelteRootComponent?.toggleHighQuality(e)}changeAudioStream(e){this.svelteRootComponent?.changeAudioStream(e)}addLanguage(e){this.store?.actions.internal.addLanguage(e)}async setLanguage(e){await this.store?.actions.internal.setLanguage(e)}setLiveStart(e){this.isLiveTailPlaying()||(this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){this.store?.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){let e=this.store?.getPlayer();if(!e)return!1;let{info:t}=e;return t.canPlayLiveTailBuffer$.getValue()&&!t.isStalled$.getValue()&&!t.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){let t=this.isLiveTailPlaying(),n=e||!t,r=()=>{this.store?.actions.internal.setLiveWaitingRecover(!0)};n&&r(),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{n||r(),this.store?.destroy()})}setLiveWaitingRecord(){let e=!this.isLiveTailPlaying(),t=()=>{this.store?.actions.internal.setLiveWaitingRecord(!0)};e&&t(),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{e||t(),this.store?.destroy()})}setLiveEnd(e){let t=!this.isLiveTailPlaying(),n=()=>{this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(t){n();return}this.store?.callbacks&&(this.store.callbacks.onLiveEnded=n)}setLiveLowLatency(e){this.store?.actions.external.setLiveLowLatency(e)}setLooped(e){this.store?.actions.internal.setLooped(e)}getDebugData(){return this.store?.actions.internal.getDebugTextData()??``}getDeviceId(){var e;return((e=this.statistics)==null||(e=e.oneStat)==null?void 0:e.getDeviceId())??void 0}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}restoreFocus(){this.focusManager?.restoreFocus()}getTotalViewTime(){var e;return(e=this.statistics)==null||(e=e.thinOneStat)==null?void 0:e.getTotalViewTime()}unmountComponent(e){e&&Oc(e)}}var lp=require(`@vkontakte/videoplayer-shared/es2018`),up=require(`@vkontakte/videoplayer-core/es2018`),dp=()=>{window.customElements.define(`vk-video-player-tv`,cp)};