// ==UserScript== // @name 115不大助手 (full) // @namespace com.cloud115.enhancer // @version 0.7.63 // @author 生瓜太保 // @description Make 115 taerg again! // @license MIT // @icon https://cdnres.115.com/site/static/style_v11.2/frame/images/logo.svg // @homepage https://greasyfork.org/zh-CN/scripts/474231-115不大助手?locale_override=1 // @supportURL https://greasyfork.org/zh-CN/scripts/474231-115不大助手?locale_override=1 // @match https://*.115.com/* // @match https://115.com/* // @match https://v.anxia.com/* // @match https://anxia.com/* // @match https://115cdn.com/* // @match https://115vod.com/* // @exclude https://q.115.com/* // @exclude https://cdnassets.115.com/* // @connect * // @grant GM_addStyle // @grant GM_deleteValue // @grant GM_getValue // @grant GM_info // @grant GM_openInTab // @grant GM_registerMenuCommand // @grant GM_setClipboard // @grant GM_setValue // @grant GM_xmlhttpRequest // @grant unsafeWindow // @run-at document-body // @downloadURL https://update.greasyfork.icu/scripts/474231/115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B%20%28full%29.user.js // @updateURL https://update.greasyfork.icu/scripts/474231/115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B%20%28full%29.meta.js // ==/UserScript== (e=>{if(typeof GM_addStyle=="function"){GM_addStyle(e);return}const o=document.createElement("style");o.textContent=e,document.head.append(o)})(` @charset "UTF-8";.pure-button{display:inline-block;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#000c;border:none transparent;background-color:#e6e6e6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{background-image:linear-gradient(transparent,#0000000d 40%,#0000001a)}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{margin:0;border-radius:0;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td{background-color:#f2f2f2}.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}/*! Pure v3.0.0 Copyright 2013 Yahoo! Licensed under the BSD License. https://github.com/pure-css/pure/blob/master/LICENSE */.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input[type=color]:focus,.pure-form input[type=date]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=email]:focus,.pure-form input[type=month]:focus,.pure-form input[type=number]:focus,.pure-form input[type=password]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=text]:focus,.pure-form input[type=time]:focus,.pure-form input[type=url]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129fea}.pure-form input:not([type]):focus{outline:0;border-color:#129fea}.pure-form input[type=checkbox]:focus,.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus{outline:thin solid #129FEA;outline:1px auto #129FEA}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input[type=color][disabled],.pure-form input[type=date][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=email][disabled],.pure-form input[type=month][disabled],.pure-form input[type=number][disabled],.pure-form input[type=password][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=text][disabled],.pure-form input[type=time][disabled],.pure-form input[type=url][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input:not([type])[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input[type=color],.pure-form-stacked input[type=date],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=email],.pure-form-stacked input[type=file],.pure-form-stacked input[type=month],.pure-form-stacked input[type=number],.pure-form-stacked input[type=password],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=text],.pure-form-stacked input[type=time],.pure-form-stacked input[type=url],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-stacked input:not([type]){display:block;margin:.25em 0}.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width :480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=color],.pure-group input[type=date],.pure-group input[type=datetime-local],.pure-group input[type=datetime],.pure-group input[type=email],.pure-group input[type=month],.pure-group input[type=number],.pure-group input[type=password],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=text],.pure-group input[type=time],.pure-group input[type=url],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:#000c;color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}.text-center{text-align:center}.text-bold{font-weight:700}.text-cross{text-decoration:line-through}.text-ul{text-decoration:underline}.text-ul-dot{text-decoration:underline dotted}.text-primary{color:#1890ff}.text-success{color:#13ce66}.text-warning{color:#ffba00}.text-danger{color:#ff4949}.text-info{color:#909399}.ce-label{padding:2px 4px;background:#909399;color:#fff;border-radius:4px}.ce-label.ce-label-primary{background:#1890ff}.ce-label.ce-label-warning{background:#ffba00}.ce-label.ce-label-danger{background:#ff4949}.ce-label.ce-label-success{background:#13ce66}.ce-label.ce-label-primary-plain{color:#409eff;background:#ecf5ff}.ce-tag-plain{padding:1px 4px;border:1px solid #1890ff;border-radius:4px}input.ce-checkbox{width:20px;height:20px;cursor:pointer}.ce-hidden{display:none!important}.tabs-component .tabs-component-tabs{border:solid 1px #ddd;border-radius:6px;margin-bottom:5px}@media (min-width: 700px){.tabs-component .tabs-component-tabs{border:0;align-items:stretch;display:flex;justify-content:flex-start;margin-bottom:1px}}.tabs-component .tabs-component-tabs .tabs-component-tab{color:#999;font-size:14px;font-weight:600;margin-right:0;list-style:none;border-bottom:dotted 1px #ddd}.tabs-component .tabs-component-tabs .tabs-component-tab:hover{color:#666}.tabs-component .tabs-component-tabs .tabs-component-tab.is-disabled *{color:#cdcdcd;cursor:not-allowed!important}.tabs-component .tabs-component-tabs .tabs-component-tab.is-active{color:#000}.tabs-component .tabs-component-tabs .tabs-component-tab .tabs-component-tab-a{align-items:center;color:inherit;display:flex;padding:.75em 1em;text-decoration:none}@media (min-width: 700px){.tabs-component .tabs-component-tabs .tabs-component-tab{background-color:#fff;border:solid 1px #ddd;border-radius:3px 3px 0 0;margin-right:.5em;transform:translateY(2px);transition:transform .3s ease}.tabs-component .tabs-component-tabs .tabs-component-tab.is-active{border-bottom:solid 1px #fff;z-index:2;transform:translateY(2px)}}.tabs-component .tabs-component-panels{padding:1em 0}@media (min-width: 700px){.tabs-component .tabs-component-panels{background-color:#fff;border:solid 1px #ddd;border-radius:0 6px 6px;box-shadow:0 0 10px #0000000d;padding:1em}}.tabs-component .tabs-component-btn{cursor:pointer;background:#e1ecf4;border-radius:3px;border:1px solid #7aa7c7;padding:4px 8px;color:#39739d}.tabs-component .tabs-component-btn:hover{background-color:#b3d3ea;color:#2c5777}.tabs-component .tabs-component-btn:active{background-color:#a0c7e4;box-shadow:none;color:#2c5777}.ce-tips{background:#eee;border-radius:4px;padding:4px;font-size:12px;color:#595959;margin-bottom:10px}.ce-hr{border:0;height:1px;background-image:linear-gradient(to right,#0000,#ccc,#0000)}.ce-config input[type=checkbox]{width:18px;height:18px;cursor:pointer}.ce-config legend{font-size:16px;color:#1890ff}.ce-config-help{font-size:11px;cursor:pointer}.ce-ec-detail{text-align:left;font-size:14px}.ce-ec-detail span{color:#1890ff;display:inline-block;width:90px;text-align:right}.swal2-container{z-index:99999999!important}.ce-swal-text-left .swal2-html-container{text-align:left!important}.swal2-checkbox input{width:20px;height:20px;cursor:pointer}div[class^=fp-].hidden-watermark{display:none!important}div.list-header[rel=list_header]{display:flex!important}.ce-custom-url-help{position:fixed;top:0;left:0;z-index:10000;width:430px;height:100%;background:#fff;font-size:12px}.ce-custom-url-help .ce-custom-url-help-body{height:80%;overflow-y:auto;padding:20px 20px 300px}.ce-custom-url-help h1 a{float:right;color:#1e87f0;font-size:14px}.ce-custom-url-help h1 a:hover{color:#1e87f0;text-decoration:underline}.ce-custom-url-help table{width:100%;margin-bottom:20px}.ce-custom-url-help .ce-variable{cursor:pointer;color:#1e87f0;font-size:14px}.ce-custom-url-help .ce-variable:hover{color:#093d71}.ce-menu:not(.sub-item){background:#fffcea}.ce-menu img.ce-menu-icon{float:left;width:12px;height:12px;margin-right:4px}.ce-menu.list-item-hover-menu i.ce-menu-icon.icon-operate{scale:.75;margin-top:-4px}.ce-menu.list-item-hover-menu.ce-menu-parent{position:relative;float:left;cursor:pointer}.ce-menu.list-item-hover-menu.ce-menu-parent:after{content:"";position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background:#2777f8cc;pointer-events:none}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-trigger{padding:0 12px;color:#2777f8}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-trigger:before{content:"\u2228";margin-right:4px;font-size:12px}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;left:0;padding:4px;border-radius:4px;display:none;text-align:center;width:160px}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub{margin:2px 0;background:#eee;color:#2877f8;width:100%;border-radius:4px;padding:6px 12px;line-height:12px;box-sizing:border-box}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub:hover{background-color:#f3e882}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub:after{display:none}.ce-menu.selection-menu.ce-menu-parent{position:relative;float:left;cursor:pointer}.ce-menu.selection-menu.ce-menu-parent:after{content:"";position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background:#2777f8cc;pointer-events:none}.ce-menu.selection-menu.ce-menu-parent .ce-menu-trigger{color:#2777f8}.ce-menu.selection-menu.ce-menu-parent .ce-menu-trigger:before{content:"\u2228";margin-right:4px;font-size:12px}.ce-menu.selection-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#fff}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:30px;left:0;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub{color:#2877f8;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding-left:4px;padding-right:4px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub span{font-weight:400;float:inherit}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub .ce-menu-icon{float:unset}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub:hover{background-color:#f3e882}.ce-menu.dir-context-menu>a img.ce-menu-icon{float:none;width:18px;height:18px;position:absolute;top:50%;left:14px;margin-top:-10px}.ce-menu.dir-context-menu>img.ce-menu-icon{position:absolute;left:14px;top:8px}.ce-menu.dir-context-menu.ce-menu-parent{position:relative;cursor:pointer;padding:6px 0}.ce-menu.dir-context-menu.ce-menu-parent:after{content:">";position:absolute;opacity:.5;right:10px;pointer-events:none}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-trigger{margin-left:43px;color:#2777f8}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened{background:#f3e882}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#1c0ccf}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened:after{opacity:0}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:0;left:100%;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub{color:#2877f8;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding:4px 8px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub span{font-weight:400;float:inherit}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub:hover{background-color:#f3e882}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-icon{width:18px;height:18px;margin-right:8px}.ce-menu.list-item-context-menu.ce-menu-parent{position:relative;cursor:pointer;padding:6px 0}.ce-menu.list-item-context-menu.ce-menu-parent:after{content:">";position:absolute;opacity:.5;right:10px;pointer-events:none}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-trigger{margin-left:43px;color:#2777f8}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened{background:#f3e882}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#1c0ccf}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened:after{opacity:0}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:0;left:100%;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub{color:#2877f8;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding:4px 8px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub span{font-weight:400;float:inherit}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub:hover{background-color:#f3e882}.ce-menu-divider{height:1px!important;display:block!important;background-color:#edeeef!important}.ce-menu-divider:after{display:none!important}.list-item-hover-menu .ce-menu-divider{height:6px!important;background-color:transparent!important}div#js_operate_box.only-icon li[menu] span{display:none}.list-contents{padding-bottom:300px}.header-name a.ce-open-dir-context-menu{cursor:pointer;background:#f2f4f8;border-radius:4px;padding:0 6px;color:#1890ff;margin-left:10px;line-height:32px}.header-name .ce-btn-create-dir{cursor:pointer;color:#4622ff;margin-left:10px;line-height:32px}.header-name .ce-btn-create-dir i{width:16px;height:16px;margin-right:4px;vertical-align:sub}.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-label-open-cfg i{opacity:.5}.ce-label-open-cfg:hover i{opacity:1}.ce-offline-config{max-height:70vh;overflow-y:auto}.ce-offline-config .ce-tips{margin-top:20px;margin-left:56px}.ce-offline-config .pure-form-message{margin-left:56px}.ce-offline-exporter{position:absolute;left:140px;top:62px;background:#f4f2ff;padding:6px 10px;border-radius:4px}.ce-offline-exporter button{margin-right:6px}.offline-exporter-config-form{width:550px;padding:10px}.swal2-input#swalDeleteFile{width:20px;padding:0;height:20px;margin:0;vertical-align:sub;cursor:pointer}body.ce-list-s #js-main{padding-top:40px}body.ce-list-s .ce-offline-exporter{top:92px}.ce-offline-searcher{position:absolute;left:140px;top:58px;background:#f4f2ff;padding:4px 10px;border-radius:4px}.ce-offline-searcher.loading form{opacity:.5;pointer-events:none;cursor:wait}.ce-offline-searcher fieldset{padding:0}.ce-offline-searcher .clearable-wrap{position:relative;width:320px}.ce-offline-searcher .clearable-wrap.is-empty .btn-clear{display:none}.ce-offline-searcher .clearable-wrap input{width:300px;padding-right:35px!important}.ce-offline-searcher .clearable-wrap .btn-clear{position:absolute;right:30px;top:4px;display:block}.ce-offline-searcher .form-item{display:inline-block;margin-right:10px;vertical-align:middle}.ce-offline-searcher .form-item input{padding:.3em}.ce-offline-searcher .form-item select{height:2em;padding:.1em .3em}.ce-offline-searcher .form-item label{margin-right:5px}.ce-offline-searcher .help-trigger{font-size:12px}.ce-offline-searcher .list{display:none}.ce-offline-searcher .stop-on-found{width:16px;height:16px;vertical-align:middle;cursor:pointer}.ce-offline-searcher .search-tips{position:fixed;top:146px;bottom:30px;left:0;width:100%;background:#fff;z-index:9999}.ce-offline-searcher .search-tips .tips-body{padding:20px;position:absolute;top:70px;left:50%;transform:translate(-50%,-50%);background:#f4f2ff;width:80%;border-radius:6px}.cloud115-page-offline.ce-list-m .list-contents .file-name-wrap .desc-tips{left:75px}.cloud115-page-offline.ce-list-m li.ce-task-trouble .info-hash{left:210px!important}.cloud115-page-offline li .ce-buttons{float:left;margin-right:6px}.cloud115-page-offline .ce-checkbox{width:30px}.cloud115-page-offline .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp .info-hash{position:absolute;left:47px;top:25px;color:#ababab;cursor:pointer}.cloud115-page-offline #js-warp .info-hash.hover{color:#6ab2ff}.cloud115-page-offline #js-warp li.ce-selected:before{background:#ffe296!important}.cloud115-page-offline #js-warp li.ce-show-checkbox .info-hash{left:60px}.cloud115-page-offline #js-warp li.ce-show-checkbox .file-name{margin-left:15px}.cloud115-page-offline #js-warp li.ce-show-checkbox .file-type{left:25px!important}.cloud115-page-offline #js-warp li .ce-checkbox{width:30px;position:absolute;left:0}.cloud115-page-offline #js-warp li .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp li .desc-tips{position:absolute;left:60px;top:25px}.cloud115-eh-cleaner-trigger .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f}.ce-drawer{visibility:hidden}.ce-drawer.is-visible{visibility:visible}.ce-drawer.is-open .ce-drawer__overlay{opacity:.5}.ce-drawer.is-open .ce-drawer__content{transform:translate(0)}.ce-drawer__overlay{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;z-index:200;opacity:0;transition-property:opacity;background-color:#000;user-select:none}.ce-drawer__content{position:fixed;top:0;right:0;bottom:0;height:100%;width:100%;z-index:9999;overflow:auto;transition-property:transform;display:flex;flex-direction:column;transform:translate(100%);box-shadow:0 2px 6px #777}.k-p-e{font-size:12px}.v-popper.v-popper--theme-dropdown{display:inline-block}.group-manager{width:750px;padding-top:8px}.group-manager a{font-size:12px;padding:0 4px;margin-right:8px}.group-manager .group-label{color:#fff;font-size:12px;margin-right:10px;border-radius:4px;padding:2px 8px;background:#66acf9}.group-manager .label-readonly{background:#c93c3c;color:#fff;padding:0 4px;border-radius:4px;vertical-align:middle;margin-right:6px}.append-form{background:#fff;width:350px;padding:10px;border-radius:4px}.append-form input,.append-form textarea{width:100%}.group-form{background:#fff;padding:10px;border-radius:4px}.group-form .pure-control-group{margin-bottom:10px}.group-form input,.group-form textarea{width:80%}.group-form .filter-label{cursor:pointer;padding:0 4px;text-decoration:underline}.group-form input#groupLabel,.group-form input#groupUrl{display:inline-block}.group-form #groupValues{resize:vertical}.group-form .values{display:flex}.group-form .values textarea{width:98%;font-size:12px;line-height:22px}.group-form .values .v-input{flex:6}.group-form .values .v-help{flex:4}.groups-list{background:#fff;width:565px;padding:10px;border-radius:4px;box-shadow:0 0 4px #d8d8d8}.groups-list table th,.groups-list table td{padding:4px 6px}.groups-list ul li{border-bottom:1px solid #eee;padding:4px}.groups-list ul li:nth-last-child(1){border-bottom:none}.groups-list span{display:inline-block}.groups-list .p-index{width:30px}.groups-list .p-label{width:120px}.groups-list .p-actions button{margin-right:8px}.group-confirm-delete{padding:20px}.cloud115-eh-cleaner-help{font-size:12px;position:absolute;top:0;right:0;width:360px;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.cloud115-eh-cleaner-help ul{list-style:decimal}.pagination-container{margin:8px 0}.pagination-container li{margin-right:10px}.pagination-container li .paginate-buttons{padding:4px 8px;width:46px;text-align:center}.pagination-container li .paginate-buttons.active-page{color:#411cc8;font-weight:700}ul#componentContainer{padding-inline-start:0;list-style-type:none;display:inline-flex}ul#componentContainer a{text-decoration:none;display:flex;justify-content:center;align-items:center}.ce-file-list[data-v-89339f2e]{padding:20px 10px 50px 20px}.ce-file-list table[data-v-89339f2e]{font-size:12px}.ce-file-list table td[data-v-89339f2e]{word-break:break-all}.v-popper__arrow-container{display:none}.ce-cleaner-x .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f;display:none}.ce-cleaner-x .actions-bar{padding-bottom:10px;width:72%}.ce-cleaner-x .actions-bar .title{font-size:18px;font-weight:700;color:#15110c}.ce-cleaner-x .actions-bar .close{margin-left:20px;margin-right:10px;color:#f40}.ce-cleaner-x .actions-bar i.tp-folder{width:18px;height:18px;vertical-align:sub}.ce-cleaner-x .actions-bar .ce-path{font-size:14px;margin-top:4px}.ce-cleaner-x .actions-bar .ce-path a:hover{text-decoration:underline}.ce-button-group button{border:none;padding:2px 6px;border-radius:0;vertical-align:baseline}.ce-button-group button:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}.ce-button-group button:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}.ce-button-group button:not(:last-child){border-right:1px solid #f6f6f6}#cloud115Cleaner{margin-left:10px}.cloud115-eh-cleaner{position:relative}.cloud115-eh-cleaner-drawer{background:#fff;padding:10px 20px 200px;overflow-y:auto}.cloud115-eh-cleaner-drawer.loading{cursor:wait}.cloud115-eh-cleaner-drawer.loading button,.cloud115-eh-cleaner-drawer.loading input{cursor:no-drop;pointer-events:none}.cloud115-eh-cleaner-drawer .config-toggle{display:inline-block;background:#eee;border-radius:4px;opacity:.2;padding:2px 4px;cursor:pointer}.cloud115-eh-cleaner-drawer .config-toggle.hover{opacity:.7}.cloud115-eh-cleaner-drawer .by-box .by-header{padding-bottom:10px}.cloud115-eh-cleaner-drawer .by-box .by-header .title{font-size:16px;margin-right:8px;color:#0078e6;font-weight:400}.cloud115-eh-cleaner-drawer .by-box .by-header .filter-size{width:100px;font-size:14px;font-weight:700;color:#0078e6;text-indent:6px}.cloud115-eh-cleaner-drawer .by-box .pure-button-group{display:inline-block}.cloud115-eh-cleaner-drawer .by-box .pure-button-group .pure-button{vertical-align:inherit}.cloud115-eh-cleaner-drawer .by-box .pattern-groups{width:750px;text-align:right}.cloud115-eh-cleaner-drawer .by-box .pattern-groups a{font-size:12px;padding:0 4px;margin-right:8px}.cloud115-eh-cleaner-drawer .by-box table tr.active{background:#f7ffc3}.cloud115-eh-cleaner-drawer .by-box table tr.is-dir .pattern{color:#f40}.cloud115-eh-cleaner-drawer .by-box table tr th,.cloud115-eh-cleaner-drawer .by-box table tr td{padding:.5em;font-size:12px}.cloud115-eh-cleaner-drawer .by-box table tr .item-meta{font-size:11px}.cloud115-eh-cleaner-drawer .by-box table tr .item-meta .ce-label{background:#e6e6e6;color:#818181;margin:0 2px;font-size:10px}.cloud115-eh-cleaner-drawer .by-box table tr .item-meta .ce-label.ce-label-danger{background:#cbc8ff;color:#fff}.cloud115-eh-cleaner-drawer .by-box table tr .item-meta .ce-label:first-child{margin-left:4px}.cloud115-eh-cleaner-drawer .by-box table td button:not(:last-child){margin-right:8px}.cloud115-eh-cleaner-drawer .by-box table td a{color:#2877f8}.cloud115-eh-cleaner-drawer .by-box table td .tp-folder{width:16px;height:16px;vertical-align:sub}.cloud115-eh-cleaner-drawer .by-box table.table-matched tr.item-unmatched,.cloud115-eh-cleaner-drawer .by-box table.table-unmatched tr.item-matched{display:none}.by-keyword.kw-cate-dir tbody tr:not(.is-dir),.by-keyword.kw-cate-file tbody tr.is-dir{opacity:.5;pointer-events:none;cursor:no-drop}.fixed-header-table{width:68%;border-collapse:collapse}.fixed-header-table thead{position:sticky;top:0;background-color:#f2f2f2;z-index:1}.fixed-header-table tbody{display:block;max-height:450px;overflow-y:auto;overflow-x:hidden}.fixed-header-table thead,.fixed-header-table tbody tr{display:table;width:100%;table-layout:fixed}.fixed-header-table th,.fixed-header-table td{padding:10px;border:1px solid #ddd}td.item-index{width:29px}td.item-val{width:308px}td.item-num{width:106px}td.item-size{width:89px}td.item-actions{width:166px}td.item-status{width:204px}.ce-empty-cleaner-trigger .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f}.ce-empty-cleaner-help[data-v-ce900ab5]{font-size:12px;position:absolute;top:0;right:0;width:360px;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.ce-empty-cleaner-help ul[data-v-ce900ab5]{list-style:decimal}#cloud115EmptyCleaner{margin-left:10px}.ce-empty-cleaner{position:relative}.ce-empty-cleaner .top-actions .pure-control-group label{width:auto;text-align:left}.ce-empty-cleaner .ec-logs{max-height:250px;overflow-y:auto;max-width:72%;background:#f4f4f4;padding:10px;line-height:22px;font-size:12px;margin-bottom:20px}.ce-empty-cleaner .ec-items{margin-bottom:30px}.ce-empty-cleaner .ec-items table{font-size:12px;width:72%}.ce-empty-cleaner .ec-items table .tr-deleted>td:not(:last-child){text-decoration:line-through}.ce-empty-cleaner .btn-global-clear{float:right}.ce-empty-cleaner-drawer{background:#fff;padding:10px 20px 200px;overflow-y:auto}.ce-empty-cleaner-drawer.loading{cursor:wait}.ce-empty-cleaner-drawer.loading button,.ce-empty-cleaner-drawer.loading input{cursor:no-drop;pointer-events:none}.button-xsmall,.button-mini{font-size:12px;padding:.2em .5em}.button-small{font-size:85%}.button-large{font-size:110%}.button-xlarge{font-size:125%}.button-success,.button-error,.button-warning,.button-secondary{color:#fff;border-radius:2px;text-shadow:0 1px 1px rgba(0,0,0,.2)}.button-success{background:#1cb841}.button-error{background:#ca3c3c}.button-warning{background:#df7514}.button-secondary{background:#42b8dd}.pure-form select{height:2.5em;font-size:12px}.pure-form input:not([type]){padding:4px 6px}.pure-form input[type=number]{min-width:100px}.ce-basic-config .pure-form-message{margin-left:82px}.ce-basic-config .avatar-preview{display:inline-block;vertical-align:middle;margin-left:10px}.ce-basic-config .pure-control-group input.input-small{padding:2px 4px;width:auto}.ce-clouddrive-config-item{margin-bottom:20px;border:1px solid #cbcbcb;border-radius:0;padding:4px}.ce-clouddrive-config-item.active{background:#fefcea}.ce-clouddrive-config-item input:not([type]){font-size:12px}.ce-clouddrive-config-item .button-error{float:right}.ce-clouddrive-config .cd-tips a{text-decoration:underline}.ce-clouddrive-config .cd-code{font-size:110%;cursor:pointer;user-select:none}.ce-list-config .pure-control-group label{width:16em}.ce-list-config .pure-form-message{margin-left:3em}.ce-search-config .pure-control-group label{width:15em}.ce-search-config .pure-form-message{margin-left:3em}.ce-tools-config .pure-control-group label{width:15em}.ce-tools-config .pure-form-message{margin-left:3em}.menu-basic-config .pure-control-group label,.official-menu-config .pure-form label{width:170px!important}.official-menu-config .pure-form label small{color:#999}.official-menu-config .pure-form legend .ce-label{cursor:pointer;font-size:12px;float:right}.official-menu-config .pure-form .ce-toggle{font-size:12px;cursor:pointer;color:#909399}.official-menu-config .pure-form .menu-key{opacity:0}.official-menu-config .pure-form .menu-item:hover .menu-key{opacity:1}.official-menu-config .pure-form .hidden .ce-toggle{color:#1890ff}.ce-field{background:#fff;margin-bottom:1px;padding:4px}.ce-field:hover{background:#fefcea}.ce-field input[type=checkbox],.ce-field input[type=radio]{width:18px;height:18px;cursor:pointer;vertical-align:middle}.ce-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.menu-name-path-block{width:250px;max-height:380px;overflow-y:auto}.menu-name-path-block legend{text-align:center}.menu-name-path-block .ce-field label{width:180px}.menu-config-block span.btn-toggle-top{margin-left:8px;cursor:pointer;opacity:.3}.menu-config-block span.btn-toggle-top.active{opacity:1}.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}.menu-config-block{display:inline-block;border-radius:6px;margin:4px;vertical-align:top;padding:0 6px;background:#f9f9f9}.menu-config-block>form>legend{border:none;text-align:center;font-size:14px;color:#5092ff;padding:4px;margin-bottom:0}.menu-config-block>form>fieldset>div{background:#fff;margin-bottom:1px;padding:4px}.menu-config-block>form>fieldset>div:hover{background:#fefcea}.menu-config-block label{display:inline-block;width:120px;font-size:12px;line-height:20px;vertical-align:middle;cursor:pointer}.ce-custom-url{border-radius:4px;box-shadow:0 0 5px #eee;border:1px solid #eee;margin-bottom:20px;padding:0 10px;background:#fff}.ce-custom-url label{cursor:pointer}.ce-custom-url input:not([type]){font-size:12px}.ce-custom-url textarea{font-size:12px;resize:vertical}.ce-custom-url input[type=checkbox]{width:18px;height:18px;cursor:pointer}.ce-custom-url .ce-custom-url-index{font-size:14px;font-weight:700;margin-right:20px}.ce-custom-url legend .button-error{float:right}.ce-custom-url fieldset>div{margin-bottom:1px;padding:4px}.ce-custom-url fieldset>div:hover{background:#fefcea}.ce-custom-urls{padding-bottom:100px}.ce-custom-urls .item-icon img{vertical-align:middle}.ce-custom-urls .item-memo{display:inline-block;width:320px}.ce-play-urls{padding-bottom:100px}.ce-play-urls .item-icon img{vertical-align:middle}.ce-play-urls .item-memo{display:inline-block;width:340px}.ce-play-urls .extra-memo{font-size:12px;margin-left:10px}.ce-play-urls .extra-memo a{text-decoration:underline;color:#337ab7}.ce-anxia-config .pure-control-group label{width:9em}.ce-anxia-config .pure-form-message{margin-left:3em}.ce-share-config .pure-control-group label{width:15em}.ce-share-config .pure-form-message{margin-left:3em}.ce-config-main .ce-intro{margin-left:35%;color:#7676ff}.ce-config-main .ce-intro small{color:#999}.ce-config-main .ce-config-main-body{padding:10px}.ce-config-main .ce-config-main-header{padding:10px;position:sticky;top:0;background:#fff;z-index:100000;box-shadow:0 1px 2px #e9e9e9}.ce-config-main .ce-config-main-header h1{display:inline;font-size:18px}.ce-config-main .ce-config-main-header .ce-config-main-close{float:right;vertical-align:top;color:#89929b;cursor:pointer;padding:2px 20px;border-radius:6px}.ce-config-main .ce-config-main-header .ce-config-main-close:hover{background:#fefcea;color:#0275ff}.ce-config-main .ce-offline-config{max-height:unset}.ce-login-page a.ce-entry{display:inline-block;background:#fefcea;padding:2px 6px;border-radius:4px;border:1px solid #234888;margin:0 4px}.ce-list-page .header-name div.desc{line-height:32px}.list-contents ul li .ce-btn-folder-size{background:#f2f4f8;border-radius:6px;padding:4px;cursor:pointer}.list-contents ul li .ce-file-sha1{position:absolute;top:20px;color:#999;cursor:pointer;font-size:90%}.list-contents ul li.ce-show-sha1 .file-name{height:40px}.list-contents ul li.ce-size-got .ce-btn-folder-size{opacity:.6;margin-left:6px}.list-contents ul li.ce-size-got .ce-btn-folder-size:hover{opacity:1}#js_top_header_file_path_box .ce-path-btn{background-color:#f4f6fc;height:32px}#js_top_header_file_path_box .ce-path-btn#ceGotoPath{margin-right:6px}#js_top_header_file_path_box.ce-goto-path-active{height:60px}#js_top_header_file_path_box.ce-goto-path-active div#js_path_add_dir{height:32px}#js_top_header_file_path_box #ceGotoPathApp{position:absolute;top:40px}#js_top_panel_box #js_operate_box.ce-show-quick-entry{display:none!important;animation:ce-hide-hint .3s ease-in-out}.ce-goto-main{position:relative;margin-right:5px}.ce-goto-main.ce-goto-sug-shown .ce-goto-input-wrap{border-radius:6px 6px 0 0}.ce-goto-main.ce-goto-sug-shown .ce-goto-sug{display:block}.ce-goto-main .ce-goto-input-wrap{position:relative;overflow:hidden;border:1px solid #cfcccc;border-radius:6px}.ce-goto-main .ce-goto-input-wrap .ce-goto-input{border-radius:6px 6px 0 0;border:none;padding:4px 10px;width:100%;box-sizing:border-box;color:#2877f8;border-bottom:none}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn{position:absolute;border:none}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn:hover{color:#ff723e}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd]{top:5px;font-size:12px;background:#aeaeae;color:#fff;padding:0 4px;border-radius:4px;cursor:pointer}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd]:hover{background:#ff723e}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd][disabled]{background:#d7d7d7;cursor:not-allowed}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd=clear]{right:10px}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd=toggle]{right:50px}.ce-goto-main .ce-goto-sug{display:none;position:absolute;background:#fff;width:100%;padding:10px 10px 10px 8px;max-height:250px;z-index:999999;overflow-y:auto;box-shadow:0 5px 8px #ededed;border-radius:0 0 6px 6px;border:1px solid #cfcccc;box-sizing:border-box;border-top:none}.ce-goto-main .ce-goto-sug .ce-goto-sug-item{padding:4px 10px;background:#f4f6fc;margin-bottom:4px;cursor:pointer;border-radius:4px;font-size:12px;color:#353535}.ce-goto-main .ce-goto-sug .ce-goto-sug-item:hover{background:#d7d7d7}.ce-goto-main .ce-goto-sug .ce-goto-sug-item.active{background:#f4e1cf;color:#2877f8}.ce-goto-main .ce-goto-sug .ce-goto-sug-item span.ce-goto-sug-prefix,.ce-goto-main .ce-goto-sug .ce-goto-sug-item span.ce-goto-sep{color:#a4a4a4}.ce-goto-main .ce-goto-sug .ce-goto-sug-item span.ce-goto-sug-index{display:inline-block;background:#6ab2ff;font-size:10px;min-width:20px;color:#fff;border-radius:4px;text-align:center;padding:0 2px;margin-right:4px}.ce-search-page .top-file-path .file-path{float:left}.ce-search-page .dir-tab.ce-btn-select{background:#fffcea;color:#2877f8;display:inline-block;height:32px;line-height:24px;font-size:12px;padding:4px 8px;box-sizing:border-box;border:1px solid #2877f8;border-radius:4px}.ce-search-page .dir-tab.ce-btn-select:hover{background:#ff0}.ce-share-page.ce-share-fresh .sharing-banner,.ce-share-page.ce-share-fresh .promptbar-caution{display:none!important}.ce-share-page .sharing-banner{max-width:1000px;margin:0 auto}.ce-share-page .ce-list-summary{background:#fefcea;color:#a37958;border-radius:4px;padding:0 6px;margin-left:10px} `); (function () { 'use strict'; var Nw=Object.defineProperty;var Fw=(e,t,n)=>t in e?Nw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>Fw(e,typeof t!="symbol"?t+"":t,n);var Uw=typeof GM_addStyle<"u"?GM_addStyle:void 0,jw=typeof GM_deleteValue<"u"?GM_deleteValue:void 0,Kl=typeof GM_getValue<"u"?GM_getValue:void 0,Hw=typeof GM_info<"u"?GM_info:void 0,xf=typeof GM_openInTab<"u"?GM_openInTab:void 0,mr=typeof GM_registerMenuCommand<"u"?GM_registerMenuCommand:void 0,Vw=typeof GM_setClipboard<"u"?GM_setClipboard:void 0,nl=typeof GM_setValue<"u"?GM_setValue:void 0,Gl=typeof GM_xmlhttpRequest<"u"?GM_xmlhttpRequest:void 0,zw={name:"115不大助手",version:"0.7.63",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"},mt=(e=>(e.basic="basic_config",e.anxia="anxia_config",e.clouddrive="clouddrive_configs",e.list="list_config",e.enabledCustomUrlsForSearch="enabled_custom_urls_for_search",e.enabledCustomUrlsForPlay="enabled_custom_urls_for_play",e.menuCustomUrlsForSearch="menu_custom_urls_for_search",e.menuCustomUrlsForPlay="menu_custom_urls_for_play",e.menu="ce_menu_config",e.hiddenOfficialMenuKeys="hidden_official_menu_keys",e.offline="offlineExporterConfig",e.search="search_config",e.tools="tools_config",e.cleanerConfig="cleanerConfig",e.cleanerSuffixGroups="suffixGroups",e.cleanerKeywordGroups="keywordGroups",e.emptyCleanerConfig="emptyCleanerConfig",e.share="share",e))(mt||{});const Jl=Object.values(mt),Cf=async(e,t)=>Kl(e,t),qw=async(e,t)=>nl(e,t),kf=async e=>jw(e),Ww=async()=>{for(const e of Jl)await kf(e);},Sf=async()=>{const e={};for(const t of Jl)e[t]=await Cf(t,{});return e};async function Kw(){const e=await Sf(),t=zw;e._meta={name:t.name,version:t.version,time:new Date().toLocaleString(),browser:navigator.userAgent},e._schema="pan115_enhancer_configs";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([JSON.stringify(e,null,2)],{type:"application/json"})),n.download=`${t.name}-v${t.version}-配置.json`,n.click();}async function Gw(){return new Promise((e,t)=>{const n=document.createElement("input");n.type="file",n.accept="application/json",n.oncancel=()=>{t("取消选择文件!");},n.onchange=async()=>{const s=n.files&&n.files[0];if(!s){t("未选择文件!");return}const i=await new Promise((r,a)=>{const l=new FileReader;l.onload=()=>{try{r(JSON.parse(l.result));}catch(c){a(c);}},l.onerror=()=>{a(l.error);},l.readAsText(s);});if(i._schema!=="pan115_enhancer_configs"){t("这不是一个脚本配置文件!");return}const o=[];for(const r of Jl)o.push(r),i[r]&&await et.set(r,i[r]);e({data:i,importedKeys:o});},n.click();})}const et={get:Cf,set:qw,remove:kf,clear:Ww,getAll:Sf};function Nr(e,...t){return new e(t[0])}async function _s(e,t,n){return new Promise(async(s,i)=>{if(typeof e!="function"){i("提供的参数`fulfill`不是一个Function!");return}let o=!1;e(l=>{o=!0,s(l);});let r=setInterval(async()=>{if(o){clearTimeout(a),clearInterval(r);return}e(l=>{clearTimeout(a),clearInterval(r),s(l);});},t),a=setTimeout(()=>{clearInterval(r),i("超时");},n);})}async function nn(e){return new Promise(t=>{setTimeout(t,e);})}function bt(e,t,n){let s;return function(...i){const o=()=>{s=void 0,e.apply(this,i);};clearTimeout(s),s=setTimeout(o,t);}}function js(e,t){t=t||window,t.postMessage(e);}function Fr(e,t=location.href){const n=new RegExp("(\\?|#|&)"+e+"=([^&#]*)(&|#|$)"),s=t.match(n);return s?s[2]:""}function bo(){return Math.floor(Date.now()/1e3)}function $f(e){const t=e.target;e.key==="a"&&(e.ctrlKey||e.metaKey)&&t.select();}function Ef(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement}function Jw(e){e.addEventListener("keydown",t=>{const n=t.target;Ef(n)&&$f(t);});}function Pf(e,t=.2,n=.5){e.style.transition=`opacity ${n}s`,e.style.opacity=t.toString(),setTimeout(()=>{e.remove();},500);}function Yw(e,t){let n=document.querySelector(e);return n||(n=ft(t)),n}function ft(e){const t=document.createElement("div");if(t.innerHTML=e.trim(),t.childNodes.length!==1||!(t.firstChild instanceof HTMLElement))throw new Error("Invalid HTML string. It must contain exactly one root element.");return t.firstChild}function Af(e,t=document,n=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE){const s=[],i=document.evaluate(e,t,null,n,null);for(let o=0;o0&&r(a);}else {const a=s.querySelectorAll(e);a.length&&r(Array.from(a));}}try{return await _s(o,t,n)}catch(r){throw console.warn("[find]",r),new Error(`查找元素超时:${e}`)}}async function us(e,t=100,n=12e4){const s=e.indexOf("//")===0;function i(o){if(s){const r=Af(e);r.length>0&&o(unsafeWindow.$(r));}else {const r=unsafeWindow.$(e);r.length&&o(r);}}try{return await _s(i,t,n)}catch(o){throw console.warn("[findWithJQuery]",o),new Error(`查找元素超时:${e}`)}}async function Qw(e,t,n){const s=await lt(e),i=new MutationObserver(t);return n={attributes:!1,childList:!0,subtree:!1,...n},i.observe(s,n),i}function rt(e){return document.querySelector(e)}function Xw(e){return Array.from(document.querySelectorAll(e))}const Zw=["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"],eb=["jpg","jpeg","png","gif","bmp","svg"],tb=["mp3","wav","wma","ogg","ape","flac","aac"];function gr(e,t,n="text/plain"){const s=document.createElement("a");document.body.appendChild(s),s.setAttribute("style","display:none");const i=new Blob([e],{type:n}),o=window.URL.createObjectURL(i);s.href=o,s.download=t,s.click(),window.URL.revokeObjectURL(o);}function vo(e,t=2){if(Number.isNaN(e)||(e=typeof e=="string"?parseInt(e):e,!e))return "0";const n=1024,s=t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(s))+" "+i[o]}function Ac(e){const t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=new RegExp(`^(\\d+(?:\\.\\d+)?)(${t.join("|")})$`,"i"),s=e.match(n);if(!s)throw new Error(`无效的文件大小!${e}`);const i=parseFloat(s[1]),o=s[2].toUpperCase(),r=t.indexOf(o);if(r<0)throw new Error(`无效的文件大小!${e}`);return i*Math.pow(1024,r)}function nb(e){return e?Zw.indexOf(e.toLowerCase())>-1:!1}function sb(e){return e?eb.indexOf(e.toLowerCase())>-1:!1}function ob(e){return e?tb.indexOf(e.toLowerCase())>-1:!1}var gt=(e=>(e.openConfig="openConfig",e.closeConfig="closeConfig",e.basicConfigChange="basicConfigChange",e.listConfigChange="listConfigChange",e.searchConfigChange="searchConfigChange",e.toolsConfigChange="toolsConfigChange",e.listRendered="listRendered",e.shareConfigChange="shareConfigChange",e.topDomChanged="topDomChange",e.officialMenuStyleChange="officialMenuStyleChange",e.renderMenus="renderMenus",e))(gt||{}),_t=(e=>(e.basic="basic",e.clouddrive="clouddrive",e.list="list",e.search="search",e.menus="menus",e.searchMenus="searchMenus",e.playMenus="playMenus",e.offline="offline",e.tools="tools",e.anxia="anxia",e.share="share",e.about="about",e))(_t||{});const dn={basic:"基础设置",clouddrive:"CloudDrive",list:"列表增强",search:"搜索增强",menus:"菜单设置",searchMenus:"搜索菜单",playMenus:"播放菜单",offline:"离线管理",tools:"工具",anxia:"在线播放",share:"分享增强",about:"关于"},Rr=class Rr{constructor(t){ve(this,"menuType",ze.listItemHover);ve(this,"injectDecider");ve(this,"keyAttributeName","id");ve(this,"key","");ve(this,"label","");ve(this,"icon","");ve(this,"showIcon",!0);ve(this,"title","");ve(this,"onClick",async(t,n)=>{});ve(this,"onMouseOver");ve(this,"onMouseOut");ve(this,"subItems",[]);ve(this,"subItemsLocator");ve(this,"isDivider",!1);ve(this,"menuItemTemplates",{[ze.dirContext]:{body:`
  • {icon}{label}
  • `,bodyForMulti:`
  • {icon}{label}
    `,divider:'
  • '},[ze.dirContextSub]:{body:` {icon}{label} `,divider:''},[ze.listItemContext]:{body:`
  • {icon}{label}
  • `,bodyForMulti:`
  • {icon}{label}
    `,divider:'
  • '},[ze.listItemContextSub]:{body:'{label}',divider:''},[ze.listItemHover]:{body:` {icon}{label} `,bodyForMulti:` {icon}{label}
    `,divider:''},[ze.listItemHoverSub]:{body:` {icon}{label} `,divider:''},[ze.selection]:{body:'
  • {icon}{label}
  • ',bodyForMulti:`
  • {icon}{label}
  • `,divider:'
  • '},[ze.selectionSub]:{body:` {icon}{label} `,divider:''},[ze.shareListItemHover]:{body:` {icon}{label} `,bodyForMulti:` {icon}{label}
    `,divider:''},[ze.shareListItemHoverSub]:{body:` {icon}{label} `,divider:''}});Object.assign(this,t);}async decideInject(t){return this.injectDecider?await this.injectDecider(this,t):!0}async render(){if(!this.menuType)throw new Error("未指定菜单类型");const t=this.menuItemTemplates[this.menuType];if(!t)throw new Error(`未找到菜单模板:${this.menuType}`);if(this.isDivider){if(!t.divider)throw new Error("未定义模版的divider内容!");const r=document.createElement("div");return r.innerHTML=t.divider,r.firstElementChild}let n=t.body;if(this.subItems&&this.subItems.length>0){if(!t.bodyForMulti)throw new Error("未找到 bodyFormMulti 模版");n=t.bodyForMulti;}const s=document.createElement("div");let i="";this.icon&&this.showIcon&&(this.icon.match(/^(http|https|data:image)/)?i=``:this.icon.match(/^data-text:/)?i=`${this.icon.replace(/^data-text:/,"")}`:i=``),s.innerHTML=n.replace(/{key}/g,this.key).replace(/{label}/g,this.label).replace(/{icon}/g,i);const o=s.firstElementChild;if(o.setAttribute("title",this.title||""),this.onClick&&(o.addEventListener("click",async r=>{this.onClick&&this.onClick(this,r);}),o.addEventListener("mousedown",r=>{r.stopPropagation();})),this.onMouseOver&&o.addEventListener("mouseover",async r=>{this.onMouseOver&&this.onMouseOver(this,r);}),this.onMouseOut&&o.addEventListener("mouseout",async r=>{this.onMouseOut&&this.onMouseOut(this,r);}),this.subItems&&this.subItems.length>0){const r=o.querySelector(".sub-items"),a=[];for(const l of this.subItems){const c=await l.render();a.push(c);}r==null||r.append(...a);}return o}async closeMenu(){try{unsafeWindow.Core.FileMenu.HideRight();}catch(t){console.warn('[MenuItem.closeMenu] Failed to call "unsafeWindow.Core.FileMenu.HideRight()"',t);}document.dispatchEvent(new CustomEvent(Rr.EVENT_CLOSE_MENU,{detail:{menu:this}}));}async decorateContainer(t){t.setAttribute("ce-done","");}};ve(Rr,"EVENT_CLOSE_MENU","__closeMenu");let cn=Rr;async function Ur(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,s=$(n).closest(".ce-menu-parent"),i=s.find(".ce-menu-dropdown");s.addClass("ce-menu-dropdown-opened"),i.addClass("ce-menu-dropdown-active");}async function jr(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,s=$(n).closest(".ce-menu-parent"),i=s.find(".ce-menu-dropdown");s.removeClass("ce-menu-dropdown-opened"),i.removeClass("ce-menu-dropdown-active");}class ib extends cn{constructor(){super(...arguments);ve(this,"isDivider",!0);}}class Ei{constructor(t){ve(this,"items",[]);ve(this,"siblingSelector","");ve(this,"position",Xn.after);ve(this,"useObserver",!0);ve(this,"observeTarget",document.body);ve(this,"disposeObserverAfterInjection",!0);ve(this,"menuType");ve(this,"_observer");ve(this,"injectDecider");Object.assign(this,t),this.handleMessage();}async createObserver(){return new MutationObserver(async([n])=>{n.type==="childList"&&await this.handleChildListMutation(n);})}handleMessage(){window.addEventListener("message",async t=>{const{event:n,body:s={}}=t.data;if(n===gt.renderMenus&&s.type===this.menuType){const i=[];document.querySelectorAll("#js_data_list .list-contents > ul > li .file-opr:not([ce-done])").forEach(o=>{i.push(o);}),i.length&&await this.perform(i);}},!1);}async observe(){if(this._observer=await this.createObserver(),!this._observer)return;const t=await this.getObserveTarget();t&&this.startObserver(t);}async startObserver(t){this._observer&&this._observer.observe(t,{childList:!0});}async disposeObserver(){this.disposeObserverAfterInjection&&this._observer&&this._observer.disconnect();}async getObserveTarget(){return typeof this.observeTarget=="string"?await lt(this.observeTarget,800,864e5*7):this.observeTarget}async isMutationMatch(t){const n=t.addedNodes[0];if(n&&n.nodeType!==Node.ELEMENT_NODE)return !1;switch(this.menuType,ze.dirContext,this.menuType){case ze.listItemHover:case ze.shareListItemHover:return !0;case ze.listItemContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="report"]');case ze.selection:return !0;case ze.dirContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="upload"]');default:return !1}}async handleChildListMutation(t){if(!await this.isMutationMatch(t))return;const n=await this.getContainersByMutation(t);await this.perform(n);}async perform(t){for(const n of t)await this.injectToContainer(n);}async getSibling(t){return t.querySelector(this.siblingSelector)}async getContainersByMutation(t){const n=t.addedNodes[0];return await this.getContainersByElement(n)}async getContainersByElement(t){let n=[];switch(this.menuType){case ze.listItemHover:document.querySelectorAll("#js_data_list .list-contents > ul:not([ce-done]) > li .file-opr").forEach(s=>{n.push(s);});break;case ze.shareListItemHover:document.querySelectorAll("ul#js-list:not([ce-done]) > li .file-opr").forEach(s=>{n.push(s);});break;case ze.listItemContext:n=[t];break;case ze.selection:document.querySelectorAll("#js_top_panel_box #js_operate_box").forEach(s=>{n.push(s);});break;case ze.dirContext:n=[t];break}return n}async shouldInjectMenuItem(t,n){return await n.decideInject(t)?await this.decideInject(n,t):!1}async decideInject(t,n){return this.injectDecider?await this.injectDecider(t,n):!0}async injectToContainer(t){const n=await this.getSibling(t);if(!n)return;let s=this.items.slice();this.position===Xn.after&&(s=s.reverse());for(let i=0;i{c.stopPropagation(),c.preventDefault(),clearTimeout(s);const u=c.target,p=$(u).closest(".ce-menu-parent"),m=p.find(".ce-menu-dropdown");p.addClass("ce-menu-dropdown-opened"),m.addClass("ce-menu-dropdown-active"),l.subItems&&l.subItemsLocator&&l.subItemsLocator(l,c);},o=(l,c)=>{c.stopPropagation(),c.preventDefault();const u=c.target;s=setTimeout(()=>{const p=$(u).closest(".ce-menu-parent"),m=p.find(".ce-menu-dropdown");p.removeClass("ce-menu-dropdown-opened"),m.removeClass("ce-menu-dropdown-active");},350);},r=(l,c)=>{const u=c.target;if(u.classList.contains("ce-menu-dropdown"))return;const p=$(u).closest(".ce-menu-parent"),m=p.find(".ce-menu-dropdown"),v=p[0].getBoundingClientRect();m.css({position:"fixed",left:v.right,top:v.top});};(a=this.subItems)!=null&&a.length&&(this.onMouseOver=i,this.onMouseOut=o,this.subItemsLocator=r);}}class pb extends Ei{constructor(){super(...arguments);ve(this,"menuType",ze.listItemContext);}}var en=(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))(en||{});const hb={[-1]:"失败",0:"违规",1:"下载中",2:"成功"};var Xt=(e=>(e.all="all",e.failed="failed",e.success="success",e.magnet="magnet",e.magnetEd2k="magnetEd2k",e))(Xt||{}),Yl=(e=>(e[e.true=1]="true",e[e.false=0]="false",e))(Yl||{}),vn=(e=>(e[e.all=0]="all",e[e.video=4]="video",e[e.audio=3]="audio",e[e.image=2]="image",e[e.doc=1]="doc",e[e.app=6]="app",e[e.archive=5]="archive",e[e.file=99]="file",e))(vn||{}),Zt=(e=>(e.all="全部",e.video="视频",e.audio="音频",e.image="图片",e.doc="文档",e.app="应用",e.archive="压缩包",e.file="仅文件",e))(Zt||{}),Tf=(e=>(e.userPtime="user_ptime",e.fileName="file_name",e.fileSize="file_size",e.fileType="file_type",e))(Tf||{});function mb(e){return {offset:0,limit:1150,aid:1,cid:"",format:"json",o:"user_ptime",asc:0,search_value:"",...e}}function Bs(e){return {aid:1,cid:"",o:"user_ptime",asc:0,offset:0,show_dir:1,limit:115,natsort:0,format:"json",...e}}var sl=(e=>(e[e.normal=0]="normal",e[e.violation=1]="violation",e[e.auditing=2]="auditing",e))(sl||{});class Of extends Error{}class Ql extends Of{constructor(t="搜索失败!"){super(t);}}class Df extends Ql{constructor(t="搜索请求响应内容为空!"){super(t);}}class Xl extends Of{constructor(t="目录不存在!"){super(t);}}var Mf=(e=>(e[e.exist=20004]="exist",e))(Mf||{});const gb={10013:"超出任务大小限制",10018:"审核中...",10016:"文件内含违规内容"};class kt{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=kt.hexChars,s=kt.hexOut;let i,o,r,a;for(a=0;a<4;a+=1)for(o=a*8,i=t[a],r=0;r<8;r+=2)s[o+1+r]=n.charAt(i&15),i>>>=4,s[o+0+r]=n.charAt(i&15),i>>>=4;return s.join("")}static _md5cycle(t,n){let s=t[0],i=t[1],o=t[2],r=t[3];s+=(i&o|~i&r)+n[0]-680876936|0,s=(s<<7|s>>>25)+i|0,r+=(s&i|~s&o)+n[1]-389564586|0,r=(r<<12|r>>>20)+s|0,o+=(r&s|~r&i)+n[2]+606105819|0,o=(o<<17|o>>>15)+r|0,i+=(o&r|~o&s)+n[3]-1044525330|0,i=(i<<22|i>>>10)+o|0,s+=(i&o|~i&r)+n[4]-176418897|0,s=(s<<7|s>>>25)+i|0,r+=(s&i|~s&o)+n[5]+1200080426|0,r=(r<<12|r>>>20)+s|0,o+=(r&s|~r&i)+n[6]-1473231341|0,o=(o<<17|o>>>15)+r|0,i+=(o&r|~o&s)+n[7]-45705983|0,i=(i<<22|i>>>10)+o|0,s+=(i&o|~i&r)+n[8]+1770035416|0,s=(s<<7|s>>>25)+i|0,r+=(s&i|~s&o)+n[9]-1958414417|0,r=(r<<12|r>>>20)+s|0,o+=(r&s|~r&i)+n[10]-42063|0,o=(o<<17|o>>>15)+r|0,i+=(o&r|~o&s)+n[11]-1990404162|0,i=(i<<22|i>>>10)+o|0,s+=(i&o|~i&r)+n[12]+1804603682|0,s=(s<<7|s>>>25)+i|0,r+=(s&i|~s&o)+n[13]-40341101|0,r=(r<<12|r>>>20)+s|0,o+=(r&s|~r&i)+n[14]-1502002290|0,o=(o<<17|o>>>15)+r|0,i+=(o&r|~o&s)+n[15]+1236535329|0,i=(i<<22|i>>>10)+o|0,s+=(i&r|o&~r)+n[1]-165796510|0,s=(s<<5|s>>>27)+i|0,r+=(s&o|i&~o)+n[6]-1069501632|0,r=(r<<9|r>>>23)+s|0,o+=(r&i|s&~i)+n[11]+643717713|0,o=(o<<14|o>>>18)+r|0,i+=(o&s|r&~s)+n[0]-373897302|0,i=(i<<20|i>>>12)+o|0,s+=(i&r|o&~r)+n[5]-701558691|0,s=(s<<5|s>>>27)+i|0,r+=(s&o|i&~o)+n[10]+38016083|0,r=(r<<9|r>>>23)+s|0,o+=(r&i|s&~i)+n[15]-660478335|0,o=(o<<14|o>>>18)+r|0,i+=(o&s|r&~s)+n[4]-405537848|0,i=(i<<20|i>>>12)+o|0,s+=(i&r|o&~r)+n[9]+568446438|0,s=(s<<5|s>>>27)+i|0,r+=(s&o|i&~o)+n[14]-1019803690|0,r=(r<<9|r>>>23)+s|0,o+=(r&i|s&~i)+n[3]-187363961|0,o=(o<<14|o>>>18)+r|0,i+=(o&s|r&~s)+n[8]+1163531501|0,i=(i<<20|i>>>12)+o|0,s+=(i&r|o&~r)+n[13]-1444681467|0,s=(s<<5|s>>>27)+i|0,r+=(s&o|i&~o)+n[2]-51403784|0,r=(r<<9|r>>>23)+s|0,o+=(r&i|s&~i)+n[7]+1735328473|0,o=(o<<14|o>>>18)+r|0,i+=(o&s|r&~s)+n[12]-1926607734|0,i=(i<<20|i>>>12)+o|0,s+=(i^o^r)+n[5]-378558|0,s=(s<<4|s>>>28)+i|0,r+=(s^i^o)+n[8]-2022574463|0,r=(r<<11|r>>>21)+s|0,o+=(r^s^i)+n[11]+1839030562|0,o=(o<<16|o>>>16)+r|0,i+=(o^r^s)+n[14]-35309556|0,i=(i<<23|i>>>9)+o|0,s+=(i^o^r)+n[1]-1530992060|0,s=(s<<4|s>>>28)+i|0,r+=(s^i^o)+n[4]+1272893353|0,r=(r<<11|r>>>21)+s|0,o+=(r^s^i)+n[7]-155497632|0,o=(o<<16|o>>>16)+r|0,i+=(o^r^s)+n[10]-1094730640|0,i=(i<<23|i>>>9)+o|0,s+=(i^o^r)+n[13]+681279174|0,s=(s<<4|s>>>28)+i|0,r+=(s^i^o)+n[0]-358537222|0,r=(r<<11|r>>>21)+s|0,o+=(r^s^i)+n[3]-722521979|0,o=(o<<16|o>>>16)+r|0,i+=(o^r^s)+n[6]+76029189|0,i=(i<<23|i>>>9)+o|0,s+=(i^o^r)+n[9]-640364487|0,s=(s<<4|s>>>28)+i|0,r+=(s^i^o)+n[12]-421815835|0,r=(r<<11|r>>>21)+s|0,o+=(r^s^i)+n[15]+530742520|0,o=(o<<16|o>>>16)+r|0,i+=(o^r^s)+n[2]-995338651|0,i=(i<<23|i>>>9)+o|0,s+=(o^(i|~r))+n[0]-198630844|0,s=(s<<6|s>>>26)+i|0,r+=(i^(s|~o))+n[7]+1126891415|0,r=(r<<10|r>>>22)+s|0,o+=(s^(r|~i))+n[14]-1416354905|0,o=(o<<15|o>>>17)+r|0,i+=(r^(o|~s))+n[5]-57434055|0,i=(i<<21|i>>>11)+o|0,s+=(o^(i|~r))+n[12]+1700485571|0,s=(s<<6|s>>>26)+i|0,r+=(i^(s|~o))+n[3]-1894986606|0,r=(r<<10|r>>>22)+s|0,o+=(s^(r|~i))+n[10]-1051523|0,o=(o<<15|o>>>17)+r|0,i+=(r^(o|~s))+n[1]-2054922799|0,i=(i<<21|i>>>11)+o|0,s+=(o^(i|~r))+n[8]+1873313359|0,s=(s<<6|s>>>26)+i|0,r+=(i^(s|~o))+n[15]-30611744|0,r=(r<<10|r>>>22)+s|0,o+=(s^(r|~i))+n[6]-1560198380|0,o=(o<<15|o>>>17)+r|0,i+=(r^(o|~s))+n[13]+1309151649|0,i=(i<<21|i>>>11)+o|0,s+=(o^(i|~r))+n[4]-145523070|0,s=(s<<6|s>>>26)+i|0,r+=(i^(s|~o))+n[11]-1120210379|0,r=(r<<10|r>>>22)+s|0,o+=(s^(r|~i))+n[2]+718787259|0,o=(o<<15|o>>>17)+r|0,i+=(r^(o|~s))+n[9]-343485551|0,i=(i<<21|i>>>11)+o|0,t[0]=s+t[0]|0,t[1]=i+t[1]|0,t[2]=o+t[2]|0,t[3]=r+t[3]|0;}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(kt.stateIdentity),this}appendStr(t){const n=this._buffer8,s=this._buffer32;let i=this._bufferLength,o,r;for(r=0;r>>6)+192,n[i++]=o&63|128;else if(o<55296||o>56319)n[i++]=(o>>>12)+224,n[i++]=o>>>6&63|128,n[i++]=o&63|128;else {if(o=(o-55296)*1024+(t.charCodeAt(++r)-56320)+65536,o>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");n[i++]=(o>>>18)+240,n[i++]=o>>>12&63|128,n[i++]=o>>>6&63|128,n[i++]=o&63|128;}i>=64&&(this._dataLength+=64,kt._md5cycle(this._state,s),i-=64,s[0]=s[16]);}return this._bufferLength=i,this}appendAsciiStr(t){const n=this._buffer8,s=this._buffer32;let i=this._bufferLength,o,r=0;for(;;){for(o=Math.min(t.length-r,64-i);o--;)n[i++]=t.charCodeAt(r++);if(i<64)break;this._dataLength+=64,kt._md5cycle(this._state,s),i=0;}return this._bufferLength=i,this}appendByteArray(t){const n=this._buffer8,s=this._buffer32;let i=this._bufferLength,o,r=0;for(;;){for(o=Math.min(t.length-r,64-i);o--;)n[i++]=t[r++];if(i<64)break;this._dataLength+=64,kt._md5cycle(this._state,s),i=0;}return this._bufferLength=i,this}getState(){const t=this._state;return {buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(t){const n=t.buffer,s=t.state,i=this._state;let o;for(this._dataLength=t.length,this._bufferLength=t.buflen,i[0]=s[0],i[1]=s[1],i[2]=s[2],i[3]=s[3],o=0;o>2)+1;this._dataLength+=n;const r=this._dataLength*8;if(s[n]=128,s[n+1]=s[n+2]=s[n+3]=0,i.set(kt.buffer32Identity.subarray(o),o),n>55&&(kt._md5cycle(this._state,i),i.set(kt.buffer32Identity)),r<=4294967295)i[14]=r;else {const a=r.toString(16).match(/(.*?)(.{0,8})$/);if(a===null)return;const l=parseInt(a[2],16),c=parseInt(a[1],16)||0;i[14]=l,i[15]=c;}return kt._md5cycle(this._state,i),t?this._state:kt._hex(this._state)}}kt.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]);kt.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);kt.hexChars="0123456789abcdef";kt.hexOut=[];kt.onePassHasher=new kt;if(kt.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");var ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lf={exports:{}};(function(e){var t=function(n){var s=1e7,i=7,o=9007199254740992,r=w(o),a="0123456789abcdefghijklmnopqrstuvwxyz",l=typeof BigInt=="function";function c(g,b,k,P){return typeof g>"u"?c[0]:typeof b<"u"?+b==10&&!k?Y(g):J(g,b,k,P):Y(g)}function u(g,b){this.value=g,this.sign=b,this.isSmall=!1;}u.prototype=Object.create(c.prototype);function p(g){this.value=g,this.sign=g<0,this.isSmall=!0;}p.prototype=Object.create(c.prototype);function m(g){this.value=g;}m.prototype=Object.create(c.prototype);function v(g){return -o0?Math.floor(g):Math.ceil(g)}function T(g,b){var k=g.length,P=b.length,V=new Array(k),A=0,te=s,X,fe;for(fe=0;fe=te?1:0,V[fe]=X-A*te;for(;fe0&&V.push(A),V}function M(g,b){return g.length>=b.length?T(g,b):T(b,g)}function U(g,b){var k=g.length,P=new Array(k),V=s,A,te;for(te=0;te0;)P[te++]=b%V,b=Math.floor(b/V);return P}u.prototype.add=function(g){var b=Y(g);if(this.sign!==b.sign)return this.subtract(b.negate());var k=this.value,P=b.value;return b.isSmall?new u(U(k,Math.abs(P)),this.sign):new u(M(k,P),this.sign)},u.prototype.plus=u.prototype.add,p.prototype.add=function(g){var b=Y(g),k=this.value;if(k<0!==b.sign)return this.subtract(b.negate());var P=b.value;if(b.isSmall){if(v(k+P))return new p(k+P);P=w(Math.abs(P));}return new u(U(P,Math.abs(k)),k<0)},p.prototype.plus=p.prototype.add,m.prototype.add=function(g){return new m(this.value+Y(g).value)},m.prototype.plus=m.prototype.add;function z(g,b){var k=g.length,P=b.length,V=new Array(k),A=0,te=s,X,fe;for(X=0;X=0?P=z(g,b):(P=z(b,g),k=!k),P=_(P),typeof P=="number"?(k&&(P=-P),new p(P)):new u(P,k)}function me(g,b,k){var P=g.length,V=new Array(P),A=-b,te=s,X,fe;for(X=0;X=0)},p.prototype.minus=p.prototype.subtract,m.prototype.subtract=function(g){return new m(this.value-Y(g).value)},m.prototype.minus=m.prototype.subtract,u.prototype.negate=function(){return new u(this.value,!this.sign)},p.prototype.negate=function(){var g=this.sign,b=new p(-this.value);return b.sign=!g,b},m.prototype.negate=function(){return new m(-this.value)},u.prototype.abs=function(){return new u(this.value,!1)},p.prototype.abs=function(){return new p(Math.abs(this.value))},m.prototype.abs=function(){return new m(this.value>=0?this.value:-this.value)};function we(g,b){var k=g.length,P=b.length,V=k+P,A=L(V),te=s,X,fe,Re,Be,Ee;for(Re=0;Re0;)P[X++]=A%V,A=Math.floor(A/V);return P}function H(g,b){for(var k=[];b-- >0;)k.push(0);return k.concat(g)}function F(g,b){var k=Math.max(g.length,b.length);if(k<=30)return we(g,b);k=Math.ceil(k/2);var P=g.slice(k),V=g.slice(0,k),A=b.slice(k),te=b.slice(0,k),X=F(V,te),fe=F(P,A),Re=F(M(V,P),M(te,A)),Be=M(M(X,H(z(z(Re,X),fe),k)),H(fe,2*k));return R(Be),Be}function ee(g,b){return -.012*g-.012*b+15e-6*g*b>0}u.prototype.multiply=function(g){var b=Y(g),k=this.value,P=b.value,V=this.sign!==b.sign,A;if(b.isSmall){if(P===0)return c[0];if(P===1)return this;if(P===-1)return this.negate();if(A=Math.abs(P),A=0;Ee--){for(Be=V-1,fe[Ee+P]!==te&&(Be=Math.floor((fe[Ee+P]*V+fe[Ee+P-1])/te)),We=0,Ht=0,Ro=Re.length,Nt=0;NtP&&(Re=(Re+1)*te),X=Math.ceil(Re/Be);do{if(Ee=ce(b,X),tt(Ee,A)<=0)break;X--;}while(X);V.push(X),A=z(A,Ee);}return V.reverse(),[_(V),_(A)]}function $e(g,b){var k=g.length,P=L(k),V=s,A,te,X,fe;for(X=0,A=k-1;A>=0;--A)fe=X*V+g[A],te=j(fe/b),X=fe-te*b,P[A]=te|0;return [P,X|0]}function He(g,b){var k,P=Y(b);if(l)return [new m(g.value/P.value),new m(g.value%P.value)];var V=g.value,A=P.value,te;if(A===0)throw new Error("Cannot divide by zero");if(g.isSmall)return P.isSmall?[new p(j(V/A)),new p(V%A)]:[c[0],g];if(P.isSmall){if(A===1)return [g,c[0]];if(A==-1)return [g.negate(),c[0]];var X=Math.abs(A);if(Xb.length?1:-1;for(var k=g.length-1;k>=0;k--)if(g[k]!==b[k])return g[k]>b[k]?1:-1;return 0}u.prototype.compareAbs=function(g){var b=Y(g),k=this.value,P=b.value;return b.isSmall?1:tt(k,P)},p.prototype.compareAbs=function(g){var b=Y(g),k=Math.abs(this.value),P=b.value;return b.isSmall?(P=Math.abs(P),k===P?0:k>P?1:-1):-1},m.prototype.compareAbs=function(g){var b=this.value,k=Y(g).value;return b=b>=0?b:-b,k=k>=0?k:-k,b===k?0:b>k?1:-1},u.prototype.compare=function(g){if(g===1/0)return -1;if(g===-1/0)return 1;var b=Y(g),k=this.value,P=b.value;return this.sign!==b.sign?b.sign?1:-1:b.isSmall?this.sign?-1:1:tt(k,P)*(this.sign?-1:1)},u.prototype.compareTo=u.prototype.compare,p.prototype.compare=function(g){if(g===1/0)return -1;if(g===-1/0)return 1;var b=Y(g),k=this.value,P=b.value;return b.isSmall?k==P?0:k>P?1:-1:k<0!==b.sign?k<0?-1:1:k<0?1:-1},p.prototype.compareTo=p.prototype.compare,m.prototype.compare=function(g){if(g===1/0)return -1;if(g===-1/0)return 1;var b=this.value,k=Y(g).value;return b===k?0:b>k?1:-1},m.prototype.compareTo=m.prototype.compare,u.prototype.equals=function(g){return this.compare(g)===0},m.prototype.eq=m.prototype.equals=p.prototype.eq=p.prototype.equals=u.prototype.eq=u.prototype.equals,u.prototype.notEquals=function(g){return this.compare(g)!==0},m.prototype.neq=m.prototype.notEquals=p.prototype.neq=p.prototype.notEquals=u.prototype.neq=u.prototype.notEquals,u.prototype.greater=function(g){return this.compare(g)>0},m.prototype.gt=m.prototype.greater=p.prototype.gt=p.prototype.greater=u.prototype.gt=u.prototype.greater,u.prototype.lesser=function(g){return this.compare(g)<0},m.prototype.lt=m.prototype.lesser=p.prototype.lt=p.prototype.lesser=u.prototype.lt=u.prototype.lesser,u.prototype.greaterOrEquals=function(g){return this.compare(g)>=0},m.prototype.geq=m.prototype.greaterOrEquals=p.prototype.geq=p.prototype.greaterOrEquals=u.prototype.geq=u.prototype.greaterOrEquals,u.prototype.lesserOrEquals=function(g){return this.compare(g)<=0},m.prototype.leq=m.prototype.lesserOrEquals=p.prototype.leq=p.prototype.lesserOrEquals=u.prototype.leq=u.prototype.lesserOrEquals,u.prototype.isEven=function(){return (this.value[0]&1)===0},p.prototype.isEven=function(){return (this.value&1)===0},m.prototype.isEven=function(){return (this.value&BigInt(1))===BigInt(0)},u.prototype.isOdd=function(){return (this.value[0]&1)===1},p.prototype.isOdd=function(){return (this.value&1)===1},m.prototype.isOdd=function(){return (this.value&BigInt(1))===BigInt(1)},u.prototype.isPositive=function(){return !this.sign},p.prototype.isPositive=function(){return this.value>0},m.prototype.isPositive=p.prototype.isPositive,u.prototype.isNegative=function(){return this.sign},p.prototype.isNegative=function(){return this.value<0},m.prototype.isNegative=p.prototype.isNegative,u.prototype.isUnit=function(){return !1},p.prototype.isUnit=function(){return Math.abs(this.value)===1},m.prototype.isUnit=function(){return this.abs().value===BigInt(1)},u.prototype.isZero=function(){return !1},p.prototype.isZero=function(){return this.value===0},m.prototype.isZero=function(){return this.value===BigInt(0)},u.prototype.isDivisibleBy=function(g){var b=Y(g);return b.isZero()?!1:b.isUnit()?!0:b.compareAbs(2)===0?this.isEven():this.mod(b).isZero()},m.prototype.isDivisibleBy=p.prototype.isDivisibleBy=u.prototype.isDivisibleBy;function xe(g){var b=g.abs();if(b.isUnit())return !1;if(b.equals(2)||b.equals(3)||b.equals(5))return !0;if(b.isEven()||b.isDivisibleBy(3)||b.isDivisibleBy(5))return !1;if(b.lesser(49))return !0}function O(g,b){for(var k=g.prev(),P=k,V=0,A,te,X;P.isEven();)P=P.divide(2),V++;e:for(te=0;te-o?new p(g-1):new u(r,!0)},m.prototype.prev=function(){return new m(this.value-BigInt(1))};for(var Ve=[1];2*Ve[Ve.length-1]<=s;)Ve.push(2*Ve[Ve.length-1]);var pt=Ve.length,Ae=Ve[pt-1];function ht(g){return Math.abs(g)<=s}u.prototype.shiftLeft=function(g){var b=Y(g).toJSNumber();if(!ht(b))throw new Error(String(b)+" is too large for shifting.");if(b<0)return this.shiftRight(-b);var k=this;if(k.isZero())return k;for(;b>=pt;)k=k.multiply(Ae),b-=pt-1;return k.multiply(Ve[b])},m.prototype.shiftLeft=p.prototype.shiftLeft=u.prototype.shiftLeft,u.prototype.shiftRight=function(g){var b,k=Y(g).toJSNumber();if(!ht(k))throw new Error(String(k)+" is too large for shifting.");if(k<0)return this.shiftLeft(-k);for(var P=this;k>=pt;){if(P.isZero()||P.isNegative()&&P.isUnit())return P;b=He(P,Ae),P=b[1].isNegative()?b[0].prev():b[0],k-=pt-1;}return b=He(P,Ve[k]),b[1].isNegative()?b[0].prev():b[0]},m.prototype.shiftRight=p.prototype.shiftRight=u.prototype.shiftRight;function vt(g,b,k){b=Y(b);for(var P=g.isNegative(),V=b.isNegative(),A=P?g.not():g,te=V?b.not():b,X=0,fe=0,Re=null,Be=null,Ee=[];!A.isZero()||!te.isZero();)Re=He(A,Ae),X=Re[1].toJSNumber(),P&&(X=Ae-1-X),Be=He(te,Ae),fe=Be[1].toJSNumber(),V&&(fe=Ae-1-fe),A=Re[0],te=Be[0],Ee.push(k(X,fe));for(var We=k(P?1:0,V?1:0)!==0?t(-1):t(0),Ht=Ee.length-1;Ht>=0;Ht-=1)We=We.multiply(Ae).add(t(Ee[Ht]));return We}u.prototype.not=function(){return this.negate().prev()},m.prototype.not=p.prototype.not=u.prototype.not,u.prototype.and=function(g){return vt(this,g,function(b,k){return b&k})},m.prototype.and=p.prototype.and=u.prototype.and,u.prototype.or=function(g){return vt(this,g,function(b,k){return b|k})},m.prototype.or=p.prototype.or=u.prototype.or,u.prototype.xor=function(g){return vt(this,g,function(b,k){return b^k})},m.prototype.xor=p.prototype.xor=u.prototype.xor;var Rt=1<<30,Ct=(s&-s)*(s&-s)|Rt;function Q(g){var b=g.value,k=typeof b=="number"?b|Rt:typeof b=="bigint"?b|BigInt(Rt):b[0]+b[1]*s|Ct;return k&-k}function D(g,b){if(b.compareTo(g)<=0){var k=D(g,b.square(b)),P=k.p,V=k.e,A=P.multiply(b);return A.compareTo(g)<=0?{p:A,e:V*2+1}:{p:P,e:V*2}}return {p:t(1),e:0}}u.prototype.bitLength=function(){var g=this;return g.compareTo(t(0))<0&&(g=g.negate().subtract(t(1))),g.compareTo(t(0))===0?t(0):t(D(g,t(2)).e).add(t(1))},m.prototype.bitLength=p.prototype.bitLength=u.prototype.bitLength;function W(g,b){return g=Y(g),b=Y(b),g.greater(b)?g:b}function x(g,b){return g=Y(g),b=Y(b),g.lesser(b)?g:b}function E(g,b){if(g=Y(g).abs(),b=Y(b).abs(),g.equals(b))return g;if(g.isZero())return b;if(b.isZero())return g;for(var k=c[1],P,V;g.isEven()&&b.isEven();)P=x(Q(g),Q(b)),g=g.divide(P),b=b.divide(P),k=k.multiply(P);for(;g.isEven();)g=g.divide(Q(g));do{for(;b.isEven();)b=b.divide(Q(b));g.greater(b)&&(V=b,b=g,g=V),b=b.subtract(g);}while(!b.isZero());return k.isUnit()?g:g.multiply(k)}function N(g,b){return g=Y(g).abs(),b=Y(b).abs(),g.divide(E(g,b)).multiply(b)}function q(g,b,k){g=Y(g),b=Y(b);var P=k||Math.random,V=x(g,b),A=W(g,b),te=A.subtract(V).add(1);if(te.isSmall)return V.add(Math.floor(P()*te));for(var X=le(te,s).value,fe=[],Re=!0,Be=0;Be=te){if(fe==="1"&&te===1)continue;throw new Error(fe+" is not a valid digit in base "+b+".")}}b=Y(b);var Re=[],Be=g[0]==="-";for(A=Be?1:0;A"&&A=0;A--)P=P.add(g[A].times(V)),V=V.times(b);return k?P.negate():P}function ye(g,b){return b=b||a,g"}function le(g,b){if(b=t(b),b.isZero()){if(g.isZero())return {value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(b.equals(-1)){if(g.isZero())return {value:[0],isNegative:!1};if(g.isNegative())return {value:[].concat.apply([],Array.apply(null,Array(-g.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var k=Array.apply(null,Array(g.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return k.unshift([1]),{value:[].concat.apply([],k),isNegative:!1}}var P=!1;if(g.isNegative()&&b.isPositive()&&(P=!0,g=g.abs()),b.isUnit())return g.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(g.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:P};for(var V=[],A=g,te;A.isNegative()||A.compareAbs(b)>=0;){te=A.divmod(b),A=te.quotient;var X=te.remainder;X.isNegative()&&(X=b.minus(X).abs(),A=A.next()),V.push(X.toJSNumber());}return V.push(A.toJSNumber()),{value:V.reverse(),isNegative:P}}function pe(g,b,k){var P=le(g,b);return (P.isNegative?"-":"")+P.value.map(function(V){return ye(V,k)}).join("")}u.prototype.toArray=function(g){return le(this,g)},p.prototype.toArray=function(g){return le(this,g)},m.prototype.toArray=function(g){return le(this,g)},u.prototype.toString=function(g,b){if(g===n&&(g=10),g!==10)return pe(this,g,b);for(var k=this.value,P=k.length,V=String(k[--P]),A="0000000",te;--P>=0;)te=String(k[P]),V+=A.slice(te.length)+te;var X=this.sign?"-":"";return X+V},p.prototype.toString=function(g,b){return g===n&&(g=10),g!=10?pe(this,g,b):String(this.value)},m.prototype.toString=p.prototype.toString,m.prototype.toJSON=u.prototype.toJSON=p.prototype.toJSON=function(){return this.toString()},u.prototype.valueOf=function(){return parseInt(this.toString(),10)},u.prototype.toJSNumber=u.prototype.valueOf,p.prototype.valueOf=function(){return this.value},p.prototype.toJSNumber=p.prototype.valueOf,m.prototype.valueOf=m.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function he(g){if(v(+g)){var b=+g;if(b===j(b))return l?new m(BigInt(b)):new p(b);throw new Error("Invalid integer: "+g)}var k=g[0]==="-";k&&(g=g.slice(1));var P=g.split(/e/i);if(P.length>2)throw new Error("Invalid integer: "+P.join("e"));if(P.length===2){var V=P[1];if(V[0]==="+"&&(V=V.slice(1)),V=+V,V!==j(V)||!v(V))throw new Error("Invalid integer: "+V+" is not a valid exponent.");var A=P[0],te=A.indexOf(".");if(te>=0&&(V-=A.length-te-1,A=A.slice(0,te)+A.slice(te+1)),V<0)throw new Error("Cannot include negative exponent part for integers");A+=new Array(V+1).join("0"),g=A;}var X=/^([0-9][0-9]*)$/.test(g);if(!X)throw new Error("Invalid integer: "+g);if(l)return new m(BigInt(k?"-"+g:g));for(var fe=[],Re=g.length,Be=i,Ee=Re-Be;Re>0;)fe.push(+g.slice(Ee,Re)),Ee-=Be,Ee<0&&(Ee=0),Re-=Be;return R(fe),new u(fe,k)}function Ie(g){if(l)return new m(BigInt(g));if(v(g)){if(g!==j(g))throw new Error(g+" is not an integer.");return new p(g)}return he(g.toString())}function Y(g){return typeof g=="number"?Ie(g):typeof g=="string"?he(g):typeof g=="bigint"?new m(g):g}for(var ke=0;ke<1e3;ke++)c[ke]=Y(ke),ke>0&&(c[-ke]=Y(-ke));return c.one=c[1],c.zero=c[0],c.minusOne=c[-1],c.max=W,c.min=x,c.gcd=E,c.lcm=N,c.isInstance=function(g){return g instanceof u||g instanceof p||g instanceof m},c.randBetween=q,c.fromArray=function(g,b,k){return ie(g.map(Y),Y(b||10),k)},c}();e.hasOwnProperty("exports")&&(e.exports=t);})(Lf);var yb=Lf.exports;const qi=Zl(yb);class wb{constructor(){ve(this,"n");ve(this,"e");this.n=qi("8686980c0f5a24c4b9d43020cd2c22703ff3f450756529058b1cf88f09b8602136477198a6e2683149659bd122c33592fdb5ad47944ad1ea4d36c6b172aad6338c3bb6ac6227502d010993ac967d1aef00f0c8e038de2e4d3bc2ec368af2e9f10a6f1eda4f7262f136420c07c331b871bf139f74f3010e3c4fe57df3afb71683",16),this.e=qi("10001",16);}a2hex(t){let n="",s;for(let i=0;i=0&&n>0;)s[--n]=t.charCodeAt(i--);for(s[--n]=0;n>2;)s[--n]=255;s[--n]=2,s[--n]=0;let o=this.a2hex(s);return qi(o,16)}pkcs1unpad2(t){let n=t.toString(16);n.length%2!==0&&(n="0"+n);let s=this.hex2a(n),i=1;for(;s.charCodeAt(i)!==0;)i++;return s.slice(i+1)}encrypt(t){let n=this.pkcs1pad2(t,128),s=n==null?void 0:n.modPow(this.e,this.n),i=(s==null?void 0:s.toString(16))||"";for(;i.length<128*2;)i="0"+i;return i}decrypt(t){const n=[];let s=0;for(;s=0?rc;o=c>=0?++r:--r)m.push(t[o]^s[o%i]);for(o=a=u=l,p=n;u<=p?ap;o=u<=p?++a:--a)m.push(t[o]^s[(o-l)%i]);return m}getkey(t,n){let s;return n!=null?(()=>{let i,o,r;for(r=[],s=i=0,o=t;o>=0?io;s=o>=0?++i:--i)r.push(n[s]+this.kts[t*s]&255^this.kts[t*(t-1-s)]);return r})():t===12?this.keyL.slice(0):this.keyS.slice(0)}asymEncode(t,n){let s,i,o,r,a;for(o=117,a="",s=i=0,r=Math.floor((n+o-1)/o);r>=0?ir;s=r>=0?++i:--i)a+=this.rsa.encrypt(this.bytesToString(t.slice(s*o,Math.min((s+1)*o,n))));return window.btoa(this.rsa.hex2a(a))}asymDecode(t,n){let s,i,o,r,a;for(o=128,a="",s=i=0,r=Math.floor((n+o-1)/o);r>=0?ir;s=r>=0?++i:--i)a+=this.rsa.decrypt(this.bytesToString(t.slice(s*o,Math.min((s+1)*o,n))));return this.stringToBytes(a)}symEncode(t,n,s,i){let o,r,a;return o=this.getkey(4,s),r=this.getkey(12,i),a=this.xor115Enc(t,n,o,4),a.reverse(),a=this.xor115Enc(a,n,r,12),a}symDecode(t,n,s,i){let o,r,a;return o=this.getkey(4,s),r=this.getkey(12,i),a=this.xor115Enc(t,n,r,12),a.reverse(),a=this.xor115Enc(a,n,o,4),a}bytesToString(t){let n,s,i,o;for(o="",s=0,i=t.length;s{const h={};for(const y in f)h[f[y]]=s+f[y];return h},o=i(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),r=i(["success","warning","info","question","error"]),a="SweetAlert2:",l=f=>{const h=[];for(let y=0;yf.charAt(0).toUpperCase()+f.slice(1),u=f=>{console.warn(`${a} ${typeof f=="object"?f.join(" "):f}`);},p=f=>{console.error(`${a} ${f}`);},m=[],v=f=>{m.includes(f)||(m.push(f),u(f));},w=(f,h)=>{v(`"${f}" is deprecated and will be removed in the next major release. Please use "${h}" instead.`);},_=f=>typeof f=="function"?f():f,R=f=>f&&typeof f.toPromise=="function",L=f=>R(f)?f.toPromise():Promise.resolve(f),j=f=>f&&Promise.resolve(f)===f,T=()=>document.body.querySelector(`.${o.container}`),M=f=>{const h=T();return h?h.querySelector(f):null},U=f=>M(`.${f}`),z=()=>U(o.popup),G=()=>U(o.icon),me=()=>U(o["icon-content"]),we=()=>U(o.title),ce=()=>U(o["html-container"]),H=()=>U(o.image),F=()=>U(o["progress-steps"]),ee=()=>U(o["validation-message"]),de=()=>M(`.${o.actions} .${o.confirm}`),_e=()=>M(`.${o.actions} .${o.cancel}`),Se=()=>M(`.${o.actions} .${o.deny}`),Pe=()=>U(o["input-label"]),$e=()=>M(`.${o.loader}`),He=()=>U(o.actions),tt=()=>U(o.footer),xe=()=>U(o["timer-progress-bar"]),O=()=>U(o.close),Ve=` a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls], summary `,pt=()=>{const f=Array.from(z().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((y,C)=>{const Z=parseInt(y.getAttribute("tabindex")),Oe=parseInt(C.getAttribute("tabindex"));return Z>Oe?1:Zy.getAttribute("tabindex")!=="-1");return l(f.concat(h)).filter(y=>Y(y))},Ae=()=>Q(document.body,o.shown)&&!Q(document.body,o["toast-shown"])&&!Q(document.body,o["no-backdrop"]),ht=()=>z()&&Q(z(),o.toast),vt=()=>z().hasAttribute("data-loading"),Rt={previousBodyPadding:null},Ct=(f,h)=>{if(f.textContent="",h){const C=new DOMParser().parseFromString(h,"text/html");Array.from(C.querySelector("head").childNodes).forEach(Z=>{f.appendChild(Z);}),Array.from(C.querySelector("body").childNodes).forEach(Z=>{Z instanceof HTMLVideoElement||Z instanceof HTMLAudioElement?f.appendChild(Z.cloneNode(!0)):f.appendChild(Z);});}},Q=(f,h)=>{if(!h)return !1;const y=h.split(/\s+/);for(let C=0;C{Array.from(f.classList).forEach(y=>{!Object.values(o).includes(y)&&!Object.values(r).includes(y)&&!Object.values(h.showClass).includes(y)&&f.classList.remove(y);});},W=(f,h,y)=>{if(D(f,h),h.customClass&&h.customClass[y]){if(typeof h.customClass[y]!="string"&&!h.customClass[y].forEach){u(`Invalid type of customClass.${y}! Expected string or iterable object, got "${typeof h.customClass[y]}"`);return}q(f,h.customClass[y]);}},x=(f,h)=>{if(!h)return null;switch(h){case"select":case"textarea":case"file":return f.querySelector(`.${o.popup} > .${o[h]}`);case"checkbox":return f.querySelector(`.${o.popup} > .${o.checkbox} input`);case"radio":return f.querySelector(`.${o.popup} > .${o.radio} input:checked`)||f.querySelector(`.${o.popup} > .${o.radio} input:first-child`);case"range":return f.querySelector(`.${o.popup} > .${o.range} input`);default:return f.querySelector(`.${o.popup} > .${o.input}`)}},E=f=>{if(f.focus(),f.type!=="file"){const h=f.value;f.value="",f.value=h;}},N=(f,h,y)=>{!f||!h||(typeof h=="string"&&(h=h.split(/\s+/).filter(Boolean)),h.forEach(C=>{Array.isArray(f)?f.forEach(Z=>{y?Z.classList.add(C):Z.classList.remove(C);}):y?f.classList.add(C):f.classList.remove(C);}));},q=(f,h)=>{N(f,h,!0);},J=(f,h)=>{N(f,h,!1);},ie=(f,h)=>{const y=Array.from(f.children);for(let C=0;C{y===`${parseInt(y)}`&&(y=parseInt(y)),y||parseInt(y)===0?f.style[h]=typeof y=="number"?`${y}px`:y:f.style.removeProperty(h);},le=function(f){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";f.style.display=h;},pe=f=>{f.style.display="none";},he=(f,h,y,C)=>{const Z=f.querySelector(h);Z&&(Z.style[y]=C);},Ie=function(f,h){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";h?le(f,y):pe(f);},Y=f=>!!(f&&(f.offsetWidth||f.offsetHeight||f.getClientRects().length)),ke=()=>!Y(de())&&!Y(Se())&&!Y(_e()),g=f=>f.scrollHeight>f.clientHeight,b=f=>{const h=window.getComputedStyle(f),y=parseFloat(h.getPropertyValue("animation-duration")||"0"),C=parseFloat(h.getPropertyValue("transition-duration")||"0");return y>0||C>0},k=function(f){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const y=xe();Y(y)&&(h&&(y.style.transition="none",y.style.width="100%"),setTimeout(()=>{y.style.transition=`width ${f/1e3}s linear`,y.style.width="0%";},10));},P=()=>{const f=xe(),h=parseInt(window.getComputedStyle(f).width);f.style.removeProperty("transition"),f.style.width="100%";const y=parseInt(window.getComputedStyle(f).width),C=h/y*100;f.style.width=`${C}%`;},V=100,A={},te=()=>{A.previousActiveElement instanceof HTMLElement?(A.previousActiveElement.focus(),A.previousActiveElement=null):document.body&&document.body.focus();},X=f=>new Promise(h=>{if(!f)return h();const y=window.scrollX,C=window.scrollY;A.restoreFocusTimeout=setTimeout(()=>{te(),h();},V),window.scrollTo(y,C);}),fe=()=>typeof window>"u"||typeof document>"u",Re=`

      `.replace(/(^|\n)\s*/g,""),Be=()=>{const f=T();return f?(f.remove(),J([document.documentElement,document.body],[o["no-backdrop"],o["toast-shown"],o["has-column"]]),!0):!1},Ee=()=>{A.currentInstance.resetValidationMessage();},We=()=>{const f=z(),h=ie(f,o.input),y=ie(f,o.file),C=f.querySelector(`.${o.range} input`),Z=f.querySelector(`.${o.range} output`),Oe=ie(f,o.select),ct=f.querySelector(`.${o.checkbox} input`),rn=ie(f,o.textarea);h.oninput=Ee,y.onchange=Ee,Oe.onchange=Ee,ct.onchange=Ee,rn.oninput=Ee,C.oninput=()=>{Ee(),Z.value=C.value;},C.onchange=()=>{Ee(),Z.value=C.value;};},Ht=f=>typeof f=="string"?document.querySelector(f):f,Nt=f=>{const h=z();h.setAttribute("role",f.toast?"alert":"dialog"),h.setAttribute("aria-live",f.toast?"polite":"assertive"),f.toast||h.setAttribute("aria-modal","true");},Ro=f=>{window.getComputedStyle(f).direction==="rtl"&&q(T(),o.rtl);},No=f=>{const h=Be();if(fe()){p("SweetAlert2 requires document to initialize");return}const y=document.createElement("div");y.className=o.container,h&&q(y,o["no-transition"]),Ct(y,Re);const C=Ht(f.target);C.appendChild(y),Nt(f),Ro(C),We();},va=(f,h)=>{f instanceof HTMLElement?h.appendChild(f):typeof f=="object"?mg(f,h):f&&Ct(h,f);},mg=(f,h)=>{f.jquery?gg(h,f):Ct(h,f.toString());},gg=(f,h)=>{if(f.textContent="",0 in h)for(let y=0;y in h;y++)f.appendChild(h[y].cloneNode(!0));else f.appendChild(h.cloneNode(!0));},Fo=(()=>{if(fe())return !1;const f=document.createElement("div"),h={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const y in h)if(Object.prototype.hasOwnProperty.call(h,y)&&typeof f.style[y]<"u")return h[y];return !1})(),yg=()=>{const f=document.createElement("div");f.className=o["scrollbar-measure"],document.body.appendChild(f);const h=f.getBoundingClientRect().width-f.clientWidth;return document.body.removeChild(f),h},wg=(f,h)=>{const y=He(),C=$e();!h.showConfirmButton&&!h.showDenyButton&&!h.showCancelButton?pe(y):le(y),W(y,h,"actions"),bg(y,C,h),Ct(C,h.loaderHtml),W(C,h,"loader");};function bg(f,h,y){const C=de(),Z=Se(),Oe=_e();_a(C,"confirm",y),_a(Z,"deny",y),_a(Oe,"cancel",y),vg(C,Z,Oe,y),y.reverseButtons&&(y.toast?(f.insertBefore(Oe,C),f.insertBefore(Z,C)):(f.insertBefore(Oe,h),f.insertBefore(Z,h),f.insertBefore(C,h)));}function vg(f,h,y,C){if(!C.buttonsStyling){J([f,h,y],o.styled);return}q([f,h,y],o.styled),C.confirmButtonColor&&(f.style.backgroundColor=C.confirmButtonColor,q(f,o["default-outline"])),C.denyButtonColor&&(h.style.backgroundColor=C.denyButtonColor,q(h,o["default-outline"])),C.cancelButtonColor&&(y.style.backgroundColor=C.cancelButtonColor,q(y,o["default-outline"]));}function _a(f,h,y){Ie(f,y[`show${c(h)}Button`],"inline-block"),Ct(f,y[`${h}ButtonText`]),f.setAttribute("aria-label",y[`${h}ButtonAriaLabel`]),f.className=o[h],W(f,y,`${h}Button`),q(f,y[`${h}ButtonClass`]);}const _g=(f,h)=>{const y=O();Ct(y,h.closeButtonHtml),W(y,h,"closeButton"),Ie(y,h.showCloseButton),y.setAttribute("aria-label",h.closeButtonAriaLabel);},xg=(f,h)=>{const y=T();y&&(Cg(y,h.backdrop),kg(y,h.position),Sg(y,h.grow),W(y,h,"container"));};function Cg(f,h){typeof h=="string"?f.style.background=h:h||q([document.documentElement,document.body],o["no-backdrop"]);}function kg(f,h){h in o?q(f,o[h]):(u('The "position" parameter is not valid, defaulting to "center"'),q(f,o.center));}function Sg(f,h){if(h&&typeof h=="string"){const y=`grow-${h}`;y in o&&q(f,o[y]);}}const $g=["input","file","range","select","radio","checkbox","textarea"],Eg=(f,h)=>{const y=z(),C=n.innerParams.get(f),Z=!C||h.input!==C.input;$g.forEach(Oe=>{const ct=ie(y,o[Oe]);Ig(Oe,h.inputAttributes),ct.className=o[Oe],Z&&pe(ct);}),h.input&&(Z&&Pg(h),Tg(h));},Pg=f=>{if(!Qt[f.input]){p(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${f.input}"`);return}const h=Zu(f.input),y=Qt[f.input](h,f);le(h),f.inputAutoFocus&&setTimeout(()=>{E(y);});},Ag=f=>{for(let h=0;h{const y=x(z(),f);if(y){Ag(y);for(const C in h)y.setAttribute(C,h[C]);}},Tg=f=>{const h=Zu(f.input);typeof f.customClass=="object"&&q(h,f.customClass.input);},xa=(f,h)=>{(!f.placeholder||h.inputPlaceholder)&&(f.placeholder=h.inputPlaceholder);},Uo=(f,h,y)=>{if(y.inputLabel){f.id=o.input;const C=document.createElement("label"),Z=o["input-label"];C.setAttribute("for",f.id),C.className=Z,typeof y.customClass=="object"&&q(C,y.customClass.inputLabel),C.innerText=y.inputLabel,h.insertAdjacentElement("beforebegin",C);}},Zu=f=>ie(z(),o[f]||o.input),ji=(f,h)=>{["string","number"].includes(typeof h)?f.value=`${h}`:j(h)||u(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof h}"`);},Qt={};Qt.text=Qt.email=Qt.password=Qt.number=Qt.tel=Qt.url=(f,h)=>(ji(f,h.inputValue),Uo(f,f,h),xa(f,h),f.type=h.input,f),Qt.file=(f,h)=>(Uo(f,f,h),xa(f,h),f),Qt.range=(f,h)=>{const y=f.querySelector("input"),C=f.querySelector("output");return ji(y,h.inputValue),y.type=h.input,ji(C,h.inputValue),Uo(y,f,h),f},Qt.select=(f,h)=>{if(f.textContent="",h.inputPlaceholder){const y=document.createElement("option");Ct(y,h.inputPlaceholder),y.value="",y.disabled=!0,y.selected=!0,f.appendChild(y);}return Uo(f,f,h),f},Qt.radio=f=>(f.textContent="",f),Qt.checkbox=(f,h)=>{const y=x(z(),"checkbox");y.value="1",y.id=o.checkbox,y.checked=!!h.inputValue;const C=f.querySelector("span");return Ct(C,h.inputPlaceholder),y},Qt.textarea=(f,h)=>{ji(f,h.inputValue),xa(f,h),Uo(f,f,h);const y=C=>parseInt(window.getComputedStyle(C).marginLeft)+parseInt(window.getComputedStyle(C).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const C=parseInt(window.getComputedStyle(z()).width),Z=()=>{const Oe=f.offsetWidth+y(f);Oe>C?z().style.width=`${Oe}px`:z().style.width=null;};new MutationObserver(Z).observe(f,{attributes:!0,attributeFilter:["style"]});}}),f};const Og=(f,h)=>{const y=ce();W(y,h,"htmlContainer"),h.html?(va(h.html,y),le(y,"block")):h.text?(y.textContent=h.text,le(y,"block")):pe(y),Eg(f,h);},Dg=(f,h)=>{const y=tt();Ie(y,h.footer),h.footer&&va(h.footer,y),W(y,h,"footer");},Mg=(f,h)=>{const y=n.innerParams.get(f),C=G();if(y&&h.icon===y.icon){tc(C,h),ec(C,h);return}if(!h.icon&&!h.iconHtml){pe(C);return}if(h.icon&&Object.keys(r).indexOf(h.icon)===-1){p(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${h.icon}"`),pe(C);return}le(C),tc(C,h),ec(C,h),q(C,h.showClass.icon);},ec=(f,h)=>{for(const y in r)h.icon!==y&&J(f,r[y]);q(f,r[h.icon]),Ng(f,h),Lg(),W(f,h,"icon");},Lg=()=>{const f=z(),h=window.getComputedStyle(f).getPropertyValue("background-color"),y=f.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let C=0;C
      `,Rg=` `,tc=(f,h)=>{let y=f.innerHTML,C;h.iconHtml?C=nc(h.iconHtml):h.icon==="success"?(C=Bg,y=y.replace(/ style=".*?"/g,"")):h.icon==="error"?C=Rg:C=nc({question:"?",warning:"!",info:"i"}[h.icon]),y.trim()!==C.trim()&&Ct(f,C);},Ng=(f,h)=>{if(h.iconColor){f.style.color=h.iconColor,f.style.borderColor=h.iconColor;for(const y of [".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])he(f,y,"backgroundColor",h.iconColor);he(f,".swal2-success-ring","borderColor",h.iconColor);}},nc=f=>`
      ${f}
      `,Fg=(f,h)=>{const y=H();if(!h.imageUrl){pe(y);return}le(y,""),y.setAttribute("src",h.imageUrl),y.setAttribute("alt",h.imageAlt),ye(y,"width",h.imageWidth),ye(y,"height",h.imageHeight),y.className=o.image,W(y,h,"image");},Ug=(f,h)=>{const y=T(),C=z();h.toast?(ye(y,"width",h.width),C.style.width="100%",C.insertBefore($e(),G())):ye(C,"width",h.width),ye(C,"padding",h.padding),h.color&&(C.style.color=h.color),h.background&&(C.style.background=h.background),pe(ee()),jg(C,h);},jg=(f,h)=>{f.className=`${o.popup} ${Y(f)?h.showClass.popup:""}`,h.toast?(q([document.documentElement,document.body],o["toast-shown"]),q(f,o.toast)):q(f,o.modal),W(f,h,"popup"),typeof h.customClass=="string"&&q(f,h.customClass),h.icon&&q(f,o[`icon-${h.icon}`]);},Hg=(f,h)=>{const y=F();if(!h.progressSteps||h.progressSteps.length===0){pe(y);return}le(y),y.textContent="",h.currentProgressStep>=h.progressSteps.length&&u("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),h.progressSteps.forEach((C,Z)=>{const Oe=Vg(C);if(y.appendChild(Oe),Z===h.currentProgressStep&&q(Oe,o["active-progress-step"]),Z!==h.progressSteps.length-1){const ct=zg(h);y.appendChild(ct);}});},Vg=f=>{const h=document.createElement("li");return q(h,o["progress-step"]),Ct(h,f),h},zg=f=>{const h=document.createElement("li");return q(h,o["progress-step-line"]),f.progressStepsDistance&&ye(h,"width",f.progressStepsDistance),h},qg=(f,h)=>{const y=we();Ie(y,h.title||h.titleText,"block"),h.title&&va(h.title,y),h.titleText&&(y.innerText=h.titleText),W(y,h,"title");},sc=(f,h)=>{Ug(f,h),xg(f,h),Hg(f,h),Mg(f,h),Fg(f,h),qg(f,h),_g(f,h),Og(f,h),wg(f,h),Dg(f,h),typeof h.didRender=="function"&&h.didRender(z());};function oc(){const f=n.innerParams.get(this);if(!f)return;const h=n.domCache.get(this);pe(h.loader),ht()?f.icon&&le(G()):Wg(h),J([h.popup,h.actions],o.loading),h.popup.removeAttribute("aria-busy"),h.popup.removeAttribute("data-loading"),h.confirmButton.disabled=!1,h.denyButton.disabled=!1,h.cancelButton.disabled=!1;}const Wg=f=>{const h=f.popup.getElementsByClassName(f.loader.getAttribute("data-button-to-replace"));h.length?le(h[0],"inline-block"):ke()&&pe(f.actions);};function Kg(f){const h=n.innerParams.get(f||this),y=n.domCache.get(f||this);return y?x(y.popup,h.input):null}const Gg=()=>Y(z()),ic=()=>de()&&de().click(),Jg=()=>Se()&&Se().click(),Yg=()=>_e()&&_e().click(),to=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),rc=f=>{f.keydownTarget&&f.keydownHandlerAdded&&(f.keydownTarget.removeEventListener("keydown",f.keydownHandler,{capture:f.keydownListenerCapture}),f.keydownHandlerAdded=!1);},Qg=(f,h,y,C)=>{rc(h),y.toast||(h.keydownHandler=Z=>Zg(f,Z,C),h.keydownTarget=y.keydownListenerCapture?window:z(),h.keydownListenerCapture=y.keydownListenerCapture,h.keydownTarget.addEventListener("keydown",h.keydownHandler,{capture:h.keydownListenerCapture}),h.keydownHandlerAdded=!0);},Ca=(f,h)=>{const y=pt();if(y.length){f=f+h,f===y.length?f=0:f===-1&&(f=y.length-1),y[f].focus();return}z().focus();},ac=["ArrowRight","ArrowDown"],Xg=["ArrowLeft","ArrowUp"],Zg=(f,h,y)=>{const C=n.innerParams.get(f);C&&(h.isComposing||h.keyCode===229||(C.stopKeydownPropagation&&h.stopPropagation(),h.key==="Enter"?ey(f,h,C):h.key==="Tab"?ty(h):[...ac,...Xg].includes(h.key)?ny(h.key):h.key==="Escape"&&sy(h,C,y)));},ey=(f,h,y)=>{if(_(y.allowEnterKey)&&h.target&&f.getInput()&&h.target instanceof HTMLElement&&h.target.outerHTML===f.getInput().outerHTML){if(["textarea","file"].includes(y.input))return;ic(),h.preventDefault();}},ty=f=>{const h=f.target,y=pt();let C=-1;for(let Z=0;Z{const h=de(),y=Se(),C=_e(),Z=[h,y,C];if(document.activeElement instanceof HTMLElement&&!Z.includes(document.activeElement))return;const Oe=ac.includes(f)?"nextElementSibling":"previousElementSibling";let ct=document.activeElement;for(let rn=0;rn{_(h.allowEscapeKey)&&(f.preventDefault(),y(to.esc));};var jo={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const oy=()=>{Array.from(document.body.children).forEach(h=>{h===T()||h.contains(T())||(h.hasAttribute("aria-hidden")&&h.setAttribute("data-previous-aria-hidden",h.getAttribute("aria-hidden")),h.setAttribute("aria-hidden","true"));});},lc=()=>{Array.from(document.body.children).forEach(h=>{h.hasAttribute("data-previous-aria-hidden")?(h.setAttribute("aria-hidden",h.getAttribute("data-previous-aria-hidden")),h.removeAttribute("data-previous-aria-hidden")):h.removeAttribute("aria-hidden");});},iy=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Q(document.body,o.iosfix)){const h=document.body.scrollTop;document.body.style.top=`${h*-1}px`,q(document.body,o.iosfix),ay(),ry();}},ry=()=>{const f=navigator.userAgent,h=!!f.match(/iPad/i)||!!f.match(/iPhone/i),y=!!f.match(/WebKit/i);h&&y&&!f.match(/CriOS/i)&&z().scrollHeight>window.innerHeight-44&&(T().style.paddingBottom="44px");},ay=()=>{const f=T();let h;f.ontouchstart=y=>{h=ly(y);},f.ontouchmove=y=>{h&&(y.preventDefault(),y.stopPropagation());};},ly=f=>{const h=f.target,y=T();return uy(f)||cy(f)?!1:h===y||!g(y)&&h instanceof HTMLElement&&h.tagName!=="INPUT"&&h.tagName!=="TEXTAREA"&&!(g(ce())&&ce().contains(h))},uy=f=>f.touches&&f.touches.length&&f.touches[0].touchType==="stylus",cy=f=>f.touches&&f.touches.length>1,dy=()=>{if(Q(document.body,o.iosfix)){const f=parseInt(document.body.style.top,10);J(document.body,o.iosfix),document.body.style.top="",document.body.scrollTop=f*-1;}},fy=()=>{Rt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(Rt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Rt.previousBodyPadding+yg()}px`);},py=()=>{Rt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${Rt.previousBodyPadding}px`,Rt.previousBodyPadding=null);};function uc(f,h,y,C){ht()?cc(f,C):(X(y).then(()=>cc(f,C)),rc(A)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(h.setAttribute("style","display:none !important"),h.removeAttribute("class"),h.innerHTML=""):h.remove(),Ae()&&(py(),dy(),lc()),hy();}function hy(){J([document.documentElement,document.body],[o.shown,o["height-auto"],o["no-backdrop"],o["toast-shown"]]);}function Hi(f){f=wy(f);const h=jo.swalPromiseResolve.get(this),y=gy(this);this.isAwaitingPromise()?f.isDismissed||(Ho(this),h(f)):y&&h(f);}function my(){return !!n.awaitingPromise.get(this)}const gy=f=>{const h=z();if(!h)return !1;const y=n.innerParams.get(f);if(!y||Q(h,y.hideClass.popup))return !1;J(h,y.showClass.popup),q(h,y.hideClass.popup);const C=T();return J(C,y.showClass.backdrop),q(C,y.hideClass.backdrop),by(f,h,y),!0};function yy(f){const h=jo.swalPromiseReject.get(this);Ho(this),h&&h(f);}const Ho=f=>{f.isAwaitingPromise()&&(n.awaitingPromise.delete(f),n.innerParams.get(f)||f._destroy());},wy=f=>typeof f>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},f),by=(f,h,y)=>{const C=T(),Z=Fo&&b(h);typeof y.willClose=="function"&&y.willClose(h),Z?vy(f,h,C,y.returnFocus,y.didClose):uc(f,C,y.returnFocus,y.didClose);},vy=(f,h,y,C,Z)=>{A.swalCloseEventFinishedCallback=uc.bind(null,f,y,C,Z),h.addEventListener(Fo,function(Oe){Oe.target===h&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback);});},cc=(f,h)=>{setTimeout(()=>{typeof h=="function"&&h.bind(f.params)(),f._destroy();});};function dc(f,h,y){const C=n.domCache.get(f);h.forEach(Z=>{C[Z].disabled=y;});}function fc(f,h){if(f)if(f.type==="radio"){const C=f.parentNode.parentNode.querySelectorAll("input");for(let Z=0;ZObject.prototype.hasOwnProperty.call(no,f),hc=f=>Ey.indexOf(f)!==-1,ka=f=>Py[f],Iy=f=>{pc(f)||u(`Unknown parameter "${f}"`);},Ty=f=>{Ay.includes(f)&&u(`The parameter "${f}" is incompatible with toasts`);},Oy=f=>{ka(f)&&w(f,ka(f));},Dy=f=>{f.backdrop===!1&&f.allowOutsideClick&&u('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const h in f)Iy(h),f.toast&&Ty(h),Oy(h);};function My(f){const h=z(),y=n.innerParams.get(this);if(!h||Q(h,y.hideClass.popup)){u("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const C=Ly(f),Z=Object.assign({},y,C);sc(this,Z),n.innerParams.set(this,Z),Object.defineProperties(this,{params:{value:Object.assign({},this.params,f),writable:!1,enumerable:!0}});}const Ly=f=>{const h={};return Object.keys(f).forEach(y=>{hc(y)?h[y]=f[y]:u(`Invalid parameter to update: ${y}`);}),h};function By(){const f=n.domCache.get(this),h=n.innerParams.get(this);if(!h){mc(this);return}f.popup&&A.swalCloseEventFinishedCallback&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback),typeof h.didDestroy=="function"&&h.didDestroy(),Ry(this);}const Ry=f=>{mc(f),delete f.params,delete A.keydownHandler,delete A.keydownTarget,delete A.currentInstance;},mc=f=>{f.isAwaitingPromise()?(Sa(n,f),n.awaitingPromise.set(f,!0)):(Sa(jo,f),Sa(n,f));},Sa=(f,h)=>{for(const y in f)f[y].delete(h);};var gc=Object.freeze({__proto__:null,_destroy:By,close:Hi,closeModal:Hi,closePopup:Hi,closeToast:Hi,disableButtons:xy,disableInput:ky,disableLoading:oc,enableButtons:_y,enableInput:Cy,getInput:Kg,handleAwaitingPromise:Ho,hideLoading:oc,isAwaitingPromise:my,rejectPromise:yy,resetValidationMessage:$y,showValidationMessage:Sy,update:My});const so=f=>{let h=z();h||new zi,h=z();const y=$e();ht()?pe(G()):Ny(h,f),le(y),h.setAttribute("data-loading","true"),h.setAttribute("aria-busy","true"),h.focus();},Ny=(f,h)=>{const y=He(),C=$e();!h&&Y(de())&&(h=de()),le(y),h&&(pe(h),C.setAttribute("data-button-to-replace",h.className)),C.parentNode.insertBefore(C,h),q([f,y],o.loading);},Fy=(f,h)=>{h.input==="select"||h.input==="radio"?zy(f,h):["text","email","number","tel","textarea"].includes(h.input)&&(R(h.inputValue)||j(h.inputValue))&&(so(de()),qy(f,h));},Uy=(f,h)=>{const y=f.getInput();if(!y)return null;switch(h.input){case"checkbox":return jy(y);case"radio":return Hy(y);case"file":return Vy(y);default:return h.inputAutoTrim?y.value.trim():y.value}},jy=f=>f.checked?1:0,Hy=f=>f.checked?f.value:null,Vy=f=>f.files.length?f.getAttribute("multiple")!==null?f.files:f.files[0]:null,zy=(f,h)=>{const y=z(),C=Z=>{Wy[h.input](y,$a(Z),h);};R(h.inputOptions)||j(h.inputOptions)?(so(de()),L(h.inputOptions).then(Z=>{f.hideLoading(),C(Z);})):typeof h.inputOptions=="object"?C(h.inputOptions):p(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof h.inputOptions}`);},qy=(f,h)=>{const y=f.getInput();pe(y),L(h.inputValue).then(C=>{y.value=h.input==="number"?`${parseFloat(C)||0}`:`${C}`,le(y),y.focus(),f.hideLoading();}).catch(C=>{p(`Error in inputValue promise: ${C}`),y.value="",le(y),y.focus(),f.hideLoading();});},Wy={select:(f,h,y)=>{const C=ie(f,o.select),Z=(Oe,ct,rn)=>{const Vt=document.createElement("option");Vt.value=rn,Ct(Vt,ct),Vt.selected=yc(rn,y.inputValue),Oe.appendChild(Vt);};h.forEach(Oe=>{const ct=Oe[0],rn=Oe[1];if(Array.isArray(rn)){const Vt=document.createElement("optgroup");Vt.label=ct,Vt.disabled=!1,C.appendChild(Vt),rn.forEach(io=>Z(Vt,io[1],io[0]));}else Z(C,rn,ct);}),C.focus();},radio:(f,h,y)=>{const C=ie(f,o.radio);h.forEach(Oe=>{const ct=Oe[0],rn=Oe[1],Vt=document.createElement("input"),io=document.createElement("label");Vt.type="radio",Vt.name=o.radio,Vt.value=ct,yc(ct,y.inputValue)&&(Vt.checked=!0);const Ia=document.createElement("span");Ct(Ia,rn),Ia.className=o.label,io.appendChild(Vt),io.appendChild(Ia),C.appendChild(io);});const Z=C.querySelectorAll("input");Z.length&&Z[0].focus();}},$a=f=>{const h=[];return typeof Map<"u"&&f instanceof Map?f.forEach((y,C)=>{let Z=y;typeof Z=="object"&&(Z=$a(Z)),h.push([C,Z]);}):Object.keys(f).forEach(y=>{let C=f[y];typeof C=="object"&&(C=$a(C)),h.push([y,C]);}),h},yc=(f,h)=>h&&h.toString()===f.toString(),Ky=f=>{const h=n.innerParams.get(f);f.disableButtons(),h.input?wc(f,"confirm"):Pa(f,!0);},Gy=f=>{const h=n.innerParams.get(f);f.disableButtons(),h.returnInputValueOnDeny?wc(f,"deny"):Ea(f,!1);},Jy=(f,h)=>{f.disableButtons(),h(to.cancel);},wc=(f,h)=>{const y=n.innerParams.get(f);if(!y.input){p(`The "input" parameter is needed to be set when using returnInputValueOn${c(h)}`);return}const C=Uy(f,y);y.inputValidator?Yy(f,C,h):f.getInput().checkValidity()?h==="deny"?Ea(f,C):Pa(f,C):(f.enableButtons(),f.showValidationMessage(y.validationMessage));},Yy=(f,h,y)=>{const C=n.innerParams.get(f);f.disableInput(),Promise.resolve().then(()=>L(C.inputValidator(h,C.validationMessage))).then(Oe=>{f.enableButtons(),f.enableInput(),Oe?f.showValidationMessage(Oe):y==="deny"?Ea(f,h):Pa(f,h);});},Ea=(f,h)=>{const y=n.innerParams.get(f||void 0);y.showLoaderOnDeny&&so(Se()),y.preDeny?(n.awaitingPromise.set(f||void 0,!0),Promise.resolve().then(()=>L(y.preDeny(h,y.validationMessage))).then(Z=>{Z===!1?(f.hideLoading(),Ho(f)):f.close({isDenied:!0,value:typeof Z>"u"?h:Z});}).catch(Z=>vc(f||void 0,Z))):f.close({isDenied:!0,value:h});},bc=(f,h)=>{f.close({isConfirmed:!0,value:h});},vc=(f,h)=>{f.rejectPromise(h);},Pa=(f,h)=>{const y=n.innerParams.get(f||void 0);y.showLoaderOnConfirm&&so(),y.preConfirm?(f.resetValidationMessage(),n.awaitingPromise.set(f||void 0,!0),Promise.resolve().then(()=>L(y.preConfirm(h,y.validationMessage))).then(Z=>{Y(ee())||Z===!1?(f.hideLoading(),Ho(f)):bc(f,typeof Z>"u"?h:Z);}).catch(Z=>vc(f||void 0,Z))):bc(f,h);},Qy=(f,h,y)=>{n.innerParams.get(f).toast?Xy(f,h,y):(ew(h),tw(h),nw(f,h,y));},Xy=(f,h,y)=>{h.popup.onclick=()=>{const C=n.innerParams.get(f);C&&(Zy(C)||C.timer||C.input)||y(to.close);};},Zy=f=>f.showConfirmButton||f.showDenyButton||f.showCancelButton||f.showCloseButton;let Vi=!1;const ew=f=>{f.popup.onmousedown=()=>{f.container.onmouseup=function(h){f.container.onmouseup=void 0,h.target===f.container&&(Vi=!0);};};},tw=f=>{f.container.onmousedown=()=>{f.popup.onmouseup=function(h){f.popup.onmouseup=void 0,(h.target===f.popup||f.popup.contains(h.target))&&(Vi=!0);};};},nw=(f,h,y)=>{h.container.onclick=C=>{const Z=n.innerParams.get(f);if(Vi){Vi=!1;return}C.target===h.container&&_(Z.allowOutsideClick)&&y(to.backdrop);};},sw=f=>typeof f=="object"&&f.jquery,_c=f=>f instanceof Element||sw(f),ow=f=>{const h={};return typeof f[0]=="object"&&!_c(f[0])?Object.assign(h,f[0]):["title","html","icon"].forEach((y,C)=>{const Z=f[C];typeof Z=="string"||_c(Z)?h[y]=Z:Z!==void 0&&p(`Unexpected type of ${y}! Expected "string" or "Element", got ${typeof Z}`);}),h};function iw(){const f=this;for(var h=arguments.length,y=new Array(h),C=0;CA.timeout&&A.timeout.getTimerLeft(),xc=()=>{if(A.timeout)return P(),A.timeout.stop()},Cc=()=>{if(A.timeout){const f=A.timeout.start();return k(f),f}},lw=()=>{const f=A.timeout;return f&&(f.running?xc():Cc())},uw=f=>{if(A.timeout){const h=A.timeout.increase(f);return k(h,!0),h}},cw=()=>A.timeout&&A.timeout.isRunning();let kc=!1;const Aa={};function dw(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Aa[f]=this,kc||(document.body.addEventListener("click",fw),kc=!0);}const fw=f=>{for(let h=f.target;h&&h!==document;h=h.parentNode)for(const y in Aa){const C=h.getAttribute(y);if(C){Aa[y].fire({template:C});return}}};var pw=Object.freeze({__proto__:null,argsToParams:ow,bindClickHandler:dw,clickCancel:Yg,clickConfirm:ic,clickDeny:Jg,enableLoading:so,fire:iw,getActions:He,getCancelButton:_e,getCloseButton:O,getConfirmButton:de,getContainer:T,getDenyButton:Se,getFocusableElements:pt,getFooter:tt,getHtmlContainer:ce,getIcon:G,getIconContent:me,getImage:H,getInputLabel:Pe,getLoader:$e,getPopup:z,getProgressSteps:F,getTimerLeft:aw,getTimerProgressBar:xe,getTitle:we,getValidationMessage:ee,increaseTimer:uw,isDeprecatedParameter:ka,isLoading:vt,isTimerRunning:cw,isUpdatableParameter:hc,isValidParameter:pc,isVisible:Gg,mixin:rw,resumeTimer:Cc,showLoading:so,stopTimer:xc,toggleTimer:lw});class hw{constructor(h,y){this.callback=h,this.remaining=y,this.running=!1,this.start();}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(h){const y=this.running;return y&&this.stop(),this.remaining+=h,y&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Sc=["swal-title","swal-html","swal-footer"],mw=f=>{const h=typeof f.template=="string"?document.querySelector(f.template):f.template;if(!h)return {};const y=h.content;return Cw(y),Object.assign(gw(y),yw(y),ww(y),bw(y),vw(y),_w(y),xw(y,Sc))},gw=f=>{const h={};return Array.from(f.querySelectorAll("swal-param")).forEach(C=>{Es(C,["name","value"]);const Z=C.getAttribute("name"),Oe=C.getAttribute("value");typeof no[Z]=="boolean"?h[Z]=Oe!=="false":typeof no[Z]=="object"?h[Z]=JSON.parse(Oe):h[Z]=Oe;}),h},yw=f=>{const h={};return Array.from(f.querySelectorAll("swal-function-param")).forEach(C=>{const Z=C.getAttribute("name"),Oe=C.getAttribute("value");h[Z]=new Function(`return ${Oe}`)();}),h},ww=f=>{const h={};return Array.from(f.querySelectorAll("swal-button")).forEach(C=>{Es(C,["type","color","aria-label"]);const Z=C.getAttribute("type");h[`${Z}ButtonText`]=C.innerHTML,h[`show${c(Z)}Button`]=!0,C.hasAttribute("color")&&(h[`${Z}ButtonColor`]=C.getAttribute("color")),C.hasAttribute("aria-label")&&(h[`${Z}ButtonAriaLabel`]=C.getAttribute("aria-label"));}),h},bw=f=>{const h={},y=f.querySelector("swal-image");return y&&(Es(y,["src","width","height","alt"]),y.hasAttribute("src")&&(h.imageUrl=y.getAttribute("src")),y.hasAttribute("width")&&(h.imageWidth=y.getAttribute("width")),y.hasAttribute("height")&&(h.imageHeight=y.getAttribute("height")),y.hasAttribute("alt")&&(h.imageAlt=y.getAttribute("alt"))),h},vw=f=>{const h={},y=f.querySelector("swal-icon");return y&&(Es(y,["type","color"]),y.hasAttribute("type")&&(h.icon=y.getAttribute("type")),y.hasAttribute("color")&&(h.iconColor=y.getAttribute("color")),h.iconHtml=y.innerHTML),h},_w=f=>{const h={},y=f.querySelector("swal-input");y&&(Es(y,["type","label","placeholder","value"]),h.input=y.getAttribute("type")||"text",y.hasAttribute("label")&&(h.inputLabel=y.getAttribute("label")),y.hasAttribute("placeholder")&&(h.inputPlaceholder=y.getAttribute("placeholder")),y.hasAttribute("value")&&(h.inputValue=y.getAttribute("value")));const C=Array.from(f.querySelectorAll("swal-input-option"));return C.length&&(h.inputOptions={},C.forEach(Z=>{Es(Z,["value"]);const Oe=Z.getAttribute("value"),ct=Z.innerHTML;h.inputOptions[Oe]=ct;})),h},xw=(f,h)=>{const y={};for(const C in h){const Z=h[C],Oe=f.querySelector(Z);Oe&&(Es(Oe,[]),y[Z.replace(/^swal-/,"")]=Oe.innerHTML.trim());}return y},Cw=f=>{const h=Sc.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(f.children).forEach(y=>{const C=y.tagName.toLowerCase();h.includes(C)||u(`Unrecognized element <${C}>`);});},Es=(f,h)=>{Array.from(f.attributes).forEach(y=>{h.indexOf(y.name)===-1&&u([`Unrecognized attribute "${y.name}" on <${f.tagName.toLowerCase()}>.`,`${h.length?`Allowed attributes are: ${h.join(", ")}`:"To set the value, use HTML within the element."}`]);});},$c=10,kw=f=>{const h=T(),y=z();typeof f.willOpen=="function"&&f.willOpen(y);const Z=window.getComputedStyle(document.body).overflowY;Ew(h,y,f),setTimeout(()=>{Sw(h,y);},$c),Ae()&&($w(h,f.scrollbarPadding,Z),oy()),!ht()&&!A.previousActiveElement&&(A.previousActiveElement=document.activeElement),typeof f.didOpen=="function"&&setTimeout(()=>f.didOpen(y)),J(h,o["no-transition"]);},Ec=f=>{const h=z();if(f.target!==h)return;const y=T();h.removeEventListener(Fo,Ec),y.style.overflowY="auto";},Sw=(f,h)=>{Fo&&b(h)?(f.style.overflowY="hidden",h.addEventListener(Fo,Ec)):f.style.overflowY="auto";},$w=(f,h,y)=>{iy(),h&&y!=="hidden"&&fy(),setTimeout(()=>{f.scrollTop=0;});},Ew=(f,h,y)=>{q(f,y.showClass.backdrop),h.style.setProperty("opacity","0","important"),le(h,"grid"),setTimeout(()=>{q(h,y.showClass.popup),h.style.removeProperty("opacity");},$c),q([document.documentElement,document.body],o.shown),y.heightAuto&&y.backdrop&&!y.toast&&q([document.documentElement,document.body],o["height-auto"]);};var Pc={email:(f,h)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(f)?Promise.resolve():Promise.resolve(h||"Invalid email address"),url:(f,h)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(f)?Promise.resolve():Promise.resolve(h||"Invalid URL")};function Pw(f){f.inputValidator||Object.keys(Pc).forEach(h=>{f.input===h&&(f.inputValidator=Pc[h]);});}function Aw(f){(!f.target||typeof f.target=="string"&&!document.querySelector(f.target)||typeof f.target!="string"&&!f.target.appendChild)&&(u('Target parameter is not valid, defaulting to "body"'),f.target="body");}function Iw(f){Pw(f),f.showLoaderOnConfirm&&!f.preConfirm&&u(`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`),Aw(f),typeof f.title=="string"&&(f.title=f.title.split(` `).join("
      ")),No(f);}let Tn;class oo{constructor(){if(typeof window>"u")return;Tn=this;for(var h=arguments.length,y=new Array(h),C=0;C1&&arguments[1]!==void 0?arguments[1]:{};Dy(Object.assign({},y,h)),A.currentInstance&&(A.currentInstance._destroy(),Ae()&&lc()),A.currentInstance=Tn;const C=Ow(h,y);Iw(C),Object.freeze(C),A.timeout&&(A.timeout.stop(),delete A.timeout),clearTimeout(A.restoreFocusTimeout);const Z=Dw(Tn);return sc(Tn,C),n.innerParams.set(Tn,C),Tw(Tn,Z,C)}then(h){return n.promise.get(this).then(h)}finally(h){return n.promise.get(this).finally(h)}}const Tw=(f,h,y)=>new Promise((C,Z)=>{const Oe=ct=>{f.close({isDismissed:!0,dismiss:ct});};jo.swalPromiseResolve.set(f,C),jo.swalPromiseReject.set(f,Z),h.confirmButton.onclick=()=>{Ky(f);},h.denyButton.onclick=()=>{Gy(f);},h.cancelButton.onclick=()=>{Jy(f,Oe);},h.closeButton.onclick=()=>{Oe(to.close);},Qy(f,h,Oe),Qg(f,A,y,Oe),Fy(f,y),kw(y),Mw(A,y,Oe),Lw(h,y),setTimeout(()=>{h.container.scrollTop=0;});}),Ow=(f,h)=>{const y=mw(f),C=Object.assign({},no,h,y,f);return C.showClass=Object.assign({},no.showClass,C.showClass),C.hideClass=Object.assign({},no.hideClass,C.hideClass),C},Dw=f=>{const h={popup:z(),container:T(),actions:He(),confirmButton:de(),denyButton:Se(),cancelButton:_e(),loader:$e(),closeButton:O(),validationMessage:ee(),progressSteps:F()};return n.domCache.set(f,h),h},Mw=(f,h,y)=>{const C=xe();pe(C),h.timer&&(f.timeout=new hw(()=>{y("timer"),delete f.timeout;},h.timer),h.timerProgressBar&&(le(C),W(C,h,"timerProgressBar"),setTimeout(()=>{f.timeout&&f.timeout.running&&k(h.timer);})));},Lw=(f,h)=>{if(!h.toast){if(!_(h.allowEnterKey)){Rw();return}Bw(f,h)||Ca(-1,1);}},Bw=(f,h)=>h.focusDeny&&Y(f.denyButton)?(f.denyButton.focus(),!0):h.focusCancel&&Y(f.cancelButton)?(f.cancelButton.focus(),!0):h.focusConfirm&&Y(f.confirmButton)?(f.confirmButton.focus(),!0):!1,Rw=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur();};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const f=new Date,h=localStorage.getItem("swal-initiation");h?(f.getTime()-Date.parse(h))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const y=document.createElement("audio");y.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",y.loop=!0,document.body.appendChild(y),setTimeout(()=>{y.play().catch(()=>{});},2500);},500):localStorage.setItem("swal-initiation",`${f}`);}Object.assign(oo.prototype,gc),Object.assign(oo,pw),Object.keys(gc).forEach(f=>{oo[f]=function(){if(Tn)return Tn[f](...arguments)};}),oo.DismissReason=to,oo.version="11.7.2";const zi=oo;return zi.default=zi,zi}),typeof ns<"u"&&ns.Sweetalert2&&(ns.swal=ns.sweetAlert=ns.Swal=ns.SweetAlert=ns.Sweetalert2),typeof document<"u"&&function(n,s){var i=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=s);else try{i.innerHTML=s;}catch{i.innerText=s;}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}');})(Rf);var _b=Rf.exports;const ue=Zl(_b),Nf=mt.clouddrive;var eu=(e=>(e.windows="windows",e.macos="macos",e.linux="linux",e.android="android",e))(eu||{}),hs=(e=>(e.play="play",e.download="download",e))(hs||{});function tu(e){return {active:!1,url:"http://localhost:19798",root:"/115",memo:"",platform:void 0,ver_lt_0816:!1,...e}}async function Ff(){const e=[tu()],t=await et.get(Nf,e);return t||e}async function Ic(e){e.some(t=>t.active)||(e[0].active=!0),await et.set(Nf,e);}async function Eo(){return (await Ff()).find(t=>t.active)||tu()}function xb(e){if(!document.execCommand)return !1;const t=document.createElement("input");t.style.position="fixed",t.style.opacity="0",t.value=e,document.body.appendChild(t),t.select();try{return document.execCommand("Copy")}catch(n){console.warn("[copyViaCmd] execCommand",n);}finally{document.body.removeChild(t);}return !1}function Cb(e){prompt("请复制以下内容:",e);}function kb(e=navigator.userAgent){return e.indexOf("Safari")>-1&&e.indexOf("Chrome")<=-1}function yt(e){const t=()=>{xb(e)||(kb()?Cb(e):Vw(e,"text/plain"));};navigator.clipboard?navigator.clipboard.writeText(e).then(()=>{}).catch(n=>{console.warn("[copyToClipboard] navigator.clipboard",n),t();}):t();}function Hr(e="",t=""){return e+Date.now().toString()+Math.random().toString(36).substring(5)+t}function Sb(e,t="NFD"){return e.normalize(t)}function $b(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Uf(e,t){return e=e.replace(/^[\/]+/g,""),"/"+e}function jf(e){return e.startsWith("file://")}async function _o(e,t,n=hs.play,s=!0,i=""){t=Hf(e,t);let{url:o,root:r}=e;if(!o)throw new Error("未设置CloudDrive地址!");(o.startsWith("/")||o.startsWith("\\"))&&(o=`file:///${o}`),jf(o);const a=/^https?:\/\//.test(o);if(a&&!r)throw new Error("当协议为http/https时,必须设置CloudDrive资源根路径!");r&&(r=r.replace(/^(\/+)?/g,"/")),t=t.replace(/^(\/+)?/g,"/");const l=`${r}${t}`,c=n===hs.play?"True":"False";let u="";return o=o.replace(/\/+$/,""),a?u=`${o}/static/${o.replace("://","/")}/${c}/${encodeURIComponent(l)}`:u=`${o}${l}`,i&&(u+=i),s&&(u+="?check_expire=True"),console.log("[Cloud115 Enhancer] buildCloudDriveUrl",u),u}async function ol(e,t,n=!0){let{url:s,root:i}=e;if(!s)throw new Error("未设置CloudDrive地址!");return (s.startsWith("/")||s.startsWith("\\"))&&(s=`file:///${s}`),jf(s)?await _o(e,t,hs.play,n):await _o(e,t,hs.play,n,".clfsplaylist.m3u")}async function Eb(e,t){let{url:n}=e;if(!n)throw new Error("未设置CloudDrive地址!");return n.startsWith("http")||(n=`http://${n}`),n=n.replace(/\/+$/,""),t=e.root.replace(/\/+$/,"")+t,t=t.replace(/^(\/+)?/g,"/"),t=Hf(e,t),`${n}/#${t}?a=1`}function Hf(e,t){return e.platform===eu.macos?Sb(t,e.ver_lt_0816?"NFD":"NFC"):t}const Qo=ue.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:e=>{e.addEventListener("mouseenter",ue.stopTimer),e.addEventListener("mouseleave",ue.resumeTimer);},customClass:"swal-toast"});async function Pb(e,t){e.addEventListener("keydown",n=>{const s=n.target;if(!Ef(s))return;let i=!1;n.key==="Enter"&&(n.ctrlKey||n.metaKey)&&(i=!0),i&&ue.clickConfirm();});}async function ae(e){return ue.fire({toast:!0,position:"top-right",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:t=>{t.addEventListener("mouseenter",ue.stopTimer),t.addEventListener("mouseleave",ue.resumeTimer);},...e})}async function Ab(e,t,n=!1){var o;const s=new Map;if(!e.length)return s;t=t||await Eo();let i=new Map;n||(ae({text:"正在获取上级目录路径...",timer:0}),ue.showLoading());try{i=await ov(e),n||ue.close();}catch(r){return console.error(r),n||ae({text:`获取上级目录路径失败: ${r}`,timer:1200,icon:"error"}),s}finally{n||ue.hideLoading();}if(i.size===0)return s;for(let r=0;r{const o=await _o(e,t,void 0,n);Gl({method:"HEAD",url:o,onload:r=>s(r.status===200),onerror:r=>i(r)});})}async function Tb(e,t,n,s,i){const r=`waitFileExist_${Hr()} path: ${t}`;console.time(r);async function a(l){const c=await Ib(e,t,n);c&&l(c);}try{await _s(a,s,i);}catch{throw new Error(`[waitFileExist] 检查文件存在超时!文件路径: ${t}`)}finally{console.timeEnd(r);}}async function Ob(e){let t=`#EXTM3U `;for(const[n,s]of e)t+=`#EXTINF:0,${n} ${s} `;return t}var cs=(e=>(e.unix="/",e.windows="\\",e))(cs||{});function yr(e,t="/"){return e.map((n,s)=>s===0?n:Vr(n,t)).join(t)}function Vr(e,t="/"){return e=e.replace(/[\\/]/g,t),t==="/"?e=e.replace(/\/+/g,t):e=e.replace(/\\+/g,t),e.length>1&&e.endsWith(t)&&(e=e.slice(0,-1)),e}function Db(e){return e.startsWith("/")}function Mb(e){return e===""||e==="/"||e==="\\"}function il(e,t,n="/"){if(Db(t))return t;const s=new URL(e,"http://example.com");s.pathname=Lb(s.pathname,t);let i=decodeURIComponent(s.pathname);return Vr(i,n)}function Lb(e,t){const n=e.endsWith("/")?e:e+"/",s=t.startsWith("/")?t.slice(1):t;return n+s}function Vf(e,t=/^\w+$/){const n=e.lastIndexOf(".");if(n===-1)return "";const s=e.slice(n+1);return t&&!t.test(s)?"":s}function nu(e){return JSON.parse(JSON.stringify(e))}function Bb(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tc(e){return Bb(e)&&!Array.isArray(e)}function su(...e){const t={};for(const n of e)for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(Tc(n[s])&&Tc(t[s])?t[s]=su(t[s],n[s]):t[s]=n[s]);return t}function Rb(e){const t=new Map;for(const[n,s]of e)t.set(s,n);return t}function zr(e){const t=new URLSearchParams;let n;for(n in e)t.append(n,e[n].toString());return t.toString()}function Nb(e,t=!1){const n=[];for(const s in e){let i=e[s].toString();i=t?encodeURIComponent(i):i,n.push(`${s}=${i}`);}return n.join("&")}function Fb(e){const t=new FormData;let n;for(n in e)t.append(n,e[n].toString());return t}const zf=mt.anxia;var qr=(e=>(e.anxia="v.anxia.com",e.vod="115vod.com",e))(qr||{});const qf={"3G":"标清",SD:"高清",HD:"超清",UD:"1080P",BD:"4K",YH:"原画"};function Ub(e){return {defaultWebFull:!1,defaultOpenPlayList:!1,defaultDefinition:"",...e}}async function Wf(){const e=Ub(),t=await et.get(zf,e);return {...e,...t}}async function jb(e){await et.set(zf,e);}function Hb(e){return `code=${e.code} ${e.message}`}async function Gt(e=!0){const t=on();let n=t.GetCurWangPanCid?t.GetCurWangPanCid():"";return n===0&&(n="0"),n==="0"&&e?(t.Core.MinMessage.Show({text:'不支持"根目录"!',timeout:1e3}),""):n}function Vb(e={}){return {move:!0,rename:!0,delete:!0,more:!0,classList:"ce-temp-item",...e}}async function zb(e,t,n={}){const s=!t.sha1,i=s?"":Vf(t.file_name),o=s?"folder":i.toLowerCase(),r=s?"文件夹":i.toUpperCase()+"文件",a=s?"cate_id":"file_id";let l=$(`li.temp-el[${a}="${e}"]`);if(!l.length){const p=[];p.push(s?` ${t.file_name} `:` ${t.file_name} `),n.star&&p.push(`星标`),n.remark&&p.push(''),n.scores&&p.push('
      ');const m=n.labels?``:"",v=[];n.setTop&&v.push(` 置顶 `),n.move&&v.push(` 移动 `),n.rename&&v.push(` 重命名 `),n.delete&&v.push(` 删除 `);const w=[`
      ${p.join(` `)} ${m}
      `,`
      ${s?"":t.size}
      `,`
      ${r}
      `,`
      ${new Date(Number(t.utime)*1e3).toLocaleString()}
      `,'
      ',`
      ${v.join(` `)}
      `],_=`
    • ${w.join(` `)}
    • `;l=$(_);}l.find("a.name > span").text(t.file_name),n.classList&&l.addClass(n.classList);const c=t.paths[t.paths.length-1].file_id;let u={rel:"item",c:"0",hdf:"0",title:t.file_name,file_type:s?0:1,pick_code:t.pick_code,is_share:t.is_share,shared:t.is_share,area_id:"1",p_id:c,score:t.score};s?u={...u,cate_id:e,cate_name:t.file_name}:u={...u,file_id:e,cid:c,iv:t.play_long?"1":"0",ico:i,sha1:t.sha1};for(let p in u)l.attr(p,u[p]);return l}function Js(e){const t=ou(e);return Ys(t)}function ou(e){e instanceof HTMLElement&&(e=$(e));const t=e.attr("file_size"),n=e.attr("iv")==="1",s=xs(),i=e.attr("file_id")||"",o=!!i,r=e.attr("c")||"",a=e.attr("fvs")||"",l={n:e.attr("title")||"",s:t?parseInt(t):0,pc:e.attr("pick_code")||"",t:e.attr("user_ptime")||"",te:"",tp:"",ico:e.attr("ico")||"",sha:e.attr("sha1")||"",iv:n,c:r?parseInt(r):0,fuuid:e.attr("fuuid"),fvs:a?parseInt(a):0};let c={n:l.n};if(!s)c={fid:i,cid:(o?e.attr("cid"):e.attr("cate_id"))||"",pid:o?"":e.attr("p_id")||"",...l};else if(c={fid:i,cid:(o?e.attr("cid"):e.attr("cate_id"))||"",...l},!o){const u=e.find(".file-directory a[cid]");if(u.length)c.pid=u.attr("cid");else throw console.warn("无法获取上级目录ID!",e),new Error("无法获取上级目录ID!")}return {...c,...l}}async function An(e){const t=Jb(e);return qb(t)}function qb(e){const t=[];for(let n=0;n .file-path").children().each(function(){t.push($(this).text().trim().replace(/[›]$/,""));}),t}async function Qb(){const e=await Gt();Po().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 Ao(e=!1,t=0){const n=await Gt();if(!n)return null;const s=Po(),i=await Kb();return e||i.hide(),s.find(`li[cate_id="${n}"]`).length||s.append(i),t>0&&setTimeout(()=>{i.remove();},t),i}async function Xb(e,t,n){await Qb(),on().Core.FileMenu.DoEvent([e],t,null);}function Zb(e,t=""){return `https://115.com/?ct=preview&ac=location&pickcode=${e}&sha1=${t}`}function Rs(e){return `https://115.com/?${new URLSearchParams({cid:e}).toString()}&offset=0&mode=wangpan`}function In(e=location.href){return e.includes("ac=userfile")}function xs(e=location.href){return e.includes("ac=search")}function al(e=location.href){return /(115|anxia|115cdn)\.com\/s\/\w+/.test(e)||/share\.115\.com/.test(e)}function Wr(e,t=""){const n={aid:"1",cid:e.cid||"",old_cid:e.cid||"",old_cid_name:t,search_value:encodeURIComponent(e.search_value),ct:"file",ac:"search",is_wl_tpl:"1"};return "https://115.com/?url="+encodeURIComponent(`/?${Nb(n)}`)+"&submode=wangpan&mode=search"}function Gf(e,t=qr.vod){const n=new URLSearchParams({pickcode:e,share_id:"0"});return `https://${t}/?${n.toString()}`}function iu(e){return /^https?:\/\//.test(e)&&(e=new URL(e).host),Object.values(qr).includes(e)}async function ev(e){unsafeWindow.Main.ReInstance({type:e.type,offset:0,o:Tf.userPtime,asc:Yl.false,star:e.star,suffix:e.suffix});}function tv(){return Po().find("li.selected")}function nv(){const e=tv();return e?ou(e):null}function sv(e){return e.replace(/[/\\:*?"<>|]/g,"_")}const Ta=new Map;async function Kr(e,t=!1){const n=sv(e.name);if(t&&e.parentId&&Ta.has(e.parentId)){const r=Ta.get(e.parentId);if(r)return `${r}/${n}`.replace(/^[\/]+/g,"/")}const i=(await Lt(e.id)).paths.slice(1).map(r=>r.file_name).join("/");return e.parentId&&Ta.set(e.parentId,i),`/${i}/${n}`.replace(/^[\/]+/g,"/")}async function ov(e,t=100){var o;const n=new Map;for(const r of e){const a=r.parentId;if(!a)throw new Error(`文件"${r.name}"没有父级目录ID!`);n.has(a)?(o=n.get(a))==null||o.push(r):n.set(a,[r]);}const s=[];for(const r of n.values())s.push(r[0]);const i=new Map;for(const r of s){const a=await Lt(r.id);await nn(t),i.set(r.parentId,a.paths.map(l=>l.file_name));}return i}async function iv(e,t=100){var o;const n=new Map;for(const r of e){const a=r.parentId;if(!a)throw new Error(`文件"${r.name}"没有父级目录ID!`);n.has(a)?(o=n.get(a))==null||o.push(r):n.set(a,[r]);}const s=[];for(const r of n.values())s.push(r[0]);const i=new Map;for(const r of s){const a=await Lt(r.id);await nn(t),i.set(r.parentId,a.paths);}return i}async function rv(e,t){const n=new File([e],t.filename,{type:"text/plain"});return wv(n,t)}async function av(e,t,n){const s=await Ab(e),i=await Ob(s);n=n||Hr();let o=t;return /m3u8$/.test(n)||(n+=".m3u8"),await rv(i,{filename:n,target:o})}const Oa=new Map;async function lo(e,t=!1){if(e=Vr(e,cs.unix),e=e.replace(/^[\/]+/,"").replace(/[\/]+$/,""),t&&Oa.has(e))return Oa.get(e);if(e===""||e==="/")return "0";const n=await fv(e);if(!n.state)throw new Error(`根据路径"${e}"获取目录ID失败: ${n.error}`);if(n.id&&n.id.toString()!=="0")return Oa.set(e,n.id.toString()),n.id.toString();throw new Xl(`根据路径"${e}"获取目录ID失败: 目录不存在!`)}async function lv(e){e=e.replace(/^\//,"").replace(/\/$/,"");const t={id:"",created:!1,pathToId:new Map};if(e===""||e==="/")return t.id="0",t;const n=e.split("/").filter(o=>o);let s="0",i="";for(const o of n){i+="/"+o;let r="";try{r=await lo(i,!0),t.pathToId.set(i,r);}catch(a){if(a instanceof Xl){const l=await Zf(s,o);if(!l.state)throw new Error(`创建目录"${o}"失败: ${l.errno} - ${l.error}`);r=l.cid.toString();}else throw a}s=r,t.pathToId.set(i,r);}return t.id=s,t}async function uv(e,t,n=!0){let s="";const i=await Zf(t,e);if(i.state)s=i.cid.toString();else {if(i.errno===Mf.exist&&n){const o=await Lt(t);if(!o.pick_code)throw new Error(`获取目录"${t}"属性失败: ${o.errno} - ${o.error}`);const r=[...o.paths.slice(1).map(a=>a.file_name),o.file_name,e].join("/");return await lo(r,!0)}throw new Error(`创建目录"${e}"失败: ${i.errno} - ${i.error}`)}return s}async function Jf(e,t,n){const s=new URLSearchParams({page:e.toString(),uid:n.toString(),sign:t,time:bo().toString()});return (await Bt().post("https://115.com/web/lixian/?ct=lixian&ac=task_lists",s,{withCredentials:!0,timeout:6e4})).data}async function Yf(){return (await Bt().get(`https://115.com/?ct=offline&ac=space&_=${Date.now()}`,{timeout:3e4,withCredentials:!0})).data}async function Qf(){const t=(await Bt().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 Xf(e){const t=zr(e),s=(await Bt().get("https://webapi.115.com/files?"+t,{timeout:12e4,withCredentials:!0})).data;if(s.state)return s;throw new Error(s.error)}async function uo(e,t=50){let n=[],s=0;for(;;){e.offset=s;const i=await Xf(e);if(!i.data||!i.data.length||(i.count>i.data.length&&e.limit!==i.data.length&&(console.warn(`[getFilesList] invalid limit(${e.limit}) detected! max limit is ${i.page_size}, correct it now!`),e.limit=i.page_size),n=[...n,...i.data],s+=e.limit,s>=i.count))break;await nn(t);}return n}async function cv(e){const t=zr(e),n=await Bt().get("https://webapi.115.com/files/search?"+t,{timeout:12e4,withCredentials:!0});if(n.data==="")throw new Df;const s=n.data;if(s.state)return s;throw new Ql(s.error)}async function dv(e,t=200,n=!1){let s=[],i=0,o=e.limit;const r=1e4,a=115,l=r-r%o;let c=o;for(;;){if(n){if(i>=l&&i=r&&(c=a);}e.offset=i,e.limit=c;const u=await cv(e);if(!u.data||!u.data.length||(s=[...s,...u.data],i+=c,i>=u.count))break;await nn(t);}return s}async function ru(e,t){const n=new URLSearchParams({pid:e,ignore_warn:"1"});return t.forEach((i,o)=>{n.append(`fid[${o}]`,i);}),(await Bt().post("https://webapi.115.com/rb/delete",n,{timeout:12e4,withCredentials:!0})).data}async function Da(e,t,n=1150,s=1e3){let i=0,o=0;for(;;){const r=t.slice(i,i+n);if((await ru(e,r)).state&&(o+=r.length),i+=n,i>=t.length)break;await nn(s);}return o}async function Zf(e,t){const n=new URLSearchParams({pid:e,cname:t});return (await Bt().post("https://webapi.115.com/files/add",n,{timeout:12e4,withCredentials:!0})).data}async function ep(e,t){const n=new URLSearchParams({pid:e});return t.forEach((i,o)=>{n.append(`fid[${o}]`,i);}),(await Bt().post("https://webapi.115.com/files/move",n,{timeout:12e4,withCredentials:!0})).data}async function fv(e){const t={path:e};return (await Bt().get("https://webapi.115.com/files/getid?"+zr(t),{timeout:12e4,withCredentials:!0})).data}async function Lt(e){const t=new URLSearchParams({cid:e});return (await Bt().get("https://webapi.115.com/category/get?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function ll(e,t,n,s){const i={uid:s.toString(),sign:t.sign,time:bo().toString()};n&&(i.flag="1");const o=Fb(i);return e.forEach((a,l)=>{o.append(`hash[${l}]`,a);}),(await Bt().post("https://115.com/web/lixian/?ct=lixian&ac=task_del",o,{timeout:12e4,withCredentials:!0})).data}async function pv(e){return new Promise((t,n)=>{const s=JSON.stringify({pickcode:e}),i=Math.floor(Date.now()).toString(),o=new bb,{data:r,key:a}=o.encode(s,i);Gl({method:"POST",url:`https://proapi.115.com/app/chrome/downurl?t=${i}`,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","User-Agent":navigator.userAgent,Accept:"application/json, text/javascript, */*; q=0.01"},data:`data=${encodeURIComponent(r)}`,responseType:"json",onload:l=>{const c=JSON.parse(l.responseText);if(c.state){const u=o.decode(c.data,a);if(u){const p=JSON.parse(u),m=Object.keys(p)[0],v=p[m];v.file_id=m;const w=l.responseHeaders.split(/[\r\n]+/).filter(_=>_.match(/set-cookie/i));w.length&&(w.forEach((_,R)=>{w[R]=_.replace(/set-cookie:[\s]*/i,"").split(";")[0];}),v.cookie=w.join("; ")),t(v);}else n({state:!1,error:"解密失败"});}else n(c);},onerror:l=>{n(l);}});})}async function hv(e){if(!(await Lt(e)).play_long)throw new Error("该目录下没有可以播放的媒体文件![by_attr]");const s=(await uo(Bs({cid:e,limit:1150}))).find(i=>i.play_long&&i.play_long>0);if(!s)throw new Error("该目录下没有可以播放的媒体文件![by_files]");return Ys(s)}async function mv(e,t){if(e=typeof e=="string"?e:e.join(","),!t){if(e.includes(","))throw new Error("target参数不能为空!");t=e;}t=t.startsWith("U_1_")?t:`U_1_${t}`;const n=new URLSearchParams({file_ids:e,target:t});return (await Bt().post("https://webapi.115.com/files/export_dir",n,{timeout:12e4,withCredentials:!0})).data}async function gv(e,t=1e3,n=12e4){const s=new URLSearchParams({export_id:e.toString()}),i=async()=>(await Bt().get("https://webapi.115.com/files/export_dir?"+s.toString(),{timeout:12e4,withCredentials:!0})).data;async function o(r){const a=await i();a.data&&a.data.pick_code&&r(a);}try{return await _s(o,t,n)}catch(r){throw new Error(`导出目录树结果获取失败:${r.message}`)}}async function yv(e){/^\d+$/.test(e.target)&&(e.target=`U_1_${e.target}`);const t=zr(e);return (await Bt().post("https://uplb.115.com/3.0/sampleinitupload.php",t,{timeout:12e4,withCredentials:!0})).data}async function wv(e,t){const n=await yv(t),s=new FormData;s.append("name",t.filename),s.append("key",n.object),s.append("policy",n.policy),s.append("OSSAccessKeyId",n.accessid),s.append("success_action_status","200"),s.append("callback",n.callback),s.append("signature",n.signature),s.append("file",e);const i=n.host.replace(/^http:/,"https:");return (await Bt().post(i,s,{timeout:18e5})).data}const bv=typeof btoa=="function",au=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Oc=typeof TextEncoder=="function"?new TextEncoder:void 0,vv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ko=Array.prototype.slice.call(vv);(e=>{let t={};return e.forEach((n,s)=>t[n]=s),t})(Ko);const Dn=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const _v=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),xv=e=>{let t,n,s,i,o="";const r=e.length%3;for(let a=0;a255||(s=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|s<<8|i,o+=Ko[t>>18&63]+Ko[t>>12&63]+Ko[t>>6&63]+Ko[t&63];}return r?o.slice(0,r-3)+"===".substring(r):o},tp=bv?e=>btoa(e):au?e=>Buffer.from(e,"binary").toString("base64"):xv,Cv=au?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let s=0,i=e.length;s{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Dn(192|t>>>6)+Dn(128|t&63):Dn(224|t>>>12&15)+Dn(128|t>>>6&63)+Dn(128|t&63)}else {var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Dn(240|t>>>18&7)+Dn(128|t>>>12&63)+Dn(128|t>>>6&63)+Dn(128|t&63)}},Sv=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$v=e=>e.replace(Sv,kv),Dc=au?e=>Buffer.from(e,"utf8").toString("base64"):Oc?e=>Cv(Oc.encode(e)):e=>tp($v(e)),Mc=(e,t=!1)=>t?_v(Dc(e)):Dc(e);var lu=(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))(lu||{});const Ev=[{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 np=(e=>(e.first="first",e.last="last",e))(np||{});function Pv(e,t,n){const{names:s,position:i}=t;let o=[];return i==="first"?o=[...s,...e]:o=[...e,...s],n?Array.from(new Set(o)):o}async function ui(e,t,n,s){var c;let i=t.url;const o={dir_id:"id",file_id:"id",pick_code:"pickCode",full_name:"name",file_suffix:"suffix",file_hash:"hash",file_size:"sizeBytes"},r=e.isFile,a=/{(\w+)(:\w+(:\w+)?)?}/g,l=i.match(a);if(l){const u=["file_path","file_dir","clouddrive_stream_url","clouddrive_down_url","clouddrive_playlist_url"];for(const p of l){const m=p.replace(/[{}]/g,"").split(":")[0],v=p.replace(/[{}]/g,"").replace(/^[^:]+:/,"");let w=((c=e[o[m]])==null?void 0:c.toString())||"",_="";switch(u.includes(m)&&(_=await Kr(e)),m){case"pure_name":r?w=e.name.replace(/\.[^.]+$/,""):w=e.name;break;case"file_path":w=_;break;case"file_dir":w=_.replace(/\/[^/]+$/,"");break;case"clouddrive_stream_url":r?w=await _o(n,_,hs.download):w=await ol(n,_);break;case"clouddrive_down_url":w=await _o(n,_,hs.download);break;case"clouddrive_playlist_url":let R="";r?R=_.replace(/\/[^/]+$/,""):R=_,w=await ol(n,R);break;case"user_agent":w=navigator.userAgent;break}if(w=w.toString(),v){let R=v.split(":");s&&(R=Pv(R,s,!1)),console.log(`[buildCustomUrl] functions: ${v}, after merge: ${R.join(":")}`);for(const L of R)switch(L){case"search":w=Wr({search_value:w});break;case"encode":w=encodeURIComponent(w);break;case"base64":w=Mc(w);break;case"base64safe":w=Mc(w,!0);break;case"upper":w=w.toUpperCase();break;case"lower":w=w.toLowerCase();break;case"number":w=w.replace(/\D/g,"");break;case"manual":w=await Av(w);break}}i=i.replace(p,w);}}return t.mutation?await Iv(i,e,t,n):i}async function Av(e){let{isConfirmed:t,value:n}=await ue.fire({title:"手动输入",text:"按下「Ctrl + 回车」或「Command + 回车」确认",input:"textarea",inputValue:e,showCancelButton:!0,inputValidator:s=>s?null:"输入不能为空!",didOpen:s=>{Jw(s),Pb(s);}});if(!t)throw new Error("已取消手动输入。");if(n=(n==null?void 0:n.trim())||"",n==="")throw new Error("输入不能为空!");return e=n,e}async function Iv(e,t,n,s){return await new Function("payload",n.mutation)({url:e,file:t,customUrl:n,cloudDriveConfig:s})}var ms=(e=>(e.search="search",e.play="play",e))(ms||{});const Tv=mt.menuCustomUrlsForSearch,Ov=mt.menuCustomUrlsForPlay,sp={search:Tv,play:Ov};async function Ti(e){return await et.get(sp[e],[])}async function op(e,t){await et.set(sp[e],t);}function Et(e){return {enabled:!0,key:"",label:"",icon:"",memo:"",extraMemo:"",url:"",openInBackground:!1,...e}}const ip=mt.enabledCustomUrlsForSearch,rp=mt.enabledCustomUrlsForPlay;async function Dv(e){await et.set(ip,e);}async function Mv(e){await et.set(rp,e);}async function Lv(){const e=cl,t=e.filter(i=>i.enabled).map(i=>i.key),n=await et.get(ip,t),s=[];return e.forEach(i=>{n.includes(i.key)&&s.push(i.key);}),s}async function Bv(){const e=ul,t=e.filter(i=>i.enabled).map(i=>i.key),n=await et.get(rp,t),s=[];return e.forEach(i=>{n.includes(i.key)&&s.push(i.key);}),s}async function uu(){const e=await Lv();return cl.forEach(t=>{t.enabled=e.includes(t.key);}),cl}async function ap(){const e=await Bv();return ul.forEach(t=>{t.enabled=e.includes(t.key);}),ul}const Lc="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=",Rv="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",Bc="https://nplayer.com/assets/img/logo_main.png",ul=[Et({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}"}),Et({enabled:!0,key:"p_builtin_vlc",label:"VLC",icon:"https://images.videolan.org/images/favicon.ico",memo:"调用VLC播放视频(使用CloudDrive链接)",extraMemo:'安装VLC协议',url:"vlc://{clouddrive_stream_url}"}),Et({enabled:!0,key:"p_builtin_mpv",label:"MPV",icon:"https://mpv.io/images/mpv-logo-128-0baae5aa.png",memo:"调用MPV播放视频(使用CloudDrive链接)",extraMemo:'安装MPV协议',url:"mpv://{clouddrive_stream_url}"}),Et({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}"}),Et({enabled:!0,key:"p_builtin_infuse",label:"Infuse",icon:Rv,memo:"调用Infuse播放视频(使用CloudDrive链接)",url:"infuse://x-callback-url/play?url={clouddrive_stream_url:encode}"}),Et({enabled:!1,key:"p_builtin_nplayer_mac",label:"nPlayer-mac",icon:Bc,memo:"调用nPlayer(mac版)播放视频(使用CloudDrive链接)",url:"nplayer-mac://weblink?url={clouddrive_stream_url:encode}&new_window=1"}),Et({enabled:!1,key:"p_builtin_nplayer_win",label:"nPlayer-win",icon:Bc,memo:"调用nPlayer(非mac版)播放视频(使用CloudDrive链接)",url:"nplayer-{clouddrive_stream_url:encode}"}),Et({enabled:!0,key:"p_builtin_online",label:"在线播放",icon:"https://115.com/favicon.ico",memo:"115官方在线播放(转码)",url:"https://115vod.com/?pickcode={pick_code}&share_id=0"})],cl=[Et({enabled:!0,key:"s_builtin_115_pure_name",label:"115-不含后缀",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀)",url:"{pure_name:search}"}),Et({enabled:!1,key:"s_builtin_115_full_name",label:"115-完整名称",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(完整名称)",url:"{full_name:search}"}),Et({enabled:!0,key:"s_builtin_115_sha",label:"115-sha1",icon:"https://115.com/favicon.ico",memo:"使用115搜索sha1相同的文件(仅适用于文件)",url:"{file_hash:search}"}),Et({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}"}),Et({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}"}),Et({enabled:!0,key:"s_builtin_bing_pure_name",label:"Bing-不含后缀",icon:Lc,memo:"使用Bing搜索文件名(不含后缀)",url:"https://cn.bing.com/search?q={pure_name:encode}"}),Et({enabled:!1,key:"s_builtin_bing_full_name",label:"Bing-完整名称",icon:Lc,memo:"使用Bing搜索文件名(完整名称)",url:"https://cn.bing.com/search?q={full_name:encode}"}),Et({enabled:!0,key:"s_builtin_115_pure_name_manual",label:"115-不含后缀-手动",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀),手动编辑后搜索",url:"{pure_name:manual:search}"})];async function lp(e,t,n=Js){const s=[],i=await sn(),o=i.keyToTriggerManual;for(const r of t){const a=Nr(e,{key:`_ce_s_${r.key}`,label:r.label,icon:r.icon,title:r.memo,onClick:async(l,c)=>{c.stopPropagation(),c.preventDefault();try{let u;if(o){const _=c;(o===Ln.alt&&_.altKey||o===Ln.ctrl&&_.ctrlKey||o===Ln.shift&&_.shiftKey||o===Ln.meta&&_.metaKey)&&(u={names:[lu.manual],position:i.injectManualFuncPosition});}const p=$(c.target).closest("li"),m=n(p),v=await Eo(),w=await ui(m,r,v,u);if(console.log("[search url]",w),!w)throw new Error("无法获取有效的搜索链接!");xf(w,{active:!r.openInBackground});}catch(u){console.error(u),ae({title:"搜索失败",text:u.toString(),icon:"error"});}}});s.push(a);}return s}async function up(e,t){if(console.log("[playDirOnAnxia]",e,t),!t)try{ae({title:"正在查找可播放的文件...",text:"请稍等...",icon:"info"}),ue.showLoading(),t=await hv(e),console.log("[playDirOnAnxia] file",t);}catch(s){console.error(s),ae({title:"播放失败",text:s.toString(),icon:"error"});return}t||ae({title:"播放失败",text:"没有在该目录下找到可播放的文件![file_null]",icon:"error"});const n=Gf(t.pickCode);window.open(n,"_blank","noopener noreferrer");}async function cp(e,t,n,s){s.stopPropagation(),s.preventDefault();const i=t.keyToTriggerManual;try{let o;if(i){const u=s;(i===Ln.alt&&u.altKey||i===Ln.ctrl&&u.ctrlKey||i===Ln.shift&&u.shiftKey||i===Ln.meta&&u.metaKey)&&(o={names:[lu.manual],position:t.injectManualFuncPosition});}const r=$(s.target).closest("li"),a=Js(r),l=await Eo(),c=await ui(a,e,l,o);if(a.isDir&&iu(c)){up(a.id);return}if(console.log("[play url]",c),!c)throw new Error("无法获取有效的播放链接!");window.open(c,"_blank","noopener noreferrer");}catch(o){console.error(o),ae({title:"播放失败",text:o.toString(),icon:"error"});}}async function cu(e){const t="_p_null_",n=await ap(),s=n.filter(l=>l.enabled),i=[...s,...(await Ti(ms.play)).filter(l=>l.enabled)],o=(l,c)=>l.find(u=>u.key===c);let r=o(s,e.defaultPlayer||"p_builtin_online");r||(r=o(n,"p_builtin_online")),r||(console.warn("[play with dropdown] default player not found"),r=Et({key:t,url:"#",label:"播放",memo:"播放菜单数据异常!",enabled:!0})),r={...r},r.key==="p_builtin_online"&&(r.label="播放");const a=i.findIndex(l=>l.key===r.key);return a>-1&&i.splice(a,1),{keyNull:t,noRealDefault:r.key===t,defaultPlayer:r,customUrlItems:i}}async function Nv(e,t){const n=[],s=await sn();for(const i of t){const o=Nr(e,{key:`_ce_p_${i.key}`,label:i.label,icon:i.icon,title:i.memo,onClick:async(r,a)=>{cp(i,s,r,a);}});n.push(o);}return n}var Mt=(e=>(e[e.full=0]="full",e[e.pure=1]="pure",e[e.fullUnique=2]="fullUnique",e[e.pureUnique=3]="pureUnique",e))(Mt||{});async function Oi(e,t){if(t===0)return e;if(t===2)return Array.from(new Set(e));const n=[];for(const s of e){const i=s.replace(/\.[^.]+$/,"");t===1?n.push(i):t===3&&(n.includes(i)||n.push(i));}return n}var Cn=(e=>(e[e.unixPath=0]="unixPath",e[e.winPath=1]="winPath",e[e.unixParentPath=2]="unixParentPath",e[e.winParentPath=3]="winParentPath",e))(Cn||{});async function Gr(e,t,n){const s=n===1||n===3;let o=n===2||n===3?t.replace(/\/[^/]+$/,""):t;return o.startsWith("/")||(o="/"+o),s&&(o=o.replace(/\//g,"\\")),o}async function Fv(e){return async(t,n)=>{const s=await Gt(),r=Ii()[0].querySelectorAll("li[file_id].selected");if(!r.length){ae({title:"文件移动到同名目录",text:"当前目录没有选中文件",icon:"warning"});return}let a=`当前已选中${r.length}个文件,是否继续?`;a+=`
      处理逻辑:

      0.「同名目录」取自纯文件名(不带后缀名)。

      1.如果同名目录已存在,会直接使用已存在的目录。

      2.同名目录相同的文件,会被移动到同一个目录里面。

      示例: movie.mp4 的同名目录为 movie

      `;const{value:l}=await ue.fire({title:"文件移动到同名目录",html:a,icon:"warning",showCancelButton:!0,confirmButtonText:"继续",cancelButtonText:"取消"});if(l){ue.fire({title:"文件移动到同名目录",html:"正在处理...",didOpen:()=>{ue.showLoading();}});for(let c=0;cn.replace(/\{key\}/g,l).replace(/\{label\}/g,c).replace(/\{icon\}/g,u),i=[{label:"移动",body:s("move","移动","icon-operate ifo-move"),enabled:!0},{label:"重命名",body:s("edit_name","重命名","icon-operate ifo-rename"),enabled:!0},{label:"删除",body:s("delete","删除","icon-operate ifo-remove"),enabled:!0},{label:"属性",body:s("attribute","属性","icon-operate ifo-property"),enabled:!0}],o=l=>{let c="";for(const u of l)u.enabled&&(c+=u.body);return c},r=()=>{const l="ce-menu-init",c=document.querySelectorAll(`li[rel="item"]:not(.${l})`),u=o(i);for(let p=0;p');v.innerHTML=u,m.classList.add(l),m.appendChild(v);}};r(),new MutationObserver(async([l])=>{l.type==="childList"&&r();}).observe(t,{childList:!0});}async function zv(){const e=await sn(),t=await cu(e);return new Di({key:"_play_with_x_d",label:t.defaultPlayer.label,injectDecider:lb,title:t.defaultPlayer.memo,onClick:async(n,s)=>{t.noRealDefault||cp(t.defaultPlayer,e,n,s);},subItems:[...await Nv(Io,t.customUrlItems)]})}function Qs(e){const t=$(e.target).closest("li"),n=Js(t);return !n||!n.id?(ae({text:"无法获取当前文件信息",timer:1200}),null):n}async function qv(){const e=[...(await uu()).filter(t=>t.enabled),...Vv.filter(t=>t.enabled),...(await Ti(ms.search)).filter(t=>t.enabled)];return new Di({key:"_search_with_name_d",label:"搜索",icon:"",title:"使用名称搜索",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const s=Qs(n);if(!s)return;const i=Wr({search_value:s.name,cid:await Gt()});window.open(i,"_blank","noopener noreferrer");},subItems:[...await lp(Io,e)]})}async function Wv(){return new Io({key:"_lh_view_in_clouddrive",label:"在CloudDrive中查看",icon:"icon-operate ifo-exportdir",title:"在CloudDrive2 Web页面中查看",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=Qs(t);n&&await wr(n);}})}async function Kv(e){const{namePathConfig:t}=e,n=[];return t.copyFullName&&n.push(await Nc("完整名称",Mt.full)),t.copyFullName&&n.push(await Nc("不含后缀",Mt.pure)),t.copySha1&&n.push(await Rc(!1)),t.copySha1WithName&&n.push(await Rc(!0)),t.copyUnixPath&&n.push(await Wi("路径(Unix)",Cn.unixPath)),t.copyWinPath&&n.push(await Wi("路径(Windows)",Cn.winPath)),t.copyParentUnixPath&&n.push(await Wi("上级路径(Unix)",Cn.unixParentPath)),t.copyParentWinPath&&n.push(await Wi("上级路径(Windows)",Cn.winParentPath)),t.viewInCloudDrive&&n.push(await Wv()),new Di({key:"_lh_copy_name_path",label:"名称路径",title:"复制文件名称路径",onClick:async(s,i)=>{},subItems:n})}async function Rc(e=!0){return new Io({key:"_lh_copy_sha1",label:"文件sha1"+(e?"(带文件名)":""),icon:"icon-operate ifo-copy",title:"复制文件sha1"+(e?"。格式为 xxx//yyy,xxx为sha1,yyy为文件名":""),onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const s=Qs(n);if(!s)return;if(s.isDir){ae({text:"该功能仅对文件有效",icon:"warning",timer:2e3});return}const i=s.hash+(e?`//${s.name}`:"");yt(i),ae({title:"复制文件sha1",text:"已复制文件sha1",icon:"success",timer:1e3});}})}async function Nc(e,t){return new Io({key:`_lh_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,s)=>{s.stopPropagation(),s.preventDefault();const i=Qs(s);if(!i)return;let o=[i.name];o=await Oi(o,t),yt(o.join(` `)),ae({title:"复制名称",text:`已复制选中文件名,复制类型:${e}`,icon:"success",timer:1e3});}})}async function Wi(e,t){return new Io({key:`_lh_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,s)=>{s.stopPropagation(),s.preventDefault();const i=Qs(s);if(!i)return;const o=await Kr(i),r=await Gr(i,o,t);yt(r),ae({title:"复制路径",text:`已复制选中路径,复制类型:${e}`,icon:"success",timer:1e3});}})}async function Gv(){return new Di({injectDecider:ab,key:"_open_in_new_tab",label:"新标签页",icon:"",title:"在新标签页打开",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=Qs(t);if(!n)return;const s=Rs(n.id);window.open(s,"_blank","noopener noreferrer");}})}async function pp(e){ue.fire({title:"查找重复文件",html:`正在查找文件:${e.name},请稍候...`,icon:"info",showConfirmButton:!1,allowOutsideClick:!1}),ue.showLoading();try{const t=await jv(e.id);t.state?t.data.length>1?(ue.update({html:"查找成功,将打开结果页面",icon:"success",showConfirmButton:!0}),xf(Hv(e.id),{active:!0}),nn(5e3).then(()=>{ue.close();})):ue.update({html:"没有重复文件",icon:"warning",showConfirmButton:!0}):ue.update({html:`查找失败!${t.code} - ${t.message}`,icon:"error",showConfirmButton:!0});}catch(t){ue.update({html:`查找失败!${t.message}`,icon:"error",showConfirmButton:!0});}finally{ue.hideLoading();}}async function Jv(e){return new Di({injectDecider:rb,key:"_lh_find_repeat",label:"重复文件",icon:"",title:"查找重复文件,找到后会在新标签页中打开处理页面",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const s=Qs(n);s&&await pp(s);}})}function Yv(e){return {enabled:!0,openInNewTab:!0,search:!0,play:!0,getDownloadUrl:!0,copyNames:!0,namePathConfig:Pi(),findRepeat:!1,exportList:!1,viewInCloudDrive:!0,...e}}class Di extends cn{constructor(n){super(n);ve(this,"menuType",ze.listItemHover);this.onMouseOver=Ur,this.onMouseOut=jr;}}class Io extends cn{constructor(){super(...arguments);ve(this,"menuType",ze.listItemHoverSub);}}class Qv extends Ei{constructor(n){super(n);ve(this,"menuType",ze.listItemHover);ve(this,"useObserver",!0);ve(this,"observeTarget","#js_data_list");ve(this,"disposeObserverAfterInjection",!1);this.handleLoadAll();}async inject(){const n=document.querySelector("#js_data_list");if(n){const s=n.querySelectorAll(".list-contents > ul:not([ce-done]) > li .file-opr");s.length&&await this.perform(Array.from(s));}super.inject();}async handleLoadAll(){if(window.top===window.self)return;const n=document.querySelector("#js_pagination_box");if(!n){console.warn("[ListItemHoverMenuInjector.handleLoadAll] 未找到「#js_pagination_box」元素");return}function s(i){const o=document.querySelector("#js_data_list .list-contents > ul > li");o&&(o.querySelector(".ce-menu")||i(!0));}n.addEventListener("click",async i=>{i.preventDefault(),i.stopPropagation();const o=i.target;let r=!1;if((o.getAttribute("menu")==="load_all_file"||o.closest('[menu="load_all_file"]'))&&(r=!0),!r)return;console.log("[ListItemHoverMenuInjector.handleLoadAll] 点击了「加载全部」按钮"),await _s(s,500,3e5);const a=document.querySelector("#js_data_list .list-contents > ul");a==null||a.removeAttribute("ce-done");const l=document.querySelector("#js_data_list");if(l){const c=".list-contents > ul:not([ce-done]) > li .file-opr";if(!document.querySelector(c)){const p=await sn();await fp(p);}const u=l.querySelectorAll(c);u.length&&await this.perform(Array.from(u));}});}async perform(n){await super.perform(n);const s=document.querySelector("#js_data_list .list-contents > ul");s==null||s.setAttribute("ce-done","");}}function Xv(e){return {enabled:!0,moveToSelfNameDir:!0,copyNames:!0,namePathConfig:Pi(),play:!0,...e}}class du extends cn{constructor(n){super(n);ve(this,"menuType",ze.selection);this.onMouseOver=Ur,this.onMouseOut=jr;}}class ci extends cn{constructor(){super(...arguments);ve(this,"menuType",ze.selectionSub);}}class Zv extends ib{}class e1 extends Ei{constructor(){super(...arguments);ve(this,"menuType",ze.selection);ve(this,"useObserver",!0);ve(this,"observeTarget","#js_top_panel_box #js_operate_box");ve(this,"disposeObserverAfterInjection",!1);}}function hp(e){return {enabled:!1,search:!0,copyNames:!0,namePathConfig:Pi({copyWinPath:!1,copyUnixPath:!1,copyParentUnixPath:!1,copyParentWinPath:!1,viewInCloudDrive:!1}),...e}}class mp extends cn{constructor(n){super(n);ve(this,"menuType",ze.shareListItemHover);this.onMouseOver=Ur,this.onMouseOut=jr;}}class fu extends cn{constructor(){super(...arguments);ve(this,"menuType",ze.shareListItemHoverSub);}}class t1 extends Ei{constructor(){super(...arguments);ve(this,"menuType",ze.shareListItemHover);ve(this,"useObserver",!0);ve(this,"observeTarget","#js-list");ve(this,"disposeObserverAfterInjection",!1);}async inject(){const n=document.querySelector("#js-list");if(n){const s=n.querySelectorAll("ul#js-list:not([ce-done]) > li .file-opr");s.length&&await this.perform(Array.from(s));}super.inject();}}var ze=(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.shareListItemHover="shareListItemHover",e.shareListItemHoverSub="shareListItemHoverSub",e))(ze||{}),Hs=(e=>(e.listItemHover="列表项悬浮菜单",e.listItemHoverSub="列表项悬浮子菜单",e.listItemContext="列表项右键菜单",e.listItemContextSub="列表项右键子菜单",e.selection="选中项菜单",e.selectionSub="选中项子菜单",e.dirContext="当前目录右键菜单",e.dirContextSub="当前目录右键子菜单",e.shareListItemHover="分享列表项悬浮菜单",e.shareListItemHoverSub="分享列表项悬浮子菜单",e))(Hs||{}),Xn=(e=>(e[e.after=0]="after",e[e.before=1]="before",e))(Xn||{}),Ln=(e=>(e.none="none",e.alt="alt",e.ctrl="ctrl",e.shift="shift",e.meta="meta",e))(Ln||{});const gp=mt.menu;function n1(e){return {enabled:!0,hideSelectionMenuLabel:!1,enableInSearch:!0,manageOfficialMenus:!1,keyToTriggerManual:"none",injectManualFuncPosition:np.first,m3u8TempDir:".ce-m3u8-temp",defaultPlayer:"p_builtin_online",listItemHover:Yv(void 0),listItemContext:fb(void 0),selection:Xv(void 0),dirContext:ub(void 0),shareListItemHover:hp(void 0),...e}}async function sn(){const e=n1(),t=await et.get(gp,e);return su(e,t)}async function yp(e){await et.set(gp,e);}/** * @vue/shared v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function pu(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const at={},co=[],Nn=()=>{},s1=()=>!1,Jr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hu=e=>e.startsWith("onUpdate:"),It=Object.assign,mu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1);},o1=Object.prototype.hasOwnProperty,nt=(e,t)=>o1.call(e,t),Me=Array.isArray,fo=e=>Mi(e)==="[object Map]",To=e=>Mi(e)==="[object Set]",Fc=e=>Mi(e)==="[object Date]",Ue=e=>typeof e=="function",wt=e=>typeof e=="string",En=e=>typeof e=="symbol",ut=e=>e!==null&&typeof e=="object",gu=e=>(ut(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),wp=Object.prototype.toString,Mi=e=>wp.call(e),i1=e=>Mi(e).slice(8,-1),bp=e=>Mi(e)==="[object Object]",yu=e=>wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xo=pu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},r1=/-(\w)/g,wn=Yr(e=>e.replace(r1,(t,n)=>n?n.toUpperCase():"")),a1=/\B([A-Z])/g,Cs=Yr(e=>e.replace(a1,"-$1").toLowerCase()),Qr=Yr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ma=Yr(e=>e?`on${Qr(e)}`:""),ds=(e,t)=>!Object.is(e,t),rr=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n});},br=e=>{const t=parseFloat(e);return isNaN(t)?e:t},l1=e=>{const t=wt(e)?Number(e):NaN;return isNaN(t)?e:t};let Uc;const Xr=()=>Uc||(Uc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fn(e){if(Me(e)){const t={};for(let n=0;n{if(n){const s=n.split(c1);s.length>1&&(t[s[0].trim()]=s[1].trim());}}),t}function Fe(e){let t="";if(wt(e))t=e;else if(Me(e))for(let n=0;nVs(n,t))}const xp=e=>!!(e&&e.__v_isRef===!0),K=e=>wt(e)?e:e==null?"":Me(e)||ut(e)&&(e.toString===wp||!Ue(e.toString))?xp(e)?K(e.value):JSON.stringify(e,Cp,2):String(e),Cp=(e,t)=>xp(t)?Cp(e,t.value):fo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[La(s,o)+" =>"]=i,n),{})}:To(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>La(n))}:En(t)?La(t):ut(t)&&!Me(t)&&!bp(t)?String(t):t,La=(e,t="")=>{var n;return En(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let ln;class y1{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ln,!t&&ln&&(this.index=(ln.scopes||(ln.scopes=[])).push(this)-1);}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(ei){let t=ei;for(ei=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n;}}let e;for(;Zo;){let t=Zo;for(Zo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger();}catch(s){e||(e=s);}t=n;}}if(e)throw e}function Ep(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t;}function Pp(e){let t,n=e.depsTail,s=n;for(;s;){const i=s.prevDep;s.version===-1?(s===n&&(n=i),_u(s),b1(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=i;}e.deps=t,e.depsTail=n;}function dl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ap(t.dep.computed)||t.dep.version!==t.version))return !0;return !!e._dirty}function Ap(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===di))return;e.globalVersion=di;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!dl(e)){e.flags&=-3;return}const n=dt,s=Sn;dt=e,Sn=!0;try{Ep(e);const i=e.fn(e._value);(t.version===0||ds(i,e._value))&&(e._value=i,t.version++);}catch(i){throw t.version++,i}finally{dt=n,Sn=s,Pp(e),e.flags&=-3;}}function _u(e,t=!1){const{dep:n,prevSub:s,nextSub:i}=e;if(s&&(s.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)_u(o,!0);}!t&&!--n.sc&&n.map&&n.map.delete(n.key);}function b1(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0);}let Sn=!0;const Ip=[];function ks(){Ip.push(Sn),Sn=!1;}function Ss(){const e=Ip.pop();Sn=e===void 0?!0:e;}function jc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=dt;dt=void 0;try{t();}finally{dt=n;}}}let di=0;class v1{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0;}}class xu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0;}track(t){if(!dt||!Sn||dt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==dt)n=this.activeLink=new v1(dt,this),dt.deps?(n.prevDep=dt.depsTail,dt.depsTail.nextDep=n,dt.depsTail=n):dt.deps=dt.depsTail=n,Tp(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=dt.depsTail,n.nextDep=void 0,dt.depsTail.nextDep=n,dt.depsTail=n,dt.deps===n&&(dt.deps=s);}return n}trigger(t){this.version++,di++,this.notify(t);}notify(t){bu();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify();}finally{vu();}}}function Tp(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Tp(s);}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e;}}const vr=new WeakMap,Ns=Symbol(""),fl=Symbol(""),fi=Symbol("");function Ft(e,t,n){if(Sn&&dt){let s=vr.get(e);s||vr.set(e,s=new Map);let i=s.get(n);i||(s.set(n,i=new xu),i.map=s,i.key=n),i.track();}}function Jn(e,t,n,s,i,o){const r=vr.get(e);if(!r){di++;return}const a=l=>{l&&l.trigger();};if(bu(),t==="clear")r.forEach(a);else {const l=Me(e),c=l&&yu(n);if(l&&n==="length"){const u=Number(s);r.forEach((p,m)=>{(m==="length"||m===fi||!En(m)&&m>=u)&&a(p);});}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),c&&a(r.get(fi)),t){case"add":l?c&&a(r.get("length")):(a(r.get(Ns)),fo(e)&&a(r.get(fl)));break;case"delete":l||(a(r.get(Ns)),fo(e)&&a(r.get(fl)));break;case"set":fo(e)&&a(r.get(Ns));break}}vu();}function _1(e,t){const n=vr.get(e);return n&&n.get(t)}function ro(e){const t=Ze(e);return t===e?t:(Ft(t,"iterate",fi),mn(e)?t:t.map(Ut))}function Zr(e){return Ft(e=Ze(e),"iterate",fi),e}const x1={__proto__:null,[Symbol.iterator](){return Ra(this,Symbol.iterator,Ut)},concat(...e){return ro(this).concat(...e.map(t=>Me(t)?ro(t):t))},entries(){return Ra(this,"entries",e=>(e[1]=Ut(e[1]),e))},every(e,t){return Kn(this,"every",e,t,void 0,arguments)},filter(e,t){return Kn(this,"filter",e,t,n=>n.map(Ut),arguments)},find(e,t){return Kn(this,"find",e,t,Ut,arguments)},findIndex(e,t){return Kn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Kn(this,"findLast",e,t,Ut,arguments)},findLastIndex(e,t){return Kn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Kn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Na(this,"includes",e)},indexOf(...e){return Na(this,"indexOf",e)},join(e){return ro(this).join(e)},lastIndexOf(...e){return Na(this,"lastIndexOf",e)},map(e,t){return Kn(this,"map",e,t,void 0,arguments)},pop(){return Vo(this,"pop")},push(...e){return Vo(this,"push",e)},reduce(e,...t){return Hc(this,"reduce",e,t)},reduceRight(e,...t){return Hc(this,"reduceRight",e,t)},shift(){return Vo(this,"shift")},some(e,t){return Kn(this,"some",e,t,void 0,arguments)},splice(...e){return Vo(this,"splice",e)},toReversed(){return ro(this).toReversed()},toSorted(e){return ro(this).toSorted(e)},toSpliced(...e){return ro(this).toSpliced(...e)},unshift(...e){return Vo(this,"unshift",e)},values(){return Ra(this,"values",Ut)}};function Ra(e,t,n){const s=Zr(e),i=s[t]();return s!==e&&!mn(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const C1=Array.prototype;function Kn(e,t,n,s,i,o){const r=Zr(e),a=r!==e&&!mn(e),l=r[t];if(l!==C1[t]){const p=l.apply(e,o);return a?Ut(p):p}let c=n;r!==e&&(a?c=function(p,m){return n.call(this,Ut(p),m,e)}:n.length>2&&(c=function(p,m){return n.call(this,p,m,e)}));const u=l.call(r,c,s);return a&&i?i(u):u}function Hc(e,t,n,s){const i=Zr(e);let o=n;return i!==e&&(mn(e)?n.length>3&&(o=function(r,a,l){return n.call(this,r,a,l,e)}):o=function(r,a,l){return n.call(this,r,Ut(a),l,e)}),i[t](o,...s)}function Na(e,t,n){const s=Ze(e);Ft(s,"iterate",fi);const i=s[t](...n);return (i===-1||i===!1)&&Su(n[0])?(n[0]=Ze(n[0]),s[t](...n)):i}function Vo(e,t,n=[]){ks(),bu();const s=Ze(e)[t].apply(e,n);return vu(),Ss(),s}const k1=pu("__proto__,__v_isRef,__isVue"),Op=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(En));function S1(e){En(e)||(e=String(e));const t=Ze(this);return Ft(t,"has",e),t.hasOwnProperty(e)}class Dp{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n;}get(t,n,s){const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return !i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?L1:Rp:o?Bp:Lp).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=Me(t);if(!i){let l;if(r&&(l=x1[n]))return l;if(n==="hasOwnProperty")return S1}const a=Reflect.get(t,n,At(t)?t:s);return (En(n)?Op.has(n):k1(n))||(i||Ft(t,"get",n),o)?a:At(a)?r&&yu(n)?a:a.value:ut(a)?i?Np(a):ea(a):a}}class Mp extends Dp{constructor(t=!1){super(!1,t);}set(t,n,s,i){let o=t[n];if(!this._isShallow){const l=zs(o);if(!mn(s)&&!zs(s)&&(o=Ze(o),s=Ze(s)),!Me(t)&&At(o)&&!At(s))return l?!1:(o.value=s,!0)}const r=Me(t)&&yu(n)?Number(n)e,Ki=e=>Reflect.getPrototypeOf(e);function I1(e,t,n){return function(...s){const i=this.__v_raw,o=Ze(i),r=fo(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=i[e](...s),u=n?pl:t?hl:Ut;return !t&&Ft(o,"iterate",l?fl:Ns),{next(){const{value:p,done:m}=c.next();return m?{value:p,done:m}:{value:a?[u(p[0]),u(p[1])]:u(p),done:m}},[Symbol.iterator](){return this}}}}function Gi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function T1(e,t){const n={get(i){const o=this.__v_raw,r=Ze(o),a=Ze(i);e||(ds(i,a)&&Ft(r,"get",i),Ft(r,"get",a));const{has:l}=Ki(r),c=t?pl:e?hl:Ut;if(l.call(r,i))return c(o.get(i));if(l.call(r,a))return c(o.get(a));o!==r&&o.get(i);},get size(){const i=this.__v_raw;return !e&&Ft(Ze(i),"iterate",Ns),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,r=Ze(o),a=Ze(i);return e||(ds(i,a)&&Ft(r,"has",i),Ft(r,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const r=this,a=r.__v_raw,l=Ze(a),c=t?pl:e?hl:Ut;return !e&&Ft(l,"iterate",Ns),a.forEach((u,p)=>i.call(o,c(u),c(p),r))}};return It(n,e?{add:Gi("add"),set:Gi("set"),delete:Gi("delete"),clear:Gi("clear")}:{add(i){!t&&!mn(i)&&!zs(i)&&(i=Ze(i));const o=Ze(this);return Ki(o).has.call(o,i)||(o.add(i),Jn(o,"add",i,i)),this},set(i,o){!t&&!mn(o)&&!zs(o)&&(o=Ze(o));const r=Ze(this),{has:a,get:l}=Ki(r);let c=a.call(r,i);c||(i=Ze(i),c=a.call(r,i));const u=l.call(r,i);return r.set(i,o),c?ds(o,u)&&Jn(r,"set",i,o):Jn(r,"add",i,o),this},delete(i){const o=Ze(this),{has:r,get:a}=Ki(o);let l=r.call(o,i);l||(i=Ze(i),l=r.call(o,i)),a&&a.call(o,i);const c=o.delete(i);return l&&Jn(o,"delete",i,void 0),c},clear(){const i=Ze(this),o=i.size!==0,r=i.clear();return o&&Jn(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=I1(i,e,t);}),n}function Cu(e,t){const n=T1(e,t);return (s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(nt(n,i)&&i in s?n:s,i,o)}const O1={get:Cu(!1,!1)},D1={get:Cu(!1,!0)},M1={get:Cu(!0,!1)};const Lp=new WeakMap,Bp=new WeakMap,Rp=new WeakMap,L1=new WeakMap;function B1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function R1(e){return e.__v_skip||!Object.isExtensible(e)?0:B1(i1(e))}function ea(e){return zs(e)?e:ku(e,!1,E1,O1,Lp)}function N1(e){return ku(e,!1,A1,D1,Bp)}function Np(e){return ku(e,!0,P1,M1,Rp)}function ku(e,t,n,s,i){if(!ut(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=R1(e);if(r===0)return e;const a=new Proxy(e,r===2?s:n);return i.set(e,a),a}function po(e){return zs(e)?po(e.__v_raw):!!(e&&e.__v_isReactive)}function zs(e){return !!(e&&e.__v_isReadonly)}function mn(e){return !!(e&&e.__v_isShallow)}function Su(e){return e?!!e.__v_raw:!1}function Ze(e){const t=e&&e.__v_raw;return t?Ze(t):e}function F1(e){return !nt(e,"__v_skip")&&Object.isExtensible(e)&&vp(e,"__v_skip",!0),e}const Ut=e=>ut(e)?ea(e):e,hl=e=>ut(e)?Np(e):e;function At(e){return e?e.__v_isRef===!0:!1}function ne(e){return U1(e,!1)}function U1(e,t){return At(e)?e:new j1(e,t)}class j1{constructor(t,n){this.dep=new xu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ze(t),this._value=n?t:Ut(t),this.__v_isShallow=n;}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||mn(t)||zs(t);t=s?t:Ze(t),ds(t,n)&&(this._rawValue=t,this._value=s?t:Ut(t),this.dep.trigger());}}function re(e){return At(e)?e.value:e}const H1={get:(e,t,n)=>t==="__v_raw"?e:re(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return At(i)&&!At(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function Fp(e){return po(e)?e:new Proxy(e,H1)}function V1(e){const t=Me(e)?new Array(e.length):{};for(const n in e)t[n]=Up(e,n);return t}class z1{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0;}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t;}get dep(){return _1(Ze(this._object),this._key)}}class q1{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0;}get value(){return this._value=this._getter()}}function W1(e,t,n){return At(e)?e:Ue(e)?new q1(e):ut(e)&&arguments.length>1?Up(e,t,n):ne(e)}function Up(e,t,n){const s=e[t];return At(s)?s:new z1(e,t,n)}class K1{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new xu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=di-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s;}notify(){if(this.flags|=16,!(this.flags&8)&&dt!==this)return $p(this,!0),!0}get value(){const t=this.dep.track();return Ap(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t);}}function G1(e,t,n=!1){let s,i;return Ue(e)?s=e:(s=e.get,i=e.set),new K1(s,i,n)}const Ji={},_r=new WeakMap;let Ts;function J1(e,t=!1,n=Ts){if(n){let s=_r.get(n);s||_r.set(n,s=[]),s.push(e);}}function Y1(e,t,n=at){const{immediate:s,deep:i,once:o,scheduler:r,augmentJob:a,call:l}=n,c=M=>i?M:mn(M)||i===!1||i===0?Yn(M,1):Yn(M);let u,p,m,v,w=!1,_=!1;if(At(e)?(p=()=>e.value,w=mn(e)):po(e)?(p=()=>c(e),w=!0):Me(e)?(_=!0,w=e.some(M=>po(M)||mn(M)),p=()=>e.map(M=>{if(At(M))return M.value;if(po(M))return c(M);if(Ue(M))return l?l(M,2):M()})):Ue(e)?t?p=l?()=>l(e,2):e:p=()=>{if(m){ks();try{m();}finally{Ss();}}const M=Ts;Ts=u;try{return l?l(e,3,[v]):e(v)}finally{Ts=M;}}:p=Nn,t&&i){const M=p,U=i===!0?1/0:i;p=()=>Yn(M(),U);}const R=w1(),L=()=>{u.stop(),R&&mu(R.effects,u);};if(o&&t){const M=t;t=(...U)=>{M(...U),L();};}let j=_?new Array(e.length).fill(Ji):Ji;const T=M=>{if(!(!(u.flags&1)||!u.dirty&&!M))if(t){const U=u.run();if(i||w||(_?U.some((z,G)=>ds(z,j[G])):ds(U,j))){m&&m();const z=Ts;Ts=u;try{const G=[U,j===Ji?void 0:_&&j[0]===Ji?[]:j,v];l?l(t,3,G):t(...G),j=U;}finally{Ts=z;}}}else u.run();};return a&&a(T),u=new kp(p),u.scheduler=r?()=>r(T,!1):T,v=M=>J1(M,!1,u),m=u.onStop=()=>{const M=_r.get(u);if(M){if(l)l(M,4);else for(const U of M)U();_r.delete(u);}},t?s?T(!0):j=u.run():r?r(T.bind(null,!0),!0):u.run(),L.pause=u.pause.bind(u),L.resume=u.resume.bind(u),L.stop=L,L}function Yn(e,t=1/0,n){if(t<=0||!ut(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,At(e))Yn(e.value,t,n);else if(Me(e))for(let s=0;s{Yn(s,t,n);});else if(bp(e)){for(const s in e)Yn(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Yn(e[s],t,n);}return e}/** * @vue/runtime-core v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Li(e,t,n,s){try{return s?e(...s):e()}catch(i){Bi(i,t,n);}}function Hn(e,t,n,s){if(Ue(e)){const i=Li(e,t,n,s);return i&&gu(i)&&i.catch(o=>{Bi(o,t,n);}),i}if(Me(e)){const i=[];for(let o=0;o>>1,i=qt[s],o=pi(i);o=pi(n)?qt.push(e):qt.splice(X1(t),0,e),e.flags|=1,Hp();}}function Hp(){xr||(xr=jp.then(zp));}function ml(e){Me(e)?ho.push(...e):rs&&e.id===-1?rs.splice(ao+1,0,e):e.flags&1||(ho.push(e),e.flags|=1),Hp();}function Vc(e,t,n=Mn+1){for(;npi(n)-pi(s));if(ho.length=0,rs){rs.push(...t);return}for(rs=t,ao=0;aoe.id==null?e.flags&2?-1:1/0:e.id;function zp(e){try{for(Mn=0;MnCe;function Ce(e,t=Pt,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&Zc(-1);const o=Cr(t);let r;try{r=e(...i);}finally{Cr(o),s._d&&Zc(1);}return r};return s._n=!0,s._c=!0,s._d=!0,s}function oe(e,t){if(Pt===null)return e;const n=ia(Pt),s=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function Eu(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Eu(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t;}/*! #__NO_SIDE_EFFECTS__ */function Te(e,t){return Ue(e)?It({name:e.name},t,{setup:e}):e}function qp(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0];}function gl(e,t,n,s,i=!1){if(Me(e)){e.forEach((w,_)=>gl(w,t&&(Me(t)?t[_]:t),n,s,i));return}if(mo(s)&&!i)return;const o=s.shapeFlag&4?ia(s.component):s.el,r=i?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===at?a.refs={}:a.refs,p=a.setupState,m=Ze(p),v=p===at?()=>!1:w=>nt(m,w);if(c!=null&&c!==l&&(wt(c)?(u[c]=null,v(c)&&(p[c]=null)):At(c)&&(c.value=null)),Ue(l))Li(l,a,12,[r,u]);else {const w=wt(l),_=At(l);if(w||_){const R=()=>{if(e.f){const L=w?v(l)?p[l]:u[l]:l.value;i?Me(L)&&mu(L,o):Me(L)?L.includes(o)||L.push(o):w?(u[l]=[o],v(l)&&(p[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value));}else w?(u[l]=r,v(l)&&(p[l]=r)):_&&(l.value=r,e.k&&(u[e.k]=r));};r?(R.id=-1,an(R,n)):R();}}}Xr().requestIdleCallback;Xr().cancelIdleCallback;const mo=e=>!!e.type.__asyncLoader,Wp=e=>e.type.__isKeepAlive;function o0(e,t){Kp(e,"a",t);}function i0(e,t){Kp(e,"da",t);}function Kp(e,t,n=Dt){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent;}return e()});if(na(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Wp(i.parent.vnode)&&r0(s,t,n,i),i=i.parent;}}function r0(e,t,n,s){const i=na(t,e,s,!0);Xs(()=>{mu(s[t],i);},n);}function na(e,t,n=Dt,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{ks();const a=Ws(n),l=Hn(t,n,e,r);return a(),Ss(),l});return s?i.unshift(o):i.push(o),o}}const es=e=>(t,n=Dt)=>{(!mi||e==="sp")&&na(e,(...s)=>t(...s),n);},Tt=es("bm"),Yt=es("m"),a0=es("bu"),l0=es("u"),Gp=es("bum"),Xs=es("um"),u0=es("sp"),c0=es("rtg"),d0=es("rtc");function f0(e,t=Dt){na("ec",e,t);}const Pu="components",p0="directives";function gs(e,t){return Au(Pu,e,!0,t)||e}const Jp=Symbol.for("v-ndc");function bn(e){return wt(e)?Au(Pu,e,!1)||e:e||Jp}function h0(e){return Au(p0,e)}function Au(e,t,n=!0,s=!1){const i=Pt||Dt;if(i){const o=i.type;if(e===Pu){const a=i_(o,!1);if(a&&(a===t||a===wn(t)||a===Qr(wn(t))))return o}const r=zc(i[e]||o[e],t)||zc(i.appContext[e],t);return !r&&s?o:r}}function zc(e,t){return e&&(e[t]||e[wn(t)]||e[Qr(wn(t))])}function Je(e,t,n,s){let i;const o=n,r=Me(e);if(r||wt(e)){const a=r&&po(e);let l=!1;a&&(l=!mn(e),e=Zr(e)),i=new Array(e.length);for(let c=0,u=e.length;ct(a,l,void 0,o));else {const a=Object.keys(e);i=new Array(a.length);for(let l=0,c=a.length;l{const o=s.fn(...i);return o&&(o.key=s.key),o}:s.fn);}return e}function Qe(e,t,n={},s,i){if(Pt.ce||Pt.parent&&mo(Pt.parent)&&Pt.parent.ce)return t!=="default"&&(n.name=t),S(),st(Le,null,[ge("slot",n,s&&s())],64);let o=e[t];o&&o._c&&(o._d=!1),S();const r=o&&Yp(o(n)),a=n.key||r&&r.key,l=st(Le,{key:(a&&!En(a)?a:`_${t}`)+(!r&&s?"_fb":"")},r||(s?s():[]),r&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Yp(e){return e.some(t=>Co(t)?!(t.type===Vn||t.type===Le&&!Yp(t.children)):!0)?e:null}const yl=e=>e?_h(e)?ia(e):yl(e.parent):null,ti=It(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>yl(e.parent),$root:e=>yl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Iu(e),$forceUpdate:e=>e.f||(e.f=()=>{$u(e.update);}),$nextTick:e=>e.n||(e.n=qs.bind(e.proxy)),$watch:e=>B0.bind(e)}),Fa=(e,t)=>e!==at&&!e.__isScriptSetup&&nt(e,t),g0={get({_:e},t){if(t==="__v_skip")return !0;const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const v=r[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else {if(Fa(s,t))return r[t]=1,s[t];if(i!==at&&nt(i,t))return r[t]=2,i[t];if((c=e.propsOptions[0])&&nt(c,t))return r[t]=3,o[t];if(n!==at&&nt(n,t))return r[t]=4,n[t];wl&&(r[t]=0);}}const u=ti[t];let p,m;if(u)return t==="$attrs"&&Ft(e.attrs,"get",""),u(e);if((p=a.__cssModules)&&(p=p[t]))return p;if(n!==at&&nt(n,t))return r[t]=4,n[t];if(m=l.config.globalProperties,nt(m,t))return m[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return Fa(i,t)?(i[t]=n,!0):s!==at&&nt(s,t)?(s[t]=n,!0):nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:o}},r){let a;return !!n[r]||e!==at&&nt(e,r)||Fa(t,r)||(a=o[0])&&nt(a,r)||nt(s,r)||nt(ti,r)||nt(i.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:nt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function qc(e){return Me(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function jt(e){const t=e_();let n=e();return Cl(),gu(n)&&(n=n.catch(s=>{throw Ws(t),s})),[n,()=>Ws(t)]}let wl=!0;function y0(e){const t=Iu(e),n=e.proxy,s=e.ctx;wl=!1,t.beforeCreate&&Wc(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:p,mounted:m,beforeUpdate:v,updated:w,activated:_,deactivated:R,beforeDestroy:L,beforeUnmount:j,destroyed:T,unmounted:M,render:U,renderTracked:z,renderTriggered:G,errorCaptured:me,serverPrefetch:we,expose:ce,inheritAttrs:H,components:F,directives:ee,filters:de}=t;if(c&&w0(c,s,null),r)for(const Pe in r){const $e=r[Pe];Ue($e)&&(s[Pe]=$e.bind(n));}if(i){const Pe=i.call(n,n);ut(Pe)&&(e.data=ea(Pe));}if(wl=!0,o)for(const Pe in o){const $e=o[Pe],He=Ue($e)?$e.bind(n,n):Ue($e.get)?$e.get.bind(n,n):Nn,tt=!Ue($e)&&Ue($e.set)?$e.set.bind(n):Nn,xe=ot({get:He,set:tt});Object.defineProperty(s,Pe,{enumerable:!0,configurable:!0,get:()=>xe.value,set:O=>xe.value=O});}if(a)for(const Pe in a)Qp(a[Pe],s,n,Pe);if(l){const Pe=Ue(l)?l.call(n):l;Reflect.ownKeys(Pe).forEach($e=>{Jo($e,Pe[$e]);});}u&&Wc(u,e,"c");function Se(Pe,$e){Me($e)?$e.forEach(He=>Pe(He.bind(n))):$e&&Pe($e.bind(n));}if(Se(Tt,p),Se(Yt,m),Se(a0,v),Se(l0,w),Se(o0,_),Se(i0,R),Se(f0,me),Se(d0,z),Se(c0,G),Se(Gp,j),Se(Xs,M),Se(u0,we),Me(ce))if(ce.length){const Pe=e.exposed||(e.exposed={});ce.forEach($e=>{Object.defineProperty(Pe,$e,{get:()=>n[$e],set:He=>n[$e]=He});});}else e.exposed||(e.exposed={});U&&e.render===Nn&&(e.render=U),H!=null&&(e.inheritAttrs=H),F&&(e.components=F),ee&&(e.directives=ee),we&&qp(e);}function w0(e,t,n=Nn){Me(e)&&(e=bl(e));for(const s in e){const i=e[s];let o;ut(i)?"default"in i?o=ni(i.from||s,i.default,!0):o=ni(i.from||s):o=ni(i),At(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o;}}function Wc(e,t,n){Hn(Me(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n);}function Qp(e,t,n,s){let i=s.includes(".")?dh(n,s):()=>n[s];if(wt(e)){const o=t[e];Ue(o)&&Xe(i,o);}else if(Ue(e))Xe(i,e.bind(n));else if(ut(e))if(Me(e))e.forEach(o=>Qp(o,t,n,s));else {const o=Ue(e.handler)?e.handler.bind(n):t[e.handler];Ue(o)&&Xe(i,o,e);}}function Iu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(c=>kr(l,c,r,!0)),kr(l,t,r)),ut(t)&&o.set(t,l),l}function kr(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&kr(e,o,n,!0),i&&i.forEach(r=>kr(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=b0[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r];}return e}const b0={data:Kc,props:Gc,emits:Gc,methods:Go,computed:Go,beforeCreate:zt,created:zt,beforeMount:zt,mounted:zt,beforeUpdate:zt,updated:zt,beforeDestroy:zt,beforeUnmount:zt,destroyed:zt,unmounted:zt,activated:zt,deactivated:zt,errorCaptured:zt,serverPrefetch:zt,components:Go,directives:Go,watch:_0,provide:Kc,inject:v0};function Kc(e,t){return t?e?function(){return It(Ue(e)?e.call(this,this):e,Ue(t)?t.call(this,this):t)}:t:e}function v0(e,t){return Go(bl(e),bl(t))}function bl(e){if(Me(e)){const t={};for(let n=0;n1)return n&&Ue(t)?t.call(s&&s.proxy):t}}const Zp={},eh=()=>Object.create(Zp),th=e=>Object.getPrototypeOf(e)===Zp;function k0(e,t,n,s=!1){const i={},o=eh();e.propsDefaults=Object.create(null),nh(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:N1(i):e.type.props?e.props=i:e.props=o,e.attrs=o;}function S0(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=Ze(i),[l]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let p=0;p{l=!0;const[m,v]=sh(p,t,!0);It(r,m),v&&a.push(...v);};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u);}if(!o&&!l)return ut(e)&&s.set(e,co),co;if(Me(o))for(let u=0;ue[0]==="_"||e==="$stable",Tu=e=>Me(e)?e.map(_n):[_n(e)],E0=(e,t,n)=>{if(t._n)return t;const s=Ce((...i)=>Tu(t(...i)),n);return s._c=!1,s},ih=(e,t,n)=>{const s=e._ctx;for(const i in e){if(oh(i))continue;const o=e[i];if(Ue(o))t[i]=E0(i,o,s);else if(o!=null){const r=Tu(o);t[i]=()=>r;}}},rh=(e,t)=>{const n=Tu(t);e.slots.default=()=>n;},ah=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s]);},P0=(e,t,n)=>{const s=e.slots=eh();if(e.vnode.shapeFlag&32){const i=t._;i?(ah(s,t,n),n&&vp(s,"_",i,!0)):ih(t,s);}else t&&rh(e,t);},A0=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=at;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:ah(i,t,n):(o=!t.$stable,ih(t,i)),r=t;}else t&&(rh(e,t),r={default:1});if(o)for(const a in i)!oh(a)&&r[a]==null&&delete i[a];},an=G0;function I0(e){return T0(e)}function T0(e,t){const n=Xr();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:p,nextSibling:m,setScopeId:v=Nn,insertStaticContent:w}=e,_=(x,E,N,q=null,J=null,ie=null,ye=void 0,le=null,pe=!!E.dynamicChildren)=>{if(x===E)return;x&&!ls(x,E)&&(q=vt(x),O(x,J,ie,!0),x=null),E.patchFlag===-2&&(pe=!1,E.dynamicChildren=null);const{type:he,ref:Ie,shapeFlag:Y}=E;switch(he){case oa:R(x,E,N,q);break;case Vn:L(x,E,N,q);break;case ar:x==null&&j(E,N,q,ye);break;case Le:F(x,E,N,q,J,ie,ye,le,pe);break;default:Y&1?U(x,E,N,q,J,ie,ye,le,pe):Y&6?ee(x,E,N,q,J,ie,ye,le,pe):(Y&64||Y&128)&&he.process(x,E,N,q,J,ie,ye,le,pe,Q);}Ie!=null&&J&&gl(Ie,x&&x.ref,ie,E||x,!E);},R=(x,E,N,q)=>{if(x==null)s(E.el=a(E.children),N,q);else {const J=E.el=x.el;E.children!==x.children&&c(J,E.children);}},L=(x,E,N,q)=>{x==null?s(E.el=l(E.children||""),N,q):E.el=x.el;},j=(x,E,N,q)=>{[x.el,x.anchor]=w(x.children,E,N,q,x.el,x.anchor);},T=({el:x,anchor:E},N,q)=>{let J;for(;x&&x!==E;)J=m(x),s(x,N,q),x=J;s(E,N,q);},M=({el:x,anchor:E})=>{let N;for(;x&&x!==E;)N=m(x),i(x),x=N;i(E);},U=(x,E,N,q,J,ie,ye,le,pe)=>{E.type==="svg"?ye="svg":E.type==="math"&&(ye="mathml"),x==null?z(E,N,q,J,ie,ye,le,pe):we(x,E,J,ie,ye,le,pe);},z=(x,E,N,q,J,ie,ye,le)=>{let pe,he;const{props:Ie,shapeFlag:Y,transition:ke,dirs:g}=x;if(pe=x.el=r(x.type,ie,Ie&&Ie.is,Ie),Y&8?u(pe,x.children):Y&16&&me(x.children,pe,null,q,J,Ua(x,ie),ye,le),g&&Ps(x,null,q,"created"),G(pe,x,x.scopeId,ye,q),Ie){for(const k in Ie)k!=="value"&&!Xo(k)&&o(pe,k,null,Ie[k],ie,q);"value"in Ie&&o(pe,"value",null,Ie.value,ie),(he=Ie.onVnodeBeforeMount)&&On(he,q,x);}g&&Ps(x,null,q,"beforeMount");const b=O0(J,ke);b&&ke.beforeEnter(pe),s(pe,E,N),((he=Ie&&Ie.onVnodeMounted)||b||g)&&an(()=>{he&&On(he,q,x),b&&ke.enter(pe),g&&Ps(x,null,q,"mounted");},J);},G=(x,E,N,q,J)=>{if(N&&v(x,N),q)for(let ie=0;ie{for(let he=pe;he{const le=E.el=x.el;let{patchFlag:pe,dynamicChildren:he,dirs:Ie}=E;pe|=x.patchFlag&16;const Y=x.props||at,ke=E.props||at;let g;if(N&&As(N,!1),(g=ke.onVnodeBeforeUpdate)&&On(g,N,E,x),Ie&&Ps(E,x,N,"beforeUpdate"),N&&As(N,!0),(Y.innerHTML&&ke.innerHTML==null||Y.textContent&&ke.textContent==null)&&u(le,""),he?ce(x.dynamicChildren,he,le,N,q,Ua(E,J),ie):ye||$e(x,E,le,null,N,q,Ua(E,J),ie,!1),pe>0){if(pe&16)H(le,Y,ke,N,J);else if(pe&2&&Y.class!==ke.class&&o(le,"class",null,ke.class,J),pe&4&&o(le,"style",Y.style,ke.style,J),pe&8){const b=E.dynamicProps;for(let k=0;k{g&&On(g,N,E,x),Ie&&Ps(E,x,N,"updated");},q);},ce=(x,E,N,q,J,ie,ye)=>{for(let le=0;le{if(E!==N){if(E!==at)for(const ie in E)!Xo(ie)&&!(ie in N)&&o(x,ie,E[ie],null,J,q);for(const ie in N){if(Xo(ie))continue;const ye=N[ie],le=E[ie];ye!==le&&ie!=="value"&&o(x,ie,le,ye,J,q);}"value"in N&&o(x,"value",E.value,N.value,J);}},F=(x,E,N,q,J,ie,ye,le,pe)=>{const he=E.el=x?x.el:a(""),Ie=E.anchor=x?x.anchor:a("");let{patchFlag:Y,dynamicChildren:ke,slotScopeIds:g}=E;g&&(le=le?le.concat(g):g),x==null?(s(he,N,q),s(Ie,N,q),me(E.children||[],N,Ie,J,ie,ye,le,pe)):Y>0&&Y&64&&ke&&x.dynamicChildren?(ce(x.dynamicChildren,ke,N,J,ie,ye,le),(E.key!=null||J&&E===J.subTree)&&lh(x,E,!0)):$e(x,E,N,Ie,J,ie,ye,le,pe);},ee=(x,E,N,q,J,ie,ye,le,pe)=>{E.slotScopeIds=le,x==null?E.shapeFlag&512?J.ctx.activate(E,N,q,ye,pe):de(E,N,q,J,ie,ye,pe):_e(x,E,pe);},de=(x,E,N,q,J,ie,ye)=>{const le=x.component=Z0(x,q,J);if(Wp(x)&&(le.ctx.renderer=Q),t_(le,!1,ye),le.asyncDep){if(J&&J.registerDep(le,Se,ye),!x.el){const pe=le.subTree=ge(Vn);L(null,pe,E,N);}}else Se(le,x,E,N,J,ie,ye);},_e=(x,E,N)=>{const q=E.component=x.component;if(H0(x,E,N))if(q.asyncDep&&!q.asyncResolved){Pe(q,E,N);return}else q.next=E,q.update();else E.el=x.el,q.vnode=E;},Se=(x,E,N,q,J,ie,ye)=>{const le=()=>{if(x.isMounted){let{next:Y,bu:ke,u:g,parent:b,vnode:k}=x;{const X=uh(x);if(X){Y&&(Y.el=k.el,Pe(x,Y,ye)),X.asyncDep.then(()=>{x.isUnmounted||le();});return}}let P=Y,V;As(x,!1),Y?(Y.el=k.el,Pe(x,Y,ye)):Y=k,ke&&rr(ke),(V=Y.props&&Y.props.onVnodeBeforeUpdate)&&On(V,b,Y,k),As(x,!0);const A=ja(x),te=x.subTree;x.subTree=A,_(te,A,p(te.el),vt(te),x,J,ie),Y.el=A.el,P===null&&Ou(x,A.el),g&&an(g,J),(V=Y.props&&Y.props.onVnodeUpdated)&&an(()=>On(V,b,Y,k),J);}else {let Y;const{el:ke,props:g}=E,{bm:b,m:k,parent:P,root:V,type:A}=x,te=mo(E);if(As(x,!1),b&&rr(b),!te&&(Y=g&&g.onVnodeBeforeMount)&&On(Y,P,E),As(x,!0),ke&&W){const X=()=>{x.subTree=ja(x),W(ke,x.subTree,x,J,null);};te&&A.__asyncHydrate?A.__asyncHydrate(ke,x,X):X();}else {V.ce&&V.ce._injectChildStyle(A);const X=x.subTree=ja(x);_(null,X,N,q,x,J,ie),E.el=X.el;}if(k&&an(k,J),!te&&(Y=g&&g.onVnodeMounted)){const X=E;an(()=>On(Y,P,X),J);}(E.shapeFlag&256||P&&mo(P.vnode)&&P.vnode.shapeFlag&256)&&x.a&&an(x.a,J),x.isMounted=!0,E=N=q=null;}};x.scope.on();const pe=x.effect=new kp(le);x.scope.off();const he=x.update=pe.run.bind(pe),Ie=x.job=pe.runIfDirty.bind(pe);Ie.i=x,Ie.id=x.uid,pe.scheduler=()=>$u(Ie),As(x,!0),he();},Pe=(x,E,N)=>{E.component=x;const q=x.vnode.props;x.vnode=E,x.next=null,S0(x,E.props,q,N),A0(x,E.children,N),ks(),Vc(x),Ss();},$e=(x,E,N,q,J,ie,ye,le,pe=!1)=>{const he=x&&x.children,Ie=x?x.shapeFlag:0,Y=E.children,{patchFlag:ke,shapeFlag:g}=E;if(ke>0){if(ke&128){tt(he,Y,N,q,J,ie,ye,le,pe);return}else if(ke&256){He(he,Y,N,q,J,ie,ye,le,pe);return}}g&8?(Ie&16&&ht(he,J,ie),Y!==he&&u(N,Y)):Ie&16?g&16?tt(he,Y,N,q,J,ie,ye,le,pe):ht(he,J,ie,!0):(Ie&8&&u(N,""),g&16&&me(Y,N,q,J,ie,ye,le,pe));},He=(x,E,N,q,J,ie,ye,le,pe)=>{x=x||co,E=E||co;const he=x.length,Ie=E.length,Y=Math.min(he,Ie);let ke;for(ke=0;keIe?ht(x,J,ie,!0,!1,Y):me(E,N,q,J,ie,ye,le,pe,Y);},tt=(x,E,N,q,J,ie,ye,le,pe)=>{let he=0;const Ie=E.length;let Y=x.length-1,ke=Ie-1;for(;he<=Y&&he<=ke;){const g=x[he],b=E[he]=pe?as(E[he]):_n(E[he]);if(ls(g,b))_(g,b,N,null,J,ie,ye,le,pe);else break;he++;}for(;he<=Y&&he<=ke;){const g=x[Y],b=E[ke]=pe?as(E[ke]):_n(E[ke]);if(ls(g,b))_(g,b,N,null,J,ie,ye,le,pe);else break;Y--,ke--;}if(he>Y){if(he<=ke){const g=ke+1,b=gke)for(;he<=Y;)O(x[he],J,ie,!0),he++;else {const g=he,b=he,k=new Map;for(he=b;he<=ke;he++){const Be=E[he]=pe?as(E[he]):_n(E[he]);Be.key!=null&&k.set(Be.key,he);}let P,V=0;const A=ke-b+1;let te=!1,X=0;const fe=new Array(A);for(he=0;he=A){O(Be,J,ie,!0);continue}let Ee;if(Be.key!=null)Ee=k.get(Be.key);else for(P=b;P<=ke;P++)if(fe[P-b]===0&&ls(Be,E[P])){Ee=P;break}Ee===void 0?O(Be,J,ie,!0):(fe[Ee-b]=he+1,Ee>=X?X=Ee:te=!0,_(Be,E[Ee],N,null,J,ie,ye,le,pe),V++);}const Re=te?D0(fe):co;for(P=Re.length-1,he=A-1;he>=0;he--){const Be=b+he,Ee=E[Be],We=Be+1{const{el:ie,type:ye,transition:le,children:pe,shapeFlag:he}=x;if(he&6){xe(x.component.subTree,E,N,q);return}if(he&128){x.suspense.move(E,N,q);return}if(he&64){ye.move(x,E,N,Q);return}if(ye===Le){s(ie,E,N);for(let Y=0;Yle.enter(ie),J);else {const{leave:Y,delayLeave:ke,afterLeave:g}=le,b=()=>s(ie,E,N),k=()=>{Y(ie,()=>{b(),g&&g();});};ke?ke(ie,b,k):k();}else s(ie,E,N);},O=(x,E,N,q=!1,J=!1)=>{const{type:ie,props:ye,ref:le,children:pe,dynamicChildren:he,shapeFlag:Ie,patchFlag:Y,dirs:ke,cacheIndex:g}=x;if(Y===-2&&(J=!1),le!=null&&gl(le,null,N,x,!0),g!=null&&(E.renderCache[g]=void 0),Ie&256){E.ctx.deactivate(x);return}const b=Ie&1&&ke,k=!mo(x);let P;if(k&&(P=ye&&ye.onVnodeBeforeUnmount)&&On(P,E,x),Ie&6)Ae(x.component,N,q);else {if(Ie&128){x.suspense.unmount(N,q);return}b&&Ps(x,null,E,"beforeUnmount"),Ie&64?x.type.remove(x,E,N,Q,q):he&&!he.hasOnce&&(ie!==Le||Y>0&&Y&64)?ht(he,E,N,!1,!0):(ie===Le&&Y&384||!J&&Ie&16)&&ht(pe,E,N),q&&Ve(x);}(k&&(P=ye&&ye.onVnodeUnmounted)||b)&&an(()=>{P&&On(P,E,x),b&&Ps(x,null,E,"unmounted");},N);},Ve=x=>{const{type:E,el:N,anchor:q,transition:J}=x;if(E===Le){pt(N,q);return}if(E===ar){M(x);return}const ie=()=>{i(N),J&&!J.persisted&&J.afterLeave&&J.afterLeave();};if(x.shapeFlag&1&&J&&!J.persisted){const{leave:ye,delayLeave:le}=J,pe=()=>ye(N,ie);le?le(x.el,ie,pe):pe();}else ie();},pt=(x,E)=>{let N;for(;x!==E;)N=m(x),i(x),x=N;i(E);},Ae=(x,E,N)=>{const{bum:q,scope:J,job:ie,subTree:ye,um:le,m:pe,a:he}=x;Yc(pe),Yc(he),q&&rr(q),J.stop(),ie&&(ie.flags|=8,O(ye,x,E,N)),le&&an(le,E),an(()=>{x.isUnmounted=!0;},E),E&&E.pendingBranch&&!E.isUnmounted&&x.asyncDep&&!x.asyncResolved&&x.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve());},ht=(x,E,N,q=!1,J=!1,ie=0)=>{for(let ye=ie;ye{if(x.shapeFlag&6)return vt(x.component.subTree);if(x.shapeFlag&128)return x.suspense.next();const E=m(x.anchor||x.el),N=E&&E[n0];return N?m(N):E};let Rt=!1;const Ct=(x,E,N)=>{x==null?E._vnode&&O(E._vnode,null,null,!0):_(E._vnode||null,x,E,null,null,null,N),E._vnode=x,Rt||(Rt=!0,Vc(),Vp(),Rt=!1);},Q={p:_,um:O,m:xe,r:Ve,mt:de,mc:me,pc:$e,pbc:ce,n:vt,o:e};let D,W;return {render:Ct,hydrate:D,createApp:C0(Ct,D)}}function Ua({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function As({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5);}function O0(e,t){return (!e||e&&!e.pendingBranch)&&t&&!t.persisted}function lh(e,t,n=!1){const s=e.children,i=t.children;if(Me(s)&&Me(i))for(let o=0;o>1,e[n[a]]0&&(t[s]=n[o-1]),n[o]=s);}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function uh(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:uh(t)}function Yc(e){if(e)for(let t=0;tni(M0);function Xe(e,t,n){return ch(e,t,n)}function ch(e,t,n=at){const{immediate:s,deep:i,flush:o,once:r}=n,a=It({},n),l=t&&s||!t&&o!=="post";let c;if(mi){if(o==="sync"){const v=L0();c=v.__watcherHandles||(v.__watcherHandles=[]);}else if(!l){const v=()=>{};return v.stop=Nn,v.resume=Nn,v.pause=Nn,v}}const u=Dt;a.call=(v,w,_)=>Hn(v,u,w,_);let p=!1;o==="post"?a.scheduler=v=>{an(v,u&&u.suspense);}:o!=="sync"&&(p=!0,a.scheduler=(v,w)=>{w?v():$u(v);}),a.augmentJob=v=>{t&&(v.flags|=4),p&&(v.flags|=2,u&&(v.id=u.uid,v.i=u));};const m=Y1(e,t,a);return mi&&(c?c.push(m):l&&m()),m}function B0(e,t,n){const s=this.proxy,i=wt(e)?e.includes(".")?dh(s,e):()=>s[e]:e.bind(s,s);let o;Ue(t)?o=t:(o=t.handler,n=t);const r=Ws(this),a=ch(i,o.bind(s),n);return r(),a}function dh(e,t){const n=t.split(".");return ()=>{let s=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wn(t)}Modifiers`]||e[`${Cs(t)}Modifiers`];function N0(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||at;let i=n;const o=t.startsWith("update:"),r=o&&R0(s,t.slice(7));r&&(r.trim&&(i=n.map(u=>wt(u)?u.trim():u)),r.number&&(i=n.map(br)));let a,l=s[a=Ma(t)]||s[a=Ma(wn(t))];!l&&o&&(l=s[a=Ma(Cs(t))]),l&&Hn(l,e,6,i);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Hn(c,e,6,i);}}function fh(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!Ue(e)){const l=c=>{const u=fh(c,t,!0);u&&(a=!0,It(r,u));};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l);}return !o&&!a?(ut(e)&&s.set(e,null),null):(Me(o)?o.forEach(l=>r[l]=null):It(r,o),ut(e)&&s.set(e,r),r)}function sa(e,t){return !e||!Jr(t)?!1:(t=t.slice(2).replace(/Once$/,""),nt(e,t[0].toLowerCase()+t.slice(1))||nt(e,Cs(t))||nt(e,t))}function ja(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:c,renderCache:u,props:p,data:m,setupState:v,ctx:w,inheritAttrs:_}=e,R=Cr(e);let L,j;try{if(n.shapeFlag&4){const M=i||s,U=M;L=_n(c.call(U,M,u,p,v,m,w)),j=a;}else {const M=t;L=_n(M.length>1?M(p,{attrs:a,slots:r,emit:l}):M(p,null)),j=t.props?a:U0(a);}}catch(M){si.length=0,Bi(M,e,1),L=ge(Vn);}let T=L;if(j&&_!==!1){const M=Object.keys(j),{shapeFlag:U}=T;M.length&&U&7&&(o&&M.some(hu)&&(j=j0(j,o)),T=ko(T,j,!1,!0));}return n.dirs&&(T=ko(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&Eu(T,n.transition),L=T,Cr(R),L}function F0(e,t=!0){let n;for(let s=0;s{let t;for(const n in e)(n==="class"||n==="style"||Jr(n))&&((t||(t={}))[n]=e[n]);return t},j0=(e,t)=>{const n={};for(const s in e)(!hu(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function H0(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return !0;if(n&&l>=0){if(l&1024)return !0;if(l&16)return s?Qc(s,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let p=0;pe.__isSuspense;let _l=0;const V0={name:"Suspense",__isSuspense:!0,process(e,t,n,s,i,o,r,a,l,c){if(e==null)z0(t,n,s,i,o,r,a,l,c);else {if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}q0(e,t,n,s,i,r,a,l,c);}},hydrate:W0,normalize:K0},hh=V0;function hi(e,t){const n=e.props&&e.props[t];Ue(n)&&n();}function z0(e,t,n,s,i,o,r,a,l){const{p:c,o:{createElement:u}}=l,p=u("div"),m=e.suspense=mh(e,i,s,t,p,n,o,r,a,l);c(null,m.pendingBranch=e.ssContent,p,null,s,m,o,r),m.deps>0?(hi(e,"onPending"),hi(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,o,r),yo(m,e.ssFallback)):m.resolve(!1,!0);}function q0(e,t,n,s,i,o,r,a,{p:l,um:c,o:{createElement:u}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const m=t.ssContent,v=t.ssFallback,{activeBranch:w,pendingBranch:_,isInFallback:R,isHydrating:L}=p;if(_)p.pendingBranch=m,ls(m,_)?(l(_,m,p.hiddenContainer,null,i,p,o,r,a),p.deps<=0?p.resolve():R&&(L||(l(w,v,n,s,i,null,o,r,a),yo(p,v)))):(p.pendingId=_l++,L?(p.isHydrating=!1,p.activeBranch=_):c(_,i,p),p.deps=0,p.effects.length=0,p.hiddenContainer=u("div"),R?(l(null,m,p.hiddenContainer,null,i,p,o,r,a),p.deps<=0?p.resolve():(l(w,v,n,s,i,null,o,r,a),yo(p,v))):w&&ls(m,w)?(l(w,m,n,s,i,p,o,r,a),p.resolve(!0)):(l(null,m,p.hiddenContainer,null,i,p,o,r,a),p.deps<=0&&p.resolve()));else if(w&&ls(m,w))l(w,m,n,s,i,p,o,r,a),yo(p,m);else if(hi(t,"onPending"),p.pendingBranch=m,m.shapeFlag&512?p.pendingId=m.component.suspenseId:p.pendingId=_l++,l(null,m,p.hiddenContainer,null,i,p,o,r,a),p.deps<=0)p.resolve();else {const{timeout:j,pendingId:T}=p;j>0?setTimeout(()=>{p.pendingId===T&&p.fallback(v);},j):j===0&&p.fallback(v);}}function mh(e,t,n,s,i,o,r,a,l,c,u=!1){const{p,m,um:v,n:w,o:{parentNode:_,remove:R}}=c;let L;const j=J0(e);j&&t&&t.pendingBranch&&(L=t.pendingId,t.deps++);const T=e.props?l1(e.props.timeout):void 0,M=o,U={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:i,deps:0,pendingId:_l++,timeout:typeof T=="number"?T:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(z=!1,G=!1){const{vnode:me,activeBranch:we,pendingBranch:ce,pendingId:H,effects:F,parentComponent:ee,container:de}=U;let _e=!1;U.isHydrating?U.isHydrating=!1:z||(_e=we&&ce.transition&&ce.transition.mode==="out-in",_e&&(we.transition.afterLeave=()=>{H===U.pendingId&&(m(ce,de,o===M?w(we):o,0),ml(F));}),we&&(_(we.el)===de&&(o=w(we)),v(we,ee,U,!0)),_e||m(ce,de,o,0)),yo(U,ce),U.pendingBranch=null,U.isInFallback=!1;let Se=U.parent,Pe=!1;for(;Se;){if(Se.pendingBranch){Se.effects.push(...F),Pe=!0;break}Se=Se.parent;}!Pe&&!_e&&ml(F),U.effects=[],j&&t&&t.pendingBranch&&L===t.pendingId&&(t.deps--,t.deps===0&&!G&&t.resolve()),hi(me,"onResolve");},fallback(z){if(!U.pendingBranch)return;const{vnode:G,activeBranch:me,parentComponent:we,container:ce,namespace:H}=U;hi(G,"onFallback");const F=w(me),ee=()=>{U.isInFallback&&(p(null,z,ce,F,we,null,H,a,l),yo(U,z));},de=z.transition&&z.transition.mode==="out-in";de&&(me.transition.afterLeave=ee),U.isInFallback=!0,v(me,we,null,!0),de||ee();},move(z,G,me){U.activeBranch&&m(U.activeBranch,z,G,me),U.container=z;},next(){return U.activeBranch&&w(U.activeBranch)},registerDep(z,G,me){const we=!!U.pendingBranch;we&&U.deps++;const ce=z.vnode.el;z.asyncDep.catch(H=>{Bi(H,z,0);}).then(H=>{if(z.isUnmounted||U.isUnmounted||U.pendingId!==z.suspenseId)return;z.asyncResolved=!0;const{vnode:F}=z;kl(z,H,!1),ce&&(F.el=ce);const ee=!ce&&z.subTree.el;G(z,F,_(ce||z.subTree.el),ce?null:w(z.subTree),U,r,me),ee&&R(ee),Ou(z,F.el),we&&--U.deps===0&&U.resolve();});},unmount(z,G){U.isUnmounted=!0,U.activeBranch&&v(U.activeBranch,n,z,G),U.pendingBranch&&v(U.pendingBranch,n,z,G);}};return U}function W0(e,t,n,s,i,o,r,a,l){const c=t.suspense=mh(t,s,n,e.parentNode,document.createElement("div"),null,i,o,r,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,r);return c.deps===0&&c.resolve(!1,!0),u}function K0(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=Xc(s?n.default:n),e.ssFallback=s?Xc(n.fallback):ge(Vn);}function Xc(e){let t;if(Ue(e)){const n=xo&&e._c;n&&(e._d=!1,S()),e=e(),n&&(e._d=!0,t=tn,gh());}return Me(e)&&(e=F0(e)),e=_n(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function G0(e,t){t&&t.pendingBranch?Me(e)?t.effects.push(...e):t.effects.push(e):ml(e);}function yo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,s&&s.subTree===n&&(s.vnode.el=i,Ou(s,i));}function J0(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Le=Symbol.for("v-fgt"),oa=Symbol.for("v-txt"),Vn=Symbol.for("v-cmt"),ar=Symbol.for("v-stc"),si=[];let tn=null;function S(e=!1){si.push(tn=e?null:[]);}function gh(){si.pop(),tn=si[si.length-1]||null;}let xo=1;function Zc(e){xo+=e,e<0&&tn&&(tn.hasOnce=!0);}function yh(e){return e.dynamicChildren=xo>0?tn||co:null,gh(),xo>0&&tn&&tn.push(e),e}function I(e,t,n,s,i,o){return yh(d(e,t,n,s,i,o,!0))}function st(e,t,n,s,i){return yh(ge(e,t,n,s,i,!0))}function Co(e){return e?e.__v_isVNode===!0:!1}function ls(e,t){return e.type===t.type&&e.key===t.key}const wh=({key:e})=>e??null,lr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?wt(e)||At(e)||Ue(e)?{i:Pt,r:e,k:t,f:!!n}:e:null);function d(e,t=null,n=null,s=0,i=null,o=e===Le?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wh(t),ref:t&&lr(t),scopeId:ta,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Pt};return a?(Du(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=wt(n)?8:16),xo>0&&!r&&tn&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&tn.push(l),l}const ge=Y0;function Y0(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===Jp)&&(e=Vn),Co(e)){const a=ko(e,t,!0);return n&&Du(a,n),xo>0&&!o&&tn&&(a.shapeFlag&6?tn[tn.indexOf(e)]=a:tn.push(a)),a.patchFlag=-2,a}if(r_(e)&&(e=e.__vccOpts),t){t=bh(t);let{class:a,style:l}=t;a&&!wt(a)&&(t.class=Fe(a)),ut(l)&&(Su(l)&&!Me(l)&&(l=It({},l)),t.style=Fn(l));}const r=wt(e)?1:ph(e)?128:s0(e)?64:ut(e)?4:Ue(e)?2:0;return d(e,t,n,s,i,r,o,!0)}function bh(e){return e?Su(e)||th(e)?It({},e):e:null}function ko(e,t,n=!1,s=!1){const{props:i,ref:o,patchFlag:r,children:a,transition:l}=e,c=t?Mu(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&wh(c),ref:t&&t.ref?n&&o?Me(o)?o.concat(lr(t)):[o,lr(t)]:lr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ko(e.ssContent),ssFallback:e.ssFallback&&ko(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&Eu(u,l.clone(u)),u}function B(e=" ",t=0){return ge(oa,null,e,t)}function vh(e,t){const n=ge(ar,null,e);return n.staticCount=t,n}function be(e="",t=!1){return t?(S(),st(Vn,null,e)):ge(Vn,null,e)}function _n(e){return e==null||typeof e=="boolean"?ge(Vn):Me(e)?ge(Le,null,e.slice()):Co(e)?as(e):ge(oa,null,String(e))}function as(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ko(e)}function Du(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Me(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Du(e,i()),i._c&&(i._d=!0));return}else {n=32;const i=t._;!i&&!th(t)?t._ctx=Pt:i===3&&Pt&&(Pt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024));}else Ue(t)?(t={default:t,_ctx:Pt},n=32):(t=String(t),s&64?(n=16,t=[B(t)]):n=8);e.children=t,e.shapeFlag|=n;}function Mu(...e){const t={};for(let n=0;nDt||Pt;let Sr,xl;{const e=Xr(),t=(n,s)=>{let i;return (i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o);}};Sr=t("__VUE_INSTANCE_SETTERS__",n=>Dt=n),xl=t("__VUE_SSR_SETTERS__",n=>mi=n);}const Ws=e=>{const t=Dt;return Sr(e),e.scope.on(),()=>{e.scope.off(),Sr(t);}},Cl=()=>{Dt&&Dt.scope.off(),Sr(null);};function _h(e){return e.vnode.shapeFlag&4}let mi=!1;function t_(e,t=!1,n=!1){t&&xl(t);const{props:s,children:i}=e.vnode,o=_h(e);k0(e,s,o,t),P0(e,i,n);const r=o?n_(e,t):void 0;return t&&xl(!1),r}function n_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,g0);const{setup:s}=n;if(s){ks();const i=e.setupContext=s.length>1?o_(e):null,o=Ws(e),r=Li(s,e,0,[e.props,i]),a=gu(r);if(Ss(),o(),(a||e.sp)&&!mo(e)&&qp(e),a){if(r.then(Cl,Cl),t)return r.then(l=>{kl(e,l,t);}).catch(l=>{Bi(l,e,0);});e.asyncDep=r;}else kl(e,r,t);}else xh(e,t);}function kl(e,t,n){Ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ut(t)&&(e.setupState=Fp(t)),xh(e,n);}let ed;function xh(e,t,n){const s=e.type;if(!e.render){if(!t&&ed&&!s.render){const i=s.template||Iu(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,c=It(It({isCustomElement:o,delimiters:a},r),l);s.render=ed(i,c);}}e.render=s.render||Nn;}{const i=Ws(e);ks();try{y0(e);}finally{Ss(),i();}}}const s_={get(e,t){return Ft(e,"get",""),e[t]}};function o_(e){const t=n=>{e.exposed=n||{};};return {attrs:new Proxy(e.attrs,s_),slots:e.slots,emit:e.emit,expose:t}}function ia(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Fp(F1(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ti)return ti[n](e)},has(t,n){return n in t||n in ti}})):e.proxy}function i_(e,t=!0){return Ue(e)?e.displayName||e.name:e.name||t&&e.__name}function r_(e){return Ue(e)&&"__vccOpts"in e}const ot=(e,t)=>G1(e,t,mi);function a_(e,t,n){const s=arguments.length;return s===2?ut(t)&&!Me(t)?Co(t)?ge(e,null,[t]):ge(e,t):ge(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Co(n)&&(n=[n]),ge(e,t,n))}const l_="3.5.12";/** * @vue/runtime-dom v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Sl;const td=typeof window<"u"&&window.trustedTypes;if(td)try{Sl=td.createPolicy("vue",{createHTML:e=>e});}catch{}const Ch=Sl?e=>Sl.createHTML(e):e=>e,u_="http://www.w3.org/2000/svg",c_="http://www.w3.org/1998/Math/MathML",Gn=typeof document<"u"?document:null,nd=Gn&&Gn.createElement("template"),d_={insert:(e,t,n)=>{t.insertBefore(e,n||null);},remove:e=>{const t=e.parentNode;t&&t.removeChild(e);},createElement:(e,t,n,s)=>{const i=t==="svg"?Gn.createElementNS(u_,e):t==="mathml"?Gn.createElementNS(c_,e):n?Gn.createElement(e,{is:n}):Gn.createElement(e);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>Gn.createTextNode(e),createComment:e=>Gn.createComment(e),setText:(e,t)=>{e.nodeValue=t;},setElementText:(e,t)=>{e.textContent=t;},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Gn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"");},insertStaticContent(e,t,n,s,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else {nd.innerHTML=Ch(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const a=nd.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l);}t.insertBefore(a,n);}return [r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},f_=Symbol("_vtc");function p_(e,t,n){const s=e[f_];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t;}const $r=Symbol("_vod"),kh=Symbol("_vsh"),Wt={beforeMount(e,{value:t},{transition:n}){e[$r]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):zo(e,t);},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e);},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),zo(e,!0),s.enter(e)):s.leave(e,()=>{zo(e,!1);}):zo(e,t));},beforeUnmount(e,{value:t}){zo(e,t);}};function zo(e,t){e.style.display=t?e[$r]:"none",e[kh]=!t;}const h_=Symbol(""),m_=/(^|;)\s*display\s*:/;function g_(e,t,n){const s=e.style,i=wt(n);let o=!1;if(n&&!i){if(t)if(wt(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&ur(s,a,"");}else for(const r in t)n[r]==null&&ur(s,r,"");for(const r in n)r==="display"&&(o=!0),ur(s,r,n[r]);}else if(i){if(t!==n){const r=s[h_];r&&(n+=";"+r),s.cssText=n,o=m_.test(n);}}else t&&e.removeAttribute("style");$r in e&&(e[$r]=o?s.display:"",e[kh]&&(s.display="none"));}const sd=/\s*!important$/;function ur(e,t,n){if(Me(n))n.forEach(s=>ur(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else {const s=y_(e,t);sd.test(n)?e.setProperty(Cs(s),n.replace(sd,""),"important"):e[s]=n;}}const od=["Webkit","Moz","ms"],Ha={};function y_(e,t){const n=Ha[t];if(n)return n;let s=wn(t);if(s!=="filter"&&s in e)return Ha[t]=s;s=Qr(s);for(let i=0;iVa||(__.then(()=>Va=0),Va=Date.now());function C_(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Hn(k_(s,n.value),t,5,[s]);};return n.value=e,n.attached=x_(),n}function k_(e,t){if(Me(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0;},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const cd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,S_=(e,t,n,s,i,o)=>{const r=i==="svg";t==="class"?p_(e,s,r):t==="style"?g_(e,n,s):Jr(t)?hu(t)||b_(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$_(e,t,s,r))?(ad(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rd(e,t,s,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!wt(s))?ad(e,wn(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),rd(e,t,s,r));};function $_(e,t,n,s){if(s)return !!(t==="innerHTML"||t==="textContent"||t in e&&cd(t)&&Ue(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return !1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return !1}return cd(t)&&wt(n)?!1:t in e}const ys=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Me(t)?n=>rr(t,n):t};function E_(e){e.target.composing=!0;}function dd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")));}const gn=Symbol("_assign"),Ke={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[gn]=ys(i);const o=s||i.props&&i.props.type==="number";Qn(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=br(a)),e[gn](a);}),n&&Qn(e,"change",()=>{e.value=e.value.trim();}),t||(Qn(e,"compositionstart",E_),Qn(e,"compositionend",dd),Qn(e,"change",dd));},mounted(e,{value:t}){e.value=t??"";},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:i,number:o}},r){if(e[gn]=ys(r),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?br(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||i&&e.value.trim()===l)||(e.value=l));}},De={deep:!0,created(e,t,n){e[gn]=ys(n),Qn(e,"change",()=>{const s=e._modelValue,i=So(e),o=e.checked,r=e[gn];if(Me(s)){const a=wu(s,i),l=a!==-1;if(o&&!l)r(s.concat(i));else if(!o&&l){const c=[...s];c.splice(a,1),r(c);}}else if(To(s)){const a=new Set(s);o?a.add(i):a.delete(i),r(a);}else r($h(e,o));});},mounted:fd,beforeUpdate(e,t,n){e[gn]=ys(n),fd(e,t,n);}};function fd(e,{value:t,oldValue:n},s){e._modelValue=t;let i;if(Me(t))i=wu(t,s.props.value)>-1;else if(To(t))i=t.has(s.props.value);else {if(t===n)return;i=Vs(t,$h(e,!0));}e.checked!==i&&(e.checked=i);}const Sh={created(e,{value:t},n){e.checked=Vs(t,n.props.value),e[gn]=ys(n),Qn(e,"change",()=>{e[gn](So(e));});},beforeUpdate(e,{value:t,oldValue:n},s){e[gn]=ys(s),t!==n&&(e.checked=Vs(t,s.props.value));}},Pn={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const i=To(t);Qn(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?br(So(r)):So(r));e[gn](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,qs(()=>{e._assigning=!1;});}),e[gn]=ys(s);},mounted(e,{value:t}){pd(e,t);},beforeUpdate(e,t,n){e[gn]=ys(n);},updated(e,{value:t}){e._assigning||pd(e,t);}};function pd(e,t){const n=e.multiple,s=Me(t);if(!(n&&!s&&!To(t))){for(let i=0,o=e.options.length;iString(c)===String(a)):r.selected=wu(t,a)>-1;}else r.selected=t.has(a);else if(Vs(So(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1);}}function So(e){return "_value"in e?e._value:e.value}function $h(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const P_={created(e,t,n){Yi(e,t,n,null,"created");},mounted(e,t,n){Yi(e,t,n,null,"mounted");},beforeUpdate(e,t,n,s){Yi(e,t,n,s,"beforeUpdate");},updated(e,t,n,s){Yi(e,t,n,s,"updated");}};function A_(e,t){switch(e){case"SELECT":return Pn;case"TEXTAREA":return Ke;default:switch(t){case"checkbox":return De;case"radio":return Sh;default:return Ke}}}function Yi(e,t,n,s,i){const r=A_(e.tagName,n.props&&n.props.type)[i];r&&r(e,t,n,s);}const I_=["ctrl","shift","alt","meta"],T_={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>I_.some(n=>e[`${n}Key`]&&!t.includes(n))},pn=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(i,...o)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=i=>{if(!("key"in i))return;const o=Cs(i.key);if(t.some(r=>r===o||O_[r]===o))return e(i)})},D_=It({patchProp:S_},d_);let hd;function M_(){return hd||(hd=I0(D_))}const Wn=(...e)=>{const t=M_().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=B_(s);if(!i)return;const o=t._component;!Ue(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=n(i,!1,L_(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function L_(e){if(e instanceof SVGElement)return "svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return "mathml"}function B_(e){return wt(e)?document.querySelector(e):e}const R_=["top","right","bottom","left"],md=["start","end"],gd=R_.reduce((e,t)=>e.concat(t,t+"-"+md[0],t+"-"+md[1]),[]),gi=Math.min,Os=Math.max,N_={left:"right",right:"left",bottom:"top",top:"bottom"},F_={start:"end",end:"start"};function $l(e,t,n){return Os(e,gi(t,n))}function Zs(e,t){return typeof e=="function"?e(t):e}function zn(e){return e.split("-")[0]}function $n(e){return e.split("-")[1]}function Ph(e){return e==="x"?"y":"x"}function Lu(e){return e==="y"?"height":"width"}function Ks(e){return ["top","bottom"].includes(zn(e))?"y":"x"}function Bu(e){return Ph(Ks(e))}function Ah(e,t,n){n===void 0&&(n=!1);const s=$n(e),i=Bu(e),o=Lu(i);let r=i==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=Pr(r)),[r,Pr(r)]}function U_(e){const t=Pr(e);return [Er(e),t,Er(t)]}function Er(e){return e.replace(/start|end/g,t=>F_[t])}function j_(e,t,n){const s=["left","right"],i=["right","left"],o=["top","bottom"],r=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:s:t?s:i;case"left":case"right":return t?o:r;default:return []}}function H_(e,t,n,s){const i=$n(e);let o=j_(zn(e),n==="start",s);return i&&(o=o.map(r=>r+"-"+i),t&&(o=o.concat(o.map(Er)))),o}function Pr(e){return e.replace(/left|right|bottom|top/g,t=>N_[t])}function V_(e){return {top:0,right:0,bottom:0,left:0,...e}}function Ih(e){return typeof e!="number"?V_(e):{top:e,right:e,bottom:e,left:e}}function oi(e){const{x:t,y:n,width:s,height:i}=e;return {width:s,height:i,top:n,left:t,right:t+s,bottom:n+i,x:t,y:n}}function yd(e,t,n){let{reference:s,floating:i}=e;const o=Ks(t),r=Bu(t),a=Lu(r),l=zn(t),c=o==="y",u=s.x+s.width/2-i.width/2,p=s.y+s.height/2-i.height/2,m=s[a]/2-i[a]/2;let v;switch(l){case"top":v={x:u,y:s.y-i.height};break;case"bottom":v={x:u,y:s.y+s.height};break;case"right":v={x:s.x+s.width,y:p};break;case"left":v={x:s.x-i.width,y:p};break;default:v={x:s.x,y:s.y};}switch($n(t)){case"start":v[r]-=m*(n&&c?-1:1);break;case"end":v[r]+=m*(n&&c?-1:1);break}return v}const z_=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:o=[],platform:r}=n,a=o.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:p}=yd(c,s,l),m=s,v={},w=0;for(let _=0;_({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:i,rects:o,platform:r,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Zs(e,t)||{};if(c==null)return {};const p=Ih(u),m={x:n,y:s},v=Bu(i),w=Lu(v),_=await r.getDimensions(c),R=v==="y",L=R?"top":"left",j=R?"bottom":"right",T=R?"clientHeight":"clientWidth",M=o.reference[w]+o.reference[v]-m[v]-o.floating[w],U=m[v]-o.reference[v],z=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let G=z?z[T]:0;(!G||!await(r.isElement==null?void 0:r.isElement(z)))&&(G=a.floating[T]||o.floating[w]);const me=M/2-U/2,we=G/2-_[w]/2-1,ce=gi(p[L],we),H=gi(p[j],we),F=ce,ee=G-_[w]-H,de=G/2-_[w]/2+me,_e=$l(F,de,ee),Se=!l.arrow&&$n(i)!=null&&de!==_e&&o.reference[w]/2-(de$n(i)===e),...n.filter(i=>$n(i)!==e)]:n.filter(i=>zn(i)===i)).filter(i=>e?$n(i)===e||(t?Er(i)!==i:!1):!0)}const K_=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,s,i;const{rects:o,middlewareData:r,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:p,allowedPlacements:m=gd,autoAlignment:v=!0,...w}=Zs(e,t),_=p!==void 0||m===gd?W_(p||null,v,m):m,R=await ra(t,w),L=((n=r.autoPlacement)==null?void 0:n.index)||0,j=_[L];if(j==null)return {};const T=Ah(j,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==j)return {reset:{placement:_[0]}};const M=[R[zn(j)],R[T[0]],R[T[1]]],U=[...((s=r.autoPlacement)==null?void 0:s.overflows)||[],{placement:j,overflows:M}],z=_[L+1];if(z)return {data:{index:L+1,overflows:U},reset:{placement:z}};const G=U.map(ce=>{const H=$n(ce.placement);return [ce.placement,H&&u?ce.overflows.slice(0,2).reduce((F,ee)=>F+ee,0):ce.overflows[0],ce.overflows]}).sort((ce,H)=>ce[1]-H[1]),we=((i=G.filter(ce=>ce[2].slice(0,$n(ce[0])?2:3).every(H=>H<=0))[0])==null?void 0:i[0])||G[0][0];return we!==a?{data:{index:L+1,overflows:U},reset:{placement:we}}:{}}}},G_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:i,middlewareData:o,rects:r,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:_=!0,...R}=Zs(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return {};const L=zn(i),j=Ks(a),T=zn(a)===a,M=await(l.isRTL==null?void 0:l.isRTL(c.floating)),U=m||(T||!_?[Pr(a)]:U_(a)),z=w!=="none";!m&&z&&U.push(...H_(a,_,w,M));const G=[a,...U],me=await ra(t,R),we=[];let ce=((s=o.flip)==null?void 0:s.overflows)||[];if(u&&we.push(me[L]),p){const de=Ah(i,r,M);we.push(me[de[0]],me[de[1]]);}if(ce=[...ce,{placement:i,overflows:we}],!we.every(de=>de<=0)){var H,F;const de=(((H=o.flip)==null?void 0:H.index)||0)+1,_e=G[de];if(_e)return {data:{index:de,overflows:ce},reset:{placement:_e}};let Se=(F=ce.filter(Pe=>Pe.overflows[0]<=0).sort((Pe,$e)=>Pe.overflows[1]-$e.overflows[1])[0])==null?void 0:F.placement;if(!Se)switch(v){case"bestFit":{var ee;const Pe=(ee=ce.filter($e=>{if(z){const He=Ks($e.placement);return He===j||He==="y"}return !0}).map($e=>[$e.placement,$e.overflows.filter(He=>He>0).reduce((He,tt)=>He+tt,0)]).sort(($e,He)=>$e[1]-He[1])[0])==null?void 0:ee[0];Pe&&(Se=Pe);break}case"initialPlacement":Se=a;break}if(i!==Se)return {reset:{placement:Se}}}return {}}}};async function J_(e,t){const{placement:n,platform:s,elements:i}=e,o=await(s.isRTL==null?void 0:s.isRTL(i.floating)),r=zn(n),a=$n(n),l=Ks(n)==="y",c=["left","top"].includes(r)?-1:1,u=o&&l?-1:1,p=Zs(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof w=="number"&&(v=a==="end"?w*-1:w),l?{x:v*u,y:m*c}:{x:m*c,y:v*u}}const Y_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:i,y:o,placement:r,middlewareData:a}=t,l=await J_(t,e);return r===((n=a.offset)==null?void 0:n.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:r}}}}},Q_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:i}=t,{mainAxis:o=!0,crossAxis:r=!1,limiter:a={fn:R=>{let{x:L,y:j}=R;return {x:L,y:j}}},...l}=Zs(e,t),c={x:n,y:s},u=await ra(t,l),p=Ks(zn(i)),m=Ph(p);let v=c[m],w=c[p];if(o){const R=m==="y"?"top":"left",L=m==="y"?"bottom":"right",j=v+u[R],T=v-u[L];v=$l(j,v,T);}if(r){const R=p==="y"?"top":"left",L=p==="y"?"bottom":"right",j=w+u[R],T=w-u[L];w=$l(j,w,T);}const _=a.fn({...t,[m]:v,[p]:w});return {..._,data:{x:_.x-n,y:_.y-s,enabled:{[m]:o,[p]:r}}}}}},X_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:i,rects:o,platform:r,elements:a}=t,{apply:l=()=>{},...c}=Zs(e,t),u=await ra(t,c),p=zn(i),m=$n(i),v=Ks(i)==="y",{width:w,height:_}=o.floating;let R,L;p==="top"||p==="bottom"?(R=p,L=m===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(L=p,R=m==="end"?"top":"bottom");const j=_-u.top-u.bottom,T=w-u.left-u.right,M=gi(_-u[R],j),U=gi(w-u[L],T),z=!t.middlewareData.shift;let G=M,me=U;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(me=T),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(G=j),z&&!m){const ce=Os(u.left,0),H=Os(u.right,0),F=Os(u.top,0),ee=Os(u.bottom,0);v?me=w-2*(ce!==0||H!==0?ce+H:Os(u.left,u.right)):G=_-2*(F!==0||ee!==0?F+ee:Os(u.top,u.bottom));}await l({...t,availableWidth:me,availableHeight:G});const we=await r.getDimensions(a.floating);return w!==we.width||_!==we.height?{reset:{rects:!0}}:{}}}};function hn(e){var t;return ((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Un(e){return hn(e).getComputedStyle(e)}const wd=Math.min,ii=Math.max,Ar=Math.round;function Th(e){const t=Un(e);let n=parseFloat(t.width),s=parseFloat(t.height);const i=e.offsetWidth,o=e.offsetHeight,r=Ar(n)!==i||Ar(s)!==o;return r&&(n=i,s=o),{width:n,height:s,fallback:r}}function ws(e){return Dh(e)?(e.nodeName||"").toLowerCase():""}let Qi;function Oh(){if(Qi)return Qi;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Qi=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Qi):navigator.userAgent}function jn(e){return e instanceof hn(e).HTMLElement}function fs(e){return e instanceof hn(e).Element}function Dh(e){return e instanceof hn(e).Node}function bd(e){return typeof ShadowRoot>"u"?!1:e instanceof hn(e).ShadowRoot||e instanceof ShadowRoot}function aa(e){const{overflow:t,overflowX:n,overflowY:s,display:i}=Un(e);return /auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(i)}function Z_(e){return ["table","td","th"].includes(ws(e))}function El(e){const t=/firefox/i.test(Oh()),n=Un(e),s=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!s&&s!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(i=>n.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const o=n.contain;return o!=null&&o.includes(i)})}function Mh(){return !/^((?!chrome|android).)*safari/i.test(Oh())}function Ru(e){return ["html","body","#document"].includes(ws(e))}function Lh(e){return fs(e)?e:e.contextElement}const Bh={x:1,y:1};function wo(e){const t=Lh(e);if(!jn(t))return Bh;const n=t.getBoundingClientRect(),{width:s,height:i,fallback:o}=Th(t);let r=(o?Ar(n.width):n.width)/s,a=(o?Ar(n.height):n.height)/i;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}function yi(e,t,n,s){var i,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=Lh(e);let l=Bh;t&&(s?fs(s)&&(l=wo(s)):l=wo(e));const c=a?hn(a):window,u=!Mh()&&n;let p=(r.left+(u&&((i=c.visualViewport)==null?void 0:i.offsetLeft)||0))/l.x,m=(r.top+(u&&((o=c.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,v=r.width/l.x,w=r.height/l.y;if(a){const _=hn(a),R=s&&fs(s)?hn(s):s;let L=_.frameElement;for(;L&&s&&R!==_;){const j=wo(L),T=L.getBoundingClientRect(),M=getComputedStyle(L);T.x+=(L.clientLeft+parseFloat(M.paddingLeft))*j.x,T.y+=(L.clientTop+parseFloat(M.paddingTop))*j.y,p*=j.x,m*=j.y,v*=j.x,w*=j.y,p+=T.x,m+=T.y,L=hn(L).frameElement;}}return {width:v,height:w,top:m,right:p+v,bottom:m+w,left:p,x:p,y:m}}function ps(e){return ((Dh(e)?e.ownerDocument:e.document)||window.document).documentElement}function la(e){return fs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Rh(e){return yi(ps(e)).left+la(e).scrollLeft}function wi(e){if(ws(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bd(e)&&e.host||ps(e);return bd(t)?t.host:t}function Nh(e){const t=wi(e);return Ru(t)?t.ownerDocument.body:jn(t)&&aa(t)?t:Nh(t)}function Ir(e,t){var n;t===void 0&&(t=[]);const s=Nh(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=hn(s);return i?t.concat(o,o.visualViewport||[],aa(s)?s:[]):t.concat(s,Ir(s))}function vd(e,t,n){return t==="viewport"?oi(function(s,i){const o=hn(s),r=ps(s),a=o.visualViewport;let l=r.clientWidth,c=r.clientHeight,u=0,p=0;if(a){l=a.width,c=a.height;const m=Mh();(m||!m&&i==="fixed")&&(u=a.offsetLeft,p=a.offsetTop);}return {width:l,height:c,x:u,y:p}}(e,n)):fs(t)?oi(function(s,i){const o=yi(s,!0,i==="fixed"),r=o.top+s.clientTop,a=o.left+s.clientLeft,l=jn(s)?wo(s):{x:1,y:1};return {width:s.clientWidth*l.x,height:s.clientHeight*l.y,x:a*l.x,y:r*l.y}}(t,n)):oi(function(s){const i=ps(s),o=la(s),r=s.ownerDocument.body,a=ii(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),l=ii(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight);let c=-o.scrollLeft+Rh(s);const u=-o.scrollTop;return Un(r).direction==="rtl"&&(c+=ii(i.clientWidth,r.clientWidth)-a),{width:a,height:l,x:c,y:u}}(ps(e)))}function _d(e){return jn(e)&&Un(e).position!=="fixed"?e.offsetParent:null}function xd(e){const t=hn(e);let n=_d(e);for(;n&&Z_(n)&&Un(n).position==="static";)n=_d(n);return n&&(ws(n)==="html"||ws(n)==="body"&&Un(n).position==="static"&&!El(n))?t:n||function(s){let i=wi(s);for(;jn(i)&&!Ru(i);){if(El(i))return i;i=wi(i);}return null}(e)||t}function ex(e,t,n){const s=jn(t),i=ps(t),o=yi(e,!0,n==="fixed",t);let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(s||!s&&n!=="fixed")if((ws(t)!=="body"||aa(i))&&(r=la(t)),jn(t)){const l=yi(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop;}else i&&(a.x=Rh(i));return {x:o.left+r.scrollLeft-a.x,y:o.top+r.scrollTop-a.y,width:o.width,height:o.height}}const tx={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:s,strategy:i}=e;const o=n==="clippingAncestors"?function(c,u){const p=u.get(c);if(p)return p;let m=Ir(c).filter(R=>fs(R)&&ws(R)!=="body"),v=null;const w=Un(c).position==="fixed";let _=w?wi(c):c;for(;fs(_)&&!Ru(_);){const R=Un(_),L=El(_);(w?L||v:L||R.position!=="static"||!v||!["absolute","fixed"].includes(v.position))?v=R:m=m.filter(j=>j!==_),_=wi(_);}return u.set(c,m),m}(t,this._c):[].concat(n),r=[...o,s],a=r[0],l=r.reduce((c,u)=>{const p=vd(t,u,i);return c.top=ii(p.top,c.top),c.right=wd(p.right,c.right),c.bottom=wd(p.bottom,c.bottom),c.left=ii(p.left,c.left),c},vd(t,a,i));return {width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:s}=e;const i=jn(n),o=ps(n);if(n===o)return t;let r={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((i||!i&&s!=="fixed")&&((ws(n)!=="body"||aa(o))&&(r=la(n)),jn(n))){const c=yi(n);a=wo(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop;}return {width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-r.scrollLeft*a.x+l.x,y:t.y*a.y-r.scrollTop*a.y+l.y}},isElement:fs,getDimensions:function(e){return jn(e)?Th(e):e.getBoundingClientRect()},getOffsetParent:xd,getDocumentElement:ps,getScale:wo,async getElementRects(e){let{reference:t,floating:n,strategy:s}=e;const i=this.getOffsetParent||xd,o=this.getDimensions;return {reference:ex(t,await i(n),s),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Un(e).direction==="rtl"},nx=(e,t,n)=>{const s=new Map,i={platform:tx,...n},o={...i.platform,_c:s};return z_(e,t,{...i,platform:o})},Fs={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,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"],delay:{show:0,hide:400}}}};function bi(e,t){let n=Fs.themes[e]||{},s;do s=n[t],typeof s>"u"?n.$extend?n=Fs.themes[n.$extend]||{}:(n=null,s=Fs[t]):n=null;while(n);return s}function sx(e){const t=[e];let n=Fs.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Fs.themes[n.$extend]||{}):n=null;while(n);return t.map(s=>`v-popper--theme-${s}`)}function Cd(e){const t=[e];let n=Fs.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Fs.themes[n.$extend]||{}):n=null;while(n);return t}let vi=!1;if(typeof window<"u"){vi=!1;try{const e=Object.defineProperty({},"passive",{get(){vi=!0;}});window.addEventListener("test",null,e);}catch{}}let Fh=!1;typeof window<"u"&&typeof navigator<"u"&&(Fh=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Uh=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),kd={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Sd={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function $d(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1);}function za(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e);}))}const xn=[];let Is=null;const Ed={};function Pd(e){let t=Ed[e];return t||(t=Ed[e]=[]),t}let Pl=function(){};typeof window<"u"&&(Pl=window.Element);function Ge(e){return function(t){return bi(t.theme,e)}}const qa="__floating-vue__popper",jh=()=>Te({name:"VPopper",provide(){return {[qa]:{parentPopper:this}}},inject:{[qa]:{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:Ge("disabled")},positioningDisabled:{type:Boolean,default:Ge("positioningDisabled")},placement:{type:String,default:Ge("placement"),validator:e=>Uh.includes(e)},delay:{type:[String,Number,Object],default:Ge("delay")},distance:{type:[Number,String],default:Ge("distance")},skidding:{type:[Number,String],default:Ge("skidding")},triggers:{type:Array,default:Ge("triggers")},showTriggers:{type:[Array,Function],default:Ge("showTriggers")},hideTriggers:{type:[Array,Function],default:Ge("hideTriggers")},popperTriggers:{type:Array,default:Ge("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Ge("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Ge("popperHideTriggers")},container:{type:[String,Object,Pl,Boolean],default:Ge("container")},boundary:{type:[String,Pl],default:Ge("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Ge("strategy")},autoHide:{type:[Boolean,Function],default:Ge("autoHide")},handleResize:{type:Boolean,default:Ge("handleResize")},instantMove:{type:Boolean,default:Ge("instantMove")},eagerMount:{type:Boolean,default:Ge("eagerMount")},popperClass:{type:[String,Array,Object],default:Ge("popperClass")},computeTransformOrigin:{type:Boolean,default:Ge("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Ge("autoMinSize")},autoSize:{type:[Boolean,String],default:Ge("autoSize")},autoMaxSize:{type:Boolean,default:Ge("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Ge("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Ge("preventOverflow")},overflowPadding:{type:[Number,String],default:Ge("overflowPadding")},arrowPadding:{type:[Number,String],default:Ge("arrowPadding")},arrowOverflow:{type:Boolean,default:Ge("arrowOverflow")},flip:{type:Boolean,default:Ge("flip")},shift:{type:Boolean,default:Ge("shift")},shiftCrossAxis:{type:Boolean,default:Ge("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Ge("noAutoFocus")},disposeTimeout:{type:Number,default:Ge("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return {isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return {popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return (e=this[qa])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return ((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init();},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition());},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");},mounted(){this.init(),this.$_detachPopperNode();},activated(){this.$_autoShowHide();},deactivated(){this.hide();},beforeUnmount(){this.dispose();},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var s,i;(s=this.parentPopper)!=null&&s.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1;})),this.$emit("update:shown",!0));},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null);},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1);}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show());},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"));},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"));},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Y_({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(K_({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Q_({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(G_({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(q_({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:s,rects:i,middlewareData:o})=>{let r;const{centerOffset:a}=o.arrow;return s.startsWith("top")||s.startsWith("bottom")?r=Math.abs(a)>i.reference.width/2:r=Math.abs(a)>i.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const s=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:i,placement:o,middlewareData:r})=>{var a;if((a=r.autoSize)!=null&&a.skip)return {};let l,c;return o.startsWith("top")||o.startsWith("bottom")?l=i.reference.width:c=i.reference.height,this.$_innerNode.style[s==="min"?"minWidth":s==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[s==="min"?"minHeight":s==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}});}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(X_({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:s,availableHeight:i})=>{this.$_innerNode.style.maxWidth=s!=null?`${s}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null;}})));const n=await nx(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}});},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Is&&this.instantMove&&Is.instantMove&&Is!==this.parentPopper){Is.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"));},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Is=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 za(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Ir(this.$_referenceNode),...Ir(this.$_popperNode)],"scroll",()=>{this.$_computePosition();}));},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),s=n.parentNode.getBoundingClientRect(),i=t.x+t.width/2-(s.left+n.offsetLeft),o=t.y+t.height/2-(s.top+n.offsetTop);this.result.transformOrigin=`${i}px ${o}px`;}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,$d(xn,this),xn.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Cd(this.theme)){const s=Pd(n);$d(s,this),s.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`);}Is===this&&(Is=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1);},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await za(),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,kd,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],kd,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n});};this.$_registerTriggerListeners(this.$_targetNodes,Sd,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Sd,this.popperTriggers,this.popperHideTriggers,t);},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(s=>s.addEventListener(t,n,vi?{passive:!0}:void 0));},$_registerTriggerListeners(e,t,n,s,i){let o=n;s!=null&&(o=typeof s=="function"?s(o):s),o.forEach(r=>{const a=t[r];a&&this.$_registerEventListeners(e,a,i);});},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:s,eventType:i,handler:o}=n;!e||e===i?s.forEach(r=>r.removeEventListener(i,o)):t.push(n);}),this.$_events=t;},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners());},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1;},300)));},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode);},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const s=n.getAttribute(e);s&&(n.removeAttribute(e),n.setAttribute(t,s));}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const s=e[n];s==null?t.removeAttribute(n):t.setAttribute(n,s);}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper;},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(ri>=e.left&&ri<=e.right&&ai>=e.top&&ai<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=ri-os,s=ai-is,i=t.left+t.width/2-os+(t.top+t.height/2)-is+t.width+t.height,o=os+n*i,r=is+s*i;return Xi(os,is,o,r,t.left,t.top,t.left,t.bottom)||Xi(os,is,o,r,t.left,t.top,t.right,t.top)||Xi(os,is,o,r,t.right,t.top,t.right,t.bottom)||Xi(os,is,o,r,t.left,t.bottom,t.right,t.bottom)}return !1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Fh){const e=vi?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Ad(t),e),document.addEventListener("touchend",t=>Id(t,!0),e);}else window.addEventListener("mousedown",e=>Ad(e),!0),window.addEventListener("click",e=>Id(e,!1),!0);window.addEventListener("resize",rx);}function Ad(e,t){for(let n=0;n=0;s--){const i=xn[s];try{const o=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&Td(i,o,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&o){let a=i.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let r=i.parentPopper;for(;r&&Td(r,r.containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper;}});}catch{}}}function Td(e,t,n){return n.closeAllPopover||n.closePopover&&t||ix(e,n)&&!t}function ix(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function rx(){for(let e=0;e{os=ri,is=ai,ri=e.clientX,ai=e.clientY;},vi?{passive:!0}:void 0);function Xi(e,t,n,s,i,o,r,a){const l=((r-i)*(t-o)-(a-o)*(e-i))/((a-o)*(n-e)-(r-i)*(s-t)),c=((n-e)*(t-o)-(s-t)*(e-i))/((a-o)*(n-e)-(r-i)*(s-t));return l>=0&&l<=1&&c>=0&&c<=1}const ax={extends:jh()},ua=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n};function lx(e,t,n,s,i,o){return S(),I("div",{ref:"reference",class:Fe(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Qe(e.$slots,"default",p1(bh(e.slotData)))],2)}const ux=ua(ax,[["render",lx]]);function cx(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}let cr;function Al(){Al.init||(Al.init=!0,cr=cx()!==-1);}var ca={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Al(),qs(()=>{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",cr&&this.$el.appendChild(e),e.data="about:blank",cr||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&&(!cr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null);}}};const dx=t0();Z1("data-v-b329ee4c");const fx={class:"resize-observer",tabindex:"-1"};e0();const px=dx((e,t,n,s,i,o)=>(S(),st("div",fx)));ca.render=px;ca.__scopeId="data-v-b329ee4c";ca.__file="src/components/ResizeObserver.vue";const Hh=(e="theme")=>({computed:{themeClass(){return sx(this[e])}}}),hx=Te({name:"VPopperContent",components:{ResizeObserver:ca},mixins:[Hh()],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}}}),mx=["id","aria-hidden","tabindex","data-popper-placement"],gx={ref:"inner",class:"v-popper__inner"},yx=d("div",{class:"v-popper__arrow-outer"},null,-1),wx=d("div",{class:"v-popper__arrow-inner"},null,-1),bx=[yx,wx];function vx(e,t,n,s,i,o){const r=gs("ResizeObserver");return S(),I("div",{id:e.popperId,ref:"popover",class:Fe(["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:Fn(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]=Eh(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[d("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),d("div",{class:"v-popper__wrapper",style:Fn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[d("div",gx,[e.mounted?(S(),I(Le,{key:0},[d("div",null,[Qe(e.$slots,"default")]),e.handleResize?(S(),st(r,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):be("",!0)],64)):be("",!0)],512),d("div",{ref:"arrow",class:"v-popper__arrow-container",style:Fn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},bx,4)],4)],46,mx)}const Vh=ua(hx,[["render",vx]]),zh={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)}}};let Il=function(){};typeof window<"u"&&(Il=window.Element);const _x=Te({name:"VPopperWrapper",components:{Popper:ux,PopperContent:Vh},mixins:[zh,Hh("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Il,Boolean],default:void 0},boundary:{type:[String,Il],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function xx(e,t,n,s,i,o){const r=gs("PopperContent"),a=gs("Popper");return S(),st(a,Mu({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:Ce(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:p,autoHide:m,show:v,hide:w,handleResize:_,onResize:R,classes:L,result:j})=>[Qe(e.$slots,"default",{shown:c,show:v,hide:w}),ge(r,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:c,mounted:u,"skip-transition":p,"auto-hide":m,"handle-resize":_,classes:L,result:j,onHide:w,onResize:R},{default:Ce(()=>[Qe(e.$slots,"popper",{shown:c,hide:w})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Nu=ua(_x,[["render",xx]]),Cx={...Nu,name:"VDropdown",vPopperTheme:"dropdown"};({...Nu});({...Nu});const kx=Te({name:"VTooltipDirective",components:{Popper:jh(),PopperContent:Vh},mixins:[zh],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>bi(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>bi(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return {asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0);},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize();}},created(){this.$_fetchId=0;},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(s=>this.onResult(t,s)):this.onResult(t,n);}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t);},onShow(){this.$_isShown=!0,this.fetchContent();},onHide(){this.$_isShown=!1;}}}),Sx=["innerHTML"],$x=["textContent"];function Ex(e,t,n,s,i,o){const r=gs("PopperContent"),a=gs("Popper");return S(),st(a,Mu({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Ce(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:p,autoHide:m,hide:v,handleResize:w,onResize:_,classes:R,result:L})=>[ge(r,{ref:"popperContent",class:Fe({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:c,mounted:u,"skip-transition":p,"auto-hide":m,"handle-resize":w,classes:R,result:L,onHide:v,onResize:_},{default:Ce(()=>[e.html?(S(),I("div",{key:0,innerHTML:e.finalContent},null,8,Sx)):(S(),I("div",{key:1,textContent:K(e.finalContent)},null,8,$x))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const Px=ua(kx,[["render",Ex]]),qh="v-popper--has-tooltip";function Ax(e,t){let n=e.placement;if(!n&&t)for(const s of Uh)t[s]&&(n=s);return n||(n=bi(e.theme||"tooltip","placement")),n}function Wh(e,t,n){let s;const i=typeof t;return i==="string"?s={content:t}:t&&i==="object"?s=t:s={content:!1},s.placement=Ax(s,n),s.targetNodes=()=>[e],s.referenceNode=()=>e,s}let Wa,_i,Ix=0;function Tx(){if(Wa)return;_i=ne([]),Wa=Wn({name:"VTooltipDirectiveApp",setup(){return {directives:_i}},render(){return this.directives.map(t=>a_(Px,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Wa.mount(e);}function Ox(e,t,n){Tx();const s=ne(Wh(e,t,n)),i=ne(!1),o={id:Ix++,options:s,shown:i};return _i.value.push(o),e.classList&&e.classList.add(qh),e.$_popper={options:s,item:o,show(){i.value=!0;},hide(){i.value=!1;}}}function Kh(e){if(e.$_popper){const t=_i.value.indexOf(e.$_popper.item);t!==-1&&_i.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget;}e.classList&&e.classList.remove(qh);}function Od(e,{value:t,modifiers:n}){const s=Wh(e,t,n);if(!s.content||bi(s.theme||"tooltip","disabled"))Kh(e);else {let i;e.$_popper?(i=e.$_popper,i.options.value=s):i=Ox(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide());}}const Dx={beforeMount:Od,updated:Od,beforeUnmount(e){Kh(e);}},Mx=Dx,Oo=Cx,Lx={key:0,class:"ce-custom-url-help"},Bx={class:"ce-custom-url-help-body"},Rx={key:0},Nx={class:"pure-table pure-table-bordered"},Fx=["onClick"],Ux=Te({__name:"CustomUrlHelp",setup(e){const t=ne(Ev),n=ne(!1);Yt(async()=>{window.addEventListener("message",i=>{const{event:o}=i.data;o==="customUrlHelp"&&(n.value=!0);},!1);});async function s(i){yt(i.key),ae({text:"已复制到剪贴板",icon:"success",timer:1e3});}return (i,o)=>n.value?(S(),I("div",Lx,[d("div",Bx,[d("h1",null,[o[1]||(o[1]=B(" 自定义菜单变量说明 ")),d("a",{href:"javascript:void(0)",onClick:o[0]||(o[0]=r=>n.value=!1)},"关闭")]),o[3]||(o[3]=d("hr",null,null,-1)),(S(!0),I(Le,null,Je(t.value,(r,a)=>(S(),I("div",{key:a},[d("h2",null,K(r.label),1),r.memo?(S(),I("p",Rx,K(r.memo),1)):be("",!0),d("table",Nx,[o[2]||(o[2]=d("thead",null,[d("tr",null,[d("th",{width:"50%"},"变量"),d("th",{width:"50%"},"说明")])],-1)),d("tbody",null,[(S(!0),I(Le,null,Je(r.items,(l,c)=>(S(),I("tr",{key:c},[d("td",null,[d("span",{class:"ce-variable",onClick:u=>s(l)},K(l.key),9,Fx)]),d("td",null,K(l.label),1)]))),128))])])]))),128))])])):be("",!0)}}),Ne=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},jx=Ne(Ux,[["__file","CustomUrlHelp.vue"]]),Hx={label:"当前目录右键菜单",key:"dcontext",hiddenStyles:[{selector:"div.context-menu.menu-upward#js_float_content li[val={key}]",css:"display: none !important;"}],items:[{label:"上传文件",key:"upload"},{label:"新建文件夹",key:"add_dir"}]},Vx={label:"选中项菜单",key:"selection",hiddenStyles:[{selector:"div.list-operate.lo-right li[menu={key}]",css:"width: 0 !important; opacity: 0 !important; padding: 0 !important; margin: 0 !important;"}],items:[{label:"置顶",key:"setTop"},{label:"取消置顶",key:"calcelSetTop"},{label:"下载",key:"download"},{label:"移动",key:"move"},{label:"标签",key:"edit_file_label"},{label:"批量标签",key:"batch_edit_file_label"},{label:"重命名",key:"edit_name"},{label:"备注",key:"edit"},{label:"星标",key:"star"},{label:"删除",key:"delete"},{label:"分享",key:"public_share"},{label:"设置共享",key:"setShare"},{label:"取消共享",key:"cancelShare"},{label:"复制",key:"set_copy"},{label:"复制到...",key:"copy_list"},{label:"加密隐藏",key:"hide_file"},{label:"取消加密",key:"show_file"},{label:"评分",key:"file_score"},{label:"设为快捷入口",key:"set_category"},{label:"取消快捷入口",key:"unset_category"},{label:"显示时长",key:"show_play_long"},{label:"修改封面",key:"cover"},{label:"一键排重",key:"same"},{label:"导出目录树",key:"export_dir"},{label:"显示属性",key:"attribute"},{label:"转存至相册",key:"trans_to_album"}]},zx={label:"列表项右键菜单",key:"context",hiddenStyles:[{selector:"div.context-menu.menu-upward li[val={key}] a",css:"display: none !important;"}],items:[{label:"打开文件",key:"view"},{label:"打开文件夹",key:"open_dir"},{label:"下载文件",key:"download"},{label:"下载文件夹",key:"download_dir"},{label:"打包下载",key:"bale_download"},{label:"刷新",key:"refresh"},{label:"复制",key:"set_copy"},{label:"复制到...",key:"copy_list"},{label:"加密隐藏",key:"hide_file"},{label:"取消加密",key:"show_file"},{label:"评分",key:"file_score"},{label:"显示时长",key:"show_play_long"},{label:"取消时长",key:"hide_play_long"},{label:"添加到我听",key:"listen"},{label:"美化",key:"magic"},{label:"修改封面",key:"cover"},{label:"删除封面",key:"del_cover"},{label:"一键排重",key:"same"},{label:"移动",key:"move"},{label:"重命名",key:"edit_name"},{label:"备注",key:"edit"},{label:"显示属性",key:"attribute"},{label:"删除",key:"delete"},{label:"播放器播放",key:"player"},{label:"转存到相册",key:"trans_to_album"},{label:"举报",key:"report"}]},qx={label:"列表项悬浮菜单",key:"hover",hiddenStyles:[{selector:"div.file-opr[rel=menu] a[menu={key}]",css:"width: 0 !important; opacity: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important;"},{selector:"div.context-menu li[menu={key}] a",css:"display: none !important;"}],items:[{label:"置顶",key:"setTop"},{label:"取消置顶",key:"calcelSetTop"},{label:"星标",key:"star"},{label:"下载文件",key:"download_one"},{label:"下载文件夹",key:"download_dir_one"},{label:"移动",key:"move"},{label:"标签",key:"edit_file_label"},{label:"重命名",key:"edit_name"},{label:"备注",key:"edit"},{label:"删除",key:"delete"},{label:"分享",key:"public_share"},{label:"取消加密",key:"show_file"},{label:"评分",key:"file_score"},{label:"设置共享",key:"setShare"},{label:"取消共享",key:"cancelShare"},{label:"复制",key:"set_copy"},{label:"显示时长",key:"show_play_long"},{label:"修改封面",key:"cover"},{label:"一键排重",key:"same"},{label:"导出目录树",key:"export_dir"},{label:"显示属性",key:"attribute"},{label:"转存至相册",key:"trans_to_album"},{label:"设为快捷入口",key:"set_category"},{label:"取消快捷入口",key:"unset_category"}]},Gh=mt.hiddenOfficialMenuKeys;async function Jh(){return await et.get(Gh,[])}async function Wx(e,t=!1){var n;await et.set(Gh,e),t&&(unsafeWindow.postMessage({event:gt.officialMenuStyleChange},"*"),(n=unsafeWindow.frames.wangpan)==null||n.postMessage({event:gt.officialMenuStyleChange},"*"));}async function Kx(e){const t=[];return e.forEach(n=>{n.items.forEach(s=>{s.hidden&&t.push(`${n.key}_${s.key}`);});}),t}async function Yh(){const e=[Vx,zx,qx,Hx],t=await Jh();return e.forEach(n=>{n.items.forEach(s=>{const i=`${n.key}_${s.key}`;t.includes(i)?s.hidden=!0:s.hidden=!1;});}),e}async function Gx(){const e=await Yh(),t=[];return e.forEach(n=>{n.hiddenStyles.forEach(s=>{const i=[];n.items.forEach(o=>{o.hidden&&i.push(s.selector.replace("{key}",o.key));}),i.length&&t.push(i.join(`, `)+" { "+s.css+" }");});}),t.join(` `)}async function Dd(){const e="cloud115EnhancerOfficialMenuStyle",t=await Gx();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);}const Qh=mt.list;function Jx(e){return {sizeSorter:!0,sizeSorterDirAttrInterval:100,showFolderSizeButton:!0,showBatchFolderSizeButton:!1,showSha1:!1,clickSha1WithCtrlToFindRepeat:!1,showOpenDirContextMenu:!0,hoverShowDirContextMenu:!1,showCreateDirButton:!1,hideTopCreateButton:!1,showCopyButtonOnPathBar:!1,showGotoButtonOnPathBar:!1,noUpdateDirAfterRename:!1,noReloadAfterMove:!1,claimSelectedAfterCreateDir:!1,afterCreateDirBehavior:"goto",fileSelectorDefaultView:"_",followHistoryState:!1,showOnlyFileFilter:!1,dragToQuickEntry:!1,quickEntryAvoidCovered:!1,hideSelectionMenuOnDrag:!1,makeMoreImageViewable:!1,...e}}async function da(){const e=Jx(),t=await et.get(Qh,e);return {...e,...t}}async function Yx(e){await et.set(Qh,e);}var kn=(e=>(e[e.asc=0]="asc",e[e.desc=1]="desc",e))(kn||{});async function Qx(){if(window!==window.top)return;async function e(t){var s,i;const n=on();n&&((i=(s=n.Core)==null?void 0:s.FileConfig)!=null&&i.DataAPI)&&t(!0);}try{return await _s(e,250,3e4)}catch(t){throw new Error(`awaitDataAPI failed:${t.toString()}`)}}async function Xx(e){var a;if(!e.showOnlyFileFilter)return;const t=In(),n=xs();if(!t&&!n)return;const s=vn.file,i=ft(` 仅文件 `),r=await lt(t?'#js_filter_box a[val="other"]':'#js_search_filter_popup a[val="other"]');(a=r.parentNode)==null||a.insertBefore(i,r);}async function Zx(e){if(window!==window.top||!e.followHistoryState)return;const t=async n=>{const s=Fr("cid"),i=await Gt(!1);s!==i&&on().wangpan.Main.Action.Handlers.GotoDir({cid:s});};window.addEventListener("popstate",t);}async function eC(e){const t=rt("div#js_data_list");t==null||t.addEventListener("mousedown",n=>{n.target.classList.contains("ce-inj")&&n.stopPropagation();});}async function tC(e){In()&&e.dragToQuickEntry&&(Md(),Qw("#js_file_category_box",bt(Md,200),{childList:!0,subtree:!0}),nC(e));}async function Md(){const t=(await lt("#js_file_category_box")).querySelectorAll("#js_file_category_box a[cid]");for(let n=0;n{var r;o.ctrlKey&&((r=rt("#js_operate_box"))==null||r.classList.toggle(n));}),e.hideSelectionMenuOnDrag){let o=0;const r=500;document.body.addEventListener("mousemove",a=>{var u,p;const l=Date.now();if(l-o{var r;s(o),(r=rt("#js_operate_box"))==null||r.classList.remove(n);};}async function sC(e){if(!e.makeMoreImageViewable)return;const t=["webp"],n=on();n.UPLOAD_CONFIG&&n.UPLOAD_CONFIG[3].upload_type_limit.push(...t);}async function oC(e){if(!e.showCreateDirButton||!In())return;if(e.hideTopCreateButton){const s=rt('[data-dropdown-tab="create_new_add_dir"]');s&&(s.style.display="none");}const t=rt(".header-name");if(!t||t.querySelector(".ce-btn-create-dir"))return;const n=ft(` 新建文件夹 `);t.appendChild(n);}async function iC(e){if(In()){const t="ce-list-page";document.body.classList.add(t),parent.document.body.classList.add(t);}}async function rC(e,t,n){if(!e.showSha1||!n.hash)return;t.addClass("ce-show-sha1");const s=t.find(".file-name"),i="文件SHA1,点击复制"+(e.clickSha1WithCtrlToFindRepeat?" (Ctrl+点击 查找重复文件)":""),o=ft(` ${n.hash} `),r=()=>{yt(n.hash),ae({title:"复制SHA1",text:"已复制文件SHA1",icon:"success",timer:1500});};o.addEventListener("click",async a=>{a.preventDefault(),a.stopPropagation(),e.clickSha1WithCtrlToFindRepeat&&(a.metaKey||a.ctrlKey)?pp(n):r();}),s.append(o);}async function aC(e,t,n){if(!e.showFolderSizeButton||!n.isDir)return;const s=t.find(".file-size"),i=document.createElement("span");i.classList.add("ce-btn-folder-size","ce-inj"),i.title="点击获取该文件夹大小",i.textContent="大小",i.addEventListener("click",async o=>{o.preventDefault(),o.stopPropagation();try{const r=await Lt(n.id);s.find("span:eq(0)").text(r.size),t.addClass("ce-size-got"),ae({title:"获取大小",text:"已获取文件夹大小",icon:"success",timer:1500});}catch(r){console.error(r),ae({title:"获取大小失败",text:r.toString(),icon:"error"});return}}),s.append(i);}async function lC(e){if(!e.showBatchFolderSizeButton)return;const t="ce-injected-s",n="ce-s-ing",s=rt(".header-size");if(!s||s.classList.contains(t))return;const i=s,o=ft(` 大小 `);o.addEventListener("click",async r=>{if(r.preventDefault(),r.stopPropagation(),!o.classList.contains(n))try{o.classList.add(n),await Fu(!1,!1,!1);}catch(a){console.error(a),ae({title:"获取子文件夹大小失败",text:a.toString(),icon:"error"});}finally{o.classList.remove(n);}}),i.appendChild(o),i.classList.add(t);}async function uC(e){if(!e.sizeSorter)return;const t="ce-injected",n="ce-size-sort-ing",s=rt(".header-size");if(!s||s.classList.contains(t))return;const i=s,o=ft(` 排序 `);o.addEventListener("click",async r=>{if(r.preventDefault(),r.stopPropagation(),o.classList.contains("el-size-sort-ing"))return;const a="by-desc",l="by-asc";try{o.classList.add(n);let c=kn.desc;o.classList.contains(a)?c=kn.asc:c=kn.desc;const u=await Gt(!1);await Tr(u,c,!1,!1),c===kn.asc?(o.classList.remove(a),o.classList.add(l)):(o.classList.remove(l),o.classList.add(a));}catch(c){console.error(c),ae({title:"排序失败",text:c.toString(),icon:"error"});}finally{o.classList.remove(n);}}),i.appendChild(o),i.classList.add(t);}async function Fu(e,t,n=!1){await da();const s=await Gt(!1),i=Po(),o=await An(!1);console.log("[items]",o),ae({html:"正在获取子文件夹大小...",icon:"info",position:"top-end",timer:0}),ue.showLoading();for(let r=0;r0&&await Fu(n,s,!1);const r=i.find("ul"),a=r.children("li").toArray();a.sort(function(c,u){const p=$(c),m=$(u),v=Ac(p.find(".file-size span:eq(0)").text()),w=Ac(m.find(".file-size span:eq(0)").text());return t===kn.asc?v-w:w-v});const l=$("
        ");$.each(a,function(c,u){l.append(u);}),r.replaceWith(l),n?ue.update({title:"排序完成",html:`已完成排序: ${t===kn.asc?"小 > 大":"大 > 小"}`,icon:"success"}):ae({html:`已完成排序: ${t===kn.asc?"小 > 大":"大 > 小"}`,icon:"success",timer:1500,position:"top-end"});}async function cC(e){ue.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"),Tr(e,kn.desc,!0,!0),!1),preDeny:async()=>(console.log("preDeny"),Tr(e,kn.asc,!0,!0),!1)});}async function dC(){await Tl();const e=await lt("#js_data_list");fC(),new MutationObserver(async([n])=>{n.type==="childList"&&(window.postMessage({event:gt.listRendered}),await Tl());}).observe(e,{childList:!0});}async function fC(){if(window.top===window.self)return;const e=rt("#js_pagination_box");if(!e){console.warn("[list.handleLoadAll] 未找到「#js_pagination_box」元素");return}function t(n){rt("#js_data_list .list-contents > ul > li")&&n(!0);}e.addEventListener("click",async n=>{n.preventDefault(),n.stopPropagation();const s=n.target;let i=!1;if((s.getAttribute("menu")==="load_all_file"||s.closest('[menu="load_all_file"]'))&&(i=!0),!i)return;console.log("[list.handleLoadAll] 点击了「加载全部」按钮"),await _s(t,500,3e5);const o=rt("#js_data_list .list-contents > ul");o==null||o.removeAttribute("ce-done2");const r=rt("#js_data_list");r&&r.querySelectorAll(".list-contents > ul:not([ce-done2]) > li").length&&(o==null||o.setAttribute("ce-done2",""),await Tl());});}async function Tl(){const e=await da();uC(e),lC(e),e.sizeSorter&&e.showBatchFolderSizeButton&&Uw(".list-header .header-size { min-width: 142px !important;}"),oC(e),hC(e);const t=Kf(!1);for(let n=0;n目录功能菜单";let o;const r=async a=>{console.log(a.clientX,a.clientY),o&&clearTimeout(o),a.preventDefault(),a.stopPropagation();try{const l=on(),c=await Gt(!1),u=i.getBoundingClientRect();l.Core.FileMenu.FileRight("1",c,!1,u.x,u.y+8,void 0,!1);}catch(l){console.error(l);}};i.addEventListener("click",r),e.hoverShowDirContextMenu&&(i.addEventListener("mouseenter",async a=>{o=setTimeout(async()=>{await r(a);},300);}),i.addEventListener("mouseleave",()=>{o&&clearTimeout(o);})),s.appendChild(i),s.classList.add("ce-injected");}async function Xh(e,t,n){n.stopPropagation(),n.preventDefault();try{const s=await Ao(!1,1e3);if(!s)return;const i=Js(s),o=await Eo(),r=await ui(i,e,o);if(iu(r)){const l=(await An(!1)).find(c=>c.playDuration&&c.playDuration>0);up(i.id,l);return}if(console.log("[play url]",r),!r)throw new Error("无法获取有效的播放链接!");window.open(r,"_blank","noopener noreferrer");}catch(s){console.error(s),ae({title:"播放失败",text:s.toString(),icon:"error"});}}async function mC(e,t){const n=[];for(const s of t){const i=Nr(e,{key:`_ce_p_${s.key}`,label:s.label,icon:s.icon,title:s.memo,onClick:async(o,r)=>{Xh(s,o,r);}});n.push(i);}return n}async function gC(){const e=await sn(),t=await cu(e);return new Jt({key:"_play_with_x",label:t.defaultPlayer.label,icon:t.noRealDefault?"icon-operate ifo-video-play":t.defaultPlayer.icon,title:t.defaultPlayer.memo,onClick:async(n,s)=>{console.log("[dirContextMenuPlayAllWithX] me",n),!t.noRealDefault&&Xh(t.defaultPlayer,n,s);},subItems:[...await mC(cb,t.customUrlItems)]})}async function yC(){return new Jt({key:"_rename_dir",label:"重命名文件夹",icon:"icon-operate ifo-rename",title:'重命名当前目录,支持"高级模式"',onClick:async(e,t)=>{await e.closeMenu();const n=await Ao();n&&unsafeWindow.Core.Dir.Rename("1",n.attr("cate_id"),n.attr("title"));}})}async function wC(){return new Jt({key:"_dc_view_in_clouddrive",label:"在CloudDrive中查看",icon:"icon-operate ifo-exportdir",title:"在CloudDrive2 Web页面中查看",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault(),await e.closeMenu();const n=await Gt(!1);if(!n||n==="0"){await wr({id:"0",name:"根目录",isDir:!0});return}const s=await Ao(!1,1e3);if(!s)return;const i=Js(s);await wr(i);}})}async function bC(){return new Jt({key:"_move_dir",label:"移动文件夹",icon:"icon-operate ifo-move",title:"移动当前文件夹到其他位置",onClick:Uu("move")})}async function vC(){return new Jt({key:"_del_dir",label:"删除文件夹",icon:"icon-operate ifo-remove",title:"删除当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await Ao();if(!n)return;const s=Ii();unsafeWindow.Core.FileAPI.DeleteFile([n],i=>{n.remove(),s.find("#js_top_header_file_path_box .top-file-path > .file-path").children(":last").prev()[0].click();},!0);}})}function Uu(e,t){return async(n,s)=>{await n.closeMenu();const i=await Ao();i&&await Xb(i,e);}}async function _C(){return new Jt({key:"_copy_dir",label:"复制文件夹",icon:"icon-operate ifo-copy",title:"复制当前文件夹",onClick:Uu("set_copy")})}async function xC(){return new Jt({key:"_copy_dir_to",label:"复制文件夹到",icon:"icon-operate ifo-copyto",title:"复制当前文件夹到其他位置",onClick:Uu("copy_list")})}async function CC(e){const{namePathConfig:t}=e,n=[];return t.copyFullName&&n.push(await Zi("完整名称",Mt.full)),t.copyPureName&&n.push(await Zi("不含后缀",Mt.pure)),t.copyFullName&&n.push(await Zi("完整名称,去重",Mt.fullUnique)),t.copyPureName&&n.push(await Zi("不含后缀,去重",Mt.pureUnique)),t.copySha1&&n.push(await Ld(!1)),t.copySha1WithName&&n.push(await Ld(!0)),t.copyUnixPath&&n.push(await Bd("路径(Unix)",Cn.unixPath)),t.copyWinPath&&n.push(await Bd("路径(Windows)",Cn.winPath)),t.viewInCloudDrive&&n.push(await wC()),new Jt({key:"_dir_copy_names",label:"名称路径",icon:"icon-operate ifo-copy",subItems:n})}async function Ld(e){return new Jt({key:"_dir_copy_sha1",label:"文件sha1"+(e?"(带文件名)":""),icon:"icon-operate ifo-copy",title:"复制文件sha1"+(e?"。格式为 xxx//yyy,xxx为sha1,yyy为文件名":""),onClick:async(t,n)=>{await t.closeMenu();const s=await An(!1),i=[];for(const o of s)o.isFile&&i.push(o.hash+(e?`//${o.name}`:""));yt(i.join(` `)),ae({title:"复制名称",text:`已复制当前目录下已加载的所有文件sha1,数量: ${i.length}`,icon:"success"});}})}async function kC(){return new Jt({key:"view_dir_attribute",label:"查看属性",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu();const n=await Ao();n&&on().Core.FileAPI.getAttribute(n,{showPlayLongChange:function(s,i,o){Wb().CACHE.FileMain.List.ResetPlayLongText(s,i,o);}},function(){console.log("查看属性 ok");});}})}async function Zi(e,t){return new Jt({key:`_d_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制当前目录下已加载的所有文件名称",onClick:async(n,s)=>{let o=(await An(!1)).map(r=>r.name);o=await Oi(o,t),yt(o.join(` `)),ae({title:"复制名称",text:`已复制选中文件名。数量:${o.length},复制类型:${e}`,icon:"success"});}})}async function Bd(e,t){return new Jt({key:`_d_copy_paths_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制当前目录下已加载的所有文件路径",onClick:async(n,s)=>{await n.closeMenu();const i=await An(!1);let o=[];ae({text:"正在获取文件路径...",timer:0}),ue.showLoading();try{o=await dp(i,t),ue.close();}catch(r){console.error(r),ae({text:`获取文件路径失败: ${r}`,timer:6e4,icon:"error"});return}finally{ue.hideLoading();}yt(o.join(` `)),ae({title:"复制路径",text:`已复制文件的路径。数量:${o.length},复制类型:${e}`,icon:"success"});}})}async function SC(){return new Jt({key:"show_sub_folder_size",label:"子文件夹大小",title:"显示当前目录下已加载的所有子文件夹的大小",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu(),await Fu(!1,!1,!1);}})}async function $C(){return new Jt({key:"show_sub_folder_size_sort",label:"子文件夹大小+排序",title:"显示当前目录下已加载的所有子文件夹的大小,并进行排序",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu(),await Tr("",kn.desc,!0,!0);}})}async function EC(e){const{[ze.dirContext]:t}=e;if(!t.enabled)return;const n=[...t.topLevelMenus,"play","copyNames"],s=[],i=[],o=new Map;t.rename&&o.set("rename",await yC()),t.delete&&o.set("delete",await vC()),t.play&&o.set("play",await gC()),t.copyNames&&o.set("copyNames",await CC(t)),t.move&&o.set("move",await bC()),t.viewProp&&o.set("viewProp",await kC()),t.showSubFolderSize&&o.set("showSubFolderSize",await SC()),t.showSubFolderSizeAndSort&&o.set("showSubFolderSizeAndSort",await $C()),t.copy&&o.set("copy",await _C()),t.copyTo&&o.set("copyTo",await xC());const r=o.keys();for(const l of r){const c=o.get(l);c&&(n.includes(l)?s.push(c):i.push(c));}i.length>1?s.push(new Jt({key:"_dir_more",label:"更多",icon:"icon-operate ifo-open",subItems:i})):i.length===1&&s.push(i[0]),await new db({items:s,siblingSelector:'[val="upload"]',position:Xn.before}).inject(),$(".ce-menu-parent .ce-menu-trigger").on("mouseover",function(){$(this).find(".ce-menu-dropdown").show();}).on("mouseout",function(){$(this).find(".ce-menu-dropdown").hide();});}async function PC(e){const{namePathConfig:t}=e,n=[];return t.copyFullName&&n.push(await er("完整名称",Mt.full)),t.copyPureName&&n.push(await er("不含后缀",Mt.pure)),t.copyFullName&&n.push(await er("完整名称,去重",Mt.fullUnique)),t.copyPureName&&n.push(await er("不含后缀,去重",Mt.pureUnique)),t.copySha1&&n.push(await Nd(!1)),t.copySha1WithName&&n.push(await Nd(!0)),t.copyUnixPath&&n.push(await Rd("路径(Unix)",Cn.unixPath)),t.copyWinPath&&n.push(await Rd("路径(Windows)",Cn.winPath)),t.viewInCloudDrive&&n.push(await AC()),new Ai({key:"_lc_copy_names_paths",label:"名称路径",icon:"icon-operate ifo-copy",showIcon:!1,title:"复制文件的名称路径",subItems:n})}function fa(){const e=nv();return !e||!e.n?(ae({text:"无法获取当前文件信息",timer:1200}),null):Ys(e)}async function er(e,t){return new Ai({key:`_lc_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,s)=>{await n.closeMenu();const i=fa();if(!i)return;let o=[i.name];o=await Oi(o,t),yt(o.join(` `)),ae({title:"复制名称",text:"已复制选中文件名",icon:"success"});}})}async function Rd(e,t){return new Ai({key:`_lc_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制路径",onClick:async(n,s)=>{await n.closeMenu();const i=fa();if(!i)return;const o=await Kr(i),r=await Gr(i,o,t);yt(r),ae({title:"复制路径",text:"已复制文件路径",icon:"success"});}})}async function Nd(e){return new Ai({key:"_lc_copy_sha1",label:"文件sha1"+(e?"(带文件名)":""),icon:"icon-operate ifo-copy",title:"复制文件sha1"+(e?"。格式为 xxx//yyy,xxx为sha1,yyy为文件名":""),onClick:async(t,n)=>{await t.closeMenu();const s=fa();if(!s)return;if(s.isDir){ae({text:"该功能仅对文件有效",icon:"warning",timer:2e3});return}const i=s.hash+(e?`//${s.name}`:"");yt(i),ae({title:"复制文件sha1",text:"已复制文件sha1",icon:"success",timer:1e3});}})}async function AC(){return new Ai({key:"_lc_view_in_clouddrive",label:"在CloudDrive中查看",icon:"icon-operate ifo-exportdir",title:"在CloudDrive2 Web页面中查看",onClick:async(e,t)=>{await e.closeMenu();const n=fa();n&&await wr(n);}})}async function IC(e){const{[ze.listItemContext]:t}=e;if(!t.enabled)return;const n=[];t.copyNames&&n.push(await PC(t)),new pb({items:n,position:Xn.after,siblingSelector:'[val="refresh"]',useObserver:!0,observeTarget:document.body,disposeObserverAfterInjection:!1}).inject();}async function TC(e){const{[ze.listItemHover]:t}=e;if(!t.enabled)return;const n=[];t.openInNewTab&&n.push(await Gv()),t.search&&n.push(await qv()),t.play&&n.push(await zv()),t.copyNames&&n.push(await Kv(t)),t.findRepeat&&n.push(await Jv()),new Qv({items:n,position:Xn.after,siblingSelector:'[menu="move"], [menu="delete"]'}).inject();}async function OC(){return new du({key:"_s_smart_mkdir",label:"同名目录",icon:"icon-operate ifo-move",title:"将选中的文件移动到同名目录",onClick:await Fv()})}async function DC(e){const{namePathConfig:t}=e,n=[];return t.copyFullName&&n.push(await tr("完整名称",Mt.full)),t.copyPureName&&n.push(await tr("不含后缀",Mt.pure)),t.copyFullName&&n.push(await tr("完整名称,去重",Mt.fullUnique)),t.copyPureName&&n.push(await tr("不含后缀,去重",Mt.pureUnique)),t.copySha1&&(n.push(await Fd(!1)),n.push(await Fd(!0))),t.copyUnixPath&&n.push(await Ud("路径(Unix)",Cn.unixPath)),t.copyWinPath&&n.push(await Ud("路径(Windows)",Cn.winPath)),new du({key:"_s_copy_names_paths",label:"名称路径",icon:"icon-operate ifo-copy",showIcon:!1,title:"复制选中文件的名称路径",onClick:async(s,i)=>{},subItems:n})}async function Fd(e,t){return new ci({key:"_s_copy_sha1"+(e?"_u":""),label:"文件sha1"+(e?",去重":""),icon:"icon-operate ifo-copy",showIcon:!1,title:"复制文件sha1。格式为 xxx//yyy,xxx为sha1,yyy为文件名",onClick:async(n,s)=>{const i=await An(!0),o=new Set,r=[];for(const a of i)a.hash&&(e&&o.has(a.hash)||(o.add(a.hash),r.push(a.hash+`//${a.name}`)));yt(r.join(` `)),ae({title:"复制文件sha1",text:`已复制选中文件sha1。数量:${r.length}`,icon:"success",timer:1e3});}})}async function tr(e,t){return new ci({key:`_s_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",showIcon:!1,title:e,onClick:async(n,s)=>{let o=(await An(!0)).map(r=>r.name);o=await Oi(o,t),yt(o.join(` `)),ae({title:"复制名称",text:`已复制选中文件名。数量:${o.length},复制类型:${e}`,icon:"success",timer:1e3});}})}async function Ud(e,t){return new ci({key:`_s_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",showIcon:!1,title:e,onClick:async(n,s)=>{const i=await An(!0);let o=[];ae({text:"正在获取已选文件路径...",timer:0}),ue.showLoading();try{o=await dp(i,t),ue.close();}catch(r){console.error(r),ae({text:`获取已选文件路径失败: ${r}`,timer:6e4,icon:"error"});return}finally{ue.hideLoading();}yt(o.join(` `)),ae({title:"复制路径",text:`已复制选中文件的路径。数量:${o.length},复制类型:${e}`,icon:"success",timer:1e3});}})}async function MC(e=qr.vod){const t=await An(!0);if(!t.length)return;const n=Date.now().toString(),s=unsafeWindow.open(Gf("xxx",e),n);await nn(1e3);let i=10;for(;i>0;)s==null||s.postMessage({event:"play",body:{id:n,files:t}},`https://${e}`),await nn(1e3),i--;}async function LC(){const e=await sn(),t=await cu(e);return new du({key:"_s_play_with_x_d",label:t.defaultPlayer.label,title:t.defaultPlayer.memo,onClick:async(n,s)=>{console.log("[selectionMenuPlayWithDropdown] me",n),!t.noRealDefault&&Zh(t.defaultPlayer,n,s);},subItems:[...await RC(ci,t.customUrlItems),new Zv({}),new ci({label:"关于选中播放",onClick:async(n,s)=>{s.stopPropagation(),s.preventDefault(),ae({title:"关于选中播放",html:`

        点「在线播放」会打开115播放页面播放选中的视频。


        如果是点击调用本地播放器播放:

        原理: 生成m3u8文件,上传m3u8文件到115,调用播放该m3u8的CloudDrive2直链。

        设定: m3u8默认放在网盘根目录下的「.ce-m3u8-temp」目录下,不会自动清理。

        作为使用者需做的: 在CloudDrive2里设置「.ce-m3u8-temp」目录缓存时间为1秒。

        这个目录会在首次播放时自动创建,如果想提前设置目录缓存时间,可以自己创建。另外,可以在「设置 - 菜单设置 - 全局设置」中修改「M3U8临时目录」以设置目录位置。


        导致播放失败的可能: CloudDrive2目录缓存工作异常,导致请求不到m3u8文件。

        `,showConfirmButton:!0,width:600,timer:18e5});},icon:"data-text:❓"})]})}async function BC(e){if(e=e.trim(),!e)throw new Error("m3u8临时目录路径为空!");const t=await lv(e);if(t.id)return console.log("[ensureM3u8TempDir] result:",t),t.id;throw new Error("创建m3u8临时目录失败!")}async function Zh(e,t,n){if(n.stopPropagation(),n.preventDefault(),t.key==="_ce_p_p_builtin_online"||e.key==="p_builtin_online"){await MC();return}const s=await sn();try{let i=await An(!0);if(i=i.filter(m=>m.isDir||m.isVideo||m.isImage),i.length===0){ae({title:"播放失败",text:"没有可以播放的目录或媒体文件!",icon:"error",timer:2e3});return}const o=await Eo();if(i.length===1){const m=i[0],v=await ui(m,e,o);window.open(v,"_blank","noopener noreferrer");return}const r=await BC(s.m3u8TempDir),a=await av(i,r);console.log("[selection.buildPlayMenuItems generatePlaylistOn115]",a);const l=a.data,c={id:l.file_id,name:l.file_name,parentId:l.cid,sizeBytes:l.file_size,pickCode:l.pick_code,isDir:!1,isFile:!0},u=yr([s.m3u8TempDir,c.name],cs.unix);ae({title:"检查m3u8文件",text:"正在检查m3u8文件是否已准备就绪...",icon:"info",timer:0}),ue.showLoading(),await Tb(o,u,!0,1e3,6e4),ae({icon:"success",text:"m3u8文件已准备就绪,即将开始播放..."});const p=await ui(c,e,o);window.open(p,"_blank","noopener noreferrer");}catch(i){console.error(i),ae({title:"播放失败",text:i.toString(),icon:"error",timer:6e4,showConfirmButton:!0});}finally{ue.hideLoading();}}async function RC(e,t){const n=[];for(const s of t){const i=Nr(e,{key:`_ce_p_${s.key}`,label:s.label,icon:s.icon,title:s.memo,onClick:async(o,r)=>{Zh(s,o,r);}});n.push(i);}return n}async function NC(e){if(!e.hideSelectionMenuLabel)return;const t=await lt("#js_operate_box");new MutationObserver(async([s])=>{if(s.type==="childList"){const i=t.querySelectorAll("li[menu]");for(let o=0;o{let l="";for(const c of a)c.enabled&&(l+=c.body);return l})([{label:"_",body:'_',enabled:!0}]);(()=>{const a="ce-menu-init",l=Xw(`#js-list li:not(.${a})`);for(let c=0;c`),p.innerHTML=i,u.appendChild(p));}})();}async function em(e){let t=e.pageWidth.trim();const n="ce-share-page-width";let s=Yw(`#${n}`,``);t=/^\d+$/.test(t)?`${t}px`:t,s.innerHTML=t?`div.wrap-sharing { width: ${t} !important; }`:"",document.contains(s)||document.head.appendChild(s);const i=!!t&&!/px$/.test(t);jC(i);}function tm(){const e=rt(".top-vflow");if(!e)return;const t=rt('a[btn="save"]');if(!t)return;const n=t.getBoundingClientRect(),s=rt("#save_directly");s&&(s.style.left=n.left-e.getBoundingClientRect().left+"px");}const jd=bt(tm,200);let nr=!1;function jC(e){setTimeout(tm,500),e&&!nr?(window.addEventListener("resize",jd),nr=!0):!e&&nr&&(window.removeEventListener("resize",jd),nr=!1);}async function HC(e){if(!e.autoConfirmPassword)return;let t=Fr("password");if(!t||(t=t.replace(/(\?.*)?$/,""),(await lt(".form-decode .form-item input")).value!==t))return;(await lt(".form-decode .submit a.button")).click(),ae({icon:"success",text:"自动确定访问码",timer:1e3,position:"top-right"});}async function VC(e){const t=await lt("#js-list"),n=await sn(),s=o=>{Ka(e),UC(e,n);};new MutationObserver(s).observe(t,{childList:!0}),t.addEventListener("mousedown",bt(o=>{Ka(e);},200));try{(await lt('[btn="check_all"]')).addEventListener("mousedown",bt(r=>{Ka(e);},200));}catch(o){console.error(o);}}function xi(e){e instanceof HTMLElement||(e=e[0]);const t=e.getAttribute("fid"),n=e.getAttribute("cid"),s=!!t;return {id:t||n,name:e.getAttribute("file_name"),sizeBytes:parseInt(e.getAttribute("file_size")||"0"),isFile:s,isDir:!s,snapId:e.getAttribute("snap_id"),parentId:s?n:"",hash:e.getAttribute("sha1")||"",checked:e.classList.contains("selected")}}function zC(e){const t={num:0,filesNum:0,filesSize:0,foldersNum:0,selectedNum:0,selectedFilesNum:0,selectedFilesSize:0,selectedFoldersNum:0};for(const n of e)t.num+=1,n.isFile?(t.filesNum+=1,t.filesSize+=n.sizeBytes):t.foldersNum+=1,n.checked&&(t.selectedNum+=1,n.isFile?(t.selectedFilesNum+=1,t.selectedFilesSize+=n.sizeBytes):t.selectedFoldersNum+=1);return t}async function Ka(e){if(!e.showListSummary)return;const t=await lt(".list-header"),s=(await lt("ul#js-list")).querySelectorAll("li"),i=Array.from(s).map(xi),o=zC(i),r=t.querySelector(".header-name"),a=[];o.num&&a.push(`共${o.num}项`),o.filesNum&&a.push(`${o.filesNum}个文件,合计${vo(o.filesSize)}`),o.foldersNum&&a.push(`${o.foldersNum}个目录`);const l=[];o.selectedNum&&(o.selectedFilesNum&&l.push(`${o.selectedFilesNum}个文件,合计${vo(o.selectedFilesSize)}`),o.selectedFoldersNum&&l.push(`${o.selectedFoldersNum}个目录`));const c=` ${a.join(", ")} ${l.length?`。已选中${l.join(",")}`:""} `;let u=r.querySelector(".ce-list-summary");u?u.outerHTML=c:(u=ft(c),r.appendChild(u));}async function nm(e){const t="ce-share-page";document.body.classList.add(t),parent.document.body.classList.add(t);const n="ce-share-fresh";e.freshMode?document.body.classList.add(n):document.body.classList.remove(n);}async function qC(){window.addEventListener("message",async e=>{const t=e.data.event,n=e.data.body;t===gt.shareConfigChange&&(em(n),nm(n));});}let WC=[];async function KC(e){const t=[...(await uu()).filter(n=>n.enabled),...WC.filter(n=>n.enabled),...(await Ti(ms.search)).filter(n=>n.enabled)];return new mp({key:"_s_search_with_name_d",label:"搜索",icon:"",title:"使用名称搜索",onClick:async(n,s)=>{s.stopPropagation(),s.preventDefault();const i=$(s.target).closest("li"),o=xi(i[0]),r=Wr({search_value:o.name,cid:"0"});window.open(r,"_blank","noopener noreferrer");},subItems:[...await lp(fu,t,xi)]})}async function Hd(e,t){return new fu({key:`_s_lh_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,s)=>{s.stopPropagation(),s.preventDefault();const i=$(s.target).closest("li");let r=[xi(i[0]).name];r=await Oi(r,t),yt(r.join(` `)),ae({title:"复制名称",text:`已复制选中文件名,复制类型:${e}`,icon:"success",timer:1e3});}})}async function Vd(e){return new fu({key:"_s_lh_copy_sha1",label:"文件sha1"+(e?"(带文件名)":""),icon:"icon-operate ifo-copy",title:"复制文件sha1"+(e?"。格式为 xxx//yyy,xxx为sha1,yyy为文件名":""),onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const s=$(n.target).closest("li"),i=xi(s[0]);if(i.isDir){ae({text:"该功能仅对文件有效",icon:"warning",timer:2e3});return}const o=i.hash+(e?`//${i.name}`:"");yt(o),ae({title:"复制文件sha1",text:"已复制文件sha1",icon:"success",timer:1e3});}})}async function GC(e){const t=hp().namePathConfig,{namePathConfig:n=t}=e,s=[];return n.copyFullName&&s.push(await Hd("完整名称",Mt.full)),n.copyPureName&&s.push(await Hd("不含后缀",Mt.pure)),n.copySha1&&s.push(await Vd(!1)),n.copySha1WithName&&s.push(await Vd(!0)),new mp({key:"_s_lh_copy_name_path",label:"名称",title:"复制文件名称",subItems:s})}async function JC(e){const{[ze.shareListItemHover]:t}=e;if(!t.enabled)return;const n=[];t.search&&n.push(await KC()),t.copyNames&&n.push(await GC(t)),new t1({items:n,position:Xn.after,siblingSelector:'[menu="_s_null_"], [btn="prosecute"]'}).inject();}async function YC(){const{host:e,search:t}=location;if(!e.includes("115.com")&&!al())return;console.log("[Cloud115 Enhancer - menu] running..."),QC(),document.addEventListener(cn.EVENT_CLOSE_MENU,s=>{$("#"+s.detail.menu.key).closest(".context-menu").hide();});const n=await sn();n.enabled&&(XC(n),await fp(n),window.top===window.self&&EC(n),IC(n),(In()||xs())&&(TC(n),FC(n),NC(n)),al()&&JC(n));}async function QC(){const e="ceCustomUrlHelp",t=document.createElement("div");t.id=e,document.body.appendChild(t);const n=Wn(jx);n.component("VDropdown",Oo),n.mount(`#${e}`);}async function XC(e){e.manageOfficialMenus&&(Dd(),window.addEventListener("message",async t=>{t.data.event===gt.officialMenuStyleChange&&(console.log("[Cloud115 Enhancer - menu] officialMenuStyleChange",location.href),await nn(1e3),console.log(await Jh()),Dd());}));}const sm=mt.offline;var dr=(e=>(e.name="name",e.nameRegex="nameRegex",e.infoHash="infoHash",e.url="url",e))(dr||{});const ZC={name:"名称",nameRegex:"名称正则",infoHash:"哈希",url:"链接"};var Gs=(e=>(e.selection="ce-offline-selection",e.configChanged="ce-offline-config-changed",e.searchPageChanged="ce-offline-search-page-changed",e))(Gs||{});function ek(e){return {onlyMagnetEd2k:!1,enableOptimization:!0,reqInterval:500,maxPage:0,showInfoHash:!0,enableListManagement:!0,fixGotoPage:!1,enableSearcher:!0,searchMaxPage:5,searchKeywordType:"name",searchStatus:en.any,searchStopOnFound:!1,searchReqInterval:10,noGotoTaskPage:!0,...e}}async function bs(){const e=ek(),t=await et.get(sm,e);return {...e,...t}}async function om(e){await et.set(sm,e),window.postMessage({event:"ce-offline-config-changed",body:JSON.parse(JSON.stringify(e))},"*");}var tk={name:"115不大助手",version:"0.7.63",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};async function nk(e){const t=await lt("#js-warp"),n=t.querySelectorAll("li[complete]");if(n.length>0)for(const i of Array.from(n))await zd(i,e);rk(e),new MutationObserver(async([i])=>{if(i.type==="childList"){i.addedNodes.forEach(async a=>{await zd(a,e);});const o=document.querySelector(".ce-checkbox-all input"),r=await pa();if(!r.length)o.checked=!1,o.indeterminate=!1;else {const a=t.querySelectorAll("li[complete]");o.checked=r.length===a.length,o.indeterminate=!o.checked;}await ha(r);}}).observe(t,{childList:!0});}async function sk(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 zd(e,t){const n=e,s=await sk(e);ak(n,t,s),ok(n,t,s),ik(n,t,s);}async function ok(e,t,n){if(!t.showInfoHash||e.querySelector(".info-hash"))return;const s=e.querySelector(".file-name"),i=ft(`
        ${n.hash}
        `);s.after(i),i.addEventListener("click",()=>{yt(n.hash),ae({text:"已复制",icon:"success",timer:800});});const o=e.querySelector(".desc-tips");o&&o.style.display!=="none"&&e.classList.add("ce-task-trouble");}async function ik(e,t,n){const s=e.querySelector(".file-operate");if(s.querySelector(".ce-buttons"))return;const i=ft(''),o=ft(` 打开 `);o.href=Rs(n.cate_id),o.title="在新标签页打开目录",i.append(o),s.prepend(i);}async function rk(e){if(!e.enableListManagement)return;const t=await lt("#js-main .header-name");let n=t.querySelector(".ce-checkbox-all");n||(n=ft(`
        `),t.prepend(n)),n.addEventListener("click",()=>{const s=n.querySelector("input").checked;document.querySelectorAll("#js-warp li").forEach(o=>{const r=o.querySelector("input");r.checked=s,o.classList.toggle("ce-selected",s);}),pa().then(o=>{ha(o);});});}async function ak(e,t,n){if(!t.enableListManagement||e.querySelector(".ce-checkbox"))return;const s=e.querySelector(".file-name-wrap"),i=ft(`
        `);s.prepend(i),e.classList.add("ce-show-checkbox"),i.addEventListener("click",async o=>{o.shiftKey?await uk(o,e):await lk(o,e);});}async function lk(e,t){t.classList.toggle("ce-selected");const n=document.querySelector(".ce-checkbox-all input"),s=await rm();let i=0;for(const r of s)r.classList.contains("ce-selected")&&i++;const o=i===s.length;n.checked=o,n.indeterminate=!o&&i>0,pa().then(r=>{ha(r);});}async function uk(e,t){const n=await rm(),s=n.indexOf(t);let i=-1;for(let u=0;us;u--)if(n[u].classList.contains("ce-selected")){i=u;break}}i=i===-1?s:i;const o=Math.min(i,s),r=Math.max(i,s);let a=0;for(let u=0;u=o&&u<=r;m.checked=v,v&&a++,p.classList.toggle("ce-selected",v);}const l=o===0&&r===n.length-1,c=document.querySelector(".ce-checkbox-all input");c.checked=l,c.indeterminate=!l&&a>0,pa().then(u=>{ha(u);});}async function im(e){var n;const t={info_hash:e.getAttribute("hash"),status:Number(e.getAttribute("status")),name:e.getAttribute("name"),file_id:e.getAttribute("cate_id"),delete_file_id:e.getAttribute("delete_id"),url:((n=e.querySelector(".file-operate a[cp_href]"))==null?void 0:n.getAttribute("cp_href"))||""};return t.name||(t.name=e.querySelector(".file-name").textContent.trim()),t}async function rm(e){const t=document.querySelectorAll("#js-warp li"),n=[];return t.forEach(async s=>{const i=s;n.push(i);}),n}async function pa(){const e=document.querySelectorAll("#js-warp li"),t=[];return e.forEach(async n=>{const s=n;if(s.classList.contains("ce-selected")){const i=await im(s);t.push(i);}}),t}async function ha(e){window.postMessage({event:Gs.selection,body:e},"*");}async function Ol(e){document.querySelectorAll("#js-warp li").forEach(async n=>{const s=n,i=s.getAttribute("hash");e.includes(i)&&Pf(s);});}async function ck(e,t,n,s){var v;const i=[],o=n.maxPage||5;let r="",a=null,l="",c="",u="";n.name!==void 0&&(r=n.caseSensitive?n.name:n.name.toLowerCase()),n.nameRegex!==void 0&&(a=new RegExp(n.nameRegex)),n.infoHash!==void 0&&(l=n.caseSensitive?n.infoHash:n.infoHash.toLowerCase()),n.url!==void 0&&(c=n.caseSensitive?n.url:n.url.toLowerCase()),n.status!==void 0&&n.status!==en.any&&n.status.toString()!==""&&(u=n.status.toString());let p=n.stopOnFound||!1;(l||c)&&(p=!0);let m=-1;for(let w=1;w<=o&&!(m>-1&&w>m);w++){window.postMessage({event:Gs.searchPageChanged,body:w},"*");const _=await Jf(w,e,t);m===-1&&(m=_.page_count);const R=_.tasks;for(const L of R){const j=n.caseSensitive?L.name:L.name.toLowerCase(),T=n.caseSensitive?L.info_hash:L.info_hash.toLowerCase(),M=n.caseSensitive?L.url:(v=L.url)==null?void 0:v.toLowerCase(),U=r&&n.fuzzyName?j.includes(r):!1,z=a?a.test(j):!1,G=l&&T===l,me=c&&M===c;if((u?u===L.status.toString():!0)&&(U||z||G||me)&&(i.push(L),p))break}if(p&&i.length)break}return i}async function dk(){if(!(await bs()).fixGotoPage)return;const t=await lt("#js-page");if(!t){console.warn("[fixGotoPage] 找不到`#js-page`");return}const n=async r=>{if(r.key!=="Enter")return;const a=r.target,l=parseInt(a.value);if(isNaN(l)){a.select();return}parent.window.Core.OFFL5Plug.ChangePage(l);},s=async(r=!1)=>{const a=t.querySelector('input[rel="page_jump"]');if(!a)return;const l=ft(` `);l.title=`这是 ${tk.name} 替换的输入框,如果想恢复原有的输入框,请在「离线设置」中关闭「修复输入页码跳转」选项`,l.addEventListener("keydown",n),a.insertAdjacentElement("beforebegin",l),a.remove(),r&&l.focus();},i=bt(async r=>{s(!0);},50),o=new MutationObserver(async([r])=>{r.type==="childList"&&i(r);});s(!1),o.observe(t,{childList:!0});}async function fk(e){const t=on();if(!e.noGotoTaskPage||window!==window.top||t.Core.OFFL5Plug)return;async function n(s){t.Core&&s(!0);}try{await _s(n,250,3e4),t.Core.OFFL5Plug||t.$.getScript("https://cdnres.115.com/site/static/plug/offline_wl/offline5.0.js",()=>{t.Core.OFFL5Plug.AddClient({});});}catch(s){throw new Error(`[disableGotoTaskPage] wait Core failed:${s.message}`)}}const pk={class:"ce-config ce-offline-config"},hk={class:"pure-form pure-form-aligned offline-exporter-config-form"},mk={class:"pure-control-group"},gk={class:"pure-control-group"},yk={class:"pure-control-group"},wk={class:"pure-control-group"},bk={class:"pure-control-group"},vk={class:"pure-control-group"},_k={class:"pure-control-group"},xk=Te({__name:"Config",async setup(e){let t,n;const s=ne(([t,n]=jt(()=>bs()),t=await t,n(),t));return Tt(async()=>{}),Xe(s,bt(async i=>{await om(i),ae({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},500),{deep:!0}),(i,o)=>(S(),I("div",pk,[d("form",hk,[d("fieldset",null,[d("div",mk,[o[7]||(o[7]=d("label",{for:"noGotoTaskPage"},"添加任务后不跳转",-1)),oe(d("input",{id:"noGotoTaskPage",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=r=>s.value.noGotoTaskPage=r)},null,512),[[De,s.value.noGotoTaskPage]]),o[8]||(o[8]=d("div",{class:"pure-form-message text-success"}," 官方的添加离线任务在添加任务后可能会跳转到任务列表页,开启此选项可以避免跳转。 ",-1))]),d("div",gk,[o[9]||(o[9]=d("label",{for:"enableListManagement"},"启用批量管理",-1)),oe(d("input",{id:"enableListManagement",type:"checkbox","onUpdate:modelValue":o[1]||(o[1]=r=>s.value.enableListManagement=r)},null,512),[[De,s.value.enableListManagement]]),o[10]||(o[10]=d("div",{class:"pure-form-message text-success"}," 可以选中多个任务进行操作,支持shift多选。 ",-1))]),d("div",yk,[o[11]||(o[11]=d("label",{for:"showInfoHash"},"显示链接哈希",-1)),oe(d("input",{id:"showInfoHash",type:"checkbox","onUpdate:modelValue":o[2]||(o[2]=r=>s.value.showInfoHash=r)},null,512),[[De,s.value.showInfoHash]]),o[12]||(o[12]=d("div",{class:"pure-form-message text-success"}," 显示离线任务的哈希文本,点击可以复制。 ",-1))]),d("div",wk,[o[13]||(o[13]=d("label",{for:"fixGotoPage"},"修复输入页码跳转",-1)),oe(d("input",{id:"fixGotoPage",type:"checkbox","onUpdate:modelValue":o[3]||(o[3]=r=>s.value.fixGotoPage=r)},null,512),[[De,s.value.fixGotoPage]]),o[14]||(o[14]=d("div",{class:"pure-form-message text-success"}," 如果官方的输入页码跳转功能异常,可开启此选项。 ",-1))]),o[21]||(o[21]=d("div",{class:"ce-tips"},"以下是导出链接相关选项",-1)),d("div",bk,[o[15]||(o[15]=d("label",{for:"onlyMagnetEd2k"},"只取磁力和ED2K链接",-1)),oe(d("input",{id:"onlyMagnetEd2k",type:"checkbox","onUpdate:modelValue":o[4]||(o[4]=r=>s.value.onlyMagnetEd2k=r)},null,512),[[De,s.value.onlyMagnetEd2k]]),o[16]||(o[16]=d("div",{class:"pure-form-message text-success"}," 导出链接时,只取磁力和ED2K链接,其他比如http链接会被略过。 ",-1))]),d("div",vk,[o[17]||(o[17]=d("label",{for:"enableOptimization"},"启用导出优化",-1)),oe(d("input",{id:"enableOptimization",type:"checkbox","onUpdate:modelValue":o[5]||(o[5]=r=>s.value.enableOptimization=r)},null,512),[[De,s.value.enableOptimization]]),o[18]||(o[18]=d("div",{class:"pure-form-message text-success"}," 据观察,离线记录列表是将未完成的记录放在最前面的。如果只需导出未完成链接, 当获取到一个已完成的记录时,便可以停止继续获取后面的记录,节省时间。 ",-1))]),d("div",_k,[o[19]||(o[19]=d("label",{for:"maxPage"},"最多导出页数",-1)),oe(d("input",{id:"maxPage",type:"number","onUpdate:modelValue":o[6]||(o[6]=r=>s.value.maxPage=r),min:0},null,512),[[Ke,s.value.maxPage]]),o[20]||(o[20]=d("div",{class:"pure-form-message text-success"}," 0表示不限制,否则表示最多导出的页数。 ",-1))])])])]))}}),am=Ne(xk,[["__file","Config.vue"]]);function qd(e){return /^magnet:\?xt=urn:btih/.test(e)}function Wd(e){return /^ed2k:\/\/\|file\|/.test(e)}function Kd(e){return `magnet:?xt=urn:btih:${e.toUpperCase()}`}function lm(e){const t=e.match(/([a-z\d]{32,40})/i);return t?t[1]:""}function Ck(e,t=!0){return (t?/^([a-z\d]{32})$|^([a-z\d]{40})$/i:/^[a-z\d]{32,40}$/i).test(e)}const kk={class:"ce-offline-exporter"},Sk={key:0},sr=`\r `,$k=Te({__name:"OflineExporter",setup(e){let t,n;const s=ne([]);let i={};Yt(async()=>{i=await bs(),t=await Qf(),console.log("[profile]",t),n=await Yf(),console.log("[space]",n),o(),await nk(i);});async function o(){window.addEventListener("message",w=>{const{event:_,body:R}=w.data;switch(_){case Gs.selection:s.value=R;break;case Gs.configChanged:i=R;break}},!1);}async function r(w=!1,_=""){const{isConfirmed:R,value:L}=await ue.fire({title:"根据链接删除离线任务",html:`
        每行一个链接,支持磁力链接和ED2K链接
        `,focusConfirm:!1,didOpen:()=>{const M=document.getElementById("swalDeleteFile");M.checked=w;const U=document.getElementById("swalUrls");U.value=_,U.focus();},preConfirm:()=>{const M=document.getElementById("swalDeleteFile"),U=document.getElementById("swalUrls");return {deleteFile:M?M.checked:!1,urls:U?U.value:""}},width:620,inputPlaceholder:"每行一个",inputAttributes:{"aria-label":"每行一个"},showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!R)return;if(L===void 0){alert("请输入链接!");return}const j=[],T=L.urls.trim().split(` `);for(let M=0;Mj.info_hash);if(!w.length)return;const{isConfirmed:_,value:R}=await ue.fire({title:"批量删除",icon:"warning",html:`确定要删除选中的 ${w.length} 个离线记录吗?`,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!_)return;const L=!!R;ue.showLoading(),ue.update({html:"正在删除..."}),await ll(w,n,L,t.user_id),ae({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await Ol(w),s.value=[];}async function l(w){const _=[w];i.onlyMagnetEd2k&&_.push(Xt.magnetEd2k),console.log("[filters]",_),await v(n.sign,t.user_id,_);}function c(w,_){if(!_.length||_.length===1&&_[0]==="all")return w;const R={[en.failed]:Xt.failed,[en.illegal]:Xt.failed,[en.ing]:Xt.failed,[en.success]:Xt.success};return w=w.filter(L=>{if(!L.url&&!L.info_hash)return !1;const j=R[L.status];return _.includes(Xt.all)||j&&_.includes(j)?!(_.includes(Xt.magnetEd2k)&&(!Ck(L.info_hash)||L.url&&!qd(L.url)&&!Wd(L.url))):!1}),w}async function u(w,_,R){let L=[],j=1,T=0;for(;;){ue.update({html:`正在导出... 进度:第 ${j} 页`+(T?` / ${T}`:""),allowOutsideClick:!1});const M=await Jf(j,w,_);if(!M.tasks||!M.tasks.length)break;if(T===0&&i.maxPage>0?T=Math.min(M.page_count,i.maxPage):T=M.page_count,L=[...L,...c(M.tasks,R)],i.enableOptimization&&R.includes(Xt.failed)&&p(M.tasks)){console.warn("由于开启了导出优化,且检测到已获取的记录中至少有一个「已完成」的记录,将不再获取剩下的记录");break}if(j>=T)break;j++;}return L}function p(w){for(const _ of w)if(_.status===en.success)return !0;return !1}async function m(){const w=[Xt.all];i.onlyMagnetEd2k&&w.push(Xt.magnetEd2k),console.log("[filters]",w);const _=s.value;if(!_.length)return;const R=[];_.forEach(L=>{!L.url&&L.info_hash&&(L.url=Kd(L.info_hash)),R.push(L.url);}),R.length&&(yt(R.join(sr)),console.log("[links]",R),await ue.fire({title:"导出成功",icon:"success",html:`成功导出 ${R.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),gr(R.join(sr),`115离线链接_数量${R.length}_${bo()}.txt`),!1)}));}async function v(w,_,R){ue.fire({title:"导出离线链接",html:"正在导出...",didOpen:()=>{ue.showLoading();}});const L=await u(w,_,R);if(ue.hideLoading(),!L.length){await ue.fire({title:"导出失败",icon:"error",html:"查询不到符合条件的离线记录!"});return}const j=[];if(L.forEach(T=>{!T.url&&T.info_hash&&(T.url=Kd(T.info_hash)),j.push(T.url);}),!j.length){await ue.fire({title:"导出失败",icon:"error",html:"未完成的离线记录中没有磁力或HTTP链接!"});return}yt(j.join(sr)),console.log("[links]",j),await ue.fire({title:"导出成功",icon:"success",html:`成功导出 ${j.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),gr(j.join(sr),`115离线链接_数量${j.length}_${bo()}.txt`),!1)});}return (w,_)=>{const R=gs("VDropdown");return S(),I("span",kk,[s.value.length?(S(),I("span",Sk,[d("button",{type:"button",class:"pure-button button-small button-error",onClick:a},[_[4]||(_[4]=B("删除(")),d("span",null,K(s.value.length),1),_[5]||(_[5]=B(")"))]),_[6]||(_[6]=B("      "))])):be("",!0),d("button",{type:"button",class:"pure-button button-mini button-error",onClick:_[0]||(_[0]=L=>r(!1,"")),title:"填写链接以删除对应的离线任务"},"根据链接删除"),_[9]||(_[9]=B("   ")),s.value.length?(S(),I("button",{key:1,type:"button",class:"pure-button button-mini button-warning",onClick:m,title:"导出选中任务的链接"},[_[7]||(_[7]=B("导出已选")),d("span",null,"("+K(s.value.length)+")",1)])):be("",!0),d("button",{type:"button",class:"pure-button button-mini button-error",onClick:_[1]||(_[1]=L=>l(re(Xt).failed)),title:"导出未完成链接"},"导出未完成"),d("button",{type:"button",class:"pure-button button-mini button-success",onClick:_[2]||(_[2]=L=>l(re(Xt).success)),title:"导出已完成链接"},"导出已完成"),d("button",{type:"button",class:"pure-button button-mini button-warning",onClick:_[3]||(_[3]=L=>l(re(Xt).all)),title:"导出全部链接"},"导出全部"),_[10]||(_[10]=B("   ")),ge(R,{distance:5,"arrow-padding":10},{popper:Ce(()=>[(S(),st(hh,null,{default:Ce(()=>[ge(am)]),_:1}))]),default:Ce(()=>[_[8]||(_[8]=d("button",{type:"button",class:"pure-button button-mini"},"设置",-1))]),_:1})])}}}),Ek=Ne($k,[["__file","OflineExporter.vue"]]),Pk=["cate_id","delete_id","status","hash"],Ak={class:"file-name-wrap"},Ik={class:"file-name"},Tk={task_popup:"goto",href:"javascript:;",class:"name"},Ok={rel:"name"},Dk={class:"desc-tips",rel:"file_down_violations"},Mk={class:"txt-red",rel:"file_down_tips"},Lk=["filename"],Bk={class:"file-size"},Rk={class:"file-process"},Nk={rel:"progress"},Fk={class:"file-operate",rel:"opt"},Uk=["cp_href"],jk=Te({__name:"OfflineItem",props:{item:{},space:{},profile:{}},setup(e){const t=ot(()=>o.item.percentDone?parseInt(o.item.percentDone.toString()):0),n=ot(()=>{const{name:r,del_path:a}=o.item;let l=r.replace(/^.*\./,"");return a&&/\/$/.test(a)&&(l="folder"),/^[a-z\d]+$/i.test(l)||(l="unknown"),l}),s=ot(()=>{const{err:r}=o.item;return r?gb[r]:""}),i=ot(()=>o.item.can_appeal===1),o=e;return (r,a)=>(S(),I("li",{complete:"",cate_id:r.item.file_id,delete_id:r.item.delete_file_id,status:r.item.status,hash:r.item.info_hash},[d("div",Ak,[d("i",{class:Fe(["file-type",`tp-${n.value}`])},null,2),d("div",Ik,[d("em",null,[d("a",Tk,[d("span",Ok,K(r.item.name),1)])])]),oe(d("div",Dk,[d("span",Mk,K(s.value),1),oe(d("a",{href:"javascript:;",class:"btn-link",filename:r.item.name,rel:"violations_down_btn"},"去申诉",8,Lk),[[Wt,i.value]])],512),[[Wt,s.value]])]),d("div",Bk,[d("span",null,K(re(vo)(r.item.size)),1)]),d("div",Rk,[r.item.status===re(en).failed?(S(),I(Le,{key:0},[a[0]||(a[0]=d("i",{class:"icon-file-status ifst-failure"},null,-1)),a[1]||(a[1]=d("span",{rel:"progress"},"下载失败",-1))],64)):r.item.status===re(en).success?(S(),I(Le,{key:1},[a[2]||(a[2]=d("i",{class:"icon-file-status ifst-success"},null,-1)),a[3]||(a[3]=d("span",{rel:"progress"},"下载成功",-1))],64)):r.item.status===re(en).ing?(S(),I(Le,{key:2},[a[4]||(a[4]=d("i",{class:"icon-file-status ifst-downing"},null,-1)),d("span",Nk,K(t.value)+"%",1)],64)):r.item.status===re(en).illegal?(S(),I(Le,{key:3},[a[5]||(a[5]=d("i",{class:"icon-file-status ifst-violation"},null,-1)),a[6]||(a[6]=d("span",{rel:"progress"},"违规",-1))],64)):(S(),I(Le,{key:4},[a[7]||(a[7]=d("i",{class:"icon-file-status ifst-failure"},null,-1)),a[8]||(a[8]=d("span",{rel:"progress"},"[未知]",-1))],64))]),d("div",Fk,[a[10]||(a[10]=d("a",{href:"javascript:;",task_popup:"goto"},[d("i",{class:"icon-operate ifo-opendir"}),d("s",null,"跳转到目录")],-1)),d("a",{href:"javascript:;",cp_href:r.item.url,task_popup:"copy"},a[9]||(a[9]=[d("i",{class:"icon-operate ifo-copy"},null,-1),d("s",null,"复制",-1)]),8,Uk),a[11]||(a[11]=d("a",{href:"javascript:;",class:"btn-delete-offline"},[d("i",{class:"icon-operate ifo-remove"}),d("s",null,"删除")],-1))])],8,Pk))}}),Hk=Ne(jk,[["__file","OfflineItem.vue"]]),Vk={class:"ce-offline-list"},zk=Te({__name:"OfflineList",props:{items:{},space:{},profile:{}},setup(e){return (t,n)=>(S(),I("div",Vk,[d("ul",null,[(S(!0),I(Le,null,Je(t.items,(s,i)=>(S(),st(Hk,{Key:i,item:s,space:t.space,profile:t.profile},null,8,["Key","item","space","profile"]))),256))])]))}}),qk=Ne(zk,[["__file","OfflineList.vue"]]),Wk={inline:"",class:"pure-form search-form",size:"small"},Kk={class:"form-item",label:"关键词"},Gk=["value"],Jk={class:"form-item"},Yk={class:"form-item",label:"状态"},Qk=["value"],Xk=["value"],Zk={class:"form-item",label:"页数"},eS={class:"form-item"},tS={key:0,title:"根据「名称/名称正则」查找时,是否在找到一个结果时停止继续查找"},nS={key:0,class:"search-tips"},sS={class:"tips-body"},oS={key:0},iS=Te({__name:"OfflineSearcher",setup(e){let t,n;const s=ne(),i=ne({KeywordType:dr.name,keyword:"",status:en.any,maxPage:5,stopOnFound:!1});let o={...i.value};const r=ne(null),a=ne(!1),l=ne([]),c=ne(null),u=ne({content:"",subContent:"",visible:!1});Yt(async()=>{t=await Qf(),n=await Yf(),s.value=await bs(),i.value.KeywordType=s.value.searchKeywordType,i.value.status=s.value.searchStatus,i.value.maxPage=s.value.searchMaxPage,i.value.stopOnFound=s.value.searchStopOnFound,o={...i.value},document.body.addEventListener("click",z=>{M(z);}),p();}),Xe(i,bt(async z=>{console.log("[searchParams changed]",nu(z)),v();},200),{deep:!0});async function p(){window.addEventListener("message",z=>{const{event:G,body:me}=z.data;switch(G){case Gs.searchPageChanged:m(me);break;case Gs.configChanged:s.value={...me};break}},!1);}async function m(z){console.log("[handleSearchPageChanged]",z),await U({subContent:`正在搜索第 ${z} 页...`,visible:!0});}async function v(){const z=await bs();let G=0;o.KeywordType!==i.value.KeywordType&&(z.searchKeywordType=i.value.KeywordType,G++),o.status!==i.value.status&&(z.searchStatus=i.value.status,G++),o.maxPage!==i.value.maxPage&&(z.searchMaxPage=i.value.maxPage,G++),o.stopOnFound!==i.value.stopOnFound&&(z.searchStopOnFound=i.value.stopOnFound,G++),G&&(await om(z),console.log("[handleSearchParamsChange]",z),s.value={...z}),o={...i.value};}async function w(z){var G;(G=r.value)==null||G.select();}async function _(z){var G;i.value.keyword="",(G=r.value)==null||G.focus();}async function R(){l.value=[],i.value.keyword="",o={...i.value},await U({visible:!1}),await j(!1);try{parent.window.Core.OFFL5Plug.ChangePage(1);}catch(z){console.error(z);}}async function L(){var G;l.value=[];let{keyword:z}=i.value;if(z=z.trim(),z===""){await qs(),(G=r.value)==null||G.select(),Qo.fire({icon:"warning",title:"关键词不能为空!"});return}a.value=!0,await U({content:"正在搜索...",subContent:"",visible:!0});try{const me={status:i.value.status,maxPage:i.value.maxPage,fuzzyName:!0,caseSensitive:!1,stopOnFound:i.value.stopOnFound};me[i.value.KeywordType]=i.value.keyword,me.infoHash&&(me.infoHash=lm(me.infoHash)),console.log("[search filter]",me);const we=await ck(n.sign,t.user_id,me,s.value);l.value=we,console.log("[search result]",we),we.length>0?await U({visible:!1}):await U({content:"没有符合条件的离线任务",subContent:"",visible:!0}),await j(!0);}catch(me){console.warn("[search error]",me),Qo.fire({icon:"error",title:me.toString()}),await U({content:"搜索失败!",subContent:me.toString(),visible:!0});}finally{a.value=!1;}}async function j(z=!0){var we,ce;!l.value.length&&z&&Qo.fire({icon:"warning",html:"没有符合条件的离线任务"}),await qs();const G=(we=c.value)==null?void 0:we.querySelector("ul");if(!G)return;const me=document.querySelector("ul#js-warp");me&&(me.innerHTML=G.innerHTML),await T(),(ce=r.value)==null||ce.focus();}async function T(){const z=l.value.length,G=document.querySelector("#js-page");if(!G)return;const me=G.querySelector(".left-bvf span");me.textContent=`共搜索到 ${z} 个结果`;const we=G.querySelector(".pagination .con");we.style.display="none";}async function M(z){let G=z.target;if(G.classList.contains("ifo-remove")&&(G=G.closest("a")),!G.classList.contains("btn-delete-offline"))return;const me=G.closest("li"),we=await im(me),ce=[we.info_hash];let H={title:"删除离线记录",icon:"warning",html:`确定要删除「${we.name}」吗?`,showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"};we.delete_file_id&&(H={...H,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件"});const{isConfirmed:F,value:ee}=await ue.fire(H);if(!F)return;const de=!!ee;ue.showLoading(),ue.update({html:"正在删除..."}),await ll(ce,n,de,t.user_id),ae({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await Ol(ce);}async function U(z){u.value={...u.value,...z};}return (z,G)=>(S(),I("div",{class:Fe(["ce-offline-searcher",{loading:a.value}])},[d("form",Wk,[d("fieldset",null,[d("div",Kk,[oe(d("select",{"onUpdate:modelValue":G[0]||(G[0]=me=>i.value.KeywordType=me),size:"small",onChange:w},[(S(!0),I(Le,null,Je(re(ZC),(me,we)=>(S(),I("option",{key:we,value:we},K(me),9,Gk))),128))],544),[[Pn,i.value.KeywordType]])]),d("div",Jk,[d("div",{class:Fe(["clearable-wrap",{"is-empty":i.value.keyword===""}])},[oe(d("input",{ref_key:"refKeyword",ref:r,"onUpdate:modelValue":G[1]||(G[1]=me=>i.value.keyword=me),placeholder:"请输入关键词",clearable:"",onKeyup:Eh(L,["enter"])},null,544),[[Ke,i.value.keyword]]),d("button",{type:"button",class:"pure-button pure-button-default button-xsmall btn-clear",onClick:_},"×")],2)]),d("div",Yk,[oe(d("select",{"onUpdate:modelValue":G[2]||(G[2]=me=>i.value.status=me),placeholder:"请选择",clearable:"",style:{width:"90px"}},[d("option",{value:re(en).any},"-状态-",8,Qk),(S(!0),I(Le,null,Je(re(hb),(me,we)=>(S(),I("option",{key:we,value:we},K(me),9,Xk))),128))],512),[[Pn,i.value.status]])]),d("div",Zk,[oe(d("input",{type:"number","onUpdate:modelValue":G[3]||(G[3]=me=>i.value.maxPage=me),min:1,max:1e5,title:"最多查找页数"},null,512),[[Ke,i.value.maxPage]]),G[5]||(G[5]=d("small",null,"页",-1))]),d("div",eS,[[re(dr).name,re(dr).nameRegex].includes(i.value.KeywordType)?(S(),I("label",tS,[oe(d("input",{type:"checkbox","onUpdate:modelValue":G[4]||(G[4]=me=>i.value.stopOnFound=me),class:"stop-on-found"},null,512),[[De,i.value.stopOnFound]]),G[6]||(G[6]=B(" 找到即停 "))])):be("",!0),d("button",{type:"button",class:"pure-button pure-button-primary button-small",onClick:L},"查找"),G[7]||(G[7]=B("    ")),d("button",{type:"button",class:"pure-button pure-button-default button-xsmall",onClick:R,title:"清空关键词;重置列表到非查找状态"},"重置")])])]),d("div",{ref_key:"refList",ref:c,class:"list"},[ge(qk,{items:l.value,space:re(n),profile:re(t)},null,8,["items","space","profile"])],512),u.value.visible?(S(),I("div",nS,[d("div",sS,[d("h2",null,K(u.value.content),1),u.value.subContent?(S(),I("p",oS,K(u.value.subContent),1)):be("",!0)])])):be("",!0)],2))}}),rS=Ne(iS,[["__file","OfflineSearcher.vue"]]);async function aS(){const e=await bs(),{host:t,search:n}=location;t==="115.com"&&fk(e),!(t!=="115.com"||!n.includes("offline=1&tab=offline"))&&(await lS(),await uS(),dk());}async function lS(){console.log("[Cloud115 Enhancer] Injecting offline exporter...");const e="cloud115OfflineExporter",t=await bs();document.body.classList.add("cloud115-page-offline"),t.enableListManagement&&document.body.classList.add("ce-list-m"),$("body").append(`
        `);const n=Wn(Ek);n.component("VDropdown",Oo),n.mount(`#${e}`);}async function uS(){console.log("[Cloud115 Enhancer] Injecting offline searcher...");const e="cloud115OfflineSearcher",t=await bs();document.body.classList.add("cloud115-page-offline"),t.enableSearcher&&document.body.classList.add("ce-list-s"),$("body").append(`
        `);const n=Wn(rS);n.component("VDropdown",Oo),n.mount(`#${e}`);}var Kt=(e=>(e.UNKNOWN="unknown",e.OPEN_CLEANER="openCleaner",e.CLOSE_CLEANER="closeCleaner",e.CLEANER_OPENED="cleanerOpened",e.INVOKE_FILTER="invokeFilter",e.OPEN_EMPTY_CLEANER="openEmptyCleaner",e.CLOSE_EMPTY_CLEANER="closeEmptyCleaner",e.EMPTY_CLEANER_OPENED="emptyCleanerOpened",e))(Kt||{});const cS={class:"cloud115-eh-cleaner-trigger"},dS=Te({__name:"Trigger",setup(e){ne(!1);const t=ne(!0);async function n(a){switch(a.data.type){case Kt.INVOKE_FILTER:await ev(a.data.payload);break;case Kt.CLEANER_OPENED:await r(a.data.payload);break}}Yt(async()=>{console.log("[CleanerTrigger onMounted]"),window.addEventListener("message",n);}),Xs(()=>{console.log("[CleanerTrigger onUnmounted]"),window.removeEventListener("message",n);});async function s(){await o(),js({type:Kt.OPEN_CLEANER},window.parent);}let i;async function o(){const a=Fr("cid");!a||a==="0"||(clearTimeout(i),i=setTimeout(async()=>{ae({icon:"error",text:"打开清理工具失败!"});},1e3));}async function r(a){console.log("成功打开Cleaner"),clearTimeout(i);}return (a,l)=>oe((S(),I("span",cS,[Qe(a.$slots,"default",{},()=>[d("span",{class:"btn-open pure-button pure-button-primary",onClick:s,title:"打开清理文件工具"},l[0]||(l[0]=[d("span",null,"清理文件",-1)]))])],512)),[[Wt,t.value]])}}),fS=Ne(dS,[["__file","Trigger.vue"]]);function um(e={}){return {initialized:!1,suffixGroup:"",keywordGroup:"",showEntryOnPathBar:!0,pageSize:1150,reqInterval:100,deleteSize:1150,...e}}async function ma(){const e=um(),t=await et.get(mt.cleanerConfig,e);return {...e,...t,pageSize:1150,reqInterval:100,deleteSize:1150}}async function pS(e){return await et.set(mt.cleanerConfig,e)}async function cm(e){const t=await ma();return await pS({...t,...e})}var qe=(e=>(e[e.suffix=0]="suffix",e[e.keyword=1]="keyword",e))(qe||{}),it=(e=>(e[e.filter=0]="filter",e[e.dirKeyword=1]="dirKeyword",e[e.fileKeyword=2]="fileKeyword",e[e.fileHash=3]="fileHash",e))(it||{});const dm={0:"筛选",1:"目录名关键词",2:"文件名关键词",3:"文件sha1"};var Ot=(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))(Ot||{}),Yo=(e=>(e.all="all",e.file="file",e.dir="dir",e))(Yo||{});const hS={all:"全部",file:"文件",dir:"目录"};var Or=(e=>(e.all="all",e.matched="matched",e.notMatched="unmatched",e))(Or||{});const mS={all:"全部",matched:"有匹配",unmatched:"无匹配"};var $t=(e=>(e.none="",e.prepare="查询文件...",e.prepared="查询文件完成",e.prepareFailed="查询失败",e.deleting="删除文件中...",e.success="清理完成",e.failed="清理失败",e))($t||{});const gS=new Map([[vn.all,Zt.all],[vn.video,Zt.video],[vn.audio,Zt.audio],[vn.image,Zt.image],[vn.doc,Zt.doc],[vn.app,Zt.app],[vn.archive,Zt.archive]]),Dl=Rb(gS),yS=[["文件名关键词","广告abc","包含`广告abc`,不区分大小写"],["目录名关键词","#广告abc","在关键词前面加上`#`"],["策略-不可分割匹配",'"广告 abc"',"匹配`广告 abc啊`,不匹配`广告啊abc`,即空格部分也进行匹配,使用双引号包裹关键词。"],["文件sha1","7309dd0d50007e027180f02301ccba8ba0fd971f//文件xxx","关键词部分长度为40且只包含a-f0-9的文本会被视为sha1"],["策略-区分大小写","广告abc/s","在关键词后面加上`/s` (s 可理解为 sensitive 首字母)"],["策略-等于","广告abc.mp4/=","在关键词后面加上`/=`,不区分大小写"],["策略-等于且区分大小写","广告abc.mp4/==","在关键词后面加上`/==`,也可以用`/s,=` (多个策略使用英文逗号隔开)"],["策略-指定最大大小","广告abc.mp4/10","在关键词后面加上`/10`,该大小将覆盖所在分组的设定"],["策略-正则表达式","^abc/r","在关键词后面加上`/r`"],["添加备注","广告abc//备注内容","在策略后面加上`/备注内容`,`//`表示策略为空,有策略的示例: 广告abc/s/备注内容"]],wS="##",ju="#",bS="=",vS="==",_S="s",xS="r",fm="#",CS=[{type:qe.suffix,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:5,values:["txt","url","html","htm","mht"]},{type:qe.suffix,queryOnly:!0,label:"🔍115筛选",memo:"仅用于查询",size:102400,values:["#视频","#音频","#图片","#文档","#应用","#压缩包"]}],kS=["#論壇文宣","#宣傳文本","最新地址","最新网址","论坛地址","永久地址","地址发布","扫码 安装","扫码 下载","免費 掃碼","澳门 赌场","皇冠 赌场","免费18禁手游","免费黄游手游","在线影城","秀场 小视频","裸秀 主播 免费看","第一会所 宣传","SIS 影视联盟",'"最 新 位 址 獲 取"','"社 區 最 新 情 報"','"聚 合 全 網 H 直 播"'],SS=["#論壇文宣","美女 裸聊","秀场 视频","澳门 赌场","皇冠 赌场","影视 联盟","2048 社区","1024 社区","会所 宣传","扫码 安装","社区 关注","免費 掃碼","找回家","防屏蔽","封殺00","秀场 小视频","裸秀 主播 免费看",'"Free Adult Movie"',"奔驰宝马","最新网址","最新免費","免费试用","美女荷官","凤凰娛樂","观看指南","女神在线","更多无水印","免费在线","国产精品","免費原版","獨家資源","成人光碟","最新AV","FDZone","发布器","QR-1024","在這等你","激情祼聊","看妹不用等","真人祼聊","zz.jpg","X8B9.COM.gif","第一会所 宣传","SIS 影视联盟","淘精網","激情咖啡","手機影城","免费手机看片","U視娛樂","加微信","我愛看片手機版","平台正式上線"],$S=[{type:qe.keyword,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:100,values:kS},{type:qe.keyword,queryOnly:!1,label:"⚠️大杀器⚠️",memo:"请谨慎使用!",size:100,values:SS},{type:qe.keyword,queryOnly:!0,label:"远程关键词示例",size:100,values:[],url:"https://gist.githubusercontent.com/northsea4/a6c1945eb12fe7a7ef125c323b83b3fc/raw?t={t}"},{type:qe.keyword,queryOnly:!0,label:"只查询示例",memo:"这是一个示例",size:10240,values:["奔驰宝马","美女荷官",'"最 新 位 址 獲 取"']}];function Ms(e={}){return {id:Date.now().toString(),type:qe.keyword,queryOnly:!1,label:"",values:"",memo:"",size:0,sort:0,createdAt:0,updatedAt:0}}function ES(e,t){if(e=e.trim(),t===qe.keyword)return DS(e);if(t!==qe.suffix)return null;const n=AS(e);return {type:it.filter,value:e,maxSize:-1,forDir:!1,isFilter:n,pattern:n?IS(e).toString():e,num:-1,fileIds:[],size:-1,status:$t.none}}function PS(e){return [$t.prepare,$t.deleting].includes(e.status)}function Gd(e,t){const n=[];return PS(e)&&n.push("active"),(e.type===it.filter||e.isFilter)&&n.push("is-filter"),e.type===it.dirKeyword&&n.push("is-dir"),e.num&&n.push(`item-${Or.matched}`),e.num===0&&n.push(`item-${Or.notMatched}`),n}function AS(e){return new RegExp(`^${fm}[\\S]{2,}`).test(e)}function IS(e){const t=new RegExp(`^${fm}`);let n=e.replace(t,"");const s=Dl.get(n);if(!s)throw new Error(`"${e}"不是有效的筛选!`);return s}async function Ds(e,t){let n;typeof e=="string"?n=e.split(/[\r\n]+/):n=e;const s=new Set;for(let o=0;o1&&s.add(r);}const i=[];return s.forEach(o=>{const r=ES(o,t);r&&i.push(r);}),i}function TS(e){return /(^'.+'$)|(^".+"$)/.test(e)}function Jd(e,t){return e===""||!t.patternRegexp?!1:(t.pattern,t.patternRegexp.test(e))}function Yd(e,t,n){const s=pm(e);s.num=0,s.size=0,s.fileIds=[];const i=new Set;let o=0;n.maxSize&&(o=n.maxSize*1024*1024),e.maxSize>=0&&(o=e.maxSize*1024*1024);for(let r=0;ro||e.type===it.fileKeyword&&!Jd(t[r].n,e)||e.type===it.dirKeyword&&!Jd(t[r].n,e)||e.type===it.fileHash&&t[r].sha!==e.pattern.toUpperCase()||i.has(l)||(i.add(l),s.size+=c);}return s.fileIds=Array.from(i),s.num=s.fileIds.length,s}function pm(e={}){return {type:it.fileKeyword,value:"",pattern:"",patternRegexp:null,maxSize:-1,size:-1,fullMatch:!1,caseSensitive:!1,isRegexp:!1,impartible:!1,memo:"",...e}}function OS(e){if(e=e.trim().replace(/\/+$/,"").replace(/^\/+/,""),e==="")return null;const t={caseSensitive:!1,fullMatch:!1,maxSize:-1,isRegexp:!1};let n=!1;const s=e.split(/\s*,\s*/);for(let i=0;i41?e.substring(41):void 0,t;const n=/^(#+)?([^\/]+)(\/[^\/]*)?(\/.+)?/,s=e.match(n);if(s){if(s[2]==="")return null;if(s[3]){const i=OS(s[3]);i&&(t.caseSensitive=i.caseSensitive,t.fullMatch=i.fullMatch,t.maxSize=i.maxSize,t.isRegexp=i.isRegexp);}if(t.value=e,t.pattern=s[2].trim(),s[1]===wS)return t.type=it.filter,null;s[1]===ju?t.type=it.dirKeyword:t.type=it.fileKeyword,s[4]&&(t.memo=s[4].substring(1).trim());}return t.impartible=TS(t.pattern),t.impartible&&(t.pattern=t.pattern.replace(/^['"]|['"]$/g,"")),t.type===it.dirKeyword&&(t.maxSize=-1),t.patternRegexp=MS(t),t}function MS(e){if(e.pattern===""||![it.dirKeyword,it.fileKeyword].includes(e.type))return null;let t="";if(e.caseSensitive||(t+="i"),e.isRegexp)return new RegExp(e.pattern,t);let n=$b(e.pattern);return e.fullMatch&&(n=`^${n}$`),e.impartible||(n=n.replace(/\s+/g,".*")),new RegExp(n,t)}function LS(e){const{type:t,pattern:n,isRegexp:s}=e;return t===it.filter?Dl.has(n)?{type:Dl.get(n)}:/^\d$/.test(n)?{type:parseInt(n)}:{suffix:n}:s?{search_value:n.replace(/^\^/,"").replace(/\$$/,"")}:{search_value:n}}function qo(e,t,n){if(n){const s=Kl(e,{});nl(e,{...s,...t});}else nl(e,t);}function BS(e={}){return su({okStatus:[200],useFileReader:!1,fileReader:{encoding:"utf-8",checkBlank:!0}},e)}async function hm(e,t={}){return new Promise((n,s)=>{const i=t.useFileReader?"blob":"text";Gl({method:"GET",url:e,responseType:i,nocache:!t.cache,onload:async o=>{if(t.okStatus&&!t.okStatus.includes(o.status)&&s(new Error(`请求失败!status=${o.status},statusText=${o.statusText}`)),t.useFileReader){let r=o.response,a=new FileReader;a.onload=l=>{var u;console.log("[load] onload",l);let c=(u=l.target)==null?void 0:u.result;typeof c=="string"?t.fileReader.checkBlank&&c===""?s(new Error("读取内容为空字符串")):n(c):s(new Error("读取结果不是字符串"));},a.readAsText(r,t.fileReader.encoding);return}n(o.response);},onerror:o=>{console.error("[load] onerror",o),s(`请求失败!status=${o==null?void 0:o.status},statusText=${o==null?void 0:o.statusText}`);}});})}async function RS(e){try{new URL(e.url);}catch{throw new Error(`无效的URL:${e.url}`)}e.url.replace("{t}",Date.now().toString());let t="";try{t=await hm(e.url);}catch(n){throw new Error(`无法加载URL:${n.toString()}`)}if(t=t.trim(),t==="")throw new Error("URL返回内容为空!");e.values=t,e.lastSync=bo();}const mm=function(){return document.ontouchstart!==null?"click":"touchstart"},Dr="__vue_click_away__",gm=function(e,t,n){ym(e);let s=n.context,i=t.value,o=!1;setTimeout(function(){o=!0;},0),e[Dr]=function(r){if((!e||!e.contains(r.target))&&i&&o&&typeof i=="function")return i.call(s,r)},document.addEventListener(mm(),e[Dr],!1);},ym=function(e){document.removeEventListener(mm(),e[Dr],!1),delete e[Dr];},NS=function(e,t,n){t.value!==t.oldValue&&gm(e,t,n);},FS={mounted:gm,updated:NS,unmounted:ym},US=Te({__name:"Drawer",props:{isOpen:{type:Boolean,default:!1},maxWidth:{default:"600px"},speed:{default:100},bgColor:{default:"#fff"}},emits:["close"],setup(e,{emit:t}){const n=e,s=ne(!1),i=ne(!1),o=l=>{const c=document.querySelector("body");c.style.overflow=l?"hidden":"";},r=l=>{l.target.classList.contains("ce-drawer__overlay")&&(i.value||a("close"));},a=t;return Yt(()=>{s.value=n.isOpen;}),Xe(()=>n.isOpen,l=>{i.value=!0,l?(o(!0),s.value=!0):(o(!1),setTimeout(()=>s.value=!1,n.speed)),setTimeout(()=>i.value=!1,n.speed);}),(l,c)=>(S(),I("div",null,[d("div",{class:Fe(["ce-drawer",{"is-open":l.isOpen,"is-visible":s.value}])},[d("div",{class:"ce-drawer__overlay",style:Fn({transitionDuration:`${l.speed}ms`})},null,4),oe((S(),I("div",{class:"ce-drawer__content",style:Fn({maxWidth:l.maxWidth,transitionDuration:`${l.speed}ms`,backgroundColor:l.bgColor})},[Qe(l.$slots,"default")],4)),[[re(FS),r]])],2)]))}}),Ci=Ne(US,[["__file","Drawer.vue"]]),jS={class:"k-p-e"},HS={class:"ce-tag-plain"},VS={class:"text-primary"},zS={class:"text-success"},qS={key:0,class:"ce-hr"},WS=Te({__name:"KeywordPatternExamples",setup(e){return (t,n)=>(S(),I("div",jS,[n[2]||(n[2]=d("h4",{style:{"margin-bottom":"6px"}},"关键词说明(前4种类型已满足大部分需求场景)",-1)),(S(!0),I(Le,null,Je(re(yS),(s,i)=>(S(),I("div",{key:i},[d("div",null,[d("span",HS,K(s[0]),1),n[0]||(n[0]=B("  ")),d("span",VS,K(s[1]),1),n[1]||(n[1]=B("  ")),d("span",zS,K(s[2]),1)]),i===3?(S(),I("hr",qS)):be("",!0)]))),128))]))}}),wm=Ne(WS,[["__file","KeywordPatternExamples.vue"]]),KS={class:"group-manager"},GS={key:0,class:"label-readonly",title:"当前分组只可用于查询"},JS={key:1,class:"label-readonly",title:"当前分组特征为远程文本"},YS=["title"],QS={class:"groups-list"},XS={key:0,class:"text-danger"},ZS={class:"pure-table pure-table-bordered"},e$={align:"center"},t$=["onClick"],n$={class:"group-confirm-delete"},s$=["onClick"],o$=["onClick"],i$={class:"pure-form pure-form-stacked group-form"},r$={class:"pure-control-group"},a$={class:"pure-control-group"},l$={key:0,class:"pure-control-group"},u$={class:"pure-form-message"},c$={class:"pure-control-group"},d$={class:"pure-form-message"},f$={key:0,class:"text-info"},p$={key:1,class:"text-info"},h$=["onClick"],m$={class:"values"},g$={class:"v-input"},y$={class:"v-help"},w$={class:"pure-control-group"},b$={class:"pure-control-group"},v$=Te({__name:"GroupManager",props:{type:{},storageKey:{},config:{}},emits:["change"],setup(e,{emit:t}){const n=e,s=t,i=ne(!1),o=ne(Ms({type:n.type})),r=ne([]),a=ne(!1),l=ne(Ms({type:n.type})),c=ne(!1),u=ne(null),p=[Zt.video,Zt.audio,Zt.image,Zt.doc,Zt.app,Zt.archive];Xe(r,async ce=>{console.log("[groups change]",ce),qo(n.storageKey,ce,!1),ce.length||(a.value=!1,c.value=!1);},{deep:!0});let m=!1;Yt(async()=>{if(!m){m=!0,r.value=Kl(n.storageKey,[]),console.log("[groups]",r.value);const{suffixGroup:ce,keywordGroup:H}=n.config;if(r.value.length){const F=r.value.find(ee=>ee.id===(n.type===qe.suffix?ce:H));console.log("[group last choosen]",F),o.value=F||r.value[0],s("change",o.value);}else n.type===qe.suffix&&!ce&&(await M(),qo(mt.cleanerConfig,{suffixGroup:o.value.id},!0)),n.type===qe.keyword&&!H&&(await M(),qo(mt.cleanerConfig,{keywordGroup:o.value.id},!0));}}),Xs(async()=>{});async function v(ce){const H=`#${ce}`;l.value.values.includes(H)||(l.value.values+=(` `+H).trim()+` `);}async function w(){i.value=!1;}async function _(){c.value=!1;}async function R(){c.value=!0,a.value=!1;}async function L(){u.value.show();}async function j(){u.value.hide();}async function T(){l.value.createdAt&&(l.value=Ms({type:n.type})),l.value.size=5,n.type===qe.keyword&&(l.value.size=100),i.value=!0;}async function M(){let ce=[];n.type===qe.suffix?ce=CS:ce=$S;for(let H=0;H{const F=gs("VDropdown");return S(),I("div",KS,[o.value.queryOnly?(S(),I("span",GS," 🔍 只查询 ")):be("",!0),o.value.url?(S(),I("span",JS," 🔗 远程 ")):be("",!0),o.value.createdAt?(S(),I("span",{key:2,class:"group-label",title:`当前使用的分组: ${o.value.label}`},[d("span",null,[H[11]||(H[11]=d("small",null,"分组:",-1)),B(" "+K(o.value.label),1)])],8,YS)):be("",!0),o.value.url?(S(),I("a",{key:3,href:"javascript:void(0)",class:"pure-button button-success",onClick:H[0]||(H[0]=ee=>we(o.value,!0))}," ↓ 同步关键词")):be("",!0),d("a",{href:"javascript:void(0)",class:"pure-button",onClick:H[1]||(H[1]=ee=>z(o.value))}," ✎ 编辑 "),H[36]||(H[36]=B("    ")),d("a",{href:"javascript:void(0)",class:"pure-button button-small",onClick:T},"+ 新增分组"),ge(F,{ref_key:"list",ref:u,onHide:_,onShow:R,distance:5},{popper:Ce(()=>[d("div",QS,[r.value.length?be("",!0):(S(),I("h3",XS,[H[12]||(H[12]=B(" 还没有添加任何分组。你可以: ")),d("button",{type:"button",class:"pure-button button-small",onClick:T},"添加"),H[13]||(H[13]=B("   ")),H[14]||(H[14]=d("span",{class:"text-info"},"或",-1)),H[15]||(H[15]=B("   ")),d("button",{type:"button",class:"pure-button button-small",onClick:M},"使用脚本内置"),H[16]||(H[16]=d("br",null,null,-1)),H[17]||(H[17]=d("br",null,null,-1))])),d("table",ZS,[H[21]||(H[21]=d("thead",null,[d("tr",null,[d("th",{width:"25"},"#"),d("th",{width:"70"},"只查询"),d("th",{width:"150"},"名称"),d("th",{width:"150"},"备注"),d("th",{width:"70"},[B("大小"),d("small",null,"MB")]),d("th",{width:"220"},"操作")])],-1)),d("tbody",null,[(S(!0),I(Le,null,Je(r.value,(ee,de)=>(S(),I("tr",{key:de},[d("td",null,K(de+1),1),d("td",e$,K(ee.queryOnly?"是":"否"),1),d("td",null,K(ee.label),1),d("td",null,K(ee.memo),1),d("td",null,K(ee.size),1),d("td",null,[d("button",{type:"button",class:"pure-button button-xsmall text-primary",onClick:_e=>me(ee)},"载入",8,t$),H[19]||(H[19]=B("   ")),ge(F,null,{popper:Ce(()=>[d("div",n$,[d("button",{type:"button",class:"pure-button button-error",onClick:_e=>U(ee,!0)},"确定",8,s$)])]),default:Ce(()=>[H[18]||(H[18]=d("button",{type:"button",class:"pure-button button-xsmall text-danger"},"删除",-1))]),_:2},1024),H[20]||(H[20]=B("   ")),d("button",{type:"button",class:"pure-button button-xsmall",onClick:_e=>z(ee)},"编辑",8,o$)])]))),128))])])])]),default:Ce(()=>[d("a",{href:"javascript:void(0)",class:"pure-button button-small",onClick:L},"≡ 分组列表")]),_:1},512),ge(Ci,{"is-open":i.value,onClose:H[10]||(H[10]=ee=>i.value=!1),"max-width":"1030px",speed:100,"bg-color":"#fff"},{default:Ce(()=>[d("form",i$,[d("fieldset",null,[d("div",r$,[H[22]||(H[22]=d("label",{for:"groupLabel"},"* 标题",-1)),oe(d("input",{type:"text","onUpdate:modelValue":H[2]||(H[2]=ee=>l.value.label=ee),id:"groupLabel",class:"pure-input-1-2",placeholder:"分组标题"},null,512),[[Ke,l.value.label]]),H[23]||(H[23]=B("    ")),l.value.queryOnly?(S(),I("button",{key:0,type:"button",class:"pure-button button-small button-warning",onClick:H[3]||(H[3]=ee=>l.value.queryOnly=!1)},"已设置为仅用于查询 | 点击取消设置")):be("",!0),l.value.queryOnly?be("",!0):(S(),I("button",{key:1,type:"button",class:"pure-button button-small pure-button-primary",onClick:H[4]||(H[4]=ee=>l.value.queryOnly=!0)},"设置为仅用于查询"))]),d("div",a$,[H[24]||(H[24]=d("label",{for:"groupMemo"},"备注",-1)),oe(d("input",{type:"text","onUpdate:modelValue":H[5]||(H[5]=ee=>l.value.memo=ee),id:"groupMemo",placeholder:"分组备注"},null,512),[[Ke,l.value.memo]])]),n.type===re(qe).keyword?(S(),I("div",l$,[H[27]||(H[27]=d("label",{for:"groupUrl"},"远程链接",-1)),d("div",u$,[H[25]||(H[25]=d("span",null,"纯文本, utf-8编码",-1)),H[26]||(H[26]=B("    ")),l.value.url?(S(),I("button",{key:0,type:"button",class:"pure-button button-small button-success",onClick:H[6]||(H[6]=ee=>we(l.value,!1))}," 读取 ")):be("",!0)]),oe(d("input",{type:"text","onUpdate:modelValue":H[7]||(H[7]=ee=>l.value.url=ee),id:"groupUrl",placeholder:"远程链接"},null,512),[[Ke,l.value.url]])])):be("",!0),d("div",c$,[H[32]||(H[32]=d("label",{for:"groupValues"},"* 特征列表",-1)),d("div",d$,[n.type===re(qe).keyword?(S(),I("span",f$,[H[28]||(H[28]=B(" 默认只匹配文件名。前面带")),d("b",null,K(re(ju)),1),H[29]||(H[29]=B("则只匹配目录名。 "))])):be("",!0),n.type===re(qe).suffix?(S(),I("span",p$,[H[30]||(H[30]=B(" 支持115自带筛选: ")),(S(),I(Le,null,Je(p,(ee,de)=>d("span",{class:"filter-label text-success",key:de,onClick:_e=>v(ee)}," #"+K(ee),9,h$)),64)),H[31]||(H[31]=d("small",{class:"text-primary"},"(点击添加)",-1))])):be("",!0)]),d("div",m$,[d("div",g$,[oe(d("textarea",{id:"groupValues","onUpdate:modelValue":H[8]||(H[8]=ee=>l.value.values=ee),rows:"14",placeholder:"每行一个"},null,512),[[Ke,l.value.values]])]),d("div",y$,[ge(wm)])])]),d("div",w$,[H[33]||(H[33]=d("label",{for:"groupMemo"},"* 文件大小",-1)),H[34]||(H[34]=d("div",{class:"pure-form-message"},[B("只清理小于该大小的文件,单位"),d("b",null,"MB")],-1)),oe(d("input",{type:"number","onUpdate:modelValue":H[9]||(H[9]=ee=>l.value.size=ee),class:"pure-input-1-4",placeholder:"文件大小小于该数值才清理"},null,512),[[Ke,l.value.size]])]),d("div",b$,[d("button",{type:"button",class:"pure-button pure-button-primary",onClick:G},K(l.value.createdAt?"更新":"添加"),1),H[35]||(H[35]=B("      ")),d("button",{type:"button",class:"pure-button",onClick:w},"取消")])])])]),_:1},8,["is-open"])])}}}),Qd=Ne(v$,[["__file","GroupManager.vue"]]),_$={class:"cloud115-eh-cleaner-help"},x$=Te({__name:"Help",setup(e){return (t,n)=>(S(),I("div",_$,[d("div",null,[n[3]||(n[3]=vh('

        免责声明

        该工具仅作为学习测试用途,使用该工具造成的任何结果由使用人承担。


        说明

        • 始于清理,但不止于清理!
        • * 仅对当前选中的目录及其子目录生效。
        • * 通过新增分组 / 分组列表管理你的清理特征。
        • * 建议整理自己的特征,也欢迎在交流中分享你的特征。
        • * 只查询按钮,只会进行查询。
        • * 一键清理是先查询,再进行删除!
        • * 由于搜索接口限制,如果某个关键词结果数量超过1万,可能会清理不完全,可以多执行几次清理。
        • * 清理期间,请保持当前页面处于激活状态!
        • * 请谨慎操作!请谨慎操作!请谨慎操作!

        按 后缀名 清理

        1. 点击分组列表,选择一个分组;

        2. 确认后缀名和文件大小限制等的设定;

        3. 点击一键清理按钮,耐心等待。


        按 关键词 清理

        ',10)),d("div",null,[n[0]||(n[0]=d("p",{class:"text-danger"},[B("目录名关键词使用"),d("b",null,"搜索"),B("接口查找匹配,只能逐个关键词进行处理,请尽量使用简单的关键词,否则可能会匹配不到。")],-1)),n[1]||(n[1]=d("p",{class:"text-danger"},[B("文件名关键词使用"),d("b",null,"列表"),B("接口查找匹配,速度较快,且支持更灵活的关键词。")],-1)),n[2]||(n[2]=d("br",null,null,-1)),ge(wm)])])]))}}),C$=Ne(x$,[["__file","Help.vue"]]),k$={key:0},S$={key:1},$$={key:2},E$={key:3},P$={key:4},A$={key:5},I$={key:6},T$={key:7},O$={key:8},D$={key:9},M$=Te({__name:"Pager",props:{totalItems:{type:Number,required:!0},itemsPerPage:{type:Number,default:10,validator:e=>{if(e<=0){const t="itemsPerPage attribute must be greater than 0.";throw console.error(t),new TypeError(t)}return !0}},currentPage:{type:Number,default:1,validator:e=>{const t="currentPage attribute must be greater than 0.";if(e<=0)throw console.error(t),new TypeError(t);return !0}},modelValue:{type:Number,required:!0,validator:e=>{const t="v-model is required and must be greater than 0.";if(e<=0)throw console.error(t),new TypeError(t);return !0}},maxPagesShown:{type:Number,default:5,validator:e=>{const t="maxPagesShown attribute must be greater than 0.";if(e<=0)throw console.error(t),new TypeError(t);return !0}},dir:{type:String,default:"ltr",validator:e=>{const t='dir attribute must be either "ltr" or "rtl".';if(e!=="ltr"&&e!=="rtl")throw console.error(t),new TypeError(t);return !0}},type:{type:String,default:"button",validator:e=>{const t=["link","button"],n="type attribute must be one of the following: "+t.join(", ");if(t.indexOf(e)===-1)throw console.error(n),new TypeError(n);return !0}},onClick:{type:Function,default:()=>{}},prevButtonContent:{type:String,default:"<"},nextButtonContent:{type:String,default:">"},hidePrevNext:{type:Boolean,default:!1},hidePrevNextWhenEnds:{type:Boolean,default:!1},showBreakpointButtons:{type:Boolean,default:!0},disableBreakpointButtons:{type:Boolean,default:!1},startingBreakpointContent:{type:String,default:"..."},endingBreakpointButtonContent:{type:String,default:"..."},showJumpButtons:{type:Boolean,default:!1},linkUrl:{type:String,default:"#"},backwardJumpButtonContent:{type:String,default:"<<"},forwardJumpButtonContent:{type:String,default:">>"},disablePagination:{type:Boolean,default:!1},showEndingButtons:{type:Boolean,default:!1},firstPageContent:{type:String,default:"First"},lastPageContent:{type:String,default:"Last"},backButtonClass:{type:String,default:"back-button"},nextButtonClass:{type:String,default:"next-button"},firstButtonClass:{type:String,default:"first-button"},lastButtonClass:{type:String,default:"last-button"},numberButtonsClass:{type:String,default:"number-buttons"},startingBreakpointButtonClass:{type:String,default:"starting-breakpoint-button"},endingBreakPointButtonClass:{type:String,default:"ending-breakpoint-button"},firstPageButtonClass:{type:String,default:"first-page-button"},lastPageButtonClass:{type:String,default:"last-page-button"},paginateButtonsClass:{type:String,default:"paginate-buttons pure-button"},disabledPaginateButtonsClass:{type:String,default:"disabled-paginate-buttons"},activePageClass:{type:String,default:"active-page"},paginationContainerClass:{type:String,default:"pagination-container"},disabledBreakPointButtonClass:{type:String,default:"disabled-breakpoint-button"},backwardJumpButtonClass:{type:String,default:"backward-jump-button"},forwardJumpButtonClass:{type:String,default:"forward-jump-button"},disabledBackwardJumpButtonClass:{type:String,default:"disabled-backward-jump-button"},disabledBackButtonClass:{type:String,default:"disabled-back-button"},disabledFirstButtonClass:{type:String,default:"disabled-first-button"},disabledLastButtonClass:{type:String,default:"disabled-last-button"},disabledNextButtonClass:{type:String,default:"disabled-next-button"},disabledForwardJumpButtonClass:{type:String,default:"disabled-forward-jump-button"}},emits:["update:modelValue","click"],setup(e,{emit:t}){const n=e;if(n.currentPage&&!n.modelValue)throw new Error("currentPage/current-page is now deprecated, use v-model instead to set the current page.");if(!n.modelValue)throw new TypeError("v-model is required for the paginate component.");const s=W1(n,"modelValue"),i=t,o=T=>{T!==s.value&&(T>l.value||T<1||n.disablePagination||(i("update:modelValue",T),i("click",T)));},r=T=>T,a=T=>n.type!=="link"?"":n.linkUrl.replace("[page]",T.toString()),l=ot(()=>Math.ceil(n.totalItems/n.itemsPerPage)),c=ot(()=>{let T,M;if(l.value<=n.maxPagesShown)T=1,M=l.value;else {let z=Math.floor(n.maxPagesShown/2),G=Math.ceil(n.maxPagesShown/2)-1;s.value<=z?(T=1,M=n.maxPagesShown):s.value+G>=l.value?(T=l.value-n.maxPagesShown+1,M=l.value):(T=s.value-z,M=s.value+G);}let U=Array.from(Array(M+1-T).keys()).map(z=>T+z);return n.dir==="rtl"&&(U=U.reverse()),{totalItems:n.totalItems,currentPage:s.value,itemsPerPage:n.itemsPerPage,totalPages:l,startPage:T,endPage:M,pages:U}}),u=ot(()=>n.dir==="rtl"),p=ot(()=>u.value?!n.hidePrevNextWhenEnds||s.value!==l.value:!n.hidePrevNextWhenEnds||s.value!==1),m=ot(()=>u.value?!n.hidePrevNextWhenEnds||s.value!==1:!n.hidePrevNextWhenEnds||s.value!==l.value),v=ot(()=>u.value?c.value.pages[0]=3),w=ot(()=>u.value?c.value.pages[c.value.pages.length-1]>=3:c.value.pages[c.value.pages.length-1]u.value?c.value.pages[0]=2),R=ot(()=>u.value?c.value.pages[c.value.pages.length-1]>=2:c.value.pages[c.value.pages.length-1]s.value!==1),j=ot(()=>s.value!==l.value);if(n.type==="link"&&n.linkUrl==="#")throw console.error("linkUrl attribute is required if type attribute is 'link'"),new TypeError("linkUrl attribute is required if type attribute is 'link'");if(n.type==="link"&&!n.linkUrl.includes("[page]"))throw console.error("linkUrl attribute must contain '[page]' substring"),new TypeError("linkUrl attribute must contain '[page]' substring");return (T,M)=>(S(),I("ul",{id:"componentContainer",class:Fe(e.paginationContainerClass)},[e.showEndingButtons&&L.value?(S(),I("li",k$,[(S(),st(bn(e.type==="button"?"button":"a"),{href:a(u.value?l.value:1),onClick:M[0]||(M[0]=pn(U=>o(u.value?l.value:1),["prevent"])),class:Fe([e.firstPageButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:""]),disabled:e.disablePagination},{default:Ce(()=>[Qe(T.$slots,"first-page-button",{},()=>[B(K(e.firstPageContent),1)])]),_:3},8,["href","class","disabled"]))])):be("",!0),e.showJumpButtons&&v.value?(S(),I("li",S$,[(S(),st(bn(e.type==="button"?"button":"a"),{href:a(u.value?s.value+Math.ceil(e.maxPagesShown/2):s.value-Math.ceil(e.maxPagesShown/2)),onClick:M[1]||(M[1]=pn(U=>o(u.value?s.value+Math.ceil(e.maxPagesShown/2):s.value-Math.ceil(e.maxPagesShown/2)),["prevent"])),class:Fe([e.backwardJumpButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledBackwardJumpButtonClass:""]),disabled:e.disablePagination},{default:Ce(()=>[Qe(T.$slots,"backward-jump-button",{},()=>[B(K(e.backwardJumpButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):be("",!0),!e.hidePrevNext&&p.value?(S(),I("li",$$,[(S(),st(bn(e.type==="button"?"button":"a"),{href:a(u.value?s.value+1:s.value-1),onClick:M[2]||(M[2]=pn(U=>o(u.value?s.value+1:s.value-1),["prevent"])),class:Fe([e.backButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledBackButtonClass:""]),disabled:e.disablePagination},{default:Ce(()=>[Qe(T.$slots,"prev-button",{},()=>[B(K(e.prevButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):be("",!0),e.showBreakpointButtons&&_.value?(S(),I("li",E$,[(S(),st(bn(e.type==="button"?"button":"a"),{href:a(u.value?l.value:1),onClick:M[3]||(M[3]=pn(U=>o(u.value?l.value:1),["prevent"])),class:Fe([e.firstButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledFirstButtonClass:""]),disabled:e.disablePagination},{default:Ce(()=>[B(K(u.value?r(l.value):r(1)),1)]),_:1},8,["href","class","disabled"]))])):be("",!0),e.showBreakpointButtons&&v.value?(S(),I("li",P$,[(S(),st(bn(e.type==="button"?"button":"a"),{href:a(e.disableBreakpointButtons?s.value:u.value?s.value+Math.ceil(e.maxPagesShown/2):s.value-Math.ceil(e.maxPagesShown/2)),onClick:M[4]||(M[4]=pn(U=>o(e.disableBreakpointButtons?s.value:u.value?s.value+Math.ceil(e.maxPagesShown/2):s.value-Math.ceil(e.maxPagesShown/2)),["prevent"])),disabled:e.disableBreakpointButtons||e.disablePagination,class:Fe([e.startingBreakpointButtonClass,e.paginateButtonsClass,e.disableBreakpointButtons||e.disablePagination?`${e.disabledPaginateButtonsClass} ${e.disabledBreakPointButtonClass}`:""])},{default:Ce(()=>[Qe(T.$slots,"starting-breakpoint-button",{},()=>[B(K(e.startingBreakpointContent),1)])]),_:3},8,["href","disabled","class"]))])):be("",!0),(S(!0),I(Le,null,Je(c.value.pages,(U,z)=>(S(),I("li",{key:z},[(S(),st(bn(e.type==="button"?"button":"a"),{href:a(U),onClick:pn(()=>o(U),["prevent"]),class:Fe([e.paginateButtonsClass,e.numberButtonsClass,U===s.value?e.activePageClass:"",e.disablePagination?e.disabledPaginateButtonsClass:""]),disabled:e.disablePagination},{default:Ce(()=>[B(K(r(U)),1)]),_:2},1032,["href","onClick","class","disabled"]))]))),128)),e.showBreakpointButtons&&w.value?(S(),I("li",A$,[(S(),st(bn(e.type==="button"?"button":"a"),{href:a(e.disableBreakpointButtons?s.value:u.value?s.value-Math.ceil(e.maxPagesShown/2):s.value+Math.ceil(e.maxPagesShown/2)),onClick:M[5]||(M[5]=pn(U=>o(e.disableBreakpointButtons?s.value:u.value?s.value-Math.ceil(e.maxPagesShown/2):s.value+Math.ceil(e.maxPagesShown/2)),["prevent"])),disabled:e.disableBreakpointButtons||e.disablePagination,class:Fe([e.endingBreakPointButtonClass,e.paginateButtonsClass,e.disableBreakpointButtons||e.disablePagination?`${e.disabledPaginateButtonsClass} ${e.disabledBreakPointButtonClass}`:""])},{default:Ce(()=>[Qe(T.$slots,"ending-breakpoint-button",{},()=>[B(K(e.endingBreakpointButtonContent),1)])]),_:3},8,["href","disabled","class"]))])):be("",!0),e.showBreakpointButtons&&R.value?(S(),I("li",I$,[(S(),st(bn(e.type==="button"?"button":"a"),{href:a(u.value?1:l.value),onClick:M[6]||(M[6]=pn(U=>o(u.value?1:l.value),["prevent"])),class:Fe([e.lastButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledLastButtonClass:""]),disabled:e.disablePagination},{default:Ce(()=>[B(K(u.value?r(1):r(l.value)),1)]),_:1},8,["href","class","disabled"]))])):be("",!0),!e.hidePrevNext&&m.value?(S(),I("li",T$,[(S(),st(bn(e.type==="button"?"button":"a"),{href:a(u.value?s.value-1:s.value+1),onClick:M[7]||(M[7]=pn(U=>o(u.value?s.value-1:s.value+1),["prevent"])),class:Fe([e.paginateButtonsClass,e.nextButtonClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledNextButtonClass:""]),disabled:e.disablePagination},{default:Ce(()=>[Qe(T.$slots,"next-button",{},()=>[B(K(e.nextButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):be("",!0),e.showJumpButtons&&w.value?(S(),I("li",O$,[(S(),st(bn(e.type==="button"?"button":"a"),{href:a(u.value?s.value-Math.ceil(e.maxPagesShown/2):s.value+Math.ceil(e.maxPagesShown/2)),onClick:M[8]||(M[8]=pn(U=>o(u.value?s.value-Math.ceil(e.maxPagesShown/2):s.value+Math.ceil(e.maxPagesShown/2)),["prevent"])),class:Fe([e.forwardJumpButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledForwardJumpButtonClass:""]),disabled:e.disablePagination},{default:Ce(()=>[Qe(T.$slots,"forward-jump-button",{},()=>[B(K(e.forwardJumpButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):be("",!0),e.showEndingButtons&&j.value?(S(),I("li",D$,[(S(),st(bn(e.type==="button"?"button":"a"),{href:a(u.value?1:l.value),onClick:M[9]||(M[9]=pn(U=>o(u.value?1:l.value),["prevent"])),class:Fe([e.lastPageButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:""]),disabled:e.disablePagination},{default:Ce(()=>[Qe(T.$slots,"last-page-button",{},()=>[B(K(e.lastPageContent),1)])]),_:3},8,["href","class","disabled"]))])):be("",!0)],2))}}),Xd=Ne(M$,[["__file","Pager.vue"]]),L$=Te({__name:"Divider",props:{paddingY:{default:10},color:{default:"#eee"},transparent:{type:Boolean,default:!1}},setup(e){const t=e,n=ot(()=>{const s=t.transparent?"transparent":t.color,i=`${t.paddingY}px`;return {marginTop:i,height:i,borderTop:`1px solid ${s}`}});return (s,i)=>(S(),I("div",{class:"ce-divider",style:Fn(n.value)},[Qe(s.$slots,"default")],4))}}),Zd=Ne(L$,[["__file","Divider.vue"]]),B$={class:"ce-file-list"},R$={class:"text-small text-info"},N$={class:"text-primary"},F$={class:"text-danger"},U$={class:"item-meta"},j$={key:0,class:"ce-label"},H$={key:1,class:"ce-label"},V$={key:2,class:"ce-label"},z$={key:3,class:"ce-label"},q$={key:4,class:"ce-label"},W$={key:5,class:"ce-label ce-label-danger"},K$={key:6,class:"ce-label ce-label-danger"},G$={key:7,class:"text-info"},J$={class:"text-success"},Y$={class:"pure-table pure-table-bordered"},Q$={class:"text-small"},X$={class:"text-success"},Z$=Te({__name:"FileList",props:{group:{},pattern:{},files:{}},setup(e){const t=e,n=ne([]),s=ne(0),i=ne(15),o=ne(5),r=ne(1);Tt(async()=>{var c;s.value=((c=t.pattern.fileIds)==null?void 0:c.length)||0,a();});function a(c=1){const u=[],{fileIds:p=[]}=t.pattern,m=i.value*(c-1),v=p.slice(m,m+i.value);for(const w of v){const _=t.files.get(w);if(_){const R=Ys(_);u.push(R);}}n.value=u;}function l(c){a(c);}return (c,u)=>(S(),I("div",B$,[d("div",null,[d("div",R$,[u[2]||(u[2]=d("small",null,"原始:",-1)),u[3]||(u[3]=B()),d("span",N$,K(c.pattern.value),1),u[4]||(u[4]=B(", ")),u[5]||(u[5]=d("small",null,"类型:",-1)),u[6]||(u[6]=B()),d("span",F$,K(re(dm)[c.pattern.type]),1),d("div",null," fullMatch: "+K(c.pattern.fullMatch)+", caseSensitive: "+K(c.pattern.caseSensitive)+", impartible: "+K(c.pattern.impartible)+", isRegexp: "+K(c.pattern.isRegexp)+", maxSize: "+K(c.pattern.maxSize)+", patternRegexp: "+K(c.pattern.patternRegexp),1)]),u[8]||(u[8]=d("hr",null,null,-1)),d("div",U$,[c.pattern.fullMatch?(S(),I("span",j$,"全等")):be("",!0),c.pattern.caseSensitive?(S(),I("span",H$,"区分大小写")):be("",!0),c.pattern.impartible?(S(),I("span",V$,"匹配空格")):be("",!0),c.pattern.isRegexp?(S(),I("span",z$,"正则")):be("",!0),c.pattern.type===re(it).fileHash?(S(),I("span",q$,"sha1")):be("",!0),c.pattern.maxSize===0?(S(),I("span",W$,"任意大小")):be("",!0),c.pattern.maxSize>0?(S(),I("span",K$,"不大于"+K(c.pattern.maxSize)+"MB",1)):be("",!0),c.pattern.memo?(S(),I("div",G$,[u[7]||(u[7]=d("small",null,"备注:",-1)),B(" "+K(c.pattern.memo),1)])):be("",!0)])]),u[10]||(u[10]=d("br",null,null,-1)),d("div",null,[s.value>i.value?(S(),st(Xd,{key:0,"total-items":s.value,"items-per-page":i.value,"max-pages-shown":o.value,modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=p=>r.value=p),onClick:l},null,8,["total-items","items-per-page","max-pages-shown","modelValue"])):be("",!0),d("span",J$,"数量: "+K(s.value),1),ge(Zd,{transparent:"","padding-y":5}),d("table",Y$,[u[9]||(u[9]=d("thead",null,[d("tr",null,[d("th",null,"#"),d("th",{width:"30"},"类型"),d("th",null,"ID"),d("th",{width:"250"},"名称"),d("th",null,"大小"),d("th",{width:"305"},"SHA1")])],-1)),d("tbody",null,[(S(!0),I(Le,null,Je(n.value,(p,m)=>(S(),I("tr",{key:m},[d("td",null,K(i.value*(r.value-1)+m+1),1),d("td",null,K(p.isDir?"目录":"文件"),1),d("td",null,K(p.id),1),d("td",null,K(p.name),1),d("td",null,K(p.sizeDesc),1),d("td",Q$,K(p.hash),1)]))),128))])]),ge(Zd,{transparent:"","padding-y":5}),s.value>i.value?(S(),st(Xd,{key:1,"total-items":s.value,"items-per-page":i.value,"max-pages-shown":o.value,modelValue:r.value,"onUpdate:modelValue":u[1]||(u[1]=p=>r.value=p),onClick:l},null,8,["total-items","items-per-page","max-pages-shown","modelValue"])):be("",!0),d("span",X$,"数量: "+K(s.value),1)])]))}}),e2=Ne(Z$,[["__scopeId","data-v-89339f2e"],["__file","FileList.vue"]]),t2=Te({__name:"GoTop",props:{label:{default:"回到顶部"},container:{default:"body"}},setup(e){const t=e;async function n(){if(t.container instanceof HTMLElement)t.container.scrollTo(0,0);else {const s=document.querySelector(t.container);s==null||s.scrollTo(0,0);}}return (s,i)=>Qe(s.$slots,"default",{},()=>[d("button",{type:"button",class:"pure-button button-small",onClick:n},K(s.label),1)])}}),bm=Ne(t2,[["__file","GoTop.vue"]]),n2={type:"button",class:"pure-button button-success"},s2=Te({__name:"DirSelector",props:{label:{default:"切换目录"},purpose:{default:"操作"},confirmLabel:{default:"选择该目录"},onlyDir:{type:Boolean,default:!0},showRecord:{type:Boolean,default:!0},showCopy:{type:Boolean,default:!0}},emits:["select"],setup(e,{emit:t}){const n=e,s=t;async function i(){unsafeWindow.parent.Core.FileSelectDG.Open(async(o,r)=>{console.log("[Core.FileSelectDG.Open]",o,r),s("select",{items:o,xx:r});},{select:1,nf:n.onlyDir?1:0,show_record:n.showRecord?1:0,show_copy:n.showCopy?1:0,btn_txt:n.confirmLabel,select_txt:n.purpose});}return (o,r)=>(S(),I("span",{onClick:i},[Qe(o.$slots,"default",{},()=>[d("button",n2,K(o.label),1)])]))}}),ki=Ne(s2,[["__file","DirSelector.vue"]]);function o2(e,t){return Object.entries(e).map(([n,s])=>({label:s,value:n,checked:t?t(n):!1}))}const i2={class:"ce-button-group"},r2=["onClick"],a2=Te({__name:"index",props:{modelValue:{type:[String,Number,Boolean,Array]},multiple:{type:Boolean,default:!1},options:{},mapping:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t,i=ot(()=>{let a=[];const l=c=>n.multiple?n.modelValue.includes(c):n.modelValue===c;return n.mapping?a=o2(n.mapping,l):n.options&&(a=nu(n.options).map(c=>({...c,checked:l(c.value)}))),a}),o=ne(n.modelValue);function r(a){n.multiple?(a.checked=!a.checked,o.value=i.value.filter(l=>l.checked).map(l=>l.value)):(i.value.forEach(l=>{l.checked=l.value===a.value;}),o.value=a.value),s("update:modelValue",o.value);}return (a,l)=>(S(),I("span",i2,[(S(!0),I(Le,null,Je(i.value,c=>{var u;return S(),I("button",{key:(u=c.value)==null?void 0:u.toString(),type:"button",class:Fe(["pure-button",{"pure-button-primary":c.checked}]),onClick:p=>r(c)},K(c.label),11,r2)}),128))]))}}),ef=Ne(a2,[["__file","index.vue"]]),l2={class:"cloud115-eh-cleaner ce-cleaner-x"},u2={class:"header actions-bar"},c2={class:"close"},d2={class:"ce-path ce-label ce-label-primary-plain"},f2=["href"],p2={class:"by-box by-suffix"},h2={class:"by-header"},m2={class:"pure-button-group",role:"group"},g2=["disabled"],y2={class:"pure-table pure-table-bordered"},w2=["onClick"],b2=["onClick"],v2=["onClick"],_2=["onClick"],x2={class:"by-header"},C2={class:"pure-button-group",role:"group"},k2=["disabled"],S2={class:"item-index"},$2={class:"item-val"},E2=["href"],P2={class:"file-type tp-folder"},A2={class:"item-meta"},I2={key:0,class:"ce-label"},T2={key:1,class:"ce-label"},O2={key:2,class:"ce-label"},D2={key:3,class:"ce-label"},M2={key:4,class:"ce-label"},L2={key:5,class:"ce-label ce-label-danger"},B2={key:6,class:"ce-label ce-label-danger"},R2={key:7,class:"text-info"},N2={key:0,class:"text-small text-info"},F2={class:"text-primary"},U2={class:"text-danger"},j2={class:"item-num"},H2={class:"item-size"},V2={class:"item-actions"},z2=["onClick"],q2=["onClick"],W2=["onClick"],K2={class:"item-status"},G2={class:"footer actions-bar"},J2={class:"ce-path ce-label ce-label-primary-plain"},Y2=["href"],Q2=Te({__name:"Cleaner",setup(e){const t=ne(!1),n=ne(!0),s=ne(Ms({type:qe.suffix})),i=ne(Ms({type:qe.keyword})),o=ne({maxSize:5,matchName:!1}),r=ne({maxSize:100,matchName:!0,keywordCategory:Yo.all,resultCategory:Or.all}),a=ne([]),l=ne([]),c=ne(!1),u=ne(um()),p=ne(!1),m=ne(""),v=ne([]),w=ne(null),_=ne(!1),R=ot(()=>m.value?Rs(m.value):"");async function L(){_.value=!_.value;}const j=ne(!1),T=new Map,M=ne({});async function U(Q){for(const D of Q){const W=D.fid||D.cid;W&&!T.has(W)&&T.set(W,D);}}async function z(Q,D){M.value.files=T,M.value.group=Q,M.value.pattern=D,j.value=!0;}async function G(Q){Q.data.type===Kt.OPEN_CLEANER&&(me(Q.data.payload),js({type:Kt.CLEANER_OPENED},Q.source));}Tt(async()=>{u.value=await ma(),p.value=!0;}),Yt(async()=>{u.value.initialized||(u.value.initialized=!0,await cm({initialized:!0})),window.addEventListener("message",G);}),Xs(()=>{window.removeEventListener("message",G);});async function me(Q){t.value=!0;const D=await Gt();if(D==="0"||D===""){await we(),await ue.fire({icon:"warning",html:"

        不允许在根目录使用该工具!

        "});return}m.value&&m.value!==D&&console.warn("目录变化,重置"),w.value=await Lt(D),v.value=[...w.value.paths.slice(1).map(W=>W.file_name),w.value.file_name],m.value=D;}async function we(){t.value=!1;}async function ce(Q){console.log("[onSelectDir]",Q);const{items:D}=Q,W=D[D.length-1];await ee(Ot.reset),await de(Ot.reset),m.value=W.cid,w.value=await Lt(W.cid),v.value=[...w.value.paths.slice(1).map(x=>x.file_name),w.value.file_name];}async function H(Q){const D={};Q.isFilter?D.type=Q.pattern:D.suffix=Q.pattern;let W=unsafeWindow.frames[0];for(let x=0;x默认只匹配文件名,不匹配目录名。
        使用 "${ju}目录名关键词" 格式指定只匹配目录名的关键词。`:""),width:620,inputPlaceholder:"每行一个,最短两个字符",inputAttributes:{"aria-label":"每行一个,最短两个字符"},showCancelButton:!0});return W!==void 0?W.trim():""}async function ee(Q,D){let W="",x=[];switch(Q){case Ot.assign:W=D.trim(),W.trim()===""?a.value=[]:(x=await Ds(W,qe.suffix),a.value=x);break;case Ot.append:W=await F("添加后缀",qe.suffix),x=await Ds(W,qe.suffix);const E=[];a.value.forEach(N=>E.push(N.value.toLowerCase())),x.forEach(N=>{E.includes(N.value.toLowerCase())||a.value.push(N);});break;case Ot.cover:W=await F("覆盖后缀",qe.suffix),W.trim()!==""&&(x=await Ds(W,qe.suffix),a.value=x);break;case Ot.clear:a.value=[];break;case Ot.reset:a.value.forEach(N=>{N.num=-1,N.fileIds=[],N.status=$t.none,N.size=-1;});break}}async function de(Q,D){let W="",x=[];switch(Q){case Ot.assign:W=D.trim(),W.trim()===""?l.value=[]:(x=await Ds(W,qe.keyword),l.value=x);break;case Ot.append:W=await F("添加关键词",qe.keyword),x=await Ds(W,qe.keyword);const E=[];l.value.forEach(N=>E.push(N.value.toLowerCase())),x.forEach(N=>{E.includes(N.value.toLowerCase())||l.value.push(N);});break;case Ot.cover:W=await F("覆盖关键词",qe.keyword),W.trim()!==""&&(x=await Ds(W,qe.keyword),l.value=x);break;case Ot.clear:l.value=[];break;case Ot.reset:l.value.forEach(N=>{N.num=-1,N.fileIds=[],N.status=$t.none,N.size=-1;});break}}async function _e(Q){if(console.log("[cleanBySuffix]",Q),await ee(Ot.reset),!a.value.length){await ue.fire({icon:"warning",text:"请先设置后缀!"});return}if(xe=[],!Q){const{isConfirmed:D}=await ue.fire({icon:"warning",html:'请在清理前确认"后缀和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!D)return}c.value=!0;try{for(let D=0;D${Q.pattern}, 不大于: ${o.value.maxSize} MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!q)return}try{if(!W){c.value=!0,Q.fileIds=[],Q.size=-1,Q.num=-1,Q.status=$t.prepare;const q=await Ae(Q);await U(q),Q.status=$t.prepared;const{fileIds:J=[],size:ie}=Yd(Q,q,o.value);Q.fileIds=J,Q.size=ie,Q.num=J.length,c.value=!1;}if(!D)if(Q.num&&Q.num>0){Q.status=$t.deleting,c.value=!0;const q=((N=Q.fileIds)==null?void 0:N.length)||0;E?await Da(m.value,Q.fileIds||[],u.value.deleteSize,1e3):Ve(qe.suffix,Q.fileIds||[],!1),c.value=!1,q>0?Q.status=$t.success+` / 数量 <= ${q}`:Q.status=$t.failed;}else Q.status=$t.success+" / 无";}catch(q){console.error(q),c.value=!1,await ue.fire({title:"cleanBySuffixSingle - 发生错误",html:q.toString()});}}async function Pe(){const Q=[it.fileKeyword,it.fileHash];return l.value.some(D=>Q.includes(D.type))}async function $e(Q,D){if(console.log("[cleanByKeyword]",Q,D),await de(Ot.reset),!l.value.length){await ue.fire({icon:"warning",text:"请先设置关键词!"});return}if(O=[],!Q){const W={icon:"warning",html:'请在清理前确认"关键词和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"},{isConfirmed:x,value:E}=await ue.fire(W);if(!x)return}c.value=!0,console.time("cleanByKeyword");try{let W;await Pe()&&(W=await He(),await U(W));const x=D||r.value.keywordCategory;for(let E=0;E${Q.pattern}, 不大于: ${r.value.maxSize} MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!J)return}try{if(!W){c.value=!0,Q.fileIds=[],Q.size=-1,Q.num=-1,Q.status=$t.prepare;let J=[];Q.type!==it.dirKeyword&&E!==void 0?J=E:(J=await ht(Q),await U(J)),Q.status=$t.prepared;const{fileIds:ie,size:ye,num:le}=Yd(Q,J,r.value);Q.fileIds=ie,Q.size=ye,Q.num=le,c.value=!1;}if(!D)if(Q.num&&Q.num>0){Q.status=$t.deleting,c.value=!0;const J=((q=Q.fileIds)==null?void 0:q.length)||0;N?await Da(m.value,Q.fileIds||[],u.value.deleteSize,1e3):Ve(qe.keyword,Q.fileIds||[],!1),c.value=!1,J>0?Q.status=$t.success+` / 数量 <= ${J}`:Q.status=$t.failed;}else Q.status=$t.success+" / 无";}catch(J){console.error(J),c.value=!1;let ie=!0;const ye={title:"cleanByKeywordSingle - 发生错误",html:J.toString()};J instanceof Ql&&(Q.status=$t.prepareFailed+` / ${J.message}`,J instanceof Df&&(ye.timer=2e3,ie=!1)),ie?await ue.fire(ye):ue.fire(ye);}}let xe=[],O=[];function Ve(Q,D,W){Q===qe.suffix?xe=[...xe,...D]:O=[...O,...D];}async function pt(Q){const D=Q===qe.suffix?xe:O;if(!D.length)return;const W=Array.from(new Set(D));console.log("[deleteFiles] num=",W.length),await Da(m.value,W,1150,1e3);}async function Ae(Q){const D=m.value,W=Bs({cid:D,limit:u.value.pageSize});Q.isFilter?W.type=Q.pattern:W.suffix=Q.value;const x=await uo(W);return console.log("[files]",x),x}async function ht(Q){const D=m.value,W=mb({search_value:Q.pattern,cid:D,limit:u.value.pageSize}),x=await dv(W,u.value.reqInterval,!0);return console.log("[files]",x),x}function vt(Q){return Wr({...LS(Q),cid:m.value},v.value[v.value.length-1])}async function Rt(Q){console.log("[onSuffixGroupChange]",Q),s.value=Q,o.value.maxSize=Q.size,await ee(Ot.assign,Q.values);}async function Ct(Q){console.log("[onKeywordGroupChange]",Q),i.value=Q,r.value.maxSize=Q.size,await de(Ot.assign,Q.values);}return (Q,D)=>oe((S(),I("span",l2,[Qe(Q.$slots,"default",{},()=>[d("span",{class:"btn-open pure-button pure-button-primary",onClick:me},D[10]||(D[10]=[d("span",null,"清理文件",-1)]))]),ge(Ci,{"is-open":t.value,speed:300,"max-width":"calc(100vw - 72px)",onClose:D[9]||(D[9]=W=>t.value=!1)},{default:Ce(()=>[oe(d("div",{class:Fe(["cloud115-eh-cleaner-drawer",{loading:c.value}])},[ge(C$),d("div",u2,[D[13]||(D[13]=d("span",{class:"title"},"文件清理工具",-1)),d("span",c2,[d("button",{type:"button",class:"pure-button button-error",onClick:we},"关闭"),D[11]||(D[11]=B("      ")),ge(ki,{purpose:"清理文件",onSelect:ce})]),d("div",d2,[d("a",{target:"_blank",href:R.value,title:"打开目录"},[D[12]||(D[12]=d("i",{class:"file-type tp-folder",style:{}},null,-1)),B(" "+K(v.value.join(" / ")),1)],8,f2)])]),d("div",p2,[d("div",h2,[D[14]||(D[14]=d("span",{class:"title"},[B("按"),d("b",null,"后缀名"),B("清理")],-1)),D[15]||(D[15]=B("      ")),d("div",m2,[d("button",{type:"button",class:"pure-button",onClick:D[0]||(D[0]=W=>_e(!0))},"只查询"),d("button",{type:"button",class:"pure-button pure-button-primary",onClick:D[1]||(D[1]=W=>_e(!1)),disabled:s.value.queryOnly}," 一键清理 ",8,g2)]),D[16]||(D[16]=B("   ")),D[17]||(D[17]=d("span",{class:"ce-label"},"不大于",-1)),D[18]||(D[18]=B("  ")),oe(d("input",{type:"number","onUpdate:modelValue":D[2]||(D[2]=W=>o.value.maxSize=W),class:"filter-size"},null,512),[[Ke,o.value.maxSize]]),D[19]||(D[19]=B(" MB ")),D[20]||(D[20]=d("small",null,"(0表示不限制)",-1)),p.value?(S(),st(Qd,{key:0,type:re(qe).suffix,"storage-key":"suffixGroups",onChange:Rt,config:u.value},null,8,["type","config"])):be("",!0)]),d("table",y2,[D[23]||(D[23]=d("thead",null,[d("tr",null,[d("th",{width:"25"},"#"),d("th",{width:"100"},"后缀名"),d("th",{width:"95"},"文件数量"),d("th",{width:"80"},"合计大小"),d("th",{width:"200"},"操作"),d("th",{width:"200"},"状态")])],-1)),d("tbody",null,[(S(!0),I(Le,null,Je(a.value,(W,x)=>(S(),I("tr",{key:x,class:Fe(re(Gd)(W))},[d("td",null,K(x+1),1),d("td",null,[d("a",{href:"javascript:void(0)",class:"pattern",onClick:E=>H(W),title:"筛选"},K(W.value),9,w2)]),d("td",null,K(W.num&&W.num>=0?W.num:""),1),d("td",null,K(W.size>0?re(vo)(W.size):""),1),d("td",null,[d("button",{type:"button",class:"pure-button button-xsmall",onClick:E=>Se(W,!0,!1,!0)},"查询",8,b2),D[21]||(D[21]=B("   ")),W.num&&W.num>0&&!s.value.queryOnly?(S(),I("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:E=>Se(W,!1,!0,!1,!0)},"清理",8,v2)):be("",!0),D[22]||(D[22]=B("   ")),W.num&&W.num>0?(S(),I("button",{key:1,type:"button",class:"pure-button button-warning button-xsmall",onClick:E=>z(s.value,W)},"≡ 详情",8,_2)):be("",!0)]),d("td",null,K(W.status),1)],2))),128))])])]),D[53]||(D[53]=d("br",null,null,-1)),ge(Ci,{"is-open":j.value,onClose:D[3]||(D[3]=W=>j.value=!1),"max-width":"1030px",speed:100,"bg-color":"#fff"},{default:Ce(()=>[j.value?(S(),st(e2,{key:0,files:M.value.files,group:M.value.group,pattern:M.value.pattern},null,8,["files","group","pattern"])):be("",!0)]),_:1},8,["is-open"]),d("div",{class:Fe(["by-box by-keyword",[`kw-cate-${r.value.keywordCategory}`]])},[d("div",x2,[D[24]||(D[24]=d("span",{class:"title"},[B("按"),d("b",null,"关键词"),B("清理")],-1)),D[25]||(D[25]=B("      ")),d("div",C2,[d("button",{type:"button",class:"pure-button",onClick:D[4]||(D[4]=W=>$e(!0))},"只查询"),d("button",{type:"button",class:"pure-button pure-button-primary",onClick:D[5]||(D[5]=W=>$e(!1)),disabled:i.value.queryOnly}," 一键清理 ",8,k2)]),D[26]||(D[26]=B("   ")),D[27]||(D[27]=d("span",{class:"ce-label"},"不大于",-1)),D[28]||(D[28]=B("  ")),oe(d("input",{type:"number","onUpdate:modelValue":D[6]||(D[6]=W=>r.value.maxSize=W),class:"filter-size"},null,512),[[Ke,r.value.maxSize]]),D[29]||(D[29]=B(" MB ")),D[30]||(D[30]=d("small",null,"(0表示不限制)",-1)),D[31]||(D[31]=B("    ")),D[32]||(D[32]=d("span",{class:"ce-label"},"关键词类别",-1)),D[33]||(D[33]=B("  ")),ge(ef,{modelValue:r.value.keywordCategory,"onUpdate:modelValue":D[7]||(D[7]=W=>r.value.keywordCategory=W),mapping:re(hS)},null,8,["modelValue","mapping"]),D[34]||(D[34]=B("    ")),D[35]||(D[35]=d("span",{class:"ce-label"},"结果筛选",-1)),D[36]||(D[36]=B("  ")),ge(ef,{modelValue:r.value.resultCategory,"onUpdate:modelValue":D[8]||(D[8]=W=>r.value.resultCategory=W),mapping:re(mS)},null,8,["modelValue","mapping"]),p.value?(S(),st(Qd,{key:0,type:re(qe).keyword,"storage-key":"keywordGroups",onChange:Ct,config:u.value},null,8,["type","config"])):be("",!0)]),d("table",{class:Fe(["pure-table pure-table-bordered fixed-header-table",[`table-${r.value.resultCategory}`]])},[d("thead",null,[d("tr",null,[D[38]||(D[38]=d("th",{width:"25"},"#",-1)),d("th",{width:"280"},[D[37]||(D[37]=B(" 关键词 ")),d("small",{class:"text-info",onClick:L},"显示调试信息")]),D[39]||(D[39]=d("th",{width:"95"},"文件/目录数量",-1)),D[40]||(D[40]=d("th",{width:"80"},"合计大小",-1)),D[41]||(D[41]=d("th",{width:"150"},"操作",-1)),D[42]||(D[42]=d("th",{width:"200"},"状态",-1))])]),d("tbody",null,[(S(!0),I(Le,null,Je(l.value,(W,x)=>{var E;return S(),I("tr",{key:x,class:Fe(re(Gd)(W,r.value))},[d("td",S2,K(x+1),1),d("td",$2,[d("a",{href:vt(W),target:"_blank",class:"pattern",title:"搜索"},[oe(d("i",P2,null,512),[[Wt,W.type===re(it).dirKeyword]]),B(" "+K(W.pattern),1)],8,E2),d("span",A2,[W.fullMatch?(S(),I("span",I2,"全等")):be("",!0),W.caseSensitive?(S(),I("span",T2,"区分大小写")):be("",!0),W.impartible?(S(),I("span",O2,"匹配空格")):be("",!0),W.isRegexp?(S(),I("span",D2,"正则")):be("",!0),W.type===re(it).fileHash?(S(),I("span",M2,"sha1")):be("",!0),W.maxSize===0?(S(),I("span",L2,"任意大小")):be("",!0),W.maxSize>0?(S(),I("span",B2,"不大于"+K(W.maxSize)+"MB",1)):be("",!0),W.memo?(S(),I("div",R2,[D[43]||(D[43]=d("small",null,"备注:",-1)),B(" "+K(W.memo),1)])):be("",!0)]),_.value?(S(),I("div",N2,[D[44]||(D[44]=d("small",null,"raw:",-1)),D[45]||(D[45]=B()),d("span",F2,K(W.value),1),D[46]||(D[46]=B(", ")),D[47]||(D[47]=d("small",null,"type:",-1)),D[48]||(D[48]=B()),d("span",U2,K(re(dm)[W.type]),1),d("div",null," fullMatch: "+K(W.fullMatch)+", caseSensitive: "+K(W.caseSensitive)+", impartible: "+K(W.impartible)+", isRegexp: "+K(W.isRegexp)+", maxSize: "+K(W.maxSize)+", patternRegexp: "+K((E=W.patternRegexp)==null?void 0:E.toString()),1)])):be("",!0)]),d("td",j2,K(W.num&&W.num>=0?W.num:""),1),d("td",H2,K(W.size>0?re(vo)(W.size):""),1),d("td",V2,[W.type!==re(it).fileKeyword?(S(),I("button",{key:0,type:"button",class:"pure-button button-xsmall",onClick:N=>tt(W,!0,!1,!0)},"查询",8,z2)):be("",!0),W.type!==re(it).fileKeyword&&W.num&&W.num>0&&!i.value.queryOnly?(S(),I("button",{key:1,type:"button",class:"pure-button button-warning button-xsmall",onClick:N=>tt(W,!1,!0,!1,void 0,!0)},"清理",8,q2)):be("",!0),W.num&&W.num>0?(S(),I("button",{key:2,type:"button",class:"pure-button button-xsmall",onClick:N=>z(i.value,W)},"≡ 详情",8,W2)):be("",!0)]),d("td",K2,K(W.status),1)],2)}),128))])],2)],2),D[54]||(D[54]=d("br",null,null,-1)),d("div",G2,[D[50]||(D[50]=d("span",{class:"title"},"文件清理工具",-1)),d("span",{class:"close"},[d("button",{type:"button",class:"pure-button button-error",onClick:we},"关闭")]),D[51]||(D[51]=B("      ")),ge(ki,{purpose:"清理文件",onSelect:ce}),D[52]||(D[52]=B("      ")),ge(bm,{container:".cloud115-eh-cleaner-drawer"}),d("div",J2,[d("a",{target:"_blank",href:R.value,title:"打开目录"},[D[49]||(D[49]=d("i",{class:"file-type tp-folder",style:{}},null,-1)),B(" "+K(v.value.join(" / ")),1)],8,Y2)])])],2),[[Wt,t.value]])]),_:1},8,["is-open"])],512)),[[Wt,n.value]])}}),X2=Ne(Q2,[["__file","Cleaner.vue"]]),Z2={class:"ce-empty-cleaner-trigger"},eE=Te({__name:"Trigger",setup(e){ne(!1);const t=ne(!0);async function n(a){switch(a.data.type){case Kt.EMPTY_CLEANER_OPENED:await r(a.data.payload);break}}Yt(async()=>{window.addEventListener("message",n);}),Xs(()=>{window.removeEventListener("message",n);});async function s(){await o(),js({type:Kt.OPEN_EMPTY_CLEANER},window.parent);}let i;async function o(){const a=Fr("cid");!a||a==="0"||(clearTimeout(i),i=setTimeout(async()=>{ae({icon:"error",text:"打开清理空文件夹工具失败!"+location.href});},1e3));}async function r(a){console.log("成功打开EmptyCleaner"),clearTimeout(i);}return (a,l)=>oe((S(),I("span",Z2,[Qe(a.$slots,"default",{},()=>[d("span",{class:"btn-open pure-button pure-button-primary",onClick:s,title:"打开清理空文件夹工具"},l[0]||(l[0]=[d("span",null,"空文件夹",-1)]))])],512)),[[Wt,t.value]])}}),tE=Ne(eE,[["__file","Trigger.vue"]]),nE=/^(?:\| )+\|-/;async function*sE(e){const t=["/"],n=e.trim().split(` `);let s=0;for(const i of n){const o=nE.exec(i);if(o===null)continue;const a=o[0].length,l=a/2-1,c=i.slice(a);l>=t.length?t.push(c):t[l]=c,s+=1;const u=t.slice(0,l+1).join("/");yield {index:s,name:c,path:Uf(u)};}}function Ga(e={}){return {name:"",path:"",id:"",url:"",checked:!1,deleted:!1,disabled:!1,repeated:!1,ensured:!1,...e}}function Ja(){return {suffixes:new Set,treeNameCounter:{},treeNameToPaths:{},repeatedPaths:new Set,maybeDirs:{},filesNameCounter:{},violationFiles:[]}}let oE=class{constructor(t,n=!1){ve(this,"logs",[]);ve(this,"_dirId","");ve(this,"_dirPath","");ve(this,"_dirAttr",null);ve(this,"_treeText","");ve(this,"_keepTree",!1);ve(this,"_treeFile",null);ve(this,"_tailData",Ja());ve(this,"_emptyItems",new Map);ve(this,"_checkedRepeatedPaths",new Set);ve(this,"_pendingPaths",new Set);ve(this,"logSubscribers",[]);ve(this,"emptyItemSubscribers",[]);ve(this,"treeFileSubscribers",[]);t&&this.setDirId(t),this._keepTree=n;}addLogSubscriber(t){this.logSubscribers.push(t);}addEmptyItemSubscriber(t){this.emptyItemSubscribers.push(t);}addTreeFileSubscriber(t){this.treeFileSubscribers.push(t);}async setDirId(t){this._dirId=t,this._dirAttr=await Lt(t);const n=[...this._dirAttr.paths.slice(1).map(s=>s.file_name),this._dirAttr.file_name];this._dirPath=n.join("/");}async setKeepTree(t){this._keepTree=t;}getTreeFile(){return this._treeFile}async isReady(){return !!this._dirPath}async run(){var s;if(!await this.isReady()){this.log(`运行异常!未获取到目录路径,目录ID=${this._dirId}`);return}if(((s=this._dirAttr)==null?void 0:s.folder_count)===0){this.log(`目录(id=${this._dirId}) "${this._dirPath}" 没有子目录,无需清理`);return}const t=Date.now();await this.exportTree(),await this.parseTree(),await this.queryFiles(),await this.handleMaybeDirs(),await this.detectEmpty(),await this.checkRealEmpty();const n=((Date.now()-t)/1e3).toFixed(2);this.log(`清理空目录检测阶段完成,合计耗时 ${n} 秒`),console.log("emptyItems:",this._emptyItems);}async exportTree(){const t=Date.now();this.log(`========导出目录树(目录ID=${this._dirId}, 路径=${this._dirPath})========`);const n=await mv(this._dirId);console.log("exportTree",n),this.log("已发起导出处理,等待导出完成...");const s=await gv(n.data.export_id,2e3);console.log("exportTree",s),this.log(`导出目录树成功,PickCode为${s.data.pick_code}`);const i=await pv(s.data.pick_code);console.log("downloadItem",i),this.log("正在读取目录树文件内容...");let o=!0;try{this._treeText=await this._readFile(i),this.log("目录树文件内容读取完成");}catch(a){this.log(`读取目录树文件内容失败,${a.toString()}`),o=!1;}if(this._keepTree)this.onTreeFileGenerated(i),this.log(`目录树文件保留,不会被删除。文件: ${i.file_name}`);else {const a=await ru(this._dirId,[i.file_id]);console.log("deleteResult",a),this.log("目录树文件已删除");}const r=((Date.now()-t)/1e3).toFixed(2);o?this.log(`导出目录树完成,耗时 ${r} 秒`):this.log(`导出目录树失败,耗时 ${r} 秒`),this.log("=".repeat(60));}async _readFile(t){const n=BS({okStatus:[200,206],useFileReader:!0,fileReader:{checkBlank:!0,encoding:"utf-16le"}});return await hm(t.url.url,n)}async parseTree(){const t=Date.now();this.log("解析目录树...");const n=Ja(),s=[],i=this._dirPath.split("/").slice(0,-1).join("/");console.log("[parseTree] parentPath:",i);for await(const r of sE(this._treeText)){const a=i+r.path;s.includes(a)&&n.repeatedPaths.add(a),s.push(a);}for(let r=0;r0,i=Object.keys(n.maybeDirs).length;let o=0;for(const[a,l]of Object.entries(n.maybeDirs)){let c="";try{c=await lo(a,!1);}catch(p){console.error(`[handleMaybeDirs] getDirIdByPath error! path: ${a}, error:`,p),this.log(`[${o+1} / ${i}] 根据上级路径(cid=${a}) 获取目录ID失败!错误: ${p.toString()}`);continue}const u=Bs({limit:1150,cid:c});try{const p=Date.now();this.log(`[${o+1} / ${i}] 正在获取上级路径 "${a}" 的文件列表...`);const m=await uo(u),v=((Date.now()-p)/1e3).toFixed(2);this.log(`[${o+1} / ${i}] 获取上级路径 "${a}" 的文件列表成功,文件数量:${m.length}。耗时 ${v} 秒`);for(const w of m)if(l.has(w.n)){if(w.fid)this.log(`[${o+1} / ${i}] 上级路径 "${a}" 下的 "${w.n}" 是一个文件`),n.treeNameCounter[w.n]&&n.treeNameCounter[w.n]--;else if(!n.filesNameCounter[w.n]&&!s){const _=a+"/"+w.n;this.log(`[${o+1} / ${i}] 路径 "${_}" 是一个目录,该目录名称无对应的文件,且由于无违规文件,因此可确认为空目录`);const R=Ga({id:w.cid,name:w.n,path:_,url:Rs(w.cid),ensured:!0});await this.addEmptyItem(R);}}}catch(p){console.error(`[handleMaybeDirs] getFiles error! cid: ${c}, error:`,p),this.log(`[${o+1} / ${i}] 获取上级路径(cid=${c}) "${a}" 的文件列表失败!错误: ${p.toString()}`);}o++;}const r=((Date.now()-t)/1e3).toFixed(2);this.log(`根据上级路径排除无后缀文件完成。耗时 ${r} 秒`),this.log("=".repeat(60));}async detectEmpty(){const t=Date.now(),n=this._tailData;this.log("========开始检测路径========");const s=this._tailData.violationFiles.length>0;let i=0,o=Object.keys(n.treeNameCounter).length;for(const[a,l]of Object.entries(n.treeNameCounter)){if(!l){i++;continue}const c=n.treeNameToPaths[a];this.log(`[${i+1} / ${o}] 名称 "${a}" 有 ${l} 个路径需要检测`);for(let u=0;um.file_name).slice(1),u.file_name].join("/"),url:Rs(c.cid),repeated:!0,ensured:!0,attr:u});await this.addEmptyItem(p);}else this.log(`目录(id=${i})的子目录(id=${c.cid})不为空`);this._checkedRepeatedPaths.add(n);}else this.log(`❌ 获取目录(id=${c.cid})属性失败!`);}catch(u){console.error(`[checkDirContainsRepeated] getAttr error! cid: ${c.cid}, error:`,u),this.log(`获取目录(id=${c.cid})属性失败!异常: ${u.toString()}`);}}catch(r){console.error(`[checkDirContainsRepeated] getFiles error! cid: ${i}, error:`,r),this.log(`获取目录(id=${i})的文件列表失败!错误: ${r.toString()}`);}}async checkRealEmpty(){const t=Date.now();this.log("========确认是否真的为空目录========");for(const s of this._emptyItems.values())if(!s.ensured)try{const i=await Lt(s.id);s.ensured=!0,s.attr=i,i.count===0&&i.folder_count===0?this.log(`目录(id=${s.id}) "${s.path}" 确认为空`):(s.disabled=!0,s.memo="目录不为空,请手动检查和处理",this.log(`目录(id=${s.id}) "${s.path}" 确认不为空,请手动检查和处理`));}catch(i){console.error(`[checkRealEmpty] getAttr error! cid: ${s.id}, error:`,i),this.log(`获取目录(id=${s.id}) "${s.path}" 属性失败!异常: ${i.toString()}`),s.disabled=!0,s.memo="确认是否为空目录失败,请手动检查和处理";}const n=((Date.now()-t)/1e3).toFixed(2);this.log(`确认是否真的为空目录完成,耗时 ${n} 秒`),this.log("=".repeat(60));}async onTreeFileGenerated(t){this._treeFile=t;for(const n of this.treeFileSubscribers)n(t);}async addEmptyItem(t){if(this._emptyItems.has(t.path)){console.log(`[addEmptyItem] path(id=${t.id}) "${t.path}" already exists in _emptyItems`);return}this._emptyItems.set(t.path,t);for(const n of this.emptyItemSubscribers)n(t);}async getEmptyItems(){return Array.from(this._emptyItems.values())}async log(t){t=`[${new Date().toLocaleString()}] ${t}`,this.logs.push(t);for(const n of this.logSubscribers)n(t);}async reset(){this.logs=[],this._emptyItems=new Map,this._tailData=Ja(),this._treeFile=null,this._checkedRepeatedPaths=new Set,this._pendingPaths=new Set;}};const iE={},rE={class:"ce-empty-cleaner-help"};function aE(e,t){return S(),I("div",rE,t[0]||(t[0]=[vh('

        免责声明

        该工具仅作为学习测试用途,使用该工具造成的任何结果由使用人承担。


        说明

        • * 不要直接清理一个巨大的文件夹!比如包含超过5万个文件夹。 太大的文件夹可能会导出目录树失败,且可能导致账号被系统风控。
        • * 对于巨大的文件夹,可以分开清理下级文件夹。
        • * 只有违规文件的文件夹也会被检测到并列出,需要手动处理。
        • * 请谨慎操作!请谨慎操作!请谨慎操作!

        流程

        • 1.确认当前显示的目录是否为需要进行清理的目录。
        • 2.点击「检测空文件夹」按钮。
        • 3.保持当前页面处于激活状态,留意日志区域的输出,耐心等待。
        • 4.当看到「空文件夹检测已完成」的提示时,说明检测完成。
        • 5.如果有空文件夹,会在空文件夹列表显示。
        • 6.每个空文件夹都可以单独进行打开、获取详情、删除等操作。
        • 7.批量删除: 勾选需要删除的空文件夹,点击「删除选中」进行删除。

        原理和优劣

        本工具原理是导出目录树,然后查询文件,接着排除目录树中的文件,最后再判断目录树中剩余的项是否为空文件夹。
        • 优点:
        • 在子文件夹数量较多时,比逐层逐个查询文件列表要快得多。
        • 缺点:
        • * 排除真实文件后,如剩余需判断项较多,耗时较长。
        • * 不能判断大小为0且有空子文件夹的文件夹。
        ',1)]))}const lE=Ne(iE,[["render",aE],["__scopeId","data-v-ce900ab5"],["__file","Help.vue"]]);async function uE(){return (await Bt().get("https://115.com/?ct=tool&ac=clear_empty_folder",{timeout:12e4,withCredentials:!0})).data}async function Mr(){const e=t=>{ue.update({html:`清理失败!${t}`,showConfirmButton:!0,allowOutsideClick:!1});};try{const{isConfirmed:t,value:n}=await ue.fire({title:"一键全局清理空文件夹",html:`
        这是官方自带的功能,脚本只是调用对应的API。

        功能特点:

        1. 只能全局清理,不能指定只清理某个文件夹。

        2. 被删除的空文件夹会被永久删除,没有回收站记录。

        3. 清理时长跟文件夹(包括空的和非空的)数量成正比。

        4. 可能很快就提示"清空成功",但在文件夹数量较多时,服务端可能仍在进行清理处理。

        一些建议:

        1. 先仔细阅读并理解上面所说的,这很重要!

        2. 请谨慎操作!

        请输入 yes 确认清理:

        `,width:620,showDenyButton:!0,denyButtonText:"取消",showConfirmButton:!0,confirmButtonText:"确定清理空文件夹",customClass:"ce-swal-text-left",input:"text"});if(console.warn("isConfirmed",t,"value",n),!t||n!=="yes")return;ue.fire({html:"正在清理,请稍候..."}),ue.showLoading();const s=await uE();s.state?ue.update({html:s.msg}):e(`清理失败!${s.msg}`);}catch(t){console.error(t),e(`清理失败!${t.toString()}`);}finally{ue.hideLoading();}}const cE={class:"ce-empty-cleaner ce-cleaner-x"},dE={class:"header actions-bar"},fE={class:"ce-path ce-label ce-label-primary-plain"},pE=["href"],hE={class:"top-actions"},mE={class:"pure-form pure-form-aligned"},gE={class:"pure-control-group"},yE={key:0},wE={class:"text-primary"},bE={key:1},vE={class:"text-primary"},_E={key:0},xE=["href"],CE={key:0},kE={key:0},SE={class:"text-primary"},$E={class:"ec-items"},EE={class:"pure-table pure-table-bordered"},PE={width:"30"},AE=["disabled"],IE=["onUpdate:modelValue","onChange","disabled"],TE={key:0},OE={class:"ce-label ce-label-danger"},DE={key:0},ME={key:1},LE=["onClick","disabled"],BE=["onClick"],RE=["href"],NE={key:0},FE={class:"footer actions-bar"},UE={class:"ce-path ce-label ce-label-primary-plain"},jE=["href"],HE=Te({__name:"EmptyCleaner",setup(e){const t=ne(!1),n=ne(!0),s=ne(!1),i=ne(""),o=ne([]),r=ne(null),a=ne([]),l=ne(!1),c=ne(null),u=ne([]),p=ne([]),m=ne(null),v=ne(null),w=ot(()=>v.value?Zb(v.value.pick_code):""),_=ot(()=>i.value?Rs(i.value):"");let R;const L=ne({keepTree:!1});async function j(xe){xe.data.type===Kt.OPEN_EMPTY_CLEANER&&(T(xe.data.payload),js({type:Kt.EMPTY_CLEANER_OPENED},xe.source));}Yt(async()=>{window.addEventListener("message",j),R=new oE(i.value),R.addLogSubscriber(_e),R.addEmptyItemSubscriber(Se),R.addTreeFileSubscriber(de);}),Xs(()=>{window.removeEventListener("message",j);});async function T(xe){t.value=!0;const O=await Gt();if(O==="0"||O===""){await tt(),await ue.fire({icon:"warning",html:"

        不允许在根目录使用该工具!

        "});return}i.value&&i.value!==O&&console.warn("目录变化,重置"),r.value=await Lt(O),o.value=[...r.value.paths.slice(1).map(Ve=>Ve.file_name),r.value.file_name],i.value=O;}async function M(){l.value=!1,u.value=[],p.value=[],a.value=[],v.value=null;}async function U(){try{s.value=!0,await M(),await R.reset(),await R.setKeepTree(L.value.keepTree),await R.setDirId(i.value),await R.run(),ue.fire({title:"空文件夹检测已完成"});}catch(xe){console.error(xe),ue.fire({title:"空文件夹检测失败",text:xe.toString()});}finally{s.value=!1;}}async function z(xe){const O=p.value.join(` `);if(xe==="copy")yt(O),ae({text:"已复制清理空文件夹日志",timer:1200});else if(xe==="download"){let Ve=`清理空文件夹日志-${i.value}.txt`;gr(O,Ve);}}async function G(xe,O,Ve="path"){const pt=O==="all"?a.value:u.value;let Ae="";Ve==="path"?Ae=pt.map(vt=>vt.path).join(` `):Ve==="full"&&(Ae=JSON.stringify(pt,null,2));const ht=Ve==="path"?"路径":"数据";if(xe==="copy")yt(Ae),ae({text:`已复制${ht}到剪贴板`,timer:1200});else if(xe==="download"){let vt=`空文件夹${ht}-${i.value}-数量${pt.length}`;gr(Ae,`${vt}.${Ve==="path"?"txt":"json"}`);}}async function me(xe){const O=u.value;for(const Ve of O)window.open(Ve.url),await nn(100);}async function we(xe){console.log("[onSelectDir]",xe);const{items:O}=xe,Ve=O[O.length-1];await M(),i.value=Ve.cid,r.value=await Lt(Ve.cid),o.value=[...r.value.paths.slice(1).map(pt=>pt.file_name),r.value.file_name];}async function ce(xe,O){if(xe.deleted){ae({text:"该目录已删除,不能再次删除!",showConfirmButton:!0});return}s.value=!0,await F([xe.id])&&(xe.deleted=!0),s.value=!1;}async function H(){if(!u.value.length)return;const xe=u.value.filter(O=>!O.deleted).map(O=>O.id);if(!xe.length){ae({text:"没有可删除的目录!",showConfirmButton:!0});return}if(s.value=!0,await F(xe))for(const O of u.value)O.deleted=!0;s.value=!1;}async function F(xe){try{const O=await ru(i.value,xe);if(O.state)return !0;ae({text:`删除失败: ${O.errno} - ${O.error}`});}catch(O){console.error(O),ae({text:`删除失败!${O.toString()}`});}return !1}async function ee(xe){s.value=!0;try{const O=await Lt(xe.id),Ve=Ae=>new Date(Number(Ae)*1e3).toLocaleString(),{isConfirmed:pt}=await ue.fire({title:"目录属性",html:`

        类型: 文件夹

        大小: ${O.size}

        创建时间: ${Ve(O.ptime)}

        修改时间: ${Ve(O.utime)}

        位置: ${xe.path}

        `,showDenyButton:!0,denyButtonText:"关闭",showConfirmButton:!0,confirmButtonText:"查看目录"});pt&&window.open(xe.url);}catch(O){ae({text:`获取目录属性失败!${O.toString()}`,timer:1e4,showConfirmButton:!0});}finally{s.value=!1;}}async function de(xe){v.value=xe;}async function _e(xe){p.value.push(xe),await qs(),m.value.scrollTop=m.value.scrollHeight;}async function Se(xe){a.value.push(xe);}async function Pe(){console.log("[onAllCheckedChange]",l.value);for(const xe of a.value)xe.disabled||(xe.checked=l.value);await He();}async function $e(xe,O){console.log("[onCheckChange]",xe,O),l.value=a.value.every(Ve=>Ve.checked),c.value.indeterminate=!l.value&&a.value.some(Ve=>Ve.checked),await He();}async function He(){u.value=a.value.filter(xe=>xe.checked);}async function tt(){t.value=!1;}return (xe,O)=>oe((S(),I("span",cE,[Qe(xe.$slots,"default",{},()=>[d("span",{class:"btn-open pure-button pure-button-primary",onClick:T},O[15]||(O[15]=[d("span",null,"清理空文件夹",-1)]))]),ge(Ci,{"is-open":t.value,speed:300,"max-width":"calc(100vw - 72px)",onClose:O[14]||(O[14]=Ve=>t.value=!1)},{default:Ce(()=>{var Ve,pt;return [oe(d("div",{class:Fe(["ce-empty-cleaner-drawer",{loading:s.value}])},[ge(lE),d("div",dE,[O[17]||(O[17]=d("span",{class:"title"},"空文件夹清理工具",-1)),d("span",{class:"close"},[d("button",{type:"button",class:"pure-button button-error",onClick:tt},"关闭")]),O[18]||(O[18]=B("     ")),ge(ki,{purpose:"清理空文件夹",onSelect:we}),d("button",{type:"button",class:"pure-button btn-global-clear",onClick:O[0]||(O[0]=(...Ae)=>re(Mr)&&re(Mr)(...Ae)),title:"不用怕误点击,点开后还需要确认呢"}," 一键全局清理空文件夹 "),d("div",fE,[d("a",{target:"_blank",href:_.value,title:"打开目录"},[O[16]||(O[16]=d("i",{class:"file-type tp-folder",style:{}},null,-1)),B(" "+K(o.value.join(" / ")),1)],8,pE)])]),d("div",null,[d("div",hE,[d("div",null,[d("button",{type:"button",class:"pure-button pure-button-primary",onClick:U},"检测空文件夹")]),d("div",null,[d("form",mE,[d("fieldset",null,[d("div",gE,[r.value?(S(),I("label",yE,[O[19]||(O[19]=d("span",null,"文件夹数量:",-1)),O[20]||(O[20]=B("  ")),d("b",wE,K((Ve=r.value)==null?void 0:Ve.folder_count),1)])):be("",!0),r.value?(S(),I("label",bE,[O[21]||(O[21]=d("span",null,"文件数量:",-1)),O[22]||(O[22]=B("  ")),d("b",vE,K((pt=r.value)==null?void 0:pt.count),1)])):be("",!0),d("label",null,[oe(d("input",{type:"checkbox",class:"ce-checkbox","onUpdate:modelValue":O[1]||(O[1]=Ae=>L.value.keepTree=Ae)},null,512),[[De,L.value.keepTree]]),O[24]||(O[24]=B("  ")),O[25]||(O[25]=d("span",{title:"不会删除目录树文件"},"保留目录树文件",-1)),v.value?(S(),I("span",_E,[O[23]||(O[23]=B("    ")),d("a",{href:w.value,class:"text-primary",target:"_blank"},"查看目录树文件",8,xE)])):be("",!0)])])])])])]),d("h3",null,[O[28]||(O[28]=B(" 日志 ")),p.value.length?(S(),I("span",CE,[O[26]||(O[26]=B("     ")),d("button",{type:"button",class:"pure-button button-xsmall",onClick:O[2]||(O[2]=Ae=>z("copy"))},"复制日志"),O[27]||(O[27]=B("     ")),d("button",{type:"button",class:"pure-button button-xsmall",onClick:O[3]||(O[3]=Ae=>z("download"))},"保存日志")])):be("",!0)]),d("div",{ref_key:"refLogs",ref:m,class:"ec-logs"},[(S(!0),I(Le,null,Je(p.value,(Ae,ht)=>(S(),I("div",{key:ht},K(Ae),1))),128))],512),d("h3",null,[O[33]||(O[33]=B(" 空文件夹 ")),a.value.length?(S(),I("span",kE,[d("span",SE," ( "+K(a.value.length)+" )",1),O[29]||(O[29]=B("     ")),d("button",{type:"button",class:"pure-button button-xsmall",onClick:O[4]||(O[4]=Ae=>G("copy","all","path"))},"复制路径"),O[30]||(O[30]=B("   ")),d("button",{type:"button",class:"pure-button button-xsmall",onClick:O[5]||(O[5]=Ae=>G("copy","all","full"))},"复制数据"),O[31]||(O[31]=B("     ")),d("button",{type:"button",class:"pure-button button-xsmall",onClick:O[6]||(O[6]=Ae=>G("download","all","path"))},"保存路径"),O[32]||(O[32]=B("   ")),d("button",{type:"button",class:"pure-button button-xsmall",onClick:O[7]||(O[7]=Ae=>G("download","all","full"))},"保存数据")])):be("",!0)]),d("div",$E,[d("table",EE,[d("thead",null,[d("tr",null,[O[34]||(O[34]=d("th",{width:"25"},"#",-1)),d("th",PE,[oe(d("input",{ref_key:"refAllChecked",ref:c,type:"checkbox",class:"ce-checkbox","onUpdate:modelValue":O[8]||(O[8]=Ae=>l.value=Ae),onChange:Pe,disabled:!a.value.length},null,40,AE),[[De,l.value]])]),O[35]||(O[35]=d("th",{width:"140"},"ID",-1)),O[36]||(O[36]=d("th",null,"路径",-1)),O[37]||(O[37]=d("th",{width:"150"},"操作",-1))])]),d("tbody",null,[(S(!0),I(Le,null,Je(a.value,(Ae,ht)=>(S(),I("tr",{key:ht,class:Fe({"tr-deleted":Ae.deleted})},[d("td",null,K(ht+1),1),d("td",null,[oe(d("input",{type:"checkbox",class:"ce-checkbox","onUpdate:modelValue":vt=>Ae.checked=vt,onChange:vt=>$e(Ae,ht),disabled:Ae.disabled},null,40,IE),[[De,Ae.checked]])]),d("td",null,K(Ae.id),1),d("td",null,[d("div",null,K(Ae.path),1),Ae.memo?(S(),I("div",TE,[d("span",OE,K(Ae.memo),1)])):be("",!0)]),d("td",null,[Ae.deleted?(S(),I("div",DE,O[38]||(O[38]=[d("span",{class:"label-danger"},"已删除",-1)]))):(S(),I("div",ME,[d("button",{type:"button",class:"pure-button button-xsmall button-error",onClick:vt=>ce(Ae,ht),disabled:Ae.disabled},"删除",8,LE),O[39]||(O[39]=B("   ")),d("button",{type:"button",class:"pure-button button-xsmall",onClick:vt=>ee(Ae)},"详情",8,BE),O[40]||(O[40]=B("   ")),d("a",{class:"pure-button button-xsmall",href:Ae.url,target:"_blank"},"打开",8,RE)]))])],2))),128))])]),u.value.length?(S(),I("div",NE,[O[41]||(O[41]=d("br",null,null,-1)),d("button",{type:"button",class:"pure-button button-error",onClick:H},"删除选中 ("+K(u.value.length)+")",1),O[42]||(O[42]=B("     ")),d("button",{type:"button",class:"pure-button button-xsmall",onClick:O[9]||(O[9]=Ae=>G("copy","checked","path"))},"复制已选路径"),O[43]||(O[43]=B("   ")),d("button",{type:"button",class:"pure-button button-xsmall",onClick:O[10]||(O[10]=Ae=>G("copy","checked","full"))},"复制已选数据"),O[44]||(O[44]=B("     ")),d("button",{type:"button",class:"pure-button button-xsmall",onClick:O[11]||(O[11]=Ae=>G("download","checked","path"))},"保存已选路径"),O[45]||(O[45]=B("   ")),d("button",{type:"button",class:"pure-button button-xsmall",onClick:O[12]||(O[12]=Ae=>G("download","checked","full"))},"保存已选数据"),O[46]||(O[46]=B("     ")),d("button",{type:"button",class:"pure-button button-success button-xsmall",onClick:O[13]||(O[13]=Ae=>me("checked"))},"打开已选")])):be("",!0)])]),d("div",FE,[O[48]||(O[48]=d("span",{class:"title"},"空文件夹清理工具",-1)),d("span",{class:"close"},[d("button",{type:"button",class:"pure-button button-error",onClick:tt},"关闭")]),O[49]||(O[49]=B("      ")),ge(ki,{purpose:"清理空文件夹",onSelect:we}),O[50]||(O[50]=B("      ")),ge(bm,{container:".ce-empty-cleaner-drawer"}),d("div",UE,[d("a",{target:"_blank",href:_.value,title:"打开目录"},[O[47]||(O[47]=d("i",{class:"file-type tp-folder",style:{}},null,-1)),B(" "+K(o.value.join(" / ")),1)],8,jE)])])],2),[[Wt,t.value]])]}),_:1},8,["is-open"])],512)),[[Wt,n.value]])}}),VE=Ne(HE,[["__file","EmptyCleaner.vue"]]);function zE(){return {showEntryOnPathBar:!0}}async function vm(){const e=zE(),t=await et.get(mt.emptyCleanerConfig,e);return {...e,...t}}async function qE(e){return await et.set(mt.emptyCleanerConfig,e)}async function WE(){const{host:e}=location,t=await ma(),n=await vm();e==="115.com"&&(console.log("[Cleaner] running..."),In()?(await KE(t),await GE(n)):(await JE(),await YE()));}async function KE(e){if(!e.showEntryOnPathBar)return;const t="cloud115Cleaner",n=await lt("#js_path_add_dir"),s=ft(``);n.insertAdjacentElement("afterend",s),Wn(fS).mount(`#${t}`);}async function GE(e){if(!e.showEntryOnPathBar)return;const t="cloud115EmptyCleaner",n=await lt("#js_path_add_dir"),s=ft(``);n.insertAdjacentElement("afterend",s),Wn(tE).mount(`#${t}`);}async function JE(e){const t="cloud115Cleaner",n=ft(`
        `);document.body.appendChild(n);const s=Wn(X2);s.component("VDropdown",Oo),s.mount(`#${t}`),mr("清理文件",async()=>{js({type:Kt.OPEN_CLEANER},window.parent);});}async function YE(e){const t="cloud115EmptyCleaner",n=ft(`
        `);document.body.appendChild(n);const s=Wn(VE);s.component("VDropdown",Oo),s.mount(`#${t}`),mr("清理空目录",async()=>{js({type:Kt.OPEN_EMPTY_CLEANER},window.parent);});}function _m(e,t){return function(){return e.apply(t,arguments)}}const{toString:xm}=Object.prototype,{getPrototypeOf:Hu}=Object,Vu=(e=>t=>{const n=xm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ts=e=>(e=e.toLowerCase(),t=>Vu(t)===e),ga=e=>t=>typeof t===e,{isArray:Do}=Array,Si=ga("undefined");function QE(e){return e!==null&&!Si(e)&&e.constructor!==null&&!Si(e.constructor)&&vs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cm=ts("ArrayBuffer");function XE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cm(e.buffer),t}const ZE=ga("string"),vs=ga("function"),km=ga("number"),zu=e=>e!==null&&typeof e=="object",eP=e=>e===!0||e===!1,fr=e=>{if(Vu(e)!=="object")return !1;const t=Hu(e);return (t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tP=ts("Date"),nP=ts("File"),sP=ts("Blob"),oP=ts("FileList"),iP=e=>zu(e)&&vs(e.pipe),rP=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||xm.call(e)===t||vs(e.toString)&&e.toString()===t)},aP=ts("URLSearchParams"),lP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ri(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),Do(e))for(s=0,i=e.length;s0;)if(i=n[s],t===i.toLowerCase())return i;return null}const $m=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Em=e=>!Si(e)&&e!==$m;function Ml(){const{caseless:e}=Em(this)&&this||{},t={},n=(s,i)=>{const o=e&&Sm(t,i)||i;fr(t[o])&&fr(s)?t[o]=Ml(t[o],s):fr(s)?t[o]=Ml({},s):Do(s)?t[o]=s.slice():t[o]=s;};for(let s=0,i=arguments.length;s(Ri(t,(i,o)=>{n&&vs(i)?e[o]=_m(i,n):e[o]=i;},{allOwnKeys:s}),e),cP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),dP=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n);},fP=(e,t,n,s)=>{let i,o,r;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)r=i[o],(!s||s(r,e,t))&&!a[r]&&(t[r]=e[r],a[r]=!0);e=n!==!1&&Hu(e);}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pP=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},hP=e=>{if(!e)return null;if(Do(e))return e;let t=e.length;if(!km(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Hu(Uint8Array)),gP=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=s.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1]);}},yP=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},wP=ts("HTMLFormElement"),bP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),tf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vP=ts("RegExp"),Pm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ri(n,(i,o)=>{t(i,o,e)!==!1&&(s[o]=i);}),Object.defineProperties(e,s);},_P=e=>{Pm(e,(t,n)=>{if(vs(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return !1;const s=e[n];if(vs(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")});}});},xP=(e,t)=>{const n={},s=i=>{i.forEach(o=>{n[o]=!0;});};return Do(e)?s(e):s(String(e).split(t)),n},CP=()=>{},kP=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ya="abcdefghijklmnopqrstuvwxyz",nf="0123456789",Am={DIGIT:nf,ALPHA:Ya,ALPHA_DIGIT:Ya+Ya.toUpperCase()+nf},SP=(e=16,t=Am.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function $P(e){return !!(e&&vs(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const EP=e=>{const t=new Array(10),n=(s,i)=>{if(zu(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[i]=s;const o=Do(s)?[]:{};return Ri(s,(r,a)=>{const l=n(r,i+1);!Si(l)&&(o[a]=l);}),t[i]=void 0,o}}return s};return n(e,0)},se={isArray:Do,isArrayBuffer:Cm,isBuffer:QE,isFormData:rP,isArrayBufferView:XE,isString:ZE,isNumber:km,isBoolean:eP,isObject:zu,isPlainObject:fr,isUndefined:Si,isDate:tP,isFile:nP,isBlob:sP,isRegExp:vP,isFunction:vs,isStream:iP,isURLSearchParams:aP,isTypedArray:mP,isFileList:oP,forEach:Ri,merge:Ml,extend:uP,trim:lP,stripBOM:cP,inherits:dP,toFlatObject:fP,kindOf:Vu,kindOfTest:ts,endsWith:pP,toArray:hP,forEachEntry:gP,matchAll:yP,isHTMLForm:wP,hasOwnProperty:tf,hasOwnProp:tf,reduceDescriptors:Pm,freezeMethods:_P,toObjectSet:xP,toCamelCase:bP,noop:CP,toFiniteNumber:kP,findKey:Sm,global:$m,isContextDefined:Em,ALPHABET:Am,generateString:SP,isSpecCompliantForm:$P,toJSONObject:EP};function Ye(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i);}se.inherits(Ye,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:se.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Im=Ye.prototype,Tm={};["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=>{Tm[e]={value:e};});Object.defineProperties(Ye,Tm);Object.defineProperty(Im,"isAxiosError",{value:!0});Ye.from=(e,t,n,s,i,o)=>{const r=Object.create(Im);return se.toFlatObject(e,r,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Ye.call(r,e.message,t,n,s,i),r.cause=e,r.name=e.name,o&&Object.assign(r,o),r};const PP=null;function Ll(e){return se.isPlainObject(e)||se.isArray(e)}function Om(e){return se.endsWith(e,"[]")?e.slice(0,-2):e}function sf(e,t,n){return e?e.concat(t).map(function(i,o){return i=Om(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function AP(e){return se.isArray(e)&&!e.some(Ll)}const IP=se.toFlatObject(se,{},null,function(t){return /^is[A-Z]/.test(t)});function ya(e,t,n){if(!se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,R){return !se.isUndefined(R[_])});const s=n.metaTokens,i=n.visitor||u,o=n.dots,r=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&se.isSpecCompliantForm(t);if(!se.isFunction(i))throw new TypeError("visitor must be a function");function c(w){if(w===null)return "";if(se.isDate(w))return w.toISOString();if(!l&&se.isBlob(w))throw new Ye("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(w)||se.isTypedArray(w)?l&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function u(w,_,R){let L=w;if(w&&!R&&typeof w=="object"){if(se.endsWith(_,"{}"))_=s?_:_.slice(0,-2),w=JSON.stringify(w);else if(se.isArray(w)&&AP(w)||(se.isFileList(w)||se.endsWith(_,"[]"))&&(L=se.toArray(w)))return _=Om(_),L.forEach(function(T,M){!(se.isUndefined(T)||T===null)&&t.append(r===!0?sf([_],M,o):r===null?_:_+"[]",c(T));}),!1}return Ll(w)?!0:(t.append(sf(R,_,o),c(w)),!1)}const p=[],m=Object.assign(IP,{defaultVisitor:u,convertValue:c,isVisitable:Ll});function v(w,_){if(!se.isUndefined(w)){if(p.indexOf(w)!==-1)throw Error("Circular reference detected in "+_.join("."));p.push(w),se.forEach(w,function(L,j){(!(se.isUndefined(L)||L===null)&&i.call(t,L,se.isString(j)?j.trim():j,_,m))===!0&&v(L,_?_.concat(j):[j]);}),p.pop();}}if(!se.isObject(e))throw new TypeError("data must be an object");return v(e),t}function of(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function qu(e,t){this._pairs=[],e&&ya(e,this,t);}const Dm=qu.prototype;Dm.append=function(t,n){this._pairs.push([t,n]);};Dm.toString=function(t){const n=t?function(s){return t.call(this,s,of)}:of;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function TP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mm(e,t,n){if(!t)return e;const s=n&&n.encode||TP,i=n&&n.serialize;let o;if(i?o=i(t,n):o=se.isURLSearchParams(t)?t.toString():new qu(t,n).toString(s),o){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+o;}return e}class rf{constructor(){this.handlers=[];}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null);}clear(){this.handlers&&(this.handlers=[]);}forEach(t){se.forEach(this.handlers,function(s){s!==null&&t(s);});}}const Lm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OP=typeof URLSearchParams<"u"?URLSearchParams:qu,DP=typeof FormData<"u"?FormData:null,MP=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),LP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bn={isBrowser:!0,classes:{URLSearchParams:OP,FormData:DP,Blob},isStandardBrowserEnv:MP,isStandardBrowserWebWorkerEnv:LP,protocols:["http","https","file","blob","url","data"]};function BP(e,t){return ya(e,new Bn.classes.URLSearchParams,Object.assign({visitor:function(n,s,i,o){return Bn.isNode&&se.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function RP(e){return se.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function NP(e){const t={},n=Object.keys(e);let s;const i=n.length;let o;for(s=0;s=n.length;return r=!r&&se.isArray(i)?i.length:r,l?(se.hasOwnProp(i,r)?i[r]=[i[r],s]:i[r]=s,!a):((!i[r]||!se.isObject(i[r]))&&(i[r]=[]),t(n,s,i[r],o)&&se.isArray(i[r])&&(i[r]=NP(i[r])),!a)}if(se.isFormData(e)&&se.isFunction(e.entries)){const n={};return se.forEachEntry(e,(s,i)=>{t(RP(s),i,n,0);}),n}return null}const FP={"Content-Type":void 0};function UP(e,t,n){if(se.isString(e))try{return (t||JSON.parse)(e),se.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return (n||JSON.stringify)(e)}const Mo={transitional:Lm,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,o=se.isObject(t);if(o&&se.isHTMLForm(t)&&(t=new FormData(t)),se.isFormData(t))return i&&i?JSON.stringify(Bm(t)):t;if(se.isArrayBuffer(t)||se.isBuffer(t)||se.isStream(t)||se.isFile(t)||se.isBlob(t))return t;if(se.isArrayBufferView(t))return t.buffer;if(se.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return BP(t,this.formSerializer).toString();if((a=se.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ya(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),UP(t)):t}],transformResponse:[function(t){const n=this.transitional||Mo.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&se.isString(t)&&(s&&!this.responseType||i)){const r=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(r)throw a.name==="SyntaxError"?Ye.from(a,Ye.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bn.classes.FormData,Blob:Bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};se.forEach(["delete","get","head"],function(t){Mo.headers[t]={};});se.forEach(["post","put","patch"],function(t){Mo.headers[t]=se.merge(FP);});const jP=se.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"]),HP=e=>{const t={};let n,s,i;return e&&e.split(` `).forEach(function(r){i=r.indexOf(":"),n=r.substring(0,i).trim().toLowerCase(),s=r.substring(i+1).trim(),!(!n||t[n]&&jP[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s);}),t},af=Symbol("internals");function Wo(e){return e&&String(e).trim().toLowerCase()}function pr(e){return e===!1||e==null?e:se.isArray(e)?e.map(pr):String(e)}function VP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function zP(e){return /^[-_a-zA-Z]+$/.test(e.trim())}function Qa(e,t,n,s,i){if(se.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!se.isString(t)){if(se.isString(s))return t.indexOf(s)!==-1;if(se.isRegExp(s))return s.test(t)}}function qP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function WP(e,t){const n=se.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,o,r){return this[s].call(this,t,i,o,r)},configurable:!0});});}let yn=class{constructor(t){t&&this.set(t);}set(t,n,s){const i=this;function o(a,l,c){const u=Wo(l);if(!u)throw new Error("header name must be a non-empty string");const p=se.findKey(i,u);(!p||i[p]===void 0||c===!0||c===void 0&&i[p]!==!1)&&(i[p||l]=pr(a));}const r=(a,l)=>se.forEach(a,(c,u)=>o(c,u,l));return se.isPlainObject(t)||t instanceof this.constructor?r(t,n):se.isString(t)&&(t=t.trim())&&!zP(t)?r(HP(t),n):t!=null&&o(n,t,s),this}get(t,n){if(t=Wo(t),t){const s=se.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return VP(i);if(se.isFunction(n))return n.call(this,i,s);if(se.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Wo(t),t){const s=se.findKey(this,t);return !!(s&&this[s]!==void 0&&(!n||Qa(this,this[s],s,n)))}return !1}delete(t,n){const s=this;let i=!1;function o(r){if(r=Wo(r),r){const a=se.findKey(s,r);a&&(!n||Qa(s,s[a],a,n))&&(delete s[a],i=!0);}}return se.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const o=n[s];(!t||Qa(this,this[o],o,t,!0))&&(delete this[o],i=!0);}return i}normalize(t){const n=this,s={};return se.forEach(this,(i,o)=>{const r=se.findKey(s,o);if(r){n[r]=pr(i),delete n[o];return}const a=t?qP(o):String(o).trim();a!==o&&delete n[o],n[a]=pr(i),s[a]=!0;}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return se.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&se.isArray(s)?s.join(", "):s);}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return "AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[af]=this[af]={accessors:{}}).accessors,i=this.prototype;function o(r){const a=Wo(r);s[a]||(WP(i,r),s[a]=!0);}return se.isArray(t)?t.forEach(o):o(t),this}};yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);se.freezeMethods(yn.prototype);se.freezeMethods(yn);function Xa(e,t){const n=this||Mo,s=t||n,i=yn.from(s.headers);let o=s.data;return se.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0);}),i.normalize(),o}function Rm(e){return !!(e&&e.__CANCEL__)}function Ni(e,t,n){Ye.call(this,e??"canceled",Ye.ERR_CANCELED,t,n),this.name="CanceledError";}se.inherits(Ni,Ye,{__CANCEL__:!0});function KP(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Ye("Request failed with status code "+n.status,[Ye.ERR_BAD_REQUEST,Ye.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n));}const GP=Bn.isStandardBrowserEnv?function(){return {write:function(n,s,i,o,r,a){const l=[];l.push(n+"="+encodeURIComponent(s)),se.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),se.isString(o)&&l.push("path="+o),se.isString(r)&&l.push("domain="+r),a===!0&&l.push("secure"),document.cookie=l.join("; ");},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5);}}}():function(){return {write:function(){},read:function(){return null},remove:function(){}}}();function JP(e){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function YP(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Nm(e,t){return e&&!JP(t)?YP(e,t):t}const QP=Bn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function i(o){let r=o;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=i(window.location.href),function(r){const a=se.isString(r)?i(r):r;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return !0}}();function XP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ZP(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,o=0,r;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=s[o];r||(r=c),n[i]=l,s[i]=c;let p=o,m=0;for(;p!==i;)m+=n[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-r{const o=i.loaded,r=i.lengthComputable?i.total:void 0,a=o-n,l=s(a),c=o<=r;n=o;const u={loaded:o,total:r,progress:r?o/r:void 0,bytes:a,rate:l||void 0,estimated:l&&r&&c?(r-o)/l:void 0,event:i};u[t?"download":"upload"]=!0,e(u);}}const eA=typeof XMLHttpRequest<"u",tA=eA&&function(e){return new Promise(function(n,s){let i=e.data;const o=yn.from(e.headers).normalize(),r=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a);}se.isFormData(i)&&(Bn.isStandardBrowserEnv||Bn.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(v+":"+w));}const u=Nm(e.baseURL,e.url);c.open(e.method.toUpperCase(),Mm(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const v=yn.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),_={data:!r||r==="text"||r==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:e,request:c};KP(function(L){n(L),l();},function(L){s(L),l();},_),c=null;}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p);},c.onabort=function(){c&&(s(new Ye("Request aborted",Ye.ECONNABORTED,e,c)),c=null);},c.onerror=function(){s(new Ye("Network Error",Ye.ERR_NETWORK,e,c)),c=null;},c.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const _=e.transitional||Lm;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),s(new Ye(w,_.clarifyTimeoutError?Ye.ETIMEDOUT:Ye.ECONNABORTED,e,c)),c=null;},Bn.isStandardBrowserEnv){const v=(e.withCredentials||QP(u))&&e.xsrfCookieName&&GP.read(e.xsrfCookieName);v&&o.set(e.xsrfHeaderName,v);}i===void 0&&o.setContentType(null),"setRequestHeader"in c&&se.forEach(o.toJSON(),function(w,_){c.setRequestHeader(_,w);}),se.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),r&&r!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",lf(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",lf(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=v=>{c&&(s(!v||v.type?new Ni(null,e,c):v),c.abort(),c=null);},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const m=XP(u);if(m&&Bn.protocols.indexOf(m)===-1){s(new Ye("Unsupported protocol "+m+":",Ye.ERR_BAD_REQUEST,e));return}c.send(i||null);})},hr={http:PP,xhr:tA};se.forEach(hr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t});}catch{}Object.defineProperty(e,"adapterName",{value:t});}});const nA={getAdapter:e=>{e=se.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let i=0;ie instanceof yn?e.toJSON():e;function $o(e,t){t=t||{};const n={};function s(c,u,p){return se.isPlainObject(c)&&se.isPlainObject(u)?se.merge.call({caseless:p},c,u):se.isPlainObject(u)?se.merge({},u):se.isArray(u)?u.slice():u}function i(c,u,p){if(se.isUndefined(u)){if(!se.isUndefined(c))return s(void 0,c,p)}else return s(c,u,p)}function o(c,u){if(!se.isUndefined(u))return s(void 0,u)}function r(c,u){if(se.isUndefined(u)){if(!se.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function a(c,u,p){if(p in t)return s(c,u);if(p in e)return s(void 0,c)}const l={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:a,headers:(c,u)=>i(cf(c),cf(u),!0)};return se.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const p=l[u]||i,m=p(e[u],t[u],u);se.isUndefined(m)&&p!==a||(n[u]=m);}),n}const Fm="1.3.3",Wu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wu[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e};});const df={};Wu.transitional=function(t,n,s){function i(o,r){return "[Axios v"+Fm+"] Transitional option '"+o+"'"+r+(s?". "+s:"")}return (o,r,a)=>{if(t===!1)throw new Ye(i(r," has been removed"+(n?" in "+n:"")),Ye.ERR_DEPRECATED);return n&&!df[r]&&(df[r]=!0,console.warn(i(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,r,a):!0}};function sA(e,t,n){if(typeof e!="object")throw new Ye("options must be an object",Ye.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const o=s[i],r=t[o];if(r){const a=e[o],l=a===void 0||r(a,o,e);if(l!==!0)throw new Ye("option "+o+" must be "+l,Ye.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ye("Unknown option "+o,Ye.ERR_BAD_OPTION)}}const Bl={assertOptions:sA,validators:Wu},ss=Bl.validators;let Us=class{constructor(t){this.defaults=t,this.interceptors={request:new rf,response:new rf};}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$o(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:o}=n;s!==void 0&&Bl.assertOptions(s,{silentJSONParsing:ss.transitional(ss.boolean),forcedJSONParsing:ss.transitional(ss.boolean),clarifyTimeoutError:ss.transitional(ss.boolean)},!1),i!==void 0&&Bl.assertOptions(i,{encode:ss.function,serialize:ss.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r;r=o&&se.merge(o.common,o[n.method]),r&&se.forEach(["delete","get","head","post","put","patch","common"],w=>{delete o[w];}),n.headers=yn.concat(r,o);const a=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,a.unshift(_.fulfilled,_.rejected));});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected);});let u,p=0,m;if(!l){const w=[uf.bind(this),void 0];for(w.unshift.apply(w,a),w.push.apply(w,c),m=w.length,u=Promise.resolve(n);p{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](i);s._listeners=null;}),this.promise.then=i=>{let o;const r=new Promise(a=>{s.subscribe(a),o=a;}).then(i);return r.cancel=function(){s.unsubscribe(o);},r},t(function(o,r,a){s.reason||(s.reason=new Ni(o,r,a),n(s.reason));});}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t];}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1);}static source(){let t;return {token:new Um(function(i){t=i;}),cancel:t}}};function iA(e){return function(n){return e.apply(null,n)}}function rA(e){return se.isObject(e)&&e.isAxiosError===!0}const Rl={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(Rl).forEach(([e,t])=>{Rl[t]=e;});function jm(e){const t=new Us(e),n=_m(Us.prototype.request,t);return se.extend(n,Us.prototype,t,{allOwnKeys:!0}),se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return jm($o(e,i))},n}const St=jm(Mo);St.Axios=Us;St.CanceledError=Ni;St.CancelToken=oA;St.isCancel=Rm;St.VERSION=Fm;St.toFormData=ya;St.AxiosError=Ye;St.Cancel=St.CanceledError;St.all=function(t){return Promise.all(t)};St.spread=iA;St.isAxiosError=rA;St.mergeConfig=$o;St.AxiosHeaders=yn;St.formToJSON=e=>Bm(se.isHTMLForm(e)?new FormData(e):e);St.HttpStatusCode=Rl;St.default=St;const{Axios:aL,AxiosError:aA,CanceledError:lL,isCancel:uL,CancelToken:cL,VERSION:dL,all:fL,Cancel:pL,isAxiosError:hL,spread:mL,toFormData:gL,AxiosHeaders:yL,HttpStatusCode:wL,formToJSON:bL,mergeConfig:vL}=St,lA=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);var uA=e=>!lA.has(e&&e.code);const cA=Zl(uA),Ku="axios-retry";function Hm(e){const t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:cA(e)}const Vm=["get","head","options"],dA=Vm.concat(["put","delete"]);function Gu(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function fA(e){var t;return (t=e.config)!=null&&t.method?Gu(e)&&Vm.indexOf(e.config.method)!==-1:!1}function zm(e){var t;return (t=e.config)!=null&&t.method?Gu(e)&&dA.indexOf(e.config.method)!==-1:!1}function qm(e){return Hm(e)||zm(e)}function Wm(e=void 0){var s;const t=(s=e==null?void 0:e.response)==null?void 0:s.headers["retry-after"];if(!t)return 0;let n=(Number(t)||0)*1e3;return n===0&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}function pA(e=0,t=void 0){return Math.max(0,Wm(t))}function hA(e=0,t=void 0,n=100){const s=2**e*n,i=Math.max(s,Wm(t)),o=i*.2*Math.random();return i+o}const mA={retries:3,retryCondition:qm,retryDelay:pA,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function gA(e,t){return {...mA,...t,...e[Ku]}}function ff(e,t){const n=gA(e,t||{});return n.retryCount=n.retryCount||0,n.lastRequestTime=n.lastRequestTime||Date.now(),e[Ku]=n,n}function yA(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent;}async function wA(e,t){const{retries:n,retryCondition:s}=e,i=(e.retryCount||0)c],await r(t.retryCount,n,s),(l=s.signal)!=null&&l.aborted?Promise.resolve(e(s)):new Promise(c=>{var m;const u=()=>{clearTimeout(p),c(e(s));},p=setTimeout(()=>{var v;c(e(s)),(v=s.signal)!=null&&v.removeEventListener&&s.signal.removeEventListener("abort",u);},a);(m=s.signal)!=null&&m.addEventListener&&s.signal.addEventListener("abort",u,{once:!0});})}async function vA(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount);}const eo=(e,t)=>{const n=e.interceptors.request.use(i=>{var o;return ff(i,t),(o=i[Ku])!=null&&o.validateResponse&&(i.validateStatus=()=>!1),i}),s=e.interceptors.response.use(null,async i=>{var a;const{config:o}=i;if(!o)return Promise.reject(i);const r=ff(o,t);return i.response&&((a=r.validateResponse)!=null&&a.call(r,i.response))?i.response:await wA(r,i)?bA(e,r,i,o):(await vA(r,i),Promise.reject(i))});return {requestInterceptorId:n,responseInterceptorId:s}};eo.isNetworkError=Hm;eo.isSafeRequestError=fA;eo.isIdempotentRequestError=zm;eo.isNetworkOrIdempotentRequestError=qm;eo.exponentialDelay=hA;eo.isRetryableError=Gu;var _A=class{constructor(t={}){this.points=t.points,this.duration=t.duration,this.blockDuration=t.blockDuration,this.execEvenly=t.execEvenly,this.execEvenlyMinDelayMs=t.execEvenlyMinDelayMs,this.keyPrefix=t.keyPrefix;}get points(){return this._points}set points(t){this._points=t>=0?t:4;}get duration(){return this._duration}set duration(t){this._duration=typeof t>"u"?1:t;}get msDuration(){return this.duration*1e3}get blockDuration(){return this._blockDuration}set blockDuration(t){this._blockDuration=typeof t>"u"?0:t;}get msBlockDuration(){return this.blockDuration*1e3}get execEvenly(){return this._execEvenly}set execEvenly(t){this._execEvenly=typeof t>"u"?!1:!!t;}get execEvenlyMinDelayMs(){return this._execEvenlyMinDelayMs}set execEvenlyMinDelayMs(t){this._execEvenlyMinDelayMs=typeof t>"u"?Math.ceil(this.msDuration/this.points):t;}get keyPrefix(){return this._keyPrefix}set keyPrefix(t){if(typeof t>"u"&&(t="rlflx"),typeof t!="string")throw new Error("keyPrefix must be string");this._keyPrefix=t;}_getKeySecDuration(t={}){return t&&t.customDuration>=0?t.customDuration:this.duration}getKey(t){return this.keyPrefix.length>0?`${this.keyPrefix}:${t}`:t}parseKey(t){return t.substring(this.keyPrefix.length)}consume(){throw new Error("You have to implement the method 'consume'!")}penalty(){throw new Error("You have to implement the method 'penalty'!")}reward(){throw new Error("You have to implement the method 'reward'!")}get(){throw new Error("You have to implement the method 'get'!")}set(){throw new Error("You have to implement the method 'set'!")}block(){throw new Error("You have to implement the method 'block'!")}delete(){throw new Error("You have to implement the method 'delete'!")}},xA=class{constructor(t,n,s=null){this.value=t,this.expiresAt=n,this.timeoutId=s;}get value(){return this._value}set value(t){this._value=parseInt(t);}get expiresAt(){return this._expiresAt}set expiresAt(t){!(t instanceof Date)&&Number.isInteger(t)&&(t=new Date(t)),this._expiresAt=t;}get timeoutId(){return this._timeoutId}set timeoutId(t){this._timeoutId=t;}},Ju=class{constructor(t,n,s,i){this.remainingPoints=typeof t>"u"?0:t,this.msBeforeNext=typeof n>"u"?0:n,this.consumedPoints=typeof s>"u"?0:s,this.isFirstInDuration=typeof i>"u"?!1:i;}get msBeforeNext(){return this._msBeforeNext}set msBeforeNext(t){return this._msBeforeNext=t,this}get remainingPoints(){return this._remainingPoints}set remainingPoints(t){return this._remainingPoints=t,this}get consumedPoints(){return this._consumedPoints}set consumedPoints(t){return this._consumedPoints=t,this}get isFirstInDuration(){return this._isFirstInDuration}set isFirstInDuration(t){this._isFirstInDuration=!!t;}_getDecoratedProperties(){return {remainingPoints:this.remainingPoints,msBeforeNext:this.msBeforeNext,consumedPoints:this.consumedPoints,isFirstInDuration:this.isFirstInDuration}}[Symbol.for("nodejs.util.inspect.custom")](){return this._getDecoratedProperties()}toString(){return JSON.stringify(this._getDecoratedProperties())}toJSON(){return this._getDecoratedProperties()}};const CA=xA,el=Ju;var kA=class{constructor(){this._storage={};}incrby(t,n,s){if(this._storage[t]){const i=this._storage[t].expiresAt?this._storage[t].expiresAt.getTime()-new Date().getTime():-1;return !this._storage[t].expiresAt||i>0?(this._storage[t].value=this._storage[t].value+n,new el(0,i,this._storage[t].value,!1)):this.set(t,n,s)}return this.set(t,n,s)}set(t,n,s){const i=s*1e3;return this._storage[t]&&this._storage[t].timeoutId&&clearTimeout(this._storage[t].timeoutId),this._storage[t]=new CA(n,i>0?new Date(Date.now()+i):null),i>0&&(this._storage[t].timeoutId=setTimeout(()=>{delete this._storage[t];},i),this._storage[t].timeoutId.unref&&this._storage[t].timeoutId.unref()),new el(0,i===0?-1:i,this._storage[t].value,!0)}get(t){if(this._storage[t]){const n=this._storage[t].expiresAt?this._storage[t].expiresAt.getTime()-new Date().getTime():-1;return new el(0,n,this._storage[t].value,!1)}return null}delete(t){return this._storage[t]?(this._storage[t].timeoutId&&clearTimeout(this._storage[t].timeoutId),delete this._storage[t],!0):!1}};const SA=_A,$A=kA,pf=Ju;let EA=class extends SA{constructor(t={}){super(t),this._memoryStorage=new $A;}consume(t,n=1,s={}){return new Promise((i,o)=>{const r=this.getKey(t),a=this._getKeySecDuration(s);let l=this._memoryStorage.incrby(r,n,a);if(l.remainingPoints=Math.max(this.points-l.consumedPoints,0),l.consumedPoints>this.points)this.blockDuration>0&&l.consumedPoints<=this.points+n&&(l=this._memoryStorage.set(r,l.consumedPoints,this.blockDuration)),o(l);else if(this.execEvenly&&l.msBeforeNext>0&&!l.isFirstInDuration){let c=Math.ceil(l.msBeforeNext/(l.remainingPoints+2));c{const r=this._getKeySecDuration(s),a=this._memoryStorage.incrby(i,n,r);a.remainingPoints=Math.max(this.points-a.consumedPoints,0),o(a);})}reward(t,n=1,s={}){const i=this.getKey(t);return new Promise(o=>{const r=this._getKeySecDuration(s),a=this._memoryStorage.incrby(i,-n,r);a.remainingPoints=Math.max(this.points-a.consumedPoints,0),o(a);})}block(t,n){const s=n*1e3,i=this.points+1;return this._memoryStorage.set(this.getKey(t),i,n),Promise.resolve(new pf(0,s===0?-1:s,i))}set(t,n,s){const i=(s>=0?s:this.duration)*1e3;return this._memoryStorage.set(this.getKey(t),n,s),Promise.resolve(new pf(0,i===0?-1:i,n))}get(t){const n=this._memoryStorage.get(this.getKey(t));return n!==null&&(n.remainingPoints=Math.max(this.points-n.consumedPoints,0)),Promise.resolve(n)}delete(t){return Promise.resolve(this._memoryStorage.delete(this.getKey(t)))}};var PA=EA;const AA=PA,IA=Ju;var hf={RateLimiterMemory:AA,RateLimiterRes:IA};const TA="pan115_api";var Lr=(e=>(e.evenly="evenly",e.asap="asap",e))(Lr||{});const Km={points:1,duration:1,execEvenly:!0};function Gm(e){return {clientId:TA,rateLimit:Km,msDelayAdjustment:30,...e}}function OA(e){const t=Gm(e),n=St.create({});eo(n,{retries:5,shouldResetTimeout:!0,retryDelay:i=>(console.log(`[axios] Retry ${i}...`),i*1e3)});const s=new hf.RateLimiterMemory(t.rateLimit);return n.interceptors.request.use(async i=>{try{const o=await s.consume(t.clientId);return i}catch(o){if(console.warn("[axios] RateLimiter:",o),o instanceof hf.RateLimiterRes){const r=o.msBeforeNext+t.msDelayAdjustment;return console.log(`[axios] Delay ${r}ms for next request...`),await nn(r),i}else throw new aA(o)}},i=>(console.warn("[axios] onRejected:",i),Promise.reject(i))),n}const Jm=mt.basic;function DA(e){return {qps:4,limiterDuration:1,limiterPoints:1,limitExecPolicy:Lr.evenly,showOfflineEntry:!1,offlineEntryLabel:"云下载",showAddOffline2:!0,addOfflineLabel:"添加",transferDefaultOffline:!1,showFavEntry:!1,favEntryLabel:"星标",hideWatermark:!0,fakeAccountEnabled:!1,fakeAccountId:"",fakeAccountName:"",fakeAccountAvatar:"",fakeAccountVip:"",...e}}async function wa(){const e=DA(),t=await et.get(Jm,e);return {...e,...t}}async function MA(e){await et.set(Jm,e);}var LA={name:"115不大助手",version:"0.7.63",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};const Yu=LA;async function BA(e){if(!e.showOfflineEntry||!In())return;console.log("[Cloud115 Enhancer] showOfflineEntry");const t=await us("a#js_filter_btn"),n="https://115.com/?ct=index&ac=offline_new_tpl&offline=1&tab=offline",s="background:#fffcea;",i=`点击跳转到「云下载」页面。该按钮由 ${Yu.name} 注入`,o=e.offlineEntryLabel?`${e.offlineEntryLabel}`:"",r=$(` ${o} `);t.after(r),r.on("click",()=>{try{on().oofUtil.urlMaintain.changeMode("wangpan",{tab:"offline"});}catch(a){console.log('[Cloud115 Enhancer] showOfflineEntry failed with "top.oofUtil.urlMaintain.changeMode".',a),location.href=n;}});}async function RA(e){if(!In())return;const{showAddOffline2:t,addOfflineLabel:n}=e,s=rt('a[menu="offline_task"]');if(s){if(!t){s.style.display="none";return}const c=s.querySelector("span");c&&(c.textContent=n);return}if(!t)return;const i=await us("a#js_filter_btn"),o="background:#fffcea;",r=`点击打开到「添加云下载」对话框。该按钮由 ${Yu.name} 注入`,a=e.addOfflineLabel?`${e.addOfflineLabel}`:"",l=$(` ${a} `);i.after(l);}async function NA(e){if(!e.showFavEntry||!In())return;console.log("[Cloud115 Enhancer] showFavEntry");const t=await us("a#js_filter_btn"),n="https://115.com/?tab=label&show_label=1&label_id=-1&mode=wangpan",s="background:#fffcea;",i=`点击跳转到「星标」页面。该按钮由 ${Yu.name} 注入`,o=e.favEntryLabel?`${e.favEntryLabel}`:"",r=$(` ${o} `);t.after(r),r.on("click",()=>{try{on().oofUtil.urlMaintain.changeMode("wangpan",{tab:"label",label_id:-1,show_label:1});}catch(a){console.log('[Cloud115 Enhancer] showFavEntry failed with "top.oofUtil.urlMaintain.changeMode".',a),location.href=n;}});}async function FA(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 us('#js_sub_nav_scroller a[mode-tab="upload"]');n.attr("mode-tab","offline").attr("href","https://115.com/?tab=offline&mode=wangpan"),n.find("i").removeClass("icon-ns-transfer").removeClass("icon-nv-file inf-transmit").addClass("icon-operate ifo-linktask").css({filter:"invert(0.6)",marginRight:12,zoom:1.2});}async function UA(e){if(e.hideWatermark){console.log("[Cloud115 Enhancer] hideWatermark");try{const t=await lt('div[class^="fp-"]');t.classList.add("hidden-watermark"),t.style.display="none";}catch(t){console.error("[Cloud115 Enhancer] hideWatermark",t.message);}}}async function jA(e){window.top===window.self&&(await nn(1e3),Nl(e),window.addEventListener("message",async t=>{const n=t.data.event,s=t.data.body;n===gt.basicConfigChange&&(console.log("[Cloud115 Enhancer] basicConfigChange"),Nl(s));}));}let li=null;async function HA(){li&&clearTimeout(li),li=setTimeout(async()=>{const e=await wa();Nl(e);},5e3);}async function Nl(e){li&&clearTimeout(li);const t=async(n,s)=>{const i=await us('[rel="user_id"]',100);i.data("origin")||i.data("origin",i.text()),s?i.text(i.data("origin")):i.text(n.fakeAccountId);const o=await us('[rel="user_name"]',100);o.data("origin")||o.data("origin",$(o[0]).text()),s?o.text(o.data("origin")):o.text(n.fakeAccountName);const r=await us('img[rel="user_face"], .user-avatar img',100);r.data("origin")||r.data("origin",r.attr("src")),s?r.attr("src",r.data("origin")):(r.attr("rel","noreferrer"),r.attr("src",n.fakeAccountAvatar));const a=await us(".sign-vip-card",100);a.data("origin")||a.data("origin",$(a[0]).text()),s?a.text(a.data("origin")):a.text(n.fakeAccountVip);};try{e.fakeAccountEnabled?await t(e,!1):await t(e,!0);}catch(n){console.error(n);}finally{e.fakeAccountEnabled&&HA();}}async function VA(){const e=await wa(),{host:t}=location;/115\.com$/.test(t)&&(UA(e),BA(e),RA(e),NA(e),FA(e),jA(e));}const Ym=Symbol("addTab"),Qm=Symbol("updateTab"),Xm=Symbol("deleteTab"),Zm=Symbol("tabsProvider");function or(e,t){const n=ni(e,t);if(typeof n>"u")throw new Error(`Could not resolve ${e.description}`);return n}const zA=["data-tab-id","aria-hidden"],fn=Te({__name:"Tab",props:{panelClass:{type:[String,Object,Array],default:"tabs-component-panel"},id:{type:String,default:null},name:{type:String,required:!0},prefix:{type:String,default:""},suffix:{type:String,default:""},isDisabled:{type:Boolean,default:!1},navItemClass:{type:[String,Object,Array],required:!1,default:null},navItemLinkClass:{type:[String,Object,Array],required:!1,default:null}},setup(e,{expose:t}){const n=e,s=ne(!1),i=or(Zm),o=or(Ym),r=or(Qm),a=or(Xm),l=n.prefix+n.name+n.suffix,c=n.id?n.id:n.name.toLowerCase().replace(/ /g,"-"),u=c+"-pane",p=ot(()=>"#"+(n.isDisabled?"":c));return Xe(()=>i.activeTabHash,()=>{s.value=p.value===i.activeTabHash;}),Xe(()=>Object.assign({},n),()=>{r(c,{name:n.name,header:n.prefix+n.name+n.suffix,isDisabled:n.isDisabled,hash:p.value,index:i.tabs.length,computedId:c,paneId:u,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass});}),Tt(()=>{o({name:n.name,header:l,isDisabled:n.isDisabled,hash:p.value,index:i.tabs.length,computedId:c,paneId:u,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass});}),Gp(()=>{a(c);}),t({header:l,computedId:c,paneId:u,hash:p,isActive:s}),(m,v)=>oe((S(),I("section",{ref:"tab",id:u,"data-tab-id":re(c),"aria-hidden":!s.value,class:Fe(e.panelClass),role:"tabpanel",tabindex:"-1"},[Qe(m.$slots,"default")],10,zA)),[[Wt,s.value]])}});class qA{get(t){const n=localStorage.getItem(t);if(n===null)return null;const s=JSON.parse(n);return s?new Date(s.expires)({useUrlFragment:!0,defaultTabHash:null})},wrapperClass:{type:[String,Object,Array],default:"tabs-component"},panelsWrapperClass:{type:[String,Object,Array],default:"tabs-component-panels"},navClass:{type:[String,Object,Array],default:"tabs-component-tabs"},navItemClass:{type:[String,Object,Array],default:"tabs-component-tab"},navItemDisabledClass:{type:[String,Object,Array],default:"is-disabled"},navItemActiveClass:{type:[String,Object,Array],default:"is-active"},navItemInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkClass:{type:[String,Object,Array],default:"tabs-component-tab-a"},navItemLinkActiveClass:{type:[String,Object,Array],default:"is-active"},navItemLinkInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkDisabledClass:{type:[String,Object,Array],default:"is-disabled"}},emits:["changed","clicked"],setup(e,{expose:t,emit:n}){const s=e,i=ea({activeTabHash:"",lastActiveTabHash:"",tabs:[]});Jo(Zm,i),Jo(Ym,a=>{i.tabs.push(a);}),Jo(Qm,(a,l)=>{const c=i.tabs.findIndex(u=>u.computedId===a);l.isActive=i.tabs[c].isActive,i.tabs[c]=l;}),Jo(Xm,a=>{const l=i.tabs.findIndex(c=>c.computedId===a);i.tabs.splice(l,1);});const o=(a,l)=>{l&&!s.options.useUrlFragment&&l.preventDefault();const c=r(a);if(!c)return;if(l&&c.isDisabled){l.preventDefault();return}if(i.lastActiveTabHash===c.hash){n("clicked",{tab:c});return}if(i.tabs.forEach(p=>{p.isActive=p.hash===c.hash;}),n("changed",{tab:c}),i.lastActiveTabHash=i.activeTabHash=c.hash,s.cacheLifetime<=0)return;const u=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`;mf.set(u,c.hash,s.cacheLifetime);},r=a=>i.tabs.find(l=>l.hash===a);return Yt(()=>{if(i.tabs.length){if(window.addEventListener("hashchange",()=>o(window.location.hash)),r(window.location.hash)){o(window.location.hash);return}if(s.cacheLifetime>0){const a=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`,l=mf.get(a);if(l!==null&&r(l)){o(l);return}if(s.options.defaultTabHash&&r("#"+s.options.defaultTabHash)){o("#"+s.options.defaultTabHash);return}}o(i.tabs[0].hash);}}),t({...V1(i),selectTab:o,findTab:r}),(a,l)=>(S(),I("div",{class:Fe(e.wrapperClass)},[d("ul",{role:"tablist",class:Fe(e.navClass)},[(S(!0),I(Le,null,Je(i.tabs,(c,u)=>{var p,m;return S(),I("li",{key:u,class:Fe([(p=c.navItemClass)!=null?p:e.navItemClass,c.isDisabled?e.navItemDisabledClass:"",c.isActive?e.navItemActiveClass:c.isDisabled?"":e.navItemInactiveClass]),role:"presentation"},[d("a",{role:"tab",class:Fe([(m=c.navItemLinkClass)!=null?m:e.navItemLinkClass,c.isDisabled?e.navItemLinkDisabledClass:"",c.isActive?e.navItemLinkActiveClass:c.isDisabled?"":e.navItemLinkInactiveClass]),"aria-controls":c.paneId,"aria-selected":c.isActive,href:c.hash,onClick:v=>o(c.hash,v),innerHTML:c.header,tabindex:"0"},null,10,WA)],2)}),128))],2),d("div",{class:Fe(e.panelsWrapperClass)},[Qe(a.$slots,"default")],2)],2))}});function Fl(e,t,n,s){return en?s:e}const GA={class:"ce-config ce-basic-config"},JA={class:"pure-form pure-form-aligned"},YA={class:"pure-control-group"},QA=["value"],XA=["value"],ZA={class:"pure-control-group"},eI={class:"pure-form-message text-success"},tI={class:"pure-control-group"},nI={class:"pure-form-message text-success"},sI={class:"pure-control-group"},oI={class:"pure-control-group"},iI={class:"pure-form-message text-success"},rI={class:"pure-control-group"},aI={class:"pure-control-group"},lI={class:"pure-control-group"},uI={class:"pure-control-group"},cI={class:"pure-control-group"},dI={class:"avatar-preview"},fI=["src"],pI={class:"pure-control-group"},hI=Te({__name:"Config",async setup(e){let t,n;const s=ne(([t,n]=jt(()=>wa()),t=await t,n(),t)),i=!0;Tt(async()=>{});function o(c){const u=(p,m)=>Math.floor(Fl(p,1,m,1));return c.limiterDuration=u(c.limiterDuration,300),c.limiterPoints=u(c.limiterPoints,3e3),c}Xe(s,bt(async c=>{o(c),await MA(c),ae({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:gt.basicConfigChange,body:nu(c)});},500),{deep:!0});async function r(c,u,p="warning"){const{isConfirmed:m}=await ue.fire({title:c,text:u,icon:p,showCancelButton:!0,confirmButtonText:"确认"});return m}async function a(){if(await r("导出配置","是否确认导出当前配置?"))try{await Kw(),ae({icon:"success",title:"导出成功"});}catch(c){ue.fire(c.toString());}}async function l(){if(await r("导入配置","导入后将覆盖当前配置,是否继续?"))try{const c=await Gw();console.log(c),Qo.fire({icon:"success",title:"导入成功,刷新页面后生效。将在5秒后自动刷新页面...",timer:5e3}),setTimeout(()=>{window.location.reload();},5e3);}catch(c){ue.fire({title:"导入失败",html:c.toString()+'

        必须有字段 "_schema": "pan115_enhancer_configs" 。

        '});}}return (c,u)=>(S(),I("div",GA,[d("form",JA,[d("fieldset",null,[u[43]||(u[43]=d("legend",null,"API",-1)),d("div",YA,[u[17]||(u[17]=d("label",null,"全局请求频率控制",-1)),re(i)?be("",!0):(S(),I(Le,{key:0},[oe(d("select",{"onUpdate:modelValue":u[0]||(u[0]=p=>s.value.limitExecPolicy=p)},[d("option",{value:re(Lr).asap},"尽快消耗",8,QA),d("option",{value:re(Lr).evenly},"尽量均匀",8,XA)],512),[[Pn,s.value.limitExecPolicy]]),u[16]||(u[16]=B(" 地 "))],64)),u[18]||(u[18]=B(" 在 ")),oe(d("input",{id:"basic_limiterDuration",type:"number",min:"1",max:"300",step:"1","onUpdate:modelValue":u[1]||(u[1]=p=>s.value.limiterDuration=p)},null,512),[[Ke,s.value.limiterDuration]]),u[19]||(u[19]=B(" 秒内最多请求 ")),oe(d("input",{id:"basic_limiterQps",type:"number",min:"1",max:"3000",step:"1","onUpdate:modelValue":u[2]||(u[2]=p=>s.value.limiterPoints=p)},null,512),[[Ke,s.value.limiterPoints]]),u[20]||(u[20]=B(" 次 ")),u[21]||(u[21]=d("div",{class:"pure-form-message text-success"},[B(" 默认 1 秒内最多 1 次。"),d("span",{class:"text-warning"},"请填写整数数值。")],-1))]),u[44]||(u[44]=d("legend",null,"UI优化",-1)),d("div",ZA,[u[23]||(u[23]=d("label",{for:"basic_showOfflineEntry"},"显示云下载入口按钮",-1)),oe(d("input",{id:"basic_showOfflineEntry",type:"checkbox","onUpdate:modelValue":u[3]||(u[3]=p=>s.value.showOfflineEntry=p)},null,512),[[De,s.value.showOfflineEntry]]),d("div",eI,[u[22]||(u[22]=B(" 在「网盘」页面顶部工具栏显示「云下载」入口按钮。 按钮文本为 ")),oe(d("input",{"onUpdate:modelValue":u[4]||(u[4]=p=>s.value.offlineEntryLabel=p),class:"input-small",placeholder:"可以为空"},null,512),[[Ke,s.value.offlineEntryLabel]])])]),d("div",tI,[u[25]||(u[25]=d("label",{for:"basic_showAddOffline"},"显示添加云下载按钮",-1)),oe(d("input",{id:"basic_showAddOffline",type:"checkbox","onUpdate:modelValue":u[5]||(u[5]=p=>s.value.showAddOffline2=p)},null,512),[[De,s.value.showAddOffline2]]),d("div",nI,[u[24]||(u[24]=B(" 在「网盘」页面顶部工具栏显示添加云下载按钮。 按钮文本为 ")),oe(d("input",{"onUpdate:modelValue":u[6]||(u[6]=p=>s.value.addOfflineLabel=p),class:"input-small",placeholder:"可以为空"},null,512),[[Ke,s.value.addOfflineLabel]])])]),d("div",sI,[u[26]||(u[26]=d("label",{for:"basic_transferDefaultOffline"},"近期传输默认云下载",-1)),oe(d("input",{id:"basic_transferDefaultOffline",type:"checkbox","onUpdate:modelValue":u[7]||(u[7]=p=>s.value.transferDefaultOffline=p)},null,512),[[De,s.value.transferDefaultOffline]]),u[27]||(u[27]=d("div",{class:"pure-form-message text-success"}," 点击左边栏的「传输」默认进入「云下载」页面。 ",-1))]),d("div",oI,[u[29]||(u[29]=d("label",{for:"basic_showFavEntry"},"显示星标入口按钮",-1)),oe(d("input",{id:"basic_showFavEntry",type:"checkbox","onUpdate:modelValue":u[8]||(u[8]=p=>s.value.showFavEntry=p)},null,512),[[De,s.value.showFavEntry]]),d("div",iI,[u[28]||(u[28]=B(" 在「网盘」页面顶部工具栏显示「星标」入口按钮。 按钮文本为 ")),oe(d("input",{"onUpdate:modelValue":u[9]||(u[9]=p=>s.value.favEntryLabel=p),class:"input-small",placeholder:"可以为空"},null,512),[[Ke,s.value.favEntryLabel]])])]),u[45]||(u[45]=d("legend",null,"配置管理",-1)),d("div",{class:"pure-control-group"},[d("button",{type:"button",class:"pure-button pure-button-primary",onClick:a},"导出配置"),u[30]||(u[30]=B("      ")),d("button",{type:"button",class:"pure-button button-success",onClick:l},"导入配置"),u[31]||(u[31]=d("br",null,null,-1)),u[32]||(u[32]=d("br",null,null,-1)),u[33]||(u[33]=d("div",{class:"text-success"},[d("b",null,"导入说明:"),B(" 如有导入部分配置的需求,可以自行编辑json配置文件,只保留需要的配置key(仅限第一级),但必须保留`_`开头的key。 ")],-1)),u[34]||(u[34]=d("br",null,null,-1))]),u[46]||(u[46]=d("legend",null,"隐私保护",-1)),d("div",rI,[u[35]||(u[35]=d("label",{for:"basic_hideWatermark"},"隐藏水印",-1)),oe(d("input",{id:"basic_hideWatermark",type:"checkbox","onUpdate:modelValue":u[10]||(u[10]=p=>s.value.hideWatermark=p)},null,512),[[De,s.value.hideWatermark]]),u[36]||(u[36]=d("div",{class:"pure-form-message text-success"}," 网页水印是肉眼看不到的,但通过一些处理可以看到,水印内容是你的账号标识。 如果你需要截图并发给别人,可以考虑开启隐藏。 ",-1))]),d("div",aI,[u[37]||(u[37]=d("label",{for:"basic_fakeAccountEnabled"},"隐藏身份",-1)),oe(d("input",{id:"basic_fakeAccountEnabled",type:"checkbox","onUpdate:modelValue":u[11]||(u[11]=p=>s.value.fakeAccountEnabled=p)},null,512),[[De,s.value.fakeAccountEnabled]]),u[38]||(u[38]=d("div",{class:"pure-form-message text-success"}," 修改左下角显示的账号信息,不会真的修改。编辑后即可生效,无需刷新页面。 ",-1))]),d("div",lI,[u[39]||(u[39]=d("label",null,"账号ID",-1)),oe(d("input",{"onUpdate:modelValue":u[12]||(u[12]=p=>s.value.fakeAccountId=p),placeholder:"自定义账号ID",class:"pure-input-2-3"},null,512),[[Ke,s.value.fakeAccountId]])]),d("div",uI,[u[40]||(u[40]=d("label",null,"用户名",-1)),oe(d("input",{"onUpdate:modelValue":u[13]||(u[13]=p=>s.value.fakeAccountName=p),placeholder:"自定义用户名",class:"pure-input-2-3"},null,512),[[Ke,s.value.fakeAccountName]])]),d("div",cI,[u[41]||(u[41]=d("label",null,"头像",-1)),oe(d("input",{"onUpdate:modelValue":u[14]||(u[14]=p=>s.value.fakeAccountAvatar=p),placeholder:"支持网络图片地址或base64编码",class:"pure-input-2-3"},null,512),[[Ke,s.value.fakeAccountAvatar]]),d("span",dI,[s.value.fakeAccountAvatar?(S(),I("img",{key:0,src:s.value.fakeAccountAvatar,alt:"头像预览",width:"20",height:"20"},null,8,fI)):be("",!0)])]),d("div",pI,[u[42]||(u[42]=d("label",null,"VIP等级",-1)),oe(d("input",{"onUpdate:modelValue":u[15]||(u[15]=p=>s.value.fakeAccountVip=p),placeholder:"自定义VIP等级",class:"pure-input-2-3"},null,512),[[Ke,s.value.fakeAccountVip]])])])])]))}}),mI=Ne(hI,[["__file","Config.vue"]]),gI={class:"pure-form pure-form-aligned"},yI=["disabled"],wI={class:"pure-control-group"},bI={class:"pure-control-group"},vI={class:"pure-control-group"},_I={class:"pure-control-group"},xI=["value"],CI={style:{width:"auto"}},kI={class:"text-success text-ul"},SI=Te({__name:"ConfigItem",props:{config:{},deletable:{type:Boolean}},emits:["change","delete","activate"],setup(e,{emit:t}){const n=e,s=t,i={content:"如果是macOS版,建议平台选「macos」,可以避免播放链接可能无效的问题,「版本小于 0.8.16」选项同理。"};Tt(async()=>{});async function o(){n.config.active=!0,s("activate",n.config);}async function r(){s("delete");}return Xe(n.config,bt(async a=>{s("change",a);},500),{deep:!0}),(a,l)=>{const c=h0("tooltip");return S(),I("div",{class:Fe(["ce-clouddrive-config-item",{active:a.config.active}])},[d("form",gI,[d("fieldset",null,[d("legend",null,[d("button",{type:"button",class:Fe(["pure-button button-small",[a.config.active?"button-success":"pure-button-primary"]]),onClick:o,disabled:a.config.active},K(a.config.active?"当前使用该配置":"使用该配置"),11,yI),a.deletable?(S(),I("button",{key:0,type:"button",class:"pure-button button-error button-small",onClick:r}," 删除 ")):be("",!0)]),d("div",wI,[l[5]||(l[5]=d("label",null,[d("span",{class:"text-danger"},"*"),B(" 地址")],-1)),oe(d("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>a.config.url=u),placeholder:"CloudDrive服务地址,如「http://localhost:19798」",class:"pure-input-2-3"},null,512),[[Ke,a.config.url]])]),d("div",bI,[l[6]||(l[6]=d("label",null,[d("span",{class:"text-danger"},"*"),B(" 资源根路径")],-1)),oe(d("input",{"onUpdate:modelValue":l[1]||(l[1]=u=>a.config.root=u),placeholder:"即当前115账号在CloudDrive中的资源名称,如「115」",class:"pure-input-2-3"},null,512),[[Ke,a.config.root]])]),d("div",vI,[l[7]||(l[7]=d("label",null,"备注",-1)),oe(d("input",{"onUpdate:modelValue":l[2]||(l[2]=u=>a.config.memo=u),placeholder:"备注信息",class:"pure-input-2-3"},null,512),[[Ke,a.config.memo]])]),d("div",_I,[l[10]||(l[10]=d("label",null,"平台",-1)),oe(d("select",{"onUpdate:modelValue":l[3]||(l[3]=u=>a.config.platform=u)},[(S(!0),I(Le,null,Je(re(eu),u=>(S(),I("option",{key:u,value:u},K(u),9,xI))),128))],512),[[Pn,a.config.platform]]),l[11]||(l[11]=B("   ")),d("label",CI,[oe(d("input",{type:"checkbox","onUpdate:modelValue":l[4]||(l[4]=u=>a.config.ver_lt_0816=u)},null,512),[[De,a.config.ver_lt_0816]]),l[8]||(l[8]=B(" 版本小于 0.8.16 "))]),l[12]||(l[12]=B("   ")),oe((S(),I("span",kI,l[9]||(l[9]=[B("说明")]))),[[c,i]])])])])],2)}}}),$I=Ne(SI,[["__file","ConfigItem.vue"]]),EI={class:"ce-config ce-clouddrive-config"},PI={class:"ce-list"},AI={class:"ce-actions"},II=["disabled"],TI=Te({__name:"Config",async setup(e){let t,n;const s=ne(([t,n]=jt(()=>Ff()),t=await t,n(),t));Tt(async()=>{});async function i(){await Ic(s.value),ae({icon:"success",title:"设置已保存。",timer:800,position:"top-end"});}async function o(){s.value.push(tu());}async function r(l,c){const{isConfirmed:u}=await ue.fire({icon:"warning",html:`确定要删除第 ${c+1} 个配置「${l.url}」吗?`});u&&(s.value.splice(c,1),await i(),ae({icon:"success",title:`「${l.url}」已删除!`}));}async function a(l,c){l.forEach((u,p)=>{u.active=p===c;}),await Ic(l),ae({icon:"success",title:"设置已保存。",timer:800,position:"top-end"});}return (l,c)=>(S(),I("div",EI,[c[1]||(c[1]=d("div",{class:"ce-tips cd-tips"},[d("p",null,[d("a",{href:"https://www.clouddrive2.com/?ref=cloud115-enhancer",rel:"noreferer",target:"_blank",class:"text-bold text-primary"},"CloudDrive"),B(" 是一个强大的多云盘管理工具,为用户提供包含云盘本地挂载的一站式的多云盘解决方案。 ")]),d("p",null,"本脚本主要是借助CloudDrive实现原码视频播放的功能(具体可以在「播放菜单」面板中查看)。")],-1)),d("div",PI,[(S(!0),I(Le,null,Je(s.value,(u,p)=>(S(),st($I,{key:p,config:u,index:p,deletable:s.value.length>1,onDelete:m=>r(u,p),onActivate:m=>a(s.value,p)},null,8,["config","index","deletable","onDelete","onActivate"]))),128))]),c[2]||(c[2]=d("div",{class:"ce-tips"},[d("p",{class:"text-primary"},' 暂时发现IINA是支持`file://`协议的,这时候播放器可以读取到同目录的字幕文件。 配置地址示例: file:///Users/you/115,"资源根路径"留空即可。 ')],-1)),c[3]||(c[3]=d("div",{class:"ce-tips"}," 编辑配置后,请记得点击「保存全部配置」。 ",-1)),d("div",AI,[d("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!s.value.length}," 保存全部配置 ",8,II),c[0]||(c[0]=B("      ")),d("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:o}," + 添加配置 ")])]))}}),OI=Ne(TI,[["__file","Config.vue"]]),DI={class:"ce-config ce-list-config"},MI={class:"pure-form pure-form-aligned"},LI={class:"pure-control-group"},BI={class:"pure-control-group"},RI={class:"pure-control-group"},NI={class:"pure-control-group"},FI={class:"pure-control-group"},UI={class:"pure-control-group"},jI={class:"pure-control-group"},HI={class:"pure-control-group"},VI={class:"pure-control-group"},zI={class:"pure-control-group"},qI={class:"pure-control-group"},WI={class:"pure-control-group"},KI={class:"pure-control-group"},GI={class:"pure-control-group"},JI={class:"pure-control-group"},YI={class:"pure-control-group"},QI={class:"pure-control-group"},gf="按下 Command/Ctrl 键点击文件sha1时触发查找重复文件",XI=Te({__name:"Config",async setup(e){let t,n;const s=ne(([t,n]=jt(()=>da()),t=await t,n(),t));return Tt(async()=>{}),Xe(s,bt(async i=>{await Yx(i),ae({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:gt.listConfigChange,body:JSON.parse(JSON.stringify(i))});},500),{deep:!0}),(i,o)=>(S(),I("div",DI,[d("form",MI,[d("fieldset",null,[o[26]||(o[26]=d("legend",null,"文件大小相关",-1)),d("div",LI,[o[20]||(o[20]=d("label",{for:"sizeSorter"},"大小排序",-1)),oe(d("input",{id:"sizeSorter",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=r=>s.value.sizeSorter=r)},null,512),[[De,s.value.sizeSorter]]),o[21]||(o[21]=d("div",{class:"pure-form-message text-success"},[d("div",null,"在官方的「大小」列头部增加「排序」按钮,可以获取文件夹的大小,然后进行排序。"),d("div",null,"请注意该功能只会对当前加载的文件进行排序,如果有多页文件并需要对全部文件进行排序,请先点击「加载全部」后再使用该排序功能。")],-1))]),d("div",BI,[o[22]||(o[22]=d("label",{for:"showBatchFolderSizeButton"},"批量获取文件夹大小",-1)),oe(d("input",{id:"showBatchFolderSizeButton",type:"checkbox","onUpdate:modelValue":o[1]||(o[1]=r=>s.value.showBatchFolderSizeButton=r)},null,512),[[De,s.value.showBatchFolderSizeButton]]),o[23]||(o[23]=d("div",{class:"pure-form-message text-success"},[d("div",null,"在官方的「大小」列头部增加「大小」按钮,可以获取文件夹的大小。"),d("div",null,"请注意该功能只会对当前加载的文件夹进行获取,如果有多页,请先点击「加载全部」后再使用该功能。")],-1))]),d("div",RI,[o[24]||(o[24]=d("label",{for:"showFolderSizeButton"},"显示文件夹获取大小按钮",-1)),oe(d("input",{id:"showFolderSizeButton",type:"checkbox","onUpdate:modelValue":o[2]||(o[2]=r=>s.value.showFolderSizeButton=r)},null,512),[[De,s.value.showFolderSizeButton]]),o[25]||(o[25]=d("div",{class:"pure-form-message text-success"}," 点击按钮可以获取单个文件夹的大小。 ",-1))])]),d("fieldset",null,[o[33]||(o[33]=d("legend",null,"列表显示与操作",-1)),d("div",NI,[o[27]||(o[27]=d("label",{for:"showSha1"},"显示文件SHA1",-1)),oe(d("input",{id:"showSha1",type:"checkbox","onUpdate:modelValue":o[3]||(o[3]=r=>s.value.showSha1=r)},null,512),[[De,s.value.showSha1]]),o[28]||(o[28]=B("    ")),d("small",{onClick:o[4]||(o[4]=r=>s.value.clickSha1WithCtrlToFindRepeat=!s.value.clickSha1WithCtrlToFindRepeat),class:Fe(["ce-label",{"ce-label-success":s.value.clickSha1WithCtrlToFindRepeat}])},K(s.value.clickSha1WithCtrlToFindRepeat?`✓ ${gf}(已启用)`:`× ${gf}(未启用)`),3),o[29]||(o[29]=d("div",{class:"pure-form-message text-success"}," 在文件名下方显示文件SHA1,点击可以复制。 ",-1))]),d("div",FI,[o[30]||(o[30]=d("label",{for:"followHistoryState"}," 文件列表跟随页面前进后退 ",-1)),oe(d("input",{id:"followHistoryState",type:"checkbox","onUpdate:modelValue":o[5]||(o[5]=r=>s.value.followHistoryState=r)},null,512),[[De,s.value.followHistoryState]]),o[31]||(o[31]=d("div",{class:"pure-form-message text-success"},[d("div",{class:"text-success"}," 默认情况下,点击浏览器的前进或后退,页面链接中的目录ID虽然会发生变化,但文件列表并没有随之更新。 这个功能尝试解决这个问题。 ")],-1))]),d("div",UI,[o[32]||(o[32]=d("label",{for:"showOnlyFileFilter"}," 显示「仅文件」筛选 ",-1)),oe(d("input",{id:"showOnlyFileFilter",type:"checkbox","onUpdate:modelValue":o[6]||(o[6]=r=>s.value.showOnlyFileFilter=r)},null,512),[[De,s.value.showOnlyFileFilter]])])]),d("fieldset",null,[o[42]||(o[42]=d("legend",null,"目录操作增强",-1)),d("div",jI,[o[34]||(o[34]=d("label",{for:"showOpenDirContextMenu"},'显示"目录功能菜单"按钮',-1)),oe(d("input",{id:"showOpenDirContextMenu",type:"checkbox","onUpdate:modelValue":o[7]||(o[7]=r=>s.value.showOpenDirContextMenu=r)},null,512),[[De,s.value.showOpenDirContextMenu]]),o[35]||(o[35]=B("    ")),d("small",{onClick:o[8]||(o[8]=r=>s.value.hoverShowDirContextMenu=!s.value.hoverShowDirContextMenu),class:Fe(["ce-label",{"ce-label-success":s.value.hoverShowDirContextMenu}]),title:"鼠标悬浮在按钮代替点击操作"},K(s.value.hoverShowDirContextMenu?"✓ 鼠标悬浮触发(已启用)":"× 鼠标悬浮触发(未启用)"),3),o[36]||(o[36]=d("div",{class:"pure-form-message text-success"},[d("div",null,"在官方的「文件名」列头部增加「目录功能菜单」按钮,点击即可打开当前目录的右键菜单。")],-1))]),d("div",HI,[o[37]||(o[37]=d("label",{for:"showCreateDirButton"},'显示"新建文件夹"按钮',-1)),oe(d("input",{id:"showCreateDirButton",type:"checkbox","onUpdate:modelValue":o[9]||(o[9]=r=>s.value.showCreateDirButton=r)},null,512),[[De,s.value.showCreateDirButton]]),o[38]||(o[38]=B("    ")),d("small",{onClick:o[10]||(o[10]=r=>s.value.hideTopCreateButton=!s.value.hideTopCreateButton),class:Fe(["ce-label",{"ce-label-success":s.value.hideTopCreateButton}]),title:"隐藏顶部「新建」按钮"},K(s.value.hideTopCreateButton?"✓ 隐藏顶部「新建」按钮(已启用)":"× 隐藏顶部「新建」按钮(未启用)"),3),o[39]||(o[39]=d("div",{class:"pure-form-message text-success"},[d("div",null,"在官方的「文件名」列头部增加「新建文件夹」按钮。可以隐藏顶部「新建」按钮,页面左侧的「新建」中也有新建文档按钮。")],-1))]),d("div",VI,[o[40]||(o[40]=d("label",{for:"claimSelectedAfterCreateDir"}," 移动选中文件到新文件夹 ",-1)),oe(d("input",{id:"claimSelectedAfterCreateDir",type:"checkbox","onUpdate:modelValue":o[11]||(o[11]=r=>s.value.claimSelectedAfterCreateDir=r)},null,512),[[De,s.value.claimSelectedAfterCreateDir]]),o[41]||(o[41]=d("div",{class:"pure-form-message text-success text-linethrough"},[d("b",null,"启用后如果先选中文件,然后创建新文件夹,将会自动把选中文件移动到新文件夹。"),B(" 该选项可以在创建文件夹对话框里临时修改。 ")],-1))])]),d("fieldset",null,[o[47]||(o[47]=d("legend",null,"路径栏增强",-1)),d("div",zI,[o[43]||(o[43]=d("label",{for:"showCopyButtonOnPathBar"},"在路径栏显示复制按钮",-1)),oe(d("input",{id:"showCopyButtonOnPathBar",type:"checkbox","onUpdate:modelValue":o[12]||(o[12]=r=>s.value.showCopyButtonOnPathBar=r)},null,512),[[De,s.value.showCopyButtonOnPathBar]]),o[44]||(o[44]=d("div",{class:"pure-form-message text-success"}," 点击后,复制当前路径到剪贴板。 ",-1))]),d("div",qI,[o[45]||(o[45]=d("label",{for:"showGotoButtonOnPathBar"},[B(" 在路径栏显示前往按钮 "),d("small",{class:"ce-label"},"DEV")],-1)),oe(d("input",{id:"showGotoButtonOnPathBar",type:"checkbox","onUpdate:modelValue":o[13]||(o[13]=r=>s.value.showGotoButtonOnPathBar=r)},null,512),[[De,s.value.showGotoButtonOnPathBar]]),o[46]||(o[46]=d("div",{class:"pure-form-message text-success"}," 点击后,路径栏下方会显示路径输入框,输入路径后按回车即可前往该路径。 ",-1))])]),d("fieldset",null,[o[52]||(o[52]=d("legend",null,"刷新行为",-1)),d("div",WI,[o[48]||(o[48]=d("label",{for:"noUpdateDirAfterRename"}," 重命名后不刷新文件列表 ",-1)),oe(d("input",{id:"noUpdateDirAfterRename",type:"checkbox","onUpdate:modelValue":o[14]||(o[14]=r=>s.value.noUpdateDirAfterRename=r)},null,512),[[De,s.value.noUpdateDirAfterRename]]),o[49]||(o[49]=d("div",{class:"pure-form-message text-success"}," 仅支持单个文件或目录的重命名。在使用当前目录增强菜单项「重命名文件夹」时会忽略该选项。 ",-1))]),d("div",KI,[o[50]||(o[50]=d("label",{for:"noReloadAfterMove"}," 移动后不刷新文件列表 ",-1)),oe(d("input",{id:"noReloadAfterMove",type:"checkbox","onUpdate:modelValue":o[15]||(o[15]=r=>s.value.noReloadAfterMove=r)},null,512),[[De,s.value.noReloadAfterMove]]),o[51]||(o[51]=d("div",{class:"pure-form-message text-success text-linethrough"},[d("b",null,"启用后如果进行了移动操作,列表的全选会受影响,如已选数量不准确。"),d("br"),d("b",{class:"text-danger"},"该功能主要目的是持续高效地在进行移动操作,如果在移动后还需要其他操作,请记得手动刷新列表!")],-1))])]),d("fieldset",null,[o[59]||(o[59]=d("legend",null,"拖拽行为",-1)),d("div",GI,[o[53]||(o[53]=d("label",{for:"dragToQuickEntry"}," 支持拖动文件到快捷入口 ",-1)),oe(d("input",{id:"dragToQuickEntry",type:"checkbox","onUpdate:modelValue":o[16]||(o[16]=r=>s.value.dragToQuickEntry=r)},null,512),[[De,s.value.dragToQuickEntry]]),o[54]||(o[54]=d("div",{class:"pure-form-message text-success"},[B(" 可以从文件列表拖动文件到快捷入口,实现移动操作。 "),d("b",{class:"text-danger"},"选中文件时,顶部菜单可能会遮挡快捷入口,可按`Ctrl`键临时隐藏顶部菜单,或者开启「拖动文件时隐藏顶部菜单」选项。")],-1))]),d("div",JI,[o[55]||(o[55]=d("label",{for:"hideSelectionMenuOnDrag"},[B(" 拖动文件时隐藏顶部菜单 "),d("small",{class:"ce-label ce-label-warning"},"BETA")],-1)),oe(d("input",{id:"hideSelectionMenuOnDrag",type:"checkbox","onUpdate:modelValue":o[17]||(o[17]=r=>s.value.hideSelectionMenuOnDrag=r)},null,512),[[De,s.value.hideSelectionMenuOnDrag]]),o[56]||(o[56]=B("     ")),o[57]||(o[57]=d("span",{class:"text-warning"},"该功能可能会影响页面性能,如发现该情况请先关闭并反馈🤝",-1)),o[58]||(o[58]=d("div",{class:"pure-form-message text-success"}," 选中文件时,顶部菜单可能会遮挡快捷入口等元素,开启此选项后,在拖动文件时会自动隐藏顶部菜单。 ",-1))])]),d("fieldset",null,[o[64]||(o[64]=d("legend",null,"其他功能",-1)),d("div",YI,[o[61]||(o[61]=d("label",{for:"fileSelectorDefaultView"},"文件选择器默认视图",-1)),oe(d("select",{id:"fileSelectorDefaultView","onUpdate:modelValue":o[18]||(o[18]=r=>s.value.fileSelectorDefaultView=r)},o[60]||(o[60]=[d("option",{value:"view"},"大图标",-1),d("option",{value:"list"},"列表",-1),d("option",{value:"_"},"系统默认",-1)]),512),[[Pn,s.value.fileSelectorDefaultView]]),o[62]||(o[62]=d("div",{class:"pure-form-message text-success"},[B(" 设置打开页面后初次使用的视图。 "),d("span",{class:"text-warning"},"如果在刷新页面前在选择器切换到了其他视图,该选项将不会生效,但刷新页面后会恢复。")],-1))]),d("div",QI,[o[63]||(o[63]=d("label",{for:"makeMoreImageViewable"}," 支持webp图片预览 ",-1)),oe(d("input",{id:"makeMoreImageViewable",type:"checkbox","onUpdate:modelValue":o[19]||(o[19]=r=>s.value.makeMoreImageViewable=r)},null,512),[[De,s.value.makeMoreImageViewable]])])])])]))}}),ZI=Ne(XI,[["__file","Config.vue"]]),eg=mt.search;function eT(e){return {showSelectTargetButtonOnPathBar:!0,showSelectAllDir:!1,resultWidth:"",...e}}async function tg(){const e=eT(),t=await et.get(eg,e);return {...e,...t}}async function tT(e){await et.set(eg,e);}const nT={class:"ce-config ce-search-config"},sT={class:"pure-form pure-form-aligned"},oT={class:"pure-control-group"},iT={class:"pure-control-group"},rT={class:"pure-control-group"},aT=Te({__name:"Config",async setup(e){let t,n;const s=ne(([t,n]=jt(()=>tg()),t=await t,n(),t));return Tt(async()=>{}),Xe(s,bt(async i=>{await tT(i),ae({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:gt.searchConfigChange,body:JSON.parse(JSON.stringify(i))});},500),{deep:!0}),(i,o)=>(S(),I("div",nT,[d("form",sT,[d("fieldset",null,[d("div",oT,[o[3]||(o[3]=d("label",{for:"showSelectTargetButtonOnPathBar"},'显示"选择目录"按钮',-1)),oe(d("input",{id:"showSelectTargetButtonOnPathBar",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=r=>s.value.showSelectTargetButtonOnPathBar=r)},null,512),[[De,s.value.showSelectTargetButtonOnPathBar]]),o[4]||(o[4]=d("div",{class:"pure-form-message text-success"},' 在路径栏显示"选择目录"按钮。即可以在搜索结果页直接选择其他目录进行搜索,而不必返回列表页进入目录后再搜索。 ',-1))]),d("div",iT,[o[5]||(o[5]=d("label",{for:"showSelectAllDir"},'显示"选中全部文件夹"按钮',-1)),oe(d("input",{id:"showSelectAllDir",type:"checkbox","onUpdate:modelValue":o[1]||(o[1]=r=>s.value.showSelectAllDir=r)},null,512),[[De,s.value.showSelectAllDir]]),o[6]||(o[6]=d("div",{class:"pure-form-message text-success"},' 在搜索结果文件列表顶部显示"选中全部文件夹"按钮。 ',-1))]),d("div",rT,[o[7]||(o[7]=d("label",{for:"resultWidth"},"搜索结果宽度",-1)),oe(d("input",{id:"resultWidth",class:"input-small","onUpdate:modelValue":o[2]||(o[2]=r=>s.value.resultWidth=r)},null,512),[[Ke,s.value.resultWidth]]),o[8]||(o[8]=d("div",{class:"pure-form-message text-success"},[B(" 默认为空。支持 1000px、100%、90vw 等有效的 "),d("a",{href:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/width",target:"_blank",rel:"noreferrer noopener"},"css width数值 🔗"),B("。 ")],-1))])])])]))}}),lT=Ne(aT,[["__file","Config.vue"]]);function ba(e,t,n=""){let s="";if(e.status===405&&(s=`[${t}][${n}] - 检测到 405 错误,一般是因为被服务器风控,请等待30分钟后再尝试。`),e.status>=400&&e.status<500&&(s=`[${t}][${n}] - 检测到 ${e.status} 错误,请检查请求参数是否正确。`),e.status>=500&&e.status<600&&(s=`[${t}][${n}] - 检测到 ${e.status} 错误,服务器内部错误,请稍后再试。`),s)throw console.error(`[${t}] ${e.status}!`,e),new Error(s)}async function uT(e){const t=`https://qrcodeapi.115.com/api/1.0/${e}/1.0/token/`,n=await fetch(t);return ba(n,"getQrcodeToken","获取二维码登录token失败"),n.json()}const cT={0:"等待扫码",1:"已扫码",2:"登录成功",[-1]:"已失效",[-2]:"已取消"};let Ul=new AbortController;async function dT(e){Ul.abort(e);}async function fT(e){const t=new URLSearchParams;t.append("uid",e.uid),t.append("time",e.time.toString()),t.append("sign",e.sign);const n="https://qrcodeapi.115.com/get/status/?"+t.toString();Ul=new AbortController;const s=await fetch(n,{signal:Ul.signal});return ba(s,"getQrcodeStatus","获取扫码状态失败"),s.json()}function pT(e){return {domain:"",hostOnly:!1,httpOnly:!0,name:"",path:"",sameSite:"",secure:!1,session:!1,storeId:"0",value:"",id:0,...e}}async function hT(e){let t=`UID=${e.UID}; CID=${e.CID}; SEID=${e.SEID}`;return e.KID&&(t+=`; KID=${e.KID}`),t}async function mT(e,t=[]){const n=[],s=Object.keys(e);let i=["115.com",...t];i=[...new Set(i)];const o={hostOnly:!1,httpOnly:!0,path:"/",sameSite:"unspecified",secure:!1,session:!1,storeId:"0"};let r=1;for(let a=0;a(e.web="web",e.android="android",e._115android="115android",e.ios="ios",e._115ipad="115ipad",e.tv="tv",e.alipaymini="alipaymini",e.wechatmini="wechatmini",e.qandroid="qandroid",e._115ios="115ios",e.harmony="harmony",e.ipad="ipad",e.qios="qios",e.qipad="qipad",e.linux="linux",e.mac="mac",e.windows="windows",e))(Qu||{});const bT={web:"网页版",android:"115生活(Android端)","115android":"115(Android端)",ios:"115生活(iOS端)","115ipad":"115(iPad端)",tv:"115网盘(Android电视端)",alipaymini:"115生活(支付宝小程序)",wechatmini:"115生活(微信小程序)",qandroid:"115管理(Android端)","115ios":"115(iOS端)",harmony:"115(Harmony端) - 不能上传下载"};async function vT(e,t){return new Promise((n,s)=>{const i=new FileReader;i.onloadend=()=>{if(typeof i.result=="string"){if(t instanceof HTMLImageElement)t.src=i.result;else {const o=document.createElement("img");o.src=i.result,t.appendChild(o);}n();}else console.error("[renderQrcode]","reader.result is not string!"),s("reader.result is not string!");},i.onerror=o=>{console.error("[renderQrcode]",o),s(o);},i.readAsDataURL(e);})}async function _T(e){document.addEventListener("qrcodeStatusChange",t=>{const n=t.detail;e(n);});}async function xT(e){const t=new CustomEvent("qrcodeStatusChange",{detail:e});document.dispatchEvent(t);}async function CT(e,t,n=6e4){return new Promise(async(s,i)=>{console.log("[qrcodeLogin]",e,t,n);const o=await uT(e),r=await wT(e,o.data.uid);await vT(r,t);let a=!0,l=setTimeout(()=>{a=!1,i("[qrcode login] timeout!");},n),c="";for(;a;)try{const p=(await fT(o.data)).data.status;if(xT(p),p===0)console.log(`[qrcode login] status=${p} - waiting.`);else if(p===1)console.log(`[qrcode login] status=${p} - scanned.`);else if(p===2){console.log(`[qrcode login] status=${p} - signed.`);break}else if(p===-1){clearTimeout(l),c=`[qrcode login] status=${p} - expired.`;break}else if(p===-2){clearTimeout(l),c=`[qrcode login] status=${p} - canceled.`;break}}catch(u){console.error("[qrcode login]",u),c=u;break}clearTimeout(l),c?i(c):s(yT(o.data.uid,e));})}const ng=mt.tools;function kT(e){return {scanApp:Qu.alipaymini,...e}}async function ST(){const e=kT(),t=await et.get(ng,e);return {...e,...t}}async function $T(e){await et.set(ng,e);}const ET={class:"ce-tools-item"},PT={class:"pure-form pure-form-aligned"},AT={class:"pure-control-group"},IT=["disabled"],TT=["value"],OT=["disabled"],DT={key:0,class:"text-warning text-bold"},MT={key:1},LT={class:"pure-control-group"},BT=6e4,RT=Te({__name:"GetCookie",props:{app:{}},emits:["app-change"],setup(e,{emit:t}){const n=e,s=t,i=ne(n.app),o=ne(!1),r=ne(!1),a=ne(!1),l=ne(),c=ne(),u=ot(()=>c.value?cT[c.value]:""),p=ot(()=>{const j=[Qu.harmony],T={};for(const[M,U]of Object.entries(bT))j.includes(M)||(T[M]=U);return T});Xe(i,j=>{s("app-change",j),v();}),Tt(async()=>{}),Yt(async()=>{await _T(_);});async function m(){await v();try{const j=document.querySelector("#ceGetCookieQrcode"),T=await CT(i.value,j,BT);let M="";if(T.data?l.value=T.data:M=gT(T)||"未知错误",M)throw new Error(M)}catch(j){if(console.error(j),j.name==="AbortError")return;ue.fire({icon:"error",title:"扫码失败",text:typeof j=="string"?j:j.toString()});}finally{o.value=!1,r.value=!1,c.value=void 0;}}async function v(){l.value=void 0,r.value=!1,a.value=!1,o.value=!1,c.value=void 0,await L();}async function w(){r.value=!0;}async function _(j){console.log("[handleStatusChange]",j),c.value=j;}async function R(j){var U;const T=(U=l.value)==null?void 0:U.cookie;if(!T)return;let M="";if(j==="text")M=await hT(T);else if(j==="json"){const z=await mT(T);M=JSON.stringify(z,null,2);}yt(M),Qo.fire({icon:"success",title:"已复制到剪贴板",timer:1500});}async function L(){await dT();}return (j,T)=>(S(),I("div",ET,[d("form",PT,[d("fieldset",null,[T[7]||(T[7]=d("legend",null,"扫码获取Cookie",-1)),d("div",AT,[oe(d("select",{"onUpdate:modelValue":T[0]||(T[0]=M=>i.value=M),disabled:o.value},[(S(!0),I(Le,null,Je(p.value,(M,U)=>(S(),I("option",{value:U,key:U},K(M),9,TT))),128))],8,IT),[[Pn,i.value]]),T[5]||(T[5]=B("    ")),d("button",{type:"button",class:"pure-button pure-button-primary",onClick:m,disabled:o.value}," 开始 ",8,OT),T[6]||(T[6]=B("    ")),u.value?(S(),I("span",DT,K(u.value),1)):be("",!0),l.value?(S(),I("span",MT,[T[3]||(T[3]=B("      ")),d("button",{type:"button",class:"pure-button button-success",onClick:T[1]||(T[1]=M=>R("text"))}," 复制文本格式Cookie "),T[4]||(T[4]=B("    ")),d("button",{type:"button",class:"pure-button button-success",onClick:T[2]||(T[2]=M=>R("json"))}," 复制JSON格式Cookie ")])):be("",!0)]),T[8]||(T[8]=d("div",{class:"text-danger"},"扫码登录后,所选设备之前的登录将会失效,所以请尽量选不常用的。",-1)),T[9]||(T[9]=d("div",{class:"text-primary"},"请注意,扫码得到的Cookie会跟随发起扫码的设备,如果发起扫码的设备退出登录,扫码得到的Cookie也会随之失效。",-1)),T[10]||(T[10]=d("div",{class:"text-success"},"如要避免上述问题,可以考虑使用手机验证码登录小程序并获取其Cookie。",-1)),oe(d("div",LT,[d("img",{id:"ceGetCookieQrcode",alt:"qrcode",onLoad:w},null,32)],512),[[Wt,r.value]])])])]))}}),NT=Ne(RT,[["__file","GetCookie.vue"]]),FT={class:"ce-tools-item"},UT={class:"pure-form pure-form-aligned"},jT={class:"pure-control-group"},HT={class:"pure-control-group"},VT={class:"pure-control-group"},zT={class:"pure-control-group"},qT=Te({__name:"Cleaner",async setup(e){let t,n;const s=ne(([t,n]=jt(()=>ma()),t=await t,n(),t)),i=ne(([t,n]=jt(()=>vm()),t=await t,n(),t));Xe(s,bt(async a=>{await cm({showEntryOnPathBar:a.showEntryOnPathBar}),ae({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。"});},500),{deep:!0}),Xe(i,bt(async a=>{await qE(a),ae({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。"});},500),{deep:!0});async function o(a,l){a&&(await r(),await nn(1e3)),window.postMessage({event:gt.closeConfig}),postMessage({type:l==="FileCleaner"?Kt.OPEN_CLEANER:Kt.OPEN_EMPTY_CLEANER});}async function r(){return new Promise(async(a,l)=>{unsafeWindow.parent.Core.FileSelectDG.Open((c,u)=>{console.log("[Core.FileSelectDG.Open]",c,u);const p=c[c.length-1],m=unsafeWindow.parent.wangpan;try{m.Main.GotoDir(1,p.cid,0,""),a();}catch(v){ue.fire({icon:"error",title:"打开文件夹失败",text:`请在文件列表页面中打开!不要在离线任务之类的页面打开。异常: ${v.toString()}`});}},{select:1,nf:1,show_record:0,show_copy:1,btn_txt:"打开清理工具",select_txt:"清理"});})}return (a,l)=>(S(),I("div",FT,[d("form",UT,[d("fieldset",null,[l[14]||(l[14]=d("legend",null,"文件清理",-1)),d("div",jT,[l[7]||(l[7]=d("label",{for:"cleanerConfig_showEntryOnPathBar"},'在路径栏显示"清理文件"入口按钮',-1)),oe(d("input",{id:"cleanerConfig_showEntryOnPathBar",type:"checkbox","onUpdate:modelValue":l[0]||(l[0]=c=>s.value.showEntryOnPathBar=c)},null,512),[[De,s.value.showEntryOnPathBar]])]),d("div",HT,[l[8]||(l[8]=d("div",{class:"ce-tips"},"根据后缀、大小和名称等条件进行文件清理。请在「网盘」页中点击以下按钮。",-1)),d("button",{type:"button",class:"pure-button button-success",onClick:l[1]||(l[1]=c=>o(!1,"FileCleaner"))}," 清理当前文件夹 "),l[9]||(l[9]=B("      ")),d("button",{type:"button",class:"pure-button button-success",onClick:l[2]||(l[2]=c=>o(!0,"FileCleaner"))}," 清理指定文件夹 ")]),l[15]||(l[15]=d("br",null,null,-1)),d("div",VT,[l[10]||(l[10]=d("label",{for:"emptyCleanConfig_emptyCleanConfig"},'在路径栏显示"空文件夹"入口按钮',-1)),oe(d("input",{id:"emptyCleanConfig_emptyCleanConfig",type:"checkbox","onUpdate:modelValue":l[3]||(l[3]=c=>i.value.showEntryOnPathBar=c)},null,512),[[De,i.value.showEntryOnPathBar]])]),d("div",zT,[l[11]||(l[11]=d("div",{class:"ce-tips"},"尽快找到空文件夹进行清理。请在「网盘」页中点击以下按钮。",-1)),d("button",{type:"button",class:"pure-button button-warning",onClick:l[4]||(l[4]=c=>o(!1,"EmptyCleaner"))}," 清理当前文件夹下的空文件夹 "),l[12]||(l[12]=B("      ")),d("button",{type:"button",class:"pure-button button-warning",onClick:l[5]||(l[5]=c=>o(!0,"EmptyCleaner"))}," 清理指定文件夹下的空文件夹 "),l[13]||(l[13]=B("      ")),d("button",{type:"button",class:"pure-button btn-global-clear",onClick:l[6]||(l[6]=(...c)=>re(Mr)&&re(Mr)(...c)),title:"不用怕误点击,点开后还需要确认呢"}," 一键全局清理空文件夹 ")])])])]))}}),WT=Ne(qT,[["__file","Cleaner.vue"]]),KT={class:"ce-config ce-tools-config"},GT={class:"item"},JT=Te({__name:"Config",async setup(e){let t,n;const s=ne(([t,n]=jt(()=>ST()),t=await t,n(),t));Tt(async()=>{}),Xe(s,bt(async o=>{await $T(o),window.postMessage({event:gt.toolsConfigChange,body:JSON.parse(JSON.stringify(o))});},100),{deep:!0});async function i(o){s.value.scanApp=o;}return (o,r)=>(S(),I("div",KT,[d("div",GT,[ge(NT,{app:s.value.scanApp,onAppChange:i},null,8,["app"]),ge(WT)])]))}}),YT=Ne(JT,[["__file","Config.vue"]]),QT={class:"menu-config-block menu-basic-config"},XT={class:"pure-form pure-form-stacked"},ZT={class:"pure-control-group"},e5={class:"pure-control-group"},t5={class:"pure-control-group"},n5={class:"pure-control-group"},s5={class:"pure-control-group"},o5=["value"],i5={class:"pure-control-group"},r5=Te({__name:"BasicConfig",props:{config:{}},setup(e){const t=e;async function n(i){const r={keyToTriggerManual:"在按下该按键时点击菜单项(搜索/播放),会触发手动输入模式,此时会打开一个输入框,修改文本后,点击「确定」或按下Ctrl+Enter,即可继续完成菜单项的操作。",m3u8TempDir:"「M3U8临时目录」用于临时存放生成的m3u8文件。在选中多个视频文件后,在顶部菜单栏会有一个「播放」菜单项,点击后会生成对应的m3u8文件,然后调用播放器播放这个m3u8以实现播放多个视频的效果。"}[i];r&&ue.fire({html:r,customClass:"ce-swal-text-left"});}function s(i){console.log("[onSelectM3U8Dir]",i),t.config.m3u8TempDir=i.items[i.items.length-1].path.slice(1).map(o=>o.name).join("/");}return (i,o)=>(S(),I("div",QT,[d("form",XT,[d("fieldset",null,[o[15]||(o[15]=d("legend",null,"全局设置",-1)),d("div",ZT,[o[8]||(o[8]=d("label",{for:"basic_enabled"},"启用",-1)),oe(d("input",{id:"basic_enabled",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=r=>t.config.enabled=r)},null,512),[[De,t.config.enabled]])]),d("div",e5,[o[9]||(o[9]=d("label",{for:"basic_hideSelectionMenuLabel"},"隐藏顶部菜单文本",-1)),oe(d("input",{id:"basic_hideSelectionMenuLabel",type:"checkbox","onUpdate:modelValue":o[1]||(o[1]=r=>t.config.hideSelectionMenuLabel=r)},null,512),[[De,t.config.hideSelectionMenuLabel]])]),d("div",t5,[o[10]||(o[10]=d("label",{for:"basic_enableInSearch"},"在搜索结果页中启用",-1)),oe(d("input",{id:"basic_enableInSearch",type:"checkbox","onUpdate:modelValue":o[2]||(o[2]=r=>t.config.enableInSearch=r)},null,512),[[De,t.config.enableInSearch]])]),d("div",n5,[o[11]||(o[11]=d("label",{for:"basic_manageOfficialMenus"},"控制官方菜单",-1)),oe(d("input",{id:"basic_manageOfficialMenus",type:"checkbox","onUpdate:modelValue":o[3]||(o[3]=r=>t.config.manageOfficialMenus=r)},null,512),[[De,t.config.manageOfficialMenus]])]),d("div",s5,[o[12]||(o[12]=d("label",{for:"basic_forceManualBeforeOpenOnKey"},"强制使用手动输入模式的辅助键",-1)),d("span",{class:"ce-label ce-label-success ce-config-help",onClick:o[4]||(o[4]=r=>n("keyToTriggerManual"))},"说明"),oe(d("select",{id:"basic_forceManualBeforeOpenOnKey","onUpdate:modelValue":o[5]||(o[5]=r=>t.config.keyToTriggerManual=r)},[(S(!0),I(Le,null,Je(re(Ln),(r,a)=>(S(),I("option",{key:a,value:a},K(r),9,o5))),128))],512),[[Pn,t.config.keyToTriggerManual]])]),d("div",i5,[o[14]||(o[14]=d("label",{for:"basic_m3u8TempDirName"},"M3U8临时目录",-1)),d("span",{class:"ce-label ce-label-success ce-config-help",onClick:o[6]||(o[6]=r=>n("m3u8TempDir"))},"说明"),oe(d("input",{id:"basic_m3u8TempDirName","onUpdate:modelValue":o[7]||(o[7]=r=>t.config.m3u8TempDir=r)},null,512),[[Ke,t.config.m3u8TempDir]]),ge(ki,{purpose:"作为M3U8临时目录",onSelect:s},{default:Ce(()=>o[13]||(o[13]=[d("a",{class:"text-primary",href:"javascript:void(0)"},"选择目录",-1)])),_:1})])])])]))}}),a5=Ne(r5,[["__file","BasicConfig.vue"]]),l5={class:"official-menu-config"},u5={class:"pure-form pure-form-stacked"},c5=["onClick"],d5={class:"menu-key"},f5=["onClick"],p5=Te({__name:"OfficialMenuConfig",setup(e){const t=ne([]),n=ne(!1);Tt(async()=>{t.value=await Yh(),console.log("official menu groups",t.value,location.href);}),Yt(()=>{document.body.addEventListener("click",()=>{n.value||(n.value=!0);});}),Xe(t,bt(async o=>{if(!n.value)return;const r=await Kx(o);await Wx(r,!0),ae({icon:"success",title:"官方菜单设置已保存,已生效。",timer:1e3,position:"top-end"});},500),{deep:!0});async function s(o){o.hidden=!o.hidden;}async function i(o){const{isConfirmed:r}=await ue.fire({icon:"warning",html:`确认要重置分组「${o.label}」的隐藏状态吗?`,confirmButtonText:"确认",showDenyButton:!0,denyButtonText:"关闭"});r&&o.items.forEach(a=>{a.hidden=!1;});}return (o,r)=>(S(),I("div",l5,[r[0]||(r[0]=d("div",{class:"ce-tips"},[d("p",null,"开启「菜单设置 - 全局设置 - 控制官方菜单」后才会生效。"),d("p",{class:"text-primary"},"该功能仅支持隐藏菜单。点击「隐藏」后刷新页面生效,如需取消请点击「取消隐藏」。")],-1)),(S(!0),I(Le,null,Je(t.value,(a,l)=>(S(),I("div",{key:l,class:"menu-config-block"},[d("form",u5,[d("fieldset",null,[d("legend",null,[B(K(a.label)+" ",1),d("span",{class:"ce-label ce-label-warning",title:"取消该分组下全部的隐藏设置",onClick:c=>i(a)}," 重置 ",8,c5)]),(S(!0),I(Le,null,Je(a.items,(c,u)=>(S(),I("div",{key:u,class:Fe([{hidden:c.hidden},"menu-item"])},[d("label",null,[B(K(c.label)+" ",1),d("small",d5,K(c.key),1)]),d("span",{class:"ce-toggle",onClick:p=>s(c)},K(c.hidden?"取消隐藏":"隐藏"),9,f5)],2))),128))])])]))),128))]))}}),h5=Ne(p5,[["__file","OfficialMenuConfig.vue"]]);var xt=(e=>(e.input="text",e.number="number",e.password="password",e.textarea="textarea",e.checkbox="checkbox",e.select="select",e.radio="radio",e.date="date",e))(xt||{});function Fi(e,t={}){return e.map(n=>({...t,...n}))}const m5={class:"ce-field"},g5=["for"],y5={class:"ce-field-extra ce-field-prefix"},w5=["type","id","name","required","placeholder"],b5=["id","name","required","placeholder"],v5=["value"],_5={key:2},x5=["value","required"],C5=["id","name","required"],k5={key:3},S5=["value","required"],$5=["id","name","required"],E5={class:"ce-field-extra ce-field-suffix"},P5=Te({__name:"CeField",props:{field:{},modelValue:{},formConfig:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,s=e,i=ne(s.modelValue),o=ot(()=>(s.formConfig.idPrefix||"")+s.field.name);return Xe(i,(r,a)=>{console.log(`[CeField] mutValue changed from ${a} to ${r}`),n("update:modelValue",r);}),(r,a)=>(S(),I("div",m5,[Qe(r.$slots,"label",{},()=>[d("label",{for:o.value},K(r.field.label),9,g5)]),d("span",y5,[Qe(r.$slots,"prefix")]),!r.field.type||r.field.type===re(xt).input||r.field.type===re(xt).number?oe((S(),I("input",{key:0,type:r.field.type,id:o.value,name:r.field.name,"onUpdate:modelValue":a[0]||(a[0]=l=>i.value=l),required:r.field.required,placeholder:r.field.placeholder},null,8,w5)),[[P_,i.value]]):r.field.type===re(xt).select?oe((S(),I("select",{key:1,id:o.value,name:r.field.name,"onUpdate:modelValue":a[1]||(a[1]=l=>i.value=l),required:r.field.required,placeholder:r.field.placeholder},[(S(!0),I(Le,null,Je(r.field.options,(l,c)=>(S(),I("option",{key:c,value:l.value},K(l.label),9,v5))),128))],8,b5)),[[Pn,i.value]]):r.field.type===re(xt).checkbox?(S(),I("span",_5,[r.field.options&&r.field.options.length>0?(S(!0),I(Le,{key:0},Je(r.field.options,(l,c)=>(S(),I("label",{key:c},[oe(d("input",{type:"checkbox",value:l.value,"onUpdate:modelValue":a[2]||(a[2]=u=>i.value=u),required:r.field.required},null,8,x5),[[De,i.value]]),B(" "+K(l.label),1)]))),128)):oe((S(),I("input",{key:1,type:"checkbox",id:o.value,name:r.field.name,"onUpdate:modelValue":a[3]||(a[3]=l=>i.value=l),required:r.field.required},null,8,C5)),[[De,i.value]])])):r.field.type===re(xt).radio?(S(),I("span",k5,[(S(!0),I(Le,null,Je(r.field.options,(l,c)=>(S(),I("label",{key:c},[oe(d("input",{type:"radio",value:l.value,"onUpdate:modelValue":a[4]||(a[4]=u=>i.value=u),required:r.field.required},null,8,S5),[[Sh,i.value]]),B(" "+K(l.label),1)]))),128))])):r.field.type===re(xt).date?oe((S(),I("input",{key:4,type:"date",id:o.value,name:r.field.name,"onUpdate:modelValue":a[5]||(a[5]=l=>i.value=l),required:r.field.required},null,8,$5)),[[Ke,i.value]]):be("",!0),d("span",E5,[Qe(r.$slots,"suffix")])]))}}),A5=Ne(P5,[["__file","CeField.vue"]]),I5={class:"ce-form pure-form pure-form-stacked"},T5=Te({__name:"CeForm",props:{config:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,s=e,i=(o,r)=>{console.log("[CeForm.handleFieldValueChange]",o,s.modelValue,r),n("update:modelValue",{...s.modelValue});};return (o,r)=>(S(),I("div",I5,[d("fieldset",null,[d("legend",null,[Qe(o.$slots,"header",{},()=>[B(K(o.config.label),1)])]),(S(!0),I(Le,null,Je(o.config.fields,a=>Qe(o.$slots,a.name,{key:a.name,data:a},()=>[ge(A5,{field:a,modelValue:o.modelValue[a.name],"onUpdate:modelValue":l=>o.modelValue[a.name]=l,"form-config":o.config,onChange:l=>i(a.name,l)},{label:Ce(()=>[Qe(o.$slots,`${a.name}_label`,{data:a})]),prefix:Ce(()=>[Qe(o.$slots,`${a.name}_prefix`,{data:a})]),suffix:Ce(()=>[Qe(o.$slots,`${a.name}_suffix`,{data:a})]),_:2},1032,["field","modelValue","onUpdate:modelValue","form-config","onChange"])])),128)),Qe(o.$slots,"footer")])]))}}),Lo=Ne(T5,[["__file","CeForm.vue"]]),O5={class:"menu-name-path-block menu-config-block"},D5=Te({__name:"NamePathConfig",props:{modelValue:{},include:{},exclude:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t,i=ne(n.modelValue);Xe(i,l=>{s("update:modelValue",l);});const o=ne([{label:"完整名称",name:"copyFullName",type:xt.checkbox,disabled:!0},{label:"不含后缀的名称",name:"copyPureName",type:xt.checkbox},{label:"文件SHA1",name:"copySha1",type:xt.checkbox},{label:"文件SHA1(带文件名)",name:"copySha1WithName",type:xt.checkbox},{label:"Unix风格路径",name:"copyUnixPath",type:xt.checkbox},{label:"Windows风格路径",name:"copyWinPath",type:xt.checkbox},{label:"父目录Unix风格路径",name:"copyParentUnixPath",type:xt.checkbox},{label:"父目录Windows风格路径",name:"copyParentWinPath",type:xt.checkbox},{label:"在CloudDrive2 Web页面查看",name:"viewInCloudDrive",type:xt.checkbox}]);function r(l){const{include:c=[],exclude:u=[]}=n;return c.length>0?c.includes(l):u.length>0?!u.includes(l):!0}const a=ne({label:"名称路径子菜单设置",fields:o.value.filter(l=>r(l.name)),idPrefix:"namePath_"});return (l,c)=>(S(),I("div",O5,[d("div",null,[ge(Lo,{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),config:a.value},null,8,["modelValue","config"])])]))}}),M5=Ne(D5,[["__file","NamePathConfig.vue"]]),L5={class:"menu-name-path-config-button"},B5=Te({__name:"NamePathConfigButton",props:{modelValue:{},include:{},exclude:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t,i=ne(n.modelValue);return Xe(i,o=>{s("update:modelValue",o);}),(o,r)=>{const a=gs("VDropdown");return S(),I("span",L5,[ge(a,{distance:5,triggers:["click"],placement:"left"},{popper:Ce(()=>[ge(M5,{modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=l=>i.value=l),include:n.include,exclude:n.exclude},null,8,["modelValue","include","exclude"])]),default:Ce(()=>[Qe(o.$slots,"default",{},()=>[r[1]||(r[1]=d("span",{class:"text-bold text-info"},">>",-1))])]),_:3})])}}}),Ui=Ne(B5,[["__file","NamePathConfigButton.vue"]]);var $i={name:"115不大助手",version:"0.7.63",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};async function R5(){if(window!==window.parent)return;new MutationObserver(async([t])=>{t.type==="childList"&&window.postMessage({event:gt.topDomChanged});}).observe(document.body,{childList:!0});}async function N5(){const e=document.querySelector(".bottom-side .navigation-ceiling ul");if(!e){H5();return}const t=document.createElement("li"),n=document.createElement("a");n.href="javascript:;",n.style.textAlign="center",n.style.backgroundColor="#fefcea",n.style.padding="4px 10px 4px",n.addEventListener("click",async s=>{await qn();}),n.title=`打开「${$i.name}」设置`,n.innerHTML='不大助手',t.appendChild(n),e.insertBefore(t,e.firstChild);}async function F5(){return !!document.querySelector("#js-login-box")}async function U5(){console.log("[handleLoginPage]"),await F5()&&(document.body.classList.add("ce-login-page"),j5());}async function j5(){console.log("[injectOpenConfigButtonOnLoginPage");const e=document.querySelector(".right-side a");if(!e){console.warn("[injectOpenConfigButtonOnLoginPage] '.right-side a' not found");return}const t=document.createElement("a");t.href="javascript:;",t.className="ce-entry",t.addEventListener("click",async s=>{await qn();}),t.title=`打开「${$i.name}」设置`,t.innerHTML=`${$i.name}`,e.insertAdjacentElement("beforebegin",t);const n=document.createElement("a");n.href="javascript:;",n.className="ce-entry",n.addEventListener("click",async s=>{await qn(_t.tools);}),n.title="打开扫码获取Cookie",n.innerHTML='扫码获取Cookie',e.insertAdjacentElement("beforebegin",n);}async function H5(){const e=document.querySelector(".sub-footer ul");if(!e)return;const t=document.createElement("li"),n=document.createElement("a");n.href="javascript:;",n.addEventListener("click",async s=>{await qn();}),n.title=`打开「${$i.name}」设置`,n.innerHTML=`${$i.name}`,t.appendChild(n),e.insertBefore(t,e.firstChild);}async function qn(e){window.postMessage({event:gt.openConfig,body:e});}const V5={class:"menu-config-block"},z5={class:"text-primary ce-label-open-cfg",title:"打开子菜单项设置"},q5=Te({__name:"Config",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=ne(e.modelValue);Xe(s,l=>{i("update:modelValue",l);});const i=t,o=Fi([{label:"启用",name:"enabled"},{label:"新标签页打开",name:"openInNewTab"},{label:"搜索",name:"search"},{label:"播放",name:"play"},{label:"名称路径",name:"copyNames"},{label:"查找重复文件",name:"findRepeat"}],{type:xt.checkbox}),r=ne(o),a=ne({label:Hs.listItemHover,fields:r.value,idPrefix:"listItemHover_"});return (l,c)=>(S(),I("div",V5,[d("div",null,[ge(Lo,{modelValue:s.value,"onUpdate:modelValue":c[3]||(c[3]=u=>s.value=u),config:a.value},{search_label:Ce(({data:u})=>[d("label",{class:"text-primary",onClick:c[0]||(c[0]=p=>re(qn)(re(_t).searchMenus))},K(u.label),1)]),play_label:Ce(({data:u})=>[d("label",{class:"text-primary",onClick:c[1]||(c[1]=p=>re(qn)(re(_t).playMenus))},K(u.label),1)]),copyNames_label:Ce(({data:u})=>[ge(Ui,{modelValue:s.value.namePathConfig,"onUpdate:modelValue":c[2]||(c[2]=p=>s.value.namePathConfig=p)},{default:Ce(()=>[d("label",z5,[B(K(u.label)+" ",1),c[4]||(c[4]=d("i",null,"⚙️",-1))])]),_:2},1032,["modelValue"])]),_:1},8,["modelValue","config"])])]))}}),W5=Ne(q5,[["__file","Config.vue"]]),K5={class:"menu-config-block"},G5={class:"text-primary ce-label-open-cfg",title:"打开子菜单项设置"},J5=Te({__name:"Config",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=ne(e.modelValue),i=[];Xe(s,l=>{o("update:modelValue",l);});const o=t,r=ne(Fi([{label:"启用",name:"enabled"},{label:"名称路径",name:"copyNames"}],{type:xt.checkbox})),a=ne({label:Hs.listItemContext,fields:r.value,idPrefix:"listItemContext_"});return (l,c)=>(S(),I("div",K5,[d("div",null,[ge(Lo,{modelValue:s.value,"onUpdate:modelValue":c[1]||(c[1]=u=>s.value=u),config:a.value},{copyNames_label:Ce(({data:u})=>[ge(Ui,{modelValue:s.value.namePathConfig,"onUpdate:modelValue":c[0]||(c[0]=p=>s.value.namePathConfig=p),exclude:i},{default:Ce(()=>[d("label",G5,[B(K(u.label)+" ",1),c[2]||(c[2]=d("i",null,"⚙️",-1))])]),_:2},1032,["modelValue"])]),_:1},8,["modelValue","config"])])]))}}),Y5=Ne(J5,[["__file","Config.vue"]]),Q5={class:"menu-config-block"},X5={class:"text-primary ce-label-open-cfg",title:"打开子菜单项设置"},Z5=Te({__name:"Config",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=["viewInCloudDrive"],i=ne(n.modelValue);Xe(i,l=>{o("update:modelValue",l);});const o=t,r=ne(Fi([{label:"启用",name:"enabled"},{label:"移动到同名目录",name:"moveToSelfNameDir"},{label:"名称路径",name:"copyNames"},{label:"播放",name:"play"}],{type:xt.checkbox})),a=ne({label:Hs.selection,fields:r.value,idPrefix:"selection_"});return (l,c)=>(S(),I("div",Q5,[d("div",null,[ge(Lo,{modelValue:i.value,"onUpdate:modelValue":c[3]||(c[3]=u=>i.value=u),config:a.value},{search_label:Ce(({data:u})=>[d("label",{class:"text-primary",onClick:c[0]||(c[0]=p=>re(qn)(re(_t).searchMenus))},K(u.label),1)]),play_label:Ce(({data:u})=>[d("label",{class:"text-primary",onClick:c[1]||(c[1]=p=>re(qn)(re(_t).playMenus))},K(u.label),1)]),copyNames_label:Ce(({data:u})=>[ge(Ui,{modelValue:i.value.namePathConfig,"onUpdate:modelValue":c[2]||(c[2]=p=>i.value.namePathConfig=p),exclude:s},{default:Ce(()=>[d("label",X5,[B(K(u.label)+" ",1),c[4]||(c[4]=d("i",null,"⚙️",-1))])]),_:2},1032,["modelValue"])]),_:1},8,["modelValue","config"])])]))}}),eO=Ne(Z5,[["__file","Config.vue"]]),tO={class:"menu-config-block"},nO={class:"text-primary ce-label-open-cfg",title:"打开子菜单项设置"},sO=["onClick"],oO=Te({__name:"Config",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=ne(e.modelValue);Xe(s,m=>{i("update:modelValue",m);});const i=t,o=Fi([{label:"启用",name:"enabled"},{label:"重命名",name:"rename"},{label:"删除",name:"delete"},{label:"播放全部",name:"play"},{label:"名称路径",name:"copyNames"},{label:"移动",name:"move"},{label:"复制",name:"copy"},{label:"复制到",name:"copyTo"},{label:"查看属性",name:"viewProp"},{label:"子文件夹大小",name:"showSubFolderSize"},{label:"子文件夹大小+排序",name:"showSubFolderSizeAndSort"}],{type:xt.checkbox}),r=ne(o),a=ne({label:Hs.dirContext,fields:r.value,idPrefix:"dirContext_"}),l=ot(()=>{const m=["enabled","play","copyNames"];return Object.keys(s.value).filter(v=>!m.includes(v))}),c=ot(()=>{const m=[];for(const v of Object.keys(s.value))m.push({name:v,prefix:`${v}_prefix`,suffix:`${v}_suffix`});return m}),u=m=>{s.value.topLevelMenus.includes(m.name)?s.value.topLevelMenus=s.value.topLevelMenus.filter(v=>v!==m.name):s.value.topLevelMenus.push(m.name);};async function p(){ue.fire({html:`当前目录右键菜单的打开方式:
        1. 右键单击文件列表表头;
        2. 右键单击文件列表空白处;
        3.「文件名」列头部的「目录功能菜单」按钮。
        菜单显示层级:
        1.「播放全部」和「名称路径」强制显示为一级菜单;
        2. 其他菜单可以通过点击 👁 图标设置是否显示为一级菜单。 `,customClass:"ce-swal-text-left"});}return (m,v)=>(S(),I("div",tO,[d("div",null,[ge(Lo,{modelValue:s.value,"onUpdate:modelValue":v[2]||(v[2]=w=>s.value=w),config:a.value},m0({header:Ce(()=>[B(K(re(Hs).dirContext)+" ",1),d("span",{class:"ce-label ce-label-success ce-config-help",onClick:p},"说明")]),play_label:Ce(({data:w})=>[d("label",{class:"text-primary",onClick:v[0]||(v[0]=_=>re(qn)(re(_t).playMenus))},K(w.label),1)]),copyNames_label:Ce(({data:w})=>[ge(Ui,{modelValue:s.value.namePathConfig,"onUpdate:modelValue":v[1]||(v[1]=_=>s.value.namePathConfig=_)},{default:Ce(()=>[d("label",nO,[B(K(w.label)+" ",1),v[3]||(v[3]=d("i",null,"⚙️",-1))])]),_:2},1032,["modelValue"])]),_:2},[Je(c.value,w=>({name:w.suffix,fn:Ce(({data:_})=>[l.value.includes(_.name)?(S(),I("span",{key:0,class:Fe(["btn-toggle-top",{active:s.value.topLevelMenus.includes(_.name)}]),onClick:R=>u(_),title:"点亮表示显示为一级菜单,否则将显示在「更多」菜单中"},"👁",10,sO)):be("",!0)])}))]),1032,["modelValue","config"])])]))}}),iO=Ne(oO,[["__file","Config.vue"]]),rO={class:"menu-config-block"},aO={class:"text-primary ce-label-open-cfg",title:"打开子菜单项设置"},lO=Te({__name:"Config",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=ne(e.modelValue),i=["copyUnixPath","copyWinPath","copyParentUnixPath","copyParentWinPath","viewInCloudDrive"];Xe(s,l=>{o("update:modelValue",l);});const o=t,r=ne(Fi([{label:"启用",name:"enabled"},{label:"搜索",name:"search"},{label:"名称",name:"copyNames"}],{type:xt.checkbox})),a=ne({label:Hs.shareListItemHover,fields:r.value,idPrefix:"shareListItemHover_"});return (l,c)=>(S(),I("div",rO,[d("div",null,[ge(Lo,{modelValue:s.value,"onUpdate:modelValue":c[2]||(c[2]=u=>s.value=u),config:a.value},{search_label:Ce(({data:u})=>[d("label",{class:"text-primary",onClick:c[0]||(c[0]=p=>re(qn)(re(_t).searchMenus))},K(u.label),1)]),copyNames_label:Ce(({data:u})=>[ge(Ui,{modelValue:s.value.namePathConfig,"onUpdate:modelValue":c[1]||(c[1]=p=>s.value.namePathConfig=p),exclude:i},{default:Ce(()=>[d("label",aO,[B(K(u.label)+" ",1),c[3]||(c[3]=d("i",null,"⚙️",-1))])]),_:2},1032,["modelValue"])]),_:1},8,["modelValue","config"])])]))}}),uO=Ne(lO,[["__file","Config.vue"]]),cO={key:0,class:"ce-menu-config"},dO=Te({__name:"MenuConfig",async setup(e){let t,n;const s=ne(([t,n]=jt(()=>sn()),t=await t,n(),t));return Tt(async()=>{}),Xe(s,bt(async i=>{const o=await sn();i.defaultPlayer=o.defaultPlayer,await yp(i),ae({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},500),{deep:!0}),(i,o)=>s.value.enabled!==void 0?(S(),I("div",cO,[o[6]||(o[6]=d("div",{class:"ce-tips"},[d("p",null,"「搜索」功能菜单支持自定义,可在「搜索菜单」设置面板中添加和管理。"),d("p",null,"「播放」功能菜单支持自定义,可在「播放菜单」设置面板中添加和管理。")],-1)),ge(a5,{config:s.value},null,8,["config"]),ge(W5,{modelValue:s.value.listItemHover,"onUpdate:modelValue":o[0]||(o[0]=r=>s.value.listItemHover=r)},null,8,["modelValue"]),ge(Y5,{modelValue:s.value.listItemContext,"onUpdate:modelValue":o[1]||(o[1]=r=>s.value.listItemContext=r)},null,8,["modelValue"]),ge(eO,{modelValue:s.value.selection,"onUpdate:modelValue":o[2]||(o[2]=r=>s.value.selection=r)},null,8,["modelValue"]),ge(iO,{modelValue:s.value.dirContext,"onUpdate:modelValue":o[3]||(o[3]=r=>s.value.dirContext=r)},null,8,["modelValue"]),ge(uO,{modelValue:s.value.shareListItemHover,"onUpdate:modelValue":o[4]||(o[4]=r=>s.value.shareListItemHover=r)},null,8,["modelValue"]),o[7]||(o[7]=d("hr",{class:"ce-hr"},null,-1)),d("div",null,[o[5]||(o[5]=d("h1",null,"官方菜单设置",-1)),d("div",null,[ge(h5)])])])):be("",!0)}}),fO=Ne(dO,[["__file","MenuConfig.vue"]]),pO={class:"ce-custom-url"},hO={class:"pure-form pure-form-aligned"},mO={class:"ce-custom-url-index"},gO={class:"pure-control-group"},yO={class:"pure-control-group"},wO={class:"pure-control-group"},bO={class:"pure-control-group"},vO={key:0,class:"item-icon"},_O=["src"],xO={class:"pure-control-group"},CO={class:"pure-control-group"},kO={class:"pure-control-group"},SO={key:0,class:"pure-control-group"},$O=Te({__name:"CustomUrl",props:{item:{},index:{}},emits:["delete"],setup(e,{emit:t}){const n=ne(!0),s=t;function i(){s("delete");}async function o(){n.value=!n.value,n.value&&ae({title:"已开启高级模式",text:"请谨慎修改,不正确的代码可能会导致脚本崩溃。",icon:"info",timer:2e3});}async function r(){window.postMessage({event:"customUrlHelp"},"*");}async function a(){await ue.fire({title:"Mutation 说明",html:`

        自定义代码,用于生成最终的链接。


        代码会被包含在一个async匿名函数中执行,最终应该返回一个链接字符串。

        传入的参数名为「payload」,其结构如下:

        - url: 之前自动处理得到的链接

        - file:当前文件信息

        - customUrl:当前自定义规则信息

        - cloudDriveConfig:CloudDrive设置信息


        示例:

            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}\`
            
        `,width:480,position:"top-start",backdrop:!1});}return (l,c)=>(S(),I("div",pO,[d("form",hO,[d("fieldset",null,[d("legend",null,[d("span",mO,"# "+K(l.index+1),1),d("button",{type:"button",class:"pure-button button-error button-small",onClick:i}," 删除 ")]),d("div",gO,[c[8]||(c[8]=d("label",null,"启用",-1)),oe(d("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>l.item.enabled=u),type:"checkbox",id:"customUrl_enabled"},null,512),[[De,l.item.enabled]])]),d("div",yO,[c[9]||(c[9]=d("label",null,"唯一标识",-1)),oe(d("input",{"onUpdate:modelValue":c[1]||(c[1]=u=>l.item.key=u),id:"customUrl_key",class:"pure-input-2-3",placeholder:"英文、数字或下划线"},null,512),[[Ke,l.item.key]])]),d("div",wO,[c[10]||(c[10]=d("label",null,"显示名称",-1)),oe(d("input",{"onUpdate:modelValue":c[2]||(c[2]=u=>l.item.label=u),id:"customUrl_label",class:"pure-input-2-3",placeholder:"菜单文本,尽量简洁"},null,512),[[Ke,l.item.label]])]),d("div",bO,[c[11]||(c[11]=d("label",null,"图标",-1)),oe(d("input",{"onUpdate:modelValue":c[3]||(c[3]=u=>l.item.icon=u),id:"customUrl_icon",class:"pure-input-2-3",placeholder:"图标class、图片链接或图片data:image"},null,512),[[Ke,l.item.icon]]),c[12]||(c[12]=B("   ")),l.item.icon?(S(),I("span",vO,[d("img",{src:l.item.icon,referrerpolicy:"no-referrer",width:"25"},null,8,_O)])):be("",!0)]),d("div",xO,[d("label",{onDblclick:o}," 链接 ",32),oe(d("textarea",{"onUpdate:modelValue":c[4]||(c[4]=u=>l.item.url=u),id:"customUrl_url",class:"pure-input-2-3",placeholder:"链接地址,支持变量,变量列表请点击右侧「查看变量」"},null,512),[[Ke,l.item.url]]),c[13]||(c[13]=B("   ")),d("a",{href:"javascript:void(0)",class:"text-primary",onClick:r},"查看变量")]),d("div",CO,[c[14]||(c[14]=d("label",null,"后台打开",-1)),oe(d("input",{"onUpdate:modelValue":c[5]||(c[5]=u=>l.item.openInBackground=u),id:"customUrl_openInBackground",type:"checkbox"},null,512),[[De,l.item.openInBackground]])]),d("div",kO,[c[15]||(c[15]=d("label",null,"备注",-1)),oe(d("input",{"onUpdate:modelValue":c[6]||(c[6]=u=>l.item.memo=u),id:"customUrl_memo",class:"pure-input-2-3"},null,512),[[Ke,l.item.memo]])]),n.value?(S(),I("div",SO,[c[16]||(c[16]=d("label",null,"Mutation",-1)),oe(d("textarea",{"onUpdate:modelValue":c[7]||(c[7]=u=>l.item.mutation=u),id:"customUrl_mutation",class:"pure-input-2-3",placeholder:"自定义代码生成最终链接,具体请看右侧「查看说明」"},null,512),[[Ke,l.item.mutation]]),c[17]||(c[17]=B("   ")),d("a",{href:"javascript:void(0)",class:"text-primary",onClick:a},"查看说明")])):be("",!0)])])]))}}),sg=Ne($O,[["__file","CustomUrl.vue"]]),EO={class:"ce-config ce-search-urls ce-custom-urls"},PO={class:"ce-menu-urls-builtin"},AO={class:"pure-form pure-form-aligned"},IO={key:0,class:"item-icon"},TO=["src"],OO=["for"],DO=["id","onUpdate:modelValue"],MO={class:"text-info item-memo"},LO=["onClick"],BO={class:"ce-custom-urls-list"},RO={class:"ce-custom-urls-actions"},NO=["disabled"],FO=Te({__name:"SearchUrls",async setup(e){let t,n;const s=ne(([t,n]=jt(()=>uu()),t=await t,n(),t)),i=ne(([t,n]=jt(()=>Ti(ms.search)),t=await t,n(),t));Tt(async()=>{}),Xe(s,bt(async u=>{const p=[];u.forEach(m=>{m.enabled&&p.push(m.key);}),await Dv(p),ae({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},500),{deep:!0});async function o(){const u=[];for(const p of i.value){if(!await r(p,u.length))return;if(u.includes(p.key)){ae({icon:"error",title:`第 ${u.length+1} 个记录的「唯一标识: ${p.key}」重复!`});return}u.push(p.key);}await op(ms.search,i.value),ae({icon:"success",title:"保存成功!"});}async function r(u,p){const m=/^\w+$/;return u.key=u.key.trim(),m.test(u.key)?(u.label=u.label.trim(),u.label===""?(ae({icon:"error",title:`第 ${p+1} 个记录的「显示名称」不能为空!`}),!1):(u.url=u.url.trim(),u.url===""?(ae({icon:"error",title:`第 ${p+1} 个记录的「链接」不能为空!`}),!1):(u.icon=u.icon.trim(),u.memo=u.memo.trim(),!0))):(ae({icon:"error",title:`第 ${p+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function a(){i.value.push(Et({key:Hr()}));}async function l(u,p){const{isConfirmed:m}=await ue.fire({icon:"warning",html:`确定要删除第 ${p+1} 个记录「${u.label}」吗?`});m&&(i.value.splice(p,1),await o(),ae({icon:"success",title:`「${u.label}」已删除!`}));}async function c(u){const p=JSON.stringify(u,null,2),m=`ce-url-item-denifition-${u.key}`,{isConfirmed:v}=await ue.fire({title:`「${u.label}」的定义`,html:`

        ${u.memo}

        `,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0,didOpen:()=>{document.getElementById(m).textContent=p;}});v&&(navigator.clipboard.writeText(p),ae({icon:"success",title:"已复制到剪贴板!"}));}return (u,p)=>(S(),I("div",EO,[d("h1",null,[p[0]||(p[0]=B("预置搜索菜单 ")),oe(d("small",null,"( "+K(s.value.length)+" )",513),[[Wt,s.value.length]])]),d("div",PO,[d("form",AO,[d("fieldset",null,[(S(!0),I(Le,null,Je(s.value,(m,v)=>(S(),I("div",{key:v,class:"pure-control-group"},[m.icon?(S(),I("span",IO,[d("img",{src:m.icon,referrerpolicy:"no-referrer",width:"25"},null,8,TO)])):be("",!0),d("label",{for:`builtin_${m.key}`},K(m.label),9,OO),oe(d("input",{id:`builtin_${m.key}`,type:"checkbox","onUpdate:modelValue":w=>m.enabled=w},null,8,DO),[[De,m.enabled]]),p[1]||(p[1]=B("      ")),d("span",MO,K(m.memo),1),p[2]||(p[2]=B("      ")),d("button",{type:"button",class:"pure-button button-small",onClick:w=>c(m)},"查看定义",8,LO)]))),128))])])]),d("h1",null,[p[3]||(p[3]=B("自定义搜索菜单 ")),oe(d("small",null,"( "+K(i.value.length)+" )",513),[[Wt,i.value.length]])]),d("div",BO,[(S(!0),I(Le,null,Je(i.value,(m,v)=>(S(),st(sg,{key:v,item:m,index:v,onDelete:w=>l(m,v)},null,8,["item","index","onDelete"]))),128))]),d("div",RO,[d("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:o,disabled:!i.value.length}," 保存自定义搜索菜单 ",8,NO),p[4]||(p[4]=B("      ")),d("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:a}," + 添加自定义搜索菜单 ")])]))}}),UO=Ne(FO,[["__file","SearchUrls.vue"]]),jO={class:"ce-config ce-play-urls ce-custom-urls"},HO={class:"pure-form pure-form-aligned"},VO=["value"],zO={class:"ce-menu-urls-builtin"},qO={class:"pure-form pure-form-aligned"},WO={key:0,class:"item-icon"},KO=["src"],GO=["for"],JO=["id","onUpdate:modelValue"],YO={class:"text-info item-memo"},QO=["onClick"],XO=["innerHTML"],ZO={class:"ce-custom-urls-list"},eD={class:"ce-custom-urls-actions"},tD=["disabled"],nD=Te({__name:"PlayUrls",async setup(e){let t,n;const s=ne(([t,n]=jt(()=>ap()),t=await t,n(),t)),i=ne(([t,n]=jt(()=>Ti(ms.play)),t=await t,n(),t)),o=([t,n]=jt(()=>sn()),t=await t,n(),t),r=ne(o.defaultPlayer||""),a=ot(()=>[...s.value.filter(v=>v.enabled),...i.value.filter(v=>v.enabled)]);Tt(async()=>{}),Xe(s,bt(async v=>{const w=[];v.forEach(_=>{_.enabled&&w.push(_.key);}),await Mv(w),ae({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},500),{deep:!0}),Xe(r,bt(async v=>{const w=await sn();w.defaultPlayer=v,await yp(w),ae({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},250));async function l(){const v=[];for(const w of i.value){if(!await c(w,v.length))return;if(v.includes(w.key)){ae({icon:"error",title:`第 ${v.length+1} 个记录的「唯一标识: ${w.key}」重复!`});return}v.push(w.key);}await op(ms.play,i.value),ae({icon:"success",title:"保存成功!"});}async function c(v,w){const _=/^\w+$/;return v.key=v.key.trim(),_.test(v.key)?(v.label=v.label.trim(),v.label===""?(ae({icon:"error",title:`第 ${w+1} 个记录的「显示名称」不能为空!`}),!1):(v.url=v.url.trim(),v.url===""?(ae({icon:"error",title:`第 ${w+1} 个记录的「链接」不能为空!`}),!1):(v.icon=v.icon.trim(),v.memo=v.memo.trim(),!0))):(ae({icon:"error",title:`第 ${w+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function u(){i.value.push(Et({key:Hr()}));}async function p(v,w){const{isConfirmed:_}=await ue.fire({icon:"warning",html:`确定要删除第 ${w+1} 个记录「${v.label}」吗?`});_&&(i.value.splice(w,1),await l(),ae({icon:"success",title:`「${v.label}」已删除!`}));}async function m(v){const w=JSON.stringify(v,null,2),_=`ce-url-item-denifition-${v.key}`,{isConfirmed:R}=await ue.fire({title:`「${v.label}」的定义`,html:`

        ${v.memo}

        `,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0,didOpen:()=>{document.getElementById(_).innerText=w;}});R&&(navigator.clipboard.writeText(w),ae({icon:"success",title:"已复制到剪贴板!"}));}return (v,w)=>(S(),I("div",jO,[d("form",HO,[d("fieldset",null,[w[1]||(w[1]=d("span",{class:"ce-label ce-label-primary"},"默认播放菜单: ",-1)),w[2]||(w[2]=B("   ")),oe(d("select",{"onUpdate:modelValue":w[0]||(w[0]=_=>r.value=_)},[(S(!0),I(Le,null,Je(a.value,(_,R)=>(S(),I("option",{key:R,value:_.key},K(_.label),9,VO))),128))],512),[[Pn,r.value]])])]),d("h1",null,[w[3]||(w[3]=B("预置播放菜单 ")),oe(d("small",null,"( "+K(s.value.length)+" )",513),[[Wt,s.value.length]])]),w[8]||(w[8]=d("div",{class:"ce-tips"},[d("p",null,[B("支持常见的视频、音频和图片格式,也支持目录播放。预置播放菜单使用的链接变量是 "),d("b",null,"{clouddrive_stream_url}"),B(" , 会根据文件或目录自动使用相应的链接。")]),d("p",null,"播放功能依赖CloudDrive,请先在「CloudDrive」设置面板中进行配置。")],-1)),d("div",zO,[d("form",qO,[d("fieldset",null,[(S(!0),I(Le,null,Je(s.value,(_,R)=>(S(),I("div",{key:R,class:"pure-control-group"},[_.icon?(S(),I("span",WO,[d("img",{src:_.icon,referrerpolicy:"no-referrer",width:"25"},null,8,KO)])):be("",!0),d("label",{for:`builtin_${_.key}`},K(_.label),9,GO),oe(d("input",{id:`builtin_${_.key}`,type:"checkbox","onUpdate:modelValue":L=>_.enabled=L},null,8,JO),[[De,_.enabled]]),w[4]||(w[4]=B("      ")),d("span",YO,K(_.memo),1),w[5]||(w[5]=B("      ")),d("button",{type:"button",class:"pure-button button-small",onClick:L=>m(_)},"查看定义",8,QO),_.extraMemo?(S(),I("span",{key:1,innerHTML:_.extraMemo,class:"extra-memo"},null,8,XO)):be("",!0)]))),128))])])]),d("h1",null,[w[6]||(w[6]=B("自定义播放菜单 ")),oe(d("small",null,"( "+K(i.value.length)+" )",513),[[Wt,i.value.length]])]),d("div",ZO,[(S(!0),I(Le,null,Je(i.value,(_,R)=>(S(),st(sg,{key:R,item:_,index:R,onDelete:L=>p(_,R)},null,8,["item","index","onDelete"]))),128))]),w[9]||(w[9]=d("div",{class:"ce-tips"}," 编辑后,请记得点击「保存自定义播放菜单」。 ",-1)),d("div",eD,[d("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:l,disabled:!i.value.length}," 保存自定义播放菜单 ",8,tD),w[7]||(w[7]=B("      ")),d("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:u}," + 添加自定义播放菜单 ")])]))}}),sD=Ne(nD,[["__file","PlayUrls.vue"]]),oD={class:"ce-config ce-anxia-config"},iD={class:"pure-form pure-form-aligned"},rD={class:"pure-control-group"},aD={class:"pure-control-group"},lD={class:"pure-control-group"},uD=["value"],cD=Te({__name:"Config",async setup(e){let t,n;const s=ne(([t,n]=jt(()=>Wf()),t=await t,n(),t));return Tt(async()=>{}),Xe(s,bt(async i=>{await jb(i),ae({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:gt.listConfigChange,body:JSON.parse(JSON.stringify(i))});},500),{deep:!0}),(i,o)=>(S(),I("div",oD,[d("form",iD,[d("fieldset",null,[d("div",rD,[o[3]||(o[3]=d("label",{for:"defaultWebFull"},"自动网页全屏",-1)),oe(d("input",{id:"defaultWebFull",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=r=>s.value.defaultWebFull=r)},null,512),[[De,s.value.defaultWebFull]]),o[4]||(o[4]=d("div",{class:"pure-form-message text-success"},[d("div",null,"进入播放页后自动使播放器网页全屏。")],-1))]),d("div",aD,[o[5]||(o[5]=d("label",{for:"defaultOpenPlayList"},"自动展开播放列表",-1)),oe(d("input",{id:"defaultOpenPlayList",type:"checkbox","onUpdate:modelValue":o[1]||(o[1]=r=>s.value.defaultOpenPlayList=r)},null,512),[[De,s.value.defaultOpenPlayList]]),o[6]||(o[6]=d("div",{class:"pure-form-message text-success"},[d("div",null,"进入播放页后自动展开播放列表。")],-1))]),d("div",lD,[o[8]||(o[8]=d("label",{for:"defaultDefinition"},"默认清晰度",-1)),oe(d("select",{id:"defaultDefinition","onUpdate:modelValue":o[2]||(o[2]=r=>s.value.defaultDefinition=r)},[o[7]||(o[7]=d("option",{value:""},"官方默认",-1)),(S(!0),I(Le,null,Je(re(qf),(r,a)=>(S(),I("option",{key:a,value:a},K(r),9,uD))),128))],512),[[Pn,s.value.defaultDefinition]]),o[9]||(o[9]=d("div",{class:"pure-form-message text-success"},[d("div",{class:"text-warning"},"如果没有该清晰度,则会使用官方默认。")],-1))])])])]))}}),dD=Ne(cD,[["__file","Config.vue"]]),og=mt.share;function fD(e){return {autoConfirmPassword:!0,pageWidth:"",showListSummary:!0,freshMode:!1,...e}}async function ig(){const e=fD(),t=await et.get(og,e);return {...e,...t}}async function pD(e){await et.set(og,e);}const hD={class:"ce-config ce-share-config"},mD={class:"pure-form pure-form-aligned"},gD={class:"pure-control-group"},yD={class:"pure-control-group"},wD={class:"pure-control-group"},bD={class:"pure-control-group"},vD=Te({__name:"Config",async setup(e){let t,n;const s=ne(([t,n]=jt(()=>ig()),t=await t,n(),t));return Tt(async()=>{}),Xe(s,bt(async i=>{await pD(i),ae({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:gt.shareConfigChange,body:JSON.parse(JSON.stringify(i))});},500),{deep:!0}),(i,o)=>(S(),I("div",hD,[d("form",mD,[d("fieldset",null,[d("div",gD,[o[4]||(o[4]=d("label",{for:"autoAccess"},"自动确定访问码",-1)),oe(d("input",{id:"autoAccess",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=r=>s.value.autoConfirmPassword=r)},null,512),[[De,s.value.autoConfirmPassword]]),o[5]||(o[5]=d("div",{class:"pure-form-message text-success"}," 如果打开页面时已有访问码,则自动确定进入分享详情。 ",-1))]),d("div",yD,[o[6]||(o[6]=d("label",{for:"pageWidth"},"页面宽度",-1)),oe(d("input",{id:"pageWidth",class:"input-small","onUpdate:modelValue":o[1]||(o[1]=r=>s.value.pageWidth=r)},null,512),[[Ke,s.value.pageWidth]]),o[7]||(o[7]=d("div",{class:"pure-form-message text-success"},[B(" 默认为空。支持 1000px、100%、90vw 等有效的 "),d("a",{href:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/width",target:"_blank",rel:"noreferrer noopener"},"css width数值 🔗"),B("。 ")],-1))]),d("div",wD,[o[8]||(o[8]=d("label",{for:"showListSummary"},"显示列表概要",-1)),oe(d("input",{id:"showListSummary",type:"checkbox","onUpdate:modelValue":o[2]||(o[2]=r=>s.value.showListSummary=r)},null,512),[[De,s.value.showListSummary]]),o[9]||(o[9]=d("div",{class:"pure-form-message text-success"}," 在列表`名称`列头部显示当前列表的概要信息,如文件数量、文件合计大小、目录数量等。 ",-1))]),d("div",bD,[o[10]||(o[10]=d("label",{for:"freshMode"},"清爽模式",-1)),oe(d("input",{id:"freshMode",type:"checkbox","onUpdate:modelValue":o[3]||(o[3]=r=>s.value.freshMode=r)},null,512),[[De,s.value.freshMode]]),o[11]||(o[11]=d("div",{class:"pure-form-message text-success"},[B(" 隐藏顶部广告和底部警告。"),d("span",{class:"text-warning"},"请注意,这些区域的内容可能会发生变化,隐藏后可能会使你错过相关信息,比如新活动等。")],-1))])])])]))}}),_D=Ne(vD,[["__file","Config.vue"]]);var xD={name:"115不大助手",version:"0.7.63",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};const CD=Te({__name:"FeedbackButton",setup(e){const t=xD,n=Hw;function s(){let o=`脚本: ${t.name} - v${t.version}
        `;return o+=`TM: ${n.version}
        `,o+=`UA: ${navigator.userAgent}
        `,o+=`我在使用脚本的 xxxxxx 功能时,出现了问题,希望你能帮我解决。
        `,o+=`复现步骤: xxxxxx
        `,o+=`问题截图: 
        `,o}function i(){let o=s();yt(o),ae({icon:"success",text:"已复制反馈模版,请添加详细的描述以便排查和解决问题。"});}return (o,r)=>(S(),I("button",{type:"button",class:"pure-button pure-button-success",onClick:i}," 复制反馈模版 "))}}),kD=Ne(CD,[["__file","FeedbackButton.vue"]]);var SD={name:"115不大助手",version:"0.7.63",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};const $D={class:"ce-about"},ED=["href"],PD=Te({__name:"About",setup(e){const t=SD;return (n,s)=>(S(),I("div",$D,[s[1]||(s[1]=d("p",null,"115不大助手(以下简称「脚本」),是一个仅用于学习编程的小脚本。",-1)),s[2]||(s[2]=d("br",null,null,-1)),s[3]||(s[3]=d("p",null,"脚本不会收集您的任何个人信息。",-1)),s[4]||(s[4]=d("p",null,"脚本仅借助了官方已有的功能,无任何破解行为。",-1)),s[5]||(s[5]=d("p",null,"脚本代码本身已包含全部依赖,无任何远程引用。",-1)),s[6]||(s[6]=d("br",null,null,-1)),s[7]||(s[7]=d("br",null,null,-1)),s[8]||(s[8]=d("br",null,null,-1)),d("div",null,[ge(kD)]),s[9]||(s[9]=d("br",null,null,-1)),s[10]||(s[10]=d("hr",{class:"ce-hr"},null,-1)),d("div",null,[d("a",{href:re(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[B(K(re(t).name)+" ",1),d("small",null,"v"+K(re(t).version),1)],8,ED),s[0]||(s[0]=B("  ")),d("small",null,"by "+K(re(t).author.name),1)])]))}}),AD=Ne(PD,[["__file","About.vue"]]);var ID={name:"115不大助手",version:"0.7.63",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};const TD={class:"ce-config-main"},OD={class:"ce-config-main-header"},DD={class:"ce-intro"},MD=["href"],LD={class:"ce-config-main-body"},BD=Te({__name:"Config",setup(e){const t=ID,n=ne(!1),s=ne(!1),i=ne();Yt(async()=>{window.addEventListener("message",c=>{const{event:u,body:p}=c.data;u===gt.openConfig&&(n.value||(n.value=!0),o(p)),u===gt.closeConfig&&r();},!1);});async function o(c){var u;s.value=!0,console.log("[openDrawer]",c),c&&(await qs(),(u=i.value)==null||u.selectTab(`#${c}`));}async function r(){s.value=!1;}async function a(...c){console.log("[tabClicked]",c);}async function l(...c){console.log("[tabChanged]",c);}return (c,u)=>(S(),st(hh,null,{default:Ce(()=>[d("div",TD,[ge(Ci,{"is-open":s.value,onClose:r,"max-width":"1200px",speed:500},{default:Ce(()=>[d("div",OD,[u[1]||(u[1]=d("h1",null,"设置",-1)),d("span",DD,[d("a",{href:re(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[B(K(re(t).name)+" ",1),d("small",null,"v"+K(re(t).version),1)],8,MD),u[0]||(u[0]=B("  ")),d("small",null,"by "+K(re(t).author.name),1)]),d("div",{class:"ce-config-main-close",onClick:r},"关闭")]),d("div",LD,[ge(re(KA),{ref_key:"refTabs",ref:i,options:{useUrlFragment:!1},onClicked:a,onChanged:l},{default:Ce(()=>[ge(re(fn),{id:re(_t).basic,name:re(dn).basic},{default:Ce(()=>[ge(mI)]),_:1},8,["id","name"]),ge(re(fn),{id:re(_t).clouddrive,name:re(dn).clouddrive},{default:Ce(()=>[ge(OI)]),_:1},8,["id","name"]),ge(re(fn),{id:re(_t).list,name:re(dn).list},{default:Ce(()=>[ge(ZI)]),_:1},8,["id","name"]),ge(re(fn),{id:re(_t).search,name:re(dn).search},{default:Ce(()=>[ge(lT)]),_:1},8,["id","name"]),ge(re(fn),{id:re(_t).menus,name:re(dn).menus},{default:Ce(()=>[ge(fO)]),_:1},8,["id","name"]),ge(re(fn),{id:re(_t).searchMenus,name:re(dn).searchMenus},{default:Ce(()=>[ge(UO)]),_:1},8,["id","name"]),ge(re(fn),{id:re(_t).playMenus,name:re(dn).playMenus},{default:Ce(()=>[ge(sD)]),_:1},8,["id","name"]),ge(re(fn),{id:re(_t).offline,name:re(dn).offline},{default:Ce(()=>[ge(am)]),_:1},8,["id","name"]),ge(re(fn),{id:re(_t).tools,name:re(dn).tools},{default:Ce(()=>[ge(YT)]),_:1},8,["id","name"]),ge(re(fn),{id:re(_t).anxia,name:re(dn).anxia},{default:Ce(()=>[ge(dD)]),_:1},8,["id","name"]),ge(re(fn),{id:re(_t).share,name:re(dn).share},{default:Ce(()=>[ge(_D)]),_:1},8,["id","name"]),ge(re(fn),{id:re(_t).about,name:re(dn).about},{default:Ce(()=>[ge(AD)]),_:1},8,["id","name"])]),_:1},512)])]),_:1},8,["is-open"])])]),_:1}))}}),RD=Ne(BD,[["__file","Config.vue"]]);async function ND(){const{host:e}=location;["115.com","anxia.com","115cdn.com","share.115.com"].includes(e)&&window.top===window.self&&(console.log(`[Cloud115 Enhancer - main] running in ${e}`),FD(),N5(),R5());}async function FD(){console.log("[Cloud115 Enhancer - main] injectUI");const e="cloud115ConfigMain",t=document.createElement("div");t.id=e,document.body.appendChild(t);const n=Wn(RD);n.component("VDropdown",Oo),n.directive("tooltip",Mx),n.mount(`#${e}`),mr("设置",async()=>{window.postMessage({event:gt.openConfig});}),mr("扫码获取Cookie",async()=>{window.postMessage({event:gt.openConfig,body:_t.tools});}),U5();}function Zn(e){return Array.isArray?Array.isArray(e):lg(e)==="[object Array]"}const UD=1/0;function jD(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-UD?"-0":t}function HD(e){return e==null?"":jD(e)}function Rn(e){return typeof e=="string"}function rg(e){return typeof e=="number"}function VD(e){return e===!0||e===!1||zD(e)&&lg(e)=="[object Boolean]"}function ag(e){return typeof e=="object"}function zD(e){return ag(e)&&e!==null}function un(e){return e!=null}function tl(e){return !e.trim().length}function lg(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const qD="Incorrect 'index' type",WD=e=>`Invalid value for key ${e}`,KD=e=>`Pattern length exceeds max of ${e}.`,GD=e=>`Missing ${e} property in key`,JD=e=>`Property 'weight' in key '${e}' must be a positive integer`,yf=Object.prototype.hasOwnProperty;class YD{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let i=ug(s);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight;}),this._keys.forEach(s=>{s.weight/=n;});}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function ug(e){let t=null,n=null,s=null,i=1,o=null;if(Rn(e)||Zn(e))s=e,t=wf(e),n=jl(e);else {if(!yf.call(e,"name"))throw new Error(GD("name"));const r=e.name;if(s=r,yf.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(JD(r));t=wf(r),n=jl(r),o=e.getFn;}return {path:t,id:n,weight:i,src:s,getFn:o}}function wf(e){return Zn(e)?e:e.split(".")}function jl(e){return Zn(e)?e.join("."):e}function QD(e,t){let n=[],s=!1;const i=(o,r,a)=>{if(un(o))if(!r[a])n.push(o);else {let l=r[a];const c=o[l];if(!un(c))return;if(a===r.length-1&&(Rn(c)||rg(c)||VD(c)))n.push(HD(c));else if(Zn(c)){s=!0;for(let u=0,p=c.length;ue.score===t.score?e.idx{this._keysMap[n.id]=s;});}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Rn(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n);}):this.docs.forEach((t,n)=>{this._addObject(t,n);}),this.norm.clear());}add(t){const n=this.size();Rn(t)?this._addString(t,n):this._addObject(t,n);}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n{let r=i.getFn?i.getFn(t):this.getFn(t,i.path);if(un(r)){if(Zn(r)){let a=[];const l=[{nestedArrIndex:-1,value:r}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(un(u))if(Rn(u)&&!tl(u)){let p={v:u,i:c,n:this.norm.get(u)};a.push(p);}else Zn(u)&&u.forEach((p,m)=>{l.push({nestedArrIndex:m,value:p});});}s.$[o]=a;}else if(Rn(r)&&!tl(r)){let a={v:r,n:this.norm.get(r)};s.$[o]=a;}}}),this.records.push(s);}toJSON(){return {keys:this.keys,records:this.records}}}function cg(e,t,{getFn:n=je.getFn,fieldNormWeight:s=je.fieldNormWeight}={}){const i=new Xu({getFn:n,fieldNormWeight:s});return i.setKeys(e.map(ug)),i.setSources(t),i.create(),i}function oM(e,{getFn:t=je.getFn,fieldNormWeight:n=je.fieldNormWeight}={}){const{keys:s,records:i}=e,o=new Xu({getFn:t,fieldNormWeight:n});return o.setKeys(s),o.setIndexRecords(i),o}function ir(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:i=je.distance,ignoreLocation:o=je.ignoreLocation}={}){const r=t/e.length;if(o)return r;const a=Math.abs(s-n);return i?r+a/i:a?1:r}function iM(e=[],t=je.minMatchCharLength){let n=[],s=-1,i=-1,o=0;for(let r=e.length;o=t&&n.push([s,i]),s=-1);}return e[o-1]&&o-s>=t&&n.push([s,o-1]),n}const Ls=32;function rM(e,t,n,{location:s=je.location,distance:i=je.distance,threshold:o=je.threshold,findAllMatches:r=je.findAllMatches,minMatchCharLength:a=je.minMatchCharLength,includeMatches:l=je.includeMatches,ignoreLocation:c=je.ignoreLocation}={}){if(t.length>Ls)throw new Error(KD(Ls));const u=t.length,p=e.length,m=Math.max(0,Math.min(s,p));let v=o,w=m;const _=a>1||l,R=_?Array(p):[];let L;for(;(L=e.indexOf(t,w))>-1;){let G=ir(t,{currentLocation:L,expectedLocation:m,distance:i,ignoreLocation:c});if(v=Math.min(G,v),w=L+u,_){let me=0;for(;me=ce;de-=1){let _e=de-1,Se=n[e.charAt(_e)];if(_&&(R[_e]=+!!Se),F[de]=(F[de+1]<<1|1)&Se,G&&(F[de]|=(j[de+1]|j[de])<<1|1|j[de+1]),F[de]&U&&(T=ir(t,{errors:G,currentLocation:_e,expectedLocation:m,distance:i,ignoreLocation:c}),T<=v)){if(v=T,w=_e,w<=m)break;ce=Math.max(1,2*m-w);}}if(ir(t,{errors:G+1,currentLocation:m,expectedLocation:m,distance:i,ignoreLocation:c})>v)break;j=F;}const z={isMatch:w>=0,score:Math.max(.001,T)};if(_){const G=iM(R,a);G.length?l&&(z.indices=G):z.isMatch=!1;}return z}function aM(e){let t={};for(let n=0,s=e.length;n{this.chunks.push({pattern:m,alphabet:aM(m),startIndex:v});},p=this.pattern.length;if(p>Ls){let m=0;const v=p%Ls,w=p-v;for(;m{const{isMatch:L,score:j,indices:T}=rM(t,w,_,{location:i+R,distance:o,threshold:r,findAllMatches:a,minMatchCharLength:l,includeMatches:s,ignoreLocation:c});L&&(m=!0),p+=j,L&&T&&(u=[...u,...T]);});let v={isMatch:m,score:m?p/this.chunks.length:1};return m&&s&&(v.indices=u),v}}class $s{constructor(t){this.pattern=t;}static isMultiMatch(t){return bf(t,this.multiRegex)}static isSingleMatch(t){return bf(t,this.singleRegex)}search(){}}function bf(e,t){const n=e.match(t);return n?n[1]:null}class lM extends $s{constructor(t){super(t);}static get type(){return "exact"}static get multiRegex(){return /^="(.*)"$/}static get singleRegex(){return /^=(.*)$/}search(t){const n=t===this.pattern;return {isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class uM extends $s{constructor(t){super(t);}static get type(){return "inverse-exact"}static get multiRegex(){return /^!"(.*)"$/}static get singleRegex(){return /^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return {isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class cM extends $s{constructor(t){super(t);}static get type(){return "prefix-exact"}static get multiRegex(){return /^\^"(.*)"$/}static get singleRegex(){return /^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return {isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class dM extends $s{constructor(t){super(t);}static get type(){return "inverse-prefix-exact"}static get multiRegex(){return /^!\^"(.*)"$/}static get singleRegex(){return /^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return {isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class fM extends $s{constructor(t){super(t);}static get type(){return "suffix-exact"}static get multiRegex(){return /^"(.*)"\$$/}static get singleRegex(){return /^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return {isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class pM extends $s{constructor(t){super(t);}static get type(){return "inverse-suffix-exact"}static get multiRegex(){return /^!"(.*)"\$$/}static get singleRegex(){return /^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return {isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class fg extends $s{constructor(t,{location:n=je.location,threshold:s=je.threshold,distance:i=je.distance,includeMatches:o=je.includeMatches,findAllMatches:r=je.findAllMatches,minMatchCharLength:a=je.minMatchCharLength,isCaseSensitive:l=je.isCaseSensitive,ignoreLocation:c=je.ignoreLocation}={}){super(t),this._bitapSearch=new dg(t,{location:n,threshold:s,distance:i,includeMatches:o,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c});}static get type(){return "fuzzy"}static get multiRegex(){return /^"(.*)"$/}static get singleRegex(){return /^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class pg extends $s{constructor(t){super(t);}static get type(){return "include"}static get multiRegex(){return /^'"(.*)"$/}static get singleRegex(){return /^'(.*)$/}search(t){let n=0,s;const i=[],o=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+o,i.push([s,n-1]);const r=!!i.length;return {isMatch:r,score:r?0:1,indices:i}}}const Hl=[lM,pg,cM,dM,pM,fM,uM,fg],vf=Hl.length,hM=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,mM="|";function gM(e,t={}){return e.split(mM).map(n=>{let s=n.trim().split(hM).filter(o=>o&&!!o.trim()),i=[];for(let o=0,r=s.length;o!!(e[Br.AND]||e[Br.OR]),vM=e=>!!e[ql.PATH],_M=e=>!Zn(e)&&ag(e)&&!Wl(e),_f=e=>({[Br.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function hg(e,t,{auto:n=!0}={}){const s=i=>{let o=Object.keys(i);const r=vM(i);if(!r&&o.length>1&&!Wl(i))return s(_f(i));if(_M(i)){const l=r?i[ql.PATH]:o[0],c=r?i[ql.PATTERN]:i[l];if(!Rn(c))throw new Error(WD(l));const u={keyId:jl(l),pattern:c};return n&&(u.searcher=zl(c,t)),u}let a={children:[],operator:o[0]};return o.forEach(l=>{const c=i[l];Zn(c)&&c.forEach(u=>{a.children.push(s(u));});}),a};return Wl(e)||(e=_f(e)),s(e)}function xM(e,{ignoreFieldNorm:t=je.ignoreFieldNorm}){e.forEach(n=>{let s=1;n.matches.forEach(({key:i,norm:o,score:r})=>{const a=i?i.weight:null;s*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(t?1:o));}),n.score=s;});}function CM(e,t){const n=e.matches;t.matches=[],un(n)&&n.forEach(s=>{if(!un(s.indices)||!s.indices.length)return;const{indices:i,value:o}=s;let r={indices:i,value:o};s.key&&(r.key=s.key.src),s.idx>-1&&(r.refIndex=s.idx),t.matches.push(r);});}function kM(e,t){t.score=e.score;}function SM(e,t,{includeMatches:n=je.includeMatches,includeScore:s=je.includeScore}={}){const i=[];return n&&i.push(CM),s&&i.push(kM),e.map(o=>{const{idx:r}=o,a={item:t[r],refIndex:r};return i.length&&i.forEach(l=>{l(o,a);}),a})}class Bo{constructor(t,n={},s){this.options={...je,...n},this.options.useExtendedSearch,this._keyStore=new YD(this.options.keys),this.setCollection(t,s);}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Xu))throw new Error(qD);this._myIndex=n||cg(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight});}add(t){un(t)&&(this._docs.push(t),this._myIndex.add(t));}remove(t=()=>!1){const n=[];for(let s=0,i=this._docs.length;s-1&&(l=l.slice(0,n)),SM(l,this._docs,{includeMatches:s,includeScore:i})}_searchStringList(t){const n=zl(t,this.options),{records:s}=this._myIndex,i=[];return s.forEach(({v:o,i:r,n:a})=>{if(!un(o))return;const{isMatch:l,score:c,indices:u}=n.searchIn(o);l&&i.push({item:o,idx:r,matches:[{score:c,value:o,norm:a,indices:u}]});}),i}_searchLogical(t){const n=hg(t,this.options),s=(a,l,c)=>{if(!a.children){const{keyId:p,searcher:m}=a,v=this._findMatches({key:this._keyStore.get(p),value:this._myIndex.getValueForItemAtKeyId(l,p),searcher:m});return v&&v.length?[{idx:c,item:l,matches:v}]:[]}const u=[];for(let p=0,m=a.children.length;p{if(un(a)){let c=s(n,a,l);c.length&&(o[l]||(o[l]={idx:l,item:a,matches:[]},r.push(o[l])),c.forEach(({matches:u})=>{o[l].matches.push(...u);}));}}),r}_searchObjectList(t){const n=zl(t,this.options),{keys:s,records:i}=this._myIndex,o=[];return i.forEach(({$:r,i:a})=>{if(!un(r))return;let l=[];s.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:r[u],searcher:n}));}),l.length&&o.push({idx:a,item:r,matches:l});}),o}_findMatches({key:t,value:n,searcher:s}){if(!un(n))return [];let i=[];if(Zn(n))n.forEach(({v:o,i:r,n:a})=>{if(!un(o))return;const{isMatch:l,score:c,indices:u}=s.searchIn(o);l&&i.push({score:c,key:t,value:o,idx:r,norm:a,indices:u});});else {const{v:o,n:r}=n,{isMatch:a,score:l,indices:c}=s.searchIn(o);a&&i.push({score:l,key:t,value:o,norm:r,indices:c});}return i}}Bo.version="7.0.0";Bo.createIndex=cg;Bo.parseIndex=oM;Bo.config=je;Bo.parseQuery=hg;bM(wM);const $M={class:"ce-goto-input-wrap"},EM=["disabled"],PM=["disabled"],AM={class:"ce-goto-sug"},IM=["onMousedown","sid"],TM={class:"ce-goto-sug-index"},OM={class:"ce-goto-sug-prefix"},DM={class:"ce-goto-sug-name"},MM=Te({__name:"GotoPath",setup(e){const t=ne(!1),n=ne(!1),s=ne(null),i=ne(null),o=ne(""),r=ne([]),a=ne(!1),l=ot(()=>o.value.trim().length>0);let c="";Yt(async()=>{var F;t.value=!0,(F=i.value)==null||F.focus(),window.addEventListener("message",async ee=>{if(ee.data.event===gt.listRendered){const _e=await Gt(!1);_e!==c&&(r.value=[],await G(!1)),c=_e;}});});async function u(F){if(console.log("[handleKeydown]",F.key),$f(F),F.key==="Enter"){M.value>-1?we():await ce(o.value);return}if(F.key==="Escape"){await H();return}["ArrowUp","ArrowDown"].includes(F.key)?U(F):p(F);}const p=bt(async F=>{m();},200);async function m(){try{r.value=[],await G(!1);const F={keyword:"",parentId:await Gt(!1),parentPath:rl(),isSubOfCurrent:!0};console.log("[getSug] searchData:",F);const ee=await j(F,!1);if(console.log("[searchData] items:",ee),!ee.length){ae({icon:"warning",text:"没有匹配的建议",timer:1500,position:"top-right"});return}const de=await v(ee,F);console.log("[searchData] sugs:",de),r.value=de,M.value=-1,await G(de.length>0);}catch(F){console.warn(F),await G(!1),ae({icon:"error",text:F.toString(),timer:2e3,position:"top-right"});}}async function v(F,ee){const de=[];for(let $e=0;$e{O.score===void 0?(console.warn("[toSug] r.score is undefined:",O),xe=!0,O.score=0):O.score!==void 0&&isNaN(O.score)&&(console.warn("[toSug] r.score is NaN:",O),xe=!0,O.score=0);}),xe&&tt.sort((O,Ve)=>O.score-Ve.score),tt.map(O=>O.item)}return de}const w=new Map,_=new Map;async function R(F){return w.get(F)||!1}async function L(F,ee){w.set(F,ee);}async function j(F,ee){const de=_.get(F.parentPath);if(de)return console.log(`[getSubDirs] path "${F.parentPath}" is cached`),de.items;if(await R(F.parentPath))return console.warn(`[getSubDirs] path "${F.parentPath}" is loading`),[];await L(F.parentPath,!0);try{const _e=Bs({cid:F.parentId,limit:1150,show_dir:Yl.true}),Se=await Xf(_e);if(!Se.count)return [];const Pe=[];for(let $e=0;$e=r.value.length&&(ee=r.value.length-1),M.value=ee,r.value.forEach((Pe,$e)=>{Pe.active=$e===ee;});const de=r.value[ee];if(!de)return;const _e=(Se=s.value)==null?void 0:Se.querySelector(`[sid="${de.id}"]`);_e==null||_e.scrollIntoView();}async function z(){var F;o.value="",(F=i.value)==null||F.focus(),await m();}async function G(F){var ee;a.value=F,F&&((ee=i.value)==null||ee.focus());}async function me(F){if(Mb(F))return "0";const ee=rl();return F=Vr(F,cs.unix),F=il(ee,F,cs.unix),await lo(F,!0)}async function we(){const F=r.value[M.value];if(!F)return;const ee=yr([F.prefix,F.name],cs.unix);console.log("[gotoByCurrentSug] path:",ee),await ce(ee);}async function ce(F){var ee;if(!n.value){F=F.trim(),ae({text:"正在获取路径信息...",timer:0,position:"top-right"}),ue.showLoading(),n.value=!0;try{const de=await me(F);unsafeWindow.Main.GotoDir(1,de,0,""),ae({icon:"success",text:"获取路径信息成功,现在打开...",timer:1e3,position:"top-right"}),(ee=i.value)==null||ee.focus(),r.value=[],M.value=-1;}catch(de){ue.fire({icon:"error",title:"跳转失败",text:de.message});}finally{ue.hideLoading(),n.value=!1;}}}async function H(){if(M.value>-1)r.value.forEach(F=>F.active=!1),M.value=-1,await G(!1);else {const F=document.querySelector("#ceGotoPathApp");F==null||F.style.setProperty("display","none");const ee=document.querySelector(".ce-goto-path-active");ee==null||ee.classList.remove("ce-goto-path-active"),t.value=!1;}}return (F,ee)=>(S(),I("div",{ref_key:"refMain",ref:s,class:Fe(["ce-goto-main",{"ce-goto-sug-shown":a.value}])},[d("div",$M,[oe(d("input",{ref_key:"refInput",ref:i,"onUpdate:modelValue":ee[0]||(ee[0]=de=>o.value=de),class:"ce-goto-input",placeholder:"回车确认跳转 | Esc关闭 | 可搜索当前目录的子目录显示下拉列表,上下方向键选择",onKeydown:u},null,544),[[Ke,o.value]]),d("button",{type:"button",class:"ce-goto-input-btn","data-cmd":"clear",onClick:z,title:"清空输入框",disabled:!l.value},"清空",8,EM),d("button",{type:"button",class:"ce-goto-input-btn","data-cmd":"toggle",onClick:ee[1]||(ee[1]=de=>G(!1)),title:"收起建议列表",disabled:!a.value},"收起",8,PM)]),d("div",AM,[(S(!0),I(Le,null,Je(r.value,(de,_e)=>(S(),I("div",{key:_e,class:Fe(["ce-goto-sug-item",{active:de.active}]),onMousedown:pn(Se=>T(de,Se),["left","stop","prevent"]),sid:de.id},[d("span",TM,K(_e+1),1),d("span",OM,K(de.prefix),1),ee[2]||(ee[2]=d("span",{class:"ce-goto-sep"},"/",-1)),d("span",DM,K(de.name),1)],42,IM))),128))])],2))}}),LM=Ne(MM,[["__file","GotoPath.vue"]]);async function BM(e){if(!In())return;const t=await lt("#js_top_header_file_path_box");e.showGotoButtonOnPathBar&&NM(e,t),e.showCopyButtonOnPathBar&&RM(e,t);}async function RM(e,t){const n="ceCopyPath";let s=t.querySelector(`#${n}`);const i=async()=>{const r=rl();yt(r),ae({icon:"success",text:"路径已复制",timer:1e3,position:"top-right"});};s||(s=await(async()=>{const r=ft(``);return r.addEventListener("click",i),r})(),t.prepend(s));}async function NM(e,t){const n=t.querySelector(".top-file-path"),s="ceGotoPath";let i=t.querySelector(`#${s}`);const o=Wn(LM),r="ceGotoPathApp",a=async()=>{await l();},l=async()=>{if(t.classList.toggle("ce-goto-path-active"),t.classList.contains("ce-goto-path-active"))await c();else {const m=t.querySelector(`#${r}`);m&&(m.style.display="none");}},c=async()=>{let m=t.querySelector(`#${r}`);m||(m=await p(),n.after(m)),m.querySelector(".ce-goto-main")?setTimeout(()=>{const w=document.querySelector(".ce-goto-input");w==null||w.focus();},200):o.mount(m),m.style.display="block";},u=async()=>{const m=document.createElement("button");return m.className="pure-button button-mini ce-path-btn text-primary",m.id=s,m.title=`
              【这是一个实验功能】
              跳转到指定路径。使用:
              - 空白、单个斜杠: 根目录
              - 相对路径1: 开头不带斜杠,当前目录下的子路径
              - 相对路径2: 开头带有../,当前目录的上级目录,可以多级
              - 绝对路径: 开头带有斜杠,从根目录开始的路径
        
              斜杠风格不限,支持模糊搜索当前目录的子目录。
              回车键跳转,Esc键关闭输入框。`,m.innerHTML="跳转",m.addEventListener("click",a),m},p=async()=>ft(`
        `);i||(i=await u(),t.prepend(i));}async function FM(e){const{fileSelectorDefaultView:t}=e;t&&(console.log("[setSelectorView]",t),unsafeWindow.localStorage.setItem("FS_view",t));}async function UM(e){if(!e.noUpdateDirAfterRename||window!==window.top)return;let t=!0,n="",s=!1;const i=on(),o=Core.FileReNameDG.Show,r=i.Core.Dir.Rename,a=i.Core.FileConfig.DataAPI.UpdateDir;i.Core.FileReNameDG.Show=async(...l)=>{n=l[0],s=!0,o(...l);},i.Core.Dir.Rename=async(...l)=>{n=l[1],s=!1,r(...l);},i.Core.FileConfig.DataAPI.UpdateDir=async l=>{if(t){const c=Ii();let u=`li[file_id="${n}"]`;s||(u=`li[cate_id="${n}"]`);const p=c.find(u);if(p.length){if(p.hasClass("ce-temp-cur-dir")){console.warn("[list handleNoUpdateDirAfterRename] $file is ce-temp-cur-dir"),ae({icon:"warning",text:"重命名的是当前目录,忽略「重命名后不刷新列表」选项"}),a(l);return}if(ae({icon:"info",text:"启用了「重命名后不刷新列表」选项,不会刷新文件列表"}),p.find(".file-modified span").text("刚刚"),!s){const m=await Lt(n),{file_name:v}=m;p.attr("cate_name",v),p.attr("title",v);const w=p.find(".file-name a.name");w.length?(w.attr("title",v).text(v),w.text(v)):console.warn("[list handleNoUpdateDirAfterRename] $name not found");}}else console.warn("[list handleNoUpdateDirAfterRename] $file not found");}else a(l);},window.addEventListener("message",async l=>{var u;if(l.data.event===gt.topDomChanged){const p=rt("div.dialog-box.window-current > div.dialog-header > h3");if(p&&((u=p.textContent)!=null&&u.includes("重命名"))){const m=rt("div.dialog-box.window-current .file-rename");if(!m){console.warn("[list handleNoUpdateDirAfterRename] .file-rename not found");return}const v=document.createElement("div"),w=`

        在使用当前目录增强菜单项「重命名文件夹」时会忽略该选项。

        `;v.innerHTML=w,m.insertAdjacentElement("afterend",v);const _=rt("#cbNoUpdateDir");_&&(_.checked=t,_.addEventListener("change",()=>{t=_.checked;}));}}});}async function jM(e){if(!e.noReloadAfterMove||window!==window.top)return;let t=!0,n=[];const s=on(),i=s.Core.FileMenu.DoEvent,o=s.Core.FileConfig.DataAPI.Reload;s.Core.FileConfig.DataAPI.Reload=async(...r)=>{if(t){ae({icon:"info",text:"启用了「移动后不刷新文本列表」选项,不会刷新文件列表"});for(let a=0;a{n=r[0],i(...r);},window.addEventListener("message",async r=>{var p;if(r.data.event!==gt.topDomChanged)return;const l=rt("div.dialog-box.window-current > div.dialog-header > h3");if(!l||!((p=l.textContent)!=null&&p.includes("打开要移动")))return;const c=rt("div.dialog-box.window-current .select-footer");if(!c){console.warn("[list handleNoUpdateDirAfterMove] .select-footer not found");return}let u=rt("#cbNoReload");if(!u){const m=document.createElement("div"),v=`

        启用该功能并且执行过移动操作后,会影响列表的全选功能,此时如需全选,请先手动刷新列表!

        `;m.innerHTML=v,c.insertAdjacentElement("afterend",m),u=rt("#cbNoReload"),u&&(u.checked=t,u.addEventListener("change",()=>{t=u.checked;}));}});}async function HM(e){if(window!==window.top)return;let t=e.claimSelectedAfterCreateDir;const n=on(),s=n.Core.Dir.Create;n.Core.Dir.Create=async(o,r,a)=>{const l=await An(!0);l.length&&i(),s(o,r,async c=>{if(console.warn("Directory created:",c),t&&l.length){const u=l.map(p=>p.id);try{const p=await ep(c.cid,u);console.log("[list claimSelectedAfterCreateDir] moveFiles result:",p),p.state?ae({icon:"success",text:"移动选中的文件到新文件夹成功"}):ue.fire({icon:"error",html:`移动选中的文件到新文件夹失败: ${Hb(p)}`});}catch(p){console.error("[list claimSelectedAfterCreateDir] moveFiles error:",p),ue.fire({icon:"error",html:`移动选中文件到新文件夹时出错: ${p.toString()}`});}}a?a(c):n.wangpan.Main.GotoDir(1,c.cid,0,"");});};const i=async o=>{var u;const r=await lt("div.dialog-box.window-current > div.dialog-header > h3");if(!r||!((u=r.textContent)!=null&&u.includes("新建文件夹")))return;const a=rt("div.dialog-box.window-current .dialog-action");if(!a){console.warn("[list claimSelectedAfterCreateDir] .dialog-action not found");return}const l="cbClaim";let c=rt(`#${l}`);if(!c){const p=document.createElement("div"),m=`

        创建新文件夹成功后,自动移动当前选中的文件或文件夹到新该文件夹下。

        `;p.innerHTML=m,a.insertAdjacentElement("beforebegin",p),c=rt(`#${l}`),c&&(c.checked=t,c.addEventListener("change",()=>{t=c.checked;}));}};}async function VM(){const e=await da(),{host:t,search:n}=location;/115\.com$/.test(t)&&(console.log("[List] running...",e),(In()||xs())&&dC(),BM(e),FM(e),setTimeout(async()=>{Qx().then(()=>{UM(e),jM(e),HM(e);}).catch(s=>{console.error("awaitDataAPI error:",s);});},2e3),Xx(e),Zx(e),eC(),tC(e),sC(e),iC());}async function zM(e){const t=await lt(".top-file-path");qM(e,t),WM(e,t);}async function qM(e,t){if(!e.showSelectTargetButtonOnPathBar)return;console.log("[showSelectTargetButtonOnPathBar]");const n="ce-btn-select";let s=t.querySelector(`.${n}`);const i=async()=>{unsafeWindow.parent.Core.FileSelectDG.Open((r,a)=>{console.log("[Core.FileSelectDG.Open]",r,a);const l=r[r.length-1],c=ft(` `);t.querySelector(".file-path").append(c),c.click();},{select:1,nf:1,show_record:0,show_copy:1,btn_txt:"在该目录下搜索",select_txt:"搜索"});};s||(s=await(async()=>{const r=ft(` 选择目录 `);return r.addEventListener("click",i),r})(),t.append(s));}async function WM(e,t){if(!e.showSelectAllDir)return;const n="ce-btn-select-dir";let s=t.querySelector(`.${n}`);const i=async r=>{r.preventDefault(),r.stopPropagation();const a=[],l=document.querySelectorAll('li[rel="item"][file_type="0"]');for(let c=0;c{const a=ft(`