Greasy Fork is available in English.

bilibili视频下载

支持Web、RPC、Blob、Aria等下载方式;支持flv、dash、mp4视频格式;支持下载港区番剧;支持会员下载;支持换源播放,自动切换为高清视频源

Pada tanggal 03 Mei 2022. Lihat %(latest_version_link).

// ==UserScript==
// @name          bilibili视频下载
// @namespace     https://github.com/injahow
// @version       2.1.5
// @description   支持Web、RPC、Blob、Aria等下载方式;支持flv、dash、mp4视频格式;支持下载港区番剧;支持会员下载;支持换源播放,自动切换为高清视频源
// @author        injahow
// @copyright     2021, injahow (https://github.com/injahow)
// @license       MIT
// @source        https://github.com/injahow/user.js
// @supportURL    https://github.com/injahow/user.js/issues
// @match         *://www.bilibili.com/video/av*
// @match         *://www.bilibili.com/video/BV*
// @match         *://www.bilibili.com/medialist/play/*
// @match         *://www.bilibili.com/bangumi/play/ep*
// @match         *://www.bilibili.com/bangumi/play/ss*
// @match         *://www.bilibili.com/cheese/play/ep*
// @match         *://www.bilibili.com/cheese/play/ss*
// @match         https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png*
// @require       https://static.hdslb.com/js/jquery.min.js
// @require       https://cdn.jsdelivr.net/npm/flv.js@1.6.2/dist/flv.min.js
// @require       https://cdn.jsdelivr.net/npm/dplayer@1.26.0/dist/DPlayer.min.js
// @icon          https://static.hdslb.com/images/favicon.ico
// @compatible    chrome
// @compatible    firefox
// @grant         none
// ==/UserScript==
/* eslint-disable */ /* spell-checker: disable */
// @[ You can find all source codes in GitHub repo ]
(function(){"use strict";var __webpack_modules__={44:function(e,t,n){n.r(t),n.d(t,{config:function(){return o},hostMap:function(){return i}});var o={base_api:"https://api.injahow.cn/bparse/",request_type:"auto",format:"flv",host_key:"0",replace_force:"0",auth:"0",download_type:"web",rpc_domain:"http://localhost",rpc_port:"16800",rpc_token:"",rpc_dir:"D:/",ariang_host:"http://ariang.injahow.com/",auto_download:"0",danmaku_speed:"15",danmaku_fontsize:"22"},i={0:"关闭",ks3:"upos-sz-mirrorks3.bilivideo.com",ks3b:"upos-sz-mirrorks3b.bilivideo.com",ks3c:"upos-sz-mirrorks3c.bilivideo.com",ks32:"upos-sz-mirrorks32.bilivideo.com",kodo:"upos-sz-mirrorkodo.bilivideo.com",kodob:"upos-sz-mirrorkodob.bilivideo.com",cos:"upos-sz-mirrorcos.bilivideo.com",cosb:"upos-sz-mirrorcosb.bilivideo.com",bos:"upos-sz-mirrorbos.bilivideo.com",wcs:"upos-sz-mirrorwcs.bilivideo.com",wcsb:"upos-sz-mirrorwcsb.bilivideo.com",hw:"upos-sz-mirrorhw.bilivideo.com",hwb:"upos-sz-mirrorhwb.bilivideo.com",upbda2:"upos-sz-upcdnbda2.bilivideo.com",upws:"upos-sz-upcdnws.bilivideo.com",uptx:"upos-sz-upcdntx.bilivideo.com",uphw:"upos-sz-upcdnhw.bilivideo.com",js:"upos-tf-all-js.bilivideo.com",hk:"cn-hk-eq-bcache-01.bilivideo.com",akamai:"upos-hz-mirrorakam.akamaized.net"}},447:function(e,t,n){n.d(t,{v0:function(){return c},_p:function(){return s},N5:function(){return i}});var o=n(378);function i(){$("body").append('<div class="message-bg"></div> <div id="message_box"> <div class="message-box-mark"></div> <div class="message-box-bg"> <span style="font-size:20px"><b>提示:</b></span> <div id="message_box_context" style="margin:2% 0">...</div><br/><br/> <div class="message-box-btn"> <button name="affirm">确定</button> <button name="cancel">取消</button> </div> </div> </div> <style>.message-bg{position:fixed;float:right;right:0;top:2%;z-index:30000}.message{margin-bottom:15px;padding:2% 2%;width:300px;display:flex;margin-top:-70px;opacity:0}.message-success{background-color:#dfd;border-left:6px solid #4caf50}.message-error{background-color:#fdd;border-left:6px solid #f44336}.message-info{background-color:#e7f3fe;border-left:6px solid #0c86de}.message-warning{background-color:#ffc;border-left:6px solid #ffeb3b}.message-context{font-size:21px;word-wrap:break-word;word-break:break-all}.message-context p{margin:0}#message_box{opacity:0;display:none;position:fixed;inset:0px;top:0;left:0;width:100%;height:100%;z-index:20000}.message-box-bg{position:absolute;background:#fff;border-radius:10px;padding:20px;top:50%;left:50%;transform:translate(-50%,-50%);width:420px;z-index:20001}.message-box-mark{width:100%;height:100%;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);z-index:20000}.message-box-btn{text-align:right}.message-box-btn button{margin:0 5px;width:120px;height:40px;border-width:0;border-radius:3px;background:#1e90ff;cursor:pointer;outline:0;color:#fff;font-size:17px}.message-box-btn button:hover{background:#59f}</style> ')}function r(e,t){"confirm"===t?$('div.message-box-btn button[name="cancel"]').show():"alert"===t&&$('div.message-box-btn button[name="cancel"]').hide(),e.html?$("div#message_box_context").html('<div style="font-size:18px">'.concat(e.html,"</div>")):$("div#message_box_context").html('<div style="font-size:18px">╰( ̄▽ ̄)╮</div>'),o.A.hide(),$("#message_box").show(),$("div#message_box").animate({opacity:"1"},300),$('div.message-box-btn button[name="affirm"]')[0].onclick=function(){$("div#message_box").hide(),$("div#message_box").css("opacity",0),o.A.show(),e.callback&&e.callback.affirm&&e.callback.affirm()},$('div.message-box-btn button[name="cancel"]')[0].onclick=function(){$("div#message_box").hide(),$("div#message_box").css("opacity",0),o.A.show(),e.callback&&e.callback.cancel&&e.callback.cancel()}}var a=0;function l(e,t){(function(e,t){$("div.message-bg").append(e),$("div#message_".concat(t)).animate({"margin-top":"+=70px",opacity:"1"},300)})('<div id="message_'.concat(a+=1,'" class="message message-').concat(t,'"><div class="message-context"><p><strong>').concat(t,":</strong></p><p>").concat(e,"</p></div></div>"),a),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;setTimeout((function(){var t="div#message_".concat(e);$(t).animate({"margin-top":"-=70px",opacity:"0"},300,(function(){$(t).remove()}))}),1e3*t)}(a,3)}var c={success:function(e){return l(e,"success")},warning:function(e){return l(e,"warning")},error:function(e){return l(e,"error")},info:function(e){return l(e,"info")},miaow:function(e){return l("(^・ω・^)~喵喵喵~","info")}},s={alert:function(e,t){return r({html:e,callback:{affirm:t}},"alert")},confirm:function(e,t,n){return r({html:e,callback:{affirm:t,cancel:n}},"confirm")}}},378:function(e,t,n){n.d(t,{A:function(){return o}});var o={show:function(){$("div#bp_config").is(":hidden")&&$("div#message_box").is(":hidden")&&$("body").css("overflow","auto")},hide:function(){$("body").css("overflow","hidden")}}},874:function(e,t,n){n.d(t,{h:function(){return i}});var o=n(447);function i(e){return new Promise((function(t,n){e.success=function(e){e.code&&o.v0.warning("".concat(e.message||"CODE:".concat(e.code))),t(e)},e.error=function(e){o.v0.error("网络异常"),n(e)},$.ajax(e)}))}},602:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{$:function(){return JSZip}});var _ajax__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(874);function asyncGeneratorStep(e,t,n,o,i,r,a){try{var l=e[r](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,i)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var r=e.apply(t,n);function a(e){asyncGeneratorStep(r,o,i,a,l,"next",e)}function l(e){asyncGeneratorStep(r,o,i,a,l,"throw",e)}a(void 0)}))}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var RuntimeLib=function(){function RuntimeLib(e){_classCallCheck(this,RuntimeLib),this.config=e,this.moduleAsync}return _createClass(RuntimeLib,[{key:"getModulePromise",value:function getModulePromise(){var _this=this;return new Promise((function(resolve,reject){try{var _this$config=_this.config,url=_this$config.url,getModule=_this$config.getModule;_this.moduleAsync||(_this.moduleAsync=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var code;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return console.log("[Runtime Library] Start download from ".concat(url)),_context.next=3,(0,_ajax__WEBPACK_IMPORTED_MODULE_0__.h)({url:url,dataType:"text"});case 3:return code=_context.sent,console.log("[Runtime Library] Downloaded from ".concat(url," , length = ").concat(code.length)),function runEval(){return eval(code)}.bind(window)(),_context.abrupt("return",getModule(window));case 7:case"end":return _context.stop()}}),_callee)})))());var library=_this.moduleAsync;resolve(library)}catch(e){throw reject(e),e}}))}}]),RuntimeLib}(),JSZip;new RuntimeLib({url:"https://cdn.jsdelivr.net/npm/jszip@3.7.1/dist/jszip.min.js",getModule:function(e){return e.JSZip}}).getModulePromise().then((function(e){return JSZip=e}))},74:function(e,t,n){var o=n(81),i=n.n(o),r=n(645),a=n.n(r)()(i());a.push([e.id,"\n#bp_config[data-v-1f549b47] {\n  opacity: 0;\n  display: none;\n  position: fixed;\n  inset: 0px;\n  top: 0px;\n  left: 0px;\n  width: 100%;\n  height: 100%;\n  z-index: 10000;\n}\n.config-bg[data-v-1f549b47] {\n  position: absolute;\n  background: rgb(255, 255, 255);\n  border-radius: 10px;\n  padding: 20px;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  width: 600px;\n  z-index: 10001;\n}\n.config-mark[data-v-1f549b47] {\n  width: 100%;\n  height: 100%;\n  position: fixed;\n  top: 0;\n  left: 0;\n  background: rgba(0, 0, 0, 0.5);\n  z-index: 10000;\n}\n.setting-button[data-v-1f549b47] {\n  width: 120px;\n  height: 40px;\n  border-width: 0px;\n  border-radius: 3px;\n  background: #1e90ff;\n  cursor: pointer;\n  outline: none;\n  color: white;\n  font-size: 17px;\n}\n.setting-button[data-v-1f549b47]:hover {\n  background: #5599ff;\n}\n.setting-context[data-v-1f549b47] {\n  margin: 0 1%;\n  color: blue;\n}\n.setting-context[data-v-1f549b47]:hover {\n  color: red;\n}\n",""]),t.Z=a},645:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,i,r){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(a[c]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);o&&a[u[0]]||(void 0!==r&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},81:function(e){e.exports=function(e){return e[1]}},379:function(e){var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var r={},a=[],l=0;l<e.length;l++){var c=e[l],s=o.base?c[0]+o.base:c[0],u=r[s]||0,d="".concat(s," ").concat(u);r[s]=u+1;var p=n(d),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var _=i(f,o);o.byIndex=l,t.splice(l,0,{identifier:d,updater:_,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var r=o(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<r.length;a++){var l=n(r[a]);t[l].references--}for(var c=o(e,i),s=0;s<r.length;s++){var u=n(r[s]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}r=c}}},569:function(e){var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},216:function(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:function(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:function(e){e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,i&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:function(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},744:function(e,t){t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};!function(){var e=__webpack_require__(44);function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.prefix="bp_"}var n,o,i;return n=e,o=[{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return localStorage.getItem(this.prefix+e)||""}},{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;localStorage.setItem(this.prefix+e,t)}}],o&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}(),o=new n,i=__webpack_require__(447);function r(){return location.pathname.match("/cheese/play/")?"cheese":location.pathname.match("/medialist/play/")?"medialist":window.__INITIAL_STATE__?window.__INITIAL_STATE__.epInfo?"bangumi":window.__INITIAL_STATE__.videoData?"video":void 0:"?"}var a={"1080P 高码率":112,"1080P 高清":80,"720P 高清":64,"480P 清晰":32,"360P 流畅":16,"自动":64};var l={type:r,base:function(){var e=r();if("video"===e){var t=window.__INITIAL_STATE__,n=(t.videoData&&t.videoData.title||"unknown").replace(/[\/\\:*?"<>|]+/g,"");return{type:"video",name:n,total:function(){return t.videoData.pages.length||1},title:function(e){var n=e||t.p||1;return(t.videoData.pages[n-1].part||"unknown").replace(/[\/\\:*?"<>|]+/g,"")},filename:function(e){var o=e||t.p||1;return(n+" P".concat(o," (").concat(t.videoData.pages[o-1].part||o,")")).replace(/[\/\\:*?"<>|]+/g,"")},aid:function(e){return t.videoData.aid},p:function(){return t.p||1},cid:function(e){var n=e||t.p||1;return t.videoData.pages[n-1].cid},epid:function(e){return""},need_vip:function(){return!1},vip_need_pay:function(){return!1},is_limited:function(){return!1}}}if("medialist"===e){var o=$("div.player-auxiliary-playlist-item"),i=$("div.player-auxiliary-playlist-item.player-auxiliary-playlist-item-active").index(),a=($(".player-auxiliary-playlist-top .player-auxiliary-filter-title").html()||"unknown").replace(/[\/\\:*?"<>|]+/g,"");return{type:"video",name:a,total:function(){return o.length},title:function(e){var t=e?e-1:i,n=o.eq(t).find(".player-auxiliary-playlist-item-title").attr("title")||"unknown";return n.replace(/[\/\\:*?"<>|]+/g,"")},filename:function(e){var t=e?e-1:i,n=o.eq(t).find(".player-auxiliary-playlist-item-title").attr("title")||"unknown";return"".concat(a," P").concat(t+1," (").concat(n,")").replace(/[\/\\:*?"<>|]+/g,"")},aid:function(e){var t=e?e-1:i;return o.eq(t).attr("data-aid")},p:function(){return i+1},cid:function(e){var t=e?e-1:i;return o.eq(t).attr("data-cid")},epid:function(e){return""},need_vip:function(){return!1},vip_need_pay:function(){return!1},is_limited:function(){return!1}}}if("bangumi"===e){var l=window.__INITIAL_STATE__,c=(l.mediaInfo.season_title||"unknown").replace(/[\/\\:*?"<>|]+/g,"");return{type:"bangumi",name:c,total:function(){return l.epList.length},title:function(e){var t=e?l.epList[e-1]:l.epInfo;return"".concat(t.titleFormat," ").concat(t.longTitle).replace(/[\/\\:*?"<>|]+/g,"")},filename:function(e){if(e){var t=l.epList[e-1];return"".concat(c,":").concat(t.titleFormat," ").concat(t.longTitle).replace(/[\/\\:*?"<>|]+/g,"")}return(l.h1Title||"unknown").replace(/[\/\\:*?"<>|]+/g,"")},aid:function(e){return e?l.epList[e-1].aid:l.epInfo.aid},p:function(){return l.epInfo.i||1},cid:function(e){return e?l.epList[e-1].cid:l.epInfo.cid},epid:function(e){return e?l.epList[e-1].id:l.epInfo.id},need_vip:function(){return"会员"===l.epInfo.badge},vip_need_pay:function(){return l.epPayMent.vipNeedPay},is_limited:function(){return l.userState.areaLimit}}}if("cheese"===e){var s=(location.href.match(/\/cheese\/play\/ep(\d+)/i)||["",""])[1];window.bp_episodes||(window.bp_episodes=[],h.get_season(s));var u=window.bp_episodes,d=$("li.on.list-box-li").index(),p=($("div.season-info h1").html()||"unknown").replace(/[\/\\:*?"<>|]+/g,"");return{type:"cheese",name:p,total:function(){return u.length},title:function(e){return(u[e?e-1:d].title||"unknown").replace(/[\/\\:*?"<>|]+/g,"")},filename:function(e){var t=e?e-1:d;return"".concat(p," P").concat(t+1," (").concat(u[t].title||"unknown",")").replace(/[\/\\:*?"<>|]+/g,"")},aid:function(e){return u[e?e-1:d].aid},p:function(){return d+1},cid:function(e){return u[e?e-1:d].cid},epid:function(e){return u[e?e-1:d].id},need_vip:function(){return!1},vip_need_pay:function(){return!1},is_limited:function(){return!1}}}return{type:"?",name:"none",total:function(){return 0},title:function(e){return""},filename:function(e){return""},aid:function(e){return""},p:function(){return 1},cid:function(e){return""},epid:function(e){return""},need_vip:function(){return!1},vip_need_pay:function(){return!1},is_limited:function(){return!1}}},get_quality:function(){var e=0,t=0;return $("li.bui-select-item")[0]&&(t=parseInt($("li.bui-select-item")[0].dataset.value))?e=parseInt($("li.bui-select-item.bui-select-item-active").attr("data-value"))||(t>80?80:t):$("li.squirtle-select-item")[0]&&(t=parseInt($("li.squirtle-select-item")[0].dataset.value))?e=parseInt($("li.squirtle-select-item.active").attr("data-value"))||(t>80?80:t):$("div.edu-player-quality-item")[0]?(e=a[$("div.edu-player-quality-item.active span").text()||"自动"]||80,t=a[$("div.edu-player-quality-item span").text()||"自动"]||80):e=t=80,{q:e,q_max:t}},get_quality_support:function(){var e,t=[];return"cheese"===r()?((e=$("div.edu-player-quality-item span")).each((function(){if("自动"===$(this).text())return!1;t.push(a[$(this).text()])})),t.length?t:["80","64","32","16"]):($("ul.squirtle-select-list")[0]?e=$("li.squirtle-select-item"):$("ul.bui-select-list")[0]&&(e=$("li.bui-select-item")),e&&e.length?(e.each((function(){var e="".concat($(this).attr("data-value"));if("0"===e)return!1;t.push(e)})),t):["80","64","32","16"])}};function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.is_login=!1,this.vip_status=0,this.mid="",this.uname="",this.has_init=!1,this.lazyInit()}var t,n,o;return t=e,(n=[{key:"needReplace",value:function(){return!this.is_login||!this.vip_status&&l.base().need_vip()}},{key:"lazyInit",value:function(e){this.has_init||(window.__BILI_USER_INFO__?(this.is_login=window.__BILI_USER_INFO__.isLogin,this.vip_status=window.__BILI_USER_INFO__.vipStatus,this.mid=window.__BILI_USER_INFO__.mid||"",this.uname=window.__BILI_USER_INFO__.uname||""):window.__BiliUser__&&(this.is_login=window.__BiliUser__.isLogin,window.__BiliUser__.cache?(this.vip_status=window.__BiliUser__.cache.data.vipStatus,this.mid=window.__BiliUser__.cache.data.mid||"",this.uname=window.__BiliUser__.cache.data.uname||""):(this.vip_status=0,this.mid="",this.uname="")),this.has_init=e)}}])&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()),u=__webpack_require__(874);function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}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 r,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw r}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function f(t,n,r,a,c,d){var p,_;p="function"==typeof a?function(e){a(e)}:function(e){return console.log(e)},_="function"==typeof c?function(e){i.v0.error("请求失败"),c(e)}:function(e){return console.error(e)};var h=l.base(),v=[h.aid(t),h.cid(t),h.epid(t),n||l.get_quality().q,h.type],g=v[0],m=v[1],b=v[2],y=v[3],w=v[4],k=r||e.config.format;"mp4"===k&&"video"!==w&&(k="flv"),"auto"===d&&s.needReplace()&&(d="online");var x,S=function(t){if("0"!==e.config.host_key&&"online"===d&&"mp4"!==k){var n=t.split("/");n[2]=e.hostMap[e.config.host_key],t=n.join("/")}return t},$={type:"GET",dataType:"json"};if("auto"===d||"local"===d){var C,O;"cheese"===w?(x="https://api.bilibili.com/pugv/player/web/playurl","dash"===k?(C=0,O=80):(C=1,O=80)):(x="video"===w?"https://api.bilibili.com/x/player/playurl":"https://api.bilibili.com/pgc/player/web/playurl","dash"===k?(C=0,O=4048):(C=0,O=0)),x+="?avid=".concat(g,"&cid=").concat(m,"&qn=").concat(y,"&fnver=").concat(C,"&fnval=").concat(O,"&fourk=1&ep_id=").concat(b,"&type=").concat(k,"&otype=json"),x+="mp4"===k?"&platform=html5&high_quality=1":"",$.xhrFields={withCredentials:!0}}else{x=e.config.base_api,x+="?av=".concat(g,"&cid=").concat(m,"&q=").concat(y,"&ep=").concat(b,"&type=").concat(w,"&format=").concat(k,"&otype=json");var P=[o.get("auth_id"),o.get("auth_sec")],E=P[0],T=P[1];"1"===e.config.auth&&E&&T&&(x+="&auth_id=".concat(E,"&auth_sec=").concat(T),t&&(x+="&s"))}$.url=x,(0,u.h)($).then((function(e){var o;if(e.code||(o=e.result||e.data),!o)return"auto"===d?void f(t,n,r,a,c,"online"):(e.url&&(e.url=S(e.url)),e.video&&(e.video=S(e.video)),e.audio&&(e.audio=S(e.audio)),void p(e));if(o.dash){for(var i={code:0,quality:o.quality,accept_quality:o.accept_quality,video:"",audio:""},l=o.dash.video,s=0;s<l.length;s++){var u=l[s];if(u.id<=y){i.video=S(u.base_url),i.audio=S(o.dash.audio[0].base_url);break}}p(i)}else p({code:0,quality:o.quality,accept_quality:o.accept_quality,url:S(o.durl[0].url)})})).catch((function(e){return _(e)}))}function _(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=l.base(),i=[o.aid(e),o.cid(e),o.epid(e)],r=i[0],a=i[1],c=i[2];(0,u.h)({url:"https://api.bilibili.com/x/player/v2?aid=".concat(r,"&cid=").concat(a,"&ep_id=").concat(c),dataType:"json"}).then((function(e){!e.code&&e.data.subtitle.subtitles[0]?(0,u.h)({url:"".concat(e.data.subtitle.subtitles[0].subtitle_url),dataType:"json"}).then((function(e){var o,i="WEBVTT\n\n",r=d(e.body||[{from:0,to:0,content:""}]);try{for(r.s();!(o=r.n()).done;){var a=o.value,l=new Date(1e3*(parseInt(a.from)-28800)).toTimeString().split(" ")[0]+"."+(a.from.toString().split(".")[1]||"000").padEnd(3,"0"),c=new Date(1e3*(parseInt(a.to)-28800)).toTimeString().split(" ")[0]+"."+(a.to.toString().split(".")[1]||"000").padEnd(3,"0");i+="".concat(l," --\x3e ").concat(c,"\n").concat(a.content.trim(),"\n\n")}}catch(e){r.e(e)}finally{r.f()}t(n?URL.createObjectURL(new Blob([i],{type:"text/vtt"})):i)})).catch(t):t()})).catch(t)}var h={get_url:function(t,n){var o=e.config.request_type;f(0,0,e.config.format,t,n,o)},get_urls:function(t,n,o,i,r){f(t,n,o,i,r,e.config.request_type)},get_subtitle_url:function(e,t){_(e,t,!0)},get_subtitle_data:function(e,t){_(e,t,!1)},get_season:function(e){(0,u.h)({url:"https://api.bilibili.com/pugv/view/web/season?ep_id=".concat(e),xhrFields:{withCredentials:!0},dataType:"json"}).then((function(e){e.code?i.v0.warning("获取剧集信息失败"):window.bp_episodes=e.data.episodes||null}))}};function v(e,t){t?(0,u.h)({url:"https://api.bilibili.com/x/v1/dm/list.so?oid=".concat(t),dataType:"text"}).then((function(t){var n=$(t.replace(/[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f]/g,""));if(n)if(n.find("d")[0]){var o=n.find("d").map((function(e,t){var n=$(t),o=n.attr("p").split(","),i=0;return"4"===o[1]?i=2:"5"===o[1]&&(i=1),[{author:"",time:parseFloat(o[0]),type:i,color:parseInt(o[3]),id:"",text:n.text()}]})).get();e.success(o),setTimeout((function(){y()}),100)}else e.error("未发现弹幕");else e.error("弹幕获取失败")})).catch((function(t){e.error("弹幕请求异常")})):e.error("cid未知,无法获取弹幕")}function g(){return $("bwp-video")[0]?"bwp-video":$('video[class!="dplayer-video dplayer-video-current"]')[0]?'video[class!="dplayer-video dplayer-video-current"]':void 0}function m(){var e=$(g())[0];e&&(e.pause(),e.currentTime=0)}function b(){if(window.bp_dplayer){var e=$(g())[0];e&&e.removeEventListener("play",m,!1),window.bp_dplayer.destroy(),window.bp_dplayer=null,$("#bp_dplayer").remove(),window.bp_dplayer_2&&(window.bp_dplayer_2.destroy(),window.bp_dplayer_2=null,$("#bp_dplayer_2").remove()),$($("#bilibiliPlayer")[0]?"#bilibiliPlayer":$("#bilibili-player")[0]?"#bilibili-player":"cheese"===l.type()?$('div.bpx-player[data-injector="nano"]')[0]?'div.bpx-player[data-injector="nano"]':"#pay-mask":void 0).show()}}function y(){var t=""+'<style id="dplayer_danmaku_style">\n        .dplayer-danmaku .dplayer-danmaku-right.dplayer-danmaku-move {\n            animation-duration: '.concat(parseFloat(e.config.danmaku_speed),"s;\n            font-size: ").concat(parseInt(e.config.danmaku_fontsize),"px;\n        }\n        </style>");$("#dplayer_danmaku_style")[0]&&$("#dplayer_danmaku_style").remove(),$("body").append(t)}var w={bili_video_tag:g,recover_player:b,replace_player:function(t,n){b();var o,i=$(g())[0];m(),i&&i.addEventListener("play",m,!1),$("#bilibiliPlayer")[0]?(o="#bilibiliPlayer",$(o).before('<div id="bp_dplayer" class="bilibili-player relative bilibili-player-no-cursor">'),$(o).hide()):$("#bilibili-player")[0]?(o="#bilibili-player",$(o).before('<div id="bp_dplayer" class="bilibili-player relative bilibili-player-no-cursor" style="width:100%;height:100%;"></div>'),$(o).hide()):"cheese"===l.type()&&($('div.bpx-player[data-injector="nano"]')[0]?($("#pay-mask").hide(),$("#bofqi").show(),o='div.bpx-player[data-injector="nano"]',$(o).before('<div id="bp_dplayer" style="width:100%;height:100%;"></div>'),$(o).hide()):(o="#pay-mask",$(o).html('<div id="bp_dplayer" style="width:100%;height:100%;"></div>'))),$("#player_mask_module").hide(),h.get_subtitle_url(0,(function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(window.bp_dplayer=new DPlayer({container:$("#bp_dplayer")[0],mutex:!1,volume:1,autoplay:!0,video:{url:t,type:"auto"},subtitle:{url:o,type:"webvtt",fontSize:"35px",bottom:"5%",color:"#fff"},danmaku:!0,apiBackend:{read:function(e){v(e,l.base().cid())},send:function(e){e.error("此脚本无法将弹幕同步到云端")}},contextmenu:[{text:"脚本信息",link:"https://github.com/injahow/user.js"},{text:"脚本作者",link:"https://injahow.com"}]}),"dash"===e.config.format&&n&&"#"!==n){$("body").append('<div id="bp_dplayer_2" style="display:none;"></div>'),window.bp_dplayer_2=new DPlayer({container:$("#bp_dplayer_2")[0],mutex:!1,volume:1,autoplay:!0,video:{url:n,type:"auto"}});var i=[window.bp_dplayer,window.bp_dplayer_2],r=i[0],a=i[1];r.on("play",(function(){!r.paused&&a.play()})),r.on("playing",(function(){!r.paused&&a.play()})),r.on("timeupdate",(function(){Math.abs(r.video.currentTime-a.video.currentTime)>1&&(a.pause(),a.seek(r.video.currentTime)),!r.paused&&a.play()})),r.on("seeking",(function(){a.pause(),a.seek(r.video.currentTime)})),r.on("waiting",(function(){a.pause(),a.seek(r.video.currentTime)})),r.on("pause",(function(){a.pause(),a.seek(r.video.currentTime)})),r.on("suspend",(function(){a.speed(r.video.playbackRate)})),r.on("volumechange",(function(){a.volume(r.video.volume),a.video.muted=r.video.muted}))}}))},danmaku:{config:y}},k=__webpack_require__(602);function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}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 r,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw r}}}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function C(){return e.config.rpc_domain.match("https://")||e.config.rpc_domain.match(/localhost|127\.0\.0\.1/)?"post":"ariang"}var O=!1;function P(t){var n=t?"#!/settings/rpc/set/".concat(t.domain.replace("://","/"),"/").concat(t.port,"/jsonrpc/").concat(window.btoa(t.token)):"",o=e.config.ariang_host+n,i=document.createElement("a");i.setAttribute("target","_blank"),i.setAttribute("onclick","window.bp_aria2_window=window.open('".concat(o,"');")),i.click()}var E=!1,T=!0;function F(e,t){if(E)return i.v0.miaow(),void(T=!0);var n=new XMLHttpRequest;n.open("get",e),n.responseType="blob",n.onload=function(){if(200===this.status||304===this.status){if("msSaveOrOpenBlob"in navigator)return void navigator.msSaveOrOpenBlob(this.response,t);var e=URL.createObjectURL(this.response),n=document.createElement("a");n.style.display="none",n.href=e,n.download=t,n.click(),URL.revokeObjectURL(e)}},T=!0,n.onprogress=function(e){if(4!=this.state){var t=e.loaded,n=e.total;!function(e){var t=e.total,n=e.loaded,o=e.percent;T&&i._p.alert("文件大小:".concat(Math.floor(t/1048576),"MB(").concat(t,"Byte)<br/>")+"已经下载:".concat(Math.floor(n/1048576),"MB(").concat(n,"Byte)<br/>")+"当前进度:".concat(o,"%<br/>下载中请勿操作浏览器!"),(function(){T=!1,i._p.alert("注意:刷新或离开页面会导致下载取消!<br/>再次点击下载按钮可查看下载进度。")})),t===n&&(i._p.alert("下载完成,请等待浏览器保存!"),E=!1)}({total:n,loaded:t,percent:Math.floor(100*t/n)})}},n.send(),E=!0,i.v0.info("准备开始下载")}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,u.h)({url:"https://api.bilibili.com/x/v1/dm/list.so?oid=".concat(e),dataType:"text"}).then((function(e){var r=$(e.replace(/[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f]/g,""));if(!r||!r.find("d")[0])return"callback"===n&&o?void o():void i.v0.warning("未发现弹幕");var a=r.find("d").map((function(e,t){var n=$(t),o=n.attr("p").split(","),i=0;return"4"===o[1]?i=2:"5"===o[1]&&(i=1),[{time:parseFloat(o[0]),type:i,color:parseInt(o[3]),text:n.text()}]})).get();a.sort((function(e,t){return e.time-t.time}));var l,c=function(e,t,n){var o,i,r,a,l=e.text,c=e.time,s=[0===e.type?(i=50*(1+Math.floor(15*Math.random())),r=1920+50*e.text.length/2,a=0-50*e.text.length/2,"\\move(".concat(r,",").concat(i,",").concat(a,",").concat(i,")")):function(e,t){return"\\pos(".concat(t,",").concat(e,")")}(50*(1+n%15),960),(o=e.color,16777215===o?"":function(e){return"\\c&H".concat(((255&e)<<16|(e>>8&255)<<8|e>>16&255).toString(16),"&")}(e.color))],u=function(e){var t=function(e,t){return Math.floor(e/t)},n=function(e){return e<10?"0"+e:""+e},o=Math.floor(e),i=t(o,3600),r=t(o,60)%60,a=o%60,l=Math.floor(100*(e-o));return"".concat(i,":").concat(n(r),":").concat(n(a),".").concat(l)},d=[0,u(c),u(c+(0===e.type?8:4)),"Medium","","0","0","0","","{"+s.join("")+"}"+function(e){return e.replace(/\{/g,"{").replace(/\}/g,"}").replace(/\r|\n/g,"")}(l)];return"Dialogue: "+d.join(",")},s=["[Script Info]","; Script generated by injahow/user.js","; https://github.com/injahow/user.js","Title: ".concat(t),"ScriptType: v4.00+","PlayResX: ".concat(1920),"PlayResY: ".concat(1080),"Timer: 10.0000","WrapStyle: 2","ScaledBorderAndShadow: no","","[V4+ Styles]","Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding","Style: Small,微软雅黑,36,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,0,0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0","Style: Medium,微软雅黑,52,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,0,0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0","Style: Large,微软雅黑,64,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,0,0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0","Style: Larger,微软雅黑,72,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,0,0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0","Style: ExtraLarge,微软雅黑,90,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,0,0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0","","[Events]","Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text"],u=0,d=x(a);try{for(d.s();!(l=d.n()).done;){var p=l.value;0===p.type?0:u++,s.push(c(p,0,u))}}catch(e){d.e(e)}finally{d.f()}var f=s.join("\n");if(null===n||"file"===n){var _=URL.createObjectURL(new Blob([f],{type:"text/ass"})),h=document.createElement("a");h.style.display="none",h.href=_,h.download=t+".ass",h.click(),URL.revokeObjectURL(_)}else"callback"===n&&o&&o(f)})).catch((function(e){"callback"===n&&o&&o()}))}function I(e,t){A(e,t,"file")}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=function(e){if(e){var n=document.createElement("a");n.setAttribute("target","_blank"),n.setAttribute("href",e),n.setAttribute("download",t+".vtt"),n.click(),URL.revokeObjectURL(e)}else i.v0.warning("未发现字幕")};h.get_subtitle_url(e,n)}function L(e,t){if(e){var n=URL.createObjectURL(e),o=document.createElement("a");o.setAttribute("target","_blank"),o.setAttribute("href",n),o.setAttribute("download",t+".zip"),o.click(),URL.revokeObjectURL(n)}}function R(e,t){if(e){if(0===e.length)return 0===Object.keys(t.files).length?void i.v0.warning("未发现弹幕"):void t.generateAsync({type:"blob"}).then((function(e){return L(e,l.base().name+"_ass")}));var n=e.pop();A(n.cid,n.filename,"callback",(function(o){o&&t.file(n.filename+".ass",o),R(e,t)}))}}function M(e,t){if(e){if(0===e.length)return 0===Object.keys(t.files).length?void i.v0.warning("未发现字幕"):void t.generateAsync({type:"blob"}).then((function(e){return L(e,l.base().name+"_vtt")}));var n=e.pop();h.get_subtitle_data(n.p,(function(o){o&&t.file(n.filename+".vtt",o),M(e,t)}))}}function U(e){return e.match(".flv")?".flv":e.match(".m4s")?"_video.mp4":(e.match(".mp4"),".mp4")}var q={url_format:U,download:function(t,n,o){var r=(n=n.replace(/[\/\\*|]+/g,"-").replace(/:/g,":").replace(/\?/g,"?").replace(/"/g,"'").replace(/</g,"《").replace(/>/g,"》"))+U(t);"blob"===o?F(t,r):"rpc"===o&&function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"post";if(O)i.v0.miaow();else{O=!0;var r={domain:e.config.rpc_domain,port:e.config.rpc_port,token:e.config.rpc_token,dir:e.config.rpc_dir},a={id:window.btoa("BParse_".concat(Date.now(),"_").concat(Math.random())),jsonrpc:"2.0",method:"aria2.addUri",params:["token:".concat(r.token),[t],{dir:r.dir,out:n,header:["User-Agent: ".concat(window.navigator.userAgent),"Referer: ".concat(window.location.href)]}]};if(i.v0.info("发送RPC下载请求"),"post"===o)(0,u.h)({url:"".concat(r.domain,":").concat(r.port,"/jsonrpc"),type:"POST",dataType:"json",data:JSON.stringify(a)}).then((function(e){e.result?i.v0.success("RPC请求成功"):i.v0.warning("请检查RPC参数")})).catch((function(e){i.v0.error("请检查RPC服务配置")})).finally((function(e){return O=!1}));else if("ariang"===o){var l=window.bp_aria2_window,c=100;l&&!l.closed||(P(),c=3e3),setTimeout((function(){var o=window.bp_aria2_window,r="header=User-Agent:".concat(window.navigator.userAgent,"&header=Referer:").concat(window.location.href),a="#!/new/task?url=".concat(window.btoa(t),"&out=").concat(encodeURIComponent(n),"&").concat(r);o&&!o.closed?(o.location.href=e.config.ariang_host+a,i.v0.success("RPC请求发送成功")):i.v0.warning("AriaNG页面未打开"),O=!1}),c)}}}(t,r,C())},download_all:function(){var t=l.base(),n=[l.get_quality().q,t.total()],o=n[0],r=n[1];$("body").on("click",'input[name="option_video"]',(function(){$(this).is(":checked")?$(this).parent().css("color","rgba(0,0,0,1)"):$(this).parent().css("color","rgba(0,0,0,0.5)")}));for(var a="",c=0;c<r;c++)a+=""+'<label for="option_'.concat(c,'"><div style="color:rgba(0,0,0,0.5);">\n                <input type="checkbox" id="option_').concat(c,'" name="option_video" value="').concat(c,'">\n                P').concat(c+1," ").concat(t.title(c+1),"\n            </div></label>");var s=!1;$("body").on("click","button#checkbox_btn",(function(){s?(s=!1,$('input[name="option_video"]').prop("checked",s),$('input[name="option_video"]').parent().css("color","rgba(0,0,0,0.5)")):(s=!0,$('input[name="option_video"]').prop("checked",s),$('input[name="option_video"]').parent().css("color","rgb(0,0,0)"))}));var d,p={120:"4K 超清",116:"1080P 60帧",112:"1080P 高码率",80:"1080P 高清",74:"720P 60帧",64:"720P 高清",48:"720P 高清(MP4)",32:"480P 清晰",16:"360P 流畅"},f="",_=x(l.get_quality_support());try{for(_.s();!(d=_.n()).done;){var v=d.value;f+='<option value="'.concat(v,'">').concat(p[v],"</option>")}}catch(e){_.e(e)}finally{_.f()}var g=""+'<div style="margin:2% 0;">\n            <label>视频格式:</label>\n            <select id="dl_format">\n                <option value="flv" selected>FLV</option>\n                <option value="mp4">MP4</option>\n            </select>\n            &nbsp;&nbsp;仅video类型支持mp4\n        </div>\n        <div style="margin:2% 0;">\n            <label>视频质量:</label>\n            <select id="dl_quality">\n                '.concat(f,'\n            </select>\n        </div>\n        <div style="margin:2% 0;">\n            <label>下载选择:</label>\n            <label style="color:rgba(0,0,0,1);">\n                <input type="checkbox" id="dl_video" name="dl_option" checked="checked">\n                <label for="dl_video" >视频</label>\n            </label>\n            <label style="color:rgba(0,0,0,0.5);">\n                <input type="checkbox" id="dl_subtitle" name="dl_option">\n                <label for="dl_subtitle">字幕</label>\n            </label>\n            <label style="color:rgba(0,0,0,0.5);">\n                <input type="checkbox" id="dl_danmaku" name="dl_option">\n                <label for="dl_danmaku">弹幕</label>\n            </label>\n        </div>\n        <b>\n            <span style="color:red;">为避免请求被拦截,设置了延时且不支持下载无法播放的视频;请勿频繁下载过多视频,可能触发风控导致不可再下载!</span>\n        </b><br />\n        <div style="height:220px;width:100%;overflow:auto;background:rgba(0,0,0,0.1);">\n            ').concat(a,"\n        </div>\n        <div>").concat("medialist"===l.type()?"不支持多页视频,若需要请到视频原播放页面下载":"",'</div>\n        <div style="margin:2% 0;">\n            <button id="checkbox_btn">全选</button>\n        </div>');function m(t,n,o){if(t.length)if(n<t.length){var r=t[n],a="第".concat(n+1,"(").concat(n+1,"/").concat(t.length,")个视频");i._p.alert("".concat(a,":获取中...")),setTimeout((function(){h.get_urls(r.p,r.q,r.format,(function(l){if(!l.code){i.v0.success("请求成功"+(l.times?"<br/>今日剩余请求次数".concat(l.times):"")),i._p.alert("".concat(a,":获取成功!"));var c=[l.url,U(l.url),C()],s=c[0],u=c[1],d=c[2];"post"===d?(o.push({url:s,filename:r.filename+u}),o.length>3&&(b(o),o.length=0)):"ariang"===d&&function(t){var n=window.bp_aria2_window,o=100;n&&!n.closed||(P(),o=3e3);setTimeout((function(){var n=window.bp_aria2_window,o="header=User-Agent:".concat(window.navigator.userAgent,"&header=Referer:").concat(window.location.href);if(n&&!n.closed){var r="#!/new/task?url=".concat(window.btoa(t.url),"&out=").concat(encodeURIComponent(t.filename),"&").concat(o);n.location.href=e.config.ariang_host+r,i.v0.success("RPC请求成功")}else i.v0.warning("请检查RPC参数")}),o)}({url:s,filename:r.filename+u})}setTimeout((function(){m(t,++n,o)}),3e3)}),(function(){m(t,++n,o)}))}),3e3)}else i._p.alert("视频地址请求完成!"),"post"===C()&&o.length>0&&(b(o),o.length=0)}function b(t){var n,o={domain:e.config.rpc_domain,port:e.config.rpc_port,token:e.config.rpc_token,dir:e.config.rpc_dir},r=[],a=x(t);try{for(a.s();!(n=a.n()).done;){var l=n.value;r.push({id:window.btoa("BParse_".concat(Date.now(),"_").concat(Math.random())),jsonrpc:"2.0",method:"aria2.addUri",params:["token:".concat(o.token),[l.url],{dir:o.dir,out:l.filename,header:["User-Agent: ".concat(window.navigator.userAgent),"Referer: ".concat(window.location.href)]}]})}}catch(e){a.e(e)}finally{a.f()}i.v0.info("发送RPC下载请求"),(0,u.h)({url:"".concat(o.domain,":").concat(o.port,"/jsonrpc"),type:"POST",dataType:"json",data:JSON.stringify(r)}).then((function(e){e.length===r.length?i.v0.success("RPC请求成功"):i.v0.warning("请检查RPC参数")})).catch((function(e){i.v0.error("请检查RPC服务配置")}))}i._p.confirm(g,(function(){for(var e=$("#dl_quality").val()||o,n=[$("#dl_video").is(":checked"),$("#dl_subtitle").is(":checked"),$("#dl_danmaku").is(":checked")],i=n[0],a=n[1],l=n[2],c=[],s=0;s<r;s++)if($("input#option_".concat(s)).is(":checked")){var u=s+1,d=[t.cid(u),t.filename(u)],p=d[0],f=d[1],_=$("#dl_format").val();c.push({cid:p,p:u,q:e,format:_,filename:f})}i&&m(c,0,[]),a&&(1===c.length?j(c[0].p,c[0].filename):M([].concat(c),new k.$)),l&&(1===c.length?I(c[0].cid,c[0].filename):R([].concat(c),new k.$))})),$("body").on("click",'input[name="dl_option"]',(function(){$(this).is(":checked")?$(this).parent().css("color","rgba(0,0,0,1)"):$(this).parent().css("color","rgba(0,0,0,0.5)")})),$("#dl_quality").val(o>120?80:o)},download_danmaku_ass:I,download_subtitle_vtt:j,open_ariang:P},D=__webpack_require__(378);function N(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var V=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.auth_clicked=!1}var n,r,a;return n=t,r=[{key:"reLogin",value:function(){o.set("auth_id",""),o.set("auth_sec",""),o.set("access_key",""),o.set("auth_time","0"),this.login()}},{key:"checkLoginStatus",value:function(){var t=this,n=[o.get("auth_id"),o.get("auth_sec"),o.get("access_key"),o.get("auth_time")||"0"],r=n[0],a=n[1],l=n[2],c=n[3];l&&(s.is_login&&(e.config.base_api!==o.get("pre_base_api")||Date.now()-parseInt(c)>864e5)&&(0,u.h)({url:"https://api.bilibili.com/x/space/myinfo?access_key=".concat(l),type:"GET",dataType:"json"}).then((function(n){if(!n.code)return o.set("auth_time",Date.now()),(0,u.h)({url:"".concat(e.config.base_api,"/auth/v2/?act=check&auth_id=").concat(r,"&auth_sec=").concat(a,"&access_key=").concat(l),type:"GET",dataType:"json"});i._p.alert("授权已过期,准备重新授权",t.reLogin)})).then((function(e){e.code&&i._p.alert("授权检查失败,准备重新授权",t.reLogin)})),o.set("pre_base_api",e.config.base_api))}},{key:"_login",value:function(e){var t=this;this.auth_clicked?i.v0.miaow():(this.auth_clicked=!0,(0,u.h)({url:"https://passport.bilibili.com/login/app/third?appkey=27eb53fc9058f8c3&api=https%3A%2F%2Fwww.mcbbs.net%2Ftemplate%2Fmcbbs%2Fimage%2Fspecial_photo_bg.png&sign=04224646d1fea004e79606d3b038c84a",xhrFields:{withCredentials:!0},type:"GET",dataType:"json"}).then(e).finally((function(e){return t.auth_clicked=!1})))}},{key:"login",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1",t="1"===e?this.loginAuto.bind(this):this.loginManual.bind(this);o.get("auth_id")?i._p.confirm("发现授权记录,是否重新授权?",t):t()}},{key:"loginAuto",value:function(){this._login((function(e){e.data.has_login?$("body").append("<iframe id='auth_iframe' src='".concat(e.data.confirm_uri,"' style='display:none;'></iframe>")):i._p.confirm("必须登录B站才能正常授权,是否登陆?",(function(){location.href="https://passport.bilibili.com/login"}))}))}},{key:"loginManual",value:function(){this._login((function(t){if(t.data.has_login){var n=""+"请点击<b><a href='".concat(t.data.confirm_uri,"' target='_blank'>授权地址</a></b>\n                    打开一个新窗口,正常情况新窗口应该显示一个图片,请将该窗口地址栏的URL链接复制到当前文本框中<br/>\n                    <input id='auth_url' style='width:100%;' type='text' autocomplete='off'><br>然后点击确定即可");i._p.alert(n,(function(){var t=$("#auth_url").val(),n=o.get("auth_id")||"",r=o.get("auth_sec")||"";(0,u.h)({url:t.replace("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?","".concat(e.config.base_api,"/auth/v2/?act=login&auth_id=").concat(n,"&auth_sec=").concat(r,"&")),type:"GET",dataType:"json"}).then((function(n){n.code?i.v0.warning("授权失败"):(i.v0.success("授权成功"),n.auth_id&&n.auth_sec&&(o.set("auth_id",n.auth_id),o.set("auth_sec",n.auth_sec)),o.set("access_key",new URL(t).searchParams.get("access_key")),o.set("auth_time",Date.now()),$("#auth").val("1"),e.config.auth="1")}))}))}else i._p.confirm("必须登录B站才能正常授权,是否登陆?",(function(){location.href="https://passport.bilibili.com/login"}))}))}},{key:"logout",value:function(){var t=this;if(o.get("auth_id"))if(this.auth_clicked)i.v0.miaow();else{var n=[o.get("auth_id"),o.get("auth_sec")],r=n[0],a=n[1];(0,u.h)({url:"".concat(e.config.base_api,"/auth/v2/?act=logout&auth_id=").concat(r,"&auth_sec=").concat(a),type:"GET",dataType:"json"}).then((function(t){t.code?i.v0.warning("取消失败"):(i.v0.success("取消成功"),o.set("auth_id",""),o.set("auth_sec",""),o.set("auth_time","0"),o.set("access_key",""),$("#auth").val("0"),e.config.auth="0")})).finally((function(e){return t.auth_clicked=!1}))}else i._p.alert("没有发现授权记录")}},{key:"initAuth",value:function(){var t=this;window.addEventListener("message",(function(n){if("string"==typeof n.data&&"bilibili-parse-login-credentials"===n.data.split(":")[0]){$("iframe#auth_iframe").remove();var r=n.data.split(": ")[1],a=[o.get("auth_id"),o.get("auth_sec")],l=a[0],c=a[1];(0,u.h)({url:r.replace("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?","".concat(e.config.base_api,"/auth/v2/?act=login&auth_id=").concat(l,"&auth_sec=").concat(c,"&")),type:"GET",dataType:"json"}).then((function(t){t.code?i.v0.warning("授权失败"):(i.v0.success("授权成功"),t.auth_id&&t.auth_sec&&(o.set("auth_id",t.auth_id),o.set("auth_sec",t.auth_sec)),o.set("access_key",new URL(r).searchParams.get("access_key")),o.set("auth_time",Date.now()),$("#auth").val("1"),e.config.auth="1")})).finally((function(e){return t.auth_clicked=!1}))}}))}}],r&&N(n.prototype,r),a&&N(n,a),Object.defineProperty(n,"prototype",{writable:!1}),t}(),z=new V;function B(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var H=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.aid="",this.cid="",this.q="",this.epid=""}var t,n,o;return t=e,(n=[{key:"refresh",value:function(){console.log("refresh..."),$("#video_download").hide(),$("#video_download_2").hide(),w.recover_player();var e=l.base();this.aid=e.aid(),this.cid=e.cid(),this.epid=e.epid(),this.q=l.get_quality().q,window.bp_episodes=null}}])&&B(t.prototype,n),o&&B(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}());function W(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const G="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",J=W(G);function K(e){return!!e||""===e}function Z(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=ge(o)?Q(o):Z(o);if(i)for(const e in i)t[e]=i[e]}return t}return ge(e)||be(e)?e:void 0}const Y=/;(?![^(]*\))/g,X=/:(.+)/;function Q(e){const t={};return e.split(Y).forEach((e=>{if(e){const n=e.split(X);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ee(e){let t="";if(ge(e))t=e;else if(fe(e))for(let n=0;n<e.length;n++){const o=ee(e[n]);o&&(t+=o+" ")}else if(be(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const te=(e,t)=>t&&t.__v_isRef?te(e,t.value):_e(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:he(t)?{[`Set(${t.size})`]:[...t.values()]}:!be(t)||fe(t)||xe(t)?t:String(t),ne={},oe=[],ie=()=>{},re=()=>!1,ae=/^on[^a-z]/,le=e=>ae.test(e),ce=e=>e.startsWith("onUpdate:"),se=Object.assign,ue=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},de=Object.prototype.hasOwnProperty,pe=(e,t)=>de.call(e,t),fe=Array.isArray,_e=e=>"[object Map]"===ke(e),he=e=>"[object Set]"===ke(e),ve=e=>"function"==typeof e,ge=e=>"string"==typeof e,me=e=>"symbol"==typeof e,be=e=>null!==e&&"object"==typeof e,ye=e=>be(e)&&ve(e.then)&&ve(e.catch),we=Object.prototype.toString,ke=e=>we.call(e),xe=e=>"[object Object]"===ke(e),Se=e=>ge(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,$e=W(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ce=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Oe=/-(\w)/g,Pe=Ce((e=>e.replace(Oe,((e,t)=>t?t.toUpperCase():"")))),Ee=/\B([A-Z])/g,Te=Ce((e=>e.replace(Ee,"-$1").toLowerCase())),Fe=Ce((e=>e.charAt(0).toUpperCase()+e.slice(1))),Ae=Ce((e=>e?`on${Fe(e)}`:"")),Ie=(e,t)=>!Object.is(e,t),je=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Le=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Re=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Me;const Ue=()=>Me||(Me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:{});let qe;class De{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&qe&&(this.parent=qe,this.index=(qe.scopes||(qe.scopes=[])).push(this)-1)}run(e){if(this.active){const t=qe;try{return qe=this,e()}finally{qe=t}}else 0}on(){qe=this}off(){qe=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function Ne(e,t=qe){t&&t.active&&t.effects.push(e)}const Ve=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ze=e=>(e.w&Ge)>0,Be=e=>(e.n&Ge)>0,He=new WeakMap;let We=0,Ge=1;let Je;const Ke=Symbol(""),Ze=Symbol("");class Ye{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,Ne(this,n)}run(){if(!this.active)return this.fn();let e=Je,t=Qe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Je,Je=this,Qe=!0,Ge=1<<++We,We<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ge})(this):Xe(this),this.fn()}finally{We<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const i=t[o];ze(i)&&!Be(i)?i.delete(e):t[n++]=i,i.w&=~Ge,i.n&=~Ge}t.length=n}})(this),Ge=1<<--We,Je=this.parent,Qe=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Je===this?this.deferStop=!0:this.active&&(Xe(this),this.onStop&&this.onStop(),this.active=!1)}}function Xe(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Qe=!0;const et=[];function tt(){et.push(Qe),Qe=!1}function nt(){const e=et.pop();Qe=void 0===e||e}function ot(e,t,n){if(Qe&&Je){let t=He.get(e);t||He.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Ve());it(o,void 0)}}function it(e,t){let n=!1;We<=30?Be(e)||(e.n|=Ge,n=!ze(e)):n=!e.has(Je),n&&(e.add(Je),Je.deps.push(e))}function rt(e,t,n,o,i,r){const a=He.get(e);if(!a)return;let l=[];if("clear"===t)l=[...a.values()];else if("length"===n&&fe(e))a.forEach(((e,t)=>{("length"===t||t>=o)&&l.push(e)}));else switch(void 0!==n&&l.push(a.get(n)),t){case"add":fe(e)?Se(n)&&l.push(a.get("length")):(l.push(a.get(Ke)),_e(e)&&l.push(a.get(Ze)));break;case"delete":fe(e)||(l.push(a.get(Ke)),_e(e)&&l.push(a.get(Ze)));break;case"set":_e(e)&&l.push(a.get(Ke))}if(1===l.length)l[0]&&at(l[0]);else{const e=[];for(const t of l)t&&e.push(...t);at(Ve(e))}}function at(e,t){for(const t of fe(e)?e:[...e])(t!==Je||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const lt=W("__proto__,__v_isRef,__isVue"),ct=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(me)),st=_t(),ut=_t(!1,!0),dt=_t(!0),pt=ft();function ft(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Xt(this);for(let e=0,t=this.length;e<t;e++)ot(n,0,e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Xt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){tt();const n=Xt(this)[t].apply(this,e);return nt(),n}})),e}function _t(e=!1,t=!1){return function(n,o,i){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&i===(e?t?zt:Vt:t?Nt:Dt).get(n))return n;const r=fe(n);if(!e&&r&&pe(pt,o))return Reflect.get(pt,o,i);const a=Reflect.get(n,o,i);if(me(o)?ct.has(o):lt(o))return a;if(e||ot(n,0,o),t)return a;if(rn(a)){return!r||!Se(o)?a.value:a}return be(a)?e?Wt(a):Ht(a):a}}function ht(e=!1){return function(t,n,o,i){let r=t[n];if(Kt(r)&&rn(r)&&!rn(o))return!1;if(!e&&!Kt(o)&&(Zt(o)||(o=Xt(o),r=Xt(r)),!fe(t)&&rn(r)&&!rn(o)))return r.value=o,!0;const a=fe(t)&&Se(n)?Number(n)<t.length:pe(t,n),l=Reflect.set(t,n,o,i);return t===Xt(i)&&(a?Ie(o,r)&&rt(t,"set",n,o):rt(t,"add",n,o)),l}}const vt={get:st,set:ht(),deleteProperty:function(e,t){const n=pe(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&rt(e,"delete",t,void 0),o},has:function(e,t){const n=Reflect.has(e,t);return me(t)&&ct.has(t)||ot(e,0,t),n},ownKeys:function(e){return ot(e,0,fe(e)?"length":Ke),Reflect.ownKeys(e)}},gt={get:dt,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},mt=se({},vt,{get:ut,set:ht(!0)}),bt=e=>e,yt=e=>Reflect.getPrototypeOf(e);function wt(e,t,n=!1,o=!1){const i=Xt(e=e.__v_raw),r=Xt(t);t!==r&&!n&&ot(i,0,t),!n&&ot(i,0,r);const{has:a}=yt(i),l=o?bt:n?tn:en;return a.call(i,t)?l(e.get(t)):a.call(i,r)?l(e.get(r)):void(e!==i&&e.get(t))}function kt(e,t=!1){const n=this.__v_raw,o=Xt(n),i=Xt(e);return e!==i&&!t&&ot(o,0,e),!t&&ot(o,0,i),e===i?n.has(e):n.has(e)||n.has(i)}function xt(e,t=!1){return e=e.__v_raw,!t&&ot(Xt(e),0,Ke),Reflect.get(e,"size",e)}function St(e){e=Xt(e);const t=Xt(this);return yt(t).has.call(t,e)||(t.add(e),rt(t,"add",e,e)),this}function $t(e,t){t=Xt(t);const n=Xt(this),{has:o,get:i}=yt(n);let r=o.call(n,e);r||(e=Xt(e),r=o.call(n,e));const a=i.call(n,e);return n.set(e,t),r?Ie(t,a)&&rt(n,"set",e,t):rt(n,"add",e,t),this}function Ct(e){const t=Xt(this),{has:n,get:o}=yt(t);let i=n.call(t,e);i||(e=Xt(e),i=n.call(t,e));o&&o.call(t,e);const r=t.delete(e);return i&&rt(t,"delete",e,void 0),r}function Ot(){const e=Xt(this),t=0!==e.size,n=e.clear();return t&&rt(e,"clear",void 0,void 0),n}function Pt(e,t){return function(n,o){const i=this,r=i.__v_raw,a=Xt(r),l=t?bt:e?tn:en;return!e&&ot(a,0,Ke),r.forEach(((e,t)=>n.call(o,l(e),l(t),i)))}}function Et(e,t,n){return function(...o){const i=this.__v_raw,r=Xt(i),a=_e(r),l="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,s=i[e](...o),u=n?bt:t?tn:en;return!t&&ot(r,0,c?Ze:Ke),{next(){const{value:e,done:t}=s.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Tt(e){return function(...t){return"delete"!==e&&this}}function Ft(){const e={get(e){return wt(this,e)},get size(){return xt(this)},has:kt,add:St,set:$t,delete:Ct,clear:Ot,forEach:Pt(!1,!1)},t={get(e){return wt(this,e,!1,!0)},get size(){return xt(this)},has:kt,add:St,set:$t,delete:Ct,clear:Ot,forEach:Pt(!1,!0)},n={get(e){return wt(this,e,!0)},get size(){return xt(this,!0)},has(e){return kt.call(this,e,!0)},add:Tt("add"),set:Tt("set"),delete:Tt("delete"),clear:Tt("clear"),forEach:Pt(!0,!1)},o={get(e){return wt(this,e,!0,!0)},get size(){return xt(this,!0)},has(e){return kt.call(this,e,!0)},add:Tt("add"),set:Tt("set"),delete:Tt("delete"),clear:Tt("clear"),forEach:Pt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Et(i,!1,!1),n[i]=Et(i,!0,!1),t[i]=Et(i,!1,!0),o[i]=Et(i,!0,!0)})),[e,n,t,o]}const[At,It,jt,Lt]=Ft();function Rt(e,t){const n=t?e?Lt:jt:e?It:At;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(pe(n,o)&&o in t?n:t,o,i)}const Mt={get:Rt(!1,!1)},Ut={get:Rt(!1,!0)},qt={get:Rt(!0,!1)};const Dt=new WeakMap,Nt=new WeakMap,Vt=new WeakMap,zt=new WeakMap;function Bt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>ke(e).slice(8,-1))(e))}function Ht(e){return Kt(e)?e:Gt(e,!1,vt,Mt,Dt)}function Wt(e){return Gt(e,!0,gt,qt,Vt)}function Gt(e,t,n,o,i){if(!be(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const a=Bt(e);if(0===a)return e;const l=new Proxy(e,2===a?o:n);return i.set(e,l),l}function Jt(e){return Kt(e)?Jt(e.__v_raw):!(!e||!e.__v_isReactive)}function Kt(e){return!(!e||!e.__v_isReadonly)}function Zt(e){return!(!e||!e.__v_isShallow)}function Yt(e){return Jt(e)||Kt(e)}function Xt(e){const t=e&&e.__v_raw;return t?Xt(t):e}function Qt(e){return Le(e,"__v_skip",!0),e}const en=e=>be(e)?Ht(e):e,tn=e=>be(e)?Wt(e):e;function nn(e){Qe&&Je&&it((e=Xt(e)).dep||(e.dep=Ve()))}function on(e,t){(e=Xt(e)).dep&&at(e.dep)}function rn(e){return!(!e||!0!==e.__v_isRef)}const an={get:(e,t,n)=>function(e){return rn(e)?e.value:e}(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return rn(i)&&!rn(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function ln(e){return Jt(e)?e:new Proxy(e,an)}class cn{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Ye(e,(()=>{this._dirty||(this._dirty=!0,on(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Xt(this);return nn(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function sn(e,t,n,o){let i;try{i=o?e(...o):e()}catch(e){dn(e,t,n)}return i}function un(e,t,n,o){if(ve(e)){const i=sn(e,t,n,o);return i&&ye(i)&&i.catch((e=>{dn(e,t,n)})),i}const i=[];for(let r=0;r<e.length;r++)i.push(un(e[r],t,n,o));return i}function dn(e,t,n,o=!0){t&&t.vnode;if(t){let o=t.parent;const i=t.proxy,r=n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,r))return;o=o.parent}const a=t.appContext.config.errorHandler;if(a)return void sn(a,null,10,[e,i,r])}!function(e,t,n,o=!0){console.error(e)}(e,0,0,o)}let pn=!1,fn=!1;const _n=[];let hn=0;const vn=[];let gn=null,mn=0;const bn=[];let yn=null,wn=0;const kn=Promise.resolve();let xn=null,Sn=null;function $n(e){const t=xn||kn;return e?t.then(this?e.bind(this):e):t}function Cn(e){_n.length&&_n.includes(e,pn&&e.allowRecurse?hn+1:hn)||e===Sn||(null==e.id?_n.push(e):_n.splice(function(e){let t=hn+1,n=_n.length;for(;t<n;){const o=t+n>>>1;An(_n[o])<e?t=o+1:n=o}return t}(e.id),0,e),On())}function On(){pn||fn||(fn=!0,xn=kn.then(In))}function Pn(e,t,n,o){fe(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),On()}function En(e){Pn(e,yn,bn,wn)}function Tn(e,t=null){if(vn.length){for(Sn=t,gn=[...new Set(vn)],vn.length=0,mn=0;mn<gn.length;mn++)gn[mn]();gn=null,mn=0,Sn=null,Tn(e,t)}}function Fn(e){if(bn.length){const e=[...new Set(bn)];if(bn.length=0,yn)return void yn.push(...e);for(yn=e,yn.sort(((e,t)=>An(e)-An(t))),wn=0;wn<yn.length;wn++)yn[wn]();yn=null,wn=0}}const An=e=>null==e.id?1/0:e.id;function In(e){fn=!1,pn=!0,Tn(e),_n.sort(((e,t)=>An(e)-An(t)));try{for(hn=0;hn<_n.length;hn++){const e=_n[hn];e&&!1!==e.active&&sn(e,null,14)}}finally{hn=0,_n.length=0,Fn(),pn=!1,xn=null,(_n.length||vn.length||bn.length)&&In(e)}}new Set;new Map;let jn,Ln=[],Rn=!1;function Mn(e,...t){jn?jn.emit(e,...t):Rn||Ln.push({event:e,args:t})}function Un(e,t){var n,o;if(jn=e,jn)jn.enabled=!0,Ln.forEach((({event:e,args:t})=>jn.emit(e,...t))),Ln=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(o=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===o?void 0:o.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{Un(e,t)})),setTimeout((()=>{jn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Rn=!0,Ln=[])}),3e3)}else Rn=!0,Ln=[]}const qn=Vn("component:added"),Dn=Vn("component:updated"),Nn=Vn("component:removed");function Vn(e){return t=>{Mn(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function zn(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ne;let i=n;const r=t.startsWith("update:"),a=r&&t.slice(7);if(a&&a in o){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:r}=o[e]||ne;r?i=n.map((e=>e.trim())):t&&(i=n.map(Re))}let l;__VUE_PROD_DEVTOOLS__&&function(e,t,n){Mn("component:emit",e.appContext.app,e,t,n)}(e,t,i);let c=o[l=Ae(t)]||o[l=Ae(Pe(t))];!c&&r&&(c=o[l=Ae(Te(t))]),c&&un(c,e,6,i);const s=o[l+"Once"];if(s){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,un(s,e,6,i)}}function Bn(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(void 0!==i)return i;const r=e.emits;let a={},l=!1;if(__VUE_OPTIONS_API__&&!ve(e)){const o=e=>{const n=Bn(e,t,!0);n&&(l=!0,se(a,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return r||l?(fe(r)?r.forEach((e=>a[e]=null)):se(a,r),o.set(e,a),a):(o.set(e,null),null)}function Hn(e,t){return!(!e||!le(t))&&(t=t.slice(2).replace(/Once$/,""),pe(e,t[0].toLowerCase()+t.slice(1))||pe(e,Te(t))||pe(e,t))}let Wn=null,Gn=null;function Jn(e){const t=Wn;return Wn=e,Gn=e&&e.type.__scopeId||null,t}function Kn(e,t=Wn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Ei(-1);const i=Jn(t),r=e(...n);return Jn(i),o._d&&Ei(1),__VUE_PROD_DEVTOOLS__&&Dn(t),r};return o._n=!0,o._c=!0,o._d=!0,o}function Zn(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[a],slots:l,attrs:c,emit:s,render:u,renderCache:d,data:p,setupState:f,ctx:_,inheritAttrs:h}=e;let v,g;const m=Jn(e);try{if(4&n.shapeFlag){const e=i||o;v=zi(u.call(e,e,d,r,f,p,_)),g=c}else{const e=t;0,v=zi(e.length>1?e(r,{attrs:c,slots:l,emit:s}):e(r,null)),g=t.props?c:Yn(c)}}catch(t){Si.length=0,dn(t,e,1),v=Ui(ki)}let b=v;if(g&&!1!==h){const e=Object.keys(g),{shapeFlag:t}=b;e.length&&7&t&&(a&&e.some(ce)&&(g=Xn(g,a)),b=Di(b,g))}return n.dirs&&(b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),v=b,Jn(m),v}const Yn=e=>{let t;for(const n in e)("class"===n||"style"===n||le(n))&&((t||(t={}))[n]=e[n]);return t},Xn=(e,t)=>{const n={};for(const o in e)ce(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Qn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!Hn(n,r))return!0}return!1}function eo({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}function to(e,t){t&&t.pendingBranch?fe(e)?t.effects.push(...e):t.effects.push(e):En(e)}function no(e,t,n=!1){const o=er||Wn;if(o){const i=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ve(t)?t.call(o.proxy):t}else 0}const oo={};function io(e,t,n){return ro(e,t,n)}function ro(e,t,{immediate:n,deep:o,flush:i,onTrack:r,onTrigger:a}=ne){const l=er;let c,s,u=!1,d=!1;if(rn(e)?(c=()=>e.value,u=Zt(e)):Jt(e)?(c=()=>e,o=!0):fe(e)?(d=!0,u=e.some(Jt),c=()=>e.map((e=>rn(e)?e.value:Jt(e)?co(e):ve(e)?sn(e,l,2):void 0))):c=ve(e)?t?()=>sn(e,l,2):()=>{if(!l||!l.isUnmounted)return s&&s(),un(e,l,3,[p])}:ie,t&&o){const e=c;c=()=>co(e())}let p=e=>{s=v.onStop=()=>{sn(e,l,4)}};if(lr)return p=ie,t?n&&un(t,l,3,[c(),d?[]:void 0,p]):c(),ie;let f=d?[]:oo;const _=()=>{if(v.active)if(t){const e=v.run();(o||u||(d?e.some(((e,t)=>Ie(e,f[t]))):Ie(e,f)))&&(s&&s(),un(t,l,3,[e,f===oo?void 0:f,p]),f=e)}else v.run()};let h;_.allowRecurse=!!t,h="sync"===i?_:"post"===i?()=>hi(_,l&&l.suspense):()=>{!l||l.isMounted?function(e){Pn(e,gn,vn,mn)}(_):_()};const v=new Ye(c,h);return t?n?_():f=v.run():"post"===i?hi(v.run.bind(v),l&&l.suspense):v.run(),()=>{v.stop(),l&&l.scope&&ue(l.scope.effects,v)}}function ao(e,t,n){const o=this.proxy,i=ge(e)?e.includes(".")?lo(o,e):()=>o[e]:e.bind(o,o);let r;ve(t)?r=t:(r=t.handler,n=t);const a=er;nr(this);const l=ro(i,r.bind(o),n);return a?nr(a):or(),l}function lo(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function co(e,t){if(!be(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),rn(e))co(e.value,t);else if(fe(e))for(let n=0;n<e.length;n++)co(e[n],t);else if(he(e)||_e(e))e.forEach((e=>{co(e,t)}));else if(xe(e))for(const n in e)co(e[n],t);return e}function so(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Fo((()=>{e.isMounted=!0})),jo((()=>{e.isUnmounting=!0})),e}const uo=[Function,Array],po={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:uo,onEnter:uo,onAfterEnter:uo,onEnterCancelled:uo,onBeforeLeave:uo,onLeave:uo,onAfterLeave:uo,onLeaveCancelled:uo,onBeforeAppear:uo,onAppear:uo,onAfterAppear:uo,onAppearCancelled:uo},setup(e,{slots:t}){const n=tr(),o=so();let i;return()=>{const r=t.default&&mo(t.default(),!0);if(!r||!r.length)return;let a=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==ki){0,a=t,e=!0;break}}const l=Xt(e),{mode:c}=l;if(o.isLeaving)return ho(a);const s=vo(a);if(!s)return ho(a);const u=_o(s,l,o,n);go(s,u);const d=n.subTree,p=d&&vo(d);let f=!1;const{getTransitionKey:_}=s.type;if(_){const e=_();void 0===i?i=e:e!==i&&(i=e,f=!0)}if(p&&p.type!==ki&&(!Ii(s,p)||f)){const e=_o(p,l,o,n);if(go(p,e),"out-in"===c)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},ho(a);"in-out"===c&&s.type!==ki&&(e.delayLeave=(e,t,n)=>{fo(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return a}}};function fo(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function _o(e,t,n,o){const{appear:i,mode:r,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:s,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:_,onBeforeAppear:h,onAppear:v,onAfterAppear:g,onAppearCancelled:m}=t,b=String(e.key),y=fo(n,e),w=(e,t)=>{e&&un(e,o,9,t)},k={mode:r,persisted:a,beforeEnter(t){let o=l;if(!n.isMounted){if(!i)return;o=h||l}t._leaveCb&&t._leaveCb(!0);const r=y[b];r&&Ii(e,r)&&r.el._leaveCb&&r.el._leaveCb(),w(o,[t])},enter(e){let t=c,o=s,r=u;if(!n.isMounted){if(!i)return;t=v||c,o=g||s,r=m||u}let a=!1;const l=e._enterCb=t=>{a||(a=!0,w(t?r:o,[e]),k.delayedLeave&&k.delayedLeave(),e._enterCb=void 0)};t?(t(e,l),t.length<=1&&l()):l()},leave(t,o){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();w(d,[t]);let r=!1;const a=t._leaveCb=n=>{r||(r=!0,o(),w(n?_:f,[t]),t._leaveCb=void 0,y[i]===e&&delete y[i])};y[i]=e,p?(p(t,a),p.length<=1&&a()):a()},clone:e=>_o(e,t,n,o)};return k}function ho(e){if(yo(e))return(e=Di(e)).children=null,e}function vo(e){return yo(e)?e.children?e.children[0]:void 0:e}function go(e,t){6&e.shapeFlag&&e.component?go(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function mo(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let a=e[r];const l=null==n?a.key:String(n)+String(null!=a.key?a.key:r);a.type===yi?(128&a.patchFlag&&i++,o=o.concat(mo(a.children,t,l))):(t||a.type!==ki)&&o.push(null!=l?Di(a,{key:l}):a)}if(i>1)for(let e=0;e<o.length;e++)o[e].patchFlag=-2;return o}const bo=e=>!!e.type.__asyncLoader;const yo=e=>e.type.__isKeepAlive;RegExp,RegExp;function wo(e,t){return fe(e)?e.some((e=>wo(e,t))):ge(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function ko(e,t){So(e,"a",t)}function xo(e,t){So(e,"da",t)}function So(e,t,n=er){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Po(t,o,n),n){let e=n.parent;for(;e&&e.parent;)yo(e.parent.vnode)&&$o(o,t,n,e),e=e.parent}}function $o(e,t,n,o){const i=Po(t,e,o,!0);Lo((()=>{ue(o[t],i)}),n)}function Co(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Oo(e){return 128&e.shapeFlag?e.ssContent:e}function Po(e,t,n=er,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;tt(),nr(n);const i=un(t,n,e,o);return or(),nt(),i});return o?i.unshift(r):i.push(r),r}}const Eo=e=>(t,n=er)=>(!lr||"sp"===e)&&Po(e,t,n),To=Eo("bm"),Fo=Eo("m"),Ao=Eo("bu"),Io=Eo("u"),jo=Eo("bum"),Lo=Eo("um"),Ro=Eo("sp"),Mo=Eo("rtg"),Uo=Eo("rtc");function qo(e,t=er){Po("ec",e,t)}let Do=!0;function No(e){const t=Bo(e),n=e.proxy,o=e.ctx;Do=!1,t.beforeCreate&&Vo(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:a,watch:l,provide:c,inject:s,created:u,beforeMount:d,mounted:p,beforeUpdate:f,updated:_,activated:h,deactivated:v,beforeDestroy:g,beforeUnmount:m,destroyed:b,unmounted:y,render:w,renderTracked:k,renderTriggered:x,errorCaptured:S,serverPrefetch:$,expose:C,inheritAttrs:O,components:P,directives:E,filters:T}=t;if(s&&function(e,t,n=ie,o=!1){fe(e)&&(e=Jo(e));for(const n in e){const i=e[n];let r;r=be(i)?"default"in i?no(i.from||n,i.default,!0):no(i.from||n):no(i),rn(r)&&o?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(s,o,null,e.appContext.config.unwrapInjectedRef),a)for(const e in a){const t=a[e];ve(t)&&(o[e]=t.bind(n))}if(i){0;const t=i.call(n,n);0,be(t)&&(e.data=Ht(t))}if(Do=!0,r)for(const e in r){const t=r[e],i=ve(t)?t.bind(n,n):ve(t.get)?t.get.bind(n,n):ie;0;const a=!ve(t)&&ve(t.set)?t.set.bind(n):ie,l=hr({get:i,set:a});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(l)for(const e in l)zo(l[e],o,n,e);if(c){const e=ve(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{!function(e,t){if(er){let n=er.provides;const o=er.parent&&er.parent.provides;o===n&&(n=er.provides=Object.create(o)),n[e]=t}}(t,e[t])}))}function F(e,t){fe(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&Vo(u,e,"c"),F(To,d),F(Fo,p),F(Ao,f),F(Io,_),F(ko,h),F(xo,v),F(qo,S),F(Uo,k),F(Mo,x),F(jo,m),F(Lo,y),F(Ro,$),fe(C))if(C.length){const t=e.exposed||(e.exposed={});C.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===ie&&(e.render=w),null!=O&&(e.inheritAttrs=O),P&&(e.components=P),E&&(e.directives=E)}function Vo(e,t,n){un(fe(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function zo(e,t,n,o){const i=o.includes(".")?lo(n,o):()=>n[o];if(ge(e)){const n=t[e];ve(n)&&io(i,n)}else if(ve(e))io(i,e.bind(n));else if(be(e))if(fe(e))e.forEach((e=>zo(e,t,n,o)));else{const o=ve(e.handler)?e.handler.bind(n):t[e.handler];ve(o)&&io(i,o,e)}else 0}function Bo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:a}}=e.appContext,l=r.get(t);let c;return l?c=l:i.length||n||o?(c={},i.length&&i.forEach((e=>Ho(c,e,a,!0))),Ho(c,t,a)):c=t,r.set(t,c),c}function Ho(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&Ho(e,r,n,!0),i&&i.forEach((t=>Ho(e,t,n,!0)));for(const i in t)if(o&&"expose"===i);else{const o=Wo[i]||n&&n[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const Wo={data:Go,props:Zo,emits:Zo,methods:Zo,computed:Zo,beforeCreate:Ko,created:Ko,beforeMount:Ko,mounted:Ko,beforeUpdate:Ko,updated:Ko,beforeDestroy:Ko,beforeUnmount:Ko,destroyed:Ko,unmounted:Ko,activated:Ko,deactivated:Ko,errorCaptured:Ko,serverPrefetch:Ko,components:Zo,directives:Zo,watch:function(e,t){if(!e)return t;if(!t)return e;const n=se(Object.create(null),e);for(const o in t)n[o]=Ko(e[o],t[o]);return n},provide:Go,inject:function(e,t){return Zo(Jo(e),Jo(t))}};function Go(e,t){return t?e?function(){return se(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function Jo(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ko(e,t){return e?[...new Set([].concat(e,t))]:t}function Zo(e,t){return e?se(se(Object.create(null),e),t):t}function Yo(e,t,n,o=!1){const i={},r={};Le(r,ji,1),e.propsDefaults=Object.create(null),Xo(e,t,i,r);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=o?i:Gt(i,!1,mt,Ut,Nt):e.type.props?e.props=i:e.props=r,e.attrs=r}function Xo(e,t,n,o){const[i,r]=e.propsOptions;let a,l=!1;if(t)for(let c in t){if($e(c))continue;const s=t[c];let u;i&&pe(i,u=Pe(c))?r&&r.includes(u)?(a||(a={}))[u]=s:n[u]=s:Hn(e.emitsOptions,c)||c in o&&s===o[c]||(o[c]=s,l=!0)}if(r){const t=Xt(n),o=a||ne;for(let a=0;a<r.length;a++){const l=r[a];n[l]=Qo(i,t,l,o[l],e,!pe(o,l))}}return l}function Qo(e,t,n,o,i,r){const a=e[n];if(null!=a){const e=pe(a,"default");if(e&&void 0===o){const e=a.default;if(a.type!==Function&&ve(e)){const{propsDefaults:r}=i;n in r?o=r[n]:(nr(i),o=r[n]=e.call(null,t),or())}else o=e}a[0]&&(r&&!e?o=!1:!a[1]||""!==o&&o!==Te(n)||(o=!0))}return o}function ei(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,a={},l=[];let c=!1;if(__VUE_OPTIONS_API__&&!ve(e)){const o=e=>{c=!0;const[n,o]=ei(e,t,!0);se(a,n),o&&l.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!r&&!c)return o.set(e,oe),oe;if(fe(r))for(let e=0;e<r.length;e++){0;const t=Pe(r[e]);ti(t)&&(a[t]=ne)}else if(r){0;for(const e in r){const t=Pe(e);if(ti(t)){const n=r[e],o=a[t]=fe(n)||ve(n)?{type:n}:n;if(o){const e=ii(Boolean,o.type),n=ii(String,o.type);o[0]=e>-1,o[1]=n<0||e<n,(e>-1||pe(o,"default"))&&l.push(t)}}}}const s=[a,l];return o.set(e,s),s}function ti(e){return"$"!==e[0]}function ni(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function oi(e,t){return ni(e)===ni(t)}function ii(e,t){return fe(t)?t.findIndex((t=>oi(t,e))):ve(t)&&oi(t,e)?0:-1}const ri=e=>"_"===e[0]||"$stable"===e,ai=e=>fe(e)?e.map(zi):[zi(e)],li=(e,t,n)=>{const o=Kn(((...e)=>ai(t(...e))),n);return o._c=!1,o},ci=(e,t,n)=>{const o=e._ctx;for(const n in e){if(ri(n))continue;const i=e[n];if(ve(i))t[n]=li(0,i,o);else if(null!=i){0;const e=ai(i);t[n]=()=>e}}},si=(e,t)=>{const n=ai(t);e.slots.default=()=>n};function ui(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let a=0;a<i.length;a++){const l=i[a];r&&(l.oldValue=r[a].value);let c=l.dir[o];c&&(tt(),un(c,n,8,[e.el,l,e,t]),nt())}}function di(){return{app:null,config:{isNativeTag:re,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let pi=0;function fi(e,t){return function(n,o=null){ve(n)||(n=Object.assign({},n)),null==o||be(o)||(o=null);const i=di(),r=new Set;let a=!1;const l=i.app={_uid:pi++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:vr,get config(){return i.config},set config(e){0},use:(e,...t)=>(r.has(e)||(e&&ve(e.install)?(r.add(e),e.install(l,...t)):ve(e)&&(r.add(e),e(l,...t))),l),mixin:e=>(__VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),l),component:(e,t)=>t?(i.components[e]=t,l):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,l):i.directives[e],mount(r,c,s){if(!a){const u=Ui(n,o);return u.appContext=i,c&&t?t(u,r):e(u,r,s),a=!0,l._container=r,r.__vue_app__=l,__VUE_PROD_DEVTOOLS__&&(l._instance=u.component,function(e,t){Mn("app:init",e,t,{Fragment:yi,Text:wi,Comment:ki,Static:xi})}(l,vr)),pr(u.component)||u.component.proxy}},unmount(){a&&(e(null,l._container),__VUE_PROD_DEVTOOLS__&&(l._instance=null,function(e){Mn("app:unmount",e)}(l)),delete l._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,l)};return l}}function _i(e,t,n,o,i=!1){if(fe(e))return void e.forEach(((e,r)=>_i(e,t&&(fe(t)?t[r]:t),n,o,i)));if(bo(o)&&!i)return;const r=4&o.shapeFlag?pr(o.component)||o.component.proxy:o.el,a=i?null:r,{i:l,r:c}=e;const s=t&&t.r,u=l.refs===ne?l.refs={}:l.refs,d=l.setupState;if(null!=s&&s!==c&&(ge(s)?(u[s]=null,pe(d,s)&&(d[s]=null)):rn(s)&&(s.value=null)),ve(c))sn(c,l,12,[a,u]);else{const t=ge(c),o=rn(c);if(t||o){const o=()=>{if(e.f){const n=t?u[c]:c.value;i?fe(n)&&ue(n,r):fe(n)?n.includes(r)||n.push(r):t?(u[c]=[r],pe(d,c)&&(d[c]=u[c])):(c.value=[r],e.k&&(u[e.k]=c.value))}else t?(u[c]=a,pe(d,c)&&(d[c]=a)):rn(c)&&(c.value=a,e.k&&(u[e.k]=a))};a?(o.id=-1,hi(o,n)):o()}else 0}}const hi=to;function vi(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Ue().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Ue().__VUE_PROD_DEVTOOLS__=!1);const n=Ue();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&Un(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:i,patchProp:r,createElement:a,createText:l,createComment:c,setText:s,setElementText:u,parentNode:d,nextSibling:p,setScopeId:f=ie,cloneNode:_,insertStaticContent:h}=e,v=(e,t,n,o=null,i=null,r=null,a=!1,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ii(e,t)&&(o=z(e),U(e,i,r,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:s,ref:u,shapeFlag:d}=t;switch(s){case wi:g(e,t,n,o);break;case ki:m(e,t,n,o);break;case xi:null==e&&b(t,n,o,a);break;case yi:P(e,t,n,o,i,r,a,l,c);break;default:1&d?w(e,t,n,o,i,r,a,l,c):6&d?E(e,t,n,o,i,r,a,l,c):(64&d||128&d)&&s.process(e,t,n,o,i,r,a,l,c,H)}null!=u&&i&&_i(u,e&&e.ref,r,t||e,!t)},g=(e,t,n,i)=>{if(null==e)o(t.el=l(t.children),n,i);else{const n=t.el=e.el;t.children!==e.children&&s(n,t.children)}},m=(e,t,n,i)=>{null==e?o(t.el=c(t.children||""),n,i):t.el=e.el},b=(e,t,n,o)=>{[e.el,e.anchor]=h(e.children,t,n,o,e.el,e.anchor)},y=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),i(e),e=n;i(t)},w=(e,t,n,o,i,r,a,l,c)=>{a=a||"svg"===t.type,null==e?k(t,n,o,i,r,a,l,c):$(e,t,i,r,a,l,c)},k=(e,t,n,i,l,c,s,d)=>{let p,f;const{type:h,props:v,shapeFlag:g,transition:m,patchFlag:b,dirs:y}=e;if(e.el&&void 0!==_&&-1===b)p=e.el=_(e.el);else{if(p=e.el=a(e.type,c,v&&v.is,v),8&g?u(p,e.children):16&g&&S(e.children,p,null,i,l,c&&"foreignObject"!==h,s,d),y&&ui(e,null,i,"created"),v){for(const t in v)"value"===t||$e(t)||r(p,t,null,v[t],c,e.children,i,l,V);"value"in v&&r(p,"value",null,v.value),(f=v.onVnodeBeforeMount)&&Wi(f,i,e)}x(p,e,e.scopeId,s,i)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(p,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(p,"__vueParentComponent",{value:i,enumerable:!1})),y&&ui(e,null,i,"beforeMount");const w=(!l||l&&!l.pendingBranch)&&m&&!m.persisted;w&&m.beforeEnter(p),o(p,t,n),((f=v&&v.onVnodeMounted)||w||y)&&hi((()=>{f&&Wi(f,i,e),w&&m.enter(p),y&&ui(e,null,i,"mounted")}),l)},x=(e,t,n,o,i)=>{if(n&&f(e,n),o)for(let t=0;t<o.length;t++)f(e,o[t]);if(i){if(t===i.subTree){const t=i.vnode;x(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},S=(e,t,n,o,i,r,a,l,c=0)=>{for(let s=c;s<e.length;s++){const c=e[s]=l?Bi(e[s]):zi(e[s]);v(null,c,t,n,o,i,r,a,l)}},$=(e,t,n,o,i,a,l)=>{const c=t.el=e.el;let{patchFlag:s,dynamicChildren:d,dirs:p}=t;s|=16&e.patchFlag;const f=e.props||ne,_=t.props||ne;let h;n&&gi(n,!1),(h=_.onVnodeBeforeUpdate)&&Wi(h,n,t,e),p&&ui(t,e,n,"beforeUpdate"),n&&gi(n,!0);const v=i&&"foreignObject"!==t.type;if(d?C(e.dynamicChildren,d,c,n,o,v,a):l||j(e,t,c,null,n,o,v,a,!1),s>0){if(16&s)O(c,t,f,_,n,o,i);else if(2&s&&f.class!==_.class&&r(c,"class",null,_.class,i),4&s&&r(c,"style",f.style,_.style,i),8&s){const a=t.dynamicProps;for(let t=0;t<a.length;t++){const l=a[t],s=f[l],u=_[l];u===s&&"value"!==l||r(c,l,s,u,i,e.children,n,o,V)}}1&s&&e.children!==t.children&&u(c,t.children)}else l||null!=d||O(c,t,f,_,n,o,i);((h=_.onVnodeUpdated)||p)&&hi((()=>{h&&Wi(h,n,t,e),p&&ui(t,e,n,"updated")}),o)},C=(e,t,n,o,i,r,a)=>{for(let l=0;l<t.length;l++){const c=e[l],s=t[l],u=c.el&&(c.type===yi||!Ii(c,s)||70&c.shapeFlag)?d(c.el):n;v(c,s,u,null,o,i,r,a,!0)}},O=(e,t,n,o,i,a,l)=>{if(n!==o){for(const c in o){if($e(c))continue;const s=o[c],u=n[c];s!==u&&"value"!==c&&r(e,c,u,s,l,t.children,i,a,V)}if(n!==ne)for(const c in n)$e(c)||c in o||r(e,c,n[c],null,l,t.children,i,a,V);"value"in o&&r(e,"value",n.value,o.value)}},P=(e,t,n,i,r,a,c,s,u)=>{const d=t.el=e?e.el:l(""),p=t.anchor=e?e.anchor:l("");let{patchFlag:f,dynamicChildren:_,slotScopeIds:h}=t;h&&(s=s?s.concat(h):h),null==e?(o(d,n,i),o(p,n,i),S(t.children,n,p,r,a,c,s,u)):f>0&&64&f&&_&&e.dynamicChildren?(C(e.dynamicChildren,_,n,r,a,c,s),(null!=t.key||r&&t===r.subTree)&&mi(e,t,!0)):j(e,t,n,p,r,a,c,s,u)},E=(e,t,n,o,i,r,a,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?i.ctx.activate(t,n,o,a,c):T(t,n,o,i,r,a,c):F(e,t,c)},T=(e,t,n,o,i,r,a)=>{const l=e.component=Qi(e,o,i);if(yo(e)&&(l.ctx.renderer=H),cr(l),l.asyncDep){if(i&&i.registerDep(l,A),!e.el){const e=l.subTree=Ui(ki);m(null,e,t,n)}}else A(l,e,t,n,i,r,a)},F=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:i,component:r}=e,{props:a,children:l,patchFlag:c}=t,s=r.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!i&&!l||l&&l.$stable)||o!==a&&(o?!a||Qn(o,a,s):!!a);if(1024&c)return!0;if(16&c)return o?Qn(o,a,s):!!a;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==o[n]&&!Hn(s,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void I(o,t,n);o.next=t,function(e){const t=_n.indexOf(e);t>hn&&_n.splice(t,1)}(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},A=(e,t,n,o,i,r,a)=>{const l=e.effect=new Ye((()=>{if(e.isMounted){let t,{next:n,bu:o,u:l,parent:c,vnode:s}=e,u=n;0,gi(e,!1),n?(n.el=s.el,I(e,n,a)):n=s,o&&je(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Wi(t,c,n,s),gi(e,!0);const p=Zn(e);0;const f=e.subTree;e.subTree=p,v(f,p,d(f.el),z(f),e,i,r),n.el=p.el,null===u&&eo(e,p.el),l&&hi(l,i),(t=n.props&&n.props.onVnodeUpdated)&&hi((()=>Wi(t,c,n,s)),i),__VUE_PROD_DEVTOOLS__&&Dn(e)}else{let a;const{el:l,props:c}=t,{bm:s,m:u,parent:d}=e,p=bo(t);if(gi(e,!1),s&&je(s),!p&&(a=c&&c.onVnodeBeforeMount)&&Wi(a,d,t),gi(e,!0),l&&G){const n=()=>{e.subTree=Zn(e),G(l,e.subTree,e,i,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const a=e.subTree=Zn(e);0,v(null,a,n,o,e,i,r),t.el=a.el}if(u&&hi(u,i),!p&&(a=c&&c.onVnodeMounted)){const e=t;hi((()=>Wi(a,d,e)),i)}256&t.shapeFlag&&e.a&&hi(e.a,i),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&qn(e),t=n=o=null}}),(()=>Cn(e.update)),e.scope),c=e.update=l.run.bind(l);c.id=e.uid,gi(e,!0),c()},I=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:a}}=e,l=Xt(i),[c]=e.propsOptions;let s=!1;if(!(o||a>0)||16&a){let o;Xo(e,t,i,r)&&(s=!0);for(const r in l)t&&(pe(t,r)||(o=Te(r))!==r&&pe(t,o))||(c?!n||void 0===n[r]&&void 0===n[o]||(i[r]=Qo(c,l,r,void 0,e,!0)):delete i[r]);if(r!==l)for(const e in r)t&&pe(t,e)||(delete r[e],s=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let a=n[o];if(Hn(e.emitsOptions,a))continue;const u=t[a];if(c)if(pe(r,a))u!==r[a]&&(r[a]=u,s=!0);else{const t=Pe(a);i[t]=Qo(c,l,t,u,e,!1)}else u!==r[a]&&(r[a]=u,s=!0)}}s&&rt(e,"set","$attrs")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,a=ne;if(32&o.shapeFlag){const e=t._;e?n&&1===e?r=!1:(se(i,t),n||1!==e||delete i._):(r=!t.$stable,ci(t,i)),a=t}else t&&(si(e,t),a={default:1});if(r)for(const e in i)ri(e)||e in a||delete i[e]})(e,t.children,n),tt(),Tn(void 0,e.update),nt()},j=(e,t,n,o,i,r,a,l,c=!1)=>{const s=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:f,shapeFlag:_}=t;if(f>0){if(128&f)return void R(s,p,n,o,i,r,a,l,c);if(256&f)return void L(s,p,n,o,i,r,a,l,c)}8&_?(16&d&&V(s,i,r),p!==s&&u(n,p)):16&d?16&_?R(s,p,n,o,i,r,a,l,c):V(s,i,r,!0):(8&d&&u(n,""),16&_&&S(p,n,o,i,r,a,l,c))},L=(e,t,n,o,i,r,a,l,c)=>{t=t||oe;const s=(e=e||oe).length,u=t.length,d=Math.min(s,u);let p;for(p=0;p<d;p++){const o=t[p]=c?Bi(t[p]):zi(t[p]);v(e[p],o,n,null,i,r,a,l,c)}s>u?V(e,i,r,!0,!1,d):S(t,n,o,i,r,a,l,c,d)},R=(e,t,n,o,i,r,a,l,c)=>{let s=0;const u=t.length;let d=e.length-1,p=u-1;for(;s<=d&&s<=p;){const o=e[s],u=t[s]=c?Bi(t[s]):zi(t[s]);if(!Ii(o,u))break;v(o,u,n,null,i,r,a,l,c),s++}for(;s<=d&&s<=p;){const o=e[d],s=t[p]=c?Bi(t[p]):zi(t[p]);if(!Ii(o,s))break;v(o,s,n,null,i,r,a,l,c),d--,p--}if(s>d){if(s<=p){const e=p+1,d=e<u?t[e].el:o;for(;s<=p;)v(null,t[s]=c?Bi(t[s]):zi(t[s]),n,d,i,r,a,l,c),s++}}else if(s>p)for(;s<=d;)U(e[s],i,r,!0),s++;else{const f=s,_=s,h=new Map;for(s=_;s<=p;s++){const e=t[s]=c?Bi(t[s]):zi(t[s]);null!=e.key&&h.set(e.key,s)}let g,m=0;const b=p-_+1;let y=!1,w=0;const k=new Array(b);for(s=0;s<b;s++)k[s]=0;for(s=f;s<=d;s++){const o=e[s];if(m>=b){U(o,i,r,!0);continue}let u;if(null!=o.key)u=h.get(o.key);else for(g=_;g<=p;g++)if(0===k[g-_]&&Ii(o,t[g])){u=g;break}void 0===u?U(o,i,r,!0):(k[u-_]=s+1,u>=w?w=u:y=!0,v(o,t[u],n,null,i,r,a,l,c),m++)}const x=y?function(e){const t=e.slice(),n=[0];let o,i,r,a,l;const c=e.length;for(o=0;o<c;o++){const c=e[o];if(0!==c){if(i=n[n.length-1],e[i]<c){t[o]=i,n.push(o);continue}for(r=0,a=n.length-1;r<a;)l=r+a>>1,e[n[l]]<c?r=l+1:a=l;c<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}r=n.length,a=n[r-1];for(;r-- >0;)n[r]=a,a=t[a];return n}(k):oe;for(g=x.length-1,s=b-1;s>=0;s--){const e=_+s,d=t[e],p=e+1<u?t[e+1].el:o;0===k[s]?v(null,d,n,p,i,r,a,l,c):y&&(g<0||s!==x[g]?M(d,n,p,2):g--)}}},M=(e,t,n,i,r=null)=>{const{el:a,type:l,transition:c,children:s,shapeFlag:u}=e;if(6&u)return void M(e.component.subTree,t,n,i);if(128&u)return void e.suspense.move(t,n,i);if(64&u)return void l.move(e,t,n,H);if(l===yi){o(a,t,n);for(let e=0;e<s.length;e++)M(s[e],t,n,i);return void o(e.anchor,t,n)}if(l===xi)return void(({el:e,anchor:t},n,i)=>{let r;for(;e&&e!==t;)r=p(e),o(e,n,i),e=r;o(t,n,i)})(e,t,n);if(2!==i&&1&u&&c)if(0===i)c.beforeEnter(a),o(a,t,n),hi((()=>c.enter(a)),r);else{const{leave:e,delayLeave:i,afterLeave:r}=c,l=()=>o(a,t,n),s=()=>{e(a,(()=>{l(),r&&r()}))};i?i(a,l,s):s()}else o(a,t,n)},U=(e,t,n,o=!1,i=!1)=>{const{type:r,props:a,ref:l,children:c,dynamicChildren:s,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=l&&_i(l,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,_=!bo(e);let h;if(_&&(h=a&&a.onVnodeBeforeUnmount)&&Wi(h,t,e),6&u)N(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);f&&ui(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,H,o):s&&(r!==yi||d>0&&64&d)?V(s,t,n,!1,!0):(r===yi&&384&d||!i&&16&u)&&V(c,t,n),o&&q(e)}(_&&(h=a&&a.onVnodeUnmounted)||f)&&hi((()=>{h&&Wi(h,t,e),f&&ui(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===yi)return void D(n,o);if(t===xi)return void y(e);const a=()=>{i(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,i=()=>t(n,a);o?o(e.el,a,i):i()}else a()},D=(e,t)=>{let n;for(;e!==t;)n=p(e),i(e),e=n;i(t)},N=(e,t,n)=>{const{bum:o,scope:i,update:r,subTree:a,um:l}=e;o&&je(o),i.stop(),r&&(r.active=!1,U(a,e,t,n)),l&&hi(l,t),hi((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&Nn(e)},V=(e,t,n,o=!1,i=!1,r=0)=>{for(let a=r;a<e.length;a++)U(e[a],t,n,o,i)},z=e=>6&e.shapeFlag?z(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),B=(e,t,n)=>{null==e?t._vnode&&U(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),Fn(),t._vnode=e},H={p:v,um:U,m:M,r:q,mt:T,mc:S,pc:j,pbc:C,n:z,o:e};let W,G;return t&&([W,G]=t(H)),{render:B,hydrate:W,createApp:fi(B,W)}}function gi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function mi(e,t,n=!1){const o=e.children,i=t.children;if(fe(o)&&fe(i))for(let e=0;e<o.length;e++){const t=o[e];let r=i[e];1&r.shapeFlag&&!r.dynamicChildren&&((r.patchFlag<=0||32===r.patchFlag)&&(r=i[e]=Bi(i[e]),r.el=t.el),n||mi(t,r))}}const bi=Symbol();const yi=Symbol(void 0),wi=Symbol(void 0),ki=Symbol(void 0),xi=Symbol(void 0),Si=[];let $i=null;function Ci(e=!1){Si.push($i=e?null:[])}function Oi(){Si.pop(),$i=Si[Si.length-1]||null}let Pi=1;function Ei(e){Pi+=e}function Ti(e){return e.dynamicChildren=Pi>0?$i||oe:null,Oi(),Pi>0&&$i&&$i.push(e),e}function Fi(e,t,n,o,i,r){return Ti(Mi(e,t,n,o,i,r,!0))}function Ai(e){return!!e&&!0===e.__v_isVNode}function Ii(e,t){return e.type===t.type&&e.key===t.key}const ji="__vInternal",Li=({key:e})=>null!=e?e:null,Ri=({ref:e,ref_key:t,ref_for:n})=>null!=e?ge(e)||rn(e)||ve(e)?{i:Wn,r:e,k:t,f:!!n}:e:null;function Mi(e,t=null,n=null,o=0,i=null,r=(e===yi?0:1),a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Li(t),ref:t&&Ri(t),scopeId:Gn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null};return l?(Hi(c,n),128&r&&e.normalize(c)):n&&(c.shapeFlag|=ge(n)?8:16),Pi>0&&!a&&$i&&(c.patchFlag>0||6&r)&&32!==c.patchFlag&&$i.push(c),c}const Ui=qi;function qi(e,t=null,n=null,o=0,i=null,r=!1){if(e&&e!==bi||(e=ki),Ai(e)){const o=Di(e,t,!0);return n&&Hi(o,n),o}if(_r(e)&&(e=e.__vccOpts),t){t=function(e){return e?Yt(e)||ji in e?se({},e):e:null}(t);let{class:e,style:n}=t;e&&!ge(e)&&(t.class=ee(e)),be(n)&&(Yt(n)&&!fe(n)&&(n=se({},n)),t.style=Z(n))}return Mi(e,t,n,o,i,ge(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:be(e)?4:ve(e)?2:0,r,!0)}function Di(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:a}=e,l=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=ee([t.class,o.class]));else if("style"===e)t.style=Z([t.style,o.style]);else if(le(e)){const n=t[e],i=o[e];!i||n===i||fe(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Li(l),ref:t&&t.ref?n&&i?fe(i)?i.concat(Ri(t)):[i,Ri(t)]:Ri(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==yi?-1===r?16:16|r:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Di(e.ssContent),ssFallback:e.ssFallback&&Di(e.ssFallback),el:e.el,anchor:e.anchor}}function Ni(e=" ",t=0){return Ui(wi,null,e,t)}function Vi(e,t){const n=Ui(xi,null,e);return n.staticCount=t,n}function zi(e){return null==e||"boolean"==typeof e?Ui(ki):fe(e)?Ui(yi,null,e.slice()):"object"==typeof e?Bi(e):Ui(wi,null,String(e))}function Bi(e){return null===e.el||e.memo?e:Di(e)}function Hi(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(fe(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Hi(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||ji in t?3===o&&Wn&&(1===Wn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Wn}}else ve(t)?(t={default:t,_ctx:Wn},n=32):(t=String(t),64&o?(n=16,t=[Ni(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wi(e,t,n,o=null){un(e,t,7,[n,o])}function Gi(e,t,n,o){let i;const r=n&&n[o];if(fe(e)||ge(e)){i=new Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(e[n],n,void 0,r&&r[n])}else if("number"==typeof e){0,i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,r&&r[n])}else if(be(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,r&&r[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let o=0,a=n.length;o<a;o++){const a=n[o];i[o]=t(e[a],a,o,r&&r[o])}}else i=[];return n&&(n[o]=i),i}const Ji=e=>e?ir(e)?pr(e)||e.proxy:Ji(e.parent):null,Ki=se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ji(e.parent),$root:e=>Ji(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?Bo(e):e.type,$forceUpdate:e=>()=>Cn(e.update),$nextTick:e=>$n.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?ao.bind(e):ie}),Zi={get({_:e},t){const{ctx:n,setupState:o,data:i,props:r,accessCache:a,type:l,appContext:c}=e;let s;if("$"!==t[0]){const l=a[t];if(void 0!==l)switch(l){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(o!==ne&&pe(o,t))return a[t]=1,o[t];if(i!==ne&&pe(i,t))return a[t]=2,i[t];if((s=e.propsOptions[0])&&pe(s,t))return a[t]=3,r[t];if(n!==ne&&pe(n,t))return a[t]=4,n[t];__VUE_OPTIONS_API__&&!Do||(a[t]=0)}}const u=Ki[t];let d,p;return u?("$attrs"===t&&ot(e,0,t),u(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==ne&&pe(n,t)?(a[t]=4,n[t]):(p=c.config.globalProperties,pe(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return i!==ne&&pe(i,t)?(i[t]=n,!0):o!==ne&&pe(o,t)?(o[t]=n,!0):!pe(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(r[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r}},a){let l;return!!n[a]||e!==ne&&pe(e,a)||t!==ne&&pe(t,a)||(l=r[0])&&pe(l,a)||pe(o,a)||pe(Ki,a)||pe(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:pe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const Yi=di();let Xi=0;function Qi(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||Yi,r={uid:Xi++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new De(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ei(o,i),emitsOptions:Bn(o,i),emit:null,emitted:null,propsDefaults:ne,inheritAttrs:o.inheritAttrs,ctx:ne,data:ne,props:ne,attrs:ne,slots:ne,refs:ne,setupState:ne,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=zn.bind(null,r),e.ce&&e.ce(r),r}let er=null;const tr=()=>er||Wn,nr=e=>{er=e,e.scope.on()},or=()=>{er&&er.scope.off(),er=null};function ir(e){return 4&e.vnode.shapeFlag}let rr,ar,lr=!1;function cr(e,t=!1){lr=t;const{props:n,children:o}=e.vnode,i=ir(e);Yo(e,n,i,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Xt(t),Le(t,"_",n)):ci(t,e.slots={})}else e.slots={},t&&si(e,t);Le(e.slots,ji,1)})(e,o);const r=i?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=Qt(new Proxy(e.ctx,Zi)),!1;const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?dr(e):null;nr(e),tt();const i=sn(o,e,0,[e.props,n]);if(nt(),or(),ye(i)){if(i.then(or,or),t)return i.then((n=>{sr(e,n,t)})).catch((t=>{dn(t,e,0)}));e.asyncDep=i}else sr(e,i,t)}else ur(e,t)}(e,t):void 0;return lr=!1,r}function sr(e,t,n){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:be(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=ln(t)),ur(e,n)}function ur(e,t,n){const o=e.type;if(!e.render){if(!t&&rr&&!o.render){const t=o.template;if(t){0;const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:r,compilerOptions:a}=o,l=se(se({isCustomElement:n,delimiters:r},i),a);o.render=rr(t,l)}}e.render=o.render||ie,ar&&ar(e)}__VUE_OPTIONS_API__&&(nr(e),tt(),No(e),nt(),or())}function dr(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(ot(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function pr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ln(Qt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ki?Ki[n](e):void 0}))}function fr(e){return ve(e)&&e.displayName||e.name}function _r(e){return ve(e)&&"__vccOpts"in e}const hr=(e,t)=>function(e,t,n=!1){let o,i;const r=ve(e);return r?(o=e,i=ie):(o=e.get,i=e.set),new cn(o,i,r||!i,n)}(e,0,lr);Symbol("");const vr="3.2.33",gr="undefined"!=typeof document?document:null,mr=gr&&gr.createElement("template"),br={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const i=t?gr.createElementNS("http://www.w3.org/2000/svg",e):gr.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&i.setAttribute("multiple",o.multiple),i},createText:e=>gr.createTextNode(e),createComment:e=>gr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o,i,r){const a=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==r&&(i=i.nextSibling););else{mr.innerHTML=o?`<svg>${e}</svg>`:e;const i=mr.content;if(o){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const yr=/\s*!important$/;function wr(e,t,n){if(fe(n))n.forEach((n=>wr(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=xr[t];if(n)return n;let o=Pe(t);if("filter"!==o&&o in e)return xr[t]=o;o=Fe(o);for(let n=0;n<kr.length;n++){const i=kr[n]+o;if(i in e)return xr[t]=i}return t}(e,t);yr.test(n)?e.setProperty(Te(o),n.replace(yr,""),"important"):e[o]=n}}const kr=["Webkit","Moz","ms"],xr={};const Sr="http://www.w3.org/1999/xlink";const[$r,Cr]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Or=0;const Pr=Promise.resolve(),Er=()=>{Or=0};function Tr(e,t,n,o){e.addEventListener(t,n,o)}function Fr(e,t,n,o,i=null){const r=e._vei||(e._vei={}),a=r[t];if(o&&a)a.value=o;else{const[n,l]=function(e){let t;if(Ar.test(e)){let n;for(t={};n=e.match(Ar);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Te(e.slice(2)),t]}(t);if(o){const a=r[t]=function(e,t){const n=e=>{const o=e.timeStamp||$r();(Cr||o>=n.attached-1)&&un(function(e,t){if(fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>Or||(Pr.then(Er),Or=$r()))(),n}(o,i);Tr(e,n,a,l)}else a&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,a,l),r[t]=void 0)}}const Ar=/(?:Once|Passive|Capture)$/;const Ir=/^on[a-z]/;"undefined"!=typeof HTMLElement&&HTMLElement;const jr="transition",Lr="animation",Rr=(e,{slots:t})=>function(e,t,n){const o=arguments.length;return 2===o?be(t)&&!fe(t)?Ai(t)?Ui(e,null,[t]):Ui(e,t):Ui(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Ai(n)&&(n=[n]),Ui(e,t,n))}(po,Dr(e),t);Rr.displayName="Transition";const Mr={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ur=(Rr.props=se({},po.props,Mr),(e,t=[])=>{fe(e)?e.forEach((e=>e(...t))):e&&e(...t)}),qr=e=>!!e&&(fe(e)?e.some((e=>e.length>1)):e.length>1);function Dr(e){const t={};for(const n in e)n in Mr||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:s=a,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,_=function(e){if(null==e)return null;if(be(e))return[Nr(e.enter),Nr(e.leave)];{const t=Nr(e);return[t,t]}}(i),h=_&&_[0],v=_&&_[1],{onBeforeEnter:g,onEnter:m,onEnterCancelled:b,onLeave:y,onLeaveCancelled:w,onBeforeAppear:k=g,onAppear:x=m,onAppearCancelled:S=b}=t,$=(e,t,n)=>{zr(e,t?u:l),zr(e,t?s:a),n&&n()},C=(e,t)=>{zr(e,f),zr(e,p),t&&t()},O=e=>(t,n)=>{const i=e?x:m,a=()=>$(t,e,n);Ur(i,[t,a]),Br((()=>{zr(t,e?c:r),Vr(t,e?u:l),qr(i)||Wr(t,o,h,a)}))};return se(t,{onBeforeEnter(e){Ur(g,[e]),Vr(e,r),Vr(e,a)},onBeforeAppear(e){Ur(k,[e]),Vr(e,c),Vr(e,s)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){const n=()=>C(e,t);Vr(e,d),Zr(),Vr(e,p),Br((()=>{zr(e,d),Vr(e,f),qr(y)||Wr(e,o,v,n)})),Ur(y,[e,n])},onEnterCancelled(e){$(e,!1),Ur(b,[e])},onAppearCancelled(e){$(e,!0),Ur(S,[e])},onLeaveCancelled(e){C(e),Ur(w,[e])}})}function Nr(e){return Re(e)}function Vr(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function zr(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Br(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Hr=0;function Wr(e,t,n,o){const i=e._endId=++Hr,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:a,timeout:l,propCount:c}=Gr(e,t);if(!a)return o();const s=a+"end";let u=0;const d=()=>{e.removeEventListener(s,p),r()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u<c&&d()}),l+1),e.addEventListener(s,p)}function Gr(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),i=o("transitionDelay"),r=o("transitionDuration"),a=Jr(i,r),l=o("animationDelay"),c=o("animationDuration"),s=Jr(l,c);let u=null,d=0,p=0;t===jr?a>0&&(u=jr,d=a,p=r.length):t===Lr?s>0&&(u=Lr,d=s,p=c.length):(d=Math.max(a,s),u=d>0?a>s?jr:Lr:null,p=u?u===jr?r.length:c.length:0);return{type:u,timeout:d,propCount:p,hasTransform:u===jr&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function Jr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>Kr(t)+Kr(e[n]))))}function Kr(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Zr(){return document.body.offsetHeight}new WeakMap,new WeakMap;const Yr=se({patchProp:(e,t,n,o,i=!1,r,a,l,c)=>{"class"===t?function(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,i):"style"===t?function(e,t,n){const o=e.style,i=ge(n);if(n&&!i){for(const e in n)wr(o,e,n[e]);if(t&&!ge(t))for(const e in t)null==n[e]&&wr(o,e,"")}else{const r=o.display;i?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=r)}}(e,n,o):le(t)?ce(t)||Fr(e,t,0,o,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Ir.test(t)&&ve(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Ir.test(t)&&ge(n))return!1;return t in e}(e,t,o,i))?function(e,t,n,o,i,r,a){if("innerHTML"===t||"textContent"===t)return o&&a(o,i,r),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const o=null==n?"":n;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=K(n):null==n&&"string"===o?(n="",l=!0):"number"===o&&(n=0,l=!0)}try{e[t]=n}catch(e){}l&&e.removeAttribute(t)}(e,t,o,r,a,l,c):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,i){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Sr,t.slice(6,t.length)):e.setAttributeNS(Sr,t,n);else{const o=J(t);null==n||o&&!K(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,i))}},br);let Xr;function Qr(){return Xr||(Xr=function(e){return vi(e)}(Yr))}function ea(e){if(ge(e)){return document.querySelector(e)}return e}var ta=function(e){return Gn="data-v-1f549b47",e=e(),Gn=null,e},na={id:"bp_config"},oa=ta((function(){return Mi("div",{class:"config-mark"},null,-1)})),ia={class:"config-bg"},ra={style:{"font-size":"20px"}},aa=ta((function(){return Mi("b",null,"bilibili视频下载 参数设置",-1)})),la={style:{margin:"2% 0"}},ca=ta((function(){return Mi("label",null,"请求地址:",-1)})),sa=["value"],ua=Ni("     "),da=ta((function(){return Mi("label",null,"请求方式:",-1)})),pa=["value"],fa=[ta((function(){return Mi("option",{value:"auto"},"自动判断",-1)})),ta((function(){return Mi("option",{value:"local"},"本地请求",-1)})),ta((function(){return Mi("option",{value:"online"},"远程请求",-1)}))],_a=ta((function(){return Mi("br",null,null,-1)})),ha=ta((function(){return Mi("small",null,"注意:普通使用请勿修改;默认使用混合请求",-1)})),va={style:{margin:"2% 0"}},ga=ta((function(){return Mi("label",null,"视频格式:",-1)})),ma=["value"],ba=[ta((function(){return Mi("option",{value:"flv"},"FLV",-1)})),ta((function(){return Mi("option",{value:"dash"},"DASH",-1)})),ta((function(){return Mi("option",{value:"mp4"},"MP4",-1)}))],ya=Ni("     "),wa=ta((function(){return Mi("label",null,"切换CDN:",-1)})),ka=["value"],xa=["value"],Sa=ta((function(){return Mi("br",null,null,-1)})),$a=ta((function(){return Mi("small",null,"注意:仅video支持MP4;建议特殊地区或网络受限时切换(自行选择合适线路)",-1)})),Ca={style:{margin:"2% 0"}},Oa=ta((function(){return Mi("label",null,"下载方式:",-1)})),Pa=["value"],Ea=[Vi('<option value="a" data-v-1f549b47>URL链接</option><option value="web" data-v-1f549b47>Web浏览器</option><option value="blob" data-v-1f549b47>Blob请求</option><option value="rpc" data-v-1f549b47>RPC接口</option><option value="aria" data-v-1f549b47>Aria命令</option>',5)],Ta=Ni("     "),Fa=ta((function(){return Mi("label",null,"AriaNg地址:",-1)})),Aa=["value"],Ia=ta((function(){return Mi("br",null,null,-1)})),ja=ta((function(){return Mi("small",null,"提示:url和web方式不会设置文件名",-1)})),La={style:{margin:"2% 0"}},Ra=ta((function(){return Mi("label",null,"RPC配置:[ 域名 : 端口 | 密钥 | 保存目录 ]",-1)})),Ma=ta((function(){return Mi("br",null,null,-1)})),Ua=["value"],qa=Ni(" : "),Da=["value"],Na=Ni(" | "),Va=["value"],za=Ni(" | "),Ba=["value"],Ha=ta((function(){return Mi("br",null,null,-1)})),Wa=ta((function(){return Mi("small",null,"注意:RPC默认使用Motrix(需要安装并运行)下载,其他软件请修改参数",-1)})),Ga={style:{margin:"2% 0"}},Ja=ta((function(){return Mi("label",null,"强制换源:",-1)})),Ka=["value"],Za=[ta((function(){return Mi("option",{value:"0"},"关闭",-1)})),ta((function(){return Mi("option",{value:"1"},"开启",-1)}))],Ya=Ni("     "),Xa=ta((function(){return Mi("label",null,"弹幕速度:",-1)})),Qa=["value"],el=Ni(" s     "),tl=ta((function(){return Mi("label",null,"弹幕字号:",-1)})),nl=["value"],ol=Ni(" px "),il=ta((function(){return Mi("br",null,null,-1)})),rl=ta((function(){return Mi("small",null,"说明:使用请求到的视频地址在DPlayer进行播放;弹幕速度为弹幕滑过DPlayer的时间",-1)})),al={style:{margin:"2% 0"}},ll=ta((function(){return Mi("label",null,"自动下载:",-1)})),cl=["value"],sl=[ta((function(){return Mi("option",{value:"0"},"关闭",-1)})),ta((function(){return Mi("option",{value:"1"},"开启",-1)}))],ul=ta((function(){return Mi("br",null,null,-1)})),dl=ta((function(){return Mi("small",null,"说明:请求地址成功后将自动点击下载视频按钮",-1)})),pl={style:{margin:"2% 0"}},fl=ta((function(){return Mi("label",null,"授权状态:",-1)})),_l=ta((function(){return Mi("select",{id:"auth",value:"{{config.auth}}",disabled:""},[Mi("option",{value:"0"},"未授权"),Mi("option",{value:"1"},"已授权")],-1)})),hl=ta((function(){return Mi("br",null,null,-1)})),vl={style:{"text-align":"right"}};var gl=__webpack_require__(44),ml=gl.config,bl=gl.hostMap,yl=Object.assign({},ml),wl={data:function(){var e=[];for(var t in bl)e.push({text:bl[t],value:t});return{config:ml,host_key_options:e,help_clicked:!1}},methods:{save_config:function(){var e=JSON.parse(o.get("config_str"));o.set("config_str",JSON.stringify(ml)),$("#bp_config").hide(),$("#bp_config").css("opacity",0),D.A.show();for(var t=0,n=["base_api","format","auth"];t<n.length;t++){var r=n[t];if(ml[r]!==e[r]){$("#video_download").hide(),$("#video_download_2").hide();break}}ml.host_key!==e.host_key&&(H.refresh(),$("#video_url").attr("href","#"),$("#video_url_2").attr("href","#")),ml.rpc_domain!==e.rpc_domain&&(ml.rpc_domain.match("https://")||ml.rpc_domain.match(/(localhost|127\.0\.0\.1)/)||i._p.alert("检测到当前RPC不是localhost本地接口,即将跳转到AriaNg网页控制台页面;请查看控制台RPC接口参数是否正确,第一次加载可能较慢请耐心等待;配置好后即可使用脚本进行远程下载<br/>使用期间不用关闭控制台页面!",(function(){q.open_ariang({domain:ml.rpc_domain,port:ml.rpc_port,token:ml.rpc_token})})));for(var a=0,l=["danmaku_speed","danmaku_fontsize"];a<l.length;a++){var c=l[a];if(ml[c]!==e[c]){w.danmaku.config();break}}},reset_config:function(){for(var e in yl)"auth"!==e&&(this.config[e]=yl[e])},show_help:function(){var e=this;this.help_clicked?i.v0.miaow():(this.help_clicked=!0,(0,u.h)({url:"".concat(ml.base_api,"/auth/v2/?act=help"),dataType:"text"}).then((function(e){e?i._p.alert(e):i.v0.warning("获取失败")})).finally((function(){return e.help_clicked=!1})))},show_login:function(e){z.login(e)},show_logout:function(){z.logout()},show_login_help:function(){i._p.confirm("进行授权之后将能在远程请求时享有用户账号原有的权益,例如能够请求用户已经付费或承包的番剧,是否需要授权?",(function(){z.login()}))}},created:function(){var e=o.get("config_str");if(e)try{var t=JSON.parse(e);for(var n in t)Object.hasOwnProperty.call(ml,n)&&(ml[n]=t[n])}catch(e){console.log("初始化脚本配置")}ml.auth=o.get("auth_id")?"1":"0",o.set("config_str",JSON.stringify(ml)),window.onbeforeunload=function(){var e=window.bp_aria2_window;e&&!e.closed&&e.close()}}},kl=__webpack_require__(379),xl=__webpack_require__.n(kl),Sl=__webpack_require__(795),$l=__webpack_require__.n(Sl),Cl=__webpack_require__(569),Ol=__webpack_require__.n(Cl),Pl=__webpack_require__(565),El=__webpack_require__.n(Pl),Tl=__webpack_require__(216),Fl=__webpack_require__.n(Tl),Al=__webpack_require__(589),Il=__webpack_require__.n(Al),jl=__webpack_require__(74),Ll={};Ll.styleTagTransform=Il(),Ll.setAttributes=El(),Ll.insert=Ol().bind(null,"head"),Ll.domAPI=$l(),Ll.insertStyleElement=Fl();xl()(jl.Z,Ll),jl.Z&&jl.Z.locals&&jl.Z.locals;var Rl=(0,__webpack_require__(744).Z)(wl,[["render",function(e,t,n,o,i,r){return Ci(),Fi("div",na,[oa,Mi("div",ia,[Mi("span",ra,[aa,Mi("b",null,[Mi("a",{href:"javascript:;",onClick:t[0]||(t[0]=function(e){return r.reset_config()})}," [重置] "),Mi("a",{style:{"text-decoration":"underline"},href:"javascript:;",onClick:t[1]||(t[1]=function(e){return r.show_help()})},"<通知/帮助>")])]),Mi("div",la,[ca,Mi("input",{value:i.config.base_api,onInput:t[2]||(t[2]=function(e){return i.config.base_api=e.target.value}),style:{width:"30%"}},null,40,sa),ua,da,Mi("select",{value:i.config.request_type,onInput:t[3]||(t[3]=function(e){return i.config.request_type=e.target.value})},fa,40,pa),_a,ha]),Mi("div",va,[ga,Mi("select",{value:i.config.format,onInput:t[4]||(t[4]=function(e){return i.config.format=e.target.value})},ba,40,ma),ya,wa,Mi("select",{value:i.config.host_key,onInput:t[5]||(t[5]=function(e){return i.config.host_key=e.target.value})},[(Ci(!0),Fi(yi,null,Gi(i.host_key_options,(function(e){return Ci(),Fi("option",{value:e.value,key:e.text},(t=e.text,ge(t)?t:null==t?"":fe(t)||be(t)&&(t.toString===we||!ve(t.toString))?JSON.stringify(t,te,2):String(t)),9,xa);var t})),128))],40,ka),Sa,$a]),Mi("div",Ca,[Oa,Mi("select",{value:i.config.download_type,onInput:t[6]||(t[6]=function(e){return i.config.download_type=e.target.value})},Ea,40,Pa),Ta,Fa,Mi("input",{value:i.config.ariang_host,onInput:t[7]||(t[7]=function(e){return i.config.ariang_host=e.target.value}),style:{width:"30%"}},null,40,Aa),Ia,ja]),Mi("div",La,[Ra,Ma,Mi("input",{value:i.config.rpc_domain,onInput:t[8]||(t[8]=function(e){return i.config.rpc_domain=e.target.value}),style:{width:"25%"}},null,40,Ua),qa,Mi("input",{value:i.config.rpc_port,onInput:t[9]||(t[9]=function(e){return i.config.rpc_port=e.target.value}),style:{width:"10%"}},null,40,Da),Na,Mi("input",{value:i.config.rpc_token,onInput:t[10]||(t[10]=function(e){return i.config.rpc_token=e.target.value}),placeholder:"没有密钥不用填",style:{width:"15%"}},null,40,Va),za,Mi("input",{value:i.config.rpc_dir,onInput:t[11]||(t[11]=function(e){return i.config.rpc_dir=e.target.value}),placeholder:"留空使用默认目录",style:{width:"20%"}},null,40,Ba),Ha,Wa]),Mi("div",Ga,[Ja,Mi("select",{value:i.config.replace_force,onInput:t[12]||(t[12]=function(e){return i.config.replace_force=e.target.value})},Za,40,Ka),Ya,Xa,Mi("input",{value:i.config.danmaku_speed,onInput:t[13]||(t[13]=function(e){return i.config.danmaku_speed=e.target.value}),style:{width:"5%"}},null,40,Qa),el,tl,Mi("input",{value:i.config.danmaku_fontsize,onInput:t[14]||(t[14]=function(e){return i.config.danmaku_fontsize=e.target.value}),style:{width:"5%"}},null,40,nl),ol,il,rl]),Mi("div",al,[ll,Mi("select",{value:i.config.auto_download,onInput:t[15]||(t[15]=function(e){return i.config.auto_download=e.target.value})},sl,40,cl),ul,dl]),Mi("div",pl,[fl,_l,Mi("a",{class:"setting-context",href:"javascript:;",onClick:t[16]||(t[16]=function(e){return r.show_login()})},"账号授权"),Mi("a",{class:"setting-context",href:"javascript:;",onClick:t[17]||(t[17]=function(e){return r.show_logout()})},"取消授权"),Mi("a",{class:"setting-context",href:"javascript:;",onClick:t[18]||(t[18]=function(e){return r.show_login("0")})},"手动授权"),Mi("a",{class:"setting-context",href:"javascript:;",onClick:t[19]||(t[19]=function(e){return r.show_login_help()})},"这是什么?")]),hl,Mi("div",vl,[Mi("button",{class:"setting-button",onClick:t[20]||(t[20]=function(e){return r.save_config()})},"确定")])])])}],["__scopeId","data-v-1f549b47"]]);function Ml(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var Ul=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}var n,r,a;return n=t,r=[{key:"set_toolbar",value:function(){var e;$("#arc_toolbar_report")[0]?(e='<div id="arc_toolbar_report_2" style="margin-top:16px" class="video-toolbar report-wrap-module report-scroll-module" scrollshow="true"> <div class="ops"> <span id="setting_btn"> <i class="van-icon-general_addto_s"></i>脚本设置 </span> <span id="bilibili_parse"> <i class="van-icon-floatwindow_custome"></i>请求地址 </span> <span id="video_download" style="display:none"> <i class="van-icon-download"></i>下载视频 </span> <span id="video_download_2" style="display:none"> <i class="van-icon-download"></i>下载音频 </span> <span id="video_download_all"> <i class="van-icon-download"></i>批量下载 </span> </div> <div class="more"> <i class="van-icon-general_moreactions"></i> <div class="more-ops-list"> <ul> <li><span id="download_danmaku">下载弹幕</span></li> <li><span id="download_subtitle">下载字幕</span></li> </ul> </div> </div> </div> ',$("#arc_toolbar_report").after(e)):$("#toolbar_module")[0]?(e='<div id="toolbar_module_2" class="tool-bar clearfix report-wrap-module report-scroll-module media-info" scrollshow="true"> <div id="setting_btn" class="like-info"> <i class="iconfont icon-add"></i><span>脚本设置</span> </div> <div id="bilibili_parse" class="like-info"> <i class="iconfont icon-customer-serv"></i><span>请求地址</span> </div> <div id="video_download" class="like-info" style="display:none"> <i class="iconfont icon-download"></i><span>下载视频</span> </div> <div id="video_download_2" class="like-info" style="display:none"> <i class="iconfont icon-download"></i><span>下载音频</span> </div> <div id="video_download_all" class="like-info"> <i class="iconfont icon-download"></i><span>批量下载</span> </div> <div class="more">更多<div class="more-ops-list"> <ul> <li><span id="download_danmaku">下载弹幕</span></li> <li><span id="download_subtitle">下载字幕</span></li> </ul> </div> </div> <style>.tool-bar .more{float:right;cursor:pointer;color:#757575;font-size:16px;transition:all .3s;position:relative;text-align:center}.tool-bar .more:hover .more-ops-list{display:block}.tool-bar:after{display:block;content:"";clear:both}.more-ops-list{display:none;position:absolute;width:80px;left:-65px;z-index:30;text-align:center;padding:10px 0;background:#fff;border:1px solid #e5e9ef;box-shadow:0 2px 4px 0 rgba(0,0,0,.14);border-radius:2px;font-size:14px;color:#222}.more-ops-list li{position:relative;height:34px;line-height:34px;cursor:pointer;transition:all .3s}.more-ops-list li:hover{color:#00a1d6;background:#e7e7e7}</style> </div> ',$("#toolbar_module").after(e)):$("div.video-toolbar")[0]&&(e='<div id="arc_toolbar_report_2" style="margin-top:16px" class="video-toolbar report-wrap-module report-scroll-module" scrollshow="true"> <div class="ops"> <span id="setting_btn"> <i class="van-icon-general_addto_s"></i>脚本设置 </span> <span id="bilibili_parse"> <i class="van-icon-floatwindow_custome"></i>请求地址 </span> <span id="video_download" style="display:none"> <i class="van-icon-download"></i>下载视频 </span> <span id="video_download_2" style="display:none"> <i class="van-icon-download"></i>下载音频 </span> <span id="video_download_all"> <i class="van-icon-download"></i>批量下载 </span> </div> <div class="more"> <i class="van-icon-general_moreactions"></i> <div class="more-ops-list"> <ul class="more-ops-list-box"> <li class="more-ops-list-box-li"> <span id="download_danmaku">下载弹幕</span> </li> <li class="more-ops-list-box-li"> <span id="download_subtitle">下载字幕</span> </li> </ul> </div> </div> </div> ',$("div.video-toolbar").after(e))}},{key:"run",value:function(){this.set_toolbar();var t=document.createElement("div");t.id="bp_root",document.body.append(t);var n,r,a,c=document.getElementById(t.id);(n=document.createElement("div")).id="root_config",c.append(n),((...e)=>{const t=Qr().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=ea(e);if(!o)return;const i=t._component;ve(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t})(Rl).mount("#".concat(n.id)),(0,i.N5)(),s.lazyInit(),z.initAuth(),z.checkLoginStatus(),H.refresh(),$("#".concat(t.id)).append('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dplayer@1.25.0/dist/DPlayer.min.css"><\/script>'),$("#".concat(t.id)).append('<a id="video_url" style="display:none;" target="_blank" referrerpolicy="origin" href="#"></a>'),$("#".concat(t.id)).append('<a id="video_url_2" style="display:none;" target="_blank" referrerpolicy="origin" href="#"></a>'),$("body").on("click","#setting_btn",(function(){for(var t in s.lazyInit(!0),e.config)$("#".concat(t)).val(e.config[t]);$("#bp_config").show(),$("#bp_config").animate({opacity:"1"},300),D.A.hide()})),$("body").on("click","#download_danmaku",(function(){var e=l.base();q.download_danmaku_ass(e.cid(),e.filename())})),$("body").on("click","#download_subtitle",(function(){q.download_subtitle_vtt(0,l.base().filename())})),$("body").on("click","#video_download_all",(function(){s.lazyInit(!0),o.get("auth_id")&&o.get("auth_sec")?"rpc"===e.config.download_type?q.download_all():i._p.confirm("仅支持使用RPC接口批量下载,请确保RPC环境正常,是否继续?",(function(){q.download_all()})):i._p.confirm("批量下载仅支持授权用户使用RPC接口下载,是否进行授权?",(function(){z.login()}))})),$("body").on("click","#video_download",(function(){var t=e.config.download_type;if("web"===t)$("#video_url")[0].click();else if("a"===t){var n=[$("#video_url").attr("href"),$("#video_url_2").attr("href")],o=n[1],r="建议使用IDM、FDM等软件安装其浏览器插件后,鼠标右键点击链接下载~<br/><br/>"+'<a href="'.concat(n[0],'" target="_blank" style="text-decoration:underline;">&gt视频地址&lt</a><br/><br/>')+("dash"===e.config.format?'<a href="'.concat(o,'" target="_blank" style="text-decoration:underline;">&gt音频地址&lt</a>'):"");i._p.alert(r)}else if("aria"===t){var a,c,s=[$("#video_url").attr("href"),$("#video_url_2").attr("href")],u=s[0],d=s[1],p=l.base().filename();a=p+q.url_format(u),c=p+"_audio.mp4";var f='--header "User-Agent: '.concat(window.navigator.userAgent,'" --header "Referer: ').concat(window.location.href,'"'),_='aria2c "'.concat(u,'" --out "').concat(a,'" ').concat(f),h='aria2c "'.concat(d,'" --out "').concat(c,'" ').concat(f),v="点击文本框即可复制下载命令!<br/><br/>"+'视频:<br/><input id="aria2_code" value=\''.concat(_,'\' onclick="bp_clip_btn(\'aria2_code\')" style="width:100%;"></br></br>')+("dash"===e.config.format?'音频:<br/><input id="aria2_code_2" value=\''.concat(h,'\' onclick="bp_clip_btn(\'aria2_code_2\')" style="width:100%;"><br/><br/>')+'全部:<br/><textarea id="aria2_code_all" onclick="bp_clip_btn(\'aria2_code_all\')" style="min-width:100%;max-width:100%;min-height:100px;max-height:100px;">'.concat(_,"\n").concat(h,"</textarea>"):"");!window.bp_clip_btn&&(window.bp_clip_btn=function(e){$("#".concat(e)).select(),document.execCommand("copy")?i.v0.success("复制成功"):i.v0.warning("复制失败")}),i._p.alert(v)}else{var g=$("#video_url").attr("href"),m=l.base().filename();q.download(g,m,t)}})),$("body").on("click","#video_download_2",(function(){var t=e.config.download_type;if("web"===t)$("#video_url_2")[0].click();else if("a"===t)$("#video_download").click();else if("aria"===t)$("#video_download").click();else{var n=$("#video_url_2").attr("href"),o=l.base().filename();q.download(n,o,t)}})),$("body").on("click","#bilibili_parse",(function(){s.lazyInit(!0);var t=l.base(),n=[t.type,t.aid(),t.p(),t.cid(),t.epid()],c=n[0],u=n[1],d=n[2],p=n[3],f=n[4],_=l.get_quality().q;r="".concat(e.config.base_api,"?av=").concat(u,"&p=").concat(d,"&cid=").concat(p,"&ep=").concat(f,"&q=").concat(_,"&type=").concat(c,"&format=").concat(e.config.format,"&otype=json&_host=").concat(e.config.host_key,"&_req=").concat(e.config.request_type);var v=[o.get("auth_id"),o.get("auth_sec")],g=v[0],m=v[1];if("1"===e.config.auth&&g&&m&&(r+="&auth_id=".concat(g,"&auth_sec=").concat(m)),r!==a||"local"===e.config.request_type)$("#video_url").attr("href","#"),$("#video_url_2").attr("href","#"),a=r,i.v0.info("开始请求"),h.get_url((function(n){if(n&&!n.code){i.v0.success("请求成功"),n.times&&i.v0.info("剩余请求次数:".concat(n.times));var o="dash"===e.config.format?n.video.replace("http://","https://"):n.url.replace("http://","https://"),r="dash"===e.config.format?n.audio.replace("http://","https://"):"#";$("#video_url").attr("href",o),$("#video_download").show(),"dash"===e.config.format&&($("#video_url_2").attr("href",r),$("#video_download_2").show()),(s.needReplace()||t.is_limited()||"1"===e.config.replace_force)&&w.replace_player(o,r),"1"===e.config.auto_download&&$("#video_download").click()}}));else{i.v0.miaow();var b=$("#video_url").attr("href"),y=$("#video_url_2").attr("href");b&&"#"!==b&&($("#video_download").show(),"dash"===e.config.format&&$("#video_download_2").show(),(s.needReplace()||t.is_limited()||"1"===e.config.replace_force)&&!$("#bp_dplayer")[0]&&w.replace_player(b,y),"1"===e.config.auto_download&&$("#video_download").click())}})),$("body").on("click","a.router-link-active",(function(){this!==$('li[class="on"]').find("a")[0]&&H.refresh()})),$("body").on("click","li.ep-item",(function(){H.refresh()})),$("body").on("click","button.bilibili-player-iconfont-next",(function(){H.refresh()}));var u=w.bili_video_tag();$(u)[0]&&($(u)[0].onended=function(){H.refresh()}),$("body").on("click","li.bui-select-item",(function(){H.refresh()})),setInterval((function(){(H.q!==l.get_quality().q||"cheese"===l.type()&&H.epid!==l.base().epid())&&H.refresh()}),1e3),$("body").on("click",".rec-list",(function(){H.refresh()})),$("body").on("click",".bilibili-player-ending-panel-box-videos",(function(){H.refresh()})),setInterval((function(){var e=l.base();H.aid===e.aid()&&H.cid===e.cid()||H.refresh()}),3e3)}}],r&&Ml(n.prototype,r),a&&Ml(n,a),Object.defineProperty(n,"prototype",{writable:!1}),t}(),ql=Ul;window.bp_fun_locked||(window.bp_fun_locked=!0,null==location.href.match(/^https:\/\/www\.mcbbs\.net\/template\/mcbbs\/image\/special_photo_bg\.png/)?$(".error-text")[0]||setTimeout((function(){console.log("\n".concat(" %c bilibili-parse-download.user.js v","2.1.5"," ").concat("7ae4872"," %c https://github.com/injahow/user.js ","\n","\n"),"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),(new ql).run()}),3e3):location.href.match("access_key")&&window!==window.parent&&(window.stop(),window.parent.postMessage("bilibili-parse-login-credentials: "+location.href,"*")))}()})();