// ==UserScript== // @name 哔哩哔哩播放器增强 // @version 0.3.0 // @author Siubeng (fython) // @description Enhance Bilibili Player experience // @homepage https://github.com/fython/userscript-enhance-bilibili-player // @supportURL https://github.com/fython/userscript-enhance-bilibili-player/issues // @match *://www.bilibili.com/video/* // @match *://www.bilibili.com/bangumi/play/ep* // @match *://www.bilibili.com/bangumi/play/ss* // @match *://bangumi.bilibili.com/anime/* // @match *://bangumi.bilibili.com/movie/* // @match *://www.bilibili.com/bangumi/media/md* // @match *://www.bilibili.com/bangumi/play/* // @match *://www.bilibili.com/blackboard/html5player.html* // @match *://www.bilibili.com/medialist/play/ml* // @match *://live.bilibili.com/* // @match *://link.acg.tv/forum.php* // @match *://biliplayer.gwo.app/* // @license MIT // @grant GM_setValue // @grant GM_getValue // @grant GM_addValueChangeListener // @grant GM_openInTab // @namespace https://github.com/fython/userscript-enhance-bilibili-player // @downloadURL none // ==/UserScript== !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var r={MENU_SHOW_RATIO:"menu_show_ratio",MENU_SHOW_PLAYBACK_SPEED:"menu_show_playback_speed",MENU_SHOW_LIGHT_OFF:"menu_show_light_off",MENU_SHOW_MIRROR:"menu_show_mirror",MENU_SHOW_KEYMAP:"menu_show_keymap",MENU_SHOW_CHANGELOG:"menu_show_changelog",MENU_SHOW_COLOR_AND_SFX:"menu_show_color_and_sfx",MENU_SHOW_VIDEO_INFO:"menu_show_video_info",MENU_SHOW_COPY_TS_URL:"menu_show_copy_ts_url",MENU_SHOW_COPY_SCREENSHOT:"menu_show_copy_screenshot",MENU_SHOW_RECORD:"menu_show_record",LIVE_MENU_SHOW_PIP:"menu_show_pip",TS_URL_STYLE:"timestamp_url_style",SCREENSHOT_FORMAT:"screenshot_format",SCREENSHOT_QUALITY:"screenshot_quality",RECORD_MIME_TYPE:"record_mime_type",CLEAN_URL:"clean_url",TS_USE_MICROSECONDS:"timestamp_use_microseconds"},o={HMS:0,ONLY_SEC:1},i={MP4:"video/mp4",MP3:"audio/mpeg",WEBM:"video/webm",MKV:"video/x-matroska",OGG:"audio/ogg",WEBM_AUDIO:"audio/webm"}},function(e,t,n){e.exports=n(22)},function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"f",(function(){return d}));var r,o=n(3),i=n.n(o),a=n(0),u={PLAYER:"#bilibiliPlayer",PLAYER_INNER_CONTAINER:"#playerWrap > div > .player",PLAYER_WRAPPER:"#playerWrap div",PLAYER_MODULE:"#player_module div",MENU:"div.bilibili-player-context-menu-container.black.bilibili-player-context-menu-origin",TOAST_CONTAINER:"div.bilibili-player-video-toast-bottom",VIDEO_TITLE:"h1.video-title",DANMAKU_CONTEXT_MENU:".context-menu-danmaku",LIVE_PLAYER:".bilibili-live-player",LIVE_MENU:"div.bilibili-live-player-context-menu-container"},s={MENU_COPY_TS_URL:"copy-ts-menu-action-item",MENU_PIP:"pip-action-item",MENU_SCREENSHOT:"screenshot-action-item",MENU_RECORD:"record-action-item",MENU_SETTINGS:"settings-action-item",TOAST:"enhance-bili-toast"},c={"zh-CN":{ACTION_COPY_URL_WITH_TIMESTAMP:"复制当前时间的视频链接",ACTION_PIP:"弹出画中画播放",ACTION_COPY_SCREENSHOT:"复制当前时间的视频截图(视频实际分辨率/无弹幕)",ACTION_SETTINGS:"增强插件设置",ACTION_RECORD_START:"开始录制",ACTION_RECORD_STOP:"停止录制并保存",TOAST_COPY_URL_WITH_TIMESTAMP_DONE:function(e){return"已复制当前位置(".concat(e,")的视频链接到剪贴板。")},TOAST_COPY_URL_FAILED:"复制链接失败,您的浏览器可能不允许脚本直接修改剪贴板。",TOAST_PIP_UNSUPPORTED:"您的浏览器暂不支持画中画播放,可能需要最新的 Chrome。",TOAST_COPY_SCREENSHOT_DONE:"已复制当前位置的视频截图到剪贴板。",TOAST_COPY_SCREENSHOT_NOT_READY:"视频仍在加载状态,请稍后再尝试复制截图。",TOAST_COPY_SCREENSHOT_FAILED:"复制视频截图失败,查看日志可了解详情。",TOAST_RECORD_STARTED:"录制已开始,打开菜单可停止并保存。",TOAST_RECORD_START_FAILED:"错误!您的浏览器可能不支持录制或格式选择有误。"},"zh-TW":{ACTION_COPY_URL_WITH_TIMESTAMP:"拷貝當前時間的視訊鏈接",ACTION_PIP:"彈出子母畫面播放",ACTION_COPY_SCREENSHOT:"拷貝當前時間的視訊擷圖(視訊實際解析度/無彈幕)",ACTION_SETTINGS:"增強插件設定",ACTION_RECORD_START:"開始錄影",ACTION_RECORD_STOP:"停止錄影并存檔",TOAST_COPY_URL_WITH_TIMESTAMP_DONE:function(e){return"已拷貝當前位置(".concat(e,")的視訊鏈接至剪貼板。")},TOAST_COPY_URL_FAILED:"拷貝鏈接失敗,您的瀏覽器可能不允許腳本直接修改。",TOAST_PIP_UNSUPPORTED:"您的瀏覽器暫不支援子母畫面播放,可能需要最新的 Chrome。",TOAST_COPY_SCREENSHOT_DONE:"已拷貝當前位置的視訊擷圖至剪貼板。",TOAST_COPY_SCREENSHOT_NOT_READY:"視訊仍在加載狀態,請稍後再嘗試拷貝擷圖。",TOAST_COPY_SCREENSHOT_FAILED:"拷貝視訊擷圖失敗,檢視日誌可了解詳情。",TOAST_RECORD_STARTED:"錄影已開始,打開菜單可停止並存檔。",TOAST_RECORD_START_FAILED:"錯誤!您的瀏覽器可能不支援錄影或格式選擇有誤。"}},l=(r={},i()(r,a.b.MENU_SHOW_RATIO,"画面比例"),i()(r,a.b.MENU_SHOW_PLAYBACK_SPEED,"播放速度"),i()(r,a.b.MENU_SHOW_LIGHT_OFF,"关灯"),i()(r,a.b.MENU_SHOW_MIRROR,"镜像"),i()(r,a.b.MENU_SHOW_KEYMAP,"快捷键说明"),i()(r,a.b.MENU_SHOW_CHANGELOG,"更新历史"),i()(r,a.b.MENU_SHOW_COLOR_AND_SFX,"视频色彩调整"),i()(r,a.b.MENU_SHOW_VIDEO_INFO,"视频统计信息"),r),f=/http(s)?:\/\/live\.bilibili\.com\/.+/,d=["p"]},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){function n(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function u(e){n(a,o,i,u,s,"next",e)}function s(e){n(a,o,i,u,s,"throw",e)}u(void 0)}))}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},o=r.toastTimeout,i=void 0===o?3e3:o;a()(this,t),this.player=e,this.menu=null,this.lastToastCallback=null,this.toastTimeout=i,this._menuObserver=new MutationObserver((function(){return n.onMenuMutated(n.menu)})),this._playerObserver=new MutationObserver((function(){var t=e.find(u.d.MENU);t.length&&(n.menu=t,n._playerObserver.disconnect(),n._bindMenu())})),this._playerObserver.observe(e[0],{childList:!0})}return o()(t,[{key:"hideToast",value:function(){var t=e("#"+u.b.TOAST);t.length&&t.remove(),this.lastToastCallback&&clearTimeout(this.lastToastCallback),this.lastToastCallback=null}},{key:"showToast",value:function(t){var n=e(u.d.TOAST_CONTAINER);if(n.length){this.hideToast();var r=e('
')),o=e('
');o.append(e("").text(t)),r.append(o),n.append(r),this.lastToastCallback=setTimeout(this.hideToast,this.toastTimeout)}else alert(t)}},{key:"onMenuMutated",value:function(t){var n=this,r=t.find("ul");if(t.hasClass("active")){if(t.find(u.d.DANMAKU_CONTEXT_MENU).length)return;this.onInflateMenuActions().forEach((function(e){0===t.find("#"+e.id).length&&r.append(n._createMenuAction(e))}));var o=t.find("li");this.onInflateHiddenActions().forEach((function(t){e.each(o,(function(e,n){-1!==n.innerText.indexOf(t)&&n.remove()}))}))}}},{key:"onInflateMenuActions",value:function(){throw new Error("onInflateMenuActions has no implementation.")}},{key:"onInflateHiddenActions",value:function(){throw new Error("onInflateHiddenActions has no implementation.")}},{key:"destroy",value:function(){}},{key:"_bindMenu",value:function(){this._menuObserver.observe(this.menu[0],{childList:!0,attributes:!0}),this.onMenuMutated(this.menu)}},{key:"_createMenuAction",value:function(t){var n=t.id,r=t.title,o=t.callback,i=e('
  • ')),a=e('').text(r);return i.append(a),i.mouseenter((function(){return i.addClass("hover")})),i.mouseleave((function(){return i.removeClass("hover")})),i.click(o),i}}]),t}(),d=function(){function t(e,n){var r=this;a()(this,t),this.player=e,this.menu=null,this.options=n,this.closeMenuA=null,this._playerObserver=new MutationObserver((function(){var t=e.find(u.d.LIVE_MENU);t.length&&(console.log(t),r.menu=t,r._playerObserver.disconnect(),r._bindMenu())})),this._playerObserver.observe(e[0],{childList:!0})}return o()(t,[{key:"hideToast",value:function(){}},{key:"showToast",value:function(e){window.alert(e)}},{key:"onInflateMenuActions",value:function(){throw new Error("onInflateMenuActions has no implementation.")}},{key:"onInflateHiddenActions",value:function(){throw new Error("onInflateHiddenActions has no implementation.")}},{key:"destroy",value:function(){}},{key:"_bindMenu",value:function(){var t=this,n=this.menu.find("ul").first(),r=this.menu.find("li");this.closeMenuA=r.find("a:contains('关闭')"),this.onInflateMenuActions().forEach((function(e){0===t.menu.find("#"+e.id).length&&(t.closeMenuA.length?t._createMenuAction(e).insertBefore(t.closeMenuA.parent()):n.append(t._createMenuAction(e)))})),this.onInflateHiddenActions().forEach((function(t){e.each(r,(function(e,n){-1!==n.innerText.indexOf(t)&&n.remove()}))}))}},{key:"_createMenuAction",value:function(t){var n=this,r=t.id,o=t.title,i=t.callback,a=e('
  • ')),u=e('').text(o);return a.append(u),a.click((function(){n.closeMenuA[0].click(),i()})),a}}]),t}()}).call(this,n(14))},function(e,t,n){var r=n(23),o=n(24),i=n(15),a=n(25);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return f}));var r=n(1),o=n.n(r),i=n(3),a=n.n(i),u=n(4),s=n.n(u);function c(e){return l.apply(this,arguments)}function l(){return(l=s()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!navigator.clipboard||!navigator.clipboard.writeText){e.next=4;break}return e.next=3,navigator.clipboard.writeText(t).then((function(){return!0}),(function(){return!1}));case 3:return e.abrupt("return",e.sent);case 4:if(!window.clipboardData||!window.clipboardData.setData){e.next=6;break}return e.abrupt("return",window.clipboardData.setData("Text",t));case 6:if(!document.queryCommandSupported||!document.queryCommandSupported("copy")){e.next=23;break}return(n=document.createElement("textarea")).textContent=t,n.style.position="fixed",document.body.appendChild(n),n.select(),e.prev=12,e.abrupt("return",document.execCommand("copy"));case 16:return e.prev=16,e.t0=e.catch(12),console.warn("Failed to copy to clipboard",e.t0),e.abrupt("return",!1);case 20:return e.prev=20,document.body.removeChild(n),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[12,16,20,23]])})))).apply(this,arguments)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image/png",n=arguments.length>2?arguments[2]:void 0;return new Promise((function(r,o){e.toBlob((function(e){var n=new ClipboardItem(a()({},t,e));navigator.clipboard.write([n]).then(r,o)}),t,n)}))}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){var r=n(29);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r,o=n(5),i=n.n(o),a=n(6),u=n.n(a),s=n(8),c=n.n(s),l=n(3),f=n.n(l),d=n(0),p=(r={},f()(r,d.a.MP4,"mp4"),f()(r,d.a.MP3,"mp3"),f()(r,d.a.WEBM,"webm"),f()(r,d.a.MKV,"mkv"),f()(r,d.a.OGG,"ogg"),f()(r,d.a.WEBM_AUDIO,"webm"),r);var h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.mimeType,r=t.dataInterval,o=void 0===r?5e3:r;i()(this,e),this.recorder=null,this.recordedData=[],this.onrecordstop=null,this.onrecorderror=null,this.isRecording=!1,this.mimeType=n,this.dataInterval=o}return u()(e,null,[{key:"captureVideoElement",value:function(t,n){var r=new e({mimeType:n});return t.captureStream=t.captureStream||t.mozCaptureStream,r.start(t.captureStream()),r}}]),u()(e,[{key:"start",value:function(e){var t=this,n=new MediaRecorder(e,{mimeType:this.mimeType}),r=[];n.ondataavailable=function(e){r.push(e.data)},n.onstop=function(){t.isRecording=!1,t.onrecordstop&&t.onrecordstop()},n.onerror=function(e){t.isRecording=!1,t.onrecorderror&&t.onrecorderror(e)},n.start(this.dataInterval),this.isRecording=!0,this.recorder=n,this.recordedData=r}},{key:"stop",value:function(){this.recorder&&"recording"===this.recorder.state&&this.recorder.stop()}},{key:"stopSync",value:function(){var e=this;return new Promise((function(t){var n=e.onrecordstop;e.onrecordstop=function(){n&&n(),t()},e.stop()}))}},{key:"reset",value:function(){this.stop(),this.recorder=null,this.recordedData=[],this.isRecording=!1}},{key:"save",value:function(e){if(this.recordedData&&!(this.recordedData.length<=0)){e||(window.console.log("Please specify a filename for downloading."),e="download"),e=e+"."+function(e){if(!e)return p[d.a.MP4];for(var t=0,n=Object.entries(p);t0&&t-1 in e)}w.fn=w.prototype={jquery:_,constructor:w,length:0,toArray:function(){return u.call(this)},get:function(e){return null==e?u.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+H+")"+H+"*"),V=new RegExp(H+"|>"),$=new RegExp(W),G=new RegExp("^"+j+"$"),z={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+H+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){d()},ae=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{D.apply(k=P.call(T.childNodes),T.childNodes),k[T.childNodes.length].nodeType}catch(e){D={apply:k.length?function(e,t){L.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ue(e,t,r,o){var i,u,c,l,f,h,g,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!o&&(d(t),t=t||p,v)){if(11!==T&&(f=Z.exec(e)))if(i=f[1]){if(9===T){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(m&&(c=m.getElementById(i))&&b(t,c)&&c.id===i)return r.push(c),r}else{if(f[2])return D.apply(r,t.getElementsByTagName(e)),r;if((i=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return D.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!C[e+" "]&&(!y||!y.test(e))&&(1!==T||"object"!==t.nodeName.toLowerCase())){if(g=e,m=t,1===T&&(V.test(e)||B.test(e))){for((m=ee.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((l=t.getAttribute("id"))?l=l.replace(re,oe):t.setAttribute("id",l=x)),u=(h=a(e)).length;u--;)h[u]=(l?"#"+l:":scope")+" "+be(h[u]);g=h.join(",")}try{return D.apply(r,m.querySelectorAll(g)),r}catch(t){C(e,!0)}finally{l===x&&t.removeAttribute("id")}}}return s(e.replace(F,"$1"),t,r,o)}function se(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ce(e){return e[x]=!0,e}function le(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ve(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ye(e){return ce((function(t){return t=+t,ce((function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ue.support={},i=ue.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},d=ue.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:T;return a!=p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,v=!i(p),T!=p&&(o=p.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.scope=le((function(e){return h.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=le((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=le((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=le((function(e){return h.appendChild(e).id=x,!p.getElementsByName||!p.getElementsByName(x).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},g=[],y=[],(n.qsa=J.test(p.querySelectorAll))&&(le((function(e){var t;h.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+H+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+H+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+x+"-]").length||y.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||y.push("\\["+H+"*name"+H+"*="+H+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")})),le((function(e){e.innerHTML="";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+H+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")}))),(n.matchesSelector=J.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&le((function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),g.push("!=",W)})),y=y.length&&new RegExp(y.join("|")),g=g.length&&new RegExp(g.join("|")),t=J.test(h.compareDocumentPosition),b=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==T&&b(T,e)?-1:t==p||t.ownerDocument==T&&b(T,t)?1:l?I(l,e)-I(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],u=[t];if(!o||!i)return e==p?-1:t==p?1:o?-1:i?1:l?I(l,e)-I(l,t):0;if(o===i)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?de(a[r],u[r]):a[r]==T?-1:u[r]==T?1:0},p):p},ue.matches=function(e,t){return ue(e,null,null,t)},ue.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&v&&!C[t+" "]&&(!g||!g.test(t))&&(!y||!y.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){C(t,!0)}return ue(t,p,null,[e]).length>0},ue.contains=function(e,t){return(e.ownerDocument||e)!=p&&d(e),b(e,t)},ue.attr=function(e,t){(e.ownerDocument||e)!=p&&d(e);var o=r.attrHandle[t.toLowerCase()],i=o&&N.call(r.attrHandle,t.toLowerCase())?o(e,t,!v):void 0;return void 0!==i?i:n.attributes||!v?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ue.escape=function(e){return(e+"").replace(re,oe)},ue.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ue.uniqueSort=function(e){var t,r=[],o=0,i=0;if(f=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(A),f){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return l=null,e},o=ue.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=ue.selectors={cacheLength:50,createPseudo:ce,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ue.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ue.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+H+")"+e+"("+H+"|$)"))&&w(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=ue.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(q," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,s){var c,l,f,d,p,h,v=i!==a?"nextSibling":"previousSibling",y=t.parentNode,g=u&&t.nodeName.toLowerCase(),m=!s&&!u,b=!1;if(y){if(i){for(;v;){for(d=t;d=d[v];)if(u?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;h=v="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?y.firstChild:y.lastChild],a&&m){for(b=(p=(c=(l=(f=(d=y)[x]||(d[x]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===E&&c[1])&&c[2],d=p&&y.childNodes[p];d=++p&&d&&d[v]||(b=p=0)||h.pop();)if(1===d.nodeType&&++b&&d===t){l[e]=[E,p,b];break}}else if(m&&(b=p=(c=(l=(f=(d=t)[x]||(d[x]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===E&&c[1]),!1===b)for(;(d=++p&&d&&d[v]||(b=p=0)||h.pop())&&((u?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++b||(m&&((l=(f=d[x]||(d[x]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[E,b]),d!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ue.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=I(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:ce((function(e){var t=[],n=[],r=u(e.replace(F,"$1"));return r[x]?ce((function(e,t,n,o){for(var i,a=r(e,null,o,[]),u=e.length;u--;)(i=a[u])&&(e[u]=!(t[u]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return ue(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return G.test(e||"")||ue.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ve(!1),disabled:ve(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ye((function(){return[0]})),last:ye((function(e,t){return[t-1]})),eq:ye((function(e,t,n){return[n<0?n+t:n]})),even:ye((function(e,t){for(var n=0;nt?t:n;--r>=0;)e.push(r);return e})),gt:ye((function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function Ee(e,t,n,r,o){for(var i,a=[],u=0,s=e.length,c=null!=t;u-1&&(i[c]=!(a[c]=f))}}else g=Ee(g===a?g.splice(h,g.length):g),o?o(null,a,g,s):D.apply(a,g)}))}function we(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],u=a||r.relative[" "],s=a?1:0,l=xe((function(e){return e===t}),u,!0),f=xe((function(e){return I(t,e)>-1}),u,!0),d=[function(e,n,r){var o=!a&&(r||n!==c)||((t=n).nodeType?l(e,n,r):f(e,n,r));return t=null,o}];s1&&Te(d),s>1&&be(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(F,"$1"),n,s0,o=e.length>0,i=function(i,a,u,s,l){var f,h,y,g=0,m="0",b=i&&[],x=[],T=c,_=i||o&&r.find.TAG("*",l),w=E+=null==T?1:Math.random()||.1,S=_.length;for(l&&(c=a==p||a||l);m!==S&&null!=(f=_[m]);m++){if(o&&f){for(h=0,a||f.ownerDocument==p||(d(f),u=!v);y=e[h++];)if(y(f,a||p,u)){s.push(f);break}l&&(E=w)}n&&((f=!y&&f)&&g--,i&&b.push(f))}if(g+=m,n&&m!==g){for(h=0;y=t[h++];)y(b,x,a,u);if(i){if(g>0)for(;m--;)b[m]||x[m]||(x[m]=R.call(s));x=Ee(x)}D.apply(s,x),l&&!i&&x.length>0&&g+t.length>1&&ue.uniqueSort(s)}return l&&(E=w,c=T),b};return n?ce(i):i}(i,o))).selector=e}return u},s=ue.select=function(e,t,n,o){var i,s,c,l,f,d="function"==typeof e&&e,p=!o&&a(e=d.selector||e);if(n=n||[],1===p.length){if((s=p[0]=p[0].slice(0)).length>2&&"ID"===(c=s[0]).type&&9===t.nodeType&&v&&r.relative[s[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(i=z.needsContext.test(e)?0:s.length;i--&&(c=s[i],!r.relative[l=c.type]);)if((f=r.find[l])&&(o=f(c.matches[0].replace(te,ne),ee.test(s[0].type)&&ge(t.parentNode)||t))){if(s.splice(i,1),!(e=o.length&&be(s)))return D.apply(n,o),n;break}}return(d||u(e,p))(o,t,!v,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=x.split("").sort(A).join("")===x,n.detectDuplicates=!!f,d(),n.sortDetached=le((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),le((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&le((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),le((function(e){return null==e.getAttribute("disabled")}))||fe(M,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),ue}(n);w.find=O,w.expr=O.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=O.uniqueSort,w.text=O.getText,w.isXMLDoc=O.isXML,w.contains=O.contains,w.escapeSelector=O.escape;var C=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&w(e).is(n))break;r.push(e)}return r},A=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=w.expr.match.needsContext;function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return g(t)?w.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?w.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?w.grep(e,(function(e){return l.call(t,e)>-1!==n})):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&N.test(e)?w(e):e||[],!1).length}});var D,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),R.test(r[1])&&w.isPlainObject(t))for(r in t)g(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=b.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,D=w(b);var I=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function H(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&w.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?w.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?l.call(w(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return H(e,"nextSibling")},prev:function(e){return H(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return A((e.parentNode||{}).firstChild,e)},children:function(e){return A(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(n,r){var o=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=w.filter(r,o)),this.length>1&&(M[e]||w.uniqueSort(o),I.test(e)&&o.reverse()),this.pushStack(o)}}));var j=/[^\x20\t\r\n\f]+/g;function U(e){return e}function W(e){throw e}function q(e,t,n,r){var o;try{e&&g(o=e.promise)?o.call(e).done(t).fail(n):e&&g(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(j)||[],(function(e,n){t[n]=!0})),t}(e):w.extend({},e);var t,n,r,o,i=[],a=[],u=-1,s=function(){for(o=o||e.once,r=t=!0;a.length;u=-1)for(n=a.shift();++u-1;)i.splice(n,1),n<=u&&u--})),this},has:function(e){return e?w.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||s()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},w.extend({Deferred:function(e){var t=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(n){w.each(t,(function(t,r){var o=g(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,o){var i=0;function a(e,t,r,o){return function(){var u=this,s=arguments,c=function(){var n,c;if(!(e=i&&(r!==W&&(u=void 0,s=[n]),t.rejectWith(u,s))}};e?l():(w.Deferred.getStackHook&&(l.stackTrace=w.Deferred.getStackHook()),n.setTimeout(l))}}return w.Deferred((function(n){t[0][3].add(a(0,n,g(o)?o:U,n.notifyWith)),t[1][3].add(a(0,n,g(e)?e:U)),t[2][3].add(a(0,n,g(r)?r:W))})).promise()},promise:function(e){return null!=e?w.extend(e,o):o}},i={};return w.each(t,(function(e,n){var a=n[2],u=n[5];o[n[1]]=a.add,u&&a.add((function(){r=u}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith})),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=u.call(arguments),i=w.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?u.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(q(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||g(o[n]&&o[n].then)))return i.then();for(;n--;)q(o[n],a(n),i.reject);return i.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&F.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},w.readyException=function(e){n.setTimeout((function(){throw e}))};var Y=w.Deferred();function B(){b.removeEventListener("DOMContentLoaded",B),n.removeEventListener("load",B),w.ready()}w.fn.ready=function(e){return Y.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||Y.resolveWith(b,[w]))}}),w.ready.then=Y.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(w.ready):(b.addEventListener("DOMContentLoaded",B),n.addEventListener("load",B));var V=function(e,t,n,r,o,i,a){var u=0,s=e.length,c=null==n;if("object"===E(n))for(u in o=!0,n)V(e,t,u,n[u],!0,i,a);else if(void 0!==r&&(o=!0,g(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(w(e),n)})),t))for(;u1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,o=n.shift(),i=w._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){w.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:w.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;pe=b.createDocumentFragment().appendChild(b.createElement("div")),(he=b.createElement("input")).setAttribute("type","radio"),he.setAttribute("checked","checked"),he.setAttribute("name","t"),pe.appendChild(he),y.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="",y.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="",y.option=!!pe.lastChild;var me={thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?w.merge([e],n):n}function xe(e,t){for(var n=0,r=e.length;n",""]);var Te=/<|&#?\w+;/;function Ee(e,t,n,r,o){for(var i,a,u,s,c,l,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p-1)o&&o.push(i);else if(c=ue(i),a=be(f.appendChild(i),"script"),c&&xe(a),n)for(l=0;i=a[l++];)ge.test(i.type||"")&&n.push(i);return f}var _e=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Oe(){return!0}function Ce(){return!1}function Ae(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Ne(e,t,n,r,o,i){var a,u;if("object"==typeof t){for(u in"string"!=typeof n&&(r=r||n,n=void 0),t)Ne(e,u,n,r,t[u],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Ce;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each((function(){w.event.add(this,t,o,r,n)}))}function ke(e,t,n){n?(J.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var r,o,i=J.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=u.call(arguments),J.set(this,t,i),r=n(this,t),this[t](),i!==(o=J.get(this,t))||r?J.set(this,t,!1):o={},i!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else i.length&&(J.set(this,t,{value:w.event.trigger(w.extend(i[0],w.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&w.event.add(e,t,Oe)}w.event={global:{},add:function(e,t,n,r,o){var i,a,u,s,c,l,f,d,p,h,v,y=J.get(e);if(Q(e))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&w.find.matchesSelector(ae,o),n.guid||(n.guid=w.guid++),(s=y.events)||(s=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(j)||[""]).length;c--;)p=v=(u=Se.exec(t[c])||[])[1],h=(u[2]||"").split(".").sort(),p&&(f=w.event.special[p]||{},p=(o?f.delegateType:f.bindType)||p,f=w.event.special[p]||{},l=w.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&w.expr.match.needsContext.test(o),namespace:h.join(".")},i),(d=s[p])||((d=s[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,l):d.push(l),w.event.global[p]=!0)},remove:function(e,t,n,r,o){var i,a,u,s,c,l,f,d,p,h,v,y=J.hasData(e)&&J.get(e);if(y&&(s=y.events)){for(c=(t=(t||"").match(j)||[""]).length;c--;)if(p=v=(u=Se.exec(t[c])||[])[1],h=(u[2]||"").split(".").sort(),p){for(f=w.event.special[p]||{},d=s[p=(r?f.delegateType:f.bindType)||p]||[],u=u[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=d.length;i--;)l=d[i],!o&&v!==l.origType||n&&n.guid!==l.guid||u&&!u.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(i,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,y.handle)||w.removeEvent(e,p,y.handle),delete s[p])}else for(p in s)w.event.remove(e,p+t[c],n,r,!0);w.isEmptyObject(s)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,u=new Array(arguments.length),s=w.event.fix(e),c=(J.get(this,"events")||Object.create(null))[s.type]||[],l=w.event.special[s.type]||{};for(u[0]=s,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},n=0;n-1:w.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&u.push({elem:c,handlers:i})}return c=this,s\s*$/g;function Pe(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,r,o,i,a,u;if(1===t.nodeType){if(J.hasData(e)&&(u=J.get(e).events))for(o in J.remove(t,"handle events"),u)for(n=0,r=u[o].length;n1&&"string"==typeof h&&!y.checkClone&&Le.test(h))return e.each((function(o){var i=e.eq(o);v&&(t[0]=h.call(this,o,i.html())),Ue(i,t,n,r)}));if(d&&(i=(o=Ee(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(u=(a=w.map(be(o,"script"),Ie)).length;f0&&xe(a,!s&&be(e,"script")),u},cleanData:function(e){for(var t,n,r,o=w.event.special,i=0;void 0!==(n=e[i]);i++)if(Q(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)o[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),w.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return V(this,(function(e){return void 0===e?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ue(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pe(this,e).appendChild(e)}))},prepend:function(){return Ue(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Pe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ue(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ue(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return V(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Re.test(e)&&!me[(ye.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n3,ae.removeChild(e)),u}}))}();var Ge=["Webkit","Moz","ms"],ze=b.createElement("div").style,Xe={};function Qe(e){var t=w.cssProps[e]||Xe[e];return t||(e in ze?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in ze)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=oe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,o,i){var a="width"===t?1:0,u=0,s=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(s+=w.css(e,n+ie[a],!0,o)),r?("content"===n&&(s-=w.css(e,"padding"+ie[a],!0,o)),"margin"!==n&&(s-=w.css(e,"border"+ie[a]+"Width",!0,o))):(s+=w.css(e,"padding"+ie[a],!0,o),"padding"!==n?s+=w.css(e,"border"+ie[a]+"Width",!0,o):u+=w.css(e,"border"+ie[a]+"Width",!0,o));return!r&&i>=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-s-u-.5))||0),s}function rt(e,t,n){var r=Fe(e),o=(!y.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,r),i=o,a=Ve(e,t,r),u="offset"+t[0].toUpperCase()+t.slice(1);if(qe.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&o||!y.reliableTrDimensions()&&k(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===w.css(e,"boxSizing",!1,r),(i=u in e)&&(a=e[u])),(a=parseFloat(a)||0)+nt(e,t,n||(o?"border":"content"),i,r,a)+"px"}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,u=X(t),s=Je.test(t),c=e.style;if(s||(t=Qe(u)),a=w.cssHooks[t]||w.cssHooks[u],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:c[t];"string"===(i=typeof n)&&(o=oe.exec(n))&&o[1]&&(n=function(e,t,n,r){var o,i,a=20,u=r?function(){return r.cur()}:function(){return w.css(e,t,"")},s=u(),c=n&&n[3]||(w.cssNumber[t]?"":"px"),l=e.nodeType&&(w.cssNumber[t]||"px"!==c&&+s)&&oe.exec(w.css(e,t));if(l&&l[3]!==c){for(s/=2,c=c||l[3],l=+s||1;a--;)w.style(e,t,l+c),(1-i)*(1-(i=u()/s||.5))<=0&&(a=0),l/=i;l*=2,w.style(e,t,l+c),n=n||[]}return n&&(l=+l||+s||0,o=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=o)),o}(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||s||(n+=o&&o[3]||(w.cssNumber[u]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(s?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var o,i,a,u=X(t);return Je.test(t)||(t=Qe(u)),(a=w.cssHooks[t]||w.cssHooks[u])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Ve(e,t,r)),"normal"===o&&t in et&&(o=et[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!Ke.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):Ye(e,Ze,(function(){return rt(e,t,r)}))},set:function(e,n,r){var o,i=Fe(e),a=!y.scrollboxSize()&&"absolute"===i.position,u=(a||r)&&"border-box"===w.css(e,"boxSizing",!1,i),s=r?nt(e,t,r,u,i):0;return u&&a&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-nt(e,t,"border",!1,i)-.5)),s&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),tt(0,n,s)}}})),w.cssHooks.marginLeft=$e(y.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-Ye(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ie[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(w.cssHooks[e+t].set=tt)})),w.fn.extend({css:function(e,t){return V(this,(function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=Fe(e),o=t.length;a1)}}),w.fn.delay=function(e,t){return e=w.fx&&w.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var o=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(o)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",y.checkOn=""!==e.value,y.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",y.radioValue="t"===e.value}();var ot,it=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return V(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?w.prop(e,t,n):(1===i&&w.isXMLDoc(e)||(o=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ot:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(j);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),ot={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=it[t]||w.find.attr;it[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=it[a],it[a]=o,o=null!=n(e,t,r)?a:null,it[a]=i),o}}));var at=/^(?:input|select|textarea|button)$/i,ut=/^(?:a|area)$/i;function st(e){return(e.match(j)||[]).join(" ")}function ct(e){return e.getAttribute&&e.getAttribute("class")||""}function lt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(j)||[]}w.fn.extend({prop:function(e,t){return V(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&w.isXMLDoc(e)||(t=w.propFix[t]||t,o=w.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):at.test(e.nodeName)||ut.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,n,r,o,i,a,u,s=0;if(g(e))return this.each((function(t){w(this).addClass(e.call(this,t,ct(this)))}));if((t=lt(e)).length)for(;n=this[s++];)if(o=ct(n),r=1===n.nodeType&&" "+st(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(u=st(r))&&n.setAttribute("class",u)}return this},removeClass:function(e){var t,n,r,o,i,a,u,s=0;if(g(e))return this.each((function(t){w(this).removeClass(e.call(this,t,ct(this)))}));if(!arguments.length)return this.attr("class","");if((t=lt(e)).length)for(;n=this[s++];)if(o=ct(n),r=1===n.nodeType&&" "+st(o)+" "){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(u=st(r))&&n.setAttribute("class",u)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){w(this).toggleClass(e.call(this,n,ct(this),t),t)})):this.each((function(){var t,o,i,a;if(r)for(o=0,i=w(this),a=lt(e);t=a[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=ct(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+st(ct(n))+" ").indexOf(t)>-1)return!0;return!1}});var ft=/\r/g;w.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=g(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,w(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=w.map(o,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=w.valHooks[o.type]||w.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(ft,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:st(w.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,u=a?null:[],s=a?i+1:o.length;for(r=i<0?s:a?i:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},y.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),y.focusin="onfocusin"in n;var dt=/^(?:focusinfocus|focusoutblur)$/,pt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(e,t,r,o){var i,a,u,s,c,l,f,d,h=[r||b],v=p.call(e,"type")?e.type:e,y=p.call(e,"namespace")?e.namespace.split("."):[];if(a=d=u=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!dt.test(v+w.event.triggered)&&(v.indexOf(".")>-1&&(y=v.split("."),v=y.shift(),y.sort()),c=v.indexOf(":")<0&&"on"+v,(e=e[w.expando]?e:new w.Event(v,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:w.makeArray(t,[e]),f=w.event.special[v]||{},o||!f.trigger||!1!==f.trigger.apply(r,t))){if(!o&&!f.noBubble&&!m(r)){for(s=f.delegateType||v,dt.test(s+v)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||b)&&h.push(u.defaultView||u.parentWindow||n)}for(i=0;(a=h[i++])&&!e.isPropagationStopped();)d=a,e.type=i>1?s:f.bindType||v,(l=(J.get(a,"events")||Object.create(null))[e.type]&&J.get(a,"handle"))&&l.apply(a,t),(l=c&&a[c])&&l.apply&&Q(a)&&(e.result=l.apply(a,t),!1===e.result&&e.preventDefault());return e.type=v,o||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),t)||!Q(r)||c&&g(r[v])&&!m(r)&&((u=r[c])&&(r[c]=null),w.event.triggered=v,e.isPropagationStopped()&&d.addEventListener(v,pt),r[v](),e.isPropagationStopped()&&d.removeEventListener(v,pt),w.event.triggered=void 0,u&&(r[c]=u)),e.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),y.focusin||w.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=J.access(r,t);o||r.addEventListener(e,n,!0),J.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=J.access(r,t)-1;o?J.access(r,t,o):(r.removeEventListener(e,n,!0),J.remove(r,t))}}})),w.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),t};var ht,vt=/\[\]$/,yt=/\r?\n/g,gt=/^(?:submit|button|image|reset|file)$/i,mt=/^(?:input|select|textarea|keygen)/i;function bt(e,t,n,r){var o;if(Array.isArray(t))w.each(t,(function(t,o){n||vt.test(e)?r(e,o):bt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)}));else if(n||"object"!==E(t))r(e,t);else for(o in t)bt(e+"["+o+"]",t[o],n,r)}w.param=function(e,t){var n,r=[],o=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){o(this.name,this.value)}));else for(n in e)bt(n,e[n],t,o);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&mt.test(this.nodeName)&&!gt.test(e)&&(this.checked||!ve.test(e))})).map((function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,(function(e){return{name:t.name,value:e.replace(yt,"\r\n")}})):{name:t.name,value:n.replace(yt,"\r\n")}})).get()}}),w.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){w(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},y.createHTMLDocument=((ht=b.implementation.createHTMLDocument("").body).innerHTML="
    ",2===ht.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),i=!n&&[],(o=R.exec(e))?[t.createElement(o[1])]:(o=Ee([e],t,i),i&&i.length&&w(i).remove(),w.merge([],o.childNodes)));var r,o,i},w.offset={setOffset:function(e,t,n){var r,o,i,a,u,s,c=w.css(e,"position"),l=w(e),f={};"static"===c&&(e.style.position="relative"),u=l.offset(),i=w.css(e,"top"),s=w.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+s).indexOf("auto")>-1?(a=(r=l.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(s)||0),g(t)&&(t=t.call(e,n,w.extend({},u))),null!=t.top&&(f.top=t.top-u.top+a),null!=t.left&&(f.left=t.left-u.left+o),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),l.css(f))}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){w.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===w.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),o.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-w.css(r,"marginTop",!0),left:t.left-o.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||ae}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;w.fn[e]=function(r){return V(this,(function(e,r,o){var i;if(m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o}),e,r,arguments.length)}})),w.each(["top","left"],(function(e,t){w.cssHooks[t]=$e(y.pixelPosition,(function(e,n){if(n)return n=Ve(e,t),qe.test(n)?w(e).position()[t]+"px":n}))})),w.each({Height:"height",Width:"width"},(function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){w.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),u=n||(!0===o||!0===i?"margin":"border");return V(this,(function(t,n,o){var i;return m(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?w.css(t,n,u):w.style(t,n,o,u)}),t,a?o:void 0,a)}}))})),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=u.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(u.call(arguments)))}).guid=e.guid=e.guid||w.guid++,o},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=k,w.isFunction=g,w.isWindow=m,w.camelCase=X,w.type=E,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(xt,"")},void 0===(r=function(){return w}.apply(t,[]))||(e.exports=r);var Tt=n.jQuery,Et=n.$;return w.noConflict=function(e){return n.$===w&&(n.$=Et),e&&n.jQuery===w&&(n.jQuery=Tt),w},void 0===o&&(n.jQuery=n.$=w),w}))},function(e,t,n){var r=n(16);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n100)&&(e=100),this.setValue(c.b.SCREENSHOT_QUALITY,e)}},{key:"screenshotFormat",get:function(){return this.getValue(c.b.SCREENSHOT_FORMAT,"image/png")},set:function(e){this.setValue(c.b.SCREENSHOT_FORMAT,e)}},{key:"recordMimeType",get:function(){return GM_getValue(c.b.RECORD_MIME_TYPE,"default")},set:function(e){GM_setValue(c.b.RECORD_MIME_TYPE,e)}},{key:"cleanUrl",get:function(){return GM_getValue(c.b.CLEAN_URL,!0)},set:function(e){GM_setValue(c.b.CLEAN_URL,e)}},{key:"timestampUseMicroseconds",get:function(){return GM_getValue(c.b.TS_USE_MICROSECONDS,!1)},set:function(e){GM_setValue(c.b.TS_USE_MICROSECONDS,e)}}],[{key:"getInstance",value:function(){return new Promise((function(e){var t=setInterval((function(){"object"===("undefined"==typeof EnhancePluginStore_instance?"undefined":o()(EnhancePluginStore_instance))&&(clearInterval(t),e(EnhancePluginStore_instance))}),200)}))}},{key:"version",get:function(){return 2}}]),e}();t.a=l},function(e,t,n){"use strict";n.r(t),function(e){var t=n(1),r=n.n(t),o=n(8),i=n.n(o),a=n(17),u=n.n(a),s=n(4),c=n.n(s),l=n(5),f=n.n(l),d=n(6),p=n.n(d),h=n(11),v=n.n(h),y=n(18),g=n.n(y),m=n(12),b=n.n(m),x=n(2),T=n(0),E=n(7),_=n(19),w=n(9),S=n(13),O=n(20);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b()(e);if(t){var o=b()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var A=x.e[_.a()],N=null,k=null,R=new O.a,L=null,D=function(t){v()(h,t);var n,o,a,s,l,d=C(h);function h(e,t){return f()(this,h),d.call(this,e,t)}return p()(h,[{key:"copyUrlWithTimestamp",value:(l=c()(r.a.mark((function t(){var n,o,a,s,c,l,f,d,p,h;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e("video")).length){t.next=15;break}return n=n[0],(o=new URL(window.location.href)).hash="",R.cleanUrl&&((a=u()(o.searchParams).filter((function(e){var t=i()(e,1)[0];return-1!==x.f.indexOf(t)}))).length?o.search="?"+a.map((function(e){var t=i()(e,2),n=t[0],r=t[1];return"".concat(n,"=").concat(r)})).reduce((function(e,t){return"".concat(e,"&").concat(t)})):o.search=""),s="",R.timestampUseMicroseconds?(c=Math.floor(1e3*n.currentTime),o.searchParams.set("start_progress",String(c)),s+=c+"ms"):(l=parseInt(n.currentTime),f=parseInt(l/60/60),d=parseInt(l/60%60),p=parseInt(l%60),R.timestampStyle===T.c.HMS?(h="",f>0&&(h+=f+"h"),d>0&&(h+=d+"m"),h+=p+"s",o.searchParams.set("t",h)):o.searchParams.set("t",l),s+=(f>0?f+":":"")+(d<10?"0"+d:d)+":"+(p<10?"0"+p:p)),t.next=10,w.b(o.toString());case 10:if(!t.sent){t.next=14;break}k.showToast(A.TOAST_COPY_URL_WITH_TIMESTAMP_DONE(s)),t.next=15;break;case 14:k.showToast(A.TOAST_COPY_URL_FAILED);case 15:case"end":return t.stop()}}),t)}))),function(){return l.apply(this,arguments)})},{key:"copyScreenshot",value:(s=c()(r.a.mark((function t(){var n,o,i,a;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e("video")).length){t.next=25;break}if(!((n=n[0]).readyState>=2)){t.next=24;break}return(o=document.createElement("canvas")).width=n.videoWidth,o.height=n.videoHeight,o.getContext("2d").drawImage(n,0,0,o.width,o.height),i=R.screenshotFormat,a="image/png"===i?1:R.screenshotQuality/100,t.prev=11,t.next=14,w.a(o,i,a);case 14:k.showToast(A.TOAST_COPY_SCREENSHOT_DONE),t.next=21;break;case 17:t.prev=17,t.t0=t.catch(11),window.console.error(t.t0),k.showToast(A.TOAST_COPY_SCREENSHOT_FAILED);case 21:o=null,t.next=25;break;case 24:k.showToast(A.TOAST_COPY_SCREENSHOT_NOT_READY);case 25:case"end":return t.stop()}}),t,null,[[11,17]])}))),function(){return s.apply(this,arguments)})},{key:"startRecord",value:(a=c()(r.a.mark((function t(){var n;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:"default"===(n=R.recordMimeType)&&(n=void 0),window.console.log("Start record in mimeType="+n);try{(L=S.a.captureVideoElement(e("video")[0],n)).onrecordstop=function(){return window.console.log("record stop")},L.onrecorderror=function(e){return window.console.error(e)},k.showToast(A.TOAST_RECORD_STARTED)}catch(e){window.console.error(e),k.showToast(A.TOAST_RECORD_START_FAILED)}case 4:case"end":return t.stop()}}),t)}))),function(){return a.apply(this,arguments)})},{key:"stopRecord",value:(o=c()(r.a.mark((function t(){var n;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!L||!L.isRecording){t.next=5;break}return t.next=3,L.stopSync();case 3:n=e(x.d.VIDEO_TITLE).attr("title");try{L.save("".concat(n,"_").concat(bvid,"_录制片段"))}catch(e){window.console.log(e)}case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:"destroy",value:(n=c()(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stopRecord();case 2:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onInflateMenuActions",value:function(){var e=[];return 1===R.getValue(T.b.MENU_SHOW_COPY_TS_URL,1)&&e.push({id:x.b.MENU_COPY_TS_URL,title:A.ACTION_COPY_URL_WITH_TIMESTAMP,callback:this.copyUrlWithTimestamp}),1===R.getValue(T.b.MENU_SHOW_COPY_SCREENSHOT,1)&&e.push({id:x.b.MENU_SCREENSHOT,title:A.ACTION_COPY_SCREENSHOT,callback:this.copyScreenshot}),1===R.getValue(T.b.MENU_SHOW_RECORD,1)&&(null!=L&&L.isRecording?e.push({id:x.b.MENU_RECORD,title:A.ACTION_RECORD_STOP,callback:this.stopRecord}):e.push({id:x.b.MENU_RECORD,title:A.ACTION_RECORD_START,callback:this.startRecord})),e.push({id:x.b.MENU_SETTINGS,title:A.ACTION_SETTINGS,callback:function(){GM_openInTab("https://biliplayer.gwo.app",{active:!0})}}),e}},{key:"onInflateHiddenActions",value:function(){for(var e=[],t=0,n=Object.entries(x.a);t=2)){t.next=24;break}return(o=document.createElement("canvas")).width=n.videoWidth,o.height=n.videoHeight,o.getContext("2d").drawImage(n,0,0,o.width,o.height),i=R.screenshotFormat,a="image/png"===i?1:R.screenshotQuality/100,t.prev=11,t.next=14,w.a(o,i,a);case 14:k.showToast(A.TOAST_COPY_SCREENSHOT_DONE),t.next=21;break;case 17:t.prev=17,t.t0=t.catch(11),window.console.error(t.t0),k.showToast(A.TOAST_COPY_SCREENSHOT_FAILED);case 21:o=null,t.next=25;break;case 24:k.showToast(A.TOAST_COPY_SCREENSHOT_NOT_READY);case 25:case"end":return t.stop()}}),t,null,[[11,17]])}))),function(){return o.apply(this,arguments)})},{key:"enterPiP",value:(n=c()(r.a.mark((function t(){var n;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n=e("video")).length&&(n=n[0]).requestPictureInPicture();case 2:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"onInflateMenuActions",value:function(){var e=[];return 1===R.getValue(T.b.MENU_SHOW_COPY_SCREENSHOT,1)&&e.push({id:x.b.MENU_SCREENSHOT,title:A.ACTION_COPY_SCREENSHOT,callback:this.copyScreenshot}),1===R.getValue(T.b.LIVE_MENU_SHOW_PIP,1)&&e.push({id:x.b.MENU_PIP,title:A.ACTION_PIP,callback:this.enterPiP}),e}},{key:"onInflateHiddenActions",value:function(){return[]}},{key:"destroy",value:function(){}}]),a}(E.b);function I(){return(I=c()(r.a.mark((function e(){var t,n,o;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=function(){var e=c()(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E.c(x.d.PLAYER);case 2:if(t=e.sent,N!==t){e.next=6;break}return console.log("isSameElement"),e.abrupt("return");case 6:if(null===k){e.next=9;break}return e.next=9,k.destroy();case 9:N=t,k=new D(t);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=function(){var e=c()(r.a.mark((function e(){var n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E.c(x.d.PLAYER_INNER_CONTAINER);case 2:return n=e.sent,new MutationObserver(t).observe(n[0],{childList:!0}),e.next=7,t();case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.next=4,E.c([x.d.PLAYER_WRAPPER,x.d.PLAYER_MODULE]);case 4:return o=e.sent,new MutationObserver(n).observe(o[0],{childList:!0}),e.next=9,t();case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(){return(M=c()(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E.c(x.d.LIVE_PLAYER);case 2:if(t=e.sent,null===k){e.next=6;break}return e.next=6,k.destroy();case 6:k=new P(t);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}R.installToWindow(),x.c.test(window.location.href)?(console.log("enhance live"),function(){M.apply(this,arguments)}()):(console.log("enhance main"),function(){I.apply(this,arguments)}()),Window.prototype.RecordController=S.a}.call(this,n(14))},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=x(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l={};function f(){}function d(){}function p(){}var h={};h[o]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(w([])));y&&y!==t&&n.call(y,o)&&(h=y);var g=p.prototype=f.prototype=Object.create(h);function m(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,u){var s=c(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function w(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:w(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(16);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}}]);