Greasy Fork

Greasy Fork is available in English.

115不大助手 (full)

Make 115 taerg again!

当前为 2025-01-06 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         115不大助手 (full)
// @namespace    com.cloud115.enhancer
// @version      0.7.28
// @author       生瓜太保
// @description  Make 115 taerg again!
// @license      MIT
// @homepage     http://greasyfork.icu/zh-CN/scripts/474231-115不大助手?locale_override=1
// @supportURL   http://greasyfork.icu/zh-CN/scripts/474231-115不大助手?locale_override=1
// @match        https://*.115.com/*
// @match        https://115.com/*
// @match        https://v.anxia.com/*
// @match        https://anxia.com/*
// @connect      *
// @grant        GM_addStyle
// @grant        GM_deleteValue
// @grant        GM_getValue
// @grant        GM_info
// @grant        GM_openInTab
// @grant        GM_registerMenuCommand
// @grant        GM_setClipboard
// @grant        GM_setValue
// @grant        GM_xmlhttpRequest
// @grant        unsafeWindow
// @run-at       document-body
// ==/UserScript==

(e=>{if(typeof GM_addStyle=="function"){GM_addStyle(e);return}const o=document.createElement("style");o.textContent=e,document.head.append(o)})(` @charset "UTF-8";.pure-button{display:inline-block;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#000c;border:none transparent;background-color:#e6e6e6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{background-image:linear-gradient(transparent,#0000000d 40%,#0000001a)}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{margin:0;border-radius:0;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td{background-color:#f2f2f2}.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}/*!
Pure v3.0.0
Copyright 2013 Yahoo!
Licensed under the BSD License.
https://github.com/pure-css/pure/blob/master/LICENSE
*/.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input[type=color]:focus,.pure-form input[type=date]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=email]:focus,.pure-form input[type=month]:focus,.pure-form input[type=number]:focus,.pure-form input[type=password]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=text]:focus,.pure-form input[type=time]:focus,.pure-form input[type=url]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129fea}.pure-form input:not([type]):focus{outline:0;border-color:#129fea}.pure-form input[type=checkbox]:focus,.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus{outline:thin solid #129FEA;outline:1px auto #129FEA}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input[type=color][disabled],.pure-form input[type=date][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=email][disabled],.pure-form input[type=month][disabled],.pure-form input[type=number][disabled],.pure-form input[type=password][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=text][disabled],.pure-form input[type=time][disabled],.pure-form input[type=url][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input:not([type])[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input[type=color],.pure-form-stacked input[type=date],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=email],.pure-form-stacked input[type=file],.pure-form-stacked input[type=month],.pure-form-stacked input[type=number],.pure-form-stacked input[type=password],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=text],.pure-form-stacked input[type=time],.pure-form-stacked input[type=url],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-stacked input:not([type]){display:block;margin:.25em 0}.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width :480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=color],.pure-group input[type=date],.pure-group input[type=datetime-local],.pure-group input[type=datetime],.pure-group input[type=email],.pure-group input[type=month],.pure-group input[type=number],.pure-group input[type=password],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=text],.pure-group input[type=time],.pure-group input[type=url],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:#000c;color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}.text-center{text-align:center}.text-bold{font-weight:700}.text-cross{text-decoration:line-through}.text-primary{color:#1890ff}.text-success{color:#13ce66}.text-warning{color:#ffba00}.text-danger{color:#ff4949}.text-info{color:#909399}.ce-label{padding:2px 4px;background:#909399;color:#fff;border-radius:4px}.ce-label.ce-label-primary{background:#1890ff}.ce-label.ce-label-warning{background:#ffba00}.ce-label.ce-label-danger{background:#ff4949}.ce-label.ce-label-success{background:#13ce66}.ce-label.ce-label-primary-plain{color:#409eff;background:#ecf5ff}.ce-tag-plain{padding:1px 4px;border:1px solid #1890ff;border-radius:4px}input.ce-checkbox{width:20px;height:20px;cursor:pointer}.ce-hidden{display:none!important}.tabs-component .tabs-component-tabs{border:solid 1px #ddd;border-radius:6px;margin-bottom:5px}@media (min-width: 700px){.tabs-component .tabs-component-tabs{border:0;align-items:stretch;display:flex;justify-content:flex-start;margin-bottom:1px}}.tabs-component .tabs-component-tabs .tabs-component-tab{color:#999;font-size:14px;font-weight:600;margin-right:0;list-style:none;border-bottom:dotted 1px #ddd}.tabs-component .tabs-component-tabs .tabs-component-tab:hover{color:#666}.tabs-component .tabs-component-tabs .tabs-component-tab.is-disabled *{color:#cdcdcd;cursor:not-allowed!important}.tabs-component .tabs-component-tabs .tabs-component-tab.is-active{color:#000}.tabs-component .tabs-component-tabs .tabs-component-tab .tabs-component-tab-a{align-items:center;color:inherit;display:flex;padding:.75em 1em;text-decoration:none}@media (min-width: 700px){.tabs-component .tabs-component-tabs .tabs-component-tab{background-color:#fff;border:solid 1px #ddd;border-radius:3px 3px 0 0;margin-right:.5em;transform:translateY(2px);transition:transform .3s ease}.tabs-component .tabs-component-tabs .tabs-component-tab.is-active{border-bottom:solid 1px #fff;z-index:2;transform:translateY(2px)}}.tabs-component .tabs-component-panels{padding:1em 0}@media (min-width: 700px){.tabs-component .tabs-component-panels{background-color:#fff;border:solid 1px #ddd;border-radius:0 6px 6px;box-shadow:0 0 10px #0000000d;padding:1em 2em}}.tabs-component .tabs-component-btn{cursor:pointer;background:#e1ecf4;border-radius:3px;border:1px solid #7aa7c7;padding:4px 8px;color:#39739d}.tabs-component .tabs-component-btn:hover{background-color:#b3d3ea;color:#2c5777}.tabs-component .tabs-component-btn:active{background-color:#a0c7e4;box-shadow:none;color:#2c5777}.ce-tips{background:#eee;border-radius:4px;padding:4px;font-size:12px;color:#595959;margin-bottom:10px}.ce-hr{border:0;height:1px;background-image:linear-gradient(to right,#0000,#ccc,#0000)}.ce-config input[type=checkbox]{width:18px;height:18px;cursor:pointer}.ce-config legend{font-size:16px;color:#1890ff}.ce-config-help{font-size:11px;cursor:pointer}.ce-ec-detail{text-align:left;font-size:14px}.ce-ec-detail span{color:#1890ff;display:inline-block;width:90px;text-align:right}.swal2-container{z-index:99999999!important}.ce-swal-text-left .swal2-html-container{text-align:left!important}.swal2-checkbox input{width:20px;height:20px;cursor:pointer}div[class^=fp-].hidden-watermark{display:none!important}.ce-custom-url-help{position:fixed;top:0;left:0;z-index:10000;width:430px;height:100%;background:#fff;font-size:12px}.ce-custom-url-help .ce-custom-url-help-body{height:80%;overflow-y:auto;padding:20px 20px 300px}.ce-custom-url-help h1 a{float:right;color:#1e87f0;font-size:14px}.ce-custom-url-help h1 a:hover{color:#1e87f0;text-decoration:underline}.ce-custom-url-help table{width:100%;margin-bottom:20px}.ce-custom-url-help .ce-variable{cursor:pointer;color:#1e87f0;font-size:14px}.ce-custom-url-help .ce-variable:hover{color:#093d71}.ce-menu:not(.sub-item){background:#fffcea}.ce-menu img.ce-menu-icon{float:left;width:12px;height:12px;margin-right:4px}.ce-menu.list-item-hover-menu i.ce-menu-icon.icon-operate{scale:.75;margin-top:-4px}.ce-menu.list-item-hover-menu.ce-menu-parent{position:relative;float:left;cursor:pointer}.ce-menu.list-item-hover-menu.ce-menu-parent:after{content:"";position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background:#2777f8cc;pointer-events:none}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-trigger{padding:0 12px;color:#2777f8}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-trigger:before{content:"\u2228";margin-right:4px;font-size:12px}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;left:0;padding:4px;border-radius:4px;display:none;text-align:center;width:160px}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub{margin:2px 0;background:#eee;color:#2877f8;width:100%;border-radius:4px;padding:6px 12px;line-height:12px;box-sizing:border-box}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub:hover{background-color:#f3e882}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub:after{display:none}.ce-menu.selection-menu.ce-menu-parent{position:relative;float:left;cursor:pointer}.ce-menu.selection-menu.ce-menu-parent:after{content:"";position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background:#2777f8cc;pointer-events:none}.ce-menu.selection-menu.ce-menu-parent .ce-menu-trigger{color:#2777f8}.ce-menu.selection-menu.ce-menu-parent .ce-menu-trigger:before{content:"\u2228";margin-right:4px;font-size:12px}.ce-menu.selection-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#fff}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:30px;left:0;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub{color:#2877f8;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding-left:4px;padding-right:4px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub span{font-weight:400;float:inherit}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub .ce-menu-icon{float:unset}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub:hover{background-color:#f3e882}.ce-menu.dir-context-menu>a img.ce-menu-icon{float:none;width:18px;height:18px;position:absolute;top:50%;left:14px;margin-top:-10px}.ce-menu.dir-context-menu>img.ce-menu-icon{position:absolute;left:14px;top:8px}.ce-menu.dir-context-menu.ce-menu-parent{position:relative;cursor:pointer;padding:6px 0}.ce-menu.dir-context-menu.ce-menu-parent:after{content:">";position:absolute;opacity:.5;right:10px;pointer-events:none}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-trigger{margin-left:43px;color:#2777f8}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened{background:#f3e882}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#1c0ccf}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened:after{opacity:0}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:0;left:100%;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub{color:#2877f8;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding:4px 8px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub span{font-weight:400;float:inherit}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub:hover{background-color:#f3e882}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-icon{width:18px;height:18px;margin-right:8px}.ce-menu.list-item-context-menu.ce-menu-parent{position:relative;cursor:pointer;padding:6px 0}.ce-menu.list-item-context-menu.ce-menu-parent:after{content:">";position:absolute;opacity:.5;right:10px;pointer-events:none}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-trigger{margin-left:43px;color:#2777f8}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened{background:#f3e882}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#1c0ccf}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened:after{opacity:0}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:0;left:100%;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub{color:#2877f8;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding:4px 8px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub span{font-weight:400;float:inherit}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub:hover{background-color:#f3e882}.context-menu.menu-upward{max-height:400px!important;overflow:unset!important}.ce-menu-divider{height:1px!important;display:block!important;background-color:#edeeef!important}.ce-menu-divider:after{display:none!important}.list-item-hover-menu .ce-menu-divider{height:6px!important;background-color:transparent!important}div#js_operate_box.only-icon li[menu] span{display:none}.list-contents{padding-bottom:300px}.header-name a.ce-open-dir-context-menu{cursor:pointer;background:#f2f4f8;border-radius:4px;padding:0 6px;color:#1890ff;margin-left:10px}.header-size a.ce-size-sort{cursor:pointer;background:#f2f4f8;border-radius:4px;padding:0 6px;color:#8c97a0;margin-left:10px}.header-size a.ce-size-sort i{display:none}.header-size a.ce-size-sort.by-desc{background-color:#fdc94a;color:#1a2734}.header-size a.ce-size-sort.by-desc i.icon-sort-desc{display:inline-block}.header-size a.ce-size-sort.by-asc{background-color:#fdc94a;color:#1a2734}.header-size a.ce-size-sort.by-asc i.icon-sort-asc{display:inline-block}.header-size a.ce-size-sort.ce-size-sort-ing{cursor:no-drop}.ce-offline-config{max-height:70vh;overflow-y:auto}.ce-offline-config .ce-tips{margin-top:20px;margin-left:56px}.ce-offline-config .pure-form-message{margin-left:56px}.ce-offline-exporter{position:absolute;left:140px;top:62px;background:#f4f2ff;padding:6px 10px;border-radius:4px}.ce-offline-exporter button{margin-right:6px}.offline-exporter-config-form{width:550px;padding:10px}.swal2-input#swalDeleteFile{width:20px;padding:0;height:20px;margin:0;vertical-align:sub;cursor:pointer}body.ce-list-s #js-main{padding-top:40px}body.ce-list-s .ce-offline-exporter{top:92px}.ce-offline-searcher{position:absolute;left:140px;top:58px;background:#f4f2ff;padding:4px 10px;border-radius:4px}.ce-offline-searcher.loading form{opacity:.5;pointer-events:none;cursor:wait}.ce-offline-searcher fieldset{padding:0}.ce-offline-searcher .clearable-wrap{position:relative;width:320px}.ce-offline-searcher .clearable-wrap.is-empty .btn-clear{display:none}.ce-offline-searcher .clearable-wrap input{width:300px;padding-right:35px!important}.ce-offline-searcher .clearable-wrap .btn-clear{position:absolute;right:30px;top:4px;display:block}.ce-offline-searcher .form-item{display:inline-block;margin-right:10px;vertical-align:middle}.ce-offline-searcher .form-item input{padding:.3em}.ce-offline-searcher .form-item select{height:2em;padding:.1em .3em}.ce-offline-searcher .form-item label{margin-right:5px}.ce-offline-searcher .help-trigger{font-size:12px}.ce-offline-searcher .list{display:none}.ce-offline-searcher .stop-on-found{width:16px;height:16px;vertical-align:middle;cursor:pointer}.ce-offline-searcher .search-tips{position:fixed;top:146px;bottom:30px;left:0;width:100%;background:#fff;z-index:9999}.ce-offline-searcher .search-tips .tips-body{padding:20px;position:absolute;top:70px;left:50%;transform:translate(-50%,-50%);background:#f4f2ff;width:80%;border-radius:6px}.cloud115-page-offline.ce-list-m .list-contents .file-name-wrap .desc-tips{left:75px}.cloud115-page-offline.ce-list-m li.ce-task-trouble .info-hash{left:210px!important}.cloud115-page-offline li .ce-buttons{float:left;margin-right:6px}.cloud115-page-offline .ce-checkbox{width:30px}.cloud115-page-offline .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp .info-hash{position:absolute;left:47px;top:25px;color:#ababab;cursor:pointer}.cloud115-page-offline #js-warp .info-hash.hover{color:#6ab2ff}.cloud115-page-offline #js-warp li.ce-selected:before{background:#ffe296!important}.cloud115-page-offline #js-warp li.ce-show-checkbox .info-hash{left:60px}.cloud115-page-offline #js-warp li.ce-show-checkbox .file-name{margin-left:15px}.cloud115-page-offline #js-warp li.ce-show-checkbox .file-type{left:25px!important}.cloud115-page-offline #js-warp li .ce-checkbox{width:30px;position:absolute;left:0}.cloud115-page-offline #js-warp li .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp li .desc-tips{position:absolute;left:60px;top:25px}.cloud115-eh-cleaner-trigger .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f}.ce-drawer{visibility:hidden}.ce-drawer.is-visible{visibility:visible}.ce-drawer.is-open .ce-drawer__overlay{opacity:.5}.ce-drawer.is-open .ce-drawer__content{transform:translate(0)}.ce-drawer__overlay{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;z-index:200;opacity:0;transition-property:opacity;background-color:#000;user-select:none}.ce-drawer__content{position:fixed;top:0;right:0;bottom:0;height:100%;width:100%;z-index:9999;overflow:auto;transition-property:transform;display:flex;flex-direction:column;transform:translate(100%);box-shadow:0 2px 6px #777}.k-p-e{font-size:12px}.v-popper.v-popper--theme-dropdown{display:inline-block}.group-manager{width:750px;padding-top:8px}.group-manager a{font-size:12px;padding:0 4px;margin-right:8px}.group-manager .group-label{color:#fff;font-size:12px;margin-right:10px;border-radius:4px;padding:2px 8px;background:#66acf9}.group-manager .label-readonly{background:#c93c3c;color:#fff;padding:0 4px;border-radius:4px;vertical-align:middle;margin-right:6px}.append-form{background:#fff;width:350px;padding:10px;border-radius:4px}.append-form input,.append-form textarea{width:100%}.group-form{background:#fff;padding:10px;border-radius:4px}.group-form .pure-control-group{margin-bottom:10px}.group-form input,.group-form textarea{width:80%}.group-form .filter-label{cursor:pointer;padding:0 4px;text-decoration:underline}.group-form input#groupLabel,.group-form input#groupUrl{display:inline-block}.group-form #groupValues{resize:vertical}.group-form .values{display:flex}.group-form .values textarea{width:98%;font-size:12px;line-height:22px}.group-form .values .v-input{flex:6}.group-form .values .v-help{flex:4}.groups-list{background:#fff;width:565px;padding:10px;border-radius:4px;box-shadow:0 0 4px #d8d8d8}.groups-list table th,.groups-list table td{padding:4px 6px}.groups-list ul li{border-bottom:1px solid #eee;padding:4px}.groups-list ul li:nth-last-child(1){border-bottom:none}.groups-list span{display:inline-block}.groups-list .p-index{width:30px}.groups-list .p-label{width:120px}.groups-list .p-actions button{margin-right:8px}.group-confirm-delete{padding:20px}.cloud115-eh-cleaner-help{font-size:12px;position:absolute;top:0;right:0;width:360px;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.cloud115-eh-cleaner-help ul{list-style:decimal}.pagination-container{margin:8px 0}.pagination-container li{margin-right:10px}.pagination-container li .paginate-buttons{padding:4px 8px;width:46px;text-align:center}.pagination-container li .paginate-buttons.active-page{color:#411cc8;font-weight:700}ul#componentContainer{padding-inline-start:0;list-style-type:none;display:inline-flex}ul#componentContainer a{text-decoration:none;display:flex;justify-content:center;align-items:center}.ce-file-list[data-v-89339f2e]{padding:20px 10px 50px 20px}.ce-file-list table[data-v-89339f2e]{font-size:12px}.ce-file-list table td[data-v-89339f2e]{word-break:break-all}.v-popper__arrow-container{display:none}.ce-cleaner-x .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f;display:none}.ce-cleaner-x .actions-bar{padding-bottom:10px;width:72%}.ce-cleaner-x .actions-bar .title{font-size:18px;font-weight:700;color:#15110c}.ce-cleaner-x .actions-bar .close{margin-left:20px;margin-right:10px;color:#f40}.ce-cleaner-x .actions-bar i.tp-folder{width:18px;height:18px;vertical-align:sub}.ce-cleaner-x .actions-bar .ce-path{font-size:14px;margin-top:4px}.ce-cleaner-x .actions-bar .ce-path a:hover{text-decoration:underline}#cloud115Cleaner{margin-left:10px}.cloud115-eh-cleaner{position:relative}.cloud115-eh-cleaner-drawer{background:#fff;padding:10px 20px 200px;overflow-y:auto}.cloud115-eh-cleaner-drawer.loading{cursor:wait}.cloud115-eh-cleaner-drawer.loading button,.cloud115-eh-cleaner-drawer.loading input{cursor:no-drop;pointer-events:none}.cloud115-eh-cleaner-drawer .config-toggle{display:inline-block;background:#eee;border-radius:4px;opacity:.2;padding:2px 4px;cursor:pointer}.cloud115-eh-cleaner-drawer .config-toggle.hover{opacity:.7}.cloud115-eh-cleaner-drawer .by-box .by-header{padding-bottom:10px}.cloud115-eh-cleaner-drawer .by-box .by-header .title{font-size:16px;margin-right:8px;color:#0078e6;font-weight:400}.cloud115-eh-cleaner-drawer .by-box .by-header .filter-size{width:100px;font-size:14px;font-weight:700;color:#0078e6;text-indent:6px}.cloud115-eh-cleaner-drawer .by-box .pure-button-group{display:inline-block}.cloud115-eh-cleaner-drawer .by-box .pure-button-group .pure-button{vertical-align:inherit}.cloud115-eh-cleaner-drawer .by-box .pattern-groups{width:750px;text-align:right}.cloud115-eh-cleaner-drawer .by-box .pattern-groups a{font-size:12px;padding:0 4px;margin-right:8px}.cloud115-eh-cleaner-drawer .by-box table tr.active{background:#f7ffc3}.cloud115-eh-cleaner-drawer .by-box table tr.is-dir .pattern{color:#f40}.cloud115-eh-cleaner-drawer .by-box table tr th,.cloud115-eh-cleaner-drawer .by-box table tr td{padding:.5em;font-size:12px}.cloud115-eh-cleaner-drawer .by-box table tr .item-meta{font-size:11px}.cloud115-eh-cleaner-drawer .by-box table tr .item-meta .ce-label{background:#e6e6e6;color:#818181;margin:0 2px;font-size:10px}.cloud115-eh-cleaner-drawer .by-box table tr .item-meta .ce-label.ce-label-danger{background:#cbc8ff;color:#fff}.cloud115-eh-cleaner-drawer .by-box table tr .item-meta .ce-label:first-child{margin-left:4px}.cloud115-eh-cleaner-drawer .by-box table td button:not(:last-child){margin-right:8px}.cloud115-eh-cleaner-drawer .by-box table td a{color:#2877f8}.cloud115-eh-cleaner-drawer .by-box table td .tp-folder{width:16px;height:16px;vertical-align:sub}.cloud115-eh-cleaner-drawer .by-box table.table-matched tr.item-unmatched,.cloud115-eh-cleaner-drawer .by-box table.table-unmatched tr.item-matched{display:none}.by-keyword.kw-cate-dir tbody tr:not(.is-dir),.by-keyword.kw-cate-file tbody tr.is-dir{opacity:.5;pointer-events:none;cursor:no-drop}.fixed-header-table{width:68%;border-collapse:collapse}.fixed-header-table thead{position:sticky;top:0;background-color:#f2f2f2;z-index:1}.fixed-header-table tbody{display:block;max-height:450px;overflow-y:auto;overflow-x:hidden}.fixed-header-table thead,.fixed-header-table tbody tr{display:table;width:100%;table-layout:fixed}.fixed-header-table th,.fixed-header-table td{padding:10px;border:1px solid #ddd}td.item-index{width:29px}td.item-val{width:308px}td.item-num{width:106px}td.item-size{width:89px}td.item-actions{width:166px}td.item-status{width:204px}.ce-empty-cleaner-trigger .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f}.ce-empty-cleaner-help[data-v-ce900ab5]{font-size:12px;position:absolute;top:0;right:0;width:360px;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.ce-empty-cleaner-help ul[data-v-ce900ab5]{list-style:decimal}#cloud115EmptyCleaner{margin-left:10px}.ce-empty-cleaner{position:relative}.ce-empty-cleaner .top-actions .pure-control-group label{width:auto;text-align:left}.ce-empty-cleaner .ec-logs{max-height:250px;overflow-y:auto;max-width:72%;background:#f4f4f4;padding:10px;line-height:22px;font-size:12px;margin-bottom:20px}.ce-empty-cleaner .ec-items{margin-bottom:30px}.ce-empty-cleaner .ec-items table{font-size:12px;width:72%}.ce-empty-cleaner .ec-items table .tr-deleted>td:not(:last-child){text-decoration:line-through}.ce-empty-cleaner-drawer{background:#fff;padding:10px 20px 200px;overflow-y:auto}.ce-empty-cleaner-drawer.loading{cursor:wait}.ce-empty-cleaner-drawer.loading button,.ce-empty-cleaner-drawer.loading input{cursor:no-drop;pointer-events:none}.button-xsmall,.button-mini{font-size:12px;padding:.2em .5em}.button-small{font-size:85%}.button-large{font-size:110%}.button-xlarge{font-size:125%}.button-success,.button-error,.button-warning,.button-secondary{color:#fff;border-radius:2px;text-shadow:0 1px 1px rgba(0,0,0,.2)}.button-success{background:#1cb841}.button-error{background:#ca3c3c}.button-warning{background:#df7514}.button-secondary{background:#42b8dd}.pure-form select{height:2.5em;font-size:12px}.pure-form input:not([type]){padding:4px 6px}.pure-form input[type=number]{min-width:100px}.ce-basic-config .pure-form-message{margin-left:82px}.ce-basic-config .avatar-preview{display:inline-block;vertical-align:middle;margin-left:10px}.ce-basic-config .pure-control-group input.input-small{padding:2px 4px;width:auto}.ce-clouddrive-config-item{margin-bottom:20px;border:1px solid #cbcbcb;border-radius:0;padding:4px}.ce-clouddrive-config-item.active{background:#fefcea}.ce-clouddrive-config-item input:not([type]){font-size:12px}.ce-clouddrive-config-item .button-error{float:right}.ce-clouddrive-config .cd-tips a{text-decoration:underline}.ce-clouddrive-config .cd-code{font-size:110%;cursor:pointer;user-select:none}.ce-list-config .pure-control-group label{width:16em}.ce-list-config .pure-form-message{margin-left:3em}.ce-search-config .pure-control-group label{width:15em}.ce-search-config .pure-form-message{margin-left:3em}.ce-tools-config .pure-control-group label{width:15em}.ce-tools-config .pure-form-message{margin-left:3em}.menu-basic-config .pure-control-group label{width:170px!important}.ce-field{background:#fff;margin-bottom:1px;padding:4px}.ce-field:hover{background:#fefcea}.ce-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.menu-config-block span.btn-toggle-top{margin-left:8px;cursor:pointer;opacity:.3}.menu-config-block span.btn-toggle-top.active{opacity:1}.official-menu-config .pure-form label{width:170px!important}.official-menu-config .pure-form label small{color:#999}.official-menu-config .pure-form legend .ce-label{cursor:pointer;font-size:12px;float:right}.official-menu-config .pure-form .ce-toggle{font-size:12px;cursor:pointer;color:#909399}.official-menu-config .pure-form .menu-key{opacity:0}.official-menu-config .pure-form .menu-item:hover .menu-key{opacity:1}.official-menu-config .pure-form .hidden .ce-toggle{color:#1890ff}.ce-menu-config .menu-config-block{display:inline-block;border-radius:6px;margin:4px;vertical-align:top;padding:0 6px;background:#f9f9f9}.ce-menu-config .menu-config-block>form>legend{border:none;text-align:center;font-size:14px;color:#5092ff;padding:4px;margin-bottom:0}.ce-menu-config .menu-config-block>form>fieldset>div{background:#fff;margin-bottom:1px;padding:4px}.ce-menu-config .menu-config-block>form>fieldset>div:hover{background:#fefcea}.ce-menu-config .menu-config-block label{display:inline-block;width:120px;font-size:12px;line-height:20px;vertical-align:middle;cursor:pointer}.ce-menu-config input[type=checkbox]{margin-right:10px;width:18px;height:18px;cursor:pointer;vertical-align:middle}.ce-menu-config .btn-view-info{display:inline-block;margin-right:6px;vertical-align:middle;cursor:help}.ce-custom-url{border-radius:4px;box-shadow:0 0 5px #eee;border:1px solid #eee;margin-bottom:20px;padding:0 10px;background:#fff}.ce-custom-url label{cursor:pointer}.ce-custom-url input:not([type]){font-size:12px}.ce-custom-url textarea{font-size:12px;resize:vertical}.ce-custom-url input[type=checkbox]{width:18px;height:18px;cursor:pointer}.ce-custom-url .ce-custom-url-index{font-size:14px;font-weight:700;margin-right:20px}.ce-custom-url legend .button-error{float:right}.ce-custom-url fieldset>div{margin-bottom:1px;padding:4px}.ce-custom-url fieldset>div:hover{background:#fefcea}.ce-custom-urls{padding-bottom:100px}.ce-custom-urls .item-icon img{vertical-align:middle}.ce-custom-urls .item-memo{display:inline-block;width:320px}.ce-play-urls{padding-bottom:100px}.ce-play-urls .item-icon img{vertical-align:middle}.ce-play-urls .item-memo{display:inline-block;width:340px}.ce-play-urls .extra-memo{font-size:12px;margin-left:10px}.ce-play-urls .extra-memo a{text-decoration:underline;color:#337ab7}.ce-anxia-config .pure-control-group label{width:9em}.ce-anxia-config .pure-form-message{margin-left:3em}.ce-share-config .pure-control-group label{width:15em}.ce-share-config .pure-form-message{margin-left:3em}.ce-config-main .ce-intro{margin-left:35%;color:#7676ff}.ce-config-main .ce-intro small{color:#999}.ce-config-main .ce-config-main-body{padding:10px}.ce-config-main .ce-config-main-header{padding:10px;position:sticky;top:0;background:#fff;z-index:100000;box-shadow:0 1px 2px #e9e9e9}.ce-config-main .ce-config-main-header h1{display:inline;font-size:18px}.ce-config-main .ce-config-main-header .ce-config-main-close{float:right;vertical-align:top;color:#89929b;cursor:pointer;padding:2px 20px;border-radius:6px}.ce-config-main .ce-config-main-header .ce-config-main-close:hover{background:#fefcea;color:#0275ff}.ce-config-main .ce-offline-config{max-height:unset}.ce-login-page a.ce-entry{display:inline-block;background:#fefcea;padding:2px 6px;border-radius:4px;border:1px solid #234888;margin:0 4px}.list-contents ul li .ce-btn-folder-size{background:#f2f4f8;border-radius:6px;padding:4px;cursor:pointer}.list-contents ul li .ce-file-sha1{position:absolute;top:20px;color:#999;cursor:pointer;font-size:90%}.list-contents ul li.ce-show-sha1 .file-name{height:40px}.list-contents ul li.ce-size-got .ce-btn-folder-size{opacity:.6;margin-left:6px}.list-contents ul li.ce-size-got .ce-btn-folder-size:hover{opacity:1}#js_top_header_file_path_box .ce-path-btn{background-color:#f4f6fc;height:32px}#js_top_header_file_path_box .ce-path-btn#ceGotoPath{margin-right:6px}#js_top_header_file_path_box.ce-goto-path-active{height:60px}#js_top_header_file_path_box.ce-goto-path-active div#js_path_add_dir{height:32px}#js_top_header_file_path_box #ceGotoPathApp{position:absolute;top:40px}#js_top_panel_box #js_operate_box.ce-show-quick-entry{display:none!important}.ce-goto-main{position:relative;margin-right:5px}.ce-goto-main.ce-goto-sug-shown .ce-goto-input-wrap{border-radius:6px 6px 0 0}.ce-goto-main.ce-goto-sug-shown .ce-goto-sug{display:block}.ce-goto-main .ce-goto-input-wrap{position:relative;overflow:hidden;border:1px solid #cfcccc;border-radius:6px}.ce-goto-main .ce-goto-input-wrap .ce-goto-input{border-radius:6px 6px 0 0;border:none;padding:4px 10px;width:100%;box-sizing:border-box;color:#2877f8;border-bottom:none}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn{position:absolute;border:none}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn:hover{color:#ff723e}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd]{top:5px;font-size:12px;background:#aeaeae;color:#fff;padding:0 4px;border-radius:4px;cursor:pointer}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd]:hover{background:#ff723e}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd][disabled]{background:#d7d7d7;cursor:not-allowed}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd=clear]{right:10px}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd=toggle]{right:50px}.ce-goto-main .ce-goto-sug{display:none;position:absolute;background:#fff;width:100%;padding:10px 10px 10px 8px;max-height:250px;z-index:999999;overflow-y:auto;box-shadow:0 5px 8px #ededed;border-radius:0 0 6px 6px;border:1px solid #cfcccc;box-sizing:border-box;border-top:none}.ce-goto-main .ce-goto-sug .ce-goto-sug-item{padding:4px 10px;background:#f4f6fc;margin-bottom:4px;cursor:pointer;border-radius:4px;font-size:12px;color:#353535}.ce-goto-main .ce-goto-sug .ce-goto-sug-item:hover{background:#d7d7d7}.ce-goto-main .ce-goto-sug .ce-goto-sug-item.active{background:#f4e1cf;color:#2877f8}.ce-goto-main .ce-goto-sug .ce-goto-sug-item span.ce-goto-sug-prefix,.ce-goto-main .ce-goto-sug .ce-goto-sug-item span.ce-goto-sep{color:#a4a4a4}.ce-goto-main .ce-goto-sug .ce-goto-sug-item span.ce-goto-sug-index{display:inline-block;background:#6ab2ff;font-size:10px;min-width:20px;color:#fff;border-radius:4px;text-align:center;padding:0 2px;margin-right:4px}.ce-search-page .top-file-path .file-path{float:left}.ce-search-page .dir-tab.ce-btn-select{background:#fffcea;color:#2877f8;display:inline-block;height:32px;line-height:24px;font-size:12px;padding:4px 8px;box-sizing:border-box;border:1px solid #2877f8;border-radius:4px}.ce-search-page .dir-tab.ce-btn-select:hover{background:#ff0}.ce-share-page.ce-share-fresh .sharing-banner,.ce-share-page.ce-share-fresh .promptbar-caution{display:none!important}.ce-share-page .sharing-banner{max-width:1000px;margin:0 auto}.ce-share-page .ce-list-summary{background:#fefcea;color:#a37958;border-radius:4px;padding:0 6px;margin-left:10px} `);

(function () {
  'use strict';

  var mw=Object.defineProperty;var gw=(e,t,n)=>t in e?mw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ce=(e,t,n)=>gw(e,typeof t!="symbol"?t+"":t,n);const yw=typeof btoa=="function",Rl=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const uc=typeof TextEncoder=="function"?new TextEncoder:void 0,ww="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",zo=Array.prototype.slice.call(ww);(e=>{let t={};return e.forEach((n,s)=>t[n]=s),t})(zo);const Tn=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const bw=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),vw=e=>{let t,n,s,i,o="";const r=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(s=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|s<<8|i,o+=zo[t>>18&63]+zo[t>>12&63]+zo[t>>6&63]+zo[t&63];}return r?o.slice(0,r-3)+"===".substring(r):o},Qd=yw?e=>btoa(e):Rl?e=>Buffer.from(e,"binary").toString("base64"):vw,_w=Rl?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let s=0,i=e.length;s<i;s+=4096)n.push(Tn.apply(null,e.subarray(s,s+4096)));return Qd(n.join(""))},xw=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Tn(192|t>>>6)+Tn(128|t&63):Tn(224|t>>>12&15)+Tn(128|t>>>6&63)+Tn(128|t&63)}else {var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Tn(240|t>>>18&7)+Tn(128|t>>>12&63)+Tn(128|t>>>6&63)+Tn(128|t&63)}},Cw=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,kw=e=>e.replace(Cw,xw),cc=Rl?e=>Buffer.from(e,"utf8").toString("base64"):uc?e=>_w(uc.encode(e)):e=>Qd(kw(e)),dc=(e,t=!1)=>t?bw(cc(e)):cc(e);var qe=(e=>(e.listItemHover="listItemHover",e.listItemHoverSub="listItemHoverSub",e.listItemContext="listItemContext",e.listItemContextSub="listItemContextSub",e.selection="selection",e.selectionSub="selectionSub",e.dirContext="dirContext",e.dirContextSub="dirContextSub",e))(qe||{}),go=(e=>(e.listItemHover="列表项悬浮菜单",e.listItemHoverSub="列表项悬浮子菜单",e.listItemContext="列表项右键菜单",e.listItemContextSub="列表项右键子菜单",e.selection="选中项菜单",e.selectionSub="选中项子菜单",e.dirContext="当前目录右键菜单",e.dirContextSub="当前目录右键子菜单",e))(go||{}),Ns=(e=>(e[e.after=0]="after",e[e.before=1]="before",e))(Ns||{}),$w=typeof GM_deleteValue<"u"?GM_deleteValue:void 0,Cr=typeof GM_getValue<"u"?GM_getValue:void 0,Sw=typeof GM_info<"u"?GM_info:void 0,Ew=typeof GM_openInTab<"u"?GM_openInTab:void 0,tr=typeof GM_registerMenuCommand<"u"?GM_registerMenuCommand:void 0,yo=typeof GM_setClipboard<"u"?GM_setClipboard:void 0,Ka=typeof GM_setValue<"u"?GM_setValue:void 0,Nl=typeof GM_xmlhttpRequest<"u"?GM_xmlhttpRequest:void 0,Aw={name:"115不大助手",version:"0.7.28",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"http://greasyfork.icu/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"},yt=(e=>(e.basic="basic_config",e.anxia="anxia_config",e.clouddrive="clouddrive_configs",e.list="list_config",e.enabledCustomUrlsForSearch="enabled_custom_urls_for_search",e.enabledCustomUrlsForPlay="enabled_custom_urls_for_play",e.menuCustomUrlsForSearch="menu_custom_urls_for_search",e.menuCustomUrlsForPlay="menu_custom_urls_for_play",e.menu="ce_menu_config",e.hiddenOfficialMenuKeys="hidden_official_menu_keys",e.offline="offlineExporterConfig",e.search="search_config",e.tools="tools_config",e.cleanerConfig="cleanerConfig",e.cleanerSuffixGroups="suffixGroups",e.cleanerKeywordGroups="keywordGroups",e.share="share",e))(yt||{});const Fl=Object.values(yt),Xd=async(e,t)=>Cr(e,t),Pw=async(e,t)=>Ka(e,t),Zd=async e=>$w(e),Iw=async()=>{for(const e of Fl)await Zd(e);},ef=async()=>{const e={};for(const t of Fl)e[t]=await Xd(t,{});return e};async function Tw(){const e=await ef(),t=Aw;e._meta={name:t.name,version:t.version,time:new Date().toLocaleString(),browser:navigator.userAgent},e._schema="pan115_enhancer_configs";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([JSON.stringify(e,null,2)],{type:"application/json"})),n.download=`${t.name}-v${t.version}-配置.json`,n.click();}async function Ow(){return new Promise((e,t)=>{const n=document.createElement("input");n.type="file",n.accept="application/json",n.oncancel=()=>{t("取消选择文件!");},n.onchange=async()=>{const s=n.files&&n.files[0];if(!s){t("未选择文件!");return}const i=await new Promise((r,a)=>{const l=new FileReader;l.onload=()=>{try{r(JSON.parse(l.result));}catch(u){a(u);}},l.onerror=()=>{a(l.error);},l.readAsText(s);});if(i._schema!=="pan115_enhancer_configs"){t("这不是一个脚本配置文件!");return}const o=[];for(const r of Fl)o.push(r),i[r]&&await lt.set(r,i[r]);e({data:i,importedKeys:o});},n.click();})}const lt={get:Xd,set:Pw,remove:Zd,clear:Iw,getAll:ef},tf=yt.clouddrive;var kr=(e=>(e.windows="windows",e.macos="macos",e.linux="linux",e.android="android",e))(kr||{}),ps=(e=>(e.play="play",e.download="download",e))(ps||{});function Ul(e){return {active:!1,url:"http://localhost:19798",root:"/115",memo:"",platform:void 0,...e}}async function nf(){const e=[Ul()],t=await lt.get(tf,e);return t||e}async function fc(e){e.some(t=>t.active)||(e[0].active=!0),await lt.set(tf,e);}async function So(){return (await nf()).find(t=>t.active)||Ul()}function Mw(e){if(!document.execCommand)return !1;const t=document.createElement("input");t.style.position="fixed",t.style.opacity="0",t.value=e,document.body.appendChild(t),t.select();try{return document.execCommand("Copy")}catch(n){console.warn("[copyViaCmd] execCommand",n);}finally{document.body.removeChild(t);}return !1}function Lw(e){prompt("请复制以下内容:",e);}function qt(e){if(typeof yo=="function"){yo(e,"text");return}const t=()=>{Mw(e)||Lw(e);};navigator.clipboard?navigator.clipboard.writeText(e).then(()=>{}).catch(n=>{console.warn("[copyToClipboard] navigator.clipboard",n),t();}):t();}function $r(e="",t=""){return e+Date.now().toString()+Math.random().toString(36).substring(5)+t}async function pc(e,t=!1){try{return await navigator.clipboard.writeText(e),!0}catch(n){return console.warn("[copy]",n),t?(prompt("请复制内容:",e),!0):!1}}function sf(e,t="NFD"){return e.normalize(t)}function Dw(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function of(e,t){return e=e.replace(/^[\/]+/g,""),"/"+e}function rf(e){return e.startsWith("file://")}async function wo(e,t,n=ps.play,s=!0,i=""){e.platform===kr.macos&&(t=sf(t,"NFD"));let{url:o,root:r}=e;if(!o)throw new Error("未设置CloudDrive地址!");(o.startsWith("/")||o.startsWith("\\"))&&(o=`file:///${o}`),rf(o);const a=/^https?:\/\//.test(o);if(a&&!r)throw new Error("当协议为http/https时,必须设置CloudDrive资源根路径!");r&&(r=r.replace(/^(\/+)?/g,"/")),t=t.replace(/^(\/+)?/g,"/");const l=`${r}${t}`,u=n===ps.play?"True":"False";let d="";return o=o.replace(/\/+$/,""),a?d=`${o}/static/${o.replace("://","/")}/${u}/${encodeURIComponent(l)}`:d=`${o}${l}`,i&&(d+=i),s&&(d+="?check_expire=True"),console.log("[Cloud115 Enhancer] buildCloudDriveUrl",d),d}async function Ga(e,t,n=!0){let{url:s,root:i}=e;if(!s)throw new Error("未设置CloudDrive地址!");return (s.startsWith("/")||s.startsWith("\\"))&&(s=`file:///${s}`),rf(s)?await wo(e,t,ps.play,n):await wo(e,t,ps.play,n,".clfsplaylist.m3u")}async function Bw(e,t){let{url:n}=e;if(!n)throw new Error("未设置CloudDrive地址!");return n.startsWith("http")||(n=`http://${n}`),n=n.replace(/\/+$/,""),t=e.root.replace(/\/+$/,"")+t,t=t.replace(/^(\/+)?/g,"/"),e.platform===kr.macos&&(t=sf(t,"NFD")),`${n}/#${t}?a=1`}var ts=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var af={exports:{}};/*!
  * sweetalert2 v11.7.2
  * Released under the MIT License.
  */(function(e,t){((function(n,s){e.exports=s();}))(ts,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const s="swal2-",i=f=>{const p={};for(const y in f)p[f[y]]=s+f[y];return p},o=i(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),r=i(["success","warning","info","question","error"]),a="SweetAlert2:",l=f=>{const p=[];for(let y=0;y<f.length;y++)p.indexOf(f[y])===-1&&p.push(f[y]);return p},u=f=>f.charAt(0).toUpperCase()+f.slice(1),d=f=>{console.warn(`${a} ${typeof f=="object"?f.join(" "):f}`);},h=f=>{console.error(`${a} ${f}`);},g=[],v=f=>{g.includes(f)||(g.push(f),d(f));},b=(f,p)=>{v(`"${f}" is deprecated and will be removed in the next major release. Please use "${p}" instead.`);},_=f=>typeof f=="function"?f():f,B=f=>f&&typeof f.toPromise=="function",L=f=>B(f)?f.toPromise():Promise.resolve(f),F=f=>f&&Promise.resolve(f)===f,O=()=>document.body.querySelector(`.${o.container}`),D=f=>{const p=O();return p?p.querySelector(f):null},j=f=>D(`.${f}`),H=()=>j(o.popup),K=()=>j(o.icon),fe=()=>j(o["icon-content"]),ve=()=>j(o.title),ce=()=>j(o["html-container"]),R=()=>j(o.image),N=()=>j(o["progress-steps"]),G=()=>j(o["validation-message"]),he=()=>D(`.${o.actions} .${o.confirm}`),be=()=>D(`.${o.actions} .${o.cancel}`),$e=()=>D(`.${o.actions} .${o.deny}`),Pe=()=>j(o["input-label"]),Ee=()=>D(`.${o.loader}`),We=()=>j(o.actions),Ze=()=>j(o.footer),_e=()=>j(o["timer-progress-bar"]),M=()=>j(o.close),Ne=`
  a[href],
  area[href],
  input:not([disabled]),
  select:not([disabled]),
  textarea:not([disabled]),
  button:not([disabled]),
  iframe,
  object,
  embed,
  [tabindex="0"],
  [contenteditable],
  audio[controls],
  video[controls],
  summary
`,pt=()=>{const f=Array.from(H().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((y,C)=>{const X=parseInt(y.getAttribute("tabindex")),Te=parseInt(C.getAttribute("tabindex"));return X>Te?1:X<Te?-1:0}),p=Array.from(H().querySelectorAll(Ne)).filter(y=>y.getAttribute("tabindex")!=="-1");return l(f.concat(p)).filter(y=>J(y))},Ie=()=>T(document.body,o.shown)&&!T(document.body,o["toast-shown"])&&!T(document.body,o["no-backdrop"]),ut=()=>H()&&T(H(),o.toast),wt=()=>H().hasAttribute("data-loading"),Tt={previousBodyPadding:null},Z=(f,p)=>{if(f.textContent="",p){const C=new DOMParser().parseFromString(p,"text/html");Array.from(C.querySelector("head").childNodes).forEach(X=>{f.appendChild(X);}),Array.from(C.querySelector("body").childNodes).forEach(X=>{X instanceof HTMLVideoElement||X instanceof HTMLAudioElement?f.appendChild(X.cloneNode(!0)):f.appendChild(X);});}},T=(f,p)=>{if(!p)return !1;const y=p.split(/\s+/);for(let C=0;C<y.length;C++)if(!f.classList.contains(y[C]))return !1;return !0},W=(f,p)=>{Array.from(f.classList).forEach(y=>{!Object.values(o).includes(y)&&!Object.values(r).includes(y)&&!Object.values(p.showClass).includes(y)&&f.classList.remove(y);});},xe=(f,p,y)=>{if(W(f,p),p.customClass&&p.customClass[y]){if(typeof p.customClass[y]!="string"&&!p.customClass[y].forEach){d(`Invalid type of customClass.${y}! Expected string or iterable object, got "${typeof p.customClass[y]}"`);return}z(f,p.customClass[y]);}},x=(f,p)=>{if(!p)return null;switch(p){case"select":case"textarea":case"file":return f.querySelector(`.${o.popup} > .${o[p]}`);case"checkbox":return f.querySelector(`.${o.popup} > .${o.checkbox} input`);case"radio":return f.querySelector(`.${o.popup} > .${o.radio} input:checked`)||f.querySelector(`.${o.popup} > .${o.radio} input:first-child`);case"range":return f.querySelector(`.${o.popup} > .${o.range} input`);default:return f.querySelector(`.${o.popup} > .${o.input}`)}},S=f=>{if(f.focus(),f.type!=="file"){const p=f.value;f.value="",f.value=p;}},V=(f,p,y)=>{!f||!p||(typeof p=="string"&&(p=p.split(/\s+/).filter(Boolean)),p.forEach(C=>{Array.isArray(f)?f.forEach(X=>{y?X.classList.add(C):X.classList.remove(C);}):y?f.classList.add(C):f.classList.remove(C);}));},z=(f,p)=>{V(f,p,!0);},te=(f,p)=>{V(f,p,!1);},se=(f,p)=>{const y=Array.from(f.children);for(let C=0;C<y.length;C++){const X=y[C];if(X instanceof HTMLElement&&T(X,p))return X}},ge=(f,p,y)=>{y===`${parseInt(y)}`&&(y=parseInt(y)),y||parseInt(y)===0?f.style[p]=typeof y=="number"?`${y}px`:y:f.style.removeProperty(p);},ae=function(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";f.style.display=p;},ue=f=>{f.style.display="none";},de=(f,p,y,C)=>{const X=f.querySelector(p);X&&(X.style[y]=C);},Ae=function(f,p){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";p?ae(f,y):ue(f);},J=f=>!!(f&&(f.offsetWidth||f.offsetHeight||f.getClientRects().length)),ke=()=>!J(he())&&!J($e())&&!J(be()),m=f=>f.scrollHeight>f.clientHeight,w=f=>{const p=window.getComputedStyle(f),y=parseFloat(p.getPropertyValue("animation-duration")||"0"),C=parseFloat(p.getPropertyValue("transition-duration")||"0");return y>0||C>0},k=function(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const y=_e();J(y)&&(p&&(y.style.transition="none",y.style.width="100%"),setTimeout(()=>{y.style.transition=`width ${f/1e3}s linear`,y.style.width="0%";},10));},A=()=>{const f=_e(),p=parseInt(window.getComputedStyle(f).width);f.style.removeProperty("transition"),f.style.width="100%";const y=parseInt(window.getComputedStyle(f).width),C=p/y*100;f.style.width=`${C}%`;},q=100,P={},ee=()=>{P.previousActiveElement instanceof HTMLElement?(P.previousActiveElement.focus(),P.previousActiveElement=null):document.body&&document.body.focus();},Q=f=>new Promise(p=>{if(!f)return p();const y=window.scrollX,C=window.scrollY;P.restoreFocusTimeout=setTimeout(()=>{ee(),p();},q),window.scrollTo(y,C);}),le=()=>typeof window>"u"||typeof document>"u",Be=`
 <div aria-labelledby="${o.title}" aria-describedby="${o["html-container"]}" class="${o.popup}" tabindex="-1">
   <button type="button" class="${o.close}"></button>
   <ul class="${o["progress-steps"]}"></ul>
   <div class="${o.icon}"></div>
   <img class="${o.image}" />
   <h2 class="${o.title}" id="${o.title}"></h2>
   <div class="${o["html-container"]}" id="${o["html-container"]}"></div>
   <input class="${o.input}" />
   <input type="file" class="${o.file}" />
   <div class="${o.range}">
     <input type="range" />
     <output></output>
   </div>
   <select class="${o.select}"></select>
   <div class="${o.radio}"></div>
   <label for="${o.checkbox}" class="${o.checkbox}">
     <input type="checkbox" />
     <span class="${o.label}"></span>
   </label>
   <textarea class="${o.textarea}"></textarea>
   <div class="${o["validation-message"]}" id="${o["validation-message"]}"></div>
   <div class="${o.actions}">
     <div class="${o.loader}"></div>
     <button type="button" class="${o.confirm}"></button>
     <button type="button" class="${o.deny}"></button>
     <button type="button" class="${o.cancel}"></button>
   </div>
   <div class="${o.footer}"></div>
   <div class="${o["timer-progress-bar-container"]}">
     <div class="${o["timer-progress-bar"]}"></div>
   </div>
 </div>
`.replace(/(^|\n)\s*/g,""),Le=()=>{const f=O();return f?(f.remove(),te([document.documentElement,document.body],[o["no-backdrop"],o["toast-shown"],o["has-column"]]),!0):!1},Se=()=>{P.currentInstance.resetValidationMessage();},Ke=()=>{const f=H(),p=se(f,o.input),y=se(f,o.file),C=f.querySelector(`.${o.range} input`),X=f.querySelector(`.${o.range} output`),Te=se(f,o.select),ct=f.querySelector(`.${o.checkbox} input`),tn=se(f,o.textarea);p.oninput=Se,y.onchange=Se,Te.onchange=Se,ct.onchange=Se,tn.oninput=Se,C.oninput=()=>{Se(),X.value=C.value;},C.onchange=()=>{Se(),X.value=C.value;};},Bt=f=>typeof f=="string"?document.querySelector(f):f,Ot=f=>{const p=H();p.setAttribute("role",f.toast?"alert":"dialog"),p.setAttribute("aria-live",f.toast?"polite":"assertive"),f.toast||p.setAttribute("aria-modal","true");},Lo=f=>{window.getComputedStyle(f).direction==="rtl"&&z(O(),o.rtl);},Do=f=>{const p=Le();if(le()){h("SweetAlert2 requires document to initialize");return}const y=document.createElement("div");y.className=o.container,p&&z(y,o["no-transition"]),Z(y,Be);const C=Bt(f.target);C.appendChild(y),Ot(f),Lo(C),Ke();},da=(f,p)=>{f instanceof HTMLElement?p.appendChild(f):typeof f=="object"?Wm(f,p):f&&Z(p,f);},Wm=(f,p)=>{f.jquery?Km(p,f):Z(p,f.toString());},Km=(f,p)=>{if(f.textContent="",0 in p)for(let y=0;y in p;y++)f.appendChild(p[y].cloneNode(!0));else f.appendChild(p.cloneNode(!0));},Bo=(()=>{if(le())return !1;const f=document.createElement("div"),p={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const y in p)if(Object.prototype.hasOwnProperty.call(p,y)&&typeof f.style[y]<"u")return p[y];return !1})(),Gm=()=>{const f=document.createElement("div");f.className=o["scrollbar-measure"],document.body.appendChild(f);const p=f.getBoundingClientRect().width-f.clientWidth;return document.body.removeChild(f),p},Jm=(f,p)=>{const y=We(),C=Ee();!p.showConfirmButton&&!p.showDenyButton&&!p.showCancelButton?ue(y):ae(y),xe(y,p,"actions"),Ym(y,C,p),Z(C,p.loaderHtml),xe(C,p,"loader");};function Ym(f,p,y){const C=he(),X=$e(),Te=be();fa(C,"confirm",y),fa(X,"deny",y),fa(Te,"cancel",y),Qm(C,X,Te,y),y.reverseButtons&&(y.toast?(f.insertBefore(Te,C),f.insertBefore(X,C)):(f.insertBefore(Te,p),f.insertBefore(X,p),f.insertBefore(C,p)));}function Qm(f,p,y,C){if(!C.buttonsStyling){te([f,p,y],o.styled);return}z([f,p,y],o.styled),C.confirmButtonColor&&(f.style.backgroundColor=C.confirmButtonColor,z(f,o["default-outline"])),C.denyButtonColor&&(p.style.backgroundColor=C.denyButtonColor,z(p,o["default-outline"])),C.cancelButtonColor&&(y.style.backgroundColor=C.cancelButtonColor,z(y,o["default-outline"]));}function fa(f,p,y){Ae(f,y[`show${u(p)}Button`],"inline-block"),Z(f,y[`${p}ButtonText`]),f.setAttribute("aria-label",y[`${p}ButtonAriaLabel`]),f.className=o[p],xe(f,y,`${p}Button`),z(f,y[`${p}ButtonClass`]);}const Xm=(f,p)=>{const y=M();Z(y,p.closeButtonHtml),xe(y,p,"closeButton"),Ae(y,p.showCloseButton),y.setAttribute("aria-label",p.closeButtonAriaLabel);},Zm=(f,p)=>{const y=O();y&&(eg(y,p.backdrop),tg(y,p.position),ng(y,p.grow),xe(y,p,"container"));};function eg(f,p){typeof p=="string"?f.style.background=p:p||z([document.documentElement,document.body],o["no-backdrop"]);}function tg(f,p){p in o?z(f,o[p]):(d('The "position" parameter is not valid, defaulting to "center"'),z(f,o.center));}function ng(f,p){if(p&&typeof p=="string"){const y=`grow-${p}`;y in o&&z(f,o[y]);}}const sg=["input","file","range","select","radio","checkbox","textarea"],og=(f,p)=>{const y=H(),C=n.innerParams.get(f),X=!C||p.input!==C.input;sg.forEach(Te=>{const ct=se(y,o[Te]);ag(Te,p.inputAttributes),ct.className=o[Te],X&&ue(ct);}),p.input&&(X&&ig(p),lg(p));},ig=f=>{if(!Kt[f.input]){h(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${f.input}"`);return}const p=Mu(f.input),y=Kt[f.input](p,f);ae(p),f.inputAutoFocus&&setTimeout(()=>{S(y);});},rg=f=>{for(let p=0;p<f.attributes.length;p++){const y=f.attributes[p].name;["type","value","style"].includes(y)||f.removeAttribute(y);}},ag=(f,p)=>{const y=x(H(),f);if(y){rg(y);for(const C in p)y.setAttribute(C,p[C]);}},lg=f=>{const p=Mu(f.input);typeof f.customClass=="object"&&z(p,f.customClass.input);},pa=(f,p)=>{(!f.placeholder||p.inputPlaceholder)&&(f.placeholder=p.inputPlaceholder);},Ro=(f,p,y)=>{if(y.inputLabel){f.id=o.input;const C=document.createElement("label"),X=o["input-label"];C.setAttribute("for",f.id),C.className=X,typeof y.customClass=="object"&&z(C,y.customClass.inputLabel),C.innerText=y.inputLabel,p.insertAdjacentElement("beforebegin",C);}},Mu=f=>se(H(),o[f]||o.input),Ei=(f,p)=>{["string","number"].includes(typeof p)?f.value=`${p}`:F(p)||d(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof p}"`);},Kt={};Kt.text=Kt.email=Kt.password=Kt.number=Kt.tel=Kt.url=(f,p)=>(Ei(f,p.inputValue),Ro(f,f,p),pa(f,p),f.type=p.input,f),Kt.file=(f,p)=>(Ro(f,f,p),pa(f,p),f),Kt.range=(f,p)=>{const y=f.querySelector("input"),C=f.querySelector("output");return Ei(y,p.inputValue),y.type=p.input,Ei(C,p.inputValue),Ro(y,f,p),f},Kt.select=(f,p)=>{if(f.textContent="",p.inputPlaceholder){const y=document.createElement("option");Z(y,p.inputPlaceholder),y.value="",y.disabled=!0,y.selected=!0,f.appendChild(y);}return Ro(f,f,p),f},Kt.radio=f=>(f.textContent="",f),Kt.checkbox=(f,p)=>{const y=x(H(),"checkbox");y.value="1",y.id=o.checkbox,y.checked=!!p.inputValue;const C=f.querySelector("span");return Z(C,p.inputPlaceholder),y},Kt.textarea=(f,p)=>{Ei(f,p.inputValue),pa(f,p),Ro(f,f,p);const y=C=>parseInt(window.getComputedStyle(C).marginLeft)+parseInt(window.getComputedStyle(C).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const C=parseInt(window.getComputedStyle(H()).width),X=()=>{const Te=f.offsetWidth+y(f);Te>C?H().style.width=`${Te}px`:H().style.width=null;};new MutationObserver(X).observe(f,{attributes:!0,attributeFilter:["style"]});}}),f};const ug=(f,p)=>{const y=ce();xe(y,p,"htmlContainer"),p.html?(da(p.html,y),ae(y,"block")):p.text?(y.textContent=p.text,ae(y,"block")):ue(y),og(f,p);},cg=(f,p)=>{const y=Ze();Ae(y,p.footer),p.footer&&da(p.footer,y),xe(y,p,"footer");},dg=(f,p)=>{const y=n.innerParams.get(f),C=K();if(y&&p.icon===y.icon){Du(C,p),Lu(C,p);return}if(!p.icon&&!p.iconHtml){ue(C);return}if(p.icon&&Object.keys(r).indexOf(p.icon)===-1){h(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${p.icon}"`),ue(C);return}ae(C),Du(C,p),Lu(C,p),z(C,p.showClass.icon);},Lu=(f,p)=>{for(const y in r)p.icon!==y&&te(f,r[y]);z(f,r[p.icon]),mg(f,p),fg(),xe(f,p,"icon");},fg=()=>{const f=H(),p=window.getComputedStyle(f).getPropertyValue("background-color"),y=f.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let C=0;C<y.length;C++)y[C].style.backgroundColor=p;},pg=`
  <div class="swal2-success-circular-line-left"></div>
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
  <div class="swal2-success-circular-line-right"></div>
`,hg=`
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`,Du=(f,p)=>{let y=f.innerHTML,C;p.iconHtml?C=Bu(p.iconHtml):p.icon==="success"?(C=pg,y=y.replace(/ style=".*?"/g,"")):p.icon==="error"?C=hg:C=Bu({question:"?",warning:"!",info:"i"}[p.icon]),y.trim()!==C.trim()&&Z(f,C);},mg=(f,p)=>{if(p.iconColor){f.style.color=p.iconColor,f.style.borderColor=p.iconColor;for(const y of [".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])de(f,y,"backgroundColor",p.iconColor);de(f,".swal2-success-ring","borderColor",p.iconColor);}},Bu=f=>`<div class="${o["icon-content"]}">${f}</div>`,gg=(f,p)=>{const y=R();if(!p.imageUrl){ue(y);return}ae(y,""),y.setAttribute("src",p.imageUrl),y.setAttribute("alt",p.imageAlt),ge(y,"width",p.imageWidth),ge(y,"height",p.imageHeight),y.className=o.image,xe(y,p,"image");},yg=(f,p)=>{const y=O(),C=H();p.toast?(ge(y,"width",p.width),C.style.width="100%",C.insertBefore(Ee(),K())):ge(C,"width",p.width),ge(C,"padding",p.padding),p.color&&(C.style.color=p.color),p.background&&(C.style.background=p.background),ue(G()),wg(C,p);},wg=(f,p)=>{f.className=`${o.popup} ${J(f)?p.showClass.popup:""}`,p.toast?(z([document.documentElement,document.body],o["toast-shown"]),z(f,o.toast)):z(f,o.modal),xe(f,p,"popup"),typeof p.customClass=="string"&&z(f,p.customClass),p.icon&&z(f,o[`icon-${p.icon}`]);},bg=(f,p)=>{const y=N();if(!p.progressSteps||p.progressSteps.length===0){ue(y);return}ae(y),y.textContent="",p.currentProgressStep>=p.progressSteps.length&&d("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),p.progressSteps.forEach((C,X)=>{const Te=vg(C);if(y.appendChild(Te),X===p.currentProgressStep&&z(Te,o["active-progress-step"]),X!==p.progressSteps.length-1){const ct=_g(p);y.appendChild(ct);}});},vg=f=>{const p=document.createElement("li");return z(p,o["progress-step"]),Z(p,f),p},_g=f=>{const p=document.createElement("li");return z(p,o["progress-step-line"]),f.progressStepsDistance&&ge(p,"width",f.progressStepsDistance),p},xg=(f,p)=>{const y=ve();Ae(y,p.title||p.titleText,"block"),p.title&&da(p.title,y),p.titleText&&(y.innerText=p.titleText),xe(y,p,"title");},Ru=(f,p)=>{yg(f,p),Zm(f,p),bg(f,p),dg(f,p),gg(f,p),xg(f,p),Xm(f,p),ug(f,p),Jm(f,p),cg(f,p),typeof p.didRender=="function"&&p.didRender(H());};function Nu(){const f=n.innerParams.get(this);if(!f)return;const p=n.domCache.get(this);ue(p.loader),ut()?f.icon&&ae(K()):Cg(p),te([p.popup,p.actions],o.loading),p.popup.removeAttribute("aria-busy"),p.popup.removeAttribute("data-loading"),p.confirmButton.disabled=!1,p.denyButton.disabled=!1,p.cancelButton.disabled=!1;}const Cg=f=>{const p=f.popup.getElementsByClassName(f.loader.getAttribute("data-button-to-replace"));p.length?ae(p[0],"inline-block"):ke()&&ue(f.actions);};function kg(f){const p=n.innerParams.get(f||this),y=n.domCache.get(f||this);return y?x(y.popup,p.input):null}const $g=()=>J(H()),Fu=()=>he()&&he().click(),Sg=()=>$e()&&$e().click(),Eg=()=>be()&&be().click(),Qs=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Uu=f=>{f.keydownTarget&&f.keydownHandlerAdded&&(f.keydownTarget.removeEventListener("keydown",f.keydownHandler,{capture:f.keydownListenerCapture}),f.keydownHandlerAdded=!1);},Ag=(f,p,y,C)=>{Uu(p),y.toast||(p.keydownHandler=X=>Ig(f,X,C),p.keydownTarget=y.keydownListenerCapture?window:H(),p.keydownListenerCapture=y.keydownListenerCapture,p.keydownTarget.addEventListener("keydown",p.keydownHandler,{capture:p.keydownListenerCapture}),p.keydownHandlerAdded=!0);},ha=(f,p)=>{const y=pt();if(y.length){f=f+p,f===y.length?f=0:f===-1&&(f=y.length-1),y[f].focus();return}H().focus();},ju=["ArrowRight","ArrowDown"],Pg=["ArrowLeft","ArrowUp"],Ig=(f,p,y)=>{const C=n.innerParams.get(f);C&&(p.isComposing||p.keyCode===229||(C.stopKeydownPropagation&&p.stopPropagation(),p.key==="Enter"?Tg(f,p,C):p.key==="Tab"?Og(p):[...ju,...Pg].includes(p.key)?Mg(p.key):p.key==="Escape"&&Lg(p,C,y)));},Tg=(f,p,y)=>{if(_(y.allowEnterKey)&&p.target&&f.getInput()&&p.target instanceof HTMLElement&&p.target.outerHTML===f.getInput().outerHTML){if(["textarea","file"].includes(y.input))return;Fu(),p.preventDefault();}},Og=f=>{const p=f.target,y=pt();let C=-1;for(let X=0;X<y.length;X++)if(p===y[X]){C=X;break}f.shiftKey?ha(C,-1):ha(C,1),f.stopPropagation(),f.preventDefault();},Mg=f=>{const p=he(),y=$e(),C=be(),X=[p,y,C];if(document.activeElement instanceof HTMLElement&&!X.includes(document.activeElement))return;const Te=ju.includes(f)?"nextElementSibling":"previousElementSibling";let ct=document.activeElement;for(let tn=0;tn<We().children.length;tn++){if(ct=ct[Te],!ct)return;if(ct instanceof HTMLButtonElement&&J(ct))break}ct instanceof HTMLButtonElement&&ct.focus();},Lg=(f,p,y)=>{_(p.allowEscapeKey)&&(f.preventDefault(),y(Qs.esc));};var No={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Dg=()=>{Array.from(document.body.children).forEach(p=>{p===O()||p.contains(O())||(p.hasAttribute("aria-hidden")&&p.setAttribute("data-previous-aria-hidden",p.getAttribute("aria-hidden")),p.setAttribute("aria-hidden","true"));});},Hu=()=>{Array.from(document.body.children).forEach(p=>{p.hasAttribute("data-previous-aria-hidden")?(p.setAttribute("aria-hidden",p.getAttribute("data-previous-aria-hidden")),p.removeAttribute("data-previous-aria-hidden")):p.removeAttribute("aria-hidden");});},Bg=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!T(document.body,o.iosfix)){const p=document.body.scrollTop;document.body.style.top=`${p*-1}px`,z(document.body,o.iosfix),Ng(),Rg();}},Rg=()=>{const f=navigator.userAgent,p=!!f.match(/iPad/i)||!!f.match(/iPhone/i),y=!!f.match(/WebKit/i);p&&y&&!f.match(/CriOS/i)&&H().scrollHeight>window.innerHeight-44&&(O().style.paddingBottom="44px");},Ng=()=>{const f=O();let p;f.ontouchstart=y=>{p=Fg(y);},f.ontouchmove=y=>{p&&(y.preventDefault(),y.stopPropagation());};},Fg=f=>{const p=f.target,y=O();return Ug(f)||jg(f)?!1:p===y||!m(y)&&p instanceof HTMLElement&&p.tagName!=="INPUT"&&p.tagName!=="TEXTAREA"&&!(m(ce())&&ce().contains(p))},Ug=f=>f.touches&&f.touches.length&&f.touches[0].touchType==="stylus",jg=f=>f.touches&&f.touches.length>1,Hg=()=>{if(T(document.body,o.iosfix)){const f=parseInt(document.body.style.top,10);te(document.body,o.iosfix),document.body.style.top="",document.body.scrollTop=f*-1;}},zg=()=>{Tt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(Tt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Tt.previousBodyPadding+Gm()}px`);},qg=()=>{Tt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${Tt.previousBodyPadding}px`,Tt.previousBodyPadding=null);};function zu(f,p,y,C){ut()?qu(f,C):(Q(y).then(()=>qu(f,C)),Uu(P)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(p.setAttribute("style","display:none !important"),p.removeAttribute("class"),p.innerHTML=""):p.remove(),Ie()&&(qg(),Hg(),Hu()),Vg();}function Vg(){te([document.documentElement,document.body],[o.shown,o["height-auto"],o["no-backdrop"],o["toast-shown"]]);}function Ai(f){f=Jg(f);const p=No.swalPromiseResolve.get(this),y=Kg(this);this.isAwaitingPromise()?f.isDismissed||(Fo(this),p(f)):y&&p(f);}function Wg(){return !!n.awaitingPromise.get(this)}const Kg=f=>{const p=H();if(!p)return !1;const y=n.innerParams.get(f);if(!y||T(p,y.hideClass.popup))return !1;te(p,y.showClass.popup),z(p,y.hideClass.popup);const C=O();return te(C,y.showClass.backdrop),z(C,y.hideClass.backdrop),Yg(f,p,y),!0};function Gg(f){const p=No.swalPromiseReject.get(this);Fo(this),p&&p(f);}const Fo=f=>{f.isAwaitingPromise()&&(n.awaitingPromise.delete(f),n.innerParams.get(f)||f._destroy());},Jg=f=>typeof f>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},f),Yg=(f,p,y)=>{const C=O(),X=Bo&&w(p);typeof y.willClose=="function"&&y.willClose(p),X?Qg(f,p,C,y.returnFocus,y.didClose):zu(f,C,y.returnFocus,y.didClose);},Qg=(f,p,y,C,X)=>{P.swalCloseEventFinishedCallback=zu.bind(null,f,y,C,X),p.addEventListener(Bo,function(Te){Te.target===p&&(P.swalCloseEventFinishedCallback(),delete P.swalCloseEventFinishedCallback);});},qu=(f,p)=>{setTimeout(()=>{typeof p=="function"&&p.bind(f.params)(),f._destroy();});};function Vu(f,p,y){const C=n.domCache.get(f);p.forEach(X=>{C[X].disabled=y;});}function Wu(f,p){if(f)if(f.type==="radio"){const C=f.parentNode.parentNode.querySelectorAll("input");for(let X=0;X<C.length;X++)C[X].disabled=p;}else f.disabled=p;}function Xg(){Vu(this,["confirmButton","denyButton","cancelButton"],!1);}function Zg(){Vu(this,["confirmButton","denyButton","cancelButton"],!0);}function ey(){Wu(this.getInput(),!1);}function ty(){Wu(this.getInput(),!0);}function ny(f){const p=n.domCache.get(this),y=n.innerParams.get(this);Z(p.validationMessage,f),p.validationMessage.className=o["validation-message"],y.customClass&&y.customClass.validationMessage&&z(p.validationMessage,y.customClass.validationMessage),ae(p.validationMessage);const C=this.getInput();C&&(C.setAttribute("aria-invalid",!0),C.setAttribute("aria-describedby",o["validation-message"]),S(C),z(C,o.inputerror));}function sy(){const f=n.domCache.get(this);f.validationMessage&&ue(f.validationMessage);const p=this.getInput();p&&(p.removeAttribute("aria-invalid"),p.removeAttribute("aria-describedby"),te(p,o.inputerror));}const Xs={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},oy=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],iy={},ry=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Ku=f=>Object.prototype.hasOwnProperty.call(Xs,f),Gu=f=>oy.indexOf(f)!==-1,ma=f=>iy[f],ay=f=>{Ku(f)||d(`Unknown parameter "${f}"`);},ly=f=>{ry.includes(f)&&d(`The parameter "${f}" is incompatible with toasts`);},uy=f=>{ma(f)&&b(f,ma(f));},cy=f=>{f.backdrop===!1&&f.allowOutsideClick&&d('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const p in f)ay(p),f.toast&&ly(p),uy(p);};function dy(f){const p=H(),y=n.innerParams.get(this);if(!p||T(p,y.hideClass.popup)){d("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const C=fy(f),X=Object.assign({},y,C);Ru(this,X),n.innerParams.set(this,X),Object.defineProperties(this,{params:{value:Object.assign({},this.params,f),writable:!1,enumerable:!0}});}const fy=f=>{const p={};return Object.keys(f).forEach(y=>{Gu(y)?p[y]=f[y]:d(`Invalid parameter to update: ${y}`);}),p};function py(){const f=n.domCache.get(this),p=n.innerParams.get(this);if(!p){Ju(this);return}f.popup&&P.swalCloseEventFinishedCallback&&(P.swalCloseEventFinishedCallback(),delete P.swalCloseEventFinishedCallback),typeof p.didDestroy=="function"&&p.didDestroy(),hy(this);}const hy=f=>{Ju(f),delete f.params,delete P.keydownHandler,delete P.keydownTarget,delete P.currentInstance;},Ju=f=>{f.isAwaitingPromise()?(ga(n,f),n.awaitingPromise.set(f,!0)):(ga(No,f),ga(n,f));},ga=(f,p)=>{for(const y in f)f[y].delete(p);};var Yu=Object.freeze({__proto__:null,_destroy:py,close:Ai,closeModal:Ai,closePopup:Ai,closeToast:Ai,disableButtons:Zg,disableInput:ty,disableLoading:Nu,enableButtons:Xg,enableInput:ey,getInput:kg,handleAwaitingPromise:Fo,hideLoading:Nu,isAwaitingPromise:Wg,rejectPromise:Gg,resetValidationMessage:sy,showValidationMessage:ny,update:dy});const Zs=f=>{let p=H();p||new Ii,p=H();const y=Ee();ut()?ue(K()):my(p,f),ae(y),p.setAttribute("data-loading","true"),p.setAttribute("aria-busy","true"),p.focus();},my=(f,p)=>{const y=We(),C=Ee();!p&&J(he())&&(p=he()),ae(y),p&&(ue(p),C.setAttribute("data-button-to-replace",p.className)),C.parentNode.insertBefore(C,p),z([f,y],o.loading);},gy=(f,p)=>{p.input==="select"||p.input==="radio"?_y(f,p):["text","email","number","tel","textarea"].includes(p.input)&&(B(p.inputValue)||F(p.inputValue))&&(Zs(he()),xy(f,p));},yy=(f,p)=>{const y=f.getInput();if(!y)return null;switch(p.input){case"checkbox":return wy(y);case"radio":return by(y);case"file":return vy(y);default:return p.inputAutoTrim?y.value.trim():y.value}},wy=f=>f.checked?1:0,by=f=>f.checked?f.value:null,vy=f=>f.files.length?f.getAttribute("multiple")!==null?f.files:f.files[0]:null,_y=(f,p)=>{const y=H(),C=X=>{Cy[p.input](y,ya(X),p);};B(p.inputOptions)||F(p.inputOptions)?(Zs(he()),L(p.inputOptions).then(X=>{f.hideLoading(),C(X);})):typeof p.inputOptions=="object"?C(p.inputOptions):h(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof p.inputOptions}`);},xy=(f,p)=>{const y=f.getInput();ue(y),L(p.inputValue).then(C=>{y.value=p.input==="number"?`${parseFloat(C)||0}`:`${C}`,ae(y),y.focus(),f.hideLoading();}).catch(C=>{h(`Error in inputValue promise: ${C}`),y.value="",ae(y),y.focus(),f.hideLoading();});},Cy={select:(f,p,y)=>{const C=se(f,o.select),X=(Te,ct,tn)=>{const Rt=document.createElement("option");Rt.value=tn,Z(Rt,ct),Rt.selected=Qu(tn,y.inputValue),Te.appendChild(Rt);};p.forEach(Te=>{const ct=Te[0],tn=Te[1];if(Array.isArray(tn)){const Rt=document.createElement("optgroup");Rt.label=ct,Rt.disabled=!1,C.appendChild(Rt),tn.forEach(to=>X(Rt,to[1],to[0]));}else X(C,tn,ct);}),C.focus();},radio:(f,p,y)=>{const C=se(f,o.radio);p.forEach(Te=>{const ct=Te[0],tn=Te[1],Rt=document.createElement("input"),to=document.createElement("label");Rt.type="radio",Rt.name=o.radio,Rt.value=ct,Qu(ct,y.inputValue)&&(Rt.checked=!0);const _a=document.createElement("span");Z(_a,tn),_a.className=o.label,to.appendChild(Rt),to.appendChild(_a),C.appendChild(to);});const X=C.querySelectorAll("input");X.length&&X[0].focus();}},ya=f=>{const p=[];return typeof Map<"u"&&f instanceof Map?f.forEach((y,C)=>{let X=y;typeof X=="object"&&(X=ya(X)),p.push([C,X]);}):Object.keys(f).forEach(y=>{let C=f[y];typeof C=="object"&&(C=ya(C)),p.push([y,C]);}),p},Qu=(f,p)=>p&&p.toString()===f.toString(),ky=f=>{const p=n.innerParams.get(f);f.disableButtons(),p.input?Xu(f,"confirm"):ba(f,!0);},$y=f=>{const p=n.innerParams.get(f);f.disableButtons(),p.returnInputValueOnDeny?Xu(f,"deny"):wa(f,!1);},Sy=(f,p)=>{f.disableButtons(),p(Qs.cancel);},Xu=(f,p)=>{const y=n.innerParams.get(f);if(!y.input){h(`The "input" parameter is needed to be set when using returnInputValueOn${u(p)}`);return}const C=yy(f,y);y.inputValidator?Ey(f,C,p):f.getInput().checkValidity()?p==="deny"?wa(f,C):ba(f,C):(f.enableButtons(),f.showValidationMessage(y.validationMessage));},Ey=(f,p,y)=>{const C=n.innerParams.get(f);f.disableInput(),Promise.resolve().then(()=>L(C.inputValidator(p,C.validationMessage))).then(Te=>{f.enableButtons(),f.enableInput(),Te?f.showValidationMessage(Te):y==="deny"?wa(f,p):ba(f,p);});},wa=(f,p)=>{const y=n.innerParams.get(f||void 0);y.showLoaderOnDeny&&Zs($e()),y.preDeny?(n.awaitingPromise.set(f||void 0,!0),Promise.resolve().then(()=>L(y.preDeny(p,y.validationMessage))).then(X=>{X===!1?(f.hideLoading(),Fo(f)):f.close({isDenied:!0,value:typeof X>"u"?p:X});}).catch(X=>ec(f||void 0,X))):f.close({isDenied:!0,value:p});},Zu=(f,p)=>{f.close({isConfirmed:!0,value:p});},ec=(f,p)=>{f.rejectPromise(p);},ba=(f,p)=>{const y=n.innerParams.get(f||void 0);y.showLoaderOnConfirm&&Zs(),y.preConfirm?(f.resetValidationMessage(),n.awaitingPromise.set(f||void 0,!0),Promise.resolve().then(()=>L(y.preConfirm(p,y.validationMessage))).then(X=>{J(G())||X===!1?(f.hideLoading(),Fo(f)):Zu(f,typeof X>"u"?p:X);}).catch(X=>ec(f||void 0,X))):Zu(f,p);},Ay=(f,p,y)=>{n.innerParams.get(f).toast?Py(f,p,y):(Ty(p),Oy(p),My(f,p,y));},Py=(f,p,y)=>{p.popup.onclick=()=>{const C=n.innerParams.get(f);C&&(Iy(C)||C.timer||C.input)||y(Qs.close);};},Iy=f=>f.showConfirmButton||f.showDenyButton||f.showCancelButton||f.showCloseButton;let Pi=!1;const Ty=f=>{f.popup.onmousedown=()=>{f.container.onmouseup=function(p){f.container.onmouseup=void 0,p.target===f.container&&(Pi=!0);};};},Oy=f=>{f.container.onmousedown=()=>{f.popup.onmouseup=function(p){f.popup.onmouseup=void 0,(p.target===f.popup||f.popup.contains(p.target))&&(Pi=!0);};};},My=(f,p,y)=>{p.container.onclick=C=>{const X=n.innerParams.get(f);if(Pi){Pi=!1;return}C.target===p.container&&_(X.allowOutsideClick)&&y(Qs.backdrop);};},Ly=f=>typeof f=="object"&&f.jquery,tc=f=>f instanceof Element||Ly(f),Dy=f=>{const p={};return typeof f[0]=="object"&&!tc(f[0])?Object.assign(p,f[0]):["title","html","icon"].forEach((y,C)=>{const X=f[C];typeof X=="string"||tc(X)?p[y]=X:X!==void 0&&h(`Unexpected type of ${y}! Expected "string" or "Element", got ${typeof X}`);}),p};function By(){const f=this;for(var p=arguments.length,y=new Array(p),C=0;C<p;C++)y[C]=arguments[C];return new f(...y)}function Ry(f){class p extends this{_main(C,X){return super._main(C,Object.assign({},f,X))}}return p}const Ny=()=>P.timeout&&P.timeout.getTimerLeft(),nc=()=>{if(P.timeout)return A(),P.timeout.stop()},sc=()=>{if(P.timeout){const f=P.timeout.start();return k(f),f}},Fy=()=>{const f=P.timeout;return f&&(f.running?nc():sc())},Uy=f=>{if(P.timeout){const p=P.timeout.increase(f);return k(p,!0),p}},jy=()=>P.timeout&&P.timeout.isRunning();let oc=!1;const va={};function Hy(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";va[f]=this,oc||(document.body.addEventListener("click",zy),oc=!0);}const zy=f=>{for(let p=f.target;p&&p!==document;p=p.parentNode)for(const y in va){const C=p.getAttribute(y);if(C){va[y].fire({template:C});return}}};var qy=Object.freeze({__proto__:null,argsToParams:Dy,bindClickHandler:Hy,clickCancel:Eg,clickConfirm:Fu,clickDeny:Sg,enableLoading:Zs,fire:By,getActions:We,getCancelButton:be,getCloseButton:M,getConfirmButton:he,getContainer:O,getDenyButton:$e,getFocusableElements:pt,getFooter:Ze,getHtmlContainer:ce,getIcon:K,getIconContent:fe,getImage:R,getInputLabel:Pe,getLoader:Ee,getPopup:H,getProgressSteps:N,getTimerLeft:Ny,getTimerProgressBar:_e,getTitle:ve,getValidationMessage:G,increaseTimer:Uy,isDeprecatedParameter:ma,isLoading:wt,isTimerRunning:jy,isUpdatableParameter:Gu,isValidParameter:Ku,isVisible:$g,mixin:Ry,resumeTimer:sc,showLoading:Zs,stopTimer:nc,toggleTimer:Fy});class Vy{constructor(p,y){this.callback=p,this.remaining=y,this.running=!1,this.start();}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(p){const y=this.running;return y&&this.stop(),this.remaining+=p,y&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ic=["swal-title","swal-html","swal-footer"],Wy=f=>{const p=typeof f.template=="string"?document.querySelector(f.template):f.template;if(!p)return {};const y=p.content;return ew(y),Object.assign(Ky(y),Gy(y),Jy(y),Yy(y),Qy(y),Xy(y),Zy(y,ic))},Ky=f=>{const p={};return Array.from(f.querySelectorAll("swal-param")).forEach(C=>{$s(C,["name","value"]);const X=C.getAttribute("name"),Te=C.getAttribute("value");typeof Xs[X]=="boolean"?p[X]=Te!=="false":typeof Xs[X]=="object"?p[X]=JSON.parse(Te):p[X]=Te;}),p},Gy=f=>{const p={};return Array.from(f.querySelectorAll("swal-function-param")).forEach(C=>{const X=C.getAttribute("name"),Te=C.getAttribute("value");p[X]=new Function(`return ${Te}`)();}),p},Jy=f=>{const p={};return Array.from(f.querySelectorAll("swal-button")).forEach(C=>{$s(C,["type","color","aria-label"]);const X=C.getAttribute("type");p[`${X}ButtonText`]=C.innerHTML,p[`show${u(X)}Button`]=!0,C.hasAttribute("color")&&(p[`${X}ButtonColor`]=C.getAttribute("color")),C.hasAttribute("aria-label")&&(p[`${X}ButtonAriaLabel`]=C.getAttribute("aria-label"));}),p},Yy=f=>{const p={},y=f.querySelector("swal-image");return y&&($s(y,["src","width","height","alt"]),y.hasAttribute("src")&&(p.imageUrl=y.getAttribute("src")),y.hasAttribute("width")&&(p.imageWidth=y.getAttribute("width")),y.hasAttribute("height")&&(p.imageHeight=y.getAttribute("height")),y.hasAttribute("alt")&&(p.imageAlt=y.getAttribute("alt"))),p},Qy=f=>{const p={},y=f.querySelector("swal-icon");return y&&($s(y,["type","color"]),y.hasAttribute("type")&&(p.icon=y.getAttribute("type")),y.hasAttribute("color")&&(p.iconColor=y.getAttribute("color")),p.iconHtml=y.innerHTML),p},Xy=f=>{const p={},y=f.querySelector("swal-input");y&&($s(y,["type","label","placeholder","value"]),p.input=y.getAttribute("type")||"text",y.hasAttribute("label")&&(p.inputLabel=y.getAttribute("label")),y.hasAttribute("placeholder")&&(p.inputPlaceholder=y.getAttribute("placeholder")),y.hasAttribute("value")&&(p.inputValue=y.getAttribute("value")));const C=Array.from(f.querySelectorAll("swal-input-option"));return C.length&&(p.inputOptions={},C.forEach(X=>{$s(X,["value"]);const Te=X.getAttribute("value"),ct=X.innerHTML;p.inputOptions[Te]=ct;})),p},Zy=(f,p)=>{const y={};for(const C in p){const X=p[C],Te=f.querySelector(X);Te&&($s(Te,[]),y[X.replace(/^swal-/,"")]=Te.innerHTML.trim());}return y},ew=f=>{const p=ic.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(f.children).forEach(y=>{const C=y.tagName.toLowerCase();p.includes(C)||d(`Unrecognized element <${C}>`);});},$s=(f,p)=>{Array.from(f.attributes).forEach(y=>{p.indexOf(y.name)===-1&&d([`Unrecognized attribute "${y.name}" on <${f.tagName.toLowerCase()}>.`,`${p.length?`Allowed attributes are: ${p.join(", ")}`:"To set the value, use HTML within the element."}`]);});},rc=10,tw=f=>{const p=O(),y=H();typeof f.willOpen=="function"&&f.willOpen(y);const X=window.getComputedStyle(document.body).overflowY;ow(p,y,f),setTimeout(()=>{nw(p,y);},rc),Ie()&&(sw(p,f.scrollbarPadding,X),Dg()),!ut()&&!P.previousActiveElement&&(P.previousActiveElement=document.activeElement),typeof f.didOpen=="function"&&setTimeout(()=>f.didOpen(y)),te(p,o["no-transition"]);},ac=f=>{const p=H();if(f.target!==p)return;const y=O();p.removeEventListener(Bo,ac),y.style.overflowY="auto";},nw=(f,p)=>{Bo&&w(p)?(f.style.overflowY="hidden",p.addEventListener(Bo,ac)):f.style.overflowY="auto";},sw=(f,p,y)=>{Bg(),p&&y!=="hidden"&&zg(),setTimeout(()=>{f.scrollTop=0;});},ow=(f,p,y)=>{z(f,y.showClass.backdrop),p.style.setProperty("opacity","0","important"),ae(p,"grid"),setTimeout(()=>{z(p,y.showClass.popup),p.style.removeProperty("opacity");},rc),z([document.documentElement,document.body],o.shown),y.heightAuto&&y.backdrop&&!y.toast&&z([document.documentElement,document.body],o["height-auto"]);};var lc={email:(f,p)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(f)?Promise.resolve():Promise.resolve(p||"Invalid email address"),url:(f,p)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(f)?Promise.resolve():Promise.resolve(p||"Invalid URL")};function iw(f){f.inputValidator||Object.keys(lc).forEach(p=>{f.input===p&&(f.inputValidator=lc[p]);});}function rw(f){(!f.target||typeof f.target=="string"&&!document.querySelector(f.target)||typeof f.target!="string"&&!f.target.appendChild)&&(d('Target parameter is not valid, defaulting to "body"'),f.target="body");}function aw(f){iw(f),f.showLoaderOnConfirm&&!f.preConfirm&&d(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
showLoaderOnConfirm should be used together with preConfirm, see usage example:
https://sweetalert2.github.io/#ajax-request`),rw(f),typeof f.title=="string"&&(f.title=f.title.split(`
`).join("<br />")),Do(f);}let Pn;class eo{constructor(){if(typeof window>"u")return;Pn=this;for(var p=arguments.length,y=new Array(p),C=0;C<p;C++)y[C]=arguments[C];const X=Object.freeze(this.constructor.argsToParams(y));Object.defineProperties(this,{params:{value:X,writable:!1,enumerable:!0,configurable:!0}});const Te=Pn._main(Pn.params);n.promise.set(this,Te);}_main(p){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};cy(Object.assign({},y,p)),P.currentInstance&&(P.currentInstance._destroy(),Ie()&&Hu()),P.currentInstance=Pn;const C=uw(p,y);aw(C),Object.freeze(C),P.timeout&&(P.timeout.stop(),delete P.timeout),clearTimeout(P.restoreFocusTimeout);const X=cw(Pn);return Ru(Pn,C),n.innerParams.set(Pn,C),lw(Pn,X,C)}then(p){return n.promise.get(this).then(p)}finally(p){return n.promise.get(this).finally(p)}}const lw=(f,p,y)=>new Promise((C,X)=>{const Te=ct=>{f.close({isDismissed:!0,dismiss:ct});};No.swalPromiseResolve.set(f,C),No.swalPromiseReject.set(f,X),p.confirmButton.onclick=()=>{ky(f);},p.denyButton.onclick=()=>{$y(f);},p.cancelButton.onclick=()=>{Sy(f,Te);},p.closeButton.onclick=()=>{Te(Qs.close);},Ay(f,p,Te),Ag(f,P,y,Te),gy(f,y),tw(y),dw(P,y,Te),fw(p,y),setTimeout(()=>{p.container.scrollTop=0;});}),uw=(f,p)=>{const y=Wy(f),C=Object.assign({},Xs,p,y,f);return C.showClass=Object.assign({},Xs.showClass,C.showClass),C.hideClass=Object.assign({},Xs.hideClass,C.hideClass),C},cw=f=>{const p={popup:H(),container:O(),actions:We(),confirmButton:he(),denyButton:$e(),cancelButton:be(),loader:Ee(),closeButton:M(),validationMessage:G(),progressSteps:N()};return n.domCache.set(f,p),p},dw=(f,p,y)=>{const C=_e();ue(C),p.timer&&(f.timeout=new Vy(()=>{y("timer"),delete f.timeout;},p.timer),p.timerProgressBar&&(ae(C),xe(C,p,"timerProgressBar"),setTimeout(()=>{f.timeout&&f.timeout.running&&k(p.timer);})));},fw=(f,p)=>{if(!p.toast){if(!_(p.allowEnterKey)){hw();return}pw(f,p)||ha(-1,1);}},pw=(f,p)=>p.focusDeny&&J(f.denyButton)?(f.denyButton.focus(),!0):p.focusCancel&&J(f.cancelButton)?(f.cancelButton.focus(),!0):p.focusConfirm&&J(f.confirmButton)?(f.confirmButton.focus(),!0):!1,hw=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur();};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const f=new Date,p=localStorage.getItem("swal-initiation");p?(f.getTime()-Date.parse(p))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const y=document.createElement("audio");y.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",y.loop=!0,document.body.appendChild(y),setTimeout(()=>{y.play().catch(()=>{});},2500);},500):localStorage.setItem("swal-initiation",`${f}`);}Object.assign(eo.prototype,Yu),Object.assign(eo,qy),Object.keys(Yu).forEach(f=>{eo[f]=function(){if(Pn)return Pn[f](...arguments)};}),eo.DismissReason=Qs,eo.version="11.7.2";const Ii=eo;return Ii.default=Ii,Ii}),typeof ts<"u"&&ts.Sweetalert2&&(ts.swal=ts.sweetAlert=ts.Swal=ts.SweetAlert=ts.Sweetalert2),typeof document<"u"&&function(n,s){var i=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=s);else try{i.innerHTML=s;}catch{i.innerText=s;}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}');})(af);var Rw=af.exports;const me=jl(Rw);var Yt=(e=>(e[e.any=-999]="any",e[e.failed=-1]="failed",e[e.illegal=0]="illegal",e[e.ing=1]="ing",e[e.success=2]="success",e))(Yt||{});const Nw={[-1]:"失败",0:"违规",1:"下载中",2:"成功"};var Gt=(e=>(e.all="all",e.failed="failed",e.success="success",e.magnet="magnet",e.magnetEd2k="magnetEd2k",e))(Gt||{}),Hl=(e=>(e[e.true=1]="true",e[e.false=0]="false",e))(Hl||{}),vn=(e=>(e[e.all=0]="all",e[e.video=4]="video",e[e.audio=3]="audio",e[e.image=2]="image",e[e.doc=1]="doc",e[e.app=6]="app",e[e.archive=5]="archive",e[e.file=99]="file",e))(vn||{}),Jt=(e=>(e.all="全部",e.video="视频",e.audio="音频",e.image="图片",e.doc="文档",e.app="应用",e.archive="压缩包",e.file="仅文件",e))(Jt||{}),lf=(e=>(e.userPtime="user_ptime",e.fileName="file_name",e.fileSize="file_size",e.fileType="file_type",e))(lf||{});function Fw(e){return {offset:0,limit:1150,aid:1,cid:"",format:"json",o:"user_ptime",asc:0,search_value:"",...e}}function Ls(e){return {aid:1,cid:"",o:"user_ptime",asc:0,offset:0,show_dir:1,limit:115,natsort:0,format:"json",...e}}var Ja=(e=>(e[e.normal=0]="normal",e[e.violation=1]="violation",e[e.auditing=2]="auditing",e))(Ja||{});class uf extends Error{}class zl extends uf{constructor(t="搜索失败!"){super(t);}}class cf extends zl{constructor(t="搜索请求响应内容为空!"){super(t);}}class ql extends uf{constructor(t="目录不存在!"){super(t);}}var df=(e=>(e[e.exist=20004]="exist",e))(df||{});const Uw={10013:"超出任务大小限制",10018:"审核中...",10016:"文件内含违规内容"};class bt{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start();}static hashStr(t,n=!1){return this.onePassHasher.start().appendStr(t).end(n)}static hashAsciiStr(t,n=!1){return this.onePassHasher.start().appendAsciiStr(t).end(n)}static _hex(t){const n=bt.hexChars,s=bt.hexOut;let i,o,r,a;for(a=0;a<4;a+=1)for(o=a*8,i=t[a],r=0;r<8;r+=2)s[o+1+r]=n.charAt(i&15),i>>>=4,s[o+0+r]=n.charAt(i&15),i>>>=4;return s.join("")}static _md5cycle(t,n){let s=t[0],i=t[1],o=t[2],r=t[3];s+=(i&o|~i&r)+n[0]-680876936|0,s=(s<<7|s>>>25)+i|0,r+=(s&i|~s&o)+n[1]-389564586|0,r=(r<<12|r>>>20)+s|0,o+=(r&s|~r&i)+n[2]+606105819|0,o=(o<<17|o>>>15)+r|0,i+=(o&r|~o&s)+n[3]-1044525330|0,i=(i<<22|i>>>10)+o|0,s+=(i&o|~i&r)+n[4]-176418897|0,s=(s<<7|s>>>25)+i|0,r+=(s&i|~s&o)+n[5]+1200080426|0,r=(r<<12|r>>>20)+s|0,o+=(r&s|~r&i)+n[6]-1473231341|0,o=(o<<17|o>>>15)+r|0,i+=(o&r|~o&s)+n[7]-45705983|0,i=(i<<22|i>>>10)+o|0,s+=(i&o|~i&r)+n[8]+1770035416|0,s=(s<<7|s>>>25)+i|0,r+=(s&i|~s&o)+n[9]-1958414417|0,r=(r<<12|r>>>20)+s|0,o+=(r&s|~r&i)+n[10]-42063|0,o=(o<<17|o>>>15)+r|0,i+=(o&r|~o&s)+n[11]-1990404162|0,i=(i<<22|i>>>10)+o|0,s+=(i&o|~i&r)+n[12]+1804603682|0,s=(s<<7|s>>>25)+i|0,r+=(s&i|~s&o)+n[13]-40341101|0,r=(r<<12|r>>>20)+s|0,o+=(r&s|~r&i)+n[14]-1502002290|0,o=(o<<17|o>>>15)+r|0,i+=(o&r|~o&s)+n[15]+1236535329|0,i=(i<<22|i>>>10)+o|0,s+=(i&r|o&~r)+n[1]-165796510|0,s=(s<<5|s>>>27)+i|0,r+=(s&o|i&~o)+n[6]-1069501632|0,r=(r<<9|r>>>23)+s|0,o+=(r&i|s&~i)+n[11]+643717713|0,o=(o<<14|o>>>18)+r|0,i+=(o&s|r&~s)+n[0]-373897302|0,i=(i<<20|i>>>12)+o|0,s+=(i&r|o&~r)+n[5]-701558691|0,s=(s<<5|s>>>27)+i|0,r+=(s&o|i&~o)+n[10]+38016083|0,r=(r<<9|r>>>23)+s|0,o+=(r&i|s&~i)+n[15]-660478335|0,o=(o<<14|o>>>18)+r|0,i+=(o&s|r&~s)+n[4]-405537848|0,i=(i<<20|i>>>12)+o|0,s+=(i&r|o&~r)+n[9]+568446438|0,s=(s<<5|s>>>27)+i|0,r+=(s&o|i&~o)+n[14]-1019803690|0,r=(r<<9|r>>>23)+s|0,o+=(r&i|s&~i)+n[3]-187363961|0,o=(o<<14|o>>>18)+r|0,i+=(o&s|r&~s)+n[8]+1163531501|0,i=(i<<20|i>>>12)+o|0,s+=(i&r|o&~r)+n[13]-1444681467|0,s=(s<<5|s>>>27)+i|0,r+=(s&o|i&~o)+n[2]-51403784|0,r=(r<<9|r>>>23)+s|0,o+=(r&i|s&~i)+n[7]+1735328473|0,o=(o<<14|o>>>18)+r|0,i+=(o&s|r&~s)+n[12]-1926607734|0,i=(i<<20|i>>>12)+o|0,s+=(i^o^r)+n[5]-378558|0,s=(s<<4|s>>>28)+i|0,r+=(s^i^o)+n[8]-2022574463|0,r=(r<<11|r>>>21)+s|0,o+=(r^s^i)+n[11]+1839030562|0,o=(o<<16|o>>>16)+r|0,i+=(o^r^s)+n[14]-35309556|0,i=(i<<23|i>>>9)+o|0,s+=(i^o^r)+n[1]-1530992060|0,s=(s<<4|s>>>28)+i|0,r+=(s^i^o)+n[4]+1272893353|0,r=(r<<11|r>>>21)+s|0,o+=(r^s^i)+n[7]-155497632|0,o=(o<<16|o>>>16)+r|0,i+=(o^r^s)+n[10]-1094730640|0,i=(i<<23|i>>>9)+o|0,s+=(i^o^r)+n[13]+681279174|0,s=(s<<4|s>>>28)+i|0,r+=(s^i^o)+n[0]-358537222|0,r=(r<<11|r>>>21)+s|0,o+=(r^s^i)+n[3]-722521979|0,o=(o<<16|o>>>16)+r|0,i+=(o^r^s)+n[6]+76029189|0,i=(i<<23|i>>>9)+o|0,s+=(i^o^r)+n[9]-640364487|0,s=(s<<4|s>>>28)+i|0,r+=(s^i^o)+n[12]-421815835|0,r=(r<<11|r>>>21)+s|0,o+=(r^s^i)+n[15]+530742520|0,o=(o<<16|o>>>16)+r|0,i+=(o^r^s)+n[2]-995338651|0,i=(i<<23|i>>>9)+o|0,s+=(o^(i|~r))+n[0]-198630844|0,s=(s<<6|s>>>26)+i|0,r+=(i^(s|~o))+n[7]+1126891415|0,r=(r<<10|r>>>22)+s|0,o+=(s^(r|~i))+n[14]-1416354905|0,o=(o<<15|o>>>17)+r|0,i+=(r^(o|~s))+n[5]-57434055|0,i=(i<<21|i>>>11)+o|0,s+=(o^(i|~r))+n[12]+1700485571|0,s=(s<<6|s>>>26)+i|0,r+=(i^(s|~o))+n[3]-1894986606|0,r=(r<<10|r>>>22)+s|0,o+=(s^(r|~i))+n[10]-1051523|0,o=(o<<15|o>>>17)+r|0,i+=(r^(o|~s))+n[1]-2054922799|0,i=(i<<21|i>>>11)+o|0,s+=(o^(i|~r))+n[8]+1873313359|0,s=(s<<6|s>>>26)+i|0,r+=(i^(s|~o))+n[15]-30611744|0,r=(r<<10|r>>>22)+s|0,o+=(s^(r|~i))+n[6]-1560198380|0,o=(o<<15|o>>>17)+r|0,i+=(r^(o|~s))+n[13]+1309151649|0,i=(i<<21|i>>>11)+o|0,s+=(o^(i|~r))+n[4]-145523070|0,s=(s<<6|s>>>26)+i|0,r+=(i^(s|~o))+n[11]-1120210379|0,r=(r<<10|r>>>22)+s|0,o+=(s^(r|~i))+n[2]+718787259|0,o=(o<<15|o>>>17)+r|0,i+=(r^(o|~s))+n[9]-343485551|0,i=(i<<21|i>>>11)+o|0,t[0]=s+t[0]|0,t[1]=i+t[1]|0,t[2]=o+t[2]|0,t[3]=r+t[3]|0;}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(bt.stateIdentity),this}appendStr(t){const n=this._buffer8,s=this._buffer32;let i=this._bufferLength,o,r;for(r=0;r<t.length;r+=1){if(o=t.charCodeAt(r),o<128)n[i++]=o;else if(o<2048)n[i++]=(o>>>6)+192,n[i++]=o&63|128;else if(o<55296||o>56319)n[i++]=(o>>>12)+224,n[i++]=o>>>6&63|128,n[i++]=o&63|128;else {if(o=(o-55296)*1024+(t.charCodeAt(++r)-56320)+65536,o>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");n[i++]=(o>>>18)+240,n[i++]=o>>>12&63|128,n[i++]=o>>>6&63|128,n[i++]=o&63|128;}i>=64&&(this._dataLength+=64,bt._md5cycle(this._state,s),i-=64,s[0]=s[16]);}return this._bufferLength=i,this}appendAsciiStr(t){const n=this._buffer8,s=this._buffer32;let i=this._bufferLength,o,r=0;for(;;){for(o=Math.min(t.length-r,64-i);o--;)n[i++]=t.charCodeAt(r++);if(i<64)break;this._dataLength+=64,bt._md5cycle(this._state,s),i=0;}return this._bufferLength=i,this}appendByteArray(t){const n=this._buffer8,s=this._buffer32;let i=this._bufferLength,o,r=0;for(;;){for(o=Math.min(t.length-r,64-i);o--;)n[i++]=t[r++];if(i<64)break;this._dataLength+=64,bt._md5cycle(this._state,s),i=0;}return this._bufferLength=i,this}getState(){const t=this._state;return {buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(t){const n=t.buffer,s=t.state,i=this._state;let o;for(this._dataLength=t.length,this._bufferLength=t.buflen,i[0]=s[0],i[1]=s[1],i[2]=s[2],i[3]=s[3],o=0;o<n.length;o+=1)this._buffer8[o]=n.charCodeAt(o);}end(t=!1){const n=this._bufferLength,s=this._buffer8,i=this._buffer32,o=(n>>2)+1;this._dataLength+=n;const r=this._dataLength*8;if(s[n]=128,s[n+1]=s[n+2]=s[n+3]=0,i.set(bt.buffer32Identity.subarray(o),o),n>55&&(bt._md5cycle(this._state,i),i.set(bt.buffer32Identity)),r<=4294967295)i[14]=r;else {const a=r.toString(16).match(/(.*?)(.{0,8})$/);if(a===null)return;const l=parseInt(a[2],16),u=parseInt(a[1],16)||0;i[14]=l,i[15]=u;}return bt._md5cycle(this._state,i),t?this._state:bt._hex(this._state)}}bt.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]);bt.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);bt.hexChars="0123456789abcdef";bt.hexOut=[];bt.onePassHasher=new bt;if(bt.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");var ff={exports:{}};(function(e){var t=function(n){var s=1e7,i=7,o=9007199254740992,r=b(o),a="0123456789abcdefghijklmnopqrstuvwxyz",l=typeof BigInt=="function";function u(m,w,k,A){return typeof m>"u"?u[0]:typeof w<"u"?+w==10&&!k?J(m):te(m,w,k,A):J(m)}function d(m,w){this.value=m,this.sign=w,this.isSmall=!1;}d.prototype=Object.create(u.prototype);function h(m){this.value=m,this.sign=m<0,this.isSmall=!0;}h.prototype=Object.create(u.prototype);function g(m){this.value=m;}g.prototype=Object.create(u.prototype);function v(m){return -o<m&&m<o}function b(m){return m<1e7?[m]:m<1e14?[m%1e7,Math.floor(m/1e7)]:[m%1e7,Math.floor(m/1e7)%1e7,Math.floor(m/1e14)]}function _(m){B(m);var w=m.length;if(w<4&&Ze(m,r)<0)switch(w){case 0:return 0;case 1:return m[0];case 2:return m[0]+m[1]*s;default:return m[0]+(m[1]+m[2]*s)*s}return m}function B(m){for(var w=m.length;m[--w]===0;);m.length=w+1;}function L(m){for(var w=new Array(m),k=-1;++k<m;)w[k]=0;return w}function F(m){return m>0?Math.floor(m):Math.ceil(m)}function O(m,w){var k=m.length,A=w.length,q=new Array(k),P=0,ee=s,Q,le;for(le=0;le<A;le++)Q=m[le]+w[le]+P,P=Q>=ee?1:0,q[le]=Q-P*ee;for(;le<k;)Q=m[le]+P,P=Q===ee?1:0,q[le++]=Q-P*ee;return P>0&&q.push(P),q}function D(m,w){return m.length>=w.length?O(m,w):O(w,m)}function j(m,w){var k=m.length,A=new Array(k),q=s,P,ee;for(ee=0;ee<k;ee++)P=m[ee]-q+w,w=Math.floor(P/q),A[ee]=P-w*q,w+=1;for(;w>0;)A[ee++]=w%q,w=Math.floor(w/q);return A}d.prototype.add=function(m){var w=J(m);if(this.sign!==w.sign)return this.subtract(w.negate());var k=this.value,A=w.value;return w.isSmall?new d(j(k,Math.abs(A)),this.sign):new d(D(k,A),this.sign)},d.prototype.plus=d.prototype.add,h.prototype.add=function(m){var w=J(m),k=this.value;if(k<0!==w.sign)return this.subtract(w.negate());var A=w.value;if(w.isSmall){if(v(k+A))return new h(k+A);A=b(Math.abs(A));}return new d(j(A,Math.abs(k)),k<0)},h.prototype.plus=h.prototype.add,g.prototype.add=function(m){return new g(this.value+J(m).value)},g.prototype.plus=g.prototype.add;function H(m,w){var k=m.length,A=w.length,q=new Array(k),P=0,ee=s,Q,le;for(Q=0;Q<A;Q++)le=m[Q]-P-w[Q],le<0?(le+=ee,P=1):P=0,q[Q]=le;for(Q=A;Q<k;Q++){if(le=m[Q]-P,le<0)le+=ee;else {q[Q++]=le;break}q[Q]=le;}for(;Q<k;Q++)q[Q]=m[Q];return B(q),q}function K(m,w,k){var A;return Ze(m,w)>=0?A=H(m,w):(A=H(w,m),k=!k),A=_(A),typeof A=="number"?(k&&(A=-A),new h(A)):new d(A,k)}function fe(m,w,k){var A=m.length,q=new Array(A),P=-w,ee=s,Q,le;for(Q=0;Q<A;Q++)le=m[Q]+P,P=Math.floor(le/ee),le%=ee,q[Q]=le<0?le+ee:le;return q=_(q),typeof q=="number"?(k&&(q=-q),new h(q)):new d(q,k)}d.prototype.subtract=function(m){var w=J(m);if(this.sign!==w.sign)return this.add(w.negate());var k=this.value,A=w.value;return w.isSmall?fe(k,Math.abs(A),this.sign):K(k,A,this.sign)},d.prototype.minus=d.prototype.subtract,h.prototype.subtract=function(m){var w=J(m),k=this.value;if(k<0!==w.sign)return this.add(w.negate());var A=w.value;return w.isSmall?new h(k-A):fe(A,Math.abs(k),k>=0)},h.prototype.minus=h.prototype.subtract,g.prototype.subtract=function(m){return new g(this.value-J(m).value)},g.prototype.minus=g.prototype.subtract,d.prototype.negate=function(){return new d(this.value,!this.sign)},h.prototype.negate=function(){var m=this.sign,w=new h(-this.value);return w.sign=!m,w},g.prototype.negate=function(){return new g(-this.value)},d.prototype.abs=function(){return new d(this.value,!1)},h.prototype.abs=function(){return new h(Math.abs(this.value))},g.prototype.abs=function(){return new g(this.value>=0?this.value:-this.value)};function ve(m,w){var k=m.length,A=w.length,q=k+A,P=L(q),ee=s,Q,le,Be,Le,Se;for(Be=0;Be<k;++Be){Le=m[Be];for(var Ke=0;Ke<A;++Ke)Se=w[Ke],Q=Le*Se+P[Be+Ke],le=Math.floor(Q/ee),P[Be+Ke]=Q-le*ee,P[Be+Ke+1]+=le;}return B(P),P}function ce(m,w){var k=m.length,A=new Array(k),q=s,P=0,ee,Q;for(Q=0;Q<k;Q++)ee=m[Q]*w+P,P=Math.floor(ee/q),A[Q]=ee-P*q;for(;P>0;)A[Q++]=P%q,P=Math.floor(P/q);return A}function R(m,w){for(var k=[];w-- >0;)k.push(0);return k.concat(m)}function N(m,w){var k=Math.max(m.length,w.length);if(k<=30)return ve(m,w);k=Math.ceil(k/2);var A=m.slice(k),q=m.slice(0,k),P=w.slice(k),ee=w.slice(0,k),Q=N(q,ee),le=N(A,P),Be=N(D(q,A),D(ee,P)),Le=D(D(Q,R(H(H(Be,Q),le),k)),R(le,2*k));return B(Le),Le}function G(m,w){return -.012*m-.012*w+15e-6*m*w>0}d.prototype.multiply=function(m){var w=J(m),k=this.value,A=w.value,q=this.sign!==w.sign,P;if(w.isSmall){if(A===0)return u[0];if(A===1)return this;if(A===-1)return this.negate();if(P=Math.abs(A),P<s)return new d(ce(k,P),q);A=b(P);}return G(k.length,A.length)?new d(N(k,A),q):new d(ve(k,A),q)},d.prototype.times=d.prototype.multiply;function he(m,w,k){return m<s?new d(ce(w,m),k):new d(ve(w,b(m)),k)}h.prototype._multiplyBySmall=function(m){return v(m.value*this.value)?new h(m.value*this.value):he(Math.abs(m.value),b(Math.abs(this.value)),this.sign!==m.sign)},d.prototype._multiplyBySmall=function(m){return m.value===0?u[0]:m.value===1?this:m.value===-1?this.negate():he(Math.abs(m.value),this.value,this.sign!==m.sign)},h.prototype.multiply=function(m){return J(m)._multiplyBySmall(this)},h.prototype.times=h.prototype.multiply,g.prototype.multiply=function(m){return new g(this.value*J(m).value)},g.prototype.times=g.prototype.multiply;function be(m){var w=m.length,k=L(w+w),A=s,q,P,ee,Q,le;for(ee=0;ee<w;ee++){Q=m[ee],P=0-Q*Q;for(var Be=ee;Be<w;Be++)le=m[Be],q=2*(Q*le)+k[ee+Be]+P,P=Math.floor(q/A),k[ee+Be]=q-P*A;k[ee+w]=P;}return B(k),k}d.prototype.square=function(){return new d(be(this.value),!1)},h.prototype.square=function(){var m=this.value*this.value;return v(m)?new h(m):new d(be(b(Math.abs(this.value))),!1)},g.prototype.square=function(m){return new g(this.value*this.value)};function $e(m,w){var k=m.length,A=w.length,q=s,P=L(w.length),ee=w[A-1],Q=Math.ceil(q/(2*ee)),le=ce(m,Q),Be=ce(w,Q),Le,Se,Ke,Bt,Ot,Lo,Do;for(le.length<=k&&le.push(0),Be.push(0),ee=Be[A-1],Se=k-A;Se>=0;Se--){for(Le=q-1,le[Se+A]!==ee&&(Le=Math.floor((le[Se+A]*q+le[Se+A-1])/ee)),Ke=0,Bt=0,Lo=Be.length,Ot=0;Ot<Lo;Ot++)Ke+=Le*Be[Ot],Do=Math.floor(Ke/q),Bt+=le[Se+Ot]-(Ke-Do*q),Ke=Do,Bt<0?(le[Se+Ot]=Bt+q,Bt=-1):(le[Se+Ot]=Bt,Bt=0);for(;Bt!==0;){for(Le-=1,Ke=0,Ot=0;Ot<Lo;Ot++)Ke+=le[Se+Ot]-q+Be[Ot],Ke<0?(le[Se+Ot]=Ke+q,Ke=0):(le[Se+Ot]=Ke,Ke=1);Bt+=Ke;}P[Se]=Le;}return le=Ee(le,Q)[0],[_(P),_(le)]}function Pe(m,w){for(var k=m.length,A=w.length,q=[],P=[],ee=s,Q,le,Be,Le,Se;k;){if(P.unshift(m[--k]),B(P),Ze(P,w)<0){q.push(0);continue}le=P.length,Be=P[le-1]*ee+P[le-2],Le=w[A-1]*ee+w[A-2],le>A&&(Be=(Be+1)*ee),Q=Math.ceil(Be/Le);do{if(Se=ce(w,Q),Ze(Se,P)<=0)break;Q--;}while(Q);q.push(Q),P=H(P,Se);}return q.reverse(),[_(q),_(P)]}function Ee(m,w){var k=m.length,A=L(k),q=s,P,ee,Q,le;for(Q=0,P=k-1;P>=0;--P)le=Q*q+m[P],ee=F(le/w),Q=le-ee*w,A[P]=ee|0;return [A,Q|0]}function We(m,w){var k,A=J(w);if(l)return [new g(m.value/A.value),new g(m.value%A.value)];var q=m.value,P=A.value,ee;if(P===0)throw new Error("Cannot divide by zero");if(m.isSmall)return A.isSmall?[new h(F(q/P)),new h(q%P)]:[u[0],m];if(A.isSmall){if(P===1)return [m,u[0]];if(P==-1)return [m.negate(),u[0]];var Q=Math.abs(P);if(Q<s){k=Ee(q,Q),ee=_(k[0]);var le=k[1];return m.sign&&(le=-le),typeof ee=="number"?(m.sign!==A.sign&&(ee=-ee),[new h(ee),new h(le)]):[new d(ee,m.sign!==A.sign),new h(le)]}P=b(Q);}var Be=Ze(q,P);if(Be===-1)return [u[0],m];if(Be===0)return [u[m.sign===A.sign?1:-1],u[0]];q.length+P.length<=200?k=$e(q,P):k=Pe(q,P),ee=k[0];var Le=m.sign!==A.sign,Se=k[1],Ke=m.sign;return typeof ee=="number"?(Le&&(ee=-ee),ee=new h(ee)):ee=new d(ee,Le),typeof Se=="number"?(Ke&&(Se=-Se),Se=new h(Se)):Se=new d(Se,Ke),[ee,Se]}d.prototype.divmod=function(m){var w=We(this,m);return {quotient:w[0],remainder:w[1]}},g.prototype.divmod=h.prototype.divmod=d.prototype.divmod,d.prototype.divide=function(m){return We(this,m)[0]},g.prototype.over=g.prototype.divide=function(m){return new g(this.value/J(m).value)},h.prototype.over=h.prototype.divide=d.prototype.over=d.prototype.divide,d.prototype.mod=function(m){return We(this,m)[1]},g.prototype.mod=g.prototype.remainder=function(m){return new g(this.value%J(m).value)},h.prototype.remainder=h.prototype.mod=d.prototype.remainder=d.prototype.mod,d.prototype.pow=function(m){var w=J(m),k=this.value,A=w.value,q,P,ee;if(A===0)return u[1];if(k===0)return u[0];if(k===1)return u[1];if(k===-1)return w.isEven()?u[1]:u[-1];if(w.sign)return u[0];if(!w.isSmall)throw new Error("The exponent "+w.toString()+" is too large.");if(this.isSmall&&v(q=Math.pow(k,A)))return new h(F(q));for(P=this,ee=u[1];A&!0&&(ee=ee.times(P),--A),A!==0;)A/=2,P=P.square();return ee},h.prototype.pow=d.prototype.pow,g.prototype.pow=function(m){var w=J(m),k=this.value,A=w.value,q=BigInt(0),P=BigInt(1),ee=BigInt(2);if(A===q)return u[1];if(k===q)return u[0];if(k===P)return u[1];if(k===BigInt(-1))return w.isEven()?u[1]:u[-1];if(w.isNegative())return new g(q);for(var Q=this,le=u[1];(A&P)===P&&(le=le.times(Q),--A),A!==q;)A/=ee,Q=Q.square();return le},d.prototype.modPow=function(m,w){if(m=J(m),w=J(w),w.isZero())throw new Error("Cannot take modPow with modulus 0");var k=u[1],A=this.mod(w);for(m.isNegative()&&(m=m.multiply(u[-1]),A=A.modInv(w));m.isPositive();){if(A.isZero())return u[0];m.isOdd()&&(k=k.multiply(A).mod(w)),m=m.divide(2),A=A.square().mod(w);}return k},g.prototype.modPow=h.prototype.modPow=d.prototype.modPow;function Ze(m,w){if(m.length!==w.length)return m.length>w.length?1:-1;for(var k=m.length-1;k>=0;k--)if(m[k]!==w[k])return m[k]>w[k]?1:-1;return 0}d.prototype.compareAbs=function(m){var w=J(m),k=this.value,A=w.value;return w.isSmall?1:Ze(k,A)},h.prototype.compareAbs=function(m){var w=J(m),k=Math.abs(this.value),A=w.value;return w.isSmall?(A=Math.abs(A),k===A?0:k>A?1:-1):-1},g.prototype.compareAbs=function(m){var w=this.value,k=J(m).value;return w=w>=0?w:-w,k=k>=0?k:-k,w===k?0:w>k?1:-1},d.prototype.compare=function(m){if(m===1/0)return -1;if(m===-1/0)return 1;var w=J(m),k=this.value,A=w.value;return this.sign!==w.sign?w.sign?1:-1:w.isSmall?this.sign?-1:1:Ze(k,A)*(this.sign?-1:1)},d.prototype.compareTo=d.prototype.compare,h.prototype.compare=function(m){if(m===1/0)return -1;if(m===-1/0)return 1;var w=J(m),k=this.value,A=w.value;return w.isSmall?k==A?0:k>A?1:-1:k<0!==w.sign?k<0?-1:1:k<0?1:-1},h.prototype.compareTo=h.prototype.compare,g.prototype.compare=function(m){if(m===1/0)return -1;if(m===-1/0)return 1;var w=this.value,k=J(m).value;return w===k?0:w>k?1:-1},g.prototype.compareTo=g.prototype.compare,d.prototype.equals=function(m){return this.compare(m)===0},g.prototype.eq=g.prototype.equals=h.prototype.eq=h.prototype.equals=d.prototype.eq=d.prototype.equals,d.prototype.notEquals=function(m){return this.compare(m)!==0},g.prototype.neq=g.prototype.notEquals=h.prototype.neq=h.prototype.notEquals=d.prototype.neq=d.prototype.notEquals,d.prototype.greater=function(m){return this.compare(m)>0},g.prototype.gt=g.prototype.greater=h.prototype.gt=h.prototype.greater=d.prototype.gt=d.prototype.greater,d.prototype.lesser=function(m){return this.compare(m)<0},g.prototype.lt=g.prototype.lesser=h.prototype.lt=h.prototype.lesser=d.prototype.lt=d.prototype.lesser,d.prototype.greaterOrEquals=function(m){return this.compare(m)>=0},g.prototype.geq=g.prototype.greaterOrEquals=h.prototype.geq=h.prototype.greaterOrEquals=d.prototype.geq=d.prototype.greaterOrEquals,d.prototype.lesserOrEquals=function(m){return this.compare(m)<=0},g.prototype.leq=g.prototype.lesserOrEquals=h.prototype.leq=h.prototype.lesserOrEquals=d.prototype.leq=d.prototype.lesserOrEquals,d.prototype.isEven=function(){return (this.value[0]&1)===0},h.prototype.isEven=function(){return (this.value&1)===0},g.prototype.isEven=function(){return (this.value&BigInt(1))===BigInt(0)},d.prototype.isOdd=function(){return (this.value[0]&1)===1},h.prototype.isOdd=function(){return (this.value&1)===1},g.prototype.isOdd=function(){return (this.value&BigInt(1))===BigInt(1)},d.prototype.isPositive=function(){return !this.sign},h.prototype.isPositive=function(){return this.value>0},g.prototype.isPositive=h.prototype.isPositive,d.prototype.isNegative=function(){return this.sign},h.prototype.isNegative=function(){return this.value<0},g.prototype.isNegative=h.prototype.isNegative,d.prototype.isUnit=function(){return !1},h.prototype.isUnit=function(){return Math.abs(this.value)===1},g.prototype.isUnit=function(){return this.abs().value===BigInt(1)},d.prototype.isZero=function(){return !1},h.prototype.isZero=function(){return this.value===0},g.prototype.isZero=function(){return this.value===BigInt(0)},d.prototype.isDivisibleBy=function(m){var w=J(m);return w.isZero()?!1:w.isUnit()?!0:w.compareAbs(2)===0?this.isEven():this.mod(w).isZero()},g.prototype.isDivisibleBy=h.prototype.isDivisibleBy=d.prototype.isDivisibleBy;function _e(m){var w=m.abs();if(w.isUnit())return !1;if(w.equals(2)||w.equals(3)||w.equals(5))return !0;if(w.isEven()||w.isDivisibleBy(3)||w.isDivisibleBy(5))return !1;if(w.lesser(49))return !0}function M(m,w){for(var k=m.prev(),A=k,q=0,P,ee,Q;A.isEven();)A=A.divide(2),q++;e:for(ee=0;ee<w.length;ee++)if(!m.lesser(w[ee])&&(Q=t(w[ee]).modPow(A,m),!(Q.isUnit()||Q.equals(k)))){for(P=q-1;P!=0;P--){if(Q=Q.square().mod(m),Q.isUnit())return !1;if(Q.equals(k))continue e}return !1}return !0}d.prototype.isPrime=function(m){var w=_e(this);if(w!==n)return w;var k=this.abs(),A=k.bitLength();if(A<=64)return M(k,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var q=Math.log(2)*A.toJSNumber(),P=Math.ceil(m===!0?2*Math.pow(q,2):q),ee=[],Q=0;Q<P;Q++)ee.push(t(Q+2));return M(k,ee)},g.prototype.isPrime=h.prototype.isPrime=d.prototype.isPrime,d.prototype.isProbablePrime=function(m,w){var k=_e(this);if(k!==n)return k;for(var A=this.abs(),q=m===n?5:m,P=[],ee=0;ee<q;ee++)P.push(t.randBetween(2,A.minus(2),w));return M(A,P)},g.prototype.isProbablePrime=h.prototype.isProbablePrime=d.prototype.isProbablePrime,d.prototype.modInv=function(m){for(var w=t.zero,k=t.one,A=J(m),q=this.abs(),P,ee,Q;!q.isZero();)P=A.divide(q),ee=w,Q=A,w=k,A=q,k=ee.subtract(P.multiply(k)),q=Q.subtract(P.multiply(q));if(!A.isUnit())throw new Error(this.toString()+" and "+m.toString()+" are not co-prime");return w.compare(0)===-1&&(w=w.add(m)),this.isNegative()?w.negate():w},g.prototype.modInv=h.prototype.modInv=d.prototype.modInv,d.prototype.next=function(){var m=this.value;return this.sign?fe(m,1,this.sign):new d(j(m,1),this.sign)},h.prototype.next=function(){var m=this.value;return m+1<o?new h(m+1):new d(r,!1)},g.prototype.next=function(){return new g(this.value+BigInt(1))},d.prototype.prev=function(){var m=this.value;return this.sign?new d(j(m,1),!0):fe(m,1,this.sign)},h.prototype.prev=function(){var m=this.value;return m-1>-o?new h(m-1):new d(r,!0)},g.prototype.prev=function(){return new g(this.value-BigInt(1))};for(var Ne=[1];2*Ne[Ne.length-1]<=s;)Ne.push(2*Ne[Ne.length-1]);var pt=Ne.length,Ie=Ne[pt-1];function ut(m){return Math.abs(m)<=s}d.prototype.shiftLeft=function(m){var w=J(m).toJSNumber();if(!ut(w))throw new Error(String(w)+" is too large for shifting.");if(w<0)return this.shiftRight(-w);var k=this;if(k.isZero())return k;for(;w>=pt;)k=k.multiply(Ie),w-=pt-1;return k.multiply(Ne[w])},g.prototype.shiftLeft=h.prototype.shiftLeft=d.prototype.shiftLeft,d.prototype.shiftRight=function(m){var w,k=J(m).toJSNumber();if(!ut(k))throw new Error(String(k)+" is too large for shifting.");if(k<0)return this.shiftLeft(-k);for(var A=this;k>=pt;){if(A.isZero()||A.isNegative()&&A.isUnit())return A;w=We(A,Ie),A=w[1].isNegative()?w[0].prev():w[0],k-=pt-1;}return w=We(A,Ne[k]),w[1].isNegative()?w[0].prev():w[0]},g.prototype.shiftRight=h.prototype.shiftRight=d.prototype.shiftRight;function wt(m,w,k){w=J(w);for(var A=m.isNegative(),q=w.isNegative(),P=A?m.not():m,ee=q?w.not():w,Q=0,le=0,Be=null,Le=null,Se=[];!P.isZero()||!ee.isZero();)Be=We(P,Ie),Q=Be[1].toJSNumber(),A&&(Q=Ie-1-Q),Le=We(ee,Ie),le=Le[1].toJSNumber(),q&&(le=Ie-1-le),P=Be[0],ee=Le[0],Se.push(k(Q,le));for(var Ke=k(A?1:0,q?1:0)!==0?t(-1):t(0),Bt=Se.length-1;Bt>=0;Bt-=1)Ke=Ke.multiply(Ie).add(t(Se[Bt]));return Ke}d.prototype.not=function(){return this.negate().prev()},g.prototype.not=h.prototype.not=d.prototype.not,d.prototype.and=function(m){return wt(this,m,function(w,k){return w&k})},g.prototype.and=h.prototype.and=d.prototype.and,d.prototype.or=function(m){return wt(this,m,function(w,k){return w|k})},g.prototype.or=h.prototype.or=d.prototype.or,d.prototype.xor=function(m){return wt(this,m,function(w,k){return w^k})},g.prototype.xor=h.prototype.xor=d.prototype.xor;var Tt=1<<30,Z=(s&-s)*(s&-s)|Tt;function T(m){var w=m.value,k=typeof w=="number"?w|Tt:typeof w=="bigint"?w|BigInt(Tt):w[0]+w[1]*s|Z;return k&-k}function W(m,w){if(w.compareTo(m)<=0){var k=W(m,w.square(w)),A=k.p,q=k.e,P=A.multiply(w);return P.compareTo(m)<=0?{p:P,e:q*2+1}:{p:A,e:q*2}}return {p:t(1),e:0}}d.prototype.bitLength=function(){var m=this;return m.compareTo(t(0))<0&&(m=m.negate().subtract(t(1))),m.compareTo(t(0))===0?t(0):t(W(m,t(2)).e).add(t(1))},g.prototype.bitLength=h.prototype.bitLength=d.prototype.bitLength;function xe(m,w){return m=J(m),w=J(w),m.greater(w)?m:w}function x(m,w){return m=J(m),w=J(w),m.lesser(w)?m:w}function S(m,w){if(m=J(m).abs(),w=J(w).abs(),m.equals(w))return m;if(m.isZero())return w;if(w.isZero())return m;for(var k=u[1],A,q;m.isEven()&&w.isEven();)A=x(T(m),T(w)),m=m.divide(A),w=w.divide(A),k=k.multiply(A);for(;m.isEven();)m=m.divide(T(m));do{for(;w.isEven();)w=w.divide(T(w));m.greater(w)&&(q=w,w=m,m=q),w=w.subtract(m);}while(!w.isZero());return k.isUnit()?m:m.multiply(k)}function V(m,w){return m=J(m).abs(),w=J(w).abs(),m.divide(S(m,w)).multiply(w)}function z(m,w,k){m=J(m),w=J(w);var A=k||Math.random,q=x(m,w),P=xe(m,w),ee=P.subtract(q).add(1);if(ee.isSmall)return q.add(Math.floor(A()*ee));for(var Q=ae(ee,s).value,le=[],Be=!0,Le=0;Le<Q.length;Le++){var Se=Be?Q[Le]+(Le+1<Q.length?Q[Le+1]/s:0):s,Ke=F(A()*Se);le.push(Ke),Ke<Q[Le]&&(Be=!1);}return q.add(u.fromArray(le,s,!1))}var te=function(m,w,k,A){k=k||a,m=String(m),A||(m=m.toLowerCase(),k=k.toLowerCase());var q=m.length,P,ee=Math.abs(w),Q={};for(P=0;P<k.length;P++)Q[k[P]]=P;for(P=0;P<q;P++){var le=m[P];if(le!=="-"&&le in Q&&Q[le]>=ee){if(le==="1"&&ee===1)continue;throw new Error(le+" is not a valid digit in base "+w+".")}}w=J(w);var Be=[],Le=m[0]==="-";for(P=Le?1:0;P<m.length;P++){var le=m[P];if(le in Q)Be.push(J(Q[le]));else if(le==="<"){var Se=P;do P++;while(m[P]!==">"&&P<m.length);Be.push(J(m.slice(Se+1,P)));}else throw new Error(le+" is not a valid character")}return se(Be,w,Le)};function se(m,w,k){var A=u[0],q=u[1],P;for(P=m.length-1;P>=0;P--)A=A.add(m[P].times(q)),q=q.times(w);return k?A.negate():A}function ge(m,w){return w=w||a,m<w.length?w[m]:"<"+m+">"}function ae(m,w){if(w=t(w),w.isZero()){if(m.isZero())return {value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(w.equals(-1)){if(m.isZero())return {value:[0],isNegative:!1};if(m.isNegative())return {value:[].concat.apply([],Array.apply(null,Array(-m.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var k=Array.apply(null,Array(m.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return k.unshift([1]),{value:[].concat.apply([],k),isNegative:!1}}var A=!1;if(m.isNegative()&&w.isPositive()&&(A=!0,m=m.abs()),w.isUnit())return m.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(m.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:A};for(var q=[],P=m,ee;P.isNegative()||P.compareAbs(w)>=0;){ee=P.divmod(w),P=ee.quotient;var Q=ee.remainder;Q.isNegative()&&(Q=w.minus(Q).abs(),P=P.next()),q.push(Q.toJSNumber());}return q.push(P.toJSNumber()),{value:q.reverse(),isNegative:A}}function ue(m,w,k){var A=ae(m,w);return (A.isNegative?"-":"")+A.value.map(function(q){return ge(q,k)}).join("")}d.prototype.toArray=function(m){return ae(this,m)},h.prototype.toArray=function(m){return ae(this,m)},g.prototype.toArray=function(m){return ae(this,m)},d.prototype.toString=function(m,w){if(m===n&&(m=10),m!==10)return ue(this,m,w);for(var k=this.value,A=k.length,q=String(k[--A]),P="0000000",ee;--A>=0;)ee=String(k[A]),q+=P.slice(ee.length)+ee;var Q=this.sign?"-":"";return Q+q},h.prototype.toString=function(m,w){return m===n&&(m=10),m!=10?ue(this,m,w):String(this.value)},g.prototype.toString=h.prototype.toString,g.prototype.toJSON=d.prototype.toJSON=h.prototype.toJSON=function(){return this.toString()},d.prototype.valueOf=function(){return parseInt(this.toString(),10)},d.prototype.toJSNumber=d.prototype.valueOf,h.prototype.valueOf=function(){return this.value},h.prototype.toJSNumber=h.prototype.valueOf,g.prototype.valueOf=g.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function de(m){if(v(+m)){var w=+m;if(w===F(w))return l?new g(BigInt(w)):new h(w);throw new Error("Invalid integer: "+m)}var k=m[0]==="-";k&&(m=m.slice(1));var A=m.split(/e/i);if(A.length>2)throw new Error("Invalid integer: "+A.join("e"));if(A.length===2){var q=A[1];if(q[0]==="+"&&(q=q.slice(1)),q=+q,q!==F(q)||!v(q))throw new Error("Invalid integer: "+q+" is not a valid exponent.");var P=A[0],ee=P.indexOf(".");if(ee>=0&&(q-=P.length-ee-1,P=P.slice(0,ee)+P.slice(ee+1)),q<0)throw new Error("Cannot include negative exponent part for integers");P+=new Array(q+1).join("0"),m=P;}var Q=/^([0-9][0-9]*)$/.test(m);if(!Q)throw new Error("Invalid integer: "+m);if(l)return new g(BigInt(k?"-"+m:m));for(var le=[],Be=m.length,Le=i,Se=Be-Le;Be>0;)le.push(+m.slice(Se,Be)),Se-=Le,Se<0&&(Se=0),Be-=Le;return B(le),new d(le,k)}function Ae(m){if(l)return new g(BigInt(m));if(v(m)){if(m!==F(m))throw new Error(m+" is not an integer.");return new h(m)}return de(m.toString())}function J(m){return typeof m=="number"?Ae(m):typeof m=="string"?de(m):typeof m=="bigint"?new g(m):m}for(var ke=0;ke<1e3;ke++)u[ke]=J(ke),ke>0&&(u[-ke]=J(-ke));return u.one=u[1],u.zero=u[0],u.minusOne=u[-1],u.max=xe,u.min=x,u.gcd=S,u.lcm=V,u.isInstance=function(m){return m instanceof d||m instanceof h||m instanceof g},u.randBetween=z,u.fromArray=function(m,w,k){return se(m.map(J),J(w||10),k)},u}();e.hasOwnProperty("exports")&&(e.exports=t);})(ff);var jw=ff.exports;const Ti=jl(jw);class Hw{constructor(){Ce(this,"n");Ce(this,"e");this.n=Ti("8686980c0f5a24c4b9d43020cd2c22703ff3f450756529058b1cf88f09b8602136477198a6e2683149659bd122c33592fdb5ad47944ad1ea4d36c6b172aad6338c3bb6ac6227502d010993ac967d1aef00f0c8e038de2e4d3bc2ec368af2e9f10a6f1eda4f7262f136420c07c331b871bf139f74f3010e3c4fe57df3afb71683",16),this.e=Ti("10001",16);}a2hex(t){let n="",s;for(let i=0;i<t.length;i++)s=t[i].toString(16),s.length<2&&(s="0"+s),n+=s;return n}hex2a(t){let n="";for(let s=0;s<t.length;s+=2)n+=String.fromCharCode(parseInt(t.substr(s,2),16));return n}pkcs1pad2(t,n){if(n<t.length+11)return null;let s=[],i=t.length-1;for(;i>=0&&n>0;)s[--n]=t.charCodeAt(i--);for(s[--n]=0;n>2;)s[--n]=255;s[--n]=2,s[--n]=0;let o=this.a2hex(s);return Ti(o,16)}pkcs1unpad2(t){let n=t.toString(16);n.length%2!==0&&(n="0"+n);let s=this.hex2a(n),i=1;for(;s.charCodeAt(i)!==0;)i++;return s.slice(i+1)}encrypt(t){let n=this.pkcs1pad2(t,128),s=n==null?void 0:n.modPow(this.e,this.n),i=(s==null?void 0:s.toString(16))||"";for(;i.length<128*2;)i="0"+i;return i}decrypt(t){const n=[];let s=0;for(;s<t.length;)n[s]=t.charCodeAt(s),s+=1;const o=Ti(this.a2hex(n),16).modPow(this.e,this.n);return this.pkcs1unpad2(o)}}class zw{constructor(){Ce(this,"rsa");Ce(this,"kts");Ce(this,"keyS");Ce(this,"keyL");this.rsa=new Hw,this.kts=[240,229,105,174,191,220,191,138,26,69,232,190,125,166,115,184,222,143,231,196,69,218,134,196,155,100,139,20,106,180,241,170,56,1,53,158,38,105,44,134,0,107,79,165,54,52,98,166,42,150,104,24,242,74,253,189,107,151,143,77,143,137,19,183,108,142,147,237,14,13,72,62,215,47,136,216,254,254,126,134,80,149,79,209,235,131,38,52,219,102,123,156,126,157,122,129,50,234,182,51,222,58,169,89,52,102,59,170,186,129,96,72,185,213,129,156,248,108,132,119,255,84,120,38,95,190,232,30,54,159,52,128,92,69,44,155,118,213,27,143,204,195,184,245],this.keyS=[41,35,33,94],this.keyL=[120,6,173,76,51,134,93,24,76,1,63,70];}xor115Enc(t,n,s,i){let o,r,a,l,u,d,h,g;if(l=n%4,g=[],l!==0)for(o=r=0,u=l;u>=0?r<u:r>u;o=u>=0?++r:--r)g.push(t[o]^s[o%i]);for(o=a=d=l,h=n;d<=h?a<h:a>h;o=d<=h?++a:--a)g.push(t[o]^s[(o-l)%i]);return g}getkey(t,n){let s;return n!=null?(()=>{let i,o,r;for(r=[],s=i=0,o=t;o>=0?i<o:i>o;s=o>=0?++i:--i)r.push(n[s]+this.kts[t*s]&255^this.kts[t*(t-1-s)]);return r})():t===12?this.keyL.slice(0):this.keyS.slice(0)}asymEncode(t,n){let s,i,o,r,a;for(o=117,a="",s=i=0,r=Math.floor((n+o-1)/o);r>=0?i<r:i>r;s=r>=0?++i:--i)a+=this.rsa.encrypt(this.bytesToString(t.slice(s*o,Math.min((s+1)*o,n))));return window.btoa(this.rsa.hex2a(a))}asymDecode(t,n){let s,i,o,r,a;for(o=128,a="",s=i=0,r=Math.floor((n+o-1)/o);r>=0?i<r:i>r;s=r>=0?++i:--i)a+=this.rsa.decrypt(this.bytesToString(t.slice(s*o,Math.min((s+1)*o,n))));return this.stringToBytes(a)}symEncode(t,n,s,i){let o,r,a;return o=this.getkey(4,s),r=this.getkey(12,i),a=this.xor115Enc(t,n,o,4),a.reverse(),a=this.xor115Enc(a,n,r,12),a}symDecode(t,n,s,i){let o,r,a;return o=this.getkey(4,s),r=this.getkey(12,i),a=this.xor115Enc(t,n,r,12),a.reverse(),a=this.xor115Enc(a,n,o,4),a}bytesToString(t){let n,s,i,o;for(o="",s=0,i=t.length;s<i;s++)n=t[s],o+=String.fromCharCode(n);return o}stringToBytes(t){let n,s,i;for(i=[],n=0,s=t.length;n<s;n++)i.push(t.charCodeAt(n));return i}encode(t,n){const s=this.stringToBytes(bt.hashStr(`!@###@#${n}DFDR@#@#`));let i=this.stringToBytes(t);return i=this.symEncode(i,i.length,s,null),i=s.slice(0,16).concat(i),{data:this.asymEncode(i,i.length),key:s}}decode(t,n){let s=this.stringToBytes(window.atob(t));return s=this.asymDecode(s,s.length),this.bytesToString(this.symDecode(s.slice(16),s.length-16,n,s.slice(0,16)))}}let pf;function qw(e){pf=e;}function Vt(){return pf}function Sr(e,...t){return new e(t[0])}async function ws(e,t,n){return new Promise(async(s,i)=>{if(typeof e!="function"){i("提供的参数`fulfill`不是一个Function!");return}let o=!1;e(l=>{o=!0,s(l);});let r=setInterval(async()=>{if(o){clearTimeout(a),clearInterval(r);return}e(l=>{clearTimeout(a),clearInterval(r),s(l);});},t),a=setTimeout(()=>{clearInterval(r),i("超时");},n);})}async function ln(e){return new Promise(t=>{setTimeout(t,e);})}function vt(e,t,n){let s;return function(...i){const o=()=>{s=void 0,e.apply(this,i);};clearTimeout(s),s=setTimeout(o,t);}}function Fs(e,t){t=t||window,t.postMessage(e);}function Er(e,t=location.href){const n=new RegExp("(\\?|#|&)"+e+"=([^&#]*)(&|#|$)"),s=t.match(n);return s?s[2]:""}function bo(){return Math.floor(Date.now()/1e3)}function hf(e){const t=e.target;e.key==="a"&&(e.ctrlKey||e.metaKey)&&t.select();}function mf(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement}function Vw(e){e.addEventListener("keydown",t=>{const n=t.target;mf(n)&&hf(t);});}function gf(e,t=.2,n=.5){e.style.transition=`opacity ${n}s`,e.style.opacity=t.toString(),setTimeout(()=>{e.remove();},500);}function Ww(e,t){let n=document.querySelector(e);return n||(n=Dt(t)),n}function Dt(e){const t=document.createElement("div");if(t.innerHTML=e.trim(),t.childNodes.length!==1||!(t.firstChild instanceof HTMLElement))throw new Error("Invalid HTML string. It must contain exactly one root element.");return t.firstChild}function yf(e,t=document,n=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE){const s=[],i=document.evaluate(e,t,null,n,null);for(let o=0;o<i.snapshotLength;o++){const r=i.snapshotItem(o);r&&s.push(r);}return s}async function ft(e,t=100,n=12e4,s=document){const i=await wf(e,t,n,s);if(i.length)return i[0];throw new Error(`未找到元素:${e}`)}async function wf(e,t=100,n=12e4,s=document){const i=e.indexOf("//")===0;function o(r){if(i){const a=yf(e);a.length>0&&r(a);}else {const a=s.querySelectorAll(e);a.length&&r(Array.from(a));}}try{return await ws(o,t,n)}catch(r){throw console.warn("[find]",r),new Error(`查找元素超时:${e}`)}}async function ls(e,t=100,n=12e4){const s=e.indexOf("//")===0;function i(o){if(s){const r=yf(e);r.length>0&&o(unsafeWindow.$(r));}else {const r=unsafeWindow.$(e);r.length&&o(r);}}try{return await ws(i,t,n)}catch(o){throw console.warn("[findWithJQuery]",o),new Error(`查找元素超时:${e}`)}}async function Kw(e,t,n){const s=await ft(e),i=new MutationObserver(t);return n={attributes:!1,childList:!0,subtree:!1,...n},i.observe(s,n),i}const Ko=me.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:e=>{e.addEventListener("mouseenter",me.stopTimer),e.addEventListener("mouseleave",me.resumeTimer);},customClass:"swal-toast"});async function Gw(e,t){e.addEventListener("keydown",n=>{const s=n.target;if(!mf(s))return;let i=!1;n.key==="Enter"&&(n.ctrlKey||n.metaKey)&&(i=!0),i&&me.clickConfirm();});}async function re(e){return me.fire({toast:!0,position:"top-right",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:t=>{t.addEventListener("mouseenter",me.stopTimer),t.addEventListener("mouseleave",me.resumeTimer);},...e})}async function Jw(e,t,n=!1){var o;const s=new Map;if(!e.length)return s;t=t||await So();let i=new Map;n||(re({text:"正在获取上级目录路径...",timer:0}),me.showLoading());try{i=await kb(e),n||me.close();}catch(r){return console.error(r),n||re({text:`获取上级目录路径失败: ${r}`,timer:1200,icon:"error"}),s}finally{n||me.hideLoading();}if(i.size===0)return s;for(let r=0;r<e.length;r++){const a=(o=i.get(e[r].parentId))==null?void 0:o.slice(1).join("/"),l=e[r].name,u=of(a+"/"+l),d=e[r].isFile?await wo(t,u,ps.play):await Ga(t,u);s.set(u,d);}return console.log("[buildCloudDriveUrlsForFileItems] pathToUrl:",s),s}async function Yw(e,t,n=!1){return new Promise(async(s,i)=>{const o=await wo(e,t,void 0,n);Nl({method:"HEAD",url:o,onload:r=>s(r.status===200),onerror:r=>i(r)});})}async function Qw(e,t,n,s,i){const r=`waitFileExist_${$r()} path: ${t}`;console.time(r);async function a(l){const u=await Yw(e,t,n);u&&l(u);}try{await ws(a,s,i);}catch{throw new Error(`[waitFileExist] 检查文件存在超时!文件路径: ${t}`)}finally{console.timeEnd(r);}}async function Xw(e){let t=`#EXTM3U
`;for(const[n,s]of e)t+=`#EXTINF:0,${n}
${s}
`;return t}var us=(e=>(e.unix="/",e.windows="\\",e))(us||{});function nr(e,t="/"){return e.map((n,s)=>s===0?n:Ar(n,t)).join(t)}function Ar(e,t="/"){return e=e.replace(/[\\/]/g,t),t==="/"?e=e.replace(/\/+/g,t):e=e.replace(/\\+/g,t),e.length>1&&e.endsWith(t)&&(e=e.slice(0,-1)),e}function Zw(e){return e.startsWith("/")}function eb(e){return e===""||e==="/"||e==="\\"}function Ya(e,t,n="/"){if(Zw(t))return t;const s=new URL(e,"http://example.com");s.pathname=tb(s.pathname,t);let i=decodeURIComponent(s.pathname);return Ar(i,n)}function tb(e,t){const n=e.endsWith("/")?e:e+"/",s=t.startsWith("/")?t.slice(1):t;return n+s}function bf(e,t=/^\w+$/){const n=e.lastIndexOf(".");if(n===-1)return "";const s=e.slice(n+1);return t&&!t.test(s)?"":s}const nb=["ts","wmv","3pg","mp4","mpg","m4v","iso","mkv","avi","dvd","wmv","i00","i01","i02","i03","i04","i05","i06","i07","i08","i09","i10","i11","i12","mpeg","mov","m2ts","bup","vob","rmvb","md0","md1","md2","md3","md4","md5","mdf","mds","nrg","flv"],sb=["jpg","jpeg","png","gif","bmp","svg"],ob=["mp3","wav","wma","ogg","ape","flac","aac"];function sr(e,t,n="text/plain"){const s=document.createElement("a");document.body.appendChild(s),s.setAttribute("style","display:none");const i=new Blob([e],{type:n}),o=window.URL.createObjectURL(i);s.href=o,s.download=t,s.click(),window.URL.revokeObjectURL(o);}function vo(e,t=2){if(Number.isNaN(e)||(e=typeof e=="string"?parseInt(e):e,!e))return "0";const n=1024,s=t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(s))+" "+i[o]}function hc(e){const t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=new RegExp(`^(\\d+(?:\\.\\d+)?)(${t.join("|")})$`,"i"),s=e.match(n);if(!s)throw new Error(`无效的文件大小!${e}`);const i=parseFloat(s[1]),o=s[2].toUpperCase(),r=t.indexOf(o);if(r<0)throw new Error(`无效的文件大小!${e}`);return i*Math.pow(1024,r)}function ib(e){return e?nb.indexOf(e.toLowerCase())>-1:!1}function rb(e){return e?sb.indexOf(e.toLowerCase())>-1:!1}function ab(e){return e?ob.indexOf(e.toLowerCase())>-1:!1}function vf(e){return JSON.parse(JSON.stringify(e))}function mc(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Vl(...e){const t={};for(const n of e)for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(mc(n[s])&&mc(t[s])?t[s]=Vl(t[s],n[s]):t[s]=n[s]);return t}function lb(e){const t=new Map;for(const[n,s]of e)t.set(s,n);return t}function Pr(e){const t=new URLSearchParams;let n;for(n in e)t.append(n,e[n].toString());return t.toString()}function ub(e,t=!1){const n=[];for(const s in e){let i=e[s].toString();i=t?encodeURIComponent(i):i,n.push(`${s}=${i}`);}return n.join("&")}function cb(e){const t=new FormData;let n;for(n in e)t.append(n,e[n].toString());return t}async function zt(e=!0){const t=Zt().GetCurWangPanCid();return !t&&e?(Zt().Core.MinMessage.Show({text:'不支持"根目录"!',timeout:1e3}),""):t}function db(e={}){return {move:!0,rename:!0,delete:!0,more:!0,classList:"ce-temp-item",...e}}async function fb(e,t,n={}){const s=!t.sha1,i=s?"":bf(t.file_name),o=s?"folder":i.toLowerCase(),r=s?"文件夹":i.toUpperCase()+"文件",a=s?"cate_id":"file_id";let l=$(`li.temp-el[${a}="${e}"]`);if(!l.length){const h=[];h.push(s?`<a class="name" href="javascript:;" cate="1" menu="open" aid="1" cid="${e}" rel="view_folder">
        <span>${t.file_name}</span>
      </a>`:`<a class="name" href="javascript:;" menu="view_file_one" rel="file" field="file_name">
        <span>${t.file_name}</span>
      </a>`),n.star&&h.push(`<a href="javascript:;" class="icon-star ${t.is_mark==="1"?"i-star-active":""}" menu="star" start_point="1" is_star="${t.is_mark}" data_title="星标">星标</a>`),n.remark&&h.push('<a href="javascript:;" class="icon-remarks" style="display: none;" menu="remark"></a>'),n.scores&&h.push('<div class="score-stars" menu="file_score"></div>');const g=n.labels?`<div class="labels-text" style="display: none;" rel="label_box">
      <span style="cursor: pointer; display: none;" class="ic-ellipsis" rel="more_label">...</span>
    </div>`:"",v=[];n.setTop&&v.push(`<a href="javascript:;" menu="setTop" rel="setTop">
        <i class="icon-operate ifo-filesettop" menu="setTop"></i>
        <span menu="setTop">置顶</span>
      </a>`),n.move&&v.push(`<a href="javascript:;" menu="move">
        <i class="icon-operate ifo-move" menu="move"></i>
        <span menu="move">移动</span>
      </a>`),n.rename&&v.push(`<a href="javascript:;" menu="edit_name">
        <i class="icon-operate ifo-rename" menu="edit_name"></i>
        <span menu="edit_name">重命名</span>
      </a>`),n.delete&&v.push(`<a href="javascript:;" menu="delete">
        <i class="icon-operate ifo-remove" menu="delete"></i>
        <span menu="delete">删除</span>
      </a>`);const b=[`<div class="file-name-wrap">
        <i class="file-type tp-${o}" folder-type="shared"></i>
        <span class="file-name" rel="file_name">
          <em>
            ${h.join(`
`)}
          </em>
        </span>
        ${g}
      </div>`,`<div class="file-size"><span>${s?"":t.size}</span></div>`,`<div class="file-typename"><span>${r}</span></div>`,`<div class="file-modified">${new Date(Number(t.utime)*1e3).toLocaleString()}</div>`,'<div class="file-directory"></div>',`<div class="file-opr" rel="menu">
        ${v.join(`
`)}
      </div>`],_=`
      <li rel="item" class="temp-el" file_type="${s?0:1}">
        <s class="drag-flag" data-rel="drag" style="cursor: pointer;"></s>
        <textarea style="display: none;" field="desc"></textarea>
        <textarea style="display: none;" field="ext3"></textarea>
        <input type="checkbox" value="${e}"/>
        <div class="checkbox" menu="file_check_one"></div>
        ${b.join(`
`)}
      </li>
    `;l=$(_);}l.find("a.name > span").text(t.file_name),n.classList&&l.addClass(n.classList);const u=t.paths[t.paths.length-1].file_id;let d={rel:"item",c:"0",hdf:"0",title:t.file_name,file_type:s?0:1,pick_code:t.pick_code,is_share:t.is_share,shared:t.is_share,area_id:"1",p_id:u,score:t.score};s?d={...d,cate_id:e,cate_name:t.file_name}:d={...d,file_id:e,cid:u,iv:t.play_long?"1":"0",ico:i,sha1:t.sha1};for(let h in d)l.attr(h,d[h]);return l}async function An(e){const t=await vi(e);return Gs(t)}async function vi(e){const t=e.attr("file_size"),n=e.attr("iv")==="1",s=vs(),i=e.attr("file_id")||"",o=!!i,r=e.attr("c")||"",a=e.attr("fvs")||"",l={n:e.attr("title")||"",s:t?parseInt(t):0,pc:e.attr("pick_code")||"",t:e.attr("user_ptime")||"",te:"",tp:"",ico:e.attr("ico")||"",sha:e.attr("sha1")||"",iv:n,c:r?parseInt(r):0,fuuid:e.attr("fuuid"),fvs:a?parseInt(a):0};let u={n:l.n};if(!s)u={fid:i,cid:(o?e.attr("cid"):e.attr("cate_id"))||"",pid:o?"":e.attr("p_id")||"",...l};else if(u={fid:i,cid:(o?e.attr("cid"):e.attr("cate_id"))||"",...l},!o){const d=e.find(".file-directory a[cid]");if(d.length)u.pid=d.attr("cid");else throw console.warn("无法获取上级目录ID!",e),new Error("无法获取上级目录ID!")}return {...u,...l}}async function zn(e){const t=await yb(e);return pb(t)}function pb(e){const t=[];for(let n=0;n<e.length;n++){const s=Gs(e[n]);t.push(s);}return t}function Gs(e){var s,i;const t=!!e.fid,n={id:t?e.fid:e.cid,name:e.n,hash:e.sha,parentId:t?e.cid:e.pid,sizeRaw:e.s,sizeDesc:(s=e.s)==null?void 0:s.toString(),sizeBytes:0,isFile:t,isDir:!t,isVideo:e.iv===!0||((i=e.iv)==null?void 0:i.toString())==="1",pickCode:e.pc,playDuration:e.play_long};return typeof e.s=="number"?n.sizeBytes=e.s:typeof e.s=="string"&&/^\d+$/.test(e.s)&&(n.sizeBytes=parseInt(e.s)),n.sizeDesc=vo(n.sizeBytes||0),n}function Zt(){return unsafeWindow.TOP?unsafeWindow.TOP:unsafeWindow}function hb(){return unsafeWindow.top===unsafeWindow?unsafeWindow.Ext:unsafeWindow.top.Ext}async function mb(){const e=await zt();return gb(e,db({classList:"ce-temp-cur-dir"}))}async function gb(e,t={}){const n=await Pt(e);return await fb(e,n,t)}async function _i(){return window.top!==window?$(document):$('iframe[name="wangpan"], .wrap-view iframe:eq(0)').contents()}async function Eo(){return (await _i()).find(".list-contents, .list-thumb")}async function _f(e){const t=await Eo();return e?t.find("li.selected:not(.ce-temp-cur-dir)"):t.find("li:not(.ce-temp-cur-dir)")}async function yb(e){const t=await _f(e),n=[];for(let s=0;s<t.length;s++){const i=t.eq(s),o=await vi(i);n.push(o);}return n}async function Qa(e="/"){const t=await wb();return e+t.slice(1).join(e)}async function wb(){const e=await _i(),t=[];return e.find("#js_top_header_file_path_box .top-file-path > .file-path").children().each(function(){t.push($(this).text().trim().replace(/[›]$/,""));}),t}async function bb(){const e=await zt();(await Eo()).find("li.selected").each(function(){const n=$(this);n.attr("cate_id")!==e&&(n.find('input[type="checkbox"]').prop("checked",!1),n.removeClass("selected"));});}async function bs(e=!1,t=0){const n=await zt();if(!n)return null;const s=await Eo(),i=await mb();return e||i.hide(),s.find(`li[cate_id="${n}"]`).length||s.append(i),t>0&&setTimeout(()=>{i.remove();},t),i}async function Wl(e,t,n){await bb(),Zt().Core.FileMenu.DoEvent([e],t,null);}function vb(e,t=""){return `https://115.com/?ct=preview&ac=location&pickcode=${e}&sha1=${t}`}function Ds(e){return `https://115.com/?${new URLSearchParams({cid:e}).toString()}&offset=0&mode=wangpan`}function Xn(e=location.href){return e.includes("ac=userfile")}function vs(e=location.href){return e.includes("ac=search")}function _b(e=location.href){return /(115|anxia)\.com\/s\/\w+/.test(e)}function Kl(e,t=""){const n={aid:"1",cid:e.cid||"",old_cid:e.cid||"",old_cid_name:t,search_value:encodeURIComponent(e.search_value),ct:"file",ac:"search",is_wl_tpl:"1"};return "https://115.com/?url="+encodeURIComponent(`/?${ub(n)}`)+"&submode=wangpan&mode=search"}function xf(e){return `https://v.anxia.com/?${new URLSearchParams({pickcode:e,share_id:"0"}).toString()}`}async function xb(e){unsafeWindow.Main.ReInstance({type:e.type,offset:0,o:lf.userPtime,asc:Hl.false,star:e.star,suffix:e.suffix});}async function Cf(){return (await Eo()).find("li.selected")}async function kf(){const e=await Cf();return e?await vi(e):null}function Cb(e){return e.replace(/[/\\:*?"<>|]/g,"_")}const xa=new Map;async function Ir(e,t=!1){const n=Cb(e.name);if(t&&e.parentId&&xa.has(e.parentId)){const r=xa.get(e.parentId);if(r)return `${r}/${n}`.replace(/^[\/]+/g,"/")}const i=(await Pt(e.id)).paths.slice(1).map(r=>r.file_name).join("/");return e.parentId&&xa.set(e.parentId,i),`/${i}/${n}`.replace(/^[\/]+/g,"/")}async function kb(e,t=100){var o;const n=new Map;for(const r of e){const a=r.parentId;if(!a)throw new Error(`文件"${r.name}"没有父级目录ID!`);n.has(a)?(o=n.get(a))==null||o.push(r):n.set(a,[r]);}const s=[];for(const r of n.values())s.push(r[0]);const i=new Map;for(const r of s){const a=await Pt(r.id);await ln(t),i.set(r.parentId,a.paths.map(l=>l.file_name));}return i}async function $b(e,t=100){var o;const n=new Map;for(const r of e){const a=r.parentId;if(!a)throw new Error(`文件"${r.name}"没有父级目录ID!`);n.has(a)?(o=n.get(a))==null||o.push(r):n.set(a,[r]);}const s=[];for(const r of n.values())s.push(r[0]);const i=new Map;for(const r of s){const a=await Pt(r.id);await ln(t),i.set(r.parentId,a.paths);}return i}async function Sb(e,t){const n=new File([e],t.filename,{type:"text/plain"});return Fb(n,t)}async function Eb(e,t,n){const s=await Jw(e),i=await Xw(s);n=n||$r();let o=t;return /m3u8$/.test(n)||(n+=".m3u8"),await Sb(i,{filename:n,target:o})}const Ca=new Map;async function io(e,t=!1){if(e=Ar(e,us.unix),e=e.replace(/^[\/]+/,"").replace(/[\/]+$/,""),t&&Ca.has(e))return Ca.get(e);if(e===""||e==="/")return "0";const n=await Mb(e);if(!n.state)throw new Error(`根据路径"${e}"获取目录ID失败: ${n.error}`);if(n.id&&n.id.toString()!=="0")return Ca.set(e,n.id.toString()),n.id.toString();throw new ql(`根据路径"${e}"获取目录ID失败: 目录不存在!`)}async function Ab(e){e=e.replace(/^\//,"").replace(/\/$/,"");const t={id:"",created:!1,pathToId:new Map};if(e===""||e==="/")return t.id="0",t;const n=e.split("/").filter(o=>o);let s="0",i="";for(const o of n){i+="/"+o;let r="";try{r=await io(i,!0),t.pathToId.set(i,r);}catch(a){if(a instanceof ql){const l=await Pf(s,o);if(!l.state)throw new Error(`创建目录"${o}"失败: ${l.error} - ${l.error}`);r=l.cid.toString();}else throw a}s=r,t.pathToId.set(i,r);}return t.id=s,t}async function Pb(e,t,n=!0){let s="";const i=await Pf(t,e);if(i.state)s=i.cid.toString();else {if(i.errno===df.exist&&n){const o=await Pt(t);if(!o.pick_code)throw new Error(`获取目录"${t}"属性失败: ${o.errno} - ${o.error}`);const r=[...o.paths.slice(1).map(a=>a.file_name),o.file_name,e].join("/");return await io(r,!0)}throw new Error(`创建目录"${e}"失败: ${i.errno} - ${i.error}`)}return s}async function $f(e,t,n){const s=new URLSearchParams({page:e.toString(),uid:n.toString(),sign:t,time:bo().toString()});return (await Vt().post("https://115.com/web/lixian/?ct=lixian&ac=task_lists",s,{withCredentials:!0,timeout:6e4})).data}async function Sf(){return (await Vt().get(`https://115.com/?ct=offline&ac=space&_=${Date.now()}`,{timeout:3e4,withCredentials:!0})).data}async function Ef(){const t=(await Vt().get("https://my.115.com/?ct=ajax&ac=nav",{timeout:3e4,withCredentials:!0})).data;if(t.state)return t.data;throw new Error(t.error)}async function Af(e){const t=Pr(e),s=(await Vt().get("https://webapi.115.com/files?"+t,{timeout:12e4,withCredentials:!0})).data;if(s.state)return s;throw new Error(s.error)}async function ro(e,t=50){let n=[],s=0;for(;;){e.offset=s;const i=await Af(e);if(!i.data||!i.data.length||(i.count>i.data.length&&e.limit!==i.data.length&&(console.warn(`[getFilesList] invalid limit(${e.limit}) detected! max limit is ${i.page_size}, correct it now!`),e.limit=i.page_size),n=[...n,...i.data],s+=e.limit,s>=i.count))break;await ln(t);}return n}async function Ib(e){const t=Pr(e),n=await Vt().get("https://webapi.115.com/files/search?"+t,{timeout:12e4,withCredentials:!0});if(n.data==="")throw new cf;const s=n.data;if(s.state)return s;throw new zl(s.error)}async function Tb(e,t=200,n=!1){let s=[],i=0,o=e.limit;const r=1e4,a=115,l=r-r%o;let u=o;for(;;){if(n){if(i>=l&&i<r){const h=r-l;u=Math.min(h,u);}i>=r&&(u=a);}e.offset=i,e.limit=u;const d=await Ib(e);if(!d.data||!d.data.length||(s=[...s,...d.data],i+=u,i>=d.count))break;await ln(t);}return s}async function Gl(e,t){const n=new URLSearchParams({pid:e,ignore_warn:"1"});return t.forEach((i,o)=>{n.append(`fid[${o}]`,i);}),(await Vt().post("https://webapi.115.com/rb/delete",n,{timeout:12e4,withCredentials:!0})).data}async function ka(e,t,n=1150,s=1e3){let i=0,o=0;for(;;){const r=t.slice(i,i+n);if((await Gl(e,r)).state&&(o+=r.length),i+=n,i>=t.length)break;await ln(s);}return o}async function Pf(e,t){const n=new URLSearchParams({pid:e,cname:t});return (await Vt().post("https://webapi.115.com/files/add",n,{timeout:12e4,withCredentials:!0})).data}async function Ob(e,t){const n=new URLSearchParams({pid:e});return t.forEach((i,o)=>{n.append(`fid[${o}]`,i);}),(await Vt().post("https://webapi.115.com/files/move",n,{timeout:12e4,withCredentials:!0})).data}async function Mb(e){const t={path:e};return (await Vt().get("https://webapi.115.com/files/getid?"+Pr(t),{timeout:12e4,withCredentials:!0})).data}async function Pt(e){const t=new URLSearchParams({cid:e});return (await Vt().get("https://webapi.115.com/category/get?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function Xa(e,t,n,s){const i={uid:s.toString(),sign:t.sign,time:bo().toString()};n&&(i.flag="1");const o=cb(i);return e.forEach((a,l)=>{o.append(`hash[${l}]`,a);}),(await Vt().post("https://115.com/web/lixian/?ct=lixian&ac=task_del",o,{timeout:12e4,withCredentials:!0})).data}async function Lb(e){return new Promise((t,n)=>{const s=JSON.stringify({pickcode:e}),i=Math.floor(Date.now()).toString(),o=new zw,{data:r,key:a}=o.encode(s,i);Nl({method:"POST",url:`https://proapi.115.com/app/chrome/downurl?t=${i}`,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","User-Agent":navigator.userAgent,Accept:"application/json, text/javascript, */*; q=0.01"},data:`data=${encodeURIComponent(r)}`,responseType:"json",onload:l=>{const u=JSON.parse(l.responseText);if(u.state){const d=o.decode(u.data,a);if(d){const h=JSON.parse(d),g=Object.keys(h)[0],v=h[g];v.file_id=g;const b=l.responseHeaders.split(/[\r\n]+/).filter(_=>_.match(/set-cookie/i));b.length&&(b.forEach((_,B)=>{b[B]=_.replace(/set-cookie:[\s]*/i,"").split(";")[0];}),v.cookie=b.join("; ")),t(v);}else n({state:!1,error:"解密失败"});}else n(u);},onerror:l=>{n(l);}});})}async function Db(e){if(!(await Pt(e)).play_long)throw new Error("该目录下没有可以播放的媒体文件![by_attr]");const s=(await ro(Ls({cid:e,limit:1150}))).find(i=>i.play_long&&i.play_long>0);if(!s)throw new Error("该目录下没有可以播放的媒体文件![by_files]");return Gs(s)}async function Bb(e,t){if(e=typeof e=="string"?e:e.join(","),!t){if(e.includes(","))throw new Error("target参数不能为空!");t=e;}t=t.startsWith("U_1_")?t:`U_1_${t}`;const n=new URLSearchParams({file_ids:e,target:t});return (await Vt().post("https://webapi.115.com/files/export_dir",n,{timeout:12e4,withCredentials:!0})).data}async function Rb(e,t=1e3,n=12e4){const s=new URLSearchParams({export_id:e.toString()}),i=async()=>(await Vt().get("https://webapi.115.com/files/export_dir?"+s.toString(),{timeout:12e4,withCredentials:!0})).data;async function o(r){const a=await i();a.data&&a.data.pick_code&&r(a);}try{return await ws(o,t,n)}catch(r){throw new Error(`导出目录树结果获取失败:${r.message}`)}}async function Nb(e){/^\d+$/.test(e.target)&&(e.target=`U_1_${e.target}`);const t=Pr(e);return (await Vt().post("https://uplb.115.com/3.0/sampleinitupload.php",t,{timeout:12e4,withCredentials:!0})).data}async function Fb(e,t){const n=await Nb(t),s=new FormData;s.append("name",t.filename),s.append("key",n.object),s.append("policy",n.policy),s.append("OSSAccessKeyId",n.accessid),s.append("success_action_status","200"),s.append("callback",n.callback),s.append("signature",n.signature),s.append("file",e);const i=n.host.replace(/^http:/,"https:");return (await Vt().post(i,s,{timeout:18e5})).data}const If=yt.enabledCustomUrlsForSearch,Tf=yt.enabledCustomUrlsForPlay;async function Ub(e){await lt.set(If,e);}async function jb(e){await lt.set(Tf,e);}async function Hb(){const e=el,t=e.filter(i=>i.enabled).map(i=>i.key),n=await lt.get(If,t),s=[];return e.forEach(i=>{n.includes(i.key)&&s.push(i.key);}),s}async function zb(){const e=Za,t=e.filter(i=>i.enabled).map(i=>i.key),n=await lt.get(Tf,t),s=[];return e.forEach(i=>{n.includes(i.key)&&s.push(i.key);}),s}async function Of(){const e=await Hb();return el.forEach(t=>{t.enabled=e.includes(t.key);}),el}async function Mf(){const e=await zb();return Za.forEach(t=>{t.enabled=e.includes(t.key);}),Za}const gc="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABu0lEQVRYhe2WsVXDMBCG/xNNSrFBmAB3tBEZIJkAmCBog9gbGLNAwgQwQJ5MSecNYASVaayjcBIrEDvye06V/JVs/777fJJOBi666NxFoUapzQiunAJiAmC4uV2AuACJxKbq5yQAUhsJxhzMuj0SpxsQ2xuA1EbCuRyg28B4BQSpLhCi9SljvpeckUOQgqBrm90TBCkAS++NCOzmocmBlgpIbYZw/O3RJDYbxwe9s1UMUJ24qkIeAtBcAVfWyYgWTckBwGbjGIw6oXPTkOTtABB16WmvzId1RUl9QZMeABBtB4HlLLzxsNHVAWAnqY085um6/UIA/MYSNbo2ktqMvMui0RgOwB+7YcnHt5Yrn3Zjoh4AhHivA2IkZ6YRonomHj1/0uT9q/ZOOFulAD3Xbl6AxNKmKt+siwglz0Goy8/I7eu96gdAGwnHBgFr4E/Y2GYqqAqtu8Cmylbtll+ORvIbEThum7JggC2EzcYagm5Q9X1/gf0A/AJBqio7e18dBhH8PxCqf+fCkem46htg/fWWD+4eCKDtwhwN7p6w/lp+HvIHdcKuqg6u/elo8p4E4D8EB/eFiy46P/0C5gmePG6KKVsAAAAASUVORK5CYII=",qb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACAlJREFUaEPtmWuIXVcVx3/7vt9zJ5NOZ5JGkxQDEZroF7WxYGILGoWmLxXamtG0RUhoLSiW4hdFPxRFSytJLVpNRqTE2qq1WqiFGbWhNiCSIClU1EZj0ySTedz3uY+zZN19bjL3zn1NckcNeODAuTPn7L3/6/Ff/7W34Qq/zBW+fv4P4L/tweV4wAf4vVuf9V7O992wCuB6dw3QW3/3vPpZQODYsWM7t2zZ8nzP0Qb4wvHjx2/eunXri0C127C9AMRFJDfAdS17KGNMAsh3+rAbgKSIZJY94wp8YIxJAdl2Q3cCEBIRZwXWcslDGmPCQLl1gHYAzNTU1O3bt29/pr/ZNP8AEXvXRzRg9KFXhPY3g741PT39iR07djyrMy3+qt0MfVrfW7DU4LVHkX8cAX8QXBfExdxxGEwAfIMjq3ZeaAcgJSIL3W2ji3ehVoGnd0E0idQX6l3672oV3+rNsOMr4At4/7g8jxhjhoCmvGw34qiInOkKQK3uVuEHNyGRmAVSydu/GR8SjEIwDr4wUnHw3/1zC8JcnjeMMVcDZ3uF0DUi8s/OAMQutJSFgzuRWhmK8+DkkIpStoFQBOJpiK9GIkkQg/9j34CRTeDTWnhpnjDGrANO9QLwThF5szMAF6pleOJGyJ1BnBw4WSiVEVeTNwCuQDiEJNOQHoX4MAQimFAM3ycnPW8sP8mNMeuBk70AbBCRv3UEoOFTKcHXNuG8WSJ/tAiOgxEX/5oUiW0pqDgWWNBAMoUMj2CSV0EkAbUa/omfQiC87JAyxmwE/n75AJwCPLyOuRdKmFoVqdYsc0ZjpH/5ErUn7wF9x5kHKSPJGKRXwdAohNOIBPC/93Z877vTS/D+QmqAAPJkP7gWd76AiGA8atan9KtvgJNBfvUY7okjUJxDakWI+pHEECRHkdgI4o+CUyP8hefA31+CDxbADeOQL9TLilaWug0FkkdPWw8XFqCUofrtT9cBUVygpgJTKTc5AhpS4RRSFqJf/CFEV/VM8IECKHx4DMkXl6RK/NVZ8IcstZZykD1L9bE9yPw8bka9UUaCYdxkGpMahdgqYtcFYWgDfORbXUNqoABKH28B4LkhOj0PoZiVFRXH5kL2LPLX1yh//xHcbAa3qLrMhxsbwqRGSNy4GkwIYmvh1ic7ghgoAOe2MShZD9QlkJeH4V8rAC1iPisrlHIrRdBF52YoPHQn5PLUchncSgXxx0nfscqGkOuDPS9bhrpQvS86eaAAKnePQbFog3+RvAo+2wCgBcvTS7WqpV4nD5mzOI8/ROXPr1M7N0voHWWi74lAZBj8Mdj2eXj/HqurWgreQAFU93gAWrIg8HQDgOqfBjKt3lo/HCgXIDMDc6dwf3wXPpm1C/VHLID0RnhgGgIhr2tdIQ/U7hkDpyWEfOCfXAxgkbpTMPWQcmw4PXU95DKQX4CqCkM/KLWuvx4+9zMrR+pt9woBcO8bQ4rFeuw37Gz84DvYBYCG0us/gT9+F7LnYe4MZLJQrIIEIZSCh/8Aw2sguOIAxqFQuLg3obkQMPiemvOSuCGhG9K7Cs/fYjc1ijk4/xbMKACt2KZeoQlH4ctHITa08iHk7rsWk80gbgWMYFS8hQP49r+1CIAX+8UZmLoXVOwVsjD7NszOQEaFoA9CwxBKwt5nYHgdRJTFlARWKoQ0EX/xVeTlw5bnTQ3iUcz6a+GBF0H7AdX+KrtfeRDyp6BagfwczJ2F+TnIFMGNQGgEQgn47CSk19QrdZ2B2vQOg2EhlQPlEuTOIY/stDrGJ+CvYO5/AYbGrfuVdV66FQhCOQ+587BwDhYyUNA9qwSE0rD9Qdh4AwyNQThuv613d83W11QeHABNxlIesqctGL1CYUiOWeufOQInHrdtZ3EBFtTqs5DNQSUEgTQEEnDXJMRHIJq2rKOWv9BDL1WogwOgpbdRnCq60yEQCFpvTH3KVlGly/yMtXpmAXJlkBgEh2F0M3z065BQeR23i9eYv7CT0V5eDwiAmlt3Hjx2UW7XcKkW4JUJ63pVnzlNUg0ZTVQtVEMQTMGuJyA1DonVEIp6smFxr9y5N+gXwHoRaep6lnZnLRU2dxp+fy/4DJTm6/nBwhyoWq1ELEUGE3DbjzwZnbA8r17rYfWWQrYBaGp328Ht0RMvHtK18uC5bVYKaLLmz0M+A44mqoZHGq7bDZt31ZuZulINhm241a/+e+N+e+K1ItLU+Xftj5VSD38AnDKU5mxxcwMQ0pBJwi2TENNE1d9q9QbLNGzXXzvpsdA1wL969cRXiUjT3ktHAMrzCuB3X4KTv4VCHqpirZxYAzc9Cqmr7W+N9z4SteNclkZHgXO9ACREpO1O8JLBGzsUGvN/OgAnf2OF2Ye+CUPrIK5toyaqWn3xflD/Vm/JgSTQtN3fbqTAoUOHPrN79+7vdbOG/Z+qyKqtxsr3yj56aXOi9HgJidppzsnJyfsmJiYOth54tN2dBnR78e3eABpUqjRatmCUVTRBL1h9eYnaaU5jzJi3rdhzd1rHUIp4l4ic6A3CO8rSetBYa9P2+qWFS0vovBv4S7vjpm6j64HCJhE53htEk1EWvT6QxW8B3gDaHrj0mkEb0/H9+/ffvHfv3u/0BjK4Nw4cOHD/vn379GBRN5oqHUOrjykVpLZHaUD35/V5acPax0A9XtEYVGGl6lDPJ+a9507uvRixy5hbwTSESy/vLWPY+qu60MZ5cddFN+XHcmf5X3t/0Fb8j+O74gH8G0lHhV4uXv6RAAAAAElFTkSuQmCC",yc="https://nplayer.com/assets/img/logo_main.png",Za=[Ct({enabled:!0,key:"p_builtin_iina",label:"IINA",icon:"https://iina.io/images/iina-icon-60.png",memo:"调用IINA播放视频(使用CloudDrive链接)",url:"iina://weblink?url={clouddrive_stream_url:encode}"}),Ct({enabled:!0,key:"p_builtin_vlc",label:"VLC",icon:"https://images.videolan.org/images/favicon.ico",memo:"调用VLC播放视频(使用CloudDrive链接)",extraMemo:'<a href="https://github.com/stefansundin/vlc-protocol" target="_blank" rel="noreferer">安装VLC协议</a>',url:"vlc://{clouddrive_stream_url}"}),Ct({enabled:!0,key:"p_builtin_mpv",label:"MPV",icon:"https://mpv.io/images/mpv-logo-128-0baae5aa.png",memo:"调用MPV播放视频(使用CloudDrive链接)",extraMemo:'<a href="https://github.com/akiirui/mpv-handler/blob/main/README.zh-Hans.md" target="_blank" rel="noreferer">安装MPV协议</a>',url:"mpv://{clouddrive_stream_url}"}),Ct({enabled:!0,key:"p_builtin_potplayer",label:"PotPlayer",icon:"https://t1.daumcdn.net/potplayer/main/img/favicon.ico",memo:"调用PotPlayer播放视频(使用CloudDrive链接)",url:"potplayer://{clouddrive_stream_url}"}),Ct({enabled:!0,key:"p_builtin_infuse",label:"Infuse",icon:qb,memo:"调用Infuse播放视频(使用CloudDrive链接)",url:"infuse://x-callback-url/play?url={clouddrive_stream_url:encode}"}),Ct({enabled:!1,key:"p_builtin_nplayer_mac",label:"nPlayer-mac",icon:yc,memo:"调用nPlayer(mac版)播放视频(使用CloudDrive链接)",url:"nplayer-mac://weblink?url={clouddrive_stream_url:encode}&new_window=1"}),Ct({enabled:!1,key:"p_builtin_nplayer_win",label:"nPlayer-win",icon:yc,memo:"调用nPlayer(非mac版)播放视频(使用CloudDrive链接)",url:"nplayer-{clouddrive_stream_url:encode}"}),Ct({enabled:!0,key:"p_builtin_online",label:"在线播放",icon:"https://115.com/favicon.ico",memo:"115官方在线播放(转码)",url:"https://v.anxia.com/?pickcode={pick_code}&share_id=0"})],el=[Ct({enabled:!0,key:"s_builtin_115_pure_name",label:"115-不含后缀",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀)",url:"{pure_name:search}"}),Ct({enabled:!1,key:"s_builtin_115_full_name",label:"115-完整名称",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(完整文件名)",url:"{full_name:search}"}),Ct({enabled:!0,key:"s_builtin_115_sha",label:"115-sha1",icon:"https://115.com/favicon.ico",memo:"使用115搜索sha1相同的文件(仅适用于文件)",url:"{file_hash:search}"}),Ct({enabled:!0,key:"s_builtin_google_pure_name",label:"Google-不含后缀",icon:"https://www.google.com/favicon.ico",memo:"使用Google搜索文件名(不含后缀)",url:"https://www.google.com/search?q={pure_name:encode}"}),Ct({enabled:!1,key:"s_builtin_google_full_name",label:"Google-完整名称",icon:"https://www.google.com/favicon.ico",memo:"使用Google搜索文件名(完整文件名)",url:"https://www.google.com/search?q={full_name:encode}"}),Ct({enabled:!0,key:"s_builtin_bing_pure_name",label:"Bing-不含后缀",icon:gc,memo:"使用Bing搜索文件名(不含后缀)",url:"https://cn.bing.com/search?q={pure_name:encode}"}),Ct({enabled:!1,key:"s_builtin_bing_full_name",label:"Bing-完整名称",icon:gc,memo:"使用Bing搜索文件名(完整文件名)",url:"https://cn.bing.com/search?q={full_name:encode}"}),Ct({enabled:!0,key:"s_builtin_115_pure_name_manual",label:"115-不含后缀-手动",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀),手动编辑后搜索",url:"{pure_name:manual:search}"})];async function Lf(e){if(!vs()||!e.enableInSearch)return;const t=await ft("#js_data_list"),n=[{label:"移动",body:'<a href="javascript:;" menu="move" style=""><i class="icon-operate ifo-move" menu="move"></i><span menu="move">移动</span></a>',enabled:!0},{label:"重命名",body:'<a href="javascript:;" menu="edit_name" style=""><i class="icon-operate ifo-rename" menu="edit_name"></i><span menu="edit_name">重命名</span></a>',enabled:!0},{label:"删除",body:'<a href="javascript:;" menu="delete" style=""><i class="icon-operate ifo-remove" menu="delete"></i><span menu="delete">删除</span></a>',enabled:!0},{label:"属性",body:'<a href="javascript:;" menu="attribute" style=""><i class="icon-operate ifo-property" menu="attribute"></i><span menu="attribute">属性</span></a>',enabled:!0}],s=r=>{let a="";for(const l of r)l.enabled&&(a+=l.body);return a},i=()=>{const r="ce-menu-init",a=document.querySelectorAll(`li[rel="item"]:not(.${r})`),l=s(n);for(let u=0;u<a.length;u++){const d=a[u];if(d.querySelector(".file-opr"))continue;const h=document.createElement("div");h.className="file-opr",h.setAttribute("rel","menu"),h.innerHTML=l,d.classList.add(r),d.appendChild(h);}};i(),new MutationObserver(async([r])=>{r.type==="childList"&&i();}).observe(t,{childList:!0});}async function Vb(e){if(!e.hideSelectionMenuLabel)return;const t=await ft("#js_operate_box");new MutationObserver(async([s])=>{if(s.type==="childList"){const i=t.querySelectorAll("li[menu]");for(let o=0;o<i.length;o++){const r=i[o],a=r.textContent;r.setAttribute("title",a||"");}}}).observe(t,{childList:!0}),t.classList.add("only-icon");}async function Wb(e,t){const n=[],s=await yn(),i=s.keyToTriggerManual;for(const o of t){const r=Sr(e,{key:`_ce_s_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(a,l)=>{l.stopPropagation(),l.preventDefault();try{let u;if(i){const b=l;(i===Mn.alt&&b.altKey||i===Mn.ctrl&&b.ctrlKey||i===Mn.shift&&b.shiftKey||i===Mn.meta&&b.metaKey)&&(u={names:[Yl.manual],position:s.injectManualFuncPosition});}const d=$(l.target).closest("li"),h=await An(d),g=await So(),v=await ii(h,o,g,u);if(console.log("[search url]",v),!v)throw new Error("无法获取有效的搜索链接!");Ew(v,{active:!o.openInBackground});}catch(u){console.error(u),re({title:"搜索失败",text:u.toString(),icon:"error"});}}});n.push(r);}return n}async function Df(e,t){if(console.log("[playDirOnAnxia]",e,t),!t)try{re({title:"正在查找可播放的文件...",text:"请稍等...",icon:"info"}),me.showLoading(),t=await Db(e),console.log("[playDirOnAnxia] file",t);}catch(s){console.error(s),re({title:"播放失败",text:s.toString(),icon:"error"});return}t||re({title:"播放失败",text:"没有在该目录下找到可播放的文件![file_null]",icon:"error"});const n=xf(t.pickCode);window.open(n,"_blank","noopener noreferrer");}async function Bf(e,t,n,s){s.stopPropagation(),s.preventDefault();const i=t.keyToTriggerManual;try{let o;if(i){const d=s;(i===Mn.alt&&d.altKey||i===Mn.ctrl&&d.ctrlKey||i===Mn.shift&&d.shiftKey||i===Mn.meta&&d.metaKey)&&(o={names:[Yl.manual],position:t.injectManualFuncPosition});}const r=$(s.target).closest("li"),a=await An(r),l=await So(),u=await ii(a,e,l,o);if(a.isDir&&u.includes("v.anxia.com")){Df(a.id);return}if(console.log("[play url]",u),!u)throw new Error("无法获取有效的播放链接!");window.open(u,"_blank","noopener noreferrer");}catch(o){console.error(o),re({title:"播放失败",text:o.toString(),icon:"error"});}}async function Jl(e){const t="_p_null_",n=await Mf(),s=n.filter(l=>l.enabled),i=[...s,...(await Mr(Us.play)).filter(l=>l.enabled)],o=(l,u)=>l.find(d=>d.key===u);let r=o(s,e.defaultPlayer||"p_builtin_online");r||(r=o(n,"p_builtin_online")),r||(console.warn("[play with dropdown] default player not found"),r=Ct({key:t,url:"#",label:"播放",memo:"播放菜单数据异常!",enabled:!0})),r={...r},r.key==="p_builtin_online"&&(r.label="播放");const a=i.findIndex(l=>l.key===r.key);return a>-1&&i.splice(a,1),{keyNull:t,noRealDefault:r.key===t,defaultPlayer:r,customUrlItems:i}}async function Kb(e,t){const n=[],s=await yn();for(const i of t){const o=Sr(e,{key:`_ce_p_${i.key}`,label:i.label,icon:i.icon,title:i.memo,onClick:async(r,a)=>{Bf(i,s,r,a);}});n.push(o);}return n}var rn=(e=>(e[e.full=0]="full",e[e.pure=1]="pure",e[e.fullUnique=2]="fullUnique",e[e.pureUnique=3]="pureUnique",e))(rn||{});async function Tr(e,t){if(t===0)return e;if(t===2)return Array.from(new Set(e));const n=[];for(const s of e){const i=s.replace(/\.[^.]+$/,"");t===1?n.push(i):t===3&&(n.includes(i)||n.push(i));}return n}var an=(e=>(e[e.unixPath=0]="unixPath",e[e.winPath=1]="winPath",e[e.unixParentPath=2]="unixParentPath",e[e.winParentPath=3]="winParentPath",e))(an||{});async function Or(e,t,n){const s=n===1||n===3;let o=n===2||n===3?t.replace(/\/[^/]+$/,""):t;return o.startsWith("/")||(o="/"+o),s&&(o=o.replace(/\//g,"\\")),o}async function Gb(e){return async(t,n)=>{const s=await zt(),r=(await _i())[0].querySelectorAll("li[file_id].selected");if(!r.length){re({title:"文件移动到同名目录",text:"当前目录没有选中文件",icon:"warning"});return}let a=`当前已选中${r.length}个文件,是否继续?`;a+=`<br><div style="text-align:left">
      <b>处理逻辑:</b>
      <p>0.「同名目录」取自纯文件名(不带后缀名)。</p>
      <p>1.如果同名目录已存在,会直接使用已存在的目录。</p>
      <p>2.同名目录相同的文件,会被移动到同一个目录里面。</p>
      <p class="text-primary">示例: <span>movie.mp4</span> 的同名目录为 <span>movie</span></p>
      </div>`;const{value:l}=await me.fire({title:"文件移动到同名目录",html:a,icon:"warning",showCancelButton:!0,confirmButtonText:"继续",cancelButtonText:"取消"});if(l){me.fire({title:"文件移动到同名目录",html:"正在处理...",didOpen:()=>{me.showLoading();}});for(let u=0;u<r.length;u++){const d=r[u],h=await An($(d));if(!h.isFile)continue;const g=h.name,v=g.replace(/\.[^\.]+$/,""),b=`${u+1} / ${r.length} - `+Math.round(u/r.length*100)+"%";me.update({html:`${b} 正在为文件「${g}」创建目录「${v}」`});const _=await Pb(v,s,!0);me.update({html:`创建目录「${v}」成功。id=${_}`}),me.update({html:`${b} 正在移动文件「${g}」到目录「${v}」`}),await Ob(_,[h.id]),await ln(500);}me.hideLoading(),me.update({html:"处理完成。刷新列表后查看最新的文件数据。",icon:"success"});}}}function Jb(e,t){const n=[];for(let s=1;s<e.length;s++)n.push(e[s].file_name);return n}async function Rf(e,t){const n=await $b(e),s=[];for(let i=0;i<e.length;i++){const o=n.get(e[i].parentId);if(!o)throw new Error(`无法获取文件 "${e[i].name}" 的上级目录路径!`);const r=Jb(o),a=nr([...r,e[i].name],us.unix);s.push(await Or(e[i],a,t));}return s}async function or(e){let t="";if(e.id==="0")t="/";else {const i=await Ir(e,!0);t=await Or(e,i,e.isDir?0:2);}const n=await So(),s=await Bw(n,t);console.log("url: ",s),window.open(s,"_blank","noopener noreferrer"),re({title:"在CloudDrive2中查看",text:`已打开CloudDrive2链接: ${s}`,icon:"success"});}var ht=(e=>(e.openConfig="openConfig",e.closeConfig="closeConfig",e.basicConfigChange="basicConfigChange",e.listConfigChange="listConfigChange",e.searchConfigChange="searchConfigChange",e.toolsConfigChange="toolsConfigChange",e.listRendered="listRendered",e.shareConfigChange="shareConfigChange",e.topDomChanged="topDomChange",e.officialMenuStyleChange="officialMenuStyleChange",e.renderMenus="renderMenus",e))(ht||{}),Ft=(e=>(e.basic="basic",e.clouddrive="clouddrive",e.list="list",e.search="search",e.menus="menus",e.searchMenus="searchMenus",e.playMenus="playMenus",e.offline="offline",e.tools="tools",e.anxia="anxia",e.share="share",e.about="about",e))(Ft||{});const cn={basic:"基础设置",clouddrive:"CloudDrive",list:"列表增强",search:"搜索增强",menus:"菜单设置",searchMenus:"搜索菜单",playMenus:"播放菜单",offline:"离线管理",tools:"工具",anxia:"在线播放",share:"分享增强",about:"关于"};var Yl=(e=>(e.search="search",e.encode="encode",e.base64="base64",e.base64safe="base64safe",e.upper="upper",e.lower="lower",e.number="number",e.manual="manual",e))(Yl||{});const Yb=[{label:"文件属性变量",items:[{key:"{dir_id}",label:"文件夹ID"},{key:"{file_id}",label:"文件ID"},{key:"{pick_code}",label:"提取码"},{key:"{pure_name}",label:"不含后缀的文件名"},{key:"{full_name}",label:"完整名称"},{key:"{file_suffix}",label:"文件后缀名"},{key:"{file_hash}",label:"文件hash"},{key:"{file_size}",label:"文件大小"},{key:"{file_path}",label:"文件路径"},{key:"{file_dir}",label:"文件目录路径"}]},{label:"高级变量",items:[{key:"{clouddrive_stream_url}",label:"CloudDrive链接(用于播放,目录链接是m3u)"},{key:"{clouddrive_down_url}",label:"CloudDrive文件链接"},{key:"{clouddrive_playlist_url}",label:"CloudDrive播放列表链接"},{key:"{user_agent}",label:"浏览器UA"}]},{label:"变量函数处理",memo:"支持多个函数,函数之间使用英文冒号分隔,如:{变量名:encode:base64}。调用顺序从左到右。",items:[{key:"{变量名:search}",label:"搜索链接"},{key:"{变量名:encode}",label:"url编码"},{key:"{变量名:base64}",label:"base64编码"},{key:"{变量名:base64safe}",label:"base64安全编码"},{key:"{变量名:upper}",label:"转大写"},{key:"{变量名:lower}",label:"转小写"},{key:"{变量名:number}",label:"转数字"},{key:"{变量名:manual}",label:"手动输入"}]}];function Qb(e,t,n){const{names:s,position:i}=t;let o=[];return i==="first"?o=[...s,...e]:o=[...e,...s],n?Array.from(new Set(o)):o}async function ii(e,t,n,s){var u;let i=t.url;const o={dir_id:"id",file_id:"id",pick_code:"pickCode",full_name:"name",file_suffix:"suffix",file_hash:"hash",file_size:"sizeBytes"},r=e.isFile,a=/{(\w+)(:\w+(:\w+)?)?}/g,l=i.match(a);if(l){const d=["file_path","file_dir","clouddrive_stream_url","clouddrive_down_url","clouddrive_playlist_url"];for(const h of l){const g=h.replace(/[{}]/g,"").split(":")[0],v=h.replace(/[{}]/g,"").replace(/^[^:]+:/,"");let b=((u=e[o[g]])==null?void 0:u.toString())||"",_="";switch(d.includes(g)&&(_=await Ir(e)),g){case"pure_name":r?b=e.name.replace(/\.[^.]+$/,""):b=e.name;break;case"file_path":b=_;break;case"file_dir":b=_.replace(/\/[^/]+$/,"");break;case"clouddrive_stream_url":r?b=await wo(n,_,ps.download):b=await Ga(n,_);break;case"clouddrive_down_url":b=await wo(n,_,ps.download);break;case"clouddrive_playlist_url":let B="";r?B=_.replace(/\/[^/]+$/,""):B=_,b=await Ga(n,B);break;case"user_agent":b=navigator.userAgent;break}if(b=b.toString(),v){let B=v.split(":");s&&(B=Qb(B,s,!1)),console.log(`[buildCustomUrl] functions: ${v}, after merge: ${B.join(":")}`);for(const L of B)switch(L){case"search":b=Kl({search_value:b});break;case"encode":b=encodeURIComponent(b);break;case"base64":b=dc(b);break;case"base64safe":b=dc(b,!0);break;case"upper":b=b.toUpperCase();break;case"lower":b=b.toLowerCase();break;case"number":b=b.replace(/\D/g,"");break;case"manual":b=await Xb(b);break}}i=i.replace(h,b);}}return t.mutation?await Zb(i,e,t,n):i}async function Xb(e){let{isConfirmed:t,value:n}=await me.fire({title:"手动输入",text:"按下「Ctrl + 回车」或「Command + 回车」确认",input:"textarea",inputValue:e,showCancelButton:!0,inputValidator:s=>s?null:"输入不能为空!",didOpen:s=>{Vw(s),Gw(s);}});if(!t)throw new Error("已取消手动输入。");if(n=(n==null?void 0:n.trim())||"",n==="")throw new Error("输入不能为空!");return e=n,e}async function Zb(e,t,n,s){return await new Function("payload",n.mutation)({url:e,file:t,customUrl:n,cloudDriveConfig:s})}var Us=(e=>(e.search="search",e.play="play",e))(Us||{});const ev=yt.menuCustomUrlsForSearch,tv=yt.menuCustomUrlsForPlay,Nf={search:ev,play:tv};async function Mr(e){return await lt.get(Nf[e],[])}async function Ff(e,t){await lt.set(Nf[e],t);}function Ct(e){return {enabled:!0,key:"",label:"",icon:"",memo:"",extraMemo:"",url:"",openInBackground:!1,...e}}var Mn=(e=>(e.none="none",e.alt="alt",e.ctrl="ctrl",e.shift="shift",e.meta="meta",e))(Mn||{});const Uf=yt.menu;function nv(e){return {enabled:!0,openInNewTab:!0,search:!0,play:!0,getDownloadUrl:!0,copyNames:!0,exportList:!1,viewInCloudDrive:!0,...e}}function sv(e){return {enabled:!0,copyNames:!0,viewInCloudDrive:!0,...e}}function ov(e){return {enabled:!0,moveToSelfNameDir:!0,copyNames:!0,play:!0,...e}}function iv(e){return {enabled:!0,rename:!0,delete:!0,play:!0,copyNames:!0,move:!0,copy:!0,copyTo:!0,viewProp:!0,showSubFolderSize:!0,exportList:!1,viewInCloudDrive:!0,topLevelMenus:["rename","delete","play"],...e}}function rv(e){return {enabled:!0,hideSelectionMenuLabel:!1,enableInSearch:!0,manageOfficialMenus:!1,keyToTriggerManual:"none",injectManualFuncPosition:"first",m3u8TempDir:".ce-m3u8-temp",defaultPlayer:"p_builtin_online",[qe.listItemHover]:nv(void 0),[qe.listItemContext]:sv(void 0),[qe.selection]:ov(void 0),[qe.dirContext]:iv(void 0),...e}}async function yn(){const e=rv(),t=await lt.get(Uf,e);return Vl(e,t)}async function jf(e){await lt.set(Uf,e);}const xr=class xr{constructor(t){Ce(this,"menuType",qe.listItemHover);Ce(this,"injectDecider");Ce(this,"keyAttributeName","id");Ce(this,"key","");Ce(this,"label","");Ce(this,"icon","");Ce(this,"showIcon",!0);Ce(this,"title","");Ce(this,"onClick",async(t,n)=>{});Ce(this,"onMouseOver");Ce(this,"onMouseOut");Ce(this,"subItems",[]);Ce(this,"isDivider",!1);Ce(this,"menuItemTemplates",{[qe.dirContext]:{body:`<li id="{key}" class="ce-menu dir-context-menu">
        <a href="javascript:;">{icon}<span>{label}</span></a>
      </li>`,bodyForMulti:`<li id="{key}" class="ce-menu ce-menu-parent dir-context-menu">
        {icon}<span class="ce-menu-trigger">{label}</span>
        <div class="ce-menu-dropdown sub-items"></div>
        </span>`,divider:'<li class="ce-menu-divider"></li>'},[qe.dirContextSub]:{body:`<span id="{key}" class="ce-menu dir-context-menu-sub sub-item">
        {icon}<span>{label}</span>
      </span>`,divider:'<span class="ce-menu-divider"></span>'},[qe.listItemContext]:{body:`<li id="{key}" class="ce-menu list-item-context-menu">
        <a href="javascript:;">{icon}<span>{label}</span></a>
      </li>`,bodyForMulti:`<li id="{key}" class="ce-menu ce-menu-parent list-item-context-menu">
        {icon}<span class="ce-menu-trigger">{label}</span>
        <div class="ce-menu-dropdown sub-items"></div>
        </span>`,divider:'<li class="ce-menu-divider"></li>'},[qe.listItemContextSub]:{body:'<span id="{key}" class="ce-menu list-item-context-menu-sub sub-item">{label}</span>',divider:'<span class="ce-menu-divider"></span>'},[qe.listItemHover]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu" style="">
        {icon}<span>{label}</span>
      </a>`,bodyForMulti:`<span class="ce-menu ce-menu-parent list-item-hover-menu">
        {icon}<span class="ce-menu-trigger">{label}</span>
        <div class="ce-menu-dropdown sub-items"></div>
        </span>`,divider:'<a class="ce-menu-divider"></a>'},[qe.listItemHoverSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu-sub" style="">
        {icon}<span>{label}</span>
      </a>`,divider:'<a class="ce-menu-divider"></a>'},[qe.selection]:{body:'<li id="{key}" class="ce-menu selection-menu">{icon}<span>{label}</span></li>',bodyForMulti:`<li class="ce-menu ce-menu-parent selection-menu">
        {icon}<span class="ce-menu-trigger">{label}</span>
        <div class="ce-menu-dropdown sub-items"></div>
        </li>`,divider:'<li class="ce-menu-divider"></li>'},[qe.selectionSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu selection-menu-sub" style="">
        {icon}<span>{label}</span>
      </a>`,divider:'<a class="ce-menu-divider"></a>'}});t.menuType&&(this.menuType=t.menuType),t.injectDecider&&(this.injectDecider=t.injectDecider),t.isDivider&&(this.isDivider=!0),t.key&&(this.key=t.key),t.label&&(this.label=t.label),t.icon&&(this.icon=t.icon),t.showIcon!==void 0&&(this.showIcon=t.showIcon),t.title&&(this.title=t.title),t.onClick&&(this.onClick=t.onClick),t.onMouseOver&&(this.onMouseOver=t.onMouseOver),t.onMouseOut&&(this.onMouseOut=t.onMouseOut),t.subItems&&(this.subItems=t.subItems),t.key&&(this.key=t.key),t.label&&(this.label=t.label),t.onClick&&(this.onClick=t.onClick);}async decideInject(t){return this.injectDecider?await this.injectDecider(this,t):!0}async render(){if(!this.menuType)throw new Error("未指定菜单类型");const t=this.menuItemTemplates[this.menuType];if(!t)throw new Error(`未找到菜单模板:${this.menuType}`);if(this.isDivider){if(!t.divider)throw new Error("未定义模版的divider内容!");const r=document.createElement("div");return r.innerHTML=t.divider,r.firstElementChild}let n=t.body;if(this.subItems.length>0){if(!t.bodyForMulti)throw new Error("未找到 bodyFormMulti 模版");n=t.bodyForMulti;}const s=document.createElement("div");let i="";this.icon&&this.showIcon&&(this.icon.match(/^(http|https|data:image)/)?i=`<img class="ce-menu-icon" src="${this.icon}" referrerpolicy="no-referrer" />`:this.icon.match(/^data-text:/)?i=`<i class="ce-menu-icon">${this.icon.replace(/^data-text:/,"")}</i>`:i=`<i class="ce-menu-icon ${this.icon}"></i>`),s.innerHTML=n.replace(/{key}/g,this.key).replace(/{label}/g,this.label).replace(/{icon}/g,i);const o=s.firstElementChild;if(o.setAttribute("title",this.title||""),this.onClick&&(o.addEventListener("click",async r=>{this.onClick(this,r);}),o.addEventListener("mousedown",r=>{r.stopPropagation();})),this.onMouseOver&&o.addEventListener("mouseover",async r=>{this.onMouseOver&&this.onMouseOver(this,r);}),this.onMouseOut&&o.addEventListener("mouseout",async r=>{this.onMouseOut&&this.onMouseOut(this,r);}),this.subItems.length>0){const r=o.querySelector(".sub-items"),a=[];for(const l of this.subItems){const u=await l.render();a.push(u);}r==null||r.append(...a);}return o}async closeMenu(){unsafeWindow.Core.FileMenu.HideRight(),document.dispatchEvent(new CustomEvent(xr.EVENT_CLOSE_MENU,{detail:{menu:this}}));}async decorateContainer(t){t.setAttribute("ce-done","");}};Ce(xr,"EVENT_CLOSE_MENU","__closeMenu");let Sn=xr;async function Lr(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,s=$(n).closest(".ce-menu-parent"),i=s.find(".ce-menu-dropdown");s.addClass("ce-menu-dropdown-opened"),i.addClass("ce-menu-dropdown-active");}async function Dr(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,s=$(n).closest(".ce-menu-parent"),i=s.find(".ce-menu-dropdown");s.removeClass("ce-menu-dropdown-opened"),i.removeClass("ce-menu-dropdown-active");}class en extends Sn{constructor(n){super(n);Ce(this,"menuType",qe.dirContext);this.onMouseOver=Lr,this.onMouseOut=Dr;}}class av extends Sn{constructor(){super(...arguments);Ce(this,"menuType",qe.dirContextSub);}}class Br extends Sn{constructor(n){super(n);Ce(this,"menuType",qe.listItemContext);this.onMouseOver=Lr,this.onMouseOut=Dr;}}class Rr extends Sn{constructor(n){super(n);Ce(this,"menuType",qe.listItemHover);this.onMouseOver=Lr,this.onMouseOut=Dr;}}class Ao extends Sn{constructor(){super(...arguments);Ce(this,"menuType",qe.listItemHoverSub);}}class Ql extends Sn{constructor(n){super(n);Ce(this,"menuType",qe.selection);this.onMouseOver=Lr,this.onMouseOut=Dr;}}class ri extends Sn{constructor(){super(...arguments);Ce(this,"menuType",qe.selectionSub);}}class Nr extends Sn{constructor(){super(...arguments);Ce(this,"isDivider",!0);}}class lv extends Nr{}class wc extends Nr{}class bc extends Nr{}class tl extends Nr{}class Fr{constructor(t){Ce(this,"items");Ce(this,"siblingSelector");Ce(this,"position");Ce(this,"useObserver",!0);Ce(this,"observeTarget",document.body);Ce(this,"disposeObserverAfterInjection",!0);Ce(this,"menuType");Ce(this,"_observer");Ce(this,"injectDecider");t.menuType&&(this.menuType=t.menuType),t.injectDecider&&(this.injectDecider=t.injectDecider),this.items=t.items,this.siblingSelector=t.siblingSelector,this.position=t.position,this.useObserver=t.useObserver,this.observeTarget=t.observeTarget,this.disposeObserverAfterInjection=t.disposeObserverAfterInjection,this.handleMessage();}async createObserver(){return new MutationObserver(async([n])=>{n.type==="childList"&&await this.handleChildListMutation(n);})}handleMessage(){window.addEventListener("message",async t=>{const{event:n,body:s={}}=t.data;if(n===ht.renderMenus&&s.type===this.menuType){const i=[];document.querySelectorAll("#js_data_list .list-contents > ul > li .file-opr:not([ce-done])").forEach(o=>{i.push(o);}),i.length&&await this.perform(i);}},!1);}async observe(){if(this._observer=await this.createObserver(),!this._observer)return;const t=await this.getObserveTarget();t&&this.startObserver(t);}async startObserver(t){this._observer&&this._observer.observe(t,{childList:!0});}async disposeObserver(){this.disposeObserverAfterInjection&&this._observer&&this._observer.disconnect();}async getObserveTarget(){return typeof this.observeTarget=="string"?await ft(this.observeTarget,800,864e5*7):this.observeTarget}async isMutationMatch(t){const n=t.addedNodes[0];if(n&&n.nodeType!==Node.ELEMENT_NODE)return !1;switch(this.menuType,qe.dirContext,this.menuType){case qe.listItemHover:return !0;case qe.listItemContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="report"]');case qe.selection:return !0;case qe.dirContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="upload"]');default:return !1}}async handleChildListMutation(t){if(!await this.isMutationMatch(t))return;const n=await this.getContainersByMutation(t);await this.perform(n);}async perform(t){for(const n of t)await this.injectToContainer(n);}async getSibling(t){return t.querySelector(this.siblingSelector)}async getContainersByMutation(t){const n=t.addedNodes[0];return await this.getContainersByElement(n)}async getContainersByElement(t){let n=[];switch(this.menuType){case qe.listItemHover:document.querySelectorAll("#js_data_list .list-contents > ul:not([ce-done]) > li .file-opr").forEach(s=>{n.push(s);});break;case qe.listItemContext:n=[t];break;case qe.selection:document.querySelectorAll("#js_top_panel_box #js_operate_box").forEach(s=>{n.push(s);});break;case qe.dirContext:n=[t];break}return n}async shouldInjectMenuItem(t,n){return await n.decideInject(t)?await this.decideInject(n,t):!1}async decideInject(t,n){return this.injectDecider?await this.injectDecider(t,n):!0}async injectToContainer(t){const n=await this.getSibling(t);if(!n)return;let s=this.items.slice();this.position===Ns.after&&(s=s.reverse());for(let i=0;i<s.length;i++){const o=s[i];if(!await this.shouldInjectMenuItem(t,o))continue;const r=await o.render();this.position===Ns.before?n.insertAdjacentElement("beforebegin",r):n.insertAdjacentElement("afterend",r),await o.decorateContainer(t);}}async isFileContainer(t){return !!t.getAttribute("file_id")}async isDirContainer(t){return !!t.getAttribute("cate_id")}async inject(){if(this.menuType)if(this.useObserver)await this.observe();else {const t=await this.getObserveTarget();if(!t)return;await this.injectToContainer(t);}}}class uv extends Fr{constructor(){super(...arguments);Ce(this,"menuType",qe.dirContext);Ce(this,"useObserver",!0);Ce(this,"observeTarget",document.body);Ce(this,"disposeObserverAfterInjection",!0);}}class cv extends Fr{constructor(){super(...arguments);Ce(this,"menuType",qe.listItemContext);}}class dv extends Fr{constructor(n){super(n);Ce(this,"menuType",qe.listItemHover);Ce(this,"useObserver",!0);Ce(this,"observeTarget","#js_data_list");Ce(this,"disposeObserverAfterInjection",!1);this.handleLoadAll();}async inject(){const n=document.querySelector("#js_data_list");if(n){const s=n.querySelectorAll(".list-contents > ul:not([ce-done]) > li .file-opr");s.length&&await this.perform(Array.from(s));}super.inject();}async handleLoadAll(){if(window.top===window.self)return;const n=document.querySelector("#js_pagination_box");if(!n){console.warn("[ListItemHoverMenuInjector.handleLoadAll] 未找到「#js_pagination_box」元素");return}function s(i){const o=document.querySelector("#js_data_list .list-contents > ul > li");o&&(o.querySelector(".ce-menu")||i(!0));}n.addEventListener("click",async i=>{i.preventDefault(),i.stopPropagation();const o=i.target;let r=!1;if((o.getAttribute("menu")==="load_all_file"||o.closest('[menu="load_all_file"]'))&&(r=!0),!r)return;console.log("[ListItemHoverMenuInjector.handleLoadAll] 点击了「加载全部」按钮"),await ws(s,500,3e5);const a=document.querySelector("#js_data_list .list-contents > ul");a==null||a.removeAttribute("ce-done");const l=document.querySelector("#js_data_list");if(l){const u=".list-contents > ul:not([ce-done]) > li .file-opr";if(!document.querySelector(u)){const h=await yn();await Lf(h);}const d=l.querySelectorAll(u);d.length&&await this.perform(Array.from(d));}});}async perform(n){await super.perform(n);const s=document.querySelector("#js_data_list .list-contents > ul");s==null||s.setAttribute("ce-done","");}}class fv extends Fr{constructor(){super(...arguments);Ce(this,"menuType",qe.selection);Ce(this,"useObserver",!0);Ce(this,"observeTarget","#js_top_panel_box #js_operate_box");Ce(this,"disposeObserverAfterInjection",!1);}}async function pv(e,t){return !!$(t).closest("li").attr("cate_id")}async function hv(e,t){const n=$(t).closest("li");if(n.attr("cate_id")||n.attr("iv")==="1")return !0;const s=n.attr("ico");return s?ib(s)||ab(s)||rb(s):!1}/**
  * @vue/shared v3.5.12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **//*! #__NO_SIDE_EFFECTS__ */function Xl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const rt={},ao=[],Bn=()=>{},mv=()=>!1,Ur=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zl=e=>e.startsWith("onUpdate:"),St=Object.assign,eu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1);},gv=Object.prototype.hasOwnProperty,tt=(e,t)=>gv.call(e,t),Me=Array.isArray,lo=e=>xi(e)==="[object Map]",Po=e=>xi(e)==="[object Set]",vc=e=>xi(e)==="[object Date]",Ue=e=>typeof e=="function",gt=e=>typeof e=="string",En=e=>typeof e=="symbol",at=e=>e!==null&&typeof e=="object",tu=e=>(at(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),Hf=Object.prototype.toString,xi=e=>Hf.call(e),yv=e=>xi(e).slice(8,-1),zf=e=>xi(e)==="[object Object]",nu=e=>gt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Go=Xl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},wv=/-(\w)/g,wn=jr(e=>e.replace(wv,(t,n)=>n?n.toUpperCase():"")),bv=/\B([A-Z])/g,_s=jr(e=>e.replace(bv,"-$1").toLowerCase()),Hr=jr(e=>e.charAt(0).toUpperCase()+e.slice(1)),$a=jr(e=>e?`on${Hr(e)}`:""),cs=(e,t)=>!Object.is(e,t),Vi=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t);},qf=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n});},ir=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vv=e=>{const t=gt(e)?Number(e):NaN;return isNaN(t)?e:t};let _c;const zr=()=>_c||(_c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Rn(e){if(Me(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=gt(s)?kv(s):Rn(s);if(i)for(const o in i)t[o]=i[o];}return t}else if(gt(e)||at(e))return e}const _v=/;(?![^(]*\))/g,xv=/:([^]+)/,Cv=/\/\*[^]*?\*\//g;function kv(e){const t={};return e.replace(Cv,"").split(_v).forEach(n=>{if(n){const s=n.split(xv);s.length>1&&(t[s[0].trim()]=s[1].trim());}}),t}function ze(e){let t="";if(gt(e))t=e;else if(Me(e))for(let n=0;n<e.length;n++){const s=ze(e[n]);s&&(t+=s+" ");}else if(at(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function $v(e){if(!e)return null;let{class:t,style:n}=e;return t&&!gt(t)&&(e.class=ze(t)),n&&(e.style=Rn(n)),e}const Sv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ev=Xl(Sv);function Vf(e){return !!e||e===""}function Av(e,t){if(e.length!==t.length)return !1;let n=!0;for(let s=0;n&&s<e.length;s++)n=js(e[s],t[s]);return n}function js(e,t){if(e===t)return !0;let n=vc(e),s=vc(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=En(e),s=En(t),n||s)return e===t;if(n=Me(e),s=Me(t),n||s)return n&&s?Av(e,t):!1;if(n=at(e),s=at(t),n||s){if(!n||!s)return !1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return !1;for(const r in e){const a=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(a&&!l||!a&&l||!js(e[r],t[r]))return !1}}return String(e)===String(t)}function su(e,t){return e.findIndex(n=>js(n,t))}const Wf=e=>!!(e&&e.__v_isRef===!0),Y=e=>gt(e)?e:e==null?"":Me(e)||at(e)&&(e.toString===Hf||!Ue(e.toString))?Wf(e)?Y(e.value):JSON.stringify(e,Kf,2):String(e),Kf=(e,t)=>Wf(t)?Kf(e,t.value):lo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[Sa(s,o)+" =>"]=i,n),{})}:Po(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Sa(n))}:En(t)?Sa(t):at(t)&&!Me(t)&&!zf(t)?String(t):t,Sa=(e,t="")=>{var n;return En(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
  * @vue/reactivity v3.5.12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/let sn;class Pv{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=sn,!t&&sn&&(this.index=(sn.scopes||(sn.scopes=[])).push(this)-1);}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause();}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume();}}run(t){if(this._active){const n=sn;try{return sn=this,t()}finally{sn=n;}}}on(){sn=this;}off(){sn=this.parent;}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index);}this.parent=void 0,this._active=!1;}}}function Iv(){return sn}let dt;const Ea=new WeakSet;class Gf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,sn&&sn.active&&sn.effects.push(this);}pause(){this.flags|=64;}resume(){this.flags&64&&(this.flags&=-65,Ea.has(this)&&(Ea.delete(this),this.trigger()));}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Yf(this);}run(){if(!(this.flags&1))return this.fn();this.flags|=2,xc(this),Qf(this);const t=dt,n=$n;dt=this,$n=!0;try{return this.fn()}finally{Xf(this),dt=t,$n=n,this.flags&=-3;}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ru(t);this.deps=this.depsTail=void 0,xc(this),this.onStop&&this.onStop(),this.flags&=-2;}}trigger(){this.flags&64?Ea.add(this):this.scheduler?this.scheduler():this.runIfDirty();}runIfDirty(){nl(this)&&this.run();}get dirty(){return nl(this)}}let Jf=0,Jo,Yo;function Yf(e,t=!1){if(e.flags|=8,t){e.next=Yo,Yo=e;return}e.next=Jo,Jo=e;}function ou(){Jf++;}function iu(){if(--Jf>0)return;if(Yo){let t=Yo;for(Yo=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n;}}let e;for(;Jo;){let t=Jo;for(Jo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger();}catch(s){e||(e=s);}t=n;}}if(e)throw e}function Qf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t;}function Xf(e){let t,n=e.depsTail,s=n;for(;s;){const i=s.prevDep;s.version===-1?(s===n&&(n=i),ru(s),Tv(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=i;}e.deps=t,e.depsTail=n;}function nl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zf(t.dep.computed)||t.dep.version!==t.version))return !0;return !!e._dirty}function Zf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ai))return;e.globalVersion=ai;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!nl(e)){e.flags&=-3;return}const n=dt,s=$n;dt=e,$n=!0;try{Qf(e);const i=e.fn(e._value);(t.version===0||cs(i,e._value))&&(e._value=i,t.version++);}catch(i){throw t.version++,i}finally{dt=n,$n=s,Xf(e),e.flags&=-3;}}function ru(e,t=!1){const{dep:n,prevSub:s,nextSub:i}=e;if(s&&(s.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)ru(o,!0);}!t&&!--n.sc&&n.map&&n.map.delete(n.key);}function Tv(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0);}let $n=!0;const ep=[];function xs(){ep.push($n),$n=!1;}function Cs(){const e=ep.pop();$n=e===void 0?!0:e;}function xc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=dt;dt=void 0;try{t();}finally{dt=n;}}}let ai=0;class Ov{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0;}}class au{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0;}track(t){if(!dt||!$n||dt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==dt)n=this.activeLink=new Ov(dt,this),dt.deps?(n.prevDep=dt.depsTail,dt.depsTail.nextDep=n,dt.depsTail=n):dt.deps=dt.depsTail=n,tp(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=dt.depsTail,n.nextDep=void 0,dt.depsTail.nextDep=n,dt.depsTail=n,dt.deps===n&&(dt.deps=s);}return n}trigger(t){this.version++,ai++,this.notify(t);}notify(t){ou();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify();}finally{iu();}}}function tp(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)tp(s);}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e;}}const rr=new WeakMap,Bs=Symbol(""),sl=Symbol(""),li=Symbol("");function Mt(e,t,n){if($n&&dt){let s=rr.get(e);s||rr.set(e,s=new Map);let i=s.get(n);i||(s.set(n,i=new au),i.map=s,i.key=n),i.track();}}function Kn(e,t,n,s,i,o){const r=rr.get(e);if(!r){ai++;return}const a=l=>{l&&l.trigger();};if(ou(),t==="clear")r.forEach(a);else {const l=Me(e),u=l&&nu(n);if(l&&n==="length"){const d=Number(s);r.forEach((h,g)=>{(g==="length"||g===li||!En(g)&&g>=d)&&a(h);});}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),u&&a(r.get(li)),t){case"add":l?u&&a(r.get("length")):(a(r.get(Bs)),lo(e)&&a(r.get(sl)));break;case"delete":l||(a(r.get(Bs)),lo(e)&&a(r.get(sl)));break;case"set":lo(e)&&a(r.get(Bs));break}}iu();}function Mv(e,t){const n=rr.get(e);return n&&n.get(t)}function no(e){const t=et(e);return t===e?t:(Mt(t,"iterate",li),hn(e)?t:t.map(Lt))}function qr(e){return Mt(e=et(e),"iterate",li),e}const Lv={__proto__:null,[Symbol.iterator](){return Aa(this,Symbol.iterator,Lt)},concat(...e){return no(this).concat(...e.map(t=>Me(t)?no(t):t))},entries(){return Aa(this,"entries",e=>(e[1]=Lt(e[1]),e))},every(e,t){return Vn(this,"every",e,t,void 0,arguments)},filter(e,t){return Vn(this,"filter",e,t,n=>n.map(Lt),arguments)},find(e,t){return Vn(this,"find",e,t,Lt,arguments)},findIndex(e,t){return Vn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Vn(this,"findLast",e,t,Lt,arguments)},findLastIndex(e,t){return Vn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Vn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Pa(this,"includes",e)},indexOf(...e){return Pa(this,"indexOf",e)},join(e){return no(this).join(e)},lastIndexOf(...e){return Pa(this,"lastIndexOf",e)},map(e,t){return Vn(this,"map",e,t,void 0,arguments)},pop(){return Uo(this,"pop")},push(...e){return Uo(this,"push",e)},reduce(e,...t){return Cc(this,"reduce",e,t)},reduceRight(e,...t){return Cc(this,"reduceRight",e,t)},shift(){return Uo(this,"shift")},some(e,t){return Vn(this,"some",e,t,void 0,arguments)},splice(...e){return Uo(this,"splice",e)},toReversed(){return no(this).toReversed()},toSorted(e){return no(this).toSorted(e)},toSpliced(...e){return no(this).toSpliced(...e)},unshift(...e){return Uo(this,"unshift",e)},values(){return Aa(this,"values",Lt)}};function Aa(e,t,n){const s=qr(e),i=s[t]();return s!==e&&!hn(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const Dv=Array.prototype;function Vn(e,t,n,s,i,o){const r=qr(e),a=r!==e&&!hn(e),l=r[t];if(l!==Dv[t]){const h=l.apply(e,o);return a?Lt(h):h}let u=n;r!==e&&(a?u=function(h,g){return n.call(this,Lt(h),g,e)}:n.length>2&&(u=function(h,g){return n.call(this,h,g,e)}));const d=l.call(r,u,s);return a&&i?i(d):d}function Cc(e,t,n,s){const i=qr(e);let o=n;return i!==e&&(hn(e)?n.length>3&&(o=function(r,a,l){return n.call(this,r,a,l,e)}):o=function(r,a,l){return n.call(this,r,Lt(a),l,e)}),i[t](o,...s)}function Pa(e,t,n){const s=et(e);Mt(s,"iterate",li);const i=s[t](...n);return (i===-1||i===!1)&&cu(n[0])?(n[0]=et(n[0]),s[t](...n)):i}function Uo(e,t,n=[]){xs(),ou();const s=et(e)[t].apply(e,n);return iu(),Cs(),s}const Bv=Xl("__proto__,__v_isRef,__isVue"),np=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(En));function Rv(e){En(e)||(e=String(e));const t=et(this);return Mt(t,"has",e),t.hasOwnProperty(e)}class sp{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n;}get(t,n,s){const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return !i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?Kv:ap:o?rp:ip).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=Me(t);if(!i){let l;if(r&&(l=Lv[n]))return l;if(n==="hasOwnProperty")return Rv}const a=Reflect.get(t,n,$t(t)?t:s);return (En(n)?np.has(n):Bv(n))||(i||Mt(t,"get",n),o)?a:$t(a)?r&&nu(n)?a:a.value:at(a)?i?lp(a):Vr(a):a}}class op extends sp{constructor(t=!1){super(!1,t);}set(t,n,s,i){let o=t[n];if(!this._isShallow){const l=Hs(o);if(!hn(s)&&!Hs(s)&&(o=et(o),s=et(s)),!Me(t)&&$t(o)&&!$t(s))return l?!1:(o.value=s,!0)}const r=Me(t)&&nu(n)?Number(n)<t.length:tt(t,n),a=Reflect.set(t,n,s,$t(t)?t:i);return t===et(i)&&(r?cs(s,o)&&Kn(t,"set",n,s):Kn(t,"add",n,s)),a}deleteProperty(t,n){const s=tt(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&s&&Kn(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return (!En(n)||!np.has(n))&&Mt(t,"has",n),s}ownKeys(t){return Mt(t,"iterate",Me(t)?"length":Bs),Reflect.ownKeys(t)}}class Nv extends sp{constructor(t=!1){super(!0,t);}set(t,n){return !0}deleteProperty(t,n){return !0}}const Fv=new op,Uv=new Nv,jv=new op(!0);const ol=e=>e,Oi=e=>Reflect.getPrototypeOf(e);function Hv(e,t,n){return function(...s){const i=this.__v_raw,o=et(i),r=lo(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,u=i[e](...s),d=n?ol:t?il:Lt;return !t&&Mt(o,"iterate",l?sl:Bs),{next(){const{value:h,done:g}=u.next();return g?{value:h,done:g}:{value:a?[d(h[0]),d(h[1])]:d(h),done:g}},[Symbol.iterator](){return this}}}}function Mi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zv(e,t){const n={get(i){const o=this.__v_raw,r=et(o),a=et(i);e||(cs(i,a)&&Mt(r,"get",i),Mt(r,"get",a));const{has:l}=Oi(r),u=t?ol:e?il:Lt;if(l.call(r,i))return u(o.get(i));if(l.call(r,a))return u(o.get(a));o!==r&&o.get(i);},get size(){const i=this.__v_raw;return !e&&Mt(et(i),"iterate",Bs),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,r=et(o),a=et(i);return e||(cs(i,a)&&Mt(r,"has",i),Mt(r,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const r=this,a=r.__v_raw,l=et(a),u=t?ol:e?il:Lt;return !e&&Mt(l,"iterate",Bs),a.forEach((d,h)=>i.call(o,u(d),u(h),r))}};return St(n,e?{add:Mi("add"),set:Mi("set"),delete:Mi("delete"),clear:Mi("clear")}:{add(i){!t&&!hn(i)&&!Hs(i)&&(i=et(i));const o=et(this);return Oi(o).has.call(o,i)||(o.add(i),Kn(o,"add",i,i)),this},set(i,o){!t&&!hn(o)&&!Hs(o)&&(o=et(o));const r=et(this),{has:a,get:l}=Oi(r);let u=a.call(r,i);u||(i=et(i),u=a.call(r,i));const d=l.call(r,i);return r.set(i,o),u?cs(o,d)&&Kn(r,"set",i,o):Kn(r,"add",i,o),this},delete(i){const o=et(this),{has:r,get:a}=Oi(o);let l=r.call(o,i);l||(i=et(i),l=r.call(o,i)),a&&a.call(o,i);const u=o.delete(i);return l&&Kn(o,"delete",i,void 0),u},clear(){const i=et(this),o=i.size!==0,r=i.clear();return o&&Kn(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Hv(i,e,t);}),n}function lu(e,t){const n=zv(e,t);return (s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(tt(n,i)&&i in s?n:s,i,o)}const qv={get:lu(!1,!1)},Vv={get:lu(!1,!0)},Wv={get:lu(!0,!1)};const ip=new WeakMap,rp=new WeakMap,ap=new WeakMap,Kv=new WeakMap;function Gv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jv(e){return e.__v_skip||!Object.isExtensible(e)?0:Gv(yv(e))}function Vr(e){return Hs(e)?e:uu(e,!1,Fv,qv,ip)}function Yv(e){return uu(e,!1,jv,Vv,rp)}function lp(e){return uu(e,!0,Uv,Wv,ap)}function uu(e,t,n,s,i){if(!at(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=Jv(e);if(r===0)return e;const a=new Proxy(e,r===2?s:n);return i.set(e,a),a}function uo(e){return Hs(e)?uo(e.__v_raw):!!(e&&e.__v_isReactive)}function Hs(e){return !!(e&&e.__v_isReadonly)}function hn(e){return !!(e&&e.__v_isShallow)}function cu(e){return e?!!e.__v_raw:!1}function et(e){const t=e&&e.__v_raw;return t?et(t):e}function Qv(e){return !tt(e,"__v_skip")&&Object.isExtensible(e)&&qf(e,"__v_skip",!0),e}const Lt=e=>at(e)?Vr(e):e,il=e=>at(e)?lp(e):e;function $t(e){return e?e.__v_isRef===!0:!1}function ie(e){return Xv(e,!1)}function Xv(e,t){return $t(e)?e:new Zv(e,t)}class Zv{constructor(t,n){this.dep=new au,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:et(t),this._value=n?t:Lt(t),this.__v_isShallow=n;}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||hn(t)||Hs(t);t=s?t:et(t),cs(t,n)&&(this._rawValue=t,this._value=s?t:Lt(t),this.dep.trigger());}}function pe(e){return $t(e)?e.value:e}const e1={get:(e,t,n)=>t==="__v_raw"?e:pe(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return $t(i)&&!$t(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function up(e){return uo(e)?e:new Proxy(e,e1)}function t1(e){const t=Me(e)?new Array(e.length):{};for(const n in e)t[n]=cp(e,n);return t}class n1{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0;}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t;}get dep(){return Mv(et(this._object),this._key)}}class s1{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0;}get value(){return this._value=this._getter()}}function o1(e,t,n){return $t(e)?e:Ue(e)?new s1(e):at(e)&&arguments.length>1?cp(e,t,n):ie(e)}function cp(e,t,n){const s=e[t];return $t(s)?s:new n1(e,t,n)}class i1{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new au(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ai-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s;}notify(){if(this.flags|=16,!(this.flags&8)&&dt!==this)return Yf(this,!0),!0}get value(){const t=this.dep.track();return Zf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t);}}function r1(e,t,n=!1){let s,i;return Ue(e)?s=e:(s=e.get,i=e.set),new i1(s,i,n)}const Li={},ar=new WeakMap;let Ps;function a1(e,t=!1,n=Ps){if(n){let s=ar.get(n);s||ar.set(n,s=[]),s.push(e);}}function l1(e,t,n=rt){const{immediate:s,deep:i,once:o,scheduler:r,augmentJob:a,call:l}=n,u=D=>i?D:hn(D)||i===!1||i===0?Gn(D,1):Gn(D);let d,h,g,v,b=!1,_=!1;if($t(e)?(h=()=>e.value,b=hn(e)):uo(e)?(h=()=>u(e),b=!0):Me(e)?(_=!0,b=e.some(D=>uo(D)||hn(D)),h=()=>e.map(D=>{if($t(D))return D.value;if(uo(D))return u(D);if(Ue(D))return l?l(D,2):D()})):Ue(e)?t?h=l?()=>l(e,2):e:h=()=>{if(g){xs();try{g();}finally{Cs();}}const D=Ps;Ps=d;try{return l?l(e,3,[v]):e(v)}finally{Ps=D;}}:h=Bn,t&&i){const D=h,j=i===!0?1/0:i;h=()=>Gn(D(),j);}const B=Iv(),L=()=>{d.stop(),B&&eu(B.effects,d);};if(o&&t){const D=t;t=(...j)=>{D(...j),L();};}let F=_?new Array(e.length).fill(Li):Li;const O=D=>{if(!(!(d.flags&1)||!d.dirty&&!D))if(t){const j=d.run();if(i||b||(_?j.some((H,K)=>cs(H,F[K])):cs(j,F))){g&&g();const H=Ps;Ps=d;try{const K=[j,F===Li?void 0:_&&F[0]===Li?[]:F,v];l?l(t,3,K):t(...K),F=j;}finally{Ps=H;}}}else d.run();};return a&&a(O),d=new Gf(h),d.scheduler=r?()=>r(O,!1):O,v=D=>a1(D,!1,d),g=d.onStop=()=>{const D=ar.get(d);if(D){if(l)l(D,4);else for(const j of D)j();ar.delete(d);}},t?s?O(!0):F=d.run():r?r(O.bind(null,!0),!0):d.run(),L.pause=d.pause.bind(d),L.resume=d.resume.bind(d),L.stop=L,L}function Gn(e,t=1/0,n){if(t<=0||!at(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,$t(e))Gn(e.value,t,n);else if(Me(e))for(let s=0;s<e.length;s++)Gn(e[s],t,n);else if(Po(e)||lo(e))e.forEach(s=>{Gn(s,t,n);});else if(zf(e)){for(const s in e)Gn(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Gn(e[s],t,n);}return e}/**
  * @vue/runtime-core v3.5.12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/function Ci(e,t,n,s){try{return s?e(...s):e()}catch(i){ki(i,t,n);}}function jn(e,t,n,s){if(Ue(e)){const i=Ci(e,t,n,s);return i&&tu(i)&&i.catch(o=>{ki(o,t,n);}),i}if(Me(e)){const i=[];for(let o=0;o<e.length;o++)i.push(jn(e[o],t,n,s));return i}}function ki(e,t,n,s=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||rt;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const d=a.ec;if(d){for(let h=0;h<d.length;h++)if(d[h](e,l,u)===!1)return}a=a.parent;}if(o){xs(),Ci(o,null,10,[e,l,u]),Cs();return}}u1(e,n,i,s,r);}function u1(e,t,n,s=!0,i=!1){if(i)throw e;console.error(e);}const Ut=[];let On=-1;const co=[];let is=null,so=0;const dp=Promise.resolve();let lr=null;function zs(e){const t=lr||dp;return e?t.then(this?e.bind(this):e):t}function c1(e){let t=On+1,n=Ut.length;for(;t<n;){const s=t+n>>>1,i=Ut[s],o=ui(i);o<e||o===e&&i.flags&2?t=s+1:n=s;}return t}function du(e){if(!(e.flags&1)){const t=ui(e),n=Ut[Ut.length-1];!n||!(e.flags&2)&&t>=ui(n)?Ut.push(e):Ut.splice(c1(t),0,e),e.flags|=1,fp();}}function fp(){lr||(lr=dp.then(hp));}function rl(e){Me(e)?co.push(...e):is&&e.id===-1?is.splice(so+1,0,e):e.flags&1||(co.push(e),e.flags|=1),fp();}function kc(e,t,n=On+1){for(;n<Ut.length;n++){const s=Ut[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ut.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2);}}}function pp(e){if(co.length){const t=[...new Set(co)].sort((n,s)=>ui(n)-ui(s));if(co.length=0,is){is.push(...t);return}for(is=t,so=0;so<is.length;so++){const n=is[so];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2;}is=null,so=0;}}const ui=e=>e.id==null?e.flags&2?-1:1/0:e.id;function hp(e){try{for(On=0;On<Ut.length;On++){const t=Ut[On];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ci(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2));}}finally{for(;On<Ut.length;On++){const t=Ut[On];t&&(t.flags&=-2);}On=-1,Ut.length=0,pp(),lr=null,(Ut.length||co.length)&&hp();}}let kt=null,Wr=null;function ur(e){const t=kt;return kt=e,Wr=e&&e.type.__scopeId||null,t}function d1(e){Wr=e;}function f1(){Wr=null;}const p1=e=>Re;function Re(e,t=kt,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&Lc(-1);const o=ur(t);let r;try{r=e(...i);}finally{ur(o),s._d&&Lc(1);}return r};return s._n=!0,s._c=!0,s._d=!0,s}function oe(e,t){if(kt===null)return e;const n=Yr(kt),s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,r,a,l=rt]=t[i];o&&(Ue(o)&&(o={mounted:o,updated:o}),o.deep&&Gn(r),s.push({dir:o,instance:n,value:r,oldValue:void 0,arg:a,modifiers:l}));}return e}function Ss(e,t,n,s){const i=e.dirs,o=t&&t.dirs;for(let r=0;r<i.length;r++){const a=i[r];o&&(a.oldValue=o[r].value);let l=a.dir[s];l&&(xs(),jn(l,n,8,[e.el,a,e,t]),Cs());}}const h1=Symbol("_vte"),m1=e=>e.__isTeleport;function fu(e,t){e.shapeFlag&6&&e.component?(e.transition=t,fu(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t;}/*! #__NO_SIDE_EFFECTS__ */function De(e,t){return Ue(e)?St({name:e.name},t,{setup:e}):e}function mp(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0];}function al(e,t,n,s,i=!1){if(Me(e)){e.forEach((b,_)=>al(b,t&&(Me(t)?t[_]:t),n,s,i));return}if(fo(s)&&!i)return;const o=s.shapeFlag&4?Yr(s.component):s.el,r=i?null:o,{i:a,r:l}=e,u=t&&t.r,d=a.refs===rt?a.refs={}:a.refs,h=a.setupState,g=et(h),v=h===rt?()=>!1:b=>tt(g,b);if(u!=null&&u!==l&&(gt(u)?(d[u]=null,v(u)&&(h[u]=null)):$t(u)&&(u.value=null)),Ue(l))Ci(l,a,12,[r,d]);else {const b=gt(l),_=$t(l);if(b||_){const B=()=>{if(e.f){const L=b?v(l)?h[l]:d[l]:l.value;i?Me(L)&&eu(L,o):Me(L)?L.includes(o)||L.push(o):b?(d[l]=[o],v(l)&&(h[l]=d[l])):(l.value=[o],e.k&&(d[e.k]=l.value));}else b?(d[l]=r,v(l)&&(h[l]=r)):_&&(l.value=r,e.k&&(d[e.k]=r));};r?(B.id=-1,nn(B,n)):B();}}}zr().requestIdleCallback;zr().cancelIdleCallback;const fo=e=>!!e.type.__asyncLoader,gp=e=>e.type.__isKeepAlive;function g1(e,t){yp(e,"a",t);}function y1(e,t){yp(e,"da",t);}function yp(e,t,n=At){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent;}return e()});if(Kr(t,s,n),n){let i=n.parent;for(;i&&i.parent;)gp(i.parent.vnode)&&w1(s,t,n,i),i=i.parent;}}function w1(e,t,n,s){const i=Kr(t,e,s,!0);Js(()=>{eu(s[t],i);},n);}function Kr(e,t,n=At,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{xs();const a=Vs(n),l=jn(t,n,e,r);return a(),Cs(),l});return s?i.unshift(o):i.push(o),o}}const Zn=e=>(t,n=At)=>{(!di||e==="sp")&&Kr(e,(...s)=>t(...s),n);},It=Zn("bm"),Wt=Zn("m"),b1=Zn("bu"),v1=Zn("u"),wp=Zn("bum"),Js=Zn("um"),_1=Zn("sp"),x1=Zn("rtg"),C1=Zn("rtc");function k1(e,t=At){Kr("ec",e,t);}const bp="components";function qs(e,t){return _p(bp,e,!0,t)||e}const vp=Symbol.for("v-ndc");function bn(e){return gt(e)?_p(bp,e,!1)||e:e||vp}function _p(e,t,n=!0,s=!1){const i=kt||At;if(i){const o=i.type;{const a=m0(o,!1);if(a&&(a===t||a===wn(t)||a===Hr(wn(t))))return o}const r=$c(i[e]||o[e],t)||$c(i.appContext[e],t);return !r&&s?o:r}}function $c(e,t){return e&&(e[t]||e[wn(t)]||e[Hr(wn(t))])}function Je(e,t,n,s){let i;const o=n,r=Me(e);if(r||gt(e)){const a=r&&uo(e);let l=!1;a&&(l=!hn(e),e=qr(e)),i=new Array(e.length);for(let u=0,d=e.length;u<d;u++)i[u]=t(l?Lt(e[u]):e[u],u,void 0,o);}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,o);}else if(at(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,o));else {const a=Object.keys(e);i=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const d=a[l];i[l]=t(e[d],d,l,o);}}else i=[];return i}function $1(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(Me(s))for(let i=0;i<s.length;i++)e[s[i].name]=s[i].fn;else s&&(e[s.name]=s.key?(...i)=>{const o=s.fn(...i);return o&&(o.key=s.key),o}:s.fn);}return e}function nt(e,t,n={},s,i){if(kt.ce||kt.parent&&fo(kt.parent)&&kt.parent.ce)return t!=="default"&&(n.name=t),E(),ot(Oe,null,[ye("slot",n,s&&s())],64);let o=e[t];o&&o._c&&(o._d=!1),E();const r=o&&xp(o(n)),a=n.key||r&&r.key,l=ot(Oe,{key:(a&&!En(a)?a:`_${t}`)+(!r&&s?"_fb":"")},r||(s?s():[]),r&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function xp(e){return e.some(t=>xo(t)?!(t.type===Hn||t.type===Oe&&!xp(t.children)):!0)?e:null}const ll=e=>e?Kp(e)?Yr(e):ll(e.parent):null,Qo=St(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=>ll(e.parent),$root:e=>ll(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>pu(e),$forceUpdate:e=>e.f||(e.f=()=>{du(e.update);}),$nextTick:e=>e.n||(e.n=zs.bind(e.proxy)),$watch:e=>W1.bind(e)}),Ia=(e,t)=>e!==rt&&!e.__isScriptSetup&&tt(e,t),S1={get({_:e},t){if(t==="__v_skip")return !0;const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const v=r[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else {if(Ia(s,t))return r[t]=1,s[t];if(i!==rt&&tt(i,t))return r[t]=2,i[t];if((u=e.propsOptions[0])&&tt(u,t))return r[t]=3,o[t];if(n!==rt&&tt(n,t))return r[t]=4,n[t];ul&&(r[t]=0);}}const d=Qo[t];let h,g;if(d)return t==="$attrs"&&Mt(e.attrs,"get",""),d(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==rt&&tt(n,t))return r[t]=4,n[t];if(g=l.config.globalProperties,tt(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return Ia(i,t)?(i[t]=n,!0):s!==rt&&tt(s,t)?(s[t]=n,!0):tt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:o}},r){let a;return !!n[r]||e!==rt&&tt(e,r)||Ia(t,r)||(a=o[0])&&tt(a,r)||tt(s,r)||tt(Qo,r)||tt(i.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:tt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Sc(e){return Me(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Xt(e){const t=c0();let n=e();return hl(),tu(n)&&(n=n.catch(s=>{throw Vs(t),s})),[n,()=>Vs(t)]}let ul=!0;function E1(e){const t=pu(e),n=e.proxy,s=e.ctx;ul=!1,t.beforeCreate&&Ec(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:u,created:d,beforeMount:h,mounted:g,beforeUpdate:v,updated:b,activated:_,deactivated:B,beforeDestroy:L,beforeUnmount:F,destroyed:O,unmounted:D,render:j,renderTracked:H,renderTriggered:K,errorCaptured:fe,serverPrefetch:ve,expose:ce,inheritAttrs:R,components:N,directives:G,filters:he}=t;if(u&&A1(u,s,null),r)for(const Pe in r){const Ee=r[Pe];Ue(Ee)&&(s[Pe]=Ee.bind(n));}if(i){const Pe=i.call(n,n);at(Pe)&&(e.data=Vr(Pe));}if(ul=!0,o)for(const Pe in o){const Ee=o[Pe],We=Ue(Ee)?Ee.bind(n,n):Ue(Ee.get)?Ee.get.bind(n,n):Bn,Ze=!Ue(Ee)&&Ue(Ee.set)?Ee.set.bind(n):Bn,_e=it({get:We,set:Ze});Object.defineProperty(s,Pe,{enumerable:!0,configurable:!0,get:()=>_e.value,set:M=>_e.value=M});}if(a)for(const Pe in a)Cp(a[Pe],s,n,Pe);if(l){const Pe=Ue(l)?l.call(n):l;Reflect.ownKeys(Pe).forEach(Ee=>{Vo(Ee,Pe[Ee]);});}d&&Ec(d,e,"c");function $e(Pe,Ee){Me(Ee)?Ee.forEach(We=>Pe(We.bind(n))):Ee&&Pe(Ee.bind(n));}if($e(It,h),$e(Wt,g),$e(b1,v),$e(v1,b),$e(g1,_),$e(y1,B),$e(k1,fe),$e(C1,H),$e(x1,K),$e(wp,F),$e(Js,D),$e(_1,ve),Me(ce))if(ce.length){const Pe=e.exposed||(e.exposed={});ce.forEach(Ee=>{Object.defineProperty(Pe,Ee,{get:()=>n[Ee],set:We=>n[Ee]=We});});}else e.exposed||(e.exposed={});j&&e.render===Bn&&(e.render=j),R!=null&&(e.inheritAttrs=R),N&&(e.components=N),G&&(e.directives=G),ve&&mp(e);}function A1(e,t,n=Bn){Me(e)&&(e=cl(e));for(const s in e){const i=e[s];let o;at(i)?"default"in i?o=Xo(i.from||s,i.default,!0):o=Xo(i.from||s):o=Xo(i),$t(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o;}}function Ec(e,t,n){jn(Me(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n);}function Cp(e,t,n,s){let i=s.includes(".")?Rp(n,s):()=>n[s];if(gt(e)){const o=t[e];Ue(o)&&mt(i,o);}else if(Ue(e))mt(i,e.bind(n));else if(at(e))if(Me(e))e.forEach(o=>Cp(o,t,n,s));else {const o=Ue(e.handler)?e.handler.bind(n):t[e.handler];Ue(o)&&mt(i,o,e);}}function pu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(u=>cr(l,u,r,!0)),cr(l,t,r)),at(t)&&o.set(t,l),l}function cr(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&cr(e,o,n,!0),i&&i.forEach(r=>cr(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=P1[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r];}return e}const P1={data:Ac,props:Pc,emits:Pc,methods:qo,computed:qo,beforeCreate:Nt,created:Nt,beforeMount:Nt,mounted:Nt,beforeUpdate:Nt,updated:Nt,beforeDestroy:Nt,beforeUnmount:Nt,destroyed:Nt,unmounted:Nt,activated:Nt,deactivated:Nt,errorCaptured:Nt,serverPrefetch:Nt,components:qo,directives:qo,watch:T1,provide:Ac,inject:I1};function Ac(e,t){return t?e?function(){return St(Ue(e)?e.call(this,this):e,Ue(t)?t.call(this,this):t)}:t:e}function I1(e,t){return qo(cl(e),cl(t))}function cl(e){if(Me(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Nt(e,t){return e?[...new Set([].concat(e,t))]:t}function qo(e,t){return e?St(Object.create(null),e,t):t}function Pc(e,t){return e?Me(e)&&Me(t)?[...new Set([...e,...t])]:St(Object.create(null),Sc(e),Sc(t??{})):t}function T1(e,t){if(!e)return t;if(!t)return e;const n=St(Object.create(null),e);for(const s in t)n[s]=Nt(e[s],t[s]);return n}function kp(){return {app:null,config:{isNativeTag:mv,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 O1=0;function M1(e,t){return function(s,i=null){Ue(s)||(s=St({},s)),i!=null&&!at(i)&&(i=null);const o=kp(),r=new WeakSet,a=[];let l=!1;const u=o.app={_uid:O1++,_component:s,_props:i,_container:null,_context:o,_instance:null,version:w0,get config(){return o.config},set config(d){},use(d,...h){return r.has(d)||(d&&Ue(d.install)?(r.add(d),d.install(u,...h)):Ue(d)&&(r.add(d),d(u,...h))),u},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),u},component(d,h){return h?(o.components[d]=h,u):o.components[d]},directive(d,h){return h?(o.directives[d]=h,u):o.directives[d]},mount(d,h,g){if(!l){const v=u._ceVNode||ye(s,i);return v.appContext=o,g===!0?g="svg":g===!1&&(g=void 0),h&&t?t(v,d):e(v,d,g),l=!0,u._container=d,d.__vue_app__=u,Yr(v.component)}},onUnmount(d){a.push(d);},unmount(){l&&(jn(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__);},provide(d,h){return o.provides[d]=h,u},runWithContext(d){const h=po;po=u;try{return d()}finally{po=h;}}};return u}}let po=null;function Vo(e,t){if(At){let n=At.provides;const s=At.parent&&At.parent.provides;s===n&&(n=At.provides=Object.create(s)),n[e]=t;}}function Xo(e,t,n=!1){const s=At||kt;if(s||po){const i=po?po._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Ue(t)?t.call(s&&s.proxy):t}}const $p={},Sp=()=>Object.create($p),Ep=e=>Object.getPrototypeOf(e)===$p;function L1(e,t,n,s=!1){const i={},o=Sp();e.propsDefaults=Object.create(null),Ap(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:Yv(i):e.type.props?e.props=i:e.props=o,e.attrs=o;}function D1(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=et(i),[l]=e.propsOptions;let u=!1;if((s||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let h=0;h<d.length;h++){let g=d[h];if(Gr(e.emitsOptions,g))continue;const v=t[g];if(l)if(tt(o,g))v!==o[g]&&(o[g]=v,u=!0);else {const b=wn(g);i[b]=dl(l,a,b,v,e,!1);}else v!==o[g]&&(o[g]=v,u=!0);}}}else {Ap(e,t,i,o)&&(u=!0);let d;for(const h in a)(!t||!tt(t,h)&&((d=_s(h))===h||!tt(t,d)))&&(l?n&&(n[h]!==void 0||n[d]!==void 0)&&(i[h]=dl(l,a,h,void 0,e,!0)):delete i[h]);if(o!==a)for(const h in o)(!t||!tt(t,h))&&(delete o[h],u=!0);}u&&Kn(e.attrs,"set","");}function Ap(e,t,n,s){const[i,o]=e.propsOptions;let r=!1,a;if(t)for(let l in t){if(Go(l))continue;const u=t[l];let d;i&&tt(i,d=wn(l))?!o||!o.includes(d)?n[d]=u:(a||(a={}))[d]=u:Gr(e.emitsOptions,l)||(!(l in s)||u!==s[l])&&(s[l]=u,r=!0);}if(o){const l=et(n),u=a||rt;for(let d=0;d<o.length;d++){const h=o[d];n[h]=dl(i,l,h,u[h],e,!tt(u,h));}}return r}function dl(e,t,n,s,i,o){const r=e[n];if(r!=null){const a=tt(r,"default");if(a&&s===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&Ue(l)){const{propsDefaults:u}=i;if(n in u)s=u[n];else {const d=Vs(i);s=u[n]=l.call(null,t),d();}}else s=l;i.ce&&i.ce._setProp(n,s);}r[0]&&(o&&!a?s=!1:r[1]&&(s===""||s===_s(n))&&(s=!0));}return s}const B1=new WeakMap;function Pp(e,t,n=!1){const s=n?B1:t.propsCache,i=s.get(e);if(i)return i;const o=e.props,r={},a=[];let l=!1;if(!Ue(e)){const d=h=>{l=!0;const[g,v]=Pp(h,t,!0);St(r,g),v&&a.push(...v);};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d);}if(!o&&!l)return at(e)&&s.set(e,ao),ao;if(Me(o))for(let d=0;d<o.length;d++){const h=wn(o[d]);Ic(h)&&(r[h]=rt);}else if(o)for(const d in o){const h=wn(d);if(Ic(h)){const g=o[d],v=r[h]=Me(g)||Ue(g)?{type:g}:St({},g),b=v.type;let _=!1,B=!0;if(Me(b))for(let L=0;L<b.length;++L){const F=b[L],O=Ue(F)&&F.name;if(O==="Boolean"){_=!0;break}else O==="String"&&(B=!1);}else _=Ue(b)&&b.name==="Boolean";v[0]=_,v[1]=B,(_||tt(v,"default"))&&a.push(h);}}const u=[r,a];return at(e)&&s.set(e,u),u}function Ic(e){return e[0]!=="$"&&!Go(e)}const Ip=e=>e[0]==="_"||e==="$stable",hu=e=>Me(e)?e.map(_n):[_n(e)],R1=(e,t,n)=>{if(t._n)return t;const s=Re((...i)=>hu(t(...i)),n);return s._c=!1,s},Tp=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Ip(i))continue;const o=e[i];if(Ue(o))t[i]=R1(i,o,s);else if(o!=null){const r=hu(o);t[i]=()=>r;}}},Op=(e,t)=>{const n=hu(t);e.slots.default=()=>n;},Mp=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s]);},N1=(e,t,n)=>{const s=e.slots=Sp();if(e.vnode.shapeFlag&32){const i=t._;i?(Mp(s,t,n),n&&qf(s,"_",i,!0)):Tp(t,s);}else t&&Op(e,t);},F1=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=rt;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Mp(i,t,n):(o=!t.$stable,Tp(t,i)),r=t;}else t&&(Op(e,t),r={default:1});if(o)for(const a in i)!Ip(a)&&r[a]==null&&delete i[a];},nn=o0;function U1(e){return j1(e)}function j1(e,t){const n=zr();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:u,setElementText:d,parentNode:h,nextSibling:g,setScopeId:v=Bn,insertStaticContent:b}=e,_=(x,S,V,z=null,te=null,se=null,ge=void 0,ae=null,ue=!!S.dynamicChildren)=>{if(x===S)return;x&&!as(x,S)&&(z=wt(x),M(x,te,se,!0),x=null),S.patchFlag===-2&&(ue=!1,S.dynamicChildren=null);const{type:de,ref:Ae,shapeFlag:J}=S;switch(de){case Jr:B(x,S,V,z);break;case Hn:L(x,S,V,z);break;case Wi:x==null&&F(S,V,z,ge);break;case Oe:N(x,S,V,z,te,se,ge,ae,ue);break;default:J&1?j(x,S,V,z,te,se,ge,ae,ue):J&6?G(x,S,V,z,te,se,ge,ae,ue):(J&64||J&128)&&de.process(x,S,V,z,te,se,ge,ae,ue,T);}Ae!=null&&te&&al(Ae,x&&x.ref,se,S||x,!S);},B=(x,S,V,z)=>{if(x==null)s(S.el=a(S.children),V,z);else {const te=S.el=x.el;S.children!==x.children&&u(te,S.children);}},L=(x,S,V,z)=>{x==null?s(S.el=l(S.children||""),V,z):S.el=x.el;},F=(x,S,V,z)=>{[x.el,x.anchor]=b(x.children,S,V,z,x.el,x.anchor);},O=({el:x,anchor:S},V,z)=>{let te;for(;x&&x!==S;)te=g(x),s(x,V,z),x=te;s(S,V,z);},D=({el:x,anchor:S})=>{let V;for(;x&&x!==S;)V=g(x),i(x),x=V;i(S);},j=(x,S,V,z,te,se,ge,ae,ue)=>{S.type==="svg"?ge="svg":S.type==="math"&&(ge="mathml"),x==null?H(S,V,z,te,se,ge,ae,ue):ve(x,S,te,se,ge,ae,ue);},H=(x,S,V,z,te,se,ge,ae)=>{let ue,de;const{props:Ae,shapeFlag:J,transition:ke,dirs:m}=x;if(ue=x.el=r(x.type,se,Ae&&Ae.is,Ae),J&8?d(ue,x.children):J&16&&fe(x.children,ue,null,z,te,Ta(x,se),ge,ae),m&&Ss(x,null,z,"created"),K(ue,x,x.scopeId,ge,z),Ae){for(const k in Ae)k!=="value"&&!Go(k)&&o(ue,k,null,Ae[k],se,z);"value"in Ae&&o(ue,"value",null,Ae.value,se),(de=Ae.onVnodeBeforeMount)&&In(de,z,x);}m&&Ss(x,null,z,"beforeMount");const w=H1(te,ke);w&&ke.beforeEnter(ue),s(ue,S,V),((de=Ae&&Ae.onVnodeMounted)||w||m)&&nn(()=>{de&&In(de,z,x),w&&ke.enter(ue),m&&Ss(x,null,z,"mounted");},te);},K=(x,S,V,z,te)=>{if(V&&v(x,V),z)for(let se=0;se<z.length;se++)v(x,z[se]);if(te){let se=te.subTree;if(S===se||Fp(se.type)&&(se.ssContent===S||se.ssFallback===S)){const ge=te.vnode;K(x,ge,ge.scopeId,ge.slotScopeIds,te.parent);}}},fe=(x,S,V,z,te,se,ge,ae,ue=0)=>{for(let de=ue;de<x.length;de++){const Ae=x[de]=ae?rs(x[de]):_n(x[de]);_(null,Ae,S,V,z,te,se,ge,ae);}},ve=(x,S,V,z,te,se,ge)=>{const ae=S.el=x.el;let{patchFlag:ue,dynamicChildren:de,dirs:Ae}=S;ue|=x.patchFlag&16;const J=x.props||rt,ke=S.props||rt;let m;if(V&&Es(V,!1),(m=ke.onVnodeBeforeUpdate)&&In(m,V,S,x),Ae&&Ss(S,x,V,"beforeUpdate"),V&&Es(V,!0),(J.innerHTML&&ke.innerHTML==null||J.textContent&&ke.textContent==null)&&d(ae,""),de?ce(x.dynamicChildren,de,ae,V,z,Ta(S,te),se):ge||Ee(x,S,ae,null,V,z,Ta(S,te),se,!1),ue>0){if(ue&16)R(ae,J,ke,V,te);else if(ue&2&&J.class!==ke.class&&o(ae,"class",null,ke.class,te),ue&4&&o(ae,"style",J.style,ke.style,te),ue&8){const w=S.dynamicProps;for(let k=0;k<w.length;k++){const A=w[k],q=J[A],P=ke[A];(P!==q||A==="value")&&o(ae,A,q,P,te,V);}}ue&1&&x.children!==S.children&&d(ae,S.children);}else !ge&&de==null&&R(ae,J,ke,V,te);((m=ke.onVnodeUpdated)||Ae)&&nn(()=>{m&&In(m,V,S,x),Ae&&Ss(S,x,V,"updated");},z);},ce=(x,S,V,z,te,se,ge)=>{for(let ae=0;ae<S.length;ae++){const ue=x[ae],de=S[ae],Ae=ue.el&&(ue.type===Oe||!as(ue,de)||ue.shapeFlag&70)?h(ue.el):V;_(ue,de,Ae,null,z,te,se,ge,!0);}},R=(x,S,V,z,te)=>{if(S!==V){if(S!==rt)for(const se in S)!Go(se)&&!(se in V)&&o(x,se,S[se],null,te,z);for(const se in V){if(Go(se))continue;const ge=V[se],ae=S[se];ge!==ae&&se!=="value"&&o(x,se,ae,ge,te,z);}"value"in V&&o(x,"value",S.value,V.value,te);}},N=(x,S,V,z,te,se,ge,ae,ue)=>{const de=S.el=x?x.el:a(""),Ae=S.anchor=x?x.anchor:a("");let{patchFlag:J,dynamicChildren:ke,slotScopeIds:m}=S;m&&(ae=ae?ae.concat(m):m),x==null?(s(de,V,z),s(Ae,V,z),fe(S.children||[],V,Ae,te,se,ge,ae,ue)):J>0&&J&64&&ke&&x.dynamicChildren?(ce(x.dynamicChildren,ke,V,te,se,ge,ae),(S.key!=null||te&&S===te.subTree)&&Lp(x,S,!0)):Ee(x,S,V,Ae,te,se,ge,ae,ue);},G=(x,S,V,z,te,se,ge,ae,ue)=>{S.slotScopeIds=ae,x==null?S.shapeFlag&512?te.ctx.activate(S,V,z,ge,ue):he(S,V,z,te,se,ge,ue):be(x,S,ue);},he=(x,S,V,z,te,se,ge)=>{const ae=x.component=u0(x,z,te);if(gp(x)&&(ae.ctx.renderer=T),d0(ae,!1,ge),ae.asyncDep){if(te&&te.registerDep(ae,$e,ge),!x.el){const ue=ae.subTree=ye(Hn);L(null,ue,S,V);}}else $e(ae,x,S,V,te,se,ge);},be=(x,S,V)=>{const z=S.component=x.component;if(X1(x,S,V))if(z.asyncDep&&!z.asyncResolved){Pe(z,S,V);return}else z.next=S,z.update();else S.el=x.el,z.vnode=S;},$e=(x,S,V,z,te,se,ge)=>{const ae=()=>{if(x.isMounted){let{next:J,bu:ke,u:m,parent:w,vnode:k}=x;{const Q=Dp(x);if(Q){J&&(J.el=k.el,Pe(x,J,ge)),Q.asyncDep.then(()=>{x.isUnmounted||ae();});return}}let A=J,q;Es(x,!1),J?(J.el=k.el,Pe(x,J,ge)):J=k,ke&&Vi(ke),(q=J.props&&J.props.onVnodeBeforeUpdate)&&In(q,w,J,k),Es(x,!0);const P=Oa(x),ee=x.subTree;x.subTree=P,_(ee,P,h(ee.el),wt(ee),x,te,se),J.el=P.el,A===null&&mu(x,P.el),m&&nn(m,te),(q=J.props&&J.props.onVnodeUpdated)&&nn(()=>In(q,w,J,k),te);}else {let J;const{el:ke,props:m}=S,{bm:w,m:k,parent:A,root:q,type:P}=x,ee=fo(S);if(Es(x,!1),w&&Vi(w),!ee&&(J=m&&m.onVnodeBeforeMount)&&In(J,A,S),Es(x,!0),ke&&xe){const Q=()=>{x.subTree=Oa(x),xe(ke,x.subTree,x,te,null);};ee&&P.__asyncHydrate?P.__asyncHydrate(ke,x,Q):Q();}else {q.ce&&q.ce._injectChildStyle(P);const Q=x.subTree=Oa(x);_(null,Q,V,z,x,te,se),S.el=Q.el;}if(k&&nn(k,te),!ee&&(J=m&&m.onVnodeMounted)){const Q=S;nn(()=>In(J,A,Q),te);}(S.shapeFlag&256||A&&fo(A.vnode)&&A.vnode.shapeFlag&256)&&x.a&&nn(x.a,te),x.isMounted=!0,S=V=z=null;}};x.scope.on();const ue=x.effect=new Gf(ae);x.scope.off();const de=x.update=ue.run.bind(ue),Ae=x.job=ue.runIfDirty.bind(ue);Ae.i=x,Ae.id=x.uid,ue.scheduler=()=>du(Ae),Es(x,!0),de();},Pe=(x,S,V)=>{S.component=x;const z=x.vnode.props;x.vnode=S,x.next=null,D1(x,S.props,z,V),F1(x,S.children,V),xs(),kc(x),Cs();},Ee=(x,S,V,z,te,se,ge,ae,ue=!1)=>{const de=x&&x.children,Ae=x?x.shapeFlag:0,J=S.children,{patchFlag:ke,shapeFlag:m}=S;if(ke>0){if(ke&128){Ze(de,J,V,z,te,se,ge,ae,ue);return}else if(ke&256){We(de,J,V,z,te,se,ge,ae,ue);return}}m&8?(Ae&16&&ut(de,te,se),J!==de&&d(V,J)):Ae&16?m&16?Ze(de,J,V,z,te,se,ge,ae,ue):ut(de,te,se,!0):(Ae&8&&d(V,""),m&16&&fe(J,V,z,te,se,ge,ae,ue));},We=(x,S,V,z,te,se,ge,ae,ue)=>{x=x||ao,S=S||ao;const de=x.length,Ae=S.length,J=Math.min(de,Ae);let ke;for(ke=0;ke<J;ke++){const m=S[ke]=ue?rs(S[ke]):_n(S[ke]);_(x[ke],m,V,null,te,se,ge,ae,ue);}de>Ae?ut(x,te,se,!0,!1,J):fe(S,V,z,te,se,ge,ae,ue,J);},Ze=(x,S,V,z,te,se,ge,ae,ue)=>{let de=0;const Ae=S.length;let J=x.length-1,ke=Ae-1;for(;de<=J&&de<=ke;){const m=x[de],w=S[de]=ue?rs(S[de]):_n(S[de]);if(as(m,w))_(m,w,V,null,te,se,ge,ae,ue);else break;de++;}for(;de<=J&&de<=ke;){const m=x[J],w=S[ke]=ue?rs(S[ke]):_n(S[ke]);if(as(m,w))_(m,w,V,null,te,se,ge,ae,ue);else break;J--,ke--;}if(de>J){if(de<=ke){const m=ke+1,w=m<Ae?S[m].el:z;for(;de<=ke;)_(null,S[de]=ue?rs(S[de]):_n(S[de]),V,w,te,se,ge,ae,ue),de++;}}else if(de>ke)for(;de<=J;)M(x[de],te,se,!0),de++;else {const m=de,w=de,k=new Map;for(de=w;de<=ke;de++){const Le=S[de]=ue?rs(S[de]):_n(S[de]);Le.key!=null&&k.set(Le.key,de);}let A,q=0;const P=ke-w+1;let ee=!1,Q=0;const le=new Array(P);for(de=0;de<P;de++)le[de]=0;for(de=m;de<=J;de++){const Le=x[de];if(q>=P){M(Le,te,se,!0);continue}let Se;if(Le.key!=null)Se=k.get(Le.key);else for(A=w;A<=ke;A++)if(le[A-w]===0&&as(Le,S[A])){Se=A;break}Se===void 0?M(Le,te,se,!0):(le[Se-w]=de+1,Se>=Q?Q=Se:ee=!0,_(Le,S[Se],V,null,te,se,ge,ae,ue),q++);}const Be=ee?z1(le):ao;for(A=Be.length-1,de=P-1;de>=0;de--){const Le=w+de,Se=S[Le],Ke=Le+1<Ae?S[Le+1].el:z;le[de]===0?_(null,Se,V,Ke,te,se,ge,ae,ue):ee&&(A<0||de!==Be[A]?_e(Se,V,Ke,2):A--);}}},_e=(x,S,V,z,te=null)=>{const{el:se,type:ge,transition:ae,children:ue,shapeFlag:de}=x;if(de&6){_e(x.component.subTree,S,V,z);return}if(de&128){x.suspense.move(S,V,z);return}if(de&64){ge.move(x,S,V,T);return}if(ge===Oe){s(se,S,V);for(let J=0;J<ue.length;J++)_e(ue[J],S,V,z);s(x.anchor,S,V);return}if(ge===Wi){O(x,S,V);return}if(z!==2&&de&1&&ae)if(z===0)ae.beforeEnter(se),s(se,S,V),nn(()=>ae.enter(se),te);else {const{leave:J,delayLeave:ke,afterLeave:m}=ae,w=()=>s(se,S,V),k=()=>{J(se,()=>{w(),m&&m();});};ke?ke(se,w,k):k();}else s(se,S,V);},M=(x,S,V,z=!1,te=!1)=>{const{type:se,props:ge,ref:ae,children:ue,dynamicChildren:de,shapeFlag:Ae,patchFlag:J,dirs:ke,cacheIndex:m}=x;if(J===-2&&(te=!1),ae!=null&&al(ae,null,V,x,!0),m!=null&&(S.renderCache[m]=void 0),Ae&256){S.ctx.deactivate(x);return}const w=Ae&1&&ke,k=!fo(x);let A;if(k&&(A=ge&&ge.onVnodeBeforeUnmount)&&In(A,S,x),Ae&6)Ie(x.component,V,z);else {if(Ae&128){x.suspense.unmount(V,z);return}w&&Ss(x,null,S,"beforeUnmount"),Ae&64?x.type.remove(x,S,V,T,z):de&&!de.hasOnce&&(se!==Oe||J>0&&J&64)?ut(de,S,V,!1,!0):(se===Oe&&J&384||!te&&Ae&16)&&ut(ue,S,V),z&&Ne(x);}(k&&(A=ge&&ge.onVnodeUnmounted)||w)&&nn(()=>{A&&In(A,S,x),w&&Ss(x,null,S,"unmounted");},V);},Ne=x=>{const{type:S,el:V,anchor:z,transition:te}=x;if(S===Oe){pt(V,z);return}if(S===Wi){D(x);return}const se=()=>{i(V),te&&!te.persisted&&te.afterLeave&&te.afterLeave();};if(x.shapeFlag&1&&te&&!te.persisted){const{leave:ge,delayLeave:ae}=te,ue=()=>ge(V,se);ae?ae(x.el,se,ue):ue();}else se();},pt=(x,S)=>{let V;for(;x!==S;)V=g(x),i(x),x=V;i(S);},Ie=(x,S,V)=>{const{bum:z,scope:te,job:se,subTree:ge,um:ae,m:ue,a:de}=x;Tc(ue),Tc(de),z&&Vi(z),te.stop(),se&&(se.flags|=8,M(ge,x,S,V)),ae&&nn(ae,S),nn(()=>{x.isUnmounted=!0;},S),S&&S.pendingBranch&&!S.isUnmounted&&x.asyncDep&&!x.asyncResolved&&x.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve());},ut=(x,S,V,z=!1,te=!1,se=0)=>{for(let ge=se;ge<x.length;ge++)M(x[ge],S,V,z,te);},wt=x=>{if(x.shapeFlag&6)return wt(x.component.subTree);if(x.shapeFlag&128)return x.suspense.next();const S=g(x.anchor||x.el),V=S&&S[h1];return V?g(V):S};let Tt=!1;const Z=(x,S,V)=>{x==null?S._vnode&&M(S._vnode,null,null,!0):_(S._vnode||null,x,S,null,null,null,V),S._vnode=x,Tt||(Tt=!0,kc(),pp(),Tt=!1);},T={p:_,um:M,m:_e,r:Ne,mt:he,mc:fe,pc:Ee,pbc:ce,n:wt,o:e};let W,xe;return {render:Z,hydrate:W,createApp:M1(Z,W)}}function Ta({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Es({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5);}function H1(e,t){return (!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Lp(e,t,n=!1){const s=e.children,i=t.children;if(Me(s)&&Me(i))for(let o=0;o<s.length;o++){const r=s[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=rs(i[o]),a.el=r.el),!n&&a.patchFlag!==-2&&Lp(r,a)),a.type===Jr&&(a.el=r.el);}}function z1(e){const t=e.slice(),n=[0];let s,i,o,r,a;const l=e.length;for(s=0;s<l;s++){const u=e[s];if(u!==0){if(i=n[n.length-1],e[i]<u){t[s]=i,n.push(s);continue}for(o=0,r=n.length-1;o<r;)a=o+r>>1,e[n[a]]<u?o=a+1:r=a;u<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s);}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function Dp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Dp(t)}function Tc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8;}const q1=Symbol.for("v-scx"),V1=()=>Xo(q1);function mt(e,t,n){return Bp(e,t,n)}function Bp(e,t,n=rt){const{immediate:s,deep:i,flush:o,once:r}=n,a=St({},n),l=t&&s||!t&&o!=="post";let u;if(di){if(o==="sync"){const v=V1();u=v.__watcherHandles||(v.__watcherHandles=[]);}else if(!l){const v=()=>{};return v.stop=Bn,v.resume=Bn,v.pause=Bn,v}}const d=At;a.call=(v,b,_)=>jn(v,d,b,_);let h=!1;o==="post"?a.scheduler=v=>{nn(v,d&&d.suspense);}:o!=="sync"&&(h=!0,a.scheduler=(v,b)=>{b?v():du(v);}),a.augmentJob=v=>{t&&(v.flags|=4),h&&(v.flags|=2,d&&(v.id=d.uid,v.i=d));};const g=l1(e,t,a);return di&&(u?u.push(g):l&&g()),g}function W1(e,t,n){const s=this.proxy,i=gt(e)?e.includes(".")?Rp(s,e):()=>s[e]:e.bind(s,s);let o;Ue(t)?o=t:(o=t.handler,n=t);const r=Vs(this),a=Bp(i,o.bind(s),n);return r(),a}function Rp(e,t){const n=t.split(".");return ()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}const K1=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wn(t)}Modifiers`]||e[`${_s(t)}Modifiers`];function G1(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||rt;let i=n;const o=t.startsWith("update:"),r=o&&K1(s,t.slice(7));r&&(r.trim&&(i=n.map(d=>gt(d)?d.trim():d)),r.number&&(i=n.map(ir)));let a,l=s[a=$a(t)]||s[a=$a(wn(t))];!l&&o&&(l=s[a=$a(_s(t))]),l&&jn(l,e,6,i);const u=s[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,jn(u,e,6,i);}}function Np(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!Ue(e)){const l=u=>{const d=Np(u,t,!0);d&&(a=!0,St(r,d));};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l);}return !o&&!a?(at(e)&&s.set(e,null),null):(Me(o)?o.forEach(l=>r[l]=null):St(r,o),at(e)&&s.set(e,r),r)}function Gr(e,t){return !e||!Ur(t)?!1:(t=t.slice(2).replace(/Once$/,""),tt(e,t[0].toLowerCase()+t.slice(1))||tt(e,_s(t))||tt(e,t))}function Oa(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:u,renderCache:d,props:h,data:g,setupState:v,ctx:b,inheritAttrs:_}=e,B=ur(e);let L,F;try{if(n.shapeFlag&4){const D=i||s,j=D;L=_n(u.call(j,D,d,h,v,g,b)),F=a;}else {const D=t;L=_n(D.length>1?D(h,{attrs:a,slots:r,emit:l}):D(h,null)),F=t.props?a:Y1(a);}}catch(D){Zo.length=0,ki(D,e,1),L=ye(Hn);}let O=L;if(F&&_!==!1){const D=Object.keys(F),{shapeFlag:j}=O;D.length&&j&7&&(o&&D.some(Zl)&&(F=Q1(F,o)),O=Co(O,F,!1,!0));}return n.dirs&&(O=Co(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&fu(O,n.transition),L=O,ur(B),L}function J1(e,t=!0){let n;for(let s=0;s<e.length;s++){const i=e[s];if(xo(i)){if(i.type!==Hn||i.children==="v-if"){if(n)return;n=i;}}else return}return n}const Y1=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ur(n))&&((t||(t={}))[n]=e[n]);return t},Q1=(e,t)=>{const n={};for(const s in e)(!Zl(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function X1(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return !0;if(n&&l>=0){if(l&1024)return !0;if(l&16)return s?Oc(s,r,u):!!r;if(l&8){const d=t.dynamicProps;for(let h=0;h<d.length;h++){const g=d[h];if(r[g]!==s[g]&&!Gr(u,g))return !0}}}else return (i||a)&&(!a||!a.$stable)?!0:s===r?!1:s?r?Oc(s,r,u):!0:!!r;return !1}function Oc(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return !0;for(let i=0;i<s.length;i++){const o=s[i];if(t[o]!==e[o]&&!Gr(n,o))return !0}return !1}function mu({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Fp=e=>e.__isSuspense;let fl=0;const Z1={name:"Suspense",__isSuspense:!0,process(e,t,n,s,i,o,r,a,l,u){if(e==null)e0(t,n,s,i,o,r,a,l,u);else {if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}t0(e,t,n,s,i,r,a,l,u);}},hydrate:n0,normalize:s0},Up=Z1;function ci(e,t){const n=e.props&&e.props[t];Ue(n)&&n();}function e0(e,t,n,s,i,o,r,a,l){const{p:u,o:{createElement:d}}=l,h=d("div"),g=e.suspense=jp(e,i,s,t,h,n,o,r,a,l);u(null,g.pendingBranch=e.ssContent,h,null,s,g,o,r),g.deps>0?(ci(e,"onPending"),ci(e,"onFallback"),u(null,e.ssFallback,t,n,s,null,o,r),ho(g,e.ssFallback)):g.resolve(!1,!0);}function t0(e,t,n,s,i,o,r,a,{p:l,um:u,o:{createElement:d}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const g=t.ssContent,v=t.ssFallback,{activeBranch:b,pendingBranch:_,isInFallback:B,isHydrating:L}=h;if(_)h.pendingBranch=g,as(g,_)?(l(_,g,h.hiddenContainer,null,i,h,o,r,a),h.deps<=0?h.resolve():B&&(L||(l(b,v,n,s,i,null,o,r,a),ho(h,v)))):(h.pendingId=fl++,L?(h.isHydrating=!1,h.activeBranch=_):u(_,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=d("div"),B?(l(null,g,h.hiddenContainer,null,i,h,o,r,a),h.deps<=0?h.resolve():(l(b,v,n,s,i,null,o,r,a),ho(h,v))):b&&as(g,b)?(l(b,g,n,s,i,h,o,r,a),h.resolve(!0)):(l(null,g,h.hiddenContainer,null,i,h,o,r,a),h.deps<=0&&h.resolve()));else if(b&&as(g,b))l(b,g,n,s,i,h,o,r,a),ho(h,g);else if(ci(t,"onPending"),h.pendingBranch=g,g.shapeFlag&512?h.pendingId=g.component.suspenseId:h.pendingId=fl++,l(null,g,h.hiddenContainer,null,i,h,o,r,a),h.deps<=0)h.resolve();else {const{timeout:F,pendingId:O}=h;F>0?setTimeout(()=>{h.pendingId===O&&h.fallback(v);},F):F===0&&h.fallback(v);}}function jp(e,t,n,s,i,o,r,a,l,u,d=!1){const{p:h,m:g,um:v,n:b,o:{parentNode:_,remove:B}}=u;let L;const F=i0(e);F&&t&&t.pendingBranch&&(L=t.pendingId,t.deps++);const O=e.props?vv(e.props.timeout):void 0,D=o,j={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:i,deps:0,pendingId:fl++,timeout:typeof O=="number"?O:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(H=!1,K=!1){const{vnode:fe,activeBranch:ve,pendingBranch:ce,pendingId:R,effects:N,parentComponent:G,container:he}=j;let be=!1;j.isHydrating?j.isHydrating=!1:H||(be=ve&&ce.transition&&ce.transition.mode==="out-in",be&&(ve.transition.afterLeave=()=>{R===j.pendingId&&(g(ce,he,o===D?b(ve):o,0),rl(N));}),ve&&(_(ve.el)===he&&(o=b(ve)),v(ve,G,j,!0)),be||g(ce,he,o,0)),ho(j,ce),j.pendingBranch=null,j.isInFallback=!1;let $e=j.parent,Pe=!1;for(;$e;){if($e.pendingBranch){$e.effects.push(...N),Pe=!0;break}$e=$e.parent;}!Pe&&!be&&rl(N),j.effects=[],F&&t&&t.pendingBranch&&L===t.pendingId&&(t.deps--,t.deps===0&&!K&&t.resolve()),ci(fe,"onResolve");},fallback(H){if(!j.pendingBranch)return;const{vnode:K,activeBranch:fe,parentComponent:ve,container:ce,namespace:R}=j;ci(K,"onFallback");const N=b(fe),G=()=>{j.isInFallback&&(h(null,H,ce,N,ve,null,R,a,l),ho(j,H));},he=H.transition&&H.transition.mode==="out-in";he&&(fe.transition.afterLeave=G),j.isInFallback=!0,v(fe,ve,null,!0),he||G();},move(H,K,fe){j.activeBranch&&g(j.activeBranch,H,K,fe),j.container=H;},next(){return j.activeBranch&&b(j.activeBranch)},registerDep(H,K,fe){const ve=!!j.pendingBranch;ve&&j.deps++;const ce=H.vnode.el;H.asyncDep.catch(R=>{ki(R,H,0);}).then(R=>{if(H.isUnmounted||j.isUnmounted||j.pendingId!==H.suspenseId)return;H.asyncResolved=!0;const{vnode:N}=H;ml(H,R,!1),ce&&(N.el=ce);const G=!ce&&H.subTree.el;K(H,N,_(ce||H.subTree.el),ce?null:b(H.subTree),j,r,fe),G&&B(G),mu(H,N.el),ve&&--j.deps===0&&j.resolve();});},unmount(H,K){j.isUnmounted=!0,j.activeBranch&&v(j.activeBranch,n,H,K),j.pendingBranch&&v(j.pendingBranch,n,H,K);}};return j}function n0(e,t,n,s,i,o,r,a,l){const u=t.suspense=jp(t,s,n,e.parentNode,document.createElement("div"),null,i,o,r,a,!0),d=l(e,u.pendingBranch=t.ssContent,n,u,o,r);return u.deps===0&&u.resolve(!1,!0),d}function s0(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=Mc(s?n.default:n),e.ssFallback=s?Mc(n.fallback):ye(Hn);}function Mc(e){let t;if(Ue(e)){const n=_o&&e._c;n&&(e._d=!1,E()),e=e(),n&&(e._d=!0,t=Qt,Hp());}return Me(e)&&(e=J1(e)),e=_n(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function o0(e,t){t&&t.pendingBranch?Me(e)?t.effects.push(...e):t.effects.push(e):rl(e);}function ho(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,s&&s.subTree===n&&(s.vnode.el=i,mu(s,i));}function i0(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Oe=Symbol.for("v-fgt"),Jr=Symbol.for("v-txt"),Hn=Symbol.for("v-cmt"),Wi=Symbol.for("v-stc"),Zo=[];let Qt=null;function E(e=!1){Zo.push(Qt=e?null:[]);}function Hp(){Zo.pop(),Qt=Zo[Zo.length-1]||null;}let _o=1;function Lc(e){_o+=e,e<0&&Qt&&(Qt.hasOnce=!0);}function zp(e){return e.dynamicChildren=_o>0?Qt||ao:null,Hp(),_o>0&&Qt&&Qt.push(e),e}function I(e,t,n,s,i,o){return zp(c(e,t,n,s,i,o,!0))}function ot(e,t,n,s,i){return zp(ye(e,t,n,s,i,!0))}function xo(e){return e?e.__v_isVNode===!0:!1}function as(e,t){return e.type===t.type&&e.key===t.key}const qp=({key:e})=>e??null,Ki=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?gt(e)||$t(e)||Ue(e)?{i:kt,r:e,k:t,f:!!n}:e:null);function c(e,t=null,n=null,s=0,i=null,o=e===Oe?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qp(t),ref:t&&Ki(t),scopeId:Wr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:kt};return a?(gu(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=gt(n)?8:16),_o>0&&!r&&Qt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Qt.push(l),l}const ye=r0;function r0(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===vp)&&(e=Hn),xo(e)){const a=Co(e,t,!0);return n&&gu(a,n),_o>0&&!o&&Qt&&(a.shapeFlag&6?Qt[Qt.indexOf(e)]=a:Qt.push(a)),a.patchFlag=-2,a}if(g0(e)&&(e=e.__vccOpts),t){t=Vp(t);let{class:a,style:l}=t;a&&!gt(a)&&(t.class=ze(a)),at(l)&&(cu(l)&&!Me(l)&&(l=St({},l)),t.style=Rn(l));}const r=gt(e)?1:Fp(e)?128:m1(e)?64:at(e)?4:Ue(e)?2:0;return c(e,t,n,s,i,r,o,!0)}function Vp(e){return e?cu(e)||Ep(e)?St({},e):e:null}function Co(e,t,n=!1,s=!1){const{props:i,ref:o,patchFlag:r,children:a,transition:l}=e,u=t?yu(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&qp(u),ref:t&&t.ref?n&&o?Me(o)?o.concat(Ki(t)):[o,Ki(t)]:Ki(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Co(e.ssContent),ssFallback:e.ssFallback&&Co(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&fu(d,l.clone(d)),d}function U(e=" ",t=0){return ye(Jr,null,e,t)}function Wp(e,t){const n=ye(Wi,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(E(),ot(Hn,null,e)):ye(Hn,null,e)}function _n(e){return e==null||typeof e=="boolean"?ye(Hn):Me(e)?ye(Oe,null,e.slice()):xo(e)?rs(e):ye(Jr,null,String(e))}function rs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Co(e)}function gu(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Me(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),gu(e,i()),i._c&&(i._d=!0));return}else {n=32;const i=t._;!i&&!Ep(t)?t._ctx=kt:i===3&&kt&&(kt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024));}else Ue(t)?(t={default:t,_ctx:kt},n=32):(t=String(t),s&64?(n=16,t=[U(t)]):n=8);e.children=t,e.shapeFlag|=n;}function yu(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=ze([t.class,s.class]));else if(i==="style")t.style=Rn([t.style,s.style]);else if(Ur(i)){const o=t[i],r=s[i];r&&o!==r&&!(Me(o)&&o.includes(r))&&(t[i]=o?[].concat(o,r):r);}else i!==""&&(t[i]=s[i]);}return t}function In(e,t,n,s=null){jn(e,t,7,[n,s]);}const a0=kp();let l0=0;function u0(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||a0,o={uid:l0++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Pv(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pp(s,i),emitsOptions:Np(s,i),emit:null,emitted:null,propsDefaults:rt,inheritAttrs:s.inheritAttrs,ctx:rt,data:rt,props:rt,attrs:rt,slots:rt,refs:rt,setupState:rt,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=G1.bind(null,o),e.ce&&e.ce(o),o}let At=null;const c0=()=>At||kt;let dr,pl;{const e=zr(),t=(n,s)=>{let i;return (i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o);}};dr=t("__VUE_INSTANCE_SETTERS__",n=>At=n),pl=t("__VUE_SSR_SETTERS__",n=>di=n);}const Vs=e=>{const t=At;return dr(e),e.scope.on(),()=>{e.scope.off(),dr(t);}},hl=()=>{At&&At.scope.off(),dr(null);};function Kp(e){return e.vnode.shapeFlag&4}let di=!1;function d0(e,t=!1,n=!1){t&&pl(t);const{props:s,children:i}=e.vnode,o=Kp(e);L1(e,s,o,t),N1(e,i,n);const r=o?f0(e,t):void 0;return t&&pl(!1),r}function f0(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,S1);const{setup:s}=n;if(s){xs();const i=e.setupContext=s.length>1?h0(e):null,o=Vs(e),r=Ci(s,e,0,[e.props,i]),a=tu(r);if(Cs(),o(),(a||e.sp)&&!fo(e)&&mp(e),a){if(r.then(hl,hl),t)return r.then(l=>{ml(e,l,t);}).catch(l=>{ki(l,e,0);});e.asyncDep=r;}else ml(e,r,t);}else Gp(e,t);}function ml(e,t,n){Ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:at(t)&&(e.setupState=up(t)),Gp(e,n);}let Dc;function Gp(e,t,n){const s=e.type;if(!e.render){if(!t&&Dc&&!s.render){const i=s.template||pu(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,u=St(St({isCustomElement:o,delimiters:a},r),l);s.render=Dc(i,u);}}e.render=s.render||Bn;}{const i=Vs(e);xs();try{E1(e);}finally{Cs(),i();}}}const p0={get(e,t){return Mt(e,"get",""),e[t]}};function h0(e){const t=n=>{e.exposed=n||{};};return {attrs:new Proxy(e.attrs,p0),slots:e.slots,emit:e.emit,expose:t}}function Yr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(up(Qv(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qo)return Qo[n](e)},has(t,n){return n in t||n in Qo}})):e.proxy}function m0(e,t=!0){return Ue(e)?e.displayName||e.name:e.name||t&&e.__name}function g0(e){return Ue(e)&&"__vccOpts"in e}const it=(e,t)=>r1(e,t,di);function y0(e,t,n){const s=arguments.length;return s===2?at(t)&&!Me(t)?xo(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&xo(n)&&(n=[n]),ye(e,t,n))}const w0="3.5.12";/**
  * @vue/runtime-dom v3.5.12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/let gl;const Bc=typeof window<"u"&&window.trustedTypes;if(Bc)try{gl=Bc.createPolicy("vue",{createHTML:e=>e});}catch{}const Jp=gl?e=>gl.createHTML(e):e=>e,b0="http://www.w3.org/2000/svg",v0="http://www.w3.org/1998/Math/MathML",Wn=typeof document<"u"?document:null,Rc=Wn&&Wn.createElement("template"),_0={insert:(e,t,n)=>{t.insertBefore(e,n||null);},remove:e=>{const t=e.parentNode;t&&t.removeChild(e);},createElement:(e,t,n,s)=>{const i=t==="svg"?Wn.createElementNS(b0,e):t==="mathml"?Wn.createElementNS(v0,e):n?Wn.createElement(e,{is:n}):Wn.createElement(e);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>Wn.createTextNode(e),createComment:e=>Wn.createComment(e),setText:(e,t)=>{e.nodeValue=t;},setElementText:(e,t)=>{e.textContent=t;},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"");},insertStaticContent(e,t,n,s,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else {Rc.innerHTML=Jp(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=Rc.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l);}t.insertBefore(a,n);}return [r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},x0=Symbol("_vtc");function C0(e,t,n){const s=e[x0];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t;}const fr=Symbol("_vod"),Yp=Symbol("_vsh"),jt={beforeMount(e,{value:t},{transition:n}){e[fr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):jo(e,t);},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e);},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),jo(e,!0),s.enter(e)):s.leave(e,()=>{jo(e,!1);}):jo(e,t));},beforeUnmount(e,{value:t}){jo(e,t);}};function jo(e,t){e.style.display=t?e[fr]:"none",e[Yp]=!t;}const k0=Symbol(""),$0=/(^|;)\s*display\s*:/;function S0(e,t,n){const s=e.style,i=gt(n);let o=!1;if(n&&!i){if(t)if(gt(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&Gi(s,a,"");}else for(const r in t)n[r]==null&&Gi(s,r,"");for(const r in n)r==="display"&&(o=!0),Gi(s,r,n[r]);}else if(i){if(t!==n){const r=s[k0];r&&(n+=";"+r),s.cssText=n,o=$0.test(n);}}else t&&e.removeAttribute("style");fr in e&&(e[fr]=o?s.display:"",e[Yp]&&(s.display="none"));}const Nc=/\s*!important$/;function Gi(e,t,n){if(Me(n))n.forEach(s=>Gi(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else {const s=E0(e,t);Nc.test(n)?e.setProperty(_s(s),n.replace(Nc,""),"important"):e[s]=n;}}const Fc=["Webkit","Moz","ms"],Ma={};function E0(e,t){const n=Ma[t];if(n)return n;let s=wn(t);if(s!=="filter"&&s in e)return Ma[t]=s;s=Hr(s);for(let i=0;i<Fc.length;i++){const o=Fc[i]+s;if(o in e)return Ma[t]=o}return t}const Uc="http://www.w3.org/1999/xlink";function jc(e,t,n,s,i,o=Ev(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Uc,t.slice(6,t.length)):e.setAttributeNS(Uc,t,n):n==null||o&&!Vf(n)?e.removeAttribute(t):e.setAttribute(t,o?"":En(n)?String(n):n);}function Hc(e,t,n,s,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Jp(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Vf(n):n==null&&a==="string"?(n="",r=!0):a==="number"&&(n=0,r=!0);}try{e[t]=n;}catch{}r&&e.removeAttribute(i||t);}function Jn(e,t,n,s){e.addEventListener(t,n,s);}function A0(e,t,n,s){e.removeEventListener(t,n,s);}const zc=Symbol("_vei");function P0(e,t,n,s,i=null){const o=e[zc]||(e[zc]={}),r=o[t];if(s&&r)r.value=s;else {const[a,l]=I0(t);if(s){const u=o[t]=M0(s,i);Jn(e,a,u,l);}else r&&(A0(e,a,r,l),o[t]=void 0);}}const qc=/(?:Once|Passive|Capture)$/;function I0(e){let t;if(qc.test(e)){t={};let s;for(;s=e.match(qc);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0;}return [e[2]===":"?e.slice(3):_s(e.slice(2)),t]}let La=0;const T0=Promise.resolve(),O0=()=>La||(T0.then(()=>La=0),La=Date.now());function M0(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;jn(L0(s,n.value),t,5,[s]);};return n.value=e,n.attached=O0(),n}function L0(e,t){if(Me(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0;},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const Vc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,D0=(e,t,n,s,i,o)=>{const r=i==="svg";t==="class"?C0(e,s,r):t==="style"?S0(e,n,s):Ur(t)?Zl(t)||P0(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):B0(e,t,s,r))?(Hc(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&jc(e,t,s,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!gt(s))?Hc(e,wn(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),jc(e,t,s,r));};function B0(e,t,n,s){if(s)return !!(t==="innerHTML"||t==="textContent"||t in e&&Vc(t)&&Ue(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return !1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return !1}return Vc(t)&&gt(n)?!1:t in e}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Me(t)?n=>Vi(t,n):t};function R0(e){e.target.composing=!0;}function Wc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")));}const mn=Symbol("_assign"),Ge={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[mn]=hs(i);const o=s||i.props&&i.props.type==="number";Jn(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=ir(a)),e[mn](a);}),n&&Jn(e,"change",()=>{e.value=e.value.trim();}),t||(Jn(e,"compositionstart",R0),Jn(e,"compositionend",Wc),Jn(e,"change",Wc));},mounted(e,{value:t}){e.value=t??"";},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:i,number:o}},r){if(e[mn]=hs(r),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?ir(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||i&&e.value.trim()===l)||(e.value=l));}},Fe={deep:!0,created(e,t,n){e[mn]=hs(n),Jn(e,"change",()=>{const s=e._modelValue,i=ko(e),o=e.checked,r=e[mn];if(Me(s)){const a=su(s,i),l=a!==-1;if(o&&!l)r(s.concat(i));else if(!o&&l){const u=[...s];u.splice(a,1),r(u);}}else if(Po(s)){const a=new Set(s);o?a.add(i):a.delete(i),r(a);}else r(Xp(e,o));});},mounted:Kc,beforeUpdate(e,t,n){e[mn]=hs(n),Kc(e,t,n);}};function Kc(e,{value:t,oldValue:n},s){e._modelValue=t;let i;if(Me(t))i=su(t,s.props.value)>-1;else if(Po(t))i=t.has(s.props.value);else {if(t===n)return;i=js(t,Xp(e,!0));}e.checked!==i&&(e.checked=i);}const Qp={created(e,{value:t},n){e.checked=js(t,n.props.value),e[mn]=hs(n),Jn(e,"change",()=>{e[mn](ko(e));});},beforeUpdate(e,{value:t,oldValue:n},s){e[mn]=hs(s),t!==n&&(e.checked=js(t,s.props.value));}},un={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const i=Po(t);Jn(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?ir(ko(r)):ko(r));e[mn](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,zs(()=>{e._assigning=!1;});}),e[mn]=hs(s);},mounted(e,{value:t}){Gc(e,t);},beforeUpdate(e,t,n){e[mn]=hs(n);},updated(e,{value:t}){e._assigning||Gc(e,t);}};function Gc(e,t){const n=e.multiple,s=Me(t);if(!(n&&!s&&!Po(t))){for(let i=0,o=e.options.length;i<o;i++){const r=e.options[i],a=ko(r);if(n)if(s){const l=typeof a;l==="string"||l==="number"?r.selected=t.some(u=>String(u)===String(a)):r.selected=su(t,a)>-1;}else r.selected=t.has(a);else if(js(ko(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1);}}function ko(e){return "_value"in e?e._value:e.value}function Xp(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const N0={created(e,t,n){Di(e,t,n,null,"created");},mounted(e,t,n){Di(e,t,n,null,"mounted");},beforeUpdate(e,t,n,s){Di(e,t,n,s,"beforeUpdate");},updated(e,t,n,s){Di(e,t,n,s,"updated");}};function F0(e,t){switch(e){case"SELECT":return un;case"TEXTAREA":return Ge;default:switch(t){case"checkbox":return Fe;case"radio":return Qp;default:return Ge}}}function Di(e,t,n,s,i){const r=F0(e.tagName,n.props&&n.props.type)[i];r&&r(e,t,n,s);}const U0=["ctrl","shift","alt","meta"],j0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>U0.some(n=>e[`${n}Key`]&&!t.includes(n))},fn=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(i,...o)=>{for(let r=0;r<t.length;r++){const a=j0[t[r]];if(a&&a(i,t))return}return e(i,...o)})},H0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Zp=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=i=>{if(!("key"in i))return;const o=_s(i.key);if(t.some(r=>r===o||H0[r]===o))return e(i)})},z0=St({patchProp:D0},_0);let Jc;function q0(){return Jc||(Jc=U1(z0))}const qn=(...e)=>{const t=q0().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=W0(s);if(!i)return;const o=t._component;!Ue(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=n(i,!1,V0(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function V0(e){if(e instanceof SVGElement)return "svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return "mathml"}function W0(e){return gt(e)?document.querySelector(e):e}const K0={key:0,class:"ce-custom-url-help"},G0={class:"ce-custom-url-help-body"},J0={key:0},Y0={class:"pure-table pure-table-bordered"},Q0=["onClick"],X0=De({__name:"CustomUrlHelp",setup(e){const t=ie(Yb),n=ie(!1);Wt(async()=>{window.addEventListener("message",i=>{const{event:o}=i.data;o==="customUrlHelp"&&(n.value=!0);},!1);});async function s(i){qt(i.key),re({text:"已复制到剪贴板",icon:"success",timer:1e3});}return (i,o)=>n.value?(E(),I("div",K0,[c("div",G0,[c("h1",null,[o[1]||(o[1]=U(" 自定义菜单变量说明 ")),c("a",{href:"javascript:void(0)",onClick:o[0]||(o[0]=r=>n.value=!1)},"关闭")]),o[3]||(o[3]=c("hr",null,null,-1)),(E(!0),I(Oe,null,Je(t.value,(r,a)=>(E(),I("div",{key:a},[c("h2",null,Y(r.label),1),r.memo?(E(),I("p",J0,Y(r.memo),1)):we("",!0),c("table",Y0,[o[2]||(o[2]=c("thead",null,[c("tr",null,[c("th",{width:"50%"},"变量"),c("th",{width:"50%"},"说明")])],-1)),c("tbody",null,[(E(!0),I(Oe,null,Je(r.items,(l,u)=>(E(),I("tr",{key:u},[c("td",null,[c("span",{class:"ce-variable",onClick:d=>s(l)},Y(l.key),9,Q0)]),c("td",null,Y(l.label),1)]))),128))])])]))),128))])])):we("",!0)}}),je=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},Z0=je(X0,[["__file","CustomUrlHelp.vue"]]),eh=yt.list;function e_(e){return {sizeSorter:!0,sizeSorterDirAttrInterval:100,showSha1:!1,showFolderSizeButton:!0,showOpenDirContextMenu:!0,hoverShowDirContextMenu:!1,showCopyButtonOnPathBar:!1,showGotoButtonOnPathBar:!1,noUpdateDirAfterRename:!1,noReloadAfterMove:!1,afterCreateDirBehavior:"goto",fileSelectorDefaultView:"_",followHistoryState:!1,showOnlyFileFilter:!1,dragToQuickEntry:!1,quickEntryAvoidCovered:!1,makeMoreImageViewable:!1,...e}}async function Qr(){const e=e_(),t=await lt.get(eh,e);return {...e,...t}}async function t_(e){await lt.set(eh,e);}var kn=(e=>(e[e.asc=0]="asc",e[e.desc=1]="desc",e))(kn||{});async function n_(e,t,n){if(!e.showSha1||!n.hash)return;t.addClass("ce-show-sha1");const s=t.find(".file-name"),i=document.createElement("span");i.classList.add("ce-file-sha1","ce-inj"),i.title="文件SHA1,点击复制",i.textContent=n.hash,i.addEventListener("click",async o=>{o.preventDefault(),o.stopPropagation(),qt(n.hash),re({title:"复制SHA1",text:"已复制文件SHA1",icon:"success",timer:1500});}),s.append(i);}async function s_(e,t,n){if(!e.showFolderSizeButton||!n.isDir)return;const s=t.find(".file-size"),i=document.createElement("span");i.classList.add("ce-btn-folder-size","ce-inj"),i.title="点击获取该文件夹大小",i.textContent="大小",i.addEventListener("click",async o=>{o.preventDefault(),o.stopPropagation();try{const r=await Pt(n.id);s.find("span:eq(0)").text(r.size),t.addClass("ce-size-got"),re({title:"获取大小",text:"已获取文件夹大小",icon:"success",timer:1500});}catch(r){console.error(r),re({title:"获取大小失败",text:r.toString(),icon:"error"});return}}),s.append(i);}async function o_(e){if(!e.sizeSorter)return;const t=document.querySelector(".header-size");if(!t||t.classList.contains("ce-injected"))return;const n=t,s=Dt(`
    <a class="btn-sort ce-size-sort" title="显示当前目录下已加载的子文件夹的大小,然后按大小排序">
      <span>排序</span>
      <i icon_rel="file_size" class="icon-sort-asc"></i>
      <i icon_rel="file_size" class="icon-sort-desc"></i>
    </a>
  `);s.addEventListener("click",async i=>{if(i.preventDefault(),i.stopPropagation(),!s.classList.contains("el-size-sort-ing"))try{s.classList.add("ce-size-sort-ing");let o=kn.desc;s.classList.contains("by-desc")?o=kn.asc:o=kn.desc;const r=await zt(!1);await pr(r,o,!1,!1),o===kn.asc?(s.classList.remove("by-desc"),s.classList.add("by-asc")):(s.classList.remove("by-asc"),s.classList.add("by-desc"));}catch(o){console.error(o),re({title:"排序失败",text:o.toString(),icon:"error"});}finally{s.classList.remove("ce-size-sort-ing");}}),n.appendChild(s),n.classList.add("ce-injected");}async function i_(e,t,n=!1){await Qr();const s=await zt(!1),i=await Eo(),o=await zn(!1);console.log("[items]",o),re({html:"正在获取子文件夹大小...",icon:"info",position:"top-end",timer:0}),me.showLoading();for(let r=0;r<o.length;r++){const a=o[r];if(!a.isDir)continue;const l=i.find(`li[cate_id="${a.id}"]`);if(!l.length)continue;const u=l.find(".file-size span:eq(0)");if(u.text()!==""&&!n)continue;const d=await Pt(a.id);me.update({html:`[${r+1} / ${o.length}] 正在获取子文件夹大小:${a.name}`}),u.text(d.size),l.addClass("ce-size-got");}return me.hideLoading(),e&&await r_(s),s}async function pr(e,t,n,s){const i=await Eo();i.find('li[file_type="0"]:not(.ce-size-got)').length>0&&await i_(n);const r=i.find("ul"),a=r.children("li").toArray();a.sort(function(u,d){const h=$(u),g=$(d),v=hc(h.find(".file-size span:eq(0)").text()),b=hc(g.find(".file-size span:eq(0)").text());return t===kn.asc?v-b:b-v});const l=$("<ul></ul>");$.each(a,function(u,d){l.append(d);}),r.replaceWith(l),n?me.update({title:"排序完成",html:`已完成排序: ${t===kn.asc?"小 > 大":"大 > 小"}`,icon:"success"}):re({html:`已完成排序: ${t===kn.asc?"小 > 大":"大 > 小"}`,icon:"success",timer:1500,position:"top-end"});}async function r_(e){me.fire({toast:!0,title:"获取子文件夹大小",html:"获取子文件夹大小完成",icon:"success",showConfirmButton:!0,confirmButtonText:"大 > 小",confirmButtonColor:"#3085d6",showDenyButton:!0,denyButtonText:"小 > 大",denyButtonColor:"#d33",position:"top-end",showCloseButton:!0,closeButtonAriaLabel:"关闭",preConfirm:async()=>(console.log("preConfirm"),pr(e,kn.desc,!0),!1),preDeny:async()=>(console.log("preDeny"),pr(e,kn.asc,!0),!1)});}async function a_(){await yl();const e=await ft("#js_data_list");l_(),new MutationObserver(async([n])=>{n.type==="childList"&&(window.postMessage({event:ht.listRendered}),await yl());}).observe(e,{childList:!0});}async function l_(){if(window.top===window.self)return;const e=document.querySelector("#js_pagination_box");if(!e){console.warn("[list.handleLoadAll] 未找到「#js_pagination_box」元素");return}function t(n){document.querySelector("#js_data_list .list-contents > ul > li")&&n(!0);}e.addEventListener("click",async n=>{n.preventDefault(),n.stopPropagation();const s=n.target;let i=!1;if((s.getAttribute("menu")==="load_all_file"||s.closest('[menu="load_all_file"]'))&&(i=!0),!i)return;console.log("[list.handleLoadAll] 点击了「加载全部」按钮"),await ws(t,500,3e5);const o=document.querySelector("#js_data_list .list-contents > ul");o==null||o.removeAttribute("ce-done2");const r=document.querySelector("#js_data_list");r&&r.querySelectorAll(".list-contents > ul:not([ce-done2]) > li").length&&(o==null||o.setAttribute("ce-done2",""),await yl());});}async function yl(){const e=await Qr();o_(e),c_(e);const t=await _f(!1);for(let n=0;n<t.length;n++){const s=t.eq(n),i=await An(s);await u_(e,s,i);}}async function u_(e,t,n){await n_(e,t,n),await s_(e,t,n);}async function c_(e){if(!e.showOpenDirContextMenu||await zt(!1)===""||vs())return;const n=document.querySelector(".header-name");if(!n||n.classList.contains("ce-injected"))return;const s=n,i=document.createElement("a");i.classList.add("ce-open-dir-context-menu"),i.title="打开当前目录的功能菜单",i.innerHTML="<span>目录功能菜单</span>";let o;const r=async a=>{console.log(a.clientX,a.clientY),o&&clearTimeout(o),a.preventDefault(),a.stopPropagation();try{const l=Zt(),u=await zt(!1),d=i.getBoundingClientRect();l.Core.FileMenu.FileRight("1",u,!1,d.x,d.y+8,void 0,!1);}catch(l){console.error(l);}};i.addEventListener("click",r),e.hoverShowDirContextMenu&&(i.addEventListener("mouseenter",async a=>{o=setTimeout(async()=>{await r(a);},300);}),i.addEventListener("mouseleave",()=>{o&&clearTimeout(o);})),s.appendChild(i),s.classList.add("ce-injected");}async function th(e,t,n){n.stopPropagation(),n.preventDefault();try{const s=await bs(!1,1e3);if(!s)return;const i=await An(s),o=await So(),r=await ii(i,e,o);if(r.includes("v.anxia.com")){const l=(await zn(!1)).find(u=>u.playDuration&&u.playDuration>0);Df(i.id,l);return}if(console.log("[play url]",r),!r)throw new Error("无法获取有效的播放链接!");window.open(r,"_blank","noopener noreferrer");}catch(s){console.error(s),re({title:"播放失败",text:s.toString(),icon:"error"});}}async function d_(e,t){const n=[];for(const s of t){const i=Sr(e,{key:`_ce_p_${s.key}`,label:s.label,icon:s.icon,title:s.memo,onClick:async(o,r)=>{th(s,o,r);}});n.push(i);}return n}async function f_(){const e=await yn(),t=await Jl(e);return new en({key:"_play_with_x",label:t.defaultPlayer.label,icon:t.noRealDefault?"icon-operate ifo-video-play":t.defaultPlayer.icon,title:t.defaultPlayer.memo,onClick:async(n,s)=>{console.log("[dirContextMenuPlayAllWithX] me",n),!t.noRealDefault&&th(t.defaultPlayer,n,s);},subItems:[...await d_(av,t.customUrlItems)]})}async function p_(){return new en({key:"_rename_dir",label:"重命名文件夹",icon:"icon-operate ifo-rename",title:'重命名当前目录,支持"高级模式"',onClick:async(e,t)=>{await e.closeMenu();const n=await bs();n&&unsafeWindow.Core.Dir.Rename("1",n.attr("cate_id"),n.attr("title"));}})}async function h_(){return new en({key:"_dc_view_in_clouddrive",label:"在CloudDrive中查看",icon:"icon-operate ifo-exportdir",title:"在CloudDrive2 Web页面中查看",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault(),await e.closeMenu();const n=await zt(!1);if(!n||n==="0"){await or({id:"0",name:"根目录",isDir:!0});return}const s=await bs(!1,1e3);if(!s)return;const i=await An(s);await or(i);}})}async function m_(){return new en({key:"_move_dir",label:"移动文件夹",icon:"icon-operate ifo-move",title:"移动当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await bs();n&&await Wl(n,"move");}})}async function g_(){return new en({key:"_del_dir",label:"删除文件夹",icon:"icon-operate ifo-remove",title:"删除当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await bs();if(!n)return;const s=await _i();unsafeWindow.Core.FileAPI.DeleteFile([n],i=>{n.remove(),s.find("#js_top_header_file_path_box .top-file-path > .file-path").children(":last").prev()[0].click();},!0);}})}async function y_(){return new en({key:"_copy_dir",label:"复制文件夹",icon:"icon-operate ifo-copy",title:"复制当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await bs();n&&await Wl(n,"set_copy");}})}async function w_(){return new en({key:"_copy_dir_to",label:"复制文件夹到",icon:"icon-operate ifo-copyto",title:"复制当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await bs();n&&await Wl(n,"copy_list");}})}async function b_(){return new en({key:"_dir_copy_names",label:"名称路径",icon:"icon-operate ifo-copy",subItems:[await Bi("完整名称",rn.full),await Bi("不含后缀",rn.pure),await Bi("完整名称,去重",rn.fullUnique),await Bi("不含后缀,去重",rn.pureUnique),await v_(),new lv({}),await Yc("路径(Unix)",an.unixPath),await Yc("路径(Windows)",an.winPath)]})}async function v_(e=!0){return new en({key:"_dir_copy_sha1",label:"文件sha1",icon:"icon-operate ifo-copy",title:"复制文件sha1"+(e?"。格式为 xxx//yyy,xxx为sha1,yyy为文件名":""),onClick:async(t,n)=>{await t.closeMenu();const s=await zn(!1),i=[];for(const o of s)o.isFile&&i.push(o.hash+(e?`//${o.name}`:""));qt(i.join(`
`)),re({title:"复制名称",text:`已复制当前目录下已加载的所有文件sha1,数量: ${i.length}`,icon:"success"});}})}async function __(){return new en({key:"view_dir_attribute",label:"查看属性",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu();const n=await bs();n&&Zt().Core.FileAPI.getAttribute(n,{showPlayLongChange:function(s,i,o){hb().CACHE.FileMain.List.ResetPlayLongText(s,i,o);}},function(){console.log("查看属性 ok");});}})}async function Bi(e,t){return new en({key:`_d_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制当前目录下已加载的所有文件名称",onClick:async(n,s)=>{let o=(await zn(!1)).map(r=>r.name);o=await Tr(o,t),qt(o.join(`
`)),re({title:"复制名称",text:`已复制选中文件名。数量:${o.length},复制类型:${e}`,icon:"success"});}})}async function Yc(e,t){return new en({key:`_d_copy_paths_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制当前目录下已加载的所有文件路径",onClick:async(n,s)=>{await n.closeMenu();const i=await zn(!1);let o=[];re({text:"正在获取文件路径...",timer:0}),me.showLoading();try{o=await Rf(i,t),me.close();}catch(r){console.error(r),re({text:`获取文件路径失败: ${r}`,timer:6e4,icon:"error"});return}finally{me.hideLoading();}qt(o.join(`
`)),re({title:"复制路径",text:`已复制文件的路径。数量:${o.length},复制类型:${e}`,icon:"success"});}})}async function x_(){return new en({key:"show_sub_folder_size",label:"子文件夹大小",title:"显示当前目录下已加载的所有子文件夹的大小,并进行排序",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu(),await pr("",kn.desc,!0);}})}async function Qc(e,t){return new Br({key:`_l_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,s)=>{await n.closeMenu();const i=await kf();if(!i||!i.n){re({text:"无法获取名称",timer:1200});return}let o=[i.n];o=await Tr(o,t),qt(o.join(`
`)),re({title:"复制名称",text:"已复制选中文件名",icon:"success"});}})}async function Ri(e,t){return new Br({key:`_l_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制路径",onClick:async(n,s)=>{await n.closeMenu();const i=await kf();if(!i||!i.n){re({text:"无法获取路径",timer:1200});return}const o=Gs(i),r=await Ir(o),a=await Or(o,r,t);qt(a),re({title:"复制路径",text:"已复制文件路径",icon:"success"});}})}async function C_(){return new Br({key:"_lc_view_in_clouddrive",label:"在CloudDrive中查看",icon:"icon-operate ifo-exportdir",title:"在CloudDrive2 Web页面中查看",onClick:async(e,t)=>{await e.closeMenu();const n=await Cf();if(!n||!n.length){re({text:"无法获取文件信息",timer:1200});return}const s=await An(n);await or(s);}})}let k_=[];async function $_(){const e=await yn(),t=await Jl(e);return new Rr({key:"_play_with_x_d",label:t.defaultPlayer.label,injectDecider:hv,title:t.defaultPlayer.memo,onClick:async(n,s)=>{t.noRealDefault||Bf(t.defaultPlayer,e,n,s);},subItems:[...await Kb(Ao,t.customUrlItems)]})}async function S_(){const e=[...(await Of()).filter(t=>t.enabled),...k_.filter(t=>t.enabled),...(await Mr(Us.search)).filter(t=>t.enabled)];return new Rr({key:"_search_with_name_d",label:"搜索",icon:"",title:"使用名称搜索",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const s=$(n.target).closest("li"),i=await vi(s),o=Kl({search_value:i.n,cid:await zt()});window.open(o,"_blank","noopener noreferrer");},subItems:[...await Wb(Ao,e)]})}async function E_(){return new Ao({key:"_lh_view_in_clouddrive",label:"在CloudDrive中查看",icon:"icon-operate ifo-exportdir",title:"在CloudDrive2 Web页面中查看",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=$(t.target).closest("li"),s=await An(n);await or(s);}})}async function A_(e){const t=[await Xc("完整名称",rn.full),await Xc("不含后缀",rn.pure),await P_(!0),new bc({}),await Ni("路径(Unix)",an.unixPath),await Ni("路径(Windows)",an.winPath),await Ni("上级路径(Unix)",an.unixParentPath),await Ni("上级路径(Windows)",an.winParentPath)];return e.viewInCloudDrive&&t.push(new bc({}),await E_()),new Rr({key:"_lh_copy_name_path",label:"名称路径",title:"复制文件名称路径",onClick:async(n,s)=>{},subItems:t})}async function P_(e=!0){return new Ao({key:"_lh_copy_sha1",label:"文件sha1",icon:"icon-operate ifo-copy",title:"复制文件sha1"+(e?"。格式为 xxx//yyy,xxx为sha1,yyy为文件名":""),onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const s=$(n.target).closest("li"),i=await An(s);if(i.isDir){re({text:"该功能仅对文件有效",icon:"warning",timer:2e3});return}const o=i.hash+(e?`//${i.name}`:"");qt(o),re({title:"复制文件sha1",text:"已复制文件sha1",icon:"success",timer:1e3});}})}async function Xc(e,t){return new Ao({key:`_lh_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,s)=>{s.stopPropagation(),s.preventDefault();const i=$(s.target).closest("li");let r=[(await vi(i)).n];r=await Tr(r,t),qt(r.join(`
`)),re({title:"复制名称",text:`已复制选中文件名,复制类型:${e}`,icon:"success",timer:1e3});}})}async function Ni(e,t){return new Ao({key:`_lh_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,s)=>{s.stopPropagation(),s.preventDefault();const i=$(s.target).closest("li"),o=await An(i),r=await Ir(o),a=await Or(o,r,t);qt(a),re({title:"复制路径",text:`已复制选中路径,复制类型:${e}`,icon:"success",timer:1e3});}})}async function I_(){return new Rr({injectDecider:pv,key:"_open_in_new_tab",label:"新标签页",icon:"",title:"在新标签页打开",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=$(t.target).closest("li"),s=await An(n);if(!s||!s.id){re({text:"无法获取目录ID",timer:1200});return}const i=Ds(s.id);window.open(i,"_blank","noopener noreferrer");}})}async function T_(){return new Ql({key:"_s_smart_mkdir",label:"同名目录",icon:"icon-operate ifo-move",title:"将选中的文件移动到同名目录",onClick:await Gb()})}async function O_(){return new Ql({key:"_s_copy_names_paths",label:"名称路径",icon:"icon-operate ifo-copy",showIcon:!1,title:"复制选中文件的名称路径",onClick:async(e,t)=>{},subItems:[await Fi("完整名称",rn.full),await Fi("不含后缀",rn.pure),await Fi("完整文件名,去重",rn.fullUnique),await Fi("不含后缀,去重",rn.pureUnique),new tl({}),await Zc(!1,!0),await Zc(!0,!0),new tl({}),await ed("路径(Unix)",an.unixPath),await ed("路径(Windows)",an.winPath)]})}async function Zc(e,t=!0){return new ri({key:"_s_copy_sha1"+(e?"_u":""),label:"文件sha1"+(e?",去重":""),icon:"icon-operate ifo-copy",showIcon:!1,title:"复制文件sha1"+(t?"。格式为 xxx//yyy,xxx为sha1,yyy为文件名":""),onClick:async(n,s)=>{const i=await zn(!0),o=new Set,r=[];for(const a of i)a.hash&&(e&&o.has(a.hash)||(o.add(a.hash),r.push(a.hash+(t?`//${a.name}`:""))));qt(r.join(`
`)),re({title:"复制文件sha1",text:`已复制选中文件sha1。数量:${r.length}`,icon:"success",timer:1e3});}})}async function Fi(e,t){return new ri({key:`_s_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",showIcon:!1,title:e,onClick:async(n,s)=>{let o=(await zn(!0)).map(r=>r.name);o=await Tr(o,t),qt(o.join(`
`)),re({title:"复制名称",text:`已复制选中文件名。数量:${o.length},复制类型:${e}`,icon:"success",timer:1e3});}})}async function ed(e,t){return new ri({key:`_s_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",showIcon:!1,title:e,onClick:async(n,s)=>{const i=await zn(!0);let o=[];re({text:"正在获取已选文件路径...",timer:0}),me.showLoading();try{o=await Rf(i,t),me.close();}catch(r){console.error(r),re({text:`获取已选文件路径失败: ${r}`,timer:6e4,icon:"error"});return}finally{me.hideLoading();}qt(o.join(`
`)),re({title:"复制路径",text:`已复制选中文件的路径。数量:${o.length},复制类型:${e}`,icon:"success",timer:1e3});}})}async function M_(){const e=await zn(!0);if(!e.length)return;const t=Date.now().toString(),n=unsafeWindow.open(xf("xxx"),t);await ln(1e3);let s=10;for(;s>0;)n==null||n.postMessage({event:"play",body:{id:t,files:e}},"https://v.anxia.com"),await ln(1e3),s--;}async function L_(){const e=await yn(),t=await Jl(e);return new Ql({key:"_s_play_with_x_d",label:t.defaultPlayer.label,title:t.defaultPlayer.memo,onClick:async(n,s)=>{console.log("[selectionMenuPlayWithDropdown] me",n),!t.noRealDefault&&nh(t.defaultPlayer,n,s);},subItems:[...await B_(ri,t.customUrlItems),new tl({}),new ri({label:"关于选中播放",onClick:async(n,s)=>{s.stopPropagation(),s.preventDefault(),re({title:"关于选中播放",html:`
              <p>点「在线播放」会打开115播放页面播放选中的视频。</p><br>
              <p>如果是点击调用本地播放器播放:<p>
              <p>原理: 生成m3u8文件,上传m3u8文件到115,调用播放该m3u8的CloudDrive2直链。<p>
              <p>设定: m3u8默认放在网盘根目录下的「.ce-m3u8-temp」目录下,不会自动清理。<p>
              <p>作为使用者需做的: 在CloudDrive2里设置「.ce-m3u8-temp」目录缓存时间为1秒。</p>
              <p class="text-info" style="font-size:12px;">这个目录会在首次播放时自动创建,如果想提前设置目录缓存时间,可以自己创建。另外,可以在「设置 - 菜单设置 - 全局设置」中修改「M3U8临时目录」以设置目录位置。</p>
              <br><p class="text-danger">导致播放失败的可能: CloudDrive2目录缓存工作异常,导致请求不到m3u8文件。</p>
            `,showConfirmButton:!0,width:600,timer:18e5});},icon:"data-text:❓"})]})}async function D_(e){if(e=e.trim(),!e)throw new Error("m3u8临时目录路径为空!");const t=await Ab(e);if(t.id)return console.log("[ensureM3u8TempDir] result:",t),t.id;throw new Error("创建m3u8临时目录失败!")}async function nh(e,t,n){if(n.stopPropagation(),n.preventDefault(),t.key==="_ce_p_p_builtin_online"||e.key==="p_builtin_online"){await M_();return}const s=await yn();try{let i=await zn(!0);if(i=i.filter(g=>g.isDir||g.isVideo||g.isImage),i.length===0){re({title:"播放失败",text:"没有可以播放的目录或媒体文件!",icon:"error",timer:2e3});return}const o=await So();if(i.length===1){const g=i[0],v=await ii(g,e,o);window.open(v,"_blank","noopener noreferrer");return}const r=await D_(s.m3u8TempDir),a=await Eb(i,r);console.log("[selection.buildPlayMenuItems generatePlaylistOn115]",a);const l=a.data,u={id:l.file_id,name:l.file_name,parentId:l.cid,sizeBytes:l.file_size,pickCode:l.pick_code,isDir:!1,isFile:!0},d=nr([s.m3u8TempDir,u.name],us.unix);re({title:"检查m3u8文件",text:"正在检查m3u8文件是否已准备就绪...",icon:"info",timer:0}),me.showLoading(),await Qw(o,d,!0,1e3,6e4),re({icon:"success",text:"m3u8文件已准备就绪,即将开始播放..."});const h=await ii(u,e,o);window.open(h,"_blank","noopener noreferrer");}catch(i){console.error(i),re({title:"播放失败",text:i.toString(),icon:"error",timer:6e4,showConfirmButton:!0});}finally{me.hideLoading();}}async function B_(e,t){const n=[];for(const s of t){const i=Sr(e,{key:`_ce_p_${s.key}`,label:s.label,icon:s.icon,title:s.memo,onClick:async(o,r)=>{nh(s,o,r);}});n.push(i);}return n}const R_={label:"当前目录右键菜单",key:"context",hiddenStyles:[{selector:"div.context-menu.menu-upward#js_float_content li[val={key}]",css:"display: none !important;"}],items:[{label:"上传文件",key:"upload"},{label:"新建文件夹",key:"add_dir"}]},N_={label:"选中项菜单",key:"selection",hiddenStyles:[{selector:"div.list-operate.lo-right li[menu={key}]",css:"width: 0 !important; opacity: 0 !important; padding: 0 !important; margin: 0 !important;"}],items:[{label:"置顶",key:"setTop"},{label:"取消置顶",key:"calcelSetTop"},{label:"下载",key:"download"},{label:"移动",key:"move"},{label:"标签",key:"edit_file_label"},{label:"重命名",key:"edit_name"},{label:"备注",key:"edit"},{label:"星标",key:"star"},{label:"删除",key:"delete"},{label:"分享",key:"public_share"},{label:"设置共享",key:"setShare"},{label:"取消共享",key:"cancelShare"},{label:"复制",key:"set_copy"},{label:"复制到...",key:"copy_list"},{label:"加密隐藏",key:"hide_file"},{label:"取消加密",key:"show_file"},{label:"评分",key:"file_score"},{label:"设为快捷入口",key:"set_category"},{label:"取消快捷入口",key:"unset_category"},{label:"显示时长",key:"show_play_long"},{label:"修改封面",key:"cover"},{label:"一键排重",key:"same"},{label:"导出目录树",key:"export_dir"},{label:"显示属性",key:"attribute"},{label:"转存至相册",key:"trans_to_album"}]},F_={label:"列表项右键菜单",key:"context",hiddenStyles:[{selector:"div.context-menu.menu-upward li[val={key}] a",css:"display: none !important;"}],items:[{label:"打开文件",key:"view"},{label:"打开文件夹",key:"open_dir"},{label:"下载文件",key:"download"},{label:"下载文件夹",key:"download_dir"},{label:"打包下载",key:"bale_download"},{label:"刷新",key:"refresh"},{label:"复制",key:"set_copy"},{label:"复制到...",key:"copy_list"},{label:"加密隐藏",key:"hide_file"},{label:"取消加密",key:"show_file"},{label:"评分",key:"file_score"},{label:"显示时长",key:"show_play_long"},{label:"取消时长",key:"hide_play_long"},{label:"添加到我听",key:"listen"},{label:"美化",key:"magic"},{label:"修改封面",key:"cover"},{label:"删除封面",key:"del_cover"},{label:"一键排重",key:"same"},{label:"移动",key:"move"},{label:"重命名",key:"edit_name"},{label:"备注",key:"edit"},{label:"显示属性",key:"attribute"},{label:"删除",key:"delete"},{label:"播放器播放",key:"player"},{label:"转存到相册",key:"trans_to_album"},{label:"举报",key:"report"}]},U_={label:"列表项悬浮菜单",key:"hover",hiddenStyles:[{selector:"div.file-opr[rel=menu] a[menu={key}]",css:"width: 0 !important; opacity: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important;"},{selector:"div.context-menu li[menu={key}] a",css:"display: none !important;"}],items:[{label:"置顶",key:"setTop"},{label:"取消置顶",key:"calcelSetTop"},{label:"星标",key:"star"},{label:"下载文件",key:"download_one"},{label:"下载文件夹",key:"download_dir_one"},{label:"移动",key:"move"},{label:"标签",key:"edit_file_label"},{label:"重命名",key:"edit_name"},{label:"备注",key:"edit"},{label:"删除",key:"delete"},{label:"分享",key:"public_share"},{label:"取消加密",key:"show_file"},{label:"评分",key:"file_score"},{label:"设置共享",key:"setShare"},{label:"取消共享",key:"cancelShare"},{label:"复制",key:"set_copy"},{label:"显示时长",key:"show_play_long"},{label:"修改封面",key:"cover"},{label:"一键排重",key:"same"},{label:"导出目录树",key:"export_dir"},{label:"显示属性",key:"attribute"},{label:"转存至相册",key:"trans_to_album"},{label:"设为快捷入口",key:"set_category"},{label:"取消快捷入口",key:"unset_category"}]},sh=yt.hiddenOfficialMenuKeys;async function oh(){return await lt.get(sh,[])}async function j_(e,t=!1){var n;await lt.set(sh,e),t&&(unsafeWindow.postMessage({event:ht.officialMenuStyleChange},"*"),(n=unsafeWindow.frames.wangpan)==null||n.postMessage({event:ht.officialMenuStyleChange},"*"));}async function H_(e){const t=[];return e.forEach(n=>{n.items.forEach(s=>{s.hidden&&t.push(`${n.key}_${s.key}`);});}),t}async function ih(){const e=[N_,F_,U_,R_],t=await oh();return e.forEach(n=>{n.items.forEach(s=>{const i=`${n.key}_${s.key}`;t.includes(i)?s.hidden=!0:s.hidden=!1;});}),e}async function z_(){const e=await ih(),t=[];return e.forEach(n=>{n.hiddenStyles.forEach(s=>{const i=[];n.items.forEach(o=>{o.hidden&&i.push(s.selector.replace("{key}",o.key));}),i.length&&t.push(i.join(`,
`)+" { "+s.css+" }");});}),t.join(`
`)}async function td(){const e="cloud115EnhancerOfficialMenuStyle",t=await z_();let n=document.getElementById(e);if(n){n.innerHTML=t;return}n=document.createElement("style"),n.id=e,n.innerHTML=t,document.body.appendChild(n);}async function q_(){const{host:e,search:t}=location;if(!e.includes("115.com"))return;console.log("[Cloud115 Enhancer - menu] running..."),V_(),document.addEventListener(Sn.EVENT_CLOSE_MENU,s=>{$("#"+s.detail.menu.key).closest(".context-menu").hide();});const n=await yn();n.enabled&&(W_(n),await Lf(n),window.top===window.self&&K_(n),J_(n),(Xn()||vs())&&(G_(n),Y_(n),Vb(n)));}async function V_(){const e="ceCustomUrlHelp",t=document.createElement("div");t.id=e,document.body.appendChild(t),qn(Z0).mount(`#${e}`);}async function W_(e){e.manageOfficialMenus&&(td(),window.addEventListener("message",async t=>{t.data.event===ht.officialMenuStyleChange&&(console.log("[Cloud115 Enhancer - menu] officialMenuStyleChange",location.href),await ln(1e3),console.log(await oh()),td());}));}const rh=async(e,t)=>{};async function K_(e){const{[qe.dirContext]:t}=e;if(!t.enabled)return;const n=[...t.topLevelMenus,"play","copyNames"],s=[],i=[],o=new Map;t.rename&&o.set("rename",await p_()),t.delete&&o.set("delete",await g_()),t.play&&o.set("play",await f_()),t.copyNames&&o.set("copyNames",await b_()),t.move&&o.set("move",await m_()),t.viewProp&&o.set("viewProp",await __()),t.showSubFolderSize&&o.set("copyToSpecified",await x_()),t.copy&&o.set("copy",await y_()),t.copyTo&&o.set("copyTo",await w_()),t.viewInCloudDrive&&o.set("viewInCloudDrive",await h_());const r=o.keys();for(const l of r){const u=o.get(l);u&&(n.includes(l)?s.push(u):i.push(u));}i.length>1?s.push(new en({key:"_dir_more",label:"更多",icon:"icon-operate ifo-open",onClick:rh,subItems:i})):i.length===1&&s.push(i[0]),await new uv({items:s,siblingSelector:'[val="upload"]',position:Ns.before}).inject(),$(".ce-menu-parent .ce-menu-trigger").on("mouseover",function(){$(this).find(".ce-menu-dropdown").show();}).on("mouseout",function(){$(this).find(".ce-menu-dropdown").hide();});}async function G_(e){const{[qe.listItemHover]:t}=e;if(!t.enabled)return;const n=[];t.openInNewTab&&n.push(await I_()),t.search&&n.push(await S_()),t.play&&n.push(await $_()),t.copyNames&&n.push(await A_(t)),new dv({items:n,position:Ns.after,siblingSelector:'[menu="move"], [menu="delete"]'}).inject();}async function J_(e){const{[qe.listItemContext]:t}=e;if(!t.enabled)return;const n=[],s=[];t.copyNames&&s.push(await Qc("完整名称",rn.full),await Qc("不含后缀",rn.pure),new wc({}),await Ri("路径(Unix)",an.unixPath),await Ri("路径(Windows)",an.winPath),await Ri("上级路径(Unix)",an.unixParentPath),await Ri("上级路径(Windows)",an.winParentPath)),t.viewInCloudDrive&&s.push(new wc({}),await C_()),s.length&&n.push(new Br({key:"_list_item_copy_name_path",label:"名称路径",icon:"icon-operate ifo-copy",onClick:rh,subItems:s})),new cv({items:n,position:Ns.after,siblingSelector:'[val="refresh"]',useObserver:!0,observeTarget:document.body,disposeObserverAfterInjection:!1}).inject();}async function Y_(e){const{[qe.selection]:t}=e;if(!t.enabled)return;const n=[];vs()||t.moveToSelfNameDir&&n.push(await T_()),t.copyNames&&n.push(await O_()),t.play&&n.push(await L_()),new fv({items:n,position:Ns.before,siblingSelector:"ul li"}).inject();}const ah=yt.offline;var Ji=(e=>(e.name="name",e.nameRegex="nameRegex",e.infoHash="infoHash",e.url="url",e))(Ji||{});const Q_={name:"名称",nameRegex:"名称正则",infoHash:"哈希",url:"链接"};var Ws=(e=>(e.selection="ce-offline-selection",e.configChanged="ce-offline-config-changed",e.searchPageChanged="ce-offline-search-page-changed",e))(Ws||{});function X_(e){return {onlyMagnetEd2k:!1,enableOptimization:!0,reqInterval:500,maxPage:0,showInfoHash:!0,enableListManagement:!0,fixGotoPage:!1,enableSearcher:!0,searchMaxPage:5,searchKeywordType:"name",searchStatus:Yt.any,searchStopOnFound:!1,searchReqInterval:10,noGotoTaskPage:!0,...e}}async function ms(){const e=X_(),t=await lt.get(ah,e);return {...e,...t}}async function lh(e){await lt.set(ah,e),window.postMessage({event:"ce-offline-config-changed",body:JSON.parse(JSON.stringify(e))},"*");}var Z_={name:"115不大助手",version:"0.7.28",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"http://greasyfork.icu/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};async function ex(e){const t=await ft("#js-warp"),n=t.querySelectorAll("li[complete]");if(n.length>0)for(const i of Array.from(n))await nd(i,e);ox(e),new MutationObserver(async([i])=>{if(i.type==="childList"){i.addedNodes.forEach(async a=>{await nd(a,e);});const o=document.querySelector(".ce-checkbox-all input"),r=await Xr();if(!r.length)o.checked=!1,o.indeterminate=!1;else {const a=t.querySelectorAll("li[complete]");o.checked=r.length===a.length,o.indeterminate=!o.checked;}await Zr(r);}}).observe(t,{childList:!0});}async function tx(e){const t=e;return {complete:t.getAttribute("complete"),cate_id:t.getAttribute("cate_id"),delete_id:t.getAttribute("delete_id"),status:t.getAttribute("status"),suffix:t.getAttribute("suffix"),name:t.getAttribute("name"),hash:t.getAttribute("hash")}}async function nd(e,t){const n=e,s=await tx(e);ix(n,t,s),nx(n,t,s),sx(n,t,s);}async function nx(e,t,n){if(!t.showInfoHash||e.querySelector(".info-hash"))return;const s=e.querySelector(".file-name"),i=document.createElement("div");i.classList.add("info-hash"),i.textContent=n.hash,i.title=`点击复制${n.hash}`,s.after(i),i.addEventListener("click",()=>{yo(n.hash,"text"),re({text:"已复制",icon:"success",timer:800});});const o=e.querySelector(".desc-tips");o&&o.style.display!=="none"&&e.classList.add("ce-task-trouble");}async function sx(e,t,n){const s=e.querySelector(".file-operate");if(s.querySelector(".ce-buttons"))return;const i=document.createElement("span");i.className="ce-buttons";const o=Dt(`
    <a target="_blank" class="pure-button button-mini button-info">打开</a>
  `);o.href=Ds(n.cate_id),o.title="在新标签页打开目录",i.append(o),s.prepend(i);}async function ox(e){if(!e.enableListManagement)return;const t=await ft("#js-main .header-name");let n=t.querySelector(".ce-checkbox-all");n||(n=document.createElement("div"),n.classList.add("ce-checkbox"),n.classList.add("ce-checkbox-all"),n.innerHTML=`
      <input type="checkbox"/>
    `,t.prepend(n)),n.addEventListener("click",()=>{const s=n.querySelector("input").checked;document.querySelectorAll("#js-warp li").forEach(o=>{const r=o.querySelector("input");r.checked=s,o.classList.toggle("ce-selected",s);}),Xr().then(o=>{Zr(o);});});}async function ix(e,t,n){if(!t.enableListManagement||e.querySelector(".ce-checkbox"))return;const s=e.querySelector(".file-name-wrap"),i=document.createElement("div");i.classList.add("ce-checkbox"),i.innerHTML=`
    <input type="checkbox" data-id="${n.hash}" />
  `,s.prepend(i),e.classList.add("ce-show-checkbox"),i.addEventListener("click",async o=>{o.shiftKey?await ax(o,e):await rx(o,e);});}async function rx(e,t){t.classList.toggle("ce-selected");const n=document.querySelector(".ce-checkbox-all input"),s=await ch();let i=0;for(const r of s)r.classList.contains("ce-selected")&&i++;const o=i===s.length;n.checked=o,n.indeterminate=!o&&i>0,Xr().then(r=>{Zr(r);});}async function ax(e,t){const n=await ch(),s=n.indexOf(t);let i=-1;for(let d=0;d<s;d++)if(n[d].classList.contains("ce-selected")){i=d;break}if(i===-1){for(let d=n.length-1;d>s;d--)if(n[d].classList.contains("ce-selected")){i=d;break}}i=i===-1?s:i;const o=Math.min(i,s),r=Math.max(i,s);let a=0;for(let d=0;d<n.length;d++){const h=n[d],g=h.querySelector(".ce-checkbox input"),v=d>=o&&d<=r;g.checked=v,v&&a++,h.classList.toggle("ce-selected",v);}const l=o===0&&r===n.length-1,u=document.querySelector(".ce-checkbox-all input");u.checked=l,u.indeterminate=!l&&a>0,Xr().then(d=>{Zr(d);});}async function uh(e){var n;const t={info_hash:e.getAttribute("hash"),status:Number(e.getAttribute("status")),name:e.getAttribute("name"),file_id:e.getAttribute("cate_id"),delete_file_id:e.getAttribute("delete_id"),url:((n=e.querySelector(".file-operate a[cp_href]"))==null?void 0:n.getAttribute("cp_href"))||""};return t.name||(t.name=e.querySelector(".file-name").textContent.trim()),t}async function ch(e){const t=document.querySelectorAll("#js-warp li"),n=[];return t.forEach(async s=>{const i=s;n.push(i);}),n}async function Xr(){const e=document.querySelectorAll("#js-warp li"),t=[];return e.forEach(async n=>{const s=n;if(s.classList.contains("ce-selected")){const i=await uh(s);t.push(i);}}),t}async function Zr(e){window.postMessage({event:Ws.selection,body:e},"*");}async function wl(e){document.querySelectorAll("#js-warp li").forEach(async n=>{const s=n,i=s.getAttribute("hash");e.includes(i)&&gf(s);});}async function lx(e,t,n,s){var v;const i=[],o=n.maxPage||5;let r="",a=null,l="",u="",d="";n.name!==void 0&&(r=n.caseSensitive?n.name:n.name.toLowerCase()),n.nameRegex!==void 0&&(a=new RegExp(n.nameRegex)),n.infoHash!==void 0&&(l=n.caseSensitive?n.infoHash:n.infoHash.toLowerCase()),n.url!==void 0&&(u=n.caseSensitive?n.url:n.url.toLowerCase()),n.status!==void 0&&n.status!==Yt.any&&n.status.toString()!==""&&(d=n.status.toString());let h=n.stopOnFound||!1;(l||u)&&(h=!0);let g=-1;for(let b=1;b<=o&&!(g>-1&&b>g);b++){window.postMessage({event:Ws.searchPageChanged,body:b},"*");const _=await $f(b,e,t);g===-1&&(g=_.page_count);const B=_.tasks;for(const L of B){const F=n.caseSensitive?L.name:L.name.toLowerCase(),O=n.caseSensitive?L.info_hash:L.info_hash.toLowerCase(),D=n.caseSensitive?L.url:(v=L.url)==null?void 0:v.toLowerCase(),j=r&&n.fuzzyName?F.includes(r):!1,H=a?a.test(F):!1,K=l&&O===l,fe=u&&D===u;if((d?d===L.status.toString():!0)&&(j||H||K||fe)&&(i.push(L),h))break}if(h&&i.length)break}return i}async function ux(){if(!(await ms()).fixGotoPage)return;const t=await ft("#js-page");if(!t){console.warn("[fixGotoPage] 找不到`#js-page`");return}const n=async r=>{if(r.key!=="Enter")return;const a=r.target,l=parseInt(a.value);if(isNaN(l)){a.select();return}parent.window.Core.OFFL5Plug.ChangePage(l);},s=async(r=!1)=>{const a=t.querySelector('input[rel="page_jump"]');if(!a)return;const l=document.createElement("input");l.setAttribute("rel","page_jump"),l.type="text",l.style.backgroundColor="#fefcea",l.title=`这是 ${Z_.name} 替换的输入框,如果想恢复原有的输入框,请在「离线设置」中关闭「修复输入页码跳转」选项`,l.addEventListener("keydown",n),a.insertAdjacentElement("beforebegin",l),a.remove(),r&&l.focus();},i=vt(async r=>{s(!0);},50),o=new MutationObserver(async([r])=>{r.type==="childList"&&i(r);});s(!1),o.observe(t,{childList:!0});}async function cx(e){const t=Zt();if(!e.noGotoTaskPage||window!==window.top||t.Core.OFFL5Plug)return;async function n(s){t.Core&&s(!0);}try{await ws(n,250,3e4),t.Core.OFFL5Plug||t.$.getScript("https://cdnres.115.com/site/static/plug/offline_wl/offline5.0.js",()=>{t.Core.OFFL5Plug.AddClient({});});}catch(s){throw new Error(`[disableGotoTaskPage] wait Core failed:${s.message}`)}}const dx={class:"ce-config ce-offline-config"},fx={class:"pure-form pure-form-aligned offline-exporter-config-form"},px={class:"pure-control-group"},hx={class:"pure-control-group"},mx={class:"pure-control-group"},gx={class:"pure-control-group"},yx={class:"pure-control-group"},wx={class:"pure-control-group"},bx={class:"pure-control-group"},vx=De({__name:"Config",async setup(e){let t,n;const s=ie(([t,n]=Xt(()=>ms()),t=await t,n(),t));return It(async()=>{}),mt(s,vt(async i=>{await lh(i),re({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},500),{deep:!0}),(i,o)=>(E(),I("div",dx,[c("form",fx,[c("fieldset",null,[c("div",px,[o[7]||(o[7]=c("label",{for:"noGotoTaskPage"},"添加任务后不跳转",-1)),oe(c("input",{id:"noGotoTaskPage",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=r=>s.value.noGotoTaskPage=r)},null,512),[[Fe,s.value.noGotoTaskPage]]),o[8]||(o[8]=c("div",{class:"pure-form-message text-success"}," 官方的添加离线任务在添加任务后可能会跳转到任务列表页,开启此选项可以避免跳转。 ",-1))]),c("div",hx,[o[9]||(o[9]=c("label",{for:"enableListManagement"},"启用批量管理",-1)),oe(c("input",{id:"enableListManagement",type:"checkbox","onUpdate:modelValue":o[1]||(o[1]=r=>s.value.enableListManagement=r)},null,512),[[Fe,s.value.enableListManagement]]),o[10]||(o[10]=c("div",{class:"pure-form-message text-success"}," 可以选中多个任务进行操作,支持shift多选。 ",-1))]),c("div",mx,[o[11]||(o[11]=c("label",{for:"showInfoHash"},"显示链接哈希",-1)),oe(c("input",{id:"showInfoHash",type:"checkbox","onUpdate:modelValue":o[2]||(o[2]=r=>s.value.showInfoHash=r)},null,512),[[Fe,s.value.showInfoHash]]),o[12]||(o[12]=c("div",{class:"pure-form-message text-success"}," 显示离线任务的哈希文本,点击可以复制。 ",-1))]),c("div",gx,[o[13]||(o[13]=c("label",{for:"fixGotoPage"},"修复输入页码跳转",-1)),oe(c("input",{id:"fixGotoPage",type:"checkbox","onUpdate:modelValue":o[3]||(o[3]=r=>s.value.fixGotoPage=r)},null,512),[[Fe,s.value.fixGotoPage]]),o[14]||(o[14]=c("div",{class:"pure-form-message text-success"}," 如果官方的输入页码跳转功能异常,可开启此选项。 ",-1))]),o[21]||(o[21]=c("div",{class:"ce-tips"},"以下是导出链接相关选项",-1)),c("div",yx,[o[15]||(o[15]=c("label",{for:"onlyMagnetEd2k"},"只取磁力和ED2K链接",-1)),oe(c("input",{id:"onlyMagnetEd2k",type:"checkbox","onUpdate:modelValue":o[4]||(o[4]=r=>s.value.onlyMagnetEd2k=r)},null,512),[[Fe,s.value.onlyMagnetEd2k]]),o[16]||(o[16]=c("div",{class:"pure-form-message text-success"}," 导出链接时,只取磁力和ED2K链接,其他比如http链接会被略过。 ",-1))]),c("div",wx,[o[17]||(o[17]=c("label",{for:"enableOptimization"},"启用导出优化",-1)),oe(c("input",{id:"enableOptimization",type:"checkbox","onUpdate:modelValue":o[5]||(o[5]=r=>s.value.enableOptimization=r)},null,512),[[Fe,s.value.enableOptimization]]),o[18]||(o[18]=c("div",{class:"pure-form-message text-success"}," 据观察,离线记录列表是将未完成的记录放在最前面的。如果只需导出未完成链接, 当获取到一个已完成的记录时,便可以停止继续获取后面的记录,节省时间。 ",-1))]),c("div",bx,[o[19]||(o[19]=c("label",{for:"maxPage"},"最多导出页数",-1)),oe(c("input",{id:"maxPage",type:"number","onUpdate:modelValue":o[6]||(o[6]=r=>s.value.maxPage=r),min:0},null,512),[[Ge,s.value.maxPage]]),o[20]||(o[20]=c("div",{class:"pure-form-message text-success"}," 0表示不限制,否则表示最多导出的页数。 ",-1))])])])]))}}),dh=je(vx,[["__file","Config.vue"]]);function sd(e){return /^magnet:\?xt=urn:btih/.test(e)}function od(e){return /^ed2k:\/\/\|file\|/.test(e)}function id(e){return `magnet:?xt=urn:btih:${e.toUpperCase()}`}function fh(e){const t=e.match(/([a-z\d]{32,40})/i);return t?t[1]:""}function _x(e,t=!0){return (t?/^([a-z\d]{32})$|^([a-z\d]{40})$/i:/^[a-z\d]{32,40}$/i).test(e)}const xx={class:"ce-offline-exporter"},Cx={key:0},Ui=`\r
`,kx=De({__name:"OflineExporter",setup(e){let t,n;const s=ie([]);let i={};Wt(async()=>{i=await ms(),t=await Ef(),console.log("[profile]",t),n=await Sf(),console.log("[space]",n),o(),await ex(i);});async function o(){window.addEventListener("message",b=>{const{event:_,body:B}=b.data;switch(_){case Ws.selection:s.value=B;break;case Ws.configChanged:i=B;break}},!1);}async function r(b=!1,_=""){const{isConfirmed:B,value:L}=await me.fire({title:"根据链接删除离线任务",html:`
      <div>每行一个链接,支持磁力链接和ED2K链接</div>
      <div>
        <label class="swal2-checkbox" style="display: flex;">
          <input type="checkbox" id="swalDeleteFile">
          <span class="swal2-label">同时删除文件</span>
        </label>
      </div>
      <div>
        <textarea id="swalUrls" aria-label="每行一个链接" class="swal2-textarea" placeholder="每行一个链接" style="width:80%;"></textarea>
      </div>
    `,focusConfirm:!1,didOpen:()=>{const D=document.getElementById("swalDeleteFile");D.checked=b;const j=document.getElementById("swalUrls");j.value=_,j.focus();},preConfirm:()=>{const D=document.getElementById("swalDeleteFile"),j=document.getElementById("swalUrls");return {deleteFile:D?D.checked:!1,urls:j?j.value:""}},width:620,inputPlaceholder:"每行一个",inputAttributes:{"aria-label":"每行一个"},showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!B)return;if(L===void 0){alert("请输入链接!");return}const F=[],O=L.urls.trim().split(`
`);for(let D=0;D<O.length;D++){const j=O[D].trim();if(sd(j)||od(j)){const H=fh(j);H&&F.push(H.toLowerCase());}}me.showLoading(),me.update({html:"正在删除..."}),await Xa(F,n,L.deleteFile,t.user_id),re({icon:"success",title:"删除成功!请刷新页面查看最新的列表。",timer:3e4,position:"top-end"}),await wl(F);}async function a(){const b=s.value.map(F=>F.info_hash);if(!b.length)return;const{isConfirmed:_,value:B}=await me.fire({title:"批量删除",icon:"warning",html:`确定要删除选中的 ${b.length} 个离线记录吗?`,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!_)return;const L=!!B;me.showLoading(),me.update({html:"正在删除..."}),await Xa(b,n,L,t.user_id),re({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await wl(b),s.value=[];}async function l(b){const _=[b];i.onlyMagnetEd2k&&_.push(Gt.magnetEd2k),console.log("[filters]",_),await v(n.sign,t.user_id,_);}function u(b,_){if(!_.length||_.length===1&&_[0]==="all")return b;const B={[Yt.failed]:Gt.failed,[Yt.illegal]:Gt.failed,[Yt.ing]:Gt.failed,[Yt.success]:Gt.success};return b=b.filter(L=>{if(!L.url&&!L.info_hash)return !1;const F=B[L.status];return _.includes(Gt.all)||F&&_.includes(F)?!(_.includes(Gt.magnetEd2k)&&(!_x(L.info_hash)||L.url&&!sd(L.url)&&!od(L.url))):!1}),b}async function d(b,_,B){let L=[],F=1,O=0;for(;;){me.update({html:`正在导出... 进度:第 ${F} 页`+(O?` / ${O}`:""),allowOutsideClick:!1});const D=await $f(F,b,_);if(!D.tasks||!D.tasks.length)break;if(O===0&&i.maxPage>0?O=Math.min(D.page_count,i.maxPage):O=D.page_count,L=[...L,...u(D.tasks,B)],i.enableOptimization&&B.includes(Gt.failed)&&h(D.tasks)){console.warn("由于开启了导出优化,且检测到已获取的记录中至少有一个「已完成」的记录,将不再获取剩下的记录");break}if(F>=O)break;F++;}return L}function h(b){for(const _ of b)if(_.status===Yt.success)return !0;return !1}async function g(){const b=[Gt.all];i.onlyMagnetEd2k&&b.push(Gt.magnetEd2k),console.log("[filters]",b);const _=s.value;if(!_.length)return;const B=[];_.forEach(L=>{!L.url&&L.info_hash&&(L.url=id(L.info_hash)),B.push(L.url);}),B.length&&(yo(B.join(Ui),"text"),console.log("[links]",B),await me.fire({title:"导出成功",icon:"success",html:`成功导出 ${B.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),sr(B.join(Ui),`115离线链接_数量${B.length}_${bo()}.txt`),!1)}));}async function v(b,_,B){me.fire({title:"导出离线链接",html:"正在导出...",didOpen:()=>{me.showLoading();}});const L=await d(b,_,B);if(me.hideLoading(),!L.length){await me.fire({title:"导出失败",icon:"error",html:"查询不到符合条件的离线记录!"});return}const F=[];if(L.forEach(O=>{!O.url&&O.info_hash&&(O.url=id(O.info_hash)),F.push(O.url);}),!F.length){await me.fire({title:"导出失败",icon:"error",html:"未完成的离线记录中没有磁力或HTTP链接!"});return}yo(F.join(Ui),"text"),console.log("[links]",F),await me.fire({title:"导出成功",icon:"success",html:`成功导出 ${F.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),sr(F.join(Ui),`115离线链接_数量${F.length}_${bo()}.txt`),!1)});}return (b,_)=>{const B=qs("VDropdown");return E(),I("span",xx,[s.value.length?(E(),I("span",Cx,[c("button",{type:"button",class:"pure-button button-small button-error",onClick:a},[_[4]||(_[4]=U("删除(")),c("span",null,Y(s.value.length),1),_[5]||(_[5]=U(")"))]),_[6]||(_[6]=U("      "))])):we("",!0),c("button",{type:"button",class:"pure-button button-mini button-error",onClick:_[0]||(_[0]=L=>r(!1,"")),title:"填写链接以删除对应的离线任务"},"根据链接删除"),_[9]||(_[9]=U("   ")),s.value.length?(E(),I("button",{key:1,type:"button",class:"pure-button button-mini button-warning",onClick:g,title:"导出选中任务的链接"},[_[7]||(_[7]=U("导出已选")),c("span",null,"("+Y(s.value.length)+")",1)])):we("",!0),c("button",{type:"button",class:"pure-button button-mini button-error",onClick:_[1]||(_[1]=L=>l(pe(Gt).failed)),title:"导出未完成链接"},"导出未完成"),c("button",{type:"button",class:"pure-button button-mini button-success",onClick:_[2]||(_[2]=L=>l(pe(Gt).success)),title:"导出已完成链接"},"导出已完成"),c("button",{type:"button",class:"pure-button button-mini button-warning",onClick:_[3]||(_[3]=L=>l(pe(Gt).all)),title:"导出全部链接"},"导出全部"),_[10]||(_[10]=U("   ")),ye(B,{distance:5,"arrow-padding":10},{popper:Re(()=>[(E(),ot(Up,null,{default:Re(()=>[ye(dh)]),_:1}))]),default:Re(()=>[_[8]||(_[8]=c("button",{type:"button",class:"pure-button button-mini"},"设置",-1))]),_:1})])}}}),$x=je(kx,[["__file","OflineExporter.vue"]]),Sx=["cate_id","delete_id","status","hash"],Ex={class:"file-name-wrap"},Ax={class:"file-name"},Px={task_popup:"goto",href:"javascript:;",class:"name"},Ix={rel:"name"},Tx={class:"desc-tips",rel:"file_down_violations"},Ox={class:"txt-red",rel:"file_down_tips"},Mx=["filename"],Lx={class:"file-size"},Dx={class:"file-process"},Bx={rel:"progress"},Rx={class:"file-operate",rel:"opt"},Nx=["cp_href"],Fx=De({__name:"OfflineItem",props:{item:{},space:{},profile:{}},setup(e){const t=it(()=>o.item.percentDone?parseInt(o.item.percentDone.toString()):0),n=it(()=>{const{name:r,del_path:a}=o.item;let l=r.replace(/^.*\./,"");return a&&/\/$/.test(a)&&(l="folder"),/^[a-z\d]+$/i.test(l)||(l="unknown"),l}),s=it(()=>{const{err:r}=o.item;return r?Uw[r]:""}),i=it(()=>o.item.can_appeal===1),o=e;return (r,a)=>(E(),I("li",{complete:"",cate_id:r.item.file_id,delete_id:r.item.delete_file_id,status:r.item.status,hash:r.item.info_hash},[c("div",Ex,[c("i",{class:ze(["file-type",`tp-${n.value}`])},null,2),c("div",Ax,[c("em",null,[c("a",Px,[c("span",Ix,Y(r.item.name),1)])])]),oe(c("div",Tx,[c("span",Ox,Y(s.value),1),oe(c("a",{href:"javascript:;",class:"btn-link",filename:r.item.name,rel:"violations_down_btn"},"去申诉",8,Mx),[[jt,i.value]])],512),[[jt,s.value]])]),c("div",Lx,[c("span",null,Y(pe(vo)(r.item.size)),1)]),c("div",Dx,[r.item.status===pe(Yt).failed?(E(),I(Oe,{key:0},[a[0]||(a[0]=c("i",{class:"icon-file-status ifst-failure"},null,-1)),a[1]||(a[1]=c("span",{rel:"progress"},"下载失败",-1))],64)):r.item.status===pe(Yt).success?(E(),I(Oe,{key:1},[a[2]||(a[2]=c("i",{class:"icon-file-status ifst-success"},null,-1)),a[3]||(a[3]=c("span",{rel:"progress"},"下载成功",-1))],64)):r.item.status===pe(Yt).ing?(E(),I(Oe,{key:2},[a[4]||(a[4]=c("i",{class:"icon-file-status ifst-downing"},null,-1)),c("span",Bx,Y(t.value)+"%",1)],64)):r.item.status===pe(Yt).illegal?(E(),I(Oe,{key:3},[a[5]||(a[5]=c("i",{class:"icon-file-status ifst-violation"},null,-1)),a[6]||(a[6]=c("span",{rel:"progress"},"违规",-1))],64)):(E(),I(Oe,{key:4},[a[7]||(a[7]=c("i",{class:"icon-file-status ifst-failure"},null,-1)),a[8]||(a[8]=c("span",{rel:"progress"},"[未知]",-1))],64))]),c("div",Rx,[a[10]||(a[10]=c("a",{href:"javascript:;",task_popup:"goto"},[c("i",{class:"icon-operate ifo-opendir"}),c("s",null,"跳转到目录")],-1)),c("a",{href:"javascript:;",cp_href:r.item.url,task_popup:"copy"},a[9]||(a[9]=[c("i",{class:"icon-operate ifo-copy"},null,-1),c("s",null,"复制",-1)]),8,Nx),a[11]||(a[11]=c("a",{href:"javascript:;",class:"btn-delete-offline"},[c("i",{class:"icon-operate ifo-remove"}),c("s",null,"删除")],-1))])],8,Sx))}}),Ux=je(Fx,[["__file","OfflineItem.vue"]]),jx={class:"ce-offline-list"},Hx=De({__name:"OfflineList",props:{items:{},space:{},profile:{}},setup(e){return (t,n)=>(E(),I("div",jx,[c("ul",null,[(E(!0),I(Oe,null,Je(t.items,(s,i)=>(E(),ot(Ux,{Key:i,item:s,space:t.space,profile:t.profile},null,8,["Key","item","space","profile"]))),256))])]))}}),zx=je(Hx,[["__file","OfflineList.vue"]]),qx={inline:"",class:"pure-form search-form",size:"small"},Vx={class:"form-item",label:"关键词"},Wx=["value"],Kx={class:"form-item"},Gx={class:"form-item",label:"状态"},Jx=["value"],Yx=["value"],Qx={class:"form-item",label:"页数"},Xx={class:"form-item"},Zx={key:0,title:"根据「名称/名称正则」查找时,是否在找到一个结果时停止继续查找"},eC={key:0,class:"search-tips"},tC={class:"tips-body"},nC={key:0},sC=De({__name:"OfflineSearcher",setup(e){let t,n;const s=ie(),i=ie({KeywordType:Ji.name,keyword:"",status:Yt.any,maxPage:5,stopOnFound:!1});let o={...i.value};const r=ie(null),a=ie(!1),l=ie([]),u=ie(null),d=ie({content:"",subContent:"",visible:!1});Wt(async()=>{t=await Ef(),n=await Sf(),s.value=await ms(),i.value.KeywordType=s.value.searchKeywordType,i.value.status=s.value.searchStatus,i.value.maxPage=s.value.searchMaxPage,i.value.stopOnFound=s.value.searchStopOnFound,o={...i.value},document.body.addEventListener("click",H=>{D(H);}),h();}),mt(i,vt(async H=>{console.log("[searchParams changed]",vf(H)),v();},200),{deep:!0});async function h(){window.addEventListener("message",H=>{const{event:K,body:fe}=H.data;switch(K){case Ws.searchPageChanged:g(fe);break;case Ws.configChanged:s.value={...fe};break}},!1);}async function g(H){console.log("[handleSearchPageChanged]",H),await j({subContent:`正在搜索第 ${H} 页...`,visible:!0});}async function v(){const H=await ms();let K=0;o.KeywordType!==i.value.KeywordType&&(H.searchKeywordType=i.value.KeywordType,K++),o.status!==i.value.status&&(H.searchStatus=i.value.status,K++),o.maxPage!==i.value.maxPage&&(H.searchMaxPage=i.value.maxPage,K++),o.stopOnFound!==i.value.stopOnFound&&(H.searchStopOnFound=i.value.stopOnFound,K++),K&&(await lh(H),console.log("[handleSearchParamsChange]",H),s.value={...H}),o={...i.value};}async function b(H){var K;(K=r.value)==null||K.select();}async function _(H){var K;i.value.keyword="",(K=r.value)==null||K.focus();}async function B(){l.value=[],i.value.keyword="",o={...i.value},await j({visible:!1}),await F(!1);try{parent.window.Core.OFFL5Plug.ChangePage(1);}catch(H){console.error(H);}}async function L(){var K;l.value=[];let{keyword:H}=i.value;if(H=H.trim(),H===""){await zs(),(K=r.value)==null||K.select(),Ko.fire({icon:"warning",title:"关键词不能为空!"});return}a.value=!0,await j({content:"正在搜索...",subContent:"",visible:!0});try{const fe={status:i.value.status,maxPage:i.value.maxPage,fuzzyName:!0,caseSensitive:!1,stopOnFound:i.value.stopOnFound};fe[i.value.KeywordType]=i.value.keyword,fe.infoHash&&(fe.infoHash=fh(fe.infoHash)),console.log("[search filter]",fe);const ve=await lx(n.sign,t.user_id,fe,s.value);l.value=ve,console.log("[search result]",ve),ve.length>0?await j({visible:!1}):await j({content:"没有符合条件的离线任务",subContent:"",visible:!0}),await F(!0);}catch(fe){console.warn("[search error]",fe),Ko.fire({icon:"error",title:fe.toString()}),await j({content:"搜索失败!",subContent:fe.toString(),visible:!0});}finally{a.value=!1;}}async function F(H=!0){var ve,ce;!l.value.length&&H&&Ko.fire({icon:"warning",html:"没有符合条件的离线任务"}),await zs();const K=(ve=u.value)==null?void 0:ve.querySelector("ul");if(!K)return;const fe=document.querySelector("ul#js-warp");fe&&(fe.innerHTML=K.innerHTML),await O(),(ce=r.value)==null||ce.focus();}async function O(){const H=l.value.length,K=document.querySelector("#js-page");if(!K)return;const fe=K.querySelector(".left-bvf span");fe.textContent=`共搜索到 ${H} 个结果`;const ve=K.querySelector(".pagination .con");ve.style.display="none";}async function D(H){let K=H.target;if(K.classList.contains("ifo-remove")&&(K=K.closest("a")),!K.classList.contains("btn-delete-offline"))return;const fe=K.closest("li"),ve=await uh(fe),ce=[ve.info_hash];let R={title:"删除离线记录",icon:"warning",html:`确定要删除「${ve.name}」吗?`,showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"};ve.delete_file_id&&(R={...R,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件"});const{isConfirmed:N,value:G}=await me.fire(R);if(!N)return;const he=!!G;me.showLoading(),me.update({html:"正在删除..."}),await Xa(ce,n,he,t.user_id),re({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await wl(ce);}async function j(H){d.value={...d.value,...H};}return (H,K)=>(E(),I("div",{class:ze(["ce-offline-searcher",{loading:a.value}])},[c("form",qx,[c("fieldset",null,[c("div",Vx,[oe(c("select",{"onUpdate:modelValue":K[0]||(K[0]=fe=>i.value.KeywordType=fe),size:"small",onChange:b},[(E(!0),I(Oe,null,Je(pe(Q_),(fe,ve)=>(E(),I("option",{key:ve,value:ve},Y(fe),9,Wx))),128))],544),[[un,i.value.KeywordType]])]),c("div",Kx,[c("div",{class:ze(["clearable-wrap",{"is-empty":i.value.keyword===""}])},[oe(c("input",{ref_key:"refKeyword",ref:r,"onUpdate:modelValue":K[1]||(K[1]=fe=>i.value.keyword=fe),placeholder:"请输入关键词",clearable:"",onKeyup:Zp(L,["enter"])},null,544),[[Ge,i.value.keyword]]),c("button",{type:"button",class:"pure-button pure-button-default button-xsmall btn-clear",onClick:_},"×")],2)]),c("div",Gx,[oe(c("select",{"onUpdate:modelValue":K[2]||(K[2]=fe=>i.value.status=fe),placeholder:"请选择",clearable:"",style:{width:"90px"}},[c("option",{value:pe(Yt).any},"-状态-",8,Jx),(E(!0),I(Oe,null,Je(pe(Nw),(fe,ve)=>(E(),I("option",{key:ve,value:ve},Y(fe),9,Yx))),128))],512),[[un,i.value.status]])]),c("div",Qx,[oe(c("input",{type:"number","onUpdate:modelValue":K[3]||(K[3]=fe=>i.value.maxPage=fe),min:1,max:1e5,title:"最多查找页数"},null,512),[[Ge,i.value.maxPage]]),K[5]||(K[5]=c("small",null,"页",-1))]),c("div",Xx,[[pe(Ji).name,pe(Ji).nameRegex].includes(i.value.KeywordType)?(E(),I("label",Zx,[oe(c("input",{type:"checkbox","onUpdate:modelValue":K[4]||(K[4]=fe=>i.value.stopOnFound=fe),class:"stop-on-found"},null,512),[[Fe,i.value.stopOnFound]]),K[6]||(K[6]=U(" 找到即停 "))])):we("",!0),c("button",{type:"button",class:"pure-button pure-button-primary button-small",onClick:L},"查找"),K[7]||(K[7]=U("    ")),c("button",{type:"button",class:"pure-button pure-button-default button-xsmall",onClick:B,title:"清空关键词;重置列表到非查找状态"},"重置")])])]),c("div",{ref_key:"refList",ref:u,class:"list"},[ye(zx,{items:l.value,space:pe(n),profile:pe(t)},null,8,["items","space","profile"])],512),d.value.visible?(E(),I("div",eC,[c("div",tC,[c("h2",null,Y(d.value.content),1),d.value.subContent?(E(),I("p",nC,Y(d.value.subContent),1)):we("",!0)])])):we("",!0)],2))}}),oC=je(sC,[["__file","OfflineSearcher.vue"]]);function xn(e){return e.split("-")[1]}function wu(e){return e==="y"?"height":"width"}function Nn(e){return e.split("-")[0]}function Io(e){return ["top","bottom"].includes(Nn(e))?"x":"y"}function rd(e,t,n){let{reference:s,floating:i}=e;const o=s.x+s.width/2-i.width/2,r=s.y+s.height/2-i.height/2,a=Io(t),l=wu(a),u=s[l]/2-i[l]/2,d=a==="x";let h;switch(Nn(t)){case"top":h={x:o,y:s.y-i.height};break;case"bottom":h={x:o,y:s.y+s.height};break;case"right":h={x:s.x+s.width,y:r};break;case"left":h={x:s.x-i.width,y:r};break;default:h={x:s.x,y:s.y};}switch(xn(t)){case"start":h[a]-=u*(n&&d?-1:1);break;case"end":h[a]+=u*(n&&d?-1:1);}return h}const iC=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:o=[],platform:r}=n,a=o.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let u=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=rd(u,s,l),g=s,v={},b=0;for(let _=0;_<a.length;_++){const{name:B,fn:L}=a[_],{x:F,y:O,data:D,reset:j}=await L({x:d,y:h,initialPlacement:s,placement:g,strategy:i,middlewareData:v,rects:u,platform:r,elements:{reference:e,floating:t}});d=F??d,h=O??h,v={...v,[B]:{...v[B],...D}},j&&b<=50&&(b++,typeof j=="object"&&(j.placement&&(g=j.placement),j.rects&&(u=j.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:d,y:h}=rd(u,g,l)),_=-1);}return {x:d,y:h,placement:g,strategy:i,middlewareData:v}};function ph(e){return typeof e!="number"?function(t){return {top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function ei(e){return {...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function ea(e,t){var n;t===void 0&&(t={});const{x:s,y:i,platform:o,rects:r,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=t,b=ph(v),_=a[g?h==="floating"?"reference":"floating":h],B=ei(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(_)))==null||n?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),L=h==="floating"?{...r.floating,x:s,y:i}:r.reference,F=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),O=await(o.isElement==null?void 0:o.isElement(F))&&await(o.getScale==null?void 0:o.getScale(F))||{x:1,y:1},D=ei(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:L,offsetParent:F,strategy:l}):L);return {top:(B.top-D.top+b.top)/O.y,bottom:(D.bottom-B.bottom+b.bottom)/O.y,left:(B.left-D.left+b.left)/O.x,right:(D.right-B.right+b.right)/O.x}}const bl=Math.min,Is=Math.max;function vl(e,t,n){return Is(e,bl(t,n))}const rC=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:s=0}=e||{},{x:i,y:o,placement:r,rects:a,platform:l}=t;if(n==null)return {};const u=ph(s),d={x:i,y:o},h=Io(r),g=wu(h),v=await l.getDimensions(n),b=h==="y"?"top":"left",_=h==="y"?"bottom":"right",B=a.reference[g]+a.reference[h]-d[h]-a.floating[g],L=d[h]-a.reference[h],F=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n));let O=F?h==="y"?F.clientHeight||0:F.clientWidth||0:0;O===0&&(O=a.floating[g]);const D=B/2-L/2,j=u[b],H=O-v[g]-u[_],K=O/2-v[g]/2+D,fe=vl(j,K,H),ve=xn(r)!=null&&K!=fe&&a.reference[g]/2-(K<j?u[b]:u[_])-v[g]/2<0;return {[h]:d[h]-(ve?K<j?j-K:H-K:0),data:{[h]:fe,centerOffset:K-fe}}}}),aC=["top","right","bottom","left"],ad=aC.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),lC={left:"right",right:"left",bottom:"top",top:"bottom"};function hr(e){return e.replace(/left|right|bottom|top/g,t=>lC[t])}function hh(e,t,n){n===void 0&&(n=!1);const s=xn(e),i=Io(e),o=wu(i);let r=i==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=hr(r)),{main:r,cross:hr(r)}}const uC={start:"end",end:"start"};function Yi(e){return e.replace(/start|end/g,t=>uC[t])}const cC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,s,i;const{rects:o,middlewareData:r,placement:a,platform:l,elements:u}=t,{crossAxis:d=!1,alignment:h,allowedPlacements:g=ad,autoAlignment:v=!0,...b}=e,_=h!==void 0||g===ad?function(ce,R,N){return (ce?[...N.filter(G=>xn(G)===ce),...N.filter(G=>xn(G)!==ce)]:N.filter(G=>Nn(G)===G)).filter(G=>!ce||xn(G)===ce||!!R&&Yi(G)!==G)}(h||null,v,g):g,B=await ea(t,b),L=((n=r.autoPlacement)==null?void 0:n.index)||0,F=_[L];if(F==null)return {};const{main:O,cross:D}=hh(F,o,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==F)return {reset:{placement:_[0]}};const j=[B[Nn(F)],B[O],B[D]],H=[...((s=r.autoPlacement)==null?void 0:s.overflows)||[],{placement:F,overflows:j}],K=_[L+1];if(K)return {data:{index:L+1,overflows:H},reset:{placement:K}};const fe=H.map(ce=>{const R=xn(ce.placement);return [ce.placement,R&&d?ce.overflows.slice(0,2).reduce((N,G)=>N+G,0):ce.overflows[0],ce.overflows]}).sort((ce,R)=>ce[1]-R[1]),ve=((i=fe.filter(ce=>ce[2].slice(0,xn(ce[0])?2:3).every(R=>R<=0))[0])==null?void 0:i[0])||fe[0][0];return ve!==a?{data:{index:L+1,overflows:H},reset:{placement:ve}}:{}}}},dC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:s,middlewareData:i,rects:o,initialPlacement:r,platform:a,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,..._}=e,B=Nn(s),L=Nn(r)===r,F=await(a.isRTL==null?void 0:a.isRTL(l.floating)),O=h||(L||!b?[hr(r)]:function(R){const N=hr(R);return [Yi(R),N,Yi(N)]}(r));h||v==="none"||O.push(...function(R,N,G,he){const be=xn(R);let $e=function(Pe,Ee,We){const Ze=["left","right"],_e=["right","left"],M=["top","bottom"],Ne=["bottom","top"];switch(Pe){case"top":case"bottom":return We?Ee?_e:Ze:Ee?Ze:_e;case"left":case"right":return Ee?M:Ne;default:return []}}(Nn(R),G==="start",he);return be&&($e=$e.map(Pe=>Pe+"-"+be),N&&($e=$e.concat($e.map(Yi)))),$e}(r,b,v,F));const D=[r,...O],j=await ea(t,_),H=[];let K=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&H.push(j[B]),d){const{main:R,cross:N}=hh(s,o,F);H.push(j[R],j[N]);}if(K=[...K,{placement:s,overflows:H}],!H.every(R=>R<=0)){var fe,ve;const R=(((fe=i.flip)==null?void 0:fe.index)||0)+1,N=D[R];if(N)return {data:{index:R,overflows:K},reset:{placement:N}};let G=(ve=K.filter(he=>he.overflows[0]<=0).sort((he,be)=>he.overflows[1]-be.overflows[1])[0])==null?void 0:ve.placement;if(!G)switch(g){case"bestFit":{var ce;const he=(ce=K.map(be=>[be.placement,be.overflows.filter($e=>$e>0).reduce(($e,Pe)=>$e+Pe,0)]).sort((be,$e)=>be[1]-$e[1])[0])==null?void 0:ce[0];he&&(G=he);break}case"initialPlacement":G=r;}if(s!==G)return {reset:{placement:G}}}return {}}}},fC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:s}=t,i=await async function(o,r){const{placement:a,platform:l,elements:u}=o,d=await(l.isRTL==null?void 0:l.isRTL(u.floating)),h=Nn(a),g=xn(a),v=Io(a)==="x",b=["left","top"].includes(h)?-1:1,_=d&&v?-1:1,B=typeof r=="function"?r(o):r;let{mainAxis:L,crossAxis:F,alignmentAxis:O}=typeof B=="number"?{mainAxis:B,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...B};return g&&typeof O=="number"&&(F=g==="end"?-1*O:O),v?{x:F*_,y:L*b}:{x:L*b,y:F*_}}(t,e);return {x:n+i.x,y:s+i.y,data:i}}}};function pC(e){return e==="x"?"y":"x"}const hC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:i}=t,{mainAxis:o=!0,crossAxis:r=!1,limiter:a={fn:B=>{let{x:L,y:F}=B;return {x:L,y:F}}},...l}=e,u={x:n,y:s},d=await ea(t,l),h=Io(Nn(i)),g=pC(h);let v=u[h],b=u[g];if(o){const B=h==="y"?"bottom":"right";v=vl(v+d[h==="y"?"top":"left"],v,v-d[B]);}if(r){const B=g==="y"?"bottom":"right";b=vl(b+d[g==="y"?"top":"left"],b,b-d[B]);}const _=a.fn({...t,[h]:v,[g]:b});return {..._,data:{x:_.x-n,y:_.y-s}}}}},mC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:s,platform:i,elements:o}=t,{apply:r=()=>{},...a}=e,l=await ea(t,a),u=Nn(n),d=xn(n),h=Io(n)==="x",{width:g,height:v}=s.floating;let b,_;u==="top"||u==="bottom"?(b=u,_=d===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(_=u,b=d==="end"?"top":"bottom");const B=v-l[b],L=g-l[_];let F=B,O=L;if(h?O=bl(g-l.right-l.left,L):F=bl(v-l.bottom-l.top,B),!t.middlewareData.shift&&!d){const j=Is(l.left,0),H=Is(l.right,0),K=Is(l.top,0),fe=Is(l.bottom,0);h?O=g-2*(j!==0||H!==0?j+H:Is(l.left,l.right)):F=v-2*(K!==0||fe!==0?K+fe:Is(l.top,l.bottom));}await r({...t,availableWidth:O,availableHeight:F});const D=await i.getDimensions(o.floating);return g!==D.width||v!==D.height?{reset:{rects:!0}}:{}}}};function pn(e){var t;return ((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fn(e){return pn(e).getComputedStyle(e)}const ld=Math.min,ti=Math.max,mr=Math.round;function mh(e){const t=Fn(e);let n=parseFloat(t.width),s=parseFloat(t.height);const i=e.offsetWidth,o=e.offsetHeight,r=mr(n)!==i||mr(s)!==o;return r&&(n=i,s=o),{width:n,height:s,fallback:r}}function gs(e){return yh(e)?(e.nodeName||"").toLowerCase():""}let ji;function gh(){if(ji)return ji;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(ji=e.brands.map(t=>t.brand+"/"+t.version).join(" "),ji):navigator.userAgent}function Un(e){return e instanceof pn(e).HTMLElement}function ds(e){return e instanceof pn(e).Element}function yh(e){return e instanceof pn(e).Node}function ud(e){return typeof ShadowRoot>"u"?!1:e instanceof pn(e).ShadowRoot||e instanceof ShadowRoot}function ta(e){const{overflow:t,overflowX:n,overflowY:s,display:i}=Fn(e);return /auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(i)}function gC(e){return ["table","td","th"].includes(gs(e))}function _l(e){const t=/firefox/i.test(gh()),n=Fn(e),s=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!s&&s!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(i=>n.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const o=n.contain;return o!=null&&o.includes(i)})}function wh(){return !/^((?!chrome|android).)*safari/i.test(gh())}function bu(e){return ["html","body","#document"].includes(gs(e))}function bh(e){return ds(e)?e:e.contextElement}const vh={x:1,y:1};function mo(e){const t=bh(e);if(!Un(t))return vh;const n=t.getBoundingClientRect(),{width:s,height:i,fallback:o}=mh(t);let r=(o?mr(n.width):n.width)/s,a=(o?mr(n.height):n.height)/i;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}function fi(e,t,n,s){var i,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=bh(e);let l=vh;t&&(s?ds(s)&&(l=mo(s)):l=mo(e));const u=a?pn(a):window,d=!wh()&&n;let h=(r.left+(d&&((i=u.visualViewport)==null?void 0:i.offsetLeft)||0))/l.x,g=(r.top+(d&&((o=u.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,v=r.width/l.x,b=r.height/l.y;if(a){const _=pn(a),B=s&&ds(s)?pn(s):s;let L=_.frameElement;for(;L&&s&&B!==_;){const F=mo(L),O=L.getBoundingClientRect(),D=getComputedStyle(L);O.x+=(L.clientLeft+parseFloat(D.paddingLeft))*F.x,O.y+=(L.clientTop+parseFloat(D.paddingTop))*F.y,h*=F.x,g*=F.y,v*=F.x,b*=F.y,h+=O.x,g+=O.y,L=pn(L).frameElement;}}return {width:v,height:b,top:g,right:h+v,bottom:g+b,left:h,x:h,y:g}}function fs(e){return ((yh(e)?e.ownerDocument:e.document)||window.document).documentElement}function na(e){return ds(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _h(e){return fi(fs(e)).left+na(e).scrollLeft}function pi(e){if(gs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ud(e)&&e.host||fs(e);return ud(t)?t.host:t}function xh(e){const t=pi(e);return bu(t)?t.ownerDocument.body:Un(t)&&ta(t)?t:xh(t)}function gr(e,t){var n;t===void 0&&(t=[]);const s=xh(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=pn(s);return i?t.concat(o,o.visualViewport||[],ta(s)?s:[]):t.concat(s,gr(s))}function cd(e,t,n){return t==="viewport"?ei(function(s,i){const o=pn(s),r=fs(s),a=o.visualViewport;let l=r.clientWidth,u=r.clientHeight,d=0,h=0;if(a){l=a.width,u=a.height;const g=wh();(g||!g&&i==="fixed")&&(d=a.offsetLeft,h=a.offsetTop);}return {width:l,height:u,x:d,y:h}}(e,n)):ds(t)?ei(function(s,i){const o=fi(s,!0,i==="fixed"),r=o.top+s.clientTop,a=o.left+s.clientLeft,l=Un(s)?mo(s):{x:1,y:1};return {width:s.clientWidth*l.x,height:s.clientHeight*l.y,x:a*l.x,y:r*l.y}}(t,n)):ei(function(s){const i=fs(s),o=na(s),r=s.ownerDocument.body,a=ti(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),l=ti(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight);let u=-o.scrollLeft+_h(s);const d=-o.scrollTop;return Fn(r).direction==="rtl"&&(u+=ti(i.clientWidth,r.clientWidth)-a),{width:a,height:l,x:u,y:d}}(fs(e)))}function dd(e){return Un(e)&&Fn(e).position!=="fixed"?e.offsetParent:null}function fd(e){const t=pn(e);let n=dd(e);for(;n&&gC(n)&&Fn(n).position==="static";)n=dd(n);return n&&(gs(n)==="html"||gs(n)==="body"&&Fn(n).position==="static"&&!_l(n))?t:n||function(s){let i=pi(s);for(;Un(i)&&!bu(i);){if(_l(i))return i;i=pi(i);}return null}(e)||t}function yC(e,t,n){const s=Un(t),i=fs(t),o=fi(e,!0,n==="fixed",t);let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(s||!s&&n!=="fixed")if((gs(t)!=="body"||ta(i))&&(r=na(t)),Un(t)){const l=fi(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop;}else i&&(a.x=_h(i));return {x:o.left+r.scrollLeft-a.x,y:o.top+r.scrollTop-a.y,width:o.width,height:o.height}}const wC={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:s,strategy:i}=e;const o=n==="clippingAncestors"?function(u,d){const h=d.get(u);if(h)return h;let g=gr(u).filter(B=>ds(B)&&gs(B)!=="body"),v=null;const b=Fn(u).position==="fixed";let _=b?pi(u):u;for(;ds(_)&&!bu(_);){const B=Fn(_),L=_l(_);(b?L||v:L||B.position!=="static"||!v||!["absolute","fixed"].includes(v.position))?v=B:g=g.filter(F=>F!==_),_=pi(_);}return d.set(u,g),g}(t,this._c):[].concat(n),r=[...o,s],a=r[0],l=r.reduce((u,d)=>{const h=cd(t,d,i);return u.top=ti(h.top,u.top),u.right=ld(h.right,u.right),u.bottom=ld(h.bottom,u.bottom),u.left=ti(h.left,u.left),u},cd(t,a,i));return {width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:s}=e;const i=Un(n),o=fs(n);if(n===o)return t;let r={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((i||!i&&s!=="fixed")&&((gs(n)!=="body"||ta(o))&&(r=na(n)),Un(n))){const u=fi(n);a=mo(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop;}return {width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-r.scrollLeft*a.x+l.x,y:t.y*a.y-r.scrollTop*a.y+l.y}},isElement:ds,getDimensions:function(e){return Un(e)?mh(e):e.getBoundingClientRect()},getOffsetParent:fd,getDocumentElement:fs,getScale:mo,async getElementRects(e){let{reference:t,floating:n,strategy:s}=e;const i=this.getOffsetParent||fd,o=this.getDimensions;return {reference:yC(t,await i(n),s),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Fn(e).direction==="rtl"},bC=(e,t,n)=>{const s=new Map,i={platform:wC,...n},o={...i.platform,_c:s};return iC(e,t,{...i,platform:o})};function Ch(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Ch(e[n],t[n]):e[n]=t[n]);}const Yn={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:0,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function hi(e,t){let n=Yn.themes[e]||{},s;do s=n[t],typeof s>"u"?n.$extend?n=Yn.themes[n.$extend]||{}:(n=null,s=Yn[t]):n=null;while(n);return s}function vC(e){const t=[e];let n=Yn.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Yn.themes[n.$extend]||{}):n=null;while(n);return t.map(s=>`v-popper--theme-${s}`)}function pd(e){const t=[e];let n=Yn.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Yn.themes[n.$extend]||{}):n=null;while(n);return t}let Ks=!1;if(typeof window<"u"){Ks=!1;try{const e=Object.defineProperty({},"passive",{get(){Ks=!0;}});window.addEventListener("test",null,e);}catch{}}let kh=!1;typeof window<"u"&&typeof navigator<"u"&&(kh=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const $h=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),hd={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},md={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function gd(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1);}function Da(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e);}))}const Cn=[];let As=null;const yd={};function wd(e){let t=yd[e];return t||(t=yd[e]=[]),t}let xl=function(){};typeof window<"u"&&(xl=window.Element);function Ye(e){return function(t){return hi(t.theme,e)}}const Ba="__floating-vue__popper",Sh=()=>De({name:"VPopper",provide(){return {[Ba]:{parentPopper:this}}},inject:{[Ba]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Ye("disabled")},positioningDisabled:{type:Boolean,default:Ye("positioningDisabled")},placement:{type:String,default:Ye("placement"),validator:e=>$h.includes(e)},delay:{type:[String,Number,Object],default:Ye("delay")},distance:{type:[Number,String],default:Ye("distance")},skidding:{type:[Number,String],default:Ye("skidding")},triggers:{type:Array,default:Ye("triggers")},showTriggers:{type:[Array,Function],default:Ye("showTriggers")},hideTriggers:{type:[Array,Function],default:Ye("hideTriggers")},popperTriggers:{type:Array,default:Ye("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Ye("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Ye("popperHideTriggers")},container:{type:[String,Object,xl,Boolean],default:Ye("container")},boundary:{type:[String,xl],default:Ye("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Ye("strategy")},autoHide:{type:[Boolean,Function],default:Ye("autoHide")},handleResize:{type:Boolean,default:Ye("handleResize")},instantMove:{type:Boolean,default:Ye("instantMove")},eagerMount:{type:Boolean,default:Ye("eagerMount")},popperClass:{type:[String,Array,Object],default:Ye("popperClass")},computeTransformOrigin:{type:Boolean,default:Ye("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Ye("autoMinSize")},autoSize:{type:[Boolean,String],default:Ye("autoSize")},autoMaxSize:{type:Boolean,default:Ye("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Ye("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Ye("preventOverflow")},overflowPadding:{type:[Number,String],default:Ye("overflowPadding")},arrowPadding:{type:[Number,String],default:Ye("arrowPadding")},arrowOverflow:{type:Boolean,default:Ye("arrowOverflow")},flip:{type:Boolean,default:Ye("flip")},shift:{type:Boolean,default:Ye("shift")},shiftCrossAxis:{type:Boolean,default:Ye("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Ye("noAutoFocus")},disposeTimeout:{type:Number,default:Ye("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return {isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return {popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return (e=this[Ba])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return ((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init();},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition());},...["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");},mounted(){this.init(),this.$_detachPopperNode();},activated(){this.$_autoShowHide();},deactivated(){this.hide();},beforeUnmount(){this.dispose();},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var s,i;(s=this.parentPopper)!=null&&s.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1;})),this.$emit("update:shown",!0));},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null);},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1);}},init(){var e;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show());},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"));},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"));},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(fC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(cC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(hC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(dC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(rC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:s,rects:i,middlewareData:o})=>{let r;const{centerOffset:a}=o.arrow;return s.startsWith("top")||s.startsWith("bottom")?r=Math.abs(a)>i.reference.width/2:r=Math.abs(a)>i.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const s=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:i,placement:o,middlewareData:r})=>{var a;if((a=r.autoSize)!=null&&a.skip)return {};let l,u;return o.startsWith("top")||o.startsWith("bottom")?l=i.reference.width:u=i.reference.height,this.$_innerNode.style[s==="min"?"minWidth":s==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[s==="min"?"minHeight":s==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}});}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(mC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:s,availableHeight:i})=>{this.$_innerNode.style.maxWidth=s!=null?`${s}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null;}})));const n=await bC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}});},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),As&&this.instantMove&&As.instantMove&&As!==this.parentPopper){As.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"));},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(As=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"));},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Da(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...gr(this.$_referenceNode),...gr(this.$_popperNode)],"scroll",()=>{this.$_computePosition();}));},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),s=n.parentNode.getBoundingClientRect(),i=t.x+t.width/2-(s.left+n.offsetLeft),o=t.y+t.height/2-(s.top+n.offsetTop);this.result.transformOrigin=`${i}px ${o}px`;}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<Cn.length;n++)t=Cn[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"));}Cn.push(this),document.body.classList.add("v-popper--some-open");for(const t of pd(this.theme))wd(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Da(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus();},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,gd(Cn,this),Cn.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of pd(this.theme)){const s=wd(n);gd(s,this),s.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`);}As===this&&(As=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1);},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Da(),this.classes.hideFrom=!1,this.classes.hideTo=!0;},$_autoShowHide(){this.shown?this.show():this.hide();},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0;},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}));};this.$_registerTriggerListeners(this.$_targetNodes,hd,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],hd,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n});};this.$_registerTriggerListeners(this.$_targetNodes,md,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],md,this.popperTriggers,this.popperHideTriggers,t);},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(s=>s.addEventListener(t,n,Ks?{passive:!0}:void 0));},$_registerTriggerListeners(e,t,n,s,i){let o=n;s!=null&&(o=typeof s=="function"?s(o):s),o.forEach(r=>{const a=t[r];a&&this.$_registerEventListeners(e,a,i);});},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:s,eventType:i,handler:o}=n;!e||e===i?s.forEach(r=>r.removeEventListener(i,o)):t.push(n);}),this.$_events=t;},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners());},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1;},300)));},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode);},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const s=n.getAttribute(e);s&&(n.removeAttribute(e),n.setAttribute(t,s));}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const s=e[n];s==null?t.removeAttribute(n):t.setAttribute(n,s);}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper;},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(ni>=e.left&&ni<=e.right&&si>=e.top&&si<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=ni-ss,s=si-os,i=t.left+t.width/2-ss+(t.top+t.height/2)-os+t.width+t.height,o=ss+n*i,r=os+s*i;return Hi(ss,os,o,r,t.left,t.top,t.left,t.bottom)||Hi(ss,os,o,r,t.left,t.top,t.right,t.top)||Hi(ss,os,o,r,t.right,t.top,t.right,t.bottom)||Hi(ss,os,o,r,t.left,t.bottom,t.right,t.bottom)}return !1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(kh?(document.addEventListener("touchstart",bd,Ks?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",xC,Ks?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",bd,!0),window.addEventListener("click",_C,!0)),window.addEventListener("resize",$C));function bd(e){for(let t=0;t<Cn.length;t++){const n=Cn[t];try{const s=n.popperNode();n.$_mouseDownContains=s.contains(e.target);}catch{}}}function _C(e){Eh(e);}function xC(e){Eh(e,!0);}function Eh(e,t=!1){const n={};for(let s=Cn.length-1;s>=0;s--){const i=Cn[s];try{const o=i.$_containsGlobalTarget=CC(i,e);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!n[i.randomId]&&vd(i,o,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&o){let a=i.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let r=i.parentPopper;for(;r&&vd(r,r.$_containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper;}});}catch{}}}function CC(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function vd(e,t,n){return n.closeAllPopover||n.closePopover&&t||kC(e,n)&&!t}function kC(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function $C(e){for(let t=0;t<Cn.length;t++)Cn[t].$_computePosition(e);}let ss=0,os=0,ni=0,si=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{ss=ni,os=si,ni=e.clientX,si=e.clientY;},Ks?{passive:!0}:void 0);function Hi(e,t,n,s,i,o,r,a){const l=((r-i)*(t-o)-(a-o)*(e-i))/((a-o)*(n-e)-(r-i)*(s-t)),u=((n-e)*(t-o)-(s-t)*(e-i))/((a-o)*(n-e)-(r-i)*(s-t));return l>=0&&l<=1&&u>=0&&u<=1}const SC={extends:Sh()},sa=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n};function EC(e,t,n,s,i,o){return E(),I("div",{ref:"reference",class:ze(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[nt(e.$slots,"default",$v(Vp(e.slotData)))],2)}const AC=sa(SC,[["render",EC]]);function PC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}let Qi;function Cl(){Cl.init||(Cl.init=!0,Qi=PC()!==-1);}var oa={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Cl(),zs(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize();});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Qi&&this.$el.appendChild(e),e.data="about:blank",Qi||this.$el.appendChild(e);},beforeUnmount(){this.removeResizeHandlers();},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize());},emitSize(){this.$emit("notify",{width:this._w,height:this._h});},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify();},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Qi&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null);}}};const IC=p1();d1("data-v-b329ee4c");const TC={class:"resize-observer",tabindex:"-1"};f1();const OC=IC((e,t,n,s,i,o)=>(E(),ot("div",TC)));oa.render=OC;oa.__scopeId="data-v-b329ee4c";oa.__file="src/components/ResizeObserver.vue";const Ah=(e="theme")=>({computed:{themeClass(){return vC(this[e])}}}),MC=De({name:"VPopperContent",components:{ResizeObserver:oa},mixins:[Ah()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),LC=["id","aria-hidden","tabindex","data-popper-placement"],DC={ref:"inner",class:"v-popper__inner"},BC=c("div",{class:"v-popper__arrow-outer"},null,-1),RC=c("div",{class:"v-popper__arrow-inner"},null,-1),NC=[BC,RC];function FC(e,t,n,s,i,o){const r=qs("ResizeObserver");return E(),I("div",{id:e.popperId,ref:"popover",class:ze(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Rn(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Zp(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[c("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),c("div",{class:"v-popper__wrapper",style:Rn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[c("div",DC,[e.mounted?(E(),I(Oe,{key:0},[c("div",null,[nt(e.$slots,"default")]),e.handleResize?(E(),ot(r,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):we("",!0)],64)):we("",!0)],512),c("div",{ref:"arrow",class:"v-popper__arrow-container",style:Rn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},NC,4)],4)],46,LC)}const Ph=sa(MC,[["render",FC]]),Ih={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},UC=De({name:"VPopperWrapper",components:{Popper:AC,PopperContent:Ph},mixins:[Ih,Ah("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Element,Boolean],default:void 0},boundary:{type:[String,Element],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function jC(e,t,n,s,i,o){const r=qs("PopperContent"),a=qs("Popper");return E(),ot(a,yu({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:Re(({popperId:l,isShown:u,shouldMountContent:d,skipTransition:h,autoHide:g,show:v,hide:b,handleResize:_,onResize:B,classes:L,result:F})=>[nt(e.$slots,"default",{shown:u,show:v,hide:b}),ye(r,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:d,"skip-transition":h,"auto-hide":g,"handle-resize":_,classes:L,result:F,onHide:b,onResize:B},{default:Re(()=>[nt(e.$slots,"popper",{shown:u,hide:b})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const vu=sa(UC,[["render",jC]]),HC={...vu,name:"VDropdown",vPopperTheme:"dropdown"},zC={...vu,name:"VMenu",vPopperTheme:"menu"},qC={...vu,name:"VTooltip",vPopperTheme:"tooltip"},VC=De({name:"VTooltipDirective",components:{Popper:Sh(),PopperContent:Ph},mixins:[Ih],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>hi(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>hi(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return {asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0);},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize();}},created(){this.$_fetchId=0;},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(s=>this.onResult(t,s)):this.onResult(t,n);}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t);},onShow(){this.$_isShown=!0,this.fetchContent();},onHide(){this.$_isShown=!1;}}}),WC=["innerHTML"],KC=["textContent"];function GC(e,t,n,s,i,o){const r=qs("PopperContent"),a=qs("Popper");return E(),ot(a,yu({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Re(({popperId:l,isShown:u,shouldMountContent:d,skipTransition:h,autoHide:g,hide:v,handleResize:b,onResize:_,classes:B,result:L})=>[ye(r,{ref:"popperContent",class:ze({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:u,mounted:d,"skip-transition":h,"auto-hide":g,"handle-resize":b,classes:B,result:L,onHide:v,onResize:_},{default:Re(()=>[e.html?(E(),I("div",{key:0,innerHTML:e.finalContent},null,8,WC)):(E(),I("div",{key:1,textContent:Y(e.finalContent)},null,8,KC))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const JC=sa(VC,[["render",GC]]),Th="v-popper--has-tooltip";function YC(e,t){let n=e.placement;if(!n&&t)for(const s of $h)t[s]&&(n=s);return n||(n=hi(e.theme||"tooltip","placement")),n}function Oh(e,t,n){let s;const i=typeof t;return i==="string"?s={content:t}:t&&i==="object"?s=t:s={content:!1},s.placement=YC(s,n),s.targetNodes=()=>[e],s.referenceNode=()=>e,s}let Ra,mi,QC=0;function XC(){if(Ra)return;mi=ie([]),Ra=qn({name:"VTooltipDirectiveApp",setup(){return {directives:mi}},render(){return this.directives.map(t=>y0(JC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Ra.mount(e);}function ZC(e,t,n){XC();const s=ie(Oh(e,t,n)),i=ie(!1),o={id:QC++,options:s,shown:i};return mi.value.push(o),e.classList&&e.classList.add(Th),e.$_popper={options:s,item:o,show(){i.value=!0;},hide(){i.value=!1;}}}function Mh(e){if(e.$_popper){const t=mi.value.indexOf(e.$_popper.item);t!==-1&&mi.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget;}e.classList&&e.classList.remove(Th);}function _d(e,{value:t,modifiers:n}){const s=Oh(e,t,n);if(!s.content||hi(s.theme||"tooltip","disabled"))Mh(e);else {let i;e.$_popper?(i=e.$_popper,i.options.value=s):i=ZC(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide());}}const ek={beforeMount:_d,updated:_d,beforeUnmount(e){Mh(e);}};function xd(e){e.addEventListener("click",Lh),e.addEventListener("touchstart",Dh,Ks?{passive:!0}:!1);}function Cd(e){e.removeEventListener("click",Lh),e.removeEventListener("touchstart",Dh),e.removeEventListener("touchend",Bh),e.removeEventListener("touchcancel",Rh);}function Lh(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all;}function Dh(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",Bh),t.addEventListener("touchcancel",Rh);}}function Bh(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],s=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-s.screenY)<20&&Math.abs(n.screenX-s.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all;}}function Rh(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1;}const tk={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&xd(e);},updated(e,{value:t,oldValue:n,modifiers:s}){e.$_closePopoverModifiers=s,t!==n&&(typeof t>"u"||t?xd(e):Cd(e));},beforeUnmount(e){Cd(e);}};function nk(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Ch(Yn,t),e.directive("tooltip",ek),e.directive("close-popper",tk),e.component("VTooltip",qC),e.component("VDropdown",HC),e.component("VMenu",zC));}const ia={version:"2.0.0",install:nk,options:Yn};async function sk(){const e=await ms(),{host:t,search:n}=location;t==="115.com"&&cx(e),!(t!=="115.com"||!n.includes("offline=1&tab=offline"))&&(await ok(),await ik(),ux());}async function ok(){console.log("[Cloud115 Enhancer] Injecting offline exporter...");const e="cloud115OfflineExporter",t=await ms();document.body.classList.add("cloud115-page-offline"),t.enableListManagement&&document.body.classList.add("ce-list-m"),$("body").append(`<div id="${e}"/>`);const n=qn($x);n.use(ia),n.mount(`#${e}`);}async function ik(){console.log("[Cloud115 Enhancer] Injecting offline searcher...");const e="cloud115OfflineSearcher",t=await ms();document.body.classList.add("cloud115-page-offline"),t.enableSearcher&&document.body.classList.add("ce-list-s"),$("body").append(`<div id="${e}"/>`);const n=qn(oC);n.use(ia),n.mount(`#${e}`);}var Ht=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.OPEN_CLEANER=1]="OPEN_CLEANER",e[e.CLOSE_CLEANER=2]="CLOSE_CLEANER",e[e.CLEANER_OPENED=3]="CLEANER_OPENED",e[e.INVOKE_FILTER=4]="INVOKE_FILTER",e[e.OPEN_EMPTY_CLEANER=5]="OPEN_EMPTY_CLEANER",e[e.CLOSE_EMPTY_CLEANER=6]="CLOSE_EMPTY_CLEANER",e[e.EMPTY_CLEANER_OPENED=7]="EMPTY_CLEANER_OPENED",e))(Ht||{});const rk={class:"cloud115-eh-cleaner-trigger"},ak=De({__name:"Trigger",setup(e){ie(!1);const t=ie(!0);async function n(a){switch(a.data.type){case Ht.INVOKE_FILTER:await xb(a.data.payload);break;case Ht.CLEANER_OPENED:await r(a.data.payload);break}}Wt(async()=>{console.log("[CleanerTrigger onMounted]"),window.addEventListener("message",n);}),Js(()=>{console.log("[CleanerTrigger onUnmounted]"),window.removeEventListener("message",n);});async function s(){await o(),Fs({type:Ht.OPEN_CLEANER},window.parent);}let i=0;async function o(){const a=Er("cid");!a||a==="0"||(clearTimeout(i),i=window.setTimeout(async()=>{re({icon:"error",text:"打开清理工具失败!"});},1e3));}async function r(a){console.log("成功打开Cleaner"),clearTimeout(i);}return (a,l)=>oe((E(),I("span",rk,[nt(a.$slots,"default",{},()=>[c("span",{class:"btn-open pure-button pure-button-primary",onClick:s,title:"打开清理文件工具"},l[0]||(l[0]=[c("span",null,"清理文件",-1)]))])],512)),[[jt,t.value]])}}),lk=je(ak,[["__file","Trigger.vue"]]);var Ve=(e=>(e[e.suffix=0]="suffix",e[e.keyword=1]="keyword",e))(Ve||{}),st=(e=>(e[e.filter=0]="filter",e[e.dirKeyword=1]="dirKeyword",e[e.fileKeyword=2]="fileKeyword",e[e.fileHash=3]="fileHash",e))(st||{});const Nh={0:"筛选",1:"目录名关键词",2:"文件名关键词",3:"文件sha1"};var Et=(e=>(e[e.append=0]="append",e[e.cover=1]="cover",e[e.clear=2]="clear",e[e.reset=3]="reset",e[e.assign=4]="assign",e))(Et||{}),Wo=(e=>(e.all="all",e.file="file",e.dir="dir",e))(Wo||{});const uk={all:"全部",file:"文件",dir:"目录"};var yr=(e=>(e.all="all",e.matched="matched",e.notMatched="unmatched",e))(yr||{});const ck={all:"全部",matched:"有匹配",unmatched:"无匹配"};var xt=(e=>(e.none="",e.prepare="查询文件...",e.prepared="查询文件完成",e.prepareFailed="查询失败",e.deleting="删除文件中...",e.success="清理完成",e.failed="清理失败",e))(xt||{});const dk=new Map([[vn.all,Jt.all],[vn.video,Jt.video],[vn.audio,Jt.audio],[vn.image,Jt.image],[vn.doc,Jt.doc],[vn.app,Jt.app],[vn.archive,Jt.archive]]),kl=lb(dk),fk=[["文件名关键词","广告abc","包含`广告abc`,不区分大小写"],["目录名关键词","#广告abc","在关键词前面加上`#`"],["策略-不可分割匹配",'"广告 abc"',"匹配`广告 abc啊`,不匹配`广告啊abc`,即空格部分也进行匹配,使用双引号包裹关键词。"],["文件sha1","7309dd0d50007e027180f02301ccba8ba0fd971f//文件xxx","关键词部分长度为40且只包含a-f0-9的文本会被视为sha1"],["策略-区分大小写","广告abc/s","在关键词后面加上`/s` (s 可理解为 sensitive 首字母)"],["策略-等于","广告abc.mp4/=","在关键词后面加上`/=`,不区分大小写"],["策略-等于且区分大小写","广告abc.mp4/==","在关键词后面加上`/==`,也可以用`/s,=` (多个策略使用英文逗号隔开)"],["策略-指定最大大小","广告abc.mp4/10","在关键词后面加上`/10`,该大小将覆盖所在分组的设定"],["策略-正则表达式","^abc/r","在关键词后面加上`/r`"],["添加备注","广告abc//备注内容","在策略后面加上`/备注内容`,`//`表示策略为空,有策略的示例: 广告abc/s/备注内容"]],pk="##",_u="#",hk="=",mk="==",gk="s",yk="r",Fh="#",wk=[{type:Ve.suffix,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:5,values:["txt","url","html","htm","mht"]},{type:Ve.suffix,queryOnly:!0,label:"🔍115筛选",memo:"仅用于查询",size:102400,values:["#视频","#音频","#图片","#文档","#应用","#压缩包"]}],bk=["#論壇文宣","#宣傳文本","最新地址","最新网址","论坛地址","永久地址","地址发布","扫码 安装","扫码 下载","免費 掃碼","澳门 赌场","皇冠 赌场","免费18禁手游","免费黄游手游","在线影城","秀场 小视频","裸秀 主播 免费看","第一会所 宣传","SIS 影视联盟",'"最 新 位 址 獲 取"','"社 區 最 新 情 報"','"聚 合 全 網 H 直 播"'],vk=["#論壇文宣","美女 裸聊","秀场 视频","澳门 赌场","皇冠 赌场","影视 联盟","2048 社区","1024 社区","会所 宣传","扫码 安装","社区 关注","免費 掃碼","找回家","防屏蔽","封殺00","秀场 小视频","裸秀 主播 免费看",'"Free Adult Movie"',"奔驰宝马","最新网址","最新免費","免费试用","美女荷官","凤凰娛樂","观看指南","女神在线","更多无水印","免费在线","国产精品","免費原版","獨家資源","成人光碟","最新AV","FDZone","发布器","QR-1024","在這等你","激情祼聊","看妹不用等","真人祼聊","zz.jpg","X8B9.COM.gif","第一会所 宣传","SIS 影视联盟","淘精網","激情咖啡","手機影城","免费手机看片","U視娛樂","加微信","我愛看片手機版","平台正式上線"],_k=[{type:Ve.keyword,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:100,values:bk},{type:Ve.keyword,queryOnly:!1,label:"⚠️大杀器⚠️",memo:"请谨慎使用!",size:100,values:vk},{type:Ve.keyword,queryOnly:!0,label:"远程关键词示例",size:100,values:[],url:"https://gist.githubusercontent.com/northsea4/a6c1945eb12fe7a7ef125c323b83b3fc/raw?t={t}"},{type:Ve.keyword,queryOnly:!0,label:"只查询示例",memo:"这是一个示例",size:10240,values:["奔驰宝马","美女荷官",'"最 新 位 址 獲 取"']}];function Os(e={}){return {id:Date.now().toString(),type:Ve.keyword,queryOnly:!1,label:"",values:"",memo:"",size:0,sort:0,createdAt:0,updatedAt:0}}function xk(e,t){if(e=e.trim(),t===Ve.keyword)return Ak(e);if(t!==Ve.suffix)return null;const n=kk(e);return {type:st.filter,value:e,maxSize:-1,forDir:!1,isFilter:n,pattern:n?$k(e).toString():e,num:-1,fileIds:[],size:-1,status:xt.none}}function Ck(e){return [xt.prepare,xt.deleting].includes(e.status)}function kd(e,t){const n=[];return Ck(e)&&n.push("active"),(e.type===st.filter||e.isFilter)&&n.push("is-filter"),e.type===st.dirKeyword&&n.push("is-dir"),e.num&&n.push(`item-${yr.matched}`),e.num===0&&n.push(`item-${yr.notMatched}`),n}function kk(e){return new RegExp(`^${Fh}[\\S]{2,}`).test(e)}function $k(e){const t=new RegExp(`^${Fh}`);let n=e.replace(t,"");const s=kl.get(n);if(!s)throw new Error(`"${e}"不是有效的筛选!`);return s}async function Ts(e,t){let n;typeof e=="string"?n=e.split(/[\r\n]+/):n=e;const s=new Set;for(let o=0;o<n.length;o++){const r=n[o].trim();r.length>1&&s.add(r);}const i=[];return s.forEach(o=>{const r=xk(o,t);r&&i.push(r);}),i}function Sk(e){return /(^'.+'$)|(^".+"$)/.test(e)}function $d(e,t){return e===""||!t.patternRegexp?!1:(t.pattern,t.patternRegexp.test(e))}function Sd(e,t,n){const s=Uh(e);s.num=0,s.size=0,s.fileIds=[];const i=new Set;let o=0;n.maxSize&&(o=n.maxSize*1024*1024),e.maxSize>=0&&(o=e.maxSize*1024*1024);for(let r=0;r<t.length;r++){const a=!!t[r].fid,l=a?t[r].fid:t[r].cid;if(!l||(e.type===st.dirKeyword||e.type===st.fileKeyword)&&(a&&e.type!==st.fileKeyword||!a&&e.type!==st.dirKeyword))continue;const u=parseFloat(t[r].s);o&&a&&u>o||e.type===st.fileKeyword&&!$d(t[r].n,e)||e.type===st.dirKeyword&&!$d(t[r].n,e)||e.type===st.fileHash&&t[r].sha!==e.pattern.toUpperCase()||i.has(l)||(i.add(l),s.size+=u);}return s.fileIds=Array.from(i),s.num=s.fileIds.length,s}function Uh(e={}){return {type:st.fileKeyword,value:"",pattern:"",patternRegexp:null,maxSize:-1,size:-1,fullMatch:!1,caseSensitive:!1,isRegexp:!1,impartible:!1,memo:"",...e}}function Ek(e){if(e=e.trim().replace(/\/+$/,"").replace(/^\/+/,""),e==="")return null;const t={caseSensitive:!1,fullMatch:!1,maxSize:-1,isRegexp:!1};let n=!1;const s=e.split(/\s*,\s*/);for(let i=0;i<s.length;i++)s[i]=s[i].trim(),s[i]!==""&&(/^\d+$/.test(s[i])&&(t.maxSize=parseInt(s[i])),s[i]===hk&&(t.fullMatch=!0),s[i]===mk&&(t.fullMatch=!0,t.caseSensitive=!0,n=!0),s[i]===gk&&(t.caseSensitive=!0,n=!0),s[i]===yk&&(t.isRegexp=!0));return t.isRegexp&&(t.caseSensitive=n?t.caseSensitive:!1,t.fullMatch=!1),t}function Ak(e){const t=Uh();if(e=e.trim(),e===""||e.startsWith("//"))return null;if(/^[a-fA-F0-9]{40}(\/.*)?$/.test(e))return t.type=st.fileHash,t.value=e,t.pattern=e.substring(0,40).toLowerCase(),t.memo=e.length>41?e.substring(41):void 0,t;const n=/^(#+)?([^\/]+)(\/[^\/]*)?(\/.+)?/,s=e.match(n);if(s){if(s[2]==="")return null;if(s[3]){const i=Ek(s[3]);i&&(t.caseSensitive=i.caseSensitive,t.fullMatch=i.fullMatch,t.maxSize=i.maxSize,t.isRegexp=i.isRegexp);}if(t.value=e,t.pattern=s[2].trim(),s[1]===pk)return t.type=st.filter,null;s[1]===_u?t.type=st.dirKeyword:t.type=st.fileKeyword,s[4]&&(t.memo=s[4].substring(1).trim());}return t.impartible=Sk(t.pattern),t.impartible&&(t.pattern=t.pattern.replace(/^['"]|['"]$/g,"")),t.type===st.dirKeyword&&(t.maxSize=-1),t.patternRegexp=Pk(t),t}function Pk(e){if(e.pattern===""||![st.dirKeyword,st.fileKeyword].includes(e.type))return null;let t="";if(e.caseSensitive||(t+="i"),e.isRegexp)return new RegExp(e.pattern,t);let n=Dw(e.pattern);return e.fullMatch&&(n=`^${n}$`),e.impartible||(n=n.replace(/\s+/g,".*")),new RegExp(n,t)}function Ik(e){const{type:t,pattern:n,isRegexp:s}=e;return t===st.filter?kl.has(n)?{type:kl.get(n)}:/^\d$/.test(n)?{type:parseInt(n)}:{suffix:n}:s?{search_value:n.replace(/^\^/,"").replace(/\$$/,"")}:{search_value:n}}function oo(e,t,n){if(n){const s=Cr(e,{});Ka(e,{...s,...t});}else Ka(e,t);}function Tk(e={}){return Vl({okStatus:[200],useFileReader:!1,fileReader:{encoding:"utf-8",checkBlank:!0}},e)}async function jh(e,t={}){return new Promise((n,s)=>{const i=t.useFileReader?"blob":"text";Nl({method:"GET",url:e,responseType:i,nocache:!t.cache,onload:async o=>{if(t.okStatus&&!t.okStatus.includes(o.status)&&s(new Error(`请求失败!status=${o.status},statusText=${o.statusText}`)),t.useFileReader){let r=o.response,a=new FileReader;a.onload=l=>{var d;console.log("[load] onload",l);let u=(d=l.target)==null?void 0:d.result;typeof u=="string"?t.fileReader.checkBlank&&u===""?s(new Error("读取内容为空字符串")):n(u):s(new Error("读取结果不是字符串"));},a.readAsText(r,t.fileReader.encoding);return}n(o.response);},onerror:o=>{console.error("[load] onerror",o),s(`请求失败!status=${o==null?void 0:o.status},statusText=${o==null?void 0:o.statusText}`);}});})}async function Ok(e){try{new URL(e.url);}catch{throw new Error(`无效的URL:${e.url}`)}e.url.replace("{t}",Date.now().toString());let t="";try{t=await jh(e.url);}catch(n){throw new Error(`无法加载URL:${n.toString()}`)}if(t=t.trim(),t==="")throw new Error("URL返回内容为空!");e.values=t,e.lastSync=bo();}const Hh=function(){return document.ontouchstart!==null?"click":"touchstart"},wr="__vue_click_away__",zh=function(e,t,n){qh(e);let s=n.context,i=t.value,o=!1;setTimeout(function(){o=!0;},0),e[wr]=function(r){if((!e||!e.contains(r.target))&&i&&o&&typeof i=="function")return i.call(s,r)},document.addEventListener(Hh(),e[wr],!1);},qh=function(e){document.removeEventListener(Hh(),e[wr],!1),delete e[wr];},Mk=function(e,t,n){t.value!==t.oldValue&&zh(e,t,n);},Lk={mounted:zh,updated:Mk,unmounted:qh},Dk=De({__name:"Drawer",props:{isOpen:{type:Boolean,default:!1},maxWidth:{default:"600px"},speed:{default:100},bgColor:{default:"#fff"}},emits:["close"],setup(e,{emit:t}){const n=e,s=ie(!1),i=ie(!1),o=l=>{const u=document.querySelector("body");u.style.overflow=l?"hidden":"";},r=l=>{l.target.classList.contains("ce-drawer__overlay")&&(i.value||a("close"));},a=t;return Wt(()=>{s.value=n.isOpen;}),mt(()=>n.isOpen,l=>{i.value=!0,l?(o(!0),s.value=!0):(o(!1),setTimeout(()=>s.value=!1,n.speed)),setTimeout(()=>i.value=!1,n.speed);}),(l,u)=>(E(),I("div",null,[c("div",{class:ze(["ce-drawer",{"is-open":l.isOpen,"is-visible":s.value}])},[c("div",{class:"ce-drawer__overlay",style:Rn({transitionDuration:`${l.speed}ms`})},null,4),oe((E(),I("div",{class:"ce-drawer__content",style:Rn({maxWidth:l.maxWidth,transitionDuration:`${l.speed}ms`,backgroundColor:l.bgColor})},[nt(l.$slots,"default")],4)),[[pe(Lk),r]])],2)]))}}),gi=je(Dk,[["__file","Drawer.vue"]]),Bk={class:"k-p-e"},Rk={class:"ce-tag-plain"},Nk={class:"text-primary"},Fk={class:"text-success"},Uk={key:0,class:"ce-hr"},jk=De({__name:"KeywordPatternExamples",setup(e){return (t,n)=>(E(),I("div",Bk,[n[2]||(n[2]=c("h4",{style:{"margin-bottom":"6px"}},"关键词说明(前4种类型已满足大部分需求场景)",-1)),(E(!0),I(Oe,null,Je(pe(fk),(s,i)=>(E(),I("div",{key:i},[c("div",null,[c("span",Rk,Y(s[0]),1),n[0]||(n[0]=U("  ")),c("span",Nk,Y(s[1]),1),n[1]||(n[1]=U("  ")),c("span",Fk,Y(s[2]),1)]),i===3?(E(),I("hr",Uk)):we("",!0)]))),128))]))}}),Vh=je(jk,[["__file","KeywordPatternExamples.vue"]]),Hk={class:"group-manager"},zk={key:0,class:"label-readonly",title:"当前分组只可用于查询"},qk={key:1,class:"label-readonly",title:"当前分组特征为远程文本"},Vk=["title"],Wk={class:"groups-list"},Kk={key:0,class:"text-danger"},Gk={class:"pure-table pure-table-bordered"},Jk={align:"center"},Yk=["onClick"],Qk={class:"group-confirm-delete"},Xk=["onClick"],Zk=["onClick"],e$={class:"pure-form pure-form-stacked group-form"},t$={class:"pure-control-group"},n$={class:"pure-control-group"},s$={key:0,class:"pure-control-group"},o$={class:"pure-form-message"},i$={class:"pure-control-group"},r$={class:"pure-form-message"},a$={key:0,class:"text-info"},l$={key:1,class:"text-info"},u$=["onClick"],c$={class:"values"},d$={class:"v-input"},f$={class:"v-help"},p$={class:"pure-control-group"},h$={class:"pure-control-group"},m$=De({__name:"GroupManager",props:{type:{},storageKey:{},config:{}},emits:["change"],setup(e,{emit:t}){const n=e,s=t,i=ie(!1),o=ie(Os({type:n.type})),r=ie([]),a=ie(!1),l=ie(Os({type:n.type})),u=ie(!1),d=ie(null),h=[Jt.video,Jt.audio,Jt.image,Jt.doc,Jt.app,Jt.archive];mt(r,async ce=>{console.log("[groups change]",ce),oo(n.storageKey,ce,!1),ce.length||(a.value=!1,u.value=!1);},{deep:!0});let g=!1;Wt(async()=>{if(!g){g=!0,r.value=Cr(n.storageKey,[]),console.log("[groups]",r.value);const{suffixGroup:ce,keywordGroup:R}=n.config;if(r.value.length){const N=r.value.find(G=>G.id===(n.type===Ve.suffix?ce:R));console.log("[group last choosen]",N),o.value=N||r.value[0],s("change",o.value);}else n.type===Ve.suffix&&!ce&&(await D(),oo(yt.cleanerConfig,{suffixGroup:o.value.id},!0)),n.type===Ve.keyword&&!R&&(await D(),oo(yt.cleanerConfig,{keywordGroup:o.value.id},!0));}}),Js(async()=>{});async function v(ce){const R=`#${ce}`;l.value.values.includes(R)||(l.value.values+=(`
`+R).trim()+`
`);}async function b(){i.value=!1;}async function _(){u.value=!1;}async function B(){u.value=!0,a.value=!1;}async function L(){d.value.show();}async function F(){d.value.hide();}async function O(){l.value.createdAt&&(l.value=Os({type:n.type})),l.value.size=5,n.type===Ve.keyword&&(l.value.size=100),i.value=!0;}async function D(){let ce=[];n.type===Ve.suffix?ce=wk:ce=_k;for(let R=0;R<ce.length;R++){const N={...Os({type:ce[R].type}),...ce[R]};l.value=N,l.value.type=N.type,l.value.queryOnly=N.queryOnly,l.value.size=N.size,l.value.label=N.label,l.value.memo=N.memo,l.value.createdAt=0,l.value.updatedAt=0,Array.isArray(N.values)?l.value.values=N.values.join(`
`):l.value.values=N.values,await K(),await F();}r.value.length&&await fe(r.value[0]);}async function j(ce,R=!1){if(!R){const{isConfirmed:G}=await me.fire({html:`确定删除"${o.value.label}"?`,icon:"question"});if(!G)return}let N=-1;for(let G=0;G<r.value.length;G++)if(r.value[G].id===o.value.id){N=G;break}r.value.splice(N,1),r.value.length?o.value=r.value[0]:o.value=Os({type:n.type}),s("change",o.value),await re({icon:"success",title:"删除成功!",timer:1500});}async function H(ce){l.value=ce,i.value=!0;}async function K(){let ce=[];try{ce=await Ts(l.value.values,l.value.type);}catch(be){await me.fire({icon:"error",text:be.message});return}if(l.value.label=l.value.label.trim(),l.value.memo=l.value.memo.trim(),l.value.label===""){await re({icon:"warning",text:"请输入标题!"});return}let R=-1;for(let be=0;be<r.value.length;be++)if(r.value[be].id===l.value.id&&l.value.id){R=be;break}const N=bo();l.value.updatedAt=N,l.value.createdAt||(l.value.createdAt=N);let G=[];for(let be=0;be<ce.length;be++)G.push(ce[be].value);l.value.values=G.join(`
`).trim(),console.log("[saveGroup]",l.value,R),R===-1?(r.value.push(l.value),re({icon:"success",text:"添加成功"})):(r.value[R]=l.value,re({icon:"success",text:"更新成功"}));const he=!o.value.createdAt;he&&(o.value=l.value),(l.value.id===o.value.id||he)&&s("change",l.value),await b();}async function fe(ce){o.value=ce;const{id:R}=o.value;n.type===Ve.suffix&&(n.config.suffixGroup=R,oo(yt.cleanerConfig,{suffixGroup:R},!0)),n.type===Ve.keyword&&(n.config.keywordGroup=R,oo(yt.cleanerConfig,{keywordGroup:R},!0)),s("change",ce);}async function ve(ce,R=!1){try{await Ok(ce);}catch(N){console.error(N),re({icon:"error",text:N.message});return}R?(l.value=ce,await K()):re({icon:"success",text:"读取成功"});}return (ce,R)=>{const N=qs("VDropdown");return E(),I("div",Hk,[o.value.queryOnly?(E(),I("span",zk," 🔍 只查询 ")):we("",!0),o.value.url?(E(),I("span",qk," 🔗 远程 ")):we("",!0),o.value.createdAt?(E(),I("span",{key:2,class:"group-label",title:`当前使用的分组: ${o.value.label}`},[c("span",null,[R[11]||(R[11]=c("small",null,"分组:",-1)),U(" "+Y(o.value.label),1)])],8,Vk)):we("",!0),o.value.url?(E(),I("a",{key:3,href:"javascript:void(0)",class:"pure-button button-success",onClick:R[0]||(R[0]=G=>ve(o.value,!0))}," ↓ 同步关键词")):we("",!0),c("a",{href:"javascript:void(0)",class:"pure-button",onClick:R[1]||(R[1]=G=>H(o.value))}," ✎ 编辑 "),R[36]||(R[36]=U("    ")),c("a",{href:"javascript:void(0)",class:"pure-button button-small",onClick:O},"+ 新增分组"),ye(N,{ref_key:"list",ref:d,onHide:_,onShow:B,distance:5},{popper:Re(()=>[c("div",Wk,[r.value.length?we("",!0):(E(),I("h3",Kk,[R[12]||(R[12]=U(" 还没有添加任何分组。你可以: ")),c("button",{type:"button",class:"pure-button button-small",onClick:O},"添加"),R[13]||(R[13]=U("   ")),R[14]||(R[14]=c("span",{class:"text-info"},"或",-1)),R[15]||(R[15]=U("   ")),c("button",{type:"button",class:"pure-button button-small",onClick:D},"使用脚本内置"),R[16]||(R[16]=c("br",null,null,-1)),R[17]||(R[17]=c("br",null,null,-1))])),c("table",Gk,[R[21]||(R[21]=c("thead",null,[c("tr",null,[c("th",{width:"25"},"#"),c("th",{width:"70"},"只查询"),c("th",{width:"150"},"名称"),c("th",{width:"150"},"备注"),c("th",{width:"70"},[U("大小"),c("small",null,"MB")]),c("th",{width:"220"},"操作")])],-1)),c("tbody",null,[(E(!0),I(Oe,null,Je(r.value,(G,he)=>(E(),I("tr",{key:he},[c("td",null,Y(he+1),1),c("td",Jk,Y(G.queryOnly?"是":"否"),1),c("td",null,Y(G.label),1),c("td",null,Y(G.memo),1),c("td",null,Y(G.size),1),c("td",null,[c("button",{type:"button",class:"pure-button button-xsmall text-primary",onClick:be=>fe(G)},"载入",8,Yk),R[19]||(R[19]=U("   ")),ye(N,null,{popper:Re(()=>[c("div",Qk,[c("button",{type:"button",class:"pure-button button-error",onClick:be=>j(G,!0)},"确定",8,Xk)])]),default:Re(()=>[R[18]||(R[18]=c("button",{type:"button",class:"pure-button button-xsmall text-danger"},"删除",-1))]),_:2},1024),R[20]||(R[20]=U("   ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:be=>H(G)},"编辑",8,Zk)])]))),128))])])])]),default:Re(()=>[c("a",{href:"javascript:void(0)",class:"pure-button button-small",onClick:L},"≡ 分组列表")]),_:1},512),ye(gi,{"is-open":i.value,onClose:R[10]||(R[10]=G=>i.value=!1),"max-width":"1030px",speed:100,"bg-color":"#fff"},{default:Re(()=>[c("form",e$,[c("fieldset",null,[c("div",t$,[R[22]||(R[22]=c("label",{for:"groupLabel"},"* 标题",-1)),oe(c("input",{type:"text","onUpdate:modelValue":R[2]||(R[2]=G=>l.value.label=G),id:"groupLabel",class:"pure-input-1-2",placeholder:"分组标题"},null,512),[[Ge,l.value.label]]),R[23]||(R[23]=U("    ")),l.value.queryOnly?(E(),I("button",{key:0,type:"button",class:"pure-button button-small button-warning",onClick:R[3]||(R[3]=G=>l.value.queryOnly=!1)},"已设置为仅用于查询 | 点击取消设置")):we("",!0),l.value.queryOnly?we("",!0):(E(),I("button",{key:1,type:"button",class:"pure-button button-small pure-button-primary",onClick:R[4]||(R[4]=G=>l.value.queryOnly=!0)},"设置为仅用于查询"))]),c("div",n$,[R[24]||(R[24]=c("label",{for:"groupMemo"},"备注",-1)),oe(c("input",{type:"text","onUpdate:modelValue":R[5]||(R[5]=G=>l.value.memo=G),id:"groupMemo",placeholder:"分组备注"},null,512),[[Ge,l.value.memo]])]),n.type===pe(Ve).keyword?(E(),I("div",s$,[R[27]||(R[27]=c("label",{for:"groupUrl"},"远程链接",-1)),c("div",o$,[R[25]||(R[25]=c("span",null,"纯文本, utf-8编码",-1)),R[26]||(R[26]=U("    ")),l.value.url?(E(),I("button",{key:0,type:"button",class:"pure-button button-small button-success",onClick:R[6]||(R[6]=G=>ve(l.value,!1))}," 读取 ")):we("",!0)]),oe(c("input",{type:"text","onUpdate:modelValue":R[7]||(R[7]=G=>l.value.url=G),id:"groupUrl",placeholder:"远程链接"},null,512),[[Ge,l.value.url]])])):we("",!0),c("div",i$,[R[32]||(R[32]=c("label",{for:"groupValues"},"* 特征列表",-1)),c("div",r$,[n.type===pe(Ve).keyword?(E(),I("span",a$,[R[28]||(R[28]=U(" 默认只匹配文件名。前面带")),c("b",null,Y(pe(_u)),1),R[29]||(R[29]=U("则只匹配目录名。 "))])):we("",!0),n.type===pe(Ve).suffix?(E(),I("span",l$,[R[30]||(R[30]=U(" 支持115自带筛选: ")),(E(),I(Oe,null,Je(h,(G,he)=>c("span",{class:"filter-label text-success",key:he,onClick:be=>v(G)}," #"+Y(G),9,u$)),64)),R[31]||(R[31]=c("small",{class:"text-primary"},"(点击添加)",-1))])):we("",!0)]),c("div",c$,[c("div",d$,[oe(c("textarea",{id:"groupValues","onUpdate:modelValue":R[8]||(R[8]=G=>l.value.values=G),rows:"14",placeholder:"每行一个"},null,512),[[Ge,l.value.values]])]),c("div",f$,[ye(Vh)])])]),c("div",p$,[R[33]||(R[33]=c("label",{for:"groupMemo"},"* 文件大小",-1)),R[34]||(R[34]=c("div",{class:"pure-form-message"},[U("只清理小于该大小的文件,单位"),c("b",null,"MB")],-1)),oe(c("input",{type:"number","onUpdate:modelValue":R[9]||(R[9]=G=>l.value.size=G),class:"pure-input-1-4",placeholder:"文件大小小于该数值才清理"},null,512),[[Ge,l.value.size]])]),c("div",h$,[c("button",{type:"button",class:"pure-button pure-button-primary",onClick:K},Y(l.value.createdAt?"更新":"添加"),1),R[35]||(R[35]=U("      ")),c("button",{type:"button",class:"pure-button",onClick:b},"取消")])])])]),_:1},8,["is-open"])])}}}),Ed=je(m$,[["__file","GroupManager.vue"]]),g$={class:"cloud115-eh-cleaner-help"},y$=De({__name:"Help",setup(e){return (t,n)=>(E(),I("div",g$,[c("div",null,[n[3]||(n[3]=Wp('<h2>免责声明</h2><div><p>该工具仅作为学习测试用途,使用该工具造成的任何结果由使用人承担。</p></div><hr><h2>说明</h2><ul style="color:#f40;"><li class="text-primary">始于清理,但不止于清理!</li><li>* 仅对当前选中的目录及其子目录生效。</li><li>* 通过<b class="text-primary">新增分组 / 分组列表</b>管理你的清理特征。</li><li>* 建议整理自己的特征,也欢迎在交流中分享你的特征。</li><li>* <b class="text-primary">只查询</b>按钮,只会进行查询。</li><li>* <b class="text-primary">一键清理</b>是先查询,再进行删除!</li><li>* 由于搜索接口限制,如果某个关键词结果数量超过1万,可能会清理不完全,可以多执行几次清理。</li><li>* <b>清理期间,请保持当前页面处于激活状态!</b></li><li>* <b>请谨慎操作!请谨慎操作!请谨慎操作!</b></li></ul><hr><h3>按 后缀名 清理</h3><div><p>1. 点击<b class="text-primary">分组列表</b>,选择一个分组;</p><p>2. 确认后缀名和文件大小限制等的设定;</p><p>3. 点击<b class="text-primary">一键清理</b>按钮,耐心等待。</p></div><hr><h3>按 关键词 清理</h3>',10)),c("div",null,[n[0]||(n[0]=c("p",{class:"text-danger"},[U("目录名关键词使用"),c("b",null,"搜索"),U("接口查找匹配,只能逐个关键词进行处理,请尽量使用简单的关键词,否则可能会匹配不到。")],-1)),n[1]||(n[1]=c("p",{class:"text-danger"},[U("文件名关键词使用"),c("b",null,"列表"),U("接口查找匹配,速度较快,且支持更灵活的关键词。")],-1)),n[2]||(n[2]=c("br",null,null,-1)),ye(Vh)])])]))}}),w$=je(y$,[["__file","Help.vue"]]),b$={key:0},v$={key:1},_$={key:2},x$={key:3},C$={key:4},k$={key:5},$$={key:6},S$={key:7},E$={key:8},A$={key:9},P$=De({__name:"Pager",props:{totalItems:{type:Number,required:!0},itemsPerPage:{type:Number,default:10,validator:e=>{if(e<=0){const t="itemsPerPage attribute must be greater than 0.";throw console.error(t),new TypeError(t)}return !0}},currentPage:{type:Number,default:1,validator:e=>{const t="currentPage attribute must be greater than 0.";if(e<=0)throw console.error(t),new TypeError(t);return !0}},modelValue:{type:Number,required:!0,validator:e=>{const t="v-model is required and must be greater than 0.";if(e<=0)throw console.error(t),new TypeError(t);return !0}},maxPagesShown:{type:Number,default:5,validator:e=>{const t="maxPagesShown attribute must be greater than 0.";if(e<=0)throw console.error(t),new TypeError(t);return !0}},dir:{type:String,default:"ltr",validator:e=>{const t='dir attribute must be either "ltr" or "rtl".';if(e!=="ltr"&&e!=="rtl")throw console.error(t),new TypeError(t);return !0}},type:{type:String,default:"button",validator:e=>{const t=["link","button"],n="type attribute must be one of the following: "+t.join(", ");if(t.indexOf(e)===-1)throw console.error(n),new TypeError(n);return !0}},onClick:{type:Function,default:()=>{}},prevButtonContent:{type:String,default:"<"},nextButtonContent:{type:String,default:">"},hidePrevNext:{type:Boolean,default:!1},hidePrevNextWhenEnds:{type:Boolean,default:!1},showBreakpointButtons:{type:Boolean,default:!0},disableBreakpointButtons:{type:Boolean,default:!1},startingBreakpointContent:{type:String,default:"..."},endingBreakpointButtonContent:{type:String,default:"..."},showJumpButtons:{type:Boolean,default:!1},linkUrl:{type:String,default:"#"},backwardJumpButtonContent:{type:String,default:"<<"},forwardJumpButtonContent:{type:String,default:">>"},disablePagination:{type:Boolean,default:!1},showEndingButtons:{type:Boolean,default:!1},firstPageContent:{type:String,default:"First"},lastPageContent:{type:String,default:"Last"},backButtonClass:{type:String,default:"back-button"},nextButtonClass:{type:String,default:"next-button"},firstButtonClass:{type:String,default:"first-button"},lastButtonClass:{type:String,default:"last-button"},numberButtonsClass:{type:String,default:"number-buttons"},startingBreakpointButtonClass:{type:String,default:"starting-breakpoint-button"},endingBreakPointButtonClass:{type:String,default:"ending-breakpoint-button"},firstPageButtonClass:{type:String,default:"first-page-button"},lastPageButtonClass:{type:String,default:"last-page-button"},paginateButtonsClass:{type:String,default:"paginate-buttons pure-button"},disabledPaginateButtonsClass:{type:String,default:"disabled-paginate-buttons"},activePageClass:{type:String,default:"active-page"},paginationContainerClass:{type:String,default:"pagination-container"},disabledBreakPointButtonClass:{type:String,default:"disabled-breakpoint-button"},backwardJumpButtonClass:{type:String,default:"backward-jump-button"},forwardJumpButtonClass:{type:String,default:"forward-jump-button"},disabledBackwardJumpButtonClass:{type:String,default:"disabled-backward-jump-button"},disabledBackButtonClass:{type:String,default:"disabled-back-button"},disabledFirstButtonClass:{type:String,default:"disabled-first-button"},disabledLastButtonClass:{type:String,default:"disabled-last-button"},disabledNextButtonClass:{type:String,default:"disabled-next-button"},disabledForwardJumpButtonClass:{type:String,default:"disabled-forward-jump-button"}},emits:["update:modelValue","click"],setup(e,{emit:t}){const n=e;if(n.currentPage&&!n.modelValue)throw new Error("currentPage/current-page is now deprecated, use v-model instead to set the current page.");if(!n.modelValue)throw new TypeError("v-model is required for the paginate component.");const s=o1(n,"modelValue"),i=t,o=O=>{O!==s.value&&(O>l.value||O<1||n.disablePagination||(i("update:modelValue",O),i("click",O)));},r=O=>O,a=O=>n.type!=="link"?"":n.linkUrl.replace("[page]",O.toString()),l=it(()=>Math.ceil(n.totalItems/n.itemsPerPage)),u=it(()=>{let O,D;if(l.value<=n.maxPagesShown)O=1,D=l.value;else {let H=Math.floor(n.maxPagesShown/2),K=Math.ceil(n.maxPagesShown/2)-1;s.value<=H?(O=1,D=n.maxPagesShown):s.value+K>=l.value?(O=l.value-n.maxPagesShown+1,D=l.value):(O=s.value-H,D=s.value+K);}let j=Array.from(Array(D+1-O).keys()).map(H=>O+H);return n.dir==="rtl"&&(j=j.reverse()),{totalItems:n.totalItems,currentPage:s.value,itemsPerPage:n.itemsPerPage,totalPages:l,startPage:O,endPage:D,pages:j}}),d=it(()=>n.dir==="rtl"),h=it(()=>d.value?!n.hidePrevNextWhenEnds||s.value!==l.value:!n.hidePrevNextWhenEnds||s.value!==1),g=it(()=>d.value?!n.hidePrevNextWhenEnds||s.value!==1:!n.hidePrevNextWhenEnds||s.value!==l.value),v=it(()=>d.value?u.value.pages[0]<l.value-1:u.value.pages[0]>=3),b=it(()=>d.value?u.value.pages[u.value.pages.length-1]>=3:u.value.pages[u.value.pages.length-1]<l.value-1),_=it(()=>d.value?u.value.pages[0]<l.value:u.value.pages[0]>=2),B=it(()=>d.value?u.value.pages[u.value.pages.length-1]>=2:u.value.pages[u.value.pages.length-1]<l.value),L=it(()=>s.value!==1),F=it(()=>s.value!==l.value);if(n.type==="link"&&n.linkUrl==="#")throw console.error("linkUrl attribute is required if type attribute is 'link'"),new TypeError("linkUrl attribute is required if type attribute is 'link'");if(n.type==="link"&&!n.linkUrl.includes("[page]"))throw console.error("linkUrl attribute must contain '[page]' substring"),new TypeError("linkUrl attribute must contain '[page]' substring");return (O,D)=>(E(),I("ul",{id:"componentContainer",class:ze(e.paginationContainerClass)},[e.showEndingButtons&&L.value?(E(),I("li",b$,[(E(),ot(bn(e.type==="button"?"button":"a"),{href:a(d.value?l.value:1),onClick:D[0]||(D[0]=fn(j=>o(d.value?l.value:1),["prevent"])),class:ze([e.firstPageButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:""]),disabled:e.disablePagination},{default:Re(()=>[nt(O.$slots,"first-page-button",{},()=>[U(Y(e.firstPageContent),1)])]),_:3},8,["href","class","disabled"]))])):we("",!0),e.showJumpButtons&&v.value?(E(),I("li",v$,[(E(),ot(bn(e.type==="button"?"button":"a"),{href:a(d.value?s.value+Math.ceil(e.maxPagesShown/2):s.value-Math.ceil(e.maxPagesShown/2)),onClick:D[1]||(D[1]=fn(j=>o(d.value?s.value+Math.ceil(e.maxPagesShown/2):s.value-Math.ceil(e.maxPagesShown/2)),["prevent"])),class:ze([e.backwardJumpButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledBackwardJumpButtonClass:""]),disabled:e.disablePagination},{default:Re(()=>[nt(O.$slots,"backward-jump-button",{},()=>[U(Y(e.backwardJumpButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):we("",!0),!e.hidePrevNext&&h.value?(E(),I("li",_$,[(E(),ot(bn(e.type==="button"?"button":"a"),{href:a(d.value?s.value+1:s.value-1),onClick:D[2]||(D[2]=fn(j=>o(d.value?s.value+1:s.value-1),["prevent"])),class:ze([e.backButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledBackButtonClass:""]),disabled:e.disablePagination},{default:Re(()=>[nt(O.$slots,"prev-button",{},()=>[U(Y(e.prevButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):we("",!0),e.showBreakpointButtons&&_.value?(E(),I("li",x$,[(E(),ot(bn(e.type==="button"?"button":"a"),{href:a(d.value?l.value:1),onClick:D[3]||(D[3]=fn(j=>o(d.value?l.value:1),["prevent"])),class:ze([e.firstButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledFirstButtonClass:""]),disabled:e.disablePagination},{default:Re(()=>[U(Y(d.value?r(l.value):r(1)),1)]),_:1},8,["href","class","disabled"]))])):we("",!0),e.showBreakpointButtons&&v.value?(E(),I("li",C$,[(E(),ot(bn(e.type==="button"?"button":"a"),{href:a(e.disableBreakpointButtons?s.value:d.value?s.value+Math.ceil(e.maxPagesShown/2):s.value-Math.ceil(e.maxPagesShown/2)),onClick:D[4]||(D[4]=fn(j=>o(e.disableBreakpointButtons?s.value:d.value?s.value+Math.ceil(e.maxPagesShown/2):s.value-Math.ceil(e.maxPagesShown/2)),["prevent"])),disabled:e.disableBreakpointButtons||e.disablePagination,class:ze([e.startingBreakpointButtonClass,e.paginateButtonsClass,e.disableBreakpointButtons||e.disablePagination?`${e.disabledPaginateButtonsClass} ${e.disabledBreakPointButtonClass}`:""])},{default:Re(()=>[nt(O.$slots,"starting-breakpoint-button",{},()=>[U(Y(e.startingBreakpointContent),1)])]),_:3},8,["href","disabled","class"]))])):we("",!0),(E(!0),I(Oe,null,Je(u.value.pages,(j,H)=>(E(),I("li",{key:H},[(E(),ot(bn(e.type==="button"?"button":"a"),{href:a(j),onClick:fn(()=>o(j),["prevent"]),class:ze([e.paginateButtonsClass,e.numberButtonsClass,j===s.value?e.activePageClass:"",e.disablePagination?e.disabledPaginateButtonsClass:""]),disabled:e.disablePagination},{default:Re(()=>[U(Y(r(j)),1)]),_:2},1032,["href","onClick","class","disabled"]))]))),128)),e.showBreakpointButtons&&b.value?(E(),I("li",k$,[(E(),ot(bn(e.type==="button"?"button":"a"),{href:a(e.disableBreakpointButtons?s.value:d.value?s.value-Math.ceil(e.maxPagesShown/2):s.value+Math.ceil(e.maxPagesShown/2)),onClick:D[5]||(D[5]=fn(j=>o(e.disableBreakpointButtons?s.value:d.value?s.value-Math.ceil(e.maxPagesShown/2):s.value+Math.ceil(e.maxPagesShown/2)),["prevent"])),disabled:e.disableBreakpointButtons||e.disablePagination,class:ze([e.endingBreakPointButtonClass,e.paginateButtonsClass,e.disableBreakpointButtons||e.disablePagination?`${e.disabledPaginateButtonsClass} ${e.disabledBreakPointButtonClass}`:""])},{default:Re(()=>[nt(O.$slots,"ending-breakpoint-button",{},()=>[U(Y(e.endingBreakpointButtonContent),1)])]),_:3},8,["href","disabled","class"]))])):we("",!0),e.showBreakpointButtons&&B.value?(E(),I("li",$$,[(E(),ot(bn(e.type==="button"?"button":"a"),{href:a(d.value?1:l.value),onClick:D[6]||(D[6]=fn(j=>o(d.value?1:l.value),["prevent"])),class:ze([e.lastButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledLastButtonClass:""]),disabled:e.disablePagination},{default:Re(()=>[U(Y(d.value?r(1):r(l.value)),1)]),_:1},8,["href","class","disabled"]))])):we("",!0),!e.hidePrevNext&&g.value?(E(),I("li",S$,[(E(),ot(bn(e.type==="button"?"button":"a"),{href:a(d.value?s.value-1:s.value+1),onClick:D[7]||(D[7]=fn(j=>o(d.value?s.value-1:s.value+1),["prevent"])),class:ze([e.paginateButtonsClass,e.nextButtonClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledNextButtonClass:""]),disabled:e.disablePagination},{default:Re(()=>[nt(O.$slots,"next-button",{},()=>[U(Y(e.nextButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):we("",!0),e.showJumpButtons&&b.value?(E(),I("li",E$,[(E(),ot(bn(e.type==="button"?"button":"a"),{href:a(d.value?s.value-Math.ceil(e.maxPagesShown/2):s.value+Math.ceil(e.maxPagesShown/2)),onClick:D[8]||(D[8]=fn(j=>o(d.value?s.value-Math.ceil(e.maxPagesShown/2):s.value+Math.ceil(e.maxPagesShown/2)),["prevent"])),class:ze([e.forwardJumpButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledForwardJumpButtonClass:""]),disabled:e.disablePagination},{default:Re(()=>[nt(O.$slots,"forward-jump-button",{},()=>[U(Y(e.forwardJumpButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):we("",!0),e.showEndingButtons&&F.value?(E(),I("li",A$,[(E(),ot(bn(e.type==="button"?"button":"a"),{href:a(d.value?1:l.value),onClick:D[9]||(D[9]=fn(j=>o(d.value?1:l.value),["prevent"])),class:ze([e.lastPageButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:""]),disabled:e.disablePagination},{default:Re(()=>[nt(O.$slots,"last-page-button",{},()=>[U(Y(e.lastPageContent),1)])]),_:3},8,["href","class","disabled"]))])):we("",!0)],2))}}),Ad=je(P$,[["__file","Pager.vue"]]),I$=De({__name:"Divider",props:{paddingY:{default:10},color:{default:"#eee"},transparent:{type:Boolean,default:!1}},setup(e){const t=e,n=it(()=>{const s=t.transparent?"transparent":t.color,i=`${t.paddingY}px`;return {marginTop:i,height:i,borderTop:`1px solid ${s}`}});return (s,i)=>(E(),I("div",{class:"ce-divider",style:Rn(n.value)},[nt(s.$slots,"default")],4))}}),Pd=je(I$,[["__file","Divider.vue"]]),T$={class:"ce-file-list"},O$={class:"text-small text-info"},M$={class:"text-primary"},L$={class:"text-danger"},D$={class:"item-meta"},B$={key:0,class:"ce-label"},R$={key:1,class:"ce-label"},N$={key:2,class:"ce-label"},F$={key:3,class:"ce-label"},U$={key:4,class:"ce-label"},j$={key:5,class:"ce-label ce-label-danger"},H$={key:6,class:"ce-label ce-label-danger"},z$={key:7,class:"text-info"},q$={class:"text-success"},V$={class:"pure-table pure-table-bordered"},W$={class:"text-small"},K$={class:"text-success"},G$=De({__name:"FileList",props:{group:{},pattern:{},files:{}},setup(e){const t=e,n=ie([]),s=ie(0),i=ie(15),o=ie(5),r=ie(1);It(async()=>{var u;s.value=((u=t.pattern.fileIds)==null?void 0:u.length)||0,a();});function a(u=1){const d=[],{fileIds:h=[]}=t.pattern,g=i.value*(u-1),v=h.slice(g,g+i.value);for(const b of v){const _=t.files.get(b);if(_){const B=Gs(_);d.push(B);}}n.value=d;}function l(u){a(u);}return (u,d)=>(E(),I("div",T$,[c("div",null,[c("div",O$,[d[2]||(d[2]=c("small",null,"原始:",-1)),d[3]||(d[3]=U()),c("span",M$,Y(u.pattern.value),1),d[4]||(d[4]=U(", ")),d[5]||(d[5]=c("small",null,"类型:",-1)),d[6]||(d[6]=U()),c("span",L$,Y(pe(Nh)[u.pattern.type]),1),c("div",null," fullMatch: "+Y(u.pattern.fullMatch)+", caseSensitive: "+Y(u.pattern.caseSensitive)+", impartible: "+Y(u.pattern.impartible)+", isRegexp: "+Y(u.pattern.isRegexp)+", maxSize: "+Y(u.pattern.maxSize)+", patternRegexp: "+Y(u.pattern.patternRegexp),1)]),d[8]||(d[8]=c("hr",null,null,-1)),c("div",D$,[u.pattern.fullMatch?(E(),I("span",B$,"全等")):we("",!0),u.pattern.caseSensitive?(E(),I("span",R$,"区分大小写")):we("",!0),u.pattern.impartible?(E(),I("span",N$,"匹配空格")):we("",!0),u.pattern.isRegexp?(E(),I("span",F$,"正则")):we("",!0),u.pattern.type===pe(st).fileHash?(E(),I("span",U$,"sha1")):we("",!0),u.pattern.maxSize===0?(E(),I("span",j$,"任意大小")):we("",!0),u.pattern.maxSize>0?(E(),I("span",H$,"不大于"+Y(u.pattern.maxSize)+"MB",1)):we("",!0),u.pattern.memo?(E(),I("div",z$,[d[7]||(d[7]=c("small",null,"备注:",-1)),U(" "+Y(u.pattern.memo),1)])):we("",!0)])]),d[10]||(d[10]=c("br",null,null,-1)),c("div",null,[s.value>i.value?(E(),ot(Ad,{key:0,"total-items":s.value,"items-per-page":i.value,"max-pages-shown":o.value,modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=h=>r.value=h),onClick:l},null,8,["total-items","items-per-page","max-pages-shown","modelValue"])):we("",!0),c("span",q$,"数量: "+Y(s.value),1),ye(Pd,{transparent:"","padding-y":5}),c("table",V$,[d[9]||(d[9]=c("thead",null,[c("tr",null,[c("th",null,"#"),c("th",{width:"30"},"类型"),c("th",null,"ID"),c("th",{width:"250"},"名称"),c("th",null,"大小"),c("th",{width:"305"},"SHA1")])],-1)),c("tbody",null,[(E(!0),I(Oe,null,Je(n.value,(h,g)=>(E(),I("tr",{key:g},[c("td",null,Y(i.value*(r.value-1)+g+1),1),c("td",null,Y(h.isDir?"目录":"文件"),1),c("td",null,Y(h.id),1),c("td",null,Y(h.name),1),c("td",null,Y(h.sizeDesc),1),c("td",W$,Y(h.hash),1)]))),128))])]),ye(Pd,{transparent:"","padding-y":5}),s.value>i.value?(E(),ot(Ad,{key:1,"total-items":s.value,"items-per-page":i.value,"max-pages-shown":o.value,modelValue:r.value,"onUpdate:modelValue":d[1]||(d[1]=h=>r.value=h),onClick:l},null,8,["total-items","items-per-page","max-pages-shown","modelValue"])):we("",!0),c("span",K$,"数量: "+Y(s.value),1)])]))}}),J$=je(G$,[["__scopeId","data-v-89339f2e"],["__file","FileList.vue"]]),Y$=De({__name:"GoTop",props:{label:{default:"回到顶部"},container:{default:"body"}},setup(e){const t=e;async function n(){if(t.container instanceof HTMLElement)t.container.scrollTo(0,0);else {const s=document.querySelector(t.container);s==null||s.scrollTo(0,0);}}return (s,i)=>nt(s.$slots,"default",{},()=>[c("button",{type:"button",class:"pure-button button-small",onClick:n},Y(s.label),1)])}}),Wh=je(Y$,[["__file","GoTop.vue"]]),Q$={type:"button",class:"pure-button button-success"},X$=De({__name:"DirSelector",props:{label:{default:"切换目录"},purpose:{default:"操作"},confirmLabel:{default:"选择该目录"},onlyDir:{type:Boolean,default:!0},showRecord:{type:Boolean,default:!0},showCopy:{type:Boolean,default:!0}},emits:["select"],setup(e,{emit:t}){const n=e,s=t;async function i(){unsafeWindow.parent.Core.FileSelectDG.Open(async(o,r)=>{console.log("[Core.FileSelectDG.Open]",o,r),s("select",{items:o,xx:r});},{select:1,nf:n.onlyDir?1:0,show_record:n.showRecord?1:0,show_copy:n.showCopy?1:0,btn_txt:n.confirmLabel,select_txt:n.purpose});}return (o,r)=>(E(),I("span",{onClick:i},[nt(o.$slots,"default",{},()=>[c("button",Q$,Y(o.label),1)])]))}}),yi=je(X$,[["__file","DirSelector.vue"]]),Z$={class:"cloud115-eh-cleaner ce-cleaner-x"},e2={class:"header actions-bar"},t2={class:"close"},n2={class:"ce-path ce-label ce-label-primary-plain"},s2=["href"],o2={class:"by-box by-suffix"},i2={class:"by-header"},r2={class:"pure-button-group",role:"group"},a2=["disabled"],l2={class:"pure-table pure-table-bordered"},u2=["onClick"],c2=["onClick"],d2=["onClick"],f2=["onClick"],p2={class:"by-header"},h2={class:"pure-button-group",role:"group"},m2=["disabled"],g2=["value"],y2=["value"],w2={class:"item-index"},b2={class:"item-val"},v2=["href"],_2={class:"file-type tp-folder"},x2={class:"item-meta"},C2={key:0,class:"ce-label"},k2={key:1,class:"ce-label"},$2={key:2,class:"ce-label"},S2={key:3,class:"ce-label"},E2={key:4,class:"ce-label"},A2={key:5,class:"ce-label ce-label-danger"},P2={key:6,class:"ce-label ce-label-danger"},I2={key:7,class:"text-info"},T2={key:0,class:"text-small text-info"},O2={class:"text-primary"},M2={class:"text-danger"},L2={class:"item-num"},D2={class:"item-size"},B2={class:"item-actions"},R2=["onClick"],N2=["onClick"],F2=["onClick"],U2={class:"item-status"},j2={class:"footer actions-bar"},H2={class:"ce-path ce-label ce-label-primary-plain"},z2=["href"],q2=De({__name:"Cleaner",setup(e){const t=ie(!1),n=ie(!0),s=ie(Os({type:Ve.suffix})),i=ie(Os({type:Ve.keyword})),o=ie({maxSize:5,matchName:!1}),r=ie({maxSize:100,matchName:!0,keywordCategory:Wo.all,resultCategory:yr.all}),a=ie([]),l=ie([]),u=ie(!1),d=ie({initialized:!1,...Cr(yt.cleanerConfig,{}),pageSize:1150,reqInterval:100,deleteSize:1150}),h=ie(""),g=ie([]),v=ie(null),b=ie(!1),_=it(()=>h.value?Ds(h.value):"");async function B(){b.value=!b.value;}const L=ie(!1),F=new Map,O=ie({});async function D(Z){for(const T of Z){const W=T.fid||T.cid;W&&!F.has(W)&&F.set(W,T);}}async function j(Z,T){O.value.files=F,O.value.group=Z,O.value.pattern=T,L.value=!0;}async function H(Z){Z.data.type===Ht.OPEN_CLEANER&&(await K(Z.data.payload),Fs({type:Ht.CLEANER_OPENED},Z.source));}Wt(async()=>{d.value.initialized||(d.value.initialized=!0,oo(yt.cleanerConfig,d.value,!1)),window.addEventListener("message",H);}),Js(()=>{window.removeEventListener("message",H);});async function K(Z){t.value=!0;const T=await zt();if(T==="0"||T===""){await fe(),await me.fire({icon:"warning",html:"<h2>不允许在根目录使用该工具!</h2>"});return}h.value&&h.value!==T&&console.warn("目录变化,重置"),v.value=await Pt(T),g.value=[...v.value.paths.slice(1).map(W=>W.file_name),v.value.file_name],h.value=T;}async function fe(){t.value=!1;}async function ve(Z){console.log("[onSelectDir]",Z);const{items:T}=Z,W=T[T.length-1];await N(Et.reset),await G(Et.reset),h.value=W.cid,v.value=await Pt(W.cid),g.value=[...v.value.paths.slice(1).map(xe=>xe.file_name),v.value.file_name];}async function ce(Z){const T={};Z.isFilter?T.type=Z.pattern:T.suffix=Z.pattern;let W=unsafeWindow.frames[0];for(let xe=0;xe<unsafeWindow.frames.length;xe++)if(unsafeWindow.frames[xe].name==="wangpan"){W=unsafeWindow.frames[xe];break}Fs({type:Ht.INVOKE_FILTER,payload:T},W),await fe(),re({icon:"info",text:`已调用115筛选: ${Z.value}`,timer:2500});}async function R(Z,T){const{value:W}=await me.fire({input:"textarea",title:Z,html:"每行一个,最短两个字符。"+(T===Ve.keyword?`<br>默认只匹配文件名,不匹配目录名。<br>使用 "<b>${_u}目录名关键词</b>" 格式指定只匹配目录名的关键词。`:""),width:620,inputPlaceholder:"每行一个,最短两个字符",inputAttributes:{"aria-label":"每行一个,最短两个字符"},showCancelButton:!0});return W!==void 0?W.trim():""}async function N(Z,T){let W="",xe=[];switch(Z){case Et.assign:W=T.trim(),W.trim()===""?a.value=[]:(xe=await Ts(W,Ve.suffix),a.value=xe);break;case Et.append:W=await R("添加后缀",Ve.suffix),xe=await Ts(W,Ve.suffix);const x=[];a.value.forEach(S=>x.push(S.value.toLowerCase())),xe.forEach(S=>{x.includes(S.value.toLowerCase())||a.value.push(S);});break;case Et.cover:W=await R("覆盖后缀",Ve.suffix),W.trim()!==""&&(xe=await Ts(W,Ve.suffix),a.value=xe);break;case Et.clear:a.value=[];break;case Et.reset:a.value.forEach(S=>{S.num=-1,S.fileIds=[],S.status=xt.none,S.size=-1;});break}}async function G(Z,T){let W="",xe=[];switch(Z){case Et.assign:W=T.trim(),W.trim()===""?l.value=[]:(xe=await Ts(W,Ve.keyword),l.value=xe);break;case Et.append:W=await R("添加关键词",Ve.keyword),xe=await Ts(W,Ve.keyword);const x=[];l.value.forEach(S=>x.push(S.value.toLowerCase())),xe.forEach(S=>{x.includes(S.value.toLowerCase())||l.value.push(S);});break;case Et.cover:W=await R("覆盖关键词",Ve.keyword),W.trim()!==""&&(xe=await Ts(W,Ve.keyword),l.value=xe);break;case Et.clear:l.value=[];break;case Et.reset:l.value.forEach(S=>{S.num=-1,S.fileIds=[],S.status=xt.none,S.size=-1;});break}}async function he(Z){if(console.log("[cleanBySuffix]",Z),await N(Et.reset),!a.value.length){await me.fire({icon:"warning",text:"请先设置后缀!"});return}if(Ze=[],!Z){const{isConfirmed:T}=await me.fire({icon:"warning",html:'请在清理前确认"后缀和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!T)return}u.value=!0;try{for(let T=0;T<a.value.length;T++){const W=a.value[T];await be(W,Z,!1,!0,!1);}Z||(u.value=!0,await Ne(Ve.suffix));}catch(T){console.error(T),me.fire({title:"按后缀名清理 - 发生错误",html:T.toString()});}finally{u.value=!1,Z||me.fire({title:"按后缀名清理 - 完成"});}}async function be(Z,T,W,xe,x){var S;if(console.log("[cleanBySuffixSingle]",Z,T),!T&&!xe){const{isConfirmed:V}=await me.fire({icon:"warning",html:`确认执行条件 "后缀: <b class="text-primary">${Z.pattern}</b>, 不大于: <b>${o.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!V)return}try{if(!W){u.value=!0,Z.fileIds=[],Z.size=-1,Z.num=-1,Z.status=xt.prepare;const V=await pt(Z);await D(V),Z.status=xt.prepared;const{fileIds:z=[],size:te}=Sd(Z,V,o.value);Z.fileIds=z,Z.size=te,Z.num=z.length,u.value=!1;}if(!T)if(Z.num&&Z.num>0){Z.status=xt.deleting,u.value=!0;const V=((S=Z.fileIds)==null?void 0:S.length)||0;x?await ka(h.value,Z.fileIds||[],d.value.deleteSize,1e3):M(Ve.suffix,Z.fileIds||[],!1),u.value=!1,V>0?Z.status=xt.success+` / 数量 <= ${V}`:Z.status=xt.failed;}else Z.status=xt.success+" / 无";}catch(V){console.error(V),u.value=!1,await me.fire({title:"cleanBySuffixSingle - 发生错误",html:V.toString()});}}async function $e(){const Z=[st.fileKeyword,st.fileHash];return l.value.some(T=>Z.includes(T.type))}async function Pe(Z,T){if(console.log("[cleanByKeyword]",Z,T),await G(Et.reset),!l.value.length){await me.fire({icon:"warning",text:"请先设置关键词!"});return}if(_e=[],!Z){const W={icon:"warning",html:'请在清理前确认"关键词和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"},{isConfirmed:xe,value:x}=await me.fire(W);if(!xe)return}u.value=!0,console.time("cleanByKeyword");try{let W;await $e()&&(W=await Ee(),await D(W));const xe=T||r.value.keywordCategory;for(let x=0;x<l.value.length;x++){const S=l.value[x];if(xe!==Wo.all){const V=S.type===st.dirKeyword;if(xe===Wo.dir&&!V||xe===Wo.file&&V)continue}await We(S,Z,!1,!0,W,!1);}Z||(u.value=!0,await Ne(Ve.keyword));}catch(W){console.error(W),me.fire({title:"按关键词清理 - 发生错误",html:W.toString()});}finally{console.timeEnd("cleanByKeyword"),Z||me.fire({title:"按关键词清理 - 完成"});}u.value=!1;}async function Ee(){const Z=h.value,T=Ls({cid:Z,limit:1150,type:vn.file,record_open_time:0});return await ro(T)}async function We(Z,T,W,xe,x,S){var V;if(console.log("[cleanByKeywordSingle]",Z,T),!T&&!xe){const{isConfirmed:z}=await me.fire({icon:"warning",html:`确认执行条件 "关键词: <b class="text-primary">${Z.pattern}</b>, 不大于: <b class="text-primary">${r.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!z)return}try{if(!W){u.value=!0,Z.fileIds=[],Z.size=-1,Z.num=-1,Z.status=xt.prepare;let z=[];Z.type!==st.dirKeyword&&x!==void 0?z=x:(z=await Ie(Z),await D(z)),Z.status=xt.prepared;const{fileIds:te,size:se,num:ge}=Sd(Z,z,r.value);Z.fileIds=te,Z.size=se,Z.num=ge,u.value=!1;}if(!T)if(Z.num&&Z.num>0){Z.status=xt.deleting,u.value=!0;const z=((V=Z.fileIds)==null?void 0:V.length)||0;S?await ka(h.value,Z.fileIds||[],d.value.deleteSize,1e3):M(Ve.keyword,Z.fileIds||[],!1),u.value=!1,z>0?Z.status=xt.success+` / 数量 <= ${z}`:Z.status=xt.failed;}else Z.status=xt.success+" / 无";}catch(z){console.error(z),u.value=!1;let te=!0;const se={title:"cleanByKeywordSingle - 发生错误",html:z.toString()};z instanceof zl&&(Z.status=xt.prepareFailed+` / ${z.message}`,z instanceof cf&&(se.timer=2e3,te=!1)),te?await me.fire(se):me.fire(se);}}let Ze=[],_e=[];function M(Z,T,W){Z===Ve.suffix?Ze=[...Ze,...T]:_e=[..._e,...T];}async function Ne(Z){const T=Z===Ve.suffix?Ze:_e;if(!T.length)return;const W=Array.from(new Set(T));console.log("[deleteFiles] num=",W.length),await ka(h.value,W,1150,1e3);}async function pt(Z){const T=h.value,W=Ls({cid:T,limit:d.value.pageSize});Z.isFilter?W.type=Z.pattern:W.suffix=Z.value;const xe=await ro(W);return console.log("[files]",xe),xe}async function Ie(Z){const T=h.value,W=Fw({search_value:Z.pattern,cid:T,limit:d.value.pageSize}),xe=await Tb(W,d.value.reqInterval,!0);return console.log("[files]",xe),xe}function ut(Z){return Kl({...Ik(Z),cid:h.value},g.value[g.value.length-1])}async function wt(Z){console.log("[onSuffixGroupChange]",Z),s.value=Z,o.value.maxSize=Z.size,await N(Et.assign,Z.values);}async function Tt(Z){console.log("[onKeywordGroupChange]",Z),i.value=Z,r.value.maxSize=Z.size,await G(Et.assign,Z.values);}return (Z,T)=>oe((E(),I("span",Z$,[nt(Z.$slots,"default",{},()=>[c("span",{class:"btn-open pure-button pure-button-primary",onClick:K},T[10]||(T[10]=[c("span",null,"清理文件",-1)]))]),ye(gi,{"is-open":t.value,speed:300,"max-width":"calc(100vw - 72px)",onClose:T[9]||(T[9]=W=>t.value=!1)},{default:Re(()=>[oe(c("div",{class:ze(["cloud115-eh-cleaner-drawer",{loading:u.value}])},[ye(w$),c("div",e2,[T[13]||(T[13]=c("span",{class:"title"},"文件清理工具",-1)),c("span",t2,[c("button",{type:"button",class:"pure-button button-error",onClick:fe},"关闭"),T[11]||(T[11]=U("      ")),ye(yi,{purpose:"清理文件",onSelect:ve})]),c("div",n2,[c("a",{target:"_blank",href:_.value,title:"打开目录"},[T[12]||(T[12]=c("i",{class:"file-type tp-folder",style:{}},null,-1)),U(" "+Y(g.value.join(" / ")),1)],8,s2)])]),c("div",o2,[c("div",i2,[T[14]||(T[14]=c("span",{class:"title"},[U("按"),c("b",null,"后缀名"),U("清理")],-1)),T[15]||(T[15]=U("      ")),c("div",r2,[c("button",{type:"button",class:"pure-button",onClick:T[0]||(T[0]=W=>he(!0))},"只查询"),c("button",{type:"button",class:"pure-button pure-button-primary",onClick:T[1]||(T[1]=W=>he(!1)),disabled:s.value.queryOnly}," 一键清理 ",8,a2)]),T[16]||(T[16]=U("   ")),T[17]||(T[17]=c("span",{class:"ce-label"},"不大于",-1)),T[18]||(T[18]=U("  ")),oe(c("input",{type:"number","onUpdate:modelValue":T[2]||(T[2]=W=>o.value.maxSize=W),class:"filter-size"},null,512),[[Ge,o.value.maxSize]]),T[19]||(T[19]=U(" MB ")),T[20]||(T[20]=c("small",null,"(0表示不限制)",-1)),ye(Ed,{type:pe(Ve).suffix,"storage-key":"suffixGroups",onChange:wt,config:d.value},null,8,["type","config"])]),c("table",l2,[T[23]||(T[23]=c("thead",null,[c("tr",null,[c("th",{width:"25"},"#"),c("th",{width:"100"},"后缀名"),c("th",{width:"95"},"文件数量"),c("th",{width:"80"},"合计大小"),c("th",{width:"200"},"操作"),c("th",{width:"200"},"状态")])],-1)),c("tbody",null,[(E(!0),I(Oe,null,Je(a.value,(W,xe)=>(E(),I("tr",{key:xe,class:ze(pe(kd)(W))},[c("td",null,Y(xe+1),1),c("td",null,[c("a",{href:"javascript:void(0)",class:"pattern",onClick:x=>ce(W),title:"筛选"},Y(W.value),9,u2)]),c("td",null,Y(W.num&&W.num>=0?W.num:""),1),c("td",null,Y(W.size>0?pe(vo)(W.size):""),1),c("td",null,[c("button",{type:"button",class:"pure-button button-xsmall",onClick:x=>be(W,!0,!1,!0)},"查询",8,c2),T[21]||(T[21]=U("   ")),W.num&&W.num>0&&!s.value.queryOnly?(E(),I("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:x=>be(W,!1,!0,!1,!0)},"清理",8,d2)):we("",!0),T[22]||(T[22]=U("   ")),W.num&&W.num>0?(E(),I("button",{key:1,type:"button",class:"pure-button button-warning button-xsmall",onClick:x=>j(s.value,W)},"≡ 详情",8,f2)):we("",!0)]),c("td",null,Y(W.status),1)],2))),128))])])]),T[53]||(T[53]=c("br",null,null,-1)),ye(gi,{"is-open":L.value,onClose:T[3]||(T[3]=W=>L.value=!1),"max-width":"1030px",speed:100,"bg-color":"#fff"},{default:Re(()=>[L.value?(E(),ot(J$,{key:0,files:O.value.files,group:O.value.group,pattern:O.value.pattern},null,8,["files","group","pattern"])):we("",!0)]),_:1},8,["is-open"]),c("div",{class:ze(["by-box by-keyword",[`kw-cate-${r.value.keywordCategory}`]])},[c("div",p2,[T[24]||(T[24]=c("span",{class:"title"},[U("按"),c("b",null,"关键词"),U("清理")],-1)),T[25]||(T[25]=U("      ")),c("div",h2,[c("button",{type:"button",class:"pure-button",onClick:T[4]||(T[4]=W=>Pe(!0))},"只查询"),c("button",{type:"button",class:"pure-button pure-button-primary",onClick:T[5]||(T[5]=W=>Pe(!1)),disabled:i.value.queryOnly}," 一键清理 ",8,m2)]),T[26]||(T[26]=U("   ")),T[27]||(T[27]=c("span",{class:"ce-label"},"不大于",-1)),T[28]||(T[28]=U("  ")),oe(c("input",{type:"number","onUpdate:modelValue":T[6]||(T[6]=W=>r.value.maxSize=W),class:"filter-size"},null,512),[[Ge,r.value.maxSize]]),T[29]||(T[29]=U(" MB ")),T[30]||(T[30]=c("small",null,"(0表示不限制)",-1)),T[31]||(T[31]=U("    ")),T[32]||(T[32]=c("span",{class:"ce-label"},"关键词类别",-1)),T[33]||(T[33]=U("  ")),oe(c("select",{"onUpdate:modelValue":T[7]||(T[7]=W=>r.value.keywordCategory=W),title:"只会处理该类别关键词"},[(E(!0),I(Oe,null,Je(pe(uk),(W,xe)=>(E(),I("option",{key:xe,value:xe},Y(W),9,g2))),128))],512),[[un,r.value.keywordCategory]]),T[34]||(T[34]=U("    ")),T[35]||(T[35]=c("span",{class:"ce-label"},"结果筛选",-1)),T[36]||(T[36]=U("  ")),oe(c("select",{"onUpdate:modelValue":T[8]||(T[8]=W=>r.value.resultCategory=W)},[(E(!0),I(Oe,null,Je(pe(ck),(W,xe)=>(E(),I("option",{key:xe,value:xe},Y(W),9,y2))),128))],512),[[un,r.value.resultCategory]]),ye(Ed,{type:pe(Ve).keyword,"storage-key":"keywordGroups",onChange:Tt,config:d.value},null,8,["type","config"])]),c("table",{class:ze(["pure-table pure-table-bordered fixed-header-table",[`table-${r.value.resultCategory}`]])},[c("thead",null,[c("tr",null,[T[38]||(T[38]=c("th",{width:"25"},"#",-1)),c("th",{width:"280"},[T[37]||(T[37]=U(" 关键词 ")),c("small",{class:"text-info",onClick:B},"显示调试信息")]),T[39]||(T[39]=c("th",{width:"95"},"文件/目录数量",-1)),T[40]||(T[40]=c("th",{width:"80"},"合计大小",-1)),T[41]||(T[41]=c("th",{width:"150"},"操作",-1)),T[42]||(T[42]=c("th",{width:"200"},"状态",-1))])]),c("tbody",null,[(E(!0),I(Oe,null,Je(l.value,(W,xe)=>{var x;return E(),I("tr",{key:xe,class:ze(pe(kd)(W,r.value))},[c("td",w2,Y(xe+1),1),c("td",b2,[c("a",{href:ut(W),target:"_blank",class:"pattern",title:"搜索"},[oe(c("i",_2,null,512),[[jt,W.type===pe(st).dirKeyword]]),U(" "+Y(W.pattern),1)],8,v2),c("span",x2,[W.fullMatch?(E(),I("span",C2,"全等")):we("",!0),W.caseSensitive?(E(),I("span",k2,"区分大小写")):we("",!0),W.impartible?(E(),I("span",$2,"匹配空格")):we("",!0),W.isRegexp?(E(),I("span",S2,"正则")):we("",!0),W.type===pe(st).fileHash?(E(),I("span",E2,"sha1")):we("",!0),W.maxSize===0?(E(),I("span",A2,"任意大小")):we("",!0),W.maxSize>0?(E(),I("span",P2,"不大于"+Y(W.maxSize)+"MB",1)):we("",!0),W.memo?(E(),I("div",I2,[T[43]||(T[43]=c("small",null,"备注:",-1)),U(" "+Y(W.memo),1)])):we("",!0)]),b.value?(E(),I("div",T2,[T[44]||(T[44]=c("small",null,"raw:",-1)),T[45]||(T[45]=U()),c("span",O2,Y(W.value),1),T[46]||(T[46]=U(", ")),T[47]||(T[47]=c("small",null,"type:",-1)),T[48]||(T[48]=U()),c("span",M2,Y(pe(Nh)[W.type]),1),c("div",null," fullMatch: "+Y(W.fullMatch)+", caseSensitive: "+Y(W.caseSensitive)+", impartible: "+Y(W.impartible)+", isRegexp: "+Y(W.isRegexp)+", maxSize: "+Y(W.maxSize)+", patternRegexp: "+Y((x=W.patternRegexp)==null?void 0:x.toString()),1)])):we("",!0)]),c("td",L2,Y(W.num&&W.num>=0?W.num:""),1),c("td",D2,Y(W.size>0?pe(vo)(W.size):""),1),c("td",B2,[W.type!==pe(st).fileKeyword?(E(),I("button",{key:0,type:"button",class:"pure-button button-xsmall",onClick:S=>We(W,!0,!1,!0)},"查询",8,R2)):we("",!0),W.type!==pe(st).fileKeyword&&W.num&&W.num>0&&!i.value.queryOnly?(E(),I("button",{key:1,type:"button",class:"pure-button button-warning button-xsmall",onClick:S=>We(W,!1,!0,!1,void 0,!0)},"清理",8,N2)):we("",!0),W.num&&W.num>0?(E(),I("button",{key:2,type:"button",class:"pure-button button-xsmall",onClick:S=>j(i.value,W)},"≡ 详情",8,F2)):we("",!0)]),c("td",U2,Y(W.status),1)],2)}),128))])],2)],2),T[54]||(T[54]=c("br",null,null,-1)),c("div",j2,[T[50]||(T[50]=c("span",{class:"title"},"文件清理工具",-1)),c("span",{class:"close"},[c("button",{type:"button",class:"pure-button button-error",onClick:fe},"关闭")]),T[51]||(T[51]=U("      ")),ye(yi,{purpose:"清理文件",onSelect:ve}),T[52]||(T[52]=U("      ")),ye(Wh,{container:".cloud115-eh-cleaner-drawer"}),c("div",H2,[c("a",{target:"_blank",href:_.value,title:"打开目录"},[T[49]||(T[49]=c("i",{class:"file-type tp-folder",style:{}},null,-1)),U(" "+Y(g.value.join(" / ")),1)],8,z2)])])],2),[[jt,t.value]])]),_:1},8,["is-open"])],512)),[[jt,n.value]])}}),V2=je(q2,[["__file","Cleaner.vue"]]),W2={class:"ce-empty-cleaner-trigger"},K2=De({__name:"Trigger",setup(e){ie(!1);const t=ie(!0);async function n(a){switch(a.data.type){case Ht.EMPTY_CLEANER_OPENED:await r(a.data.payload);break}}Wt(async()=>{window.addEventListener("message",n);}),Js(()=>{window.removeEventListener("message",n);});async function s(){await o(),Fs({type:Ht.OPEN_EMPTY_CLEANER},window.parent);}let i=0;async function o(){const a=Er("cid");!a||a==="0"||(clearTimeout(i),i=window.setTimeout(async()=>{re({icon:"error",text:"打开清理空文件夹工具失败!"});},1e3));}async function r(a){console.log("成功打开EmptyCleaner"),clearTimeout(i);}return (a,l)=>oe((E(),I("span",W2,[nt(a.$slots,"default",{},()=>[c("span",{class:"btn-open pure-button pure-button-primary",onClick:s,title:"打开清理空文件夹工具"},l[0]||(l[0]=[c("span",null,"空文件夹",-1)]))])],512)),[[jt,t.value]])}}),G2=je(K2,[["__file","Trigger.vue"]]),J2=/^(?:\| )+\|-/;async function*Y2(e){const t=["/"],n=e.trim().split(`
`);let s=0;for(const i of n){const o=J2.exec(i);if(o===null)continue;const a=o[0].length,l=a/2-1,u=i.slice(a);l>=t.length?t.push(u):t[l]=u,s+=1;const d=t.slice(0,l+1).join("/");yield {index:s,name:u,path:of(d)};}}function Na(e={}){return {name:"",path:"",id:"",url:"",checked:!1,deleted:!1,disabled:!1,repeated:!1,ensured:!1,...e}}function Fa(){return {suffixes:new Set,treeNameCounter:{},treeNameToPaths:{},repeatedPaths:new Set,maybeDirs:{},filesNameCounter:{},violationFiles:[]}}let Q2=class{constructor(t,n=!1){Ce(this,"logs",[]);Ce(this,"_dirId","");Ce(this,"_dirPath","");Ce(this,"_dirAttr",null);Ce(this,"_treeText","");Ce(this,"_keepTree",!1);Ce(this,"_treeFile",null);Ce(this,"_tailData",Fa());Ce(this,"_emptyItems",new Map);Ce(this,"_checkedRepeatedPaths",new Set);Ce(this,"_pendingPaths",new Set);Ce(this,"logSubscribers",[]);Ce(this,"emptyItemSubscribers",[]);Ce(this,"treeFileSubscribers",[]);t&&this.setDirId(t),this._keepTree=n;}addLogSubscriber(t){this.logSubscribers.push(t);}addEmptyItemSubscriber(t){this.emptyItemSubscribers.push(t);}addTreeFileSubscriber(t){this.treeFileSubscribers.push(t);}async setDirId(t){this._dirId=t,this._dirAttr=await Pt(t);const n=[...this._dirAttr.paths.slice(1).map(s=>s.file_name),this._dirAttr.file_name];this._dirPath=n.join("/");}async setKeepTree(t){this._keepTree=t;}getTreeFile(){return this._treeFile}async isReady(){return !!this._dirPath}async run(){var s;if(!await this.isReady()){this.log(`运行异常!未获取到目录路径,目录ID=${this._dirId}`);return}if(((s=this._dirAttr)==null?void 0:s.folder_count)===0){this.log(`目录(id=${this._dirId}) "${this._dirPath}" 没有子目录,无需清理`);return}const t=Date.now();await this.exportTree(),await this.parseTree(),await this.queryFiles(),await this.handleMaybeDirs(),await this.detectEmpty(),await this.checkRealEmpty();const n=((Date.now()-t)/1e3).toFixed(2);this.log(`清理空目录检测阶段完成,合计耗时 ${n} 秒`),console.log("emptyItems:",this._emptyItems);}async exportTree(){const t=Date.now();this.log(`========导出目录树(目录ID=${this._dirId}, 路径=${this._dirPath})========`);const n=await Bb(this._dirId);console.log("exportTree",n),this.log("已发起导出处理,等待导出完成...");const s=await Rb(n.data.export_id,2e3);console.log("exportTree",s),this.log(`导出目录树成功,PickCode为${s.data.pick_code}`);const i=await Lb(s.data.pick_code);console.log("downloadItem",i),this.log("正在读取目录树文件内容...");let o=!0;try{this._treeText=await this._readFile(i),this.log("目录树文件内容读取完成");}catch(a){this.log(`读取目录树文件内容失败,${a.toString()}`),o=!1;}if(this._keepTree)this.onTreeFileGenerated(i),this.log(`目录树文件保留,不会被删除。文件: ${i.file_name}`);else {const a=await Gl(this._dirId,[i.file_id]);console.log("deleteResult",a),this.log("目录树文件已删除");}const r=((Date.now()-t)/1e3).toFixed(2);o?this.log(`导出目录树完成,耗时 ${r} 秒`):this.log(`导出目录树失败,耗时 ${r} 秒`),this.log("=".repeat(60));}async _readFile(t){const n=Tk({okStatus:[200,206],useFileReader:!0,fileReader:{checkBlank:!0,encoding:"utf-16le"}});return await jh(t.url.url,n)}async parseTree(){const t=Date.now();this.log("解析目录树...");const n=Fa(),s=[],i=this._dirPath.split("/").slice(0,-1).join("/");console.log("[parseTree] parentPath:",i);for await(const r of Y2(this._treeText)){const a=i+r.path;s.includes(a)&&n.repeatedPaths.add(a),s.push(a);}for(let r=0;r<s.length;r++){if(s[r+1]&&s[r+1].startsWith(s[r]+"/"))continue;let a=s[r].split("/").pop();if(!a)a=s[r];else {const l=bf(a,/^\w+$/);if(l)n.suffixes.add(l.toLowerCase());else {const u=s[r].replace(/\/[^\/]+$/,"");n.maybeDirs[u]||(n.maybeDirs[u]=new Set),n.maybeDirs[u].add(a);}}n.treeNameToPaths[a]||(n.treeNameToPaths[a]=[]),n.treeNameToPaths[a].push(s[r]),n.treeNameCounter[a]||(n.treeNameCounter[a]=0),n.treeNameCounter[a]+=1;}console.log("[parseTree] result:",n);const o=((Date.now()-t)/1e3).toFixed(2);this.log(`解析目录树完成,耗时 ${o} 秒`),this.log("=".repeat(60)),this._tailData=n;}async queryFiles(){const t=Date.now(),n=this._tailData;this.log("获取文件列表...");const s=Ls({type:vn.file,limit:1150,cid:this._dirId});try{const o=Date.now(),r=await ro(s),a=((Date.now()-o)/1e3).toFixed(2);this.log(`获取文件列表成功,文件数量:${r.length}。耗时 ${a} 秒`);for(const l of r)l.c===Ja.violation?(console.warn(`违规: id=${l.fid}, pc=${l.pc}, cid=${l.cid}, name=${l.n}`),this._tailData.violationFiles.push(Gs(l))):l.c===Ja.auditing&&console.warn(`审核中: id=${l.fid}, pc=${l.pc}, cid=${l.cid}, name=${l.n}`),n.treeNameCounter[l.n]&&n.treeNameCounter[l.n]--,n.filesNameCounter[l.n]||(n.filesNameCounter[l.n]=0),n.filesNameCounter[l.n]++;}catch(o){console.error("[queryFiles] getFiles error! error:",o),this.log(`获取文件列表失败!错误: ${o.toString()}`);}const i=((Date.now()-t)/1e3).toFixed(2);this.log(`获取文件列表完成。耗时 ${i} 秒`),this.log("=".repeat(60));}async handleMaybeDirs(){const t=Date.now(),n=this._tailData;this.log("========根据上级路径排除无后缀文件========");const s=this._tailData.violationFiles.length>0,i=Object.keys(n.maybeDirs).length;let o=0;for(const[a,l]of Object.entries(n.maybeDirs)){let u="";try{u=await io(a,!1);}catch(h){console.error(`[handleMaybeDirs] getDirIdByPath error! path: ${a}, error:`,h),this.log(`[${o+1} / ${i}] 根据上级路径(cid=${a}) 获取目录ID失败!错误: ${h.toString()}`);continue}const d=Ls({limit:1150,cid:u});try{const h=Date.now();this.log(`[${o+1} / ${i}] 正在获取上级路径 "${a}" 的文件列表...`);const g=await ro(d),v=((Date.now()-h)/1e3).toFixed(2);this.log(`[${o+1} / ${i}] 获取上级路径 "${a}" 的文件列表成功,文件数量:${g.length}。耗时 ${v} 秒`);for(const b of g)if(l.has(b.n)){if(b.fid)this.log(`[${o+1} / ${i}] 上级路径 "${a}" 下的 "${b.n}" 是一个文件`),n.treeNameCounter[b.n]&&n.treeNameCounter[b.n]--;else if(!n.filesNameCounter[b.n]&&!s){const _=a+"/"+b.n;this.log(`[${o+1} / ${i}] 路径 "${_}" 是一个目录,该目录名称无对应的文件,且由于无违规文件,因此可确认为空目录`);const B=Na({id:b.cid,name:b.n,path:_,url:Ds(b.cid),ensured:!0});await this.addEmptyItem(B);}}}catch(h){console.error(`[handleMaybeDirs] getFiles error! cid: ${u}, error:`,h),this.log(`[${o+1} / ${i}] 获取上级路径(cid=${u}) "${a}" 的文件列表失败!错误: ${h.toString()}`);}o++;}const r=((Date.now()-t)/1e3).toFixed(2);this.log(`根据上级路径排除无后缀文件完成。耗时 ${r} 秒`),this.log("=".repeat(60));}async detectEmpty(){const t=Date.now(),n=this._tailData;this.log("========开始检测路径========");const s=this._tailData.violationFiles.length>0;let i=0,o=Object.keys(n.treeNameCounter).length;for(const[a,l]of Object.entries(n.treeNameCounter)){if(!l){i++;continue}const u=n.treeNameToPaths[a];this.log(`[${i+1} / ${o}] 名称 "${a}" 有 ${l} 个路径需要检测`);for(let d=0;d<u.length;d++){const h=u[d];if(this._emptyItems.has(h)){console.log(`[detectEmpty] path "${h}" already exists in _emptyItems`);continue}if(n.repeatedPaths.has(h)){await this.checkDirContainsRepeated(a,h);continue}this.log(`[${i+1} / ${o}] 正在检测名称 "${a}" 第 ${d+1}/${l} 个路径: ${h}`);try{const g=await io(h,!1);if(g){this.log(`检测到该末端路径 "${h}" 是一个空目录(ID: ${g})`);const v=Na({id:g,name:a,path:h,url:Ds(g),ensured:!s});await this.addEmptyItem(v);}}catch(g){g instanceof ql?this.log(`路径 "${h}" 不是一个目录`):(console.error(`[detectEmpty] getDirIdByPath failed! path: ${h}, error:`,g),this.log(`获取路径 "${h}" 的ID失败!错误: ${g.toString()}`));}}i++;}const r=((Date.now()-t)/1e3).toFixed(2);this.log(`检测路径完成,耗时 ${r} 秒`),this.log("=".repeat(60));}async checkDirContainsRepeated(t,n){if(this._checkedRepeatedPaths.has(n))return;this.log(`名称 "${t}" 路径 "${n}" 存在重复,将对其所在的目录进行检测`);const s=Ya(n,"..",us.unix);console.log("[checkDirContainsRepeated] parentPath:",s);let i="";try{if(i=await io(s,!1),!i){this.log(`❌ 根据路径"${s}"获取目录ID失败: 目录不存在!`);return}}catch(r){console.error(`[checkDirContainsRepeated] getDirIdByPath error! path: ${s}, error:`,r),this.log(`获取路径 "${s}" 的ID失败!错误: ${r.toString()}`);return}const o=Ls({limit:1150,cid:i});try{const r=Date.now();this.log(`正在获取目录(id=${i})的文件列表...`);const a=await ro(o),l=((Date.now()-r)/1e3).toFixed(2);this.log(`获取目录(id=${i})的文件列表成功,文件数量:${a.length}。耗时 ${l} 秒`);for(const u of a)if(!(u.fid||u.n!==t))try{const d=await Pt(u.cid);if(d.file_name){if(d.folder_count===0&&d.count===0){this.log(`目录(id=${i})的子目录(id=${u.cid})为空`);const h=Na({id:u.cid,name:d.file_name,path:[...d.paths.map(g=>g.file_name).slice(1),d.file_name].join("/"),url:Ds(u.cid),repeated:!0,ensured:!0,attr:d});await this.addEmptyItem(h);}else this.log(`目录(id=${i})的子目录(id=${u.cid})不为空`);this._checkedRepeatedPaths.add(n);}else this.log(`❌ 获取目录(id=${u.cid})属性失败!`);}catch(d){console.error(`[checkDirContainsRepeated] getAttr error! cid: ${u.cid}, error:`,d),this.log(`获取目录(id=${u.cid})属性失败!异常: ${d.toString()}`);}}catch(r){console.error(`[checkDirContainsRepeated] getFiles error! cid: ${i}, error:`,r),this.log(`获取目录(id=${i})的文件列表失败!错误: ${r.toString()}`);}}async checkRealEmpty(){const t=Date.now();this.log("========确认是否真的为空目录========");for(const s of this._emptyItems.values())if(!s.ensured)try{const i=await Pt(s.id);s.ensured=!0,s.attr=i,i.count===0&&i.folder_count===0?this.log(`目录(id=${s.id}) "${s.path}" 确认为空`):(s.disabled=!0,s.memo="目录不为空,请手动检查和处理",this.log(`目录(id=${s.id}) "${s.path}" 确认不为空,请手动检查和处理`));}catch(i){console.error(`[checkRealEmpty] getAttr error! cid: ${s.id}, error:`,i),this.log(`获取目录(id=${s.id}) "${s.path}" 属性失败!异常: ${i.toString()}`),s.disabled=!0,s.memo="确认是否为空目录失败,请手动检查和处理";}const n=((Date.now()-t)/1e3).toFixed(2);this.log(`确认是否真的为空目录完成,耗时 ${n} 秒`),this.log("=".repeat(60));}async onTreeFileGenerated(t){this._treeFile=t;for(const n of this.treeFileSubscribers)n(t);}async addEmptyItem(t){if(this._emptyItems.has(t.path)){console.log(`[addEmptyItem] path(id=${t.id}) "${t.path}" already exists in _emptyItems`);return}this._emptyItems.set(t.path,t);for(const n of this.emptyItemSubscribers)n(t);}async getEmptyItems(){return Array.from(this._emptyItems.values())}async log(t){t=`[${new Date().toLocaleString()}] ${t}`,this.logs.push(t);for(const n of this.logSubscribers)n(t);}async reset(){this.logs=[],this._emptyItems=new Map,this._tailData=Fa(),this._treeFile=null,this._checkedRepeatedPaths=new Set,this._pendingPaths=new Set;}};const X2={},Z2={class:"ce-empty-cleaner-help"};function eS(e,t){return E(),I("div",Z2,t[0]||(t[0]=[Wp('<div data-v-ce900ab5><h2 data-v-ce900ab5>免责声明</h2><div data-v-ce900ab5><p data-v-ce900ab5>该工具仅作为学习测试用途,使用该工具造成的任何结果由使用人承担。</p></div><hr data-v-ce900ab5><h2 data-v-ce900ab5>说明</h2><ul style="color:#00f;" data-v-ce900ab5><li class="text-danger text-bold" data-v-ce900ab5> * <span style="font-size:120%;" data-v-ce900ab5>不要</span>直接清理一个巨大的文件夹!比如包含超过5万个文件夹。 太大的文件夹可能会导出目录树失败,且可能导致账号被系统风控。 </li><li data-v-ce900ab5>* 对于巨大的文件夹,可以分开清理下级文件夹。</li><li data-v-ce900ab5>* 只有违规文件的文件夹也会被检测到并列出,需要手动处理。</li><li data-v-ce900ab5>* 请谨慎操作!请谨慎操作!请谨慎操作!</li></ul><hr data-v-ce900ab5><h2 data-v-ce900ab5>流程</h2><ul style="color:#f40;" data-v-ce900ab5><li data-v-ce900ab5>1.确认当前显示的目录是否为需要进行清理的目录。</li><li data-v-ce900ab5>2.点击「检测空文件夹」按钮。</li><li data-v-ce900ab5>3.保持当前页面处于激活状态,留意日志区域的输出,耐心等待。</li><li data-v-ce900ab5>4.当看到「空文件夹检测已完成」的提示时,说明检测完成。</li><li data-v-ce900ab5>5.如果有空文件夹,会在空文件夹列表显示。</li><li data-v-ce900ab5>6.每个空文件夹都可以单独进行打开、获取详情、删除等操作。</li><li data-v-ce900ab5>7.批量删除: 勾选需要删除的空文件夹,点击「删除选中」进行删除。</li></ul><hr data-v-ce900ab5><h3 data-v-ce900ab5>原理和优劣</h3><div class="text-primary" data-v-ce900ab5> 本工具原理是导出目录树,然后查询文件,接着排除目录树中的文件,最后再判断目录树中剩余的项是否为空文件夹。 </div><ul data-v-ce900ab5><li class="text-bold text-success" data-v-ce900ab5>优点:</li><li class="text-success" data-v-ce900ab5>在子文件夹数量较多时,比逐层逐个查询文件列表要快得多。</li><li class="text-warning text-bold" data-v-ce900ab5>缺点:</li><li class="text-warning" data-v-ce900ab5>* 排除真实文件后,如剩余需判断项较多,耗时较长。</li><li class="text-warning" data-v-ce900ab5>* 不能判断大小为0且有空子文件夹的文件夹。</li></ul></div>',1)]))}const tS=je(X2,[["render",eS],["__scopeId","data-v-ce900ab5"],["__file","Help.vue"]]),nS={class:"ce-empty-cleaner ce-cleaner-x"},sS={class:"header actions-bar"},oS={class:"ce-path ce-label ce-label-primary-plain"},iS=["href"],rS={class:"top-actions"},aS={class:"pure-form pure-form-aligned"},lS={class:"pure-control-group"},uS={key:0},cS={class:"text-primary"},dS={key:1},fS={class:"text-primary"},pS={key:0},hS=["href"],mS={key:0},gS={key:0},yS={class:"text-primary"},wS={class:"ec-items"},bS={class:"pure-table pure-table-bordered"},vS={width:"30"},_S=["disabled"],xS=["onUpdate:modelValue","onChange","disabled"],CS={key:0},kS={class:"ce-label ce-label-danger"},$S={key:0},SS={key:1},ES=["onClick","disabled"],AS=["onClick"],PS=["href"],IS={key:0},TS={class:"footer actions-bar"},OS={class:"ce-path ce-label ce-label-primary-plain"},MS=["href"],LS=De({__name:"EmptyCleaner",setup(e){const t=ie(!1),n=ie(!0),s=ie(!1),i=ie(""),o=ie([]),r=ie(null),a=ie([]),l=ie(!1),u=ie(null),d=ie([]),h=ie([]),g=ie(null),v=ie(null),b=it(()=>v.value?vb(v.value.pick_code):""),_=it(()=>i.value?Ds(i.value):"");let B;const L=ie({keepTree:!1});async function F(_e){_e.data.type===Ht.OPEN_EMPTY_CLEANER&&(await O(_e.data.payload),Fs({type:Ht.EMPTY_CLEANER_OPENED},_e.source));}Wt(async()=>{window.addEventListener("message",F),B=new Q2(i.value),B.addLogSubscriber(be),B.addEmptyItemSubscriber($e),B.addTreeFileSubscriber(he);}),Js(()=>{window.removeEventListener("message",F);});async function O(_e){t.value=!0;const M=await zt();if(M==="0"||M===""){await Ze(),await me.fire({icon:"warning",html:"<h2>不允许在根目录使用该工具!</h2>"});return}i.value&&i.value!==M&&console.warn("目录变化,重置"),r.value=await Pt(M),o.value=[...r.value.paths.slice(1).map(Ne=>Ne.file_name),r.value.file_name],i.value=M;}async function D(){l.value=!1,d.value=[],h.value=[],a.value=[],v.value=null;}async function j(){try{s.value=!0,await D(),await B.reset(),await B.setKeepTree(L.value.keepTree),await B.setDirId(i.value),await B.run(),me.fire({title:"空文件夹检测已完成"});}catch(_e){console.error(_e),me.fire({title:"空文件夹检测失败",text:_e.toString()});}finally{s.value=!1;}}async function H(_e){const M=h.value.join(`
`);if(_e==="copy")await pc(M)?re({text:"已复制清理空文件夹日志",timer:1200}):re({text:"复制清理空文件夹日志失败",timer:1200});else if(_e==="download"){let Ne=`清理空文件夹日志-${i.value}.txt`;sr(M,Ne);}}async function K(_e,M,Ne="path"){const pt=M==="all"?a.value:d.value;let Ie="";Ne==="path"?Ie=pt.map(wt=>wt.path).join(`
`):Ne==="full"&&(Ie=JSON.stringify(pt,null,2));const ut=Ne==="path"?"路径":"数据";if(_e==="copy")await pc(Ie)?re({text:`已复制${ut}到剪贴板`,timer:1200}):re({text:`复制${ut}失败`,timer:1200});else if(_e==="download"){let wt=`空文件夹${ut}-${i.value}-数量${pt.length}`;sr(Ie,`${wt}.${Ne==="path"?"txt":"json"}`);}}async function fe(_e){const M=d.value;for(const Ne of M)window.open(Ne.url),await ln(100);}async function ve(_e){console.log("[onSelectDir]",_e);const{items:M}=_e,Ne=M[M.length-1];await D(),i.value=Ne.cid,r.value=await Pt(Ne.cid),o.value=[...r.value.paths.slice(1).map(pt=>pt.file_name),r.value.file_name];}async function ce(_e,M){if(_e.deleted){re({text:"该目录已删除,不能再次删除!",timer:2e3,showConfirmButton:!0});return}s.value=!0,await N([_e.id])&&(_e.deleted=!0),s.value=!1;}async function R(){if(!d.value.length)return;const _e=d.value.filter(M=>!M.deleted).map(M=>M.id);if(!_e.length){re({text:"没有可删除的目录!",timer:2e3,showConfirmButton:!0});return}if(s.value=!0,await N(_e))for(const M of d.value)M.deleted=!0;s.value=!1;}async function N(_e){try{const M=await Gl(i.value,_e);if(M.state)return !0;re({text:`删除失败: ${M.errno} - ${M.error}`,timer:1200});}catch(M){console.error(M),re({text:`删除失败!${M.toString()}`,timer:1200});}return !1}async function G(_e){s.value=!0;try{const M=await Pt(_e.id),Ne=Ie=>new Date(Number(Ie)*1e3).toLocaleString(),{isConfirmed:pt}=await me.fire({title:"目录属性",html:`<div class="ce-ec-detail">
        <p><span>类型:</span> 文件夹</p>
        <p><span>大小:</span> ${M.size}</p>
        <p><span>创建时间:</span> ${Ne(M.ptime)}</p>
        <p><span>修改时间:</span> ${Ne(M.utime)}</p>
        <p><span>位置:</span> ${_e.path}</p>
      </div>
      `,showDenyButton:!0,denyButtonText:"关闭",showConfirmButton:!0,confirmButtonText:"查看目录"});pt&&window.open(_e.url);}catch(M){re({text:`获取目录属性失败!${M.toString()}`,timer:1e4,showConfirmButton:!0});}finally{s.value=!1;}}async function he(_e){v.value=_e;}async function be(_e){h.value.push(_e),await zs(),g.value.scrollTop=g.value.scrollHeight;}async function $e(_e){a.value.push(_e);}async function Pe(){console.log("[onAllCheckedChange]",l.value);for(const _e of a.value)_e.disabled||(_e.checked=l.value);await We();}async function Ee(_e,M){console.log("[onCheckChange]",_e,M),l.value=a.value.every(Ne=>Ne.checked),u.value.indeterminate=!l.value&&a.value.some(Ne=>Ne.checked),await We();}async function We(){d.value=a.value.filter(_e=>_e.checked);}async function Ze(){t.value=!1;}return (_e,M)=>oe((E(),I("span",nS,[nt(_e.$slots,"default",{},()=>[c("span",{class:"btn-open pure-button pure-button-primary",onClick:O},M[14]||(M[14]=[c("span",null,"清理空文件夹",-1)]))]),ye(gi,{"is-open":t.value,speed:300,"max-width":"calc(100vw - 72px)",onClose:M[13]||(M[13]=Ne=>t.value=!1)},{default:Re(()=>{var Ne,pt;return [oe(c("div",{class:ze(["ce-empty-cleaner-drawer",{loading:s.value}])},[ye(tS),c("div",sS,[M[16]||(M[16]=c("span",{class:"title"},"空文件夹清理工具",-1)),c("span",{class:"close"},[c("button",{type:"button",class:"pure-button button-error",onClick:Ze},"关闭")]),M[17]||(M[17]=U("     ")),ye(yi,{purpose:"清理空文件夹",onSelect:ve}),c("div",oS,[c("a",{target:"_blank",href:_.value,title:"打开目录"},[M[15]||(M[15]=c("i",{class:"file-type tp-folder",style:{}},null,-1)),U(" "+Y(o.value.join(" / ")),1)],8,iS)])]),c("div",null,[c("div",rS,[c("div",null,[c("button",{type:"button",class:"pure-button pure-button-primary",onClick:j},"检测空文件夹")]),c("div",null,[c("form",aS,[c("fieldset",null,[c("div",lS,[r.value?(E(),I("label",uS,[M[18]||(M[18]=c("span",null,"文件夹数量:",-1)),M[19]||(M[19]=U("  ")),c("b",cS,Y((Ne=r.value)==null?void 0:Ne.folder_count),1)])):we("",!0),r.value?(E(),I("label",dS,[M[20]||(M[20]=c("span",null,"文件数量:",-1)),M[21]||(M[21]=U("  ")),c("b",fS,Y((pt=r.value)==null?void 0:pt.count),1)])):we("",!0),c("label",null,[oe(c("input",{type:"checkbox",class:"ce-checkbox","onUpdate:modelValue":M[0]||(M[0]=Ie=>L.value.keepTree=Ie)},null,512),[[Fe,L.value.keepTree]]),M[23]||(M[23]=U("  ")),M[24]||(M[24]=c("span",{title:"不会删除目录树文件"},"保留目录树文件",-1)),v.value?(E(),I("span",pS,[M[22]||(M[22]=U("    ")),c("a",{href:b.value,class:"text-primary",target:"_blank"},"查看目录树文件",8,hS)])):we("",!0)])])])])])]),c("h3",null,[M[27]||(M[27]=U(" 日志 ")),h.value.length?(E(),I("span",mS,[M[25]||(M[25]=U("     ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[1]||(M[1]=Ie=>H("copy"))},"复制日志"),M[26]||(M[26]=U("     ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[2]||(M[2]=Ie=>H("download"))},"保存日志")])):we("",!0)]),c("div",{ref_key:"refLogs",ref:g,class:"ec-logs"},[(E(!0),I(Oe,null,Je(h.value,(Ie,ut)=>(E(),I("div",{key:ut},Y(Ie),1))),128))],512),c("h3",null,[M[32]||(M[32]=U(" 空文件夹 ")),a.value.length?(E(),I("span",gS,[c("span",yS," ( "+Y(a.value.length)+" )",1),M[28]||(M[28]=U("     ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[3]||(M[3]=Ie=>K("copy","all","path"))},"复制路径"),M[29]||(M[29]=U("   ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[4]||(M[4]=Ie=>K("copy","all","full"))},"复制数据"),M[30]||(M[30]=U("     ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[5]||(M[5]=Ie=>K("download","all","path"))},"保存路径"),M[31]||(M[31]=U("   ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[6]||(M[6]=Ie=>K("download","all","full"))},"保存数据")])):we("",!0)]),c("div",wS,[c("table",bS,[c("thead",null,[c("tr",null,[M[33]||(M[33]=c("th",{width:"25"},"#",-1)),c("th",vS,[oe(c("input",{ref_key:"refAllChecked",ref:u,type:"checkbox",class:"ce-checkbox","onUpdate:modelValue":M[7]||(M[7]=Ie=>l.value=Ie),onChange:Pe,disabled:!a.value.length},null,40,_S),[[Fe,l.value]])]),M[34]||(M[34]=c("th",{width:"140"},"ID",-1)),M[35]||(M[35]=c("th",null,"路径",-1)),M[36]||(M[36]=c("th",{width:"150"},"操作",-1))])]),c("tbody",null,[(E(!0),I(Oe,null,Je(a.value,(Ie,ut)=>(E(),I("tr",{key:ut,class:ze({"tr-deleted":Ie.deleted})},[c("td",null,Y(ut+1),1),c("td",null,[oe(c("input",{type:"checkbox",class:"ce-checkbox","onUpdate:modelValue":wt=>Ie.checked=wt,onChange:wt=>Ee(Ie,ut),disabled:Ie.disabled},null,40,xS),[[Fe,Ie.checked]])]),c("td",null,Y(Ie.id),1),c("td",null,[c("div",null,Y(Ie.path),1),Ie.memo?(E(),I("div",CS,[c("span",kS,Y(Ie.memo),1)])):we("",!0)]),c("td",null,[Ie.deleted?(E(),I("div",$S,M[37]||(M[37]=[c("span",{class:"label-danger"},"已删除",-1)]))):(E(),I("div",SS,[c("button",{type:"button",class:"pure-button button-xsmall button-error",onClick:wt=>ce(Ie,ut),disabled:Ie.disabled},"删除",8,ES),M[38]||(M[38]=U("   ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:wt=>G(Ie)},"详情",8,AS),M[39]||(M[39]=U("   ")),c("a",{class:"pure-button button-xsmall",href:Ie.url,target:"_blank"},"打开",8,PS)]))])],2))),128))])]),d.value.length?(E(),I("div",IS,[M[40]||(M[40]=c("br",null,null,-1)),c("button",{type:"button",class:"pure-button button-error",onClick:R},"删除选中 ("+Y(d.value.length)+")",1),M[41]||(M[41]=U("     ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[8]||(M[8]=Ie=>K("copy","checked","path"))},"复制已选路径"),M[42]||(M[42]=U("   ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[9]||(M[9]=Ie=>K("copy","checked","full"))},"复制已选数据"),M[43]||(M[43]=U("     ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[10]||(M[10]=Ie=>K("download","checked","path"))},"保存已选路径"),M[44]||(M[44]=U("   ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[11]||(M[11]=Ie=>K("download","checked","full"))},"保存已选数据"),M[45]||(M[45]=U("     ")),c("button",{type:"button",class:"pure-button button-success button-xsmall",onClick:M[12]||(M[12]=Ie=>fe("checked"))},"打开已选")])):we("",!0)])]),c("div",TS,[M[47]||(M[47]=c("span",{class:"title"},"空文件夹清理工具",-1)),c("span",{class:"close"},[c("button",{type:"button",class:"pure-button button-error",onClick:Ze},"关闭")]),M[48]||(M[48]=U("      ")),ye(yi,{purpose:"清理空文件夹",onSelect:ve}),M[49]||(M[49]=U("      ")),ye(Wh,{container:".ce-empty-cleaner-drawer"}),c("div",OS,[c("a",{target:"_blank",href:_.value,title:"打开目录"},[M[46]||(M[46]=c("i",{class:"file-type tp-folder",style:{}},null,-1)),U(" "+Y(o.value.join(" / ")),1)],8,MS)])])],2),[[jt,t.value]])]}),_:1},8,["is-open"])],512)),[[jt,n.value]])}}),DS=je(LS,[["__file","EmptyCleaner.vue"]]);async function BS(){const{host:e}=location;e==="115.com"&&(console.log("[Cleaner] running..."),Xn()?(await RS(),await NS()):(await FS(),await US()));}async function ra(){return typeof window.$<"u"}async function RS(){await ra();const e="cloud115Cleaner",t=await ft("#js_path_add_dir"),n=Dt(`<span id="${e}"/>`);t.insertAdjacentElement("afterend",n),qn(lk).mount(`#${e}`);}async function NS(){await ra();const e="cloud115EmptyCleaner",t=await ft("#js_path_add_dir"),n=Dt(`<span id="${e}"/>`);t.insertAdjacentElement("afterend",n),qn(G2).mount(`#${e}`);}async function FS(){await ra();const e="cloud115Cleaner",t=Dt(`<div id="${e}"/>`);document.body.appendChild(t);const n=qn(V2);n.use(ia),n.mount(`#${e}`),tr("清理文件",async()=>{Fs({type:Ht.OPEN_CLEANER},window.parent);});}async function US(){await ra();const e="cloud115EmptyCleaner",t=Dt(`<div id="${e}"/>`);document.body.appendChild(t);const n=qn(DS);n.use(ia),n.mount(`#${e}`),tr("清理空目录",async()=>{Fs({type:Ht.OPEN_EMPTY_CLEANER},window.parent);});}function Kh(e,t){return function(){return e.apply(t,arguments)}}const{toString:Gh}=Object.prototype,{getPrototypeOf:xu}=Object,Cu=(e=>t=>{const n=Gh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),es=e=>(e=e.toLowerCase(),t=>Cu(t)===e),aa=e=>t=>typeof t===e,{isArray:To}=Array,wi=aa("undefined");function jS(e){return e!==null&&!wi(e)&&e.constructor!==null&&!wi(e.constructor)&&ys(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Jh=es("ArrayBuffer");function HS(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jh(e.buffer),t}const zS=aa("string"),ys=aa("function"),Yh=aa("number"),ku=e=>e!==null&&typeof e=="object",qS=e=>e===!0||e===!1,Xi=e=>{if(Cu(e)!=="object")return !1;const t=xu(e);return (t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},VS=es("Date"),WS=es("File"),KS=es("Blob"),GS=es("FileList"),JS=e=>ku(e)&&ys(e.pipe),YS=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Gh.call(e)===t||ys(e.toString)&&e.toString()===t)},QS=es("URLSearchParams"),XS=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $i(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),To(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else {const o=n?Object.getOwnPropertyNames(e):Object.keys(e),r=o.length;let a;for(s=0;s<r;s++)a=o[s],t.call(null,e[a],a,e);}}function Qh(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const Xh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zh=e=>!wi(e)&&e!==Xh;function $l(){const{caseless:e}=Zh(this)&&this||{},t={},n=(s,i)=>{const o=e&&Qh(t,i)||i;Xi(t[o])&&Xi(s)?t[o]=$l(t[o],s):Xi(s)?t[o]=$l({},s):To(s)?t[o]=s.slice():t[o]=s;};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&$i(arguments[s],n);return t}const ZS=(e,t,n,{allOwnKeys:s}={})=>($i(t,(i,o)=>{n&&ys(i)?e[o]=Kh(i,n):e[o]=i;},{allOwnKeys:s}),e),eE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tE=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n);},nE=(e,t,n,s)=>{let i,o,r;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)r=i[o],(!s||s(r,e,t))&&!a[r]&&(t[r]=e[r],a[r]=!0);e=n!==!1&&xu(e);}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},sE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},oE=e=>{if(!e)return null;if(To(e))return e;let t=e.length;if(!Yh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},iE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xu(Uint8Array)),rE=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=s.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1]);}},aE=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},lE=es("HTMLFormElement"),uE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),Id=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cE=es("RegExp"),em=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};$i(n,(i,o)=>{t(i,o,e)!==!1&&(s[o]=i);}),Object.defineProperties(e,s);},dE=e=>{em(e,(t,n)=>{if(ys(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return !1;const s=e[n];if(ys(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")});}});},fE=(e,t)=>{const n={},s=i=>{i.forEach(o=>{n[o]=!0;});};return To(e)?s(e):s(String(e).split(t)),n},pE=()=>{},hE=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ua="abcdefghijklmnopqrstuvwxyz",Td="0123456789",tm={DIGIT:Td,ALPHA:Ua,ALPHA_DIGIT:Ua+Ua.toUpperCase()+Td},mE=(e=16,t=tm.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function gE(e){return !!(e&&ys(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yE=e=>{const t=new Array(10),n=(s,i)=>{if(ku(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[i]=s;const o=To(s)?[]:{};return $i(s,(r,a)=>{const l=n(r,i+1);!wi(l)&&(o[a]=l);}),t[i]=void 0,o}}return s};return n(e,0)},ne={isArray:To,isArrayBuffer:Jh,isBuffer:jS,isFormData:YS,isArrayBufferView:HS,isString:zS,isNumber:Yh,isBoolean:qS,isObject:ku,isPlainObject:Xi,isUndefined:wi,isDate:VS,isFile:WS,isBlob:KS,isRegExp:cE,isFunction:ys,isStream:JS,isURLSearchParams:QS,isTypedArray:iE,isFileList:GS,forEach:$i,merge:$l,extend:ZS,trim:XS,stripBOM:eE,inherits:tE,toFlatObject:nE,kindOf:Cu,kindOfTest:es,endsWith:sE,toArray:oE,forEachEntry:rE,matchAll:aE,isHTMLForm:lE,hasOwnProperty:Id,hasOwnProp:Id,reduceDescriptors:em,freezeMethods:dE,toObjectSet:fE,toCamelCase:uE,noop:pE,toFiniteNumber:hE,findKey:Qh,global:Xh,isContextDefined:Zh,ALPHABET:tm,generateString:mE,isSpecCompliantForm:gE,toJSONObject:yE};function Xe(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i);}ne.inherits(Xe,Error,{toJSON:function(){return {message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const nm=Xe.prototype,sm={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{sm[e]={value:e};});Object.defineProperties(Xe,sm);Object.defineProperty(nm,"isAxiosError",{value:!0});Xe.from=(e,t,n,s,i,o)=>{const r=Object.create(nm);return ne.toFlatObject(e,r,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Xe.call(r,e.message,t,n,s,i),r.cause=e,r.name=e.name,o&&Object.assign(r,o),r};const wE=null;function Sl(e){return ne.isPlainObject(e)||ne.isArray(e)}function om(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function Od(e,t,n){return e?e.concat(t).map(function(i,o){return i=om(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function bE(e){return ne.isArray(e)&&!e.some(Sl)}const vE=ne.toFlatObject(ne,{},null,function(t){return /^is[A-Z]/.test(t)});function la(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,B){return !ne.isUndefined(B[_])});const s=n.metaTokens,i=n.visitor||d,o=n.dots,r=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(i))throw new TypeError("visitor must be a function");function u(b){if(b===null)return "";if(ne.isDate(b))return b.toISOString();if(!l&&ne.isBlob(b))throw new Xe("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(b)||ne.isTypedArray(b)?l&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function d(b,_,B){let L=b;if(b&&!B&&typeof b=="object"){if(ne.endsWith(_,"{}"))_=s?_:_.slice(0,-2),b=JSON.stringify(b);else if(ne.isArray(b)&&bE(b)||(ne.isFileList(b)||ne.endsWith(_,"[]"))&&(L=ne.toArray(b)))return _=om(_),L.forEach(function(O,D){!(ne.isUndefined(O)||O===null)&&t.append(r===!0?Od([_],D,o):r===null?_:_+"[]",u(O));}),!1}return Sl(b)?!0:(t.append(Od(B,_,o),u(b)),!1)}const h=[],g=Object.assign(vE,{defaultVisitor:d,convertValue:u,isVisitable:Sl});function v(b,_){if(!ne.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+_.join("."));h.push(b),ne.forEach(b,function(L,F){(!(ne.isUndefined(L)||L===null)&&i.call(t,L,ne.isString(F)?F.trim():F,_,g))===!0&&v(L,_?_.concat(F):[F]);}),h.pop();}}if(!ne.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Md(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function $u(e,t){this._pairs=[],e&&la(e,this,t);}const im=$u.prototype;im.append=function(t,n){this._pairs.push([t,n]);};im.toString=function(t){const n=t?function(s){return t.call(this,s,Md)}:Md;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function _E(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rm(e,t,n){if(!t)return e;const s=n&&n.encode||_E,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ne.isURLSearchParams(t)?t.toString():new $u(t,n).toString(s),o){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+o;}return e}class Ld{constructor(){this.handlers=[];}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null);}clear(){this.handlers&&(this.handlers=[]);}forEach(t){ne.forEach(this.handlers,function(s){s!==null&&t(s);});}}const am={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xE=typeof URLSearchParams<"u"?URLSearchParams:$u,CE=typeof FormData<"u"?FormData:null,kE=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),$E=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ln={isBrowser:!0,classes:{URLSearchParams:xE,FormData:CE,Blob},isStandardBrowserEnv:kE,isStandardBrowserWebWorkerEnv:$E,protocols:["http","https","file","blob","url","data"]};function SE(e,t){return la(e,new Ln.classes.URLSearchParams,Object.assign({visitor:function(n,s,i,o){return Ln.isNode&&ne.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function EE(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function AE(e){const t={},n=Object.keys(e);let s;const i=n.length;let o;for(s=0;s<i;s++)o=n[s],t[o]=e[o];return t}function lm(e){function t(n,s,i,o){let r=n[o++];const a=Number.isFinite(+r),l=o>=n.length;return r=!r&&ne.isArray(i)?i.length:r,l?(ne.hasOwnProp(i,r)?i[r]=[i[r],s]:i[r]=s,!a):((!i[r]||!ne.isObject(i[r]))&&(i[r]=[]),t(n,s,i[r],o)&&ne.isArray(i[r])&&(i[r]=AE(i[r])),!a)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(s,i)=>{t(EE(s),i,n,0);}),n}return null}const PE={"Content-Type":void 0};function IE(e,t,n){if(ne.isString(e))try{return (t||JSON.parse)(e),ne.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return (n||JSON.stringify)(e)}const Oo={transitional:am,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,o=ne.isObject(t);if(o&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return i&&i?JSON.stringify(lm(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return SE(t,this.formSerializer).toString();if((a=ne.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return la(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),IE(t)):t}],transformResponse:[function(t){const n=this.transitional||Oo.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&ne.isString(t)&&(s&&!this.responseType||i)){const r=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(r)throw a.name==="SyntaxError"?Xe.from(a,Xe.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ln.classes.FormData,Blob:Ln.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ne.forEach(["delete","get","head"],function(t){Oo.headers[t]={};});ne.forEach(["post","put","patch"],function(t){Oo.headers[t]=ne.merge(PE);});const TE=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),OE=e=>{const t={};let n,s,i;return e&&e.split(`
`).forEach(function(r){i=r.indexOf(":"),n=r.substring(0,i).trim().toLowerCase(),s=r.substring(i+1).trim(),!(!n||t[n]&&TE[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s);}),t},Dd=Symbol("internals");function Ho(e){return e&&String(e).trim().toLowerCase()}function Zi(e){return e===!1||e==null?e:ne.isArray(e)?e.map(Zi):String(e)}function ME(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function LE(e){return /^[-_a-zA-Z]+$/.test(e.trim())}function ja(e,t,n,s,i){if(ne.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!ne.isString(t)){if(ne.isString(s))return t.indexOf(s)!==-1;if(ne.isRegExp(s))return s.test(t)}}function DE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function BE(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,o,r){return this[s].call(this,t,i,o,r)},configurable:!0});});}let gn=class{constructor(t){t&&this.set(t);}set(t,n,s){const i=this;function o(a,l,u){const d=Ho(l);if(!d)throw new Error("header name must be a non-empty string");const h=ne.findKey(i,d);(!h||i[h]===void 0||u===!0||u===void 0&&i[h]!==!1)&&(i[h||l]=Zi(a));}const r=(a,l)=>ne.forEach(a,(u,d)=>o(u,d,l));return ne.isPlainObject(t)||t instanceof this.constructor?r(t,n):ne.isString(t)&&(t=t.trim())&&!LE(t)?r(OE(t),n):t!=null&&o(n,t,s),this}get(t,n){if(t=Ho(t),t){const s=ne.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return ME(i);if(ne.isFunction(n))return n.call(this,i,s);if(ne.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ho(t),t){const s=ne.findKey(this,t);return !!(s&&this[s]!==void 0&&(!n||ja(this,this[s],s,n)))}return !1}delete(t,n){const s=this;let i=!1;function o(r){if(r=Ho(r),r){const a=ne.findKey(s,r);a&&(!n||ja(s,s[a],a,n))&&(delete s[a],i=!0);}}return ne.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const o=n[s];(!t||ja(this,this[o],o,t,!0))&&(delete this[o],i=!0);}return i}normalize(t){const n=this,s={};return ne.forEach(this,(i,o)=>{const r=ne.findKey(s,o);if(r){n[r]=Zi(i),delete n[o];return}const a=t?DE(o):String(o).trim();a!==o&&delete n[o],n[a]=Zi(i),s[a]=!0;}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&ne.isArray(s)?s.join(", "):s);}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return "AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[Dd]=this[Dd]={accessors:{}}).accessors,i=this.prototype;function o(r){const a=Ho(r);s[a]||(BE(i,r),s[a]=!0);}return ne.isArray(t)?t.forEach(o):o(t),this}};gn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.freezeMethods(gn.prototype);ne.freezeMethods(gn);function Ha(e,t){const n=this||Oo,s=t||n,i=gn.from(s.headers);let o=s.data;return ne.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0);}),i.normalize(),o}function um(e){return !!(e&&e.__CANCEL__)}function Si(e,t,n){Xe.call(this,e??"canceled",Xe.ERR_CANCELED,t,n),this.name="CanceledError";}ne.inherits(Si,Xe,{__CANCEL__:!0});function RE(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Xe("Request failed with status code "+n.status,[Xe.ERR_BAD_REQUEST,Xe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n));}const NE=Ln.isStandardBrowserEnv?function(){return {write:function(n,s,i,o,r,a){const l=[];l.push(n+"="+encodeURIComponent(s)),ne.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),ne.isString(o)&&l.push("path="+o),ne.isString(r)&&l.push("domain="+r),a===!0&&l.push("secure"),document.cookie=l.join("; ");},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5);}}}():function(){return {write:function(){},read:function(){return null},remove:function(){}}}();function FE(e){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function UE(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function cm(e,t){return e&&!FE(t)?UE(e,t):t}const jE=Ln.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function i(o){let r=o;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=i(window.location.href),function(r){const a=ne.isString(r)?i(r):r;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return !0}}();function HE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function zE(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,o=0,r;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=s[o];r||(r=u),n[i]=l,s[i]=u;let h=o,g=0;for(;h!==i;)g+=n[h++],h=h%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-r<t)return;const v=d&&u-d;return v?Math.round(g*1e3/v):void 0}}function Bd(e,t){let n=0;const s=zE(50,250);return i=>{const o=i.loaded,r=i.lengthComputable?i.total:void 0,a=o-n,l=s(a),u=o<=r;n=o;const d={loaded:o,total:r,progress:r?o/r:void 0,bytes:a,rate:l||void 0,estimated:l&&r&&u?(r-o)/l:void 0,event:i};d[t?"download":"upload"]=!0,e(d);}}const qE=typeof XMLHttpRequest<"u",VE=qE&&function(e){return new Promise(function(n,s){let i=e.data;const o=gn.from(e.headers).normalize(),r=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a);}ne.isFormData(i)&&(Ln.isStandardBrowserEnv||Ln.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(v+":"+b));}const d=cm(e.baseURL,e.url);u.open(e.method.toUpperCase(),rm(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function h(){if(!u)return;const v=gn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),_={data:!r||r==="text"||r==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:e,request:u};RE(function(L){n(L),l();},function(L){s(L),l();},_),u=null;}if("onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(h);},u.onabort=function(){u&&(s(new Xe("Request aborted",Xe.ECONNABORTED,e,u)),u=null);},u.onerror=function(){s(new Xe("Network Error",Xe.ERR_NETWORK,e,u)),u=null;},u.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const _=e.transitional||am;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),s(new Xe(b,_.clarifyTimeoutError?Xe.ETIMEDOUT:Xe.ECONNABORTED,e,u)),u=null;},Ln.isStandardBrowserEnv){const v=(e.withCredentials||jE(d))&&e.xsrfCookieName&&NE.read(e.xsrfCookieName);v&&o.set(e.xsrfHeaderName,v);}i===void 0&&o.setContentType(null),"setRequestHeader"in u&&ne.forEach(o.toJSON(),function(b,_){u.setRequestHeader(_,b);}),ne.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),r&&r!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Bd(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Bd(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=v=>{u&&(s(!v||v.type?new Si(null,e,u):v),u.abort(),u=null);},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const g=HE(d);if(g&&Ln.protocols.indexOf(g)===-1){s(new Xe("Unsupported protocol "+g+":",Xe.ERR_BAD_REQUEST,e));return}u.send(i||null);})},er={http:wE,xhr:VE};ne.forEach(er,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t});}catch{}Object.defineProperty(e,"adapterName",{value:t});}});const WE={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let i=0;i<t&&(n=e[i],!(s=ne.isString(n)?er[n.toLowerCase()]:n));i++);if(!s)throw s===!1?new Xe(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ne.hasOwnProp(er,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ne.isFunction(s))throw new TypeError("adapter is not a function");return s},adapters:er};function za(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Si(null,e)}function Rd(e){return za(e),e.headers=gn.from(e.headers),e.data=Ha.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),WE.getAdapter(e.adapter||Oo.adapter)(e).then(function(s){return za(e),s.data=Ha.call(e,e.transformResponse,s),s.headers=gn.from(s.headers),s},function(s){return um(s)||(za(e),s&&s.response&&(s.response.data=Ha.call(e,e.transformResponse,s.response),s.response.headers=gn.from(s.response.headers))),Promise.reject(s)})}const Nd=e=>e instanceof gn?e.toJSON():e;function $o(e,t){t=t||{};const n={};function s(u,d,h){return ne.isPlainObject(u)&&ne.isPlainObject(d)?ne.merge.call({caseless:h},u,d):ne.isPlainObject(d)?ne.merge({},d):ne.isArray(d)?d.slice():d}function i(u,d,h){if(ne.isUndefined(d)){if(!ne.isUndefined(u))return s(void 0,u,h)}else return s(u,d,h)}function o(u,d){if(!ne.isUndefined(d))return s(void 0,d)}function r(u,d){if(ne.isUndefined(d)){if(!ne.isUndefined(u))return s(void 0,u)}else return s(void 0,d)}function a(u,d,h){if(h in t)return s(u,d);if(h in e)return s(void 0,u)}const l={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:a,headers:(u,d)=>i(Nd(u),Nd(d),!0)};return ne.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const h=l[d]||i,g=h(e[d],t[d],d);ne.isUndefined(g)&&h!==a||(n[d]=g);}),n}const dm="1.3.3",Su={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Su[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e};});const Fd={};Su.transitional=function(t,n,s){function i(o,r){return "[Axios v"+dm+"] Transitional option '"+o+"'"+r+(s?". "+s:"")}return (o,r,a)=>{if(t===!1)throw new Xe(i(r," has been removed"+(n?" in "+n:"")),Xe.ERR_DEPRECATED);return n&&!Fd[r]&&(Fd[r]=!0,console.warn(i(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,r,a):!0}};function KE(e,t,n){if(typeof e!="object")throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const o=s[i],r=t[o];if(r){const a=e[o],l=a===void 0||r(a,o,e);if(l!==!0)throw new Xe("option "+o+" must be "+l,Xe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Xe("Unknown option "+o,Xe.ERR_BAD_OPTION)}}const El={assertOptions:KE,validators:Su},ns=El.validators;let Rs=class{constructor(t){this.defaults=t,this.interceptors={request:new Ld,response:new Ld};}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$o(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:o}=n;s!==void 0&&El.assertOptions(s,{silentJSONParsing:ns.transitional(ns.boolean),forcedJSONParsing:ns.transitional(ns.boolean),clarifyTimeoutError:ns.transitional(ns.boolean)},!1),i!==void 0&&El.assertOptions(i,{encode:ns.function,serialize:ns.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r;r=o&&ne.merge(o.common,o[n.method]),r&&ne.forEach(["delete","get","head","post","put","patch","common"],b=>{delete o[b];}),n.headers=gn.concat(r,o);const a=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,a.unshift(_.fulfilled,_.rejected));});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected);});let d,h=0,g;if(!l){const b=[Rd.bind(this),void 0];for(b.unshift.apply(b,a),b.push.apply(b,u),g=b.length,d=Promise.resolve(n);h<g;)d=d.then(b[h++],b[h++]);return d}g=a.length;let v=n;for(h=0;h<g;){const b=a[h++],_=a[h++];try{v=b(v);}catch(B){_.call(this,B);break}}try{d=Rd.call(this,v);}catch(b){return Promise.reject(b)}for(h=0,g=u.length;h<g;)d=d.then(u[h++],u[h++]);return d}getUri(t){t=$o(this.defaults,t);const n=cm(t.baseURL,t.url);return rm(n,t.params,t.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(t){Rs.prototype[t]=function(n,s){return this.request($o(s||{},{method:t,url:n,data:(s||{}).data}))};});ne.forEach(["post","put","patch"],function(t){function n(s){return function(o,r,a){return this.request($o(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}Rs.prototype[t]=n(),Rs.prototype[t+"Form"]=n(!0);});let GE=class fm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o;});const s=this;this.promise.then(i=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](i);s._listeners=null;}),this.promise.then=i=>{let o;const r=new Promise(a=>{s.subscribe(a),o=a;}).then(i);return r.cancel=function(){s.unsubscribe(o);},r},t(function(o,r,a){s.reason||(s.reason=new Si(o,r,a),n(s.reason));});}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t];}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1);}static source(){let t;return {token:new fm(function(i){t=i;}),cancel:t}}};function JE(e){return function(n){return e.apply(null,n)}}function YE(e){return ne.isObject(e)&&e.isAxiosError===!0}const Al={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Al).forEach(([e,t])=>{Al[t]=e;});function pm(e){const t=new Rs(e),n=Kh(Rs.prototype.request,t);return ne.extend(n,Rs.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return pm($o(e,i))},n}const _t=pm(Oo);_t.Axios=Rs;_t.CanceledError=Si;_t.CancelToken=GE;_t.isCancel=um;_t.VERSION=dm;_t.toFormData=la;_t.AxiosError=Xe;_t.Cancel=_t.CanceledError;_t.all=function(t){return Promise.all(t)};_t.spread=JE;_t.isAxiosError=YE;_t.mergeConfig=$o;_t.AxiosHeaders=gn;_t.formToJSON=e=>lm(ne.isHTMLForm(e)?new FormData(e):e);_t.HttpStatusCode=Al;_t.default=_t;const{Axios:zM,AxiosError:QE,CanceledError:qM,isCancel:VM,CancelToken:WM,VERSION:KM,all:GM,Cancel:JM,isAxiosError:YM,spread:QM,toFormData:XM,AxiosHeaders:ZM,HttpStatusCode:eL,formToJSON:tL,mergeConfig:nL}=_t,XE=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);var ZE=e=>!XE.has(e&&e.code);const eA=jl(ZE),Eu="axios-retry";function hm(e){const t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:eA(e)}const mm=["get","head","options"],tA=mm.concat(["put","delete"]);function Au(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function nA(e){var t;return (t=e.config)!=null&&t.method?Au(e)&&mm.indexOf(e.config.method)!==-1:!1}function gm(e){var t;return (t=e.config)!=null&&t.method?Au(e)&&tA.indexOf(e.config.method)!==-1:!1}function ym(e){return hm(e)||gm(e)}function wm(e=void 0){var s;const t=(s=e==null?void 0:e.response)==null?void 0:s.headers["retry-after"];if(!t)return 0;let n=(Number(t)||0)*1e3;return n===0&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}function sA(e=0,t=void 0){return Math.max(0,wm(t))}function oA(e=0,t=void 0,n=100){const s=2**e*n,i=Math.max(s,wm(t)),o=i*.2*Math.random();return i+o}const iA={retries:3,retryCondition:ym,retryDelay:sA,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function rA(e,t){return {...iA,...t,...e[Eu]}}function Ud(e,t){const n=rA(e,t||{});return n.retryCount=n.retryCount||0,n.lastRequestTime=n.lastRequestTime||Date.now(),e[Eu]=n,n}function aA(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent;}async function lA(e,t){const{retries:n,retryCondition:s}=e,i=(e.retryCount||0)<n&&s(t);if(typeof i=="object")try{return await i!==!1}catch{return !1}return i}async function uA(e,t,n,s){var l;t.retryCount+=1;const{retryDelay:i,shouldResetTimeout:o,onRetry:r}=t,a=i(t.retryCount,n);if(aA(e,s),!o&&s.timeout&&t.lastRequestTime){const u=Date.now()-t.lastRequestTime,d=s.timeout-u-a;if(d<=0)return Promise.reject(n);s.timeout=d;}return s.transformRequest=[u=>u],await r(t.retryCount,n,s),(l=s.signal)!=null&&l.aborted?Promise.resolve(e(s)):new Promise(u=>{var g;const d=()=>{clearTimeout(h),u(e(s));},h=setTimeout(()=>{var v;u(e(s)),(v=s.signal)!=null&&v.removeEventListener&&s.signal.removeEventListener("abort",d);},a);(g=s.signal)!=null&&g.addEventListener&&s.signal.addEventListener("abort",d,{once:!0});})}async function cA(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount);}const Ys=(e,t)=>{const n=e.interceptors.request.use(i=>{var o;return Ud(i,t),(o=i[Eu])!=null&&o.validateResponse&&(i.validateStatus=()=>!1),i}),s=e.interceptors.response.use(null,async i=>{var a;const{config:o}=i;if(!o)return Promise.reject(i);const r=Ud(o,t);return i.response&&((a=r.validateResponse)!=null&&a.call(r,i.response))?i.response:await lA(r,i)?uA(e,r,i,o):(await cA(r,i),Promise.reject(i))});return {requestInterceptorId:n,responseInterceptorId:s}};Ys.isNetworkError=hm;Ys.isSafeRequestError=nA;Ys.isIdempotentRequestError=gm;Ys.isNetworkOrIdempotentRequestError=ym;Ys.exponentialDelay=oA;Ys.isRetryableError=Au;var dA=class{constructor(t={}){this.points=t.points,this.duration=t.duration,this.blockDuration=t.blockDuration,this.execEvenly=t.execEvenly,this.execEvenlyMinDelayMs=t.execEvenlyMinDelayMs,this.keyPrefix=t.keyPrefix;}get points(){return this._points}set points(t){this._points=t>=0?t:4;}get duration(){return this._duration}set duration(t){this._duration=typeof t>"u"?1:t;}get msDuration(){return this.duration*1e3}get blockDuration(){return this._blockDuration}set blockDuration(t){this._blockDuration=typeof t>"u"?0:t;}get msBlockDuration(){return this.blockDuration*1e3}get execEvenly(){return this._execEvenly}set execEvenly(t){this._execEvenly=typeof t>"u"?!1:!!t;}get execEvenlyMinDelayMs(){return this._execEvenlyMinDelayMs}set execEvenlyMinDelayMs(t){this._execEvenlyMinDelayMs=typeof t>"u"?Math.ceil(this.msDuration/this.points):t;}get keyPrefix(){return this._keyPrefix}set keyPrefix(t){if(typeof t>"u"&&(t="rlflx"),typeof t!="string")throw new Error("keyPrefix must be string");this._keyPrefix=t;}_getKeySecDuration(t={}){return t&&t.customDuration>=0?t.customDuration:this.duration}getKey(t){return this.keyPrefix.length>0?`${this.keyPrefix}:${t}`:t}parseKey(t){return t.substring(this.keyPrefix.length)}consume(){throw new Error("You have to implement the method 'consume'!")}penalty(){throw new Error("You have to implement the method 'penalty'!")}reward(){throw new Error("You have to implement the method 'reward'!")}get(){throw new Error("You have to implement the method 'get'!")}set(){throw new Error("You have to implement the method 'set'!")}block(){throw new Error("You have to implement the method 'block'!")}delete(){throw new Error("You have to implement the method 'delete'!")}},fA=class{constructor(t,n,s=null){this.value=t,this.expiresAt=n,this.timeoutId=s;}get value(){return this._value}set value(t){this._value=parseInt(t);}get expiresAt(){return this._expiresAt}set expiresAt(t){!(t instanceof Date)&&Number.isInteger(t)&&(t=new Date(t)),this._expiresAt=t;}get timeoutId(){return this._timeoutId}set timeoutId(t){this._timeoutId=t;}},Pu=class{constructor(t,n,s,i){this.remainingPoints=typeof t>"u"?0:t,this.msBeforeNext=typeof n>"u"?0:n,this.consumedPoints=typeof s>"u"?0:s,this.isFirstInDuration=typeof i>"u"?!1:i;}get msBeforeNext(){return this._msBeforeNext}set msBeforeNext(t){return this._msBeforeNext=t,this}get remainingPoints(){return this._remainingPoints}set remainingPoints(t){return this._remainingPoints=t,this}get consumedPoints(){return this._consumedPoints}set consumedPoints(t){return this._consumedPoints=t,this}get isFirstInDuration(){return this._isFirstInDuration}set isFirstInDuration(t){this._isFirstInDuration=!!t;}_getDecoratedProperties(){return {remainingPoints:this.remainingPoints,msBeforeNext:this.msBeforeNext,consumedPoints:this.consumedPoints,isFirstInDuration:this.isFirstInDuration}}[Symbol.for("nodejs.util.inspect.custom")](){return this._getDecoratedProperties()}toString(){return JSON.stringify(this._getDecoratedProperties())}toJSON(){return this._getDecoratedProperties()}};const pA=fA,qa=Pu;var hA=class{constructor(){this._storage={};}incrby(t,n,s){if(this._storage[t]){const i=this._storage[t].expiresAt?this._storage[t].expiresAt.getTime()-new Date().getTime():-1;return !this._storage[t].expiresAt||i>0?(this._storage[t].value=this._storage[t].value+n,new qa(0,i,this._storage[t].value,!1)):this.set(t,n,s)}return this.set(t,n,s)}set(t,n,s){const i=s*1e3;return this._storage[t]&&this._storage[t].timeoutId&&clearTimeout(this._storage[t].timeoutId),this._storage[t]=new pA(n,i>0?new Date(Date.now()+i):null),i>0&&(this._storage[t].timeoutId=setTimeout(()=>{delete this._storage[t];},i),this._storage[t].timeoutId.unref&&this._storage[t].timeoutId.unref()),new qa(0,i===0?-1:i,this._storage[t].value,!0)}get(t){if(this._storage[t]){const n=this._storage[t].expiresAt?this._storage[t].expiresAt.getTime()-new Date().getTime():-1;return new qa(0,n,this._storage[t].value,!1)}return null}delete(t){return this._storage[t]?(this._storage[t].timeoutId&&clearTimeout(this._storage[t].timeoutId),delete this._storage[t],!0):!1}};const mA=dA,gA=hA,jd=Pu;let yA=class extends mA{constructor(t={}){super(t),this._memoryStorage=new gA;}consume(t,n=1,s={}){return new Promise((i,o)=>{const r=this.getKey(t),a=this._getKeySecDuration(s);let l=this._memoryStorage.incrby(r,n,a);if(l.remainingPoints=Math.max(this.points-l.consumedPoints,0),l.consumedPoints>this.points)this.blockDuration>0&&l.consumedPoints<=this.points+n&&(l=this._memoryStorage.set(r,l.consumedPoints,this.blockDuration)),o(l);else if(this.execEvenly&&l.msBeforeNext>0&&!l.isFirstInDuration){let u=Math.ceil(l.msBeforeNext/(l.remainingPoints+2));u<this.execEvenlyMinDelayMs&&(u=l.consumedPoints*this.execEvenlyMinDelayMs),setTimeout(i,u,l);}else i(l);})}penalty(t,n=1,s={}){const i=this.getKey(t);return new Promise(o=>{const r=this._getKeySecDuration(s),a=this._memoryStorage.incrby(i,n,r);a.remainingPoints=Math.max(this.points-a.consumedPoints,0),o(a);})}reward(t,n=1,s={}){const i=this.getKey(t);return new Promise(o=>{const r=this._getKeySecDuration(s),a=this._memoryStorage.incrby(i,-n,r);a.remainingPoints=Math.max(this.points-a.consumedPoints,0),o(a);})}block(t,n){const s=n*1e3,i=this.points+1;return this._memoryStorage.set(this.getKey(t),i,n),Promise.resolve(new jd(0,s===0?-1:s,i))}set(t,n,s){const i=(s>=0?s:this.duration)*1e3;return this._memoryStorage.set(this.getKey(t),n,s),Promise.resolve(new jd(0,i===0?-1:i,n))}get(t){const n=this._memoryStorage.get(this.getKey(t));return n!==null&&(n.remainingPoints=Math.max(this.points-n.consumedPoints,0)),Promise.resolve(n)}delete(t){return Promise.resolve(this._memoryStorage.delete(this.getKey(t)))}};var wA=yA;const bA=wA,vA=Pu;var Hd={RateLimiterMemory:bA,RateLimiterRes:vA};const _A="pan115_api";var br=(e=>(e.evenly="evenly",e.asap="asap",e))(br||{});const bm={points:1,duration:1,execEvenly:!0};function vm(e){return {clientId:_A,rateLimit:bm,msDelayAdjustment:30,...e}}function xA(e){const t=vm(e),n=_t.create({});Ys(n,{retries:5,shouldResetTimeout:!0,retryDelay:i=>(console.log(`[axios] Retry ${i}...`),i*1e3)});const s=new Hd.RateLimiterMemory(t.rateLimit);return n.interceptors.request.use(async i=>{try{const o=await s.consume(t.clientId);return i}catch(o){if(console.warn("[axios] RateLimiter:",o),o instanceof Hd.RateLimiterRes){const r=o.msBeforeNext+t.msDelayAdjustment;return console.log(`[axios] Delay ${r}ms for next request...`),await ln(r),i}else throw new QE(o)}},i=>(console.warn("[axios] onRejected:",i),Promise.reject(i))),n}const _m=yt.basic;function CA(e){return {qps:4,limiterDuration:1,limiterPoints:1,limitExecPolicy:br.evenly,showOfflineEntry:!1,offlineEntryLabel:"云下载",showAddOffline:!1,addOfflineLabel:"添加",transferDefaultOffline:!1,showFavEntry:!1,favEntryLabel:"星标",hideWatermark:!0,fakeAccountEnabled:!1,fakeAccountId:"",fakeAccountName:"",fakeAccountAvatar:"",fakeAccountVip:"",...e}}async function ua(){const e=CA(),t=await lt.get(_m,e);return {...e,...t}}async function kA(e){await lt.set(_m,e);}var $A={name:"115不大助手",version:"0.7.28",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"http://greasyfork.icu/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};const Iu=$A;async function SA(e){if(!e.showOfflineEntry||!Xn())return;console.log("[Cloud115 Enhancer] showOfflineEntry");const t=await ls("a#js_filter_btn"),n="https://115.com/?ct=index&ac=offline_new_tpl&offline=1&tab=offline",s="background:#fffcea;",i=`点击跳转到「云下载」页面。该按钮由 ${Iu.name} 注入`,o=e.offlineEntryLabel?`<span>${e.offlineEntryLabel}</span>`:"",r=$(`<a href="javascript:;" class="button btn-line" title="${i}" tab_btn="wangpan" mode-tab="offline" style="${s}">
    <i class="icon-operate ifo-linktask"></i>
    ${o}
  </a>`);t.after(r),r.on("click",()=>{try{Zt().oofUtil.urlMaintain.changeMode("wangpan",{tab:"offline"});}catch(a){console.log('[Cloud115 Enhancer] showOfflineEntry failed with "top.oofUtil.urlMaintain.changeMode".',a),location.href=n;}});}async function EA(e){if(!e.showAddOffline||!Xn())return;console.log("[Cloud115 Enhancer] showAddOffline");const t=await ls("a#js_filter_btn"),n="background:#fffcea;",s=`点击打开到「添加云下载」对话框。该按钮由 ${Iu.name} 注入`,i=e.addOfflineLabel?`<span>${e.addOfflineLabel}</span>`:"",o=$(`<a href="javascript:;" class="button btn-line" menu="offline_task" style="${n}" title="${s}">
    <i class="icon-operate ifo-linktask"></i>${i}
  </a>`);t.after(o);}async function AA(e){if(!e.showFavEntry||!Xn())return;console.log("[Cloud115 Enhancer] showFavEntry");const t=await ls("a#js_filter_btn"),n="https://115.com/?tab=label&show_label=1&label_id=-1&mode=wangpan",s="background:#fffcea;",i=`点击跳转到「星标」页面。该按钮由 ${Iu.name} 注入`,o=e.favEntryLabel?`<span>${e.favEntryLabel}</span>`:"",r=$(`<a href="javascript:;" class="button btn-line" title="${i}" tab_btn="wangpan" mode-tab="{tab:'label',label_id:-1,show_label:1}" style="${s}">
    <i class="icon-operate ifo-fav"></i>
    ${o}
  </a>`);t.after(r),r.on("click",()=>{try{Zt().oofUtil.urlMaintain.changeMode("wangpan",{tab:"label",label_id:-1,show_label:1});}catch(a){console.log('[Cloud115 Enhancer] showFavEntry failed with "top.oofUtil.urlMaintain.changeMode".',a),location.href=n;}});}async function PA(e){if(!e.transferDefaultOffline)return;const{search:t}=location;if(window.top!==window||!t.includes("mode=wangpan"))return;console.log("[Cloud115 Enhancer] makeTransferDefaultOffline");const n=await ls('#js_sub_nav_scroller a[mode-tab="upload"]');n.attr("mode-tab","offline").attr("href","https://115.com/?tab=offline&mode=wangpan"),n.find("i").removeClass("icon-ns-transfer").removeClass("icon-nv-file inf-transmit").addClass("icon-operate ifo-linktask").css({filter:"invert(0.6)",marginRight:12,zoom:1.2});}async function IA(e){if(e.hideWatermark){console.log("[Cloud115 Enhancer] hideWatermark");try{const t=await ft('div[class^="fp-"]');t.classList.add("hidden-watermark"),t.style.display="none";}catch(t){console.error("[Cloud115 Enhancer] hideWatermark",t.message);}}}async function TA(e){window.top===window.self&&(await ln(1e3),Pl(e),window.addEventListener("message",async t=>{const n=t.data.event,s=t.data.body;n===ht.basicConfigChange&&(console.log("[Cloud115 Enhancer] basicConfigChange"),Pl(s));}));}let oi=null;async function OA(){oi&&clearTimeout(oi),oi=setTimeout(async()=>{const e=await ua();Pl(e);},5e3);}async function Pl(e){oi&&clearTimeout(oi);const t=async(n,s)=>{const i=await ls('[rel="user_id"]',100);i.data("origin")||i.data("origin",i.text()),s?i.text(i.data("origin")):i.text(n.fakeAccountId);const o=await ls('[rel="user_name"]',100);o.data("origin")||o.data("origin",$(o[0]).text()),s?o.text(o.data("origin")):o.text(n.fakeAccountName);const r=await ls('img[rel="user_face"], .user-avatar img',100);r.data("origin")||r.data("origin",r.attr("src")),s?r.attr("src",r.data("origin")):(r.attr("rel","noreferrer"),r.attr("src",n.fakeAccountAvatar));const a=await ls(".sign-vip-card",100);a.data("origin")||a.data("origin",$(a[0]).text()),s?a.text(a.data("origin")):a.text(n.fakeAccountVip);};try{e.fakeAccountEnabled?await t(e,!1):await t(e,!0);}catch(n){console.error(n);}finally{e.fakeAccountEnabled&&OA();}}async function MA(){const e=await ua(),{host:t}=location;/115\.com$/.test(t)&&(IA(e),SA(e),EA(e),AA(e),PA(e),TA(e));}const xm=Symbol("addTab"),Cm=Symbol("updateTab"),km=Symbol("deleteTab"),$m=Symbol("tabsProvider");function zi(e,t){const n=Xo(e,t);if(typeof n>"u")throw new Error(`Could not resolve ${e.description}`);return n}const LA=["data-tab-id","aria-hidden"],dn=De({__name:"Tab",props:{panelClass:{type:[String,Object,Array],default:"tabs-component-panel"},id:{type:String,default:null},name:{type:String,required:!0},prefix:{type:String,default:""},suffix:{type:String,default:""},isDisabled:{type:Boolean,default:!1},navItemClass:{type:[String,Object,Array],required:!1,default:null},navItemLinkClass:{type:[String,Object,Array],required:!1,default:null}},setup(e,{expose:t}){const n=e,s=ie(!1),i=zi($m),o=zi(xm),r=zi(Cm),a=zi(km),l=n.prefix+n.name+n.suffix,u=n.id?n.id:n.name.toLowerCase().replace(/ /g,"-"),d=u+"-pane",h=it(()=>"#"+(n.isDisabled?"":u));return mt(()=>i.activeTabHash,()=>{s.value=h.value===i.activeTabHash;}),mt(()=>Object.assign({},n),()=>{r(u,{name:n.name,header:n.prefix+n.name+n.suffix,isDisabled:n.isDisabled,hash:h.value,index:i.tabs.length,computedId:u,paneId:d,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass});}),It(()=>{o({name:n.name,header:l,isDisabled:n.isDisabled,hash:h.value,index:i.tabs.length,computedId:u,paneId:d,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass});}),wp(()=>{a(u);}),t({header:l,computedId:u,paneId:d,hash:h,isActive:s}),(g,v)=>oe((E(),I("section",{ref:"tab",id:d,"data-tab-id":pe(u),"aria-hidden":!s.value,class:ze(e.panelClass),role:"tabpanel",tabindex:"-1"},[nt(g.$slots,"default")],10,LA)),[[jt,s.value]])}});class DA{get(t){const n=localStorage.getItem(t);if(n===null)return null;const s=JSON.parse(n);return s?new Date(s.expires)<new Date?(localStorage.removeItem(t),null):s.value:null}set(t,n,s){const i=new Date().getTime(),o=new Date(i+s*6e4);localStorage.setItem(t,JSON.stringify({value:n,expires:o}));}}const zd=new DA,BA=["aria-controls","aria-selected","href","onClick","innerHTML"],RA=De({__name:"Tabs",props:{cacheLifetime:{type:Number,default:5},options:{type:Object,required:!1,default:()=>({useUrlFragment:!0,defaultTabHash:null})},wrapperClass:{type:[String,Object,Array],default:"tabs-component"},panelsWrapperClass:{type:[String,Object,Array],default:"tabs-component-panels"},navClass:{type:[String,Object,Array],default:"tabs-component-tabs"},navItemClass:{type:[String,Object,Array],default:"tabs-component-tab"},navItemDisabledClass:{type:[String,Object,Array],default:"is-disabled"},navItemActiveClass:{type:[String,Object,Array],default:"is-active"},navItemInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkClass:{type:[String,Object,Array],default:"tabs-component-tab-a"},navItemLinkActiveClass:{type:[String,Object,Array],default:"is-active"},navItemLinkInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkDisabledClass:{type:[String,Object,Array],default:"is-disabled"}},emits:["changed","clicked"],setup(e,{expose:t,emit:n}){const s=e,i=Vr({activeTabHash:"",lastActiveTabHash:"",tabs:[]});Vo($m,i),Vo(xm,a=>{i.tabs.push(a);}),Vo(Cm,(a,l)=>{const u=i.tabs.findIndex(d=>d.computedId===a);l.isActive=i.tabs[u].isActive,i.tabs[u]=l;}),Vo(km,a=>{const l=i.tabs.findIndex(u=>u.computedId===a);i.tabs.splice(l,1);});const o=(a,l)=>{l&&!s.options.useUrlFragment&&l.preventDefault();const u=r(a);if(!u)return;if(l&&u.isDisabled){l.preventDefault();return}if(i.lastActiveTabHash===u.hash){n("clicked",{tab:u});return}if(i.tabs.forEach(h=>{h.isActive=h.hash===u.hash;}),n("changed",{tab:u}),i.lastActiveTabHash=i.activeTabHash=u.hash,s.cacheLifetime<=0)return;const d=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`;zd.set(d,u.hash,s.cacheLifetime);},r=a=>i.tabs.find(l=>l.hash===a);return Wt(()=>{if(i.tabs.length){if(window.addEventListener("hashchange",()=>o(window.location.hash)),r(window.location.hash)){o(window.location.hash);return}if(s.cacheLifetime>0){const a=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`,l=zd.get(a);if(l!==null&&r(l)){o(l);return}if(s.options.defaultTabHash&&r("#"+s.options.defaultTabHash)){o("#"+s.options.defaultTabHash);return}}o(i.tabs[0].hash);}}),t({...t1(i),selectTab:o,findTab:r}),(a,l)=>(E(),I("div",{class:ze(e.wrapperClass)},[c("ul",{role:"tablist",class:ze(e.navClass)},[(E(!0),I(Oe,null,Je(i.tabs,(u,d)=>{var h,g;return E(),I("li",{key:d,class:ze([(h=u.navItemClass)!=null?h:e.navItemClass,u.isDisabled?e.navItemDisabledClass:"",u.isActive?e.navItemActiveClass:u.isDisabled?"":e.navItemInactiveClass]),role:"presentation"},[c("a",{role:"tab",class:ze([(g=u.navItemLinkClass)!=null?g:e.navItemLinkClass,u.isDisabled?e.navItemLinkDisabledClass:"",u.isActive?e.navItemLinkActiveClass:u.isDisabled?"":e.navItemLinkInactiveClass]),"aria-controls":u.paneId,"aria-selected":u.isActive,href:u.hash,onClick:v=>o(u.hash,v),innerHTML:u.header,tabindex:"0"},null,10,BA)],2)}),128))],2),c("div",{class:ze(e.panelsWrapperClass)},[nt(a.$slots,"default")],2)],2))}}),NA={class:"ce-config ce-basic-config"},FA={class:"pure-form pure-form-aligned"},UA={class:"pure-control-group"},jA=["value"],HA=["value"],zA={class:"pure-control-group"},qA={class:"pure-form-message text-success"},VA={class:"pure-control-group"},WA={class:"pure-form-message text-success"},KA={class:"pure-control-group"},GA={class:"pure-control-group"},JA={class:"pure-form-message text-success"},YA={class:"pure-control-group"},QA={class:"pure-control-group"},XA={class:"pure-control-group"},ZA={class:"pure-control-group"},eP={class:"pure-control-group"},tP={class:"avatar-preview"},nP=["src"],sP={class:"pure-control-group"},oP=De({__name:"Config",async setup(e){let t,n;const s=ie(([t,n]=Xt(()=>ua()),t=await t,n(),t)),i=!0;It(async()=>{}),mt(s,vt(async l=>{await kA(l),re({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:ht.basicConfigChange,body:vf(l)});},500),{deep:!0});async function o(l,u,d="warning"){const{isConfirmed:h}=await me.fire({title:l,text:u,icon:d,showCancelButton:!0,confirmButtonText:"确认"});return h}async function r(){if(await o("导出配置","是否确认导出当前配置?"))try{await Tw(),re({icon:"success",title:"导出成功"});}catch(l){me.fire(l.toString());}}async function a(){if(await o("导入配置","导入后将覆盖当前配置,是否继续?"))try{const l=await Ow();console.log(l),Ko.fire({icon:"success",title:"导入成功,刷新页面后生效。将在5秒后自动刷新页面...",timer:5e3}),setTimeout(()=>{window.location.reload();},5e3);}catch(l){me.fire({title:"导入失败",html:l.toString()+'<br/><p class="text-danger">必须有字段 "_schema": "pan115_enhancer_configs" 。</p>'});}}return (l,u)=>(E(),I("div",NA,[c("form",FA,[c("fieldset",null,[u[43]||(u[43]=c("legend",null,"API",-1)),c("div",UA,[u[17]||(u[17]=c("label",null,"全局请求频率控制",-1)),pe(i)?we("",!0):(E(),I(Oe,{key:0},[oe(c("select",{"onUpdate:modelValue":u[0]||(u[0]=d=>s.value.limitExecPolicy=d)},[c("option",{value:pe(br).asap},"尽快消耗",8,jA),c("option",{value:pe(br).evenly},"尽量均匀",8,HA)],512),[[un,s.value.limitExecPolicy]]),u[16]||(u[16]=U(" 地 "))],64)),u[18]||(u[18]=U(" 在 ")),oe(c("input",{id:"basic_limiterDuration",type:"number",min:"1",max:"300",step:"1","onUpdate:modelValue":u[1]||(u[1]=d=>s.value.limiterDuration=d)},null,512),[[Ge,s.value.limiterDuration]]),u[19]||(u[19]=U(" 秒内最多请求 ")),oe(c("input",{id:"basic_limiterQps",type:"number",min:"1",max:"3000",step:"1","onUpdate:modelValue":u[2]||(u[2]=d=>s.value.limiterPoints=d)},null,512),[[Ge,s.value.limiterPoints]]),u[20]||(u[20]=U(" 次 ")),u[21]||(u[21]=c("div",{class:"pure-form-message text-success"}," 默认 1 秒内最多 1 次。 ",-1))]),u[44]||(u[44]=c("legend",null,"UI优化",-1)),c("div",zA,[u[23]||(u[23]=c("label",{for:"basic_showOfflineEntry"},"显示云下载入口按钮",-1)),oe(c("input",{id:"basic_showOfflineEntry",type:"checkbox","onUpdate:modelValue":u[3]||(u[3]=d=>s.value.showOfflineEntry=d)},null,512),[[Fe,s.value.showOfflineEntry]]),c("div",qA,[u[22]||(u[22]=U(" 在「网盘」页面顶部工具栏显示「云下载」入口按钮。 按钮文本为 ")),oe(c("input",{"onUpdate:modelValue":u[4]||(u[4]=d=>s.value.offlineEntryLabel=d),class:"input-small",placeholder:"可以为空"},null,512),[[Ge,s.value.offlineEntryLabel]])])]),c("div",VA,[u[25]||(u[25]=c("label",{for:"basic_showAddOffline"},"显示添加云下载按钮",-1)),oe(c("input",{id:"basic_showAddOffline",type:"checkbox","onUpdate:modelValue":u[5]||(u[5]=d=>s.value.showAddOffline=d)},null,512),[[Fe,s.value.showAddOffline]]),c("div",WA,[u[24]||(u[24]=U(" 在「网盘」页面顶部工具栏显示「添加云下载」按钮。 按钮文本为 ")),oe(c("input",{"onUpdate:modelValue":u[6]||(u[6]=d=>s.value.addOfflineLabel=d),class:"input-small",placeholder:"可以为空"},null,512),[[Ge,s.value.addOfflineLabel]])])]),c("div",KA,[u[26]||(u[26]=c("label",{for:"basic_transferDefaultOffline"},"近期传输默认云下载",-1)),oe(c("input",{id:"basic_transferDefaultOffline",type:"checkbox","onUpdate:modelValue":u[7]||(u[7]=d=>s.value.transferDefaultOffline=d)},null,512),[[Fe,s.value.transferDefaultOffline]]),u[27]||(u[27]=c("div",{class:"pure-form-message text-success"}," 点击左边栏的「传输」默认进入「云下载」页面。 ",-1))]),c("div",GA,[u[29]||(u[29]=c("label",{for:"basic_showFavEntry"},"显示星标入口按钮",-1)),oe(c("input",{id:"basic_showFavEntry",type:"checkbox","onUpdate:modelValue":u[8]||(u[8]=d=>s.value.showFavEntry=d)},null,512),[[Fe,s.value.showFavEntry]]),c("div",JA,[u[28]||(u[28]=U(" 在「网盘」页面顶部工具栏显示「星标」入口按钮。 按钮文本为 ")),oe(c("input",{"onUpdate:modelValue":u[9]||(u[9]=d=>s.value.favEntryLabel=d),class:"input-small",placeholder:"可以为空"},null,512),[[Ge,s.value.favEntryLabel]])])]),u[45]||(u[45]=c("legend",null,"配置管理",-1)),c("div",{class:"pure-control-group"},[c("button",{type:"button",class:"pure-button pure-button-primary",onClick:r},"导出配置"),u[30]||(u[30]=U("      ")),c("button",{type:"button",class:"pure-button button-success",onClick:a},"导入配置"),u[31]||(u[31]=c("br",null,null,-1)),u[32]||(u[32]=c("br",null,null,-1)),u[33]||(u[33]=c("div",{class:"text-success"},[c("b",null,"导入说明:"),U(" 如有导入部分配置的需求,可以自行编辑json配置文件,只保留需要的配置key(仅限第一级),但必须保留`_`开头的key。 ")],-1)),u[34]||(u[34]=c("br",null,null,-1))]),u[46]||(u[46]=c("legend",null,"隐私保护",-1)),c("div",YA,[u[35]||(u[35]=c("label",{for:"basic_hideWatermark"},"隐藏水印",-1)),oe(c("input",{id:"basic_hideWatermark",type:"checkbox","onUpdate:modelValue":u[10]||(u[10]=d=>s.value.hideWatermark=d)},null,512),[[Fe,s.value.hideWatermark]]),u[36]||(u[36]=c("div",{class:"pure-form-message text-success"}," 网页水印是肉眼看不到的,但通过一些处理可以看到,水印内容是你的账号标识。 如果你需要截图并发给别人,可以考虑开启隐藏。 ",-1))]),c("div",QA,[u[37]||(u[37]=c("label",{for:"basic_fakeAccountEnabled"},"隐藏身份",-1)),oe(c("input",{id:"basic_fakeAccountEnabled",type:"checkbox","onUpdate:modelValue":u[11]||(u[11]=d=>s.value.fakeAccountEnabled=d)},null,512),[[Fe,s.value.fakeAccountEnabled]]),u[38]||(u[38]=c("div",{class:"pure-form-message text-success"}," 修改右上角显示的账号信息,不会真的修改。编辑后即可生效,无需刷新页面。 ",-1))]),c("div",XA,[u[39]||(u[39]=c("label",null,"账号ID",-1)),oe(c("input",{"onUpdate:modelValue":u[12]||(u[12]=d=>s.value.fakeAccountId=d),placeholder:"自定义账号ID",class:"pure-input-2-3"},null,512),[[Ge,s.value.fakeAccountId]])]),c("div",ZA,[u[40]||(u[40]=c("label",null,"用户名",-1)),oe(c("input",{"onUpdate:modelValue":u[13]||(u[13]=d=>s.value.fakeAccountName=d),placeholder:"自定义用户名",class:"pure-input-2-3"},null,512),[[Ge,s.value.fakeAccountName]])]),c("div",eP,[u[41]||(u[41]=c("label",null,"头像",-1)),oe(c("input",{"onUpdate:modelValue":u[14]||(u[14]=d=>s.value.fakeAccountAvatar=d),placeholder:"支持网络图片地址或base64编码",class:"pure-input-2-3"},null,512),[[Ge,s.value.fakeAccountAvatar]]),c("span",tP,[s.value.fakeAccountAvatar?(E(),I("img",{key:0,src:s.value.fakeAccountAvatar,alt:"头像预览",width:"20",height:"20"},null,8,nP)):we("",!0)])]),c("div",sP,[u[42]||(u[42]=c("label",null,"VIP等级",-1)),oe(c("input",{"onUpdate:modelValue":u[15]||(u[15]=d=>s.value.fakeAccountVip=d),placeholder:"自定义VIP等级",class:"pure-input-2-3"},null,512),[[Ge,s.value.fakeAccountVip]])])])])]))}}),iP=je(oP,[["__file","Config.vue"]]),rP={class:"pure-form pure-form-aligned"},aP=["disabled"],lP={class:"pure-control-group"},uP={class:"pure-control-group"},cP={class:"pure-control-group"},dP={class:"pure-control-group"},fP=["value"],pP=De({__name:"ConfigItem",props:{config:{},deletable:{type:Boolean}},emits:["change","delete","activate"],setup(e,{emit:t}){const n=e,s=t;It(async()=>{});async function i(){n.config.active=!0,s("activate",n.config);}async function o(){s("delete");}return mt(n.config,vt(async r=>{s("change",r);},500),{deep:!0}),(r,a)=>(E(),I("div",{class:ze(["ce-clouddrive-config-item",{active:r.config.active}])},[c("form",rP,[c("fieldset",null,[c("legend",null,[c("button",{type:"button",class:ze(["pure-button button-small",[r.config.active?"button-success":"pure-button-primary"]]),onClick:i,disabled:r.config.active},Y(r.config.active?"当前使用该配置":"使用该配置"),11,aP),r.deletable?(E(),I("button",{key:0,type:"button",class:"pure-button button-error button-small",onClick:o}," 删除 ")):we("",!0)]),c("div",lP,[a[4]||(a[4]=c("label",null,[c("span",{class:"text-danger"},"*"),U(" 地址")],-1)),oe(c("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>r.config.url=l),placeholder:"CloudDrive服务地址,如「http://localhost:19798」",class:"pure-input-2-3"},null,512),[[Ge,r.config.url]])]),c("div",uP,[a[5]||(a[5]=c("label",null,[c("span",{class:"text-danger"},"*"),U(" 资源根路径")],-1)),oe(c("input",{"onUpdate:modelValue":a[1]||(a[1]=l=>r.config.root=l),placeholder:"即当前115账号在CloudDrive中的资源名称,如「115」",class:"pure-input-2-3"},null,512),[[Ge,r.config.root]])]),c("div",cP,[a[6]||(a[6]=c("label",null,"备注",-1)),oe(c("input",{"onUpdate:modelValue":a[2]||(a[2]=l=>r.config.memo=l),placeholder:"备注信息",class:"pure-input-2-3"},null,512),[[Ge,r.config.memo]])]),c("div",dP,[a[7]||(a[7]=c("label",null,"平台",-1)),oe(c("select",{"onUpdate:modelValue":a[3]||(a[3]=l=>r.config.platform=l)},[(E(!0),I(Oe,null,Je(pe(kr),l=>(E(),I("option",{key:l,value:l},Y(l),9,fP))),128))],512),[[un,r.config.platform]]),a[8]||(a[8]=U("   ")),a[9]||(a[9]=c("small",{class:"text-info"},"如果是macOS版,而且有包含日韩文的文件或目录,建议选上,可以避免播放链接无效的问题。",-1))])])])],2))}}),hP=je(pP,[["__file","ConfigItem.vue"]]),mP={class:"ce-config ce-clouddrive-config"},gP={class:"ce-list"},yP={class:"ce-actions"},wP=["disabled"],bP=De({__name:"Config",async setup(e){let t,n;const s=ie(([t,n]=Xt(()=>nf()),t=await t,n(),t));It(async()=>{});async function i(){await fc(s.value),re({icon:"success",title:"设置已保存。",timer:800,position:"top-end"});}async function o(){s.value.push(Ul());}async function r(l,u){const{isConfirmed:d}=await me.fire({icon:"warning",html:`确定要删除第 ${u+1} 个配置「${l.url}」吗?`});d&&(s.value.splice(u,1),await i(),re({icon:"success",title:`「${l.url}」已删除!`}));}async function a(l,u){l.forEach((d,h)=>{d.active=h===u;}),await fc(l),re({icon:"success",title:"设置已保存。",timer:800,position:"top-end"});}return (l,u)=>(E(),I("div",mP,[u[1]||(u[1]=c("div",{class:"ce-tips cd-tips"},[c("p",null,[c("a",{href:"https://www.clouddrive2.com/?ref=cloud115-enhancer",rel:"noreferer",target:"_blank",class:"text-bold text-primary"},"CloudDrive"),U(" 是一个强大的多云盘管理工具,为用户提供包含云盘本地挂载的一站式的多云盘解决方案。 ")]),c("p",null,"本脚本主要是借助CloudDrive实现原码视频播放的功能(具体可以在「播放菜单」面板中查看)。")],-1)),c("div",gP,[(E(!0),I(Oe,null,Je(s.value,(d,h)=>(E(),ot(hP,{key:h,config:d,index:h,deletable:s.value.length>1,onDelete:g=>r(d,h),onActivate:g=>a(s.value,h)},null,8,["config","index","deletable","onDelete","onActivate"]))),128))]),u[2]||(u[2]=c("div",{class:"ce-tips"},[c("p",{class:"text-primary"},' 暂时发现IINA是支持`file://`协议的,这时候播放器可以读取到同目录的字幕文件。 配置地址示例: file:///Users/you/115,"资源根路径"留空即可。 ')],-1)),u[3]||(u[3]=c("div",{class:"ce-tips"}," 编辑配置后,请记得点击「保存全部配置」。 ",-1)),c("div",yP,[c("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!s.value.length}," 保存全部配置 ",8,wP),u[0]||(u[0]=U("      ")),c("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:o}," + 添加配置 ")])]))}}),vP=je(bP,[["__file","Config.vue"]]),_P={class:"ce-config ce-list-config"},xP={class:"pure-form pure-form-aligned"},CP={class:"pure-control-group"},kP={class:"pure-control-group"},$P={class:"pure-control-group"},SP={class:"pure-control-group"},EP={class:"pure-control-group"},AP={class:"pure-control-group"},PP={class:"pure-control-group"},IP={class:"pure-control-group"},TP={class:"pure-control-group"},OP={class:"pure-control-group"},MP={class:"pure-control-group"},LP={class:"pure-control-group"},DP={class:"pure-control-group"},BP=De({__name:"Config",async setup(e){let t,n;const s=ie(([t,n]=Xt(()=>Qr()),t=await t,n(),t));return It(async()=>{}),mt(s,vt(async i=>{await t_(i),re({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:ht.listConfigChange,body:JSON.parse(JSON.stringify(i))});},500),{deep:!0}),(i,o)=>(E(),I("div",_P,[c("form",xP,[c("fieldset",null,[c("div",CP,[o[14]||(o[14]=c("label",{for:"showOpenDirContextMenu"},'显示"目录功能菜单"按钮',-1)),oe(c("input",{id:"showOpenDirContextMenu",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=r=>s.value.showOpenDirContextMenu=r)},null,512),[[Fe,s.value.showOpenDirContextMenu]]),o[15]||(o[15]=U("    ")),c("small",{onClick:o[1]||(o[1]=r=>s.value.hoverShowDirContextMenu=!s.value.hoverShowDirContextMenu),class:ze(["ce-label",{"ce-label-success":s.value.hoverShowDirContextMenu}]),title:"鼠标悬浮在按钮代替点击操作"},Y(s.value.hoverShowDirContextMenu?"✓ 鼠标悬浮触发(已启用)":"× 鼠标悬浮触发(未启用)"),3),o[16]||(o[16]=c("div",{class:"pure-form-message text-success"},[c("div",null,"在官方的「文件名」列头部增加「目录功能菜单」按钮,点击即可打开当前目录的右键菜单。")],-1))]),c("div",kP,[o[17]||(o[17]=c("label",{for:"sizeSorter"},"大小排序",-1)),oe(c("input",{id:"sizeSorter",type:"checkbox","onUpdate:modelValue":o[2]||(o[2]=r=>s.value.sizeSorter=r)},null,512),[[Fe,s.value.sizeSorter]]),o[18]||(o[18]=c("div",{class:"pure-form-message text-success"},[c("div",null,"在官方的「大小」列头部增加「排序」按钮,可以获取文件夹的大小,然后进行排序。"),c("div",null,"请注意该功能只会对当前加载的文件进行排序,如果有多页文件并需要对全部文件进行排序,请先点击「加载全部」后再使用该排序功能。")],-1))]),c("div",$P,[o[19]||(o[19]=c("label",{for:"showSha1"},"显示文件SHA1",-1)),oe(c("input",{id:"showSha1",type:"checkbox","onUpdate:modelValue":o[3]||(o[3]=r=>s.value.showSha1=r)},null,512),[[Fe,s.value.showSha1]]),o[20]||(o[20]=c("div",{class:"pure-form-message text-success"}," 在文件名下方显示文件SHA1,点击可以复制。 ",-1))]),c("div",SP,[o[21]||(o[21]=c("label",{for:"showFolderSizeButton"},"显示文件夹获取大小按钮",-1)),oe(c("input",{id:"showFolderSizeButton",type:"checkbox","onUpdate:modelValue":o[4]||(o[4]=r=>s.value.showFolderSizeButton=r)},null,512),[[Fe,s.value.showFolderSizeButton]]),o[22]||(o[22]=c("div",{class:"pure-form-message text-success"}," 点击按钮可以获取单个文件夹的大小。 ",-1))]),c("div",EP,[o[23]||(o[23]=c("label",{for:"showCopyButtonOnPathBar"},"在路径栏显示复制按钮",-1)),oe(c("input",{id:"showCopyButtonOnPathBar",type:"checkbox","onUpdate:modelValue":o[5]||(o[5]=r=>s.value.showCopyButtonOnPathBar=r)},null,512),[[Fe,s.value.showCopyButtonOnPathBar]]),o[24]||(o[24]=c("div",{class:"pure-form-message text-success"}," 点击后,复制当前路径到剪贴板。 ",-1))]),c("div",AP,[o[25]||(o[25]=c("label",{for:"showGotoButtonOnPathBar"},[U(" 在路径栏显示前往按钮 "),c("small",{class:"ce-label"},"DEV")],-1)),oe(c("input",{id:"showGotoButtonOnPathBar",type:"checkbox","onUpdate:modelValue":o[6]||(o[6]=r=>s.value.showGotoButtonOnPathBar=r)},null,512),[[Fe,s.value.showGotoButtonOnPathBar]]),o[26]||(o[26]=c("div",{class:"pure-form-message text-success"}," 点击后,路径栏下方会显示路径输入框,输入路径后按回车即可前往该路径。 ",-1))]),c("div",PP,[o[27]||(o[27]=c("label",{for:"noUpdateDirAfterRename"}," 重命名后不刷新文件列表 ",-1)),oe(c("input",{id:"noUpdateDirAfterRename",type:"checkbox","onUpdate:modelValue":o[7]||(o[7]=r=>s.value.noUpdateDirAfterRename=r)},null,512),[[Fe,s.value.noUpdateDirAfterRename]]),o[28]||(o[28]=c("div",{class:"pure-form-message text-success"}," 仅支持单个文件或目录的重命名。在使用当前目录增强菜单项「重命名文件夹」时会忽略该选项。 ",-1))]),c("div",IP,[o[29]||(o[29]=c("label",{for:"noUpdateDirAfterMove"}," 移动后不刷新文件列表 ",-1)),oe(c("input",{id:"noUpdateDirAfterMove",type:"checkbox","onUpdate:modelValue":o[8]||(o[8]=r=>s.value.noReloadAfterMove=r)},null,512),[[Fe,s.value.noReloadAfterMove]]),o[30]||(o[30]=c("div",{class:"pure-form-message text-success text-linethrough"},[c("b",null,"启用后如果进行了移动操作,列表的全选会受影响,如已选数量不准确。"),c("br"),c("b",{class:"text-danger"},"该功能主要目的是持续高效地在进行移动操作,如果在移动后还需要其他操作,请记得手动刷新列表!")],-1))])]),c("fieldset",null,[c("div",TP,[o[32]||(o[32]=c("label",{for:"fileSelectorDefaultView"},"文件选择器默认视图",-1)),oe(c("select",{id:"fileSelectorDefaultView","onUpdate:modelValue":o[9]||(o[9]=r=>s.value.fileSelectorDefaultView=r)},o[31]||(o[31]=[c("option",{value:"view"},"大图标",-1),c("option",{value:"list"},"列表",-1),c("option",{value:"_"},"系统默认",-1)]),512),[[un,s.value.fileSelectorDefaultView]]),o[33]||(o[33]=c("div",{class:"pure-form-message text-success"},[c("div",null,"设置打开页面后初次使用的视图。"),c("div",{class:"text-warning"},"如果在刷新页面前在选择器切换到了其他视图,该选项将不会生效,但刷新页面后会恢复。")],-1))])]),c("fieldset",null,[c("div",OP,[o[34]||(o[34]=c("label",{for:"followHistoryState"},[U(" 文件列表跟随页面前进后退 "),c("small",{class:"ce-label ce-label-warning"},"BETA")],-1)),oe(c("input",{id:"showOnlyFileFilter",type:"checkbox","onUpdate:modelValue":o[10]||(o[10]=r=>s.value.followHistoryState=r)},null,512),[[Fe,s.value.followHistoryState]])]),o[35]||(o[35]=c("div",{class:"pure-form-message text-success"},[c("div",{class:"text-success"}," 默认情况下,点击浏览器的前进或后退,页面链接中的目录ID虽然会发生变化,但文件列表并没有随之更新。 这个功能尝试解决这个问题,请注意,这是一个测试功能。 ")],-1))]),c("fieldset",null,[c("div",MP,[o[36]||(o[36]=c("label",{for:"dragToQuickEntry"}," 支持拖动文件到快捷入口 ",-1)),oe(c("input",{id:"dragToQuickEntry",type:"checkbox","onUpdate:modelValue":o[11]||(o[11]=r=>s.value.dragToQuickEntry=r)},null,512),[[Fe,s.value.dragToQuickEntry]]),o[37]||(o[37]=c("div",{class:"pure-form-message text-success"},[U(" 可以从文件列表拖动文件到快捷入口,实现移动操作。 "),c("b",{class:"text-danger"},"多选文件时,顶部菜单会遮挡快捷入口,可按`ctrl`键临时隐藏顶部菜单。")],-1))])]),c("fieldset",null,[c("div",LP,[o[38]||(o[38]=c("label",{for:"viewableImageSuffixes"},[U(" 支持webp图片预览 "),c("small",{class:"ce-label ce-label-warning"},"BETA")],-1)),oe(c("input",{id:"viewableImageSuffixes",type:"checkbox","onUpdate:modelValue":o[12]||(o[12]=r=>s.value.makeMoreImageViewable=r)},null,512),[[Fe,s.value.makeMoreImageViewable]])])]),c("fieldset",null,[c("div",DP,[o[39]||(o[39]=c("label",{for:"showOnlyFileFilter"},[U(" 显示「仅文件」筛选 "),c("small",{class:"ce-label"},"DEV")],-1)),oe(c("input",{id:"showOnlyFileFilter",type:"checkbox","onUpdate:modelValue":o[13]||(o[13]=r=>s.value.showOnlyFileFilter=r)},null,512),[[Fe,s.value.showOnlyFileFilter]])])])])]))}}),RP=je(BP,[["__file","Config.vue"]]),Sm=yt.search;function NP(e){return {showSelectTargetButtonOnPathBar:!0,showSelectAllDir:!1,resultWidth:"",...e}}async function Em(){const e=NP(),t=await lt.get(Sm,e);return {...e,...t}}async function FP(e){await lt.set(Sm,e);}const UP={class:"ce-config ce-search-config"},jP={class:"pure-form pure-form-aligned"},HP={class:"pure-control-group"},zP={class:"pure-control-group"},qP={class:"pure-control-group"},VP=De({__name:"Config",async setup(e){let t,n;const s=ie(([t,n]=Xt(()=>Em()),t=await t,n(),t));return It(async()=>{}),mt(s,vt(async i=>{await FP(i),re({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:ht.searchConfigChange,body:JSON.parse(JSON.stringify(i))});},500),{deep:!0}),(i,o)=>(E(),I("div",UP,[c("form",jP,[c("fieldset",null,[c("div",HP,[o[3]||(o[3]=c("label",{for:"showSelectTargetButtonOnPathBar"},'显示"选择目录"按钮',-1)),oe(c("input",{id:"showSelectTargetButtonOnPathBar",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=r=>s.value.showSelectTargetButtonOnPathBar=r)},null,512),[[Fe,s.value.showSelectTargetButtonOnPathBar]]),o[4]||(o[4]=c("div",{class:"pure-form-message text-success"},' 在路径栏显示"选择目录"按钮。即可以在搜索结果页直接选择其他目录进行搜索,而不必返回列表页进入目录后再搜索。 ',-1))]),c("div",zP,[o[5]||(o[5]=c("label",{for:"showSelectAllDir"},'显示"选中全部文件夹"按钮',-1)),oe(c("input",{id:"showSelectAllDir",type:"checkbox","onUpdate:modelValue":o[1]||(o[1]=r=>s.value.showSelectAllDir=r)},null,512),[[Fe,s.value.showSelectAllDir]]),o[6]||(o[6]=c("div",{class:"pure-form-message text-success"},' 在搜索结果文件列表顶部显示"选中全部文件夹"按钮。 ',-1))]),c("div",qP,[o[7]||(o[7]=c("label",{for:"resultWidth"},"搜索结果宽度",-1)),oe(c("input",{id:"resultWidth",class:"input-small","onUpdate:modelValue":o[2]||(o[2]=r=>s.value.resultWidth=r)},null,512),[[Ge,s.value.resultWidth]]),o[8]||(o[8]=c("div",{class:"pure-form-message text-success"},[U(" 默认为空。支持 1000px、100%、90vw 等有效的 "),c("a",{href:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/width",target:"_blank",rel:"noreferrer noopener"},"css width数值 🔗"),U("。 ")],-1))])])])]))}}),WP=je(VP,[["__file","Config.vue"]]);async function KP(e){const t=`https://qrcodeapi.115.com/api/1.0/${e}/1.0/token/`;return (await fetch(t)).json()}const GP={0:"等待扫码",1:"已扫码",2:"登录成功",[-1]:"已失效",[-2]:"已取消"};let Il=new AbortController;async function JP(){Il.abort();}async function YP(e){const t=new URLSearchParams;t.append("uid",e.uid),t.append("time",e.time.toString()),t.append("sign",e.sign);const n="https://qrcodeapi.115.com/get/status/?"+t.toString();return Il=new AbortController,(await fetch(n,{signal:Il.signal})).json()}function QP(e){return {domain:"",hostOnly:!1,httpOnly:!0,name:"",path:"",sameSite:"",secure:!1,session:!1,storeId:"0",value:"",id:0,...e}}async function XP(e){let t=`UID=${e.UID}; CID=${e.CID}; SEID=${e.SEID}`;return e.KID&&(t+=`; KID=${e.KID}`),t}async function ZP(e,t=[]){const n=[],s=Object.keys(e);let i=["115.com",...t];i=[...new Set(i)];const o={hostOnly:!1,httpOnly:!0,path:"/",sameSite:"unspecified",secure:!1,session:!1,storeId:"0"};let r=1;for(let a=0;a<s.length;a++){const l=s[a],u=[];for(const d of i)u.push(QP({...o,name:l,value:e[l],domain:d,id:r++}));n.push(...u);}return n}function eI(e){const{errno:t,error:n}=e;return `错误码: ${t}, 错误信息: ${n}`}async function tI(e,t){const n=new FormData;n.append("app",t),n.append("account",e);const s=`https://passportapi.115.com/app/1.0/${t}/1.0/login/qrcode/`;return (await fetch(s,{method:"POST",body:n})).json()}async function nI(e,t){const n=`https://qrcodeapi.115.com/api/1.0/web/1.0/qrcode?uid=${t}`;return (await fetch(n)).blob()}var Tu=(e=>(e.web="web",e.android="android",e._115android="115android",e.ios="ios",e._115ipad="115ipad",e.tv="tv",e.alipaymini="alipaymini",e.wechatmini="wechatmini",e.qandroid="qandroid",e._115ios="115ios",e.harmony="harmony",e.ipad="ipad",e.qios="qios",e.qipad="qipad",e.linux="linux",e.mac="mac",e.windows="windows",e))(Tu||{});const sI={web:"网页版",android:"115生活(Android端)","115android":"115(Android端)",ios:"115生活(iOS端)","115ipad":"115(iPad端)",tv:"115网盘(Android电视端)",alipaymini:"115生活(支付宝小程序)",wechatmini:"115生活(微信小程序)",qandroid:"115管理(Android端)","115ios":"115(iOS端)",harmony:"115(Harmony端) - 不能上传下载"};async function oI(e,t){return new Promise((n,s)=>{const i=new FileReader;i.onloadend=()=>{if(typeof i.result=="string"){if(t instanceof HTMLImageElement)t.src=i.result;else {const o=document.createElement("img");o.src=i.result,t.appendChild(o);}n();}else console.error("[renderQrcode]","reader.result is not string!"),s("reader.result is not string!");},i.onerror=o=>{console.error("[renderQrcode]",o),s(o);},i.readAsDataURL(e);})}async function iI(e){document.addEventListener("qrcodeStatusChange",t=>{const n=t.detail;e(n);});}async function rI(e){const t=new CustomEvent("qrcodeStatusChange",{detail:e});document.dispatchEvent(t);}async function aI(e,t,n=6e4){return new Promise(async(s,i)=>{console.log("[qrcodeLogin]",e,t,n);const o=await KP(e),r=await nI(e,o.data.uid);await oI(r,t);let a=!0,l=setTimeout(()=>{a=!1,i("[qrcode login] timeout!");},n),u="";for(;a;)try{const h=(await YP(o.data)).data.status;if(rI(h),h===0)console.log(`[qrcode login] status=${h} - waiting.`);else if(h===1)console.log(`[qrcode login] status=${h} - scanned.`);else if(h===2){console.log(`[qrcode login] status=${h} - signed.`);break}else if(h===-1){clearTimeout(l),u=`[qrcode login] status=${h} - expired.`;break}else if(h===-2){clearTimeout(l),u=`[qrcode login] status=${h} - canceled.`;break}}catch(d){console.error("[qrcode login]",d),u=d;break}clearTimeout(l),u?i(u):s(tI(o.data.uid,e));})}const Am=yt.tools;function lI(e){return {scanApp:Tu.alipaymini,...e}}async function uI(){const e=lI(),t=await lt.get(Am,e);return {...e,...t}}async function cI(e){await lt.set(Am,e);}const dI={class:"ce-tools-item"},fI={class:"pure-form pure-form-aligned"},pI={class:"pure-control-group"},hI=["disabled"],mI=["value"],gI=["disabled"],yI={key:0,class:"text-warning text-bold"},wI={key:1},bI={class:"pure-control-group"},vI=6e4,_I=De({__name:"GetCookie",props:{app:{}},emits:["app-change"],setup(e,{emit:t}){const n=e,s=t,i=ie(n.app),o=ie(!1),r=ie(!1),a=ie(!1),l=ie(),u=ie(),d=it(()=>u.value?GP[u.value]:""),h=it(()=>{const F=[Tu.harmony],O={};for(const[D,j]of Object.entries(sI))F.includes(D)||(O[D]=j);return O});mt(i,F=>{s("app-change",F),v();}),It(async()=>{}),Wt(async()=>{await iI(_);});async function g(){await v();try{const F=document.querySelector("#ceGetCookieQrcode"),O=await aI(i.value,F,vI);let D="";if(O.data?l.value=O.data:D=eI(O)||"未知错误",D)throw new Error(D)}catch(F){if(console.error(F),F.name==="AbortError")return;me.fire({icon:"error",title:"扫码失败",text:typeof F=="string"?F:F.toString()});}finally{o.value=!1,r.value=!1,u.value=void 0;}}async function v(){l.value=void 0,r.value=!1,a.value=!1,o.value=!1,u.value=void 0,await L();}async function b(){r.value=!0;}async function _(F){console.log("[handleStatusChange]",F),u.value=F;}async function B(F){var j;const O=(j=l.value)==null?void 0:j.cookie;if(!O)return;let D="";if(F==="text")D=await XP(O);else if(F==="json"){const H=await ZP(O);D=JSON.stringify(H,null,2);}qt(D),Ko.fire({icon:"success",title:"已复制到剪贴板",timer:1500});}async function L(){await JP();}return (F,O)=>(E(),I("div",dI,[c("form",fI,[c("fieldset",null,[O[7]||(O[7]=c("legend",null,"扫码获取Cookie",-1)),c("div",pI,[oe(c("select",{"onUpdate:modelValue":O[0]||(O[0]=D=>i.value=D),disabled:o.value},[(E(!0),I(Oe,null,Je(h.value,(D,j)=>(E(),I("option",{value:j,key:j},Y(D),9,mI))),128))],8,hI),[[un,i.value]]),O[5]||(O[5]=U("    ")),c("button",{type:"button",class:"pure-button pure-button-primary",onClick:g,disabled:o.value}," 开始 ",8,gI),O[6]||(O[6]=U("    ")),d.value?(E(),I("span",yI,Y(d.value),1)):we("",!0),l.value?(E(),I("span",wI,[O[3]||(O[3]=U("      ")),c("button",{type:"button",class:"pure-button button-success",onClick:O[1]||(O[1]=D=>B("text"))}," 复制文本格式Cookie "),O[4]||(O[4]=U("    ")),c("button",{type:"button",class:"pure-button button-success",onClick:O[2]||(O[2]=D=>B("json"))}," 复制JSON格式Cookie ")])):we("",!0)]),O[8]||(O[8]=c("div",{class:"text-danger"},"扫码登录后,所选设备之前的登录将会失效,所以请尽量选不常用的。",-1)),O[9]||(O[9]=c("div",{class:"text-primary"},"请注意,扫码得到的Cookie会跟随发起扫码的设备,如果发起扫码的设备退出登录,扫码得到的Cookie也会随之失效。",-1)),O[10]||(O[10]=c("div",{class:"text-success"},"如要避免上述问题,可以考虑使用手机验证码登录小程序并获取其Cookie。",-1)),oe(c("div",bI,[c("img",{id:"ceGetCookieQrcode",alt:"qrcode",onLoad:b},null,32)],512),[[jt,r.value]])])])]))}}),xI=je(_I,[["__file","GetCookie.vue"]]),CI={class:"ce-tools-item"},kI={class:"pure-form pure-form-aligned"},$I={class:"pure-control-group"},SI={class:"pure-control-group"},EI=De({__name:"Cleaner",setup(e){async function t(s,i){s&&(await n(),await ln(1e3)),window.postMessage({event:ht.closeConfig}),postMessage({type:i==="FileCleaner"?Ht.OPEN_CLEANER:Ht.OPEN_EMPTY_CLEANER});}async function n(){return new Promise(async(s,i)=>{unsafeWindow.parent.Core.FileSelectDG.Open((o,r)=>{console.log("[Core.FileSelectDG.Open]",o,r);const a=o[o.length-1],l=unsafeWindow.parent.wangpan;try{l.Main.GotoDir(1,a.cid,0,""),s();}catch(u){me.fire({icon:"error",title:"打开文件夹失败",text:`请在文件列表页面中打开!不要在离线任务之类的页面打开。异常: ${u.toString()}`});}},{select:1,nf:1,show_record:0,show_copy:1,btn_txt:"打开清理工具",select_txt:"清理"});})}return (s,i)=>(E(),I("div",CI,[c("form",kI,[c("fieldset",null,[i[8]||(i[8]=c("legend",null,"文件清理",-1)),c("div",$I,[i[4]||(i[4]=c("div",{class:"ce-tips"},"根据后缀、大小和名称等条件进行文件清理。请在「网盘」页中点击以下按钮。",-1)),c("button",{type:"button",class:"pure-button button-success",onClick:i[0]||(i[0]=o=>t(!1,"FileCleaner"))}," 清理当前文件夹 "),i[5]||(i[5]=U("      ")),c("button",{type:"button",class:"pure-button button-success",onClick:i[1]||(i[1]=o=>t(!0,"FileCleaner"))}," 清理指定文件夹 ")]),i[9]||(i[9]=c("br",null,null,-1)),c("div",SI,[i[6]||(i[6]=c("div",{class:"ce-tips"},"尽快找到空文件夹进行清理。请在「网盘」页中点击以下按钮。",-1)),c("button",{type:"button",class:"pure-button button-warning",onClick:i[2]||(i[2]=o=>t(!1,"EmptyCleaner"))}," 清理当前文件夹下的空文件夹 "),i[7]||(i[7]=U("      ")),c("button",{type:"button",class:"pure-button button-warning",onClick:i[3]||(i[3]=o=>t(!0,"EmptyCleaner"))}," 清理指定文件夹下的空文件夹 ")])])])]))}}),AI=je(EI,[["__file","Cleaner.vue"]]),PI={class:"ce-config ce-tools-config"},II={class:"item"},TI=De({__name:"Config",async setup(e){let t,n;const s=ie(([t,n]=Xt(()=>uI()),t=await t,n(),t));It(async()=>{}),mt(s,vt(async o=>{await cI(o),window.postMessage({event:ht.toolsConfigChange,body:JSON.parse(JSON.stringify(o))});},100),{deep:!0});async function i(o){s.value.scanApp=o;}return (o,r)=>(E(),I("div",PI,[c("div",II,[ye(xI,{app:s.value.scanApp,onAppChange:i},null,8,["app"]),ye(AI)])]))}}),OI=je(TI,[["__file","Config.vue"]]),MI={class:"menu-config-block menu-basic-config"},LI={class:"pure-form pure-form-stacked"},DI={class:"pure-control-group"},BI={class:"pure-control-group"},RI={class:"pure-control-group"},NI={class:"pure-control-group"},FI={class:"pure-control-group"},UI=["value"],jI={class:"pure-control-group"},HI=De({__name:"BasicConfig",props:{config:{}},setup(e){const t=e;async function n(i){const r={keyToTriggerManual:"在按下该按键时点击菜单项,会触发手动输入模式,此时会打开一个输入框,修改文本后,点击「确定」或按下Ctrl+Enter,即可继续完成菜单项的操作。",m3u8TempDir:"「M3U8临时目录」用于临时存放生成的m3u8文件。在选中多个视频文件后,在顶部菜单栏会有一个「播放」菜单项,点击后会生成对应的m3u8文件,然后调用播放器播放这个m3u8以实现播放多个视频的效果。"}[i];r&&me.fire({html:r});}function s(i){console.log("[onSelectM3U8Dir]",i),t.config.m3u8TempDir=i.items[i.items.length-1].path.slice(1).map(o=>o.name).join("/");}return (i,o)=>(E(),I("div",MI,[c("form",LI,[c("fieldset",null,[o[15]||(o[15]=c("legend",null,"全局设置",-1)),c("div",DI,[o[8]||(o[8]=c("label",{for:"basic_enabled"},"启用",-1)),oe(c("input",{id:"basic_enabled",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=r=>t.config.enabled=r)},null,512),[[Fe,t.config.enabled]])]),c("div",BI,[o[9]||(o[9]=c("label",{for:"basic_hideSelectionMenuLabel"},"隐藏顶部菜单文本",-1)),oe(c("input",{id:"basic_hideSelectionMenuLabel",type:"checkbox","onUpdate:modelValue":o[1]||(o[1]=r=>t.config.hideSelectionMenuLabel=r)},null,512),[[Fe,t.config.hideSelectionMenuLabel]])]),c("div",RI,[o[10]||(o[10]=c("label",{for:"basic_enableInSearch"},"在搜索结果页中启用",-1)),oe(c("input",{id:"basic_enableInSearch",type:"checkbox","onUpdate:modelValue":o[2]||(o[2]=r=>t.config.enableInSearch=r)},null,512),[[Fe,t.config.enableInSearch]])]),c("div",NI,[o[11]||(o[11]=c("label",{for:"basic_manageOfficialMenus"},"控制官方菜单",-1)),oe(c("input",{id:"basic_manageOfficialMenus",type:"checkbox","onUpdate:modelValue":o[3]||(o[3]=r=>t.config.manageOfficialMenus=r)},null,512),[[Fe,t.config.manageOfficialMenus]])]),c("div",FI,[o[12]||(o[12]=c("label",{for:"basic_forceManualBeforeOpenOnKey"},"强制使用手动输入模式的辅助键",-1)),c("span",{class:"ce-label ce-label-success ce-config-help",onClick:o[4]||(o[4]=r=>n("keyToTriggerManual"))},"说明"),oe(c("select",{id:"basic_forceManualBeforeOpenOnKey","onUpdate:modelValue":o[5]||(o[5]=r=>t.config.keyToTriggerManual=r)},[(E(!0),I(Oe,null,Je(pe(Mn),(r,a)=>(E(),I("option",{key:a,value:a},Y(r),9,UI))),128))],512),[[un,t.config.keyToTriggerManual]])]),c("div",jI,[o[14]||(o[14]=c("label",{for:"basic_m3u8TempDirName"},"M3U8临时目录",-1)),c("span",{class:"ce-label ce-label-success ce-config-help",onClick:o[6]||(o[6]=r=>n("m3u8TempDir"))},"说明"),oe(c("input",{id:"basic_m3u8TempDirName","onUpdate:modelValue":o[7]||(o[7]=r=>t.config.m3u8TempDir=r)},null,512),[[Ge,t.config.m3u8TempDir]]),ye(yi,{purpose:"作为M3U8临时目录",onSelect:s},{default:Re(()=>o[13]||(o[13]=[c("a",{class:"text-primary",href:"javascript:void(0)"},"选择目录",-1)])),_:1})])])])]))}}),zI=je(HI,[["__file","BasicConfig.vue"]]);var Qe=(e=>(e.input="text",e.number="number",e.password="password",e.textarea="textarea",e.checkbox="checkbox",e.select="select",e.radio="radio",e.date="date",e))(Qe||{});const qI={class:"ce-field"},VI=["for"],WI={class:"ce-field-extra ce-field-prefix"},KI=["type","id","name","required","placeholder"],GI=["id","name","required","placeholder"],JI=["value"],YI={key:2},QI=["value","required"],XI=["id","name","required"],ZI={key:3},eT=["value","required"],tT=["id","name","required"],nT={class:"ce-field-extra ce-field-suffix"},sT=De({__name:"CeField",props:{field:{},value:{}},emits:["update:value"],setup(e,{emit:t}){const n=t,i=ie(e.value);return mt(i,(o,r)=>{n("update:value",o);}),(o,r)=>(E(),I("div",qI,[c("label",{for:o.field.name},Y(o.field.label),9,VI),c("span",WI,[nt(o.$slots,"prefix")]),!o.field.type||o.field.type===pe(Qe).input||o.field.type===pe(Qe).number?oe((E(),I("input",{key:0,type:o.field.type,id:o.field.name,name:o.field.name,"onUpdate:modelValue":r[0]||(r[0]=a=>i.value=a),required:o.field.required,placeholder:o.field.placeholder},null,8,KI)),[[N0,i.value]]):o.field.type===pe(Qe).select?oe((E(),I("select",{key:1,id:o.field.name,name:o.field.name,"onUpdate:modelValue":r[1]||(r[1]=a=>i.value=a),required:o.field.required,placeholder:o.field.placeholder},[(E(!0),I(Oe,null,Je(o.field.options,(a,l)=>(E(),I("option",{key:l,value:a.value},Y(a.label),9,JI))),128))],8,GI)),[[un,i.value]]):o.field.type===pe(Qe).checkbox?(E(),I("span",YI,[o.field.options&&o.field.options.length>0?(E(!0),I(Oe,{key:0},Je(o.field.options,(a,l)=>(E(),I("label",{key:l},[oe(c("input",{type:"checkbox",value:a.value,"onUpdate:modelValue":r[2]||(r[2]=u=>i.value=u),required:o.field.required},null,8,QI),[[Fe,i.value]]),U(" "+Y(a.label),1)]))),128)):oe((E(),I("input",{key:1,type:"checkbox",id:o.field.name,name:o.field.name,"onUpdate:modelValue":r[3]||(r[3]=a=>i.value=a),required:o.field.required},null,8,XI)),[[Fe,i.value]])])):o.field.type===pe(Qe).radio?(E(),I("span",ZI,[(E(!0),I(Oe,null,Je(o.field.options,(a,l)=>(E(),I("label",{key:l},[oe(c("input",{type:"radio",value:a.value,"onUpdate:modelValue":r[4]||(r[4]=u=>i.value=u),required:o.field.required},null,8,eT),[[Qp,i.value]]),U(" "+Y(a.label),1)]))),128))])):o.field.type===pe(Qe).date?oe((E(),I("input",{key:4,type:"date",id:o.field.name,name:o.field.name,"onUpdate:modelValue":r[5]||(r[5]=a=>i.value=a),required:o.field.required},null,8,tT)),[[Ge,i.value]]):we("",!0),c("span",nT,[nt(o.$slots,"suffix")])]))}}),oT=je(sT,[["__file","CeField.vue"]]),iT={class:"ce-form pure-form pure-form-stacked"},rT=De({__name:"CeForm",props:{config:{},data:{}},emits:["update:value"],setup(e,{emit:t}){const n=t,s=e,i=(o,r)=>{n("update:value",{...s.data,[o]:r});};return (o,r)=>(E(),I("div",iT,[c("fieldset",null,[c("legend",null,[nt(o.$slots,"header",{},()=>[U(Y(o.config.label),1)])]),(E(!0),I(Oe,null,Je(o.config.fields,a=>nt(o.$slots,a.name,{key:a.name,data:a},()=>[ye(oT,{field:a,value:o.data[a.name],"onUpdate:value":l=>i(a.name,l)},{prefix:Re(()=>[nt(o.$slots,`${a.name}prefix`,{data:a})]),suffix:Re(()=>[nt(o.$slots,`${a.name}suffix`,{data:a})]),_:2},1032,["field","value","onUpdate:value"])])),128)),nt(o.$slots,"footer")])]))}}),ca=je(rT,[["__file","CeForm.vue"]]),aT={class:"menu-config-block"},lT=De({__name:"ListItemHoverConfig",props:{config:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t,i=ie([{label:"启用",name:"enabled",type:Qe.checkbox},{label:"新标签页打开",name:"openInNewTab",type:Qe.checkbox},{label:"搜索",name:"search",type:Qe.checkbox},{label:"播放",name:"play",type:Qe.checkbox},{label:"名称路径",name:"copyNames",type:Qe.checkbox},{label:"导出列表数据",name:"exportList",type:Qe.checkbox},{label:"在CloudDrive中查看",name:"viewInCloudDrive",type:Qe.checkbox}]),o=ie({label:go.listItemHover,fields:i.value}),r=a=>{s("update:value",{...n.config,...a});};return (a,l)=>(E(),I("div",aT,[c("div",null,[ye(ca,{data:a.config,config:o.value,"onUpdate:value":r},null,8,["data","config"])])]))}}),uT=je(lT,[["__file","ListItemHoverConfig.vue"]]),cT={class:"menu-config-block"},dT=De({__name:"ListItemContextConfig",props:{config:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t,i=ie([{label:"启用",name:"enabled",type:Qe.checkbox},{label:"名称路径",name:"copyNames",type:Qe.checkbox},{label:"在CloudDrive中查看",name:"viewInCloudDrive",type:Qe.checkbox}]),o=ie({label:go.listItemHover,fields:i.value}),r=a=>{s("update:value",{...n.config,...a});};return (a,l)=>(E(),I("div",cT,[c("div",null,[ye(ca,{data:a.config,config:o.value,"onUpdate:value":r},null,8,["data","config"])])]))}}),fT=je(dT,[["__file","ListItemContextConfig.vue"]]),pT={class:"menu-config-block"},hT=De({__name:"SelectionConfig",props:{config:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t,i=ie([{label:"启用",name:"enabled",type:Qe.checkbox},{label:"移动到同名目录",name:"moveToSelfNameDir",type:Qe.checkbox},{label:"名称路径",name:"copyNames",type:Qe.checkbox},{label:"播放",name:"play",type:Qe.checkbox}]),o=ie({label:go.listItemHover,fields:i.value}),r=a=>{s("update:value",{...n.config,...a});};return (a,l)=>(E(),I("div",pT,[c("div",null,[ye(ca,{data:a.config,config:o.value,"onUpdate:value":r},null,8,["data","config"])])]))}}),mT=je(hT,[["__file","SelectionConfig.vue"]]),gT={class:"menu-config-block"},yT=["onClick"],wT=De({__name:"DirContextConfig",props:{config:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t,i=ie([{label:"启用",name:"enabled",type:Qe.checkbox},{label:"重命名",name:"rename",type:Qe.checkbox},{label:"删除",name:"delete",type:Qe.checkbox},{label:"播放全部",name:"play",type:Qe.checkbox},{label:"名称路径",name:"copyNames",type:Qe.checkbox},{label:"移动",name:"move",type:Qe.checkbox},{label:"复制",name:"copy",type:Qe.checkbox},{label:"复制到",name:"copyTo",type:Qe.checkbox},{label:"查看属性",name:"viewProp",type:Qe.checkbox},{label:"子文件夹大小",name:"showSubFolderSize",type:Qe.checkbox},{label:"导出列表数据",name:"exportList",type:Qe.checkbox},{label:"在CloudDrive中查看",name:"viewInCloudDrive",type:Qe.checkbox}]),o=ie({label:go.dirContext,fields:i.value}),r=it(()=>{const h=["enabled","play","copyNames"];return Object.keys(n.config).filter(g=>!h.includes(g))}),a=it(()=>{const h=[];for(const g of Object.keys(n.config))h.push({name:g,prefix:`${g}prefix`,suffix:`${g}suffix`});return h}),l=h=>{s("update:value",{...n.config,...h});},u=h=>{n.config.topLevelMenus.includes(h.name)?n.config.topLevelMenus=n.config.topLevelMenus.filter(g=>g!==h.name):n.config.topLevelMenus.push(h.name);};async function d(){me.fire({html:`<b>当前目录右键菜单的打开方式:</b>
    <br>1. 右键单击文件列表表头;
    <br>2. 右键单击文件列表空白处;
    <br>3.「文件名」列头部增加「目录功能菜单」按钮。
    <hr class="ce-hr">
    <b>菜单显示层级:</b>
    <br>1.「播放全部」和「名称路径」强制显示为一级菜单;
    <br>2. 其他菜单可以通过点击 👁 图标设置是否显示为一级菜单。
  `,customClass:"ce-swal-text-left"});}return (h,g)=>(E(),I("div",gT,[c("div",null,[ye(ca,{data:h.config,config:o.value,"onUpdate:value":l},$1({header:Re(()=>[U(Y(pe(go).dirContext)+" ",1),c("span",{class:"ce-label ce-label-success ce-config-help",onClick:d},"说明")]),_:2},[Je(a.value,v=>({name:v.suffix,fn:Re(({data:b})=>[r.value.includes(b.name)?(E(),I("span",{key:0,class:ze(["btn-toggle-top",{active:h.config.topLevelMenus.includes(b.name)}]),onClick:_=>u(b),title:"点亮表示显示为一级菜单,否则将显示在「更多」菜单中"},"👁",10,yT)):we("",!0)])}))]),1032,["data","config"])])]))}}),bT=je(wT,[["__file","DirContextConfig.vue"]]),vT={class:"official-menu-config"},_T={class:"pure-form pure-form-stacked"},xT=["onClick"],CT={class:"menu-key"},kT=["onClick"],$T=De({__name:"OfficialMenuConfig",setup(e){const t=ie([]),n=ie(!1);It(async()=>{t.value=await ih(),console.log("official menu groups",t.value,location.href);}),Wt(()=>{document.body.addEventListener("click",()=>{n.value||(n.value=!0);});}),mt(t,vt(async o=>{if(!n.value)return;const r=await H_(o);await j_(r,!0),re({icon:"success",title:"官方菜单设置已保存,已生效。",timer:1e3,position:"top-end"});},500),{deep:!0});async function s(o){o.hidden=!o.hidden;}async function i(o){const{isConfirmed:r}=await me.fire({icon:"warning",html:`确认要重置分组「${o.label}」的隐藏状态吗?`,confirmButtonText:"确认",showDenyButton:!0,denyButtonText:"关闭"});r&&o.items.forEach(a=>{a.hidden=!1;});}return (o,r)=>(E(),I("div",vT,[r[0]||(r[0]=c("div",{class:"ce-tips"},[c("p",null,"开启「菜单设置 - 全局设置 - 控制官方菜单」后才会生效。"),c("p",{class:"text-primary"},"该功能仅支持隐藏菜单。点击「隐藏」后刷新页面生效,如需取消请点击「取消隐藏」。")],-1)),(E(!0),I(Oe,null,Je(t.value,(a,l)=>(E(),I("div",{key:l,class:"menu-config-block"},[c("form",_T,[c("fieldset",null,[c("legend",null,[U(Y(a.label)+" ",1),c("span",{class:"ce-label ce-label-warning",title:"取消该分组下全部的隐藏设置",onClick:u=>i(a)}," 重置 ",8,xT)]),(E(!0),I(Oe,null,Je(a.items,(u,d)=>(E(),I("div",{key:d,class:ze([{hidden:u.hidden},"menu-item"])},[c("label",null,[U(Y(u.label)+" ",1),c("small",CT,Y(u.key),1)]),c("span",{class:"ce-toggle",onClick:h=>s(u)},Y(u.hidden?"取消隐藏":"隐藏"),9,kT)],2))),128))])])]))),128))]))}}),ST=je($T,[["__file","OfficialMenuConfig.vue"]]),ET={key:0,class:"ce-menu-config"},AT=De({__name:"MenuConfig",async setup(e){let t,n;const s=ie(([t,n]=Xt(()=>yn()),t=await t,n(),t));return It(async()=>{}),mt(s,vt(async i=>{const o=await yn();i.defaultPlayer=o.defaultPlayer,await jf(i),re({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},500),{deep:!0}),(i,o)=>s.value.enabled!==void 0?(E(),I("div",ET,[o[5]||(o[5]=c("div",{class:"ce-tips"},[c("p",null,"「搜索」功能菜单支持自定义,可在「搜索菜单」设置面板中添加和管理。"),c("p",null,"「播放」功能菜单支持自定义,可在「播放菜单」设置面板中添加和管理。")],-1)),ye(zI,{config:s.value},null,8,["config"]),ye(uT,{config:s.value.listItemHover,"onUpdate:value":o[0]||(o[0]=r=>s.value.listItemHover=r)},null,8,["config"]),ye(fT,{config:s.value.listItemContext,"onUpdate:value":o[1]||(o[1]=r=>s.value.listItemContext=r)},null,8,["config"]),ye(mT,{config:s.value.selection,"onUpdate:value":o[2]||(o[2]=r=>s.value.selection=r)},null,8,["config"]),ye(bT,{config:s.value.dirContext,"onUpdate:value":o[3]||(o[3]=r=>s.value.dirContext=r)},null,8,["config"]),o[6]||(o[6]=c("hr",{class:"ce-hr"},null,-1)),c("div",null,[o[4]||(o[4]=c("h1",null,"官方菜单设置",-1)),c("div",null,[ye(ST)])])])):we("",!0)}}),PT=je(AT,[["__file","MenuConfig.vue"]]),IT={class:"ce-custom-url"},TT={class:"pure-form pure-form-aligned"},OT={class:"ce-custom-url-index"},MT={class:"pure-control-group"},LT={class:"pure-control-group"},DT={class:"pure-control-group"},BT={class:"pure-control-group"},RT={key:0,class:"item-icon"},NT=["src"],FT={class:"pure-control-group"},UT={class:"pure-control-group"},jT={class:"pure-control-group"},HT={key:0,class:"pure-control-group"},zT=De({__name:"CustomUrl",props:{item:{},index:{}},emits:["delete"],setup(e,{emit:t}){const n=ie(!0),s=t;function i(){s("delete");}async function o(){n.value=!n.value,n.value&&re({title:"已开启高级模式",text:"请谨慎修改,不正确的代码可能会导致脚本崩溃。",icon:"info",timer:2e3});}async function r(){window.postMessage({event:"customUrlHelp"},"*");}async function a(){await me.fire({title:"Mutation 说明",html:`
  <div style="text-align:left;">
    <p>自定义代码,用于生成最终的链接。</p><br>
    <p>代码会被包含在一个async匿名函数中执行,最终应该返回一个链接字符串。</p>
    <p>传入的参数名为「payload」,其结构如下:</p>
    <p>- url: 之前自动处理得到的链接</p>
    <p>- file:当前文件信息</p>
    <p>- customUrl:当前自定义规则信息</p>
    <p>- cloudDriveConfig:CloudDrive设置信息</p><br>
    <p>示例:</p>
    <pre style="text-align:left;font-size:12px;">
    const {
      url,
      file,
      customUrl,
      cloudDriveConfig
    } = payload
    const sth = await fetch(\`https://api.sth.com/foo?bar=\${file.pc}\`)
    return \`https://example.com/do?key=\${sth}\`
    </pre>
  </div>
  `,width:480,position:"top-start",backdrop:!1});}return (l,u)=>(E(),I("div",IT,[c("form",TT,[c("fieldset",null,[c("legend",null,[c("span",OT,"# "+Y(l.index+1),1),c("button",{type:"button",class:"pure-button button-error button-small",onClick:i}," 删除 ")]),c("div",MT,[u[8]||(u[8]=c("label",null,"启用",-1)),oe(c("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>l.item.enabled=d),type:"checkbox",id:"customUrl_enabled"},null,512),[[Fe,l.item.enabled]])]),c("div",LT,[u[9]||(u[9]=c("label",null,"唯一标识",-1)),oe(c("input",{"onUpdate:modelValue":u[1]||(u[1]=d=>l.item.key=d),id:"customUrl_key",class:"pure-input-2-3",placeholder:"英文、数字或下划线"},null,512),[[Ge,l.item.key]])]),c("div",DT,[u[10]||(u[10]=c("label",null,"显示名称",-1)),oe(c("input",{"onUpdate:modelValue":u[2]||(u[2]=d=>l.item.label=d),id:"customUrl_label",class:"pure-input-2-3",placeholder:"菜单文本,尽量简洁"},null,512),[[Ge,l.item.label]])]),c("div",BT,[u[11]||(u[11]=c("label",null,"图标",-1)),oe(c("input",{"onUpdate:modelValue":u[3]||(u[3]=d=>l.item.icon=d),id:"customUrl_icon",class:"pure-input-2-3",placeholder:"图标class、图片链接或图片data:image"},null,512),[[Ge,l.item.icon]]),u[12]||(u[12]=U("   ")),l.item.icon?(E(),I("span",RT,[c("img",{src:l.item.icon,referrerpolicy:"no-referrer",width:"25"},null,8,NT)])):we("",!0)]),c("div",FT,[c("label",{onDblclick:o}," 链接 ",32),oe(c("textarea",{"onUpdate:modelValue":u[4]||(u[4]=d=>l.item.url=d),id:"customUrl_url",class:"pure-input-2-3",placeholder:"链接地址,支持变量,变量列表请点击右侧「查看变量」"},null,512),[[Ge,l.item.url]]),u[13]||(u[13]=U("   ")),c("a",{href:"javascript:void(0)",class:"text-primary",onClick:r},"查看变量")]),c("div",UT,[u[14]||(u[14]=c("label",null,"后台打开",-1)),oe(c("input",{"onUpdate:modelValue":u[5]||(u[5]=d=>l.item.openInBackground=d),id:"customUrl_openInBackground",type:"checkbox"},null,512),[[Fe,l.item.openInBackground]])]),c("div",jT,[u[15]||(u[15]=c("label",null,"备注",-1)),oe(c("input",{"onUpdate:modelValue":u[6]||(u[6]=d=>l.item.memo=d),id:"customUrl_memo",class:"pure-input-2-3"},null,512),[[Ge,l.item.memo]])]),n.value?(E(),I("div",HT,[u[16]||(u[16]=c("label",null,"Mutation",-1)),oe(c("textarea",{"onUpdate:modelValue":u[7]||(u[7]=d=>l.item.mutation=d),id:"customUrl_mutation",class:"pure-input-2-3",placeholder:"自定义代码生成最终链接,具体请看右侧「查看说明」"},null,512),[[Ge,l.item.mutation]]),u[17]||(u[17]=U("   ")),c("a",{href:"javascript:void(0)",class:"text-primary",onClick:a},"查看说明")])):we("",!0)])])]))}}),Pm=je(zT,[["__file","CustomUrl.vue"]]),qT={class:"ce-config ce-search-urls ce-custom-urls"},VT={class:"ce-menu-urls-builtin"},WT={class:"pure-form pure-form-aligned"},KT={key:0,class:"item-icon"},GT=["src"],JT=["for"],YT=["id","onUpdate:modelValue"],QT={class:"text-info item-memo"},XT=["onClick"],ZT={class:"ce-custom-urls-list"},eO={class:"ce-custom-urls-actions"},tO=["disabled"],nO=De({__name:"SearchUrls",async setup(e){let t,n;const s=ie(([t,n]=Xt(()=>Of()),t=await t,n(),t)),i=ie(([t,n]=Xt(()=>Mr(Us.search)),t=await t,n(),t));It(async()=>{}),mt(s,vt(async d=>{const h=[];d.forEach(g=>{g.enabled&&h.push(g.key);}),await Ub(h),re({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},500),{deep:!0});async function o(){const d=[];for(const h of i.value){if(!await r(h,d.length))return;if(d.includes(h.key)){re({icon:"error",title:`第 ${d.length+1} 个记录的「唯一标识: ${h.key}」重复!`});return}d.push(h.key);}await Ff(Us.search,i.value),re({icon:"success",title:"保存成功!"});}async function r(d,h){const g=/^\w+$/;return d.key=d.key.trim(),g.test(d.key)?(d.label=d.label.trim(),d.label===""?(re({icon:"error",title:`第 ${h+1} 个记录的「显示名称」不能为空!`}),!1):(d.url=d.url.trim(),d.url===""?(re({icon:"error",title:`第 ${h+1} 个记录的「链接」不能为空!`}),!1):(d.icon=d.icon.trim(),d.memo=d.memo.trim(),!0))):(re({icon:"error",title:`第 ${h+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function a(){i.value.push(Ct({key:$r()}));}async function l(d,h){const{isConfirmed:g}=await me.fire({icon:"warning",html:`确定要删除第 ${h+1} 个记录「${d.label}」吗?`});g&&(i.value.splice(h,1),await o(),re({icon:"success",title:`「${d.label}」已删除!`}));}async function u(d){const h=JSON.stringify(d,null,2),g=`ce-url-item-denifition-${d.key}`,{isConfirmed:v}=await me.fire({title:`「${d.label}」的定义`,html:`<h3>${d.memo}</h3>
      <pre id="${g}" style="text-align:left;font-size:12px;"></pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0,didOpen:()=>{document.getElementById(g).textContent=h;}});v&&(navigator.clipboard.writeText(h),re({icon:"success",title:"已复制到剪贴板!"}));}return (d,h)=>(E(),I("div",qT,[c("h1",null,[h[0]||(h[0]=U("预置搜索菜单 ")),oe(c("small",null,"( "+Y(s.value.length)+" )",513),[[jt,s.value.length]])]),c("div",VT,[c("form",WT,[c("fieldset",null,[(E(!0),I(Oe,null,Je(s.value,(g,v)=>(E(),I("div",{key:v,class:"pure-control-group"},[g.icon?(E(),I("span",KT,[c("img",{src:g.icon,referrerpolicy:"no-referrer",width:"25"},null,8,GT)])):we("",!0),c("label",{for:`builtin_${g.key}`},Y(g.label),9,JT),oe(c("input",{id:`builtin_${g.key}`,type:"checkbox","onUpdate:modelValue":b=>g.enabled=b},null,8,YT),[[Fe,g.enabled]]),h[1]||(h[1]=U("      ")),c("span",QT,Y(g.memo),1),h[2]||(h[2]=U("      ")),c("button",{type:"button",class:"pure-button button-small",onClick:b=>u(g)},"查看定义",8,XT)]))),128))])])]),c("h1",null,[h[3]||(h[3]=U("自定义搜索菜单 ")),oe(c("small",null,"( "+Y(i.value.length)+" )",513),[[jt,i.value.length]])]),c("div",ZT,[(E(!0),I(Oe,null,Je(i.value,(g,v)=>(E(),ot(Pm,{key:v,item:g,index:v,onDelete:b=>l(g,v)},null,8,["item","index","onDelete"]))),128))]),c("div",eO,[c("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:o,disabled:!i.value.length}," 保存自定义搜索菜单 ",8,tO),h[4]||(h[4]=U("      ")),c("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:a}," + 添加自定义搜索菜单 ")])]))}}),sO=je(nO,[["__file","SearchUrls.vue"]]),oO={class:"ce-config ce-play-urls ce-custom-urls"},iO={class:"pure-form pure-form-aligned"},rO=["value"],aO={class:"ce-menu-urls-builtin"},lO={class:"pure-form pure-form-aligned"},uO={key:0,class:"item-icon"},cO=["src"],dO=["for"],fO=["id","onUpdate:modelValue"],pO={class:"text-info item-memo"},hO=["onClick"],mO=["innerHTML"],gO={class:"ce-custom-urls-list"},yO={class:"ce-custom-urls-actions"},wO=["disabled"],bO=De({__name:"PlayUrls",async setup(e){let t,n;const s=ie(([t,n]=Xt(()=>Mf()),t=await t,n(),t)),i=ie(([t,n]=Xt(()=>Mr(Us.play)),t=await t,n(),t)),o=([t,n]=Xt(()=>yn()),t=await t,n(),t),r=ie(o.defaultPlayer||""),a=it(()=>[...s.value.filter(v=>v.enabled),...i.value.filter(v=>v.enabled)]);It(async()=>{}),mt(s,vt(async v=>{const b=[];v.forEach(_=>{_.enabled&&b.push(_.key);}),await jb(b),re({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},500),{deep:!0}),mt(r,vt(async v=>{const b=await yn();b.defaultPlayer=v,await jf(b),re({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},250));async function l(){const v=[];for(const b of i.value){if(!await u(b,v.length))return;if(v.includes(b.key)){re({icon:"error",title:`第 ${v.length+1} 个记录的「唯一标识: ${b.key}」重复!`});return}v.push(b.key);}await Ff(Us.play,i.value),re({icon:"success",title:"保存成功!"});}async function u(v,b){const _=/^\w+$/;return v.key=v.key.trim(),_.test(v.key)?(v.label=v.label.trim(),v.label===""?(re({icon:"error",title:`第 ${b+1} 个记录的「显示名称」不能为空!`}),!1):(v.url=v.url.trim(),v.url===""?(re({icon:"error",title:`第 ${b+1} 个记录的「链接」不能为空!`}),!1):(v.icon=v.icon.trim(),v.memo=v.memo.trim(),!0))):(re({icon:"error",title:`第 ${b+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function d(){i.value.push(Ct({key:$r()}));}async function h(v,b){const{isConfirmed:_}=await me.fire({icon:"warning",html:`确定要删除第 ${b+1} 个记录「${v.label}」吗?`});_&&(i.value.splice(b,1),await l(),re({icon:"success",title:`「${v.label}」已删除!`}));}async function g(v){const b=JSON.stringify(v,null,2),_=`ce-url-item-denifition-${v.key}`,{isConfirmed:B}=await me.fire({title:`「${v.label}」的定义`,html:`<h3>${v.memo}</h3>
      <pre id="${_}" style="text-align:left;font-size:12px;"></pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0,didOpen:()=>{document.getElementById(_).innerText=b;}});B&&(navigator.clipboard.writeText(b),re({icon:"success",title:"已复制到剪贴板!"}));}return (v,b)=>(E(),I("div",oO,[c("form",iO,[c("fieldset",null,[b[1]||(b[1]=c("span",{class:"ce-label ce-label-primary"},"默认播放菜单: ",-1)),b[2]||(b[2]=U("   ")),oe(c("select",{"onUpdate:modelValue":b[0]||(b[0]=_=>r.value=_)},[(E(!0),I(Oe,null,Je(a.value,(_,B)=>(E(),I("option",{key:B,value:_.key},Y(_.label),9,rO))),128))],512),[[un,r.value]])])]),c("h1",null,[b[3]||(b[3]=U("预置播放菜单 ")),oe(c("small",null,"( "+Y(s.value.length)+" )",513),[[jt,s.value.length]])]),b[8]||(b[8]=c("div",{class:"ce-tips"},[c("p",null,[U("支持常见的视频、音频和图片格式,也支持目录播放。预置播放菜单使用的链接变量是 "),c("b",null,"{clouddrive_stream_url}"),U(" , 会根据文件或目录自动使用相应的链接。")]),c("p",null,"播放功能依赖CloudDrive,请先在「CloudDrive」设置面板中进行配置。")],-1)),c("div",aO,[c("form",lO,[c("fieldset",null,[(E(!0),I(Oe,null,Je(s.value,(_,B)=>(E(),I("div",{key:B,class:"pure-control-group"},[_.icon?(E(),I("span",uO,[c("img",{src:_.icon,referrerpolicy:"no-referrer",width:"25"},null,8,cO)])):we("",!0),c("label",{for:`builtin_${_.key}`},Y(_.label),9,dO),oe(c("input",{id:`builtin_${_.key}`,type:"checkbox","onUpdate:modelValue":L=>_.enabled=L},null,8,fO),[[Fe,_.enabled]]),b[4]||(b[4]=U("      ")),c("span",pO,Y(_.memo),1),b[5]||(b[5]=U("      ")),c("button",{type:"button",class:"pure-button button-small",onClick:L=>g(_)},"查看定义",8,hO),_.extraMemo?(E(),I("span",{key:1,innerHTML:_.extraMemo,class:"extra-memo"},null,8,mO)):we("",!0)]))),128))])])]),c("h1",null,[b[6]||(b[6]=U("自定义播放菜单 ")),oe(c("small",null,"( "+Y(i.value.length)+" )",513),[[jt,i.value.length]])]),c("div",gO,[(E(!0),I(Oe,null,Je(i.value,(_,B)=>(E(),ot(Pm,{key:B,item:_,index:B,onDelete:L=>h(_,B)},null,8,["item","index","onDelete"]))),128))]),b[9]||(b[9]=c("div",{class:"ce-tips"}," 编辑后,请记得点击「保存自定义播放菜单」。 ",-1)),c("div",yO,[c("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:l,disabled:!i.value.length}," 保存自定义播放菜单 ",8,wO),b[7]||(b[7]=U("      ")),c("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:d}," + 添加自定义播放菜单 ")])]))}}),vO=je(bO,[["__file","PlayUrls.vue"]]),Im=yt.anxia,Tm={"3G":"标清",SD:"高清",HD:"超清",UD:"1080P",BD:"4K",YH:"原画"};function _O(e){return {defaultWebFull:!1,defaultOpenPlayList:!1,defaultDefinition:"",...e}}async function Om(){const e=_O(),t=await lt.get(Im,e);return {...e,...t}}async function xO(e){await lt.set(Im,e);}const CO={class:"ce-config ce-anxia-config"},kO={class:"pure-form pure-form-aligned"},$O={class:"pure-control-group"},SO={class:"pure-control-group"},EO={class:"pure-control-group"},AO=["value"],PO=De({__name:"Config",async setup(e){let t,n;const s=ie(([t,n]=Xt(()=>Om()),t=await t,n(),t));return It(async()=>{}),mt(s,vt(async i=>{await xO(i),re({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:ht.listConfigChange,body:JSON.parse(JSON.stringify(i))});},500),{deep:!0}),(i,o)=>(E(),I("div",CO,[c("form",kO,[c("fieldset",null,[c("div",$O,[o[3]||(o[3]=c("label",{for:"defaultWebFull"},"自动网页全屏",-1)),oe(c("input",{id:"defaultWebFull",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=r=>s.value.defaultWebFull=r)},null,512),[[Fe,s.value.defaultWebFull]]),o[4]||(o[4]=c("div",{class:"pure-form-message text-success"},[c("div",null,"进入播放页后自动使播放器网页全屏。")],-1))]),c("div",SO,[o[5]||(o[5]=c("label",{for:"defaultOpenPlayList"},"自动展开播放列表",-1)),oe(c("input",{id:"defaultOpenPlayList",type:"checkbox","onUpdate:modelValue":o[1]||(o[1]=r=>s.value.defaultOpenPlayList=r)},null,512),[[Fe,s.value.defaultOpenPlayList]]),o[6]||(o[6]=c("div",{class:"pure-form-message text-success"},[c("div",null,"进入播放页后自动展开播放列表。")],-1))]),c("div",EO,[o[8]||(o[8]=c("label",{for:"defaultDefinition"},"默认清晰度",-1)),oe(c("select",{id:"defaultDefinition","onUpdate:modelValue":o[2]||(o[2]=r=>s.value.defaultDefinition=r)},[o[7]||(o[7]=c("option",{value:""},"官方默认",-1)),(E(!0),I(Oe,null,Je(pe(Tm),(r,a)=>(E(),I("option",{key:a,value:a},Y(r),9,AO))),128))],512),[[un,s.value.defaultDefinition]]),o[9]||(o[9]=c("div",{class:"pure-form-message text-success"},[c("div",{class:"text-warning"},"如果没有该清晰度,则会使用官方默认。")],-1))])])])]))}}),IO=je(PO,[["__file","Config.vue"]]),Mm=yt.share;function TO(e){return {autoConfirmPassword:!0,pageWidth:"",showListSummary:!0,freshMode:!1,...e}}async function Lm(){const e=TO(),t=await lt.get(Mm,e);return {...e,...t}}async function OO(e){await lt.set(Mm,e);}const MO={class:"ce-config ce-share-config"},LO={class:"pure-form pure-form-aligned"},DO={class:"pure-control-group"},BO={class:"pure-control-group"},RO={class:"pure-control-group"},NO={class:"pure-control-group"},FO=De({__name:"Config",async setup(e){let t,n;const s=ie(([t,n]=Xt(()=>Lm()),t=await t,n(),t));return It(async()=>{}),mt(s,vt(async i=>{await OO(i),re({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:ht.shareConfigChange,body:JSON.parse(JSON.stringify(i))});},500),{deep:!0}),(i,o)=>(E(),I("div",MO,[c("form",LO,[c("fieldset",null,[c("div",DO,[o[4]||(o[4]=c("label",{for:"autoAccess"},"自动确定访问码",-1)),oe(c("input",{id:"autoAccess",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=r=>s.value.autoConfirmPassword=r)},null,512),[[Fe,s.value.autoConfirmPassword]]),o[5]||(o[5]=c("div",{class:"pure-form-message text-success"}," 如果打开页面时已有访问码,则自动确定进入分享详情。 ",-1))]),c("div",BO,[o[6]||(o[6]=c("label",{for:"pageWidth"},"页面宽度",-1)),oe(c("input",{id:"pageWidth",class:"input-small","onUpdate:modelValue":o[1]||(o[1]=r=>s.value.pageWidth=r)},null,512),[[Ge,s.value.pageWidth]]),o[7]||(o[7]=c("div",{class:"pure-form-message text-success"},[U(" 默认为空。支持 1000px、100%、90vw 等有效的 "),c("a",{href:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/width",target:"_blank",rel:"noreferrer noopener"},"css width数值 🔗"),U("。 ")],-1))]),c("div",RO,[o[8]||(o[8]=c("label",{for:"showListSummary"},"显示列表概要",-1)),oe(c("input",{id:"showListSummary",type:"checkbox","onUpdate:modelValue":o[2]||(o[2]=r=>s.value.showListSummary=r)},null,512),[[Fe,s.value.showListSummary]]),o[9]||(o[9]=c("div",{class:"pure-form-message text-success"}," 在列表`名称`列头部显示当前列表的概要信息,如文件数量、文件合计大小、目录数量等。 ",-1))]),c("div",NO,[o[10]||(o[10]=c("label",{for:"freshMode"},"清爽模式",-1)),oe(c("input",{id:"freshMode",type:"checkbox","onUpdate:modelValue":o[3]||(o[3]=r=>s.value.freshMode=r)},null,512),[[Fe,s.value.freshMode]]),o[11]||(o[11]=c("div",{class:"pure-form-message text-success"},[U(" 隐藏顶部广告和底部警告。"),c("span",{class:"text-warning"},"请注意,这些区域的内容可能会发生变化,隐藏后可能会使你错过相关信息,比如新活动等。")],-1))])])])]))}}),UO=je(FO,[["__file","Config.vue"]]);var jO={name:"115不大助手",version:"0.7.28",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"http://greasyfork.icu/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};const HO=De({__name:"FeedbackButton",setup(e){const t=jO,n=Sw;function s(){let o=`脚本: ${t.name} - v${t.version}
`;return o+=`TM: ${n.version}
`,o+=`UA: ${navigator.userAgent}
`,o+=`我在使用脚本的 xxxxxx 功能时,出现了问题,希望你能帮我解决。
`,o+=`复现步骤: xxxxxx
`,o+=`问题截图: 
`,o}function i(){let o=s();yo(o,"text/plain"),re({icon:"success",text:"已复制反馈模版,请添加详细的描述以便排查和解决问题。"});}return (o,r)=>(E(),I("button",{type:"button",class:"pure-button pure-button-success",onClick:i}," 复制反馈模版 "))}}),zO=je(HO,[["__file","FeedbackButton.vue"]]);var qO={name:"115不大助手",version:"0.7.28",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"http://greasyfork.icu/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};const VO={class:"ce-about"},WO=["href"],KO=De({__name:"About",setup(e){const t=qO;return (n,s)=>(E(),I("div",VO,[s[1]||(s[1]=c("p",null,"115不大助手(以下简称「脚本」),是一个仅用于学习编程的小脚本。",-1)),s[2]||(s[2]=c("br",null,null,-1)),s[3]||(s[3]=c("p",null,"脚本不会收集您的任何个人信息。",-1)),s[4]||(s[4]=c("p",null,"脚本仅借助了官方已有的功能,无任何破解行为。",-1)),s[5]||(s[5]=c("p",null,"脚本代码本身已包含全部依赖,无任何远程引用。",-1)),s[6]||(s[6]=c("br",null,null,-1)),s[7]||(s[7]=c("br",null,null,-1)),s[8]||(s[8]=c("br",null,null,-1)),c("div",null,[ye(zO)]),s[9]||(s[9]=c("br",null,null,-1)),s[10]||(s[10]=c("hr",{class:"ce-hr"},null,-1)),c("div",null,[c("a",{href:pe(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[U(Y(pe(t).name)+" ",1),c("small",null,"v"+Y(pe(t).version),1)],8,WO),s[0]||(s[0]=U("  ")),c("small",null,"by "+Y(pe(t).author.name),1)])]))}}),GO=je(KO,[["__file","About.vue"]]);var JO={name:"115不大助手",version:"0.7.28",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"http://greasyfork.icu/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};const YO={class:"ce-config-main"},QO={class:"ce-config-main-header"},XO={class:"ce-intro"},ZO=["href"],e5={class:"ce-config-main-body"},t5=De({__name:"Config",setup(e){const t=JO,n=ie(!1),s=ie(!1),i=ie();Wt(async()=>{window.addEventListener("message",u=>{const{event:d,body:h}=u.data;d===ht.openConfig&&(n.value||(n.value=!0),o(h)),d===ht.closeConfig&&r();},!1);});async function o(u){var d;s.value=!0,console.log("[openDrawer]",u),u&&(await zs(),(d=i.value)==null||d.selectTab(`#${u}`));}async function r(){s.value=!1;}async function a(...u){console.log("[tabClicked]",u);}async function l(...u){console.log("[tabChanged]",u);}return (u,d)=>(E(),ot(Up,null,{default:Re(()=>[c("div",YO,[ye(gi,{"is-open":s.value,onClose:r,"max-width":"1200px",speed:500},{default:Re(()=>[c("div",QO,[d[1]||(d[1]=c("h1",null,"设置",-1)),c("span",XO,[c("a",{href:pe(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[U(Y(pe(t).name)+" ",1),c("small",null,"v"+Y(pe(t).version),1)],8,ZO),d[0]||(d[0]=U("  ")),c("small",null,"by "+Y(pe(t).author.name),1)]),c("div",{class:"ce-config-main-close",onClick:r},"关闭")]),c("div",e5,[ye(pe(RA),{ref_key:"refTabs",ref:i,options:{useUrlFragment:!1},onClicked:a,onChanged:l},{default:Re(()=>[ye(pe(dn),{id:pe(Ft).basic,name:pe(cn).basic},{default:Re(()=>[ye(iP)]),_:1},8,["id","name"]),ye(pe(dn),{id:pe(Ft).clouddrive,name:pe(cn).clouddrive},{default:Re(()=>[ye(vP)]),_:1},8,["id","name"]),ye(pe(dn),{id:pe(Ft).list,name:pe(cn).list},{default:Re(()=>[ye(RP)]),_:1},8,["id","name"]),ye(pe(dn),{id:pe(Ft).search,name:pe(cn).search},{default:Re(()=>[ye(WP)]),_:1},8,["id","name"]),ye(pe(dn),{id:pe(Ft).menus,name:pe(cn).menus},{default:Re(()=>[ye(PT)]),_:1},8,["id","name"]),ye(pe(dn),{id:pe(Ft).searchMenus,name:pe(cn).searchMenus},{default:Re(()=>[ye(sO)]),_:1},8,["id","name"]),ye(pe(dn),{id:pe(Ft).playMenus,name:pe(cn).playMenus},{default:Re(()=>[ye(vO)]),_:1},8,["id","name"]),ye(pe(dn),{id:pe(Ft).offline,name:pe(cn).offline},{default:Re(()=>[ye(dh)]),_:1},8,["id","name"]),ye(pe(dn),{id:pe(Ft).tools,name:pe(cn).tools},{default:Re(()=>[ye(OI)]),_:1},8,["id","name"]),ye(pe(dn),{id:pe(Ft).anxia,name:pe(cn).anxia},{default:Re(()=>[ye(IO)]),_:1},8,["id","name"]),ye(pe(dn),{id:pe(Ft).share,name:pe(cn).share},{default:Re(()=>[ye(UO)]),_:1},8,["id","name"]),ye(pe(dn),{id:pe(Ft).about,name:pe(cn).about},{default:Re(()=>[ye(GO)]),_:1},8,["id","name"])]),_:1},512)])]),_:1},8,["is-open"])])]),_:1}))}}),n5=je(t5,[["__file","Config.vue"]]);var bi={name:"115不大助手",version:"0.7.28",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"http://greasyfork.icu/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};async function s5(){if(window!==window.parent)return;new MutationObserver(async([t])=>{t.type==="childList"&&window.postMessage({event:ht.topDomChanged});}).observe(document.body,{childList:!0});}async function o5(){const e=document.querySelector(".bottom-side .navigation-ceiling ul");if(!e){l5();return}const t=document.createElement("li"),n=document.createElement("a");n.href="javascript:;",n.style.textAlign="center",n.style.backgroundColor="#fefcea",n.style.padding="4px 10px 4px",n.addEventListener("click",async s=>{await vr();}),n.title=`打开「${bi.name}」设置`,n.innerHTML='<i class="isn-setting"></i><span>不大助手</span>',t.appendChild(n),e.insertBefore(t,e.firstChild);}async function i5(){return !!document.querySelector("#js-login-box")}async function r5(){console.log("[handleLoginPage]"),await i5()&&(document.body.classList.add("ce-login-page"),a5());}async function a5(){console.log("[injectOpenConfigButtonOnLoginPage");const e=document.querySelector(".right-side a");if(!e){console.warn("[injectOpenConfigButtonOnLoginPage] '.right-side a' not found");return}const t=document.createElement("a");t.href="javascript:;",t.className="ce-entry",t.addEventListener("click",async s=>{await vr();}),t.title=`打开「${bi.name}」设置`,t.innerHTML=`<i class="isn-setting"></i><span>${bi.name}</span>`,e.insertAdjacentElement("beforebegin",t);const n=document.createElement("a");n.href="javascript:;",n.className="ce-entry",n.addEventListener("click",async s=>{await vr(Ft.tools);}),n.title="打开扫码获取Cookie",n.innerHTML='<i class="isn-scan"></i><span>扫码获取Cookie</span>',e.insertAdjacentElement("beforebegin",n);}async function l5(){const e=document.querySelector(".sub-footer ul");if(!e)return;const t=document.createElement("li"),n=document.createElement("a");n.href="javascript:;",n.addEventListener("click",async s=>{await vr();}),n.title=`打开「${bi.name}」设置`,n.innerHTML=`<i class="isn-setting"></i><span>${bi.name}</span>`,t.appendChild(n),e.insertBefore(t,e.firstChild);}async function vr(e){window.postMessage({event:ht.openConfig,body:e});}async function u5(){const{host:e}=location;!e.includes("115.com")&&!e.includes("anxia.com")||window.top===window.self&&(console.log("[Cloud115 Enhancer - main] running..."),c5(),o5(),s5());}async function c5(){console.log("[Cloud115 Enhancer - main] injectUI");const e="cloud115ConfigMain",t=document.createElement("div");t.id=e,document.body.appendChild(t),qn(n5).mount(`#${e}`),tr("设置",async()=>{window.postMessage({event:ht.openConfig});}),tr("扫码获取Cookie",async()=>{window.postMessage({event:ht.openConfig,body:Ft.tools});}),r5();}async function d5(){if(window!==window.top)return;async function e(t){var s,i;const n=Zt();n&&((i=(s=n.Core)==null?void 0:s.FileConfig)!=null&&i.DataAPI)&&t(!0);}try{return await ws(e,250,3e4)}catch(t){throw new Error(`awaitDataAPI failed:${t.toString()}`)}}async function f5(e){var a;if(!e.showOnlyFileFilter)return;const t=Xn(),n=vs();if(!t&&!n)return;const s=vn.file,i=Dt(`
    <a href="javascript:;" menu="filter" val="${s}">
      <i class="iofl-max"></i><span>仅文件</span>
    </a>
  `),r=await ft(t?'#js_filter_box a[val="other"]':'#js_search_filter_popup a[val="other"]');(a=r.parentNode)==null||a.insertBefore(i,r);}async function p5(e){if(window!==window.top||!e.followHistoryState)return;const t=async n=>{const s=Er("cid"),i=await zt(!1);s!==i&&Zt().wangpan.Main.Action.Handlers.GotoDir({cid:s});};window.addEventListener("popstate",t);}async function h5(e){const t=document.querySelector("div#js_data_list");t==null||t.addEventListener("mousedown",n=>{n.target.classList.contains("ce-inj")&&n.stopPropagation();});}async function m5(e){Xn()&&e.dragToQuickEntry&&(qd(),Kw("#js_file_category_box",vt(qd,200),{childList:!0,subtree:!0}),g5());}async function qd(){const t=(await ft("#js_file_category_box")).querySelectorAll("#js_file_category_box a[cid]");for(let n=0;n<t.length;n++){const s=t[n];s.setAttribute("rel","item"),s.setAttribute("file_type","0"),s.setAttribute("title","可拖动文件到此目录");}}async function g5(){const e="ce-show-quick-entry";document.body.addEventListener("keydown",s=>{var i;s.ctrlKey&&((i=document.querySelector("#js_operate_box"))==null||i.classList.toggle(e));});const t=Zt().wangpan.Main,n=t.List.WriteSelectText;t.List.WriteSelectText=s=>{var i;n(s),(i=document.querySelector("#js_operate_box"))==null||i.classList.remove(e);};}async function y5(e){if(!e.makeMoreImageViewable)return;const t=["webp"],n=Zt();n.UPLOAD_CONFIG&&n.UPLOAD_CONFIG[3].upload_type_limit.push(...t);}function Qn(e){return Array.isArray?Array.isArray(e):Rm(e)==="[object Array]"}const w5=1/0;function b5(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-w5?"-0":t}function v5(e){return e==null?"":b5(e)}function Dn(e){return typeof e=="string"}function Dm(e){return typeof e=="number"}function _5(e){return e===!0||e===!1||x5(e)&&Rm(e)=="[object Boolean]"}function Bm(e){return typeof e=="object"}function x5(e){return Bm(e)&&e!==null}function on(e){return e!=null}function Va(e){return !e.trim().length}function Rm(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const C5="Incorrect 'index' type",k5=e=>`Invalid value for key ${e}`,$5=e=>`Pattern length exceeds max of ${e}.`,S5=e=>`Missing ${e} property in key`,E5=e=>`Property 'weight' in key '${e}' must be a positive integer`,Vd=Object.prototype.hasOwnProperty;class A5{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let i=Nm(s);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight;}),this._keys.forEach(s=>{s.weight/=n;});}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Nm(e){let t=null,n=null,s=null,i=1,o=null;if(Dn(e)||Qn(e))s=e,t=Wd(e),n=Tl(e);else {if(!Vd.call(e,"name"))throw new Error(S5("name"));const r=e.name;if(s=r,Vd.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(E5(r));t=Wd(r),n=Tl(r),o=e.getFn;}return {path:t,id:n,weight:i,src:s,getFn:o}}function Wd(e){return Qn(e)?e:e.split(".")}function Tl(e){return Qn(e)?e.join("."):e}function P5(e,t){let n=[],s=!1;const i=(o,r,a)=>{if(on(o))if(!r[a])n.push(o);else {let l=r[a];const u=o[l];if(!on(u))return;if(a===r.length-1&&(Dn(u)||Dm(u)||_5(u)))n.push(v5(u));else if(Qn(u)){s=!0;for(let d=0,h=u.length;d<h;d+=1)i(u[d],r,a+1);}else r.length&&i(u,r,a+1);}};return i(e,Dn(t)?t.split("."):t,0),s?n:n[0]}const I5={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},T5={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},O5={location:0,threshold:.6,distance:100},M5={useExtendedSearch:!1,getFn:P5,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var He={...T5,...I5,...O5,...M5};const L5=/[^ ]+/g;function D5(e=1,t=3){const n=new Map,s=Math.pow(10,t);return {get(i){const o=i.match(L5).length;if(n.has(o))return n.get(o);const r=1/Math.pow(o,.5*e),a=parseFloat(Math.round(r*s)/s);return n.set(o,a),a},clear(){n.clear();}}}class Ou{constructor({getFn:t=He.getFn,fieldNormWeight:n=He.fieldNormWeight}={}){this.norm=D5(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords();}setSources(t=[]){this.docs=t;}setIndexRecords(t=[]){this.records=t;}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,s)=>{this._keysMap[n.id]=s;});}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Dn(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n);}):this.docs.forEach((t,n)=>{this._addObject(t,n);}),this.norm.clear());}add(t){const n=this.size();Dn(t)?this._addString(t,n):this._addObject(t,n);}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n<s;n+=1)this.records[n].i-=1;}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!on(t)||Va(t))return;let s={v:t,i:n,n:this.norm.get(t)};this.records.push(s);}_addObject(t,n){let s={i:n,$:{}};this.keys.forEach((i,o)=>{let r=i.getFn?i.getFn(t):this.getFn(t,i.path);if(on(r)){if(Qn(r)){let a=[];const l=[{nestedArrIndex:-1,value:r}];for(;l.length;){const{nestedArrIndex:u,value:d}=l.pop();if(on(d))if(Dn(d)&&!Va(d)){let h={v:d,i:u,n:this.norm.get(d)};a.push(h);}else Qn(d)&&d.forEach((h,g)=>{l.push({nestedArrIndex:g,value:h});});}s.$[o]=a;}else if(Dn(r)&&!Va(r)){let a={v:r,n:this.norm.get(r)};s.$[o]=a;}}}),this.records.push(s);}toJSON(){return {keys:this.keys,records:this.records}}}function Fm(e,t,{getFn:n=He.getFn,fieldNormWeight:s=He.fieldNormWeight}={}){const i=new Ou({getFn:n,fieldNormWeight:s});return i.setKeys(e.map(Nm)),i.setSources(t),i.create(),i}function B5(e,{getFn:t=He.getFn,fieldNormWeight:n=He.fieldNormWeight}={}){const{keys:s,records:i}=e,o=new Ou({getFn:t,fieldNormWeight:n});return o.setKeys(s),o.setIndexRecords(i),o}function qi(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:i=He.distance,ignoreLocation:o=He.ignoreLocation}={}){const r=t/e.length;if(o)return r;const a=Math.abs(s-n);return i?r+a/i:a?1:r}function R5(e=[],t=He.minMatchCharLength){let n=[],s=-1,i=-1,o=0;for(let r=e.length;o<r;o+=1){let a=e[o];a&&s===-1?s=o:!a&&s!==-1&&(i=o-1,i-s+1>=t&&n.push([s,i]),s=-1);}return e[o-1]&&o-s>=t&&n.push([s,o-1]),n}const Ms=32;function N5(e,t,n,{location:s=He.location,distance:i=He.distance,threshold:o=He.threshold,findAllMatches:r=He.findAllMatches,minMatchCharLength:a=He.minMatchCharLength,includeMatches:l=He.includeMatches,ignoreLocation:u=He.ignoreLocation}={}){if(t.length>Ms)throw new Error($5(Ms));const d=t.length,h=e.length,g=Math.max(0,Math.min(s,h));let v=o,b=g;const _=a>1||l,B=_?Array(h):[];let L;for(;(L=e.indexOf(t,b))>-1;){let K=qi(t,{currentLocation:L,expectedLocation:g,distance:i,ignoreLocation:u});if(v=Math.min(K,v),b=L+d,_){let fe=0;for(;fe<d;)B[L+fe]=1,fe+=1;}}b=-1;let F=[],O=1,D=d+h;const j=1<<d-1;for(let K=0;K<d;K+=1){let fe=0,ve=D;for(;fe<ve;)qi(t,{errors:K,currentLocation:g+ve,expectedLocation:g,distance:i,ignoreLocation:u})<=v?fe=ve:D=ve,ve=Math.floor((D-fe)/2+fe);D=ve;let ce=Math.max(1,g-ve+1),R=r?h:Math.min(g+ve,h)+d,N=Array(R+2);N[R+1]=(1<<K)-1;for(let he=R;he>=ce;he-=1){let be=he-1,$e=n[e.charAt(be)];if(_&&(B[be]=+!!$e),N[he]=(N[he+1]<<1|1)&$e,K&&(N[he]|=(F[he+1]|F[he])<<1|1|F[he+1]),N[he]&j&&(O=qi(t,{errors:K,currentLocation:be,expectedLocation:g,distance:i,ignoreLocation:u}),O<=v)){if(v=O,b=be,b<=g)break;ce=Math.max(1,2*g-b);}}if(qi(t,{errors:K+1,currentLocation:g,expectedLocation:g,distance:i,ignoreLocation:u})>v)break;F=N;}const H={isMatch:b>=0,score:Math.max(.001,O)};if(_){const K=R5(B,a);K.length?l&&(H.indices=K):H.isMatch=!1;}return H}function F5(e){let t={};for(let n=0,s=e.length;n<s;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<s-n-1;}return t}class Um{constructor(t,{location:n=He.location,threshold:s=He.threshold,distance:i=He.distance,includeMatches:o=He.includeMatches,findAllMatches:r=He.findAllMatches,minMatchCharLength:a=He.minMatchCharLength,isCaseSensitive:l=He.isCaseSensitive,ignoreLocation:u=He.ignoreLocation}={}){if(this.options={location:n,threshold:s,distance:i,includeMatches:o,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:u},this.pattern=l?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(g,v)=>{this.chunks.push({pattern:g,alphabet:F5(g),startIndex:v});},h=this.pattern.length;if(h>Ms){let g=0;const v=h%Ms,b=h-v;for(;g<b;)d(this.pattern.substr(g,Ms),g),g+=Ms;if(v){const _=h-Ms;d(this.pattern.substr(_),_);}}else d(this.pattern,0);}searchIn(t){const{isCaseSensitive:n,includeMatches:s}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let b={isMatch:!0,score:0};return s&&(b.indices=[[0,t.length-1]]),b}const{location:i,distance:o,threshold:r,findAllMatches:a,minMatchCharLength:l,ignoreLocation:u}=this.options;let d=[],h=0,g=!1;this.chunks.forEach(({pattern:b,alphabet:_,startIndex:B})=>{const{isMatch:L,score:F,indices:O}=N5(t,b,_,{location:i+B,distance:o,threshold:r,findAllMatches:a,minMatchCharLength:l,includeMatches:s,ignoreLocation:u});L&&(g=!0),h+=F,L&&O&&(d=[...d,...O]);});let v={isMatch:g,score:g?h/this.chunks.length:1};return g&&s&&(v.indices=d),v}}class ks{constructor(t){this.pattern=t;}static isMultiMatch(t){return Kd(t,this.multiRegex)}static isSingleMatch(t){return Kd(t,this.singleRegex)}search(){}}function Kd(e,t){const n=e.match(t);return n?n[1]:null}class U5 extends ks{constructor(t){super(t);}static get type(){return "exact"}static get multiRegex(){return /^="(.*)"$/}static get singleRegex(){return /^=(.*)$/}search(t){const n=t===this.pattern;return {isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class j5 extends ks{constructor(t){super(t);}static get type(){return "inverse-exact"}static get multiRegex(){return /^!"(.*)"$/}static get singleRegex(){return /^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return {isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class H5 extends ks{constructor(t){super(t);}static get type(){return "prefix-exact"}static get multiRegex(){return /^\^"(.*)"$/}static get singleRegex(){return /^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return {isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class z5 extends ks{constructor(t){super(t);}static get type(){return "inverse-prefix-exact"}static get multiRegex(){return /^!\^"(.*)"$/}static get singleRegex(){return /^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return {isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class q5 extends ks{constructor(t){super(t);}static get type(){return "suffix-exact"}static get multiRegex(){return /^"(.*)"\$$/}static get singleRegex(){return /^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return {isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class V5 extends ks{constructor(t){super(t);}static get type(){return "inverse-suffix-exact"}static get multiRegex(){return /^!"(.*)"\$$/}static get singleRegex(){return /^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return {isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class jm extends ks{constructor(t,{location:n=He.location,threshold:s=He.threshold,distance:i=He.distance,includeMatches:o=He.includeMatches,findAllMatches:r=He.findAllMatches,minMatchCharLength:a=He.minMatchCharLength,isCaseSensitive:l=He.isCaseSensitive,ignoreLocation:u=He.ignoreLocation}={}){super(t),this._bitapSearch=new Um(t,{location:n,threshold:s,distance:i,includeMatches:o,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:u});}static get type(){return "fuzzy"}static get multiRegex(){return /^"(.*)"$/}static get singleRegex(){return /^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Hm extends ks{constructor(t){super(t);}static get type(){return "include"}static get multiRegex(){return /^'"(.*)"$/}static get singleRegex(){return /^'(.*)$/}search(t){let n=0,s;const i=[],o=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+o,i.push([s,n-1]);const r=!!i.length;return {isMatch:r,score:r?0:1,indices:i}}}const Ol=[U5,Hm,H5,z5,V5,q5,j5,jm],Gd=Ol.length,W5=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,K5="|";function G5(e,t={}){return e.split(K5).map(n=>{let s=n.trim().split(W5).filter(o=>o&&!!o.trim()),i=[];for(let o=0,r=s.length;o<r;o+=1){const a=s[o];let l=!1,u=-1;for(;!l&&++u<Gd;){const d=Ol[u];let h=d.isMultiMatch(a);h&&(i.push(new d(h,t)),l=!0);}if(!l)for(u=-1;++u<Gd;){const d=Ol[u];let h=d.isSingleMatch(a);if(h){i.push(new d(h,t));break}}}return i})}const J5=new Set([jm.type,Hm.type]);class Y5{constructor(t,{isCaseSensitive:n=He.isCaseSensitive,includeMatches:s=He.includeMatches,minMatchCharLength:i=He.minMatchCharLength,ignoreLocation:o=He.ignoreLocation,findAllMatches:r=He.findAllMatches,location:a=He.location,threshold:l=He.threshold,distance:u=He.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:i,findAllMatches:r,ignoreLocation:o,location:a,threshold:l,distance:u},this.pattern=n?t:t.toLowerCase(),this.query=G5(this.pattern,this.options);}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return {isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:i}=this.options;t=i?t:t.toLowerCase();let o=0,r=[],a=0;for(let l=0,u=n.length;l<u;l+=1){const d=n[l];r.length=0,o=0;for(let h=0,g=d.length;h<g;h+=1){const v=d[h],{isMatch:b,indices:_,score:B}=v.search(t);if(b){if(o+=1,a+=B,s){const L=v.constructor.type;J5.has(L)?r=[...r,..._]:r.push(_);}}else {a=0,o=0,r.length=0;break}}if(o){let h={isMatch:!0,score:a/o};return s&&(h.indices=r),h}}return {isMatch:!1,score:1}}}const Ml=[];function Q5(...e){Ml.push(...e);}function Ll(e,t){for(let n=0,s=Ml.length;n<s;n+=1){let i=Ml[n];if(i.condition(e,t))return new i(e,t)}return new Um(e,t)}const _r={AND:"$and",OR:"$or"},Dl={PATH:"$path",PATTERN:"$val"},Bl=e=>!!(e[_r.AND]||e[_r.OR]),X5=e=>!!e[Dl.PATH],Z5=e=>!Qn(e)&&Bm(e)&&!Bl(e),Jd=e=>({[_r.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function zm(e,t,{auto:n=!0}={}){const s=i=>{let o=Object.keys(i);const r=X5(i);if(!r&&o.length>1&&!Bl(i))return s(Jd(i));if(Z5(i)){const l=r?i[Dl.PATH]:o[0],u=r?i[Dl.PATTERN]:i[l];if(!Dn(u))throw new Error(k5(l));const d={keyId:Tl(l),pattern:u};return n&&(d.searcher=Ll(u,t)),d}let a={children:[],operator:o[0]};return o.forEach(l=>{const u=i[l];Qn(u)&&u.forEach(d=>{a.children.push(s(d));});}),a};return Bl(e)||(e=Jd(e)),s(e)}function eM(e,{ignoreFieldNorm:t=He.ignoreFieldNorm}){e.forEach(n=>{let s=1;n.matches.forEach(({key:i,norm:o,score:r})=>{const a=i?i.weight:null;s*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(t?1:o));}),n.score=s;});}function tM(e,t){const n=e.matches;t.matches=[],on(n)&&n.forEach(s=>{if(!on(s.indices)||!s.indices.length)return;const{indices:i,value:o}=s;let r={indices:i,value:o};s.key&&(r.key=s.key.src),s.idx>-1&&(r.refIndex=s.idx),t.matches.push(r);});}function nM(e,t){t.score=e.score;}function sM(e,t,{includeMatches:n=He.includeMatches,includeScore:s=He.includeScore}={}){const i=[];return n&&i.push(tM),s&&i.push(nM),e.map(o=>{const{idx:r}=o,a={item:t[r],refIndex:r};return i.length&&i.forEach(l=>{l(o,a);}),a})}class Mo{constructor(t,n={},s){this.options={...He,...n},this.options.useExtendedSearch,this._keyStore=new A5(this.options.keys),this.setCollection(t,s);}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Ou))throw new Error(C5);this._myIndex=n||Fm(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight});}add(t){on(t)&&(this._docs.push(t),this._myIndex.add(t));}remove(t=()=>!1){const n=[];for(let s=0,i=this._docs.length;s<i;s+=1){const o=this._docs[s];t(o,s)&&(this.removeAt(s),s-=1,i-=1,n.push(o));}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t);}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:s,includeScore:i,shouldSort:o,sortFn:r,ignoreFieldNorm:a}=this.options;let l=Dn(t)?Dn(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return eM(l,{ignoreFieldNorm:a}),o&&l.sort(r),Dm(n)&&n>-1&&(l=l.slice(0,n)),sM(l,this._docs,{includeMatches:s,includeScore:i})}_searchStringList(t){const n=Ll(t,this.options),{records:s}=this._myIndex,i=[];return s.forEach(({v:o,i:r,n:a})=>{if(!on(o))return;const{isMatch:l,score:u,indices:d}=n.searchIn(o);l&&i.push({item:o,idx:r,matches:[{score:u,value:o,norm:a,indices:d}]});}),i}_searchLogical(t){const n=zm(t,this.options),s=(a,l,u)=>{if(!a.children){const{keyId:h,searcher:g}=a,v=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(l,h),searcher:g});return v&&v.length?[{idx:u,item:l,matches:v}]:[]}const d=[];for(let h=0,g=a.children.length;h<g;h+=1){const v=a.children[h],b=s(v,l,u);if(b.length)d.push(...b);else if(a.operator===_r.AND)return []}return d},i=this._myIndex.records,o={},r=[];return i.forEach(({$:a,i:l})=>{if(on(a)){let u=s(n,a,l);u.length&&(o[l]||(o[l]={idx:l,item:a,matches:[]},r.push(o[l])),u.forEach(({matches:d})=>{o[l].matches.push(...d);}));}}),r}_searchObjectList(t){const n=Ll(t,this.options),{keys:s,records:i}=this._myIndex,o=[];return i.forEach(({$:r,i:a})=>{if(!on(r))return;let l=[];s.forEach((u,d)=>{l.push(...this._findMatches({key:u,value:r[d],searcher:n}));}),l.length&&o.push({idx:a,item:r,matches:l});}),o}_findMatches({key:t,value:n,searcher:s}){if(!on(n))return [];let i=[];if(Qn(n))n.forEach(({v:o,i:r,n:a})=>{if(!on(o))return;const{isMatch:l,score:u,indices:d}=s.searchIn(o);l&&i.push({score:u,key:t,value:o,idx:r,norm:a,indices:d});});else {const{v:o,n:r}=n,{isMatch:a,score:l,indices:u}=s.searchIn(o);a&&i.push({score:l,key:t,value:o,norm:r,indices:u});}return i}}Mo.version="7.0.0";Mo.createIndex=Fm;Mo.parseIndex=B5;Mo.config=He;Mo.parseQuery=zm;Q5(Y5);const oM={class:"ce-goto-input-wrap"},iM=["disabled"],rM=["disabled"],aM={class:"ce-goto-sug"},lM=["onMousedown","sid"],uM={class:"ce-goto-sug-index"},cM={class:"ce-goto-sug-prefix"},dM={class:"ce-goto-sug-name"},fM=De({__name:"GotoPath",setup(e){const t=ie(!1),n=ie(!1),s=ie(null),i=ie(null),o=ie(""),r=ie([]),a=ie(!1),l=it(()=>o.value.trim().length>0);let u="";Wt(async()=>{var N;t.value=!0,(N=i.value)==null||N.focus(),window.addEventListener("message",async G=>{if(G.data.event===ht.listRendered){const be=await zt(!1);be!==u&&(r.value=[],await K(!1)),u=be;}});});async function d(N){if(console.log("[handleKeydown]",N.key),hf(N),N.key==="Enter"){D.value>-1?ve():await ce(o.value);return}if(N.key==="Escape"){await R();return}["ArrowUp","ArrowDown"].includes(N.key)?j(N):h(N);}const h=vt(async N=>{g();},200);async function g(){try{r.value=[],await K(!1);const N={keyword:"",parentId:await zt(!1),parentPath:await Qa(),isSubOfCurrent:!0};console.log("[getSug] searchData:",N);const G=await F(N,!1);if(console.log("[searchData] items:",G),!G.length){re({icon:"warning",text:"没有匹配的建议",timer:1500,position:"top-right"});return}const he=await v(G,N);console.log("[searchData] sugs:",he),r.value=he,D.value=-1,await K(he.length>0);}catch(N){console.warn(N),await K(!1),re({icon:"error",text:N.toString(),timer:2e3,position:"top-right"});}}async function v(N,G){const he=[];for(let Ee=0;Ee<N.length;Ee++){const We=N[Ee];he.push({id:We.id,prefix:G.parentPath==="/"?"":G.parentPath,name:We.name,active:!1});}const be=o.value.trim();if(!be)return he;const $e=/^(\.\/)?[^\/]+/.test(be),Pe=Ya(be,"../");if(console.log("[toSug] isSubOfCurrent:",$e,"kwParentPath:",Pe),$e||Pe===G.parentPath){const Ee=new Mo(he,{keys:["name"],threshold:.6,includeScore:!0});let We=be;if(Pe===G.parentPath){const M=be.split(/[\\/]/).filter(Boolean);We=M[M.length-1];}const Ze=Ee.search(We);console.log("[toSug] fuse res:",Ze);let _e=!1;return Ze.forEach(M=>{M.score===void 0?(console.warn("[toSug] r.score is undefined:",M),_e=!0,M.score=0):M.score!==void 0&&isNaN(M.score)&&(console.warn("[toSug] r.score is NaN:",M),_e=!0,M.score=0);}),_e&&Ze.sort((M,Ne)=>M.score-Ne.score),Ze.map(M=>M.item)}return he}const b=new Map,_=new Map;async function B(N){return b.get(N)||!1}async function L(N,G){b.set(N,G);}async function F(N,G){const he=_.get(N.parentPath);if(he)return console.log(`[getSubDirs] path "${N.parentPath}" is cached`),he.items;if(await B(N.parentPath))return console.warn(`[getSubDirs] path "${N.parentPath}" is loading`),[];await L(N.parentPath,!0);try{const be=Ls({cid:N.parentId,limit:1150,show_dir:Hl.true}),$e=await Af(be);if(!$e.count)return [];const Pe=[];for(let Ee=0;Ee<$e.data.length;Ee++){const We=Gs($e.data[Ee]);We.isDir&&Pe.push(We);}return _.set(N.parentPath,{count:Pe.length,dirPath:N.parentPath,dirId:N.parentId,items:Pe}),Pe}catch(be){console.warn(be);}finally{await L(N.parentPath,!1);}return []}async function O(N,G){console.log("[handleSugClick]",N,G);const he=nr([N.prefix,N.name]);console.log("[handleSugClick] path:",he),await ce(he);}const D=ie(-1);async function j(N){var $e;console.log("[navigateSug]",N.key),N.preventDefault(),N.stopPropagation();let G=D.value;if(N.key==="ArrowUp")G--;else if(N.key==="ArrowDown")G++;else if(N.key==="Enter"){const Pe=r.value[D.value];Pe&&await O(Pe,N);return}else return;G<0?G=0:G>=r.value.length&&(G=r.value.length-1),D.value=G,r.value.forEach((Pe,Ee)=>{Pe.active=Ee===G;});const he=r.value[G];if(!he)return;const be=($e=s.value)==null?void 0:$e.querySelector(`[sid="${he.id}"]`);be==null||be.scrollIntoView();}async function H(){var N;o.value="",(N=i.value)==null||N.focus(),await g();}async function K(N){var G;a.value=N,N&&((G=i.value)==null||G.focus());}async function fe(N){if(eb(N))return "0";const G=await Qa();return N=Ar(N,us.unix),N=Ya(G,N,us.unix),await io(N,!0)}async function ve(){const N=r.value[D.value];if(!N)return;const G=nr([N.prefix,N.name],us.unix);console.log("[gotoByCurrentSug] path:",G),await ce(G);}async function ce(N){var G;if(!n.value){N=N.trim(),re({text:"正在获取路径信息...",timer:0,position:"top-right"}),me.showLoading(),n.value=!0;try{const he=await fe(N);unsafeWindow.Main.GotoDir(1,he,0,""),re({icon:"success",text:"获取路径信息成功,现在打开...",timer:1e3,position:"top-right"}),(G=i.value)==null||G.focus(),r.value=[],D.value=-1;}catch(he){me.fire({icon:"error",title:"跳转失败",text:he.message});}finally{me.hideLoading(),n.value=!1;}}}async function R(){if(D.value>-1)r.value.forEach(N=>N.active=!1),D.value=-1,await K(!1);else {const N=document.querySelector("#ceGotoPathApp");N==null||N.style.setProperty("display","none");const G=document.querySelector(".ce-goto-path-active");G==null||G.classList.remove("ce-goto-path-active"),t.value=!1;}}return (N,G)=>(E(),I("div",{ref_key:"refMain",ref:s,class:ze(["ce-goto-main",{"ce-goto-sug-shown":a.value}])},[c("div",oM,[oe(c("input",{ref_key:"refInput",ref:i,"onUpdate:modelValue":G[0]||(G[0]=he=>o.value=he),class:"ce-goto-input",placeholder:"回车确认跳转 | Esc关闭 | 可搜索当前目录的子目录显示下拉列表,上下方向键选择",onKeydown:d},null,544),[[Ge,o.value]]),c("button",{type:"button",class:"ce-goto-input-btn","data-cmd":"clear",onClick:H,title:"清空输入框",disabled:!l.value},"清空",8,iM),c("button",{type:"button",class:"ce-goto-input-btn","data-cmd":"toggle",onClick:G[1]||(G[1]=he=>K(!1)),title:"收起建议列表",disabled:!a.value},"收起",8,rM)]),c("div",aM,[(E(!0),I(Oe,null,Je(r.value,(he,be)=>(E(),I("div",{key:be,class:ze(["ce-goto-sug-item",{active:he.active}]),onMousedown:fn($e=>O(he,$e),["left","stop","prevent"]),sid:he.id},[c("span",uM,Y(be+1),1),c("span",cM,Y(he.prefix),1),G[2]||(G[2]=c("span",{class:"ce-goto-sep"},"/",-1)),c("span",dM,Y(he.name),1)],42,lM))),128))])],2))}}),pM=je(fM,[["__file","GotoPath.vue"]]);async function hM(e){if(!Xn())return;const t=await ft("#js_top_header_file_path_box");e.showGotoButtonOnPathBar&&gM(e,t),e.showCopyButtonOnPathBar&&mM(e,t);}async function mM(e,t){const n="ceCopyPath";let s=t.querySelector(`#${n}`);const i=async()=>{const r=await Qa();qt(r),re({icon:"success",text:"路径已复制",timer:1e3,position:"top-right"});};s||(s=await(async()=>{const r=Dt(`<button class="pure-button button-mini ce-path-btn" id="${n}" title="复制路径">
        <span>复制</span>
      </button>`);return r.addEventListener("click",i),r})(),t.prepend(s));}async function gM(e,t){const n=t.querySelector(".top-file-path"),s="ceGotoPath";let i=t.querySelector(`#${s}`);const o=qn(pM),r="ceGotoPathApp",a=async()=>{await l();},l=async()=>{if(t.classList.toggle("ce-goto-path-active"),t.classList.contains("ce-goto-path-active"))await u();else {const g=t.querySelector(`#${r}`);g&&(g.style.display="none");}},u=async()=>{let g=t.querySelector(`#${r}`);g||(g=await h(),n.after(g)),g.querySelector(".ce-goto-main")?setTimeout(()=>{const b=document.querySelector(".ce-goto-input");b==null||b.focus();},200):o.mount(g),g.style.display="block";},d=async()=>{const g=document.createElement("button");return g.className="pure-button button-mini ce-path-btn text-primary",g.id=s,g.title=`
      【这是一个实验功能】
      跳转到指定路径。使用:
      - 空白、单个斜杠: 根目录
      - 相对路径1: 开头不带斜杠,当前目录下的子路径
      - 相对路径2: 开头带有../,当前目录的上级目录,可以多级
      - 绝对路径: 开头带有斜杠,从根目录开始的路径

      斜杠风格不限,支持模糊搜索当前目录的子目录。
      回车键跳转,Esc键关闭输入框。`,g.innerHTML="<span>跳转</span>",g.addEventListener("click",a),g},h=async()=>Dt(`<div id="${r}" style="width: 50%"/>`);i||(i=await d(),t.prepend(i));}async function yM(e){const{fileSelectorDefaultView:t}=e;t&&(console.log("[setSelectorView]",t),unsafeWindow.localStorage.setItem("FS_view",t));}async function wM(e){if(!e.noUpdateDirAfterRename||window!==window.top)return;let t=!0,n="",s=!1;const i=Zt(),o=Core.FileReNameDG.Show,r=i.Core.Dir.Rename,a=i.Core.FileConfig.DataAPI.UpdateDir;i.Core.FileReNameDG.Show=async(...l)=>{n=l[0],s=!0,o(...l);},i.Core.Dir.Rename=async(...l)=>{n=l[1],s=!1,r(...l);},i.Core.FileConfig.DataAPI.UpdateDir=async l=>{if(t){const u=await _i();let d=`li[file_id="${n}"]`;s||(d=`li[cate_id="${n}"]`);const h=u.find(d);if(h.length){if(h.hasClass("ce-temp-cur-dir")){console.warn("[list handleNoUpdateDirAfterRename] $file is ce-temp-cur-dir"),re({icon:"warning",text:"重命名的是当前目录,忽略「重命名后不刷新列表」选项"}),a(l);return}if(re({icon:"info",text:"启用了「重命名后不刷新列表」选项,不会刷新文件列表"}),h.find(".file-modified span").text("刚刚"),!s){const g=await Pt(n),{file_name:v}=g;h.attr("cate_name",v),h.attr("title",v);const b=h.find(".file-name a.name");b.length?(b.attr("title",v).text(v),b.text(v)):console.warn("[list handleNoUpdateDirAfterRename] $name not found");}}else console.warn("[list handleNoUpdateDirAfterRename] $file not found");}else a(l);},window.addEventListener("message",async l=>{var d;if(l.data.event===ht.topDomChanged){const h=document.querySelector("div.dialog-box.window-current > div.dialog-header > h3");if(h&&((d=h.textContent)!=null&&d.includes("重命名"))){const g=document.querySelector("div.dialog-box.window-current .file-rename");if(!g){console.warn("[list handleNoUpdateDirAfterRename] .file-rename not found");return}const v=document.createElement("div"),b=`
          <div style="padding: 0px 20px;">
            <label style="font-size: 18px; color: #1890ff;">
              <input id="cbNoUpdateDir" type="checkbox" style="width: 22px; height: 22px; vertical-align: sub;"> 重命名后不刷新列表
            </label>
            <p style="font-size: 12px; color: #ff4949;">在使用当前目录增强菜单项「重命名文件夹」时会忽略该选项。</p>
          </div>`;v.innerHTML=b,g.insertAdjacentElement("afterend",v);const _=document.querySelector("#cbNoUpdateDir");_&&(_.checked=t,_.addEventListener("change",()=>{t=_.checked;}));}}});}async function bM(e){if(!e.noReloadAfterMove||window!==window.top)return;let t=!0,n=[];const s=Zt(),i=s.Core.FileMenu.DoEvent,o=s.Core.FileConfig.DataAPI.Reload;s.Core.FileConfig.DataAPI.Reload=async(...r)=>{if(t){re({icon:"info",text:"启用了「移动后不刷新文本列表」选项,不会刷新文件列表"});for(let a=0;a<n.length;a++)gf(n[a][0]);}else o(...r);},s.Core.FileMenu.DoEvent=async(...r)=>{n=r[0],i(...r);},window.addEventListener("message",async r=>{var h;if(r.data.event!==ht.topDomChanged)return;const l=document.querySelector("div.dialog-box.window-current > div.dialog-header > h3");if(!l||!((h=l.textContent)!=null&&h.includes("打开要移动")))return;const u=document.querySelector("div.dialog-box.window-current .select-footer");if(!u){console.warn("[list handleNoUpdateDirAfterMove] .select-footer not found");return}let d=document.querySelector("#cbNoReload");if(!d){const g=document.createElement("div"),v=`
        <div style="padding: 6px 30px 0;">
          <label style="font-size: 18px; color: #1890ff;">
            <input id="cbNoReload" type="checkbox" style="width: 22px; height: 22px; vertical-align: sub;"> 移动后不刷新列表
          </label>
          <p style="font-size: 14px; color: #ff4949;">启用该功能并且执行过移动操作后,会影响列表的全选功能,此时如需全选,请先手动刷新列表!</p>
        </div>`;g.innerHTML=v,u.insertAdjacentElement("afterend",g),d=document.querySelector("#cbNoReload"),d&&(d.checked=t,d.addEventListener("change",()=>{t=d.checked;}));}});}async function vM(){const e=await Qr(),{host:t,search:n}=location;/115\.com$/.test(t)&&(console.log("[List] running...",e),(Xn()||vs())&&a_(),hM(e),yM(e),setTimeout(async()=>{await d5(),wM(e),bM(e);},2e3),f5(e),p5(e),h5(),m5(e),y5(e));}async function _M(e){const t=await ft(".top-file-path");xM(e,t),CM(e,t);}async function xM(e,t){if(!e.showSelectTargetButtonOnPathBar)return;console.log("[showSelectTargetButtonOnPathBar]");const n="ce-btn-select";let s=t.querySelector(`.${n}`);const i=async()=>{unsafeWindow.parent.Core.FileSelectDG.Open((r,a)=>{console.log("[Core.FileSelectDG.Open]",r,a);const l=r[r.length-1],u=Dt(`
          <a href="javascript:;" class="dir-tab" search_btn_file="${l.cid}" style="display: none;">
          ${l.cname}
          </a>
        `);t.querySelector(".file-path").append(u),u.click();},{select:1,nf:1,show_record:0,show_copy:1,btn_txt:"在该目录下搜索",select_txt:"搜索"});};s||(s=await(async()=>{const r=Dt(`
      <a href="javascript:;" class="dir-tab ${n}" title="选择指定目录进行搜索">选择目录</a>
    `);return r.addEventListener("click",i),r})(),t.append(s));}async function CM(e,t){if(!e.showSelectAllDir)return;const n="ce-btn-select-dir";let s=t.querySelector(`.${n}`);const i=async r=>{r.preventDefault(),r.stopPropagation();const a=[],l=document.querySelectorAll('li[rel="item"][file_type="0"]');for(let u=0;u<l.length;u++)a.push($(l[u]));unsafeWindow.Main.List.RecheckFiles(a);};s||(s=await(async()=>{const a=Dt(`
      <button type="button" class="pure-button button-success button-small ${n}" title="仅会选中已加载的文件夹">选中全部文件夹</label>
    `);return a.setAttribute("style","margin-left: 10px;"),a.addEventListener("click",i),a})(),t.append(s));}async function kM(e){let t=e.resultWidth.trim();if(t===""||window!==window.parent||new URL(window.location.href).searchParams.get("mode")!=="search")return;t=/^\d+$/.test(t)?`${t}px`:t;const s=await ft("div.wrap-view");s&&(s.style.width=`${t}`);}async function $M(e){document.body.classList.add("ce-search-page"),parent.document.body.classList.add("ce-search-page");}async function SM(){const e=await Em();kM(e),vs()&&(console.log("[Search] running...",e),$M(),_M(e));}async function EM(){console.log("[Tools] running...");}async function AM(e){const t=async s=>{const i=Dt(`<li pickcode="${s.pickCode}" style="padding:0px;"></li>`),o=Dt(`
      <a style="height:auto;text-decoration:none;padding:5px 0 5px 5px;">
        <span style="word-break:break-all">${s.name}</span>
      </a>
    `);return o.href="/?hls=1&pickcode="+s.pickCode,o.setAttribute("title",s.name),i.appendChild(o),i};let n="";window.addEventListener("message",async s=>{if(s.data.event==="play"){const i=await ft("ul#js-video_list"),o=s.data.body.id;if(n&&n===o)if(i.childElementCount){console.log(`[playSelected] same id: ${o} 但是播放列表已经渲染过了,忽略`);return}else console.warn(`[playSelected] same id: ${o} 但是播放列表为空,将会进行渲染`);n=o;const r=s.data.body.files;console.log(`[playSelected] id: ${o}, files: `,r);const a=await Promise.all(r.map(t));i==null||i.append(...a);const l=document.querySelector(".video-playlist .vpl-container");l&&(l.style.display="block");const u=i==null?void 0:i.querySelector("a");u==null||u.click();const d=document.querySelector("#js-video_container");d&&d.classList.remove("video-container-nolist");}});}async function PM(e){if(!e.defaultWebFull)return;const t=await ft('[rel="web_fullscreen"]');t.querySelector('[rel="tooltips"]').innerText==="网页全屏"&&t.click();}async function IM(e){if(!e.defaultOpenPlayList)return;const t=await ft("a#js_pl_control_expand");t.querySelector('[rel="tooltips"]').innerText==="展开播放列表"&&t.click();}async function TM(e){if(!e.defaultDefinition)return;const t=Tm[e.defaultDefinition],n=unsafeWindow.__HLS,s=n.setCurrentLevel;(async()=>{var a;const o=await ft('div[rel="level_menu"]'),r=await wf('a[btn="level"]',100,12e4,o);for(let l=0;l<r.length;l++){const u=r[l],d=u.classList.contains("current");if(((a=u.textContent)==null?void 0:a.trim())===t&&!d){console.log("[setDefinition _first] 找到目标清晰度元素:",u),u.click();break}}})(),n.setCurrentLevel=o=>{const r=n.hls();if(!r||!r.levels){s(o);return}const a=[];r.levels.forEach(u=>{a.push({name:u.name,bitrate:u.bitrate});}),a.sort((u,d)=>u.bitrate-d.bitrate);let l=o;for(let u=0;u<a.length;u++)if(a[u].name===e.defaultDefinition){l=u;break}l!==o&&console.warn(`[level changed] ${o} -> ${l}`),s(l);};}async function OM(){const{host:e}=location;if(!e.includes("v.anxia.com"))return;console.log("[anxia] run");const t=await Om();PM(t),IM(t),AM(),TM(t);}async function qm(e){let t=e.pageWidth.trim();const n="ce-share-page-width";let s=Ww(`#${n}`,`<style id="${n}"></style>`);t=/^\d+$/.test(t)?`${t}px`:t,s.innerHTML=t?`div.wrap-sharing { width: ${t} !important; }`:"",document.contains(s)||document.head.appendChild(s);}async function MM(e){if(!e.autoConfirmPassword)return;const t=Er("password");if(!t||(await ft(".form-decode .form-item input")).value!==t)return;(await ft(".form-decode .submit a.button")).click(),re({icon:"success",text:"自动确定访问码",timer:1e3,position:"top-right"});}async function LM(e){const t=await ft("#js-list");new MutationObserver(vt(s=>{Wa(e);},200)).observe(t,{childList:!0}),t.addEventListener("mousedown",vt(s=>{Wa(e);},200));try{(await ft('[btn="check_all"]')).addEventListener("mousedown",vt(i=>{Wa(e);},200));}catch(s){console.error(s);}}function DM(e){const t=e.getAttribute("fid"),n=e.getAttribute("cid"),s=t?"file":"folder";return {id:t||n,name:e.getAttribute("file_name"),size:parseInt(e.getAttribute("file_size")||"0"),type:s,snapId:e.getAttribute("snap_id"),parentId:s==="file"?n:"",sha1:e.getAttribute("sha1")||"",checked:e.classList.contains("selected")}}function BM(e){const t={num:0,filesNum:0,filesSize:0,foldersNum:0,selectedNum:0,selectedFilesNum:0,selectedFilesSize:0,selectedFoldersNum:0};for(const n of e)t.num+=1,n.type==="file"?(t.filesNum+=1,t.filesSize+=n.size):t.foldersNum+=1,n.checked&&(t.selectedNum+=1,n.type==="file"?(t.selectedFilesNum+=1,t.selectedFilesSize+=n.size):t.selectedFoldersNum+=1);return t}async function Wa(e){if(!e.showListSummary)return;const t=await ft(".list-header"),s=(await ft("ul#js-list")).querySelectorAll("li"),i=Array.from(s).map(DM);console.log("[renderListSummary] files:",i);const o=BM(i);console.log("[renderListSummary] summary:",o);const r=t.querySelector(".header-name"),a=[];o.num&&a.push(`共${o.num}项`),o.filesNum&&a.push(`${o.filesNum}个文件,合计${vo(o.filesSize)}`),o.foldersNum&&a.push(`${o.foldersNum}个目录`);const l=[];o.selectedNum&&(o.selectedFilesNum&&l.push(`${o.selectedFilesNum}个文件,合计${vo(o.selectedFilesSize)}`),o.selectedFoldersNum&&l.push(`${o.selectedFoldersNum}个目录`));const u=`
    <span class="ce-list-summary">
      ${a.join(", ")}
      ${l.length?`。已选中${l.join(",")}`:""}
    </span>
  `;let d=r.querySelector(".ce-list-summary");d?d.outerHTML=u:(d=Dt(u),r.appendChild(d));}async function Vm(e){const t="ce-share-page";document.body.classList.add(t),parent.document.body.classList.add(t);const n="ce-share-fresh";e.freshMode?document.body.classList.add(n):document.body.classList.remove(n);}async function RM(){window.addEventListener("message",async e=>{const t=e.data.event,n=e.data.body;t===ht.shareConfigChange&&(console.log("[Share] handleConfigChange",n),qm(n),Vm(n));});}async function NM(){const e=await Lm();_b()&&(console.log("[Share] running...",e),qm(e),MM(e),LM(e),Vm(e),RM());}function Yd(e,t,n,s){return e<t||e>n?s:e}location.host==="115.com"&&(window.COMMONHEADERUSERINFO=window.COMMONHEADERUSERINFO||{});(async()=>{console.log("Cloud115 Enhancer launched!");const e=await ua(),t=Yd(e.limiterDuration,1,3e3,1),n=Yd(e.limiterPoints,1,300,1),s=t*500/n,i=vm({rateLimit:{...bm,duration:t,points:n,execEvenly:!0,execEvenlyMinDelayMs:s}}),o=xA(i);qw(o),q_(),sk(),BS(),MA(),vM(),SM(),EM(),OM(),NM(),u5();})();

})();