Greasy Fork

Greasy Fork is available in English.

115不大助手 (full)

Make 115 taerg again!

目前为 2023-08-30 提交的版本。查看 最新版本

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

(o=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.innerText=o,document.head.appendChild(e)})(`@charset "UTF-8";.pure-button{display:inline-block;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#000c;border:none transparent;background-color:#e6e6e6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{margin:0;border-radius:0;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td{background-color:#f2f2f2}.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}/*!
Pure v3.0.0
Copyright 2013 Yahoo!
Licensed under the BSD License.
https://github.com/pure-css/pure/blob/master/LICENSE
*/.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input[type=color]:focus,.pure-form input[type=date]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=email]:focus,.pure-form input[type=month]:focus,.pure-form input[type=number]:focus,.pure-form input[type=password]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=text]:focus,.pure-form input[type=time]:focus,.pure-form input[type=url]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129fea}.pure-form input:not([type]):focus{outline:0;border-color:#129fea}.pure-form input[type=checkbox]:focus,.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus{outline:thin solid #129FEA;outline:1px auto #129FEA}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input[type=color][disabled],.pure-form input[type=date][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=email][disabled],.pure-form input[type=month][disabled],.pure-form input[type=number][disabled],.pure-form input[type=password][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=text][disabled],.pure-form input[type=time][disabled],.pure-form input[type=url][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input:not([type])[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input[type=color],.pure-form-stacked input[type=date],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=email],.pure-form-stacked input[type=file],.pure-form-stacked input[type=month],.pure-form-stacked input[type=number],.pure-form-stacked input[type=password],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=text],.pure-form-stacked input[type=time],.pure-form-stacked input[type=url],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-stacked input:not([type]){display:block;margin:.25em 0}.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width :480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=color],.pure-group input[type=date],.pure-group input[type=datetime-local],.pure-group input[type=datetime],.pure-group input[type=email],.pure-group input[type=month],.pure-group input[type=number],.pure-group input[type=password],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=text],.pure-group input[type=time],.pure-group input[type=url],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}.v-popper--theme-tooltip .v-popper__inner{background:rgba(0,0,0,.8);color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.text-center{text-align:center}.text-bold{font-weight:700}.text-cross{text-decoration:line-through}.text-primary{color:#1890ff}.text-success{color:#13ce66}.text-warning{color:#ffba00}.text-danger{color:#ff4949}.text-info{color:#909399}.ce-tips{background:#eee;border-radius:4px;padding:4px;font-size:12px;color:#595959;margin-bottom:10px}.ce-config input[type=checkbox]{width:18px;height:18px;cursor:pointer}.tabs-component-tabs{border:solid 1px #ddd;border-radius:6px;margin-bottom:5px}@media (min-width: 700px){.tabs-component-tabs{border:0;align-items:stretch;display:flex;justify-content:flex-start;margin-bottom:-1px}}.tabs-component-tab{color:#999;font-size:14px;font-weight:600;margin-right:0;list-style:none}.tabs-component-tab:not(:last-child){border-bottom:dotted 1px #ddd}.tabs-component-tab:hover{color:#666}.tabs-component-tab.is-active{color:#000}.tabs-component-tab.is-disabled *{color:#cdcdcd;cursor:not-allowed!important}@media (min-width: 700px){.tabs-component-tab{background-color:#fff;border:solid 1px #ddd;border-radius:3px 3px 0 0;margin-right:.5em;transform:translateY(2px);transition:transform .3s ease}.tabs-component-tab.is-active{border-bottom:solid 1px #fff;z-index:2;transform:translateY(0)}}.tabs-component-tab-a{align-items:center;color:inherit;display:flex;padding:.75em 1em;text-decoration:none}.tabs-component-panels{padding:1em 0}@media (min-width: 700px){.tabs-component-panels{background-color:#fff;border:solid 1px #ddd;border-radius:0 6px 6px;box-shadow:0 0 10px #0000000d;padding:1em 2em}}.tabs-component-btn{cursor:pointer;background:#e1ecf4;border-radius:3px;border:1px solid #7aa7c7;padding:4px 8px;color:#39739d}.tabs-component-btn:hover{background-color:#b3d3ea;color:#2c5777}.tabs-component-btn:active{background-color:#a0c7e4;box-shadow:none;color:#2c5777}div[class^=fp-].hidden-watermark{display:none!important}.ce-custom-url-help{position:fixed;top:0;left:0;z-index:10000;width:430px;height:100%;background:#fff;font-size:12px}.ce-custom-url-help .ce-custom-url-help-body{height:80%;overflow-y:auto;padding:20px 20px 300px}.ce-custom-url-help h1 a{float:right;color:#1e87f0;font-size:14px}.ce-custom-url-help h1 a:hover{color:#1e87f0;text-decoration:underline}.ce-custom-url-help table{width:100%;margin-bottom:20px}.ce-custom-url-help .ce-variable{cursor:pointer;color:#1e87f0;font-size:14px}.ce-custom-url-help .ce-variable:hover{color:#093d71}.ce-menu:not(.sub-item){background:#fffcea}.ce-menu img.ce-menu-icon{float:left;width:12px;height:12px;margin-right:4px}.ce-menu.list-item-hover-menu i.ce-menu-icon.icon-operate{scale:.75}.ce-menu.list-item-hover-menu.ce-menu-parent{position:relative;float:left;cursor:pointer}.ce-menu.list-item-hover-menu.ce-menu-parent:after{content:"";position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background:rgba(39,119,248,.8);pointer-events:none}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-trigger{padding:0 12px;color:#2777f8}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-trigger:before{content:"\\2228";margin-right:4px;font-size:12px}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;left:0;padding:4px;border-radius:4px;display:none;text-align:center;width:160px}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub{margin:2px 0;background:#eee;color:#2877f8;width:100%;border-radius:4px;padding:6px 12px;line-height:12px;box-sizing:border-box}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub:hover{background-color:#f3e882}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub:after{display:none}.ce-menu.selection-menu.ce-menu-parent{position:relative;float:left;cursor:pointer}.ce-menu.selection-menu.ce-menu-parent:after{content:"";position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background:rgba(39,119,248,.8);pointer-events:none}.ce-menu.selection-menu.ce-menu-parent .ce-menu-trigger{color:#2777f8}.ce-menu.selection-menu.ce-menu-parent .ce-menu-trigger:before{content:"\\2228";margin-right:4px;font-size:12px}.ce-menu.selection-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#fff}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:30px;left:0;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub{color:#2877f8;width:60px;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding-left:4px;padding-right:4px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub span{font-weight:400;float:inherit}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub:hover{background-color:#f3e882}.ce-menu.dir-context-menu.ce-menu-parent{position:relative;cursor:pointer;padding:6px 0}.ce-menu.dir-context-menu.ce-menu-parent:after{content:">";position:absolute;opacity:.5;right:10px;pointer-events:none}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-trigger{margin-left:43px;color:#2777f8}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened{background:#f3e882}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#1c0ccf}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened:after{opacity:0}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top: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.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}div#js_operate_box.only-icon li[menu] span{display:none}.list-contents{padding-bottom:300px}.ce-offline-config .pure-form-message{margin-left:56px}.cloud115-eh-offline-exporter{position:absolute;left:100px;top:62px;background:#f4f2ff;padding:6px 10px;border-radius:4px}.cloud115-eh-offline-exporter button{margin-right:6px}.offline-exporter-config-form{width:550px;padding:10px}.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:77px}.cloud115-page-offline #js-warp li .ce-checkbox{width:30px}.cloud115-page-offline #js-warp li .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-eh-cleaner-trigger .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f}.v-popper.v-popper--theme-dropdown{display:inline-block}.group-manager{width:750px}.group-manager a{font-size:12px;padding:0 4px;margin-right:8px}.group-manager .group-label{color:#fff;font-size:12px;margin-right:10px;border-radius:4px;padding:2px 8px;background:#66acf9}.group-manager .label-readonly{background:#c93c3c;color:#fff;padding:0 4px;border-radius:4px;vertical-align:middle;margin-right:6px}.append-form{background:#fff;width:350px;padding:10px;border-radius:4px}.append-form input,.append-form textarea{width:100%}.group-form{background:#fff;width:540px;padding:10px;border-radius:4px}.group-form input,.group-form textarea{width:100%}.group-form .filter-label{cursor:pointer;padding:0 4px;text-decoration:underline}.group-form input#groupLabel{display:inline-block}.groups-list{background:#fff;width:565px;padding:10px;border-radius:4px;box-shadow:0 0 4px #d8d8d8}.groups-list table th,.groups-list table td{padding:4px 6px}.groups-list ul li{border-bottom:1px solid #eee;padding:4px}.groups-list ul li:nth-last-child(1){border-bottom:none}.groups-list span{display:inline-block}.groups-list .p-index{width:30px}.groups-list .p-label{width:120px}.groups-list .p-actions button{margin-right:8px}.group-confirm-delete{padding:20px}#cloud115Cleaner{margin-left:10px}.v-popper__arrow-container{display:none}.cloud115-eh-cleaner .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f;display:none}.cloud115-eh-cleaner .actions-bar{padding-bottom:10px}.cloud115-eh-cleaner .actions-bar .title{font-size:18px;font-weight:700;color:#15110c}.cloud115-eh-cleaner .actions-bar .close{margin-left:20px;margin-right:10px;color:#f40}.cloud115-eh-cleaner .actions-bar i.tp-folder{width:18px;height:18px;vertical-align:sub}.cloud115-eh-cleaner-help{position:fixed;top:60px;right:0;bottom:0;width:470px;z-index:1051;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.cloud115-eh-cleaner-help ul{list-style:decimal}.cloud115-eh-cleaner-drawer{position:fixed;top:60px;right:0;bottom:0;left:260px;background:#fff;z-index:1050;padding:10px 20px 200px;overflow-y:auto;box-shadow:-2px 2px 6px #bbb}.cloud115-eh-cleaner-drawer.loading{cursor:wait}.cloud115-eh-cleaner-drawer.loading button,.cloud115-eh-cleaner-drawer.loading input{cursor:no-drop;pointer-events:none}.cloud115-eh-cleaner-drawer .config-toggle{display:inline-block;background:#eee;border-radius:4px;opacity:.2;padding:2px 4px;cursor:pointer}.cloud115-eh-cleaner-drawer .config-toggle.hover{opacity:.7}.cloud115-eh-cleaner-drawer .by-box .by-header{padding-bottom:10px}.cloud115-eh-cleaner-drawer .by-box .by-header .title{font-size:16px;margin-right:8px;color:#0078e6;font-weight:400}.cloud115-eh-cleaner-drawer .by-box .by-header .filter-size{width:100px;font-size:14px;font-weight:700;color:#0078e6;text-indent:6px}.cloud115-eh-cleaner-drawer .by-box .pure-button-group{display:inline-block}.cloud115-eh-cleaner-drawer .by-box .pure-button-group .pure-button{vertical-align:inherit}.cloud115-eh-cleaner-drawer .by-box .pattern-groups{width:750px;text-align:right}.cloud115-eh-cleaner-drawer .by-box .pattern-groups a{font-size:12px;padding:0 4px;margin-right:8px}.cloud115-eh-cleaner-drawer .by-box table tr.active{background:#f7ffc3}.cloud115-eh-cleaner-drawer .by-box table tr.is-dir .pattern{color:#f40}.cloud115-eh-cleaner-drawer .by-box table tr th,.cloud115-eh-cleaner-drawer .by-box table tr td{padding:.5em;font-size:12px}.cloud115-eh-cleaner-drawer .by-box table td a{color:#2877f8}.cloud115-eh-cleaner-drawer .by-box table td .tp-folder{width:16px;height:16px;vertical-align:sub}.button-xsmall,.button-mini{font-size:12px;padding:.2em .5em}.button-small{font-size:85%}.button-large{font-size:110%}.button-xlarge{font-size:125%}.button-success,.button-error,.button-warning,.button-secondary{color:#fff;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,.2)}.button-success{background:rgb(28,184,65)}.button-error{background:rgb(202,60,60)}.button-warning{background:rgb(223,117,20)}.button-secondary{background:rgb(66,184,221)}.btn-test{padding:50px 80px!important;font-size:18px;background:#f40}.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-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-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-custom-url{border-radius:4px;border:1px solid #eee;margin-bottom:20px;padding:0 10px;background:#fff}.ce-custom-url label{cursor:pointer}.ce-custom-url input:not([type]){font-size:12px}.ce-custom-url textarea{font-size:12px;resize:vertical}.ce-custom-url input[type=checkbox]{width:18px;height:18px;cursor:pointer}.ce-custom-url .ce-custom-url-index{font-size:14px;font-weight:700;margin-right:20px}.ce-custom-url legend .button-error{float:right}.ce-custom-url fieldset>div{margin-bottom:1px;padding:4px}.ce-custom-url fieldset>div:hover{background:#fefcea}.ce-custom-urls,.ce-play-urls{padding-bottom:100px}.ce-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}
`);

var PA=Object.defineProperty;var TA=(Jo,Un,Xo)=>Un in Jo?PA(Jo,Un,{enumerable:!0,configurable:!0,writable:!0,value:Xo}):Jo[Un]=Xo;var Se=(Jo,Un,Xo)=>(TA(Jo,typeof Un!="symbol"?Un+"":Un,Xo),Xo);(function(){"use strict";const Jo="",Un="",Xo="",LA="",DA="",MA="",jA="";var yo=window,Ca=(()=>yo.GM_setValue)(),Fm=(()=>yo.GM_deleteValue)(),Um=(()=>yo.GM_openInTab)(),Jc=(()=>yo.GM_registerMenuCommand)(),Xc=(()=>yo.GM_xmlhttpRequest)(),Pi=(()=>yo.GM_setClipboard)(),Ti=(()=>yo.GM_getValue)(),Hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qc={exports:{}};/*!
* sweetalert2 v11.7.2
* Released under the MIT License.
*/(function(e,t){(function(n,o){e.exports=o()})(Hn,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const o="swal2-",r=l=>{const c={};for(const m in l)c[l[m]]=o+l[m];return c},i=r(["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"]),s=r(["success","warning","info","question","error"]),a="SweetAlert2:",f=l=>{const c=[];for(let m=0;m<l.length;m++)c.indexOf(l[m])===-1&&c.push(l[m]);return c},u=l=>l.charAt(0).toUpperCase()+l.slice(1),d=l=>{console.warn(`${a} ${typeof l=="object"?l.join(" "):l}`)},p=l=>{console.error(`${a} ${l}`)},g=[],x=l=>{g.includes(l)||(g.push(l),d(l))},E=(l,c)=>{x(`"${l}" is deprecated and will be removed in the next major release. Please use "${c}" instead.`)},v=l=>typeof l=="function"?l():l,S=l=>l&&typeof l.toPromise=="function",C=l=>S(l)?l.toPromise():Promise.resolve(l),I=l=>l&&Promise.resolve(l)===l,D=()=>document.body.querySelector(`.${i.container}`),T=l=>{const c=D();return c?c.querySelector(l):null},L=l=>T(`.${l}`),M=()=>L(i.popup),P=()=>L(i.icon),z=()=>L(i["icon-content"]),J=()=>L(i.title),le=()=>L(i["html-container"]),re=()=>L(i.image),ee=()=>L(i["progress-steps"]),ce=()=>L(i["validation-message"]),se=()=>T(`.${i.actions} .${i.confirm}`),xe=()=>T(`.${i.actions} .${i.cancel}`),R=()=>T(`.${i.actions} .${i.deny}`),Y=()=>L(i["input-label"]),U=()=>T(`.${i.loader}`),ue=()=>L(i.actions),we=()=>L(i.footer),Ee=()=>L(i["timer-progress-bar"]),Qe=()=>L(i.close),et=`
  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
`,Mt=()=>{const l=Array.from(M().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((m,_)=>{const F=parseInt(m.getAttribute("tabindex")),ye=parseInt(_.getAttribute("tabindex"));return F>ye?1:F<ye?-1:0}),c=Array.from(M().querySelectorAll(et)).filter(m=>m.getAttribute("tabindex")!=="-1");return f(l.concat(c)).filter(m=>H(m))},jt=()=>ot(document.body,i.shown)&&!ot(document.body,i["toast-shown"])&&!ot(document.body,i["no-backdrop"]),Fn=()=>M()&&ot(M(),i.toast),Ct=()=>M().hasAttribute("data-loading"),St={previousBodyPadding:null},ht=(l,c)=>{if(l.textContent="",c){const _=new DOMParser().parseFromString(c,"text/html");Array.from(_.querySelector("head").childNodes).forEach(F=>{l.appendChild(F)}),Array.from(_.querySelector("body").childNodes).forEach(F=>{F instanceof HTMLVideoElement||F instanceof HTMLAudioElement?l.appendChild(F.cloneNode(!0)):l.appendChild(F)})}},ot=(l,c)=>{if(!c)return!1;const m=c.split(/\s+/);for(let _=0;_<m.length;_++)if(!l.classList.contains(m[_]))return!1;return!0},bo=(l,c)=>{Array.from(l.classList).forEach(m=>{!Object.values(i).includes(m)&&!Object.values(s).includes(m)&&!Object.values(c.showClass).includes(m)&&l.classList.remove(m)})},ft=(l,c,m)=>{if(bo(l,c),c.customClass&&c.customClass[m]){if(typeof c.customClass[m]!="string"&&!c.customClass[m].forEach){d(`Invalid type of customClass.${m}! Expected string or iterable object, got "${typeof c.customClass[m]}"`);return}V(l,c.customClass[m])}},w=(l,c)=>{if(!c)return null;switch(c){case"select":case"textarea":case"file":return l.querySelector(`.${i.popup} > .${i[c]}`);case"checkbox":return l.querySelector(`.${i.popup} > .${i.checkbox} input`);case"radio":return l.querySelector(`.${i.popup} > .${i.radio} input:checked`)||l.querySelector(`.${i.popup} > .${i.radio} input:first-child`);case"range":return l.querySelector(`.${i.popup} > .${i.range} input`);default:return l.querySelector(`.${i.popup} > .${i.input}`)}},A=l=>{if(l.focus(),l.type!=="file"){const c=l.value;l.value="",l.value=c}},B=(l,c,m)=>{!l||!c||(typeof c=="string"&&(c=c.split(/\s+/).filter(Boolean)),c.forEach(_=>{Array.isArray(l)?l.forEach(F=>{m?F.classList.add(_):F.classList.remove(_)}):m?l.classList.add(_):l.classList.remove(_)}))},V=(l,c)=>{B(l,c,!0)},W=(l,c)=>{B(l,c,!1)},ne=(l,c)=>{const m=Array.from(l.children);for(let _=0;_<m.length;_++){const F=m[_];if(F instanceof HTMLElement&&ot(F,c))return F}},ie=(l,c,m)=>{m===`${parseInt(m)}`&&(m=parseInt(m)),m||parseInt(m)===0?l.style[c]=typeof m=="number"?`${m}px`:m:l.style.removeProperty(c)},Z=function(l){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";l.style.display=c},Q=l=>{l.style.display="none"},X=(l,c,m,_)=>{const F=l.querySelector(c);F&&(F.style[m]=_)},fe=function(l,c){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";c?Z(l,m):Q(l)},H=l=>!!(l&&(l.offsetWidth||l.offsetHeight||l.getClientRects().length)),de=()=>!H(se())&&!H(R())&&!H(xe()),h=l=>l.scrollHeight>l.clientHeight,y=l=>{const c=window.getComputedStyle(l),m=parseFloat(c.getPropertyValue("animation-duration")||"0"),_=parseFloat(c.getPropertyValue("transition-duration")||"0");return m>0||_>0},k=function(l){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const m=Ee();H(m)&&(c&&(m.style.transition="none",m.style.width="100%"),setTimeout(()=>{m.style.transition=`width ${l/1e3}s linear`,m.style.width="0%"},10))},O=()=>{const l=Ee(),c=parseInt(window.getComputedStyle(l).width);l.style.removeProperty("transition"),l.style.width="100%";const m=parseInt(window.getComputedStyle(l).width),_=c/m*100;l.style.width=`${_}%`},j=100,N={},q=()=>{N.previousActiveElement instanceof HTMLElement?(N.previousActiveElement.focus(),N.previousActiveElement=null):document.body&&document.body.focus()},K=l=>new Promise(c=>{if(!l)return c();const m=window.scrollX,_=window.scrollY;N.restoreFocusTimeout=setTimeout(()=>{q(),c()},j),window.scrollTo(m,_)}),te=()=>typeof window>"u"||typeof document>"u",ke=`
 <div aria-labelledby="${i.title}" aria-describedby="${i["html-container"]}" class="${i.popup}" tabindex="-1">
   <button type="button" class="${i.close}"></button>
   <ul class="${i["progress-steps"]}"></ul>
   <div class="${i.icon}"></div>
   <img class="${i.image}" />
   <h2 class="${i.title}" id="${i.title}"></h2>
   <div class="${i["html-container"]}" id="${i["html-container"]}"></div>
   <input class="${i.input}" />
   <input type="file" class="${i.file}" />
   <div class="${i.range}">
     <input type="range" />
     <output></output>
   </div>
   <select class="${i.select}"></select>
   <div class="${i.radio}"></div>
   <label for="${i.checkbox}" class="${i.checkbox}">
     <input type="checkbox" />
     <span class="${i.label}"></span>
   </label>
   <textarea class="${i.textarea}"></textarea>
   <div class="${i["validation-message"]}" id="${i["validation-message"]}"></div>
   <div class="${i.actions}">
     <div class="${i.loader}"></div>
     <button type="button" class="${i.confirm}"></button>
     <button type="button" class="${i.deny}"></button>
     <button type="button" class="${i.cancel}"></button>
   </div>
   <div class="${i.footer}"></div>
   <div class="${i["timer-progress-bar-container"]}">
     <div class="${i["timer-progress-bar"]}"></div>
   </div>
 </div>
`.replace(/(^|\n)\s*/g,""),ve=()=>{const l=D();return l?(l.remove(),W([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},me=()=>{N.currentInstance.resetValidationMessage()},je=()=>{const l=M(),c=ne(l,i.input),m=ne(l,i.file),_=l.querySelector(`.${i.range} input`),F=l.querySelector(`.${i.range} output`),ye=ne(l,i.select),Ge=l.querySelector(`.${i.checkbox} input`),Rt=ne(l,i.textarea);c.oninput=me,m.onchange=me,ye.onchange=me,Ge.onchange=me,Rt.oninput=me,_.oninput=()=>{me(),F.value=_.value},_.onchange=()=>{me(),F.value=_.value}},Ot=l=>typeof l=="string"?document.querySelector(l):l,yt=l=>{const c=M();c.setAttribute("role",l.toast?"alert":"dialog"),c.setAttribute("aria-live",l.toast?"polite":"assertive"),l.toast||c.setAttribute("aria-modal","true")},Ci=l=>{window.getComputedStyle(l).direction==="rtl"&&V(D(),i.rtl)},Si=l=>{const c=ve();if(te()){p("SweetAlert2 requires document to initialize");return}const m=document.createElement("div");m.className=i.container,c&&V(m,i["no-transition"]),ht(m,ke);const _=Ot(l.target);_.appendChild(m),yt(l),Ci(_),je()},Bc=(l,c)=>{l instanceof HTMLElement?c.appendChild(l):typeof l=="object"?cO(l,c):l&&ht(c,l)},cO=(l,c)=>{l.jquery?uO(c,l):ht(c,l.toString())},uO=(l,c)=>{if(l.textContent="",0 in c)for(let m=0;m in c;m++)l.appendChild(c[m].cloneNode(!0));else l.appendChild(c.cloneNode(!0))},Oi=(()=>{if(te())return!1;const l=document.createElement("div"),c={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const m in c)if(Object.prototype.hasOwnProperty.call(c,m)&&typeof l.style[m]<"u")return c[m];return!1})(),fO=()=>{const l=document.createElement("div");l.className=i["scrollbar-measure"],document.body.appendChild(l);const c=l.getBoundingClientRect().width-l.clientWidth;return document.body.removeChild(l),c},dO=(l,c)=>{const m=ue(),_=U();!c.showConfirmButton&&!c.showDenyButton&&!c.showCancelButton?Q(m):Z(m),ft(m,c,"actions"),pO(m,_,c),ht(_,c.loaderHtml),ft(_,c,"loader")};function pO(l,c,m){const _=se(),F=R(),ye=xe();Fc(_,"confirm",m),Fc(F,"deny",m),Fc(ye,"cancel",m),hO(_,F,ye,m),m.reverseButtons&&(m.toast?(l.insertBefore(ye,_),l.insertBefore(F,_)):(l.insertBefore(ye,c),l.insertBefore(F,c),l.insertBefore(_,c)))}function hO(l,c,m,_){if(!_.buttonsStyling){W([l,c,m],i.styled);return}V([l,c,m],i.styled),_.confirmButtonColor&&(l.style.backgroundColor=_.confirmButtonColor,V(l,i["default-outline"])),_.denyButtonColor&&(c.style.backgroundColor=_.denyButtonColor,V(c,i["default-outline"])),_.cancelButtonColor&&(m.style.backgroundColor=_.cancelButtonColor,V(m,i["default-outline"]))}function Fc(l,c,m){fe(l,m[`show${u(c)}Button`],"inline-block"),ht(l,m[`${c}ButtonText`]),l.setAttribute("aria-label",m[`${c}ButtonAriaLabel`]),l.className=i[c],ft(l,m,`${c}Button`),V(l,m[`${c}ButtonClass`])}const mO=(l,c)=>{const m=Qe();ht(m,c.closeButtonHtml),ft(m,c,"closeButton"),fe(m,c.showCloseButton),m.setAttribute("aria-label",c.closeButtonAriaLabel)},gO=(l,c)=>{const m=D();!m||(bO(m,c.backdrop),yO(m,c.position),wO(m,c.grow),ft(m,c,"container"))};function bO(l,c){typeof c=="string"?l.style.background=c:c||V([document.documentElement,document.body],i["no-backdrop"])}function yO(l,c){c in i?V(l,i[c]):(d('The "position" parameter is not valid, defaulting to "center"'),V(l,i.center))}function wO(l,c){if(c&&typeof c=="string"){const m=`grow-${c}`;m in i&&V(l,i[m])}}const vO=["input","file","range","select","radio","checkbox","textarea"],_O=(l,c)=>{const m=M(),_=n.innerParams.get(l),F=!_||c.input!==_.input;vO.forEach(ye=>{const Ge=ne(m,i[ye]);xO(ye,c.inputAttributes),Ge.className=i[ye],F&&Q(Ge)}),c.input&&(F&&kO(c),EO(c))},kO=l=>{if(!Tt[l.input]){p(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${l.input}"`);return}const c=fm(l.input),m=Tt[l.input](c,l);Z(c),l.inputAutoFocus&&setTimeout(()=>{A(m)})},$O=l=>{for(let c=0;c<l.attributes.length;c++){const m=l.attributes[c].name;["type","value","style"].includes(m)||l.removeAttribute(m)}},xO=(l,c)=>{const m=w(M(),l);if(!!m){$O(m);for(const _ in c)m.setAttribute(_,c[_])}},EO=l=>{const c=fm(l.input);typeof l.customClass=="object"&&V(c,l.customClass.input)},Uc=(l,c)=>{(!l.placeholder||c.inputPlaceholder)&&(l.placeholder=c.inputPlaceholder)},Ni=(l,c,m)=>{if(m.inputLabel){l.id=i.input;const _=document.createElement("label"),F=i["input-label"];_.setAttribute("for",l.id),_.className=F,typeof m.customClass=="object"&&V(_,m.customClass.inputLabel),_.innerText=m.inputLabel,c.insertAdjacentElement("beforebegin",_)}},fm=l=>ne(M(),i[l]||i.input),ka=(l,c)=>{["string","number"].includes(typeof c)?l.value=`${c}`:I(c)||d(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof c}"`)},Tt={};Tt.text=Tt.email=Tt.password=Tt.number=Tt.tel=Tt.url=(l,c)=>(ka(l,c.inputValue),Ni(l,l,c),Uc(l,c),l.type=c.input,l),Tt.file=(l,c)=>(Ni(l,l,c),Uc(l,c),l),Tt.range=(l,c)=>{const m=l.querySelector("input"),_=l.querySelector("output");return ka(m,c.inputValue),m.type=c.input,ka(_,c.inputValue),Ni(m,l,c),l},Tt.select=(l,c)=>{if(l.textContent="",c.inputPlaceholder){const m=document.createElement("option");ht(m,c.inputPlaceholder),m.value="",m.disabled=!0,m.selected=!0,l.appendChild(m)}return Ni(l,l,c),l},Tt.radio=l=>(l.textContent="",l),Tt.checkbox=(l,c)=>{const m=w(M(),"checkbox");m.value="1",m.id=i.checkbox,m.checked=Boolean(c.inputValue);const _=l.querySelector("span");return ht(_,c.inputPlaceholder),m},Tt.textarea=(l,c)=>{ka(l,c.inputValue),Uc(l,c),Ni(l,l,c);const m=_=>parseInt(window.getComputedStyle(_).marginLeft)+parseInt(window.getComputedStyle(_).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const _=parseInt(window.getComputedStyle(M()).width),F=()=>{const ye=l.offsetWidth+m(l);ye>_?M().style.width=`${ye}px`:M().style.width=null};new MutationObserver(F).observe(l,{attributes:!0,attributeFilter:["style"]})}}),l};const CO=(l,c)=>{const m=le();ft(m,c,"htmlContainer"),c.html?(Bc(c.html,m),Z(m,"block")):c.text?(m.textContent=c.text,Z(m,"block")):Q(m),_O(l,c)},SO=(l,c)=>{const m=we();fe(m,c.footer),c.footer&&Bc(c.footer,m),ft(m,c,"footer")},OO=(l,c)=>{const m=n.innerParams.get(l),_=P();if(m&&c.icon===m.icon){pm(_,c),dm(_,c);return}if(!c.icon&&!c.iconHtml){Q(_);return}if(c.icon&&Object.keys(s).indexOf(c.icon)===-1){p(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${c.icon}"`),Q(_);return}Z(_),pm(_,c),dm(_,c),V(_,c.showClass.icon)},dm=(l,c)=>{for(const m in s)c.icon!==m&&W(l,s[m]);V(l,s[c.icon]),PO(l,c),NO(),ft(l,c,"icon")},NO=()=>{const l=M(),c=window.getComputedStyle(l).getPropertyValue("background-color"),m=l.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let _=0;_<m.length;_++)m[_].style.backgroundColor=c},AO=`
  <div class="swal2-success-circular-line-left"></div>
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
  <div class="swal2-success-circular-line-right"></div>
`,IO=`
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`,pm=(l,c)=>{let m=l.innerHTML,_;c.iconHtml?_=hm(c.iconHtml):c.icon==="success"?(_=AO,m=m.replace(/ style=".*?"/g,"")):c.icon==="error"?_=IO:_=hm({question:"?",warning:"!",info:"i"}[c.icon]),m.trim()!==_.trim()&&ht(l,_)},PO=(l,c)=>{if(!!c.iconColor){l.style.color=c.iconColor,l.style.borderColor=c.iconColor;for(const m of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])X(l,m,"backgroundColor",c.iconColor);X(l,".swal2-success-ring","borderColor",c.iconColor)}},hm=l=>`<div class="${i["icon-content"]}">${l}</div>`,TO=(l,c)=>{const m=re();if(!c.imageUrl){Q(m);return}Z(m,""),m.setAttribute("src",c.imageUrl),m.setAttribute("alt",c.imageAlt),ie(m,"width",c.imageWidth),ie(m,"height",c.imageHeight),m.className=i.image,ft(m,c,"image")},LO=(l,c)=>{const m=D(),_=M();c.toast?(ie(m,"width",c.width),_.style.width="100%",_.insertBefore(U(),P())):ie(_,"width",c.width),ie(_,"padding",c.padding),c.color&&(_.style.color=c.color),c.background&&(_.style.background=c.background),Q(ce()),DO(_,c)},DO=(l,c)=>{l.className=`${i.popup} ${H(l)?c.showClass.popup:""}`,c.toast?(V([document.documentElement,document.body],i["toast-shown"]),V(l,i.toast)):V(l,i.modal),ft(l,c,"popup"),typeof c.customClass=="string"&&V(l,c.customClass),c.icon&&V(l,i[`icon-${c.icon}`])},MO=(l,c)=>{const m=ee();if(!c.progressSteps||c.progressSteps.length===0){Q(m);return}Z(m),m.textContent="",c.currentProgressStep>=c.progressSteps.length&&d("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),c.progressSteps.forEach((_,F)=>{const ye=jO(_);if(m.appendChild(ye),F===c.currentProgressStep&&V(ye,i["active-progress-step"]),F!==c.progressSteps.length-1){const Ge=RO(c);m.appendChild(Ge)}})},jO=l=>{const c=document.createElement("li");return V(c,i["progress-step"]),ht(c,l),c},RO=l=>{const c=document.createElement("li");return V(c,i["progress-step-line"]),l.progressStepsDistance&&ie(c,"width",l.progressStepsDistance),c},VO=(l,c)=>{const m=J();fe(m,c.title||c.titleText,"block"),c.title&&Bc(c.title,m),c.titleText&&(m.innerText=c.titleText),ft(m,c,"title")},mm=(l,c)=>{LO(l,c),gO(l,c),MO(l,c),OO(l,c),TO(l,c),VO(l,c),mO(l,c),CO(l,c),dO(l,c),SO(l,c),typeof c.didRender=="function"&&c.didRender(M())};function gm(){const l=n.innerParams.get(this);if(!l)return;const c=n.domCache.get(this);Q(c.loader),Fn()?l.icon&&Z(P()):BO(c),W([c.popup,c.actions],i.loading),c.popup.removeAttribute("aria-busy"),c.popup.removeAttribute("data-loading"),c.confirmButton.disabled=!1,c.denyButton.disabled=!1,c.cancelButton.disabled=!1}const BO=l=>{const c=l.popup.getElementsByClassName(l.loader.getAttribute("data-button-to-replace"));c.length?Z(c[0],"inline-block"):de()&&Q(l.actions)};function FO(l){const c=n.innerParams.get(l||this),m=n.domCache.get(l||this);return m?w(m.popup,c.input):null}const UO=()=>H(M()),bm=()=>se()&&se().click(),HO=()=>R()&&R().click(),zO=()=>xe()&&xe().click(),Sr=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),ym=l=>{l.keydownTarget&&l.keydownHandlerAdded&&(l.keydownTarget.removeEventListener("keydown",l.keydownHandler,{capture:l.keydownListenerCapture}),l.keydownHandlerAdded=!1)},qO=(l,c,m,_)=>{ym(c),m.toast||(c.keydownHandler=F=>KO(l,F,_),c.keydownTarget=m.keydownListenerCapture?window:M(),c.keydownListenerCapture=m.keydownListenerCapture,c.keydownTarget.addEventListener("keydown",c.keydownHandler,{capture:c.keydownListenerCapture}),c.keydownHandlerAdded=!0)},Hc=(l,c)=>{const m=Mt();if(m.length){l=l+c,l===m.length?l=0:l===-1&&(l=m.length-1),m[l].focus();return}M().focus()},wm=["ArrowRight","ArrowDown"],WO=["ArrowLeft","ArrowUp"],KO=(l,c,m)=>{const _=n.innerParams.get(l);!_||c.isComposing||c.keyCode===229||(_.stopKeydownPropagation&&c.stopPropagation(),c.key==="Enter"?GO(l,c,_):c.key==="Tab"?YO(c):[...wm,...WO].includes(c.key)?ZO(c.key):c.key==="Escape"&&JO(c,_,m))},GO=(l,c,m)=>{if(!!v(m.allowEnterKey)&&c.target&&l.getInput()&&c.target instanceof HTMLElement&&c.target.outerHTML===l.getInput().outerHTML){if(["textarea","file"].includes(m.input))return;bm(),c.preventDefault()}},YO=l=>{const c=l.target,m=Mt();let _=-1;for(let F=0;F<m.length;F++)if(c===m[F]){_=F;break}l.shiftKey?Hc(_,-1):Hc(_,1),l.stopPropagation(),l.preventDefault()},ZO=l=>{const c=se(),m=R(),_=xe(),F=[c,m,_];if(document.activeElement instanceof HTMLElement&&!F.includes(document.activeElement))return;const ye=wm.includes(l)?"nextElementSibling":"previousElementSibling";let Ge=document.activeElement;for(let Rt=0;Rt<ue().children.length;Rt++){if(Ge=Ge[ye],!Ge)return;if(Ge instanceof HTMLButtonElement&&H(Ge))break}Ge instanceof HTMLButtonElement&&Ge.focus()},JO=(l,c,m)=>{v(c.allowEscapeKey)&&(l.preventDefault(),m(Sr.esc))};var Ai={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const XO=()=>{Array.from(document.body.children).forEach(c=>{c===D()||c.contains(D())||(c.hasAttribute("aria-hidden")&&c.setAttribute("data-previous-aria-hidden",c.getAttribute("aria-hidden")),c.setAttribute("aria-hidden","true"))})},vm=()=>{Array.from(document.body.children).forEach(c=>{c.hasAttribute("data-previous-aria-hidden")?(c.setAttribute("aria-hidden",c.getAttribute("data-previous-aria-hidden")),c.removeAttribute("data-previous-aria-hidden")):c.removeAttribute("aria-hidden")})},QO=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!ot(document.body,i.iosfix)){const c=document.body.scrollTop;document.body.style.top=`${c*-1}px`,V(document.body,i.iosfix),tN(),eN()}},eN=()=>{const l=navigator.userAgent,c=!!l.match(/iPad/i)||!!l.match(/iPhone/i),m=!!l.match(/WebKit/i);c&&m&&!l.match(/CriOS/i)&&M().scrollHeight>window.innerHeight-44&&(D().style.paddingBottom=`${44}px`)},tN=()=>{const l=D();let c;l.ontouchstart=m=>{c=nN(m)},l.ontouchmove=m=>{c&&(m.preventDefault(),m.stopPropagation())}},nN=l=>{const c=l.target,m=D();return oN(l)||rN(l)?!1:c===m||!h(m)&&c instanceof HTMLElement&&c.tagName!=="INPUT"&&c.tagName!=="TEXTAREA"&&!(h(le())&&le().contains(c))},oN=l=>l.touches&&l.touches.length&&l.touches[0].touchType==="stylus",rN=l=>l.touches&&l.touches.length>1,iN=()=>{if(ot(document.body,i.iosfix)){const l=parseInt(document.body.style.top,10);W(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=l*-1}},sN=()=>{St.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(St.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${St.previousBodyPadding+fO()}px`)},aN=()=>{St.previousBodyPadding!==null&&(document.body.style.paddingRight=`${St.previousBodyPadding}px`,St.previousBodyPadding=null)};function _m(l,c,m,_){Fn()?km(l,_):(K(m).then(()=>km(l,_)),ym(N)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(c.setAttribute("style","display:none !important"),c.removeAttribute("class"),c.innerHTML=""):c.remove(),jt()&&(aN(),iN(),vm()),lN()}function lN(){W([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function $a(l){l=dN(l);const c=Ai.swalPromiseResolve.get(this),m=uN(this);this.isAwaitingPromise()?l.isDismissed||(Ii(this),c(l)):m&&c(l)}function cN(){return!!n.awaitingPromise.get(this)}const uN=l=>{const c=M();if(!c)return!1;const m=n.innerParams.get(l);if(!m||ot(c,m.hideClass.popup))return!1;W(c,m.showClass.popup),V(c,m.hideClass.popup);const _=D();return W(_,m.showClass.backdrop),V(_,m.hideClass.backdrop),pN(l,c,m),!0};function fN(l){const c=Ai.swalPromiseReject.get(this);Ii(this),c&&c(l)}const Ii=l=>{l.isAwaitingPromise()&&(n.awaitingPromise.delete(l),n.innerParams.get(l)||l._destroy())},dN=l=>typeof l>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},l),pN=(l,c,m)=>{const _=D(),F=Oi&&y(c);typeof m.willClose=="function"&&m.willClose(c),F?hN(l,c,_,m.returnFocus,m.didClose):_m(l,_,m.returnFocus,m.didClose)},hN=(l,c,m,_,F)=>{N.swalCloseEventFinishedCallback=_m.bind(null,l,m,_,F),c.addEventListener(Oi,function(ye){ye.target===c&&(N.swalCloseEventFinishedCallback(),delete N.swalCloseEventFinishedCallback)})},km=(l,c)=>{setTimeout(()=>{typeof c=="function"&&c.bind(l.params)(),l._destroy()})};function $m(l,c,m){const _=n.domCache.get(l);c.forEach(F=>{_[F].disabled=m})}function xm(l,c){if(!!l)if(l.type==="radio"){const _=l.parentNode.parentNode.querySelectorAll("input");for(let F=0;F<_.length;F++)_[F].disabled=c}else l.disabled=c}function mN(){$m(this,["confirmButton","denyButton","cancelButton"],!1)}function gN(){$m(this,["confirmButton","denyButton","cancelButton"],!0)}function bN(){xm(this.getInput(),!1)}function yN(){xm(this.getInput(),!0)}function wN(l){const c=n.domCache.get(this),m=n.innerParams.get(this);ht(c.validationMessage,l),c.validationMessage.className=i["validation-message"],m.customClass&&m.customClass.validationMessage&&V(c.validationMessage,m.customClass.validationMessage),Z(c.validationMessage);const _=this.getInput();_&&(_.setAttribute("aria-invalid",!0),_.setAttribute("aria-describedby",i["validation-message"]),A(_),V(_,i.inputerror))}function vN(){const l=n.domCache.get(this);l.validationMessage&&Q(l.validationMessage);const c=this.getInput();c&&(c.removeAttribute("aria-invalid"),c.removeAttribute("aria-describedby"),W(c,i.inputerror))}const Or={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},_N=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],kN={},$N=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Em=l=>Object.prototype.hasOwnProperty.call(Or,l),Cm=l=>_N.indexOf(l)!==-1,zc=l=>kN[l],xN=l=>{Em(l)||d(`Unknown parameter "${l}"`)},EN=l=>{$N.includes(l)&&d(`The parameter "${l}" is incompatible with toasts`)},CN=l=>{zc(l)&&E(l,zc(l))},SN=l=>{l.backdrop===!1&&l.allowOutsideClick&&d('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const c in l)xN(c),l.toast&&EN(c),CN(c)};function ON(l){const c=M(),m=n.innerParams.get(this);if(!c||ot(c,m.hideClass.popup)){d("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const _=NN(l),F=Object.assign({},m,_);mm(this,F),n.innerParams.set(this,F),Object.defineProperties(this,{params:{value:Object.assign({},this.params,l),writable:!1,enumerable:!0}})}const NN=l=>{const c={};return Object.keys(l).forEach(m=>{Cm(m)?c[m]=l[m]:d(`Invalid parameter to update: ${m}`)}),c};function AN(){const l=n.domCache.get(this),c=n.innerParams.get(this);if(!c){Sm(this);return}l.popup&&N.swalCloseEventFinishedCallback&&(N.swalCloseEventFinishedCallback(),delete N.swalCloseEventFinishedCallback),typeof c.didDestroy=="function"&&c.didDestroy(),IN(this)}const IN=l=>{Sm(l),delete l.params,delete N.keydownHandler,delete N.keydownTarget,delete N.currentInstance},Sm=l=>{l.isAwaitingPromise()?(qc(n,l),n.awaitingPromise.set(l,!0)):(qc(Ai,l),qc(n,l))},qc=(l,c)=>{for(const m in l)l[m].delete(c)};var Om=Object.freeze({__proto__:null,_destroy:AN,close:$a,closeModal:$a,closePopup:$a,closeToast:$a,disableButtons:gN,disableInput:yN,disableLoading:gm,enableButtons:mN,enableInput:bN,getInput:FO,handleAwaitingPromise:Ii,hideLoading:gm,isAwaitingPromise:cN,rejectPromise:fN,resetValidationMessage:vN,showValidationMessage:wN,update:ON});const Nr=l=>{let c=M();c||new Ea,c=M();const m=U();Fn()?Q(P()):PN(c,l),Z(m),c.setAttribute("data-loading","true"),c.setAttribute("aria-busy","true"),c.focus()},PN=(l,c)=>{const m=ue(),_=U();!c&&H(se())&&(c=se()),Z(m),c&&(Q(c),_.setAttribute("data-button-to-replace",c.className)),_.parentNode.insertBefore(_,c),V([l,m],i.loading)},TN=(l,c)=>{c.input==="select"||c.input==="radio"?RN(l,c):["text","email","number","tel","textarea"].includes(c.input)&&(S(c.inputValue)||I(c.inputValue))&&(Nr(se()),VN(l,c))},LN=(l,c)=>{const m=l.getInput();if(!m)return null;switch(c.input){case"checkbox":return DN(m);case"radio":return MN(m);case"file":return jN(m);default:return c.inputAutoTrim?m.value.trim():m.value}},DN=l=>l.checked?1:0,MN=l=>l.checked?l.value:null,jN=l=>l.files.length?l.getAttribute("multiple")!==null?l.files:l.files[0]:null,RN=(l,c)=>{const m=M(),_=F=>{BN[c.input](m,Wc(F),c)};S(c.inputOptions)||I(c.inputOptions)?(Nr(se()),C(c.inputOptions).then(F=>{l.hideLoading(),_(F)})):typeof c.inputOptions=="object"?_(c.inputOptions):p(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof c.inputOptions}`)},VN=(l,c)=>{const m=l.getInput();Q(m),C(c.inputValue).then(_=>{m.value=c.input==="number"?`${parseFloat(_)||0}`:`${_}`,Z(m),m.focus(),l.hideLoading()}).catch(_=>{p(`Error in inputValue promise: ${_}`),m.value="",Z(m),m.focus(),l.hideLoading()})},BN={select:(l,c,m)=>{const _=ne(l,i.select),F=(ye,Ge,Rt)=>{const Nt=document.createElement("option");Nt.value=Rt,ht(Nt,Ge),Nt.selected=Nm(Rt,m.inputValue),ye.appendChild(Nt)};c.forEach(ye=>{const Ge=ye[0],Rt=ye[1];if(Array.isArray(Rt)){const Nt=document.createElement("optgroup");Nt.label=Ge,Nt.disabled=!1,_.appendChild(Nt),Rt.forEach(Ir=>F(Nt,Ir[1],Ir[0]))}else F(_,Rt,Ge)}),_.focus()},radio:(l,c,m)=>{const _=ne(l,i.radio);c.forEach(ye=>{const Ge=ye[0],Rt=ye[1],Nt=document.createElement("input"),Ir=document.createElement("label");Nt.type="radio",Nt.name=i.radio,Nt.value=Ge,Nm(Ge,m.inputValue)&&(Nt.checked=!0);const Zc=document.createElement("span");ht(Zc,Rt),Zc.className=i.label,Ir.appendChild(Nt),Ir.appendChild(Zc),_.appendChild(Ir)});const F=_.querySelectorAll("input");F.length&&F[0].focus()}},Wc=l=>{const c=[];return typeof Map<"u"&&l instanceof Map?l.forEach((m,_)=>{let F=m;typeof F=="object"&&(F=Wc(F)),c.push([_,F])}):Object.keys(l).forEach(m=>{let _=l[m];typeof _=="object"&&(_=Wc(_)),c.push([m,_])}),c},Nm=(l,c)=>c&&c.toString()===l.toString(),FN=l=>{const c=n.innerParams.get(l);l.disableButtons(),c.input?Am(l,"confirm"):Gc(l,!0)},UN=l=>{const c=n.innerParams.get(l);l.disableButtons(),c.returnInputValueOnDeny?Am(l,"deny"):Kc(l,!1)},HN=(l,c)=>{l.disableButtons(),c(Sr.cancel)},Am=(l,c)=>{const m=n.innerParams.get(l);if(!m.input){p(`The "input" parameter is needed to be set when using returnInputValueOn${u(c)}`);return}const _=LN(l,m);m.inputValidator?zN(l,_,c):l.getInput().checkValidity()?c==="deny"?Kc(l,_):Gc(l,_):(l.enableButtons(),l.showValidationMessage(m.validationMessage))},zN=(l,c,m)=>{const _=n.innerParams.get(l);l.disableInput(),Promise.resolve().then(()=>C(_.inputValidator(c,_.validationMessage))).then(ye=>{l.enableButtons(),l.enableInput(),ye?l.showValidationMessage(ye):m==="deny"?Kc(l,c):Gc(l,c)})},Kc=(l,c)=>{const m=n.innerParams.get(l||void 0);m.showLoaderOnDeny&&Nr(R()),m.preDeny?(n.awaitingPromise.set(l||void 0,!0),Promise.resolve().then(()=>C(m.preDeny(c,m.validationMessage))).then(F=>{F===!1?(l.hideLoading(),Ii(l)):l.close({isDenied:!0,value:typeof F>"u"?c:F})}).catch(F=>Pm(l||void 0,F))):l.close({isDenied:!0,value:c})},Im=(l,c)=>{l.close({isConfirmed:!0,value:c})},Pm=(l,c)=>{l.rejectPromise(c)},Gc=(l,c)=>{const m=n.innerParams.get(l||void 0);m.showLoaderOnConfirm&&Nr(),m.preConfirm?(l.resetValidationMessage(),n.awaitingPromise.set(l||void 0,!0),Promise.resolve().then(()=>C(m.preConfirm(c,m.validationMessage))).then(F=>{H(ce())||F===!1?(l.hideLoading(),Ii(l)):Im(l,typeof F>"u"?c:F)}).catch(F=>Pm(l||void 0,F))):Im(l,c)},qN=(l,c,m)=>{n.innerParams.get(l).toast?WN(l,c,m):(GN(c),YN(c),ZN(l,c,m))},WN=(l,c,m)=>{c.popup.onclick=()=>{const _=n.innerParams.get(l);_&&(KN(_)||_.timer||_.input)||m(Sr.close)}},KN=l=>l.showConfirmButton||l.showDenyButton||l.showCancelButton||l.showCloseButton;let xa=!1;const GN=l=>{l.popup.onmousedown=()=>{l.container.onmouseup=function(c){l.container.onmouseup=void 0,c.target===l.container&&(xa=!0)}}},YN=l=>{l.container.onmousedown=()=>{l.popup.onmouseup=function(c){l.popup.onmouseup=void 0,(c.target===l.popup||l.popup.contains(c.target))&&(xa=!0)}}},ZN=(l,c,m)=>{c.container.onclick=_=>{const F=n.innerParams.get(l);if(xa){xa=!1;return}_.target===c.container&&v(F.allowOutsideClick)&&m(Sr.backdrop)}},JN=l=>typeof l=="object"&&l.jquery,Tm=l=>l instanceof Element||JN(l),XN=l=>{const c={};return typeof l[0]=="object"&&!Tm(l[0])?Object.assign(c,l[0]):["title","html","icon"].forEach((m,_)=>{const F=l[_];typeof F=="string"||Tm(F)?c[m]=F:F!==void 0&&p(`Unexpected type of ${m}! Expected "string" or "Element", got ${typeof F}`)}),c};function QN(){const l=this;for(var c=arguments.length,m=new Array(c),_=0;_<c;_++)m[_]=arguments[_];return new l(...m)}function eA(l){class c extends this{_main(_,F){return super._main(_,Object.assign({},l,F))}}return c}const tA=()=>N.timeout&&N.timeout.getTimerLeft(),Lm=()=>{if(N.timeout)return O(),N.timeout.stop()},Dm=()=>{if(N.timeout){const l=N.timeout.start();return k(l),l}},nA=()=>{const l=N.timeout;return l&&(l.running?Lm():Dm())},oA=l=>{if(N.timeout){const c=N.timeout.increase(l);return k(c,!0),c}},rA=()=>N.timeout&&N.timeout.isRunning();let Mm=!1;const Yc={};function iA(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Yc[l]=this,Mm||(document.body.addEventListener("click",sA),Mm=!0)}const sA=l=>{for(let c=l.target;c&&c!==document;c=c.parentNode)for(const m in Yc){const _=c.getAttribute(m);if(_){Yc[m].fire({template:_});return}}};var aA=Object.freeze({__proto__:null,argsToParams:XN,bindClickHandler:iA,clickCancel:zO,clickConfirm:bm,clickDeny:HO,enableLoading:Nr,fire:QN,getActions:ue,getCancelButton:xe,getCloseButton:Qe,getConfirmButton:se,getContainer:D,getDenyButton:R,getFocusableElements:Mt,getFooter:we,getHtmlContainer:le,getIcon:P,getIconContent:z,getImage:re,getInputLabel:Y,getLoader:U,getPopup:M,getProgressSteps:ee,getTimerLeft:tA,getTimerProgressBar:Ee,getTitle:J,getValidationMessage:ce,increaseTimer:oA,isDeprecatedParameter:zc,isLoading:Ct,isTimerRunning:rA,isUpdatableParameter:Cm,isValidParameter:Em,isVisible:UO,mixin:eA,resumeTimer:Dm,showLoading:Nr,stopTimer:Lm,toggleTimer:nA});class lA{constructor(c,m){this.callback=c,this.remaining=m,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(c){const m=this.running;return m&&this.stop(),this.remaining+=c,m&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const jm=["swal-title","swal-html","swal-footer"],cA=l=>{const c=typeof l.template=="string"?document.querySelector(l.template):l.template;if(!c)return{};const m=c.content;return bA(m),Object.assign(uA(m),fA(m),dA(m),pA(m),hA(m),mA(m),gA(m,jm))},uA=l=>{const c={};return Array.from(l.querySelectorAll("swal-param")).forEach(_=>{Zo(_,["name","value"]);const F=_.getAttribute("name"),ye=_.getAttribute("value");typeof Or[F]=="boolean"?c[F]=ye!=="false":typeof Or[F]=="object"?c[F]=JSON.parse(ye):c[F]=ye}),c},fA=l=>{const c={};return Array.from(l.querySelectorAll("swal-function-param")).forEach(_=>{const F=_.getAttribute("name"),ye=_.getAttribute("value");c[F]=new Function(`return ${ye}`)()}),c},dA=l=>{const c={};return Array.from(l.querySelectorAll("swal-button")).forEach(_=>{Zo(_,["type","color","aria-label"]);const F=_.getAttribute("type");c[`${F}ButtonText`]=_.innerHTML,c[`show${u(F)}Button`]=!0,_.hasAttribute("color")&&(c[`${F}ButtonColor`]=_.getAttribute("color")),_.hasAttribute("aria-label")&&(c[`${F}ButtonAriaLabel`]=_.getAttribute("aria-label"))}),c},pA=l=>{const c={},m=l.querySelector("swal-image");return m&&(Zo(m,["src","width","height","alt"]),m.hasAttribute("src")&&(c.imageUrl=m.getAttribute("src")),m.hasAttribute("width")&&(c.imageWidth=m.getAttribute("width")),m.hasAttribute("height")&&(c.imageHeight=m.getAttribute("height")),m.hasAttribute("alt")&&(c.imageAlt=m.getAttribute("alt"))),c},hA=l=>{const c={},m=l.querySelector("swal-icon");return m&&(Zo(m,["type","color"]),m.hasAttribute("type")&&(c.icon=m.getAttribute("type")),m.hasAttribute("color")&&(c.iconColor=m.getAttribute("color")),c.iconHtml=m.innerHTML),c},mA=l=>{const c={},m=l.querySelector("swal-input");m&&(Zo(m,["type","label","placeholder","value"]),c.input=m.getAttribute("type")||"text",m.hasAttribute("label")&&(c.inputLabel=m.getAttribute("label")),m.hasAttribute("placeholder")&&(c.inputPlaceholder=m.getAttribute("placeholder")),m.hasAttribute("value")&&(c.inputValue=m.getAttribute("value")));const _=Array.from(l.querySelectorAll("swal-input-option"));return _.length&&(c.inputOptions={},_.forEach(F=>{Zo(F,["value"]);const ye=F.getAttribute("value"),Ge=F.innerHTML;c.inputOptions[ye]=Ge})),c},gA=(l,c)=>{const m={};for(const _ in c){const F=c[_],ye=l.querySelector(F);ye&&(Zo(ye,[]),m[F.replace(/^swal-/,"")]=ye.innerHTML.trim())}return m},bA=l=>{const c=jm.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(l.children).forEach(m=>{const _=m.tagName.toLowerCase();c.includes(_)||d(`Unrecognized element <${_}>`)})},Zo=(l,c)=>{Array.from(l.attributes).forEach(m=>{c.indexOf(m.name)===-1&&d([`Unrecognized attribute "${m.name}" on <${l.tagName.toLowerCase()}>.`,`${c.length?`Allowed attributes are: ${c.join(", ")}`:"To set the value, use HTML within the element."}`])})},Rm=10,yA=l=>{const c=D(),m=M();typeof l.willOpen=="function"&&l.willOpen(m);const F=window.getComputedStyle(document.body).overflowY;_A(c,m,l),setTimeout(()=>{wA(c,m)},Rm),jt()&&(vA(c,l.scrollbarPadding,F),XO()),!Fn()&&!N.previousActiveElement&&(N.previousActiveElement=document.activeElement),typeof l.didOpen=="function"&&setTimeout(()=>l.didOpen(m)),W(c,i["no-transition"])},Vm=l=>{const c=M();if(l.target!==c)return;const m=D();c.removeEventListener(Oi,Vm),m.style.overflowY="auto"},wA=(l,c)=>{Oi&&y(c)?(l.style.overflowY="hidden",c.addEventListener(Oi,Vm)):l.style.overflowY="auto"},vA=(l,c,m)=>{QO(),c&&m!=="hidden"&&sN(),setTimeout(()=>{l.scrollTop=0})},_A=(l,c,m)=>{V(l,m.showClass.backdrop),c.style.setProperty("opacity","0","important"),Z(c,"grid"),setTimeout(()=>{V(c,m.showClass.popup),c.style.removeProperty("opacity")},Rm),V([document.documentElement,document.body],i.shown),m.heightAuto&&m.backdrop&&!m.toast&&V([document.documentElement,document.body],i["height-auto"])};var Bm={email:(l,c)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(l)?Promise.resolve():Promise.resolve(c||"Invalid email address"),url:(l,c)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(l)?Promise.resolve():Promise.resolve(c||"Invalid URL")};function kA(l){l.inputValidator||Object.keys(Bm).forEach(c=>{l.input===c&&(l.inputValidator=Bm[c])})}function $A(l){(!l.target||typeof l.target=="string"&&!document.querySelector(l.target)||typeof l.target!="string"&&!l.target.appendChild)&&(d('Target parameter is not valid, defaulting to "body"'),l.target="body")}function xA(l){kA(l),l.showLoaderOnConfirm&&!l.preConfirm&&d(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
showLoaderOnConfirm should be used together with preConfirm, see usage example:
https://sweetalert2.github.io/#ajax-request`),$A(l),typeof l.title=="string"&&(l.title=l.title.split(`
`).join("<br />")),Si(l)}let yn;class Ar{constructor(){if(typeof window>"u")return;yn=this;for(var c=arguments.length,m=new Array(c),_=0;_<c;_++)m[_]=arguments[_];const F=Object.freeze(this.constructor.argsToParams(m));Object.defineProperties(this,{params:{value:F,writable:!1,enumerable:!0,configurable:!0}});const ye=yn._main(yn.params);n.promise.set(this,ye)}_main(c){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};SN(Object.assign({},m,c)),N.currentInstance&&(N.currentInstance._destroy(),jt()&&vm()),N.currentInstance=yn;const _=CA(c,m);xA(_),Object.freeze(_),N.timeout&&(N.timeout.stop(),delete N.timeout),clearTimeout(N.restoreFocusTimeout);const F=SA(yn);return mm(yn,_),n.innerParams.set(yn,_),EA(yn,F,_)}then(c){return n.promise.get(this).then(c)}finally(c){return n.promise.get(this).finally(c)}}const EA=(l,c,m)=>new Promise((_,F)=>{const ye=Ge=>{l.close({isDismissed:!0,dismiss:Ge})};Ai.swalPromiseResolve.set(l,_),Ai.swalPromiseReject.set(l,F),c.confirmButton.onclick=()=>{FN(l)},c.denyButton.onclick=()=>{UN(l)},c.cancelButton.onclick=()=>{HN(l,ye)},c.closeButton.onclick=()=>{ye(Sr.close)},qN(l,c,ye),qO(l,N,m,ye),TN(l,m),yA(m),OA(N,m,ye),NA(c,m),setTimeout(()=>{c.container.scrollTop=0})}),CA=(l,c)=>{const m=cA(l),_=Object.assign({},Or,c,m,l);return _.showClass=Object.assign({},Or.showClass,_.showClass),_.hideClass=Object.assign({},Or.hideClass,_.hideClass),_},SA=l=>{const c={popup:M(),container:D(),actions:ue(),confirmButton:se(),denyButton:R(),cancelButton:xe(),loader:U(),closeButton:Qe(),validationMessage:ce(),progressSteps:ee()};return n.domCache.set(l,c),c},OA=(l,c,m)=>{const _=Ee();Q(_),c.timer&&(l.timeout=new lA(()=>{m("timer"),delete l.timeout},c.timer),c.timerProgressBar&&(Z(_),ft(_,c,"timerProgressBar"),setTimeout(()=>{l.timeout&&l.timeout.running&&k(c.timer)})))},NA=(l,c)=>{if(!c.toast){if(!v(c.allowEnterKey)){IA();return}AA(l,c)||Hc(-1,1)}},AA=(l,c)=>c.focusDeny&&H(l.denyButton)?(l.denyButton.focus(),!0):c.focusCancel&&H(l.cancelButton)?(l.cancelButton.focus(),!0):c.focusConfirm&&H(l.confirmButton)?(l.confirmButton.focus(),!0):!1,IA=()=>{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 l=new Date,c=localStorage.getItem("swal-initiation");c?(l.getTime()-Date.parse(c))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const m=document.createElement("audio");m.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",m.loop=!0,document.body.appendChild(m),setTimeout(()=>{m.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${l}`)}Object.assign(Ar.prototype,Om),Object.assign(Ar,aA),Object.keys(Om).forEach(l=>{Ar[l]=function(){if(yn)return yn[l](...arguments)}}),Ar.DismissReason=Sr,Ar.version="11.7.2";const Ea=Ar;return Ea.default=Ea,Ea}),typeof Hn<"u"&&Hn.Sweetalert2&&(Hn.swal=Hn.sweetAlert=Hn.Swal=Hn.SweetAlert=Hn.Sweetalert2),typeof document<"u"&&function(n,o){var r=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=o);else try{r.innerHTML=o}catch{r.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}')})(Qc);const Te=Qc.exports,Hm=["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"];function eu(e,...t){return new e(t[0])}function Li(){return Math.floor(Date.now()/1e3)}function zm(e,t,n="text/plain"){const o=document.createElement("a");document.body.appendChild(o),o.setAttribute("style","display:none");const r=new Blob([e],{type:n}),i=window.URL.createObjectURL(r);o.href=i,o.download=t,o.click(),window.URL.revokeObjectURL(i)}function Pr(e){if(typeof Pi=="function")return Pi(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 qm(e){return/^magnet:\?xt=urn:btih/.test(e)}function Wm(e,t=!0){return(t?/^([a-z\d]{32})$|^([a-z\d]{40})$/i:/^[a-z\d]{32,40}$/i).test(e)}function Km(e){return`magnet:?xt=urn:btih:${e.toUpperCase()}`}function Gm(e,t=location.href){const n=new RegExp("(\\?|#|&)"+e+"=([^&#]*)(&|#|$)"),o=t.match(n);return o?o[2]:""}function tu(e,t=2){if(Number.isNaN(e)||(e=typeof e=="string"?parseInt(e):e,!e))return"0";const n=1024,o=t,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(o))+" "+r[i]}function nu(e,t=document,n=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE){const o=[],r=document.evaluate(e,t,null,n,null);for(let i=0;i<r.snapshotLength;i++){const s=r.snapshotItem(i);s&&o.push(s)}return o}async function Di(e,t=100,n=12e4){const o=e.indexOf("//")===0,r=async()=>{if(o){const i=nu(e);return i.length>0?i:!1}else{const i=document.querySelectorAll(e);return i.length?Array.from(i):!1}};try{return await ou(r,t,n)}catch(i){throw console.warn("[find]",i),new Error(`查找元素超时:${e}`)}}async function Mi(e,t=100,n=12e4){const o=e.indexOf("//")===0,r=async()=>{if(o){const i=nu(e);return i.length>0?i:!1}else{const i=unsafeWindow.$(e);return i.length?i:!1}};try{return await ou(r,t,n)}catch(i){throw console.warn("[find]",i),new Error(`查找元素超时:${e}`)}}async function ou(e,t,n){return new Promise(async(o,r)=>{if(typeof e!="function"){r("提供的参数`fulfill`不是一个Function!");return}const i=await e();if(i){o(i);return}let s=setInterval(async()=>{const f=await e();f&&(clearTimeout(a),clearInterval(s),o(f))},t),a=setTimeout(()=>{clearInterval(s),r("超时")},n)})}async function wo(e){return new Promise(t=>{setTimeout(t,e)})}function ru(e){const t=new URLSearchParams;let n;for(n in e)t.append(n,e[n].toString());return t.toString()}async function Ae(e){return Te.fire({toast:!0,position:"top",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:t=>{t.addEventListener("mouseenter",Te.stopTimer),t.addEventListener("mouseleave",Te.resumeTimer)},...e})}function ji(e,t){t=t||window,t.postMessage(e)}function vo(e,t,n){if(n){const o=Ti(e,{});Ca(e,{...o,...t})}else Ca(e,t)}function Qo(e,t,n){let o;return function(...r){const i=()=>{o=void 0,n||e.apply(this,r)},s=n&&o===void 0;clearTimeout(o),o=setTimeout(i,t),s&&e.apply(this,r)}}function Ym(e){return e?Hm.indexOf(e.toLowerCase())>-1:!1}var Ie=(e=>(e.listItemHover="listItemHover",e.listItemHoverSub="listItemHoverSub",e.listItemContext="listItemContext",e.listItemContextSub="listItemContextSub",e.selection="selection",e.selectionSub="selectionSub",e.dirContext="dirContext",e.dirContextSub="dirContextSub",e))(Ie||{}),Tr=(e=>(e.listItemHover="列表项悬浮菜单",e.listItemHoverSub="列表项悬浮子菜单",e.listItemContext="列表项右键菜单",e.listItemContextSub="列表项右键子菜单",e.selection="选中项菜单",e.selectionSub="选中项子菜单",e.dirContext="当前目录右键菜单",e.dirContextSub="当前目录右键子菜单",e))(Tr||{}),_o=(e=>(e[e.after=0]="after",e[e.before=1]="before",e))(_o||{});const At={get:async(e,t)=>Ti(e,t),set:async(e,t)=>Ca(e,t),remove:async e=>Fm(e)},iu="clouddrive_configs";function Sa(e){return{active:!1,url:"http://localhost:19798",root:"/115",memo:"",...e}}async function su(){const e=[Sa()],t=await At.get(iu,e);return t||e}async function au(e){e.some(t=>t.active)||(e[0].active=!0),await At.set(iu,e)}async function Lr(){return(await su()).find(t=>t.active)||Sa()}async function lu(e,t){let{url:n,root:o}=e;if(!n)throw new Error("未设置CloudDrive地址!");if(n.startsWith("http")||(n=`http://${n}`),!o)throw new Error("未设置CloudDrive根目录!");o=o.replace(/^(\/+)?/g,"/"),t=t.replace(/^(\/+)?/g,"/");const r=`${o}${t}`;return`${n}/static/${n.replace("://","/")}/True/${encodeURIComponent(r)}`}var er=(e=>(e[e.failed=-1]="failed",e[e.illegal=0]="illegal",e[e.ing=1]="ing",e[e.success=2]="success",e))(er||{}),Vt=(e=>(e.all="all",e.failed="failed",e.success="success",e.magnet="magnet",e))(Vt||{}),cu=(e=>(e[e.true=1]="true",e[e.false=0]="false",e))(cu||{}),wt=(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))(wt||{}),tt=(e=>(e.all="全部",e.video="视频",e.audio="音频",e.image="图片",e.doc="文档",e.app="应用",e.archive="压缩包",e))(tt||{}),uu=(e=>(e.userPtime="user_ptime",e.fileName="file_name",e.fileSize="file_size",e.fileType="file_type",e))(uu||{});function Zm(e){return{offset:0,limit:1150,aid:1,cid:"",format:"json",o:"user_ptime",asc:0,search_value:"",...e}}function Jm(e){return{aid:1,cid:"",o:"user_ptime",asc:0,offset:0,show_dir:1,limit:115,natsort:0,format:"json",...e}}function fu(e,t){return function(){return e.apply(t,arguments)}}const{toString:du}=Object.prototype,{getPrototypeOf:Oa}=Object,Na=(e=>t=>{const n=du.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wn=e=>(e=e.toLowerCase(),t=>Na(t)===e),Ri=e=>t=>typeof t===e,{isArray:tr}=Array,Dr=Ri("undefined");function Xm(e){return e!==null&&!Dr(e)&&e.constructor!==null&&!Dr(e.constructor)&&zn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pu=wn("ArrayBuffer");function Qm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pu(e.buffer),t}const eg=Ri("string"),zn=Ri("function"),hu=Ri("number"),Aa=e=>e!==null&&typeof e=="object",tg=e=>e===!0||e===!1,Vi=e=>{if(Na(e)!=="object")return!1;const t=Oa(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ng=wn("Date"),og=wn("File"),rg=wn("Blob"),ig=wn("FileList"),sg=e=>Aa(e)&&zn(e.pipe),ag=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||du.call(e)===t||zn(e.toString)&&e.toString()===t)},lg=wn("URLSearchParams"),cg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),tr(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(o=0;o<s;o++)a=i[o],t.call(null,e[a],a,e)}}function mu(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,r;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const gu=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),bu=e=>!Dr(e)&&e!==gu;function Ia(){const{caseless:e}=bu(this)&&this||{},t={},n=(o,r)=>{const i=e&&mu(t,r)||r;Vi(t[i])&&Vi(o)?t[i]=Ia(t[i],o):Vi(o)?t[i]=Ia({},o):tr(o)?t[i]=o.slice():t[i]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Mr(arguments[o],n);return t}const ug=(e,t,n,{allOwnKeys:o}={})=>(Mr(t,(r,i)=>{n&&zn(r)?e[i]=fu(r,n):e[i]=r},{allOwnKeys:o}),e),fg=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),dg=(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)},pg=(e,t,n,o)=>{let r,i,s;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)s=r[i],(!o||o(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Oa(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},hg=(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},mg=e=>{if(!e)return null;if(tr(e))return e;let t=e.length;if(!hu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},gg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Oa(Uint8Array)),bg=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},yg=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},wg=wn("HTMLFormElement"),vg=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),yu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_g=wn("RegExp"),wu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Mr(n,(r,i)=>{t(r,i,e)!==!1&&(o[i]=r)}),Object.defineProperties(e,o)},kg=e=>{wu(e,(t,n)=>{if(zn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(!!zn(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+"'")})}})},$g=(e,t)=>{const n={},o=r=>{r.forEach(i=>{n[i]=!0})};return tr(e)?o(e):o(String(e).split(t)),n},xg=()=>{},Eg=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Pa="abcdefghijklmnopqrstuvwxyz",vu="0123456789",_u={DIGIT:vu,ALPHA:Pa,ALPHA_DIGIT:Pa+Pa.toUpperCase()+vu},Cg=(e=16,t=_u.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function Sg(e){return!!(e&&zn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const G={isArray:tr,isArrayBuffer:pu,isBuffer:Xm,isFormData:ag,isArrayBufferView:Qm,isString:eg,isNumber:hu,isBoolean:tg,isObject:Aa,isPlainObject:Vi,isUndefined:Dr,isDate:ng,isFile:og,isBlob:rg,isRegExp:_g,isFunction:zn,isStream:sg,isURLSearchParams:lg,isTypedArray:gg,isFileList:ig,forEach:Mr,merge:Ia,extend:ug,trim:cg,stripBOM:fg,inherits:dg,toFlatObject:pg,kindOf:Na,kindOfTest:wn,endsWith:hg,toArray:mg,forEachEntry:bg,matchAll:yg,isHTMLForm:wg,hasOwnProperty:yu,hasOwnProp:yu,reduceDescriptors:wu,freezeMethods:kg,toObjectSet:$g,toCamelCase:vg,noop:xg,toFiniteNumber:Eg,findKey:mu,global:gu,isContextDefined:bu,ALPHABET:_u,generateString:Cg,isSpecCompliantForm:Sg,toJSONObject:e=>{const t=new Array(10),n=(o,r)=>{if(Aa(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const i=tr(o)?[]:{};return Mr(o,(s,a)=>{const f=n(s,r+1);!Dr(f)&&(i[a]=f)}),t[r]=void 0,i}}return o};return n(e,0)}};function Ve(e,t,n,o,r){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),r&&(this.response=r)}G.inherits(Ve,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:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ku=Ve.prototype,$u={};["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=>{$u[e]={value:e}}),Object.defineProperties(Ve,$u),Object.defineProperty(ku,"isAxiosError",{value:!0}),Ve.from=(e,t,n,o,r,i)=>{const s=Object.create(ku);return G.toFlatObject(e,s,function(f){return f!==Error.prototype},a=>a!=="isAxiosError"),Ve.call(s,e.message,t,n,o,r),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Og=null;function Ta(e){return G.isPlainObject(e)||G.isArray(e)}function xu(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Eu(e,t,n){return e?e.concat(t).map(function(r,i){return r=xu(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Ng(e){return G.isArray(e)&&!e.some(Ta)}const Ag=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function Bi(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,S){return!G.isUndefined(S[v])});const o=n.metaTokens,r=n.visitor||d,i=n.dots,s=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(r))throw new TypeError("visitor must be a function");function u(E){if(E===null)return"";if(G.isDate(E))return E.toISOString();if(!f&&G.isBlob(E))throw new Ve("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(E)||G.isTypedArray(E)?f&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function d(E,v,S){let C=E;if(E&&!S&&typeof E=="object"){if(G.endsWith(v,"{}"))v=o?v:v.slice(0,-2),E=JSON.stringify(E);else if(G.isArray(E)&&Ng(E)||(G.isFileList(E)||G.endsWith(v,"[]"))&&(C=G.toArray(E)))return v=xu(v),C.forEach(function(D,T){!(G.isUndefined(D)||D===null)&&t.append(s===!0?Eu([v],T,i):s===null?v:v+"[]",u(D))}),!1}return Ta(E)?!0:(t.append(Eu(S,v,i),u(E)),!1)}const p=[],g=Object.assign(Ag,{defaultVisitor:d,convertValue:u,isVisitable:Ta});function x(E,v){if(!G.isUndefined(E)){if(p.indexOf(E)!==-1)throw Error("Circular reference detected in "+v.join("."));p.push(E),G.forEach(E,function(C,I){(!(G.isUndefined(C)||C===null)&&r.call(t,C,G.isString(I)?I.trim():I,v,g))===!0&&x(C,v?v.concat(I):[I])}),p.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Cu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function La(e,t){this._pairs=[],e&&Bi(e,this,t)}const Su=La.prototype;Su.append=function(t,n){this._pairs.push([t,n])},Su.toString=function(t){const n=t?function(o){return t.call(this,o,Cu)}:Cu;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Ig(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ou(e,t,n){if(!t)return e;const o=n&&n.encode||Ig,r=n&&n.serialize;let i;if(r?i=r(t,n):i=G.isURLSearchParams(t)?t.toString():new La(t,n).toString(o),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Pg{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){G.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Nu=Pg,Au={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tg=typeof URLSearchParams<"u"?URLSearchParams:La,Lg=typeof FormData<"u"?FormData:null,Dg=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Mg=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),on={isBrowser:!0,classes:{URLSearchParams:Tg,FormData:Lg,Blob},isStandardBrowserEnv:Dg,isStandardBrowserWebWorkerEnv:Mg,protocols:["http","https","file","blob","url","data"]};function jg(e,t){return Bi(e,new on.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,i){return on.isNode&&G.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Rg(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vg(e){const t={},n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o<r;o++)i=n[o],t[i]=e[i];return t}function Iu(e){function t(n,o,r,i){let s=n[i++];const a=Number.isFinite(+s),f=i>=n.length;return s=!s&&G.isArray(r)?r.length:s,f?(G.hasOwnProp(r,s)?r[s]=[r[s],o]:r[s]=o,!a):((!r[s]||!G.isObject(r[s]))&&(r[s]=[]),t(n,o,r[s],i)&&G.isArray(r[s])&&(r[s]=Vg(r[s])),!a)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(o,r)=>{t(Rg(o),r,n,0)}),n}return null}const Bg={"Content-Type":void 0};function Fg(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Fi={transitional:Au,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,i=G.isObject(t);if(i&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return r&&r?JSON.stringify(Iu(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return jg(t,this.formSerializer).toString();if((a=G.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Bi(a?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),Fg(t)):t}],transformResponse:[function(t){const n=this.transitional||Fi.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&G.isString(t)&&(o&&!this.responseType||r)){const s=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Ve.from(a,Ve.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:on.classes.FormData,Blob:on.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};G.forEach(["delete","get","head"],function(t){Fi.headers[t]={}}),G.forEach(["post","put","patch"],function(t){Fi.headers[t]=G.merge(Bg)});const Da=Fi,Ug=G.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"]),Hg=e=>{const t={};let n,o,r;return e&&e.split(`
`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),o=s.substring(r+1).trim(),!(!n||t[n]&&Ug[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},Pu=Symbol("internals");function jr(e){return e&&String(e).trim().toLowerCase()}function Ui(e){return e===!1||e==null?e:G.isArray(e)?e.map(Ui):String(e)}function zg(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 qg(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Ma(e,t,n,o,r){if(G.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!G.isString(t)){if(G.isString(o))return t.indexOf(o)!==-1;if(G.isRegExp(o))return o.test(t)}}function Wg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function Kg(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,i,s){return this[o].call(this,t,r,i,s)},configurable:!0})})}class Hi{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function i(a,f,u){const d=jr(f);if(!d)throw new Error("header name must be a non-empty string");const p=G.findKey(r,d);(!p||r[p]===void 0||u===!0||u===void 0&&r[p]!==!1)&&(r[p||f]=Ui(a))}const s=(a,f)=>G.forEach(a,(u,d)=>i(u,d,f));return G.isPlainObject(t)||t instanceof this.constructor?s(t,n):G.isString(t)&&(t=t.trim())&&!qg(t)?s(Hg(t),n):t!=null&&i(n,t,o),this}get(t,n){if(t=jr(t),t){const o=G.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return zg(r);if(G.isFunction(n))return n.call(this,r,o);if(G.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jr(t),t){const o=G.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Ma(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function i(s){if(s=jr(s),s){const a=G.findKey(o,s);a&&(!n||Ma(o,o[a],a,n))&&(delete o[a],r=!0)}}return G.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const i=n[o];(!t||Ma(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,o={};return G.forEach(this,(r,i)=>{const s=G.findKey(o,i);if(s){n[s]=Ui(r),delete n[i];return}const a=t?Wg(i):String(i).trim();a!==i&&delete n[i],n[a]=Ui(r),o[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return G.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&G.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(r=>o.set(r)),o}static accessor(t){const o=(this[Pu]=this[Pu]={accessors:{}}).accessors,r=this.prototype;function i(s){const a=jr(s);o[a]||(Kg(r,s),o[a]=!0)}return G.isArray(t)?t.forEach(i):i(t),this}}Hi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.freezeMethods(Hi.prototype),G.freezeMethods(Hi);const vn=Hi;function ja(e,t){const n=this||Da,o=t||n,r=vn.from(o.headers);let i=o.data;return G.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Tu(e){return!!(e&&e.__CANCEL__)}function Rr(e,t,n){Ve.call(this,e==null?"canceled":e,Ve.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(Rr,Ve,{__CANCEL__:!0});function Gg(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new Ve("Request failed with status code "+n.status,[Ve.ERR_BAD_REQUEST,Ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Yg=on.isStandardBrowserEnv?function(){return{write:function(n,o,r,i,s,a){const f=[];f.push(n+"="+encodeURIComponent(o)),G.isNumber(r)&&f.push("expires="+new Date(r).toGMTString()),G.isString(i)&&f.push("path="+i),G.isString(s)&&f.push("domain="+s),a===!0&&f.push("secure"),document.cookie=f.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 Zg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Jg(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Lu(e,t){return e&&!Zg(t)?Jg(e,t):t}const Xg=on.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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=r(window.location.href),function(s){const a=G.isString(s)?r(s):s;return a.protocol===o.protocol&&a.host===o.host}}():function(){return function(){return!0}}();function Qg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function eb(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,i=0,s;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),d=o[i];s||(s=u),n[r]=f,o[r]=u;let p=i,g=0;for(;p!==r;)g+=n[p++],p=p%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-s<t)return;const x=d&&u-d;return x?Math.round(g*1e3/x):void 0}}function Du(e,t){let n=0;const o=eb(50,250);return r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,f=o(a),u=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:f||void 0,estimated:f&&s&&u?(s-i)/f:void 0,event:r};d[t?"download":"upload"]=!0,e(d)}}const zi={http:Og,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let r=e.data;const i=vn.from(e.headers).normalize(),s=e.responseType;let a;function f(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}G.isFormData(r)&&(on.isStandardBrowserEnv||on.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const x=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(x+":"+E))}const d=Lu(e.baseURL,e.url);u.open(e.method.toUpperCase(),Ou(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function p(){if(!u)return;const x=vn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:e,request:u};Gg(function(C){n(C),f()},function(C){o(C),f()},v),u=null}if("onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(p)},u.onabort=function(){!u||(o(new Ve("Request aborted",Ve.ECONNABORTED,e,u)),u=null)},u.onerror=function(){o(new Ve("Network Error",Ve.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Au;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),o(new Ve(E,v.clarifyTimeoutError?Ve.ETIMEDOUT:Ve.ECONNABORTED,e,u)),u=null},on.isStandardBrowserEnv){const x=(e.withCredentials||Xg(d))&&e.xsrfCookieName&&Yg.read(e.xsrfCookieName);x&&i.set(e.xsrfHeaderName,x)}r===void 0&&i.setContentType(null),"setRequestHeader"in u&&G.forEach(i.toJSON(),function(E,v){u.setRequestHeader(v,E)}),G.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Du(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Du(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=x=>{!u||(o(!x||x.type?new Rr(null,e,u):x),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const g=Qg(d);if(g&&on.protocols.indexOf(g)===-1){o(new Ve("Unsupported protocol "+g+":",Ve.ERR_BAD_REQUEST,e));return}u.send(r||null)})}};G.forEach(zi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const tb={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let r=0;r<t&&(n=e[r],!(o=G.isString(n)?zi[n.toLowerCase()]:n));r++);if(!o)throw o===!1?new Ve(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(G.hasOwnProp(zi,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!G.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:zi};function Ra(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rr(null,e)}function Mu(e){return Ra(e),e.headers=vn.from(e.headers),e.data=ja.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tb.getAdapter(e.adapter||Da.adapter)(e).then(function(o){return Ra(e),o.data=ja.call(e,e.transformResponse,o),o.headers=vn.from(o.headers),o},function(o){return Tu(o)||(Ra(e),o&&o.response&&(o.response.data=ja.call(e,e.transformResponse,o.response),o.response.headers=vn.from(o.response.headers))),Promise.reject(o)})}const ju=e=>e instanceof vn?e.toJSON():e;function nr(e,t){t=t||{};const n={};function o(u,d,p){return G.isPlainObject(u)&&G.isPlainObject(d)?G.merge.call({caseless:p},u,d):G.isPlainObject(d)?G.merge({},d):G.isArray(d)?d.slice():d}function r(u,d,p){if(G.isUndefined(d)){if(!G.isUndefined(u))return o(void 0,u,p)}else return o(u,d,p)}function i(u,d){if(!G.isUndefined(d))return o(void 0,d)}function s(u,d){if(G.isUndefined(d)){if(!G.isUndefined(u))return o(void 0,u)}else return o(void 0,d)}function a(u,d,p){if(p in t)return o(u,d);if(p in e)return o(void 0,u)}const f={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,d)=>r(ju(u),ju(d),!0)};return G.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const p=f[d]||r,g=p(e[d],t[d],d);G.isUndefined(g)&&p!==a||(n[d]=g)}),n}const Ru="1.3.3",Va={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Va[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Vu={};Va.transitional=function(t,n,o){function r(i,s){return"[Axios v"+Ru+"] Transitional option '"+i+"'"+s+(o?". "+o:"")}return(i,s,a)=>{if(t===!1)throw new Ve(r(s," has been removed"+(n?" in "+n:"")),Ve.ERR_DEPRECATED);return n&&!Vu[s]&&(Vu[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function nb(e,t,n){if(typeof e!="object")throw new Ve("options must be an object",Ve.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const i=o[r],s=t[i];if(s){const a=e[i],f=a===void 0||s(a,i,e);if(f!==!0)throw new Ve("option "+i+" must be "+f,Ve.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ve("Unknown option "+i,Ve.ERR_BAD_OPTION)}}const Ba={assertOptions:nb,validators:Va},qn=Ba.validators;class qi{constructor(t){this.defaults=t,this.interceptors={request:new Nu,response:new Nu}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=nr(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&Ba.assertOptions(o,{silentJSONParsing:qn.transitional(qn.boolean),forcedJSONParsing:qn.transitional(qn.boolean),clarifyTimeoutError:qn.transitional(qn.boolean)},!1),r!==void 0&&Ba.assertOptions(r,{encode:qn.function,serialize:qn.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=i&&G.merge(i.common,i[n.method]),s&&G.forEach(["delete","get","head","post","put","patch","common"],E=>{delete i[E]}),n.headers=vn.concat(s,i);const a=[];let f=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(f=f&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let d,p=0,g;if(!f){const E=[Mu.bind(this),void 0];for(E.unshift.apply(E,a),E.push.apply(E,u),g=E.length,d=Promise.resolve(n);p<g;)d=d.then(E[p++],E[p++]);return d}g=a.length;let x=n;for(p=0;p<g;){const E=a[p++],v=a[p++];try{x=E(x)}catch(S){v.call(this,S);break}}try{d=Mu.call(this,x)}catch(E){return Promise.reject(E)}for(p=0,g=u.length;p<g;)d=d.then(u[p++],u[p++]);return d}getUri(t){t=nr(this.defaults,t);const n=Lu(t.baseURL,t.url);return Ou(n,t.params,t.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(t){qi.prototype[t]=function(n,o){return this.request(nr(o||{},{method:t,url:n,data:(o||{}).data}))}}),G.forEach(["post","put","patch"],function(t){function n(o){return function(i,s,a){return this.request(nr(a||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}qi.prototype[t]=n(),qi.prototype[t+"Form"]=n(!0)});const Wi=qi;class Fa{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(r=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const s=new Promise(a=>{o.subscribe(a),i=a}).then(r);return s.cancel=function(){o.unsubscribe(i)},s},t(function(i,s,a){o.reason||(o.reason=new Rr(i,s,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 Fa(function(r){t=r}),cancel:t}}}const ob=Fa;function rb(e){return function(n){return e.apply(null,n)}}function ib(e){return G.isObject(e)&&e.isAxiosError===!0}const Ua={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(Ua).forEach(([e,t])=>{Ua[t]=e});const sb=Ua;function Bu(e){const t=new Wi(e),n=fu(Wi.prototype.request,t);return G.extend(n,Wi.prototype,t,{allOwnKeys:!0}),G.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Bu(nr(e,r))},n}const it=Bu(Da);it.Axios=Wi,it.CanceledError=Rr,it.CancelToken=ob,it.isCancel=Tu,it.VERSION=Ru,it.toFormData=Bi,it.AxiosError=Ve,it.Cancel=it.CanceledError,it.all=function(t){return Promise.all(t)},it.spread=rb,it.isAxiosError=ib,it.mergeConfig=nr,it.AxiosHeaders=vn,it.formToJSON=e=>Iu(G.isHTMLForm(e)?new FormData(e):e),it.HttpStatusCode=sb,it.default=it;const qt=it,{Axios:zA,AxiosError:qA,CanceledError:WA,isCancel:KA,CancelToken:GA,VERSION:YA,all:ZA,Cancel:JA,isAxiosError:XA,spread:QA,toFormData:ab,AxiosHeaders:eI,HttpStatusCode:tI,formToJSON:nI,mergeConfig:oI}=qt;class lb extends Error{}class Ha extends lb{constructor(){super(...arguments);Se(this,"message","搜索失败!")}}class Fu extends Ha{constructor(){super(...arguments);Se(this,"message","搜索请求响应内容为空!")}}class st{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(t,n=!1){return this.onePassHasher.start().appendStr(t).end(n)}static hashAsciiStr(t,n=!1){return this.onePassHasher.start().appendAsciiStr(t).end(n)}static _hex(t){const n=st.hexChars,o=st.hexOut;let r,i,s,a;for(a=0;a<4;a+=1)for(i=a*8,r=t[a],s=0;s<8;s+=2)o[i+1+s]=n.charAt(r&15),r>>>=4,o[i+0+s]=n.charAt(r&15),r>>>=4;return o.join("")}static _md5cycle(t,n){let o=t[0],r=t[1],i=t[2],s=t[3];o+=(r&i|~r&s)+n[0]-680876936|0,o=(o<<7|o>>>25)+r|0,s+=(o&r|~o&i)+n[1]-389564586|0,s=(s<<12|s>>>20)+o|0,i+=(s&o|~s&r)+n[2]+606105819|0,i=(i<<17|i>>>15)+s|0,r+=(i&s|~i&o)+n[3]-1044525330|0,r=(r<<22|r>>>10)+i|0,o+=(r&i|~r&s)+n[4]-176418897|0,o=(o<<7|o>>>25)+r|0,s+=(o&r|~o&i)+n[5]+1200080426|0,s=(s<<12|s>>>20)+o|0,i+=(s&o|~s&r)+n[6]-1473231341|0,i=(i<<17|i>>>15)+s|0,r+=(i&s|~i&o)+n[7]-45705983|0,r=(r<<22|r>>>10)+i|0,o+=(r&i|~r&s)+n[8]+1770035416|0,o=(o<<7|o>>>25)+r|0,s+=(o&r|~o&i)+n[9]-1958414417|0,s=(s<<12|s>>>20)+o|0,i+=(s&o|~s&r)+n[10]-42063|0,i=(i<<17|i>>>15)+s|0,r+=(i&s|~i&o)+n[11]-1990404162|0,r=(r<<22|r>>>10)+i|0,o+=(r&i|~r&s)+n[12]+1804603682|0,o=(o<<7|o>>>25)+r|0,s+=(o&r|~o&i)+n[13]-40341101|0,s=(s<<12|s>>>20)+o|0,i+=(s&o|~s&r)+n[14]-1502002290|0,i=(i<<17|i>>>15)+s|0,r+=(i&s|~i&o)+n[15]+1236535329|0,r=(r<<22|r>>>10)+i|0,o+=(r&s|i&~s)+n[1]-165796510|0,o=(o<<5|o>>>27)+r|0,s+=(o&i|r&~i)+n[6]-1069501632|0,s=(s<<9|s>>>23)+o|0,i+=(s&r|o&~r)+n[11]+643717713|0,i=(i<<14|i>>>18)+s|0,r+=(i&o|s&~o)+n[0]-373897302|0,r=(r<<20|r>>>12)+i|0,o+=(r&s|i&~s)+n[5]-701558691|0,o=(o<<5|o>>>27)+r|0,s+=(o&i|r&~i)+n[10]+38016083|0,s=(s<<9|s>>>23)+o|0,i+=(s&r|o&~r)+n[15]-660478335|0,i=(i<<14|i>>>18)+s|0,r+=(i&o|s&~o)+n[4]-405537848|0,r=(r<<20|r>>>12)+i|0,o+=(r&s|i&~s)+n[9]+568446438|0,o=(o<<5|o>>>27)+r|0,s+=(o&i|r&~i)+n[14]-1019803690|0,s=(s<<9|s>>>23)+o|0,i+=(s&r|o&~r)+n[3]-187363961|0,i=(i<<14|i>>>18)+s|0,r+=(i&o|s&~o)+n[8]+1163531501|0,r=(r<<20|r>>>12)+i|0,o+=(r&s|i&~s)+n[13]-1444681467|0,o=(o<<5|o>>>27)+r|0,s+=(o&i|r&~i)+n[2]-51403784|0,s=(s<<9|s>>>23)+o|0,i+=(s&r|o&~r)+n[7]+1735328473|0,i=(i<<14|i>>>18)+s|0,r+=(i&o|s&~o)+n[12]-1926607734|0,r=(r<<20|r>>>12)+i|0,o+=(r^i^s)+n[5]-378558|0,o=(o<<4|o>>>28)+r|0,s+=(o^r^i)+n[8]-2022574463|0,s=(s<<11|s>>>21)+o|0,i+=(s^o^r)+n[11]+1839030562|0,i=(i<<16|i>>>16)+s|0,r+=(i^s^o)+n[14]-35309556|0,r=(r<<23|r>>>9)+i|0,o+=(r^i^s)+n[1]-1530992060|0,o=(o<<4|o>>>28)+r|0,s+=(o^r^i)+n[4]+1272893353|0,s=(s<<11|s>>>21)+o|0,i+=(s^o^r)+n[7]-155497632|0,i=(i<<16|i>>>16)+s|0,r+=(i^s^o)+n[10]-1094730640|0,r=(r<<23|r>>>9)+i|0,o+=(r^i^s)+n[13]+681279174|0,o=(o<<4|o>>>28)+r|0,s+=(o^r^i)+n[0]-358537222|0,s=(s<<11|s>>>21)+o|0,i+=(s^o^r)+n[3]-722521979|0,i=(i<<16|i>>>16)+s|0,r+=(i^s^o)+n[6]+76029189|0,r=(r<<23|r>>>9)+i|0,o+=(r^i^s)+n[9]-640364487|0,o=(o<<4|o>>>28)+r|0,s+=(o^r^i)+n[12]-421815835|0,s=(s<<11|s>>>21)+o|0,i+=(s^o^r)+n[15]+530742520|0,i=(i<<16|i>>>16)+s|0,r+=(i^s^o)+n[2]-995338651|0,r=(r<<23|r>>>9)+i|0,o+=(i^(r|~s))+n[0]-198630844|0,o=(o<<6|o>>>26)+r|0,s+=(r^(o|~i))+n[7]+1126891415|0,s=(s<<10|s>>>22)+o|0,i+=(o^(s|~r))+n[14]-1416354905|0,i=(i<<15|i>>>17)+s|0,r+=(s^(i|~o))+n[5]-57434055|0,r=(r<<21|r>>>11)+i|0,o+=(i^(r|~s))+n[12]+1700485571|0,o=(o<<6|o>>>26)+r|0,s+=(r^(o|~i))+n[3]-1894986606|0,s=(s<<10|s>>>22)+o|0,i+=(o^(s|~r))+n[10]-1051523|0,i=(i<<15|i>>>17)+s|0,r+=(s^(i|~o))+n[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,o+=(i^(r|~s))+n[8]+1873313359|0,o=(o<<6|o>>>26)+r|0,s+=(r^(o|~i))+n[15]-30611744|0,s=(s<<10|s>>>22)+o|0,i+=(o^(s|~r))+n[6]-1560198380|0,i=(i<<15|i>>>17)+s|0,r+=(s^(i|~o))+n[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,o+=(i^(r|~s))+n[4]-145523070|0,o=(o<<6|o>>>26)+r|0,s+=(r^(o|~i))+n[11]-1120210379|0,s=(s<<10|s>>>22)+o|0,i+=(o^(s|~r))+n[2]+718787259|0,i=(i<<15|i>>>17)+s|0,r+=(s^(i|~o))+n[9]-343485551|0,r=(r<<21|r>>>11)+i|0,t[0]=o+t[0]|0,t[1]=r+t[1]|0,t[2]=i+t[2]|0,t[3]=s+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(st.stateIdentity),this}appendStr(t){const n=this._buffer8,o=this._buffer32;let r=this._bufferLength,i,s;for(s=0;s<t.length;s+=1){if(i=t.charCodeAt(s),i<128)n[r++]=i;else if(i<2048)n[r++]=(i>>>6)+192,n[r++]=i&63|128;else if(i<55296||i>56319)n[r++]=(i>>>12)+224,n[r++]=i>>>6&63|128,n[r++]=i&63|128;else{if(i=(i-55296)*1024+(t.charCodeAt(++s)-56320)+65536,i>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");n[r++]=(i>>>18)+240,n[r++]=i>>>12&63|128,n[r++]=i>>>6&63|128,n[r++]=i&63|128}r>=64&&(this._dataLength+=64,st._md5cycle(this._state,o),r-=64,o[0]=o[16])}return this._bufferLength=r,this}appendAsciiStr(t){const n=this._buffer8,o=this._buffer32;let r=this._bufferLength,i,s=0;for(;;){for(i=Math.min(t.length-s,64-r);i--;)n[r++]=t.charCodeAt(s++);if(r<64)break;this._dataLength+=64,st._md5cycle(this._state,o),r=0}return this._bufferLength=r,this}appendByteArray(t){const n=this._buffer8,o=this._buffer32;let r=this._bufferLength,i,s=0;for(;;){for(i=Math.min(t.length-s,64-r);i--;)n[r++]=t[s++];if(r<64)break;this._dataLength+=64,st._md5cycle(this._state,o),r=0}return this._bufferLength=r,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,r=this._state;let i;for(this._dataLength=t.length,this._bufferLength=t.buflen,r[0]=o[0],r[1]=o[1],r[2]=o[2],r[3]=o[3],i=0;i<n.length;i+=1)this._buffer8[i]=n.charCodeAt(i)}end(t=!1){const n=this._bufferLength,o=this._buffer8,r=this._buffer32,i=(n>>2)+1;this._dataLength+=n;const s=this._dataLength*8;if(o[n]=128,o[n+1]=o[n+2]=o[n+3]=0,r.set(st.buffer32Identity.subarray(i),i),n>55&&(st._md5cycle(this._state,r),r.set(st.buffer32Identity)),s<=4294967295)r[14]=s;else{const a=s.toString(16).match(/(.*?)(.{0,8})$/);if(a===null)return;const f=parseInt(a[2],16),u=parseInt(a[1],16)||0;r[14]=f,r[15]=u}return st._md5cycle(this._state,r),t?this._state:st._hex(this._state)}}if(st.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),st.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),st.hexChars="0123456789abcdef",st.hexOut=[],st.onePassHasher=new st,st.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");var cb={exports:{}};(function(e){var t=function(n){var o=1e7,r=7,i=9007199254740992,s=E(i),a="0123456789abcdefghijklmnopqrstuvwxyz",f=typeof BigInt=="function";function u(h,y,k,O){return typeof h>"u"?u[0]:typeof y<"u"?+y==10&&!k?H(h):W(h,y,k,O):H(h)}function d(h,y){this.value=h,this.sign=y,this.isSmall=!1}d.prototype=Object.create(u.prototype);function p(h){this.value=h,this.sign=h<0,this.isSmall=!0}p.prototype=Object.create(u.prototype);function g(h){this.value=h}g.prototype=Object.create(u.prototype);function x(h){return-i<h&&h<i}function E(h){return h<1e7?[h]:h<1e14?[h%1e7,Math.floor(h/1e7)]:[h%1e7,Math.floor(h/1e7)%1e7,Math.floor(h/1e14)]}function v(h){S(h);var y=h.length;if(y<4&&we(h,s)<0)switch(y){case 0:return 0;case 1:return h[0];case 2:return h[0]+h[1]*o;default:return h[0]+(h[1]+h[2]*o)*o}return h}function S(h){for(var y=h.length;h[--y]===0;);h.length=y+1}function C(h){for(var y=new Array(h),k=-1;++k<h;)y[k]=0;return y}function I(h){return h>0?Math.floor(h):Math.ceil(h)}function D(h,y){var k=h.length,O=y.length,j=new Array(k),N=0,q=o,K,te;for(te=0;te<O;te++)K=h[te]+y[te]+N,N=K>=q?1:0,j[te]=K-N*q;for(;te<k;)K=h[te]+N,N=K===q?1:0,j[te++]=K-N*q;return N>0&&j.push(N),j}function T(h,y){return h.length>=y.length?D(h,y):D(y,h)}function L(h,y){var k=h.length,O=new Array(k),j=o,N,q;for(q=0;q<k;q++)N=h[q]-j+y,y=Math.floor(N/j),O[q]=N-y*j,y+=1;for(;y>0;)O[q++]=y%j,y=Math.floor(y/j);return O}d.prototype.add=function(h){var y=H(h);if(this.sign!==y.sign)return this.subtract(y.negate());var k=this.value,O=y.value;return y.isSmall?new d(L(k,Math.abs(O)),this.sign):new d(T(k,O),this.sign)},d.prototype.plus=d.prototype.add,p.prototype.add=function(h){var y=H(h),k=this.value;if(k<0!==y.sign)return this.subtract(y.negate());var O=y.value;if(y.isSmall){if(x(k+O))return new p(k+O);O=E(Math.abs(O))}return new d(L(O,Math.abs(k)),k<0)},p.prototype.plus=p.prototype.add,g.prototype.add=function(h){return new g(this.value+H(h).value)},g.prototype.plus=g.prototype.add;function M(h,y){var k=h.length,O=y.length,j=new Array(k),N=0,q=o,K,te;for(K=0;K<O;K++)te=h[K]-N-y[K],te<0?(te+=q,N=1):N=0,j[K]=te;for(K=O;K<k;K++){if(te=h[K]-N,te<0)te+=q;else{j[K++]=te;break}j[K]=te}for(;K<k;K++)j[K]=h[K];return S(j),j}function P(h,y,k){var O;return we(h,y)>=0?O=M(h,y):(O=M(y,h),k=!k),O=v(O),typeof O=="number"?(k&&(O=-O),new p(O)):new d(O,k)}function z(h,y,k){var O=h.length,j=new Array(O),N=-y,q=o,K,te;for(K=0;K<O;K++)te=h[K]+N,N=Math.floor(te/q),te%=q,j[K]=te<0?te+q:te;return j=v(j),typeof j=="number"?(k&&(j=-j),new p(j)):new d(j,k)}d.prototype.subtract=function(h){var y=H(h);if(this.sign!==y.sign)return this.add(y.negate());var k=this.value,O=y.value;return y.isSmall?z(k,Math.abs(O),this.sign):P(k,O,this.sign)},d.prototype.minus=d.prototype.subtract,p.prototype.subtract=function(h){var y=H(h),k=this.value;if(k<0!==y.sign)return this.add(y.negate());var O=y.value;return y.isSmall?new p(k-O):z(O,Math.abs(k),k>=0)},p.prototype.minus=p.prototype.subtract,g.prototype.subtract=function(h){return new g(this.value-H(h).value)},g.prototype.minus=g.prototype.subtract,d.prototype.negate=function(){return new d(this.value,!this.sign)},p.prototype.negate=function(){var h=this.sign,y=new p(-this.value);return y.sign=!h,y},g.prototype.negate=function(){return new g(-this.value)},d.prototype.abs=function(){return new d(this.value,!1)},p.prototype.abs=function(){return new p(Math.abs(this.value))},g.prototype.abs=function(){return new g(this.value>=0?this.value:-this.value)};function J(h,y){var k=h.length,O=y.length,j=k+O,N=C(j),q=o,K,te,ke,ve,me;for(ke=0;ke<k;++ke){ve=h[ke];for(var je=0;je<O;++je)me=y[je],K=ve*me+N[ke+je],te=Math.floor(K/q),N[ke+je]=K-te*q,N[ke+je+1]+=te}return S(N),N}function le(h,y){var k=h.length,O=new Array(k),j=o,N=0,q,K;for(K=0;K<k;K++)q=h[K]*y+N,N=Math.floor(q/j),O[K]=q-N*j;for(;N>0;)O[K++]=N%j,N=Math.floor(N/j);return O}function re(h,y){for(var k=[];y-- >0;)k.push(0);return k.concat(h)}function ee(h,y){var k=Math.max(h.length,y.length);if(k<=30)return J(h,y);k=Math.ceil(k/2);var O=h.slice(k),j=h.slice(0,k),N=y.slice(k),q=y.slice(0,k),K=ee(j,q),te=ee(O,N),ke=ee(T(j,O),T(q,N)),ve=T(T(K,re(M(M(ke,K),te),k)),re(te,2*k));return S(ve),ve}function ce(h,y){return-.012*h-.012*y+15e-6*h*y>0}d.prototype.multiply=function(h){var y=H(h),k=this.value,O=y.value,j=this.sign!==y.sign,N;if(y.isSmall){if(O===0)return u[0];if(O===1)return this;if(O===-1)return this.negate();if(N=Math.abs(O),N<o)return new d(le(k,N),j);O=E(N)}return ce(k.length,O.length)?new d(ee(k,O),j):new d(J(k,O),j)},d.prototype.times=d.prototype.multiply;function se(h,y,k){return h<o?new d(le(y,h),k):new d(J(y,E(h)),k)}p.prototype._multiplyBySmall=function(h){return x(h.value*this.value)?new p(h.value*this.value):se(Math.abs(h.value),E(Math.abs(this.value)),this.sign!==h.sign)},d.prototype._multiplyBySmall=function(h){return h.value===0?u[0]:h.value===1?this:h.value===-1?this.negate():se(Math.abs(h.value),this.value,this.sign!==h.sign)},p.prototype.multiply=function(h){return H(h)._multiplyBySmall(this)},p.prototype.times=p.prototype.multiply,g.prototype.multiply=function(h){return new g(this.value*H(h).value)},g.prototype.times=g.prototype.multiply;function xe(h){var y=h.length,k=C(y+y),O=o,j,N,q,K,te;for(q=0;q<y;q++){K=h[q],N=0-K*K;for(var ke=q;ke<y;ke++)te=h[ke],j=2*(K*te)+k[q+ke]+N,N=Math.floor(j/O),k[q+ke]=j-N*O;k[q+y]=N}return S(k),k}d.prototype.square=function(){return new d(xe(this.value),!1)},p.prototype.square=function(){var h=this.value*this.value;return x(h)?new p(h):new d(xe(E(Math.abs(this.value))),!1)},g.prototype.square=function(h){return new g(this.value*this.value)};function R(h,y){var k=h.length,O=y.length,j=o,N=C(y.length),q=y[O-1],K=Math.ceil(j/(2*q)),te=le(h,K),ke=le(y,K),ve,me,je,Ot,yt,Ci,Si;for(te.length<=k&&te.push(0),ke.push(0),q=ke[O-1],me=k-O;me>=0;me--){for(ve=j-1,te[me+O]!==q&&(ve=Math.floor((te[me+O]*j+te[me+O-1])/q)),je=0,Ot=0,Ci=ke.length,yt=0;yt<Ci;yt++)je+=ve*ke[yt],Si=Math.floor(je/j),Ot+=te[me+yt]-(je-Si*j),je=Si,Ot<0?(te[me+yt]=Ot+j,Ot=-1):(te[me+yt]=Ot,Ot=0);for(;Ot!==0;){for(ve-=1,je=0,yt=0;yt<Ci;yt++)je+=te[me+yt]-j+ke[yt],je<0?(te[me+yt]=je+j,je=0):(te[me+yt]=je,je=1);Ot+=je}N[me]=ve}return te=U(te,K)[0],[v(N),v(te)]}function Y(h,y){for(var k=h.length,O=y.length,j=[],N=[],q=o,K,te,ke,ve,me;k;){if(N.unshift(h[--k]),S(N),we(N,y)<0){j.push(0);continue}te=N.length,ke=N[te-1]*q+N[te-2],ve=y[O-1]*q+y[O-2],te>O&&(ke=(ke+1)*q),K=Math.ceil(ke/ve);do{if(me=le(y,K),we(me,N)<=0)break;K--}while(K);j.push(K),N=M(N,me)}return j.reverse(),[v(j),v(N)]}function U(h,y){var k=h.length,O=C(k),j=o,N,q,K,te;for(K=0,N=k-1;N>=0;--N)te=K*j+h[N],q=I(te/y),K=te-q*y,O[N]=q|0;return[O,K|0]}function ue(h,y){var k,O=H(y);if(f)return[new g(h.value/O.value),new g(h.value%O.value)];var j=h.value,N=O.value,q;if(N===0)throw new Error("Cannot divide by zero");if(h.isSmall)return O.isSmall?[new p(I(j/N)),new p(j%N)]:[u[0],h];if(O.isSmall){if(N===1)return[h,u[0]];if(N==-1)return[h.negate(),u[0]];var K=Math.abs(N);if(K<o){k=U(j,K),q=v(k[0]);var te=k[1];return h.sign&&(te=-te),typeof q=="number"?(h.sign!==O.sign&&(q=-q),[new p(q),new p(te)]):[new d(q,h.sign!==O.sign),new p(te)]}N=E(K)}var ke=we(j,N);if(ke===-1)return[u[0],h];if(ke===0)return[u[h.sign===O.sign?1:-1],u[0]];j.length+N.length<=200?k=R(j,N):k=Y(j,N),q=k[0];var ve=h.sign!==O.sign,me=k[1],je=h.sign;return typeof q=="number"?(ve&&(q=-q),q=new p(q)):q=new d(q,ve),typeof me=="number"?(je&&(me=-me),me=new p(me)):me=new d(me,je),[q,me]}d.prototype.divmod=function(h){var y=ue(this,h);return{quotient:y[0],remainder:y[1]}},g.prototype.divmod=p.prototype.divmod=d.prototype.divmod,d.prototype.divide=function(h){return ue(this,h)[0]},g.prototype.over=g.prototype.divide=function(h){return new g(this.value/H(h).value)},p.prototype.over=p.prototype.divide=d.prototype.over=d.prototype.divide,d.prototype.mod=function(h){return ue(this,h)[1]},g.prototype.mod=g.prototype.remainder=function(h){return new g(this.value%H(h).value)},p.prototype.remainder=p.prototype.mod=d.prototype.remainder=d.prototype.mod,d.prototype.pow=function(h){var y=H(h),k=this.value,O=y.value,j,N,q;if(O===0)return u[1];if(k===0)return u[0];if(k===1)return u[1];if(k===-1)return y.isEven()?u[1]:u[-1];if(y.sign)return u[0];if(!y.isSmall)throw new Error("The exponent "+y.toString()+" is too large.");if(this.isSmall&&x(j=Math.pow(k,O)))return new p(I(j));for(N=this,q=u[1];O&!0&&(q=q.times(N),--O),O!==0;)O/=2,N=N.square();return q},p.prototype.pow=d.prototype.pow,g.prototype.pow=function(h){var y=H(h),k=this.value,O=y.value,j=BigInt(0),N=BigInt(1),q=BigInt(2);if(O===j)return u[1];if(k===j)return u[0];if(k===N)return u[1];if(k===BigInt(-1))return y.isEven()?u[1]:u[-1];if(y.isNegative())return new g(j);for(var K=this,te=u[1];(O&N)===N&&(te=te.times(K),--O),O!==j;)O/=q,K=K.square();return te},d.prototype.modPow=function(h,y){if(h=H(h),y=H(y),y.isZero())throw new Error("Cannot take modPow with modulus 0");var k=u[1],O=this.mod(y);for(h.isNegative()&&(h=h.multiply(u[-1]),O=O.modInv(y));h.isPositive();){if(O.isZero())return u[0];h.isOdd()&&(k=k.multiply(O).mod(y)),h=h.divide(2),O=O.square().mod(y)}return k},g.prototype.modPow=p.prototype.modPow=d.prototype.modPow;function we(h,y){if(h.length!==y.length)return h.length>y.length?1:-1;for(var k=h.length-1;k>=0;k--)if(h[k]!==y[k])return h[k]>y[k]?1:-1;return 0}d.prototype.compareAbs=function(h){var y=H(h),k=this.value,O=y.value;return y.isSmall?1:we(k,O)},p.prototype.compareAbs=function(h){var y=H(h),k=Math.abs(this.value),O=y.value;return y.isSmall?(O=Math.abs(O),k===O?0:k>O?1:-1):-1},g.prototype.compareAbs=function(h){var y=this.value,k=H(h).value;return y=y>=0?y:-y,k=k>=0?k:-k,y===k?0:y>k?1:-1},d.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var y=H(h),k=this.value,O=y.value;return this.sign!==y.sign?y.sign?1:-1:y.isSmall?this.sign?-1:1:we(k,O)*(this.sign?-1:1)},d.prototype.compareTo=d.prototype.compare,p.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var y=H(h),k=this.value,O=y.value;return y.isSmall?k==O?0:k>O?1:-1:k<0!==y.sign?k<0?-1:1:k<0?1:-1},p.prototype.compareTo=p.prototype.compare,g.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var y=this.value,k=H(h).value;return y===k?0:y>k?1:-1},g.prototype.compareTo=g.prototype.compare,d.prototype.equals=function(h){return this.compare(h)===0},g.prototype.eq=g.prototype.equals=p.prototype.eq=p.prototype.equals=d.prototype.eq=d.prototype.equals,d.prototype.notEquals=function(h){return this.compare(h)!==0},g.prototype.neq=g.prototype.notEquals=p.prototype.neq=p.prototype.notEquals=d.prototype.neq=d.prototype.notEquals,d.prototype.greater=function(h){return this.compare(h)>0},g.prototype.gt=g.prototype.greater=p.prototype.gt=p.prototype.greater=d.prototype.gt=d.prototype.greater,d.prototype.lesser=function(h){return this.compare(h)<0},g.prototype.lt=g.prototype.lesser=p.prototype.lt=p.prototype.lesser=d.prototype.lt=d.prototype.lesser,d.prototype.greaterOrEquals=function(h){return this.compare(h)>=0},g.prototype.geq=g.prototype.greaterOrEquals=p.prototype.geq=p.prototype.greaterOrEquals=d.prototype.geq=d.prototype.greaterOrEquals,d.prototype.lesserOrEquals=function(h){return this.compare(h)<=0},g.prototype.leq=g.prototype.lesserOrEquals=p.prototype.leq=p.prototype.lesserOrEquals=d.prototype.leq=d.prototype.lesserOrEquals,d.prototype.isEven=function(){return(this.value[0]&1)===0},p.prototype.isEven=function(){return(this.value&1)===0},g.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},d.prototype.isOdd=function(){return(this.value[0]&1)===1},p.prototype.isOdd=function(){return(this.value&1)===1},g.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},d.prototype.isPositive=function(){return!this.sign},p.prototype.isPositive=function(){return this.value>0},g.prototype.isPositive=p.prototype.isPositive,d.prototype.isNegative=function(){return this.sign},p.prototype.isNegative=function(){return this.value<0},g.prototype.isNegative=p.prototype.isNegative,d.prototype.isUnit=function(){return!1},p.prototype.isUnit=function(){return Math.abs(this.value)===1},g.prototype.isUnit=function(){return this.abs().value===BigInt(1)},d.prototype.isZero=function(){return!1},p.prototype.isZero=function(){return this.value===0},g.prototype.isZero=function(){return this.value===BigInt(0)},d.prototype.isDivisibleBy=function(h){var y=H(h);return y.isZero()?!1:y.isUnit()?!0:y.compareAbs(2)===0?this.isEven():this.mod(y).isZero()},g.prototype.isDivisibleBy=p.prototype.isDivisibleBy=d.prototype.isDivisibleBy;function Ee(h){var y=h.abs();if(y.isUnit())return!1;if(y.equals(2)||y.equals(3)||y.equals(5))return!0;if(y.isEven()||y.isDivisibleBy(3)||y.isDivisibleBy(5))return!1;if(y.lesser(49))return!0}function Qe(h,y){for(var k=h.prev(),O=k,j=0,N,q,K;O.isEven();)O=O.divide(2),j++;e:for(q=0;q<y.length;q++)if(!h.lesser(y[q])&&(K=t(y[q]).modPow(O,h),!(K.isUnit()||K.equals(k)))){for(N=j-1;N!=0;N--){if(K=K.square().mod(h),K.isUnit())return!1;if(K.equals(k))continue e}return!1}return!0}d.prototype.isPrime=function(h){var y=Ee(this);if(y!==n)return y;var k=this.abs(),O=k.bitLength();if(O<=64)return Qe(k,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var j=Math.log(2)*O.toJSNumber(),N=Math.ceil(h===!0?2*Math.pow(j,2):j),q=[],K=0;K<N;K++)q.push(t(K+2));return Qe(k,q)},g.prototype.isPrime=p.prototype.isPrime=d.prototype.isPrime,d.prototype.isProbablePrime=function(h,y){var k=Ee(this);if(k!==n)return k;for(var O=this.abs(),j=h===n?5:h,N=[],q=0;q<j;q++)N.push(t.randBetween(2,O.minus(2),y));return Qe(O,N)},g.prototype.isProbablePrime=p.prototype.isProbablePrime=d.prototype.isProbablePrime,d.prototype.modInv=function(h){for(var y=t.zero,k=t.one,O=H(h),j=this.abs(),N,q,K;!j.isZero();)N=O.divide(j),q=y,K=O,y=k,O=j,k=q.subtract(N.multiply(k)),j=K.subtract(N.multiply(j));if(!O.isUnit())throw new Error(this.toString()+" and "+h.toString()+" are not co-prime");return y.compare(0)===-1&&(y=y.add(h)),this.isNegative()?y.negate():y},g.prototype.modInv=p.prototype.modInv=d.prototype.modInv,d.prototype.next=function(){var h=this.value;return this.sign?z(h,1,this.sign):new d(L(h,1),this.sign)},p.prototype.next=function(){var h=this.value;return h+1<i?new p(h+1):new d(s,!1)},g.prototype.next=function(){return new g(this.value+BigInt(1))},d.prototype.prev=function(){var h=this.value;return this.sign?new d(L(h,1),!0):z(h,1,this.sign)},p.prototype.prev=function(){var h=this.value;return h-1>-i?new p(h-1):new d(s,!0)},g.prototype.prev=function(){return new g(this.value-BigInt(1))};for(var et=[1];2*et[et.length-1]<=o;)et.push(2*et[et.length-1]);var Mt=et.length,jt=et[Mt-1];function Fn(h){return Math.abs(h)<=o}d.prototype.shiftLeft=function(h){var y=H(h).toJSNumber();if(!Fn(y))throw new Error(String(y)+" is too large for shifting.");if(y<0)return this.shiftRight(-y);var k=this;if(k.isZero())return k;for(;y>=Mt;)k=k.multiply(jt),y-=Mt-1;return k.multiply(et[y])},g.prototype.shiftLeft=p.prototype.shiftLeft=d.prototype.shiftLeft,d.prototype.shiftRight=function(h){var y,k=H(h).toJSNumber();if(!Fn(k))throw new Error(String(k)+" is too large for shifting.");if(k<0)return this.shiftLeft(-k);for(var O=this;k>=Mt;){if(O.isZero()||O.isNegative()&&O.isUnit())return O;y=ue(O,jt),O=y[1].isNegative()?y[0].prev():y[0],k-=Mt-1}return y=ue(O,et[k]),y[1].isNegative()?y[0].prev():y[0]},g.prototype.shiftRight=p.prototype.shiftRight=d.prototype.shiftRight;function Ct(h,y,k){y=H(y);for(var O=h.isNegative(),j=y.isNegative(),N=O?h.not():h,q=j?y.not():y,K=0,te=0,ke=null,ve=null,me=[];!N.isZero()||!q.isZero();)ke=ue(N,jt),K=ke[1].toJSNumber(),O&&(K=jt-1-K),ve=ue(q,jt),te=ve[1].toJSNumber(),j&&(te=jt-1-te),N=ke[0],q=ve[0],me.push(k(K,te));for(var je=k(O?1:0,j?1:0)!==0?t(-1):t(0),Ot=me.length-1;Ot>=0;Ot-=1)je=je.multiply(jt).add(t(me[Ot]));return je}d.prototype.not=function(){return this.negate().prev()},g.prototype.not=p.prototype.not=d.prototype.not,d.prototype.and=function(h){return Ct(this,h,function(y,k){return y&k})},g.prototype.and=p.prototype.and=d.prototype.and,d.prototype.or=function(h){return Ct(this,h,function(y,k){return y|k})},g.prototype.or=p.prototype.or=d.prototype.or,d.prototype.xor=function(h){return Ct(this,h,function(y,k){return y^k})},g.prototype.xor=p.prototype.xor=d.prototype.xor;var St=1<<30,ht=(o&-o)*(o&-o)|St;function ot(h){var y=h.value,k=typeof y=="number"?y|St:typeof y=="bigint"?y|BigInt(St):y[0]+y[1]*o|ht;return k&-k}function bo(h,y){if(y.compareTo(h)<=0){var k=bo(h,y.square(y)),O=k.p,j=k.e,N=O.multiply(y);return N.compareTo(h)<=0?{p:N,e:j*2+1}:{p:O,e:j*2}}return{p:t(1),e:0}}d.prototype.bitLength=function(){var h=this;return h.compareTo(t(0))<0&&(h=h.negate().subtract(t(1))),h.compareTo(t(0))===0?t(0):t(bo(h,t(2)).e).add(t(1))},g.prototype.bitLength=p.prototype.bitLength=d.prototype.bitLength;function ft(h,y){return h=H(h),y=H(y),h.greater(y)?h:y}function w(h,y){return h=H(h),y=H(y),h.lesser(y)?h:y}function A(h,y){if(h=H(h).abs(),y=H(y).abs(),h.equals(y))return h;if(h.isZero())return y;if(y.isZero())return h;for(var k=u[1],O,j;h.isEven()&&y.isEven();)O=w(ot(h),ot(y)),h=h.divide(O),y=y.divide(O),k=k.multiply(O);for(;h.isEven();)h=h.divide(ot(h));do{for(;y.isEven();)y=y.divide(ot(y));h.greater(y)&&(j=y,y=h,h=j),y=y.subtract(h)}while(!y.isZero());return k.isUnit()?h:h.multiply(k)}function B(h,y){return h=H(h).abs(),y=H(y).abs(),h.divide(A(h,y)).multiply(y)}function V(h,y,k){h=H(h),y=H(y);var O=k||Math.random,j=w(h,y),N=ft(h,y),q=N.subtract(j).add(1);if(q.isSmall)return j.add(Math.floor(O()*q));for(var K=Z(q,o).value,te=[],ke=!0,ve=0;ve<K.length;ve++){var me=ke?K[ve]+(ve+1<K.length?K[ve+1]/o:0):o,je=I(O()*me);te.push(je),je<K[ve]&&(ke=!1)}return j.add(u.fromArray(te,o,!1))}var W=function(h,y,k,O){k=k||a,h=String(h),O||(h=h.toLowerCase(),k=k.toLowerCase());var j=h.length,N,q=Math.abs(y),K={};for(N=0;N<k.length;N++)K[k[N]]=N;for(N=0;N<j;N++){var te=h[N];if(te!=="-"&&te in K&&K[te]>=q){if(te==="1"&&q===1)continue;throw new Error(te+" is not a valid digit in base "+y+".")}}y=H(y);var ke=[],ve=h[0]==="-";for(N=ve?1:0;N<h.length;N++){var te=h[N];if(te in K)ke.push(H(K[te]));else if(te==="<"){var me=N;do N++;while(h[N]!==">"&&N<h.length);ke.push(H(h.slice(me+1,N)))}else throw new Error(te+" is not a valid character")}return ne(ke,y,ve)};function ne(h,y,k){var O=u[0],j=u[1],N;for(N=h.length-1;N>=0;N--)O=O.add(h[N].times(j)),j=j.times(y);return k?O.negate():O}function ie(h,y){return y=y||a,h<y.length?y[h]:"<"+h+">"}function Z(h,y){if(y=t(y),y.isZero()){if(h.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(y.equals(-1)){if(h.isZero())return{value:[0],isNegative:!1};if(h.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-h.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var k=Array.apply(null,Array(h.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return k.unshift([1]),{value:[].concat.apply([],k),isNegative:!1}}var O=!1;if(h.isNegative()&&y.isPositive()&&(O=!0,h=h.abs()),y.isUnit())return h.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(h.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:O};for(var j=[],N=h,q;N.isNegative()||N.compareAbs(y)>=0;){q=N.divmod(y),N=q.quotient;var K=q.remainder;K.isNegative()&&(K=y.minus(K).abs(),N=N.next()),j.push(K.toJSNumber())}return j.push(N.toJSNumber()),{value:j.reverse(),isNegative:O}}function Q(h,y,k){var O=Z(h,y);return(O.isNegative?"-":"")+O.value.map(function(j){return ie(j,k)}).join("")}d.prototype.toArray=function(h){return Z(this,h)},p.prototype.toArray=function(h){return Z(this,h)},g.prototype.toArray=function(h){return Z(this,h)},d.prototype.toString=function(h,y){if(h===n&&(h=10),h!==10)return Q(this,h,y);for(var k=this.value,O=k.length,j=String(k[--O]),N="0000000",q;--O>=0;)q=String(k[O]),j+=N.slice(q.length)+q;var K=this.sign?"-":"";return K+j},p.prototype.toString=function(h,y){return h===n&&(h=10),h!=10?Q(this,h,y):String(this.value)},g.prototype.toString=p.prototype.toString,g.prototype.toJSON=d.prototype.toJSON=p.prototype.toJSON=function(){return this.toString()},d.prototype.valueOf=function(){return parseInt(this.toString(),10)},d.prototype.toJSNumber=d.prototype.valueOf,p.prototype.valueOf=function(){return this.value},p.prototype.toJSNumber=p.prototype.valueOf,g.prototype.valueOf=g.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function X(h){if(x(+h)){var y=+h;if(y===I(y))return f?new g(BigInt(y)):new p(y);throw new Error("Invalid integer: "+h)}var k=h[0]==="-";k&&(h=h.slice(1));var O=h.split(/e/i);if(O.length>2)throw new Error("Invalid integer: "+O.join("e"));if(O.length===2){var j=O[1];if(j[0]==="+"&&(j=j.slice(1)),j=+j,j!==I(j)||!x(j))throw new Error("Invalid integer: "+j+" is not a valid exponent.");var N=O[0],q=N.indexOf(".");if(q>=0&&(j-=N.length-q-1,N=N.slice(0,q)+N.slice(q+1)),j<0)throw new Error("Cannot include negative exponent part for integers");N+=new Array(j+1).join("0"),h=N}var K=/^([0-9][0-9]*)$/.test(h);if(!K)throw new Error("Invalid integer: "+h);if(f)return new g(BigInt(k?"-"+h:h));for(var te=[],ke=h.length,ve=r,me=ke-ve;ke>0;)te.push(+h.slice(me,ke)),me-=ve,me<0&&(me=0),ke-=ve;return S(te),new d(te,k)}function fe(h){if(f)return new g(BigInt(h));if(x(h)){if(h!==I(h))throw new Error(h+" is not an integer.");return new p(h)}return X(h.toString())}function H(h){return typeof h=="number"?fe(h):typeof h=="string"?X(h):typeof h=="bigint"?new g(h):h}for(var de=0;de<1e3;de++)u[de]=H(de),de>0&&(u[-de]=H(-de));return u.one=u[1],u.zero=u[0],u.minusOne=u[-1],u.max=ft,u.min=w,u.gcd=A,u.lcm=B,u.isInstance=function(h){return h instanceof d||h instanceof p||h instanceof g},u.randBetween=V,u.fromArray=function(h,y,k){return ne(h.map(H),H(y||10),k)},u}();e.hasOwnProperty("exports")&&(e.exports=t)})(cb);async function ub(e,t,n){const o=new URLSearchParams({page:e.toString(),uid:n.toString(),sign:t,time:Li().toString()});return(await qt.post("https://115.com/web/lixian/?ct=lixian&ac=task_lists",o,{withCredentials:!0,timeout:6e4})).data}async function fb(){return(await qt.get(`https://115.com/?ct=offline&ac=space&_=${Date.now()}`,{timeout:3e4,withCredentials:!0})).data}async function db(){const t=(await qt.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 pb(e){const t=ru(e),o=(await qt.get("https://webapi.115.com/files?"+t,{timeout:12e4,withCredentials:!0})).data;if(o.state)return o;throw new Error(o.error)}async function hb(e,t=500){let n=[],o=0;for(;;){e.offset=o;const r=await pb(e);if(!r.data||!r.data.length||(n=[...n,...r.data],o+=e.limit,o>=r.count))break;await wo(t)}return n}async function mb(e){const t=ru(e),n=await qt.get("https://webapi.115.com/files/search?"+t,{timeout:12e4,withCredentials:!0});if(n.data==="")throw new Fu;const o=n.data;if(o.state)return o;throw new Ha(o.error)}async function gb(e,t=500,n=!1){let o=[],r=0,i=e.limit;const s=1e4,a=115,f=s-s%i;let u=i;for(;;){if(n){if(r>=f&&r<s){const p=s-f;u=Math.min(p,u)}r>=s&&(u=a)}e.offset=r,e.limit=u;const d=await mb(e);if(!d.data||!d.data.length||(o=[...o,...d.data],r+=u,r>=d.count))break;await wo(t)}return o}async function bb(e,t){const n=new URLSearchParams({pid:e,ignore_warn:"1"});return t.forEach((r,i)=>{n.append(`fid[${i}]`,r)}),(await qt.post("https://webapi.115.com/rb/delete",n,{timeout:12e4,withCredentials:!0})).data}async function Uu(e,t,n,o){let r=0,i=0;for(;;){const s=t.slice(r,r+n);if((await bb(e,s)).state&&(i+=s.length),r+=n,r>=t.length)break;await wo(o)}return i}async function yb(e,t){const n=new URLSearchParams({pid:e,cname:t});return(await qt.post("https://webapi.115.com/files/add",n,{timeout:12e4,withCredentials:!0})).data}async function wb(e,t){const n=new URLSearchParams({pid:e});return t.forEach((r,i)=>{n.append(`fid[${i}]`,r)}),(await qt.post("https://webapi.115.com/files/move",n,{timeout:12e4,withCredentials:!0})).data}async function vb(e){const t=new URLSearchParams({cid:e});return(await qt.get("https://webapi.115.com/category/get?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function _b(e,t,n,o){const r={uid:o.toString(),sign:t.sign,time:Li().toString()};n&&(r.flag="1");const i=ab(r);return e.forEach((a,f)=>{i.append(`hash[${f}]`,a)}),(await qt.post("https://115.com/web/lixian/?ct=lixian&ac=task_del",i,{timeout:12e4,withCredentials:!0})).data}async function Wn(e=!0){const t=Vr().GetCurWangPanCid();return!t&&e?(Vr().Core.MinMessage.Show({text:'不支持"根目录"!',timeout:1e3}),""):t}async function kb(e,t){let n=$(`li.temp-el[cate_id="${e}"]`);if(!n.length){const o=`
      <li class="selected temp-el" file_type="${0}">
        <input type="checkbox" value="${e}"/>
        <div class="checkbox" menu="file_check_one"></div>
        <div class="file-name-wrap">
          <span class="file-name" rel="file_name">
            <em>
              <a class="name" href="javascript:;" cate="1" menu="open" aid="1" cid="${e}" rel="view_folder">
                <span>名称</span>
              </a>
            </em>
          </span>
        </div>
      </li>
    `;n=$(o)}n.attr("title",t.file_name),n.find("a.name > span").text(t.file_name);for(let o in t){const r=typeof t[o];["string","number"].indexOf(r)>-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 rn(e){const t=e.attr("file_size"),n=e.attr("iv")==="1";return{fid:e.attr("file_id")||"",cid:e.attr("cid")||"",n:e.attr("title")||"",s:t?parseInt(t):0,pc:e.attr("pick_code")||"",t:e.attr("user_ptime")||"",te:"",tp:"",ico:e.attr("ico")||"",sha:e.attr("sha1")||"",iv:n,cate_id:e.attr("cate_id")||""}}function Vr(){return unsafeWindow.TOP?unsafeWindow.TOP:unsafeWindow}function $b(){return unsafeWindow.top===unsafeWindow?unsafeWindow.Ext:unsafeWindow.top.Ext}async function xb(e){return new Promise((t,n)=>{Vr().Core.DataAccess.Dir.GetDetail("1",e,o=>t(o))})}async function Eb(){const e=await Wn(),t=await xb(e);return await kb(e,t)}async function Ki(){return window.top!==window?$(document):$('iframe[name="wangpan"], .wrap-view iframe:eq(0)').contents()}async function Gi(){return(await Ki()).find(".list-contents, .list-thumb")}async function Cb(e){const t=await Gi();return e?t.find("li.selected"):t.find("li")}async function Hu(e){const t=await Cb(e),n=[];for(let o=0;o<t.length;o++){const r=t.eq(o),i=await rn(r);n.push(i)}return n}async function Sb(){const e=await Ki(),t=[];return e.find("#js_top_header_file_path_box .top-file-path > .file-path").children().each(function(){t.push($(this).text().trim().replace(/[›]$/,""))}),t}async function Ob(){const e=await Wn();(await Gi()).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 ko(e=!1){const t=await Wn();if(!t)return null;const n=await Gi(),o=await Eb();return e||o.hide(),n.find(`li[cate_id="${t}"]`).length||n.append(o),o}async function za(e,t,n){n&&await Ob(),Vr().Core.FileMenu.DoEvent([e],t,null)}function zu(e){return`https://115.com/?${new URLSearchParams({cid:e}).toString()}&offset=0&mode=wangpan`}function qa(e,t=""){const n=new URLSearchParams({aid:"1",cid:e.cid||"",old_cid:e.cid||"",old_cid_name:t,search_value:e.search_value,ct:"file",ac:"search",is_wl_tpl:"1"});return"https://115.com/?url="+encodeURIComponent(`/?${n.toString()}`)+"&submode=wangpan&mode=search"}function Nb(e){return`https://v.anxia.com/?${new URLSearchParams({pickcode:e,share_id:"0"}).toString()}`}async function Ab(e){unsafeWindow.Main.ReInstance({type:e.type,offset:0,o:uu.userPtime,asc:cu.false,star:e.star,suffix:e.suffix})}async function Ib(){return(await Gi()).find("li.selected")}async function Pb(){const e=await Ib();return e?await rn(e):null}function Tb(e){return e.replace(/[/\\:*?"<>|]/g,"_")}async function Lb(e){const n=(await vb(e.fid||e.cate_id)).paths.slice(1).map(i=>i.file_name).join("/"),o=Tb(e.n);return`/${n}/${o}`}const Db=[{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_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:"{变量名:upper}",label:"转大写"},{key:"{变量名:lower}",label:"转小写"},{key:"{变量名:number}",label:"转数字"},{key:"{变量名:manual}",label:"手动输入"}]}];async function Wa(e,t,n){var f;let o=t.url;const r={dir_id:"cid",file_id:"fid",pick_code:"pc",full_name:"n",file_suffix:"ico",file_hash:"sha",file_size:"s"},i=!!e.fid,s=/{(\w+)(:\w+(:\w+)?)?}/g,a=o.match(s);if(a)for(const u of a){const d=u.replace(/[{}]/g,"").split(":")[0],p=u.replace(/[{}]/g,"").split(":")[1];let g=((f=e[r[d]])==null?void 0:f.toString())||"",x="";switch(["file_path","file_dir","clouddrive_down_url","clouddrive_playlist_url"].includes(d)&&(x=await Lb(e)),d){case"pure_name":g=e.n.replace(/\.[^.]+$/,"");break;case"file_path":g=x;break;case"file_dir":g=x.replace(/\/[^/]+$/,"");break;case"clouddrive_down_url":g=await lu(n,x);break;case"clouddrive_playlist_url":let E="";i?E=x.replace(/\/[^/]+$/,""):E=x,g=await lu(n,E),g+=".clfsplaylist.m3u";break;case"cloud115_down_url":throw new Error(`暂不支持变量:${d}`);case"cloud115_down_cookie":throw new Error(`暂不支持变量:${d}`);case"user_agent":g=navigator.userAgent;break}if(g=g.toString(),p){const E=p.split(":");for(const v of E)switch(v){case"search":g=qa({search_value:g});break;case"encode":g=encodeURIComponent(g);break;case"base64":g=btoa(g);break;case"upper":g=g.toUpperCase();break;case"lower":g=g.toLowerCase();break;case"number":g=g.replace(/\D/g,"");break;case"manual":let{isConfirmed:S,value:C}=await Te.fire({title:"手动输入",input:"textarea",inputValue:g,showCancelButton:!0,inputValidator:I=>I?null:"输入不能为空!"});if(!S)throw new Error("已取消手动输入。");if(C=(C==null?void 0:C.trim())||"",C==="")throw new Error("输入不能为空!");g=C;break}}o=o.replace(u,g)}return t.mutation?await Mb(o,e,t,n):o}async function Mb(e,t,n,o){return await new Function("payload",n.mutation)({url:e,file:t,customUrl:n,cloudDriveConfig:o})}var $o=(e=>(e.search="search",e.play="play",e))($o||{});const qu={search:"menu_custom_urls_for_search",play:"menu_custom_urls_for_play"};async function Yi(e){return await At.get(qu[e],[])}async function Wu(e,t){await At.set(qu[e],t)}function Lt(e){return{enabled:!0,key:"",label:"",icon:"",memo:"",url:"",openInBackground:!1,...e}}const Ku="ce_menu_config";function jb(e){return{enabled:!0,openInNewTab:!0,search:!0,play:!0,getDownloadUrl:!0,copyNames:!0,...e}}function Rb(e){return{enabled:!0,copyNames:!0,...e}}function Vb(e){return{enabled:!0,moveToSelfNameDir:!0,copyNames:!0,...e}}function Bb(e){return{enabled:!0,rename:!0,delete:!0,play:!0,copyNames:!0,move:!0,copy:!0,copyTo:!0,viewProp:!0,...e}}function Fb(e){return{enabled:!0,hideSelectionMenuLabel:!1,enableInSearch:!0,[Ie.listItemHover]:jb(e==null?void 0:e[Ie.listItemHover]),[Ie.listItemContext]:Rb(e==null?void 0:e[Ie.listItemContext]),[Ie.selection]:Vb(e==null?void 0:e[Ie.selection]),[Ie.dirContext]:Bb(e==null?void 0:e[Ie.dirContext]),...e}}async function Gu(){const e=Fb(),t=await At.get(Ku,e);return{...e,...t}}async function Ub(e){await At.set(Ku,e)}const Vc=class{constructor(t){Se(this,"menuType",Ie.listItemHover);Se(this,"injectDecider");Se(this,"keyAttributeName","id");Se(this,"key");Se(this,"label");Se(this,"icon","");Se(this,"title","");Se(this,"onClick");Se(this,"onMouseOver");Se(this,"onMouseOut");Se(this,"subItems",[]);Se(this,"menuItemTemplates",{[Ie.dirContext]:{body:`<li id="{key}" class="ce-menu dir-context-menu">
        <a href="javascript:;">{icon}<span>{label}</span></a>
      </li>`,bodyFormMulti:`<li id="{key}" class="ce-menu ce-menu-parent dir-context-menu">
        {icon}<span class="ce-menu-trigger">{label}</span>
        <div class="ce-menu-dropdown sub-items"></div>
        </span>`},[Ie.dirContextSub]:{body:'<span id="{key}" class="ce-menu dir-context-menu-sub sub-item">{label}</span>'},[Ie.listItemContext]:{body:`<li id="{key}" class="ce-menu list-item-context-menu">
        <a href="javascript:;">{icon}<span>{label}</span></a>
      </li>`,bodyFormMulti:`<li id="{key}" class="ce-menu ce-menu-parent list-item-context-menu">
        {icon}<span class="ce-menu-trigger">{label}</span>
        <div class="ce-menu-dropdown sub-items"></div>
        </span>`},[Ie.listItemContextSub]:{body:'<span id="{key}" class="ce-menu list-item-context-menu-sub sub-item">{label}</span>'},[Ie.listItemHover]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu" style="">
        {icon}<span>{label}</span>
      </a>`,bodyFormMulti:`<span class="ce-menu ce-menu-parent list-item-hover-menu">
        {icon}<span class="ce-menu-trigger">{label}</span>
        <div class="ce-menu-dropdown sub-items"></div>
        </span>`},[Ie.listItemHoverSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu-sub" style="">
        {icon}<span>{label}</span>
      </a>`},[Ie.selection]:{body:'<li id="{key}" class="ce-menu selection-menu">{icon}<span>{label}</span></li>',bodyFormMulti:`<li class="ce-menu ce-menu-parent selection-menu">
        {icon}<span class="ce-menu-trigger">{label}</span>
        <div class="ce-menu-dropdown sub-items"></div>
        </li>`},[Ie.selectionSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu selection-menu-sub" style="">
        <span>{label}</span>
      </a>`}});t.menuType&&(this.menuType=t.menuType),t.injectDecider&&(this.injectDecider=t.injectDecider),this.key=t.key,this.label=t.label,this.icon=t.icon,this.title=t.title,this.onClick=t.onClick,this.onMouseOver&&(this.onMouseOver=t.onMouseOver),this.onMouseOut&&(this.onMouseOut=t.onMouseOut),t.subItems&&(this.subItems=t.subItems)}async decideInject(t){return this.injectDecider?await this.injectDecider(this,t):!0}async render(){var s;if(!this.menuType)throw new Error("未指定菜单类型");const t=this.menuItemTemplates[this.menuType];if(!t)throw new Error(`未找到菜单模板:${this.menuType}`);let n=t.body;if(this.subItems.length>0){if(!t.bodyFormMulti)throw new Error("未找到 bodyFormMulti 模版");n=t.bodyFormMulti}const o=document.createElement("div");let r="";this.icon&&(this.icon.match(/^(http|https|data:image)/)?r=`<img class="ce-menu-icon" src="${this.icon}" />`:r=`<i class="ce-menu-icon ${this.icon}"></i>`),o.innerHTML=n.replace(/{key}/g,this.key).replace(/{label}/g,this.label).replace(/{icon}/g,r);const i=o.firstElementChild;if(i.setAttribute("title",this.title||""),this.onClick&&i.addEventListener("click",async a=>{this.onClick(this,a)}),this.onMouseOver&&i.addEventListener("mouseover",async a=>{this.onMouseOver&&this.onMouseOver(this,a)}),this.onMouseOut&&i.addEventListener("mouseout",async a=>{this.onMouseOut&&this.onMouseOut(this,a)}),this.subItems.length>0)for(const a of this.subItems){const f=await a.render();(s=i.querySelector(".sub-items"))==null||s.appendChild(f)}return i}async closeMenu(){unsafeWindow.Core.FileMenu.HideRight(),document.dispatchEvent(new CustomEvent(Vc.EVENT_CLOSE_MENU,{detail:{menu:this}}))}};let sn=Vc;Se(sn,"EVENT_CLOSE_MENU","__closeMenu");async function Zi(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),r=o.find(".ce-menu-dropdown");o.addClass("ce-menu-dropdown-opened"),r.addClass("ce-menu-dropdown-active")}async function Ji(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),r=o.find(".ce-menu-dropdown");o.removeClass("ce-menu-dropdown-opened"),r.removeClass("ce-menu-dropdown-active")}class Wt extends sn{constructor(n){super(n);Se(this,"menuType",Ie.dirContext);this.onMouseOver=Zi,this.onMouseOut=Ji}}class Yu extends sn{constructor(n){super(n);Se(this,"menuType",Ie.listItemContext);this.onMouseOver=Zi,this.onMouseOut=Ji}}class Xi extends sn{constructor(n){super(n);Se(this,"menuType",Ie.listItemHover);this.onMouseOver=Zi,this.onMouseOut=Ji}}class Ka extends sn{constructor(){super(...arguments);Se(this,"menuType",Ie.listItemHoverSub)}}class Zu extends sn{constructor(n){super(n);Se(this,"menuType",Ie.selection);this.onMouseOver=Zi,this.onMouseOut=Ji}}class Hb extends sn{constructor(){super(...arguments);Se(this,"menuType",Ie.selectionSub)}}class Qi{constructor(t){Se(this,"items");Se(this,"siblingSelector");Se(this,"position");Se(this,"useObserver",!0);Se(this,"observeTarget",document.body);Se(this,"disposeObserverAfterInjection",!0);Se(this,"menuType");Se(this,"_observer");Se(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 Di(this.observeTarget,800,6048e5))[0]:this.observeTarget}async isMutationMatch(t){const n=t.addedNodes[0];if(n&&n.nodeType!==Node.ELEMENT_NODE)return!1;switch(this.menuType,Ie.dirContext,this.menuType){case Ie.listItemHover:return!0;case Ie.listItemContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="report"]');case Ie.selection:return!0;case Ie.dirContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="upload"]');default:return!1}}async handleChildListMutation(t){if(!await this.isMutationMatch(t))return;const n=await this.getContainers(t);await this.perform(n)}async perform(t){for(const n of t)await this.injectToContainer(n)}async getSibling(t){return t.querySelector(this.siblingSelector)}async getContainers(t){let n=[];const o=t.addedNodes[0];switch(this.menuType){case Ie.listItemHover:document.querySelectorAll("#js_data_list .list-contents > ul > li .file-opr").forEach(r=>{n.push(r)});break;case Ie.listItemContext:n=[o];break;case Ie.selection:document.querySelectorAll("#js_top_panel_box #js_operate_box").forEach(r=>{n.push(r)});break;case Ie.dirContext:n=[o];break}return n}async shouldInjectMenuItem(t,n){return await n.decideInject(t)?await this.decideInject(n,t):!1}async decideInject(t,n){return this.injectDecider?await this.injectDecider(t,n):!0}async injectToContainer(t){const n=await this.getSibling(t);if(!n)return;let o=this.items.slice();this.position===_o.after&&(o=o.reverse());for(let r=0;r<o.length;r++){if(!await this.shouldInjectMenuItem(t,o[r]))continue;const i=await o[r].render();this.position===_o.before?n.insertAdjacentElement("beforebegin",i):n.insertAdjacentElement("afterend",i)}}async isFileContainer(t){return!!t.getAttribute("file_id")}async isDirContainer(t){return!!t.getAttribute("cate_id")}async inject(){if(!!this.menuType)if(this.useObserver)await this.observe();else{const t=await this.getObserveTarget();if(!t)return;await this.injectToContainer(t)}}}class zb extends Qi{constructor(){super(...arguments);Se(this,"menuType",Ie.dirContext);Se(this,"useObserver",!0);Se(this,"observeTarget",document.body);Se(this,"disposeObserverAfterInjection",!0)}}class qb extends Qi{constructor(){super(...arguments);Se(this,"menuType",Ie.listItemContext)}}class Wb extends Qi{constructor(){super(...arguments);Se(this,"menuType",Ie.listItemHover);Se(this,"useObserver",!0);Se(this,"observeTarget","#js_data_list");Se(this,"disposeObserverAfterInjection",!1)}async inject(){const n=document.querySelector("#js_data_list");if(n){const o=n.querySelectorAll("#js_data_list .list-contents > ul > li .file-opr");o.length&&await this.perform(Array.from(o))}super.inject()}}class Kb extends Qi{constructor(){super(...arguments);Se(this,"menuType",Ie.selection);Se(this,"useObserver",!0);Se(this,"observeTarget","#js_top_panel_box #js_operate_box");Se(this,"disposeObserverAfterInjection",!1)}}async function Gb(e,t){return!!$(t).closest("li").attr("cate_id")}async function Yb(e,t){const n=$(t).closest("li");if(n.attr("iv")==="1")return!0;const o=n.attr("ico");return o?Ym(o):!1}async function Zb(e){if(!e.hideSelectionMenuLabel)return;const n=(await Di("#js_operate_box"))[0];new MutationObserver(async([r])=>{if(r.type==="childList"){const i=n.querySelectorAll("li[menu]");for(let s=0;s<i.length;s++){const a=i[s],f=a.textContent;a.setAttribute("title",f||"")}}}).observe(n,{childList:!0}),n.classList.add("only-icon")}async function Jb(e,t){const n=[];for(const o of t){const r=eu(e,{key:`_ce_s_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(i,s)=>{s.stopPropagation(),s.preventDefault();try{const a=$(s.target).closest("li"),f=await rn(a),u=await Lr(),d=await Wa(f,o,u);if(console.log("[search url]",d),!d)throw new Error("无法获取有效的搜索链接!");Um(d,{active:!o.openInBackground})}catch(a){console.error(a),Ae({title:"搜索失败",text:a.toString(),icon:"error"})}}});n.push(r)}return n}async function Xb(e,t){const n=[];for(const o of t){const r=eu(e,{key:`_ce_p_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(i,s)=>{s.stopPropagation(),s.preventDefault();try{const a=$(s.target).closest("li"),f=await rn(a),u=await Lr(),d=await Wa(f,o,u);if(console.log("[play url]",d),!d)throw new Error("无法获取有效的播放链接!");window.open(d,"_blank","noopener noreferrer")}catch(a){console.error(a),Ae({title:"播放失败",text:a.toString(),icon:"error"})}}});n.push(r)}return n}var vt=(e=>(e[e.full=0]="full",e[e.pure=1]="pure",e[e.fullUnique=2]="fullUnique",e[e.pureUnique=3]="pureUnique",e))(vt||{});async function es(e,t){if(t===0)return e;if(t===2)return Array.from(new Set(e));const n=[];for(const o of e){const r=o.replace(/\.[^.]+$/,"");t===1?n.push(r):t===3&&(n.includes(r)||n.push(r))}return n}async function Qb(e){return async(t,n)=>{const o=await Wn(),r=await Ki(),i=e?"li[file_id].selected":"li[file_id]",s=r[0].querySelectorAll(i);if(!s.length){Ae({title:"文件移动到同名目录",text:e?"当前目录没有选中文件":"当前目录没有文件",icon:"warning"});return}const{value:a}=await Te.fire({title:"文件移动到同名目录",text:e?`当前已选中${s.length}个文件,是否继续?`:`当前目录共有${s.length}个文件,是否继续?`,icon:"warning",showCancelButton:!0,confirmButtonText:"继续",cancelButtonText:"取消"});if(!!a){Te.fire({title:"文件移动到同名目录",html:"正在处理...",didOpen:()=>{Te.showLoading()}});for(let f=0;f<s.length;f++){const u=s[f],d=await rn($(u));if(!d.fid)continue;const p=d.n,g=p.replace(/\.[^\.]+$/,""),x=`${f+1} / ${s.length} - `+Math.round(f/s.length*100)+"%";Te.update({html:`${x} 正在为文件「${p}」创建目录「${g}」`});const E=await yb(o,g);Te.update({html:`${x} 正在移动文件「${p}」到目录「${g}」`}),await wb(E.cid,[d.fid]),await wo(500)}Te.hideLoading(),Te.update({html:"处理完成",icon:"success"})}}}function Kn(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}function _n(e){if(be(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Ye(o)?oy(o):_n(o);if(r)for(const i in r)t[i]=r[i]}return t}else{if(Ye(e))return e;if(Ue(e))return e}}const ey=/;(?![^(]*\))/g,ty=/:([^]+)/,ny=/\/\*.*?\*\//gs;function oy(e){const t={};return e.replace(ny,"").split(ey).forEach(n=>{if(n){const o=n.split(ty);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function at(e){let t="";if(Ye(e))t=e;else if(be(e))for(let n=0;n<e.length;n++){const o=at(e[n]);o&&(t+=o+" ")}else if(Ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ry(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ye(t)&&(e.class=at(t)),n&&(e.style=_n(n)),e}const iy="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",sy="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",ay=Kn(iy),ly=Kn(sy),cy=Kn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ju(e){return!!e||e===""}function uy(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=ts(e[o],t[o]);return n}function ts(e,t){if(e===t)return!0;let n=tf(e),o=tf(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=Fr(e),o=Fr(t),n||o)return e===t;if(n=be(e),o=be(t),n||o)return n&&o?uy(e,t):!1;if(n=Ue(e),o=Ue(t),n||o){if(!n||!o)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const s in e){const a=e.hasOwnProperty(s),f=t.hasOwnProperty(s);if(a&&!f||!a&&f||!ts(e[s],t[s]))return!1}}return String(e)===String(t)}function Xu(e,t){return e.findIndex(n=>ts(n,t))}const Ne=e=>Ye(e)?e:e==null?"":be(e)||Ue(e)&&(e.toString===nf||!$e(e.toString))?JSON.stringify(e,Qu,2):String(e),Qu=(e,t)=>t&&t.__v_isRef?Qu(e,t.value):xo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:os(t)?{[`Set(${t.size})`]:[...t.values()]}:Ue(t)&&!be(t)&&!of(t)?String(t):t,ze={}.NODE_ENV!=="production"?Object.freeze({}):{},or={}.NODE_ENV!=="production"?Object.freeze([]):[],mt=()=>{},ef=()=>!1,fy=/^on[^a-z]/,Br=e=>fy.test(e),ns=e=>e.startsWith("onUpdate:"),rt=Object.assign,Ga=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},dy=Object.prototype.hasOwnProperty,Le=(e,t)=>dy.call(e,t),be=Array.isArray,xo=e=>Ur(e)==="[object Map]",os=e=>Ur(e)==="[object Set]",tf=e=>Ur(e)==="[object Date]",$e=e=>typeof e=="function",Ye=e=>typeof e=="string",Fr=e=>typeof e=="symbol",Ue=e=>e!==null&&typeof e=="object",rs=e=>Ue(e)&&$e(e.then)&&$e(e.catch),nf=Object.prototype.toString,Ur=e=>nf.call(e),Ya=e=>Ur(e).slice(8,-1),of=e=>Ur(e)==="[object Object]",Za=e=>Ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,is=Kn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),py=Kn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ss=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},hy=/-(\w)/g,an=ss(e=>e.replace(hy,(t,n)=>n?n.toUpperCase():"")),my=/\B([A-Z])/g,kn=ss(e=>e.replace(my,"-$1").toLowerCase()),Eo=ss(e=>e.charAt(0).toUpperCase()+e.slice(1)),Co=ss(e=>e?`on${Eo(e)}`:""),Hr=(e,t)=>!Object.is(e,t),rr=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},as=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ja=e=>{const t=parseFloat(e);return isNaN(t)?e:t},gy=e=>{const t=Ye(e)?Number(e):NaN;return isNaN(t)?e:t};let rf;const sf=()=>rf||(rf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xa(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Kt;class by{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Kt,!t&&Kt&&(this.index=(Kt.scopes||(Kt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Kt;try{return Kt=this,t()}finally{Kt=n}}else({}).NODE_ENV!=="production"&&Xa("cannot run an inactive effect scope.")}on(){Kt=this}off(){Kt=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function yy(e,t=Kt){t&&t.active&&t.effects.push(e)}function wy(){return Kt}const zr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},af=e=>(e.w&Gn)>0,lf=e=>(e.n&Gn)>0,vy=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Gn},_y=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];af(r)&&!lf(r)?r.delete(e):t[n++]=r,r.w&=~Gn,r.n&=~Gn}t.length=n}},ls=new WeakMap;let qr=0,Gn=1;const Qa=30;let _t;const So=Symbol({}.NODE_ENV!=="production"?"iterate":""),el=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");class tl{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,yy(this,o)}run(){if(!this.active)return this.fn();let t=_t,n=Yn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=_t,_t=this,Yn=!0,Gn=1<<++qr,qr<=Qa?vy(this):cf(this),this.fn()}finally{qr<=Qa&&_y(this),Gn=1<<--qr,_t=this.parent,Yn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){_t===this?this.deferStop=!0:this.active&&(cf(this),this.onStop&&this.onStop(),this.active=!1)}}function cf(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Yn=!0;const uf=[];function Oo(){uf.push(Yn),Yn=!1}function No(){const e=uf.pop();Yn=e===void 0?!0:e}function kt(e,t,n){if(Yn&&_t){let o=ls.get(e);o||ls.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=zr());const i={}.NODE_ENV!=="production"?{effect:_t,target:e,type:t,key:n}:void 0;nl(r,i)}}function nl(e,t){let n=!1;qr<=Qa?lf(e)||(e.n|=Gn,n=!af(e)):n=!e.has(_t),n&&(e.add(_t),_t.deps.push(e),{}.NODE_ENV!=="production"&&_t.onTrack&&_t.onTrack(Object.assign({effect:_t},t)))}function $n(e,t,n,o,r,i){const s=ls.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(n==="length"&&be(e)){const u=Number(o);s.forEach((d,p)=>{(p==="length"||p>=u)&&a.push(d)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":be(e)?Za(n)&&a.push(s.get("length")):(a.push(s.get(So)),xo(e)&&a.push(s.get(el)));break;case"delete":be(e)||(a.push(s.get(So)),xo(e)&&a.push(s.get(el)));break;case"set":xo(e)&&a.push(s.get(So));break}const f={}.NODE_ENV!=="production"?{target:e,type:t,key:n,newValue:o,oldValue:r,oldTarget:i}:void 0;if(a.length===1)a[0]&&({}.NODE_ENV!=="production"?ir(a[0],f):ir(a[0]));else{const u=[];for(const d of a)d&&u.push(...d);({}).NODE_ENV!=="production"?ir(zr(u),f):ir(zr(u))}}function ir(e,t){const n=be(e)?e:[...e];for(const o of n)o.computed&&ff(o,t);for(const o of n)o.computed||ff(o,t)}function ff(e,t){(e!==_t||e.allowRecurse)&&({}.NODE_ENV!=="production"&&e.onTrigger&&e.onTrigger(rt({effect:e},t)),e.scheduler?e.scheduler():e.run())}function ky(e,t){var n;return(n=ls.get(e))===null||n===void 0?void 0:n.get(t)}const $y=Kn("__proto__,__v_isRef,__isVue"),df=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fr)),xy=cs(),Ey=cs(!1,!0),Cy=cs(!0),Sy=cs(!0,!0),pf=Oy();function Oy(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=Oe(this);for(let i=0,s=this.length;i<s;i++)kt(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(Oe)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Oo();const o=Oe(this)[t].apply(this,n);return No(),o}}),e}function Ny(e){const t=Oe(this);return kt(t,"has",e),t.hasOwnProperty(e)}function cs(e=!1,t=!1){return function(o,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?Ef:xf:t?$f:kf).get(o))return o;const s=be(o);if(!e){if(s&&Le(pf,r))return Reflect.get(pf,r,i);if(r==="hasOwnProperty")return Ny}const a=Reflect.get(o,r,i);return(Fr(r)?df.has(r):$y(r))||(e||kt(o,"get",r),t)?a:We(a)?s&&Za(r)?a:a.value:Ue(a)?e?Cf(a):ln(a):a}}const Ay=hf(),Iy=hf(!0);function hf(e=!1){return function(n,o,r,i){let s=n[o];if(Jn(s)&&We(s)&&!We(r))return!1;if(!e&&(!ys(r)&&!Jn(r)&&(s=Oe(s),r=Oe(r)),!be(n)&&We(s)&&!We(r)))return s.value=r,!0;const a=be(n)&&Za(o)?Number(o)<n.length:Le(n,o),f=Reflect.set(n,o,r,i);return n===Oe(i)&&(a?Hr(r,s)&&$n(n,"set",o,r,s):$n(n,"add",o,r)),f}}function Py(e,t){const n=Le(e,t),o=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&$n(e,"delete",t,void 0,o),r}function Ty(e,t){const n=Reflect.has(e,t);return(!Fr(t)||!df.has(t))&&kt(e,"has",t),n}function Ly(e){return kt(e,"iterate",be(e)?"length":So),Reflect.ownKeys(e)}const mf={get:xy,set:Ay,deleteProperty:Py,has:Ty,ownKeys:Ly},gf={get:Cy,set(e,t){return{}.NODE_ENV!=="production"&&Xa(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return{}.NODE_ENV!=="production"&&Xa(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Dy=rt({},mf,{get:Ey,set:Iy}),My=rt({},gf,{get:Sy}),ol=e=>e,us=e=>Reflect.getPrototypeOf(e);function fs(e,t,n=!1,o=!1){e=e.__v_raw;const r=Oe(e),i=Oe(t);n||(t!==i&&kt(r,"get",t),kt(r,"get",i));const{has:s}=us(r),a=o?ol:n?il:Wr;if(s.call(r,t))return a(e.get(t));if(s.call(r,i))return a(e.get(i));e!==r&&e.get(t)}function ds(e,t=!1){const n=this.__v_raw,o=Oe(n),r=Oe(e);return t||(e!==r&&kt(o,"has",e),kt(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function ps(e,t=!1){return e=e.__v_raw,!t&&kt(Oe(e),"iterate",So),Reflect.get(e,"size",e)}function bf(e){e=Oe(e);const t=Oe(this);return us(t).has.call(t,e)||(t.add(e),$n(t,"add",e,e)),this}function yf(e,t){t=Oe(t);const n=Oe(this),{has:o,get:r}=us(n);let i=o.call(n,e);i?{}.NODE_ENV!=="production"&&_f(n,o,e):(e=Oe(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?Hr(t,s)&&$n(n,"set",e,t,s):$n(n,"add",e,t),this}function wf(e){const t=Oe(this),{has:n,get:o}=us(t);let r=n.call(t,e);r?{}.NODE_ENV!=="production"&&_f(t,n,e):(e=Oe(e),r=n.call(t,e));const i=o?o.call(t,e):void 0,s=t.delete(e);return r&&$n(t,"delete",e,void 0,i),s}function vf(){const e=Oe(this),t=e.size!==0,n={}.NODE_ENV!=="production"?xo(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&$n(e,"clear",void 0,void 0,n),o}function hs(e,t){return function(o,r){const i=this,s=i.__v_raw,a=Oe(s),f=t?ol:e?il:Wr;return!e&&kt(a,"iterate",So),s.forEach((u,d)=>o.call(r,f(u),f(d),i))}}function ms(e,t,n){return function(...o){const r=this.__v_raw,i=Oe(r),s=xo(i),a=e==="entries"||e===Symbol.iterator&&s,f=e==="keys"&&s,u=r[e](...o),d=n?ol:t?il:Wr;return!t&&kt(i,"iterate",f?el:So),{next(){const{value:p,done:g}=u.next();return g?{value:p,done:g}:{value:a?[d(p[0]),d(p[1])]:d(p),done:g}},[Symbol.iterator](){return this}}}}function Zn(e){return function(...t){if({}.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${Eo(e)} operation ${n}failed: target is readonly.`,Oe(this))}return e==="delete"?!1:this}}function jy(){const e={get(i){return fs(this,i)},get size(){return ps(this)},has:ds,add:bf,set:yf,delete:wf,clear:vf,forEach:hs(!1,!1)},t={get(i){return fs(this,i,!1,!0)},get size(){return ps(this)},has:ds,add:bf,set:yf,delete:wf,clear:vf,forEach:hs(!1,!0)},n={get(i){return fs(this,i,!0)},get size(){return ps(this,!0)},has(i){return ds.call(this,i,!0)},add:Zn("add"),set:Zn("set"),delete:Zn("delete"),clear:Zn("clear"),forEach:hs(!0,!1)},o={get(i){return fs(this,i,!0,!0)},get size(){return ps(this,!0)},has(i){return ds.call(this,i,!0)},add:Zn("add"),set:Zn("set"),delete:Zn("delete"),clear:Zn("clear"),forEach:hs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ms(i,!1,!1),n[i]=ms(i,!0,!1),t[i]=ms(i,!1,!0),o[i]=ms(i,!0,!0)}),[e,n,t,o]}const[Ry,Vy,By,Fy]=jy();function gs(e,t){const n=t?e?Fy:By:e?Vy:Ry;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Le(n,r)&&r in o?n:o,r,i)}const Uy={get:gs(!1,!1)},Hy={get:gs(!1,!0)},zy={get:gs(!0,!1)},qy={get:gs(!0,!0)};function _f(e,t,n){const o=Oe(n);if(o!==n&&t.call(e,o)){const r=Ya(e);console.warn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="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 kf=new WeakMap,$f=new WeakMap,xf=new WeakMap,Ef=new WeakMap;function Wy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ky(e){return e.__v_skip||!Object.isExtensible(e)?0:Wy(Ya(e))}function ln(e){return Jn(e)?e:bs(e,!1,mf,Uy,kf)}function Gy(e){return bs(e,!1,Dy,Hy,$f)}function Cf(e){return bs(e,!0,gf,zy,xf)}function sr(e){return bs(e,!0,My,qy,Ef)}function bs(e,t,n,o,r){if(!Ue(e))return{}.NODE_ENV!=="production"&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Ky(e);if(s===0)return e;const a=new Proxy(e,s===2?o:n);return r.set(e,a),a}function Gt(e){return Jn(e)?Gt(e.__v_raw):!!(e&&e.__v_isReactive)}function Jn(e){return!!(e&&e.__v_isReadonly)}function ys(e){return!!(e&&e.__v_isShallow)}function ws(e){return Gt(e)||Jn(e)}function Oe(e){const t=e&&e.__v_raw;return t?Oe(t):e}function rl(e){return as(e,"__v_skip",!0),e}const Wr=e=>Ue(e)?ln(e):e,il=e=>Ue(e)?Cf(e):e;function Sf(e){Yn&&_t&&(e=Oe(e),{}.NODE_ENV!=="production"?nl(e.dep||(e.dep=zr()),{target:e,type:"get",key:"value"}):nl(e.dep||(e.dep=zr())))}function sl(e,t){e=Oe(e);const n=e.dep;n&&({}.NODE_ENV!=="production"?ir(n,{target:e,type:"set",key:"value",newValue:t}):ir(n))}function We(e){return!!(e&&e.__v_isRef===!0)}function pe(e){return Yy(e,!1)}function Yy(e,t){return We(e)?e:new Zy(e,t)}class Zy{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Oe(t),this._value=n?t:Wr(t)}get value(){return Sf(this),this._value}set value(t){const n=this.__v_isShallow||ys(t)||Jn(t);t=n?t:Oe(t),Hr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Wr(t),sl(this,t))}}function vs(e){sl(e,{}.NODE_ENV!=="production"?e.value:void 0)}function qe(e){return We(e)?e.value:e}const Jy={get:(e,t,n)=>qe(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return We(r)&&!We(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Of(e){return Gt(e)?e:new Proxy(e,Jy)}function Xy(e){({}).NODE_ENV!=="production"&&!ws(e)&&console.warn("toRefs() expects a reactive object but received a plain one.");const t=be(e)?new Array(e.length):{};for(const n in e)t[n]=Nf(e,n);return t}class Qy{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 ky(Oe(this._object),this._key)}}function Nf(e,t,n){const o=e[t];return We(o)?o:new Qy(e,t,n)}var Af;class ew{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Af]=!1,this._dirty=!0,this.effect=new tl(t,()=>{this._dirty||(this._dirty=!0,sl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=Oe(this);return Sf(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Af="__v_isReadonly";function tw(e,t,n=!1){let o,r;const i=$e(e);i?(o=e,r={}.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:mt):(o=e.get,r=e.set);const s=new ew(o,r,i||!r,n);return{}.NODE_ENV!=="production"&&t&&!n&&(s.effect.onTrack=t.onTrack,s.effect.onTrigger=t.onTrigger),s}const Ao=[];function Kr(e){Ao.push(e)}function Gr(){Ao.pop()}function oe(e,...t){if({}.NODE_ENV==="production")return;Oo();const n=Ao.length?Ao[Ao.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=nw();if(o)xn(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Ls(n,i.type)}>`).join(`
`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
`,...ow(r)),console.warn(...i)}No()}function nw(){let e=Ao[Ao.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function ow(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
`],...rw(n))}),t}function rw({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Ls(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...iw(e.props),i]:[r+i]}function iw(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...If(o,e[o]))}),n.length>3&&t.push(" ..."),t}function If(e,t,n){return Ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:We(t)?(t=If(e,Oe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):$e(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Oe(t),n?t:[`${e}=`,t])}function sw(e,t){({}).NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?oe(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&oe(`${t} is NaN - the duration expression might be incorrect.`))}const al={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 xn(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Yr(i,t,n)}return r}function Yt(e,t,n,o){if($e(e)){const i=xn(e,t,n,o);return i&&rs(i)&&i.catch(s=>{Yr(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Yt(e[i],t,n,o));return r}function Yr(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,a={}.NODE_ENV!=="production"?al[n]:n;for(;i;){const u=i.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,s,a)===!1)return}i=i.parent}const f=t.appContext.config.errorHandler;if(f){xn(f,null,10,[e,s,a]);return}}aw(e,n,r,o)}function aw(e,t,n,o=!0){if({}.NODE_ENV!=="production"){const r=al[t];if(n&&Kr(n),oe(`Unhandled error${r?` during execution of ${r}`:""}`),n&&Gr(),o)throw e;console.error(e)}else console.error(e)}let Zr=!1,ll=!1;const bt=[];let cn=0;const ar=[];let un=null,Xn=0;const Pf=Promise.resolve();let cl=null;const lw=100;function ul(e){const t=cl||Pf;return e?t.then(this?e.bind(this):e):t}function cw(e){let t=cn+1,n=bt.length;for(;t<n;){const o=t+n>>>1;Jr(bt[o])<e?t=o+1:n=o}return t}function _s(e){(!bt.length||!bt.includes(e,Zr&&e.allowRecurse?cn+1:cn))&&(e.id==null?bt.push(e):bt.splice(cw(e.id),0,e),Tf())}function Tf(){!Zr&&!ll&&(ll=!0,cl=Pf.then(Mf))}function uw(e){const t=bt.indexOf(e);t>cn&&bt.splice(t,1)}function fl(e){be(e)?ar.push(...e):(!un||!un.includes(e,e.allowRecurse?Xn+1:Xn))&&ar.push(e),Tf()}function Lf(e,t=Zr?cn+1:0){for({}.NODE_ENV!=="production"&&(e=e||new Map);t<bt.length;t++){const n=bt[t];if(n&&n.pre){if({}.NODE_ENV!=="production"&&dl(e,n))continue;bt.splice(t,1),t--,n()}}}function Df(e){if(ar.length){const t=[...new Set(ar)];if(ar.length=0,un){un.push(...t);return}for(un=t,{}.NODE_ENV!=="production"&&(e=e||new Map),un.sort((n,o)=>Jr(n)-Jr(o)),Xn=0;Xn<un.length;Xn++)({}).NODE_ENV!=="production"&&dl(e,un[Xn])||un[Xn]();un=null,Xn=0}}const Jr=e=>e.id==null?1/0:e.id,fw=(e,t)=>{const n=Jr(e)-Jr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Mf(e){ll=!1,Zr=!0,{}.NODE_ENV!=="production"&&(e=e||new Map),bt.sort(fw);const t={}.NODE_ENV!=="production"?n=>dl(e,n):mt;try{for(cn=0;cn<bt.length;cn++){const n=bt[cn];if(n&&n.active!==!1){if({}.NODE_ENV!=="production"&&t(n))continue;xn(n,null,14)}}}finally{cn=0,bt.length=0,Df(e),Zr=!1,cl=null,(bt.length||ar.length)&&Mf(e)}}function dl(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>lw){const o=t.ownerInstance,r=o&&Fl(o.type);return oe(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. 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 Qn=!1;const lr=new Set;({}).NODE_ENV!=="production"&&(sf().__VUE_HMR_RUNTIME__={createRecord:pl(jf),rerender:pl(hw),reload:pl(mw)});const Io=new Map;function dw(e){const t=e.type.__hmrId;let n=Io.get(t);n||(jf(t,e.type),n=Io.get(t)),n.instances.add(e)}function pw(e){Io.get(e.type.__hmrId).instances.delete(e)}function jf(e,t){return Io.has(e)?!1:(Io.set(e,{initialDef:Xr(t),instances:new Set}),!0)}function Xr(e){return Od(e)?e.__vccOpts:e}function hw(e,t){const n=Io.get(e);!n||(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,Xr(o.type).render=t),o.renderCache=[],Qn=!0,o.update(),Qn=!1}))}function mw(e,t){const n=Io.get(e);if(!n)return;t=Xr(t),Rf(n.initialDef,t);const o=[...n.instances];for(const r of o){const i=Xr(r.type);lr.has(i)||(i!==n.initialDef&&Rf(i,t),lr.add(i)),r.appContext.optionsCache.delete(r.type),r.ceReload?(lr.add(i),r.ceReload(t.styles),lr.delete(i)):r.parent?_s(r.parent.update):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}fl(()=>{for(const r of o)lr.delete(Xr(r.type))})}function Rf(e,t){rt(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function pl(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 fn,Qr=[],hl=!1;function ei(e,...t){fn?fn.emit(e,...t):hl||Qr.push({event:e,args:t})}function Vf(e,t){var n,o;fn=e,fn?(fn.enabled=!0,Qr.forEach(({event:r,args:i})=>fn.emit(r,...i)),Qr=[]):typeof window<"u"&&window.HTMLElement&&!(!((o=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Vf(i,t)}),setTimeout(()=>{fn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,hl=!0,Qr=[])},3e3)):(hl=!0,Qr=[])}function gw(e,t){ei("app:init",e,t,{Fragment:Ze,Text:si,Comment:xt,Static:ai})}function bw(e){ei("app:unmount",e)}const yw=ml("component:added"),Bf=ml("component:updated"),ww=ml("component:removed"),vw=e=>{fn&&typeof fn.cleanupBuffer=="function"&&!fn.cleanupBuffer(e)&&ww(e)};function ml(e){return t=>{ei(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const _w=Ff("perf:start"),kw=Ff("perf:end");function Ff(e){return(t,n,o)=>{ei(e,t.appContext.app,t.uid,t,n,o)}}function $w(e,t,n){ei("component:emit",e.appContext.app,e,t,n)}function xw(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ze;if({}.NODE_ENV!=="production"){const{emitsOptions:d,propsOptions:[p]}=e;if(d)if(!(t in d))(!p||!(Co(t)in p))&&oe(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Co(t)}" prop.`);else{const g=d[t];$e(g)&&(g(...n)||oe(`Invalid event arguments: event validation failed for event "${t}".`))}}let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const d=`${s==="modelValue"?"model":s}Modifiers`,{number:p,trim:g}=o[d]||ze;g&&(r=n.map(x=>Ye(x)?x.trim():x)),p&&(r=n.map(Ja))}if({}.NODE_ENV!=="production"&&$w(e,t,r),{}.NODE_ENV!=="production"){const d=t.toLowerCase();d!==t&&o[Co(d)]&&oe(`Event "${d}" is emitted in component ${Ls(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 "${kn(t)}" instead of "${t}".`)}let a,f=o[a=Co(t)]||o[a=Co(an(t))];!f&&i&&(f=o[a=Co(kn(t))]),f&&Yt(f,e,6,r);const u=o[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Yt(u,e,6,r)}}function Uf(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},a=!1;if(!$e(e)){const f=u=>{const d=Uf(u,t,!0);d&&(a=!0,rt(s,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!a?(Ue(e)&&o.set(e,null),null):(be(i)?i.forEach(f=>s[f]=null):rt(s,i),Ue(e)&&o.set(e,s),s)}function ks(e,t){return!e||!Br(t)?!1:(t=t.slice(2).replace(/Once$/,""),Le(e,t[0].toLowerCase()+t.slice(1))||Le(e,kn(t))||Le(e,t))}let lt=null,$s=null;function xs(e){const t=lt;return lt=e,$s=e&&e.type.__scopeId||null,t}function Ew(e){$s=e}function Cw(){$s=null}const Sw=e=>Ke;function Ke(e,t=lt,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&yd(-1);const i=xs(t);let s;try{s=e(...r)}finally{xs(i),o._d&&yd(1)}return{}.NODE_ENV!=="production"&&Bf(t),s};return o._n=!0,o._c=!0,o._d=!0,o}let gl=!1;function Es(){gl=!0}function bl(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:f,emit:u,render:d,renderCache:p,data:g,setupState:x,ctx:E,inheritAttrs:v}=e;let S,C;const I=xs(e);({}).NODE_ENV!=="production"&&(gl=!1);try{if(n.shapeFlag&4){const L=r||o;S=Ht(d.call(L,L,p,i,x,g,E)),C=f}else{const L=t;({}).NODE_ENV!=="production"&&f===i&&Es(),S=Ht(L.length>1?L(i,{}.NODE_ENV!=="production"?{get attrs(){return Es(),f},slots:a,emit:u}:{attrs:f,slots:a,emit:u}):L(i,null)),C=t.props?f:Nw(f)}}catch(L){li.length=0,Yr(L,e,1),S=Ce(xt)}let D=S,T;if({}.NODE_ENV!=="production"&&S.patchFlag>0&&S.patchFlag&2048&&([D,T]=Ow(S)),C&&v!==!1){const L=Object.keys(C),{shapeFlag:M}=D;if(L.length){if(M&7)s&&L.some(ns)&&(C=Aw(C,s)),D=oo(D,C);else if({}.NODE_ENV!=="production"&&!gl&&D.type!==xt){const P=Object.keys(f),z=[],J=[];for(let le=0,re=P.length;le<re;le++){const ee=P[le];Br(ee)?ns(ee)||z.push(ee[2].toLowerCase()+ee.slice(3)):J.push(ee)}J.length&&oe(`Extraneous non-props attributes (${J.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),z.length&&oe(`Extraneous non-emits event listeners (${z.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&({}.NODE_ENV!=="production"&&!Hf(D)&&oe("Runtime directive used on component with non-element root node. The directives will not function as intended."),D=oo(D),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&({}.NODE_ENV!=="production"&&!Hf(D)&&oe("Component inside <Transition> renders non-element root node that cannot be animated."),D.transition=n.transition),{}.NODE_ENV!=="production"&&T?T(D):S=D,xs(I),S}const Ow=e=>{const t=e.children,n=e.dynamicChildren,o=yl(t);if(!o)return[e,void 0];const r=t.indexOf(o),i=n?n.indexOf(o):-1,s=a=>{t[r]=a,n&&(i>-1?n[i]=a:a.patchFlag>0&&(e.dynamicChildren=[...n,a]))};return[Ht(o),s]};function yl(e){let t;for(let n=0;n<e.length;n++){const o=e[n];if(pr(o)){if(o.type!==xt||o.children==="v-if"){if(t)return;t=o}}else return}return t}const Nw=e=>{let t;for(const n in e)(n==="class"||n==="style"||Br(n))&&((t||(t={}))[n]=e[n]);return t},Aw=(e,t)=>{const n={};for(const o in e)(!ns(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n},Hf=e=>e.shapeFlag&7||e.type===xt;function Iw(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:f}=t,u=i.emitsOptions;if({}.NODE_ENV!=="production"&&(r||a)&&Qn||t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return o?zf(o,s,u):!!s;if(f&8){const d=t.dynamicProps;for(let p=0;p<d.length;p++){const g=d[p];if(s[g]!==o[g]&&!ks(u,g))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===s?!1:o?s?zf(o,s,u):!0:!!s;return!1}function zf(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!ks(n,i))return!0}return!1}function wl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Pw=e=>e.__isSuspense,qf={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,a,f,u){e==null?Tw(t,n,o,r,i,s,a,f,u):Lw(e,t,n,o,r,s,a,f,u)},hydrate:Dw,create:vl,normalize:Mw};function ti(e,t){const n=e.props&&e.props[t];$e(n)&&n()}function Tw(e,t,n,o,r,i,s,a,f){const{p:u,o:{createElement:d}}=f,p=d("div"),g=e.suspense=vl(e,r,o,t,p,n,i,s,a,f);u(null,g.pendingBranch=e.ssContent,p,null,o,g,i,s),g.deps>0?(ti(e,"onPending"),ti(e,"onFallback"),u(null,e.ssFallback,t,n,o,null,i,s),cr(g,e.ssFallback)):g.resolve()}function Lw(e,t,n,o,r,i,s,a,{p:f,um:u,o:{createElement:d}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const g=t.ssContent,x=t.ssFallback,{activeBranch:E,pendingBranch:v,isInFallback:S,isHydrating:C}=p;if(v)p.pendingBranch=g,no(g,v)?(f(v,g,p.hiddenContainer,null,r,p,i,s,a),p.deps<=0?p.resolve():S&&(f(E,x,n,o,r,null,i,s,a),cr(p,x))):(p.pendingId++,C?(p.isHydrating=!1,p.activeBranch=v):u(v,r,p),p.deps=0,p.effects.length=0,p.hiddenContainer=d("div"),S?(f(null,g,p.hiddenContainer,null,r,p,i,s,a),p.deps<=0?p.resolve():(f(E,x,n,o,r,null,i,s,a),cr(p,x))):E&&no(g,E)?(f(E,g,n,o,r,p,i,s,a),p.resolve(!0)):(f(null,g,p.hiddenContainer,null,r,p,i,s,a),p.deps<=0&&p.resolve()));else if(E&&no(g,E))f(E,g,n,o,r,p,i,s,a),cr(p,g);else if(ti(t,"onPending"),p.pendingBranch=g,p.pendingId++,f(null,g,p.hiddenContainer,null,r,p,i,s,a),p.deps<=0)p.resolve();else{const{timeout:I,pendingId:D}=p;I>0?setTimeout(()=>{p.pendingId===D&&p.fallback(x)},I):I===0&&p.fallback(x)}}let Wf=!1;function vl(e,t,n,o,r,i,s,a,f,u,d=!1){({}).NODE_ENV!=="production"&&!0&&!Wf&&(Wf=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p,m:g,um:x,n:E,o:{parentNode:v,remove:S}}=u,C=e.props?gy(e.props.timeout):void 0;({}).NODE_ENV!=="production"&&sw(C,"Suspense timeout");const I={vnode:e,parent:t,parentComponent:n,isSVG:s,container:o,hiddenContainer:r,anchor:i,deps:0,pendingId:0,timeout:typeof C=="number"?C:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(D=!1){if({}.NODE_ENV!=="production"){if(!D&&!I.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(I.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:T,activeBranch:L,pendingBranch:M,pendingId:P,effects:z,parentComponent:J,container:le}=I;if(I.isHydrating)I.isHydrating=!1;else if(!D){const ce=L&&M.transition&&M.transition.mode==="out-in";ce&&(L.transition.afterLeave=()=>{P===I.pendingId&&g(M,le,se,0)});let{anchor:se}=I;L&&(se=E(L),x(L,J,I,!0)),ce||g(M,le,se,0)}cr(I,M),I.pendingBranch=null,I.isInFallback=!1;let re=I.parent,ee=!1;for(;re;){if(re.pendingBranch){re.effects.push(...z),ee=!0;break}re=re.parent}ee||fl(z),I.effects=[],ti(T,"onResolve")},fallback(D){if(!I.pendingBranch)return;const{vnode:T,activeBranch:L,parentComponent:M,container:P,isSVG:z}=I;ti(T,"onFallback");const J=E(L),le=()=>{!I.isInFallback||(p(null,D,P,J,M,null,z,a,f),cr(I,D))},re=D.transition&&D.transition.mode==="out-in";re&&(L.transition.afterLeave=le),I.isInFallback=!0,x(L,M,null,!0),re||le()},move(D,T,L){I.activeBranch&&g(I.activeBranch,D,T,L),I.container=D},next(){return I.activeBranch&&E(I.activeBranch)},registerDep(D,T){const L=!!I.pendingBranch;L&&I.deps++;const M=D.vnode.el;D.asyncDep.catch(P=>{Yr(P,D,0)}).then(P=>{if(D.isUnmounted||I.isUnmounted||I.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:z}=D;({}).NODE_ENV!=="production"&&Kr(z),Vl(D,P,!1),M&&(z.el=M);const J=!M&&D.subTree.el;T(D,z,v(M||D.subTree.el),M?null:E(D.subTree),I,s,f),J&&S(J),wl(D,z.el),{}.NODE_ENV!=="production"&&Gr(),L&&--I.deps===0&&I.resolve()})},unmount(D,T){I.isUnmounted=!0,I.activeBranch&&x(I.activeBranch,n,D,T),I.pendingBranch&&x(I.pendingBranch,n,D,T)}};return I}function Dw(e,t,n,o,r,i,s,a,f){const u=t.suspense=vl(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,a,!0),d=f(e,u.pendingBranch=t.ssContent,n,u,i,s);return u.deps===0&&u.resolve(),d}function Mw(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=Kf(o?n.default:n),e.ssFallback=o?Kf(n.fallback):Ce(xt)}function Kf(e){let t;if($e(e)){const n=dr&&e._c;n&&(e._d=!1,ae()),e=e(),n&&(e._d=!0,t=Ft,bd())}if(be(e)){const n=yl(e);({}).NODE_ENV!=="production"&&!n&&oe("<Suspense> slots expect a single root node."),e=n}return e=Ht(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function jw(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):fl(e)}function cr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,r=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=r,wl(o,r))}function ur(e,t){if(!Xe)({}).NODE_ENV!=="production"&&oe("provide() can only be used inside setup().");else{let n=Xe.provides;const o=Xe.parent&&Xe.parent.provides;o===n&&(n=Xe.provides=Object.create(o)),n[e]=t}}function dn(e,t,n=!1){const o=Xe||lt;if(o){const r=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&$e(t)?t.call(o.proxy):t;({}).NODE_ENV!=="production"&&oe(`injection "${String(e)}" not found.`)}else({}).NODE_ENV!=="production"&&oe("inject() can only be used inside setup() or functional components.")}function eo(e,t){return _l(e,null,t)}const Cs={};function nt(e,t,n){return{}.NODE_ENV!=="production"&&!$e(t)&&oe("`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."),_l(e,t,n)}function _l(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=ze){({}).NODE_ENV!=="production"&&!t&&(n!==void 0&&oe('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&oe('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const a=T=>{oe("Invalid watch source: ",T,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},f=wy()===(Xe==null?void 0:Xe.scope)?Xe:null;let u,d=!1,p=!1;if(We(e)?(u=()=>e.value,d=ys(e)):Gt(e)?(u=()=>e,o=!0):be(e)?(p=!0,d=e.some(T=>Gt(T)||ys(T)),u=()=>e.map(T=>{if(We(T))return T.value;if(Gt(T))return Po(T);if($e(T))return xn(T,f,2);({}).NODE_ENV!=="production"&&a(T)})):$e(e)?t?u=()=>xn(e,f,2):u=()=>{if(!(f&&f.isUnmounted))return g&&g(),Yt(e,f,3,[x])}:(u=mt,{}.NODE_ENV!=="production"&&a(e)),t&&o){const T=u;u=()=>Po(T())}let g,x=T=>{g=I.onStop=()=>{xn(T,f,4)}},E;if(ci)if(x=mt,t?n&&Yt(t,f,3,[u(),p?[]:void 0,x]):u(),r==="sync"){const T=Vv();E=T.__watcherHandles||(T.__watcherHandles=[])}else return mt;let v=p?new Array(e.length).fill(Cs):Cs;const S=()=>{if(!!I.active)if(t){const T=I.run();(o||d||(p?T.some((L,M)=>Hr(L,v[M])):Hr(T,v)))&&(g&&g(),Yt(t,f,3,[T,v===Cs?void 0:p&&v[0]===Cs?[]:v,x]),v=T)}else I.run()};S.allowRecurse=!!t;let C;r==="sync"?C=S:r==="post"?C=()=>It(S,f&&f.suspense):(S.pre=!0,f&&(S.id=f.uid),C=()=>_s(S));const I=new tl(u,C);({}).NODE_ENV!=="production"&&(I.onTrack=i,I.onTrigger=s),t?n?S():v=I.run():r==="post"?It(I.run.bind(I),f&&f.suspense):I.run();const D=()=>{I.stop(),f&&f.scope&&Ga(f.scope.effects,I)};return E&&E.push(D),D}function Rw(e,t,n){const o=this.proxy,r=Ye(e)?e.includes(".")?Gf(o,e):()=>o[e]:e.bind(o,o);let i;$e(t)?i=t:(i=t.handler,n=t);const s=Xe;io(this);const a=_l(r,i.bind(o),n);return s?io(s):so(),a}function Gf(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Po(e,t){if(!Ue(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),We(e))Po(e.value,t);else if(be(e))for(let n=0;n<e.length;n++)Po(e[n],t);else if(os(e)||xo(e))e.forEach(n=>{Po(n,t)});else if(of(e))for(const n in e)Po(e[n],t);return e}function Me(e){return $e(e)?{setup:e,name:e.name}:e}const ni=e=>!!e.type.__asyncLoader,kl=e=>e.type.__isKeepAlive;function Vw(e,t){Yf(e,"a",t)}function Bw(e,t){Yf(e,"da",t)}function Yf(e,t,n=Xe){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ss(t,o,n),n){let r=n.parent;for(;r&&r.parent;)kl(r.parent.vnode)&&Fw(o,t,n,r),r=r.parent}}function Fw(e,t,n,o){const r=Ss(t,e,o,!0);oi(()=>{Ga(o[t],r)},n)}function Ss(e,t,n=Xe,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Oo(),io(n);const a=Yt(t,n,e,s);return so(),No(),a});return o?r.unshift(i):r.push(i),i}else if({}.NODE_ENV!=="production"){const r=Co(al[e].replace(/ hook$/,""));oe(`${r} 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 En=e=>(t,n=Xe)=>(!ci||e==="sp")&&Ss(e,(...o)=>t(...o),n),pn=En("bm"),hn=En("m"),Uw=En("bu"),Hw=En("u"),$l=En("bum"),oi=En("um"),zw=En("sp"),qw=En("rtg"),Ww=En("rtc");function Kw(e,t=Xe){Ss("ec",e,t)}function Zf(e){py(e)&&oe("Do not use built-in directive ids as custom directive id: "+e)}function ge(e,t){const n=lt;if(n===null)return{}.NODE_ENV!=="production"&&oe("withDirectives can only be used inside render functions."),e;const o=Ts(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,a,f,u=ze]=t[i];s&&($e(s)&&(s={mounted:s,updated:s}),s.deep&&Po(a),r.push({dir:s,instance:o,value:a,oldValue:void 0,arg:f,modifiers:u}))}return e}function To(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const a=r[s];i&&(a.oldValue=i[s].value);let f=a.dir[o];f&&(Oo(),Yt(f,n,8,[e.el,a,e,t]),No())}}const xl="components";function Cn(e,t){return Yw(xl,e,!0,t)||e}const Gw=Symbol();function Yw(e,t,n=!0,o=!1){const r=lt||Xe;if(r){const i=r.type;if(e===xl){const a=Fl(i,!1);if(a&&(a===t||a===an(t)||a===Eo(an(t))))return i}const s=Jf(r[e]||i[e],t)||Jf(r.appContext[e],t);if(!s&&o)return i;if({}.NODE_ENV!=="production"&&n&&!s){const a=e===xl?`
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";oe(`Failed to resolve ${e.slice(0,-1)}: ${t}${a}`)}return s}else({}).NODE_ENV!=="production"&&oe(`resolve${Eo(e.slice(0,-1))} can only be used in render() or setup().`)}function Jf(e,t){return e&&(e[t]||e[an(t)]||e[Eo(an(t))])}function Bt(e,t,n,o){let r;const i=n&&n[o];if(be(e)||Ye(e)){r=new Array(e.length);for(let s=0,a=e.length;s<a;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(e)&&oe(`The v-for range expect an integer value but got ${e}.`),r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(Ue(e))if(e[Symbol.iterator])r=Array.from(e,(s,a)=>t(s,a,void 0,i&&i[a]));else{const s=Object.keys(e);r=new Array(s.length);for(let a=0,f=s.length;a<f;a++){const u=s[a];r[a]=t(e[u],u,a,i&&i[a])}}else r=[];return n&&(n[o]=r),r}function Sn(e,t,n={},o,r){if(lt.isCE||lt.parent&&ni(lt.parent)&&lt.parent.isCE)return t!=="default"&&(n.name=t),Ce("slot",n,o&&o());let i=e[t];({}).NODE_ENV!=="production"&&i&&i.length>1&&(oe("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),i=()=>[]),i&&i._c&&(i._d=!1),ae();const s=i&&Xf(i(n)),a=Ut(Ze,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Xf(e){return e.some(t=>pr(t)?!(t.type===xt||t.type===Ze&&!Xf(t.children)):!0)?e:null}const El=e=>e?Ed(e)?Ts(e)||e.proxy:El(e.parent):null,Lo=rt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>({}).NODE_ENV!=="production"?sr(e.props):e.props,$attrs:e=>({}).NODE_ENV!=="production"?sr(e.attrs):e.attrs,$slots:e=>({}).NODE_ENV!=="production"?sr(e.slots):e.slots,$refs:e=>({}).NODE_ENV!=="production"?sr(e.refs):e.refs,$parent:e=>El(e.parent),$root:e=>El(e.root),$emit:e=>e.emit,$options:e=>Nl(e),$forceUpdate:e=>e.f||(e.f=()=>_s(e.update)),$nextTick:e=>e.n||(e.n=ul.bind(e.proxy)),$watch:e=>Rw.bind(e)}),Cl=e=>e==="_"||e==="$",Sl=(e,t)=>e!==ze&&!e.__isScriptSetup&&Le(e,t),Qf={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:f}=e;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let u;if(t[0]!=="$"){const x=s[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Sl(o,t))return s[t]=1,o[t];if(r!==ze&&Le(r,t))return s[t]=2,r[t];if((u=e.propsOptions[0])&&Le(u,t))return s[t]=3,i[t];if(n!==ze&&Le(n,t))return s[t]=4,n[t];Ol&&(s[t]=0)}}const d=Lo[t];let p,g;if(d)return t==="$attrs"&&(kt(e,"get",t),{}.NODE_ENV!=="production"&&Es()),d(e);if((p=a.__cssModules)&&(p=p[t]))return p;if(n!==ze&&Le(n,t))return s[t]=4,n[t];if(g=f.config.globalProperties,Le(g,t))return g[t];({}).NODE_ENV!=="production"&&lt&&(!Ye(t)||t.indexOf("__v")!==0)&&(r!==ze&&Cl(t[0])&&Le(r,t)?oe(`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===lt&&oe(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Sl(r,t)?(r[t]=n,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&Le(r,t)?(oe(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==ze&&Le(o,t)?(o[t]=n,!0):Le(e.props,t)?({}.NODE_ENV!=="production"&&oe(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?({}.NODE_ENV!=="production"&&oe(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let a;return!!n[s]||e!==ze&&Le(e,s)||Sl(t,s)||(a=i[0])&&Le(a,s)||Le(o,s)||Le(Lo,s)||Le(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};({}).NODE_ENV!=="production"&&(Qf.ownKeys=e=>(oe("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function Zw(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(Lo).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>Lo[n](e),set:mt})}),t}function Jw(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(o=>{Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>e.props[o],set:mt})})}function Xw(e){const{ctx:t,setupState:n}=e;Object.keys(Oe(n)).forEach(o=>{if(!n.__isScriptSetup){if(Cl(o[0])){oe(`setup() return property ${JSON.stringify(o)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>n[o],set:mt})}})}function Qw(){const e=Object.create(null);return(t,n)=>{e[n]?oe(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let Ol=!0;function ev(e){const t=Nl(e),n=e.proxy,o=e.ctx;Ol=!1,t.beforeCreate&&ed(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:f,inject:u,created:d,beforeMount:p,mounted:g,beforeUpdate:x,updated:E,activated:v,deactivated:S,beforeDestroy:C,beforeUnmount:I,destroyed:D,unmounted:T,render:L,renderTracked:M,renderTriggered:P,errorCaptured:z,serverPrefetch:J,expose:le,inheritAttrs:re,components:ee,directives:ce,filters:se}=t,xe={}.NODE_ENV!=="production"?Qw():null;if({}.NODE_ENV!=="production"){const[Y]=e.propsOptions;if(Y)for(const U in Y)xe("Props",U)}if(u&&tv(u,o,xe,e.appContext.config.unwrapInjectedRef),s)for(const Y in s){const U=s[Y];$e(U)?({}.NODE_ENV!=="production"?Object.defineProperty(o,Y,{value:U.bind(n),configurable:!0,enumerable:!0,writable:!0}):o[Y]=U.bind(n),{}.NODE_ENV!=="production"&&xe("Methods",Y)):{}.NODE_ENV!=="production"&&oe(`Method "${Y}" has type "${typeof U}" in the component definition. Did you reference the function correctly?`)}if(r){({}).NODE_ENV!=="production"&&!$e(r)&&oe("The data option must be a function. Plain object usage is no longer supported.");const Y=r.call(n,n);if({}.NODE_ENV!=="production"&&rs(Y)&&oe("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Ue(Y))({}).NODE_ENV!=="production"&&oe("data() should return an object.");else if(e.data=ln(Y),{}.NODE_ENV!=="production")for(const U in Y)xe("Data",U),Cl(U[0])||Object.defineProperty(o,U,{configurable:!0,enumerable:!0,get:()=>Y[U],set:mt})}if(Ol=!0,i)for(const Y in i){const U=i[Y],ue=$e(U)?U.bind(n,n):$e(U.get)?U.get.bind(n,n):mt;({}).NODE_ENV!=="production"&&ue===mt&&oe(`Computed property "${Y}" has no getter.`);const we=!$e(U)&&$e(U.set)?U.set.bind(n):{}.NODE_ENV!=="production"?()=>{oe(`Write operation failed: computed property "${Y}" is readonly.`)}:mt,Ee=gn({get:ue,set:we});Object.defineProperty(o,Y,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:Qe=>Ee.value=Qe}),{}.NODE_ENV!=="production"&&xe("Computed",Y)}if(a)for(const Y in a)td(a[Y],o,n,Y);if(f){const Y=$e(f)?f.call(n):f;Reflect.ownKeys(Y).forEach(U=>{ur(U,Y[U])})}d&&ed(d,e,"c");function R(Y,U){be(U)?U.forEach(ue=>Y(ue.bind(n))):U&&Y(U.bind(n))}if(R(pn,p),R(hn,g),R(Uw,x),R(Hw,E),R(Vw,v),R(Bw,S),R(Kw,z),R(Ww,M),R(qw,P),R($l,I),R(oi,T),R(zw,J),be(le))if(le.length){const Y=e.exposed||(e.exposed={});le.forEach(U=>{Object.defineProperty(Y,U,{get:()=>n[U],set:ue=>n[U]=ue})})}else e.exposed||(e.exposed={});L&&e.render===mt&&(e.render=L),re!=null&&(e.inheritAttrs=re),ee&&(e.components=ee),ce&&(e.directives=ce)}function tv(e,t,n=mt,o=!1){be(e)&&(e=Al(e));for(const r in e){const i=e[r];let s;Ue(i)?"default"in i?s=dn(i.from||r,i.default,!0):s=dn(i.from||r):s=dn(i),We(s)?o?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):({}.NODE_ENV!=="production"&&oe(`injected property "${r}" is a ref and will be auto-unwrapped and no longer needs \`.value\` in the next minor release. To opt-in to the new behavior now, set \`app.config.unwrapInjectedRef = true\` (this config is temporary and will not be needed in the future.)`),t[r]=s):t[r]=s,{}.NODE_ENV!=="production"&&n("Inject",r)}}function ed(e,t,n){Yt(be(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function td(e,t,n,o){const r=o.includes(".")?Gf(n,o):()=>n[o];if(Ye(e)){const i=t[e];$e(i)?nt(r,i):{}.NODE_ENV!=="production"&&oe(`Invalid watch handler specified by key "${e}"`,i)}else if($e(e))nt(r,e.bind(n));else if(Ue(e))if(be(e))e.forEach(i=>td(i,t,n,o));else{const i=$e(e.handler)?e.handler.bind(n):t[e.handler];$e(i)?nt(r,i,e):{}.NODE_ENV!=="production"&&oe(`Invalid watch handler specified by key "${e.handler}"`,i)}else({}).NODE_ENV!=="production"&&oe(`Invalid watch option: "${o}"`,e)}function Nl(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let f;return a?f=a:!r.length&&!n&&!o?f=t:(f={},r.length&&r.forEach(u=>Os(f,u,s,!0)),Os(f,t,s)),Ue(t)&&i.set(t,f),f}function Os(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Os(e,i,n,!0),r&&r.forEach(s=>Os(e,s,n,!0));for(const s in t)if(o&&s==="expose")({}).NODE_ENV!=="production"&&oe('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=nv[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const nv={data:nd,props:Do,emits:Do,methods:Do,computed:Do,beforeCreate:$t,created:$t,beforeMount:$t,mounted:$t,beforeUpdate:$t,updated:$t,beforeDestroy:$t,beforeUnmount:$t,destroyed:$t,unmounted:$t,activated:$t,deactivated:$t,errorCaptured:$t,serverPrefetch:$t,components:Do,directives:Do,watch:rv,provide:nd,inject:ov};function nd(e,t){return t?e?function(){return rt($e(e)?e.call(this,this):e,$e(t)?t.call(this,this):t)}:t:e}function ov(e,t){return Do(Al(e),Al(t))}function Al(e){if(be(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function $t(e,t){return e?[...new Set([].concat(e,t))]:t}function Do(e,t){return e?rt(rt(Object.create(null),e),t):t}function rv(e,t){if(!e)return t;if(!t)return e;const n=rt(Object.create(null),e);for(const o in t)n[o]=$t(e[o],t[o]);return n}function iv(e,t,n,o=!1){const r={},i={};as(i,Is,1),e.propsDefaults=Object.create(null),od(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);({}).NODE_ENV!=="production"&&ld(t||{},r,e),n?e.props=o?r:Gy(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function sv(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function av(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=Oe(r),[f]=e.propsOptions;let u=!1;if(!({}.NODE_ENV!=="production"&&sv(e))&&(o||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let g=d[p];if(ks(e.emitsOptions,g))continue;const x=t[g];if(f)if(Le(i,g))x!==i[g]&&(i[g]=x,u=!0);else{const E=an(g);r[E]=Il(f,a,E,x,e,!1)}else x!==i[g]&&(i[g]=x,u=!0)}}}else{od(e,t,r,i)&&(u=!0);let d;for(const p in a)(!t||!Le(t,p)&&((d=kn(p))===p||!Le(t,d)))&&(f?n&&(n[p]!==void 0||n[d]!==void 0)&&(r[p]=Il(f,a,p,void 0,e,!0)):delete r[p]);if(i!==a)for(const p in i)(!t||!Le(t,p)&&!0)&&(delete i[p],u=!0)}u&&$n(e,"set","$attrs"),{}.NODE_ENV!=="production"&&ld(t||{},r,e)}function od(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,a;if(t)for(let f in t){if(is(f))continue;const u=t[f];let d;r&&Le(r,d=an(f))?!i||!i.includes(d)?n[d]=u:(a||(a={}))[d]=u:ks(e.emitsOptions,f)||(!(f in o)||u!==o[f])&&(o[f]=u,s=!0)}if(i){const f=Oe(n),u=a||ze;for(let d=0;d<i.length;d++){const p=i[d];n[p]=Il(r,f,p,u[p],e,!Le(u,p))}}return s}function Il(e,t,n,o,r,i){const s=e[n];if(s!=null){const a=Le(s,"default");if(a&&o===void 0){const f=s.default;if(s.type!==Function&&$e(f)){const{propsDefaults:u}=r;n in u?o=u[n]:(io(r),o=u[n]=f.call(null,t),so())}else o=f}s[0]&&(i&&!a?o=!1:s[1]&&(o===""||o===kn(n))&&(o=!0))}return o}function rd(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},a=[];let f=!1;if(!$e(e)){const d=p=>{f=!0;const[g,x]=rd(p,t,!0);rt(s,g),x&&a.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!f)return Ue(e)&&o.set(e,or),or;if(be(i))for(let d=0;d<i.length;d++){({}).NODE_ENV!=="production"&&!Ye(i[d])&&oe("props must be strings when using array syntax.",i[d]);const p=an(i[d]);id(p)&&(s[p]=ze)}else if(i){({}).NODE_ENV!=="production"&&!Ue(i)&&oe("invalid props options",i);for(const d in i){const p=an(d);if(id(p)){const g=i[d],x=s[p]=be(g)||$e(g)?{type:g}:Object.assign({},g);if(x){const E=ad(Boolean,x.type),v=ad(String,x.type);x[0]=E>-1,x[1]=v<0||E<v,(E>-1||Le(x,"default"))&&a.push(p)}}}}const u=[s,a];return Ue(e)&&o.set(e,u),u}function id(e){return e[0]!=="$"?!0:({}.NODE_ENV!=="production"&&oe(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Pl(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function sd(e,t){return Pl(e)===Pl(t)}function ad(e,t){return be(t)?t.findIndex(n=>sd(n,e)):$e(t)&&sd(t,e)?0:-1}function ld(e,t,n){const o=Oe(t),r=n.propsOptions[0];for(const i in r){let s=r[i];s!=null&&lv(i,o[i],s,!Le(e,i)&&!Le(e,kn(i)))}}function lv(e,t,n,o){const{type:r,required:i,validator:s}=n;if(i&&o){oe('Missing required prop: "'+e+'"');return}if(!(t==null&&!n.required)){if(r!=null&&r!==!0){let a=!1;const f=be(r)?r:[r],u=[];for(let d=0;d<f.length&&!a;d++){const{valid:p,expectedType:g}=uv(t,f[d]);u.push(g||""),a=p}if(!a){oe(fv(e,t,u));return}}s&&!s(t)&&oe('Invalid prop: custom validator check failed for prop "'+e+'".')}}const cv=Kn("String,Number,Boolean,Function,Symbol,BigInt");function uv(e,t){let n;const o=Pl(t);if(cv(o)){const r=typeof e;n=r===o.toLowerCase(),!n&&r==="object"&&(n=e instanceof t)}else o==="Object"?n=Ue(e):o==="Array"?n=be(e):o==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:o}}function fv(e,t,n){let o=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(Eo).join(" | ")}`;const r=n[0],i=Ya(t),s=cd(t,r),a=cd(t,i);return n.length===1&&ud(r)&&!dv(r,i)&&(o+=` with value ${s}`),o+=`, got ${i} `,ud(i)&&(o+=`with value ${a}.`),o}function cd(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function ud(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function dv(...e){return e.some(t=>t.toLowerCase()==="boolean")}const fd=e=>e[0]==="_"||e==="$stable",Tl=e=>be(e)?e.map(Ht):[Ht(e)],pv=(e,t,n)=>{if(t._n)return t;const o=Ke((...r)=>({}.NODE_ENV!=="production"&&Xe&&oe(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Tl(t(...r))),n);return o._c=!1,o},dd=(e,t,n)=>{const o=e._ctx;for(const r in e){if(fd(r))continue;const i=e[r];if($e(i))t[r]=pv(r,i,o);else if(i!=null){({}).NODE_ENV!=="production"&&oe(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const s=Tl(i);t[r]=()=>s}}},pd=(e,t)=>{({}).NODE_ENV!=="production"&&!kl(e.vnode)&&oe("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Tl(t);e.slots.default=()=>n},hv=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Oe(t),as(t,"_",n)):dd(t,e.slots={})}else e.slots={},t&&pd(e,t);as(e.slots,Is,1)},mv=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=ze;if(o.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&Qn?rt(r,t):n&&a===1?i=!1:(rt(r,t),!n&&a===1&&delete r._):(i=!t.$stable,dd(t,r)),s=t}else t&&(pd(e,t),s={default:1});if(i)for(const a in r)!fd(a)&&!(a in s)&&delete r[a]};function hd(){return{app:null,config:{isNativeTag:ef,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let gv=0;function bv(e,t){return function(o,r=null){$e(o)||(o=Object.assign({},o)),r!=null&&!Ue(r)&&({}.NODE_ENV!=="production"&&oe("root props passed to app.mount() must be an object."),r=null);const i=hd(),s=new Set;let a=!1;const f=i.app={_uid:gv++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:Nd,get config(){return i.config},set config(u){({}).NODE_ENV!=="production"&&oe("app.config cannot be replaced. Modify individual options instead.")},use(u,...d){return s.has(u)?{}.NODE_ENV!=="production"&&oe("Plugin has already been applied to target app."):u&&$e(u.install)?(s.add(u),u.install(f,...d)):$e(u)?(s.add(u),u(f,...d)):{}.NODE_ENV!=="production"&&oe('A plugin must either be a function or an object with an "install" function.'),f},mixin(u){return i.mixins.includes(u)?{}.NODE_ENV!=="production"&&oe("Mixin has already been applied to target app"+(u.name?`: ${u.name}`:"")):i.mixins.push(u),f},component(u,d){return{}.NODE_ENV!=="production"&&Rl(u,i.config),d?({}.NODE_ENV!=="production"&&i.components[u]&&oe(`Component "${u}" has already been registered in target app.`),i.components[u]=d,f):i.components[u]},directive(u,d){return{}.NODE_ENV!=="production"&&Zf(u),d?({}.NODE_ENV!=="production"&&i.directives[u]&&oe(`Directive "${u}" has already been registered in target app.`),i.directives[u]=d,f):i.directives[u]},mount(u,d,p){if(a)({}).NODE_ENV!=="production"&&oe("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{({}).NODE_ENV!=="production"&&u.__vue_app__&&oe("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const g=Ce(o,r);return g.appContext=i,{}.NODE_ENV!=="production"&&(i.reload=()=>{e(oo(g),u,p)}),d&&t?t(g,u):e(g,u,p),a=!0,f._container=u,u.__vue_app__=f,{}.NODE_ENV!=="production"&&(f._instance=g.component,gw(f,Nd)),Ts(g.component)||g.component.proxy}},unmount(){a?(e(null,f._container),{}.NODE_ENV!=="production"&&(f._instance=null,bw(f)),delete f._container.__vue_app__):{}.NODE_ENV!=="production"&&oe("Cannot unmount an app that is not mounted.")},provide(u,d){return{}.NODE_ENV!=="production"&&u in i.provides&&oe(`App already provides property with key "${String(u)}". It will be overwritten with the new value.`),i.provides[u]=d,f}};return f}}function Ll(e,t,n,o,r=!1){if(be(e)){e.forEach((g,x)=>Ll(g,t&&(be(t)?t[x]:t),n,o,r));return}if(ni(o)&&!r)return;const i=o.shapeFlag&4?Ts(o.component)||o.component.proxy:o.el,s=r?null:i,{i:a,r:f}=e;if({}.NODE_ENV!=="production"&&!a){oe("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const u=t&&t.r,d=a.refs===ze?a.refs={}:a.refs,p=a.setupState;if(u!=null&&u!==f&&(Ye(u)?(d[u]=null,Le(p,u)&&(p[u]=null)):We(u)&&(u.value=null)),$e(f))xn(f,a,12,[s,d]);else{const g=Ye(f),x=We(f);if(g||x){const E=()=>{if(e.f){const v=g?Le(p,f)?p[f]:d[f]:f.value;r?be(v)&&Ga(v,i):be(v)?v.includes(i)||v.push(i):g?(d[f]=[i],Le(p,f)&&(p[f]=d[f])):(f.value=[i],e.k&&(d[e.k]=f.value))}else g?(d[f]=s,Le(p,f)&&(p[f]=s)):x?(f.value=s,e.k&&(d[e.k]=s)):{}.NODE_ENV!=="production"&&oe("Invalid template ref type:",f,`(${typeof f})`)};s?(E.id=-1,It(E,n)):E()}else({}).NODE_ENV!=="production"&&oe("Invalid template ref type:",f,`(${typeof f})`)}}let ri,to;function On(e,t){e.appContext.config.performance&&Ns()&&to.mark(`vue-${t}-${e.uid}`),{}.NODE_ENV!=="production"&&_w(e,t,Ns()?to.now():Date.now())}function Nn(e,t){if(e.appContext.config.performance&&Ns()){const n=`vue-${t}-${e.uid}`,o=n+":end";to.mark(o),to.measure(`<${Ls(e,e.type)}> ${t}`,n,o),to.clearMarks(n),to.clearMarks(o)}({}).NODE_ENV!=="production"&&kw(e,t,Ns()?to.now():Date.now())}function Ns(){return ri!==void 0||(typeof window<"u"&&window.performance?(ri=!0,to=window.performance):ri=!1),ri}function yv(){const e=[];if({}.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.

For more details, see https://link.vuejs.org/feature-flags.`)}}const It=jw;function wv(e){return vv(e)}function vv(e,t){yv();const n=sf();n.__VUE__=!0,{}.NODE_ENV!=="production"&&Vf(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:r,patchProp:i,createElement:s,createText:a,createComment:f,setText:u,setElementText:d,parentNode:p,nextSibling:g,setScopeId:x=mt,insertStaticContent:E}=e,v=(w,A,B,V=null,W=null,ne=null,ie=!1,Z=null,Q={}.NODE_ENV!=="production"&&Qn?!1:!!A.dynamicChildren)=>{if(w===A)return;w&&!no(w,A)&&(V=St(w),et(w,W,ne,!0),w=null),A.patchFlag===-2&&(Q=!1,A.dynamicChildren=null);const{type:X,ref:fe,shapeFlag:H}=A;switch(X){case si:S(w,A,B,V);break;case xt:C(w,A,B,V);break;case ai:w==null?I(A,B,V,ie):{}.NODE_ENV!=="production"&&D(w,A,B,ie);break;case Ze:ce(w,A,B,V,W,ne,ie,Z,Q);break;default:H&1?M(w,A,B,V,W,ne,ie,Z,Q):H&6?se(w,A,B,V,W,ne,ie,Z,Q):H&64||H&128?X.process(w,A,B,V,W,ne,ie,Z,Q,ot):{}.NODE_ENV!=="production"&&oe("Invalid VNode type:",X,`(${typeof X})`)}fe!=null&&W&&Ll(fe,w&&w.ref,ne,A||w,!A)},S=(w,A,B,V)=>{if(w==null)o(A.el=a(A.children),B,V);else{const W=A.el=w.el;A.children!==w.children&&u(W,A.children)}},C=(w,A,B,V)=>{w==null?o(A.el=f(A.children||""),B,V):A.el=w.el},I=(w,A,B,V)=>{[w.el,w.anchor]=E(w.children,A,B,V,w.el,w.anchor)},D=(w,A,B,V)=>{if(A.children!==w.children){const W=g(w.anchor);L(w),[A.el,A.anchor]=E(A.children,B,W,V)}else A.el=w.el,A.anchor=w.anchor},T=({el:w,anchor:A},B,V)=>{let W;for(;w&&w!==A;)W=g(w),o(w,B,V),w=W;o(A,B,V)},L=({el:w,anchor:A})=>{let B;for(;w&&w!==A;)B=g(w),r(w),w=B;r(A)},M=(w,A,B,V,W,ne,ie,Z,Q)=>{ie=ie||A.type==="svg",w==null?P(A,B,V,W,ne,ie,Z,Q):le(w,A,W,ne,ie,Z,Q)},P=(w,A,B,V,W,ne,ie,Z)=>{let Q,X;const{type:fe,props:H,shapeFlag:de,transition:h,dirs:y}=w;if(Q=w.el=s(w.type,ne,H&&H.is,H),de&8?d(Q,w.children):de&16&&J(w.children,Q,null,V,W,ne&&fe!=="foreignObject",ie,Z),y&&To(w,null,V,"created"),z(Q,w,w.scopeId,ie,V),H){for(const O in H)O!=="value"&&!is(O)&&i(Q,O,null,H[O],ne,w.children,V,W,Ct);"value"in H&&i(Q,"value",null,H.value),(X=H.onVnodeBeforeMount)&&mn(X,V,w)}({}).NODE_ENV!=="production"&&(Object.defineProperty(Q,"__vnode",{value:w,enumerable:!1}),Object.defineProperty(Q,"__vueParentComponent",{value:V,enumerable:!1})),y&&To(w,null,V,"beforeMount");const k=(!W||W&&!W.pendingBranch)&&h&&!h.persisted;k&&h.beforeEnter(Q),o(Q,A,B),((X=H&&H.onVnodeMounted)||k||y)&&It(()=>{X&&mn(X,V,w),k&&h.enter(Q),y&&To(w,null,V,"mounted")},W)},z=(w,A,B,V,W)=>{if(B&&x(w,B),V)for(let ne=0;ne<V.length;ne++)x(w,V[ne]);if(W){let ne=W.subTree;if({}.NODE_ENV!=="production"&&ne.patchFlag>0&&ne.patchFlag&2048&&(ne=yl(ne.children)||ne),A===ne){const ie=W.vnode;z(w,ie,ie.scopeId,ie.slotScopeIds,W.parent)}}},J=(w,A,B,V,W,ne,ie,Z,Q=0)=>{for(let X=Q;X<w.length;X++){const fe=w[X]=Z?ro(w[X]):Ht(w[X]);v(null,fe,A,B,V,W,ne,ie,Z)}},le=(w,A,B,V,W,ne,ie)=>{const Z=A.el=w.el;let{patchFlag:Q,dynamicChildren:X,dirs:fe}=A;Q|=w.patchFlag&16;const H=w.props||ze,de=A.props||ze;let h;B&&Mo(B,!1),(h=de.onVnodeBeforeUpdate)&&mn(h,B,A,w),fe&&To(A,w,B,"beforeUpdate"),B&&Mo(B,!0),{}.NODE_ENV!=="production"&&Qn&&(Q=0,ie=!1,X=null);const y=W&&A.type!=="foreignObject";if(X?(re(w.dynamicChildren,X,Z,B,V,y,ne),{}.NODE_ENV!=="production"&&B&&B.type.__hmrId&&ii(w,A)):ie||ue(w,A,Z,null,B,V,y,ne,!1),Q>0){if(Q&16)ee(Z,A,H,de,B,V,W);else if(Q&2&&H.class!==de.class&&i(Z,"class",null,de.class,W),Q&4&&i(Z,"style",H.style,de.style,W),Q&8){const k=A.dynamicProps;for(let O=0;O<k.length;O++){const j=k[O],N=H[j],q=de[j];(q!==N||j==="value")&&i(Z,j,N,q,W,w.children,B,V,Ct)}}Q&1&&w.children!==A.children&&d(Z,A.children)}else!ie&&X==null&&ee(Z,A,H,de,B,V,W);((h=de.onVnodeUpdated)||fe)&&It(()=>{h&&mn(h,B,A,w),fe&&To(A,w,B,"updated")},V)},re=(w,A,B,V,W,ne,ie)=>{for(let Z=0;Z<A.length;Z++){const Q=w[Z],X=A[Z],fe=Q.el&&(Q.type===Ze||!no(Q,X)||Q.shapeFlag&70)?p(Q.el):B;v(Q,X,fe,null,V,W,ne,ie,!0)}},ee=(w,A,B,V,W,ne,ie)=>{if(B!==V){if(B!==ze)for(const Z in B)!is(Z)&&!(Z in V)&&i(w,Z,B[Z],null,ie,A.children,W,ne,Ct);for(const Z in V){if(is(Z))continue;const Q=V[Z],X=B[Z];Q!==X&&Z!=="value"&&i(w,Z,X,Q,ie,A.children,W,ne,Ct)}"value"in V&&i(w,"value",B.value,V.value)}},ce=(w,A,B,V,W,ne,ie,Z,Q)=>{const X=A.el=w?w.el:a(""),fe=A.anchor=w?w.anchor:a("");let{patchFlag:H,dynamicChildren:de,slotScopeIds:h}=A;({}).NODE_ENV!=="production"&&(Qn||H&2048)&&(H=0,Q=!1,de=null),h&&(Z=Z?Z.concat(h):h),w==null?(o(X,B,V),o(fe,B,V),J(A.children,B,fe,W,ne,ie,Z,Q)):H>0&&H&64&&de&&w.dynamicChildren?(re(w.dynamicChildren,de,B,W,ne,ie,Z),{}.NODE_ENV!=="production"&&W&&W.type.__hmrId?ii(w,A):(A.key!=null||W&&A===W.subTree)&&ii(w,A,!0)):ue(w,A,B,fe,W,ne,ie,Z,Q)},se=(w,A,B,V,W,ne,ie,Z,Q)=>{A.slotScopeIds=Z,w==null?A.shapeFlag&512?W.ctx.activate(A,B,V,ie,Q):xe(A,B,V,W,ne,ie,Q):R(w,A,Q)},xe=(w,A,B,V,W,ne,ie)=>{const Z=w.component=Av(w,V,W);if({}.NODE_ENV!=="production"&&Z.type.__hmrId&&dw(Z),{}.NODE_ENV!=="production"&&(Kr(w),On(Z,"mount")),kl(w)&&(Z.ctx.renderer=ot),{}.NODE_ENV!=="production"&&On(Z,"init"),Pv(Z),{}.NODE_ENV!=="production"&&Nn(Z,"init"),Z.asyncDep){if(W&&W.registerDep(Z,Y),!w.el){const Q=Z.subTree=Ce(xt);C(null,Q,A,B)}return}Y(Z,w,A,B,W,ne,ie),{}.NODE_ENV!=="production"&&(Gr(),Nn(Z,"mount"))},R=(w,A,B)=>{const V=A.component=w.component;if(Iw(w,A,B))if(V.asyncDep&&!V.asyncResolved){({}).NODE_ENV!=="production"&&Kr(A),U(V,A,B),{}.NODE_ENV!=="production"&&Gr();return}else V.next=A,uw(V.update),V.update();else A.el=w.el,V.vnode=A},Y=(w,A,B,V,W,ne,ie)=>{const Z=()=>{if(w.isMounted){let{next:fe,bu:H,u:de,parent:h,vnode:y}=w,k=fe,O;({}).NODE_ENV!=="production"&&Kr(fe||w.vnode),Mo(w,!1),fe?(fe.el=y.el,U(w,fe,ie)):fe=y,H&&rr(H),(O=fe.props&&fe.props.onVnodeBeforeUpdate)&&mn(O,h,fe,y),Mo(w,!0),{}.NODE_ENV!=="production"&&On(w,"render");const j=bl(w);({}).NODE_ENV!=="production"&&Nn(w,"render");const N=w.subTree;w.subTree=j,{}.NODE_ENV!=="production"&&On(w,"patch"),v(N,j,p(N.el),St(N),w,W,ne),{}.NODE_ENV!=="production"&&Nn(w,"patch"),fe.el=j.el,k===null&&wl(w,j.el),de&&It(de,W),(O=fe.props&&fe.props.onVnodeUpdated)&&It(()=>mn(O,h,fe,y),W),{}.NODE_ENV!=="production"&&Bf(w),{}.NODE_ENV!=="production"&&Gr()}else{let fe;const{el:H,props:de}=A,{bm:h,m:y,parent:k}=w,O=ni(A);if(Mo(w,!1),h&&rr(h),!O&&(fe=de&&de.onVnodeBeforeMount)&&mn(fe,k,A),Mo(w,!0),H&&ft){const j=()=>{({}).NODE_ENV!=="production"&&On(w,"render"),w.subTree=bl(w),{}.NODE_ENV!=="production"&&Nn(w,"render"),{}.NODE_ENV!=="production"&&On(w,"hydrate"),ft(H,w.subTree,w,W,null),{}.NODE_ENV!=="production"&&Nn(w,"hydrate")};O?A.type.__asyncLoader().then(()=>!w.isUnmounted&&j()):j()}else{({}).NODE_ENV!=="production"&&On(w,"render");const j=w.subTree=bl(w);({}).NODE_ENV!=="production"&&Nn(w,"render"),{}.NODE_ENV!=="production"&&On(w,"patch"),v(null,j,B,V,w,W,ne),{}.NODE_ENV!=="production"&&Nn(w,"patch"),A.el=j.el}if(y&&It(y,W),!O&&(fe=de&&de.onVnodeMounted)){const j=A;It(()=>mn(fe,k,j),W)}(A.shapeFlag&256||k&&ni(k.vnode)&&k.vnode.shapeFlag&256)&&w.a&&It(w.a,W),w.isMounted=!0,{}.NODE_ENV!=="production"&&yw(w),A=B=V=null}},Q=w.effect=new tl(Z,()=>_s(X),w.scope),X=w.update=()=>Q.run();X.id=w.uid,Mo(w,!0),{}.NODE_ENV!=="production"&&(Q.onTrack=w.rtc?fe=>rr(w.rtc,fe):void 0,Q.onTrigger=w.rtg?fe=>rr(w.rtg,fe):void 0,X.ownerInstance=w),X()},U=(w,A,B)=>{A.component=w;const V=w.vnode.props;w.vnode=A,w.next=null,av(w,A.props,V,B),mv(w,A.children,B),Oo(),Lf(),No()},ue=(w,A,B,V,W,ne,ie,Z,Q=!1)=>{const X=w&&w.children,fe=w?w.shapeFlag:0,H=A.children,{patchFlag:de,shapeFlag:h}=A;if(de>0){if(de&128){Ee(X,H,B,V,W,ne,ie,Z,Q);return}else if(de&256){we(X,H,B,V,W,ne,ie,Z,Q);return}}h&8?(fe&16&&Ct(X,W,ne),H!==X&&d(B,H)):fe&16?h&16?Ee(X,H,B,V,W,ne,ie,Z,Q):Ct(X,W,ne,!0):(fe&8&&d(B,""),h&16&&J(H,B,V,W,ne,ie,Z,Q))},we=(w,A,B,V,W,ne,ie,Z,Q)=>{w=w||or,A=A||or;const X=w.length,fe=A.length,H=Math.min(X,fe);let de;for(de=0;de<H;de++){const h=A[de]=Q?ro(A[de]):Ht(A[de]);v(w[de],h,B,null,W,ne,ie,Z,Q)}X>fe?Ct(w,W,ne,!0,!1,H):J(A,B,V,W,ne,ie,Z,Q,H)},Ee=(w,A,B,V,W,ne,ie,Z,Q)=>{let X=0;const fe=A.length;let H=w.length-1,de=fe-1;for(;X<=H&&X<=de;){const h=w[X],y=A[X]=Q?ro(A[X]):Ht(A[X]);if(no(h,y))v(h,y,B,null,W,ne,ie,Z,Q);else break;X++}for(;X<=H&&X<=de;){const h=w[H],y=A[de]=Q?ro(A[de]):Ht(A[de]);if(no(h,y))v(h,y,B,null,W,ne,ie,Z,Q);else break;H--,de--}if(X>H){if(X<=de){const h=de+1,y=h<fe?A[h].el:V;for(;X<=de;)v(null,A[X]=Q?ro(A[X]):Ht(A[X]),B,y,W,ne,ie,Z,Q),X++}}else if(X>de)for(;X<=H;)et(w[X],W,ne,!0),X++;else{const h=X,y=X,k=new Map;for(X=y;X<=de;X++){const ve=A[X]=Q?ro(A[X]):Ht(A[X]);ve.key!=null&&({}.NODE_ENV!=="production"&&k.has(ve.key)&&oe("Duplicate keys found during update:",JSON.stringify(ve.key),"Make sure keys are unique."),k.set(ve.key,X))}let O,j=0;const N=de-y+1;let q=!1,K=0;const te=new Array(N);for(X=0;X<N;X++)te[X]=0;for(X=h;X<=H;X++){const ve=w[X];if(j>=N){et(ve,W,ne,!0);continue}let me;if(ve.key!=null)me=k.get(ve.key);else for(O=y;O<=de;O++)if(te[O-y]===0&&no(ve,A[O])){me=O;break}me===void 0?et(ve,W,ne,!0):(te[me-y]=X+1,me>=K?K=me:q=!0,v(ve,A[me],B,null,W,ne,ie,Z,Q),j++)}const ke=q?_v(te):or;for(O=ke.length-1,X=N-1;X>=0;X--){const ve=y+X,me=A[ve],je=ve+1<fe?A[ve+1].el:V;te[X]===0?v(null,me,B,je,W,ne,ie,Z,Q):q&&(O<0||X!==ke[O]?Qe(me,B,je,2):O--)}}},Qe=(w,A,B,V,W=null)=>{const{el:ne,type:ie,transition:Z,children:Q,shapeFlag:X}=w;if(X&6){Qe(w.component.subTree,A,B,V);return}if(X&128){w.suspense.move(A,B,V);return}if(X&64){ie.move(w,A,B,ot);return}if(ie===Ze){o(ne,A,B);for(let H=0;H<Q.length;H++)Qe(Q[H],A,B,V);o(w.anchor,A,B);return}if(ie===ai){T(w,A,B);return}if(V!==2&&X&1&&Z)if(V===0)Z.beforeEnter(ne),o(ne,A,B),It(()=>Z.enter(ne),W);else{const{leave:H,delayLeave:de,afterLeave:h}=Z,y=()=>o(ne,A,B),k=()=>{H(ne,()=>{y(),h&&h()})};de?de(ne,y,k):k()}else o(ne,A,B)},et=(w,A,B,V=!1,W=!1)=>{const{type:ne,props:ie,ref:Z,children:Q,dynamicChildren:X,shapeFlag:fe,patchFlag:H,dirs:de}=w;if(Z!=null&&Ll(Z,null,B,w,!0),fe&256){A.ctx.deactivate(w);return}const h=fe&1&&de,y=!ni(w);let k;if(y&&(k=ie&&ie.onVnodeBeforeUnmount)&&mn(k,A,w),fe&6)Fn(w.component,B,V);else{if(fe&128){w.suspense.unmount(B,V);return}h&&To(w,null,A,"beforeUnmount"),fe&64?w.type.remove(w,A,B,W,ot,V):X&&(ne!==Ze||H>0&&H&64)?Ct(X,A,B,!1,!0):(ne===Ze&&H&384||!W&&fe&16)&&Ct(Q,A,B),V&&Mt(w)}(y&&(k=ie&&ie.onVnodeUnmounted)||h)&&It(()=>{k&&mn(k,A,w),h&&To(w,null,A,"unmounted")},B)},Mt=w=>{const{type:A,el:B,anchor:V,transition:W}=w;if(A===Ze){({}).NODE_ENV!=="production"&&w.patchFlag>0&&w.patchFlag&2048&&W&&!W.persisted?w.children.forEach(ie=>{ie.type===xt?r(ie.el):Mt(ie)}):jt(B,V);return}if(A===ai){L(w);return}const ne=()=>{r(B),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(w.shapeFlag&1&&W&&!W.persisted){const{leave:ie,delayLeave:Z}=W,Q=()=>ie(B,ne);Z?Z(w.el,ne,Q):Q()}else ne()},jt=(w,A)=>{let B;for(;w!==A;)B=g(w),r(w),w=B;r(A)},Fn=(w,A,B)=>{({}).NODE_ENV!=="production"&&w.type.__hmrId&&pw(w);const{bum:V,scope:W,update:ne,subTree:ie,um:Z}=w;V&&rr(V),W.stop(),ne&&(ne.active=!1,et(ie,w,A,B)),Z&&It(Z,A),It(()=>{w.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve()),{}.NODE_ENV!=="production"&&vw(w)},Ct=(w,A,B,V=!1,W=!1,ne=0)=>{for(let ie=ne;ie<w.length;ie++)et(w[ie],A,B,V,W)},St=w=>w.shapeFlag&6?St(w.component.subTree):w.shapeFlag&128?w.suspense.next():g(w.anchor||w.el),ht=(w,A,B)=>{w==null?A._vnode&&et(A._vnode,null,null,!0):v(A._vnode||null,w,A,null,null,null,B),Lf(),Df(),A._vnode=w},ot={p:v,um:et,m:Qe,r:Mt,mt:xe,mc:J,pc:ue,pbc:re,n:St,o:e};let bo,ft;return t&&([bo,ft]=t(ot)),{render:ht,hydrate:bo,createApp:bv(ht,bo)}}function Mo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ii(e,t,n=!1){const o=e.children,r=t.children;if(be(o)&&be(r))for(let i=0;i<o.length;i++){const s=o[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=ro(r[i]),a.el=s.el),n||ii(s,a)),a.type===si&&(a.el=s.el),{}.NODE_ENV!=="production"&&a.type===xt&&!a.el&&(a.el=s.el)}}function _v(e){const t=e.slice(),n=[0];let o,r,i,s,a;const f=e.length;for(o=0;o<f;o++){const u=e[o];if(u!==0){if(r=n[n.length-1],e[r]<u){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<u?i=a+1:s=a;u<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const kv=e=>e.__isTeleport,fr=e=>e&&(e.disabled||e.disabled===""),md=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Dl=(e,t)=>{const n=e&&e.to;if(Ye(n))if(t){const o=t(n);return o||{}.NODE_ENV!=="production"&&oe(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),o}else return{}.NODE_ENV!=="production"&&oe("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return{}.NODE_ENV!=="production"&&!n&&!fr(e)&&oe(`Invalid Teleport target: ${n}`),n},$v={__isTeleport:!0,process(e,t,n,o,r,i,s,a,f,u){const{mc:d,pc:p,pbc:g,o:{insert:x,querySelector:E,createText:v,createComment:S}}=u,C=fr(t.props);let{shapeFlag:I,children:D,dynamicChildren:T}=t;if({}.NODE_ENV!=="production"&&Qn&&(f=!1,T=null),e==null){const L=t.el={}.NODE_ENV!=="production"?S("teleport start"):v(""),M=t.anchor={}.NODE_ENV!=="production"?S("teleport end"):v("");x(L,n,o),x(M,n,o);const P=t.target=Dl(t.props,E),z=t.targetAnchor=v("");P?(x(z,P),s=s||md(P)):{}.NODE_ENV!=="production"&&!C&&oe("Invalid Teleport target on mount:",P,`(${typeof P})`);const J=(le,re)=>{I&16&&d(D,le,re,r,i,s,a,f)};C?J(n,M):P&&J(P,z)}else{t.el=e.el;const L=t.anchor=e.anchor,M=t.target=e.target,P=t.targetAnchor=e.targetAnchor,z=fr(e.props),J=z?n:M,le=z?L:P;if(s=s||md(M),T?(g(e.dynamicChildren,T,J,r,i,s,a),ii(e,t,!0)):f||p(e,t,J,le,r,i,s,a,!1),C)z||As(t,n,L,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const re=t.target=Dl(t.props,E);re?As(t,re,null,u,0):{}.NODE_ENV!=="production"&&oe("Invalid Teleport target on update:",M,`(${typeof M})`)}else z&&As(t,M,P,u,1)}gd(t)},remove(e,t,n,o,{um:r,o:{remove:i}},s){const{shapeFlag:a,children:f,anchor:u,targetAnchor:d,target:p,props:g}=e;if(p&&i(d),(s||!fr(g))&&(i(u),a&16))for(let x=0;x<f.length;x++){const E=f[x];r(E,t,n,!0,!!E.dynamicChildren)}},move:As,hydrate:xv};function As(e,t,n,{o:{insert:o},m:r},i=2){i===0&&o(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:f,children:u,props:d}=e,p=i===2;if(p&&o(s,t,n),(!p||fr(d))&&f&16)for(let g=0;g<u.length;g++)r(u[g],t,n,2);p&&o(a,t,n)}function xv(e,t,n,o,r,i,{o:{nextSibling:s,parentNode:a,querySelector:f}},u){const d=t.target=Dl(t.props,f);if(d){const p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(fr(t.props))t.anchor=u(s(e),t,a(e),n,o,r,i),t.targetAnchor=p;else{t.anchor=s(e);let g=p;for(;g;)if(g=s(g),g&&g.nodeType===8&&g.data==="teleport anchor"){t.targetAnchor=g,d._lpa=t.targetAnchor&&s(t.targetAnchor);break}u(p,t,d,n,o,r,i)}gd(t)}return t.anchor&&s(t.anchor)}const Ev=$v;function gd(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Ze=Symbol({}.NODE_ENV!=="production"?"Fragment":void 0),si=Symbol({}.NODE_ENV!=="production"?"Text":void 0),xt=Symbol({}.NODE_ENV!=="production"?"Comment":void 0),ai=Symbol({}.NODE_ENV!=="production"?"Static":void 0),li=[];let Ft=null;function ae(e=!1){li.push(Ft=e?null:[])}function bd(){li.pop(),Ft=li[li.length-1]||null}let dr=1;function yd(e){dr+=e}function wd(e){return e.dynamicChildren=dr>0?Ft||or:null,bd(),dr>0&&Ft&&Ft.push(e),e}function he(e,t,n,o,r,i){return wd(b(e,t,n,o,r,i,!0))}function Ut(e,t,n,o,r){return wd(Ce(e,t,n,o,r,!0))}function pr(e){return e?e.__v_isVNode===!0:!1}function no(e,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&lr.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const Cv=(...e)=>_d(...e),Is="__vInternal",vd=({key:e})=>e!=null?e:null,Ps=({ref:e,ref_key:t,ref_for:n})=>e!=null?Ye(e)||We(e)||$e(e)?{i:lt,r:e,k:t,f:!!n}:e:null;function b(e,t=null,n=null,o=0,r=null,i=e===Ze?0:1,s=!1,a=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&vd(t),ref:t&&Ps(t),scopeId:$s,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:lt};return a?(Ml(f,n),i&128&&e.normalize(f)):n&&(f.shapeFlag|=Ye(n)?8:16),{}.NODE_ENV!=="production"&&f.key!==f.key&&oe("VNode created with invalid key (NaN). VNode type:",f.type),dr>0&&!s&&Ft&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&Ft.push(f),f}const Ce={}.NODE_ENV!=="production"?Cv:_d;function _d(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===Gw)&&({}.NODE_ENV!=="production"&&!e&&oe(`Invalid vnode type when creating vnode: ${e}.`),e=xt),pr(e)){const a=oo(e,t,!0);return n&&Ml(a,n),dr>0&&!i&&Ft&&(a.shapeFlag&6?Ft[Ft.indexOf(e)]=a:Ft.push(a)),a.patchFlag|=-2,a}if(Od(e)&&(e=e.__vccOpts),t){t=kd(t);let{class:a,style:f}=t;a&&!Ye(a)&&(t.class=at(a)),Ue(f)&&(ws(f)&&!be(f)&&(f=rt({},f)),t.style=_n(f))}const s=Ye(e)?1:Pw(e)?128:kv(e)?64:Ue(e)?4:$e(e)?2:0;return{}.NODE_ENV!=="production"&&s&4&&ws(e)&&(e=Oe(e),oe("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
Component that was made reactive: `,e)),b(e,t,n,o,r,s,i,!0)}function kd(e){return e?ws(e)||Is in e?rt({},e):e:null}function oo(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?xd(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&vd(a),ref:t&&t.ref?n&&r?be(r)?r.concat(Ps(t)):[r,Ps(t)]:Ps(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:{}.NODE_ENV!=="production"&&i===-1&&be(s)?s.map($d):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ze?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&oo(e.ssContent),ssFallback:e.ssFallback&&oo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function $d(e){const t=oo(e);return be(e.children)&&(t.children=e.children.map($d)),t}function _e(e=" ",t=0){return Ce(si,null,e,t)}function Sv(e,t){const n=Ce(ai,null,e);return n.staticCount=t,n}function dt(e="",t=!1){return t?(ae(),Ut(xt,null,e)):Ce(xt,null,e)}function Ht(e){return e==null||typeof e=="boolean"?Ce(xt):be(e)?Ce(Ze,null,e.slice()):typeof e=="object"?ro(e):Ce(si,null,String(e))}function ro(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:oo(e)}function Ml(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(be(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ml(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Is in t)?t._ctx=lt:r===3&&lt&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else $e(t)?(t={default:t,_ctx:lt},n=32):(t=String(t),o&64?(n=16,t=[_e(t)]):n=8);e.children=t,e.shapeFlag|=n}function xd(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=at([t.class,o.class]));else if(r==="style")t.style=_n([t.style,o.style]);else if(Br(r)){const i=t[r],s=o[r];s&&i!==s&&!(be(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function mn(e,t,n,o=null){Yt(e,t,7,[n,o])}const Ov=hd();let Nv=0;function Av(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ov,i={uid:Nv++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new by(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:rd(o,r),emitsOptions:Uf(o,r),emit:null,emitted:null,propsDefaults:ze,inheritAttrs:o.inheritAttrs,ctx:ze,data:ze,props:ze,attrs:ze,slots:ze,refs:ze,setupState:ze,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return{}.NODE_ENV!=="production"?i.ctx=Zw(i):i.ctx={_:i},i.root=t?t.root:i,i.emit=xw.bind(null,i),e.ce&&e.ce(i),i}let Xe=null;const jl=()=>Xe||lt,io=e=>{Xe=e,e.scope.on()},so=()=>{Xe&&Xe.scope.off(),Xe=null},Iv=Kn("slot,component");function Rl(e,t){const n=t.isNativeTag||ef;(Iv(e)||n(e))&&oe("Do not use built-in or reserved HTML elements as component id: "+e)}function Ed(e){return e.vnode.shapeFlag&4}let ci=!1;function Pv(e,t=!1){ci=t;const{props:n,children:o}=e.vnode,r=Ed(e);iv(e,n,r,t),hv(e,o);const i=r?Tv(e,t):void 0;return ci=!1,i}function Tv(e,t){var n;const o=e.type;if({}.NODE_ENV!=="production"){if(o.name&&Rl(o.name,e.appContext.config),o.components){const i=Object.keys(o.components);for(let s=0;s<i.length;s++)Rl(i[s],e.appContext.config)}if(o.directives){const i=Object.keys(o.directives);for(let s=0;s<i.length;s++)Zf(i[s])}o.compilerOptions&&Lv()&&oe('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=rl(new Proxy(e.ctx,Qf)),{}.NODE_ENV!=="production"&&Jw(e);const{setup:r}=o;if(r){const i=e.setupContext=r.length>1?Dv(e):null;io(e),Oo();const s=xn(r,e,0,[{}.NODE_ENV!=="production"?sr(e.props):e.props,i]);if(No(),so(),rs(s)){if(s.then(so,so),t)return s.then(a=>{Vl(e,a,t)}).catch(a=>{Yr(a,e,0)});if(e.asyncDep=s,{}.NODE_ENV!=="production"&&!e.suspense){const a=(n=o.name)!==null&&n!==void 0?n:"Anonymous";oe(`Component <${a}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Vl(e,s,t)}else Cd(e,t)}function Vl(e,t,n){$e(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ue(t)?({}.NODE_ENV!=="production"&&pr(t)&&oe("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=Of(t),{}.NODE_ENV!=="production"&&Xw(e)):{}.NODE_ENV!=="production"&&t!==void 0&&oe(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Cd(e,n)}let Bl;const Lv=()=>!Bl;function Cd(e,t,n){const o=e.type;if(!e.render){if(!t&&Bl&&!o.render){const r=o.template||Nl(e).template;if(r){({}).NODE_ENV!=="production"&&On(e,"compile");const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:f}=o,u=rt(rt({isCustomElement:i,delimiters:a},s),f);o.render=Bl(r,u),{}.NODE_ENV!=="production"&&Nn(e,"compile")}}e.render=o.render||mt}io(e),Oo(),ev(e),No(),so(),{}.NODE_ENV!=="production"&&!o.render&&e.render===mt&&!t&&(o.template?oe('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):oe("Component is missing template or render function."))}function Sd(e){return new Proxy(e.attrs,{}.NODE_ENV!=="production"?{get(t,n){return Es(),kt(e,"get","$attrs"),t[n]},set(){return oe("setupContext.attrs is readonly."),!1},deleteProperty(){return oe("setupContext.attrs is readonly."),!1}}:{get(t,n){return kt(e,"get","$attrs"),t[n]}})}function Dv(e){const t=o=>{if({}.NODE_ENV!=="production"&&(e.exposed&&oe("expose() should be called only once per setup()."),o!=null)){let r=typeof o;r==="object"&&(be(o)?r="array":We(o)&&(r="ref")),r!=="object"&&oe(`expose() should be passed a plain object, received ${r}.`)}e.exposed=o||{}};let n;return{}.NODE_ENV!=="production"?Object.freeze({get attrs(){return n||(n=Sd(e))},get slots(){return sr(e.slots)},get emit(){return(o,...r)=>e.emit(o,...r)},expose:t}):{get attrs(){return n||(n=Sd(e))},slots:e.slots,emit:e.emit,expose:t}}function Ts(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Of(rl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Lo)return Lo[n](e)},has(t,n){return n in t||n in Lo}}))}const Mv=/(?:^|[-_])(\w)/g,jv=e=>e.replace(Mv,t=>t.toUpperCase()).replace(/[-_]/g,"");function Fl(e,t=!0){return $e(e)?e.displayName||e.name:e.name||t&&e.__name}function Ls(e,t,n=!1){let o=Fl(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=i=>{for(const s in i)if(i[s]===t)return s};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?jv(o):n?"App":"Anonymous"}function Od(e){return $e(e)&&"__vccOpts"in e}const gn=(e,t)=>tw(e,t,ci);function ao(e){const t=jl();({}).NODE_ENV!=="production"&&!t&&oe("withAsyncContext called without active current instance. This is likely a bug.");let n=e();return so(),rs(n)&&(n=n.catch(o=>{throw io(t),o})),[n,()=>io(t)]}function An(e,t,n){const o=arguments.length;return o===2?Ue(t)&&!be(t)?pr(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&pr(n)&&(n=[n]),Ce(e,t,n))}const Rv=Symbol({}.NODE_ENV!=="production"?"ssrContext":""),Vv=()=>{{const e=dn(Rv);return e||{}.NODE_ENV!=="production"&&oe("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Ul(e){return!!(e&&e.__v_isShallow)}function Bv(){if({}.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},o={style:"color:#9d288c"},r={header(p){return Ue(p)?p.__isVue?["div",e,"VueInstance"]:We(p)?["div",{},["span",e,d(p)],"<",a(p.value),">"]:Gt(p)?["div",{},["span",e,Ul(p)?"ShallowReactive":"Reactive"],"<",a(p),`>${Jn(p)?" (readonly)":""}`]:Jn(p)?["div",{},["span",e,Ul(p)?"ShallowReadonly":"Readonly"],"<",a(p),">"]:null:null},hasBody(p){return p&&p.__isVue},body(p){if(p&&p.__isVue)return["div",{},...i(p.$)]}};function i(p){const g=[];p.type.props&&p.props&&g.push(s("props",Oe(p.props))),p.setupState!==ze&&g.push(s("setup",p.setupState)),p.data!==ze&&g.push(s("data",Oe(p.data)));const x=f(p,"computed");x&&g.push(s("computed",x));const E=f(p,"inject");return E&&g.push(s("injected",E)),g.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:p}]]),g}function s(p,g){return g=rt({},g),Object.keys(g).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},p],["div",{style:"padding-left:1.25em"},...Object.keys(g).map(x=>["div",{},["span",o,x+": "],a(g[x],!1)])]]:["span",{}]}function a(p,g=!0){return typeof p=="number"?["span",t,p]:typeof p=="string"?["span",n,JSON.stringify(p)]:typeof p=="boolean"?["span",o,p]:Ue(p)?["object",{object:g?Oe(p):p}]:["span",n,String(p)]}function f(p,g){const x=p.type;if($e(x))return;const E={};for(const v in p.ctx)u(x,v,g)&&(E[v]=p.ctx[v]);return E}function u(p,g,x){const E=p[x];if(be(E)&&E.includes(g)||Ue(E)&&g in E||p.extends&&u(p.extends,g,x)||p.mixins&&p.mixins.some(v=>u(v,g,x)))return!0}function d(p){return Ul(p)?"ShallowRef":p.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}const Nd="3.2.47",Fv="http://www.w3.org/2000/svg",jo=typeof document<"u"?document:null,Ad=jo&&jo.createElement("template"),Uv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?jo.createElementNS(Fv,e):jo.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>jo.createTextNode(e),createComment:e=>jo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ad.innerHTML=o?`<svg>${e}</svg>`:e;const a=Ad.content;if(o){const f=a.firstChild;for(;f.firstChild;)a.appendChild(f.firstChild);a.removeChild(f)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Hv(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function zv(e,t,n){const o=e.style,r=Ye(n);if(n&&!r){if(t&&!Ye(t))for(const i in t)n[i]==null&&Hl(o,i,"");for(const i in n)Hl(o,i,n[i])}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}const qv=/[^\\];\s*$/,Id=/\s*!important$/;function Hl(e,t,n){if(be(n))n.forEach(o=>Hl(e,t,o));else if(n==null&&(n=""),{}.NODE_ENV!=="production"&&qv.test(n)&&oe(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const o=Wv(e,t);Id.test(n)?e.setProperty(kn(o),n.replace(Id,""),"important"):e[o]=n}}const Pd=["Webkit","Moz","ms"],zl={};function Wv(e,t){const n=zl[t];if(n)return n;let o=an(t);if(o!=="filter"&&o in e)return zl[t]=o;o=Eo(o);for(let r=0;r<Pd.length;r++){const i=Pd[r]+o;if(i in e)return zl[t]=i}return t}const Td="http://www.w3.org/1999/xlink";function Kv(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Td,t.slice(6,t.length)):e.setAttributeNS(Td,t,n);else{const i=cy(t);n==null||i&&!Ju(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Gv(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const f=n==null?"":n;(e.value!==f||e.tagName==="OPTION")&&(e.value=f),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=Ju(n):n==null&&f==="string"?(n="",a=!0):f==="number"&&(n=0,a=!0)}try{e[t]=n}catch(f){({}).NODE_ENV!=="production"&&!a&&oe(`Failed setting prop "${t}" on <${e.tagName.toLowerCase()}>: value ${n} is invalid.`,f)}a&&e.removeAttribute(t)}function Ro(e,t,n,o){e.addEventListener(t,n,o)}function Yv(e,t,n,o){e.removeEventListener(t,n,o)}function Zv(e,t,n,o,r=null){const i=e._vei||(e._vei={}),s=i[t];if(o&&s)s.value=o;else{const[a,f]=Jv(t);if(o){const u=i[t]=e0(o,r);Ro(e,a,u,f)}else s&&(Yv(e,a,s,f),i[t]=void 0)}}const Ld=/(?:Once|Passive|Capture)$/;function Jv(e){let t;if(Ld.test(e)){t={};let o;for(;o=e.match(Ld);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):kn(e.slice(2)),t]}let ql=0;const Xv=Promise.resolve(),Qv=()=>ql||(Xv.then(()=>ql=0),ql=Date.now());function e0(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Yt(t0(o,n.value),t,5,[o])};return n.value=e,n.attached=Qv(),n}function t0(e,t){if(be(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Dd=/^on[a-z]/,n0=(e,t,n,o,r=!1,i,s,a,f)=>{t==="class"?Hv(e,o,r):t==="style"?zv(e,n,o):Br(t)?ns(t)||Zv(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):o0(e,t,o,r))?Gv(e,t,o,i,s,a,f):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Kv(e,t,o,r))};function o0(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Dd.test(t)&&$e(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Dd.test(t)&&Ye(n)?!1:t in e}const Ds=e=>{const t=e.props["onUpdate:modelValue"]||!1;return be(t)?n=>rr(t,n):t};function r0(e){e.target.composing=!0}function Md(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ct={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Ds(r);const i=o||r.props&&r.props.type==="number";Ro(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Ja(a)),e._assign(a)}),n&&Ro(e,"change",()=>{e.value=e.value.trim()}),t||(Ro(e,"compositionstart",r0),Ro(e,"compositionend",Md),Ro(e,"change",Md))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=Ds(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&Ja(e.value)===t))return;const s=t==null?"":t;e.value!==s&&(e.value=s)}},He={deep:!0,created(e,t,n){e._assign=Ds(n),Ro(e,"change",()=>{const o=e._modelValue,r=i0(e),i=e.checked,s=e._assign;if(be(o)){const a=Xu(o,r),f=a!==-1;if(i&&!f)s(o.concat(r));else if(!i&&f){const u=[...o];u.splice(a,1),s(u)}}else if(os(o)){const a=new Set(o);i?a.add(r):a.delete(r),s(a)}else s(Rd(e,i))})},mounted:jd,beforeUpdate(e,t,n){e._assign=Ds(n),jd(e,t,n)}};function jd(e,{value:t,oldValue:n},o){e._modelValue=t,be(t)?e.checked=Xu(t,o.props.value)>-1:os(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ts(t,Rd(e,!0)))}function i0(e){return"_value"in e?e._value:e.value}function Rd(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const s0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},a0=(e,t)=>n=>{if(!("key"in n))return;const o=kn(n.key);if(t.some(r=>r===o||s0[r]===o))return e(n)},In={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ui(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),ui(e,!0),o.enter(e)):o.leave(e,()=>{ui(e,!1)}):ui(e,t))},beforeUnmount(e,{value:t}){ui(e,t)}};function ui(e,t){e.style.display=t?e._vod:"none"}const l0=rt({patchProp:n0},Uv);let Vd;function c0(){return Vd||(Vd=wv(l0))}const Vo=(...e)=>{const t=c0().createApp(...e);({}).NODE_ENV!=="production"&&(u0(t),f0(t));const{mount:n}=t;return t.mount=o=>{const r=d0(o);if(!r)return;const i=t._component;!$e(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function u0(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>ay(t)||ly(t),writable:!1})}function f0(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){oe("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,o='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom';Object.defineProperty(e.config,"compilerOptions",{get(){return oe(o),n},set(){oe(o)}})}}function d0(e){if(Ye(e)){const t=document.querySelector(e);return{}.NODE_ENV!=="production"&&!t&&oe(`Failed to mount app: mount target selector "${e}" returned null.`),t}return{}.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&oe('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}function p0(){Bv()}({}).NODE_ENV!=="production"&&p0();const h0={key:0,class:"ce-custom-url-help"},m0={class:"ce-custom-url-help-body"},g0=b("hr",null,null,-1),b0={key:0},y0={class:"pure-table pure-table-bordered"},w0=b("thead",null,[b("tr",null,[b("th",{width:"50%"},"变量"),b("th",{width:"50%"},"说明")])],-1),v0=["onClick"],_0=Me({__name:"CustomUrlHelp",setup(e){const t=pe(Db),n=pe(!1);hn(async()=>{window.addEventListener("message",r=>{const{event:i}=r.data;i==="customUrlHelp"&&(n.value=!0)},!1)});const o=r=>{Pr(r.key),Ae({text:"已复制到剪贴板",icon:"success",timer:1e3})};return(r,i)=>n.value?(ae(),he("div",h0,[b("div",m0,[b("h1",null,[_e(" 自定义菜单变量说明 "),b("a",{href:"javascript:void(0)",onClick:i[0]||(i[0]=s=>n.value=!1)},"关闭")]),g0,(ae(!0),he(Ze,null,Bt(t.value,(s,a)=>(ae(),he("div",{key:a},[b("h2",null,Ne(s.label),1),s.memo?(ae(),he("p",b0,Ne(s.memo),1)):dt("",!0),b("table",y0,[w0,b("tbody",null,[(ae(!0),he(Ze,null,Bt(s.items,(f,u)=>(ae(),he("tr",{key:u},[b("td",null,[b("span",{class:"ce-variable",onClick:d=>o(f)},Ne(f.key),9,v0)]),b("td",null,Ne(f.label),1)]))),128))])])]))),128))])])):dt("",!0)}}),lI="",cI="";var Ms=(e=>(e.IINA="iina",e.MPV="mpv",e.VLC="vlc",e.POTPLAYER="potplayer",e))(Ms||{});async function k0(e){return`iina://weblink?url=${encodeURIComponent(e)}`}async function $0(e){return`mpv://${e}`}async function x0(e){return`vlc://${e}`}async function E0(e){return`potplayer://${e}`}async function C0(e,t){switch(t){case"iina":return await k0(e);case"mpv":return await $0(e);case"vlc":return await x0(e);case"potplayer":return await E0(e);default:throw new Error(`不支持的播放器 ${t}`)}}async function Wl(e,t){return new Wt({key:`_play_all_with_${e}`,label:t,icon:"icon-operate ifo-video-play",title:`使用${e}播放全部视频`,onClick:async(n,o)=>{await n.closeMenu();try{const r=await ko();if(!r)return;const i=await rn(r),s=await Wa(i,{enabled:!0,key:"",label:"",url:"{clouddrive_playlist_url}"},await Lr());if(console.log("[playListUrl]",s),!s)throw new Error("无法获取有效的播放列表链接!");const a=await C0(s,e);if(console.log("[play url]",a),!a)throw new Error("无法获取有效的播放链接!");window.open(a,"_blank","noopener noreferrer")}catch(r){console.error(r),Ae({title:"播放失败",text:r.toString(),icon:"error"})}}})}async function S0(){return new Wt({key:"_play_with_x",label:"播放全部",icon:"icon-operate ifo-video-play",title:"",onClick:async(e,t)=>{},subItems:[await Wl(Ms.IINA,"IINA 播放全部视频"),await Wl(Ms.VLC,"VLC 播放全部视频"),await Wl(Ms.MPV,"MPV 播放全部视频")]})}async function O0(){return new Wt({key:"_rename_dir",label:"重命名文件夹",icon:"icon-operate ifo-rename",title:'重命名当前目录,支持"高级模式"',onClick:async(e,t)=>{await e.closeMenu();const n=await ko();!n||unsafeWindow.Core.Dir.Rename("1",n.attr("cate_id"),n.attr("title"))}})}async function N0(){return new Wt({key:"_move_dir",label:"移动文件夹",icon:"icon-operate ifo-move",title:"移动当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await ko();!n||await za(n,"move",!0)}})}async function A0(){return new Wt({key:"_del_dir",label:"删除文件夹",icon:"icon-operate ifo-remove",title:"删除当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await ko();if(!n)return;const o=await Ki();unsafeWindow.Core.FileAPI.DeleteFile([n],r=>{n.remove(),o.find("#js_top_header_file_path_box .top-file-path > .file-path").children(":last").prev()[0].click()},!0)}})}async function I0(){return new Wt({key:"_copy_dir",label:"复制文件夹",icon:"icon-operate ifo-copy",title:"复制当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await ko();!n||await za(n,"set_copy",!0)}})}async function P0(){return new Wt({key:"_copy_dir_to",label:"复制文件夹到",icon:"icon-operate ifo-copyto",title:"复制当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await ko();!n||await za(n,"copy_list",!0)}})}async function T0(){return new Wt({key:"view_dir_attribute",label:"查看属性",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu();const n=await ko();!n||Vr().Core.FileAPI.getAttribute(n,{showPlayLongChange:function(o,r,i){$b().CACHE.FileMain.List.ResetPlayLongText(o,r,i)}},function(){console.log("查看属性 ok")})}})}async function js(e,t){return new Wt({key:`_d_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制文件名",onClick:async(n,o)=>{let i=(await Hu(!1)).map(s=>s.n);i=await es(i,t),Pr(i.join(`
`)),Ae({title:"复制文件名",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success"})}})}async function Rs(e,t){return new Yu({key:`_l_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制文件名",onClick:async(n,o)=>{await n.closeMenu();const r=await Pb();if(!r||!r.n){Ae({text:"无法获取文件名称",timer:1200});return}let i=[r.n];i=await es(i,t),Pr(i.join(`
`)),Ae({title:"复制文件名",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success"})}})}const Bd="enabled_custom_urls_for_search",Fd="enabled_custom_urls_for_play";async function L0(e){await At.set(Bd,e)}async function D0(e){await At.set(Fd,e)}async function M0(){const e=Gl,t=e.filter(r=>r.enabled).map(r=>r.key),n=await At.get(Bd,t),o=[];return e.forEach(r=>{n.includes(r.key)&&o.push(r.key)}),o}async function j0(){const e=Kl,t=e.filter(r=>r.enabled).map(r=>r.key),n=await At.get(Fd,t),o=[];return e.forEach(r=>{n.includes(r.key)&&o.push(r.key)}),o}async function Ud(){const e=await M0();return Gl.forEach(t=>{t.enabled=e.includes(t.key)}),Gl}async function Hd(){const e=await j0();return Kl.forEach(t=>{t.enabled=e.includes(t.key)}),Kl}const Kl=[Lt({enabled:!0,key:"p_builtin_iina",label:"IINA播放",icon:"https://iina.io/images/iina-icon-60.png",memo:"调用IINA播放视频(使用CloudDrive直链)",url:"iina://weblink?url={clouddrive_down_url:encode}"}),Lt({enabled:!0,key:"p_builtin_vlc",label:"VLC播放",icon:"https://images.videolan.org/images/favicon.ico",memo:"调用VLC播放视频(使用CloudDrive直链)",url:"vlc://{clouddrive_down_url}"}),Lt({enabled:!0,key:"p_builtin_mpv",label:"MPV播放",icon:"https://mpv.io/images/mpv-logo-128-0baae5aa.png",memo:"调用MPV播放视频(使用CloudDrive直链)",url:"mpv://{clouddrive_down_url}"}),Lt({enabled:!0,key:"p_builtin_potplayer",label:"PotPlayer播放",icon:"https://t1.daumcdn.net/potplayer/main/img/favicon.ico",memo:"调用PotPlayer播放视频(使用CloudDrive直链)",url:"potplayer://{clouddrive_down_url}"}),Lt({enabled:!0,key:"p_builtin_online",label:"在线播放",icon:"https://115.com/favicon.ico",memo:"115官方在线播放",url:"https://v.anxia.com/?pickcode={pick_code}&share_id=0"})],Gl=[Lt({enabled:!0,key:"s_builtin_115_pure_name",label:"115-不含后缀",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀)",url:"{pure_name:search}"}),Lt({enabled:!1,key:"s_builtin_115_full_name",label:"115-完整文件名",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(完整文件名)",url:"{full_name:search}"}),Lt({enabled:!0,key:"s_builtin_google_pure_name",label:"Google-不含后缀",icon:"https://www.google.com/favicon.ico",memo:"使用Google搜索文件名(不含后缀)",url:"https://www.google.com/search?q={pure_name:encode}"}),Lt({enabled:!1,key:"s_builtin_google_full_name",label:"Google-完整文件名",icon:"https://www.google.com/favicon.ico",memo:"使用Google搜索文件名(完整文件名)",url:"https://www.google.com/search?q={full_name:encode}"}),Lt({enabled:!0,key:"s_builtin_bing_pure_name",label:"Bing-不含后缀",icon:"https://cn.bing.com/favicon.ico",memo:"使用Bing搜索文件名(不含后缀)",url:"https://cn.bing.com/search?q={pure_name:encode}"}),Lt({enabled:!1,key:"s_builtin_bing_full_name",label:"Bing-完整文件名",icon:"https://cn.bing.com/favicon.ico",memo:"使用Bing搜索文件名(完整文件名)",url:"https://cn.bing.com/search?q={full_name:encode}"})];async function R0(){const e=[...(await Hd()).filter(t=>t.enabled),...(await Yi($o.play)).filter(t=>t.enabled)];return new Xi({key:"_play_with_x_d",label:"播放",injectDecider:Yb,title:"115在线播放",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),r=await rn(o),i=Nb(r.pc);window.open(i,"_blank","noopener noreferrer")},subItems:[...await Xb(Ka,e)]})}async function V0(){const e=[...(await Ud()).filter(t=>t.enabled),...(await Yi($o.search)).filter(t=>t.enabled)];return new Xi({key:"_search_with_name_d",label:"搜索",icon:"",title:"使用名称搜索",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),r=await rn(o),i=qa({search_value:r.n,cid:await Wn()});window.open(i,"_blank","noopener noreferrer")},subItems:[...await Jb(Ka,e)]})}async function B0(){return new Xi({key:"_lh_copy_names_",label:"复制文件名",title:"复制文件名",onClick:async(e,t)=>{},subItems:[await zd("完整文件名",vt.full),await zd("不含后缀",vt.pure)]})}async function zd(e,t){return new Ka({key:`_lh_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,o)=>{o.stopPropagation(),o.preventDefault();const r=$(o.target).closest("li");let s=[(await rn(r)).n];s=await es(s,t),Pr(s.join(`
`)),Ae({title:"复制文件名",text:`已复制选中文件名,复制类型:${e}`,icon:"success"})}})}async function F0(){return new Xi({injectDecider:Gb,key:"_open_in_new_tab",label:"新标签页",icon:"",title:"在新标签页打开",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=$(t.target).closest("li"),o=await rn(n);if(!o||!o.cate_id){Ae({text:"无法获取目录ID",timer:1200});return}const r=zu(o.cate_id);window.open(r,"_blank","noopener noreferrer")}})}async function U0(){return new Zu({key:"_s_smart_mkdir",label:"移动到同名目录",icon:"icon-operate ifo-move",title:"文件移动到同名目录",onClick:await Qb(!0)})}async function H0(){return new Zu({key:"_s_copy_names",label:"复制文件名",icon:"icon-operate ifo-copy",title:"复制文件名",onClick:async(e,t)=>{},subItems:[await Vs("完整文件名",vt.full),await Vs("不包含后缀名",vt.pure),await Vs("完整文件名,去重",vt.fullUnique),await Vs("不包含后缀名,去重",vt.pureUnique)]})}async function Vs(e,t){return new Hb({key:`_s_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制文件名",onClick:async(n,o)=>{let i=(await Hu(!0)).map(s=>s.n);i=await es(i,t),Pr(i.join(`
`)),Ae({title:"复制文件名",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success"})}})}async function z0(){const{host:e,search:t}=location;if(!e.includes("115.com"))return;console.log("[Cloud115 Enhancer - menu] running..."),q0(),document.addEventListener(sn.EVENT_CLOSE_MENU,o=>{$("#"+o.detail.menu.key).closest(".context-menu").hide()});const n=await Gu();!n.enabled||(window.top===window.self&&W0(n),G0(n),(t.includes("ct=file")||t.includes("mode=search"))&&(K0(n),Y0(n),await Zb(n)))}async function q0(){console.log("[Cloud115 Enhancer - menu] injectUI");const e="ceCustomUrlHelp",t=document.createElement("div");t.id=e,document.body.appendChild(t),Vo(_0).mount(`#${e}`)}const qd=async(e,t)=>{};async function W0(e){const{[Ie.dirContext]:t}=e;if(!t.enabled)return;const n=[];t.rename&&n.push(await O0()),t.delete&&n.push(await A0()),t.play&&n.push(await S0()),t.copyNames&&n.push(new Wt({key:"_dir_copy_names",label:"复制文件名",icon:"icon-operate ifo-copy",onClick:qd,subItems:[await js("完整文件名",vt.full),await js("不包含后缀名",vt.pure),await js("完整文件名,去重",vt.fullUnique),await js("不包含后缀名,去重",vt.pureUnique)]}));const o=[];t.move&&o.push(await N0()),t.copy&&o.push(await I0()),t.copyTo&&o.push(await P0()),t.viewProp&&o.push(await T0()),o.length===1?n.push(o[0]):o.length>1&&n.push(new Wt({key:"_dir_more",label:"更多",icon:"icon-operate ifo-open",onClick:async(i,s)=>{},subItems:o})),await new zb({items:n,siblingSelector:'[val="add_dir"]',position:_o.after}).inject(),$(".ce-menu-parent .ce-menu-trigger").on("mouseover",function(){$(this).find(".ce-menu-dropdown").show()}).on("mouseout",function(){$(this).find(".ce-menu-dropdown").hide()})}async function K0(e){const{[Ie.listItemHover]:t}=e;if(!t.enabled)return;await Lr();const n=[];t.openInNewTab&&n.push(await F0()),t.search&&n.push(await V0()),t.play&&n.push(await R0()),t.copyNames&&n.push(await B0()),new Wb({items:n,position:_o.after,siblingSelector:'[menu="move"]'}).inject()}async function G0(e){const{[Ie.listItemContext]:t}=e;if(!t.enabled)return;await Lr();const n=[];t.copyNames&&n.push(new Yu({key:"_list_item_copy_names",label:"复制文件名",icon:"icon-operate ifo-copy",onClick:qd,subItems:[await Rs("完整文件名",vt.full),await Rs("不包含后缀名",vt.pure),await Rs("完整文件名,去重",vt.fullUnique),await Rs("不包含后缀名,去重",vt.pureUnique)]})),new qb({items:n,position:_o.after,siblingSelector:'[val="refresh"]',useObserver:!0,observeTarget:document.body,disposeObserverAfterInjection:!1}).inject()}async function Y0(e){const{[Ie.selection]:t}=e;if(!t.enabled)return;const n=[];t.moveToSelfNameDir&&n.push(await U0()),t.copyNames&&n.push(await H0()),new Kb({items:n,position:_o.before,siblingSelector:"ul li"}).inject()}const Wd="offlineExporterConfig";function Z0(e){return{onlyMagnet:!1,enableOptimization:!0,reqInterval:500,showInfoHash:!0,enableListManagement:!0,...e}}async function Kd(){const e=Z0(),t=await At.get(Wd,e);return{...e,...t}}async function J0(e){await At.set(Wd,e)}async function X0(e){const t=await Di("#js-warp"),o=t[0].querySelectorAll("li[complete]");o.length>0&&o.forEach(async i=>{await Gd(i,e)}),n_(e),new MutationObserver(async([i])=>{if(i.type==="childList"){i.addedNodes.forEach(async a=>{await Gd(a,e)});const s=document.querySelector(".ce-checkbox-all input");s.checked=!1}}).observe(t[0],{childList:!0})}async function Q0(e){const t=e;return{complete:t.getAttribute("complete"),cate_id:t.getAttribute("cate_id"),delete_id:t.getAttribute("delete_id"),status:t.getAttribute("status"),suffix:t.getAttribute("suffix"),name:t.getAttribute("name"),hash:t.getAttribute("hash")}}async function Gd(e,t){const n=e,o=await Q0(e);o_(n,t,o),e_(n,t,o),t_(n,t,o)}async function e_(e,t,n){if(!t.showInfoHash||n.name===n.hash||e.querySelector(".info-hash"))return;const o=e.querySelector(".file-name"),r=document.createElement("div");r.classList.add("info-hash"),r.textContent=n.hash,r.title=`点击复制${n.hash}`,o.after(r),r.addEventListener("click",()=>{Pi(n.hash,"text"),Ae({text:"已复制",icon:"success",timer:800})})}async function t_(e,t,n){const o=e.querySelector(".file-operate");if(o.querySelector(".ce-buttons"))return;const r=document.createElement("span");r.className="ce-buttons";const i=document.createElement("a");i.className="pure-button button-mini button-info",i.href=zu(n.cate_id),i.target="_blank",i.textContent="打开",i.title="在新标签页打开目录",r.append(i),o.prepend(r)}async function n_(e){if(!e.enableListManagement)return;const t=await Di("#js-main .header-name");if(t.length===0){console.warn("[renderCheckboxAll] 找不到`#js-main .header-name`");return}const n=document.createElement("div");n.classList.add("ce-checkbox"),n.classList.add("ce-checkbox-all"),n.innerHTML=`
    <input type="checkbox"/>
  `,t[0].prepend(n),n.addEventListener("click",()=>{const r=n.querySelector("input").checked;document.querySelectorAll("#js-warp li").forEach(s=>{const a=s.querySelector("input");a.checked=r,s.classList.toggle("ce-selected",r)}),Yd().then(s=>{Jd(s)})})}async function o_(e,t,n){if(!t.enableListManagement||e.querySelector(".ce-checkbox"))return;const o=e.querySelector(".file-name-wrap"),r=document.createElement("div");r.classList.add("ce-checkbox"),r.innerHTML=`
    <input type="checkbox" data-id="${n.hash}" />
  `,o.prepend(r),e.classList.add("ce-show-checkbox"),r.addEventListener("click",()=>{e.classList.toggle("ce-selected");const i=document.querySelector(".ce-checkbox-all input"),s=document.querySelectorAll("#js-warp li"),a=Array.from(s).every(f=>f.classList.contains("ce-selected"));i.checked=a,Yd().then(f=>{Jd(f)})})}async function r_(e){return{info_hash:e.getAttribute("hash"),status:Number(e.getAttribute("status")),name:e.getAttribute("name"),file_id:e.getAttribute("cate_id"),delete_file_id:e.getAttribute("delete_id")}}async function Yd(){const e=document.querySelectorAll("#js-warp li"),t=[];return e.forEach(async n=>{const o=n;if(o.classList.contains("ce-selected")){const r=await r_(o);t.push(r)}}),t}var Zd=(e=>(e.selection="cd-offline-selection",e))(Zd||{});async function Jd(e){window.postMessage({event:"cd-offline-selection",body:e},"*")}async function i_(e){document.querySelectorAll("#js-warp li").forEach(async n=>{const o=n,r=o.getAttribute("hash");e.includes(r)&&(o.style.transition="opacity 0.5s",o.style.opacity="0.2",setTimeout(()=>{o.remove()},500))})}const s_={class:"ce-config ce-offline-config"},a_={class:"pure-form pure-form-aligned offline-exporter-config-form"},l_={class:"pure-control-group"},c_=b("label",{for:"enableListManagement"},"启用批量管理",-1),u_={class:"pure-control-group"},f_=b("label",{for:"showInfoHash"},"显示磁力哈希",-1),d_={class:"pure-control-group"},p_=b("label",{for:"onlyMagnet"},"只取磁力链接",-1),h_={class:"pure-control-group"},m_=b("label",{for:"enableOptimization"},"启用导出优化",-1),g_=b("div",{class:"pure-form-message text-success"}," 据观察,离线记录列表是将未完成的记录放在最前面的。如果只需导出未完成链接, 当获取到一个已完成的记录时,便可以停止继续获取后面的记录,节省时间。 ",-1),b_={class:"pure-control-group"},y_=b("label",{for:"reqInterval"},"请求数据间隔",-1),w_=b("div",{class:"pure-form-message text-success"}," 请求分页的间隔,单位为毫秒,建议500左右。 ",-1),Xd=Me({__name:"Config",async setup(e){let t,n;const o=pe(([t,n]=ao(()=>Kd()),t=await t,n(),t));return pn(async()=>{}),nt(o,Qo(async r=>{await J0(r),Ae({icon:"success",title:"设置已保存,刷新页面生效。",timer:800,position:"top-end"})},500),{deep:!0}),(r,i)=>(ae(),he("div",s_,[b("form",a_,[b("fieldset",null,[b("div",l_,[c_,ge(b("input",{id:"enableListManagement",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=s=>o.value.enableListManagement=s)},null,512),[[He,o.value.enableListManagement]])]),b("div",u_,[f_,ge(b("input",{id:"showInfoHash",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=s=>o.value.showInfoHash=s)},null,512),[[He,o.value.showInfoHash]])]),b("div",d_,[p_,ge(b("input",{id:"onlyMagnet",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=s=>o.value.onlyMagnet=s)},null,512),[[He,o.value.onlyMagnet]])]),b("div",h_,[m_,ge(b("input",{id:"enableOptimization",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=s=>o.value.enableOptimization=s)},null,512),[[He,o.value.enableOptimization]]),g_]),b("div",b_,[y_,ge(b("input",{id:"reqInterval",type:"number","onUpdate:modelValue":i[4]||(i[4]=s=>o.value.reqInterval=s),min:100},null,512),[[ct,o.value.reqInterval]]),w_])])])]))}}),uI="",v_={class:"cloud115-eh-offline-exporter"},__={key:0},k_=b("button",{type:"button",class:"pure-button button-mini"},"设置",-1),$_=Me({__name:"OflineExporter",setup(e){const t=`\r
`;let n,o;const r=pe(!1),i=pe([]);let s={};hn(async()=>{console.log("fuckyou"),s=await Kd(),n=await db(),console.log("[profile]",n),o=await fb(),console.log("[space]",o),a(),await X0(s)});async function a(){window.addEventListener("message",E=>{const{event:v,body:S}=E.data;v===Zd.selection&&(i.value=S)},!1)}async function f(){const E=i.value.map(I=>I.info_hash);if(!E.length)return;const{isConfirmed:v,value:S}=await Te.fire({title:"批量删除",icon:"warning",html:`确定要删除选中的 ${E.length} 个离线记录吗?`,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!v)return;const C=!!S;Te.showLoading(),Te.update({html:"正在删除..."}),await _b(E,o,C,n.user_id),Ae({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await i_(E),i.value=[]}async function u(E){const v=[E];r.value&&v.push(Vt.magnet),console.log("[filters]",v),await x(o.sign,n.user_id,v)}function d(E,v){if(!v.length||v.length===1&&v[0]==="all")return E;const S={[er.failed]:Vt.failed,[er.illegal]:Vt.failed,[er.ing]:Vt.failed,[er.success]:Vt.success};return E=E.filter(C=>{if(!C.url&&!C.info_hash)return!1;const I=S[C.status];return v.includes(Vt.all)||I&&v.includes(I)?!(v.includes(Vt.magnet)&&(!Wm(C.info_hash)||C.url&&!qm(C.url))):!1}),E}async function p(E,v,S){let C=[],I=1,D=0;for(;;){Te.update({html:`正在导出... 进度:第 ${I} 页`+(D?` / ${D}`:"")});const T=await ub(I,E,v);if(!T.tasks||!T.tasks.length)break;if(D=T.page_count,C=[...C,...d(T.tasks,S)],s.enableOptimization&&S.includes(Vt.failed)&&g(T.tasks)){console.warn("由于开启了导出优化,且检测到已获取的记录中至少有一个「已完成」的记录,将不再获取剩下的记录");break}if(I>=T.page_count)break;I++,await wo(s.reqInterval)}return C}function g(E){for(const v of E)if(v.status===er.success)return!0;return!1}async function x(E,v,S){Te.fire({title:"导出离线链接",html:"正在导出...",didOpen:()=>{Te.showLoading()}});const C=await p(E,v,S);if(Te.hideLoading(),!C.length){await Te.fire({title:"导出失败",icon:"error",html:"查询不到符合条件的离线记录!"});return}const I=[];if(C.forEach(D=>{!D.url&&D.info_hash&&(D.url=Km(D.info_hash)),I.push(D.url)}),!I.length){await Te.fire({title:"导出失败",icon:"error",html:"未完成的离线记录中没有磁力或HTTP链接!"});return}Pi(I.join(t),"text"),console.log("[links]",I),await Te.fire({title:"导出成功",icon:"success",html:`成功导出 ${I.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),zm(I.join(t),`115离线链接_数量${I.length}_${Li()}.txt`),!1)})}return(E,v)=>{const S=Cn("VDropdown");return ae(),he("span",v_,[i.value.length?(ae(),he("span",__,[b("button",{type:"button",class:"pure-button button-small button-error",onClick:f},[_e("删除("),b("span",null,Ne(i.value.length),1),_e(")")]),_e("      ")])):dt("",!0),b("button",{type:"button",class:"pure-button button-mini button-error",onClick:v[0]||(v[0]=C=>u(qe(Vt).failed))},"导出未完成链接"),b("button",{type:"button",class:"pure-button button-mini button-success",onClick:v[1]||(v[1]=C=>u(qe(Vt).success))},"导出已完成链接"),b("button",{type:"button",class:"pure-button button-mini button-warning",onClick:v[2]||(v[2]=C=>u(qe(Vt).all))},"导出全部链接"),Ce(S,{distance:5,"arrow-padding":10},{popper:Ke(()=>[(ae(),Ut(qf,null,{default:Ke(()=>[Ce(Xd)]),_:1}))]),default:Ke(()=>[k_]),_:1})])}}}),fI="";function Pn(e){return e.split("-")[0]}function hr(e){return e.split("-")[1]}function fi(e){return["top","bottom"].includes(Pn(e))?"x":"y"}function Yl(e){return e==="y"?"height":"width"}function Qd(e){let{reference:t,floating:n,placement:o}=e;const r=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2;let s;switch(Pn(o)){case"top":s={x:r,y:t.y-n.height};break;case"bottom":s={x:r,y:t.y+t.height};break;case"right":s={x:t.x+t.width,y:i};break;case"left":s={x:t.x-n.width,y:i};break;default:s={x:t.x,y:t.y}}const a=fi(o),f=Yl(a);switch(hr(o)){case"start":s[a]=s[a]-(t[f]/2-n[f]/2);break;case"end":s[a]=s[a]+(t[f]/2-n[f]/2);break}return s}const x_=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n;if({}.NODE_ENV!=="production"&&(s==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),i.filter(x=>{let{name:E}=x;return E==="autoPlacement"||E==="flip"}).length>1))throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`","middleware detected. This will lead to an infinite loop. Ensure only","one of either has been passed to the `middleware` array."].join(" "));let a=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:u}=Qd({...a,placement:o}),d=o,p={},g=0;for(let x=0;x<i.length;x++){if({}.NODE_ENV!=="production"&&(g++,g>100))throw new Error(["Floating UI: The middleware lifecycle appears to be","running in an infinite loop. This is usually caused by a `reset`","continually being returned without a break condition."].join(" "));const{name:E,fn:v}=i[x],{x:S,y:C,data:I,reset:D}=await v({x:f,y:u,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:a,platform:s,elements:{reference:e,floating:t}});if(f=S!=null?S:f,u=C!=null?C:u,p={...p,[E]:I!=null?I:{}},D){typeof D=="object"&&(D.placement&&(d=D.placement),D.rects&&(a=D.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):D.rects),{x:f,y:u}=Qd({...a,placement:d})),x=-1;continue}}return{x:f,y:u,placement:d,strategy:r,middlewareData:p}};function E_(e){return{top:0,right:0,bottom:0,left:0,...e}}function ep(e){return typeof e!="number"?E_(e):{top:e,right:e,bottom:e,left:e}}function Zl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Bs(e,t){t===void 0&&(t={});const{x:n,y:o,platform:r,rects:i,elements:s,strategy:a}=e,{boundary:f="clippingParents",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=t,x=ep(g),v=s[p?d==="floating"?"reference":"floating":d],S=await r.getClippingClientRect({element:await r.isElement(v)?v:v.contextElement||await r.getDocumentElement({element:s.floating}),boundary:f,rootBoundary:u}),C=Zl(await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:d==="floating"?{...i.floating,x:n,y:o}:i.reference,offsetParent:await r.getOffsetParent({element:s.floating}),strategy:a}));return{top:S.top-C.top+x.top,bottom:C.bottom-S.bottom+x.bottom,left:S.left-C.left+x.left,right:C.right-S.right+x.right}}const C_=Math.min,Bo=Math.max;function Jl(e,t,n){return Bo(e,C_(t,n))}const S_=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=e!=null?e:{},{x:r,y:i,placement:s,rects:a,platform:f}=t;if(n==null)return{}.NODE_ENV!=="production"&&console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const u=ep(o),d={x:r,y:i},p=Pn(s),g=fi(p),x=Yl(g),E=await f.getDimensions({element:n}),v=g==="y"?"top":"left",S=g==="y"?"bottom":"right",C=a.reference[x]+a.reference[g]-d[g]-a.floating[x],I=d[g]-a.reference[g],D=await f.getOffsetParent({element:n}),T=D?g==="y"?D.clientHeight||0:D.clientWidth||0:0,L=C/2-I/2,M=u[v],P=T-E[x]-u[S],z=T/2-E[x]/2+L,J=Jl(M,z,P);return{data:{[g]:J,centerOffset:z-J}}}}),O_={left:"right",right:"left",bottom:"top",top:"bottom"};function Fs(e){return e.replace(/left|right|bottom|top/g,t=>O_[t])}function tp(e,t){const n=hr(e)==="start",o=fi(e),r=Yl(o);let i=o==="x"?n?"right":"left":n?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=Fs(i)),{main:i,cross:Fs(i)}}const N_={start:"end",end:"start"};function Xl(e){return e.replace(/start|end/g,t=>N_[t])}const A_=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function I_(e,t,n){return(e?[...n.filter(r=>hr(r)===e),...n.filter(r=>hr(r)!==e)]:n.filter(r=>Pn(r)===r)).filter(r=>e?hr(r)===e||(t?Xl(r)!==r:!1):!0)}const P_=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,s,a;const{x:f,y:u,rects:d,middlewareData:p,placement:g}=t,{alignment:x=null,allowedPlacements:E=A_,autoAlignment:v=!0,...S}=e;if((n=p.autoPlacement)!=null&&n.skip)return{};const C=I_(x,v,E),I=await Bs(t,S),D=(o=(r=p.autoPlacement)==null?void 0:r.index)!=null?o:0,T=C[D],{main:L,cross:M}=tp(T,d);if(g!==T)return{x:f,y:u,reset:{placement:C[0]}};const P=[I[Pn(T)],I[L],I[M]],z=[...(i=(s=p.autoPlacement)==null?void 0:s.overflows)!=null?i:[],{placement:T,overflows:P}],J=C[D+1];if(J)return{data:{index:D+1,overflows:z},reset:{placement:J}};const le=z.slice().sort((ee,ce)=>ee.overflows[0]-ce.overflows[0]),re=(a=le.find(ee=>{let{overflows:ce}=ee;return ce.every(se=>se<=0)}))==null?void 0:a.placement;return{data:{skip:!0},reset:{placement:re!=null?re:le[0].placement}}}}};function T_(e){const t=Fs(e);return[Xl(e),t,Xl(t)]}const L_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a}=t;if((n=i.flip)!=null&&n.skip)return{};const{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",flipAlignment:g=!0,...x}=e,E=Pn(r),S=d||(E===a||!g?[Fs(a)]:T_(a)),C=[a,...S],I=await Bs(t,x),D=[];let T=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&D.push(I[E]),u){const{main:z,cross:J}=tp(r,s);D.push(I[z],I[J])}if(T=[...T,{placement:r,overflows:D}],!D.every(z=>z<=0)){var L,M;const z=((L=(M=i.flip)==null?void 0:M.index)!=null?L:0)+1,J=C[z];if(J)return{data:{index:z,overflows:T},reset:{placement:J}};let le="bottom";switch(p){case"bestFit":{var P;const re=(P=T.slice().sort((ee,ce)=>ee.overflows.filter(se=>se>0).reduce((se,xe)=>se+xe,0)-ce.overflows.filter(se=>se>0).reduce((se,xe)=>se+xe,0))[0])==null?void 0:P.placement;re&&(le=re);break}case"initialPlacement":le=a;break}return{data:{skip:!0},reset:{placement:le}}}return{}}}};function D_(e){let{placement:t,rects:n,value:o}=e;const r=Pn(t),i=["left","top"].includes(r)?-1:1,s=typeof o=="function"?o({...n,placement:t}):o,{mainAxis:a,crossAxis:f}=typeof s=="number"?{mainAxis:s,crossAxis:0}:{mainAxis:0,crossAxis:0,...s};return fi(r)==="x"?{x:f,y:a*i}:{x:a*i,y:f}}const M_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:n,y:o,placement:r,rects:i}=t,s=D_({placement:r,rects:i,value:e});return{x:n+s.x,y:o+s.y,data:s}}}};function j_(e){return e==="x"?"y":"x"}const R_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:S=>{let{x:C,y:I}=S;return{x:C,y:I}}},...f}=e,u={x:n,y:o},d=await Bs(t,f),p=fi(Pn(r)),g=j_(p);let x=u[p],E=u[g];if(i){const S=p==="y"?"top":"left",C=p==="y"?"bottom":"right",I=x+d[S],D=x-d[C];x=Jl(I,x,D)}if(s){const S=g==="y"?"top":"left",C=g==="y"?"bottom":"right",I=E+d[S],D=E-d[C];E=Jl(I,E,D)}const v=a.fn({...t,[p]:x,[g]:E});return{...v,data:{x:v.x-n,y:v.y-o}}}}},V_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n;const{placement:o,rects:r,middlewareData:i}=t,{apply:s,...a}=e;if((n=i.size)!=null&&n.skip)return{};const f=await Bs(t,a),u=Pn(o),d=hr(o)==="end";let p,g;u==="top"||u==="bottom"?(p=u,g=d?"left":"right"):(g=u,p=d?"top":"bottom");const x=Bo(f.left,0),E=Bo(f.right,0),v=Bo(f.top,0),S=Bo(f.bottom,0),C={height:r.floating.height-(["left","right"].includes(o)?2*(v!==0||S!==0?v+S:Bo(f.top,f.bottom)):f[p]),width:r.floating.width-(["top","bottom"].includes(o)?2*(x!==0||E!==0?x+E:Bo(f.left,f.right)):f[g])};return s==null||s({...C,...r}),{data:{skip:!0},reset:{rects:!0}}}}};function Ql(e){return(e==null?void 0:e.toString())==="[object Window]"}function lo(e){if(e==null)return window;if(!Ql(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Us(e){return lo(e).getComputedStyle(e)}function Tn(e){return Ql(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ln(e){return e instanceof lo(e).HTMLElement}function Hs(e){return e instanceof lo(e).Element}function B_(e){return e instanceof lo(e).Node}function np(e){const t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function zs(e){const{overflow:t,overflowX:n,overflowY:o}=Us(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function F_(e){return["table","td","th"].includes(Tn(e))}function op(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=Us(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}const rp=Math.min,di=Math.max,qs=Math.round;function mr(e,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect();let o=1,r=1;return t&&Ln(e)&&(o=e.offsetWidth>0&&qs(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&qs(n.height)/e.offsetHeight||1),{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function co(e){return((B_(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ws(e){return Ql(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ip(e){return mr(co(e)).left+Ws(e).scrollLeft}function U_(e){const t=mr(e);return qs(t.width)!==e.offsetWidth||qs(t.height)!==e.offsetHeight}function H_(e,t,n){const o=Ln(t),r=co(t),i=mr(e,o&&U_(t));let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&n!=="fixed")if((Tn(t)!=="body"||zs(r))&&(s=Ws(t)),Ln(t)){const f=mr(t,!0);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else r&&(a.x=ip(r));return{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}function Ks(e){return Tn(e)==="html"?e:e.assignedSlot||e.parentNode||(np(e)?e.host:null)||co(e)}function sp(e){return!Ln(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function z_(e){let t=Ks(e);for(;Ln(t)&&!["html","body"].includes(Tn(t));){if(op(t))return t;t=t.parentNode}return null}function ec(e){const t=lo(e);let n=sp(e);for(;n&&F_(n)&&getComputedStyle(n).position==="static";)n=sp(n);return n&&(Tn(n)==="html"||Tn(n)==="body"&&getComputedStyle(n).position==="static"&&!op(n))?t:n||z_(e)||t}function ap(e){return{width:e.offsetWidth,height:e.offsetHeight}}function q_(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=Ln(n),i=co(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&o!=="fixed")&&((Tn(n)!=="body"||zs(i))&&(s=Ws(n)),Ln(n))){const f=mr(n,!0);a.x=f.x+n.clientLeft,a.y=f.y+n.clientTop}return{...t,x:t.x-s.scrollLeft+a.x,y:t.y-s.scrollTop+a.y}}function W_(e){const t=lo(e),n=co(e),o=t.visualViewport;let r=n.clientWidth,i=n.clientHeight,s=0,a=0;return o&&(r=o.width,i=o.height,Math.abs(t.innerWidth/o.scale-o.width)<.01&&(s=o.offsetLeft,a=o.offsetTop)),{width:r,height:i,x:s,y:a}}function K_(e){var t;const n=co(e),o=Ws(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=di(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=di(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+ip(e);const f=-o.scrollTop;return Us(r||n).direction==="rtl"&&(a+=di(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:f}}function lp(e){return["html","body","#document"].includes(Tn(e))?e.ownerDocument.body:Ln(e)&&zs(e)?e:lp(Ks(e))}function Gs(e,t){var n;t===void 0&&(t=[]);const o=lp(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=lo(o),s=r?[i].concat(i.visualViewport||[],zs(o)?o:[]):o,a=t.concat(s);return r?a:a.concat(Gs(Ks(s)))}function G_(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&np(n)){let o=t;do{if(o&&e===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function Y_(e){const t=mr(e),n=t.top+e.clientTop,o=t.left+e.clientLeft;return{top:n,left:o,x:o,y:n,right:o+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function cp(e,t){return t==="viewport"?Zl(W_(e)):Hs(t)?Y_(t):Zl(K_(co(e)))}function Z_(e){const t=Gs(Ks(e)),o=["absolute","fixed"].includes(Us(e).position)&&Ln(e)?ec(e):e;return Hs(o)?t.filter(r=>Hs(r)&&G_(r,o)&&Tn(r)!=="body"):[]}function J_(e){let{element:t,boundary:n,rootBoundary:o}=e;const i=[...n==="clippingParents"?Z_(t):[].concat(n),o],s=i[0],a=i.reduce((f,u)=>{const d=cp(t,u);return f.top=di(d.top,f.top),f.right=rp(d.right,f.right),f.bottom=rp(d.bottom,f.bottom),f.left=di(d.left,f.left),f},cp(t,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}const X_={getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:H_(t,ec(n),o),floating:{...ap(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>q_(e),getOffsetParent:e=>{let{element:t}=e;return ec(t)},isElement:e=>Hs(e),getDocumentElement:e=>{let{element:t}=e;return co(t)},getClippingClientRect:e=>J_(e),getDimensions:e=>{let{element:t}=e;return ap(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},Q_=(e,t,n)=>x_(e,t,{platform:X_,...n});var ek=Object.defineProperty,tk=Object.defineProperties,nk=Object.getOwnPropertyDescriptors,up=Object.getOwnPropertySymbols,ok=Object.prototype.hasOwnProperty,rk=Object.prototype.propertyIsEnumerable,fp=(e,t,n)=>t in e?ek(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dn=(e,t)=>{for(var n in t||(t={}))ok.call(t,n)&&fp(e,n,t[n]);if(up)for(var n of up(t))rk.call(t,n)&&fp(e,n,t[n]);return e},pi=(e,t)=>tk(e,nk(t));function dp(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?dp(e[n],t[n]):e[n]=t[n])}const Mn={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function gr(e,t){let n=Mn.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=Mn.themes[n.$extend]||{}:(n=null,o=Mn[t]):n=null;while(n);return o}function ik(e){const t=[e];let n=Mn.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Mn.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function pp(e){const t=[e];let n=Mn.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Mn.themes[n.$extend]||{}):n=null;while(n);return t}let Fo=!1;if(typeof window<"u"){Fo=!1;try{const e=Object.defineProperty({},"passive",{get(){Fo=!0}});window.addEventListener("test",null,e)}catch{}}let hp=!1;typeof window<"u"&&typeof navigator<"u"&&(hp=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const mp=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),gp={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},bp={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function yp(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function tc(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Zt=[];let Uo=null;const wp={};function vp(e){let t=wp[e];return t||(t=wp[e]=[]),t}let nc=function(){};typeof window<"u"&&(nc=window.Element);function Be(e){return function(t){return gr(t.theme,e)}}const oc="__floating-vue__popper";var _p=()=>Me({name:"VPopper",provide(){return{[oc]:{parentPopper:this}}},inject:{[oc]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Be("disabled")},positioningDisabled:{type:Boolean,default:Be("positioningDisabled")},placement:{type:String,default:Be("placement"),validator:e=>mp.includes(e)},delay:{type:[String,Number,Object],default:Be("delay")},distance:{type:[Number,String],default:Be("distance")},skidding:{type:[Number,String],default:Be("skidding")},triggers:{type:Array,default:Be("triggers")},showTriggers:{type:[Array,Function],default:Be("showTriggers")},hideTriggers:{type:[Array,Function],default:Be("hideTriggers")},popperTriggers:{type:Array,default:Be("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Be("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Be("popperHideTriggers")},container:{type:[String,Object,nc,Boolean],default:Be("container")},boundary:{type:[String,nc],default:Be("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Be("strategy")},autoHide:{type:[Boolean,Function],default:Be("autoHide")},handleResize:{type:Boolean,default:Be("handleResize")},instantMove:{type:Boolean,default:Be("instantMove")},eagerMount:{type:Boolean,default:Be("eagerMount")},popperClass:{type:[String,Array,Object],default:Be("popperClass")},computeTransformOrigin:{type:Boolean,default:Be("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Be("autoMinSize")},autoSize:{type:[Boolean,String],default:Be("autoSize")},autoMaxSize:{type:Boolean,default:Be("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Be("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Be("preventOverflow")},overflowPadding:{type:[Number,String],default:Be("overflowPadding")},arrowPadding:{type:[Number,String],default:Be("arrowPadding")},arrowOverflow:{type:Boolean,default:Be("arrowOverflow")},flip:{type:Boolean,default:Be("flip")},shift:{type:Boolean,default:Be("shift")},shiftCrossAxis:{type:Boolean,default:Be("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Be("noAutoFocus")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:pi(Dn({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[oc])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:Dn(Dn({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var o,r;((o=this.parentPopper)==null?void 0:o.lockedChild)&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e,t;!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(t=(e=this.referenceNode)==null?void 0:e.call(this))!=null?t:this.$el,this.$_targetNodes=this.targetNodes().filter(n=>n.nodeType===n.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(M_({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?t.middleware.push(P_({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(R_({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(L_({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(S_({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:i,middlewareData:s})=>{let a;const{centerOffset:f}=s.arrow;return r.startsWith("top")||r.startsWith("bottom")?a=Math.abs(f)>i.reference.width/2:a=Math.abs(f)>i.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:i,placement:s,middlewareData:a})=>{var f;if((f=a.autoSize)!=null&&f.skip)return{};let u,d;return s.startsWith("top")||s.startsWith("bottom")?u=i.reference.width:d=i.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=u!=null?`${u}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=d!=null?`${d}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(V_({boundary:this.boundary,padding:this.overflowPadding,apply:({width:r,height:i})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const o=await Q_(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:Dn(Dn({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Uo&&this.instantMove&&Uo.instantMove&&Uo!==this.parentPopper){Uo.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Uo=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await tc(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Gs(this.$_referenceNode),...Gs(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),o=n.parentNode.getBoundingClientRect(),r=t.x+t.width/2-(o.left+n.offsetLeft),i=t.y+t.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<Zt.length;n++)t=Zt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Zt.push(this),document.body.classList.add("v-popper--some-open");for(const t of pp(this.theme))vp(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await tc(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,yp(Zt,this),Zt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of pp(this.theme)){const o=vp(n);yp(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Uo===this&&(Uo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=gr(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await tc(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,gp,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],gp,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,bp,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],bp,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(o=>o.addEventListener(t,n,Fo?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,r){let i=n;o!=null&&(i=typeof o=="function"?o(i):o),i.forEach(s=>{const a=t[s];a&&this.$_registerEventListeners(e,a,r)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:r,handler:i}=n;!e||e===r?o.forEach(s=>s.removeEventListener(r,i)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const o=n.getAttribute(e);o&&(n.removeAttribute(e),n.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const o=e[n];o==null?t.removeAttribute(n):t.setAttribute(n,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(hi>=e.left&&hi<=e.right&&mi>=e.top&&mi<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=hi-uo,o=mi-fo,i=t.left+t.width/2-uo+(t.top+t.height/2)-fo+t.width+t.height,s=uo+n*i,a=fo+o*i;return Ys(uo,fo,s,a,t.left,t.top,t.left,t.bottom)||Ys(uo,fo,s,a,t.left,t.top,t.right,t.top)||Ys(uo,fo,s,a,t.right,t.top,t.right,t.bottom)||Ys(uo,fo,s,a,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(hp?(document.addEventListener("touchstart",kp,Fo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",ak,Fo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",kp,!0),window.addEventListener("click",sk,!0)),window.addEventListener("resize",uk));function kp(e){for(let t=0;t<Zt.length;t++){const n=Zt[t];try{const o=n.popperNode();n.$_mouseDownContains=o.contains(e.target)}catch{}}}function sk(e){$p(e)}function ak(e){$p(e,!0)}function $p(e,t=!1){const n={};for(let o=Zt.length-1;o>=0;o--){const r=Zt[o];try{const i=r.$_containsGlobalTarget=lk(r,e);r.$_pendingHide=!1,requestAnimationFrame(()=>{if(r.$_pendingHide=!1,!n[r.randomId]&&xp(r,i,e)){if(r.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let a=r.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let s=r.parentPopper;for(;s&&xp(s,s.$_containsGlobalTarget,e);){s.$_handleGlobalClose(e,t);s=s.parentPopper}}})}catch{}}}function lk(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function xp(e,t,n){return n.closeAllPopover||n.closePopover&&t||ck(e,n)&&!t}function ck(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function uk(e){for(let t=0;t<Zt.length;t++)Zt[t].$_computePosition(e)}let uo=0,fo=0,hi=0,mi=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{uo=hi,fo=mi,hi=e.clientX,mi=e.clientY},Fo?{passive:!0}:void 0);function Ys(e,t,n,o,r,i,s,a){const f=((s-r)*(t-i)-(a-i)*(e-r))/((a-i)*(n-e)-(s-r)*(o-t)),u=((n-e)*(t-i)-(o-t)*(e-r))/((a-i)*(n-e)-(s-r)*(o-t));return f>=0&&f<=1&&u>=0&&u<=1}var Zs=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};const fk={extends:_p()};function dk(e,t,n,o,r,i){return ae(),he("div",{ref:"reference",class:at(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Sn(e.$slots,"default",ry(kd(e.slotData)))],2)}var pk=Zs(fk,[["render",dk]]);function hk(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let Js;function rc(){rc.init||(rc.init=!0,Js=hk()!==-1)}var Xs={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){rc(),ul(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Js&&this.$el.appendChild(e),e.data="about:blank",Js||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Js&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const mk=Sw();Ew("data-v-b329ee4c");const gk={class:"resize-observer",tabindex:"-1"};Cw();const bk=mk((e,t,n,o,r,i)=>(ae(),Ut("div",gk)));Xs.render=bk,Xs.__scopeId="data-v-b329ee4c",Xs.__file="src/components/ResizeObserver.vue";var Ep=(e="theme")=>({computed:{themeClass(){return ik(this[e])}}});const yk=Me({name:"VPopperContent",components:{ResizeObserver:Xs},mixins:[Ep()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),wk=["id","aria-hidden","tabindex","data-popper-placement"],vk={ref:"inner",class:"v-popper__inner"},_k=[b("div",{class:"v-popper__arrow-outer"},null,-1),b("div",{class:"v-popper__arrow-inner"},null,-1)];function kk(e,t,n,o,r,i){const s=Cn("ResizeObserver");return ae(),he("div",{id:e.popperId,ref:"popover",class:at(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:_n(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=a0(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[b("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),b("div",{class:"v-popper__wrapper",style:_n(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[b("div",vk,[e.mounted?(ae(),he(Ze,{key:0},[b("div",null,[Sn(e.$slots,"default")]),e.handleResize?(ae(),Ut(s,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):dt("",!0)],64)):dt("",!0)],512),b("div",{ref:"arrow",class:"v-popper__arrow-container",style:_n(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},_k,4)],4)],46,wk)}var Cp=Zs(yk,[["render",kk]]),Sp={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};const $k=Me({name:"VPopperWrapper",components:{Popper:pk,PopperContent:Cp},mixins:[Sp,Ep("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function xk(e,t,n,o,r,i){const s=Cn("PopperContent"),a=Cn("Popper");return ae(),Ut(a,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:at([e.themeClass])},{default:Ke(({popperId:f,isShown:u,shouldMountContent:d,skipTransition:p,autoHide:g,show:x,hide:E,handleResize:v,onResize:S,classes:C,result:I})=>[Sn(e.$slots,"default",{shown:u,show:x,hide:E}),Ce(s,{ref:"popperContent","popper-id":f,theme:e.finalTheme,shown:u,mounted:d,"skip-transition":p,"auto-hide":g,"handle-resize":v,classes:C,result:I,onHide:E,onResize:S},{default:Ke(()=>[Sn(e.$slots,"popper",{shown:u,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}var ic=Zs($k,[["render",xk]]);const Ek=Me(pi(Dn({},ic),{name:"VDropdown",vPopperTheme:"dropdown"})),Ck=Me(pi(Dn({},ic),{name:"VMenu",vPopperTheme:"menu"})),Sk=Me(pi(Dn({},ic),{name:"VTooltip",vPopperTheme:"tooltip"})),Ok=Me({name:"VTooltipDirective",components:{Popper:_p(),PopperContent:Cp},mixins:[Sp],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>gr(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>gr(e.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(o=>this.onResult(t,o)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Nk=["innerHTML"],Ak=["textContent"];function Ik(e,t,n,o,r,i){const s=Cn("PopperContent"),a=Cn("Popper");return ae(),Ut(a,xd({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Ke(({popperId:f,isShown:u,shouldMountContent:d,skipTransition:p,autoHide:g,hide:x,handleResize:E,onResize:v,classes:S,result:C})=>[Ce(s,{ref:"popperContent",class:at({"v-popper--tooltip-loading":e.loading}),"popper-id":f,theme:e.theme,shown:u,mounted:d,"skip-transition":p,"auto-hide":g,"handle-resize":E,classes:S,result:C,onHide:x,onResize:v},{default:Ke(()=>[e.html?(ae(),he("div",{key:0,innerHTML:e.finalContent},null,8,Nk)):(ae(),he("div",{key:1,textContent:Ne(e.finalContent)},null,8,Ak))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var Pk=Zs(Ok,[["render",Ik]]);const Op="v-popper--has-tooltip";function Tk(e,t){let n=e.placement;if(!n&&t)for(const o of mp)t[o]&&(n=o);return n||(n=gr(e.theme||"tooltip","placement")),n}function Np(e,t,n){let o;const r=typeof t;return r==="string"?o={content:t}:t&&r==="object"?o=t:o={content:!1},o.placement=Tk(o,n),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let sc,gi,Lk=0;function Dk(){if(sc)return;gi=pe([]),sc=Vo({name:"VTooltipDirectiveApp",setup(){return{directives:gi}},render(){return this.directives.map(t=>An(Pk,pi(Dn({},t.options),{shown:t.shown||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),sc.mount(e)}function Mk(e,t,n){Dk();const o=pe(Np(e,t,n)),r=pe(!1),i={id:Lk++,options:o,shown:r};return gi.value.push(i),e.classList&&e.classList.add(Op),e.$_popper={options:o,item:i,show(){r.value=!0},hide(){r.value=!1}}}function Ap(e){if(e.$_popper){const t=gi.value.indexOf(e.$_popper.item);t!==-1&&gi.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Op)}function Ip(e,{value:t,modifiers:n}){const o=Np(e,t,n);if(!o.content||gr(o.theme||"tooltip","disabled"))Ap(e);else{let r;e.$_popper?(r=e.$_popper,r.options.value=o):r=Mk(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?r.show():r.hide())}}var jk={beforeMount:Ip,updated:Ip,beforeUnmount(e){Ap(e)}};function Pp(e){e.addEventListener("click",Lp),e.addEventListener("touchstart",Dp,Fo?{passive:!0}:!1)}function Tp(e){e.removeEventListener("click",Lp),e.removeEventListener("touchstart",Dp),e.removeEventListener("touchend",Mp),e.removeEventListener("touchcancel",jp)}function Lp(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Dp(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",Mp),t.addEventListener("touchcancel",jp)}}function Mp(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-o.screenY)<20&&Math.abs(n.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function jp(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var Rk={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Pp(e)},updated(e,{value:t,oldValue:n,modifiers:o}){e.$_closePopoverModifiers=o,t!==n&&(typeof t>"u"||t?Pp(e):Tp(e))},beforeUnmount(e){Tp(e)}};function Vk(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,dp(Mn,t),e.directive("tooltip",jk),e.directive("close-popper",Rk),e.component("VTooltip",Sk),e.component("VDropdown",Ek),e.component("VMenu",Ck))}const Rp={version:"2.0.0-beta.20",install:Vk,options:Mn},mI="",Vp="basic_config";function Bk(e){return{hideWatermark:!1,hideSidebar:!0,...e}}async function ac(){const e=Bk(),t=await At.get(Vp,e);return{...e,...t}}async function Fk(e){await At.set(Vp,e)}async function Uk(e){!e.hideSidebar||(console.log("[Cloud115 Enhancer] hideSidebar"),window.top!==window.self?(await Mi('[rel="page_top_btn"]')).show():(await Mi("#site_left_bar")).hide())}async function Hk(e){if(!e.hideWatermark)return;console.log("[Cloud115 Enhancer] hideWatermark");const t=await Mi('div[class^="fp-"]');t.addClass("hidden-watermark"),t.hide()}async function zk(){const{host:e,search:t}=location;e!=="115.com"||!t.includes("offline=1&tab=offline")||(qk(),Wk())}async function qk(){console.log("[Cloud115 Enhancer] Injecting offline exporter...");const e="cloud115OfflineExporter";document.body.classList.add("cloud115-page-offline"),$("body").append(`<div id="${e}"/>`);const t=Vo($_);t.use(Rp),t.mount(`#${e}`)}async function Wk(){(await ac()).hideSidebar&&($('.more-box[rel="transfer_top_btn"]').show(),$('a[menu="upload"]').show(),$('.clp-box[rel="transfer_top_btn"]').show())}var po=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.OPEN_CLEANER=1]="OPEN_CLEANER",e[e.CLOSE_CLEANER=2]="CLOSE_CLEANER",e[e.CLEANER_OPENED=3]="CLEANER_OPENED",e[e.INVOKE_FILTER=4]="INVOKE_FILTER",e))(po||{});const Kk={class:"cloud115-eh-cleaner-trigger"},Gk=[b("span",null,"清理文件",-1)],Yk=Me({__name:"Trigger",setup(e){pe(!1);const t=pe(!0);async function n(a){switch(console.log("[handleMessage]",a),a.data.type){case po.INVOKE_FILTER:await Ab(a.data.payload);break;case po.CLEANER_OPENED:await s(a.data.payload);break}}hn(async()=>{console.log("[CleanerTrigger onMounted]"),window.addEventListener("message",n)}),oi(()=>{console.log("[CleanerTrigger onUnmounted]"),window.removeEventListener("message",n)});async function o(){await i(),ji({type:po.OPEN_CLEANER},window.parent)}let r=0;async function i(){const a=Gm("cid");!a||a==="0"||(clearTimeout(r),r=window.setTimeout(async()=>{Ae({icon:"error",text:"打开清理工具失败!"})},1e3))}async function s(a){console.log("成功打开Cleaner"),clearTimeout(r)}return(a,f)=>ge((ae(),he("span",Kk,[Sn(a.$slots,"default",{},()=>[b("span",{class:"btn-open pure-button pure-button-primary",onClick:o},Gk)])],512)),[[In,t.value]])}}),bI="";var Re=(e=>(e[e.suffix=0]="suffix",e[e.keyword=1]="keyword",e))(Re||{}),gt=(e=>(e[e.append=0]="append",e[e.cover=1]="cover",e[e.clear=2]="clear",e[e.reset=3]="reset",e[e.assign=4]="assign",e))(gt||{}),ut=(e=>(e.none="",e.prepare="查询文件...",e.prepared="查询文件完成",e.prepareFailed="查询失败",e.deleting="删除文件中...",e.success="清理完成",e.failed="清理失败",e))(ut||{});wt.all,tt.all,wt.video,tt.video,wt.audio,tt.audio,wt.image,tt.image,wt.doc,tt.doc,wt.app,tt.app,wt.archive,tt.archive;const Zk=new Map([[tt.all,wt.all],[tt.video,wt.video],[tt.audio,wt.audio],[tt.image,wt.image],[tt.doc,wt.doc],[tt.app,wt.app],[tt.archive,wt.archive]]),Qs="#",Bp="#",Jk=[{type:Re.suffix,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:5,values:["txt","url","html","htm","mht"]},{type:Re.suffix,queryOnly:!0,label:"🔍115筛选",memo:"仅用于查询",size:102400,values:["#视频","#音频","#图片","#文档","#应用","#压缩包"]}],Xk=["#論壇文宣","#宣傳文本","最新地址","最新网址","论坛地址","永久地址","地址发布","扫码 安装","扫码 下载","免費 掃碼","澳门 赌场","皇冠 赌场","免费18禁手游","免费黄游手游","在线影城","秀场 小视频","裸秀 主播 免费看","第一会所 宣传","SIS 影视联盟",'"最 新 位 址 獲 取"','"社 區 最 新 情 報"','"聚 合 全 網 H 直 播"'],Qk=["#論壇文宣","美女 裸聊","秀场 视频","澳门 赌场","皇冠 赌场","影视 联盟","2048 社区","1024 社区","会所 宣传","扫码 安装","社区 关注","免費 掃碼","找回家","防屏蔽","封殺00","秀场 小视频","裸秀 主播 免费看",'"Free Adult Movie"',"奔驰宝马","最新网址","最新免費","免费试用","美女荷官","凤凰娛樂","观看指南","女神在线","更多无水印","免费在线","国产精品","免費原版","獨家資源","成人光碟","最新AV","FDZone","发布器","QR-1024","在這等你","激情祼聊","看妹不用等","真人祼聊","zz.jpg","X8B9.COM.gif","第一会所 宣传","SIS 影视联盟","淘精網","激情咖啡","手機影城","免费手机看片","U視娛樂","加微信","我愛看片手機版","平台正式上線"],e1=[{type:Re.keyword,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:100,values:Xk},{type:Re.keyword,queryOnly:!1,label:"⚠️大杀器⚠️",memo:"请谨慎使用!",size:100,values:Qk},{type:Re.keyword,queryOnly:!0,label:"只查询示例",memo:"这是一个示例",size:10240,values:["奔驰宝马","美女荷官",'"最 新 位 址 獲 取"']}];function Ho(e){return{id:Date.now().toString(),type:e,queryOnly:!1,label:"",values:"",memo:"",size:0,sort:0,createdAt:0,updatedAt:0}}function Fp(e,t){e=e.trim();const n=t===Re.keyword&&t1(e),o=t===Re.suffix&&n1(e);let r=e;return n&&(r=o1(e)),o&&(r=r1(e).toString()),{type:t,value:e,forDir:n,isFilter:o,pattern:r,num:-1,fileIds:[],size:-1,status:ut.none}}function Up(e){return[ut.prepare,ut.deleting].includes(e.status)}function t1(e){return new RegExp(`^${Qs}[\\S]{2,}`).test(e)}function n1(e){return new RegExp(`^${Bp}[\\S]{2,}`).test(e)}function o1(e){const t=new RegExp(`^${Qs}`);return e.replace(t,"")}function r1(e){const t=new RegExp(`^${Bp}`);let n=e.replace(t,"");const o=Zk.get(n);if(!o)throw new Error(`"${e}"不是有效的筛选!`);return o}async function zo(e,t){let n;typeof e=="string"?n=e.split(/[\r\n]+/):n=e;const o=new Set;for(let i=0;i<n.length;i++){const s=n[i].trim();s.length>1&&o.add(s)}const r=[];return o.forEach(i=>{r.push(Fp(i,t))}),r}function Hp(e){return/(^'.+'$)|(^".+"$)/.test(e)}function lc(e){return Hp(e)?e.replace(/^['"]|['"]$/g,""):e}function i1(e,t){if(e===""||t==="")return!1;if(e=e.toLowerCase(),Hp(t))return e.includes(lc(t).toLowerCase());const n=t.split(/\s+/);for(let o=0;o<n.length;o++)if(!e.includes(n[o].toLowerCase()))return!1;return!0}async function zp(e,t,n){const o=Fp(e.value,e.type);o.num=0,o.size=0,o.fileIds=[];const r=new Set;let i=0;n.maxSize&&(i=n.maxSize*1024*1024);for(let s=0;s<t.length;s++){const a=!!t[s].fid,f=a?t[s].fid:t[s].cid;if(e.type===Re.keyword&&(a&&e.forDir||!a&&!e.forDir))continue;const u=parseFloat(t[s].s);i&&a&&u>i||e.type===Re.keyword&&!i1(t[s].n,e.pattern)||r.has(f)||(r.add(f),o.size+=u)}return o.fileIds=Array.from(r),o.num=o.fileIds.length,o}const s1={class:"group-manager"},a1={key:0,class:"label-readonly",title:"当前分组只可用于查询"},l1=["title"],c1=b("small",null,"分组:",-1),u1={class:"pure-form pure-form-stacked group-form"},f1=b("label",{for:"groupLabel"},"标题",-1),d1=b("label",{for:"groupMemo"},"备注",-1),p1={for:"groupValues"},h1={key:0,class:"text-info"},m1={key:1,class:"text-info"},g1=["onClick"],b1=b("small",{class:"text-primary"},"(点击添加)",-1),y1=b("label",{for:"groupMemo"},[_e(" 文件大小 "),b("span",{class:"text-info"},[_e("只清理小于该大小的文件,单位"),b("b",null,"MB")])],-1),w1={class:"groups-list"},v1={key:0,class:"text-danger"},_1=b("span",{class:"text-info"},"或",-1),k1=b("br",null,null,-1),$1=b("br",null,null,-1),x1={class:"pure-table pure-table-bordered"},E1=b("thead",null,[b("tr",null,[b("th",{width:"25"},"#"),b("th",{width:"70"},"只查询"),b("th",{width:"150"},"名称"),b("th",{width:"150"},"备注"),b("th",{width:"70"},[_e("大小"),b("small",null,"MB")]),b("th",{width:"220"},"操作")])],-1),C1={align:"center"},S1=["onClick"],O1=b("button",{type:"button",class:"pure-button button-xsmall text-danger"},"删除",-1),N1={class:"group-confirm-delete"},A1=["onClick"],I1=["onClick"],qp=Me({__name:"GroupManager",props:{type:null,storageKey:null,config:null},emits:["change"],setup(e,{emit:t}){const n=e,o=pe(Ho(n.type)),r=pe([]),i=pe(!1),s=pe(Ho(n.type)),a=pe(null),f=pe(!1),u=pe(null),d=[tt.video,tt.audio,tt.image,tt.doc,tt.app,tt.archive];nt(r,async re=>{console.log("[groups change]",re),vo(n.storageKey,re,!1),re.length||(i.value=!1,f.value=!1)},{deep:!0});let p=!1;hn(async()=>{if(console.log("[GroupManager onMounted]"),!p){p=!0,r.value=Ti(n.storageKey,[]),console.log("[groups]",r.value);const{suffixGroup:re,keywordGroup:ee}=n.config;if(r.value.length){const ce=r.value.find(se=>se.id===(n.type===Re.suffix?re:ee));console.log("[group last choosen]",ce),o.value=ce||r.value[0],t("change",o.value)}else n.type===Re.suffix&&!re&&(await M(),vo("cleanerConfig",{suffixGroup:o.value.id},!0)),n.type===Re.keyword&&!ee&&(await M(),vo("cleanerConfig",{keywordGroup:o.value.id},!0))}}),oi(async()=>{console.log("[GroupManager onUnmounted]")});async function g(re){const ee=`#${re}`;s.value.values.includes(ee)||(s.value.values+=(`
`+ee).trim()+`
`)}async function x(){i.value=!0,f.value=!1}async function E(){i.value=!1}async function v(){a.value.show()}async function S(){a.value.hide()}async function C(){f.value=!1}async function I(){f.value=!0,i.value=!1}async function D(){u.value.show()}async function T(){u.value.hide()}async function L(){s.value.createdAt&&(s.value=Ho(n.type)),s.value.size=5,n.type===Re.keyword&&(s.value.size=100),await v()}async function M(){let re=[];n.type===Re.suffix?re=Jk:re=e1;for(let ee=0;ee<re.length;ee++){const ce={...Ho(re[ee].type),...re[ee]};s.value=ce,s.value.type=ce.type,s.value.queryOnly=ce.queryOnly,s.value.size=ce.size,s.value.label=ce.label,s.value.memo=ce.memo,s.value.createdAt=0,s.value.updatedAt=0,Array.isArray(ce.values)?s.value.values=ce.values.join(`
`):s.value.values=ce.values,await J(),await T()}r.value.length&&await le(r.value[0])}async function P(re,ee=!1){if(!ee){const{isConfirmed:se}=await Te.fire({html:`确定删除"${o.value.label}"?`,icon:"question"});if(!se)return}let ce=-1;for(let se=0;se<r.value.length;se++)if(r.value[se].id===o.value.id){ce=se;break}r.value.splice(ce,1),r.value.length?o.value=r.value[0]:o.value=Ho(n.type),t("change",o.value),await Ae({icon:"success",title:"删除成功!",timer:1500})}async function z(re){s.value=re,await v()}async function J(){let re=[];try{re=await zo(s.value.values,s.value.type)}catch(R){await Te.fire({icon:"error",text:R.message});return}if(s.value.label=s.value.label.trim(),s.value.memo=s.value.memo.trim(),s.value.label===""){await Ae({icon:"warning",text:"请输入标题!"});return}let ee=-1;for(let R=0;R<r.value.length;R++)if(r.value[R].id===s.value.id&&s.value.id){ee=R;break}const ce=Li();s.value.updatedAt=ce,s.value.createdAt||(s.value.createdAt=ce);let se=[];for(let R=0;R<re.length;R++)se.push(re[R].value);s.value.values=se.join(`
`).trim(),console.log("[saveGroup]",s.value,ee),ee===-1?(r.value.push(s.value),Ae({icon:"success",text:"添加成功"})):(r.value[ee]=s.value,Ae({icon:"success",text:"更新成功"}));const xe=!o.value.createdAt;xe&&(o.value=s.value),(s.value.id===o.value.id||xe)&&t("change",s.value),await S()}async function le(re){o.value=re;const{id:ee}=o.value;n.type===Re.suffix&&(n.config.suffixGroup=ee,vo("cleanerConfig",{suffixGroup:ee},!0)),n.type===Re.keyword&&(n.config.keywordGroup=ee,vo("cleanerConfig",{keywordGroup:ee},!0)),t("change",re)}return(re,ee)=>{const ce=Cn("VDropdown");return ae(),he("div",s1,[o.value.queryOnly?(ae(),he("span",a1," 只查询 ")):dt("",!0),o.value.createdAt?(ae(),he("a",{key:1,class:"group-label",href:"javascript:void(0)",title:`当前使用的分组: ${o.value.label}`,onClick:ee[0]||(ee[0]=se=>z(o.value))},[b("span",null,[c1,_e(" "+Ne(o.value.label),1)])],8,l1)):dt("",!0),Ce(ce,{ref_key:"form",ref:a,onHide:E,onShow:x,distance:5,"arrow-padding":100},{popper:Ke(()=>[b("form",u1,[b("fieldset",null,[b("div",null,[f1,ge(b("input",{type:"text","onUpdate:modelValue":ee[1]||(ee[1]=se=>s.value.label=se),id:"groupLabel",class:"pure-input-1-2",placeholder:"分组标题"},null,512),[[ct,s.value.label]]),_e("    "),s.value.queryOnly?(ae(),he("button",{key:0,type:"button",class:"pure-button button-small button-warning",onClick:ee[2]||(ee[2]=se=>s.value.queryOnly=!1)},"已设置为仅用于查询 | 点击取消设置")):dt("",!0),s.value.queryOnly?dt("",!0):(ae(),he("button",{key:1,type:"button",class:"pure-button button-small pure-button-primary",onClick:ee[3]||(ee[3]=se=>s.value.queryOnly=!0)},"设置为仅用于查询"))]),b("div",null,[d1,ge(b("input",{type:"text","onUpdate:modelValue":ee[4]||(ee[4]=se=>s.value.memo=se),id:"groupMemo",placeholder:"分组备注"},null,512),[[ct,s.value.memo]])]),b("div",null,[b("label",p1,[_e(" 特征列表 "),n.type===qe(Re).keyword?(ae(),he("span",h1,[_e(" 默认只匹配文件名。前面带"),b("b",null,Ne(qe(Qs)),1),_e("则只匹配目录名。 ")])):dt("",!0),n.type===qe(Re).suffix?(ae(),he("span",m1,[_e(" 支持115自带筛选: "),(ae(),he(Ze,null,Bt(d,(se,xe)=>b("span",{class:"filter-label text-success",key:xe,onClick:R=>g(se)}," #"+Ne(se),9,g1)),64)),b1])):dt("",!0)]),ge(b("textarea",{id:"groupValues","onUpdate:modelValue":ee[5]||(ee[5]=se=>s.value.values=se),rows:"5",placeholder:"每行一个"},null,512),[[ct,s.value.values]])]),b("div",null,[y1,ge(b("input",{type:"number","onUpdate:modelValue":ee[6]||(ee[6]=se=>s.value.size=se),class:"pure-input-1-2",placeholder:"文件大小小于该数值才清理"},null,512),[[ct,s.value.size]])]),b("button",{type:"button",class:"pure-button pure-button-primary",onClick:J},Ne(s.value.createdAt?"更新":"添加"),1),_e("      "),b("button",{type:"button",class:"pure-button",onClick:S},"取消")])])]),default:Ke(()=>[b("a",{href:"javascript:void(0)",class:"text-primary",onClick:L},"新增分组")]),_:1},512),Ce(ce,{ref_key:"list",ref:u,onHide:C,onShow:I,distance:5},{popper:Ke(()=>[b("div",w1,[r.value.length?dt("",!0):(ae(),he("h3",v1,[_e(" 还没有添加任何分组。你可以: "),b("button",{type:"button",class:"pure-button button-small",onClick:L},"添加"),_e("   "),_1,_e("   "),b("button",{type:"button",class:"pure-button button-small",onClick:M},"使用脚本内置"),k1,$1])),b("table",x1,[E1,b("tbody",null,[(ae(!0),he(Ze,null,Bt(r.value,(se,xe)=>(ae(),he("tr",{key:xe},[b("td",null,Ne(xe+1),1),b("td",C1,Ne(se.queryOnly?"是":"否"),1),b("td",null,Ne(se.label),1),b("td",null,Ne(se.memo),1),b("td",null,Ne(se.size),1),b("td",null,[b("button",{type:"button",class:"pure-button button-xsmall text-primary",onClick:R=>le(se)},"载入",8,S1),_e("   "),Ce(ce,null,{popper:Ke(()=>[b("div",N1,[b("button",{type:"button",class:"pure-button button-error",onClick:R=>P(se,!0)},"确定",8,A1)])]),default:Ke(()=>[O1]),_:2},1024),_e("   "),b("button",{type:"button",class:"pure-button button-xsmall",onClick:R=>z(se)},"编辑",8,I1)])]))),128))])])])]),default:Ke(()=>[b("a",{href:"javascript:void(0)",class:"text-primary",onClick:D},"分组列表")]),_:1},512)])}}}),yI="",P1={class:"cloud115-eh-cleaner"},T1=[b("span",null,"清理文件",-1)],L1={key:0,class:"cloud115-eh-cleaner-help"},D1=[Sv('<div><h2>免责声明</h2><div><p>该工具仅作为学习测试用途,使用该工具造成的任何结果由使用人承担。</p></div><hr><h2>说明</h2><ul style="color:#f40;"><li class="text-primary">始于清理,但不止于清理!</li><li>* 仅对当前查看的目录及其子目录生效。</li><li>* 通过『新增分组 / 分组列表』管理你的清理特征。</li><li>* 建议整理自己的特征,也欢迎在交流中分享你的特征。</li><li>* 『只查询』按钮,只会进行查询。</li><li>* 『一键清理』是先查询,再进行删除!</li><li>* 由于搜索接口限制,如果某个关键词结果数量超过1万,可能会清理不完全,可以多执行几次清理。</li><li>* <b>清理期间,请保持当前页面处于激活状态!</b></li><li>* <b>请谨慎操作!请谨慎操作!请谨慎操作!</b></li></ul><hr><h3>按 后缀名 清理</h3><div><p>1. 点击『分组列表』,选择一个分组;</p><p>2. 确认一下后缀名和文件大小限制等的设定;</p><p>3. 点击『一键清理』按钮,耐心等待。</p></div><hr><h3>按 关键词 清理</h3><div> 基本同上,略。 <br><br><p>P.S. 关键词按『全包含』进行匹配,不区分大小写。</p><p>关键词`免费在线`,匹配文件名&quot;blabla-免费在线.mp4&quot;,<b class="text-danger">不匹配</b>文件名`blabla-免费的xxx在线.mp4`。</p><p>关键词`免费 在线`,匹配文件名&quot;blabla-免费在线.mp4&quot;,<b class="text-success">也匹配</b>文件名`blabla-免费的xxx在线.mp4`。</p><p class="text-danger">如需要 `免费 在线` 作为一个整体去匹配,可以使用`英文单/双引号`包裹,如`&quot;免费 在线&quot;`</p></div></div>',1)],M1={class:"header actions-bar"},j1=b("span",{class:"title"},"文件清理工具",-1),R1={type:"button",class:"pure-button button-success"},V1=b("i",{class:"file-type tp-folder",style:{}},null,-1),B1=["disabled"],F1=["disabled"],U1=b("small",null,"毫秒",-1),H1=["disabled"],z1=b("br",null,null,-1),q1={class:"by-box by-suffix"},W1={class:"by-header"},K1=b("span",{class:"title"},[_e("按"),b("b",null,"后缀名"),_e("清理")],-1),G1={class:"pure-button-group",role:"group"},Y1=["disabled"],Z1={class:"pure-table pure-table-bordered"},J1=b("thead",null,[b("tr",null,[b("th",{width:"25"},"#"),b("th",{width:"100"},"后缀名"),b("th",{width:"95"},"文件数量"),b("th",{width:"80"},"合计大小"),b("th",{width:"150"},"操作"),b("th",{width:"200"},"状态")])],-1),X1=["onClick"],Q1=["onClick"],e$=["onClick"],t$=b("br",null,null,-1),n$={class:"by-box by-keyword"},o$={class:"by-header"},r$=b("span",{class:"title"},[_e("按"),b("b",null,"关键词"),_e("清理")],-1),i$={class:"pure-button-group",role:"group"},s$=["disabled"],a$={class:"pure-table pure-table-bordered"},l$=b("thead",null,[b("tr",null,[b("th",{width:"25"},"#"),b("th",{width:"100"},"关键词"),b("th",{width:"95"},"文件/目录数量"),b("th",{width:"80"},"合计大小"),b("th",{width:"150"},"操作"),b("th",{width:"200"},"状态")])],-1),c$=["href"],u$={class:"file-type tp-folder"},f$=["onClick"],d$=["onClick"],p$=b("br",null,null,-1),h$={class:"footer actions-bar"},m$=b("span",{class:"title"},"文件清理工具",-1),g$={type:"button",class:"pure-button button-success"},b$=b("i",{class:"file-type tp-folder",style:{}},null,-1),y$=Me({__name:"Cleaner",setup(e){const t=pe(!1),n=pe(!0),o=pe(Ho(Re.suffix)),r=pe(Ho(Re.keyword)),i=pe({maxSize:5,matchName:!1}),s=pe({maxSize:100,matchName:!0}),a=pe([]),f=pe([]),u=pe(!1),d=pe({initialized:!1,pageSize:1150,reqInterval:800,deleteSize:1150,...Ti("cleanerConfig",{})}),p=pe(!0),g=pe(""),x=pe([]);async function E(R){console.log("[handleMessage]",R),R.data.type===po.OPEN_CLEANER&&(await v(R.data.payload),ji({type:po.CLEANER_OPENED},R.source))}hn(async()=>{console.log("[Cleaner onMounted]"),d.value.initialized||(d.value.initialized=!0,vo("cleanerConfig",d.value,!1)),window.addEventListener("message",E)}),oi(()=>{console.log("[Cleaner onUnmounted]"),window.removeEventListener("message",E)});async function v(R){t.value=!0;const Y=await Wn();if(Y==="0"||Y===""){await S(),await Te.fire({icon:"warning",html:"<h2>不允许在根目录使用该工具!</h2>"});return}g.value&&g.value!==Y&&(console.warn("目录变化,重置"),await T(gt.reset),await L(gt.reset)),x.value=await Sb(),g.value=Y}async function S(){t.value=!1}async function C(){vo("cleanerConfig",d.value,!1),Ae({icon:"success",text:"保存成功",timer:1800}),p.value=!0}async function I(R){const Y={};R.isFilter?Y.type=R.pattern:Y.suffix=R.pattern;let U=unsafeWindow.frames[0];for(let ue=0;ue<unsafeWindow.frames.length;ue++)if(unsafeWindow.frames[ue].name==="wangpan"){U=unsafeWindow.frames[ue];break}ji({type:po.INVOKE_FILTER,payload:Y},U),await S(),Ae({icon:"info",text:`已调用115筛选: ${R.value}`,timer:2500})}async function D(R,Y){const{value:U}=await Te.fire({input:"textarea",title:R,html:"每行一个,最短两个字符。"+(Y===Re.keyword?`<br>默认只匹配文件名,不匹配目录名。<br>使用 "<b>${Qs}目录名关键词</b>" 格式指定只匹配目录名的关键词。`:""),width:620,inputPlaceholder:"每行一个,最短两个字符",inputAttributes:{"aria-label":"每行一个,最短两个字符"},showCancelButton:!0});return U!==void 0?U.trim():""}async function T(R,Y){let U="",ue=[];switch(R){case gt.assign:U=Y.trim(),U.trim()===""?a.value=[]:(ue=await zo(U,Re.suffix),a.value=ue);break;case gt.append:U=await D("添加后缀",Re.suffix),ue=await zo(U,Re.suffix);const we=[];a.value.forEach(Ee=>we.push(Ee.value.toLowerCase())),ue.forEach(Ee=>{we.includes(Ee.value.toLowerCase())||a.value.push(Ee)});break;case gt.cover:U=await D("覆盖后缀",Re.suffix),U.trim()!==""&&(ue=await zo(U,Re.suffix),a.value=ue);break;case gt.clear:a.value=[];break;case gt.reset:a.value.forEach(Ee=>{Ee.num=-1,Ee.fileIds=[],Ee.status=ut.none,Ee.size=-1});break}}async function L(R,Y){let U="",ue=[];switch(R){case gt.assign:U=Y.trim(),U.trim()===""?f.value=[]:(ue=await zo(U,Re.keyword),f.value=ue);break;case gt.append:U=await D("添加关键词",Re.keyword),ue=await zo(U,Re.keyword);const we=[];f.value.forEach(Ee=>we.push(Ee.value.toLowerCase())),ue.forEach(Ee=>{we.includes(Ee.value.toLowerCase())||f.value.push(Ee)});break;case gt.cover:U=await D("覆盖关键词",Re.keyword),U.trim()!==""&&(ue=await zo(U,Re.keyword),f.value=ue);break;case gt.clear:f.value=[];break;case gt.reset:f.value.forEach(Ee=>{Ee.num=-1,Ee.fileIds=[],Ee.status=ut.none,Ee.size=-1});break}}async function M(R){if(console.log("[cleanBySuffix]",R),await T(gt.reset),!a.value.length){await Te.fire({icon:"warning",text:"请先设置后缀!"});return}if(!R){const{isConfirmed:Y}=await Te.fire({icon:"warning",html:'请在清理前确认"后缀和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!Y)return}u.value=!0;try{for(let Y=0;Y<a.value.length;Y++){const U=a.value[Y];await P(U,R,!1,!0),await wo(d.value.reqInterval)}}catch(Y){console.error(Y)}u.value=!1}async function P(R,Y,U,ue){if(console.log("[cleanBySuffixSingle]",R,Y),!Y&&!ue){const{isConfirmed:we}=await Te.fire({icon:"warning",html:`确认执行条件 "后缀: <b class="text-primary">${R.pattern}</b>, 小于: <b>${i.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!we)return}try{if(!U){u.value=!0,R.fileIds=[],R.size=-1,R.num=-1,R.status=ut.prepare;const we=await le(R);R.status=ut.prepared;const{fileIds:Ee,size:Qe}=await zp(R,we,i.value);R.fileIds=Ee,R.size=Qe,R.num=Ee.length,u.value=!1}if(!Y)if(R.num>0){R.status=ut.deleting,u.value=!0;const we=await Uu(g.value,R.fileIds,d.value.deleteSize,1e3);u.value=!1,we>0?R.status=ut.success+` / 数量 <= ${we}`:R.status=ut.failed}else R.status=ut.success+" / 无"}catch(we){console.error(we),u.value=!1,await Te.fire({title:"cleanBySuffixSingle - 发生错误",html:we.toString()})}}async function z(R){if(console.log("[cleanByKeyword]",R),await L(gt.reset),!f.value.length){await Te.fire({icon:"warning",text:"请先设置关键词!"});return}if(!R){const{isConfirmed:Y}=await Te.fire({icon:"warning",html:'请在清理前确认"关键词和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!Y)return}u.value=!0;try{for(let Y=0;Y<f.value.length;Y++){const U=f.value[Y];await J(U,R,!1,!0),await wo(d.value.reqInterval)}}catch(Y){console.error(Y)}u.value=!1}async function J(R,Y,U,ue){if(console.log("[cleanByKeywordSingle]",R,Y),!Y&&!ue){const{isConfirmed:we}=await Te.fire({icon:"warning",html:`确认执行条件 "关键词: <b class="text-primary">${R.pattern}</b>, 小于: <b class="text-primary">${s.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!we)return}try{if(!U){u.value=!0,R.fileIds=[],R.size=-1,R.num=-1,R.status=ut.prepare;const we=await re(R);R.status=ut.prepared;const{fileIds:Ee,size:Qe,num:et}=await zp(R,we,s.value);R.fileIds=Ee,R.size=Qe,R.num=et,u.value=!1}if(!Y)if(R.num>0){R.status=ut.deleting,u.value=!0;const we=await Uu(g.value,R.fileIds,d.value.deleteSize,1e3);u.value=!1,we>0?R.status=ut.success+` / 数量 <= ${we}`:R.status=ut.failed,R.num>9e3&&(console.warn("[cleanByKeywordSingle] 补充处理..."),await J(R,Y,!1,!0))}else R.status=ut.success+" / 无"}catch(we){console.error(we),u.value=!1;let Ee=!0;const Qe={title:"cleanByKeywordSingle - 发生错误",html:we.toString()};we instanceof Ha&&(R.status=ut.prepareFailed+` / ${we.message}`,we instanceof Fu&&(Qe.timer=2e3,Ee=!1)),Ee?await Te.fire(Qe):Te.fire(Qe)}}async function le(R){const Y=await Wn(),U=Jm({cid:Y,limit:d.value.pageSize});R.isFilter?U.type=R.pattern:U.suffix=R.value;const ue=await hb(U,d.value.reqInterval);return console.log("[files]",ue),ue}async function re(R){const Y=await Wn(),U=Zm({search_value:lc(R.pattern),cid:Y,limit:d.value.pageSize}),ue=await gb(U,d.value.reqInterval,!0);return console.log("[files]",ue),ue}function ee(R){return qa({search_value:lc(R.pattern),cid:g.value},x.value[x.value.length-1])}async function ce(R){console.log("[onSuffixGroupChange]",R),o.value=R,i.value.maxSize=R.size,await T(gt.assign,R.values)}async function se(R){console.log("[onKeywordGroupChange]",R),r.value=R,s.value.maxSize=R.size,await L(gt.assign,R.values)}async function xe(){document.querySelector(".cloud115-eh-cleaner-drawer").scrollTo(0,0)}return(R,Y)=>ge((ae(),he("span",P1,[Sn(R.$slots,"default",{},()=>[b("span",{class:"btn-open pure-button pure-button-primary",onClick:v},T1)]),t.value?(ae(),he("div",L1,D1)):dt("",!0),ge(b("div",{class:at(["cloud115-eh-cleaner-drawer",{loading:u.value}])},[b("div",M1,[j1,b("span",{class:"close"},[b("button",{type:"button",class:"pure-button button-error",onClick:S},"关闭")]),b("button",R1,[b("b",null,[V1,_e(" "+Ne(x.value.join(" / ")),1)])])]),b("div",null,[_e(" 请求分页: "),ge(b("input",{type:"number","onUpdate:modelValue":Y[0]||(Y[0]=U=>d.value.pageSize=U),min:30,max:1150,disabled:p.value},null,8,B1),[[ct,d.value.pageSize]]),_e(" 请求间隔: "),ge(b("input",{type:"number","onUpdate:modelValue":Y[1]||(Y[1]=U=>d.value.reqInterval=U),min:200,max:1e6,disabled:p.value},null,8,F1),[[ct,d.value.reqInterval]]),U1,_e(" 每次删除: "),ge(b("input",{type:"number","onUpdate:modelValue":Y[2]||(Y[2]=U=>d.value.deleteSize=U),min:1,max:1150,disabled:p.value},null,8,H1),[[ct,d.value.deleteSize]]),b("span",{class:"config-toggle",onClick:Y[3]||(Y[3]=U=>p.value=!p.value)},"设置参数"),p.value?dt("",!0):(ae(),he("button",{key:0,type:"button",class:"pure-button pure-button-primary button-small",onClick:C}," 保存配置 "))]),z1,b("div",q1,[b("div",W1,[K1,_e("      "),b("div",G1,[b("button",{type:"button",class:"pure-button",onClick:Y[4]||(Y[4]=U=>M(!0))},"只查询"),b("button",{type:"button",class:"pure-button pure-button-primary",onClick:Y[5]||(Y[5]=U=>M(!1)),disabled:o.value.queryOnly}," 一键清理 ",8,Y1)]),_e(" 小于 "),ge(b("input",{type:"number","onUpdate:modelValue":Y[6]||(Y[6]=U=>i.value.maxSize=U),class:"filter-size"},null,512),[[ct,i.value.maxSize]]),_e(" MB (0表示不限制) "),Ce(qp,{type:qe(Re).suffix,"storage-key":"suffixGroups",onChange:ce,config:d.value},null,8,["type","config"])]),b("table",Z1,[J1,b("tbody",null,[(ae(!0),he(Ze,null,Bt(a.value,(U,ue)=>(ae(),he("tr",{key:ue,class:at({active:qe(Up)(U),"is-filter":U.isFilter})},[b("td",null,Ne(ue+1),1),b("td",null,[b("a",{href:"javascript:void(0)",class:"pattern",onClick:we=>I(U),title:"筛选"},Ne(U.value),9,X1)]),b("td",null,Ne(U.num>=0?U.num:""),1),b("td",null,Ne(U.size>0?qe(tu)(U.size):""),1),b("td",null,[b("button",{type:"button",class:"pure-button button-xsmall",onClick:we=>P(U,!0,!1,!0)},"查询",8,Q1),_e("   "),U.num>0&&!o.value.queryOnly?(ae(),he("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:we=>P(U,!1,!0,!1)},"清理",8,e$)):dt("",!0)]),b("td",null,Ne(U.status),1)],2))),128))])])]),t$,b("div",n$,[b("div",o$,[r$,_e("      "),b("div",i$,[b("button",{type:"button",class:"pure-button",onClick:Y[7]||(Y[7]=U=>z(!0))},"只查询"),b("button",{type:"button",class:"pure-button pure-button-primary",onClick:Y[8]||(Y[8]=U=>z(!1)),disabled:r.value.queryOnly}," 一键清理 ",8,s$)]),_e(" 小于 "),ge(b("input",{type:"number","onUpdate:modelValue":Y[9]||(Y[9]=U=>s.value.maxSize=U),class:"filter-size"},null,512),[[ct,s.value.maxSize]]),_e(" MB (0表示不限制) "),Ce(qp,{type:qe(Re).keyword,"storage-key":"keywordGroups",onChange:se,config:d.value},null,8,["type","config"])]),b("table",a$,[l$,b("tbody",null,[(ae(!0),he(Ze,null,Bt(f.value,(U,ue)=>(ae(),he("tr",{key:ue,class:at({active:qe(Up)(U),"is-dir":U.forDir})},[b("td",null,Ne(ue+1),1),b("td",null,[b("a",{href:ee(U),target:"_blank",class:"pattern",title:"搜索"},[ge(b("i",u$,null,512),[[In,U.forDir]]),_e(" "+Ne(U.pattern),1)],8,c$)]),b("td",null,Ne(U.num>=0?U.num:""),1),b("td",null,Ne(U.size>0?qe(tu)(U.size):""),1),b("td",null,[b("button",{type:"button",class:"pure-button button-xsmall",onClick:we=>J(U,!0,!1,!0)},"查询",8,f$),_e("   "),U.num>0&&!r.value.queryOnly?(ae(),he("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:we=>J(U,!1,!0,!1)}," 清理 ",8,d$)):dt("",!0)]),b("td",null,Ne(U.status),1)],2))),128))])])]),p$,b("div",h$,[m$,b("span",{class:"close"},[b("button",{type:"button",class:"pure-button button-error",onClick:S},"关闭")]),b("button",g$,[b("b",null,[b$,_e(" "+Ne(x.value.join(" / ")),1)])]),_e("     "),b("button",{type:"button",class:"pure-button button-small",onClick:xe}," 回到顶部 ")])],2),[[In,t.value]])],512)),[[In,n.value]])}}),_I="",kI="";async function w$(){const{host:e,search:t}=location;e==="115.com"&&(console.log("[Cleaner] running..."),t.includes("ct=file")?await v$():await _$())}async function v$(){const e="cloud115Cleaner";(await Mi("#js_path_add_dir")).after(`<span id="${e}"></span>`),Vo(Yk).mount(`#${e}`)}async function _$(){const e="cloud115Cleaner";$("body").append(`<div id="${e}"/>`);const t=Vo(y$);t.use(Rp),t.mount(`#${e}`),Jc("清理文件",async()=>{ji({type:po.OPEN_CLEANER},window.parent)})}const Wp=["__key","__init","__shim","__original","__index","__prevKey"];function br(){return Math.random().toString(36).substring(2,15)}function k$(e,t){const n=e instanceof Set?e:new Set(e);return t&&t.forEach(o=>n.add(o)),[...n]}function Pe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zt(e,t,n=!0,o=["__key"]){if(e===t)return!0;if(typeof t=="object"&&typeof e=="object"){if(e instanceof Map||e instanceof Set||e instanceof Date||e===null||t===null||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r of o)if((r in e||r in t)&&e[r]!==t[r])return!1;for(const r in e)if(!(r in t)||e[r]!==t[r]&&!n||n&&!zt(e[r],t[r],n,o))return!1;return!0}return!1}function bi(e){const t=typeof e;if(t==="number")return!1;if(e===void 0)return!0;if(t==="string")return e==="";if(t==="object"){if(e===null)return!0;for(const n in e)return!1;return!(e instanceof RegExp||e instanceof Date)}return!1}function $$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x$(e){const t=`^${$$(e)}$`,n={MM:"(0[1-9]|1[012])",M:"([1-9]|1[012])",DD:"([012][0-9]|3[01])",D:"([012]?[0-9]|3[01])",YYYY:"\\d{4}",YY:"\\d{2}"},o=Object.keys(n);return new RegExp(o.reduce((r,i)=>r.replace(i,n[i]),t))}function cc(e){return Object.prototype.toString.call(e)==="[object Object]"}function uc(e){return cc(e)||Array.isArray(e)}function qo(e){if(cc(e)===!1||e.__FKNode__||e.__POJO__===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(cc(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}function Wo(e,t,n=!1,o=!1){if(t===null)return null;const r={};if(typeof t=="string")return t;for(const i in e)if(Pe(t,i)&&(t[i]!==void 0||!o)){if(n&&Array.isArray(e[i])&&Array.isArray(t[i])){r[i]=e[i].concat(t[i]);continue}if(t[i]===void 0)continue;qo(e[i])&&qo(t[i])?r[i]=Wo(e[i],t[i],n,o):r[i]=t[i]}else r[i]=e[i];for(const i in t)!Pe(r,i)&&t[i]!==void 0&&(r[i]=t[i]);return r}function E$(e){if(e[0]!=='"'&&e[0]!=="'"||e[0]!==e[e.length-1])return!1;const t=e[0];for(let n=1;n<e.length;n++)if(e[n]===t&&(n===1||e[n-1]!=="\\")&&n!==e.length-1)return!1;return!0}function C$(e){if(!e.length)return"";let t="",n="";for(let o=0;o<e.length;o++){const r=e.charAt(o);(r!=="\\"||n==="\\")&&(t+=r),n=r}return t}function yr(...e){return e.reduce((t,n)=>{const{value:o,name:r,modelValue:i,config:s,plugins:a,...f}=n;return Object.assign(t,f)},{})}function S$(e){const t=[];let n="",o=0,r="",i="";for(let s=0;s<e.length;s++){const a=e.charAt(s);a===r&&i!=="\\"?r="":(a==="'"||a==='"')&&!r&&i!=="\\"?r=a:a==="("&&!r?o++:a===")"&&!r&&o--,a===","&&!r&&o===0?(t.push(n),n=""):(a!==" "||r)&&(n+=a),i=a}return n&&t.push(n),t}function Kp(e,t){const n={},o=t.filter(i=>i instanceof RegExp),r=new Set(t);for(const i in e)!r.has(i)&&!o.some(s=>s.test(i))&&(n[i]=e[i]);return n}function Gp(e,t){const n={},o=t.filter(r=>r instanceof RegExp);return t.forEach(r=>{r instanceof RegExp||(n[r]=e[r])}),Object.keys(e).forEach(r=>{o.some(i=>i.test(r))&&(n[r]=e[r])}),n}function wr(e){return e.replace(/-([a-z0-9])/gi,(t,n)=>n.toUpperCase())}function Yp(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,o)=>n+"-"+o.toLowerCase()).replace(" ","-").toLowerCase()}function Zp(e,t=Wp){if(e!==null&&typeof e=="object"){let n;if(Array.isArray(e)?n=[...e]:qo(e)&&(n={...e}),n)return N$(e,n,t),n}return e}function vr(e,t=Wp){if(e===null||e instanceof RegExp||e instanceof Date||e instanceof Map||e instanceof Set||typeof File=="function"&&e instanceof File)return e;let n;Array.isArray(e)?n=e.map(o=>typeof o=="object"?vr(o,t):o):n=Object.keys(e).reduce((o,r)=>(o[r]=typeof e[r]=="object"?vr(e[r],t):e[r],o),{});for(const o of t)o in e&&Object.defineProperty(n,o,{enumerable:!1,value:e[o]});return n}function Jt(e){return typeof e=="object"?vr(e):e}function O$(e,t){if(!e||typeof e!="object")return null;const n=t.split(".");let o=e;for(const r in n){const i=n[r];if(Pe(o,i)&&(o=o[i]),+r===n.length-1)return o;if(!o||typeof o!="object")return null}return null}function Xt(e){return e!==void 0&&e!=="false"&&e!==!1?!0:void 0}function yi(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function fc(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function N$(e,t,n){for(const o of n)o in e&&Object.defineProperty(t,o,{enumerable:!1,value:e[o]});return t}function dc(){const e=[];let t=0;const n=r=>e.push(r),o=r=>{const i=e[t];return typeof i=="function"?i(r,s=>(t++,o(s===void 0?r:s))):(t=0,r)};return n.dispatch=o,n.unshift=r=>e.unshift(r),n.remove=r=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)},n}function Jp(){const e=new Map,t=new Map;let n;const o=(r,i)=>{if(n){n.set(i.name,[r,i]);return}e.has(i.name)&&e.get(i.name).forEach(s=>{(i.origin===r||s.modifiers.includes("deep"))&&s.listener(i)}),i.bubble&&r.bubble(i)};return o.on=(r,i)=>{const[s,...a]=r.split("."),f=i.receipt||br(),u={modifiers:a,event:s,listener:i,receipt:f};return e.has(s)?e.get(s).push(u):e.set(s,[u]),t.has(f)?t.get(f).push(s):t.set(f,[s]),f},o.off=r=>{var i;t.has(r)&&((i=t.get(r))===null||i===void 0||i.forEach(s=>{const a=e.get(s);Array.isArray(a)&&e.set(s,a.filter(f=>f.receipt!==r))}),t.delete(r))},o.pause=r=>{n||(n=new Map),r&&r.walk(i=>i._e.pause())},o.play=r=>{if(!n)return;const i=n;n=void 0,i.forEach(([s,a])=>o(s,a)),r&&r.walk(s=>s._e.play())},o}function A$(e,t,n,o,r=!0){return t._e(e,{payload:o,name:n,bubble:r,origin:e}),e}function I$(e,t,n){return vi(e.parent)&&e.parent._e(e.parent,n),e}function P$(e,t,n,o){return t._e.on(n,o)}function T$(e,t,n){return t._e.off(n),e}const pc=dc();pc((e,t)=>(e.message||(e.message=String(`E${e.code}`)),t(e)));const hc=dc();hc((e,t)=>{e.message||(e.message=String(`W${e.code}`));const n=t(e);return console&&typeof console.warn=="function"&&console.warn(n.message),n});function Ko(e,t={}){hc.dispatch({code:e,data:t})}function Dt(e,t={}){throw Error(pc.dispatch({code:e,data:t}).message)}function Qt(e,t){const n={blocking:!1,key:br(),meta:{},type:"state",visible:!0,...e};return t&&n.value&&n.meta.localize!==!1&&(n.value=t.t(n),n.meta.locale=t.config.locale),n}const Xp={apply:V$,set:D$,remove:Qp,filter:j$,reduce:R$,release:U$,touch:M$};function L$(e=!1){const t={};let n,o=e,r=[];const i=new Map;let s;const a=new Proxy(t,{get(...f){const[u,d]=f;return d==="buffer"?o:d==="_b"?r:d==="_m"?i:d==="_r"?s:Pe(Xp,d)?Xp[d].bind(null,t,a,n):Reflect.get(...f)},set(f,u,d){return u==="_n"?(n=d,s==="__n"&&eh(n,a),!0):u==="_b"?(r=d,!0):u==="buffer"?(o=d,!0):u==="_r"?(s=d,!0):(Dt(101,n),!1)}});return a}function D$(e,t,n,o){if(t.buffer)return t._b.push([[o]]),t;if(e[o.key]!==o){if(typeof o.value=="string"&&o.meta.localize!==!1){const i=o.value;o.value=n.t(o),o.value!==i&&(o.meta.locale=n.props.locale)}const r=`message-${Pe(e,o.key)?"updated":"added"}`;e[o.key]=Object.freeze(n.hook.message.dispatch(o)),n.emit(r,o)}return t}function M$(e,t){for(const n in e){const o={...e[n]};t.set(o)}}function Qp(e,t,n,o){if(Pe(e,o)){const r=e[o];delete e[o],n.emit("message-removed",r)}return t.buffer===!0&&(t._b=t._b.filter(r=>(r[0]=r[0].filter(i=>i.key!==o),r[1]||r[0].length))),t}function j$(e,t,n,o,r){for(const i in e){const s=e[i];(!r||s.type===r)&&!o(s)&&Qp(e,t,n,i)}}function R$(e,t,n,o,r){for(const i in e){const s=e[i];r=o(r,s)}return r}function V$(e,t,n,o,r){if(Array.isArray(o)){if(t.buffer){t._b.push([o,r]);return}const i=new Set(o.map(s=>(t.set(s),s.key)));typeof r=="string"?t.filter(s=>s.type!==r||i.has(s.key)):typeof r=="function"&&t.filter(s=>!r(s)||i.has(s.key))}else for(const i in o){const s=n.at(i);s?s.store.apply(o[i],r):F$(n,t,i,o[i],r)}}function B$(e,...t){const n=`${e.name}-set`,o=r=>Qt({key:fc(r),type:"error",value:r,meta:{source:n,autoClear:!0}});return t.filter(r=>!!r).map(r=>{if(typeof r=="string"&&(r=[r]),Array.isArray(r))return r.map(i=>o(i));{const i={};for(const s in r)Array.isArray(r[s])?i[s]=r[s].map(a=>o(a)):i[s]=[o(r[s])];return i}})}function F$(e,t,n,o,r){var i;const s=t._m;s.has(n)||s.set(n,[]),t._r||(t._r=eh(e,t)),(i=s.get(n))===null||i===void 0||i.push([o,r])}function eh(e,t){return e.on("child.deep",({payload:n})=>{t._m.forEach((o,r)=>{e.at(r)===n&&(o.forEach(([i,s])=>{n.store.apply(i,s)}),t._m.delete(r))}),t._m.size===0&&t._r&&(e.off(t._r),t._r=void 0)})}function U$(e,t){t.buffer=!1,t._b.forEach(([n,o])=>t.apply(n,o)),t._b=[]}function H$(){const e={};let t;return{count:(...n)=>z$(t,e,...n),init(n){t=n,n.on("message-added.deep",nh(e,1)),n.on("message-removed.deep",nh(e,-1))},merge:n=>oh(t,e,n),settled(n){return Pe(e,n)?e[n].promise:Promise.resolve()},unmerge:n=>oh(t,e,n,!0),value(n){return Pe(e,n)?e[n].count:0}}}function z$(e,t,n,o,r=0){if(o=q$(o||n),!Pe(t,n)){const i={condition:o,count:0,name:n,node:e,promise:Promise.resolve(),resolve:()=>{}};t[n]=i,r=e.store.reduce((s,a)=>s+i.condition(a)*1,r),e.each(s=>{s.ledger.count(i.name,i.condition),r+=s.ledger.value(i.name)})}return th(t[n],r).promise}function q$(e){return typeof e=="function"?e:t=>t.type===e}function th(e,t){const n=e.count,o=e.count+t;return e.count=o,n===0&&o!==0?(e.node.emit(`unsettled:${e.name}`,e.count,!1),e.promise=new Promise(r=>e.resolve=r)):n!==0&&o===0&&(e.node.emit(`settled:${e.name}`,e.count,!1),e.resolve()),e.node.emit(`count:${e.name}`,e.count,!1),e}function nh(e,t){return n=>{for(const o in e){const r=e[o];r.condition(n.payload)&&th(r,t)}}}function oh(e,t,n,o=!1){for(const r in t){const i=t[r].condition;o||n.ledger.count(r,i);const s=n.ledger.value(r)*(o?-1:1);if(!!e)do e.ledger.count(r,i,s),e=e.parent;while(e)}}const mc=new Map,ea=new Map,gc=Jp(),W$=[];function K$(e){e.props.id&&(mc.set(e.props.id,e),ea.set(e,e.props.id),gc(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function G$(e){if(ea.has(e)){const t=ea.get(e);ea.delete(e),mc.delete(t),gc(e,{payload:null,name:t,bubble:!1,origin:e})}}function wi(e){return mc.get(e)}function Y$(e,t){W$.push(gc.on(e,t))}function bc(e,t,n){let o=!0;return t in e.config._t?o=!1:e.emit(`config:${t}`,n,!1),t in e.props||(e.emit("prop",{prop:t,value:n}),e.emit(`prop:${t}`,n)),o}function Z$(e={}){const t=new Set,n={...e,_add:r=>t.add(r),_rm:r=>t.delete(r)};return new Proxy(n,{set(r,i,s,a){return typeof i=="string"&&t.forEach(f=>bc(f,i,s)),Reflect.set(r,i,s,a)}})}function rh(e){const t=document.getElementById(e);if(t instanceof HTMLFormElement){const n=new Event("submit",{cancelable:!0,bubbles:!0});t.dispatchEvent(n);return}Ko(151,e)}function J$(e){const t=n=>{for(const o in n.store){const r=n.store[o];r.type==="error"||r.type==="ui"&&o==="incomplete"?n.store.remove(o):r.type==="state"&&n.store.set({...r,value:!1})}};t(e),e.walk(t)}function ih(e,t){const n=typeof e=="string"?wi(e):e;if(n){const o=i=>Jt(i.props.initial)||(i.type==="group"?{}:i.type==="list"?[]:void 0);n._e.pause(n),n.input(Jt(t)||o(n),!1),n.walk(i=>i.input(o(i),!1));const r=o(n);return n.input(typeof r=="object"?Jt(t)||yi(r):r,!1),n._e.play(n),J$(n),n.emit("reset",n),n}Ko(152,e)}const X$={delimiter:".",delay:0,locale:"en",rootClasses:e=>({[`formkit-${Yp(e)}`]:!0})},sh=Symbol("index"),yc=Symbol("removed"),wc=Symbol("moved"),ah=Symbol("inserted");function Q$(e){return e.type==="list"&&Array.isArray(e._value)}function vi(e){return e&&typeof e=="object"&&e.__FKNode__===!0}const ta=(e,t,n)=>{Dt(102,[e,n])},ex={_c:Fe(_x,ta,!1),add:Fe(px),addProps:Fe(dx),address:Fe($x,ta,!1),at:Fe(xx),bubble:Fe(I$),clearErrors:Fe(Px),calm:Fe(cx),config:Fe(!1),define:Fe(fx),disturb:Fe(lx),destroy:Fe(ux),hydrate:Fe(ax),index:Fe(vx,wx,!1),input:Fe(ch),each:Fe(gx),emit:Fe(A$),find:Fe(Cx),on:Fe(P$),off:Fe(T$),parent:Fe(!1,hx),plugins:Fe(!1),remove:Fe(mx),root:Fe(Ox,ta,!1),reset:Fe(Ix),resetConfig:Fe(yx),setErrors:Fe(dh),submit:Fe(Ax),t:Fe(Nx),use:Fe(vc),name:Fe(kx,!1,!1),walk:Fe(bx)};function tx(){return new Map(Object.entries(ex))}function Fe(e,t,n=!0){return{get:e?(o,r)=>n?(...i)=>e(o,r,...i):e(o,r):!1,set:t!==void 0?t:ta.bind(null)}}function nx(){const e=new Map;return new Proxy(e,{get(t,n){return e.has(n)||e.set(n,dc()),e.get(n)}})}let ox=0,rx=0;function ix(e){var t,n;return((t=e.parent)===null||t===void 0?void 0:t.type)==="list"?sh:e.name||`${((n=e.props)===null||n===void 0?void 0:n.type)||"input"}_${++ox}`}function lh(e){return e.type==="group"?yi(e.value&&typeof e.value=="object"&&!Array.isArray(e.value)?e.value:{}):e.type==="list"?yi(Array.isArray(e.value)?e.value:[]):e.value}function ch(e,t,n,o=!0){return t._value=sx(e,e.hook.input.dispatch(n)),e.emit("input",t._value),t.isSettled&&e.disturb(),o?(t._tmo&&clearTimeout(t._tmo),t._tmo=setTimeout(na,e.props.delay,e,t)):na(e,t),t.settled}function sx(e,t){switch(e.type){case"input":break;case"group":(!t||typeof t!="object")&&Dt(107,[e,t]);break;case"list":Array.isArray(t)||Dt(108,[e,t]);break}return t}function na(e,t,n=!0,o=!0){t._value=t.value=e.hook.commit.dispatch(t._value),e.type!=="input"&&o&&e.hydrate(),e.emit("commit",t.value),n&&e.calm()}function uh(e,{name:t,value:n,from:o}){if(!Object.isFrozen(e._value)){if(Q$(e)){const r=n===yc?[]:n===wc&&typeof o=="number"?e._value.splice(o,1):[n];e._value.splice(t,n===wc||o===ah?0:1,...r);return}n!==yc?e._value[t]=n:delete e._value[t]}}function ax(e,t){const n=t._value;return t.children.forEach(o=>{if(typeof n=="object")if(o.name in n){const r=o.type!=="input"||n[o.name]&&typeof n[o.name]=="object"?yi(n[o.name]):n[o.name];o.input(r,!1)}else(e.type!=="list"||typeof o.name=="number")&&uh(t,{name:o.name,value:o.value}),n.__init||(o.type==="group"?o.input({},!1):o.type==="list"?o.input([],!1):o.input(void 0,!1))}),e}function lx(e,t){var n;return t._d<=0&&(t.isSettled=!1,e.emit("settled",!1,!1),t.settled=new Promise(o=>{t._resolve=o}),e.parent&&((n=e.parent)===null||n===void 0||n.disturb())),t._d++,e}function cx(e,t,n){var o;if(n!==void 0&&e.type!=="input")return uh(t,n),na(e,t,!0,!1);t._d>0&&t._d--,t._d===0&&(t.isSettled=!0,e.emit("settled",!0,!1),e.parent&&((o=e.parent)===null||o===void 0||o.calm({name:e.name,value:t.value})),t._resolve&&t._resolve(t.value))}function ux(e,t){e.emit("destroying",e),e.store.filter(()=>!1),e.parent&&(e.parent.emit("childRemoved",e),e.parent.remove(e)),G$(e),t._value=t.value=void 0,e.emit("destroyed",e)}function fx(e,t,n){t.type=n.type,t.props.definition=vr(n),t.value=t._value=lh({type:e.type,value:t.value}),n.forceTypeProp&&(e.props.type&&(e.props.originalType=e.props.type),t.props.type=n.forceTypeProp),n.family&&(t.props.family=n.family),n.features&&n.features.forEach(o=>o(e)),n.props&&e.addProps(n.props),e.emit("defined",n)}function dx(e,t,n){var o;if(e.props.attrs){const r={...e.props.attrs};e.props._emit=!1;for(const s in r){const a=wr(s);n.includes(a)&&(e.props[a]=r[s],delete r[s])}const i=Jt(t._value);e.props.initial=e.type!=="input"?yi(i):i,e.props._emit=!0,e.props.attrs=r,e.props.definition&&(e.props.definition.props=[...((o=e.props.definition)===null||o===void 0?void 0:o.props)||[],...n])}return e.emit("added-props",n),e}function px(e,t,n,o){if(e.type==="input"&&Dt(100,e),n.parent&&n.parent!==e&&n.parent.remove(n),t.children.includes(n)||(o!==void 0&&e.type==="list"?(t.children.splice(o,0,n),Array.isArray(e.value)&&e.value.length<t.children.length&&e.disturb().calm({name:o,value:n.value,from:ah})):t.children.push(n),n.isSettled||e.disturb()),n.parent!==e){if(n.parent=e,n.parent!==e)return e.remove(n),n.parent.add(n),e}else n.use(e.plugins);return na(e,t,!1),e.ledger.merge(n),e.emit("child",n),e}function hx(e,t,n,o){return vi(o)?(e.parent&&e.parent!==o&&e.parent.remove(e),t.parent=o,e.resetConfig(),o.children.includes(e)?e.use(o.plugins):o.add(e),!0):o===null?(t.parent=null,!0):!1}function mx(e,t,n){const o=t.children.indexOf(n);if(o!==-1){n.isSettled&&e.disturb(),t.children.splice(o,1);let r=Xt(n.props.preserve),i=n.parent;for(;r===void 0&&i;)r=Xt(i.props.preserve),i=i.parent;r?e.calm():e.calm({name:e.type==="list"?o:n.name,value:yc}),n.parent=null,n.config._rmn=n}return e.ledger.unmerge(n),e}function gx(e,t,n){t.children.forEach(o=>n(o))}function bx(e,t,n,o=!1){t.children.forEach(r=>{(n(r)!==!1||!o)&&r.walk(n,o)})}function yx(e,t){const n=e.parent||void 0;t.config=fh(e.config._t,n),e.walk(o=>o.resetConfig())}function vc(e,t,n,o=!0,r=!0){return Array.isArray(n)||n instanceof Set?(n.forEach(i=>vc(e,t,i)),e):(t.plugins.has(n)||(r&&typeof n.library=="function"&&n.library(e),o&&n(e)!==!1&&(t.plugins.add(n),e.children.forEach(i=>i.use(n)))),e)}function wx(e,t,n,o){if(vi(e.parent)){const r=e.parent.children,i=o>=r.length?r.length-1:o<0?0:o,s=r.indexOf(e);return s===-1?!1:(r.splice(s,1),r.splice(i,0,e),e.parent.children=r,e.parent.type==="list"&&e.parent.disturb().calm({name:i,value:wc,from:s}),!0)}return!1}function vx(e){if(e.parent){const t=[...e.parent.children].indexOf(e);return t===-1?e.parent.children.length:t}return-1}function _x(e,t){return t}function kx(e,t){var n;return((n=e.parent)===null||n===void 0?void 0:n.type)==="list"?e.index:t.name!==sh?t.name:e.index}function $x(e,t){return t.parent?t.parent.address.concat([e.name]):[e.name]}function xx(e,t,n){const o=typeof n=="string"?n.split(e.config.delimiter):n;if(!o.length)return;const r=o[0];let i=e.parent;for(i||(String(o[0])===String(e.name)&&o.shift(),i=e),r==="$parent"&&o.shift();i&&o.length;){const s=o.shift();switch(s){case"$root":i=e.root;break;case"$parent":i=i.parent;break;case"$self":i=e;break;default:i=i.children.find(a=>String(a.name)===String(s))||Ex(i,s)}}return i||void 0}function Ex(e,t){const n=String(t).match(/^(find)\((.*)\)$/);if(n){const[,o,r]=n,i=r.split(",").map(s=>s.trim());switch(o){case"find":return e.find(i[0],i[1]);default:return}}}function Cx(e,t,n,o){return Sx(e,n,o)}function Sx(e,t,n="name"){const o=typeof n=="string"?i=>i[n]==t:n,r=[e];for(;r.length;){const i=r.shift();if(o(i,t))return i;r.push(...i.children)}}function Ox(e){let t=e;for(;t.parent;)t=t.parent;return t}function fh(e={},t){let n;return new Proxy(e,{get(...o){const r=o[1];if(r==="_t")return e;const i=Reflect.get(...o);if(i!==void 0)return i;if(t){const s=t.config[r];if(s!==void 0)return s}if(e.rootConfig&&typeof r=="string"){const s=e.rootConfig[r];if(s!==void 0)return s}return r==="delay"&&(n==null?void 0:n.type)==="input"?20:X$[r]},set(...o){const r=o[1],i=o[2];if(r==="_n")return n=i,e.rootConfig&&e.rootConfig._add(n),!0;if(r==="_rmn")return e.rootConfig&&e.rootConfig._rm(n),n=void 0,!0;if(!zt(e[r],i,!1)){const s=Reflect.set(...o);return n&&(n.emit(`config:${r}`,i,!1),bc(n,r,i),n.walk(a=>bc(a,r,i),!0)),s}return!0}})}function Nx(e,t,n,o="ui"){const r=typeof n=="string"?{key:n,value:n,type:o}:n,i=e.hook.text.dispatch(r);return e.emit("text",i,!1),i.value}function Ax(e){const t=e.name;do{if(e.props.isForm===!0)break;e.parent||Dt(106,t),e=e.parent}while(e);e.props.id&&rh(e.props.id)}function Ix(e,t,n){return ih(e,n)}function dh(e,t,n,o){const r=`${e.name}-set`,i=e.hook.setErrors.dispatch({localErrors:n,childErrors:o});return B$(e,i.localErrors,i.childErrors).forEach(s=>{e.store.apply(s,a=>a.meta.source===r)}),e}function Px(e,t,n=!0,o){return dh(e,t,[]),n&&(o=o||`${e.name}-set`,e.walk(r=>{r.store.filter(i=>!(i.type==="error"&&i.meta&&i.meta.source===o))})),e}function Tx(e){return Pe(e.props,"id")||(e.props.id=`input_${rx++}`),e}function Lx(e){const t={initial:typeof e=="object"?Jt(e):e};let n,o=!0;return new Proxy(t,{get(...r){const[i,s]=r;if(Pe(t,s))return Reflect.get(...r);if(n&&typeof s=="string"&&n.config[s]!==void 0)return n.config[s]},set(r,i,s,a){if(i==="_n")return n=s,!0;if(i==="_emit")return o=s,!0;const{prop:f,value:u}=n.hook.prop.dispatch({prop:i,value:s});if(!zt(t[f],u,!1)||typeof u=="object"){const d=Reflect.set(r,f,u,a);return o&&(n.emit("prop",{prop:f,value:u}),typeof f=="string"&&n.emit(`prop:${f}`,u)),d}return!0}})}function Dx(e,t){if(e.props.definition)return e.define(e.props.definition);for(const n of t){if(e.props.definition)return;typeof n.library=="function"&&n.library(e)}}function Mx(e){const t=lh(e),n=fh(e.config||{},e.parent);return{_d:0,_e:Jp(),_resolve:!1,_tmo:!1,_value:t,children:k$(e.children||[]),config:n,hook:nx(),isCreated:!1,isSettled:!0,ledger:H$(),name:ix(e),parent:e.parent||null,plugins:new Set,props:Lx(t),settled:Promise.resolve(t),store:L$(!0),traps:tx(),type:e.type||"input",value:t}}function jx(e,t){var n;if(e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,t.props&&Object.assign(e.props,t.props),e.props._emit=!0,Dx(e,new Set([...t.plugins||[],...e.parent?e.parent.plugins:[]])),t.plugins)for(const o of t.plugins)vc(e,e._c,o,!0,!1);return Tx(e),e.each(o=>e.add(o)),e.parent&&e.parent.add(e,t.index),e.type==="input"&&e.children.length&&Dt(100,e),ch(e,e._c,e._value,!1),e.store.release(),!((n=t.props)===null||n===void 0)&&n.id&&K$(e),e.emit("created",e),e.isCreated=!0,e}function Rx(e){const t=e||{},n=Mx(t),o=new Proxy(n,{get(...r){const[,i]=r;if(i==="__FKNode__")return!0;const s=n.traps.get(i);return s&&s.get?s.get(o,n):Reflect.get(...r)},set(...r){const[,i,s]=r,a=n.traps.get(i);return a&&a.set?a.set(o,n,i,s):Reflect.set(...r)}});return jx(o,t)}function _c(e){return typeof e!="string"&&Pe(e,"$el")}function kc(e){return typeof e!="string"&&Pe(e,"$cmp")}function _r(e){return!e||typeof e=="string"?!1:Pe(e,"if")&&Pe(e,"then")}function Vx(e){return typeof e!="string"&&"$formkit"in e}function Bx(e){if(typeof e=="string")return{$el:"text",children:e};if(Vx(e)){const{$formkit:t,for:n,if:o,children:r,bind:i,...s}=e;return Object.assign({$cmp:"FormKit",props:{...s,type:t}},o?{if:o}:{},n?{for:n}:{},r?{children:r}:{},i?{bind:i}:{})}return e}function en(e){let t;const n=new Set,o=function(S,C){return typeof S=="function"?S(C):S},r=[{"&&":(v,S,C)=>o(v,C)&&o(S,C),"||":(v,S,C)=>o(v,C)||o(S,C)},{"===":(v,S,C)=>o(v,C)===o(S,C),"!==":(v,S,C)=>o(v,C)!==o(S,C),"==":(v,S,C)=>o(v,C)==o(S,C),"!=":(v,S,C)=>o(v,C)!=o(S,C),">=":(v,S,C)=>o(v,C)>=o(S,C),"<=":(v,S,C)=>o(v,C)<=o(S,C),">":(v,S,C)=>o(v,C)>o(S,C),"<":(v,S,C)=>o(v,C)<o(S,C)},{"+":(v,S,C)=>o(v,C)+o(S,C),"-":(v,S,C)=>o(v,C)-o(S,C)},{"*":(v,S,C)=>o(v,C)*o(S,C),"/":(v,S,C)=>o(v,C)/o(S,C),"%":(v,S,C)=>o(v,C)%o(S,C)}],i=r.reduce((v,S)=>v.concat(Object.keys(S)),[]),s=new Set(i.map(v=>v.charAt(0)));function a(v,S,C,I){const D=v.filter(T=>T.startsWith(S));return D.length?D.find(T=>I.length>=C+T.length&&I.substring(C,C+T.length)===T?T:!1):!1}function f(v,S,C=1){let I=C?S.substring(v+1).trim():S.substring(0,v).trim();if(!I.length)return-1;if(!C){const T=I.split("").reverse(),L=T.findIndex(M=>s.has(M));I=T.slice(L).join("")}const D=I[0];return r.findIndex(T=>{const L=Object.keys(T);return!!a(L,D,0,I)})}function u(v,S){let C="";const I=S.length;let D=0;for(let T=v;T<I;T++){const L=S.charAt(T);if(L==="(")D++;else if(L===")")D--;else if(D===0&&L===" ")continue;if(D===0&&a(i,L,T,S))return[C,T-1];C+=L}return[C,S.length-1]}function d(v,S=0){const C=r[S],I=v.length,D=Object.keys(C);let T=0,L=!1,M=null,P="",z=null,J,le="",re="",ee="",ce="",se=0;const xe=(R,Y)=>{R?ee+=Y:P+=Y};for(let R=0;R<I;R++)if(le=re,re=v.charAt(R),(re==="'"||re==='"')&&le!=="\\"&&(T===0&&!L||T&&!ce)){T?ce=re:L=re,xe(T,re);continue}else if(L&&(re!==L||le==="\\")||ce&&(re!==ce||le==="\\")){xe(T,re);continue}else if(L===re){L=!1,xe(T,re);continue}else if(ce===re){ce=!1,xe(T,re);continue}else{if(re===" ")continue;if(re==="(")T===0?se=R:ee+=re,T++;else if(re===")")if(T--,T===0){const Y=typeof P=="string"&&P.startsWith("$")?P:void 0,U=Y&&v.charAt(R+1)===".";let ue="";U&&([ue,R]=u(R+2,v));const we=M?S:f(se,v,0),Ee=f(R,v);we===-1&&Ee===-1?P=p(ee,-1,Y,ue):M&&(we>=Ee||Ee===-1)&&S===we?(z=M.bind(null,p(ee,-1,Y,ue)),M=null,P=""):Ee>we&&S===Ee?P=p(ee,-1,Y,ue):P+=`(${ee})${U?`.${ue}`:""}`,ee=""}else ee+=re;else if(T===0&&(J=a(D,re,R,v))){R===0&&Dt(103,[J,v]),R+=J.length-1,R===v.length-1&&Dt(104,[J,v]),M?P&&(z=M.bind(null,p(P,S)),M=C[J].bind(null,z),P=""):z?(M=C[J].bind(null,p(z,S)),z=null):(M=C[J].bind(null,p(P,S)),P="");continue}else xe(T,re)}return P&&M&&(M=M.bind(null,p(P,S))),M=!M&&z?z:M,!M&&P&&(M=(R,Y)=>typeof R=="function"?R(Y):R,M=M.bind(null,p(P,S))),!M&&!P&&Dt(105,v),M}function p(v,S,C,I){if(C){const D=p(C,r.length);let T,L=I?en(`$${I}`):!1;if(typeof D=="function"){const M=S$(String(v)).map(P=>p(P,-1));return P=>{const z=D(P);return typeof z!="function"?(Ko(150,C),z):(T=z(...M.map(J=>typeof J=="function"?J(P):J)),L&&(L=L.provide(J=>{const le=t(J);return J.reduce((ee,ce)=>{if(ce===I||(I==null?void 0:I.startsWith(`${ce}(`))){const xe=O$(T,ce);ee[ce]=()=>xe}else ee[ce]=le[ce];return ee},{})})),L?L():T)}}}else if(typeof v=="string"){if(v==="true")return!0;if(v==="false")return!1;if(v==="undefined")return;if(E$(v))return C$(v.substring(1,v.length-1));if(!isNaN(+v))return Number(v);if(S<r.length-1)return d(v,S+1);if(v.startsWith("$")){const D=v.substring(1);return n.add(D),function(L){return D in L?L[D]():void 0}}return v}return v}const g=d(e.startsWith("$:")?e.substring(2):e),x=Array.from(n);function E(v){return t=v,Object.assign(g.bind(null,v(x)),{provide:E})}return Object.assign(g,{provide:E})}function oa(e,t,n){return n?typeof n=="string"?n.split(" ").reduce((r,i)=>Object.assign(r,{[i]:!0}),{}):typeof n=="function"?oa(e,t,n(t,e)):n:{}}function Fx(e,t,...n){const o=n.reduce((r,i)=>{if(!i)return $c(r);const{$reset:s,...a}=i;return $c(s?a:Object.assign(r,a))},{});return Object.keys(e.hook.classes.dispatch({property:t,classes:o}).classes).filter(r=>o[r]).join(" ")||null}function $c(e){const t="$remove:";let n=!1;const o=Object.keys(e).filter(r=>(e[r]&&r.startsWith(t)&&(n=!0),e[r]));return o.length>1&&n&&o.filter(i=>i.startsWith(t)).map(i=>{const s=i.substring(t.length);e[s]=!1,e[i]=!1}),e}function Ux(e,t,n){const o=wi(e);o?o.setErrors(t,n):Ko(651,e)}function Hx(e,t=!0){const n=wi(e);n?n.clearErrors(t):Ko(652,e)}const ra="0.16.4";function zx(...e){const t=e.reduce((o,r)=>Wo(o,r),{}),n=()=>{};return n.library=function(o){const r=wr(o.props.type);Pe(t,r)&&o.define(t[r])},n}function qx(e){let t=1;return Array.isArray(e)?e.map(n=>typeof n=="string"||typeof n=="number"?{label:String(n),value:String(n)}:(typeof n=="object"&&"value"in n&&typeof n.value!="string"&&Object.assign(n,{value:`__mask_${t++}`,__original:n.value}),n)):Object.keys(e).map(n=>({label:e[n],value:n}))}function kr(e,t){if(Array.isArray(e)){for(const n of e)if(t==n.value)return"__original"in n?n.__original:n.value}return t}function $r(e,t){return e===null&&t===void 0||e===void 0&&t===null?!1:e==t?!0:qo(e)&&qo(t)?zt(e,t):!1}function xc(e){e.hook.prop((t,n)=>(t.prop==="options"&&(typeof t.value=="function"?(e.props.optionsLoader=t.value,t.value=[]):t.value=qx(t.value)),n(t)))}const Go=De("outer",()=>({$el:"div",attrs:{key:"$id","data-family":"$family || undefined","data-type":"$type","data-multiple":'$attrs.multiple || ($type != "select" && $options != undefined) || undefined',"data-disabled":"$disabled || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined","data-prefix-icon":"$_rawPrefixIcon !== undefined || undefined","data-suffix-icon":"$_rawSuffixIcon !== undefined || undefined","data-prefix-icon-click":"$onPrefixIconClick !== undefined || undefined","data-suffix-icon-click":"$onSuffixIconClick !== undefined || undefined"}}),!0),ho=De("inner","div"),_i=De("wrapper","div"),ia=De("label",()=>({$el:"label",if:"$label",attrs:{for:"$id"}})),mo=De("messages",()=>({$el:"ul",if:"$defaultMessagePlacement && $fns.length($messages)"})),go=De("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),jn=De("prefix",null),Rn=De("suffix",null),Vn=De("help",()=>({$el:"div",if:"$help",attrs:{id:'$: "help-" + $id'}})),ph=De("fieldset",()=>({$el:"fieldset",attrs:{id:"$id","aria-describedby":{if:"$help",then:'$: "help-" + $id',else:void 0}}})),sa=De("decorator",()=>({$el:"span",attrs:{"aria-hidden":"true"}})),aa=De("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",name:"$node.props.altName || $node.name",disabled:"$option.attrs.disabled || $disabled",onInput:"$handlers.toggleChecked",checked:"$fns.eq($_value, $onValue)",onBlur:"$handlers.blur",value:"$: true",id:"$id","aria-describedby":{if:"$options.length",then:{if:"$option.help",then:'$: "help-" + $option.attrs.id',else:void 0},else:{if:"$help",then:'$: "help-" + $id',else:void 0}}}})),hh=De("legend",()=>({$el:"legend",if:"$label"})),mh=De("option",()=>({$el:"li",for:["option","$options"],attrs:{"data-disabled":"$option.attrs.disabled || $disabled"}})),gh=De("options","ul"),la=De("wrapper",()=>({$el:"label",attrs:{"data-disabled":{if:"$options.length",then:void 0,else:"$disabled || undefined"},"data-checked":{if:"$options == undefined",then:"$fns.eq($_value, $onValue) || undefined",else:"$fns.isChecked($option.value) || undefined"}}})),bh=De("optionHelp",()=>({$el:"div",if:"$option.help",attrs:{id:'$: "help-" + $option.attrs.id'}})),ca=De("label","span"),Wx=De("input",()=>({$el:"button",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",id:"$id"}})),Kx=De("default",null),Gx=De("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"file",disabled:"$disabled",name:"$node.name",onChange:"$handlers.files",onBlur:"$handlers.blur",id:"$id","aria-describedby":"$describedBy"}})),Yx=De("fileItem",()=>({$el:"li",for:["file","$value"]})),Zx=De("fileList",()=>({$el:"ul",if:"$value.length",attrs:{"data-has-multiple":{if:"$value.length > 1",then:"true"}}})),Jx=De("fileName",()=>({$el:"span",attrs:{class:"$classes.fileName"}})),yh=De("fileRemove",()=>({$el:"button",attrs:{onClick:"$handlers.resetFiles"}})),Xx=De("noFiles",()=>({$el:"span",if:"$value.length == 0"})),Qx=De("form",()=>({$el:"form",bind:"$attrs",attrs:{id:"$id",name:"$node.name",onSubmit:"$handlers.submit","data-loading":"$state.loading || undefined"}}),!0),eE=De("actions",()=>({$el:"div",if:"$actions"})),tE=De("submit",()=>({$cmp:"FormKit",bind:"$submitAttrs",props:{type:"submit",disabled:"$disabled",label:"$submitLabel"}})),wh=De("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$_value",id:"$id","aria-describedby":"$describedBy"}})),vh=De("wrapper",null,!0),nE=De("input",()=>({$el:"select",bind:"$attrs",attrs:{id:"$id","data-placeholder":"$fns.showPlaceholder($_value, $placeholder)",disabled:"$disabled",class:"$classes.input",name:"$node.name",onChange:"$handlers.onChange",onInput:"$handlers.selectInput",onBlur:"$handlers.blur","aria-describedby":"$describedBy"}})),oE=De("option",()=>({$el:"option",for:["option","$options"],bind:"$option.attrs",attrs:{class:"$classes.option",value:"$option.value",selected:"$fns.isSelected($option)"}})),rE=()=>({$el:null,if:"$options.length",for:["option","$options"],children:"$slots.option"}),iE=De("input",()=>({$el:"textarea",bind:"$attrs",attrs:{disabled:"$disabled",name:"$node.name",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$_value",id:"$id","aria-describedby":"$describedBy"},children:"$initialValue"})),pt=(e,t)=>De(`${e}Icon`,()=>{const n=`_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;return{if:`$${e}Icon && $${n}`,$el:`${t||"span"}`,attrs:{class:`$classes.${e}Icon + " formkit-icon"`,innerHTML:`$${n}`,onClick:`$handlers.iconClick(${e})`,for:{if:`${t==="label"}`,then:"$id"}}}})();function _h(e){return function(t,n){return t.prop==="options"&&Array.isArray(t.value)&&(t.value=t.value.map(o=>{var r;return!((r=o.attrs)===null||r===void 0)&&r.id?o:Wo(o,{attrs:{id:`${e.name}-option-${fc(String(o.value))}`}})}),e.props.type==="checkbox"&&!Array.isArray(e.value)&&(e.isCreated?e.input([],!1):e.on("created",()=>{Array.isArray(e.value)||e.input([],!1)}))),n(t)}}function sE(e,t){const n=t.target;if(n instanceof HTMLInputElement){const o=Array.isArray(e.props.options)?kr(e.props.options,n.value):n.value;Array.isArray(e.props.options)&&e.props.options.length?Array.isArray(e._value)?e._value.some(r=>$r(o,r))?e.input(e._value.filter(r=>!$r(o,r))):e.input([...e._value,o]):e.input([o]):n.checked?e.input(e.props.onValue):e.input(e.props.offValue)}}function aE(e,t){var n,o;return(n=e.context)===null||n===void 0||n.value,(o=e.context)===null||o===void 0||o._value,Array.isArray(e._value)?e._value.some(r=>$r(kr(e.props.options,t),r)):!1}function lE(e){e.on("created",()=>{var t,n;!((t=e.context)===null||t===void 0)&&t.handlers&&(e.context.handlers.toggleChecked=sE.bind(null,e)),!((n=e.context)===null||n===void 0)&&n.fns&&(e.context.fns.isChecked=aE.bind(null,e)),Pe(e.props,"onValue")||(e.props.onValue=!0),Pe(e.props,"offValue")||(e.props.offValue=!1)}),e.hook.prop(_h(e))}function ua(e){e.on("created",()=>{e.props.disabled=Xt(e.props.disabled)}),e.hook.prop(({prop:t,value:n},o)=>(n=t==="disabled"?Xt(n):n,o({prop:t,value:n}))),e.on("prop:disabled",({payload:t})=>{e.config.disabled=Xt(t)}),e.on("created",()=>{e.config.disabled=Xt(e.props.disabled)})}function fa(e,t){return n=>{n.store.set(Qt({key:e,type:"ui",value:t||e,meta:{localize:!0,i18nArgs:[n]}}))}}const kh=typeof window<"u";function $h(e){e.target instanceof HTMLElement&&e.target.hasAttribute("data-file-hover")&&e.target.removeAttribute("data-file-hover")}function xh(e,t){t.target instanceof HTMLInputElement?e==="dragover"&&t.target.setAttribute("data-file-hover","true"):t.preventDefault(),e==="drop"&&$h(t)}function cE(e){fa("noFiles","Select file")(e),fa("removeAll","Remove all")(e),fa("remove")(e),kh&&(window._FormKit_File_Drop||(window.addEventListener("dragover",xh.bind(null,"dragover")),window.addEventListener("drop",xh.bind(null,"drop")),window.addEventListener("dragleave",$h),window._FormKit_File_Drop=!0)),e.hook.input((t,n)=>n(Array.isArray(t)?t:[])),e.on("created",()=>{Array.isArray(e.value)||e.input([],!1),e.context&&(e.context.handlers.resetFiles=t=>{if(t.preventDefault(),e.input([]),e.props.id&&kh){const n=document.getElementById(e.props.id);n&&(n.value="")}},e.context.handlers.files=t=>{var n,o;const r=[];if(t.target instanceof HTMLInputElement&&t.target.files){for(let i=0;i<t.target.files.length;i++){let s;(s=t.target.files.item(i))&&r.push({name:s.name,file:s})}e.input(r)}e.context&&(e.context.files=r),typeof((n=e.props.attrs)===null||n===void 0?void 0:n.onChange)=="function"&&((o=e.props.attrs)===null||o===void 0||o.onChange(t))})})}async function uE(e,t){t.preventDefault(),await e.settled;const n=o=>o.store.set(Qt({key:"submitted",value:!0,visible:!1}));if(e.walk(n),n(e),typeof e.props.onSubmitRaw=="function"&&e.props.onSubmitRaw(t,e),e.ledger.value("blocking"))typeof e.props.onSubmitInvalid=="function"&&e.props.onSubmitInvalid(e),e.props.incompleteMessage!==!1&&e.store.set(Qt({blocking:!1,key:"incomplete",meta:{localize:e.props.incompleteMessage===void 0,i18nArgs:[{node:e}],showAsMessage:!0},type:"ui",value:e.props.incompleteMessage||"Form incomplete."}));else if(typeof e.props.onSubmit=="function"){const o=e.props.onSubmit(e.hook.submit.dispatch(vr(e.value)),e);if(o instanceof Promise){const r=e.props.disabled===void 0&&e.props.submitBehavior!=="live";r&&(e.props.disabled=!0),e.store.set(Qt({key:"loading",value:!0,visible:!1})),await o,r&&(e.props.disabled=!1),e.store.remove("loading")}}else t.target instanceof HTMLFormElement&&t.target.submit()}function fE(e){e.props.isForm=!0,e.on("created",()=>{var t;!((t=e.context)===null||t===void 0)&&t.handlers&&(e.context.handlers.submit=uE.bind(null,e)),Pe(e.props,"actions")||(e.props.actions=!0)}),e.on("settled:blocking",()=>e.store.remove("incomplete"))}function dE(e){e.props.ignore===void 0&&(e.props.ignore=!0,e.parent=null)}function pE(e){e.on("created",()=>{e.context&&(e.context.initialValue=e.value||"")})}function hE(e,t){t.target instanceof HTMLInputElement&&e.input(kr(e.props.options,t.target.value))}function mE(e,t){var n,o;return(n=e.context)===null||n===void 0||n.value,(o=e.context)===null||o===void 0||o._value,$r(kr(e.props.options,t),e._value)}function gE(e){e.on("created",()=>{var t,n;Array.isArray(e.props.options)||Ko(350,e),!((t=e.context)===null||t===void 0)&&t.handlers&&(e.context.handlers.toggleChecked=hE.bind(null,e)),!((n=e.context)===null||n===void 0)&&n.fns&&(e.context.fns.isChecked=mE.bind(null,e))}),e.hook.prop(_h(e))}function bE(e,t){e.context&&e.context.value;const n="__original"in t?t.__original:t.value;function o(){return!e.props.options.some(r=>("__original"in r?r.__original:r.value)===null)}return Array.isArray(e._value)?e._value.some(r=>$r(r,n)):(e._value===void 0||e._value===null&&o())&&t.attrs&&t.attrs["data-is-placeholder"]?!0:$r(n,e._value)}async function yE(e,t){var n;typeof((n=e.props.attrs)===null||n===void 0?void 0:n.onChange)=="function"&&(await new Promise(o=>setTimeout(o,0)),await e.settled,e.props.attrs.onChange(t))}function wE(e,t){const n=t.target,o=n.hasAttribute("multiple")?Array.from(n.selectedOptions).map(r=>kr(e.props.options,r.value)):kr(e.props.options,n.value);e.input(o)}function Eh(e,t){return e.some(n=>n.attrs&&n.attrs["data-is-placeholder"])?e:[{label:t,value:"",attrs:{hidden:!0,disabled:!0,"data-is-placeholder":"true"}},...e]}function vE(e){e.on("created",()=>{var t,n,o;const r=Xt((t=e.props.attrs)===null||t===void 0?void 0:t.multiple);!r&&e.props.placeholder&&Array.isArray(e.props.options)&&(e.hook.prop(({prop:i,value:s},a)=>(i==="options"&&(s=Eh(s,e.props.placeholder)),a({prop:i,value:s}))),e.props.options=Eh(e.props.options,e.props.placeholder)),r?e.value===void 0&&e.input([],!1):e.context&&!e.context.options&&(e.props.attrs=Object.assign({},e.props.attrs,{value:e._value}),e.on("input",({payload:i})=>{e.props.attrs=Object.assign({},e.props.attrs,{value:i})})),!((n=e.context)===null||n===void 0)&&n.handlers&&(e.context.handlers.selectInput=wE.bind(null,e),e.context.handlers.onChange=yE.bind(null,e)),!((o=e.context)===null||o===void 0)&&o.fns&&(e.context.fns.isSelected=bE.bind(null,e),e.context.fns.showPlaceholder=(i,s)=>{if(!Array.isArray(e.props.options))return!1;const a=e.props.options.some(f=>{if(f.attrs&&"data-is-placeholder"in f.attrs)return!1;const u="__original"in f?f.__original:f.value;return zt(i,u)});return s&&!a?!0:void 0})}),e.hook.input((t,n)=>{var o,r,i;return!e.props.placeholder&&t===void 0&&Array.isArray((o=e.props)===null||o===void 0?void 0:o.options)&&e.props.options.length&&!Xt((i=(r=e.props)===null||r===void 0?void 0:r.attrs)===null||i===void 0?void 0:i.multiple)&&(t="__original"in e.props.options[0]?e.props.options[0].__original:e.props.options[0].value),n(t)})}function xr(e,t){return n=>{n.props[`${e}Icon`]===void 0&&(n.props[`${e}Icon`]=`default:${t}`)}}function da(e){return typeof e=="object"&&("$el"in e||"$cmp"in e||"$formkit"in e)}function Ec(e){return!!(_r(e)&&e.if&&e.if.startsWith("$slots.")&&typeof e.then=="string"&&e.then.startsWith("$slots.")&&"else"in e)}function ki(e,t={}){return typeof e=="string"?da(t)||typeof t=="string"?t:e:Array.isArray(e)?da(t)?t:e:Wo(e,t)}function De(e,t,n=!1){return(...o)=>{const r=i=>{const s=!t||typeof t=="string"?{$el:t}:t();return(_c(s)||kc(s))&&(s.meta||(s.meta={section:e}),o.length&&!s.children&&(s.children=[...o.map(a=>typeof a=="string"?a:a(i))]),_c(s)&&(s.attrs={class:`$classes.${e}`,...s.attrs||{}})),{if:`$slots.${e}`,then:`$slots.${e}`,else:e in i?ki(s,i[e]):s}};return r._s=e,n?Ch(r):r}}function Ch(e){return t=>[e(t)]}function tn(e,t,n){const o=r=>{const i=t(r);if(n||da(i)&&"if"in i||Ec(i)){const s={if:e,then:i};return n&&(s.else=n(r)),s}else Ec(i)?Object.assign(i.else,{if:e}):da(i)&&Object.assign(i,{if:e});return i};return o._s=br(),o}function pa(e,t){const n=o=>{const r=e({});return Ec(r)?(Array.isArray(r.else)||(r.else=ki(ki(r.else,t),e._s?o[e._s]:{})),r):ki(ki(r,t),e._s?o[e._s]:{})};return n._s=e._s,n}function _E(e){return Ch(e)}const Sh={schema:Go(mo(go("$message.value")),_i(Wx(pt("prefix"),jn(),Kx("$label || $ui.submit.value"),Rn(),pt("suffix"))),Vn("$help")),type:"input",family:"button",props:[],features:[fa("submit"),dE]},kE={schema:Go(tn("$options == undefined",la(ho(jn(),aa(),sa(pt("decorator")),Rn()),pa(ca("$label"),{if:"$label"})),ph(hh("$label"),Vn("$help"),gh(mh(la(ho(jn(),pa(aa(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),sa(pt("decorator")),Rn()),pa(ca("$option.label"),{if:"$option.label"})),bh("$option.help"))))),tn("$options == undefined && $help",Vn("$help")),mo(go("$message.value"))),type:"input",family:"box",props:["options","onValue","offValue","optionsLoader"],features:[xc,lE,xr("decorator","checkboxDecorator")]},$E={schema:Go(_i(ia("$label"),ho(pt("prefix","label"),jn(),Gx(),Zx(Yx(pt("fileItem"),Jx("$file.name"),tn("$value.length === 1",yh(pt("fileRemove"),"$ui.remove.value")))),tn("$value.length > 1",yh("$ui.removeAll.value")),Xx(pt("noFiles"),"$ui.noFiles.value"),Rn(),pt("suffix"))),Vn("$help"),mo(go("$message.value"))),type:"input",family:"text",props:[],features:[cE,xr("fileItem","fileItem"),xr("fileRemove","fileRemove"),xr("noFiles","noFiles")]},xE={schema:Qx("$slots.default",mo(go("$message.value")),eE(tE())),type:"group",props:["actions","submit","submitLabel","submitAttrs","submitBehavior","incompleteMessage"],features:[fE,ua]},EE={schema:vh("$slots.default"),type:"group",props:[],features:[ua]},CE={schema:_E(wh()),type:"input",props:[],features:[]},SE={schema:vh("$slots.default"),type:"list",props:[],features:[ua]},OE={schema:Go(tn("$options == undefined",la(ho(jn(),aa(),sa(pt("decorator")),Rn()),tn("$label",ca("$label"))),ph(hh("$label"),Vn("$help"),gh(mh(la(ho(jn(),pa(aa(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),sa(pt("decorator")),Rn()),tn("$option.label",ca("$option.label"))),bh("$option.help"))))),tn("$options === undefined && $help",Vn("$help")),mo(go("$message.value"))),type:"input",family:"box",props:["options","onValue","offValue","optionsLoader"],features:[ua,xc,gE,xr("decorator","radioDecorator")]},NE={schema:Go(_i(ia("$label"),ho(pt("prefix"),jn(),nE(tn("$slots.default",()=>"$slots.default",tn("$slots.option",rE,oE("$option.label")))),tn("$attrs.multiple !== undefined",()=>"",pt("select")),Rn(),pt("suffix"))),Vn("$help"),mo(go("$message.value"))),type:"input",props:["options","placeholder","optionsLoader"],features:[xc,vE,xr("select","select")]},AE={schema:Go(_i(ia("$label"),ho(pt("prefix","label"),jn(),iE(),Rn(),pt("suffix"))),Vn("$help"),mo(go("$message.value"))),type:"input",props:[],features:[pE]},Pt={schema:Go(_i(ia("$label"),ho(pt("prefix","label"),jn(),wh(),Rn(),pt("suffix"))),Vn("$help"),mo(go("$message.value"))),type:"input",family:"text",props:[],features:[]};var IE=Object.freeze({__proto__:null,button:Sh,submit:Sh,checkbox:kE,file:$E,form:xE,group:EE,hidden:CE,list:SE,radio:OE,select:NE,textarea:AE,text:Pt,color:Pt,date:Pt,datetimeLocal:Pt,email:Pt,month:Pt,number:Pt,password:Pt,search:Pt,tel:Pt,time:Pt,url:Pt,week:Pt,range:Pt});const Oh=function({value:t}){return["yes","on","1",1,!0,"true"].includes(t)};Oh.skipEmpty=!1;const PE=function({value:e},t=!1){const n=Date.parse(t||new Date),o=Date.parse(String(e));return isNaN(o)?!1:o>n},TE=function({value:e},t="default"){const n={default:/^[a-zA-ZÀ-ÖØ-öø-ÿĄąĆćČčĎďĘęĚ죳ŃńŇňŘřŚśŠšŤťŮůŹźŻŽžż]+$/,latin:/^[a-zA-Z]+$/},o=Pe(n,t)?t:"default";return n[o].test(String(e))},LE=function({value:e},t="default"){const n={default:/^[a-zA-ZÀ-ÖØ-öø-ÿĄąĆćČčĎďĘęĚ죳ŃńŇňŘřŚśŠšŤťŮůŹźŻŽžż ]+$/,latin:/^[a-zA-Z ]+$/},o=Pe(n,t)?t:"default";return n[o].test(String(e))},DE=function({value:e},t="default"){const n={default:/^[a-zA-Z0-9À-ÖØ-öø-ÿĄąĆćĘꣳŃńŚśŹźŻż]+$/,latin:/^[a-zA-Z0-9]+$/},o=Pe(n,t)?t:"default";return n[o].test(String(e))},ME=function({value:e},t=!1){const n=Date.parse(t||new Date),o=Date.parse(String(e));return isNaN(o)?!1:o<n},jE=function({value:t},n,o){if(!isNaN(t)&&!isNaN(n)&&!isNaN(o)){const r=1*t;n=Number(n),o=Number(o);const[i,s]=n<=o?[n,o]:[o,n];return r>=1*i&&r<=1*s}return!1},Nh=/(_confirm(?:ed)?)$/,RE=function(t,n,o="loose"){var r;n||(n=Nh.test(t.name)?t.name.replace(Nh,""):`${t.name}_confirm`);const i=(r=t.at(n))===null||r===void 0?void 0:r.value;return o==="strict"?t.value===i:t.value==i},VE=function({value:t},n,o){n=n instanceof Date?n.getTime():Date.parse(n),o=o instanceof Date?o.getTime():Date.parse(o);const r=t instanceof Date?t.getTime():Date.parse(String(t));if(n&&!o)o=n,n=Date.now();else if(!n||!r)return!1;return r>=n&&r<=o},BE=function({value:t},n){return n&&typeof n=="string"?x$(n).test(String(t)):!isNaN(Date.parse(String(t)))},FE=function({value:t}){return/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(String(t))},UE=function({value:t},...n){return typeof t=="string"&&n.length?n.some(o=>t.endsWith(o)):typeof t=="string"&&n.length===0},HE=function({value:t},...n){return n.some(o=>typeof o=="object"?zt(o,t):o==t)},zE=function({value:t},n=0,o=1/0){n=parseInt(n),o=isNaN(parseInt(o))?1/0:parseInt(o);const r=n<=o?n:o,i=o>=n?o:n;if(typeof t=="string"||Array.isArray(t))return t.length>=r&&t.length<=i;if(t&&typeof t=="object"){const s=Object.keys(t).length;return s>=r&&s<=i}return!1},qE=function({value:t},...n){return n.some(o=>(typeof o=="string"&&o.substr(0,1)==="/"&&o.substr(-1)==="/"&&(o=new RegExp(o.substr(1,o.length-2))),o instanceof RegExp?o.test(String(t)):o===t))},WE=function({value:t},n=10){return Array.isArray(t)?t.length<=n:Number(t)<=Number(n)},KE=function({value:t},n=1){return Array.isArray(t)?t.length>=n:Number(t)>=Number(n)},GE=function({value:t},...n){return!n.some(o=>typeof o=="object"?zt(o,t):o===t)},YE=function({value:t}){return!isNaN(t)},Ah=function({value:t},n="default"){return n==="trim"&&typeof t=="string"?!bi(t.trim()):!bi(t)};Ah.skipEmpty=!1;const ZE=Object.freeze(Object.defineProperty({__proto__:null,accepted:Oh,alpha:TE,alpha_spaces:LE,alphanumeric:DE,between:jE,confirm:RE,date_after:PE,date_before:ME,date_between:VE,date_format:BE,email:FE,ends_with:UE,is:HE,length:zE,matches:qE,max:WE,min:KE,not:GE,number:YE,required:Ah,starts_with:function({value:t},...n){return typeof t=="string"&&n.length?n.some(o=>t.startsWith(o)):typeof t=="string"&&n.length===0},url:function({value:t},...n){try{const o=n.length?n:["http:","https:"],r=new URL(String(t));return o.includes(r.protocol)}catch{return!1}}},Symbol.toStringTag,{value:"Module"})),Ih=new WeakSet;function $i(e,t){const n=t||Object.assign(new Map,{active:!1}),o=new Map,r=function(d){var p;!n.active||(n.has(e)||n.set(e,new Set),(p=n.get(e))===null||p===void 0||p.add(d))},i=function(d){return new Proxy(d,{get(...p){return typeof p[1]=="string"&&r(`prop:${p[1]}`),Reflect.get(...p)}})},s=function(d){return new Proxy(d,{get(...p){return p[1]==="value"?g=>(r(`count:${g}`),d.value(g)):Reflect.get(...p)}})},a=function(d,p){return vi(d)?$i(d,n):(p==="value"&&r("commit"),p==="props"?i(d):p==="ledger"?s(d):d)},{proxy:f,revoke:u}=Proxy.revocable(e,{get(...d){switch(d[1]){case"_node":return e;case"deps":return n;case"watch":return(g,x)=>Lh(f,g,x);case"observe":return()=>{const g=new Map(n);return n.clear(),n.active=!0,g};case"stopObserve":return()=>{const g=new Map(n);return n.active=!1,g};case"receipts":return o;case"kill":return()=>{Th(o),Ih.add(d[2]),u()}}const p=Reflect.get(...d);return typeof p=="function"?(...g)=>{const x=p(...g);return a(x,d[1])}:a(p,d[1])}});return f}function Ph(e,[t,n],o){t.forEach((r,i)=>{r.forEach(s=>{var a;e.receipts.has(i)||e.receipts.set(i,{}),e.receipts.set(i,Object.assign((a=e.receipts.get(i))!==null&&a!==void 0?a:{},{[s]:i.on(s,o)}))})}),n.forEach((r,i)=>{r.forEach(s=>{if(e.receipts.has(i)){const a=e.receipts.get(i);a&&Pe(a,s)&&(i.off(a[s]),delete a[s],e.receipts.set(i,a))}})})}function Th(e){e.forEach((t,n)=>{for(const o in t)n.off(t[o])})}function Lh(e,t,n){const o=s=>{const a=e.stopObserve();Ph(e,Dh(r,a),()=>Lh(e,t,n)),n&&n(s)},r=new Map(e.deps);e.observe();const i=t(e);i instanceof Promise?i.then(s=>o(s)):o(i)}function Dh(e,t){const n=new Map,o=new Map;return t.forEach((r,i)=>{if(!e.has(i))n.set(i,r);else{const s=new Set,a=e.get(i);r.forEach(f=>!(a!=null&&a.has(f))&&s.add(f)),n.set(i,s)}}),e.forEach((r,i)=>{if(!t.has(i))o.set(i,r);else{const s=new Set,a=t.get(i);r.forEach(f=>!(a!=null&&a.has(f))&&s.add(f)),o.set(i,s)}}),[n,o]}function Mh(e){return Ih.has(e)}const jh=Qt({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});function JE(e={}){return function(n){let o=Jt(n.props.validationRules||{}),r={...e,...o},i=$i(n);const s={input:br(),rerun:null,isPassing:!0};let a=Jt(n.props.validation);n.on("prop:validation",({payload:u})=>f(u,r)),n.on("prop:validationRules",({payload:u})=>f(a,u));function f(u,d){var p;zt(Object.keys(o||{}),Object.keys(d||{}))&&zt(a,u)||(o=Jt(d),a=Jt(u),r={...e,...o},Th(i.receipts),(p=n.props.parsedRules)===null||p===void 0||p.forEach(g=>{var x;g.messageObserver=(x=g.messageObserver)===null||x===void 0?void 0:x.kill()}),n.store.filter(()=>!1,"validation"),n.props.parsedRules=Fh(u,r),i.kill(),i=$i(n),Cc(i,n.props.parsedRules,s))}n.props.parsedRules=Fh(a,r),Cc(i,n.props.parsedRules,s)}}function Cc(e,t,n){Mh(e)||(n.input=br(),n.isPassing=!0,e.store.filter(o=>!o.meta.removeImmediately,"validation"),t.forEach(o=>o.debounce&&clearTimeout(o.timer)),t.length&&(e.store.set(jh),Sc(0,t,e,n,!1,()=>{e.store.remove(jh.key)})))}function Sc(e,t,n,o,r,i){const s=t[e];if(!s)return i();const a=o.input;s.state=null;function f(u,d){o.isPassing=o.isPassing&&!!d,s.queued=!1;const p=n.stopObserve();Ph(n,Dh(s.deps,p),()=>{s.queued=!0,o.rerun&&clearTimeout(o.rerun),o.rerun=setTimeout(Cc,0,n,t,o)}),s.deps=p,o.input===a&&(s.state=d,d===!1?eC(n,s,r||u):QE(n,s),t.length>e+1?Sc(e+1,t,n,o,r||u,i):i())}(!bi(n.value)||!s.skipEmpty)&&(o.isPassing||s.force)?s.queued?XE(s,n,u=>{u instanceof Promise?u.then(d=>f(!0,d)):f(!1,u)}):Sc(e+1,t,n,o,r,i):bi(n.value)&&s.skipEmpty&&o.isPassing?(n.observe(),n.value,f(!1,o.isPassing)):f(!1,null)}function XE(e,t,n){e.debounce?e.timer=setTimeout(()=>{t.observe(),n(e.rule(t,...e.args))},e.debounce):(t.observe(),n(e.rule(t,...e.args)))}function QE(e,t){const n=`rule_${t.name}`;t.messageObserver&&(t.messageObserver=t.messageObserver.kill()),Pe(e.store,n)&&e.store.remove(n)}function eC(e,t,n){Mh(e)||(t.messageObserver||(t.messageObserver=$i(e._node)),t.messageObserver.watch(o=>nC(o,t),o=>{const r=tC(e,t,o),i=Qt({blocking:t.blocking,key:`rule_${t.name}`,meta:{messageKey:t.name,removeImmediately:n,localize:!r,i18nArgs:o},type:"validation",value:r||"This field is not valid."});e.store.set(i)}))}function tC(e,t,n){const o=e.props.validationMessages&&Pe(e.props.validationMessages,t.name)?e.props.validationMessages[t.name]:void 0;return typeof o=="function"?o(...n):o}function nC(e,t){return[{node:e,name:oC(e),args:t.args}]}function oC(e){return typeof e.props.validationLabel=="function"?e.props.validationLabel(e):e.props.validationLabel||e.props.label||e.props.name||String(e.name)}const Rh="(?:[\\*+?()0-9]+)",Vh="[a-zA-Z][a-zA-Z0-9_]+",rC=new RegExp(`^(${Rh}?${Vh})(?:\\:(.*)+)?$`,"i"),iC=new RegExp(`^(${Rh})(${Vh})$`,"i"),sC=/([\*+?]+)?(\(\d+\))([\*+?]+)?/,Bh=/\(\d+\)/,aC={blocking:!0,debounce:0,force:!1,skipEmpty:!0,name:""};function Fh(e,t){return e?(typeof e=="string"?lC(e):vr(e)).reduce((o,r)=>{let i=r.shift();const s={};if(typeof i=="string"){const[a,f]=uC(i);Pe(t,a)&&(i=t[a],Object.assign(s,f))}return typeof i=="function"&&o.push({rule:i,args:r,timer:0,state:null,queued:!0,deps:new Map,...aC,...fC(s,i)}),o},[]):[]}function lC(e){return e.split("|").reduce((t,n)=>{const o=cC(n);return o&&t.push(o),t},[])}function cC(e){const t=e.trim();if(t){const n=t.match(rC);if(n&&typeof n[1]=="string"){const o=n[1].trim(),r=n[2]&&typeof n[2]=="string"?n[2].split(",").map(i=>i.trim()):[];return[o,...r]}}return!1}function uC(e){const t=e.match(iC);if(!t)return[e,{name:e}];const n={"*":{force:!0},"+":{skipEmpty:!1},"?":{blocking:!1}},[,o,r]=t,i=Bh.test(o)?o.match(sC)||[]:[,o];return[r,[i[1],i[2],i[3]].reduce((s,a)=>(a&&(Bh.test(a)?s.debounce=parseInt(a.substr(1,a.length-1)):a.split("").forEach(f=>Pe(n,f)&&Object.assign(s,n[f]))),s),{name:r})]}function fC(e,t){return e.name||(e.name=t.ruleName||t.name),["skipEmpty","force","debounce","blocking"].reduce((n,o)=>(Pe(t,o)&&!Pe(n,o)&&Object.assign(n,{[o]:t[o]}),n),e)}function Je(e){return e[0].toUpperCase()+e.substr(1)}function Uh(e,t="or"){return e.reduce((n,o,r)=>(n+=o,r<=e.length-2&&e.length>2&&(n+=", "),r===e.length-2&&(n+=`${e.length===2?" ":""}${t} `),n),"")}function ha(e){const t=typeof e=="string"?new Date(Date.parse(e)):e;return t instanceof Date?new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeZone:"UTC"}).format(t):"(unknown)"}function dC(e,t){return Number(e)>=Number(t)?[t,e]:[e,t]}var pC=Object.freeze({__proto__:null,ui:{add:"Add",remove:"Remove",removeAll:"Remove all",incomplete:"Sorry, not all fields are filled out correctly.",submit:"Submit",noFiles:"No file chosen",moveUp:"Move up",moveDown:"Move down",isLoading:"Loading...",loadMore:"Load more",next:"Next",prev:"Previous",addAllValues:"Add all values",addSelectedValues:"Add selected values",removeAllValues:"Remove all values",removeSelectedValues:"Remove selected values",chooseDate:"Choose date",changeDate:"Change date",invalidDate:"The selected date is invalid."},validation:{accepted({name:e}){return`Please accept the ${e}.`},date_after({name:e,args:t}){return Array.isArray(t)&&t.length?`${Je(e)} must be after ${ha(t[0])}.`:`${Je(e)} must be in the future.`},alpha({name:e}){return`${Je(e)} can only contain alphabetical characters.`},alphanumeric({name:e}){return`${Je(e)} can only contain letters and numbers.`},alpha_spaces({name:e}){return`${Je(e)} can only contain letters and spaces.`},date_before({name:e,args:t}){return Array.isArray(t)&&t.length?`${Je(e)} must be before ${ha(t[0])}.`:`${Je(e)} must be in the past.`},between({name:e,args:t}){if(isNaN(t[0])||isNaN(t[1]))return"This field was configured incorrectly and can’t be submitted.";const[n,o]=dC(t[0],t[1]);return`${Je(e)} must be between ${n} and ${o}.`},confirm({name:e}){return`${Je(e)} does not match.`},date_format({name:e,args:t}){return Array.isArray(t)&&t.length?`${Je(e)} is not a valid date, please use the format ${t[0]}`:"This field was configured incorrectly and can’t be submitted"},date_between({name:e,args:t}){return`${Je(e)} must be between ${ha(t[0])} and ${ha(t[1])}`},email:"Please enter a valid email address.",ends_with({name:e,args:t}){return`${Je(e)} doesn’t end with ${Uh(t)}.`},is({name:e}){return`${Je(e)} is not an allowed value.`},length({name:e,args:[t=0,n=1/0]}){const o=Number(t)<=Number(n)?t:n,r=Number(n)>=Number(t)?n:t;return o==1&&r===1/0?`${Je(e)} must be at least one character.`:o==0&&r?`${Je(e)} must be less than or equal to ${r} characters.`:o===r?`${Je(e)} should be ${r} characters long.`:o&&r===1/0?`${Je(e)} must be greater than or equal to ${o} characters.`:`${Je(e)} must be between ${o} and ${r} characters.`},matches({name:e}){return`${Je(e)} is not an allowed value.`},max({name:e,node:{value:t},args:n}){return Array.isArray(t)?`Cannot have more than ${n[0]} ${e}.`:`${Je(e)} must be less than or equal to ${n[0]}.`},mime({name:e,args:t}){return t[0]?`${Je(e)} must be of the type: ${t[0]}`:"No file formats allowed."},min({name:e,node:{value:t},args:n}){return Array.isArray(t)?`Cannot have fewer than ${n[0]} ${e}.`:`Must be at least ${n[0]} ${e} .`},not({name:e,node:{value:t}}){return`“${t}” is not an allowed ${e}.`},number({name:e}){return`${Je(e)} must be a number.`},required({name:e}){return`${Je(e)} is required.`},starts_with({name:e,args:t}){return`${Je(e)} doesn’t start with ${Uh(t)}.`},url(){return"Please enter a valid URL."}}});function hC(e){return function(n){let o=Hh(n.config.locale,e),r=o?e[o]:{};n.on("prop:locale",({payload:i})=>{o=Hh(i,e),r=o?e[o]:{},n.store.touch()}),n.on("prop:label",()=>n.store.touch()),n.on("prop:validationLabel",()=>n.store.touch()),n.hook.text((i,s)=>{var a,f;const u=((a=i.meta)===null||a===void 0?void 0:a.messageKey)||i.key;if(Pe(r,i.type)&&Pe(r[i.type],u)){const d=r[i.type][u];typeof d=="function"?i.value=Array.isArray((f=i.meta)===null||f===void 0?void 0:f.i18nArgs)?d(...i.meta.i18nArgs):d(i):i.value=d}return s(i)})}}function Hh(e,t){if(Pe(t,e))return e;const[n]=e.split("-");if(Pe(t,n))return n;for(const o in t)return o;return!1}let nn,bn=null,ma,zh=!1,xi=!1;const mC=new Promise(e=>{ma=()=>{zh=!0,e()}}),Bn=typeof window<"u"&&typeof fetch<"u";nn=Bn?getComputedStyle(document.documentElement):void 0;const Er={},Oc={};function gC(e,t,n,o){t&&Object.assign(Er,t),Bn&&!xi&&(nn==null?void 0:nn.getPropertyValue("--formkit-theme"))?(ma(),xi=!0):e&&!xi&&Bn?bC(e):!xi&&Bn&&ma();const r=function(s){var a,f;s.addProps(["iconLoader","iconLoaderUrl"]),s.props.iconHandler=Ei(!((a=s.props)===null||a===void 0)&&a.iconLoader?s.props.iconLoader:o,!((f=s.props)===null||f===void 0)&&f.iconLoaderUrl?s.props.iconLoaderUrl:n),vC(s,s.props.iconHandler),s.on("created",()=>{var u;!((u=s==null?void 0:s.context)===null||u===void 0)&&u.handlers&&(s.context.handlers.iconClick=d=>{const p=`on${d.charAt(0).toUpperCase()}${d.slice(1)}IconClick`,g=s.props[p];if(g&&typeof g=="function")return x=>g(s,x)})})};return r.iconHandler=Ei(o,n),r}function bC(e){if(!(!e||!Bn||typeof getComputedStyle!="function")&&(xi=!0,bn=document.getElementById("formkit-theme"),e&&Bn&&(!(nn!=null&&nn.getPropertyValue("--formkit-theme"))&&!bn||(bn==null?void 0:bn.getAttribute("data-theme"))&&(bn==null?void 0:bn.getAttribute("data-theme"))!==e))){const n=`https://cdn.jsdelivr.net/npm/@formkit/themes@${ra.startsWith("__")?"latest":ra}/dist/${e}/theme.css`,o=document.createElement("link");o.type="text/css",o.rel="stylesheet",o.id="formkit-theme",o.setAttribute("data-theme",e),o.onload=()=>{nn=getComputedStyle(document.documentElement),ma()},document.head.appendChild(o),o.href=n,bn&&bn.remove()}}function Ei(e,t){return n=>{if(typeof n=="boolean")return;if(n.startsWith("<svg"))return n;if(typeof n!="string")return;const o=n.startsWith("default:");n=o?n.split(":")[1]:n;const r=n in Er;let i;if(r)return Er[n];if(!Oc[n]){if(i=yC(n),i=Bn&&typeof i>"u"?Promise.resolve(i):i,i instanceof Promise)Oc[n]=i.then(s=>!s&&typeof n=="string"&&!o?i=typeof e=="function"?e(n):wC(n,t):s).then(s=>(typeof n=="string"&&(Er[o?`default:${n}`:n]=s),s));else if(typeof i=="string")return Er[o?`default:${n}`:n]=i,i}return Oc[n]}}function yC(e){if(!!Bn)return zh?qh(e):mC.then(()=>qh(e))}function qh(e){const t=nn==null?void 0:nn.getPropertyValue(`--fk-icon-${e}`);if(t){const n=atob(t);if(n.startsWith("<svg"))return Er[e]=n,n}}function wC(e,t){const n=ra.startsWith("__")?"latest":ra,o=typeof t=="function"?t(e):`https://cdn.jsdelivr.net/npm/@formkit/icons@${n}/dist/icons/${e}.svg`;if(!!Bn)return fetch(`${o}`).then(async r=>{const i=await r.text();if(i.startsWith("<svg"))return i}).catch(r=>{console.error(r)})}function vC(e,t){const n=/^[a-zA-Z-]+(?:-icon|Icon)$/;Object.keys(e.props).filter(r=>n.test(r)).forEach(r=>_C(e,t,r))}function _C(e,t,n){const o=e.props[n],r=t(o),i=`_raw${n.charAt(0).toUpperCase()}${n.slice(1)}`,s=`on${n.charAt(0).toUpperCase()}${n.slice(1)}Click`;if(e.addProps([i,s]),e.on(`prop:${n}`,kC),r instanceof Promise)return r.then(a=>{e.props[i]=a});e.props[i]=r}function kC(e){var t;const n=e.origin,o=e.payload,r=(t=n==null?void 0:n.props)===null||t===void 0?void 0:t.iconHandler,i=e.name.split(":")[1],s=`_raw${i.charAt(0).toUpperCase()}${i.slice(1)}`;if(r&&typeof r=="function"){const a=r(o);if(a instanceof Promise)return a.then(f=>{n.props[s]=f});n.props[s]=a}}let Nc=!1;const Wh={100:({data:e})=>`Only groups, lists, and forms can have children (${e.name}).`,101:({data:e})=>`You cannot directly modify the store (${e.name}). See: https://formkit.com/advanced/core#message-store`,102:({data:[e,t]})=>`You cannot directly assign node.${t} (${e.name})`,103:({data:[e]})=>`Schema expressions cannot start with an operator (${e})`,104:({data:[e,t]})=>`Schema expressions cannot end with an operator (${e} in "${t}")`,105:({data:e})=>`Invalid schema expression: ${e}`,106:({data:e})=>`Cannot submit because (${e}) is not in a form.`,107:({data:[e,t]})=>`Cannot set ${e.name} to non object value: ${t}`,108:({data:[e,t]})=>`Cannot set ${e.name} to non array value: ${t}`,300:({data:[e]})=>`Cannot set behavior prop to overscroll (on ${e.name} input) when options prop is a function.`,600:({data:e})=>`Unknown input type${typeof e.props.type=="string"?' "'+e.props.type+'"':""} ("${e.name}")`,601:({data:e})=>`Input definition${typeof e.props.type=="string"?' "'+e.props.type+'"':""} is missing a schema or component property (${e.name}).`},Kh={150:({data:e})=>`Schema function "${e}()" is not a valid function.`,151:({data:e})=>`No form element with id: ${e}`,152:({data:e})=>`No input element with id: ${e}`,350:({data:e})=>`Invalid options prop for radio input (${e.name}). See https://formkit.com/inputs/radio`,650:'Schema "$get()" must use the id of an input to access.',651:({data:e})=>`Cannot setErrors() on "${e}" because no such id exists.`,652:({data:e})=>`Cannot clearErrors() on "${e}" because no such id exists.`,800:({data:e})=>`${e} is deprecated.`};Nc||pc((e,t)=>{if(e.code in Wh){const n=Wh[e.code];e.message=typeof n=="function"?n(e):n}return t(e)}),Nc||hc((e,t)=>{if(e.code in Kh){const n=Kh[e.code];e.message=typeof n=="function"?n(e):n}return t(e)}),Nc=!0;const Ac={};let Et;const Yo=new Map,$C="__raw__",xC=/[a-zA-Z0-9\-][cC]lass$/;function EC(e,t){const n=pe(null);if(e==="get"){const r={};return n.value=CC.bind(null,r),n}const o=e.split(".");return eo(()=>{n.value=Ic(We(t)?t.value:t,o)}),n}function Ic(e,t){if(Array.isArray(e)){for(const r of e){const i=r!==!1&&Ic(r,t);if(i!==void 0)return i}return}let n,o=e;for(const r in t){const i=t[r];if(typeof o!="object"||o===null){n=void 0;break}const s=o[i];if(Number(r)===t.length-1&&s!==void 0){n=typeof s=="function"?s.bind(o):s;break}o=s}return n}function CC(e,t){if(typeof t!="string")return Ko(650);if(t in e||(e[t]=pe(void 0)),e[t].value===void 0){e[t].value=null;const n=wi(t);n&&(e[t].value=n.context),Y$(t,({payload:o})=>{e[t].value=vi(o)?o.context:o})}return e[t].value}function Gh(e,t){function n(p,g){const x=d(en(g.if),{if:!0}),E=f(p,g.then),v=g.else?f(p,g.else):null;return[x,E,v]}function o(p,g){var x,E;const v=d(en(p.if));let S=()=>g,C=()=>g;return typeof p.then=="object"?C=r(p.then,void 0):typeof p.then=="string"&&((x=p.then)===null||x===void 0?void 0:x.startsWith("$"))?C=d(en(p.then)):C=()=>p.then,Pe(p,"else")&&(typeof p.else=="object"?S=r(p.else):typeof p.else=="string"&&((E=p.else)===null||E===void 0?void 0:E.startsWith("$"))?S=d(en(p.else)):S=()=>p.else),()=>v()?C():S()}function r(p,g,x={}){const E=new Set(Object.keys(p||{})),v=g?d(en(g)):()=>({}),S=[C=>{const I=v();for(const D in I)E.has(D)||(C[D]=I[D])}];if(p){if(_r(p))return o(p,x);for(let C in p){const I=p[C];let D;const T=typeof I=="string";C.startsWith($C)?(C=C.substring(7),D=()=>I):T&&I.startsWith("$")&&I.length>1&&!(I.startsWith("$reset")&&xC.test(C))?D=d(en(I)):typeof I=="object"&&_r(I)?D=o(I,void 0):typeof I=="object"&&qo(I)?D=r(I):D=()=>I,S.push(L=>{L[C]=D()})}}return()=>{const C=Array.isArray(p)?[]:{};return S.forEach(I=>I(C)),C}}function i(p,g){let x=null,E=()=>null,v=!1,S=null,C=null,I=null,D=!1;const T=Bx(g);if(_c(T)?(x=T.$el,E=T.$el!=="text"?r(T.attrs,T.bind):()=>null):kc(T)?(typeof T.$cmp=="string"?Pe(p,T.$cmp)?x=p[T.$cmp]:(x=T.$cmp,D=!0):x=T.$cmp,E=r(T.props,T.bind)):_r(T)&&([v,S,C]=n(p,T)),!_r(T)&&"if"in T?v=d(en(T.if)):!_r(T)&&x===null&&(v=()=>!0),"children"in T&&T.children)if(typeof T.children=="string")if(T.children.startsWith("$slots."))x=x==="text"?"slot":x,S=d(en(T.children));else if(T.children.startsWith("$")&&T.children.length>1){const L=d(en(T.children));S=()=>String(L())}else S=()=>String(T.children);else if(Array.isArray(T.children))S=f(p,T.children);else{const[L,M,P]=n(p,T.children);S=z=>L&&L()?M&&M(z):P&&P(z)}if(kc(T))if(S){const L=S;S=M=>({default(P,z){var J,le,re,ee;const ce=Et;z&&(Et=z),P&&((J=Yo.get(Et))===null||J===void 0||J.unshift(P)),M&&((le=Yo.get(Et))===null||le===void 0||le.unshift(M));const se=L(M);return P&&((re=Yo.get(Et))===null||re===void 0||re.shift()),M&&((ee=Yo.get(Et))===null||ee===void 0||ee.shift()),Et=ce,se}}),S.slot=!0}else S=()=>({});if("for"in T&&T.for){const L=T.for.length===3?T.for[2]:T.for[1];I=[typeof L=="string"&&L.startsWith("$")?d(en(L)):()=>L,T.for[0],T.for.length===3?String(T.for[1]):null]}return[v,x,E,S,C,I,D]}function s(p,g){const x=p(g),E=Et;return Object.keys(x).reduce((v,S)=>{const C=x&&x[S];return v[S]=I=>C&&C(I,E)||null,v},{})}function a(p,g){const[x,E,v,S,C,I,D]=i(p,g);let T=L=>{if(x&&E===null&&S)return x()?S(L):C&&C(L);if(E&&(!x||x())){if(E==="text"&&S)return _e(String(S()));if(E==="slot"&&S)return S(L);const M=D?Cn(E):E,P=S!=null&&S.slot?s(S,L):null;return An(M,v(),P||(S?S(L):[]))}return typeof C=="function"?C(L):C};if(I){const L=T,[M,P,z]=I;T=()=>{const J=M(),le=isNaN(J)?J:Array(Number(J)).fill(0).map((se,xe)=>xe),re=[];if(typeof le!="object")return null;const ee=Yo.get(Et)||[],ce=Array.isArray(le);for(const se in le){if(ce&&se in Array.prototype)continue;const xe=Object.defineProperty({...ee.reduce((R,Y)=>R.__idata?{...R,...Y}:Y,{}),[P]:le[se],...z!==null?{[z]:ce?Number(se):se}:{}},"__idata",{enumerable:!1,value:!0});ee.unshift(xe),re.push(L.bind(null,xe)()),ee.shift()}return re}}return T}function f(p,g){if(Array.isArray(g)){const E=g.map(a.bind(null,p));return v=>E.map(S=>S(v))}const x=a(p,g);return E=>x(E)}const u=[];function d(p,g={}){const x={};return u.push((E,v)=>{x[v]=p.provide(S=>E(S,g))}),()=>x[Et]()}return function(g,x){const E=JSON.stringify(t),[v,S]=Pe(Ac,E)?Ac[E]:[f(e,t),u];return Ac[E]=[v,S],S.forEach(C=>{C(g,x)}),()=>(Et=x,v())}}function Yh(e,t){const n=Yo.get(Et)||[];let o;return n.length&&(o=Ic(n,e.split("."))),o===void 0?t:o}function SC(e,t){return new Proxy(e,{get(...n){let o;const r=n[1];if(typeof r=="string"){const i=Et;Et=t,o=Yh(r,void 0),Et=i}return o!==void 0?o:Reflect.get(...n)}})}function Zh(e,t,n){return e((o,r={})=>o.reduce((i,s)=>{if(s.startsWith("slots.")){const a=s.substring(6),f=()=>t.slots&&Pe(t.slots,a)&&typeof t.slots[a]=="function";if(r.if)i[s]=f;else if(t.slots){const u=SC(t,n);i[s]=()=>f()?t.slots[a](u):null}}else{const a=EC(s,t);i[s]=()=>Yh(s,a.value)}return i},{}),n)}let Jh=0;const Pc=Me({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:()=>({})},library:{type:Object,default:()=>({})}},setup(e,t){const n=jl();let o=Symbol(String(Jh++));Yo.set(o,[]);let r=Gh(e.library,e.schema),i,s;return nt(()=>e.schema,(a,f)=>{var u;o=Symbol(String(Jh++)),r=Gh(e.library,e.schema),i=Zh(r,s,o),a===f&&((u=n==null?void 0:n.proxy)===null||u===void 0?void 0:u.$forceUpdate)()},{deep:!0}),eo(()=>{s=Object.assign(ln(e.data),{slots:t.slots}),i=Zh(r,s,o)}),()=>i()}}),OC={config:{type:Object,default:{}},classes:{type:Object,required:!1},delay:{type:Number,required:!1},errors:{type:Array,default:[]},inputErrors:{type:Object,default:()=>({})},index:{type:Number,required:!1},id:{type:String,required:!1},modelValue:{required:!1},name:{type:String,required:!1},parent:{type:Object,required:!1},plugins:{type:Array,default:[]},sectionsSchema:{type:Object,default:{}},type:{type:[String,Object],default:"text"},validation:{type:[String,Array],required:!1},validationMessages:{type:Object,required:!1},validationRules:{type:Object,required:!1},validationLabel:{type:[String,Function],required:!1}},ga=Symbol("FormKitParent"),NC=Me({props:OC,emits:{input:(e,t)=>!0,inputRaw:(e,t)=>!0,"update:modelValue":e=>!0,node:e=>!!e,submit:(e,t)=>!0,submitRaw:(e,t)=>!0,submitInvalid:e=>!0},inheritAttrs:!1,setup(e,t){const n=jC(e,t);if(n.props.definition||Dt(600,n),n.props.definition.component)return()=>{var s;return An((s=n.props.definition)===null||s===void 0?void 0:s.component,{context:n.context},{...t.slots})};const o=pe([]),r=()=>{var s,a;const f=(a=(s=n.props)===null||s===void 0?void 0:s.definition)===null||a===void 0?void 0:a.schema;f||Dt(601,n),o.value=typeof f=="function"?f({...e.sectionsSchema}):f};r(),n.on("schema",r),t.emit("node",n);const i=n.props.definition.library;return t.expose({node:n}),()=>An(Pc,{schema:o.value,data:n.context,library:i},{...t.slots})}});function AC(e,t){return e.component(t.alias||"FormKit",NC).component(t.schemaAlias||"FormKitSchema",Pc),{get:wi,setLocale:n=>{var o;!((o=t.config)===null||o===void 0)&&o.rootConfig&&(t.config.rootConfig.locale=n)},clearErrors:Hx,setErrors:Ux,submit:rh,reset:ih}}const Tc=Symbol.for("FormKitOptions"),IC=Symbol.for("FormKitConfig"),PC={install(e,t){const n=Object.assign({alias:"FormKit",schemaAlias:"FormKitSchema"},typeof t=="function"?t():t),o=Z$(n.config||{});n.config={rootConfig:o},e.config.globalProperties.$formkit=AC(e,n),e.provide(Tc,n),e.provide(IC,o)}},Lc=Symbol();function TC(e,t){const n={},o=s=>{for(const a of s)a.__str in n&&n[a.__str](),n[a.__str]=nt(DC.bind(null,e,a),i.bind(null,a),{deep:!1})},i=LC(e,t,o,s=>{if(!!s.length)for(const a in n)`${a}`.startsWith(`${s.__str}.`)&&(n[a](),delete n[a])});o(Dc(e))}function LC(e,t,n,o){return r=>{const i=Xh(e,r);i!==Lc&&(r.__deep&&o(r),typeof i=="object"&&n(Dc(i,[r],...r)),t(r,i,e))}}function DC(e,t){const n=Xh(e,t);return n&&typeof n=="object"?Object.keys(n):n}function Xh(e,t){if(We(e)){if(t.length===0)return e.value;e=e.value}return t.reduce((n,o)=>n===Lc?n:n===null||typeof n!="object"?Lc:n[o],e)}function Dc(e,t=[],...n){if(e===null)return t;if(!n.length){const o=Object.defineProperty([],"__str",{value:""});if(e=We(e)?e.value:e,e&&typeof e=="object")Object.defineProperty(o,"__deep",{value:!0}),t.push(o);else return[o]}if(e===null||typeof e!="object")return t;for(const o in e){const r=n.concat(o);Object.defineProperty(r,"__str",{value:r.join(".")});const i=e[o];qo(i)||Array.isArray(i)?(t.push(Object.defineProperty(r,"__deep",{value:!0})),t=t.concat(Dc(i,[],...r))):t.push(r)}return t}function ba(e){return e===null||typeof e!="object"||(Gt(e)?e=Oe(e):We(e)&&(e=Gt(e.value)?ba(e.value):e.value)),e}const Mc=["help","label","ignore","disabled","preserve",/^preserve(-e|E)rrors/,/^[a-z]+(?:-visibility|Visibility|-behavior|Behavior)$/,/^[a-zA-Z-]+(?:-class|Class)$/,"prefixIcon","suffixIcon",/^[a-zA-Z-]+(?:-icon|Icon)$/];function Qh(e,t){t.classes&&Object.keys(t.classes).forEach(n=>{typeof n=="string"&&(e.props[`_${n}Class`]=t.classes[n],uc(t.classes[n])&&n==="inner"&&Object.values(t.classes[n]))})}function MC(e){return e?["Submit","SubmitRaw","SubmitInvalid"].reduce((n,o)=>{const r=`on${o}`;return r in e&&typeof e[r]=="function"&&(n[r]=e[r]),n},{}):{}}function jC(e,t,n={}){var o;const r=Object.assign({},dn(Tc)||{},n),i=jl(),s=MC(i==null?void 0:i.vnode.props),a="modelValue"in((o=i==null?void 0:i.vnode.props)!==null&&o!==void 0?o:{}),f=e.modelValue!==void 0?e.modelValue:Jt(t.attrs.value);function u(){const L={...yr(e),...s},M=Kp(yr(t.attrs),Mc);M.key||(M.key=br()),L.attrs=M;const P=Gp(yr(t.attrs),Mc);for(const J in P)L[wr(J)]=P[J];const z={props:{}};return Qh(z,e),Object.assign(L,z.props),typeof L.type!="string"&&(L.definition=L.type,delete L.type),L}const d=u(),p=d.ignore?null:e.parent||dn(ga,null),g=Rx(Wo(r||{},{name:e.name||void 0,value:f,parent:p,plugins:(r.plugins||[]).concat(e.plugins),config:e.config,props:d,index:e.index},!1,!0));g.props.definition||Dt(600,g);const x=pe(new Set(g.props.definition.props||[]));g.on("added-props",({payload:L})=>{Array.isArray(L)&&L.forEach(M=>x.value.add(M))});const E=gn(()=>Mc.concat([...x.value]).reduce((L,M)=>(typeof M=="string"?(L.push(wr(M)),L.push(Yp(M))):L.push(M),L),[]));eo(()=>Qh(g,e));const v=yr(e);for(const L in v)nt(()=>e[L],()=>{e[L]!==void 0&&(g.props[L]=e[L])});const S=new Set,C=yr(t.attrs);eo(()=>{I(Gp(C,E.value))});function I(L){S.forEach(M=>{M(),S.delete(M)});for(const M in L){const P=wr(M);S.add(nt(()=>t.attrs[M],()=>{g.props[P]=t.attrs[M]}))}}if(eo(()=>{const L=Kp(yr(t.attrs),E.value);"multiple"in L&&(L.multiple=Xt(L.multiple)),g.props.attrs=Object.assign({},g.props.attrs||{},L)}),eo(()=>{const L=e.errors.map(M=>Qt({key:fc(M),type:"error",value:M,meta:{source:"prop"}}));g.store.apply(L,M=>M.type==="error"&&M.meta.source==="prop")}),g.type!=="input"){const L=`${g.name}-prop`;eo(()=>{const M=Object.keys(e.inputErrors);M.length||g.clearErrors(!0,L);const P=M.reduce((z,J)=>{let le=e.inputErrors[J];return typeof le=="string"&&(le=[le]),Array.isArray(le)&&(z[J]=le.map(re=>Qt({key:re,type:"error",value:re,meta:{source:L}}))),z},{});g.store.apply(P,z=>z.type==="error"&&z.meta.source===L)})}eo(()=>Object.assign(g.config,e.config)),g.type!=="input"&&ur(ga,g);let D;const T=new WeakSet;return g.on("modelUpdated",()=>{var L,M;if(t.emit("inputRaw",(L=g.context)===null||L===void 0?void 0:L.value,g),clearTimeout(D),D=setTimeout(t.emit,20,"input",(M=g.context)===null||M===void 0?void 0:M.value,g),a&&g.context){const P=ba(g.context.value);uc(P)&&ba(e.modelValue)!==P&&T.add(P),t.emit("update:modelValue",P)}}),a&&(TC(Nf(e,"modelValue"),(L,M)=>{var P;const z=ba(M);if(uc(z)&&T.has(z))return T.delete(z);L.length?(P=g.at(L))===null||P===void 0||P.input(M,!1):g.input(M,!1)}),g.value!==f&&g.emit("modelUpdated")),$l(()=>g.destroy()),g}const RC=De("messages",()=>({$el:"ul",if:"$fns.length($messages)"}),!0),VC=De("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),BC=RC(VC("$message.value"));Me({props:{node:{type:Object,required:!1},sectionsSchema:{type:Object,default:{}},defaultPosition:{type:[String,Boolean],default:!1}},setup(e,t){const n=gn(()=>e.node||dn(ga,void 0));nt(n,()=>{var i;((i=n.value)===null||i===void 0?void 0:i.context)&&!Xt(e.defaultPosition)&&(n.value.context.defaultMessagePlacement=!1)},{immediate:!0});const o=BC(e.sectionsSchema||{}),r=gn(()=>{var i,s,a,f,u,d;return{messages:((s=(i=n.value)===null||i===void 0?void 0:i.context)===null||s===void 0?void 0:s.messages)||{},fns:((f=(a=n.value)===null||a===void 0?void 0:a.context)===null||f===void 0?void 0:f.fns)||{},classes:((d=(u=n.value)===null||u===void 0?void 0:u.context)===null||d===void 0?void 0:d.classes)||{}}});return()=>{var i;return!((i=n.value)===null||i===void 0)&&i.context?An(Pc,{schema:o,data:r.value},{...t.slots}):null}}});const FC=function(t){t.ledger.count("blocking",P=>P.blocking);const n=pe(!t.ledger.value("blocking"));t.ledger.count("errors",P=>P.type==="error");const o=pe(!!t.ledger.value("errors"));let r=!1;ul(()=>{r=!0});const i=ln(t.store.reduce((P,z)=>(z.visible&&(P[z.key]=z),P),{})),s=pe(t.props.validationVisibility||"blur");t.on("prop:validationVisibility",({payload:P})=>{s.value=P});const a=pe(s.value==="live"),f=gn(()=>{if(I.state.submitted)return!0;if(!a.value&&!I.state.settled)return!1;switch(s.value){case"live":return!0;case"blur":return I.state.blurred;case"dirty":return I.state.dirty;default:return!1}}),u=gn(()=>d.value?n.value&&!o.value:I.state.dirty&&!bi(I.value)),d=pe(Array.isArray(t.props.parsedRules)&&t.props.parsedRules.length>0);t.on("prop:parsedRules",({payload:P})=>{d.value=Array.isArray(P)&&P.length>0});const p=gn(()=>{const P={};for(const z in i){const J=i[z];(J.type!=="validation"||f.value)&&(P[z]=J)}return P}),g=ln(t.store.reduce((P,z)=>(z.type==="ui"&&z.visible&&(P[z.key]=z),P),{})),x=ln({}),E=new Proxy(x,{get(...P){const[z,J]=P;let le=Reflect.get(...P);return!le&&typeof J=="string"&&!Pe(z,J)&&!J.startsWith("__v")&&$i(t).watch(ee=>{const ce=typeof ee.config.rootClasses=="function"?ee.config.rootClasses(J,ee):{},se=ee.config.classes?oa(J,ee,ee.config.classes[J]):{},xe=oa(J,ee,ee.props[`_${J}Class`]),R=oa(J,ee,ee.props[`${J}Class`]);le=Fx(ee,J,ce,se,xe,R),z[J]=le!=null?le:""}),le}}),v=gn(()=>{const P=[];I.help&&P.push(`help-${t.props.id}`);for(const z in p.value)P.push(`${t.props.id}-${z}`);return P.length?P.join(" "):void 0}),S=pe(t.value),C=pe(t.value),I=ln({_value:C,attrs:t.props.attrs,disabled:t.props.disabled,describedBy:v,fns:{length:P=>Object.keys(P).length,number:P=>Number(P),string:P=>String(P),json:P=>JSON.stringify(P),eq:zt},handlers:{blur:P=>{t.store.set(Qt({key:"blurred",visible:!1,value:!0})),typeof t.props.attrs.onBlur=="function"&&t.props.attrs.onBlur(P)},touch:()=>{var P;const z=I.dirtyBehavior==="compare";if(((P=t.store.dirty)===null||P===void 0?void 0:P.value)&&!z)return;const J=!zt(t.props._init,t._value);!J&&!z||t.store.set(Qt({key:"dirty",visible:!1,value:J}))},DOMInput:P=>{t.input(P.target.value),t.emit("dom-input-event",P)}},help:t.props.help,id:t.props.id,label:t.props.label,messages:p,node:rl(t),options:t.props.options,defaultMessagePlacement:!0,state:{blurred:!1,complete:u,dirty:!1,submitted:!1,settled:t.isSettled,valid:n,errors:o,rules:d,validationVisible:f},type:t.props.type,family:t.props.family,ui:g,value:S,classes:E});t.on("created",()=>{zt(I.value,t.value)||(C.value=t.value,S.value=t.value,vs(S),vs(C)),(async()=>(await t.settled,t.props._init=Jt(t.value)))()}),t.on("settled",({payload:P})=>{I.state.settled=P});function D(P){P.forEach(z=>{z=wr(z),!Pe(I,z)&&Pe(t.props,z)&&(I[z]=t.props[z]),t.on(`prop:${z}`,({payload:J})=>{I[z]=J})})}D((()=>{const P=["help","label","disabled","options","type","attrs","preserve","preserveErrors","id","dirtyBehavior"],z=/^[a-zA-Z-]+(?:-icon|Icon)$/,J=Object.keys(t.props).filter(le=>z.test(le));return P.concat(J)})());function L(P){P.props&&D(P.props)}t.props.definition&&L(t.props.definition),t.on("added-props",({payload:P})=>D(P)),t.on("input",({payload:P})=>{t.type!=="input"&&!We(P)&&!Gt(P)?C.value=Zp(P):(C.value=P,vs(C))}),t.on("commit",({payload:P})=>{t.type!=="input"&&!We(P)&&!Gt(P)?S.value=C.value=Zp(P):(S.value=C.value=P,vs(S)),t.emit("modelUpdated"),(!I.state.dirty||I.dirtyBehavior==="compare")&&t.isCreated&&r&&I.handlers.touch(),u&&t.type==="input"&&o.value&&!Xt(t.props.preserveErrors)&&t.store.filter(z=>{var J;return!(z.type==="error"&&((J=z.meta)===null||J===void 0?void 0:J.autoClear)===!0)})});const M=async P=>{P.type==="ui"&&P.visible&&!P.meta.showAsMessage?g[P.key]=P:P.visible?i[P.key]=P:P.type==="state"&&(I.state[P.key]=!!P.value)};t.on("message-added",P=>M(P.payload)),t.on("message-updated",P=>M(P.payload)),t.on("message-removed",({payload:P})=>{delete g[P.key],delete i[P.key],delete I.state[P.key]}),t.on("settled:blocking",()=>{n.value=!0}),t.on("unsettled:blocking",()=>{n.value=!1}),t.on("settled:errors",()=>{o.value=!1}),t.on("unsettled:errors",()=>{o.value=!0}),nt(f,P=>{P&&(a.value=!0)}),t.context=I,t.emit("context",t,!1)},em=(e={})=>{const{rules:t={},locales:n={},inputs:o={},messages:r={},locale:i=void 0,theme:s=void 0,iconLoaderUrl:a=void 0,iconLoader:f=void 0,icons:u={},...d}=e,p=JE({...ZE,...t||{}}),g=hC(Wo({en:pC,...n||{}},r)),x=zx(IE,o),E=gC(s,u,a,f);return Wo({plugins:[x,E,FC,g,p],...i?{config:{locale:i}}:{}},d||{},!0)};Me({name:"FormKitIcon",props:{icon:{type:String,default:""},iconLoader:{type:Function,default:null},iconLoaderUrl:{type:Function,default:null}},setup(e){var t,n;const o=pe(void 0),r=dn(Tc,{}),i=dn(ga,null);let s;function a(){if(!s||typeof s!="function")return;const f=s(e.icon);f instanceof Promise?f.then(u=>{o.value=u}):o.value=f}if(e.iconLoader&&typeof e.iconLoader=="function")s=Ei(e.iconLoader);else if(i&&((t=i.props)===null||t===void 0?void 0:t.iconLoader))s=Ei(i.props.iconLoader);else if(e.iconLoaderUrl&&typeof e.iconLoaderUrl=="function")s=Ei(s,e.iconLoaderUrl);else{const f=(n=r==null?void 0:r.plugins)===null||n===void 0?void 0:n.find(u=>typeof u.iconHandler=="function");f&&(s=f.iconHandler)}return nt(()=>e.icon,()=>{a()},{immediate:!0}),()=>e.icon&&o.value?An("span",{class:"formkit-icon",innerHTML:o.value}):null}});function UC(e,t){return jc(e,e.childNodes,t)}function jc(e,t,{mode:n="open",delegatesFocus:o=!1}={mode:"open"}){try{const r=e.shadowRoot;if(r!=null){console.error("[shadow] Attach shadow multiple times",e,t,r);return}else{const i=e.attachShadow({mode:n,delegatesFocus:o});return t&&HC(i,t),i}}catch(r){console.error("[shadow] make shadow-root failed",e,t),console.error(r)}}function HC(e,t){const n=document.createDocumentFragment();for(const o of t)n.appendChild(o);e.appendChild(n)}const zC=document.createDocumentFragment(),ya=Me({props:{media:String,nonce:String},setup(e,{slots:t}){return()=>{var n;return An("style",{media:e.media,nonce:e.nonce},(n=t.default)==null?void 0:n.call(t))}}}),Rc=qC()(Me({props:{mode:{type:String,default:"open"},delegatesFocus:{type:Boolean,default:!1},abstract:{type:Boolean,default:!1},tag:{type:String,default:"div"},adoptedStyleSheets:{type:Array}},emits:["error"],setup(e,{slots:t,expose:n,emit:o}){const r=pe(!1),i=pe(),s=pe(),a=pe(),f=gn(()=>{var d;return(d=a.value)!=null?d:zC}),u=ln({shadow_root:a});return n(u),pn(()=>{r.value=e.abstract}),hn(()=>{var d;try{r.value?s.value.parentElement.shadowRoot?a.value=s.value.parentElement.shadowRoot:a.value=jc(s.value.parentElement,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}):a.value=jc(i.value,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}),(d=a.value)==null||d.styleSheets}catch(p){console.error(p),o("error",p)}}),nt([a,()=>e.adoptedStyleSheets],([d,p])=>{if(!(!d||!p))try{d.adoptedStyleSheets=p}catch(g){console.error(g),o("error",g)}}),()=>{var p;const d=An(Ev,{ref:s,to:f.value},[(p=t.default)==null?void 0:p.call(t)]);return r.value?d:An(e.tag,{ref:i},d)}},install:tm,Style:ya}));function qC(){return e=>e}function tm(e){e.component("shadow-root",Rc),e.directive("shadow",{beforeMount(t){console.warn("[VueShadowDom] Deprecated v-shadow directive, use <shadow-root> component"),UC(t)}})}var WC={ShadowRoot:Rc,ShadowStyle:ya,shadow_root:Rc,shadow_style:ya,install:tm};const KC=`:root{--formkit-theme: genesis;--fk-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--fk-font-family-input: var(--fk-font-family);--fk-font-family-label: var(--fk-font-family);--fk-font-family-legend: var(--fk-font-family-label);--fk-font-family-option: var(--fk-font-family-input);--fk-font-family-help: var(--fk-font-family);--fk-font-family-message: var(--fk-font-family);--fk-font-weight: 400;--fk-font-weight-input: var(--fk-font-weight);--fk-font-weight-label: 700;--fk-font-weight-legend: var(--fk-font-weight-label, bold);--fk-font-weight-help: var(--fk-font-weight);--fk-font-weight-option: var(--fk-font-weight);--fk-font-weight-message: var(--fk-font-weight);--fk-font-size: 1em;--fk-font-size-input: var(--fk-font-size);--fk-font-size-label: .875em;--fk-font-size-legend: .875em;--fk-font-size-help: .8125em;--fk-font-size-remove: .8125em;--fk-font-size-option: .9em;--fk-font-size-message: .8125em;--fk-font-size-button: .875em;--fk-line-height: 1.1;--fk-line-height-label: var(--fk-line-height);--fk-line-height-help: var(--fk-line-height);--fk-line-height-option: var(--fk-line-height);--fk-line-height-message: var(--fk-line-height);--fk-line-height-textarea: var(--fk-line-height);--fk-line-height-input: 1.125em;--fk-line-height-button: 1.3;--fk-max-width-input: 25em;--fk-box-size: 1.25em;--fk-color-primary: #0275ff;--fk-color-checked: var(--fk-color-primary);--fk-color-input: #000;--fk-color-input-selection: rgba(0, 122, 255, 25%);--fk-color-border: #94929c;--fk-color-border-focus: var(--fk-color-primary);--fk-color-danger: #ea0000;--fk-color-error: var(--fk-color-danger);--fk-color-placeholder: #767676;--fk-color-disabled: rgba(0 0 0 / 10%);--fk-color-help: rgba(0 0 0 / 60%);--fk-color-icon: rgba(0 0 0 / 80%);--fk-color-icon-minor: rgba(0 0 0 / 55%);--fk-color-button: #fff;--fk-color-button-hover: #fff;--fk-color-submit: var(--fk-color-button);--fk-color-submit-hover: var(--fk-color-button-hover);--fk-color-range-track: var(--fk-color-border);--fk-color-range-thumb: var(--fk-color-primary);--fk-bg-input: transparent;--fk-bg-disabled: rgba(0 0 0 / 5%);--fk-bg-decorator: linear-gradient(0deg, rgba(0, 0, 0, .07), transparent);--fk-bg-button: var(--fk-color-primary);--fk-bg-button-hover: var(--fk-bg-button);--fk-bg-submit: var(--fk-bg-button);--fk-bg-submit-hover: var(--fk-bg-submit);--fk-border-width: 1px;--fk-border-width-decorator: var(--fk-border-width);--fk-border-width-focus: 2px;--fk-border-width-checked: 1px;--fk-border-width-decorator-checked: 1px;--fk-border-width-decorator-focus: var(--fk-border-width-decorator-checked);--fk-border-width-decorator-focus-visible: var(--fk-border-width-focus);--fk-border-style: solid;--fk-border: var(--fk-border-width) var(--fk-border-style) var(--fk-color-border);--fk-border-focus: var(--fk-border-width-focus) var(--fk-border-style) var(--fk-color-border-focus);--fk-border-decorator: var(--fk-border-width-decorator) var(--fk-border-style) var(--fk-color-border);--fk-border-decorator-focus: var(--fk-border-width-focus) var(--fk-border-style) var(--fk-color-border-focus);--fk-border-decorator-focus-visible: var(--fk-border-width-decorator-focus-visible) var(--fk-border-style) var(--fk-color-border-focus);--fk-border-decorator-checked: var(--fk-border-width-checked) var(--fk-border-style) var(--fk-color-border-focus);--fk-border-box-shadow: 0 0 0 var(--fk-border-width) var(--fk-color-border);--fk-border-box-shadow-focus: 0 0 0 var(--fk-border-width-focus) var(--fk-color-border-focus);--fk-border-box-shadow-decorator: 0 0 0 var(--fk-border-width-decorator);--fk-border-box-shadow-decorator-focus: 0 0 0 var(--fk-border-width-decorator-focus) var(--fk-color-border-focus);--fk-border-box-shadow-decorator-focus-visible: 0 0 0 var(--fk-border-width-decorator-focus-visible) var(--fk-color-border-focus);--fk-border-box-shadow-decorator-checked: 0 0 0 var(--fk-border-width-decorator-checked) var(--fk-color-border-focus);--fk-border-radius-tl: .25em;--fk-border-radius-tr: .25em;--fk-border-radius-bl: .25em;--fk-border-radius-br: .25em;--fk-border-radius: var(--fk-border-radius-tl, .25em) var(--fk-border-radius-tr, .25em) var(--fk-border-radius-br, .25em) var(--fk-border-radius-bl, .25em);--fk-border-radius-full: 999em;--fk-padding-base: .25em;--fk-padding-input-x: calc(var(--fk-padding-base) * 3);--fk-padding-input-y: calc(var(--fk-padding-base) * 3);--fk-padding-input-t: var(--fk-padding-input-y, 0);--fk-padding-input-r: var(--fk-padding-input-x, 0);--fk-padding-input-b: var(--fk-padding-input-y, 0);--fk-padding-input-l: var(--fk-padding-input-x, 0);--fk-padding-input: var(--fk-padding-input-t) var(--fk-padding-input-r) var(--fk-padding-input-b) var(--fk-padding-input-l);--fk-padding-label-x: inherit;--fk-padding-label-y: inherit;--fk-padding-label-t: var(--fk-padding-label-y, 0);--fk-padding-label-r: var(--fk-padding-label-x, 0);--fk-padding-label-b: var(--fk-padding-label-y, .5em);--fk-padding-label-l: var(--fk-padding-label-x, 0);--fk-padding-label: var(--fk-padding-label-t) var(--fk-padding-label-r) var(--fk-padding-label-b) var(--fk-padding-label-l);--fk-padding-help-x: inherit;--fk-padding-help-y: var(--fk-padding-base);--fk-padding-help-t: var(--fk-padding-help-y, 0);--fk-padding-help-r: var(--fk-padding-help-x, 0);--fk-padding-help-b: var(--fk-padding-help-y, 0);--fk-padding-help-l: var(--fk-padding-help-x, 0);--fk-padding-help: var(--fk-padding-help-t) var(--fk-padding-help-r) var(--fk-padding-help-b) var(--fk-padding-help-l);--fk-padding-option-x: inherit;--fk-padding-option-y: inherit;--fk-padding-option-t: var(--fk-padding-option-y, 0);--fk-padding-option-r: var(--fk-padding-option-x, 0);--fk-padding-option-b: var(--fk-padding-option-y, 0);--fk-padding-option-l: var(--fk-padding-option-x, 0);--fk-padding-option: var(--fk-padding-option-t) var(--fk-padding-option-r) var(--fk-padding-option-b) var(--fk-padding-option-l);--fk-padding-messages-x: inherit;--fk-padding-messages-y: inherit;--fk-padding-messages-t: var(--fk-padding-messages-y, var(--fk-padding-base));--fk-padding-messages-r: var(--fk-padding-messages-x, 0);--fk-padding-messages-b: var(--fk-padding-messages-y, 0);--fk-padding-messages-l: var(--fk-padding-messages-x, 0);--fk-padding-messages: var(--fk-padding-messages-t) var(--fk-padding-messages-r) var(--fk-padding-messages-b) var(--fk-padding-messages-l);--fk-padding-message-x: inherit;--fk-padding-message-y: var(--fk-padding-base);--fk-padding-message-t: var(--fk-padding-message-y, 0);--fk-padding-message-r: var(--fk-padding-message-x, 0);--fk-padding-message-b: var(--fk-padding-message-y, 0);--fk-padding-message-l: var(--fk-padding-message-x, 0);--fk-padding-message: var(--fk-padding-message-t) var(--fk-padding-message-r) var(--fk-padding-message-b) var(--fk-padding-message-l);--fk-padding-legend-x: .25em;--fk-padding-legend-y: .25em;--fk-padding-legend-t: var(--fk-padding-legend-y);--fk-padding-legend-r: var(--fk-padding-legend-x);--fk-padding-legend-b: var(--fk-padding-legend-y);--fk-padding-legend-l: var(--fk-padding-legend-x);--fk-padding-legend: var(--fk-padding-legend-t) var(--fk-padding-legend-r) var(--fk-padding-legend-b) var(--fk-padding-legend-l);--fk-padding-fieldset-x: var(--fk-padding-input-x);--fk-padding-fieldset-y: var(--fk-padding-input-y);--fk-padding-fieldset-t: var(--fk-padding-fieldset-y);--fk-padding-fieldset-r: var(--fk-padding-fieldset-x);--fk-padding-fieldset-b: var(--fk-padding-fieldset-y);--fk-padding-fieldset-l: var(--fk-padding-fieldset-x);--fk-padding-fieldset: var(--fk-padding-fieldset-t) var(--fk-padding-fieldset-r) var(--fk-padding-fieldset-b) var(--fk-padding-fieldset-l);--fk-padding-decorator-x: inherit;--fk-padding-decorator-y: var(--fk-padding-base);--fk-padding-decorator-t: var(--fk-padding-decorator-y, 1.25em);--fk-padding-decorator-r: var(--fk-padding-decorator-x, 1.25em);--fk-padding-decorator-b: var(--fk-padding-decorator-y, 1.25em);--fk-padding-decorator-l: var(--fk-padding-decorator-x, 1.25em);--fk-padding-decorator: var(--fk-padding-decorator-t) var(--fk-padding-decorator-r) var(--fk-padding-decorator-b) var(--fk-padding-decorator-l);--fk-padding-button-x: calc(var(--fk-padding-base) * 8);--fk-padding-button-y: calc(var(--fk-padding-base) * 3);--fk-padding-button-t: var(--fk-padding-button-y);--fk-padding-button-r: var(--fk-padding-button-x);--fk-padding-button-b: var(--fk-padding-button-y);--fk-padding-button-l: var(--fk-padding-button-x);--fk-padding-button: var(--fk-padding-button-t) var(--fk-padding-button-r) var(--fk-padding-button-b) var(--fk-padding-button-l);--fk-margin-base: .5em;--fk-margin-outer-x: inherit;--fk-margin-outer-y: inherit;--fk-margin-outer-t: var(--fk-margin-outer-y, 0);--fk-margin-outer-r: var(--fk-margin-outer-x, 0);--fk-margin-outer-b: var(--fk-margin-outer-y, calc(var(--fk-margin-base) * 2));--fk-margin-outer-l: var(--fk-margin-outer-x, 0);--fk-margin-outer: var(--fk-margin-outer-t) var(--fk-margin-outer-r) var(--fk-margin-outer-b) var(--fk-margin-outer-l);--fk-margin-wrapper-x: inherit;--fk-margin-wrapper-y: inherit;--fk-margin-wrapper-t: var(--fk-margin-wrapper-y, 0);--fk-margin-wrapper-r: var(--fk-margin-wrapper-x, 0);--fk-margin-wrapper-b: var(--fk-margin-wrapper-y, 0);--fk-margin-wrapper-l: var(--fk-margin-wrapper-x, 0);--fk-margin-wrapper: var(--fk-margin-wrapper-t) var(--fk-margin-wrapper-r) var(--fk-margin-wrapper-b) var(--fk-margin-wrapper-l);--fk-margin-input-x: inherit;--fk-margin-input-y: inherit;--fk-margin-input-t: var(--fk-margin-input-y, 0);--fk-margin-input-r: var(--fk-margin-input-x, 0);--fk-margin-input-b: var(--fk-margin-input-y, 0);--fk-margin-input-l: var(--fk-margin-input-x, 0);--fk-margin-input: var(--fk-margin-input-t) var(--fk-margin-input-r) var(--fk-margin-input-b) var(--fk-margin-input-l);--fk-margin-label-x: inherit;--fk-margin-label-y: 0;--fk-margin-label-t: var(--fk-margin-label-y, 0);--fk-margin-label-r: var(--fk-margin-label-x, 0);--fk-margin-label-b: var(--fk-margin-label-y, var(--fk-margin-base));--fk-margin-label-l: var(--fk-margin-label-x, 0);--fk-margin-label: var(--fk-margin-label-t) var(--fk-margin-label-r) var(--fk-margin-label-b) var(--fk-margin-label-l);--fk-margin-help-x: inherit;--fk-margin-help-y: .3em;--fk-margin-help-t: var(--fk-margin-help-y, 0);--fk-margin-help-r: var(--fk-margin-help-x, 0);--fk-margin-help-b: 0;--fk-margin-help-l: var(--fk-margin-help-x, 0);--fk-margin-help: var(--fk-margin-help-t) var(--fk-margin-help-r) var(--fk-margin-help-b) var(--fk-margin-help-l);--fk-margin-option-x: inherit;--fk-margin-option-y: inherit;--fk-margin-option-t: var(--fk-margin-option-y, 0);--fk-margin-option-r: var(--fk-margin-option-x, 0);--fk-margin-option-b: var(--fk-margin-option-y, .625em);--fk-margin-option-l: var(--fk-margin-option-x, 0);--fk-margin-option: var(--fk-margin-option-t) var(--fk-margin-option-r) var(--fk-margin-option-b) var(--fk-margin-option-l);--fk-margin-message-x: inherit;--fk-margin-message-y: inherit;--fk-margin-message-t: var(--fk-margin-message-y, 0);--fk-margin-message-r: var(--fk-margin-message-x, 0);--fk-margin-message-b: var(--fk-margin-message-y, 0);--fk-margin-message-l: var(--fk-margin-message-x, 0);--fk-margin-message: var(--fk-margin-message-t) var(--fk-margin-message-r) var(--fk-margin-message-b) var(--fk-margin-message-l);--fk-margin-legend-x: 0em;--fk-margin-legend-y: inherit;--fk-margin-legend-t: var(--fk-margin-legend-y, 0);--fk-margin-legend-r: var(--fk-margin-legend-x, 0);--fk-margin-legend-b: var(--fk-margin-legend-y, 0);--fk-margin-legend-l: var(--fk-margin-legend-x, 0);--fk-margin-legend: var(--fk-margin-legend-t) var(--fk-margin-legend-r) var(--fk-margin-legend-b) var(--fk-margin-legend-l);--fk-margin-fieldset-x: inherit;--fk-margin-fieldset-y: inherit;--fk-margin-fieldset-t: var(--fk-margin-fieldset-y, 0);--fk-margin-fieldset-r: var(--fk-margin-fieldset-x, 0);--fk-margin-fieldset-b: var(--fk-margin-fieldset-y, 0);--fk-margin-fieldset-l: var(--fk-margin-fieldset-x, 0);--fk-margin-fieldset: var(--fk-margin-fieldset-t) var(--fk-margin-fieldset-r) var(--fk-margin-fieldset-b) var(--fk-margin-fieldset-l);--fk-margin-decorator-x: inherit;--fk-margin-decorator-y: inherit;--fk-margin-decorator-t: var(--fk-margin-decorator-y, 0);--fk-margin-decorator-r: var(--fk-margin-decorator-x, .5em);--fk-margin-decorator-b: var(--fk-margin-decorator-y, 0);--fk-margin-decorator-l: var(--fk-margin-decorator-x, 0);--fk-margin-decorator: var(--fk-margin-decorator-t) var(--fk-margin-decorator-r) var(--fk-margin-decorator-b) var(--fk-margin-decorator-l);--fk-margin-button-x: inherit;--fk-margin-button-y: inherit;--fk-margin-button-t: var(--fk-margin-button-y, 0);--fk-margin-button-r: var(--fk-margin-button-x, .5em);--fk-margin-button-b: var(--fk-margin-button-y, 0);--fk-margin-button-l: var(--fk-margin-button-x, 0);--fk-margin-button: var(--fk-margin-button-t) var(--fk-margin-button-r) var(--fk-margin-button-b) var(--fk-margin-button-l);--fk-icon-close: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMiAxNiI+PHBhdGggZD0iTTEwLDEyLjVjLS4xMywwLS4yNi0uMDUtLjM1LS4xNUwxLjY1LDQuMzVjLS4yLS4yLS4yLS41MSwwLS43MSwuMi0uMiwuNTEtLjIsLjcxLDBMMTAuMzUsMTEuNjVjLjIsLjIsLjIsLjUxLDAsLjcxLS4xLC4xLS4yMywuMTUtLjM1LC4xNVoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPjxwYXRoIGQ9Ik0yLDEyLjVjLS4xMywwLS4yNi0uMDUtLjM1LS4xNS0uMi0uMi0uMi0uNTEsMC0uNzFMOS42NSwzLjY1Yy4yLS4yLC41MS0uMiwuNzEsMCwuMiwuMiwuMiwuNTEsMCwuNzFMMi4zNSwxMi4zNWMtLjEsLjEtLjIzLC4xNS0uMzUsLjE1WiIgZmlsbD0iY3VycmVudENvbG9yIi8+PC9zdmc+;--fk-icon-down: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiA3Ij48cGF0aCBkPSJNOCw2LjVjLS4xMywwLS4yNi0uMDUtLjM1LS4xNUwzLjE1LDEuODVjLS4yLS4yLS4yLS41MSwwLS43MSwuMi0uMiwuNTEtLjIsLjcxLDBsNC4xNSw0LjE1TDEyLjE1LDEuMTVjLjItLjIsLjUxLS4yLC43MSwwLC4yLC4yLC4yLC41MSwwLC43MWwtNC41LDQuNWMtLjEsLjEtLjIzLC4xNS0uMzUsLjE1WiIgZmlsbD0iY3VycmVudENvbG9yIi8+PC9zdmc+;--fk-icon-fileDoc: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNSAxNiI+PHBhdGggZD0iTTEyLjUsMTZIMi41Yy0uODMsMC0xLjUtLjY3LTEuNS0xLjVWMS41YzAtLjgzLC42Ny0xLjUsMS41LTEuNWg3LjA5Yy40LDAsLjc4LC4xNiwxLjA2LC40NGwyLjkxLDIuOTFjLjI4LC4yOCwuNDQsLjY2LC40NCwxLjA2VjE0LjVjMCwuODMtLjY3LDEuNS0xLjUsMS41Wk0yLjUsMWMtLjI4LDAtLjUsLjIyLS41LC41VjE0LjVjMCwuMjgsLjIyLC41LC41LC41SDEyLjVjLjI4LDAsLjUtLjIyLC41LS41VjQuNDFjMC0uMTMtLjA1LS4yNi0uMTUtLjM1bC0yLjkxLTIuOTFjLS4wOS0uMDktLjIyLS4xNS0uMzUtLjE1SDIuNVoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPjxwYXRoIGQ9Ik0xMy4zOCw1aC0yLjkxYy0uODEsMC0xLjQ3LS42Ni0xLjQ3LTEuNDdWLjYyYzAtLjI4LC4yMi0uNSwuNS0uNXMuNSwuMjIsLjUsLjVWMy41M2MwLC4yNiwuMjEsLjQ3LC40NywuNDdoMi45MWMuMjgsMCwuNSwuMjIsLjUsLjVzLS4yMiwuNS0uNSwuNVoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPjxwYXRoIGQ9Ik0xMCwxM0g1Yy0uMjgsMC0uNS0uMjItLjUtLjVzLjIyLS41LC41LS41aDVjLjI4LDAsLjUsLjIyLC41LC41cy0uMjIsLjUtLjUsLjVaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz48cGF0aCBkPSJNMTAsMTBINWMtLjI4LDAtLjUtLjIyLS41LS41cy4yMi0uNSwuNS0uNWg1Yy4yOCwwLC41LC4yMiwuNSwuNXMtLjIyLC41LS41LC41WiIgZmlsbD0iY3VycmVudENvbG9yIi8+PHBhdGggZD0iTTcsN2gtMmMtLjI4LDAtLjUtLjIyLS41LS41cy4yMi0uNSwuNS0uNWgyYy4yOCwwLC41LC4yMiwuNSwuNXMtLjIyLC41LS41LC41WiIgZmlsbD0iY3VycmVudENvbG9yIi8+PC9zdmc+Cg==;--fk-icon-check: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAyNyI+PHBvbHlnb24gZmlsbD0iY3VycmVudENvbG9yIiBwb2ludHM9IjI2Ljk5IDAgMTAuMTMgMTcuMTcgNC42OSAxMS42MyAwIDE2LjQxIDEwLjQgMjcgMTUuMDUgMjIuMjcgMTUuMDkgMjIuMzEgMzIgNS4xIDI2Ljk5IDAiLz48L3N2Zz4=;--fk-icon-circle: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PGNpcmNsZSBmaWxsPSJjdXJyZW50Q29sb3IiIGN4PSIxNiIgY3k9IjE2IiByPSIxNiIvPjwvc3ZnPg==;--fk-icon-fileItem: var(--fk-icon-fileDoc);--fk-icon-fileRemove: var(--fk-icon-close);--fk-icon-noFiles: var(--fk-icon-fileDoc);--fk-icon-select: var(--fk-icon-down);--fk-icon-checkboxDecorator: var(--fk-icon-check);--fk-icon-radioDecorator: var(--fk-icon-circle)}.formkit-outer,.formkit-outer *{box-sizing:border-box}.formkit-outer *:before,.formkit-outer *:after{box-sizing:inherit}.formkit-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none}.formkit-input:focus{outline:none}.formkit-message{list-style-type:none}.formkit-inner:focus-within{border-color:var(--fk-color-border-focus)}[data-type=select]:not([data-multiple]) .formkit-inner:after{background-color:var(--fk-color-icon)}.formkit-input{background-color:var(--fk-bg-input);color:var(--fk-color-input)}input.formkit-input[type=radio]:checked~.formkit-decorator:before{background:var(--fk-color-checked)}input.formkit-input[type=checkbox]:checked~.formkit-decorator:before{border-color:var(--fk-color-checked)}[data-family=text] .formkit-input::-moz-selection{background-color:var(--fk-color-input-selection)}[data-family=text] .formkit-input::selection{background-color:var(--fk-color-input-selection)}.formkit-help,.formkit-option-help{color:var(--fk-color-help)}.formkit-message{color:var(--fk-color-error)}.formkit-outer{font-family:var(--fk-font-family);font-weight:var(--fk-font-weight);font-size:var(--fk-font-size);line-height:var(--fk-line-height)}.formkit-outer[data-type=textarea] textarea{line-height:var(--fk-line-height-textarea)}.formkit-label{font-family:var(--fk-font-family-label);font-size:var(--fk-font-size-label);font-weight:var(--fk-font-weight-label);line-height:var(--fk-line-height-label)}[data-type=checkbox] .formkit-label,[data-type=radio] .formkit-label,.formkit-option .formkit-label{font-weight:var(--fk-font-weight-option);font-size:var(--fk-font-size-option);margin-bottom:.1em}.formkit-legend{font-family:var(--fk-font-family-legend);font-size:var(--fk-font-size-legend);font-weight:var(--fk-font-weight-legend)}.formkit-input{font-family:var(--fk-font-family-input);font-size:var(--fk-font-size-input);font-weight:var(--fk-font-weight-input);line-height:var(--fk-line-height-input)}.formkit-help,.formkit-option-help{font-family:var(--fk-font-family-help);font-size:var(--fk-font-size-help);font-weight:var(--fk-font-weight-help);line-height:var(--fk-line-height-help)}.formkit-messages{font-family:var(--fk-font-family-message);font-family:var(--fk-font-family);line-height:var(--fk-line-height-message)}.formkit-message{font-size:var(--fk-font-size-message);font-weight:var(--fk-font-weight-message)}.formkit-outer{margin:var(--fk-margin-outer)}.formkit-wrapper,.formkit-fieldset{max-width:var(--fk-max-width-input)}.formkit-label{display:block;margin:var(--fk-margin-label);padding:var(--fk-padding-label)}.formkit-fieldset{margin:var(--fk-margin-fieldset);padding:var(--fk-padding-fieldset);border-radius:var(--fk-border-radius);border:var(--fk-border)}.formkit-fieldset:focus-within{border:var(--fk-border-focus)}.formkit-fieldset>.formkit-help{margin-top:calc(var(--fk-padding-fieldset-t) * -.5);margin-bottom:calc(var(--fk-padding-fieldset-t) * 1.5)}.formkit-legend{display:block;margin:var(--fk-margin-legend);padding:var(--fk-padding-legend)}.formkit-inner{position:relative;box-shadow:var(--fk-border-box-shadow);border-radius:var(--fk-border-radius);display:flex;align-items:center}.formkit-inner:focus-within{box-shadow:var(--fk-border-box-shadow-focus)}[data-type=checkbox] .formkit-inner,[data-type=radio] .formkit-inner{border:none;box-shadow:none;display:inline-block}.formkit-input{display:block;width:100%;border-radius:var(--fk-border-radius);padding:var(--fk-padding-input)}.formkit-input[disabled]{background-color:var(--fk-bg-disabled)}.formkit-input[multiple=true],.formkit-input[multiple=multiple]{padding:0}.formkit-input[multiple=true] option,.formkit-input[multiple=multiple] option{padding:var(--fk-padding-input)}input.formkit-input[type=date]::-webkit-calendar-picker-indicator{padding-top:0;padding-bottom:0;font-size:.875em}input.formkit-input[type=date]::-webkit-datetime-edit{line-height:1;overflow:visible}select.formkit-input{padding-right:calc(var(--fk-padding-base) * 7)}select.formkit-input[data-placeholder]:not([multiple]){color:var(--fk-color-placeholder)}select.formkit-input[data-placeholder]:not([multiple]) option{color:var(--fk-color-input)}select.formkit-input[data-placeholder]:not([multiple]) option[disabled]{color:var(--fk-color-disabled)}select.formkit-input[data-placeholder]:not([multiple]) option[data-is-placeholder]{color:var(--fk-color-placeholder)}select.formkit-input option{font-size:var(--fk-font-size-option)}input.formkit-input[type=radio]~.formkit-decorator{border-radius:var(--fk-border-radius-full)}input.formkit-input[type=radio]~.formkit-decorator:before{width:50%;height:50%;top:50%;left:50%;transform:translate(-50%,-50%);border:0;border-radius:2em}.formkit-help,.formkit-option-help{margin:var(--fk-margin-help)}.formkit-messages{padding:var(--fk-padding-messages);margin:var(--fk-margin-messages)}.formkit-help+.formkit-messages{padding-top:0}.formkit-message{padding:var(--fk-padding-message);margin:var(--fk-margin-message)}.formkit-messages+.formkit-actions{margin-top:var(--fk-margin-outer-b)}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes glow{0%{box-shadow:0 0 0 .1em var(--fk-color-primary)}to{box-shadow:0 0 0 .4em var(--fk-color-primary)}}[data-type=button] .formkit-input,[data-type=submit] .formkit-input{font-size:var(--fk-font-size-button);border-radius:var(--fk-border-radius);cursor:pointer;display:inline-flex;width:auto;justify-content:center;padding:var(--fk-padding-button);margin:var(--fk-margin-button);position:relative;transition:filter .25s;border:1px solid transparent;line-height:var(--fk-line-height-button)}[data-type=button] .formkit-input:focus-visible,[data-type=submit] .formkit-input:focus-visible{outline:var(--fk-color-border-focus) solid 2px;outline-offset:2px}[data-type=button][data-disabled] .formkit-input,[data-type=submit][data-disabled] .formkit-input,[data-type=button] .formkit-input[disabled],[data-type=submit] .formkit-input[disabled]{background:var(--fk-color-border)!important;color:var(--fk-color-button)!important;cursor:not-allowed}[data-type=submit] .formkit-input{background:var(--fk-bg-submit);color:var(--fk-color-submit)}[data-type=submit] .formkit-input:before{box-sizing:border-box;content:"";width:0;margin-right:0;height:1.28571428em;border:0 solid transparent;border-radius:1.28571428em;transition:width .25s,border .25s,margin-right .25s}[data-type=submit] .formkit-input:hover{background:var(--fk-bg-submit-hover)}[data-loading] [data-type=submit] .formkit-input{filter:brightness(1.1);pointer-events:none}[data-loading] [data-type=submit] .formkit-input:before{animation:rotate .5s linear infinite;width:1.28571428em;border:.1428571429em solid white;border-right-color:transparent;margin-right:.75em}[data-type=button] .formkit-input{background:var(--fk-bg-button);color:var(--fk-color-button)}[data-type=button] .formkit-input:hover{background:var(--fk-bg-button-hover)}[data-type=checkbox] [data-disabled],[data-type=radio] [data-disabled]{opacity:30%}[data-type=checkbox] .formkit-label,[data-type=radio] .formkit-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:0;margin:0}[data-type=checkbox] .formkit-wrapper,[data-type=radio] .formkit-wrapper{display:flex;align-items:center}[data-type=checkbox] .formkit-input,[data-type=radio] .formkit-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;width:0;height:0;overflow:hidden;opacity:0;left:-999em}[data-type=checkbox] .formkit-input~.formkit-decorator,[data-type=radio] .formkit-input~.formkit-decorator{background:var(--fk-bg-decorator);display:block;box-sizing:content-box;width:var(--fk-box-size);height:var(--fk-box-size);flex:0 0 var(--fk-box-size);border:none;box-shadow:var(--fk-border-box-shadow);border-radius:var(--fk-border-radius);margin:var(--fk-margin-decorator);position:relative}[data-type=checkbox] .formkit-input~.formkit-decorator .formkit-icon,[data-type=radio] .formkit-input~.formkit-decorator .formkit-icon{width:0;height:0;position:absolute;padding:3px;top:50%;left:50%;transform:translate(-50%,-50%);overflow:hidden;pointer-events:none}[data-type=checkbox] .formkit-input~.formkit-decorator .formkit-icon svg,[data-type=radio] .formkit-input~.formkit-decorator .formkit-icon svg{height:100%}[data-type=checkbox] .formkit-input:checked~.formkit-decorator,[data-type=radio] .formkit-input:checked~.formkit-decorator{box-shadow:var(--fk-border-box-shadow-decorator-checked)}[data-type=checkbox] .formkit-input:checked~.formkit-decorator .formkit-icon,[data-type=radio] .formkit-input:checked~.formkit-decorator .formkit-icon{width:100%;height:100%}[data-type=checkbox] .formkit-input:checked~.formkit-decorator .formkit-icon,[data-type=radio] .formkit-input:checked~.formkit-decorator .formkit-icon{color:var(--fk-color-border-focus)}[data-type=checkbox] .formkit-input:focus~.formkit-decorator,[data-type=radio] .formkit-input:focus~.formkit-decorator{box-shadow:var(--fk-border-box-shadow-decorator-focus)}[data-type=checkbox] .formkit-input:focus-visible~.formkit-decorator,[data-type=radio] .formkit-input:focus-visible~.formkit-decorator{box-shadow:var(--fk-border-box-shadow-decorator-focus-visible)}[data-type=checkbox] .formkit-options,[data-type=radio] .formkit-options{margin:var(--fk-checkbox-options-margin);padding:0}[data-type=checkbox] .formkit-option,[data-type=radio] .formkit-option{list-style-type:none;margin:var(--fk-margin-option)}[data-type=checkbox] .formkit-option:last-child,[data-type=radio] .formkit-option:last-child{margin-bottom:0}[data-type=checkbox] fieldset.formkit-fieldset,[data-type=radio] fieldset.formkit-fieldset{border:var(--fk-border);border-radius:var(--fk-border-radius)}[data-type=radio] .formkit-input~.formkit-decorator .formkit-icon{padding:5px}[data-type=color] .formkit-inner{max-width:5em}[data-type=color] input[type=color]{border:none;padding:0}[data-type=color] input[type=color]::-webkit-color-swatch-wrapper{padding:0;border:none}[data-type=color] input[type=color]::-moz-color-swatch-wrapper{padding:0;border:none}[data-type=color] input[type=color]::-webkit-color-swatch{border-radius:var(--fk-border-radius);border:none}[data-type=color] input[type=color]::-moz-color-swatch{border-radius:var(--fk-border-radius);border:none}[data-type=range] .formkit-inner{border:0;box-shadow:none}[data-type=range] input{padding-left:0;padding-right:0}[data-type=range] input[disabled]{background:transparent}[data-type=range] input::-webkit-slider-runnable-track{background-color:var(--fk-color-border);height:4px;border-radius:4px}[data-type=range] input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;position:relative;transform:translateY(calc(-50% + 2px));width:1em;height:1em;border-radius:1em;background-color:var(--fk-color-range-thumb);border:0}[data-type=range] input::-moz-range-track{background-color:var(--fk-color-border);height:4px;border-radius:4px;border:1px solid transparent}[data-type=range] input::-moz-range-thumb{-moz-appearance:none;appearance:none;position:relative;width:1em;height:1em;border-radius:1em;background-color:var(--fk-color-range-thumb);border:1px solid var(--fk-color-range-thumb)}[data-type=range] input[disabled]::-webkit-slider-thumb{background-color:var(--fk-color-border)}[data-type=range] input[disabled]::-moz-slider-thumb{background-color:var(--fk-color-border)}[data-type=range] input:focus-visible{outline:var(--fk-border-width) var(--fk-border-style) var(--fk-color-border-focus)}[data-type=select]:not([data-multiple]) .formkit-inner .formkit-select-icon{margin-left:-2.5em;pointer-events:none}[data-type=select][data-multiple] .formkit-select-icon{display:none}[data-type=file] .formkit-no-files,[data-type=file] .formkit-file-list{padding:var(--fk-padding-input);margin:0}[data-type=file] .formkit-no-files,[data-type=file] .formkit-file-item{display:flex;flex-grow:1;align-items:center;font-size:var(--fk-font-size-input);position:relative}[data-type=file] .formkit-no-files+.formkit-no-files,[data-type=file] .formkit-file-item+.formkit-file-item{margin-top:var(--fk-padding-input-t)}[data-type=file] .formkit-inner .formkit-file-item-icon,[data-type=file] .formkit-inner .formkit-no-files-icon{width:1em;margin-right:.5em}[data-type=file] .formkit-file-item .formkit-file-remove{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;font-size:0;margin-left:auto;padding:0;position:relative;z-index:3;cursor:pointer}[data-type=file] .formkit-file-item .formkit-file-remove:hover{color:var(--fk-color-danger)}[data-type=file] .formkit-file-item .formkit-file-remove .formkit-file-remove-icon{width:1em;font-size:1rem}[data-type=file] .formkit-no-files{color:var(--fk-color-placeholder)}[data-type=file] .formkit-no-files:before{background-color:var(--fk-color-placeholder)}[data-type=file] .formkit-file-list{width:100%}[data-type=file] .formkit-file-list[data-has-multiple]{margin-bottom:calc(var(--fk-padding-input-b) + var(--fk-font-size-remove) * 1.1)}[data-type=file] .formkit-file-list[data-has-multiple] .formkit-file-item{line-height:var(--fk-line-height-input)}[data-type=file] .formkit-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;top:0;left:0;right:0;bottom:0;cursor:pointer;z-index:2;color:transparent}[data-type=file] .formkit-input::file-selector-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:0;padding:0;border:0}[data-type=file] .formkit-input[data-file-hover]{animation:glow .75s infinite alternate}[data-type=file] [data-has-multiple=true]~.formkit-file-remove{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:0;padding:0;margin:0;position:absolute;font-size:var(--fk-font-size-remove);color:var(--fk-color-primary);bottom:calc(var(--fk-padding-input-b) + (1em - var(--fk-font-size-remove)));left:calc(var(--fk-padding-input-l) + (1em - var(--fk-font-size-remove)));display:block;z-index:5;cursor:pointer}[data-type=file] [data-has-multiple=true]~.formkit-file-remove:hover{color:var(--fk-color-danger)}[data-type=textarea] textarea{width:100%;min-height:6em;flex-grow:1}.formkit-inner:focus-within .formkit-icon.formkit-prefix-icon{color:var(--fk-color-primary)}.formkit-outer .formkit-icon{width:2.5em;flex-grow:0;flex-shrink:0;display:flex;align-self:stretch;-webkit-user-select:none;-moz-user-select:none;user-select:none}.formkit-outer .formkit-icon.formkit-prefix-icon{border-radius:var(--fk-border-radius-tl) 0 0 var(--fk-border-radius-bl);background:var(--fk-bg-decorator);box-shadow:1px 0 #00000054}.formkit-outer .formkit-icon.formkit-suffix-icon{width:1.75em;padding-left:0;padding-right:.75em}.formkit-outer .formkit-icon svg{width:100%;margin:auto;max-height:1em;max-width:1em}[data-type=button] .formkit-icon.formkit-prefix-icon,[data-type=submit] .formkit-icon.formkit-prefix-icon,[data-type=range] .formkit-icon.formkit-prefix-icon{background:none;box-shadow:none}[data-type=button] .formkit-inner:focus-within .formkit-icon,[data-type=submit] .formkit-inner:focus-within .formkit-icon,[data-type=range] .formkit-inner:focus-within .formkit-icon{color:currentColor}[data-type=button] .formkit-icon,[data-type=submit] .formkit-icon,[data-type=range] .formkit-icon{padding:0;width:1em;font-size:1rem}[data-type=button] .formkit-icon.formkit--prefix-icon,[data-type=submit] .formkit-icon.formkit--prefix-icon,[data-type=range] .formkit-icon.formkit--prefix-icon{margin-right:.5em}[data-type=button] .formkit-icon.formkit-suffix-icon,[data-type=submit] .formkit-icon.formkit-suffix-icon,[data-type=range] .formkit-icon.formkit-suffix-icon{margin-left:.5em}[data-type=button] .formkit-prefix-icon,[data-type=submit] .formkit-prefix-icon{margin-left:-.5em;margin-right:.5em}[data-type=button] .formkit-suffix-icon,[data-type=submit] .formkit-suffix-icon{margin-left:.5em;margin-right:-.5em}[data-prefix-icon=true][data-prefix-icon-click=true] .formkit-prefix-icon{cursor:pointer}[data-prefix-icon=true][data-type=color] input[type=color]::-webkit-color-swatch{border-top-left-radius:0;border-bottom-left-radius:0}[data-prefix-icon=true][data-type=color] input[type=color]::-moz-color-swatch{border-top-left-radius:0;border-bottom-left-radius:0}[data-prefix-icon=true][data-type=file][data-multiple=true] .formkit-file-remove{left:calc(var(--fk-padding-input-l) + (4em - var(--fk-font-size-remove)))}[data-suffix-icon=true][data-suffix-icon-click=true] .formkit-suffix-icon{cursor:pointer}[data-suffix-icon=true][data-type=color] input[type=color]::-webkit-color-swatch{border-top-right-radius:0;border-bottom-right-radius:0}[data-suffix-icon=true][data-type=color] input[type=color]::-moz-color-swatch{border-top-right-radius:0;border-bottom-right-radius:0}[data-suffix-icon=true][data-type=color] .formkit-icon.formkit-suffix-icon{padding-right:0;width:2.5em}[data-suffix-icon=true][data-type=select] .formkit-inner:after{right:2.5em}[data-prefix-icon=true][data-type=color] .formkit-inner,[data-suffix-icon=true][data-type=color] .formkit-inner{max-width:7.5em}[data-prefix-icon=true][data-suffix-icon=true][data-type=color] .formkit-inner{max-width:10em}
`,GC=b("br",null,null,-1),YC=b("br",null,null,-1),ZC=b("div",null,[b("h4",{class:"form-label"},"Creating the form")],-1),JC=b("h1",null,"New Character",-1),XC=Me({__name:"TestGoogle",setup(e){async function t(){console.log("[getSubFiles]"),Xc({url:"http://localhost:19798/clouddrive.CloudDriveFileSrv/GetSubFiles",method:"POST",binary:!0,headers:{authorization:"Bearer 3a235139-68b7-41cd-906d-dd3b980c2dae","content-type":"application/grpc-web-text",accept:"application/grpc-web-text","x-grpc-web":"1"},data:"AAAAABUKEy8xMTUvbXBpYy8yMDAwZmlsZXM=",onload:function(o){console.log("[onload]",o)},onerror:function(o){console.log("[onerror]",o)},onabort:function(){console.log("[onabort]")},fetch:!0})}async function n(){console.log("[getAccountStatus]"),Xc({url:"http://localhost:19798/clouddrive.CloudDriveFileSrv/GetAccountStatus",method:"POST",binary:!0,headers:{authorization:"Bearer 3a235139-68b7-41cd-906d-dd3b980c2dae","content-type":"application/grpc-web-text","x-grpc-web":"1"},data:"AAAAAAA=",onload:function(o){console.log("[onload]",o)},onerror:function(o){console.log("[onerror]",o)},onabort:function(){console.log("[onabort]")},fetch:!0})}return pe(""),(o,r)=>{const i=Cn("shadow-root");return ae(),Ut(i,null,{default:Ke(()=>[Ce(qe(ya),null,{default:Ke(()=>[_e(Ne(qe(KC)),1)]),_:1}),b("button",{class:"btn-test",onClick:t},"Test getSubFiles"),GC,YC,b("button",{class:"btn-test",onClick:n},"Test getAccountStatus"),ZC,JC]),_:1})}}}),II="";async function QC(){const{host:e,search:t}=location;e==="www.google.com"&&(console.log("Google Search Enhancer launched!"),await e2())}async function e2(){const e="googleSearchEnhancer",t=document.createElement("div"),n=document.createElement("div");t.appendChild(n),n.id=e,document.body.appendChild(t);const o=Vo(XC);o.use(WC),console.log("defaultConfig",em),o.use(PC,em({theme:"genesis"})),o.mount(n)}async function t2(){const e=await ac(),{host:t,search:n}=location;t==="115.com"&&(Hk(e),Uk(e))}const nm=Symbol("addTab"),om=Symbol("updateTab"),rm=Symbol("deleteTab"),im=Symbol("tabsProvider");function wa(e,t){const n=dn(e,t);if(typeof n>"u")throw new Error(`Could not resolve ${e.description}`);return n}const n2=["data-tab-id","aria-hidden"],Cr=Me({__name:"Tab",props:{panelClass:{type:[String,Object,Array],default:"tabs-component-panel"},id:{type:String,default:null},name:{type:String,required:!0},prefix:{type:String,default:""},suffix:{type:String,default:""},isDisabled:{type:Boolean,default:!1},navItemClass:{type:[String,Object,Array],required:!1,default:null},navItemLinkClass:{type:[String,Object,Array],required:!1,default:null}},setup(e,{expose:t}){const n=e,o=pe(!1),r=wa(im),i=wa(nm),s=wa(om),a=wa(rm),f=n.prefix+n.name+n.suffix,u=n.id?n.id:n.name.toLowerCase().replace(/ /g,"-"),d=u+"-pane",p=gn(()=>"#"+(n.isDisabled?"":u));return nt(()=>r.activeTabHash,()=>{o.value=p.value===r.activeTabHash}),nt(()=>Object.assign({},n),()=>{s(u,{name:n.name,header:n.prefix+n.name+n.suffix,isDisabled:n.isDisabled,hash:p.value,index:r.tabs.length,computedId:u,paneId:d,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),pn(()=>{i({name:n.name,header:f,isDisabled:n.isDisabled,hash:p.value,index:r.tabs.length,computedId:u,paneId:d,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),$l(()=>{a(u)}),t({header:f,computedId:u,paneId:d,hash:p,isActive:o}),(g,x)=>ge((ae(),he("section",{ref:"tab",id:d,"data-tab-id":qe(u),"aria-hidden":!o.value,class:at(e.panelClass),role:"tabpanel",tabindex:"-1"},[Sn(g.$slots,"default")],10,n2)),[[In,o.value]])}});class o2{get(t){const n=localStorage.getItem(t);if(n===null)return null;const o=JSON.parse(n);return o?new Date(o.expires)<new Date?(localStorage.removeItem(t),null):o.value:null}set(t,n,o){const r=new Date().getTime(),i=new Date(r+o*6e4);localStorage.setItem(t,JSON.stringify({value:n,expires:i}))}}const sm=new o2,r2=["aria-controls","aria-selected","href","onClick","innerHTML"],i2=Me({__name:"Tabs",props:{cacheLifetime:{type:Number,default:5},options:{type:Object,required:!1,default:()=>({useUrlFragment:!0,defaultTabHash:null})},wrapperClass:{type:[String,Object,Array],default:"tabs-component"},panelsWrapperClass:{type:[String,Object,Array],default:"tabs-component-panels"},navClass:{type:[String,Object,Array],default:"tabs-component-tabs"},navItemClass:{type:[String,Object,Array],default:"tabs-component-tab"},navItemDisabledClass:{type:[String,Object,Array],default:"is-disabled"},navItemActiveClass:{type:[String,Object,Array],default:"is-active"},navItemInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkClass:{type:[String,Object,Array],default:"tabs-component-tab-a"},navItemLinkActiveClass:{type:[String,Object,Array],default:"is-active"},navItemLinkInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkDisabledClass:{type:[String,Object,Array],default:"is-disabled"}},emits:["changed","clicked"],setup(e,{expose:t,emit:n}){const o=e,r=ln({activeTabHash:"",lastActiveTabHash:"",tabs:[]});ur(im,r),ur(nm,a=>{r.tabs.push(a)}),ur(om,(a,f)=>{const u=r.tabs.findIndex(d=>d.computedId===a);f.isActive=r.tabs[u].isActive,r.tabs[u]=f}),ur(rm,a=>{const f=r.tabs.findIndex(u=>u.computedId===a);r.tabs.splice(f,1)});const i=(a,f)=>{f&&!o.options.useUrlFragment&&f.preventDefault();const u=s(a);if(!u)return;if(f&&u.isDisabled){f.preventDefault();return}if(r.lastActiveTabHash===u.hash){n("clicked",{tab:u});return}if(r.tabs.forEach(p=>{p.isActive=p.hash===u.hash}),n("changed",{tab:u}),r.lastActiveTabHash=r.activeTabHash=u.hash,o.cacheLifetime<=0)return;const d=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`;sm.set(d,u.hash,o.cacheLifetime)},s=a=>r.tabs.find(f=>f.hash===a);return hn(()=>{if(r.tabs.length){if(window.addEventListener("hashchange",()=>i(window.location.hash)),s(window.location.hash)){i(window.location.hash);return}if(o.cacheLifetime>0){const a=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`,f=sm.get(a);if(f!==null&&s(f)){i(f);return}if(o.options.defaultTabHash&&s("#"+o.options.defaultTabHash)){i("#"+o.options.defaultTabHash);return}}i(r.tabs[0].hash)}}),t({...Xy(r),selectTab:i,findTab:s}),(a,f)=>(ae(),he("div",{class:at(e.wrapperClass)},[b("ul",{role:"tablist",class:at(e.navClass)},[(ae(!0),he(Ze,null,Bt(r.tabs,(u,d)=>{var p,g;return ae(),he("li",{key:d,class:at([(p=u.navItemClass)!=null?p:e.navItemClass,u.isDisabled?e.navItemDisabledClass:"",u.isActive?e.navItemActiveClass:u.isDisabled?"":e.navItemInactiveClass]),role:"presentation"},[b("a",{role:"tab",class:at([(g=u.navItemLinkClass)!=null?g:e.navItemLinkClass,u.isDisabled?e.navItemLinkDisabledClass:"",u.isActive?e.navItemLinkActiveClass:u.isDisabled?"":e.navItemLinkInactiveClass]),"aria-controls":u.paneId,"aria-selected":u.isActive,href:u.hash,onClick:x=>i(u.hash,x),innerHTML:u.header,tabindex:"0"},null,10,r2)],2)}),128))],2),b("div",{class:at(e.panelsWrapperClass)},[Sn(a.$slots,"default")],2)],2))}}),s2={class:"ce-config ce-basic-config"},a2={class:"pure-form pure-form-aligned"},l2={class:"pure-control-group"},c2=b("label",{for:"basic_hideWatermark"},"隐藏水印",-1),u2={class:"pure-control-group"},f2=b("label",{for:"basic_hideSidebar"},"隐藏侧边栏",-1),d2=Me({__name:"Config",async setup(e){let t,n;const o=pe(([t,n]=ao(()=>ac()),t=await t,n(),t));return pn(async()=>{}),nt(o,Qo(async r=>{await Fk(r),Ae({icon:"success",title:"设置已保存,刷新页面生效。",timer:800,position:"top-end"})},500),{deep:!0}),(r,i)=>(ae(),he("div",s2,[b("form",a2,[b("fieldset",null,[b("div",l2,[c2,ge(b("input",{id:"basic_hideWatermark",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=s=>o.value.hideWatermark=s)},null,512),[[He,o.value.hideWatermark]])]),b("div",u2,[f2,ge(b("input",{id:"basic_hideSidebar",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=s=>o.value.hideSidebar=s)},null,512),[[He,o.value.hideSidebar]])])])])]))}}),p2={class:"menu-config-block"},h2={class:"pure-form pure-form-stacked"},m2=b("legend",null,"全局设置",-1),g2={class:"pure-control-group"},b2=b("label",{for:"basic_enabled"},"启用",-1),y2={class:"pure-control-group"},w2=b("label",{for:"basic_hideSelectionMenuLabel"},"隐藏顶部菜单文本",-1),v2=Me({__name:"BasicConfig",props:{config:null},setup(e,{emit:t}){const n=e;return(o,r)=>(ae(),he("div",p2,[b("form",h2,[b("fieldset",null,[m2,b("div",g2,[b2,ge(b("input",{id:"basic_enabled",type:"checkbox","onUpdate:modelValue":r[0]||(r[0]=i=>n.config.enabled=i)},null,512),[[He,n.config.enabled]])]),b("div",y2,[w2,ge(b("input",{id:"basic_hideSelectionMenuLabel",type:"checkbox","onUpdate:modelValue":r[1]||(r[1]=i=>n.config.hideSelectionMenuLabel=i)},null,512),[[He,n.config.hideSelectionMenuLabel]])])])])]))}}),_2={class:"menu-config-block"},k2={class:"pure-form pure-form-stacked"},$2=b("label",{for:"listItemHover_enabled"},"启用",-1),x2=b("label",{for:"listItemHover_openInNewTab"},"新标签页打开",-1),E2=b("label",{for:"listItemHover_search",class:"text-primary"},"搜索",-1),C2=b("label",{for:"listItemHover_play",class:"text-primary"},"播放",-1),S2=b("label",{for:"listItemHover_copyFileName"},"复制文件名",-1),O2=Me({__name:"ListItemHoverConfig",props:{config:null},setup(e){return(t,n)=>(ae(),he("div",_2,[b("form",k2,[b("fieldset",null,[b("legend",null,Ne(qe(Tr).listItemHover),1),b("div",null,[$2,ge(b("input",{id:"listItemHover_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[He,e.config.enabled]])]),b("div",null,[x2,ge(b("input",{id:"listItemHover_openInNewTab",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.openInNewTab=o)},null,512),[[He,e.config.openInNewTab]])]),b("div",null,[E2,ge(b("input",{id:"listItemHover_search",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.search=o)},null,512),[[He,e.config.search]])]),b("div",null,[C2,ge(b("input",{id:"listItemHover_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[He,e.config.play]])]),b("div",null,[S2,ge(b("input",{id:"listItemHover_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[He,e.config.copyNames]])])])])]))}}),N2={class:"menu-config-block"},A2={class:"pure-form pure-form-stacked"},I2=b("label",{for:"listItemContext_enabled"},"启用",-1),P2=b("label",{for:"listItemContext_copyFileName"},"复制文件名",-1),T2=Me({__name:"ListItemContextConfig",props:{config:null},setup(e){return(t,n)=>(ae(),he("div",N2,[b("form",A2,[b("fieldset",null,[b("legend",null,Ne(qe(Tr).listItemContext),1),b("div",null,[I2,ge(b("input",{id:"listItemContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[He,e.config.enabled]])]),b("div",null,[P2,ge(b("input",{id:"listItemContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.copyNames=o)},null,512),[[He,e.config.copyNames]])])])])]))}}),L2={class:"menu-config-block"},D2={class:"pure-form pure-form-stacked"},M2=b("label",{for:"selection_enabled"},"启用",-1),j2=b("label",{for:"selection_moveToSelfNameDir"},"移动到同名目录",-1),R2=b("label",{for:"selection_copyFileName"},"复制文件名",-1),V2=Me({__name:"SelectionConfig",props:{config:null},setup(e){return(t,n)=>(ae(),he("div",L2,[b("form",D2,[b("fieldset",null,[b("legend",null,Ne(qe(Tr).selection),1),b("div",null,[M2,ge(b("input",{id:"selection_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[He,e.config.enabled]])]),b("div",null,[j2,ge(b("input",{id:"selection_moveToSelfNameDir",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.moveToSelfNameDir=o)},null,512),[[He,e.config.moveToSelfNameDir]])]),b("div",null,[R2,ge(b("input",{id:"selection_copyFileName",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.copyNames=o)},null,512),[[He,e.config.copyNames]])])])])]))}}),B2={class:"menu-config-block"},F2={class:"pure-form pure-form-stacked"},U2=b("label",{for:"dirContext_enabled"},"启用",-1),H2=b("label",{for:"dirContext_rename"},"重命名",-1),z2=b("label",{for:"dirContext_delete"},"删除",-1),q2=b("label",{for:"dirContext_play"},"播放全部",-1),W2=b("label",{for:"dirContext_copyFileName"},"复制文件名",-1),K2=b("label",{for:"dirContext_move"},"移动",-1),G2=b("label",{for:"dirContext_copy"},"复制",-1),Y2=b("label",{for:"dirContext_copyTo"},"复制到",-1),Z2=b("label",{for:"dirContext_viewProperties"},"查看属性",-1),J2=Me({__name:"DirContextConfig",props:{config:null},setup(e){return(t,n)=>(ae(),he("div",B2,[b("form",F2,[b("fieldset",null,[b("legend",null,Ne(qe(Tr).dirContext),1),b("div",null,[U2,ge(b("input",{id:"dirContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[He,e.config.enabled]])]),b("div",null,[H2,ge(b("input",{id:"dirContext_rename",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.rename=o)},null,512),[[He,e.config.rename]])]),b("div",null,[z2,ge(b("input",{id:"dirContext_delete",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.delete=o)},null,512),[[He,e.config.delete]])]),b("div",null,[q2,ge(b("input",{id:"dirContext_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[He,e.config.play]])]),b("div",null,[W2,ge(b("input",{id:"dirContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[He,e.config.copyNames]])]),b("div",null,[K2,ge(b("input",{id:"dirContext_move",type:"checkbox","onUpdate:modelValue":n[5]||(n[5]=o=>e.config.move=o)},null,512),[[He,e.config.move]])]),b("div",null,[G2,ge(b("input",{id:"dirContext_copy",type:"checkbox","onUpdate:modelValue":n[6]||(n[6]=o=>e.config.copy=o)},null,512),[[He,e.config.copy]])]),b("div",null,[Y2,ge(b("input",{id:"dirContext_copyTo",type:"checkbox","onUpdate:modelValue":n[7]||(n[7]=o=>e.config.copyTo=o)},null,512),[[He,e.config.copyTo]])]),b("div",null,[Z2,ge(b("input",{id:"dirContext_viewProperties",type:"checkbox","onUpdate:modelValue":n[8]||(n[8]=o=>e.config.viewProp=o)},null,512),[[He,e.config.viewProp]])])])])]))}}),X2={key:0,class:"ce-menu-config"},Q2=b("div",{class:"ce-tips"},[b("p",null,"「搜索」功能菜单除了默认的几个搜索站点,还支持自定义,可通过「搜索菜单」设置界面进行设置。"),b("p",null,"「播放」功能菜单除了默认的几个播放器,还支持自定义,可通过「播放菜单」设置界面进行设置。")],-1),eS=Me({__name:"MenuConfig",async setup(e){let t,n;const o=pe(([t,n]=ao(()=>Gu()),t=await t,n(),t));return pe(!1),pn(async()=>{}),nt(o,Qo(async r=>{await Ub(r),Ae({icon:"success",title:"设置已保存,刷新页面生效。",timer:800,position:"top-end"})},500),{deep:!0}),(r,i)=>o.value.enabled!==void 0?(ae(),he("div",X2,[Q2,Ce(v2,{config:o.value},null,8,["config"]),Ce(O2,{config:o.value.listItemHover},null,8,["config"]),Ce(T2,{config:o.value.listItemContext},null,8,["config"]),Ce(V2,{config:o.value.selection},null,8,["config"]),Ce(J2,{config:o.value.dirContext},null,8,["config"])])):dt("",!0)}}),PI="",tS={class:"pure-form pure-form-aligned"},nS=["disabled"],oS={class:"pure-control-group"},rS=b("label",null,"地址",-1),iS={class:"pure-control-group"},sS=b("label",null,"资源根路径",-1),aS={class:"pure-control-group"},lS=b("label",null,"备注",-1),cS=Me({__name:"ConfigItem",props:{config:null},emits:["change","delete","activate"],setup(e,{emit:t}){const n=e;pn(async()=>{});function o(){n.config.active=!0,t("activate",n.config)}function r(){t("delete")}return nt(n.config,Qo(async i=>{t("change",i)},500),{deep:!0}),(i,s)=>(ae(),he("div",{class:at(["ce-clouddrive-config-item",{active:e.config.active}])},[b("form",tS,[b("fieldset",null,[b("legend",null,[b("button",{type:"button",class:"pure-button pure-button-primary button-small",onClick:o,disabled:e.config.active},Ne(e.config.active?"当前使用该配置":"使用该配置"),9,nS),b("button",{type:"button",class:"pure-button button-error button-small",onClick:r}," 删除 ")]),b("div",oS,[rS,ge(b("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>e.config.url=a),placeholder:"CloudDrive服务地址,如「http://localhost:19798」",class:"pure-input-2-3"},null,512),[[ct,e.config.url]])]),b("div",iS,[sS,ge(b("input",{"onUpdate:modelValue":s[1]||(s[1]=a=>e.config.root=a),placeholder:"即当前115账号在CloudDrive中的资源名称,如「115」",class:"pure-input-2-3"},null,512),[[ct,e.config.root]])]),b("div",aS,[lS,ge(b("input",{"onUpdate:modelValue":s[2]||(s[2]=a=>e.config.memo=a),placeholder:"备注信息",class:"pure-input-2-3"},null,512),[[ct,e.config.memo]])])])])],2))}}),TI="",uS={class:"ce-config ce-clouddrive-config"},fS={class:"ce-list"},dS={class:"ce-actions"},pS=["disabled"],hS=Me({__name:"Config",async setup(e){let t,n;const o=pe(([t,n]=ao(()=>su()),t=await t,n(),t));pn(async()=>{});async function r(){await au(o.value),Ae({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}async function i(){o.value.push(Sa())}async function s(f,u){const{isConfirmed:d}=await Te.fire({icon:"warning",html:`确定要删除第 ${u+1} 个配置「${f.url}」吗?`});!d||(o.value.splice(u,1),await r(),Ae({icon:"success",title:`「${f.url}」已删除!`}))}async function a(f,u){f.forEach((d,p)=>{d.active=p===u}),await au(f),Ae({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}return(f,u)=>(ae(),he("div",uS,[b("div",fS,[(ae(!0),he(Ze,null,Bt(o.value,(d,p)=>(ae(),Ut(cS,{key:p,config:d,index:p,onDelete:g=>s(d,p),onActivate:g=>a(o.value,p)},null,8,["config","index","onDelete","onActivate"]))),128))]),b("div",dS,[b("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:r,disabled:!o.value.length}," 保存配置 ",8,pS),_e("      "),b("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:i}," 添加配置 ")])]))}}),am=function(){return document.ontouchstart!==null?"click":"touchstart"},va="__vue_click_away__",lm=function(e,t,n){cm(e);let o=n.context,r=t.value,i=!1;setTimeout(function(){i=!0},0),e[va]=function(s){if((!e||!e.contains(s.target))&&r&&i&&typeof r=="function")return r.call(o,s)},document.addEventListener(am(),e[va],!1)},cm=function(e){document.removeEventListener(am(),e[va],!1),delete e[va]},mS={mounted:lm,updated:function(e,t,n){t.value!==t.oldValue&&lm(e,t,n)},unmounted:cm},gS=Me({__name:"Drawer",props:{isOpen:{type:Boolean,required:!1,default:!1},maxWidth:{type:String,required:!1,default:"600px"},speed:{type:Number,required:!1,default:100},backgroundColor:{type:String,required:!1,default:"#fafafa"}},emits:["close"],setup(e,{emit:t}){const n=e,o=pe(!1),r=pe(!1),i=a=>{const f=document.querySelector("body");f.style.overflow=a?"hidden":""},s=a=>{!a.target.classList.contains("ce-drawer__overlay")||r.value||t("close")};return hn(()=>{o.value=n.isOpen}),nt(()=>n.isOpen,a=>{r.value=!0,a?(i(!0),o.value=!0):(i(!1),setTimeout(()=>o.value=!1,n.speed)),setTimeout(()=>r.value=!1,n.speed)}),(a,f)=>(ae(),he("div",null,[b("div",{class:at(["ce-drawer",{"is-open":e.isOpen,"is-visible":o.value}])},[b("div",{class:"ce-drawer__overlay",style:_n({transitionDuration:`${e.speed}ms`})},null,4),ge((ae(),he("div",{class:"ce-drawer__content",style:_n({maxWidth:e.maxWidth,transitionDuration:`${e.speed}ms`,backgroundColor:e.backgroundColor})},[Sn(a.$slots,"default")],4)),[[qe(mS),s]])],2)]))}}),DI="",bS={class:"ce-custom-url"},yS={class:"pure-form pure-form-aligned"},wS={class:"ce-custom-url-index"},vS={class:"pure-control-group"},_S=b("label",null,"启用",-1),kS={class:"pure-control-group"},$S=b("label",null,"唯一标识",-1),xS={class:"pure-control-group"},ES=b("label",null,"显示名称",-1),CS={class:"pure-control-group"},SS=b("label",null,"图标",-1),OS={class:"pure-control-group"},NS={class:"pure-control-group"},AS=b("label",null,"后台打开",-1),IS={class:"pure-control-group"},PS=b("label",null,"备注",-1),TS={key:0,class:"pure-control-group"},LS=b("label",null,"Mutation",-1),um=Me({__name:"CustomUrl",props:{item:null,index:null},emits:["delete"],setup(e,{emit:t}){const n=pe(!0);function o(){t("delete")}function r(){n.value=!n.value,n.value&&Ae({title:"已开启高级模式",text:"请谨慎修改,不正确的代码可能会导致脚本崩溃。",icon:"info",timer:2e3})}async function i(){window.postMessage({event:"customUrlHelp"},"*")}async function s(){const a=`
  <div style="text-align:left;">
    <p>自定义代码,用于生成最终的链接。</p><br>
    <p>代码会被包含在一个async匿名函数中执行,最终应该返回一个链接字符串。</p>
    <p>传入的参数名为「payload」,其结构如下:</p>
    <p>- url: 之前自动处理得到的链接</p>
    <p>- file:当前文件信息</p>
    <p>- customUrl:当前自定义规则信息</p>
    <p>- cloudDriveConfig:CloudDrive设置信息</p><br>
    <p>示例:</p>
    <pre style="text-align:left;font-size:12px;">
    const {
      url,
      file,
      customUrl,
      cloudDriveConfig
    } = payload
    const sth = await fetch(\`https://api.sth.com/foo?bar=\${file.pc}\`)
    return \`https://example.com/do?key=\${sth}\`
    </pre>
  </div>
  `;await Te.fire({title:"Mutation 说明",html:a,width:480,position:"top-start",backdrop:!1})}return(a,f)=>(ae(),he("div",bS,[b("form",yS,[b("fieldset",null,[b("legend",null,[b("span",wS,"# "+Ne(e.index+1),1),b("button",{type:"button",class:"pure-button button-error button-small",onClick:o}," 删除 ")]),b("div",vS,[_S,ge(b("input",{"onUpdate:modelValue":f[0]||(f[0]=u=>e.item.enabled=u),type:"checkbox",id:"customUrl_enabled"},null,512),[[He,e.item.enabled]])]),b("div",kS,[$S,ge(b("input",{"onUpdate:modelValue":f[1]||(f[1]=u=>e.item.key=u),id:"customUrl_key",class:"pure-input-2-3",placeholder:"英文、数字或下划线"},null,512),[[ct,e.item.key]])]),b("div",xS,[ES,ge(b("input",{"onUpdate:modelValue":f[2]||(f[2]=u=>e.item.label=u),id:"customUrl_label",class:"pure-input-2-3",placeholder:"菜单文本,尽量简洁"},null,512),[[ct,e.item.label]])]),b("div",CS,[SS,ge(b("input",{"onUpdate:modelValue":f[3]||(f[3]=u=>e.item.icon=u),id:"customUrl_icon",class:"pure-input-2-3",placeholder:"图标class、图片链接或图片data:image"},null,512),[[ct,e.item.icon]])]),b("div",OS,[b("label",{onDblclick:r}," 链接 ",32),ge(b("textarea",{"onUpdate:modelValue":f[4]||(f[4]=u=>e.item.url=u),id:"customUrl_url",class:"pure-input-2-3",placeholder:"链接地址,支持变量,变量列表请点击右侧「查看变量」"},null,512),[[ct,e.item.url]]),_e("   "),b("a",{href:"javascript:void(0)",class:"text-primary",onClick:i},"查看变量")]),b("div",NS,[AS,ge(b("input",{"onUpdate:modelValue":f[5]||(f[5]=u=>e.item.openInBackground=u),id:"customUrl_openInBackground",type:"checkbox"},null,512),[[He,e.item.openInBackground]])]),b("div",IS,[PS,ge(b("input",{"onUpdate:modelValue":f[6]||(f[6]=u=>e.item.memo=u),id:"customUrl_memo",class:"pure-input-2-3"},null,512),[[ct,e.item.memo]])]),n.value?(ae(),he("div",TS,[LS,ge(b("textarea",{"onUpdate:modelValue":f[7]||(f[7]=u=>e.item.mutation=u),id:"customUrl_mutation",class:"pure-input-2-3",placeholder:"自定义代码生成最终链接,具体请看右侧「查看说明」"},null,512),[[ct,e.item.mutation]]),_e("   "),b("a",{href:"javascript:void(0)",class:"text-primary",onClick:s},"查看说明")])):dt("",!0)])])]))}}),MI="",DS={class:"ce-config ce-search-urls ce-custom-urls"},MS={class:"ce-menu-urls-builtin"},jS={class:"pure-form pure-form-aligned"},RS=["for"],VS=["id","onUpdate:modelValue"],BS={class:"text-info"},FS={class:"ce-custom-urls-list"},US={class:"ce-custom-urls-actions"},HS=["disabled"],zS=Me({__name:"SearchUrls",async setup(e){let t,n;const o=pe(([t,n]=ao(()=>Ud()),t=await t,n(),t)),r=pe(([t,n]=ao(()=>Yi($o.search)),t=await t,n(),t));pn(async()=>{}),nt(o,Qo(async u=>{const d=[];u.forEach(p=>{p.enabled&&d.push(p.key)}),await L0(d),Ae({icon:"success",title:"预置搜索菜单设置已保存,刷新页面生效。",timer:800,position:"top-end"})},500),{deep:!0});async function i(){const u=[];for(const d of r.value){if(!await s(d,u.length))return;if(u.includes(d.key)){Ae({icon:"error",title:`第 ${u.length+1} 个记录的「唯一标识: ${d.key}」重复!`});return}u.push(d.key)}await Wu($o.search,r.value),Ae({icon:"success",title:"保存成功!"})}async function s(u,d){const p=/^\w+$/;return u.key=u.key.trim(),p.test(u.key)?(u.label=u.label.trim(),u.label===""?(Ae({icon:"error",title:`第 ${d+1} 个记录的「显示名称」不能为空!`}),!1):(u.url=u.url.trim(),u.url===""?(Ae({icon:"error",title:`第 ${d+1} 个记录的「链接」不能为空!`}),!1):(u.icon=u.icon.trim(),u.memo=u.memo.trim(),!0))):(Ae({icon:"error",title:`第 ${d+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function a(){r.value.push(Lt())}async function f(u,d){const{isConfirmed:p}=await Te.fire({icon:"warning",html:`确定要删除第 ${d+1} 个记录「${u.label}」吗?`});!p||(r.value.splice(d,1),await i(),Ae({icon:"success",title:`「${u.label}」已删除!`}))}return(u,d)=>(ae(),he("div",DS,[b("h1",null,[_e("预置搜索菜单 "),ge(b("small",null,"( "+Ne(o.value.length)+" )",513),[[In,o.value.length]])]),b("div",MS,[b("form",jS,[b("fieldset",null,[(ae(!0),he(Ze,null,Bt(o.value,(p,g)=>(ae(),he("div",{key:g,class:"pure-control-group"},[b("label",{for:`builtin_${p.key}`},Ne(p.label),9,RS),ge(b("input",{id:`builtin_${p.key}`,type:"checkbox","onUpdate:modelValue":x=>p.enabled=x},null,8,VS),[[He,p.enabled]]),_e("      "),b("span",BS,Ne(p.memo),1)]))),128))])])]),b("h1",null,[_e("自定义搜索菜单 "),ge(b("small",null,"( "+Ne(r.value.length)+" )",513),[[In,r.value.length]])]),b("div",FS,[(ae(!0),he(Ze,null,Bt(r.value,(p,g)=>(ae(),Ut(um,{key:g,item:p,index:g,onDelete:x=>f(p,g)},null,8,["item","index","onDelete"]))),128))]),b("div",US,[b("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!r.value.length}," 保存自定义搜索菜单 ",8,HS),_e("      "),b("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:a}," 添加自定义搜索菜单 ")])]))}}),jI="",qS={class:"ce-config ce-play-urls ce-custom-urls"},WS={class:"ce-menu-urls-builtin"},KS={class:"pure-form pure-form-aligned"},GS=["for"],YS=["id","onUpdate:modelValue"],ZS={class:"text-info"},JS={class:"ce-custom-urls-list"},XS={class:"ce-custom-urls-actions"},QS=["disabled"],eO=Me({__name:"PlayUrls",async setup(e){let t,n;const o=pe(([t,n]=ao(()=>Hd()),t=await t,n(),t)),r=pe(([t,n]=ao(()=>Yi($o.play)),t=await t,n(),t));pn(async()=>{}),nt(o,Qo(async u=>{const d=[];u.forEach(p=>{p.enabled&&d.push(p.key)}),await D0(d),Ae({icon:"success",title:"预置搜索菜单设置已保存,刷新页面生效。",timer:800,position:"top-end"})},500),{deep:!0});async function i(){const u=[];for(const d of r.value){if(!await s(d,u.length))return;if(u.includes(d.key)){Ae({icon:"error",title:`第 ${u.length+1} 个记录的「唯一标识: ${d.key}」重复!`});return}u.push(d.key)}await Wu($o.play,r.value),Ae({icon:"success",title:"保存成功!"})}async function s(u,d){const p=/^\w+$/;return u.key=u.key.trim(),p.test(u.key)?(u.label=u.label.trim(),u.label===""?(Ae({icon:"error",title:`第 ${d+1} 个记录的「显示名称」不能为空!`}),!1):(u.url=u.url.trim(),u.url===""?(Ae({icon:"error",title:`第 ${d+1} 个记录的「链接」不能为空!`}),!1):(u.icon=u.icon.trim(),u.memo=u.memo.trim(),!0))):(Ae({icon:"error",title:`第 ${d+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function a(){r.value.push(Lt())}async function f(u,d){const{isConfirmed:p}=await Te.fire({icon:"warning",html:`确定要删除第 ${d+1} 个记录「${u.label}」吗?`});!p||(r.value.splice(d,1),await i(),Ae({icon:"success",title:`「${u.label}」已删除!`}))}return(u,d)=>(ae(),he("div",qS,[b("h1",null,[_e("预置播放菜单 "),ge(b("small",null,"( "+Ne(o.value.length)+" )",513),[[In,o.value.length]])]),b("div",WS,[b("form",KS,[b("fieldset",null,[(ae(!0),he(Ze,null,Bt(o.value,(p,g)=>(ae(),he("div",{key:g,class:"pure-control-group"},[b("label",{for:`builtin_${p.key}`},Ne(p.label),9,GS),ge(b("input",{id:`builtin_${p.key}`,type:"checkbox","onUpdate:modelValue":x=>p.enabled=x},null,8,YS),[[He,p.enabled]]),_e("      "),b("span",ZS,Ne(p.memo),1)]))),128))])])]),b("h1",null,[_e("自定义播放菜单 "),ge(b("small",null,"( "+Ne(r.value.length)+" )",513),[[In,r.value.length]])]),b("div",JS,[(ae(!0),he(Ze,null,Bt(r.value,(p,g)=>(ae(),Ut(um,{key:g,item:p,index:g,onDelete:x=>f(p,g)},null,8,["item","index","onDelete"]))),128))]),b("div",XS,[b("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!r.value.length}," 保存自定义播放菜单 ",8,QS),_e("      "),b("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:a}," 添加自定义播放菜单 ")])]))}}),RI="";var _a=(e=>(e.openConfig="openConfig",e))(_a||{});const tO={class:"ce-config-main"},nO=b("h1",null,"设置",-1),oO={class:"ce-config-main-body"},rO=Me({__name:"Config",setup(e){const t=pe(!1),n=pe(!1);hn(async()=>{window.addEventListener("message",a=>{const{event:f}=a.data;f===_a.openConfig&&(t.value||(t.value=!0),o())},!1)});async function o(){n.value=!0}async function r(){n.value=!1}async function i(...a){console.log("[tabClicked]",a)}async function s(...a){console.log("[tabChanged]",a)}return(a,f)=>(ae(),Ut(qf,null,{default:Ke(()=>[b("div",tO,[Ce(gS,{"is-open":n.value,onClose:r,"max-width":"980px",speed:500},{default:Ke(()=>[b("div",{class:"ce-config-main-header"},[nO,b("div",{class:"ce-config-main-close",onClick:r},"关闭")]),b("div",oO,[Ce(qe(i2),{options:{useUrlFragment:!1},onClicked:i,onChanged:s},{default:Ke(()=>[Ce(qe(Cr),{name:"基础设置"},{default:Ke(()=>[Ce(d2)]),_:1}),Ce(qe(Cr),{name:"CloudDrive"},{default:Ke(()=>[Ce(hS)]),_:1}),Ce(qe(Cr),{name:"菜单设置"},{default:Ke(()=>[Ce(eS)]),_:1}),Ce(qe(Cr),{name:"搜索菜单"},{default:Ke(()=>[Ce(zS)]),_:1}),Ce(qe(Cr),{name:"播放菜单"},{default:Ke(()=>[Ce(eO)]),_:1}),Ce(qe(Cr),{name:"离线任务增强"},{default:Ke(()=>[Ce(Xd)]),_:1})]),_:1})])]),_:1},8,["is-open"])])]),_:1}))}}),VI="";async function iO(){const{host:e,search:t}=location;!e.includes("115.com")||(console.log("[Cloud115 Enhancer - main] running..."),sO(),aO())}async function sO(){console.log("[Cloud115 Enhancer - main] injectUI");const e="cloud115ConfigMain",t=document.createElement("div");t.id=e,document.body.appendChild(t),Vo(rO).mount(`#${e}`),Jc("设置",async()=>{window.postMessage({event:_a.openConfig})})}async function aO(){const e=document.querySelector(".sub-footer ul");if(!e)return;const t=document.createElement("li"),n=document.createElement("a");n.href="javascript:;",n.addEventListener("click",lO),n.title="打开「115不大助手」设置",n.innerHTML='<i class="isn-setting"></i><span>不大助手</span>',t.appendChild(n),e.insertBefore(t,e.firstChild)}async function lO(){window.postMessage({event:_a.openConfig})}location.host==="115.com"&&(window.COMMONHEADERUSERINFO=window.COMMONHEADERUSERINFO||{}),(async()=>(console.log("Cloud115 Enhancer launched!"),z0(),zk(),w$(),QC(),t2(),iO()))()})();