ckplayer-plus 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ckplayer.js +84 -51
- package/dist/ckplayer.min.js +2 -2
- package/dist/index.cjs +63 -43
- package/dist/index.js +63 -43
- package/dist/react.cjs +63 -43
- package/dist/react.js +63 -43
- package/dist/vue.cjs +63 -43
- package/dist/vue.js +63 -43
- package/package.json +1 -1
package/dist/ckplayer.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(v,p){typeof exports=="object"&&typeof module!="undefined"?module.exports=p():typeof define=="function"&&define.amd?define(p):(v=v||self,v.ckplayer=p())})(this,function(){"use strict";var language={play:"%E6%92%AD%E6%94%BE",pause:"%E6%9A%82%E5%81%9C",refresh:"%E9%87%8D%E6%92%AD",full:"%E5%85%A8%E5%B1%8F",exitFull:"%E9%80%80%E5%87%BA%E5%85%A8%E5%B1%8F",webFull:"%E9%A1%B5%E9%9D%A2%E5%85%A8%E5%B1%8F",exitWebFull:"%E9%80%80%E5%87%BA%E9%A1%B5%E9%9D%A2%E5%85%A8%E5%B1%8F",theatre:"%E5%89%A7%E5%9C%BA%E6%A8%A1%E5%BC%8F",exitTheatre:"%E9%80%80%E5%87%BA%E5%89%A7%E5%9C%BA%E6%A8%A1%E5%BC%8F",volume:"%E9%9F%B3%E9%87%8F%EF%BC%9A",muted:"%E9%9D%99%E9%9F%B3",exitmuted:"%E6%81%A2%E5%A4%8D%E9%9F%B3%E9%87%8F",seek:"seek%EF%BC%9A",waiting:"%E7%BC%93%E5%86%B2",live:"%E7%9B%B4%E6%92%AD%E4%B8%AD",backLive:"%E8%BF%94%E5%9B%9E%E7%9B%B4%E6%92%AD",lookBack:"%E5%9B%9E%E7%9C%8B%EF%BC%9A",next:"%E4%B8%8B%E4%B8%80%E9%9B%86",screenshot:"%E8%A7%86%E9%A2%91%E6%88%AA%E5%9B%BE",smallwindows:"%E5%B0%8F%E7%AA%97%E5%8F%A3%E6%92%AD%E6%94%BE%E5%8A%9F%E8%83%BD",playbackrate:"%E5%80%8D%E9%80%9F",playbackrateSuffix:"%E5%80%8D",track:"%E5%AD%97%E5%B9%95",noTrack:"%E6%97%A0%E5%AD%97%E5%B9%95",definition:"%E6%B8%85%E6%99%B0%E5%BA%A6",switchTo:"%E5%88%87%E6%8D%A2%E6%88%90%EF%BC%9A",closeTime:"%7Bseconds%7D%E7%A7%92%E5%90%8E%E5%8F%AF%E5%85%B3%E9%97%AD%E5%B9%BF%E5%91%8A",closeAd:"%E5%85%B3%E9%97%AD%E5%B9%BF%E5%91%8A",second:"%E7%A7%92",details:"%E6%9F%A5%E7%9C%8B%E8%AF%A6%E6%83%85",copy:"%E5%A4%8D%E5%88%B6",copySucceeded:"%E5%A4%8D%E5%88%B6%E6%88%90%E5%8A%9F%EF%BC%8C%E5%8F%AF%E8%B4%B4%E7%B2%98%EF%BC%81",smallwindowsOpen:"%E5%B0%8F%E7%AA%97%E5%8F%A3%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%BC%80%E5%90%AF",smallwindowsClose:"%E5%B0%8F%E7%AA%97%E5%8F%A3%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%85%B3%E9%97%AD",screenshotStart:"%E6%88%AA%E5%9B%BE%E4%B8%AD%EF%BC%8C%E8%AF%B7%E7%A8%8D%E5%80%99...",screenshotClose:"%E6%88%AA%E5%9B%BE%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%85%B3%E9%97%AD",loopOpen:"%E5%BE%AA%E7%8E%AF%E6%92%AD%E6%94%BE",loopClose:"%E5%B7%B2%E5%85%B3%E9%97%AD%E5%BE%AA%E7%8E%AF%E6%92%AD%E6%94%BE",close:"%E5%85%B3%E9%97%AD",down:"%E4%B8%8B%E8%BD%BD",p50:"50%25",p75:"75%25",p100:"100%25",timeScheduleAdjust:{prohibit:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E6%8B%96%E5%8A%A8",prohibitBackOff:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E9%87%8D%E5%A4%8D%E8%A7%82%E7%9C%8B",prohibitForward:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E5%BF%AB%E8%BF%9B",prohibitLookBack:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E6%92%AD%E6%94%BE%E9%83%A8%E5%88%86%E5%86%85%E5%AE%B9",prohibitForwardNotViewed:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E6%92%AD%E6%94%BE%E6%9C%AA%E8%A7%82%E7%9C%8B%E7%9A%84%E9%83%A8%E5%88%86"},error:{noMessage:"%E6%9C%AA%E7%9F%A5%E9%94%99%E8%AF%AF",supportVideoError:"%E8%AF%A5%E6%B5%8F%E8%A7%88%E5%99%A8%E7%89%88%E6%9C%AC%E5%A4%AA%E4%BD%8E%EF%BC%8C%E5%BB%BA%E8%AE%AE%E6%9B%B4%E6%8D%A2%E6%88%90%E5%85%B6%E5%AE%83%E6%B5%8F%E8%A7%88%E5%99%A8",videoTypeError:"%E8%AF%A5%E6%B5%8F%E8%A7%88%E5%99%A8%E4%B8%8D%E6%94%AF%E6%8C%81%E6%92%AD%E6%94%BE%E8%AF%A5%E8%A7%86%E9%A2%91%EF%BC%8C%E5%BB%BA%E8%AE%AE%E6%9B%B4%E6%8D%A2%E6%88%90%E5%85%B6%E5%AE%83%E6%B5%8F%E8%A7%88%E5%99%A8",loadingFailed:"%E5%8A%A0%E8%BD%BD%E5%A4%B1%E8%B4%A5",emptied:"%E8%A7%86%E9%A2%91%E6%96%87%E4%BB%B6%E5%8A%A0%E8%BD%BD%E8%BF%87%E7%A8%8B%E4%B8%AD%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF",screenshot:"%E8%A7%86%E9%A2%91%E6%88%AA%E5%9B%BE%E5%A4%B1%E8%B4%A5",ajax:"Ajax%E6%95%B0%E6%8D%AE%E8%AF%B7%E6%B1%82%E9%94%99%E8%AF%AF",noVideoContainer:"%E6%9C%AA%E6%89%BE%E5%88%B0%E6%94%BE%E7%BD%AE%E8%A7%86%E9%A2%91%E7%9A%84%E5%AE%B9%E5%99%A8"}},videoObjectDefault={container:"",volume:.8,poster:"",autoplay:!1,loop:!1,live:!1,rotate:0,zoom:0,ad:null,backLive:!1,seek:0,next:null,loaded:null,plug:"",duration:0,preview:null,prompt:null,crossOrigin:"",video:null,type:"",playbackrate:1,ended:null,webFull:!1,theatre:null,controls:!1,rightBar:null,smallWindows:null,smallWindowsDrag:!0,screenshot:!1,timeScheduleAdjust:1,logo:"",menu:null,information:{"Load:":"{loadTime} second","Duration:":"{duration} second","Size:":"{videoWidth}x{videoHeight}","Volume:":"{volume}%","Fps:":"{fps}fps","Sudio decoded:":"{audioDecodedByteCount} Byte","Video decoded:":"{videoDecodedByteCount} Byte"},track:null,title:"",language:"",barHideTime:1500,playbackrateOpen:!0,playbackrateList:[.75,1,1.25,1.5,2,4],cookie:null,domain:null,cookiePath:"/",documentFocusPause:!1,mouseWheelVolume:2,keyVolume:2,errorShow:!0,pluginPath:"",autoPlug:!0,preferBuiltinPlug:!0,cdnFallback:!0},ckplayerPlusDefaultCdn="https://cdn.jsdelivr.net/npm/ckplayer-plus@1.1.7/dist/";function ckplayerEmbed(v){var p=[{title:"ckplayer",link:"http://www.ckplayer.com"},{title:"version:X3",underline:!0},{title:"about",click:"aboutShow"}],a={},k={},o=null,T=0,G="",de=!1,W=!0,L=!0,_=0,F=0,ee=null,De=0,se=!1,Me=!1,We=0,bt=!1,ge=-1,xe=!1,Ne=-1,it=0,Ae=!1,fe=!1,oe=!1,le=0,ye=0,ie=-1,$=0,je=!0,mt="",Ve=null,qe=null,be=null,nt=null,rt=null,Ye=null,gt=null,Te=!0,Xe=null,ke=!1,yi=0,ze=0,Ie=null,h=null,at=!1,dn=!1,Dt=!0,Mt=!0,Oe=null,z=null,_e=null,yt=!1,e={},b=null,C=null,P=null,re=null,I=null,S=null,Wt=!0,kt="",Be=0,ce=100,wt=!1,Et=!1,Ce="ckplayer-player-cookie",pe="",He=0,ki=[],zt=!0,Se=!1;function $e(t){if(typeof t=="string"){var i=t.replace(/\(\s*\)\s*;?\s*$/,"").trim();if(/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*)*$/.test(i)){for(var n=i.split("."),r=typeof window!="undefined"?window:this,s=r,l=0;l<n.length;l++){if(s==null)return;r=s,s=s[n[l]]}if(typeof s=="function")return s.call(r)}}}var ot=function(t){if(isUndefined(t))return f.add=f.into=ot,f;language=decodeURIString(language),isUndefined(window.ckplayerLanguage)||(language=mergeObj(language,window.ckplayerLanguage)),B(),documentHidden(function(r){B("visibilityState",r)}),kt=getApp(),k={};for(var i in videoObjectDefault)k[i]=videoObjectDefault[i];if(valType(t)=="string"&&(t.substr(0,8)=="website:"||t.substr(0,4)=="url:")){var n="";t.substr(0,8)=="website:"&&(n=t.substring(8)),t.substr(0,4)=="url:"&&(n=t.substring(4)),ajax({url:n,success:function(r){return r?ot(r):(Qe(language.error.ajax+",url:"+n),null)}})}else return valType(t)=="object"?(k=standardization(k,t),!isUndefined(t.container)&&t.container?(b=M(t.container),b?It(t):Ot(t)):Ot(t)):(Qe(language.error.noVideoContainer),null)},Ot=function(t){return documentReady(function(){return isUndefined(t.container)?wi(t):(b=M(t.container),b?It(t):(Qe(language.error.noVideoContainer),null))}),null},wi=function(t){if(valType(t.video)=="string"&&(t.video.substr(0,8)=="website:"||t.video.substr(0,4)=="url:")){k=standardization(k,t);var i="";t.video.substr(0,8)=="website:"&&(i=t.video.substring(8)),t.video.substr(0,4)=="url:"&&(i=t.video.substring(4)),ajax({url:i,success:function(n){return n?ot(n):(Qe(language.error.ajax+",url:"+i),null)}})}else return Qe(language.error.noVideoContainer),null},It=function(t){if(a=standardization(k,t),a.language){if(!isUndefined(window.ckplayerLanguage))return language=mergeObj(language,window.ckplayerLanguage),xt(t);var i=st("language",a.language+".js");tt(i,function(){return isUndefined(window.ckplayerLanguage)||(language=mergeObj(language,window.ckplayerLanguage)),xt(t)})}else return xt(t)},Ht=function(t){return!t||valType(t)!="string"?!0:/\/(?:assets|\.vite\/deps|_next\/static|chunks?)\/?$/i.test(t)},st=function(t,i){var n="";if(a&&a.pluginPath?n=a.pluginPath:typeof window!="undefined"&&window.ckplayerBasePath&&(n=window.ckplayerBasePath),n&&Ht(n)&&(n=""),n)return n.slice(-1)!=="/"&&(n+="/"),n+t+"/"+i;var r=getPath(t)+i;if(r&&r.indexOf(t+"/")>-1&&r.indexOf("undefined")===-1&&!Ht(getPath()))return r;var s=!a||a.cdnFallback!==!1,l=typeof window!="undefined"&&window.ckplayerPlusCdn?window.ckplayerPlusCdn:ckplayerPlusDefaultCdn;return!s||!l||l.indexOf("1.1.7")>-1?t+"/"+i:(l.slice(-1)!=="/"&&(l+="/"),l+t+"/"+i)},Ei=function(t){var i="";if(valType(t)=="string"?i=t:valType(t)=="array"&&t.length?valType(t[0])=="array"&&t[0].length?i=t[0][0]:valType(t[0])=="string"&&(i=t[0]):valType(t)=="object"&&t&&(i=t.url||t.file||""),!i||valType(i)!="string"||i.substr(0,8)=="website:"||i.substr(0,4)=="url:")return"";var n=i.split("?")[0].split("#")[0].toLowerCase();return n.indexOf(".m3u8")>-1?"hls.js":n.indexOf(".flv")>-1?"flv.js":n.indexOf(".m2ts")>-1||n.indexOf(".mts")>-1||n.length>3&&n.substring(n.length-3)===".ts"?"mpegts.js":""},xi=function(t){if(a.autoPlug!==!1&&!a.plug){var i=Ei(t);i&&(a.plug=i)}},xt=function(t){if(G=!(a.volume>0),!isUndefined(b)&&b!=null)valType(b)=="htmlarray"&&(b=b.eq(0));else return null;on(),Se=valType(a.video)=="string"&&(a.video.substr(0,1)=="."&&a.video.indexOf("/")==-1||a.video.substr(0,1)=="#"),Se&&(C=b.find(".ckplayer-ckplayer")?b.find(".ckplayer-ckplayer").eq(0):null,C&&(P=C.find(".ck-main")?C.find(".ck-main").eq(0):null),P&&(re=P.find(".ck-video")?P.find(".ck-video").eq(0):null)),(!C||!P||!re)&&(b.htm(""),C=w("ckplayer-ckplayer"),b.append(C),P=w("ck-main"),C.append(P),re=w("ck-video"),P.append(re)),o&&(o.remove(),o=null),Se&&(o=M(a.video)?M(a.video).eq(0):null),o||(o=ln(),o.attr("width","100%").attr("height","100%"),re.append(o)),o.volume=a.volume,a.autoplay?(f.volume(0),f.muted(),de=!0,o.attr("preload","auto"),lt()>0?Me=!1:Me=!0):o.attr("preload","metadata"),b.loop=a.loop,b.loop&&o.attr("loop","loop"),a.controls?o.controls=!0:o.controls=!1;try{Se||(o.attr("controlslist","nodownload"),o.attr("x-webkit-airplay","true"),o.attr("x5-video-orientation","portraint"),o.attr("playsinline","true"),o.attr("webkit-playsinline","true"),o.attr("x5-playsinline","true")),a.crossOrigin&&(o.useCORS=!0,o.crossOrigin=a.crossOrigin)}catch(i){}if(b.smallWindows=!0,b.webFull=!1,b.theatre=!1,Ui(),a.rotate>0&&f.rotate(a.rotate),a.zoom>0&&f.zoom(a.zoom),isUndefined(o.canPlayType))return b.error={code:5,message:language.error.supportVideoError},B("error",b.error),ue(),f;if(Fi(),!isUndefined(a.loaded))if(valType(a.loaded)=="function")try{a.loaded(f)}catch(i){}else valType(a.loaded)=="string"&&typeof console!="undefined"&&console.warn&&console.warn("[ckplayer] vars.loaded as string is ignored for security. Pass a function instead.");return Re(Se?o.attr("src"):a.video),f},lt=function(){if(isUndefined(a.seek))return 0;if(valType(a.seek)=="number"&&a.seek>0)return a.seek;if(valType(a.seek)=="string"&&a.seek=="cookie"&&pe){var t=f.cookie(pe);return t&&t.time?t.time:0}return valType(a.seek)=="string"&&a.seek!==""&&!isNaN(parseFloat(a.seek))?parseFloat(a.seek):0},Rt=function(t){!t||t<=0||(F=t,$=Math.max($,t),ie<0&&(ie=t))},Ai=function(){a.cookie&&(valType(a.cookie)=="array"&&a.cookie.length>=2&&(a.cookie[0]&&valType(a.cookie[0])=="string"&&(pe=a.cookie[0]),a.cookie[1]&&valType(a.cookie[1])=="number"&&(He=a.cookie[1])),valType(a.cookie)=="object"&&!isUndefined(a.cookie.name)&&(pe=a.cookie.name,!isUndefined(a.cookie.hour)&&valType(a.cookie.hour)=="number"&&(He=a.cookie.hour)),valType(a.cookie)=="string"&&(pe=a.cookie),pe&&(pe=pe.replace(/[ ]*,[ ]*|[ ]+/g,"").replace(/[ ]*;[ ]*|[ ]+/g,""))),F||Rt(lt()),F>0&&(Me=!1)},fn=function(t,i){if(!S||typeof S.startLoad!="function"||!o)return!1;(isNaN(t)||t<0)&&(t=0);var n=o.currentTime||0;if(ge=t,!i&&Ze(t)){if(Math.abs(n-t)<1.5)return!0;if(Yt(t))return Pe(t),!0}var r=Ut(t);if(!i&&Ne>=0&&Math.abs(Ne-r)<1.5&&Date.now()-it<4e3)return!0;Ne=r,it=Date.now(),xe=!0;try{S.startLoad(r)}catch(s){return!1}return!0},Ti=function(t){if(!S||!o)return!1;(isNaN(t)||t<0)&&(t=0);var i=T||o.duration||0;i&&isFinite(i)&&i>0&&t>=i&&(t=Math.max(0,i-.3));var n=!L;if(fe=!0,Ae=n,Ge(),xe=!1,oe=!1,ge=-1,F=0,se=!0,Ze(t)){try{o.currentTime=t}catch(r){return se=!1,fe=!1,!1}return setTimeout(function(){if(se=!1,fe=!1,e.buffer&&e.buffer.hide(),W=!0,n){Ae=!1;try{f.play()}catch(r){}}else Ae=!1},80),!0}try{o.currentTime=t}catch(r){return se=!1,fe=!1,!1}return setTimeout(function(){se=!1},120),!0},Je=function(){W=!0,e.buffer&&e.buffer.hide(),e.loading&&e.loading.hide()},Bi=function(){if(Ge(),se=!1,bt=!1,ge=-1,xe=!1,Ne=-1,it=0,Ae=!1,fe=!1,oe=!1,We=0,S){try{S.destroy()}catch(t){}S=null}if(I){try{I.pause(),I.unload(),I.detachMediaElement(),I.destroy()}catch(t){}I=null}},Re=function(t){var i=0;if(xi(t),Ai(),Bi(),(o.attr("src")||o.htm())&&f.pause(),o.attr("src")&&!Se&&(o.attr("src",""),o.removeAttr("src")),!isUndefined(o.textTracks)&&o.textTracks.length>0)for(i=o.find("track").length-1;i>-1;i--)o.find("track").eq(i).remove();Se||o.htm(""),isUndefined(a.ad)||(h=a.ad);var n="";if(valType(t)=="string")if(t.substr(0,8)=="website:"||t.substr(0,4)=="url:"){var r="";t.substr(0,8)=="website:"&&(r=t.substring(8)),t.substr(0,4)=="url:"&&(r=t.substring(4)),ajax({url:r,success:function(l){l!=null?(a=standardization(k,l),Re(a.video)):(b.error={code:8,message:language.error.ajax},B("error",b.error),ue())}});return}else a.plug&&!ut(t)?At(t):Se||o.attr("src",t),Tt();else if(valType(t)=="array"){for(i=0;i<t.length;i++)if(valType(t[i])=="array")if(a.plug&&!ut(t[i][0]))At(t[i][0]);else{var s=' type="'+t[i][1]+'"';t[i].length>1&&(n+='<source src="'+decodeURIComponent(t[i][0])+'"'+s+">")}n&&o.htm(n),Tt()}else valType(t)=="object"&&(a.plug?At(t):(b.error={code:10,message:language.error.emptied},B("error",b.error),ue()),Tt());!isUndefined(o.find("source"))&&o.find("source").length>0&&o.find("source").eq(o.find("source").length-1).addListener("error",J.error),Oi(),Kt(),je&&ii()},At=function(t){switch(a.plug){case"hls.js":Nt(t);break;case"flv.js":jt(t);break;case"mpegts.js":Vt(t);break;case"dash.js":b.error={code:10,message:language.error.emptied},B("error",b.error),ue();break;default:valType(a.plug)=="function"?a.plug(o,t):(b.error={code:10,message:language.error.emptied},B("error",b.error),ue());break}},Nt=function(t){var i=function(){if(typeof Hls!="undefined"&&!isUndefined(Hls)&&Hls.isSupported()){if(S){try{S.destroy()}catch(s){}S=null}var n={enableWorker:!1,maxBufferLength:30,maxMaxBufferLength:600,maxBufferSize:60*1e3*1e3,backBufferLength:90},r=F;r||(r=lt()),r&&r>0&&(isUndefined(a.live)||!a.live)&&($=Math.max($,r),ie<0&&(ie=r),F=r,ge=r,oe=!0,xe=!1),S=new Hls(n),S.loadSource(t),S.attachMedia(o),S.on(Hls.Events.MANIFEST_PARSED,function(){if(F>0&&oe){bt=!0;var s=function(){if(!(!F||!oe)){var l=F;if(o&&(o.readyState>=1||T&&isFinite(T)&&T>0)){Pe(l);return}De++,De<=25?(ee&&clearTimeout(ee),ee=setTimeout(s,120)):Pe(l)}};s(),setTimeout(function(){oe&&F>0&&Pe(F)},4e3);return}bt||Ue()}),S.on(Hls.Events.FRAG_BUFFERED,function(s,l){if(!(oe&&F>0)&&!(ge<=0||!l||!l.frag)){var A=l.frag.start,d=A+l.frag.duration;ge>=A-.5&&ge<=d+.5&&Je()}}),S.on(Hls.Events.ERROR,function(s,l){var A=9,d=language.error.loadingFailed,g=l.fatal;if(isUndefined(l.response)||(isUndefined(l.response.code)||(A=l.response.code),!isUndefined(l.response.text)&&l.response.text?d=l.response.text:isUndefined(s)||(d=s)),g&&S){if(l.type===Hls.ErrorTypes.NETWORK_ERROR&&typeof S.startLoad=="function")try{l.details==="keyLoadError"?setTimeout(function(){S&&typeof S.startLoad=="function"&&S.startLoad()},2e3):S.startLoad(),g=!1}catch(E){}else if(l.type===Hls.ErrorTypes.MEDIA_ERROR&&typeof S.recoverMediaError=="function")try{S.recoverMediaError(),g=!1}catch(E){}}b.error={code:A,message:d},B("error",b.error),g&&ue()})}else ut(t)&&o.attr("src",t)};if(typeof Hls!="undefined"&&!isUndefined(Hls)&&!a.preferBuiltinPlug){i();return}tt(st("hls.js","hls.min.js"),i)},jt=function(t){var i=function(){if(typeof flvjs!="undefined"&&!isUndefined(flvjs)&&flvjs.isSupported()){var n={type:"flv",url:t};valType(t)=="object"&&(n=t),a.live&&(n.isLive=!0),I&&(I.pause(),I.unload(),I.detachMediaElement(),I.destroy(),I=null),I=flvjs.createPlayer(n),I.attachMediaElement(o),I.load(),I.on(flvjs.Events.METADATA_ARRIVED,function(r){J.loadedMetaData()}),I.on(flvjs.Events.ERROR,function(r,s,l){b.error={code:l.code,message:l.msg},B("error",b.error),ue()})}};if(typeof flvjs!="undefined"&&!isUndefined(flvjs)&&!a.preferBuiltinPlug){i();return}tt(st("flv.js","flv.min.js"),i)},Vt=function(t){var i=function(){if(typeof mpegts!="undefined"&&!isUndefined(mpegts)&&mpegts.getFeatureList().mseLivePlayback){var n={type:"mse",url:t};valType(t)=="object"&&(n=t),a.live&&(n.isLive=!0),I&&(I.pause(),I.unload(),I.detachMediaElement(),I.destroy(),I=null),I=mpegts.createPlayer(n),I.attachMediaElement(o),I.load(),I.on(mpegts.Events.METADATA_ARRIVED,function(r){J.loadedMetaData()}),I.on(mpegts.Events.ERROR,function(r,s,l){b.error={code:l.code,message:l.msg},B("error",b.error),ue()})}};if(typeof mpegts!="undefined"&&!isUndefined(mpegts)&&!a.preferBuiltinPlug){i();return}tt(st("mpegts.js","mpegts.min.js"),i)},ut=function(t,i){var n=[{vidType:"video/ogg",codType:"theora, vorbis"},{vidType:"video/mp4",codType:"avc1.4D401E, mp4a.40.2"},{vidType:"video/mp4",codType:"avc1"},{vidType:"video/mp4",codType:"hevc"},{vidType:"video/webm",codType:"vp8.0, vorbis"},{vidType:"video/webm",codType:"vp9"},{vidType:"",codType:"application/x-mpegURL"},{vidType:"",codType:"application/vnd.apple.mpegurl"}],r={ogg:n[0],mp4:[n[1],n[2],n[3]],webm:[n[4],n[5]],m3u8:[n[6],n[7]]},s=[],l="",A=function(x){var D=x.vidType,V="";D?V=D+'; codecs="'+x.codType+'"':V=x.codType;var Y=o.canPlayType(V);return Y==""&&(Y="no"),Y},d=function(x){return x.replace(/.+\./,"")};if(isUndefined(i)){if(valType(t)=="string"){if(a.type)for(l in n)n[l].vidType==a.type&&s.push(n[l]);else if(d(t)&&d(t)in r){var g=r[d(t)];if(valType(g)=="array")for(var E=0;E<g.length;E++)s.push(g[E]);else s.push(g)}}}else s.push(n[i]);var U=!1;if(s.length>0)for(var E=0;E<s.length;E++)A(s[E])!="no"&&(U=!0);return!U&&!a.plug&&(b.error={code:6,message:language.error.videoTypeError},B("error",b.error),ue()),U},Ui=function(){e.loading=w("ck-loading"),P.append(e.loading),e.bar=w("ck-bar"),P.append(e.bar),e.rightBar=w("ck-right-bar ck-right-bar-hide"),P.append(e.rightBar),e.topBar=w("ck-top-bar ck-top-bar-hide"),P.append(e.topBar),e.bar.pbox=w("ck-bar-progress"),e.bar.pbox.bg=w("ck-bar-progress-bg"),e.bar.pbox.load=w("ck-bar-progress-load"),e.bar.pbox.bg.append(e.bar.pbox.load),e.bar.pbox.play=w("ck-bar-progress-play"),e.bar.pbox.bg.append(e.bar.pbox.play),e.bar.pbox.mouseLine=w("ck-bar-progress-mouseline"),e.bar.pbox.bg.append(e.bar.pbox.mouseLine),e.bar.pbox.slider=w("ck-bar-progress-slider"),e.bar.pbox.append(e.bar.pbox.bg).append(e.bar.pbox.slider),e.bar.append(e.bar.pbox),e.bar.mouseout(ji).mouseover(Vi),valType(a.live)=="number"&&(e.bar.pbox.play.css({width:"100%"}),e.bar.pbox.slider.css({left:100-e.bar.pbox.slider.getWidth()*100/e.bar.pbox.bg.getWidth()+"%"})),e.bar.playAndPause=w("ck-bar-playandpause"),e.bar.append(e.bar.playAndPause),e.bar.playAndPause.play=q("ck-bar-btn ck-btn-play"),e.bar.playAndPause.play.click(f.play),e.bar.playAndPause.play.mouseover(function(){j(this,language.play)}),e.bar.playAndPause.append(e.bar.playAndPause.play),e.bar.playAndPause.pause=q("ck-bar-btn ck-btn-pause"),e.bar.playAndPause.pause.click(f.pause),e.bar.playAndPause.pause.mouseover(function(){j(this,language.pause)}),e.bar.playAndPause.append(e.bar.playAndPause.pause),e.bar.playAndPause.pause.hide(),e.bar.playAndPause.refresh=q("ck-bar-btn ck-btn-refresh"),e.bar.playAndPause.refresh.click(f.play),e.bar.playAndPause.refresh.mouseover(function(){j(this,language.refresh)}),e.bar.playAndPause.append(e.bar.playAndPause.refresh),e.bar.nextEpisode=w("ck-bar-btn ck-bar-next"),e.bar.append(e.bar.nextEpisode),e.bar.nextEpisode.click(Ki).mouseover(Gi).mouseout(function(){isUndefined(e.next)||f.closeLayer(e.next)}),isUndefined(a.next)&&e.bar.nextEpisode.hide();var t=formatSeconds(f.time())+"/"+formatSeconds(T);a.live&&(t=language.live),e.time=w("ck-bar-time",t),e.bar.append(e.time),e.bar.backLive=q("ck-btn-backlive",language.backLive),e.bar.append(e.bar.backLive),e.bar.backLive.mouseover(function(){j(this,language.backLive)}).click(function(){B("backLive")}),e.bar.backLive.hide(),e.bar.fullAndExit=w("ck-bar-fullandexit"),e.bar.append(e.bar.fullAndExit),e.bar.fullAndExit.full=q("ck-bar-btn ck-btn-full"),e.bar.fullAndExit.full.click(f.fullOrExit),e.bar.fullAndExit.full.mouseover(function(){j(this,language.full)}),e.bar.fullAndExit.append(e.bar.fullAndExit.full),e.bar.fullAndExit.exitFull=q("ck-bar-btn ck-btn-exitfull"),e.bar.fullAndExit.exitFull.click(f.fullOrExit),e.bar.fullAndExit.exitFull.mouseover(function(){j(this,language.exitFull)}),e.bar.fullAndExit.append(e.bar.fullAndExit.exitFull),e.bar.webFullAndExit=w("ck-bar-webfullandexit"),e.bar.append(e.bar.webFullAndExit),e.bar.webFullAndExit.webFull=q("ck-bar-btn ck-btn-webfull"),e.bar.webFullAndExit.webFull.click(f.webFull),e.bar.webFullAndExit.webFull.mouseover(function(){j(this,language.webFull)}),e.bar.webFullAndExit.append(e.bar.webFullAndExit.webFull),e.bar.webFullAndExit.exitWebFull=q("ck-bar-btn ck-btn-exitwebfull"),e.bar.webFullAndExit.exitWebFull.click(f.exitWebFull),e.bar.webFullAndExit.exitWebFull.mouseover(function(){j(this,language.exitWebFull)}),e.bar.webFullAndExit.append(e.bar.webFullAndExit.exitWebFull),a.webFull||e.bar.webFullAndExit.hide(),e.bar.theatreAndExit=w("ck-bar-theatreandexit"),e.bar.append(e.bar.theatreAndExit),e.bar.theatreAndExit.theatre=q("ck-bar-btn ck-btn-theatre"),e.bar.theatreAndExit.theatre.click(f.theatre),e.bar.theatreAndExit.theatre.mouseover(function(){j(this,language.theatre)}),e.bar.theatreAndExit.append(e.bar.theatreAndExit.theatre),e.bar.theatreAndExit.exitTheatre=q("ck-bar-btn ck-btn-exittheatre"),e.bar.theatreAndExit.exitTheatre.click(f.exitTheatre),e.bar.theatreAndExit.exitTheatre.mouseover(function(){j(this,language.exitTheatre)}),e.bar.theatreAndExit.append(e.bar.theatreAndExit.exitTheatre),a.theatre||e.bar.theatreAndExit.hide(),e.bar.vbox=w("ck-bar-volumebox"),e.bar.append(e.bar.vbox),e.bar.vbox.muted=q("ck-bar-btn ck-btn-muted"),e.bar.vbox.muted.click(f.muted),e.bar.vbox.append(e.bar.vbox.muted),e.bar.vbox.exitMuted=q("ck-bar-btn ck-btn-exitmuted"),e.bar.vbox.exitMuted.click(f.exitMuted),e.bar.vbox.append(e.bar.vbox.exitMuted),e.bar.vbox.volume=w("ck-bar-volume"),e.bar.vbox.append(e.bar.vbox.volume),e.bar.vbox.volume.box=w("ck-bar-volumex"),e.bar.vbox.volume.append(e.bar.vbox.volume.box),e.bar.vbox.volume.txt=w("ck-bar-volume-txt","0"),e.bar.vbox.volume.box.append(e.bar.vbox.volume.txt),e.bar.vbox.volume.bg=w("ck-bar-volume-bg"),e.bar.vbox.volume.box.append(e.bar.vbox.volume.bg),e.bar.vbox.volume.pp=w("ck-bar-volume-pp"),e.bar.vbox.volume.bg.append(e.bar.vbox.volume.pp),e.bar.vbox.volume.slider=w("ck-bar-volume-slider"),e.bar.vbox.volume.box.append(e.bar.vbox.volume.slider),e.bar.vbox.mouseDown=!1,e.bar.vbox.volume.show(),St(a.volume),rn(),e.bar.vbox.volume.attr("style",""),e.bar.vbox.mouseover(function(){St(o.muted?0:o.volume)}),e.bar.playbackrate=w("ck-bar-playbackrate-box"),e.bar.append(e.bar.playbackrate),e.bar.playbackrate.button=w("ck-bar-playbackrate",language.playbackrate),e.bar.playbackrate.append(e.bar.playbackrate.button),e.bar.playbackrate.bgbox=w("ck-bar-playbackrate-bg-box ck-list-bg-box"),e.bar.playbackrate.append(e.bar.playbackrate.bgbox),Xi(),e.bar.track=w("ck-bar-track-box"),e.bar.append(e.bar.track),e.bar.track.button=w("ck-bar-track",language.track),e.bar.track.append(e.bar.track.button),e.bar.track.bgbox=w("ck-bar-track-bg-box ck-list-bg-box"),e.bar.track.append(e.bar.track.bgbox),e.bar.track.hide(),e.bar.definition=w("ck-bar-definition-box"),e.bar.append(e.bar.definition),e.bar.definition.button=w("ck-bar-definition",language.definition),e.bar.definition.append(e.bar.definition.button),e.bar.definition.bgbox=w("ck-bar-definition-bg-box ck-list-bg-box"),e.bar.definition.append(e.bar.definition.bgbox),e.bar.definition.hide(),e.rightBar.screenshot=q("ck-bar-btn ck-btn-screenshot"),e.rightBar.append(e.rightBar.screenshot),e.rightBar.screenshot.mouseover(function(){j(this,language.screenshot,null,"left")}),e.rightBar.screenshot.click(f.screenshot),e.rightBar.smallwindows=w("ck-right-bar-smallwindows"),e.rightBar.append(e.rightBar.smallwindows),e.rightBar.smallwindows.open=q("ck-bar-btn ck-btn-smallwindows-open"),e.rightBar.smallwindows.open.click(function(){j(this,language.smallwindowsClose,null,"left"),f.smallWindows(!1)}),e.rightBar.smallwindows.open.mouseover(function(){j(this,language.smallwindowsOpen,null,"left")}),e.rightBar.smallwindows.append(e.rightBar.smallwindows.open),e.rightBar.smallwindows.close=q("ck-bar-btn ck-btn-smallwindows-close"),e.rightBar.smallwindows.close.click(function(){j(this,language.smallwindowsOpen,null,"left"),f.smallWindows(!0)}),e.rightBar.smallwindows.close.mouseover(function(){j(this,language.smallwindowsClose,null,"left")}),e.rightBar.smallwindows.append(e.rightBar.smallwindows.close),e.rightBar.loop=w("ck-right-bar-loop"),e.rightBar.append(e.rightBar.loop),e.rightBar.loop.open=q("ck-bar-btn ck-btn-loop-open"),e.rightBar.loop.open.click(function(){j(this,language.loopClose,null,"left"),f.loop(!1)}),e.rightBar.loop.open.mouseover(function(){j(this,language.loopOpen,null,"left")}),e.rightBar.loop.append(e.rightBar.loop.open),e.rightBar.loop.close=q("ck-bar-btn ck-btn-loop-close"),e.rightBar.loop.close.click(function(){j(this,language.loopOpen,null,"left"),f.loop(!0)}),e.rightBar.loop.close.mouseover(function(){j(this,language.loopClose,null,"left")}),e.rightBar.loop.append(e.rightBar.loop.close),e.rightBar.mouseout(qi).mouseover(Yi),e.screenshot=w("ck-screenshot"),P.append(e.screenshot),e.screenshot.img=w("ck-screenshot-img"),e.screenshot.append(e.screenshot.img),e.screenshot.bar=w("ck-screenshot-bar"),e.screenshot.append(e.screenshot.bar),e.screenshot.bar.down=pt(language.down,"","ck-screenshot-btn ck-screenshot-down"),e.screenshot.bar.append(e.screenshot.bar.down),e.screenshot.bar.close=q("ck-screenshot-btn ck-screenshot-close",language.close),e.screenshot.bar.close.click(f.closeScreenshot),e.screenshot.bar.append(e.screenshot.bar.close),e.topBar.zoomEle=w("ck-top-bar-zoom"),e.topBar.zoomEle.zoom50=w("ck-top-bar-zoom-container"),e.topBar.zoomEle.append(e.topBar.zoomEle.zoom50),e.topBar.zoomEle.zoom50.left=w("ck-top-bar-zoom-left"),e.topBar.zoomEle.zoom50.append(e.topBar.zoomEle.zoom50.left),e.topBar.zoomEle.zoom50.left.button=w("ck-top-bar-zoom-button-50"),e.topBar.zoomEle.zoom50.left.append(e.topBar.zoomEle.zoom50.left.button),e.topBar.zoomEle.zoom50.right=w("ck-top-bar-zoom-right",language.p50),e.topBar.zoomEle.zoom50.append(e.topBar.zoomEle.zoom50.right),e.topBar.zoomEle.zoom50.click(function(){f.zoom(50)}),e.topBar.zoomEle.zoom75=w("ck-top-bar-zoom-container"),e.topBar.zoomEle.append(e.topBar.zoomEle.zoom75),e.topBar.zoomEle.zoom75.left=w("ck-top-bar-zoom-left"),e.topBar.zoomEle.zoom75.append(e.topBar.zoomEle.zoom75.left),e.topBar.zoomEle.zoom75.left.button=w("ck-top-bar-zoom-button-75"),e.topBar.zoomEle.zoom75.left.append(e.topBar.zoomEle.zoom75.left.button),e.topBar.zoomEle.zoom75.right=w("ck-top-bar-zoom-right",language.p75),e.topBar.zoomEle.zoom75.append(e.topBar.zoomEle.zoom75.right),e.topBar.zoomEle.zoom75.click(function(){f.zoom(75)}),e.topBar.zoomEle.zoom100=w("ck-top-bar-zoom-container"),e.topBar.zoomEle.append(e.topBar.zoomEle.zoom100),e.topBar.zoomEle.zoom100.left=w("ck-top-bar-zoom-left"),e.topBar.zoomEle.zoom100.append(e.topBar.zoomEle.zoom100.left),e.topBar.zoomEle.zoom100.left.button=w("ck-top-bar-zoom-button-100"),e.topBar.zoomEle.zoom100.left.append(e.topBar.zoomEle.zoom100.left.button),e.topBar.zoomEle.zoom100.right=w("ck-top-bar-zoom-right",language.p100),e.topBar.zoomEle.zoom100.append(e.topBar.zoomEle.zoom100.right),e.topBar.zoomEle.zoom100.click(function(){f.zoom(100)}),e.topBar.append(e.topBar.zoomEle),e.topBar.titleEle=w("ck-top-bar-title",a.title),e.topBar.append(e.topBar.titleEle),e.topBar.timeEle=w("ck-top-bar-time"),e.topBar.append(e.topBar.timeEle),e.centerPlay=w("ck-center-play"),e.centerPlay.click(f.play),P.append(e.centerPlay),e.buffer=w("ck-buffer"),P.append(e.buffer),e.message=w("ck-message"),P.append(e.message),e.tip=w("ck-tip"),P.append(e.tip),e.tip.content=w("ck-content ck-content-float-auto"),e.tip.append(e.tip.content),e.tip.triangle=w("ck-triangle ck-triangle-auto"),e.tip.append(e.tip.triangle),j(o,"ckplayer"),e.tip.minHeight=e.tip.getHeight(),j(),e.ad=w("ck-yytf"),P.append(e.ad),e.ad.link=w("ck-yytf-front-link"),e.ad.append(e.ad.link),e.ad.link.click(Wi),e.ad.picture=w("ck-yytf-front-picture"),e.ad.append(e.ad.picture),e.ad.top=w("ck-yytf-top"),e.ad.append(e.ad.top),e.ad.top.countDown=w("ck-yytf-countdown"),e.ad.top.append(e.ad.top.countDown),e.ad.top.closeTime=w("ck-yytf-closetime"),e.ad.top.append(e.ad.top.closeTime),e.ad.top.closeAd=w("ck-yytf-closead",language.closeAd),e.ad.top.append(e.ad.top.closeAd),e.ad.top.closeAd.click(zi),e.ad.bottom=w("ck-yytf-bottom"),e.ad.append(e.ad.bottom),e.ad.bottom.fullAndExit=w("ck-yytf-fullandexit"),e.ad.bottom.append(e.ad.bottom.fullAndExit),e.ad.bottom.fullAndExit.full=q("ck-yytf-btn ck-yytf-fullandexit-full"),e.ad.bottom.fullAndExit.full.click(f.full),e.ad.bottom.fullAndExit.append(e.ad.bottom.fullAndExit.full),e.ad.bottom.fullAndExit.exitFull=q("ck-yytf-btn ck-yytf-fullandexit-exitfull"),e.ad.bottom.fullAndExit.append(e.ad.bottom.fullAndExit.exitFull),e.ad.bottom.fullAndExit.exitFull.click(f.exitFull),e.ad.bottom.mutedAndExit=w("ck-yytf-mutedandexit"),e.ad.bottom.append(e.ad.bottom.mutedAndExit),e.ad.bottom.mutedAndExit.muted=q("ck-yytf-btn ck-yytf-mutedandexit-muted"),e.ad.bottom.mutedAndExit.append(e.ad.bottom.mutedAndExit.muted),e.ad.bottom.mutedAndExit.muted.click(f.muted),e.ad.bottom.mutedAndExit.exitMuted=q("ck-yytf-btn ck-yytf-mutedandexit-exitmuted"),e.ad.bottom.mutedAndExit.append(e.ad.bottom.mutedAndExit.exitMuted),e.ad.bottom.mutedAndExit.exitMuted.click(f.exitMuted),e.ad.bottom.details=w("ck-yytf-details",language.details),e.ad.bottom.append(e.ad.bottom.details),e.ad.hide(),e.adPause=w("ck-pause-yytf"),P.append(e.adPause),e.about=w("ck-about"),P.append(e.about),e.about.bar=w("ck-about-bar"),e.about.append(e.about.bar),e.about.bar.copy=q("ck-bar-btn ck-btn-about-copy"),e.about.bar.append(e.about.bar.copy),e.about.bar.copy.click(Ni),e.about.bar.copy.mouseover(function(){j(this,language.copy,null,"left")}),e.about.bar.close=q("ck-bar-btn ck-btn-about-close"),e.about.bar.close.click(Ri),e.about.bar.close.mouseover(function(){j(this,language.close,null,"left")}),e.about.bar.append(e.about.bar.close),e.tempTime=w("ck-tempTime"),P.append(e.tempTime),e.bar.playAndPause.refresh.hide(),a.controls?(f.bar(!1),f.rightBar(!1),e.loading.hide(),e.centerPlay.hide()):(Kt(),Ii(),Hi()),kt=="iphone"&&e.loading.hide(),pi(),C.mouseout(function(){L||Ke()}).mouseover(function(){e.bar.hasClass("ck-bar-out")||(e.bar.removeClass("ck-bar-out"),P.removeClass("ck-nocursor")),e.rightBar.css("display")=="block"&&e.rightBar.removeClass("ck-right-bar-hide"),e.topBar.css("display")=="block"&&e.topBar.removeClass("ck-top-bar-hide")}).mousemove(function(){e.bar.hasClass("ck-bar-out")&&(e.bar.removeClass("ck-bar-out"),B("mouseActive",!0),P.removeClass("ck-nocursor"),Ke()),e.rightBar.css("display")=="block"&&e.rightBar.removeClass("ck-right-bar-hide"),e.topBar.css("display")=="block"&&e.topBar.removeClass("ck-top-bar-hide")})},Fi=function(){o.addListener("stalled",J.stalled),o.addListener("suspend",J.suspend),o.addListener("loadeddata",J.loadedData),o.addListener("loadstart",J.loadStart),o.addListener("loadedmetadata",J.loadedMetaData),o.addListener("canplay",J.canPlay),o.addListener("timeupdate",J.timeUpDate),o.addListener("seeking",J.seeking),o.addListener("seeked",J.seeked),o.addListener("waiting",J.waiting),o.addListener("play",J.play),o.addListener("pause",J.pause),o.addListener("volumechange",J.volumeChange),o.addListener("ended",J.ended),o.addListener("error",J.error),isUndefined(o.emptied)||o.addListener("emptied",J.emptied),re.singleClick(function(){Et?Et=!1:f.playOrPause()}),P.doubleClick(f.fullOrExit),M(document).addListener("keydown",J.keydown),addListener(window,"resize",J.resize),isUndefined(a.smallWindows)||valType(a.smallWindows)=="boolean"&&a.smallWindows&&addListener(window,"scroll",en),b.mouseWheel(J.mouseWheel)},B=function(t,i){try{Oe!=null?(isUndefined(i)&&(i=null),z.dispatchEvent(t,i)):(Oe=function(){this.listeners={}},Oe.prototype.listeners=null,Oe.prototype.addEventListener=function(n,r){n in this.listeners||(this.listeners[n]=[]),this.listeners[n].push(r),_e=this.listeners},Oe.prototype.removeEventListener=function(n,r){if(n in this.listeners){for(var s=this.listeners[n],l=0,A=s.length;l<A;l++)if(s[l]===r)return s.splice(l,1),this.removeEventListener(n,r);_e=s}},Oe.prototype.dispatchEvent=function(n,r){if(n in this.listeners)for(var s=this.listeners[n],l=0,A=s.length;l<A;l++)s[l].call(this,r)},z=new Oe)}catch(n){console.error(n)}},Li=function(t){var i=[],n=cookie(Ce),r=0,s=0,l=Math.floor(Date.now()*.001);if(t=Math.floor(t*100),t=t*.01,He||(He=365*24),!n)i.push([pe,t,l+He*3600]);else{i=stringToArray(n);var A=!1,d=[[pe,t,l+He*3600]];for(r=0;r<i.length;r++)i[r][2]>l&&i[r][0]!=pe&&s<19&&(d.push(i[r]),s++);i=d}i.length>0&&(cookie(Ce,"delete",a.domain,a.cookiePath),cookie(Ce,arrayToString(i),a.domain,a.cookiePath)),ki=i},Tt=function(){if(!isUndefined(o.textTracks)){var t=0;if(!isUndefined(a.track)&&valType(a.track)=="array"&&!o.find("track")){var i="",n=a.track;for(e.bar.track.show(),t=0;t<n.length;t++){var r="";!r&&!isUndefined(n[t].default)&&n[t].default&&(r=" default"),i+='<track src="'+n[t].src+'" srclang="'+n[t].srclang+'" kind="'+n[t].kind+'" label="'+n[t].label+'"'+r+">"}if(o){var s=o.htm()+i;o.htm(s)}o.find("track")&&!yt&&(yt=!0,$i())}}},Ze=function(t){if(!o||isUndefined(o.buffered))return!1;try{for(var i=o.buffered,n=0;n<i.length;n++)if(t>=i.start(n)-.35&&t<=i.end(n)+.15)return!0}catch(r){}return!1},Bt=function(){if(!S)return null;try{var t=-1;typeof S.currentLevel=="number"&&S.currentLevel>=0?t=S.currentLevel:typeof S.firstLevel=="number"&&S.firstLevel>=0?t=S.firstLevel:t=0;var i=S.levels&&S.levels[t]&&S.levels[t].details,n=i&&i.fragments;return!n||!n.length?null:n}catch(r){}return null},qt=function(t){if(!S||isNaN(t)||t<0)return null;try{var i=Bt();if(!i)return null;for(var n=0;n<i.length;n++){var r=i[n];if(r){var s=r.start||0,l=s+(r.duration||0);if(t>=s-.05&&t<l+.05)return r}}return i[i.length-1]}catch(A){}return null},Ci=function(t){var i=Bt();if(!i||isNaN(t)||t<0)return-1;for(var n=0;n<i.length;n++){var r=i[n];if(r){var s=r.start||0,l=s+(r.duration||0);if(t>=s-.05&&t<l+.05)return n}}return i.length-1},cn=function(t){if(isNaN(t)||t<=0)return 0;var i=qt(t);return i&&!isUndefined(i.start)?Math.max(0,i.start):Math.max(0,t)},Ut=function(t){if(isNaN(t)||t<=0)return 0;var i=Bt();if(i&&i.length){var n=Ci(t);n<0&&(n=i.length-1);var r=Math.max(0,n-1),s=i[r];if(s&&!isUndefined(s.start))return Math.max(0,s.start)}var l=qt(t);return l&&!isUndefined(l.start)?Math.max(0,l.start-12):Math.max(0,t-12)},Yt=function(t){if(!o||isUndefined(o.buffered)||isNaN(t)||t<0||!Ze(t))return!1;var i=Ut(t);try{for(var n=o.buffered,r=0;r<n.length;r++){var s=n.start(r),l=n.end(r);if(i>=s-.35&&t<=l+.15)return!0}}catch(A){}return!1},Pe=function(t){xe=!1,oe=!1,Me=!1,Xt(t),setTimeout(function(){if(o){try{o.pause()}catch(i){}L=!0,Je(),!a.controls&&e.centerPlay&&e.centerPlay.show(),e.bar&&e.bar.playAndPause&&(e.bar.playAndPause.pause.hide(),e.bar.playAndPause.play.show(),e.bar.playAndPause.refresh.hide())}},120)},Ge=function(){ee&&(clearTimeout(ee),ee=null),De=0},Ft=function(){!Me||!o||!a.autoplay||F||se||ze<1||(Me=!1,f.play())},Xt=function(t){Ge(),se=!0,F=0;try{o.currentTime=t}catch(i){F=t,se=!1}setTimeout(function(){se=!1},800)},Ue=function(t){if(!(!F||!o||se)&&!(!isUndefined(a.live)&&(valType(a.live)=="boolean"&&a.live||valType(a.live)=="number"))){var i=F,n=T||o.duration||0;if(n&&isFinite(n)&&n>0&&i>=n&&(i=Math.max(0,n-.3)),i<=0){F=0,Ge(),oe=!1;return}if(i>0&&($=Math.max($,i),ie<0&&(ie=i)),S){if(oe=!0,!t&&!isUndefined(o.readyState)&&o.readyState<1&&!(n&&isFinite(n)&&n>0)&&(De++,De<=40)){ee&&clearTimeout(ee),ee=setTimeout(function(){Ue(!1)},120);return}Pe(i);return}if(!t&&!isUndefined(o.readyState)&&o.readyState<1&&(De++,De<=50)){ee&&clearTimeout(ee),ee=setTimeout(function(){Ue(!1)},200);return}Xt(i)}},Si=function(){if(We>=3)return!1;We++;var t=ge>0?ge:ye>0?ye:a.seek?parseFloat(a.seek):0;(isNaN(t)||t<0)&&(t=0);var i=Ut(t);We>=2&&(i=Math.max(0,i-10)),se=!1,Ge();try{S&&typeof S.recoverMediaError=="function"&&S.recoverMediaError()}catch(r){}if(t>0&&S&&typeof S.startLoad=="function"){var n=We>=3?i:t;F=n,ge=t,xe=!0,Ne=-1,it=0;try{S.startLoad(i)}catch(r){}return setTimeout(function(){Yt(n)?Pe(n):We>=2?Pe(i):Ue(!1)},600),!0}try{return Pe(Math.max(0,t-1.5)),!0}catch(r){}return!1},_t=function(){B("loadedMetaData",{width:C.getWidth(),height:C.getHeight(),videoWidth:b.videoWidth,videoHeight:b.videoHeight,duration:T,volume:b.volume}),B("duration",T),"error"in e&&e.error.hide(),Fe("videoWidth",b.videoWidth),Fe("videoHeight",b.videoHeight),Fe("volume",parseInt(b.volume*100)),Fe("duration",parseInt(T)),documentHidden(function(t){a.documentFocusPause&&(t=="show"?!zt&&L&&f.play():(zt=L,f.pause()))})},J={loadStart:function(){!a.controls&&kt!="iphone"&&e.loading.show(),e.centerPlay.hide(),B("loadstart")},canPlay:function(){e.loading.hide(),Je(),B("canplay"),Ue(),Ft()},loadedData:function(){B("loadeddata")},loadedMetaData:function(){T=this.duration,!isUndefined(this.duration)&&a.duration&&(T=a.duration),a.live||(e.time.htm(formatSeconds(this.currentTime)+"/"+formatSeconds(T)),e.tempTime.htm(formatSeconds(this.currentTime)+"/"+formatSeconds(T))),e.loading.hide(),a.poster&&o.attr("poster",a.poster),!a.autoplay&&!a.controls&&(e.centerPlay.show(),e.buffer.hide()),b.duration=T,b.videoWidth=this.videoWidth,b.videoHeight=this.videoHeight,b.volume=this.volume,(b.videoWidth||b.videoHeight||T)&&_t(),Ue();var t=0;isUndefined(this.buffered)||(t=this.buffered.length),t>0&&hi(),a.live?oi():oi(a.preview),!isUndefined(a.prompt)&&valType(a.prompt)=="array"&&!a.live?Zi():ri(),je&&(ii(),je=!1),ke=!1,ze++,Ft(),!isUndefined(h)&&!isUndefined(h.frontPlay)&&h.frontPlay&&ze>1&&(f.play(),dt(T)),!isUndefined(h)&&!isUndefined(h.frontPlay)&&!h.frontPlay&&(f.volume(a.volume),f.play()),!a.autoplay&&Wt&&(Wt=!1,f.pause(),setTimeout(f.pause,300))},timeUpDate:function(){W||(W=!0,e.buffer.hide(),B("buffer","end"));var t=this.buffered.length;t>0&&hi(),!T&&this.duration&&(T=this.duration,b.duration=T,b.videoWidth=this.videoWidth,b.videoHeight=this.videoHeight,(b.videoWidth||b.videoHeight||T)&&_t(),Ue()),le=ye,ye=this.currentTime,$<le&&($=le),fi(ye),B("time",ye),a.live||(e.time.htm(formatSeconds(ye)+"/"+formatSeconds(T)),e.tempTime.htm(formatSeconds(ye)+"/"+formatSeconds(T))),!isUndefined(h)&&!isUndefined(h.frontPlay)&&h.frontPlay&&ze>1&&dt(T-ye),!isUndefined(e.error)&&e.error.css("display")=="block"&&e.error.hide(),pe&&Li(ye),Fe("audioDecodedByteCount",this.webkitAudioDecodedByteCount||this.audioDecodedByteCount||0),Fe("videoDecodedByteCount",this.webkitVideoDecodedByteCount||this.videoDecodedByteCount||0)},ended:function(){!isUndefined(h)&&!isUndefined(h.frontPlay)&&h.frontPlay?Ct():(e.bar.playAndPause.pause.hide(),e.bar.playAndPause.play.hide(),e.bar.playAndPause.refresh.show(),B("ended"),Qi(),R())},error:function(t){if(!isUndefined(t.type)){var i=this.error,n=function(){var r=12,s=language.error.loadingFailed;if(isUndefined(i))b.error={code:r,message:s},t.target.attr("src")&&ue();else{if(isUndefined(i.code)||(r=i.code),isUndefined(i.message)||(s=i.message),r===3&&Si())return;b.error={code:r,message:s},ue()}B("error",b.error)};if(t.type=="error")try{o.currentSrc?ajax({url:o.currentSrc,error:function(r){r&&valType(r)=="object"&&"code"in r&&r.code?(b.error=r,B("error",b.error),ue()):n()},success:function(r){r||n()}}):n()}catch(r){n()}}},stalled:function(){B("stalled")},suspend:function(){B("suspend")},emptied:function(){B("emptied"),b.error={code:7,message:language.error.emptied},B("error",b.error)},seeked:function(){if(se=!1,We=0,fe=!1,oe=!1,Ft(),ke=!1,Je(),Ae){Ae=!1;try{f.play()}catch(t){}}B("seek",{time:this.currentTime,state:"seeked"}),B("seeked")},seeking:function(){L&&!se&&!xe&&!oe&&!fe&&!F&&!Me&&f.play();var t=this.currentTime;if(ie==-1&&(ie=t),!(fe||Ae||oe||xe))switch(a.timeScheduleAdjust){case 0:if(le!=t){Te=!1,f.seek(le),R(language.timeScheduleAdjust.prohibit);return}break;case 2:if(t<le){Te=!1,f.seek(le),R(language.timeScheduleAdjust.prohibitBackOff);return}break;case 3:if(t>le){Te=!1,f.seek(le),R(language.timeScheduleAdjust.prohibitForward);return}break;case 4:if(t<ie){Te=!1,f.seek(ie),R(language.timeScheduleAdjust.prohibitLookBack);return}break;case 5:if(t>$){Te=!1,f.seek($),R(language.timeScheduleAdjust.prohibitForwardNotViewed);return}break}B("seek",{time:t,state:"seeking"}),B("seeking"),a.live||(e.time.htm(formatSeconds(t)+"/"+formatSeconds(T)),e.tempTime.htm(formatSeconds(t)+"/"+formatSeconds(T)))},waiting:function(){W=!1,B("buffer","start"),fe||Ae||oe||e.centerPlay.hide(),a.controls||e.buffer.show(),!(fe||Ae||oe)&&(Te?R(language.waiting):Te=!0)},play:function(){if(L=!1,e.bar.playAndPause.play.hide(),e.bar.playAndPause.pause.show(),e.bar.playAndPause.refresh.hide(),e.centerPlay.hide(),Je(),mt=="button"?e.bar.pbox.removeClass("ck-bar-progress-out"):e.bar.pbox.addClass("ck-bar-progress-out"),de&&(de=!1,f.exitMuted()),Ke(),ft(),mt="",isUndefined(e.ended)||f.closeLayer(e.ended),"error"in e&&e.error.hide(),B("play"),!isUndefined(h)&&!isUndefined(h.front)&&isUndefined(h.frontPlay)){h.frontPlayI=0,h.frontPlay=!0,f.pause(),$t();return}F&&(isUndefined(a.live)||!isUndefined(a.live)&&valType(a.live)=="boolean"&&!a.live)&&Ue()},pause:function(){L=!0,(isUndefined(h)||isUndefined(h.frontPlay)||!isUndefined(h.frontPlay)&&!h.frontPlay)&&!isUndefined(h)&&!isUndefined(h.pause)?(isUndefined(h.pausePlayI)&&(h.pausePlayI=0),Gt()):a.controls||(e.centerPlay.show(),e.buffer.hide()),e.bar.playAndPause.pause.hide(),e.bar.playAndPause.play.show(),e.bar.playAndPause.refresh.hide(),e.bar.pbox.removeClass("ck-bar-progress-out"),ci(),B("pause"),e.bar.removeClass("ck-bar-out"),P.removeClass("ck-nocursor")},volumeChange:function(){if(this.volume==0&&!G&&(this.muted=!0),this.volume>0&&G&&(this.muted=!1),G!=this.muted&&(G=this.muted,an(this.muted),b.muted=this.muted,B("muted",b.muted)),b.volume=this.volume,B("volume",this.volume),!isUndefined(e.bar.vbox)){var t=parseInt(this.volume*100);e.bar.vbox.volume.txt.htm(t),e.bar.vbox.mouseDown||St(this.muted?0:this.volume),this.muted||R(language.volume+t+"%")}Fe("volume",parseInt(this.volume*100))},resize:function(){var t=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement;t?(e.bar.fullAndExit.exitFull.show(),e.bar.fullAndExit.full.hide(),e.ad.bottom.fullAndExit.exitFull.show(),e.ad.bottom.fullAndExit.full.hide(),P.hasClass("ck-main-full")||P.addClass("ck-main-full"),R(language.full),e.bar.webFullAndExit.hide(),e.bar.theatreAndExit.hide(),isUndefined(e.menu)||P.append(e.menu)):(t=!1,e.bar.fullAndExit.full.show(),e.bar.fullAndExit.exitFull.hide(),e.ad.bottom.fullAndExit.full.show(),e.ad.bottom.fullAndExit.exitFull.hide(),P.hasClass("ck-main-full")&&P.removeClass("ck-main-full"),!isUndefined(a.webFull)&&a.webFull&&e.bar.webFullAndExit.show(),!isUndefined(a.theatre)&&!b.webFull&&e.bar.theatreAndExit.show(),isUndefined(e.menu)||M("body").append(e.menu),re.css("width")!=P.css("width")&&f.zoom(100)),b.full!=t&&(b.full=t,B("full",t)),ve(),fi(f.time())},keydown:function(t){t=window.event||t;var i=t.keyCode||t.which,n=f.volume(),r=function(){t.preventDefault?t.preventDefault():t.returnValue=!1};switch(i){case 32:r(),f.playOrPause();break;case 37:f.fastBack();break;case 39:f.fastNext();break;case 38:valType(a.keyVolume)=="number"&&(a.keyVolume==1||a.keyVolume==2&&b.full)&&(r(),f.volume(n+.1<1?n+=.1:1));break;case 40:valType(a.keyVolume)=="number"&&(a.keyVolume==1||a.keyVolume==2&&b.full)&&(r(),f.volume(n-.1>0?n-=.1:0));break;default:break}},mouseWheel:function(t){if(valType(a.mouseWheelVolume)=="number"&&(a.mouseWheelVolume==1||a.mouseWheelVolume==2&&b.full)){t=window.event||t;var i=f.volume();t.preventDefault?t.preventDefault():t.returnValue=!1,t.wheelDelta?(t.wheelDelta>0&&f.volume(i+.1<1?i+=.1:1),t.wheelDelta<0&&f.volume(i-.1>0?i-=.1:0)):t.detail&&(t.detail>0&&f.volume(i-.1>0?i-=.1:0),t.detail<0&&f.volume(i+.1<1?i+=.1:1))}}},$t=function(){if(h.frontPlayI==0&&(di(!1),e.ad.show(),h.front.video=!1,isUndefined(h.front.closeTime)||(h.front.closeTime>0?(e.ad.top.closeTime.show(),Jt()):e.ad.top.closeAd.show())),!isUndefined(h.front.node)&&h.front.node!=null&&(P.append(h.front.node),f.closeLayer(h.front.node),h.front.node=null),e.ad.picture.htm(""),e.ad.picture.hide(),e.ad.link.hide(),!isUndefined(h.front.list[h.frontPlayI])){var t=h.front.list[h.frontPlayI];at=!0,B("frontAd",t),t.type=="picture"?Di(t):t.type=="node"?Mi(t):(e.ad.link.attr("data-link",t.link),Pi(t.file)),isUndefined(t.link)?e.ad.bottom.details.hide():(e.ad.bottom.details.show(),e.ad.bottom.details.htm('<a href="'+t.link+'" target="blank">'+language.details+"</a>"))}},Jt=function(){isUndefined(h.front.closeSetTime)||(clearTimeout(h.front.closeSetTime),h.front.closeSetTime=null),e.ad.top.closeTime.htmReplace("{seconds}",h.front.closeTime,language.closeTime),h.front.closeTime--,h.front.closeTime>0?h.front.closeSetTime=setTimeout(Jt,1e3):(e.ad.top.closeAd.show(),e.ad.top.closeTime.hide())},dt=function(t){isUndefined(t)||(h.front.list[h.frontPlayI].time=t),h.front.countDown=0;for(var i=h.frontPlayI;i<h.front.list.length;i++)h.front.countDown+=parseInt(h.front.list[i].time);e.ad.top.countDown.htm(h.front.countDown+language.second)},Zt=function(){nt&&(clearTimeout(nt),nt=null)},Lt=function(){Zt();var t=h.front.list[h.frontPlayI];t.time>0?(t.time--,h.front.countDown--,e.ad.top.countDown.htm(h.front.countDown+language.second),nt=setTimeout(Lt,1e3)):Ct()},Ct=function(){h.frontPlayI<h.front.list.length-1?(h.frontPlayI++,$t()):(!isUndefined(h.front.node)&&h.front.node!=null&&(P.append(h.front.node),f.closeLayer(h.front.node),h.front.node=null),e.ad.picture.htm(""),e.ad.picture.hide(),h.frontPlay=!1,e.ad.hide(),ui(),F=0,Rt(lt()),h.front.video?Re(a.video):f.play(),B("frontAdEnded",!0),at=!1)},Pi=function(t){if(!isUndefined(t)){if(e.ad.picture.hide(),F=0,(o.attr("src")||o.htm())&&f.pause(),o.attr("src")&&(o.attr("src",""),o.removeAttr("src")),o.htm(""),a.plug&&!ut(t))switch(a.plug){case"hls.js":Nt(t);break;case"flv.js":jt(t);break;case"mpegts.js":Vt(t);break;default:b.error={code:10,message:language.error.emptied},B("error",b.error),ue();break}else o.attr("src",t);h.front.video=!0,e.ad.link.show(),e.ad.bottom.mutedAndExit.show()}},Di=function(t){if(!isUndefined(t.file)){var i=null,n=0,r=function(){e.ad.picture.show(),e.ad.picture.htm(""),i=et(t.file),e.ad.picture.append(i),i.addListener("load",function(){var s=this.getWidth(),l=this.getHeight();if(s>0||l>0){if(t.link){var A=pt("",t.link);A.append(this),e.ad.picture.append(A)}else e.ad.picture.append(this);i.unbind(),i.click(function(){B("frontAdClick",t)})}else n<10&&(n++,r())})};r(),dt(),Lt(),e.ad.bottom.mutedAndExit.hide()}},Mi=function(t){isUndefined(t.content)||(h.front.node=f.layer(t),h.front.node.css({"z-index":1}),e.ad.append(h.front.node),h.front.node.unbind(),h.front.node.click(function(){B("frontAdClick",t)}),dt(),Lt(),e.ad.bottom.mutedAndExit.hide())},Wi=function(){var t=e.ad.link.attr("data-link");window.open(t,"_blank")},zi=function(){if(!isUndefined(h)&&!isUndefined(h.front)&&!isUndefined(h.front.closeButtonClick)){if(valType(h.front.closeButtonClick)=="function")try{h.front.closeButtonClick()}catch(t){console.error(t)}else if(valType(h.front.closeButtonClick)=="string")try{$e(h.front.closeButtonClick)}catch(t){console.error(t)}}else f.closeFrontAd()},Gt=function(){if(ft(),!isUndefined(h)&&!isUndefined(h.pause)&&!isUndefined(h.pause.list)&&h.pause.list.length-1>=h.pausePlayI){var t=h.pause.list[h.pausePlayI];if(!isUndefined(h.pause.close)&&h.pause.close&&(h.pauseClose=q("ck-pause-close"),h.pauseClose.click(function(){e.centerPlay.show(),e.buffer.hide(),ft()})),isUndefined(t.file))isUndefined(t.content)||(h.pause.node=f.layer(t),h.pauseClose&&h.pause.node.append(h.pauseClose),h.pause.node.click(function(){B("pauseAdClick",t)}));else{var i=null,n=0,r=function(){i=et(t.file),e.adPause.show(),e.adPause.htm(""),e.adPause.append(i),i.addListener("load",function(){var s=this.getWidth(),l=this.getHeight();if(s>0||l>0){if(e.adPause.htm(""),t.link){var A=pt("",t.link);A.append(this),e.adPause.append(A)}else e.adPause.append(this);e.adPause.css({width:s+"px",height:l+"px"}),h.pauseClose&&e.adPause.append(h.pauseClose),i.click(function(){B("pauseAdClick",t)})}else n<10&&(n++,r())})};r()}B("pauseAd",t),!isUndefined(t.time)&&t.time>0&&(rt=setTimeout(function(){h.pausePlayI++,h.pausePlayI>h.pause.list.length-1&&(h.pausePlayI=0),Gt()},t.time*1e3))}},ft=function(){rt&&(clearTimeout(rt),rt=null),e.adPause.hide(),!isUndefined(h)&&!isUndefined(h.pauseClose)&&h.pauseClose!=null&&(h.pauseClose.remove(),h.pauseClose=null),!isUndefined(h)&&!isUndefined(h.pause)&&!isUndefined(h.pause.node)&&h.pause.node&&(h.pause.node.unbind(),f.closeLayer(h.pause.node),B("pauseAdClose"))},f={width:function(t){return isUndefined(t)||(valType(t)=="number"&&(t+="px"),b.css({width:t}),ve()),C.getWidth()},height:function(t){return isUndefined(t)||(valType(t)=="number"&&(t+="px"),b.css({height:t}),ve()),C.getHeight()},videoWidth:function(){return o?o.videoWidth:null},videoHeight:function(){return o?o.videoHeight:null},zoom:function(t){if(!isUndefined(t)&&(valType(t)=="function"&&z.addEventListener("zoom",t),valType(t)=="number")){for(var i=[e.topBar.zoomEle.zoom50,e.topBar.zoomEle.zoom75,e.topBar.zoomEle.zoom100],n=0;n<i.length;n++)i[n].removeClass("ck-top-bar-zoom-container-focus");switch(t){case 50:i[0].addClass("ck-top-bar-zoom-container-focus");break;case 75:i[1].addClass("ck-top-bar-zoom-container-focus");break;case 100:i[2].addClass("ck-top-bar-zoom-container-focus");break}(t==50||t==75||t==100)&&(ce=t,ve(),B("zoom",t))}return f},rotate:function(t){if(!isUndefined(t)&&(valType(t)=="function"&&z.addEventListener("rotate",t),valType(t)=="number")){var i=[0,90,180,270],n=0;i.length>t&&t>0?n=i[t]:i.indexOf(t)>-1&&(n=t),n!=Be&&(B("rotate",n),Be=n,ve())}},vars:function(t,i){if(!isUndefined(t)){if(valType(t)=="string"&&!isUndefined(i)){var n={};n[t]=i,t=n}var r=!1;for(var s in t)if(s in a&&t[s]!=a[s]){r=!0;break}r&&(a=standardization(a,t)),isUndefined(t.video)||(je=!0,Re(a.video)),isUndefined(t.title)||e.topBar.titleEle.htm(t.title)}},loadstart:function(t){!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("loadstart",t)},loadeddata:function(t){!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("loadeddata",t)},loadedMetaData:function(t){!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("loadedMetaData",t)},canplay:function(t){!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("canplay",t)},play:function(t){if(valType(t)=="object"&&(t.target==e.bar.playAndPause.play||t.target==e.bar.playAndPause.refresh)&&(mt="button"),!isUndefined(t)&&valType(t)=="function")z.addEventListener("play",t);else if(ze>0&&o)try{var i=o.play();i&&typeof i.catch=="function"&&i.catch(function(){})}catch(n){}return f},pause:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("pause",t);else if(ze>0&&o)try{o.pause()}catch(i){console.error(i)}return f},playOrPause:function(){return L?f.play():f.pause(),f},volume:function(t){if(!isUndefined(t))valType(t)=="function"?z.addEventListener("volume",t):valType(t)=="number"&&o&&(t<0&&(t=0),t>1&&(t=1),o.muted&&(o.volume=t*.5),o.volume=t);else if(o)return o.volume;return f},muted:function(t){return!isUndefined(t)&&valType(t)=="function"?z.addEventListener("muted",t):o&&(o.muted=!0),f},exitMuted:function(){return o&&(o.muted=!1,o.volume==0&&f.volume(a.volume>0?a.volume:.8)),f},time:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("time",t);else if(o)return o.currentTime||0},seek:function(t){if(!isUndefined(t))if(valType(t)=="function")z.addEventListener("seek",t);else{var i=null;if(valType(t)=="number"&&!isNaN(t)?i=t:valType(t)=="string"&&t!==""&&t!=="cookie"&&!isNaN(parseFloat(t))&&(i=parseFloat(t)),i!==null&&o){switch(i>0&&(F&&Math.abs(F-i)<.5||a.seek&&parseFloat(a.seek)>0&&Math.abs(parseFloat(a.seek)-i)<.5)&&($=Math.max($,i),ie<0&&(ie=i)),a.timeScheduleAdjust){case 0:return R(language.timeScheduleAdjust.prohibit),f;case 1:break;case 2:if(i<le)return R(language.timeScheduleAdjust.prohibitBackOff),f;break;case 3:if(i>le)return R(language.timeScheduleAdjust.prohibitForward),f;break;case 4:if(i<ie){Te=!1;try{o.currentTime=ie}catch(r){}return R(language.timeScheduleAdjust.prohibitLookBack),f}break;case 5:if(i>$){Te=!1;try{o.currentTime=$}catch(r){}return R(language.timeScheduleAdjust.prohibitForwardNotViewed),f}break}ke=!1;var n=o.readyState>=2||T&&isFinite(T)&&T>0;if(!n)return F=i,i>0&&($=Math.max($,i),ie<0&&(ie=i)),f;if(T&&isFinite(T)&&T>0&&i>T&&(i=Math.max(0,T-.3)),i<0&&(i=0),a.timeScheduleAdjust==5&&i>$&&F&&Math.abs(F-i)<.5&&($=Math.max($,i)),i>.5&&!Ze(i)&&o.readyState<3&&!S)return F=i,Ue(!1),f;if(S)return i>.5&&Ze(i)&&Math.abs((o.currentTime||0)-i)<.35?(F=0,xe=!1,f):(Ti(i),f);try{o.currentTime=i,F=0,i>$&&a.timeScheduleAdjust!=5&&($=i)}catch(r){F=i}}}return f},buffer:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("buffer",t),f},ended:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("ended",t),f},next:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("next",t),f},error:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("error",t),f},emptied:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("emptied",t),f},duration:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("duration",t);else return T||0},playbackRate:function(t){if(!isUndefined(t))valType(t)=="function"?z.addEventListener("playbackRate",t):valType(t)=="number"&&o&&(o.playbackRate=t,b.playbackRate=t,B("playbackRate",t),Qt(t));else return o.playbackRate},track:function(t){if(isUndefined(t))return b.track;if(valType(t)=="function")z.addEventListener("track",t);else if(valType(t)=="number"&&o){var i=null;if(isUndefined(o.textTracks)||(i=o.textTracks),i&&valType(i)=="texttracklist"){for(var n=a.track,r=i.length-1;r>-1;r--)o.find("track").eq(r).remove();for(var r=0;r<n.length;r++){var s="";n[r].default=!1,r==t&&(s=" default",n[r].default=!0),i+='<track src="'+n[r].src+'" srclang="'+n[r].srclang+'" kind="'+n[r].kind+'" label="'+n[r].label+'"'+s+">"}if(o){var l=o.htm()+i;o.htm(l)}ti(t)}}},fastBack:function(t){if(T!=0){(isUndefined(t)||valType(t)!="number")&&(t=20);var i=f.time();return i-t>0?i-=t:i=0,f.seek(i),f}},fastNext:function(t){if(T!=0){(isUndefined(t)||valType(t)!="number")&&(t=20);var i=f.time();return i+t<T?i+=t:i=T,f.seek(i),f}},definition:function(t){return isUndefined(t)||(valType(t)=="function"&&z.addEventListener("definition",t),valType(t)=="number"&&ni(t)),f},fps:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("fps",t),b.fps},playback:function(t){if(!isUndefined(t))valType(t)=="function"&&z.addEventListener("playback",t);else return yi;return f},backLive:function(t){return isUndefined(t)||(valType(t)=="function"&&z.addEventListener("backLive",t),valType(t)=="boolean"&&(bool?e.bar.backLive.show():e.bar.backLive.hide())),f},full:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("full",t);else{if(wt)return;b.theatre&&f.exitTheatre(),b.webFull&&f.exitWebFull();var i=C.requestFullScreen||C.webkitRequestFullScreen||C.mozRequestFullScreen||C.oRequestFullscreen||C.msRequestFullscreen;if(!isUndefined(i))i.call(C);else if(isUndefined(window.ActiveXObject)){if(!isUndefined(o.webkitEnterFullscreen)||!isUndefined(o.webkitEnterFullScreen)){var r=o.webkitEnterFullscreen||o.webkitEnterFullScreen;r.call(o)}}else{var n=new ActiveXObject("WScript.Shell");n!==null&&n.SendKeys("{F11}")}f.zoom(100)}return f},exitFull:function(){var t=document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen||document.oCancelFullScreen||document.msExitFullscreen;if(!isUndefined(t))t.call(document);else if(!isUndefined(window.ActiveXObject)){var i=new ActiveXObject("WScript.Shell");i!==null&&i.SendKeys("{F11}")}return f},fullOrExit:function(){var t=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement;return t?f.exitFull():f.full(),f},webFull:function(t){return!isUndefined(t)&&valType(t)=="function"?z.addEventListener("webfull",t):(ct(),isUndefined(a.theatre)||e.bar.theatreAndExit.hide(),C.css({position:"fixed",top:0,left:0,height:"100%","z-index":getMaxZIndex()+1}),e.bar.webFullAndExit.webFull.hide(),e.bar.webFullAndExit.exitWebFull.show(),b.webFull=!0,B("webfull",!0),ve()),f},exitWebFull:function(){return C.css({position:"relative"}),e.bar.webFullAndExit.webFull.show(),e.bar.webFullAndExit.exitWebFull.hide(),isUndefined(a.theatre)||(e.bar.theatreAndExit.show(),e.bar.theatreAndExit.theatre.show(),e.bar.theatreAndExit.exitTheatre.hide()),C.attr("style",""),b.webFull=!1,B("webfull",!1),ve(),f},theatre:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("theatre",t);else{if(valType(a.theatre)=="array"&&a.theatre.length==2){var i=a.theatre[0];valType(i)=="function"&&i(),valType(i)=="string"&&$e(i)}else ct(),C.css({position:"absolute",top:b.offset().top,left:0,height:b.getHeight()+"px","z-index":getMaxZIndex()+1}),e.bar.theatreAndExit.theatre.hide(),e.bar.theatreAndExit.exitTheatre.show();b.theatre=!0,B("theatre",!0),ve()}return f},exitTheatre:function(){if(valType(a.theatre)=="array"&&a.theatre.length==2){var t=a.theatre[1];valType(t)=="function"&&t(),valType(t)=="string"&&$e(t)}else C.css({position:"relative"}),e.bar.theatreAndExit.theatre.show(),e.bar.theatreAndExit.exitTheatre.hide(),C.attr("style",""),b.theatre=!1;return B("theatre",!1),ve(),f},smallWindows:function(t){return isUndefined(t)||(valType(t)=="function"&&z.addEventListener("smallWindows",t),valType(t)=="boolean"&&(t?(e.rightBar.smallwindows.open.show(),e.rightBar.smallwindows.close.hide(),b.smallWindows=!0):(e.rightBar.smallwindows.open.hide(),e.rightBar.smallwindows.close.show(),b.smallWindows=!1),B("smallWindows",b.smallWindows),ve())),b.smallWindows},loop:function(t){return isUndefined(t)||(valType(t)=="function"&&z.addEventListener("loop",t),valType(t)=="boolean"&&o&&(t?(e.rightBar.loop.open.show(),e.rightBar.loop.close.hide(),b.loop=!0,o.attr("loop","loop"),B("loop",!0)):(e.rightBar.loop.open.hide(),e.rightBar.loop.close.show(),b.loop=!1,o.attr("loop",!1),o.removeAttr("loop"),B("loop",!1)))),b.loop},screenshot:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("screenshot",t);else if(!isUndefined(a.screenshot)&&a.screenshot&&o)try{R(language.screenshotStart,!0);var i=M(document.createElement("canvas"));i.width=o.videoWidth,i.height=o.videoHeight,i.getContext("2d").drawImage(o,0,0,o.videoWidth,o.videoHeight);var n=i.toDataURL("image/png");B("screenshot",n),Ie&&(Ie.remove(),Ie=null),Ie=et(n),Ie.addListener("load",function(){e.screenshot.img.append(Ie),e.screenshot.show().css({width:this.getWidth()+"px"})});var r=dataURLtoBlob(n),s=URL.createObjectURL(r),l="video";return a.title&&(l=a.title),e.screenshot.bar.down.attr("href",s).attr("download",l),n}catch(A){R(language.error.screenshot,!0)}else R(language.screenshotClose,!0);return f},closeScreenshot:function(t){return!isUndefined(t)&&valType(t)=="boolean"&&!t?e.screenshot.show():e.screenshot.hide(),f},layer:function(t,i){if(isUndefined(t))return null;var n=!1;isUndefined(i)||(n=i);var r=null;if(valType(t)=="object"&&("class"in t&&"content"in t?(r=w(t.class),r.htm(t.content)):"content"in t&&(t=t.content)),valType(t)=="string"&&(t.substr(0,1)=="."||t.substr(0,1)=="#"?r=sn(t):(r=w("ck-layer"),r.htm(t))),r){var s=r.css("z-index");s=="auto"&&(s=101),s<101&&(s=101),s>200&&(s=200),isUndefined(r.cssDisplay)&&(r.cssPosition=r.css("position"),r.cssDisplay=r.css("display")),r.css({position:"absolute","z-index":s}),n?e.bar.append(r):P.append(r),r.CK=C,r.show()}return r},closeLayer:function(t){if(valType(t)=="string"){var i=M(t);isUndefined(i)||i.length>0&&(t=i.eq(0))}if(!isUndefined(t)&&valType(t)=="htmlobject"){if(isUndefined(t.captureParentNode))t.remove();else{var n=t.captureParentNode;if(t.nextElement)try{n.insertBefore(t,t.nextElement)}catch(r){n.append(t)}else if(t.prevElement)try{n.insertAfter(t,t.prevElement)}catch(r){n.append(t)}else n.append(t);t.css({display:t.cssDisplay})}isUndefined(t.cssDisplay)||t.css({display:t.cssDisplay,position:t.cssPosition})}return f},message:function(t){return R(t),f},closeFrontAd:function(){return at&&!isUndefined(h)&&!isUndefined(h.front)&&!isUndefined(h.front.list)&&(h.frontPlayI=h.front.list.length-1,Ct(),Zt()),f},addListener:function(t,i){z.addEventListener(t,i)},removeListener:function(t,i){z.removeEventListener(t,i)},bar:function(t){Dt=t,t?e.bar.show():e.bar.hide()},rightBar:function(t){Mt=t,t?e.rightBar.show():e.rightBar.hide()},mouseActive:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("mouseActive",t),this},cookie:function(t){if(t=="delete")return cookie(Ce,"delete",a.domain),null;!isUndefined(t)&&t&&(t=t.replace(/[ ]*,[ ]*|[ ]+/g,"").replace(/[ ]*;[ ]*|[ ]+/g,""));var i=cookie(Ce);if(i){var n=stringToArray(i),r=[],s=parseInt(Date.now()*.001);for(l=0;l<n.length;l++)parseInt(n[l][2])>s&&r.push(n[l]);if(n=r,n.length>0){cookie(Ce,"delete",a.domain,a.cookiePath),cookie(Ce,arrayToString(n),a.domain,a.cookiePath);for(var l=0;l<n.length;l++)if(n[l]={name:n[l][0],time:n[l][1],expirationTime:date("Y-m-d H:i:s",n[l][2]),expirationTimeStamp:n[l][2]},!isUndefined(t)&&t==n[l].name)return n[l];return n}else cookie(Ce,"delete",a.domain,a.cookiePath)}return null},visibilityState:function(t){return!isUndefined(t)&&valType(t)=="function"&&(isUndefined(document.visibilityState)||t(document.visibilityState==="visible"?"show":"hidden"),z.addEventListener("visibilityState",t)),this},remove:function(){var t={};if(_e!=null){for(var i in _e)t[i]=_e[i];for(var i in t){var n=t[i];if(n)for(var r=0;r<n.length;r++){var s=n[r];z.removeEventListener(i,s)}}}return at&&this.closeFrontAd(),I&&(I.pause(),I.unload(),I.detachMediaElement(),I.destroy(),I=null),S&&(S.stopLoad(),S.detachMedia()),ze=0,yt=!1,je=!0,o&&(o.unbind(),o.remove(),o=null),isUndefined(e.menu)||e.menu.remove(),b&&(b.unbind(),b.htm("")),null}},Oi=function(){a.autoplay?(e.bar.playAndPause.play.hide(),e.bar.playAndPause.pause.show()):(e.bar.playAndPause.play.show(),e.bar.playAndPause.pause.hide()),G?e.bar.vbox.muted.hide():e.bar.vbox.exitMuted.hide(),isUndefined(a.next)?e.bar.nextEpisode.hide():e.bar.nextEpisode.show(),!isUndefined(a.webFull)&&a.webFull&&!b.full?e.bar.webFullAndExit.show():e.bar.webFullAndExit.hide(),!isUndefined(a.theatre)&&!b.full&&!b.webFull?e.bar.theatreAndExit.show():e.bar.theatreAndExit.hide(),!isUndefined(a.rightBar)&&a.rightBar?e.rightBar.show():e.rightBar.hide(),(!a.live||valType(a.live)=="number")&&(ke=!1,nn()),(a.live||valType(a.live)=="number")&&(e.time.htm(language.live),e.tempTime.htm(language.live)),valType(a.smallWindows)=="boolean"&&!a.smallWindows&&(b.smallWindows=!1,e.rightBar.smallwindows.open.hide(),e.rightBar.smallwindows.close.show()),b.loop?(e.rightBar.loop.open.show(),e.rightBar.loop.close.hide()):(e.rightBar.loop.open.hide(),e.rightBar.loop.close.show()),!isUndefined(a.backLive)&&a.backLive&&e.bar.backLive.show(),a.volume==0&&f.muted()},Kt=function(){!isUndefined(a.logo)&&isUndefined(e.logo)&&(e.logo=w("ck-logo"),et(a.logo).addListener("load",function(){P.append(e.logo),e.logo.append(this)}).addListener("error",function(){e.logo.remove()}))},Ii=function(){if(!isUndefined(a.information)&&!isUndefined(e.about)&&valType(a.information)=="object"){var t=a.information,i="",n=M(document.createElement("ul")),r="";for(i in t){var s=w("div").attr("class","ck-about-title"),l=w("div").attr("class","ck-about-content"),A=M(document.createElement("li"));s.htm(i),l.htm(t[i]),A.append(s),A.append(l),n.append(A),r+=i+":"+t[i]+`
|
|
2
|
-
`}e.about.append(n),e.about.textareaText=r,e.about.textareaEle=M(document.createElement("textarea")),P.append(e.about.textareaEle),e.about.textareaEle.hide()}},Hi=function(){!isUndefined(a.menu)&&a.menu&&(p=a.menu),e.menu=w("ckplayer-ckplayer-menu");for(var t=0;t<p.length;t++){var i=p[t],n=w("ck-li");if(isUndefined(i.underline)||n.addClass("ck-underline"),!isUndefined(i.link)&&!isUndefined(i.title))n.append(pt(i.title,i.link)),e.menu.append(n);else if(!isUndefined(i.javascript)&&!isUndefined(i.title))n.append(vi(i.title,i.javascript)),e.menu.append(n);else if(!isUndefined(i.click)&&!isUndefined(i.title)){var r=vi(i.title);r.attr("data-click",i.click.toString()),r.click(function(){$e(M(this).attr("data-click")),e.menu.hide()}),n.append(r),e.menu.append(n)}else isUndefined(i.title)||(n.htm(i.title),e.menu.append(n))}M("body").append(e.menu),P.oncontextmenu=function(d){var g=d||window.event,E=we(g);if(g.button==2){g.returnvalue=!1;var U=E.x-2,x=E.y-2;return e.menu.show(),e.menu.css({left:U+"px",top:x+"px"}),!1}return!0};var s=null,l=function(){s&&(clearTimeout(s),s=null)},A=function(){l(),s=setTimeout(function(){e.menu.hide()},200)};e.menu.mouseout(A),e.menu.mouseover(l)},pn=function(){e.about.show(),e.menu.hide()},Ri=function(){e.about.hide()},Ni=function(){e.about.textareaEle.show(),e.about.textareaEle.select(),document.execCommand("Copy"),e.about.textareaEle.hide(),R(language.copySucceeded,!0)},he=function(){var t=e.bar.getHeight();return parseFloat(e.bar.pbox.css("top"))<0&&(t-=parseInt(e.bar.pbox.css("top"))),t},Ke=function(){be&&(clearTimeout(be),be=null),be=setTimeout(function(){L||(e.bar.addClass("ck-bar-out"),B("mouseActive",!1),b.full&&P.addClass("ck-nocursor"),e.rightBar.css("display")=="block"&&e.rightBar.addClass("ck-right-bar-hide"),e.topBar.css("display")=="block"&&e.topBar.addClass("ck-top-bar-hide")),be=null},a.barHideTime)},ji=function(){L||(e.bar.pbox.addClass("ck-bar-progress-out"),Ke())},Vi=function(){L||(e.bar.pbox.removeClass("ck-bar-progress-out"),be&&(clearTimeout(be),be=null))},qi=function(){L||Ke()},Yi=function(){L||be&&(clearTimeout(be),be=null)},Xi=function(){var t=a.playbackrateList,i=a.playbackrate;e.bar.playbackrate.bg=w("ck-list-bg"),e.bar.playbackrate.bgbox.append(e.bar.playbackrate.bg),e.bar.playbackrate.bg.p=[];for(var n=t.length-1;n>-1;n--){var r=q("ck-list-p",t[n]+language.playbackrateSuffix);r.attr("data-i",n).attr("data-val",t[n]),e.bar.playbackrate.bg.p.push(r),e.bar.playbackrate.bg.append(r),r.click(_i)}if(e.bar.playbackrate.hide(),!isUndefined(a.playbackrateOpen)&&a.playbackrateOpen){e.bar.playbackrate.show(),e.bar.playbackrate.bgbox.show();var s=e.bar.playbackrate.bg.getWidth(),l=e.bar.playbackrate.bg.getHeight(),A=e.bar.playbackrate.button.getWidth();e.bar.playbackrate.bg.css({width:s+10+"px"}),s=e.bar.playbackrate.bg.getWidth(),he()>e.bar.getHeight()&&(l+=he()-e.bar.getHeight()),e.bar.playbackrate.bgbox.attr("style",""),e.bar.playbackrate.bgbox.css({width:s+"px",height:l+2+"px",left:-(s-A)*.5+"px"}),e.bar.playbackrate.button.mouseover(function(){s=e.bar.playbackrate.bg.getWidth(),A=e.bar.playbackrate.button.getWidth(),e.bar.playbackrate.bgbox.css({left:-(s-A)*.5+"px"})}),Qt(i)}},_i=function(t){e.bar.playbackrate.bgbox.hide(),setTimeout(function(){e.bar.playbackrate.bgbox.removeCss("display")},300),R(language.switchTo+M(this).htm()),f.playbackRate(parseFloat(M(this).attr("data-val")))},Qt=function(t){e.bar.playbackrate.bg.find("button").each(function(i,n){var r=parseFloat(n.attr("data-val"));n.removeClass("ck-list-p-focus"),t==r?(n.addClass("ck-list-p-focus"),t!=1?e.bar.playbackrate.button.htm(n.htm()):e.bar.playbackrate.button.htm(language.playbackrate)):n.removeClass("ck-list-p-focus")})},$i=function(){var t=a.track,i=-1;e.bar.track.bgbox.htm(""),e.bar.track.bg=w("ck-list-bg"),e.bar.track.bgbox.append(e.bar.track.bg),e.bar.track.bg.p=[];for(var n=null,r=t.length-1;r>-1;r--)n=q("ck-list-p",t[r].label),n.attr("data-i",r).attr("data-title",t[r].label),e.bar.track.bg.p.push(n),e.bar.track.bg.append(n),!isUndefined(t[r].default)&&t[r].default&&(i=r),n.click(ei);n=q("ck-list-p",language.noTrack),n.attr("data-i",-1).attr("data-title",language.noTrack),e.bar.track.bg.p.push(n),e.bar.track.bg.append(n),n.click(ei),e.bar.track.hide(),e.bar.track.show(),e.bar.track.bgbox.show();var s=e.bar.track.bg.getWidth(),l=e.bar.track.bg.getHeight(),A=e.bar.track.button.getWidth();e.bar.track.bg.css({width:s+10+"px"}),s=e.bar.track.bg.getWidth(),he()>e.bar.getHeight()&&(l+=he()-e.bar.getHeight()),e.bar.track.bgbox.attr("style",""),e.bar.track.bgbox.css({width:s+"px",height:l+2+"px",left:-(s-A)*.5+"px"}),e.bar.track.button.mouseover(function(){s=e.bar.track.bg.getWidth(),A=e.bar.track.button.getWidth(),e.bar.track.bgbox.css({left:-(s-A)*.5+"px"})}),ti(i)},ei=function(t){e.bar.track.bgbox.hide(),setTimeout(function(){e.bar.track.bgbox.removeCss("display")},300),R(language.switchTo+M(this).attr("data-title")),f.track(parseFloat(M(this).attr("data-i")))},ti=function(t){e.bar.track.bg.find("button").each(function(i,n){var r=parseInt(n.attr("data-i"));t==r?(e.bar.track.button.htm(n.attr("data-title")),r>-1?(b.track=a.track[r],B("track",a.track[r])):(b.track=null,B("track",null)),n.addClass("ck-list-p-focus")):n.removeClass("ck-list-p-focus")})},ii=function(){var t=-1,i=o.currentSrc;if(isUndefined(e.bar.definition.bg)||(e.bar.definition.bgbox.htm(""),e.bar.definition.bgbox.attr("style",""),e.bar.definition.button.htm(language.definition)),valType(a.video)=="array"){var n=a.video;e.bar.definition.bg=w("ck-list-bg"),e.bar.definition.bgbox.append(e.bar.definition.bg),e.bar.definition.bg.p=[];for(var r=n.length-1;r>-1;r--){var s=q("ck-list-p",n[r][2]);s.attr("data-i",r).attr("data-video",n[r][0]).attr("data-type",n[r][1]).attr("data-title",n[r][2]),e.bar.definition.bg.p.push(s),e.bar.definition.bg.append(s),i&&i.indexOf(n[r][0])>-1&&(t=r),s.click(Ji)}e.bar.definition.show(),e.bar.definition.bgbox.show();var l=e.bar.definition.bg.getWidth(),A=e.bar.definition.bg.getHeight(),d=e.bar.definition.button.getWidth();e.bar.definition.bg.css({width:l+10+"px"}),l=e.bar.definition.bg.getWidth(),he()>e.bar.getHeight()&&(A+=he()-e.bar.getHeight()),e.bar.definition.bgbox.attr("style",""),e.bar.definition.bgbox.css({width:l+"px",height:A+2+"px",left:-(l-d)*.5+"px"}),e.bar.definition.button.mouseover(function(){l=e.bar.definition.bg.getWidth(),d=e.bar.definition.button.getWidth(),e.bar.definition.bgbox.css({left:-(l-d)*.5+"px"})})}t>-1&&e.bar.definition.bg.find("button").each(function(g,E){var U=parseInt(E.attr("data-i"));t==U?E.addClass("ck-list-p-focus"):E.removeClass("ck-list-p-focus")})},Ji=function(t){e.bar.definition.bgbox.hide(),setTimeout(function(){e.bar.definition.bgbox.removeCss("display")},300),ni(parseInt(M(this).attr("data-i")))},ni=function(t){e.bar.definition.bg.find("button").each(function(i,n){var r=parseInt(n.attr("data-i"));if(t==r){if(!isUndefined(o.textTracks)&&o.textTracks.length>0)for(var s=o.find("track").length-1;s>-1;s--)o.find("track").eq(s).remove();F=f.time();try{o.removeAttr("autoplay")}catch(l){}Re(n.attr("data-video")),R(language.switchTo+n.htm()),e.bar.definition.button.htm(n.htm()),n.addClass("ck-list-p-focus"),B("definition",{id:r,video:n.attr("data-video"),title:n.attr("data-title")})}else n.removeClass("ck-list-p-focus")})},ri=function(){var t=0;if(!isUndefined(e.prompt)&&valType(e.prompt)=="array"){for(t=e.prompt.length;t>-1;t--)isUndefined(e.prompt[t])||e.prompt[t].remove();e.prompt=null}e.prompt=[]},Zi=function(){ri();for(var t=0;t<a.prompt.length;t++){var i=a.prompt[t];if(!isUndefined(i)&&"words"in i&&"time"in i&&!isUndefined(i.time)&&!isUndefined(i.words)&&valType(i.time)=="number"){var n=w("ck-bar-progress-prompt");n.attr("data-words",i.words).attr("data-time",i.time),e.bar.pbox.bg.append(n);var r=n.getWidth()*.5/e.bar.pbox.bg.getWidth()*50,s=i.time/T*100-r;s<0&&(s=0),s>100&&(s=100),n.css({left:s+"%"}),n.mouseover(function(){this.attr("data-words")&&ai(this)}),n.mouseout(function(){this.attr("data-words")&&ai()}),e.prompt.push(n)}}},ai=function(t){if(isUndefined(e.promptWords)&&(e.promptWords=w("ck-prompt-words"),P.append(e.promptWords),e.promptWords.content=w("ck-prompt-content"),e.promptWords.append(e.promptWords.content)),isUndefined(t)){e.promptWords.content.htm(""),e.promptWords.hide();return}e.promptWords.content.htm(t.attr("data-words")),e.promptWords.show();var i=e.promptWords.getWidth(),n=e.promptWords.getHeight(),r=e.bar.pbox.bg,s=parseFloat(t.attr("data-time")),l=C.getHeight()-he(),A=t.offset().left-C.offset().left+t.getWidth()*.5-i*.5;isUndefined(e.preview)?(l=C.getHeight()-parseFloat(he()+e.tip.minHeight+parseInt(e.tip.css("margin-bottom"))),l-=he()-e.bar.getHeight()):l=C.getHeight()-parseFloat(he()+e.preview.smallHight+parseInt(e.preview.css("margin-bottom"))),l-=parseFloat(e.promptWords.css("margin-bottom")),l-=n,A-=parseFloat(e.promptWords.css("margin-right")),A<0&&(A=0),A>C.getWidth()-i&&(A=C.getWidth()-i),e.promptWords.css({top:l+"px",left:A+"px"})},oi=function(t){if(isUndefined(e.preview)||(e.preview.remove(),e.preview=null),!isUndefined(t)){e.preview=w("ck-preview"),P.append(e.preview),isUndefined(a.preview.type)&&(a.preview.type=0),a.preview.type==1&&(e.preview.bg=w("ck-preview-bg"),e.preview.append(e.preview.bg));var i=[],n=function(l,A,d,g){if(a.preview.type==1){e.preview.bg.img=[];for(var E=0;E<i.length;E++)for(var U=0;U<A/g;U++){var x=w("ck-preview-img");x.attr("data-img",i[E]).attr("data-i",U),x.css({width:l+"px",height:g+"px","background-position":"left "+-(U*g)+"px"}),e.preview.bg.append(x),e.preview.bg.img.push(x)}e.preview.bg.css({width:l*(A/g)*(i.length+1)+"px",height:g+"px"})}e.preview.bigWidth=l,e.preview.bigHight=A,e.preview.smallWidth=d,e.preview.smallHight=g,a.preview.type==1&&(e.preview.frame=w("ck-preview-frame"),e.preview.append(e.preview.frame),e.preview.frame.css({width:d+"px",height:g-parseFloat(e.preview.frame.css("border-width"))*2+"px"}))};if(valType(a.preview)=="object")if(valType(a.preview.file)=="array"){i=a.preview.file;var r=[10,10];if(valType(a.preview.thumbnail)=="array"&&a.preview.thumbnail.length>1&&(valType(a.preview.thumbnail[0])=="number"&&(r[0]=a.preview.thumbnail[0]),valType(a.preview.thumbnail[1])=="number"&&(r[1]=a.preview.thumbnail[1]),a.preview.thumbnail=r),i[0]){var s=et(i[0],"ck-preview-load-img").addListener("load",function(){n(this.getWidth(),this.getHeight(),this.getWidth()/r[0],this.getHeight()/r[1]),this.remove()});P.append(s)}}else e.preview.removeChild(),e.preview=null;else e.preview.removeChild(),e.preview=null}},si=function(t){if(Xe&&(clearTimeout(Xe),Xe=null),t<0&&!isUndefined(e.preview)){Xe=setTimeout(function(){e.preview.hide(),Xe=null},200);return}if(!isUndefined(e.preview)&&!isUndefined(a.preview.thumbnail)&&T>0){isUndefined(a.preview.type)&&(a.preview.type=0);var i=2,n=a.preview.thumbnail;isUndefined(a.preview.scale)||(i=a.preview.scale);var r=0,s=0,l=0,A=0,d=0,g=e.preview.smallWidth,E=e.preview.smallHight,U=t*e.bar.pbox.bg.getWidth()/T+(e.bar.pbox.bg.offset().left-C.offset().left);if(e.preview.css("display")=="none"&&e.preview.show(),e.preview.css({height:E+"px"}),a.preview.type==1){r=parseInt(t/(i*n[0])),s=parseInt(t/i);var x=r-5,D=r+5;x<0&&(x=0),D>e.preview.bg.img.length-1&&(D=e.preview.bg.img.length-1);for(var V=x;V<D;V++)if(e.preview.bg.img[V].attr("data-img")){var Y=e.preview.bg.img[V].css("background-position");e.preview.bg.img[V].css({background:"url("+e.preview.bg.img[V].attr("data-img")+") no-repeat"}),e.preview.bg.img[V].attr("data-img",""),e.preview.bg.img[V].css("background-position",Y)}if(d=e.preview.frame.getWidth(),A=U-d*.5,l=-(s*g+g*.5)+U,A<0&&(A=0,U=(d-g)*.5,l=-(s*g)+U),A>e.preview.getWidth()-e.preview.frame.getWidth()){var K=A-(e.preview.getWidth()-e.preview.frame.getWidth());A=e.preview.getWidth()-e.preview.frame.getWidth(),l-=K}e.preview.bg.css({left:l+"px"}),e.preview.frame.css({left:A+"px"})}else{var X=t/i/(n[0]*n[1]);s=parseInt(X);var Q=parseInt((X-s)*100),Ee=parseInt(Q/n[0]),H=Q%n[0],te=a.preview.file;l=U-g*.5,l<0&&(l=0),l>C.getWidth()-g&&(l=C.getWidth()-g),e.preview.css({width:e.preview.smallWidth+"px",background:"url("+te[s]+") no-repeat","background-position":"-"+H*g+"px -"+Ee*E+"px",left:l+"px"})}}},ue=function(){if(e.loading.hide(),!(a.controls||!a.errorShow)){isUndefined(e.error)&&(e.error=w("ck-error"),P.append(e.error));var t=b.error.message;t||(t=language.error.noMessage);var i=t+"(code:"+b.error.code+")";e.error.htm(i),e.error.show()}},Qe=function(t){var i=w("ckplayer-error",t);M("body").append(i)},Gi=function(){if(!isUndefined(a.next)){if(valType(a.next)=="object"){if("content"in a.next){e.next=f.layer(a.next);return}if("title"in a.next){j(e.bar.nextEpisode,a.next.title);return}}j(e.bar.nextEpisode,language.next)}},Ki=function(){valType(a.next)=="object"&&("click"in a.next&&(valType(a.next.click)=="function"?a.next.click():valType(a.next.click)=="string"&&$e(a.next.click)),"link"in a.next&&(window.location.href=a.next.link),B("next"))},Qi=function(){if(!b.loop&&!isUndefined(a.ended)){ft(),e.ended=f.layer(a.ended),e.ended&&e.centerPlay.hide();return}},en=function(){if(b.smallWindows){if(b.webFull||b.theatre||b.full){ct();return}var t=document.documentElement.scrollTop||document.body.scrollTop;t>b.offset().top+b.getHeight()?C.hasClass("ckplayer-ckplayer-smallwindow")||(C.addClass("ckplayer-ckplayer-smallwindow"),B("smallWindows",!0),wt=!0,a.smallWindowsDrag&&li(!0),di(),ve()):ct()}},ct=function(){C.hasClass("ckplayer-ckplayer-smallwindow")&&(C.removeClass("ckplayer-ckplayer-smallwindow"),a.smallWindowsDrag&&li(),B("smallWindows",!1),wt=!1,ui(),ve())},li=function(t){var i=M(document),n=0,r=0,s=0,l=0,A=!1;isUndefined(t)||(A=t);var d=function(U){U.preventDefault&&U.preventDefault(),U=U||window.event;var x=we(U);s=x.x,l=x.y,i.mousemove(g),i.mouseup(E),C.css({cursor:"move"})},g=function(U){U=U||window.event;var x=we(U),D=C.offset();r=x.y-l,n=x.x-s,s=x.x,l=x.y;var V=D.left+n,Y=D.top+r;C.css({left:V+"px",top:Y+"px"}),C.css("position")!="fixed"&&C.css({position:"fixed"}),Et=!0},E=function(){i.removeListener("mousemove",g),i.removeListener("mouseup",E),C.css({cursor:"default"})};A?C.mousedown(d):C.unbind("mousedown")},ve=function(){var t=C.getWidth()*ce*.01,i=C.getHeight()*ce*.01,n=re.getWidth(),r=re.getHeight();if(re.css({transform:"rotate("+Be+"deg)","-ms-transform":"rotate("+Be+"deg)","-moz-transform":"rotate("+Be+"deg)","-webkit-transform":"rotate("+Be+"deg)","-o-transform":"rotate("+Be+"deg)",width:ce+"%",height:ce+"%"}),Be!=0&&Be!=180){if(r>t&&n>i){r/t>n/i?re.css({height:ce+"%",width:i+"px"}):re.css({width:ce+"%",height:t+"px"});return}if(r<t&&n<i){t>i?re.css({height:ce+"%",width:i+"px"}):r/n>=t/i?re.css({width:ce+"%",height:t+"px"}):re.css({height:ce+"%",width:i+"px"});return}if(r>=t&&n<=i){re.css({width:ce+"%",height:t+"px"});return}n>=i&&r<t&&re.css({height:ce+"%",width:i+"px"})}},ui=function(){Dt&&(e.bar.show(),e.topBar.show()),Mt&&e.rightBar.show(),e.tempTime.hide(),isUndefined(e.logo)||e.logo.show()},di=function(t){isUndefined(t)&&(t=!0),e.bar.hide(),e.topBar.hide(),e.rightBar.hide(),t&&e.tempTime.show(),isUndefined(e.logo)||e.logo.hide()},R=function(t,i){e.message.htm("");var n=function(){e.message.removeClass("ck-message-right").removeClass("ck-animate-bouncein").removeClass("ck-animate"),e.message.hide()};t?(e.message.htm(t),e.message.show(),e.message.hasClass("ck-animate")||e.message.addClass("ck-animate ck-animate-bouncein"),!isUndefined(i)&&i&&(e.message.hasClass("ck-message-right")||e.message.addClass("ck-message-right")),Ve&&(clearTimeout(Ve),Ve=null),Ve=setTimeout(function(){n(),Ve=null},1500)):n()},j=function(t,i,n,r){e.tip.content.htm(""),i?(e.tip.content.htm(i),e.tip.show(),e.tip.hasClass("ck-animate")||e.tip.addClass("ck-animate ck-animate-bouncein"),isUndefined(r)&&(r="auto"),r=="left"?(e.tip.content.removeClass("ck-content-float-auto").addClass("ck-content-float-left"),e.tip.triangle.removeClass("ck-triangle-auto").addClass("ck-triangle-left")):(e.tip.content.removeClass("ck-content-float-left").addClass("ck-content-float-auto"),e.tip.triangle.removeClass("ck-triangle-left").addClass("ck-triangle-auto")),tn(t,n,r),isUndefined(Ye)&&(Ye=function(){qe&&(clearTimeout(qe),qe=null)},gt=function(s){Ye(),qe=setTimeout(function(){j(),qe=null},100),s&&s.removeListener("mouseout",gt)}),Ye(),t.mouseout(function(){gt(t)})):(e.tip.hide(),e.tip.removeClass("ck-animate"),e.tip.removeClass("ck-animate-bouncein"))},tn=function(t,i,n){var r=t.offset(),s=C.offset(),l=e.tip.getWidth(),A=e.tip.getHeight(),d=t.getWidth(),g=0,E=r.top-s.top-A;he()>e.bar.getHeight()&&(E-=he()-e.bar.getHeight()),l>d?g=r.left-s.left-(l-d)*.5:g=r.left-s.left+(d-l)*.5,n=="left"&&(g=r.left-s.left-l,E=r.top-s.top),isUndefined(i)||(g=i.x-s.left-l*.5),g<0&&(g=0),E<0&&(E=0),g>P.getWidth()-l&&(g=P.getWidth()-l),E>P.getHeight()-A&&(E=P.getHeight()-A),e.tip.css({left:g+"px",top:E-parseInt(e.tip.css("margin-bottom"))+"px"})},nn=function(){var t=e.bar.pbox.bg,i=e.bar.pbox.play,n=e.bar.pbox.slider,r=e.bar.pbox.mouseLine;n.unbind(),t.unbind();var s=0,l=0,A=M(document),d=0,g=function(H){if(H.preventDefault&&H.preventDefault(),!!a.timeScheduleAdjust){H=H||window.event;var te=n.offset(),me=t.offset(),Z=we(H);ke=!0,fe=!0,l=Z.x;var N=te.left-me.left;d=N*T/(t.getWidth()-n.getWidth()),n.removeListener("mousedown",g),n.removeListener("touchstart",g),A.mousemove(E),A.mouseup(U),n.touchmove(E),n.touchend(U),vt(!0)}},E=function(H){H=H||window.event;var te=n.offset(),me=t.offset(),Z=we(H);ke=!0,s=l-Z.x,l=Z.x;var N=te.left-s-me.left;N<0&&(N=0),N>t.getWidth()-n.getWidth()&&(N=t.getWidth()-n.getWidth()),e.bar.pbox.addClass("ck-bar-progress-slider-move");var ae="";if(a.live)ae=bi(N*ht()/(t.getWidth()-n.getWidth()));else{switch(ae=N*T/(t.getWidth()-n.getWidth()),a.timeScheduleAdjust){case 2:ae<d&&(N=-1e3,R(language.timeScheduleAdjust.prohibitBackOff));break;case 3:if(ae>d){N=-1e3,R(language.timeScheduleAdjust.prohibitForward);return}break;case 4:if(ae<ie){N=-1e3,f.seek(ie),R(language.timeScheduleAdjust.prohibitLookBack);return}break;case 5:if(ae>$){N=-1e3,f.seek($),R(language.timeScheduleAdjust.prohibitForwardNotViewed);return}break}ae=formatSeconds(ae)}j(n,ae),N>=0?(n.css({left:N+"px"}),i.css({width:N+n.getWidth()*.5+"px"})):ke=!1},U=function(){if(vt(),A.removeListener("mousemove",E),A.removeListener("mouseup",U),n.removeListener("touchmove",E),n.removeListener("touchend",U),n.mousedown(g),n.touchstart(g),a.live){var te=parseInt(a.live+i.getWidth()*ht()/(t.getWidth()-n.getWidth()*.5));B("playback",{time:te,date:date("Y-m-d H:i:s",te)}),B("seek",{time:te,state:"seeking",date:date("Y-m-d H:i:s",te)})}else{var H=i.getWidth()*T/(t.getWidth()-n.getWidth()*.5);H>T&&(H=T),F=0,f.seek(H)}setTimeout(function(){ke||(fe=!1)},800),e.bar.pbox.removeClass("ck-bar-progress-slider-move"),x&&j()},x=!0,D=function(){var H="";a.live?H=language.live:H=formatSeconds(parseInt(n.css("left"))*T/(t.getWidth()-n.getWidth())),x=!1,j(n,H)},V=function(){x=!0};n.mousedown(g),n.mouseover(D),n.mouseleave(V),n.touchstart(g);var Y=function(H){H=H||window.event;var te=we(H),me=t.offset(),Z=te.x-me.left;if(b.full&&(Z+=C.offset().left),a.live){var ae=parseInt(a.live+ht()*Z/t.getWidth());B("playback",{time:ae,date:date("Y-m-d H:i:s",ae)}),B("seek",{time:ae,state:"seeking",date:date("Y-m-d H:i:s",ae)})}else{var N=T*Z/t.getWidth();switch(a.timeScheduleAdjust){case 0:R(language.timeScheduleAdjust.prohibit);return;case 2:if(N<le){R(language.timeScheduleAdjust.prohibitBackOff);return}break;case 3:if(N>le){R(language.timeScheduleAdjust.prohibitForward);return}break;case 4:if(N<ie){R(language.timeScheduleAdjust.prohibitLookBack);return}break;case 5:if(N>$){R(language.timeScheduleAdjust.prohibitForwardNotViewed);return}break}F=0,f.seek(N)}Z>t.getWidth()-n.getWidth()*.5&&(Z=t.getWidth()-n.getWidth()*.5),Z<n.getWidth()*.5&&(Z=n.getWidth()*.5),ke=!0,i.css({width:Z+"px"}),n.css({left:Z-n.getWidth()*.5+"px"})},X=null,K=function(H){H=H||window.event;var te=we(H),me=t.offset(),Z=te.x-me.left;Q(),b.full&&(Z+=C.offset().left);var N=0;a.live?N=bi(ht()*Z/t.getWidth()):(N=T*Z/t.getWidth(),si(N),N=formatSeconds(N)),j(t,N,te),r.css({left:Z-e.bar.pbox.mouseLine.getWidth()*.5+"px"})},X=null,Q=function(){X&&(clearTimeout(X),X=null),Ye()},Ee=function(H){Q(),X=setTimeout(function(){si(-1)},30)};t.mousedown(Y),t.mousemove(K),t.mouseout(Ee),r.mouseover(Q)},rn=function(){var t=e.bar.vbox.volume.box,i=e.bar.vbox.volume.bg,n=e.bar.vbox.volume.pp,r=e.bar.vbox.volume.slider,s=M(document),l=0,A=0,d=function(x){x.preventDefault&&x.preventDefault(),vt(!0),x=x||window.event;var D=we(x);A=D.y,r.removeListener("mousedown",d),r.removeListener("touchstart",d),e.bar.vbox.mouseDown=!0,s.mousemove(g),s.mouseup(E),r.touchmove(g),r.touchend(E)},g=function(x){x=x||window.event;var D=we(x),V=r.offset(),Y=t.offset(),K=i.offset();l=D.y-A,A=D.y;var X=V.top-Y.top+l,Q=K.top-Y.top,Ee=K.top+i.getHeight()-Y.top-r.getHeight();X<Q&&(X=Q),X>Ee&&(X=Ee),r.css({top:X+"px"});var H=X-Q+r.getHeight()*.5;n.css({"margin-top":H+"px"});var te=(i.getHeight()-H-r.getHeight()*.5)/(i.getHeight()-r.getHeight());f.volume(te)},E=function(){vt(),s.removeListener("mousemove",g),s.removeListener("mouseup",E),r.removeListener("touchmove",g),r.removeListener("touchend",E),r.mousedown(d),r.touchstart(d),e.bar.vbox.mouseDown=!1};r.mousedown(d),r.touchstart(d);var U=function(x){x=x||window.event;var D=we(x),V=i.offset(),Y=D.y-V.top,K=i.getHeight(),X=1-Y/K;f.volume(X)};i.mousedown(U)},fi=function(t){if(!(valType(a.live)=="boolean"&&a.live)&&!ke){var i=e.bar.pbox.bg,n=e.bar.pbox.slider,r=t/T*100;valType(a.live)=="number"&&(r="100"),e.bar.pbox.play.css({width:r+"%"});var s=n.getWidth()/i.getWidth()*100,l=r-s*.5;l<0&&(l=0),l>100-s&&(l=100-s),e.bar.pbox.slider.css({left:l+"%"}),ci()}},ci=function(){var t=e.bar.pbox.bg,i=e.bar.pbox.slider,n=0;e.bar.pbox.css("transition-duration")&&(n=parseFloat(e.bar.pbox.css("transition-duration"))*1e3+20);var r=function(){var s=parseInt(e.bar.pbox.slider.css("left"));s<0&&(s=0,e.bar.pbox.slider.css({left:s+"px"})),s>t.getWidth()-i.getWidth()&&(s=t.getWidth()-i.getWidth(),e.bar.pbox.slider.css({left:s+"px"}))};setTimeout(r,n)},pi=function(){e.topBar.timeEle.htm(date("H:i:s")),setTimeout(pi,1e3)},St=function(t){if(!isUndefined(e.bar.vbox)){var i=e.bar.vbox.volume.box,n=e.bar.vbox.volume.bg,r=e.bar.vbox.volume.pp,s=e.bar.vbox.volume.slider;e.bar.vbox.volume.txt.htm(parseInt(t*100));var l=n.getHeight();if(l){var A=l-t*l;r.css({"margin-top":A+"px"});var d=n.offset().top-i.offset().top+A-s.getHeight()*.5;s.css({top:d+"px"})}}},hi=function(){if(o){var t=o.buffered.length;if(t>0){var i=o.buffered.end(t-1);_<i&&(_=i),Fe("loadTime",parseInt(_*100)*.01),e.bar.pbox.load.css("width",_/T*100+"%")}}},an=function(t){t?(e.bar.vbox.muted.hide(),e.bar.vbox.exitMuted.show(),e.ad.bottom.mutedAndExit.muted.hide(),e.ad.bottom.mutedAndExit.exitMuted.show(),R(language.muted)):(e.bar.vbox.muted.show(),e.bar.vbox.exitMuted.hide(),e.ad.bottom.mutedAndExit.muted.show(),e.ad.bottom.mutedAndExit.exitMuted.hide())},Fe=function(t,i){if(isUndefined(e.about.sourceData)&&!isUndefined(e.about.find("ul"))){e.about.sourceData=e.about.find("ul").eq(0).htm(),e.about.objData={};for(var n=/{(.*?)}/g,r=e.about.sourceData.match(n);r=n.exec(e.about.sourceData);)e.about.objData[r[1]]="0"}if(!isUndefined(e.about.find("ul"))){var n=null,s=e.about.sourceData,l=e.about.textareaText;if(e.about.objData){for(var A in e.about.objData)if(t!=A){n=new RegExp("{"+A+"}","g");var d=e.about.objData[A];isUndefined(d)&&(d="0"),s=s.replace(n,d),l=l.replace(n,d)}}return n=new RegExp("{"+t+"}","g"),s=s.replace(n,i||""),l=l.replace(n,i||""),e.about.textareaEle.htm(l),e.about.objData[t]=i,e.about.find("ul").eq(0).htm(s)}},on=function(){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(E){window.setTimeout(E,16.666666666666668)},i,n,r,s,l,A;s=0,l=Date.now();var d=function(){A=Date.now()-l,s+=1,A>=1e3&&(l+=A,g(s),s=0),t(d)},g=function(E){E!=b.fps&&(b.fps=E,Fe("fps",E),B("fps",E))};isUndefined(b.fps)&&(b.fps=0),d()},sn=function(t){var i=M(t);if(!isUndefined(i))return valType(i)=="htmlarray"&&(i=i[0]),isUndefined(i.captureParentNode)&&(i.captureParentNode=i.parentNode,i.prevElement=i.prev(),i.nextElement=i.next()),i},M=function(t,i){var n=null;document&&(n=document),isUndefined(i)||(n=i);var r=[];if(t)if(valType(t)=="htmlobject"||valType(t)=="object"){if(r=t,!isUndefined(r.ckplayer))return r}else if(valType(t)=="string"&&t!="")switch(t.substr(0,1)){case".":if(t=t.substr(1,t.length),n.getElementsByClassName){if(r=n.getElementsByClassName(t),!r.length)return null}else if(!n&&document.getElementsByClassName){if(r=document.getElementsByClassName(t),!r.length)return null}else{var A=new RegExp(" "+t+" ","i"),s=null;n.getElementsByTagName?s=n.getElementsByTagName("*"):s=document.getElementsByTagName("*");for(var l=0;l<s.length;l++)A.test(" "+s[l].className+" ")&&r.push(s[l])}r&&r.length===0&&(r=null);break;case"#":t=t.substr(1,t.length),n.getElementById?r=n.getElementById(t):r=document.getElementById(t);break;default:var A=new RegExp(" "+t+" ","i");n.getElementsByTagName?r=n.getElementsByTagName(t):r=document.getElementsByTagName(t),r?t=="body"||t=="document"||t=="html"?r=r[0]:r.length===0&&(r=null):r=null;break}else r=t;else r=document;if(r)if(valType(r)=="htmlobject"||valType(r)=="object"||valType(r)=="document")r.ckplayer="Thanks for using",r.find=function(d){return M(d,this)},r.attr=function(d,g){return isUndefined(g)?this.getAttribute(d):(this.setAttribute(d,g),this)},r.removeAttr=function(d){return this.removeAttribute(d),this},r.css=function(d,g){var E=function(Y){if(Y.indexOf("-")!=-1){var K=Y.split("-"),X=K[0],Q="",Ee="";return K.length>1&&(Q=K[1].substr(0,1).toLocaleUpperCase()+K[1].substr(1,K[1].length-1)),K.length>2&&(Q=K[2].substr(0,1).toLocaleUpperCase()+K[2].substr(1,K[2].length-1)),X+Q+Ee}return Y};if(isUndefined(g)){if(!isUndefined(d)&&valType(d)=="string")return this.currentStyle?this.currentStyle[d]:document.defaultView.getComputedStyle(this,null)[d];if(isUndefined(d))return this.currentStyle?this.currentStyle:document.defaultView.getComputedStyle(this,null)}if(valType(d)!="object"){var U=E(d);if(this.length>1)for(var x=0;x<this.length;x++)this[x].style[U]=g;else this.style[U]=g}else for(var D in d){var V=E(D);if(valType(this)=="htmlarray")for(var x=0;x<this.length;x++)this[x].style[V]=d[D];else this.style[V]=d[D]}return this},r.hasClass=function(d){if(isUndefined(d))return!1;var g=new RegExp("(\\s|^)"+d+"(\\s|$)");return!!(this.className&&this.className.match(g))},r.addClass=function(d){return this.hasClass(d)||(this.className&&this.className.substr(this.className.length-1,1)!=" "&&(this.className+=" "),this.className+=d),this},r.removeClass=function(d){return this.hasClass(d)&&(this.className=this.className.replace(new RegExp("(\\s|^)"+d+"(\\s|$)")," "),this.className.substr(this.className.length-1,1)==" "&&(this.className=this.className.substr(0,this.className.length-1)),this.className||this.removeAttribute("class")),this},r.searchClass=function(d){for(var g=this.className.split(" "),E=0;E<g.length;E++)if(g[E].substr(0,d.length)==d)return g[E];return this},r.removeCss=function(d){var g=this.attr("style");if(g){for(var E=g.split(";"),U={},x=0;x<E.length;x++){var D=E[x].split(":");D.length==2&&D[0]&&D[0].trim()!=d&&(U[D[0].trim()]=D[1].trim())}this.attr("style",""),this.css(U)}},r.addListener=function(d,g,E){return addListener(this,d,g,E)},r.removeListener=function(d,g,E){return removeListener(this,d,g,E)},r.prev=function(){return prev(this)},r.next=function(){return next(this)},r.append=function(d){return this.appendChild(d),this},r.remove=function(){return isUndefined(this.parentNode)||this.parentNode.removeChild(this),null},r.bind=function(d,g,E){return addListener(this,d,g,E)},r.unbind=function(d,g){var E=0,U=[];if(!isUndefined(g))r.removeListener(d,g);else if(isUndefined(d)){if(!isUndefined(this.listenerList))for(U=this.listenerList,E=0;E<U.length;E++)r.removeListener(U[E][0],U[E][1])}else if(!isUndefined(this.listenerList))for(U=this.listenerList,E=0;E<U.length;E++)U[E][0]==d&&r.removeListener(d,U[E][1])},r.htm=function(d){if(!isUndefined(d))r.innerHTML=d;else return r.innerHTML},r.htmReplace=function(d,g,E){if(!isUndefined(g)&&!isUndefined(d)){isUndefined(this.attr("data-htm"))&&this.attr("data-htm",E);var U=this.attr("data-htm"),x=new RegExp(d,"g");U=U.replace(x,g),this.htm(U)}},r.offset=function(){for(var d=this.offsetParent,g=this.offsetLeft,E=this.offsetTop;d&&d.tagName!=="BODY";)/MSIE 8\.0/.test(navigator.userAgent)||(g+=d.clientLeft,E+=d.clientTop),g+=d.offsetLeft,E+=d.offsetTop,d=d.offsetParent;return{top:E,left:g}},r.fixed=function(){return this.css("position")=="fixed"?!0:isUndefined(this.offsetParent)?!1:M(this.offsetParent).fixed()},r.getWidth=function(){return this.offsetWidth},r.getHeight=function(){return this.offsetHeight},isUndefined(r.width)&&(r.width=function(){return this.offsetWidth}),isUndefined(r.height)&&(r.height=function(){return this.offsetWidth}),r.resize=function(d){addListener(window,"resize",d)},r.click=function(d){return addListener(this,"click",d),this},r.singleClick=function(d){return isUndefined(this.dbClick)&&(mi(this),this.dbClick=!0),this.addListener("sigClick",d),this},r.doubleClick=function(d){return isUndefined(this.dbClick)&&(mi(this),this.dbClick=!0),this.addListener("dobClick",d),this},r.mouseover=function(d){return addListener(this,"mouseover",d),this},r.mouseout=function(d){return addListener(this,"mouseout",d),this},r.mousedown=function(d){return addListener(this,"mousedown",d),this},r.mouseup=function(d){return addListener(this,"mouseup",d),this},r.mousemove=function(d){return addListener(this,"mousemove",d),this},r.mouseWheel=function(d){return addListener(this,"mousewheel",d),addListener(this,"DOMMouseScroll",d,!1),this},r.mouseleave=function(d){return addListener(this,"mouseleave",d),this},r.touchstart=function(d){return addListener(this,"touchstart",d),this},r.touchmove=function(d){return addListener(this,"touchmove",d),this},r.touchend=function(d){return addListener(this,"touchend",d),this},r.show=function(){return this.css("display","block"),this},r.hide=function(){return this.css("display","none"),this},r.animate=function(d,g,E,U){if(isUndefined(this.CK))return r;var x=this,D=this.CK,V=D.getWidth(),Y=D.getHeight(),K=10;if(this.timerTween=null,this.tweenPlay=!0,isUndefined(d))return this;(isUndefined(g)||g==0)&&(g=1e3),(isUndefined(E)||E=="")&&(E="None.easeIn");var X=E.split("."),Q={None:{easeIn:function(u,c,m,y){return m*u/y+c},easeOut:function(u,c,m,y){return m*u/y+c},easeInOut:function(u,c,m,y){return m*u/y+c}},Quadratic:{easeIn:function(u,c,m,y){return m*(u/=y)*u+c},easeOut:function(u,c,m,y){return-m*(u/=y)*(u-2)+c},easeInOut:function(u,c,m,y){return(u/=y/2)<1?m/2*u*u+c:-m/2*(--u*(u-2)-1)+c}},Cubic:{easeIn:function(u,c,m,y){return m*(u/=y)*u*u+c},easeOut:function(u,c,m,y){return m*((u=u/y-1)*u*u+1)+c},easeInOut:function(u,c,m,y){return(u/=y/2)<1?m/2*u*u*u+c:m/2*((u-=2)*u*u+2)+c}},Quartic:{easeIn:function(u,c,m,y){return m*(u/=y)*u*u*u+c},easeOut:function(u,c,m,y){return-m*((u=u/y-1)*u*u*u-1)+c},easeInOut:function(u,c,m,y){return(u/=y/2)<1?m/2*u*u*u*u+c:-m/2*((u-=2)*u*u*u-2)+c}},Quintic:{easeIn:function(u,c,m,y){return m*(u/=y)*u*u*u*u+c},easeOut:function(u,c,m,y){return m*((u=u/y-1)*u*u*u*u+1)+c},easeInOut:function(u,c,m,y){return(u/=y/2)<1?m/2*u*u*u*u*u+c:m/2*((u-=2)*u*u*u*u+2)+c}},Sine:{easeIn:function(u,c,m,y){return-m*Math.cos(u/y*(Math.PI/2))+m+c},easeOut:function(u,c,m,y){return m*Math.sin(u/y*(Math.PI/2))+c},easeInOut:function(u,c,m,y){return-m/2*(Math.cos(Math.PI*u/y)-1)+c}},Exponential:{easeIn:function(u,c,m,y){return u==0?c:m*Math.pow(2,10*(u/y-1))+c},easeOut:function(u,c,m,y){return u==y?c+m:m*(-Math.pow(2,-10*u/y)+1)+c},easeInOut:function(u,c,m,y){return u==0?c:u==y?c+m:(u/=y/2)<1?m/2*Math.pow(2,10*(u-1))+c:m/2*(-Math.pow(2,-10*--u)+2)+c}},Circular:{easeIn:function(u,c,m,y){return-m*(Math.sqrt(1-(u/=y)*u)-1)+c},easeOut:function(u,c,m,y){return m*Math.sqrt(1-(u=u/y-1)*u)+c},easeInOut:function(u,c,m,y){return(u/=y/2)<1?-m/2*(Math.sqrt(1-u*u)-1)+c:m/2*(Math.sqrt(1-(u-=2)*u)+1)+c}},Elastic:{easeIn:function(u,c,m,y,O,ne){if(u==0)return c;if((u/=y)==1)return c+m;if(ne||(ne=y*.3),!O||O<Math.abs(m)){O=m;var Le=ne/4}else var Le=ne/(2*Math.PI)*Math.asin(m/O);return-(O*Math.pow(2,10*(u-=1))*Math.sin((u*y-Le)*(2*Math.PI)/ne))+c},easeOut:function(u,c,m,y,O,ne){if(u==0)return c;if((u/=y)==1)return c+m;if(ne||(ne=y*.3),!O||O<Math.abs(m)){O=m;var Le=ne/4}else var Le=ne/(2*Math.PI)*Math.asin(m/O);return O*Math.pow(2,-10*u)*Math.sin((u*y-Le)*(2*Math.PI)/ne)+m+c},easeInOut:function(u,c,m,y,O,ne){if(u==0)return c;if((u/=y/2)==2)return c+m;if(ne||(ne=y*(.3*1.5)),!O||O<Math.abs(m)){O=m;var Le=ne/4}else var Le=ne/(2*Math.PI)*Math.asin(m/O);return u<1?-.5*(O*Math.pow(2,10*(u-=1))*Math.sin((u*y-Le)*(2*Math.PI)/ne))+c:O*Math.pow(2,-10*(u-=1))*Math.sin((u*y-Le)*(2*Math.PI)/ne)*.5+m+c}},Back:{easeIn:function(u,c,m,y,O){return O==null&&(O=1.70158),m*(u/=y)*u*((O+1)*u-O)+c},easeOut:function(u,c,m,y,O){return O==null&&(O=1.70158),m*((u=u/y-1)*u*((O+1)*u+O)+1)+c},easeInOut:function(u,c,m,y,O){return O==null&&(O=1.70158),(u/=y/2)<1?m/2*(u*u*(((O*=1.525)+1)*u-O))+c:m/2*((u-=2)*u*(((O*=1.525)+1)*u+O)+2)+c}},Bounce:{easeIn:function(u,c,m,y){return m-Q.Bounce.easeOut(y-u,0,m,y)+c},easeOut:function(u,c,m,y){return(u/=y)<1/2.75?m*(7.5625*u*u)+c:u<2/2.75?m*(7.5625*(u-=1.5/2.75)*u+.75)+c:u<2.5/2.75?m*(7.5625*(u-=2.25/2.75)*u+.9375)+c:m*(7.5625*(u-=2.625/2.75)*u+.984375)+c},easeInOut:function(u,c,m,y){return u<y/2?Q.Bounce.easeIn(u*2,0,m,y)*.5+c:Q.Bounce.easeOut(u*2-y,0,m,y)*.5+m*.5+c}}};if(X.length!=2||!(X[0]in Q)||!(X[1]in Q[X[0]]))return null;var Ee=Q[X[0]][X[1]],H=function(u){var c=u[1],m=0,y=0;switch(u[0]){case"width":m=x.getWidth(),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*Y*.01:y=parseInt(c);break;case"height":m=x.getHeight(),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*Y*.01:y=parseInt(c);break;case"left":isUndefined(x.css("left"))?m=x.offset().left-D.offset().left:m=parseInt(x.css("left")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*V*.01:y=parseInt(c),x.css("right","auto");break;case"right":isUndefined(x.css("right"))?m=D.getWidth()-(x.offset().left-D.offset().left+x.getWidth()):m=parseInt(x.css("right")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*V*.01:y=parseInt(c),x.css("left","auto");break;case"top":isUndefined(x.css("top"))?m=x.offset().top-D.offset().top:m=parseInt(x.css("top")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*Y*.01:y=parseInt(c),x.css("bottom","auto");break;case"bottom":isUndefined(x.css("bottom"))?m=D.getHeight()-(x.offset().top-D.offset().top+x.getHeight()):m=parseInt(x.css("bottom")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*Y*.01:y=parseInt(c),x.css("top","auto");break;case"alpha":!isUndefined(x.css("filter"))&&x.css("filter")!="none"?m=Number(x.css("filter"))*100:!isUndefined(x.css("opacity"))&&x.css("opacity")!="none"?m=x.css("opacity")*100:m=100,c.substring(c.length-1,c.length)=="%"?y=parseInt(c):y=c*100;break}return y-=m,m!=y?{type:u[0],current:m,result:y}:null},te=function(){x.timerTween!=null&&(clearInterval(x.timerTween),x.timerTween=null)};d=d.replace(/[ ]*,[ ]*|[ ]+/g,";");for(var me=[],Z=d.split(";"),N=0;N<Z.length;N++){var ae=Z[N].split(":");if(ae.length==2){var gi=H(ae);gi&&me.push(gi)}}var Pt=0,un=function(){var u={};if(x.tweenPlay)if(Pt<g){Pt+=K;for(var c=0;c<me.length;c++){var m=me[c],y=Math.ceil(Ee(Pt,m.current,m.result,g));switch(m.type){case"width":u.width=y+"px",u.overflow="hidden";break;case"height":u.height=y+"px",u.overflow="hidden";break;case"left":u.left=y+"px";break;case"right":u.right=y+"px";break;case"top":u.top=y+"px";break;case"bottom":u.bottom=y+"px";break;case"alpha":u.filter="alpha(opacity:"+y*.01+")",u.opacity=y*.01;break}}x.css(u)}else te(),isUndefined(U)||U(x)};return te(),this.timerTween=setInterval(un,K),this},r.animatePlay=function(){return isUndefined(this.timerTween)||(this.tweenPlay=!0),this},r.animatePause=function(){return isUndefined(this.timerTween)||(this.tweenPlay=!1),this};else{r.each=function(d){for(var g in this)if(this.hasOwnProperty(g))if(valType(this[g])=="htmlobject")d(g,this[g]);else try{this[0].nodeName||d(g,this[g])}catch(E){d(g,this[g])}},r.eq=function(d){return valType(this)=="htmlarray"&&this.length>=d+1?this[d]:null};for(var l=0;l<r.length;l++)if(M)try{r[l]=M(r[l])}catch(g){}}return r},w=function(t,i){var n=document.createElement("div"),r=M(n);return t&&r.addClass(t),i&&r.htm(i),r},ln=function(){var t=document.createElement("video"),i=M(t);return i},q=function(t,i){var n=document.createElement("button"),r=M(n);return r.attr("type","button"),t&&r.addClass(t),i&&r.htm(i),r},pt=function(t,i,n){var r=document.createElement("a"),s=M(r);return t&&s.htm(t),!isUndefined(i)&&i&&(s.attr("href",i),s.attr("target","_blank")),n&&s.addClass(n),s},vi=function(t,i){var n=document.createElement("a"),r=M(n);return t&&r.htm(t),!isUndefined(i)&&i?r.attr("href","javascript:"+i+"()"):r.attr("href","javascript:;"),r},et=function(t,i){var n=document.createElement("img"),r=M(n);return i&&(n.className=i),t&&(n.src=t),r},we=function(t){var i=t||window.event;isUndefined(i)&&(i={clientX:0,clientY:0});var n=i.clientX+(document.documentElement.scrollLeft||M("body").scrollLeft),r=i.clientY+(document.documentElement.scrollTop||M("body").scrollTop);return(isUndefined(n.toString())||n.toString()=="NaN")&&(n=i.touches[0].clientX),(isUndefined(r.toString())||r.toString()=="NaN")&&(r=i.touches[0].clientY),n.toString()=="NaN"&&(n=0),r.toString()=="NaN"&&(r=0),{x:n,y:r}},ht=function(){var t=Date.now(),i=a.live;return i.toString().length<13&&(i=i*1e3),t-i},bi=function(t){var i=a.live;return i.toString().length<13&&(i=i*1e3),i+=t,language.lookBack+date("H:i:s",i)},tt=function(t,i,n){var r=function(){};if(isUndefined(i)||(r=i),checkJs(t)){r();return}var s=document.createElement("script");s.type="text/javascript";var l=!1,A=null,d=function(){A&&clearInterval(A),!l&&(l=!0,valType(r)=="function"&&r())},g=function(){A=setInterval(function(){try{!isUndefined(s.readyState)&&s.readyState=="complete"&&d()}catch(D){}},10)},E=function(){try{s.parentNode&&s.parentNode.removeChild(s)}catch(D){}},U=function(){removeListener(s,"load",U),removeListener(s,"error",x),d()},x=function(){if(removeListener(s,"load",U),removeListener(s,"error",x),E(),!n&&(!a||a.cdnFallback!==!1)){var D=typeof window!="undefined"&&window.ckplayerPlusCdn?window.ckplayerPlusCdn:ckplayerPlusDefaultCdn,V=String(t).match(/\/(hls\.js|flv\.js|mpegts\.js|language)\/([^/?#]+)(?:[?#].*)?$/i);if(D&&D.indexOf("1.1.7")===-1&&V){D.slice(-1)!=="/"&&(D+="/");var Y=D+V[1]+"/"+V[2];if(Y!==t){tt(Y,i,!0);return}}}};try{addListener(s,"load",U),addListener(s,"error",x)}catch(D){g()}s.src=t,M("head").eq(0).append(s)},mi=function(t){var i=null,n=0;t=M(t),t.click(function(){if(i||(i=setTimeout(function(){try{t.dispatchEvent(new Event("sigClick"))}catch(l){var s=document.createEvent("HTMLEvents");s.initEvent("sigClick",!1,!0),t.dispatchEvent(s)}n=0,i=null},260)),!n)n=new Date().getTime();else if(new Date().getTime()-n<230){try{t.dispatchEvent(new Event("dobClick"))}catch(s){var r=document.createEvent("HTMLEvents");r.initEvent("dobClick",!1,!0),t.dispatchEvent(r)}clearTimeout(i),n=0,i=null}})},vt=function(t){isUndefined(t)&&(t=!1);var i=function(n){n.preventDefault()};t?M("body").addListener("touchmove",i,{passive:!1}):M("body").removeListener("touchmove",i,{passive:!1})};return ot(v)}function ajax(cObj){var callback=null,obj={method:"get",dataType:"json",charset:"utf-8",async:!0,url:"",data:null,success:null,error:null};if(obj=standardization(obj,cObj),!isUndefined(obj.url)){var errorFun=function(v){!isUndefined(obj.error)&&valType(obj.error)=="function"?obj.error(v):obj.success(null)},successFun=function(v){!isUndefined(obj.success)&&valType(obj.success)=="function"&&obj.success(v)},createXHR=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(v){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(p){}}},formatParams=function(v){var p=[];for(var a in v)p.push(encodeURIComponent(a)+"="+encodeURIComponent(v[a]));return p.join("&")};if(valType(cObj)!="object"){isUndefined(obj.error)||obj.error(event);return}if(obj.dataType==="json"||obj.dataType==="text"||obj.dataType==="html"||obj.dataType==="xml"){var xhr=createXHR();if(callback=function(){if(xhr.status===200)if(obj.dataType==="json")try{var jsonData;try{jsonData=JSON.parse(xhr.responseText)}catch(parseErr){jsonData=eval("("+xhr.responseText+")")}successFun(jsonData)}catch(v){successFun(null)}else successFun(xhr.responseText);else errorFun({code:xhr.status,message:xhr.statusText})},obj.data=formatParams(obj.data),obj.method==="get"&&!isUndefined(obj.data)&&obj.data!=""&&(obj.url.indexOf("?")==-1?obj.url+="?"+obj.data:obj.url+="&"+obj.data),obj.async===!0&&addListener(xhr,"readystatechange",function(v){this.readyState===4&&callback!=null&&callback()}),xhr.open(obj.method,obj.url,obj.async),obj.method==="post")try{xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),xhr.setRequestHeader("charset",obj.charset),xhr.send(obj.data)}catch(v){callback()}else try{xhr.send(null)}catch(v){callback()}obj.async===!1&&callback()}else if(obj.dataType==="jsonp"){var oHead=document.getElementsByTagName("head")[0],oScript=document.createElement("script"),callbackName="callback"+new Date().getTime(),params=formatParams(obj.data)+"&callback="+callbackName;oScript.src=obj.url.split("?")+"?"+params,oHead.insertBefore(oScript,oHead.firstChild),window[callbackName]=function(v){!isUndefined(obj.success)&&valType(obj.success)==="function"&&obj.success(v),oHead.removeChild(oScript)}}}}function documentReady(v){var p=!1,a=null,k=function(){a&&clearInterval(a),!p&&(p=!0,valType(v)=="function"&&v())},o=function(){a=setInterval(function(){try{!isUndefined(document.readyState)&&document.readyState=="complete"&&k()}catch(G){}},10)},T=function(){valType(v)=="function"&&v(),removeListener(window,"load",T)};if(!isUndefined(document.body))valType(v)=="function"&&v();else try{addListener(window,"load",T)}catch(G){o()}}function getPath(v){if(typeof window!="undefined"&&window.ckplayerBasePath){var p=window.ckplayerBasePath;if(/\/(?:assets|\.vite\/deps|_next\/static|chunks?)\/?$/i.test(p)&&(p=""),p)return p.slice(-1)!=="/"&&(p+="/"),isUndefined(v)?p:p+v+"/"}for(var a=document.scripts||[],k=a.length?a[a.length-1].src:"",o=0;o<a.length;o++){var T=a[o].getAttribute("name")||a[o].getAttribute("data-name"),G=a[o].src.slice(a[o].src.lastIndexOf("/")+1,a[o].src.lastIndexOf("."));if(T&&(T=="ckplayer"||T=="ckplayer.min"||T=="ckplayer-plus")||a[o].src&&(G=="ckplayer"||G=="ckplayer.min"||G.indexOf("ckplayer")===0)){k=a[o].src;break}}var de="";return k&&k.lastIndexOf("/js/")>-1?de=k.substring(0,k.lastIndexOf("/js/")+1):k&&k.lastIndexOf("/")>-1&&(de=k.substring(0,k.lastIndexOf("/")+1)),isUndefined(v)||(de+=v+"/"),de}function checkJs(v){for(var p=document.scripts,a=0;a<p.length;a++)if(p[a].src==v)return p[a];return!1}function getMaxZIndex(){for(var v=document.all||document.querySelectorAll("*"),p=-1,a=0;a<v.length;a++){var k=null;try{k=window.getComputedStyle(v[a],null).zIndex}catch(o){v[a].style&&(k=v[a].style.zIndex)}k!="auto"&&parseInt(k)>p&&(p=parseInt(k))}return p}function getWindowSize(){return{width:window.innerWidth,height:window.innerHeight}}function standardization(v,p){var a={},k;for(k in v)a[k]=v[k];for(k in p)k in a&&(a[k]=p[k]);return a}function mergeObj(v,p){var a={},k;for(k in v)a[k]=v[k];for(k in p)if(k in a)switch(valType(a[k])){case"object":valType(p[k])=="object"&&(a[k]=mergeObj(a[k],p[k]));break;default:valType(a[k])==valType(p[k])&&(a[k]=p[k]);break}return a}function valType(v){if(typeof v=="undefined")return"undefined";var p=Object.prototype.toString.call(v).split(" ")[1].replace("]","").toLowerCase();return p.substr(0,4)=="html"&&(p.substr(-7)=="element"||p.substr(-8)=="document"||p=="window")&&(p="htmlobject"),(p=="htmlcollection"||p=="nodelist")&&(p="htmlarray"),p}function isUndefined(v){try{return valType(v)==="undefined"||v===void 0||v===null||valType(v)==="number"&&isNaN(v)}catch(p){return!0}return!1}function prev(v){var p=v.previousSibling;if(p==null)return null;if(p.nodeType==3){var a=prev(p);if(a&&a.nodeType==1)return a}else return p.nodeType==1?p:!1}function next(v){var p=v.nextSibling;if(p==null)return null;if(p.nodeType==3){var a=next(p);if(a&&a.nodeType==1)return a}else return p.nodeType==1?p:!1}function addListener(v,p,a,k){if(isUndefined(k)&&(k=!1),v.addEventListener)try{v.addEventListener(p,a,k)}catch(o){}else if(v.attachEvent)try{v.attachEvent("on"+p,a)}catch(o){}else v["on"+p]=a;return isUndefined(v.listenerList)&&(v.listenerList=[]),v.listenerList.push([p,a]),v}function removeListener(v,p,a,k){if(isUndefined(k)&&(k=!1),v.removeEventListener)try{v.removeEventListener(p,a,k)}catch(G){}else if(v.detachEvent)try{v.detachEvent("on"+p,a)}catch(G){}else v["on"+p]=null;if(!isUndefined(v.listenerList)){for(var o=[],T=0;T<v.listenerList.length;T++)(v.listenerList[T][0]!=p||v.listenerList[T][1]!=a)&&o.push(v.listenerList[T]);v.listenerList=o}return v}function formatSeconds(v){isUndefined(v)&&(v=0);var p=parseInt(v);isUndefined(p)&&(p=0),p<0&&(p=0);var a=Math.floor(p/3600)<10?"0"+Math.floor(p/3600):Math.floor(p/3600),k=Math.floor(p/60%60)<10?"0"+Math.floor(p/60%60):Math.floor(p/60%60),o=Math.floor(p%60)<10?"0"+Math.floor(p%60):Math.floor(p%60),T="";return a!=="00"&&(T+=a+":"),T+=k+":"+o,T}function date(v,p){isUndefined(p)&&(p=new Date),p.toString().length<13&&(p=p*1e3);var a,k=p?new Date(p):new Date,o=function(L,_){return(L=L+"").length<_?new Array(++_-L.length).join("0")+L:L},T=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],G={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"},de=["","January","February","March","April","May","June","July","August","September","October","November","December"],W={d:function(){return o(W.j(),2)},D:function(){return W.l().substr(0,3)},j:function(){return k.getDate()},l:function(){return T[W.w()]},N:function(){return W.w()+1},S:function(){return G[W.j()]?G[W.j()]:"th"},w:function(){return k.getDay()},z:function(){return(k-new Date(k.getFullYear()+"/1/1"))/864e5>>0},W:function(){var L=W.z(),_=364+W.L()-L,F,ee=(new Date(k.getFullYear()+"/1/1").getDay()||7)-1;return _<=2&&(k.getDay()||7)-1<=2-_?1:L<=2&&ee>=4&&L>=6-ee?(F=new Date(k.getFullYear()-1+"/12/31"),date("W",Math.round(F.getTime()/1e3))):1+(ee<=3?(L+ee)/7:(L-(7-ee))/7)>>0},F:function(){return de[W.n()]},m:function(){return o(W.n(),2)},M:function(){return W.F().substr(0,3)},n:function(){return k.getMonth()+1},t:function(){var L;return(L=k.getMonth()+1)==2?28+W.L():L&1&&L<8||!(L&1)&&L>7?31:30},L:function(){var L=W.Y();return!(L&3)&&(L%100||!(L%400))?1:0},Y:function(){return k.getFullYear()},y:function(){return(k.getFullYear()+"").slice(2)},a:function(){return k.getHours()>11?"pm":"am"},A:function(){return W.a().toUpperCase()},B:function(){var L=(k.getTimezoneOffset()+60)*60,_=k.getHours()*3600+k.getMinutes()*60+k.getSeconds()+L,F=Math.floor(_/86.4);return F>1e3&&(F-=1e3),F<0&&(F+=1e3),String(F).length==1&&(F="00"+F),String(F).length==2&&(F="0"+F),F},g:function(){return k.getHours()%12||12},G:function(){return k.getHours()},h:function(){return o(W.g(),2)},H:function(){return o(k.getHours(),2)},i:function(){return o(k.getMinutes(),2)},s:function(){return o(k.getSeconds(),2)},O:function(){var L=o(Math.abs(k.getTimezoneOffset()/60*100),4);return k.getTimezoneOffset()>0?L="-"+L:L="+"+L,L},P:function(){var L=W.O();return L.substr(0,3)+":"+L.substr(3,2)},c:function(){return W.Y()+"-"+W.m()+"-"+W.d()+"T"+W.h()+":"+W.i()+":"+W.s()+W.P()},U:function(){return Math.round(k.getTime()/1e3)}};return v.replace(/([a-zA-Z])/g,function(L,_){var F="";return L!=_?F=_:W[_]?F=W[_]():F=_,F})}function dataURLtoBlob(v){for(var p=v.split(","),a=p[0].match(/:(.*?);/)[1],k=atob(p[1]),o=k.length,T=new Uint8Array(o);o--;)T[o]=k.charCodeAt(o);return new Blob([T],{type:a})}function decodeURIString(v){for(var p in v){if(valType(v[p])=="string"&&v[p])try{v[p]=decodeURI(v[p])}catch(a){}valType(v[p])=="object"&&(v[p]=decodeURIString(v[p]))}return v}function getApp(){var v=navigator.userAgent.toLowerCase();if(v.indexOf("iphone")>-1)return"iphone"}function cookie(v,p,a,k){isUndefined(a)&&(a=""),isUndefined(k)&&(k="/");var o=";domain="+a+";path="+k;location.protocol=="https"&&(o+=";SameSite=None;Secure=true");var T=function(W,L){var _=31104e6,F=new Date;F.setTime(F.getTime()+_);try{document.cookie=W+"="+escape(L)+";expires="+F.toGMTString()+o}catch(ee){console.error(ee)}},G=function(W){var L,_=new RegExp("(^| )"+W+"=([^;]*)(;|$)");return(L=document.cookie.match(_))?unescape(L[2]):null},de=function(W){var L=new Date;L.setTime(L.getTime()-1);var _=G(W);_!=null&&(document.cookie=W+"="+_+";expires="+L.toGMTString()+o)};if(!isUndefined(v)&&!isUndefined(p))return p=="delete"?(de(v),null):(T(v,p),G(v));if(!isUndefined(v)&&isUndefined(p))return G(v);isUndefined(v)}function arrayToString(v){var p="";if(!isUndefined(v))for(var a=0;a<v.length;a++){var k=v[a];a>0&&(p+=",");for(var o=0;o<k.length;o++)o>0&&(p+=";"),valType(k[o])=="number"?p+=parseInt(k[o]*100):p+=k[o]}return p}function stringToArray(v){var p=[];if(!isUndefined(v))for(var a=v.split(","),k=0;k<a.length;k++){var o=a[k].split(";");o[1]=parseInt(o[1])*.01,o[2]=parseInt(o[2])*.01,p.push(o)}return p}function documentHidden(v){isUndefined(document.visibilityState)||(v(document.visibilityState==="visible"?"show":"hidden"),addListener(document,"visibilitychange",function(){v(document.visibilityState==="visible"?"show":"hidden")}))}return ckplayerEmbed});
|
|
1
|
+
(function(v,p){typeof exports=="object"&&typeof module!="undefined"?module.exports=p():typeof define=="function"&&define.amd?define(p):(v=v||self,v.ckplayer=p())})(this,function(){"use strict";var language={play:"%E6%92%AD%E6%94%BE",pause:"%E6%9A%82%E5%81%9C",refresh:"%E9%87%8D%E6%92%AD",full:"%E5%85%A8%E5%B1%8F",exitFull:"%E9%80%80%E5%87%BA%E5%85%A8%E5%B1%8F",webFull:"%E9%A1%B5%E9%9D%A2%E5%85%A8%E5%B1%8F",exitWebFull:"%E9%80%80%E5%87%BA%E9%A1%B5%E9%9D%A2%E5%85%A8%E5%B1%8F",theatre:"%E5%89%A7%E5%9C%BA%E6%A8%A1%E5%BC%8F",exitTheatre:"%E9%80%80%E5%87%BA%E5%89%A7%E5%9C%BA%E6%A8%A1%E5%BC%8F",volume:"%E9%9F%B3%E9%87%8F%EF%BC%9A",muted:"%E9%9D%99%E9%9F%B3",exitmuted:"%E6%81%A2%E5%A4%8D%E9%9F%B3%E9%87%8F",seek:"seek%EF%BC%9A",waiting:"%E7%BC%93%E5%86%B2",live:"%E7%9B%B4%E6%92%AD%E4%B8%AD",backLive:"%E8%BF%94%E5%9B%9E%E7%9B%B4%E6%92%AD",lookBack:"%E5%9B%9E%E7%9C%8B%EF%BC%9A",next:"%E4%B8%8B%E4%B8%80%E9%9B%86",screenshot:"%E8%A7%86%E9%A2%91%E6%88%AA%E5%9B%BE",smallwindows:"%E5%B0%8F%E7%AA%97%E5%8F%A3%E6%92%AD%E6%94%BE%E5%8A%9F%E8%83%BD",playbackrate:"%E5%80%8D%E9%80%9F",playbackrateSuffix:"%E5%80%8D",track:"%E5%AD%97%E5%B9%95",noTrack:"%E6%97%A0%E5%AD%97%E5%B9%95",definition:"%E6%B8%85%E6%99%B0%E5%BA%A6",switchTo:"%E5%88%87%E6%8D%A2%E6%88%90%EF%BC%9A",closeTime:"%7Bseconds%7D%E7%A7%92%E5%90%8E%E5%8F%AF%E5%85%B3%E9%97%AD%E5%B9%BF%E5%91%8A",closeAd:"%E5%85%B3%E9%97%AD%E5%B9%BF%E5%91%8A",second:"%E7%A7%92",details:"%E6%9F%A5%E7%9C%8B%E8%AF%A6%E6%83%85",copy:"%E5%A4%8D%E5%88%B6",copySucceeded:"%E5%A4%8D%E5%88%B6%E6%88%90%E5%8A%9F%EF%BC%8C%E5%8F%AF%E8%B4%B4%E7%B2%98%EF%BC%81",smallwindowsOpen:"%E5%B0%8F%E7%AA%97%E5%8F%A3%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%BC%80%E5%90%AF",smallwindowsClose:"%E5%B0%8F%E7%AA%97%E5%8F%A3%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%85%B3%E9%97%AD",screenshotStart:"%E6%88%AA%E5%9B%BE%E4%B8%AD%EF%BC%8C%E8%AF%B7%E7%A8%8D%E5%80%99...",screenshotClose:"%E6%88%AA%E5%9B%BE%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%85%B3%E9%97%AD",loopOpen:"%E5%BE%AA%E7%8E%AF%E6%92%AD%E6%94%BE",loopClose:"%E5%B7%B2%E5%85%B3%E9%97%AD%E5%BE%AA%E7%8E%AF%E6%92%AD%E6%94%BE",close:"%E5%85%B3%E9%97%AD",down:"%E4%B8%8B%E8%BD%BD",p50:"50%25",p75:"75%25",p100:"100%25",timeScheduleAdjust:{prohibit:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E6%8B%96%E5%8A%A8",prohibitBackOff:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E9%87%8D%E5%A4%8D%E8%A7%82%E7%9C%8B",prohibitForward:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E5%BF%AB%E8%BF%9B",prohibitLookBack:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E6%92%AD%E6%94%BE%E9%83%A8%E5%88%86%E5%86%85%E5%AE%B9",prohibitForwardNotViewed:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E6%92%AD%E6%94%BE%E6%9C%AA%E8%A7%82%E7%9C%8B%E7%9A%84%E9%83%A8%E5%88%86"},error:{noMessage:"%E6%9C%AA%E7%9F%A5%E9%94%99%E8%AF%AF",supportVideoError:"%E8%AF%A5%E6%B5%8F%E8%A7%88%E5%99%A8%E7%89%88%E6%9C%AC%E5%A4%AA%E4%BD%8E%EF%BC%8C%E5%BB%BA%E8%AE%AE%E6%9B%B4%E6%8D%A2%E6%88%90%E5%85%B6%E5%AE%83%E6%B5%8F%E8%A7%88%E5%99%A8",videoTypeError:"%E8%AF%A5%E6%B5%8F%E8%A7%88%E5%99%A8%E4%B8%8D%E6%94%AF%E6%8C%81%E6%92%AD%E6%94%BE%E8%AF%A5%E8%A7%86%E9%A2%91%EF%BC%8C%E5%BB%BA%E8%AE%AE%E6%9B%B4%E6%8D%A2%E6%88%90%E5%85%B6%E5%AE%83%E6%B5%8F%E8%A7%88%E5%99%A8",loadingFailed:"%E5%8A%A0%E8%BD%BD%E5%A4%B1%E8%B4%A5",emptied:"%E8%A7%86%E9%A2%91%E6%96%87%E4%BB%B6%E5%8A%A0%E8%BD%BD%E8%BF%87%E7%A8%8B%E4%B8%AD%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF",screenshot:"%E8%A7%86%E9%A2%91%E6%88%AA%E5%9B%BE%E5%A4%B1%E8%B4%A5",ajax:"Ajax%E6%95%B0%E6%8D%AE%E8%AF%B7%E6%B1%82%E9%94%99%E8%AF%AF",noVideoContainer:"%E6%9C%AA%E6%89%BE%E5%88%B0%E6%94%BE%E7%BD%AE%E8%A7%86%E9%A2%91%E7%9A%84%E5%AE%B9%E5%99%A8"}},videoObjectDefault={container:"",volume:.8,poster:"",autoplay:!1,loop:!1,live:!1,rotate:0,zoom:0,ad:null,backLive:!1,seek:0,next:null,loaded:null,plug:"",duration:0,preview:null,prompt:null,crossOrigin:"",video:null,type:"",playbackrate:1,ended:null,webFull:!1,theatre:null,controls:!1,rightBar:null,smallWindows:null,smallWindowsDrag:!0,screenshot:!1,timeScheduleAdjust:1,logo:"",menu:null,information:{"Load:":"{loadTime} second","Duration:":"{duration} second","Size:":"{videoWidth}x{videoHeight}","Volume:":"{volume}%","Fps:":"{fps}fps","Sudio decoded:":"{audioDecodedByteCount} Byte","Video decoded:":"{videoDecodedByteCount} Byte"},track:null,title:"",language:"",barHideTime:1500,playbackrateOpen:!0,playbackrateList:[.75,1,1.25,1.5,2,4],cookie:null,domain:null,cookiePath:"/",documentFocusPause:!1,mouseWheelVolume:2,keyVolume:2,errorShow:!0,pluginPath:"",autoPlug:!0,preferBuiltinPlug:!0,cdnFallback:!0},ckplayerPlusDefaultCdn="https://cdn.jsdelivr.net/npm/ckplayer-plus@1.1.9/dist/";function ckplayerEmbed(v){var p=[{title:"ckplayer",link:"http://www.ckplayer.com"},{title:"version:X3",underline:!0},{title:"about",click:"aboutShow"}],a={},k={},o=null,T=0,G="",fe=!1,W=!0,L=!0,_=0,F=0,re=null,Ne=0,le=!1,Ae=!1,Me=0,bt=!1,ie=-1,ye=!1,je=-1,it=0,Te=!1,ce=!1,ae=!1,ue=0,ke=0,te=-1,$=0,Ve=!0,mt="",qe=null,Ye=null,me=null,nt=null,rt=null,Xe=null,gt=null,Be=!0,_e=null,we=!1,ki=0,We=0,Ie=null,h=null,at=!1,pn=!1,Dt=!0,Mt=!0,ze=null,z=null,$e=null,yt=!1,e={},b=null,C=null,P=null,oe=null,I=null,S=null,Wt=!0,kt="",Ue=0,pe=100,wt=!1,Et=!1,Se="ckplayer-player-cookie",he="",He=0,wi=[],zt=!0,Pe=!1;function Je(t){if(typeof t=="string"){var i=t.replace(/\(\s*\)\s*;?\s*$/,"").trim();if(/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*)*$/.test(i)){for(var n=i.split("."),r=typeof window!="undefined"?window:this,s=r,u=0;u<n.length;u++){if(s==null)return;r=s,s=s[n[u]]}if(typeof s=="function")return s.call(r)}}}var ot=function(t){if(isUndefined(t))return f.add=f.into=ot,f;language=decodeURIString(language),isUndefined(window.ckplayerLanguage)||(language=mergeObj(language,window.ckplayerLanguage)),B(),documentHidden(function(r){B("visibilityState",r)}),kt=getApp(),k={};for(var i in videoObjectDefault)k[i]=videoObjectDefault[i];if(valType(t)=="string"&&(t.substr(0,8)=="website:"||t.substr(0,4)=="url:")){var n="";t.substr(0,8)=="website:"&&(n=t.substring(8)),t.substr(0,4)=="url:"&&(n=t.substring(4)),ajax({url:n,success:function(r){return r?ot(r):(Qe(language.error.ajax+",url:"+n),null)}})}else return valType(t)=="object"?(k=standardization(k,t),!isUndefined(t.container)&&t.container?(b=M(t.container),b?It(t):Ot(t)):Ot(t)):(Qe(language.error.noVideoContainer),null)},Ot=function(t){return documentReady(function(){return isUndefined(t.container)?Ei(t):(b=M(t.container),b?It(t):(Qe(language.error.noVideoContainer),null))}),null},Ei=function(t){if(valType(t.video)=="string"&&(t.video.substr(0,8)=="website:"||t.video.substr(0,4)=="url:")){k=standardization(k,t);var i="";t.video.substr(0,8)=="website:"&&(i=t.video.substring(8)),t.video.substr(0,4)=="url:"&&(i=t.video.substring(4)),ajax({url:i,success:function(n){return n?ot(n):(Qe(language.error.ajax+",url:"+i),null)}})}else return Qe(language.error.noVideoContainer),null},It=function(t){if(a=standardization(k,t),a.language){if(!isUndefined(window.ckplayerLanguage))return language=mergeObj(language,window.ckplayerLanguage),xt(t);var i=st("language",a.language+".js");tt(i,function(){return isUndefined(window.ckplayerLanguage)||(language=mergeObj(language,window.ckplayerLanguage)),xt(t)})}else return xt(t)},Ht=function(t){return!t||valType(t)!="string"?!0:/\/(?:assets|\.vite\/deps|_next\/static|chunks?)\/?$/i.test(t)},st=function(t,i){var n="";if(a&&a.pluginPath?n=a.pluginPath:typeof window!="undefined"&&window.ckplayerBasePath&&(n=window.ckplayerBasePath),n&&Ht(n)&&(n=""),n)return n.slice(-1)!=="/"&&(n+="/"),n+t+"/"+i;var r=getPath(t)+i;if(r&&r.indexOf(t+"/")>-1&&r.indexOf("undefined")===-1&&!Ht(getPath()))return r;var s=!a||a.cdnFallback!==!1,u=typeof window!="undefined"&&window.ckplayerPlusCdn?window.ckplayerPlusCdn:ckplayerPlusDefaultCdn;return!s||!u||u.indexOf("1.1.9")>-1?t+"/"+i:(u.slice(-1)!=="/"&&(u+="/"),u+t+"/"+i)},xi=function(t){var i="";if(valType(t)=="string"?i=t:valType(t)=="array"&&t.length?valType(t[0])=="array"&&t[0].length?i=t[0][0]:valType(t[0])=="string"&&(i=t[0]):valType(t)=="object"&&t&&(i=t.url||t.file||""),!i||valType(i)!="string"||i.substr(0,8)=="website:"||i.substr(0,4)=="url:")return"";var n=i.split("?")[0].split("#")[0].toLowerCase();return n.indexOf(".m3u8")>-1?"hls.js":n.indexOf(".flv")>-1?"flv.js":n.indexOf(".m2ts")>-1||n.indexOf(".mts")>-1||n.length>3&&n.substring(n.length-3)===".ts"?"mpegts.js":""},Ai=function(t){if(a.autoPlug!==!1&&!a.plug){var i=xi(t);i&&(a.plug=i)}},xt=function(t){if(G=!(a.volume>0),!isUndefined(b)&&b!=null)valType(b)=="htmlarray"&&(b=b.eq(0));else return null;un(),Pe=valType(a.video)=="string"&&(a.video.substr(0,1)=="."&&a.video.indexOf("/")==-1||a.video.substr(0,1)=="#"),Pe&&(C=b.find(".ckplayer-ckplayer")?b.find(".ckplayer-ckplayer").eq(0):null,C&&(P=C.find(".ck-main")?C.find(".ck-main").eq(0):null),P&&(oe=P.find(".ck-video")?P.find(".ck-video").eq(0):null)),(!C||!P||!oe)&&(b.htm(""),C=w("ckplayer-ckplayer"),b.append(C),P=w("ck-main"),C.append(P),oe=w("ck-video"),P.append(oe)),o&&(o.remove(),o=null),Pe&&(o=M(a.video)?M(a.video).eq(0):null),o||(o=fn(),o.attr("width","100%").attr("height","100%"),oe.append(o)),o.volume=a.volume,a.autoplay?(f.volume(0),f.muted(),fe=!0,o.attr("preload","auto"),lt()>0?Ae=!1:Ae=!0):o.attr("preload","metadata"),b.loop=a.loop,b.loop&&o.attr("loop","loop"),a.controls?o.controls=!0:o.controls=!1;try{Pe||(o.attr("controlslist","nodownload"),o.attr("x-webkit-airplay","true"),o.attr("x5-video-orientation","portraint"),o.attr("playsinline","true"),o.attr("webkit-playsinline","true"),o.attr("x5-playsinline","true")),a.crossOrigin&&(o.useCORS=!0,o.crossOrigin=a.crossOrigin)}catch(i){}if(b.smallWindows=!0,b.webFull=!1,b.theatre=!1,Fi(),a.rotate>0&&f.rotate(a.rotate),a.zoom>0&&f.zoom(a.zoom),isUndefined(o.canPlayType))return b.error={code:5,message:language.error.supportVideoError},B("error",b.error),de(),f;if(Li(),!isUndefined(a.loaded))if(valType(a.loaded)=="function")try{a.loaded(f)}catch(i){}else valType(a.loaded)=="string"&&typeof console!="undefined"&&console.warn&&console.warn("[ckplayer] vars.loaded as string is ignored for security. Pass a function instead.");return Re(Pe?o.attr("src"):a.video),f},lt=function(){if(isUndefined(a.seek))return 0;if(valType(a.seek)=="number"&&a.seek>0)return a.seek;if(valType(a.seek)=="string"&&a.seek=="cookie"&&he){var t=f.cookie(he);return t&&t.time?t.time:0}return valType(a.seek)=="string"&&a.seek!==""&&!isNaN(parseFloat(a.seek))?parseFloat(a.seek):0},Rt=function(t){!t||t<=0||(F=t,$=Math.max($,t),te<0&&(te=t))},Ti=function(){a.cookie&&(valType(a.cookie)=="array"&&a.cookie.length>=2&&(a.cookie[0]&&valType(a.cookie[0])=="string"&&(he=a.cookie[0]),a.cookie[1]&&valType(a.cookie[1])=="number"&&(He=a.cookie[1])),valType(a.cookie)=="object"&&!isUndefined(a.cookie.name)&&(he=a.cookie.name,!isUndefined(a.cookie.hour)&&valType(a.cookie.hour)=="number"&&(He=a.cookie.hour)),valType(a.cookie)=="string"&&(he=a.cookie),he&&(he=he.replace(/[ ]*,[ ]*|[ ]+/g,"").replace(/[ ]*;[ ]*|[ ]+/g,""))),F||Rt(lt()),F>0&&(Ae=!1)},Nt=function(t,i){if(!S||typeof S.startLoad!="function"||!o)return!1;(isNaN(t)||t<0)&&(t=0);var n=o.currentTime||0;if(ie=t,!i&&Oe(t)){if(Math.abs(n-t)<1.5)return!0;if(Ut(t))return De(t),!0}var r=Pi(t);if(!i&&je>=0&&Math.abs(je-r)<1.5&&Date.now()-it<4e3)return!0;je=r,it=Date.now(),ye=!0;try{S.startLoad(r)}catch(s){return!1}return!0},Bi=function(t){if(!S||!o)return!1;(isNaN(t)||t<0)&&(t=0);var i=T||o.duration||0;i&&isFinite(i)&&i>0&&t>=i&&(t=Math.max(0,i-.3));var n=!L;if(ce=!0,Te=n,Ge(),ye=!1,ae=!1,ie=-1,F=0,le=!0,Oe(t)){try{o.currentTime=t}catch(r){return le=!1,ce=!1,!1}return setTimeout(function(){if(le=!1,ce=!1,e.buffer&&e.buffer.hide(),W=!0,n){Te=!1;try{f.play()}catch(r){}}else Te=!1},80),!0}try{o.currentTime=t}catch(r){return le=!1,ce=!1,!1}return setTimeout(function(){le=!1},120),!0},Ze=function(){W=!0,e.buffer&&e.buffer.hide(),e.loading&&e.loading.hide()},Ui=function(){if(Ge(),le=!1,bt=!1,ie=-1,ye=!1,je=-1,it=0,Te=!1,ce=!1,ae=!1,Me=0,S){try{S.destroy()}catch(t){}S=null}if(I){try{I.pause(),I.unload(),I.detachMediaElement(),I.destroy()}catch(t){}I=null}},Re=function(t){var i=0;if(Ai(t),Ti(),Ui(),(o.attr("src")||o.htm())&&f.pause(),o.attr("src")&&!Pe&&(o.attr("src",""),o.removeAttr("src")),!isUndefined(o.textTracks)&&o.textTracks.length>0)for(i=o.find("track").length-1;i>-1;i--)o.find("track").eq(i).remove();Pe||o.htm(""),isUndefined(a.ad)||(h=a.ad);var n="";if(valType(t)=="string")if(t.substr(0,8)=="website:"||t.substr(0,4)=="url:"){var r="";t.substr(0,8)=="website:"&&(r=t.substring(8)),t.substr(0,4)=="url:"&&(r=t.substring(4)),ajax({url:r,success:function(u){u!=null?(a=standardization(k,u),Re(a.video)):(b.error={code:8,message:language.error.ajax},B("error",b.error),de())}});return}else a.plug&&(a.preferBuiltinPlug||!ut(t))?At(t):Pe||o.attr("src",t),Tt();else if(valType(t)=="array"){for(i=0;i<t.length;i++)if(valType(t[i])=="array")if(a.plug&&(a.preferBuiltinPlug||!ut(t[i][0])))At(t[i][0]);else{var s=' type="'+t[i][1]+'"';t[i].length>1&&(n+='<source src="'+decodeURIComponent(t[i][0])+'"'+s+">")}n&&o.htm(n),Tt()}else valType(t)=="object"&&(a.plug?At(t):(b.error={code:10,message:language.error.emptied},B("error",b.error),de()),Tt());!isUndefined(o.find("source"))&&o.find("source").length>0&&o.find("source").eq(o.find("source").length-1).addListener("error",J.error),Ri(),Qt(),Ve&&ni()},At=function(t){switch(a.plug){case"hls.js":jt(t);break;case"flv.js":Vt(t);break;case"mpegts.js":qt(t);break;case"dash.js":b.error={code:10,message:language.error.emptied},B("error",b.error),de();break;default:valType(a.plug)=="function"?a.plug(o,t):(b.error={code:10,message:language.error.emptied},B("error",b.error),de());break}},jt=function(t){var i=function(){if(typeof Hls!="undefined"&&!isUndefined(Hls)&&Hls.isSupported()){if(S){try{S.destroy()}catch(s){}S=null}var n={enableWorker:!1,maxBufferLength:30,maxMaxBufferLength:600,maxBufferSize:60*1e3*1e3,backBufferLength:90},r=F;r||(r=lt()),r&&r>0&&(isUndefined(a.live)||!a.live)&&(n.autoStartLoad=!1,$=Math.max($,r),te<0&&(te=r),F=r,ie=r,ae=!0,ye=!1,Ae=!1),S=new Hls(n),S.loadSource(t),S.attachMedia(o),S.on(Hls.Events.MANIFEST_PARSED,function(){if(F>0&&ae){bt=!0,Nt(F,!0),e.buffer&&e.buffer.show(),setTimeout(function(){if(ae){var s=F>0?F:ie;s>0&&De(s)}},1e4);return}bt||Fe()}),S.on(Hls.Events.FRAG_BUFFERED,function(s,u){if(ae&&(F>0||ie>0)){var A=F>0?F:ie;Xt(A);return}if(!(ie<=0||!u||!u.frag)){var d=u.frag.start,g=d+u.frag.duration;ie>=d-.5&&ie<=g+.5&&Ze()}}),S.on(Hls.Events.ERROR,function(s,u){var A=9,d=language.error.loadingFailed,g=u.fatal;if(isUndefined(u.response)||(isUndefined(u.response.code)||(A=u.response.code),!isUndefined(u.response.text)&&u.response.text?d=u.response.text:isUndefined(s)||(d=s)),g&&S){if(u.type===Hls.ErrorTypes.NETWORK_ERROR&&typeof S.startLoad=="function")try{u.details==="keyLoadError"?setTimeout(function(){S&&typeof S.startLoad=="function"&&S.startLoad()},2e3):S.startLoad(),g=!1}catch(E){}else if(u.type===Hls.ErrorTypes.MEDIA_ERROR&&typeof S.recoverMediaError=="function")try{S.recoverMediaError(),g=!1}catch(E){}}b.error={code:A,message:d},B("error",b.error),g&&de()})}else ut(t)&&o.attr("src",t)};if(typeof Hls!="undefined"&&!isUndefined(Hls)&&!a.preferBuiltinPlug){i();return}tt(st("hls.js","hls.min.js"),i)},Vt=function(t){var i=function(){if(typeof flvjs!="undefined"&&!isUndefined(flvjs)&&flvjs.isSupported()){var n={type:"flv",url:t};valType(t)=="object"&&(n=t),a.live&&(n.isLive=!0),I&&(I.pause(),I.unload(),I.detachMediaElement(),I.destroy(),I=null),I=flvjs.createPlayer(n),I.attachMediaElement(o),I.load(),I.on(flvjs.Events.METADATA_ARRIVED,function(r){J.loadedMetaData()}),I.on(flvjs.Events.ERROR,function(r,s,u){b.error={code:u.code,message:u.msg},B("error",b.error),de()})}};if(typeof flvjs!="undefined"&&!isUndefined(flvjs)&&!a.preferBuiltinPlug){i();return}tt(st("flv.js","flv.min.js"),i)},qt=function(t){var i=function(){if(typeof mpegts!="undefined"&&!isUndefined(mpegts)&&mpegts.getFeatureList().mseLivePlayback){var n={type:"mse",url:t};valType(t)=="object"&&(n=t),a.live&&(n.isLive=!0),I&&(I.pause(),I.unload(),I.detachMediaElement(),I.destroy(),I=null),I=mpegts.createPlayer(n),I.attachMediaElement(o),I.load(),I.on(mpegts.Events.METADATA_ARRIVED,function(r){J.loadedMetaData()}),I.on(mpegts.Events.ERROR,function(r,s,u){b.error={code:u.code,message:u.msg},B("error",b.error),de()})}};if(typeof mpegts!="undefined"&&!isUndefined(mpegts)&&!a.preferBuiltinPlug){i();return}tt(st("mpegts.js","mpegts.min.js"),i)},ut=function(t,i){var n=[{vidType:"video/ogg",codType:"theora, vorbis"},{vidType:"video/mp4",codType:"avc1.4D401E, mp4a.40.2"},{vidType:"video/mp4",codType:"avc1"},{vidType:"video/mp4",codType:"hevc"},{vidType:"video/webm",codType:"vp8.0, vorbis"},{vidType:"video/webm",codType:"vp9"},{vidType:"",codType:"application/x-mpegURL"},{vidType:"",codType:"application/vnd.apple.mpegurl"}],r={ogg:n[0],mp4:[n[1],n[2],n[3]],webm:[n[4],n[5]],m3u8:[n[6],n[7]]},s=[],u="",A=function(x){var D=x.vidType,V="";D?V=D+'; codecs="'+x.codType+'"':V=x.codType;var Y=o.canPlayType(V);return Y==""&&(Y="no"),Y},d=function(x){return x.replace(/.+\./,"")};if(isUndefined(i)){if(valType(t)=="string"){if(a.type)for(u in n)n[u].vidType==a.type&&s.push(n[u]);else if(d(t)&&d(t)in r){var g=r[d(t)];if(valType(g)=="array")for(var E=0;E<g.length;E++)s.push(g[E]);else s.push(g)}}}else s.push(n[i]);var U=!1;if(s.length>0)for(var E=0;E<s.length;E++)A(s[E])!="no"&&(U=!0);return!U&&!a.plug&&(b.error={code:6,message:language.error.videoTypeError},B("error",b.error),de()),U},Fi=function(){e.loading=w("ck-loading"),P.append(e.loading),e.bar=w("ck-bar"),P.append(e.bar),e.rightBar=w("ck-right-bar ck-right-bar-hide"),P.append(e.rightBar),e.topBar=w("ck-top-bar ck-top-bar-hide"),P.append(e.topBar),e.bar.pbox=w("ck-bar-progress"),e.bar.pbox.bg=w("ck-bar-progress-bg"),e.bar.pbox.load=w("ck-bar-progress-load"),e.bar.pbox.bg.append(e.bar.pbox.load),e.bar.pbox.play=w("ck-bar-progress-play"),e.bar.pbox.bg.append(e.bar.pbox.play),e.bar.pbox.mouseLine=w("ck-bar-progress-mouseline"),e.bar.pbox.bg.append(e.bar.pbox.mouseLine),e.bar.pbox.slider=w("ck-bar-progress-slider"),e.bar.pbox.append(e.bar.pbox.bg).append(e.bar.pbox.slider),e.bar.append(e.bar.pbox),e.bar.mouseout(Yi).mouseover(Xi),valType(a.live)=="number"&&(e.bar.pbox.play.css({width:"100%"}),e.bar.pbox.slider.css({left:100-e.bar.pbox.slider.getWidth()*100/e.bar.pbox.bg.getWidth()+"%"})),e.bar.playAndPause=w("ck-bar-playandpause"),e.bar.append(e.bar.playAndPause),e.bar.playAndPause.play=q("ck-bar-btn ck-btn-play"),e.bar.playAndPause.play.click(f.play),e.bar.playAndPause.play.mouseover(function(){j(this,language.play)}),e.bar.playAndPause.append(e.bar.playAndPause.play),e.bar.playAndPause.pause=q("ck-bar-btn ck-btn-pause"),e.bar.playAndPause.pause.click(f.pause),e.bar.playAndPause.pause.mouseover(function(){j(this,language.pause)}),e.bar.playAndPause.append(e.bar.playAndPause.pause),e.bar.playAndPause.pause.hide(),e.bar.playAndPause.refresh=q("ck-bar-btn ck-btn-refresh"),e.bar.playAndPause.refresh.click(f.play),e.bar.playAndPause.refresh.mouseover(function(){j(this,language.refresh)}),e.bar.playAndPause.append(e.bar.playAndPause.refresh),e.bar.nextEpisode=w("ck-bar-btn ck-bar-next"),e.bar.append(e.bar.nextEpisode),e.bar.nextEpisode.click(tn).mouseover(en).mouseout(function(){isUndefined(e.next)||f.closeLayer(e.next)}),isUndefined(a.next)&&e.bar.nextEpisode.hide();var t=formatSeconds(f.time())+"/"+formatSeconds(T);a.live&&(t=language.live),e.time=w("ck-bar-time",t),e.bar.append(e.time),e.bar.backLive=q("ck-btn-backlive",language.backLive),e.bar.append(e.bar.backLive),e.bar.backLive.mouseover(function(){j(this,language.backLive)}).click(function(){B("backLive")}),e.bar.backLive.hide(),e.bar.fullAndExit=w("ck-bar-fullandexit"),e.bar.append(e.bar.fullAndExit),e.bar.fullAndExit.full=q("ck-bar-btn ck-btn-full"),e.bar.fullAndExit.full.click(f.fullOrExit),e.bar.fullAndExit.full.mouseover(function(){j(this,language.full)}),e.bar.fullAndExit.append(e.bar.fullAndExit.full),e.bar.fullAndExit.exitFull=q("ck-bar-btn ck-btn-exitfull"),e.bar.fullAndExit.exitFull.click(f.fullOrExit),e.bar.fullAndExit.exitFull.mouseover(function(){j(this,language.exitFull)}),e.bar.fullAndExit.append(e.bar.fullAndExit.exitFull),e.bar.webFullAndExit=w("ck-bar-webfullandexit"),e.bar.append(e.bar.webFullAndExit),e.bar.webFullAndExit.webFull=q("ck-bar-btn ck-btn-webfull"),e.bar.webFullAndExit.webFull.click(f.webFull),e.bar.webFullAndExit.webFull.mouseover(function(){j(this,language.webFull)}),e.bar.webFullAndExit.append(e.bar.webFullAndExit.webFull),e.bar.webFullAndExit.exitWebFull=q("ck-bar-btn ck-btn-exitwebfull"),e.bar.webFullAndExit.exitWebFull.click(f.exitWebFull),e.bar.webFullAndExit.exitWebFull.mouseover(function(){j(this,language.exitWebFull)}),e.bar.webFullAndExit.append(e.bar.webFullAndExit.exitWebFull),a.webFull||e.bar.webFullAndExit.hide(),e.bar.theatreAndExit=w("ck-bar-theatreandexit"),e.bar.append(e.bar.theatreAndExit),e.bar.theatreAndExit.theatre=q("ck-bar-btn ck-btn-theatre"),e.bar.theatreAndExit.theatre.click(f.theatre),e.bar.theatreAndExit.theatre.mouseover(function(){j(this,language.theatre)}),e.bar.theatreAndExit.append(e.bar.theatreAndExit.theatre),e.bar.theatreAndExit.exitTheatre=q("ck-bar-btn ck-btn-exittheatre"),e.bar.theatreAndExit.exitTheatre.click(f.exitTheatre),e.bar.theatreAndExit.exitTheatre.mouseover(function(){j(this,language.exitTheatre)}),e.bar.theatreAndExit.append(e.bar.theatreAndExit.exitTheatre),a.theatre||e.bar.theatreAndExit.hide(),e.bar.vbox=w("ck-bar-volumebox"),e.bar.append(e.bar.vbox),e.bar.vbox.muted=q("ck-bar-btn ck-btn-muted"),e.bar.vbox.muted.click(f.muted),e.bar.vbox.append(e.bar.vbox.muted),e.bar.vbox.exitMuted=q("ck-bar-btn ck-btn-exitmuted"),e.bar.vbox.exitMuted.click(f.exitMuted),e.bar.vbox.append(e.bar.vbox.exitMuted),e.bar.vbox.volume=w("ck-bar-volume"),e.bar.vbox.append(e.bar.vbox.volume),e.bar.vbox.volume.box=w("ck-bar-volumex"),e.bar.vbox.volume.append(e.bar.vbox.volume.box),e.bar.vbox.volume.txt=w("ck-bar-volume-txt","0"),e.bar.vbox.volume.box.append(e.bar.vbox.volume.txt),e.bar.vbox.volume.bg=w("ck-bar-volume-bg"),e.bar.vbox.volume.box.append(e.bar.vbox.volume.bg),e.bar.vbox.volume.pp=w("ck-bar-volume-pp"),e.bar.vbox.volume.bg.append(e.bar.vbox.volume.pp),e.bar.vbox.volume.slider=w("ck-bar-volume-slider"),e.bar.vbox.volume.box.append(e.bar.vbox.volume.slider),e.bar.vbox.mouseDown=!1,e.bar.vbox.volume.show(),St(a.volume),sn(),e.bar.vbox.volume.attr("style",""),e.bar.vbox.mouseover(function(){St(o.muted?0:o.volume)}),e.bar.playbackrate=w("ck-bar-playbackrate-box"),e.bar.append(e.bar.playbackrate),e.bar.playbackrate.button=w("ck-bar-playbackrate",language.playbackrate),e.bar.playbackrate.append(e.bar.playbackrate.button),e.bar.playbackrate.bgbox=w("ck-bar-playbackrate-bg-box ck-list-bg-box"),e.bar.playbackrate.append(e.bar.playbackrate.bgbox),Ji(),e.bar.track=w("ck-bar-track-box"),e.bar.append(e.bar.track),e.bar.track.button=w("ck-bar-track",language.track),e.bar.track.append(e.bar.track.button),e.bar.track.bgbox=w("ck-bar-track-bg-box ck-list-bg-box"),e.bar.track.append(e.bar.track.bgbox),e.bar.track.hide(),e.bar.definition=w("ck-bar-definition-box"),e.bar.append(e.bar.definition),e.bar.definition.button=w("ck-bar-definition",language.definition),e.bar.definition.append(e.bar.definition.button),e.bar.definition.bgbox=w("ck-bar-definition-bg-box ck-list-bg-box"),e.bar.definition.append(e.bar.definition.bgbox),e.bar.definition.hide(),e.rightBar.screenshot=q("ck-bar-btn ck-btn-screenshot"),e.rightBar.append(e.rightBar.screenshot),e.rightBar.screenshot.mouseover(function(){j(this,language.screenshot,null,"left")}),e.rightBar.screenshot.click(f.screenshot),e.rightBar.smallwindows=w("ck-right-bar-smallwindows"),e.rightBar.append(e.rightBar.smallwindows),e.rightBar.smallwindows.open=q("ck-bar-btn ck-btn-smallwindows-open"),e.rightBar.smallwindows.open.click(function(){j(this,language.smallwindowsClose,null,"left"),f.smallWindows(!1)}),e.rightBar.smallwindows.open.mouseover(function(){j(this,language.smallwindowsOpen,null,"left")}),e.rightBar.smallwindows.append(e.rightBar.smallwindows.open),e.rightBar.smallwindows.close=q("ck-bar-btn ck-btn-smallwindows-close"),e.rightBar.smallwindows.close.click(function(){j(this,language.smallwindowsOpen,null,"left"),f.smallWindows(!0)}),e.rightBar.smallwindows.close.mouseover(function(){j(this,language.smallwindowsClose,null,"left")}),e.rightBar.smallwindows.append(e.rightBar.smallwindows.close),e.rightBar.loop=w("ck-right-bar-loop"),e.rightBar.append(e.rightBar.loop),e.rightBar.loop.open=q("ck-bar-btn ck-btn-loop-open"),e.rightBar.loop.open.click(function(){j(this,language.loopClose,null,"left"),f.loop(!1)}),e.rightBar.loop.open.mouseover(function(){j(this,language.loopOpen,null,"left")}),e.rightBar.loop.append(e.rightBar.loop.open),e.rightBar.loop.close=q("ck-bar-btn ck-btn-loop-close"),e.rightBar.loop.close.click(function(){j(this,language.loopOpen,null,"left"),f.loop(!0)}),e.rightBar.loop.close.mouseover(function(){j(this,language.loopClose,null,"left")}),e.rightBar.loop.append(e.rightBar.loop.close),e.rightBar.mouseout(_i).mouseover($i),e.screenshot=w("ck-screenshot"),P.append(e.screenshot),e.screenshot.img=w("ck-screenshot-img"),e.screenshot.append(e.screenshot.img),e.screenshot.bar=w("ck-screenshot-bar"),e.screenshot.append(e.screenshot.bar),e.screenshot.bar.down=pt(language.down,"","ck-screenshot-btn ck-screenshot-down"),e.screenshot.bar.append(e.screenshot.bar.down),e.screenshot.bar.close=q("ck-screenshot-btn ck-screenshot-close",language.close),e.screenshot.bar.close.click(f.closeScreenshot),e.screenshot.bar.append(e.screenshot.bar.close),e.topBar.zoomEle=w("ck-top-bar-zoom"),e.topBar.zoomEle.zoom50=w("ck-top-bar-zoom-container"),e.topBar.zoomEle.append(e.topBar.zoomEle.zoom50),e.topBar.zoomEle.zoom50.left=w("ck-top-bar-zoom-left"),e.topBar.zoomEle.zoom50.append(e.topBar.zoomEle.zoom50.left),e.topBar.zoomEle.zoom50.left.button=w("ck-top-bar-zoom-button-50"),e.topBar.zoomEle.zoom50.left.append(e.topBar.zoomEle.zoom50.left.button),e.topBar.zoomEle.zoom50.right=w("ck-top-bar-zoom-right",language.p50),e.topBar.zoomEle.zoom50.append(e.topBar.zoomEle.zoom50.right),e.topBar.zoomEle.zoom50.click(function(){f.zoom(50)}),e.topBar.zoomEle.zoom75=w("ck-top-bar-zoom-container"),e.topBar.zoomEle.append(e.topBar.zoomEle.zoom75),e.topBar.zoomEle.zoom75.left=w("ck-top-bar-zoom-left"),e.topBar.zoomEle.zoom75.append(e.topBar.zoomEle.zoom75.left),e.topBar.zoomEle.zoom75.left.button=w("ck-top-bar-zoom-button-75"),e.topBar.zoomEle.zoom75.left.append(e.topBar.zoomEle.zoom75.left.button),e.topBar.zoomEle.zoom75.right=w("ck-top-bar-zoom-right",language.p75),e.topBar.zoomEle.zoom75.append(e.topBar.zoomEle.zoom75.right),e.topBar.zoomEle.zoom75.click(function(){f.zoom(75)}),e.topBar.zoomEle.zoom100=w("ck-top-bar-zoom-container"),e.topBar.zoomEle.append(e.topBar.zoomEle.zoom100),e.topBar.zoomEle.zoom100.left=w("ck-top-bar-zoom-left"),e.topBar.zoomEle.zoom100.append(e.topBar.zoomEle.zoom100.left),e.topBar.zoomEle.zoom100.left.button=w("ck-top-bar-zoom-button-100"),e.topBar.zoomEle.zoom100.left.append(e.topBar.zoomEle.zoom100.left.button),e.topBar.zoomEle.zoom100.right=w("ck-top-bar-zoom-right",language.p100),e.topBar.zoomEle.zoom100.append(e.topBar.zoomEle.zoom100.right),e.topBar.zoomEle.zoom100.click(function(){f.zoom(100)}),e.topBar.append(e.topBar.zoomEle),e.topBar.titleEle=w("ck-top-bar-title",a.title),e.topBar.append(e.topBar.titleEle),e.topBar.timeEle=w("ck-top-bar-time"),e.topBar.append(e.topBar.timeEle),e.centerPlay=w("ck-center-play"),e.centerPlay.click(f.play),P.append(e.centerPlay),e.buffer=w("ck-buffer"),P.append(e.buffer),e.message=w("ck-message"),P.append(e.message),e.tip=w("ck-tip"),P.append(e.tip),e.tip.content=w("ck-content ck-content-float-auto"),e.tip.append(e.tip.content),e.tip.triangle=w("ck-triangle ck-triangle-auto"),e.tip.append(e.tip.triangle),j(o,"ckplayer"),e.tip.minHeight=e.tip.getHeight(),j(),e.ad=w("ck-yytf"),P.append(e.ad),e.ad.link=w("ck-yytf-front-link"),e.ad.append(e.ad.link),e.ad.link.click(Ii),e.ad.picture=w("ck-yytf-front-picture"),e.ad.append(e.ad.picture),e.ad.top=w("ck-yytf-top"),e.ad.append(e.ad.top),e.ad.top.countDown=w("ck-yytf-countdown"),e.ad.top.append(e.ad.top.countDown),e.ad.top.closeTime=w("ck-yytf-closetime"),e.ad.top.append(e.ad.top.closeTime),e.ad.top.closeAd=w("ck-yytf-closead",language.closeAd),e.ad.top.append(e.ad.top.closeAd),e.ad.top.closeAd.click(Hi),e.ad.bottom=w("ck-yytf-bottom"),e.ad.append(e.ad.bottom),e.ad.bottom.fullAndExit=w("ck-yytf-fullandexit"),e.ad.bottom.append(e.ad.bottom.fullAndExit),e.ad.bottom.fullAndExit.full=q("ck-yytf-btn ck-yytf-fullandexit-full"),e.ad.bottom.fullAndExit.full.click(f.full),e.ad.bottom.fullAndExit.append(e.ad.bottom.fullAndExit.full),e.ad.bottom.fullAndExit.exitFull=q("ck-yytf-btn ck-yytf-fullandexit-exitfull"),e.ad.bottom.fullAndExit.append(e.ad.bottom.fullAndExit.exitFull),e.ad.bottom.fullAndExit.exitFull.click(f.exitFull),e.ad.bottom.mutedAndExit=w("ck-yytf-mutedandexit"),e.ad.bottom.append(e.ad.bottom.mutedAndExit),e.ad.bottom.mutedAndExit.muted=q("ck-yytf-btn ck-yytf-mutedandexit-muted"),e.ad.bottom.mutedAndExit.append(e.ad.bottom.mutedAndExit.muted),e.ad.bottom.mutedAndExit.muted.click(f.muted),e.ad.bottom.mutedAndExit.exitMuted=q("ck-yytf-btn ck-yytf-mutedandexit-exitmuted"),e.ad.bottom.mutedAndExit.append(e.ad.bottom.mutedAndExit.exitMuted),e.ad.bottom.mutedAndExit.exitMuted.click(f.exitMuted),e.ad.bottom.details=w("ck-yytf-details",language.details),e.ad.bottom.append(e.ad.bottom.details),e.ad.hide(),e.adPause=w("ck-pause-yytf"),P.append(e.adPause),e.about=w("ck-about"),P.append(e.about),e.about.bar=w("ck-about-bar"),e.about.append(e.about.bar),e.about.bar.copy=q("ck-bar-btn ck-btn-about-copy"),e.about.bar.append(e.about.bar.copy),e.about.bar.copy.click(qi),e.about.bar.copy.mouseover(function(){j(this,language.copy,null,"left")}),e.about.bar.close=q("ck-bar-btn ck-btn-about-close"),e.about.bar.close.click(Vi),e.about.bar.close.mouseover(function(){j(this,language.close,null,"left")}),e.about.bar.append(e.about.bar.close),e.tempTime=w("ck-tempTime"),P.append(e.tempTime),e.bar.playAndPause.refresh.hide(),a.controls?(f.bar(!1),f.rightBar(!1),e.loading.hide(),e.centerPlay.hide()):(Qt(),Ni(),ji()),kt=="iphone"&&e.loading.hide(),hi(),C.mouseout(function(){L||Ke()}).mouseover(function(){e.bar.hasClass("ck-bar-out")||(e.bar.removeClass("ck-bar-out"),P.removeClass("ck-nocursor")),e.rightBar.css("display")=="block"&&e.rightBar.removeClass("ck-right-bar-hide"),e.topBar.css("display")=="block"&&e.topBar.removeClass("ck-top-bar-hide")}).mousemove(function(){e.bar.hasClass("ck-bar-out")&&(e.bar.removeClass("ck-bar-out"),B("mouseActive",!0),P.removeClass("ck-nocursor"),Ke()),e.rightBar.css("display")=="block"&&e.rightBar.removeClass("ck-right-bar-hide"),e.topBar.css("display")=="block"&&e.topBar.removeClass("ck-top-bar-hide")})},Li=function(){o.addListener("stalled",J.stalled),o.addListener("suspend",J.suspend),o.addListener("loadeddata",J.loadedData),o.addListener("loadstart",J.loadStart),o.addListener("loadedmetadata",J.loadedMetaData),o.addListener("canplay",J.canPlay),o.addListener("timeupdate",J.timeUpDate),o.addListener("seeking",J.seeking),o.addListener("seeked",J.seeked),o.addListener("waiting",J.waiting),o.addListener("play",J.play),o.addListener("pause",J.pause),o.addListener("volumechange",J.volumeChange),o.addListener("ended",J.ended),o.addListener("error",J.error),isUndefined(o.emptied)||o.addListener("emptied",J.emptied),oe.singleClick(function(){Et?Et=!1:f.playOrPause()}),P.doubleClick(f.fullOrExit),M(document).addListener("keydown",J.keydown),addListener(window,"resize",J.resize),isUndefined(a.smallWindows)||valType(a.smallWindows)=="boolean"&&a.smallWindows&&addListener(window,"scroll",rn),b.mouseWheel(J.mouseWheel)},B=function(t,i){try{ze!=null?(isUndefined(i)&&(i=null),z.dispatchEvent(t,i)):(ze=function(){this.listeners={}},ze.prototype.listeners=null,ze.prototype.addEventListener=function(n,r){n in this.listeners||(this.listeners[n]=[]),this.listeners[n].push(r),$e=this.listeners},ze.prototype.removeEventListener=function(n,r){if(n in this.listeners){for(var s=this.listeners[n],u=0,A=s.length;u<A;u++)if(s[u]===r)return s.splice(u,1),this.removeEventListener(n,r);$e=s}},ze.prototype.dispatchEvent=function(n,r){if(n in this.listeners)for(var s=this.listeners[n],u=0,A=s.length;u<A;u++)s[u].call(this,r)},z=new ze)}catch(n){console.error(n)}},Ci=function(t){var i=[],n=cookie(Se),r=0,s=0,u=Math.floor(Date.now()*.001);if(t=Math.floor(t*100),t=t*.01,He||(He=365*24),!n)i.push([he,t,u+He*3600]);else{i=stringToArray(n);var A=!1,d=[[he,t,u+He*3600]];for(r=0;r<i.length;r++)i[r][2]>u&&i[r][0]!=he&&s<19&&(d.push(i[r]),s++);i=d}i.length>0&&(cookie(Se,"delete",a.domain,a.cookiePath),cookie(Se,arrayToString(i),a.domain,a.cookiePath)),wi=i},Tt=function(){if(!isUndefined(o.textTracks)){var t=0;if(!isUndefined(a.track)&&valType(a.track)=="array"&&!o.find("track")){var i="",n=a.track;for(e.bar.track.show(),t=0;t<n.length;t++){var r="";!r&&!isUndefined(n[t].default)&&n[t].default&&(r=" default"),i+='<track src="'+n[t].src+'" srclang="'+n[t].srclang+'" kind="'+n[t].kind+'" label="'+n[t].label+'"'+r+">"}if(o){var s=o.htm()+i;o.htm(s)}o.find("track")&&!yt&&(yt=!0,Gi())}}},Oe=function(t){if(!o||isUndefined(o.buffered))return!1;try{for(var i=o.buffered,n=0;n<i.length;n++)if(t>=i.start(n)-.35&&t<=i.end(n)+.15)return!0}catch(r){}return!1},Bt=function(){if(!S)return null;try{var t=-1;typeof S.currentLevel=="number"&&S.currentLevel>=0?t=S.currentLevel:typeof S.firstLevel=="number"&&S.firstLevel>=0?t=S.firstLevel:t=0;var i=S.levels&&S.levels[t]&&S.levels[t].details,n=i&&i.fragments;return!n||!n.length?null:n}catch(r){}return null},Yt=function(t){if(!S||isNaN(t)||t<0)return null;try{var i=Bt();if(!i)return null;for(var n=0;n<i.length;n++){var r=i[n];if(r){var s=r.start||0,u=s+(r.duration||0);if(t>=s-.05&&t<u+.05)return r}}return i[i.length-1]}catch(A){}return null},Si=function(t){var i=Bt();if(!i||isNaN(t)||t<0)return-1;for(var n=0;n<i.length;n++){var r=i[n];if(r){var s=r.start||0,u=s+(r.duration||0);if(t>=s-.05&&t<u+.05)return n}}return i.length-1},Pi=function(t){if(isNaN(t)||t<=0)return 0;var i=Yt(t);return i&&!isUndefined(i.start)?Math.max(0,i.start):Math.max(0,t)},Di=function(t){if(isNaN(t)||t<=0)return 0;var i=Bt();if(i&&i.length){var n=Si(t);n<0&&(n=i.length-1);var r=Math.max(0,n-1),s=i[r];if(s&&!isUndefined(s.start))return Math.max(0,s.start)}var u=Yt(t);return u&&!isUndefined(u.start)?Math.max(0,u.start-12):Math.max(0,t-12)},Ut=function(t){return!(!o||isUndefined(o.buffered)||isNaN(t)||t<0||!Oe(t))},Xt=function(t){return!ae||isNaN(t)||t<=0||!o?!1:Ut(t)?(De(t),!0):!1},De=function(t){ye=!1,ae=!1,Ae=!1,_t(t),setTimeout(function(){if(o){try{o.pause()}catch(i){}L=!0,Ze(),!a.controls&&e.centerPlay&&e.centerPlay.show(),e.bar&&e.bar.playAndPause&&(e.bar.playAndPause.pause.hide(),e.bar.playAndPause.play.show(),e.bar.playAndPause.refresh.hide())}},120)},Ge=function(){re&&(clearTimeout(re),re=null),Ne=0},Ft=function(){!Ae||!o||!a.autoplay||F||le||We<1||(Ae=!1,f.play())},_t=function(t){Ge(),le=!0,F=0;try{o.currentTime=t}catch(i){F=t,le=!1}setTimeout(function(){le=!1},800)},Fe=function(t){if(!(!F||!o||le)&&!(!isUndefined(a.live)&&(valType(a.live)=="boolean"&&a.live||valType(a.live)=="number"))){var i=F,n=T||o.duration||0;if(n&&isFinite(n)&&n>0&&i>=n&&(i=Math.max(0,n-.3)),i<=0){F=0,Ge(),ae=!1;return}if(i>0&&($=Math.max($,i),te<0&&(te=i)),S){if(ae=!0,ie=i,Ae=!1,ye||Xt(i))return;if(Nt(i,t)){e.buffer&&e.buffer.show();return}if(!t&&!isUndefined(o.readyState)&&o.readyState<1&&!(n&&isFinite(n)&&n>0)&&(Ne++,Ne<=40)){re&&clearTimeout(re),re=setTimeout(function(){Fe(!1)},120);return}De(i);return}if(!t&&!isUndefined(o.readyState)&&o.readyState<1&&(Ne++,Ne<=50)){re&&clearTimeout(re),re=setTimeout(function(){Fe(!1)},200);return}_t(i)}},Mi=function(){if(Me>=3)return!1;Me++;var t=ie>0?ie:ke>0?ke:a.seek?parseFloat(a.seek):0;(isNaN(t)||t<0)&&(t=0);var i=Di(t);Me>=2&&(i=Math.max(0,i-10)),le=!1,Ge();try{S&&typeof S.recoverMediaError=="function"&&S.recoverMediaError()}catch(r){}if(t>0&&S&&typeof S.startLoad=="function"){var n=Me>=3?i:t;F=n,ie=t,ye=!0,je=-1,it=0;try{S.startLoad(i)}catch(r){}return setTimeout(function(){Ut(n)?De(n):Me>=2?De(i):Fe(!1)},600),!0}try{return De(Math.max(0,t-1.5)),!0}catch(r){}return!1},$t=function(){B("loadedMetaData",{width:C.getWidth(),height:C.getHeight(),videoWidth:b.videoWidth,videoHeight:b.videoHeight,duration:T,volume:b.volume}),B("duration",T),"error"in e&&e.error.hide(),Le("videoWidth",b.videoWidth),Le("videoHeight",b.videoHeight),Le("volume",parseInt(b.volume*100)),Le("duration",parseInt(T)),documentHidden(function(t){a.documentFocusPause&&(t=="show"?!zt&&L&&f.play():(zt=L,f.pause()))})},J={loadStart:function(){!a.controls&&kt!="iphone"&&e.loading.show(),e.centerPlay.hide(),B("loadstart")},canPlay:function(){e.loading.hide(),Ze(),B("canplay"),Fe(),Ft()},loadedData:function(){B("loadeddata")},loadedMetaData:function(){T=this.duration,!isUndefined(this.duration)&&a.duration&&(T=a.duration),a.live||(e.time.htm(formatSeconds(this.currentTime)+"/"+formatSeconds(T)),e.tempTime.htm(formatSeconds(this.currentTime)+"/"+formatSeconds(T))),e.loading.hide(),a.poster&&o.attr("poster",a.poster),!a.autoplay&&!a.controls&&(e.centerPlay.show(),e.buffer.hide()),b.duration=T,b.videoWidth=this.videoWidth,b.videoHeight=this.videoHeight,b.volume=this.volume,(b.videoWidth||b.videoHeight||T)&&$t(),Fe();var t=0;isUndefined(this.buffered)||(t=this.buffered.length),t>0&&vi(),a.live?si():si(a.preview),!isUndefined(a.prompt)&&valType(a.prompt)=="array"&&!a.live?Qi():ai(),Ve&&(ni(),Ve=!1),we=!1,We++,Ft(),!isUndefined(h)&&!isUndefined(h.frontPlay)&&h.frontPlay&&We>1&&(f.play(),dt(T)),!isUndefined(h)&&!isUndefined(h.frontPlay)&&!h.frontPlay&&(f.volume(a.volume),f.play()),!a.autoplay&&Wt&&(Wt=!1,f.pause(),setTimeout(f.pause,300))},timeUpDate:function(){W||(W=!0,e.buffer.hide(),B("buffer","end"));var t=this.buffered.length;t>0&&vi(),!T&&this.duration&&(T=this.duration,b.duration=T,b.videoWidth=this.videoWidth,b.videoHeight=this.videoHeight,(b.videoWidth||b.videoHeight||T)&&$t(),Fe()),ue=ke,ke=this.currentTime,$<ue&&($=ue),ci(ke),B("time",ke),a.live||(e.time.htm(formatSeconds(ke)+"/"+formatSeconds(T)),e.tempTime.htm(formatSeconds(ke)+"/"+formatSeconds(T))),!isUndefined(h)&&!isUndefined(h.frontPlay)&&h.frontPlay&&We>1&&dt(T-ke),!isUndefined(e.error)&&e.error.css("display")=="block"&&e.error.hide(),he&&Ci(ke),Le("audioDecodedByteCount",this.webkitAudioDecodedByteCount||this.audioDecodedByteCount||0),Le("videoDecodedByteCount",this.webkitVideoDecodedByteCount||this.videoDecodedByteCount||0)},ended:function(){!isUndefined(h)&&!isUndefined(h.frontPlay)&&h.frontPlay?Ct():(e.bar.playAndPause.pause.hide(),e.bar.playAndPause.play.hide(),e.bar.playAndPause.refresh.show(),B("ended"),nn(),R())},error:function(t){if(!isUndefined(t.type)){var i=this.error,n=function(){var r=12,s=language.error.loadingFailed;if(isUndefined(i))b.error={code:r,message:s},t.target.attr("src")&&de();else{if(isUndefined(i.code)||(r=i.code),isUndefined(i.message)||(s=i.message),r===3&&Mi())return;b.error={code:r,message:s},de()}B("error",b.error)};if(t.type=="error")try{o.currentSrc?ajax({url:o.currentSrc,error:function(r){r&&valType(r)=="object"&&"code"in r&&r.code?(b.error=r,B("error",b.error),de()):n()},success:function(r){r||n()}}):n()}catch(r){n()}}},stalled:function(){B("stalled")},suspend:function(){B("suspend")},emptied:function(){B("emptied"),b.error={code:7,message:language.error.emptied},B("error",b.error)},seeked:function(){le=!1,Me=0,ce=!1;var t=!1;if(ae&&ie>0){if(!Oe(ie))t=!0;else if(Math.abs(this.currentTime-ie)>.5){t=!0;var i=ie;setTimeout(function(){ae&&Oe(i)&&De(i)},0)}}if(t||(ae=!1),Ft(),we=!1,t||Ze(),Te){Te=!1;try{f.play()}catch(n){}}B("seek",{time:this.currentTime,state:"seeked"}),B("seeked")},seeking:function(){L&&!le&&!ye&&!ae&&!ce&&!F&&!Ae&&f.play();var t=this.currentTime;if(te==-1&&(te=t),!(ce||Te||ae||ye))switch(a.timeScheduleAdjust){case 0:if(ue!=t){Be=!1,f.seek(ue),R(language.timeScheduleAdjust.prohibit);return}break;case 2:if(t<ue){Be=!1,f.seek(ue),R(language.timeScheduleAdjust.prohibitBackOff);return}break;case 3:if(t>ue){Be=!1,f.seek(ue),R(language.timeScheduleAdjust.prohibitForward);return}break;case 4:if(t<te){Be=!1,f.seek(te),R(language.timeScheduleAdjust.prohibitLookBack);return}break;case 5:if(t>$){Be=!1,f.seek($),R(language.timeScheduleAdjust.prohibitForwardNotViewed);return}break}B("seek",{time:t,state:"seeking"}),B("seeking"),a.live||(e.time.htm(formatSeconds(t)+"/"+formatSeconds(T)),e.tempTime.htm(formatSeconds(t)+"/"+formatSeconds(T)))},waiting:function(){W=!1,B("buffer","start"),ce||Te||ae||e.centerPlay.hide(),a.controls||e.buffer.show(),!(ce||Te||ae)&&(Be?R(language.waiting):Be=!0)},play:function(){if(L=!1,e.bar.playAndPause.play.hide(),e.bar.playAndPause.pause.show(),e.bar.playAndPause.refresh.hide(),e.centerPlay.hide(),Ze(),mt=="button"?e.bar.pbox.removeClass("ck-bar-progress-out"):e.bar.pbox.addClass("ck-bar-progress-out"),fe&&(fe=!1,f.exitMuted()),Ke(),ft(),mt="",isUndefined(e.ended)||f.closeLayer(e.ended),"error"in e&&e.error.hide(),B("play"),!isUndefined(h)&&!isUndefined(h.front)&&isUndefined(h.frontPlay)){h.frontPlayI=0,h.frontPlay=!0,f.pause(),Jt();return}F&&(isUndefined(a.live)||!isUndefined(a.live)&&valType(a.live)=="boolean"&&!a.live)&&Fe()},pause:function(){L=!0,(isUndefined(h)||isUndefined(h.frontPlay)||!isUndefined(h.frontPlay)&&!h.frontPlay)&&!isUndefined(h)&&!isUndefined(h.pause)?(isUndefined(h.pausePlayI)&&(h.pausePlayI=0),Kt()):a.controls||(e.centerPlay.show(),e.buffer.hide()),e.bar.playAndPause.pause.hide(),e.bar.playAndPause.play.show(),e.bar.playAndPause.refresh.hide(),e.bar.pbox.removeClass("ck-bar-progress-out"),pi(),B("pause"),e.bar.removeClass("ck-bar-out"),P.removeClass("ck-nocursor")},volumeChange:function(){if(this.volume==0&&!G&&(this.muted=!0),this.volume>0&&G&&(this.muted=!1),G!=this.muted&&(G=this.muted,ln(this.muted),b.muted=this.muted,B("muted",b.muted)),b.volume=this.volume,B("volume",this.volume),!isUndefined(e.bar.vbox)){var t=parseInt(this.volume*100);e.bar.vbox.volume.txt.htm(t),e.bar.vbox.mouseDown||St(this.muted?0:this.volume),this.muted||R(language.volume+t+"%")}Le("volume",parseInt(this.volume*100))},resize:function(){var t=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement;t?(e.bar.fullAndExit.exitFull.show(),e.bar.fullAndExit.full.hide(),e.ad.bottom.fullAndExit.exitFull.show(),e.ad.bottom.fullAndExit.full.hide(),P.hasClass("ck-main-full")||P.addClass("ck-main-full"),R(language.full),e.bar.webFullAndExit.hide(),e.bar.theatreAndExit.hide(),isUndefined(e.menu)||P.append(e.menu)):(t=!1,e.bar.fullAndExit.full.show(),e.bar.fullAndExit.exitFull.hide(),e.ad.bottom.fullAndExit.full.show(),e.ad.bottom.fullAndExit.exitFull.hide(),P.hasClass("ck-main-full")&&P.removeClass("ck-main-full"),!isUndefined(a.webFull)&&a.webFull&&e.bar.webFullAndExit.show(),!isUndefined(a.theatre)&&!b.webFull&&e.bar.theatreAndExit.show(),isUndefined(e.menu)||M("body").append(e.menu),oe.css("width")!=P.css("width")&&f.zoom(100)),b.full!=t&&(b.full=t,B("full",t)),be(),ci(f.time())},keydown:function(t){t=window.event||t;var i=t.keyCode||t.which,n=f.volume(),r=function(){t.preventDefault?t.preventDefault():t.returnValue=!1};switch(i){case 32:r(),f.playOrPause();break;case 37:f.fastBack();break;case 39:f.fastNext();break;case 38:valType(a.keyVolume)=="number"&&(a.keyVolume==1||a.keyVolume==2&&b.full)&&(r(),f.volume(n+.1<1?n+=.1:1));break;case 40:valType(a.keyVolume)=="number"&&(a.keyVolume==1||a.keyVolume==2&&b.full)&&(r(),f.volume(n-.1>0?n-=.1:0));break;default:break}},mouseWheel:function(t){if(valType(a.mouseWheelVolume)=="number"&&(a.mouseWheelVolume==1||a.mouseWheelVolume==2&&b.full)){t=window.event||t;var i=f.volume();t.preventDefault?t.preventDefault():t.returnValue=!1,t.wheelDelta?(t.wheelDelta>0&&f.volume(i+.1<1?i+=.1:1),t.wheelDelta<0&&f.volume(i-.1>0?i-=.1:0)):t.detail&&(t.detail>0&&f.volume(i-.1>0?i-=.1:0),t.detail<0&&f.volume(i+.1<1?i+=.1:1))}}},Jt=function(){if(h.frontPlayI==0&&(fi(!1),e.ad.show(),h.front.video=!1,isUndefined(h.front.closeTime)||(h.front.closeTime>0?(e.ad.top.closeTime.show(),Zt()):e.ad.top.closeAd.show())),!isUndefined(h.front.node)&&h.front.node!=null&&(P.append(h.front.node),f.closeLayer(h.front.node),h.front.node=null),e.ad.picture.htm(""),e.ad.picture.hide(),e.ad.link.hide(),!isUndefined(h.front.list[h.frontPlayI])){var t=h.front.list[h.frontPlayI];at=!0,B("frontAd",t),t.type=="picture"?zi(t):t.type=="node"?Oi(t):(e.ad.link.attr("data-link",t.link),Wi(t.file)),isUndefined(t.link)?e.ad.bottom.details.hide():(e.ad.bottom.details.show(),e.ad.bottom.details.htm('<a href="'+t.link+'" target="blank">'+language.details+"</a>"))}},Zt=function(){isUndefined(h.front.closeSetTime)||(clearTimeout(h.front.closeSetTime),h.front.closeSetTime=null),e.ad.top.closeTime.htmReplace("{seconds}",h.front.closeTime,language.closeTime),h.front.closeTime--,h.front.closeTime>0?h.front.closeSetTime=setTimeout(Zt,1e3):(e.ad.top.closeAd.show(),e.ad.top.closeTime.hide())},dt=function(t){isUndefined(t)||(h.front.list[h.frontPlayI].time=t),h.front.countDown=0;for(var i=h.frontPlayI;i<h.front.list.length;i++)h.front.countDown+=parseInt(h.front.list[i].time);e.ad.top.countDown.htm(h.front.countDown+language.second)},Gt=function(){nt&&(clearTimeout(nt),nt=null)},Lt=function(){Gt();var t=h.front.list[h.frontPlayI];t.time>0?(t.time--,h.front.countDown--,e.ad.top.countDown.htm(h.front.countDown+language.second),nt=setTimeout(Lt,1e3)):Ct()},Ct=function(){h.frontPlayI<h.front.list.length-1?(h.frontPlayI++,Jt()):(!isUndefined(h.front.node)&&h.front.node!=null&&(P.append(h.front.node),f.closeLayer(h.front.node),h.front.node=null),e.ad.picture.htm(""),e.ad.picture.hide(),h.frontPlay=!1,e.ad.hide(),di(),F=0,Rt(lt()),h.front.video?Re(a.video):f.play(),B("frontAdEnded",!0),at=!1)},Wi=function(t){if(!isUndefined(t)){if(e.ad.picture.hide(),F=0,(o.attr("src")||o.htm())&&f.pause(),o.attr("src")&&(o.attr("src",""),o.removeAttr("src")),o.htm(""),a.plug&&!ut(t))switch(a.plug){case"hls.js":jt(t);break;case"flv.js":Vt(t);break;case"mpegts.js":qt(t);break;default:b.error={code:10,message:language.error.emptied},B("error",b.error),de();break}else o.attr("src",t);h.front.video=!0,e.ad.link.show(),e.ad.bottom.mutedAndExit.show()}},zi=function(t){if(!isUndefined(t.file)){var i=null,n=0,r=function(){e.ad.picture.show(),e.ad.picture.htm(""),i=et(t.file),e.ad.picture.append(i),i.addListener("load",function(){var s=this.getWidth(),u=this.getHeight();if(s>0||u>0){if(t.link){var A=pt("",t.link);A.append(this),e.ad.picture.append(A)}else e.ad.picture.append(this);i.unbind(),i.click(function(){B("frontAdClick",t)})}else n<10&&(n++,r())})};r(),dt(),Lt(),e.ad.bottom.mutedAndExit.hide()}},Oi=function(t){isUndefined(t.content)||(h.front.node=f.layer(t),h.front.node.css({"z-index":1}),e.ad.append(h.front.node),h.front.node.unbind(),h.front.node.click(function(){B("frontAdClick",t)}),dt(),Lt(),e.ad.bottom.mutedAndExit.hide())},Ii=function(){var t=e.ad.link.attr("data-link");window.open(t,"_blank")},Hi=function(){if(!isUndefined(h)&&!isUndefined(h.front)&&!isUndefined(h.front.closeButtonClick)){if(valType(h.front.closeButtonClick)=="function")try{h.front.closeButtonClick()}catch(t){console.error(t)}else if(valType(h.front.closeButtonClick)=="string")try{Je(h.front.closeButtonClick)}catch(t){console.error(t)}}else f.closeFrontAd()},Kt=function(){if(ft(),!isUndefined(h)&&!isUndefined(h.pause)&&!isUndefined(h.pause.list)&&h.pause.list.length-1>=h.pausePlayI){var t=h.pause.list[h.pausePlayI];if(!isUndefined(h.pause.close)&&h.pause.close&&(h.pauseClose=q("ck-pause-close"),h.pauseClose.click(function(){e.centerPlay.show(),e.buffer.hide(),ft()})),isUndefined(t.file))isUndefined(t.content)||(h.pause.node=f.layer(t),h.pauseClose&&h.pause.node.append(h.pauseClose),h.pause.node.click(function(){B("pauseAdClick",t)}));else{var i=null,n=0,r=function(){i=et(t.file),e.adPause.show(),e.adPause.htm(""),e.adPause.append(i),i.addListener("load",function(){var s=this.getWidth(),u=this.getHeight();if(s>0||u>0){if(e.adPause.htm(""),t.link){var A=pt("",t.link);A.append(this),e.adPause.append(A)}else e.adPause.append(this);e.adPause.css({width:s+"px",height:u+"px"}),h.pauseClose&&e.adPause.append(h.pauseClose),i.click(function(){B("pauseAdClick",t)})}else n<10&&(n++,r())})};r()}B("pauseAd",t),!isUndefined(t.time)&&t.time>0&&(rt=setTimeout(function(){h.pausePlayI++,h.pausePlayI>h.pause.list.length-1&&(h.pausePlayI=0),Kt()},t.time*1e3))}},ft=function(){rt&&(clearTimeout(rt),rt=null),e.adPause.hide(),!isUndefined(h)&&!isUndefined(h.pauseClose)&&h.pauseClose!=null&&(h.pauseClose.remove(),h.pauseClose=null),!isUndefined(h)&&!isUndefined(h.pause)&&!isUndefined(h.pause.node)&&h.pause.node&&(h.pause.node.unbind(),f.closeLayer(h.pause.node),B("pauseAdClose"))},f={width:function(t){return isUndefined(t)||(valType(t)=="number"&&(t+="px"),b.css({width:t}),be()),C.getWidth()},height:function(t){return isUndefined(t)||(valType(t)=="number"&&(t+="px"),b.css({height:t}),be()),C.getHeight()},videoWidth:function(){return o?o.videoWidth:null},videoHeight:function(){return o?o.videoHeight:null},zoom:function(t){if(!isUndefined(t)&&(valType(t)=="function"&&z.addEventListener("zoom",t),valType(t)=="number")){for(var i=[e.topBar.zoomEle.zoom50,e.topBar.zoomEle.zoom75,e.topBar.zoomEle.zoom100],n=0;n<i.length;n++)i[n].removeClass("ck-top-bar-zoom-container-focus");switch(t){case 50:i[0].addClass("ck-top-bar-zoom-container-focus");break;case 75:i[1].addClass("ck-top-bar-zoom-container-focus");break;case 100:i[2].addClass("ck-top-bar-zoom-container-focus");break}(t==50||t==75||t==100)&&(pe=t,be(),B("zoom",t))}return f},rotate:function(t){if(!isUndefined(t)&&(valType(t)=="function"&&z.addEventListener("rotate",t),valType(t)=="number")){var i=[0,90,180,270],n=0;i.length>t&&t>0?n=i[t]:i.indexOf(t)>-1&&(n=t),n!=Ue&&(B("rotate",n),Ue=n,be())}},vars:function(t,i){if(!isUndefined(t)){if(valType(t)=="string"&&!isUndefined(i)){var n={};n[t]=i,t=n}var r=!1;for(var s in t)if(s in a&&t[s]!=a[s]){r=!0;break}r&&(a=standardization(a,t)),isUndefined(t.video)||(Ve=!0,Re(a.video)),isUndefined(t.title)||e.topBar.titleEle.htm(t.title)}},loadstart:function(t){!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("loadstart",t)},loadeddata:function(t){!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("loadeddata",t)},loadedMetaData:function(t){!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("loadedMetaData",t)},canplay:function(t){!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("canplay",t)},play:function(t){if(valType(t)=="object"&&(t.target==e.bar.playAndPause.play||t.target==e.bar.playAndPause.refresh)&&(mt="button"),!isUndefined(t)&&valType(t)=="function")z.addEventListener("play",t);else if(We>0&&o)try{var i=o.play();i&&typeof i.catch=="function"&&i.catch(function(){})}catch(n){}return f},pause:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("pause",t);else if(We>0&&o)try{o.pause()}catch(i){console.error(i)}return f},playOrPause:function(){return L?f.play():f.pause(),f},volume:function(t){if(!isUndefined(t))valType(t)=="function"?z.addEventListener("volume",t):valType(t)=="number"&&o&&(t<0&&(t=0),t>1&&(t=1),o.muted&&(o.volume=t*.5),o.volume=t);else if(o)return o.volume;return f},muted:function(t){return!isUndefined(t)&&valType(t)=="function"?z.addEventListener("muted",t):o&&(o.muted=!0),f},exitMuted:function(){return o&&(o.muted=!1,o.volume==0&&f.volume(a.volume>0?a.volume:.8)),f},time:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("time",t);else if(o)return o.currentTime||0},seek:function(t){if(!isUndefined(t))if(valType(t)=="function")z.addEventListener("seek",t);else{var i=null;if(valType(t)=="number"&&!isNaN(t)?i=t:valType(t)=="string"&&t!==""&&t!=="cookie"&&!isNaN(parseFloat(t))&&(i=parseFloat(t)),i!==null&&o){switch(i>0&&(F&&Math.abs(F-i)<.5||a.seek&&parseFloat(a.seek)>0&&Math.abs(parseFloat(a.seek)-i)<.5)&&($=Math.max($,i),te<0&&(te=i)),a.timeScheduleAdjust){case 0:return R(language.timeScheduleAdjust.prohibit),f;case 1:break;case 2:if(i<ue)return R(language.timeScheduleAdjust.prohibitBackOff),f;break;case 3:if(i>ue)return R(language.timeScheduleAdjust.prohibitForward),f;break;case 4:if(i<te){Be=!1;try{o.currentTime=te}catch(r){}return R(language.timeScheduleAdjust.prohibitLookBack),f}break;case 5:if(i>$){Be=!1;try{o.currentTime=$}catch(r){}return R(language.timeScheduleAdjust.prohibitForwardNotViewed),f}break}we=!1;var n=o.readyState>=2||T&&isFinite(T)&&T>0;if(!n)return F=i,i>0&&($=Math.max($,i),te<0&&(te=i)),f;if(T&&isFinite(T)&&T>0&&i>T&&(i=Math.max(0,T-.3)),i<0&&(i=0),a.timeScheduleAdjust==5&&i>$&&F&&Math.abs(F-i)<.5&&($=Math.max($,i)),i>.5&&!Oe(i)&&o.readyState<3&&!S)return F=i,Fe(!1),f;if(S)return i>.5&&Oe(i)&&Math.abs((o.currentTime||0)-i)<.35?(F=0,ye=!1,f):(Bi(i),f);try{o.currentTime=i,F=0,i>$&&a.timeScheduleAdjust!=5&&($=i)}catch(r){F=i}}}return f},buffer:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("buffer",t),f},ended:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("ended",t),f},next:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("next",t),f},error:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("error",t),f},emptied:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("emptied",t),f},duration:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("duration",t);else return T||0},playbackRate:function(t){if(!isUndefined(t))valType(t)=="function"?z.addEventListener("playbackRate",t):valType(t)=="number"&&o&&(o.playbackRate=t,b.playbackRate=t,B("playbackRate",t),ei(t));else return o.playbackRate},track:function(t){if(isUndefined(t))return b.track;if(valType(t)=="function")z.addEventListener("track",t);else if(valType(t)=="number"&&o){var i=null;if(isUndefined(o.textTracks)||(i=o.textTracks),i&&valType(i)=="texttracklist"){for(var n=a.track,r=i.length-1;r>-1;r--)o.find("track").eq(r).remove();for(var r=0;r<n.length;r++){var s="";n[r].default=!1,r==t&&(s=" default",n[r].default=!0),i+='<track src="'+n[r].src+'" srclang="'+n[r].srclang+'" kind="'+n[r].kind+'" label="'+n[r].label+'"'+s+">"}if(o){var u=o.htm()+i;o.htm(u)}ii(t)}}},fastBack:function(t){if(T!=0){(isUndefined(t)||valType(t)!="number")&&(t=20);var i=f.time();return i-t>0?i-=t:i=0,f.seek(i),f}},fastNext:function(t){if(T!=0){(isUndefined(t)||valType(t)!="number")&&(t=20);var i=f.time();return i+t<T?i+=t:i=T,f.seek(i),f}},definition:function(t){return isUndefined(t)||(valType(t)=="function"&&z.addEventListener("definition",t),valType(t)=="number"&&ri(t)),f},fps:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("fps",t),b.fps},playback:function(t){if(!isUndefined(t))valType(t)=="function"&&z.addEventListener("playback",t);else return ki;return f},backLive:function(t){return isUndefined(t)||(valType(t)=="function"&&z.addEventListener("backLive",t),valType(t)=="boolean"&&(bool?e.bar.backLive.show():e.bar.backLive.hide())),f},full:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("full",t);else{if(wt)return;b.theatre&&f.exitTheatre(),b.webFull&&f.exitWebFull();var i=C.requestFullScreen||C.webkitRequestFullScreen||C.mozRequestFullScreen||C.oRequestFullscreen||C.msRequestFullscreen;if(!isUndefined(i))i.call(C);else if(isUndefined(window.ActiveXObject)){if(!isUndefined(o.webkitEnterFullscreen)||!isUndefined(o.webkitEnterFullScreen)){var r=o.webkitEnterFullscreen||o.webkitEnterFullScreen;r.call(o)}}else{var n=new ActiveXObject("WScript.Shell");n!==null&&n.SendKeys("{F11}")}f.zoom(100)}return f},exitFull:function(){var t=document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen||document.oCancelFullScreen||document.msExitFullscreen;if(!isUndefined(t))t.call(document);else if(!isUndefined(window.ActiveXObject)){var i=new ActiveXObject("WScript.Shell");i!==null&&i.SendKeys("{F11}")}return f},fullOrExit:function(){var t=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement;return t?f.exitFull():f.full(),f},webFull:function(t){return!isUndefined(t)&&valType(t)=="function"?z.addEventListener("webfull",t):(ct(),isUndefined(a.theatre)||e.bar.theatreAndExit.hide(),C.css({position:"fixed",top:0,left:0,height:"100%","z-index":getMaxZIndex()+1}),e.bar.webFullAndExit.webFull.hide(),e.bar.webFullAndExit.exitWebFull.show(),b.webFull=!0,B("webfull",!0),be()),f},exitWebFull:function(){return C.css({position:"relative"}),e.bar.webFullAndExit.webFull.show(),e.bar.webFullAndExit.exitWebFull.hide(),isUndefined(a.theatre)||(e.bar.theatreAndExit.show(),e.bar.theatreAndExit.theatre.show(),e.bar.theatreAndExit.exitTheatre.hide()),C.attr("style",""),b.webFull=!1,B("webfull",!1),be(),f},theatre:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("theatre",t);else{if(valType(a.theatre)=="array"&&a.theatre.length==2){var i=a.theatre[0];valType(i)=="function"&&i(),valType(i)=="string"&&Je(i)}else ct(),C.css({position:"absolute",top:b.offset().top,left:0,height:b.getHeight()+"px","z-index":getMaxZIndex()+1}),e.bar.theatreAndExit.theatre.hide(),e.bar.theatreAndExit.exitTheatre.show();b.theatre=!0,B("theatre",!0),be()}return f},exitTheatre:function(){if(valType(a.theatre)=="array"&&a.theatre.length==2){var t=a.theatre[1];valType(t)=="function"&&t(),valType(t)=="string"&&Je(t)}else C.css({position:"relative"}),e.bar.theatreAndExit.theatre.show(),e.bar.theatreAndExit.exitTheatre.hide(),C.attr("style",""),b.theatre=!1;return B("theatre",!1),be(),f},smallWindows:function(t){return isUndefined(t)||(valType(t)=="function"&&z.addEventListener("smallWindows",t),valType(t)=="boolean"&&(t?(e.rightBar.smallwindows.open.show(),e.rightBar.smallwindows.close.hide(),b.smallWindows=!0):(e.rightBar.smallwindows.open.hide(),e.rightBar.smallwindows.close.show(),b.smallWindows=!1),B("smallWindows",b.smallWindows),be())),b.smallWindows},loop:function(t){return isUndefined(t)||(valType(t)=="function"&&z.addEventListener("loop",t),valType(t)=="boolean"&&o&&(t?(e.rightBar.loop.open.show(),e.rightBar.loop.close.hide(),b.loop=!0,o.attr("loop","loop"),B("loop",!0)):(e.rightBar.loop.open.hide(),e.rightBar.loop.close.show(),b.loop=!1,o.attr("loop",!1),o.removeAttr("loop"),B("loop",!1)))),b.loop},screenshot:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("screenshot",t);else if(!isUndefined(a.screenshot)&&a.screenshot&&o)try{R(language.screenshotStart,!0);var i=M(document.createElement("canvas"));i.width=o.videoWidth,i.height=o.videoHeight,i.getContext("2d").drawImage(o,0,0,o.videoWidth,o.videoHeight);var n=i.toDataURL("image/png");B("screenshot",n),Ie&&(Ie.remove(),Ie=null),Ie=et(n),Ie.addListener("load",function(){e.screenshot.img.append(Ie),e.screenshot.show().css({width:this.getWidth()+"px"})});var r=dataURLtoBlob(n),s=URL.createObjectURL(r),u="video";return a.title&&(u=a.title),e.screenshot.bar.down.attr("href",s).attr("download",u),n}catch(A){R(language.error.screenshot,!0)}else R(language.screenshotClose,!0);return f},closeScreenshot:function(t){return!isUndefined(t)&&valType(t)=="boolean"&&!t?e.screenshot.show():e.screenshot.hide(),f},layer:function(t,i){if(isUndefined(t))return null;var n=!1;isUndefined(i)||(n=i);var r=null;if(valType(t)=="object"&&("class"in t&&"content"in t?(r=w(t.class),r.htm(t.content)):"content"in t&&(t=t.content)),valType(t)=="string"&&(t.substr(0,1)=="."||t.substr(0,1)=="#"?r=dn(t):(r=w("ck-layer"),r.htm(t))),r){var s=r.css("z-index");s=="auto"&&(s=101),s<101&&(s=101),s>200&&(s=200),isUndefined(r.cssDisplay)&&(r.cssPosition=r.css("position"),r.cssDisplay=r.css("display")),r.css({position:"absolute","z-index":s}),n?e.bar.append(r):P.append(r),r.CK=C,r.show()}return r},closeLayer:function(t){if(valType(t)=="string"){var i=M(t);isUndefined(i)||i.length>0&&(t=i.eq(0))}if(!isUndefined(t)&&valType(t)=="htmlobject"){if(isUndefined(t.captureParentNode))t.remove();else{var n=t.captureParentNode;if(t.nextElement)try{n.insertBefore(t,t.nextElement)}catch(r){n.append(t)}else if(t.prevElement)try{n.insertAfter(t,t.prevElement)}catch(r){n.append(t)}else n.append(t);t.css({display:t.cssDisplay})}isUndefined(t.cssDisplay)||t.css({display:t.cssDisplay,position:t.cssPosition})}return f},message:function(t){return R(t),f},closeFrontAd:function(){return at&&!isUndefined(h)&&!isUndefined(h.front)&&!isUndefined(h.front.list)&&(h.frontPlayI=h.front.list.length-1,Ct(),Gt()),f},addListener:function(t,i){z.addEventListener(t,i)},removeListener:function(t,i){z.removeEventListener(t,i)},bar:function(t){Dt=t,t?e.bar.show():e.bar.hide()},rightBar:function(t){Mt=t,t?e.rightBar.show():e.rightBar.hide()},mouseActive:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("mouseActive",t),this},cookie:function(t){if(t=="delete")return cookie(Se,"delete",a.domain),null;!isUndefined(t)&&t&&(t=t.replace(/[ ]*,[ ]*|[ ]+/g,"").replace(/[ ]*;[ ]*|[ ]+/g,""));var i=cookie(Se);if(i){var n=stringToArray(i),r=[],s=parseInt(Date.now()*.001);for(u=0;u<n.length;u++)parseInt(n[u][2])>s&&r.push(n[u]);if(n=r,n.length>0){cookie(Se,"delete",a.domain,a.cookiePath),cookie(Se,arrayToString(n),a.domain,a.cookiePath);for(var u=0;u<n.length;u++)if(n[u]={name:n[u][0],time:n[u][1],expirationTime:date("Y-m-d H:i:s",n[u][2]),expirationTimeStamp:n[u][2]},!isUndefined(t)&&t==n[u].name)return n[u];return n}else cookie(Se,"delete",a.domain,a.cookiePath)}return null},visibilityState:function(t){return!isUndefined(t)&&valType(t)=="function"&&(isUndefined(document.visibilityState)||t(document.visibilityState==="visible"?"show":"hidden"),z.addEventListener("visibilityState",t)),this},remove:function(){var t={};if($e!=null){for(var i in $e)t[i]=$e[i];for(var i in t){var n=t[i];if(n)for(var r=0;r<n.length;r++){var s=n[r];z.removeEventListener(i,s)}}}return at&&this.closeFrontAd(),I&&(I.pause(),I.unload(),I.detachMediaElement(),I.destroy(),I=null),S&&(S.stopLoad(),S.detachMedia()),We=0,yt=!1,Ve=!0,o&&(o.unbind(),o.remove(),o=null),isUndefined(e.menu)||e.menu.remove(),b&&(b.unbind(),b.htm("")),null}},Ri=function(){a.autoplay?(e.bar.playAndPause.play.hide(),e.bar.playAndPause.pause.show()):(e.bar.playAndPause.play.show(),e.bar.playAndPause.pause.hide()),G?e.bar.vbox.muted.hide():e.bar.vbox.exitMuted.hide(),isUndefined(a.next)?e.bar.nextEpisode.hide():e.bar.nextEpisode.show(),!isUndefined(a.webFull)&&a.webFull&&!b.full?e.bar.webFullAndExit.show():e.bar.webFullAndExit.hide(),!isUndefined(a.theatre)&&!b.full&&!b.webFull?e.bar.theatreAndExit.show():e.bar.theatreAndExit.hide(),!isUndefined(a.rightBar)&&a.rightBar?e.rightBar.show():e.rightBar.hide(),(!a.live||valType(a.live)=="number")&&(we=!1,on()),(a.live||valType(a.live)=="number")&&(e.time.htm(language.live),e.tempTime.htm(language.live)),valType(a.smallWindows)=="boolean"&&!a.smallWindows&&(b.smallWindows=!1,e.rightBar.smallwindows.open.hide(),e.rightBar.smallwindows.close.show()),b.loop?(e.rightBar.loop.open.show(),e.rightBar.loop.close.hide()):(e.rightBar.loop.open.hide(),e.rightBar.loop.close.show()),!isUndefined(a.backLive)&&a.backLive&&e.bar.backLive.show(),a.volume==0&&f.muted()},Qt=function(){!isUndefined(a.logo)&&isUndefined(e.logo)&&(e.logo=w("ck-logo"),et(a.logo).addListener("load",function(){P.append(e.logo),e.logo.append(this)}).addListener("error",function(){e.logo.remove()}))},Ni=function(){if(!isUndefined(a.information)&&!isUndefined(e.about)&&valType(a.information)=="object"){var t=a.information,i="",n=M(document.createElement("ul")),r="";for(i in t){var s=w("div").attr("class","ck-about-title"),u=w("div").attr("class","ck-about-content"),A=M(document.createElement("li"));s.htm(i),u.htm(t[i]),A.append(s),A.append(u),n.append(A),r+=i+":"+t[i]+`
|
|
2
|
+
`}e.about.append(n),e.about.textareaText=r,e.about.textareaEle=M(document.createElement("textarea")),P.append(e.about.textareaEle),e.about.textareaEle.hide()}},ji=function(){!isUndefined(a.menu)&&a.menu&&(p=a.menu),e.menu=w("ckplayer-ckplayer-menu");for(var t=0;t<p.length;t++){var i=p[t],n=w("ck-li");if(isUndefined(i.underline)||n.addClass("ck-underline"),!isUndefined(i.link)&&!isUndefined(i.title))n.append(pt(i.title,i.link)),e.menu.append(n);else if(!isUndefined(i.javascript)&&!isUndefined(i.title))n.append(bi(i.title,i.javascript)),e.menu.append(n);else if(!isUndefined(i.click)&&!isUndefined(i.title)){var r=bi(i.title);r.attr("data-click",i.click.toString()),r.click(function(){Je(M(this).attr("data-click")),e.menu.hide()}),n.append(r),e.menu.append(n)}else isUndefined(i.title)||(n.htm(i.title),e.menu.append(n))}M("body").append(e.menu),P.oncontextmenu=function(d){var g=d||window.event,E=Ee(g);if(g.button==2){g.returnvalue=!1;var U=E.x-2,x=E.y-2;return e.menu.show(),e.menu.css({left:U+"px",top:x+"px"}),!1}return!0};var s=null,u=function(){s&&(clearTimeout(s),s=null)},A=function(){u(),s=setTimeout(function(){e.menu.hide()},200)};e.menu.mouseout(A),e.menu.mouseover(u)},hn=function(){e.about.show(),e.menu.hide()},Vi=function(){e.about.hide()},qi=function(){e.about.textareaEle.show(),e.about.textareaEle.select(),document.execCommand("Copy"),e.about.textareaEle.hide(),R(language.copySucceeded,!0)},ve=function(){var t=e.bar.getHeight();return parseFloat(e.bar.pbox.css("top"))<0&&(t-=parseInt(e.bar.pbox.css("top"))),t},Ke=function(){me&&(clearTimeout(me),me=null),me=setTimeout(function(){L||(e.bar.addClass("ck-bar-out"),B("mouseActive",!1),b.full&&P.addClass("ck-nocursor"),e.rightBar.css("display")=="block"&&e.rightBar.addClass("ck-right-bar-hide"),e.topBar.css("display")=="block"&&e.topBar.addClass("ck-top-bar-hide")),me=null},a.barHideTime)},Yi=function(){L||(e.bar.pbox.addClass("ck-bar-progress-out"),Ke())},Xi=function(){L||(e.bar.pbox.removeClass("ck-bar-progress-out"),me&&(clearTimeout(me),me=null))},_i=function(){L||Ke()},$i=function(){L||me&&(clearTimeout(me),me=null)},Ji=function(){var t=a.playbackrateList,i=a.playbackrate;e.bar.playbackrate.bg=w("ck-list-bg"),e.bar.playbackrate.bgbox.append(e.bar.playbackrate.bg),e.bar.playbackrate.bg.p=[];for(var n=t.length-1;n>-1;n--){var r=q("ck-list-p",t[n]+language.playbackrateSuffix);r.attr("data-i",n).attr("data-val",t[n]),e.bar.playbackrate.bg.p.push(r),e.bar.playbackrate.bg.append(r),r.click(Zi)}if(e.bar.playbackrate.hide(),!isUndefined(a.playbackrateOpen)&&a.playbackrateOpen){e.bar.playbackrate.show(),e.bar.playbackrate.bgbox.show();var s=e.bar.playbackrate.bg.getWidth(),u=e.bar.playbackrate.bg.getHeight(),A=e.bar.playbackrate.button.getWidth();e.bar.playbackrate.bg.css({width:s+10+"px"}),s=e.bar.playbackrate.bg.getWidth(),ve()>e.bar.getHeight()&&(u+=ve()-e.bar.getHeight()),e.bar.playbackrate.bgbox.attr("style",""),e.bar.playbackrate.bgbox.css({width:s+"px",height:u+2+"px",left:-(s-A)*.5+"px"}),e.bar.playbackrate.button.mouseover(function(){s=e.bar.playbackrate.bg.getWidth(),A=e.bar.playbackrate.button.getWidth(),e.bar.playbackrate.bgbox.css({left:-(s-A)*.5+"px"})}),ei(i)}},Zi=function(t){e.bar.playbackrate.bgbox.hide(),setTimeout(function(){e.bar.playbackrate.bgbox.removeCss("display")},300),R(language.switchTo+M(this).htm()),f.playbackRate(parseFloat(M(this).attr("data-val")))},ei=function(t){e.bar.playbackrate.bg.find("button").each(function(i,n){var r=parseFloat(n.attr("data-val"));n.removeClass("ck-list-p-focus"),t==r?(n.addClass("ck-list-p-focus"),t!=1?e.bar.playbackrate.button.htm(n.htm()):e.bar.playbackrate.button.htm(language.playbackrate)):n.removeClass("ck-list-p-focus")})},Gi=function(){var t=a.track,i=-1;e.bar.track.bgbox.htm(""),e.bar.track.bg=w("ck-list-bg"),e.bar.track.bgbox.append(e.bar.track.bg),e.bar.track.bg.p=[];for(var n=null,r=t.length-1;r>-1;r--)n=q("ck-list-p",t[r].label),n.attr("data-i",r).attr("data-title",t[r].label),e.bar.track.bg.p.push(n),e.bar.track.bg.append(n),!isUndefined(t[r].default)&&t[r].default&&(i=r),n.click(ti);n=q("ck-list-p",language.noTrack),n.attr("data-i",-1).attr("data-title",language.noTrack),e.bar.track.bg.p.push(n),e.bar.track.bg.append(n),n.click(ti),e.bar.track.hide(),e.bar.track.show(),e.bar.track.bgbox.show();var s=e.bar.track.bg.getWidth(),u=e.bar.track.bg.getHeight(),A=e.bar.track.button.getWidth();e.bar.track.bg.css({width:s+10+"px"}),s=e.bar.track.bg.getWidth(),ve()>e.bar.getHeight()&&(u+=ve()-e.bar.getHeight()),e.bar.track.bgbox.attr("style",""),e.bar.track.bgbox.css({width:s+"px",height:u+2+"px",left:-(s-A)*.5+"px"}),e.bar.track.button.mouseover(function(){s=e.bar.track.bg.getWidth(),A=e.bar.track.button.getWidth(),e.bar.track.bgbox.css({left:-(s-A)*.5+"px"})}),ii(i)},ti=function(t){e.bar.track.bgbox.hide(),setTimeout(function(){e.bar.track.bgbox.removeCss("display")},300),R(language.switchTo+M(this).attr("data-title")),f.track(parseFloat(M(this).attr("data-i")))},ii=function(t){e.bar.track.bg.find("button").each(function(i,n){var r=parseInt(n.attr("data-i"));t==r?(e.bar.track.button.htm(n.attr("data-title")),r>-1?(b.track=a.track[r],B("track",a.track[r])):(b.track=null,B("track",null)),n.addClass("ck-list-p-focus")):n.removeClass("ck-list-p-focus")})},ni=function(){var t=-1,i=o.currentSrc;if(isUndefined(e.bar.definition.bg)||(e.bar.definition.bgbox.htm(""),e.bar.definition.bgbox.attr("style",""),e.bar.definition.button.htm(language.definition)),valType(a.video)=="array"){var n=a.video;e.bar.definition.bg=w("ck-list-bg"),e.bar.definition.bgbox.append(e.bar.definition.bg),e.bar.definition.bg.p=[];for(var r=n.length-1;r>-1;r--){var s=q("ck-list-p",n[r][2]);s.attr("data-i",r).attr("data-video",n[r][0]).attr("data-type",n[r][1]).attr("data-title",n[r][2]),e.bar.definition.bg.p.push(s),e.bar.definition.bg.append(s),i&&i.indexOf(n[r][0])>-1&&(t=r),s.click(Ki)}e.bar.definition.show(),e.bar.definition.bgbox.show();var u=e.bar.definition.bg.getWidth(),A=e.bar.definition.bg.getHeight(),d=e.bar.definition.button.getWidth();e.bar.definition.bg.css({width:u+10+"px"}),u=e.bar.definition.bg.getWidth(),ve()>e.bar.getHeight()&&(A+=ve()-e.bar.getHeight()),e.bar.definition.bgbox.attr("style",""),e.bar.definition.bgbox.css({width:u+"px",height:A+2+"px",left:-(u-d)*.5+"px"}),e.bar.definition.button.mouseover(function(){u=e.bar.definition.bg.getWidth(),d=e.bar.definition.button.getWidth(),e.bar.definition.bgbox.css({left:-(u-d)*.5+"px"})})}t>-1&&e.bar.definition.bg.find("button").each(function(g,E){var U=parseInt(E.attr("data-i"));t==U?E.addClass("ck-list-p-focus"):E.removeClass("ck-list-p-focus")})},Ki=function(t){e.bar.definition.bgbox.hide(),setTimeout(function(){e.bar.definition.bgbox.removeCss("display")},300),ri(parseInt(M(this).attr("data-i")))},ri=function(t){e.bar.definition.bg.find("button").each(function(i,n){var r=parseInt(n.attr("data-i"));if(t==r){if(!isUndefined(o.textTracks)&&o.textTracks.length>0)for(var s=o.find("track").length-1;s>-1;s--)o.find("track").eq(s).remove();F=f.time();try{o.removeAttr("autoplay")}catch(u){}Re(n.attr("data-video")),R(language.switchTo+n.htm()),e.bar.definition.button.htm(n.htm()),n.addClass("ck-list-p-focus"),B("definition",{id:r,video:n.attr("data-video"),title:n.attr("data-title")})}else n.removeClass("ck-list-p-focus")})},ai=function(){var t=0;if(!isUndefined(e.prompt)&&valType(e.prompt)=="array"){for(t=e.prompt.length;t>-1;t--)isUndefined(e.prompt[t])||e.prompt[t].remove();e.prompt=null}e.prompt=[]},Qi=function(){ai();for(var t=0;t<a.prompt.length;t++){var i=a.prompt[t];if(!isUndefined(i)&&"words"in i&&"time"in i&&!isUndefined(i.time)&&!isUndefined(i.words)&&valType(i.time)=="number"){var n=w("ck-bar-progress-prompt");n.attr("data-words",i.words).attr("data-time",i.time),e.bar.pbox.bg.append(n);var r=n.getWidth()*.5/e.bar.pbox.bg.getWidth()*50,s=i.time/T*100-r;s<0&&(s=0),s>100&&(s=100),n.css({left:s+"%"}),n.mouseover(function(){this.attr("data-words")&&oi(this)}),n.mouseout(function(){this.attr("data-words")&&oi()}),e.prompt.push(n)}}},oi=function(t){if(isUndefined(e.promptWords)&&(e.promptWords=w("ck-prompt-words"),P.append(e.promptWords),e.promptWords.content=w("ck-prompt-content"),e.promptWords.append(e.promptWords.content)),isUndefined(t)){e.promptWords.content.htm(""),e.promptWords.hide();return}e.promptWords.content.htm(t.attr("data-words")),e.promptWords.show();var i=e.promptWords.getWidth(),n=e.promptWords.getHeight(),r=e.bar.pbox.bg,s=parseFloat(t.attr("data-time")),u=C.getHeight()-ve(),A=t.offset().left-C.offset().left+t.getWidth()*.5-i*.5;isUndefined(e.preview)?(u=C.getHeight()-parseFloat(ve()+e.tip.minHeight+parseInt(e.tip.css("margin-bottom"))),u-=ve()-e.bar.getHeight()):u=C.getHeight()-parseFloat(ve()+e.preview.smallHight+parseInt(e.preview.css("margin-bottom"))),u-=parseFloat(e.promptWords.css("margin-bottom")),u-=n,A-=parseFloat(e.promptWords.css("margin-right")),A<0&&(A=0),A>C.getWidth()-i&&(A=C.getWidth()-i),e.promptWords.css({top:u+"px",left:A+"px"})},si=function(t){if(isUndefined(e.preview)||(e.preview.remove(),e.preview=null),!isUndefined(t)){e.preview=w("ck-preview"),P.append(e.preview),isUndefined(a.preview.type)&&(a.preview.type=0),a.preview.type==1&&(e.preview.bg=w("ck-preview-bg"),e.preview.append(e.preview.bg));var i=[],n=function(u,A,d,g){if(a.preview.type==1){e.preview.bg.img=[];for(var E=0;E<i.length;E++)for(var U=0;U<A/g;U++){var x=w("ck-preview-img");x.attr("data-img",i[E]).attr("data-i",U),x.css({width:u+"px",height:g+"px","background-position":"left "+-(U*g)+"px"}),e.preview.bg.append(x),e.preview.bg.img.push(x)}e.preview.bg.css({width:u*(A/g)*(i.length+1)+"px",height:g+"px"})}e.preview.bigWidth=u,e.preview.bigHight=A,e.preview.smallWidth=d,e.preview.smallHight=g,a.preview.type==1&&(e.preview.frame=w("ck-preview-frame"),e.preview.append(e.preview.frame),e.preview.frame.css({width:d+"px",height:g-parseFloat(e.preview.frame.css("border-width"))*2+"px"}))};if(valType(a.preview)=="object")if(valType(a.preview.file)=="array"){i=a.preview.file;var r=[10,10];if(valType(a.preview.thumbnail)=="array"&&a.preview.thumbnail.length>1&&(valType(a.preview.thumbnail[0])=="number"&&(r[0]=a.preview.thumbnail[0]),valType(a.preview.thumbnail[1])=="number"&&(r[1]=a.preview.thumbnail[1]),a.preview.thumbnail=r),i[0]){var s=et(i[0],"ck-preview-load-img").addListener("load",function(){n(this.getWidth(),this.getHeight(),this.getWidth()/r[0],this.getHeight()/r[1]),this.remove()});P.append(s)}}else e.preview.removeChild(),e.preview=null;else e.preview.removeChild(),e.preview=null}},li=function(t){if(_e&&(clearTimeout(_e),_e=null),t<0&&!isUndefined(e.preview)){_e=setTimeout(function(){e.preview.hide(),_e=null},200);return}if(!isUndefined(e.preview)&&!isUndefined(a.preview.thumbnail)&&T>0){isUndefined(a.preview.type)&&(a.preview.type=0);var i=2,n=a.preview.thumbnail;isUndefined(a.preview.scale)||(i=a.preview.scale);var r=0,s=0,u=0,A=0,d=0,g=e.preview.smallWidth,E=e.preview.smallHight,U=t*e.bar.pbox.bg.getWidth()/T+(e.bar.pbox.bg.offset().left-C.offset().left);if(e.preview.css("display")=="none"&&e.preview.show(),e.preview.css({height:E+"px"}),a.preview.type==1){r=parseInt(t/(i*n[0])),s=parseInt(t/i);var x=r-5,D=r+5;x<0&&(x=0),D>e.preview.bg.img.length-1&&(D=e.preview.bg.img.length-1);for(var V=x;V<D;V++)if(e.preview.bg.img[V].attr("data-img")){var Y=e.preview.bg.img[V].css("background-position");e.preview.bg.img[V].css({background:"url("+e.preview.bg.img[V].attr("data-img")+") no-repeat"}),e.preview.bg.img[V].attr("data-img",""),e.preview.bg.img[V].css("background-position",Y)}if(d=e.preview.frame.getWidth(),A=U-d*.5,u=-(s*g+g*.5)+U,A<0&&(A=0,U=(d-g)*.5,u=-(s*g)+U),A>e.preview.getWidth()-e.preview.frame.getWidth()){var K=A-(e.preview.getWidth()-e.preview.frame.getWidth());A=e.preview.getWidth()-e.preview.frame.getWidth(),u-=K}e.preview.bg.css({left:u+"px"}),e.preview.frame.css({left:A+"px"})}else{var X=t/i/(n[0]*n[1]);s=parseInt(X);var Q=parseInt((X-s)*100),xe=parseInt(Q/n[0]),H=Q%n[0],ee=a.preview.file;u=U-g*.5,u<0&&(u=0),u>C.getWidth()-g&&(u=C.getWidth()-g),e.preview.css({width:e.preview.smallWidth+"px",background:"url("+ee[s]+") no-repeat","background-position":"-"+H*g+"px -"+xe*E+"px",left:u+"px"})}}},de=function(){if(e.loading.hide(),!(a.controls||!a.errorShow)){isUndefined(e.error)&&(e.error=w("ck-error"),P.append(e.error));var t=b.error.message;t||(t=language.error.noMessage);var i=t+"(code:"+b.error.code+")";e.error.htm(i),e.error.show()}},Qe=function(t){var i=w("ckplayer-error",t);M("body").append(i)},en=function(){if(!isUndefined(a.next)){if(valType(a.next)=="object"){if("content"in a.next){e.next=f.layer(a.next);return}if("title"in a.next){j(e.bar.nextEpisode,a.next.title);return}}j(e.bar.nextEpisode,language.next)}},tn=function(){valType(a.next)=="object"&&("click"in a.next&&(valType(a.next.click)=="function"?a.next.click():valType(a.next.click)=="string"&&Je(a.next.click)),"link"in a.next&&(window.location.href=a.next.link),B("next"))},nn=function(){if(!b.loop&&!isUndefined(a.ended)){ft(),e.ended=f.layer(a.ended),e.ended&&e.centerPlay.hide();return}},rn=function(){if(b.smallWindows){if(b.webFull||b.theatre||b.full){ct();return}var t=document.documentElement.scrollTop||document.body.scrollTop;t>b.offset().top+b.getHeight()?C.hasClass("ckplayer-ckplayer-smallwindow")||(C.addClass("ckplayer-ckplayer-smallwindow"),B("smallWindows",!0),wt=!0,a.smallWindowsDrag&&ui(!0),fi(),be()):ct()}},ct=function(){C.hasClass("ckplayer-ckplayer-smallwindow")&&(C.removeClass("ckplayer-ckplayer-smallwindow"),a.smallWindowsDrag&&ui(),B("smallWindows",!1),wt=!1,di(),be())},ui=function(t){var i=M(document),n=0,r=0,s=0,u=0,A=!1;isUndefined(t)||(A=t);var d=function(U){U.preventDefault&&U.preventDefault(),U=U||window.event;var x=Ee(U);s=x.x,u=x.y,i.mousemove(g),i.mouseup(E),C.css({cursor:"move"})},g=function(U){U=U||window.event;var x=Ee(U),D=C.offset();r=x.y-u,n=x.x-s,s=x.x,u=x.y;var V=D.left+n,Y=D.top+r;C.css({left:V+"px",top:Y+"px"}),C.css("position")!="fixed"&&C.css({position:"fixed"}),Et=!0},E=function(){i.removeListener("mousemove",g),i.removeListener("mouseup",E),C.css({cursor:"default"})};A?C.mousedown(d):C.unbind("mousedown")},be=function(){var t=C.getWidth()*pe*.01,i=C.getHeight()*pe*.01,n=oe.getWidth(),r=oe.getHeight();if(oe.css({transform:"rotate("+Ue+"deg)","-ms-transform":"rotate("+Ue+"deg)","-moz-transform":"rotate("+Ue+"deg)","-webkit-transform":"rotate("+Ue+"deg)","-o-transform":"rotate("+Ue+"deg)",width:pe+"%",height:pe+"%"}),Ue!=0&&Ue!=180){if(r>t&&n>i){r/t>n/i?oe.css({height:pe+"%",width:i+"px"}):oe.css({width:pe+"%",height:t+"px"});return}if(r<t&&n<i){t>i?oe.css({height:pe+"%",width:i+"px"}):r/n>=t/i?oe.css({width:pe+"%",height:t+"px"}):oe.css({height:pe+"%",width:i+"px"});return}if(r>=t&&n<=i){oe.css({width:pe+"%",height:t+"px"});return}n>=i&&r<t&&oe.css({height:pe+"%",width:i+"px"})}},di=function(){Dt&&(e.bar.show(),e.topBar.show()),Mt&&e.rightBar.show(),e.tempTime.hide(),isUndefined(e.logo)||e.logo.show()},fi=function(t){isUndefined(t)&&(t=!0),e.bar.hide(),e.topBar.hide(),e.rightBar.hide(),t&&e.tempTime.show(),isUndefined(e.logo)||e.logo.hide()},R=function(t,i){e.message.htm("");var n=function(){e.message.removeClass("ck-message-right").removeClass("ck-animate-bouncein").removeClass("ck-animate"),e.message.hide()};t?(e.message.htm(t),e.message.show(),e.message.hasClass("ck-animate")||e.message.addClass("ck-animate ck-animate-bouncein"),!isUndefined(i)&&i&&(e.message.hasClass("ck-message-right")||e.message.addClass("ck-message-right")),qe&&(clearTimeout(qe),qe=null),qe=setTimeout(function(){n(),qe=null},1500)):n()},j=function(t,i,n,r){e.tip.content.htm(""),i?(e.tip.content.htm(i),e.tip.show(),e.tip.hasClass("ck-animate")||e.tip.addClass("ck-animate ck-animate-bouncein"),isUndefined(r)&&(r="auto"),r=="left"?(e.tip.content.removeClass("ck-content-float-auto").addClass("ck-content-float-left"),e.tip.triangle.removeClass("ck-triangle-auto").addClass("ck-triangle-left")):(e.tip.content.removeClass("ck-content-float-left").addClass("ck-content-float-auto"),e.tip.triangle.removeClass("ck-triangle-left").addClass("ck-triangle-auto")),an(t,n,r),isUndefined(Xe)&&(Xe=function(){Ye&&(clearTimeout(Ye),Ye=null)},gt=function(s){Xe(),Ye=setTimeout(function(){j(),Ye=null},100),s&&s.removeListener("mouseout",gt)}),Xe(),t.mouseout(function(){gt(t)})):(e.tip.hide(),e.tip.removeClass("ck-animate"),e.tip.removeClass("ck-animate-bouncein"))},an=function(t,i,n){var r=t.offset(),s=C.offset(),u=e.tip.getWidth(),A=e.tip.getHeight(),d=t.getWidth(),g=0,E=r.top-s.top-A;ve()>e.bar.getHeight()&&(E-=ve()-e.bar.getHeight()),u>d?g=r.left-s.left-(u-d)*.5:g=r.left-s.left+(d-u)*.5,n=="left"&&(g=r.left-s.left-u,E=r.top-s.top),isUndefined(i)||(g=i.x-s.left-u*.5),g<0&&(g=0),E<0&&(E=0),g>P.getWidth()-u&&(g=P.getWidth()-u),E>P.getHeight()-A&&(E=P.getHeight()-A),e.tip.css({left:g+"px",top:E-parseInt(e.tip.css("margin-bottom"))+"px"})},on=function(){var t=e.bar.pbox.bg,i=e.bar.pbox.play,n=e.bar.pbox.slider,r=e.bar.pbox.mouseLine;n.unbind(),t.unbind();var s=0,u=0,A=M(document),d=0,g=function(H){if(H.preventDefault&&H.preventDefault(),!!a.timeScheduleAdjust){H=H||window.event;var ee=n.offset(),ge=t.offset(),Z=Ee(H);we=!0,ce=!0,u=Z.x;var N=ee.left-ge.left;d=N*T/(t.getWidth()-n.getWidth()),n.removeListener("mousedown",g),n.removeListener("touchstart",g),A.mousemove(E),A.mouseup(U),n.touchmove(E),n.touchend(U),vt(!0)}},E=function(H){H=H||window.event;var ee=n.offset(),ge=t.offset(),Z=Ee(H);we=!0,s=u-Z.x,u=Z.x;var N=ee.left-s-ge.left;N<0&&(N=0),N>t.getWidth()-n.getWidth()&&(N=t.getWidth()-n.getWidth()),e.bar.pbox.addClass("ck-bar-progress-slider-move");var se="";if(a.live)se=mi(N*ht()/(t.getWidth()-n.getWidth()));else{switch(se=N*T/(t.getWidth()-n.getWidth()),a.timeScheduleAdjust){case 2:se<d&&(N=-1e3,R(language.timeScheduleAdjust.prohibitBackOff));break;case 3:if(se>d){N=-1e3,R(language.timeScheduleAdjust.prohibitForward);return}break;case 4:if(se<te){N=-1e3,f.seek(te),R(language.timeScheduleAdjust.prohibitLookBack);return}break;case 5:if(se>$){N=-1e3,f.seek($),R(language.timeScheduleAdjust.prohibitForwardNotViewed);return}break}se=formatSeconds(se)}j(n,se),N>=0?(n.css({left:N+"px"}),i.css({width:N+n.getWidth()*.5+"px"})):we=!1},U=function(){if(vt(),A.removeListener("mousemove",E),A.removeListener("mouseup",U),n.removeListener("touchmove",E),n.removeListener("touchend",U),n.mousedown(g),n.touchstart(g),a.live){var ee=parseInt(a.live+i.getWidth()*ht()/(t.getWidth()-n.getWidth()*.5));B("playback",{time:ee,date:date("Y-m-d H:i:s",ee)}),B("seek",{time:ee,state:"seeking",date:date("Y-m-d H:i:s",ee)})}else{var H=i.getWidth()*T/(t.getWidth()-n.getWidth()*.5);H>T&&(H=T),F=0,f.seek(H)}setTimeout(function(){we||(ce=!1)},800),e.bar.pbox.removeClass("ck-bar-progress-slider-move"),x&&j()},x=!0,D=function(){var H="";a.live?H=language.live:H=formatSeconds(parseInt(n.css("left"))*T/(t.getWidth()-n.getWidth())),x=!1,j(n,H)},V=function(){x=!0};n.mousedown(g),n.mouseover(D),n.mouseleave(V),n.touchstart(g);var Y=function(H){H=H||window.event;var ee=Ee(H),ge=t.offset(),Z=ee.x-ge.left;if(b.full&&(Z+=C.offset().left),a.live){var se=parseInt(a.live+ht()*Z/t.getWidth());B("playback",{time:se,date:date("Y-m-d H:i:s",se)}),B("seek",{time:se,state:"seeking",date:date("Y-m-d H:i:s",se)})}else{var N=T*Z/t.getWidth();switch(a.timeScheduleAdjust){case 0:R(language.timeScheduleAdjust.prohibit);return;case 2:if(N<ue){R(language.timeScheduleAdjust.prohibitBackOff);return}break;case 3:if(N>ue){R(language.timeScheduleAdjust.prohibitForward);return}break;case 4:if(N<te){R(language.timeScheduleAdjust.prohibitLookBack);return}break;case 5:if(N>$){R(language.timeScheduleAdjust.prohibitForwardNotViewed);return}break}F=0,f.seek(N)}Z>t.getWidth()-n.getWidth()*.5&&(Z=t.getWidth()-n.getWidth()*.5),Z<n.getWidth()*.5&&(Z=n.getWidth()*.5),we=!0,i.css({width:Z+"px"}),n.css({left:Z-n.getWidth()*.5+"px"})},X=null,K=function(H){H=H||window.event;var ee=Ee(H),ge=t.offset(),Z=ee.x-ge.left;Q(),b.full&&(Z+=C.offset().left);var N=0;a.live?N=mi(ht()*Z/t.getWidth()):(N=T*Z/t.getWidth(),li(N),N=formatSeconds(N)),j(t,N,ee),r.css({left:Z-e.bar.pbox.mouseLine.getWidth()*.5+"px"})},X=null,Q=function(){X&&(clearTimeout(X),X=null),Xe()},xe=function(H){Q(),X=setTimeout(function(){li(-1)},30)};t.mousedown(Y),t.mousemove(K),t.mouseout(xe),r.mouseover(Q)},sn=function(){var t=e.bar.vbox.volume.box,i=e.bar.vbox.volume.bg,n=e.bar.vbox.volume.pp,r=e.bar.vbox.volume.slider,s=M(document),u=0,A=0,d=function(x){x.preventDefault&&x.preventDefault(),vt(!0),x=x||window.event;var D=Ee(x);A=D.y,r.removeListener("mousedown",d),r.removeListener("touchstart",d),e.bar.vbox.mouseDown=!0,s.mousemove(g),s.mouseup(E),r.touchmove(g),r.touchend(E)},g=function(x){x=x||window.event;var D=Ee(x),V=r.offset(),Y=t.offset(),K=i.offset();u=D.y-A,A=D.y;var X=V.top-Y.top+u,Q=K.top-Y.top,xe=K.top+i.getHeight()-Y.top-r.getHeight();X<Q&&(X=Q),X>xe&&(X=xe),r.css({top:X+"px"});var H=X-Q+r.getHeight()*.5;n.css({"margin-top":H+"px"});var ee=(i.getHeight()-H-r.getHeight()*.5)/(i.getHeight()-r.getHeight());f.volume(ee)},E=function(){vt(),s.removeListener("mousemove",g),s.removeListener("mouseup",E),r.removeListener("touchmove",g),r.removeListener("touchend",E),r.mousedown(d),r.touchstart(d),e.bar.vbox.mouseDown=!1};r.mousedown(d),r.touchstart(d);var U=function(x){x=x||window.event;var D=Ee(x),V=i.offset(),Y=D.y-V.top,K=i.getHeight(),X=1-Y/K;f.volume(X)};i.mousedown(U)},ci=function(t){if(!(valType(a.live)=="boolean"&&a.live)&&!we){var i=e.bar.pbox.bg,n=e.bar.pbox.slider,r=t/T*100;valType(a.live)=="number"&&(r="100"),e.bar.pbox.play.css({width:r+"%"});var s=n.getWidth()/i.getWidth()*100,u=r-s*.5;u<0&&(u=0),u>100-s&&(u=100-s),e.bar.pbox.slider.css({left:u+"%"}),pi()}},pi=function(){var t=e.bar.pbox.bg,i=e.bar.pbox.slider,n=0;e.bar.pbox.css("transition-duration")&&(n=parseFloat(e.bar.pbox.css("transition-duration"))*1e3+20);var r=function(){var s=parseInt(e.bar.pbox.slider.css("left"));s<0&&(s=0,e.bar.pbox.slider.css({left:s+"px"})),s>t.getWidth()-i.getWidth()&&(s=t.getWidth()-i.getWidth(),e.bar.pbox.slider.css({left:s+"px"}))};setTimeout(r,n)},hi=function(){e.topBar.timeEle.htm(date("H:i:s")),setTimeout(hi,1e3)},St=function(t){if(!isUndefined(e.bar.vbox)){var i=e.bar.vbox.volume.box,n=e.bar.vbox.volume.bg,r=e.bar.vbox.volume.pp,s=e.bar.vbox.volume.slider;e.bar.vbox.volume.txt.htm(parseInt(t*100));var u=n.getHeight();if(u){var A=u-t*u;r.css({"margin-top":A+"px"});var d=n.offset().top-i.offset().top+A-s.getHeight()*.5;s.css({top:d+"px"})}}},vi=function(){if(o){var t=o.buffered.length;if(t>0){var i=o.buffered.end(t-1);_<i&&(_=i),Le("loadTime",parseInt(_*100)*.01),e.bar.pbox.load.css("width",_/T*100+"%")}}},ln=function(t){t?(e.bar.vbox.muted.hide(),e.bar.vbox.exitMuted.show(),e.ad.bottom.mutedAndExit.muted.hide(),e.ad.bottom.mutedAndExit.exitMuted.show(),R(language.muted)):(e.bar.vbox.muted.show(),e.bar.vbox.exitMuted.hide(),e.ad.bottom.mutedAndExit.muted.show(),e.ad.bottom.mutedAndExit.exitMuted.hide())},Le=function(t,i){if(isUndefined(e.about.sourceData)&&!isUndefined(e.about.find("ul"))){e.about.sourceData=e.about.find("ul").eq(0).htm(),e.about.objData={};for(var n=/{(.*?)}/g,r=e.about.sourceData.match(n);r=n.exec(e.about.sourceData);)e.about.objData[r[1]]="0"}if(!isUndefined(e.about.find("ul"))){var n=null,s=e.about.sourceData,u=e.about.textareaText;if(e.about.objData){for(var A in e.about.objData)if(t!=A){n=new RegExp("{"+A+"}","g");var d=e.about.objData[A];isUndefined(d)&&(d="0"),s=s.replace(n,d),u=u.replace(n,d)}}return n=new RegExp("{"+t+"}","g"),s=s.replace(n,i||""),u=u.replace(n,i||""),e.about.textareaEle.htm(u),e.about.objData[t]=i,e.about.find("ul").eq(0).htm(s)}},un=function(){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(E){window.setTimeout(E,16.666666666666668)},i,n,r,s,u,A;s=0,u=Date.now();var d=function(){A=Date.now()-u,s+=1,A>=1e3&&(u+=A,g(s),s=0),t(d)},g=function(E){E!=b.fps&&(b.fps=E,Le("fps",E),B("fps",E))};isUndefined(b.fps)&&(b.fps=0),d()},dn=function(t){var i=M(t);if(!isUndefined(i))return valType(i)=="htmlarray"&&(i=i[0]),isUndefined(i.captureParentNode)&&(i.captureParentNode=i.parentNode,i.prevElement=i.prev(),i.nextElement=i.next()),i},M=function(t,i){var n=null;document&&(n=document),isUndefined(i)||(n=i);var r=[];if(t)if(valType(t)=="htmlobject"||valType(t)=="object"){if(r=t,!isUndefined(r.ckplayer))return r}else if(valType(t)=="string"&&t!="")switch(t.substr(0,1)){case".":if(t=t.substr(1,t.length),n.getElementsByClassName){if(r=n.getElementsByClassName(t),!r.length)return null}else if(!n&&document.getElementsByClassName){if(r=document.getElementsByClassName(t),!r.length)return null}else{var A=new RegExp(" "+t+" ","i"),s=null;n.getElementsByTagName?s=n.getElementsByTagName("*"):s=document.getElementsByTagName("*");for(var u=0;u<s.length;u++)A.test(" "+s[u].className+" ")&&r.push(s[u])}r&&r.length===0&&(r=null);break;case"#":t=t.substr(1,t.length),n.getElementById?r=n.getElementById(t):r=document.getElementById(t);break;default:var A=new RegExp(" "+t+" ","i");n.getElementsByTagName?r=n.getElementsByTagName(t):r=document.getElementsByTagName(t),r?t=="body"||t=="document"||t=="html"?r=r[0]:r.length===0&&(r=null):r=null;break}else r=t;else r=document;if(r)if(valType(r)=="htmlobject"||valType(r)=="object"||valType(r)=="document")r.ckplayer="Thanks for using",r.find=function(d){return M(d,this)},r.attr=function(d,g){return isUndefined(g)?this.getAttribute(d):(this.setAttribute(d,g),this)},r.removeAttr=function(d){return this.removeAttribute(d),this},r.css=function(d,g){var E=function(Y){if(Y.indexOf("-")!=-1){var K=Y.split("-"),X=K[0],Q="",xe="";return K.length>1&&(Q=K[1].substr(0,1).toLocaleUpperCase()+K[1].substr(1,K[1].length-1)),K.length>2&&(Q=K[2].substr(0,1).toLocaleUpperCase()+K[2].substr(1,K[2].length-1)),X+Q+xe}return Y};if(isUndefined(g)){if(!isUndefined(d)&&valType(d)=="string")return this.currentStyle?this.currentStyle[d]:document.defaultView.getComputedStyle(this,null)[d];if(isUndefined(d))return this.currentStyle?this.currentStyle:document.defaultView.getComputedStyle(this,null)}if(valType(d)!="object"){var U=E(d);if(this.length>1)for(var x=0;x<this.length;x++)this[x].style[U]=g;else this.style[U]=g}else for(var D in d){var V=E(D);if(valType(this)=="htmlarray")for(var x=0;x<this.length;x++)this[x].style[V]=d[D];else this.style[V]=d[D]}return this},r.hasClass=function(d){if(isUndefined(d))return!1;var g=new RegExp("(\\s|^)"+d+"(\\s|$)");return!!(this.className&&this.className.match(g))},r.addClass=function(d){return this.hasClass(d)||(this.className&&this.className.substr(this.className.length-1,1)!=" "&&(this.className+=" "),this.className+=d),this},r.removeClass=function(d){return this.hasClass(d)&&(this.className=this.className.replace(new RegExp("(\\s|^)"+d+"(\\s|$)")," "),this.className.substr(this.className.length-1,1)==" "&&(this.className=this.className.substr(0,this.className.length-1)),this.className||this.removeAttribute("class")),this},r.searchClass=function(d){for(var g=this.className.split(" "),E=0;E<g.length;E++)if(g[E].substr(0,d.length)==d)return g[E];return this},r.removeCss=function(d){var g=this.attr("style");if(g){for(var E=g.split(";"),U={},x=0;x<E.length;x++){var D=E[x].split(":");D.length==2&&D[0]&&D[0].trim()!=d&&(U[D[0].trim()]=D[1].trim())}this.attr("style",""),this.css(U)}},r.addListener=function(d,g,E){return addListener(this,d,g,E)},r.removeListener=function(d,g,E){return removeListener(this,d,g,E)},r.prev=function(){return prev(this)},r.next=function(){return next(this)},r.append=function(d){return this.appendChild(d),this},r.remove=function(){return isUndefined(this.parentNode)||this.parentNode.removeChild(this),null},r.bind=function(d,g,E){return addListener(this,d,g,E)},r.unbind=function(d,g){var E=0,U=[];if(!isUndefined(g))r.removeListener(d,g);else if(isUndefined(d)){if(!isUndefined(this.listenerList))for(U=this.listenerList,E=0;E<U.length;E++)r.removeListener(U[E][0],U[E][1])}else if(!isUndefined(this.listenerList))for(U=this.listenerList,E=0;E<U.length;E++)U[E][0]==d&&r.removeListener(d,U[E][1])},r.htm=function(d){if(!isUndefined(d))r.innerHTML=d;else return r.innerHTML},r.htmReplace=function(d,g,E){if(!isUndefined(g)&&!isUndefined(d)){isUndefined(this.attr("data-htm"))&&this.attr("data-htm",E);var U=this.attr("data-htm"),x=new RegExp(d,"g");U=U.replace(x,g),this.htm(U)}},r.offset=function(){for(var d=this.offsetParent,g=this.offsetLeft,E=this.offsetTop;d&&d.tagName!=="BODY";)/MSIE 8\.0/.test(navigator.userAgent)||(g+=d.clientLeft,E+=d.clientTop),g+=d.offsetLeft,E+=d.offsetTop,d=d.offsetParent;return{top:E,left:g}},r.fixed=function(){return this.css("position")=="fixed"?!0:isUndefined(this.offsetParent)?!1:M(this.offsetParent).fixed()},r.getWidth=function(){return this.offsetWidth},r.getHeight=function(){return this.offsetHeight},isUndefined(r.width)&&(r.width=function(){return this.offsetWidth}),isUndefined(r.height)&&(r.height=function(){return this.offsetWidth}),r.resize=function(d){addListener(window,"resize",d)},r.click=function(d){return addListener(this,"click",d),this},r.singleClick=function(d){return isUndefined(this.dbClick)&&(gi(this),this.dbClick=!0),this.addListener("sigClick",d),this},r.doubleClick=function(d){return isUndefined(this.dbClick)&&(gi(this),this.dbClick=!0),this.addListener("dobClick",d),this},r.mouseover=function(d){return addListener(this,"mouseover",d),this},r.mouseout=function(d){return addListener(this,"mouseout",d),this},r.mousedown=function(d){return addListener(this,"mousedown",d),this},r.mouseup=function(d){return addListener(this,"mouseup",d),this},r.mousemove=function(d){return addListener(this,"mousemove",d),this},r.mouseWheel=function(d){return addListener(this,"mousewheel",d),addListener(this,"DOMMouseScroll",d,!1),this},r.mouseleave=function(d){return addListener(this,"mouseleave",d),this},r.touchstart=function(d){return addListener(this,"touchstart",d),this},r.touchmove=function(d){return addListener(this,"touchmove",d),this},r.touchend=function(d){return addListener(this,"touchend",d),this},r.show=function(){return this.css("display","block"),this},r.hide=function(){return this.css("display","none"),this},r.animate=function(d,g,E,U){if(isUndefined(this.CK))return r;var x=this,D=this.CK,V=D.getWidth(),Y=D.getHeight(),K=10;if(this.timerTween=null,this.tweenPlay=!0,isUndefined(d))return this;(isUndefined(g)||g==0)&&(g=1e3),(isUndefined(E)||E=="")&&(E="None.easeIn");var X=E.split("."),Q={None:{easeIn:function(l,c,m,y){return m*l/y+c},easeOut:function(l,c,m,y){return m*l/y+c},easeInOut:function(l,c,m,y){return m*l/y+c}},Quadratic:{easeIn:function(l,c,m,y){return m*(l/=y)*l+c},easeOut:function(l,c,m,y){return-m*(l/=y)*(l-2)+c},easeInOut:function(l,c,m,y){return(l/=y/2)<1?m/2*l*l+c:-m/2*(--l*(l-2)-1)+c}},Cubic:{easeIn:function(l,c,m,y){return m*(l/=y)*l*l+c},easeOut:function(l,c,m,y){return m*((l=l/y-1)*l*l+1)+c},easeInOut:function(l,c,m,y){return(l/=y/2)<1?m/2*l*l*l+c:m/2*((l-=2)*l*l+2)+c}},Quartic:{easeIn:function(l,c,m,y){return m*(l/=y)*l*l*l+c},easeOut:function(l,c,m,y){return-m*((l=l/y-1)*l*l*l-1)+c},easeInOut:function(l,c,m,y){return(l/=y/2)<1?m/2*l*l*l*l+c:-m/2*((l-=2)*l*l*l-2)+c}},Quintic:{easeIn:function(l,c,m,y){return m*(l/=y)*l*l*l*l+c},easeOut:function(l,c,m,y){return m*((l=l/y-1)*l*l*l*l+1)+c},easeInOut:function(l,c,m,y){return(l/=y/2)<1?m/2*l*l*l*l*l+c:m/2*((l-=2)*l*l*l*l+2)+c}},Sine:{easeIn:function(l,c,m,y){return-m*Math.cos(l/y*(Math.PI/2))+m+c},easeOut:function(l,c,m,y){return m*Math.sin(l/y*(Math.PI/2))+c},easeInOut:function(l,c,m,y){return-m/2*(Math.cos(Math.PI*l/y)-1)+c}},Exponential:{easeIn:function(l,c,m,y){return l==0?c:m*Math.pow(2,10*(l/y-1))+c},easeOut:function(l,c,m,y){return l==y?c+m:m*(-Math.pow(2,-10*l/y)+1)+c},easeInOut:function(l,c,m,y){return l==0?c:l==y?c+m:(l/=y/2)<1?m/2*Math.pow(2,10*(l-1))+c:m/2*(-Math.pow(2,-10*--l)+2)+c}},Circular:{easeIn:function(l,c,m,y){return-m*(Math.sqrt(1-(l/=y)*l)-1)+c},easeOut:function(l,c,m,y){return m*Math.sqrt(1-(l=l/y-1)*l)+c},easeInOut:function(l,c,m,y){return(l/=y/2)<1?-m/2*(Math.sqrt(1-l*l)-1)+c:m/2*(Math.sqrt(1-(l-=2)*l)+1)+c}},Elastic:{easeIn:function(l,c,m,y,O,ne){if(l==0)return c;if((l/=y)==1)return c+m;if(ne||(ne=y*.3),!O||O<Math.abs(m)){O=m;var Ce=ne/4}else var Ce=ne/(2*Math.PI)*Math.asin(m/O);return-(O*Math.pow(2,10*(l-=1))*Math.sin((l*y-Ce)*(2*Math.PI)/ne))+c},easeOut:function(l,c,m,y,O,ne){if(l==0)return c;if((l/=y)==1)return c+m;if(ne||(ne=y*.3),!O||O<Math.abs(m)){O=m;var Ce=ne/4}else var Ce=ne/(2*Math.PI)*Math.asin(m/O);return O*Math.pow(2,-10*l)*Math.sin((l*y-Ce)*(2*Math.PI)/ne)+m+c},easeInOut:function(l,c,m,y,O,ne){if(l==0)return c;if((l/=y/2)==2)return c+m;if(ne||(ne=y*(.3*1.5)),!O||O<Math.abs(m)){O=m;var Ce=ne/4}else var Ce=ne/(2*Math.PI)*Math.asin(m/O);return l<1?-.5*(O*Math.pow(2,10*(l-=1))*Math.sin((l*y-Ce)*(2*Math.PI)/ne))+c:O*Math.pow(2,-10*(l-=1))*Math.sin((l*y-Ce)*(2*Math.PI)/ne)*.5+m+c}},Back:{easeIn:function(l,c,m,y,O){return O==null&&(O=1.70158),m*(l/=y)*l*((O+1)*l-O)+c},easeOut:function(l,c,m,y,O){return O==null&&(O=1.70158),m*((l=l/y-1)*l*((O+1)*l+O)+1)+c},easeInOut:function(l,c,m,y,O){return O==null&&(O=1.70158),(l/=y/2)<1?m/2*(l*l*(((O*=1.525)+1)*l-O))+c:m/2*((l-=2)*l*(((O*=1.525)+1)*l+O)+2)+c}},Bounce:{easeIn:function(l,c,m,y){return m-Q.Bounce.easeOut(y-l,0,m,y)+c},easeOut:function(l,c,m,y){return(l/=y)<1/2.75?m*(7.5625*l*l)+c:l<2/2.75?m*(7.5625*(l-=1.5/2.75)*l+.75)+c:l<2.5/2.75?m*(7.5625*(l-=2.25/2.75)*l+.9375)+c:m*(7.5625*(l-=2.625/2.75)*l+.984375)+c},easeInOut:function(l,c,m,y){return l<y/2?Q.Bounce.easeIn(l*2,0,m,y)*.5+c:Q.Bounce.easeOut(l*2-y,0,m,y)*.5+m*.5+c}}};if(X.length!=2||!(X[0]in Q)||!(X[1]in Q[X[0]]))return null;var xe=Q[X[0]][X[1]],H=function(l){var c=l[1],m=0,y=0;switch(l[0]){case"width":m=x.getWidth(),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*Y*.01:y=parseInt(c);break;case"height":m=x.getHeight(),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*Y*.01:y=parseInt(c);break;case"left":isUndefined(x.css("left"))?m=x.offset().left-D.offset().left:m=parseInt(x.css("left")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*V*.01:y=parseInt(c),x.css("right","auto");break;case"right":isUndefined(x.css("right"))?m=D.getWidth()-(x.offset().left-D.offset().left+x.getWidth()):m=parseInt(x.css("right")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*V*.01:y=parseInt(c),x.css("left","auto");break;case"top":isUndefined(x.css("top"))?m=x.offset().top-D.offset().top:m=parseInt(x.css("top")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*Y*.01:y=parseInt(c),x.css("bottom","auto");break;case"bottom":isUndefined(x.css("bottom"))?m=D.getHeight()-(x.offset().top-D.offset().top+x.getHeight()):m=parseInt(x.css("bottom")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*Y*.01:y=parseInt(c),x.css("top","auto");break;case"alpha":!isUndefined(x.css("filter"))&&x.css("filter")!="none"?m=Number(x.css("filter"))*100:!isUndefined(x.css("opacity"))&&x.css("opacity")!="none"?m=x.css("opacity")*100:m=100,c.substring(c.length-1,c.length)=="%"?y=parseInt(c):y=c*100;break}return y-=m,m!=y?{type:l[0],current:m,result:y}:null},ee=function(){x.timerTween!=null&&(clearInterval(x.timerTween),x.timerTween=null)};d=d.replace(/[ ]*,[ ]*|[ ]+/g,";");for(var ge=[],Z=d.split(";"),N=0;N<Z.length;N++){var se=Z[N].split(":");if(se.length==2){var yi=H(se);yi&&ge.push(yi)}}var Pt=0,cn=function(){var l={};if(x.tweenPlay)if(Pt<g){Pt+=K;for(var c=0;c<ge.length;c++){var m=ge[c],y=Math.ceil(xe(Pt,m.current,m.result,g));switch(m.type){case"width":l.width=y+"px",l.overflow="hidden";break;case"height":l.height=y+"px",l.overflow="hidden";break;case"left":l.left=y+"px";break;case"right":l.right=y+"px";break;case"top":l.top=y+"px";break;case"bottom":l.bottom=y+"px";break;case"alpha":l.filter="alpha(opacity:"+y*.01+")",l.opacity=y*.01;break}}x.css(l)}else ee(),isUndefined(U)||U(x)};return ee(),this.timerTween=setInterval(cn,K),this},r.animatePlay=function(){return isUndefined(this.timerTween)||(this.tweenPlay=!0),this},r.animatePause=function(){return isUndefined(this.timerTween)||(this.tweenPlay=!1),this};else{r.each=function(d){for(var g in this)if(this.hasOwnProperty(g))if(valType(this[g])=="htmlobject")d(g,this[g]);else try{this[0].nodeName||d(g,this[g])}catch(E){d(g,this[g])}},r.eq=function(d){return valType(this)=="htmlarray"&&this.length>=d+1?this[d]:null};for(var u=0;u<r.length;u++)if(M)try{r[u]=M(r[u])}catch(g){}}return r},w=function(t,i){var n=document.createElement("div"),r=M(n);return t&&r.addClass(t),i&&r.htm(i),r},fn=function(){var t=document.createElement("video"),i=M(t);return i},q=function(t,i){var n=document.createElement("button"),r=M(n);return r.attr("type","button"),t&&r.addClass(t),i&&r.htm(i),r},pt=function(t,i,n){var r=document.createElement("a"),s=M(r);return t&&s.htm(t),!isUndefined(i)&&i&&(s.attr("href",i),s.attr("target","_blank")),n&&s.addClass(n),s},bi=function(t,i){var n=document.createElement("a"),r=M(n);return t&&r.htm(t),!isUndefined(i)&&i?r.attr("href","javascript:"+i+"()"):r.attr("href","javascript:;"),r},et=function(t,i){var n=document.createElement("img"),r=M(n);return i&&(n.className=i),t&&(n.src=t),r},Ee=function(t){var i=t||window.event;isUndefined(i)&&(i={clientX:0,clientY:0});var n=i.clientX+(document.documentElement.scrollLeft||M("body").scrollLeft),r=i.clientY+(document.documentElement.scrollTop||M("body").scrollTop);return(isUndefined(n.toString())||n.toString()=="NaN")&&(n=i.touches[0].clientX),(isUndefined(r.toString())||r.toString()=="NaN")&&(r=i.touches[0].clientY),n.toString()=="NaN"&&(n=0),r.toString()=="NaN"&&(r=0),{x:n,y:r}},ht=function(){var t=Date.now(),i=a.live;return i.toString().length<13&&(i=i*1e3),t-i},mi=function(t){var i=a.live;return i.toString().length<13&&(i=i*1e3),i+=t,language.lookBack+date("H:i:s",i)},tt=function(t,i,n){var r=function(){};if(isUndefined(i)||(r=i),checkJs(t)){r();return}var s=document.createElement("script");s.type="text/javascript";var u=!1,A=null,d=function(){A&&clearInterval(A),!u&&(u=!0,valType(r)=="function"&&r())},g=function(){A=setInterval(function(){try{!isUndefined(s.readyState)&&s.readyState=="complete"&&d()}catch(D){}},10)},E=function(){try{s.parentNode&&s.parentNode.removeChild(s)}catch(D){}},U=function(){removeListener(s,"load",U),removeListener(s,"error",x),d()},x=function(){if(removeListener(s,"load",U),removeListener(s,"error",x),E(),!n&&(!a||a.cdnFallback!==!1)){var D=typeof window!="undefined"&&window.ckplayerPlusCdn?window.ckplayerPlusCdn:ckplayerPlusDefaultCdn,V=String(t).match(/\/(hls\.js|flv\.js|mpegts\.js|language)\/([^/?#]+)(?:[?#].*)?$/i);if(D&&D.indexOf("1.1.9")===-1&&V){D.slice(-1)!=="/"&&(D+="/");var Y=D+V[1]+"/"+V[2];if(Y!==t){tt(Y,i,!0);return}}}};try{addListener(s,"load",U),addListener(s,"error",x)}catch(D){g()}s.src=t,M("head").eq(0).append(s)},gi=function(t){var i=null,n=0;t=M(t),t.click(function(){if(i||(i=setTimeout(function(){try{t.dispatchEvent(new Event("sigClick"))}catch(u){var s=document.createEvent("HTMLEvents");s.initEvent("sigClick",!1,!0),t.dispatchEvent(s)}n=0,i=null},260)),!n)n=new Date().getTime();else if(new Date().getTime()-n<230){try{t.dispatchEvent(new Event("dobClick"))}catch(s){var r=document.createEvent("HTMLEvents");r.initEvent("dobClick",!1,!0),t.dispatchEvent(r)}clearTimeout(i),n=0,i=null}})},vt=function(t){isUndefined(t)&&(t=!1);var i=function(n){n.preventDefault()};t?M("body").addListener("touchmove",i,{passive:!1}):M("body").removeListener("touchmove",i,{passive:!1})};return ot(v)}function ajax(cObj){var callback=null,obj={method:"get",dataType:"json",charset:"utf-8",async:!0,url:"",data:null,success:null,error:null};if(obj=standardization(obj,cObj),!isUndefined(obj.url)){var errorFun=function(v){!isUndefined(obj.error)&&valType(obj.error)=="function"?obj.error(v):obj.success(null)},successFun=function(v){!isUndefined(obj.success)&&valType(obj.success)=="function"&&obj.success(v)},createXHR=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(v){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(p){}}},formatParams=function(v){var p=[];for(var a in v)p.push(encodeURIComponent(a)+"="+encodeURIComponent(v[a]));return p.join("&")};if(valType(cObj)!="object"){isUndefined(obj.error)||obj.error(event);return}if(obj.dataType==="json"||obj.dataType==="text"||obj.dataType==="html"||obj.dataType==="xml"){var xhr=createXHR();if(callback=function(){if(xhr.status===200)if(obj.dataType==="json")try{var jsonData;try{jsonData=JSON.parse(xhr.responseText)}catch(parseErr){jsonData=eval("("+xhr.responseText+")")}successFun(jsonData)}catch(v){successFun(null)}else successFun(xhr.responseText);else errorFun({code:xhr.status,message:xhr.statusText})},obj.data=formatParams(obj.data),obj.method==="get"&&!isUndefined(obj.data)&&obj.data!=""&&(obj.url.indexOf("?")==-1?obj.url+="?"+obj.data:obj.url+="&"+obj.data),obj.async===!0&&addListener(xhr,"readystatechange",function(v){this.readyState===4&&callback!=null&&callback()}),xhr.open(obj.method,obj.url,obj.async),obj.method==="post")try{xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),xhr.setRequestHeader("charset",obj.charset),xhr.send(obj.data)}catch(v){callback()}else try{xhr.send(null)}catch(v){callback()}obj.async===!1&&callback()}else if(obj.dataType==="jsonp"){var oHead=document.getElementsByTagName("head")[0],oScript=document.createElement("script"),callbackName="callback"+new Date().getTime(),params=formatParams(obj.data)+"&callback="+callbackName;oScript.src=obj.url.split("?")+"?"+params,oHead.insertBefore(oScript,oHead.firstChild),window[callbackName]=function(v){!isUndefined(obj.success)&&valType(obj.success)==="function"&&obj.success(v),oHead.removeChild(oScript)}}}}function documentReady(v){var p=!1,a=null,k=function(){a&&clearInterval(a),!p&&(p=!0,valType(v)=="function"&&v())},o=function(){a=setInterval(function(){try{!isUndefined(document.readyState)&&document.readyState=="complete"&&k()}catch(G){}},10)},T=function(){valType(v)=="function"&&v(),removeListener(window,"load",T)};if(!isUndefined(document.body))valType(v)=="function"&&v();else try{addListener(window,"load",T)}catch(G){o()}}function getPath(v){if(typeof window!="undefined"&&window.ckplayerBasePath){var p=window.ckplayerBasePath;if(/\/(?:assets|\.vite\/deps|_next\/static|chunks?)\/?$/i.test(p)&&(p=""),p)return p.slice(-1)!=="/"&&(p+="/"),isUndefined(v)?p:p+v+"/"}for(var a=document.scripts||[],k=a.length?a[a.length-1].src:"",o=0;o<a.length;o++){var T=a[o].getAttribute("name")||a[o].getAttribute("data-name"),G=a[o].src.slice(a[o].src.lastIndexOf("/")+1,a[o].src.lastIndexOf("."));if(T&&(T=="ckplayer"||T=="ckplayer.min"||T=="ckplayer-plus")||a[o].src&&(G=="ckplayer"||G=="ckplayer.min"||G.indexOf("ckplayer")===0)){k=a[o].src;break}}var fe="";return k&&k.lastIndexOf("/js/")>-1?fe=k.substring(0,k.lastIndexOf("/js/")+1):k&&k.lastIndexOf("/")>-1&&(fe=k.substring(0,k.lastIndexOf("/")+1)),isUndefined(v)||(fe+=v+"/"),fe}function checkJs(v){for(var p=document.scripts,a=0;a<p.length;a++)if(p[a].src==v)return p[a];return!1}function getMaxZIndex(){for(var v=document.all||document.querySelectorAll("*"),p=-1,a=0;a<v.length;a++){var k=null;try{k=window.getComputedStyle(v[a],null).zIndex}catch(o){v[a].style&&(k=v[a].style.zIndex)}k!="auto"&&parseInt(k)>p&&(p=parseInt(k))}return p}function getWindowSize(){return{width:window.innerWidth,height:window.innerHeight}}function standardization(v,p){var a={},k;for(k in v)a[k]=v[k];for(k in p)k in a&&(a[k]=p[k]);return a}function mergeObj(v,p){var a={},k;for(k in v)a[k]=v[k];for(k in p)if(k in a)switch(valType(a[k])){case"object":valType(p[k])=="object"&&(a[k]=mergeObj(a[k],p[k]));break;default:valType(a[k])==valType(p[k])&&(a[k]=p[k]);break}return a}function valType(v){if(typeof v=="undefined")return"undefined";var p=Object.prototype.toString.call(v).split(" ")[1].replace("]","").toLowerCase();return p.substr(0,4)=="html"&&(p.substr(-7)=="element"||p.substr(-8)=="document"||p=="window")&&(p="htmlobject"),(p=="htmlcollection"||p=="nodelist")&&(p="htmlarray"),p}function isUndefined(v){try{return valType(v)==="undefined"||v===void 0||v===null||valType(v)==="number"&&isNaN(v)}catch(p){return!0}return!1}function prev(v){var p=v.previousSibling;if(p==null)return null;if(p.nodeType==3){var a=prev(p);if(a&&a.nodeType==1)return a}else return p.nodeType==1?p:!1}function next(v){var p=v.nextSibling;if(p==null)return null;if(p.nodeType==3){var a=next(p);if(a&&a.nodeType==1)return a}else return p.nodeType==1?p:!1}function addListener(v,p,a,k){if(isUndefined(k)&&(k=!1),v.addEventListener)try{v.addEventListener(p,a,k)}catch(o){}else if(v.attachEvent)try{v.attachEvent("on"+p,a)}catch(o){}else v["on"+p]=a;return isUndefined(v.listenerList)&&(v.listenerList=[]),v.listenerList.push([p,a]),v}function removeListener(v,p,a,k){if(isUndefined(k)&&(k=!1),v.removeEventListener)try{v.removeEventListener(p,a,k)}catch(G){}else if(v.detachEvent)try{v.detachEvent("on"+p,a)}catch(G){}else v["on"+p]=null;if(!isUndefined(v.listenerList)){for(var o=[],T=0;T<v.listenerList.length;T++)(v.listenerList[T][0]!=p||v.listenerList[T][1]!=a)&&o.push(v.listenerList[T]);v.listenerList=o}return v}function formatSeconds(v){isUndefined(v)&&(v=0);var p=parseInt(v);isUndefined(p)&&(p=0),p<0&&(p=0);var a=Math.floor(p/3600)<10?"0"+Math.floor(p/3600):Math.floor(p/3600),k=Math.floor(p/60%60)<10?"0"+Math.floor(p/60%60):Math.floor(p/60%60),o=Math.floor(p%60)<10?"0"+Math.floor(p%60):Math.floor(p%60),T="";return a!=="00"&&(T+=a+":"),T+=k+":"+o,T}function date(v,p){isUndefined(p)&&(p=new Date),p.toString().length<13&&(p=p*1e3);var a,k=p?new Date(p):new Date,o=function(L,_){return(L=L+"").length<_?new Array(++_-L.length).join("0")+L:L},T=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],G={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"},fe=["","January","February","March","April","May","June","July","August","September","October","November","December"],W={d:function(){return o(W.j(),2)},D:function(){return W.l().substr(0,3)},j:function(){return k.getDate()},l:function(){return T[W.w()]},N:function(){return W.w()+1},S:function(){return G[W.j()]?G[W.j()]:"th"},w:function(){return k.getDay()},z:function(){return(k-new Date(k.getFullYear()+"/1/1"))/864e5>>0},W:function(){var L=W.z(),_=364+W.L()-L,F,re=(new Date(k.getFullYear()+"/1/1").getDay()||7)-1;return _<=2&&(k.getDay()||7)-1<=2-_?1:L<=2&&re>=4&&L>=6-re?(F=new Date(k.getFullYear()-1+"/12/31"),date("W",Math.round(F.getTime()/1e3))):1+(re<=3?(L+re)/7:(L-(7-re))/7)>>0},F:function(){return fe[W.n()]},m:function(){return o(W.n(),2)},M:function(){return W.F().substr(0,3)},n:function(){return k.getMonth()+1},t:function(){var L;return(L=k.getMonth()+1)==2?28+W.L():L&1&&L<8||!(L&1)&&L>7?31:30},L:function(){var L=W.Y();return!(L&3)&&(L%100||!(L%400))?1:0},Y:function(){return k.getFullYear()},y:function(){return(k.getFullYear()+"").slice(2)},a:function(){return k.getHours()>11?"pm":"am"},A:function(){return W.a().toUpperCase()},B:function(){var L=(k.getTimezoneOffset()+60)*60,_=k.getHours()*3600+k.getMinutes()*60+k.getSeconds()+L,F=Math.floor(_/86.4);return F>1e3&&(F-=1e3),F<0&&(F+=1e3),String(F).length==1&&(F="00"+F),String(F).length==2&&(F="0"+F),F},g:function(){return k.getHours()%12||12},G:function(){return k.getHours()},h:function(){return o(W.g(),2)},H:function(){return o(k.getHours(),2)},i:function(){return o(k.getMinutes(),2)},s:function(){return o(k.getSeconds(),2)},O:function(){var L=o(Math.abs(k.getTimezoneOffset()/60*100),4);return k.getTimezoneOffset()>0?L="-"+L:L="+"+L,L},P:function(){var L=W.O();return L.substr(0,3)+":"+L.substr(3,2)},c:function(){return W.Y()+"-"+W.m()+"-"+W.d()+"T"+W.h()+":"+W.i()+":"+W.s()+W.P()},U:function(){return Math.round(k.getTime()/1e3)}};return v.replace(/([a-zA-Z])/g,function(L,_){var F="";return L!=_?F=_:W[_]?F=W[_]():F=_,F})}function dataURLtoBlob(v){for(var p=v.split(","),a=p[0].match(/:(.*?);/)[1],k=atob(p[1]),o=k.length,T=new Uint8Array(o);o--;)T[o]=k.charCodeAt(o);return new Blob([T],{type:a})}function decodeURIString(v){for(var p in v){if(valType(v[p])=="string"&&v[p])try{v[p]=decodeURI(v[p])}catch(a){}valType(v[p])=="object"&&(v[p]=decodeURIString(v[p]))}return v}function getApp(){var v=navigator.userAgent.toLowerCase();if(v.indexOf("iphone")>-1)return"iphone"}function cookie(v,p,a,k){isUndefined(a)&&(a=""),isUndefined(k)&&(k="/");var o=";domain="+a+";path="+k;location.protocol=="https"&&(o+=";SameSite=None;Secure=true");var T=function(W,L){var _=31104e6,F=new Date;F.setTime(F.getTime()+_);try{document.cookie=W+"="+escape(L)+";expires="+F.toGMTString()+o}catch(re){console.error(re)}},G=function(W){var L,_=new RegExp("(^| )"+W+"=([^;]*)(;|$)");return(L=document.cookie.match(_))?unescape(L[2]):null},fe=function(W){var L=new Date;L.setTime(L.getTime()-1);var _=G(W);_!=null&&(document.cookie=W+"="+_+";expires="+L.toGMTString()+o)};if(!isUndefined(v)&&!isUndefined(p))return p=="delete"?(fe(v),null):(T(v,p),G(v));if(!isUndefined(v)&&isUndefined(p))return G(v);isUndefined(v)}function arrayToString(v){var p="";if(!isUndefined(v))for(var a=0;a<v.length;a++){var k=v[a];a>0&&(p+=",");for(var o=0;o<k.length;o++)o>0&&(p+=";"),valType(k[o])=="number"?p+=parseInt(k[o]*100):p+=k[o]}return p}function stringToArray(v){var p=[];if(!isUndefined(v))for(var a=v.split(","),k=0;k<a.length;k++){var o=a[k].split(";");o[1]=parseInt(o[1])*.01,o[2]=parseInt(o[2])*.01,p.push(o)}return p}function documentHidden(v){isUndefined(document.visibilityState)||(v(document.visibilityState==="visible"?"show":"hidden"),addListener(document,"visibilitychange",function(){v(document.visibilityState==="visible"?"show":"hidden")}))}return ckplayerEmbed});
|