!function(b){(function(){if("undefined"!=typeof module&&module.exports)return function(e){module.exports=e()};if("function"==typeof define&&define.amd)return define;if("undefined"!=typeof window)return function(e){window.MobileDetect=e()};throw new Error("unknown environment")})()(function(){"use strict";function t(e,t){return null!=e&&null!=t&&e.toLowerCase()===t.toLowerCase()}function n(e,t){var n,i,o=e.length;if(o&&t)for(n=t.toLowerCase(),i=0;is[0]&&t[1]s[0]&&t[1]a)return 1;if(a>r)return-1}var s=n[n.length-1],c=i[i.length-1];if(s&&c){var l=s.split(".").map(S),T=c.split(".").map(S);for(o=0;oT[o])return 1;if(T[o]>l[o])return-1}}else if(s||c)return s?-1:1;return 0}var r=[">",">=","=","<","<="],a={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return o.validate=function(e){return"string"==typeof e&&t.test(e)},o.compare=function(e,t,n){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===r.indexOf(e))throw new TypeError("Invalid operator, expected one of "+r.join("|"))}(n);var i=o(e,t);return a[n].indexOf(i)>-1},o})?i.apply(t,[]):i)&&(e.exports=t)},function(e,t,n){"use strict";n.d(t,"a",function(){return T});var i=n(1),o=n(2),r=n(0),t=n(3),a=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(n,t){function i(e){try{r(c.next(e))}catch(e){t(e)}}function o(e){try{r(c.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((c=c.apply(e,a||[])).next())})},s=this&&this.__generator||function(i,o){var r,a,s,c={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(r)throw new TypeError("Generator is already executing.");for(;c;)try{if(r=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,a=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0<(s=c.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]s[0]&&t[1]s[0]&&t[1]s[0]&&t[1]s[0]&&t[1]s[0]&&t[1]s[0]&&t[1]${e.html}`),$(`#cm-${e.parentId} .cm-btn-show-rep`).addClass("active"),$("#replies-"+e.parentId).slideToggle(100),$("#reply-"+e.parentId).slideToggle(100)):($("#df-cm-buttons").slideUp(100),$(".list-comment .cw_list").html(e.html)),i[0].reset(),i.find(".btn-spoil").removeClass("active")):(n="",e.errors&&0{n+=`- ${e}`}):n=e.msg,i.find(".cm-error").html(n),i.find(".cm-error").show(),setTimeout(function(){i.find(".cm-error").hide()},1e4))})}}),window.addEventListener("scroll",function(){isInViewport(document.getElementById("content-comments"))&&!commentLoaded&&epId&&getCommentWidgetMovie("episode")});var continueWatch=null,playerCurrentTime=0,playerPrevTime=0,playerCurrentPercent=0,playerDuration=0,epId=null,epNumber=null,firstLoad=!0,intervalContinueWatchLog=null;const keyLsCurrentServer="v2.7_currentServer";function urlGetParamByName(){var i={};return window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(e,t,n){i[t]=n}),i}function countViewMovie(){"watch"===page&&void 0===Cookies.get("watched_"+movieId)&&setTimeout(function(){$.post("/ajax/movie/count-view/"+movieId,function(e){Cookies.set("watched_"+movieId,!0,{path:"/",expires:2/24})})},6e4)}function nextEpisode(){var e,t;$(".ep-item.active").is(":last-child")?(e=(t=$(".ep-page-item.active").next()).data("page"),0
'),$("#episode-guide").empty(),$("#iframe-embed").hide(),$("#iframe-embed").attr("src",""),$("#embed-loading").show(),$.get("/ajax/v2/episode/servers?episodeId="+epId,function(e){var t,n;e&&($("#servers-content").html(e.html),$("#content-guide").addClass("only-one"),$("#episode-guide").html(e.htmlGuide),$("#embed-loading").hide(),e=localStorageGet("currentSource"),(e=(t=urlGetParamByName().source)?t:e)&&0<$(".servers-"+e).length?(t=localStorageGet(keyLsCurrentServer),n=$(".servers-"+e+" .server-item[data-server-id="+t+"]"),(t&&0