// ==UserScript==
// @name 115不大助手 (full)
// @namespace com.cloud115.enhancer
// @version 0.5.41
// @author 生瓜太保
// @description Make 115 taerg again!
// @license MIT
// @homepage https://gf.qytechs.cn/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}.menu-basic-config .pure-control-group label{width:170px!important}.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}#js_top_header_file_path_box.ce-goto-path-active .top-file-path{position:absolute;background:#fefcea;left:104px;top:-35px;z-index:9999;border-radius:4px;box-shadow:0 2px 1px #999}#js_top_header_file_path_box.ce-goto-path-active input#ceGotoPathValue{display:block}#js_top_header_file_path_box input#ceGotoPathValue{display:none;width:50%;margin-right:6px;color:#89929b;padding:2px 4px;border-radius:4px;border:1px solid #2877f8;background:#fcfffa}
`);
var xA=Object.defineProperty;var CA=(So,kn,Eo)=>kn in So?xA(So,kn,{enumerable:!0,configurable:!0,writable:!0,value:Eo}):So[kn]=Eo;var Ae=(So,kn,Eo)=>(CA(So,typeof kn!="symbol"?kn+"":kn,Eo),Eo);(function(){"use strict";const So="",kn="",Eo="",$A="",kA="",SA="",EA="",Jp=typeof btoa=="function",Ir=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Dl=typeof TextEncoder=="function"?new TextEncoder:void 0,Yp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ns=Array.prototype.slice.call(Yp);(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(ns);const Yt=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Xp=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Nl=Jp?e=>btoa(e):Ir?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+=ns[t>>18&63]+ns[t>>12&63]+ns[t>>6&63]+ns[t&63]}return r?i.slice(0,r-3)+"===".substring(r):i},Qp=Ir?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(Yt.apply(null,e.subarray(o,o+4096)));return Nl(n.join(""))},Zp=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Yt(192|t>>>6)+Yt(128|t&63):Yt(224|t>>>12&15)+Yt(128|t>>>6&63)+Yt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Yt(240|t>>>18&7)+Yt(128|t>>>12&63)+Yt(128|t>>>6&63)+Yt(128|t&63)}},eh=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,th=e=>e.replace(eh,Zp),Rl=Ir?e=>Buffer.from(e,"utf8").toString("base64"):Dl?e=>Qp(Dl.encode(e)):e=>Nl(th(e)),jl=(e,t=!1)=>t?Xp(Rl(e)):Rl(e);var Ao=window,Tr=(()=>Ao.GM_setValue)(),nh=(()=>Ao.GM_deleteValue)(),oh=(()=>Ao.GM_openInTab)(),Fl=(()=>Ao.GM_registerMenuCommand)(),os=(()=>Ao.GM_setClipboard)(),Qs=(()=>Ao.GM_getValue)(),Sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ul={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}`)},h=a=>{console.error(`${l} ${a}`)},y=[],E=a=>{y.includes(a)||(y.push(a),p(a))},x=(a,c)=>{E(`"${a}" is deprecated and will be removed in the next major release. Please use "${c}" instead.`)},A=a=>typeof a=="function"?a():a,O=a=>a&&typeof a.toPromise=="function",V=a=>O(a)?a.toPromise():Promise.resolve(a),I=a=>a&&Promise.resolve(a)===a,T=()=>document.body.querySelector(`.${i.container}`),Y=a=>{const c=T();return c?c.querySelector(a):null},ee=a=>Y(`.${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=()=>Y(`.${i.actions} .${i.confirm}`),Ue=()=>Y(`.${i.actions} .${i.cancel}`),D=()=>Y(`.${i.actions} .${i.deny}`),J=()=>ee(i["input-label"]),N=()=>Y(`.${i.loader}`),we=()=>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")),_e=parseInt(v.getAttribute("tabindex"));return B>_e?1:B<_e?-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},ut=(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},Jn=(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(Jn(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}L(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}},M=(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)}))},L=(a,c)=>{M(a,c,!0)},F=(a,c)=>{M(a,c,!1)},Q=(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}},oe=(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},G=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):G(a)},R=a=>!!(a&&(a.offsetWidth||a.offsetHeight||a.getClientRects().length)),ue=()=>!R(ae())&&!R(D())&&!R(Ue()),m=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={},j=()=>{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(()=>{j(),c()},P),window.scrollTo(g,v)}),X=()=>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,""),xe=()=>{const a=T();return a?(a.remove(),F([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},he=()=>{k.currentInstance.resetValidationMessage()},Ne=()=>{const a=U(),c=Q(a,i.input),g=Q(a,i.file),v=a.querySelector(`.${i.range} input`),B=a.querySelector(`.${i.range} output`),_e=Q(a,i.select),We=a.querySelector(`.${i.checkbox} input`),Lt=Q(a,i.textarea);c.oninput=he,g.onchange=he,_e.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")},Ws=a=>{window.getComputedStyle(a).direction==="rtl"&&L(T(),i.rtl)},Ks=a=>{const c=xe();if(X()){h("SweetAlert2 requires document to initialize");return}const g=document.createElement("div");g.className=i.container,c&&L(g,i["no-transition"]),ut(g,$e);const v=xt(a.target);v.appendChild(g),mt(a),Ws(v),Ne()},kl=(a,c)=>{a instanceof HTMLElement?c.appendChild(a):typeof a=="object"?Zk(a,c):a&&ut(c,a)},Zk=(a,c)=>{a.jquery?eS(c,a):ut(c,a.toString())},eS=(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))},Gs=(()=>{if(X())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})(),tS=()=>{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},nS=(a,c)=>{const g=we(),v=N();!c.showConfirmButton&&!c.showDenyButton&&!c.showCancelButton?G(g):q(g),at(g,c,"actions"),oS(g,v,c),ut(v,c.loaderHtml),at(v,c,"loader")};function oS(a,c,g){const v=ae(),B=D(),_e=Ue();Sl(v,"confirm",g),Sl(B,"deny",g),Sl(_e,"cancel",g),sS(v,B,_e,g),g.reverseButtons&&(g.toast?(a.insertBefore(_e,v),a.insertBefore(B,v)):(a.insertBefore(_e,c),a.insertBefore(B,c),a.insertBefore(v,c)))}function sS(a,c,g,v){if(!v.buttonsStyling){F([a,c,g],i.styled);return}L([a,c,g],i.styled),v.confirmButtonColor&&(a.style.backgroundColor=v.confirmButtonColor,L(a,i["default-outline"])),v.denyButtonColor&&(c.style.backgroundColor=v.denyButtonColor,L(c,i["default-outline"])),v.cancelButtonColor&&(g.style.backgroundColor=v.cancelButtonColor,L(g,i["default-outline"]))}function Sl(a,c,g){ce(a,g[`show${f(c)}Button`],"inline-block"),ut(a,g[`${c}ButtonText`]),a.setAttribute("aria-label",g[`${c}ButtonAriaLabel`]),a.className=i[c],at(a,g,`${c}Button`),L(a,g[`${c}ButtonClass`])}const iS=(a,c)=>{const g=Xe();ut(g,c.closeButtonHtml),at(g,c,"closeButton"),ce(g,c.showCloseButton),g.setAttribute("aria-label",c.closeButtonAriaLabel)},rS=(a,c)=>{const g=T();!g||(aS(g,c.backdrop),lS(g,c.position),cS(g,c.grow),at(g,c,"container"))};function aS(a,c){typeof c=="string"?a.style.background=c:c||L([document.documentElement,document.body],i["no-backdrop"])}function lS(a,c){c in i?L(a,i[c]):(p('The "position" parameter is not valid, defaulting to "center"'),L(a,i.center))}function cS(a,c){if(c&&typeof c=="string"){const g=`grow-${c}`;g in i&&L(a,i[g])}}const uS=["input","file","range","select","radio","checkbox","textarea"],dS=(a,c)=>{const g=U(),v=n.innerParams.get(a),B=!v||c.input!==v.input;uS.forEach(_e=>{const We=Q(g,i[_e]);hS(_e,c.inputAttributes),We.className=i[_e],B&&G(We)}),c.input&&(B&&fS(c),mS(c))},fS=a=>{if(!Pt[a.input]){h(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${a.input}"`);return}const c=bp(a.input),g=Pt[a.input](c,a);q(c),a.inputAutoFocus&&setTimeout(()=>{S(g)})},pS=a=>{for(let c=0;c<a.attributes.length;c++){const g=a.attributes[c].name;["type","value","style"].includes(g)||a.removeAttribute(g)}},hS=(a,c)=>{const g=b(U(),a);if(!!g){pS(g);for(const v in c)g.setAttribute(v,c[v])}},mS=a=>{const c=bp(a.input);typeof a.customClass=="object"&&L(c,a.customClass.input)},El=(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"&&L(v,g.customClass.inputLabel),v.innerText=g.inputLabel,c.insertAdjacentElement("beforebegin",v)}},bp=a=>Q(U(),i[a]||i.input),Er=(a,c)=>{["string","number"].includes(typeof c)?a.value=`${c}`:I(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)=>(Er(a,c.inputValue),Js(a,a,c),El(a,c),a.type=c.input,a),Pt.file=(a,c)=>(Js(a,a,c),El(a,c),a),Pt.range=(a,c)=>{const g=a.querySelector("input"),v=a.querySelector("output");return Er(g,c.inputValue),g.type=c.input,Er(v,c.inputValue),Js(g,a,c),a},Pt.select=(a,c)=>{if(a.textContent="",c.inputPlaceholder){const g=document.createElement("option");ut(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 ut(v,c.inputPlaceholder),g},Pt.textarea=(a,c)=>{Er(a,c.inputValue),El(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 _e=a.offsetWidth+g(a);_e>v?U().style.width=`${_e}px`:U().style.width=null};new MutationObserver(B).observe(a,{attributes:!0,attributeFilter:["style"]})}}),a};const gS=(a,c)=>{const g=Pe();at(g,c,"htmlContainer"),c.html?(kl(c.html,g),q(g,"block")):c.text?(g.textContent=c.text,q(g,"block")):G(g),dS(a,c)},wS=(a,c)=>{const g=Se();ce(g,c.footer),c.footer&&kl(c.footer,g),at(g,c,"footer")},yS=(a,c)=>{const g=n.innerParams.get(a),v=se();if(g&&c.icon===g.icon){_p(v,c),vp(v,c);return}if(!c.icon&&!c.iconHtml){G(v);return}if(c.icon&&Object.keys(r).indexOf(c.icon)===-1){h(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${c.icon}"`),G(v);return}q(v),_p(v,c),vp(v,c),L(v,c.showClass.icon)},vp=(a,c)=>{for(const g in r)c.icon!==g&&F(a,r[g]);L(a,r[c.icon]),xS(a,c),bS(),at(a,c,"icon")},bS=()=>{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},vS=`
<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>
`,_S=`
<span class="swal2-x-mark">
<span class="swal2-x-mark-line-left"></span>
<span class="swal2-x-mark-line-right"></span>
</span>
`,_p=(a,c)=>{let g=a.innerHTML,v;c.iconHtml?v=xp(c.iconHtml):c.icon==="success"?(v=vS,g=g.replace(/ style=".*?"/g,"")):c.icon==="error"?v=_S:v=xp({question:"?",warning:"!",info:"i"}[c.icon]),g.trim()!==v.trim()&&ut(a,v)},xS=(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)}},xp=a=>`<div class="${i["icon-content"]}">${a}</div>`,CS=(a,c)=>{const g=pe();if(!c.imageUrl){G(g);return}q(g,""),g.setAttribute("src",c.imageUrl),g.setAttribute("alt",c.imageAlt),oe(g,"width",c.imageWidth),oe(g,"height",c.imageHeight),g.className=i.image,at(g,c,"image")},$S=(a,c)=>{const g=T(),v=U();c.toast?(oe(g,"width",c.width),v.style.width="100%",v.insertBefore(N(),se())):oe(v,"width",c.width),oe(v,"padding",c.padding),c.color&&(v.style.color=c.color),c.background&&(v.style.background=c.background),G(Ee()),kS(v,c)},kS=(a,c)=>{a.className=`${i.popup} ${R(a)?c.showClass.popup:""}`,c.toast?(L([document.documentElement,document.body],i["toast-shown"]),L(a,i.toast)):L(a,i.modal),at(a,c,"popup"),typeof c.customClass=="string"&&L(a,c.customClass),c.icon&&L(a,i[`icon-${c.icon}`])},SS=(a,c)=>{const g=re();if(!c.progressSteps||c.progressSteps.length===0){G(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 _e=ES(v);if(g.appendChild(_e),B===c.currentProgressStep&&L(_e,i["active-progress-step"]),B!==c.progressSteps.length-1){const We=AS(c);g.appendChild(We)}})},ES=a=>{const c=document.createElement("li");return L(c,i["progress-step"]),ut(c,a),c},AS=a=>{const c=document.createElement("li");return L(c,i["progress-step-line"]),a.progressStepsDistance&&oe(c,"width",a.progressStepsDistance),c},PS=(a,c)=>{const g=de();ce(g,c.title||c.titleText,"block"),c.title&&kl(c.title,g),c.titleText&&(g.innerText=c.titleText),at(g,c,"title")},Cp=(a,c)=>{$S(a,c),rS(a,c),SS(a,c),yS(a,c),CS(a,c),PS(a,c),iS(a,c),gS(a,c),nS(a,c),wS(a,c),typeof c.didRender=="function"&&c.didRender(U())};function $p(){const a=n.innerParams.get(this);if(!a)return;const c=n.domCache.get(this);G(c.loader),$n()?a.icon&&q(se()):OS(c),F([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 OS=a=>{const c=a.popup.getElementsByClassName(a.loader.getAttribute("data-button-to-replace"));c.length?q(c[0],"inline-block"):ue()&&G(a.actions)};function IS(a){const c=n.innerParams.get(a||this),g=n.domCache.get(a||this);return g?b(g.popup,c.input):null}const TS=()=>R(U()),kp=()=>ae()&&ae().click(),LS=()=>D()&&D().click(),MS=()=>Ue()&&Ue().click(),Xo=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Sp=a=>{a.keydownTarget&&a.keydownHandlerAdded&&(a.keydownTarget.removeEventListener("keydown",a.keydownHandler,{capture:a.keydownListenerCapture}),a.keydownHandlerAdded=!1)},BS=(a,c,g,v)=>{Sp(c),g.toast||(c.keydownHandler=B=>NS(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)},Al=(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()},Ep=["ArrowRight","ArrowDown"],DS=["ArrowLeft","ArrowUp"],NS=(a,c,g)=>{const v=n.innerParams.get(a);!v||c.isComposing||c.keyCode===229||(v.stopKeydownPropagation&&c.stopPropagation(),c.key==="Enter"?RS(a,c,v):c.key==="Tab"?jS(c):[...Ep,...DS].includes(c.key)?FS(c.key):c.key==="Escape"&&US(c,v,g))},RS=(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;kp(),c.preventDefault()}},jS=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?Al(v,-1):Al(v,1),a.stopPropagation(),a.preventDefault()},FS=a=>{const c=ae(),g=D(),v=Ue(),B=[c,g,v];if(document.activeElement instanceof HTMLElement&&!B.includes(document.activeElement))return;const _e=Ep.includes(a)?"nextElementSibling":"previousElementSibling";let We=document.activeElement;for(let Lt=0;Lt<we().children.length;Lt++){if(We=We[_e],!We)return;if(We instanceof HTMLButtonElement&&R(We))break}We instanceof HTMLButtonElement&&We.focus()},US=(a,c,g)=>{A(c.allowEscapeKey)&&(a.preventDefault(),g(Xo.esc))};var Ys={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const HS=()=>{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"))})},Ap=()=>{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")})},zS=()=>{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`,L(document.body,i.iosfix),VS(),qS()}},qS=()=>{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`)},VS=()=>{const a=T();let c;a.ontouchstart=g=>{c=WS(g)},a.ontouchmove=g=>{c&&(g.preventDefault(),g.stopPropagation())}},WS=a=>{const c=a.target,g=T();return KS(a)||GS(a)?!1:c===g||!m(g)&&c instanceof HTMLElement&&c.tagName!=="INPUT"&&c.tagName!=="TEXTAREA"&&!(m(Pe())&&Pe().contains(c))},KS=a=>a.touches&&a.touches.length&&a.touches[0].touchType==="stylus",GS=a=>a.touches&&a.touches.length>1,JS=()=>{if(et(document.body,i.iosfix)){const a=parseInt(document.body.style.top,10);F(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=a*-1}},YS=()=>{_t.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(_t.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${_t.previousBodyPadding+tS()}px`)},XS=()=>{_t.previousBodyPadding!==null&&(document.body.style.paddingRight=`${_t.previousBodyPadding}px`,_t.previousBodyPadding=null)};function Pp(a,c,g,v){$n()?Op(a,v):(H(g).then(()=>Op(a,v)),Sp(k)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(c.setAttribute("style","display:none !important"),c.removeAttribute("class"),c.innerHTML=""):c.remove(),Tt()&&(XS(),JS(),Ap()),QS()}function QS(){F([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function Ar(a){a=nE(a);const c=Ys.swalPromiseResolve.get(this),g=eE(this);this.isAwaitingPromise()?a.isDismissed||(Xs(this),c(a)):g&&c(a)}function ZS(){return!!n.awaitingPromise.get(this)}const eE=a=>{const c=U();if(!c)return!1;const g=n.innerParams.get(a);if(!g||et(c,g.hideClass.popup))return!1;F(c,g.showClass.popup),L(c,g.hideClass.popup);const v=T();return F(v,g.showClass.backdrop),L(v,g.hideClass.backdrop),oE(a,c,g),!0};function tE(a){const c=Ys.swalPromiseReject.get(this);Xs(this),c&&c(a)}const Xs=a=>{a.isAwaitingPromise()&&(n.awaitingPromise.delete(a),n.innerParams.get(a)||a._destroy())},nE=a=>typeof a>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},a),oE=(a,c,g)=>{const v=T(),B=Gs&&w(c);typeof g.willClose=="function"&&g.willClose(c),B?sE(a,c,v,g.returnFocus,g.didClose):Pp(a,v,g.returnFocus,g.didClose)},sE=(a,c,g,v,B)=>{k.swalCloseEventFinishedCallback=Pp.bind(null,a,g,v,B),c.addEventListener(Gs,function(_e){_e.target===c&&(k.swalCloseEventFinishedCallback(),delete k.swalCloseEventFinishedCallback)})},Op=(a,c)=>{setTimeout(()=>{typeof c=="function"&&c.bind(a.params)(),a._destroy()})};function Ip(a,c,g){const v=n.domCache.get(a);c.forEach(B=>{v[B].disabled=g})}function Tp(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 iE(){Ip(this,["confirmButton","denyButton","cancelButton"],!1)}function rE(){Ip(this,["confirmButton","denyButton","cancelButton"],!0)}function aE(){Tp(this.getInput(),!1)}function lE(){Tp(this.getInput(),!0)}function cE(a){const c=n.domCache.get(this),g=n.innerParams.get(this);ut(c.validationMessage,a),c.validationMessage.className=i["validation-message"],g.customClass&&g.customClass.validationMessage&&L(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),L(v,i.inputerror))}function uE(){const a=n.domCache.get(this);a.validationMessage&&G(a.validationMessage);const c=this.getInput();c&&(c.removeAttribute("aria-invalid"),c.removeAttribute("aria-describedby"),F(c,i.inputerror))}const Qo={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:"×",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},dE=["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"],fE={},pE=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Lp=a=>Object.prototype.hasOwnProperty.call(Qo,a),Mp=a=>dE.indexOf(a)!==-1,Pl=a=>fE[a],hE=a=>{Lp(a)||p(`Unknown parameter "${a}"`)},mE=a=>{pE.includes(a)&&p(`The parameter "${a}" is incompatible with toasts`)},gE=a=>{Pl(a)&&x(a,Pl(a))},wE=a=>{a.backdrop===!1&&a.allowOutsideClick&&p('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const c in a)hE(c),a.toast&&mE(c),gE(c)};function yE(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=bE(a),B=Object.assign({},g,v);Cp(this,B),n.innerParams.set(this,B),Object.defineProperties(this,{params:{value:Object.assign({},this.params,a),writable:!1,enumerable:!0}})}const bE=a=>{const c={};return Object.keys(a).forEach(g=>{Mp(g)?c[g]=a[g]:p(`Invalid parameter to update: ${g}`)}),c};function vE(){const a=n.domCache.get(this),c=n.innerParams.get(this);if(!c){Bp(this);return}a.popup&&k.swalCloseEventFinishedCallback&&(k.swalCloseEventFinishedCallback(),delete k.swalCloseEventFinishedCallback),typeof c.didDestroy=="function"&&c.didDestroy(),_E(this)}const _E=a=>{Bp(a),delete a.params,delete k.keydownHandler,delete k.keydownTarget,delete k.currentInstance},Bp=a=>{a.isAwaitingPromise()?(Ol(n,a),n.awaitingPromise.set(a,!0)):(Ol(Ys,a),Ol(n,a))},Ol=(a,c)=>{for(const g in a)a[g].delete(c)};var Dp=Object.freeze({__proto__:null,_destroy:vE,close:Ar,closeModal:Ar,closePopup:Ar,closeToast:Ar,disableButtons:rE,disableInput:lE,disableLoading:$p,enableButtons:iE,enableInput:aE,getInput:IS,handleAwaitingPromise:Xs,hideLoading:$p,isAwaitingPromise:ZS,rejectPromise:tE,resetValidationMessage:uE,showValidationMessage:cE,update:yE});const Zo=a=>{let c=U();c||new Or,c=U();const g=N();$n()?G(se()):xE(c,a),q(g),c.setAttribute("data-loading","true"),c.setAttribute("aria-busy","true"),c.focus()},xE=(a,c)=>{const g=we(),v=N();!c&&R(ae())&&(c=ae()),q(g),c&&(G(c),v.setAttribute("data-button-to-replace",c.className)),v.parentNode.insertBefore(v,c),L([a,g],i.loading)},CE=(a,c)=>{c.input==="select"||c.input==="radio"?AE(a,c):["text","email","number","tel","textarea"].includes(c.input)&&(O(c.inputValue)||I(c.inputValue))&&(Zo(ae()),PE(a,c))},$E=(a,c)=>{const g=a.getInput();if(!g)return null;switch(c.input){case"checkbox":return kE(g);case"radio":return SE(g);case"file":return EE(g);default:return c.inputAutoTrim?g.value.trim():g.value}},kE=a=>a.checked?1:0,SE=a=>a.checked?a.value:null,EE=a=>a.files.length?a.getAttribute("multiple")!==null?a.files:a.files[0]:null,AE=(a,c)=>{const g=U(),v=B=>{OE[c.input](g,Il(B),c)};O(c.inputOptions)||I(c.inputOptions)?(Zo(ae()),V(c.inputOptions).then(B=>{a.hideLoading(),v(B)})):typeof c.inputOptions=="object"?v(c.inputOptions):h(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof c.inputOptions}`)},PE=(a,c)=>{const g=a.getInput();G(g),V(c.inputValue).then(v=>{g.value=c.input==="number"?`${parseFloat(v)||0}`:`${v}`,q(g),g.focus(),a.hideLoading()}).catch(v=>{h(`Error in inputValue promise: ${v}`),g.value="",q(g),g.focus(),a.hideLoading()})},OE={select:(a,c,g)=>{const v=Q(a,i.select),B=(_e,We,Lt)=>{const Ct=document.createElement("option");Ct.value=Lt,ut(Ct,We),Ct.selected=Np(Lt,g.inputValue),_e.appendChild(Ct)};c.forEach(_e=>{const We=_e[0],Lt=_e[1];if(Array.isArray(Lt)){const Ct=document.createElement("optgroup");Ct.label=We,Ct.disabled=!1,v.appendChild(Ct),Lt.forEach(ts=>B(Ct,ts[1],ts[0]))}else B(v,Lt,We)}),v.focus()},radio:(a,c,g)=>{const v=Q(a,i.radio);c.forEach(_e=>{const We=_e[0],Lt=_e[1],Ct=document.createElement("input"),ts=document.createElement("label");Ct.type="radio",Ct.name=i.radio,Ct.value=We,Np(We,g.inputValue)&&(Ct.checked=!0);const Bl=document.createElement("span");ut(Bl,Lt),Bl.className=i.label,ts.appendChild(Ct),ts.appendChild(Bl),v.appendChild(ts)});const B=v.querySelectorAll("input");B.length&&B[0].focus()}},Il=a=>{const c=[];return typeof Map<"u"&&a instanceof Map?a.forEach((g,v)=>{let B=g;typeof B=="object"&&(B=Il(B)),c.push([v,B])}):Object.keys(a).forEach(g=>{let v=a[g];typeof v=="object"&&(v=Il(v)),c.push([g,v])}),c},Np=(a,c)=>c&&c.toString()===a.toString(),IE=a=>{const c=n.innerParams.get(a);a.disableButtons(),c.input?Rp(a,"confirm"):Ll(a,!0)},TE=a=>{const c=n.innerParams.get(a);a.disableButtons(),c.returnInputValueOnDeny?Rp(a,"deny"):Tl(a,!1)},LE=(a,c)=>{a.disableButtons(),c(Xo.cancel)},Rp=(a,c)=>{const g=n.innerParams.get(a);if(!g.input){h(`The "input" parameter is needed to be set when using returnInputValueOn${f(c)}`);return}const v=$E(a,g);g.inputValidator?ME(a,v,c):a.getInput().checkValidity()?c==="deny"?Tl(a,v):Ll(a,v):(a.enableButtons(),a.showValidationMessage(g.validationMessage))},ME=(a,c,g)=>{const v=n.innerParams.get(a);a.disableInput(),Promise.resolve().then(()=>V(v.inputValidator(c,v.validationMessage))).then(_e=>{a.enableButtons(),a.enableInput(),_e?a.showValidationMessage(_e):g==="deny"?Tl(a,c):Ll(a,c)})},Tl=(a,c)=>{const g=n.innerParams.get(a||void 0);g.showLoaderOnDeny&&Zo(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(),Xs(a)):a.close({isDenied:!0,value:typeof B>"u"?c:B})}).catch(B=>Fp(a||void 0,B))):a.close({isDenied:!0,value:c})},jp=(a,c)=>{a.close({isConfirmed:!0,value:c})},Fp=(a,c)=>{a.rejectPromise(c)},Ll=(a,c)=>{const g=n.innerParams.get(a||void 0);g.showLoaderOnConfirm&&Zo(),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(),Xs(a)):jp(a,typeof B>"u"?c:B)}).catch(B=>Fp(a||void 0,B))):jp(a,c)},BE=(a,c,g)=>{n.innerParams.get(a).toast?DE(a,c,g):(RE(c),jE(c),FE(a,c,g))},DE=(a,c,g)=>{c.popup.onclick=()=>{const v=n.innerParams.get(a);v&&(NE(v)||v.timer||v.input)||g(Xo.close)}},NE=a=>a.showConfirmButton||a.showDenyButton||a.showCancelButton||a.showCloseButton;let Pr=!1;const RE=a=>{a.popup.onmousedown=()=>{a.container.onmouseup=function(c){a.container.onmouseup=void 0,c.target===a.container&&(Pr=!0)}}},jE=a=>{a.container.onmousedown=()=>{a.popup.onmouseup=function(c){a.popup.onmouseup=void 0,(c.target===a.popup||a.popup.contains(c.target))&&(Pr=!0)}}},FE=(a,c,g)=>{c.container.onclick=v=>{const B=n.innerParams.get(a);if(Pr){Pr=!1;return}v.target===c.container&&A(B.allowOutsideClick)&&g(Xo.backdrop)}},UE=a=>typeof a=="object"&&a.jquery,Up=a=>a instanceof Element||UE(a),HE=a=>{const c={};return typeof a[0]=="object"&&!Up(a[0])?Object.assign(c,a[0]):["title","html","icon"].forEach((g,v)=>{const B=a[v];typeof B=="string"||Up(B)?c[g]=B:B!==void 0&&h(`Unexpected type of ${g}! Expected "string" or "Element", got ${typeof B}`)}),c};function zE(){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 qE(a){class c extends this{_main(v,B){return super._main(v,Object.assign({},a,B))}}return c}const VE=()=>k.timeout&&k.timeout.getTimerLeft(),Hp=()=>{if(k.timeout)return C(),k.timeout.stop()},zp=()=>{if(k.timeout){const a=k.timeout.start();return _(a),a}},WE=()=>{const a=k.timeout;return a&&(a.running?Hp():zp())},KE=a=>{if(k.timeout){const c=k.timeout.increase(a);return _(c,!0),c}},GE=()=>k.timeout&&k.timeout.isRunning();let qp=!1;const Ml={};function JE(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Ml[a]=this,qp||(document.body.addEventListener("click",YE),qp=!0)}const YE=a=>{for(let c=a.target;c&&c!==document;c=c.parentNode)for(const g in Ml){const v=c.getAttribute(g);if(v){Ml[g].fire({template:v});return}}};var XE=Object.freeze({__proto__:null,argsToParams:HE,bindClickHandler:JE,clickCancel:MS,clickConfirm:kp,clickDeny:LS,enableLoading:Zo,fire:zE,getActions:we,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:VE,getTimerProgressBar:Le,getTitle:de,getValidationMessage:Ee,increaseTimer:KE,isDeprecatedParameter:Pl,isLoading:vt,isTimerRunning:GE,isUpdatableParameter:Mp,isValidParameter:Lp,isVisible:TS,mixin:qE,resumeTimer:zp,showLoading:Zo,stopTimer:Hp,toggleTimer:WE});class QE{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 Vp=["swal-title","swal-html","swal-footer"],ZE=a=>{const c=typeof a.template=="string"?document.querySelector(a.template):a.template;if(!c)return{};const g=c.content;return aA(g),Object.assign(eA(g),tA(g),nA(g),oA(g),sA(g),iA(g),rA(g,Vp))},eA=a=>{const c={};return Array.from(a.querySelectorAll("swal-param")).forEach(v=>{ko(v,["name","value"]);const B=v.getAttribute("name"),_e=v.getAttribute("value");typeof Qo[B]=="boolean"?c[B]=_e!=="false":typeof Qo[B]=="object"?c[B]=JSON.parse(_e):c[B]=_e}),c},tA=a=>{const c={};return Array.from(a.querySelectorAll("swal-function-param")).forEach(v=>{const B=v.getAttribute("name"),_e=v.getAttribute("value");c[B]=new Function(`return ${_e}`)()}),c},nA=a=>{const c={};return Array.from(a.querySelectorAll("swal-button")).forEach(v=>{ko(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},oA=a=>{const c={},g=a.querySelector("swal-image");return g&&(ko(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},sA=a=>{const c={},g=a.querySelector("swal-icon");return g&&(ko(g,["type","color"]),g.hasAttribute("type")&&(c.icon=g.getAttribute("type")),g.hasAttribute("color")&&(c.iconColor=g.getAttribute("color")),c.iconHtml=g.innerHTML),c},iA=a=>{const c={},g=a.querySelector("swal-input");g&&(ko(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=>{ko(B,["value"]);const _e=B.getAttribute("value"),We=B.innerHTML;c.inputOptions[_e]=We})),c},rA=(a,c)=>{const g={};for(const v in c){const B=c[v],_e=a.querySelector(B);_e&&(ko(_e,[]),g[B.replace(/^swal-/,"")]=_e.innerHTML.trim())}return g},aA=a=>{const c=Vp.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}>`)})},ko=(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."}`])})},Wp=10,lA=a=>{const c=T(),g=U();typeof a.willOpen=="function"&&a.willOpen(g);const B=window.getComputedStyle(document.body).overflowY;dA(c,g,a),setTimeout(()=>{cA(c,g)},Wp),Tt()&&(uA(c,a.scrollbarPadding,B),HS()),!$n()&&!k.previousActiveElement&&(k.previousActiveElement=document.activeElement),typeof a.didOpen=="function"&&setTimeout(()=>a.didOpen(g)),F(c,i["no-transition"])},Kp=a=>{const c=U();if(a.target!==c)return;const g=T();c.removeEventListener(Gs,Kp),g.style.overflowY="auto"},cA=(a,c)=>{Gs&&w(c)?(a.style.overflowY="hidden",c.addEventListener(Gs,Kp)):a.style.overflowY="auto"},uA=(a,c,g)=>{zS(),c&&g!=="hidden"&&YS(),setTimeout(()=>{a.scrollTop=0})},dA=(a,c,g)=>{L(a,g.showClass.backdrop),c.style.setProperty("opacity","0","important"),q(c,"grid"),setTimeout(()=>{L(c,g.showClass.popup),c.style.removeProperty("opacity")},Wp),L([document.documentElement,document.body],i.shown),g.heightAuto&&g.backdrop&&!g.toast&&L([document.documentElement,document.body],i["height-auto"])};var Gp={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 fA(a){a.inputValidator||Object.keys(Gp).forEach(c=>{a.input===c&&(a.inputValidator=Gp[c])})}function pA(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 hA(a){fA(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`),pA(a),typeof a.title=="string"&&(a.title=a.title.split(`
`).join("<br />")),Ks(a)}let rn;class es{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 _e=rn._main(rn.params);n.promise.set(this,_e)}_main(c){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};wE(Object.assign({},g,c)),k.currentInstance&&(k.currentInstance._destroy(),Tt()&&Ap()),k.currentInstance=rn;const v=gA(c,g);hA(v),Object.freeze(v),k.timeout&&(k.timeout.stop(),delete k.timeout),clearTimeout(k.restoreFocusTimeout);const B=wA(rn);return Cp(rn,v),n.innerParams.set(rn,v),mA(rn,B,v)}then(c){return n.promise.get(this).then(c)}finally(c){return n.promise.get(this).finally(c)}}const mA=(a,c,g)=>new Promise((v,B)=>{const _e=We=>{a.close({isDismissed:!0,dismiss:We})};Ys.swalPromiseResolve.set(a,v),Ys.swalPromiseReject.set(a,B),c.confirmButton.onclick=()=>{IE(a)},c.denyButton.onclick=()=>{TE(a)},c.cancelButton.onclick=()=>{LE(a,_e)},c.closeButton.onclick=()=>{_e(Xo.close)},BE(a,c,_e),BS(a,k,g,_e),CE(a,g),lA(g),yA(k,g,_e),bA(c,g),setTimeout(()=>{c.container.scrollTop=0})}),gA=(a,c)=>{const g=ZE(a),v=Object.assign({},Qo,c,g,a);return v.showClass=Object.assign({},Qo.showClass,v.showClass),v.hideClass=Object.assign({},Qo.hideClass,v.hideClass),v},wA=a=>{const c={popup:U(),container:T(),actions:we(),confirmButton:ae(),denyButton:D(),cancelButton:Ue(),loader:N(),closeButton:Xe(),validationMessage:Ee(),progressSteps:re()};return n.domCache.set(a,c),c},yA=(a,c,g)=>{const v=Le();G(v),c.timer&&(a.timeout=new QE(()=>{g("timer"),delete a.timeout},c.timer),c.timerProgressBar&&(q(v),at(v,c,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&_(c.timer)})))},bA=(a,c)=>{if(!c.toast){if(!A(c.allowEnterKey)){_A();return}vA(a,c)||Al(-1,1)}},vA=(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,_A=()=>{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(es.prototype,Dp),Object.assign(es,XE),Object.keys(Dp).forEach(a=>{es[a]=function(){if(rn)return rn[a](...arguments)}}),es.DismissReason=Xo,es.version="11.7.2";const Or=es;return Or.default=Or,Or}),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}')})(Ul);const me=Ul.exports,sh=["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"],ih=["jpg","jpeg","png","gif","bmp","svg"],rh=["mp3","wav","wma","ogg","ape","flac","aac"];function ah(e){return JSON.parse(JSON.stringify(e))}function Lr(e,...t){return new e(t[0])}function ss(){return Math.floor(Date.now()/1e3)}function Hl(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 Ut(e){if(typeof os=="function")return os(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 lh(e,t){return e=e.replace(/^[\\]+/g,""),t?"/"+e:e}function zl(e){return/^magnet:\?xt=urn:btih/.test(e)}function ql(e){return/^ed2k:\/\/\|file\|/.test(e)}function Vl(e){return`magnet:?xt=urn:btih:${e.toUpperCase()}`}function Wl(e){const t=e.match(/([a-z\d]{32,40})/i);return t?t[1]:""}function ch(e,t=!0){return(t?/^([a-z\d]{32})$|^([a-z\d]{40})$/i:/^[a-z\d]{32,40}$/i).test(e)}function uh(e,t=location.href){const n=new RegExp("(\\?|#|&)"+e+"=([^&#]*)(&|#|$)"),o=t.match(n);return o?o[2]:""}function Zs(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 Kl(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 Gl(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 dh(e,t=100,n=12e4,o=document){const s=await Yn(e,t,n,o);if(s.length)return s[0];throw new Error(`未找到元素:${e}`)}async function Yn(e,t=100,n=12e4,o=document){const s=e.indexOf("//")===0;function i(r){if(s){const l=Gl(e);l.length>0&&r(l)}else{const l=o.querySelectorAll(e);l.length&&r(Array.from(l))}}try{return await ei(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=Gl(e);r.length>0&&i(unsafeWindow.$(r))}else{const r=unsafeWindow.$(e);r.length&&i(r)}}try{return await ei(s,t,n)}catch(i){throw console.warn("[find]",i),new Error(`查找元素超时:${e}`)}}async function ei(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 Ht(e){return new Promise(t=>{setTimeout(t,e)})}function Jl(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 me.fire({toast:!0,position:"top",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:t=>{t.addEventListener("mouseenter",me.stopTimer),t.addEventListener("mouseleave",me.resumeTimer)},...e})}function ti(e,t){t=t||window,t.postMessage(e)}function Xn(e,t,n){if(n){const o=Qs(e,{});Tr(e,{...o,...t})}else Tr(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 fh(e){return e?sh.indexOf(e.toLowerCase())>-1:!1}function ph(e){return e?ih.indexOf(e.toLowerCase())>-1:!1}function hh(e){return e?rh.indexOf(e.toLowerCase())>-1:!1}var Ie=(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))(Ie||{}),is=(e=>(e.listItemHover="列表项悬浮菜单",e.listItemHoverSub="列表项悬浮子菜单",e.listItemContext="列表项右键菜单",e.listItemContextSub="列表项右键子菜单",e.selection="选中项菜单",e.selectionSub="选中项子菜单",e.dirContext="当前目录右键菜单",e.dirContextSub="当前目录右键子菜单",e))(is||{}),Qn=(e=>(e[e.after=0]="after",e[e.before=1]="before",e))(Qn||{});const lt={get:async(e,t)=>Qs(e,t),set:async(e,t)=>Tr(e,t),remove:async e=>nh(e)},Yl="clouddrive_configs";function Mr(e){return{active:!1,url:"http://localhost:19798",root:"/115",memo:"",...e}}async function Xl(){const e=[Mr()],t=await lt.get(Yl,e);return t||e}async function Ql(e){e.some(t=>t.active)||(e[0].active=!0),await lt.set(Yl,e)}async function Br(){return(await Xl()).find(t=>t.active)||Mr()}var Dr=(e=>(e.play="play",e.download="download",e))(Dr||{});function Zl(e){return e.startsWith("file://")}async function ni(e,t,n){let{url:o,root:s}=e;if(!o)throw new Error("未设置CloudDrive地址!");(o.startsWith("/")||o.startsWith("\\"))&&(o=`file:///${o}`),Zl(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 ec(e,t){let{url:n,root:o}=e;if(!n)throw new Error("未设置CloudDrive地址!");return(n.startsWith("/")||n.startsWith("\\"))&&(n=`file:///${n}`),Zl(n)?await ni(e,t,"play"):await ni(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 mh={[-1]:"失败",[0]:"违规",[1]:"下载中",[2]:"成功"};var kt=(e=>(e.all="all",e.failed="failed",e.success="success",e.magnet="magnet",e.magnetEd2k="magnetEd2k",e))(kt||{}),tc=(e=>(e[e.true=1]="true",e[e.false=0]="false",e))(tc||{}),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||{}),nc=(e=>(e.userPtime="user_ptime",e.fileName="file_name",e.fileSize="file_size",e.fileType="file_type",e))(nc||{});function gh(e){return{offset:0,limit:1150,aid:1,cid:"",format:"json",o:"user_ptime",asc:0,search_value:"",...e}}function oc(e){return{aid:1,cid:"",o:"user_ptime",asc:0,offset:0,show_dir:1,limit:115,natsort:0,format:"json",...e}}function sc(e,t){return function(){return e.apply(t,arguments)}}const{toString:ic}=Object.prototype,{getPrototypeOf:Nr}=Object,Rr=(e=>t=>{const n=ic.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ln=e=>(e=e.toLowerCase(),t=>Rr(t)===e),oi=e=>t=>typeof t===e,{isArray:Po}=Array,rs=oi("undefined");function wh(e){return e!==null&&!rs(e)&&e.constructor!==null&&!rs(e.constructor)&&En(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rc=ln("ArrayBuffer");function yh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rc(e.buffer),t}const bh=oi("string"),En=oi("function"),ac=oi("number"),jr=e=>e!==null&&typeof e=="object",vh=e=>e===!0||e===!1,si=e=>{if(Rr(e)!=="object")return!1;const t=Nr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_h=ln("Date"),xh=ln("File"),Ch=ln("Blob"),$h=ln("FileList"),kh=e=>jr(e)&&En(e.pipe),Sh=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||ic.call(e)===t||En(e.toString)&&e.toString()===t)},Eh=ln("URLSearchParams"),Ah=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function as(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 lc(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 cc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),uc=e=>!rs(e)&&e!==cc;function Fr(){const{caseless:e}=uc(this)&&this||{},t={},n=(o,s)=>{const i=e&&lc(t,s)||s;si(t[i])&&si(o)?t[i]=Fr(t[i],o):si(o)?t[i]=Fr({},o):Po(o)?t[i]=o.slice():t[i]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&as(arguments[o],n);return t}const Ph=(e,t,n,{allOwnKeys:o}={})=>(as(t,(s,i)=>{n&&En(s)?e[i]=sc(s,n):e[i]=s},{allOwnKeys:o}),e),Oh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ih=(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)},Th=(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&&Nr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Lh=(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},Mh=e=>{if(!e)return null;if(Po(e))return e;let t=e.length;if(!ac(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Bh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nr(Uint8Array)),Dh=(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])}},Nh=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Rh=ln("HTMLFormElement"),jh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),dc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Fh=ln("RegExp"),fc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};as(n,(s,i)=>{t(s,i,e)!==!1&&(o[i]=s)}),Object.defineProperties(e,o)},Uh=e=>{fc(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+"'")})}})},Hh=(e,t)=>{const n={},o=s=>{s.forEach(i=>{n[i]=!0})};return Po(e)?o(e):o(String(e).split(t)),n},zh=()=>{},qh=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ur="abcdefghijklmnopqrstuvwxyz",pc="0123456789",hc={DIGIT:pc,ALPHA:Ur,ALPHA_DIGIT:Ur+Ur.toUpperCase()+pc},Vh=(e=16,t=hc.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function Wh(e){return!!(e&&En(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const z={isArray:Po,isArrayBuffer:rc,isBuffer:wh,isFormData:Sh,isArrayBufferView:yh,isString:bh,isNumber:ac,isBoolean:vh,isObject:jr,isPlainObject:si,isUndefined:rs,isDate:_h,isFile:xh,isBlob:Ch,isRegExp:Fh,isFunction:En,isStream:kh,isURLSearchParams:Eh,isTypedArray:Bh,isFileList:$h,forEach:as,merge:Fr,extend:Ph,trim:Ah,stripBOM:Oh,inherits:Ih,toFlatObject:Th,kindOf:Rr,kindOfTest:ln,endsWith:Lh,toArray:Mh,forEachEntry:Dh,matchAll:Nh,isHTMLForm:Rh,hasOwnProperty:dc,hasOwnProp:dc,reduceDescriptors:fc,freezeMethods:Uh,toObjectSet:Hh,toCamelCase:jh,noop:zh,toFiniteNumber:qh,findKey:lc,global:cc,isContextDefined:uc,ALPHABET:hc,generateString:Vh,isSpecCompliantForm:Wh,toJSONObject:e=>{const t=new Array(10),n=(o,s)=>{if(jr(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const i=Po(o)?[]:{};return as(o,(r,l)=>{const d=n(r,s+1);!rs(d)&&(i[l]=d)}),t[s]=void 0,i}}return o};return n(e,0)}};function je(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(je,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 mc=je.prototype,gc={};["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=>{gc[e]={value:e}}),Object.defineProperties(je,gc),Object.defineProperty(mc,"isAxiosError",{value:!0}),je.from=(e,t,n,o,s,i)=>{const r=Object.create(mc);return z.toFlatObject(e,r,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),je.call(r,e.message,t,n,o,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Kh=null;function Hr(e){return z.isPlainObject(e)||z.isArray(e)}function wc(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function yc(e,t,n){return e?e.concat(t).map(function(s,i){return s=wc(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Gh(e){return z.isArray(e)&&!e.some(Hr)}const Jh=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function ii(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,O){return!z.isUndefined(O[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(x){if(x===null)return"";if(z.isDate(x))return x.toISOString();if(!d&&z.isBlob(x))throw new je("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(x)||z.isTypedArray(x)?d&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function p(x,A,O){let V=x;if(x&&!O&&typeof x=="object"){if(z.endsWith(A,"{}"))A=o?A:A.slice(0,-2),x=JSON.stringify(x);else if(z.isArray(x)&&Gh(x)||(z.isFileList(x)||z.endsWith(A,"[]"))&&(V=z.toArray(x)))return A=wc(A),V.forEach(function(T,Y){!(z.isUndefined(T)||T===null)&&t.append(r===!0?yc([A],Y,i):r===null?A:A+"[]",f(T))}),!1}return Hr(x)?!0:(t.append(yc(O,A,i),f(x)),!1)}const h=[],y=Object.assign(Jh,{defaultVisitor:p,convertValue:f,isVisitable:Hr});function E(x,A){if(!z.isUndefined(x)){if(h.indexOf(x)!==-1)throw Error("Circular reference detected in "+A.join("."));h.push(x),z.forEach(x,function(V,I){(!(z.isUndefined(V)||V===null)&&s.call(t,V,z.isString(I)?I.trim():I,A,y))===!0&&E(V,A?A.concat(I):[I])}),h.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return E(e),t}function bc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function zr(e,t){this._pairs=[],e&&ii(e,this,t)}const vc=zr.prototype;vc.append=function(t,n){this._pairs.push([t,n])},vc.toString=function(t){const n=t?function(o){return t.call(this,o,bc)}:bc;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Yh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _c(e,t,n){if(!t)return e;const o=n&&n.encode||Yh,s=n&&n.serialize;let i;if(s?i=s(t,n):i=z.isURLSearchParams(t)?t.toString():new zr(t,n).toString(o),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Xh{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 xc=Xh,Cc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qh=typeof URLSearchParams<"u"?URLSearchParams:zr,Zh=typeof FormData<"u"?FormData:null,em=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),tm=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Qt={isBrowser:!0,classes:{URLSearchParams:Qh,FormData:Zh,Blob},isStandardBrowserEnv:em,isStandardBrowserWebWorkerEnv:tm,protocols:["http","https","file","blob","url","data"]};function nm(e,t){return ii(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 om(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sm(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 $c(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]=sm(s[r])),!l)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(o,s)=>{t(om(o),s,n,0)}),n}return null}const im={"Content-Type":void 0};function rm(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 ri={transitional:Cc,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($c(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 nm(t,this.formSerializer).toString();if((l=z.isFileList(t))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ii(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),rm(t)):t}],transformResponse:[function(t){const n=this.transitional||ri.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"?je.from(l,je.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){ri.headers[t]={}}),z.forEach(["post","put","patch"],function(t){ri.headers[t]=z.merge(im)});const qr=ri,am=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"]),lm=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]&&am[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},kc=Symbol("internals");function ls(e){return e&&String(e).trim().toLowerCase()}function ai(e){return e===!1||e==null?e:z.isArray(e)?e.map(ai):String(e)}function cm(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 um(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Vr(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 dm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function fm(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 li{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function i(l,d,f){const p=ls(d);if(!p)throw new Error("header name must be a non-empty string");const h=z.findKey(s,p);(!h||s[h]===void 0||f===!0||f===void 0&&s[h]!==!1)&&(s[h||d]=ai(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())&&!um(t)?r(lm(t),n):t!=null&&i(n,t,o),this}get(t,n){if(t=ls(t),t){const o=z.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return cm(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=ls(t),t){const o=z.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Vr(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function i(r){if(r=ls(r),r){const l=z.findKey(o,r);l&&(!n||Vr(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||Vr(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]=ai(s),delete n[i];return}const l=t?dm(i):String(i).trim();l!==i&&delete n[i],n[l]=ai(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[kc]=this[kc]={accessors:{}}).accessors,s=this.prototype;function i(r){const l=ls(r);o[l]||(fm(s,r),o[l]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}}li.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.freezeMethods(li.prototype),z.freezeMethods(li);const cn=li;function Wr(e,t){const n=this||qr,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 Sc(e){return!!(e&&e.__CANCEL__)}function cs(e,t,n){je.call(this,e==null?"canceled":e,je.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(cs,je,{__CANCEL__:!0});function pm(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new je("Request failed with status code "+n.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const hm=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 mm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gm(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ec(e,t){return e&&!mm(t)?gm(e,t):t}const wm=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 ym(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bm(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 h=i,y=0;for(;h!==s;)y+=n[h++],h=h%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-r<t)return;const E=p&&f-p;return E?Math.round(y*1e3/E):void 0}}function Ac(e,t){let n=0;const o=bm(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 ci={http:Kh,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 E=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(E+":"+x))}const p=Ec(e.baseURL,e.url);f.open(e.method.toUpperCase(),_c(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;const E=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:E,config:e,request:f};pm(function(V){n(V),d()},function(V){o(V),d()},A),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){!f||(o(new je("Request aborted",je.ECONNABORTED,e,f)),f=null)},f.onerror=function(){o(new je("Network Error",je.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const A=e.transitional||Cc;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),o(new je(x,A.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,e,f)),f=null},Qt.isStandardBrowserEnv){const E=(e.withCredentials||wm(p))&&e.xsrfCookieName&&hm.read(e.xsrfCookieName);E&&i.set(e.xsrfHeaderName,E)}s===void 0&&i.setContentType(null),"setRequestHeader"in f&&z.forEach(i.toJSON(),function(x,A){f.setRequestHeader(A,x)}),z.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),r&&r!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",Ac(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Ac(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=E=>{!f||(o(!E||E.type?new cs(null,e,f):E),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const y=ym(p);if(y&&Qt.protocols.indexOf(y)===-1){o(new je("Unsupported protocol "+y+":",je.ERR_BAD_REQUEST,e));return}f.send(s||null)})}};z.forEach(ci,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vm={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)?ci[n.toLowerCase()]:n));s++);if(!o)throw o===!1?new je(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(z.hasOwnProp(ci,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:ci};function Kr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cs(null,e)}function Pc(e){return Kr(e),e.headers=cn.from(e.headers),e.data=Wr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vm.getAdapter(e.adapter||qr.adapter)(e).then(function(o){return Kr(e),o.data=Wr.call(e,e.transformResponse,o),o.headers=cn.from(o.headers),o},function(o){return Sc(o)||(Kr(e),o&&o.response&&(o.response.data=Wr.call(e,e.transformResponse,o.response),o.response.headers=cn.from(o.response.headers))),Promise.reject(o)})}const Oc=e=>e instanceof cn?e.toJSON():e;function Oo(e,t){t=t||{};const n={};function o(f,p,h){return z.isPlainObject(f)&&z.isPlainObject(p)?z.merge.call({caseless:h},f,p):z.isPlainObject(p)?z.merge({},p):z.isArray(p)?p.slice():p}function s(f,p,h){if(z.isUndefined(p)){if(!z.isUndefined(f))return o(void 0,f,h)}else return o(f,p,h)}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,h){if(h in t)return o(f,p);if(h 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(Oc(f),Oc(p),!0)};return z.forEach(Object.keys(e).concat(Object.keys(t)),function(p){const h=d[p]||s,y=h(e[p],t[p],p);z.isUndefined(y)&&h!==l||(n[p]=y)}),n}const Ic="1.3.3",Gr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gr[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Tc={};Gr.transitional=function(t,n,o){function s(i,r){return"[Axios v"+Ic+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,l)=>{if(t===!1)throw new je(s(r," has been removed"+(n?" in "+n:"")),je.ERR_DEPRECATED);return n&&!Tc[r]&&(Tc[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 _m(e,t,n){if(typeof e!="object")throw new je("options must be an object",je.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 je("option "+i+" must be "+d,je.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new je("Unknown option "+i,je.ERR_BAD_OPTION)}}const Jr={assertOptions:_m,validators:Gr},An=Jr.validators;class ui{constructor(t){this.defaults=t,this.interceptors={request:new xc,response:new xc}}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&&Jr.assertOptions(o,{silentJSONParsing:An.transitional(An.boolean),forcedJSONParsing:An.transitional(An.boolean),clarifyTimeoutError:An.transitional(An.boolean)},!1),s!==void 0&&Jr.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"],x=>{delete i[x]}),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,h=0,y;if(!d){const x=[Pc.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,f),y=x.length,p=Promise.resolve(n);h<y;)p=p.then(x[h++],x[h++]);return p}y=l.length;let E=n;for(h=0;h<y;){const x=l[h++],A=l[h++];try{E=x(E)}catch(O){A.call(this,O);break}}try{p=Pc.call(this,E)}catch(x){return Promise.reject(x)}for(h=0,y=f.length;h<y;)p=p.then(f[h++],f[h++]);return p}getUri(t){t=Oo(this.defaults,t);const n=Ec(t.baseURL,t.url);return _c(n,t.params,t.paramsSerializer)}}z.forEach(["delete","get","head","options"],function(t){ui.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}))}}ui.prototype[t]=n(),ui.prototype[t+"Form"]=n(!0)});const di=ui;class Yr{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 cs(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 Yr(function(s){t=s}),cancel:t}}}const xm=Yr;function Cm(e){return function(n){return e.apply(null,n)}}function $m(e){return z.isObject(e)&&e.isAxiosError===!0}const Xr={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(Xr).forEach(([e,t])=>{Xr[t]=e});const km=Xr;function Lc(e){const t=new di(e),n=sc(di.prototype.request,t);return z.extend(n,di.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Lc(Oo(e,s))},n}const ot=Lc(qr);ot.Axios=di,ot.CanceledError=cs,ot.CancelToken=xm,ot.isCancel=Sc,ot.VERSION=Ic,ot.toFormData=ii,ot.AxiosError=je,ot.Cancel=ot.CanceledError,ot.all=function(t){return Promise.all(t)},ot.spread=Cm,ot.isAxiosError=$m,ot.mergeConfig=Oo,ot.AxiosHeaders=cn,ot.formToJSON=e=>$c(z.isHTMLForm(e)?new FormData(e):e),ot.HttpStatusCode=km,ot.default=ot;const Mt=ot,{Axios:BA,AxiosError:DA,CanceledError:NA,isCancel:RA,CancelToken:jA,VERSION:FA,all:UA,Cancel:HA,isAxiosError:zA,spread:qA,toFormData:Sm,AxiosHeaders:VA,HttpStatusCode:WA,formToJSON:KA,mergeConfig:GA}=Mt;class Em extends Error{}class Qr extends Em{constructor(){super(...arguments);Ae(this,"message","搜索失败!")}}class Mc extends Qr{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 Am={exports:{}};(function(e){var t=function(n){var o=1e7,s=7,i=9007199254740992,r=x(i),l="0123456789abcdefghijklmnopqrstuvwxyz",d=typeof BigInt=="function";function f(m,w,_,C){return typeof m>"u"?f[0]:typeof w<"u"?+w==10&&!_?R(m):F(m,w,_,C):R(m)}function p(m,w){this.value=m,this.sign=w,this.isSmall=!1}p.prototype=Object.create(f.prototype);function h(m){this.value=m,this.sign=m<0,this.isSmall=!0}h.prototype=Object.create(f.prototype);function y(m){this.value=m}y.prototype=Object.create(f.prototype);function E(m){return-i<m&&m<i}function x(m){return m<1e7?[m]:m<1e14?[m%1e7,Math.floor(m/1e7)]:[m%1e7,Math.floor(m/1e7)%1e7,Math.floor(m/1e14)]}function A(m){O(m);var w=m.length;if(w<4&&Se(m,r)<0)switch(w){case 0:return 0;case 1:return m[0];case 2:return m[0]+m[1]*o;default:return m[0]+(m[1]+m[2]*o)*o}return m}function O(m){for(var w=m.length;m[--w]===0;);m.length=w+1}function V(m){for(var w=new Array(m),_=-1;++_<m;)w[_]=0;return w}function I(m){return m>0?Math.floor(m):Math.ceil(m)}function T(m,w){var _=m.length,C=w.length,P=new Array(_),k=0,j=o,H,X;for(X=0;X<C;X++)H=m[X]+w[X]+k,k=H>=j?1:0,P[X]=H-k*j;for(;X<_;)H=m[X]+k,k=H===j?1:0,P[X++]=H-k*j;return k>0&&P.push(k),P}function Y(m,w){return m.length>=w.length?T(m,w):T(w,m)}function ee(m,w){var _=m.length,C=new Array(_),P=o,k,j;for(j=0;j<_;j++)k=m[j]-P+w,w=Math.floor(k/P),C[j]=k-w*P,w+=1;for(;w>0;)C[j++]=w%P,w=Math.floor(w/P);return C}p.prototype.add=function(m){var w=R(m);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(Y(_,C),this.sign)},p.prototype.plus=p.prototype.add,h.prototype.add=function(m){var w=R(m),_=this.value;if(_<0!==w.sign)return this.subtract(w.negate());var C=w.value;if(w.isSmall){if(E(_+C))return new h(_+C);C=x(Math.abs(C))}return new p(ee(C,Math.abs(_)),_<0)},h.prototype.plus=h.prototype.add,y.prototype.add=function(m){return new y(this.value+R(m).value)},y.prototype.plus=y.prototype.add;function U(m,w){var _=m.length,C=w.length,P=new Array(_),k=0,j=o,H,X;for(H=0;H<C;H++)X=m[H]-k-w[H],X<0?(X+=j,k=1):k=0,P[H]=X;for(H=C;H<_;H++){if(X=m[H]-k,X<0)X+=j;else{P[H++]=X;break}P[H]=X}for(;H<_;H++)P[H]=m[H];return O(P),P}function se(m,w,_){var C;return Se(m,w)>=0?C=U(m,w):(C=U(w,m),_=!_),C=A(C),typeof C=="number"?(_&&(C=-C),new h(C)):new p(C,_)}function ie(m,w,_){var C=m.length,P=new Array(C),k=-w,j=o,H,X;for(H=0;H<C;H++)X=m[H]+k,k=Math.floor(X/j),X%=j,P[H]=X<0?X+j:X;return P=A(P),typeof P=="number"?(_&&(P=-P),new h(P)):new p(P,_)}p.prototype.subtract=function(m){var w=R(m);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,h.prototype.subtract=function(m){var w=R(m),_=this.value;if(_<0!==w.sign)return this.add(w.negate());var C=w.value;return w.isSmall?new h(_-C):ie(C,Math.abs(_),_>=0)},h.prototype.minus=h.prototype.subtract,y.prototype.subtract=function(m){return new y(this.value-R(m).value)},y.prototype.minus=y.prototype.subtract,p.prototype.negate=function(){return new p(this.value,!this.sign)},h.prototype.negate=function(){var m=this.sign,w=new h(-this.value);return w.sign=!m,w},y.prototype.negate=function(){return new y(-this.value)},p.prototype.abs=function(){return new p(this.value,!1)},h.prototype.abs=function(){return new h(Math.abs(this.value))},y.prototype.abs=function(){return new y(this.value>=0?this.value:-this.value)};function de(m,w){var _=m.length,C=w.length,P=_+C,k=V(P),j=o,H,X,$e,xe,he;for($e=0;$e<_;++$e){xe=m[$e];for(var Ne=0;Ne<C;++Ne)he=w[Ne],H=xe*he+k[$e+Ne],X=Math.floor(H/j),k[$e+Ne]=H-X*j,k[$e+Ne+1]+=X}return O(k),k}function Pe(m,w){var _=m.length,C=new Array(_),P=o,k=0,j,H;for(H=0;H<_;H++)j=m[H]*w+k,k=Math.floor(j/P),C[H]=j-k*P;for(;k>0;)C[H++]=k%P,k=Math.floor(k/P);return C}function pe(m,w){for(var _=[];w-- >0;)_.push(0);return _.concat(m)}function re(m,w){var _=Math.max(m.length,w.length);if(_<=30)return de(m,w);_=Math.ceil(_/2);var C=m.slice(_),P=m.slice(0,_),k=w.slice(_),j=w.slice(0,_),H=re(P,j),X=re(C,k),$e=re(Y(P,C),Y(j,k)),xe=Y(Y(H,pe(U(U($e,H),X),_)),pe(X,2*_));return O(xe),xe}function Ee(m,w){return-.012*m-.012*w+15e-6*m*w>0}p.prototype.multiply=function(m){var w=R(m),_=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=x(k)}return Ee(_.length,C.length)?new p(re(_,C),P):new p(de(_,C),P)},p.prototype.times=p.prototype.multiply;function ae(m,w,_){return m<o?new p(Pe(w,m),_):new p(de(w,x(m)),_)}h.prototype._multiplyBySmall=function(m){return E(m.value*this.value)?new h(m.value*this.value):ae(Math.abs(m.value),x(Math.abs(this.value)),this.sign!==m.sign)},p.prototype._multiplyBySmall=function(m){return m.value===0?f[0]:m.value===1?this:m.value===-1?this.negate():ae(Math.abs(m.value),this.value,this.sign!==m.sign)},h.prototype.multiply=function(m){return R(m)._multiplyBySmall(this)},h.prototype.times=h.prototype.multiply,y.prototype.multiply=function(m){return new y(this.value*R(m).value)},y.prototype.times=y.prototype.multiply;function Ue(m){var w=m.length,_=V(w+w),C=o,P,k,j,H,X;for(j=0;j<w;j++){H=m[j],k=0-H*H;for(var $e=j;$e<w;$e++)X=m[$e],P=2*(H*X)+_[j+$e]+k,k=Math.floor(P/C),_[j+$e]=P-k*C;_[j+w]=k}return O(_),_}p.prototype.square=function(){return new p(Ue(this.value),!1)},h.prototype.square=function(){var m=this.value*this.value;return E(m)?new h(m):new p(Ue(x(Math.abs(this.value))),!1)},y.prototype.square=function(m){return new y(this.value*this.value)};function D(m,w){var _=m.length,C=w.length,P=o,k=V(w.length),j=w[C-1],H=Math.ceil(P/(2*j)),X=Pe(m,H),$e=Pe(w,H),xe,he,Ne,xt,mt,Ws,Ks;for(X.length<=_&&X.push(0),$e.push(0),j=$e[C-1],he=_-C;he>=0;he--){for(xe=P-1,X[he+C]!==j&&(xe=Math.floor((X[he+C]*P+X[he+C-1])/j)),Ne=0,xt=0,Ws=$e.length,mt=0;mt<Ws;mt++)Ne+=xe*$e[mt],Ks=Math.floor(Ne/P),xt+=X[he+mt]-(Ne-Ks*P),Ne=Ks,xt<0?(X[he+mt]=xt+P,xt=-1):(X[he+mt]=xt,xt=0);for(;xt!==0;){for(xe-=1,Ne=0,mt=0;mt<Ws;mt++)Ne+=X[he+mt]-P+$e[mt],Ne<0?(X[he+mt]=Ne+P,Ne=0):(X[he+mt]=Ne,Ne=1);xt+=Ne}k[he]=xe}return X=N(X,H)[0],[A(k),A(X)]}function J(m,w){for(var _=m.length,C=w.length,P=[],k=[],j=o,H,X,$e,xe,he;_;){if(k.unshift(m[--_]),O(k),Se(k,w)<0){P.push(0);continue}X=k.length,$e=k[X-1]*j+k[X-2],xe=w[C-1]*j+w[C-2],X>C&&($e=($e+1)*j),H=Math.ceil($e/xe);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(m,w){var _=m.length,C=V(_),P=o,k,j,H,X;for(H=0,k=_-1;k>=0;--k)X=H*P+m[k],j=I(X/w),H=X-j*w,C[k]=j|0;return[C,H|0]}function we(m,w){var _,C=R(w);if(d)return[new y(m.value/C.value),new y(m.value%C.value)];var P=m.value,k=C.value,j;if(k===0)throw new Error("Cannot divide by zero");if(m.isSmall)return C.isSmall?[new h(I(P/k)),new h(P%k)]:[f[0],m];if(C.isSmall){if(k===1)return[m,f[0]];if(k==-1)return[m.negate(),f[0]];var H=Math.abs(k);if(H<o){_=N(P,H),j=A(_[0]);var X=_[1];return m.sign&&(X=-X),typeof j=="number"?(m.sign!==C.sign&&(j=-j),[new h(j),new h(X)]):[new p(j,m.sign!==C.sign),new h(X)]}k=x(H)}var $e=Se(P,k);if($e===-1)return[f[0],m];if($e===0)return[f[m.sign===C.sign?1:-1],f[0]];P.length+k.length<=200?_=D(P,k):_=J(P,k),j=_[0];var xe=m.sign!==C.sign,he=_[1],Ne=m.sign;return typeof j=="number"?(xe&&(j=-j),j=new h(j)):j=new p(j,xe),typeof he=="number"?(Ne&&(he=-he),he=new h(he)):he=new p(he,Ne),[j,he]}p.prototype.divmod=function(m){var w=we(this,m);return{quotient:w[0],remainder:w[1]}},y.prototype.divmod=h.prototype.divmod=p.prototype.divmod,p.prototype.divide=function(m){return we(this,m)[0]},y.prototype.over=y.prototype.divide=function(m){return new y(this.value/R(m).value)},h.prototype.over=h.prototype.divide=p.prototype.over=p.prototype.divide,p.prototype.mod=function(m){return we(this,m)[1]},y.prototype.mod=y.prototype.remainder=function(m){return new y(this.value%R(m).value)},h.prototype.remainder=h.prototype.mod=p.prototype.remainder=p.prototype.mod,p.prototype.pow=function(m){var w=R(m),_=this.value,C=w.value,P,k,j;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&&E(P=Math.pow(_,C)))return new h(I(P));for(k=this,j=f[1];C&!0&&(j=j.times(k),--C),C!==0;)C/=2,k=k.square();return j},h.prototype.pow=p.prototype.pow,y.prototype.pow=function(m){var w=R(m),_=this.value,C=w.value,P=BigInt(0),k=BigInt(1),j=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,X=f[1];(C&k)===k&&(X=X.times(H),--C),C!==P;)C/=j,H=H.square();return X},p.prototype.modPow=function(m,w){if(m=R(m),w=R(w),w.isZero())throw new Error("Cannot take modPow with modulus 0");var _=f[1],C=this.mod(w);for(m.isNegative()&&(m=m.multiply(f[-1]),C=C.modInv(w));m.isPositive();){if(C.isZero())return f[0];m.isOdd()&&(_=_.multiply(C).mod(w)),m=m.divide(2),C=C.square().mod(w)}return _},y.prototype.modPow=h.prototype.modPow=p.prototype.modPow;function Se(m,w){if(m.length!==w.length)return m.length>w.length?1:-1;for(var _=m.length-1;_>=0;_--)if(m[_]!==w[_])return m[_]>w[_]?1:-1;return 0}p.prototype.compareAbs=function(m){var w=R(m),_=this.value,C=w.value;return w.isSmall?1:Se(_,C)},h.prototype.compareAbs=function(m){var w=R(m),_=Math.abs(this.value),C=w.value;return w.isSmall?(C=Math.abs(C),_===C?0:_>C?1:-1):-1},y.prototype.compareAbs=function(m){var w=this.value,_=R(m).value;return w=w>=0?w:-w,_=_>=0?_:-_,w===_?0:w>_?1:-1},p.prototype.compare=function(m){if(m===1/0)return-1;if(m===-1/0)return 1;var w=R(m),_=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,h.prototype.compare=function(m){if(m===1/0)return-1;if(m===-1/0)return 1;var w=R(m),_=this.value,C=w.value;return w.isSmall?_==C?0:_>C?1:-1:_<0!==w.sign?_<0?-1:1:_<0?1:-1},h.prototype.compareTo=h.prototype.compare,y.prototype.compare=function(m){if(m===1/0)return-1;if(m===-1/0)return 1;var w=this.value,_=R(m).value;return w===_?0:w>_?1:-1},y.prototype.compareTo=y.prototype.compare,p.prototype.equals=function(m){return this.compare(m)===0},y.prototype.eq=y.prototype.equals=h.prototype.eq=h.prototype.equals=p.prototype.eq=p.prototype.equals,p.prototype.notEquals=function(m){return this.compare(m)!==0},y.prototype.neq=y.prototype.notEquals=h.prototype.neq=h.prototype.notEquals=p.prototype.neq=p.prototype.notEquals,p.prototype.greater=function(m){return this.compare(m)>0},y.prototype.gt=y.prototype.greater=h.prototype.gt=h.prototype.greater=p.prototype.gt=p.prototype.greater,p.prototype.lesser=function(m){return this.compare(m)<0},y.prototype.lt=y.prototype.lesser=h.prototype.lt=h.prototype.lesser=p.prototype.lt=p.prototype.lesser,p.prototype.greaterOrEquals=function(m){return this.compare(m)>=0},y.prototype.geq=y.prototype.greaterOrEquals=h.prototype.geq=h.prototype.greaterOrEquals=p.prototype.geq=p.prototype.greaterOrEquals,p.prototype.lesserOrEquals=function(m){return this.compare(m)<=0},y.prototype.leq=y.prototype.lesserOrEquals=h.prototype.leq=h.prototype.lesserOrEquals=p.prototype.leq=p.prototype.lesserOrEquals,p.prototype.isEven=function(){return(this.value[0]&1)===0},h.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},h.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},h.prototype.isPositive=function(){return this.value>0},y.prototype.isPositive=h.prototype.isPositive,p.prototype.isNegative=function(){return this.sign},h.prototype.isNegative=function(){return this.value<0},y.prototype.isNegative=h.prototype.isNegative,p.prototype.isUnit=function(){return!1},h.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},h.prototype.isZero=function(){return this.value===0},y.prototype.isZero=function(){return this.value===BigInt(0)},p.prototype.isDivisibleBy=function(m){var w=R(m);return w.isZero()?!1:w.isUnit()?!0:w.compareAbs(2)===0?this.isEven():this.mod(w).isZero()},y.prototype.isDivisibleBy=h.prototype.isDivisibleBy=p.prototype.isDivisibleBy;function Le(m){var w=m.abs();if(w.isUnit())return!1;if(w.equals(2)||w.equals(3)||w.equals(5))return!0;if(w.isEven()||w.isDivisibleBy(3)||w.isDivisibleBy(5))return!1;if(w.lesser(49))return!0}function Xe(m,w){for(var _=m.prev(),C=_,P=0,k,j,H;C.isEven();)C=C.divide(2),P++;e:for(j=0;j<w.length;j++)if(!m.lesser(w[j])&&(H=t(w[j]).modPow(C,m),!(H.isUnit()||H.equals(_)))){for(k=P-1;k!=0;k--){if(H=H.square().mod(m),H.isUnit())return!1;if(H.equals(_))continue e}return!1}return!0}p.prototype.isPrime=function(m){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(m===!0?2*Math.pow(P,2):P),j=[],H=0;H<k;H++)j.push(t(H+2));return Xe(_,j)},y.prototype.isPrime=h.prototype.isPrime=p.prototype.isPrime,p.prototype.isProbablePrime=function(m,w){var _=Le(this);if(_!==n)return _;for(var C=this.abs(),P=m===n?5:m,k=[],j=0;j<P;j++)k.push(t.randBetween(2,C.minus(2),w));return Xe(C,k)},y.prototype.isProbablePrime=h.prototype.isProbablePrime=p.prototype.isProbablePrime,p.prototype.modInv=function(m){for(var w=t.zero,_=t.one,C=R(m),P=this.abs(),k,j,H;!P.isZero();)k=C.divide(P),j=w,H=C,w=_,C=P,_=j.subtract(k.multiply(_)),P=H.subtract(k.multiply(P));if(!C.isUnit())throw new Error(this.toString()+" and "+m.toString()+" are not co-prime");return w.compare(0)===-1&&(w=w.add(m)),this.isNegative()?w.negate():w},y.prototype.modInv=h.prototype.modInv=p.prototype.modInv,p.prototype.next=function(){var m=this.value;return this.sign?ie(m,1,this.sign):new p(ee(m,1),this.sign)},h.prototype.next=function(){var m=this.value;return m+1<i?new h(m+1):new p(r,!1)},y.prototype.next=function(){return new y(this.value+BigInt(1))},p.prototype.prev=function(){var m=this.value;return this.sign?new p(ee(m,1),!0):ie(m,1,this.sign)},h.prototype.prev=function(){var m=this.value;return m-1>-i?new h(m-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(m){return Math.abs(m)<=o}p.prototype.shiftLeft=function(m){var w=R(m).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=h.prototype.shiftLeft=p.prototype.shiftLeft,p.prototype.shiftRight=function(m){var w,_=R(m).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=we(C,Tt),C=w[1].isNegative()?w[0].prev():w[0],_-=It-1}return w=we(C,Qe[_]),w[1].isNegative()?w[0].prev():w[0]},y.prototype.shiftRight=h.prototype.shiftRight=p.prototype.shiftRight;function vt(m,w,_){w=R(w);for(var C=m.isNegative(),P=w.isNegative(),k=C?m.not():m,j=P?w.not():w,H=0,X=0,$e=null,xe=null,he=[];!k.isZero()||!j.isZero();)$e=we(k,Tt),H=$e[1].toJSNumber(),C&&(H=Tt-1-H),xe=we(j,Tt),X=xe[1].toJSNumber(),P&&(X=Tt-1-X),k=$e[0],j=xe[0],he.push(_(H,X));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=h.prototype.not=p.prototype.not,p.prototype.and=function(m){return vt(this,m,function(w,_){return w&_})},y.prototype.and=h.prototype.and=p.prototype.and,p.prototype.or=function(m){return vt(this,m,function(w,_){return w|_})},y.prototype.or=h.prototype.or=p.prototype.or,p.prototype.xor=function(m){return vt(this,m,function(w,_){return w^_})},y.prototype.xor=h.prototype.xor=p.prototype.xor;var _t=1<<30,ut=(o&-o)*(o&-o)|_t;function et(m){var w=m.value,_=typeof w=="number"?w|_t:typeof w=="bigint"?w|BigInt(_t):w[0]+w[1]*o|ut;return _&-_}function Jn(m,w){if(w.compareTo(m)<=0){var _=Jn(m,w.square(w)),C=_.p,P=_.e,k=C.multiply(w);return k.compareTo(m)<=0?{p:k,e:P*2+1}:{p:C,e:P*2}}return{p:t(1),e:0}}p.prototype.bitLength=function(){var m=this;return m.compareTo(t(0))<0&&(m=m.negate().subtract(t(1))),m.compareTo(t(0))===0?t(0):t(Jn(m,t(2)).e).add(t(1))},y.prototype.bitLength=h.prototype.bitLength=p.prototype.bitLength;function at(m,w){return m=R(m),w=R(w),m.greater(w)?m:w}function b(m,w){return m=R(m),w=R(w),m.lesser(w)?m:w}function S(m,w){if(m=R(m).abs(),w=R(w).abs(),m.equals(w))return m;if(m.isZero())return w;if(w.isZero())return m;for(var _=f[1],C,P;m.isEven()&&w.isEven();)C=b(et(m),et(w)),m=m.divide(C),w=w.divide(C),_=_.multiply(C);for(;m.isEven();)m=m.divide(et(m));do{for(;w.isEven();)w=w.divide(et(w));m.greater(w)&&(P=w,w=m,m=P),w=w.subtract(m)}while(!w.isZero());return _.isUnit()?m:m.multiply(_)}function M(m,w){return m=R(m).abs(),w=R(w).abs(),m.divide(S(m,w)).multiply(w)}function L(m,w,_){m=R(m),w=R(w);var C=_||Math.random,P=b(m,w),k=at(m,w),j=k.subtract(P).add(1);if(j.isSmall)return P.add(Math.floor(C()*j));for(var H=q(j,o).value,X=[],$e=!0,xe=0;xe<H.length;xe++){var he=$e?H[xe]+(xe+1<H.length?H[xe+1]/o:0):o,Ne=I(C()*he);X.push(Ne),Ne<H[xe]&&($e=!1)}return P.add(f.fromArray(X,o,!1))}var F=function(m,w,_,C){_=_||l,m=String(m),C||(m=m.toLowerCase(),_=_.toLowerCase());var P=m.length,k,j=Math.abs(w),H={};for(k=0;k<_.length;k++)H[_[k]]=k;for(k=0;k<P;k++){var X=m[k];if(X!=="-"&&X in H&&H[X]>=j){if(X==="1"&&j===1)continue;throw new Error(X+" is not a valid digit in base "+w+".")}}w=R(w);var $e=[],xe=m[0]==="-";for(k=xe?1:0;k<m.length;k++){var X=m[k];if(X in H)$e.push(R(H[X]));else if(X==="<"){var he=k;do k++;while(m[k]!==">"&&k<m.length);$e.push(R(m.slice(he+1,k)))}else throw new Error(X+" is not a valid character")}return Q($e,w,xe)};function Q(m,w,_){var C=f[0],P=f[1],k;for(k=m.length-1;k>=0;k--)C=C.add(m[k].times(P)),P=P.times(w);return _?C.negate():C}function oe(m,w){return w=w||l,m<w.length?w[m]:"<"+m+">"}function q(m,w){if(w=t(w),w.isZero()){if(m.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(w.equals(-1)){if(m.isZero())return{value:[0],isNegative:!1};if(m.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-m.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var _=Array.apply(null,Array(m.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return _.unshift([1]),{value:[].concat.apply([],_),isNegative:!1}}var C=!1;if(m.isNegative()&&w.isPositive()&&(C=!0,m=m.abs()),w.isUnit())return m.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(m.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:C};for(var P=[],k=m,j;k.isNegative()||k.compareAbs(w)>=0;){j=k.divmod(w),k=j.quotient;var H=j.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 G(m,w,_){var C=q(m,w);return(C.isNegative?"-":"")+C.value.map(function(P){return oe(P,_)}).join("")}p.prototype.toArray=function(m){return q(this,m)},h.prototype.toArray=function(m){return q(this,m)},y.prototype.toArray=function(m){return q(this,m)},p.prototype.toString=function(m,w){if(m===n&&(m=10),m!==10)return G(this,m,w);for(var _=this.value,C=_.length,P=String(_[--C]),k="0000000",j;--C>=0;)j=String(_[C]),P+=k.slice(j.length)+j;var H=this.sign?"-":"";return H+P},h.prototype.toString=function(m,w){return m===n&&(m=10),m!=10?G(this,m,w):String(this.value)},y.prototype.toString=h.prototype.toString,y.prototype.toJSON=p.prototype.toJSON=h.prototype.toJSON=function(){return this.toString()},p.prototype.valueOf=function(){return parseInt(this.toString(),10)},p.prototype.toJSNumber=p.prototype.valueOf,h.prototype.valueOf=function(){return this.value},h.prototype.toJSNumber=h.prototype.valueOf,y.prototype.valueOf=y.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function W(m){if(E(+m)){var w=+m;if(w===I(w))return d?new y(BigInt(w)):new h(w);throw new Error("Invalid integer: "+m)}var _=m[0]==="-";_&&(m=m.slice(1));var C=m.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!==I(P)||!E(P))throw new Error("Invalid integer: "+P+" is not a valid exponent.");var k=C[0],j=k.indexOf(".");if(j>=0&&(P-=k.length-j-1,k=k.slice(0,j)+k.slice(j+1)),P<0)throw new Error("Cannot include negative exponent part for integers");k+=new Array(P+1).join("0"),m=k}var H=/^([0-9][0-9]*)$/.test(m);if(!H)throw new Error("Invalid integer: "+m);if(d)return new y(BigInt(_?"-"+m:m));for(var X=[],$e=m.length,xe=s,he=$e-xe;$e>0;)X.push(+m.slice(he,$e)),he-=xe,he<0&&(he=0),$e-=xe;return O(X),new p(X,_)}function ce(m){if(d)return new y(BigInt(m));if(E(m)){if(m!==I(m))throw new Error(m+" is not an integer.");return new h(m)}return W(m.toString())}function R(m){return typeof m=="number"?ce(m):typeof m=="string"?W(m):typeof m=="bigint"?new y(m):m}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=M,f.isInstance=function(m){return m instanceof p||m instanceof h||m instanceof y},f.randBetween=L,f.fromArray=function(m,w,_){return Q(m.map(R),R(w||10),_)},f}();e.hasOwnProperty("exports")&&(e.exports=t)})(Am);async function Bc(e,t,n){const o=new URLSearchParams({page:e.toString(),uid:n.toString(),sign:t,time:ss().toString()});return(await Mt.post("https://115.com/web/lixian/?ct=lixian&ac=task_lists",o,{withCredentials:!0,timeout:6e4})).data}async function Dc(){return(await Mt.get(`https://115.com/?ct=offline&ac=space&_=${Date.now()}`,{timeout:3e4,withCredentials:!0})).data}async function Nc(){const t=(await Mt.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 Pm(e){const t=Jl(e),o=(await Mt.get("https://webapi.115.com/files?"+t,{timeout:12e4,withCredentials:!0})).data;if(o.state)return o;throw new Error(o.error)}async function Rc(e,t=500){let n=[],o=0;for(;;){e.offset=o;const s=await Pm(e);if(!s.data||!s.data.length||(n=[...n,...s.data],o+=e.limit,o>=s.count))break;await Ht(t)}return n}async function Om(e){const t=Jl(e),n=await Mt.get("https://webapi.115.com/files/search?"+t,{timeout:12e4,withCredentials:!0});if(n.data==="")throw new Mc;const o=n.data;if(o.state)return o;throw new Qr(o.error)}async function Im(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 h=r-d;f=Math.min(h,f)}s>=r&&(f=l)}e.offset=s,e.limit=f;const p=await Om(e);if(!p.data||!p.data.length||(o=[...o,...p.data],s+=f,s>=p.count))break;await Ht(t)}return o}async function Tm(e,t){const n=new URLSearchParams({pid:e,ignore_warn:"1"});return t.forEach((s,i)=>{n.append(`fid[${i}]`,s)}),(await Mt.post("https://webapi.115.com/rb/delete",n,{timeout:12e4,withCredentials:!0})).data}async function jc(e,t,n,o){let s=0,i=0;for(;;){const r=t.slice(s,s+n);if((await Tm(e,r)).state&&(i+=r.length),s+=n,s>=t.length)break;await Ht(o)}return i}async function Lm(e,t){const n=new URLSearchParams({pid:e,cname:t});return(await Mt.post("https://webapi.115.com/files/add",n,{timeout:12e4,withCredentials:!0})).data}async function Mm(e,t){const n=new URLSearchParams({pid:e});return t.forEach((s,i)=>{n.append(`fid[${i}]`,s)}),(await Mt.post("https://webapi.115.com/files/move",n,{timeout:12e4,withCredentials:!0})).data}async function Bm(e){const t=new URLSearchParams({path:e});return(await Mt.get("https://webapi.115.com/files/getid?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function us(e){const t=new URLSearchParams({cid:e});return(await Mt.get("https://webapi.115.com/category/get?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function Zr(e,t,n,o){const s={uid:o.toString(),sign:t.sign,time:ss().toString()};n&&(s.flag="1");const i=Sm(s);return e.forEach((l,d)=>{i.append(`hash[${d}]`,l)}),(await Mt.post("https://115.com/web/lixian/?ct=lixian&ac=task_del",i,{timeout:12e4,withCredentials:!0})).data}async function Dm(e){if(!(await us(e)).play_long)throw new Error("该目录下没有可以播放的媒体文件![by_attr]");const o=(await Rc(oc({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 Nm(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 Bt(e){const t=e.attr("file_size"),n=e.attr("iv")==="1",o=await qm(),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 Rm(e){const t=[];for(let n=0;n<e.length;n++){const o=await jm(e[n]);t.push(o)}return t}async function jm(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=Zs(n.sizeBytes||0),n}function Io(){return unsafeWindow.TOP?unsafeWindow.TOP:unsafeWindow}function Fm(){return unsafeWindow.top===unsafeWindow?unsafeWindow.Ext:unsafeWindow.top.Ext}async function Um(e){return new Promise((t,n)=>{Io().Core.DataAccess.Dir.GetDetail("1",e,o=>t(o))})}async function Hm(){const e=await Zt(),t=await Um(e);return await Nm(e,t)}async function fi(){return window.top!==window?$(document):$('iframe[name="wangpan"], .wrap-view iframe:eq(0)').contents()}async function To(){return(await fi()).find(".list-contents, .list-thumb")}async function Fc(e){const t=await To();return e?t.find("li.selected"):t.find("li")}async function Lo(e){const t=await Fc(e),n=[];for(let o=0;o<t.length;o++){const s=t.eq(o),i=await Bt(s);n.push(i)}return n}async function Uc(e="/"){const t=await Hc();return e+t.slice(1).join(e)}async function Hc(){const e=await fi(),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 zm(){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 Zn(e=!1){const t=await Zt();if(!t)return null;const n=await To(),o=await Hm();return e||o.hide(),n.find(`li[cate_id="${t}"]`).length||n.append(o),o}async function ea(e,t,n){n&&await zm(),Io().Core.FileMenu.DoEvent([e],t,null)}function zc(e){return`https://115.com/?${new URLSearchParams({cid:e}).toString()}&offset=0&mode=wangpan`}async function qm(e=location.href){return e.includes("ac=search")}function ta(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 qc(e){return`https://v.anxia.com/?${new URLSearchParams({pickcode:e,share_id:"0"}).toString()}`}async function Vm(e){unsafeWindow.Main.ReInstance({type:e.type,offset:0,o:nc.userPtime,asc:tc.false,star:e.star,suffix:e.suffix})}async function Wm(){return(await To()).find("li.selected")}async function Vc(){const e=await Wm();return e?await Bt(e):null}function Km(e){return e.replace(/[/\\:*?"<>|]/g,"_")}async function pi(e){const n=(await us(e.fid||e.cate_id)).paths.slice(1).map(i=>i.file_name).join("/"),o=Km(e.n);return`/${n}/${o}`.replace(/^[\/]+/g,"/")}async function Wc(e){if(!location.search.includes("ac=search")||!e.enableInSearch)return;const n=(await Yn("#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 h=d[p];if(h.querySelector(".file-opr"))continue;const y=document.createElement("div");y.className="file-opr",y.setAttribute("rel","menu"),y.innerHTML=f,h.classList.add(l),h.appendChild(y)}};i(),new MutationObserver(async([l])=>{l.type==="childList"&&i()}).observe(n,{childList:!0})}async function Gm(e){if(!e.hideSelectionMenuLabel)return;const n=(await Yn("#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 Jm(e,t){const n=[],o=await gi(),s=o.keyToTriggerManual;for(const i of t){const r=Lr(e,{key:`_ce_s_${i.key}`,label:i.label,icon:i.icon,title:i.memo,onClick:async(l,d)=>{d.stopPropagation(),d.preventDefault();try{let f;if(s){const x=d;(s===Mo.alt&&x.altKey||s===Mo.ctrl&&x.ctrlKey||s===Mo.shift&&x.shiftKey||s===Mo.meta&&x.metaKey)&&(f={names:[Jc.manual],position:o.injectManualFuncPosition})}const p=$(d.target).closest("li"),h=await Bt(p),y=await Br(),E=await ia(h,i,y,f);if(console.log("[search url]",E),!E)throw new Error("无法获取有效的搜索链接!");oh(E,{active:!i.openInBackground})}catch(f){console.error(f),fe({title:"搜索失败",text:f.toString(),icon:"error"})}}});n.push(r)}return n}async function na(e,t){if(console.log("[playDirOnAnxia]",e,t),!t)try{fe({title:"正在查找可播放的文件...",text:"请稍等...",icon:"info"}),me.showLoading(),t=await Dm(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=qc(t.pc);window.open(n,"_blank","noopener noreferrer")}async function Ym(e,t){const n=[];for(const o of t){const s=Lr(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 Bt(l),f=await Br(),p=await ia(d,o,f);if(d.cate_id&&p.includes("v.anxia.com")){na(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 hi(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 zt=(e=>(e[e.unixPath=0]="unixPath",e[e.winPath=1]="winPath",e[e.unixParentPath=2]="unixParentPath",e[e.winParentPath=3]="winParentPath",e))(zt||{});async function mi(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 Xm(e){return async(t,n)=>{const o=await Zt(),s=await fi(),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 me.fire({title:"文件移动到同名目录",text:e?`当前已选中${r.length}个文件,是否继续?`:`当前目录共有${r.length}个文件,是否继续?`,icon:"warning",showCancelButton:!0,confirmButtonText:"继续",cancelButtonText:"取消"});if(!!l){me.fire({title:"文件移动到同名目录",html:"正在处理...",didOpen:()=>{me.showLoading()}});for(let d=0;d<r.length;d++){const f=r[d],p=await Bt($(f));if(!p.fid)continue;const h=p.n,y=h.replace(/\.[^\.]+$/,""),E=`${d+1} / ${r.length} - `+Math.round(d/r.length*100)+"%";me.update({html:`${E} 正在为文件「${h}」创建目录「${y}」`});const x=await Lm(o,y);me.update({html:`${E} 正在移动文件「${h}」到目录「${y}」`}),await Mm(x.cid,[p.fid]),await Ht(500)}me.hideLoading(),me.update({html:"处理完成",icon:"success"})}}}function Kc(e){const t=e.target;e.key==="a"&&(e.ctrlKey||e.metaKey)&&t.select()}function Gc(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement}function Qm(e){e.addEventListener("keydown",t=>{const n=t.target;Gc(n)&&Kc(t)})}const oa=me.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:e=>{e.addEventListener("mouseenter",me.stopTimer),e.addEventListener("mouseleave",me.resumeTimer)},customClass:"swal-toast"});async function Zm(e,t){e.addEventListener("keydown",n=>{const o=n.target;if(!Gc(o))return;let s=!1;(t==="enter"&&n.key==="Enter"||t==="ctrl+enter"&&n.key==="Enter"&&n.ctrlKey||t==="meta+enter"&&n.key==="Enter"&&n.metaKey)&&(s=!0),s&&me.clickConfirm()})}var Jc=(e=>(e.search="search",e.encode="encode",e.base64="base64",e.base64safe="base64safe",e.upper="upper",e.lower="lower",e.number="number",e.manual="manual",e))(Jc||{});const eg=[{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:"手动输入"}]}];var sa=(e=>(e.first="first",e.last="last",e))(sa||{});function tg(e,t,n){const{names:o,position:s}=t;let i=[];return s==="first"?i=[...o,...e]:i=[...e,...o],n?Array.from(new Set(i)):i}async function ia(e,t,n,o){var f;let s=t.url;const i={dir_id:"cid",file_id:"fid",pick_code:"pc",full_name:"n",file_suffix:"ico",file_hash:"sha",file_size:"s"},r=!!e.fid,l=/{(\w+)(:\w+(:\w+)?)?}/g,d=s.match(l);if(d){const p=["file_path","file_dir","clouddrive_stream_url","clouddrive_down_url","clouddrive_playlist_url"];for(const h of d){const y=h.replace(/[{}]/g,"").split(":")[0],E=h.replace(/[{}]/g,"").replace(/^[^:]+:/,"");let x=((f=e[i[y]])==null?void 0:f.toString())||"",A="";switch(p.includes(y)&&(A=await pi(e)),y){case"pure_name":r?x=e.n.replace(/\.[^.]+$/,""):x=e.n;break;case"file_path":x=A;break;case"file_dir":x=A.replace(/\/[^/]+$/,"");break;case"clouddrive_stream_url":r?x=await ni(n,A,Dr.play):x=await ec(n,A);break;case"clouddrive_down_url":x=await ni(n,A,Dr.download);break;case"clouddrive_playlist_url":let O="";r?O=A.replace(/\/[^/]+$/,""):O=A,x=await ec(n,O);break;case"user_agent":x=navigator.userAgent;break}if(x=x.toString(),E){let O=E.split(":");o&&(O=tg(O,o,!1)),console.log(`[buildCustomUrl] functions: ${E}, after merge: ${O.join(":")}`);for(const V of O)switch(V){case"search":x=ta({search_value:x});break;case"encode":x=encodeURIComponent(x);break;case"base64":x=jl(x);break;case"base64safe":x=jl(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:I,value:T}=await me.fire({title:"手动输入",text:"按下「Ctrl + 回车」或「Command + 回车」确认",input:"textarea",inputValue:x,showCancelButton:!0,inputValidator:Y=>Y?null:"输入不能为空!",didOpen:Y=>{Qm(Y),Zm(Y,"meta+enter")}});if(!I)throw new Error("已取消手动输入。");if(T=(T==null?void 0:T.trim())||"",T==="")throw new Error("输入不能为空!");x=T;break}}s=s.replace(h,x)}}return t.mutation?await ng(s,e,t,n):s}async function ng(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 Yc={search:"menu_custom_urls_for_search",play:"menu_custom_urls_for_play"};async function ds(e){return await lt.get(Yc[e],[])}async function Xc(e,t){await lt.set(Yc[e],t)}function dt(e){return{enabled:!0,key:"",label:"",icon:"",memo:"",extraMemo:"",url:"",openInBackground:!1,...e}}var Mo=(e=>(e.none="none",e.alt="alt",e.ctrl="ctrl",e.shift="shift",e.meta="meta",e))(Mo||{});const Qc="ce_menu_config";function og(e){return{enabled:!0,openInNewTab:!0,search:!0,play:!0,getDownloadUrl:!0,copyNames:!0,...e}}function sg(e){return{enabled:!0,copyNames:!0,...e}}function ig(e){return{enabled:!0,moveToSelfNameDir:!0,copyNames:!0,...e}}function rg(e){return{enabled:!0,rename:!0,delete:!0,play:!0,copyNames:!0,move:!0,copy:!0,copyTo:!0,viewProp:!0,showSubFolderSize:!0,...e}}function ag(e){return{enabled:!0,hideSelectionMenuLabel:!1,enableInSearch:!0,keyToTriggerManual:"none",injectManualFuncPosition:"first",[Ie.listItemHover]:og(e==null?void 0:e[Ie.listItemHover]),[Ie.listItemContext]:sg(e==null?void 0:e[Ie.listItemContext]),[Ie.selection]:ig(e==null?void 0:e[Ie.selection]),[Ie.dirContext]:rg(e==null?void 0:e[Ie.dirContext]),...e}}async function gi(){const e=ag(),t=await lt.get(Qc,e);return{...e,...t}}async function lg(e){await lt.set(Qc,e)}const $l=class{constructor(t){Ae(this,"menuType",Ie.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",{[Ie.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>'},[Ie.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>'},[Ie.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>'},[Ie.listItemContextSub]:{body:'<span id="{key}" class="ce-menu list-item-context-menu-sub sub-item">{label}</span>',divider:'<span class="ce-menu-divider"></span>'},[Ie.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>'},[Ie.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>'},[Ie.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>'},[Ie.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($l.EVENT_CLOSE_MENU,{detail:{menu:this}}))}async decorateContainer(t){}};let Dt=$l;Ae(Dt,"EVENT_CLOSE_MENU","__closeMenu");async function wi(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 yi(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 Nt extends Dt{constructor(n){super(n);Ae(this,"menuType",Ie.dirContext);this.onMouseOver=wi,this.onMouseOut=yi}}class cg extends Dt{constructor(){super(...arguments);Ae(this,"menuType",Ie.dirContextSub)}}class ra extends Dt{constructor(n){super(n);Ae(this,"menuType",Ie.listItemContext);this.onMouseOver=wi,this.onMouseOut=yi}}class bi extends Dt{constructor(n){super(n);Ae(this,"menuType",Ie.listItemHover);this.onMouseOver=wi,this.onMouseOut=yi}}class vi extends Dt{constructor(){super(...arguments);Ae(this,"menuType",Ie.listItemHoverSub)}}class Zc extends Dt{constructor(n){super(n);Ae(this,"menuType",Ie.selection);this.onMouseOver=wi,this.onMouseOut=yi}}class eu extends Dt{constructor(){super(...arguments);Ae(this,"menuType",Ie.selectionSub)}}class _i extends Dt{constructor(){super(...arguments);Ae(this,"isDivider",!0)}}class ug extends _i{}class dg extends _i{}class fg extends _i{}class pg extends _i{}class xi{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 Yn(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,Ie.dirContext,this.menuType){case Ie.listItemHover:return!0;case Ie.listItemContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="report"]');case Ie.selection:return!0;case Ie.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 Ie.listItemHover:document.querySelectorAll("#js_data_list .list-contents > ul:not([ce-done]) > li .file-opr").forEach(s=>{n.push(s)});break;case Ie.listItemContext:n=[o];break;case Ie.selection:document.querySelectorAll("#js_top_panel_box #js_operate_box").forEach(s=>{n.push(s)});break;case Ie.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===Qn.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===Qn.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 hg extends xi{constructor(){super(...arguments);Ae(this,"menuType",Ie.dirContext);Ae(this,"useObserver",!0);Ae(this,"observeTarget",document.body);Ae(this,"disposeObserverAfterInjection",!0)}}class mg extends xi{constructor(){super(...arguments);Ae(this,"menuType",Ie.listItemContext)}}class gg extends xi{constructor(n){super(n);Ae(this,"menuType",Ie.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 ei(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 h=await gi();await Wc(h)}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 wg extends xi{constructor(){super(...arguments);Ae(this,"menuType",Ie.selection);Ae(this,"useObserver",!0);Ae(this,"observeTarget","#js_top_panel_box #js_operate_box");Ae(this,"disposeObserverAfterInjection",!1)}}async function yg(e,t){return!!$(t).closest("li").attr("cate_id")}async function bg(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?fh(o)||hh(o)||ph(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=Ge(o)?Cg(o):un(o);if(s)for(const i in s)t[i]=s[i]}return t}else{if(Ge(e))return e;if(He(e))return e}}const vg=/;(?![^(]*\))/g,_g=/:([^]+)/,xg=/\/\*.*?\*\//gs;function Cg(e){const t={};return e.replace(xg,"").split(vg).forEach(n=>{if(n){const o=n.split(_g);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Je(e){let t="";if(Ge(e))t=e;else if(ye(e))for(let n=0;n<e.length;n++){const o=Je(e[n]);o&&(t+=o+" ")}else if(He(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function $g(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ge(t)&&(e.class=Je(t)),n&&(e.style=un(n)),e}const kg="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",Sg="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",Eg=On(kg),Ag=On(Sg),Pg=On("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function tu(e){return!!e||e===""}function Og(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=fs(e[o],t[o]);return n}function fs(e,t){if(e===t)return!0;let n=su(e),o=su(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=hs(e),o=hs(t),n||o)return e===t;if(n=ye(e),o=ye(t),n||o)return n&&o?Og(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||!fs(e[r],t[r]))return!1}}return String(e)===String(t)}function aa(e,t){return e.findIndex(n=>fs(n,t))}const ge=e=>Ge(e)?e:e==null?"":ye(e)||He(e)&&(e.toString===iu||!ke(e.toString))?JSON.stringify(e,nu,2):String(e),nu=(e,t)=>t&&t.__v_isRef?nu(e,t.value):eo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s])=>(n[`${o} =>`]=s,n),{})}:Do(t)?{[`Set(${t.size})`]:[...t.values()]}:He(t)&&!ye(t)&&!ru(t)?String(t):t,ze=Object.freeze({}),Bo=Object.freeze([]),St=()=>{},ou=()=>!1,Ig=/^on[^a-z]/,ps=e=>Ig.test(e),Ci=e=>e.startsWith("onUpdate:"),tt=Object.assign,la=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Tg=Object.prototype.hasOwnProperty,Me=(e,t)=>Tg.call(e,t),ye=Array.isArray,eo=e=>ms(e)==="[object Map]",Do=e=>ms(e)==="[object Set]",su=e=>ms(e)==="[object Date]",ke=e=>typeof e=="function",Ge=e=>typeof e=="string",hs=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",$i=e=>He(e)&&ke(e.then)&&ke(e.catch),iu=Object.prototype.toString,ms=e=>iu.call(e),ca=e=>ms(e).slice(8,-1),ru=e=>ms(e)==="[object Object]",ua=e=>Ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ki=On(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Lg=On("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Si=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Mg=/-(\w)/g,en=Si(e=>e.replace(Mg,(t,n)=>n?n.toUpperCase():"")),Bg=/\B([A-Z])/g,dn=Si(e=>e.replace(Bg,"-$1").toLowerCase()),to=Si(e=>e.charAt(0).toUpperCase()+e.slice(1)),no=Si(e=>e?`on${to(e)}`:""),gs=(e,t)=>!Object.is(e,t),No=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ei=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ai=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Dg=e=>{const t=Ge(e)?Number(e):NaN;return isNaN(t)?e:t};let au;const lu=()=>au||(au=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function da(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let qt;class Ng{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=qt,!t&&qt&&(this.index=(qt.scopes||(qt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=qt;try{return qt=this,t()}finally{qt=n}}else da("cannot run an inactive effect scope.")}on(){qt=this}off(){qt=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 Rg(e,t=qt){t&&t.active&&t.effects.push(e)}function jg(){return qt}const fa=e=>{const t=new Set(e);return t.w=0,t.n=0,t},cu=e=>(e.w&In)>0,uu=e=>(e.n&In)>0,Fg=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=In},Ug=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const s=t[o];cu(s)&&!uu(s)?s.delete(e):t[n++]=s,s.w&=~In,s.n&=~In}t.length=n}},Pi=new WeakMap;let ws=0,In=1;const pa=30;let wt;const oo=Symbol("iterate"),ha=Symbol("Map key iterate");class ma{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Rg(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<<++ws,ws<=pa?Fg(this):du(this),this.fn()}finally{ws<=pa&&Ug(this),In=1<<--ws,wt=this.parent,Tn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){wt===this?this.deferStop=!0:this.active&&(du(this),this.onStop&&this.onStop(),this.active=!1)}}function du(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 fu=[];function so(){fu.push(Tn),Tn=!1}function io(){const e=fu.pop();Tn=e===void 0?!0:e}function Et(e,t,n){if(Tn&&wt){let o=Pi.get(e);o||Pi.set(e,o=new Map);let s=o.get(n);s||o.set(n,s=fa()),pu(s,{effect:wt,target:e,type:t,key:n})}}function pu(e,t){let n=!1;ws<=pa?uu(e)||(e.n|=In,n=!cu(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=Pi.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,h)=>{(h==="length"||h>=f)&&l.push(p)})}else switch(n!==void 0&&l.push(r.get(n)),t){case"add":ye(e)?ua(n)&&l.push(r.get("length")):(l.push(r.get(oo)),eo(e)&&l.push(r.get(ha)));break;case"delete":ye(e)||(l.push(r.get(oo)),eo(e)&&l.push(r.get(ha)));break;case"set":eo(e)&&l.push(r.get(oo));break}const d={target:e,type:t,key:n,newValue:o,oldValue:s,oldTarget:i};if(l.length===1)l[0]&&ga(l[0],d);else{const f=[];for(const p of l)p&&f.push(...p);ga(fa(f),d)}}function ga(e,t){const n=ye(e)?e:[...e];for(const o of n)o.computed&&hu(o,t);for(const o of n)o.computed||hu(o,t)}function hu(e,t){(e!==wt||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(tt({effect:e},t)),e.scheduler?e.scheduler():e.run())}function Hg(e,t){var n;return(n=Pi.get(e))===null||n===void 0?void 0:n.get(t)}const zg=On("__proto__,__v_isRef,__isVue"),mu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(hs)),qg=Oi(),Vg=Oi(!1,!0),Wg=Oi(!0),Kg=Oi(!0,!0),gu=Gg();function Gg(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=Te(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(Te)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){so();const o=Te(this)[t].apply(this,n);return io(),o}}),e}function Jg(e){const t=Te(this);return Et(t,"has",e),t.hasOwnProperty(e)}function Oi(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?Au:Eu:t?Su:ku).get(o))return o;const r=ye(o);if(!e){if(r&&Me(gu,s))return Reflect.get(gu,s,i);if(s==="hasOwnProperty")return Jg}const l=Reflect.get(o,s,i);return(hs(s)?mu.has(s):zg(s))||(e||Et(o,"get",s),t)?l:nt(l)?r&&ua(s)?l:l.value:He(l)?e?Pu(l):Ri(l):l}}const Yg=wu(),Xg=wu(!0);function wu(e=!1){return function(n,o,s,i){let r=n[o];if(Mn(r)&&nt(r)&&!nt(s))return!1;if(!e&&(!Fi(s)&&!Mn(s)&&(r=Te(r),s=Te(s)),!ye(n)&&nt(r)&&!nt(s)))return r.value=s,!0;const l=ye(n)&&ua(o)?Number(o)<n.length:Me(n,o),d=Reflect.set(n,o,s,i);return n===Te(i)&&(l?gs(s,r)&&fn(n,"set",o,s,r):fn(n,"add",o,s)),d}}function Qg(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 Zg(e,t){const n=Reflect.has(e,t);return(!hs(t)||!mu.has(t))&&Et(e,"has",t),n}function ew(e){return Et(e,"iterate",ye(e)?"length":oo),Reflect.ownKeys(e)}const yu={get:qg,set:Yg,deleteProperty:Qg,has:Zg,ownKeys:ew},bu={get:Wg,set(e,t){return da(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return da(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},tw=tt({},yu,{get:Vg,set:Xg}),nw=tt({},bu,{get:Kg}),wa=e=>e,Ii=e=>Reflect.getPrototypeOf(e);function Ti(e,t,n=!1,o=!1){e=e.__v_raw;const s=Te(e),i=Te(t);n||(t!==i&&Et(s,"get",t),Et(s,"get",i));const{has:r}=Ii(s),l=o?wa:n?ya:ys;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 Li(e,t=!1){const n=this.__v_raw,o=Te(n),s=Te(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 Mi(e,t=!1){return e=e.__v_raw,!t&&Et(Te(e),"iterate",oo),Reflect.get(e,"size",e)}function vu(e){e=Te(e);const t=Te(this);return Ii(t).has.call(t,e)||(t.add(e),fn(t,"add",e,e)),this}function _u(e,t){t=Te(t);const n=Te(this),{has:o,get:s}=Ii(n);let i=o.call(n,e);i?$u(n,o,e):(e=Te(e),i=o.call(n,e));const r=s.call(n,e);return n.set(e,t),i?gs(t,r)&&fn(n,"set",e,t,r):fn(n,"add",e,t),this}function xu(e){const t=Te(this),{has:n,get:o}=Ii(t);let s=n.call(t,e);s?$u(t,n,e):(e=Te(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 Cu(){const e=Te(this),t=e.size!==0,n=eo(e)?new Map(e):new Set(e),o=e.clear();return t&&fn(e,"clear",void 0,void 0,n),o}function Bi(e,t){return function(o,s){const i=this,r=i.__v_raw,l=Te(r),d=t?wa:e?ya:ys;return!e&&Et(l,"iterate",oo),r.forEach((f,p)=>o.call(s,d(f),d(p),i))}}function Di(e,t,n){return function(...o){const s=this.__v_raw,i=Te(s),r=eo(i),l=e==="entries"||e===Symbol.iterator&&r,d=e==="keys"&&r,f=s[e](...o),p=n?wa:t?ya:ys;return!t&&Et(i,"iterate",d?ha:oo),{next(){const{value:h,done:y}=f.next();return y?{value:h,done:y}:{value:l?[p(h[0]),p(h[1])]:p(h),done:y}},[Symbol.iterator](){return this}}}}function Ln(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${to(e)} operation ${n}failed: target is readonly.`,Te(this))}return e==="delete"?!1:this}}function ow(){const e={get(i){return Ti(this,i)},get size(){return Mi(this)},has:Li,add:vu,set:_u,delete:xu,clear:Cu,forEach:Bi(!1,!1)},t={get(i){return Ti(this,i,!1,!0)},get size(){return Mi(this)},has:Li,add:vu,set:_u,delete:xu,clear:Cu,forEach:Bi(!1,!0)},n={get(i){return Ti(this,i,!0)},get size(){return Mi(this,!0)},has(i){return Li.call(this,i,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Bi(!0,!1)},o={get(i){return Ti(this,i,!0,!0)},get size(){return Mi(this,!0)},has(i){return Li.call(this,i,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Bi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Di(i,!1,!1),n[i]=Di(i,!0,!1),t[i]=Di(i,!1,!0),o[i]=Di(i,!0,!0)}),[e,n,t,o]}const[sw,iw,rw,aw]=ow();function Ni(e,t){const n=t?e?aw:rw:e?iw:sw;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 lw={get:Ni(!1,!1)},cw={get:Ni(!1,!0)},uw={get:Ni(!0,!1)},dw={get:Ni(!0,!0)};function $u(e,t,n){const o=Te(n);if(o!==n&&t.call(e,o)){const s=ca(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 ku=new WeakMap,Su=new WeakMap,Eu=new WeakMap,Au=new WeakMap;function fw(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pw(e){return e.__v_skip||!Object.isExtensible(e)?0:fw(ca(e))}function Ri(e){return Mn(e)?e:ji(e,!1,yu,lw,ku)}function hw(e){return ji(e,!1,tw,cw,Su)}function Pu(e){return ji(e,!0,bu,uw,Eu)}function Ro(e){return ji(e,!0,nw,dw,Au)}function ji(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=pw(e);if(r===0)return e;const l=new Proxy(e,r===2?o:n);return s.set(e,l),l}function ro(e){return Mn(e)?ro(e.__v_raw):!!(e&&e.__v_isReactive)}function Mn(e){return!!(e&&e.__v_isReadonly)}function Fi(e){return!!(e&&e.__v_isShallow)}function Ui(e){return ro(e)||Mn(e)}function Te(e){const t=e&&e.__v_raw;return t?Te(t):e}function Ou(e){return Ei(e,"__v_skip",!0),e}const ys=e=>He(e)?Ri(e):e,ya=e=>He(e)?Pu(e):e;function Iu(e){Tn&&wt&&(e=Te(e),pu(e.dep||(e.dep=fa()),{target:e,type:"get",key:"value"}))}function Tu(e,t){e=Te(e);const n=e.dep;n&&ga(n,{target:e,type:"set",key:"value",newValue:t})}function nt(e){return!!(e&&e.__v_isRef===!0)}function ve(e){return mw(e,!1)}function mw(e,t){return nt(e)?e:new gw(e,t)}class gw{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Te(t),this._value=n?t:ys(t)}get value(){return Iu(this),this._value}set value(t){const n=this.__v_isShallow||Fi(t)||Mn(t);t=n?t:Te(t),gs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ys(t),Tu(this,t))}}function be(e){return nt(e)?e.value:e}const ww={get:(e,t,n)=>be(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 Lu(e){return ro(e)?e:new Proxy(e,ww)}function yw(e){Ui(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]=vw(e,n);return t}class bw{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 Hg(Te(this._object),this._key)}}function vw(e,t,n){const o=e[t];return nt(o)?o:new bw(e,t,n)}var Mu;class _w{constructor(t,n,o,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Mu]=!1,this._dirty=!0,this.effect=new ma(t,()=>{this._dirty||(this._dirty=!0,Tu(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=Te(this);return Iu(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Mu="__v_isReadonly";function xw(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 _w(o,s,i||!s,n);return t&&!n&&(r.effect.onTrack=t.onTrack,r.effect.onTrigger=t.onTrigger),r}const ao=[];function bs(e){ao.push(e)}function vs(){ao.pop()}function Z(e,...t){so();const n=ao.length?ao[ao.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 <${nr(n,i.type)}>`).join(`
`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
`,...$w(s)),console.warn(...i)}io()}function Cw(){let e=ao[ao.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 $w(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
`],...kw(n))}),t}function kw({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,s=` at <${nr(e.component,e.type,o)}`,i=">"+n;return e.props?[s,...Sw(e.props),i]:[s+i]}function Sw(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...Bu(o,e[o]))}),n.length>3&&t.push(" ..."),t}function Bu(e,t,n){return Ge(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:nt(t)?(t=Bu(e,Te(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ke(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Te(t),n?t:[`${e}=`,t])}function Ew(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 ba={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){_s(i,t,n)}return s}function Vt(e,t,n,o){if(ke(e)){const i=pn(e,t,n,o);return i&&$i(i)&&i.catch(r=>{_s(r,t,n)}),i}const s=[];for(let i=0;i<e.length;i++)s.push(Vt(e[i],t,n,o));return s}function _s(e,t,n,o=!0){const s=t?t.vnode:null;if(t){let i=t.parent;const r=t.proxy,l=ba[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}}Aw(e,n,s,o)}function Aw(e,t,n,o=!0){{const s=ba[t];if(n&&bs(n),Z(`Unhandled error${s?` during execution of ${s}`:""}`),n&&vs(),o)throw e;console.error(e)}}let xs=!1,va=!1;const pt=[];let tn=0;const jo=[];let nn=null,Bn=0;const Du=Promise.resolve();let _a=null;const Pw=100;function Hi(e){const t=_a||Du;return e?t.then(this?e.bind(this):e):t}function Ow(e){let t=tn+1,n=pt.length;for(;t<n;){const o=t+n>>>1;Cs(pt[o])<e?t=o+1:n=o}return t}function zi(e){(!pt.length||!pt.includes(e,xs&&e.allowRecurse?tn+1:tn))&&(e.id==null?pt.push(e):pt.splice(Ow(e.id),0,e),Nu())}function Nu(){!xs&&!va&&(va=!0,_a=Du.then(Fu))}function Iw(e){const t=pt.indexOf(e);t>tn&&pt.splice(t,1)}function xa(e){ye(e)?jo.push(...e):(!nn||!nn.includes(e,e.allowRecurse?Bn+1:Bn))&&jo.push(e),Nu()}function Ru(e,t=xs?tn+1:0){for(e=e||new Map;t<pt.length;t++){const n=pt[t];if(n&&n.pre){if(Ca(e,n))continue;pt.splice(t,1),t--,n()}}}function ju(e){if(jo.length){const t=[...new Set(jo)];if(jo.length=0,nn){nn.push(...t);return}for(nn=t,e=e||new Map,nn.sort((n,o)=>Cs(n)-Cs(o)),Bn=0;Bn<nn.length;Bn++)Ca(e,nn[Bn])||nn[Bn]();nn=null,Bn=0}}const Cs=e=>e.id==null?1/0:e.id,Tw=(e,t)=>{const n=Cs(e)-Cs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Fu(e){va=!1,xs=!0,e=e||new Map,pt.sort(Tw);const t=n=>Ca(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,ju(e),xs=!1,_a=null,(pt.length||jo.length)&&Fu(e)}}function Ca(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>Pw){const o=t.ownerInstance,s=o&&Ga(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 lo=!1;const Fo=new Set;lu().__VUE_HMR_RUNTIME__={createRecord:$a(Uu),rerender:$a(Bw),reload:$a(Dw)};const co=new Map;function Lw(e){const t=e.type.__hmrId;let n=co.get(t);n||(Uu(t,e.type),n=co.get(t)),n.instances.add(e)}function Mw(e){co.get(e.type.__hmrId).instances.delete(e)}function Uu(e,t){return co.has(e)?!1:(co.set(e,{initialDef:$s(t),instances:new Set}),!0)}function $s(e){return Od(e)?e.__vccOpts:e}function Bw(e,t){const n=co.get(e);!n||(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,$s(o.type).render=t),o.renderCache=[],lo=!0,o.update(),lo=!1}))}function Dw(e,t){const n=co.get(e);if(!n)return;t=$s(t),Hu(n.initialDef,t);const o=[...n.instances];for(const s of o){const i=$s(s.type);Fo.has(i)||(i!==n.initialDef&&Hu(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?zi(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.")}xa(()=>{for(const s of o)Fo.delete($s(s.type))})}function Hu(e,t){tt(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function $a(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,ks=[],ka=!1;function Ss(e,...t){on?on.emit(e,...t):ka||ks.push({event:e,args:t})}function zu(e,t){var n,o;on=e,on?(on.enabled=!0,ks.forEach(({event:s,args:i})=>on.emit(s,...i)),ks=[]):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=>{zu(i,t)}),setTimeout(()=>{on||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ka=!0,ks=[])},3e3)):(ka=!0,ks=[])}function Nw(e,t){Ss("app:init",e,t,{Fragment:Be,Text:Ls,Comment:bt,Static:Ms})}function Rw(e){Ss("app:unmount",e)}const jw=Sa("component:added"),qu=Sa("component:updated"),Fw=Sa("component:removed"),Uw=e=>{on&&typeof on.cleanupBuffer=="function"&&!on.cleanupBuffer(e)&&Fw(e)};function Sa(e){return t=>{Ss(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Hw=Vu("perf:start"),zw=Vu("perf:end");function Vu(e){return(t,n,o)=>{Ss(e,t.appContext.app,t.uid,t,n,o)}}function qw(e,t,n){Ss("component:emit",e.appContext.app,e,t,n)}function Vw(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ze;{const{emitsOptions:p,propsOptions:[h]}=e;if(p)if(!(t in p))(!h||!(no(t)in h))&&Z(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${no(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:h,trim:y}=o[p]||ze;y&&(s=n.map(E=>Ge(E)?E.trim():E)),h&&(s=n.map(Ai))}qw(e,t,s);{const p=t.toLowerCase();p!==t&&o[no(p)]&&Z(`Event "${p}" is emitted in component ${nr(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=no(t)]||o[l=no(en(t))];!d&&i&&(d=o[l=no(dn(t))]),d&&Vt(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,Vt(f,e,6,s)}}function Wu(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=Wu(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 qi(e,t){return!e||!ps(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,Vi=null;function Wi(e){const t=it;return it=e,Vi=e&&e.type.__scopeId||null,t}function Ww(e){Vi=e}function Kw(){Vi=null}const Gw=e=>Ve;function Ve(e,t=it,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&xd(-1);const i=Wi(t);let r;try{r=e(...s)}finally{Wi(i),o._d&&xd(1)}return qu(t),r};return o._n=!0,o._c=!0,o._d=!0,o}let Ea=!1;function Ki(){Ea=!0}function Aa(e){const{type:t,vnode:n,proxy:o,withProxy:s,props:i,propsOptions:[r],slots:l,attrs:d,emit:f,render:p,renderCache:h,data:y,setupState:E,ctx:x,inheritAttrs:A}=e;let O,V;const I=Wi(e);Ea=!1;try{if(n.shapeFlag&4){const ee=s||o;O=Ft(p.call(ee,ee,h,i,E,y,x)),V=d}else{const ee=t;d===i&&Ki(),O=Ft(ee.length>1?ee(i,{get attrs(){return Ki(),d},slots:l,emit:f}):ee(i,null)),V=t.props?d:Yw(d)}}catch(ee){Bs.length=0,_s(ee,e,1),O=Ce(bt)}let T=O,Y;if(O.patchFlag>0&&O.patchFlag&2048&&([T,Y]=Jw(O)),V&&A!==!1){const ee=Object.keys(V),{shapeFlag:U}=T;if(ee.length){if(U&7)r&&ee.some(Ci)&&(V=Xw(V,r)),T=Rn(T,V);else if(!Ea&&T.type!==bt){const se=Object.keys(d),ie=[],de=[];for(let Pe=0,pe=se.length;Pe<pe;Pe++){const re=se[Pe];ps(re)?Ci(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&&(Ku(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&&(Ku(T)||Z("Component inside <Transition> renders non-element root node that cannot be animated."),T.transition=n.transition),Y?Y(T):O=T,Wi(I),O}const Jw=e=>{const t=e.children,n=e.dynamicChildren,o=Pa(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 Pa(e){let t;for(let n=0;n<e.length;n++){const o=e[n];if(zo(o)){if(o.type!==bt||o.children==="v-if"){if(t)return;t=o}}else return}return t}const Yw=e=>{let t;for(const n in e)(n==="class"||n==="style"||ps(n))&&((t||(t={}))[n]=e[n]);return t},Xw=(e,t)=>{const n={};for(const o in e)(!Ci(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n},Ku=e=>e.shapeFlag&7||e.type===bt;function Qw(e,t,n){const{props:o,children:s,component:i}=e,{props:r,children:l,patchFlag:d}=t,f=i.emitsOptions;if((s||l)&&lo||t.dirs||t.transition)return!0;if(n&&d>=0){if(d&1024)return!0;if(d&16)return o?Gu(o,r,f):!!r;if(d&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const y=p[h];if(r[y]!==o[y]&&!qi(f,y))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:o===r?!1:o?r?Gu(o,r,f):!0:!!r;return!1}function Gu(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]&&!qi(n,i))return!0}return!1}function Oa({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Zw=e=>e.__isSuspense,Ju={name:"Suspense",__isSuspense:!0,process(e,t,n,o,s,i,r,l,d,f){e==null?ey(t,n,o,s,i,r,l,d,f):ty(e,t,n,o,s,r,l,d,f)},hydrate:ny,create:Ia,normalize:oy};function Es(e,t){const n=e.props&&e.props[t];ke(n)&&n()}function ey(e,t,n,o,s,i,r,l,d){const{p:f,o:{createElement:p}}=d,h=p("div"),y=e.suspense=Ia(e,s,o,t,h,n,i,r,l,d);f(null,y.pendingBranch=e.ssContent,h,null,o,y,i,r),y.deps>0?(Es(e,"onPending"),Es(e,"onFallback"),f(null,e.ssFallback,t,n,o,null,i,r),Uo(y,e.ssFallback)):y.resolve()}function ty(e,t,n,o,s,i,r,l,{p:d,um:f,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const y=t.ssContent,E=t.ssFallback,{activeBranch:x,pendingBranch:A,isInFallback:O,isHydrating:V}=h;if(A)h.pendingBranch=y,Nn(y,A)?(d(A,y,h.hiddenContainer,null,s,h,i,r,l),h.deps<=0?h.resolve():O&&(d(x,E,n,o,s,null,i,r,l),Uo(h,E))):(h.pendingId++,V?(h.isHydrating=!1,h.activeBranch=A):f(A,s,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),O?(d(null,y,h.hiddenContainer,null,s,h,i,r,l),h.deps<=0?h.resolve():(d(x,E,n,o,s,null,i,r,l),Uo(h,E))):x&&Nn(y,x)?(d(x,y,n,o,s,h,i,r,l),h.resolve(!0)):(d(null,y,h.hiddenContainer,null,s,h,i,r,l),h.deps<=0&&h.resolve()));else if(x&&Nn(y,x))d(x,y,n,o,s,h,i,r,l),Uo(h,y);else if(Es(t,"onPending"),h.pendingBranch=y,h.pendingId++,d(null,y,h.hiddenContainer,null,s,h,i,r,l),h.deps<=0)h.resolve();else{const{timeout:I,pendingId:T}=h;I>0?setTimeout(()=>{h.pendingId===T&&h.fallback(E)},I):I===0&&h.fallback(E)}}let Yu=!1;function Ia(e,t,n,o,s,i,r,l,d,f,p=!1){Yu||(Yu=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p:h,m:y,um:E,n:x,o:{parentNode:A,remove:O}}=f,V=e.props?Dg(e.props.timeout):void 0;Ew(V,"Suspense timeout");const I={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&&!I.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(I.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:Y,activeBranch:ee,pendingBranch:U,pendingId:se,effects:ie,parentComponent:de,container:Pe}=I;if(I.isHydrating)I.isHydrating=!1;else if(!T){const Ee=ee&&U.transition&&U.transition.mode==="out-in";Ee&&(ee.transition.afterLeave=()=>{se===I.pendingId&&y(U,Pe,ae,0)});let{anchor:ae}=I;ee&&(ae=x(ee),E(ee,de,I,!0)),Ee||y(U,Pe,ae,0)}Uo(I,U),I.pendingBranch=null,I.isInFallback=!1;let pe=I.parent,re=!1;for(;pe;){if(pe.pendingBranch){pe.effects.push(...ie),re=!0;break}pe=pe.parent}re||xa(ie),I.effects=[],Es(Y,"onResolve")},fallback(T){if(!I.pendingBranch)return;const{vnode:Y,activeBranch:ee,parentComponent:U,container:se,isSVG:ie}=I;Es(Y,"onFallback");const de=x(ee),Pe=()=>{!I.isInFallback||(h(null,T,se,de,U,null,ie,l,d),Uo(I,T))},pe=T.transition&&T.transition.mode==="out-in";pe&&(ee.transition.afterLeave=Pe),I.isInFallback=!0,E(ee,U,null,!0),pe||Pe()},move(T,Y,ee){I.activeBranch&&y(I.activeBranch,T,Y,ee),I.container=T},next(){return I.activeBranch&&x(I.activeBranch)},registerDep(T,Y){const ee=!!I.pendingBranch;ee&&I.deps++;const U=T.vnode.el;T.asyncDep.catch(se=>{_s(se,T,0)}).then(se=>{if(T.isUnmounted||I.isUnmounted||I.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:ie}=T;bs(ie),Wa(T,se,!1),U&&(ie.el=U);const de=!U&&T.subTree.el;Y(T,ie,A(U||T.subTree.el),U?null:x(T.subTree),I,r,d),de&&O(de),Oa(T,ie.el),vs(),ee&&--I.deps===0&&I.resolve()})},unmount(T,Y){I.isUnmounted=!0,I.activeBranch&&E(I.activeBranch,n,T,Y),I.pendingBranch&&E(I.pendingBranch,n,T,Y)}};return I}function ny(e,t,n,o,s,i,r,l,d){const f=t.suspense=Ia(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 oy(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=Xu(o?n.default:n),e.ssFallback=o?Xu(n.fallback):Ce(bt)}function Xu(e){let t;if(ke(e)){const n=Ho&&e._c;n&&(e._d=!1,K()),e=e(),n&&(e._d=!0,t=Rt,_d())}if(ye(e)){const n=Pa(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 sy(e,t){t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):xa(e)}function Uo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,s=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=s,Oa(o,s))}function As(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 Ps(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 Gi={};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."),Qu(e,t,n)}function Qu(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=Y=>{Z("Invalid watch source: ",Y,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=jg()===(Ye==null?void 0:Ye.scope)?Ye:null;let f,p=!1,h=!1;if(nt(e)?(f=()=>e.value,p=Fi(e)):ro(e)?(f=()=>e,o=!0):ye(e)?(h=!0,p=e.some(Y=>ro(Y)||Fi(Y)),f=()=>e.map(Y=>{if(nt(Y))return Y.value;if(ro(Y))return uo(Y);if(ke(Y))return pn(Y,d,2);l(Y)})):ke(e)?t?f=()=>pn(e,d,2):f=()=>{if(!(d&&d.isUnmounted))return y&&y(),Vt(e,d,3,[E])}:(f=St,l(e)),t&&o){const Y=f;f=()=>uo(Y())}let y,E=Y=>{y=I.onStop=()=>{pn(Y,d,4)}},x;if(Ds)if(E=St,t?n&&Vt(t,d,3,[f(),h?[]:void 0,E]):f(),s==="sync"){const Y=ab();x=Y.__watcherHandles||(Y.__watcherHandles=[])}else return St;let A=h?new Array(e.length).fill(Gi):Gi;const O=()=>{if(!!I.active)if(t){const Y=I.run();(o||p||(h?Y.some((ee,U)=>gs(ee,A[U])):gs(Y,A)))&&(y&&y(),Vt(t,d,3,[Y,A===Gi?void 0:h&&A[0]===Gi?[]:A,E]),A=Y)}else I.run()};O.allowRecurse=!!t;let V;s==="sync"?V=O:s==="post"?V=()=>At(O,d&&d.suspense):(O.pre=!0,d&&(O.id=d.uid),V=()=>zi(O));const I=new ma(f,V);I.onTrack=i,I.onTrigger=r,t?n?O():A=I.run():s==="post"?At(I.run.bind(I),d&&d.suspense):I.run();const T=()=>{I.stop(),d&&d.scope&&la(d.scope.effects,I)};return x&&x.push(T),T}function iy(e,t,n){const o=this.proxy,s=Ge(e)?e.includes(".")?Zu(o,e):()=>o[e]:e.bind(o,o);let i;ke(t)?i=t:(i=t.handler,n=t);const r=Ye;Fn(this);const l=Qu(s,i.bind(o),n);return r?Fn(r):Un(),l}function Zu(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 uo(e,t){if(!He(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),nt(e))uo(e.value,t);else if(ye(e))for(let n=0;n<e.length;n++)uo(e[n],t);else if(Do(e)||eo(e))e.forEach(n=>{uo(n,t)});else if(ru(e))for(const n in e)uo(e[n],t);return e}function De(e){return ke(e)?{setup:e,name:e.name}:e}const Os=e=>!!e.type.__asyncLoader,Ta=e=>e.type.__isKeepAlive;function ry(e,t){ed(e,"a",t)}function ay(e,t){ed(e,"da",t)}function ed(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(Ji(t,o,n),n){let s=n.parent;for(;s&&s.parent;)Ta(s.parent.vnode)&&ly(o,t,n,s),s=s.parent}}function ly(e,t,n,o){const s=Ji(t,e,o,!0);Is(()=>{la(o[t],s)},n)}function Ji(e,t,n=Ye,o=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;so(),Fn(n);const l=Vt(t,n,e,r);return Un(),io(),l});return o?s.unshift(i):s.push(i),i}else{const s=no(ba[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)=>(!Ds||e==="sp")&&Ji(e,(...o)=>t(...o),n),Wt=hn("bm"),Kt=hn("m"),cy=hn("bu"),uy=hn("u"),td=hn("bum"),Is=hn("um"),dy=hn("sp"),fy=hn("rtg"),py=hn("rtc");function hy(e,t=Ye){Ji("ec",e,t)}function nd(e){Lg(e)&&Z("Do not use built-in directive ids as custom directive id: "+e)}function ne(e,t){const n=it;if(n===null)return Z("withDirectives can only be used inside render functions."),e;const o=tr(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&&uo(l),s.push({dir:r,instance:o,value:l,oldValue:void 0,arg:d,modifiers:f}))}return e}function fo(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&&(so(),Vt(d,n,8,[e.el,l,e,t]),io())}}const La="components";function po(e,t){return gy(La,e,!0,t)||e}const my=Symbol();function gy(e,t,n=!0,o=!1){const s=it||Ye;if(s){const i=s.type;if(e===La){const l=Ga(i,!1);if(l&&(l===t||l===en(t)||l===to(en(t))))return i}const r=od(s[e]||i[e],t)||od(s.appContext[e],t);if(!r&&o)return i;if(n&&!r){const l=e===La?`
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${to(e.slice(0,-1))} can only be used in render() or setup().`)}function od(e,t){return e&&(e[t]||e[en(t)]||e[to(en(t))])}function ct(e,t,n,o){let s;const i=n&&n[o];if(ye(e)||Ge(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&&Os(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),K();const r=i&&sd(i(n)),l=jt(Be,{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 sd(e){return e.some(t=>zo(t)?!(t.type===bt||t.type===Be&&!sd(t.children)):!0)?e:null}const Ma=e=>e?Ad(e)?tr(e)||e.proxy:Ma(e.parent):null,ho=tt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>Ro(e.props),$attrs:e=>Ro(e.attrs),$slots:e=>Ro(e.slots),$refs:e=>Ro(e.refs),$parent:e=>Ma(e.parent),$root:e=>Ma(e.root),$emit:e=>e.emit,$options:e=>Ra(e),$forceUpdate:e=>e.f||(e.f=()=>zi(e.update)),$nextTick:e=>e.n||(e.n=Hi.bind(e.proxy)),$watch:e=>iy.bind(e)}),Ba=e=>e==="_"||e==="$",Da=(e,t)=>e!==ze&&!e.__isScriptSetup&&Me(e,t),id={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 E=r[t];if(E!==void 0)switch(E){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Da(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];Na&&(r[t]=0)}}const p=ho[t];let h,y;if(p)return t==="$attrs"&&(Et(e,"get",t),Ki()),p(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==ze&&Me(n,t))return r[t]=4,n[t];if(y=d.config.globalProperties,Me(y,t))return y[t];it&&(!Ge(t)||t.indexOf("__v")!==0)&&(s!==ze&&Ba(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 Da(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)||Da(t,r)||(l=i[0])&&Me(l,r)||Me(o,r)||Me(ho,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)}};id.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 wy(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(ho).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>ho[n](e),set:St})}),t}function yy(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 by(e){const{ctx:t,setupState:n}=e;Object.keys(Te(n)).forEach(o=>{if(!n.__isScriptSetup){if(Ba(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 vy(){const e=Object.create(null);return(t,n)=>{e[n]?Z(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let Na=!0;function _y(e){const t=Ra(e),n=e.proxy,o=e.ctx;Na=!1,t.beforeCreate&&rd(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:r,watch:l,provide:d,inject:f,created:p,beforeMount:h,mounted:y,beforeUpdate:E,updated:x,activated:A,deactivated:O,beforeDestroy:V,beforeUnmount:I,destroyed:T,unmounted:Y,render:ee,renderTracked:U,renderTriggered:se,errorCaptured:ie,serverPrefetch:de,expose:Pe,inheritAttrs:pe,components:re,directives:Ee,filters:ae}=t,Ue=vy();{const[J]=e.propsOptions;if(J)for(const N in J)Ue("Props",N)}if(f&&xy(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($i(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=Ri(J);for(const N in J)Ue("Data",N),Ba(N[0])||Object.defineProperty(o,N,{configurable:!0,enumerable:!0,get:()=>J[N],set:St})}}if(Na=!0,i)for(const J in i){const N=i[J],we=ke(N)?N.bind(n,n):ke(N.get)?N.get.bind(n,n):St;we===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=qo({get:we,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)ad(l[J],o,n,J);if(d){const J=ke(d)?d.call(n):d;Reflect.ownKeys(J).forEach(N=>{As(N,J[N])})}p&&rd(p,e,"c");function D(J,N){ye(N)?N.forEach(we=>J(we.bind(n))):N&&J(N.bind(n))}if(D(Wt,h),D(Kt,y),D(cy,E),D(uy,x),D(ry,A),D(ay,O),D(hy,ie),D(py,U),D(fy,se),D(td,I),D(Is,Y),D(dy,de),ye(Pe))if(Pe.length){const J=e.exposed||(e.exposed={});Pe.forEach(N=>{Object.defineProperty(J,N,{get:()=>n[N],set:we=>n[N]=we})})}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 xy(e,t,n=St,o=!1){ye(e)&&(e=ja(e));for(const s in e){const i=e[s];let r;He(i)?"default"in i?r=Ps(i.from||s,i.default,!0):r=Ps(i.from||s):r=Ps(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 rd(e,t,n){Vt(ye(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function ad(e,t,n,o){const s=o.includes(".")?Zu(n,o):()=>n[o];if(Ge(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=>ad(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 Ra(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=>Yi(d,f,r,!0)),Yi(d,t,r)),He(t)&&i.set(t,d),d}function Yi(e,t,n,o=!1){const{mixins:s,extends:i}=t;i&&Yi(e,i,n,!0),s&&s.forEach(r=>Yi(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:ld,props:mo,emits:mo,methods:mo,computed:mo,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:mo,directives:mo,watch:ky,provide:ld,inject:$y};function ld(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 $y(e,t){return mo(ja(e),ja(t))}function ja(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 mo(e,t){return e?tt(tt(Object.create(null),e),t):t}function ky(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 Sy(e,t,n,o=!1){const s={},i={};Ei(i,Zi,1),e.propsDefaults=Object.create(null),cd(e,t,s,i);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);hd(t||{},s,e),n?e.props=o?s:hw(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Ey(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Ay(e,t,n,o){const{props:s,attrs:i,vnode:{patchFlag:r}}=e,l=Te(s),[d]=e.propsOptions;let f=!1;if(!Ey(e)&&(o||r>0)&&!(r&16)){if(r&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let y=p[h];if(qi(e.emitsOptions,y))continue;const E=t[y];if(d)if(Me(i,y))E!==i[y]&&(i[y]=E,f=!0);else{const x=en(y);s[x]=Fa(d,l,x,E,e,!1)}else E!==i[y]&&(i[y]=E,f=!0)}}}else{cd(e,t,s,i)&&(f=!0);let p;for(const h in l)(!t||!Me(t,h)&&((p=dn(h))===h||!Me(t,p)))&&(d?n&&(n[h]!==void 0||n[p]!==void 0)&&(s[h]=Fa(d,l,h,void 0,e,!0)):delete s[h]);if(i!==l)for(const h in i)(!t||!Me(t,h)&&!0)&&(delete i[h],f=!0)}f&&fn(e,"set","$attrs"),hd(t||{},s,e)}function cd(e,t,n,o){const[s,i]=e.propsOptions;let r=!1,l;if(t)for(let d in t){if(ki(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:qi(e.emitsOptions,d)||(!(d in o)||f!==o[d])&&(o[d]=f,r=!0)}if(i){const d=Te(n),f=l||ze;for(let p=0;p<i.length;p++){const h=i[p];n[h]=Fa(s,d,h,f[h],e,!Me(f,h))}}return r}function Fa(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]:(Fn(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 ud(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=h=>{d=!0;const[y,E]=ud(h,t,!0);tt(r,y),E&&l.push(...E)};!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,Bo),Bo;if(ye(i))for(let p=0;p<i.length;p++){Ge(i[p])||Z("props must be strings when using array syntax.",i[p]);const h=en(i[p]);dd(h)&&(r[h]=ze)}else if(i){He(i)||Z("invalid props options",i);for(const p in i){const h=en(p);if(dd(h)){const y=i[p],E=r[h]=ye(y)||ke(y)?{type:y}:Object.assign({},y);if(E){const x=pd(Boolean,E.type),A=pd(String,E.type);E[0]=x>-1,E[1]=A<0||x<A,(x>-1||Me(E,"default"))&&l.push(h)}}}}const f=[r,l];return He(e)&&o.set(e,f),f}function dd(e){return e[0]!=="$"?!0:(Z(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Ua(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function fd(e,t){return Ua(e)===Ua(t)}function pd(e,t){return ye(t)?t.findIndex(n=>fd(n,e)):ke(t)&&fd(t,e)?0:-1}function hd(e,t,n){const o=Te(t),s=n.propsOptions[0];for(const i in s){let r=s[i];r!=null&&Py(i,o[i],r,!Me(e,i)&&!Me(e,dn(i)))}}function Py(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:h,expectedType:y}=Iy(t,d[p]);f.push(y||""),l=h}if(!l){Z(Ty(e,t,f));return}}r&&!r(t)&&Z('Invalid prop: custom validator check failed for prop "'+e+'".')}}const Oy=On("String,Number,Boolean,Function,Symbol,BigInt");function Iy(e,t){let n;const o=Ua(t);if(Oy(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 Ty(e,t,n){let o=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(to).join(" | ")}`;const s=n[0],i=ca(t),r=md(t,s),l=md(t,i);return n.length===1&&gd(s)&&!Ly(s,i)&&(o+=` with value ${r}`),o+=`, got ${i} `,gd(i)&&(o+=`with value ${l}.`),o}function md(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function gd(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function Ly(...e){return e.some(t=>t.toLowerCase()==="boolean")}const wd=e=>e[0]==="_"||e==="$stable",Ha=e=>ye(e)?e.map(Ft):[Ft(e)],My=(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.`),Ha(t(...s))),n);return o._c=!1,o},yd=(e,t,n)=>{const o=e._ctx;for(const s in e){if(wd(s))continue;const i=e[s];if(ke(i))t[s]=My(s,i,o);else if(i!=null){Z(`Non-function value encountered for slot "${s}". Prefer function slots for better performance.`);const r=Ha(i);t[s]=()=>r}}},bd=(e,t)=>{Ta(e.vnode)||Z("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Ha(t);e.slots.default=()=>n},By=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Te(t),Ei(t,"_",n)):yd(t,e.slots={})}else e.slots={},t&&bd(e,t);Ei(e.slots,Zi,1)},Dy=(e,t,n)=>{const{vnode:o,slots:s}=e;let i=!0,r=ze;if(o.shapeFlag&32){const l=t._;l?lo?tt(s,t):n&&l===1?i=!1:(tt(s,t),!n&&l===1&&delete s._):(i=!t.$stable,yd(t,s)),r=t}else t&&(bd(e,t),r={default:1});if(i)for(const l in s)!wd(l)&&!(l in r)&&delete s[l]};function vd(){return{app:null,config:{isNativeTag:ou,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 Ny=0;function Ry(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=vd(),r=new Set;let l=!1;const d=i.app={_uid:Ny++,_component:o,_props:s,_container:null,_context:i,_instance:null,version:Id,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 Va(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 nd(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,h){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,h)},p&&t?t(y,f):e(y,f,h),l=!0,d._container=f,f.__vue_app__=d,d._instance=y.component,Nw(d,Id),tr(y.component)||y.component.proxy}},unmount(){l?(e(null,d._container),d._instance=null,Rw(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 za(e,t,n,o,s=!1){if(ye(e)){e.forEach((y,E)=>za(y,t&&(ye(t)?t[E]:t),n,o,s));return}if(Os(o)&&!s)return;const i=o.shapeFlag&4?tr(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,h=l.setupState;if(f!=null&&f!==d&&(Ge(f)?(p[f]=null,Me(h,f)&&(h[f]=null)):nt(f)&&(f.value=null)),ke(d))pn(d,l,12,[r,p]);else{const y=Ge(d),E=nt(d);if(y||E){const x=()=>{if(e.f){const A=y?Me(h,d)?h[d]:p[d]:d.value;s?ye(A)&&la(A,i):ye(A)?A.includes(i)||A.push(i):y?(p[d]=[i],Me(h,d)&&(h[d]=p[d])):(d.value=[i],e.k&&(p[e.k]=d.value))}else y?(p[d]=r,Me(h,d)&&(h[d]=r)):E?(d.value=r,e.k&&(p[e.k]=r)):Z("Invalid template ref type:",d,`(${typeof d})`)};r?(x.id=-1,At(x,n)):x()}else Z("Invalid template ref type:",d,`(${typeof d})`)}}let Ts,Dn;function gn(e,t){e.appContext.config.performance&&Xi()&&Dn.mark(`vue-${t}-${e.uid}`),Hw(e,t,Xi()?Dn.now():Date.now())}function wn(e,t){if(e.appContext.config.performance&&Xi()){const n=`vue-${t}-${e.uid}`,o=n+":end";Dn.mark(o),Dn.measure(`<${nr(e,e.type)}> ${t}`,n,o),Dn.clearMarks(n),Dn.clearMarks(o)}zw(e,t,Xi()?Dn.now():Date.now())}function Xi(){return Ts!==void 0||(typeof window<"u"&&window.performance?(Ts=!0,Dn=window.performance):Ts=!1),Ts}function jy(){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=sy;function Fy(e){return Uy(e)}function Uy(e,t){jy();const n=lu();n.__VUE__=!0,zu(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:s,patchProp:i,createElement:r,createText:l,createComment:d,setText:f,setElementText:p,parentNode:h,nextSibling:y,setScopeId:E=St,insertStaticContent:x}=e,A=(b,S,M,L=null,F=null,Q=null,oe=!1,q=null,G=lo?!1:!!S.dynamicChildren)=>{if(b===S)return;b&&!Nn(b,S)&&(L=_t(b),Qe(b,F,Q,!0),b=null),S.patchFlag===-2&&(G=!1,S.dynamicChildren=null);const{type:W,ref:ce,shapeFlag:R}=S;switch(W){case Ls:O(b,S,M,L);break;case bt:V(b,S,M,L);break;case Ms:b==null?I(S,M,L,oe):T(b,S,M,oe);break;case Be:Ee(b,S,M,L,F,Q,oe,q,G);break;default:R&1?U(b,S,M,L,F,Q,oe,q,G):R&6?ae(b,S,M,L,F,Q,oe,q,G):R&64||R&128?W.process(b,S,M,L,F,Q,oe,q,G,et):Z("Invalid VNode type:",W,`(${typeof W})`)}ce!=null&&F&&za(ce,b&&b.ref,Q,S||b,!S)},O=(b,S,M,L)=>{if(b==null)o(S.el=l(S.children),M,L);else{const F=S.el=b.el;S.children!==b.children&&f(F,S.children)}},V=(b,S,M,L)=>{b==null?o(S.el=d(S.children||""),M,L):S.el=b.el},I=(b,S,M,L)=>{[b.el,b.anchor]=x(b.children,S,M,L,b.el,b.anchor)},T=(b,S,M,L)=>{if(S.children!==b.children){const F=y(b.anchor);ee(b),[S.el,S.anchor]=x(S.children,M,F,L)}else S.el=b.el,S.anchor=b.anchor},Y=({el:b,anchor:S},M,L)=>{let F;for(;b&&b!==S;)F=y(b),o(b,M,L),b=F;o(S,M,L)},ee=({el:b,anchor:S})=>{let M;for(;b&&b!==S;)M=y(b),s(b),b=M;s(S)},U=(b,S,M,L,F,Q,oe,q,G)=>{oe=oe||S.type==="svg",b==null?se(S,M,L,F,Q,oe,q,G):Pe(b,S,F,Q,oe,q,G)},se=(b,S,M,L,F,Q,oe,q)=>{let G,W;const{type:ce,props:R,shapeFlag:ue,transition:m,dirs:w}=b;if(G=b.el=r(b.type,Q,R&&R.is,R),ue&8?p(G,b.children):ue&16&&de(b.children,G,null,L,F,Q&&ce!=="foreignObject",oe,q),w&&fo(b,null,L,"created"),ie(G,b,b.scopeId,oe,L),R){for(const C in R)C!=="value"&&!ki(C)&&i(G,C,null,R[C],Q,b.children,L,F,vt);"value"in R&&i(G,"value",null,R.value),(W=R.onVnodeBeforeMount)&&sn(W,L,b)}Object.defineProperty(G,"__vnode",{value:b,enumerable:!1}),Object.defineProperty(G,"__vueParentComponent",{value:L,enumerable:!1}),w&&fo(b,null,L,"beforeMount");const _=(!F||F&&!F.pendingBranch)&&m&&!m.persisted;_&&m.beforeEnter(G),o(G,S,M),((W=R&&R.onVnodeMounted)||_||w)&&At(()=>{W&&sn(W,L,b),_&&m.enter(G),w&&fo(b,null,L,"mounted")},F)},ie=(b,S,M,L,F)=>{if(M&&E(b,M),L)for(let Q=0;Q<L.length;Q++)E(b,L[Q]);if(F){let Q=F.subTree;if(Q.patchFlag>0&&Q.patchFlag&2048&&(Q=Pa(Q.children)||Q),S===Q){const oe=F.vnode;ie(b,oe,oe.scopeId,oe.slotScopeIds,F.parent)}}},de=(b,S,M,L,F,Q,oe,q,G=0)=>{for(let W=G;W<b.length;W++){const ce=b[W]=q?jn(b[W]):Ft(b[W]);A(null,ce,S,M,L,F,Q,oe,q)}},Pe=(b,S,M,L,F,Q,oe)=>{const q=S.el=b.el;let{patchFlag:G,dynamicChildren:W,dirs:ce}=S;G|=b.patchFlag&16;const R=b.props||ze,ue=S.props||ze;let m;M&&go(M,!1),(m=ue.onVnodeBeforeUpdate)&&sn(m,M,S,b),ce&&fo(S,b,M,"beforeUpdate"),M&&go(M,!0),lo&&(G=0,oe=!1,W=null);const w=F&&S.type!=="foreignObject";if(W?(pe(b.dynamicChildren,W,q,M,L,w,Q),M&&M.type.__hmrId&&Qi(b,S)):oe||we(b,S,q,null,M,L,w,Q,!1),G>0){if(G&16)re(q,S,R,ue,M,L,F);else if(G&2&&R.class!==ue.class&&i(q,"class",null,ue.class,F),G&4&&i(q,"style",R.style,ue.style,F),G&8){const _=S.dynamicProps;for(let C=0;C<_.length;C++){const P=_[C],k=R[P],j=ue[P];(j!==k||P==="value")&&i(q,P,k,j,F,b.children,M,L,vt)}}G&1&&b.children!==S.children&&p(q,S.children)}else!oe&&W==null&&re(q,S,R,ue,M,L,F);((m=ue.onVnodeUpdated)||ce)&&At(()=>{m&&sn(m,M,S,b),ce&&fo(S,b,M,"updated")},L)},pe=(b,S,M,L,F,Q,oe)=>{for(let q=0;q<S.length;q++){const G=b[q],W=S[q],ce=G.el&&(G.type===Be||!Nn(G,W)||G.shapeFlag&70)?h(G.el):M;A(G,W,ce,null,L,F,Q,oe,!0)}},re=(b,S,M,L,F,Q,oe)=>{if(M!==L){if(M!==ze)for(const q in M)!ki(q)&&!(q in L)&&i(b,q,M[q],null,oe,S.children,F,Q,vt);for(const q in L){if(ki(q))continue;const G=L[q],W=M[q];G!==W&&q!=="value"&&i(b,q,W,G,oe,S.children,F,Q,vt)}"value"in L&&i(b,"value",M.value,L.value)}},Ee=(b,S,M,L,F,Q,oe,q,G)=>{const W=S.el=b?b.el:l(""),ce=S.anchor=b?b.anchor:l("");let{patchFlag:R,dynamicChildren:ue,slotScopeIds:m}=S;(lo||R&2048)&&(R=0,G=!1,ue=null),m&&(q=q?q.concat(m):m),b==null?(o(W,M,L),o(ce,M,L),de(S.children,M,ce,F,Q,oe,q,G)):R>0&&R&64&&ue&&b.dynamicChildren?(pe(b.dynamicChildren,ue,M,F,Q,oe,q),F&&F.type.__hmrId?Qi(b,S):(S.key!=null||F&&S===F.subTree)&&Qi(b,S,!0)):we(b,S,M,ce,F,Q,oe,q,G)},ae=(b,S,M,L,F,Q,oe,q,G)=>{S.slotScopeIds=q,b==null?S.shapeFlag&512?F.ctx.activate(S,M,L,oe,G):Ue(S,M,L,F,Q,oe,G):D(b,S,G)},Ue=(b,S,M,L,F,Q,oe)=>{const q=b.component=Jy(b,L,F);if(q.type.__hmrId&&Lw(q),bs(b),gn(q,"mount"),Ta(b)&&(q.ctx.renderer=et),gn(q,"init"),Qy(q),wn(q,"init"),q.asyncDep){if(F&&F.registerDep(q,J),!b.el){const G=q.subTree=Ce(bt);V(null,G,S,M)}return}J(q,b,S,M,F,Q,oe),vs(),wn(q,"mount")},D=(b,S,M)=>{const L=S.component=b.component;if(Qw(b,S,M))if(L.asyncDep&&!L.asyncResolved){bs(S),N(L,S,M),vs();return}else L.next=S,Iw(L.update),L.update();else S.el=b.el,L.vnode=S},J=(b,S,M,L,F,Q,oe)=>{const q=()=>{if(b.isMounted){let{next:ce,bu:R,u:ue,parent:m,vnode:w}=b,_=ce,C;bs(ce||b.vnode),go(b,!1),ce?(ce.el=w.el,N(b,ce,oe)):ce=w,R&&No(R),(C=ce.props&&ce.props.onVnodeBeforeUpdate)&&sn(C,m,ce,w),go(b,!0),gn(b,"render");const P=Aa(b);wn(b,"render");const k=b.subTree;b.subTree=P,gn(b,"patch"),A(k,P,h(k.el),_t(k),b,F,Q),wn(b,"patch"),ce.el=P.el,_===null&&Oa(b,P.el),ue&&At(ue,F),(C=ce.props&&ce.props.onVnodeUpdated)&&At(()=>sn(C,m,ce,w),F),qu(b),vs()}else{let ce;const{el:R,props:ue}=S,{bm:m,m:w,parent:_}=b,C=Os(S);if(go(b,!1),m&&No(m),!C&&(ce=ue&&ue.onVnodeBeforeMount)&&sn(ce,_,S),go(b,!0),R&&at){const P=()=>{gn(b,"render"),b.subTree=Aa(b),wn(b,"render"),gn(b,"hydrate"),at(R,b.subTree,b,F,null),wn(b,"hydrate")};C?S.type.__asyncLoader().then(()=>!b.isUnmounted&&P()):P()}else{gn(b,"render");const P=b.subTree=Aa(b);wn(b,"render"),gn(b,"patch"),A(null,P,M,L,b,F,Q),wn(b,"patch"),S.el=P.el}if(w&&At(w,F),!C&&(ce=ue&&ue.onVnodeMounted)){const P=S;At(()=>sn(ce,_,P),F)}(S.shapeFlag&256||_&&Os(_.vnode)&&_.vnode.shapeFlag&256)&&b.a&&At(b.a,F),b.isMounted=!0,jw(b),S=M=L=null}},G=b.effect=new ma(q,()=>zi(W),b.scope),W=b.update=()=>G.run();W.id=b.uid,go(b,!0),G.onTrack=b.rtc?ce=>No(b.rtc,ce):void 0,G.onTrigger=b.rtg?ce=>No(b.rtg,ce):void 0,W.ownerInstance=b,W()},N=(b,S,M)=>{S.component=b;const L=b.vnode.props;b.vnode=S,b.next=null,Ay(b,S.props,L,M),Dy(b,S.children,M),so(),Ru(),io()},we=(b,S,M,L,F,Q,oe,q,G=!1)=>{const W=b&&b.children,ce=b?b.shapeFlag:0,R=S.children,{patchFlag:ue,shapeFlag:m}=S;if(ue>0){if(ue&128){Le(W,R,M,L,F,Q,oe,q,G);return}else if(ue&256){Se(W,R,M,L,F,Q,oe,q,G);return}}m&8?(ce&16&&vt(W,F,Q),R!==W&&p(M,R)):ce&16?m&16?Le(W,R,M,L,F,Q,oe,q,G):vt(W,F,Q,!0):(ce&8&&p(M,""),m&16&&de(R,M,L,F,Q,oe,q,G))},Se=(b,S,M,L,F,Q,oe,q,G)=>{b=b||Bo,S=S||Bo;const W=b.length,ce=S.length,R=Math.min(W,ce);let ue;for(ue=0;ue<R;ue++){const m=S[ue]=G?jn(S[ue]):Ft(S[ue]);A(b[ue],m,M,null,F,Q,oe,q,G)}W>ce?vt(b,F,Q,!0,!1,R):de(S,M,L,F,Q,oe,q,G,R)},Le=(b,S,M,L,F,Q,oe,q,G)=>{let W=0;const ce=S.length;let R=b.length-1,ue=ce-1;for(;W<=R&&W<=ue;){const m=b[W],w=S[W]=G?jn(S[W]):Ft(S[W]);if(Nn(m,w))A(m,w,M,null,F,Q,oe,q,G);else break;W++}for(;W<=R&&W<=ue;){const m=b[R],w=S[ue]=G?jn(S[ue]):Ft(S[ue]);if(Nn(m,w))A(m,w,M,null,F,Q,oe,q,G);else break;R--,ue--}if(W>R){if(W<=ue){const m=ue+1,w=m<ce?S[m].el:L;for(;W<=ue;)A(null,S[W]=G?jn(S[W]):Ft(S[W]),M,w,F,Q,oe,q,G),W++}}else if(W>ue)for(;W<=R;)Qe(b[W],F,Q,!0),W++;else{const m=W,w=W,_=new Map;for(W=w;W<=ue;W++){const xe=S[W]=G?jn(S[W]):Ft(S[W]);xe.key!=null&&(_.has(xe.key)&&Z("Duplicate keys found during update:",JSON.stringify(xe.key),"Make sure keys are unique."),_.set(xe.key,W))}let C,P=0;const k=ue-w+1;let j=!1,H=0;const X=new Array(k);for(W=0;W<k;W++)X[W]=0;for(W=m;W<=R;W++){const xe=b[W];if(P>=k){Qe(xe,F,Q,!0);continue}let he;if(xe.key!=null)he=_.get(xe.key);else for(C=w;C<=ue;C++)if(X[C-w]===0&&Nn(xe,S[C])){he=C;break}he===void 0?Qe(xe,F,Q,!0):(X[he-w]=W+1,he>=H?H=he:j=!0,A(xe,S[he],M,null,F,Q,oe,q,G),P++)}const $e=j?Hy(X):Bo;for(C=$e.length-1,W=k-1;W>=0;W--){const xe=w+W,he=S[xe],Ne=xe+1<ce?S[xe+1].el:L;X[W]===0?A(null,he,M,Ne,F,Q,oe,q,G):j&&(C<0||W!==$e[C]?Xe(he,M,Ne,2):C--)}}},Xe=(b,S,M,L,F=null)=>{const{el:Q,type:oe,transition:q,children:G,shapeFlag:W}=b;if(W&6){Xe(b.component.subTree,S,M,L);return}if(W&128){b.suspense.move(S,M,L);return}if(W&64){oe.move(b,S,M,et);return}if(oe===Be){o(Q,S,M);for(let R=0;R<G.length;R++)Xe(G[R],S,M,L);o(b.anchor,S,M);return}if(oe===Ms){Y(b,S,M);return}if(L!==2&&W&1&&q)if(L===0)q.beforeEnter(Q),o(Q,S,M),At(()=>q.enter(Q),F);else{const{leave:R,delayLeave:ue,afterLeave:m}=q,w=()=>o(Q,S,M),_=()=>{R(Q,()=>{w(),m&&m()})};ue?ue(Q,w,_):_()}else o(Q,S,M)},Qe=(b,S,M,L=!1,F=!1)=>{const{type:Q,props:oe,ref:q,children:G,dynamicChildren:W,shapeFlag:ce,patchFlag:R,dirs:ue}=b;if(q!=null&&za(q,null,M,b,!0),ce&256){S.ctx.deactivate(b);return}const m=ce&1&&ue,w=!Os(b);let _;if(w&&(_=oe&&oe.onVnodeBeforeUnmount)&&sn(_,S,b),ce&6)$n(b.component,M,L);else{if(ce&128){b.suspense.unmount(M,L);return}m&&fo(b,null,S,"beforeUnmount"),ce&64?b.type.remove(b,S,M,F,et,L):W&&(Q!==Be||R>0&&R&64)?vt(W,S,M,!1,!0):(Q===Be&&R&384||!F&&ce&16)&&vt(G,S,M),L&&It(b)}(w&&(_=oe&&oe.onVnodeUnmounted)||m)&&At(()=>{_&&sn(_,S,b),m&&fo(b,null,S,"unmounted")},M)},It=b=>{const{type:S,el:M,anchor:L,transition:F}=b;if(S===Be){b.patchFlag>0&&b.patchFlag&2048&&F&&!F.persisted?b.children.forEach(oe=>{oe.type===bt?s(oe.el):It(oe)}):Tt(M,L);return}if(S===Ms){ee(b);return}const Q=()=>{s(M),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(b.shapeFlag&1&&F&&!F.persisted){const{leave:oe,delayLeave:q}=F,G=()=>oe(M,Q);q?q(b.el,Q,G):G()}else Q()},Tt=(b,S)=>{let M;for(;b!==S;)M=y(b),s(b),b=M;s(S)},$n=(b,S,M)=>{b.type.__hmrId&&Mw(b);const{bum:L,scope:F,update:Q,subTree:oe,um:q}=b;L&&No(L),F.stop(),Q&&(Q.active=!1,Qe(oe,b,S,M)),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()),Uw(b)},vt=(b,S,M,L=!1,F=!1,Q=0)=>{for(let oe=Q;oe<b.length;oe++)Qe(b[oe],S,M,L,F)},_t=b=>b.shapeFlag&6?_t(b.component.subTree):b.shapeFlag&128?b.suspense.next():y(b.anchor||b.el),ut=(b,S,M)=>{b==null?S._vnode&&Qe(S._vnode,null,null,!0):A(S._vnode||null,b,S,null,null,null,M),Ru(),ju(),S._vnode=b},et={p:A,um:Qe,m:Xe,r:It,mt:Ue,mc:de,pc:we,pbc:pe,n:_t,o:e};let Jn,at;return t&&([Jn,at]=t(et)),{render:ut,hydrate:Jn,createApp:Ry(ut,Jn)}}function go({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Qi(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]=jn(s[i]),l.el=r.el),n||Qi(r,l)),l.type===Ls&&(l.el=r.el),l.type===bt&&!l.el&&(l.el=r.el)}}function Hy(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 zy=e=>e.__isTeleport,Be=Symbol("Fragment"),Ls=Symbol("Text"),bt=Symbol("Comment"),Ms=Symbol("Static"),Bs=[];let Rt=null;function K(e=!1){Bs.push(Rt=e?null:[])}function _d(){Bs.pop(),Rt=Bs[Bs.length-1]||null}let Ho=1;function xd(e){Ho+=e}function Cd(e){return e.dynamicChildren=Ho>0?Rt||Bo:null,_d(),Ho>0&&Rt&&Rt.push(e),e}function te(e,t,n,o,s,i){return Cd(u(e,t,n,o,s,i,!0))}function jt(e,t,n,o,s){return Cd(Ce(e,t,n,o,s,!0))}function zo(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 qy=(...e)=>Vy(...e),Zi="__vInternal",$d=({key:e})=>e!=null?e:null,er=({ref:e,ref_key:t,ref_for:n})=>e!=null?Ge(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===Be?0:1,r=!1,l=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$d(t),ref:t&&er(t),scopeId:Vi,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?(qa(d,n),i&128&&e.normalize(d)):n&&(d.shapeFlag|=Ge(n)?8:16),d.key!==d.key&&Z("VNode created with invalid key (NaN). VNode type:",d.type),Ho>0&&!r&&Rt&&(d.patchFlag>0||i&6)&&d.patchFlag!==32&&Rt.push(d),d}const Ce=qy;function Vy(e,t=null,n=null,o=0,s=null,i=!1){if((!e||e===my)&&(e||Z(`Invalid vnode type when creating vnode: ${e}.`),e=bt),zo(e)){const l=Rn(e,t,!0);return n&&qa(l,n),Ho>0&&!i&&Rt&&(l.shapeFlag&6?Rt[Rt.indexOf(e)]=l:Rt.push(l)),l.patchFlag|=-2,l}if(Od(e)&&(e=e.__vccOpts),t){t=kd(t);let{class:l,style:d}=t;l&&!Ge(l)&&(t.class=Je(l)),He(d)&&(Ui(d)&&!ye(d)&&(d=tt({},d)),t.style=un(d))}const r=Ge(e)?1:Zw(e)?128:zy(e)?64:He(e)?4:ke(e)?2:0;return r&4&&Ui(e)&&(e=Te(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 kd(e){return e?Ui(e)||Zi in e?tt({},e):e:null}function Rn(e,t,n=!1){const{props:o,ref:s,patchFlag:i,children:r}=e,l=t?Ed(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&$d(l),ref:t&&t.ref?n&&s?ye(s)?s.concat(er(t)):[s,er(t)]:er(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i===-1&&ye(r)?r.map(Sd):r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Be?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 Sd(e){const t=Rn(e);return ye(e.children)&&(t.children=e.children.map(Sd)),t}function le(e=" ",t=0){return Ce(Ls,null,e,t)}function Wy(e,t){const n=Ce(Ms,null,e);return n.staticCount=t,n}function Ke(e="",t=!1){return t?(K(),jt(bt,null,e)):Ce(bt,null,e)}function Ft(e){return e==null||typeof e=="boolean"?Ce(bt):ye(e)?Ce(Be,null,e.slice()):typeof e=="object"?jn(e):Ce(Ls,null,String(e))}function jn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rn(e)}function qa(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),qa(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Zi 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 Ed(...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=Je([t.class,o.class]));else if(s==="style")t.style=un([t.style,o.style]);else if(ps(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){Vt(e,t,7,[n,o])}const Ky=vd();let Gy=0;function Jy(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||Ky,i={uid:Gy++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ng(!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:ud(o,s),emitsOptions:Wu(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=wy(i),i.root=t?t.root:i,i.emit=Vw.bind(null,i),e.ce&&e.ce(i),i}let Ye=null;const Yy=()=>Ye||it,Fn=e=>{Ye=e,e.scope.on()},Un=()=>{Ye&&Ye.scope.off(),Ye=null},Xy=On("slot,component");function Va(e,t){const n=t.isNativeTag||ou;(Xy(e)||n(e))&&Z("Do not use built-in or reserved HTML elements as component id: "+e)}function Ad(e){return e.vnode.shapeFlag&4}let Ds=!1;function Qy(e,t=!1){Ds=t;const{props:n,children:o}=e.vnode,s=Ad(e);Sy(e,n,s,t),By(e,o);const i=s?Zy(e,t):void 0;return Ds=!1,i}function Zy(e,t){var n;const o=e.type;{if(o.name&&Va(o.name,e.appContext.config),o.components){const i=Object.keys(o.components);for(let r=0;r<i.length;r++)Va(i[r],e.appContext.config)}if(o.directives){const i=Object.keys(o.directives);for(let r=0;r<i.length;r++)nd(i[r])}o.compilerOptions&&eb()&&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=Ou(new Proxy(e.ctx,id)),yy(e);const{setup:s}=o;if(s){const i=e.setupContext=s.length>1?nb(e):null;Fn(e),so();const r=pn(s,e,0,[Ro(e.props),i]);if(io(),Un(),$i(r)){if(r.then(Un,Un),t)return r.then(l=>{Wa(e,l,t)}).catch(l=>{_s(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 Wa(e,r,t)}else Pd(e,t)}function Wa(e,t,n){ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:He(t)?(zo(t)&&Z("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=Lu(t),by(e)):t!==void 0&&Z(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Pd(e,n)}let Ka;const eb=()=>!Ka;function Pd(e,t,n){const o=e.type;if(!e.render){if(!t&&Ka&&!o.render){const s=o.template||Ra(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=Ka(s,f),wn(e,"compile")}}e.render=o.render||St}Fn(e),so(),_y(e),io(),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 tb(e){return new Proxy(e.attrs,{get(t,n){return Ki(),Et(e,"get","$attrs"),t[n]},set(){return Z("setupContext.attrs is readonly."),!1},deleteProperty(){return Z("setupContext.attrs is readonly."),!1}})}function nb(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=tb(e))},get slots(){return Ro(e.slots)},get emit(){return(o,...s)=>e.emit(o,...s)},expose:t})}function tr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Lu(Ou(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ho)return ho[n](e)},has(t,n){return n in t||n in ho}}))}const ob=/(?:^|[-_])(\w)/g,sb=e=>e.replace(ob,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ga(e,t=!0){return ke(e)?e.displayName||e.name:e.name||t&&e.__name}function nr(e,t,n=!1){let o=Ga(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?sb(o):n?"App":"Anonymous"}function Od(e){return ke(e)&&"__vccOpts"in e}const qo=(e,t)=>xw(e,t,Ds);function yn(e){const t=Yy();t||Z("withAsyncContext called without active current instance. This is likely a bug.");let n=e();return Un(),$i(n)&&(n=n.catch(o=>{throw Fn(t),o})),[n,()=>Fn(t)]}function ib(e,t,n){const o=arguments.length;return o===2?He(t)&&!ye(t)?zo(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&zo(n)&&(n=[n]),Ce(e,t,n))}const rb=Symbol("ssrContext"),ab=()=>{{const e=Ps(rb);return e||Z("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Ja(e){return!!(e&&e.__v_isShallow)}function lb(){if(typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},o={style:"color:#9d288c"},s={header(h){return He(h)?h.__isVue?["div",e,"VueInstance"]:nt(h)?["div",{},["span",e,p(h)],"<",l(h.value),">"]:ro(h)?["div",{},["span",e,Ja(h)?"ShallowReactive":"Reactive"],"<",l(h),`>${Mn(h)?" (readonly)":""}`]:Mn(h)?["div",{},["span",e,Ja(h)?"ShallowReadonly":"Readonly"],"<",l(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...i(h.$)]}};function i(h){const y=[];h.type.props&&h.props&&y.push(r("props",Te(h.props))),h.setupState!==ze&&y.push(r("setup",h.setupState)),h.data!==ze&&y.push(r("data",Te(h.data)));const E=d(h,"computed");E&&y.push(r("computed",E));const x=d(h,"inject");return x&&y.push(r("injected",x)),y.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),y}function r(h,y){return y=tt({},y),Object.keys(y).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(y).map(E=>["div",{},["span",o,E+": "],l(y[E],!1)])]]:["span",{}]}function l(h,y=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",n,JSON.stringify(h)]:typeof h=="boolean"?["span",o,h]:He(h)?["object",{object:y?Te(h):h}]:["span",n,String(h)]}function d(h,y){const E=h.type;if(ke(E))return;const x={};for(const A in h.ctx)f(E,A,y)&&(x[A]=h.ctx[A]);return x}function f(h,y,E){const x=h[E];if(ye(x)&&x.includes(y)||He(x)&&y in x||h.extends&&f(h.extends,y,E)||h.mixins&&h.mixins.some(A=>f(A,y,E)))return!0}function p(h){return Ja(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}const Id="3.2.47",cb="http://www.w3.org/2000/svg",wo=typeof document<"u"?document:null,Td=wo&&wo.createElement("template"),ub={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?wo.createElementNS(cb,e):wo.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>wo.createTextNode(e),createComment:e=>wo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wo.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{Td.innerHTML=o?`<svg>${e}</svg>`:e;const l=Td.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 db(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 fb(e,t,n){const o=e.style,s=Ge(n);if(n&&!s){if(t&&!Ge(t))for(const i in t)n[i]==null&&Ya(o,i,"");for(const i in n)Ya(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 pb=/[^\\];\s*$/,Ld=/\s*!important$/;function Ya(e,t,n){if(ye(n))n.forEach(o=>Ya(e,t,o));else if(n==null&&(n=""),pb.test(n)&&Z(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const o=hb(e,t);Ld.test(n)?e.setProperty(dn(o),n.replace(Ld,""),"important"):e[o]=n}}const Md=["Webkit","Moz","ms"],Xa={};function hb(e,t){const n=Xa[t];if(n)return n;let o=en(t);if(o!=="filter"&&o in e)return Xa[t]=o;o=to(o);for(let s=0;s<Md.length;s++){const i=Md[s]+o;if(i in e)return Xa[t]=i}return t}const Bd="http://www.w3.org/1999/xlink";function mb(e,t,n,o,s){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Bd,t.slice(6,t.length)):e.setAttributeNS(Bd,t,n);else{const i=Pg(t);n==null||i&&!tu(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function gb(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=tu(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 wb(e,t,n,o){e.removeEventListener(t,n,o)}function yb(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]=bb(t);if(o){const f=i[t]=xb(o,s);Hn(e,l,f,d)}else r&&(wb(e,l,r,d),i[t]=void 0)}}const Dd=/(?:Once|Passive|Capture)$/;function bb(e){let t;if(Dd.test(e)){t={};let o;for(;o=e.match(Dd);)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 Qa=0;const vb=Promise.resolve(),_b=()=>Qa||(vb.then(()=>Qa=0),Qa=Date.now());function xb(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Vt(Cb(o,n.value),t,5,[o])};return n.value=e,n.attached=_b(),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 Nd=/^on[a-z]/,$b=(e,t,n,o,s=!1,i,r,l,d)=>{t==="class"?db(e,o,s):t==="style"?fb(e,n,o):ps(t)?Ci(t)||yb(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):kb(e,t,o,s))?gb(e,t,o,i,r,l,d):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),mb(e,t,o,s))};function kb(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Nd.test(t)&&ke(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Nd.test(t)&&Ge(n)?!1:t in e}const Vo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ye(t)?n=>No(t,n):t};function Sb(e){e.target.composing=!0}function Rd(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=Vo(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=Ai(l)),e._assign(l)}),n&&Hn(e,"change",()=>{e.value=e.value.trim()}),t||(Hn(e,"compositionstart",Sb),Hn(e,"compositionend",Rd),Hn(e,"change",Rd))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:s}},i){if(e._assign=Vo(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(s||e.type==="number")&&Ai(e.value)===t))return;const r=t==null?"":t;e.value!==r&&(e.value=r)}},Oe={deep:!0,created(e,t,n){e._assign=Vo(n),Hn(e,"change",()=>{const o=e._modelValue,s=Ns(e),i=e.checked,r=e._assign;if(ye(o)){const l=aa(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(Do(o)){const l=new Set(o);i?l.add(s):l.delete(s),r(l)}else r(Ud(e,i))})},mounted:jd,beforeUpdate(e,t,n){e._assign=Vo(n),jd(e,t,n)}};function jd(e,{value:t,oldValue:n},o){e._modelValue=t,ye(t)?e.checked=aa(t,o.props.value)>-1:Do(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=fs(t,Ud(e,!0)))}const or={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=Do(t);Hn(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Ai(Ns(r)):Ns(r));e._assign(e.multiple?s?new Set(i):i:i[0])}),e._assign=Vo(o)},mounted(e,{value:t}){Fd(e,t)},beforeUpdate(e,t,n){e._assign=Vo(n)},updated(e,{value:t}){Fd(e,t)}};function Fd(e,t){const n=e.multiple;if(n&&!ye(t)&&!Do(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=Ns(i);if(n)ye(t)?i.selected=aa(t,r)>-1:i.selected=t.has(r);else if(fs(Ns(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function Ns(e){return"_value"in e?e._value:e.value}function Ud(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Eb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Hd=(e,t)=>n=>{if(!("key"in n))return;const o=dn(n.key);if(t.some(s=>s===o||Eb[s]===o))return e(n)},Gt={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Rs(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),Rs(e,!0),o.enter(e)):o.leave(e,()=>{Rs(e,!1)}):Rs(e,t))},beforeUnmount(e,{value:t}){Rs(e,t)}};function Rs(e,t){e.style.display=t?e._vod:"none"}const Ab=tt({patchProp:$b},ub);let zd;function Pb(){return zd||(zd=Fy(Ab))}const yo=(...e)=>{const t=Pb().createApp(...e);Ob(t),Ib(t);const{mount:n}=t;return t.mount=o=>{const s=Tb(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 Ob(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>Eg(t)||Ag(t),writable:!1})}function Ib(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 Tb(e){if(Ge(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 Lb(){lb()}Lb();const Mb={key:0,class:"ce-custom-url-help"},Bb={class:"ce-custom-url-help-body"},Db=u("hr",null,null,-1),Nb={key:0},Rb={class:"pure-table pure-table-bordered"},jb=u("thead",null,[u("tr",null,[u("th",{width:"50%"},"变量"),u("th",{width:"50%"},"说明")])],-1),Fb=["onClick"],Ub=De({__name:"CustomUrlHelp",setup(e){const t=ve(eg),n=ve(!1);Kt(async()=>{window.addEventListener("message",s=>{const{event:i}=s.data;i==="customUrlHelp"&&(n.value=!0)},!1)});const o=s=>{Ut(s.key),fe({text:"已复制到剪贴板",icon:"success",timer:1e3})};return(s,i)=>n.value?(K(),te("div",Mb,[u("div",Bb,[u("h1",null,[le(" 自定义菜单变量说明 "),u("a",{href:"javascript:void(0)",onClick:i[0]||(i[0]=r=>n.value=!1)},"关闭")]),Db,(K(!0),te(Be,null,ct(t.value,(r,l)=>(K(),te("div",{key:l},[u("h2",null,ge(r.label),1),r.memo?(K(),te("p",Nb,ge(r.memo),1)):Ke("",!0),u("table",Rb,[jb,u("tbody",null,[(K(!0),te(Be,null,ct(r.items,(d,f)=>(K(),te("tr",{key:f},[u("td",null,[u("span",{class:"ce-variable",onClick:p=>o(d)},ge(d.key),9,Fb)]),u("td",null,ge(d.label),1)]))),128))])])]))),128))])])):Ke("",!0)}}),ZA="",eP="",qd="enabled_custom_urls_for_search",Vd="enabled_custom_urls_for_play";async function Hb(e){await lt.set(qd,e)}async function zb(e){await lt.set(Vd,e)}async function qb(){const e=nl,t=e.filter(s=>s.enabled).map(s=>s.key),n=await lt.get(qd,t),o=[];return e.forEach(s=>{n.includes(s.key)&&o.push(s.key)}),o}async function Vb(){const e=tl,t=e.filter(s=>s.enabled).map(s=>s.key),n=await lt.get(Vd,t),o=[];return e.forEach(s=>{n.includes(s.key)&&o.push(s.key)}),o}async function Wd(){const e=await qb();return nl.forEach(t=>{t.enabled=e.includes(t.key)}),nl}async function Za(){const e=await Vb();return tl.forEach(t=>{t.enabled=e.includes(t.key)}),tl}const Kd="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=",el="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",tl=[dt({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}"}),dt({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}"}),dt({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}"}),dt({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}"}),dt({enabled:!0,key:"p_builtin_infuse",label:"Infuse播放",icon:el,memo:"调用Infuse播放视频(使用CloudDrive链接)",url:"infuse://x-callback-url/play?url={clouddrive_stream_url:encode}"}),dt({enabled:!1,key:"p_builtin_nplayer_mac",label:"nPlayer-mac播放",icon:el,memo:"调用nPlayer(mac版)播放视频(使用CloudDrive链接)",url:"nplayer-mac://weblink?url={clouddrive_stream_url:encode}&new_window=1"}),dt({enabled:!1,key:"p_builtin_nplayer_win",label:"nPlayer-win播放",icon:el,memo:"调用nPlayer(非mac版)播放视频(使用CloudDrive链接)",url:"nplayer-{clouddrive_stream_url:encode}"}),dt({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"})],nl=[dt({enabled:!0,key:"s_builtin_115_pure_name",label:"115-不含后缀",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀)",url:"{pure_name:search}"}),dt({enabled:!1,key:"s_builtin_115_full_name",label:"115-完整名称",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(完整文件名)",url:"{full_name:search}"}),dt({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}"}),dt({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}"}),dt({enabled:!0,key:"s_builtin_bing_pure_name",label:"Bing-不含后缀",icon:Kd,memo:"使用Bing搜索文件名(不含后缀)",url:"https://cn.bing.com/search?q={pure_name:encode}"}),dt({enabled:!1,key:"s_builtin_bing_full_name",label:"Bing-完整名称",icon:Kd,memo:"使用Bing搜索文件名(完整文件名)",url:"https://cn.bing.com/search?q={full_name:encode}"}),dt({enabled:!0,key:"s_builtin_115_pure_name_manual",label:"115-不含后缀-手动",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀),手动编辑后搜索",url:"{pure_name:manual:search}"})],Gd="list_config";function Wb(e){return{sizeSorter:!0,sizeSorterDirAttrInterval:100,showSha1:!1,showFolderSizeButton:!0,showCopyButtonOnPathBar:!0,showGotoButtonOnPathBar:!0,...e}}async function sr(){const e=Wb(),t=await lt.get(Gd,e);return{...e,...t}}async function Kb(e){await lt.set(Gd,e)}var Jd=(e=>(e[e.asc=0]="asc",e[e.desc=1]="desc",e))(Jd||{});async function Gb(e,t,n=!1){const o=await sr(),s=await Zt(!1),i=await To(),r=await Lo(!1);console.log("[items]",r),fe({html:"正在获取子文件夹大小...",icon:"info",position:"top-end",timer:0}),me.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 h=await us(d.cate_id);me.update({html:`[${l+1} / ${r.length}] 正在获取子文件夹大小:${d.n}`}),p.text(h.size),f.addClass("ce-size-got"),l<r.length-1&&await Ht(o.sizeSorterDirAttrInterval)}return me.hideLoading(),e&&await Jb(s),s}async function ir(e,t,n,o){const s=await To();s.find('li[file_type="0"]:not(.ce-size-got)').length>0&&await Gb(n);const r=s.find("ul"),l=r.children("li").toArray();l.sort(function(f,p){const h=$(f),y=$(p),E=Kl(h.find(".file-size span:eq(0)").text()),x=Kl(y.find(".file-size span:eq(0)").text());return t===0?E-x:x-E});const d=$("<ul></ul>");$.each(l,function(f,p){d.append(p)}),r.replaceWith(d),n?me.update({title:"排序完成",html:`已完成排序: ${t===0?"小 > 大":"大 > 小"}`,icon:"success"}):fe({html:`已完成排序: ${t===0?"小 > 大":"大 > 小"}`,icon:"success",timer:1500,position:"top-end"})}async function Jb(e){me.fire({toast:!0,title:"获取子文件夹大小",html:"获取子文件夹大小完成",icon:"success",showConfirmButton:!0,confirmButtonText:"大 > 小",confirmButtonColor:"#3085d6",showDenyButton:!0,denyButtonText:"小 > 大",denyButtonColor:"#d33",position:"top-end",showCloseButton:!0,closeButtonAriaLabel:"关闭",preConfirm:async()=>(console.log("preConfirm"),ir(e,1,!0),!1),preDeny:async()=>(console.log("preDeny"),ir(e,0,!0),!1)})}async function Yb(){await ol();const t=(await Yn("#js_data_list"))[0];Xb(),new MutationObserver(async([o])=>{o.type==="childList"&&await ol()}).observe(t,{childList:!0})}async function Xb(){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 ei(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 ol())}})}async function ol(){const e=await sr();tv(e);const t=await Fc(!1);for(let n=0;n<t.length;n++){const o=t.eq(n),s=await Bt(o);await Qb(e,o,s)}}async function Qb(e,t,n){await Zb(e,t,n),await ev(e,t,n)}async function Zb(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(),Ut(n.sha),fe({title:"复制SHA1",text:"已复制文件SHA1",icon:"success",timer:1500})}),o.append(s)}async function ev(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 us(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 tv(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 ir(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 nv(e,t){const n=[];for(const o of t){const s=Lr(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 Zn();if(!l)return;const d=await Bt(l),f=await Br(),p=await ia(d,o,f);if(p.includes("v.anxia.com")){const y=(await Lo(!1)).find(E=>E.play_long&&E.play_long>0);na(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 ov(){const e=[...(await Za()).filter(t=>t.enabled),...(await ds(Pn.play)).filter(t=>t.enabled)];return new Nt({key:"_play_with_x",label:"播放全部",icon:"icon-operate ifo-video-play",title:"",onClick:async(t,n)=>{},subItems:[...await nv(cg,e)]})}async function sv(){return new Nt({key:"_rename_dir",label:"重命名文件夹",icon:"icon-operate ifo-rename",title:'重命名当前目录,支持"高级模式"',onClick:async(e,t)=>{await e.closeMenu();const n=await Zn();!n||unsafeWindow.Core.Dir.Rename("1",n.attr("cate_id"),n.attr("title"))}})}async function iv(){return new Nt({key:"_move_dir",label:"移动文件夹",icon:"icon-operate ifo-move",title:"移动当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await Zn();!n||await ea(n,"move",!0)}})}async function rv(){return new Nt({key:"_del_dir",label:"删除文件夹",icon:"icon-operate ifo-remove",title:"删除当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await Zn();if(!n)return;const o=await fi();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 av(){return new Nt({key:"_copy_dir",label:"复制文件夹",icon:"icon-operate ifo-copy",title:"复制当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await Zn();!n||await ea(n,"set_copy",!0)}})}async function lv(){return new Nt({key:"_copy_dir_to",label:"复制文件夹到",icon:"icon-operate ifo-copyto",title:"复制当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await Zn();!n||await ea(n,"copy_list",!0)}})}async function cv(){return new Nt({key:"view_dir_attribute",label:"查看属性",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu();const n=await Zn();!n||Io().Core.FileAPI.getAttribute(n,{showPlayLongChange:function(o,s,i){Fm().CACHE.FileMain.List.ResetPlayLongText(o,s,i)}},function(){console.log("查看属性 ok")})}})}async function rr(e,t){return new Nt({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 hi(i,t),Ut(i.join(`
`)),fe({title:"复制名称",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success"})}})}async function Yd(e,t){return new Nt({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 pi(s[0])).replace(/\/[^/]+$/,""),l=[];for(let d=0;d<s.length;d++){const f=r+"/"+s[d].n;l.push(await mi(s[d],f,t))}Ut(l.join(`
`)),fe({title:"复制路径",text:`已复制文件路径。数量:${l.length},复制类型:${e}`,icon:"success"})}})}async function uv(){return new Nt({key:"show_sub_folder_size",label:"子文件夹大小",title:"显示当前目录下已加载的所有子文件夹的大小,并进行排序",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu(),await ir("",Jd.desc,!0)}})}async function Xd(e,t){return new ra({key:`_l_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,o)=>{await n.closeMenu();const s=await Vc();if(!s||!s.n){fe({text:"无法获取名称",timer:1200});return}let i=[s.n];i=await hi(i,t),Ut(i.join(`
`)),fe({title:"复制名称",text:"已复制选中文件名",icon:"success"})}})}async function Qd(e,t){return new ra({key:`_l_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制路径",onClick:async(n,o)=>{await n.closeMenu();const s=await Vc();if(!s||!s.n){fe({text:"无法获取路径",timer:1200});return}const i=await pi(s),r=await mi(s,i,t);Ut(r),fe({title:"复制路径",text:"已复制文件路径",icon:"success"})}})}let dv=[];async function fv(){const e=[...(await Za()).filter(t=>t.enabled),...(await ds(Pn.play)).filter(t=>t.enabled)];return new bi({key:"_play_with_x_d",label:"播放",injectDecider:bg,title:"115在线播放",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),s=await Bt(o),i=qc(s.pc);s.cate_id&&i.includes("v.anxia.com")?na(s.cate_id):window.open(i,"_blank","noopener noreferrer")},subItems:[...await Ym(vi,e)]})}async function pv(){const e=[...(await Wd()).filter(t=>t.enabled),...dv.filter(t=>t.enabled),...(await ds(Pn.search)).filter(t=>t.enabled)];return new bi({key:"_search_with_name_d",label:"搜索",icon:"",title:"使用名称搜索",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),s=await Bt(o),i=ta({search_value:s.n,cid:await Zt()});window.open(i,"_blank","noopener noreferrer")},subItems:[...await Jm(vi,e)]})}async function hv(){return new bi({key:"_lh_copy_name_path",label:"名称路径",title:"复制文件名称路径",onClick:async(e,t)=>{},subItems:[await Zd("完整名称",Ot.full),await Zd("不含后缀",Ot.pure),new fg({}),await ar("路径(Unix)",zt.unixPath),await ar("路径(Windows)",zt.winPath),await ar("上级路径(Unix)",zt.unixParentPath),await ar("上级路径(Windows)",zt.winParentPath)]})}async function Zd(e,t){return new vi({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 Bt(s)).n];r=await hi(r,t),Ut(r.join(`
`)),fe({title:"复制名称",text:`已复制选中文件名,复制类型:${e}`,icon:"success"})}})}async function ar(e,t){return new vi({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 Bt(s),r=await pi(i),l=await mi(i,r,t);Ut(l),fe({title:"复制路径",text:`已复制选中路径,复制类型:${e}`,icon:"success"})}})}async function mv(){return new bi({injectDecider:yg,key:"_open_in_new_tab",label:"新标签页",icon:"",title:"在新标签页打开",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=$(t.target).closest("li"),o=await Bt(n);if(!o||!o.cate_id){fe({text:"无法获取目录ID",timer:1200});return}const s=zc(o.cate_id);window.open(s,"_blank","noopener noreferrer")}})}async function gv(){return new Zc({key:"_s_smart_mkdir",label:"同名目录",icon:"icon-operate ifo-move",title:"将选中的文件移动到同名目录",onClick:await Xm(!0)})}async function wv(){return new Zc({key:"_s_copy_names_paths",label:"名称路径",icon:"icon-operate ifo-copy",title:"复制选中文件的名称路径",onClick:async(e,t)=>{},subItems:[await lr("完整名称",Ot.full),await lr("不含后缀",Ot.pure),await lr("完整文件名,去重",Ot.fullUnique),await lr("不含后缀,去重",Ot.pureUnique),new pg({}),await ef("路径(Unix)",zt.unixPath),await ef("路径(Windows)",zt.winPath)]})}async function lr(e,t){return new eu({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 hi(i,t),Ut(i.join(`
`)),fe({title:"复制名称",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success"})}})}async function yv(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 us(r.id);await Ht(t),s.set(r.parentId,l.paths.map(d=>d.file_name))}return s}async function ef(e,t){return new eu({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 Rm(s);let r=new Map;fe({text:"正在获取上级目录路径...",timer:0}),me.showLoading();try{r=await yv(i)}catch(f){console.error(f),fe({text:`获取上级目录路径失败: ${f}`,timer:1200,icon:"error"});return}finally{me.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("/"),h=s[f].n,y=lh(p+"/"+h,!0);l.push(await mi(s[f],y,t))}Ut(l.join(`
`)),fe({title:"复制路径",text:`已复制选中文件的路径。数量:${l.length},复制类型:${e}`,icon:"success"})}})}const tf={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"}]},nf={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"}]},of={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"]'}]},sf="enabled_official_menu_keys";async function bv(){let e=await lt.get(sf,["__default__"]);return e.length===1&&e[0]==="__default__"&&(e=await af([tf,nf,of]),await rf(e)),e}async function rf(e){await lt.set(sf,e)}async function af(e){const t=[];return e.forEach(n=>{n.items.forEach(o=>{o.enabled&&t.push(`${n.key}_${o.key}`)})}),t}async function lf(){const e=[tf,nf,of],t=await bv();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 vv(){const e=await lf(),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 _v(){const e="cloud115EnhancerOfficialMenuStyle",t=await vv();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 xv(){const{host:e,search:t}=location;if(!e.includes("115.com"))return;console.log("[Cloud115 Enhancer - menu] running..."),Cv(),$v(),document.addEventListener(Dt.EVENT_CLOSE_MENU,o=>{$("#"+o.detail.menu.key).closest(".context-menu").hide()});const n=await gi();!n.enabled||(await Wc(n),window.top===window.self&&kv(n),Ev(n),(t.includes("ct=file")||t.includes("mode=search"))&&(Sv(n),Av(n),Gm(n)))}async function Cv(){console.log("[Cloud115 Enhancer - menu] injectUI");const e="ceCustomUrlHelp",t=document.createElement("div");t.id=e,document.body.appendChild(t),yo(Ub).mount(`#${e}`)}async function $v(){_v()}const sl=async(e,t)=>{};async function kv(e){const{[Ie.dirContext]:t}=e;if(!t.enabled)return;const n=[];t.rename&&n.push(await sv()),t.delete&&n.push(await rv()),t.play&&n.push(await ov()),t.copyNames&&n.push(new Nt({key:"_dir_copy_names",label:"名称路径",icon:"icon-operate ifo-copy",onClick:sl,subItems:[await rr("完整名称",Ot.full),await rr("不含后缀",Ot.pure),await rr("完整名称,去重",Ot.fullUnique),await rr("不含后缀,去重",Ot.pureUnique),new ug({}),await Yd("路径(Unix)",zt.unixPath),await Yd("路径(Windows)",zt.winPath)]}));const o=[];t.move&&o.push(await iv()),t.viewProp&&o.push(await cv()),t.showSubFolderSize&&o.push(await uv()),t.copy&&o.push(await av()),t.copyTo&&o.push(await lv()),o.length===1?n.push(o[0]):o.length>1&&n.push(new Nt({key:"_dir_more",label:"更多",icon:"icon-operate ifo-open",onClick:sl,subItems:o})),await new hg({items:n,siblingSelector:'[val="add_dir"]',position:Qn.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 Sv(e){const{[Ie.listItemHover]:t}=e;if(!t.enabled)return;const n=[];t.openInNewTab&&n.push(await mv()),t.search&&n.push(await pv()),t.play&&n.push(await fv()),t.copyNames&&n.push(await hv()),new gg({items:n,position:Qn.after,siblingSelector:'[menu="move"]'}).inject()}async function Ev(e){const{[Ie.listItemContext]:t}=e;if(!t.enabled)return;const n=[];t.copyNames&&n.push(new ra({key:"_list_item_copy_name_path",label:"名称路径",icon:"icon-operate ifo-copy",onClick:sl,subItems:[await Xd("完整名称",Ot.full),await Xd("不含后缀",Ot.pure),new dg({}),await Qd("路径(Unix)",zt.unixPath),await Qd("路径(Windows)",zt.winPath)]})),new mg({items:n,position:Qn.after,siblingSelector:'[val="refresh"]',useObserver:!0,observeTarget:document.body,disposeObserverAfterInjection:!1}).inject()}async function Av(e){const{[Ie.selection]:t}=e;if(!t.enabled)return;const n=[];location.search.includes("ac=search")||t.moveToSelfNameDir&&n.push(await gv()),t.copyNames&&n.push(await wv()),new wg({items:n,position:Qn.before,siblingSelector:"ul li"}).inject()}const cf="offlineExporterConfig";var il=(e=>(e.name="name",e.infoHash="infoHash",e.url="url",e))(il||{});const Pv={name:"名称",infoHash:"哈希",url:"链接"};function Ov(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 Wo(){const e=Ov(),t=await lt.get(cf,e);return{...e,...t}}async function uf(e){await lt.set(cf,e),window.postMessage({event:Ko.configChanged,body:JSON.parse(JSON.stringify(e))},"*")}async function Iv(e){const t=await Yn("#js-warp"),o=t[0].querySelectorAll("li[complete]");o.length>0&&o.forEach(async i=>{await df(i,e)}),Bv(e),new MutationObserver(async([i])=>{if(i.type==="childList"){i.addedNodes.forEach(async l=>{await df(l,e)});const r=document.querySelector(".ce-checkbox-all input");r.checked=!1,await cr([])}}).observe(t[0],{childList:!0})}async function Tv(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 df(e,t){const n=e,o=await Tv(e);Dv(n,t,o),Lv(n,t,o),Mv(n,t,o)}async function Lv(e,t,n){if(!t.showInfoHash||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",()=>{os(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 Mv(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=zc(n.cate_id),i.target="_blank",i.textContent="打开",i.title="在新标签页打开目录",s.append(i),o.prepend(s)}async function Bv(e){if(!e.enableListManagement)return;const t=await Yn("#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)}),rl().then(r=>{cr(r)})})}async function Dv(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 Rv(i,e):await Nv(i,e)})}async function Nv(e,t){t.classList.toggle("ce-selected");const n=document.querySelector(".ce-checkbox-all input"),o=await pf(!1),s=Array.from(o).every(i=>i.classList.contains("ce-selected"));n.checked=s,rl().then(i=>{cr(i)})}async function Rv(e,t){const n=await pf(!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],h=p.querySelector(".ce-checkbox input"),y=f>=i&&f<=r;h.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,rl().then(f=>{cr(f)})}async function ff(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 pf(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 rl(){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 ff(o);t.push(s)}}),t}var Ko=(e=>(e.selection="ce-offline-selection",e.configChanged="ce-offline-config-changed",e.searchPageChanged="ce-offline-search-page-changed",e))(Ko||{});async function cr(e){window.postMessage({event:"ce-offline-selection",body:e},"*")}async function al(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 jv(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 h=-1;for(let E=1;E<=i&&!(h>-1&&E>h);E++){window.postMessage({event:"ce-offline-search-page-changed",body:E},"*");const x=await Bc(E,e,t);h===-1&&(h=x.page_count);const A=x.tasks;for(const O of A){const V=n.caseSensitive?O.name:O.name.toLowerCase(),I=n.caseSensitive?O.info_hash:O.info_hash.toLowerCase(),T=n.caseSensitive?O.url:(y=O.url)==null?void 0:y.toLowerCase(),Y=r&&n.fuzzyName?V.includes(r):!1,ee=l&&I===l,U=d&&T===d;if((f?f===O.status.toString():!0)&&(Y||ee||U)&&(s.push(O),p))break}if(p&&s.length)break;E<i&&await Ht(o.searchReqInterval||50)}return s}const Fv={class:"ce-config ce-offline-config"},Uv={class:"pure-form pure-form-aligned offline-exporter-config-form"},Hv={class:"pure-control-group"},zv=u("label",{for:"enableListManagement"},"启用批量管理",-1),qv=u("div",{class:"pure-form-message text-success"}," 可以选中多个任务进行操作,支持shift多选。 ",-1),Vv={class:"pure-control-group"},Wv=u("label",{for:"showInfoHash"},"显示链接哈希",-1),Kv=u("div",{class:"pure-form-message text-success"}," 显示离线任务的哈希文本,点击可以复制。 ",-1),Gv=u("div",{class:"ce-tips"},"以下是导出链接相关选项",-1),Jv={class:"pure-control-group"},Yv=u("label",{for:"onlyMagnetEd2k"},"只取磁力和ED2K链接",-1),Xv=u("div",{class:"pure-form-message text-success"}," 导出链接时,只取磁力和ED2K链接,其他比如http链接会被略过。 ",-1),Qv={class:"pure-control-group"},Zv=u("label",{for:"enableOptimization"},"启用导出优化",-1),e_=u("div",{class:"pure-form-message text-success"}," 据观察,离线记录列表是将未完成的记录放在最前面的。如果只需导出未完成链接, 当获取到一个已完成的记录时,便可以停止继续获取后面的记录,节省时间。 ",-1),t_={class:"pure-control-group"},n_=u("label",{for:"reqInterval"},"导出请求数据间隔",-1),o_=u("div",{class:"pure-form-message text-success"}," 导出时请求分页的间隔,单位为毫秒,默认500。 ",-1),s_={class:"pure-control-group"},i_=u("label",{for:"maxPage"},"最多导出页数",-1),r_=u("div",{class:"pure-form-message text-success"}," 0表示不限制,否则表示最多导出的页数。 ",-1),a_=u("div",{class:"ce-tips"},[le("以下是搜索离线任务相关选项。"),u("small",{class:"text-info"},"提示: 除了关键词,其他搜索条件都会持久保存。")],-1),l_={class:"pure-control-group"},c_=u("label",{for:"reqInterval"},"搜索请求数据间隔",-1),u_=u("div",{class:"pure-form-message text-success"}," 搜索时请求分页的间隔,单位为毫秒,默认10。 ",-1),hf=De({__name:"Config",async setup(e){let t,n;const o=ve(([t,n]=yn(()=>Wo()),t=await t,n(),t));return Wt(async()=>{}),ht(o,an(async s=>{await uf(s),fe({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(s,i)=>(K(),te("div",Fv,[u("form",Uv,[u("fieldset",null,[u("div",Hv,[zv,ne(u("input",{id:"enableListManagement",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.enableListManagement=r)},null,512),[[Oe,o.value.enableListManagement]]),qv]),u("div",Vv,[Wv,ne(u("input",{id:"showInfoHash",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=r=>o.value.showInfoHash=r)},null,512),[[Oe,o.value.showInfoHash]]),Kv]),Gv,u("div",Jv,[Yv,ne(u("input",{id:"onlyMagnetEd2k",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>o.value.onlyMagnetEd2k=r)},null,512),[[Oe,o.value.onlyMagnetEd2k]]),Xv]),u("div",Qv,[Zv,ne(u("input",{id:"enableOptimization",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>o.value.enableOptimization=r)},null,512),[[Oe,o.value.enableOptimization]]),e_]),u("div",t_,[n_,ne(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]]),o_]),u("div",s_,[i_,ne(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]]),r_]),a_,u("div",l_,[c_,ne(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]]),u_])])])]))}}),tP="",d_={class:"ce-offline-exporter"},f_={key:0},p_=u("button",{type:"button",class:"pure-button button-mini"},"设置",-1),h_=De({__name:"OflineExporter",setup(e){const t=`\r
`;let n,o;const s=ve([]);let i={};Kt(async()=>{i=await Wo(),n=await Nc(),console.log("[profile]",n),o=await Dc(),console.log("[space]",o),r(),await Iv(i)});async function r(){window.addEventListener("message",A=>{const{event:O,body:V}=A.data;switch(O){case Ko.selection:s.value=V;break;case Ko.configChanged:i=V;break}},!1)}async function l(A=!1,O=""){const{isConfirmed:V,value:I}=await me.fire({title:"根据链接删除离线任务",html:`
<div>每行一个链接,支持磁力链接和ED2K链接</div>
<div>
<label class="swal2-checkbox" style="display: flex;">
<input type="checkbox" id="swalDeleteFile">
<span class="swal2-label">同时删除文件</span>
</label>
</div>
<div>
<textarea id="swalUrls" aria-label="每行一个链接" class="swal2-textarea" placeholder="每行一个链接" style="width:80%;"></textarea>
</div>
`,focusConfirm:!1,didOpen:()=>{const ee=document.getElementById("swalDeleteFile");ee.checked=A;const U=document.getElementById("swalUrls");U.value=O,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(I===void 0){alert("请输入链接!");return}const T=[],Y=I.urls.trim().split(`
`);for(let ee=0;ee<Y.length;ee++){const U=Y[ee].trim();if(zl(U)||ql(U)){const se=Wl(U);se&&T.push(se.toLowerCase())}}me.showLoading(),me.update({html:"正在删除..."}),await Zr(T,o,I.deleteFile,n.user_id),fe({icon:"success",title:"删除成功!请刷新页面查看最新的列表。",timer:3e4,position:"top-end"}),await al(T)}async function d(){const A=s.value.map(T=>T.info_hash);if(!A.length)return;const{isConfirmed:O,value:V}=await me.fire({title:"批量删除",icon:"warning",html:`确定要删除选中的 ${A.length} 个离线记录吗?`,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!O)return;const I=!!V;me.showLoading(),me.update({html:"正在删除..."}),await Zr(A,o,I,n.user_id),fe({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await al(A),s.value=[]}async function f(A){const O=[A];i.onlyMagnetEd2k&&O.push(kt.magnetEd2k),console.log("[filters]",O),await x(o.sign,n.user_id,O)}function p(A,O){if(!O.length||O.length===1&&O[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(I=>{if(!I.url&&!I.info_hash)return!1;const T=V[I.status];return O.includes(kt.all)||T&&O.includes(T)?!(O.includes(kt.magnetEd2k)&&(!ch(I.info_hash)||I.url&&!zl(I.url)&&!ql(I.url))):!1}),A}async function h(A,O,V){let I=[],T=1,Y=0;for(;;){me.update({html:`正在导出... 进度:第 ${T} 页`+(Y?` / ${Y}`:"")});const ee=await Bc(T,A,O);if(!ee.tasks||!ee.tasks.length)break;if(Y===0&&i.maxPage>0?Y=Math.min(ee.page_count,i.maxPage):Y=ee.page_count,I=[...I,...p(ee.tasks,V)],i.enableOptimization&&V.includes(kt.failed)&&y(ee.tasks)){console.warn("由于开启了导出优化,且检测到已获取的记录中至少有一个「已完成」的记录,将不再获取剩下的记录");break}if(T>=Y)break;T++,await Ht(i.reqInterval)}return I}function y(A){for(const O of A)if(O.status===$t.success)return!0;return!1}async function E(){const A=[kt.all];i.onlyMagnetEd2k&&A.push(kt.magnetEd2k),console.log("[filters]",A);const O=s.value;if(!O.length)return;const V=[];O.forEach(I=>{!I.url&&I.info_hash&&(I.url=Vl(I.info_hash)),V.push(I.url)}),V.length&&(os(V.join(t),"text"),console.log("[links]",V),await me.fire({title:"导出成功",icon:"success",html:`成功导出 ${V.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),Hl(V.join(t),`115离线链接_数量${V.length}_${ss()}.txt`),!1)}))}async function x(A,O,V){me.fire({title:"导出离线链接",html:"正在导出...",didOpen:()=>{me.showLoading()}});const I=await h(A,O,V);if(me.hideLoading(),!I.length){await me.fire({title:"导出失败",icon:"error",html:"查询不到符合条件的离线记录!"});return}const T=[];if(I.forEach(Y=>{!Y.url&&Y.info_hash&&(Y.url=Vl(Y.info_hash)),T.push(Y.url)}),!T.length){await me.fire({title:"导出失败",icon:"error",html:"未完成的离线记录中没有磁力或HTTP链接!"});return}os(T.join(t),"text"),console.log("[links]",T),await me.fire({title:"导出成功",icon:"success",html:`成功导出 ${T.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),Hl(T.join(t),`115离线链接_数量${T.length}_${ss()}.txt`),!1)})}return(A,O)=>{const V=po("VDropdown");return K(),te("span",d_,[s.value.length?(K(),te("span",f_,[u("button",{type:"button",class:"pure-button button-small button-error",onClick:d},[le("删除("),u("span",null,ge(s.value.length),1),le(")")]),le(" ")])):Ke("",!0),u("button",{type:"button",class:"pure-button button-mini button-error",onClick:O[0]||(O[0]=I=>l(!1,"")),title:"填写链接以删除对应的离线任务"},"根据链接删除"),le(" "),s.value.length?(K(),te("button",{key:1,type:"button",class:"pure-button button-mini button-warning",onClick:E,title:"导出选中任务的链接"},[le("导出已选"),u("span",null,"("+ge(s.value.length)+")",1)])):Ke("",!0),u("button",{type:"button",class:"pure-button button-mini button-error",onClick:O[1]||(O[1]=I=>f(be(kt).failed)),title:"导出未完成链接"},"导出未完成"),u("button",{type:"button",class:"pure-button button-mini button-success",onClick:O[2]||(O[2]=I=>f(be(kt).success)),title:"导出已完成链接"},"导出已完成"),u("button",{type:"button",class:"pure-button button-mini button-warning",onClick:O[3]||(O[3]=I=>f(be(kt).all)),title:"导出全部链接"},"导出全部"),le(" "),Ce(V,{distance:5,"arrow-padding":10},{popper:Ve(()=>[(K(),jt(Ju,null,{default:Ve(()=>[Ce(hf)]),_:1}))]),default:Ve(()=>[p_]),_:1})])}}}),nP="",m_=["cate_id","delete_id","status","hash"],g_={class:"file-name-wrap"},w_={class:"file-name"},y_={task_popup:"goto",href:"javascript:;",class:"name"},b_={rel:"name"},v_={class:"desc-tips",rel:"file_down_violations"},__={class:"txt-red",rel:"file_down_tips"},x_=["filename"],C_={class:"file-size"},$_={class:"file-process"},k_=u("i",{class:"icon-file-status ifst-failure"},null,-1),S_=u("span",{rel:"progress"},"下载失败",-1),E_=u("i",{class:"icon-file-status ifst-success"},null,-1),A_=u("span",{rel:"progress"},"下载成功",-1),P_=u("i",{class:"icon-file-status ifst-downing"},null,-1),O_={rel:"progress"},I_=u("i",{class:"icon-file-status ifst-violation"},null,-1),T_=u("span",{rel:"progress"},"违规",-1),L_=u("i",{class:"icon-file-status ifst-failure"},null,-1),M_=u("span",{rel:"progress"},"[未知]",-1),B_={class:"file-operate",rel:"opt"},D_=u("a",{href:"javascript:;",task_popup:"goto"},[u("i",{class:"icon-operate ifo-opendir"}),u("s",null,"跳转到目录")],-1),N_=["cp_href"],R_=[u("i",{class:"icon-operate ifo-copy"},null,-1),u("s",null,"复制",-1)],j_=u("a",{href:"javascript:;",class:"btn-delete-offline"},[u("i",{class:"icon-operate ifo-remove"}),u("s",null,"删除")],-1),F_=De({__name:"OfflineItem",props:{item:null,space:null,profile:null},setup(e){const t=e,n=qo(()=>t.item.percentDone?parseInt(t.item.percentDone.toString()):0),o=qo(()=>{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=qo(()=>t.item.err===10016?"文件内含违规内容":""),i=qo(()=>t.item.can_appeal===1);return(r,l)=>(K(),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",g_,[u("i",{class:Je(["file-type",`tp-${be(o)}`])},null,2),u("div",w_,[u("em",null,[u("a",y_,[u("span",b_,ge(e.item.name),1)])])]),ne(u("div",v_,[u("span",__,ge(be(s)),1),ne(u("a",{href:"javascript:;",class:"btn-link",filename:e.item.name,rel:"violations_down_btn"},"去申诉",8,x_),[[Gt,be(i)]])],512),[[Gt,be(s)]])]),u("div",C_,[u("span",null,ge(be(Zs)(e.item.size)),1)]),u("div",$_,[e.item.status===be($t).failed?(K(),te(Be,{key:0},[k_,S_],64)):e.item.status===be($t).success?(K(),te(Be,{key:1},[E_,A_],64)):e.item.status===be($t).ing?(K(),te(Be,{key:2},[P_,u("span",O_,ge(be(n))+"%",1)],64)):e.item.status===be($t).illegal?(K(),te(Be,{key:3},[I_,T_],64)):(K(),te(Be,{key:4},[L_,M_],64))]),u("div",B_,[D_,u("a",{href:"javascript:;",cp_href:e.item.url,task_popup:"copy"},R_,8,N_),j_])],8,m_))}}),U_={class:"ce-offline-list"},H_=De({__name:"OfflineList",props:{items:null,space:null,profile:null},setup(e){return(t,n)=>(K(),te("div",U_,[u("ul",null,[(K(!0),te(Be,null,ct(e.items,(o,s)=>(K(),jt(F_,{Key:s,item:o,space:e.space,profile:e.profile},null,8,["Key","item","space","profile"]))),256))])]))}}),z_={inline:"",class:"pure-form search-form",size:"small"},q_={class:"form-item",label:"关键词"},V_=["value"],W_={class:"form-item"},K_=["onKeyup"],G_={class:"form-item",label:"状态"},J_=["value"],Y_=["value"],X_={class:"form-item",label:"页数"},Q_=u("small",null,"页",-1),Z_={class:"form-item"},e0={key:0,title:"根据「名称」查找时,是否在找到一个结果时停止继续查找"},t0={key:0,class:"search-tips"},n0={class:"tips-body"},o0={key:0},s0=De({__name:"OfflineSearcher",setup(e){let t,n;const o=ve(),s=ve({KeywordType:il.name,keyword:"",status:$t.any,maxPage:5,stopOnFound:!1});let i={...s.value};const r=ve(null),l=ve(!1),d=ve([]),f=ve(null),p=ve({content:"",subContent:"",visible:!1});Kt(async()=>{t=await Nc(),n=await Dc(),o.value=await Wo(),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=>{Y(U)}),h()}),ht(s,an(async U=>{console.log("[searchParams changed]",ah(U)),E()},200),{deep:!0});async function h(){window.addEventListener("message",U=>{const{event:se,body:ie}=U.data;switch(se){case Ko.searchPageChanged:y(ie);break;case Ko.configChanged:o.value={...ie};break}},!1)}async function y(U){console.log("[handleSearchPageChanged]",U),await ee({subContent:`正在搜索第 ${U} 页...`,visible:!0})}async function E(){const U=await Wo();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 uf(U),console.log("[handleSearchParamsChange]",U),o.value={...U}),i={...s.value}}async function x(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 O(){d.value=[],s.value.keyword="",i={...s.value},await ee({visible:!1}),await I(!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 Hi(),(se=r.value)==null||se.select(),oa.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=Wl(ie.infoHash)),console.log("[search filter]",ie);const de=await jv(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 I(!0)}catch(ie){console.warn("[search error]",ie),oa.fire({icon:"error",title:ie.toString()}),await ee({content:"搜索失败!",subContent:ie.toString(),visible:!0})}finally{l.value=!1}}async function I(U=!0){var de,Pe;!d.value.length&&U&&oa.fire({icon:"warning",html:"没有符合条件的离线任务"}),await Hi();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 Y(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 ff(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 me.fire(pe);if(!re)return;const ae=!!Ee;me.showLoading(),me.update({html:"正在删除..."}),await Zr(Pe,n,ae,t.user_id),fe({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await al(Pe)}async function ee(U){p.value={...p.value,...U}}return(U,se)=>(K(),te("div",{class:Je(["ce-offline-searcher",{loading:l.value}])},[u("form",z_,[u("fieldset",null,[u("div",q_,[ne(u("select",{"onUpdate:modelValue":se[0]||(se[0]=ie=>s.value.KeywordType=ie),size:"small",onChange:x},[(K(!0),te(Be,null,ct(be(Pv),(ie,de)=>(K(),te("option",{key:de,value:de},ge(ie),9,V_))),128))],544),[[or,s.value.KeywordType]])]),u("div",W_,[u("div",{class:Je(["clearable-wrap",{"is-empty":s.value.keyword===""}])},[ne(u("input",{ref_key:"refKeyword",ref:r,"onUpdate:modelValue":se[1]||(se[1]=ie=>s.value.keyword=ie),placeholder:"请输入关键词",clearable:"",onKeyup:Hd(V,["enter"])},null,40,K_),[[qe,s.value.keyword]]),u("button",{type:"button",class:"pure-button pure-button-default button-xsmall btn-clear",onClick:A},"×")],2)]),u("div",G_,[ne(u("select",{"onUpdate:modelValue":se[2]||(se[2]=ie=>s.value.status=ie),placeholder:"请选择",clearable:"",style:{width:"90px"}},[u("option",{value:be($t).any},"-状态-",8,J_),(K(!0),te(Be,null,ct(be(mh),(ie,de)=>(K(),te("option",{key:de,value:de},ge(ie),9,Y_))),128))],512),[[or,s.value.status]])]),u("div",X_,[ne(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]]),Q_]),u("div",Z_,[s.value.KeywordType===be(il).name?(K(),te("label",e0,[ne(u("input",{type:"checkbox","onUpdate:modelValue":se[4]||(se[4]=ie=>s.value.stopOnFound=ie),class:"stop-on-found"},null,512),[[Oe,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:O,title:"清空关键词;重置列表到非查找状态"},"重置")])])]),u("div",{ref_key:"refList",ref:f,class:"list"},[Ce(H_,{items:d.value,space:be(n),profile:be(t)},null,8,["items","space","profile"])],512),p.value.visible?(K(),te("div",t0,[u("div",n0,[u("h2",null,ge(p.value.content),1),p.value.subContent?(K(),te("p",o0,ge(p.value.subContent),1)):Ke("",!0)])])):Ke("",!0)],2))}}),iP="";function bn(e){return e.split("-")[0]}function Go(e){return e.split("-")[1]}function js(e){return["top","bottom"].includes(bn(e))?"x":"y"}function ll(e){return e==="y"?"height":"width"}function mf(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=js(o),d=ll(l);switch(Go(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 i0=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(E=>{let{name:x}=E;return x==="autoPlacement"||x==="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}=mf({...l,placement:o}),p=o,h={},y=0;for(let E=0;E<i.length;E++){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:x,fn:A}=i[E],{x:O,y:V,data:I,reset:T}=await A({x:d,y:f,initialPlacement:o,placement:p,strategy:s,middlewareData:h,rects:l,platform:r,elements:{reference:e,floating:t}});if(d=O!=null?O:d,f=V!=null?V:f,h={...h,[x]:I!=null?I:{}},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}=mf({...l,placement:p})),E=-1;continue}}return{x:d,y:f,placement:p,strategy:s,middlewareData:h}};function r0(e){return{top:0,right:0,bottom:0,left:0,...e}}function gf(e){return typeof e!="number"?r0(e):{top:e,right:e,bottom:e,left:e}}function cl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function ur(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:h=!1,padding:y=0}=t,E=gf(y),A=r[h?p==="floating"?"reference":"floating":p],O=await s.getClippingClientRect({element:await s.isElement(A)?A:A.contextElement||await s.getDocumentElement({element:r.floating}),boundary:d,rootBoundary:f}),V=cl(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:O.top-V.top+E.top,bottom:V.bottom-O.bottom+E.bottom,left:O.left-V.left+E.left,right:V.right-O.right+E.right}}const a0=Math.min,bo=Math.max;function ul(e,t,n){return bo(e,a0(t,n))}const l0=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=gf(o),p={x:s,y:i},h=bn(r),y=js(h),E=ll(y),x=await d.getDimensions({element:n}),A=y==="y"?"top":"left",O=y==="y"?"bottom":"right",V=l.reference[E]+l.reference[y]-p[y]-l.floating[E],I=p[y]-l.reference[y],T=await d.getOffsetParent({element:n}),Y=T?y==="y"?T.clientHeight||0:T.clientWidth||0:0,ee=V/2-I/2,U=f[A],se=Y-x[E]-f[O],ie=Y/2-x[E]/2+ee,de=ul(U,ie,se);return{data:{[y]:de,centerOffset:ie-de}}}}),c0={left:"right",right:"left",bottom:"top",top:"bottom"};function dr(e){return e.replace(/left|right|bottom|top/g,t=>c0[t])}function wf(e,t){const n=Go(e)==="start",o=js(e),s=ll(o);let i=o==="x"?n?"right":"left":n?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=dr(i)),{main:i,cross:dr(i)}}const u0={start:"end",end:"start"};function dl(e){return e.replace(/start|end/g,t=>u0[t])}const d0=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function f0(e,t,n){return(e?[...n.filter(s=>Go(s)===e),...n.filter(s=>Go(s)!==e)]:n.filter(s=>bn(s)===s)).filter(s=>e?Go(s)===e||(t?dl(s)!==s:!1):!0)}const p0=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:h,placement:y}=t,{alignment:E=null,allowedPlacements:x=d0,autoAlignment:A=!0,...O}=e;if((n=h.autoPlacement)!=null&&n.skip)return{};const V=f0(E,A,x),I=await ur(t,O),T=(o=(s=h.autoPlacement)==null?void 0:s.index)!=null?o:0,Y=V[T],{main:ee,cross:U}=wf(Y,p);if(y!==Y)return{x:d,y:f,reset:{placement:V[0]}};const se=[I[bn(Y)],I[ee],I[U]],ie=[...(i=(r=h.autoPlacement)==null?void 0:r.overflows)!=null?i:[],{placement:Y,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 h0(e){const t=dr(e);return[dl(e),t,dl(t)]}const m0=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:h="bestFit",flipAlignment:y=!0,...E}=e,x=bn(s),O=p||(x===l||!y?[dr(l)]:h0(l)),V=[l,...O],I=await ur(t,E),T=[];let Y=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&T.push(I[x]),f){const{main:ie,cross:de}=wf(s,r);T.push(I[ie],I[de])}if(Y=[...Y,{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:Y},reset:{placement:de}};let Pe="bottom";switch(h){case"bestFit":{var se;const pe=(se=Y.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 g0(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 js(s)==="x"?{x:d,y:l*i}:{x:l*i,y:d}}const w0=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=g0({placement:s,rects:i,value:e});return{x:n+r.x,y:o+r.y,data:r}}}};function y0(e){return e==="x"?"y":"x"}const b0=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:O=>{let{x:V,y:I}=O;return{x:V,y:I}}},...d}=e,f={x:n,y:o},p=await ur(t,d),h=js(bn(s)),y=y0(h);let E=f[h],x=f[y];if(i){const O=h==="y"?"top":"left",V=h==="y"?"bottom":"right",I=E+p[O],T=E-p[V];E=ul(I,E,T)}if(r){const O=y==="y"?"top":"left",V=y==="y"?"bottom":"right",I=x+p[O],T=x-p[V];x=ul(I,x,T)}const A=l.fn({...t,[h]:E,[y]:x});return{...A,data:{x:A.x-n,y:A.y-o}}}}},v0=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 ur(t,l),f=bn(o),p=Go(o)==="end";let h,y;f==="top"||f==="bottom"?(h=f,y=p?"left":"right"):(y=f,h=p?"top":"bottom");const E=bo(d.left,0),x=bo(d.right,0),A=bo(d.top,0),O=bo(d.bottom,0),V={height:s.floating.height-(["left","right"].includes(o)?2*(A!==0||O!==0?A+O:bo(d.top,d.bottom)):d[h]),width:s.floating.width-(["top","bottom"].includes(o)?2*(E!==0||x!==0?E+x:bo(d.left,d.right)):d[y])};return r==null||r({...V,...s}),{data:{skip:!0},reset:{rects:!0}}}}};function fl(e){return(e==null?void 0:e.toString())==="[object Window]"}function zn(e){if(e==null)return window;if(!fl(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function fr(e){return zn(e).getComputedStyle(e)}function vn(e){return fl(e)?"":e?(e.nodeName||"").toLowerCase():""}function _n(e){return e instanceof zn(e).HTMLElement}function pr(e){return e instanceof zn(e).Element}function _0(e){return e instanceof zn(e).Node}function yf(e){const t=zn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hr(e){const{overflow:t,overflowX:n,overflowY:o}=fr(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function x0(e){return["table","td","th"].includes(vn(e))}function bf(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=fr(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 vf=Math.min,Fs=Math.max,mr=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&&mr(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&mr(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((_0(e)?e.ownerDocument:e.document)||window.document).documentElement}function gr(e){return fl(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _f(e){return Jo(qn(e)).left+gr(e).scrollLeft}function C0(e){const t=Jo(e);return mr(t.width)!==e.offsetWidth||mr(t.height)!==e.offsetHeight}function $0(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"||hr(s))&&(r=gr(t)),_n(t)){const d=Jo(t,!0);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else s&&(l.x=_f(s));return{x:i.left+r.scrollLeft-l.x,y:i.top+r.scrollTop-l.y,width:i.width,height:i.height}}function wr(e){return vn(e)==="html"?e:e.assignedSlot||e.parentNode||(yf(e)?e.host:null)||qn(e)}function xf(e){return!_n(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function k0(e){let t=wr(e);for(;_n(t)&&!["html","body"].includes(vn(t));){if(bf(t))return t;t=t.parentNode}return null}function pl(e){const t=zn(e);let n=xf(e);for(;n&&x0(n)&&getComputedStyle(n).position==="static";)n=xf(n);return n&&(vn(n)==="html"||vn(n)==="body"&&getComputedStyle(n).position==="static"&&!bf(n))?t:n||k0(e)||t}function Cf(e){return{width:e.offsetWidth,height:e.offsetHeight}}function S0(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"||hr(i))&&(r=gr(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 E0(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 A0(e){var t;const n=qn(e),o=gr(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+_f(e);const d=-o.scrollTop;return fr(s||n).direction==="rtl"&&(l+=Fs(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:r,x:l,y:d}}function $f(e){return["html","body","#document"].includes(vn(e))?e.ownerDocument.body:_n(e)&&hr(e)?e:$f(wr(e))}function yr(e,t){var n;t===void 0&&(t=[]);const o=$f(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=zn(o),r=s?[i].concat(i.visualViewport||[],hr(o)?o:[]):o,l=t.concat(r);return s?l:l.concat(yr(wr(r)))}function P0(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&yf(n)){let o=t;do{if(o&&e===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function O0(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 kf(e,t){return t==="viewport"?cl(E0(e)):pr(t)?O0(t):cl(A0(qn(e)))}function I0(e){const t=yr(wr(e)),o=["absolute","fixed"].includes(fr(e).position)&&_n(e)?pl(e):e;return pr(o)?t.filter(s=>pr(s)&&P0(s,o)&&vn(s)!=="body"):[]}function T0(e){let{element:t,boundary:n,rootBoundary:o}=e;const i=[...n==="clippingParents"?I0(t):[].concat(n),o],r=i[0],l=i.reduce((d,f)=>{const p=kf(t,f);return d.top=Fs(p.top,d.top),d.right=vf(p.right,d.right),d.bottom=vf(p.bottom,d.bottom),d.left=Fs(p.left,d.left),d},kf(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 L0={getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:$0(t,pl(n),o),floating:{...Cf(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>S0(e),getOffsetParent:e=>{let{element:t}=e;return pl(t)},isElement:e=>pr(e),getDocumentElement:e=>{let{element:t}=e;return qn(t)},getClippingClientRect:e=>T0(e),getDimensions:e=>{let{element:t}=e;return Cf(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},M0=(e,t,n)=>i0(e,t,{platform:L0,...n});var B0=Object.defineProperty,D0=Object.defineProperties,N0=Object.getOwnPropertyDescriptors,Sf=Object.getOwnPropertySymbols,R0=Object.prototype.hasOwnProperty,j0=Object.prototype.propertyIsEnumerable,Ef=(e,t,n)=>t in e?B0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xn=(e,t)=>{for(var n in t||(t={}))R0.call(t,n)&&Ef(e,n,t[n]);if(Sf)for(var n of Sf(t))j0.call(t,n)&&Ef(e,n,t[n]);return e},Us=(e,t)=>D0(e,N0(t));function Af(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Af(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 Yo(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 F0(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 Pf(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 vo=!1;if(typeof window<"u"){vo=!1;try{const e=Object.defineProperty({},"passive",{get(){vo=!0}});window.addEventListener("test",null,e)}catch{}}let Of=!1;typeof window<"u"&&typeof navigator<"u"&&(Of=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const If=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Tf={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Lf={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Mf(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function hl(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Jt=[];let _o=null;const Bf={};function Df(e){let t=Bf[e];return t||(t=Bf[e]=[]),t}let ml=function(){};typeof window<"u"&&(ml=window.Element);function Fe(e){return function(t){return Yo(t.theme,e)}}const gl="__floating-vue__popper";var Nf=()=>De({name:"VPopper",provide(){return{[gl]:{parentPopper:this}}},inject:{[gl]:{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:Fe("disabled")},positioningDisabled:{type:Boolean,default:Fe("positioningDisabled")},placement:{type:String,default:Fe("placement"),validator:e=>If.includes(e)},delay:{type:[String,Number,Object],default:Fe("delay")},distance:{type:[Number,String],default:Fe("distance")},skidding:{type:[Number,String],default:Fe("skidding")},triggers:{type:Array,default:Fe("triggers")},showTriggers:{type:[Array,Function],default:Fe("showTriggers")},hideTriggers:{type:[Array,Function],default:Fe("hideTriggers")},popperTriggers:{type:Array,default:Fe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Fe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Fe("popperHideTriggers")},container:{type:[String,Object,ml,Boolean],default:Fe("container")},boundary:{type:[String,ml],default:Fe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Fe("strategy")},autoHide:{type:[Boolean,Function],default:Fe("autoHide")},handleResize:{type:Boolean,default:Fe("handleResize")},instantMove:{type:Boolean,default:Fe("instantMove")},eagerMount:{type:Boolean,default:Fe("eagerMount")},popperClass:{type:[String,Array,Object],default:Fe("popperClass")},computeTransformOrigin:{type:Boolean,default:Fe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Fe("autoMinSize")},autoSize:{type:[Boolean,String],default:Fe("autoSize")},autoMaxSize:{type:Boolean,default:Fe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Fe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Fe("preventOverflow")},overflowPadding:{type:[Number,String],default:Fe("overflowPadding")},arrowPadding:{type:[Number,String],default:Fe("arrowPadding")},arrowOverflow:{type:Boolean,default:Fe("arrowOverflow")},flip:{type:Boolean,default:Fe("flip")},shift:{type:Boolean,default:Fe("shift")},shiftCrossAxis:{type:Boolean,default:Fe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Fe("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:Us(xn({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[gl])==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(w0({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?t.middleware.push(p0({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(b0({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(m0({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(l0({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(v0({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 M0(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),_o&&this.instantMove&&_o.instantMove&&_o!==this.parentPopper){_o.$_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&&(_o=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 hl(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...yr(this.$_referenceNode),...yr(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 Pf(this.theme))Df(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 hl(),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,Mf(Jt,this),Jt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Pf(this.theme)){const o=Df(n);Mf(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}_o===this&&(_o=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=Yo(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 hl(),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,Tf,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Tf,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Lf,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Lf,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,vo?{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(Hs>=e.left&&Hs<=e.right&&zs>=e.top&&zs<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Hs-Vn,o=zs-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 br(Vn,Wn,r,l,t.left,t.top,t.left,t.bottom)||br(Vn,Wn,r,l,t.left,t.top,t.right,t.top)||br(Vn,Wn,r,l,t.right,t.top,t.right,t.bottom)||br(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"&&(Of?(document.addEventListener("touchstart",Rf,vo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",H0,vo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Rf,!0),window.addEventListener("click",U0,!0)),window.addEventListener("resize",V0));function Rf(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 U0(e){jf(e)}function H0(e){jf(e,!0)}function jf(e,t=!1){const n={};for(let o=Jt.length-1;o>=0;o--){const s=Jt[o];try{const i=s.$_containsGlobalTarget=z0(s,e);s.$_pendingHide=!1,requestAnimationFrame(()=>{if(s.$_pendingHide=!1,!n[s.randomId]&&Ff(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&&Ff(r,r.$_containsGlobalTarget,e);){r.$_handleGlobalClose(e,t);r=r.parentPopper}}})}catch{}}}function z0(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function Ff(e,t,n){return n.closeAllPopover||n.closePopover&&t||q0(e,n)&&!t}function q0(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function V0(e){for(let t=0;t<Jt.length;t++)Jt[t].$_computePosition(e)}let Vn=0,Wn=0,Hs=0,zs=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Vn=Hs,Wn=zs,Hs=e.clientX,zs=e.clientY},vo?{passive:!0}:void 0);function br(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 vr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};const W0={extends:Nf()};function K0(e,t,n,o,s,i){return K(),te("div",{ref:"reference",class:Je(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[mn(e.$slots,"default",$g(kd(e.slotData)))],2)}var G0=vr(W0,[["render",K0]]);function J0(){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 _r;function wl(){wl.init||(wl.init=!0,_r=J0()!==-1)}var xr={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){wl(),Hi(()=>{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",_r&&this.$el.appendChild(e),e.data="about:blank",_r||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&&(!_r&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Y0=Gw();Ww("data-v-b329ee4c");const X0={class:"resize-observer",tabindex:"-1"};Kw();const Q0=Y0((e,t,n,o,s,i)=>(K(),jt("div",X0)));xr.render=Q0,xr.__scopeId="data-v-b329ee4c",xr.__file="src/components/ResizeObserver.vue";var Uf=(e="theme")=>({computed:{themeClass(){return F0(this[e])}}});const Z0=De({name:"VPopperContent",components:{ResizeObserver:xr},mixins:[Uf()],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}}}),e1=["id","aria-hidden","tabindex","data-popper-placement"],t1={ref:"inner",class:"v-popper__inner"},n1=[u("div",{class:"v-popper__arrow-outer"},null,-1),u("div",{class:"v-popper__arrow-inner"},null,-1)];function o1(e,t,n,o,s,i){const r=po("ResizeObserver");return K(),te("div",{id:e.popperId,ref:"popover",class:Je(["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]=Hd(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",t1,[e.mounted?(K(),te(Be,{key:0},[u("div",null,[mn(e.$slots,"default")]),e.handleResize?(K(),jt(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)},n1,4)],4)],46,e1)}var Hf=vr(Z0,[["render",o1]]),zf={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 s1=De({name:"VPopperWrapper",components:{Popper:G0,PopperContent:Hf},mixins:[zf,Uf("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 i1(e,t,n,o,s,i){const r=po("PopperContent"),l=po("Popper");return K(),jt(l,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:Je([e.themeClass])},{default:Ve(({popperId:d,isShown:f,shouldMountContent:p,skipTransition:h,autoHide:y,show:E,hide:x,handleResize:A,onResize:O,classes:V,result:I})=>[mn(e.$slots,"default",{shown:f,show:E,hide:x}),Ce(r,{ref:"popperContent","popper-id":d,theme:e.finalTheme,shown:f,mounted:p,"skip-transition":h,"auto-hide":y,"handle-resize":A,classes:V,result:I,onHide:x,onResize:O},{default:Ve(()=>[mn(e.$slots,"popper",{shown:f,hide:x})]),_: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 yl=vr(s1,[["render",i1]]);const r1=De(Us(xn({},yl),{name:"VDropdown",vPopperTheme:"dropdown"})),a1=De(Us(xn({},yl),{name:"VMenu",vPopperTheme:"menu"})),l1=De(Us(xn({},yl),{name:"VTooltip",vPopperTheme:"tooltip"})),c1=De({name:"VTooltipDirective",components:{Popper:Nf(),PopperContent:Hf},mixins:[zf],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Yo(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Yo(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}}}),u1=["innerHTML"],d1=["textContent"];function f1(e,t,n,o,s,i){const r=po("PopperContent"),l=po("Popper");return K(),jt(l,Ed({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:h,autoHide:y,hide:E,handleResize:x,onResize:A,classes:O,result:V})=>[Ce(r,{ref:"popperContent",class:Je({"v-popper--tooltip-loading":e.loading}),"popper-id":d,theme:e.theme,shown:f,mounted:p,"skip-transition":h,"auto-hide":y,"handle-resize":x,classes:O,result:V,onHide:E,onResize:A},{default:Ve(()=>[e.html?(K(),te("div",{key:0,innerHTML:e.finalContent},null,8,u1)):(K(),te("div",{key:1,textContent:ge(e.finalContent)},null,8,d1))]),_: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 p1=vr(c1,[["render",f1]]);const qf="v-popper--has-tooltip";function h1(e,t){let n=e.placement;if(!n&&t)for(const o of If)t[o]&&(n=o);return n||(n=Yo(e.theme||"tooltip","placement")),n}function Vf(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=h1(o,n),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let bl,qs,m1=0;function g1(){if(bl)return;qs=ve([]),bl=yo({name:"VTooltipDirectiveApp",setup(){return{directives:qs}},render(){return this.directives.map(t=>ib(p1,Us(xn({},t.options),{shown:t.shown||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),bl.mount(e)}function w1(e,t,n){g1();const o=ve(Vf(e,t,n)),s=ve(!1),i={id:m1++,options:o,shown:s};return qs.value.push(i),e.classList&&e.classList.add(qf),e.$_popper={options:o,item:i,show(){s.value=!0},hide(){s.value=!1}}}function Wf(e){if(e.$_popper){const t=qs.value.indexOf(e.$_popper.item);t!==-1&&qs.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(qf)}function Kf(e,{value:t,modifiers:n}){const o=Vf(e,t,n);if(!o.content||Yo(o.theme||"tooltip","disabled"))Wf(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=w1(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}var y1={beforeMount:Kf,updated:Kf,beforeUnmount(e){Wf(e)}};function Gf(e){e.addEventListener("click",Yf),e.addEventListener("touchstart",Xf,vo?{passive:!0}:!1)}function Jf(e){e.removeEventListener("click",Yf),e.removeEventListener("touchstart",Xf),e.removeEventListener("touchend",Qf),e.removeEventListener("touchcancel",Zf)}function Yf(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Xf(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",Zf)}}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 Zf(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var b1={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Gf(e)},updated(e,{value:t,oldValue:n,modifiers:o}){e.$_closePopoverModifiers=o,t!==n&&(typeof t>"u"||t?Gf(e):Jf(e))},beforeUnmount(e){Jf(e)}};function v1(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Af(Cn,t),e.directive("tooltip",y1),e.directive("close-popper",b1),e.component("VTooltip",l1),e.component("VDropdown",r1),e.component("VMenu",a1))}const vl={version:"2.0.0-beta.20",install:v1,options:Cn},cP="";var xo=(e=>(e.openConfig="openConfig",e.basicConfigChange="basicConfigChange",e.listConfigChange="listConfigChange",e.listRendered="listRendered",e))(xo||{});const ep="basic_config",_1={name:"115不大助手",version:"0.5.41",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"https://gf.qytechs.cn/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};function x1(e){return{hideSidebar:!0,showOfflineEntry:!1,transferDefaultOffline:!1,hideWatermark:!0,fakeAccountEnabled:!1,fakeAccountId:"",fakeAccountName:"",fakeAccountAvatar:"",fakeAccountVip:"",...e}}async function Cr(){const e=x1(),t=await lt.get(ep,e);return{...e,...t}}async function C1(e){await lt.set(ep,e)}async function $1(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 k1(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=`该按钮由 ${_1.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 S1(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 E1(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 A1(e){window.top===window.self&&(await Ht(1e3),_l(e),window.addEventListener("message",async t=>{const n=t.data.event,o=t.data.body;n===xo.basicConfigChange&&(console.log("[Cloud115 Enhancer] basicConfigChange"),_l(o))}))}let Vs=null;async function P1(){Vs&&clearTimeout(Vs),Vs=setTimeout(async()=>{const e=await Cr();_l(e)},5e3)}async function _l(e){Vs&&clearTimeout(Vs);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&&P1()}}async function O1(){const{host:e,search:t}=location;e!=="115.com"||!t.includes("offline=1&tab=offline")||(await I1(),await T1(),L1())}async function I1(){console.log("[Cloud115 Enhancer] Injecting offline exporter...");const e="cloud115OfflineExporter",t=await Wo();document.body.classList.add("cloud115-page-offline"),t.enableListManagement&&document.body.classList.add("ce-list-m"),$("body").append(`<div id="${e}"/>`);const n=yo(h_);n.use(vl),n.mount(`#${e}`)}async function T1(){console.log("[Cloud115 Enhancer] Injecting offline searcher...");const e="cloud115OfflineSearcher",t=await Wo();document.body.classList.add("cloud115-page-offline"),t.enableSearcher&&document.body.classList.add("ce-list-s"),$("body").append(`<div id="${e}"/>`);const n=yo(s0);n.use(vl),n.mount(`#${e}`)}async function L1(){(await Cr()).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 M1={class:"cloud115-eh-cleaner-trigger"},B1=[u("span",null,"清理文件",-1)],D1=De({__name:"Trigger",setup(e){ve(!1);const t=ve(!0);async function n(l){switch(l.data.type){case Kn.INVOKE_FILTER:await Vm(l.data.payload);break;case Kn.CLEANER_OPENED:await r(l.data.payload);break}}Kt(async()=>{console.log("[CleanerTrigger onMounted]"),window.addEventListener("message",n)}),Is(()=>{console.log("[CleanerTrigger onUnmounted]"),window.removeEventListener("message",n)});async function o(){await i(),ti({type:Kn.OPEN_CLEANER},window.parent)}let s=0;async function i(){const l=uh("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)=>ne((K(),te("span",M1,[mn(l.$slots,"default",{},()=>[u("span",{class:"btn-open pure-button pure-button-primary",onClick:o},B1)])],512)),[[Gt,t.value]])}}),dP="";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 N1=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="#",tp="#",R1=[{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:["#视频","#音频","#图片","#文档","#应用","#压缩包"]}],j1=["#論壇文宣","#宣傳文本","最新地址","最新网址","论坛地址","永久地址","地址发布","扫码 安装","扫码 下载","免費 掃碼","澳门 赌场","皇冠 赌场","免费18禁手游","免费黄游手游","在线影城","秀场 小视频","裸秀 主播 免费看","第一会所 宣传","SIS 影视联盟",'"最 新 位 址 獲 取"','"社 區 最 新 情 報"','"聚 合 全 網 H 直 播"'],F1=["#論壇文宣","美女 裸聊","秀场 视频","澳门 赌场","皇冠 赌场","影视 联盟","2048 社区","1024 社区","会所 宣传","扫码 安装","社区 关注","免費 掃碼","找回家","防屏蔽","封殺00","秀场 小视频","裸秀 主播 免费看",'"Free Adult Movie"',"奔驰宝马","最新网址","最新免費","免费试用","美女荷官","凤凰娛樂","观看指南","女神在线","更多无水印","免费在线","国产精品","免費原版","獨家資源","成人光碟","最新AV","FDZone","发布器","QR-1024","在這等你","激情祼聊","看妹不用等","真人祼聊","zz.jpg","X8B9.COM.gif","第一会所 宣传","SIS 影视联盟","淘精網","激情咖啡","手機影城","免费手机看片","U視娛樂","加微信","我愛看片手機版","平台正式上線"],U1=[{type:Re.keyword,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:100,values:j1},{type:Re.keyword,queryOnly:!1,label:"⚠️大杀器⚠️",memo:"请谨慎使用!",size:100,values:F1},{type:Re.keyword,queryOnly:!0,label:"只查询示例",memo:"这是一个示例",size:10240,values:["奔驰宝马","美女荷官",'"最 新 位 址 獲 取"']}];function Co(e){return{id:Date.now().toString(),type:e,queryOnly:!1,label:"",values:"",memo:"",size:0,sort:0,createdAt:0,updatedAt:0}}function np(e,t){e=e.trim();const n=t===Re.keyword&&H1(e),o=t===Re.suffix&&z1(e);let s=e;return n&&(s=q1(e)),o&&(s=V1(e).toString()),{type:t,value:e,forDir:n,isFilter:o,pattern:s,num:-1,fileIds:[],size:-1,status:rt.none}}function op(e){return[rt.prepare,rt.deleting].includes(e.status)}function H1(e){return new RegExp(`^${$r}[\\S]{2,}`).test(e)}function z1(e){return new RegExp(`^${tp}[\\S]{2,}`).test(e)}function q1(e){const t=new RegExp(`^${$r}`);return e.replace(t,"")}function V1(e){const t=new RegExp(`^${tp}`);let n=e.replace(t,"");const o=N1.get(n);if(!o)throw new Error(`"${e}"不是有效的筛选!`);return o}async function $o(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(np(i,t))}),s}function sp(e){return/(^'.+'$)|(^".+"$)/.test(e)}function xl(e){return sp(e)?e.replace(/^['"]|['"]$/g,""):e}function W1(e,t){if(e===""||t==="")return!1;if(e=e.toLowerCase(),sp(t))return e.includes(xl(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 ip(e,t,n){const o=np(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&&!W1(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 K1={class:"group-manager"},G1={key:0,class:"label-readonly",title:"当前分组只可用于查询"},J1=["title"],Y1=u("small",null,"分组:",-1),X1={class:"pure-form pure-form-stacked group-form"},Q1=u("label",{for:"groupLabel"},"标题",-1),Z1=u("label",{for:"groupMemo"},"备注",-1),ex={for:"groupValues"},tx={key:0,class:"text-info"},nx={key:1,class:"text-info"},ox=["onClick"],sx=u("small",{class:"text-primary"},"(点击添加)",-1),ix=u("label",{for:"groupMemo"},[le(" 文件大小 "),u("span",{class:"text-info"},[le("只清理小于该大小的文件,单位"),u("b",null,"MB")])],-1),rx={class:"groups-list"},ax={key:0,class:"text-danger"},lx=u("span",{class:"text-info"},"或",-1),cx=u("br",null,null,-1),ux=u("br",null,null,-1),dx={class:"pure-table pure-table-bordered"},fx=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),px={align:"center"},hx=["onClick"],mx=u("button",{type:"button",class:"pure-button button-xsmall text-danger"},"删除",-1),gx={class:"group-confirm-delete"},wx=["onClick"],yx=["onClick"],rp=De({__name:"GroupManager",props:{type:null,storageKey:null,config:null},emits:["change"],setup(e,{emit:t}){const n=e,o=ve(Co(n.type)),s=ve([]),i=ve(!1),r=ve(Co(n.type)),l=ve(null),d=ve(!1),f=ve(null),p=[Ze.video,Ze.audio,Ze.image,Ze.doc,Ze.app,Ze.archive];ht(s,async pe=>{console.log("[groups change]",pe),Xn(n.storageKey,pe,!1),pe.length||(i.value=!1,d.value=!1)},{deep:!0});let h=!1;Kt(async()=>{if(console.log("[GroupManager onMounted]"),!h){h=!0,s.value=Qs(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(),Xn("cleanerConfig",{suffixGroup:o.value.id},!0)),n.type===Re.keyword&&!re&&(await U(),Xn("cleanerConfig",{keywordGroup:o.value.id},!0))}}),Is(async()=>{console.log("[GroupManager onUnmounted]")});async function y(pe){const re=`#${pe}`;r.value.values.includes(re)||(r.value.values+=(`
`+re).trim()+`
`)}async function E(){i.value=!0,d.value=!1}async function x(){i.value=!1}async function A(){l.value.show()}async function O(){l.value.hide()}async function V(){d.value=!1}async function I(){d.value=!0,i.value=!1}async function T(){f.value.show()}async function Y(){f.value.hide()}async function ee(){r.value.createdAt&&(r.value=Co(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=R1:pe=U1;for(let re=0;re<pe.length;re++){const Ee={...Co(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 Y()}s.value.length&&await Pe(s.value[0])}async function se(pe,re=!1){if(!re){const{isConfirmed:ae}=await me.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=Co(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 $o(r.value.values,r.value.type)}catch(D){await me.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=ss();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 O()}async function Pe(pe){o.value=pe;const{id:re}=o.value;n.type===Re.suffix&&(n.config.suffixGroup=re,Xn("cleanerConfig",{suffixGroup:re},!0)),n.type===Re.keyword&&(n.config.keywordGroup=re,Xn("cleanerConfig",{keywordGroup:re},!0)),t("change",pe)}return(pe,re)=>{const Ee=po("VDropdown");return K(),te("div",K1,[o.value.queryOnly?(K(),te("span",G1," 只查询 ")):Ke("",!0),o.value.createdAt?(K(),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,[Y1,le(" "+ge(o.value.label),1)])],8,J1)):Ke("",!0),Ce(Ee,{ref_key:"form",ref:l,onHide:x,onShow:E,distance:5,"arrow-padding":100},{popper:Ve(()=>[u("form",X1,[u("fieldset",null,[u("div",null,[Q1,ne(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?(K(),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):(K(),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,[Z1,ne(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",ex,[le(" 特征列表 "),n.type===be(Re).keyword?(K(),te("span",tx,[le(" 默认只匹配文件名。前面带"),u("b",null,ge(be($r)),1),le("则只匹配目录名。 ")])):Ke("",!0),n.type===be(Re).suffix?(K(),te("span",nx,[le(" 支持115自带筛选: "),(K(),te(Be,null,ct(p,(ae,Ue)=>u("span",{class:"filter-label text-success",key:Ue,onClick:D=>y(ae)}," #"+ge(ae),9,ox)),64)),sx])):Ke("",!0)]),ne(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,[ix,ne(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},ge(r.value.createdAt?"更新":"添加"),1),le(" "),u("button",{type:"button",class:"pure-button",onClick:O},"取消")])])]),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:I,distance:5},{popper:Ve(()=>[u("div",rx,[s.value.length?Ke("",!0):(K(),te("h3",ax,[le(" 还没有添加任何分组。你可以: "),u("button",{type:"button",class:"pure-button button-small",onClick:ee},"添加"),le(" "),lx,le(" "),u("button",{type:"button",class:"pure-button button-small",onClick:U},"使用脚本内置"),cx,ux])),u("table",dx,[fx,u("tbody",null,[(K(!0),te(Be,null,ct(s.value,(ae,Ue)=>(K(),te("tr",{key:Ue},[u("td",null,ge(Ue+1),1),u("td",px,ge(ae.queryOnly?"是":"否"),1),u("td",null,ge(ae.label),1),u("td",null,ge(ae.memo),1),u("td",null,ge(ae.size),1),u("td",null,[u("button",{type:"button",class:"pure-button button-xsmall text-primary",onClick:D=>Pe(ae)},"载入",8,hx),le(" "),Ce(Ee,null,{popper:Ve(()=>[u("div",gx,[u("button",{type:"button",class:"pure-button button-error",onClick:D=>se(ae,!0)},"确定",8,wx)])]),default:Ve(()=>[mx]),_:2},1024),le(" "),u("button",{type:"button",class:"pure-button button-xsmall",onClick:D=>ie(ae)},"编辑",8,yx)])]))),128))])])])]),default:Ve(()=>[u("a",{href:"javascript:void(0)",class:"text-primary",onClick:T},"分组列表")]),_:1},512)])}}}),fP="",bx={class:"cloud115-eh-cleaner"},vx=[u("span",null,"清理文件",-1)],_x={key:0,class:"cloud115-eh-cleaner-help"},xx=[Wy('<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>关键词`免费在线`,匹配文件名"blabla-免费在线.mp4",<b class="text-danger">不匹配</b>文件名`blabla-免费的xxx在线.mp4`。</p><p>关键词`免费 在线`,匹配文件名"blabla-免费在线.mp4",<b class="text-success">也匹配</b>文件名`blabla-免费的xxx在线.mp4`。</p><p class="text-danger">如需要 `免费 在线` 作为一个整体去匹配,可以使用`英文单/双引号`包裹,如`"免费 在线"`</p></div></div>',1)],Cx={class:"header actions-bar"},$x=u("span",{class:"title"},"文件清理工具",-1),kx={type:"button",class:"pure-button button-success"},Sx=u("i",{class:"file-type tp-folder",style:{}},null,-1),Ex=["disabled"],Ax=["disabled"],Px=u("small",null,"毫秒",-1),Ox=["disabled"],Ix=u("br",null,null,-1),Tx={class:"by-box by-suffix"},Lx={class:"by-header"},Mx=u("span",{class:"title"},[le("按"),u("b",null,"后缀名"),le("清理")],-1),Bx={class:"pure-button-group",role:"group"},Dx=["disabled"],Nx={class:"pure-table pure-table-bordered"},Rx=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),jx=["onClick"],Fx=["onClick"],Ux=["onClick"],Hx=u("br",null,null,-1),zx={class:"by-box by-keyword"},qx={class:"by-header"},Vx=u("span",{class:"title"},[le("按"),u("b",null,"关键词"),le("清理")],-1),Wx={class:"pure-button-group",role:"group"},Kx=["disabled"],Gx={class:"pure-table pure-table-bordered"},Jx=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),Yx=["href"],Xx={class:"file-type tp-folder"},Qx=["onClick"],Zx=["onClick"],eC=u("br",null,null,-1),tC={class:"footer actions-bar"},nC=u("span",{class:"title"},"文件清理工具",-1),oC={type:"button",class:"pure-button button-success"},sC=u("i",{class:"file-type tp-folder",style:{}},null,-1),iC=De({__name:"Cleaner",setup(e){const t=ve(!1),n=ve(!0),o=ve(Co(Re.suffix)),s=ve(Co(Re.keyword)),i=ve({maxSize:5,matchName:!1}),r=ve({maxSize:100,matchName:!0}),l=ve([]),d=ve([]),f=ve(!1),p=ve({initialized:!1,pageSize:1150,reqInterval:800,deleteSize:1150,...Qs("cleanerConfig",{})}),h=ve(!0),y=ve(""),E=ve([]);async function x(D){D.data.type===Kn.OPEN_CLEANER&&(await A(D.data.payload),ti({type:Kn.CLEANER_OPENED},D.source))}Kt(async()=>{console.log("[Cleaner onMounted]"),p.value.initialized||(p.value.initialized=!0,Xn("cleanerConfig",p.value,!1)),window.addEventListener("message",x)}),Is(()=>{console.log("[Cleaner onUnmounted]"),window.removeEventListener("message",x)});async function A(D){t.value=!0;const J=await Zt();if(J==="0"||J===""){await O(),await me.fire({icon:"warning",html:"<h2>不允许在根目录使用该工具!</h2>"});return}y.value&&y.value!==J&&(console.warn("目录变化,重置"),await Y(ft.reset),await ee(ft.reset)),E.value=await Hc(),y.value=J}async function O(){t.value=!1}async function V(){Xn("cleanerConfig",p.value,!1),fe({icon:"success",text:"保存成功",timer:1800}),h.value=!0}async function I(D){const J={};D.isFilter?J.type=D.pattern:J.suffix=D.pattern;let N=unsafeWindow.frames[0];for(let we=0;we<unsafeWindow.frames.length;we++)if(unsafeWindow.frames[we].name==="wangpan"){N=unsafeWindow.frames[we];break}ti({type:Kn.INVOKE_FILTER,payload:J},N),await O(),fe({icon:"info",text:`已调用115筛选: ${D.value}`,timer:2500})}async function T(D,J){const{value:N}=await me.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 Y(D,J){let N="",we=[];switch(D){case ft.assign:N=J.trim(),N.trim()===""?l.value=[]:(we=await $o(N,Re.suffix),l.value=we);break;case ft.append:N=await T("添加后缀",Re.suffix),we=await $o(N,Re.suffix);const Se=[];l.value.forEach(Le=>Se.push(Le.value.toLowerCase())),we.forEach(Le=>{Se.includes(Le.value.toLowerCase())||l.value.push(Le)});break;case ft.cover:N=await T("覆盖后缀",Re.suffix),N.trim()!==""&&(we=await $o(N,Re.suffix),l.value=we);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="",we=[];switch(D){case ft.assign:N=J.trim(),N.trim()===""?d.value=[]:(we=await $o(N,Re.keyword),d.value=we);break;case ft.append:N=await T("添加关键词",Re.keyword),we=await $o(N,Re.keyword);const Se=[];d.value.forEach(Le=>Se.push(Le.value.toLowerCase())),we.forEach(Le=>{Se.includes(Le.value.toLowerCase())||d.value.push(Le)});break;case ft.cover:N=await T("覆盖关键词",Re.keyword),N.trim()!==""&&(we=await $o(N,Re.keyword),d.value=we);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 Y(ft.reset),!l.value.length){await me.fire({icon:"warning",text:"请先设置后缀!"});return}if(!D){const{isConfirmed:J}=await me.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 Ht(p.value.reqInterval)}}catch(J){console.error(J)}f.value=!1}async function se(D,J,N,we){if(console.log("[cleanBySuffixSingle]",D,J),!J&&!we){const{isConfirmed:Se}=await me.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 ip(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 jc(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 me.fire({title:"cleanBySuffixSingle - 发生错误",html:Se.toString()})}}async function ie(D){if(console.log("[cleanByKeyword]",D),await ee(ft.reset),!d.value.length){await me.fire({icon:"warning",text:"请先设置关键词!"});return}if(!D){const{isConfirmed:J}=await me.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 Ht(p.value.reqInterval)}}catch(J){console.error(J)}f.value=!1}async function de(D,J,N,we){if(console.log("[cleanByKeywordSingle]",D,J),!J&&!we){const{isConfirmed:Se}=await me.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 ip(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 jc(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 Qr&&(D.status=rt.prepareFailed+` / ${Se.message}`,Se instanceof Mc&&(Xe.timer=2e3,Le=!1)),Le?await me.fire(Xe):me.fire(Xe)}}async function Pe(D){const J=await Zt(),N=oc({cid:J,limit:p.value.pageSize});D.isFilter?N.type=D.pattern:N.suffix=D.value;const we=await Rc(N,p.value.reqInterval);return console.log("[files]",we),we}async function pe(D){const J=await Zt(),N=gh({search_value:xl(D.pattern),cid:J,limit:p.value.pageSize}),we=await Im(N,p.value.reqInterval,!0);return console.log("[files]",we),we}function re(D){return ta({search_value:xl(D.pattern),cid:y.value},E.value[E.value.length-1])}async function Ee(D){console.log("[onSuffixGroupChange]",D),o.value=D,i.value.maxSize=D.size,await Y(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)=>ne((K(),te("span",bx,[mn(D.$slots,"default",{},()=>[u("span",{class:"btn-open pure-button pure-button-primary",onClick:A},vx)]),t.value?(K(),te("div",_x,xx)):Ke("",!0),ne(u("div",{class:Je(["cloud115-eh-cleaner-drawer",{loading:f.value}])},[u("div",Cx,[$x,u("span",{class:"close"},[u("button",{type:"button",class:"pure-button button-error",onClick:O},"关闭")]),u("button",kx,[u("b",null,[Sx,le(" "+ge(E.value.join(" / ")),1)])])]),u("div",null,[le(" 请求分页: "),ne(u("input",{type:"number","onUpdate:modelValue":J[0]||(J[0]=N=>p.value.pageSize=N),min:30,max:1150,disabled:h.value},null,8,Ex),[[qe,p.value.pageSize]]),le(" 请求间隔: "),ne(u("input",{type:"number","onUpdate:modelValue":J[1]||(J[1]=N=>p.value.reqInterval=N),min:200,max:1e6,disabled:h.value},null,8,Ax),[[qe,p.value.reqInterval]]),Px,le(" 每次删除: "),ne(u("input",{type:"number","onUpdate:modelValue":J[2]||(J[2]=N=>p.value.deleteSize=N),min:1,max:1150,disabled:h.value},null,8,Ox),[[qe,p.value.deleteSize]]),u("span",{class:"config-toggle",onClick:J[3]||(J[3]=N=>h.value=!h.value)},"设置参数"),h.value?Ke("",!0):(K(),te("button",{key:0,type:"button",class:"pure-button pure-button-primary button-small",onClick:V}," 保存配置 "))]),Ix,u("div",Tx,[u("div",Lx,[Mx,le(" "),u("div",Bx,[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,Dx)]),le(" 小于 "),ne(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(rp,{type:be(Re).suffix,"storage-key":"suffixGroups",onChange:Ee,config:p.value},null,8,["type","config"])]),u("table",Nx,[Rx,u("tbody",null,[(K(!0),te(Be,null,ct(l.value,(N,we)=>(K(),te("tr",{key:we,class:Je({active:be(op)(N),"is-filter":N.isFilter})},[u("td",null,ge(we+1),1),u("td",null,[u("a",{href:"javascript:void(0)",class:"pattern",onClick:Se=>I(N),title:"筛选"},ge(N.value),9,jx)]),u("td",null,ge(N.num>=0?N.num:""),1),u("td",null,ge(N.size>0?be(Zs)(N.size):""),1),u("td",null,[u("button",{type:"button",class:"pure-button button-xsmall",onClick:Se=>se(N,!0,!1,!0)},"查询",8,Fx),le(" "),N.num>0&&!o.value.queryOnly?(K(),te("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:Se=>se(N,!1,!0,!1)},"清理",8,Ux)):Ke("",!0)]),u("td",null,ge(N.status),1)],2))),128))])])]),Hx,u("div",zx,[u("div",qx,[Vx,le(" "),u("div",Wx,[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,Kx)]),le(" 小于 "),ne(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(rp,{type:be(Re).keyword,"storage-key":"keywordGroups",onChange:ae,config:p.value},null,8,["type","config"])]),u("table",Gx,[Jx,u("tbody",null,[(K(!0),te(Be,null,ct(d.value,(N,we)=>(K(),te("tr",{key:we,class:Je({active:be(op)(N),"is-dir":N.forDir})},[u("td",null,ge(we+1),1),u("td",null,[u("a",{href:re(N),target:"_blank",class:"pattern",title:"搜索"},[ne(u("i",Xx,null,512),[[Gt,N.forDir]]),le(" "+ge(N.pattern),1)],8,Yx)]),u("td",null,ge(N.num>=0?N.num:""),1),u("td",null,ge(N.size>0?be(Zs)(N.size):""),1),u("td",null,[u("button",{type:"button",class:"pure-button button-xsmall",onClick:Se=>de(N,!0,!1,!0)},"查询",8,Qx),le(" "),N.num>0&&!s.value.queryOnly?(K(),te("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:Se=>de(N,!1,!0,!1)}," 清理 ",8,Zx)):Ke("",!0)]),u("td",null,ge(N.status),1)],2))),128))])])]),eC,u("div",tC,[nC,u("span",{class:"close"},[u("button",{type:"button",class:"pure-button button-error",onClick:O},"关闭")]),u("button",oC,[u("b",null,[sC,le(" "+ge(E.value.join(" / ")),1)])]),le(" "),u("button",{type:"button",class:"pure-button button-small",onClick:Ue}," 回到顶部 ")])],2),[[Gt,t.value]])],512)),[[Gt,n.value]])}}),mP="",gP="";async function rC(){const{host:e,search:t}=location;e==="115.com"&&(console.log("[Cleaner] running..."),t.includes("ct=file")?await aC():await lC())}async function ap(){return typeof window.$<"u"}async function aC(){await ap()||console.log("[Cleaner injectTrigger] JQuery not found");const e="cloud115Cleaner";(await Xt("#js_path_add_dir")).after(`<span id="${e}"></span>`),yo(D1).mount(`#${e}`)}async function lC(){await ap()||console.log("[Cleaner injectUI] JQuery not found");const e="cloud115Cleaner";$("body").append(`<div id="${e}"/>`);const t=yo(iC);t.use(vl),t.mount(`#${e}`),Fl("清理文件",async()=>{ti({type:Kn.OPEN_CLEANER},window.parent)})}async function cC(){const e=await Cr(),{host:t,search:n}=location;!/115\.com$/.test(t)||(E1(e),$1(e),k1(e),S1(e),A1(e))}const lp=Symbol("addTab"),cp=Symbol("updateTab"),up=Symbol("deleteTab"),dp=Symbol("tabsProvider");function kr(e,t){const n=Ps(e,t);if(typeof n>"u")throw new Error(`Could not resolve ${e.description}`);return n}const uC=["data-tab-id","aria-hidden"],Gn=De({__name:"Tab",props:{panelClass:{type:[String,Object,Array],default:"tabs-component-panel"},id:{type:String,default:null},name:{type:String,required:!0},prefix:{type:String,default:""},suffix:{type:String,default:""},isDisabled:{type:Boolean,default:!1},navItemClass:{type:[String,Object,Array],required:!1,default:null},navItemLinkClass:{type:[String,Object,Array],required:!1,default:null}},setup(e,{expose:t}){const n=e,o=ve(!1),s=kr(dp),i=kr(lp),r=kr(cp),l=kr(up),d=n.prefix+n.name+n.suffix,f=n.id?n.id:n.name.toLowerCase().replace(/ /g,"-"),p=f+"-pane",h=qo(()=>"#"+(n.isDisabled?"":f));return ht(()=>s.activeTabHash,()=>{o.value=h.value===s.activeTabHash}),ht(()=>Object.assign({},n),()=>{r(f,{name:n.name,header:n.prefix+n.name+n.suffix,isDisabled:n.isDisabled,hash:h.value,index:s.tabs.length,computedId:f,paneId:p,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),Wt(()=>{i({name:n.name,header:d,isDisabled:n.isDisabled,hash:h.value,index:s.tabs.length,computedId:f,paneId:p,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),td(()=>{l(f)}),t({header:d,computedId:f,paneId:p,hash:h,isActive:o}),(y,E)=>ne((K(),te("section",{ref:"tab",id:p,"data-tab-id":be(f),"aria-hidden":!o.value,class:Je(e.panelClass),role:"tabpanel",tabindex:"-1"},[mn(y.$slots,"default")],10,uC)),[[Gt,o.value]])}});class dC{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 fp=new dC,fC=["aria-controls","aria-selected","href","onClick","innerHTML"],pC=De({__name:"Tabs",props:{cacheLifetime:{type:Number,default:5},options:{type:Object,required:!1,default:()=>({useUrlFragment:!0,defaultTabHash:null})},wrapperClass:{type:[String,Object,Array],default:"tabs-component"},panelsWrapperClass:{type:[String,Object,Array],default:"tabs-component-panels"},navClass:{type:[String,Object,Array],default:"tabs-component-tabs"},navItemClass:{type:[String,Object,Array],default:"tabs-component-tab"},navItemDisabledClass:{type:[String,Object,Array],default:"is-disabled"},navItemActiveClass:{type:[String,Object,Array],default:"is-active"},navItemInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkClass:{type:[String,Object,Array],default:"tabs-component-tab-a"},navItemLinkActiveClass:{type:[String,Object,Array],default:"is-active"},navItemLinkInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkDisabledClass:{type:[String,Object,Array],default:"is-disabled"}},emits:["changed","clicked"],setup(e,{expose:t,emit:n}){const o=e,s=Ri({activeTabHash:"",lastActiveTabHash:"",tabs:[]});As(dp,s),As(lp,l=>{s.tabs.push(l)}),As(cp,(l,d)=>{const f=s.tabs.findIndex(p=>p.computedId===l);d.isActive=s.tabs[f].isActive,s.tabs[f]=d}),As(up,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(h=>{h.isActive=h.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}`;fp.set(p,f.hash,o.cacheLifetime)},r=l=>s.tabs.find(d=>d.hash===l);return Kt(()=>{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=fp.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({...yw(s),selectTab:i,findTab:r}),(l,d)=>(K(),te("div",{class:Je(e.wrapperClass)},[u("ul",{role:"tablist",class:Je(e.navClass)},[(K(!0),te(Be,null,ct(s.tabs,(f,p)=>{var h,y;return K(),te("li",{key:p,class:Je([(h=f.navItemClass)!=null?h:e.navItemClass,f.isDisabled?e.navItemDisabledClass:"",f.isActive?e.navItemActiveClass:f.isDisabled?"":e.navItemInactiveClass]),role:"presentation"},[u("a",{role:"tab",class:Je([(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:E=>i(f.hash,E),innerHTML:f.header,tabindex:"0"},null,10,fC)],2)}),128))],2),u("div",{class:Je(e.panelsWrapperClass)},[mn(l.$slots,"default")],2)],2))}}),hC={class:"ce-config ce-basic-config"},mC={class:"pure-form pure-form-aligned"},gC=u("legend",null,"UI优化",-1),wC={class:"pure-control-group"},yC=u("label",{for:"basic_hideSidebar"},"隐藏侧边栏",-1),bC=u("div",{class:"pure-form-message text-success"}," 虽然现在官方也有手动隐藏侧边栏的功能,不过刷新页面后会恢复显示。该设置可以一直隐藏侧边栏。 ",-1),vC={class:"pure-control-group"},_C=u("label",{for:"basic_showOfflineEntry"},"显示云下载入口按钮",-1),xC=u("div",{class:"pure-form-message text-success"}," 在「存储 - 文件首页」顶部工具栏显示「云下载」入口按钮。 ",-1),CC={class:"pure-control-group"},$C=u("label",{for:"basic_transferDefaultOffline"},"近期传输默认云下载",-1),kC=u("div",{class:"pure-form-message text-success"}," 点击左边栏的「近期传输」默认进入「云下载」页面。 ",-1),SC=u("legend",null,"隐私保护",-1),EC={class:"pure-control-group"},AC=u("label",{for:"basic_hideWatermark"},"隐藏水印",-1),PC=u("div",{class:"pure-form-message text-success"}," 网页水印是肉眼看不到的,但通过一些处理可以看到,水印内容是你的账号标识。 如果你需要截图并发给别人,可以考虑开启隐藏。 ",-1),OC={class:"pure-control-group"},IC=u("label",{for:"basic_fakeAccountEnabled"},"隐藏身份",-1),TC=u("div",{class:"pure-form-message text-success"}," 修改右上角显示的账号信息,不会真的修改。编辑后即可生效,无需刷新页面。 ",-1),LC={class:"pure-control-group"},MC=u("label",null,"账号ID",-1),BC={class:"pure-control-group"},DC=u("label",null,"用户名",-1),NC={class:"pure-control-group"},RC=u("label",null,"头像",-1),jC={class:"avatar-preview"},FC=["src"],UC={class:"pure-control-group"},HC=u("label",null,"VIP等级",-1),zC=De({__name:"Config",async setup(e){let t,n;const o=ve(([t,n]=yn(()=>Cr()),t=await t,n(),t));return Wt(async()=>{}),ht(o,an(async s=>{await C1(s),fe({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:xo.basicConfigChange,body:JSON.parse(JSON.stringify(s))})},500),{deep:!0}),(s,i)=>(K(),te("div",hC,[u("form",mC,[u("fieldset",null,[gC,u("div",wC,[yC,ne(u("input",{id:"basic_hideSidebar",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.hideSidebar=r)},null,512),[[Oe,o.value.hideSidebar]]),bC]),u("div",vC,[_C,ne(u("input",{id:"basic_showOfflineEntry",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=r=>o.value.showOfflineEntry=r)},null,512),[[Oe,o.value.showOfflineEntry]]),xC]),u("div",CC,[$C,ne(u("input",{id:"basic_transferDefaultOffline",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>o.value.transferDefaultOffline=r)},null,512),[[Oe,o.value.transferDefaultOffline]]),kC]),SC,u("div",EC,[AC,ne(u("input",{id:"basic_hideWatermark",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>o.value.hideWatermark=r)},null,512),[[Oe,o.value.hideWatermark]]),PC]),u("div",OC,[IC,ne(u("input",{id:"basic_fakeAccountEnabled",type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=r=>o.value.fakeAccountEnabled=r)},null,512),[[Oe,o.value.fakeAccountEnabled]]),TC]),u("div",LC,[MC,ne(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",BC,[DC,ne(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",NC,[RC,ne(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",jC,[o.value.fakeAccountAvatar?(K(),te("img",{key:0,src:o.value.fakeAccountAvatar,alt:"头像预览",width:"20",height:"20"},null,8,FC)):Ke("",!0)])]),u("div",UC,[HC,ne(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]])])])])]))}}),wP="",qC={class:"pure-form pure-form-aligned"},VC=["disabled"],WC={class:"pure-control-group"},KC=u("label",null,"地址",-1),GC={class:"pure-control-group"},JC=u("label",null,"资源根路径",-1),YC={class:"pure-control-group"},XC=u("label",null,"备注",-1),QC=De({__name:"ConfigItem",props:{config:null,deletable:{type:Boolean}},emits:["change","delete","activate"],setup(e,{emit:t}){const n=e;Wt(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)=>(K(),te("div",{class:Je(["ce-clouddrive-config-item",{active:e.config.active}])},[u("form",qC,[u("fieldset",null,[u("legend",null,[u("button",{type:"button",class:Je(["pure-button button-small",[e.config.active?"button-success":"pure-button-primary"]]),onClick:o,disabled:e.config.active},ge(e.config.active?"当前使用该配置":"使用该配置"),11,VC),e.deletable?(K(),te("button",{key:0,type:"button",class:"pure-button button-error button-small",onClick:s}," 删除 ")):Ke("",!0)]),u("div",WC,[KC,ne(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",GC,[JC,ne(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",YC,[XC,ne(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))}}),yP="",ZC={class:"ce-config ce-clouddrive-config"},e$=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),t$={class:"ce-list"},n$=u("div",{class:"ce-tips"},[u("p",{class:"text-primary"}," 暂时发现IINA是支持`file://`协议的,这时候播放器可以读取到同目录的字幕文件。 配置地址示例: file:///Users/you/115,根路径不用填。 ")],-1),o$=u("div",{class:"ce-tips"}," 编辑配置后,请记得点击「保存全部配置」。 ",-1),s$={class:"ce-actions"},i$=["disabled"],r$=De({__name:"Config",async setup(e){let t,n;const o=ve(([t,n]=yn(()=>Xl()),t=await t,n(),t));ve("2BWIZPj3"),Wt(async()=>{});async function s(){await Ql(o.value),fe({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}async function i(){o.value.push(Mr())}async function r(d,f){const{isConfirmed:p}=await me.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,h)=>{p.active=h===f}),await Ql(d),fe({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}return(d,f)=>(K(),te("div",ZC,[e$,u("div",t$,[(K(!0),te(Be,null,ct(o.value,(p,h)=>(K(),jt(QC,{key:h,config:p,index:h,deletable:o.value.length>1,onDelete:y=>r(p,h),onActivate:y=>l(o.value,h)},null,8,["config","index","deletable","onDelete","onActivate"]))),128))]),n$,o$,u("div",s$,[u("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:s,disabled:!o.value.length}," 保存全部配置 ",8,i$),le(" "),u("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:i}," 添加配置 ")])]))}}),bP="",a$={class:"ce-config ce-list-config"},l$={class:"pure-form pure-form-aligned"},c$={class:"pure-control-group"},u$=u("label",{for:"sizeSorter"},"大小排序",-1),d$=u("div",{class:"pure-form-message text-success"},[u("div",null,"在官方的「大小」列头部增加「排序」按钮,可以获取文件夹的大小,然后进行排序。"),u("div",null,"请注意该功能只会对当前加载的文件进行排序,如果有多页文件并需要对全部文件进行排序,请先点击「加载全部」后再使用该排序功能。")],-1),f$={class:"pure-control-group"},p$=u("label",{for:"sizeSorterDirAttrInterval"},"大小排序-获取目录大小间隔",-1),h$=u("div",{class:"pure-form-message text-success"}," 「大小排序」功能需要获取文件夹大小,这个设置是获取文件夹大小的间隔时间,单位是豪秒。 ",-1),m$={class:"pure-control-group"},g$=u("label",{for:"showSha1"},"显示文件SHA1",-1),w$=u("div",{class:"pure-form-message text-success"}," 在文件名下方显示文件SHA1,点击可以复制。 ",-1),y$={class:"pure-control-group"},b$=u("label",{for:"showFolderSizeButton"},"显示文件夹获取大小按钮",-1),v$=u("div",{class:"pure-form-message text-success"}," 点击按钮可以获取单个文件夹的大小。 ",-1),_$={class:"pure-control-group"},x$=u("label",{for:"showCopyButtonOnPathBar"},"在路径栏显示复制按钮",-1),C$=u("div",{class:"pure-form-message text-success"}," 点击后,复制当前路径到剪贴板。 ",-1),$$={class:"pure-control-group"},k$=u("label",{for:"showGotoButtonOnPathBar"},"在路径栏显示前往按钮",-1),S$=u("div",{class:"pure-form-message text-success"}," 点击后,路径栏变为可输入状态,输入路径后按回车即可前往该路径。 ",-1),E$=De({__name:"Config",async setup(e){let t,n;const o=ve(([t,n]=yn(()=>sr()),t=await t,n(),t));return Wt(async()=>{}),ht(o,an(async s=>{await Kb(s),fe({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:xo.basicConfigChange,body:JSON.parse(JSON.stringify(s))})},500),{deep:!0}),(s,i)=>(K(),te("div",a$,[u("form",l$,[u("fieldset",null,[u("div",c$,[u$,ne(u("input",{id:"sizeSorter",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.sizeSorter=r)},null,512),[[Oe,o.value.sizeSorter]]),d$]),u("div",f$,[p$,ne(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(" 毫秒 "),h$]),u("div",m$,[g$,ne(u("input",{id:"showSha1",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>o.value.showSha1=r)},null,512),[[Oe,o.value.showSha1]]),w$]),u("div",y$,[b$,ne(u("input",{id:"showFolderSizeButton",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>o.value.showFolderSizeButton=r)},null,512),[[Oe,o.value.showFolderSizeButton]]),v$]),u("div",_$,[x$,ne(u("input",{id:"showCopyButtonOnPathBar",type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=r=>o.value.showCopyButtonOnPathBar=r)},null,512),[[Oe,o.value.showCopyButtonOnPathBar]]),C$]),u("div",$$,[k$,ne(u("input",{id:"showGotoButtonOnPathBar",type:"checkbox","onUpdate:modelValue":i[5]||(i[5]=r=>o.value.showGotoButtonOnPathBar=r)},null,512),[[Oe,o.value.showGotoButtonOnPathBar]]),S$])])])]))}}),vP="",A$={class:"menu-config-block menu-basic-config"},P$={class:"pure-form pure-form-stacked"},O$=u("legend",null,"全局设置",-1),I$={class:"pure-control-group"},T$=u("label",{for:"basic_enabled"},"启用",-1),L$={class:"pure-control-group"},M$=u("label",{for:"basic_hideSelectionMenuLabel"},"隐藏顶部菜单文本",-1),B$={class:"pure-control-group"},D$=u("label",{for:"basic_enableInSearch"},"在搜索结果页中启用",-1),N$={class:"pure-control-group"},R$=u("label",{for:"basic_forceManualBeforeOpenOnKey"},"强制使用手动输入模式的辅助键",-1),j$=["value"],F$={class:"pure-control-group"},U$=u("label",{for:"basic_injectManualFuncPosition"},"手动输入模式的作用位置",-1),H$=["value"],z$=["value"],q$=De({__name:"BasicConfig",props:{config:null},setup(e,{emit:t}){const n=e;return(o,s)=>(K(),te("div",A$,[u("form",P$,[u("fieldset",null,[O$,u("div",I$,[T$,ne(u("input",{id:"basic_enabled",type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=i=>n.config.enabled=i)},null,512),[[Oe,n.config.enabled]])]),u("div",L$,[M$,ne(u("input",{id:"basic_hideSelectionMenuLabel",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=i=>n.config.hideSelectionMenuLabel=i)},null,512),[[Oe,n.config.hideSelectionMenuLabel]])]),u("div",B$,[D$,ne(u("input",{id:"basic_enableInSearch",type:"checkbox","onUpdate:modelValue":s[2]||(s[2]=i=>n.config.enableInSearch=i)},null,512),[[Oe,n.config.enableInSearch]])]),u("div",N$,[R$,ne(u("select",{id:"basic_forceManualBeforeOpenOnKey","onUpdate:modelValue":s[3]||(s[3]=i=>n.config.keyToTriggerManual=i)},[(K(!0),te(Be,null,ct(be(Mo),(i,r)=>(K(),te("option",{key:r,value:r},ge(i),9,j$))),128))],512),[[or,n.config.keyToTriggerManual]])]),u("div",F$,[U$,ne(u("select",{id:"basic_injectManualFuncPosition","onUpdate:modelValue":s[4]||(s[4]=i=>n.config.injectManualFuncPosition=i)},[u("option",{value:be(sa).first},"最前(其他函数之前)",8,H$),u("option",{value:be(sa).last},"最后(其他函数之后)",8,z$)],512),[[or,n.config.injectManualFuncPosition]])])])])]))}}),_P="",V$={class:"menu-config-block"},W$={class:"pure-form pure-form-stacked"},K$=u("label",{for:"listItemHover_enabled"},"启用",-1),G$=u("label",{for:"listItemHover_openInNewTab"},"新标签页打开",-1),J$=u("label",{for:"listItemHover_search",class:"text-primary"},"搜索",-1),Y$=u("label",{for:"listItemHover_play",class:"text-primary"},"播放",-1),X$=u("label",{for:"listItemHover_copyFileName"},"名称路径",-1),Q$=De({__name:"ListItemHoverConfig",props:{config:null},setup(e){return(t,n)=>(K(),te("div",V$,[u("form",W$,[u("fieldset",null,[u("legend",null,ge(be(is).listItemHover),1),u("div",null,[K$,ne(u("input",{id:"listItemHover_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Oe,e.config.enabled]])]),u("div",null,[G$,ne(u("input",{id:"listItemHover_openInNewTab",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.openInNewTab=o)},null,512),[[Oe,e.config.openInNewTab]])]),u("div",null,[J$,ne(u("input",{id:"listItemHover_search",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.search=o)},null,512),[[Oe,e.config.search]])]),u("div",null,[Y$,ne(u("input",{id:"listItemHover_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[Oe,e.config.play]])]),u("div",null,[X$,ne(u("input",{id:"listItemHover_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[Oe,e.config.copyNames]])])])])]))}}),Z$={class:"menu-config-block"},e2={class:"pure-form pure-form-stacked"},t2=u("label",{for:"listItemContext_enabled"},"启用",-1),n2=u("label",{for:"listItemContext_copyFileName"},"名称路径",-1),o2=De({__name:"ListItemContextConfig",props:{config:null},setup(e){return(t,n)=>(K(),te("div",Z$,[u("form",e2,[u("fieldset",null,[u("legend",null,ge(be(is).listItemContext),1),u("div",null,[t2,ne(u("input",{id:"listItemContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Oe,e.config.enabled]])]),u("div",null,[n2,ne(u("input",{id:"listItemContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.copyNames=o)},null,512),[[Oe,e.config.copyNames]])])])])]))}}),s2={class:"menu-config-block"},i2={class:"pure-form pure-form-stacked"},r2=u("label",{for:"selection_enabled"},"启用",-1),a2=u("label",{for:"selection_moveToSelfNameDir"},"移动到同名目录",-1),l2=u("label",{for:"selection_copyFileName"},"名称路径",-1),c2=De({__name:"SelectionConfig",props:{config:null},setup(e){return(t,n)=>(K(),te("div",s2,[u("form",i2,[u("fieldset",null,[u("legend",null,ge(be(is).selection),1),u("div",null,[r2,ne(u("input",{id:"selection_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Oe,e.config.enabled]])]),u("div",null,[a2,ne(u("input",{id:"selection_moveToSelfNameDir",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.moveToSelfNameDir=o)},null,512),[[Oe,e.config.moveToSelfNameDir]])]),u("div",null,[l2,ne(u("input",{id:"selection_copyFileName",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.copyNames=o)},null,512),[[Oe,e.config.copyNames]])])])])]))}}),u2={class:"menu-config-block"},d2={class:"pure-form pure-form-stacked"},f2=u("label",{for:"dirContext_enabled"},"启用",-1),p2=u("label",{for:"dirContext_rename"},"重命名",-1),h2=u("label",{for:"dirContext_delete"},"删除",-1),m2=u("label",{for:"dirContext_play"},"播放全部",-1),g2=u("label",{for:"dirContext_copyFileName"},"名称路径",-1),w2=u("label",{for:"dirContext_move"},"移动",-1),y2=u("label",{for:"dirContext_copy"},"复制",-1),b2=u("label",{for:"dirContext_copyTo"},"复制到",-1),v2=u("label",{for:"dirContext_viewProperties"},"查看属性",-1),_2=u("label",{for:"dirContext_showSubFolderSize"},"子文件夹大小",-1),x2=De({__name:"DirContextConfig",props:{config:null},setup(e){return(t,n)=>(K(),te("div",u2,[u("form",d2,[u("fieldset",null,[u("legend",null,ge(be(is).dirContext),1),u("div",null,[f2,ne(u("input",{id:"dirContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Oe,e.config.enabled]])]),u("div",null,[p2,ne(u("input",{id:"dirContext_rename",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.rename=o)},null,512),[[Oe,e.config.rename]])]),u("div",null,[h2,ne(u("input",{id:"dirContext_delete",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.delete=o)},null,512),[[Oe,e.config.delete]])]),u("div",null,[m2,ne(u("input",{id:"dirContext_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[Oe,e.config.play]])]),u("div",null,[g2,ne(u("input",{id:"dirContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[Oe,e.config.copyNames]])]),u("div",null,[w2,ne(u("input",{id:"dirContext_move",type:"checkbox","onUpdate:modelValue":n[5]||(n[5]=o=>e.config.move=o)},null,512),[[Oe,e.config.move]])]),u("div",null,[y2,ne(u("input",{id:"dirContext_copy",type:"checkbox","onUpdate:modelValue":n[6]||(n[6]=o=>e.config.copy=o)},null,512),[[Oe,e.config.copy]])]),u("div",null,[b2,ne(u("input",{id:"dirContext_copyTo",type:"checkbox","onUpdate:modelValue":n[7]||(n[7]=o=>e.config.copyTo=o)},null,512),[[Oe,e.config.copyTo]])]),u("div",null,[v2,ne(u("input",{id:"dirContext_viewProperties",type:"checkbox","onUpdate:modelValue":n[8]||(n[8]=o=>e.config.viewProp=o)},null,512),[[Oe,e.config.viewProp]])]),u("div",null,[_2,ne(u("input",{id:"dirContext_showSubFolderSize",type:"checkbox","onUpdate:modelValue":n[9]||(n[9]=o=>e.config.showSubFolderSize=o)},null,512),[[Oe,e.config.showSubFolderSize]])])])])]))}}),C2={class:"official-menu-config"},$2={class:"pure-form pure-form-stacked"},k2=["for"],S2=["id","onUpdate:modelValue"],E2=De({__name:"OfficialMenuConfig",setup(e){const t=ve([]),n=ve(!1);return Wt(async()=>{t.value=await lf(),console.log("official menu groups",t.value,location.href)}),Kt(()=>{document.body.addEventListener("click",()=>{n.value||(n.value=!0)})}),ht(t,an(async o=>{if(!n.value)return;const s=await af(o);await rf(s),fe({icon:"success",title:"官方菜单设置已保存,刷新页面生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(o,s)=>(K(),te("div",C2,[(K(!0),te(Be,null,ct(t.value,(i,r)=>(K(),te("div",{key:r,class:"menu-config-block"},[u("form",$2,[u("fieldset",null,[u("legend",null,ge(i.label),1),(K(!0),te(Be,null,ct(i.items,(l,d)=>(K(),te("div",{key:d},[u("label",{for:`m_${r}_${d}_enabled`},ge(l.label),9,k2),ne(u("input",{id:`m_${r}_${d}_enabled`,type:"checkbox","onUpdate:modelValue":f=>l.enabled=f},null,8,S2),[[Oe,l.enabled]])]))),128))])])]))),128))]))}}),A2={key:0,class:"ce-menu-config"},P2=u("div",{class:"ce-tips"},[u("p",null,"「搜索」功能菜单支持自定义,可在「搜索菜单」设置面板中添加和管理。"),u("p",null,"「播放」功能菜单支持自定义,可在「播放菜单」设置面板中添加和管理。")],-1),O2=u("hr",{class:"ce-hr"},null,-1),I2=u("h1",null,"官方菜单设置",-1),T2=De({__name:"MenuConfig",async setup(e){let t,n;const o=ve(([t,n]=yn(()=>gi()),t=await t,n(),t));return ve(!1),Wt(async()=>{}),ht(o,an(async s=>{await lg(s),fe({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(s,i)=>o.value.enabled!==void 0?(K(),te("div",A2,[P2,Ce(q$,{config:o.value},null,8,["config"]),Ce(Q$,{config:o.value.listItemHover},null,8,["config"]),Ce(o2,{config:o.value.listItemContext},null,8,["config"]),Ce(c2,{config:o.value.selection},null,8,["config"]),Ce(x2,{config:o.value.dirContext},null,8,["config"]),O2,u("div",null,[I2,u("div",null,[Ce(E2)])])])):Ke("",!0)}}),xP="",L2={class:"ce-custom-url"},M2={class:"pure-form pure-form-aligned"},B2={class:"ce-custom-url-index"},D2={class:"pure-control-group"},N2=u("label",null,"启用",-1),R2={class:"pure-control-group"},j2=u("label",null,"唯一标识",-1),F2={class:"pure-control-group"},U2=u("label",null,"显示名称",-1),H2={class:"pure-control-group"},z2=u("label",null,"图标",-1),q2={class:"pure-control-group"},V2={class:"pure-control-group"},W2=u("label",null,"后台打开",-1),K2={class:"pure-control-group"},G2=u("label",null,"备注",-1),J2={key:0,class:"pure-control-group"},Y2=u("label",null,"Mutation",-1),pp=De({__name:"CustomUrl",props:{item:null,index:null},emits:["delete"],setup(e,{emit:t}){const n=ve(!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 me.fire({title:"Mutation 说明",html:l,width:480,position:"top-start",backdrop:!1})}return(l,d)=>(K(),te("div",L2,[u("form",M2,[u("fieldset",null,[u("legend",null,[u("span",B2,"# "+ge(e.index+1),1),u("button",{type:"button",class:"pure-button button-error button-small",onClick:o}," 删除 ")]),u("div",D2,[N2,ne(u("input",{"onUpdate:modelValue":d[0]||(d[0]=f=>e.item.enabled=f),type:"checkbox",id:"customUrl_enabled"},null,512),[[Oe,e.item.enabled]])]),u("div",R2,[j2,ne(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",F2,[U2,ne(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",H2,[z2,ne(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",q2,[u("label",{onDblclick:s}," 链接 ",32),ne(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",V2,[W2,ne(u("input",{"onUpdate:modelValue":d[5]||(d[5]=f=>e.item.openInBackground=f),id:"customUrl_openInBackground",type:"checkbox"},null,512),[[Oe,e.item.openInBackground]])]),u("div",K2,[G2,ne(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?(K(),te("div",J2,[Y2,ne(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)])])]))}}),CP="",X2={class:"ce-config ce-search-urls ce-custom-urls"},Q2={class:"ce-menu-urls-builtin"},Z2={class:"pure-form pure-form-aligned"},ek=["for"],tk=["id","onUpdate:modelValue"],nk={class:"text-info"},ok=["onClick"],sk={class:"ce-custom-urls-list"},ik={class:"ce-custom-urls-actions"},rk=["disabled"],ak=De({__name:"SearchUrls",async setup(e){let t,n;const o=ve(([t,n]=yn(()=>Wd()),t=await t,n(),t)),s=ve(([t,n]=yn(()=>ds(Pn.search)),t=await t,n(),t));Wt(async()=>{}),ht(o,an(async p=>{const h=[];p.forEach(y=>{y.enabled&&h.push(y.key)}),await Hb(h),fe({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0});async function i(){const p=[];for(const h of s.value){if(!await r(h,p.length))return;if(p.includes(h.key)){fe({icon:"error",title:`第 ${p.length+1} 个记录的「唯一标识: ${h.key}」重复!`});return}p.push(h.key)}await Xc(Pn.search,s.value),fe({icon:"success",title:"保存成功!"})}async function r(p,h){const y=/^\w+$/;return p.key=p.key.trim(),y.test(p.key)?(p.label=p.label.trim(),p.label===""?(fe({icon:"error",title:`第 ${h+1} 个记录的「显示名称」不能为空!`}),!1):(p.url=p.url.trim(),p.url===""?(fe({icon:"error",title:`第 ${h+1} 个记录的「链接」不能为空!`}),!1):(p.icon=p.icon.trim(),p.memo=p.memo.trim(),!0))):(fe({icon:"error",title:`第 ${h+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function l(){s.value.push(dt())}async function d(p,h){const{isConfirmed:y}=await me.fire({icon:"warning",html:`确定要删除第 ${h+1} 个记录「${p.label}」吗?`});!y||(s.value.splice(h,1),await i(),fe({icon:"success",title:`「${p.label}」已删除!`}))}async function f(p){const h=JSON.stringify(p,null,2),y=`ce-url-item-denifition-${p.key}`,{isConfirmed:E}=await me.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=h}});!E||(navigator.clipboard.writeText(h),fe({icon:"success",title:"已复制到剪贴板!"}))}return(p,h)=>(K(),te("div",X2,[u("h1",null,[le("预置搜索菜单 "),ne(u("small",null,"( "+ge(o.value.length)+" )",513),[[Gt,o.value.length]])]),u("div",Q2,[u("form",Z2,[u("fieldset",null,[(K(!0),te(Be,null,ct(o.value,(y,E)=>(K(),te("div",{key:E,class:"pure-control-group"},[u("label",{for:`builtin_${y.key}`},ge(y.label),9,ek),ne(u("input",{id:`builtin_${y.key}`,type:"checkbox","onUpdate:modelValue":x=>y.enabled=x},null,8,tk),[[Oe,y.enabled]]),le(" "),u("span",nk,ge(y.memo),1),le(" "),u("button",{type:"button",class:"pure-button button-small",onClick:x=>f(y)},"查看定义",8,ok)]))),128))])])]),u("h1",null,[le("自定义搜索菜单 "),ne(u("small",null,"( "+ge(s.value.length)+" )",513),[[Gt,s.value.length]])]),u("div",sk,[(K(!0),te(Be,null,ct(s.value,(y,E)=>(K(),jt(pp,{key:E,item:y,index:E,onDelete:x=>d(y,E)},null,8,["item","index","onDelete"]))),128))]),u("div",ik,[u("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!s.value.length}," 保存自定义搜索菜单 ",8,rk),le(" "),u("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:l}," 添加自定义搜索菜单 ")])]))}}),$P="",lk={class:"ce-config ce-play-urls ce-custom-urls"},ck=u("div",{class:"ce-tips"},[u("p",null,[le("支持常见的视频、音频和图片格式,也支持目录播放。预置播放菜单使用的链接变量是 "),u("b",null,"{clouddrive_stream_url}"),le(" , 会根据文件或目录自动使用相应的链接。")]),u("p",null,"播放功能依赖CloudDrive,请先在「CloudDrive」设置面板中进行配置。")],-1),uk={class:"ce-menu-urls-builtin"},dk={class:"pure-form pure-form-aligned"},fk=["for"],pk=["id","onUpdate:modelValue"],hk={class:"text-info"},mk=["onClick"],gk=["innerHTML"],wk={class:"ce-custom-urls-list"},yk=u("div",{class:"ce-tips"}," 编辑后,请记得点击「保存自定义播放菜单」。 ",-1),bk={class:"ce-custom-urls-actions"},vk=["disabled"],_k=De({__name:"PlayUrls",async setup(e){let t,n;const o=ve(([t,n]=yn(()=>Za()),t=await t,n(),t)),s=ve(([t,n]=yn(()=>ds(Pn.play)),t=await t,n(),t));Wt(async()=>{}),ht(o,an(async p=>{const h=[];p.forEach(y=>{y.enabled&&h.push(y.key)}),await zb(h),fe({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0});async function i(){const p=[];for(const h of s.value){if(!await r(h,p.length))return;if(p.includes(h.key)){fe({icon:"error",title:`第 ${p.length+1} 个记录的「唯一标识: ${h.key}」重复!`});return}p.push(h.key)}await Xc(Pn.play,s.value),fe({icon:"success",title:"保存成功!"})}async function r(p,h){const y=/^\w+$/;return p.key=p.key.trim(),y.test(p.key)?(p.label=p.label.trim(),p.label===""?(fe({icon:"error",title:`第 ${h+1} 个记录的「显示名称」不能为空!`}),!1):(p.url=p.url.trim(),p.url===""?(fe({icon:"error",title:`第 ${h+1} 个记录的「链接」不能为空!`}),!1):(p.icon=p.icon.trim(),p.memo=p.memo.trim(),!0))):(fe({icon:"error",title:`第 ${h+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function l(){s.value.push(dt())}async function d(p,h){const{isConfirmed:y}=await me.fire({icon:"warning",html:`确定要删除第 ${h+1} 个记录「${p.label}」吗?`});!y||(s.value.splice(h,1),await i(),fe({icon:"success",title:`「${p.label}」已删除!`}))}async function f(p){const h=JSON.stringify(p,null,2),y=`ce-url-item-denifition-${p.key}`,{isConfirmed:E}=await me.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=h}});!E||(navigator.clipboard.writeText(h),fe({icon:"success",title:"已复制到剪贴板!"}))}return(p,h)=>(K(),te("div",lk,[u("h1",null,[le("预置播放菜单 "),ne(u("small",null,"( "+ge(o.value.length)+" )",513),[[Gt,o.value.length]])]),ck,u("div",uk,[u("form",dk,[u("fieldset",null,[(K(!0),te(Be,null,ct(o.value,(y,E)=>(K(),te("div",{key:E,class:"pure-control-group"},[u("label",{for:`builtin_${y.key}`},ge(y.label),9,fk),ne(u("input",{id:`builtin_${y.key}`,type:"checkbox","onUpdate:modelValue":x=>y.enabled=x},null,8,pk),[[Oe,y.enabled]]),le(" "),u("span",hk,ge(y.memo),1),le(" "),u("button",{type:"button",class:"pure-button button-small",onClick:x=>f(y)},"查看定义",8,mk),y.extraMemo?(K(),te("span",{key:0,innerHTML:y.extraMemo,class:"extra-memo"},null,8,gk)):Ke("",!0)]))),128))])])]),u("h1",null,[le("自定义播放菜单 "),ne(u("small",null,"( "+ge(s.value.length)+" )",513),[[Gt,s.value.length]])]),u("div",wk,[(K(!0),te(Be,null,ct(s.value,(y,E)=>(K(),jt(pp,{key:E,item:y,index:E,onDelete:x=>d(y,E)},null,8,["item","index","onDelete"]))),128))]),yk,u("div",bk,[u("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!s.value.length}," 保存自定义播放菜单 ",8,vk),le(" "),u("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:l}," 添加自定义播放菜单 ")])]))}}),kP="",hp=function(){return document.ontouchstart!==null?"click":"touchstart"},Sr="__vue_click_away__",mp=function(e,t,n){gp(e);let o=n.context,s=t.value,i=!1;setTimeout(function(){i=!0},0),e[Sr]=function(r){if((!e||!e.contains(r.target))&&s&&i&&typeof s=="function")return s.call(o,r)},document.addEventListener(hp(),e[Sr],!1)},gp=function(e){document.removeEventListener(hp(),e[Sr],!1),delete e[Sr]},xk={mounted:mp,updated:function(e,t,n){t.value!==t.oldValue&&mp(e,t,n)},unmounted:gp},Ck=De({__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=ve(!1),s=ve(!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 Kt(()=>{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)=>(K(),te("div",null,[u("div",{class:Je(["ce-drawer",{"is-open":e.isOpen,"is-visible":o.value}])},[u("div",{class:"ce-drawer__overlay",style:un({transitionDuration:`${e.speed}ms`})},null,4),ne((K(),te("div",{class:"ce-drawer__content",style:un({maxWidth:e.maxWidth,transitionDuration:`${e.speed}ms`,backgroundColor:e.backgroundColor})},[mn(l.$slots,"default")],4)),[[be(xk),r]])],2)]))}}),EP="",$k={class:"ce-about"},kk=u("p",null,"115不大助手(以下简称「脚本」),是一个仅用于学习编程的小脚本。",-1),Sk=u("br",null,null,-1),Ek=u("p",null,"脚本不会收集您的任何个人信息。",-1),Ak=u("p",null,"脚本仅借助了官方已有的功能,无任何破解行为。",-1),Pk=u("br",null,null,-1),Ok=u("br",null,null,-1),Ik=u("br",null,null,-1),Tk=u("hr",{class:"ce-hr"},null,-1),Lk=["href"],Mk=De({__name:"About",setup(e){const t={name:"115不大助手",version:"0.5.41",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"https://gf.qytechs.cn/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};return(n,o)=>(K(),te("div",$k,[kk,Sk,Ek,Ak,Pk,Ok,Ik,Tk,u("div",null,[u("a",{href:be(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[le(ge(be(t).name)+" ",1),u("small",null,"v"+ge(be(t).version),1)],8,Lk),le(" "),u("small",null,"by "+ge(be(t).author.name),1)])]))}}),Bk={class:"ce-config-main"},Dk={class:"ce-config-main-header"},Nk=u("h1",null,"设置",-1),Rk={class:"ce-intro"},jk=["href"],Fk={class:"ce-config-main-body"},Uk=De({__name:"Config",setup(e){const t={name:"115不大助手",version:"0.5.41",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"https://gf.qytechs.cn/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"},n=ve(!1),o=ve(!1);Kt(async()=>{window.addEventListener("message",d=>{const{event:f}=d.data;f===xo.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)=>(K(),jt(Ju,null,{default:Ve(()=>[u("div",Bk,[Ce(Ck,{"is-open":o.value,onClose:i,"max-width":"1030px",speed:500},{default:Ve(()=>[u("div",Dk,[Nk,u("span",Rk,[u("a",{href:be(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[le(ge(be(t).name)+" ",1),u("small",null,"v"+ge(be(t).version),1)],8,jk),le(" "),u("small",null,"by "+ge(be(t).author.name),1)]),u("div",{class:"ce-config-main-close",onClick:i},"关闭")]),u("div",Fk,[Ce(be(pC),{options:{useUrlFragment:!1},onClicked:r,onChanged:l},{default:Ve(()=>[Ce(be(Gn),{name:"基础设置"},{default:Ve(()=>[Ce(zC)]),_:1}),Ce(be(Gn),{name:"CloudDrive"},{default:Ve(()=>[Ce(r$)]),_:1}),Ce(be(Gn),{name:"列表增强"},{default:Ve(()=>[Ce(E$)]),_:1}),Ce(be(Gn),{name:"菜单设置"},{default:Ve(()=>[Ce(T2)]),_:1}),Ce(be(Gn),{name:"搜索菜单"},{default:Ve(()=>[Ce(ak)]),_:1}),Ce(be(Gn),{name:"播放菜单"},{default:Ve(()=>[Ce(_k)]),_:1}),Ce(be(Gn),{name:"离线管理"},{default:Ve(()=>[Ce(hf)]),_:1}),Ce(be(Gn),{name:"关于"},{default:Ve(()=>[Ce(Mk)]),_:1})]),_:1})])]),_:1},8,["is-open"])])]),_:1}))}}),AP="";async function Hk(){const{host:e}=location;!e.includes("115.com")||window.top===window.self&&(console.log("[Cloud115 Enhancer - main] running..."),zk(),qk())}async function zk(){console.log("[Cloud115 Enhancer - main] injectUI");const e="cloud115ConfigMain",t=document.createElement("div");t.id=e,document.body.appendChild(t),yo(Uk).mount(`#${e}`),Fl("设置",async()=>{window.postMessage({event:xo.openConfig})})}async function qk(){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",Vk),n.title="打开「115不大助手」设置",n.innerHTML='<i class="isn-setting"></i><span>115不大助手</span>',t.appendChild(n),e.insertBefore(t,e.firstChild)}async function Vk(){window.postMessage({event:xo.openConfig})}const PP="";var Cl=(e=>(e.unix="/",e.windows="\\",e))(Cl||{});function wp(e,t="/"){return e.replace(/[\\/]/g,t)}function Wk(e){return e.startsWith("/")}function yp(e){return e===""||e==="/"||e==="\\"}function Kk(e,t,n="/"){if(Wk(t))return t;const o=new URL(e,"http://example.com");o.pathname=Gk(o.pathname,t);let s=decodeURIComponent(o.pathname);return wp(s,n)}function Gk(e,t){const n=e.endsWith("/")?e:e+"/",o=t.startsWith("/")?t.slice(1):t;return n+o}async function Jk(){const e=await sr(),{host:t,search:n}=location;!/115\.com$/.test(t)||(console.log("[List] running...",e),(n.includes("ct=file")||n.includes("mode=search"))&&Yb(),Yk(e))}async function Yk(e){const{host:t,search:n}=location;if(!n.includes("ct=file"))return;const o=await dh("#js_top_header_file_path_box");e.showGotoButtonOnPathBar&&Qk(e,o),e.showCopyButtonOnPathBar&&Xk(e,o)}async function Xk(e,t){const n="ceCopyPath";let o=t.querySelector(`#${n}`);const s=async()=>{const r=await Uc();Ut(r),fe({icon:"success",text:"路径已复制",timer:1e3,position:"top-right"})};o||(o=await(async()=>{const r=document.createElement("button");return r.className="pure-button button-mini",r.id=n,r.title="复制路径",r.innerHTML="<span>复制</span>",r.addEventListener("click",s),r})(),t.prepend(o))}async function Qk(e,t){const n=t.querySelector(".top-file-path"),o="ceGotoPath";let s=t.querySelector(`#${o}`);const i="ceGotoPathValue",r=async()=>{await d()};let l=!1;const d=async()=>{t.classList.toggle("ce-goto-path-active"),t.classList.contains("ce-goto-path-active")&&await f()},f=async()=>{let x=t.querySelector(`#${i}`);x||(x=await h(),n.after(x)),x.focus()},p=async()=>{const x=document.createElement("button");return x.className="pure-button button-mini button-success",x.id=o,x.title=`跳转到指定路径。使用:
- 空白、单个斜杠: 根目录
- 相对路径1: 开头不带斜杠,当前目录下的子路径
- 相对路径2: 开头带有../,当前目录的上级目录,可以多级
- 绝对路径: 开头带有斜杠,从根目录开始的路径
斜杠风格不限,大小写敏感。
回车键跳转,Esc键关闭输入框。`,x.innerHTML="<span>跳转</span>",x.addEventListener("click",r),x},h=async()=>{const x=document.createElement("input");return x.id=i,x.placeholder="输入路径,区分大小写。回车跳转",x.addEventListener("keydown",async A=>{if(A.key==="Enter"){const O=x.value.trim();await E(O)}else A.key==="Escape"&&await d();Kc(A)}),x},y=async x=>{if(yp(x))return"0";const A=await Uc();try{if(x=wp(x,Cl.unix),x=Kk(A,x,Cl.unix),yp(x))return"0";console.log("[showGotoButtonOnPathBar] path:",x);const O=await Bm(x);if(console.log("[showGotoButtonOnPathBar] getDirId:",O),O.state){const V=O.id.toString();if(V==="0")throw new Error("路径无效");return V}throw new Error(`获取路径信息失败: ${O.errno}(${O.error})`)}catch(O){throw new Error(`获取路径信息失败: ${O.message}`)}},E=async x=>{if(!l){x=x.trim(),l=!0;try{const A=await y(x);unsafeWindow.Main.GotoDir(1,A,0,"")}catch(A){me.fire({icon:"error",title:"跳转失败",text:A.message})}finally{l=!1}}};s||(s=await p(),t.prepend(s))}location.host==="115.com"&&(window.COMMONHEADERUSERINFO=window.COMMONHEADERUSERINFO||{}),(async()=>(console.log("Cloud115 Enhancer launched!"),xv(),O1(),rC(),cC(),Jk(),Hk()))()})();