Greasy Fork

Greasy Fork is available in English.

115不大助手 (full)

Make 115 taerg again!

目前为 2024-04-11 提交的版本。查看 最新版本

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

(o=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.innerText=o,document.head.appendChild(e)})(`@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,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.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-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}.v-popper--theme-tooltip .v-popper__inner{background:rgba(0,0,0,.8);color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.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-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,rgba(0,0,0,0),#ccc,rgba(0,0,0,0))}.ce-config input[type=checkbox]{width:18px;height:18px;cursor:pointer}.tabs-component-tabs{border:solid 1px #ddd;border-radius:6px;margin-bottom:5px}@media (min-width: 700px){.tabs-component-tabs{border:0;align-items:stretch;display:flex;justify-content:flex-start;margin-bottom:-1px}}.tabs-component-tab{color:#999;font-size:14px;font-weight:600;margin-right:0;list-style:none}.tabs-component-tab:not(:last-child){border-bottom:dotted 1px #ddd}.tabs-component-tab:hover{color:#666}.tabs-component-tab.is-active{color:#000}.tabs-component-tab.is-disabled *{color:#cdcdcd;cursor:not-allowed!important}@media (min-width: 700px){.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-tab.is-active{border-bottom:solid 1px #fff;z-index:2;transform:translateY(0)}}.tabs-component-tab-a{align-items:center;color:inherit;display:flex;padding:.75em 1em;text-decoration:none}.tabs-component-panels{padding:1em 0}@media (min-width: 700px){.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-btn{cursor:pointer;background:#e1ecf4;border-radius:3px;border:1px solid #7aa7c7;padding:4px 8px;color:#39739d}.tabs-component-btn:hover{background-color:#b3d3ea;color:#2c5777}.tabs-component-btn:active{background-color:#a0c7e4;box-shadow:none;color:#2c5777}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}.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:rgba(39,119,248,.8);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:"\\2228";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:rgba(39,119,248,.8);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:"\\2228";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;width:60px;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:hover{background-color:#f3e882}.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:-250%;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;width:60px;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;width:60px;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-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 .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}.v-popper.v-popper--theme-dropdown{display:inline-block}.group-manager{width:750px}.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;width:540px;padding:10px;border-radius:4px}.group-form input,.group-form textarea{width:100%}.group-form .filter-label{cursor:pointer;padding:0 4px;text-decoration:underline}.group-form input#groupLabel{display:inline-block}.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}#cloud115Cleaner{margin-left:10px}.v-popper__arrow-container{display:none}.cloud115-eh-cleaner .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f;display:none}.cloud115-eh-cleaner .actions-bar{padding-bottom:10px}.cloud115-eh-cleaner .actions-bar .title{font-size:18px;font-weight:700;color:#15110c}.cloud115-eh-cleaner .actions-bar .close{margin-left:20px;margin-right:10px;color:#f40}.cloud115-eh-cleaner .actions-bar i.tp-folder{width:18px;height:18px;vertical-align:sub}.cloud115-eh-cleaner-help{position:fixed;top:60px;right:0;bottom:0;width:470px;z-index:1051;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.cloud115-eh-cleaner-help ul{list-style:decimal}.cloud115-eh-cleaner-drawer{position:fixed;top:60px;right:0;bottom:0;left:260px;background:#fff;z-index:1050;padding:10px 20px 200px;overflow-y:auto;box-shadow:-2px 2px 6px #bbb}.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 td a{color:#2877f8}.cloud115-eh-cleaner-drawer .by-box table td .tp-folder{width:16px;height:16px;vertical-align:sub}.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:4px;text-shadow:0 1px 1px rgba(0,0,0,.2)}.button-success{background:rgb(28,184,65)}.button-error{background:rgb(202,60,60)}.button-warning{background:rgb(223,117,20)}.button-secondary{background:rgb(66,184,221)}.ce-basic-config .pure-form-message{margin-left:82px}.ce-basic-config .avatar-preview{display:inline-block;vertical-align:middle;margin-left:10px}.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:15em}.ce-list-config .pure-form-message{margin-left:3em}.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,.ce-play-urls{padding-bottom:100px}.ce-play-urls .extra-memo{font-size:12px;margin-left:10px}.ce-play-urls .extra-memo a{text-decoration:underline;color:#337ab7}.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}.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}.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}
`);

var zE=Object.defineProperty;var qE=(ko,kn,So)=>kn in ko?zE(ko,kn,{enumerable:!0,configurable:!0,writable:!0,value:So}):ko[kn]=So;var Ae=(ko,kn,So)=>(qE(ko,typeof kn!="symbol"?kn+"":kn,So),So);(function(){"use strict";const ko="",kn="",So="",VE="",WE="",KE="",JE="",Fp=typeof btoa=="function",Ar=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Tl=typeof TextEncoder=="function"?new TextEncoder:void 0,jp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ts=Array.prototype.slice.call(jp);(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(ts);const Gt=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Up=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Ll=Fp?e=>btoa(e):Ar?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const r=e.length%3;for(let l=0;l<e.length;){if((n=e.charCodeAt(l++))>255||(o=e.charCodeAt(l++))>255||(s=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=ts[t>>18&63]+ts[t>>12&63]+ts[t>>6&63]+ts[t&63]}return r?i.slice(0,r-3)+"===".substring(r):i},Hp=Ar?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(Gt.apply(null,e.subarray(o,o+4096)));return Ll(n.join(""))},zp=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Gt(192|t>>>6)+Gt(128|t&63):Gt(224|t>>>12&15)+Gt(128|t>>>6&63)+Gt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Gt(240|t>>>18&7)+Gt(128|t>>>12&63)+Gt(128|t>>>6&63)+Gt(128|t&63)}},qp=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Vp=e=>e.replace(qp,zp),Ml=Ar?e=>Buffer.from(e,"utf8").toString("base64"):Tl?e=>Hp(Tl.encode(e)):e=>Ll(Vp(e)),Bl=(e,t=!1)=>t?Up(Ml(e)):Ml(e);var Eo=window,Pr=(()=>Eo.GM_setValue)(),Wp=(()=>Eo.GM_deleteValue)(),Kp=(()=>Eo.GM_openInTab)(),Dl=(()=>Eo.GM_registerMenuCommand)(),ns=(()=>Eo.GM_setClipboard)(),Xs=(()=>Eo.GM_getValue)(),Sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Nl={exports:{}};/*!
* sweetalert2 v11.7.2
* Released under the MIT License.
*/(function(e,t){(function(n,o){e.exports=o()})(Sn,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const o="swal2-",s=a=>{const c={};for(const g in a)c[a[g]]=o+a[g];return c},i=s(["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=s(["success","warning","info","question","error"]),l="SweetAlert2:",d=a=>{const c=[];for(let g=0;g<a.length;g++)c.indexOf(a[g])===-1&&c.push(a[g]);return c},f=a=>a.charAt(0).toUpperCase()+a.slice(1),p=a=>{console.warn(`${l} ${typeof a=="object"?a.join(" "):a}`)},m=a=>{console.error(`${l} ${a}`)},y=[],x=a=>{y.includes(a)||(y.push(a),p(a))},E=(a,c)=>{x(`"${a}" is deprecated and will be removed in the next major release. Please use "${c}" instead.`)},A=a=>typeof a=="function"?a():a,M=a=>a&&typeof a.toPromise=="function",V=a=>M(a)?a.toPromise():Promise.resolve(a),O=a=>a&&Promise.resolve(a)===a,T=()=>document.body.querySelector(`.${i.container}`),Q=a=>{const c=T();return c?c.querySelector(a):null},ee=a=>Q(`.${a}`),U=()=>ee(i.popup),se=()=>ee(i.icon),ie=()=>ee(i["icon-content"]),de=()=>ee(i.title),Pe=()=>ee(i["html-container"]),pe=()=>ee(i.image),re=()=>ee(i["progress-steps"]),Ee=()=>ee(i["validation-message"]),ae=()=>Q(`.${i.actions} .${i.confirm}`),Ue=()=>Q(`.${i.actions} .${i.cancel}`),D=()=>Q(`.${i.actions} .${i.deny}`),J=()=>ee(i["input-label"]),N=()=>Q(`.${i.loader}`),me=()=>ee(i.actions),Se=()=>ee(i.footer),Le=()=>ee(i["timer-progress-bar"]),Xe=()=>ee(i.close),Qe=`
  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
`,It=()=>{const a=Array.from(U().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((g,v)=>{const B=parseInt(g.getAttribute("tabindex")),ve=parseInt(v.getAttribute("tabindex"));return B>ve?1:B<ve?-1:0}),c=Array.from(U().querySelectorAll(Qe)).filter(g=>g.getAttribute("tabindex")!=="-1");return d(a.concat(c)).filter(g=>R(g))},Tt=()=>et(document.body,i.shown)&&!et(document.body,i["toast-shown"])&&!et(document.body,i["no-backdrop"]),$n=()=>U()&&et(U(),i.toast),vt=()=>U().hasAttribute("data-loading"),_t={previousBodyPadding:null},ct=(a,c)=>{if(a.textContent="",c){const v=new DOMParser().parseFromString(c,"text/html");Array.from(v.querySelector("head").childNodes).forEach(B=>{a.appendChild(B)}),Array.from(v.querySelector("body").childNodes).forEach(B=>{B instanceof HTMLVideoElement||B instanceof HTMLAudioElement?a.appendChild(B.cloneNode(!0)):a.appendChild(B)})}},et=(a,c)=>{if(!c)return!1;const g=c.split(/\s+/);for(let v=0;v<g.length;v++)if(!a.classList.contains(g[v]))return!1;return!0},Gn=(a,c)=>{Array.from(a.classList).forEach(g=>{!Object.values(i).includes(g)&&!Object.values(r).includes(g)&&!Object.values(c.showClass).includes(g)&&a.classList.remove(g)})},at=(a,c,g)=>{if(Gn(a,c),c.customClass&&c.customClass[g]){if(typeof c.customClass[g]!="string"&&!c.customClass[g].forEach){p(`Invalid type of customClass.${g}! Expected string or iterable object, got "${typeof c.customClass[g]}"`);return}I(a,c.customClass[g])}},b=(a,c)=>{if(!c)return null;switch(c){case"select":case"textarea":case"file":return a.querySelector(`.${i.popup} > .${i[c]}`);case"checkbox":return a.querySelector(`.${i.popup} > .${i.checkbox} input`);case"radio":return a.querySelector(`.${i.popup} > .${i.radio} input:checked`)||a.querySelector(`.${i.popup} > .${i.radio} input:first-child`);case"range":return a.querySelector(`.${i.popup} > .${i.range} input`);default:return a.querySelector(`.${i.popup} > .${i.input}`)}},S=a=>{if(a.focus(),a.type!=="file"){const c=a.value;a.value="",a.value=c}},L=(a,c,g)=>{!a||!c||(typeof c=="string"&&(c=c.split(/\s+/).filter(Boolean)),c.forEach(v=>{Array.isArray(a)?a.forEach(B=>{g?B.classList.add(v):B.classList.remove(v)}):g?a.classList.add(v):a.classList.remove(v)}))},I=(a,c)=>{L(a,c,!0)},j=(a,c)=>{L(a,c,!1)},X=(a,c)=>{const g=Array.from(a.children);for(let v=0;v<g.length;v++){const B=g[v];if(B instanceof HTMLElement&&et(B,c))return B}},ne=(a,c,g)=>{g===`${parseInt(g)}`&&(g=parseInt(g)),g||parseInt(g)===0?a.style[c]=typeof g=="number"?`${g}px`:g:a.style.removeProperty(c)},q=function(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";a.style.display=c},K=a=>{a.style.display="none"},W=(a,c,g,v)=>{const B=a.querySelector(c);B&&(B.style[g]=v)},ce=function(a,c){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";c?q(a,g):K(a)},R=a=>!!(a&&(a.offsetWidth||a.offsetHeight||a.getClientRects().length)),ue=()=>!R(ae())&&!R(D())&&!R(Ue()),h=a=>a.scrollHeight>a.clientHeight,w=a=>{const c=window.getComputedStyle(a),g=parseFloat(c.getPropertyValue("animation-duration")||"0"),v=parseFloat(c.getPropertyValue("transition-duration")||"0");return g>0||v>0},_=function(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=Le();R(g)&&(c&&(g.style.transition="none",g.style.width="100%"),setTimeout(()=>{g.style.transition=`width ${a/1e3}s linear`,g.style.width="0%"},10))},C=()=>{const a=Le(),c=parseInt(window.getComputedStyle(a).width);a.style.removeProperty("transition"),a.style.width="100%";const g=parseInt(window.getComputedStyle(a).width),v=c/g*100;a.style.width=`${v}%`},P=100,k={},F=()=>{k.previousActiveElement instanceof HTMLElement?(k.previousActiveElement.focus(),k.previousActiveElement=null):document.body&&document.body.focus()},H=a=>new Promise(c=>{if(!a)return c();const g=window.scrollX,v=window.scrollY;k.restoreFocusTimeout=setTimeout(()=>{F(),c()},P),window.scrollTo(g,v)}),Y=()=>typeof window>"u"||typeof document>"u",$e=`
 <div aria-labelledby="${i.title}" aria-describedby="${i["html-container"]}" class="${i.popup}" tabindex="-1">
   <button type="button" class="${i.close}"></button>
   <ul class="${i["progress-steps"]}"></ul>
   <div class="${i.icon}"></div>
   <img class="${i.image}" />
   <h2 class="${i.title}" id="${i.title}"></h2>
   <div class="${i["html-container"]}" id="${i["html-container"]}"></div>
   <input class="${i.input}" />
   <input type="file" class="${i.file}" />
   <div class="${i.range}">
     <input type="range" />
     <output></output>
   </div>
   <select class="${i.select}"></select>
   <div class="${i.radio}"></div>
   <label for="${i.checkbox}" class="${i.checkbox}">
     <input type="checkbox" />
     <span class="${i.label}"></span>
   </label>
   <textarea class="${i.textarea}"></textarea>
   <div class="${i["validation-message"]}" id="${i["validation-message"]}"></div>
   <div class="${i.actions}">
     <div class="${i.loader}"></div>
     <button type="button" class="${i.confirm}"></button>
     <button type="button" class="${i.deny}"></button>
     <button type="button" class="${i.cancel}"></button>
   </div>
   <div class="${i.footer}"></div>
   <div class="${i["timer-progress-bar-container"]}">
     <div class="${i["timer-progress-bar"]}"></div>
   </div>
 </div>
`.replace(/(^|\n)\s*/g,""),_e=()=>{const a=T();return a?(a.remove(),j([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},he=()=>{k.currentInstance.resetValidationMessage()},Ne=()=>{const a=U(),c=X(a,i.input),g=X(a,i.file),v=a.querySelector(`.${i.range} input`),B=a.querySelector(`.${i.range} output`),ve=X(a,i.select),We=a.querySelector(`.${i.checkbox} input`),Lt=X(a,i.textarea);c.oninput=he,g.onchange=he,ve.onchange=he,We.onchange=he,Lt.oninput=he,v.oninput=()=>{he(),B.value=v.value},v.onchange=()=>{he(),B.value=v.value}},xt=a=>typeof a=="string"?document.querySelector(a):a,mt=a=>{const c=U();c.setAttribute("role",a.toast?"alert":"dialog"),c.setAttribute("aria-live",a.toast?"polite":"assertive"),a.toast||c.setAttribute("aria-modal","true")},Vs=a=>{window.getComputedStyle(a).direction==="rtl"&&I(T(),i.rtl)},Ws=a=>{const c=_e();if(Y()){m("SweetAlert2 requires document to initialize");return}const g=document.createElement("div");g.className=i.container,c&&I(g,i["no-transition"]),ct(g,$e);const v=xt(a.target);v.appendChild(g),mt(a),Vs(v),Ne()},_l=(a,c)=>{a instanceof HTMLElement?c.appendChild(a):typeof a=="object"?vk(a,c):a&&ct(c,a)},vk=(a,c)=>{a.jquery?_k(c,a):ct(c,a.toString())},_k=(a,c)=>{if(a.textContent="",0 in c)for(let g=0;g in c;g++)a.appendChild(c[g].cloneNode(!0));else a.appendChild(c.cloneNode(!0))},Ks=(()=>{if(Y())return!1;const a=document.createElement("div"),c={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const g in c)if(Object.prototype.hasOwnProperty.call(c,g)&&typeof a.style[g]<"u")return c[g];return!1})(),xk=()=>{const a=document.createElement("div");a.className=i["scrollbar-measure"],document.body.appendChild(a);const c=a.getBoundingClientRect().width-a.clientWidth;return document.body.removeChild(a),c},Ck=(a,c)=>{const g=me(),v=N();!c.showConfirmButton&&!c.showDenyButton&&!c.showCancelButton?K(g):q(g),at(g,c,"actions"),$k(g,v,c),ct(v,c.loaderHtml),at(v,c,"loader")};function $k(a,c,g){const v=ae(),B=D(),ve=Ue();xl(v,"confirm",g),xl(B,"deny",g),xl(ve,"cancel",g),kk(v,B,ve,g),g.reverseButtons&&(g.toast?(a.insertBefore(ve,v),a.insertBefore(B,v)):(a.insertBefore(ve,c),a.insertBefore(B,c),a.insertBefore(v,c)))}function kk(a,c,g,v){if(!v.buttonsStyling){j([a,c,g],i.styled);return}I([a,c,g],i.styled),v.confirmButtonColor&&(a.style.backgroundColor=v.confirmButtonColor,I(a,i["default-outline"])),v.denyButtonColor&&(c.style.backgroundColor=v.denyButtonColor,I(c,i["default-outline"])),v.cancelButtonColor&&(g.style.backgroundColor=v.cancelButtonColor,I(g,i["default-outline"]))}function xl(a,c,g){ce(a,g[`show${f(c)}Button`],"inline-block"),ct(a,g[`${c}ButtonText`]),a.setAttribute("aria-label",g[`${c}ButtonAriaLabel`]),a.className=i[c],at(a,g,`${c}Button`),I(a,g[`${c}ButtonClass`])}const Sk=(a,c)=>{const g=Xe();ct(g,c.closeButtonHtml),at(g,c,"closeButton"),ce(g,c.showCloseButton),g.setAttribute("aria-label",c.closeButtonAriaLabel)},Ek=(a,c)=>{const g=T();!g||(Ak(g,c.backdrop),Pk(g,c.position),Ok(g,c.grow),at(g,c,"container"))};function Ak(a,c){typeof c=="string"?a.style.background=c:c||I([document.documentElement,document.body],i["no-backdrop"])}function Pk(a,c){c in i?I(a,i[c]):(p('The "position" parameter is not valid, defaulting to "center"'),I(a,i.center))}function Ok(a,c){if(c&&typeof c=="string"){const g=`grow-${c}`;g in i&&I(a,i[g])}}const Ik=["input","file","range","select","radio","checkbox","textarea"],Tk=(a,c)=>{const g=U(),v=n.innerParams.get(a),B=!v||c.input!==v.input;Ik.forEach(ve=>{const We=X(g,i[ve]);Bk(ve,c.inputAttributes),We.className=i[ve],B&&K(We)}),c.input&&(B&&Lk(c),Dk(c))},Lk=a=>{if(!Pt[a.input]){m(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${a.input}"`);return}const c=cp(a.input),g=Pt[a.input](c,a);q(c),a.inputAutoFocus&&setTimeout(()=>{S(g)})},Mk=a=>{for(let c=0;c<a.attributes.length;c++){const g=a.attributes[c].name;["type","value","style"].includes(g)||a.removeAttribute(g)}},Bk=(a,c)=>{const g=b(U(),a);if(!!g){Mk(g);for(const v in c)g.setAttribute(v,c[v])}},Dk=a=>{const c=cp(a.input);typeof a.customClass=="object"&&I(c,a.customClass.input)},Cl=(a,c)=>{(!a.placeholder||c.inputPlaceholder)&&(a.placeholder=c.inputPlaceholder)},Js=(a,c,g)=>{if(g.inputLabel){a.id=i.input;const v=document.createElement("label"),B=i["input-label"];v.setAttribute("for",a.id),v.className=B,typeof g.customClass=="object"&&I(v,g.customClass.inputLabel),v.innerText=g.inputLabel,c.insertAdjacentElement("beforebegin",v)}},cp=a=>X(U(),i[a]||i.input),$r=(a,c)=>{["string","number"].includes(typeof c)?a.value=`${c}`:O(c)||p(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof c}"`)},Pt={};Pt.text=Pt.email=Pt.password=Pt.number=Pt.tel=Pt.url=(a,c)=>($r(a,c.inputValue),Js(a,a,c),Cl(a,c),a.type=c.input,a),Pt.file=(a,c)=>(Js(a,a,c),Cl(a,c),a),Pt.range=(a,c)=>{const g=a.querySelector("input"),v=a.querySelector("output");return $r(g,c.inputValue),g.type=c.input,$r(v,c.inputValue),Js(g,a,c),a},Pt.select=(a,c)=>{if(a.textContent="",c.inputPlaceholder){const g=document.createElement("option");ct(g,c.inputPlaceholder),g.value="",g.disabled=!0,g.selected=!0,a.appendChild(g)}return Js(a,a,c),a},Pt.radio=a=>(a.textContent="",a),Pt.checkbox=(a,c)=>{const g=b(U(),"checkbox");g.value="1",g.id=i.checkbox,g.checked=Boolean(c.inputValue);const v=a.querySelector("span");return ct(v,c.inputPlaceholder),g},Pt.textarea=(a,c)=>{$r(a,c.inputValue),Cl(a,c),Js(a,a,c);const g=v=>parseInt(window.getComputedStyle(v).marginLeft)+parseInt(window.getComputedStyle(v).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const v=parseInt(window.getComputedStyle(U()).width),B=()=>{const ve=a.offsetWidth+g(a);ve>v?U().style.width=`${ve}px`:U().style.width=null};new MutationObserver(B).observe(a,{attributes:!0,attributeFilter:["style"]})}}),a};const Nk=(a,c)=>{const g=Pe();at(g,c,"htmlContainer"),c.html?(_l(c.html,g),q(g,"block")):c.text?(g.textContent=c.text,q(g,"block")):K(g),Tk(a,c)},Rk=(a,c)=>{const g=Se();ce(g,c.footer),c.footer&&_l(c.footer,g),at(g,c,"footer")},Fk=(a,c)=>{const g=n.innerParams.get(a),v=se();if(g&&c.icon===g.icon){dp(v,c),up(v,c);return}if(!c.icon&&!c.iconHtml){K(v);return}if(c.icon&&Object.keys(r).indexOf(c.icon)===-1){m(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${c.icon}"`),K(v);return}q(v),dp(v,c),up(v,c),I(v,c.showClass.icon)},up=(a,c)=>{for(const g in r)c.icon!==g&&j(a,r[g]);I(a,r[c.icon]),zk(a,c),jk(),at(a,c,"icon")},jk=()=>{const a=U(),c=window.getComputedStyle(a).getPropertyValue("background-color"),g=a.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let v=0;v<g.length;v++)g[v].style.backgroundColor=c},Uk=`
  <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>
`,Hk=`
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`,dp=(a,c)=>{let g=a.innerHTML,v;c.iconHtml?v=fp(c.iconHtml):c.icon==="success"?(v=Uk,g=g.replace(/ style=".*?"/g,"")):c.icon==="error"?v=Hk:v=fp({question:"?",warning:"!",info:"i"}[c.icon]),g.trim()!==v.trim()&&ct(a,v)},zk=(a,c)=>{if(!!c.iconColor){a.style.color=c.iconColor,a.style.borderColor=c.iconColor;for(const g of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])W(a,g,"backgroundColor",c.iconColor);W(a,".swal2-success-ring","borderColor",c.iconColor)}},fp=a=>`<div class="${i["icon-content"]}">${a}</div>`,qk=(a,c)=>{const g=pe();if(!c.imageUrl){K(g);return}q(g,""),g.setAttribute("src",c.imageUrl),g.setAttribute("alt",c.imageAlt),ne(g,"width",c.imageWidth),ne(g,"height",c.imageHeight),g.className=i.image,at(g,c,"image")},Vk=(a,c)=>{const g=T(),v=U();c.toast?(ne(g,"width",c.width),v.style.width="100%",v.insertBefore(N(),se())):ne(v,"width",c.width),ne(v,"padding",c.padding),c.color&&(v.style.color=c.color),c.background&&(v.style.background=c.background),K(Ee()),Wk(v,c)},Wk=(a,c)=>{a.className=`${i.popup} ${R(a)?c.showClass.popup:""}`,c.toast?(I([document.documentElement,document.body],i["toast-shown"]),I(a,i.toast)):I(a,i.modal),at(a,c,"popup"),typeof c.customClass=="string"&&I(a,c.customClass),c.icon&&I(a,i[`icon-${c.icon}`])},Kk=(a,c)=>{const g=re();if(!c.progressSteps||c.progressSteps.length===0){K(g);return}q(g),g.textContent="",c.currentProgressStep>=c.progressSteps.length&&p("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),c.progressSteps.forEach((v,B)=>{const ve=Jk(v);if(g.appendChild(ve),B===c.currentProgressStep&&I(ve,i["active-progress-step"]),B!==c.progressSteps.length-1){const We=Gk(c);g.appendChild(We)}})},Jk=a=>{const c=document.createElement("li");return I(c,i["progress-step"]),ct(c,a),c},Gk=a=>{const c=document.createElement("li");return I(c,i["progress-step-line"]),a.progressStepsDistance&&ne(c,"width",a.progressStepsDistance),c},Yk=(a,c)=>{const g=de();ce(g,c.title||c.titleText,"block"),c.title&&_l(c.title,g),c.titleText&&(g.innerText=c.titleText),at(g,c,"title")},pp=(a,c)=>{Vk(a,c),Ek(a,c),Kk(a,c),Fk(a,c),qk(a,c),Yk(a,c),Sk(a,c),Nk(a,c),Ck(a,c),Rk(a,c),typeof c.didRender=="function"&&c.didRender(U())};function hp(){const a=n.innerParams.get(this);if(!a)return;const c=n.domCache.get(this);K(c.loader),$n()?a.icon&&q(se()):Xk(c),j([c.popup,c.actions],i.loading),c.popup.removeAttribute("aria-busy"),c.popup.removeAttribute("data-loading"),c.confirmButton.disabled=!1,c.denyButton.disabled=!1,c.cancelButton.disabled=!1}const Xk=a=>{const c=a.popup.getElementsByClassName(a.loader.getAttribute("data-button-to-replace"));c.length?q(c[0],"inline-block"):ue()&&K(a.actions)};function Qk(a){const c=n.innerParams.get(a||this),g=n.domCache.get(a||this);return g?b(g.popup,c.input):null}const Zk=()=>R(U()),mp=()=>ae()&&ae().click(),eS=()=>D()&&D().click(),tS=()=>Ue()&&Ue().click(),Yo=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),gp=a=>{a.keydownTarget&&a.keydownHandlerAdded&&(a.keydownTarget.removeEventListener("keydown",a.keydownHandler,{capture:a.keydownListenerCapture}),a.keydownHandlerAdded=!1)},nS=(a,c,g,v)=>{gp(c),g.toast||(c.keydownHandler=B=>sS(a,B,v),c.keydownTarget=g.keydownListenerCapture?window:U(),c.keydownListenerCapture=g.keydownListenerCapture,c.keydownTarget.addEventListener("keydown",c.keydownHandler,{capture:c.keydownListenerCapture}),c.keydownHandlerAdded=!0)},$l=(a,c)=>{const g=It();if(g.length){a=a+c,a===g.length?a=0:a===-1&&(a=g.length-1),g[a].focus();return}U().focus()},wp=["ArrowRight","ArrowDown"],oS=["ArrowLeft","ArrowUp"],sS=(a,c,g)=>{const v=n.innerParams.get(a);!v||c.isComposing||c.keyCode===229||(v.stopKeydownPropagation&&c.stopPropagation(),c.key==="Enter"?iS(a,c,v):c.key==="Tab"?rS(c):[...wp,...oS].includes(c.key)?aS(c.key):c.key==="Escape"&&lS(c,v,g))},iS=(a,c,g)=>{if(!!A(g.allowEnterKey)&&c.target&&a.getInput()&&c.target instanceof HTMLElement&&c.target.outerHTML===a.getInput().outerHTML){if(["textarea","file"].includes(g.input))return;mp(),c.preventDefault()}},rS=a=>{const c=a.target,g=It();let v=-1;for(let B=0;B<g.length;B++)if(c===g[B]){v=B;break}a.shiftKey?$l(v,-1):$l(v,1),a.stopPropagation(),a.preventDefault()},aS=a=>{const c=ae(),g=D(),v=Ue(),B=[c,g,v];if(document.activeElement instanceof HTMLElement&&!B.includes(document.activeElement))return;const ve=wp.includes(a)?"nextElementSibling":"previousElementSibling";let We=document.activeElement;for(let Lt=0;Lt<me().children.length;Lt++){if(We=We[ve],!We)return;if(We instanceof HTMLButtonElement&&R(We))break}We instanceof HTMLButtonElement&&We.focus()},lS=(a,c,g)=>{A(c.allowEscapeKey)&&(a.preventDefault(),g(Yo.esc))};var Gs={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const cS=()=>{Array.from(document.body.children).forEach(c=>{c===T()||c.contains(T())||(c.hasAttribute("aria-hidden")&&c.setAttribute("data-previous-aria-hidden",c.getAttribute("aria-hidden")),c.setAttribute("aria-hidden","true"))})},yp=()=>{Array.from(document.body.children).forEach(c=>{c.hasAttribute("data-previous-aria-hidden")?(c.setAttribute("aria-hidden",c.getAttribute("data-previous-aria-hidden")),c.removeAttribute("data-previous-aria-hidden")):c.removeAttribute("aria-hidden")})},uS=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!et(document.body,i.iosfix)){const c=document.body.scrollTop;document.body.style.top=`${c*-1}px`,I(document.body,i.iosfix),fS(),dS()}},dS=()=>{const a=navigator.userAgent,c=!!a.match(/iPad/i)||!!a.match(/iPhone/i),g=!!a.match(/WebKit/i);c&&g&&!a.match(/CriOS/i)&&U().scrollHeight>window.innerHeight-44&&(T().style.paddingBottom=`${44}px`)},fS=()=>{const a=T();let c;a.ontouchstart=g=>{c=pS(g)},a.ontouchmove=g=>{c&&(g.preventDefault(),g.stopPropagation())}},pS=a=>{const c=a.target,g=T();return hS(a)||mS(a)?!1:c===g||!h(g)&&c instanceof HTMLElement&&c.tagName!=="INPUT"&&c.tagName!=="TEXTAREA"&&!(h(Pe())&&Pe().contains(c))},hS=a=>a.touches&&a.touches.length&&a.touches[0].touchType==="stylus",mS=a=>a.touches&&a.touches.length>1,gS=()=>{if(et(document.body,i.iosfix)){const a=parseInt(document.body.style.top,10);j(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=a*-1}},wS=()=>{_t.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(_t.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${_t.previousBodyPadding+xk()}px`)},yS=()=>{_t.previousBodyPadding!==null&&(document.body.style.paddingRight=`${_t.previousBodyPadding}px`,_t.previousBodyPadding=null)};function bp(a,c,g,v){$n()?vp(a,v):(H(g).then(()=>vp(a,v)),gp(k)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(c.setAttribute("style","display:none !important"),c.removeAttribute("class"),c.innerHTML=""):c.remove(),Tt()&&(yS(),gS(),yp()),bS()}function bS(){j([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function kr(a){a=CS(a);const c=Gs.swalPromiseResolve.get(this),g=_S(this);this.isAwaitingPromise()?a.isDismissed||(Ys(this),c(a)):g&&c(a)}function vS(){return!!n.awaitingPromise.get(this)}const _S=a=>{const c=U();if(!c)return!1;const g=n.innerParams.get(a);if(!g||et(c,g.hideClass.popup))return!1;j(c,g.showClass.popup),I(c,g.hideClass.popup);const v=T();return j(v,g.showClass.backdrop),I(v,g.hideClass.backdrop),$S(a,c,g),!0};function xS(a){const c=Gs.swalPromiseReject.get(this);Ys(this),c&&c(a)}const Ys=a=>{a.isAwaitingPromise()&&(n.awaitingPromise.delete(a),n.innerParams.get(a)||a._destroy())},CS=a=>typeof a>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},a),$S=(a,c,g)=>{const v=T(),B=Ks&&w(c);typeof g.willClose=="function"&&g.willClose(c),B?kS(a,c,v,g.returnFocus,g.didClose):bp(a,v,g.returnFocus,g.didClose)},kS=(a,c,g,v,B)=>{k.swalCloseEventFinishedCallback=bp.bind(null,a,g,v,B),c.addEventListener(Ks,function(ve){ve.target===c&&(k.swalCloseEventFinishedCallback(),delete k.swalCloseEventFinishedCallback)})},vp=(a,c)=>{setTimeout(()=>{typeof c=="function"&&c.bind(a.params)(),a._destroy()})};function _p(a,c,g){const v=n.domCache.get(a);c.forEach(B=>{v[B].disabled=g})}function xp(a,c){if(!!a)if(a.type==="radio"){const v=a.parentNode.parentNode.querySelectorAll("input");for(let B=0;B<v.length;B++)v[B].disabled=c}else a.disabled=c}function SS(){_p(this,["confirmButton","denyButton","cancelButton"],!1)}function ES(){_p(this,["confirmButton","denyButton","cancelButton"],!0)}function AS(){xp(this.getInput(),!1)}function PS(){xp(this.getInput(),!0)}function OS(a){const c=n.domCache.get(this),g=n.innerParams.get(this);ct(c.validationMessage,a),c.validationMessage.className=i["validation-message"],g.customClass&&g.customClass.validationMessage&&I(c.validationMessage,g.customClass.validationMessage),q(c.validationMessage);const v=this.getInput();v&&(v.setAttribute("aria-invalid",!0),v.setAttribute("aria-describedby",i["validation-message"]),S(v),I(v,i.inputerror))}function IS(){const a=n.domCache.get(this);a.validationMessage&&K(a.validationMessage);const c=this.getInput();c&&(c.removeAttribute("aria-invalid"),c.removeAttribute("aria-describedby"),j(c,i.inputerror))}const Xo={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},TS=["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"],LS={},MS=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Cp=a=>Object.prototype.hasOwnProperty.call(Xo,a),$p=a=>TS.indexOf(a)!==-1,kl=a=>LS[a],BS=a=>{Cp(a)||p(`Unknown parameter "${a}"`)},DS=a=>{MS.includes(a)&&p(`The parameter "${a}" is incompatible with toasts`)},NS=a=>{kl(a)&&E(a,kl(a))},RS=a=>{a.backdrop===!1&&a.allowOutsideClick&&p('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const c in a)BS(c),a.toast&&DS(c),NS(c)};function FS(a){const c=U(),g=n.innerParams.get(this);if(!c||et(c,g.hideClass.popup)){p("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 v=jS(a),B=Object.assign({},g,v);pp(this,B),n.innerParams.set(this,B),Object.defineProperties(this,{params:{value:Object.assign({},this.params,a),writable:!1,enumerable:!0}})}const jS=a=>{const c={};return Object.keys(a).forEach(g=>{$p(g)?c[g]=a[g]:p(`Invalid parameter to update: ${g}`)}),c};function US(){const a=n.domCache.get(this),c=n.innerParams.get(this);if(!c){kp(this);return}a.popup&&k.swalCloseEventFinishedCallback&&(k.swalCloseEventFinishedCallback(),delete k.swalCloseEventFinishedCallback),typeof c.didDestroy=="function"&&c.didDestroy(),HS(this)}const HS=a=>{kp(a),delete a.params,delete k.keydownHandler,delete k.keydownTarget,delete k.currentInstance},kp=a=>{a.isAwaitingPromise()?(Sl(n,a),n.awaitingPromise.set(a,!0)):(Sl(Gs,a),Sl(n,a))},Sl=(a,c)=>{for(const g in a)a[g].delete(c)};var Sp=Object.freeze({__proto__:null,_destroy:US,close:kr,closeModal:kr,closePopup:kr,closeToast:kr,disableButtons:ES,disableInput:PS,disableLoading:hp,enableButtons:SS,enableInput:AS,getInput:Qk,handleAwaitingPromise:Ys,hideLoading:hp,isAwaitingPromise:vS,rejectPromise:xS,resetValidationMessage:IS,showValidationMessage:OS,update:FS});const Qo=a=>{let c=U();c||new Er,c=U();const g=N();$n()?K(se()):zS(c,a),q(g),c.setAttribute("data-loading","true"),c.setAttribute("aria-busy","true"),c.focus()},zS=(a,c)=>{const g=me(),v=N();!c&&R(ae())&&(c=ae()),q(g),c&&(K(c),v.setAttribute("data-button-to-replace",c.className)),v.parentNode.insertBefore(v,c),I([a,g],i.loading)},qS=(a,c)=>{c.input==="select"||c.input==="radio"?GS(a,c):["text","email","number","tel","textarea"].includes(c.input)&&(M(c.inputValue)||O(c.inputValue))&&(Qo(ae()),YS(a,c))},VS=(a,c)=>{const g=a.getInput();if(!g)return null;switch(c.input){case"checkbox":return WS(g);case"radio":return KS(g);case"file":return JS(g);default:return c.inputAutoTrim?g.value.trim():g.value}},WS=a=>a.checked?1:0,KS=a=>a.checked?a.value:null,JS=a=>a.files.length?a.getAttribute("multiple")!==null?a.files:a.files[0]:null,GS=(a,c)=>{const g=U(),v=B=>{XS[c.input](g,El(B),c)};M(c.inputOptions)||O(c.inputOptions)?(Qo(ae()),V(c.inputOptions).then(B=>{a.hideLoading(),v(B)})):typeof c.inputOptions=="object"?v(c.inputOptions):m(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof c.inputOptions}`)},YS=(a,c)=>{const g=a.getInput();K(g),V(c.inputValue).then(v=>{g.value=c.input==="number"?`${parseFloat(v)||0}`:`${v}`,q(g),g.focus(),a.hideLoading()}).catch(v=>{m(`Error in inputValue promise: ${v}`),g.value="",q(g),g.focus(),a.hideLoading()})},XS={select:(a,c,g)=>{const v=X(a,i.select),B=(ve,We,Lt)=>{const Ct=document.createElement("option");Ct.value=Lt,ct(Ct,We),Ct.selected=Ep(Lt,g.inputValue),ve.appendChild(Ct)};c.forEach(ve=>{const We=ve[0],Lt=ve[1];if(Array.isArray(Lt)){const Ct=document.createElement("optgroup");Ct.label=We,Ct.disabled=!1,v.appendChild(Ct),Lt.forEach(es=>B(Ct,es[1],es[0]))}else B(v,Lt,We)}),v.focus()},radio:(a,c,g)=>{const v=X(a,i.radio);c.forEach(ve=>{const We=ve[0],Lt=ve[1],Ct=document.createElement("input"),es=document.createElement("label");Ct.type="radio",Ct.name=i.radio,Ct.value=We,Ep(We,g.inputValue)&&(Ct.checked=!0);const Il=document.createElement("span");ct(Il,Lt),Il.className=i.label,es.appendChild(Ct),es.appendChild(Il),v.appendChild(es)});const B=v.querySelectorAll("input");B.length&&B[0].focus()}},El=a=>{const c=[];return typeof Map<"u"&&a instanceof Map?a.forEach((g,v)=>{let B=g;typeof B=="object"&&(B=El(B)),c.push([v,B])}):Object.keys(a).forEach(g=>{let v=a[g];typeof v=="object"&&(v=El(v)),c.push([g,v])}),c},Ep=(a,c)=>c&&c.toString()===a.toString(),QS=a=>{const c=n.innerParams.get(a);a.disableButtons(),c.input?Ap(a,"confirm"):Pl(a,!0)},ZS=a=>{const c=n.innerParams.get(a);a.disableButtons(),c.returnInputValueOnDeny?Ap(a,"deny"):Al(a,!1)},eE=(a,c)=>{a.disableButtons(),c(Yo.cancel)},Ap=(a,c)=>{const g=n.innerParams.get(a);if(!g.input){m(`The "input" parameter is needed to be set when using returnInputValueOn${f(c)}`);return}const v=VS(a,g);g.inputValidator?tE(a,v,c):a.getInput().checkValidity()?c==="deny"?Al(a,v):Pl(a,v):(a.enableButtons(),a.showValidationMessage(g.validationMessage))},tE=(a,c,g)=>{const v=n.innerParams.get(a);a.disableInput(),Promise.resolve().then(()=>V(v.inputValidator(c,v.validationMessage))).then(ve=>{a.enableButtons(),a.enableInput(),ve?a.showValidationMessage(ve):g==="deny"?Al(a,c):Pl(a,c)})},Al=(a,c)=>{const g=n.innerParams.get(a||void 0);g.showLoaderOnDeny&&Qo(D()),g.preDeny?(n.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>V(g.preDeny(c,g.validationMessage))).then(B=>{B===!1?(a.hideLoading(),Ys(a)):a.close({isDenied:!0,value:typeof B>"u"?c:B})}).catch(B=>Op(a||void 0,B))):a.close({isDenied:!0,value:c})},Pp=(a,c)=>{a.close({isConfirmed:!0,value:c})},Op=(a,c)=>{a.rejectPromise(c)},Pl=(a,c)=>{const g=n.innerParams.get(a||void 0);g.showLoaderOnConfirm&&Qo(),g.preConfirm?(a.resetValidationMessage(),n.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>V(g.preConfirm(c,g.validationMessage))).then(B=>{R(Ee())||B===!1?(a.hideLoading(),Ys(a)):Pp(a,typeof B>"u"?c:B)}).catch(B=>Op(a||void 0,B))):Pp(a,c)},nE=(a,c,g)=>{n.innerParams.get(a).toast?oE(a,c,g):(iE(c),rE(c),aE(a,c,g))},oE=(a,c,g)=>{c.popup.onclick=()=>{const v=n.innerParams.get(a);v&&(sE(v)||v.timer||v.input)||g(Yo.close)}},sE=a=>a.showConfirmButton||a.showDenyButton||a.showCancelButton||a.showCloseButton;let Sr=!1;const iE=a=>{a.popup.onmousedown=()=>{a.container.onmouseup=function(c){a.container.onmouseup=void 0,c.target===a.container&&(Sr=!0)}}},rE=a=>{a.container.onmousedown=()=>{a.popup.onmouseup=function(c){a.popup.onmouseup=void 0,(c.target===a.popup||a.popup.contains(c.target))&&(Sr=!0)}}},aE=(a,c,g)=>{c.container.onclick=v=>{const B=n.innerParams.get(a);if(Sr){Sr=!1;return}v.target===c.container&&A(B.allowOutsideClick)&&g(Yo.backdrop)}},lE=a=>typeof a=="object"&&a.jquery,Ip=a=>a instanceof Element||lE(a),cE=a=>{const c={};return typeof a[0]=="object"&&!Ip(a[0])?Object.assign(c,a[0]):["title","html","icon"].forEach((g,v)=>{const B=a[v];typeof B=="string"||Ip(B)?c[g]=B:B!==void 0&&m(`Unexpected type of ${g}! Expected "string" or "Element", got ${typeof B}`)}),c};function uE(){const a=this;for(var c=arguments.length,g=new Array(c),v=0;v<c;v++)g[v]=arguments[v];return new a(...g)}function dE(a){class c extends this{_main(v,B){return super._main(v,Object.assign({},a,B))}}return c}const fE=()=>k.timeout&&k.timeout.getTimerLeft(),Tp=()=>{if(k.timeout)return C(),k.timeout.stop()},Lp=()=>{if(k.timeout){const a=k.timeout.start();return _(a),a}},pE=()=>{const a=k.timeout;return a&&(a.running?Tp():Lp())},hE=a=>{if(k.timeout){const c=k.timeout.increase(a);return _(c,!0),c}},mE=()=>k.timeout&&k.timeout.isRunning();let Mp=!1;const Ol={};function gE(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Ol[a]=this,Mp||(document.body.addEventListener("click",wE),Mp=!0)}const wE=a=>{for(let c=a.target;c&&c!==document;c=c.parentNode)for(const g in Ol){const v=c.getAttribute(g);if(v){Ol[g].fire({template:v});return}}};var yE=Object.freeze({__proto__:null,argsToParams:cE,bindClickHandler:gE,clickCancel:tS,clickConfirm:mp,clickDeny:eS,enableLoading:Qo,fire:uE,getActions:me,getCancelButton:Ue,getCloseButton:Xe,getConfirmButton:ae,getContainer:T,getDenyButton:D,getFocusableElements:It,getFooter:Se,getHtmlContainer:Pe,getIcon:se,getIconContent:ie,getImage:pe,getInputLabel:J,getLoader:N,getPopup:U,getProgressSteps:re,getTimerLeft:fE,getTimerProgressBar:Le,getTitle:de,getValidationMessage:Ee,increaseTimer:hE,isDeprecatedParameter:kl,isLoading:vt,isTimerRunning:mE,isUpdatableParameter:$p,isValidParameter:Cp,isVisible:Zk,mixin:dE,resumeTimer:Lp,showLoading:Qo,stopTimer:Tp,toggleTimer:pE});class bE{constructor(c,g){this.callback=c,this.remaining=g,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(c){const g=this.running;return g&&this.stop(),this.remaining+=c,g&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Bp=["swal-title","swal-html","swal-footer"],vE=a=>{const c=typeof a.template=="string"?document.querySelector(a.template):a.template;if(!c)return{};const g=c.content;return AE(g),Object.assign(_E(g),xE(g),CE(g),$E(g),kE(g),SE(g),EE(g,Bp))},_E=a=>{const c={};return Array.from(a.querySelectorAll("swal-param")).forEach(v=>{$o(v,["name","value"]);const B=v.getAttribute("name"),ve=v.getAttribute("value");typeof Xo[B]=="boolean"?c[B]=ve!=="false":typeof Xo[B]=="object"?c[B]=JSON.parse(ve):c[B]=ve}),c},xE=a=>{const c={};return Array.from(a.querySelectorAll("swal-function-param")).forEach(v=>{const B=v.getAttribute("name"),ve=v.getAttribute("value");c[B]=new Function(`return ${ve}`)()}),c},CE=a=>{const c={};return Array.from(a.querySelectorAll("swal-button")).forEach(v=>{$o(v,["type","color","aria-label"]);const B=v.getAttribute("type");c[`${B}ButtonText`]=v.innerHTML,c[`show${f(B)}Button`]=!0,v.hasAttribute("color")&&(c[`${B}ButtonColor`]=v.getAttribute("color")),v.hasAttribute("aria-label")&&(c[`${B}ButtonAriaLabel`]=v.getAttribute("aria-label"))}),c},$E=a=>{const c={},g=a.querySelector("swal-image");return g&&($o(g,["src","width","height","alt"]),g.hasAttribute("src")&&(c.imageUrl=g.getAttribute("src")),g.hasAttribute("width")&&(c.imageWidth=g.getAttribute("width")),g.hasAttribute("height")&&(c.imageHeight=g.getAttribute("height")),g.hasAttribute("alt")&&(c.imageAlt=g.getAttribute("alt"))),c},kE=a=>{const c={},g=a.querySelector("swal-icon");return g&&($o(g,["type","color"]),g.hasAttribute("type")&&(c.icon=g.getAttribute("type")),g.hasAttribute("color")&&(c.iconColor=g.getAttribute("color")),c.iconHtml=g.innerHTML),c},SE=a=>{const c={},g=a.querySelector("swal-input");g&&($o(g,["type","label","placeholder","value"]),c.input=g.getAttribute("type")||"text",g.hasAttribute("label")&&(c.inputLabel=g.getAttribute("label")),g.hasAttribute("placeholder")&&(c.inputPlaceholder=g.getAttribute("placeholder")),g.hasAttribute("value")&&(c.inputValue=g.getAttribute("value")));const v=Array.from(a.querySelectorAll("swal-input-option"));return v.length&&(c.inputOptions={},v.forEach(B=>{$o(B,["value"]);const ve=B.getAttribute("value"),We=B.innerHTML;c.inputOptions[ve]=We})),c},EE=(a,c)=>{const g={};for(const v in c){const B=c[v],ve=a.querySelector(B);ve&&($o(ve,[]),g[B.replace(/^swal-/,"")]=ve.innerHTML.trim())}return g},AE=a=>{const c=Bp.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(a.children).forEach(g=>{const v=g.tagName.toLowerCase();c.includes(v)||p(`Unrecognized element <${v}>`)})},$o=(a,c)=>{Array.from(a.attributes).forEach(g=>{c.indexOf(g.name)===-1&&p([`Unrecognized attribute "${g.name}" on <${a.tagName.toLowerCase()}>.`,`${c.length?`Allowed attributes are: ${c.join(", ")}`:"To set the value, use HTML within the element."}`])})},Dp=10,PE=a=>{const c=T(),g=U();typeof a.willOpen=="function"&&a.willOpen(g);const B=window.getComputedStyle(document.body).overflowY;TE(c,g,a),setTimeout(()=>{OE(c,g)},Dp),Tt()&&(IE(c,a.scrollbarPadding,B),cS()),!$n()&&!k.previousActiveElement&&(k.previousActiveElement=document.activeElement),typeof a.didOpen=="function"&&setTimeout(()=>a.didOpen(g)),j(c,i["no-transition"])},Np=a=>{const c=U();if(a.target!==c)return;const g=T();c.removeEventListener(Ks,Np),g.style.overflowY="auto"},OE=(a,c)=>{Ks&&w(c)?(a.style.overflowY="hidden",c.addEventListener(Ks,Np)):a.style.overflowY="auto"},IE=(a,c,g)=>{uS(),c&&g!=="hidden"&&wS(),setTimeout(()=>{a.scrollTop=0})},TE=(a,c,g)=>{I(a,g.showClass.backdrop),c.style.setProperty("opacity","0","important"),q(c,"grid"),setTimeout(()=>{I(c,g.showClass.popup),c.style.removeProperty("opacity")},Dp),I([document.documentElement,document.body],i.shown),g.heightAuto&&g.backdrop&&!g.toast&&I([document.documentElement,document.body],i["height-auto"])};var Rp={email:(a,c)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(a)?Promise.resolve():Promise.resolve(c||"Invalid email address"),url:(a,c)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(a)?Promise.resolve():Promise.resolve(c||"Invalid URL")};function LE(a){a.inputValidator||Object.keys(Rp).forEach(c=>{a.input===c&&(a.inputValidator=Rp[c])})}function ME(a){(!a.target||typeof a.target=="string"&&!document.querySelector(a.target)||typeof a.target!="string"&&!a.target.appendChild)&&(p('Target parameter is not valid, defaulting to "body"'),a.target="body")}function BE(a){LE(a),a.showLoaderOnConfirm&&!a.preConfirm&&p(`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`),ME(a),typeof a.title=="string"&&(a.title=a.title.split(`
`).join("<br />")),Ws(a)}let rn;class Zo{constructor(){if(typeof window>"u")return;rn=this;for(var c=arguments.length,g=new Array(c),v=0;v<c;v++)g[v]=arguments[v];const B=Object.freeze(this.constructor.argsToParams(g));Object.defineProperties(this,{params:{value:B,writable:!1,enumerable:!0,configurable:!0}});const ve=rn._main(rn.params);n.promise.set(this,ve)}_main(c){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};RS(Object.assign({},g,c)),k.currentInstance&&(k.currentInstance._destroy(),Tt()&&yp()),k.currentInstance=rn;const v=NE(c,g);BE(v),Object.freeze(v),k.timeout&&(k.timeout.stop(),delete k.timeout),clearTimeout(k.restoreFocusTimeout);const B=RE(rn);return pp(rn,v),n.innerParams.set(rn,v),DE(rn,B,v)}then(c){return n.promise.get(this).then(c)}finally(c){return n.promise.get(this).finally(c)}}const DE=(a,c,g)=>new Promise((v,B)=>{const ve=We=>{a.close({isDismissed:!0,dismiss:We})};Gs.swalPromiseResolve.set(a,v),Gs.swalPromiseReject.set(a,B),c.confirmButton.onclick=()=>{QS(a)},c.denyButton.onclick=()=>{ZS(a)},c.cancelButton.onclick=()=>{eE(a,ve)},c.closeButton.onclick=()=>{ve(Yo.close)},nE(a,c,ve),nS(a,k,g,ve),qS(a,g),PE(g),FE(k,g,ve),jE(c,g),setTimeout(()=>{c.container.scrollTop=0})}),NE=(a,c)=>{const g=vE(a),v=Object.assign({},Xo,c,g,a);return v.showClass=Object.assign({},Xo.showClass,v.showClass),v.hideClass=Object.assign({},Xo.hideClass,v.hideClass),v},RE=a=>{const c={popup:U(),container:T(),actions:me(),confirmButton:ae(),denyButton:D(),cancelButton:Ue(),loader:N(),closeButton:Xe(),validationMessage:Ee(),progressSteps:re()};return n.domCache.set(a,c),c},FE=(a,c,g)=>{const v=Le();K(v),c.timer&&(a.timeout=new bE(()=>{g("timer"),delete a.timeout},c.timer),c.timerProgressBar&&(q(v),at(v,c,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&_(c.timer)})))},jE=(a,c)=>{if(!c.toast){if(!A(c.allowEnterKey)){HE();return}UE(a,c)||$l(-1,1)}},UE=(a,c)=>c.focusDeny&&R(a.denyButton)?(a.denyButton.focus(),!0):c.focusCancel&&R(a.cancelButton)?(a.cancelButton.focus(),!0):c.focusConfirm&&R(a.confirmButton)?(a.confirmButton.focus(),!0):!1,HE=()=>{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 a=new Date,c=localStorage.getItem("swal-initiation");c?(a.getTime()-Date.parse(c))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const g=document.createElement("audio");g.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",g.loop=!0,document.body.appendChild(g),setTimeout(()=>{g.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${a}`)}Object.assign(Zo.prototype,Sp),Object.assign(Zo,yE),Object.keys(Sp).forEach(a=>{Zo[a]=function(){if(rn)return rn[a](...arguments)}}),Zo.DismissReason=Yo,Zo.version="11.7.2";const Er=Zo;return Er.default=Er,Er}),typeof Sn<"u"&&Sn.Sweetalert2&&(Sn.swal=Sn.sweetAlert=Sn.Swal=Sn.SweetAlert=Sn.Sweetalert2),typeof document<"u"&&function(n,o){var s=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(s),s.styleSheet)s.styleSheet.disabled||(s.styleSheet.cssText=o);else try{s.innerHTML=o}catch{s.innerText=o}}(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}')})(Nl);const ge=Nl.exports,Jp=["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"],Gp=["jpg","jpeg","png","gif","bmp","svg"],Yp=["mp3","wav","wma","ogg","ape","flac","aac"];function Xp(e){return JSON.parse(JSON.stringify(e))}function Or(e,...t){return new e(t[0])}function os(){return Math.floor(Date.now()/1e3)}function Rl(e,t,n="text/plain"){const o=document.createElement("a");document.body.appendChild(o),o.setAttribute("style","display:none");const s=new Blob([e],{type:n}),i=window.URL.createObjectURL(s);o.href=i,o.download=t,o.click(),window.URL.revokeObjectURL(i)}function Yt(e){if(typeof ns=="function")return ns(e,"text"),!0;const t=n=>{var o;(o=n.clipboardData)==null||o.setData("text/plain",e),n.preventDefault(),document.removeEventListener("copy",t)};return document.addEventListener("copy",t),document.execCommand("copy")}function Qp(e,t){return e=e.replace(/^[\\]+/g,""),t?"/"+e:e}function Fl(e){return/^magnet:\?xt=urn:btih/.test(e)}function jl(e){return/^ed2k:\/\/\|file\|/.test(e)}function Ul(e){return`magnet:?xt=urn:btih:${e.toUpperCase()}`}function Hl(e){const t=e.match(/([a-z\d]{32,40})/i);return t?t[1]:""}function Zp(e,t=!0){return(t?/^([a-z\d]{32})$|^([a-z\d]{40})$/i:/^[a-z\d]{32,40}$/i).test(e)}function eh(e,t=location.href){const n=new RegExp("(\\?|#|&)"+e+"=([^&#]*)(&|#|$)"),o=t.match(n);return o?o[2]:""}function Qs(e,t=2){if(Number.isNaN(e)||(e=typeof e=="string"?parseInt(e):e,!e))return"0";const n=1024,o=t,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(o))+" "+s[i]}function zl(e){const t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=new RegExp(`^(\\d+(?:\\.\\d+)?)(${t.join("|")})$`,"i"),o=e.match(n);if(!o)throw new Error(`无效的文件大小!${e}`);const s=parseFloat(o[1]),i=o[2].toUpperCase(),r=t.indexOf(i);if(r<0)throw new Error(`无效的文件大小!${e}`);return s*Math.pow(1024,r)}function ql(e,t=document,n=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE){const o=[],s=document.evaluate(e,t,null,n,null);for(let i=0;i<s.snapshotLength;i++){const r=s.snapshotItem(i);r&&o.push(r)}return o}async function Ao(e,t=100,n=12e4,o=document){const s=e.indexOf("//")===0;function i(r){if(s){const l=ql(e);l.length>0&&r(l)}else{const l=o.querySelectorAll(e);l.length&&r(Array.from(l))}}try{return await Zs(i,t,n)}catch(r){throw console.warn("[find]",r),new Error(`查找元素超时:${e}`)}}async function Xt(e,t=100,n=12e4){const o=e.indexOf("//")===0;function s(i){if(o){const r=ql(e);r.length>0&&i(unsafeWindow.$(r))}else{const r=unsafeWindow.$(e);r.length&&i(r)}}try{return await Zs(s,t,n)}catch(i){throw console.warn("[find]",i),new Error(`查找元素超时:${e}`)}}async function Zs(e,t,n){return new Promise(async(o,s)=>{if(typeof e!="function"){s("提供的参数`fulfill`不是一个Function!");return}let i=!1;e(d=>{i=!0,o(d)});let r=setInterval(async()=>{if(i){clearTimeout(l),clearInterval(r);return}e(d=>{clearTimeout(l),clearInterval(r),o(d)})},t),l=setTimeout(()=>{clearInterval(r),s("超时")},n)})}async function jt(e){return new Promise(t=>{setTimeout(t,e)})}function Vl(e){const t=new URLSearchParams;let n;for(n in e)t.append(n,e[n].toString());return t.toString()}async function fe(e){return ge.fire({toast:!0,position:"top",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:t=>{t.addEventListener("mouseenter",ge.stopTimer),t.addEventListener("mouseleave",ge.resumeTimer)},...e})}function ei(e,t){t=t||window,t.postMessage(e)}function Yn(e,t,n){if(n){const o=Xs(e,{});Pr(e,{...o,...t})}else Pr(e,t)}function an(e,t,n){let o;return function(...s){const i=()=>{o=void 0,n||e.apply(this,s)},r=n&&o===void 0;clearTimeout(o),o=setTimeout(i,t),r&&e.apply(this,s)}}function th(e){return e?Jp.indexOf(e.toLowerCase())>-1:!1}function nh(e){return e?Gp.indexOf(e.toLowerCase())>-1:!1}function oh(e){return e?Yp.indexOf(e.toLowerCase())>-1:!1}var Oe=(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))(Oe||{}),ss=(e=>(e.listItemHover="列表项悬浮菜单",e.listItemHoverSub="列表项悬浮子菜单",e.listItemContext="列表项右键菜单",e.listItemContextSub="列表项右键子菜单",e.selection="选中项菜单",e.selectionSub="选中项子菜单",e.dirContext="当前目录右键菜单",e.dirContextSub="当前目录右键子菜单",e))(ss||{}),Xn=(e=>(e[e.after=0]="after",e[e.before=1]="before",e))(Xn||{});const lt={get:async(e,t)=>Xs(e,t),set:async(e,t)=>Pr(e,t),remove:async e=>Wp(e)},Wl="clouddrive_configs";function Ir(e){return{active:!1,url:"http://localhost:19798",root:"/115",memo:"",...e}}async function Kl(){const e=[Ir()],t=await lt.get(Wl,e);return t||e}async function Jl(e){e.some(t=>t.active)||(e[0].active=!0),await lt.set(Wl,e)}async function Tr(){return(await Kl()).find(t=>t.active)||Ir()}var Lr=(e=>(e.play="play",e.download="download",e))(Lr||{});function Gl(e){return e.startsWith("file://")}async function ti(e,t,n){let{url:o,root:s}=e;if(!o)throw new Error("未设置CloudDrive地址!");(o.startsWith("/")||o.startsWith("\\"))&&(o=`file:///${o}`),Gl(o);const i=/^https?:\/\//.test(o);if(i&&!s)throw new Error("当协议为http/https时,必须设置CloudDrive资源根路径!");s&&(s=s.replace(/^(\/+)?/g,"/")),t=t.replace(/^(\/+)?/g,"/");const r=`${s}${t}`,l=n==="play"?"True":"False";let d="";return i?d=`${o}/static/${o.replace("://","/")}/${l}/${encodeURIComponent(r)}`:(o=o.replace(/\/+$/,""),d=`${o}${r}`),console.log("[Cloud115 Enhancer] buildCloudDriveUrl",d),d}async function Yl(e,t){let{url:n,root:o}=e;if(!n)throw new Error("未设置CloudDrive地址!");return(n.startsWith("/")||n.startsWith("\\"))&&(n=`file:///${n}`),Gl(n)?await ti(e,t,"play"):await ti(e,t,"play")+".clfsplaylist.m3u"}var $t=(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))($t||{});const sh={[-1]:"失败",[0]:"违规",[1]:"下载中",[2]:"成功"};var kt=(e=>(e.all="all",e.failed="failed",e.success="success",e.magnet="magnet",e.magnetEd2k="magnetEd2k",e))(kt||{}),Xl=(e=>(e[e.true=1]="true",e[e.false=0]="false",e))(Xl||{}),gt=(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))(gt||{}),Ze=(e=>(e.all="全部",e.video="视频",e.audio="音频",e.image="图片",e.doc="文档",e.app="应用",e.archive="压缩包",e))(Ze||{}),Ql=(e=>(e.userPtime="user_ptime",e.fileName="file_name",e.fileSize="file_size",e.fileType="file_type",e))(Ql||{});function ih(e){return{offset:0,limit:1150,aid:1,cid:"",format:"json",o:"user_ptime",asc:0,search_value:"",...e}}function Zl(e){return{aid:1,cid:"",o:"user_ptime",asc:0,offset:0,show_dir:1,limit:115,natsort:0,format:"json",...e}}function ec(e,t){return function(){return e.apply(t,arguments)}}const{toString:tc}=Object.prototype,{getPrototypeOf:Mr}=Object,Br=(e=>t=>{const n=tc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ln=e=>(e=e.toLowerCase(),t=>Br(t)===e),ni=e=>t=>typeof t===e,{isArray:Po}=Array,is=ni("undefined");function rh(e){return e!==null&&!is(e)&&e.constructor!==null&&!is(e.constructor)&&En(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nc=ln("ArrayBuffer");function ah(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&nc(e.buffer),t}const lh=ni("string"),En=ni("function"),oc=ni("number"),Dr=e=>e!==null&&typeof e=="object",ch=e=>e===!0||e===!1,oi=e=>{if(Br(e)!=="object")return!1;const t=Mr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},uh=ln("Date"),dh=ln("File"),fh=ln("Blob"),ph=ln("FileList"),hh=e=>Dr(e)&&En(e.pipe),mh=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||tc.call(e)===t||En(e.toString)&&e.toString()===t)},gh=ln("URLSearchParams"),wh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),Po(e))for(o=0,s=e.length;o<s;o++)t.call(null,e[o],o,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(o=0;o<r;o++)l=i[o],t.call(null,e[l],l,e)}}function sc(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,s;for(;o-- >0;)if(s=n[o],t===s.toLowerCase())return s;return null}const ic=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),rc=e=>!is(e)&&e!==ic;function Nr(){const{caseless:e}=rc(this)&&this||{},t={},n=(o,s)=>{const i=e&&sc(t,s)||s;oi(t[i])&&oi(o)?t[i]=Nr(t[i],o):oi(o)?t[i]=Nr({},o):Po(o)?t[i]=o.slice():t[i]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&rs(arguments[o],n);return t}const yh=(e,t,n,{allOwnKeys:o}={})=>(rs(t,(s,i)=>{n&&En(s)?e[i]=ec(s,n):e[i]=s},{allOwnKeys:o}),e),bh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vh=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},_h=(e,t,n,o)=>{let s,i,r;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!o||o(r,e,t))&&!l[r]&&(t[r]=e[r],l[r]=!0);e=n!==!1&&Mr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},xh=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},Ch=e=>{if(!e)return null;if(Po(e))return e;let t=e.length;if(!oc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$h=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mr(Uint8Array)),kh=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Sh=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Eh=ln("HTMLFormElement"),Ah=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),ac=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ph=ln("RegExp"),lc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};rs(n,(s,i)=>{t(s,i,e)!==!1&&(o[i]=s)}),Object.defineProperties(e,o)},Oh=e=>{lc(e,(t,n)=>{if(En(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(!!En(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ih=(e,t)=>{const n={},o=s=>{s.forEach(i=>{n[i]=!0})};return Po(e)?o(e):o(String(e).split(t)),n},Th=()=>{},Lh=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Rr="abcdefghijklmnopqrstuvwxyz",cc="0123456789",uc={DIGIT:cc,ALPHA:Rr,ALPHA_DIGIT:Rr+Rr.toUpperCase()+cc},Mh=(e=16,t=uc.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function Bh(e){return!!(e&&En(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const z={isArray:Po,isArrayBuffer:nc,isBuffer:rh,isFormData:mh,isArrayBufferView:ah,isString:lh,isNumber:oc,isBoolean:ch,isObject:Dr,isPlainObject:oi,isUndefined:is,isDate:uh,isFile:dh,isBlob:fh,isRegExp:Ph,isFunction:En,isStream:hh,isURLSearchParams:gh,isTypedArray:$h,isFileList:ph,forEach:rs,merge:Nr,extend:yh,trim:wh,stripBOM:bh,inherits:vh,toFlatObject:_h,kindOf:Br,kindOfTest:ln,endsWith:xh,toArray:Ch,forEachEntry:kh,matchAll:Sh,isHTMLForm:Eh,hasOwnProperty:ac,hasOwnProp:ac,reduceDescriptors:lc,freezeMethods:Oh,toObjectSet:Ih,toCamelCase:Ah,noop:Th,toFiniteNumber:Lh,findKey:sc,global:ic,isContextDefined:rc,ALPHABET:uc,generateString:Mh,isSpecCompliantForm:Bh,toJSONObject:e=>{const t=new Array(10),n=(o,s)=>{if(Dr(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const i=Po(o)?[]:{};return rs(o,(r,l)=>{const d=n(r,s+1);!is(d)&&(i[l]=d)}),t[s]=void 0,i}}return o};return n(e,0)}};function Fe(e,t,n,o,s){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),o&&(this.request=o),s&&(this.response=s)}z.inherits(Fe,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:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const dc=Fe.prototype,fc={};["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=>{fc[e]={value:e}}),Object.defineProperties(Fe,fc),Object.defineProperty(dc,"isAxiosError",{value:!0}),Fe.from=(e,t,n,o,s,i)=>{const r=Object.create(dc);return z.toFlatObject(e,r,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),Fe.call(r,e.message,t,n,o,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Dh=null;function Fr(e){return z.isPlainObject(e)||z.isArray(e)}function pc(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function hc(e,t,n){return e?e.concat(t).map(function(s,i){return s=pc(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Nh(e){return z.isArray(e)&&!e.some(Fr)}const Rh=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function si(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,M){return!z.isUndefined(M[A])});const o=n.metaTokens,s=n.visitor||p,i=n.dots,r=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(s))throw new TypeError("visitor must be a function");function f(E){if(E===null)return"";if(z.isDate(E))return E.toISOString();if(!d&&z.isBlob(E))throw new Fe("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(E)||z.isTypedArray(E)?d&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function p(E,A,M){let V=E;if(E&&!M&&typeof E=="object"){if(z.endsWith(A,"{}"))A=o?A:A.slice(0,-2),E=JSON.stringify(E);else if(z.isArray(E)&&Nh(E)||(z.isFileList(E)||z.endsWith(A,"[]"))&&(V=z.toArray(E)))return A=pc(A),V.forEach(function(T,Q){!(z.isUndefined(T)||T===null)&&t.append(r===!0?hc([A],Q,i):r===null?A:A+"[]",f(T))}),!1}return Fr(E)?!0:(t.append(hc(M,A,i),f(E)),!1)}const m=[],y=Object.assign(Rh,{defaultVisitor:p,convertValue:f,isVisitable:Fr});function x(E,A){if(!z.isUndefined(E)){if(m.indexOf(E)!==-1)throw Error("Circular reference detected in "+A.join("."));m.push(E),z.forEach(E,function(V,O){(!(z.isUndefined(V)||V===null)&&s.call(t,V,z.isString(O)?O.trim():O,A,y))===!0&&x(V,A?A.concat(O):[O])}),m.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return x(e),t}function mc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function jr(e,t){this._pairs=[],e&&si(e,this,t)}const gc=jr.prototype;gc.append=function(t,n){this._pairs.push([t,n])},gc.toString=function(t){const n=t?function(o){return t.call(this,o,mc)}:mc;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Fh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wc(e,t,n){if(!t)return e;const o=n&&n.encode||Fh,s=n&&n.serialize;let i;if(s?i=s(t,n):i=z.isURLSearchParams(t)?t.toString():new jr(t,n).toString(o),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class jh{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(o){o!==null&&t(o)})}}const yc=jh,bc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uh=typeof URLSearchParams<"u"?URLSearchParams:jr,Hh=typeof FormData<"u"?FormData:null,zh=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),qh=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Qt={isBrowser:!0,classes:{URLSearchParams:Uh,FormData:Hh,Blob},isStandardBrowserEnv:zh,isStandardBrowserWebWorkerEnv:qh,protocols:["http","https","file","blob","url","data"]};function Vh(e,t){return si(e,new Qt.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,i){return Qt.isNode&&z.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Wh(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Kh(e){const t={},n=Object.keys(e);let o;const s=n.length;let i;for(o=0;o<s;o++)i=n[o],t[i]=e[i];return t}function vc(e){function t(n,o,s,i){let r=n[i++];const l=Number.isFinite(+r),d=i>=n.length;return r=!r&&z.isArray(s)?s.length:r,d?(z.hasOwnProp(s,r)?s[r]=[s[r],o]:s[r]=o,!l):((!s[r]||!z.isObject(s[r]))&&(s[r]=[]),t(n,o,s[r],i)&&z.isArray(s[r])&&(s[r]=Kh(s[r])),!l)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(o,s)=>{t(Wh(o),s,n,0)}),n}return null}const Jh={"Content-Type":void 0};function Gh(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const ii={transitional:bc,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,i=z.isObject(t);if(i&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return s&&s?JSON.stringify(vc(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Vh(t,this.formSerializer).toString();if((l=z.isFileList(t))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return si(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Gh(t)):t}],transformResponse:[function(t){const n=this.transitional||ii.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&z.isString(t)&&(o&&!this.responseType||s)){const r=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(r)throw l.name==="SyntaxError"?Fe.from(l,Fe.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qt.classes.FormData,Blob:Qt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};z.forEach(["delete","get","head"],function(t){ii.headers[t]={}}),z.forEach(["post","put","patch"],function(t){ii.headers[t]=z.merge(Jh)});const Ur=ii,Yh=z.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"]),Xh=e=>{const t={};let n,o,s;return e&&e.split(`
`).forEach(function(r){s=r.indexOf(":"),n=r.substring(0,s).trim().toLowerCase(),o=r.substring(s+1).trim(),!(!n||t[n]&&Yh[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},_c=Symbol("internals");function as(e){return e&&String(e).trim().toLowerCase()}function ri(e){return e===!1||e==null?e:z.isArray(e)?e.map(ri):String(e)}function Qh(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}function Zh(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Hr(e,t,n,o,s){if(z.isFunction(o))return o.call(this,t,n);if(s&&(t=n),!!z.isString(t)){if(z.isString(o))return t.indexOf(o)!==-1;if(z.isRegExp(o))return o.test(t)}}function em(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function tm(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,i,r){return this[o].call(this,t,s,i,r)},configurable:!0})})}class ai{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function i(l,d,f){const p=as(d);if(!p)throw new Error("header name must be a non-empty string");const m=z.findKey(s,p);(!m||s[m]===void 0||f===!0||f===void 0&&s[m]!==!1)&&(s[m||d]=ri(l))}const r=(l,d)=>z.forEach(l,(f,p)=>i(f,p,d));return z.isPlainObject(t)||t instanceof this.constructor?r(t,n):z.isString(t)&&(t=t.trim())&&!Zh(t)?r(Xh(t),n):t!=null&&i(n,t,o),this}get(t,n){if(t=as(t),t){const o=z.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return Qh(s);if(z.isFunction(n))return n.call(this,s,o);if(z.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=as(t),t){const o=z.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Hr(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function i(r){if(r=as(r),r){const l=z.findKey(o,r);l&&(!n||Hr(o,o[l],l,n))&&(delete o[l],s=!0)}}return z.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const i=n[o];(!t||Hr(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,o={};return z.forEach(this,(s,i)=>{const r=z.findKey(o,i);if(r){n[r]=ri(s),delete n[i];return}const l=t?em(i):String(i).trim();l!==i&&delete n[i],n[l]=ri(s),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=t&&z.isArray(o)?o.join(", "):o)}),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 o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[_c]=this[_c]={accessors:{}}).accessors,s=this.prototype;function i(r){const l=as(r);o[l]||(tm(s,r),o[l]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}}ai.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.freezeMethods(ai.prototype),z.freezeMethods(ai);const cn=ai;function zr(e,t){const n=this||Ur,o=t||n,s=cn.from(o.headers);let i=o.data;return z.forEach(e,function(l){i=l.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function xc(e){return!!(e&&e.__CANCEL__)}function ls(e,t,n){Fe.call(this,e==null?"canceled":e,Fe.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(ls,Fe,{__CANCEL__:!0});function nm(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new Fe("Request failed with status code "+n.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const om=Qt.isStandardBrowserEnv?function(){return{write:function(n,o,s,i,r,l){const d=[];d.push(n+"="+encodeURIComponent(o)),z.isNumber(s)&&d.push("expires="+new Date(s).toGMTString()),z.isString(i)&&d.push("path="+i),z.isString(r)&&d.push("domain="+r),l===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function sm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function im(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Cc(e,t){return e&&!sm(t)?im(e,t):t}const rm=Qt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function s(i){let r=i;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 o=s(window.location.href),function(r){const l=z.isString(r)?s(r):r;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}();function am(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lm(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,i=0,r;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),p=o[i];r||(r=f),n[s]=d,o[s]=f;let m=i,y=0;for(;m!==s;)y+=n[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-r<t)return;const x=p&&f-p;return x?Math.round(y*1e3/x):void 0}}function $c(e,t){let n=0;const o=lm(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-n,d=o(l),f=i<=r;n=i;const p={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:d||void 0,estimated:d&&r&&f?(r-i)/d:void 0,event:s};p[t?"download":"upload"]=!0,e(p)}}const li={http:Dh,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let s=e.data;const i=cn.from(e.headers).normalize(),r=e.responseType;let l;function d(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}z.isFormData(s)&&(Qt.isStandardBrowserEnv||Qt.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let f=new XMLHttpRequest;if(e.auth){const x=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(x+":"+E))}const p=Cc(e.baseURL,e.url);f.open(e.method.toUpperCase(),wc(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function m(){if(!f)return;const x=cn.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),A={data:!r||r==="text"||r==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:x,config:e,request:f};nm(function(V){n(V),d()},function(V){o(V),d()},A),f=null}if("onloadend"in f?f.onloadend=m:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(m)},f.onabort=function(){!f||(o(new Fe("Request aborted",Fe.ECONNABORTED,e,f)),f=null)},f.onerror=function(){o(new Fe("Network Error",Fe.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const A=e.transitional||bc;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),o(new Fe(E,A.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,f)),f=null},Qt.isStandardBrowserEnv){const x=(e.withCredentials||rm(p))&&e.xsrfCookieName&&om.read(e.xsrfCookieName);x&&i.set(e.xsrfHeaderName,x)}s===void 0&&i.setContentType(null),"setRequestHeader"in f&&z.forEach(i.toJSON(),function(E,A){f.setRequestHeader(A,E)}),z.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),r&&r!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",$c(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",$c(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=x=>{!f||(o(!x||x.type?new ls(null,e,f):x),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const y=am(p);if(y&&Qt.protocols.indexOf(y)===-1){o(new Fe("Unsupported protocol "+y+":",Fe.ERR_BAD_REQUEST,e));return}f.send(s||null)})}};z.forEach(li,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cm={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let s=0;s<t&&(n=e[s],!(o=z.isString(n)?li[n.toLowerCase()]:n));s++);if(!o)throw o===!1?new Fe(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(z.hasOwnProp(li,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!z.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:li};function qr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ls(null,e)}function kc(e){return qr(e),e.headers=cn.from(e.headers),e.data=zr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cm.getAdapter(e.adapter||Ur.adapter)(e).then(function(o){return qr(e),o.data=zr.call(e,e.transformResponse,o),o.headers=cn.from(o.headers),o},function(o){return xc(o)||(qr(e),o&&o.response&&(o.response.data=zr.call(e,e.transformResponse,o.response),o.response.headers=cn.from(o.response.headers))),Promise.reject(o)})}const Sc=e=>e instanceof cn?e.toJSON():e;function Oo(e,t){t=t||{};const n={};function o(f,p,m){return z.isPlainObject(f)&&z.isPlainObject(p)?z.merge.call({caseless:m},f,p):z.isPlainObject(p)?z.merge({},p):z.isArray(p)?p.slice():p}function s(f,p,m){if(z.isUndefined(p)){if(!z.isUndefined(f))return o(void 0,f,m)}else return o(f,p,m)}function i(f,p){if(!z.isUndefined(p))return o(void 0,p)}function r(f,p){if(z.isUndefined(p)){if(!z.isUndefined(f))return o(void 0,f)}else return o(void 0,p)}function l(f,p,m){if(m in t)return o(f,p);if(m in e)return o(void 0,f)}const d={url:i,method:i,data:i,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:l,headers:(f,p)=>s(Sc(f),Sc(p),!0)};return z.forEach(Object.keys(e).concat(Object.keys(t)),function(p){const m=d[p]||s,y=m(e[p],t[p],p);z.isUndefined(y)&&m!==l||(n[p]=y)}),n}const Ec="1.3.3",Vr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vr[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Ac={};Vr.transitional=function(t,n,o){function s(i,r){return"[Axios v"+Ec+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,l)=>{if(t===!1)throw new Fe(s(r," has been removed"+(n?" in "+n:"")),Fe.ERR_DEPRECATED);return n&&!Ac[r]&&(Ac[r]=!0,console.warn(s(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,r,l):!0}};function um(e,t,n){if(typeof e!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const i=o[s],r=t[i];if(r){const l=e[i],d=l===void 0||r(l,i,e);if(d!==!0)throw new Fe("option "+i+" must be "+d,Fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Fe("Unknown option "+i,Fe.ERR_BAD_OPTION)}}const Wr={assertOptions:um,validators:Vr},An=Wr.validators;class ci{constructor(t){this.defaults=t,this.interceptors={request:new yc,response:new yc}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Oo(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:i}=n;o!==void 0&&Wr.assertOptions(o,{silentJSONParsing:An.transitional(An.boolean),forcedJSONParsing:An.transitional(An.boolean),clarifyTimeoutError:An.transitional(An.boolean)},!1),s!==void 0&&Wr.assertOptions(s,{encode:An.function,serialize:An.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r;r=i&&z.merge(i.common,i[n.method]),r&&z.forEach(["delete","get","head","post","put","patch","common"],E=>{delete i[E]}),n.headers=cn.concat(r,i);const l=[];let d=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(d=d&&A.synchronous,l.unshift(A.fulfilled,A.rejected))});const f=[];this.interceptors.response.forEach(function(A){f.push(A.fulfilled,A.rejected)});let p,m=0,y;if(!d){const E=[kc.bind(this),void 0];for(E.unshift.apply(E,l),E.push.apply(E,f),y=E.length,p=Promise.resolve(n);m<y;)p=p.then(E[m++],E[m++]);return p}y=l.length;let x=n;for(m=0;m<y;){const E=l[m++],A=l[m++];try{x=E(x)}catch(M){A.call(this,M);break}}try{p=kc.call(this,x)}catch(E){return Promise.reject(E)}for(m=0,y=f.length;m<y;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=Oo(this.defaults,t);const n=Cc(t.baseURL,t.url);return wc(n,t.params,t.paramsSerializer)}}z.forEach(["delete","get","head","options"],function(t){ci.prototype[t]=function(n,o){return this.request(Oo(o||{},{method:t,url:n,data:(o||{}).data}))}}),z.forEach(["post","put","patch"],function(t){function n(o){return function(i,r,l){return this.request(Oo(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}ci.prototype[t]=n(),ci.prototype[t+"Form"]=n(!0)});const ui=ci;class Kr{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(s=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{o.subscribe(l),i=l}).then(s);return r.cancel=function(){o.unsubscribe(i)},r},t(function(i,r,l){o.reason||(o.reason=new ls(i,r,l),n(o.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 Kr(function(s){t=s}),cancel:t}}}const dm=Kr;function fm(e){return function(n){return e.apply(null,n)}}function pm(e){return z.isObject(e)&&e.isAxiosError===!0}const Jr={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(Jr).forEach(([e,t])=>{Jr[t]=e});const hm=Jr;function Pc(e){const t=new ui(e),n=ec(ui.prototype.request,t);return z.extend(n,ui.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Pc(Oo(e,s))},n}const ot=Pc(Ur);ot.Axios=ui,ot.CanceledError=ls,ot.CancelToken=dm,ot.isCancel=xc,ot.VERSION=Ec,ot.toFormData=si,ot.AxiosError=Fe,ot.Cancel=ot.CanceledError,ot.all=function(t){return Promise.all(t)},ot.spread=fm,ot.isAxiosError=pm,ot.mergeConfig=Oo,ot.AxiosHeaders=cn,ot.formToJSON=e=>vc(z.isHTMLForm(e)?new FormData(e):e),ot.HttpStatusCode=hm,ot.default=ot;const Ut=ot,{Axios:nA,AxiosError:oA,CanceledError:sA,isCancel:iA,CancelToken:rA,VERSION:aA,all:lA,Cancel:cA,isAxiosError:uA,spread:dA,toFormData:mm,AxiosHeaders:fA,HttpStatusCode:pA,formToJSON:hA,mergeConfig:mA}=Ut;class gm extends Error{}class Gr extends gm{constructor(){super(...arguments);Ae(this,"message","搜索失败!")}}class Oc extends Gr{constructor(){super(...arguments);Ae(this,"message","搜索请求响应内容为空!")}}class st{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=st.hexChars,o=st.hexOut;let s,i,r,l;for(l=0;l<4;l+=1)for(i=l*8,s=t[l],r=0;r<8;r+=2)o[i+1+r]=n.charAt(s&15),s>>>=4,o[i+0+r]=n.charAt(s&15),s>>>=4;return o.join("")}static _md5cycle(t,n){let o=t[0],s=t[1],i=t[2],r=t[3];o+=(s&i|~s&r)+n[0]-680876936|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[1]-389564586|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[2]+606105819|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[3]-1044525330|0,s=(s<<22|s>>>10)+i|0,o+=(s&i|~s&r)+n[4]-176418897|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[5]+1200080426|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[6]-1473231341|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[7]-45705983|0,s=(s<<22|s>>>10)+i|0,o+=(s&i|~s&r)+n[8]+1770035416|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[9]-1958414417|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[10]-42063|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[11]-1990404162|0,s=(s<<22|s>>>10)+i|0,o+=(s&i|~s&r)+n[12]+1804603682|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[13]-40341101|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[14]-1502002290|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[15]+1236535329|0,s=(s<<22|s>>>10)+i|0,o+=(s&r|i&~r)+n[1]-165796510|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[6]-1069501632|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[11]+643717713|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[0]-373897302|0,s=(s<<20|s>>>12)+i|0,o+=(s&r|i&~r)+n[5]-701558691|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[10]+38016083|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[15]-660478335|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[4]-405537848|0,s=(s<<20|s>>>12)+i|0,o+=(s&r|i&~r)+n[9]+568446438|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[14]-1019803690|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[3]-187363961|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[8]+1163531501|0,s=(s<<20|s>>>12)+i|0,o+=(s&r|i&~r)+n[13]-1444681467|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[2]-51403784|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[7]+1735328473|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[12]-1926607734|0,s=(s<<20|s>>>12)+i|0,o+=(s^i^r)+n[5]-378558|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[8]-2022574463|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[11]+1839030562|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[14]-35309556|0,s=(s<<23|s>>>9)+i|0,o+=(s^i^r)+n[1]-1530992060|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[4]+1272893353|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[7]-155497632|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[10]-1094730640|0,s=(s<<23|s>>>9)+i|0,o+=(s^i^r)+n[13]+681279174|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[0]-358537222|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[3]-722521979|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[6]+76029189|0,s=(s<<23|s>>>9)+i|0,o+=(s^i^r)+n[9]-640364487|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[12]-421815835|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[15]+530742520|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[2]-995338651|0,s=(s<<23|s>>>9)+i|0,o+=(i^(s|~r))+n[0]-198630844|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[7]+1126891415|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[14]-1416354905|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[5]-57434055|0,s=(s<<21|s>>>11)+i|0,o+=(i^(s|~r))+n[12]+1700485571|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[3]-1894986606|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[10]-1051523|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[1]-2054922799|0,s=(s<<21|s>>>11)+i|0,o+=(i^(s|~r))+n[8]+1873313359|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[15]-30611744|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[6]-1560198380|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[13]+1309151649|0,s=(s<<21|s>>>11)+i|0,o+=(i^(s|~r))+n[4]-145523070|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[11]-1120210379|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[2]+718787259|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[9]-343485551|0,s=(s<<21|s>>>11)+i|0,t[0]=o+t[0]|0,t[1]=s+t[1]|0,t[2]=i+t[2]|0,t[3]=r+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(st.stateIdentity),this}appendStr(t){const n=this._buffer8,o=this._buffer32;let s=this._bufferLength,i,r;for(r=0;r<t.length;r+=1){if(i=t.charCodeAt(r),i<128)n[s++]=i;else if(i<2048)n[s++]=(i>>>6)+192,n[s++]=i&63|128;else if(i<55296||i>56319)n[s++]=(i>>>12)+224,n[s++]=i>>>6&63|128,n[s++]=i&63|128;else{if(i=(i-55296)*1024+(t.charCodeAt(++r)-56320)+65536,i>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");n[s++]=(i>>>18)+240,n[s++]=i>>>12&63|128,n[s++]=i>>>6&63|128,n[s++]=i&63|128}s>=64&&(this._dataLength+=64,st._md5cycle(this._state,o),s-=64,o[0]=o[16])}return this._bufferLength=s,this}appendAsciiStr(t){const n=this._buffer8,o=this._buffer32;let s=this._bufferLength,i,r=0;for(;;){for(i=Math.min(t.length-r,64-s);i--;)n[s++]=t.charCodeAt(r++);if(s<64)break;this._dataLength+=64,st._md5cycle(this._state,o),s=0}return this._bufferLength=s,this}appendByteArray(t){const n=this._buffer8,o=this._buffer32;let s=this._bufferLength,i,r=0;for(;;){for(i=Math.min(t.length-r,64-s);i--;)n[s++]=t[r++];if(s<64)break;this._dataLength+=64,st._md5cycle(this._state,o),s=0}return this._bufferLength=s,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,o=t.state,s=this._state;let i;for(this._dataLength=t.length,this._bufferLength=t.buflen,s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],i=0;i<n.length;i+=1)this._buffer8[i]=n.charCodeAt(i)}end(t=!1){const n=this._bufferLength,o=this._buffer8,s=this._buffer32,i=(n>>2)+1;this._dataLength+=n;const r=this._dataLength*8;if(o[n]=128,o[n+1]=o[n+2]=o[n+3]=0,s.set(st.buffer32Identity.subarray(i),i),n>55&&(st._md5cycle(this._state,s),s.set(st.buffer32Identity)),r<=4294967295)s[14]=r;else{const l=r.toString(16).match(/(.*?)(.{0,8})$/);if(l===null)return;const d=parseInt(l[2],16),f=parseInt(l[1],16)||0;s[14]=d,s[15]=f}return st._md5cycle(this._state,s),t?this._state:st._hex(this._state)}}if(st.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),st.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),st.hexChars="0123456789abcdef",st.hexOut=[],st.onePassHasher=new st,st.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");var wm={exports:{}};(function(e){var t=function(n){var o=1e7,s=7,i=9007199254740992,r=E(i),l="0123456789abcdefghijklmnopqrstuvwxyz",d=typeof BigInt=="function";function f(h,w,_,C){return typeof h>"u"?f[0]:typeof w<"u"?+w==10&&!_?R(h):j(h,w,_,C):R(h)}function p(h,w){this.value=h,this.sign=w,this.isSmall=!1}p.prototype=Object.create(f.prototype);function m(h){this.value=h,this.sign=h<0,this.isSmall=!0}m.prototype=Object.create(f.prototype);function y(h){this.value=h}y.prototype=Object.create(f.prototype);function x(h){return-i<h&&h<i}function E(h){return h<1e7?[h]:h<1e14?[h%1e7,Math.floor(h/1e7)]:[h%1e7,Math.floor(h/1e7)%1e7,Math.floor(h/1e14)]}function A(h){M(h);var w=h.length;if(w<4&&Se(h,r)<0)switch(w){case 0:return 0;case 1:return h[0];case 2:return h[0]+h[1]*o;default:return h[0]+(h[1]+h[2]*o)*o}return h}function M(h){for(var w=h.length;h[--w]===0;);h.length=w+1}function V(h){for(var w=new Array(h),_=-1;++_<h;)w[_]=0;return w}function O(h){return h>0?Math.floor(h):Math.ceil(h)}function T(h,w){var _=h.length,C=w.length,P=new Array(_),k=0,F=o,H,Y;for(Y=0;Y<C;Y++)H=h[Y]+w[Y]+k,k=H>=F?1:0,P[Y]=H-k*F;for(;Y<_;)H=h[Y]+k,k=H===F?1:0,P[Y++]=H-k*F;return k>0&&P.push(k),P}function Q(h,w){return h.length>=w.length?T(h,w):T(w,h)}function ee(h,w){var _=h.length,C=new Array(_),P=o,k,F;for(F=0;F<_;F++)k=h[F]-P+w,w=Math.floor(k/P),C[F]=k-w*P,w+=1;for(;w>0;)C[F++]=w%P,w=Math.floor(w/P);return C}p.prototype.add=function(h){var w=R(h);if(this.sign!==w.sign)return this.subtract(w.negate());var _=this.value,C=w.value;return w.isSmall?new p(ee(_,Math.abs(C)),this.sign):new p(Q(_,C),this.sign)},p.prototype.plus=p.prototype.add,m.prototype.add=function(h){var w=R(h),_=this.value;if(_<0!==w.sign)return this.subtract(w.negate());var C=w.value;if(w.isSmall){if(x(_+C))return new m(_+C);C=E(Math.abs(C))}return new p(ee(C,Math.abs(_)),_<0)},m.prototype.plus=m.prototype.add,y.prototype.add=function(h){return new y(this.value+R(h).value)},y.prototype.plus=y.prototype.add;function U(h,w){var _=h.length,C=w.length,P=new Array(_),k=0,F=o,H,Y;for(H=0;H<C;H++)Y=h[H]-k-w[H],Y<0?(Y+=F,k=1):k=0,P[H]=Y;for(H=C;H<_;H++){if(Y=h[H]-k,Y<0)Y+=F;else{P[H++]=Y;break}P[H]=Y}for(;H<_;H++)P[H]=h[H];return M(P),P}function se(h,w,_){var C;return Se(h,w)>=0?C=U(h,w):(C=U(w,h),_=!_),C=A(C),typeof C=="number"?(_&&(C=-C),new m(C)):new p(C,_)}function ie(h,w,_){var C=h.length,P=new Array(C),k=-w,F=o,H,Y;for(H=0;H<C;H++)Y=h[H]+k,k=Math.floor(Y/F),Y%=F,P[H]=Y<0?Y+F:Y;return P=A(P),typeof P=="number"?(_&&(P=-P),new m(P)):new p(P,_)}p.prototype.subtract=function(h){var w=R(h);if(this.sign!==w.sign)return this.add(w.negate());var _=this.value,C=w.value;return w.isSmall?ie(_,Math.abs(C),this.sign):se(_,C,this.sign)},p.prototype.minus=p.prototype.subtract,m.prototype.subtract=function(h){var w=R(h),_=this.value;if(_<0!==w.sign)return this.add(w.negate());var C=w.value;return w.isSmall?new m(_-C):ie(C,Math.abs(_),_>=0)},m.prototype.minus=m.prototype.subtract,y.prototype.subtract=function(h){return new y(this.value-R(h).value)},y.prototype.minus=y.prototype.subtract,p.prototype.negate=function(){return new p(this.value,!this.sign)},m.prototype.negate=function(){var h=this.sign,w=new m(-this.value);return w.sign=!h,w},y.prototype.negate=function(){return new y(-this.value)},p.prototype.abs=function(){return new p(this.value,!1)},m.prototype.abs=function(){return new m(Math.abs(this.value))},y.prototype.abs=function(){return new y(this.value>=0?this.value:-this.value)};function de(h,w){var _=h.length,C=w.length,P=_+C,k=V(P),F=o,H,Y,$e,_e,he;for($e=0;$e<_;++$e){_e=h[$e];for(var Ne=0;Ne<C;++Ne)he=w[Ne],H=_e*he+k[$e+Ne],Y=Math.floor(H/F),k[$e+Ne]=H-Y*F,k[$e+Ne+1]+=Y}return M(k),k}function Pe(h,w){var _=h.length,C=new Array(_),P=o,k=0,F,H;for(H=0;H<_;H++)F=h[H]*w+k,k=Math.floor(F/P),C[H]=F-k*P;for(;k>0;)C[H++]=k%P,k=Math.floor(k/P);return C}function pe(h,w){for(var _=[];w-- >0;)_.push(0);return _.concat(h)}function re(h,w){var _=Math.max(h.length,w.length);if(_<=30)return de(h,w);_=Math.ceil(_/2);var C=h.slice(_),P=h.slice(0,_),k=w.slice(_),F=w.slice(0,_),H=re(P,F),Y=re(C,k),$e=re(Q(P,C),Q(F,k)),_e=Q(Q(H,pe(U(U($e,H),Y),_)),pe(Y,2*_));return M(_e),_e}function Ee(h,w){return-.012*h-.012*w+15e-6*h*w>0}p.prototype.multiply=function(h){var w=R(h),_=this.value,C=w.value,P=this.sign!==w.sign,k;if(w.isSmall){if(C===0)return f[0];if(C===1)return this;if(C===-1)return this.negate();if(k=Math.abs(C),k<o)return new p(Pe(_,k),P);C=E(k)}return Ee(_.length,C.length)?new p(re(_,C),P):new p(de(_,C),P)},p.prototype.times=p.prototype.multiply;function ae(h,w,_){return h<o?new p(Pe(w,h),_):new p(de(w,E(h)),_)}m.prototype._multiplyBySmall=function(h){return x(h.value*this.value)?new m(h.value*this.value):ae(Math.abs(h.value),E(Math.abs(this.value)),this.sign!==h.sign)},p.prototype._multiplyBySmall=function(h){return h.value===0?f[0]:h.value===1?this:h.value===-1?this.negate():ae(Math.abs(h.value),this.value,this.sign!==h.sign)},m.prototype.multiply=function(h){return R(h)._multiplyBySmall(this)},m.prototype.times=m.prototype.multiply,y.prototype.multiply=function(h){return new y(this.value*R(h).value)},y.prototype.times=y.prototype.multiply;function Ue(h){var w=h.length,_=V(w+w),C=o,P,k,F,H,Y;for(F=0;F<w;F++){H=h[F],k=0-H*H;for(var $e=F;$e<w;$e++)Y=h[$e],P=2*(H*Y)+_[F+$e]+k,k=Math.floor(P/C),_[F+$e]=P-k*C;_[F+w]=k}return M(_),_}p.prototype.square=function(){return new p(Ue(this.value),!1)},m.prototype.square=function(){var h=this.value*this.value;return x(h)?new m(h):new p(Ue(E(Math.abs(this.value))),!1)},y.prototype.square=function(h){return new y(this.value*this.value)};function D(h,w){var _=h.length,C=w.length,P=o,k=V(w.length),F=w[C-1],H=Math.ceil(P/(2*F)),Y=Pe(h,H),$e=Pe(w,H),_e,he,Ne,xt,mt,Vs,Ws;for(Y.length<=_&&Y.push(0),$e.push(0),F=$e[C-1],he=_-C;he>=0;he--){for(_e=P-1,Y[he+C]!==F&&(_e=Math.floor((Y[he+C]*P+Y[he+C-1])/F)),Ne=0,xt=0,Vs=$e.length,mt=0;mt<Vs;mt++)Ne+=_e*$e[mt],Ws=Math.floor(Ne/P),xt+=Y[he+mt]-(Ne-Ws*P),Ne=Ws,xt<0?(Y[he+mt]=xt+P,xt=-1):(Y[he+mt]=xt,xt=0);for(;xt!==0;){for(_e-=1,Ne=0,mt=0;mt<Vs;mt++)Ne+=Y[he+mt]-P+$e[mt],Ne<0?(Y[he+mt]=Ne+P,Ne=0):(Y[he+mt]=Ne,Ne=1);xt+=Ne}k[he]=_e}return Y=N(Y,H)[0],[A(k),A(Y)]}function J(h,w){for(var _=h.length,C=w.length,P=[],k=[],F=o,H,Y,$e,_e,he;_;){if(k.unshift(h[--_]),M(k),Se(k,w)<0){P.push(0);continue}Y=k.length,$e=k[Y-1]*F+k[Y-2],_e=w[C-1]*F+w[C-2],Y>C&&($e=($e+1)*F),H=Math.ceil($e/_e);do{if(he=Pe(w,H),Se(he,k)<=0)break;H--}while(H);P.push(H),k=U(k,he)}return P.reverse(),[A(P),A(k)]}function N(h,w){var _=h.length,C=V(_),P=o,k,F,H,Y;for(H=0,k=_-1;k>=0;--k)Y=H*P+h[k],F=O(Y/w),H=Y-F*w,C[k]=F|0;return[C,H|0]}function me(h,w){var _,C=R(w);if(d)return[new y(h.value/C.value),new y(h.value%C.value)];var P=h.value,k=C.value,F;if(k===0)throw new Error("Cannot divide by zero");if(h.isSmall)return C.isSmall?[new m(O(P/k)),new m(P%k)]:[f[0],h];if(C.isSmall){if(k===1)return[h,f[0]];if(k==-1)return[h.negate(),f[0]];var H=Math.abs(k);if(H<o){_=N(P,H),F=A(_[0]);var Y=_[1];return h.sign&&(Y=-Y),typeof F=="number"?(h.sign!==C.sign&&(F=-F),[new m(F),new m(Y)]):[new p(F,h.sign!==C.sign),new m(Y)]}k=E(H)}var $e=Se(P,k);if($e===-1)return[f[0],h];if($e===0)return[f[h.sign===C.sign?1:-1],f[0]];P.length+k.length<=200?_=D(P,k):_=J(P,k),F=_[0];var _e=h.sign!==C.sign,he=_[1],Ne=h.sign;return typeof F=="number"?(_e&&(F=-F),F=new m(F)):F=new p(F,_e),typeof he=="number"?(Ne&&(he=-he),he=new m(he)):he=new p(he,Ne),[F,he]}p.prototype.divmod=function(h){var w=me(this,h);return{quotient:w[0],remainder:w[1]}},y.prototype.divmod=m.prototype.divmod=p.prototype.divmod,p.prototype.divide=function(h){return me(this,h)[0]},y.prototype.over=y.prototype.divide=function(h){return new y(this.value/R(h).value)},m.prototype.over=m.prototype.divide=p.prototype.over=p.prototype.divide,p.prototype.mod=function(h){return me(this,h)[1]},y.prototype.mod=y.prototype.remainder=function(h){return new y(this.value%R(h).value)},m.prototype.remainder=m.prototype.mod=p.prototype.remainder=p.prototype.mod,p.prototype.pow=function(h){var w=R(h),_=this.value,C=w.value,P,k,F;if(C===0)return f[1];if(_===0)return f[0];if(_===1)return f[1];if(_===-1)return w.isEven()?f[1]:f[-1];if(w.sign)return f[0];if(!w.isSmall)throw new Error("The exponent "+w.toString()+" is too large.");if(this.isSmall&&x(P=Math.pow(_,C)))return new m(O(P));for(k=this,F=f[1];C&!0&&(F=F.times(k),--C),C!==0;)C/=2,k=k.square();return F},m.prototype.pow=p.prototype.pow,y.prototype.pow=function(h){var w=R(h),_=this.value,C=w.value,P=BigInt(0),k=BigInt(1),F=BigInt(2);if(C===P)return f[1];if(_===P)return f[0];if(_===k)return f[1];if(_===BigInt(-1))return w.isEven()?f[1]:f[-1];if(w.isNegative())return new y(P);for(var H=this,Y=f[1];(C&k)===k&&(Y=Y.times(H),--C),C!==P;)C/=F,H=H.square();return Y},p.prototype.modPow=function(h,w){if(h=R(h),w=R(w),w.isZero())throw new Error("Cannot take modPow with modulus 0");var _=f[1],C=this.mod(w);for(h.isNegative()&&(h=h.multiply(f[-1]),C=C.modInv(w));h.isPositive();){if(C.isZero())return f[0];h.isOdd()&&(_=_.multiply(C).mod(w)),h=h.divide(2),C=C.square().mod(w)}return _},y.prototype.modPow=m.prototype.modPow=p.prototype.modPow;function Se(h,w){if(h.length!==w.length)return h.length>w.length?1:-1;for(var _=h.length-1;_>=0;_--)if(h[_]!==w[_])return h[_]>w[_]?1:-1;return 0}p.prototype.compareAbs=function(h){var w=R(h),_=this.value,C=w.value;return w.isSmall?1:Se(_,C)},m.prototype.compareAbs=function(h){var w=R(h),_=Math.abs(this.value),C=w.value;return w.isSmall?(C=Math.abs(C),_===C?0:_>C?1:-1):-1},y.prototype.compareAbs=function(h){var w=this.value,_=R(h).value;return w=w>=0?w:-w,_=_>=0?_:-_,w===_?0:w>_?1:-1},p.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var w=R(h),_=this.value,C=w.value;return this.sign!==w.sign?w.sign?1:-1:w.isSmall?this.sign?-1:1:Se(_,C)*(this.sign?-1:1)},p.prototype.compareTo=p.prototype.compare,m.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var w=R(h),_=this.value,C=w.value;return w.isSmall?_==C?0:_>C?1:-1:_<0!==w.sign?_<0?-1:1:_<0?1:-1},m.prototype.compareTo=m.prototype.compare,y.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var w=this.value,_=R(h).value;return w===_?0:w>_?1:-1},y.prototype.compareTo=y.prototype.compare,p.prototype.equals=function(h){return this.compare(h)===0},y.prototype.eq=y.prototype.equals=m.prototype.eq=m.prototype.equals=p.prototype.eq=p.prototype.equals,p.prototype.notEquals=function(h){return this.compare(h)!==0},y.prototype.neq=y.prototype.notEquals=m.prototype.neq=m.prototype.notEquals=p.prototype.neq=p.prototype.notEquals,p.prototype.greater=function(h){return this.compare(h)>0},y.prototype.gt=y.prototype.greater=m.prototype.gt=m.prototype.greater=p.prototype.gt=p.prototype.greater,p.prototype.lesser=function(h){return this.compare(h)<0},y.prototype.lt=y.prototype.lesser=m.prototype.lt=m.prototype.lesser=p.prototype.lt=p.prototype.lesser,p.prototype.greaterOrEquals=function(h){return this.compare(h)>=0},y.prototype.geq=y.prototype.greaterOrEquals=m.prototype.geq=m.prototype.greaterOrEquals=p.prototype.geq=p.prototype.greaterOrEquals,p.prototype.lesserOrEquals=function(h){return this.compare(h)<=0},y.prototype.leq=y.prototype.lesserOrEquals=m.prototype.leq=m.prototype.lesserOrEquals=p.prototype.leq=p.prototype.lesserOrEquals,p.prototype.isEven=function(){return(this.value[0]&1)===0},m.prototype.isEven=function(){return(this.value&1)===0},y.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},p.prototype.isOdd=function(){return(this.value[0]&1)===1},m.prototype.isOdd=function(){return(this.value&1)===1},y.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},p.prototype.isPositive=function(){return!this.sign},m.prototype.isPositive=function(){return this.value>0},y.prototype.isPositive=m.prototype.isPositive,p.prototype.isNegative=function(){return this.sign},m.prototype.isNegative=function(){return this.value<0},y.prototype.isNegative=m.prototype.isNegative,p.prototype.isUnit=function(){return!1},m.prototype.isUnit=function(){return Math.abs(this.value)===1},y.prototype.isUnit=function(){return this.abs().value===BigInt(1)},p.prototype.isZero=function(){return!1},m.prototype.isZero=function(){return this.value===0},y.prototype.isZero=function(){return this.value===BigInt(0)},p.prototype.isDivisibleBy=function(h){var w=R(h);return w.isZero()?!1:w.isUnit()?!0:w.compareAbs(2)===0?this.isEven():this.mod(w).isZero()},y.prototype.isDivisibleBy=m.prototype.isDivisibleBy=p.prototype.isDivisibleBy;function Le(h){var w=h.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 Xe(h,w){for(var _=h.prev(),C=_,P=0,k,F,H;C.isEven();)C=C.divide(2),P++;e:for(F=0;F<w.length;F++)if(!h.lesser(w[F])&&(H=t(w[F]).modPow(C,h),!(H.isUnit()||H.equals(_)))){for(k=P-1;k!=0;k--){if(H=H.square().mod(h),H.isUnit())return!1;if(H.equals(_))continue e}return!1}return!0}p.prototype.isPrime=function(h){var w=Le(this);if(w!==n)return w;var _=this.abs(),C=_.bitLength();if(C<=64)return Xe(_,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var P=Math.log(2)*C.toJSNumber(),k=Math.ceil(h===!0?2*Math.pow(P,2):P),F=[],H=0;H<k;H++)F.push(t(H+2));return Xe(_,F)},y.prototype.isPrime=m.prototype.isPrime=p.prototype.isPrime,p.prototype.isProbablePrime=function(h,w){var _=Le(this);if(_!==n)return _;for(var C=this.abs(),P=h===n?5:h,k=[],F=0;F<P;F++)k.push(t.randBetween(2,C.minus(2),w));return Xe(C,k)},y.prototype.isProbablePrime=m.prototype.isProbablePrime=p.prototype.isProbablePrime,p.prototype.modInv=function(h){for(var w=t.zero,_=t.one,C=R(h),P=this.abs(),k,F,H;!P.isZero();)k=C.divide(P),F=w,H=C,w=_,C=P,_=F.subtract(k.multiply(_)),P=H.subtract(k.multiply(P));if(!C.isUnit())throw new Error(this.toString()+" and "+h.toString()+" are not co-prime");return w.compare(0)===-1&&(w=w.add(h)),this.isNegative()?w.negate():w},y.prototype.modInv=m.prototype.modInv=p.prototype.modInv,p.prototype.next=function(){var h=this.value;return this.sign?ie(h,1,this.sign):new p(ee(h,1),this.sign)},m.prototype.next=function(){var h=this.value;return h+1<i?new m(h+1):new p(r,!1)},y.prototype.next=function(){return new y(this.value+BigInt(1))},p.prototype.prev=function(){var h=this.value;return this.sign?new p(ee(h,1),!0):ie(h,1,this.sign)},m.prototype.prev=function(){var h=this.value;return h-1>-i?new m(h-1):new p(r,!0)},y.prototype.prev=function(){return new y(this.value-BigInt(1))};for(var Qe=[1];2*Qe[Qe.length-1]<=o;)Qe.push(2*Qe[Qe.length-1]);var It=Qe.length,Tt=Qe[It-1];function $n(h){return Math.abs(h)<=o}p.prototype.shiftLeft=function(h){var w=R(h).toJSNumber();if(!$n(w))throw new Error(String(w)+" is too large for shifting.");if(w<0)return this.shiftRight(-w);var _=this;if(_.isZero())return _;for(;w>=It;)_=_.multiply(Tt),w-=It-1;return _.multiply(Qe[w])},y.prototype.shiftLeft=m.prototype.shiftLeft=p.prototype.shiftLeft,p.prototype.shiftRight=function(h){var w,_=R(h).toJSNumber();if(!$n(_))throw new Error(String(_)+" is too large for shifting.");if(_<0)return this.shiftLeft(-_);for(var C=this;_>=It;){if(C.isZero()||C.isNegative()&&C.isUnit())return C;w=me(C,Tt),C=w[1].isNegative()?w[0].prev():w[0],_-=It-1}return w=me(C,Qe[_]),w[1].isNegative()?w[0].prev():w[0]},y.prototype.shiftRight=m.prototype.shiftRight=p.prototype.shiftRight;function vt(h,w,_){w=R(w);for(var C=h.isNegative(),P=w.isNegative(),k=C?h.not():h,F=P?w.not():w,H=0,Y=0,$e=null,_e=null,he=[];!k.isZero()||!F.isZero();)$e=me(k,Tt),H=$e[1].toJSNumber(),C&&(H=Tt-1-H),_e=me(F,Tt),Y=_e[1].toJSNumber(),P&&(Y=Tt-1-Y),k=$e[0],F=_e[0],he.push(_(H,Y));for(var Ne=_(C?1:0,P?1:0)!==0?t(-1):t(0),xt=he.length-1;xt>=0;xt-=1)Ne=Ne.multiply(Tt).add(t(he[xt]));return Ne}p.prototype.not=function(){return this.negate().prev()},y.prototype.not=m.prototype.not=p.prototype.not,p.prototype.and=function(h){return vt(this,h,function(w,_){return w&_})},y.prototype.and=m.prototype.and=p.prototype.and,p.prototype.or=function(h){return vt(this,h,function(w,_){return w|_})},y.prototype.or=m.prototype.or=p.prototype.or,p.prototype.xor=function(h){return vt(this,h,function(w,_){return w^_})},y.prototype.xor=m.prototype.xor=p.prototype.xor;var _t=1<<30,ct=(o&-o)*(o&-o)|_t;function et(h){var w=h.value,_=typeof w=="number"?w|_t:typeof w=="bigint"?w|BigInt(_t):w[0]+w[1]*o|ct;return _&-_}function Gn(h,w){if(w.compareTo(h)<=0){var _=Gn(h,w.square(w)),C=_.p,P=_.e,k=C.multiply(w);return k.compareTo(h)<=0?{p:k,e:P*2+1}:{p:C,e:P*2}}return{p:t(1),e:0}}p.prototype.bitLength=function(){var h=this;return h.compareTo(t(0))<0&&(h=h.negate().subtract(t(1))),h.compareTo(t(0))===0?t(0):t(Gn(h,t(2)).e).add(t(1))},y.prototype.bitLength=m.prototype.bitLength=p.prototype.bitLength;function at(h,w){return h=R(h),w=R(w),h.greater(w)?h:w}function b(h,w){return h=R(h),w=R(w),h.lesser(w)?h:w}function S(h,w){if(h=R(h).abs(),w=R(w).abs(),h.equals(w))return h;if(h.isZero())return w;if(w.isZero())return h;for(var _=f[1],C,P;h.isEven()&&w.isEven();)C=b(et(h),et(w)),h=h.divide(C),w=w.divide(C),_=_.multiply(C);for(;h.isEven();)h=h.divide(et(h));do{for(;w.isEven();)w=w.divide(et(w));h.greater(w)&&(P=w,w=h,h=P),w=w.subtract(h)}while(!w.isZero());return _.isUnit()?h:h.multiply(_)}function L(h,w){return h=R(h).abs(),w=R(w).abs(),h.divide(S(h,w)).multiply(w)}function I(h,w,_){h=R(h),w=R(w);var C=_||Math.random,P=b(h,w),k=at(h,w),F=k.subtract(P).add(1);if(F.isSmall)return P.add(Math.floor(C()*F));for(var H=q(F,o).value,Y=[],$e=!0,_e=0;_e<H.length;_e++){var he=$e?H[_e]+(_e+1<H.length?H[_e+1]/o:0):o,Ne=O(C()*he);Y.push(Ne),Ne<H[_e]&&($e=!1)}return P.add(f.fromArray(Y,o,!1))}var j=function(h,w,_,C){_=_||l,h=String(h),C||(h=h.toLowerCase(),_=_.toLowerCase());var P=h.length,k,F=Math.abs(w),H={};for(k=0;k<_.length;k++)H[_[k]]=k;for(k=0;k<P;k++){var Y=h[k];if(Y!=="-"&&Y in H&&H[Y]>=F){if(Y==="1"&&F===1)continue;throw new Error(Y+" is not a valid digit in base "+w+".")}}w=R(w);var $e=[],_e=h[0]==="-";for(k=_e?1:0;k<h.length;k++){var Y=h[k];if(Y in H)$e.push(R(H[Y]));else if(Y==="<"){var he=k;do k++;while(h[k]!==">"&&k<h.length);$e.push(R(h.slice(he+1,k)))}else throw new Error(Y+" is not a valid character")}return X($e,w,_e)};function X(h,w,_){var C=f[0],P=f[1],k;for(k=h.length-1;k>=0;k--)C=C.add(h[k].times(P)),P=P.times(w);return _?C.negate():C}function ne(h,w){return w=w||l,h<w.length?w[h]:"<"+h+">"}function q(h,w){if(w=t(w),w.isZero()){if(h.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(w.equals(-1)){if(h.isZero())return{value:[0],isNegative:!1};if(h.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-h.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var _=Array.apply(null,Array(h.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return _.unshift([1]),{value:[].concat.apply([],_),isNegative:!1}}var C=!1;if(h.isNegative()&&w.isPositive()&&(C=!0,h=h.abs()),w.isUnit())return h.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(h.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:C};for(var P=[],k=h,F;k.isNegative()||k.compareAbs(w)>=0;){F=k.divmod(w),k=F.quotient;var H=F.remainder;H.isNegative()&&(H=w.minus(H).abs(),k=k.next()),P.push(H.toJSNumber())}return P.push(k.toJSNumber()),{value:P.reverse(),isNegative:C}}function K(h,w,_){var C=q(h,w);return(C.isNegative?"-":"")+C.value.map(function(P){return ne(P,_)}).join("")}p.prototype.toArray=function(h){return q(this,h)},m.prototype.toArray=function(h){return q(this,h)},y.prototype.toArray=function(h){return q(this,h)},p.prototype.toString=function(h,w){if(h===n&&(h=10),h!==10)return K(this,h,w);for(var _=this.value,C=_.length,P=String(_[--C]),k="0000000",F;--C>=0;)F=String(_[C]),P+=k.slice(F.length)+F;var H=this.sign?"-":"";return H+P},m.prototype.toString=function(h,w){return h===n&&(h=10),h!=10?K(this,h,w):String(this.value)},y.prototype.toString=m.prototype.toString,y.prototype.toJSON=p.prototype.toJSON=m.prototype.toJSON=function(){return this.toString()},p.prototype.valueOf=function(){return parseInt(this.toString(),10)},p.prototype.toJSNumber=p.prototype.valueOf,m.prototype.valueOf=function(){return this.value},m.prototype.toJSNumber=m.prototype.valueOf,y.prototype.valueOf=y.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function W(h){if(x(+h)){var w=+h;if(w===O(w))return d?new y(BigInt(w)):new m(w);throw new Error("Invalid integer: "+h)}var _=h[0]==="-";_&&(h=h.slice(1));var C=h.split(/e/i);if(C.length>2)throw new Error("Invalid integer: "+C.join("e"));if(C.length===2){var P=C[1];if(P[0]==="+"&&(P=P.slice(1)),P=+P,P!==O(P)||!x(P))throw new Error("Invalid integer: "+P+" is not a valid exponent.");var k=C[0],F=k.indexOf(".");if(F>=0&&(P-=k.length-F-1,k=k.slice(0,F)+k.slice(F+1)),P<0)throw new Error("Cannot include negative exponent part for integers");k+=new Array(P+1).join("0"),h=k}var H=/^([0-9][0-9]*)$/.test(h);if(!H)throw new Error("Invalid integer: "+h);if(d)return new y(BigInt(_?"-"+h:h));for(var Y=[],$e=h.length,_e=s,he=$e-_e;$e>0;)Y.push(+h.slice(he,$e)),he-=_e,he<0&&(he=0),$e-=_e;return M(Y),new p(Y,_)}function ce(h){if(d)return new y(BigInt(h));if(x(h)){if(h!==O(h))throw new Error(h+" is not an integer.");return new m(h)}return W(h.toString())}function R(h){return typeof h=="number"?ce(h):typeof h=="string"?W(h):typeof h=="bigint"?new y(h):h}for(var ue=0;ue<1e3;ue++)f[ue]=R(ue),ue>0&&(f[-ue]=R(-ue));return f.one=f[1],f.zero=f[0],f.minusOne=f[-1],f.max=at,f.min=b,f.gcd=S,f.lcm=L,f.isInstance=function(h){return h instanceof p||h instanceof m||h instanceof y},f.randBetween=I,f.fromArray=function(h,w,_){return X(h.map(R),R(w||10),_)},f}();e.hasOwnProperty("exports")&&(e.exports=t)})(wm);async function Ic(e,t,n){const o=new URLSearchParams({page:e.toString(),uid:n.toString(),sign:t,time:os().toString()});return(await Ut.post("https://115.com/web/lixian/?ct=lixian&ac=task_lists",o,{withCredentials:!0,timeout:6e4})).data}async function Tc(){return(await Ut.get(`https://115.com/?ct=offline&ac=space&_=${Date.now()}`,{timeout:3e4,withCredentials:!0})).data}async function Lc(){const t=(await Ut.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 ym(e){const t=Vl(e),o=(await Ut.get("https://webapi.115.com/files?"+t,{timeout:12e4,withCredentials:!0})).data;if(o.state)return o;throw new Error(o.error)}async function Mc(e,t=500){let n=[],o=0;for(;;){e.offset=o;const s=await ym(e);if(!s.data||!s.data.length||(n=[...n,...s.data],o+=e.limit,o>=s.count))break;await jt(t)}return n}async function bm(e){const t=Vl(e),n=await Ut.get("https://webapi.115.com/files/search?"+t,{timeout:12e4,withCredentials:!0});if(n.data==="")throw new Oc;const o=n.data;if(o.state)return o;throw new Gr(o.error)}async function vm(e,t=500,n=!1){let o=[],s=0,i=e.limit;const r=1e4,l=115,d=r-r%i;let f=i;for(;;){if(n){if(s>=d&&s<r){const m=r-d;f=Math.min(m,f)}s>=r&&(f=l)}e.offset=s,e.limit=f;const p=await bm(e);if(!p.data||!p.data.length||(o=[...o,...p.data],s+=f,s>=p.count))break;await jt(t)}return o}async function _m(e,t){const n=new URLSearchParams({pid:e,ignore_warn:"1"});return t.forEach((s,i)=>{n.append(`fid[${i}]`,s)}),(await Ut.post("https://webapi.115.com/rb/delete",n,{timeout:12e4,withCredentials:!0})).data}async function Bc(e,t,n,o){let s=0,i=0;for(;;){const r=t.slice(s,s+n);if((await _m(e,r)).state&&(i+=r.length),s+=n,s>=t.length)break;await jt(o)}return i}async function xm(e,t){const n=new URLSearchParams({pid:e,cname:t});return(await Ut.post("https://webapi.115.com/files/add",n,{timeout:12e4,withCredentials:!0})).data}async function Cm(e,t){const n=new URLSearchParams({pid:e});return t.forEach((s,i)=>{n.append(`fid[${i}]`,s)}),(await Ut.post("https://webapi.115.com/files/move",n,{timeout:12e4,withCredentials:!0})).data}async function cs(e){const t=new URLSearchParams({cid:e});return(await Ut.get("https://webapi.115.com/category/get?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function Yr(e,t,n,o){const s={uid:o.toString(),sign:t.sign,time:os().toString()};n&&(s.flag="1");const i=mm(s);return e.forEach((l,d)=>{i.append(`hash[${d}]`,l)}),(await Ut.post("https://115.com/web/lixian/?ct=lixian&ac=task_del",i,{timeout:12e4,withCredentials:!0})).data}async function $m(e){if(!(await cs(e)).play_long)throw new Error("该目录下没有可以播放的媒体文件![by_attr]");const o=(await Mc(Zl({cid:e,limit:1150}))).find(s=>s.play_long&&s.play_long>0);if(!o)throw new Error("该目录下没有可以播放的媒体文件![by_files]");return o}async function Zt(e=!0){const t=Io().GetCurWangPanCid();return!t&&e?(Io().Core.MinMessage.Show({text:'不支持"根目录"!',timeout:1e3}),""):t}async function km(e,t){let n=$(`li.temp-el[cate_id="${e}"]`);if(!n.length){const o=`
      <li class="selected temp-el" file_type="${0}">
        <input type="checkbox" value="${e}"/>
        <div class="checkbox" menu="file_check_one"></div>
        <div class="file-name-wrap">
          <span class="file-name" rel="file_name">
            <em>
              <a class="name" href="javascript:;" cate="1" menu="open" aid="1" cid="${e}" rel="view_folder">
                <span>名称</span>
              </a>
            </em>
          </span>
        </div>
      </li>
    `;n=$(o)}n.attr("title",t.file_name),n.find("a.name > span").text(t.file_name);for(let o in t){const s=typeof t[o];["string","number"].indexOf(s)>-1&&n.attr(o,t[o])}return n.attr("cate_id",e),n.attr("p_id",t.paths[t.paths.length-1].file_id),n}async function Mt(e){const t=e.attr("file_size"),n=e.attr("iv")==="1",o=await Lm(),s={fid:e.attr("file_id")||"",cid:e.attr("cid")||"",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,cate_id:e.attr("cate_id")||""};if(o){const i=e.find(".file-directory a[cid]");i.length&&(s.cid=i.attr("cid")||"")}else{const i=e.attr("p_id");i&&(s.cid=i)}return s}async function Sm(e){const t=[];for(let n=0;n<e.length;n++){const o=await Em(e[n]);t.push(o)}return t}async function Em(e){var o;const t=!!e.fid,n={id:e.fid||e.cate_id,name:e.n,parentId:e.cid,sizeRaw:e.s,sizeDesc:e.s.toString(),sizeBytes:0,isFile:t,isDir:!t,isVideo:((o=e.iv)==null?void 0:o.toString())==="1"};return typeof e.s=="number"?n.sizeBytes=e.s:typeof e.s=="string"&&/^\d+$/.test(e.s)&&(n.sizeBytes=parseInt(e.s)),n.sizeDesc=Qs(n.sizeBytes||0),n}function Io(){return unsafeWindow.TOP?unsafeWindow.TOP:unsafeWindow}function Am(){return unsafeWindow.top===unsafeWindow?unsafeWindow.Ext:unsafeWindow.top.Ext}async function Pm(e){return new Promise((t,n)=>{Io().Core.DataAccess.Dir.GetDetail("1",e,o=>t(o))})}async function Om(){const e=await Zt(),t=await Pm(e);return await km(e,t)}async function di(){return window.top!==window?$(document):$('iframe[name="wangpan"], .wrap-view iframe:eq(0)').contents()}async function To(){return(await di()).find(".list-contents, .list-thumb")}async function Dc(e){const t=await To();return e?t.find("li.selected"):t.find("li")}async function Lo(e){const t=await Dc(e),n=[];for(let o=0;o<t.length;o++){const s=t.eq(o),i=await Mt(s);n.push(i)}return n}async function Im(){const e=await di(),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 Tm(){const e=await Zt();(await To()).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 Qn(e=!1){const t=await Zt();if(!t)return null;const n=await To(),o=await Om();return e||o.hide(),n.find(`li[cate_id="${t}"]`).length||n.append(o),o}async function Xr(e,t,n){n&&await Tm(),Io().Core.FileMenu.DoEvent([e],t,null)}function Nc(e){return`https://115.com/?${new URLSearchParams({cid:e}).toString()}&offset=0&mode=wangpan`}async function Lm(e=location.href){return e.includes("ac=search")}function Qr(e,t=""){const n=new URLSearchParams({aid:"1",cid:e.cid||"",old_cid:e.cid||"",old_cid_name:t,search_value:e.search_value,ct:"file",ac:"search",is_wl_tpl:"1"});return"https://115.com/?url="+encodeURIComponent(`/?${n.toString()}`)+"&submode=wangpan&mode=search"}function Rc(e){return`https://v.anxia.com/?${new URLSearchParams({pickcode:e,share_id:"0"}).toString()}`}async function Mm(e){unsafeWindow.Main.ReInstance({type:e.type,offset:0,o:Ql.userPtime,asc:Xl.false,star:e.star,suffix:e.suffix})}async function Bm(){return(await To()).find("li.selected")}async function Fc(){const e=await Bm();return e?await Mt(e):null}function Dm(e){return e.replace(/[/\\:*?"<>|]/g,"_")}async function fi(e){const n=(await cs(e.fid||e.cate_id)).paths.slice(1).map(i=>i.file_name).join("/"),o=Dm(e.n);return`/${n}/${o}`.replace(/^[\/]+/g,"/")}async function jc(e){if(!location.search.includes("ac=search")||!e.enableInSearch)return;const n=(await Ao("#js_data_list"))[0],o=[{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=l=>{let d="";for(const f of l)!f.enabled||(d+=f.body);return d},i=()=>{const l="ce-menu-init",d=document.querySelectorAll(`li[rel="item"]:not(.${l})`),f=s(o);for(let p=0;p<d.length;p++){const m=d[p];if(m.querySelector(".file-opr"))continue;const y=document.createElement("div");y.className="file-opr",y.setAttribute("rel","menu"),y.innerHTML=f,m.classList.add(l),m.appendChild(y)}};i(),new MutationObserver(async([l])=>{l.type==="childList"&&i()}).observe(n,{childList:!0})}async function Nm(e){if(!e.hideSelectionMenuLabel)return;const n=(await Ao("#js_operate_box"))[0];new MutationObserver(async([s])=>{if(s.type==="childList"){const i=n.querySelectorAll("li[menu]");for(let r=0;r<i.length;r++){const l=i[r],d=l.textContent;l.setAttribute("title",d||"")}}}).observe(n,{childList:!0}),n.classList.add("only-icon")}async function Rm(e,t){const n=[];for(const o of t){const s=Or(e,{key:`_ce_s_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(i,r)=>{r.stopPropagation(),r.preventDefault();try{const l=$(r.target).closest("li"),d=await Mt(l),f=await Tr(),p=await ea(d,o,f);if(console.log("[search url]",p),!p)throw new Error("无法获取有效的搜索链接!");Kp(p,{active:!o.openInBackground})}catch(l){console.error(l),fe({title:"搜索失败",text:l.toString(),icon:"error"})}}});n.push(s)}return n}async function Zr(e,t){if(console.log("[playDirOnAnxia]",e,t),!t)try{fe({title:"正在查找可播放的文件...",text:"请稍等...",icon:"info"}),ge.showLoading(),t=await $m(e),console.log("[playDirOnAnxia] file",t)}catch(o){console.error(o),fe({title:"播放失败",text:o.toString(),icon:"error"});return}t||fe({title:"播放失败",text:"没有在该目录下找到可播放的文件![file_null]",icon:"error"});const n=Rc(t.pc);window.open(n,"_blank","noopener noreferrer")}async function Fm(e,t){const n=[];for(const o of t){const s=Or(e,{key:`_ce_p_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(i,r)=>{r.stopPropagation(),r.preventDefault();try{const l=$(r.target).closest("li"),d=await Mt(l),f=await Tr(),p=await ea(d,o,f);if(d.cate_id&&p.includes("v.anxia.com")){Zr(d.cate_id);return}if(console.log("[play url]",p),!p)throw new Error("无法获取有效的播放链接!");window.open(p,"_blank","noopener noreferrer")}catch(l){console.error(l),fe({title:"播放失败",text:l.toString(),icon:"error"})}}});n.push(s)}return n}var Ot=(e=>(e[e.full=0]="full",e[e.pure=1]="pure",e[e.fullUnique=2]="fullUnique",e[e.pureUnique=3]="pureUnique",e))(Ot||{});async function pi(e,t){if(t===0)return e;if(t===2)return Array.from(new Set(e));const n=[];for(const o of e){const s=o.replace(/\.[^.]+$/,"");t===1?n.push(s):t===3&&(n.includes(s)||n.push(s))}return n}var Ht=(e=>(e[e.unixPath=0]="unixPath",e[e.winPath=1]="winPath",e[e.unixParentPath=2]="unixParentPath",e[e.winParentPath=3]="winParentPath",e))(Ht||{});async function hi(e,t,n){const o=n===1||n===3;let i=n===2||n===3?t.replace(/\/[^/]+$/,""):t;return o&&(i=i.replace(/\//g,"\\")),i}async function jm(e){return async(t,n)=>{const o=await Zt(),s=await di(),i=e?"li[file_id].selected":"li[file_id]",r=s[0].querySelectorAll(i);if(!r.length){fe({title:"文件移动到同名目录",text:e?"当前目录没有选中文件":"当前目录没有文件",icon:"warning"});return}const{value:l}=await ge.fire({title:"文件移动到同名目录",text:e?`当前已选中${r.length}个文件,是否继续?`:`当前目录共有${r.length}个文件,是否继续?`,icon:"warning",showCancelButton:!0,confirmButtonText:"继续",cancelButtonText:"取消"});if(!!l){ge.fire({title:"文件移动到同名目录",html:"正在处理...",didOpen:()=>{ge.showLoading()}});for(let d=0;d<r.length;d++){const f=r[d],p=await Mt($(f));if(!p.fid)continue;const m=p.n,y=m.replace(/\.[^\.]+$/,""),x=`${d+1} / ${r.length} - `+Math.round(d/r.length*100)+"%";ge.update({html:`${x} 正在为文件「${m}」创建目录「${y}」`});const E=await xm(o,y);ge.update({html:`${x} 正在移动文件「${m}」到目录「${y}」`}),await Cm(E.cid,[p.fid]),await jt(500)}ge.hideLoading(),ge.update({html:"处理完成",icon:"success"})}}}const Um=[{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:"手动输入"}]}];async function ea(e,t,n){var d;let o=t.url;const s={dir_id:"cid",file_id:"fid",pick_code:"pc",full_name:"n",file_suffix:"ico",file_hash:"sha",file_size:"s"},i=!!e.fid,r=/{(\w+)(:\w+(:\w+)?)?}/g,l=o.match(r);if(l){const f=["file_path","file_dir","clouddrive_stream_url","clouddrive_down_url","clouddrive_playlist_url"];for(const p of l){const m=p.replace(/[{}]/g,"").split(":")[0],y=p.replace(/[{}]/g,"").replace(/^[^:]+:/,"");let x=((d=e[s[m]])==null?void 0:d.toString())||"",E="";switch(f.includes(m)&&(E=await fi(e)),m){case"pure_name":i?x=e.n.replace(/\.[^.]+$/,""):x=e.n;break;case"file_path":x=E;break;case"file_dir":x=E.replace(/\/[^/]+$/,"");break;case"clouddrive_stream_url":i?x=await ti(n,E,Lr.play):x=await Yl(n,E);break;case"clouddrive_down_url":x=await ti(n,E,Lr.download);break;case"clouddrive_playlist_url":let A="";i?A=E.replace(/\/[^/]+$/,""):A=E,x=await Yl(n,A);break;case"user_agent":x=navigator.userAgent;break}if(x=x.toString(),y){const A=y.split(":");for(const M of A)switch(M){case"search":x=Qr({search_value:x});break;case"encode":x=encodeURIComponent(x);break;case"base64":x=Bl(x);break;case"base64safe":x=Bl(x,!0);break;case"upper":x=x.toUpperCase();break;case"lower":x=x.toLowerCase();break;case"number":x=x.replace(/\D/g,"");break;case"manual":let{isConfirmed:V,value:O}=await ge.fire({title:"手动输入",input:"textarea",inputValue:x,showCancelButton:!0,inputValidator:T=>T?null:"输入不能为空!"});if(!V)throw new Error("已取消手动输入。");if(O=(O==null?void 0:O.trim())||"",O==="")throw new Error("输入不能为空!");x=O;break}}o=o.replace(p,x)}}return t.mutation?await Hm(o,e,t,n):o}async function Hm(e,t,n,o){return await new Function("payload",n.mutation)({url:e,file:t,customUrl:n,cloudDriveConfig:o})}var Pn=(e=>(e.search="search",e.play="play",e))(Pn||{});const Uc={search:"menu_custom_urls_for_search",play:"menu_custom_urls_for_play"};async function us(e){return await lt.get(Uc[e],[])}async function Hc(e,t){await lt.set(Uc[e],t)}function ut(e){return{enabled:!0,key:"",label:"",icon:"",memo:"",extraMemo:"",url:"",openInBackground:!1,...e}}const zc="ce_menu_config";function zm(e){return{enabled:!0,openInNewTab:!0,search:!0,play:!0,getDownloadUrl:!0,copyNames:!0,...e}}function qm(e){return{enabled:!0,copyNames:!0,...e}}function Vm(e){return{enabled:!0,moveToSelfNameDir:!0,copyNames:!0,...e}}function Wm(e){return{enabled:!0,rename:!0,delete:!0,play:!0,copyNames:!0,move:!0,copy:!0,copyTo:!0,viewProp:!0,showSubFolderSize:!0,...e}}function Km(e){return{enabled:!0,hideSelectionMenuLabel:!1,enableInSearch:!0,[Oe.listItemHover]:zm(e==null?void 0:e[Oe.listItemHover]),[Oe.listItemContext]:qm(e==null?void 0:e[Oe.listItemContext]),[Oe.selection]:Vm(e==null?void 0:e[Oe.selection]),[Oe.dirContext]:Wm(e==null?void 0:e[Oe.dirContext]),...e}}async function ta(){const e=Km(),t=await lt.get(zc,e);return{...e,...t}}async function Jm(e){await lt.set(zc,e)}const vl=class{constructor(t){Ae(this,"menuType",Oe.listItemHover);Ae(this,"injectDecider");Ae(this,"keyAttributeName","id");Ae(this,"key","");Ae(this,"label","");Ae(this,"icon","");Ae(this,"title","");Ae(this,"onClick",async(t,n)=>{});Ae(this,"onMouseOver");Ae(this,"onMouseOut");Ae(this,"subItems",[]);Ae(this,"isDivider",!1);Ae(this,"menuItemTemplates",{[Oe.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>'},[Oe.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>'},[Oe.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>'},[Oe.listItemContextSub]:{body:'<span id="{key}" class="ce-menu list-item-context-menu-sub sub-item">{label}</span>',divider:'<span class="ce-menu-divider"></span>'},[Oe.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>'},[Oe.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>'},[Oe.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>'},[Oe.selectionSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu selection-menu-sub" style="">
        <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.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(){var r;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 l=document.createElement("div");return l.innerHTML=t.divider,l.firstElementChild}let n=t.body;if(this.subItems.length>0){if(!t.bodyForMulti)throw new Error("未找到 bodyFormMulti 模版");n=t.bodyForMulti}const o=document.createElement("div");let s="";this.icon&&(this.icon.match(/^(http|https|data:image)/)?s=`<img class="ce-menu-icon" src="${this.icon}" />`:s=`<i class="ce-menu-icon ${this.icon}"></i>`),o.innerHTML=n.replace(/{key}/g,this.key).replace(/{label}/g,this.label).replace(/{icon}/g,s);const i=o.firstElementChild;if(i.setAttribute("title",this.title||""),this.onClick&&i.addEventListener("click",async l=>{this.onClick(this,l)}),this.onMouseOver&&i.addEventListener("mouseover",async l=>{this.onMouseOver&&this.onMouseOver(this,l)}),this.onMouseOut&&i.addEventListener("mouseout",async l=>{this.onMouseOut&&this.onMouseOut(this,l)}),this.subItems.length>0)for(const l of this.subItems){const d=await l.render();(r=i.querySelector(".sub-items"))==null||r.appendChild(d)}return i}async closeMenu(){unsafeWindow.Core.FileMenu.HideRight(),document.dispatchEvent(new CustomEvent(vl.EVENT_CLOSE_MENU,{detail:{menu:this}}))}async decorateContainer(t){}};let Bt=vl;Ae(Bt,"EVENT_CLOSE_MENU","__closeMenu");async function mi(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),s=o.find(".ce-menu-dropdown");o.addClass("ce-menu-dropdown-opened"),s.addClass("ce-menu-dropdown-active")}async function gi(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),s=o.find(".ce-menu-dropdown");o.removeClass("ce-menu-dropdown-opened"),s.removeClass("ce-menu-dropdown-active")}class Dt extends Bt{constructor(n){super(n);Ae(this,"menuType",Oe.dirContext);this.onMouseOver=mi,this.onMouseOut=gi}}class Gm extends Bt{constructor(){super(...arguments);Ae(this,"menuType",Oe.dirContextSub)}}class na extends Bt{constructor(n){super(n);Ae(this,"menuType",Oe.listItemContext);this.onMouseOver=mi,this.onMouseOut=gi}}class wi extends Bt{constructor(n){super(n);Ae(this,"menuType",Oe.listItemHover);this.onMouseOver=mi,this.onMouseOut=gi}}class yi extends Bt{constructor(){super(...arguments);Ae(this,"menuType",Oe.listItemHoverSub)}}class qc extends Bt{constructor(n){super(n);Ae(this,"menuType",Oe.selection);this.onMouseOver=mi,this.onMouseOut=gi}}class Vc extends Bt{constructor(){super(...arguments);Ae(this,"menuType",Oe.selectionSub)}}class bi extends Bt{constructor(){super(...arguments);Ae(this,"isDivider",!0)}}class Ym extends bi{}class Xm extends bi{}class Qm extends bi{}class Zm extends bi{}class vi{constructor(t){Ae(this,"items");Ae(this,"siblingSelector");Ae(this,"position");Ae(this,"useObserver",!0);Ae(this,"observeTarget",document.body);Ae(this,"disposeObserverAfterInjection",!0);Ae(this,"menuType");Ae(this,"_observer");Ae(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}async createObserver(){return new MutationObserver(async([n])=>{n.type==="childList"&&await this.handleChildListMutation(n)})}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 Ao(this.observeTarget,800,6048e5))[0]:this.observeTarget}async isMutationMatch(t){const n=t.addedNodes[0];if(n&&n.nodeType!==Node.ELEMENT_NODE)return!1;switch(this.menuType,Oe.dirContext,this.menuType){case Oe.listItemHover:return!0;case Oe.listItemContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="report"]');case Oe.selection:return!0;case Oe.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.getContainers(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 getContainers(t){let n=[];const o=t.addedNodes[0];switch(this.menuType){case Oe.listItemHover:document.querySelectorAll("#js_data_list .list-contents > ul:not([ce-done]) > li .file-opr").forEach(s=>{n.push(s)});break;case Oe.listItemContext:n=[o];break;case Oe.selection:document.querySelectorAll("#js_top_panel_box #js_operate_box").forEach(s=>{n.push(s)});break;case Oe.dirContext:n=[o];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 o=this.items.slice();this.position===Xn.after&&(o=o.reverse());for(let s=0;s<o.length;s++){const i=o[s];if(!await this.shouldInjectMenuItem(t,i))continue;const r=await i.render();this.position===Xn.before?n.insertAdjacentElement("beforebegin",r):n.insertAdjacentElement("afterend",r),await i.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 eg extends vi{constructor(){super(...arguments);Ae(this,"menuType",Oe.dirContext);Ae(this,"useObserver",!0);Ae(this,"observeTarget",document.body);Ae(this,"disposeObserverAfterInjection",!0)}}class tg extends vi{constructor(){super(...arguments);Ae(this,"menuType",Oe.listItemContext)}}class ng extends vi{constructor(n){super(n);Ae(this,"menuType",Oe.listItemHover);Ae(this,"useObserver",!0);Ae(this,"observeTarget","#js_data_list");Ae(this,"disposeObserverAfterInjection",!1);this.handleLoadAll()}async inject(){const n=document.querySelector("#js_data_list");if(n){const o=n.querySelectorAll(".list-contents > ul:not([ce-done]) > li .file-opr");o.length&&await this.perform(Array.from(o))}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 o(s){const i=document.querySelector("#js_data_list .list-contents > ul > li");!i||i.querySelector(".ce-menu")||s(!0)}n.addEventListener("click",async s=>{s.preventDefault(),s.stopPropagation();const i=s.target;let r=!1;if((i.getAttribute("menu")==="load_all_file"||i.closest('[menu="load_all_file"]'))&&(r=!0),!r)return;console.log("[ListItemHoverMenuInjector.handleLoadAll] 点击了「加载全部」按钮"),await Zs(o,500,3e5);const l=document.querySelector("#js_data_list .list-contents > ul");l==null||l.removeAttribute("ce-done");const d=document.querySelector("#js_data_list");if(d){const f=".list-contents > ul:not([ce-done]) > li .file-opr";if(!document.querySelector(f)){const m=await ta();await jc(m)}const p=d.querySelectorAll(f);p.length&&await this.perform(Array.from(p))}})}async perform(n){await super.perform(n);const o=document.querySelector("#js_data_list .list-contents > ul");o==null||o.setAttribute("ce-done","")}}class og extends vi{constructor(){super(...arguments);Ae(this,"menuType",Oe.selection);Ae(this,"useObserver",!0);Ae(this,"observeTarget","#js_top_panel_box #js_operate_box");Ae(this,"disposeObserverAfterInjection",!1)}}async function sg(e,t){return!!$(t).closest("li").attr("cate_id")}async function ig(e,t){const n=$(t).closest("li");if(n.attr("cate_id")||n.attr("iv")==="1")return!0;const o=n.attr("ico");return o?th(o)||oh(o)||nh(o):!1}function On(e,t){const n=Object.create(null),o=e.split(",");for(let s=0;s<o.length;s++)n[o[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}function un(e){if(ye(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=Je(o)?cg(o):un(o);if(s)for(const i in s)t[i]=s[i]}return t}else{if(Je(e))return e;if(He(e))return e}}const rg=/;(?![^(]*\))/g,ag=/:([^]+)/,lg=/\/\*.*?\*\//gs;function cg(e){const t={};return e.replace(lg,"").split(rg).forEach(n=>{if(n){const o=n.split(ag);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ge(e){let t="";if(Je(e))t=e;else if(ye(e))for(let n=0;n<e.length;n++){const o=Ge(e[n]);o&&(t+=o+" ")}else if(He(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ug(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Je(t)&&(e.class=Ge(t)),n&&(e.style=un(n)),e}const dg="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",fg="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",pg=On(dg),hg=On(fg),mg=On("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Wc(e){return!!e||e===""}function gg(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=ds(e[o],t[o]);return n}function ds(e,t){if(e===t)return!0;let n=Gc(e),o=Gc(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=ps(e),o=ps(t),n||o)return e===t;if(n=ye(e),o=ye(t),n||o)return n&&o?gg(e,t):!1;if(n=He(e),o=He(t),n||o){if(!n||!o)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const r in e){const l=e.hasOwnProperty(r),d=t.hasOwnProperty(r);if(l&&!d||!l&&d||!ds(e[r],t[r]))return!1}}return String(e)===String(t)}function oa(e,t){return e.findIndex(n=>ds(n,t))}const we=e=>Je(e)?e:e==null?"":ye(e)||He(e)&&(e.toString===Yc||!ke(e.toString))?JSON.stringify(e,Kc,2):String(e),Kc=(e,t)=>t&&t.__v_isRef?Kc(e,t.value):Zn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s])=>(n[`${o} =>`]=s,n),{})}:Bo(t)?{[`Set(${t.size})`]:[...t.values()]}:He(t)&&!ye(t)&&!Xc(t)?String(t):t,ze=Object.freeze({}),Mo=Object.freeze([]),St=()=>{},Jc=()=>!1,wg=/^on[^a-z]/,fs=e=>wg.test(e),_i=e=>e.startsWith("onUpdate:"),tt=Object.assign,sa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yg=Object.prototype.hasOwnProperty,Me=(e,t)=>yg.call(e,t),ye=Array.isArray,Zn=e=>hs(e)==="[object Map]",Bo=e=>hs(e)==="[object Set]",Gc=e=>hs(e)==="[object Date]",ke=e=>typeof e=="function",Je=e=>typeof e=="string",ps=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",xi=e=>He(e)&&ke(e.then)&&ke(e.catch),Yc=Object.prototype.toString,hs=e=>Yc.call(e),ia=e=>hs(e).slice(8,-1),Xc=e=>hs(e)==="[object Object]",ra=e=>Je(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ci=On(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bg=On("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),$i=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vg=/-(\w)/g,en=$i(e=>e.replace(vg,(t,n)=>n?n.toUpperCase():"")),_g=/\B([A-Z])/g,dn=$i(e=>e.replace(_g,"-$1").toLowerCase()),eo=$i(e=>e.charAt(0).toUpperCase()+e.slice(1)),to=$i(e=>e?`on${eo(e)}`:""),ms=(e,t)=>!Object.is(e,t),Do=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ki=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Si=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xg=e=>{const t=Je(e)?Number(e):NaN;return isNaN(t)?e:t};let Qc;const Zc=()=>Qc||(Qc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function aa(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let zt;class Cg{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=zt,!t&&zt&&(this.index=(zt.scopes||(zt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=zt;try{return zt=this,t()}finally{zt=n}}else aa("cannot run an inactive effect scope.")}on(){zt=this}off(){zt=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function $g(e,t=zt){t&&t.active&&t.effects.push(e)}function kg(){return zt}const la=e=>{const t=new Set(e);return t.w=0,t.n=0,t},eu=e=>(e.w&In)>0,tu=e=>(e.n&In)>0,Sg=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=In},Eg=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const s=t[o];eu(s)&&!tu(s)?s.delete(e):t[n++]=s,s.w&=~In,s.n&=~In}t.length=n}},Ei=new WeakMap;let gs=0,In=1;const ca=30;let wt;const no=Symbol("iterate"),ua=Symbol("Map key iterate");class da{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,$g(this,o)}run(){if(!this.active)return this.fn();let t=wt,n=Tn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=wt,wt=this,Tn=!0,In=1<<++gs,gs<=ca?Sg(this):nu(this),this.fn()}finally{gs<=ca&&Eg(this),In=1<<--gs,wt=this.parent,Tn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){wt===this?this.deferStop=!0:this.active&&(nu(this),this.onStop&&this.onStop(),this.active=!1)}}function nu(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Tn=!0;const ou=[];function oo(){ou.push(Tn),Tn=!1}function so(){const e=ou.pop();Tn=e===void 0?!0:e}function Et(e,t,n){if(Tn&&wt){let o=Ei.get(e);o||Ei.set(e,o=new Map);let s=o.get(n);s||o.set(n,s=la()),su(s,{effect:wt,target:e,type:t,key:n})}}function su(e,t){let n=!1;gs<=ca?tu(e)||(e.n|=In,n=!eu(e)):n=!e.has(wt),n&&(e.add(wt),wt.deps.push(e),wt.onTrack&&wt.onTrack(Object.assign({effect:wt},t)))}function fn(e,t,n,o,s,i){const r=Ei.get(e);if(!r)return;let l=[];if(t==="clear")l=[...r.values()];else if(n==="length"&&ye(e)){const f=Number(o);r.forEach((p,m)=>{(m==="length"||m>=f)&&l.push(p)})}else switch(n!==void 0&&l.push(r.get(n)),t){case"add":ye(e)?ra(n)&&l.push(r.get("length")):(l.push(r.get(no)),Zn(e)&&l.push(r.get(ua)));break;case"delete":ye(e)||(l.push(r.get(no)),Zn(e)&&l.push(r.get(ua)));break;case"set":Zn(e)&&l.push(r.get(no));break}const d={target:e,type:t,key:n,newValue:o,oldValue:s,oldTarget:i};if(l.length===1)l[0]&&fa(l[0],d);else{const f=[];for(const p of l)p&&f.push(...p);fa(la(f),d)}}function fa(e,t){const n=ye(e)?e:[...e];for(const o of n)o.computed&&iu(o,t);for(const o of n)o.computed||iu(o,t)}function iu(e,t){(e!==wt||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(tt({effect:e},t)),e.scheduler?e.scheduler():e.run())}function Ag(e,t){var n;return(n=Ei.get(e))===null||n===void 0?void 0:n.get(t)}const Pg=On("__proto__,__v_isRef,__isVue"),ru=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ps)),Og=Ai(),Ig=Ai(!1,!0),Tg=Ai(!0),Lg=Ai(!0,!0),au=Mg();function Mg(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=Ie(this);for(let i=0,r=this.length;i<r;i++)Et(o,"get",i+"");const s=o[t](...n);return s===-1||s===!1?o[t](...n.map(Ie)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){oo();const o=Ie(this)[t].apply(this,n);return so(),o}}),e}function Bg(e){const t=Ie(this);return Et(t,"has",e),t.hasOwnProperty(e)}function Ai(e=!1,t=!1){return function(o,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?bu:yu:t?wu:gu).get(o))return o;const r=ye(o);if(!e){if(r&&Me(au,s))return Reflect.get(au,s,i);if(s==="hasOwnProperty")return Bg}const l=Reflect.get(o,s,i);return(ps(s)?ru.has(s):Pg(s))||(e||Et(o,"get",s),t)?l:nt(l)?r&&ra(s)?l:l.value:He(l)?e?vu(l):Di(l):l}}const Dg=lu(),Ng=lu(!0);function lu(e=!1){return function(n,o,s,i){let r=n[o];if(Mn(r)&&nt(r)&&!nt(s))return!1;if(!e&&(!Ri(s)&&!Mn(s)&&(r=Ie(r),s=Ie(s)),!ye(n)&&nt(r)&&!nt(s)))return r.value=s,!0;const l=ye(n)&&ra(o)?Number(o)<n.length:Me(n,o),d=Reflect.set(n,o,s,i);return n===Ie(i)&&(l?ms(s,r)&&fn(n,"set",o,s,r):fn(n,"add",o,s)),d}}function Rg(e,t){const n=Me(e,t),o=e[t],s=Reflect.deleteProperty(e,t);return s&&n&&fn(e,"delete",t,void 0,o),s}function Fg(e,t){const n=Reflect.has(e,t);return(!ps(t)||!ru.has(t))&&Et(e,"has",t),n}function jg(e){return Et(e,"iterate",ye(e)?"length":no),Reflect.ownKeys(e)}const cu={get:Og,set:Dg,deleteProperty:Rg,has:Fg,ownKeys:jg},uu={get:Tg,set(e,t){return aa(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return aa(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Ug=tt({},cu,{get:Ig,set:Ng}),Hg=tt({},uu,{get:Lg}),pa=e=>e,Pi=e=>Reflect.getPrototypeOf(e);function Oi(e,t,n=!1,o=!1){e=e.__v_raw;const s=Ie(e),i=Ie(t);n||(t!==i&&Et(s,"get",t),Et(s,"get",i));const{has:r}=Pi(s),l=o?pa:n?ha:ws;if(r.call(s,t))return l(e.get(t));if(r.call(s,i))return l(e.get(i));e!==s&&e.get(t)}function Ii(e,t=!1){const n=this.__v_raw,o=Ie(n),s=Ie(e);return t||(e!==s&&Et(o,"has",e),Et(o,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Ti(e,t=!1){return e=e.__v_raw,!t&&Et(Ie(e),"iterate",no),Reflect.get(e,"size",e)}function du(e){e=Ie(e);const t=Ie(this);return Pi(t).has.call(t,e)||(t.add(e),fn(t,"add",e,e)),this}function fu(e,t){t=Ie(t);const n=Ie(this),{has:o,get:s}=Pi(n);let i=o.call(n,e);i?mu(n,o,e):(e=Ie(e),i=o.call(n,e));const r=s.call(n,e);return n.set(e,t),i?ms(t,r)&&fn(n,"set",e,t,r):fn(n,"add",e,t),this}function pu(e){const t=Ie(this),{has:n,get:o}=Pi(t);let s=n.call(t,e);s?mu(t,n,e):(e=Ie(e),s=n.call(t,e));const i=o?o.call(t,e):void 0,r=t.delete(e);return s&&fn(t,"delete",e,void 0,i),r}function hu(){const e=Ie(this),t=e.size!==0,n=Zn(e)?new Map(e):new Set(e),o=e.clear();return t&&fn(e,"clear",void 0,void 0,n),o}function Li(e,t){return function(o,s){const i=this,r=i.__v_raw,l=Ie(r),d=t?pa:e?ha:ws;return!e&&Et(l,"iterate",no),r.forEach((f,p)=>o.call(s,d(f),d(p),i))}}function Mi(e,t,n){return function(...o){const s=this.__v_raw,i=Ie(s),r=Zn(i),l=e==="entries"||e===Symbol.iterator&&r,d=e==="keys"&&r,f=s[e](...o),p=n?pa:t?ha:ws;return!t&&Et(i,"iterate",d?ua:no),{next(){const{value:m,done:y}=f.next();return y?{value:m,done:y}:{value:l?[p(m[0]),p(m[1])]:p(m),done:y}},[Symbol.iterator](){return this}}}}function Ln(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${eo(e)} operation ${n}failed: target is readonly.`,Ie(this))}return e==="delete"?!1:this}}function zg(){const e={get(i){return Oi(this,i)},get size(){return Ti(this)},has:Ii,add:du,set:fu,delete:pu,clear:hu,forEach:Li(!1,!1)},t={get(i){return Oi(this,i,!1,!0)},get size(){return Ti(this)},has:Ii,add:du,set:fu,delete:pu,clear:hu,forEach:Li(!1,!0)},n={get(i){return Oi(this,i,!0)},get size(){return Ti(this,!0)},has(i){return Ii.call(this,i,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Li(!0,!1)},o={get(i){return Oi(this,i,!0,!0)},get size(){return Ti(this,!0)},has(i){return Ii.call(this,i,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Li(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Mi(i,!1,!1),n[i]=Mi(i,!0,!1),t[i]=Mi(i,!1,!0),o[i]=Mi(i,!0,!0)}),[e,n,t,o]}const[qg,Vg,Wg,Kg]=zg();function Bi(e,t){const n=t?e?Kg:Wg:e?Vg:qg;return(o,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(Me(n,s)&&s in o?n:o,s,i)}const Jg={get:Bi(!1,!1)},Gg={get:Bi(!1,!0)},Yg={get:Bi(!0,!1)},Xg={get:Bi(!0,!0)};function mu(e,t,n){const o=Ie(n);if(o!==n&&t.call(e,o)){const s=ia(e);console.warn(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const gu=new WeakMap,wu=new WeakMap,yu=new WeakMap,bu=new WeakMap;function Qg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zg(e){return e.__v_skip||!Object.isExtensible(e)?0:Qg(ia(e))}function Di(e){return Mn(e)?e:Ni(e,!1,cu,Jg,gu)}function ew(e){return Ni(e,!1,Ug,Gg,wu)}function vu(e){return Ni(e,!0,uu,Yg,yu)}function No(e){return Ni(e,!0,Hg,Xg,bu)}function Ni(e,t,n,o,s){if(!He(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const r=Zg(e);if(r===0)return e;const l=new Proxy(e,r===2?o:n);return s.set(e,l),l}function io(e){return Mn(e)?io(e.__v_raw):!!(e&&e.__v_isReactive)}function Mn(e){return!!(e&&e.__v_isReadonly)}function Ri(e){return!!(e&&e.__v_isShallow)}function Fi(e){return io(e)||Mn(e)}function Ie(e){const t=e&&e.__v_raw;return t?Ie(t):e}function _u(e){return ki(e,"__v_skip",!0),e}const ws=e=>He(e)?Di(e):e,ha=e=>He(e)?vu(e):e;function xu(e){Tn&&wt&&(e=Ie(e),su(e.dep||(e.dep=la()),{target:e,type:"get",key:"value"}))}function Cu(e,t){e=Ie(e);const n=e.dep;n&&fa(n,{target:e,type:"set",key:"value",newValue:t})}function nt(e){return!!(e&&e.__v_isRef===!0)}function be(e){return tw(e,!1)}function tw(e,t){return nt(e)?e:new nw(e,t)}class nw{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ie(t),this._value=n?t:ws(t)}get value(){return xu(this),this._value}set value(t){const n=this.__v_isShallow||Ri(t)||Mn(t);t=n?t:Ie(t),ms(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ws(t),Cu(this,t))}}function xe(e){return nt(e)?e.value:e}const ow={get:(e,t,n)=>xe(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return nt(s)&&!nt(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function $u(e){return io(e)?e:new Proxy(e,ow)}function sw(e){Fi(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=ye(e)?new Array(e.length):{};for(const n in e)t[n]=rw(e,n);return t}class iw{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ag(Ie(this._object),this._key)}}function rw(e,t,n){const o=e[t];return nt(o)?o:new iw(e,t,n)}var ku;class aw{constructor(t,n,o,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[ku]=!1,this._dirty=!0,this.effect=new da(t,()=>{this._dirty||(this._dirty=!0,Cu(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=Ie(this);return xu(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}ku="__v_isReadonly";function lw(e,t,n=!1){let o,s;const i=ke(e);i?(o=e,s=()=>{console.warn("Write operation failed: computed value is readonly")}):(o=e.get,s=e.set);const r=new aw(o,s,i||!s,n);return t&&!n&&(r.effect.onTrack=t.onTrack,r.effect.onTrigger=t.onTrigger),r}const ro=[];function ys(e){ro.push(e)}function bs(){ro.pop()}function Z(e,...t){oo();const n=ro.length?ro[ro.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=cw();if(o)pn(o,n,11,[e+t.join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${er(n,i.type)}>`).join(`
`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
`,...uw(s)),console.warn(...i)}so()}function cw(){let e=ro[ro.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function uw(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
`],...dw(n))}),t}function dw({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,s=` at <${er(e.component,e.type,o)}`,i=">"+n;return e.props?[s,...fw(e.props),i]:[s+i]}function fw(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...Su(o,e[o]))}),n.length>3&&t.push(" ..."),t}function Su(e,t,n){return Je(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:nt(t)?(t=Su(e,Ie(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ke(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ie(t),n?t:[`${e}=`,t])}function pw(e,t){e!==void 0&&(typeof e!="number"?Z(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&Z(`${t} is NaN - the duration expression might be incorrect.`))}const ma={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function pn(e,t,n,o){let s;try{s=o?e(...o):e()}catch(i){vs(i,t,n)}return s}function qt(e,t,n,o){if(ke(e)){const i=pn(e,t,n,o);return i&&xi(i)&&i.catch(r=>{vs(r,t,n)}),i}const s=[];for(let i=0;i<e.length;i++)s.push(qt(e[i],t,n,o));return s}function vs(e,t,n,o=!0){const s=t?t.vnode:null;if(t){let i=t.parent;const r=t.proxy,l=ma[n];for(;i;){const f=i.ec;if(f){for(let p=0;p<f.length;p++)if(f[p](e,r,l)===!1)return}i=i.parent}const d=t.appContext.config.errorHandler;if(d){pn(d,null,10,[e,r,l]);return}}hw(e,n,s,o)}function hw(e,t,n,o=!0){{const s=ma[t];if(n&&ys(n),Z(`Unhandled error${s?` during execution of ${s}`:""}`),n&&bs(),o)throw e;console.error(e)}}let _s=!1,ga=!1;const pt=[];let tn=0;const Ro=[];let nn=null,Bn=0;const Eu=Promise.resolve();let wa=null;const mw=100;function ji(e){const t=wa||Eu;return e?t.then(this?e.bind(this):e):t}function gw(e){let t=tn+1,n=pt.length;for(;t<n;){const o=t+n>>>1;xs(pt[o])<e?t=o+1:n=o}return t}function Ui(e){(!pt.length||!pt.includes(e,_s&&e.allowRecurse?tn+1:tn))&&(e.id==null?pt.push(e):pt.splice(gw(e.id),0,e),Au())}function Au(){!_s&&!ga&&(ga=!0,wa=Eu.then(Iu))}function ww(e){const t=pt.indexOf(e);t>tn&&pt.splice(t,1)}function ya(e){ye(e)?Ro.push(...e):(!nn||!nn.includes(e,e.allowRecurse?Bn+1:Bn))&&Ro.push(e),Au()}function Pu(e,t=_s?tn+1:0){for(e=e||new Map;t<pt.length;t++){const n=pt[t];if(n&&n.pre){if(ba(e,n))continue;pt.splice(t,1),t--,n()}}}function Ou(e){if(Ro.length){const t=[...new Set(Ro)];if(Ro.length=0,nn){nn.push(...t);return}for(nn=t,e=e||new Map,nn.sort((n,o)=>xs(n)-xs(o)),Bn=0;Bn<nn.length;Bn++)ba(e,nn[Bn])||nn[Bn]();nn=null,Bn=0}}const xs=e=>e.id==null?1/0:e.id,yw=(e,t)=>{const n=xs(e)-xs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Iu(e){ga=!1,_s=!0,e=e||new Map,pt.sort(yw);const t=n=>ba(e,n);try{for(tn=0;tn<pt.length;tn++){const n=pt[tn];if(n&&n.active!==!1){if(t(n))continue;pn(n,null,14)}}}finally{tn=0,pt.length=0,Ou(e),_s=!1,wa=null,(pt.length||Ro.length)&&Iu(e)}}function ba(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>mw){const o=t.ownerInstance,s=o&&qa(o.type);return Z(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,n+1)}}let ao=!1;const Fo=new Set;Zc().__VUE_HMR_RUNTIME__={createRecord:va(Tu),rerender:va(_w),reload:va(xw)};const lo=new Map;function bw(e){const t=e.type.__hmrId;let n=lo.get(t);n||(Tu(t,e.type),n=lo.get(t)),n.instances.add(e)}function vw(e){lo.get(e.type.__hmrId).instances.delete(e)}function Tu(e,t){return lo.has(e)?!1:(lo.set(e,{initialDef:Cs(t),instances:new Set}),!0)}function Cs(e){return _d(e)?e.__vccOpts:e}function _w(e,t){const n=lo.get(e);!n||(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,Cs(o.type).render=t),o.renderCache=[],ao=!0,o.update(),ao=!1}))}function xw(e,t){const n=lo.get(e);if(!n)return;t=Cs(t),Lu(n.initialDef,t);const o=[...n.instances];for(const s of o){const i=Cs(s.type);Fo.has(i)||(i!==n.initialDef&&Lu(i,t),Fo.add(i)),s.appContext.optionsCache.delete(s.type),s.ceReload?(Fo.add(i),s.ceReload(t.styles),Fo.delete(i)):s.parent?Ui(s.parent.update):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}ya(()=>{for(const s of o)Fo.delete(Cs(s.type))})}function Lu(e,t){tt(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function va(e){return(t,n)=>{try{return e(t,n)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let on,$s=[],_a=!1;function ks(e,...t){on?on.emit(e,...t):_a||$s.push({event:e,args:t})}function Mu(e,t){var n,o;on=e,on?(on.enabled=!0,$s.forEach(({event:s,args:i})=>on.emit(s,...i)),$s=[]):typeof window<"u"&&window.HTMLElement&&!(!((o=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Mu(i,t)}),setTimeout(()=>{on||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_a=!0,$s=[])},3e3)):(_a=!0,$s=[])}function Cw(e,t){ks("app:init",e,t,{Fragment:De,Text:Ts,Comment:bt,Static:Ls})}function $w(e){ks("app:unmount",e)}const kw=xa("component:added"),Bu=xa("component:updated"),Sw=xa("component:removed"),Ew=e=>{on&&typeof on.cleanupBuffer=="function"&&!on.cleanupBuffer(e)&&Sw(e)};function xa(e){return t=>{ks(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Aw=Du("perf:start"),Pw=Du("perf:end");function Du(e){return(t,n,o)=>{ks(e,t.appContext.app,t.uid,t,n,o)}}function Ow(e,t,n){ks("component:emit",e.appContext.app,e,t,n)}function Iw(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ze;{const{emitsOptions:p,propsOptions:[m]}=e;if(p)if(!(t in p))(!m||!(to(t)in m))&&Z(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${to(t)}" prop.`);else{const y=p[t];ke(y)&&(y(...n)||Z(`Invalid event arguments: event validation failed for event "${t}".`))}}let s=n;const i=t.startsWith("update:"),r=i&&t.slice(7);if(r&&r in o){const p=`${r==="modelValue"?"model":r}Modifiers`,{number:m,trim:y}=o[p]||ze;y&&(s=n.map(x=>Je(x)?x.trim():x)),m&&(s=n.map(Si))}Ow(e,t,s);{const p=t.toLowerCase();p!==t&&o[to(p)]&&Z(`Event "${p}" is emitted in component ${er(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${dn(t)}" instead of "${t}".`)}let l,d=o[l=to(t)]||o[l=to(en(t))];!d&&i&&(d=o[l=to(dn(t))]),d&&qt(d,e,6,s);const f=o[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,qt(f,e,6,s)}}function Nu(e,t,n=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const i=e.emits;let r={},l=!1;if(!ke(e)){const d=f=>{const p=Nu(f,t,!0);p&&(l=!0,tt(r,p))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!i&&!l?(He(e)&&o.set(e,null),null):(ye(i)?i.forEach(d=>r[d]=null):tt(r,i),He(e)&&o.set(e,r),r)}function Hi(e,t){return!e||!fs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Me(e,t[0].toLowerCase()+t.slice(1))||Me(e,dn(t))||Me(e,t))}let it=null,zi=null;function qi(e){const t=it;return it=e,zi=e&&e.type.__scopeId||null,t}function Tw(e){zi=e}function Lw(){zi=null}const Mw=e=>Ve;function Ve(e,t=it,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&pd(-1);const i=qi(t);let r;try{r=e(...s)}finally{qi(i),o._d&&pd(1)}return Bu(t),r};return o._n=!0,o._c=!0,o._d=!0,o}let Ca=!1;function Vi(){Ca=!0}function $a(e){const{type:t,vnode:n,proxy:o,withProxy:s,props:i,propsOptions:[r],slots:l,attrs:d,emit:f,render:p,renderCache:m,data:y,setupState:x,ctx:E,inheritAttrs:A}=e;let M,V;const O=qi(e);Ca=!1;try{if(n.shapeFlag&4){const ee=s||o;M=Ft(p.call(ee,ee,m,i,x,y,E)),V=d}else{const ee=t;d===i&&Vi(),M=Ft(ee.length>1?ee(i,{get attrs(){return Vi(),d},slots:l,emit:f}):ee(i,null)),V=t.props?d:Dw(d)}}catch(ee){Ms.length=0,vs(ee,e,1),M=Ce(bt)}let T=M,Q;if(M.patchFlag>0&&M.patchFlag&2048&&([T,Q]=Bw(M)),V&&A!==!1){const ee=Object.keys(V),{shapeFlag:U}=T;if(ee.length){if(U&7)r&&ee.some(_i)&&(V=Nw(V,r)),T=Rn(T,V);else if(!Ca&&T.type!==bt){const se=Object.keys(d),ie=[],de=[];for(let Pe=0,pe=se.length;Pe<pe;Pe++){const re=se[Pe];fs(re)?_i(re)||ie.push(re[2].toLowerCase()+re.slice(3)):de.push(re)}de.length&&Z(`Extraneous non-props attributes (${de.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ie.length&&Z(`Extraneous non-emits event listeners (${ie.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(Ru(T)||Z("Runtime directive used on component with non-element root node. The directives will not function as intended."),T=Rn(T),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&(Ru(T)||Z("Component inside <Transition> renders non-element root node that cannot be animated."),T.transition=n.transition),Q?Q(T):M=T,qi(O),M}const Bw=e=>{const t=e.children,n=e.dynamicChildren,o=ka(t);if(!o)return[e,void 0];const s=t.indexOf(o),i=n?n.indexOf(o):-1,r=l=>{t[s]=l,n&&(i>-1?n[i]=l:l.patchFlag>0&&(e.dynamicChildren=[...n,l]))};return[Ft(o),r]};function ka(e){let t;for(let n=0;n<e.length;n++){const o=e[n];if(Ho(o)){if(o.type!==bt||o.children==="v-if"){if(t)return;t=o}}else return}return t}const Dw=e=>{let t;for(const n in e)(n==="class"||n==="style"||fs(n))&&((t||(t={}))[n]=e[n]);return t},Nw=(e,t)=>{const n={};for(const o in e)(!_i(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n},Ru=e=>e.shapeFlag&7||e.type===bt;function Rw(e,t,n){const{props:o,children:s,component:i}=e,{props:r,children:l,patchFlag:d}=t,f=i.emitsOptions;if((s||l)&&ao||t.dirs||t.transition)return!0;if(n&&d>=0){if(d&1024)return!0;if(d&16)return o?Fu(o,r,f):!!r;if(d&8){const p=t.dynamicProps;for(let m=0;m<p.length;m++){const y=p[m];if(r[y]!==o[y]&&!Hi(f,y))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:o===r?!1:o?r?Fu(o,r,f):!0:!!r;return!1}function Fu(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const i=o[s];if(t[i]!==e[i]&&!Hi(n,i))return!0}return!1}function Sa({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Fw=e=>e.__isSuspense,ju={name:"Suspense",__isSuspense:!0,process(e,t,n,o,s,i,r,l,d,f){e==null?jw(t,n,o,s,i,r,l,d,f):Uw(e,t,n,o,s,r,l,d,f)},hydrate:Hw,create:Ea,normalize:zw};function Ss(e,t){const n=e.props&&e.props[t];ke(n)&&n()}function jw(e,t,n,o,s,i,r,l,d){const{p:f,o:{createElement:p}}=d,m=p("div"),y=e.suspense=Ea(e,s,o,t,m,n,i,r,l,d);f(null,y.pendingBranch=e.ssContent,m,null,o,y,i,r),y.deps>0?(Ss(e,"onPending"),Ss(e,"onFallback"),f(null,e.ssFallback,t,n,o,null,i,r),jo(y,e.ssFallback)):y.resolve()}function Uw(e,t,n,o,s,i,r,l,{p:d,um:f,o:{createElement:p}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const y=t.ssContent,x=t.ssFallback,{activeBranch:E,pendingBranch:A,isInFallback:M,isHydrating:V}=m;if(A)m.pendingBranch=y,Nn(y,A)?(d(A,y,m.hiddenContainer,null,s,m,i,r,l),m.deps<=0?m.resolve():M&&(d(E,x,n,o,s,null,i,r,l),jo(m,x))):(m.pendingId++,V?(m.isHydrating=!1,m.activeBranch=A):f(A,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=p("div"),M?(d(null,y,m.hiddenContainer,null,s,m,i,r,l),m.deps<=0?m.resolve():(d(E,x,n,o,s,null,i,r,l),jo(m,x))):E&&Nn(y,E)?(d(E,y,n,o,s,m,i,r,l),m.resolve(!0)):(d(null,y,m.hiddenContainer,null,s,m,i,r,l),m.deps<=0&&m.resolve()));else if(E&&Nn(y,E))d(E,y,n,o,s,m,i,r,l),jo(m,y);else if(Ss(t,"onPending"),m.pendingBranch=y,m.pendingId++,d(null,y,m.hiddenContainer,null,s,m,i,r,l),m.deps<=0)m.resolve();else{const{timeout:O,pendingId:T}=m;O>0?setTimeout(()=>{m.pendingId===T&&m.fallback(x)},O):O===0&&m.fallback(x)}}let Uu=!1;function Ea(e,t,n,o,s,i,r,l,d,f,p=!1){Uu||(Uu=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p:m,m:y,um:x,n:E,o:{parentNode:A,remove:M}}=f,V=e.props?xg(e.props.timeout):void 0;pw(V,"Suspense timeout");const O={vnode:e,parent:t,parentComponent:n,isSVG:r,container:o,hiddenContainer:s,anchor:i,deps:0,pendingId:0,timeout:typeof V=="number"?V:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(T=!1){{if(!T&&!O.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(O.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:Q,activeBranch:ee,pendingBranch:U,pendingId:se,effects:ie,parentComponent:de,container:Pe}=O;if(O.isHydrating)O.isHydrating=!1;else if(!T){const Ee=ee&&U.transition&&U.transition.mode==="out-in";Ee&&(ee.transition.afterLeave=()=>{se===O.pendingId&&y(U,Pe,ae,0)});let{anchor:ae}=O;ee&&(ae=E(ee),x(ee,de,O,!0)),Ee||y(U,Pe,ae,0)}jo(O,U),O.pendingBranch=null,O.isInFallback=!1;let pe=O.parent,re=!1;for(;pe;){if(pe.pendingBranch){pe.effects.push(...ie),re=!0;break}pe=pe.parent}re||ya(ie),O.effects=[],Ss(Q,"onResolve")},fallback(T){if(!O.pendingBranch)return;const{vnode:Q,activeBranch:ee,parentComponent:U,container:se,isSVG:ie}=O;Ss(Q,"onFallback");const de=E(ee),Pe=()=>{!O.isInFallback||(m(null,T,se,de,U,null,ie,l,d),jo(O,T))},pe=T.transition&&T.transition.mode==="out-in";pe&&(ee.transition.afterLeave=Pe),O.isInFallback=!0,x(ee,U,null,!0),pe||Pe()},move(T,Q,ee){O.activeBranch&&y(O.activeBranch,T,Q,ee),O.container=T},next(){return O.activeBranch&&E(O.activeBranch)},registerDep(T,Q){const ee=!!O.pendingBranch;ee&&O.deps++;const U=T.vnode.el;T.asyncDep.catch(se=>{vs(se,T,0)}).then(se=>{if(T.isUnmounted||O.isUnmounted||O.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:ie}=T;ys(ie),Ha(T,se,!1),U&&(ie.el=U);const de=!U&&T.subTree.el;Q(T,ie,A(U||T.subTree.el),U?null:E(T.subTree),O,r,d),de&&M(de),Sa(T,ie.el),bs(),ee&&--O.deps===0&&O.resolve()})},unmount(T,Q){O.isUnmounted=!0,O.activeBranch&&x(O.activeBranch,n,T,Q),O.pendingBranch&&x(O.pendingBranch,n,T,Q)}};return O}function Hw(e,t,n,o,s,i,r,l,d){const f=t.suspense=Ea(t,o,n,e.parentNode,document.createElement("div"),null,s,i,r,l,!0),p=d(e,f.pendingBranch=t.ssContent,n,f,i,r);return f.deps===0&&f.resolve(),p}function zw(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=Hu(o?n.default:n),e.ssFallback=o?Hu(n.fallback):Ce(bt)}function Hu(e){let t;if(ke(e)){const n=Uo&&e._c;n&&(e._d=!1,G()),e=e(),n&&(e._d=!0,t=Nt,fd())}if(ye(e)){const n=ka(e);n||Z("<Suspense> slots expect a single root node."),e=n}return e=Ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function qw(e,t){t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):ya(e)}function jo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,s=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=s,Sa(o,s))}function Es(e,t){if(!Ye)Z("provide() can only be used inside setup().");else{let n=Ye.provides;const o=Ye.parent&&Ye.parent.provides;o===n&&(n=Ye.provides=Object.create(o)),n[e]=t}}function As(e,t,n=!1){const o=Ye||it;if(o){const s=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ke(t)?t.call(o.proxy):t;Z(`injection "${String(e)}" not found.`)}else Z("inject() can only be used inside setup() or functional components.")}const Wi={};function ht(e,t,n){return ke(t)||Z("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),zu(e,t,n)}function zu(e,t,{immediate:n,deep:o,flush:s,onTrack:i,onTrigger:r}=ze){t||(n!==void 0&&Z('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&Z('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const l=Q=>{Z("Invalid watch source: ",Q,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=kg()===(Ye==null?void 0:Ye.scope)?Ye:null;let f,p=!1,m=!1;if(nt(e)?(f=()=>e.value,p=Ri(e)):io(e)?(f=()=>e,o=!0):ye(e)?(m=!0,p=e.some(Q=>io(Q)||Ri(Q)),f=()=>e.map(Q=>{if(nt(Q))return Q.value;if(io(Q))return co(Q);if(ke(Q))return pn(Q,d,2);l(Q)})):ke(e)?t?f=()=>pn(e,d,2):f=()=>{if(!(d&&d.isUnmounted))return y&&y(),qt(e,d,3,[x])}:(f=St,l(e)),t&&o){const Q=f;f=()=>co(Q())}let y,x=Q=>{y=O.onStop=()=>{pn(Q,d,4)}},E;if(Bs)if(x=St,t?n&&qt(t,d,3,[f(),m?[]:void 0,x]):f(),s==="sync"){const Q=Ky();E=Q.__watcherHandles||(Q.__watcherHandles=[])}else return St;let A=m?new Array(e.length).fill(Wi):Wi;const M=()=>{if(!!O.active)if(t){const Q=O.run();(o||p||(m?Q.some((ee,U)=>ms(ee,A[U])):ms(Q,A)))&&(y&&y(),qt(t,d,3,[Q,A===Wi?void 0:m&&A[0]===Wi?[]:A,x]),A=Q)}else O.run()};M.allowRecurse=!!t;let V;s==="sync"?V=M:s==="post"?V=()=>At(M,d&&d.suspense):(M.pre=!0,d&&(M.id=d.uid),V=()=>Ui(M));const O=new da(f,V);O.onTrack=i,O.onTrigger=r,t?n?M():A=O.run():s==="post"?At(O.run.bind(O),d&&d.suspense):O.run();const T=()=>{O.stop(),d&&d.scope&&sa(d.scope.effects,O)};return E&&E.push(T),T}function Vw(e,t,n){const o=this.proxy,s=Je(e)?e.includes(".")?qu(o,e):()=>o[e]:e.bind(o,o);let i;ke(t)?i=t:(i=t.handler,n=t);const r=Ye;jn(this);const l=zu(s,i.bind(o),n);return r?jn(r):Un(),l}function qu(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;s<n.length&&o;s++)o=o[n[s]];return o}}function co(e,t){if(!He(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),nt(e))co(e.value,t);else if(ye(e))for(let n=0;n<e.length;n++)co(e[n],t);else if(Bo(e)||Zn(e))e.forEach(n=>{co(n,t)});else if(Xc(e))for(const n in e)co(e[n],t);return e}function Be(e){return ke(e)?{setup:e,name:e.name}:e}const Ps=e=>!!e.type.__asyncLoader,Aa=e=>e.type.__isKeepAlive;function Ww(e,t){Vu(e,"a",t)}function Kw(e,t){Vu(e,"da",t)}function Vu(e,t,n=Ye){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Ki(t,o,n),n){let s=n.parent;for(;s&&s.parent;)Aa(s.parent.vnode)&&Jw(o,t,n,s),s=s.parent}}function Jw(e,t,n,o){const s=Ki(t,e,o,!0);Os(()=>{sa(o[t],s)},n)}function Ki(e,t,n=Ye,o=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;oo(),jn(n);const l=qt(t,n,e,r);return Un(),so(),l});return o?s.unshift(i):s.push(i),i}else{const s=to(ma[e].replace(/ hook$/,""));Z(`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const hn=e=>(t,n=Ye)=>(!Bs||e==="sp")&&Ki(e,(...o)=>t(...o),n),Vt=hn("bm"),Wt=hn("m"),Gw=hn("bu"),Yw=hn("u"),Wu=hn("bum"),Os=hn("um"),Xw=hn("sp"),Qw=hn("rtg"),Zw=hn("rtc");function ey(e,t=Ye){Ki("ec",e,t)}function Ku(e){bg(e)&&Z("Do not use built-in directive ids as custom directive id: "+e)}function oe(e,t){const n=it;if(n===null)return Z("withDirectives can only be used inside render functions."),e;const o=Zi(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,l,d,f=ze]=t[i];r&&(ke(r)&&(r={mounted:r,updated:r}),r.deep&&co(l),s.push({dir:r,instance:o,value:l,oldValue:void 0,arg:d,modifiers:f}))}return e}function uo(e,t,n,o){const s=e.dirs,i=t&&t.dirs;for(let r=0;r<s.length;r++){const l=s[r];i&&(l.oldValue=i[r].value);let d=l.dir[o];d&&(oo(),qt(d,n,8,[e.el,l,e,t]),so())}}const Pa="components";function fo(e,t){return ny(Pa,e,!0,t)||e}const ty=Symbol();function ny(e,t,n=!0,o=!1){const s=it||Ye;if(s){const i=s.type;if(e===Pa){const l=qa(i,!1);if(l&&(l===t||l===en(t)||l===eo(en(t))))return i}const r=Ju(s[e]||i[e],t)||Ju(s.appContext[e],t);if(!r&&o)return i;if(n&&!r){const l=e===Pa?`
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";Z(`Failed to resolve ${e.slice(0,-1)}: ${t}${l}`)}return r}else Z(`resolve${eo(e.slice(0,-1))} can only be used in render() or setup().`)}function Ju(e,t){return e&&(e[t]||e[en(t)]||e[eo(en(t))])}function dt(e,t,n,o){let s;const i=n&&n[o];if(ye(e)||Je(e)){s=new Array(e.length);for(let r=0,l=e.length;r<l;r++)s[r]=t(e[r],r,void 0,i&&i[r])}else if(typeof e=="number"){Number.isInteger(e)||Z(`The v-for range expect an integer value but got ${e}.`),s=new Array(e);for(let r=0;r<e;r++)s[r]=t(r+1,r,void 0,i&&i[r])}else if(He(e))if(e[Symbol.iterator])s=Array.from(e,(r,l)=>t(r,l,void 0,i&&i[l]));else{const r=Object.keys(e);s=new Array(r.length);for(let l=0,d=r.length;l<d;l++){const f=r[l];s[l]=t(e[f],f,l,i&&i[l])}}else s=[];return n&&(n[o]=s),s}function mn(e,t,n={},o,s){if(it.isCE||it.parent&&Ps(it.parent)&&it.parent.isCE)return t!=="default"&&(n.name=t),Ce("slot",n,o&&o());let i=e[t];i&&i.length>1&&(Z("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),i=()=>[]),i&&i._c&&(i._d=!1),G();const r=i&&Gu(i(n)),l=Rt(De,{key:n.key||r&&r.key||`_${t}`},r||(o?o():[]),r&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Gu(e){return e.some(t=>Ho(t)?!(t.type===bt||t.type===De&&!Gu(t.children)):!0)?e:null}const Oa=e=>e?bd(e)?Zi(e)||e.proxy:Oa(e.parent):null,po=tt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>No(e.props),$attrs:e=>No(e.attrs),$slots:e=>No(e.slots),$refs:e=>No(e.refs),$parent:e=>Oa(e.parent),$root:e=>Oa(e.root),$emit:e=>e.emit,$options:e=>Ma(e),$forceUpdate:e=>e.f||(e.f=()=>Ui(e.update)),$nextTick:e=>e.n||(e.n=ji.bind(e.proxy)),$watch:e=>Vw.bind(e)}),Ia=e=>e==="_"||e==="$",Ta=(e,t)=>e!==ze&&!e.__isScriptSetup&&Me(e,t),Yu={get({_:e},t){const{ctx:n,setupState:o,data:s,props:i,accessCache:r,type:l,appContext:d}=e;if(t==="__isVue")return!0;let f;if(t[0]!=="$"){const x=r[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Ta(o,t))return r[t]=1,o[t];if(s!==ze&&Me(s,t))return r[t]=2,s[t];if((f=e.propsOptions[0])&&Me(f,t))return r[t]=3,i[t];if(n!==ze&&Me(n,t))return r[t]=4,n[t];La&&(r[t]=0)}}const p=po[t];let m,y;if(p)return t==="$attrs"&&(Et(e,"get",t),Vi()),p(e);if((m=l.__cssModules)&&(m=m[t]))return m;if(n!==ze&&Me(n,t))return r[t]=4,n[t];if(y=d.config.globalProperties,Me(y,t))return y[t];it&&(!Je(t)||t.indexOf("__v")!==0)&&(s!==ze&&Ia(t[0])&&Me(s,t)?Z(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===it&&Z(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:s,ctx:i}=e;return Ta(s,t)?(s[t]=n,!0):s.__isScriptSetup&&Me(s,t)?(Z(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==ze&&Me(o,t)?(o[t]=n,!0):Me(e.props,t)?(Z(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(Z(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,propsOptions:i}},r){let l;return!!n[r]||e!==ze&&Me(e,r)||Ta(t,r)||(l=i[0])&&Me(l,r)||Me(o,r)||Me(po,r)||Me(s.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};Yu.ownKeys=e=>(Z("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e));function oy(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(po).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>po[n](e),set:St})}),t}function sy(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(o=>{Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>e.props[o],set:St})})}function iy(e){const{ctx:t,setupState:n}=e;Object.keys(Ie(n)).forEach(o=>{if(!n.__isScriptSetup){if(Ia(o[0])){Z(`setup() return property ${JSON.stringify(o)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>n[o],set:St})}})}function ry(){const e=Object.create(null);return(t,n)=>{e[n]?Z(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let La=!0;function ay(e){const t=Ma(e),n=e.proxy,o=e.ctx;La=!1,t.beforeCreate&&Xu(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:r,watch:l,provide:d,inject:f,created:p,beforeMount:m,mounted:y,beforeUpdate:x,updated:E,activated:A,deactivated:M,beforeDestroy:V,beforeUnmount:O,destroyed:T,unmounted:Q,render:ee,renderTracked:U,renderTriggered:se,errorCaptured:ie,serverPrefetch:de,expose:Pe,inheritAttrs:pe,components:re,directives:Ee,filters:ae}=t,Ue=ry();{const[J]=e.propsOptions;if(J)for(const N in J)Ue("Props",N)}if(f&&ly(f,o,Ue,e.appContext.config.unwrapInjectedRef),r)for(const J in r){const N=r[J];ke(N)?(Object.defineProperty(o,J,{value:N.bind(n),configurable:!0,enumerable:!0,writable:!0}),Ue("Methods",J)):Z(`Method "${J}" has type "${typeof N}" in the component definition. Did you reference the function correctly?`)}if(s){ke(s)||Z("The data option must be a function. Plain object usage is no longer supported.");const J=s.call(n,n);if(xi(J)&&Z("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!He(J))Z("data() should return an object.");else{e.data=Di(J);for(const N in J)Ue("Data",N),Ia(N[0])||Object.defineProperty(o,N,{configurable:!0,enumerable:!0,get:()=>J[N],set:St})}}if(La=!0,i)for(const J in i){const N=i[J],me=ke(N)?N.bind(n,n):ke(N.get)?N.get.bind(n,n):St;me===St&&Z(`Computed property "${J}" has no getter.`);const Se=!ke(N)&&ke(N.set)?N.set.bind(n):()=>{Z(`Write operation failed: computed property "${J}" is readonly.`)},Le=zo({get:me,set:Se});Object.defineProperty(o,J,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Xe=>Le.value=Xe}),Ue("Computed",J)}if(l)for(const J in l)Qu(l[J],o,n,J);if(d){const J=ke(d)?d.call(n):d;Reflect.ownKeys(J).forEach(N=>{Es(N,J[N])})}p&&Xu(p,e,"c");function D(J,N){ye(N)?N.forEach(me=>J(me.bind(n))):N&&J(N.bind(n))}if(D(Vt,m),D(Wt,y),D(Gw,x),D(Yw,E),D(Ww,A),D(Kw,M),D(ey,ie),D(Zw,U),D(Qw,se),D(Wu,O),D(Os,Q),D(Xw,de),ye(Pe))if(Pe.length){const J=e.exposed||(e.exposed={});Pe.forEach(N=>{Object.defineProperty(J,N,{get:()=>n[N],set:me=>n[N]=me})})}else e.exposed||(e.exposed={});ee&&e.render===St&&(e.render=ee),pe!=null&&(e.inheritAttrs=pe),re&&(e.components=re),Ee&&(e.directives=Ee)}function ly(e,t,n=St,o=!1){ye(e)&&(e=Ba(e));for(const s in e){const i=e[s];let r;He(i)?"default"in i?r=As(i.from||s,i.default,!0):r=As(i.from||s):r=As(i),nt(r)?o?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:l=>r.value=l}):(Z(`injected property "${s}" is a ref and will be auto-unwrapped and no longer needs \`.value\` in the next minor release. To opt-in to the new behavior now, set \`app.config.unwrapInjectedRef = true\` (this config is temporary and will not be needed in the future.)`),t[s]=r):t[s]=r,n("Inject",s)}}function Xu(e,t,n){qt(ye(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Qu(e,t,n,o){const s=o.includes(".")?qu(n,o):()=>n[o];if(Je(e)){const i=t[e];ke(i)?ht(s,i):Z(`Invalid watch handler specified by key "${e}"`,i)}else if(ke(e))ht(s,e.bind(n));else if(He(e))if(ye(e))e.forEach(i=>Qu(i,t,n,o));else{const i=ke(e.handler)?e.handler.bind(n):t[e.handler];ke(i)?ht(s,i,e):Z(`Invalid watch handler specified by key "${e.handler}"`,i)}else Z(`Invalid watch option: "${o}"`,e)}function Ma(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,l=i.get(t);let d;return l?d=l:!s.length&&!n&&!o?d=t:(d={},s.length&&s.forEach(f=>Ji(d,f,r,!0)),Ji(d,t,r)),He(t)&&i.set(t,d),d}function Ji(e,t,n,o=!1){const{mixins:s,extends:i}=t;i&&Ji(e,i,n,!0),s&&s.forEach(r=>Ji(e,r,n,!0));for(const r in t)if(o&&r==="expose")Z('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=cy[r]||n&&n[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const cy={data:Zu,props:ho,emits:ho,methods:ho,computed:ho,beforeCreate:yt,created:yt,beforeMount:yt,mounted:yt,beforeUpdate:yt,updated:yt,beforeDestroy:yt,beforeUnmount:yt,destroyed:yt,unmounted:yt,activated:yt,deactivated:yt,errorCaptured:yt,serverPrefetch:yt,components:ho,directives:ho,watch:dy,provide:Zu,inject:uy};function Zu(e,t){return t?e?function(){return tt(ke(e)?e.call(this,this):e,ke(t)?t.call(this,this):t)}:t:e}function uy(e,t){return ho(Ba(e),Ba(t))}function Ba(e){if(ye(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function yt(e,t){return e?[...new Set([].concat(e,t))]:t}function ho(e,t){return e?tt(tt(Object.create(null),e),t):t}function dy(e,t){if(!e)return t;if(!t)return e;const n=tt(Object.create(null),e);for(const o in t)n[o]=yt(e[o],t[o]);return n}function fy(e,t,n,o=!1){const s={},i={};ki(i,Xi,1),e.propsDefaults=Object.create(null),ed(e,t,s,i);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);id(t||{},s,e),n?e.props=o?s:ew(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function py(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function hy(e,t,n,o){const{props:s,attrs:i,vnode:{patchFlag:r}}=e,l=Ie(s),[d]=e.propsOptions;let f=!1;if(!py(e)&&(o||r>0)&&!(r&16)){if(r&8){const p=e.vnode.dynamicProps;for(let m=0;m<p.length;m++){let y=p[m];if(Hi(e.emitsOptions,y))continue;const x=t[y];if(d)if(Me(i,y))x!==i[y]&&(i[y]=x,f=!0);else{const E=en(y);s[E]=Da(d,l,E,x,e,!1)}else x!==i[y]&&(i[y]=x,f=!0)}}}else{ed(e,t,s,i)&&(f=!0);let p;for(const m in l)(!t||!Me(t,m)&&((p=dn(m))===m||!Me(t,p)))&&(d?n&&(n[m]!==void 0||n[p]!==void 0)&&(s[m]=Da(d,l,m,void 0,e,!0)):delete s[m]);if(i!==l)for(const m in i)(!t||!Me(t,m)&&!0)&&(delete i[m],f=!0)}f&&fn(e,"set","$attrs"),id(t||{},s,e)}function ed(e,t,n,o){const[s,i]=e.propsOptions;let r=!1,l;if(t)for(let d in t){if(Ci(d))continue;const f=t[d];let p;s&&Me(s,p=en(d))?!i||!i.includes(p)?n[p]=f:(l||(l={}))[p]=f:Hi(e.emitsOptions,d)||(!(d in o)||f!==o[d])&&(o[d]=f,r=!0)}if(i){const d=Ie(n),f=l||ze;for(let p=0;p<i.length;p++){const m=i[p];n[m]=Da(s,d,m,f[m],e,!Me(f,m))}}return r}function Da(e,t,n,o,s,i){const r=e[n];if(r!=null){const l=Me(r,"default");if(l&&o===void 0){const d=r.default;if(r.type!==Function&&ke(d)){const{propsDefaults:f}=s;n in f?o=f[n]:(jn(s),o=f[n]=d.call(null,t),Un())}else o=d}r[0]&&(i&&!l?o=!1:r[1]&&(o===""||o===dn(n))&&(o=!0))}return o}function td(e,t,n=!1){const o=t.propsCache,s=o.get(e);if(s)return s;const i=e.props,r={},l=[];let d=!1;if(!ke(e)){const p=m=>{d=!0;const[y,x]=td(m,t,!0);tt(r,y),x&&l.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!i&&!d)return He(e)&&o.set(e,Mo),Mo;if(ye(i))for(let p=0;p<i.length;p++){Je(i[p])||Z("props must be strings when using array syntax.",i[p]);const m=en(i[p]);nd(m)&&(r[m]=ze)}else if(i){He(i)||Z("invalid props options",i);for(const p in i){const m=en(p);if(nd(m)){const y=i[p],x=r[m]=ye(y)||ke(y)?{type:y}:Object.assign({},y);if(x){const E=sd(Boolean,x.type),A=sd(String,x.type);x[0]=E>-1,x[1]=A<0||E<A,(E>-1||Me(x,"default"))&&l.push(m)}}}}const f=[r,l];return He(e)&&o.set(e,f),f}function nd(e){return e[0]!=="$"?!0:(Z(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Na(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function od(e,t){return Na(e)===Na(t)}function sd(e,t){return ye(t)?t.findIndex(n=>od(n,e)):ke(t)&&od(t,e)?0:-1}function id(e,t,n){const o=Ie(t),s=n.propsOptions[0];for(const i in s){let r=s[i];r!=null&&my(i,o[i],r,!Me(e,i)&&!Me(e,dn(i)))}}function my(e,t,n,o){const{type:s,required:i,validator:r}=n;if(i&&o){Z('Missing required prop: "'+e+'"');return}if(!(t==null&&!n.required)){if(s!=null&&s!==!0){let l=!1;const d=ye(s)?s:[s],f=[];for(let p=0;p<d.length&&!l;p++){const{valid:m,expectedType:y}=wy(t,d[p]);f.push(y||""),l=m}if(!l){Z(yy(e,t,f));return}}r&&!r(t)&&Z('Invalid prop: custom validator check failed for prop "'+e+'".')}}const gy=On("String,Number,Boolean,Function,Symbol,BigInt");function wy(e,t){let n;const o=Na(t);if(gy(o)){const s=typeof e;n=s===o.toLowerCase(),!n&&s==="object"&&(n=e instanceof t)}else o==="Object"?n=He(e):o==="Array"?n=ye(e):o==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:o}}function yy(e,t,n){let o=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(eo).join(" | ")}`;const s=n[0],i=ia(t),r=rd(t,s),l=rd(t,i);return n.length===1&&ad(s)&&!by(s,i)&&(o+=` with value ${r}`),o+=`, got ${i} `,ad(i)&&(o+=`with value ${l}.`),o}function rd(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function ad(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function by(...e){return e.some(t=>t.toLowerCase()==="boolean")}const ld=e=>e[0]==="_"||e==="$stable",Ra=e=>ye(e)?e.map(Ft):[Ft(e)],vy=(e,t,n)=>{if(t._n)return t;const o=Ve((...s)=>(Ye&&Z(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Ra(t(...s))),n);return o._c=!1,o},cd=(e,t,n)=>{const o=e._ctx;for(const s in e){if(ld(s))continue;const i=e[s];if(ke(i))t[s]=vy(s,i,o);else if(i!=null){Z(`Non-function value encountered for slot "${s}". Prefer function slots for better performance.`);const r=Ra(i);t[s]=()=>r}}},ud=(e,t)=>{Aa(e.vnode)||Z("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Ra(t);e.slots.default=()=>n},_y=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ie(t),ki(t,"_",n)):cd(t,e.slots={})}else e.slots={},t&&ud(e,t);ki(e.slots,Xi,1)},xy=(e,t,n)=>{const{vnode:o,slots:s}=e;let i=!0,r=ze;if(o.shapeFlag&32){const l=t._;l?ao?tt(s,t):n&&l===1?i=!1:(tt(s,t),!n&&l===1&&delete s._):(i=!t.$stable,cd(t,s)),r=t}else t&&(ud(e,t),r={default:1});if(i)for(const l in s)!ld(l)&&!(l in r)&&delete s[l]};function dd(){return{app:null,config:{isNativeTag:Jc,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 Cy=0;function $y(e,t){return function(o,s=null){ke(o)||(o=Object.assign({},o)),s!=null&&!He(s)&&(Z("root props passed to app.mount() must be an object."),s=null);const i=dd(),r=new Set;let l=!1;const d=i.app={_uid:Cy++,_component:o,_props:s,_container:null,_context:i,_instance:null,version:xd,get config(){return i.config},set config(f){Z("app.config cannot be replaced. Modify individual options instead.")},use(f,...p){return r.has(f)?Z("Plugin has already been applied to target app."):f&&ke(f.install)?(r.add(f),f.install(d,...p)):ke(f)?(r.add(f),f(d,...p)):Z('A plugin must either be a function or an object with an "install" function.'),d},mixin(f){return i.mixins.includes(f)?Z("Mixin has already been applied to target app"+(f.name?`: ${f.name}`:"")):i.mixins.push(f),d},component(f,p){return Ua(f,i.config),p?(i.components[f]&&Z(`Component "${f}" has already been registered in target app.`),i.components[f]=p,d):i.components[f]},directive(f,p){return Ku(f),p?(i.directives[f]&&Z(`Directive "${f}" has already been registered in target app.`),i.directives[f]=p,d):i.directives[f]},mount(f,p,m){if(l)Z("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{f.__vue_app__&&Z("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const y=Ce(o,s);return y.appContext=i,i.reload=()=>{e(Rn(y),f,m)},p&&t?t(y,f):e(y,f,m),l=!0,d._container=f,f.__vue_app__=d,d._instance=y.component,Cw(d,xd),Zi(y.component)||y.component.proxy}},unmount(){l?(e(null,d._container),d._instance=null,$w(d),delete d._container.__vue_app__):Z("Cannot unmount an app that is not mounted.")},provide(f,p){return f in i.provides&&Z(`App already provides property with key "${String(f)}". It will be overwritten with the new value.`),i.provides[f]=p,d}};return d}}function Fa(e,t,n,o,s=!1){if(ye(e)){e.forEach((y,x)=>Fa(y,t&&(ye(t)?t[x]:t),n,o,s));return}if(Ps(o)&&!s)return;const i=o.shapeFlag&4?Zi(o.component)||o.component.proxy:o.el,r=s?null:i,{i:l,r:d}=e;if(!l){Z("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const f=t&&t.r,p=l.refs===ze?l.refs={}:l.refs,m=l.setupState;if(f!=null&&f!==d&&(Je(f)?(p[f]=null,Me(m,f)&&(m[f]=null)):nt(f)&&(f.value=null)),ke(d))pn(d,l,12,[r,p]);else{const y=Je(d),x=nt(d);if(y||x){const E=()=>{if(e.f){const A=y?Me(m,d)?m[d]:p[d]:d.value;s?ye(A)&&sa(A,i):ye(A)?A.includes(i)||A.push(i):y?(p[d]=[i],Me(m,d)&&(m[d]=p[d])):(d.value=[i],e.k&&(p[e.k]=d.value))}else y?(p[d]=r,Me(m,d)&&(m[d]=r)):x?(d.value=r,e.k&&(p[e.k]=r)):Z("Invalid template ref type:",d,`(${typeof d})`)};r?(E.id=-1,At(E,n)):E()}else Z("Invalid template ref type:",d,`(${typeof d})`)}}let Is,Dn;function gn(e,t){e.appContext.config.performance&&Gi()&&Dn.mark(`vue-${t}-${e.uid}`),Aw(e,t,Gi()?Dn.now():Date.now())}function wn(e,t){if(e.appContext.config.performance&&Gi()){const n=`vue-${t}-${e.uid}`,o=n+":end";Dn.mark(o),Dn.measure(`<${er(e,e.type)}> ${t}`,n,o),Dn.clearMarks(n),Dn.clearMarks(o)}Pw(e,t,Gi()?Dn.now():Date.now())}function Gi(){return Is!==void 0||(typeof window<"u"&&window.performance?(Is=!0,Dn=window.performance):Is=!1),Is}function ky(){const e=[];if(e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.

For more details, see https://link.vuejs.org/feature-flags.`)}}const At=qw;function Sy(e){return Ey(e)}function Ey(e,t){ky();const n=Zc();n.__VUE__=!0,Mu(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:s,patchProp:i,createElement:r,createText:l,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:y,setScopeId:x=St,insertStaticContent:E}=e,A=(b,S,L,I=null,j=null,X=null,ne=!1,q=null,K=ao?!1:!!S.dynamicChildren)=>{if(b===S)return;b&&!Nn(b,S)&&(I=_t(b),Qe(b,j,X,!0),b=null),S.patchFlag===-2&&(K=!1,S.dynamicChildren=null);const{type:W,ref:ce,shapeFlag:R}=S;switch(W){case Ts:M(b,S,L,I);break;case bt:V(b,S,L,I);break;case Ls:b==null?O(S,L,I,ne):T(b,S,L,ne);break;case De:Ee(b,S,L,I,j,X,ne,q,K);break;default:R&1?U(b,S,L,I,j,X,ne,q,K):R&6?ae(b,S,L,I,j,X,ne,q,K):R&64||R&128?W.process(b,S,L,I,j,X,ne,q,K,et):Z("Invalid VNode type:",W,`(${typeof W})`)}ce!=null&&j&&Fa(ce,b&&b.ref,X,S||b,!S)},M=(b,S,L,I)=>{if(b==null)o(S.el=l(S.children),L,I);else{const j=S.el=b.el;S.children!==b.children&&f(j,S.children)}},V=(b,S,L,I)=>{b==null?o(S.el=d(S.children||""),L,I):S.el=b.el},O=(b,S,L,I)=>{[b.el,b.anchor]=E(b.children,S,L,I,b.el,b.anchor)},T=(b,S,L,I)=>{if(S.children!==b.children){const j=y(b.anchor);ee(b),[S.el,S.anchor]=E(S.children,L,j,I)}else S.el=b.el,S.anchor=b.anchor},Q=({el:b,anchor:S},L,I)=>{let j;for(;b&&b!==S;)j=y(b),o(b,L,I),b=j;o(S,L,I)},ee=({el:b,anchor:S})=>{let L;for(;b&&b!==S;)L=y(b),s(b),b=L;s(S)},U=(b,S,L,I,j,X,ne,q,K)=>{ne=ne||S.type==="svg",b==null?se(S,L,I,j,X,ne,q,K):Pe(b,S,j,X,ne,q,K)},se=(b,S,L,I,j,X,ne,q)=>{let K,W;const{type:ce,props:R,shapeFlag:ue,transition:h,dirs:w}=b;if(K=b.el=r(b.type,X,R&&R.is,R),ue&8?p(K,b.children):ue&16&&de(b.children,K,null,I,j,X&&ce!=="foreignObject",ne,q),w&&uo(b,null,I,"created"),ie(K,b,b.scopeId,ne,I),R){for(const C in R)C!=="value"&&!Ci(C)&&i(K,C,null,R[C],X,b.children,I,j,vt);"value"in R&&i(K,"value",null,R.value),(W=R.onVnodeBeforeMount)&&sn(W,I,b)}Object.defineProperty(K,"__vnode",{value:b,enumerable:!1}),Object.defineProperty(K,"__vueParentComponent",{value:I,enumerable:!1}),w&&uo(b,null,I,"beforeMount");const _=(!j||j&&!j.pendingBranch)&&h&&!h.persisted;_&&h.beforeEnter(K),o(K,S,L),((W=R&&R.onVnodeMounted)||_||w)&&At(()=>{W&&sn(W,I,b),_&&h.enter(K),w&&uo(b,null,I,"mounted")},j)},ie=(b,S,L,I,j)=>{if(L&&x(b,L),I)for(let X=0;X<I.length;X++)x(b,I[X]);if(j){let X=j.subTree;if(X.patchFlag>0&&X.patchFlag&2048&&(X=ka(X.children)||X),S===X){const ne=j.vnode;ie(b,ne,ne.scopeId,ne.slotScopeIds,j.parent)}}},de=(b,S,L,I,j,X,ne,q,K=0)=>{for(let W=K;W<b.length;W++){const ce=b[W]=q?Fn(b[W]):Ft(b[W]);A(null,ce,S,L,I,j,X,ne,q)}},Pe=(b,S,L,I,j,X,ne)=>{const q=S.el=b.el;let{patchFlag:K,dynamicChildren:W,dirs:ce}=S;K|=b.patchFlag&16;const R=b.props||ze,ue=S.props||ze;let h;L&&mo(L,!1),(h=ue.onVnodeBeforeUpdate)&&sn(h,L,S,b),ce&&uo(S,b,L,"beforeUpdate"),L&&mo(L,!0),ao&&(K=0,ne=!1,W=null);const w=j&&S.type!=="foreignObject";if(W?(pe(b.dynamicChildren,W,q,L,I,w,X),L&&L.type.__hmrId&&Yi(b,S)):ne||me(b,S,q,null,L,I,w,X,!1),K>0){if(K&16)re(q,S,R,ue,L,I,j);else if(K&2&&R.class!==ue.class&&i(q,"class",null,ue.class,j),K&4&&i(q,"style",R.style,ue.style,j),K&8){const _=S.dynamicProps;for(let C=0;C<_.length;C++){const P=_[C],k=R[P],F=ue[P];(F!==k||P==="value")&&i(q,P,k,F,j,b.children,L,I,vt)}}K&1&&b.children!==S.children&&p(q,S.children)}else!ne&&W==null&&re(q,S,R,ue,L,I,j);((h=ue.onVnodeUpdated)||ce)&&At(()=>{h&&sn(h,L,S,b),ce&&uo(S,b,L,"updated")},I)},pe=(b,S,L,I,j,X,ne)=>{for(let q=0;q<S.length;q++){const K=b[q],W=S[q],ce=K.el&&(K.type===De||!Nn(K,W)||K.shapeFlag&70)?m(K.el):L;A(K,W,ce,null,I,j,X,ne,!0)}},re=(b,S,L,I,j,X,ne)=>{if(L!==I){if(L!==ze)for(const q in L)!Ci(q)&&!(q in I)&&i(b,q,L[q],null,ne,S.children,j,X,vt);for(const q in I){if(Ci(q))continue;const K=I[q],W=L[q];K!==W&&q!=="value"&&i(b,q,W,K,ne,S.children,j,X,vt)}"value"in I&&i(b,"value",L.value,I.value)}},Ee=(b,S,L,I,j,X,ne,q,K)=>{const W=S.el=b?b.el:l(""),ce=S.anchor=b?b.anchor:l("");let{patchFlag:R,dynamicChildren:ue,slotScopeIds:h}=S;(ao||R&2048)&&(R=0,K=!1,ue=null),h&&(q=q?q.concat(h):h),b==null?(o(W,L,I),o(ce,L,I),de(S.children,L,ce,j,X,ne,q,K)):R>0&&R&64&&ue&&b.dynamicChildren?(pe(b.dynamicChildren,ue,L,j,X,ne,q),j&&j.type.__hmrId?Yi(b,S):(S.key!=null||j&&S===j.subTree)&&Yi(b,S,!0)):me(b,S,L,ce,j,X,ne,q,K)},ae=(b,S,L,I,j,X,ne,q,K)=>{S.slotScopeIds=q,b==null?S.shapeFlag&512?j.ctx.activate(S,L,I,ne,K):Ue(S,L,I,j,X,ne,K):D(b,S,K)},Ue=(b,S,L,I,j,X,ne)=>{const q=b.component=By(b,I,j);if(q.type.__hmrId&&bw(q),ys(b),gn(q,"mount"),Aa(b)&&(q.ctx.renderer=et),gn(q,"init"),Ry(q),wn(q,"init"),q.asyncDep){if(j&&j.registerDep(q,J),!b.el){const K=q.subTree=Ce(bt);V(null,K,S,L)}return}J(q,b,S,L,j,X,ne),bs(),wn(q,"mount")},D=(b,S,L)=>{const I=S.component=b.component;if(Rw(b,S,L))if(I.asyncDep&&!I.asyncResolved){ys(S),N(I,S,L),bs();return}else I.next=S,ww(I.update),I.update();else S.el=b.el,I.vnode=S},J=(b,S,L,I,j,X,ne)=>{const q=()=>{if(b.isMounted){let{next:ce,bu:R,u:ue,parent:h,vnode:w}=b,_=ce,C;ys(ce||b.vnode),mo(b,!1),ce?(ce.el=w.el,N(b,ce,ne)):ce=w,R&&Do(R),(C=ce.props&&ce.props.onVnodeBeforeUpdate)&&sn(C,h,ce,w),mo(b,!0),gn(b,"render");const P=$a(b);wn(b,"render");const k=b.subTree;b.subTree=P,gn(b,"patch"),A(k,P,m(k.el),_t(k),b,j,X),wn(b,"patch"),ce.el=P.el,_===null&&Sa(b,P.el),ue&&At(ue,j),(C=ce.props&&ce.props.onVnodeUpdated)&&At(()=>sn(C,h,ce,w),j),Bu(b),bs()}else{let ce;const{el:R,props:ue}=S,{bm:h,m:w,parent:_}=b,C=Ps(S);if(mo(b,!1),h&&Do(h),!C&&(ce=ue&&ue.onVnodeBeforeMount)&&sn(ce,_,S),mo(b,!0),R&&at){const P=()=>{gn(b,"render"),b.subTree=$a(b),wn(b,"render"),gn(b,"hydrate"),at(R,b.subTree,b,j,null),wn(b,"hydrate")};C?S.type.__asyncLoader().then(()=>!b.isUnmounted&&P()):P()}else{gn(b,"render");const P=b.subTree=$a(b);wn(b,"render"),gn(b,"patch"),A(null,P,L,I,b,j,X),wn(b,"patch"),S.el=P.el}if(w&&At(w,j),!C&&(ce=ue&&ue.onVnodeMounted)){const P=S;At(()=>sn(ce,_,P),j)}(S.shapeFlag&256||_&&Ps(_.vnode)&&_.vnode.shapeFlag&256)&&b.a&&At(b.a,j),b.isMounted=!0,kw(b),S=L=I=null}},K=b.effect=new da(q,()=>Ui(W),b.scope),W=b.update=()=>K.run();W.id=b.uid,mo(b,!0),K.onTrack=b.rtc?ce=>Do(b.rtc,ce):void 0,K.onTrigger=b.rtg?ce=>Do(b.rtg,ce):void 0,W.ownerInstance=b,W()},N=(b,S,L)=>{S.component=b;const I=b.vnode.props;b.vnode=S,b.next=null,hy(b,S.props,I,L),xy(b,S.children,L),oo(),Pu(),so()},me=(b,S,L,I,j,X,ne,q,K=!1)=>{const W=b&&b.children,ce=b?b.shapeFlag:0,R=S.children,{patchFlag:ue,shapeFlag:h}=S;if(ue>0){if(ue&128){Le(W,R,L,I,j,X,ne,q,K);return}else if(ue&256){Se(W,R,L,I,j,X,ne,q,K);return}}h&8?(ce&16&&vt(W,j,X),R!==W&&p(L,R)):ce&16?h&16?Le(W,R,L,I,j,X,ne,q,K):vt(W,j,X,!0):(ce&8&&p(L,""),h&16&&de(R,L,I,j,X,ne,q,K))},Se=(b,S,L,I,j,X,ne,q,K)=>{b=b||Mo,S=S||Mo;const W=b.length,ce=S.length,R=Math.min(W,ce);let ue;for(ue=0;ue<R;ue++){const h=S[ue]=K?Fn(S[ue]):Ft(S[ue]);A(b[ue],h,L,null,j,X,ne,q,K)}W>ce?vt(b,j,X,!0,!1,R):de(S,L,I,j,X,ne,q,K,R)},Le=(b,S,L,I,j,X,ne,q,K)=>{let W=0;const ce=S.length;let R=b.length-1,ue=ce-1;for(;W<=R&&W<=ue;){const h=b[W],w=S[W]=K?Fn(S[W]):Ft(S[W]);if(Nn(h,w))A(h,w,L,null,j,X,ne,q,K);else break;W++}for(;W<=R&&W<=ue;){const h=b[R],w=S[ue]=K?Fn(S[ue]):Ft(S[ue]);if(Nn(h,w))A(h,w,L,null,j,X,ne,q,K);else break;R--,ue--}if(W>R){if(W<=ue){const h=ue+1,w=h<ce?S[h].el:I;for(;W<=ue;)A(null,S[W]=K?Fn(S[W]):Ft(S[W]),L,w,j,X,ne,q,K),W++}}else if(W>ue)for(;W<=R;)Qe(b[W],j,X,!0),W++;else{const h=W,w=W,_=new Map;for(W=w;W<=ue;W++){const _e=S[W]=K?Fn(S[W]):Ft(S[W]);_e.key!=null&&(_.has(_e.key)&&Z("Duplicate keys found during update:",JSON.stringify(_e.key),"Make sure keys are unique."),_.set(_e.key,W))}let C,P=0;const k=ue-w+1;let F=!1,H=0;const Y=new Array(k);for(W=0;W<k;W++)Y[W]=0;for(W=h;W<=R;W++){const _e=b[W];if(P>=k){Qe(_e,j,X,!0);continue}let he;if(_e.key!=null)he=_.get(_e.key);else for(C=w;C<=ue;C++)if(Y[C-w]===0&&Nn(_e,S[C])){he=C;break}he===void 0?Qe(_e,j,X,!0):(Y[he-w]=W+1,he>=H?H=he:F=!0,A(_e,S[he],L,null,j,X,ne,q,K),P++)}const $e=F?Ay(Y):Mo;for(C=$e.length-1,W=k-1;W>=0;W--){const _e=w+W,he=S[_e],Ne=_e+1<ce?S[_e+1].el:I;Y[W]===0?A(null,he,L,Ne,j,X,ne,q,K):F&&(C<0||W!==$e[C]?Xe(he,L,Ne,2):C--)}}},Xe=(b,S,L,I,j=null)=>{const{el:X,type:ne,transition:q,children:K,shapeFlag:W}=b;if(W&6){Xe(b.component.subTree,S,L,I);return}if(W&128){b.suspense.move(S,L,I);return}if(W&64){ne.move(b,S,L,et);return}if(ne===De){o(X,S,L);for(let R=0;R<K.length;R++)Xe(K[R],S,L,I);o(b.anchor,S,L);return}if(ne===Ls){Q(b,S,L);return}if(I!==2&&W&1&&q)if(I===0)q.beforeEnter(X),o(X,S,L),At(()=>q.enter(X),j);else{const{leave:R,delayLeave:ue,afterLeave:h}=q,w=()=>o(X,S,L),_=()=>{R(X,()=>{w(),h&&h()})};ue?ue(X,w,_):_()}else o(X,S,L)},Qe=(b,S,L,I=!1,j=!1)=>{const{type:X,props:ne,ref:q,children:K,dynamicChildren:W,shapeFlag:ce,patchFlag:R,dirs:ue}=b;if(q!=null&&Fa(q,null,L,b,!0),ce&256){S.ctx.deactivate(b);return}const h=ce&1&&ue,w=!Ps(b);let _;if(w&&(_=ne&&ne.onVnodeBeforeUnmount)&&sn(_,S,b),ce&6)$n(b.component,L,I);else{if(ce&128){b.suspense.unmount(L,I);return}h&&uo(b,null,S,"beforeUnmount"),ce&64?b.type.remove(b,S,L,j,et,I):W&&(X!==De||R>0&&R&64)?vt(W,S,L,!1,!0):(X===De&&R&384||!j&&ce&16)&&vt(K,S,L),I&&It(b)}(w&&(_=ne&&ne.onVnodeUnmounted)||h)&&At(()=>{_&&sn(_,S,b),h&&uo(b,null,S,"unmounted")},L)},It=b=>{const{type:S,el:L,anchor:I,transition:j}=b;if(S===De){b.patchFlag>0&&b.patchFlag&2048&&j&&!j.persisted?b.children.forEach(ne=>{ne.type===bt?s(ne.el):It(ne)}):Tt(L,I);return}if(S===Ls){ee(b);return}const X=()=>{s(L),j&&!j.persisted&&j.afterLeave&&j.afterLeave()};if(b.shapeFlag&1&&j&&!j.persisted){const{leave:ne,delayLeave:q}=j,K=()=>ne(L,X);q?q(b.el,X,K):K()}else X()},Tt=(b,S)=>{let L;for(;b!==S;)L=y(b),s(b),b=L;s(S)},$n=(b,S,L)=>{b.type.__hmrId&&vw(b);const{bum:I,scope:j,update:X,subTree:ne,um:q}=b;I&&Do(I),j.stop(),X&&(X.active=!1,Qe(ne,b,S,L)),q&&At(q,S),At(()=>{b.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve()),Ew(b)},vt=(b,S,L,I=!1,j=!1,X=0)=>{for(let ne=X;ne<b.length;ne++)Qe(b[ne],S,L,I,j)},_t=b=>b.shapeFlag&6?_t(b.component.subTree):b.shapeFlag&128?b.suspense.next():y(b.anchor||b.el),ct=(b,S,L)=>{b==null?S._vnode&&Qe(S._vnode,null,null,!0):A(S._vnode||null,b,S,null,null,null,L),Pu(),Ou(),S._vnode=b},et={p:A,um:Qe,m:Xe,r:It,mt:Ue,mc:de,pc:me,pbc:pe,n:_t,o:e};let Gn,at;return t&&([Gn,at]=t(et)),{render:ct,hydrate:Gn,createApp:$y(ct,Gn)}}function mo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Yi(e,t,n=!1){const o=e.children,s=t.children;if(ye(o)&&ye(s))for(let i=0;i<o.length;i++){const r=o[i];let l=s[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[i]=Fn(s[i]),l.el=r.el),n||Yi(r,l)),l.type===Ts&&(l.el=r.el),l.type===bt&&!l.el&&(l.el=r.el)}}function Ay(e){const t=e.slice(),n=[0];let o,s,i,r,l;const d=e.length;for(o=0;o<d;o++){const f=e[o];if(f!==0){if(s=n[n.length-1],e[s]<f){t[o]=s,n.push(o);continue}for(i=0,r=n.length-1;i<r;)l=i+r>>1,e[n[l]]<f?i=l+1:r=l;f<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}const Py=e=>e.__isTeleport,De=Symbol("Fragment"),Ts=Symbol("Text"),bt=Symbol("Comment"),Ls=Symbol("Static"),Ms=[];let Nt=null;function G(e=!1){Ms.push(Nt=e?null:[])}function fd(){Ms.pop(),Nt=Ms[Ms.length-1]||null}let Uo=1;function pd(e){Uo+=e}function hd(e){return e.dynamicChildren=Uo>0?Nt||Mo:null,fd(),Uo>0&&Nt&&Nt.push(e),e}function te(e,t,n,o,s,i){return hd(u(e,t,n,o,s,i,!0))}function Rt(e,t,n,o,s){return hd(Ce(e,t,n,o,s,!0))}function Ho(e){return e?e.__v_isVNode===!0:!1}function Nn(e,t){return t.shapeFlag&6&&Fo.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const Oy=(...e)=>Iy(...e),Xi="__vInternal",md=({key:e})=>e!=null?e:null,Qi=({ref:e,ref_key:t,ref_for:n})=>e!=null?Je(e)||nt(e)||ke(e)?{i:it,r:e,k:t,f:!!n}:e:null;function u(e,t=null,n=null,o=0,s=null,i=e===De?0:1,r=!1,l=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&md(t),ref:t&&Qi(t),scopeId:zi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:it};return l?(ja(d,n),i&128&&e.normalize(d)):n&&(d.shapeFlag|=Je(n)?8:16),d.key!==d.key&&Z("VNode created with invalid key (NaN). VNode type:",d.type),Uo>0&&!r&&Nt&&(d.patchFlag>0||i&6)&&d.patchFlag!==32&&Nt.push(d),d}const Ce=Oy;function Iy(e,t=null,n=null,o=0,s=null,i=!1){if((!e||e===ty)&&(e||Z(`Invalid vnode type when creating vnode: ${e}.`),e=bt),Ho(e)){const l=Rn(e,t,!0);return n&&ja(l,n),Uo>0&&!i&&Nt&&(l.shapeFlag&6?Nt[Nt.indexOf(e)]=l:Nt.push(l)),l.patchFlag|=-2,l}if(_d(e)&&(e=e.__vccOpts),t){t=gd(t);let{class:l,style:d}=t;l&&!Je(l)&&(t.class=Ge(l)),He(d)&&(Fi(d)&&!ye(d)&&(d=tt({},d)),t.style=un(d))}const r=Je(e)?1:Fw(e)?128:Py(e)?64:He(e)?4:ke(e)?2:0;return r&4&&Fi(e)&&(e=Ie(e),Z("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
Component that was made reactive: `,e)),u(e,t,n,o,s,r,i,!0)}function gd(e){return e?Fi(e)||Xi in e?tt({},e):e:null}function Rn(e,t,n=!1){const{props:o,ref:s,patchFlag:i,children:r}=e,l=t?yd(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&md(l),ref:t&&t.ref?n&&s?ye(s)?s.concat(Qi(t)):[s,Qi(t)]:Qi(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i===-1&&ye(r)?r.map(wd):r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rn(e.ssContent),ssFallback:e.ssFallback&&Rn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wd(e){const t=Rn(e);return ye(e.children)&&(t.children=e.children.map(wd)),t}function le(e=" ",t=0){return Ce(Ts,null,e,t)}function Ty(e,t){const n=Ce(Ls,null,e);return n.staticCount=t,n}function Ke(e="",t=!1){return t?(G(),Rt(bt,null,e)):Ce(bt,null,e)}function Ft(e){return e==null||typeof e=="boolean"?Ce(bt):ye(e)?Ce(De,null,e.slice()):typeof e=="object"?Fn(e):Ce(Ts,null,String(e))}function Fn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rn(e)}function ja(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ye(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),ja(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Xi in t)?t._ctx=it:s===3&&it&&(it.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ke(t)?(t={default:t,_ctx:it},n=32):(t=String(t),o&64?(n=16,t=[le(t)]):n=8);e.children=t,e.shapeFlag|=n}function yd(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=Ge([t.class,o.class]));else if(s==="style")t.style=un([t.style,o.style]);else if(fs(s)){const i=t[s],r=o[s];r&&i!==r&&!(ye(i)&&i.includes(r))&&(t[s]=i?[].concat(i,r):r)}else s!==""&&(t[s]=o[s])}return t}function sn(e,t,n,o=null){qt(e,t,7,[n,o])}const Ly=dd();let My=0;function By(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||Ly,i={uid:My++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Cg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:td(o,s),emitsOptions:Nu(o,s),emit:null,emitted:null,propsDefaults:ze,inheritAttrs:o.inheritAttrs,ctx:ze,data:ze,props:ze,attrs:ze,slots:ze,refs:ze,setupState:ze,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 i.ctx=oy(i),i.root=t?t.root:i,i.emit=Iw.bind(null,i),e.ce&&e.ce(i),i}let Ye=null;const Dy=()=>Ye||it,jn=e=>{Ye=e,e.scope.on()},Un=()=>{Ye&&Ye.scope.off(),Ye=null},Ny=On("slot,component");function Ua(e,t){const n=t.isNativeTag||Jc;(Ny(e)||n(e))&&Z("Do not use built-in or reserved HTML elements as component id: "+e)}function bd(e){return e.vnode.shapeFlag&4}let Bs=!1;function Ry(e,t=!1){Bs=t;const{props:n,children:o}=e.vnode,s=bd(e);fy(e,n,s,t),_y(e,o);const i=s?Fy(e,t):void 0;return Bs=!1,i}function Fy(e,t){var n;const o=e.type;{if(o.name&&Ua(o.name,e.appContext.config),o.components){const i=Object.keys(o.components);for(let r=0;r<i.length;r++)Ua(i[r],e.appContext.config)}if(o.directives){const i=Object.keys(o.directives);for(let r=0;r<i.length;r++)Ku(i[r])}o.compilerOptions&&jy()&&Z('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=_u(new Proxy(e.ctx,Yu)),sy(e);const{setup:s}=o;if(s){const i=e.setupContext=s.length>1?Hy(e):null;jn(e),oo();const r=pn(s,e,0,[No(e.props),i]);if(so(),Un(),xi(r)){if(r.then(Un,Un),t)return r.then(l=>{Ha(e,l,t)}).catch(l=>{vs(l,e,0)});if(e.asyncDep=r,!e.suspense){const l=(n=o.name)!==null&&n!==void 0?n:"Anonymous";Z(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Ha(e,r,t)}else vd(e,t)}function Ha(e,t,n){ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:He(t)?(Ho(t)&&Z("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=$u(t),iy(e)):t!==void 0&&Z(`setup() should return an object. Received: ${t===null?"null":typeof t}`),vd(e,n)}let za;const jy=()=>!za;function vd(e,t,n){const o=e.type;if(!e.render){if(!t&&za&&!o.render){const s=o.template||Ma(e).template;if(s){gn(e,"compile");const{isCustomElement:i,compilerOptions:r}=e.appContext.config,{delimiters:l,compilerOptions:d}=o,f=tt(tt({isCustomElement:i,delimiters:l},r),d);o.render=za(s,f),wn(e,"compile")}}e.render=o.render||St}jn(e),oo(),ay(e),so(),Un(),!o.render&&e.render===St&&!t&&(o.template?Z('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):Z("Component is missing template or render function."))}function Uy(e){return new Proxy(e.attrs,{get(t,n){return Vi(),Et(e,"get","$attrs"),t[n]},set(){return Z("setupContext.attrs is readonly."),!1},deleteProperty(){return Z("setupContext.attrs is readonly."),!1}})}function Hy(e){const t=o=>{if(e.exposed&&Z("expose() should be called only once per setup()."),o!=null){let s=typeof o;s==="object"&&(ye(o)?s="array":nt(o)&&(s="ref")),s!=="object"&&Z(`expose() should be passed a plain object, received ${s}.`)}e.exposed=o||{}};let n;return Object.freeze({get attrs(){return n||(n=Uy(e))},get slots(){return No(e.slots)},get emit(){return(o,...s)=>e.emit(o,...s)},expose:t})}function Zi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($u(_u(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in po)return po[n](e)},has(t,n){return n in t||n in po}}))}const zy=/(?:^|[-_])(\w)/g,qy=e=>e.replace(zy,t=>t.toUpperCase()).replace(/[-_]/g,"");function qa(e,t=!0){return ke(e)?e.displayName||e.name:e.name||t&&e.__name}function er(e,t,n=!1){let o=qa(t);if(!o&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(o=s[1])}if(!o&&e&&e.parent){const s=i=>{for(const r in i)if(i[r]===t)return r};o=s(e.components||e.parent.type.components)||s(e.appContext.components)}return o?qy(o):n?"App":"Anonymous"}function _d(e){return ke(e)&&"__vccOpts"in e}const zo=(e,t)=>lw(e,t,Bs);function yn(e){const t=Dy();t||Z("withAsyncContext called without active current instance. This is likely a bug.");let n=e();return Un(),xi(n)&&(n=n.catch(o=>{throw jn(t),o})),[n,()=>jn(t)]}function Vy(e,t,n){const o=arguments.length;return o===2?He(t)&&!ye(t)?Ho(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Ho(n)&&(n=[n]),Ce(e,t,n))}const Wy=Symbol("ssrContext"),Ky=()=>{{const e=As(Wy);return e||Z("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Va(e){return!!(e&&e.__v_isShallow)}function Jy(){if(typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},o={style:"color:#9d288c"},s={header(m){return He(m)?m.__isVue?["div",e,"VueInstance"]:nt(m)?["div",{},["span",e,p(m)],"<",l(m.value),">"]:io(m)?["div",{},["span",e,Va(m)?"ShallowReactive":"Reactive"],"<",l(m),`>${Mn(m)?" (readonly)":""}`]:Mn(m)?["div",{},["span",e,Va(m)?"ShallowReadonly":"Readonly"],"<",l(m),">"]:null:null},hasBody(m){return m&&m.__isVue},body(m){if(m&&m.__isVue)return["div",{},...i(m.$)]}};function i(m){const y=[];m.type.props&&m.props&&y.push(r("props",Ie(m.props))),m.setupState!==ze&&y.push(r("setup",m.setupState)),m.data!==ze&&y.push(r("data",Ie(m.data)));const x=d(m,"computed");x&&y.push(r("computed",x));const E=d(m,"inject");return E&&y.push(r("injected",E)),y.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:m}]]),y}function r(m,y){return y=tt({},y),Object.keys(y).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},m],["div",{style:"padding-left:1.25em"},...Object.keys(y).map(x=>["div",{},["span",o,x+": "],l(y[x],!1)])]]:["span",{}]}function l(m,y=!0){return typeof m=="number"?["span",t,m]:typeof m=="string"?["span",n,JSON.stringify(m)]:typeof m=="boolean"?["span",o,m]:He(m)?["object",{object:y?Ie(m):m}]:["span",n,String(m)]}function d(m,y){const x=m.type;if(ke(x))return;const E={};for(const A in m.ctx)f(x,A,y)&&(E[A]=m.ctx[A]);return E}function f(m,y,x){const E=m[x];if(ye(E)&&E.includes(y)||He(E)&&y in E||m.extends&&f(m.extends,y,x)||m.mixins&&m.mixins.some(A=>f(A,y,x)))return!0}function p(m){return Va(m)?"ShallowRef":m.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}const xd="3.2.47",Gy="http://www.w3.org/2000/svg",go=typeof document<"u"?document:null,Cd=go&&go.createElement("template"),Yy={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s=t?go.createElementNS(Gy,e):go.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>go.createTextNode(e),createComment:e=>go.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>go.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,i){const r=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Cd.innerHTML=o?`<svg>${e}</svg>`:e;const l=Cd.content;if(o){const d=l.firstChild;for(;d.firstChild;)l.appendChild(d.firstChild);l.removeChild(d)}t.insertBefore(l,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Xy(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Qy(e,t,n){const o=e.style,s=Je(n);if(n&&!s){if(t&&!Je(t))for(const i in t)n[i]==null&&Wa(o,i,"");for(const i in n)Wa(o,i,n[i])}else{const i=o.display;s?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}const Zy=/[^\\];\s*$/,$d=/\s*!important$/;function Wa(e,t,n){if(ye(n))n.forEach(o=>Wa(e,t,o));else if(n==null&&(n=""),Zy.test(n)&&Z(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const o=eb(e,t);$d.test(n)?e.setProperty(dn(o),n.replace($d,""),"important"):e[o]=n}}const kd=["Webkit","Moz","ms"],Ka={};function eb(e,t){const n=Ka[t];if(n)return n;let o=en(t);if(o!=="filter"&&o in e)return Ka[t]=o;o=eo(o);for(let s=0;s<kd.length;s++){const i=kd[s]+o;if(i in e)return Ka[t]=i}return t}const Sd="http://www.w3.org/1999/xlink";function tb(e,t,n,o,s){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Sd,t.slice(6,t.length)):e.setAttributeNS(Sd,t,n);else{const i=mg(t);n==null||i&&!Wc(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function nb(e,t,n,o,s,i,r){if(t==="innerHTML"||t==="textContent"){o&&r(o,s,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const d=n==null?"":n;(e.value!==d||e.tagName==="OPTION")&&(e.value=d),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const d=typeof e[t];d==="boolean"?n=Wc(n):n==null&&d==="string"?(n="",l=!0):d==="number"&&(n=0,l=!0)}try{e[t]=n}catch(d){l||Z(`Failed setting prop "${t}" on <${e.tagName.toLowerCase()}>: value ${n} is invalid.`,d)}l&&e.removeAttribute(t)}function Hn(e,t,n,o){e.addEventListener(t,n,o)}function ob(e,t,n,o){e.removeEventListener(t,n,o)}function sb(e,t,n,o,s=null){const i=e._vei||(e._vei={}),r=i[t];if(o&&r)r.value=o;else{const[l,d]=ib(t);if(o){const f=i[t]=lb(o,s);Hn(e,l,f,d)}else r&&(ob(e,l,r,d),i[t]=void 0)}}const Ed=/(?:Once|Passive|Capture)$/;function ib(e){let t;if(Ed.test(e)){t={};let o;for(;o=e.match(Ed);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):dn(e.slice(2)),t]}let Ja=0;const rb=Promise.resolve(),ab=()=>Ja||(rb.then(()=>Ja=0),Ja=Date.now());function lb(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;qt(cb(o,n.value),t,5,[o])};return n.value=e,n.attached=ab(),n}function cb(e,t){if(ye(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Ad=/^on[a-z]/,ub=(e,t,n,o,s=!1,i,r,l,d)=>{t==="class"?Xy(e,o,s):t==="style"?Qy(e,n,o):fs(t)?_i(t)||sb(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):db(e,t,o,s))?nb(e,t,o,i,r,l,d):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),tb(e,t,o,s))};function db(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ad.test(t)&&ke(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ad.test(t)&&Je(n)?!1:t in e}const qo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ye(t)?n=>Do(t,n):t};function fb(e){e.target.composing=!0}function Pd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const qe={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e._assign=qo(s);const i=o||s.props&&s.props.type==="number";Hn(e,t?"change":"input",r=>{if(r.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Si(l)),e._assign(l)}),n&&Hn(e,"change",()=>{e.value=e.value.trim()}),t||(Hn(e,"compositionstart",fb),Hn(e,"compositionend",Pd),Hn(e,"change",Pd))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:s}},i){if(e._assign=qo(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(s||e.type==="number")&&Si(e.value)===t))return;const r=t==null?"":t;e.value!==r&&(e.value=r)}},Te={deep:!0,created(e,t,n){e._assign=qo(n),Hn(e,"change",()=>{const o=e._modelValue,s=Ds(e),i=e.checked,r=e._assign;if(ye(o)){const l=oa(o,s),d=l!==-1;if(i&&!d)r(o.concat(s));else if(!i&&d){const f=[...o];f.splice(l,1),r(f)}}else if(Bo(o)){const l=new Set(o);i?l.add(s):l.delete(s),r(l)}else r(Ld(e,i))})},mounted:Od,beforeUpdate(e,t,n){e._assign=qo(n),Od(e,t,n)}};function Od(e,{value:t,oldValue:n},o){e._modelValue=t,ye(t)?e.checked=oa(t,o.props.value)>-1:Bo(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ds(t,Ld(e,!0)))}const Id={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=Bo(t);Hn(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Si(Ds(r)):Ds(r));e._assign(e.multiple?s?new Set(i):i:i[0])}),e._assign=qo(o)},mounted(e,{value:t}){Td(e,t)},beforeUpdate(e,t,n){e._assign=qo(n)},updated(e,{value:t}){Td(e,t)}};function Td(e,t){const n=e.multiple;if(n&&!ye(t)&&!Bo(t)){Z(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8,-1)}.`);return}for(let o=0,s=e.options.length;o<s;o++){const i=e.options[o],r=Ds(i);if(n)ye(t)?i.selected=oa(t,r)>-1:i.selected=t.has(r);else if(ds(Ds(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function Ds(e){return"_value"in e?e._value:e.value}function Ld(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const pb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Md=(e,t)=>n=>{if(!("key"in n))return;const o=dn(n.key);if(t.some(s=>s===o||pb[s]===o))return e(n)},Kt={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ns(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Ns(e,!0),o.enter(e)):o.leave(e,()=>{Ns(e,!1)}):Ns(e,t))},beforeUnmount(e,{value:t}){Ns(e,t)}};function Ns(e,t){e.style.display=t?e._vod:"none"}const hb=tt({patchProp:ub},Yy);let Bd;function mb(){return Bd||(Bd=Sy(hb))}const wo=(...e)=>{const t=mb().createApp(...e);gb(t),wb(t);const{mount:n}=t;return t.mount=o=>{const s=yb(o);if(!s)return;const i=t._component;!ke(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const r=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t};function gb(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>pg(t)||hg(t),writable:!1})}function wb(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Z("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,o='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom';Object.defineProperty(e.config,"compilerOptions",{get(){return Z(o),n},set(){Z(o)}})}}function yb(e){if(Je(e)){const t=document.querySelector(e);return t||Z(`Failed to mount app: mount target selector "${e}" returned null.`),t}return window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&Z('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}function bb(){Jy()}bb();const vb={key:0,class:"ce-custom-url-help"},_b={class:"ce-custom-url-help-body"},xb=u("hr",null,null,-1),Cb={key:0},$b={class:"pure-table pure-table-bordered"},kb=u("thead",null,[u("tr",null,[u("th",{width:"50%"},"变量"),u("th",{width:"50%"},"说明")])],-1),Sb=["onClick"],Eb=Be({__name:"CustomUrlHelp",setup(e){const t=be(Um),n=be(!1);Wt(async()=>{window.addEventListener("message",s=>{const{event:i}=s.data;i==="customUrlHelp"&&(n.value=!0)},!1)});const o=s=>{Yt(s.key),fe({text:"已复制到剪贴板",icon:"success",timer:1e3})};return(s,i)=>n.value?(G(),te("div",vb,[u("div",_b,[u("h1",null,[le(" 自定义菜单变量说明 "),u("a",{href:"javascript:void(0)",onClick:i[0]||(i[0]=r=>n.value=!1)},"关闭")]),xb,(G(!0),te(De,null,dt(t.value,(r,l)=>(G(),te("div",{key:l},[u("h2",null,we(r.label),1),r.memo?(G(),te("p",Cb,we(r.memo),1)):Ke("",!0),u("table",$b,[kb,u("tbody",null,[(G(!0),te(De,null,dt(r.items,(d,f)=>(G(),te("tr",{key:f},[u("td",null,[u("span",{class:"ce-variable",onClick:p=>o(d)},we(d.key),9,Sb)]),u("td",null,we(d.label),1)]))),128))])])]))),128))])])):Ke("",!0)}}),vA="",_A="",Dd="enabled_custom_urls_for_search",Nd="enabled_custom_urls_for_play";async function Ab(e){await lt.set(Dd,e)}async function Pb(e){await lt.set(Nd,e)}async function Ob(){const e=Qa,t=e.filter(s=>s.enabled).map(s=>s.key),n=await lt.get(Dd,t),o=[];return e.forEach(s=>{n.includes(s.key)&&o.push(s.key)}),o}async function Ib(){const e=Xa,t=e.filter(s=>s.enabled).map(s=>s.key),n=await lt.get(Nd,t),o=[];return e.forEach(s=>{n.includes(s.key)&&o.push(s.key)}),o}async function Rd(){const e=await Ob();return Qa.forEach(t=>{t.enabled=e.includes(t.key)}),Qa}async function Ga(){const e=await Ib();return Xa.forEach(t=>{t.enabled=e.includes(t.key)}),Xa}const Fd="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=",Ya="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",Xa=[ut({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}"}),ut({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}"}),ut({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}"}),ut({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}"}),ut({enabled:!0,key:"p_builtin_infuse",label:"Infuse播放",icon:Ya,memo:"调用Infuse播放视频(使用CloudDrive链接)",url:"infuse://x-callback-url/play?url={clouddrive_stream_url:encode}"}),ut({enabled:!1,key:"p_builtin_nplayer_mac",label:"nPlayer-mac播放",icon:Ya,memo:"调用nPlayer(mac版)播放视频(使用CloudDrive链接)",url:"nplayer-mac://weblink?url={clouddrive_stream_url:encode}&new_window=1"}),ut({enabled:!1,key:"p_builtin_nplayer_win",label:"nPlayer-win播放",icon:Ya,memo:"调用nPlayer(非mac版)播放视频(使用CloudDrive链接)",url:"nplayer-{clouddrive_stream_url:encode}"}),ut({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"})],Qa=[ut({enabled:!0,key:"s_builtin_115_pure_name",label:"115-不含后缀",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀)",url:"{pure_name:search}"}),ut({enabled:!1,key:"s_builtin_115_full_name",label:"115-完整名称",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(完整文件名)",url:"{full_name:search}"}),ut({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}"}),ut({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}"}),ut({enabled:!0,key:"s_builtin_bing_pure_name",label:"Bing-不含后缀",icon:Fd,memo:"使用Bing搜索文件名(不含后缀)",url:"https://cn.bing.com/search?q={pure_name:encode}"}),ut({enabled:!1,key:"s_builtin_bing_full_name",label:"Bing-完整名称",icon:Fd,memo:"使用Bing搜索文件名(完整文件名)",url:"https://cn.bing.com/search?q={full_name:encode}"}),ut({enabled:!0,key:"s_builtin_115_pure_name_manual",label:"115-不含后缀-手动",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀),手动编辑后搜索",url:"{pure_name:manual:search}"})],jd="list_config";function Tb(e){return{sizeSorter:!0,sizeSorterDirAttrInterval:100,showSha1:!1,showFolderSizeButton:!0,...e}}async function tr(){const e=Tb(),t=await lt.get(jd,e);return{...e,...t}}async function Lb(e){await lt.set(jd,e)}var Ud=(e=>(e[e.asc=0]="asc",e[e.desc=1]="desc",e))(Ud||{});async function Mb(e,t,n=!1){const o=await tr(),s=await Zt(!1),i=await To(),r=await Lo(!1);console.log("[items]",r),fe({html:"正在获取子文件夹大小...",icon:"info",position:"top-end",timer:0}),ge.showLoading();for(let l=0;l<r.length;l++){const d=r[l];if(!d.cate_id)continue;const f=i.find(`li[cate_id="${d.cate_id}"]`);if(!f.length)continue;const p=f.find(".file-size span:eq(0)");if(p.text()!==""&&!n)continue;const m=await cs(d.cate_id);ge.update({html:`[${l+1} / ${r.length}] 正在获取子文件夹大小:${d.n}`}),p.text(m.size),f.addClass("ce-size-got"),l<r.length-1&&await jt(o.sizeSorterDirAttrInterval)}return ge.hideLoading(),e&&await Bb(s),s}async function nr(e,t,n,o){const s=await To();s.find('li[file_type="0"]:not(.ce-size-got)').length>0&&await Mb(n);const r=s.find("ul"),l=r.children("li").toArray();l.sort(function(f,p){const m=$(f),y=$(p),x=zl(m.find(".file-size span:eq(0)").text()),E=zl(y.find(".file-size span:eq(0)").text());return t===0?x-E:E-x});const d=$("<ul></ul>");$.each(l,function(f,p){d.append(p)}),r.replaceWith(d),n?ge.update({title:"排序完成",html:`已完成排序: ${t===0?"小 > 大":"大 > 小"}`,icon:"success"}):fe({html:`已完成排序: ${t===0?"小 > 大":"大 > 小"}`,icon:"success",timer:1500,position:"top-end"})}async function Bb(e){ge.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"),nr(e,1,!0),!1),preDeny:async()=>(console.log("preDeny"),nr(e,0,!0),!1)})}async function Db(){await Za();const t=(await Ao("#js_data_list"))[0];Nb(),new MutationObserver(async([o])=>{o.type==="childList"&&await Za()}).observe(t,{childList:!0})}async function Nb(){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 o=n.target;let s=!1;if((o.getAttribute("menu")==="load_all_file"||o.closest('[menu="load_all_file"]'))&&(s=!0),!s)return;console.log("[list.handleLoadAll] 点击了「加载全部」按钮"),await Zs(t,500,3e5);const i=document.querySelector("#js_data_list .list-contents > ul");i==null||i.removeAttribute("ce-done2");const r=document.querySelector("#js_data_list");if(r){const l=".list-contents > ul:not([ce-done2]) > li";r.querySelectorAll(l).length&&(i==null||i.setAttribute("ce-done2",""),await Za())}})}async function Za(){const e=await tr();Ub(e);const t=await Dc(!1);for(let n=0;n<t.length;n++){const o=t.eq(n),s=await Mt(o);await Rb(e,o,s)}}async function Rb(e,t,n){await Fb(e,t,n),await jb(e,t,n)}async function Fb(e,t,n){if(!e.showSha1||!n.sha)return;t.addClass("ce-show-sha1");const o=t.find(".file-name"),s=document.createElement("span");s.classList.add("ce-file-sha1"),s.title="文件SHA1,点击复制",s.textContent=n.sha,s.addEventListener("click",async i=>{i.preventDefault(),i.stopPropagation(),Yt(n.sha),fe({title:"复制SHA1",text:"已复制文件SHA1",icon:"success",timer:1500})}),o.append(s)}async function jb(e,t,n){if(!e.showFolderSizeButton||!n.cate_id)return;const o=t.find(".file-size"),s=document.createElement("span");s.classList.add("ce-btn-folder-size"),s.title="点击获取该文件夹大小",s.textContent="大小",s.addEventListener("click",async i=>{i.preventDefault(),i.stopPropagation();const r=await cs(n.cate_id);o.find("span:eq(0)").text(r.size),t.addClass("ce-size-got"),fe({title:"获取大小",text:"已获取文件夹大小",icon:"success",timer:1500})}),o.append(s)}async function Ub(e){if(!e.sizeSorter)return;console.log("renderHeaderShowSubFolderSize");const t=document.querySelector(".header-size");if(!t||t.classList.contains("ce-injected"))return;const n=t,o=document.createElement("a");o.classList.add("btn-sort"),o.classList.add("ce-size-sort"),o.title="显示当前目录下已加载的子文件夹的大小,然后按大小排序",o.innerHTML=`
    <span>排序</span>
    <i icon_rel="file_size" class="icon-sort-asc"></i>
    <i icon_rel="file_size" class="icon-sort-desc"></i>
  `,o.addEventListener("click",async s=>{if(s.preventDefault(),s.stopPropagation(),!o.classList.contains("el-size-sort-ing"))try{o.classList.add("ce-size-sort-ing");let i=1;o.classList.contains("by-desc")?i=0:i=1;const r=await Zt(!1);await nr(r,i,!1,!1),i===0?(o.classList.remove("by-desc"),o.classList.add("by-asc")):(o.classList.remove("by-asc"),o.classList.add("by-desc"))}catch(i){console.error(i)}finally{o.classList.remove("ce-size-sort-ing")}}),n.appendChild(o),n.classList.add("ce-injected")}async function Hb(e,t){const n=[];for(const o of t){const s=Or(e,{key:`_ce_p_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(i,r)=>{r.stopPropagation(),r.preventDefault();try{const l=await Qn();if(!l)return;const d=await Mt(l),f=await Tr(),p=await ea(d,o,f);if(p.includes("v.anxia.com")){const y=(await Lo(!1)).find(x=>x.play_long&&x.play_long>0);Zr(d.cate_id,y);return}if(console.log("[play url]",p),!p)throw new Error("无法获取有效的播放链接!");window.open(p,"_blank","noopener noreferrer")}catch(l){console.error(l),fe({title:"播放失败",text:l.toString(),icon:"error"})}}});n.push(s)}return n}async function zb(){const e=[...(await Ga()).filter(t=>t.enabled),...(await us(Pn.play)).filter(t=>t.enabled)];return new Dt({key:"_play_with_x",label:"播放全部",icon:"icon-operate ifo-video-play",title:"",onClick:async(t,n)=>{},subItems:[...await Hb(Gm,e)]})}async function qb(){return new Dt({key:"_rename_dir",label:"重命名文件夹",icon:"icon-operate ifo-rename",title:'重命名当前目录,支持"高级模式"',onClick:async(e,t)=>{await e.closeMenu();const n=await Qn();!n||unsafeWindow.Core.Dir.Rename("1",n.attr("cate_id"),n.attr("title"))}})}async function Vb(){return new Dt({key:"_move_dir",label:"移动文件夹",icon:"icon-operate ifo-move",title:"移动当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await Qn();!n||await Xr(n,"move",!0)}})}async function Wb(){return new Dt({key:"_del_dir",label:"删除文件夹",icon:"icon-operate ifo-remove",title:"删除当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await Qn();if(!n)return;const o=await di();unsafeWindow.Core.FileAPI.DeleteFile([n],s=>{n.remove(),o.find("#js_top_header_file_path_box .top-file-path > .file-path").children(":last").prev()[0].click()},!0)}})}async function Kb(){return new Dt({key:"_copy_dir",label:"复制文件夹",icon:"icon-operate ifo-copy",title:"复制当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await Qn();!n||await Xr(n,"set_copy",!0)}})}async function Jb(){return new Dt({key:"_copy_dir_to",label:"复制文件夹到",icon:"icon-operate ifo-copyto",title:"复制当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await Qn();!n||await Xr(n,"copy_list",!0)}})}async function Gb(){return new Dt({key:"view_dir_attribute",label:"查看属性",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu();const n=await Qn();!n||Io().Core.FileAPI.getAttribute(n,{showPlayLongChange:function(o,s,i){Am().CACHE.FileMain.List.ResetPlayLongText(o,s,i)}},function(){console.log("查看属性 ok")})}})}async function or(e,t){return new Dt({key:`_d_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制当前目录下已加载的所有文件名称",onClick:async(n,o)=>{let i=(await Lo(!1)).map(r=>r.n);i=await pi(i,t),Yt(i.join(`
`)),fe({title:"复制名称",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success"})}})}async function Hd(e,t){return new Dt({key:`_d_copy_paths_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制当前目录下已加载的所有文件路径",onClick:async(n,o)=>{await n.closeMenu();const s=await Lo(!1),r=(await fi(s[0])).replace(/\/[^/]+$/,""),l=[];for(let d=0;d<s.length;d++){const f=r+"/"+s[d].n;l.push(await hi(s[d],f,t))}Yt(l.join(`
`)),fe({title:"复制路径",text:`已复制文件路径。数量:${l.length},复制类型:${e}`,icon:"success"})}})}async function Yb(){return new Dt({key:"show_sub_folder_size",label:"子文件夹大小",title:"显示当前目录下已加载的所有子文件夹的大小,并进行排序",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu(),await nr("",Ud.desc,!0)}})}async function zd(e,t){return new na({key:`_l_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,o)=>{await n.closeMenu();const s=await Fc();if(!s||!s.n){fe({text:"无法获取名称",timer:1200});return}let i=[s.n];i=await pi(i,t),Yt(i.join(`
`)),fe({title:"复制名称",text:"已复制选中文件名",icon:"success"})}})}async function qd(e,t){return new na({key:`_l_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制路径",onClick:async(n,o)=>{await n.closeMenu();const s=await Fc();if(!s||!s.n){fe({text:"无法获取路径",timer:1200});return}const i=await fi(s),r=await hi(s,i,t);Yt(r),fe({title:"复制路径",text:"已复制文件路径",icon:"success"})}})}let Xb=[];async function Qb(){const e=[...(await Ga()).filter(t=>t.enabled),...(await us(Pn.play)).filter(t=>t.enabled)];return new wi({key:"_play_with_x_d",label:"播放",injectDecider:ig,title:"115在线播放",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),s=await Mt(o),i=Rc(s.pc);s.cate_id&&i.includes("v.anxia.com")?Zr(s.cate_id):window.open(i,"_blank","noopener noreferrer")},subItems:[...await Fm(yi,e)]})}async function Zb(){const e=[...(await Rd()).filter(t=>t.enabled),...Xb.filter(t=>t.enabled),...(await us(Pn.search)).filter(t=>t.enabled)];return new wi({key:"_search_with_name_d",label:"搜索",icon:"",title:"使用名称搜索",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),s=await Mt(o),i=Qr({search_value:s.n,cid:await Zt()});window.open(i,"_blank","noopener noreferrer")},subItems:[...await Rm(yi,e)]})}async function ev(){return new wi({key:"_lh_copy_name_path",label:"名称路径",title:"复制文件名称路径",onClick:async(e,t)=>{},subItems:[await Vd("完整名称",Ot.full),await Vd("不含后缀",Ot.pure),new Qm({}),await sr("路径(Unix)",Ht.unixPath),await sr("路径(Windows)",Ht.winPath),await sr("上级路径(Unix)",Ht.unixParentPath),await sr("上级路径(Windows)",Ht.winParentPath)]})}async function Vd(e,t){return new yi({key:`_lh_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,o)=>{o.stopPropagation(),o.preventDefault();const s=$(o.target).closest("li");let r=[(await Mt(s)).n];r=await pi(r,t),Yt(r.join(`
`)),fe({title:"复制名称",text:`已复制选中文件名,复制类型:${e}`,icon:"success"})}})}async function sr(e,t){return new yi({key:`_lh_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,o)=>{o.stopPropagation(),o.preventDefault();const s=$(o.target).closest("li"),i=await Mt(s),r=await fi(i),l=await hi(i,r,t);Yt(l),fe({title:"复制路径",text:`已复制选中路径,复制类型:${e}`,icon:"success"})}})}async function tv(){return new wi({injectDecider:sg,key:"_open_in_new_tab",label:"新标签页",icon:"",title:"在新标签页打开",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=$(t.target).closest("li"),o=await Mt(n);if(!o||!o.cate_id){fe({text:"无法获取目录ID",timer:1200});return}const s=Nc(o.cate_id);window.open(s,"_blank","noopener noreferrer")}})}async function nv(){return new qc({key:"_s_smart_mkdir",label:"同名目录",icon:"icon-operate ifo-move",title:"将选中的文件移动到同名目录",onClick:await jm(!0)})}async function ov(){return new qc({key:"_s_copy_names_paths",label:"名称路径",icon:"icon-operate ifo-copy",title:"复制选中文件的名称路径",onClick:async(e,t)=>{},subItems:[await ir("完整名称",Ot.full),await ir("不含后缀",Ot.pure),await ir("完整文件名,去重",Ot.fullUnique),await ir("不含后缀,去重",Ot.pureUnique),new Zm({}),await Wd("路径(Unix)",Ht.unixPath),await Wd("路径(Windows)",Ht.winPath)]})}async function ir(e,t){return new Vc({key:`_s_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,o)=>{let i=(await Lo(!0)).map(r=>r.n);i=await pi(i,t),Yt(i.join(`
`)),fe({title:"复制名称",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success"})}})}async function sv(e,t=100){var i;const n=new Map;for(const r of e){const l=r.parentId;if(!l)throw new Error(`文件"${r.name}"没有父级目录ID!`);n.has(l)?(i=n.get(l))==null||i.push(r):n.set(l,[r])}const o=[];for(const r of n.values())o.push(r[0]);const s=new Map;for(const r of o){const l=await cs(r.id);await jt(t),s.set(r.parentId,l.paths.map(d=>d.file_name))}return s}async function Wd(e,t){return new Vc({key:`_s_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,o)=>{var d;const s=await Lo(!0),i=await Sm(s);let r=new Map;fe({text:"正在获取上级目录路径...",timer:0}),ge.showLoading();try{r=await sv(i)}catch(f){console.error(f),fe({text:`获取上级目录路径失败: ${f}`,timer:1200,icon:"error"});return}finally{ge.hideLoading()}if(r.size===0)return;const l=[];for(let f=0;f<s.length;f++){const p=(d=r.get(s[f].cid))==null?void 0:d.slice(1).join("/"),m=s[f].n,y=Qp(p+"/"+m,!0);l.push(await hi(s[f],y,t))}Yt(l.join(`
`)),fe({title:"复制路径",text:`已复制选中文件的路径。数量:${l.length},复制类型:${e}`,icon:"success"})}})}const Kd={label:"选中项菜单",key:"selection",selector:"div.list-operate.lo-right",itemSelector:"li[menu={key}]",items:[{enabled:!0,label:"下载",key:"download"},{enabled:!0,label:"移动",key:"move"},{enabled:!0,label:"标签",key:"edit_file_label"},{enabled:!0,label:"重命名",key:"edit_name"},{enabled:!0,label:"备注",key:"edit"},{enabled:!0,label:"星标",key:"star"},{enabled:!0,label:"删除",key:"delete"},{enabled:!0,label:"分享",key:"public_share"},{enabled:!0,label:"设置共享",key:"setShare"},{enabled:!0,label:"取消共享",key:"cancelShare"},{enabled:!0,label:"复制",key:"set_copy"},{enabled:!0,label:"复制到...",key:"copy_list"},{enabled:!0,label:"加密隐藏",key:"hide_file"},{enabled:!0,label:"取消加密",key:"show_file"},{enabled:!0,label:"设为快捷入口",key:"set_category"},{enabled:!0,label:"显示时长",key:"show_play_long"},{enabled:!0,label:"修改封面",key:"cover"},{enabled:!0,label:"一键排重",key:"same"},{enabled:!0,label:"导出目录树",key:"export_dir"},{enabled:!0,label:"显示属性",key:"attribute"},{enabled:!0,label:"转存至相册",key:"trans_to_album"},{enabled:!0,label:"更多",key:"operate_more"}]},Jd={label:"列表项右键菜单",key:"context",selector:"div.context-menu.menu-upward",itemSelector:"li[val={key}]",items:[{enabled:!0,label:"打开文件",key:"view"},{enabled:!0,label:"打开文件夹",key:"open_dir"},{enabled:!0,label:"下载文件",key:"download"},{enabled:!0,label:"下载文件夹",key:"download_dir"},{enabled:!0,label:"打包下载",key:"bale_download"},{enabled:!0,label:"刷新",key:"refresh"},{enabled:!0,label:"复制",key:"set_copy"},{enabled:!0,label:"复制到...",key:"copy_list"},{enabled:!0,label:"加密隐藏",key:"hide_file"},{enabled:!0,label:"取消加密",key:"show_file"},{enabled:!0,label:"显示时长",key:"show_play_long"},{enabled:!0,label:"取消时长",key:"hide_play_long"},{enabled:!0,label:"添加到我听",key:"listen"},{enabled:!0,label:"美化",key:"magic"},{enabled:!0,label:"修改封面",key:"cover"},{enabled:!0,label:"删除封面",key:"del_cover"},{enabled:!0,label:"一键排重",key:"same"},{enabled:!0,label:"移动",key:"move"},{enabled:!0,label:"重命名",key:"edit_name"},{enabled:!0,label:"备注",key:"edit"},{enabled:!0,label:"显示属性",key:"attribute"},{enabled:!0,label:"删除",key:"delete"},{enabled:!0,label:"播放器播放",key:"player"},{enabled:!0,label:"转存到相册",key:"trans_to_album"},{enabled:!0,label:"举报",key:"report"}]},Gd={label:"列表项悬浮菜单",key:"hover",selector:"div.file-opr[rel=menu]",itemSelector:"a[menu={key}]",items:[{enabled:!0,label:"星标",key:"star"},{enabled:!0,label:"下载文件",key:"download_one"},{enabled:!0,label:"下载文件夹",key:"download_dir_one"},{enabled:!0,label:"移动",key:"move"},{enabled:!0,label:"标签",key:"edit_file_label"},{enabled:!0,label:"重命名",key:"edit_name"},{enabled:!0,label:"备注",key:"edit"},{enabled:!0,label:"删除",key:"delete"},{enabled:!0,label:"分享",key:"public_share"},{enabled:!0,label:"设置共享",key:"setShare"},{enabled:!0,label:"取消共享",key:"cancelShare"},{enabled:!0,label:"复制",key:"set_copy"},{enabled:!0,label:"更多",key:"more",selector:'[menu_btn="more"]'}]},Yd="enabled_official_menu_keys";async function iv(){let e=await lt.get(Yd,["__default__"]);return e.length===1&&e[0]==="__default__"&&(e=await Qd([Kd,Jd,Gd]),await Xd(e)),e}async function Xd(e){await lt.set(Yd,e)}async function Qd(e){const t=[];return e.forEach(n=>{n.items.forEach(o=>{o.enabled&&t.push(`${n.key}_${o.key}`)})}),t}async function Zd(){const e=[Kd,Jd,Gd],t=await iv();return e.forEach(n=>{n.items.forEach(o=>{const s=`${n.key}_${o.key}`;t.includes(s)||o.enabled===void 0?o.enabled=!0:o.enabled=!1})}),e}async function rv(){const e=await Zd(),t=[];return e.forEach(n=>{n.items.forEach(o=>{let s=o.enabled?"block":"none";if(t.push(`${n.selector} ${n.itemSelector.replace("{key}",o.key)} { display: ${s} !important; }`),o.selector){t.push(`${n.selector} ${o.selector} { display: ${s} !important; }`);return}const i=n.itemSelector.replace("{key}",o.key);t.push(`${n.selector} ${i} { display: ${s} !important; }`)})}),t.join(`
`)}async function av(){const e="cloud115EnhancerOfficialMenuStyle",t=await rv();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 lv(){const{host:e,search:t}=location;if(!e.includes("115.com"))return;console.log("[Cloud115 Enhancer - menu] running..."),cv(),uv(),document.addEventListener(Bt.EVENT_CLOSE_MENU,o=>{$("#"+o.detail.menu.key).closest(".context-menu").hide()});const n=await ta();!n.enabled||(await jc(n),window.top===window.self&&dv(n),pv(n),(t.includes("ct=file")||t.includes("mode=search"))&&(fv(n),hv(n),Nm(n)))}async function cv(){console.log("[Cloud115 Enhancer - menu] injectUI");const e="ceCustomUrlHelp",t=document.createElement("div");t.id=e,document.body.appendChild(t),wo(Eb).mount(`#${e}`)}async function uv(){av()}const el=async(e,t)=>{};async function dv(e){const{[Oe.dirContext]:t}=e;if(!t.enabled)return;const n=[];t.rename&&n.push(await qb()),t.delete&&n.push(await Wb()),t.play&&n.push(await zb()),t.copyNames&&n.push(new Dt({key:"_dir_copy_names",label:"名称路径",icon:"icon-operate ifo-copy",onClick:el,subItems:[await or("完整名称",Ot.full),await or("不含后缀",Ot.pure),await or("完整名称,去重",Ot.fullUnique),await or("不含后缀,去重",Ot.pureUnique),new Ym({}),await Hd("路径(Unix)",Ht.unixPath),await Hd("路径(Windows)",Ht.winPath)]}));const o=[];t.move&&o.push(await Vb()),t.viewProp&&o.push(await Gb()),t.showSubFolderSize&&o.push(await Yb()),t.copy&&o.push(await Kb()),t.copyTo&&o.push(await Jb()),o.length===1?n.push(o[0]):o.length>1&&n.push(new Dt({key:"_dir_more",label:"更多",icon:"icon-operate ifo-open",onClick:el,subItems:o})),await new eg({items:n,siblingSelector:'[val="add_dir"]',position:Xn.after}).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 fv(e){const{[Oe.listItemHover]:t}=e;if(!t.enabled)return;const n=[];t.openInNewTab&&n.push(await tv()),t.search&&n.push(await Zb()),t.play&&n.push(await Qb()),t.copyNames&&n.push(await ev()),new ng({items:n,position:Xn.after,siblingSelector:'[menu="move"]'}).inject()}async function pv(e){const{[Oe.listItemContext]:t}=e;if(!t.enabled)return;const n=[];t.copyNames&&n.push(new na({key:"_list_item_copy_name_path",label:"名称路径",icon:"icon-operate ifo-copy",onClick:el,subItems:[await zd("完整名称",Ot.full),await zd("不含后缀",Ot.pure),new Xm({}),await qd("路径(Unix)",Ht.unixPath),await qd("路径(Windows)",Ht.winPath)]})),new tg({items:n,position:Xn.after,siblingSelector:'[val="refresh"]',useObserver:!0,observeTarget:document.body,disposeObserverAfterInjection:!1}).inject()}async function hv(e){const{[Oe.selection]:t}=e;if(!t.enabled)return;const n=[];location.search.includes("ac=search")||t.moveToSelfNameDir&&n.push(await nv()),t.copyNames&&n.push(await ov()),new og({items:n,position:Xn.before,siblingSelector:"ul li"}).inject()}const ef="offlineExporterConfig";var tl=(e=>(e.name="name",e.infoHash="infoHash",e.url="url",e))(tl||{});const mv={name:"名称",infoHash:"哈希",url:"链接"};function gv(e){return{onlyMagnetEd2k:!1,enableOptimization:!0,reqInterval:500,maxPage:0,showInfoHash:!0,enableListManagement:!0,enableSearcher:!0,searchMaxPage:5,searchKeywordType:"name",searchStatus:$t.any,searchStopOnFound:!1,searchReqInterval:10,...e}}async function Vo(){const e=gv(),t=await lt.get(ef,e);return{...e,...t}}async function tf(e){await lt.set(ef,e),window.postMessage({event:Wo.configChanged,body:JSON.parse(JSON.stringify(e))},"*")}async function wv(e){const t=await Ao("#js-warp"),o=t[0].querySelectorAll("li[complete]");o.length>0&&o.forEach(async i=>{await nf(i,e)}),_v(e),new MutationObserver(async([i])=>{if(i.type==="childList"){i.addedNodes.forEach(async l=>{await nf(l,e)});const r=document.querySelector(".ce-checkbox-all input");r.checked=!1,await rr([])}}).observe(t[0],{childList:!0})}async function yv(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 nf(e,t){const n=e,o=await yv(e);xv(n,t,o),bv(n,t,o),vv(n,t,o)}async function bv(e,t,n){if(!t.showInfoHash||n.name===n.hash||e.querySelector(".info-hash"))return;const o=e.querySelector(".file-name"),s=document.createElement("div");s.classList.add("info-hash"),s.textContent=n.hash,s.title=`点击复制${n.hash}`,o.after(s),s.addEventListener("click",()=>{ns(n.hash,"text"),fe({text:"已复制",icon:"success",timer:800})});const i=e.querySelector(".desc-tips");i&&i.style.display!=="none"&&e.classList.add("ce-task-trouble")}async function vv(e,t,n){const o=e.querySelector(".file-operate");if(o.querySelector(".ce-buttons"))return;const s=document.createElement("span");s.className="ce-buttons";const i=document.createElement("a");i.className="pure-button button-mini button-info",i.href=Nc(n.cate_id),i.target="_blank",i.textContent="打开",i.title="在新标签页打开目录",s.append(i),o.prepend(s)}async function _v(e){if(!e.enableListManagement)return;const t=await Ao("#js-main .header-name");if(t.length===0){console.warn("[renderCheckboxAll] 找不到`#js-main .header-name`");return}const n=t[0];let o=n.querySelector(".ce-checkbox-all");o||(o=document.createElement("div"),o.classList.add("ce-checkbox"),o.classList.add("ce-checkbox-all"),o.innerHTML=`
      <input type="checkbox"/>
    `,n.prepend(o)),o.addEventListener("click",()=>{const s=o.querySelector("input").checked;document.querySelectorAll("#js-warp li").forEach(r=>{const l=r.querySelector("input");l.checked=s,r.classList.toggle("ce-selected",s)}),nl().then(r=>{rr(r)})})}async function xv(e,t,n){if(!t.enableListManagement||e.querySelector(".ce-checkbox"))return;const o=e.querySelector(".file-name-wrap"),s=document.createElement("div");s.classList.add("ce-checkbox"),s.innerHTML=`
    <input type="checkbox" data-id="${n.hash}" />
  `,o.prepend(s),e.classList.add("ce-show-checkbox"),s.addEventListener("click",async i=>{i.shiftKey?await $v(i,e):await Cv(i,e)})}async function Cv(e,t){t.classList.toggle("ce-selected");const n=document.querySelector(".ce-checkbox-all input"),o=await sf(!1),s=Array.from(o).every(i=>i.classList.contains("ce-selected"));n.checked=s,nl().then(i=>{rr(i)})}async function $v(e,t){const n=await sf(!1),o=n.indexOf(t);let s=-1;for(let f=0;f<o;f++)if(n[f].classList.contains("ce-selected")){s=f;break}if(s===-1){for(let f=n.length-1;f>o;f--)if(n[f].classList.contains("ce-selected")){s=f;break}}s=s===-1?o:s;const i=Math.min(s,o),r=Math.max(s,o);for(let f=0;f<n.length;f++){const p=n[f],m=p.querySelector(".ce-checkbox input"),y=f>=i&&f<=r;m.checked=y,p.classList.toggle("ce-selected",y)}const l=i===0&&r===n.length-1,d=document.querySelector(".ce-checkbox-all input");d.checked=l,nl().then(f=>{rr(f)})}async function of(e){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")};return t.name||(t.name=e.querySelector(".file-name").textContent.trim()),t}async function sf(e){const t=document.querySelectorAll("#js-warp li"),n=[];return t.forEach(async o=>{const s=o;(!e||s.classList.contains("ce-selected"))&&n.push(s)}),n}async function nl(){const e=document.querySelectorAll("#js-warp li"),t=[];return e.forEach(async n=>{const o=n;if(o.classList.contains("ce-selected")){const s=await of(o);t.push(s)}}),t}var Wo=(e=>(e.selection="ce-offline-selection",e.configChanged="ce-offline-config-changed",e.searchPageChanged="ce-offline-search-page-changed",e))(Wo||{});async function rr(e){window.postMessage({event:"ce-offline-selection",body:e},"*")}async function ol(e){document.querySelectorAll("#js-warp li").forEach(async n=>{const o=n,s=o.getAttribute("hash");e.includes(s)&&(o.style.transition="opacity 0.5s",o.style.opacity="0.2",setTimeout(()=>{o.remove()},500))})}async function kv(e,t,n,o){var y;const s=[],i=n.maxPage||5;let r="",l="",d="",f="";n.name!==void 0&&(r=n.caseSensitive?n.name:n.name.toLowerCase()),n.infoHash!==void 0&&(l=n.caseSensitive?n.infoHash:n.infoHash.toLowerCase()),n.url!==void 0&&(d=n.caseSensitive?n.url:n.url.toLowerCase()),n.status!==void 0&&n.status!==$t.any&&n.status.toString()!==""&&(f=n.status.toString());let p=n.stopOnFound||!1;(l||d)&&(p=!0);let m=-1;for(let x=1;x<=i&&!(m>-1&&x>m);x++){window.postMessage({event:"ce-offline-search-page-changed",body:x},"*");const E=await Ic(x,e,t);m===-1&&(m=E.page_count);const A=E.tasks;for(const M of A){const V=n.caseSensitive?M.name:M.name.toLowerCase(),O=n.caseSensitive?M.info_hash:M.info_hash.toLowerCase(),T=n.caseSensitive?M.url:(y=M.url)==null?void 0:y.toLowerCase(),Q=r&&n.fuzzyName?V.includes(r):!1,ee=l&&O===l,U=d&&T===d;if((f?f===M.status.toString():!0)&&(Q||ee||U)&&(s.push(M),p))break}if(p&&s.length)break;x<i&&await jt(o.searchReqInterval||50)}return s}const Sv={class:"ce-config ce-offline-config"},Ev={class:"pure-form pure-form-aligned offline-exporter-config-form"},Av={class:"pure-control-group"},Pv=u("label",{for:"enableListManagement"},"启用批量管理",-1),Ov=u("div",{class:"pure-form-message text-success"}," 可以选中多个任务进行操作,支持shift多选。 ",-1),Iv={class:"pure-control-group"},Tv=u("label",{for:"showInfoHash"},"显示链接哈希",-1),Lv=u("div",{class:"pure-form-message text-success"}," 显示离线任务的哈希文本,点击可以复制。 ",-1),Mv=u("div",{class:"ce-tips"},"以下是导出链接相关选项",-1),Bv={class:"pure-control-group"},Dv=u("label",{for:"onlyMagnetEd2k"},"只取磁力和ED2K链接",-1),Nv=u("div",{class:"pure-form-message text-success"}," 导出链接时,只取磁力和ED2K链接,其他比如http链接会被略过。 ",-1),Rv={class:"pure-control-group"},Fv=u("label",{for:"enableOptimization"},"启用导出优化",-1),jv=u("div",{class:"pure-form-message text-success"}," 据观察,离线记录列表是将未完成的记录放在最前面的。如果只需导出未完成链接, 当获取到一个已完成的记录时,便可以停止继续获取后面的记录,节省时间。 ",-1),Uv={class:"pure-control-group"},Hv=u("label",{for:"reqInterval"},"导出请求数据间隔",-1),zv=u("div",{class:"pure-form-message text-success"}," 导出时请求分页的间隔,单位为毫秒,默认500。 ",-1),qv={class:"pure-control-group"},Vv=u("label",{for:"maxPage"},"最多导出页数",-1),Wv=u("div",{class:"pure-form-message text-success"}," 0表示不限制,否则表示最多导出的页数。 ",-1),Kv=u("div",{class:"ce-tips"},[le("以下是搜索离线任务相关选项。"),u("small",{class:"text-info"},"提示: 除了关键词,其他搜索条件都会持久保存。")],-1),Jv={class:"pure-control-group"},Gv=u("label",{for:"reqInterval"},"搜索请求数据间隔",-1),Yv=u("div",{class:"pure-form-message text-success"}," 搜索时请求分页的间隔,单位为毫秒,默认10。 ",-1),rf=Be({__name:"Config",async setup(e){let t,n;const o=be(([t,n]=yn(()=>Vo()),t=await t,n(),t));return Vt(async()=>{}),ht(o,an(async s=>{await tf(s),fe({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(s,i)=>(G(),te("div",Sv,[u("form",Ev,[u("fieldset",null,[u("div",Av,[Pv,oe(u("input",{id:"enableListManagement",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.enableListManagement=r)},null,512),[[Te,o.value.enableListManagement]]),Ov]),u("div",Iv,[Tv,oe(u("input",{id:"showInfoHash",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=r=>o.value.showInfoHash=r)},null,512),[[Te,o.value.showInfoHash]]),Lv]),Mv,u("div",Bv,[Dv,oe(u("input",{id:"onlyMagnetEd2k",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>o.value.onlyMagnetEd2k=r)},null,512),[[Te,o.value.onlyMagnetEd2k]]),Nv]),u("div",Rv,[Fv,oe(u("input",{id:"enableOptimization",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>o.value.enableOptimization=r)},null,512),[[Te,o.value.enableOptimization]]),jv]),u("div",Uv,[Hv,oe(u("input",{id:"reqInterval",type:"number","onUpdate:modelValue":i[4]||(i[4]=r=>o.value.reqInterval=r),min:50},null,512),[[qe,o.value.reqInterval]]),zv]),u("div",qv,[Vv,oe(u("input",{id:"maxPage",type:"number","onUpdate:modelValue":i[5]||(i[5]=r=>o.value.maxPage=r),min:0},null,512),[[qe,o.value.maxPage]]),Wv]),Kv,u("div",Jv,[Gv,oe(u("input",{id:"reqInterval",type:"number","onUpdate:modelValue":i[6]||(i[6]=r=>o.value.searchReqInterval=r),min:10},null,512),[[qe,o.value.searchReqInterval]]),Yv])])])]))}}),xA="",Xv={class:"ce-offline-exporter"},Qv={key:0},Zv=u("button",{type:"button",class:"pure-button button-mini"},"设置",-1),e_=Be({__name:"OflineExporter",setup(e){const t=`\r
`;let n,o;const s=be([]);let i={};Wt(async()=>{i=await Vo(),n=await Lc(),console.log("[profile]",n),o=await Tc(),console.log("[space]",o),r(),await wv(i)});async function r(){window.addEventListener("message",A=>{const{event:M,body:V}=A.data;switch(M){case Wo.selection:s.value=V;break;case Wo.configChanged:i=V;break}},!1)}async function l(A=!1,M=""){const{isConfirmed:V,value:O}=await ge.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 ee=document.getElementById("swalDeleteFile");ee.checked=A;const U=document.getElementById("swalUrls");U.value=M,U.focus()},preConfirm:()=>{const ee=document.getElementById("swalDeleteFile"),U=document.getElementById("swalUrls");return{deleteFile:ee?ee.checked:!1,urls:U?U.value:""}},width:620,inputPlaceholder:"每行一个",inputAttributes:{"aria-label":"每行一个"},showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!V)return;if(O===void 0){alert("请输入链接!");return}const T=[],Q=O.urls.trim().split(`
`);for(let ee=0;ee<Q.length;ee++){const U=Q[ee].trim();if(Fl(U)||jl(U)){const se=Hl(U);se&&T.push(se.toLowerCase())}}ge.showLoading(),ge.update({html:"正在删除..."}),await Yr(T,o,O.deleteFile,n.user_id),fe({icon:"success",title:"删除成功!请刷新页面查看最新的列表。",timer:3e4,position:"top-end"}),await ol(T)}async function d(){const A=s.value.map(T=>T.info_hash);if(!A.length)return;const{isConfirmed:M,value:V}=await ge.fire({title:"批量删除",icon:"warning",html:`确定要删除选中的 ${A.length} 个离线记录吗?`,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!M)return;const O=!!V;ge.showLoading(),ge.update({html:"正在删除..."}),await Yr(A,o,O,n.user_id),fe({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await ol(A),s.value=[]}async function f(A){const M=[A];i.onlyMagnetEd2k&&M.push(kt.magnetEd2k),console.log("[filters]",M),await E(o.sign,n.user_id,M)}function p(A,M){if(!M.length||M.length===1&&M[0]==="all")return A;const V={[$t.failed]:kt.failed,[$t.illegal]:kt.failed,[$t.ing]:kt.failed,[$t.success]:kt.success};return A=A.filter(O=>{if(!O.url&&!O.info_hash)return!1;const T=V[O.status];return M.includes(kt.all)||T&&M.includes(T)?!(M.includes(kt.magnetEd2k)&&(!Zp(O.info_hash)||O.url&&!Fl(O.url)&&!jl(O.url))):!1}),A}async function m(A,M,V){let O=[],T=1,Q=0;for(;;){ge.update({html:`正在导出... 进度:第 ${T} 页`+(Q?` / ${Q}`:"")});const ee=await Ic(T,A,M);if(!ee.tasks||!ee.tasks.length)break;if(Q===0&&i.maxPage>0?Q=Math.min(ee.page_count,i.maxPage):Q=ee.page_count,O=[...O,...p(ee.tasks,V)],i.enableOptimization&&V.includes(kt.failed)&&y(ee.tasks)){console.warn("由于开启了导出优化,且检测到已获取的记录中至少有一个「已完成」的记录,将不再获取剩下的记录");break}if(T>=Q)break;T++,await jt(i.reqInterval)}return O}function y(A){for(const M of A)if(M.status===$t.success)return!0;return!1}async function x(){const A=[kt.all];i.onlyMagnetEd2k&&A.push(kt.magnetEd2k),console.log("[filters]",A);const M=s.value;if(!M.length)return;const V=[];M.forEach(O=>{!O.url&&O.info_hash&&(O.url=Ul(O.info_hash)),V.push(O.url)}),V.length&&(ns(V.join(t),"text"),console.log("[links]",V),await ge.fire({title:"导出成功",icon:"success",html:`成功导出 ${V.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),Rl(V.join(t),`115离线链接_数量${V.length}_${os()}.txt`),!1)}))}async function E(A,M,V){ge.fire({title:"导出离线链接",html:"正在导出...",didOpen:()=>{ge.showLoading()}});const O=await m(A,M,V);if(ge.hideLoading(),!O.length){await ge.fire({title:"导出失败",icon:"error",html:"查询不到符合条件的离线记录!"});return}const T=[];if(O.forEach(Q=>{!Q.url&&Q.info_hash&&(Q.url=Ul(Q.info_hash)),T.push(Q.url)}),!T.length){await ge.fire({title:"导出失败",icon:"error",html:"未完成的离线记录中没有磁力或HTTP链接!"});return}ns(T.join(t),"text"),console.log("[links]",T),await ge.fire({title:"导出成功",icon:"success",html:`成功导出 ${T.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),Rl(T.join(t),`115离线链接_数量${T.length}_${os()}.txt`),!1)})}return(A,M)=>{const V=fo("VDropdown");return G(),te("span",Xv,[s.value.length?(G(),te("span",Qv,[u("button",{type:"button",class:"pure-button button-small button-error",onClick:d},[le("删除("),u("span",null,we(s.value.length),1),le(")")]),le("      ")])):Ke("",!0),u("button",{type:"button",class:"pure-button button-mini button-error",onClick:M[0]||(M[0]=O=>l(!1,"")),title:"填写链接以删除对应的离线任务"},"根据链接删除"),le("   "),s.value.length?(G(),te("button",{key:1,type:"button",class:"pure-button button-mini button-warning",onClick:x,title:"导出选中任务的链接"},[le("导出已选"),u("span",null,"("+we(s.value.length)+")",1)])):Ke("",!0),u("button",{type:"button",class:"pure-button button-mini button-error",onClick:M[1]||(M[1]=O=>f(xe(kt).failed)),title:"导出未完成链接"},"导出未完成"),u("button",{type:"button",class:"pure-button button-mini button-success",onClick:M[2]||(M[2]=O=>f(xe(kt).success)),title:"导出已完成链接"},"导出已完成"),u("button",{type:"button",class:"pure-button button-mini button-warning",onClick:M[3]||(M[3]=O=>f(xe(kt).all)),title:"导出全部链接"},"导出全部"),le("   "),Ce(V,{distance:5,"arrow-padding":10},{popper:Ve(()=>[(G(),Rt(ju,null,{default:Ve(()=>[Ce(rf)]),_:1}))]),default:Ve(()=>[Zv]),_:1})])}}}),CA="",sl=ge.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:e=>{e.addEventListener("mouseenter",ge.stopTimer),e.addEventListener("mouseleave",ge.resumeTimer)},customClass:"swal-toast"}),t_=["cate_id","delete_id","status","hash"],n_={class:"file-name-wrap"},o_={class:"file-name"},s_={task_popup:"goto",href:"javascript:;",class:"name"},i_={rel:"name"},r_={class:"desc-tips",rel:"file_down_violations"},a_={class:"txt-red",rel:"file_down_tips"},l_=["filename"],c_={class:"file-size"},u_={class:"file-process"},d_=u("i",{class:"icon-file-status ifst-failure"},null,-1),f_=u("span",{rel:"progress"},"下载失败",-1),p_=u("i",{class:"icon-file-status ifst-success"},null,-1),h_=u("span",{rel:"progress"},"下载成功",-1),m_=u("i",{class:"icon-file-status ifst-downing"},null,-1),g_={rel:"progress"},w_=u("i",{class:"icon-file-status ifst-violation"},null,-1),y_=u("span",{rel:"progress"},"违规",-1),b_=u("i",{class:"icon-file-status ifst-failure"},null,-1),v_=u("span",{rel:"progress"},"[未知]",-1),__={class:"file-operate",rel:"opt"},x_=u("a",{href:"javascript:;",task_popup:"goto"},[u("i",{class:"icon-operate ifo-opendir"}),u("s",null,"跳转到目录")],-1),C_=["cp_href"],$_=[u("i",{class:"icon-operate ifo-copy"},null,-1),u("s",null,"复制",-1)],k_=u("a",{href:"javascript:;",class:"btn-delete-offline"},[u("i",{class:"icon-operate ifo-remove"}),u("s",null,"删除")],-1),S_=Be({__name:"OfflineItem",props:{item:null,space:null,profile:null},setup(e){const t=e,n=zo(()=>t.item.percentDone?parseInt(t.item.percentDone.toString()):0),o=zo(()=>{const{name:r,del_path:l}=t.item;let d=r.replace(/^.*\./,"");return l&&/\/$/.test(l)&&(d="folder"),/^[a-z\d]+$/i.test(d)||(d="unknown"),d}),s=zo(()=>t.item.err===10016?"文件内含违规内容":""),i=zo(()=>t.item.can_appeal===1);return(r,l)=>(G(),te("li",{complete:"",cate_id:e.item.file_id,delete_id:e.item.delete_file_id,status:e.item.status,hash:e.item.info_hash},[u("div",n_,[u("i",{class:Ge(["file-type",`tp-${xe(o)}`])},null,2),u("div",o_,[u("em",null,[u("a",s_,[u("span",i_,we(e.item.name),1)])])]),oe(u("div",r_,[u("span",a_,we(xe(s)),1),oe(u("a",{href:"javascript:;",class:"btn-link",filename:e.item.name,rel:"violations_down_btn"},"去申诉",8,l_),[[Kt,xe(i)]])],512),[[Kt,xe(s)]])]),u("div",c_,[u("span",null,we(xe(Qs)(e.item.size)),1)]),u("div",u_,[e.item.status===xe($t).failed?(G(),te(De,{key:0},[d_,f_],64)):e.item.status===xe($t).success?(G(),te(De,{key:1},[p_,h_],64)):e.item.status===xe($t).ing?(G(),te(De,{key:2},[m_,u("span",g_,we(xe(n))+"%",1)],64)):e.item.status===xe($t).illegal?(G(),te(De,{key:3},[w_,y_],64)):(G(),te(De,{key:4},[b_,v_],64))]),u("div",__,[x_,u("a",{href:"javascript:;",cp_href:e.item.url,task_popup:"copy"},$_,8,C_),k_])],8,t_))}}),E_={class:"ce-offline-list"},A_=Be({__name:"OfflineList",props:{items:null,space:null,profile:null},setup(e){return(t,n)=>(G(),te("div",E_,[u("ul",null,[(G(!0),te(De,null,dt(e.items,(o,s)=>(G(),Rt(S_,{Key:s,item:o,space:e.space,profile:e.profile},null,8,["Key","item","space","profile"]))),256))])]))}}),P_={inline:"",class:"pure-form search-form",size:"small"},O_={class:"form-item",label:"关键词"},I_=["value"],T_={class:"form-item"},L_=["onKeyup"],M_={class:"form-item",label:"状态"},B_=["value"],D_=["value"],N_={class:"form-item",label:"页数"},R_=u("small",null,"页",-1),F_={class:"form-item"},j_={key:0,title:"根据「名称」查找时,是否在找到一个结果时停止继续查找"},U_={key:0,class:"search-tips"},H_={class:"tips-body"},z_={key:0},q_=Be({__name:"OfflineSearcher",setup(e){let t,n;const o=be(),s=be({KeywordType:tl.name,keyword:"",status:$t.any,maxPage:5,stopOnFound:!1});let i={...s.value};const r=be(null),l=be(!1),d=be([]),f=be(null),p=be({content:"",subContent:"",visible:!1});Wt(async()=>{t=await Lc(),n=await Tc(),o.value=await Vo(),s.value.KeywordType=o.value.searchKeywordType,s.value.status=o.value.searchStatus,s.value.maxPage=o.value.searchMaxPage,s.value.stopOnFound=o.value.searchStopOnFound,i={...s.value},document.body.addEventListener("click",U=>{Q(U)}),m()}),ht(s,an(async U=>{console.log("[searchParams changed]",Xp(U)),x()},200),{deep:!0});async function m(){window.addEventListener("message",U=>{const{event:se,body:ie}=U.data;switch(se){case Wo.searchPageChanged:y(ie);break;case Wo.configChanged:o.value={...ie};break}},!1)}async function y(U){console.log("[handleSearchPageChanged]",U),await ee({subContent:`正在搜索第 ${U} 页...`,visible:!0})}async function x(){const U=await Vo();let se=0;i.KeywordType!==s.value.KeywordType&&(U.searchKeywordType=s.value.KeywordType,se++),i.status!==s.value.status&&(U.searchStatus=s.value.status,se++),i.maxPage!==s.value.maxPage&&(U.searchMaxPage=s.value.maxPage,se++),i.stopOnFound!==s.value.stopOnFound&&(U.searchStopOnFound=s.value.stopOnFound,se++),se&&(await tf(U),console.log("[handleSearchParamsChange]",U),o.value={...U}),i={...s.value}}async function E(U){var se;(se=r.value)==null||se.select()}async function A(U){var se;s.value.keyword="",(se=r.value)==null||se.focus()}async function M(){d.value=[],s.value.keyword="",i={...s.value},await ee({visible:!1}),await O(!1);try{parent.window.Core.OFFL5Plug.ChangePage(1)}catch(U){console.error(U)}}async function V(){var se;d.value=[];let{keyword:U}=s.value;if(U=U.trim(),U===""){await ji(),(se=r.value)==null||se.select(),sl.fire({icon:"warning",title:"关键词不能为空!"});return}l.value=!0,await ee({content:"正在搜索...",subContent:"",visible:!0});try{const ie={status:s.value.status,maxPage:s.value.maxPage,fuzzyName:!0,caseSensitive:!1,stopOnFound:s.value.stopOnFound};ie[s.value.KeywordType]=s.value.keyword,ie.infoHash&&(ie.infoHash=Hl(ie.infoHash)),console.log("[search filter]",ie);const de=await kv(n.sign,t.user_id,ie,o.value);d.value=de,console.log("[search result]",de),de.length>0?await ee({visible:!1}):await ee({content:"没有符合条件的离线任务",subContent:"",visible:!0}),await O(!0)}catch(ie){console.warn("[search error]",ie),sl.fire({icon:"error",title:ie.toString()}),await ee({content:"搜索失败!",subContent:ie.toString(),visible:!0})}finally{l.value=!1}}async function O(U=!0){var de,Pe;!d.value.length&&U&&sl.fire({icon:"warning",html:"没有符合条件的离线任务"}),await ji();const se=(de=f.value)==null?void 0:de.querySelector("ul");if(!se)return;const ie=document.querySelector("ul#js-warp");ie&&(ie.innerHTML=se.innerHTML),await T(),(Pe=r.value)==null||Pe.focus()}async function T(){const U=d.value.length,se=document.querySelector("#js-page");if(!se)return;const ie=se.querySelector(".left-bvf span");ie.textContent=`共搜索到 ${U} 个结果`;const de=se.querySelector(".pagination .con");de.style.display="none"}async function Q(U){let se=U.target;if(se.classList.contains("ifo-remove")&&(se=se.closest("a")),!se.classList.contains("btn-delete-offline"))return;const ie=se.closest("li"),de=await of(ie),Pe=[de.info_hash];let pe={title:"删除离线记录",icon:"warning",html:`确定要删除「${de.name}」吗?`,showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"};de.delete_file_id&&(pe={...pe,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件"});const{isConfirmed:re,value:Ee}=await ge.fire(pe);if(!re)return;const ae=!!Ee;ge.showLoading(),ge.update({html:"正在删除..."}),await Yr(Pe,n,ae,t.user_id),fe({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await ol(Pe)}async function ee(U){p.value={...p.value,...U}}return(U,se)=>(G(),te("div",{class:Ge(["ce-offline-searcher",{loading:l.value}])},[u("form",P_,[u("fieldset",null,[u("div",O_,[oe(u("select",{"onUpdate:modelValue":se[0]||(se[0]=ie=>s.value.KeywordType=ie),size:"small",onChange:E},[(G(!0),te(De,null,dt(xe(mv),(ie,de)=>(G(),te("option",{key:de,value:de},we(ie),9,I_))),128))],544),[[Id,s.value.KeywordType]])]),u("div",T_,[u("div",{class:Ge(["clearable-wrap",{"is-empty":s.value.keyword===""}])},[oe(u("input",{ref_key:"refKeyword",ref:r,"onUpdate:modelValue":se[1]||(se[1]=ie=>s.value.keyword=ie),placeholder:"请输入关键词",clearable:"",onKeyup:Md(V,["enter"])},null,40,L_),[[qe,s.value.keyword]]),u("button",{type:"button",class:"pure-button pure-button-default button-xsmall btn-clear",onClick:A},"×")],2)]),u("div",M_,[oe(u("select",{"onUpdate:modelValue":se[2]||(se[2]=ie=>s.value.status=ie),placeholder:"请选择",clearable:"",style:{width:"90px"}},[u("option",{value:xe($t).any},"-状态-",8,B_),(G(!0),te(De,null,dt(xe(sh),(ie,de)=>(G(),te("option",{key:de,value:de},we(ie),9,D_))),128))],512),[[Id,s.value.status]])]),u("div",N_,[oe(u("input",{type:"number","onUpdate:modelValue":se[3]||(se[3]=ie=>s.value.maxPage=ie),min:1,max:1e5,title:"最多查找页数"},null,512),[[qe,s.value.maxPage]]),R_]),u("div",F_,[s.value.KeywordType===xe(tl).name?(G(),te("label",j_,[oe(u("input",{type:"checkbox","onUpdate:modelValue":se[4]||(se[4]=ie=>s.value.stopOnFound=ie),class:"stop-on-found"},null,512),[[Te,s.value.stopOnFound]]),le(" 找到即停 ")])):Ke("",!0),u("button",{type:"button",class:"pure-button pure-button-primary button-small",onClick:V},"查找"),le("    "),u("button",{type:"button",class:"pure-button pure-button-default button-xsmall",onClick:M,title:"清空关键词;重置列表到非查找状态"},"重置")])])]),u("div",{ref_key:"refList",ref:f,class:"list"},[Ce(A_,{items:d.value,space:xe(n),profile:xe(t)},null,8,["items","space","profile"])],512),p.value.visible?(G(),te("div",U_,[u("div",H_,[u("h2",null,we(p.value.content),1),p.value.subContent?(G(),te("p",z_,we(p.value.subContent),1)):Ke("",!0)])])):Ke("",!0)],2))}}),SA="";function bn(e){return e.split("-")[0]}function Ko(e){return e.split("-")[1]}function Rs(e){return["top","bottom"].includes(bn(e))?"x":"y"}function il(e){return e==="y"?"height":"width"}function af(e){let{reference:t,floating:n,placement:o}=e;const s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2;let r;switch(bn(o)){case"top":r={x:s,y:t.y-n.height};break;case"bottom":r={x:s,y:t.y+t.height};break;case"right":r={x:t.x+t.width,y:i};break;case"left":r={x:t.x-n.width,y:i};break;default:r={x:t.x,y:t.y}}const l=Rs(o),d=il(l);switch(Ko(o)){case"start":r[l]=r[l]-(t[d]/2-n[d]/2);break;case"end":r[l]=r[l]+(t[d]/2-n[d]/2);break}return r}const V_=async(e,t,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:i=[],platform:r}=n;if(r==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),i.filter(x=>{let{name:E}=x;return E==="autoPlacement"||E==="flip"}).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`","middleware detected. This will lead to an infinite loop. Ensure only","one of either has been passed to the `middleware` array."].join(" "));let l=await r.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=af({...l,placement:o}),p=o,m={},y=0;for(let x=0;x<i.length;x++){if(y++,y>100)throw new Error(["Floating UI: The middleware lifecycle appears to be","running in an infinite loop. This is usually caused by a `reset`","continually being returned without a break condition."].join(" "));const{name:E,fn:A}=i[x],{x:M,y:V,data:O,reset:T}=await A({x:d,y:f,initialPlacement:o,placement:p,strategy:s,middlewareData:m,rects:l,platform:r,elements:{reference:e,floating:t}});if(d=M!=null?M:d,f=V!=null?V:f,m={...m,[E]:O!=null?O:{}},T){typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(l=T.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:s}):T.rects),{x:d,y:f}=af({...l,placement:p})),x=-1;continue}}return{x:d,y:f,placement:p,strategy:s,middlewareData:m}};function W_(e){return{top:0,right:0,bottom:0,left:0,...e}}function lf(e){return typeof e!="number"?W_(e):{top:e,right:e,bottom:e,left:e}}function rl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function ar(e,t){t===void 0&&(t={});const{x:n,y:o,platform:s,rects:i,elements:r,strategy:l}=e,{boundary:d="clippingParents",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:y=0}=t,x=lf(y),A=r[m?p==="floating"?"reference":"floating":p],M=await s.getClippingClientRect({element:await s.isElement(A)?A:A.contextElement||await s.getDocumentElement({element:r.floating}),boundary:d,rootBoundary:f}),V=rl(await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:p==="floating"?{...i.floating,x:n,y:o}:i.reference,offsetParent:await s.getOffsetParent({element:r.floating}),strategy:l}));return{top:M.top-V.top+x.top,bottom:V.bottom-M.bottom+x.bottom,left:M.left-V.left+x.left,right:V.right-M.right+x.right}}const K_=Math.min,yo=Math.max;function al(e,t,n){return yo(e,K_(t,n))}const J_=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=e!=null?e:{},{x:s,y:i,placement:r,rects:l,platform:d}=t;if(n==null)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const f=lf(o),p={x:s,y:i},m=bn(r),y=Rs(m),x=il(y),E=await d.getDimensions({element:n}),A=y==="y"?"top":"left",M=y==="y"?"bottom":"right",V=l.reference[x]+l.reference[y]-p[y]-l.floating[x],O=p[y]-l.reference[y],T=await d.getOffsetParent({element:n}),Q=T?y==="y"?T.clientHeight||0:T.clientWidth||0:0,ee=V/2-O/2,U=f[A],se=Q-E[x]-f[M],ie=Q/2-E[x]/2+ee,de=al(U,ie,se);return{data:{[y]:de,centerOffset:ie-de}}}}),G_={left:"right",right:"left",bottom:"top",top:"bottom"};function lr(e){return e.replace(/left|right|bottom|top/g,t=>G_[t])}function cf(e,t){const n=Ko(e)==="start",o=Rs(e),s=il(o);let i=o==="x"?n?"right":"left":n?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=lr(i)),{main:i,cross:lr(i)}}const Y_={start:"end",end:"start"};function ll(e){return e.replace(/start|end/g,t=>Y_[t])}const X_=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function Q_(e,t,n){return(e?[...n.filter(s=>Ko(s)===e),...n.filter(s=>Ko(s)!==e)]:n.filter(s=>bn(s)===s)).filter(s=>e?Ko(s)===e||(t?ll(s)!==s:!1):!0)}const Z_=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,s,i,r,l;const{x:d,y:f,rects:p,middlewareData:m,placement:y}=t,{alignment:x=null,allowedPlacements:E=X_,autoAlignment:A=!0,...M}=e;if((n=m.autoPlacement)!=null&&n.skip)return{};const V=Q_(x,A,E),O=await ar(t,M),T=(o=(s=m.autoPlacement)==null?void 0:s.index)!=null?o:0,Q=V[T],{main:ee,cross:U}=cf(Q,p);if(y!==Q)return{x:d,y:f,reset:{placement:V[0]}};const se=[O[bn(Q)],O[ee],O[U]],ie=[...(i=(r=m.autoPlacement)==null?void 0:r.overflows)!=null?i:[],{placement:Q,overflows:se}],de=V[T+1];if(de)return{data:{index:T+1,overflows:ie},reset:{placement:de}};const Pe=ie.slice().sort((re,Ee)=>re.overflows[0]-Ee.overflows[0]),pe=(l=Pe.find(re=>{let{overflows:Ee}=re;return Ee.every(ae=>ae<=0)}))==null?void 0:l.placement;return{data:{skip:!0},reset:{placement:pe!=null?pe:Pe[0].placement}}}}};function e0(e){const t=lr(e);return[ll(e),t,ll(t)]}const t0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:s,middlewareData:i,rects:r,initialPlacement:l}=t;if((n=i.flip)!=null&&n.skip)return{};const{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:y=!0,...x}=e,E=bn(s),M=p||(E===l||!y?[lr(l)]:e0(l)),V=[l,...M],O=await ar(t,x),T=[];let Q=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&T.push(O[E]),f){const{main:ie,cross:de}=cf(s,r);T.push(O[ie],O[de])}if(Q=[...Q,{placement:s,overflows:T}],!T.every(ie=>ie<=0)){var ee,U;const ie=((ee=(U=i.flip)==null?void 0:U.index)!=null?ee:0)+1,de=V[ie];if(de)return{data:{index:ie,overflows:Q},reset:{placement:de}};let Pe="bottom";switch(m){case"bestFit":{var se;const pe=(se=Q.slice().sort((re,Ee)=>re.overflows.filter(ae=>ae>0).reduce((ae,Ue)=>ae+Ue,0)-Ee.overflows.filter(ae=>ae>0).reduce((ae,Ue)=>ae+Ue,0))[0])==null?void 0:se.placement;pe&&(Pe=pe);break}case"initialPlacement":Pe=l;break}return{data:{skip:!0},reset:{placement:Pe}}}return{}}}};function n0(e){let{placement:t,rects:n,value:o}=e;const s=bn(t),i=["left","top"].includes(s)?-1:1,r=typeof o=="function"?o({...n,placement:t}):o,{mainAxis:l,crossAxis:d}=typeof r=="number"?{mainAxis:r,crossAxis:0}:{mainAxis:0,crossAxis:0,...r};return Rs(s)==="x"?{x:d,y:l*i}:{x:l*i,y:d}}const o0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:n,y:o,placement:s,rects:i}=t,r=n0({placement:s,rects:i,value:e});return{x:n+r.x,y:o+r.y,data:r}}}};function s0(e){return e==="x"?"y":"x"}const i0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:s}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:l={fn:M=>{let{x:V,y:O}=M;return{x:V,y:O}}},...d}=e,f={x:n,y:o},p=await ar(t,d),m=Rs(bn(s)),y=s0(m);let x=f[m],E=f[y];if(i){const M=m==="y"?"top":"left",V=m==="y"?"bottom":"right",O=x+p[M],T=x-p[V];x=al(O,x,T)}if(r){const M=y==="y"?"top":"left",V=y==="y"?"bottom":"right",O=E+p[M],T=E-p[V];E=al(O,E,T)}const A=l.fn({...t,[m]:x,[y]:E});return{...A,data:{x:A.x-n,y:A.y-o}}}}},r0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n;const{placement:o,rects:s,middlewareData:i}=t,{apply:r,...l}=e;if((n=i.size)!=null&&n.skip)return{};const d=await ar(t,l),f=bn(o),p=Ko(o)==="end";let m,y;f==="top"||f==="bottom"?(m=f,y=p?"left":"right"):(y=f,m=p?"top":"bottom");const x=yo(d.left,0),E=yo(d.right,0),A=yo(d.top,0),M=yo(d.bottom,0),V={height:s.floating.height-(["left","right"].includes(o)?2*(A!==0||M!==0?A+M:yo(d.top,d.bottom)):d[m]),width:s.floating.width-(["top","bottom"].includes(o)?2*(x!==0||E!==0?x+E:yo(d.left,d.right)):d[y])};return r==null||r({...V,...s}),{data:{skip:!0},reset:{rects:!0}}}}};function cl(e){return(e==null?void 0:e.toString())==="[object Window]"}function zn(e){if(e==null)return window;if(!cl(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function cr(e){return zn(e).getComputedStyle(e)}function vn(e){return cl(e)?"":e?(e.nodeName||"").toLowerCase():""}function _n(e){return e instanceof zn(e).HTMLElement}function ur(e){return e instanceof zn(e).Element}function a0(e){return e instanceof zn(e).Node}function uf(e){const t=zn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function dr(e){const{overflow:t,overflowX:n,overflowY:o}=cr(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function l0(e){return["table","td","th"].includes(vn(e))}function df(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=cr(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}const ff=Math.min,Fs=Math.max,fr=Math.round;function Jo(e,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect();let o=1,s=1;return t&&_n(e)&&(o=e.offsetWidth>0&&fr(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&fr(n.height)/e.offsetHeight||1),{width:n.width/o,height:n.height/s,top:n.top/s,right:n.right/o,bottom:n.bottom/s,left:n.left/o,x:n.left/o,y:n.top/s}}function qn(e){return((a0(e)?e.ownerDocument:e.document)||window.document).documentElement}function pr(e){return cl(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pf(e){return Jo(qn(e)).left+pr(e).scrollLeft}function c0(e){const t=Jo(e);return fr(t.width)!==e.offsetWidth||fr(t.height)!==e.offsetHeight}function u0(e,t,n){const o=_n(t),s=qn(t),i=Jo(e,o&&c0(t));let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&n!=="fixed")if((vn(t)!=="body"||dr(s))&&(r=pr(t)),_n(t)){const d=Jo(t,!0);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else s&&(l.x=pf(s));return{x:i.left+r.scrollLeft-l.x,y:i.top+r.scrollTop-l.y,width:i.width,height:i.height}}function hr(e){return vn(e)==="html"?e:e.assignedSlot||e.parentNode||(uf(e)?e.host:null)||qn(e)}function hf(e){return!_n(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function d0(e){let t=hr(e);for(;_n(t)&&!["html","body"].includes(vn(t));){if(df(t))return t;t=t.parentNode}return null}function ul(e){const t=zn(e);let n=hf(e);for(;n&&l0(n)&&getComputedStyle(n).position==="static";)n=hf(n);return n&&(vn(n)==="html"||vn(n)==="body"&&getComputedStyle(n).position==="static"&&!df(n))?t:n||d0(e)||t}function mf(e){return{width:e.offsetWidth,height:e.offsetHeight}}function f0(e){let{rect:t,offsetParent:n,strategy:o}=e;const s=_n(n),i=qn(n);if(n===i)return t;let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((s||!s&&o!=="fixed")&&((vn(n)!=="body"||dr(i))&&(r=pr(n)),_n(n))){const d=Jo(n,!0);l.x=d.x+n.clientLeft,l.y=d.y+n.clientTop}return{...t,x:t.x-r.scrollLeft+l.x,y:t.y-r.scrollTop+l.y}}function p0(e){const t=zn(e),n=qn(e),o=t.visualViewport;let s=n.clientWidth,i=n.clientHeight,r=0,l=0;return o&&(s=o.width,i=o.height,Math.abs(t.innerWidth/o.scale-o.width)<.01&&(r=o.offsetLeft,l=o.offsetTop)),{width:s,height:i,x:r,y:l}}function h0(e){var t;const n=qn(e),o=pr(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=Fs(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Fs(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let l=-o.scrollLeft+pf(e);const d=-o.scrollTop;return cr(s||n).direction==="rtl"&&(l+=Fs(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:r,x:l,y:d}}function gf(e){return["html","body","#document"].includes(vn(e))?e.ownerDocument.body:_n(e)&&dr(e)?e:gf(hr(e))}function mr(e,t){var n;t===void 0&&(t=[]);const o=gf(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=zn(o),r=s?[i].concat(i.visualViewport||[],dr(o)?o:[]):o,l=t.concat(r);return s?l:l.concat(mr(hr(r)))}function m0(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&uf(n)){let o=t;do{if(o&&e===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function g0(e){const t=Jo(e),n=t.top+e.clientTop,o=t.left+e.clientLeft;return{top:n,left:o,x:o,y:n,right:o+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function wf(e,t){return t==="viewport"?rl(p0(e)):ur(t)?g0(t):rl(h0(qn(e)))}function w0(e){const t=mr(hr(e)),o=["absolute","fixed"].includes(cr(e).position)&&_n(e)?ul(e):e;return ur(o)?t.filter(s=>ur(s)&&m0(s,o)&&vn(s)!=="body"):[]}function y0(e){let{element:t,boundary:n,rootBoundary:o}=e;const i=[...n==="clippingParents"?w0(t):[].concat(n),o],r=i[0],l=i.reduce((d,f)=>{const p=wf(t,f);return d.top=Fs(p.top,d.top),d.right=ff(p.right,d.right),d.bottom=ff(p.bottom,d.bottom),d.left=Fs(p.left,d.left),d},wf(t,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}const b0={getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:u0(t,ul(n),o),floating:{...mf(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>f0(e),getOffsetParent:e=>{let{element:t}=e;return ul(t)},isElement:e=>ur(e),getDocumentElement:e=>{let{element:t}=e;return qn(t)},getClippingClientRect:e=>y0(e),getDimensions:e=>{let{element:t}=e;return mf(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},v0=(e,t,n)=>V_(e,t,{platform:b0,...n});var _0=Object.defineProperty,x0=Object.defineProperties,C0=Object.getOwnPropertyDescriptors,yf=Object.getOwnPropertySymbols,$0=Object.prototype.hasOwnProperty,k0=Object.prototype.propertyIsEnumerable,bf=(e,t,n)=>t in e?_0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xn=(e,t)=>{for(var n in t||(t={}))$0.call(t,n)&&bf(e,n,t[n]);if(yf)for(var n of yf(t))k0.call(t,n)&&bf(e,n,t[n]);return e},js=(e,t)=>x0(e,C0(t));function vf(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?vf(e[n],t[n]):e[n]=t[n])}const Cn={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,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 Go(e,t){let n=Cn.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=Cn.themes[n.$extend]||{}:(n=null,o=Cn[t]):n=null;while(n);return o}function S0(e){const t=[e];let n=Cn.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Cn.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function _f(e){const t=[e];let n=Cn.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Cn.themes[n.$extend]||{}):n=null;while(n);return t}let bo=!1;if(typeof window<"u"){bo=!1;try{const e=Object.defineProperty({},"passive",{get(){bo=!0}});window.addEventListener("test",null,e)}catch{}}let xf=!1;typeof window<"u"&&typeof navigator<"u"&&(xf=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Cf=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),$f={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},kf={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Sf(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function dl(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Jt=[];let vo=null;const Ef={};function Af(e){let t=Ef[e];return t||(t=Ef[e]=[]),t}let fl=function(){};typeof window<"u"&&(fl=window.Element);function je(e){return function(t){return Go(t.theme,e)}}const pl="__floating-vue__popper";var Pf=()=>Be({name:"VPopper",provide(){return{[pl]:{parentPopper:this}}},inject:{[pl]:{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:je("disabled")},positioningDisabled:{type:Boolean,default:je("positioningDisabled")},placement:{type:String,default:je("placement"),validator:e=>Cf.includes(e)},delay:{type:[String,Number,Object],default:je("delay")},distance:{type:[Number,String],default:je("distance")},skidding:{type:[Number,String],default:je("skidding")},triggers:{type:Array,default:je("triggers")},showTriggers:{type:[Array,Function],default:je("showTriggers")},hideTriggers:{type:[Array,Function],default:je("hideTriggers")},popperTriggers:{type:Array,default:je("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:je("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:je("popperHideTriggers")},container:{type:[String,Object,fl,Boolean],default:je("container")},boundary:{type:[String,fl],default:je("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:je("strategy")},autoHide:{type:[Boolean,Function],default:je("autoHide")},handleResize:{type:Boolean,default:je("handleResize")},instantMove:{type:Boolean,default:je("instantMove")},eagerMount:{type:Boolean,default:je("eagerMount")},popperClass:{type:[String,Array,Object],default:je("popperClass")},computeTransformOrigin:{type:Boolean,default:je("computeTransformOrigin")},autoMinSize:{type:Boolean,default:je("autoMinSize")},autoSize:{type:[Boolean,String],default:je("autoSize")},autoMaxSize:{type:Boolean,default:je("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:je("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:je("preventOverflow")},overflowPadding:{type:[Number,String],default:je("overflowPadding")},arrowPadding:{type:[Number,String],default:je("arrowPadding")},arrowOverflow:{type:Boolean,default:je("arrowOverflow")},flip:{type:Boolean,default:je("flip")},shift:{type:Boolean,default:je("shift")},shiftCrossAxis:{type:Boolean,default:je("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:je("noAutoFocus")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],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:js(xn({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[pl])==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:xn(xn({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 o,s;((o=this.parentPopper)==null?void 0:o.lockedChild)&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.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,t;!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(t=(e=this.referenceNode)==null?void 0:e.call(this))!=null?t:this.$el,this.$_targetNodes=this.targetNodes().filter(n=>n.nodeType===n.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"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(o0({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?t.middleware.push(Z_({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(i0({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(t0({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(J_({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:s,rects:i,middlewareData:r})=>{let l;const{centerOffset:d}=r.arrow;return s.startsWith("top")||s.startsWith("bottom")?l=Math.abs(d)>i.reference.width/2:l=Math.abs(d)>i.reference.height/2,{data:{overflow:l}}}}),this.autoMinSize||this.autoSize){const s=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:i,placement:r,middlewareData:l})=>{var d;if((d=l.autoSize)!=null&&d.skip)return{};let f,p;return r.startsWith("top")||r.startsWith("bottom")?f=i.reference.width:p=i.reference.height,this.$_innerNode.style[s==="min"?"minWidth":s==="max"?"maxWidth":"width"]=f!=null?`${f}px`:null,this.$_innerNode.style[s==="min"?"minHeight":s==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(r0({boundary:this.boundary,padding:this.overflowPadding,apply:({width:s,height:i})=>{this.$_innerNode.style.maxWidth=s!=null?`${s}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const o=await v0(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:xn(xn({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),vo&&this.instantMove&&vo.instantMove&&vo!==this.parentPopper){vo.$_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&&(vo=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 dl(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...mr(this.$_referenceNode),...mr(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"),o=n.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+n.offsetLeft),i=t.y+t.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${s}px ${i}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<Jt.length;n++)t=Jt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Jt.push(this),document.body.classList.add("v-popper--some-open");for(const t of _f(this.theme))Af(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 dl(),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,Sf(Jt,this),Jt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of _f(this.theme)){const o=Af(n);Sf(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}vo===this&&(vo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=Go(this.theme,"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 dl(),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,$f,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],$f,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,kf,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],kf,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(o=>o.addEventListener(t,n,bo?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,s){let i=n;o!=null&&(i=typeof o=="function"?o(i):o),i.forEach(r=>{const l=t[r];l&&this.$_registerEventListeners(e,l,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:s,handler:i}=n;!e||e===s?o.forEach(r=>r.removeEventListener(s,i)):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 o=n.getAttribute(e);o&&(n.removeAttribute(e),n.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const o=e[n];o==null?t.removeAttribute(n):t.setAttribute(n,o)}},$_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(Us>=e.left&&Us<=e.right&&Hs>=e.top&&Hs<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Us-Vn,o=Hs-Wn,i=t.left+t.width/2-Vn+(t.top+t.height/2)-Wn+t.width+t.height,r=Vn+n*i,l=Wn+o*i;return gr(Vn,Wn,r,l,t.left,t.top,t.left,t.bottom)||gr(Vn,Wn,r,l,t.left,t.top,t.right,t.top)||gr(Vn,Wn,r,l,t.right,t.top,t.right,t.bottom)||gr(Vn,Wn,r,l,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(xf?(document.addEventListener("touchstart",Of,bo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",A0,bo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Of,!0),window.addEventListener("click",E0,!0)),window.addEventListener("resize",I0));function Of(e){for(let t=0;t<Jt.length;t++){const n=Jt[t];try{const o=n.popperNode();n.$_mouseDownContains=o.contains(e.target)}catch{}}}function E0(e){If(e)}function A0(e){If(e,!0)}function If(e,t=!1){const n={};for(let o=Jt.length-1;o>=0;o--){const s=Jt[o];try{const i=s.$_containsGlobalTarget=P0(s,e);s.$_pendingHide=!1,requestAnimationFrame(()=>{if(s.$_pendingHide=!1,!n[s.randomId]&&Tf(s,i,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let l=s.parentPopper;for(;l;)n[l.randomId]=!0,l=l.parentPopper;return}let r=s.parentPopper;for(;r&&Tf(r,r.$_containsGlobalTarget,e);){r.$_handleGlobalClose(e,t);r=r.parentPopper}}})}catch{}}}function P0(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function Tf(e,t,n){return n.closeAllPopover||n.closePopover&&t||O0(e,n)&&!t}function O0(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function I0(e){for(let t=0;t<Jt.length;t++)Jt[t].$_computePosition(e)}let Vn=0,Wn=0,Us=0,Hs=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Vn=Us,Wn=Hs,Us=e.clientX,Hs=e.clientY},bo?{passive:!0}:void 0);function gr(e,t,n,o,s,i,r,l){const d=((r-s)*(t-i)-(l-i)*(e-s))/((l-i)*(n-e)-(r-s)*(o-t)),f=((n-e)*(t-i)-(o-t)*(e-s))/((l-i)*(n-e)-(r-s)*(o-t));return d>=0&&d<=1&&f>=0&&f<=1}var wr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};const T0={extends:Pf()};function L0(e,t,n,o,s,i){return G(),te("div",{ref:"reference",class:Ge(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[mn(e.$slots,"default",ug(gd(e.slotData)))],2)}var M0=wr(T0,[["render",L0]]);function B0(){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 o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let yr;function hl(){hl.init||(hl.init=!0,yr=B0()!==-1)}var br={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){hl(),ji(()=>{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",yr&&this.$el.appendChild(e),e.data="about:blank",yr||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&&(!yr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const D0=Mw();Tw("data-v-b329ee4c");const N0={class:"resize-observer",tabindex:"-1"};Lw();const R0=D0((e,t,n,o,s,i)=>(G(),Rt("div",N0)));br.render=R0,br.__scopeId="data-v-b329ee4c",br.__file="src/components/ResizeObserver.vue";var Lf=(e="theme")=>({computed:{themeClass(){return S0(this[e])}}});const F0=Be({name:"VPopperContent",components:{ResizeObserver:br},mixins:[Lf()],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}}}),j0=["id","aria-hidden","tabindex","data-popper-placement"],U0={ref:"inner",class:"v-popper__inner"},H0=[u("div",{class:"v-popper__arrow-outer"},null,-1),u("div",{class:"v-popper__arrow-inner"},null,-1)];function z0(e,t,n,o,s,i){const r=fo("ResizeObserver");return G(),te("div",{id:e.popperId,ref:"popover",class:Ge(["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:un(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]=Md(l=>e.autoHide&&e.$emit("hide"),["esc"]))},[u("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=l=>e.autoHide&&e.$emit("hide"))}),u("div",{class:"v-popper__wrapper",style:un(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[u("div",U0,[e.mounted?(G(),te(De,{key:0},[u("div",null,[mn(e.$slots,"default")]),e.handleResize?(G(),Rt(r,{key:0,onNotify:t[1]||(t[1]=l=>e.$emit("resize",l))})):Ke("",!0)],64)):Ke("",!0)],512),u("div",{ref:"arrow",class:"v-popper__arrow-container",style:un(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},H0,4)],4)],46,j0)}var Mf=wr(F0,[["render",z0]]),Bf={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)}}};const q0=Be({name:"VPopperWrapper",components:{Popper:M0,PopperContent:Mf},mixins:[Bf,Lf("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function V0(e,t,n,o,s,i){const r=fo("PopperContent"),l=fo("Popper");return G(),Rt(l,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:Ge([e.themeClass])},{default:Ve(({popperId:d,isShown:f,shouldMountContent:p,skipTransition:m,autoHide:y,show:x,hide:E,handleResize:A,onResize:M,classes:V,result:O})=>[mn(e.$slots,"default",{shown:f,show:x,hide:E}),Ce(r,{ref:"popperContent","popper-id":d,theme:e.finalTheme,shown:f,mounted:p,"skip-transition":m,"auto-hide":y,"handle-resize":A,classes:V,result:O,onHide:E,onResize:M},{default:Ve(()=>[mn(e.$slots,"popper",{shown:f,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}var ml=wr(q0,[["render",V0]]);const W0=Be(js(xn({},ml),{name:"VDropdown",vPopperTheme:"dropdown"})),K0=Be(js(xn({},ml),{name:"VMenu",vPopperTheme:"menu"})),J0=Be(js(xn({},ml),{name:"VTooltip",vPopperTheme:"tooltip"})),G0=Be({name:"VTooltipDirective",components:{Popper:Pf(),PopperContent:Mf},mixins:[Bf],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Go(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Go(e.theme,"loadingContent")}},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(o=>this.onResult(t,o)):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}}}),Y0=["innerHTML"],X0=["textContent"];function Q0(e,t,n,o,s,i){const r=fo("PopperContent"),l=fo("Popper");return G(),Rt(l,yd({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Ve(({popperId:d,isShown:f,shouldMountContent:p,skipTransition:m,autoHide:y,hide:x,handleResize:E,onResize:A,classes:M,result:V})=>[Ce(r,{ref:"popperContent",class:Ge({"v-popper--tooltip-loading":e.loading}),"popper-id":d,theme:e.theme,shown:f,mounted:p,"skip-transition":m,"auto-hide":y,"handle-resize":E,classes:M,result:V,onHide:x,onResize:A},{default:Ve(()=>[e.html?(G(),te("div",{key:0,innerHTML:e.finalContent},null,8,Y0)):(G(),te("div",{key:1,textContent:we(e.finalContent)},null,8,X0))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var Z0=wr(G0,[["render",Q0]]);const Df="v-popper--has-tooltip";function e1(e,t){let n=e.placement;if(!n&&t)for(const o of Cf)t[o]&&(n=o);return n||(n=Go(e.theme||"tooltip","placement")),n}function Nf(e,t,n){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=e1(o,n),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let gl,zs,t1=0;function n1(){if(gl)return;zs=be([]),gl=wo({name:"VTooltipDirectiveApp",setup(){return{directives:zs}},render(){return this.directives.map(t=>Vy(Z0,js(xn({},t.options),{shown:t.shown||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),gl.mount(e)}function o1(e,t,n){n1();const o=be(Nf(e,t,n)),s=be(!1),i={id:t1++,options:o,shown:s};return zs.value.push(i),e.classList&&e.classList.add(Df),e.$_popper={options:o,item:i,show(){s.value=!0},hide(){s.value=!1}}}function Rf(e){if(e.$_popper){const t=zs.value.indexOf(e.$_popper.item);t!==-1&&zs.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Df)}function Ff(e,{value:t,modifiers:n}){const o=Nf(e,t,n);if(!o.content||Go(o.theme||"tooltip","disabled"))Rf(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=o1(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}var s1={beforeMount:Ff,updated:Ff,beforeUnmount(e){Rf(e)}};function jf(e){e.addEventListener("click",Hf),e.addEventListener("touchstart",zf,bo?{passive:!0}:!1)}function Uf(e){e.removeEventListener("click",Hf),e.removeEventListener("touchstart",zf),e.removeEventListener("touchend",qf),e.removeEventListener("touchcancel",Vf)}function Hf(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function zf(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",qf),t.addEventListener("touchcancel",Vf)}}function qf(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-o.screenY)<20&&Math.abs(n.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Vf(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var i1={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&jf(e)},updated(e,{value:t,oldValue:n,modifiers:o}){e.$_closePopoverModifiers=o,t!==n&&(typeof t>"u"||t?jf(e):Uf(e))},beforeUnmount(e){Uf(e)}};function r1(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,vf(Cn,t),e.directive("tooltip",s1),e.directive("close-popper",i1),e.component("VTooltip",J0),e.component("VDropdown",W0),e.component("VMenu",K0))}const wl={version:"2.0.0-beta.20",install:r1,options:Cn},OA="";var _o=(e=>(e.openConfig="openConfig",e.basicConfigChange="basicConfigChange",e.listConfigChange="listConfigChange",e.listRendered="listRendered",e))(_o||{});const Wf="basic_config",a1={name:"115不大助手",version:"0.5.37",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"};function l1(e){return{hideSidebar:!0,showOfflineEntry:!1,transferDefaultOffline:!1,hideWatermark:!0,fakeAccountEnabled:!1,fakeAccountId:"",fakeAccountName:"",fakeAccountAvatar:"",fakeAccountVip:"",...e}}async function vr(){const e=l1(),t=await lt.get(Wf,e);return{...e,...t}}async function c1(e){await lt.set(Wf,e)}async function u1(e){!e.hideSidebar||(console.log("[Cloud115 Enhancer] hideSidebar"),window.top!==window.self?(await Xt('[rel="page_top_btn"]')).show():(await Xt("#site_left_bar")).hide())}async function d1(e){if(!e.showOfflineEntry)return;const{search:t}=location;if(!t.includes("ct=file"))return;console.log("[Cloud115 Enhancer] showOfflineEntry");const n=await Xt("a#js_filter_btn"),o="https://115.com/?ct=index&ac=offline_new_tpl&offline=1&tab=offline",s="background:#fffcea;",i=`该按钮由 ${a1.name} 注入,点击跳转到「云下载」页面`,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>
    <span>云下载</span>
  </a>`);n.after(r),r.on("click",()=>{try{Io().oofUtil.urlMaintain.changeMode("wangpan",{tab:"offline"})}catch(l){console.log('[Cloud115 Enhancer] showOfflineEntry failed with "top.oofUtil.urlMaintain.changeMode".',l),location.href=o}})}async function f1(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 Xt('#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").addClass("icon-operate ifo-linktask").css({filter:"invert(0.6)"})}async function p1(e){if(!!e.hideWatermark){console.log("[Cloud115 Enhancer] hideWatermark");try{const t=await Xt('div[class^="fp-"]');t.addClass("hidden-watermark"),t.hide()}catch(t){console.error("[Cloud115 Enhancer] hideWatermark",t.message)}}}async function h1(e){window.top===window.self&&(await jt(1e3),yl(e),window.addEventListener("message",async t=>{const n=t.data.event,o=t.data.body;n===_o.basicConfigChange&&(console.log("[Cloud115 Enhancer] basicConfigChange"),yl(o))}))}let qs=null;async function m1(){qs&&clearTimeout(qs),qs=setTimeout(async()=>{const e=await vr();yl(e)},5e3)}async function yl(e){qs&&clearTimeout(qs);const t=async(n,o)=>{const s=await Xt('[rel="user_id"]',100);s.data("origin")||s.data("origin",s.text()),o?s.text(s.data("origin")):s.text(n.fakeAccountId);const i=await Xt('[rel="user_name"]',100);i.data("origin")||i.data("origin",$(i[0]).text()),o?i.text(i.data("origin")):i.text(n.fakeAccountName);const r=await Xt('img[rel="user_face"], .user-avatar img',100);r.data("origin")||r.data("origin",r.attr("src")),o?r.attr("src",r.data("origin")):(r.attr("rel","noreferrer"),r.attr("src",n.fakeAccountAvatar));const l=await Xt(".sign-vip-card",100);l.data("origin")||l.data("origin",$(l[0]).text()),o?l.text(l.data("origin")):l.text(n.fakeAccountVip)};try{e.fakeAccountEnabled?await t(e,!1):await t(e,!0)}catch(n){console.error(n)}finally{e.fakeAccountEnabled&&m1()}}async function g1(){const{host:e,search:t}=location;e!=="115.com"||!t.includes("offline=1&tab=offline")||(await w1(),await y1(),b1())}async function w1(){console.log("[Cloud115 Enhancer] Injecting offline exporter...");const e="cloud115OfflineExporter",t=await Vo();document.body.classList.add("cloud115-page-offline"),t.enableListManagement&&document.body.classList.add("ce-list-m"),$("body").append(`<div id="${e}"/>`);const n=wo(e_);n.use(wl),n.mount(`#${e}`)}async function y1(){console.log("[Cloud115 Enhancer] Injecting offline searcher...");const e="cloud115OfflineSearcher",t=await Vo();document.body.classList.add("cloud115-page-offline"),t.enableSearcher&&document.body.classList.add("ce-list-s"),$("body").append(`<div id="${e}"/>`);const n=wo(q_);n.use(wl),n.mount(`#${e}`)}async function b1(){(await vr()).hideSidebar&&($('.more-box[rel="transfer_top_btn"]').show(),$('a[menu="upload"]').show(),$('.clp-box[rel="transfer_top_btn"]').show())}var Kn=(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))(Kn||{});const v1={class:"cloud115-eh-cleaner-trigger"},_1=[u("span",null,"清理文件",-1)],x1=Be({__name:"Trigger",setup(e){be(!1);const t=be(!0);async function n(l){switch(l.data.type){case Kn.INVOKE_FILTER:await Mm(l.data.payload);break;case Kn.CLEANER_OPENED:await r(l.data.payload);break}}Wt(async()=>{console.log("[CleanerTrigger onMounted]"),window.addEventListener("message",n)}),Os(()=>{console.log("[CleanerTrigger onUnmounted]"),window.removeEventListener("message",n)});async function o(){await i(),ei({type:Kn.OPEN_CLEANER},window.parent)}let s=0;async function i(){const l=eh("cid");!l||l==="0"||(clearTimeout(s),s=window.setTimeout(async()=>{fe({icon:"error",text:"打开清理工具失败!"})},1e3))}async function r(l){console.log("成功打开Cleaner"),clearTimeout(s)}return(l,d)=>oe((G(),te("span",v1,[mn(l.$slots,"default",{},()=>[u("span",{class:"btn-open pure-button pure-button-primary",onClick:o},_1)])],512)),[[Kt,t.value]])}}),TA="";var Re=(e=>(e[e.suffix=0]="suffix",e[e.keyword=1]="keyword",e))(Re||{}),ft=(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))(ft||{}),rt=(e=>(e.none="",e.prepare="查询文件...",e.prepared="查询文件完成",e.prepareFailed="查询失败",e.deleting="删除文件中...",e.success="清理完成",e.failed="清理失败",e))(rt||{});gt.all,Ze.all,gt.video,Ze.video,gt.audio,Ze.audio,gt.image,Ze.image,gt.doc,Ze.doc,gt.app,Ze.app,gt.archive,Ze.archive;const C1=new Map([[Ze.all,gt.all],[Ze.video,gt.video],[Ze.audio,gt.audio],[Ze.image,gt.image],[Ze.doc,gt.doc],[Ze.app,gt.app],[Ze.archive,gt.archive]]),_r="#",Kf="#",$1=[{type:Re.suffix,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:5,values:["txt","url","html","htm","mht"]},{type:Re.suffix,queryOnly:!0,label:"🔍115筛选",memo:"仅用于查询",size:102400,values:["#视频","#音频","#图片","#文档","#应用","#压缩包"]}],k1=["#論壇文宣","#宣傳文本","最新地址","最新网址","论坛地址","永久地址","地址发布","扫码 安装","扫码 下载","免費 掃碼","澳门 赌场","皇冠 赌场","免费18禁手游","免费黄游手游","在线影城","秀场 小视频","裸秀 主播 免费看","第一会所 宣传","SIS 影视联盟",'"最 新 位 址 獲 取"','"社 區 最 新 情 報"','"聚 合 全 網 H 直 播"'],S1=["#論壇文宣","美女 裸聊","秀场 视频","澳门 赌场","皇冠 赌场","影视 联盟","2048 社区","1024 社区","会所 宣传","扫码 安装","社区 关注","免費 掃碼","找回家","防屏蔽","封殺00","秀场 小视频","裸秀 主播 免费看",'"Free Adult Movie"',"奔驰宝马","最新网址","最新免費","免费试用","美女荷官","凤凰娛樂","观看指南","女神在线","更多无水印","免费在线","国产精品","免費原版","獨家資源","成人光碟","最新AV","FDZone","发布器","QR-1024","在這等你","激情祼聊","看妹不用等","真人祼聊","zz.jpg","X8B9.COM.gif","第一会所 宣传","SIS 影视联盟","淘精網","激情咖啡","手機影城","免费手机看片","U視娛樂","加微信","我愛看片手機版","平台正式上線"],E1=[{type:Re.keyword,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:100,values:k1},{type:Re.keyword,queryOnly:!1,label:"⚠️大杀器⚠️",memo:"请谨慎使用!",size:100,values:S1},{type:Re.keyword,queryOnly:!0,label:"只查询示例",memo:"这是一个示例",size:10240,values:["奔驰宝马","美女荷官",'"最 新 位 址 獲 取"']}];function xo(e){return{id:Date.now().toString(),type:e,queryOnly:!1,label:"",values:"",memo:"",size:0,sort:0,createdAt:0,updatedAt:0}}function Jf(e,t){e=e.trim();const n=t===Re.keyword&&A1(e),o=t===Re.suffix&&P1(e);let s=e;return n&&(s=O1(e)),o&&(s=I1(e).toString()),{type:t,value:e,forDir:n,isFilter:o,pattern:s,num:-1,fileIds:[],size:-1,status:rt.none}}function Gf(e){return[rt.prepare,rt.deleting].includes(e.status)}function A1(e){return new RegExp(`^${_r}[\\S]{2,}`).test(e)}function P1(e){return new RegExp(`^${Kf}[\\S]{2,}`).test(e)}function O1(e){const t=new RegExp(`^${_r}`);return e.replace(t,"")}function I1(e){const t=new RegExp(`^${Kf}`);let n=e.replace(t,"");const o=C1.get(n);if(!o)throw new Error(`"${e}"不是有效的筛选!`);return o}async function Co(e,t){let n;typeof e=="string"?n=e.split(/[\r\n]+/):n=e;const o=new Set;for(let i=0;i<n.length;i++){const r=n[i].trim();r.length>1&&o.add(r)}const s=[];return o.forEach(i=>{s.push(Jf(i,t))}),s}function Yf(e){return/(^'.+'$)|(^".+"$)/.test(e)}function bl(e){return Yf(e)?e.replace(/^['"]|['"]$/g,""):e}function T1(e,t){if(e===""||t==="")return!1;if(e=e.toLowerCase(),Yf(t))return e.includes(bl(t).toLowerCase());const n=t.split(/\s+/);for(let o=0;o<n.length;o++)if(!e.includes(n[o].toLowerCase()))return!1;return!0}async function Xf(e,t,n){const o=Jf(e.value,e.type);o.num=0,o.size=0,o.fileIds=[];const s=new Set;let i=0;n.maxSize&&(i=n.maxSize*1024*1024);for(let r=0;r<t.length;r++){const l=!!t[r].fid,d=l?t[r].fid:t[r].cid;if(e.type===Re.keyword&&(l&&e.forDir||!l&&!e.forDir))continue;const f=parseFloat(t[r].s);i&&l&&f>i||e.type===Re.keyword&&!T1(t[r].n,e.pattern)||s.has(d)||(s.add(d),o.size+=f)}return o.fileIds=Array.from(s),o.num=o.fileIds.length,o}const L1={class:"group-manager"},M1={key:0,class:"label-readonly",title:"当前分组只可用于查询"},B1=["title"],D1=u("small",null,"分组:",-1),N1={class:"pure-form pure-form-stacked group-form"},R1=u("label",{for:"groupLabel"},"标题",-1),F1=u("label",{for:"groupMemo"},"备注",-1),j1={for:"groupValues"},U1={key:0,class:"text-info"},H1={key:1,class:"text-info"},z1=["onClick"],q1=u("small",{class:"text-primary"},"(点击添加)",-1),V1=u("label",{for:"groupMemo"},[le(" 文件大小 "),u("span",{class:"text-info"},[le("只清理小于该大小的文件,单位"),u("b",null,"MB")])],-1),W1={class:"groups-list"},K1={key:0,class:"text-danger"},J1=u("span",{class:"text-info"},"或",-1),G1=u("br",null,null,-1),Y1=u("br",null,null,-1),X1={class:"pure-table pure-table-bordered"},Q1=u("thead",null,[u("tr",null,[u("th",{width:"25"},"#"),u("th",{width:"70"},"只查询"),u("th",{width:"150"},"名称"),u("th",{width:"150"},"备注"),u("th",{width:"70"},[le("大小"),u("small",null,"MB")]),u("th",{width:"220"},"操作")])],-1),Z1={align:"center"},ex=["onClick"],tx=u("button",{type:"button",class:"pure-button button-xsmall text-danger"},"删除",-1),nx={class:"group-confirm-delete"},ox=["onClick"],sx=["onClick"],Qf=Be({__name:"GroupManager",props:{type:null,storageKey:null,config:null},emits:["change"],setup(e,{emit:t}){const n=e,o=be(xo(n.type)),s=be([]),i=be(!1),r=be(xo(n.type)),l=be(null),d=be(!1),f=be(null),p=[Ze.video,Ze.audio,Ze.image,Ze.doc,Ze.app,Ze.archive];ht(s,async pe=>{console.log("[groups change]",pe),Yn(n.storageKey,pe,!1),pe.length||(i.value=!1,d.value=!1)},{deep:!0});let m=!1;Wt(async()=>{if(console.log("[GroupManager onMounted]"),!m){m=!0,s.value=Xs(n.storageKey,[]),console.log("[groups]",s.value);const{suffixGroup:pe,keywordGroup:re}=n.config;if(s.value.length){const Ee=s.value.find(ae=>ae.id===(n.type===Re.suffix?pe:re));console.log("[group last choosen]",Ee),o.value=Ee||s.value[0],t("change",o.value)}else n.type===Re.suffix&&!pe&&(await U(),Yn("cleanerConfig",{suffixGroup:o.value.id},!0)),n.type===Re.keyword&&!re&&(await U(),Yn("cleanerConfig",{keywordGroup:o.value.id},!0))}}),Os(async()=>{console.log("[GroupManager onUnmounted]")});async function y(pe){const re=`#${pe}`;r.value.values.includes(re)||(r.value.values+=(`
`+re).trim()+`
`)}async function x(){i.value=!0,d.value=!1}async function E(){i.value=!1}async function A(){l.value.show()}async function M(){l.value.hide()}async function V(){d.value=!1}async function O(){d.value=!0,i.value=!1}async function T(){f.value.show()}async function Q(){f.value.hide()}async function ee(){r.value.createdAt&&(r.value=xo(n.type)),r.value.size=5,n.type===Re.keyword&&(r.value.size=100),await A()}async function U(){let pe=[];n.type===Re.suffix?pe=$1:pe=E1;for(let re=0;re<pe.length;re++){const Ee={...xo(pe[re].type),...pe[re]};r.value=Ee,r.value.type=Ee.type,r.value.queryOnly=Ee.queryOnly,r.value.size=Ee.size,r.value.label=Ee.label,r.value.memo=Ee.memo,r.value.createdAt=0,r.value.updatedAt=0,Array.isArray(Ee.values)?r.value.values=Ee.values.join(`
`):r.value.values=Ee.values,await de(),await Q()}s.value.length&&await Pe(s.value[0])}async function se(pe,re=!1){if(!re){const{isConfirmed:ae}=await ge.fire({html:`确定删除"${o.value.label}"?`,icon:"question"});if(!ae)return}let Ee=-1;for(let ae=0;ae<s.value.length;ae++)if(s.value[ae].id===o.value.id){Ee=ae;break}s.value.splice(Ee,1),s.value.length?o.value=s.value[0]:o.value=xo(n.type),t("change",o.value),await fe({icon:"success",title:"删除成功!",timer:1500})}async function ie(pe){r.value=pe,await A()}async function de(){let pe=[];try{pe=await Co(r.value.values,r.value.type)}catch(D){await ge.fire({icon:"error",text:D.message});return}if(r.value.label=r.value.label.trim(),r.value.memo=r.value.memo.trim(),r.value.label===""){await fe({icon:"warning",text:"请输入标题!"});return}let re=-1;for(let D=0;D<s.value.length;D++)if(s.value[D].id===r.value.id&&r.value.id){re=D;break}const Ee=os();r.value.updatedAt=Ee,r.value.createdAt||(r.value.createdAt=Ee);let ae=[];for(let D=0;D<pe.length;D++)ae.push(pe[D].value);r.value.values=ae.join(`
`).trim(),console.log("[saveGroup]",r.value,re),re===-1?(s.value.push(r.value),fe({icon:"success",text:"添加成功"})):(s.value[re]=r.value,fe({icon:"success",text:"更新成功"}));const Ue=!o.value.createdAt;Ue&&(o.value=r.value),(r.value.id===o.value.id||Ue)&&t("change",r.value),await M()}async function Pe(pe){o.value=pe;const{id:re}=o.value;n.type===Re.suffix&&(n.config.suffixGroup=re,Yn("cleanerConfig",{suffixGroup:re},!0)),n.type===Re.keyword&&(n.config.keywordGroup=re,Yn("cleanerConfig",{keywordGroup:re},!0)),t("change",pe)}return(pe,re)=>{const Ee=fo("VDropdown");return G(),te("div",L1,[o.value.queryOnly?(G(),te("span",M1," 只查询 ")):Ke("",!0),o.value.createdAt?(G(),te("a",{key:1,class:"group-label",href:"javascript:void(0)",title:`当前使用的分组: ${o.value.label}`,onClick:re[0]||(re[0]=ae=>ie(o.value))},[u("span",null,[D1,le(" "+we(o.value.label),1)])],8,B1)):Ke("",!0),Ce(Ee,{ref_key:"form",ref:l,onHide:E,onShow:x,distance:5,"arrow-padding":100},{popper:Ve(()=>[u("form",N1,[u("fieldset",null,[u("div",null,[R1,oe(u("input",{type:"text","onUpdate:modelValue":re[1]||(re[1]=ae=>r.value.label=ae),id:"groupLabel",class:"pure-input-1-2",placeholder:"分组标题"},null,512),[[qe,r.value.label]]),le("    "),r.value.queryOnly?(G(),te("button",{key:0,type:"button",class:"pure-button button-small button-warning",onClick:re[2]||(re[2]=ae=>r.value.queryOnly=!1)},"已设置为仅用于查询 | 点击取消设置")):Ke("",!0),r.value.queryOnly?Ke("",!0):(G(),te("button",{key:1,type:"button",class:"pure-button button-small pure-button-primary",onClick:re[3]||(re[3]=ae=>r.value.queryOnly=!0)},"设置为仅用于查询"))]),u("div",null,[F1,oe(u("input",{type:"text","onUpdate:modelValue":re[4]||(re[4]=ae=>r.value.memo=ae),id:"groupMemo",placeholder:"分组备注"},null,512),[[qe,r.value.memo]])]),u("div",null,[u("label",j1,[le(" 特征列表 "),n.type===xe(Re).keyword?(G(),te("span",U1,[le(" 默认只匹配文件名。前面带"),u("b",null,we(xe(_r)),1),le("则只匹配目录名。 ")])):Ke("",!0),n.type===xe(Re).suffix?(G(),te("span",H1,[le(" 支持115自带筛选: "),(G(),te(De,null,dt(p,(ae,Ue)=>u("span",{class:"filter-label text-success",key:Ue,onClick:D=>y(ae)}," #"+we(ae),9,z1)),64)),q1])):Ke("",!0)]),oe(u("textarea",{id:"groupValues","onUpdate:modelValue":re[5]||(re[5]=ae=>r.value.values=ae),rows:"5",placeholder:"每行一个"},null,512),[[qe,r.value.values]])]),u("div",null,[V1,oe(u("input",{type:"number","onUpdate:modelValue":re[6]||(re[6]=ae=>r.value.size=ae),class:"pure-input-1-2",placeholder:"文件大小小于该数值才清理"},null,512),[[qe,r.value.size]])]),u("button",{type:"button",class:"pure-button pure-button-primary",onClick:de},we(r.value.createdAt?"更新":"添加"),1),le("      "),u("button",{type:"button",class:"pure-button",onClick:M},"取消")])])]),default:Ve(()=>[u("a",{href:"javascript:void(0)",class:"text-primary",onClick:ee},"新增分组")]),_:1},512),Ce(Ee,{ref_key:"list",ref:f,onHide:V,onShow:O,distance:5},{popper:Ve(()=>[u("div",W1,[s.value.length?Ke("",!0):(G(),te("h3",K1,[le(" 还没有添加任何分组。你可以: "),u("button",{type:"button",class:"pure-button button-small",onClick:ee},"添加"),le("   "),J1,le("   "),u("button",{type:"button",class:"pure-button button-small",onClick:U},"使用脚本内置"),G1,Y1])),u("table",X1,[Q1,u("tbody",null,[(G(!0),te(De,null,dt(s.value,(ae,Ue)=>(G(),te("tr",{key:Ue},[u("td",null,we(Ue+1),1),u("td",Z1,we(ae.queryOnly?"是":"否"),1),u("td",null,we(ae.label),1),u("td",null,we(ae.memo),1),u("td",null,we(ae.size),1),u("td",null,[u("button",{type:"button",class:"pure-button button-xsmall text-primary",onClick:D=>Pe(ae)},"载入",8,ex),le("   "),Ce(Ee,null,{popper:Ve(()=>[u("div",nx,[u("button",{type:"button",class:"pure-button button-error",onClick:D=>se(ae,!0)},"确定",8,ox)])]),default:Ve(()=>[tx]),_:2},1024),le("   "),u("button",{type:"button",class:"pure-button button-xsmall",onClick:D=>ie(ae)},"编辑",8,sx)])]))),128))])])])]),default:Ve(()=>[u("a",{href:"javascript:void(0)",class:"text-primary",onClick:T},"分组列表")]),_:1},512)])}}}),LA="",ix={class:"cloud115-eh-cleaner"},rx=[u("span",null,"清理文件",-1)],ax={key:0,class:"cloud115-eh-cleaner-help"},lx=[Ty('<div><h2>免责声明</h2><div><p>该工具仅作为学习测试用途,使用该工具造成的任何结果由使用人承担。</p></div><hr><h2>说明</h2><ul style="color:#f40;"><li class="text-primary">始于清理,但不止于清理!</li><li>* 仅对当前查看的目录及其子目录生效。</li><li>* 通过『新增分组 / 分组列表』管理你的清理特征。</li><li>* 建议整理自己的特征,也欢迎在交流中分享你的特征。</li><li>* 『只查询』按钮,只会进行查询。</li><li>* 『一键清理』是先查询,再进行删除!</li><li>* 由于搜索接口限制,如果某个关键词结果数量超过1万,可能会清理不完全,可以多执行几次清理。</li><li>* <b>清理期间,请保持当前页面处于激活状态!</b></li><li>* <b>请谨慎操作!请谨慎操作!请谨慎操作!</b></li></ul><hr><h3>按 后缀名 清理</h3><div><p>1. 点击『分组列表』,选择一个分组;</p><p>2. 确认一下后缀名和文件大小限制等的设定;</p><p>3. 点击『一键清理』按钮,耐心等待。</p></div><hr><h3>按 关键词 清理</h3><div> 基本同上,略。 <br><br><p>P.S. 关键词按『全包含』进行匹配,不区分大小写。</p><p>关键词`免费在线`,匹配文件名&quot;blabla-免费在线.mp4&quot;,<b class="text-danger">不匹配</b>文件名`blabla-免费的xxx在线.mp4`。</p><p>关键词`免费 在线`,匹配文件名&quot;blabla-免费在线.mp4&quot;,<b class="text-success">也匹配</b>文件名`blabla-免费的xxx在线.mp4`。</p><p class="text-danger">如需要 `免费 在线` 作为一个整体去匹配,可以使用`英文单/双引号`包裹,如`&quot;免费 在线&quot;`</p></div></div>',1)],cx={class:"header actions-bar"},ux=u("span",{class:"title"},"文件清理工具",-1),dx={type:"button",class:"pure-button button-success"},fx=u("i",{class:"file-type tp-folder",style:{}},null,-1),px=["disabled"],hx=["disabled"],mx=u("small",null,"毫秒",-1),gx=["disabled"],wx=u("br",null,null,-1),yx={class:"by-box by-suffix"},bx={class:"by-header"},vx=u("span",{class:"title"},[le("按"),u("b",null,"后缀名"),le("清理")],-1),_x={class:"pure-button-group",role:"group"},xx=["disabled"],Cx={class:"pure-table pure-table-bordered"},$x=u("thead",null,[u("tr",null,[u("th",{width:"25"},"#"),u("th",{width:"100"},"后缀名"),u("th",{width:"95"},"文件数量"),u("th",{width:"80"},"合计大小"),u("th",{width:"150"},"操作"),u("th",{width:"200"},"状态")])],-1),kx=["onClick"],Sx=["onClick"],Ex=["onClick"],Ax=u("br",null,null,-1),Px={class:"by-box by-keyword"},Ox={class:"by-header"},Ix=u("span",{class:"title"},[le("按"),u("b",null,"关键词"),le("清理")],-1),Tx={class:"pure-button-group",role:"group"},Lx=["disabled"],Mx={class:"pure-table pure-table-bordered"},Bx=u("thead",null,[u("tr",null,[u("th",{width:"25"},"#"),u("th",{width:"100"},"关键词"),u("th",{width:"95"},"文件/目录数量"),u("th",{width:"80"},"合计大小"),u("th",{width:"150"},"操作"),u("th",{width:"200"},"状态")])],-1),Dx=["href"],Nx={class:"file-type tp-folder"},Rx=["onClick"],Fx=["onClick"],jx=u("br",null,null,-1),Ux={class:"footer actions-bar"},Hx=u("span",{class:"title"},"文件清理工具",-1),zx={type:"button",class:"pure-button button-success"},qx=u("i",{class:"file-type tp-folder",style:{}},null,-1),Vx=Be({__name:"Cleaner",setup(e){const t=be(!1),n=be(!0),o=be(xo(Re.suffix)),s=be(xo(Re.keyword)),i=be({maxSize:5,matchName:!1}),r=be({maxSize:100,matchName:!0}),l=be([]),d=be([]),f=be(!1),p=be({initialized:!1,pageSize:1150,reqInterval:800,deleteSize:1150,...Xs("cleanerConfig",{})}),m=be(!0),y=be(""),x=be([]);async function E(D){D.data.type===Kn.OPEN_CLEANER&&(await A(D.data.payload),ei({type:Kn.CLEANER_OPENED},D.source))}Wt(async()=>{console.log("[Cleaner onMounted]"),p.value.initialized||(p.value.initialized=!0,Yn("cleanerConfig",p.value,!1)),window.addEventListener("message",E)}),Os(()=>{console.log("[Cleaner onUnmounted]"),window.removeEventListener("message",E)});async function A(D){t.value=!0;const J=await Zt();if(J==="0"||J===""){await M(),await ge.fire({icon:"warning",html:"<h2>不允许在根目录使用该工具!</h2>"});return}y.value&&y.value!==J&&(console.warn("目录变化,重置"),await Q(ft.reset),await ee(ft.reset)),x.value=await Im(),y.value=J}async function M(){t.value=!1}async function V(){Yn("cleanerConfig",p.value,!1),fe({icon:"success",text:"保存成功",timer:1800}),m.value=!0}async function O(D){const J={};D.isFilter?J.type=D.pattern:J.suffix=D.pattern;let N=unsafeWindow.frames[0];for(let me=0;me<unsafeWindow.frames.length;me++)if(unsafeWindow.frames[me].name==="wangpan"){N=unsafeWindow.frames[me];break}ei({type:Kn.INVOKE_FILTER,payload:J},N),await M(),fe({icon:"info",text:`已调用115筛选: ${D.value}`,timer:2500})}async function T(D,J){const{value:N}=await ge.fire({input:"textarea",title:D,html:"每行一个,最短两个字符。"+(J===Re.keyword?`<br>默认只匹配文件名,不匹配目录名。<br>使用 "<b>${_r}目录名关键词</b>" 格式指定只匹配目录名的关键词。`:""),width:620,inputPlaceholder:"每行一个,最短两个字符",inputAttributes:{"aria-label":"每行一个,最短两个字符"},showCancelButton:!0});return N!==void 0?N.trim():""}async function Q(D,J){let N="",me=[];switch(D){case ft.assign:N=J.trim(),N.trim()===""?l.value=[]:(me=await Co(N,Re.suffix),l.value=me);break;case ft.append:N=await T("添加后缀",Re.suffix),me=await Co(N,Re.suffix);const Se=[];l.value.forEach(Le=>Se.push(Le.value.toLowerCase())),me.forEach(Le=>{Se.includes(Le.value.toLowerCase())||l.value.push(Le)});break;case ft.cover:N=await T("覆盖后缀",Re.suffix),N.trim()!==""&&(me=await Co(N,Re.suffix),l.value=me);break;case ft.clear:l.value=[];break;case ft.reset:l.value.forEach(Le=>{Le.num=-1,Le.fileIds=[],Le.status=rt.none,Le.size=-1});break}}async function ee(D,J){let N="",me=[];switch(D){case ft.assign:N=J.trim(),N.trim()===""?d.value=[]:(me=await Co(N,Re.keyword),d.value=me);break;case ft.append:N=await T("添加关键词",Re.keyword),me=await Co(N,Re.keyword);const Se=[];d.value.forEach(Le=>Se.push(Le.value.toLowerCase())),me.forEach(Le=>{Se.includes(Le.value.toLowerCase())||d.value.push(Le)});break;case ft.cover:N=await T("覆盖关键词",Re.keyword),N.trim()!==""&&(me=await Co(N,Re.keyword),d.value=me);break;case ft.clear:d.value=[];break;case ft.reset:d.value.forEach(Le=>{Le.num=-1,Le.fileIds=[],Le.status=rt.none,Le.size=-1});break}}async function U(D){if(console.log("[cleanBySuffix]",D),await Q(ft.reset),!l.value.length){await ge.fire({icon:"warning",text:"请先设置后缀!"});return}if(!D){const{isConfirmed:J}=await ge.fire({icon:"warning",html:'请在清理前确认"后缀和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!J)return}f.value=!0;try{for(let J=0;J<l.value.length;J++){const N=l.value[J];await se(N,D,!1,!0),await jt(p.value.reqInterval)}}catch(J){console.error(J)}f.value=!1}async function se(D,J,N,me){if(console.log("[cleanBySuffixSingle]",D,J),!J&&!me){const{isConfirmed:Se}=await ge.fire({icon:"warning",html:`确认执行条件 "后缀: <b class="text-primary">${D.pattern}</b>, 小于: <b>${i.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!Se)return}try{if(!N){f.value=!0,D.fileIds=[],D.size=-1,D.num=-1,D.status=rt.prepare;const Se=await Pe(D);D.status=rt.prepared;const{fileIds:Le,size:Xe}=await Xf(D,Se,i.value);D.fileIds=Le,D.size=Xe,D.num=Le.length,f.value=!1}if(!J)if(D.num>0){D.status=rt.deleting,f.value=!0;const Se=await Bc(y.value,D.fileIds,p.value.deleteSize,1e3);f.value=!1,Se>0?D.status=rt.success+` / 数量 <= ${Se}`:D.status=rt.failed}else D.status=rt.success+" / 无"}catch(Se){console.error(Se),f.value=!1,await ge.fire({title:"cleanBySuffixSingle - 发生错误",html:Se.toString()})}}async function ie(D){if(console.log("[cleanByKeyword]",D),await ee(ft.reset),!d.value.length){await ge.fire({icon:"warning",text:"请先设置关键词!"});return}if(!D){const{isConfirmed:J}=await ge.fire({icon:"warning",html:'请在清理前确认"关键词和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!J)return}f.value=!0;try{for(let J=0;J<d.value.length;J++){const N=d.value[J];await de(N,D,!1,!0),await jt(p.value.reqInterval)}}catch(J){console.error(J)}f.value=!1}async function de(D,J,N,me){if(console.log("[cleanByKeywordSingle]",D,J),!J&&!me){const{isConfirmed:Se}=await ge.fire({icon:"warning",html:`确认执行条件 "关键词: <b class="text-primary">${D.pattern}</b>, 小于: <b class="text-primary">${r.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!Se)return}try{if(!N){f.value=!0,D.fileIds=[],D.size=-1,D.num=-1,D.status=rt.prepare;const Se=await pe(D);D.status=rt.prepared;const{fileIds:Le,size:Xe,num:Qe}=await Xf(D,Se,r.value);D.fileIds=Le,D.size=Xe,D.num=Qe,f.value=!1}if(!J)if(D.num>0){D.status=rt.deleting,f.value=!0;const Se=await Bc(y.value,D.fileIds,p.value.deleteSize,1e3);f.value=!1,Se>0?D.status=rt.success+` / 数量 <= ${Se}`:D.status=rt.failed,D.num>9e3&&(console.warn("[cleanByKeywordSingle] 补充处理..."),await de(D,J,!1,!0))}else D.status=rt.success+" / 无"}catch(Se){console.error(Se),f.value=!1;let Le=!0;const Xe={title:"cleanByKeywordSingle - 发生错误",html:Se.toString()};Se instanceof Gr&&(D.status=rt.prepareFailed+` / ${Se.message}`,Se instanceof Oc&&(Xe.timer=2e3,Le=!1)),Le?await ge.fire(Xe):ge.fire(Xe)}}async function Pe(D){const J=await Zt(),N=Zl({cid:J,limit:p.value.pageSize});D.isFilter?N.type=D.pattern:N.suffix=D.value;const me=await Mc(N,p.value.reqInterval);return console.log("[files]",me),me}async function pe(D){const J=await Zt(),N=ih({search_value:bl(D.pattern),cid:J,limit:p.value.pageSize}),me=await vm(N,p.value.reqInterval,!0);return console.log("[files]",me),me}function re(D){return Qr({search_value:bl(D.pattern),cid:y.value},x.value[x.value.length-1])}async function Ee(D){console.log("[onSuffixGroupChange]",D),o.value=D,i.value.maxSize=D.size,await Q(ft.assign,D.values)}async function ae(D){console.log("[onKeywordGroupChange]",D),s.value=D,r.value.maxSize=D.size,await ee(ft.assign,D.values)}async function Ue(){document.querySelector(".cloud115-eh-cleaner-drawer").scrollTo(0,0)}return(D,J)=>oe((G(),te("span",ix,[mn(D.$slots,"default",{},()=>[u("span",{class:"btn-open pure-button pure-button-primary",onClick:A},rx)]),t.value?(G(),te("div",ax,lx)):Ke("",!0),oe(u("div",{class:Ge(["cloud115-eh-cleaner-drawer",{loading:f.value}])},[u("div",cx,[ux,u("span",{class:"close"},[u("button",{type:"button",class:"pure-button button-error",onClick:M},"关闭")]),u("button",dx,[u("b",null,[fx,le(" "+we(x.value.join(" / ")),1)])])]),u("div",null,[le(" 请求分页: "),oe(u("input",{type:"number","onUpdate:modelValue":J[0]||(J[0]=N=>p.value.pageSize=N),min:30,max:1150,disabled:m.value},null,8,px),[[qe,p.value.pageSize]]),le(" 请求间隔: "),oe(u("input",{type:"number","onUpdate:modelValue":J[1]||(J[1]=N=>p.value.reqInterval=N),min:200,max:1e6,disabled:m.value},null,8,hx),[[qe,p.value.reqInterval]]),mx,le(" 每次删除: "),oe(u("input",{type:"number","onUpdate:modelValue":J[2]||(J[2]=N=>p.value.deleteSize=N),min:1,max:1150,disabled:m.value},null,8,gx),[[qe,p.value.deleteSize]]),u("span",{class:"config-toggle",onClick:J[3]||(J[3]=N=>m.value=!m.value)},"设置参数"),m.value?Ke("",!0):(G(),te("button",{key:0,type:"button",class:"pure-button pure-button-primary button-small",onClick:V}," 保存配置 "))]),wx,u("div",yx,[u("div",bx,[vx,le("      "),u("div",_x,[u("button",{type:"button",class:"pure-button",onClick:J[4]||(J[4]=N=>U(!0))},"只查询"),u("button",{type:"button",class:"pure-button pure-button-primary",onClick:J[5]||(J[5]=N=>U(!1)),disabled:o.value.queryOnly}," 一键清理 ",8,xx)]),le(" 小于 "),oe(u("input",{type:"number","onUpdate:modelValue":J[6]||(J[6]=N=>i.value.maxSize=N),class:"filter-size"},null,512),[[qe,i.value.maxSize]]),le(" MB (0表示不限制) "),Ce(Qf,{type:xe(Re).suffix,"storage-key":"suffixGroups",onChange:Ee,config:p.value},null,8,["type","config"])]),u("table",Cx,[$x,u("tbody",null,[(G(!0),te(De,null,dt(l.value,(N,me)=>(G(),te("tr",{key:me,class:Ge({active:xe(Gf)(N),"is-filter":N.isFilter})},[u("td",null,we(me+1),1),u("td",null,[u("a",{href:"javascript:void(0)",class:"pattern",onClick:Se=>O(N),title:"筛选"},we(N.value),9,kx)]),u("td",null,we(N.num>=0?N.num:""),1),u("td",null,we(N.size>0?xe(Qs)(N.size):""),1),u("td",null,[u("button",{type:"button",class:"pure-button button-xsmall",onClick:Se=>se(N,!0,!1,!0)},"查询",8,Sx),le("   "),N.num>0&&!o.value.queryOnly?(G(),te("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:Se=>se(N,!1,!0,!1)},"清理",8,Ex)):Ke("",!0)]),u("td",null,we(N.status),1)],2))),128))])])]),Ax,u("div",Px,[u("div",Ox,[Ix,le("      "),u("div",Tx,[u("button",{type:"button",class:"pure-button",onClick:J[7]||(J[7]=N=>ie(!0))},"只查询"),u("button",{type:"button",class:"pure-button pure-button-primary",onClick:J[8]||(J[8]=N=>ie(!1)),disabled:s.value.queryOnly}," 一键清理 ",8,Lx)]),le(" 小于 "),oe(u("input",{type:"number","onUpdate:modelValue":J[9]||(J[9]=N=>r.value.maxSize=N),class:"filter-size"},null,512),[[qe,r.value.maxSize]]),le(" MB (0表示不限制) "),Ce(Qf,{type:xe(Re).keyword,"storage-key":"keywordGroups",onChange:ae,config:p.value},null,8,["type","config"])]),u("table",Mx,[Bx,u("tbody",null,[(G(!0),te(De,null,dt(d.value,(N,me)=>(G(),te("tr",{key:me,class:Ge({active:xe(Gf)(N),"is-dir":N.forDir})},[u("td",null,we(me+1),1),u("td",null,[u("a",{href:re(N),target:"_blank",class:"pattern",title:"搜索"},[oe(u("i",Nx,null,512),[[Kt,N.forDir]]),le(" "+we(N.pattern),1)],8,Dx)]),u("td",null,we(N.num>=0?N.num:""),1),u("td",null,we(N.size>0?xe(Qs)(N.size):""),1),u("td",null,[u("button",{type:"button",class:"pure-button button-xsmall",onClick:Se=>de(N,!0,!1,!0)},"查询",8,Rx),le("   "),N.num>0&&!s.value.queryOnly?(G(),te("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:Se=>de(N,!1,!0,!1)}," 清理 ",8,Fx)):Ke("",!0)]),u("td",null,we(N.status),1)],2))),128))])])]),jx,u("div",Ux,[Hx,u("span",{class:"close"},[u("button",{type:"button",class:"pure-button button-error",onClick:M},"关闭")]),u("button",zx,[u("b",null,[qx,le(" "+we(x.value.join(" / ")),1)])]),le("     "),u("button",{type:"button",class:"pure-button button-small",onClick:Ue}," 回到顶部 ")])],2),[[Kt,t.value]])],512)),[[Kt,n.value]])}}),DA="",NA="";async function Wx(){const{host:e,search:t}=location;e==="115.com"&&(console.log("[Cleaner] running..."),t.includes("ct=file")?await Kx():await Jx())}async function Zf(){return typeof window.$<"u"}async function Kx(){await Zf()||console.log("[Cleaner injectTrigger] JQuery not found");const e="cloud115Cleaner";(await Xt("#js_path_add_dir")).after(`<span id="${e}"></span>`),wo(x1).mount(`#${e}`)}async function Jx(){await Zf()||console.log("[Cleaner injectUI] JQuery not found");const e="cloud115Cleaner";$("body").append(`<div id="${e}"/>`);const t=wo(Vx);t.use(wl),t.mount(`#${e}`),Dl("清理文件",async()=>{ei({type:Kn.OPEN_CLEANER},window.parent)})}async function Gx(){const e=await vr(),{host:t,search:n}=location;!/115\.com$/.test(t)||(p1(e),u1(e),d1(e),f1(e),h1(e))}const ep=Symbol("addTab"),tp=Symbol("updateTab"),np=Symbol("deleteTab"),op=Symbol("tabsProvider");function xr(e,t){const n=As(e,t);if(typeof n>"u")throw new Error(`Could not resolve ${e.description}`);return n}const Yx=["data-tab-id","aria-hidden"],Jn=Be({__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,o=be(!1),s=xr(op),i=xr(ep),r=xr(tp),l=xr(np),d=n.prefix+n.name+n.suffix,f=n.id?n.id:n.name.toLowerCase().replace(/ /g,"-"),p=f+"-pane",m=zo(()=>"#"+(n.isDisabled?"":f));return ht(()=>s.activeTabHash,()=>{o.value=m.value===s.activeTabHash}),ht(()=>Object.assign({},n),()=>{r(f,{name:n.name,header:n.prefix+n.name+n.suffix,isDisabled:n.isDisabled,hash:m.value,index:s.tabs.length,computedId:f,paneId:p,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),Vt(()=>{i({name:n.name,header:d,isDisabled:n.isDisabled,hash:m.value,index:s.tabs.length,computedId:f,paneId:p,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),Wu(()=>{l(f)}),t({header:d,computedId:f,paneId:p,hash:m,isActive:o}),(y,x)=>oe((G(),te("section",{ref:"tab",id:p,"data-tab-id":xe(f),"aria-hidden":!o.value,class:Ge(e.panelClass),role:"tabpanel",tabindex:"-1"},[mn(y.$slots,"default")],10,Yx)),[[Kt,o.value]])}});class Xx{get(t){const n=localStorage.getItem(t);if(n===null)return null;const o=JSON.parse(n);return o?new Date(o.expires)<new Date?(localStorage.removeItem(t),null):o.value:null}set(t,n,o){const s=new Date().getTime(),i=new Date(s+o*6e4);localStorage.setItem(t,JSON.stringify({value:n,expires:i}))}}const sp=new Xx,Qx=["aria-controls","aria-selected","href","onClick","innerHTML"],Zx=Be({__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 o=e,s=Di({activeTabHash:"",lastActiveTabHash:"",tabs:[]});Es(op,s),Es(ep,l=>{s.tabs.push(l)}),Es(tp,(l,d)=>{const f=s.tabs.findIndex(p=>p.computedId===l);d.isActive=s.tabs[f].isActive,s.tabs[f]=d}),Es(np,l=>{const d=s.tabs.findIndex(f=>f.computedId===l);s.tabs.splice(d,1)});const i=(l,d)=>{d&&!o.options.useUrlFragment&&d.preventDefault();const f=r(l);if(!f)return;if(d&&f.isDisabled){d.preventDefault();return}if(s.lastActiveTabHash===f.hash){n("clicked",{tab:f});return}if(s.tabs.forEach(m=>{m.isActive=m.hash===f.hash}),n("changed",{tab:f}),s.lastActiveTabHash=s.activeTabHash=f.hash,o.cacheLifetime<=0)return;const p=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`;sp.set(p,f.hash,o.cacheLifetime)},r=l=>s.tabs.find(d=>d.hash===l);return Wt(()=>{if(s.tabs.length){if(window.addEventListener("hashchange",()=>i(window.location.hash)),r(window.location.hash)){i(window.location.hash);return}if(o.cacheLifetime>0){const l=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`,d=sp.get(l);if(d!==null&&r(d)){i(d);return}if(o.options.defaultTabHash&&r("#"+o.options.defaultTabHash)){i("#"+o.options.defaultTabHash);return}}i(s.tabs[0].hash)}}),t({...sw(s),selectTab:i,findTab:r}),(l,d)=>(G(),te("div",{class:Ge(e.wrapperClass)},[u("ul",{role:"tablist",class:Ge(e.navClass)},[(G(!0),te(De,null,dt(s.tabs,(f,p)=>{var m,y;return G(),te("li",{key:p,class:Ge([(m=f.navItemClass)!=null?m:e.navItemClass,f.isDisabled?e.navItemDisabledClass:"",f.isActive?e.navItemActiveClass:f.isDisabled?"":e.navItemInactiveClass]),role:"presentation"},[u("a",{role:"tab",class:Ge([(y=f.navItemLinkClass)!=null?y:e.navItemLinkClass,f.isDisabled?e.navItemLinkDisabledClass:"",f.isActive?e.navItemLinkActiveClass:f.isDisabled?"":e.navItemLinkInactiveClass]),"aria-controls":f.paneId,"aria-selected":f.isActive,href:f.hash,onClick:x=>i(f.hash,x),innerHTML:f.header,tabindex:"0"},null,10,Qx)],2)}),128))],2),u("div",{class:Ge(e.panelsWrapperClass)},[mn(l.$slots,"default")],2)],2))}}),eC={class:"ce-config ce-basic-config"},tC={class:"pure-form pure-form-aligned"},nC=u("legend",null,"UI优化",-1),oC={class:"pure-control-group"},sC=u("label",{for:"basic_hideSidebar"},"隐藏侧边栏",-1),iC=u("div",{class:"pure-form-message text-success"}," 虽然现在官方也有手动隐藏侧边栏的功能,不过刷新页面后会恢复显示。该设置可以一直隐藏侧边栏。 ",-1),rC={class:"pure-control-group"},aC=u("label",{for:"basic_showOfflineEntry"},"显示云下载入口按钮",-1),lC=u("div",{class:"pure-form-message text-success"}," 在「存储 - 文件首页」顶部工具栏显示「云下载」入口按钮。 ",-1),cC={class:"pure-control-group"},uC=u("label",{for:"basic_transferDefaultOffline"},"近期传输默认云下载",-1),dC=u("div",{class:"pure-form-message text-success"}," 点击左边栏的「近期传输」默认进入「云下载」页面。 ",-1),fC=u("legend",null,"隐私保护",-1),pC={class:"pure-control-group"},hC=u("label",{for:"basic_hideWatermark"},"隐藏水印",-1),mC=u("div",{class:"pure-form-message text-success"}," 网页水印是肉眼看不到的,但通过一些处理可以看到,水印内容是你的账号标识。 如果你需要截图并发给别人,可以考虑开启隐藏。 ",-1),gC={class:"pure-control-group"},wC=u("label",{for:"basic_fakeAccountEnabled"},"隐藏身份",-1),yC=u("div",{class:"pure-form-message text-success"}," 修改右上角显示的账号信息,不会真的修改。编辑后即可生效,无需刷新页面。 ",-1),bC={class:"pure-control-group"},vC=u("label",null,"账号ID",-1),_C={class:"pure-control-group"},xC=u("label",null,"用户名",-1),CC={class:"pure-control-group"},$C=u("label",null,"头像",-1),kC={class:"avatar-preview"},SC=["src"],EC={class:"pure-control-group"},AC=u("label",null,"VIP等级",-1),PC=Be({__name:"Config",async setup(e){let t,n;const o=be(([t,n]=yn(()=>vr()),t=await t,n(),t));return Vt(async()=>{}),ht(o,an(async s=>{await c1(s),fe({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:_o.basicConfigChange,body:JSON.parse(JSON.stringify(s))})},500),{deep:!0}),(s,i)=>(G(),te("div",eC,[u("form",tC,[u("fieldset",null,[nC,u("div",oC,[sC,oe(u("input",{id:"basic_hideSidebar",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.hideSidebar=r)},null,512),[[Te,o.value.hideSidebar]]),iC]),u("div",rC,[aC,oe(u("input",{id:"basic_showOfflineEntry",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=r=>o.value.showOfflineEntry=r)},null,512),[[Te,o.value.showOfflineEntry]]),lC]),u("div",cC,[uC,oe(u("input",{id:"basic_transferDefaultOffline",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>o.value.transferDefaultOffline=r)},null,512),[[Te,o.value.transferDefaultOffline]]),dC]),fC,u("div",pC,[hC,oe(u("input",{id:"basic_hideWatermark",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>o.value.hideWatermark=r)},null,512),[[Te,o.value.hideWatermark]]),mC]),u("div",gC,[wC,oe(u("input",{id:"basic_fakeAccountEnabled",type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=r=>o.value.fakeAccountEnabled=r)},null,512),[[Te,o.value.fakeAccountEnabled]]),yC]),u("div",bC,[vC,oe(u("input",{"onUpdate:modelValue":i[5]||(i[5]=r=>o.value.fakeAccountId=r),placeholder:"自定义账号ID",class:"pure-input-2-3"},null,512),[[qe,o.value.fakeAccountId]])]),u("div",_C,[xC,oe(u("input",{"onUpdate:modelValue":i[6]||(i[6]=r=>o.value.fakeAccountName=r),placeholder:"自定义用户名",class:"pure-input-2-3"},null,512),[[qe,o.value.fakeAccountName]])]),u("div",CC,[$C,oe(u("input",{"onUpdate:modelValue":i[7]||(i[7]=r=>o.value.fakeAccountAvatar=r),placeholder:"支持网络图片地址或base64编码",class:"pure-input-2-3"},null,512),[[qe,o.value.fakeAccountAvatar]]),u("span",kC,[o.value.fakeAccountAvatar?(G(),te("img",{key:0,src:o.value.fakeAccountAvatar,alt:"头像预览",width:"20",height:"20"},null,8,SC)):Ke("",!0)])]),u("div",EC,[AC,oe(u("input",{"onUpdate:modelValue":i[8]||(i[8]=r=>o.value.fakeAccountVip=r),placeholder:"自定义VIP等级",class:"pure-input-2-3"},null,512),[[qe,o.value.fakeAccountVip]])])])])]))}}),RA="",OC={class:"pure-form pure-form-aligned"},IC=["disabled"],TC={class:"pure-control-group"},LC=u("label",null,"地址",-1),MC={class:"pure-control-group"},BC=u("label",null,"资源根路径",-1),DC={class:"pure-control-group"},NC=u("label",null,"备注",-1),RC=Be({__name:"ConfigItem",props:{config:null,deletable:{type:Boolean}},emits:["change","delete","activate"],setup(e,{emit:t}){const n=e;Vt(async()=>{});function o(){n.config.active=!0,t("activate",n.config)}function s(){t("delete")}return ht(n.config,an(async i=>{t("change",i)},500),{deep:!0}),(i,r)=>(G(),te("div",{class:Ge(["ce-clouddrive-config-item",{active:e.config.active}])},[u("form",OC,[u("fieldset",null,[u("legend",null,[u("button",{type:"button",class:Ge(["pure-button button-small",[e.config.active?"button-success":"pure-button-primary"]]),onClick:o,disabled:e.config.active},we(e.config.active?"当前使用该配置":"使用该配置"),11,IC),e.deletable?(G(),te("button",{key:0,type:"button",class:"pure-button button-error button-small",onClick:s}," 删除 ")):Ke("",!0)]),u("div",TC,[LC,oe(u("input",{"onUpdate:modelValue":r[0]||(r[0]=l=>e.config.url=l),placeholder:"CloudDrive服务地址,如「http://localhost:19798」",class:"pure-input-2-3"},null,512),[[qe,e.config.url]])]),u("div",MC,[BC,oe(u("input",{"onUpdate:modelValue":r[1]||(r[1]=l=>e.config.root=l),placeholder:"即当前115账号在CloudDrive中的资源名称,如「115」",class:"pure-input-2-3"},null,512),[[qe,e.config.root]])]),u("div",DC,[NC,oe(u("input",{"onUpdate:modelValue":r[2]||(r[2]=l=>e.config.memo=l),placeholder:"备注信息",class:"pure-input-2-3"},null,512),[[qe,e.config.memo]])])])])],2))}}),FA="",FC={class:"ce-config ce-clouddrive-config"},jC=u("div",{class:"ce-tips cd-tips"},[u("p",null,[u("a",{href:"https://www.clouddrive2.com/?ref=cloud115-enhancer",rel:"noreferer",target:"_blank",class:"text-bold text-primary"},"CloudDrive"),le(" 是一个强大的多云盘管理工具,为用户提供包含云盘本地挂载的一站式的多云盘解决方案。")]),u("p",null,"本脚本主要是借助CloudDrive实现原码视频播放的功能(具体可以在「播放菜单」面板中查看)。")],-1),UC={class:"ce-list"},HC=u("div",{class:"ce-tips"},[u("p",{class:"text-primary"}," 暂时发现IINA是支持`file://`协议的,这时候播放器可以读取到同目录的字幕文件。 配置地址示例: file:///Users/you/115,根路径不用填。 ")],-1),zC=u("div",{class:"ce-tips"}," 编辑配置后,请记得点击「保存全部配置」。 ",-1),qC={class:"ce-actions"},VC=["disabled"],WC=Be({__name:"Config",async setup(e){let t,n;const o=be(([t,n]=yn(()=>Kl()),t=await t,n(),t));be("2BWIZPj3"),Vt(async()=>{});async function s(){await Jl(o.value),fe({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}async function i(){o.value.push(Ir())}async function r(d,f){const{isConfirmed:p}=await ge.fire({icon:"warning",html:`确定要删除第 ${f+1} 个配置「${d.url}」吗?`});!p||(o.value.splice(f,1),await s(),fe({icon:"success",title:`「${d.url}」已删除!`}))}async function l(d,f){d.forEach((p,m)=>{p.active=m===f}),await Jl(d),fe({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}return(d,f)=>(G(),te("div",FC,[jC,u("div",UC,[(G(!0),te(De,null,dt(o.value,(p,m)=>(G(),Rt(RC,{key:m,config:p,index:m,deletable:o.value.length>1,onDelete:y=>r(p,m),onActivate:y=>l(o.value,m)},null,8,["config","index","deletable","onDelete","onActivate"]))),128))]),HC,zC,u("div",qC,[u("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:s,disabled:!o.value.length}," 保存全部配置 ",8,VC),le("      "),u("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:i}," 添加配置 ")])]))}}),jA="",KC={class:"ce-config ce-list-config"},JC={class:"pure-form pure-form-aligned"},GC={class:"pure-control-group"},YC=u("label",{for:"sizeSorter"},"大小排序",-1),XC=u("div",{class:"pure-form-message text-success"},[u("div",null,"在官方的「大小」列头部增加「排序」按钮,可以获取文件夹的大小,然后进行排序。"),u("div",null,"请注意该功能只会对当前加载的文件进行排序,如果有多页文件并需要对全部文件进行排序,请先点击「加载全部」后再使用该排序功能。")],-1),QC={class:"pure-control-group"},ZC=u("label",{for:"sizeSorterDirAttrInterval"},"大小排序-获取目录大小间隔",-1),e$=u("div",{class:"pure-form-message text-success"}," 「大小排序」功能需要获取文件夹大小,这个设置是获取文件夹大小的间隔时间,单位是豪秒。 ",-1),t$={class:"pure-control-group"},n$=u("label",{for:"showSha1"},"显示文件SHA1",-1),o$=u("div",{class:"pure-form-message text-success"}," 在文件名下方显示文件SHA1,点击可以复制。 ",-1),s$={class:"pure-control-group"},i$=u("label",{for:"showFolderSizeButton"},"显示文件夹获取大小按钮",-1),r$=u("div",{class:"pure-form-message text-success"}," 点击按钮可以获取单个文件夹的大小。 ",-1),a$=Be({__name:"Config",async setup(e){let t,n;const o=be(([t,n]=yn(()=>tr()),t=await t,n(),t));return Vt(async()=>{}),ht(o,an(async s=>{await Lb(s),fe({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:_o.basicConfigChange,body:JSON.parse(JSON.stringify(s))})},500),{deep:!0}),(s,i)=>(G(),te("div",KC,[u("form",JC,[u("fieldset",null,[u("div",GC,[YC,oe(u("input",{id:"sizeSorter",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.sizeSorter=r)},null,512),[[Te,o.value.sizeSorter]]),XC]),u("div",QC,[ZC,oe(u("input",{id:"sizeSorterDirAttrInterval",type:"number","onUpdate:modelValue":i[1]||(i[1]=r=>o.value.sizeSorterDirAttrInterval=r),min:"50",max:"999999"},null,512),[[qe,o.value.sizeSorterDirAttrInterval]]),le(" 毫秒 "),e$]),u("div",t$,[n$,oe(u("input",{id:"showSha1",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>o.value.showSha1=r)},null,512),[[Te,o.value.showSha1]]),o$]),u("div",s$,[i$,oe(u("input",{id:"showFolderSizeButton",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>o.value.showFolderSizeButton=r)},null,512),[[Te,o.value.showFolderSizeButton]]),r$])])])]))}}),UA="",l$={class:"menu-config-block"},c$={class:"pure-form pure-form-stacked"},u$=u("legend",null,"全局设置",-1),d$={class:"pure-control-group"},f$=u("label",{for:"basic_enabled"},"启用",-1),p$={class:"pure-control-group"},h$=u("label",{for:"basic_hideSelectionMenuLabel"},"隐藏顶部菜单文本",-1),m$={class:"pure-control-group"},g$=u("label",{for:"basic_enableInSearch"},"在搜索结果页中启用",-1),w$=Be({__name:"BasicConfig",props:{config:null},setup(e,{emit:t}){const n=e;return(o,s)=>(G(),te("div",l$,[u("form",c$,[u("fieldset",null,[u$,u("div",d$,[f$,oe(u("input",{id:"basic_enabled",type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=i=>n.config.enabled=i)},null,512),[[Te,n.config.enabled]])]),u("div",p$,[h$,oe(u("input",{id:"basic_hideSelectionMenuLabel",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=i=>n.config.hideSelectionMenuLabel=i)},null,512),[[Te,n.config.hideSelectionMenuLabel]])]),u("div",m$,[g$,oe(u("input",{id:"basic_enableInSearch",type:"checkbox","onUpdate:modelValue":s[2]||(s[2]=i=>n.config.enableInSearch=i)},null,512),[[Te,n.config.enableInSearch]])])])])]))}}),y$={class:"menu-config-block"},b$={class:"pure-form pure-form-stacked"},v$=u("label",{for:"listItemHover_enabled"},"启用",-1),_$=u("label",{for:"listItemHover_openInNewTab"},"新标签页打开",-1),x$=u("label",{for:"listItemHover_search",class:"text-primary"},"搜索",-1),C$=u("label",{for:"listItemHover_play",class:"text-primary"},"播放",-1),$$=u("label",{for:"listItemHover_copyFileName"},"名称路径",-1),k$=Be({__name:"ListItemHoverConfig",props:{config:null},setup(e){return(t,n)=>(G(),te("div",y$,[u("form",b$,[u("fieldset",null,[u("legend",null,we(xe(ss).listItemHover),1),u("div",null,[v$,oe(u("input",{id:"listItemHover_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Te,e.config.enabled]])]),u("div",null,[_$,oe(u("input",{id:"listItemHover_openInNewTab",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.openInNewTab=o)},null,512),[[Te,e.config.openInNewTab]])]),u("div",null,[x$,oe(u("input",{id:"listItemHover_search",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.search=o)},null,512),[[Te,e.config.search]])]),u("div",null,[C$,oe(u("input",{id:"listItemHover_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[Te,e.config.play]])]),u("div",null,[$$,oe(u("input",{id:"listItemHover_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[Te,e.config.copyNames]])])])])]))}}),S$={class:"menu-config-block"},E$={class:"pure-form pure-form-stacked"},A$=u("label",{for:"listItemContext_enabled"},"启用",-1),P$=u("label",{for:"listItemContext_copyFileName"},"名称路径",-1),O$=Be({__name:"ListItemContextConfig",props:{config:null},setup(e){return(t,n)=>(G(),te("div",S$,[u("form",E$,[u("fieldset",null,[u("legend",null,we(xe(ss).listItemContext),1),u("div",null,[A$,oe(u("input",{id:"listItemContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Te,e.config.enabled]])]),u("div",null,[P$,oe(u("input",{id:"listItemContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.copyNames=o)},null,512),[[Te,e.config.copyNames]])])])])]))}}),I$={class:"menu-config-block"},T$={class:"pure-form pure-form-stacked"},L$=u("label",{for:"selection_enabled"},"启用",-1),M$=u("label",{for:"selection_moveToSelfNameDir"},"移动到同名目录",-1),B$=u("label",{for:"selection_copyFileName"},"名称路径",-1),D$=Be({__name:"SelectionConfig",props:{config:null},setup(e){return(t,n)=>(G(),te("div",I$,[u("form",T$,[u("fieldset",null,[u("legend",null,we(xe(ss).selection),1),u("div",null,[L$,oe(u("input",{id:"selection_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Te,e.config.enabled]])]),u("div",null,[M$,oe(u("input",{id:"selection_moveToSelfNameDir",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.moveToSelfNameDir=o)},null,512),[[Te,e.config.moveToSelfNameDir]])]),u("div",null,[B$,oe(u("input",{id:"selection_copyFileName",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.copyNames=o)},null,512),[[Te,e.config.copyNames]])])])])]))}}),N$={class:"menu-config-block"},R$={class:"pure-form pure-form-stacked"},F$=u("label",{for:"dirContext_enabled"},"启用",-1),j$=u("label",{for:"dirContext_rename"},"重命名",-1),U$=u("label",{for:"dirContext_delete"},"删除",-1),H$=u("label",{for:"dirContext_play"},"播放全部",-1),z$=u("label",{for:"dirContext_copyFileName"},"名称路径",-1),q$=u("label",{for:"dirContext_move"},"移动",-1),V$=u("label",{for:"dirContext_copy"},"复制",-1),W$=u("label",{for:"dirContext_copyTo"},"复制到",-1),K$=u("label",{for:"dirContext_viewProperties"},"查看属性",-1),J$=u("label",{for:"dirContext_showSubFolderSize"},"子文件夹大小",-1),G$=Be({__name:"DirContextConfig",props:{config:null},setup(e){return(t,n)=>(G(),te("div",N$,[u("form",R$,[u("fieldset",null,[u("legend",null,we(xe(ss).dirContext),1),u("div",null,[F$,oe(u("input",{id:"dirContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Te,e.config.enabled]])]),u("div",null,[j$,oe(u("input",{id:"dirContext_rename",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.rename=o)},null,512),[[Te,e.config.rename]])]),u("div",null,[U$,oe(u("input",{id:"dirContext_delete",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.delete=o)},null,512),[[Te,e.config.delete]])]),u("div",null,[H$,oe(u("input",{id:"dirContext_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[Te,e.config.play]])]),u("div",null,[z$,oe(u("input",{id:"dirContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[Te,e.config.copyNames]])]),u("div",null,[q$,oe(u("input",{id:"dirContext_move",type:"checkbox","onUpdate:modelValue":n[5]||(n[5]=o=>e.config.move=o)},null,512),[[Te,e.config.move]])]),u("div",null,[V$,oe(u("input",{id:"dirContext_copy",type:"checkbox","onUpdate:modelValue":n[6]||(n[6]=o=>e.config.copy=o)},null,512),[[Te,e.config.copy]])]),u("div",null,[W$,oe(u("input",{id:"dirContext_copyTo",type:"checkbox","onUpdate:modelValue":n[7]||(n[7]=o=>e.config.copyTo=o)},null,512),[[Te,e.config.copyTo]])]),u("div",null,[K$,oe(u("input",{id:"dirContext_viewProperties",type:"checkbox","onUpdate:modelValue":n[8]||(n[8]=o=>e.config.viewProp=o)},null,512),[[Te,e.config.viewProp]])]),u("div",null,[J$,oe(u("input",{id:"dirContext_showSubFolderSize",type:"checkbox","onUpdate:modelValue":n[9]||(n[9]=o=>e.config.showSubFolderSize=o)},null,512),[[Te,e.config.showSubFolderSize]])])])])]))}}),Y$={class:"official-menu-config"},X$={class:"pure-form pure-form-stacked"},Q$=["for"],Z$=["id","onUpdate:modelValue"],e2=Be({__name:"OfficialMenuConfig",setup(e){const t=be([]),n=be(!1);return Vt(async()=>{t.value=await Zd(),console.log("official menu groups",t.value,location.href)}),Wt(()=>{document.body.addEventListener("click",()=>{n.value||(n.value=!0)})}),ht(t,an(async o=>{if(!n.value)return;const s=await Qd(o);await Xd(s),fe({icon:"success",title:"官方菜单设置已保存,刷新页面生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(o,s)=>(G(),te("div",Y$,[(G(!0),te(De,null,dt(t.value,(i,r)=>(G(),te("div",{key:r,class:"menu-config-block"},[u("form",X$,[u("fieldset",null,[u("legend",null,we(i.label),1),(G(!0),te(De,null,dt(i.items,(l,d)=>(G(),te("div",{key:d},[u("label",{for:`m_${r}_${d}_enabled`},we(l.label),9,Q$),oe(u("input",{id:`m_${r}_${d}_enabled`,type:"checkbox","onUpdate:modelValue":f=>l.enabled=f},null,8,Z$),[[Te,l.enabled]])]))),128))])])]))),128))]))}}),t2={key:0,class:"ce-menu-config"},n2=u("div",{class:"ce-tips"},[u("p",null,"「搜索」功能菜单支持自定义,可在「搜索菜单」设置面板中添加和管理。"),u("p",null,"「播放」功能菜单支持自定义,可在「播放菜单」设置面板中添加和管理。")],-1),o2=u("hr",{class:"ce-hr"},null,-1),s2=u("h1",null,"官方菜单设置",-1),i2=Be({__name:"MenuConfig",async setup(e){let t,n;const o=be(([t,n]=yn(()=>ta()),t=await t,n(),t));return be(!1),Vt(async()=>{}),ht(o,an(async s=>{await Jm(s),fe({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(s,i)=>o.value.enabled!==void 0?(G(),te("div",t2,[n2,Ce(w$,{config:o.value},null,8,["config"]),Ce(k$,{config:o.value.listItemHover},null,8,["config"]),Ce(O$,{config:o.value.listItemContext},null,8,["config"]),Ce(D$,{config:o.value.selection},null,8,["config"]),Ce(G$,{config:o.value.dirContext},null,8,["config"]),o2,u("div",null,[s2,u("div",null,[Ce(e2)])])])):Ke("",!0)}}),HA="",r2={class:"ce-custom-url"},a2={class:"pure-form pure-form-aligned"},l2={class:"ce-custom-url-index"},c2={class:"pure-control-group"},u2=u("label",null,"启用",-1),d2={class:"pure-control-group"},f2=u("label",null,"唯一标识",-1),p2={class:"pure-control-group"},h2=u("label",null,"显示名称",-1),m2={class:"pure-control-group"},g2=u("label",null,"图标",-1),w2={class:"pure-control-group"},y2={class:"pure-control-group"},b2=u("label",null,"后台打开",-1),v2={class:"pure-control-group"},_2=u("label",null,"备注",-1),x2={key:0,class:"pure-control-group"},C2=u("label",null,"Mutation",-1),ip=Be({__name:"CustomUrl",props:{item:null,index:null},emits:["delete"],setup(e,{emit:t}){const n=be(!0);function o(){t("delete")}function s(){n.value=!n.value,n.value&&fe({title:"已开启高级模式",text:"请谨慎修改,不正确的代码可能会导致脚本崩溃。",icon:"info",timer:2e3})}async function i(){window.postMessage({event:"customUrlHelp"},"*")}async function r(){const l=`
  <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>
  `;await ge.fire({title:"Mutation 说明",html:l,width:480,position:"top-start",backdrop:!1})}return(l,d)=>(G(),te("div",r2,[u("form",a2,[u("fieldset",null,[u("legend",null,[u("span",l2,"# "+we(e.index+1),1),u("button",{type:"button",class:"pure-button button-error button-small",onClick:o}," 删除 ")]),u("div",c2,[u2,oe(u("input",{"onUpdate:modelValue":d[0]||(d[0]=f=>e.item.enabled=f),type:"checkbox",id:"customUrl_enabled"},null,512),[[Te,e.item.enabled]])]),u("div",d2,[f2,oe(u("input",{"onUpdate:modelValue":d[1]||(d[1]=f=>e.item.key=f),id:"customUrl_key",class:"pure-input-2-3",placeholder:"英文、数字或下划线"},null,512),[[qe,e.item.key]])]),u("div",p2,[h2,oe(u("input",{"onUpdate:modelValue":d[2]||(d[2]=f=>e.item.label=f),id:"customUrl_label",class:"pure-input-2-3",placeholder:"菜单文本,尽量简洁"},null,512),[[qe,e.item.label]])]),u("div",m2,[g2,oe(u("input",{"onUpdate:modelValue":d[3]||(d[3]=f=>e.item.icon=f),id:"customUrl_icon",class:"pure-input-2-3",placeholder:"图标class、图片链接或图片data:image"},null,512),[[qe,e.item.icon]])]),u("div",w2,[u("label",{onDblclick:s}," 链接 ",32),oe(u("textarea",{"onUpdate:modelValue":d[4]||(d[4]=f=>e.item.url=f),id:"customUrl_url",class:"pure-input-2-3",placeholder:"链接地址,支持变量,变量列表请点击右侧「查看变量」"},null,512),[[qe,e.item.url]]),le("   "),u("a",{href:"javascript:void(0)",class:"text-primary",onClick:i},"查看变量")]),u("div",y2,[b2,oe(u("input",{"onUpdate:modelValue":d[5]||(d[5]=f=>e.item.openInBackground=f),id:"customUrl_openInBackground",type:"checkbox"},null,512),[[Te,e.item.openInBackground]])]),u("div",v2,[_2,oe(u("input",{"onUpdate:modelValue":d[6]||(d[6]=f=>e.item.memo=f),id:"customUrl_memo",class:"pure-input-2-3"},null,512),[[qe,e.item.memo]])]),n.value?(G(),te("div",x2,[C2,oe(u("textarea",{"onUpdate:modelValue":d[7]||(d[7]=f=>e.item.mutation=f),id:"customUrl_mutation",class:"pure-input-2-3",placeholder:"自定义代码生成最终链接,具体请看右侧「查看说明」"},null,512),[[qe,e.item.mutation]]),le("   "),u("a",{href:"javascript:void(0)",class:"text-primary",onClick:r},"查看说明")])):Ke("",!0)])])]))}}),zA="",$2={class:"ce-config ce-search-urls ce-custom-urls"},k2={class:"ce-menu-urls-builtin"},S2={class:"pure-form pure-form-aligned"},E2=["for"],A2=["id","onUpdate:modelValue"],P2={class:"text-info"},O2=["onClick"],I2={class:"ce-custom-urls-list"},T2={class:"ce-custom-urls-actions"},L2=["disabled"],M2=Be({__name:"SearchUrls",async setup(e){let t,n;const o=be(([t,n]=yn(()=>Rd()),t=await t,n(),t)),s=be(([t,n]=yn(()=>us(Pn.search)),t=await t,n(),t));Vt(async()=>{}),ht(o,an(async p=>{const m=[];p.forEach(y=>{y.enabled&&m.push(y.key)}),await Ab(m),fe({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0});async function i(){const p=[];for(const m of s.value){if(!await r(m,p.length))return;if(p.includes(m.key)){fe({icon:"error",title:`第 ${p.length+1} 个记录的「唯一标识: ${m.key}」重复!`});return}p.push(m.key)}await Hc(Pn.search,s.value),fe({icon:"success",title:"保存成功!"})}async function r(p,m){const y=/^\w+$/;return p.key=p.key.trim(),y.test(p.key)?(p.label=p.label.trim(),p.label===""?(fe({icon:"error",title:`第 ${m+1} 个记录的「显示名称」不能为空!`}),!1):(p.url=p.url.trim(),p.url===""?(fe({icon:"error",title:`第 ${m+1} 个记录的「链接」不能为空!`}),!1):(p.icon=p.icon.trim(),p.memo=p.memo.trim(),!0))):(fe({icon:"error",title:`第 ${m+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function l(){s.value.push(ut())}async function d(p,m){const{isConfirmed:y}=await ge.fire({icon:"warning",html:`确定要删除第 ${m+1} 个记录「${p.label}」吗?`});!y||(s.value.splice(m,1),await i(),fe({icon:"success",title:`「${p.label}」已删除!`}))}async function f(p){const m=JSON.stringify(p,null,2),y=`ce-url-item-denifition-${p.key}`,{isConfirmed:x}=await ge.fire({title:`「${p.label}」的定义`,html:`<h3>${p.memo}</h3>
      <pre id="${y}" style="text-align:left;font-size:12px;"></pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0,didOpen:()=>{document.getElementById(y).textContent=m}});!x||(navigator.clipboard.writeText(m),fe({icon:"success",title:"已复制到剪贴板!"}))}return(p,m)=>(G(),te("div",$2,[u("h1",null,[le("预置搜索菜单 "),oe(u("small",null,"( "+we(o.value.length)+" )",513),[[Kt,o.value.length]])]),u("div",k2,[u("form",S2,[u("fieldset",null,[(G(!0),te(De,null,dt(o.value,(y,x)=>(G(),te("div",{key:x,class:"pure-control-group"},[u("label",{for:`builtin_${y.key}`},we(y.label),9,E2),oe(u("input",{id:`builtin_${y.key}`,type:"checkbox","onUpdate:modelValue":E=>y.enabled=E},null,8,A2),[[Te,y.enabled]]),le("      "),u("span",P2,we(y.memo),1),le("      "),u("button",{type:"button",class:"pure-button button-small",onClick:E=>f(y)},"查看定义",8,O2)]))),128))])])]),u("h1",null,[le("自定义搜索菜单 "),oe(u("small",null,"( "+we(s.value.length)+" )",513),[[Kt,s.value.length]])]),u("div",I2,[(G(!0),te(De,null,dt(s.value,(y,x)=>(G(),Rt(ip,{key:x,item:y,index:x,onDelete:E=>d(y,x)},null,8,["item","index","onDelete"]))),128))]),u("div",T2,[u("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!s.value.length}," 保存自定义搜索菜单 ",8,L2),le("      "),u("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:l}," 添加自定义搜索菜单 ")])]))}}),qA="",B2={class:"ce-config ce-play-urls ce-custom-urls"},D2=u("div",{class:"ce-tips"},[u("p",null,[le("支持常见的视频、音频和图片格式,也支持目录播放。预置播放菜单使用的链接变量是 "),u("b",null,"{clouddrive_stream_url}"),le(" , 会根据文件或目录自动使用相应的链接。")]),u("p",null,"播放功能依赖CloudDrive,请先在「CloudDrive」设置面板中进行配置。")],-1),N2={class:"ce-menu-urls-builtin"},R2={class:"pure-form pure-form-aligned"},F2=["for"],j2=["id","onUpdate:modelValue"],U2={class:"text-info"},H2=["onClick"],z2=["innerHTML"],q2={class:"ce-custom-urls-list"},V2=u("div",{class:"ce-tips"}," 编辑后,请记得点击「保存自定义播放菜单」。 ",-1),W2={class:"ce-custom-urls-actions"},K2=["disabled"],J2=Be({__name:"PlayUrls",async setup(e){let t,n;const o=be(([t,n]=yn(()=>Ga()),t=await t,n(),t)),s=be(([t,n]=yn(()=>us(Pn.play)),t=await t,n(),t));Vt(async()=>{}),ht(o,an(async p=>{const m=[];p.forEach(y=>{y.enabled&&m.push(y.key)}),await Pb(m),fe({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0});async function i(){const p=[];for(const m of s.value){if(!await r(m,p.length))return;if(p.includes(m.key)){fe({icon:"error",title:`第 ${p.length+1} 个记录的「唯一标识: ${m.key}」重复!`});return}p.push(m.key)}await Hc(Pn.play,s.value),fe({icon:"success",title:"保存成功!"})}async function r(p,m){const y=/^\w+$/;return p.key=p.key.trim(),y.test(p.key)?(p.label=p.label.trim(),p.label===""?(fe({icon:"error",title:`第 ${m+1} 个记录的「显示名称」不能为空!`}),!1):(p.url=p.url.trim(),p.url===""?(fe({icon:"error",title:`第 ${m+1} 个记录的「链接」不能为空!`}),!1):(p.icon=p.icon.trim(),p.memo=p.memo.trim(),!0))):(fe({icon:"error",title:`第 ${m+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function l(){s.value.push(ut())}async function d(p,m){const{isConfirmed:y}=await ge.fire({icon:"warning",html:`确定要删除第 ${m+1} 个记录「${p.label}」吗?`});!y||(s.value.splice(m,1),await i(),fe({icon:"success",title:`「${p.label}」已删除!`}))}async function f(p){const m=JSON.stringify(p,null,2),y=`ce-url-item-denifition-${p.key}`,{isConfirmed:x}=await ge.fire({title:`「${p.label}」的定义`,html:`<h3>${p.memo}</h3>
      <pre id="${y}" style="text-align:left;font-size:12px;"></pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0,didOpen:()=>{document.getElementById(y).innerText=m}});!x||(navigator.clipboard.writeText(m),fe({icon:"success",title:"已复制到剪贴板!"}))}return(p,m)=>(G(),te("div",B2,[u("h1",null,[le("预置播放菜单 "),oe(u("small",null,"( "+we(o.value.length)+" )",513),[[Kt,o.value.length]])]),D2,u("div",N2,[u("form",R2,[u("fieldset",null,[(G(!0),te(De,null,dt(o.value,(y,x)=>(G(),te("div",{key:x,class:"pure-control-group"},[u("label",{for:`builtin_${y.key}`},we(y.label),9,F2),oe(u("input",{id:`builtin_${y.key}`,type:"checkbox","onUpdate:modelValue":E=>y.enabled=E},null,8,j2),[[Te,y.enabled]]),le("      "),u("span",U2,we(y.memo),1),le("      "),u("button",{type:"button",class:"pure-button button-small",onClick:E=>f(y)},"查看定义",8,H2),y.extraMemo?(G(),te("span",{key:0,innerHTML:y.extraMemo,class:"extra-memo"},null,8,z2)):Ke("",!0)]))),128))])])]),u("h1",null,[le("自定义播放菜单 "),oe(u("small",null,"( "+we(s.value.length)+" )",513),[[Kt,s.value.length]])]),u("div",q2,[(G(!0),te(De,null,dt(s.value,(y,x)=>(G(),Rt(ip,{key:x,item:y,index:x,onDelete:E=>d(y,x)},null,8,["item","index","onDelete"]))),128))]),V2,u("div",W2,[u("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!s.value.length}," 保存自定义播放菜单 ",8,K2),le("      "),u("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:l}," 添加自定义播放菜单 ")])]))}}),VA="",rp=function(){return document.ontouchstart!==null?"click":"touchstart"},Cr="__vue_click_away__",ap=function(e,t,n){lp(e);let o=n.context,s=t.value,i=!1;setTimeout(function(){i=!0},0),e[Cr]=function(r){if((!e||!e.contains(r.target))&&s&&i&&typeof s=="function")return s.call(o,r)},document.addEventListener(rp(),e[Cr],!1)},lp=function(e){document.removeEventListener(rp(),e[Cr],!1),delete e[Cr]},G2={mounted:ap,updated:function(e,t,n){t.value!==t.oldValue&&ap(e,t,n)},unmounted:lp},Y2=Be({__name:"Drawer",props:{isOpen:{type:Boolean,required:!1,default:!1},maxWidth:{type:String,required:!1,default:"600px"},speed:{type:Number,required:!1,default:100},backgroundColor:{type:String,required:!1,default:"#fafafa"}},emits:["close"],setup(e,{emit:t}){const n=e,o=be(!1),s=be(!1),i=l=>{const d=document.querySelector("body");d.style.overflow=l?"hidden":""},r=l=>{!l.target.classList.contains("ce-drawer__overlay")||s.value||t("close")};return Wt(()=>{o.value=n.isOpen}),ht(()=>n.isOpen,l=>{s.value=!0,l?(i(!0),o.value=!0):(i(!1),setTimeout(()=>o.value=!1,n.speed)),setTimeout(()=>s.value=!1,n.speed)}),(l,d)=>(G(),te("div",null,[u("div",{class:Ge(["ce-drawer",{"is-open":e.isOpen,"is-visible":o.value}])},[u("div",{class:"ce-drawer__overlay",style:un({transitionDuration:`${e.speed}ms`})},null,4),oe((G(),te("div",{class:"ce-drawer__content",style:un({maxWidth:e.maxWidth,transitionDuration:`${e.speed}ms`,backgroundColor:e.backgroundColor})},[mn(l.$slots,"default")],4)),[[xe(G2),r]])],2)]))}}),KA="",X2={class:"ce-about"},Q2=u("p",null,"115不大助手(以下简称「脚本」),是一个仅用于学习编程的小脚本。",-1),Z2=u("br",null,null,-1),ek=u("p",null,"脚本不会收集您的任何个人信息。",-1),tk=u("p",null,"脚本仅借助了官方已有的功能,无任何破解行为。",-1),nk=u("br",null,null,-1),ok=u("br",null,null,-1),sk=u("br",null,null,-1),ik=u("hr",{class:"ce-hr"},null,-1),rk=["href"],ak=Be({__name:"About",setup(e){const t={name:"115不大助手",version:"0.5.37",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"};return(n,o)=>(G(),te("div",X2,[Q2,Z2,ek,tk,nk,ok,sk,ik,u("div",null,[u("a",{href:xe(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[le(we(xe(t).name)+" ",1),u("small",null,"v"+we(xe(t).version),1)],8,rk),le("  "),u("small",null,"by "+we(xe(t).author.name),1)])]))}}),lk={class:"ce-config-main"},ck={class:"ce-config-main-header"},uk=u("h1",null,"设置",-1),dk={class:"ce-intro"},fk=["href"],pk={class:"ce-config-main-body"},hk=Be({__name:"Config",setup(e){const t={name:"115不大助手",version:"0.5.37",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"},n=be(!1),o=be(!1);Wt(async()=>{window.addEventListener("message",d=>{const{event:f}=d.data;f===_o.openConfig&&(n.value||(n.value=!0),s())},!1)});async function s(){o.value=!0}async function i(){o.value=!1}async function r(...d){console.log("[tabClicked]",d)}async function l(...d){console.log("[tabChanged]",d)}return(d,f)=>(G(),Rt(ju,null,{default:Ve(()=>[u("div",lk,[Ce(Y2,{"is-open":o.value,onClose:i,"max-width":"980px",speed:500},{default:Ve(()=>[u("div",ck,[uk,u("span",dk,[u("a",{href:xe(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[le(we(xe(t).name)+" ",1),u("small",null,"v"+we(xe(t).version),1)],8,fk),le("  "),u("small",null,"by "+we(xe(t).author.name),1)]),u("div",{class:"ce-config-main-close",onClick:i},"关闭")]),u("div",pk,[Ce(xe(Zx),{options:{useUrlFragment:!1},onClicked:r,onChanged:l},{default:Ve(()=>[Ce(xe(Jn),{name:"基础设置"},{default:Ve(()=>[Ce(PC)]),_:1}),Ce(xe(Jn),{name:"CloudDrive"},{default:Ve(()=>[Ce(WC)]),_:1}),Ce(xe(Jn),{name:"列表增强"},{default:Ve(()=>[Ce(a$)]),_:1}),Ce(xe(Jn),{name:"菜单设置"},{default:Ve(()=>[Ce(i2)]),_:1}),Ce(xe(Jn),{name:"搜索菜单"},{default:Ve(()=>[Ce(M2)]),_:1}),Ce(xe(Jn),{name:"播放菜单"},{default:Ve(()=>[Ce(J2)]),_:1}),Ce(xe(Jn),{name:"离线管理"},{default:Ve(()=>[Ce(rf)]),_:1}),Ce(xe(Jn),{name:"关于"},{default:Ve(()=>[Ce(ak)]),_:1})]),_:1})])]),_:1},8,["is-open"])])]),_:1}))}}),JA="";async function mk(){const{host:e}=location;!e.includes("115.com")||window.top===window.self&&(console.log("[Cloud115 Enhancer - main] running..."),gk(),wk())}async function gk(){console.log("[Cloud115 Enhancer - main] injectUI");const e="cloud115ConfigMain",t=document.createElement("div");t.id=e,document.body.appendChild(t),wo(hk).mount(`#${e}`),Dl("设置",async()=>{window.postMessage({event:_o.openConfig})})}async function wk(){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",yk),n.title="打开「115不大助手」设置",n.innerHTML='<i class="isn-setting"></i><span>115不大助手</span>',t.appendChild(n),e.insertBefore(t,e.firstChild)}async function yk(){window.postMessage({event:_o.openConfig})}const GA="";async function bk(){await tr();const{host:e,search:t}=location;!/115\.com$/.test(e)||(t.includes("ct=file")||t.includes("mode=search"))&&Db()}location.host==="115.com"&&(window.COMMONHEADERUSERINFO=window.COMMONHEADERUSERINFO||{}),(async()=>(console.log("Cloud115 Enhancer launched!"),lv(),g1(),Wx(),Gx(),bk(),mk()))()})();