// ==UserScript== // @name 115不大助手 (full) // @namespace com.cloud115.enhancer // @version 0.6.20 // @author 生瓜太保 // @description Make 115 taerg again! // @license MIT // @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/* // @connect * // @grant GM_addStyle // @grant GM_deleteValue // @grant GM_getValue // @grant GM_openInTab // @grant GM_registerMenuCommand // @grant GM_setClipboard // @grant GM_setValue // @grant GM_xmlhttpRequest // @grant unsafeWindow // @run-at document-body // @downloadURL none // ==/UserScript== (o=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.innerText=o,document.head.appendChild(e)})(`@charset "UTF-8";.pure-button{display:inline-block;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#000c;border:none transparent;background-color:#e6e6e6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{margin:0;border-radius:0;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td{background-color:#f2f2f2}.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}/*! Pure v3.0.0 Copyright 2013 Yahoo! Licensed under the BSD License. https://github.com/pure-css/pure/blob/master/LICENSE */.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input[type=color]:focus,.pure-form input[type=date]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=email]:focus,.pure-form input[type=month]:focus,.pure-form input[type=number]:focus,.pure-form input[type=password]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=text]:focus,.pure-form input[type=time]:focus,.pure-form input[type=url]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129fea}.pure-form input:not([type]):focus{outline:0;border-color:#129fea}.pure-form input[type=checkbox]:focus,.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus{outline:thin solid #129FEA;outline:1px auto #129FEA}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input[type=color][disabled],.pure-form input[type=date][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=email][disabled],.pure-form input[type=month][disabled],.pure-form input[type=number][disabled],.pure-form input[type=password][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=text][disabled],.pure-form input[type=time][disabled],.pure-form input[type=url][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input:not([type])[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input[type=color],.pure-form-stacked input[type=date],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=email],.pure-form-stacked input[type=file],.pure-form-stacked input[type=month],.pure-form-stacked input[type=number],.pure-form-stacked input[type=password],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=text],.pure-form-stacked input[type=time],.pure-form-stacked input[type=url],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-stacked input:not([type]){display:block;margin:.25em 0}.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width :480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=color],.pure-group input[type=date],.pure-group input[type=datetime-local],.pure-group input[type=datetime],.pure-group input[type=email],.pure-group input[type=month],.pure-group input[type=number],.pure-group input[type=password],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=text],.pure-group input[type=time],.pure-group input[type=url],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}.v-popper--theme-tooltip .v-popper__inner{background:rgba(0,0,0,.8);color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.text-center{text-align:center}.text-bold{font-weight:700}.text-cross{text-decoration:line-through}.text-primary{color:#1890ff}.text-success{color:#13ce66}.text-warning{color:#ffba00}.text-danger{color:#ff4949}.text-info{color:#909399}.ce-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}input.ce-checkbox{width:20px;height:20px;cursor:pointer}.ce-hidden{display:none!important}.tabs-component .tabs-component-tabs{border:solid 1px #ddd;border-radius:6px;margin-bottom:5px}@media (min-width: 700px){.tabs-component .tabs-component-tabs{border:0;align-items:stretch;display:flex;justify-content:flex-start;margin-bottom:1px}}.tabs-component .tabs-component-tabs .tabs-component-tab{color:#999;font-size:14px;font-weight:600;margin-right:0;list-style:none;border-bottom:dotted 1px #ddd}.tabs-component .tabs-component-tabs .tabs-component-tab:hover{color:#666}.tabs-component .tabs-component-tabs .tabs-component-tab.is-disabled *{color:#cdcdcd;cursor:not-allowed!important}.tabs-component .tabs-component-tabs .tabs-component-tab.is-active{color:#000}.tabs-component .tabs-component-tabs .tabs-component-tab .tabs-component-tab-a{align-items:center;color:inherit;display:flex;padding:.75em 1em;text-decoration:none}@media (min-width: 700px){.tabs-component .tabs-component-tabs .tabs-component-tab{background-color:#fff;border:solid 1px #ddd;border-radius:3px 3px 0 0;margin-right:.5em;transform:translateY(2px);transition:transform .3s ease}.tabs-component .tabs-component-tabs .tabs-component-tab.is-active{border-bottom:solid 1px #fff;z-index:2;transform:translateY(2px)}}.tabs-component .tabs-component-panels{padding:1em 0}@media (min-width: 700px){.tabs-component .tabs-component-panels{background-color:#fff;border:solid 1px #ddd;border-radius:0 6px 6px;box-shadow:0 0 10px #0000000d;padding:1em 2em}}.tabs-component .tabs-component-btn{cursor:pointer;background:#e1ecf4;border-radius:3px;border:1px solid #7aa7c7;padding:4px 8px;color:#39739d}.tabs-component .tabs-component-btn:hover{background-color:#b3d3ea;color:#2c5777}.tabs-component .tabs-component-btn:active{background-color:#a0c7e4;box-shadow:none;color:#2c5777}.ce-tips{background:#eee;border-radius:4px;padding:4px;font-size:12px;color:#595959;margin-bottom:10px}.ce-hr{border:0;height:1px;background-image:linear-gradient(to right,rgba(0,0,0,0),#ccc,rgba(0,0,0,0))}.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}.ce-swal-text-left{text-align:left!important}div[class^=fp-].hidden-watermark{display:none!important}.ce-custom-url-help{position:fixed;top:0;left:0;z-index:10000;width:430px;height:100%;background:#fff;font-size:12px}.ce-custom-url-help .ce-custom-url-help-body{height:80%;overflow-y:auto;padding:20px 20px 300px}.ce-custom-url-help h1 a{float:right;color:#1e87f0;font-size:14px}.ce-custom-url-help h1 a:hover{color:#1e87f0;text-decoration:underline}.ce-custom-url-help table{width:100%;margin-bottom:20px}.ce-custom-url-help .ce-variable{cursor:pointer;color:#1e87f0;font-size:14px}.ce-custom-url-help .ce-variable:hover{color:#093d71}.ce-menu:not(.sub-item){background:#fffcea}.ce-menu img.ce-menu-icon{float:left;width:12px;height:12px;margin-right:4px}.ce-menu.list-item-hover-menu i.ce-menu-icon.icon-operate{scale:.75;margin-top:-4px}.ce-menu.list-item-hover-menu.ce-menu-parent{position:relative;float:left;cursor:pointer}.ce-menu.list-item-hover-menu.ce-menu-parent:after{content:"";position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background:rgba(39,119,248,.8);pointer-events:none}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-trigger{padding:0 12px;color:#2777f8}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-trigger:before{content:"\\2228";margin-right:4px;font-size:12px}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;left:0;padding:4px;border-radius:4px;display:none;text-align:center;width:160px}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub{margin:2px 0;background:#eee;color:#2877f8;width:100%;border-radius:4px;padding:6px 12px;line-height:12px;box-sizing:border-box}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub:hover{background-color:#f3e882}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub:after{display:none}.ce-menu.selection-menu.ce-menu-parent{position:relative;float:left;cursor:pointer}.ce-menu.selection-menu.ce-menu-parent:after{content:"";position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background:rgba(39,119,248,.8);pointer-events:none}.ce-menu.selection-menu.ce-menu-parent .ce-menu-trigger{color:#2777f8}.ce-menu.selection-menu.ce-menu-parent .ce-menu-trigger:before{content:"\\2228";margin-right:4px;font-size:12px}.ce-menu.selection-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#fff}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:30px;left:0;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub{color:#2877f8;width:60px;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding-left:4px;padding-right:4px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub span{font-weight:400;float:inherit}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub .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.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;width:60px;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding:4px 8px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub span{font-weight:400;float:inherit}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub:hover{background-color:#f3e882}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-icon{width:18px;height:18px;margin-right:8px}.ce-menu.list-item-context-menu.ce-menu-parent{position:relative;cursor:pointer;padding:6px 0}.ce-menu.list-item-context-menu.ce-menu-parent:after{content:">";position:absolute;opacity:.5;right:10px;pointer-events:none}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-trigger{margin-left:43px;color:#2777f8}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened{background:#f3e882}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#1c0ccf}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened:after{opacity:0}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:0;left:100%;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub{color:#2877f8;width:60px;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding:4px 8px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub span{font-weight:400;float:inherit}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub:hover{background-color:#f3e882}.context-menu.menu-upward{max-height:400px!important;overflow:unset!important}.ce-menu-divider{height:1px!important;display:block!important;background-color:#edeeef!important}.ce-menu-divider:after{display:none!important}.list-item-hover-menu .ce-menu-divider{height:6px!important;background-color:transparent!important}div#js_operate_box.only-icon li[menu] span{display:none}.list-contents{padding-bottom:300px}.header-name a.ce-open-dir-context-menu{cursor:pointer;background:#f2f4f8;border-radius:4px;padding:0 6px;color:#1890ff;margin-left:10px}.header-size a.ce-size-sort{cursor:pointer;background:#f2f4f8;border-radius:4px;padding:0 6px;color:#8c97a0;margin-left:10px}.header-size a.ce-size-sort i{display:none}.header-size a.ce-size-sort.by-desc{background-color:#fdc94a;color:#1a2734}.header-size a.ce-size-sort.by-desc i.icon-sort-desc{display:inline-block}.header-size a.ce-size-sort.by-asc{background-color:#fdc94a;color:#1a2734}.header-size a.ce-size-sort.by-asc i.icon-sort-asc{display:inline-block}.header-size a.ce-size-sort.ce-size-sort-ing{cursor:no-drop}.ce-offline-config{max-height:70vh;overflow-y:auto}.ce-offline-config .ce-tips{margin-top:20px;margin-left:56px}.ce-offline-config .pure-form-message{margin-left:56px}.ce-offline-exporter{position:absolute;left:140px;top:62px;background:#f4f2ff;padding:6px 10px;border-radius:4px}.ce-offline-exporter button{margin-right:6px}.offline-exporter-config-form{width:550px;padding:10px}.swal2-input#swalDeleteFile{width:20px;padding:0;height:20px;margin:0;vertical-align:sub;cursor:pointer}body.ce-list-s #js-main{padding-top:40px}body.ce-list-s .ce-offline-exporter{top:92px}.ce-offline-searcher{position:absolute;left:140px;top:58px;background:#f4f2ff;padding:4px 10px;border-radius:4px}.ce-offline-searcher.loading form{opacity:.5;pointer-events:none;cursor:wait}.ce-offline-searcher fieldset{padding:0}.ce-offline-searcher .clearable-wrap{position:relative;width:320px}.ce-offline-searcher .clearable-wrap.is-empty .btn-clear{display:none}.ce-offline-searcher .clearable-wrap input{width:300px;padding-right:35px!important}.ce-offline-searcher .clearable-wrap .btn-clear{position:absolute;right:30px;top:4px;display:block}.ce-offline-searcher .form-item{display:inline-block;margin-right:10px;vertical-align:middle}.ce-offline-searcher .form-item input{padding:.3em}.ce-offline-searcher .form-item select{height:2em;padding:.1em .3em}.ce-offline-searcher .form-item label{margin-right:5px}.ce-offline-searcher .help-trigger{font-size:12px}.ce-offline-searcher .list{display:none}.ce-offline-searcher .stop-on-found{width:16px;height:16px;vertical-align:middle;cursor:pointer}.ce-offline-searcher .search-tips{position:fixed;top:146px;bottom:30px;left:0;width:100%;background:#fff;z-index:9999}.ce-offline-searcher .search-tips .tips-body{padding:20px;position:absolute;top:70px;left:50%;transform:translate(-50%,-50%);background:#f4f2ff;width:80%;border-radius:6px}.cloud115-page-offline.ce-list-m .list-contents .file-name-wrap .desc-tips{left:75px}.cloud115-page-offline.ce-list-m li.ce-task-trouble .info-hash{left:210px!important}.cloud115-page-offline li .ce-buttons{float:left;margin-right:6px}.cloud115-page-offline .ce-checkbox{width:30px}.cloud115-page-offline .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp .info-hash{position:absolute;left:47px;top:25px;color:#ababab;cursor:pointer}.cloud115-page-offline #js-warp .info-hash.hover{color:#6ab2ff}.cloud115-page-offline #js-warp li.ce-selected:before{background:#ffe296!important}.cloud115-page-offline #js-warp li.ce-show-checkbox .info-hash{left:60px}.cloud115-page-offline #js-warp li.ce-show-checkbox .file-name{margin-left:15px}.cloud115-page-offline #js-warp li.ce-show-checkbox .file-type{left:25px!important}.cloud115-page-offline #js-warp li .ce-checkbox{width:30px;position:absolute;left:0}.cloud115-page-offline #js-warp li .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp li .desc-tips{position:absolute;left:60px;top:25px}.cloud115-eh-cleaner-trigger .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f}.v-popper.v-popper--theme-dropdown{display:inline-block}.group-manager{width:750px}.group-manager a{font-size:12px;padding:0 4px;margin-right:8px}.group-manager .group-label{color:#fff;font-size:12px;margin-right:10px;border-radius:4px;padding:2px 8px;background:#66acf9}.group-manager .label-readonly{background:#c93c3c;color:#fff;padding:0 4px;border-radius:4px;vertical-align:middle;margin-right:6px}.append-form{background:#fff;width:350px;padding:10px;border-radius:4px}.append-form input,.append-form textarea{width:100%}.group-form{background:#fff;width:540px;padding:10px;border-radius:4px}.group-form input,.group-form textarea{width:100%}.group-form .filter-label{cursor:pointer;padding:0 4px;text-decoration:underline}.group-form input#groupLabel{display:inline-block}.groups-list{background:#fff;width:565px;padding:10px;border-radius:4px;box-shadow:0 0 4px #d8d8d8}.groups-list table th,.groups-list table td{padding:4px 6px}.groups-list ul li{border-bottom:1px solid #eee;padding:4px}.groups-list ul li:nth-last-child(1){border-bottom:none}.groups-list span{display:inline-block}.groups-list .p-index{width:30px}.groups-list .p-label{width:120px}.groups-list .p-actions button{margin-right:8px}.group-confirm-delete{padding:20px}#cloud115Cleaner{margin-left:10px}.cloud115-eh-cleaner .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f;display:none}.cloud115-eh-cleaner .actions-bar{padding-bottom:10px}.cloud115-eh-cleaner .actions-bar .title{font-size:18px;font-weight:700;color:#15110c}.cloud115-eh-cleaner .actions-bar .close{margin-left:20px;margin-right:10px;color:#f40}.cloud115-eh-cleaner .actions-bar i.tp-folder{width:18px;height:18px;vertical-align:sub}.cloud115-eh-cleaner-help{position:fixed;top:60px;right:0;bottom:0;width:470px;z-index:1051;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.cloud115-eh-cleaner-help ul{list-style:decimal}.cloud115-eh-cleaner-drawer{position:fixed;top:60px;right:0;bottom:0;left:260px;background:#fff;z-index:1050;padding:10px 20px 200px;overflow-y:auto;box-shadow:-2px 2px 6px #bbb}.cloud115-eh-cleaner-drawer.loading{cursor:wait}.cloud115-eh-cleaner-drawer.loading button,.cloud115-eh-cleaner-drawer.loading input{cursor:no-drop;pointer-events:none}.cloud115-eh-cleaner-drawer .config-toggle{display:inline-block;background:#eee;border-radius:4px;opacity:.2;padding:2px 4px;cursor:pointer}.cloud115-eh-cleaner-drawer .config-toggle.hover{opacity:.7}.cloud115-eh-cleaner-drawer .by-box .by-header{padding-bottom:10px}.cloud115-eh-cleaner-drawer .by-box .by-header .title{font-size:16px;margin-right:8px;color:#0078e6;font-weight:400}.cloud115-eh-cleaner-drawer .by-box .by-header .filter-size{width:100px;font-size:14px;font-weight:700;color:#0078e6;text-indent:6px}.cloud115-eh-cleaner-drawer .by-box .pure-button-group{display:inline-block}.cloud115-eh-cleaner-drawer .by-box .pure-button-group .pure-button{vertical-align:inherit}.cloud115-eh-cleaner-drawer .by-box .pattern-groups{width:750px;text-align:right}.cloud115-eh-cleaner-drawer .by-box .pattern-groups a{font-size:12px;padding:0 4px;margin-right:8px}.cloud115-eh-cleaner-drawer .by-box table tr.active{background:#f7ffc3}.cloud115-eh-cleaner-drawer .by-box table tr.is-dir .pattern{color:#f40}.cloud115-eh-cleaner-drawer .by-box table tr th,.cloud115-eh-cleaner-drawer .by-box table tr td{padding:.5em;font-size:12px}.cloud115-eh-cleaner-drawer .by-box table td a{color:#2877f8}.cloud115-eh-cleaner-drawer .by-box table td .tp-folder{width:16px;height:16px;vertical-align:sub}.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-414bf5e0]{position:fixed;top:60px;right:0;bottom:0;width:360px;z-index:1051;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.ce-empty-cleaner-help ul[data-v-414bf5e0]{list-style:decimal}#cloud115EmptyCleaner{margin-left:10px}.v-popper__arrow-container{display:none}.ce-empty-cleaner .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f;display:none}.ce-empty-cleaner .top-actions .pure-control-group label{width:auto;text-align:left}.ce-empty-cleaner .actions-bar{padding-bottom:10px;width:72%}.ce-empty-cleaner .actions-bar .title{font-size:18px;font-weight:700;color:#15110c}.ce-empty-cleaner .actions-bar .close{margin-left:20px;margin-right:10px;color:#f40}.ce-empty-cleaner .actions-bar i.tp-folder{width:18px;height:18px;vertical-align:sub}.ce-empty-cleaner .actions-bar .ce-path{font-size:14px;margin-top:4px}.ce-empty-cleaner .actions-bar .ce-path a:hover{text-decoration:underline}.ce-empty-cleaner .ec-logs{max-height:250px;overflow-y:auto;max-width:72%;background:#f4f4f4;padding:10px;line-height:22px;font-size:12px;margin-bottom:20px}.ce-empty-cleaner .ec-items{margin-bottom:30px}.ce-empty-cleaner .ec-items table{font-size:12px;width:72%}.ce-empty-cleaner .ec-items table .tr-deleted>td:not(:last-child){text-decoration:line-through}.ce-empty-cleaner-drawer{position:fixed;top:60px;right:0;bottom:0;left:260px;background:#fff;z-index:1050;padding:10px 20px 200px;overflow-y:auto;box-shadow:-2px 2px 6px #bbb}.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:4px;text-shadow:0 1px 1px rgba(0,0,0,.2)}.button-success{background:rgb(28,184,65)}.button-error{background:rgb(202,60,60)}.button-warning{background:rgb(223,117,20)}.button-secondary{background:rgb(66,184,221)}.pure-form select{height:2.5em;font-size:12px}.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 .hidden .ce-toggle{color:#1890ff}.ce-menu-config .menu-config-block{display:inline-block;border-radius:6px;margin:4px;vertical-align:top;padding:0 6px;background:#f9f9f9}.ce-menu-config .menu-config-block>form>legend{border:none;text-align:center;font-size:14px;color:#5092ff;padding:4px;margin-bottom:0}.ce-menu-config .menu-config-block>form>fieldset>div{background:#fff;margin-bottom:1px;padding:4px}.ce-menu-config .menu-config-block>form>fieldset>div:hover{background:#fefcea}.ce-menu-config .menu-config-block label{display:inline-block;width:120px;font-size:12px;line-height:20px;vertical-align:middle;cursor:pointer}.ce-menu-config input[type=checkbox]{margin-right:10px;width:18px;height:18px;cursor:pointer;vertical-align:middle}.ce-menu-config .btn-view-info{display:inline-block;margin-right:6px;vertical-align:middle;cursor:help}.ce-custom-url{border-radius:4px;box-shadow:0 0 5px #eee;border:1px solid #eee;margin-bottom:20px;padding:0 10px;background:#fff}.ce-custom-url label{cursor:pointer}.ce-custom-url input:not([type]){font-size:12px}.ce-custom-url textarea{font-size:12px;resize:vertical}.ce-custom-url input[type=checkbox]{width:18px;height:18px;cursor:pointer}.ce-custom-url .ce-custom-url-index{font-size:14px;font-weight:700;margin-right:20px}.ce-custom-url legend .button-error{float:right}.ce-custom-url fieldset>div{margin-bottom:1px;padding:4px}.ce-custom-url fieldset>div:hover{background:#fefcea}.ce-custom-urls{padding-bottom:100px}.ce-custom-urls .item-memo{display:inline-block;width:320px}.ce-play-urls{padding-bottom:100px}.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-drawer{visibility:hidden}.ce-drawer.is-visible{visibility:visible}.ce-drawer.is-open .ce-drawer__overlay{opacity:.5}.ce-drawer.is-open .ce-drawer__content{transform:translate(0)}.ce-drawer__overlay{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;z-index:200;opacity:0;transition-property:opacity;background-color:#000;user-select:none}.ce-drawer__content{position:fixed;top:0;right:0;bottom:0;height:100%;width:100%;z-index:9999;overflow:auto;transition-property:transform;display:flex;flex-direction:column;transform:translate(100%);box-shadow:0 2px 6px #777}.ce-config-main .ce-intro{margin-left:35%;color:#7676ff}.ce-config-main .ce-intro small{color:#999}.ce-config-main .ce-config-main-body{padding:10px}.ce-config-main .ce-config-main-header{padding:10px;position:sticky;top:0;background:#fff;z-index:100000;box-shadow:0 1px 2px #e9e9e9}.ce-config-main .ce-config-main-header h1{display:inline;font-size:18px}.ce-config-main .ce-config-main-header .ce-config-main-close{float:right;vertical-align:top;color:#89929b;cursor:pointer;padding:2px 20px;border-radius:6px}.ce-config-main .ce-config-main-header .ce-config-main-close:hover{background:#fefcea;color:#0275ff}.ce-config-main .ce-offline-config{max-height:unset}.ce-login-page a.ce-entry{display:inline-block;background:#fefcea;padding:2px 6px;border-radius:4px;border:1px solid #234888;margin:0 4px}.list-contents ul li .ce-btn-folder-size{background:#f2f4f8;border-radius:6px;padding:4px;cursor:pointer}.list-contents ul li .ce-file-sha1{position:absolute;top:20px;color:#999;cursor:pointer;font-size:90%}.list-contents ul li.ce-show-sha1 .file-name{height:40px}.list-contents ul li.ce-size-got .ce-btn-folder-size{opacity:.6;margin-left:6px}.list-contents ul li.ce-size-got .ce-btn-folder-size:hover{opacity:1}#js_top_header_file_path_box .ce-path-btn{background-color:#f4f6fc;height:32px}#js_top_header_file_path_box .ce-path-btn#ceGotoPath{margin-right:6px}#js_top_header_file_path_box.ce-goto-path-active{height:60px}#js_top_header_file_path_box.ce-goto-path-active div#js_path_add_dir{height:32px}#js_top_header_file_path_box #ceGotoPathApp{position:absolute;top:40px}.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:#ffffff;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:#ffff00} `); var U5=Object.defineProperty;var j5=(Xo,zn,Zo)=>zn in Xo?U5(Xo,zn,{enumerable:!0,configurable:!0,writable:!0,value:Zo}):Xo[zn]=Zo;var _e=(Xo,zn,Zo)=>(j5(Xo,typeof zn!="symbol"?zn+"":zn,Zo),Zo);(function(){"use strict";const Xo="",zn="",Zo="",H5="",q5="",z5="",V5="",cg=typeof btoa=="function",Ea=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Yc=typeof TextEncoder=="function"?new TextEncoder:void 0,ug="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Di=Array.prototype.slice.call(ug);(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(Di);const hn=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const dg=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Jc=cg?e=>btoa(e):Ea?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,i,s="";const r=e.length%3;for(let a=0;a255||(o=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|i,s+=Di[t>>18&63]+Di[t>>12&63]+Di[t>>6&63]+Di[t&63]}return r?s.slice(0,r-3)+"===".substring(r):s},fg=Ea?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,i=e.length;o{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?hn(192|t>>>6)+hn(128|t&63):hn(224|t>>>12&15)+hn(128|t>>>6&63)+hn(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return hn(240|t>>>18&7)+hn(128|t>>>12&63)+hn(128|t>>>6&63)+hn(128|t&63)}},hg=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,mg=e=>e.replace(hg,pg),Qc=Ea?e=>Buffer.from(e,"utf8").toString("base64"):Yc?e=>fg(Yc.encode(e)):e=>Jc(mg(e)),Xc=(e,t=!1)=>t?dg(Qc(e)):Qc(e);var _o=window,ka=(()=>_o.GM_setValue)(),gg=(()=>_o.GM_deleteValue)(),yg=(()=>_o.GM_openInTab)(),Ls=(()=>_o.GM_registerMenuCommand)(),Zc=(()=>_o.GM_xmlhttpRequest)(),Ri=(()=>_o.GM_setClipboard)(),Ms=(()=>_o.GM_getValue)(),Vn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wg(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),n}var eu={exports:{}};/*! * sweetalert2 v11.7.2 * Released under the MIT License. */(function(e,t){(function(n,o){e.exports=o()})(Vn,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const o="swal2-",i=d=>{const p={};for(const y in d)p[d[y]]=o+d[y];return p},s=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=d=>{const p=[];for(let y=0;yd.charAt(0).toUpperCase()+d.slice(1),f=d=>{console.warn(`${a} ${typeof d=="object"?d.join(" "):d}`)},h=d=>{console.error(`${a} ${d}`)},g=[],b=d=>{g.includes(d)||(g.push(d),f(d))},_=(d,p)=>{b(`"${d}" is deprecated and will be removed in the next major release. Please use "${p}" instead.`)},E=d=>typeof d=="function"?d():d,I=d=>d&&typeof d.toPromise=="function",M=d=>I(d)?d.toPromise():Promise.resolve(d),P=d=>d&&Promise.resolve(d)===d,T=()=>document.body.querySelector(`.${s.container}`),H=d=>{const p=T();return p?p.querySelector(d):null},ie=d=>H(`.${d}`),U=()=>ie(s.popup),Z=()=>ie(s.icon),ce=()=>ie(s["icon-content"]),ye=()=>ie(s.title),Ie=()=>ie(s["html-container"]),be=()=>ie(s.image),O=()=>ie(s["progress-steps"]),re=()=>ie(s["validation-message"]),Q=()=>H(`.${s.actions} .${s.confirm}`),Ee=()=>H(`.${s.actions} .${s.cancel}`),D=()=>H(`.${s.actions} .${s.deny}`),K=()=>ie(s["input-label"]),N=()=>H(`.${s.loader}`),we=()=>ie(s.actions),Ae=()=>ie(s.footer),De=()=>ie(s["timer-progress-bar"]),pe=()=>ie(s.close),ue=` 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 `,He=()=>{const d=Array.from(U().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((y,x)=>{const j=parseInt(y.getAttribute("tabindex")),Pe=parseInt(x.getAttribute("tabindex"));return j>Pe?1:jy.getAttribute("tabindex")!=="-1");return l(d.concat(p)).filter(y=>q(y))},ot=()=>ct(document.body,s.shown)&&!ct(document.body,s["toast-shown"])&&!ct(document.body,s["no-backdrop"]),Me=()=>U()&&ct(U(),s.toast),et=()=>U().hasAttribute("data-loading"),it={previousBodyPadding:null},_t=(d,p)=>{if(d.textContent="",p){const x=new DOMParser().parseFromString(p,"text/html");Array.from(x.querySelector("head").childNodes).forEach(j=>{d.appendChild(j)}),Array.from(x.querySelector("body").childNodes).forEach(j=>{j instanceof HTMLVideoElement||j instanceof HTMLAudioElement?d.appendChild(j.cloneNode(!0)):d.appendChild(j)})}},ct=(d,p)=>{if(!p)return!1;const y=p.split(/\s+/);for(let x=0;x{Array.from(d.classList).forEach(y=>{!Object.values(s).includes(y)&&!Object.values(r).includes(y)&&!Object.values(p.showClass).includes(y)&&d.classList.remove(y)})},yt=(d,p,y)=>{if(bo(d,p),p.customClass&&p.customClass[y]){if(typeof p.customClass[y]!="string"&&!p.customClass[y].forEach){f(`Invalid type of customClass.${y}! Expected string or iterable object, got "${typeof p.customClass[y]}"`);return}R(d,p.customClass[y])}},v=(d,p)=>{if(!p)return null;switch(p){case"select":case"textarea":case"file":return d.querySelector(`.${s.popup} > .${s[p]}`);case"checkbox":return d.querySelector(`.${s.popup} > .${s.checkbox} input`);case"radio":return d.querySelector(`.${s.popup} > .${s.radio} input:checked`)||d.querySelector(`.${s.popup} > .${s.radio} input:first-child`);case"range":return d.querySelector(`.${s.popup} > .${s.range} input`);default:return d.querySelector(`.${s.popup} > .${s.input}`)}},A=d=>{if(d.focus(),d.type!=="file"){const p=d.value;d.value="",d.value=p}},F=(d,p,y)=>{!d||!p||(typeof p=="string"&&(p=p.split(/\s+/).filter(Boolean)),p.forEach(x=>{Array.isArray(d)?d.forEach(j=>{y?j.classList.add(x):j.classList.remove(x)}):y?d.classList.add(x):d.classList.remove(x)}))},R=(d,p)=>{F(d,p,!0)},W=(d,p)=>{F(d,p,!1)},se=(d,p)=>{const y=Array.from(d.children);for(let x=0;x{y===`${parseInt(y)}`&&(y=parseInt(y)),y||parseInt(y)===0?d.style[p]=typeof y=="number"?`${y}px`:y:d.style.removeProperty(p)},X=function(d){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";d.style.display=p},ne=d=>{d.style.display="none"},te=(d,p,y,x)=>{const j=d.querySelector(p);j&&(j.style[y]=x)},ve=function(d,p){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";p?X(d,y):ne(d)},q=d=>!!(d&&(d.offsetWidth||d.offsetHeight||d.getClientRects().length)),xe=()=>!q(Q())&&!q(D())&&!q(Ee()),m=d=>d.scrollHeight>d.clientHeight,w=d=>{const p=window.getComputedStyle(d),y=parseFloat(p.getPropertyValue("animation-duration")||"0"),x=parseFloat(p.getPropertyValue("transition-duration")||"0");return y>0||x>0},C=function(d){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const y=De();q(y)&&(p&&(y.style.transition="none",y.style.width="100%"),setTimeout(()=>{y.style.transition=`width ${d/1e3}s linear`,y.style.width="0%"},10))},k=()=>{const d=De(),p=parseInt(window.getComputedStyle(d).width);d.style.removeProperty("transition"),d.style.width="100%";const y=parseInt(window.getComputedStyle(d).width),x=p/y*100;d.style.width=`${x}%`},L=100,S={},V=()=>{S.previousActiveElement instanceof HTMLElement?(S.previousActiveElement.focus(),S.previousActiveElement=null):document.body&&document.body.focus()},Y=d=>new Promise(p=>{if(!d)return p();const y=window.scrollX,x=window.scrollY;S.restoreFocusTimeout=setTimeout(()=>{V(),p()},L),window.scrollTo(y,x)}),oe=()=>typeof window>"u"||typeof document>"u",Oe=`

    `.replace(/(^|\n)\s*/g,""),Te=()=>{const d=T();return d?(d.remove(),W([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0):!1},$e=()=>{S.currentInstance.resetValidationMessage()},ze=()=>{const d=U(),p=se(d,s.input),y=se(d,s.file),x=d.querySelector(`.${s.range} input`),j=d.querySelector(`.${s.range} output`),Pe=se(d,s.select),Ze=d.querySelector(`.${s.checkbox} input`),Xt=se(d,s.textarea);p.oninput=$e,y.onchange=$e,Pe.onchange=$e,Ze.onchange=$e,Xt.oninput=$e,x.oninput=()=>{$e(),j.value=x.value},x.onchange=()=>{$e(),j.value=x.value}},Rt=d=>typeof d=="string"?document.querySelector(d):d,$t=d=>{const p=U();p.setAttribute("role",d.toast?"alert":"dialog"),p.setAttribute("aria-live",d.toast?"polite":"assertive"),d.toast||p.setAttribute("aria-modal","true")},Ss=d=>{window.getComputedStyle(d).direction==="rtl"&&R(T(),s.rtl)},As=d=>{const p=Te();if(oe()){h("SweetAlert2 requires document to initialize");return}const y=document.createElement("div");y.className=s.container,p&&R(y,s["no-transition"]),_t(y,Oe);const x=Rt(d.target);x.appendChild(y),$t(d),Ss(x),ze()},Bc=(d,p)=>{d instanceof HTMLElement?p.appendChild(d):typeof d=="object"?yM(d,p):d&&_t(p,d)},yM=(d,p)=>{d.jquery?wM(p,d):_t(p,d.toString())},wM=(d,p)=>{if(d.textContent="",0 in p)for(let y=0;y in p;y++)d.appendChild(p[y].cloneNode(!0));else d.appendChild(p.cloneNode(!0))},Ps=(()=>{if(oe())return!1;const d=document.createElement("div"),p={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const y in p)if(Object.prototype.hasOwnProperty.call(p,y)&&typeof d.style[y]<"u")return p[y];return!1})(),bM=()=>{const d=document.createElement("div");d.className=s["scrollbar-measure"],document.body.appendChild(d);const p=d.getBoundingClientRect().width-d.clientWidth;return document.body.removeChild(d),p},_M=(d,p)=>{const y=we(),x=N();!p.showConfirmButton&&!p.showDenyButton&&!p.showCancelButton?ne(y):X(y),yt(y,p,"actions"),vM(y,x,p),_t(x,p.loaderHtml),yt(x,p,"loader")};function vM(d,p,y){const x=Q(),j=D(),Pe=Ee();Fc(x,"confirm",y),Fc(j,"deny",y),Fc(Pe,"cancel",y),xM(x,j,Pe,y),y.reverseButtons&&(y.toast?(d.insertBefore(Pe,x),d.insertBefore(j,x)):(d.insertBefore(Pe,p),d.insertBefore(j,p),d.insertBefore(x,p)))}function xM(d,p,y,x){if(!x.buttonsStyling){W([d,p,y],s.styled);return}R([d,p,y],s.styled),x.confirmButtonColor&&(d.style.backgroundColor=x.confirmButtonColor,R(d,s["default-outline"])),x.denyButtonColor&&(p.style.backgroundColor=x.denyButtonColor,R(p,s["default-outline"])),x.cancelButtonColor&&(y.style.backgroundColor=x.cancelButtonColor,R(y,s["default-outline"]))}function Fc(d,p,y){ve(d,y[`show${u(p)}Button`],"inline-block"),_t(d,y[`${p}ButtonText`]),d.setAttribute("aria-label",y[`${p}ButtonAriaLabel`]),d.className=s[p],yt(d,y,`${p}Button`),R(d,y[`${p}ButtonClass`])}const CM=(d,p)=>{const y=pe();_t(y,p.closeButtonHtml),yt(y,p,"closeButton"),ve(y,p.showCloseButton),y.setAttribute("aria-label",p.closeButtonAriaLabel)},$M=(d,p)=>{const y=T();!y||(EM(y,p.backdrop),kM(y,p.position),SM(y,p.grow),yt(y,p,"container"))};function EM(d,p){typeof p=="string"?d.style.background=p:p||R([document.documentElement,document.body],s["no-backdrop"])}function kM(d,p){p in s?R(d,s[p]):(f('The "position" parameter is not valid, defaulting to "center"'),R(d,s.center))}function SM(d,p){if(p&&typeof p=="string"){const y=`grow-${p}`;y in s&&R(d,s[y])}}const AM=["input","file","range","select","radio","checkbox","textarea"],PM=(d,p)=>{const y=U(),x=n.innerParams.get(d),j=!x||p.input!==x.input;AM.forEach(Pe=>{const Ze=se(y,s[Pe]);OM(Pe,p.inputAttributes),Ze.className=s[Pe],j&&ne(Ze)}),p.input&&(j&&IM(p),LM(p))},IM=d=>{if(!Kt[d.input]){h(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${d.input}"`);return}const p=Lm(d.input),y=Kt[d.input](p,d);X(p),d.inputAutoFocus&&setTimeout(()=>{A(y)})},TM=d=>{for(let p=0;p{const y=v(U(),d);if(!!y){TM(y);for(const x in p)y.setAttribute(x,p[x])}},LM=d=>{const p=Lm(d.input);typeof d.customClass=="object"&&R(p,d.customClass.input)},Uc=(d,p)=>{(!d.placeholder||p.inputPlaceholder)&&(d.placeholder=p.inputPlaceholder)},Is=(d,p,y)=>{if(y.inputLabel){d.id=s.input;const x=document.createElement("label"),j=s["input-label"];x.setAttribute("for",d.id),x.className=j,typeof y.customClass=="object"&&R(x,y.customClass.inputLabel),x.innerText=y.inputLabel,p.insertAdjacentElement("beforebegin",x)}},Lm=d=>se(U(),s[d]||s.input),va=(d,p)=>{["string","number"].includes(typeof p)?d.value=`${p}`:P(p)||f(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof p}"`)},Kt={};Kt.text=Kt.email=Kt.password=Kt.number=Kt.tel=Kt.url=(d,p)=>(va(d,p.inputValue),Is(d,d,p),Uc(d,p),d.type=p.input,d),Kt.file=(d,p)=>(Is(d,d,p),Uc(d,p),d),Kt.range=(d,p)=>{const y=d.querySelector("input"),x=d.querySelector("output");return va(y,p.inputValue),y.type=p.input,va(x,p.inputValue),Is(y,d,p),d},Kt.select=(d,p)=>{if(d.textContent="",p.inputPlaceholder){const y=document.createElement("option");_t(y,p.inputPlaceholder),y.value="",y.disabled=!0,y.selected=!0,d.appendChild(y)}return Is(d,d,p),d},Kt.radio=d=>(d.textContent="",d),Kt.checkbox=(d,p)=>{const y=v(U(),"checkbox");y.value="1",y.id=s.checkbox,y.checked=Boolean(p.inputValue);const x=d.querySelector("span");return _t(x,p.inputPlaceholder),y},Kt.textarea=(d,p)=>{va(d,p.inputValue),Uc(d,p),Is(d,d,p);const y=x=>parseInt(window.getComputedStyle(x).marginLeft)+parseInt(window.getComputedStyle(x).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const x=parseInt(window.getComputedStyle(U()).width),j=()=>{const Pe=d.offsetWidth+y(d);Pe>x?U().style.width=`${Pe}px`:U().style.width=null};new MutationObserver(j).observe(d,{attributes:!0,attributeFilter:["style"]})}}),d};const MM=(d,p)=>{const y=Ie();yt(y,p,"htmlContainer"),p.html?(Bc(p.html,y),X(y,"block")):p.text?(y.textContent=p.text,X(y,"block")):ne(y),PM(d,p)},DM=(d,p)=>{const y=Ae();ve(y,p.footer),p.footer&&Bc(p.footer,y),yt(y,p,"footer")},RM=(d,p)=>{const y=n.innerParams.get(d),x=Z();if(y&&p.icon===y.icon){Dm(x,p),Mm(x,p);return}if(!p.icon&&!p.iconHtml){ne(x);return}if(p.icon&&Object.keys(r).indexOf(p.icon)===-1){h(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${p.icon}"`),ne(x);return}X(x),Dm(x,p),Mm(x,p),R(x,p.showClass.icon)},Mm=(d,p)=>{for(const y in r)p.icon!==y&&W(d,r[y]);R(d,r[p.icon]),UM(d,p),NM(),yt(d,p,"icon")},NM=()=>{const d=U(),p=window.getComputedStyle(d).getPropertyValue("background-color"),y=d.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let x=0;x
    `,FM=` `,Dm=(d,p)=>{let y=d.innerHTML,x;p.iconHtml?x=Rm(p.iconHtml):p.icon==="success"?(x=BM,y=y.replace(/ style=".*?"/g,"")):p.icon==="error"?x=FM:x=Rm({question:"?",warning:"!",info:"i"}[p.icon]),y.trim()!==x.trim()&&_t(d,x)},UM=(d,p)=>{if(!!p.iconColor){d.style.color=p.iconColor,d.style.borderColor=p.iconColor;for(const y of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])te(d,y,"backgroundColor",p.iconColor);te(d,".swal2-success-ring","borderColor",p.iconColor)}},Rm=d=>`
    ${d}
    `,jM=(d,p)=>{const y=be();if(!p.imageUrl){ne(y);return}X(y,""),y.setAttribute("src",p.imageUrl),y.setAttribute("alt",p.imageAlt),he(y,"width",p.imageWidth),he(y,"height",p.imageHeight),y.className=s.image,yt(y,p,"image")},HM=(d,p)=>{const y=T(),x=U();p.toast?(he(y,"width",p.width),x.style.width="100%",x.insertBefore(N(),Z())):he(x,"width",p.width),he(x,"padding",p.padding),p.color&&(x.style.color=p.color),p.background&&(x.style.background=p.background),ne(re()),qM(x,p)},qM=(d,p)=>{d.className=`${s.popup} ${q(d)?p.showClass.popup:""}`,p.toast?(R([document.documentElement,document.body],s["toast-shown"]),R(d,s.toast)):R(d,s.modal),yt(d,p,"popup"),typeof p.customClass=="string"&&R(d,p.customClass),p.icon&&R(d,s[`icon-${p.icon}`])},zM=(d,p)=>{const y=O();if(!p.progressSteps||p.progressSteps.length===0){ne(y);return}X(y),y.textContent="",p.currentProgressStep>=p.progressSteps.length&&f("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),p.progressSteps.forEach((x,j)=>{const Pe=VM(x);if(y.appendChild(Pe),j===p.currentProgressStep&&R(Pe,s["active-progress-step"]),j!==p.progressSteps.length-1){const Ze=WM(p);y.appendChild(Ze)}})},VM=d=>{const p=document.createElement("li");return R(p,s["progress-step"]),_t(p,d),p},WM=d=>{const p=document.createElement("li");return R(p,s["progress-step-line"]),d.progressStepsDistance&&he(p,"width",d.progressStepsDistance),p},KM=(d,p)=>{const y=ye();ve(y,p.title||p.titleText,"block"),p.title&&Bc(p.title,y),p.titleText&&(y.innerText=p.titleText),yt(y,p,"title")},Nm=(d,p)=>{HM(d,p),$M(d,p),zM(d,p),RM(d,p),jM(d,p),KM(d,p),CM(d,p),MM(d,p),_M(d,p),DM(d,p),typeof p.didRender=="function"&&p.didRender(U())};function Bm(){const d=n.innerParams.get(this);if(!d)return;const p=n.domCache.get(this);ne(p.loader),Me()?d.icon&&X(Z()):GM(p),W([p.popup,p.actions],s.loading),p.popup.removeAttribute("aria-busy"),p.popup.removeAttribute("data-loading"),p.confirmButton.disabled=!1,p.denyButton.disabled=!1,p.cancelButton.disabled=!1}const GM=d=>{const p=d.popup.getElementsByClassName(d.loader.getAttribute("data-button-to-replace"));p.length?X(p[0],"inline-block"):xe()&&ne(d.actions)};function YM(d){const p=n.innerParams.get(d||this),y=n.domCache.get(d||this);return y?v(y.popup,p.input):null}const JM=()=>q(U()),Fm=()=>Q()&&Q().click(),QM=()=>D()&&D().click(),XM=()=>Ee()&&Ee().click(),Ii=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Um=d=>{d.keydownTarget&&d.keydownHandlerAdded&&(d.keydownTarget.removeEventListener("keydown",d.keydownHandler,{capture:d.keydownListenerCapture}),d.keydownHandlerAdded=!1)},ZM=(d,p,y,x)=>{Um(p),y.toast||(p.keydownHandler=j=>tD(d,j,x),p.keydownTarget=y.keydownListenerCapture?window:U(),p.keydownListenerCapture=y.keydownListenerCapture,p.keydownTarget.addEventListener("keydown",p.keydownHandler,{capture:p.keydownListenerCapture}),p.keydownHandlerAdded=!0)},jc=(d,p)=>{const y=He();if(y.length){d=d+p,d===y.length?d=0:d===-1&&(d=y.length-1),y[d].focus();return}U().focus()},jm=["ArrowRight","ArrowDown"],eD=["ArrowLeft","ArrowUp"],tD=(d,p,y)=>{const x=n.innerParams.get(d);!x||p.isComposing||p.keyCode===229||(x.stopKeydownPropagation&&p.stopPropagation(),p.key==="Enter"?nD(d,p,x):p.key==="Tab"?oD(p):[...jm,...eD].includes(p.key)?iD(p.key):p.key==="Escape"&&sD(p,x,y))},nD=(d,p,y)=>{if(!!E(y.allowEnterKey)&&p.target&&d.getInput()&&p.target instanceof HTMLElement&&p.target.outerHTML===d.getInput().outerHTML){if(["textarea","file"].includes(y.input))return;Fm(),p.preventDefault()}},oD=d=>{const p=d.target,y=He();let x=-1;for(let j=0;j{const p=Q(),y=D(),x=Ee(),j=[p,y,x];if(document.activeElement instanceof HTMLElement&&!j.includes(document.activeElement))return;const Pe=jm.includes(d)?"nextElementSibling":"previousElementSibling";let Ze=document.activeElement;for(let Xt=0;Xt{E(p.allowEscapeKey)&&(d.preventDefault(),y(Ii.esc))};var Ts={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const rD=()=>{Array.from(document.body.children).forEach(p=>{p===T()||p.contains(T())||(p.hasAttribute("aria-hidden")&&p.setAttribute("data-previous-aria-hidden",p.getAttribute("aria-hidden")),p.setAttribute("aria-hidden","true"))})},Hm=()=>{Array.from(document.body.children).forEach(p=>{p.hasAttribute("data-previous-aria-hidden")?(p.setAttribute("aria-hidden",p.getAttribute("data-previous-aria-hidden")),p.removeAttribute("data-previous-aria-hidden")):p.removeAttribute("aria-hidden")})},aD=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!ct(document.body,s.iosfix)){const p=document.body.scrollTop;document.body.style.top=`${p*-1}px`,R(document.body,s.iosfix),cD(),lD()}},lD=()=>{const d=navigator.userAgent,p=!!d.match(/iPad/i)||!!d.match(/iPhone/i),y=!!d.match(/WebKit/i);p&&y&&!d.match(/CriOS/i)&&U().scrollHeight>window.innerHeight-44&&(T().style.paddingBottom=`${44}px`)},cD=()=>{const d=T();let p;d.ontouchstart=y=>{p=uD(y)},d.ontouchmove=y=>{p&&(y.preventDefault(),y.stopPropagation())}},uD=d=>{const p=d.target,y=T();return dD(d)||fD(d)?!1:p===y||!m(y)&&p instanceof HTMLElement&&p.tagName!=="INPUT"&&p.tagName!=="TEXTAREA"&&!(m(Ie())&&Ie().contains(p))},dD=d=>d.touches&&d.touches.length&&d.touches[0].touchType==="stylus",fD=d=>d.touches&&d.touches.length>1,pD=()=>{if(ct(document.body,s.iosfix)){const d=parseInt(document.body.style.top,10);W(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=d*-1}},hD=()=>{it.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(it.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${it.previousBodyPadding+bM()}px`)},mD=()=>{it.previousBodyPadding!==null&&(document.body.style.paddingRight=`${it.previousBodyPadding}px`,it.previousBodyPadding=null)};function qm(d,p,y,x){Me()?zm(d,x):(Y(y).then(()=>zm(d,x)),Um(S)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(p.setAttribute("style","display:none !important"),p.removeAttribute("class"),p.innerHTML=""):p.remove(),ot()&&(mD(),pD(),Hm()),gD()}function gD(){W([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function xa(d){d=_D(d);const p=Ts.swalPromiseResolve.get(this),y=wD(this);this.isAwaitingPromise()?d.isDismissed||(Os(this),p(d)):y&&p(d)}function yD(){return!!n.awaitingPromise.get(this)}const wD=d=>{const p=U();if(!p)return!1;const y=n.innerParams.get(d);if(!y||ct(p,y.hideClass.popup))return!1;W(p,y.showClass.popup),R(p,y.hideClass.popup);const x=T();return W(x,y.showClass.backdrop),R(x,y.hideClass.backdrop),vD(d,p,y),!0};function bD(d){const p=Ts.swalPromiseReject.get(this);Os(this),p&&p(d)}const Os=d=>{d.isAwaitingPromise()&&(n.awaitingPromise.delete(d),n.innerParams.get(d)||d._destroy())},_D=d=>typeof d>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},d),vD=(d,p,y)=>{const x=T(),j=Ps&&w(p);typeof y.willClose=="function"&&y.willClose(p),j?xD(d,p,x,y.returnFocus,y.didClose):qm(d,x,y.returnFocus,y.didClose)},xD=(d,p,y,x,j)=>{S.swalCloseEventFinishedCallback=qm.bind(null,d,y,x,j),p.addEventListener(Ps,function(Pe){Pe.target===p&&(S.swalCloseEventFinishedCallback(),delete S.swalCloseEventFinishedCallback)})},zm=(d,p)=>{setTimeout(()=>{typeof p=="function"&&p.bind(d.params)(),d._destroy()})};function Vm(d,p,y){const x=n.domCache.get(d);p.forEach(j=>{x[j].disabled=y})}function Wm(d,p){if(!!d)if(d.type==="radio"){const x=d.parentNode.parentNode.querySelectorAll("input");for(let j=0;jObject.prototype.hasOwnProperty.call(Ti,d),Gm=d=>PD.indexOf(d)!==-1,Hc=d=>ID[d],OD=d=>{Km(d)||f(`Unknown parameter "${d}"`)},LD=d=>{TD.includes(d)&&f(`The parameter "${d}" is incompatible with toasts`)},MD=d=>{Hc(d)&&_(d,Hc(d))},DD=d=>{d.backdrop===!1&&d.allowOutsideClick&&f('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const p in d)OD(p),d.toast&&LD(p),MD(p)};function RD(d){const p=U(),y=n.innerParams.get(this);if(!p||ct(p,y.hideClass.popup)){f("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 x=ND(d),j=Object.assign({},y,x);Nm(this,j),n.innerParams.set(this,j),Object.defineProperties(this,{params:{value:Object.assign({},this.params,d),writable:!1,enumerable:!0}})}const ND=d=>{const p={};return Object.keys(d).forEach(y=>{Gm(y)?p[y]=d[y]:f(`Invalid parameter to update: ${y}`)}),p};function BD(){const d=n.domCache.get(this),p=n.innerParams.get(this);if(!p){Ym(this);return}d.popup&&S.swalCloseEventFinishedCallback&&(S.swalCloseEventFinishedCallback(),delete S.swalCloseEventFinishedCallback),typeof p.didDestroy=="function"&&p.didDestroy(),FD(this)}const FD=d=>{Ym(d),delete d.params,delete S.keydownHandler,delete S.keydownTarget,delete S.currentInstance},Ym=d=>{d.isAwaitingPromise()?(qc(n,d),n.awaitingPromise.set(d,!0)):(qc(Ts,d),qc(n,d))},qc=(d,p)=>{for(const y in d)d[y].delete(p)};var Jm=Object.freeze({__proto__:null,_destroy:BD,close:xa,closeModal:xa,closePopup:xa,closeToast:xa,disableButtons:$D,disableInput:kD,disableLoading:Bm,enableButtons:CD,enableInput:ED,getInput:YM,handleAwaitingPromise:Os,hideLoading:Bm,isAwaitingPromise:yD,rejectPromise:bD,resetValidationMessage:AD,showValidationMessage:SD,update:RD});const Oi=d=>{let p=U();p||new $a,p=U();const y=N();Me()?ne(Z()):UD(p,d),X(y),p.setAttribute("data-loading","true"),p.setAttribute("aria-busy","true"),p.focus()},UD=(d,p)=>{const y=we(),x=N();!p&&q(Q())&&(p=Q()),X(y),p&&(ne(p),x.setAttribute("data-button-to-replace",p.className)),x.parentNode.insertBefore(x,p),R([d,y],s.loading)},jD=(d,p)=>{p.input==="select"||p.input==="radio"?WD(d,p):["text","email","number","tel","textarea"].includes(p.input)&&(I(p.inputValue)||P(p.inputValue))&&(Oi(Q()),KD(d,p))},HD=(d,p)=>{const y=d.getInput();if(!y)return null;switch(p.input){case"checkbox":return qD(y);case"radio":return zD(y);case"file":return VD(y);default:return p.inputAutoTrim?y.value.trim():y.value}},qD=d=>d.checked?1:0,zD=d=>d.checked?d.value:null,VD=d=>d.files.length?d.getAttribute("multiple")!==null?d.files:d.files[0]:null,WD=(d,p)=>{const y=U(),x=j=>{GD[p.input](y,zc(j),p)};I(p.inputOptions)||P(p.inputOptions)?(Oi(Q()),M(p.inputOptions).then(j=>{d.hideLoading(),x(j)})):typeof p.inputOptions=="object"?x(p.inputOptions):h(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof p.inputOptions}`)},KD=(d,p)=>{const y=d.getInput();ne(y),M(p.inputValue).then(x=>{y.value=p.input==="number"?`${parseFloat(x)||0}`:`${x}`,X(y),y.focus(),d.hideLoading()}).catch(x=>{h(`Error in inputValue promise: ${x}`),y.value="",X(y),y.focus(),d.hideLoading()})},GD={select:(d,p,y)=>{const x=se(d,s.select),j=(Pe,Ze,Xt)=>{const Nt=document.createElement("option");Nt.value=Xt,_t(Nt,Ze),Nt.selected=Qm(Xt,y.inputValue),Pe.appendChild(Nt)};p.forEach(Pe=>{const Ze=Pe[0],Xt=Pe[1];if(Array.isArray(Xt)){const Nt=document.createElement("optgroup");Nt.label=Ze,Nt.disabled=!1,x.appendChild(Nt),Xt.forEach(Mi=>j(Nt,Mi[1],Mi[0]))}else j(x,Xt,Ze)}),x.focus()},radio:(d,p,y)=>{const x=se(d,s.radio);p.forEach(Pe=>{const Ze=Pe[0],Xt=Pe[1],Nt=document.createElement("input"),Mi=document.createElement("label");Nt.type="radio",Nt.name=s.radio,Nt.value=Ze,Qm(Ze,y.inputValue)&&(Nt.checked=!0);const Gc=document.createElement("span");_t(Gc,Xt),Gc.className=s.label,Mi.appendChild(Nt),Mi.appendChild(Gc),x.appendChild(Mi)});const j=x.querySelectorAll("input");j.length&&j[0].focus()}},zc=d=>{const p=[];return typeof Map<"u"&&d instanceof Map?d.forEach((y,x)=>{let j=y;typeof j=="object"&&(j=zc(j)),p.push([x,j])}):Object.keys(d).forEach(y=>{let x=d[y];typeof x=="object"&&(x=zc(x)),p.push([y,x])}),p},Qm=(d,p)=>p&&p.toString()===d.toString(),YD=d=>{const p=n.innerParams.get(d);d.disableButtons(),p.input?Xm(d,"confirm"):Wc(d,!0)},JD=d=>{const p=n.innerParams.get(d);d.disableButtons(),p.returnInputValueOnDeny?Xm(d,"deny"):Vc(d,!1)},QD=(d,p)=>{d.disableButtons(),p(Ii.cancel)},Xm=(d,p)=>{const y=n.innerParams.get(d);if(!y.input){h(`The "input" parameter is needed to be set when using returnInputValueOn${u(p)}`);return}const x=HD(d,y);y.inputValidator?XD(d,x,p):d.getInput().checkValidity()?p==="deny"?Vc(d,x):Wc(d,x):(d.enableButtons(),d.showValidationMessage(y.validationMessage))},XD=(d,p,y)=>{const x=n.innerParams.get(d);d.disableInput(),Promise.resolve().then(()=>M(x.inputValidator(p,x.validationMessage))).then(Pe=>{d.enableButtons(),d.enableInput(),Pe?d.showValidationMessage(Pe):y==="deny"?Vc(d,p):Wc(d,p)})},Vc=(d,p)=>{const y=n.innerParams.get(d||void 0);y.showLoaderOnDeny&&Oi(D()),y.preDeny?(n.awaitingPromise.set(d||void 0,!0),Promise.resolve().then(()=>M(y.preDeny(p,y.validationMessage))).then(j=>{j===!1?(d.hideLoading(),Os(d)):d.close({isDenied:!0,value:typeof j>"u"?p:j})}).catch(j=>eg(d||void 0,j))):d.close({isDenied:!0,value:p})},Zm=(d,p)=>{d.close({isConfirmed:!0,value:p})},eg=(d,p)=>{d.rejectPromise(p)},Wc=(d,p)=>{const y=n.innerParams.get(d||void 0);y.showLoaderOnConfirm&&Oi(),y.preConfirm?(d.resetValidationMessage(),n.awaitingPromise.set(d||void 0,!0),Promise.resolve().then(()=>M(y.preConfirm(p,y.validationMessage))).then(j=>{q(re())||j===!1?(d.hideLoading(),Os(d)):Zm(d,typeof j>"u"?p:j)}).catch(j=>eg(d||void 0,j))):Zm(d,p)},ZD=(d,p,y)=>{n.innerParams.get(d).toast?e5(d,p,y):(n5(p),o5(p),i5(d,p,y))},e5=(d,p,y)=>{p.popup.onclick=()=>{const x=n.innerParams.get(d);x&&(t5(x)||x.timer||x.input)||y(Ii.close)}},t5=d=>d.showConfirmButton||d.showDenyButton||d.showCancelButton||d.showCloseButton;let Ca=!1;const n5=d=>{d.popup.onmousedown=()=>{d.container.onmouseup=function(p){d.container.onmouseup=void 0,p.target===d.container&&(Ca=!0)}}},o5=d=>{d.container.onmousedown=()=>{d.popup.onmouseup=function(p){d.popup.onmouseup=void 0,(p.target===d.popup||d.popup.contains(p.target))&&(Ca=!0)}}},i5=(d,p,y)=>{p.container.onclick=x=>{const j=n.innerParams.get(d);if(Ca){Ca=!1;return}x.target===p.container&&E(j.allowOutsideClick)&&y(Ii.backdrop)}},s5=d=>typeof d=="object"&&d.jquery,tg=d=>d instanceof Element||s5(d),r5=d=>{const p={};return typeof d[0]=="object"&&!tg(d[0])?Object.assign(p,d[0]):["title","html","icon"].forEach((y,x)=>{const j=d[x];typeof j=="string"||tg(j)?p[y]=j:j!==void 0&&h(`Unexpected type of ${y}! Expected "string" or "Element", got ${typeof j}`)}),p};function a5(){const d=this;for(var p=arguments.length,y=new Array(p),x=0;xS.timeout&&S.timeout.getTimerLeft(),ng=()=>{if(S.timeout)return k(),S.timeout.stop()},og=()=>{if(S.timeout){const d=S.timeout.start();return C(d),d}},u5=()=>{const d=S.timeout;return d&&(d.running?ng():og())},d5=d=>{if(S.timeout){const p=S.timeout.increase(d);return C(p,!0),p}},f5=()=>S.timeout&&S.timeout.isRunning();let ig=!1;const Kc={};function p5(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Kc[d]=this,ig||(document.body.addEventListener("click",h5),ig=!0)}const h5=d=>{for(let p=d.target;p&&p!==document;p=p.parentNode)for(const y in Kc){const x=p.getAttribute(y);if(x){Kc[y].fire({template:x});return}}};var m5=Object.freeze({__proto__:null,argsToParams:r5,bindClickHandler:p5,clickCancel:XM,clickConfirm:Fm,clickDeny:QM,enableLoading:Oi,fire:a5,getActions:we,getCancelButton:Ee,getCloseButton:pe,getConfirmButton:Q,getContainer:T,getDenyButton:D,getFocusableElements:He,getFooter:Ae,getHtmlContainer:Ie,getIcon:Z,getIconContent:ce,getImage:be,getInputLabel:K,getLoader:N,getPopup:U,getProgressSteps:O,getTimerLeft:c5,getTimerProgressBar:De,getTitle:ye,getValidationMessage:re,increaseTimer:d5,isDeprecatedParameter:Hc,isLoading:et,isTimerRunning:f5,isUpdatableParameter:Gm,isValidParameter:Km,isVisible:JM,mixin:l5,resumeTimer:og,showLoading:Oi,stopTimer:ng,toggleTimer:u5});class g5{constructor(p,y){this.callback=p,this.remaining=y,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(p){const y=this.running;return y&&this.stop(),this.remaining+=p,y&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const sg=["swal-title","swal-html","swal-footer"],y5=d=>{const p=typeof d.template=="string"?document.querySelector(d.template):d.template;if(!p)return{};const y=p.content;return E5(y),Object.assign(w5(y),b5(y),_5(y),v5(y),x5(y),C5(y),$5(y,sg))},w5=d=>{const p={};return Array.from(d.querySelectorAll("swal-param")).forEach(x=>{Qo(x,["name","value"]);const j=x.getAttribute("name"),Pe=x.getAttribute("value");typeof Ti[j]=="boolean"?p[j]=Pe!=="false":typeof Ti[j]=="object"?p[j]=JSON.parse(Pe):p[j]=Pe}),p},b5=d=>{const p={};return Array.from(d.querySelectorAll("swal-function-param")).forEach(x=>{const j=x.getAttribute("name"),Pe=x.getAttribute("value");p[j]=new Function(`return ${Pe}`)()}),p},_5=d=>{const p={};return Array.from(d.querySelectorAll("swal-button")).forEach(x=>{Qo(x,["type","color","aria-label"]);const j=x.getAttribute("type");p[`${j}ButtonText`]=x.innerHTML,p[`show${u(j)}Button`]=!0,x.hasAttribute("color")&&(p[`${j}ButtonColor`]=x.getAttribute("color")),x.hasAttribute("aria-label")&&(p[`${j}ButtonAriaLabel`]=x.getAttribute("aria-label"))}),p},v5=d=>{const p={},y=d.querySelector("swal-image");return y&&(Qo(y,["src","width","height","alt"]),y.hasAttribute("src")&&(p.imageUrl=y.getAttribute("src")),y.hasAttribute("width")&&(p.imageWidth=y.getAttribute("width")),y.hasAttribute("height")&&(p.imageHeight=y.getAttribute("height")),y.hasAttribute("alt")&&(p.imageAlt=y.getAttribute("alt"))),p},x5=d=>{const p={},y=d.querySelector("swal-icon");return y&&(Qo(y,["type","color"]),y.hasAttribute("type")&&(p.icon=y.getAttribute("type")),y.hasAttribute("color")&&(p.iconColor=y.getAttribute("color")),p.iconHtml=y.innerHTML),p},C5=d=>{const p={},y=d.querySelector("swal-input");y&&(Qo(y,["type","label","placeholder","value"]),p.input=y.getAttribute("type")||"text",y.hasAttribute("label")&&(p.inputLabel=y.getAttribute("label")),y.hasAttribute("placeholder")&&(p.inputPlaceholder=y.getAttribute("placeholder")),y.hasAttribute("value")&&(p.inputValue=y.getAttribute("value")));const x=Array.from(d.querySelectorAll("swal-input-option"));return x.length&&(p.inputOptions={},x.forEach(j=>{Qo(j,["value"]);const Pe=j.getAttribute("value"),Ze=j.innerHTML;p.inputOptions[Pe]=Ze})),p},$5=(d,p)=>{const y={};for(const x in p){const j=p[x],Pe=d.querySelector(j);Pe&&(Qo(Pe,[]),y[j.replace(/^swal-/,"")]=Pe.innerHTML.trim())}return y},E5=d=>{const p=sg.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(d.children).forEach(y=>{const x=y.tagName.toLowerCase();p.includes(x)||f(`Unrecognized element <${x}>`)})},Qo=(d,p)=>{Array.from(d.attributes).forEach(y=>{p.indexOf(y.name)===-1&&f([`Unrecognized attribute "${y.name}" on <${d.tagName.toLowerCase()}>.`,`${p.length?`Allowed attributes are: ${p.join(", ")}`:"To set the value, use HTML within the element."}`])})},rg=10,k5=d=>{const p=T(),y=U();typeof d.willOpen=="function"&&d.willOpen(y);const j=window.getComputedStyle(document.body).overflowY;P5(p,y,d),setTimeout(()=>{S5(p,y)},rg),ot()&&(A5(p,d.scrollbarPadding,j),rD()),!Me()&&!S.previousActiveElement&&(S.previousActiveElement=document.activeElement),typeof d.didOpen=="function"&&setTimeout(()=>d.didOpen(y)),W(p,s["no-transition"])},ag=d=>{const p=U();if(d.target!==p)return;const y=T();p.removeEventListener(Ps,ag),y.style.overflowY="auto"},S5=(d,p)=>{Ps&&w(p)?(d.style.overflowY="hidden",p.addEventListener(Ps,ag)):d.style.overflowY="auto"},A5=(d,p,y)=>{aD(),p&&y!=="hidden"&&hD(),setTimeout(()=>{d.scrollTop=0})},P5=(d,p,y)=>{R(d,y.showClass.backdrop),p.style.setProperty("opacity","0","important"),X(p,"grid"),setTimeout(()=>{R(p,y.showClass.popup),p.style.removeProperty("opacity")},rg),R([document.documentElement,document.body],s.shown),y.heightAuto&&y.backdrop&&!y.toast&&R([document.documentElement,document.body],s["height-auto"])};var lg={email:(d,p)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(d)?Promise.resolve():Promise.resolve(p||"Invalid email address"),url:(d,p)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(d)?Promise.resolve():Promise.resolve(p||"Invalid URL")};function I5(d){d.inputValidator||Object.keys(lg).forEach(p=>{d.input===p&&(d.inputValidator=lg[p])})}function T5(d){(!d.target||typeof d.target=="string"&&!document.querySelector(d.target)||typeof d.target!="string"&&!d.target.appendChild)&&(f('Target parameter is not valid, defaulting to "body"'),d.target="body")}function O5(d){I5(d),d.showLoaderOnConfirm&&!d.preConfirm&&f(`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`),T5(d),typeof d.title=="string"&&(d.title=d.title.split(` `).join("
    ")),As(d)}let En;class Li{constructor(){if(typeof window>"u")return;En=this;for(var p=arguments.length,y=new Array(p),x=0;x1&&arguments[1]!==void 0?arguments[1]:{};DD(Object.assign({},y,p)),S.currentInstance&&(S.currentInstance._destroy(),ot()&&Hm()),S.currentInstance=En;const x=M5(p,y);O5(x),Object.freeze(x),S.timeout&&(S.timeout.stop(),delete S.timeout),clearTimeout(S.restoreFocusTimeout);const j=D5(En);return Nm(En,x),n.innerParams.set(En,x),L5(En,j,x)}then(p){return n.promise.get(this).then(p)}finally(p){return n.promise.get(this).finally(p)}}const L5=(d,p,y)=>new Promise((x,j)=>{const Pe=Ze=>{d.close({isDismissed:!0,dismiss:Ze})};Ts.swalPromiseResolve.set(d,x),Ts.swalPromiseReject.set(d,j),p.confirmButton.onclick=()=>{YD(d)},p.denyButton.onclick=()=>{JD(d)},p.cancelButton.onclick=()=>{QD(d,Pe)},p.closeButton.onclick=()=>{Pe(Ii.close)},ZD(d,p,Pe),ZM(d,S,y,Pe),jD(d,y),k5(y),R5(S,y,Pe),N5(p,y),setTimeout(()=>{p.container.scrollTop=0})}),M5=(d,p)=>{const y=y5(d),x=Object.assign({},Ti,p,y,d);return x.showClass=Object.assign({},Ti.showClass,x.showClass),x.hideClass=Object.assign({},Ti.hideClass,x.hideClass),x},D5=d=>{const p={popup:U(),container:T(),actions:we(),confirmButton:Q(),denyButton:D(),cancelButton:Ee(),loader:N(),closeButton:pe(),validationMessage:re(),progressSteps:O()};return n.domCache.set(d,p),p},R5=(d,p,y)=>{const x=De();ne(x),p.timer&&(d.timeout=new g5(()=>{y("timer"),delete d.timeout},p.timer),p.timerProgressBar&&(X(x),yt(x,p,"timerProgressBar"),setTimeout(()=>{d.timeout&&d.timeout.running&&C(p.timer)})))},N5=(d,p)=>{if(!p.toast){if(!E(p.allowEnterKey)){F5();return}B5(d,p)||jc(-1,1)}},B5=(d,p)=>p.focusDeny&&q(d.denyButton)?(d.denyButton.focus(),!0):p.focusCancel&&q(d.cancelButton)?(d.cancelButton.focus(),!0):p.focusConfirm&&q(d.confirmButton)?(d.confirmButton.focus(),!0):!1,F5=()=>{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 d=new Date,p=localStorage.getItem("swal-initiation");p?(d.getTime()-Date.parse(p))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const y=document.createElement("audio");y.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",y.loop=!0,document.body.appendChild(y),setTimeout(()=>{y.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${d}`)}Object.assign(Li.prototype,Jm),Object.assign(Li,m5),Object.keys(Jm).forEach(d=>{Li[d]=function(){if(En)return En[d](...arguments)}}),Li.DismissReason=Ii,Li.version="11.7.2";const $a=Li;return $a.default=$a,$a}),typeof Vn<"u"&&Vn.Sweetalert2&&(Vn.swal=Vn.sweetAlert=Vn.Swal=Vn.SweetAlert=Vn.Sweetalert2),typeof document<"u"&&function(n,o){var i=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=o);else try{i.innerHTML=o}catch{i.innerText=o}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')})(eu);const me=eu.exports,bg=["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"],_g=["jpg","jpeg","png","gif","bmp","svg"],vg=["mp3","wav","wma","ogg","ape","flac","aac"];function tu(e){return JSON.parse(JSON.stringify(e))}function nu(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ou(...e){const t={};for(const n of e)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(nu(n[o])&&nu(t[o])?t[o]=ou(t[o],n[o]):t[o]=n[o]);return t}function Ds(e,...t){return new e(t[0])}async function xg(e){return new Promise((t,n)=>{Zc({onload:o=>t(o),onerror:o=>n(o),...e})})}function Ni(){return Math.floor(Date.now()/1e3)}function Bi(e,t,n="text/plain"){const o=document.createElement("a");document.body.appendChild(o),o.setAttribute("style","display:none");const i=new Blob([e],{type:n}),s=window.URL.createObjectURL(i);o.href=s,o.download=t,o.click(),window.URL.revokeObjectURL(s)}function an(e){if(typeof Ri=="function")return Ri(e,"text"),!0;const t=n=>{var o;(o=n.clipboardData)==null||o.setData("text/plain",e),n.preventDefault(),document.removeEventListener("copy",t)};return document.addEventListener("copy",t),document.execCommand("copy")}function iu(e,t){return e=e.replace(/^[\/]+/g,""),t?"/"+e:e}function su(e){return/^magnet:\?xt=urn:btih/.test(e)}function ru(e){return/^ed2k:\/\/\|file\|/.test(e)}function au(e){return`magnet:?xt=urn:btih:${e.toUpperCase()}`}function lu(e){const t=e.match(/([a-z\d]{32,40})/i);return t?t[1]:""}function Cg(e,t=!0){return(t?/^([a-z\d]{32})$|^([a-z\d]{40})$/i:/^[a-z\d]{32,40}$/i).test(e)}function cu(e,t=location.href){const n=new RegExp("(\\?|#|&)"+e+"=([^&#]*)(&|#|$)"),o=t.match(n);return o?o[2]:""}function Rs(e,t=2){if(Number.isNaN(e)||(e=typeof e=="string"?parseInt(e):e,!e))return"0";const n=1024,o=t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,s)).toFixed(o))+" "+i[s]}function uu(e){const t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=new RegExp(`^(\\d+(?:\\.\\d+)?)(${t.join("|")})$`,"i"),o=e.match(n);if(!o)throw new Error(`无效的文件大小!${e}`);const i=parseFloat(o[1]),s=o[2].toUpperCase(),r=t.indexOf(s);if(r<0)throw new Error(`无效的文件大小!${e}`);return i*Math.pow(1024,r)}function du(e,t=document,n=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE){const o=[],i=document.evaluate(e,t,null,n,null);for(let s=0;s0&&r(a)}else{const a=o.querySelectorAll(e);a.length&&r(Array.from(a))}}try{return await Kn(s,t,n)}catch(r){throw console.warn("[find]",r),new Error(`查找元素超时:${e}`)}}async function Wn(e,t=100,n=12e4){const o=e.indexOf("//")===0;function i(s){if(o){const r=du(e);r.length>0&&s(unsafeWindow.$(r))}else{const r=unsafeWindow.$(e);r.length&&s(r)}}try{return await Kn(i,t,n)}catch(s){throw console.warn("[findWithJQuery]",s),new Error(`查找元素超时:${e}`)}}async function Kn(e,t,n){return new Promise(async(o,i)=>{if(typeof e!="function"){i("提供的参数`fulfill`不是一个Function!");return}let s=!1;e(l=>{s=!0,o(l)});let r=setInterval(async()=>{if(s){clearTimeout(a),clearInterval(r);return}e(l=>{clearTimeout(a),clearInterval(r),o(l)})},t),a=setTimeout(()=>{clearInterval(r),i("超时")},n)})}async function wt(e){return new Promise(t=>{setTimeout(t,e)})}function Ns(e){const t=new URLSearchParams;let n;for(n in e)t.append(n,e[n].toString());return t.toString()}function $g(e,t=!1){const n=[];for(const o in e){let i=e[o].toString();i=t?encodeURIComponent(i):i,n.push(`${o}=${i}`)}return n.join("&")}async function ae(e){return me.fire({toast:!0,position:"top",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:t=>{t.addEventListener("mouseenter",me.stopTimer),t.addEventListener("mouseleave",me.resumeTimer)},...e})}function xo(e,t){t=t||window,t.postMessage(e)}function Co(e,t,n){if(n){const o=Ms(e,{});ka(e,{...o,...t})}else ka(e,t)}function Bt(e,t,n){let o;return function(...i){const s=()=>{o=void 0,n||e.apply(this,i)},r=n&&o===void 0;clearTimeout(o),o=setTimeout(s,t),r&&e.apply(this,i)}}function Eg(e){return e?bg.indexOf(e.toLowerCase())>-1:!1}function kg(e){return e?_g.indexOf(e.toLowerCase())>-1:!1}function Sg(e){return e?vg.indexOf(e.toLowerCase())>-1:!1}var Be=(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))(Be||{}),Fi=(e=>(e.listItemHover="列表项悬浮菜单",e.listItemHoverSub="列表项悬浮子菜单",e.listItemContext="列表项右键菜单",e.listItemContextSub="列表项右键子菜单",e.selection="选中项菜单",e.selectionSub="选中项子菜单",e.dirContext="当前目录右键菜单",e.dirContextSub="当前目录右键子菜单",e))(Fi||{}),$o=(e=>(e[e.after=0]="after",e[e.before=1]="before",e))($o||{});const tt={get:async(e,t)=>Ms(e,t),set:async(e,t)=>ka(e,t),remove:async e=>gg(e)};var Ft=(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))(Ft||{});const fu=Ft.clouddrive;var pu=(e=>(e.windows="windows",e.macos="macos",e.linux="linux",e.android="android",e))(pu||{});function Sa(e){return{active:!1,url:"http://localhost:19798",root:"/115",memo:"",platform:void 0,...e}}async function hu(){const e=[Sa()],t=await tt.get(fu,e);return t||e}async function mu(e){e.some(t=>t.active)||(e[0].active=!0),await tt.set(fu,e)}async function ei(){return(await hu()).find(t=>t.active)||Sa()}var Bs=(e=>(e.play="play",e.download="download",e))(Bs||{});function gu(e){return e.startsWith("file://")}async function ti(e,t,n="play"){e.platform==="macos"&&(t=t.normalize("NFD"));let{url:o,root:i}=e;if(!o)throw new Error("未设置CloudDrive地址!");(o.startsWith("/")||o.startsWith("\\"))&&(o=`file:///${o}`),gu(o);const s=/^https?:\/\//.test(o);if(s&&!i)throw new Error("当协议为http/https时,必须设置CloudDrive资源根路径!");i&&(i=i.replace(/^(\/+)?/g,"/")),t=t.replace(/^(\/+)?/g,"/");const r=`${i}${t}`,a=n==="play"?"True":"False";let l="";return o=o.replace(/\/+$/,""),s?l=`${o}/static/${o.replace("://","/")}/${a}/${encodeURIComponent(r)}`:l=`${o}${r}`,console.log("[Cloud115 Enhancer] buildCloudDriveUrl",l),l}async function Aa(e,t){let{url:n,root:o}=e;if(!n)throw new Error("未设置CloudDrive地址!");return(n.startsWith("/")||n.startsWith("\\"))&&(n=`file:///${n}`),gu(n)?await ti(e,t,"play"):await ti(e,t,"play")+".clfsplaylist.m3u"}async function Ag(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,"/"),`${n}/#${t}?a=1`}var Ut=(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))(Ut||{});const Pg={[-1]:"失败",[0]:"违规",[1]:"下载中",[2]:"成功"};var jt=(e=>(e.all="all",e.failed="failed",e.success="success",e.magnet="magnet",e.magnetEd2k="magnetEd2k",e))(jt||{}),Pa=(e=>(e[e.true=1]="true",e[e.false=0]="false",e))(Pa||{}),Et=(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))(Et||{}),at=(e=>(e.all="全部",e.video="视频",e.audio="音频",e.image="图片",e.doc="文档",e.app="应用",e.archive="压缩包",e))(at||{}),yu=(e=>(e.userPtime="user_ptime",e.fileName="file_name",e.fileSize="file_size",e.fileType="file_type",e))(yu||{});function Ig(e){return{offset:0,limit:1150,aid:1,cid:"",format:"json",o:"user_ptime",asc:0,search_value:"",...e}}function Gn(e){return{aid:1,cid:"",o:"user_ptime",asc:0,offset:0,show_dir:1,limit:115,natsort:0,format:"json",...e}}var Ia=(e=>(e[e.normal=0]="normal",e[e.violation=1]="violation",e[e.auditing=2]="auditing",e))(Ia||{});function wu(e,t){return function(){return e.apply(t,arguments)}}const{toString:bu}=Object.prototype,{getPrototypeOf:Ta}=Object,Oa=(e=>t=>{const n=bu.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Sn=e=>(e=e.toLowerCase(),t=>Oa(t)===e),Fs=e=>t=>typeof t===e,{isArray:ni}=Array,Ui=Fs("undefined");function Tg(e){return e!==null&&!Ui(e)&&e.constructor!==null&&!Ui(e.constructor)&&Yn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _u=Sn("ArrayBuffer");function Og(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_u(e.buffer),t}const Lg=Fs("string"),Yn=Fs("function"),vu=Fs("number"),La=e=>e!==null&&typeof e=="object",Mg=e=>e===!0||e===!1,Us=e=>{if(Oa(e)!=="object")return!1;const t=Ta(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Dg=Sn("Date"),Rg=Sn("File"),Ng=Sn("Blob"),Bg=Sn("FileList"),Fg=e=>La(e)&&Yn(e.pipe),Ug=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||bu.call(e)===t||Yn(e.toString)&&e.toString()===t)},jg=Sn("URLSearchParams"),Hg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ji(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,i;if(typeof e!="object"&&(e=[e]),ni(e))for(o=0,i=e.length;o0;)if(i=n[o],t===i.toLowerCase())return i;return null}const Cu=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$u=e=>!Ui(e)&&e!==Cu;function Ma(){const{caseless:e}=$u(this)&&this||{},t={},n=(o,i)=>{const s=e&&xu(t,i)||i;Us(t[s])&&Us(o)?t[s]=Ma(t[s],o):Us(o)?t[s]=Ma({},o):ni(o)?t[s]=o.slice():t[s]=o};for(let o=0,i=arguments.length;o(ji(t,(i,s)=>{n&&Yn(i)?e[s]=wu(i,n):e[s]=i},{allOwnKeys:o}),e),zg=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vg=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Wg=(e,t,n,o)=>{let i,s,r;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)r=i[s],(!o||o(r,e,t))&&!a[r]&&(t[r]=e[r],a[r]=!0);e=n!==!1&&Ta(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Kg=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},Gg=e=>{if(!e)return null;if(ni(e))return e;let t=e.length;if(!vu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Yg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ta(Uint8Array)),Jg=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=o.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Qg=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Xg=Sn("HTMLFormElement"),Zg=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,i){return o.toUpperCase()+i}),Eu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ey=Sn("RegExp"),ku=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};ji(n,(i,s)=>{t(i,s,e)!==!1&&(o[s]=i)}),Object.defineProperties(e,o)},ty=e=>{ku(e,(t,n)=>{if(Yn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(!!Yn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ny=(e,t)=>{const n={},o=i=>{i.forEach(s=>{n[s]=!0})};return ni(e)?o(e):o(String(e).split(t)),n},oy=()=>{},iy=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Da="abcdefghijklmnopqrstuvwxyz",Su="0123456789",Au={DIGIT:Su,ALPHA:Da,ALPHA_DIGIT:Da+Da.toUpperCase()+Su},sy=(e=16,t=Au.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function ry(e){return!!(e&&Yn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const J={isArray:ni,isArrayBuffer:_u,isBuffer:Tg,isFormData:Ug,isArrayBufferView:Og,isString:Lg,isNumber:vu,isBoolean:Mg,isObject:La,isPlainObject:Us,isUndefined:Ui,isDate:Dg,isFile:Rg,isBlob:Ng,isRegExp:ey,isFunction:Yn,isStream:Fg,isURLSearchParams:jg,isTypedArray:Yg,isFileList:Bg,forEach:ji,merge:Ma,extend:qg,trim:Hg,stripBOM:zg,inherits:Vg,toFlatObject:Wg,kindOf:Oa,kindOfTest:Sn,endsWith:Kg,toArray:Gg,forEachEntry:Jg,matchAll:Qg,isHTMLForm:Xg,hasOwnProperty:Eu,hasOwnProp:Eu,reduceDescriptors:ku,freezeMethods:ty,toObjectSet:ny,toCamelCase:Zg,noop:oy,toFiniteNumber:iy,findKey:xu,global:Cu,isContextDefined:$u,ALPHABET:Au,generateString:sy,isSpecCompliantForm:ry,toJSONObject:e=>{const t=new Array(10),n=(o,i)=>{if(La(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[i]=o;const s=ni(o)?[]:{};return ji(o,(r,a)=>{const l=n(r,i+1);!Ui(l)&&(s[a]=l)}),t[i]=void 0,s}}return o};return n(e,0)}};function Ke(e,t,n,o,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),o&&(this.request=o),i&&(this.response=i)}J.inherits(Ke,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:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Pu=Ke.prototype,Iu={};["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=>{Iu[e]={value:e}}),Object.defineProperties(Ke,Iu),Object.defineProperty(Pu,"isAxiosError",{value:!0}),Ke.from=(e,t,n,o,i,s)=>{const r=Object.create(Pu);return J.toFlatObject(e,r,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Ke.call(r,e.message,t,n,o,i),r.cause=e,r.name=e.name,s&&Object.assign(r,s),r};const ay=null;function Ra(e){return J.isPlainObject(e)||J.isArray(e)}function Tu(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Ou(e,t,n){return e?e.concat(t).map(function(i,s){return i=Tu(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function ly(e){return J.isArray(e)&&!e.some(Ra)}const cy=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function js(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,I){return!J.isUndefined(I[E])});const o=n.metaTokens,i=n.visitor||f,s=n.dots,r=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(i))throw new TypeError("visitor must be a function");function u(_){if(_===null)return"";if(J.isDate(_))return _.toISOString();if(!l&&J.isBlob(_))throw new Ke("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(_)||J.isTypedArray(_)?l&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function f(_,E,I){let M=_;if(_&&!I&&typeof _=="object"){if(J.endsWith(E,"{}"))E=o?E:E.slice(0,-2),_=JSON.stringify(_);else if(J.isArray(_)&&ly(_)||(J.isFileList(_)||J.endsWith(E,"[]"))&&(M=J.toArray(_)))return E=Tu(E),M.forEach(function(T,H){!(J.isUndefined(T)||T===null)&&t.append(r===!0?Ou([E],H,s):r===null?E:E+"[]",u(T))}),!1}return Ra(_)?!0:(t.append(Ou(I,E,s),u(_)),!1)}const h=[],g=Object.assign(cy,{defaultVisitor:f,convertValue:u,isVisitable:Ra});function b(_,E){if(!J.isUndefined(_)){if(h.indexOf(_)!==-1)throw Error("Circular reference detected in "+E.join("."));h.push(_),J.forEach(_,function(M,P){(!(J.isUndefined(M)||M===null)&&i.call(t,M,J.isString(P)?P.trim():P,E,g))===!0&&b(M,E?E.concat(P):[P])}),h.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Lu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Na(e,t){this._pairs=[],e&&js(e,this,t)}const Mu=Na.prototype;Mu.append=function(t,n){this._pairs.push([t,n])},Mu.toString=function(t){const n=t?function(o){return t.call(this,o,Lu)}:Lu;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function uy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Du(e,t,n){if(!t)return e;const o=n&&n.encode||uy,i=n&&n.serialize;let s;if(i?s=i(t,n):s=J.isURLSearchParams(t)?t.toString():new Na(t,n).toString(o),s){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class dy{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Ru=dy,Nu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fy=typeof URLSearchParams<"u"?URLSearchParams:Na,py=typeof FormData<"u"?FormData:null,hy=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),my=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mn={isBrowser:!0,classes:{URLSearchParams:fy,FormData:py,Blob},isStandardBrowserEnv:hy,isStandardBrowserWebWorkerEnv:my,protocols:["http","https","file","blob","url","data"]};function gy(e,t){return js(e,new mn.classes.URLSearchParams,Object.assign({visitor:function(n,o,i,s){return mn.isNode&&J.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function yy(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wy(e){const t={},n=Object.keys(e);let o;const i=n.length;let s;for(o=0;o=n.length;return r=!r&&J.isArray(i)?i.length:r,l?(J.hasOwnProp(i,r)?i[r]=[i[r],o]:i[r]=o,!a):((!i[r]||!J.isObject(i[r]))&&(i[r]=[]),t(n,o,i[r],s)&&J.isArray(i[r])&&(i[r]=wy(i[r])),!a)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(o,i)=>{t(yy(o),i,n,0)}),n}return null}const by={"Content-Type":void 0};function _y(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Hs={transitional:Nu,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",i=o.indexOf("application/json")>-1,s=J.isObject(t);if(s&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return i&&i?JSON.stringify(Bu(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return gy(t,this.formSerializer).toString();if((a=J.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return js(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),_y(t)):t}],transformResponse:[function(t){const n=this.transitional||Hs.transitional,o=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&J.isString(t)&&(o&&!this.responseType||i)){const r=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(r)throw a.name==="SyntaxError"?Ke.from(a,Ke.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:mn.classes.FormData,Blob:mn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};J.forEach(["delete","get","head"],function(t){Hs.headers[t]={}}),J.forEach(["post","put","patch"],function(t){Hs.headers[t]=J.merge(by)});const Ba=Hs,vy=J.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"]),xy=e=>{const t={};let n,o,i;return e&&e.split(` `).forEach(function(r){i=r.indexOf(":"),n=r.substring(0,i).trim().toLowerCase(),o=r.substring(i+1).trim(),!(!n||t[n]&&vy[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},Fu=Symbol("internals");function Hi(e){return e&&String(e).trim().toLowerCase()}function qs(e){return e===!1||e==null?e:J.isArray(e)?e.map(qs):String(e)}function Cy(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}function $y(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Fa(e,t,n,o,i){if(J.isFunction(o))return o.call(this,t,n);if(i&&(t=n),!!J.isString(t)){if(J.isString(o))return t.indexOf(o)!==-1;if(J.isRegExp(o))return o.test(t)}}function Ey(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function ky(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(i,s,r){return this[o].call(this,t,i,s,r)},configurable:!0})})}class zs{constructor(t){t&&this.set(t)}set(t,n,o){const i=this;function s(a,l,u){const f=Hi(l);if(!f)throw new Error("header name must be a non-empty string");const h=J.findKey(i,f);(!h||i[h]===void 0||u===!0||u===void 0&&i[h]!==!1)&&(i[h||l]=qs(a))}const r=(a,l)=>J.forEach(a,(u,f)=>s(u,f,l));return J.isPlainObject(t)||t instanceof this.constructor?r(t,n):J.isString(t)&&(t=t.trim())&&!$y(t)?r(xy(t),n):t!=null&&s(n,t,o),this}get(t,n){if(t=Hi(t),t){const o=J.findKey(this,t);if(o){const i=this[o];if(!n)return i;if(n===!0)return Cy(i);if(J.isFunction(n))return n.call(this,i,o);if(J.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Hi(t),t){const o=J.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Fa(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let i=!1;function s(r){if(r=Hi(r),r){const a=J.findKey(o,r);a&&(!n||Fa(o,o[a],a,n))&&(delete o[a],i=!0)}}return J.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let o=n.length,i=!1;for(;o--;){const s=n[o];(!t||Fa(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,o={};return J.forEach(this,(i,s)=>{const r=J.findKey(o,s);if(r){n[r]=qs(i),delete n[s];return}const a=t?Ey(s):String(s).trim();a!==s&&delete n[s],n[a]=qs(i),o[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(o,i)=>{o!=null&&o!==!1&&(n[i]=t&&J.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(i=>o.set(i)),o}static accessor(t){const o=(this[Fu]=this[Fu]={accessors:{}}).accessors,i=this.prototype;function s(r){const a=Hi(r);o[a]||(ky(i,r),o[a]=!0)}return J.isArray(t)?t.forEach(s):s(t),this}}zs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.freezeMethods(zs.prototype),J.freezeMethods(zs);const An=zs;function Ua(e,t){const n=this||Ba,o=t||n,i=An.from(o.headers);let s=o.data;return J.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Uu(e){return!!(e&&e.__CANCEL__)}function qi(e,t,n){Ke.call(this,e==null?"canceled":e,Ke.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(qi,Ke,{__CANCEL__:!0});function Sy(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new Ke("Request failed with status code "+n.status,[Ke.ERR_BAD_REQUEST,Ke.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Ay=mn.isStandardBrowserEnv?function(){return{write:function(n,o,i,s,r,a){const l=[];l.push(n+"="+encodeURIComponent(o)),J.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),J.isString(s)&&l.push("path="+s),J.isString(r)&&l.push("domain="+r),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Py(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Iy(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ju(e,t){return e&&!Py(t)?Iy(e,t):t}const Ty=mn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function i(s){let r=s;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=i(window.location.href),function(r){const a=J.isString(r)?i(r):r;return a.protocol===o.protocol&&a.host===o.host}}():function(){return function(){return!0}}();function Oy(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ly(e,t){e=e||10;const n=new Array(e),o=new Array(e);let i=0,s=0,r;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=o[s];r||(r=u),n[i]=l,o[i]=u;let h=s,g=0;for(;h!==i;)g+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-r{const s=i.loaded,r=i.lengthComputable?i.total:void 0,a=s-n,l=o(a),u=s<=r;n=s;const f={loaded:s,total:r,progress:r?s/r:void 0,bytes:a,rate:l||void 0,estimated:l&&r&&u?(r-s)/l:void 0,event:i};f[t?"download":"upload"]=!0,e(f)}}const Vs={http:ay,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let i=e.data;const s=An.from(e.headers).normalize(),r=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}J.isFormData(i)&&(mn.isStandardBrowserEnv||mn.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const b=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(b+":"+_))}const f=ju(e.baseURL,e.url);u.open(e.method.toUpperCase(),Du(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function h(){if(!u)return;const b=An.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),E={data:!r||r==="text"||r==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:b,config:e,request:u};Sy(function(M){n(M),l()},function(M){o(M),l()},E),u=null}if("onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(h)},u.onabort=function(){!u||(o(new Ke("Request aborted",Ke.ECONNABORTED,e,u)),u=null)},u.onerror=function(){o(new Ke("Network Error",Ke.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let _=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const E=e.transitional||Nu;e.timeoutErrorMessage&&(_=e.timeoutErrorMessage),o(new Ke(_,E.clarifyTimeoutError?Ke.ETIMEDOUT:Ke.ECONNABORTED,e,u)),u=null},mn.isStandardBrowserEnv){const b=(e.withCredentials||Ty(f))&&e.xsrfCookieName&&Ay.read(e.xsrfCookieName);b&&s.set(e.xsrfHeaderName,b)}i===void 0&&s.setContentType(null),"setRequestHeader"in u&&J.forEach(s.toJSON(),function(_,E){u.setRequestHeader(E,_)}),J.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),r&&r!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Hu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Hu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=b=>{!u||(o(!b||b.type?new qi(null,e,u):b),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const g=Oy(f);if(g&&mn.protocols.indexOf(g)===-1){o(new Ke("Unsupported protocol "+g+":",Ke.ERR_BAD_REQUEST,e));return}u.send(i||null)})}};J.forEach(Vs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const My={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let i=0;ie instanceof An?e.toJSON():e;function oi(e,t){t=t||{};const n={};function o(u,f,h){return J.isPlainObject(u)&&J.isPlainObject(f)?J.merge.call({caseless:h},u,f):J.isPlainObject(f)?J.merge({},f):J.isArray(f)?f.slice():f}function i(u,f,h){if(J.isUndefined(f)){if(!J.isUndefined(u))return o(void 0,u,h)}else return o(u,f,h)}function s(u,f){if(!J.isUndefined(f))return o(void 0,f)}function r(u,f){if(J.isUndefined(f)){if(!J.isUndefined(u))return o(void 0,u)}else return o(void 0,f)}function a(u,f,h){if(h in t)return o(u,f);if(h in e)return o(void 0,u)}const l={url:s,method:s,data:s,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:a,headers:(u,f)=>i(zu(u),zu(f),!0)};return J.forEach(Object.keys(e).concat(Object.keys(t)),function(f){const h=l[f]||i,g=h(e[f],t[f],f);J.isUndefined(g)&&h!==a||(n[f]=g)}),n}const Vu="1.3.3",Ha={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ha[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Wu={};Ha.transitional=function(t,n,o){function i(s,r){return"[Axios v"+Vu+"] Transitional option '"+s+"'"+r+(o?". "+o:"")}return(s,r,a)=>{if(t===!1)throw new Ke(i(r," has been removed"+(n?" in "+n:"")),Ke.ERR_DEPRECATED);return n&&!Wu[r]&&(Wu[r]=!0,console.warn(i(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,r,a):!0}};function Dy(e,t,n){if(typeof e!="object")throw new Ke("options must be an object",Ke.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let i=o.length;for(;i-- >0;){const s=o[i],r=t[s];if(r){const a=e[s],l=a===void 0||r(a,s,e);if(l!==!0)throw new Ke("option "+s+" must be "+l,Ke.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ke("Unknown option "+s,Ke.ERR_BAD_OPTION)}}const qa={assertOptions:Dy,validators:Ha},Jn=qa.validators;class Ws{constructor(t){this.defaults=t,this.interceptors={request:new Ru,response:new Ru}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=oi(this.defaults,n);const{transitional:o,paramsSerializer:i,headers:s}=n;o!==void 0&&qa.assertOptions(o,{silentJSONParsing:Jn.transitional(Jn.boolean),forcedJSONParsing:Jn.transitional(Jn.boolean),clarifyTimeoutError:Jn.transitional(Jn.boolean)},!1),i!==void 0&&qa.assertOptions(i,{encode:Jn.function,serialize:Jn.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r;r=s&&J.merge(s.common,s[n.method]),r&&J.forEach(["delete","get","head","post","put","patch","common"],_=>{delete s[_]}),n.headers=An.concat(r,s);const a=[];let l=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(l=l&&E.synchronous,a.unshift(E.fulfilled,E.rejected))});const u=[];this.interceptors.response.forEach(function(E){u.push(E.fulfilled,E.rejected)});let f,h=0,g;if(!l){const _=[qu.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,u),g=_.length,f=Promise.resolve(n);h{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](i);o._listeners=null}),this.promise.then=i=>{let s;const r=new Promise(a=>{o.subscribe(a),s=a}).then(i);return r.cancel=function(){o.unsubscribe(s)},r},t(function(s,r,a){o.reason||(o.reason=new qi(s,r,a),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new za(function(i){t=i}),cancel:t}}}const Ry=za;function Ny(e){return function(n){return e.apply(null,n)}}function By(e){return J.isObject(e)&&e.isAxiosError===!0}const Va={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(Va).forEach(([e,t])=>{Va[t]=e});const Fy=Va;function Ku(e){const t=new Ks(e),n=wu(Ks.prototype.request,t);return J.extend(n,Ks.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Ku(oi(e,i))},n}const ht=Ku(Ba);ht.Axios=Ks,ht.CanceledError=qi,ht.CancelToken=Ry,ht.isCancel=Uu,ht.VERSION=Vu,ht.toFormData=js,ht.AxiosError=Ke,ht.Cancel=ht.CanceledError,ht.all=function(t){return Promise.all(t)},ht.spread=Ny,ht.isAxiosError=By,ht.mergeConfig=oi,ht.AxiosHeaders=An,ht.formToJSON=e=>Bu(J.isHTMLForm(e)?new FormData(e):e),ht.HttpStatusCode=Fy,ht.default=ht;const Gu=ht,{Axios:Z5,AxiosError:Uy,CanceledError:eR,isCancel:tR,CancelToken:nR,VERSION:oR,all:iR,Cancel:sR,isAxiosError:rR,spread:aR,toFormData:jy,AxiosHeaders:lR,HttpStatusCode:cR,formToJSON:uR,mergeConfig:dR}=Gu;class Yu extends Error{}class Wa extends Yu{constructor(){super(...arguments);_e(this,"message","搜索失败!")}}class Ju extends Wa{constructor(){super(...arguments);_e(this,"message","搜索请求响应内容为空!")}}class Ka extends Yu{constructor(){super(...arguments);_e(this,"message","目录不存在!")}toString(){return this.message}}var Qu=(e=>(e[e.exist=20004]="exist",e))(Qu||{});const Hy={[10013]:"超出任务大小限制",[10018]:"审核中...",[10016]:"文件内含违规内容"};class ut{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=ut.hexChars,o=ut.hexOut;let i,s,r,a;for(a=0;a<4;a+=1)for(s=a*8,i=t[a],r=0;r<8;r+=2)o[s+1+r]=n.charAt(i&15),i>>>=4,o[s+0+r]=n.charAt(i&15),i>>>=4;return o.join("")}static _md5cycle(t,n){let o=t[0],i=t[1],s=t[2],r=t[3];o+=(i&s|~i&r)+n[0]-680876936|0,o=(o<<7|o>>>25)+i|0,r+=(o&i|~o&s)+n[1]-389564586|0,r=(r<<12|r>>>20)+o|0,s+=(r&o|~r&i)+n[2]+606105819|0,s=(s<<17|s>>>15)+r|0,i+=(s&r|~s&o)+n[3]-1044525330|0,i=(i<<22|i>>>10)+s|0,o+=(i&s|~i&r)+n[4]-176418897|0,o=(o<<7|o>>>25)+i|0,r+=(o&i|~o&s)+n[5]+1200080426|0,r=(r<<12|r>>>20)+o|0,s+=(r&o|~r&i)+n[6]-1473231341|0,s=(s<<17|s>>>15)+r|0,i+=(s&r|~s&o)+n[7]-45705983|0,i=(i<<22|i>>>10)+s|0,o+=(i&s|~i&r)+n[8]+1770035416|0,o=(o<<7|o>>>25)+i|0,r+=(o&i|~o&s)+n[9]-1958414417|0,r=(r<<12|r>>>20)+o|0,s+=(r&o|~r&i)+n[10]-42063|0,s=(s<<17|s>>>15)+r|0,i+=(s&r|~s&o)+n[11]-1990404162|0,i=(i<<22|i>>>10)+s|0,o+=(i&s|~i&r)+n[12]+1804603682|0,o=(o<<7|o>>>25)+i|0,r+=(o&i|~o&s)+n[13]-40341101|0,r=(r<<12|r>>>20)+o|0,s+=(r&o|~r&i)+n[14]-1502002290|0,s=(s<<17|s>>>15)+r|0,i+=(s&r|~s&o)+n[15]+1236535329|0,i=(i<<22|i>>>10)+s|0,o+=(i&r|s&~r)+n[1]-165796510|0,o=(o<<5|o>>>27)+i|0,r+=(o&s|i&~s)+n[6]-1069501632|0,r=(r<<9|r>>>23)+o|0,s+=(r&i|o&~i)+n[11]+643717713|0,s=(s<<14|s>>>18)+r|0,i+=(s&o|r&~o)+n[0]-373897302|0,i=(i<<20|i>>>12)+s|0,o+=(i&r|s&~r)+n[5]-701558691|0,o=(o<<5|o>>>27)+i|0,r+=(o&s|i&~s)+n[10]+38016083|0,r=(r<<9|r>>>23)+o|0,s+=(r&i|o&~i)+n[15]-660478335|0,s=(s<<14|s>>>18)+r|0,i+=(s&o|r&~o)+n[4]-405537848|0,i=(i<<20|i>>>12)+s|0,o+=(i&r|s&~r)+n[9]+568446438|0,o=(o<<5|o>>>27)+i|0,r+=(o&s|i&~s)+n[14]-1019803690|0,r=(r<<9|r>>>23)+o|0,s+=(r&i|o&~i)+n[3]-187363961|0,s=(s<<14|s>>>18)+r|0,i+=(s&o|r&~o)+n[8]+1163531501|0,i=(i<<20|i>>>12)+s|0,o+=(i&r|s&~r)+n[13]-1444681467|0,o=(o<<5|o>>>27)+i|0,r+=(o&s|i&~s)+n[2]-51403784|0,r=(r<<9|r>>>23)+o|0,s+=(r&i|o&~i)+n[7]+1735328473|0,s=(s<<14|s>>>18)+r|0,i+=(s&o|r&~o)+n[12]-1926607734|0,i=(i<<20|i>>>12)+s|0,o+=(i^s^r)+n[5]-378558|0,o=(o<<4|o>>>28)+i|0,r+=(o^i^s)+n[8]-2022574463|0,r=(r<<11|r>>>21)+o|0,s+=(r^o^i)+n[11]+1839030562|0,s=(s<<16|s>>>16)+r|0,i+=(s^r^o)+n[14]-35309556|0,i=(i<<23|i>>>9)+s|0,o+=(i^s^r)+n[1]-1530992060|0,o=(o<<4|o>>>28)+i|0,r+=(o^i^s)+n[4]+1272893353|0,r=(r<<11|r>>>21)+o|0,s+=(r^o^i)+n[7]-155497632|0,s=(s<<16|s>>>16)+r|0,i+=(s^r^o)+n[10]-1094730640|0,i=(i<<23|i>>>9)+s|0,o+=(i^s^r)+n[13]+681279174|0,o=(o<<4|o>>>28)+i|0,r+=(o^i^s)+n[0]-358537222|0,r=(r<<11|r>>>21)+o|0,s+=(r^o^i)+n[3]-722521979|0,s=(s<<16|s>>>16)+r|0,i+=(s^r^o)+n[6]+76029189|0,i=(i<<23|i>>>9)+s|0,o+=(i^s^r)+n[9]-640364487|0,o=(o<<4|o>>>28)+i|0,r+=(o^i^s)+n[12]-421815835|0,r=(r<<11|r>>>21)+o|0,s+=(r^o^i)+n[15]+530742520|0,s=(s<<16|s>>>16)+r|0,i+=(s^r^o)+n[2]-995338651|0,i=(i<<23|i>>>9)+s|0,o+=(s^(i|~r))+n[0]-198630844|0,o=(o<<6|o>>>26)+i|0,r+=(i^(o|~s))+n[7]+1126891415|0,r=(r<<10|r>>>22)+o|0,s+=(o^(r|~i))+n[14]-1416354905|0,s=(s<<15|s>>>17)+r|0,i+=(r^(s|~o))+n[5]-57434055|0,i=(i<<21|i>>>11)+s|0,o+=(s^(i|~r))+n[12]+1700485571|0,o=(o<<6|o>>>26)+i|0,r+=(i^(o|~s))+n[3]-1894986606|0,r=(r<<10|r>>>22)+o|0,s+=(o^(r|~i))+n[10]-1051523|0,s=(s<<15|s>>>17)+r|0,i+=(r^(s|~o))+n[1]-2054922799|0,i=(i<<21|i>>>11)+s|0,o+=(s^(i|~r))+n[8]+1873313359|0,o=(o<<6|o>>>26)+i|0,r+=(i^(o|~s))+n[15]-30611744|0,r=(r<<10|r>>>22)+o|0,s+=(o^(r|~i))+n[6]-1560198380|0,s=(s<<15|s>>>17)+r|0,i+=(r^(s|~o))+n[13]+1309151649|0,i=(i<<21|i>>>11)+s|0,o+=(s^(i|~r))+n[4]-145523070|0,o=(o<<6|o>>>26)+i|0,r+=(i^(o|~s))+n[11]-1120210379|0,r=(r<<10|r>>>22)+o|0,s+=(o^(r|~i))+n[2]+718787259|0,s=(s<<15|s>>>17)+r|0,i+=(r^(s|~o))+n[9]-343485551|0,i=(i<<21|i>>>11)+s|0,t[0]=o+t[0]|0,t[1]=i+t[1]|0,t[2]=s+t[2]|0,t[3]=r+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(ut.stateIdentity),this}appendStr(t){const n=this._buffer8,o=this._buffer32;let i=this._bufferLength,s,r;for(r=0;r>>6)+192,n[i++]=s&63|128;else if(s<55296||s>56319)n[i++]=(s>>>12)+224,n[i++]=s>>>6&63|128,n[i++]=s&63|128;else{if(s=(s-55296)*1024+(t.charCodeAt(++r)-56320)+65536,s>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");n[i++]=(s>>>18)+240,n[i++]=s>>>12&63|128,n[i++]=s>>>6&63|128,n[i++]=s&63|128}i>=64&&(this._dataLength+=64,ut._md5cycle(this._state,o),i-=64,o[0]=o[16])}return this._bufferLength=i,this}appendAsciiStr(t){const n=this._buffer8,o=this._buffer32;let i=this._bufferLength,s,r=0;for(;;){for(s=Math.min(t.length-r,64-i);s--;)n[i++]=t.charCodeAt(r++);if(i<64)break;this._dataLength+=64,ut._md5cycle(this._state,o),i=0}return this._bufferLength=i,this}appendByteArray(t){const n=this._buffer8,o=this._buffer32;let i=this._bufferLength,s,r=0;for(;;){for(s=Math.min(t.length-r,64-i);s--;)n[i++]=t[r++];if(i<64)break;this._dataLength+=64,ut._md5cycle(this._state,o),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,o=t.state,i=this._state;let s;for(this._dataLength=t.length,this._bufferLength=t.buflen,i[0]=o[0],i[1]=o[1],i[2]=o[2],i[3]=o[3],s=0;s>2)+1;this._dataLength+=n;const r=this._dataLength*8;if(o[n]=128,o[n+1]=o[n+2]=o[n+3]=0,i.set(ut.buffer32Identity.subarray(s),s),n>55&&(ut._md5cycle(this._state,i),i.set(ut.buffer32Identity)),r<=4294967295)i[14]=r;else{const a=r.toString(16).match(/(.*?)(.{0,8})$/);if(a===null)return;const l=parseInt(a[2],16),u=parseInt(a[1],16)||0;i[14]=l,i[15]=u}return ut._md5cycle(this._state,i),t?this._state:ut._hex(this._state)}}if(ut.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),ut.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),ut.hexChars="0123456789abcdef",ut.hexOut=[],ut.onePassHasher=new ut,ut.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");var Xu={exports:{}};(function(e){var t=function(n){var o=1e7,i=7,s=9007199254740992,r=_(s),a="0123456789abcdefghijklmnopqrstuvwxyz",l=typeof BigInt=="function";function u(m,w,C,k){return typeof m>"u"?u[0]:typeof w<"u"?+w==10&&!C?q(m):W(m,w,C,k):q(m)}function f(m,w){this.value=m,this.sign=w,this.isSmall=!1}f.prototype=Object.create(u.prototype);function h(m){this.value=m,this.sign=m<0,this.isSmall=!0}h.prototype=Object.create(u.prototype);function g(m){this.value=m}g.prototype=Object.create(u.prototype);function b(m){return-s0?Math.floor(m):Math.ceil(m)}function T(m,w){var C=m.length,k=w.length,L=new Array(C),S=0,V=o,Y,oe;for(oe=0;oe=V?1:0,L[oe]=Y-S*V;for(;oe0&&L.push(S),L}function H(m,w){return m.length>=w.length?T(m,w):T(w,m)}function ie(m,w){var C=m.length,k=new Array(C),L=o,S,V;for(V=0;V0;)k[V++]=w%L,w=Math.floor(w/L);return k}f.prototype.add=function(m){var w=q(m);if(this.sign!==w.sign)return this.subtract(w.negate());var C=this.value,k=w.value;return w.isSmall?new f(ie(C,Math.abs(k)),this.sign):new f(H(C,k),this.sign)},f.prototype.plus=f.prototype.add,h.prototype.add=function(m){var w=q(m),C=this.value;if(C<0!==w.sign)return this.subtract(w.negate());var k=w.value;if(w.isSmall){if(b(C+k))return new h(C+k);k=_(Math.abs(k))}return new f(ie(k,Math.abs(C)),C<0)},h.prototype.plus=h.prototype.add,g.prototype.add=function(m){return new g(this.value+q(m).value)},g.prototype.plus=g.prototype.add;function U(m,w){var C=m.length,k=w.length,L=new Array(C),S=0,V=o,Y,oe;for(Y=0;Y=0?k=U(m,w):(k=U(w,m),C=!C),k=E(k),typeof k=="number"?(C&&(k=-k),new h(k)):new f(k,C)}function ce(m,w,C){var k=m.length,L=new Array(k),S=-w,V=o,Y,oe;for(Y=0;Y=0)},h.prototype.minus=h.prototype.subtract,g.prototype.subtract=function(m){return new g(this.value-q(m).value)},g.prototype.minus=g.prototype.subtract,f.prototype.negate=function(){return new f(this.value,!this.sign)},h.prototype.negate=function(){var m=this.sign,w=new h(-this.value);return w.sign=!m,w},g.prototype.negate=function(){return new g(-this.value)},f.prototype.abs=function(){return new f(this.value,!1)},h.prototype.abs=function(){return new h(Math.abs(this.value))},g.prototype.abs=function(){return new g(this.value>=0?this.value:-this.value)};function ye(m,w){var C=m.length,k=w.length,L=C+k,S=M(L),V=o,Y,oe,Oe,Te,$e;for(Oe=0;Oe0;)k[Y++]=S%L,S=Math.floor(S/L);return k}function be(m,w){for(var C=[];w-- >0;)C.push(0);return C.concat(m)}function O(m,w){var C=Math.max(m.length,w.length);if(C<=30)return ye(m,w);C=Math.ceil(C/2);var k=m.slice(C),L=m.slice(0,C),S=w.slice(C),V=w.slice(0,C),Y=O(L,V),oe=O(k,S),Oe=O(H(L,k),H(V,S)),Te=H(H(Y,be(U(U(Oe,Y),oe),C)),be(oe,2*C));return I(Te),Te}function re(m,w){return-.012*m-.012*w+15e-6*m*w>0}f.prototype.multiply=function(m){var w=q(m),C=this.value,k=w.value,L=this.sign!==w.sign,S;if(w.isSmall){if(k===0)return u[0];if(k===1)return this;if(k===-1)return this.negate();if(S=Math.abs(k),S=0;$e--){for(Te=L-1,oe[$e+k]!==V&&(Te=Math.floor((oe[$e+k]*L+oe[$e+k-1])/V)),ze=0,Rt=0,Ss=Oe.length,$t=0;$tk&&(Oe=(Oe+1)*V),Y=Math.ceil(Oe/Te);do{if($e=Ie(w,Y),Ae($e,S)<=0)break;Y--}while(Y);L.push(Y),S=U(S,$e)}return L.reverse(),[E(L),E(S)]}function N(m,w){var C=m.length,k=M(C),L=o,S,V,Y,oe;for(Y=0,S=C-1;S>=0;--S)oe=Y*L+m[S],V=P(oe/w),Y=oe-V*w,k[S]=V|0;return[k,Y|0]}function we(m,w){var C,k=q(w);if(l)return[new g(m.value/k.value),new g(m.value%k.value)];var L=m.value,S=k.value,V;if(S===0)throw new Error("Cannot divide by zero");if(m.isSmall)return k.isSmall?[new h(P(L/S)),new h(L%S)]:[u[0],m];if(k.isSmall){if(S===1)return[m,u[0]];if(S==-1)return[m.negate(),u[0]];var Y=Math.abs(S);if(Yw.length?1:-1;for(var C=m.length-1;C>=0;C--)if(m[C]!==w[C])return m[C]>w[C]?1:-1;return 0}f.prototype.compareAbs=function(m){var w=q(m),C=this.value,k=w.value;return w.isSmall?1:Ae(C,k)},h.prototype.compareAbs=function(m){var w=q(m),C=Math.abs(this.value),k=w.value;return w.isSmall?(k=Math.abs(k),C===k?0:C>k?1:-1):-1},g.prototype.compareAbs=function(m){var w=this.value,C=q(m).value;return w=w>=0?w:-w,C=C>=0?C:-C,w===C?0:w>C?1:-1},f.prototype.compare=function(m){if(m===1/0)return-1;if(m===-1/0)return 1;var w=q(m),C=this.value,k=w.value;return this.sign!==w.sign?w.sign?1:-1:w.isSmall?this.sign?-1:1:Ae(C,k)*(this.sign?-1:1)},f.prototype.compareTo=f.prototype.compare,h.prototype.compare=function(m){if(m===1/0)return-1;if(m===-1/0)return 1;var w=q(m),C=this.value,k=w.value;return w.isSmall?C==k?0:C>k?1:-1:C<0!==w.sign?C<0?-1:1:C<0?1:-1},h.prototype.compareTo=h.prototype.compare,g.prototype.compare=function(m){if(m===1/0)return-1;if(m===-1/0)return 1;var w=this.value,C=q(m).value;return w===C?0:w>C?1:-1},g.prototype.compareTo=g.prototype.compare,f.prototype.equals=function(m){return this.compare(m)===0},g.prototype.eq=g.prototype.equals=h.prototype.eq=h.prototype.equals=f.prototype.eq=f.prototype.equals,f.prototype.notEquals=function(m){return this.compare(m)!==0},g.prototype.neq=g.prototype.notEquals=h.prototype.neq=h.prototype.notEquals=f.prototype.neq=f.prototype.notEquals,f.prototype.greater=function(m){return this.compare(m)>0},g.prototype.gt=g.prototype.greater=h.prototype.gt=h.prototype.greater=f.prototype.gt=f.prototype.greater,f.prototype.lesser=function(m){return this.compare(m)<0},g.prototype.lt=g.prototype.lesser=h.prototype.lt=h.prototype.lesser=f.prototype.lt=f.prototype.lesser,f.prototype.greaterOrEquals=function(m){return this.compare(m)>=0},g.prototype.geq=g.prototype.greaterOrEquals=h.prototype.geq=h.prototype.greaterOrEquals=f.prototype.geq=f.prototype.greaterOrEquals,f.prototype.lesserOrEquals=function(m){return this.compare(m)<=0},g.prototype.leq=g.prototype.lesserOrEquals=h.prototype.leq=h.prototype.lesserOrEquals=f.prototype.leq=f.prototype.lesserOrEquals,f.prototype.isEven=function(){return(this.value[0]&1)===0},h.prototype.isEven=function(){return(this.value&1)===0},g.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},f.prototype.isOdd=function(){return(this.value[0]&1)===1},h.prototype.isOdd=function(){return(this.value&1)===1},g.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},f.prototype.isPositive=function(){return!this.sign},h.prototype.isPositive=function(){return this.value>0},g.prototype.isPositive=h.prototype.isPositive,f.prototype.isNegative=function(){return this.sign},h.prototype.isNegative=function(){return this.value<0},g.prototype.isNegative=h.prototype.isNegative,f.prototype.isUnit=function(){return!1},h.prototype.isUnit=function(){return Math.abs(this.value)===1},g.prototype.isUnit=function(){return this.abs().value===BigInt(1)},f.prototype.isZero=function(){return!1},h.prototype.isZero=function(){return this.value===0},g.prototype.isZero=function(){return this.value===BigInt(0)},f.prototype.isDivisibleBy=function(m){var w=q(m);return w.isZero()?!1:w.isUnit()?!0:w.compareAbs(2)===0?this.isEven():this.mod(w).isZero()},g.prototype.isDivisibleBy=h.prototype.isDivisibleBy=f.prototype.isDivisibleBy;function De(m){var w=m.abs();if(w.isUnit())return!1;if(w.equals(2)||w.equals(3)||w.equals(5))return!0;if(w.isEven()||w.isDivisibleBy(3)||w.isDivisibleBy(5))return!1;if(w.lesser(49))return!0}function pe(m,w){for(var C=m.prev(),k=C,L=0,S,V,Y;k.isEven();)k=k.divide(2),L++;e:for(V=0;V-s?new h(m-1):new f(r,!0)},g.prototype.prev=function(){return new g(this.value-BigInt(1))};for(var ue=[1];2*ue[ue.length-1]<=o;)ue.push(2*ue[ue.length-1]);var He=ue.length,ot=ue[He-1];function Me(m){return Math.abs(m)<=o}f.prototype.shiftLeft=function(m){var w=q(m).toJSNumber();if(!Me(w))throw new Error(String(w)+" is too large for shifting.");if(w<0)return this.shiftRight(-w);var C=this;if(C.isZero())return C;for(;w>=He;)C=C.multiply(ot),w-=He-1;return C.multiply(ue[w])},g.prototype.shiftLeft=h.prototype.shiftLeft=f.prototype.shiftLeft,f.prototype.shiftRight=function(m){var w,C=q(m).toJSNumber();if(!Me(C))throw new Error(String(C)+" is too large for shifting.");if(C<0)return this.shiftLeft(-C);for(var k=this;C>=He;){if(k.isZero()||k.isNegative()&&k.isUnit())return k;w=we(k,ot),k=w[1].isNegative()?w[0].prev():w[0],C-=He-1}return w=we(k,ue[C]),w[1].isNegative()?w[0].prev():w[0]},g.prototype.shiftRight=h.prototype.shiftRight=f.prototype.shiftRight;function et(m,w,C){w=q(w);for(var k=m.isNegative(),L=w.isNegative(),S=k?m.not():m,V=L?w.not():w,Y=0,oe=0,Oe=null,Te=null,$e=[];!S.isZero()||!V.isZero();)Oe=we(S,ot),Y=Oe[1].toJSNumber(),k&&(Y=ot-1-Y),Te=we(V,ot),oe=Te[1].toJSNumber(),L&&(oe=ot-1-oe),S=Oe[0],V=Te[0],$e.push(C(Y,oe));for(var ze=C(k?1:0,L?1:0)!==0?t(-1):t(0),Rt=$e.length-1;Rt>=0;Rt-=1)ze=ze.multiply(ot).add(t($e[Rt]));return ze}f.prototype.not=function(){return this.negate().prev()},g.prototype.not=h.prototype.not=f.prototype.not,f.prototype.and=function(m){return et(this,m,function(w,C){return w&C})},g.prototype.and=h.prototype.and=f.prototype.and,f.prototype.or=function(m){return et(this,m,function(w,C){return w|C})},g.prototype.or=h.prototype.or=f.prototype.or,f.prototype.xor=function(m){return et(this,m,function(w,C){return w^C})},g.prototype.xor=h.prototype.xor=f.prototype.xor;var it=1<<30,_t=(o&-o)*(o&-o)|it;function ct(m){var w=m.value,C=typeof w=="number"?w|it:typeof w=="bigint"?w|BigInt(it):w[0]+w[1]*o|_t;return C&-C}function bo(m,w){if(w.compareTo(m)<=0){var C=bo(m,w.square(w)),k=C.p,L=C.e,S=k.multiply(w);return S.compareTo(m)<=0?{p:S,e:L*2+1}:{p:k,e:L*2}}return{p:t(1),e:0}}f.prototype.bitLength=function(){var m=this;return m.compareTo(t(0))<0&&(m=m.negate().subtract(t(1))),m.compareTo(t(0))===0?t(0):t(bo(m,t(2)).e).add(t(1))},g.prototype.bitLength=h.prototype.bitLength=f.prototype.bitLength;function yt(m,w){return m=q(m),w=q(w),m.greater(w)?m:w}function v(m,w){return m=q(m),w=q(w),m.lesser(w)?m:w}function A(m,w){if(m=q(m).abs(),w=q(w).abs(),m.equals(w))return m;if(m.isZero())return w;if(w.isZero())return m;for(var C=u[1],k,L;m.isEven()&&w.isEven();)k=v(ct(m),ct(w)),m=m.divide(k),w=w.divide(k),C=C.multiply(k);for(;m.isEven();)m=m.divide(ct(m));do{for(;w.isEven();)w=w.divide(ct(w));m.greater(w)&&(L=w,w=m,m=L),w=w.subtract(m)}while(!w.isZero());return C.isUnit()?m:m.multiply(C)}function F(m,w){return m=q(m).abs(),w=q(w).abs(),m.divide(A(m,w)).multiply(w)}function R(m,w,C){m=q(m),w=q(w);var k=C||Math.random,L=v(m,w),S=yt(m,w),V=S.subtract(L).add(1);if(V.isSmall)return L.add(Math.floor(k()*V));for(var Y=X(V,o).value,oe=[],Oe=!0,Te=0;Te=V){if(oe==="1"&&V===1)continue;throw new Error(oe+" is not a valid digit in base "+w+".")}}w=q(w);var Oe=[],Te=m[0]==="-";for(S=Te?1:0;S"&&S=0;S--)k=k.add(m[S].times(L)),L=L.times(w);return C?k.negate():k}function he(m,w){return w=w||a,m"}function X(m,w){if(w=t(w),w.isZero()){if(m.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(w.equals(-1)){if(m.isZero())return{value:[0],isNegative:!1};if(m.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-m.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var C=Array.apply(null,Array(m.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return C.unshift([1]),{value:[].concat.apply([],C),isNegative:!1}}var k=!1;if(m.isNegative()&&w.isPositive()&&(k=!0,m=m.abs()),w.isUnit())return m.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(m.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:k};for(var L=[],S=m,V;S.isNegative()||S.compareAbs(w)>=0;){V=S.divmod(w),S=V.quotient;var Y=V.remainder;Y.isNegative()&&(Y=w.minus(Y).abs(),S=S.next()),L.push(Y.toJSNumber())}return L.push(S.toJSNumber()),{value:L.reverse(),isNegative:k}}function ne(m,w,C){var k=X(m,w);return(k.isNegative?"-":"")+k.value.map(function(L){return he(L,C)}).join("")}f.prototype.toArray=function(m){return X(this,m)},h.prototype.toArray=function(m){return X(this,m)},g.prototype.toArray=function(m){return X(this,m)},f.prototype.toString=function(m,w){if(m===n&&(m=10),m!==10)return ne(this,m,w);for(var C=this.value,k=C.length,L=String(C[--k]),S="0000000",V;--k>=0;)V=String(C[k]),L+=S.slice(V.length)+V;var Y=this.sign?"-":"";return Y+L},h.prototype.toString=function(m,w){return m===n&&(m=10),m!=10?ne(this,m,w):String(this.value)},g.prototype.toString=h.prototype.toString,g.prototype.toJSON=f.prototype.toJSON=h.prototype.toJSON=function(){return this.toString()},f.prototype.valueOf=function(){return parseInt(this.toString(),10)},f.prototype.toJSNumber=f.prototype.valueOf,h.prototype.valueOf=function(){return this.value},h.prototype.toJSNumber=h.prototype.valueOf,g.prototype.valueOf=g.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function te(m){if(b(+m)){var w=+m;if(w===P(w))return l?new g(BigInt(w)):new h(w);throw new Error("Invalid integer: "+m)}var C=m[0]==="-";C&&(m=m.slice(1));var k=m.split(/e/i);if(k.length>2)throw new Error("Invalid integer: "+k.join("e"));if(k.length===2){var L=k[1];if(L[0]==="+"&&(L=L.slice(1)),L=+L,L!==P(L)||!b(L))throw new Error("Invalid integer: "+L+" is not a valid exponent.");var S=k[0],V=S.indexOf(".");if(V>=0&&(L-=S.length-V-1,S=S.slice(0,V)+S.slice(V+1)),L<0)throw new Error("Cannot include negative exponent part for integers");S+=new Array(L+1).join("0"),m=S}var Y=/^([0-9][0-9]*)$/.test(m);if(!Y)throw new Error("Invalid integer: "+m);if(l)return new g(BigInt(C?"-"+m:m));for(var oe=[],Oe=m.length,Te=i,$e=Oe-Te;Oe>0;)oe.push(+m.slice($e,Oe)),$e-=Te,$e<0&&($e=0),Oe-=Te;return I(oe),new f(oe,C)}function ve(m){if(l)return new g(BigInt(m));if(b(m)){if(m!==P(m))throw new Error(m+" is not an integer.");return new h(m)}return te(m.toString())}function q(m){return typeof m=="number"?ve(m):typeof m=="string"?te(m):typeof m=="bigint"?new g(m):m}for(var xe=0;xe<1e3;xe++)u[xe]=q(xe),xe>0&&(u[-xe]=q(-xe));return u.one=u[1],u.zero=u[0],u.minusOne=u[-1],u.max=yt,u.min=v,u.gcd=A,u.lcm=F,u.isInstance=function(m){return m instanceof f||m instanceof h||m instanceof g},u.randBetween=R,u.fromArray=function(m,w,C){return se(m.map(q),q(w||10),C)},u}();e.hasOwnProperty("exports")&&(e.exports=t)})(Xu);const Gs=Xu.exports;class qy{constructor(){_e(this,"n");_e(this,"e");this.n=Gs("8686980c0f5a24c4b9d43020cd2c22703ff3f450756529058b1cf88f09b8602136477198a6e2683149659bd122c33592fdb5ad47944ad1ea4d36c6b172aad6338c3bb6ac6227502d010993ac967d1aef00f0c8e038de2e4d3bc2ec368af2e9f10a6f1eda4f7262f136420c07c331b871bf139f74f3010e3c4fe57df3afb71683",16),this.e=Gs("10001",16)}a2hex(t){let n="",o;for(let i=0;i=0&&n>0;)o[--n]=t.charCodeAt(i--);for(o[--n]=0;n>2;)o[--n]=255;o[--n]=2,o[--n]=0;let s=this.a2hex(o);return Gs(s,16)}pkcs1unpad2(t){let n=t.toString(16);n.length%2!==0&&(n="0"+n);let o=this.hex2a(n),i=1;for(;o.charCodeAt(i)!==0;)i++;return o.slice(i+1)}encrypt(t){let n=this.pkcs1pad2(t,128),o=n==null?void 0:n.modPow(this.e,this.n),i=(o==null?void 0:o.toString(16))||"";for(;i.length<128*2;)i="0"+i;return i}decrypt(t){const n=[];let o=0;for(;o=0?ru;s=u>=0?++r:--r)g.push(t[s]^o[s%i]);for(s=a=f=l,h=n;f<=h?ah;s=f<=h?++a:--a)g.push(t[s]^o[(s-l)%i]);return g}getkey(t,n){let o;return n!=null?(()=>{let i,s,r;for(r=[],o=i=0,s=t;s>=0?is;o=s>=0?++i:--i)r.push(n[o]+this.kts[t*o]&255^this.kts[t*(t-1-o)]);return r})():t===12?this.keyL.slice(0):this.keyS.slice(0)}asymEncode(t,n){let o,i,s,r,a;for(s=128-11,a="",o=i=0,r=Math.floor((n+s-1)/s);r>=0?ir;o=r>=0?++i:--i)a+=this.rsa.encrypt(this.bytesToString(t.slice(o*s,Math.min((o+1)*s,n))));return window.btoa(this.rsa.hex2a(a))}asymDecode(t,n){let o,i,s,r,a;for(s=128,a="",o=i=0,r=Math.floor((n+s-1)/s);r>=0?ir;o=r>=0?++i:--i)a+=this.rsa.decrypt(this.bytesToString(t.slice(o*s,Math.min((o+1)*s,n))));return this.stringToBytes(a)}symEncode(t,n,o,i){let s,r,a;return s=this.getkey(4,o),r=this.getkey(12,i),a=this.xor115Enc(t,n,s,4),a.reverse(),a=this.xor115Enc(a,n,r,12),a}symDecode(t,n,o,i){let s,r,a;return s=this.getkey(4,o),r=this.getkey(12,i),a=this.xor115Enc(t,n,r,12),a.reverse(),a=this.xor115Enc(a,n,s,4),a}bytesToString(t){let n,o,i,s;for(s="",o=0,i=t.length;o!Vy.has(e&&e.code);const Ga="axios-retry";function Zu(e){const t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:Wy(e)}const ed=["get","head","options"],Ky=ed.concat(["put","delete"]);function Ya(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Gy(e){var t;return(t=e.config)!=null&&t.method?Ya(e)&&ed.indexOf(e.config.method)!==-1:!1}function td(e){var t;return(t=e.config)!=null&&t.method?Ya(e)&&Ky.indexOf(e.config.method)!==-1:!1}function nd(e){return Zu(e)||td(e)}function od(e=void 0){var o;const t=(o=e==null?void 0:e.response)==null?void 0:o.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 Yy(e=0,t=void 0){return Math.max(0,od(t))}function Jy(e=0,t=void 0,n=100){const o=2**e*n,i=Math.max(o,od(t)),s=i*.2*Math.random();return i+s}const Qy={retries:3,retryCondition:nd,retryDelay:Yy,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Xy(e,t){return{...Qy,...t,...e[Ga]}}function id(e,t){const n=Xy(e,t||{});return n.retryCount=n.retryCount||0,n.lastRequestTime=n.lastRequestTime||Date.now(),e[Ga]=n,n}function Zy(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 ew(e,t){const{retries:n,retryCondition:o}=e,i=(e.retryCount||0)u],await r(t.retryCount,n,o),(l=o.signal)!=null&&l.aborted?Promise.resolve(e(o)):new Promise(u=>{var g;const f=()=>{clearTimeout(h),u(e(o))},h=setTimeout(()=>{var b;u(e(o)),(b=o.signal)!=null&&b.removeEventListener&&o.signal.removeEventListener("abort",f)},a);(g=o.signal)!=null&&g.addEventListener&&o.signal.addEventListener("abort",f,{once:!0})})}async function nw(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}const Eo=(e,t)=>{const n=e.interceptors.request.use(i=>{var s;return id(i,t),(s=i[Ga])!=null&&s.validateResponse&&(i.validateStatus=()=>!1),i}),o=e.interceptors.response.use(null,async i=>{var a;const{config:s}=i;if(!s)return Promise.reject(i);const r=id(s,t);return i.response&&((a=r.validateResponse)==null?void 0:a.call(r,i.response))?i.response:await ew(r,i)?tw(e,r,i,s):(await nw(r,i),Promise.reject(i))});return{requestInterceptorId:n,responseInterceptorId:o}};Eo.isNetworkError=Zu,Eo.isSafeRequestError=Gy,Eo.isIdempotentRequestError=td,Eo.isNetworkOrIdempotentRequestError=nd,Eo.exponentialDelay=Jy,Eo.isRetryableError=Ya;var Ys=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:Boolean(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'!")}},ow=class{constructor(){this._keys={},this._addedKeysAmount=0}collectExpired(){const t=Date.now();Object.keys(this._keys).forEach(n=>{this._keys[n]<=t&&delete this._keys[n]}),this._addedKeysAmount=Object.keys(this._keys).length}add(t,n){this.addMs(t,n*1e3)}addMs(t,n){this._keys[t]=Date.now()+n,this._addedKeysAmount++,this._addedKeysAmount>999&&this.collectExpired()}msBeforeExpire(t){const n=this._keys[t];if(n&&n>=Date.now()){this.collectExpired();const o=Date.now();return n>=o?n-o:0}return 0}delete(t){t?delete this._keys[t]:Object.keys(this._keys).forEach(n=>{delete this._keys[n]})}},iw=ow,Ht=class{constructor(t,n,o,i){this.remainingPoints=typeof t>"u"?0:t,this.msBeforeNext=typeof n>"u"?0:n,this.consumedPoints=typeof o>"u"?0:o,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=Boolean(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 Ja=Ys,sw=iw,sd=Ht;var ko=class extends Ja{constructor(t={}){super(t),this.inMemoryBlockOnConsumed=t.inMemoryBlockOnConsumed,this.inMemoryBlockDuration=t.inMemoryBlockDuration,this.insuranceLimiter=t.insuranceLimiter,this._inMemoryBlockedKeys=new sw}get client(){return this._client}set client(t){if(typeof t>"u")throw new Error("storeClient is not set");this._client=t}_afterConsume(t,n,o,i,s,r={}){const a=this._getRateLimiterRes(o,i,s);if(this.inMemoryBlockOnConsumed>0&&!(this.inMemoryBlockDuration>0)&&a.consumedPoints>=this.inMemoryBlockOnConsumed)return this._inMemoryBlockedKeys.addMs(o,a.msBeforeNext),a.consumedPoints>this.points?n(a):t(a);if(a.consumedPoints>this.points){let l=Promise.resolve();this.blockDuration>0&&a.consumedPoints<=this.points+i&&(a.msBeforeNext=this.msBlockDuration,l=this._block(o,a.consumedPoints,this.msBlockDuration,r)),this.inMemoryBlockOnConsumed>0&&a.consumedPoints>=this.inMemoryBlockOnConsumed&&(this._inMemoryBlockedKeys.add(o,this.inMemoryBlockDuration),a.msBeforeNext=this.msInMemoryBlockDuration),l.then(()=>{n(a)}).catch(u=>{n(u)})}else if(this.execEvenly&&a.msBeforeNext>0&&!a.isFirstInDuration){let l=Math.ceil(a.msBeforeNext/(a.remainingPoints+2));l{o(l)}).catch(l=>{i(l)}):i(t)}getInMemoryBlockMsBeforeExpire(t){return this.inMemoryBlockOnConsumed>0?this._inMemoryBlockedKeys.msBeforeExpire(t):0}get inMemoryBlockOnConsumed(){return this._inMemoryBlockOnConsumed}set inMemoryBlockOnConsumed(t){if(this._inMemoryBlockOnConsumed=t?parseInt(t):0,this.inMemoryBlockOnConsumed>0&&this.points>this.inMemoryBlockOnConsumed)throw new Error('inMemoryBlockOnConsumed option must be greater or equal "points" option')}get inMemoryBlockDuration(){return this._inMemoryBlockDuration}set inMemoryBlockDuration(t){if(this._inMemoryBlockDuration=t?parseInt(t):0,this.inMemoryBlockDuration>0&&this.inMemoryBlockOnConsumed===0)throw new Error("inMemoryBlockOnConsumed option must be set up")}get msInMemoryBlockDuration(){return this._inMemoryBlockDuration*1e3}get insuranceLimiter(){return this._insuranceLimiter}set insuranceLimiter(t){if(typeof t<"u"&&!(t instanceof Ja))throw new Error("insuranceLimiter must be instance of RateLimiterAbstract");this._insuranceLimiter=t,this._insuranceLimiter&&(this._insuranceLimiter.blockDuration=this.blockDuration,this._insuranceLimiter.execEvenly=this.execEvenly)}block(t,n,o={}){const i=n*1e3;return this._block(this.getKey(t),this.points+1,i,o)}set(t,n,o,i={}){const s=(o>=0?o:this.duration)*1e3;return this._block(this.getKey(t),n,s,i)}consume(t,n=1,o={}){return new Promise((i,s)=>{const r=this.getKey(t),a=this.getInMemoryBlockMsBeforeExpire(r);if(a>0)return s(new sd(0,a));this._upsert(r,n,this._getKeySecDuration(o)*1e3,!1,o).then(l=>{this._afterConsume(i,s,r,n,l)}).catch(l=>{this._handleError(l,"consume",i,s,t,n,o)})})}penalty(t,n=1,o={}){const i=this.getKey(t);return new Promise((s,r)=>{this._upsert(i,n,this._getKeySecDuration(o)*1e3,!1,o).then(a=>{s(this._getRateLimiterRes(i,n,a))}).catch(a=>{this._handleError(a,"penalty",s,r,t,n,o)})})}reward(t,n=1,o={}){const i=this.getKey(t);return new Promise((s,r)=>{this._upsert(i,-n,this._getKeySecDuration(o)*1e3,!1,o).then(a=>{s(this._getRateLimiterRes(i,-n,a))}).catch(a=>{this._handleError(a,"reward",s,r,t,n,o)})})}get(t,n={}){const o=this.getKey(t);return new Promise((i,s)=>{this._get(o,n).then(r=>{i(r===null||typeof r>"u"?null:this._getRateLimiterRes(o,0,r))}).catch(r=>{this._handleError(r,"get",i,s,t,n)})})}delete(t,n={}){const o=this.getKey(t);return new Promise((i,s)=>{this._delete(o,n).then(r=>{this._inMemoryBlockedKeys.delete(o),i(r)}).catch(r=>{this._handleError(r,"delete",i,s,t,n)})})}deleteInMemoryBlockedAll(){this._inMemoryBlockedKeys.delete()}_getRateLimiterRes(t,n,o){throw new Error("You have to implement the method '_getRateLimiterRes'!")}_block(t,n,o,i={}){return new Promise((s,r)=>{this._upsert(t,n,o,!0,i).then(()=>{s(new sd(0,o>0?o:-1,n))}).catch(a=>{this._handleError(a,"block",s,r,this.parseKey(t),o/1e3,i)})})}_get(t,n={}){throw new Error("You have to implement the method '_get'!")}_delete(t,n={}){throw new Error("You have to implement the method '_delete'!")}_upsert(t,n,o,i=!1,s={}){throw new Error("You have to implement the method '_upsert'!")}};const rw=ko,aw=Ht,lw="redis.call('set', KEYS[1], 0, 'EX', ARGV[2], 'NX') local consumed = redis.call('incrby', KEYS[1], ARGV[1]) local ttl = redis.call('pttl', KEYS[1]) if ttl == -1 then redis.call('expire', KEYS[1], ARGV[2]) ttl = 1000 * ARGV[2] end return {consumed, ttl} ";class cw extends rw{constructor(t){super(t),this.client=t.storeClient,this._rejectIfRedisNotReady=!!t.rejectIfRedisNotReady,this._incrTtlLuaScript=t.customIncrTtlLuaScript||lw,this.useRedisPackage=t.useRedisPackage||this.client.constructor.name==="Commander"||!1,this.useRedis3AndLowerPackage=t.useRedis3AndLowerPackage,typeof this.client.defineCommand=="function"&&this.client.defineCommand("rlflxIncr",{numberOfKeys:1,lua:this._incrTtlLuaScript})}_isRedisReady(){return this._rejectIfRedisNotReady?!(this.client.status&&this.client.status!=="ready"||typeof this.client.isReady=="function"&&!this.client.isReady()):!0}_getRateLimiterRes(t,n,o){let[i,s]=o;Array.isArray(i)&&([,i]=i,[,s]=s);const r=new aw;return r.consumedPoints=parseInt(i),r.isFirstInDuration=r.consumedPoints===n,r.remainingPoints=Math.max(this.points-r.consumedPoints,0),r.msBeforeNext=s,r}async _upsert(t,n,o,i=!1){if(!this._isRedisReady())throw new Error("Redis connection is not ready");const s=Math.floor(o/1e3),r=this.client.multi();return i?(s>0?!this.useRedisPackage&&!this.useRedis3AndLowerPackage?r.set(t,n,"EX",s):r.set(t,n,{EX:s}):r.set(t,n),!this.useRedisPackage&&!this.useRedis3AndLowerPackage?r.pttl(t).exec(!0):r.pTTL(t).exec(!0)):s>0?!this.useRedisPackage&&!this.useRedis3AndLowerPackage?this.client.rlflxIncr([t].concat([String(n),String(s),String(this.points),String(this.duration)])):this.useRedis3AndLowerPackage?new Promise((a,l)=>{const u=function(f,h){return f?l(f):a(h)};typeof this.client.rlflxIncr=="function"?this.client.rlflxIncr(t,n,s,this.points,this.duration,u):this.client.eval(this._incrTtlLuaScript,1,t,n,s,this.points,this.duration,u)}):this.client.eval(this._incrTtlLuaScript,{keys:[t],arguments:[String(n),String(s),String(this.points),String(this.duration)]}):!this.useRedisPackage&&!this.useRedis3AndLowerPackage?r.incrby(t,n).pttl(t).exec(!0):r.incrBy(t,n).pTTL(t).exec(!0)}async _get(t){if(!this._isRedisReady())throw new Error("Redis connection is not ready");return!this.useRedisPackage&&!this.useRedis3AndLowerPackage?this.client.multi().get(t).pttl(t).exec().then(n=>{const[[,o]]=n;return o===null?null:n}):this.client.multi().get(t).pTTL(t).exec(!0).then(n=>{const[o]=n;return o===null?null:n})}_delete(t){return this.client.del(t).then(n=>n>0)}}var uw=cw;const dw=ko,fw=Ht;function rd(e){try{const t=e.client?e.client:e;let n=[0,0,0];if(typeof t.topology>"u"){const{version:o}=t.options.metadata.driver;n=o.split("|",1)[0].split(".").map(i=>parseInt(i))}else{const{version:o}=t.topology.s.options.metadata.driver;n=o.split(".").map(i=>parseInt(i))}return{major:n[0],feature:n[1],patch:n[2]}}catch{return{major:0,feature:0,patch:0}}}class Qa extends dw{constructor(t){super(t),this.dbName=t.dbName,this.tableName=t.tableName,this.indexKeyPrefix=t.indexKeyPrefix,t.mongo?this.client=t.mongo:this.client=t.storeClient,typeof this.client.then=="function"?this.client.then(n=>{this.client=n,this._initCollection(),this._driverVersion=rd(this.client)}):(this._initCollection(),this._driverVersion=rd(this.client))}get dbName(){return this._dbName}set dbName(t){this._dbName=typeof t>"u"?Qa.getDbName():t}static getDbName(){return"node-rate-limiter-flexible"}get tableName(){return this._tableName}set tableName(t){this._tableName=typeof t>"u"?this.keyPrefix:t}get client(){return this._client}set client(t){if(typeof t>"u")throw new Error("mongo is not set");this._client=t}get indexKeyPrefix(){return this._indexKeyPrefix}set indexKeyPrefix(t){this._indexKeyPrefix=t||{}}_initCollection(){const n=(typeof this.client.db=="function"?this.client.db(this.dbName):this.client).collection(this.tableName);n.createIndex({expire:-1},{expireAfterSeconds:0}),n.createIndex(Object.assign({},this.indexKeyPrefix,{key:1}),{unique:!0}),this._collection=n}_getRateLimiterRes(t,n,o){const i=new fw;let s;return typeof o.value>"u"?s=o:s=o.value,i.isFirstInDuration=s.points===n,i.consumedPoints=s.points,i.remainingPoints=Math.max(this.points-i.consumedPoints,0),i.msBeforeNext=s.expire!==null?Math.max(new Date(s.expire).getTime()-Date.now(),0):-1,i}_upsert(t,n,o,i=!1,s={}){if(!this._collection)return Promise.reject(Error("Mongo connection is not established"));const r=s.attrs||{};let a,l;i?(a={key:t},a=Object.assign(a,r),l={$set:{key:t,points:n,expire:o>0?new Date(Date.now()+o):null}},l.$set=Object.assign(l.$set,r)):(a={$or:[{expire:{$gt:new Date}},{expire:{$eq:null}}],key:t},a=Object.assign(a,r),l={$setOnInsert:{key:t,expire:o>0?new Date(Date.now()+o):null},$inc:{points:n}},l.$setOnInsert=Object.assign(l.$setOnInsert,r));const u={upsert:!0};return this._driverVersion.major>=4||this._driverVersion.major===3&&this._driverVersion.feature>=7||this._driverVersion.feature>=6&&this._driverVersion.patch>=7?u.returnDocument="after":u.returnOriginal=!1,new Promise((f,h)=>{this._collection.findOneAndUpdate(a,l,u).then(g=>{f(g)}).catch(g=>{if(g&&g.code===11e3){const b=Object.assign({$or:[{expire:{$lte:new Date}},{expire:{$eq:null}}],key:t},r),_={$set:Object.assign({key:t,points:n,expire:o>0?new Date(Date.now()+o):null},r)};this._collection.findOneAndUpdate(b,_,u).then(E=>{f(E)}).catch(E=>{E&&E.code===11e3?this._upsert(t,n,o,i).then(I=>f(I)).catch(I=>h(I)):h(E)})}else h(g)})})}_get(t,n={}){if(!this._collection)return Promise.reject(Error("Mongo connection is not established"));const o=n.attrs||{},i=Object.assign({key:t,$or:[{expire:{$gt:new Date}},{expire:{$eq:null}}]},o);return this._collection.findOne(i)}_delete(t,n={}){if(!this._collection)return Promise.reject(Error("Mongo connection is not established"));const o=n.attrs||{},i=Object.assign({key:t},o);return this._collection.deleteOne(i).then(s=>s.deletedCount>0)}}var pw=Qa;const hw=ko,mw=Ht;class gw extends hw{constructor(t,n=null){super(t),this.client=t.storeClient,this.clientType=t.storeType,this.dbName=t.dbName,this.tableName=t.tableName,this.clearExpiredByTimeout=t.clearExpiredByTimeout,this.tableCreated=t.tableCreated,this.tableCreated?(this.clearExpiredByTimeout&&this._clearExpiredHourAgo(),typeof n=="function"&&n()):this._createDbAndTable().then(()=>{this.tableCreated=!0,this.clearExpiredByTimeout&&this._clearExpiredHourAgo(),typeof n=="function"&&n()}).catch(o=>{if(typeof n=="function")n(o);else throw o})}clearExpired(t){return new Promise(n=>{this._getConnection().then(o=>{o.query("DELETE FROM ??.?? WHERE expire < ?",[this.dbName,this.tableName,t],()=>{this._releaseConnection(o),n()})}).catch(()=>{n()})})}_clearExpiredHourAgo(){this._clearExpiredTimeoutId&&clearTimeout(this._clearExpiredTimeoutId),this._clearExpiredTimeoutId=setTimeout(()=>{this.clearExpired(Date.now()-36e5).then(()=>{this._clearExpiredHourAgo()})},3e5),this._clearExpiredTimeoutId.unref()}_getConnection(){switch(this.clientType){case"pool":return new Promise((t,n)=>{this.client.getConnection((o,i)=>{if(o)return n(o);t(i)})});case"sequelize":return this.client.connectionManager.getConnection();case"knex":return this.client.client.acquireConnection();default:return Promise.resolve(this.client)}}_releaseConnection(t){switch(this.clientType){case"pool":return t.release();case"sequelize":return this.client.connectionManager.releaseConnection(t);case"knex":return this.client.client.releaseConnection(t);default:return!0}}_createDbAndTable(){return new Promise((t,n)=>{this._getConnection().then(o=>{o.query(`CREATE DATABASE IF NOT EXISTS \`${this.dbName}\`;`,i=>{if(i)return this._releaseConnection(o),n(i);o.query(this._getCreateTableStmt(),s=>{if(s)return this._releaseConnection(o),n(s);this._releaseConnection(o),t()})})}).catch(o=>{n(o)})})}_getCreateTableStmt(){return`CREATE TABLE IF NOT EXISTS \`${this.dbName}\`.\`${this.tableName}\` (\`key\` VARCHAR(255) CHARACTER SET utf8 NOT NULL,\`points\` INT(9) NOT NULL default 0,\`expire\` BIGINT UNSIGNED,PRIMARY KEY (\`key\`)) ENGINE = INNODB;`}get clientType(){return this._clientType}set clientType(t){if(typeof t>"u")if(this.client.constructor.name==="Connection")t="connection";else if(this.client.constructor.name==="Pool")t="pool";else if(this.client.constructor.name==="Sequelize")t="sequelize";else throw new Error("storeType is not defined");this._clientType=t.toLowerCase()}get dbName(){return this._dbName}set dbName(t){this._dbName=typeof t>"u"?"rtlmtrflx":t}get tableName(){return this._tableName}set tableName(t){this._tableName=typeof t>"u"?this.keyPrefix:t}get tableCreated(){return this._tableCreated}set tableCreated(t){this._tableCreated=typeof t>"u"?!1:!!t}get clearExpiredByTimeout(){return this._clearExpiredByTimeout}set clearExpiredByTimeout(t){this._clearExpiredByTimeout=typeof t>"u"?!0:Boolean(t)}_getRateLimiterRes(t,n,o){const i=new mw,[s]=o;return i.isFirstInDuration=n===s.points,i.consumedPoints=i.isFirstInDuration?n:s.points,i.remainingPoints=Math.max(this.points-i.consumedPoints,0),i.msBeforeNext=s.expire?Math.max(s.expire-Date.now(),0):-1,i}_upsertTransaction(t,n,o,i,s){return new Promise((r,a)=>{t.query("BEGIN",l=>{if(l)return t.rollback(),a(l);const u=Date.now(),f=i>0?u+i:null;let h,g;s?(h=`INSERT INTO ??.?? VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE points = ?, expire = ?;`,g=[this.dbName,this.tableName,n,o,f,o,f]):(h=`INSERT INTO ??.?? VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE points = IF(expire <= ?, ?, points + (?)), expire = IF(expire <= ?, ?, expire);`,g=[this.dbName,this.tableName,n,o,f,u,o,o,u,f]),t.query(h,g,b=>{if(b)return t.rollback(),a(b);t.query("SELECT points, expire FROM ??.?? WHERE `key` = ?;",[this.dbName,this.tableName,n],(_,E)=>{if(_)return t.rollback(),a(_);t.query("COMMIT",I=>{if(I)return t.rollback(),a(I);r(E)})})})})})}_upsert(t,n,o,i=!1){return this.tableCreated?new Promise((s,r)=>{this._getConnection().then(a=>{this._upsertTransaction(a,t,n,o,i).then(l=>{s(l),this._releaseConnection(a)}).catch(l=>{r(l),this._releaseConnection(a)})}).catch(a=>{r(a)})}):Promise.reject(Error("Table is not created yet"))}_get(t){return this.tableCreated?new Promise((n,o)=>{this._getConnection().then(i=>{i.query("SELECT points, expire FROM ??.?? WHERE `key` = ? AND (`expire` > ? OR `expire` IS NULL)",[this.dbName,this.tableName,t,Date.now()],(s,r)=>{s?o(s):r.length===0?n(null):n(r),this._releaseConnection(i)})}).catch(i=>{o(i)})}):Promise.reject(Error("Table is not created yet"))}_delete(t){return this.tableCreated?new Promise((n,o)=>{this._getConnection().then(i=>{i.query("DELETE FROM ??.?? WHERE `key` = ?",[this.dbName,this.tableName,t],(s,r)=>{s?o(s):n(r.affectedRows>0),this._releaseConnection(i)})}).catch(i=>{o(i)})}):Promise.reject(Error("Table is not created yet"))}}var yw=gw;const ww=ko,bw=Ht;class _w extends ww{constructor(t,n=null){super(t),this.client=t.storeClient,this.clientType=t.storeType,this.tableName=t.tableName,this.schemaName=t.schemaName,this.clearExpiredByTimeout=t.clearExpiredByTimeout,this.tableCreated=t.tableCreated,this.tableCreated?(this.clearExpiredByTimeout&&this._clearExpiredHourAgo(),typeof n=="function"&&n()):this._createTable().then(()=>{this.tableCreated=!0,this.clearExpiredByTimeout&&this._clearExpiredHourAgo(),typeof n=="function"&&n()}).catch(o=>{if(typeof n=="function")n(o);else throw o})}_getTableIdentifier(){return this.schemaName?`"${this.schemaName}"."${this.tableName}"`:`"${this.tableName}"`}clearExpired(t){return new Promise(n=>{const o={name:"rlflx-clear-expired",text:`DELETE FROM ${this._getTableIdentifier()} WHERE expire < $1`,values:[t]};this._query(o).then(()=>{n()}).catch(()=>{n()})})}_clearExpiredHourAgo(){this._clearExpiredTimeoutId&&clearTimeout(this._clearExpiredTimeoutId),this._clearExpiredTimeoutId=setTimeout(()=>{this.clearExpired(Date.now()-36e5).then(()=>{this._clearExpiredHourAgo()})},3e5),this._clearExpiredTimeoutId.unref()}_getConnection(){switch(this.clientType){case"pool":return Promise.resolve(this.client);case"sequelize":return this.client.connectionManager.getConnection();case"knex":return this.client.client.acquireConnection();case"typeorm":return Promise.resolve(this.client.driver.master);default:return Promise.resolve(this.client)}}_releaseConnection(t){switch(this.clientType){case"pool":return!0;case"sequelize":return this.client.connectionManager.releaseConnection(t);case"knex":return this.client.client.releaseConnection(t);case"typeorm":return!0;default:return!0}}_createTable(){return new Promise((t,n)=>{this._query({text:this._getCreateTableStmt()}).then(()=>{t()}).catch(o=>{o.code==="23505"?t():n(o)})})}_getCreateTableStmt(){return`CREATE TABLE IF NOT EXISTS ${this._getTableIdentifier()} ( key varchar(255) PRIMARY KEY, points integer NOT NULL DEFAULT 0, expire bigint );`}get clientType(){return this._clientType}set clientType(t){const n=this.client.constructor.name;if(typeof t>"u")if(n==="Client")t="client";else if(n==="Pool"||n==="BoundPool")t="pool";else if(n==="Sequelize")t="sequelize";else throw new Error("storeType is not defined");this._clientType=t.toLowerCase()}get tableName(){return this._tableName}set tableName(t){this._tableName=typeof t>"u"?this.keyPrefix:t}get schemaName(){return this._schemaName}set schemaName(t){this._schemaName=t}get tableCreated(){return this._tableCreated}set tableCreated(t){this._tableCreated=typeof t>"u"?!1:!!t}get clearExpiredByTimeout(){return this._clearExpiredByTimeout}set clearExpiredByTimeout(t){this._clearExpiredByTimeout=typeof t>"u"?!0:Boolean(t)}_getRateLimiterRes(t,n,o){const i=new bw,s=o.rows[0];return i.isFirstInDuration=n===s.points,i.consumedPoints=i.isFirstInDuration?n:s.points,i.remainingPoints=Math.max(this.points-i.consumedPoints,0),i.msBeforeNext=s.expire?Math.max(s.expire-Date.now(),0):-1,i}_query(t){const o={name:`${this.tableName.toLowerCase()}:${t.name}`,text:t.text,values:t.values};return new Promise((i,s)=>{this._getConnection().then(r=>{r.query(o).then(a=>{i(a),this._releaseConnection(r)}).catch(a=>{s(a),this._releaseConnection(r)})}).catch(r=>{s(r)})})}_upsert(t,n,o,i=!1){if(!this.tableCreated)return Promise.reject(Error("Table is not created yet"));const s=o>0?Date.now()+o:null,r=i?" $3 ":` CASE WHEN ${this._getTableIdentifier()}.expire <= $4 THEN $3 ELSE ${this._getTableIdentifier()}.expire END `;return this._query({name:i?"rlflx-upsert-force":"rlflx-upsert",text:` INSERT INTO ${this._getTableIdentifier()} VALUES ($1, $2, $3) ON CONFLICT(key) DO UPDATE SET points = CASE WHEN (${this._getTableIdentifier()}.expire <= $4 OR 1=${i?1:0}) THEN $2 ELSE ${this._getTableIdentifier()}.points + ($2) END, expire = ${r} RETURNING points, expire;`,values:[t,n,s,Date.now()]})}_get(t){return this.tableCreated?new Promise((n,o)=>{this._query({name:"rlflx-get",text:` SELECT points, expire FROM ${this._getTableIdentifier()} WHERE key = $1 AND (expire > $2 OR expire IS NULL);`,values:[t,Date.now()]}).then(i=>{i.rowCount===0&&(i=null),n(i)}).catch(i=>{o(i)})}):Promise.reject(Error("Table is not created yet"))}_delete(t){return this.tableCreated?this._query({name:"rlflx-delete",text:`DELETE FROM ${this._getTableIdentifier()} WHERE key = $1`,values:[t]}).then(n=>n.rowCount>0):Promise.reject(Error("Table is not created yet"))}}var vw=_w;const ad=wg(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var xw=class{constructor(t,n,o=null){this.value=t,this.expiresAt=n,this.timeoutId=o}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}};const Cw=xw,Xa=Ht;var $w=class{constructor(){this._storage={}}incrby(t,n,o){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 Xa(0,i,this._storage[t].value,!1)):this.set(t,n,o)}return this.set(t,n,o)}set(t,n,o){const i=o*1e3;return this._storage[t]&&this._storage[t].timeoutId&&clearTimeout(this._storage[t].timeoutId),this._storage[t]=new Cw(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 Xa(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 Xa(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 Ew=Ys,kw=$w,ld=Ht;class Sw extends Ew{constructor(t={}){super(t),this._memoryStorage=new kw}consume(t,n=1,o={}){return new Promise((i,s)=>{const r=this.getKey(t),a=this._getKeySecDuration(o);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)),s(l);else if(this.execEvenly&&l.msBeforeNext>0&&!l.isFirstInDuration){let u=Math.ceil(l.msBeforeNext/(l.remainingPoints+2));u{const r=this._getKeySecDuration(o),a=this._memoryStorage.incrby(i,n,r);a.remainingPoints=Math.max(this.points-a.consumedPoints,0),s(a)})}reward(t,n=1,o={}){const i=this.getKey(t);return new Promise(s=>{const r=this._getKeySecDuration(o),a=this._memoryStorage.incrby(i,-n,r);a.remainingPoints=Math.max(this.points-a.consumedPoints,0),s(a)})}block(t,n){const o=n*1e3,i=this.points+1;return this._memoryStorage.set(this.getKey(t),i,n),Promise.resolve(new ld(0,o===0?-1:o,i))}set(t,n,o){const i=(o>=0?o:this.duration)*1e3;return this._memoryStorage.set(this.getKey(t),n,o),Promise.resolve(new ld(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 cd=Sw;const ud=ad,Aw=ad,Pw=Ys,dd=cd,Iw=Ht,Zt="rate_limiter_flexible";let ii=null;const fd=function(e,t,n,o){let i;o===null||o===!0||o===!1?i=o:i={remainingPoints:o.remainingPoints,msBeforeNext:o.msBeforeNext,consumedPoints:o.consumedPoints,isFirstInDuration:o.isFirstInDuration},e.send({channel:Zt,keyPrefix:t.keyPrefix,promiseId:t.promiseId,type:n,data:i})},pd=function(e){setTimeout(()=>{this._initiated?process.send(e):typeof this._promises[e.promiseId]<"u"&&pd.call(this,e)},30)},si=function(e,t,n,o,i){const s={channel:Zt,keyPrefix:this.keyPrefix,func:e,promiseId:t,data:{key:n,arg:o,opts:i}};this._initiated?process.send(s):pd.call(this,s)},hd=function(e,t){if(!t||t.channel!==Zt||typeof this._rateLimiters[t.keyPrefix]>"u")return!1;let n;switch(t.func){case"consume":n=this._rateLimiters[t.keyPrefix].consume(t.data.key,t.data.arg,t.data.opts);break;case"penalty":n=this._rateLimiters[t.keyPrefix].penalty(t.data.key,t.data.arg,t.data.opts);break;case"reward":n=this._rateLimiters[t.keyPrefix].reward(t.data.key,t.data.arg,t.data.opts);break;case"block":n=this._rateLimiters[t.keyPrefix].block(t.data.key,t.data.arg,t.data.opts);break;case"get":n=this._rateLimiters[t.keyPrefix].get(t.data.key,t.data.opts);break;case"delete":n=this._rateLimiters[t.keyPrefix].delete(t.data.key,t.data.opts);break;default:return!1}n&&n.then(o=>{fd(e,t,"resolve",o)}).catch(o=>{fd(e,t,"reject",o)})},Tw=function(e){if(!e||e.channel!==Zt||e.keyPrefix!==this.keyPrefix)return!1;if(this._promises[e.promiseId]){clearTimeout(this._promises[e.promiseId].timeoutId);let t;switch(e.data===null||e.data===!0||e.data===!1?t=e.data:t=new Iw(e.data.remainingPoints,e.data.msBeforeNext,e.data.consumedPoints,e.data.isFirstInDuration),e.type){case"resolve":this._promises[e.promiseId].resolve(t);break;case"reject":this._promises[e.promiseId].reject(t);break;default:throw new Error(`RateLimiterCluster: no such message type '${e.type}'`)}delete this._promises[e.promiseId]}},Ow=function(){return{points:this.points,duration:this.duration,blockDuration:this.blockDuration,execEvenly:this.execEvenly,execEvenlyMinDelayMs:this.execEvenlyMinDelayMs,keyPrefix:this.keyPrefix}},ri=function(e,t){const n=process.hrtime();let o=n[0].toString()+n[1].toString();return typeof this._promises[o]<"u"&&(o+=Aw.randomBytes(12).toString("base64")),this._promises[o]={resolve:e,reject:t,timeoutId:setTimeout(()=>{delete this._promises[o],t(new Error("RateLimiterCluster timeout: no answer from master in time"))},this.timeoutMs)},o};class Lw{constructor(){if(ii)return ii;this._rateLimiters={},ud.setMaxListeners(0),ud.on("message",(t,n)=>{n&&n.channel===Zt&&n.type==="init"?(typeof this._rateLimiters[n.opts.keyPrefix]>"u"&&(this._rateLimiters[n.opts.keyPrefix]=new dd(n.opts)),t.send({channel:Zt,type:"init",keyPrefix:n.opts.keyPrefix})):hd.call(this,t,n)}),ii=this}}class Mw{constructor(t){if(ii)return ii;this._rateLimiters={},t.launchBus((n,o)=>{o.on("process:msg",i=>{const s=i.raw;if(s&&s.channel===Zt&&s.type==="init")typeof this._rateLimiters[s.opts.keyPrefix]>"u"&&(this._rateLimiters[s.opts.keyPrefix]=new dd(s.opts)),t.sendDataToProcessId(i.process.pm_id,{data:{},topic:Zt,channel:Zt,type:"init",keyPrefix:s.opts.keyPrefix},(r,a)=>{r&&console.log(r,a)});else{const r={send:a=>{const l=a;l.topic=Zt,typeof l.data>"u"&&(l.data={}),t.sendDataToProcessId(i.process.pm_id,l,(u,f)=>{u&&console.log(u,f)})}};hd.call(this,r,s)}})}),ii=this}}class Dw extends Pw{get timeoutMs(){return this._timeoutMs}set timeoutMs(t){this._timeoutMs=typeof t>"u"?5e3:Math.abs(parseInt(t))}constructor(t={}){super(t),process.setMaxListeners(0),this.timeoutMs=t.timeoutMs,this._initiated=!1,process.on("message",n=>{n&&n.channel===Zt&&n.type==="init"&&n.keyPrefix===this.keyPrefix?this._initiated=!0:Tw.call(this,n)}),process.send({channel:Zt,type:"init",opts:Ow.call(this)}),this._promises={}}consume(t,n=1,o={}){return new Promise((i,s)=>{const r=ri.call(this,i,s);si.call(this,"consume",r,t,n,o)})}penalty(t,n=1,o={}){return new Promise((i,s)=>{const r=ri.call(this,i,s);si.call(this,"penalty",r,t,n,o)})}reward(t,n=1,o={}){return new Promise((i,s)=>{const r=ri.call(this,i,s);si.call(this,"reward",r,t,n,o)})}block(t,n,o={}){return new Promise((i,s)=>{const r=ri.call(this,i,s);si.call(this,"block",r,t,n,o)})}get(t,n={}){return new Promise((o,i)=>{const s=ri.call(this,o,i);si.call(this,"get",s,t,n)})}delete(t,n={}){return new Promise((o,i)=>{const s=ri.call(this,o,i);si.call(this,"delete",s,t,n)})}}var Rw={RateLimiterClusterMaster:Lw,RateLimiterClusterMasterPM2:Mw,RateLimiterCluster:Dw};const Nw=ko,Bw=Ht;class Fw extends Nw{constructor(t){super(t),this.client=t.storeClient}_getRateLimiterRes(t,n,o){const i=new Bw;return i.consumedPoints=parseInt(o.consumedPoints),i.isFirstInDuration=o.consumedPoints===n,i.remainingPoints=Math.max(this.points-i.consumedPoints,0),i.msBeforeNext=o.msBeforeNext,i}_upsert(t,n,o,i=!1,s={}){return new Promise((r,a)=>{const l=Date.now(),u=Math.floor(o/1e3);i?this.client.set(t,n,u,f=>{f?a(f):this.client.set(`${t}_expire`,u>0?l+u*1e3:-1,u,()=>{const h={consumedPoints:n,msBeforeNext:u>0?u*1e3:-1};r(h)})}):this.client.incr(t,n,(f,h)=>{f||h===!1?this.client.add(t,n,u,(g,b)=>{if(g||!b)if(typeof s.attemptNumber>"u"||s.attemptNumber<3){const _=Object.assign({},s);_.attemptNumber=_.attemptNumber?_.attemptNumber+1:1,this._upsert(t,n,o,i,_).then(E=>r(E)).catch(E=>a(E))}else a(new Error("Can not add key"));else this.client.add(`${t}_expire`,u>0?l+u*1e3:-1,u,()=>{const _={consumedPoints:n,msBeforeNext:u>0?u*1e3:-1};r(_)})}):this.client.get(`${t}_expire`,(g,b)=>{if(g)a(g);else{const _=b===!1?0:b,E={consumedPoints:h,msBeforeNext:_>=0?Math.max(_-l,0):-1};r(E)}})})})}_get(t){return new Promise((n,o)=>{const i=Date.now();this.client.get(t,(s,r)=>{r?this.client.get(`${t}_expire`,(a,l)=>{if(a)o(a);else{const u=l===!1?0:l,f={consumedPoints:r,msBeforeNext:u>=0?Math.max(u-i,0):-1};n(f)}}):n(null)})})}_delete(t){return new Promise((n,o)=>{this.client.del(t,(i,s)=>{i?o(i):s===!1?n(s):this.client.del(`${t}_expire`,r=>{r?o(r):n(s)})})})}}var Uw=Fw;const md=Ht;var jw=class{constructor(t={}){this.limiter=t.limiter,this.blackList=t.blackList,this.whiteList=t.whiteList,this.isBlackListed=t.isBlackListed,this.isWhiteListed=t.isWhiteListed,this.runActionAnyway=t.runActionAnyway}get limiter(){return this._limiter}set limiter(t){if(typeof t>"u")throw new Error("limiter is not set");this._limiter=t}get runActionAnyway(){return this._runActionAnyway}set runActionAnyway(t){this._runActionAnyway=typeof t>"u"?!1:t}get blackList(){return this._blackList}set blackList(t){this._blackList=Array.isArray(t)?t:[]}get isBlackListed(){return this._isBlackListed}set isBlackListed(t){if(typeof t>"u"&&(t=()=>!1),typeof t!="function")throw new Error("isBlackListed must be function");this._isBlackListed=t}get whiteList(){return this._whiteList}set whiteList(t){this._whiteList=Array.isArray(t)?t:[]}get isWhiteListed(){return this._isWhiteListed}set isWhiteListed(t){if(typeof t>"u"&&(t=()=>!1),typeof t!="function")throw new Error("isWhiteListed must be function");this._isWhiteListed=t}isBlackListedSomewhere(t){return this.blackList.indexOf(t)>=0||this.isBlackListed(t)}isWhiteListedSomewhere(t){return this.whiteList.indexOf(t)>=0||this.isWhiteListed(t)}getBlackRes(){return new md(0,Number.MAX_SAFE_INTEGER,0,!1)}getWhiteRes(){return new md(Number.MAX_SAFE_INTEGER,0,0,!1)}rejectBlack(){return Promise.reject(this.getBlackRes())}resolveBlack(){return Promise.resolve(this.getBlackRes())}resolveWhite(){return Promise.resolve(this.getWhiteRes())}consume(t,n=1){let o;return this.isWhiteListedSomewhere(t)?o=this.resolveWhite():this.isBlackListedSomewhere(t)&&(o=this.rejectBlack()),typeof o>"u"?this.limiter.consume(t,n):(this.runActionAnyway&&this.limiter.consume(t,n).catch(()=>{}),o)}block(t,n){let o;return this.isWhiteListedSomewhere(t)?o=this.resolveWhite():this.isBlackListedSomewhere(t)&&(o=this.resolveBlack()),typeof o>"u"?this.limiter.block(t,n):(this.runActionAnyway&&this.limiter.block(t,n).catch(()=>{}),o)}penalty(t,n){let o;return this.isWhiteListedSomewhere(t)?o=this.resolveWhite():this.isBlackListedSomewhere(t)&&(o=this.resolveBlack()),typeof o>"u"?this.limiter.penalty(t,n):(this.runActionAnyway&&this.limiter.penalty(t,n).catch(()=>{}),o)}reward(t,n){let o;return this.isWhiteListedSomewhere(t)?o=this.resolveWhite():this.isBlackListedSomewhere(t)&&(o=this.resolveBlack()),typeof o>"u"?this.limiter.reward(t,n):(this.runActionAnyway&&this.limiter.reward(t,n).catch(()=>{}),o)}get(t){let n;return this.isWhiteListedSomewhere(t)?n=this.resolveWhite():this.isBlackListedSomewhere(t)&&(n=this.resolveBlack()),typeof n>"u"||this.runActionAnyway?this.limiter.get(t):n}delete(t){return this.limiter.delete(t)}};const Hw=Ys;var qw=class{constructor(...t){if(t.length<1)throw new Error("RateLimiterUnion: at least one limiter have to be passed");t.forEach(n=>{if(!(n instanceof Hw))throw new Error("RateLimiterUnion: all limiters have to be instance of RateLimiterAbstract")}),this._limiters=t}consume(t,n=1){return new Promise((o,i)=>{const s=[];this._limiters.forEach(r=>{s.push(r.consume(t,n).catch(a=>({rejected:!0,rej:a})))}),Promise.all(s).then(r=>{const a={};let l=!1;r.forEach(u=>{u.rejected===!0&&(l=!0)});for(let u=0;ut!==null?t.remainingPoints:this._limiterFlexible.points)}removeTokens(t){const n=this;return new Promise((o,i)=>{if(t>n._limiterFlexible.points){i(new gd(`Requested tokens ${t} exceeds maximum ${n._limiterFlexible.points} tokens per interval`));return}n._queue.length>0?n._queueRequest.call(n,o,i,t):n._limiterFlexible.consume(n._key,t).then(s=>{o(s.remainingPoints)}).catch(s=>{s instanceof Error?i(s):(n._queueRequest.call(n,o,i,t),n._waitTimeout===null&&(n._waitTimeout=setTimeout(n._processFIFO.bind(n),s.msBeforeNext)))})})}_queueRequest(t,n,o){const i=this;i._queue.length{n.resolve(o.remainingPoints),t._processFIFO.call(t)}).catch(o=>{o instanceof Error?(n.reject(o),t._processFIFO.call(t)):(t._queue.unshift(n),t._waitTimeout===null&&(t._waitTimeout=setTimeout(t._processFIFO.bind(t),o.msBeforeNext)))})}}const el=Ht;var Ww=class{constructor(t,n){this._rateLimiter=t,this._burstLimiter=n}_combineRes(t,n){return t?new el(t.remainingPoints,Math.min(t.msBeforeNext,n?n.msBeforeNext:0),t.consumedPoints,t.isFirstInDuration):null}consume(t,n=1,o={}){return this._rateLimiter.consume(t,n,o).catch(i=>i instanceof el?this._burstLimiter.consume(t,n,o).then(s=>Promise.resolve(this._combineRes(i,s))).catch(s=>s instanceof el?Promise.reject(this._combineRes(i,s)):Promise.reject(s)):Promise.reject(i))}get(t){return Promise.all([this._rateLimiter.get(t),this._burstLimiter.get(t)]).then(([n,o])=>this._combineRes(n,o))}get points(){return this._rateLimiter.points}};const Kw=Ht,Gw=ko;class bd{constructor(t,n,o){this.key=t,this.points=n,this.expire=o}}const Yw=25,Jw=25;class Qw extends Gw{constructor(t,n=null){super(t),this.client=t.storeClient,this.tableName=t.tableName,this.tableCreated=t.tableCreated,this.tableCreated?this._setTTL().finally(()=>{typeof n=="function"&&n()}):this._createTable(t.dynamoTableOpts).then(o=>{this.tableCreated=!0,this._setTTL().finally(()=>{typeof n=="function"&&n()})}).catch(o=>{if(typeof n=="function")n(o);else throw o})}get tableName(){return this._tableName}set tableName(t){this._tableName=typeof t>"u"?"node-rate-limiter-flexible":t}get tableCreated(){return this._tableCreated}set tableCreated(t){this._tableCreated=typeof t>"u"?!1:!!t}async _createTable(t){const n={TableName:this.tableName,AttributeDefinitions:[{AttributeName:"key",AttributeType:"S"}],KeySchema:[{AttributeName:"key",KeyType:"HASH"}],ProvisionedThroughput:{ReadCapacityUnits:t&&t.readCapacityUnits?t.readCapacityUnits:Yw,WriteCapacityUnits:t&&t.writeCapacityUnits?t.writeCapacityUnits:Jw}};try{return await this.client.createTable(n)}catch(o){if(o.__type&&o.__type.includes("ResourceInUseException"))return null;throw o}}async _get(t){if(!this.tableCreated)throw new Error("Table is not created yet");const n={TableName:this.tableName,Key:{key:{S:t}}},o=await this.client.getItem(n);return o.Item?new bd(o.Item.key.S,Number(o.Item.points.N),Number(o.Item.expire.N)):null}async _delete(t){if(!this.tableCreated)throw new Error("Table is not created yet");const n={TableName:this.tableName,Key:{key:{S:t}},ConditionExpression:"attribute_exists(#k)",ExpressionAttributeNames:{"#k":"key"}};try{return(await this._client.deleteItem(n)).$metadata.httpStatusCode===200}catch(o){if(o.__type&&o.__type.includes("ConditionalCheckFailedException"))return!1;throw o}}async _upsert(t,n,o,i=!1,s={}){if(!this.tableCreated)throw new Error("Table is not created yet");const r=Date.now(),a=r/1e3,l=o>0?(r+o)/1e3:-1;if(i)return await this._baseUpsert({TableName:this.tableName,Key:{key:{S:t}},UpdateExpression:"SET points = :points, expire = :expire",ExpressionAttributeValues:{":points":{N:n.toString()},":expire":{N:l.toString()}},ReturnValues:"ALL_NEW"});try{return await this._baseUpsert({TableName:this.tableName,Key:{key:{S:t}},UpdateExpression:"SET points = :new_points, expire = :new_expire",ExpressionAttributeValues:{":new_points":{N:n.toString()},":new_expire":{N:l.toString()},":where_expire":{N:a.toString()}},ConditionExpression:"expire <= :where_expire OR attribute_not_exists(points)",ReturnValues:"ALL_NEW"})}catch{return await this._baseUpsert({TableName:this.tableName,Key:{key:{S:t}},UpdateExpression:"SET points = points + :new_points",ExpressionAttributeValues:{":new_points":{N:n.toString()},":where_expire":{N:a.toString()}},ConditionExpression:"expire > :where_expire",ReturnValues:"ALL_NEW"})}}async _baseUpsert(t){if(!this.tableCreated)throw new Error("Table is not created yet");try{const n=await this.client.updateItem(t);return new bd(n.Attributes.key.S,Number(n.Attributes.points.N),Number(n.Attributes.expire.N))}catch(n){throw n}}async _setTTL(){if(!this.tableCreated)throw new Error("Table is not created yet");try{if(await this._isTTLSet())return;const n={TableName:this.tableName,TimeToLiveSpecification:{AttributeName:"expire",Enabled:!0}};return await this.client.updateTimeToLive(n)}catch(t){throw t}}async _isTTLSet(){if(!this.tableCreated)throw new Error("Table is not created yet");try{const t=await this.client.describeTimeToLive({TableName:this.tableName});return t.$metadata.httpStatusCode==200&&t.TimeToLiveDescription.TimeToLiveStatus==="ENABLED"&&t.TimeToLiveDescription.AttributeName==="expire"}catch(t){throw t}}_getRateLimiterRes(t,n,o){const i=new Kw;return i.isFirstInDuration=n===o.points,i.consumedPoints=i.isFirstInDuration?n:o.points,i.remainingPoints=Math.max(this.points-i.consumedPoints,0),i.msBeforeNext=o.expire!=-1?Math.max(o.expire*1e3-Date.now(),0):-1,i}}var Xw=Qw;const Zw=ko,eb=Ht;class tb extends Zw{constructor(t){if(super(t),this.modelName=t.tableName||"RateLimiterFlexible",this.prismaClient=t.storeClient,this.clearExpiredByTimeout=t.clearExpiredByTimeout||!0,!this.prismaClient)throw new Error("Prisma client is not provided");this.clearExpiredByTimeout&&this._clearExpiredHourAgo()}_getRateLimiterRes(t,n,o){const i=new eb;let s=o;return i.isFirstInDuration=s.points===n,i.consumedPoints=s.points,i.remainingPoints=Math.max(this.points-i.consumedPoints,0),i.msBeforeNext=s.expire!==null?Math.max(new Date(s.expire).getTime()-Date.now(),0):-1,i}_upsert(t,n,o,i=!1){if(!this.prismaClient)return Promise.reject(new Error("Prisma client is not established"));const s=new Date,r=o>0?new Date(s.getTime()+o):null;return this.prismaClient.$transaction(async a=>{const l=await a[this.modelName].findFirst({where:{key:t}});if(l){const u=i||!l.expire||l.expire<=s||r===null;return a[this.modelName].update({where:{key:t},data:{points:u?n:l.points+n,...u&&{expire:r}}})}else return a[this.modelName].create({data:{key:t,points:n,expire:r}})})}_get(t){return this.prismaClient?this.prismaClient[this.modelName].findFirst({where:{AND:[{key:t},{OR:[{expire:{gt:new Date}},{expire:null}]}]}}):Promise.reject(new Error("Prisma client is not established"))}_delete(t){return this.prismaClient?this.prismaClient[this.modelName].deleteMany({where:{key:t}}).then(n=>n.count>0):Promise.reject(new Error("Prisma client is not established"))}_clearExpiredHourAgo(){this._clearExpiredTimeoutId&&clearTimeout(this._clearExpiredTimeoutId),this._clearExpiredTimeoutId=setTimeout(async()=>{await this.prismaClient[this.modelName].deleteMany({where:{expire:{lt:new Date(Date.now()-36e5)}}}),this._clearExpiredHourAgo()},3e5)}}var nb=tb;const ob=uw,ib=pw,sb=yw,rb=vw,{RateLimiterClusterMaster:ab,RateLimiterClusterMasterPM2:lb,RateLimiterCluster:cb}=Rw;var _d={RateLimiterRedis:ob,RateLimiterMongo:ib,RateLimiterMySQL:sb,RateLimiterPostgres:rb,RateLimiterMemory:cd,RateLimiterMemcache:Uw,RateLimiterClusterMaster:ab,RateLimiterClusterMasterPM2:lb,RateLimiterCluster:cb,RLWrapperBlackAndWhite:jw,RateLimiterUnion:qw,RateLimiterQueue:Vw,BurstyRateLimiter:Ww,RateLimiterRes:Ht,RateLimiterDynamo:Xw,RateLimiterPrisma:nb};const ub="pan115_api",vd={points:5,duration:1,execEvenly:!0};function xd(e){return{clientId:ub,rateLimit:vd,msDelayAdjustment:30,...e}}function Cd(e){const t=xd(e),n=Gu.create();Eo(n,{retries:5,shouldResetTimeout:!0,retryDelay:i=>(console.log(`[axios] Retry ${i}...`),i*1e3)});const o=new _d.RateLimiterMemory(t.rateLimit);return n.interceptors.request.use(async i=>{try{const s=await o.consume(t.clientId);return i}catch(s){if(console.warn("[axios] RateLimiter:",s),s instanceof _d.RateLimiterRes){const r=s.msBeforeNext+t.msDelayAdjustment;return console.log(`[axios] Delay ${r}ms for next request...`),await wt(r),i}else throw new Uy(s)}},i=>(console.warn("[axios] onRejected:",i),Promise.reject(i))),n}let $d=Cd();async function db(e){$d=e}const kt=$d;async function Ed(e,t,n){const o=new URLSearchParams({page:e.toString(),uid:n.toString(),sign:t,time:Ni().toString()});return(await kt.post("https://115.com/web/lixian/?ct=lixian&ac=task_lists",o,{withCredentials:!0,timeout:6e4})).data}async function kd(){return(await kt.get(`https://115.com/?ct=offline&ac=space&_=${Date.now()}`,{timeout:3e4,withCredentials:!0})).data}async function Sd(){const t=(await kt.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 Ad(e){const t=Ns(e),o=(await kt.get("https://webapi.115.com/files?"+t,{timeout:12e4,withCredentials:!0})).data;if(o.state)return o;throw new Error(o.error)}async function Pd(e,t=500){const n=await ai(e,t);for(let o=0;o=i.count))break;await wt(t)}return n}async function fb(e){const t=Ns(e),n=await kt.get("https://webapi.115.com/files/search?"+t,{timeout:12e4,withCredentials:!0});if(n.data==="")throw new Ju;const o=n.data;if(o.state)return o;throw new Wa(o.error)}async function pb(e,t=500,n=!1){let o=[],i=0,s=e.limit;const r=1e4,a=115,l=r-r%s;let u=s;for(;;){if(n){if(i>=l&&i=r&&(u=a)}e.offset=i,e.limit=u;const f=await fb(e);if(!f.data||!f.data.length||(o=[...o,...f.data],i+=u,i>=f.count))break;await wt(t)}return o}async function tl(e,t){const n=new URLSearchParams({pid:e,ignore_warn:"1"});return t.forEach((i,s)=>{n.append(`fid[${s}]`,i)}),(await kt.post("https://webapi.115.com/rb/delete",n,{timeout:12e4,withCredentials:!0})).data}async function Id(e,t,n,o){let i=0,s=0;for(;;){const r=t.slice(i,i+n);if((await tl(e,r)).state&&(s+=r.length),i+=n,i>=t.length)break;await wt(o)}return s}async function Td(e,t){const n=new URLSearchParams({pid:e,cname:t});return(await kt.post("https://webapi.115.com/files/add",n,{timeout:12e4,withCredentials:!0})).data}async function hb(e,t){const n=new URLSearchParams({pid:e});return t.forEach((i,s)=>{n.append(`fid[${s}]`,i)}),(await kt.post("https://webapi.115.com/files/move",n,{timeout:12e4,withCredentials:!0})).data}async function mb(e){const t={path:e};return(await kt.get("https://webapi.115.com/files/getid?"+Ns(t),{timeout:12e4,withCredentials:!0})).data}async function St(e){const t=new URLSearchParams({cid:e});return(await kt.get("https://webapi.115.com/category/get?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function nl(e,t,n,o){const i={uid:o.toString(),sign:t.sign,time:Ni().toString()};n&&(i.flag="1");const s=jy(i);return e.forEach((a,l)=>{s.append(`hash[${l}]`,a)}),(await kt.post("https://115.com/web/lixian/?ct=lixian&ac=task_del",s,{timeout:12e4,withCredentials:!0})).data}async function gb(e){return new Promise((t,n)=>{const o=JSON.stringify({pickcode:e}),i=Math.floor(Date.now()).toString(),s=new zy,{data:r,key:a}=s.encode(o,i);Zc({method:"POST",url:`https://proapi.115.com/app/chrome/downurl?t=${i}`,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","User-Agent":navigator.userAgent,Accept:"application/json, text/javascript, */*; q=0.01"},data:`data=${encodeURIComponent(r)}`,responseType:"json",onload:l=>{const u=JSON.parse(l.responseText);if(u.state){const f=s.decode(u.data,a);if(f){const h=JSON.parse(f),g=Object.keys(h)[0],b=h[g];b.file_id=g;const _=l.responseHeaders.split(/[\r\n]+/).filter(E=>E.match(/set-cookie/i));_.length&&(_.forEach((E,I)=>{_[I]=E.replace(/set-cookie:[\s]*/i,"").split(";")[0]}),b.cookie=_.join("; ")),t(b)}else n({state:!1,error:"解密失败"})}else n(u)},onerror:l=>{n(l)}})})}async function yb(e){if(!(await St(e)).play_long)throw new Error("该目录下没有可以播放的媒体文件![by_attr]");const o=(await ai(Gn({cid:e,limit:1150}))).find(i=>i.play_long&&i.play_long>0);if(!o)throw new Error("该目录下没有可以播放的媒体文件![by_files]");return Vi(o)}async function wb(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 kt.post("https://webapi.115.com/files/export_dir",n,{timeout:12e4,withCredentials:!0})).data}async function bb(e,t=1e3,n=12e4){const o=new URLSearchParams({export_id:e.toString()}),i=async()=>(await kt.get("https://webapi.115.com/files/export_dir?"+o.toString(),{timeout:12e4,withCredentials:!0})).data;async function s(r){const a=await i();a.data&&!!a.data.pick_code&&r(a)}try{return await Kn(s,t,n)}catch(r){throw new Error(`导出目录树结果获取失败:${r.message}`)}}async function _b(e){/^\d+$/.test(e.target)&&(e.target=`U_1_${e.target}`);const t=Ns(e);return(await kt.post("https://uplb.115.com/3.0/sampleinitupload.php",t,{timeout:12e4,withCredentials:!0})).data}async function vb(e,t){const n=await _b(t),o=new FormData;o.append("name",t.filename),o.append("key",n.object),o.append("policy",n.policy),o.append("OSSAccessKeyId",n.accessid),o.append("success_action_status","200"),o.append("callback",n.callback),o.append("signature",n.signature),o.append("file",e);const i=n.host.replace(/^http:/,"https:");return(await kt.post(i,o,{timeout:18e5})).data}function xb(e){if(navigator.clipboard){navigator.clipboard.writeText(e);return}if(document.execCommand){const t=document.createElement("input");t.style.position="fixed",t.style.opacity="0",t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),document.body.removeChild(t);return}prompt("请复制以下内容:",e)}function Od(e="",t=""){return e+Date.now().toString()+Math.random().toString(36).substring(5)+t}async function Ld(e,t=!1){try{return await navigator.clipboard.writeText(e),!0}catch(n){return console.warn("[copy]",n),t?(prompt("请复制内容:",e),!0):!1}}async function Cb(e,t,n=!1){var s;const o=new Map;if(!e.length)return o;t=t||await ei();let i=new Map;n||(ae({text:"正在获取上级目录路径...",timer:0}),me.showLoading());try{i=await Ub(e),n||me.close()}catch(r){return console.error(r),n||ae({text:`获取上级目录路径失败: ${r}`,timer:1200,icon:"error"}),o}finally{n||me.hideLoading()}if(i.size===0)return o;for(let r=0;r(e.unix="/",e.windows="\\",e))(Qn||{});function Js(e,t="/"){return e.map((n,o)=>o===0?n:Qs(n,t)).join(t)}function Qs(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 Sb(e){return e.startsWith("/")}function Ab(e){return e===""||e==="/"||e==="\\"}function ol(e,t,n="/"){if(Sb(t))return t;const o=new URL(e,"http://example.com");o.pathname=Pb(o.pathname,t);let i=decodeURIComponent(o.pathname);return Qs(i,n)}function Pb(e,t){const n=e.endsWith("/")?e:e+"/",o=t.startsWith("/")?t.slice(1):t;return n+o}function Ib(e,t=/^\w+$/){const n=e.lastIndexOf(".");if(n===-1)return"";const o=e.slice(n+1);return t&&!t.test(o)?"":o}async function xt(e=!0){const t=en().GetCurWangPanCid();return!t&&e?(en().Core.MinMessage.Show({text:'不支持"根目录"!',timeout:1e3}),""):t}async function Tb(e,t){let n=$(`li.temp-el[cate_id="${e}"]`);if(!n.length){const o=`
  • `;n=$(o)}n.attr("title",t.file_name),n.find("a.name > span").text(t.file_name);for(let o in t){const i=typeof t[o];["string","number"].indexOf(i)>-1&&n.attr(o,t[o])}return n.attr("cate_id",e),n.attr("p_id",t.paths[t.paths.length-1].file_id),n}async function Gt(e){const t=await zi(e);return Vi(t)}async function zi(e){const t=e.attr("file_size"),n=e.attr("iv")==="1",o=await rl(),i=e.attr("file_id")||"",s=!!i,r=e.attr("c")||"",a=e.attr("fvs")||"",l={n:e.attr("title")||"",s:t?parseInt(t):0,pc:e.attr("pick_code")||"",t:e.attr("user_ptime")||"",te:"",tp:"",ico:e.attr("ico")||"",sha:e.attr("sha1")||"",iv:n,c:r?parseInt(r):0,fuuid:e.attr("fuuid"),fvs:a?parseInt(a):0};let u={n:l.n};if(!o)u={fid:i,cid:(s?e.attr("cid"):e.attr("cate_id"))||"",pid:s?"":e.attr("p_id")||"",...l};else if(u={fid:i,cid:(s?e.attr("cid"):e.attr("cate_id"))||"",...l},!s){const f=e.find(".file-directory a[cid]");if(f.length)u.pid=f.attr("cid");else throw console.warn("无法获取上级目录ID!",e),new Error("无法获取上级目录ID!")}return{...u,...l}}async function Xn(e){const t=await Rb(e);return Ob(t)}async function Ob(e){const t=[];for(let n=0;n{en().Core.DataAccess.Dir.GetDetail("1",e,o=>t(o))})}async function Db(){const e=await xt(),t=await Mb(e),n=await Tb(e,t);return n.addClass("ce-temp-cur-dir"),n}async function Wi(){return window.top!==window?$(document):$('iframe[name="wangpan"], .wrap-view iframe:eq(0)').contents()}async function li(){return(await Wi()).find(".list-contents, .list-thumb")}async function Md(e){const t=await li();return e?t.find("li.selected:not(.ce-temp-cur-dir)"):t.find("li:not(.ce-temp-cur-dir)")}async function Rb(e){const t=await Md(e),n=[];for(let o=0;o .file-path").children().each(function(){t.push($(this).text().trim().replace(/[›]$/,""))}),t}async function Nb(){const e=await xt();(await li()).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 Pn(e=!1){const t=await xt();if(!t)return null;const n=await li(),o=await Db();return e||o.hide(),n.find(`li[cate_id="${t}"]`).length||n.append(o),o}async function sl(e,t,n){n&&await Nb(),en().Core.FileMenu.DoEvent([e],t,null)}function Bb(e,t=""){return`https://115.com/?ct=preview&ac=location&pickcode=${e}&sha1=${t}`}function Ki(e){return`https://115.com/?${new URLSearchParams({cid:e}).toString()}&offset=0&mode=wangpan`}async function rl(e=location.href){return e.includes("ac=search")}function al(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(`/?${$g(n)}`)+"&submode=wangpan&mode=search"}function ll(e){return`https://v.anxia.com/?${new URLSearchParams({pickcode:e,share_id:"0"}).toString()}`}async function Fb(e){unsafeWindow.Main.ReInstance({type:e.type,offset:0,o:yu.userPtime,asc:Pa.false,star:e.star,suffix:e.suffix})}async function Rd(){return(await li()).find("li.selected")}async function Nd(){const e=await Rd();return e?await zi(e):null}function Bd(e){return e.replace(/[/\\:*?"<>|]/g,"_")}async function Xs(e){const n=(await St(e.id)).paths.slice(1).map(s=>s.file_name).join("/"),o=Bd(e.name);return`/${n}/${o}`.replace(/^[\/]+/g,"/")}async function Ub(e,t=100){var s;const n=new Map;for(const r of e){const a=r.parentId;if(!a)throw new Error(`文件"${r.name}"没有父级目录ID!`);n.has(a)?(s=n.get(a))==null||s.push(r):n.set(a,[r])}const o=[];for(const r of n.values())o.push(r[0]);const i=new Map;for(const r of o){const a=await St(r.id);await wt(t),i.set(r.parentId,a.paths.map(l=>l.file_name))}return i}async function jb(e,t=100){var s;const n=new Map;for(const r of e){const a=r.parentId;if(!a)throw new Error(`文件"${r.name}"没有父级目录ID!`);n.has(a)?(s=n.get(a))==null||s.push(r):n.set(a,[r])}const o=[];for(const r of n.values())o.push(r[0]);const i=new Map;for(const r of o){const a=await St(r.id);await wt(t),i.set(r.parentId,a.paths)}return i}async function Hb(e,t){const n=new File([e],t.filename,{type:"text/plain"});return vb(n,t)}async function qb(e,t,n){const o=await Cb(e),i=await kb(o);n=n||Od();let s=t;return/m3u8$/.test(n)||(n+=".m3u8"),await Hb(i,{filename:n,target:s})}const cl=new Map;async function ci(e,t=!0){if(e=Qs(e,Qn.unix),e=e.replace(/^[\/]+/,"").replace(/[\/]+$/,""),t&&cl.has(e))return cl.get(e);if(e===""||e==="/")return"0";const n=await mb(e);if(!n.state)throw new Error(`根据路径"${e}"获取目录ID失败: ${n.error}`);if(n.id&&n.id.toString()!=="0")return cl.set(e,n.id.toString()),n.id.toString();throw new Ka(`根据路径"${e}"获取目录ID失败: 目录不存在!`)}async function zb(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(s=>s);let o="0",i="";for(const s of n){i+="/"+s;let r="";try{r=await ci(i,!0),t.pathToId.set(i,r)}catch(a){if(a instanceof Ka){const l=await Td(o,s);if(!l.state)throw new Error(`创建目录"${s}"失败: ${l.error} - ${l.error}`);r=l.cid.toString()}else throw a}o=r,t.pathToId.set(i,r)}return t.id=o,t}async function Vb(e,t,n=!0){let o="";const i=await Td(t,e);if(i.state)o=i.cid.toString();else{if(i.errno===Qu.exist&&n){const s=await St(t);if(!s.pick_code)throw new Error(`获取目录"${t}"属性失败: ${s.errno} - ${s.error}`);const r=[...s.paths.slice(1).map(a=>a.file_name),s.file_name,e].join("/");return await ci(r,!0)}throw new Error(`创建目录"${e}"失败: ${i.errno} - ${i.error}`)}return o}async function Fd(e){if(!location.search.includes("ac=search")||!e.enableInSearch)return;const n=(await vo("#js_data_list"))[0],o=[{label:"移动",body:'移动',enabled:!0},{label:"重命名",body:'重命名',enabled:!0},{label:"删除",body:'删除',enabled:!0},{label:"属性",body:'属性',enabled:!0}],i=a=>{let l="";for(const u of a)!u.enabled||(l+=u.body);return l},s=()=>{const a="ce-menu-init",l=document.querySelectorAll(`li[rel="item"]:not(.${a})`),u=i(o);for(let f=0;f{a.type==="childList"&&s()}).observe(n,{childList:!0})}async function Wb(e){if(!e.hideSelectionMenuLabel)return;const n=(await vo("#js_operate_box"))[0];new MutationObserver(async([i])=>{if(i.type==="childList"){const s=n.querySelectorAll("li[menu]");for(let r=0;r{l.stopPropagation(),l.preventDefault();try{let u;if(i){const _=l;(i===gn.alt&&_.altKey||i===gn.ctrl&&_.ctrlKey||i===gn.shift&&_.shiftKey||i===gn.meta&&_.metaKey)&&(u={names:[dl.manual],position:o.injectManualFuncPosition})}const f=$(l.target).closest("li"),h=await Gt(f),g=await ei(),b=await or(h,s,g,u);if(console.log("[search url]",b),!b)throw new Error("无法获取有效的搜索链接!");yg(b,{active:!s.openInBackground})}catch(u){console.error(u),ae({title:"搜索失败",text:u.toString(),icon:"error"})}}});n.push(r)}return n}async function ul(e,t){if(console.log("[playDirOnAnxia]",e,t),!t)try{ae({title:"正在查找可播放的文件...",text:"请稍等...",icon:"info"}),me.showLoading(),t=await yb(e),console.log("[playDirOnAnxia] file",t)}catch(o){console.error(o),ae({title:"播放失败",text:o.toString(),icon:"error"});return}t||ae({title:"播放失败",text:"没有在该目录下找到可播放的文件![file_null]",icon:"error"});const n=ll(t.pickCode);window.open(n,"_blank","noopener noreferrer")}async function Gb(e,t){const n=[],o=await di(),i=o.keyToTriggerManual;for(const s of t){const r=Ds(e,{key:`_ce_p_${s.key}`,label:s.label,icon:s.icon,title:s.memo,onClick:async(a,l)=>{l.stopPropagation(),l.preventDefault();try{let u;if(i){const _=l;(i===gn.alt&&_.altKey||i===gn.ctrl&&_.ctrlKey||i===gn.shift&&_.shiftKey||i===gn.meta&&_.metaKey)&&(u={names:[dl.manual],position:o.injectManualFuncPosition})}const f=$(l.target).closest("li"),h=await Gt(f),g=await ei(),b=await or(h,s,g,u);if(h.isDir&&b.includes("v.anxia.com")){ul(h.id);return}if(console.log("[play url]",b),!b)throw new Error("无法获取有效的播放链接!");window.open(b,"_blank","noopener noreferrer")}catch(u){console.error(u),ae({title:"播放失败",text:u.toString(),icon:"error"})}}});n.push(r)}return n}var Yt=(e=>(e[e.full=0]="full",e[e.pure=1]="pure",e[e.fullUnique=2]="fullUnique",e[e.pureUnique=3]="pureUnique",e))(Yt||{});async function Zs(e,t){if(t===0)return e;if(t===2)return Array.from(new Set(e));const n=[];for(const o of e){const i=o.replace(/\.[^.]+$/,"");t===1?n.push(i):t===3&&(n.includes(i)||n.push(i))}return n}var Jt=(e=>(e[e.unixPath=0]="unixPath",e[e.winPath=1]="winPath",e[e.unixParentPath=2]="unixParentPath",e[e.winParentPath=3]="winParentPath",e))(Jt||{});async function er(e,t,n){const o=n===1||n===3;let s=n===2||n===3?t.replace(/\/[^/]+$/,""):t;return s.startsWith("/")||(s="/"+s),o&&(s=s.replace(/\//g,"\\")),s}async function Yb(e){return async(t,n)=>{const o=await xt(),i=await Wi(),s=e?"li[file_id].selected":"li[file_id]",r=i[0].querySelectorAll(s);if(!r.length){ae({title:"文件移动到同名目录",text:e?"当前目录没有选中文件":"当前目录没有文件",icon:"warning"});return}let a=e?`当前已选中${r.length}个文件,是否继续?`:`当前目录共有${r.length}个文件,是否继续?`;a+=`
    处理逻辑:

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

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

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

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

    `;const{value:l}=await me.fire({title:"文件移动到同名目录",html:a,icon:"warning",showCancelButton:!0,confirmButtonText:"继续",cancelButtonText:"取消"});if(!!l){me.fire({title:"文件移动到同名目录",html:"正在处理...",didOpen:()=>{me.showLoading()}});for(let u=0;u{const n=t.target;qd(n)&&Hd(t)})}function zd(e,t=.2,n=.5){e.style.transition=`opacity ${n}s`,e.style.opacity=t.toString(),setTimeout(()=>{e.remove()},500)}const nr=me.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:e=>{e.addEventListener("mouseenter",me.stopTimer),e.addEventListener("mouseleave",me.resumeTimer)},customClass:"swal-toast"});async function Xb(e,t){e.addEventListener("keydown",n=>{const o=n.target;if(!qd(o))return;let i=!1;(t==="enter"&&n.key==="Enter"||t==="ctrl+enter"&&n.key==="Enter"&&n.ctrlKey||t==="meta+enter"&&n.key==="Enter"&&n.metaKey)&&(i=!0),i&&me.clickConfirm()})}var dl=(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))(dl||{});const Zb=[{label:"文件属性变量",items:[{key:"{dir_id}",label:"文件夹ID"},{key:"{file_id}",label:"文件ID"},{key:"{pick_code}",label:"提取码"},{key:"{pure_name}",label:"不含后缀的文件名"},{key:"{full_name}",label:"完整名称"},{key:"{file_suffix}",label:"文件后缀名"},{key:"{file_hash}",label:"文件hash"},{key:"{file_size}",label:"文件大小"},{key:"{file_path}",label:"文件路径"},{key:"{file_dir}",label:"文件目录路径"}]},{label:"高级变量",items:[{key:"{clouddrive_stream_url}",label:"CloudDrive链接(用于播放,目录链接是m3u)"},{key:"{clouddrive_down_url}",label:"CloudDrive文件链接"},{key:"{clouddrive_playlist_url}",label:"CloudDrive播放列表链接"},{key:"{user_agent}",label:"浏览器UA"}]},{label:"变量函数处理",memo:"支持多个函数,函数之间使用英文冒号分隔,如:{变量名:encode:base64}。调用顺序从左到右。",items:[{key:"{变量名:search}",label:"搜索链接"},{key:"{变量名:encode}",label:"url编码"},{key:"{变量名:base64}",label:"base64编码"},{key:"{变量名:base64safe}",label:"base64安全编码"},{key:"{变量名:upper}",label:"转大写"},{key:"{变量名:lower}",label:"转小写"},{key:"{变量名:number}",label:"转数字"},{key:"{变量名:manual}",label:"手动输入"}]}];function e_(e,t,n){const{names:o,position:i}=t;let s=[];return i==="first"?s=[...o,...e]:s=[...e,...o],n?Array.from(new Set(s)):s}async function or(e,t,n,o){var u;let i=t.url;const s={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 f=["file_path","file_dir","clouddrive_stream_url","clouddrive_down_url","clouddrive_playlist_url"];for(const h of l){const g=h.replace(/[{}]/g,"").split(":")[0],b=h.replace(/[{}]/g,"").replace(/^[^:]+:/,"");let _=((u=e[s[g]])==null?void 0:u.toString())||"",E="";switch(f.includes(g)&&(E=await Xs(e)),g){case"pure_name":r?_=e.name.replace(/\.[^.]+$/,""):_=e.name;break;case"file_path":_=E;break;case"file_dir":_=E.replace(/\/[^/]+$/,"");break;case"clouddrive_stream_url":r?_=await ti(n,E,Bs.download):_=await Aa(n,E);break;case"clouddrive_down_url":_=await ti(n,E,Bs.download);break;case"clouddrive_playlist_url":let I="";r?I=E.replace(/\/[^/]+$/,""):I=E,_=await Aa(n,I);break;case"user_agent":_=navigator.userAgent;break}if(_=_.toString(),b){let I=b.split(":");o&&(I=e_(I,o,!1)),console.log(`[buildCustomUrl] functions: ${b}, after merge: ${I.join(":")}`);for(const M of I)switch(M){case"search":_=al({search_value:_});break;case"encode":_=encodeURIComponent(_);break;case"base64":_=Xc(_);break;case"base64safe":_=Xc(_,!0);break;case"upper":_=_.toUpperCase();break;case"lower":_=_.toLowerCase();break;case"number":_=_.replace(/\D/g,"");break;case"manual":let{isConfirmed:P,value:T}=await me.fire({title:"手动输入",text:"按下「Ctrl + 回车」或「Command + 回车」确认",input:"textarea",inputValue:_,showCancelButton:!0,inputValidator:H=>H?null:"输入不能为空!",didOpen:H=>{Qb(H),Xb(H,"meta+enter")}});if(!P)throw new Error("已取消手动输入。");if(T=(T==null?void 0:T.trim())||"",T==="")throw new Error("输入不能为空!");_=T;break}}i=i.replace(h,_)}}return t.mutation?await t_(i,e,t,n):i}async function t_(e,t,n,o){return await new Function("payload",n.mutation)({url:e,file:t,customUrl:n,cloudDriveConfig:o})}var In=(e=>(e.search="search",e.play="play",e))(In||{});const n_=Ft.menuCustomUrlsForSearch,o_=Ft.menuCustomUrlsForPlay,Vd={search:n_,play:o_};async function ui(e){return await tt.get(Vd[e],[])}async function Wd(e,t){await tt.set(Vd[e],t)}function bt(e){return{enabled:!0,key:"",label:"",icon:"",memo:"",extraMemo:"",url:"",openInBackground:!1,...e}}var gn=(e=>(e.none="none",e.alt="alt",e.ctrl="ctrl",e.shift="shift",e.meta="meta",e))(gn||{});const Kd=Ft.menu;function i_(e){return{enabled:!0,openInNewTab:!0,search:!0,play:!0,getDownloadUrl:!0,copyNames:!0,exportList:!1,viewInCloudDrive:!0,...e}}function s_(e){return{enabled:!0,copyNames:!0,viewInCloudDrive:!0,...e}}function r_(e){return{enabled:!0,moveToSelfNameDir:!0,copyNames:!0,play:!0,...e}}function a_(e){return{enabled:!0,rename:!0,delete:!0,play:!0,copyNames:!0,move:!0,copy:!0,copyTo:!0,viewProp:!0,showSubFolderSize:!0,exportList:!1,viewInCloudDrive:!0,...e}}function l_(e){return{enabled:!0,hideSelectionMenuLabel:!1,enableInSearch:!0,manageOfficialMenus:!1,keyToTriggerManual:"none",injectManualFuncPosition:"first",m3u8TempDir:".ce-m3u8-temp",[Be.listItemHover]:i_(e==null?void 0:e[Be.listItemHover]),[Be.listItemContext]:s_(e==null?void 0:e[Be.listItemContext]),[Be.selection]:r_(e==null?void 0:e[Be.selection]),[Be.dirContext]:a_(e==null?void 0:e[Be.dirContext]),...e}}async function di(){const e=l_(),t=await tt.get(Kd,e);return ou(e,t)}async function c_(e){await tt.set(Kd,e)}const Nc=class{constructor(t){_e(this,"menuType",Be.listItemHover);_e(this,"injectDecider");_e(this,"keyAttributeName","id");_e(this,"key","");_e(this,"label","");_e(this,"icon","");_e(this,"showIcon",!0);_e(this,"title","");_e(this,"onClick",async(t,n)=>{});_e(this,"onMouseOver");_e(this,"onMouseOut");_e(this,"subItems",[]);_e(this,"isDivider",!1);_e(this,"menuItemTemplates",{[Be.dirContext]:{body:`
  • {icon}{label}
  • `,bodyForMulti:`
  • {icon}{label}
    `,divider:'
  • '},[Be.dirContextSub]:{body:` {icon}{label} `,divider:''},[Be.listItemContext]:{body:`
  • {icon}{label}
  • `,bodyForMulti:`
  • {icon}{label}
    `,divider:'
  • '},[Be.listItemContextSub]:{body:'{label}',divider:''},[Be.listItemHover]:{body:` {icon}{label} `,bodyForMulti:` {icon}{label}
    `,divider:''},[Be.listItemHoverSub]:{body:` {icon}{label} `,divider:''},[Be.selection]:{body:'
  • {icon}{label}
  • ',bodyForMulti:`
  • {icon}{label}
  • `,divider:'
  • '},[Be.selectionSub]:{body:` {icon}{label} `,divider:''}});t.menuType&&(this.menuType=t.menuType),t.injectDecider&&(this.injectDecider=t.injectDecider),t.isDivider&&(this.isDivider=!0),t.key&&(this.key=t.key),t.label&&(this.label=t.label),t.icon&&(this.icon=t.icon),t.showIcon!==void 0&&(this.showIcon=t.showIcon),t.title&&(this.title=t.title),t.onClick&&(this.onClick=t.onClick),t.onMouseOver&&(this.onMouseOver=t.onMouseOver),t.onMouseOut&&(this.onMouseOut=t.onMouseOut),t.subItems&&(this.subItems=t.subItems),t.key&&(this.key=t.key),t.label&&(this.label=t.label),t.onClick&&(this.onClick=t.onClick)}async decideInject(t){return this.injectDecider?await this.injectDecider(this,t):!0}async render(){if(!this.menuType)throw new Error("未指定菜单类型");const t=this.menuItemTemplates[this.menuType];if(!t)throw new Error(`未找到菜单模板:${this.menuType}`);if(this.isDivider){if(!t.divider)throw new Error("未定义模版的divider内容!");const r=document.createElement("div");return r.innerHTML=t.divider,r.firstElementChild}let n=t.body;if(this.subItems.length>0){if(!t.bodyForMulti)throw new Error("未找到 bodyFormMulti 模版");n=t.bodyForMulti}const o=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=``),o.innerHTML=n.replace(/{key}/g,this.key).replace(/{label}/g,this.label).replace(/{icon}/g,i);const s=o.firstElementChild;if(s.setAttribute("title",this.title||""),this.onClick&&s.addEventListener("click",async r=>{this.onClick(this,r)}),this.onMouseOver&&s.addEventListener("mouseover",async r=>{this.onMouseOver&&this.onMouseOver(this,r)}),this.onMouseOut&&s.addEventListener("mouseout",async r=>{this.onMouseOut&&this.onMouseOut(this,r)}),this.subItems.length>0){const r=s.querySelector(".sub-items"),a=[];for(const l of this.subItems){const u=await l.render();a.push(u)}r==null||r.append(...a)}return s}async closeMenu(){unsafeWindow.Core.FileMenu.HideRight(),document.dispatchEvent(new CustomEvent(Nc.EVENT_CLOSE_MENU,{detail:{menu:this}}))}async decorateContainer(t){}};let tn=Nc;_e(tn,"EVENT_CLOSE_MENU","__closeMenu");async function ir(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),i=o.find(".ce-menu-dropdown");o.addClass("ce-menu-dropdown-opened"),i.addClass("ce-menu-dropdown-active")}async function sr(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),i=o.find(".ce-menu-dropdown");o.removeClass("ce-menu-dropdown-opened"),i.removeClass("ce-menu-dropdown-active")}class At extends tn{constructor(n){super(n);_e(this,"menuType",Be.dirContext);this.onMouseOver=ir,this.onMouseOut=sr}}class u_ extends tn{constructor(){super(...arguments);_e(this,"menuType",Be.dirContextSub)}}class rr extends tn{constructor(n){super(n);_e(this,"menuType",Be.listItemContext);this.onMouseOver=ir,this.onMouseOut=sr}}class ar extends tn{constructor(n){super(n);_e(this,"menuType",Be.listItemHover);this.onMouseOver=ir,this.onMouseOut=sr}}class fi extends tn{constructor(){super(...arguments);_e(this,"menuType",Be.listItemHoverSub)}}class fl extends tn{constructor(n){super(n);_e(this,"menuType",Be.selection);this.onMouseOver=ir,this.onMouseOut=sr}}class lr extends tn{constructor(){super(...arguments);_e(this,"menuType",Be.selectionSub)}}class cr extends tn{constructor(){super(...arguments);_e(this,"isDivider",!0)}}class d_ extends cr{}class Gd extends cr{}class pl extends cr{}class Yd extends cr{}class ur{constructor(t){_e(this,"items");_e(this,"siblingSelector");_e(this,"position");_e(this,"useObserver",!0);_e(this,"observeTarget",document.body);_e(this,"disposeObserverAfterInjection",!0);_e(this,"menuType");_e(this,"_observer");_e(this,"injectDecider");t.menuType&&(this.menuType=t.menuType),t.injectDecider&&(this.injectDecider=t.injectDecider),this.items=t.items,this.siblingSelector=t.siblingSelector,this.position=t.position,this.useObserver=t.useObserver,this.observeTarget=t.observeTarget,this.disposeObserverAfterInjection=t.disposeObserverAfterInjection}async createObserver(){return new MutationObserver(async([n])=>{n.type==="childList"&&await this.handleChildListMutation(n)})}async observe(){if(this._observer=await this.createObserver(),!this._observer)return;const t=await this.getObserveTarget();!t||this.startObserver(t)}async startObserver(t){!this._observer||this._observer.observe(t,{childList:!0})}async disposeObserver(){this.disposeObserverAfterInjection&&this._observer&&this._observer.disconnect()}async getObserveTarget(){return typeof this.observeTarget=="string"?(await vo(this.observeTarget,800,6048e5))[0]:this.observeTarget}async isMutationMatch(t){const n=t.addedNodes[0];if(n&&n.nodeType!==Node.ELEMENT_NODE)return!1;switch(this.menuType,Be.dirContext,this.menuType){case Be.listItemHover:return!0;case Be.listItemContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="report"]');case Be.selection:return!0;case Be.dirContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="upload"]');default:return!1}}async handleChildListMutation(t){if(!await this.isMutationMatch(t))return;const n=await this.getContainers(t);await this.perform(n)}async perform(t){for(const n of t)await this.injectToContainer(n)}async getSibling(t){return t.querySelector(this.siblingSelector)}async getContainers(t){let n=[];const o=t.addedNodes[0];switch(this.menuType){case Be.listItemHover:document.querySelectorAll("#js_data_list .list-contents > ul:not([ce-done]) > li .file-opr").forEach(i=>{n.push(i)});break;case Be.listItemContext:n=[o];break;case Be.selection:document.querySelectorAll("#js_top_panel_box #js_operate_box").forEach(i=>{n.push(i)});break;case Be.dirContext:n=[o];break}return n}async shouldInjectMenuItem(t,n){return await n.decideInject(t)?await this.decideInject(n,t):!1}async decideInject(t,n){return this.injectDecider?await this.injectDecider(t,n):!0}async injectToContainer(t){const n=await this.getSibling(t);if(!n)return;let o=this.items.slice();this.position===$o.after&&(o=o.reverse());for(let i=0;i ul:not([ce-done]) > li .file-opr");o.length&&await this.perform(Array.from(o))}super.inject()}async handleLoadAll(){if(window.top===window.self)return;const n=document.querySelector("#js_pagination_box");if(!n){console.warn("[ListItemHoverMenuInjector.handleLoadAll] 未找到「#js_pagination_box」元素");return}function o(i){const s=document.querySelector("#js_data_list .list-contents > ul > li");!s||s.querySelector(".ce-menu")||i(!0)}n.addEventListener("click",async i=>{i.preventDefault(),i.stopPropagation();const s=i.target;let r=!1;if((s.getAttribute("menu")==="load_all_file"||s.closest('[menu="load_all_file"]'))&&(r=!0),!r)return;console.log("[ListItemHoverMenuInjector.handleLoadAll] 点击了「加载全部」按钮"),await Kn(o,500,3e5);const a=document.querySelector("#js_data_list .list-contents > ul");a==null||a.removeAttribute("ce-done");const l=document.querySelector("#js_data_list");if(l){const u=".list-contents > ul:not([ce-done]) > li .file-opr";if(!document.querySelector(u)){const h=await di();await Fd(h)}const f=l.querySelectorAll(u);f.length&&await this.perform(Array.from(f))}})}async perform(n){await super.perform(n);const o=document.querySelector("#js_data_list .list-contents > ul");o==null||o.setAttribute("ce-done","")}}class m_ extends ur{constructor(){super(...arguments);_e(this,"menuType",Be.selection);_e(this,"useObserver",!0);_e(this,"observeTarget","#js_top_panel_box #js_operate_box");_e(this,"disposeObserverAfterInjection",!1)}}async function Jd(e,t){return!!$(t).closest("li").attr("cate_id")}async function g_(e,t){const n=$(t).closest("li");if(n.attr("cate_id")||n.attr("iv")==="1")return!0;const o=n.attr("ico");return o?Eg(o)||Sg(o)||kg(o):!1}function Zn(e,t){const n=Object.create(null),o=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}function Tn(e){if(Se(e)){const t={};for(let n=0;n{if(n){const o=n.split(w_);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Je(e){let t="";if(nt(e))t=e;else if(Se(e))for(let n=0;nGi(n,t))}const ge=e=>nt(e)?e:e==null?"":Se(e)||Ye(e)&&(e.toString===tf||!Le(e.toString))?JSON.stringify(e,Xd,2):String(e),Xd=(e,t)=>t&&t.__v_isRef?Xd(e,t.value):So(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i])=>(n[`${o} =>`]=i,n),{})}:hi(t)?{[`Set(${t.size})`]:[...t.values()]}:Ye(t)&&!Se(t)&&!nf(t)?String(t):t,Xe=Object.freeze({}),pi=Object.freeze([]),qt=()=>{},Zd=()=>!1,A_=/^on[^a-z]/,Yi=e=>A_.test(e),dr=e=>e.startsWith("onUpdate:"),dt=Object.assign,ml=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},P_=Object.prototype.hasOwnProperty,je=(e,t)=>P_.call(e,t),Se=Array.isArray,So=e=>Qi(e)==="[object Map]",hi=e=>Qi(e)==="[object Set]",ef=e=>Qi(e)==="[object Date]",Le=e=>typeof e=="function",nt=e=>typeof e=="string",Ji=e=>typeof e=="symbol",Ye=e=>e!==null&&typeof e=="object",fr=e=>Ye(e)&&Le(e.then)&&Le(e.catch),tf=Object.prototype.toString,Qi=e=>tf.call(e),gl=e=>Qi(e).slice(8,-1),nf=e=>Qi(e)==="[object Object]",yl=e=>nt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pr=Zn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),I_=Zn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),hr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},T_=/-(\w)/g,yn=hr(e=>e.replace(T_,(t,n)=>n?n.toUpperCase():"")),O_=/\B([A-Z])/g,On=hr(e=>e.replace(O_,"-$1").toLowerCase()),Ao=hr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Po=hr(e=>e?`on${Ao(e)}`:""),Xi=(e,t)=>!Object.is(e,t),mi=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},gr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},L_=e=>{const t=nt(e)?Number(e):NaN;return isNaN(t)?e:t};let of;const sf=()=>of||(of=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function wl(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let ln;class M_{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ln,!t&&ln&&(this.index=(ln.scopes||(ln.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ln;try{return ln=this,t()}finally{ln=n}}else wl("cannot run an inactive effect scope.")}on(){ln=this}off(){ln=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},rf=e=>(e.w&eo)>0,af=e=>(e.n&eo)>0,N_=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{(h==="length"||h>=u)&&a.push(f)})}else switch(n!==void 0&&a.push(r.get(n)),t){case"add":Se(e)?yl(n)&&a.push(r.get("length")):(a.push(r.get(Io)),So(e)&&a.push(r.get(vl)));break;case"delete":Se(e)||(a.push(r.get(Io)),So(e)&&a.push(r.get(vl)));break;case"set":So(e)&&a.push(r.get(Io));break}const l={target:e,type:t,key:n,newValue:o,oldValue:i,oldTarget:s};if(a.length===1)a[0]&&Cl(a[0],l);else{const u=[];for(const f of a)f&&u.push(...f);Cl(bl(u),l)}}function Cl(e,t){const n=Se(e)?e:[...e];for(const o of n)o.computed&&df(o,t);for(const o of n)o.computed||df(o,t)}function df(e,t){(e!==Pt||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(dt({effect:e},t)),e.scheduler?e.scheduler():e.run())}function F_(e,t){var n;return(n=yr.get(e))===null||n===void 0?void 0:n.get(t)}const U_=Zn("__proto__,__v_isRef,__isVue"),ff=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ji)),j_=wr(),H_=wr(!1,!0),q_=wr(!0),z_=wr(!0,!0),pf=V_();function V_(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=Fe(this);for(let s=0,r=this.length;s{e[t]=function(...n){To();const o=Fe(this)[t].apply(this,n);return Oo(),o}}),e}function W_(e){const t=Fe(this);return zt(t,"has",e),t.hasOwnProperty(e)}function wr(e=!1,t=!1){return function(o,i,s){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&s===(e?t?Ef:$f:t?Cf:xf).get(o))return o;const r=Se(o);if(!e){if(r&&je(pf,i))return Reflect.get(pf,i,s);if(i==="hasOwnProperty")return W_}const a=Reflect.get(o,i,s);return(Ji(i)?ff.has(i):U_(i))||(e||zt(o,"get",i),t)?a:ft(a)?r&&yl(i)?a:a.value:Ye(a)?e?kf(a):kr(a):a}}const K_=hf(),G_=hf(!0);function hf(e=!1){return function(n,o,i,s){let r=n[o];if(oo(r)&&ft(r)&&!ft(i))return!1;if(!e&&(!Ar(i)&&!oo(i)&&(r=Fe(r),i=Fe(i)),!Se(n)&&ft(r)&&!ft(i)))return r.value=i,!0;const a=Se(n)&&yl(o)?Number(o)e,br=e=>Reflect.getPrototypeOf(e);function _r(e,t,n=!1,o=!1){e=e.__v_raw;const i=Fe(e),s=Fe(t);n||(t!==s&&zt(i,"get",t),zt(i,"get",s));const{has:r}=br(i),a=o?$l:n?El:es;if(r.call(i,t))return a(e.get(t));if(r.call(i,s))return a(e.get(s));e!==i&&e.get(t)}function vr(e,t=!1){const n=this.__v_raw,o=Fe(n),i=Fe(e);return t||(e!==i&&zt(o,"has",e),zt(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function xr(e,t=!1){return e=e.__v_raw,!t&&zt(Fe(e),"iterate",Io),Reflect.get(e,"size",e)}function yf(e){e=Fe(e);const t=Fe(this);return br(t).has.call(t,e)||(t.add(e),Ln(t,"add",e,e)),this}function wf(e,t){t=Fe(t);const n=Fe(this),{has:o,get:i}=br(n);let s=o.call(n,e);s?vf(n,o,e):(e=Fe(e),s=o.call(n,e));const r=i.call(n,e);return n.set(e,t),s?Xi(t,r)&&Ln(n,"set",e,t,r):Ln(n,"add",e,t),this}function bf(e){const t=Fe(this),{has:n,get:o}=br(t);let i=n.call(t,e);i?vf(t,n,e):(e=Fe(e),i=n.call(t,e));const s=o?o.call(t,e):void 0,r=t.delete(e);return i&&Ln(t,"delete",e,void 0,s),r}function _f(){const e=Fe(this),t=e.size!==0,n=So(e)?new Map(e):new Set(e),o=e.clear();return t&&Ln(e,"clear",void 0,void 0,n),o}function Cr(e,t){return function(o,i){const s=this,r=s.__v_raw,a=Fe(r),l=t?$l:e?El:es;return!e&&zt(a,"iterate",Io),r.forEach((u,f)=>o.call(i,l(u),l(f),s))}}function $r(e,t,n){return function(...o){const i=this.__v_raw,s=Fe(i),r=So(s),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,u=i[e](...o),f=n?$l:t?El:es;return!t&&zt(s,"iterate",l?vl:Io),{next(){const{value:h,done:g}=u.next();return g?{value:h,done:g}:{value:a?[f(h[0]),f(h[1])]:f(h),done:g}},[Symbol.iterator](){return this}}}}function no(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${Ao(e)} operation ${n}failed: target is readonly.`,Fe(this))}return e==="delete"?!1:this}}function ev(){const e={get(s){return _r(this,s)},get size(){return xr(this)},has:vr,add:yf,set:wf,delete:bf,clear:_f,forEach:Cr(!1,!1)},t={get(s){return _r(this,s,!1,!0)},get size(){return xr(this)},has:vr,add:yf,set:wf,delete:bf,clear:_f,forEach:Cr(!1,!0)},n={get(s){return _r(this,s,!0)},get size(){return xr(this,!0)},has(s){return vr.call(this,s,!0)},add:no("add"),set:no("set"),delete:no("delete"),clear:no("clear"),forEach:Cr(!0,!1)},o={get(s){return _r(this,s,!0,!0)},get size(){return xr(this,!0)},has(s){return vr.call(this,s,!0)},add:no("add"),set:no("set"),delete:no("delete"),clear:no("clear"),forEach:Cr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=$r(s,!1,!1),n[s]=$r(s,!0,!1),t[s]=$r(s,!1,!0),o[s]=$r(s,!0,!0)}),[e,n,t,o]}const[tv,nv,ov,iv]=ev();function Er(e,t){const n=t?e?iv:ov:e?nv:tv;return(o,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(je(n,i)&&i in o?n:o,i,s)}const sv={get:Er(!1,!1)},rv={get:Er(!1,!0)},av={get:Er(!0,!1)},lv={get:Er(!0,!0)};function vf(e,t,n){const o=Fe(n);if(o!==n&&t.call(e,o)){const i=gl(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const xf=new WeakMap,Cf=new WeakMap,$f=new WeakMap,Ef=new WeakMap;function cv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function uv(e){return e.__v_skip||!Object.isExtensible(e)?0:cv(gl(e))}function kr(e){return oo(e)?e:Sr(e,!1,mf,sv,xf)}function dv(e){return Sr(e,!1,X_,rv,Cf)}function kf(e){return Sr(e,!0,gf,av,$f)}function gi(e){return Sr(e,!0,Z_,lv,Ef)}function Sr(e,t,n,o,i){if(!Ye(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const r=uv(e);if(r===0)return e;const a=new Proxy(e,r===2?o:n);return i.set(e,a),a}function Lo(e){return oo(e)?Lo(e.__v_raw):!!(e&&e.__v_isReactive)}function oo(e){return!!(e&&e.__v_isReadonly)}function Ar(e){return!!(e&&e.__v_isShallow)}function Pr(e){return Lo(e)||oo(e)}function Fe(e){const t=e&&e.__v_raw;return t?Fe(t):e}function Sf(e){return mr(e,"__v_skip",!0),e}const es=e=>Ye(e)?kr(e):e,El=e=>Ye(e)?kf(e):e;function Af(e){to&&Pt&&(e=Fe(e),uf(e.dep||(e.dep=bl()),{target:e,type:"get",key:"value"}))}function Pf(e,t){e=Fe(e);const n=e.dep;n&&Cl(n,{target:e,type:"set",key:"value",newValue:t})}function ft(e){return!!(e&&e.__v_isRef===!0)}function de(e){return fv(e,!1)}function fv(e,t){return ft(e)?e:new pv(e,t)}class pv{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Fe(t),this._value=n?t:es(t)}get value(){return Af(this),this._value}set value(t){const n=this.__v_isShallow||Ar(t)||oo(t);t=n?t:Fe(t),Xi(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:es(t),Pf(this,t))}}function fe(e){return ft(e)?e.value:e}const hv={get:(e,t,n)=>fe(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return ft(i)&&!ft(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function If(e){return Lo(e)?e:new Proxy(e,hv)}function mv(e){Pr(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=Se(e)?new Array(e.length):{};for(const n in e)t[n]=yv(e,n);return t}class gv{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return F_(Fe(this._object),this._key)}}function yv(e,t,n){const o=e[t];return ft(o)?o:new gv(e,t,n)}var Tf;class wv{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Tf]=!1,this._dirty=!0,this.effect=new xl(t,()=>{this._dirty||(this._dirty=!0,Pf(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=Fe(this);return Af(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Tf="__v_isReadonly";function bv(e,t,n=!1){let o,i;const s=Le(e);s?(o=e,i=()=>{console.warn("Write operation failed: computed value is readonly")}):(o=e.get,i=e.set);const r=new wv(o,i,s||!i,n);return t&&!n&&(r.effect.onTrack=t.onTrack,r.effect.onTrigger=t.onTrigger),r}const Mo=[];function ts(e){Mo.push(e)}function ns(){Mo.pop()}function le(e,...t){To();const n=Mo.length?Mo[Mo.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=_v();if(o)Mn(o,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:s})=>`at <${qr(n,s.type)}>`).join(` `),i]);else{const s=[`[Vue warn]: ${e}`,...t];i.length&&s.push(` `,...vv(i)),console.warn(...s)}Oo()}function _v(){let e=Mo[Mo.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function vv(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[` `],...xv(n))}),t}function xv({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${qr(e.component,e.type,o)}`,s=">"+n;return e.props?[i,...Cv(e.props),s]:[i+s]}function Cv(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...Of(o,e[o]))}),n.length>3&&t.push(" ..."),t}function Of(e,t,n){return nt(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ft(t)?(t=Of(e,Fe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Le(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Fe(t),n?t:[`${e}=`,t])}function $v(e,t){e!==void 0&&(typeof e!="number"?le(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&le(`${t} is NaN - the duration expression might be incorrect.`))}const kl={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Mn(e,t,n,o){let i;try{i=o?e(...o):e()}catch(s){os(s,t,n)}return i}function cn(e,t,n,o){if(Le(e)){const s=Mn(e,t,n,o);return s&&fr(s)&&s.catch(r=>{os(r,t,n)}),s}const i=[];for(let s=0;s>>1;ss(Ct[o])wn&&Ct.splice(t,1)}function Pl(e){Se(e)?yi.push(...e):(!bn||!bn.includes(e,e.allowRecurse?io+1:io))&&yi.push(e),Mf()}function Df(e,t=is?wn+1:0){for(e=e||new Map;tss(n)-ss(o)),io=0;ioe.id==null?1/0:e.id,Pv=(e,t)=>{const n=ss(e)-ss(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Nf(e){Sl=!1,is=!0,e=e||new Map,Ct.sort(Pv);const t=n=>Il(e,n);try{for(wn=0;wnkv){const o=t.ownerInstance,i=o&&tc(o.type);return le(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,n+1)}}let Do=!1;const bi=new Set;sf().__VUE_HMR_RUNTIME__={createRecord:Tl(Bf),rerender:Tl(Ov),reload:Tl(Lv)};const Ro=new Map;function Iv(e){const t=e.type.__hmrId;let n=Ro.get(t);n||(Bf(t,e.type),n=Ro.get(t)),n.instances.add(e)}function Tv(e){Ro.get(e.type.__hmrId).instances.delete(e)}function Bf(e,t){return Ro.has(e)?!1:(Ro.set(e,{initialDef:rs(t),instances:new Set}),!0)}function rs(e){return Ap(e)?e.__vccOpts:e}function Ov(e,t){const n=Ro.get(e);!n||(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,rs(o.type).render=t),o.renderCache=[],Do=!0,o.update(),Do=!1}))}function Lv(e,t){const n=Ro.get(e);if(!n)return;t=rs(t),Ff(n.initialDef,t);const o=[...n.instances];for(const i of o){const s=rs(i.type);bi.has(s)||(s!==n.initialDef&&Ff(s,t),bi.add(s)),i.appContext.optionsCache.delete(i.type),i.ceReload?(bi.add(s),i.ceReload(t.styles),bi.delete(s)):i.parent?Ir(i.parent.update):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Pl(()=>{for(const i of o)bi.delete(rs(i.type))})}function Ff(e,t){dt(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Tl(e){return(t,n)=>{try{return e(t,n)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let _n,as=[],Ol=!1;function ls(e,...t){_n?_n.emit(e,...t):Ol||as.push({event:e,args:t})}function Uf(e,t){var n,o;_n=e,_n?(_n.enabled=!0,as.forEach(({event:i,args:s})=>_n.emit(i,...s)),as=[]):typeof window<"u"&&window.HTMLElement&&!(!((o=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{Uf(s,t)}),setTimeout(()=>{_n||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ol=!0,as=[])},3e3)):(Ol=!0,as=[])}function Mv(e,t){ls("app:init",e,t,{Fragment:Ue,Text:hs,Comment:Lt,Static:ms})}function Dv(e){ls("app:unmount",e)}const Rv=Ll("component:added"),jf=Ll("component:updated"),Nv=Ll("component:removed"),Bv=e=>{_n&&typeof _n.cleanupBuffer=="function"&&!_n.cleanupBuffer(e)&&Nv(e)};function Ll(e){return t=>{ls(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Fv=Hf("perf:start"),Uv=Hf("perf:end");function Hf(e){return(t,n,o)=>{ls(e,t.appContext.app,t.uid,t,n,o)}}function jv(e,t,n){ls("component:emit",e.appContext.app,e,t,n)}function Hv(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Xe;{const{emitsOptions:f,propsOptions:[h]}=e;if(f)if(!(t in f))(!h||!(Po(t)in h))&&le(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Po(t)}" prop.`);else{const g=f[t];Le(g)&&(g(...n)||le(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=n;const s=t.startsWith("update:"),r=s&&t.slice(7);if(r&&r in o){const f=`${r==="modelValue"?"model":r}Modifiers`,{number:h,trim:g}=o[f]||Xe;g&&(i=n.map(b=>nt(b)?b.trim():b)),h&&(i=n.map(gr))}jv(e,t,i);{const f=t.toLowerCase();f!==t&&o[Po(f)]&&le(`Event "${f}" is emitted in component ${qr(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${On(t)}" instead of "${t}".`)}let a,l=o[a=Po(t)]||o[a=Po(yn(t))];!l&&s&&(l=o[a=Po(On(t))]),l&&cn(l,e,6,i);const u=o[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,cn(u,e,6,i)}}function qf(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const s=e.emits;let r={},a=!1;if(!Le(e)){const l=u=>{const f=qf(u,t,!0);f&&(a=!0,dt(r,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(Ye(e)&&o.set(e,null),null):(Se(s)?s.forEach(l=>r[l]=null):dt(r,s),Ye(e)&&o.set(e,r),r)}function Tr(e,t){return!e||!Yi(t)?!1:(t=t.slice(2).replace(/Once$/,""),je(e,t[0].toLowerCase()+t.slice(1))||je(e,On(t))||je(e,t))}let mt=null,Or=null;function Lr(e){const t=mt;return mt=e,Or=e&&e.type.__scopeId||null,t}function qv(e){Or=e}function zv(){Or=null}const Vv=e=>Qe;function Qe(e,t=mt,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&bp(-1);const s=Lr(t);let r;try{r=e(...i)}finally{Lr(s),o._d&&bp(1)}return jf(t),r};return o._n=!0,o._c=!0,o._d=!0,o}let Ml=!1;function Mr(){Ml=!0}function Dl(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:s,propsOptions:[r],slots:a,attrs:l,emit:u,render:f,renderCache:h,data:g,setupState:b,ctx:_,inheritAttrs:E}=e;let I,M;const P=Lr(e);Ml=!1;try{if(n.shapeFlag&4){const ie=i||o;I=sn(f.call(ie,ie,h,s,b,g,_)),M=l}else{const ie=t;l===s&&Mr(),I=sn(ie.length>1?ie(s,{get attrs(){return Mr(),l},slots:a,emit:u}):ie(s,null)),M=t.props?l:Kv(l)}}catch(ie){gs.length=0,os(ie,e,1),I=ke(Lt)}let T=I,H;if(I.patchFlag>0&&I.patchFlag&2048&&([T,H]=Wv(I)),M&&E!==!1){const ie=Object.keys(M),{shapeFlag:U}=T;if(ie.length){if(U&7)r&&ie.some(dr)&&(M=Gv(M,r)),T=ao(T,M);else if(!Ml&&T.type!==Lt){const Z=Object.keys(l),ce=[],ye=[];for(let Ie=0,be=Z.length;Ie renders non-element root node that cannot be animated."),T.transition=n.transition),H?H(T):I=T,Lr(P),I}const Wv=e=>{const t=e.children,n=e.dynamicChildren,o=Rl(t);if(!o)return[e,void 0];const i=t.indexOf(o),s=n?n.indexOf(o):-1,r=a=>{t[i]=a,n&&(s>-1?n[s]=a:a.patchFlag>0&&(e.dynamicChildren=[...n,a]))};return[sn(o),r]};function Rl(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Yi(n))&&((t||(t={}))[n]=e[n]);return t},Gv=(e,t)=>{const n={};for(const o in e)(!dr(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n},zf=e=>e.shapeFlag&7||e.type===Lt;function Yv(e,t,n){const{props:o,children:i,component:s}=e,{props:r,children:a,patchFlag:l}=t,u=s.emitsOptions;if((i||a)&&Do||t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?Vf(o,r,u):!!r;if(l&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense,Wf={name:"Suspense",__isSuspense:!0,process(e,t,n,o,i,s,r,a,l,u){e==null?Qv(t,n,o,i,s,r,a,l,u):Xv(e,t,n,o,i,r,a,l,u)},hydrate:Zv,create:Bl,normalize:e1};function cs(e,t){const n=e.props&&e.props[t];Le(n)&&n()}function Qv(e,t,n,o,i,s,r,a,l){const{p:u,o:{createElement:f}}=l,h=f("div"),g=e.suspense=Bl(e,i,o,t,h,n,s,r,a,l);u(null,g.pendingBranch=e.ssContent,h,null,o,g,s,r),g.deps>0?(cs(e,"onPending"),cs(e,"onFallback"),u(null,e.ssFallback,t,n,o,null,s,r),_i(g,e.ssFallback)):g.resolve()}function Xv(e,t,n,o,i,s,r,a,{p:l,um:u,o:{createElement:f}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const g=t.ssContent,b=t.ssFallback,{activeBranch:_,pendingBranch:E,isInFallback:I,isHydrating:M}=h;if(E)h.pendingBranch=g,ro(g,E)?(l(E,g,h.hiddenContainer,null,i,h,s,r,a),h.deps<=0?h.resolve():I&&(l(_,b,n,o,i,null,s,r,a),_i(h,b))):(h.pendingId++,M?(h.isHydrating=!1,h.activeBranch=E):u(E,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=f("div"),I?(l(null,g,h.hiddenContainer,null,i,h,s,r,a),h.deps<=0?h.resolve():(l(_,b,n,o,i,null,s,r,a),_i(h,b))):_&&ro(g,_)?(l(_,g,n,o,i,h,s,r,a),h.resolve(!0)):(l(null,g,h.hiddenContainer,null,i,h,s,r,a),h.deps<=0&&h.resolve()));else if(_&&ro(g,_))l(_,g,n,o,i,h,s,r,a),_i(h,g);else if(cs(t,"onPending"),h.pendingBranch=g,h.pendingId++,l(null,g,h.hiddenContainer,null,i,h,s,r,a),h.deps<=0)h.resolve();else{const{timeout:P,pendingId:T}=h;P>0?setTimeout(()=>{h.pendingId===T&&h.fallback(b)},P):P===0&&h.fallback(b)}}let Kf=!1;function Bl(e,t,n,o,i,s,r,a,l,u,f=!1){Kf||(Kf=!0,console[console.info?"info":"log"](" is an experimental feature and its API will likely change."));const{p:h,m:g,um:b,n:_,o:{parentNode:E,remove:I}}=u,M=e.props?L_(e.props.timeout):void 0;$v(M,"Suspense timeout");const P={vnode:e,parent:t,parentComponent:n,isSVG:r,container:o,hiddenContainer:i,anchor:s,deps:0,pendingId:0,timeout:typeof M=="number"?M:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(T=!1){{if(!T&&!P.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(P.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:H,activeBranch:ie,pendingBranch:U,pendingId:Z,effects:ce,parentComponent:ye,container:Ie}=P;if(P.isHydrating)P.isHydrating=!1;else if(!T){const re=ie&&U.transition&&U.transition.mode==="out-in";re&&(ie.transition.afterLeave=()=>{Z===P.pendingId&&g(U,Ie,Q,0)});let{anchor:Q}=P;ie&&(Q=_(ie),b(ie,ye,P,!0)),re||g(U,Ie,Q,0)}_i(P,U),P.pendingBranch=null,P.isInFallback=!1;let be=P.parent,O=!1;for(;be;){if(be.pendingBranch){be.effects.push(...ce),O=!0;break}be=be.parent}O||Pl(ce),P.effects=[],cs(H,"onResolve")},fallback(T){if(!P.pendingBranch)return;const{vnode:H,activeBranch:ie,parentComponent:U,container:Z,isSVG:ce}=P;cs(H,"onFallback");const ye=_(ie),Ie=()=>{!P.isInFallback||(h(null,T,Z,ye,U,null,ce,a,l),_i(P,T))},be=T.transition&&T.transition.mode==="out-in";be&&(ie.transition.afterLeave=Ie),P.isInFallback=!0,b(ie,U,null,!0),be||Ie()},move(T,H,ie){P.activeBranch&&g(P.activeBranch,T,H,ie),P.container=T},next(){return P.activeBranch&&_(P.activeBranch)},registerDep(T,H){const ie=!!P.pendingBranch;ie&&P.deps++;const U=T.vnode.el;T.asyncDep.catch(Z=>{os(Z,T,0)}).then(Z=>{if(T.isUnmounted||P.isUnmounted||P.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:ce}=T;ts(ce),Zl(T,Z,!1),U&&(ce.el=U);const ye=!U&&T.subTree.el;H(T,ce,E(U||T.subTree.el),U?null:_(T.subTree),P,r,l),ye&&I(ye),Nl(T,ce.el),ns(),ie&&--P.deps===0&&P.resolve()})},unmount(T,H){P.isUnmounted=!0,P.activeBranch&&b(P.activeBranch,n,T,H),P.pendingBranch&&b(P.pendingBranch,n,T,H)}};return P}function Zv(e,t,n,o,i,s,r,a,l){const u=t.suspense=Bl(t,o,n,e.parentNode,document.createElement("div"),null,i,s,r,a,!0),f=l(e,u.pendingBranch=t.ssContent,n,u,s,r);return u.deps===0&&u.resolve(),f}function e1(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=Gf(o?n.default:n),e.ssFallback=o?Gf(n.fallback):ke(Lt)}function Gf(e){let t;if(Le(e)){const n=vi&&e._c;n&&(e._d=!1,B()),e=e(),n&&(e._d=!0,t=nn,wp())}if(Se(e)){const n=Rl(e);n||le(" slots expect a single root node."),e=n}return e=sn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function t1(e,t){t&&t.pendingBranch?Se(e)?t.effects.push(...e):t.effects.push(e):Pl(e)}function _i(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,i=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=i,Nl(o,i))}function us(e,t){if(!rt)le("provide() can only be used inside setup().");else{let n=rt.provides;const o=rt.parent&&rt.parent.provides;o===n&&(n=rt.provides=Object.create(o)),n[e]=t}}function ds(e,t,n=!1){const o=rt||mt;if(o){const i=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Le(t)?t.call(o.proxy):t;le(`injection "${String(e)}" not found.`)}else le("inject() can only be used inside setup() or functional components.")}const Dr={};function pt(e,t,n){return Le(t)||le("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Yf(e,t,n)}function Yf(e,t,{immediate:n,deep:o,flush:i,onTrack:s,onTrigger:r}=Xe){t||(n!==void 0&&le('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&le('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const a=H=>{le("Invalid watch source: ",H,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},l=R_()===(rt==null?void 0:rt.scope)?rt:null;let u,f=!1,h=!1;if(ft(e)?(u=()=>e.value,f=Ar(e)):Lo(e)?(u=()=>e,o=!0):Se(e)?(h=!0,f=e.some(H=>Lo(H)||Ar(H)),u=()=>e.map(H=>{if(ft(H))return H.value;if(Lo(H))return No(H);if(Le(H))return Mn(H,l,2);a(H)})):Le(e)?t?u=()=>Mn(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return g&&g(),cn(e,l,3,[b])}:(u=qt,a(e)),t&&o){const H=u;u=()=>No(H())}let g,b=H=>{g=P.onStop=()=>{Mn(H,l,4)}},_;if(ys)if(b=qt,t?n&&cn(t,l,3,[u(),h?[]:void 0,b]):u(),i==="sync"){const H=o0();_=H.__watcherHandles||(H.__watcherHandles=[])}else return qt;let E=h?new Array(e.length).fill(Dr):Dr;const I=()=>{if(!!P.active)if(t){const H=P.run();(o||f||(h?H.some((ie,U)=>Xi(ie,E[U])):Xi(H,E)))&&(g&&g(),cn(t,l,3,[H,E===Dr?void 0:h&&E[0]===Dr?[]:E,b]),E=H)}else P.run()};I.allowRecurse=!!t;let M;i==="sync"?M=I:i==="post"?M=()=>Vt(I,l&&l.suspense):(I.pre=!0,l&&(I.id=l.uid),M=()=>Ir(I));const P=new xl(u,M);P.onTrack=s,P.onTrigger=r,t?n?I():E=P.run():i==="post"?Vt(P.run.bind(P),l&&l.suspense):P.run();const T=()=>{P.stop(),l&&l.scope&&ml(l.scope.effects,P)};return _&&_.push(T),T}function n1(e,t,n){const o=this.proxy,i=nt(e)?e.includes(".")?Jf(o,e):()=>o[e]:e.bind(o,o);let s;Le(t)?s=t:(s=t.handler,n=t);const r=rt;co(this);const a=Yf(i,s.bind(o),n);return r?co(r):uo(),a}function Jf(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i{No(n,t)});else if(nf(e))for(const n in e)No(e[n],t);return e}function Ne(e){return Le(e)?{setup:e,name:e.name}:e}const fs=e=>!!e.type.__asyncLoader,Fl=e=>e.type.__isKeepAlive;function o1(e,t){Qf(e,"a",t)}function i1(e,t){Qf(e,"da",t)}function Qf(e,t,n=rt){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Rr(t,o,n),n){let i=n.parent;for(;i&&i.parent;)Fl(i.parent.vnode)&&s1(o,t,n,i),i=i.parent}}function s1(e,t,n,o){const i=Rr(t,e,o,!0);Bo(()=>{ml(o[t],i)},n)}function Rr(e,t,n=rt,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;To(),co(n);const a=cn(t,n,e,r);return uo(),Oo(),a});return o?i.unshift(s):i.push(s),s}else{const i=Po(kl[e].replace(/ hook$/,""));le(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Dn=e=>(t,n=rt)=>(!ys||e==="sp")&&Rr(e,(...o)=>t(...o),n),It=Dn("bm"),Tt=Dn("m"),r1=Dn("bu"),a1=Dn("u"),Xf=Dn("bum"),Bo=Dn("um"),l1=Dn("sp"),c1=Dn("rtg"),u1=Dn("rtc");function d1(e,t=rt){Rr("ec",e,t)}function Zf(e){I_(e)&&le("Do not use built-in directive ids as custom directive id: "+e)}function G(e,t){const n=mt;if(n===null)return le("withDirectives can only be used inside render functions."),e;const o=Hr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let s=0;st(r,a,void 0,s&&s[a]));else{const r=Object.keys(e);i=new Array(r.length);for(let a=0,l=r.length;a1&&(le("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),s=()=>[]),s&&s._c&&(s._d=!1),B();const r=s&&tp(s(n)),a=on(Ue,{key:n.key||r&&r.key||`_${t}`},r||(o?o():[]),r&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function tp(e){return e.some(t=>xi(t)?!(t.type===Lt||t.type===Ue&&!tp(t.children)):!0)?e:null}const jl=e=>e?kp(e)?Hr(e)||e.proxy:jl(e.parent):null,jo=dt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>gi(e.props),$attrs:e=>gi(e.attrs),$slots:e=>gi(e.slots),$refs:e=>gi(e.refs),$parent:e=>jl(e.parent),$root:e=>jl(e.root),$emit:e=>e.emit,$options:e=>Vl(e),$forceUpdate:e=>e.f||(e.f=()=>Ir(e.update)),$nextTick:e=>e.n||(e.n=wi.bind(e.proxy)),$watch:e=>n1.bind(e)}),Hl=e=>e==="_"||e==="$",ql=(e,t)=>e!==Xe&&!e.__isScriptSetup&&je(e,t),np={get({_:e},t){const{ctx:n,setupState:o,data:i,props:s,accessCache:r,type:a,appContext:l}=e;if(t==="__isVue")return!0;let u;if(t[0]!=="$"){const b=r[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(ql(o,t))return r[t]=1,o[t];if(i!==Xe&&je(i,t))return r[t]=2,i[t];if((u=e.propsOptions[0])&&je(u,t))return r[t]=3,s[t];if(n!==Xe&&je(n,t))return r[t]=4,n[t];zl&&(r[t]=0)}}const f=jo[t];let h,g;if(f)return t==="$attrs"&&(zt(e,"get",t),Mr()),f(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Xe&&je(n,t))return r[t]=4,n[t];if(g=l.config.globalProperties,je(g,t))return g[t];mt&&(!nt(t)||t.indexOf("__v")!==0)&&(i!==Xe&&Hl(t[0])&&je(i,t)?le(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===mt&&le(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:i,ctx:s}=e;return ql(i,t)?(i[t]=n,!0):i.__isScriptSetup&&je(i,t)?(le(`Cannot mutate