!function(e,t,n){var i=e.jQuery||e.$,a={ie:!!("ActiveXObject"in e&&/(msie |Trident\/.*rv:)(\d*)/i.test(navigator.userAgent))&&RegExp.$2,firefox:/Firefox/i.test(navigator.userAgent),init:function(){var e=navigator.userAgent;a.browser=function(){var t="";return t=a.ie?"ie"+a.ie:/Chrome/i.test(e)?"chrome":/Opera/i.test(e)?"opera":/FireFox/i.test(e)?"firefox":"other"}(),a.system=function(){var t="";return t=/Windows NT 10.0/.test(e)?"windows 10":/Windows NT 5.1/.test(e)?"windows xp":/Windows NT 6.1/.test(e)?"windows 7":/Windows NT 6.2/.test(e)?"windows 8":/Windows NT 6.0/.test(e)?"windows vista":/Windows NT 5.2/.test(e)?"windows 2003":/Mac OS/.test(e)?"mac":/Linux/.test(e)?"linux":"other"}()}},r={localStorage:{cache:{},removeItem:function(t){var n=this;t in n.cache&&delete n.cache[t];try{var i=e.localStorage;i.rmoveItem(t)}catch(a){}},setItem:function(t,n){var i=this;i.cache[t]=n;try{var a=e.localStorage;a&&a.setItem(t,n)}catch(r){"QuotaExceededError"===r.name&&i.clear()}},getItem:function(t){var n,i=this;try{var a=e.localStorage;n=a?e.localStorage.getItem(t):i.cache[t]}catch(r){n=i.cache[t]}return n},clear:function(){try{var t=e.localStorage;t&&t.clear()}catch(n){}}},domain:function(){return"yy.duowan.com"==e.location.hostname?"//yy.duowan.com":"//www.yy.com"}(),UA:a,formator:function(e){return parseInt(e,10).toLocaleString(n,{minimumFractionDigits:2,maximumFractionDigits:2}).replace(/\.00$/,"")||0},dateFormator:function(e,t){function n(e){return e.toString().length<2?"0"+e:e}return t.replace(/%([a-zA-Z])/g,function(t,i){switch(i){case"Y":return e.getFullYear();case"M":return n(e.getMonth()+1);case"d":return n(e.getDate());case"H":return n(e.getHours());case"m":return n(e.getMinutes());case"s":return n(e.getSeconds());default:throw new Error("Unsupported format code: "+i)}})},isPropTruthy:function(e){return function(t){return t[e]}},transfromPropName:function(e,t){return function(n){if(n[e]){var i=Object.assign({},n);return i[t]=i[e],delete i[e],i}}},escape:function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})},escapeToNull:function(e){return String(e).replace(/[<>"'`?\/]/g,"")},isElementAppearInParentView:function(t,n){n=n||e;var i={top:0,right:e.innerWidth,bottom:e.innerHeight,left:0,height:e.innerHeight,width:e.innerWidth},a=r.getRelativeRect(t,n),o=n===e?i:n.getBoundingClientRect(),s=o.height||o.bottom-o.top,l=parent.width||o.right-o.left;return a.top<=s&&a.left<=l},getRectWidth:function(e){var t=e.getBoundingClientRect();return t.width||t.right-t.left},getRelativeRect:function(t,n){n=n||e;var i={top:0,right:e.innerWidth,bottom:e.innerHeight,left:0,height:e.innerHeight,width:e.innerWidth},a=t.getBoundingClientRect(),r=n===e?i:n.getBoundingClientRect();return{top:a.top-r.top,right:a.right-r.right,bottom:a.bottom-r.bottom,left:a.left-r.left}},unsign:function(e){return e<0?0:e},filterByProperty:function(e,t,n){return e.filter(function(e){return e[t]===n})},activateLazyImage:function(t,n){var a={placeholder:"",failure_limit:1/0,load:function(){i(this).css("visibility","visible")}};t=i.extend({},a,t),i(".lazy").lazyload(t),n||i(e).trigger("resize")},scrollTo:function(e,t){return t="undefined"!=typeof t?t:400,new Promise(function(n){i("html, body").stop().animate({scrollTop:i(e).offset().top-i(".w-head__main").height()},t,n)})},scrollTop:function(e){return e="undefined"!=typeof e?e:400,new Promise(function(t){i("html, body").stop().animate({scrollTop:0},e,t)})},injectCSS:function(e,t){t&&i('").appendTo("head")},replaceCSS:function(e,t){t&&(i("#"+e).remove(),r.injectCSS(e,t))},touchCSS:function(e,n){var i=t.getElementById(e);return i?void r.replaceCSS(e,n):void r.injectCSS(e,n)},getParameterByName:function(t,n){n||(n=e.location.href),t=t.replace(/[[\]]/g,"\\$&");var i=new RegExp("[?&]"+t+"(=([^]*)|&|#|$)"),a=i.exec(n);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null},fill:function(e,t,i,a){if(!Array.isArray(e))throw new TypeError("array is not a Array");var r=e.length;i=parseInt(i,10)||0,a=a===n?r:parseInt(a,10)||0;var o,s;for(o=i<0?Math.max(r+i,0):Math.min(i,r),s=a<0?Math.max(r+a,0):Math.min(a,r);o=t?e:[].concat(e,r.fill(Array(t),n).slice(0,t-e.length))},flash:{init:function(e,t){var n={wmode:"opaque",width:300,height:300,flashvars:"",flashUrl:"",fullscreen:!1,bgcolor:"#000000"};if("object"==typeof t){if("undefined"!=typeof t.wmode){switch(t.wmode.toLowerCase()){case"opaque":n.wmode="opaque";break;case"window":n.wmode="window";break;case"transparent":n.wmode="transparent"}n.wmode=t.wmode}"undefined"!=typeof t.width&&(n.width=t.width),"undefined"!=typeof t.height&&(n.height=t.height),"undefined"!=typeof t.flashvars&&(n.flashvars=t.flashvars),"undefined"!=typeof t.flashUrl&&(n.flashUrl=t.flashUrl),"undefined"!=typeof t.fullscreen&&(n.fullscreen=t.fullscreen),"undefined"!=typeof t.bgcolor&&(n.bgcolor=t.bgcolor)}if(""!==n.flashUrl){var i=['"].join("");return i.replace(/\{if ie\}(.*?)\{endif ie\}/g,~navigator.appName.indexOf("Microsoft")?"$1":"").replace(/\{\$name\}/g,e).replace(/\{\$width\}/g,n.width).replace(/\{\$height\}/g,n.height).replace(/\{\$flashUrl\}/g,n.flashUrl).replace(/\{\$flashvars\}/g,n.flashvars).replace(/\{\$wmode\}/g,n.wmode).replace(/\{\$bgcolor\}/g,n.bgcolor).replace(/\{\$fullscreen\}/g,n.fullscreen)}},write:function(e,n){var i=this.init(e,n);i&&t.write(i)},add:function(e,t,n){var i=this.init(t,n);e&&i&&(e.innerHTML=i)},ctrl:function(e){try{var n=t.getElementById(e);return r.UA.ie?"object"==n.tagName.toLowerCase()?n:"":"embed"==n.tagName.toLowerCase()?n:n.getElementsByTagName("embed")[0]}catch(i){console.warn(e)}}},Promise:function(e){var t=this;return t.queue=[],t.current=0,t.isResolved=!1,t.then=function(e){return"function"==typeof e&&t.queue.push(e),t},t.start=function(){var e=Array.prototype.slice.call(arguments);return t.resolve.apply(t,e),t},t.resolve=function(){var e=Array.prototype.slice.call(arguments);e.push(t.resolve),t.current&&e.push(t.queue[t.current-1]),t.current!=t.queue.length&&t.queue[t.current++].apply(t,e)},e&&t.then(e),t},type:function(e){var t,n=Object.prototype.toString;return null===e?t=String(e):(t=n.call(e).toLowerCase(),t=t.substring(8,t.length-1)),t},isPlainObject:function(e){var t,i=this,a=Object.prototype.hasOwnProperty;if(!e||"object"!==i.type(e))return!1;if(e.constructor&&!a.call(e,"constructor")&&!a.call(e.constructor.prototype,"isPrototypeOf"))return!1;for(t in e);return t===n||a.call(e,t)},extend:function(){var e,t,i,a,r,o,s=this,l=arguments[0]||{},c=1,d=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},c=2),"object"!=typeof l&&"function"!==s.type(l)&&(l={}),d===c&&(l=this,--c);c=1?parseInt(d)+"年前":u>=1?parseInt(u)+"个月前":f>=1?parseInt(f)+"周前":p>=1?parseInt(p)+"天前":h>=1?parseInt(h)+"个小时前":m>=1?parseInt(m)+"分钟前":"刚刚"},getUrlParams:function(){var t=e.location.search;t=t.substr(1);var n={};if(""===t)return n;for(var i=t.split("&"),a=0,r=i.length;a0&&(e=(+e).toFixed(t)),n=e.toString().split("."),n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),n.join(".")},request:{search:function(e){var t=location.search.replace(/[? ]/g,"");if(""===t)return null;for(var n=t.split("&"),i=0,a=n.length;i1&&o&&("undefined"!=typeof i?i(e).on(r,o):e.addEventListener?e.addEventListener(r,o,!1):e.attachEvent?e.attachEvent("on"+r,function(){o.call(e)}):e["on"+r]=o)};if(o){r=o.split(",");for(var l=0,c=r.length;l":">",'"':""","'":"'","&":"&"};return"string"!=typeof e?e:e.replace(/[<>"'&]/g,function(e){return t[e]})},htmlDecode:function(e){var n=t.createElement("span");return n.innerHTML=e,n.innerText},convertHttps:function(e){if("string"==typeof e){var t=e.replace(/http:/g,""),n=/^\/\/s[45]\.yy\.com/;return n.test(t)&&(t=t.replace(n,"//s1.yy.com")),t}return e},cookies:{get:function(n){try{var i=t.cookie.match(new RegExp("(^| )"+n+"=([^;]*)(;|$)"))}catch(a){}return null!==i?e.unescape(i[2]):null},set:function(n,i,a,r,o,s){a||(a=24);var l=new Date;l.setTime(l.getTime()+60*a*60*1e3),t.cookie=n+"="+e.escape(i)+";expires="+l.toGMTString()+(o?";domain="+o:"")+(r?";path="+r:"")+(s===!0?";secure":"")},getWithDecode:function(n){var i=t.cookie.match(new RegExp("(^| )"+n+"=([^;]*)(;|$)"));return null!==i?e.decodeURI(i[2]):null},setWithEncode:function(n,i,a,r,o,s){a||(a=24);var l=new Date;l.setTime(l.getTime()+60*a*60*1e3),t.cookie=n+"="+e.encodeURI(i)+";expires="+l.toGMTString()+(o?";domain="+o:"")+(r?";path="+r:"")+(s===!0?";secure":"")},del:function(e){var n=new Date;n.setTime(n.getTime()-6e4);var i=this.get(e);null!==i&&(t.cookie=e+"="+i+";expires="+n.toGMTString())},erase:function(e,n,i){r.cookies.get(e)&&(t.cookie=e+"="+(n?";path="+n:"")+(i?";domain="+i:"")+";expires=Thu, 01 Jan 1970 00:00:01 GMT")},keys:function(){return t.cookie?t.cookie.split(";").map(function(e){return e.split("=")[0].trim()}):[]}},JSON:e.JSON,getCssProperty:function(e){for(var n=e.substr(0,1),i=e.substr(1),a=n.toUpperCase()+i,r=n.toLowerCase()+i,o=[r,"Webkit"+a,"Moz"+a,"O"+a,"-ms-"+a,"ms"+a],s=t.documentElement.style,l=0,c=o.length;lt?(o&&(clearTimeout(o),o=null),s=c,r=e.apply(i,a),o||(i=a=null)):o||n.trailing===!1||(o=setTimeout(l,d)),r}},flattenProperty:function(e,t){var n=null;for(var i in e[t]){if(e[i])throw new Error("["+i+"] already exists in component!");n=e[t][i].bind(e),e[t][i]=n,e[i]=n}},textCutOff:function(e,t){var n="",i=function(e){for(var t=0,n=/[\u4e00-\u9fa5]/,i=/[\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3008|\u3009|\u3010|\u3011|\u300e|\u300f|\u300c|\u300d|\ufe43|\ufe44|\u3014|\u3015|\u2026|\u2014|\uff5e|\ufe4f|\uffe5]/,a=e.length-1;a>=0;a--)t+=n.test(e[a])||i.test(e[a])?1:.5;return t},a=i(e);return n=a<=t?e:e.substr(0,t-1)+"..."},countDown:function(e){var t,n,a,r,o={time:1e3,totalTime:0,cb:null};a=i.extend({},o,e),a.totalTime%a.time&&(a.totalTime=Math.floor(a.totalTime/a.time)*a.time+a.time),r={currentT:a.time||0,totalTime:a.totalTime-a.time||0};var s=function(){t=setTimeout(function(){r.totalTime>=0?(a.cb(r),r.totalTime-=a.time,r.currentT+=a.time,s()):clearTimeout(t)},a.time)};return n={start:function(){t&&clearTimeout(t),s()},pause:function(){t&&clearTimeout(t)},stop:function(){t&&clearTimeout(t),r.currentT=0},destory:function(){t&&clearTimeout(t),t=null,r.currentT=0}}}};"undefined"!=typeof define&&define.amd&&define("util",[],function(){return r}),e.util=r}(window,document),function(e,t,n,i){var a=e(t);e.fn.lazyload=function(n){function r(){var t=0;s.each(function(){var n=e(this);if(!l.skip_invisible||"none"!==n.css("display"))if(e.abovethetop(this,l)||e.leftofbegin(this,l));else if(e.belowthefold(this,l)||e.rightoffold(this,l)){if(++t>l.failure_limit)return!1}else n.trigger("appear"),t=0})}var o,s=this,l={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!0,appear:null,load:null,immediate:!1,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return n&&(i!==n.failurelimit&&(n.failure_limit=n.failurelimit,delete n.failurelimit),i!==n.effectspeed&&(n.effect_speed=n.effectspeed,delete n.effectspeed),e.extend(l,n)),o=l.container===i||l.container===t?a:e(l.container),0===l.event.indexOf("scroll")&&o.on(l.event,function(e){return r()}),this.each(function(){var t=this,n=e(t);t.loaded=!1,(n.attr("src")===i||!1===n.attr("src")||""===n.attr("src"))&&n.is("img")&&n.attr("src",l.placeholder),n.one("appear",function(){if(!this.loaded){if(l.appear){var i=s.length;l.appear.call(t,i,l)}e("").on("load",function(){var i=n.attr("data-"+l.data_attribute)||"";i=i.replace("s5.yy.com","s3.yy.com").replace("s4.yy.com","s3.yy.com"),n.hide(),n.is("img")?n.attr("src",i.replace(/http:/,"")):n.css("background-image","url('"+(i?i.replace(/http:/,""):i)+"')"),n[l.effect](l.effect_speed),t.loaded=!0;var a=e.grep(s,function(e){return!e.loaded});if(s=e(a),l.load){var r=s.length;l.load.call(t,r,l)}}).attr("src",n.data(l.data_attribute)?n.data(l.data_attribute).replace(/http:/,"").replace("s5.yy.com","s3.yy.com").replace("s4.yy.com","s3.yy.com"):n.data(l.data_attribute))}}),0!==l.event.indexOf("scroll")&&n.on(l.event,function(e){t.loaded||n.trigger("appear")})}),a.on("resize",function(e){r()}),/iphone|ipod|ipad.*os 5/gi.test(navigator.appVersion)&&a.on("pageshow",function(t){t=t.originalEvent||t,t.persisted&&s.each(function(){e(this).trigger("appear")})}),e(t).on("load",function(){r()}),l.immediate&&r(),this},e.belowthefold=function(n,r){var o;return o=r.container===i||r.container===t?a.height()+a[0].scrollY:e(r.container).offset().top+e(r.container).height(),o<=e(n).offset().top-r.threshold},e.rightoffold=function(n,r){var o;return o=r.container===i||r.container===t?a.width()+a[0].scrollX:e(r.container).offset().left+e(r.container).width(),o<=e(n).offset().left-r.threshold},e.abovethetop=function(n,r){var o;return o=r.container===i||r.container===t?a[0].scrollY:e(r.container).offset().top,o>=(e(n)?e(n).offset().top:0)+r.threshold+e(n).height()},e.leftofbegin=function(n,r){var o;return o=r.container===i||r.container===t?a[0].scrollX:e(r.container).offset().left,o>=e(n).offset().left+r.threshold+e(n).width()},e.inviewport=function(t,n){return!(e.rightoffold(t,n)||e.leftofbegin(t,n)||e.belowthefold(t,n)||e.abovethetop(t,n))},e.extend(e.fn,{"below-the-fold":function(t){return e.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return e.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!e.rightoffold(t,{threshold:0})},"in-viewport":function(t){return e.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return e.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!e.rightoffold(t,{threshold:0})}})}($,window,document),define("lazyload",function(){}),define("playerUtil",["util"],function(e){var t={},n={},i={web2player:void 0,w2any:void 0,queueFunction:function(){var t=e.makeArray(arguments),n=t.shift();$(n).each(function(n,i){try{"function"==typeof i&&i.apply(i,t)}catch(a){e.trace.error(a)}})},removeEventListener:function(e,n){var i=e+"s",a=t[i];if(a&&!(a.length<1)){var r=t[i].indexOf(n);r!==-1&&t[i].splice(r,1)}},setEventListener:function(a){var r=this;return r.web2player?r.w2any?(a.attribute&&(r.web2player[a.attribute]=function(e){n[a.attribute+"data"]?e(n[a.attribute+"data"]):n[a.attribute+"data"]===!1&&e();var i=a.attribute+"s";t[i]||(t[i]=[]),"function"==typeof e&&(t[i].push(e),void 0!==n[a.attribute]&&e(n[a.attribute]))}),void(a.listener&&("string"==typeof a.listener?r.w2any.setEventListener(a.listener,function(o){var s=/onPubBulletData|getChannelOnlineCountCallback/.test(a.listener);if(!a.attribute){var l=a.callback&&a.callback(o);return s||("flash"===r.w2any.type?e.trace.flash("<=",a.listener,o,"return:",l):e.trace.h5("<=",a.listener,o,"return:",l)),l}s||("flash"===r.w2any.type?e.trace.flash("<=",a.listener,o):e.trace.h5("<=",a.listener,o)),new e.Promise(function(t){var n=e.getVarByString(r.w2any.midware,a.listener);n?n(o,t):t(o)}).then(function(e,t){a.callback?a.callback(e,t):t(e)}).then(function(e){if(a.attribute){var r=Array.prototype.slice.call(arguments),o=a.attribute+"s";r.pop(),n[a.attribute+"data"]=e||!1,i.queueFunction.apply(i,[t[o]].concat(r))}}).start()}):a.listener.callback=function(n){new e.Promise(function(e){a.callback?a.callback(n,e):e(n)}).then(function(){if(a.attribute){var e=Array.prototype.slice.call(arguments),n=a.attribute+"s";e.pop(),i.queueFunction.apply(i,[t[n]].concat(e))}}).start()}))):e.trace.error("she.w2any is not defined"):e.trace.error("she.web2player is not defined")},trace:e.trace};return i}),define("web2playerIndex",["util","playerUtil"],function(e,t){var n=window.YYPlayer,i={isReady:!1,callAsHolds:[],onHolds:[]},a={CRASH_STAT:"http://statistics.yy.com/statistics/StatisticsAction.json?uri={$stat}&value={$val}"},r={type:1===n.getType()?"h5":"flash",api:null,midware:{window:{},w2f:{}},listener:{},setEventListener:function(e,t){var n=e.replace(/\./g,"_");return r.listener[n]||(r.listener[n]=[]),r.listener[n].push(t),o.bind(e,t)},trigger:function(t,n){var i=t.replace(/\./g,"_");r.listener[i]&&r.listener[i].forEach(function(e){return e&&e(n)}),e.trace.info("w2any.trigger(",t,",",n,")")}},o={playerType:r.type,build:function(e){var t=this;n(function(n){r.api=n,r.api.call("player.config",{sid:e.sid,ssid:e.ssid,allowDBLFullscreen:!1}),r.api.call("player.boot",e.player),o.ctrl={callAs:function(e,n){return t.callAs(e,n)},registerCallBack:function(e,t){n.call(e,t)}};var a;if(i.callAsHolds.length)for(;i.callAsHolds.length;)a=i.callAsHolds.shift(),a.length&&n.call(a[0],a[1]);if(i.onHolds.length)for(;i.onHolds.length;)a=i.onHolds.shift(),a.length&&o.bind(a[0],a[1]);"h5"!==o.playerType||i.isReady||r.trigger("w2f.onReady",!0)})},bind:function(t,n){return r.api?(e.trace.info("web2player.bind:",t),r.api.on(t,function(e){n(e.data)})):(e.trace.warn("web2player.on noready hold it:",t),void i.onHolds.push([t,n]))},init:function(t,n){e.trace.web("web2player.init",t);var i=/^on/g;for(var a in t)t.hasOwnProperty(a)&&a.match(i)&&o[a]&&o[a](t[a]);return n&&n()},callAs:function(t,n){return r.api?(e.trace["flash"===o.playerType?"flash":"h5"]("api callAs",t,n),r.api.call(t,n)):(e.trace.warn("web2player.callAs noready hold it:",t,n),void i.callAsHolds.push([t,n]))},resize:function(e,t){this.callAs("resizeVideo",{width:e,height:t})},initPlayer:function(e){this.callAs("player.reset",e.sid),this.callAs("home.switchRoom",e)},w2any:r};return t.web2player=o,t.w2any=r,t.setEventListener({attribute:"onReady",listener:"player.ready",callback:function(t,n){if(i.isReady)return void e.trace.warn("w2f.onReady is already run, break it");if(i.isReady=!0,"flash"===r.type&&(clearInterval(i.crashKey),i.crashKey=setInterval(function(){try{r.ctrl.callAs("heartbeat")}catch(t){clearInterval(i.crashKey),e.trace.error("sorry, the flash has crashed"),(new Image).src=a.CRASH_STAT.replace("{$stat}",i.crashStat).replace("{$val}",2)}},5e3)),i.callAsHolds.length)for(var s;i.callAsHolds.length;)s=i.callAsHolds.shift(),s.length&&o.callAs(s[0],s[1]);n(t)}}),t.setEventListener({attribute:"onStatusChange",listener:"home.onStatusChange",callback:function(t,n){return"stop"==t.type&&(t.type="end"),t.type==i.status?e.trace.warn("w2f.onStatusChange status is same, no callback",t.type):i.isBan&&"end"==t.type?e.trace.warn("w2f.onStatusChange end not work, because video has baned",t.type):(i.initComplete&&!i.isReady&&(e.trace.warn("w2f.onReady is delate, calling by js now"),window.w2f.onReady(void 0,!0)),i.status=t.type,clearTimeout(i.statusChangeDelayKey),void("end"==t.type?(e.trace.warn("w2f.onStatusChange end not work, cause maybe it just before videostart, delay 2s"),i.statusChangeDelayKey=setTimeout(function(){n(t.type)},3e3)):n(t.type)))}}),t.setEventListener({attribute:"onEnterLiveRoom",listener:"home.enterRoom",callback:function(e,t){t(e)}}),t.setEventListener({attribute:"onclickplayerLogMsg",listener:"home.feedback",callback:function(e,t){t(e)}}),~location.href.indexOf("debug")&&(window.web2player=o),o}),!function(){function e(e){return e.replace(b,"").replace(w,",").replace(_,"").replace(T,"").replace(x,"").split(A)}function t(e){return"'"+e.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n")+"'"}function n(n,i){function a(e){return f+=e.split(/\n/).length-1,d&&(e=e.replace(/\s+/g," ").replace(//g,"")),e&&(e=y[1]+t(e)+y[2]+"\n"),e}function r(t){var n=f;if(c?t=c(t,i):o&&(t=t.replace(/\n/g,function(){return f++,"$line="+f+";"})),0===t.indexOf("=")){var a=u&&!/^=[=#]/.test(t);if(t=t.replace(/^=[=#]?|[\s;]*$/g,""),a){var r=t.replace(/\s*\([^\)]+\)/,"");p[r]||/^(include|print)$/.test(r)||(t="$escape("+t+")")}else t="$string("+t+")";t=y[1]+t+y[2]}return o&&(t="$line="+n+";"+t),g(e(t),function(e){if(e&&!m[e]){var t;t="print"===e?w:"include"===e?_:p[e]?"$utils."+e:h[e]?"$helpers."+e:"$data."+e,T+=e+"="+t+",",m[e]=!0}}),t+"\n"}var o=i.debug,s=i.openTag,l=i.closeTag,c=i.parser,d=i.compress,u=i.escape,f=1,m={$data:1,$filename:1,$utils:1,$helpers:1,$out:1,$line:1},v="".trim,y=v?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],b=v?"$out+=text;return $out;":"$out.push(text);",w="function(){var text=''.concat.apply('',arguments);"+b+"}",_="function(filename,data){data=data||$data;var text=$utils.$include(filename,data,$filename);"+b+"}",T="'use strict';var $utils=this,$helpers=$utils.$helpers,"+(o?"$line=0,":""),x=y[0],A="return new String("+y[3]+");";g(n.split(s),function(e){e=e.split(l);var t=e[0],n=e[1];1===e.length?x+=a(t):(x+=r(t),n&&(x+=a(n)))});var I=T+x+A;o&&(I="try{"+I+"}catch(e){throw {filename:$filename,name:'Render Error',message:e.message,line:$line,source:"+t(n)+".split(/\\n/)[$line-1].replace(/^\\s+/,'')};}");try{var S=new Function("$data","$filename",I);return S.prototype=p,S}catch(k){throw k.temp="function anonymous($data,$filename) {"+I+"}",k}}var i=function(e,t){return"string"==typeof t?v(t,{filename:e}):o(e,t)};i.version="3.0.0",i.config=function(e,t){a[e]=t};var a=i.defaults={openTag:"<%",closeTag:"%>",escape:!0,cache:!0,compress:!1,parser:null},r=i.cache={};i.render=function(e,t){return v(e,t)};var o=i.renderFile=function(e,t){var n=i.get(e)||m({filename:e,name:"Render Error",message:"Template not found"});return t?n(t):n};i.get=function(e){var t;if(r[e])t=r[e];else if("object"==typeof document){var n=document.getElementById(e);if(n){var i=(n.value||n.innerHTML).replace(/^\s*|\s*$/g,"");t=v(i,{filename:e})}}return t};var s=function(e,t){return"string"!=typeof e&&(t=typeof e,"number"===t?e+="":e="function"===t?s(e.call(e)):""),e},l={"<":"<",">":">",'"':""","'":"'","&":"&"},c=function(e){return l[e]},d=function(e){return s(e).replace(/&(?![\w#]+;)|[<>"']/g,c)},u=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},f=function(e,t){var n,i;if(u(e))for(n=0,i=e.length;i>n;n++)t.call(e,e[n],n,e);else for(n in e)t.call(e,e[n],n)},p=i.utils={$helpers:{},$include:o,$string:s,$escape:d,$each:f};i.helper=function(e,t){h[e]=t};var h=i.helpers=p.$helpers;i.onerror=function(e){var t="Template Error\n\n";for(var n in e)t+="<"+n+">\n"+e[n]+"\n\n";"object"==typeof console&&console.error(t)};var m=function(e){return i.onerror(e),function(){return"{Template Error}"}},v=i.compile=function(e,t){function i(n){try{return new l(n,s)+""}catch(i){return t.debug?m(i)():(t.debug=!0,v(e,t)(n))}}t=t||{};for(var o in a)void 0===t[o]&&(t[o]=a[o]);var s=t.filename;try{var l=n(e,t)}catch(c){return c.filename=s||"anonymous",c.name="Syntax Error",m(c)}return i.prototype=l.prototype,i.toString=function(){return l.toString()},s&&t.cache&&(r[s]=i),i},g=p.$each,y="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",b=/\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|\s*\.\s*[$\w\.]+/g,w=/[^\w$]+/g,_=new RegExp(["\\b"+y.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),T=/^\d[^,]*|,\d[^,]*/g,x=/^,+|,+$/g,A=/^$|,+/;a.openTag="{{",a.closeTag="}}";var I=function(e,t){var n=t.split(":"),i=n.shift(),a=n.join(":")||"";return a&&(a=", "+a),"$helpers."+i+"("+e+a+")"};a.parser=function(e){e=e.replace(/^\s/,"");var t=e.split(" "),n=t.shift(),a=t.join(" ");switch(n){case"if":e="if("+a+"){";break;case"else":t="if"===t.shift()?" if("+t.join(" ")+")":"",e="}else"+t+"{";break;case"/if":e="}";break;case"each":var r=t[0]||"$data",o=t[1]||"as",s=t[2]||"$value",l=t[3]||"$index",c=s+","+l;"as"!==o&&(r="[]"),e="$each("+r+",function("+c+"){";break;case"/each":e="});";break;case"echo":e="print("+a+");";break;case"print":case"include":e=n+"("+t.join(",")+");";break;default:if(/^\s*\|\s*[\w\$]/.test(a)){var d=!0;0===e.indexOf("#")&&(e=e.substr(1),d=!1);for(var u=0,f=e.split("|"),p=f.length,h=f[u++];p>u;u++)h=I(h,f[u]);e=(d?"=":"=#")+h}else e=i.helpers[n]?"=#"+n+"("+t.join(",")+");":"="+e}return e},"function"==typeof define?define("artTemplate",[],function(){return i}):"undefined"!=typeof exports?module.exports=i:this.template=i}(),define("wRequest",[],function(){var e={userInfo:"/index/func/loginUserInfo?uid={$uid}&appid={$appid}&sign={$sign}",logout:"/index/logout",myFollow:"/index/func/follow",onlineCount:"/u/live/online/count/{$sid}/{$ssid}"},t={type:"",method:"get",data:{},done:void 0,error:void 0},n={url:"",timeout:3e3,dataType:"",error:void 0,success:void 0,data:{},jsonp:void 0},i={urlFormat:function(e,t){var n=e;return n=n.replace(/\{\$(\w+)\}/g,function(e,n){return t[n]?t[n]:""})}},a=function(){var a=Array.prototype.slice.call(arguments);t.type=a[0],e[t.type]||util.trace.info("w-request","[request error] "+t.type+" 接口不存在");for(var r,o=1,s=a.length;o>>32-t}function i(e,t){var n,i,a,r,o;return a=2147483648&e,r=2147483648&t,n=1073741824&e,i=1073741824&t,o=(1073741823&e)+(1073741823&t),n&i?2147483648^o^a^r:n|i?1073741824&o?3221225472^o^a^r:1073741824^o^a^r:o^a^r}function a(e,t,n){return e&t|~e&n}function r(e,t,n){return e&n|t&~n}function o(e,t,n){return e^t^n}function s(e,t,n){return t^(e|~n)}function l(e,t,r,o,s,l,c){return e=i(e,i(i(a(t,r,o),s),c)),i(n(e,l),t)}function c(e,t,a,o,s,l,c){return e=i(e,i(i(r(t,a,o),s),c)),i(n(e,l),t)}function d(e,t,a,r,s,l,c){return e=i(e,i(i(o(t,a,r),s),c)),i(n(e,l),t)}function u(e,t,a,r,o,l,c){return e=i(e,i(i(s(t,a,r),o),c)),i(n(e,l),t)}function f(e){for(var t,n=e.length,i=n+8,a=(i-i%64)/64,r=16*(a+1),o=Array(r-1),s=0,l=0;l>>29,o}function p(e){var t,n,i="",a="";for(n=0;n<=3;n++)t=e>>>8*n&255,a="0"+t.toString(16),i+=a.substr(a.length-2,2);return i}var h,m,v,g,y,b,w,_,T,x=Array(),A=7,I=12,S=17,k=22,E=5,$=9,C=14,L=20,N=4,R=11,O=16,P=23,D=6,V=10,B=15,M=21;for(x=f(e),b=1732584193,w=4023233417,_=2562383102,T=271733878,h=0;h>>32-t}function i(e,t){var n,i,a,r,o;return a=2147483648&e,r=2147483648&t,n=1073741824&e,i=1073741824&t,o=(1073741823&e)+(1073741823&t),n&i?2147483648^o^a^r:n|i?1073741824&o?3221225472^o^a^r:1073741824^o^a^r:o^a^r}function a(e,t,n){return e&t|~e&n}function r(e,t,n){return e&n|t&~n}function o(e,t,n){return e^t^n}function s(e,t,n){return t^(e|~n)}function l(e,t,r,o,s,l,c){return e=i(e,i(i(a(t,r,o),s),c)),i(n(e,l),t)}function c(e,t,a,o,s,l,c){return e=i(e,i(i(r(t,a,o),s),c)),i(n(e,l),t)}function d(e,t,a,r,s,l,c){return e=i(e,i(i(o(t,a,r),s),c)),i(n(e,l),t)}function u(e,t,a,r,o,l,c){return e=i(e,i(i(s(t,a,r),o),c)),i(n(e,l),t)}function f(e){for(var t,n=e.length,i=n+8,a=(i-i%64)/64,r=16*(a+1),o=Array(r-1),s=0,l=0;l>>29,o}function p(e){var t,n,i="",a="";for(n=0;n<=3;n++)t=e>>>8*n&255,a="0"+t.toString(16),i+=a.substr(a.length-2,2);return i}var h,m,v,g,y,b,w,_,T,x=Array(),A=7,I=12,S=17,k=22,E=5,$=9,C=14,L=20,N=4,R=11,O=16,P=23,D=6,V=10,B=15,M=21;for(x=f(e),b=1732584193,w=4023233417,_=2562383102,T=271733878,h=0;h").get(0).files,a.formdata=void 0!==window.FormData;var r=!!e.fn.prop;e.fn.attr2=function(){if(!r)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function n(n){var i,a,r=e.param(n,t.traditional).split("&"),o=r.length,s=[];for(i=0;o>i;i++)r[i]=r[i].replace(/\+/g," "),a=r[i].split("="),s.push([decodeURIComponent(a[0]),decodeURIComponent(a[1])]);return s}function o(i){for(var a=new FormData,r=0;r').val(f.extraData[p].value).appendTo(x)[0]:e('').val(f.extraData[p]).appendTo(x)[0]);f.iframeTarget||v.appendTo("body"),g.attachEvent?g.attachEvent("onload",s):g.addEventListener("load",s,!1),setTimeout(t,15);try{x.submit()}catch(m){var y=document.createElement("form").submit;y.apply(x)}}finally{x.setAttribute("action",r),x.setAttribute("enctype",c),n?x.setAttribute("target",n):u.removeAttr("target"),e(d).remove()}}function s(t){if(!y.aborted&&!L){if(C=a(g),C||(i("cannot access response document"),t=S),t===I&&y)return y.abort("timeout"),void A.reject(y,"timeout");if(t==S&&y)return y.abort("server abort"),void A.reject(y,"error","server abort");if(C&&C.location.href!=f.iframeSrc||_){g.detachEvent?g.detachEvent("onload",s):g.removeEventListener("load",s,!1);var n,r="success";try{if(_)throw"timeout";var o="xml"==f.dataType||C.XMLDocument||e.isXMLDoc(C);if(i("isXml="+o),!o&&window.opera&&(null===C.body||!C.body.innerHTML)&&--N)return i("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var l=C.body?C.body:C.documentElement;y.responseText=l?l.innerHTML:null,y.responseXML=C.XMLDocument?C.XMLDocument:C,o&&(f.dataType="xml"),y.getResponseHeader=function(e){var t={"content-type":f.dataType};return t[e.toLowerCase()]},l&&(y.status=Number(l.getAttribute("status"))||y.status,y.statusText=l.getAttribute("statusText")||y.statusText);var c=(f.dataType||"").toLowerCase(),d=/(json|script|text)/.test(c);if(d||f.textarea){var u=C.getElementsByTagName("textarea")[0];if(u)y.responseText=u.value,y.status=Number(u.getAttribute("status"))||y.status,y.statusText=u.getAttribute("statusText")||y.statusText;else if(d){var h=C.getElementsByTagName("pre")[0],m=C.getElementsByTagName("body")[0];h?y.responseText=h.textContent?h.textContent:h.innerText:m&&(y.responseText=m.textContent?m.textContent:m.innerText)}}else"xml"==c&&!y.responseXML&&y.responseText&&(y.responseXML=R(y.responseText));try{$=P(y,c,f)}catch(b){r="parsererror",y.error=n=b||r}}catch(b){i("error caught: ",b),r="error",y.error=n=b||r}y.aborted&&(i("upload aborted"),r=null),y.status&&(r=y.status>=200&&y.status<300||304===y.status?"success":"error"),"success"===r?(f.success&&f.success.call(f.context,$,"success",y),A.resolve(y.responseText,"success",y),p&&e.event.trigger("ajaxSuccess",[y,f])):r&&(void 0===n&&(n=y.statusText),f.error&&f.error.call(f.context,y,r,n),A.reject(y,"error",n),p&&e.event.trigger("ajaxError",[y,f,n])),p&&e.event.trigger("ajaxComplete",[y,f]),p&&!--e.active&&e.event.trigger("ajaxStop"),f.complete&&f.complete.call(f.context,y,r),L=!0,f.timeout&&clearTimeout(T),setTimeout(function(){f.iframeTarget?v.attr("src",f.iframeSrc):v.remove(),y.responseXML=null},100)}}}var c,d,f,p,h,v,g,y,b,w,_,T,x=u[0],A=e.Deferred();if(A.abort=function(e){y.abort(e)},n)for(d=0;d'),v.css({position:"absolute",top:"-1000px",left:"-1000px"})),g=v[0],y={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var n="timeout"===t?"timeout":"aborted";i("aborting upload... "+n),this.aborted=1;try{g.contentWindow.document.execCommand&&g.contentWindow.document.execCommand("Stop")}catch(a){}v.attr("src",f.iframeSrc),y.error=n,f.error&&f.error.call(f.context,y,n,t),p&&e.event.trigger("ajaxError",[y,f,n]),f.complete&&f.complete.call(f.context,y,n)}},p=f.global,p&&0===e.active++&&e.event.trigger("ajaxStart"),p&&e.event.trigger("ajaxSend",[y,f]),f.beforeSend&&f.beforeSend.call(f.context,y,f)===!1)return f.global&&e.active--,A.reject(),A;if(y.aborted)return A.reject(),A;b=x.clk,b&&(w=b.name,w&&!b.disabled&&(f.extraData=f.extraData||{},f.extraData[w]=b.value,"image"==b.type&&(f.extraData[w+".x"]=x.clk_x,f.extraData[w+".y"]=x.clk_y)));var I=1,S=2,k=e("meta[name=csrf-token]").attr("content"),E=e("meta[name=csrf-param]").attr("content");E&&k&&(f.extraData=f.extraData||{},f.extraData[E]=k),f.forceSync?o():setTimeout(o,10);var $,C,L,N=50,R=e.parseXML||function(e,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},O=e.parseJSON||function(e){return window.eval("("+e+")")},P=function(t,n,i){var a=t.getResponseHeader("content-type")||"",r="xml"===n||!n&&a.indexOf("xml")>=0,o=r?t.responseXML:t.responseText;return r&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),i&&i.dataFilter&&(o=i.dataFilter(o,n)),"string"==typeof o&&("json"===n||!n&&a.indexOf("json")>=0?o=O(o):("script"===n||!n&&a.indexOf("javascript")>=0)&&e.globalEval(o)),o};return A}if(!this.length)return i("ajaxSubmit: skipping submit process - no element selected"),this;var l,c,d,u=this;"function"==typeof t?t={success:t}:void 0===t&&(t={}),l=t.type||this.attr2("method"),c=t.url||this.attr2("action"),d="string"==typeof c?e.trim(c):"",d=d||window.location.href||"",d&&(d=(d.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:d,success:e.ajaxSettings.success,type:l||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var f={};if(this.trigger("form-pre-serialize",[this,t,f]),f.veto)return i("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&t.beforeSerialize(this,t)===!1)return i("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var p=t.traditional;void 0===p&&(p=e.ajaxSettings.traditional);var h,m=[],v=this.formToArray(t.semantic,m);if(t.data&&(t.extraData=t.data,h=e.param(t.data,p)),t.beforeSubmit&&t.beforeSubmit(v,this,t)===!1)return i("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[v,this,t,f]),f.veto)return i("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var g=e.param(v,p);h&&(g=g?g+"&"+h:h),"GET"==t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+g,t.data=null):t.data=g;var y=[];if(t.resetForm&&y.push(function(){u.resetForm()}),t.clearForm&&y.push(function(){u.clearForm(t.includeHidden)}),!t.dataType&&t.target){var b=t.success||function(){};y.push(function(n){var i=t.replaceTarget?"replaceWith":"html";e(t.target)[i](n).each(b,arguments)})}else t.success&&y.push(t.success);if(t.success=function(e,n,i){for(var a=t.context||this,r=0,o=y.length;o>r;r++)y[r].apply(a,[e,n,i||u,u])},t.error){var w=t.error;t.error=function(e,n,i){var a=t.context||this;w.apply(a,[e,n,i,u])}}if(t.complete){var _=t.complete;t.complete=function(e,n){var i=t.context||this;_.apply(i,[e,n,u])}}var T=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}),x=T.length>0,A="multipart/form-data",I=u.attr("enctype")==A||u.attr("encoding")==A,S=a.fileapi&&a.formdata;i("fileAPI :"+S);var k,E=(x||I)&&!S;t.iframe!==!1&&(t.iframe||E)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){k=s(v)}):k=s(v):k=(x||I)&&S?o(v):e.ajax(t),u.removeData("jqxhr").data("jqxhr",k);for(var $=0;$c;c++)if(p=l[c],u=p.name,u&&!p.disabled)if(t&&o.clk&&"image"==p.type)o.clk==p&&(i.push({name:u,value:e(p).val(),type:p.type}),i.push({name:u+".x",value:o.clk_x},{name:u+".y",value:o.clk_y}));else if(f=e.fieldValue(p,!0),f&&f.constructor==Array)for(n&&n.push(p),d=0,m=f.length;m>d;d++)i.push({name:u,value:f[d]});else if(a.fileapi&&"file"==p.type){n&&n.push(p);var v=p.files;if(v.length)for(d=0;dr;r++)n.push({name:i,value:a[r]});else null!==a&&"undefined"!=typeof a&&n.push({name:this.name,value:a})}}),e.param(n)},e.fn.fieldValue=function(t){for(var n=[],i=0,a=this.length;a>i;i++){var r=this[i],o=e.fieldValue(r,t);null===o||"undefined"==typeof o||o.constructor==Array&&!o.length||(o.constructor==Array?e.merge(n,o):n.push(o))}return n},e.fieldValue=function(t,n){var i=t.name,a=t.type,r=t.tagName.toLowerCase();if(void 0===n&&(n=!0),n&&(!i||t.disabled||"reset"==a||"button"==a||("checkbox"==a||"radio"==a)&&!t.checked||("submit"==a||"image"==a)&&t.form&&t.form.clk!=t||"select"==r&&-1==t.selectedIndex))return null;if("select"==r){var o=t.selectedIndex;if(0>o)return null;for(var s=[],l=t.options,c="select-one"==a,d=c?o+1:l.length,u=c?o:0;d>u;u++){var f=l[u];if(f.selected){var p=f.value;if(p||(p=f.attributes&&f.attributes.value&&!f.attributes.value.specified?f.text:f.value),c)return p;s.push(p)}}return s}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var n=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var i=this.type,a=this.tagName.toLowerCase();n.test(i)||"textarea"==a?this.value="":"checkbox"==i||"radio"==i?this.checked=!1:"select"==a?this.selectedIndex=-1:"file"==i?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(t===!0&&/hidden/.test(i)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var n=this.type;if("checkbox"==n||"radio"==n)this.checked=t;else if("option"==this.tagName.toLowerCase()){var i=e(this).parent("select");t&&i[0]&&"select-one"==i[0].type&&i.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1}),define("feedbackForIndex",["require","util","web2playerIndex","artTemplate","jquery","formfileupload"],function(e,t,n,i,a,r){var o=!0,s=window.statisticEvent,l={selectLi:function(){$(".selList li").click(function(e){var t=$(this);t.hasClass("on")?t.removeClass("on"):t.addClass("on"),$(".selList li.on").length>0||""!=$(".areaCon textarea").val()?($(".feedback-pop .sbBtn").hide(),$(".feedback-pop .SubBtn").css("display","inline-block")):($(".feedback-pop .sbBtn").hide(),$(".feedback-pop .noSubBtn").css("display","inline-block"))})},getListSelMsg:function(){for(var e=[],t=$(".selList li.on"),n=0;n0||""!=$(".areaCon textarea").val()?($(".feedback-pop .sbBtn").hide(),$(".feedback-pop .SubBtn").css("display","inline-block")):($(".feedback-pop .sbBtn").hide(),$(".feedback-pop .noSubBtn").css("display","inline-block"))}),$("#feedback-pop input").keyup(function(){var e=$(this);if(/[^\d]/.test(e.val())){var t=e.val().replace(/[^\d]/g,"");$(this).val(t)}})},subAllMsg:function(){var e=this,t={select:e.getListSelMsg(),problem:$(".areaCon textarea").val()},n={qq:$("#qqNum").val(),yy:$("#yyNum").val()};return $("#feedbackForm #appId").val("yycom-web"),$("#feedbackForm #feedback").val(JSON.stringify(t)),$("#feedbackForm #contactInfo").val(JSON.stringify(n)),$("#feedbackForm #productVer").val("index"),$("#feedbackForm #osVer").val(e.ClientOs()),$("#feedbackForm").ajaxSubmit(function(e){if($(".feedback-pop .maskDiv").hide(),204==e.data||206==e.data){$(".feedback-pop").css("background","none").css("box-shadow","none"),$(".feedback-pop .mhd,.feedback-pop .mbd,.feedback-pop .mft").hide(),$(".feedback-pop .toastCon").fadeIn("fast");setTimeout(function(){$(".feedback-pop .toastCon").fadeOut("fast").text("提交成功!")},1500),setTimeout(function(){$(".feedback-pop").css("background","#fff").hide().css("box-shadow","5px 6px 12px #757575"),$(".feedback-pop .mhd,.feedback-pop .mbd,.feedback-pop .mft").show(),$(".feedback-pop .sbBtn").hide(),$(".feedback-pop .noSubBtn").css("display","inline-block")},2e3)}else{$(".feedback-pop .toastCon").fadeIn("fast");setTimeout(function(){$(".feedback-pop .toastCon").fadeOut("fast").text("提交失败!请稍后再试")},2e3);$(".feedback-pop .sbBtn").hide(),$(".feedback-pop .SubBtn").css("display","inline-block")}}),!1},bindSubBtn:function(){var e=this;$(".feedback-pop").delegate(".SubBtn","click",function(){1==e.checkNUm()&&($(".feedback-pop .sbBtn").hide(),$(".feedback-pop .SubBtned").css("display","inline-block"),$(".feedback-pop .maskDiv").show(),e.subAllMsg())})},ClientOs:function(){var e=navigator.userAgent,t="Win32"==navigator.platform||"Windows"==navigator.platform,n="Mac68K"==navigator.platform||"MacPPC"==navigator.platform||"Macintosh"==navigator.platform||"MacIntel"==navigator.platform;if(n)return"Mac";var i="X11"==navigator.platform&&!t&&!n;if(i)return"Unix";var a=String(navigator.platform).indexOf("Linux")>-1;if(a)return"Linux";if(t){var r=e.indexOf("Windows NT 5.0")>-1||e.indexOf("Windows 2000")>-1;if(r)return"Win2000";var o=e.indexOf("Windows NT 5.1")>-1||e.indexOf("Windows XP")>-1;if(o)return"WinXP";var s=e.indexOf("Windows NT 5.2")>-1||e.indexOf("Windows 2003")>-1;if(s)return"Win2003";var l=e.indexOf("Windows NT 6.0")>-1||e.indexOf("Windows Vista")>-1;if(l)return"WinVista";var c=e.indexOf("Windows NT 6.1")>-1||e.indexOf("Windows 7")>-1;if(c)return"Win7";var d=e.indexOf("Windows NT 6.2")>-1||e.indexOf("Windows 8")>-1;if(d)return"Win8";var u=e.indexOf("Windows NT 6.3")>-1||e.indexOf("Windows 8.1")>-1;if(u)return"Win8.1";var f=e.indexOf("Windows NT 10.0")>-1||e.indexOf("Windows 10")>-1;if(f)return"Win10"}return"other"},getPlayerCenter:function(){if(1==o){o=!1;var e=0,t=0,n=$("#flashBox"),i=$("#feedback-pop"),a=n.position(),r=parseInt(n.width()),s=parseInt(i.width()),l=parseInt(n.height()),c=parseInt(i.height());if(l<=c?(t=0,$(".w960 .banner-wrap .banner-inner").css("overflow","visible")):t=(l-c)/2,e=(r-s)/2,!a)return;i.css("left",a.left+e).css("top",t)}},checkNUm:function(){var e=$("#feedback-pop #qqNum").val(),t=$("#feedback-pop #yyNum").val(),n=/^[1-9]*[1-9][0-9]*$/;if(""==t||n.test(t)){if(""==e||n.test(e))return 1;$("#feedback-pop #qqNum").css("border-color","#ff4f4f").focus(),$("#feedback-pop .errorCon").text("请填写正确的QQ号");setTimeout(function(){$("#feedback-pop #qqNum").css("border-color","#dddddd"),$("#feedback-pop .errorCon").text("")},3e3);return 0}$("#feedback-pop #yyNum").css("border-color","#ff4f4f").focus(),$("#feedback-pop .errorCon").text("请填写正确的YY号");setTimeout(function(){$("#feedback-pop #yyNum").css("border-color","#dddddd"),$("#feedback-pop .errorCon").text("")},3e3);return 0},init:function(e){var t=this;1==e&&$("#feedback-pop").addClass("feedback-pop-forLive"),t.selectLi(),t.bindSubBtn(),t.focusProblem(),t.closePop(),n.onclickplayerLogMsg(function(e){t.getPlayerCenter(),$("#feedback-pop input").val(""),$("#feedback-pop textarea").val(""),$("#feedback-pop .selList li").removeClass("on"),$("#feedback-pop").show(),$("#feedbackForm #file").val(e),s.set({eventid:"20015403",act_type:"index"})}),window.onresize=function(){var e;e&&clearTimeout(e),e=setTimeout(function(){t.getPlayerCenter(),o=!0},500)}}};return l}),define("flashPlayer",["util","web2playerIndex","artTemplate","wRequest","webyyhb","webyylogin","feedbackForIndex"],function(e,t,n,i,a,r,o){var s=window.user,l=window.statistics,c=window.statisticEvent,d=window.header;e.UA.init();var u={biz2Type:function(e,t){var n=-1;switch(parseInt(t,10)){case 1:n=2;break;case 2:n=6;break;case 3:break;case 4:n=1;break;case 5:n=4;break;case 6:n=3;break;case 7:n=2;break;case 8:n=5}return n},getNewVideos:function(){$.ajax({url:"//"+window.location.hostname+"/getNewlyPlaylist",type:"GET",dataType:"json",timeout:3e3,data:{},success:function(e){if(e&&"undefined"!==e.data&&"[object Array]"===Object.prototype.toString.call(e.data)&&e.data.length){e.data.length>6&&(e.data.length=6);var t=n("playerVideosTpl",e);$(f.listTarget).html(t),b.bindSwitchVideo()}b.switchPlayer(0)}})}},f={type:0,uid:s.getUidSync(),sid:0,ssid:0,size:{min:{width:788,height:480},max:{width:994,height:601}},target:void 0,listTarget:void 0},p=!0,h=0,m=!1,v=!1,g={},y=function(e){"h5"==t.playerType&&(a.liveEnd(),a.init({sid:e.sid,subsid:e.ssid,rel:"pcweb-index",ver:"",tlt:"",source:d.ref,topmic:0,sys:4,nr_type:1}),a.liveStart(),r.init({sid:e.sid,subsid:e.ssid,puid:s.getUidSync(),ref:d.ref||null,time:0,sys:4,nr_type:1}))},b={init:function(n){var i=this;f=e.extend(!0,f,n),i.playerInit(),i.bindSwitchVideo(),window.header&&window.header.onresize(function(){var e=$("#flashBox").width(),n=$("#flashBox").height();t.resize(e,n)}),$(".star-wrap li a, .video-list .video-box").on("click",function(){v=!0,t.callAs("enterBack")}),"onmousewheel"in document?$("#flashBox").bind("mousewheel",i.wheelEvt):$("#flashBox").bind("DOMMouseScroll",i.wheelEvt),$("#flashBox").on("mouseenter",function(){m=1==h}).on("mouseleave",function(){m=!1}),o.init(0)},updateUserCount:function(e){var n=this,a=n.getCurrentInfo();a.el&&i("onlineCount",{sid:a.sid,ssid:a.ssid},function(n){if(n.data&&n.data>0)return t.callAs("home.setUserCount",{userCount:n.data}),e&&e()})},wheelEvt:function(e){if(m){e.preventDefault(),e.stopPropagation();var n=e.originalEvent.wheelDeltaY||-e.originalEvent.deltaY||e.originalEvent.wheelDelta||-e.originalEvent.detail||-e.originalEvent.delta;t.callAs("vrMouseWheel",n/6)}},getCurrentInfo:function(){var t=$("#flashSide li.cur");return e.extend(t.data(),{index:t.index(),el:t[0],$items:$("#flashSide li")})},playNext:function(){for(var e,t=this,n=t.getCurrentInfo(),i=n.$items,a=n.index,r=(a+1)%i.length,o=!1;r!=a&&!o;){if(e=i.eq(r),"end"!=e.data("status")){o=!0;break}r=(r+1)%i.length}o?t.switchPlayer(r):u.getNewVideos()},playerInit:function(){var n=this,i=n.getCurrentInfo();i.el||(i.$items.eq(0).addClass("cur"),i=n.getCurrentInfo()),t.build({player:"#flashBox",sid:i.sid,ssid:i.ssid}),t.onReady(function(){
n.switchPlayer(),c.set({eventid:20018031,act_type:102,sid:f.sid,more_info:{s_type:3,ua_type:window.navigator.userAgent,player_type:"h5"==t.playerType?"2":"1",system_type:e.UA.system,browser_type:e.UA.browser}}),setTimeout(function(){c.set({eventid:20018031,act_type:103,sid:f.sid,more_info:{s_type:3,ua_type:window.navigator.userAgent,player_type:"h5"==t.playerType?"2":"1",system_type:e.UA.system,browser_type:e.UA.browser}})},1e4),y(f)}),t.onEnterLiveRoom(function(e){var i=n.getCurrentInfo(),a=$(".video-wrap"),r=$(".p-index-body");l({eventid:r.attr("data-stat-eventid"),act_type:3,uid:s.getUidSync(),bak1:r.attr("data-stat-bak1"),bak2:a.attr("data-stat-bak2"),bak3:a.attr("data-stat-bak3"),parm1:i.index+1,parm2:i.type,parm3:i.pid||i.sid||"",sid:i.sid,hostid:i.uid}),c.set({eventid:"20014321",more_info:{module:"5",moduleid:a.attr("data-stat-bak3"),tabid:"index"}}),c.set({eventid:"20014321",more_info:{module:"7",moduleid:a.attr("data-stat-bak3"),tabid:"index"}}),c.set({eventid:"20015403",act_type:1,more_info:{moduleid:"1001",module:"index-recommend-flashenter",position:"index",clickType:"other",index:e.res||0,content:i.url}}),"h5"!=t.playerType&&(location.href=i.url)}),t.onStatusChange(function(e){if("play"===e)p&&v&&t.callAs("enterBack"),p=!1,d.resize();else{if("end"===e){var i=n.getCurrentInfo();return $(i.el).data("status","end"),void n.playNext()}"pause"===e&&l({eventid:$(".p-index-body").attr("data-stat-eventid"),act_type:2,uid:s.getUidSync()})}}),clearInterval(g.getOnlineCountKey);var a=6e4;!function(){g.getOnlineCountKey=setInterval(function(){n.updateUserCount()},a)}(),c.set({eventid:20018031,act_type:101,sid:f.sid,more_info:{s_type:3,ua_type:window.navigator.userAgent,player_type:"h5"==t.playerType?"2":"1",system_type:e.UA.system,browser_type:e.UA.browser}})},switchPlayer:function(n){var i=this,a=i.getCurrentInfo(),r=a.$items;isNaN(n)&&(n=0),r.eq(n).addClass("cur").siblings().removeClass("cur"),a=i.getCurrentInfo(),new e.Promise(function(e){s.getSponsorInfo({uid:a.uid,sid:a.sid,subid:a.ssid},function(t){e(t)})}).then(function(){t.initPlayer({sid:a.sid,ssid:a.ssid,sceneType:u.biz2Type(a.biz,a.type),firstMic:a.firstMic,roomUrl:a.url}),i.updateUserCount(),y(f)}).start()},bindSwitchVideo:function(){var e=this,t=e.getCurrentInfo(),n=t.$items;n.on("click",function(){var t=$(this);e.switchPlayer(t.index());var n=$(".p-index-body"),i=t.parents(".video-wrap");l({eventid:n.attr("data-stat-eventid"),act_type:15,uid:s.getUidSync(),bak1:n.attr("data-stat-bak1"),bak2:i.attr("data-stat-bak2"),bak3:i.attr("data-stat-bak3"),parm1:t.index()+1,parm2:t.attr("data-type"),parm3:t.attr("data-pid")||t.attr("data-sid")||"",sid:t.attr("data-sid"),hostid:t.attr("data-uid")}),c.set({eventid:"20015403",act_type:1,more_info:{moduleid:"1001",module:"index-recommend-slide",position:"index",clickType:"video",index:t.index()+1,content:$(this).data("url")}})})}};return b}),define("../w-web2player-view/web2flash.js",["util"],function(e){var t={player:null,width:0,height:0,id:0},n="//web.yystatic.com/project/group_web_h5_player/yycom_h5_mini_player/pc/images/yycomMiniLiveScene.swf",i={ctrl:function(e){var t=document.getElementById(e);if(t){var n=t,i=t.getElementsByTagName("embed")[0];return"function"==typeof n.callAs?n:i}}},a={type:"flash",setEventListener:function(t,n){e.setVarByString(window,t,n)},ctrl:{},callAs:function(t,n,a){var r,o=this,s={};return r=t?[t]:Object.keys(o.ctrl),r.forEach(function(t){if(o.ctrl[t]||(o.ctrl[t]=i.ctrl("flash_"+t)),a)try{e.trace.web("view flash.callAs:",n,a),s[t]=o.ctrl[t].callAs(n,a)}catch(r){e.trace.error("view flash.callAs error:",n,t,a,r)}else try{e.trace.web("view flash.callAs:",n),s[t]=o.ctrl[t].callAs(n)}catch(r){e.trace.error("view flash.callAs error:",n,t,r)}}),t?s[t]:s},build:function(i,a){t=e.extend({},t,i),$(t.player).append(e.flash.init("flash_"+i.id,{width:t.width,height:t.height,flashvars:["id="+i.id].join("&"),flashUrl:n})),a()}};return a}),define("../w-web2player-view/web2h5.js",["util"],function(e){var t=window.h5miniPlayerConfig,n={hasPreload:!1,preloading:!1},i={type:"h5",setEventListener:function(t,n){e.setVarByString(window,t,n)},ctrl:{},isSupported:function(){var e=!1;if(!t)return e;if(/edge\//i.test(navigator.userAgent))e=!1;else if(/chrome\//i.test(navigator.userAgent)){var n=/chrome\/(0|[1-9]\d*)\.(0|[1-9]\d*)/i.exec(navigator.userAgent);if(n){var i=+n[1],a=+n[2];e=!isNaN(i)&&!isNaN(a)&&i>=45}else e=!1}return e}(),callAs:function(t,n,i){var a,r=this,o={};return a=t?[t]:Object.keys(r.ctrl),a.forEach(function(t){if(!r.ctrl[t])return e.trace.error("view h5.ctrl[{$id}] is not defined, break".replace("{$id}",t));try{e.trace.h5("view api [{$id}] callAs".replace("{$id}",t),n,i),o[t]=r.ctrl[t].callVideoViewFun(n,i)}catch(a){e.trace.error("view h5.callVideoViewFun error:",n,t,i,a)}}),t?o[t]:o},preload:function(){n.preloading=!0,require([t.sdk,t.lib],function(e){window.H5HlsPlayer=e,n.hasPreload=!0,n.preloading=!1})},build:function(t,i){var a=this;if(!n.hasPreload){n.preloading||a.preload();var r=e.extend({},t);return setTimeout(function(){a.build(r,i)},200)}return window.H5VideoViewPlayer&&(a.ctrl[t.id]=new window.H5VideoViewPlayer({container:$(t.player)[0],width:t.width,height:t.height,id:t.id})),i&&i()}};return i}),define("web2playerView",["../w-web2player-view/web2flash.js","../w-web2player-view/web2h5.js","playerUtil","util"],function(e,t,n,i){var a,r=(window.YYPlayer,{player:null,type:"",sid:0,ssid:0,width:200,height:100,firstMic:""}),o={status:"",callAsHolds:[]};t.isSupported?(n.w2any=a=t,i.trace.info("viewPlayer use h5")):(n.w2any=a=e,i.trace.info("viewPlayer use flash"));var s={playerType:a.type,build:function(e,t){i.trace.info("web2player.build start",e),r=i.extend(r,e);var n=/^on/g;for(var o in r)r.hasOwnProperty(o)&&o.match(n)&&s[o]&&s[o](r[o]);a.build(r,function(e){e||t&&t()})},callAs:function(e,t,n){return i.trace.web("=>","callAs",e,t,n),o.isReady?a.callAs(e,t,n):(i.trace.warn("web2player.callAs noready hold it:",e,t,n),void o.callAsHolds.push([e,t,n]))}};return n.web2player=s,n.setEventListener({attribute:"onVideoViewReady",listener:"w2f.onVideoViewReady",callback:function(e,t){o.isReady=!0,t(e)}}),n.setEventListener({attribute:"onVideoViewStatusChange",listener:"w2f.onVideoViewStatusChange",callback:function(e,t){t(e.type,e.id)}}),s}),define("viewPlayer",["web2playerView","util"],function(e,t){function n(e,t,n,i){$.ajax({url:"//interface.yy.com/hls/new/get/"+e+"/"+t+"/100?source=yyweb_index",dataType:"jsonp",data:{excid:"true"==n?100:800},jsonp:"callback",success:function(e){i.call(self,e)},timeout:8e3})}var i={init:function(){var i=$(".list__video__item","ul[data-auto-play]");e.onVideoViewReady(function(t){var i=$("#"+t),a=i.closest("li"),r=$("a.box",a).attr("data-stat-sid"),o=$("a.box",a).attr("data-stat-ssid"),s=a.attr("hundredbit");n(r,o,s,function(n){i.data("hls",n.hls),e.callAs(t,"playVideo",n.hls)})}),e.onVideoViewStatusChange(function(e,t){"play"==e?$("#"+t).removeClass("hidden"):$("#"+t).addClass("hidden")}),i.each(function(){"true"==$(this).closest("li").attr("hundredbit")&&e.build({player:$(".player__content",this)[0],width:$(this).width(),height:$(this).height(),id:this.id})});var a=$(window),r=$(".p-index-head-recommend"),o=r.height()+$("#banner-bg").height();a.on("scroll",t.debounce(function(){a.scrollTop()>o?r.hasClass("video__stop")||(i.each(function(){var t=$(this).data("hls"),n=this.id;t&&("h5"==e.playerType?e.callAs(n,"stopViewVideo"):e.callAs(n,"pauseViewVideo","q"))}),r.addClass("video__stop")):r.hasClass("video__stop")&&(i.each(function(){var t=$(this).data("hls"),n=this.id;t&&e.callAs(n,"playVideo",t)}),r.removeClass("video__stop"))},200,!1)),a.on("resize",t.debounce(function(){i.each(function(){var t=$(this).data("hls"),n=this.id;t&&e.callAs(n,"resizeVideo",{width:this.offsetWidth,height:this.offsetHeight})})},200,!1))}};return i}),define("slideshow",[],function(){var e=function(e){if(0!==arguments.length){var t=this;t.wrapper=e.wrapper,t.nav=e.nav||t.wrapper.find(".slideshow-list"),t.time=e.time||t.wrapper.find(".slidetime-list"),t.panels=e.panels||t.wrapper.find(".slideshow-item"),t.prevBtn=e.prevBtn||t.wrapper.find(".slideshow-prev"),t.nextBtn=e.nextBtn||t.wrapper.find(".slideshow-next"),t.duration=e.duration||500,t.startNum=e.startNum||+t.wrapper.attr("data-start")||0,t.autoPlay=e.autoPlay||!1,t.playInterval=e.playInterval||5e3,t.flag=!0,t.total=t.panels.length,t.panelWidth=t.panels.outerWidth(!0),t.slideNum=Math.floor((t.wrapper.width()+parseInt(t.panelWidth-t.panels.width(),10))/t.panelWidth)||1,t.page=Math.ceil(t.total/t.slideNum),t.curPage=Math.floor(t.startNum/t.slideNum),t.curPage<=0?(t.startNum=0,t.curPage=0,t.prevBtn.hide()):t.prevBtn.show(),t.curPage===t.page-1?t.nextBtn.hide():t.nextBtn.show(),t.page>1&&(t.nav.css({width:parseInt(t.panelWidth*t.total,10)+"px",left:t.getSlideLeft()}),t.time.css({width:parseInt(t.panelWidth*t.total,10)+"px",left:t.getSlideLeft()}),t.bind())}};return e.prototype={nextPlay:function(){var e=this;e.playInterval&&!e._autoPlayTimer&&(e._autoPlayTimer=setInterval(function(){e.nextBtn.trigger("click")},e.playInterval),e._isNext=!0)},prevPlay:function(){var e=this;e.playInterval&&!e._autoPlayTimer&&(e._autoPlayTimer=setInterval(function(){e.prevBtn.trigger("click")},e.playInterval),e._isNext=!1)},pause:function(){var e=this;e._autoPlayTimer&&(clearInterval(e._autoPlayTimer),delete e._autoPlayTimer)},bind:function(){var e=this;e.loadImgAsync(),e.prevBtn.off(),e.nextBtn.off(),e.prevBtn.on("click",function(){e.flag&&(e.flag=!1,e.curPage--,e.nextBtn.show(),e.slide())}),e.nextBtn.on("click",function(){e.flag&&(e.flag=!1,e.curPage++,e.prevBtn.show(),e.slide())}),e.autoPlay&&e.playInterval&&(e.nextPlay(),e.panels.off("mouseover").off("mouseout"),e.nextBtn.off("mouseover").off("mouseout"),e.prevBtn.off("mouseover").off("mouseout"),e.panels.on("mouseover",function(){e.pause()}).on("mouseout",function(){e.play()}),e.nextBtn.on("mouseover",function(){e.pause()}).on("mouseout",function(){e.play()}),e.prevBtn.on("mouseover",function(){e.pause()}).on("mouseout",function(){e.play()}))},play:function(){var e=this;e._isNext?e.nextPlay():e.prevPlay()},getSlideLeft:function(){var e=this,t=e.curPage*e.slideNum,n=e.total%e.slideNum,i=0;return e.curPage===e.page-1?(0!==n&&(t-=e.slideNum-n),i=-(t*e.panelWidth),i+=e.wrapper.width()-(e.slideNum*e.panelWidth-(e.panelWidth-e.panels.width()))):i=-(t*e.panelWidth),e.startNum=t,i+"px"},slide:function(){var e=this,t=e.getSlideLeft();e.wrapper.attr("data-start",e.startNum),e.nav.stop(!0).animate({left:t},{duration:e.duration,complete:function(){e.curPage===e.page-1?(e.nextBtn.hide(),e.autoPlay&&(e.pause(),e.prevPlay())):0===e.curPage&&(e.prevBtn.hide(),e.autoPlay&&(e.pause(),e.nextPlay())),e.flag=!0}}),e.time.stop(!0).animate({left:t},{duration:e.duration,complete:function(){e.curPage===e.page-1?(e.nextBtn.hide(),e.autoPlay&&(e.pause(),e.prevPlay())):0===e.curPage&&(e.prevBtn.hide(),e.autoPlay&&(e.pause(),e.nextPlay())),e.flag=!0}}),e.loadImgAsync()},loadImgAsync:function(){var e=this,t=e.curPage*e.slideNum,n=(e.curPage+1)*e.slideNum;n=n<=e.total?n:e.total;for(var i=t;i<=n;i++){var a=e.panels.eq(i).find("img.lazy");null!=a.attr("data-original")&&(a.attr("src",a.attr("data-original")),a.css("visibility","visible").parent().css("background","black"),a.removeAttr("data-original"))}}},e}),define("attentionOrder",["slideshow"],function(e){var t=window.user,n=window.statistics,i={$target:null,targetClass:".order-btn",queryList:function(){var e=this;"undefined"!=typeof isUser&&t.queryAttentionList(function(t){e.checkOrder(t)}),t.querySubscriptionList(function(t){e.checkSubscription(t)})},checkOrder:function(e){for(var t=this,n=$(t.targetClass,t.$target),i=0,a=e.length;i扫描二维码安装手机YY,直播开始即可第一时间收到预约提醒喔!
',yourClass:"popup-order",loaded:function(){a.changeState(e)}}),n({eventid:$(".wrapper").attr("data-stat-eventid"),act_type:13,sub_eventid:t.getUidSync(),bak1:$(".wrapper").attr("data-stat-bak1"),bak2:e.parents(".through-wrap").attr("data-stat-bak2"),bak3:e.parents(".through-wrap").attr("data-stat-bak3"),parm1:e.parent().index()+1,parm2:e.parent().attr("data-stat-parm2"),parm3:i})):(o&&(o="该主播涉嫌违规,暂时无法预约"),new ShowDialog.POPUP({width:250,content:o||"请稍后再试!",timeout:!0}))})},changeState:function(e){e.addClass("done").attr("title","已预约"),$(e.closest("li")).find(".order-txt").text("已预约").addClass("done")},bindEvents:function(e){var t=this,n=e?e:t.$target;0!=$("li > .order-txt",t.$target).length?n.delegate(".order-txt","click.yy",function(e){e.preventDefault();var n=$($(this).closest("li")).find(".img-box a"),i=n.attr("data-eventid")||n.attr("data-uid");n.hasClass("done")||t.orderReq(n,i)}):n.delegate(t.targetClass,"click.yy",function(e){e.preventDefault();var n=$(this),i=n.attr("data-eventid")||n.attr("data-uid");n.hasClass("done")||t.orderReq(n,i)})},init:function(e,t){"undefined"==typeof e||"undefined"!=typeof e&&0==e.length||(this.$target=e,this.targetClass=t?t:this.targetClass,this.bindEvents(e),this.queryList())}};return window.header&&window.header.onresize(function(){if($(".slideshow-video").length)for(var t=0,n=$(".slideshow-video").length;tn?t:i[e]}}}},l={niceCnt:{get:function(e){var t=e,n=t.setting;return n.cntPos||0},set:function(t,n){var i=t,a=i.el,r=i.attrs,o=i.setting;o.cntPos=n,e(a.cnt)["scroll"+r[3]](n)}},getBarWidth:function(){var e=n.createElement("div"),t=0;return t=e.offsetWidth-e.scrollWidth,(a||r)&&(t=19),e.className=f,e.style.cssText=["position: absolute","left: 0","top: 0","width: 50px","height: 10px","overflow-y: scroll"].join(";"),n.body.appendChild(e),n.body.removeChild(e),t},b2cMapping:function(e){var t=e,n=t.el,i=t.setting,a=t.attrs,r=n.cnt["scroll"+a[3]],o=parseFloat(n.bar.style[a[2]],10);i.contentNow=Math.ceil(o/i.b2eScale),i.direction=i.contentNow-r,l.niceCnt.set(t,i.contentNow),l.positionCheck(t)},c2bMapping:function(e){var t=e,n=t.el,i=t.setting,a=t.attrs,r=i.contentNow=l.niceCnt.get(t),o=r*i.b2eScale,s=n.scrollbar["offset"+a[1]]-n.bar["offset"+a[1]];o>s&&(o=s),n.bar.style[a[2]]=o+"px",l.positionCheck(t)},positionCheck:function(e){var t=e,n=t.op,i=t.setting,a=!1,r=!1;n.onscroll&&n.onscroll(i.contentNow,i.direction),i.contentNow+n.endDistance>=i.contentLimit?(n.onend&&n.onend(),i.contentNow>=i.contentLimit&&(a=!0)):0===i.contentNow&&(n.onbegin&&n.onbegin(),r=!0),i.isEnd=a,i.isBegin=r}},c=function(e,t){return new c.fn.init(e,t)},d=[".analogscroll__cnt::-webkit-scrollbar {"," width: 0;"," overflow: hidden;"," opacity: 0;"," visibility: hidden;","}"].join("\n"),u="analogscrollStyle",f="analogscroll__cnt";c.fn={op:{},attrs:[],resize:function(){var t=this,n=t.op,i=t.el,a=t.setting,r=e(i.target).width(),o=e(i.target).height(),s=[];e(i.cnt).attr("data-direction-x")&&(o+=a.barWidth),e(i.cnt).attr("data-direction-y")&&(r+=a.barWidth),s="x"==n.direction?["width","Width","left","Left","bottom"]:["height","Height","top","Top","right"],e(i.cnt).css("width",r+"px"),e(i.cnt).css("height",o+"px"),e(i.target).css("overflow","hidden");var l=i.target["offset"+s[1]],c=i.cnt["scroll"+s[1]],d=i.scrollbar["offset"+s[1]];a.scale=0,l>=c||0===c?a.scale=1:a.scale=Math.round(l/c*100)/100,a.b2eScale=0===c?0:Math.round(d/c*100)/100,l>c?a.contentLimit=0:a.contentLimit=c-l,i.bar.style[s[0]]=d*a.scale+"px",i.bar.style[s[2]]=a.contentNow*a.b2eScale+"px",n.onscroll&&n.onscroll(a.contentNow,a.direction),n.onresize&&n.onresize(a.scale),a.niceInterval=Math.round(c/200)},back:function(){var e=this,t=e.op,n=l.niceCnt.get(e);e.scrollTo(n-t.distance,i,!0)},forward:function(){var e=this,t=e.op,n=l.niceCnt.get(e);e.scrollTo(n+t.distance,i,!0)},scrollTo:function(e,t,n){var i=this,a=i.op,r=i.el,o=i.setting,c=i.attrs;e<0&&(e=0),e>o.contentLimit&&(e=o.contentLimit);var d=20,u=a.transition/d,f=0,p=l.niceCnt.get(i),h=p,m=parseInt(e,10),v=s.inertiaMotion(p,m,u);n&&(f=u),clearTimeout(o.scrollToKey),function g(){f{$css}'.replace("{$id}",u).replace("{$css}",d)).appendTo("head");var c=this,p=c.op=e.fn.extend(i,o,r),h=c.setting={scale:1,contentLimit:0,contentNow:0,barLimit:0,barNow:0,isBegin:!0,isEnd:!1,direction:0,barWidth:l.getBarWidth()},m=c.el={target:e(a)[0],cnt:e(a).children().eq(0)[0],scrollbar:e(c.op.scrollbar)[0],bar:e(c.op.scrollbar).children()[0],back:e(c.op.back),forward:e(c.op.forward)};if(m.target&&m.scrollbar){if(e(m.cnt).attr("data-direction-"+c.op.direction,"1"),e(m.cnt).css("position","relative"),e(m.cnt).css("overflow-"+c.op.direction,"scroll"),e(m.cnt).addClass(f),c.op.bubble)e(m.cnt).on("scroll",function(){var t=e(m.cnt)["scroll"+b[3]](),n=l.niceCnt.get(c);t!=n&&(h.direction=t-n,h.cntPos=t,l.c2bMapping(c))});else{var v,g;"y"==c.op.direction?(v="deltaY",g="scrollTop"):(v="deltaX",g="scrollLeft");var y=function(t){var n=e(m.cnt)[0],i=n[g];n[g]=t+i,h.direction=t,h.cntPos=n[g],l.c2bMapping(c)};e(m.cnt).on("mousewheel",function(e){e.preventDefault();var t=e.originalEvent,n=t[v]||-t.wheelDelta;y(n)}),e(m.cnt).on("DOMMouseScroll",function(e){e.preventDefault();var t=e.originalEvent,n=t.detail>0?100:-100;y(n)})}c.resize();var b=[],w={down:function(i){i=i||t.event,s.preventDefault(i),s.stopBubble(i),h.isAni||(h.posX=i.clientX-this.offsetLeft,h.posY=i.clientY-this.offsetTop,s.selection.disable(),e(n).bind("mousemove",w.move),e(n).bind("mouseup",w.up),e(t).bind("losecapture",w.up),e(t).bind("blur",w.up))},move:function(e){if(e=e||t.event,s.preventDefault(e),!h.isAni){var n=e["client"+b[4]]-h["pos"+b[4]];n<0&&(n=0),n>m.scrollbar["offset"+b[1]]-m.bar["offset"+b[1]]&&(n=m.scrollbar["offset"+b[1]]-m.bar["offset"+b[1]]),m.bar.style[b[2]]=n+"px",l.b2cMapping(c)}},up:function(){s.selection.enable(),e(n).unbind("mousemove",w.move),e(n).unbind("mouseup",w.up),e(t).unbind("losecapture",w.up),e(t).unbind("blur",w.up)}};return b="x"==p.direction?c.attrs=["width","Width","left","Left","X"]:c.attrs=["height","Height","top","Top","Y"],m.bar.style[b[2]]=0,e(m.scrollbar).bind("mousedown",function(i){var a=this;i=i||t.event,s.preventDefault(i),s.stopBubble(i),s.selection.disable(),h.posX=i.clientX-a.offsetLeft,h.posY=i.clientY-a.offsetTop,e(n).bind("mouseup",function o(){clearTimeout(h.downKey),s.selection.enable(),e(n).unbind("mouseup",o)});var r=m.bar["offset"+b[1]];h.mousePosition=i["client"+b[4]]+(n.documentElement["scroll"+b[3]]||n.body["scroll"+b[3]])-s.getPosition(this)[b[2]],function l(){clearTimeout(h.downKey);var e=parseFloat(m.bar.style[b[2]],10),t=h.mousePosition;if(te+r))return;c.forward()}h.downKey=setTimeout(l,50)}()}),e(m.bar).bind("mousedown",w.down),e(m.forward).bind("mousedown",function(i){i=i||t.event,clearTimeout(h.downKey),s.preventDefault(i),e(n).bind("mouseup",function a(){clearTimeout(h.downKey),e(n).unbind("mouseup",a)}),function r(){c.forward(),h.downKey=setTimeout(r,50)}()}),e(m.back).bind("mousedown",function(i){i=i||t.event,clearTimeout(h.downKey),s.preventDefault(i),e(n).bind("mouseup",function a(){clearTimeout(h.downKey),e(n).unbind("mouseup",a)}),function r(){c.back(),h.downKey=setTimeout(r,50)}()}),this}};p.prototype=c.fn,"undefined"!=typeof define&&define.amd?define("analogscroll",[],function(){return c}):"undefined"!=typeof module&&module.exports?module.exports=c:t.analogscroll=c}($,window,document),define("ModulePaginator",["util","artTemplate"],function(e,t){function n(e,t,n,i,a){return e.replace("{$biz}",t||"").replace("{$subBiz}",n||"").replace("{$page}",i).replace("{$moduleId}",a||"")}function i(e,t,n,i,a,r){return e.replace("{$biz}",t||"").replace("{$subBiz}",n||"").replace("{$page}",i).replace("{$moduleId}",a||"").replace("{$pageSize}",r)}function a(e){return new Promise(function(t,n){$.ajax({url:e,type:"GET",dataType:"json",success:function(e){t(e)},error:function(e){n(e)}})})}function r(e){this.type=e.type,this.$ulBox=e.$ulBox,this.listTpl=e.listTpl,this.container=e.container||window,this.pInfo=$.extend({totalPages:0,pageSize:0,moduleId:"",biz:"",subBiz:""},e.pInfo),this.pageIndex=1}var o={subPage:"/more/page.action?biz={$biz}&subBiz={$subBiz}&page={$page}&moduleId={$moduleId}",secondaryPage:"/more/page.action?biz={$biz}&subBiz={$subBiz}&page={$page}&moduleId={$moduleId}&pageSize={$pageSize}",catalogPage:"/more/page.action?biz={$biz}&subBiz={$subBiz}&page={$page}&moduleId={$moduleId}&pageSize={$pageSize}"};return r.prototype.toPage=function(t){var n=this;this.pageIndex=t;var i=this.getUrl(this.type,this.pageIndex),r=a(i);return r.then(function(t){return 0===t.resultCode&&t.data&&t.data.data?(t.data.data=t.data.data.map(function(t){return t.avatar=e.convertHttps(t.avatar),t}),n.renderPage(t.data.data),$(n.container).scrollTop(0),e.activateLazyImage({container:n.container?n.container:void 0}),Promise.resolve(t)):(e.trace.warn("w-module-paginator","<=","requestData done",t),Promise.reject())})["catch"](function(t){return e.trace.error("w-module-paginator","<=","requestData fail",t),Promise.reject()})},r.prototype.renderPage=function(n){var i=n.map(function(t){return $.extend({},t,{users:e.unitFormat(t.users,1),isVR:t.vr&&1==t.vr,avatar:t.avatar?t.avatar.replace(/http:/,""):"",thumb:t.thumb?t.thumb.replace(/http:/,""):"",chickenNum:99==t.tagStyle||100==t.tagStyle?t.tag.match(/\d+/)[0]:""})});this.$ulBox.html(t(this.listTpl,{data:i}))},r.prototype.getUrl=function(e,t){return"more"===e?n(o.subPage,this.pInfo.biz,this.pInfo.subBiz,t,this.pInfo.moduleId):"secondary"===e?i(o.secondaryPage,this.pInfo.biz,this.pInfo.subBiz,t,this.pInfo.moduleId,this.pInfo.pageSize):""},r}),define("wVideoModule",["analogscroll","util","ModulePaginator","artTemplate"],function(e,t,n,i){var a=window.jQuery,r=window.header,o=window.statisticEvent,s=window.statistics,l=window.user,c={CATALOG:"catalogListTmpl"},d={LIVE_PREVIEW_AREA:".w-video-module-livepreview",LIVE_PREVIEW_SCROLLBAR:".w-video-module-scrollbar",LIVE_PREVIEW_CNT:".w-video-module-livepreview-cnt-main",LIVE_PREVIEW_LAZY_IMG:".lazy",LIVE_PREVIEW_LAZY_CONTAINER:".w-video-module-livepreview-cnt-main ul",LIVE_PREVIEW_RESER_BTN:".w-video-module-livepreview-cnt-main .reser-btn",LIVE_PREVIEW_TABS:".w-video-module-livepreview-cnt-tab li",LIVE_PREVIEW_LIST_S1_FIRST_CHILD:".w-video-module-livepreview-cnt-main ul .s1:eq(0)",LIVE_PREVIEW_LIST_S2_FIRST_CHILD:".w-video-module-livepreview-cnt-main ul .s2:eq(0)",ANCHOR_LIST:".w-video-module-anchor-list",ANCHOR_LIST_LINK:".w-video-module-anchor-list a",ANCHOR_LIST_MAIN:".w-video-module-anchor-list-main",ANCHOR_LIST_SCROLLBAR:".w-video-module-scrollbar",ANCHOR_LIST_LAZY_IMG:".w-video-module-anchor-list-main .lazy",ANCHOR_LIST_LAZY_CONTAINER:".w-video-module-anchor-list-main ul",FOCUS_LINK:".w-video-module-news-focus-area a",NEWS_AND_PREVIEW_AREA:".w-video-module-news-and-preview",NEWS_LINK:".w-video-module-news-article-area a",TAGS_LINK:".w-video-module-news-tags-area a",VIDEO_LIST_COVER:".w-video-module-column .w-video-module-videolist li .cover, .w-video-module-recommend-and-anchor-cnt .w-video-module-videolist li .cover",VIDEO_LIST_LINK:".w-video-module-column .w-video-module-videolist a, .w-video-module-recommend-and-anchor .w-video-module-videolist a",VIDEO_LIST_TITLE:".w-video-module-column .w-video-module-videolist li .title, .w-video-module-recommend-and-anchor-cnt .w-video-module-videolist li .title",VIDEO_LIST_COLUMN:".w-video-module-column, .w-video-module-recommend-and-anchor",ANCHOR_MINI_LIST_LINK:".w-video-module-anchor-mini-list a",COLUMN_TITLE_LINK:".w-video-module-hd .h-tl a",MORE_LINK:".w-video-module-hd .more",TAGLIST_A:".w-video-module-taglist a",PARTNEWS_A:".w-video-module-partnews-list li a",RANKLIST_LI:".w-video-module-ranklist li",RANKLIST_LINK:".r-crown .r-pic, .r-crown .r-title",BANNER_LINK:".w-video-module-ad-type01 a",BANNER_TYPE01:".w-video-module-ad-type01",VIDEO_MODULE:".w-video-module",COLUMN:".column",PAGE_CONTAINER:".container",PAGE_WRAPPER:".wrapper",PAGINATOR_AREA:".w-video-module-paginator",PAGINATOR_TABS:".w-video-module-taglist a",PAGINATOR_CNT:".w-video-module-bd ul",PAGINATOR_ITEMS:".w-video-module-bd ul li",PAGINATOR_LEAF:".paginator",CATALOG_AREA:".w-video-module-catalog",CATALOG_TABS:".w-video-module-taglist a",CATALOG_CNT:".w-video-module-cataloglist ul",STATISTICS_CATALOG_AND_ANCHOR_CATALOG_ITEMS:".w-video-module-catalog-and-anchor .w-video-module-cataloglist .box",STATISTICS_CATALOG_AND_ANCHOR_ANCHOR_ITEMS:".w-video-module-catalog-and-anchor .w-video-module-anchor-list-main .box"},u={NO_SCROLL:"no-scroll",LIVE_PREVIEW_TAB_CURRENT:"current",LIVE_PREVIEW_SHOW_S1:"w-video-module-livepreview-cnt--show-s1",LIVE_PREVIEW_SHOW_S2:"w-video-module-livepreview-cnt--show-s2",LIVE_PREVIEW_S1_FIRST_CHILD:"first-child",LIVE_PREVIEW_S2_FIRST_CHILD:"first-child",PAGINATOR_TAB_CURRENT:"current",CATALOG_TAB_CURRENT:"current"},f={CATALOG_LIST:"/c/yycom/category/getCategory.action?parentId={$id}"},p={onStatisticEvent:function(e){return e},onStatistic:function(e){return e},statEl:".wrapper"},h={ctrls:[],resize:t.debounce(function(){h.ctrls.forEach(function(e){e.resize()})}.bind(h),100),init:function(m){var v=t.extend(!0,p,m);r&&r.onresize(h.resize),a(d.LIVE_PREVIEW_AREA).each(function(n,i){var r=a(i).find(d.LIVE_PREVIEW_CNT),o=a(i).find(d.LIVE_PREVIEW_SCROLLBAR),s=e(r,{bubble:!1,scrollbar:o,onresize:function(e){1==e?a(i).addClass(u.NO_SCROLL):a(i).removeClass(u.NO_SCROLL)}});h.ctrls.push(s),a(i).find(d.LIVE_PREVIEW_LAZY_IMG).lazyload({placeholder:"",container:a(i).find(d.LIVE_PREVIEW_LAZY_CONTAINER),failure_limit:1/0,load:function(){a(this).css("visibility","visible")}}),a(i).find(d.LIVE_PREVIEW_LIST_S1_FIRST_CHILD).addClass(u.LIVE_PREVIEW_S1_FIRST_CHILD),a(i).find(d.LIVE_PREVIEW_LIST_S2_FIRST_CHILD).addClass(u.LIVE_PREVIEW_S2_FIRST_CHILD),a(i).find(d.LIVE_PREVIEW_TABS).on("mouseenter",t.debounce(function(){a(this).addClass(u.LIVE_PREVIEW_TAB_CURRENT).siblings().removeClass(u.LIVE_PREVIEW_TAB_CURRENT);var e=a(this).data("val");"s1"==e?a(i).addClass(u.LIVE_PREVIEW_SHOW_S1).removeClass(u.LIVE_PREVIEW_SHOW_S2):"s2"==e&&a(i).addClass(u.LIVE_PREVIEW_SHOW_S2).removeClass(u.LIVE_PREVIEW_SHOW_S1),s.resize(),a(window).trigger("resize")},200))}),a(d.ANCHOR_LIST).each(function(t,n){var i=a(n).find(d.ANCHOR_LIST_MAIN),r=a(n).find(d.ANCHOR_LIST_SCROLLBAR),o=e(i,{scrollbar:r,bubble:!1,onresize:function(e){1==e?a(n).addClass(u.NO_SCROLL):a(n).removeClass(u.NO_SCROLL)}});h.ctrls.push(o),a(d.ANCHOR_LIST_LAZY_IMG).lazyload({placeholder:"",container:d.ANCHOR_LIST_LAZY_CONTAINER,failure_limit:1/0,load:function(){a(this).css("visibility","visible")}})}),a(d.PAGINATOR_AREA).each(function(){if(window.pageInfo&&window.pageInfo.pageBar&&window.pageInfo.position&&window.pageInfo.tmpl){var e=a(this),i=e.find(d.PAGINATOR_TABS),r=t.request.hash("tab")||0;(isNaN(r)||r>=i.length)&&(r=0);var o,s=function(t,i){var a=new n({type:window.pageInfo.position,listTpl:window.pageInfo.tmpl,container:d.PAGE_CONTAINER,$ulBox:e.find(d.PAGINATOR_CNT),pInfo:t}),r=e.data("max")||0,o=0,s=function(t){e.data("max",t),e.addClass("w-video-module-paginator--size-"+o)};i?a.toPage(1).then(function(n){t.totalPages=Math.ceil(n.data.totalCount/t.pageSize),o=n.data.data.length,o>r&&s(o),e.find(d.PAGINATOR_LEAF).paginator({totalrecords:t.totalPages||0,recordsperpage:1,length:5,initval:a.pageIndex,display:"single",onchange:a.toPage.bind(a)}).show()}):(e.find(d.PAGINATOR_LEAF).paginator({totalrecords:t.totalPages||0,recordsperpage:1,length:5,initval:a.pageIndex,display:"single",onchange:a.toPage.bind(a)}).show(),o=e.find(d.PAGINATOR_ITEMS).length,o>r&&s(o))},l=i.eq(r);o=0==r?window.pageInfo.pageBar:t.extend({},window.pageInfo.pageBar,{biz:l.data("biz"),moduleId:l.data("module-id"),subBiz:l.data("subbiz")}),l.addClass(u.PAGINATOR_TAB_CURRENT).siblings().removeClass(u.PAGINATOR_TAB_CURRENT),s(o,0!=r),i.on("click",function(){var e=a(this);e.hasClass(u.PAGINATOR_TAB_CURRENT)||"_blank"!=e.attr("target")&&(e.addClass(u.PAGINATOR_TAB_CURRENT).siblings().removeClass(u.PAGINATOR_TAB_CURRENT),o=t.extend({},o,{biz:e.data("biz"),moduleId:e.data("moduleid"),subBiz:e.data("subbiz")}),s(o,!0))})}}),a(d.CATALOG_AREA).each(function(){var e=a(this),t=e.find(d.CATALOG_CNT);e.find(d.CATALOG_TABS).on("click",function(){if(!a(this).hasClass(u.CATALOG_TAB_CURRENT)){a(this).addClass(u.CATALOG_TAB_CURRENT).siblings().removeClass(u.CATALOG_TAB_CURRENT);var e=a(this).data("id");e&&a.ajax({url:f.CATALOG_LIST.replace("{$id}",e),dataType:"json"}).then(function(e){t.html(i(c.CATALOG,{data:e.data||[]}))})}})}),s&&s.eventInit(v.statEl,{onsend:function(e){return e.uid=l.getUidSync(),v.onStatistic?v.onStatistic(e):e}}),a(d.VIDEO_LIST_COVER).on("click",function(){var e=a(this).parents(d.VIDEO_LIST_COLUMN),t=v.onStatisticEvent({more_info:{module:"5",moduleid:e.data("stat-bak3")}}),n=a(this);return(n.find(".tag").length||n.find(".short-red__tag").length||n.find(".long-red__tag").length||n.find(".survival__tag").length||n.find(".guess-icon__tag").length||n.find(".drawLots-icon").length)&&(n.find(".tag").length&&"tag"==n.find(".tag").eq(0).attr("class")&&o.set({eventid:"20014315",act_type:9007,more_info:{web_type:"yy.com=YY.COM"}}),(n.find(".short-red__tag").length||n.find(".long-red__tag").length)&&o.set({eventid:"20014315",act_type:9004,more_info:{web_type:"yy.com=YY.COM"}}),n.find(".survival__tag").length&&o.set({eventid:"20014315",act_type:9003,more_info:{web_type:"yy.com=YY.COM"}}),n.find(".guess-icon__tag").length&&o.set({eventid:"20014315",act_type:9005,more_info:{web_type:"yy.com=YY.COM"}}),n.find(".drawLots-icon").length&&o.set({eventid:"20014315",act_type:9006,more_info:{web_type:"yy.com=YY.COM"}})),t&&o.set(t)}),a(d.VIDEO_LIST_TITLE).on("click",function(){var e=a(this).parents(d.VIDEO_LIST_COLUMN),t=v.onStatisticEvent({more_info:{module:"5",moduleid:e.data("stat-bak3")}});return t&&o.set(t)}),a(d.PARTNEWS_A).on("click",function(){var e=a(this).parents(d.VIDEO_LIST_COLUMN),t=v.onStatisticEvent({more_info:{module:"9",moduleid:e.data("stat-bak3")}});return t&&o.set(t);
}),a(d.LIVE_PREVIEW_RESER_BTN).on("click",function(){if(!a(this).hasClass("done")){var e=v.onStatisticEvent({more_info:{module:"10",moduleid:a(this).parents(d.VIDEO_LIST_COLUMN).attr("data-stat-bak3")}});return e&&o.set(e)}}),a(d.TAGLIST_A).on("click",function(){if(!/^javascript/.test(a(this).attr("href"))){var e=v.onStatisticEvent({more_info:{module:"11",moduleid:a(this).parents(d.VIDEO_MODULE).attr("data-stat-bak3")}});return o.set({eventid:"20015403",act_type:1,more_info:{moduleid:a(this).parents(d.VIDEO_MODULE).data("stat-bak2"),module:"tag-list",moduleName:a(this).parents(d.VIDEO_MODULE).data("stat-bak3"),position:v.statPosition,clickType:"other",index:a(this).index()+1,content:a(this).attr("href")}}),e&&o.set(e)}}),a(d.PARTNEWS_A).on("click",function(){var e=v.onStatisticEvent({more_info:{module:"12",moduleid:a(this).parents(d.VIDEO_LIST_COLUMN).attr("data-stat-bak3")}});return e&&o.set(e)}),a(d.RANKLIST_LI).length&&a(d.RANKLIST_LINK).on("click",function(){var e=a(this).parents(d.COLUMN),t=v.onStatistic({eventid:a(v.statEl).attr("data-stat-eventid"),act_type:16,uid:l.getUidSync(),bak1:a(v.statEl).attr("data-stat-bak1"),bak2:e.attr("data-stat-bak2"),bak3:e.attr("data-stat-bak3")});return t&&s(t)}),a(d.BANNER_LINK).on("click",function(){var e=v.onStatisticEvent({more_info:{module:1,moduleid:a(this).parents(d.BANNER_TYPE01).attr("data-stat-bak2")}});return o.set({eventid:"20015403",act_type:1,more_info:{moduleid:a(this).parents(d.BANNER_TYPE01).attr("data-stat-bak2"),module:"ad",clickType:"other",position:v.statPosition,content:a(this).attr("href")}}),e&&o.set(e)}),a(d.FOCUS_LINK).on("click",function(){o.set({eventid:"20015403",act_type:1,more_info:{moduleid:a(this).parents(d.NEWS_AND_PREVIEW_AREA).data("stat-bak2"),module:"focus",moduleName:a(this).parents(d.NEWS_AND_PREVIEW_AREA).data("stat-bak3"),position:v.statPosition,clickType:"other",index:a(this).index()+1,content:a(this).attr("href")}})}),a(d.NEWS_LINK).on("click",function(){o.set({eventid:"20015403",act_type:1,more_info:{moduleid:a(this).parents(".w-video-module-news-and-preview").data("stat-bak2"),moduleName:a(this).parents(".w-video-module-news-and-preview").data("stat-bak3"),module:"news",position:v.statPosition,clickType:"other",index:a(this).index()+1,content:a(this).attr("href")}})}),a(d.TAGS_LINK).on("click",function(){o.set({eventid:"20015403",act_type:1,more_info:{moduleid:a(this).parents(d.NEWS_AND_PREVIEW_AREA).data("stat-bak2"),moduleName:a(this).parents(d.NEWS_AND_PREVIEW_AREA).data("stat-bak3"),module:"tag",position:v.statPosition,clickType:"other",index:a(this).index()+1,content:a(this).attr("href")}})}),a(d.LIVE_PREVIEW_RESER_BTN).on("click",function(){o.set({eventid:"20015403",act_type:1,more_info:{moduleid:a(this).parents(".w-video-module-column").data("stat-bak2"),moduleName:a(this).parents(".w-video-module-column").data("stat-bak3"),module:"preview-click",position:v.statPosition,clickType:"other",index:a(this).index()+1,content:a(this).data("eventid")}})}),a(d.ANCHOR_LIST_LINK).on("click",function(){var e=a(this).parents(d.VIDEO_LIST_COLUMN);o.set({eventid:"20015403",act_type:1,more_info:{moduleid:e.data("stat-bak2"),moduleName:e.data("stat-bak3"),module:"anchor-rank",position:v.statPosition,clickType:"other",uid:a(this).data("uid"),index:a(this).index()+1,content:a(this).attr("href")}})}),a(d.VIDEO_LIST_LINK).on("click",function(){var e=a(this).parents(d.VIDEO_LIST_COLUMN);o.set({eventid:"20015403",act_type:1,more_info:{moduleid:e.data("stat-bak2"),moduleName:e.data("stat-bak3"),module:"video-list",position:v.statPosition,clickType:a(this).hasClass("avt")?"avatar":"video",index:a(this).parents("li").index()+1,biz:a(this).parents("li").data("biz"),sid:a(this).parents("li").data("sid"),pid:a(this).parents("li").data("pid"),content:a(this).attr("href")}})}),a(d.ANCHOR_LIST_LINK).on("click",function(){o.set({eventid:"20015403",act_type:1,more_info:{moduleid:a(this).parents(d.VIDEO_LIST_COLUMN).data("stat-bak2"),moduleName:a(this).parents(d.VIDEO_LIST_COLUMN).data("stat-bak3"),module:"anchor-mini-list",position:v.statPosition,clickType:"other",index:a(this).index()+1,content:a(this).attr("href")}})}),a(d.MORE_LINK).on("click",function(){o.set({eventid:"20015403",act_type:1,more_info:{moduleid:a(this).parents(d.VIDEO_LIST_COLUMN).data("stat-bak2"),moduleName:a(this).parents(d.VIDEO_LIST_COLUMN).data("stat-bak3"),module:"more",position:v.statPosition,clickType:"other",index:0,content:a(this).attr("href")}})}),a(d.COLUMN_TITLE_LINK).on("click",function(){o.set({eventid:"20015403",act_type:1,more_info:{moduleid:a(this).parents(d.VIDEO_LIST_COLUMN).data("stat-bak2"),moduleName:a(this).parents(d.VIDEO_LIST_COLUMN).data("stat-bak3"),module:"title",position:v.statPosition,clickType:"other",index:0,content:a(this).attr("href")}})}),a(d.STATISTICS_CATALOG_AND_ANCHOR_CATALOG_ITEMS).on("click",function(){o.set({eventid:"20015403",act_type:1,more_info:{moduleid:a(this).parents(d.VIDEO_LIST_COLUMN).data("stat-bak2"),moduleName:a(this).parents(d.VIDEO_LIST_COLUMN).data("stat-bak3"),module:0,position:a(this).data("index"),clickType:"other",index:0,content:a(this).attr("href")}})}),a(d.STATISTICS_CATALOG_AND_ANCHOR_ANCHOR_ITEMS).on("click",function(){o.set({eventid:"20015403",act_type:1,more_info:{moduleid:a(this).parents(d.VIDEO_LIST_COLUMN).data("stat-bak2"),moduleName:a(this).parents(d.VIDEO_LIST_COLUMN).data("stat-bak3"),module:1,position:a(this).data("index"),clickType:"other",index:0,content:a(this).attr("href")}})})}};return h}),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("uuidv4",[],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.uuidv4=e()}}(function(){return function e(t,n,i){function a(o,s){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(r)return r(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[o]={exports:{}};t[o][0].call(d.exports,function(e){var n=t[o][1][e];return a(n?n:e)},d,d.exports,e,t,n,i)}return n[o].exports}for(var r="function"==typeof require&&require,o=0;o>>((3&t)<<3)&255;return r}}t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,n){function i(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var s=0;s<16;++s)t[i+s]=o[s];return t||r(o)}var a=e("./lib/rng"),r=e("./lib/bytesToUuid");t.exports=i},{"./lib/bytesToUuid":1,"./lib/rng":2}]},{},[3])(3)}),define("adStatistics",["util","uuidv4"],function(e,t){var n=window.jQuery||window.$,i=function(){};return i.hiddoPost=function(t){var n="";"string"!=typeof t.moreinfo&&(n=JSON.stringify(t.moreinfo));var i=["//ylog.hiido.com/j.gif","?act=websdkprotocol","&time="+(new Date).getTime(),"&sys=4","&eventid=20015359","&entran_id="+encodeURIComponent(t.entranID),"&moreinfo="+encodeURIComponent(n),"&act_type="+t.actType];i.push("&hiido_ui="+(e.cookies.get("hiido_ui")||"")),i.push("&uid="+(e.cookies.get("uid")||e.cookies.get("yyuid")||"")),t.sid&&i.push("&sid="+t.sid),t.hostid&&i.push("&hostid="+t.hostid),t.tempid&&i.push("&tempid="+t.tempid);var a=new Image(1,1);a.src=i.join(""),a.onload=function(){}},i.getReportInfo=function(e){var i=["//ysad.yy.com/getAdConfig","yy","2",(new Date).getTime()+"",t()];return n.ajax({method:"POST",url:i.join("/"),dataType:"jsonp"})},i.thirdPost=function(e){var t=new Image(1,1);t.src=e,t.onload=function(){}},i}),function(e,t,n,i){var a={content:"body",scrollTarget:"html",init:function(){if(n.elementsFromPoint){var t=this;t.topTargetOffset=!1,t.topTarget=null,t.timeId=0,t.eleBox=e(t.content)[0],n.elementsFromPoint||(n.elementsFromPoint=n.msElementsFromPoint),t.addEventListener()}},addEventListener:function(){var n=this;e(t).resize(function(){if(n.topTargetOffset!==!1){var t=e("html")[0].scrollTop,i=Math.round(n.eleBox.getBoundingClientRect().top)-Math.round(n.topTarget.getBoundingClientRect().top);e("html")[0].scrollTop=t-i-n.topTargetOffset}}),e(t).scroll(function(){clearTimeout(n.timeId),n.timeId=setTimeout(n.tsLastPos(),200)})},tsLastPos:function(){var t=this,i=t.eleBox.getBoundingClientRect(),a=i.left+t.eleBox.clientWidth/2,r=(e(".w-head").height()||60)+1;return t.topTarget=n.elementsFromPoint(a,r)[0],t.topTarget!=t.eleBox&&t.topTarget?void(t.topTargetOffset=Math.round(t.topTarget.getBoundingClientRect().top-i.top)):void(t.topTargetOffset=!1)}};"undefined"!=typeof define&&define.amd?define("scrollfix",[],function(){return a}):"undefined"!=typeof module&&module.exports?module.exports=a:t.scrollFix=a}($,window,document),define("sentry",[],function(){var e={init:function(e){var t=window.Raven;t?(t.config("https://d4cacfc010eb42fc84421c18ec42b7e3@sentry.yy.com/78").install(),t.context(e)):e()}};return e}),require(["util","lazyload","flashPlayer","viewPlayer","attentionOrder","wVideoModule","adStatistics","scrollfix","sentry"],function(e,t,n,i,a,r,o,s,l){var c=window.statistics,d=window.statisticEvent,u=window.user,f="20014321",p="index";l.init(function(){$(function(){var t=$("#data-placeholder").html();$("#box-placeholder").html(t),r.init({statEl:".p-index-body",statPosition:"index",onStatisticEvent:function(e){return e.eventid=f,e.uid=u.getUidSync(),e.more_info.tabid=p,e},onStatistic:function(e){return e}}),a.init($(".slideshow-video"),".order-btn"),a.init($(".preBox-content"),".order-btn"),a.init($(".w-video-module-livepreview-cnt-main"),".reser-btn"),$(".lazy").lazyload({placeholder:"",failure_limit:1/0,load:function(){$(this).css("visibility","visible")}}),$(window).trigger("resize"),n.init({target:"#flashBox",listTarget:"#flashSide"}),i.init(),window.yyloader("#sideToolLoader"),c({eventid:$(".p-index-body").attr("data-stat-eventid"),act_type:1,parm1:window.header.ref}),d.set({eventid:"20014313",more_info:{is_sid:"0"}}),d.set({eventid:"20015403",act_type:0,more_info:{position:p}}),$(".p-index-head-recommend .w-video-module-videolist a").on("click",function(){d.set({eventid:f,more_info:{module:"8",moduleid:$(this).parents(".p-index-head-recommend-col").attr("data-stat-bak3"),tabid:p}}),d.set({eventid:"20015403",act_type:1,more_info:{moduleid:"1001",module:"index-recommend-bottom",position:"index",clickType:"video",index:$(this).data("stat-parm1"),sid:$(this).data("stat-sid"),biz:$(this).data("stat-biz"),content:this.href,moduleName:$(this).parents(".p-index-head-recommend-col").data("stat-bak3"),moduleIndex:$(this).parents(".p-index-head-recommend-col").data("index")}})}),$(".p-index-head-recommend .h-tl a").on("click",function(){d.set({eventid:"20015403",act_type:1,more_info:{moduleid:"1001",module:"index-recommend-bottom",index:$(this).parents(".p-index-head-recommend-col").index()+1,moduleName:$(this).parents(".p-index-head-recommend-col").data("stat-bak3"),position:"index",clickType:"title",biz:$(this).parents(".p-index-head-recommend-col").data("biz"),content:this.href}})}),o.getReportInfo().then(function(t){var n=t.data||[];$(".stat-ad").each(function(){var t=this,i=$(this).data("stat-entranid"),a=$(this).data("stat-position"),r=$(this).data("stat-sid")||$(this).data("sid"),s=$(this).data("stat-hostid"),l=e.getParameterByName("tempId",$(this).attr("href")||$(this).data("url")),c=null,d=0,u=0,f=0;i&&(c=n.filter(function(e){return e.uniqueId==i})[0],c&&(d=c.reportStartTime,u=c.reportEndTime,f=(new Date).getTime(),d