diff --git a/backend/static/assets/index-CPHlHtC0.css b/backend/static/assets/index-CPHlHtC0.css new file mode 100644 index 0000000..7ff8736 --- /dev/null +++ b/backend/static/assets/index-CPHlHtC0.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */ +@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components,utilities;:root{color:#2d2924;--accent:#f15a29;--accent-soft:#fbe6dc;--paper:#fffdf8;--sidebar:#f6f0e4;--line:#e7ddcc;--muted:#8b8275;--danger:#bd3827;--shadow:0 12px 36px #4e3a221a;background:#f8f3e8;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Noto Sans CJK SC,sans-serif}*{box-sizing:border-box}body{background:#f8f3e8;margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}svg{stroke-width:1.8px;width:18px;height:18px}.center,.auth-shell{place-items:center;min-height:100vh;display:grid}.center{color:var(--muted);align-content:center;gap:12px}.loader{border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:24px;height:24px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.auth-shell{background:radial-gradient(circle at 20% 10%,#ffe3d5 0,#0000 28%),linear-gradient(135deg,#f8f3e8,#fffaf0)}.auth-card{background:var(--paper);border:1px solid var(--line);width:min(390px,90vw);box-shadow:var(--shadow);border-radius:14px;gap:16px;padding:38px;display:grid}.brand{letter-spacing:-3px;font-size:40px;font-weight:850}.brand span{color:var(--accent)}.brand.small{font-size:29px}.auth-card p{color:var(--muted);margin:0 0 8px}.auth-card label,.detail-form>label{color:#756d61;gap:7px;font-size:12px;font-weight:650;display:grid}.auth-card input,.detail-form input,.detail-form select{border:1px solid var(--line);background:#fff;border-radius:9px;outline:none;width:100%;padding:11px}.auth-card input:focus,.detail-form input:focus,.detail-form select:focus,.detail-form textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #f15a291a}.primary{background:var(--accent);color:#fff;border:0;border-radius:9px;padding:12px;font-weight:700;box-shadow:0 5px 12px #f15a2933}.auth-card small{color:var(--danger)}.shell{background:var(--paper);grid-template-columns:238px minmax(430px,1fr) 350px;height:100vh;display:grid;overflow:hidden}.sidebar{border-right:1px solid var(--line);background:var(--sidebar);flex-direction:column;min-height:0;display:flex}.brand-row{justify-content:space-between;align-items:center;height:76px;padding:0 20px;display:flex}.primary-nav{gap:3px;padding:4px 12px 12px;display:grid}.primary-nav button,.settings{color:#665e52;text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:10px;padding:10px 12px;display:flex}.primary-nav button:hover,.list-row:hover,.folder-row>button:hover{background:#ffffff85}.primary-nav button.active,.list-row.active{background:var(--accent-soft);color:#b7421e;font-weight:700}.section-title{color:#958b7d;text-transform:uppercase;letter-spacing:.08em;justify-content:space-between;align-items:center;padding:17px 17px 7px 22px;font-size:11px;font-weight:750;display:flex}.section-title>span:last-child{display:flex}.mini-icon,.row-actions button{color:#8e8477;background:0 0;border:0;padding:4px}.mini-icon svg,.row-actions svg{width:14px;height:14px}.folders{padding:0 10px;overflow:auto}.folder-row{align-items:center;display:flex}.folder-row>button{color:#6d6559;text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:7px;min-width:0;padding:8px;display:flex}.folder-row>button svg{width:14px}.row-actions{opacity:0;transition:opacity .15s;display:flex}.folder-row:hover .row-actions,.list-row:hover .row-actions{opacity:1}.list-row{text-align:left;color:#665f55;background:0 0;border:0;border-radius:8px;align-items:center;gap:9px;width:100%;padding:8px 7px 8px 31px;display:flex}.list-row>span:nth-child(2){white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.list-row i{background:#d89b62;border-radius:3px;width:8px;height:8px}.settings{margin:auto 12px 14px}.mobile-only,.bottom,.fab{display:none}main{background:linear-gradient(#fffdf8eb,#fffdf8eb),repeating-linear-gradient(0deg,#0000,#0000 31px,#eee3d2 32px);min-width:0;padding:27px 34px 50px;overflow:auto}.topbar{align-items:center;gap:14px;display:flex}.topbar>div{flex:1}.topbar p{color:var(--muted);margin:0;font-size:12px}.topbar h1{letter-spacing:-.03em;margin:3px 0 21px;font-size:27px}.search{border:1px solid var(--line);width:min(260px,36%);color:var(--muted);background:#faf7f0;border-radius:9px;align-items:center;gap:8px;margin-bottom:18px;padding:8px 10px;display:flex}.search input{background:0 0;border:0;outline:0;width:100%;min-width:0}.search kbd{white-space:nowrap;border:1px solid var(--line);border-radius:4px;padding:2px 4px;font-size:10px}.quick{border:1px solid var(--line);background:#fff;border-radius:11px;align-items:center;gap:10px;padding:7px 7px 7px 13px;transition:all .18s;display:flex;box-shadow:0 2px 10px #513d260d}.quick:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #f15a2917}.quick>svg{color:var(--accent)}.quick input{background:0 0;border:0;outline:0;flex:1;min-width:0}.quick button{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:8px 15px;font-weight:650}.list-toolbar{height:42px;color:var(--muted);align-items:center;gap:14px;font-size:12px;display:flex}.list-toolbar label{margin-right:auto}.link{color:var(--accent);background:0 0;border:0;align-items:center;gap:3px;padding:3px;display:inline-flex}.link svg{width:14px}.task-list{transition:opacity .2s}.task-list.loading{opacity:.45}.task-row{border-bottom:1px solid var(--line);align-items:center;gap:10px;min-height:53px;padding:4px 8px;transition:background .15s,transform .15s;display:flex}.task-row.swipeable{touch-action:pan-y}.task-row:hover,.task-row.selected{background:#faf0e5bf}.task-row:hover{transform:translate(2px)}.check{background:#fff;border:1.6px solid #c6baa8;border-radius:5px;flex:0 0 19px;place-items:center;width:19px;height:19px;padding:0;display:grid}.check svg{width:13px}.check.p1{border-color:#4b93d1}.check.p2{border-color:#d79b25}.check.p3{border-color:#dc4b30}.done .check{color:#fff;background:#afa595}.task-main{text-align:left;background:0 0;border:0;flex:1;min-width:0;padding:8px 0}.task-main strong{white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:590;display:block;overflow:hidden}.done .task-main strong{color:#9b9388;text-decoration:line-through}.task-swipe-hint{color:#9a8f80;background:#f3ede3;border-radius:999px;flex:none;padding:6px 10px;font-size:11px;font-weight:700}.task-row.done .task-swipe-hint{background:var(--accent-soft);color:#b7421e}.meta{color:#9b9286;align-items:center;gap:9px;margin-top:3px;font-size:11px;display:flex}.meta span{align-items:center;gap:3px;display:flex}.meta svg{width:12px}.tag-dot{border-radius:50%;width:7px;height:7px}.priority{border-radius:5px;padding:3px 6px;font-size:10px;font-weight:750}.priority.p1{color:#3f80ba;background:#e5f2fc}.priority.p2{color:#a56b05;background:#fff1cb}.priority.p3{color:#bd3827;background:#fde2dc}.icon,.ghost{background:0 0;border:0;border-radius:6px;place-items:center;padding:5px;display:grid}.ghost{opacity:0;color:#9d9387}.task-row:hover .ghost{opacity:1}.ghost:hover{color:var(--danger);background:#fce7e2}.restore{border:1px solid var(--line);background:#fff;border-radius:7px;align-items:center;gap:5px;padding:6px 8px;font-size:12px;display:flex}.restore svg{width:14px}.subtask{color:#6d655b;min-height:42px;padding-left:53px}.subtask>svg{color:#bbb0a2;width:13px}.empty{color:#aaa094;text-align:center;align-content:center;place-items:center;gap:8px;min-height:300px;display:grid}.empty>svg{color:#d8cabb;width:38px;height:38px}.empty b{color:#6f675c}.empty span{font-size:13px}.detail{border-left:1px solid var(--line);background:#faf7f0;min-width:0;overflow:auto}.detail-head{border-bottom:1px solid var(--line);color:#80766a;text-transform:uppercase;letter-spacing:.08em;justify-content:space-between;align-items:center;height:57px;padding:0 21px;font-size:12px;font-weight:700;display:flex}.paper{border:1px solid var(--line);text-align:center;color:#8f8578;background:#fff;border-radius:11px;align-content:center;place-items:center;min-height:180px;margin:22px;padding:28px 20px;display:grid;box-shadow:0 4px 18px #4c39220d}.paper svg{color:#ceb8a4;width:32px;height:32px;margin-bottom:12px}.paper b{color:#625b50}.paper p{font-size:13px;line-height:1.6}.detail-form{gap:15px;padding:19px;display:grid}.detail-title{align-items:flex-start;gap:10px;display:flex}.check.large{flex-basis:22px;width:22px;height:22px;margin-top:8px}.detail-title textarea{resize:none;background:0 0;border:0;outline:none;flex:1;font-size:19px;font-weight:700;line-height:1.4}.detail-form>label{grid-template-columns:80px 1fr;align-items:center}.detail-form>label input,.detail-form>label select{padding:8px}.field{gap:7px;display:grid}.field-label{color:#756d61;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;display:flex}.tag-picker{flex-wrap:wrap;gap:6px;display:flex}.tag-picker button{border:1px solid var(--line);background:#fff;border-radius:999px;align-items:center;gap:5px;padding:5px 8px;font-size:11px;display:flex}.tag-picker button.chosen{background:#fff1e9;border-color:#c89077}.tag-picker i{border-radius:50%;width:8px;height:8px}.hint{color:#a49a8d;font-size:12px}.markdown .field-label>span:last-child{background:#eee7dc;border-radius:6px;padding:2px;display:flex}.markdown .field-label button{background:0 0;border:0;border-radius:5px;padding:4px 8px;font-size:11px}.markdown .field-label button.active{color:var(--accent);background:#fff}.markdown textarea{border:1px solid var(--line);resize:vertical;background:#fff;border-radius:9px;outline:none;padding:11px;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.markdown-preview{border:1px solid var(--line);overflow-wrap:anywhere;background:#fff;border-radius:9px;min-height:160px;padding:10px 12px;font-size:13px;line-height:1.65}.markdown-preview h1{font-size:20px}.markdown-preview h2{font-size:16px}.markdown-preview p{margin:8px 0}.markdown-preview code{background:#f2ece2;border-radius:4px;padding:2px 4px}.markdown-preview a{color:var(--accent)}.subtasks{gap:5px;display:grid}.subtask-detail{text-align:left;background:#fff;border:0;border-radius:7px;align-items:center;gap:8px;padding:8px;display:flex}.subtask-detail .check{pointer-events:none}.strike{color:var(--muted);text-decoration:line-through}.detail-actions{border-top:1px solid var(--line);justify-content:space-between;align-items:center;padding-top:10px;display:flex}.secondary{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 11px;font-weight:650}.danger-text{color:var(--danger);background:0 0;border:0;align-items:center;gap:5px;font-size:12px;display:flex}.danger-text svg{width:14px}.toast,.error-toast{z-index:50;color:#fff;box-shadow:var(--shadow);background:#322d28;border-radius:9px;padding:10px 15px;font-size:13px;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.error-toast{background:var(--danger);align-items:center;gap:10px;display:flex}.error-toast button{color:#fff;background:0 0;border:0;padding:0}.toast-enter-active,.toast-leave-active{transition:all .2s}.toast-enter-from,.toast-leave-to{opacity:0;transform:translate(-50%,8px)}@media (width<=1050px){.shell{grid-template-columns:220px minmax(400px,1fr) 310px}main{padding-inline:24px}}@media (width<=800px){.shell{height:100dvh;display:block;overflow:auto}.sidebar,.detail{z-index:30;box-shadow:var(--shadow);transition:transform .22s;display:flex;position:fixed;top:0;bottom:0}.sidebar{width:min(300px,86vw);left:0;transform:translate(-105%)}.sidebar.open{transform:none}.detail{width:min(430px,94vw);right:0;transform:translate(105%)}.detail.open{transform:none}.scrim{z-index:20;background:#2d261f42;position:fixed;inset:0}.mobile-only{display:grid}main{min-height:100dvh;padding:20px 17px 112px}.topbar h1{margin-bottom:17px;font-size:24px}.search{width:auto;margin-bottom:13px;padding:8px}.search input{width:90px}.search kbd,.quick button{display:none}.row-actions{opacity:1}.bottom{z-index:15;border-top:1px solid var(--line);padding:8px 5px max(8px,env(safe-area-inset-bottom));background:#fffdf8f5;justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -5px 18px #4f3b220f}.bottom button{color:#81786d;background:0 0;border:0;place-items:center;gap:2px;min-width:60px;font-size:10px;display:grid}.bottom button.active{color:var(--accent);font-weight:700}.bottom svg{width:20px}.fab{z-index:16;background:var(--accent);color:#fff;border:0;border-radius:50%;place-items:center;width:52px;height:52px;transition:transform .15s;display:grid;position:fixed;bottom:76px;right:18px;box-shadow:0 7px 20px #f15a2961}.fab:active{transform:scale(.94)}.toast,.error-toast{bottom:142px}.task-row{padding-inline:2px}.subtask{padding-left:35px}.ghost{opacity:.45}}.mvp-view{gap:16px;padding-bottom:36px;display:grid}.view-intro{border-bottom:1px dashed var(--line);justify-content:space-between;align-items:end;padding-bottom:12px;display:flex}.view-intro h2{margin:2px 0 0;font-size:22px}.view-intro small,.view-intro>span{color:var(--muted);font-size:12px}.tool-card,.empty-panel{border:1px solid var(--line);background:#fff;border-radius:12px;padding:16px;box-shadow:0 3px 14px #513d260d}.soft-button,.primary-small,.danger-button,.file-button{border:1px solid var(--line);background:#fff;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:8px 11px;font-size:12px;display:inline-flex}.soft-button svg,.file-button svg{width:15px}.primary-small{background:var(--accent);border-color:var(--accent);color:#fff}.danger-button{color:var(--danger);border-color:#e5b7ad}.habit-create{grid-template-columns:1fr 150px 90px auto;gap:8px;display:grid}.habit-create input,.habit-create select{border:1px solid var(--line);background:#fff;border-radius:8px;min-width:0;padding:9px}.habit-create button{background:var(--accent);color:#fff;border:0;border-radius:8px;align-items:center;gap:5px;padding:8px 13px;display:flex}.habit-list{gap:10px;display:grid}.tool-card h3{margin:0 0 4px}.habit-row{border:1px solid var(--line);background:#fff;border-radius:14px;align-items:center;gap:8px;padding:5px 5px 5px 12px;transition:border-color .15s,box-shadow .15s;display:flex;box-shadow:0 3px 14px #513d260d}.habit-row.done{border-color:var(--accent)}.habit-row.swipeable{touch-action:pan-y}.habit-main{text-align:left;background:0 0;border:0;border-radius:10px;flex:1;justify-content:space-between;align-items:center;gap:10px;min-width:0;padding:13px 4px;display:flex}.habit-name{color:#3c372f;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:700;overflow:hidden}.habit-main>span:first-child{gap:3px;display:grid}.habit-main small{color:var(--muted);font-size:11px}.habit-row.done .habit-name{color:var(--accent)}.habit-swipe-hint{color:#9a8f80;background:#f3ede3;border-radius:999px;flex:none;padding:6px 10px;font-size:11px;font-weight:700}.habit-row.done .habit-swipe-hint{background:var(--accent-soft);color:#b7421e}.habit-row .icon.ghost{color:#b3a795;margin-left:4px}.habit-row .icon.ghost:hover{color:var(--danger)}.numeric-habit>span:first-child{gap:3px;display:grid}.numeric-habit small{color:var(--muted);font-size:11px}.numeric-action{align-items:center;gap:6px;display:flex}.numeric-action input{border:1px solid var(--line);background:#fff;border-radius:8px;width:74px;padding:7px}.numeric-action .soft-button{min-height:44px;padding:9px 12px}.habit-row>.icon.ghost{flex:0 0 44px;width:44px;height:44px}.empty-panel{text-align:center;color:var(--muted)}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.tool-card{flex-direction:column;align-items:flex-start;gap:10px;display:flex}.tool-card>svg{color:var(--accent);width:25px;height:25px}.tool-card p{color:var(--muted);margin:0;font-size:13px}.tool-card.wide{grid-column:1/-1}.file-button input{display:none}.tool-card pre{background:#f8f3e8;border-radius:8px;width:100%;max-height:180px;padding:10px;font-size:10px;overflow:auto}.session-row,.audit-row{border-top:1px solid var(--line);justify-content:space-between;align-items:center;width:100%;padding:9px 0;display:flex}.session-row span{display:grid}.session-row small,.audit-row small{color:var(--muted);font-size:11px}.inline-error{color:var(--danger);background:#fff0ed;border-radius:8px;padding:9px}.settings.active{background:var(--accent-soft);color:#b7421e;font-weight:700}@media (width<=800px){.habit-create{grid-template-columns:1fr 1fr}.habit-create button{justify-content:center}.settings-grid{grid-template-columns:1fr}.tool-card.wide{grid-column:auto}.habit-row{padding:5px 4px 5px 8px}.habit-main{padding:10px 2px}.numeric-action input{width:62px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}.pager{justify-content:flex-end;align-items:center;gap:10px;margin:0 0 14px;display:flex}.pager button:disabled{opacity:.4;cursor:not-allowed}.pager span{color:var(--muted);font-size:13px} diff --git a/backend/static/assets/index-CmIuUToo.js b/backend/static/assets/index-CmIuUToo.js deleted file mode 100644 index e6025b9..0000000 --- a/backend/static/assets/index-CmIuUToo.js +++ /dev/null @@ -1,4 +0,0 @@ -(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,T=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),E=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ee=/-\w/g,D=E(e=>e.replace(ee,e=>e.slice(1).toUpperCase())),te=/\B([A-Z])/g,O=E(e=>e.replace(te,`-$1`).toLowerCase()),ne=E(e=>e.charAt(0).toUpperCase()+e.slice(1)),re=E(e=>e?`on${ne(e)}`:``),k=(e,t)=>!Object.is(e,t),A=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ie=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ae=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},oe,se=()=>oe||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ce(e){if(d(e)){let t={};for(let n=0;n{if(e){let n=e.split(ue);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function M(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;nP(e,t))}var ve=e=>!!(e&&e.__v_isRef===!0),F=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?ve(e)?F(e.value):JSON.stringify(e,ye,2):String(e),ye=(e,t)=>ve(t)?ye(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[be(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>be(e))}:_(t)?be(t):v(t)&&!d(t)&&!C(t)?String(t):t,be=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,I,xe=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&I&&(I.active?(this.parent=I,this.index=(I.scopes||(I.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e0&&--this._on===0){if(I===this)I=this.prevScope;else{let e=I;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(De){let e=De;for(De=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ee;){let t=Ee;for(Ee=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function je(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Me(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Fe(r),Ie(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ne(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Pe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Pe(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===He)||(e.globalVersion=He,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ne(e))))return;e.flags|=2;let t=e.dep,n=L,r=Le;L=e,Le=!0;try{je(e);let n=e.fn(e._value);(t.version===0||k(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{L=n,Le=r,Me(e),e.flags&=-3}}function Fe(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Fe(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ie(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Le=!0,Re=[];function ze(){Re.push(Le),Le=!1}function Be(){let e=Re.pop();Le=e===void 0||e}function Ve(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=L;L=void 0;try{t()}finally{L=e}}}var He=0,Ue=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},We=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!L||!Le||L===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==L)t=this.activeLink=new Ue(L,this),L.deps?(t.prevDep=L.depsTail,L.depsTail.nextDep=t,L.depsTail=t):L.deps=L.depsTail=t,Ge(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=L.depsTail,t.nextDep=void 0,L.depsTail.nextDep=t,L.depsTail=t,L.deps===t&&(L.deps=e)}return t}trigger(e){this.version++,He++,this.notify(e)}notify(e){ke();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ae()}}};function Ge(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ge(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Ke=new WeakMap,qe=Symbol(``),Je=Symbol(``),Ye=Symbol(``);function R(e,t,n){if(Le&&L){let t=Ke.get(e);t||Ke.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new We),r.map=t,r.key=n),r.track()}}function Xe(e,t,n,r,i,a){let o=Ke.get(e);if(!o){He++;return}let s=e=>{e&&e.trigger()};if(ke(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Ye||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Ye)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(qe)),f(e)&&s(o.get(Je)));break;case`delete`:i||(s(o.get(qe)),f(e)&&s(o.get(Je)));break;case`set`:f(e)&&s(o.get(qe))}}Ae()}function Ze(e){let t=z(e);return t===e?t:(R(t,`iterate`,Ye),It(e)?t:t.map(zt))}function Qe(e){return R(e=z(e),`iterate`,Ye),e}function $e(e,t){return Ft(e)?Bt(Pt(e)?zt(t):t):zt(t)}var et={__proto__:null,[Symbol.iterator](){return tt(this,Symbol.iterator,e=>$e(this,e))},concat(...e){return Ze(this).concat(...e.map(e=>d(e)?Ze(e):e))},entries(){return tt(this,`entries`,e=>(e[1]=$e(this,e[1]),e))},every(e,t){return rt(this,`every`,e,t,void 0,arguments)},filter(e,t){return rt(this,`filter`,e,t,e=>e.map(e=>$e(this,e)),arguments)},find(e,t){return rt(this,`find`,e,t,e=>$e(this,e),arguments)},findIndex(e,t){return rt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return rt(this,`findLast`,e,t,e=>$e(this,e),arguments)},findLastIndex(e,t){return rt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return rt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return at(this,`includes`,e)},indexOf(...e){return at(this,`indexOf`,e)},join(e){return Ze(this).join(e)},lastIndexOf(...e){return at(this,`lastIndexOf`,e)},map(e,t){return rt(this,`map`,e,t,void 0,arguments)},pop(){return ot(this,`pop`)},push(...e){return ot(this,`push`,e)},reduce(e,...t){return it(this,`reduce`,e,t)},reduceRight(e,...t){return it(this,`reduceRight`,e,t)},shift(){return ot(this,`shift`)},some(e,t){return rt(this,`some`,e,t,void 0,arguments)},splice(...e){return ot(this,`splice`,e)},toReversed(){return Ze(this).toReversed()},toSorted(e){return Ze(this).toSorted(e)},toSpliced(...e){return Ze(this).toSpliced(...e)},unshift(...e){return ot(this,`unshift`,e)},values(){return tt(this,`values`,e=>$e(this,e))}};function tt(e,t,n){let r=Qe(e),i=r[t]();return r!==e&&!It(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var nt=Array.prototype;function rt(e,t,n,r,i,a){let o=Qe(e),s=o!==e&&!It(e),c=o[t];if(c!==nt[t]){let t=c.apply(e,a);return s?zt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,$e(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function it(e,t,n,r){let i=Qe(e),a=i!==e&&!It(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=$e(e,t)),n.call(this,t,$e(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?$e(e,c):c}function at(e,t,n){let r=z(e);R(r,`iterate`,Ye);let i=r[t](...n);return(i===-1||i===!1)&&Lt(n[0])?(n[0]=z(n[0]),r[t](...n)):i}function ot(e,t,n=[]){ze(),ke();let r=z(e)[t].apply(e,n);return Ae(),Be(),r}var st=e(`__proto__,__v_isRef,__isVue`),ct=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function lt(e){_(e)||(e=String(e));let t=z(this);return R(t,`has`,e),t.hasOwnProperty(e)}var ut=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Ot:Dt:i?Et:Tt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=et[t]))return e;if(t===`hasOwnProperty`)return lt}let o=Reflect.get(e,t,B(e)?e:n);if((_(t)?ct.has(t):st(t))||(r||R(e,`get`,t),i))return o;if(B(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?Mt(e):e}return v(o)?r?Mt(o):At(o):o}},dt=class extends ut{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=Ft(i);if(!It(n)&&!Ft(n)&&(i=z(i),n=z(n)),!a&&B(i)&&!B(n))return e||(i.value=n),!0}let o=a?Number(t)e,_t=e=>Reflect.getPrototypeOf(e);function vt(e,t,n){return function(...r){let i=this.__v_raw,a=z(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?gt:t?Bt:zt;return!t&&R(a,`iterate`,l?Je:qe),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function yt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function bt(e,t){let n={get(n){let r=this.__v_raw,i=z(r),a=z(n);e||(k(n,a)&&R(i,`get`,n),R(i,`get`,a));let{has:o}=_t(i),s=t?gt:e?Bt:zt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&R(z(t),`iterate`,qe),t.size},has(t){let n=this.__v_raw,r=z(n),i=z(t);return e||(k(t,i)&&R(r,`has`,t),R(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=z(a),s=t?gt:e?Bt:zt;return!e&&R(o,`iterate`,qe),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:yt(`add`),set:yt(`set`),delete:yt(`delete`),clear:yt(`clear`)}:{add(e){let n=z(this),r=_t(n),i=z(e),a=!t&&!It(e)&&!Ft(e)?i:e;return r.has.call(n,a)||k(e,a)&&r.has.call(n,e)||k(i,a)&&r.has.call(n,i)||(n.add(a),Xe(n,`add`,a,a)),this},set(e,n){!t&&!It(n)&&!Ft(n)&&(n=z(n));let r=z(this),{has:i,get:a}=_t(r),o=i.call(r,e);o||=(e=z(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?k(n,s)&&Xe(r,`set`,e,n,s):Xe(r,`add`,e,n),this},delete(e){let t=z(this),{has:n,get:r}=_t(t),i=n.call(t,e);i||=(e=z(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&Xe(t,`delete`,e,void 0,a),o},clear(){let e=z(this),t=e.size!==0,n=e.clear();return t&&Xe(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=vt(r,e,t)}),n}function xt(e,t){let n=bt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var St={get:xt(!1,!1)},Ct={get:xt(!1,!0)},wt={get:xt(!0,!1)},Tt=new WeakMap,Et=new WeakMap,Dt=new WeakMap,Ot=new WeakMap;function kt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function At(e){return Ft(e)?e:Nt(e,!1,pt,St,Tt)}function jt(e){return Nt(e,!1,ht,Ct,Et)}function Mt(e){return Nt(e,!0,mt,wt,Dt)}function Nt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=kt(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Pt(e){return Ft(e)?Pt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ft(e){return!!(e&&e.__v_isReadonly)}function It(e){return!!(e&&e.__v_isShallow)}function Lt(e){return e?!!e.__v_raw:!1}function z(e){let t=e&&e.__v_raw;return t?z(t):e}function Rt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&j(e,`__v_skip`,!0),e}var zt=e=>v(e)?At(e):e,Bt=e=>v(e)?Mt(e):e;function B(e){return e?e.__v_isRef===!0:!1}function V(e){return Vt(e,!1)}function Vt(e,t){return B(e)?e:new Ht(e,t)}var Ht=class{constructor(e,t){this.dep=new We,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:z(e),this._value=t?e:zt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||It(e)||Ft(e);e=n?e:z(e),k(e,t)&&(this._rawValue=e,this._value=n?e:zt(e),this.dep.trigger())}};function H(e){return B(e)?e.value:e}var Ut={get:(e,t,n)=>t===`__v_raw`?e:H(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return B(i)&&!B(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Wt(e){return Pt(e)?e:new Proxy(e,Ut)}var Gt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new We(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=He-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&L!==this)return Oe(this,!0),!0}get value(){let e=this.dep.track();return Pe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Kt(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new Gt(r,i,n)}var qt={},Jt=new WeakMap,Yt=void 0;function Xt(e,t=!1,n=Yt){if(n){let t=Jt.get(n);t||Jt.set(n,t=[]),t.push(e)}}function Zt(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:It(e)||o===!1||o===0?Qt(e,1):Qt(e),m,g,_,v,y=!1,b=!1;if(B(e)?(g=()=>e.value,y=It(e)):Pt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Pt(e)||It(e)),g=()=>e.map(e=>{if(B(e))return e.value;if(Pt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){ze();try{_()}finally{Be()}}let t=Yt;Yt=m;try{return f?f(e,3,[v]):e(v)}finally{Yt=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>Qt(e(),t)}let x=Se(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(qt):qt,w=e=>{if(m.flags&1&&(m.dirty||e)){if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>k(e,C[t])):k(t,C))){_&&_();let e=Yt;Yt=m;try{let e=[t,C===qt?void 0:b&&C[0]===qt?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{Yt=e}}}else m.run()}};return u&&u(w),m=new we(g),m.scheduler=l?()=>l(w,!1):w,v=e=>Xt(e,!1,m),_=m.onStop=()=>{let e=Jt.get(m);if(e){if(f)f(e,4);else for(let t of e)t();Jt.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function Qt(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,B(e))Qt(e.value,t,n);else if(d(e))for(let r=0;r{Qt(e,t,n)});else if(C(e)){for(let r in e)Qt(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Qt(e[r],t,n)}return e}function $t(e,t,n,r){try{return r?e(...r):e()}catch(e){tn(e,t,n)}}function en(e,t,n,r){if(h(e)){let i=$t(e,t,n,r);return i&&y(i)&&i.catch(e=>{tn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a>>1,i=U[r],a=_n(i);a=_n(n)?U.push(e):U.splice(dn(t),0,e),e.flags|=1,pn()}}function pn(){ln||=cn.then(vn)}function mn(e){if(!d(e))on&&e.id===-1?on.splice(sn+1,0,e):e.flags&1||(an.push(e),e.flags|=1);else for(let t=0;t_n(e)-_n(t));if(an.length=0,on){for(let t=0;te.id==null?e.flags&2?-1:1/0:e.id;function vn(e){try{for(rn=0;rn{r._d&&Bi(-1);let i=xn(t),a=Ii.length,o;try{o=e(...n)}finally{for(let e=Ii.length;e>a;e--)Ri();xn(i),r._d&&Bi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function W(e,n){if(yn===null)return e;let r=va(yn),i=e.dirs||=[];for(let e=0;e1)return n&&h(t)?t.call(r&&r.proxy):t}}var En=Symbol.for(`v-scx`),Dn=()=>Tn(En);function On(e,t,n){return kn(e,t,n)}function kn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(da){if(c===`sync`){let e=Dn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=ia;u.call=(e,t,n)=>en(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{bi(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():fn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=Zt(e,n,u);return da&&(f?f.push(h):d&&h()),h}function An(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?jn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=ca(this),s=kn(i,a.bind(r),n);return o(),s}function jn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,Pn=Symbol(`_leaveCb`),Fn=Symbol(`_enterCb`);function In(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ur(()=>{e.isMounted=!0}),pr(()=>{e.isUnmounting=!0}),e}var Ln=[Function,Array],Rn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ln,onEnter:Ln,onAfterEnter:Ln,onEnterCancelled:Ln,onBeforeLeave:Ln,onLeave:Ln,onAfterLeave:Ln,onLeaveCancelled:Ln,onBeforeAppear:Ln,onAppear:Ln,onAfterAppear:Ln,onAppearCancelled:Ln},zn=e=>{let t=e.subTree;return t.component?zn(t.component):t},Bn={name:`BaseTransition`,props:Rn,setup(e,{slots:t}){let n=aa(),r=In();return()=>{let i=t.default&&Jn(t.default(),!0),a=i&&i.length?Vn(i):n.subTree?Q():void 0;if(!a)return;let o=z(e),{mode:s}=o;if(r.isLeaving)return Gn(a);let c=Kn(a);if(!c)return Gn(a);let l=Wn(c,o,r,n,e=>l=e);c.type!==Pi&&qn(c,l);let u=n.subTree&&Kn(n.subTree);if(u&&u.type!==Pi&&!Wi(u,c)&&zn(n).type!==Pi){let e=Wn(u,o,r,n);if(qn(u,e),s===`out-in`&&c.type!==Pi)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Gn(a);s===`in-out`&&c.type!==Pi?e.delayLeave=(e,t,n)=>{let i=Un(r,u);i[String(u.key)]=u,e[Pn]=()=>{t(),e[Pn]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Vn(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Pi){t=n;break}}return t}var Hn=Bn;function Un(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Wn(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=Un(n,e),C=(e,t)=>{e&&en(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=_||c;else return}t[Pn]&&t[Pn](!0);let i=S[x];i&&Wi(e,i)&&i.el[Pn]&&i.el[Pn](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted){if(a)r=v||l,i=y||u,o=b||f;else return}let s=!1;t[Fn]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[Fn]=void 0)};let c=t[Fn].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Fn]&&t[Fn](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[Pn]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[Pn]=void 0,S[i]===e&&delete S[i])};let o=t[Pn].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=Wn(e,t,n,r,i);return i&&i(a),a}};return T}function Gn(e){if(nr(e))return e=Yi(e),e.children=null,e}function Kn(e){if(!nr(e))return Nn(e.type)&&e.children?Vn(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function qn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;qn(Nn(n.type)&&Kn(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Jn(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;e$n(e,n&&(d(n)?n[t]:n),r,a,o));return}if(tr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&$n(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?va(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=z(v),b=v===t?i:e=>!Zn(_,e)&&u(y,e),x=(e,t)=>!(t&&Zn(_,t));if(m!=null&&m!==p){if(er(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(B(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))$t(p,f,12,[l,_]);else{let t=g(p),n=B(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),Qn.delete(e)};t.id=-1,Qn.set(e,t),bi(t,r)}else er(e),i()}}}function er(e){let t=Qn.get(e);t&&(t.flags|=8,Qn.delete(e))}se().requestIdleCallback,se().cancelIdleCallback;var tr=e=>!!e.type.__asyncLoader,nr=e=>e.type.__isKeepAlive;function rr(e,t){ar(e,`a`,t)}function ir(e,t){ar(e,`da`,t)}function ar(e,t,n=ia){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(sr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)nr(e.parent.vnode)&&or(r,t,n,e),e=e.parent}}function or(e,t,n,r){let i=sr(t,e,r,!0);mr(()=>{c(r[t],i)},n)}function sr(e,t,n=ia,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ze();let i=ca(n),a=en(t,n,e,r);return i(),Be(),a};return r?i.unshift(a):i.push(a),a}}var cr=e=>(t,n=ia)=>{(!da||e===`sp`)&&sr(e,(...e)=>t(...e),n)},lr=cr(`bm`),ur=cr(`m`),dr=cr(`bu`),fr=cr(`u`),pr=cr(`bum`),mr=cr(`um`),hr=cr(`sp`),gr=cr(`rtg`),_r=cr(`rtc`);function vr(e,t=ia){sr(`ec`,e,t)}var yr=Symbol.for(`v-ndc`);function br(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&Pt(e),r=!1,s=!1;n&&(r=!It(e),s=Ft(e),e=Qe(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;re?ua(e)?va(e):xr(e.parent):null,Sr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xr(e.parent),$root:e=>xr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>jr(e),$forceUpdate:e=>e.f||=()=>{fn(e.update)},$nextTick:e=>e.n||=un.bind(e.proxy),$watch:e=>An.bind(e)}),Cr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),wr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Cr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else Er&&(s[n]=0)}let d=Sr[n],f,p;if(d)return n===`$attrs`&&R(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Cr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Cr(n,c)||u(o,c)||u(i,c)||u(Sr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Tr(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var Er=!0;function Dr(e){let t=jr(e),n=e.proxy,i=e.ctx;Er=!1,t.beforeCreate&&kr(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:E,renderTriggered:ee,errorCaptured:D,serverPrefetch:te,expose:O,inheritAttrs:ne,components:re,directives:k,filters:A}=t;if(u&&Or(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=At(t))}if(Er=!0,o)for(let e in o){let t=o[e],a=ba({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Ar(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{wn(t,e[t])})}f&&kr(f,e,`c`);function j(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(lr,p),j(ur,m),j(dr,g),j(fr,_),j(rr,y),j(ir,b),j(vr,D),j(_r,E),j(gr,ee),j(pr,S),j(mr,w),j(hr,te),d(O)){if(O.length){let t=e.exposed||={};O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}T&&e.render===r&&(e.render=T),ne!=null&&(e.inheritAttrs=ne),re&&(e.components=re),k&&(e.directives=k),te&&Xn(e)}function Or(e,t,n=r){d(e)&&(e=Ir(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?Tn(r.from||n,r.default,!0):Tn(r.from||n):Tn(r),B(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function kr(e,t,n){en(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ar(e,t,n,r){let i=r.includes(`.`)?jn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&On(i,n)}else if(h(e))On(i,e.bind(n));else if(v(e)){if(d(e))e.forEach(e=>Ar(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&On(i,r,e)}}}function jr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Mr(c,e,o,!0)),Mr(c,t,o)),v(t)&&a.set(t,c),c}function Mr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Mr(e,a,n,!0),i&&i.forEach(t=>Mr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Nr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Nr={data:Pr,props:Rr,emits:Rr,methods:Lr,computed:Lr,beforeCreate:G,created:G,beforeMount:G,mounted:G,beforeUpdate:G,updated:G,beforeDestroy:G,beforeUnmount:G,destroyed:G,unmounted:G,activated:G,deactivated:G,errorCaptured:G,serverPrefetch:G,components:Lr,directives:Lr,watch:zr,provide:Pr,inject:Fr};function Pr(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function Fr(e,t){return Lr(Ir(e),Ir(t))}function Ir(e){if(d(e)){let t={};for(let n=0;nt===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${O(t)}Modifiers`];function Gr(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&Wr(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=a.map(ie)));let c,l=i[c=re(n)]||i[c=re(D(n))];!l&&o&&(l=i[c=re(O(n))]),l&&en(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,en(u,e,6,a)}}var Kr=new WeakMap;function qr(e,t,n=!1){let r=n?Kr:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=qr(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Jr(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,O(t))||u(e,t))}function Yr(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=xn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Xi(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Xi(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:Xr(c)}}catch(t){Ii.length=0,tn(t,e,1),v=X(Pi)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Zr(y,a)),b=Yi(b,y,!1,!0))}return n.dirs&&(b=Yi(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&qn(Nn(b.type)&&Kn(b)||b,n.transition),v=b,xn(_),v}var Xr=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Zr=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Qr(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?$r(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(ni),ii=e=>Object.getPrototypeOf(e)===ni;function ai(e,t,n,r=!1){let i={},a=ri();e.propsDefaults=Object.create(null),si(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:jt(i):e.type.props?i:a,e.attrs=a}function oi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=z(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[t,n]=ui(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,pi=e=>d(e)?e.map(Xi):[Xi(e)],mi=(e,t,n)=>{if(t._n)return t;let r=Sn((...e)=>pi(t(...e)),n);return r._c=!1,r},hi=(e,t,n)=>{let r=e._ctx;for(let n in e){if(fi(n))continue;let i=e[n];if(h(i))t[n]=mi(n,i,r);else if(i!=null){let e=pi(i);t[n]=()=>e}}},gi=(e,t)=>{let n=pi(t);e.slots.default=()=>n},_i=(e,t,n)=>{for(let r in t)(n||!fi(r))&&(e[r]=t[r])},vi=(e,t,n)=>{let r=e.slots=ri();if(e.vnode.shapeFlag&32){let e=t._;e?(_i(r,t,n),n&&j(r,`_`,e,!0)):hi(t,r)}else t&&gi(e,t)},yi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:_i(a,n,r):(o=!n.$stable,hi(n,a)),s=n}else n&&(gi(e,n),s={default:1});if(o)for(let e in a)!fi(e)&&s[e]==null&&delete a[e]},bi=Mi;function xi(e){return Si(e)}function Si(e,i){let a=se();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Wi(e,t)&&(r=he(e),fe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Ni:y(e,t,n,r);break;case Pi:b(e,t,n,r);break;case Fi:e??x(t,n,r,o);break;case K:re(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?k(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,_e)}u!=null&&i?$n(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&$n(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)E(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),te(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},E=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&D(e.children,d,null,r,i,Ci(e,a),s,u),_&&Cn(e,null,r,`created`),ee(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!T(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&ea(f,r,e)}_&&Cn(e,null,r,`beforeMount`);let v=Ti(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&bi(()=>{try{f&&ea(f,r,e),v&&g.enter(d),_&&Cn(e,null,r,`mounted`)}finally{}},i)},ee=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&wi(r,!1),(g=h.onVnodeBeforeUpdate)&&ea(g,r,n,e),f&&Cn(n,e,r,`beforeUpdate`),r&&wi(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?O(e.dynamicChildren,d,l,r,i,Ci(n,a),o):s||ce(e,n,l,null,r,i,Ci(n,a),o,!1),u>0){if(u&16)ne(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t{g&&ea(g,r,n,e),f&&Cn(n,e,r,`updated`)},i)},O=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(n!==r){if(n!==t)for(let t in n)!T(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(T(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},re=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),D(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(O(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Ei(e,t,!0)):ce(e,t,n,f,i,a,s,c,l)},k=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):j(t,n,r,i,a,o,c):ie(e,t,c)},j=(e,t,n,r,i,a,o)=>{let s=e.component=ra(e,r,i);if(nr(e)&&(s.ctx.renderer=_e),fa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ae,o),!e.el){let r=s.subTree=X(Pi);b(null,r,t,n),e.placeholder=r.el}}else ae(s,e,t,n,i,a,o)},ie=(e,t,n)=>{let r=t.component=e.component;if(Qr(e,t,n)){if(r.asyncDep&&!r.asyncResolved){oe(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},ae=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Oi(e);if(n){t&&(t.el=c.el,oe(e,t,o)),n.asyncDep.then(()=>{bi(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;wi(e,!1),t?(t.el=c.el,oe(e,t,o)):t=c,n&&A(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ea(d,s,t,c),wi(e,!0);let f=Yr(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),he(p),e,i,a),t.el=f.el,u===null&&ti(e,f.el),r&&bi(r,i),(d=t.props&&t.props.onVnodeUpdated)&&bi(()=>ea(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=tr(t);if(wi(e,!1),l&&A(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ea(o,d,t),wi(e,!0),s&&F){let t=()=>{e.subTree=Yr(e),F(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Yr(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&bi(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;bi(()=>ea(o,d,e),i)}(t.shapeFlag&256||d&&tr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&bi(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new we(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>fn(u),wi(e,!0),l()},oe=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,oi(e,t.props,r,n),yi(e,t.children,n),ze(),hn(e),Be()},ce=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ue(l,d,n,r,i,a,o,s,c);return}if(f&256){le(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&me(l,i,a),d!==l&&p(n,d)):u&16?m&16?ue(l,d,n,r,i,a,o,s,c):me(l,i,a,!0):(u&8&&p(n,``),m&16&&D(d,n,r,i,a,o,s,c))},le=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;pd?me(e,a,o,!0,!1,f):D(t,r,i,a,o,s,c,l,f)},ue=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Zi(t[u]):Xi(t[u]);if(Wi(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Zi(t[p]):Xi(t[p]);if(Wi(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=ep)for(;u<=f;)fe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Zi(t[u]):Xi(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){fe(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Wi(n,t[_])){i=_;break}i===void 0?fe(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?Di(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){de(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,_e);return}if(c===K){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Pn];a._isLeaving&&a[Pn](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},fe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(ze(),$n(s,null,n,e,!0),Be()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!tr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ea(_,t,e),u&6)N(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Cn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,_e,r):l&&!l.hasOnce&&(a!==K||d>0&&d&64)?me(l,t,n,!1,!0):(a===K&&d&384||!i&&u&16)&&me(c,t,n),r&&M(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&bi(()=>{_&&ea(_,t,e),h&&Cn(e,null,t,`unmounted`),v&&(e.el=null)},n)},M=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===K){pe(n,r);return}if(t===Fi){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},pe=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},N=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;ki(c),ki(l),r&&A(r),i.stop(),a&&(a.flags|=8,fe(o,e,t,n)),s&&bi(s,t),bi(()=>{e.isUnmounted=!0},t)},me=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return he(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Mn];return n?h(n):t},ge=!1,P=(e,t,n)=>{let r;e==null?t._vnode&&(fe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ge||=(ge=!0,hn(r),gn(),!1)},_e={p:v,um:fe,m:de,r:M,mt:j,mc:D,pc:ce,pbc:O,n:he,o:e},ve,F;return i&&([ve,F]=i(_e)),{render:P,hydrate:ve,createApp:Hr(P,ve)}}function Ci({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function wi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ti(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ei(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Oi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Oi(t)}function ki(e){if(e)for(let t=0;te.__isSuspense;function Mi(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):mn(e)}var K=Symbol.for(`v-fgt`),Ni=Symbol.for(`v-txt`),Pi=Symbol.for(`v-cmt`),Fi=Symbol.for(`v-stc`),Ii=[],Li=null;function q(e=!1){Ii.push(Li=e?null:[])}function Ri(){Ii.pop(),Li=Ii[Ii.length-1]||null}var zi=1;function Bi(e,t=!1){zi+=e,e<0&&Li&&t&&(Li.hasOnce=!0)}function Vi(e){return e.dynamicChildren=zi>0?Li||n:null,Ri(),zi>0&&Li&&Li.push(e),e}function J(e,t,n,r,i,a){return Vi(Y(e,t,n,r,i,a,!0))}function Hi(e,t,n,r,i){return Vi(X(e,t,n,r,i,!0))}function Ui(e){return e?e.__v_isVNode===!0:!1}function Wi(e,t){return e.type===t.type&&e.key===t.key}var Gi=({key:e})=>e??null,Ki=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||B(e)||h(e)?{i:yn,r:e,k:t,f:!!n}:e);function Y(e,t=null,n=null,r=0,i=null,a=e===K?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gi(t),ref:t&&Ki(t),scopeId:bn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:yn};return s?(Qi(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),zi>0&&!o&&Li&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Li.push(c),c}var X=qi;function qi(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===yr)&&(e=Pi),Ui(e)){let r=Yi(e,t,!0);return n&&Qi(r,n),zi>0&&!a&&Li&&(r.shapeFlag&6?Li[Li.indexOf(e)]=r:Li.push(r)),r.patchFlag=-2,r}if(ya(e)&&(e=e.__vccOpts),t){t=Ji(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=M(e)),v(n)&&(Lt(n)&&!d(n)&&(n=s({},n)),t.style=ce(n))}let o=g(e)?1:ji(e)?128:Nn(e)?64:v(e)?4:h(e)?2:0;return Y(e,t,n,r,i,o,a,!0)}function Ji(e){return e?Lt(e)||ii(e)?s({},e):e:null}function Yi(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?$i(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Gi(l),ref:t&&t.ref?n&&a?d(a)?a.concat(Ki(t)):[a,Ki(t)]:Ki(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yi(e.ssContent),ssFallback:e.ssFallback&&Yi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&qn(u,c.clone(u)),u}function Z(e=` `,t=0){return X(Ni,null,e,t)}function Q(e=``,t=!1){return t?(q(),Hi(Pi,null,e)):X(Pi,null,e)}function Xi(e){return e==null||typeof e==`boolean`?X(Pi):d(e)?X(K,null,e.slice()):Ui(e)?Zi(e):X(Ni,null,String(e))}function Zi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yi(e)}function Qi(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Qi(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!ii(t)?t._ctx=yn:r===3&&yn&&(yn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(h(t)){if(r&65){Qi(e,{default:t});return}t={default:t,_ctx:yn},n=32}else t=String(t),r&64?(n=16,t=[Z(t)]):n=8;e.children=t,e.shapeFlag|=n}function $i(...e){let t={};for(let n=0;nia||yn,oa,sa;{let e=se(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};oa=t(`__VUE_INSTANCE_SETTERS__`,e=>ia=e),sa=t(`__VUE_SSR_SETTERS__`,e=>da=e)}var ca=e=>{let t=ia;return oa(e),e.scope.on(),()=>{e.scope.off(),oa(t)}},la=()=>{ia&&ia.scope.off(),oa(null)};function ua(e){return e.vnode.shapeFlag&4}var da=!1;function fa(e,t=!1,n=!1){t&&sa(t);let{props:r,children:i}=e.vnode,a=ua(e);ai(e,r,a,t),vi(e,i,n||t);let o=a?pa(e,t):void 0;return t&&sa(!1),o}function pa(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,wr);let{setup:r}=n;if(r){ze();let n=e.setupContext=r.length>1?_a(e):null,i=ca(e),a=$t(r,e,0,[e.props,n]),o=y(a);if(Be(),i(),(o||e.sp)&&!tr(e)&&Xn(e),o){if(a.then(la,la),t)return a.then(n=>{sa(!0);try{ma(e,n,t)}finally{sa(!1)}}).catch(t=>{tn(t,e,0)});e.asyncDep=a}else ma(e,a,t)}else ha(e,t)}function ma(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=Wt(t)),ha(e,n)}function ha(e,t,n){let i=e.type;e.render||=i.render||r;{let t=ca(e);ze();try{Dr(e)}finally{Be(),t()}}}var ga={get(e,t){return R(e,`get`,``),e[t]}};function _a(e){return{attrs:new Proxy(e.attrs,ga),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function va(e){return e.exposed?e.exposeProxy||=new Proxy(Wt(Rt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Sr)return Sr[n](e)},has(e,t){return t in e||t in Sr}}):e.proxy}function ya(e){return h(e)&&`__vccOpts`in e}var ba=(e,t)=>Kt(e,t,da);function xa(e,t,n){try{Bi(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?Ui(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ui(n)&&(n=[n]),X(e,t,n))}finally{Bi(1)}}var Sa=`3.5.42`,Ca=void 0,wa=typeof window<`u`&&window.trustedTypes;if(wa)try{Ca=wa.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ta=Ca?e=>Ca.createHTML(e):e=>e,Ea=`http://www.w3.org/2000/svg`,Da=`http://www.w3.org/1998/Math/MathML`,Oa=typeof document<`u`?document:null,ka=Oa&&Oa.createElement(`template`),Aa={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Oa.createElementNS(Ea,e):t===`mathml`?Oa.createElementNS(Da,e):n?Oa.createElement(e,{is:n}):Oa.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Oa.createTextNode(e),createComment:e=>Oa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Oa.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{ka.innerHTML=Ta(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=ka.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ja=`transition`,Ma=`animation`,Na=Symbol(`_vtc`),Pa={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Fa=s({},Rn,Pa),Ia=(e=>(e.displayName=`Transition`,e.props=Fa,e))((e,{slots:t})=>xa(Hn,za(e),t)),La=(e,t=[])=>{d(e)?e.forEach(e=>e(...t)):e&&e(...t)},Ra=e=>e?d(e)?e.some(e=>e.length>1):e.length>1:!1;function za(e){let t={};for(let n in e)n in Pa||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:d=c,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=Ba(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,Ua(e,t?d:c),Ua(e,t?u:o),n&&n()},ee=(e,t)=>{e._isLeaving=!1,Ua(e,f),Ua(e,m),Ua(e,p),t&&t()},D=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);La(i,[t,o]),Wa(()=>{Ua(t,e?l:a),Ha(t,e?d:c),Ra(i)||Ka(t,r,g,o)})};return s(t,{onBeforeEnter(e){La(v,[e]),Ha(e,a),Ha(e,o)},onBeforeAppear(e){La(C,[e]),Ha(e,l),Ha(e,u)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>ee(e,t);Ha(e,f),e._enterCancelled?(Ha(e,p),Xa(e)):(Xa(e),Ha(e,p)),Wa(()=>{e._isLeaving&&(Ua(e,f),Ha(e,m),Ra(x)||Ka(e,r,_,n))}),La(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),La(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),La(T,[e])},onLeaveCancelled(e){ee(e),La(S,[e])}})}function Ba(e){if(e==null)return null;if(v(e))return[Va(e.enter),Va(e.leave)];{let t=Va(e);return[t,t]}}function Va(e){return ae(e)}function Ha(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Na]||(e[Na]=new Set)).add(t)}function Ua(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Na];n&&(n.delete(t),n.size||(e[Na]=void 0))}function Wa(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ga=0;function Ka(e,t,n,r){let i=e._endId=++Ga,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=qa(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${ja}Delay`),a=r(`${ja}Duration`),o=Ja(i,a),s=r(`${Ma}Delay`),c=r(`${Ma}Duration`),l=Ja(s,c),u=null,d=0,f=0;t===ja?o>0&&(u=ja,d=o,f=a.length):t===Ma?l>0&&(u=Ma,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?ja:Ma:null,f=u?u===ja?a.length:c.length:0);let p=u===ja&&/\b(?:transform|all)(?:,|$)/.test(r(`${ja}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ja(e,t){for(;e.lengthYa(t)+Ya(e[n])))}function Ya(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Xa(e){return(e?e.ownerDocument:document).body.offsetHeight}function Za(e,t,n){let r=e[Na];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Qa=Symbol(`_vod`),$a=Symbol(`_vsh`),eo={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Qa]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):to(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),to(e,!0),r.enter(e)):r.leave(e,()=>{to(e,!1)}):to(e,t))},beforeUnmount(e,{value:t}){to(e,t)}};function to(e,t){e.style.display=t?e[Qa]:`none`,e[$a]=!t}var no=Symbol(``),ro=/(?:^|;)\s*display\s*:/;function io(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t){if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??oo(r,t,``)}else for(let e in t)n[e]??oo(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?oo(r,i,``):uo(e,i,!g(t)&&t?t[i]:void 0,o)||oo(r,i,o)}}else if(i){if(t!==n){let e=r[no];e&&(n+=`;`+e),r.cssText=n,a=ro.test(n)}}else t&&e.removeAttribute(`style`);Qa in e&&(e[Qa]=a?r.display:``,e[$a]&&(r.display=`none`))}var ao=/\s*!important$/;function oo(e,t,n){if(d(n))n.forEach(n=>oo(e,t,n));else if(n??=``,t.startsWith(`--`))ao.test(n)?e.setProperty(t,n.replace(ao,``),`important`):e.setProperty(t,n);else{let r=lo(e,t);ao.test(n)?e.setProperty(O(r),n.replace(ao,``),`important`):e[r]=n}}var so=[`Webkit`,`Moz`,`ms`],co={};function lo(e,t){let n=co[t];if(n)return n;let r=D(t);if(r!==`filter`&&r in e)return co[t]=r;r=ne(r);for(let n=0;nSo||=(Co.then(()=>So=0),Date.now());function To(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Do=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?Za(e,r,c):t===`style`?io(e,n,r):a(t)?o(t)||vo(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):Oo(e,t,r,c))?(mo(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&po(e,t,r,c,s,t!==`value`)):e._isVueCE&&(ko(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?mo(e,D(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),po(e,t,r,c))};function Oo(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Eo(t)&&h(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Eo(t)&&g(n)?!1:t in e}function ko(e,t){let n=e._def.props;if(!n)return!1;let r=D(t);return Array.isArray(n)?n.some(e=>D(e)===r):Object.keys(n).some(e=>D(e)===r)}var Ao=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>A(t,e):t};function jo(e){e.target.composing=!0}function Mo(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var No=Symbol(`_assign`),Po=Symbol(`_initialValue`);function Fo(e,t,n){return t&&(e=e.trim()),n&&(e=ie(e)),e}var Io={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[Po]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[Po]=e.defaultValue.replace(/\r\n?/g,` -`))),e[No]=Ao(i);let a=r||i.props&&i.props.type===`number`;ho(e,t?`change`:`input`,t=>{t.target.composing||e[No](Fo(e.value,n,a))}),(n||a)&&ho(e,`change`,()=>{e.value=Fo(e.value,n,a)}),t||(ho(e,`compositionstart`,jo),ho(e,`compositionend`,Mo),ho(e,`change`,Mo))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[Po];delete e[Po],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[No](Fo(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[No]=Ao(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?ie(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Lo={deep:!0,created(e,t,n){e[No]=Ao(n),ho(e,`change`,()=>{let t=e._modelValue,n=Ho(e),r=e.checked,i=e[No];if(d(t)){let e=_e(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(p(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Uo(e,r))})},mounted:Ro,beforeUpdate(e,t,n){e[No]=Ao(n),Ro(e,t,n)}};function Ro(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(d(t))i=_e(t,r.props.value)>-1;else if(p(t))i=t.has(r.props.value);else{if(t===n)return;i=P(t,Uo(e,!0))}e.checked!==i&&(e.checked=i)}var zo={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,ho(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ie(Ho(e)):Ho(e)),r=e.multiple,i=r?p(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?d(i)?t.slice():t:i];try{e[No](i)}finally{un(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[No]=Ao(r)},mounted(e,{value:t}){Vo(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[No]=Ao(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Bo(t,n[1],n[0]))&&Vo(e,t)}};function Bo(e,t,n){if(!n||d(e))return P(e,t);if(p(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function Vo(e,t){let n=e.multiple,r=d(t);if(!n||r||p(t)){for(let i=0,a=e.options.length;iString(e)===String(o)):_e(t,o)>-1}else a.selected=t.has(o)}else if(P(Ho(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ho(e){return`_value`in e?e._value:e.value}function Uo(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Wo=[`ctrl`,`shift`,`alt`,`meta`],Go={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Wo.some(n=>e[`${n}Key`]&&!t.includes(n))},Ko=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=O(n.key);if(t.some(e=>e===r||qo[e]===r))return e(n)}))},Yo=s({patchProp:Do},Aa),Xo;function Zo(){return Xo||=xi(Yo)}var Qo=((...e)=>{let t=Zo().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=es(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,$o(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function $o(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function es(e){return g(e)?document.querySelector(e):e}var ts=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ns={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},rs=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:r,iconNode:i,name:a,class:o,...s},{slots:c})=>xa(`svg`,{...ns,width:e||ns.width,height:e||ns.height,stroke:r||ns.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:[`lucide`,`lucide-${ts(a??`icon`)}`],...s},[...i.map(e=>xa(...e)),...c.default?[c.default()]:[]]),$=(e,t)=>(n,{slots:r})=>xa(rs,{...n,iconNode:t,name:e},r),is=$(`ActivityIcon`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),as=$(`ArchiveRestoreIcon`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h2`,key:`tvwodi`}],[`path`,{d:`M20 8v11a2 2 0 0 1-2 2h-2`,key:`1gkqxj`}],[`path`,{d:`m9 15 3-3 3 3`,key:`1pd0qc`}],[`path`,{d:`M12 12v9`,key:`192myk`}]]),os=$(`CalendarDaysIcon`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M16 18h.01`,key:`kzsmim`}]]),ss=$(`CheckIcon`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),cs=$(`ChevronDownIcon`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),ls=$(`ChevronRightIcon`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),us=$(`CirclePlusIcon`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),ds=$(`DownloadIcon`,[[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`polyline`,{points:`7 10 12 15 17 10`,key:`2ggqvy`}],[`line`,{x1:`12`,x2:`12`,y1:`15`,y2:`3`,key:`1vk2je`}]]),fs=$(`FileJsonIcon`,[[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,key:`1rqfz7`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),ps=$(`FolderIcon`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),ms=$(`GripVerticalIcon`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),hs=$(`InboxIcon`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),gs=$(`ListChecksIcon`,[[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}],[`path`,{d:`M13 6h8`,key:`15sg57`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 18h8`,key:`oe0vm4`}]]),_s=$(`ListTodoIcon`,[[`rect`,{x:`3`,y:`5`,width:`6`,height:`6`,rx:`1`,key:`1defrl`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`M13 6h8`,key:`15sg57`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 18h8`,key:`oe0vm4`}]]),vs=$(`LogOutIcon`,[[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}],[`polyline`,{points:`16 17 21 12 16 7`,key:`1gabdz`}],[`line`,{x1:`21`,x2:`9`,y1:`12`,y2:`12`,key:`1uyos4`}]]),ys=$(`MenuIcon`,[[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}],[`line`,{x1:`4`,x2:`20`,y1:`6`,y2:`6`,key:`1owob3`}],[`line`,{x1:`4`,x2:`20`,y1:`18`,y2:`18`,key:`yk5zj1`}]]),bs=$(`PencilIcon`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),xs=$(`PlusIcon`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Ss=$(`RefreshCwIcon`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Cs=$(`Repeat2Icon`,[[`path`,{d:`m2 9 3-3 3 3`,key:`1ltn5i`}],[`path`,{d:`M13 18H7a2 2 0 0 1-2-2V6`,key:`1r6tfw`}],[`path`,{d:`m22 15-3 3-3-3`,key:`4rnwn2`}],[`path`,{d:`M11 6h6a2 2 0 0 1 2 2v10`,key:`2f72bc`}]]),ws=$(`SearchIcon`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),Ts=$(`SettingsIcon`,[[`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`,key:`1qme2f`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Es=$(`Trash2Icon`,[[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6`,key:`4alrt4`}],[`path`,{d:`M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2`,key:`v07s0e`}],[`line`,{x1:`10`,x2:`10`,y1:`11`,y2:`17`,key:`1uufr5`}],[`line`,{x1:`14`,x2:`14`,y1:`11`,y2:`17`,key:`xtxkd`}]]),Ds=$(`UploadIcon`,[[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`polyline`,{points:`17 8 12 3 7 8`,key:`t8dd8p`}],[`line`,{x1:`12`,x2:`12`,y1:`3`,y2:`15`,key:`widbto`}]]),Os=$(`XIcon`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),ks=e=>e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`),As=e=>{let t=ks(e);return t=t.replace(/`([^`]+)`/g,`$1`),t=t.replace(/\*\*([^*]+)\*\*/g,`$1`),t=t.replace(/\*([^*]+)\*/g,`$1`),t=t.replace(/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,`$1`),t};function js(e=``){let t=e.replace(/\r\n/g,` -`).split(` -`),n=[],r=!1,i=()=>{r&&=(n.push(``),!1)};for(let e of t){let t=e.trimEnd();if(!t.trim()){i();continue}t.startsWith(`# `)?(i(),n.push(`

${As(t.slice(2))}

`)):t.startsWith(`## `)?(i(),n.push(`

${As(t.slice(3))}

`)):/^[-*] /.test(t)?(r||=(n.push(`
    `),!0),n.push(`
  • ${As(t.slice(2))}
  • `)):(i(),n.push(`

    ${As(t)}

    `))}return i(),n.join(``)}function Ms(e,t){let n=t.trim().toLowerCase();return n?e.filter(e=>[e.title,e.description??``,e.list_name??``,...(e.tags??[]).map(e=>e.name)].join(` `).toLowerCase().includes(n)):e}function Ns(e){let t=new Map;for(let n of e)n.parent_id&&t.set(n.parent_id,[...t.get(n.parent_id)??[],n]);return e.filter(e=>!e.parent_id).map(e=>({task:e,subtasks:t.get(e.id)??[]}))}function Ps(e){if(!e)return``;let t=new Date(e);return Number.isNaN(t.valueOf())?``:`${t.getFullYear()}-${`${t.getMonth()+1}`.padStart(2,`0`)}-${`${t.getDate()}`.padStart(2,`0`)}T${`${t.getHours()}`.padStart(2,`0`)}:${`${t.getMinutes()}`.padStart(2,`0`)}`}function Fs(e){return e?new Date(e).toISOString():null}function Is(e){return`${e.getFullYear()}-${`${e.getMonth()+1}`.padStart(2,`0`)}-${`${e.getDate()}`.padStart(2,`0`)}`}function Ls(e){return Array.isArray(e)?{items:e,nextCursor:null}:{items:e.items??[],nextCursor:e.next_cursor??null}}function Rs(e){return e===`tasks`||e===`today`||e===`upcoming`}function zs(e,t,n=1){return e===`numeric`?Number(t??0)>=n:!!t}function Bs(e){if(e===void 0||e===``)return null;let t=Number(e);return Number.isFinite(t)&&t>=0?t:null}function Vs(e){if(e&&![`GET`,`HEAD`,`OPTIONS`].includes(e.toUpperCase())){let e=Hs(`dodo_csrf`);if(e)return{"x-csrf-token":e}}return{}}function Hs(e){if(typeof document>`u`)return``;let t=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),n=document.cookie.match(RegExp(`(?:^|; )${t}=([^;]*)`));return n?decodeURIComponent(n[1]):``}var Us={key:0,class:`inline-error`},Ws={class:`view-intro`},Gs={class:`primary-small`},Ks={class:`habit-list`},qs={key:0,class:`habit-main`},Js={class:`habit-name`},Ys=[`aria-label`,`aria-pressed`,`onClick`],Xs={key:1,class:`habit-main numeric-habit`},Zs={class:`habit-name`},Qs={class:`numeric-action`},$s=[`onUpdate:modelValue`,`max`,`placeholder`,`aria-label`],ec=[`onClick`],tc=[`onClick`],nc={key:0,class:`empty-panel`},rc={class:`settings-grid`},ic={class:`tool-card`},ac={class:`file-button`},oc={class:`tool-card`},sc={class:`file-button`},cc=[`disabled`],lc={key:0},uc={class:`tool-card wide`},dc=[`onClick`],fc={key:0},pc={key:0,class:`tool-card wide`},mc=Yn({__name:`MvpPanel`,props:{view:{}},emits:[`changed`,`notice`],setup(e,{emit:t}){let n=e,r=t,i=V([]),a=V([]),o=V([]),s=V(!1),c=V(``),l=V(``),u=V(`boolean`),d=V(1),f=V(null),p=V(null),m=V(null),h=V({}),g=V(Is(new Date)),_;function v(e){if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(e=>e&&typeof e==`object`&&`msg`in e&&typeof e.msg==`string`?e.msg:String(e)).join(`;`)||`请求参数有误`;if(e&&typeof e==`object`){let t=e;return`detail`in t?v(t.detail):JSON.stringify(e)}return`请求失败`}async function y(e,t={}){let n={...t.headers||{}};t.body&&!(t.body instanceof FormData)&&(n[`Content-Type`]=`application/json`);let r=Vs(t.method);r[`x-csrf-token`]&&(n[`x-csrf-token`]=r[`x-csrf-token`]);let i=await fetch(`/api/v1`+e,{credentials:`include`,...t,headers:n});if(!i.ok){let e=await i.json().catch(()=>({}));throw Error(v(e.detail))}let a=i.headers.get(`content-type`)||``;return i.status===204?null:a.includes(`json`)?i.json():i.blob()}async function b(e){s.value=!0,c.value=``;try{await e()}catch(e){c.value=e instanceof Error?e.message:`请求失败`}finally{s.value=!1}}function x(e,t){return(e.cells??[]).find(e=>e.day===t)}function S(e,t){return zs(e.kind,x(e,t)?.value,e.target??1)}async function C(e,t){if(s.value)return;let n=+!x(e,t)?.value;await b(async()=>{await y(`/habits/${e.id}/logs/${t}`,{method:`PUT`,body:JSON.stringify({value:n})}),await D(),r(`notice`,n?`打卡成功 🎉`:`已取消打卡`)})}async function w(e,t){if(s.value)return;let n=Bs(h.value[e.id]);n===null||e.max_value!=null&&n>e.max_value||await b(async()=>{await y(`/habits/${e.id}/logs/${t}`,{method:`PUT`,body:JSON.stringify({value:n})}),await D(),r(`notice`,n>0?`已记录 🎉`:`已清零`)})}async function T(){l.value.trim()&&await b(async()=>{await y(`/habits`,{method:`POST`,body:JSON.stringify({name:l.value.trim(),kind:u.value,target:d.value,schedule_type:`daily`})}),l.value=``,await D(),r(`notice`,`习惯已创建`)})}async function E(e){confirm(`归档习惯“${e.name}”?历史打卡记录会保留。`)&&await b(async()=>{await y(`/habits/${e.id}`,{method:`DELETE`}),await D(),r(`notice`,`习惯已归档`)})}function ee(){let e=Is(new Date);e!==g.value&&(g.value=e,n.view===`habits`&&D())}async function D(){await b(async()=>{let e=await y(`/habits/grid?week=${Is(new Date)}`);i.value=e.habits??[]})}async function te(){await b(async()=>{let[e,t]=await Promise.all([y(`/sessions`).catch(()=>[]),y(`/audit-logs?limit=20`).catch(()=>[])]);a.value=Ls(e).items,o.value=Ls(t).items})}async function O(e){await b(async()=>{await y(`/sessions/${e}`,{method:`DELETE`}),await te(),r(`notice`,`会话已撤销`)})}function ne(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}async function re(){await b(async()=>ne(await y(`/export`),`dodo-export.json`))}async function k(){f.value&&await b(async()=>{let e=new FormData;e.append(`file`,f.value),p.value=await y(`/import/ticktick/preview`,{method:`POST`,body:e})})}async function A(){await b(async()=>{let e=new FormData;e.append(`file`,f.value);let t=await y(`/import/ticktick`,{method:`POST`,body:e});p.value=null,r(`changed`),r(`notice`,`导入完成:新增 ${t?.imported??0},跳过 ${t?.skipped??0}`)})}async function j(){m.value&&confirm(`恢复为合并模式,将导入 JSON 中的清单与任务。继续吗?`)&&await b(async()=>{await y(`/restore?mode=merge`,{method:`POST`,body:await m.value.text()}),r(`changed`),r(`notice`,`数据已恢复`)})}return ur(()=>{n.view===`habits`?(ee(),D(),_=setInterval(ee,6e4)):te()}),pr(()=>{_&&clearInterval(_)}),(t,n)=>(q(),J(`section`,{class:M([`mvp-view`,{loading:s.value}])},[c.value?(q(),J(`p`,Us,F(c.value),1)):Q(``,!0),e.view===`habits`?(q(),J(K,{key:1},[Y(`header`,Ws,[n[6]||=Y(`div`,null,[Y(`small`,null,`把想坚持的事,变成每天的日常`),Y(`h2`,null,`习惯`)],-1),Y(`button`,{class:`soft-button`,onClick:D},[X(H(Ss)),n[5]||=Z(`刷新`,-1)])]),Y(`form`,{class:`habit-create`,onSubmit:Ko(T,[`prevent`])},[W(Y(`input`,{"onUpdate:modelValue":n[0]||=e=>l.value=e,placeholder:`新习惯名称(如:喝水 8 杯)`,"aria-label":`新习惯名称`},null,512),[[Io,l.value]]),W(Y(`select`,{"onUpdate:modelValue":n[1]||=e=>u.value=e,"aria-label":`习惯类型`},[...n[7]||=[Y(`option`,{value:`boolean`},`完成 / 未完成`,-1),Y(`option`,{value:`numeric`},`按数量记录`,-1)]],512),[[zo,u.value]]),u.value===`numeric`?W((q(),J(`input`,{key:0,"onUpdate:modelValue":n[2]||=e=>d.value=e,type:`number`,min:`0`,step:`any`,placeholder:`目标值`,"aria-label":`目标值`},null,512)),[[Io,d.value,void 0,{number:!0}]]):Q(``,!0),Y(`button`,Gs,[X(H(xs)),n[8]||=Z(`添加`,-1)])],32),Y(`div`,Ks,[(q(!0),J(K,null,br(i.value,e=>(q(),J(`article`,{key:e.id,class:M([`habit-row`,{done:S(e,g.value)}])},[e.kind===`numeric`?(q(),J(`div`,Xs,[Y(`span`,null,[Y(`span`,Zs,F(e.name),1),Y(`small`,null,`今天 `+F(x(e,g.value)?.value||0)+` / `+F(e.target||1)+F(e.unit||``),1)]),Y(`span`,Qs,[W(Y(`input`,{"onUpdate:modelValue":t=>h.value[e.id]=t,type:`number`,min:`0`,max:e.max_value??void 0,step:`any`,placeholder:String(e.target||1),"aria-label":`${e.name}今日数值`},null,8,$s),[[Io,h.value[e.id],void 0,{number:!0}]]),Y(`button`,{class:`soft-button`,onClick:t=>w(e,g.value)},`记录`,8,ec)])])):(q(),J(`div`,qs,[Y(`span`,null,[Y(`span`,Js,F(e.name),1),Y(`small`,null,F(S(e,g.value)?`今天已打卡`:`今天还没做`),1)]),Y(`button`,{class:M([`habit-check-button`,{done:S(e,g.value)}]),"aria-label":S(e,g.value)?`取消${e.name}今天的打卡`:`完成${e.name}今天的打卡`,"aria-pressed":S(e,g.value),onClick:t=>C(e,g.value)},[S(e,g.value)?(q(),Hi(H(ss),{key:0})):Q(``,!0)],10,Ys)])),Y(`button`,{class:`icon ghost`,"aria-label":`归档习惯`,onClick:t=>E(e)},[X(H(Es))],8,tc)],2))),128)),!i.value.length&&!s.value?(q(),J(`div`,nc,`还没有习惯,从一件容易坚持的小事开始。`)):Q(``,!0)])],64)):(q(),J(K,{key:2},[n[18]||=Y(`header`,{class:`view-intro`},[Y(`div`,null,[Y(`small`,null,`备份、迁移与安全`),Y(`h2`,null,`设置与数据`)])],-1),Y(`div`,rc,[Y(`article`,ic,[X(H(fs)),n[11]||=Y(`h3`,null,`数据导出与恢复`,-1),n[12]||=Y(`p`,null,`下载完整 JSON 备份,或从备份恢复。`,-1),Y(`button`,{class:`soft-button`,onClick:re},[X(H(ds)),n[9]||=Z(`导出 JSON`,-1)]),Y(`label`,ac,[X(H(as)),n[10]||=Z(`选择备份`,-1),Y(`input`,{type:`file`,accept:`application/json`,onChange:n[3]||=e=>m.value=e.target.files?.[0]||null},null,32)]),m.value?(q(),J(`button`,{key:0,class:`danger-button`,onClick:j},`确认恢复`)):Q(``,!0)]),Y(`article`,oc,[X(H(Ds)),n[14]||=Y(`h3`,null,`导入`,-1),n[15]||=Y(`p`,null,`先预览变化,确认后才写入。`,-1),Y(`label`,sc,[n[13]||=Z(`选择文件`,-1),Y(`input`,{type:`file`,accept:`.json,.csv`,onChange:n[4]||=e=>f.value=e.target.files?.[0]||null},null,32)]),Y(`button`,{disabled:!f.value,class:`soft-button`,onClick:k},`生成预览`,8,cc),p.value?(q(),J(`pre`,lc,F(JSON.stringify(p.value,null,2)),1)):Q(``,!0),p.value?(q(),J(`button`,{key:1,class:`primary-small`,onClick:A},`确认导入`)):Q(``,!0)]),Y(`article`,uc,[X(H(vs)),n[16]||=Y(`h3`,null,`登录会话`,-1),(q(!0),J(K,null,br(a.value,e=>(q(),J(`div`,{key:e.id,class:`session-row`},[Y(`span`,null,[Y(`b`,null,F(e.current?`当前设备`:`其他设备`),1),Y(`small`,null,F(e.user_agent||`未知设备`)+` · `+F(e.last_seen_at||e.created_at),1)]),e.current?Q(``,!0):(q(),J(`button`,{key:0,class:`danger-text`,onClick:t=>O(e.id)},`撤销`,8,dc))]))),128)),a.value.length?Q(``,!0):(q(),J(`p`,fc,`没有可显示的会话。`))]),o.value.length?(q(),J(`article`,pc,[X(H(is)),n[17]||=Y(`h3`,null,`最近活动`,-1),(q(!0),J(K,null,br(o.value,(e,t)=>(q(),J(`div`,{key:e.id||t,class:`audit-row`},[Y(`span`,null,F(e.action||e.event||`变更`),1),Y(`small`,null,F(e.created_at||e.timestamp),1)]))),128))])):Q(``,!0)])],64))],2))}}),hc={key:0,class:`center`},gc={key:1,class:`auth-shell`},_c={class:`auth-card`},vc={key:0,role:`alert`},yc={key:2,class:`shell`},bc={class:`brand-row`},xc={class:`primary-nav`},Sc={class:`section-title`},Cc={class:`folders`},wc={class:`folder-row`},Tc=[`onClick`],Ec={class:`row-actions`},Dc=[`onClick`],Oc=[`onClick`],kc=[`onClick`],Ac=[`onClick`],jc={class:`row-actions`},Mc=[`onClick`],Nc=[`onClick`],Pc=[`onClick`],Fc={class:`row-actions`},Ic=[`onClick`],Lc=[`onClick`],Rc={class:`topbar`},zc={class:`search`},Bc={class:`list-toolbar`},Vc={key:0},Hc={key:1,class:`pager`},Uc=[`disabled`],Wc=[`disabled`],Gc=[`onClick`],Kc=[`onClick`],qc={class:`meta`},Jc={key:0},Yc={key:1},Xc=[`title`],Zc=[`onClick`],Qc=[`onClick`],$c=[`onClick`],el=[`onClick`],tl=[`onClick`],nl={key:0,class:`empty`},rl={class:`detail-head`},il={key:0,class:`detail-form`},al={class:`detail-title`},ol=[`value`],sl=[`value`],cl={key:0},ll={class:`field`},ul={class:`field-label`},dl={class:`tag-picker`},fl=[`onClick`],pl={key:0,class:`hint`},ml={class:`field markdown`},hl={class:`field-label`},gl=[`innerHTML`],_l={class:`subtasks`},vl={class:`field-label`},yl=[`onClick`],bl={class:`check`},xl={key:0,class:`hint`},Sl={class:`detail-actions`},Cl={key:1,class:`paper`},wl={class:`bottom`},Tl={key:0,class:`toast`,role:`status`},El={key:2,class:`error-toast`,role:`alert`},Dl=50;Qo(Yn({__name:`App`,setup(e){let t=V(null),n=V(!1),r=V(``),i=V(``),a=V([]),o=V([]),s=V([]),c=V([]),l=V([]),u=V(``),d=V(`tasks`),f=V(null),p=V(``),m=V(``),h=V(``),g=V(``),_=V(!1),v=V(!1),y=V(!1),b=V(!1),x=V(!0),S=V(1),C=V(0),w=ba(()=>Math.max(1,Math.ceil(C.value/Dl))),T=V(new Set),E=V(!1),ee=ba(()=>d.value===`trash`?`回收站`:d.value===`today`?`今天`:d.value===`upcoming`?`最近 7 天`:d.value===`habits`?`习惯`:d.value===`settings`?`设置与数据`:o.value.find(e=>e.id===u.value)?.name||`收集箱`),D=ba(()=>d.value===`trash`?l.value:c.value),te=ba(()=>{let e=new Date,t=new Date(e);t.setDate(t.getDate()+7);let n=D.value;return[`habits`,`settings`].includes(d.value)?[]:(d.value===`today`&&(n=n.filter(t=>t.due_at&&new Date(t.due_at).toDateString()===e.toDateString())),d.value===`upcoming`&&(n=n.filter(n=>n.due_at&&new Date(n.due_at)>=e&&new Date(n.due_at)<=t)),m.value.trim()?Ms(n,m.value):n)}),O=ba(()=>Ns(te.value)),ne=ba(()=>O.value),re;On(m,()=>{re&&window.clearTimeout(re),Rs(d.value)&&(S.value=1,re=window.setTimeout(()=>ue(),250))}),On(x,()=>{Rs(d.value)&&(S.value=1,ue())});async function k(e,t={}){let n=new Headers(t.headers||{});!n.has(`Content-Type`)&&t.body&&!(t.body instanceof FormData)&&n.set(`Content-Type`,`application/json`);let r=Vs(t.method);r[`x-csrf-token`]&&n.set(`x-csrf-token`,r[`x-csrf-token`]);let i=await fetch(`/api/v1`+e,{credentials:`include`,headers:n,...t});if(!i.ok){let e=`请求失败`;try{let t=await i.json();e=typeof t.detail==`string`?t.detail:e}catch{}throw Error(e)}return i.status===204?null:i.json()}function A(e){g.value=e,window.setTimeout(()=>{g.value===e&&(g.value=``)},2400)}function j(e){h.value=e instanceof Error?e.message:`请求失败`}async function ie(){try{let e=await k(`/setup/status`);if(t.value=e.initialized,e.initialized){let e=await k(`/bootstrap`);n.value=!0,a.value=e.folders??[],o.value=e.lists??[],s.value=e.tags??[],E.value=!0,u.value=e.inbox_id||o.value.find(e=>e.is_inbox)?.id||o.value[0]?.id||``,T.value=new Set(a.value.map(e=>e.id)),await ue()}}catch{n.value=!1,t.value??=!0}}async function ae(){h.value=``;try{await k(t.value?`/auth/login`:`/setup/initialize`,{method:`POST`,body:JSON.stringify({username:r.value,password:i.value})}),t.value=!0,n.value=!0;let e=await k(`/bootstrap`);a.value=e.folders??[],o.value=e.lists??[],s.value=e.tags??[],E.value=!0,u.value=e.inbox_id||o.value.find(e=>e.is_inbox)?.id||o.value[0]?.id||``,T.value=new Set(a.value.map(e=>e.id)),await ue()}catch(e){j(e)}}function oe(e){let t=new Date;return t.setDate(t.getDate()+e),t.setHours(0,0,0,0),t.toISOString()}async function se(){let e=new URLSearchParams({page:String(S.value),page_size:String(Dl)});m.value?e.set(`q`,m.value):d.value===`tasks`&&u.value&&e.set(`list_id`,u.value),d.value===`today`&&(e.set(`due_from`,oe(0)),e.set(`due_to`,oe(1))),d.value===`upcoming`&&(e.set(`due_from`,oe(0)),e.set(`due_to`,oe(8))),!x.value&&d.value!==`trash`&&e.set(`completed`,`false`);let t=await k(`/tasks?${e}`);c.value=t.items??[],C.value=t.total??c.value.length}async function le(e=!1){if(!e&&E.value)return;let[t,n,r]=await Promise.all([k(`/folders`),k(`/lists`),k(`/tags`).catch(()=>[])]);a.value=t,o.value=n,s.value=r,E.value=!0,o.value.some(e=>e.id===u.value)||(u.value=o.value.find(e=>e.is_inbox)?.id||o.value[0]?.id||``),T.value=new Set(a.value.map(e=>e.id))}async function ue(){_.value=!0,h.value=``;try{E.value||await le(),await se(),S.value>w.value&&(S.value=w.value,await se())}catch(e){j(e)}finally{_.value=!1}}async function de(){E.value=!1,await ue()}async function fe(){let e=await k(`/trash?page=${S.value}&page_size=${Dl}`);l.value=e.items??[],C.value=e.total??l.value.length}async function pe(){_.value=!0,h.value=``;try{await fe()}catch(e){j(e)}finally{_.value=!1}}async function N(e,t){d.value=e,t&&(u.value=t),S.value=1,f.value=null,v.value=!1,y.value=!1,e===`trash`?await pe():Rs(e)?await ue():c.value=[]}async function me(){if(p.value.trim()&&u.value)try{let e=await k(`/tasks`,{method:`POST`,body:JSON.stringify({title:p.value.trim(),list_id:u.value})});c.value.push(e),p.value=``,I(e),A(`任务已添加`)}catch(e){j(e)}}async function he(e,t){let n=await k(`/tasks/${e.id}`,{method:`PATCH`,body:JSON.stringify({...t,version:e.version})}),r=c.value.findIndex(t=>t.id===e.id);return r>=0&&(c.value[r]={...c.value[r],...n}),f.value?.id===e.id&&(f.value={...f.value,...n}),n}async function ge(e){try{await he(e,{completed:!e.completed}),A(e.completed?`已重新打开`:`完成啦`)}catch(e){j(e)}}async function P(){if(f.value?.title.trim())try{let e=f.value;await he(e,{title:e.title.trim(),description:e.description,priority:Number(e.priority),due_at:Fs(Ps(e.due_at)),list_id:e.list_id,recurrence_rule:e.recurrence_rule||null,recurrence_end_at:e.recurrence_end_at||null,tag_ids:(e.tags??[]).map(e=>e.id)}),A(`已保存`)}catch(e){j(e)}}async function _e(e){if(window.confirm(`把“${e.title}”移到回收站?`))try{await k(`/tasks/${e.id}`,{method:`DELETE`}),c.value=c.value.filter(t=>t.id!==e.id&&t.parent_id!==e.id),f.value=null,y.value=!1,A(`已移到回收站`)}catch(e){j(e)}}async function ve(e){try{await k(`/tasks/${e.id}/restore`,{method:`POST`}),l.value=l.value.filter(t=>t.id!==e.id),A(`任务已恢复`)}catch(e){j(e)}}async function ye(e){if(window.confirm(`永久删除“${e.title}”?这个操作不能撤销。`))try{await k(`/trash/${e.id}`,{method:`DELETE`}),l.value=l.value.filter(t=>t.id!==e.id),A(`已永久删除`)}catch(e){j(e)}}async function be(){if(!f.value)return;let e=window.prompt(`子任务名称`)?.trim();if(e)try{let t=await k(`/tasks`,{method:`POST`,body:JSON.stringify({title:e,list_id:f.value.list_id,parent_id:f.value.id})});c.value.push(t),A(`子任务已添加`)}catch(e){j(e)}}function I(e){f.value={...e,tags:e.tags?[...e.tags]:[]},b.value=!1,y.value=!0}async function xe(){let e=window.prompt(`文件夹名称`)?.trim();if(e)try{a.value.push(await k(`/folders`,{method:`POST`,body:JSON.stringify({name:e})})),A(`文件夹已创建`)}catch(e){j(e)}}async function Se(e=null){let t=window.prompt(`清单名称`)?.trim();if(t)try{let n=await k(`/lists`,{method:`POST`,body:JSON.stringify({name:t,folder_id:e})});o.value.push(n),await N(`tasks`,n.id),A(`清单已创建`)}catch(e){j(e)}}async function L(e,t){let n=window.prompt(`新名称`,t.name)?.trim();if(n&&n!==t.name)try{let r=await k(`/${e}/${t.id}`,{method:`PATCH`,body:JSON.stringify({name:n})});Object.assign(t,r),A(`已重命名`)}catch(e){j(e)}}async function Ce(e,t){if(window.confirm(`删除“${t.name}”?`))try{await k(`/${e}/${t.id}`,{method:`DELETE`}),await de(),A(`已删除`)}catch(e){j(e)}}async function we(){let e=window.prompt(`标签名称`)?.trim();if(!e)return;let t=window.prompt(`标签颜色`,`#F15A29`)||`#F15A29`;try{s.value.push(await k(`/tags`,{method:`POST`,body:JSON.stringify({name:e,color:t})})),A(`标签已创建`)}catch(e){j(e)}}function Te(e){return!!f.value?.tags?.some(t=>t.id===e.id)}function Ee(e){f.value&&(f.value.tags=Te(e)?(f.value.tags??[]).filter(t=>t.id!==e.id):[...f.value.tags??[],e])}function De(e){let t=new Set(T.value);t.has(e)?t.delete(e):t.add(e),T.value=t}function Oe(e){return e?new Intl.DateTimeFormat(`zh-CN`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}).format(new Date(e)):``}function ke(){un(()=>document.querySelector(`.quick-input`)?.focus())}function Ae(){S.value<=1||_.value||(--S.value,d.value===`trash`?pe():Rs(d.value)&&ue())}function je(){S.value>=w.value||_.value||(S.value+=1,d.value===`trash`?pe():Rs(d.value)&&ue())}return ur(ie),(e,l)=>t.value===null?(q(),J(`div`,hc,[...l[33]||=[Y(`span`,{class:`loader`},null,-1),Z(`正在打开 dodo…`,-1)]])):n.value?(q(),J(`div`,yc,[v.value||y.value?(q(),J(`div`,{key:0,class:`scrim`,onClick:l[2]||=e=>{v.value=!1,y.value=!1}})):Q(``,!0),Y(`aside`,{class:M([`sidebar`,{open:v.value}])},[Y(`div`,bc,[l[37]||=Y(`div`,{class:`brand small`},[Z(`do`),Y(`span`,null,`do`)],-1),Y(`button`,{class:`icon mobile-only`,"aria-label":`关闭菜单`,onClick:l[3]||=e=>v.value=!1},[X(H(Os))])]),Y(`nav`,xc,[Y(`button`,{class:M({active:d.value===`tasks`&&o.value.find(e=>e.id===u.value)?.is_inbox}),onClick:l[4]||=e=>N(`tasks`,o.value.find(e=>e.is_inbox)?.id)},[X(H(hs)),l[38]||=Z(`收集箱`,-1)],2),Y(`button`,{class:M({active:d.value===`today`}),onClick:l[5]||=e=>N(`today`)},[X(H(_s)),l[39]||=Z(`今天`,-1)],2),Y(`button`,{class:M({active:d.value===`upcoming`}),onClick:l[6]||=e=>N(`upcoming`)},[X(H(os)),l[40]||=Z(`最近 7 天`,-1)],2),Y(`button`,{class:M({active:d.value===`habits`}),onClick:l[7]||=e=>N(`habits`)},[X(H(Cs)),l[41]||=Z(`习惯`,-1)],2),Y(`button`,{class:M({active:d.value===`trash`}),onClick:l[8]||=e=>N(`trash`)},[X(H(Es)),l[42]||=Z(`回收站`,-1)],2)]),Y(`div`,Sc,[l[43]||=Y(`span`,null,`我的清单`,-1),Y(`span`,null,[Y(`button`,{class:`mini-icon`,"aria-label":`新建文件夹`,onClick:xe},[X(H(ps))]),Y(`button`,{class:`mini-icon`,"aria-label":`新建清单`,onClick:l[9]||=e=>Se(null)},[X(H(xs))])])]),Y(`div`,Cc,[(q(!0),J(K,null,br(a.value,e=>(q(),J(`div`,{key:e.id,class:`folder-block`},[Y(`div`,wc,[Y(`button`,{onClick:t=>De(e.id)},[T.value.has(e.id)?(q(),Hi(H(cs),{key:0})):(q(),Hi(H(ls),{key:1})),X(H(ps)),Z(F(e.name),1)],8,Tc),Y(`span`,Ec,[Y(`button`,{"aria-label":`重命名文件夹`,onClick:t=>L(`folders`,e)},[X(H(bs))],8,Dc),Y(`button`,{"aria-label":`删除文件夹`,onClick:t=>Ce(`folders`,e)},[X(H(Es))],8,Oc),Y(`button`,{"aria-label":`在文件夹中新建清单`,onClick:t=>Se(e.id)},[X(H(xs))],8,kc)])]),(q(!0),J(K,null,br(o.value.filter(t=>t.folder_id===e.id&&!t.is_inbox),t=>W((q(),J(`button`,{key:t.id,class:M([`list-row`,{active:d.value===`tasks`&&u.value===t.id}]),onClick:e=>N(`tasks`,t.id)},[l[44]||=Y(`i`,null,null,-1),Y(`span`,null,F(t.name),1),Y(`span`,jc,[Y(`button`,{"aria-label":`重命名清单`,onClick:Ko(e=>L(`lists`,t),[`stop`])},[X(H(bs))],8,Mc),Y(`button`,{"aria-label":`删除清单`,onClick:Ko(e=>Ce(`lists`,t),[`stop`])},[X(H(Es))],8,Nc)])],10,Ac)),[[eo,T.value.has(e.id)]])),128))]))),128)),(q(!0),J(K,null,br(o.value.filter(e=>!e.folder_id&&!e.is_inbox),e=>(q(),J(`button`,{key:e.id,class:M([`list-row`,{active:d.value===`tasks`&&u.value===e.id}]),onClick:t=>N(`tasks`,e.id)},[l[45]||=Y(`i`,null,null,-1),Y(`span`,null,F(e.name),1),Y(`span`,Fc,[Y(`button`,{"aria-label":`重命名清单`,onClick:Ko(t=>L(`lists`,e),[`stop`])},[X(H(bs))],8,Ic),Y(`button`,{"aria-label":`删除清单`,onClick:Ko(t=>Ce(`lists`,e),[`stop`])},[X(H(Es))],8,Lc)])],10,Pc))),128))]),Y(`button`,{class:M([`settings`,{active:d.value===`settings`}]),onClick:l[10]||=e=>N(`settings`)},[X(H(Ts)),l[46]||=Z(`设置`,-1)],2)],2),Y(`main`,null,[Y(`header`,Rc,[Y(`button`,{class:`icon mobile-only`,"aria-label":`打开菜单`,onClick:l[11]||=e=>v.value=!0},[X(H(ys))]),Y(`div`,null,[l[47]||=Y(`p`,null,`今天也慢慢来`,-1),Y(`h1`,null,F(ee.value),1)]),Y(`label`,zc,[X(H(ws)),W(Y(`input`,{"onUpdate:modelValue":l[12]||=e=>m.value=e,placeholder:`搜索任务…`,"aria-label":`搜索任务`},null,512),[[Io,m.value]]),l[48]||=Y(`kbd`,null,`⌘ K`,-1)])]),[`habits`,`settings`].includes(d.value)?(q(),Hi(mc,{key:d.value,view:d.value,onChanged:de,onNotice:A},null,8,[`view`])):(q(),J(K,{key:1},[d.value===`trash`?Q(``,!0):(q(),J(`form`,{key:0,class:`quick`,onSubmit:Ko(me,[`prevent`])},[X(H(us)),W(Y(`input`,{"onUpdate:modelValue":l[13]||=e=>p.value=e,class:`quick-input`,placeholder:`添加任务,按回车保存`},null,512),[[Io,p.value]]),l[49]||=Y(`button`,null,`添加`,-1)],32)),Y(`div`,Bc,[d.value===`trash`?Q(``,!0):(q(),J(`label`,Vc,[W(Y(`input`,{"onUpdate:modelValue":l[14]||=e=>x.value=e,type:`checkbox`},null,512),[[Lo,x.value]]),l[50]||=Z(` 显示已完成`,-1)])),Y(`span`,null,`第 `+F(S.value)+` / `+F(w.value)+` 页 · 共 `+F(C.value)+` 项`,1),m.value?(q(),J(`button`,{key:1,class:`link`,onClick:l[15]||=e=>m.value=``},`清除搜索`)):Q(``,!0)]),d.value!==`trash`&&w.value>1?(q(),J(`div`,Hc,[Y(`button`,{class:`secondary`,disabled:S.value<=1||_.value,onClick:Ae},`上一页`,8,Uc),Y(`span`,null,F(S.value)+` / `+F(w.value),1),Y(`button`,{class:`secondary`,disabled:S.value>=w.value||_.value,onClick:je},`下一页`,8,Wc)])):Q(``,!0),Y(`section`,{class:M([`task-list`,{loading:_.value}])},[(q(!0),J(K,null,br(ne.value,e=>(q(),J(K,{key:e.task.id},[Y(`article`,{class:M([`task-row`,{done:e.task.completed,selected:f.value?.id===e.task.id}])},[d.value===`trash`?Q(``,!0):(q(),J(`button`,{key:0,class:M([`check`,`p${e.task.priority}`]),"aria-label":`切换完成状态`,onClick:Ko(t=>ge(e.task),[`stop`])},[e.task.completed?(q(),Hi(H(ss),{key:0})):Q(``,!0)],10,Gc)),Y(`button`,{class:`task-main`,onClick:t=>d.value===`trash`?void 0:I(e.task)},[Y(`strong`,null,F(e.task.title),1),Y(`span`,qc,[e.task.due_at?(q(),J(`span`,Jc,[X(H(os)),Z(F(Oe(e.task.due_at)),1)])):Q(``,!0),e.subtasks.length?(q(),J(`span`,Yc,[X(H(gs)),Z(F(e.subtasks.filter(e=>e.completed).length)+`/`+F(e.subtasks.length),1)])):Q(``,!0),(q(!0),J(K,null,br(e.task.tags,e=>(q(),J(`i`,{key:e.id,class:`tag-dot`,style:ce({background:e.color}),title:e.name},null,12,Xc))),128))])],8,Kc),e.task.priority?(q(),J(`span`,{key:1,class:M([`priority`,`p${e.task.priority}`])},F([``,`低`,`中`,`高`][e.task.priority]),3)):Q(``,!0),d.value===`trash`?(q(),J(`button`,{key:2,class:`restore`,onClick:t=>ve(e.task)},[X(H(as)),l[51]||=Z(`恢复`,-1)],8,Zc)):(q(),J(`button`,{key:3,class:`icon ghost`,"aria-label":`删除任务`,onClick:Ko(t=>_e(e.task),[`stop`])},[X(H(Es))],8,Qc)),d.value===`trash`?(q(),J(`button`,{key:4,class:`icon danger ghost`,"aria-label":`永久删除`,onClick:Ko(t=>ye(e.task),[`stop`])},[X(H(Os))],8,$c)):Q(``,!0)],2),(q(!0),J(K,null,br(e.subtasks,e=>(q(),J(`article`,{key:e.id,class:M([`task-row subtask`,{done:e.completed}])},[X(H(ms)),Y(`button`,{class:`check`,onClick:t=>ge(e)},[e.completed?(q(),Hi(H(ss),{key:0})):Q(``,!0)],8,el),Y(`button`,{class:`task-main`,onClick:t=>I(e)},[Y(`strong`,null,F(e.title),1)],8,tl)],2))),128))],64))),128)),!te.value.length&&!_.value?(q(),J(`div`,nl,[X(H(_s)),Y(`b`,null,F(m.value?`没有匹配的任务`:`这里还很安静`),1),Y(`span`,null,F(m.value?`换个关键词试试`:`写下第一件想完成的小事吧`),1)])):Q(``,!0)],2)],64))]),Y(`aside`,{class:M([`detail`,{open:y.value}])},[Y(`div`,rl,[l[52]||=Y(`span`,null,`任务详情`,-1),Y(`button`,{class:`icon mobile-only`,"aria-label":`关闭详情`,onClick:l[16]||=e=>y.value=!1},[X(H(Os))])]),f.value?(q(),J(`div`,il,[Y(`div`,al,[Y(`button`,{class:M([`check large`,`p${f.value.priority}`]),onClick:l[17]||=e=>ge(f.value)},[f.value.completed?(q(),Hi(H(ss),{key:0})):Q(``,!0)],2),W(Y(`textarea`,{"onUpdate:modelValue":l[18]||=e=>f.value.title=e,rows:`2`,"aria-label":`任务标题`,onBlur:P},null,544),[[Io,f.value.title]])]),Y(`label`,null,[l[53]||=Z(`清单`,-1),W(Y(`select`,{"onUpdate:modelValue":l[19]||=e=>f.value.list_id=e,onChange:P},[(q(!0),J(K,null,br(o.value,e=>(q(),J(`option`,{key:e.id,value:e.id},F(e.name),9,ol))),128))],544),[[zo,f.value.list_id]])]),Y(`label`,null,[l[54]||=Z(`截止时间`,-1),Y(`input`,{value:H(Ps)(f.value.due_at),type:`datetime-local`,onChange:l[20]||=e=>{f.value.due_at=e.target.value,P()}},null,40,sl)]),Y(`label`,null,[l[56]||=Z(`优先级`,-1),W(Y(`select`,{"onUpdate:modelValue":l[21]||=e=>f.value.priority=e,onChange:P},[...l[55]||=[Y(`option`,{value:0},`无`,-1),Y(`option`,{value:1},`低`,-1),Y(`option`,{value:2},`中`,-1),Y(`option`,{value:3},`高`,-1)]],544),[[zo,f.value.priority,void 0,{number:!0}]])]),Y(`label`,null,[l[58]||=Z(`重复`,-1),W(Y(`select`,{"onUpdate:modelValue":l[22]||=e=>f.value.recurrence_rule=e,onChange:P},[...l[57]||=[Y(`option`,{value:``},`不重复`,-1),Y(`option`,{value:`FREQ=DAILY`},`每天`,-1),Y(`option`,{value:`FREQ=WEEKLY`},`每周`,-1),Y(`option`,{value:`FREQ=MONTHLY`},`每月`,-1)]],544),[[zo,f.value.recurrence_rule]])]),f.value.recurrence_rule?(q(),J(`label`,cl,[l[59]||=Z(`重复截止`,-1),W(Y(`input`,{"onUpdate:modelValue":l[23]||=e=>f.value.recurrence_end_at=e,type:`date`,onChange:P},null,544),[[Io,f.value.recurrence_end_at]])])):Q(``,!0),Y(`div`,ll,[Y(`div`,ul,[l[61]||=Y(`span`,null,`标签`,-1),Y(`button`,{class:`link`,onClick:we},[X(H(xs)),l[60]||=Z(`新建`,-1)])]),Y(`div`,dl,[(q(!0),J(K,null,br(s.value,e=>(q(),J(`button`,{key:e.id,class:M({chosen:Te(e)}),onClick:t=>{Ee(e),P()}},[Y(`i`,{style:ce({background:e.color})},null,4),Z(F(e.name),1)],10,fl))),128)),s.value.length?Q(``,!0):(q(),J(`span`,pl,`还没有标签`))])]),Y(`div`,ml,[Y(`div`,hl,[l[62]||=Y(`span`,null,`备注`,-1),Y(`span`,null,[Y(`button`,{class:M({active:!b.value}),onClick:l[24]||=e=>b.value=!1},`编辑`,2),Y(`button`,{class:M({active:b.value}),onClick:l[25]||=e=>b.value=!0},`预览`,2)])]),b.value?(q(),J(`div`,{key:0,class:`markdown-preview`,innerHTML:H(js)(f.value.description)},null,8,gl)):W((q(),J(`textarea`,{key:1,"onUpdate:modelValue":l[26]||=e=>f.value.description=e,rows:`9`,placeholder:`支持 Markdown…`,onBlur:P},null,544)),[[Io,f.value.description]])]),Y(`div`,_l,[Y(`div`,vl,[l[64]||=Y(`span`,null,`子任务`,-1),Y(`button`,{class:`link`,onClick:be},[X(H(xs)),l[63]||=Z(`添加`,-1)])]),(q(!0),J(K,null,br(c.value.filter(e=>e.parent_id===f.value?.id),e=>(q(),J(`button`,{key:e.id,class:`subtask-detail`,onClick:t=>ge(e)},[Y(`span`,bl,[e.completed?(q(),Hi(H(ss),{key:0})):Q(``,!0)]),Y(`span`,{class:M({strike:e.completed})},F(e.title),3)],8,yl))),128)),c.value.some(e=>e.parent_id===f.value?.id)?Q(``,!0):(q(),J(`span`,xl,`把这件事拆成更小的步骤`))]),Y(`div`,Sl,[Y(`button`,{class:`secondary`,onClick:P},`保存更改`),Y(`button`,{class:`danger-text`,onClick:l[27]||=e=>_e(f.value)},[X(H(Es)),l[65]||=Z(`移到回收站`,-1)])])])):(q(),J(`div`,Cl,[X(H(gs)),l[66]||=Y(`b`,null,`选中一个任务`,-1),l[67]||=Y(`p`,null,`日期、优先级、标签、子任务和 Markdown 备注会出现在这里。`,-1)]))],2),Y(`nav`,wl,[Y(`button`,{class:M({active:d.value===`today`}),onClick:l[28]||=e=>N(`today`)},[X(H(_s)),l[68]||=Y(`span`,null,`今天`,-1)],2),Y(`button`,{class:M({active:d.value===`tasks`}),onClick:l[29]||=e=>N(`tasks`,u.value)},[X(H(hs)),l[69]||=Y(`span`,null,`任务`,-1)],2),Y(`button`,{class:M({active:d.value===`habits`}),onClick:l[30]||=e=>N(`habits`)},[X(H(Cs)),l[70]||=Y(`span`,null,`习惯`,-1)],2),Y(`button`,{class:M({active:d.value===`settings`}),onClick:l[31]||=e=>N(`settings`)},[X(H(Ts)),l[71]||=Y(`span`,null,`设置`,-1)],2)]),[`tasks`,`today`,`upcoming`].includes(d.value)?(q(),J(`button`,{key:1,class:`fab`,"aria-label":`添加任务`,onClick:ke},[X(H(us))])):Q(``,!0),X(Ia,{name:`toast`},{default:Sn(()=>[g.value?(q(),J(`div`,Tl,F(g.value),1)):Q(``,!0)]),_:1}),h.value?(q(),J(`div`,El,[Z(F(h.value),1),Y(`button`,{onClick:l[32]||=e=>h.value=``},[X(H(Os))])])):Q(``,!0)])):(q(),J(`div`,gc,[Y(`section`,_c,[l[36]||=Y(`div`,{class:`brand`},[Z(`do`),Y(`span`,null,`do`)],-1),Y(`p`,null,F(t.value?`欢迎回来,继续把生活理顺。`:`创建你的 dodo`),1),Y(`label`,null,[l[34]||=Z(`用户名`,-1),W(Y(`input`,{"onUpdate:modelValue":l[0]||=e=>r.value=e,autocomplete:`username`,placeholder:`你的用户名`},null,512),[[Io,r.value]])]),Y(`label`,null,[l[35]||=Z(`密码`,-1),W(Y(`input`,{"onUpdate:modelValue":l[1]||=e=>i.value=e,type:`password`,autocomplete:`current-password`,placeholder:`至少 12 位`,onKeyup:Jo(ae,[`enter`])},null,544),[[Io,i.value]])]),Y(`button`,{class:`primary`,onClick:ae},F(t.value?`登录`:`开始使用`),1),h.value?(q(),J(`small`,vc,F(h.value),1)):Q(``,!0)])]))}})).mount(`#app`),`serviceWorker`in navigator&&(navigator.serviceWorker.getRegistrations().then(e=>{e.forEach(e=>e.unregister())}),caches.keys().then(e=>e.forEach(e=>caches.delete(e)))); \ No newline at end of file diff --git a/backend/static/assets/index-VdV4G6jw.js b/backend/static/assets/index-VdV4G6jw.js new file mode 100644 index 0000000..fd69aef --- /dev/null +++ b/backend/static/assets/index-VdV4G6jw.js @@ -0,0 +1,4 @@ +(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,T=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),E=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ee=/-\w/g,D=E(e=>e.replace(ee,e=>e.slice(1).toUpperCase())),te=/\B([A-Z])/g,O=E(e=>e.replace(te,`-$1`).toLowerCase()),ne=E(e=>e.charAt(0).toUpperCase()+e.slice(1)),re=E(e=>e?`on${ne(e)}`:``),k=(e,t)=>!Object.is(e,t),A=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},M=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ie=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},ae,oe=()=>ae||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function se(e){if(d(e)){let t={};for(let n=0;n{if(e){let n=e.split(le);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function N(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;nge(e,t))}var ve=e=>!!(e&&e.__v_isRef===!0),F=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?ve(e)?F(e.value):JSON.stringify(e,ye,2):String(e),ye=(e,t)=>ve(t)?ye(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[be(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>be(e))}:_(t)?be(t):v(t)&&!d(t)&&!C(t)?String(t):t,be=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,I,xe=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&I&&(I.active?(this.parent=I,this.index=(I.scopes||(I.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e0&&--this._on===0){if(I===this)I=this.prevScope;else{let e=I;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(De){let e=De;for(De=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ee;){let t=Ee;for(Ee=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function je(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Me(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Fe(r),Ie(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ne(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Pe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Pe(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===He)||(e.globalVersion=He,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ne(e))))return;e.flags|=2;let t=e.dep,n=L,r=Le;L=e,Le=!0;try{je(e);let n=e.fn(e._value);(t.version===0||k(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{L=n,Le=r,Me(e),e.flags&=-3}}function Fe(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Fe(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ie(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Le=!0,Re=[];function ze(){Re.push(Le),Le=!1}function Be(){let e=Re.pop();Le=e===void 0||e}function Ve(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=L;L=void 0;try{t()}finally{L=e}}}var He=0,Ue=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},We=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!L||!Le||L===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==L)t=this.activeLink=new Ue(L,this),L.deps?(t.prevDep=L.depsTail,L.depsTail.nextDep=t,L.depsTail=t):L.deps=L.depsTail=t,Ge(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=L.depsTail,t.nextDep=void 0,L.depsTail.nextDep=t,L.depsTail=t,L.deps===t&&(L.deps=e)}return t}trigger(e){this.version++,He++,this.notify(e)}notify(e){ke();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ae()}}};function Ge(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ge(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Ke=new WeakMap,qe=Symbol(``),Je=Symbol(``),Ye=Symbol(``);function R(e,t,n){if(Le&&L){let t=Ke.get(e);t||Ke.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new We),r.map=t,r.key=n),r.track()}}function Xe(e,t,n,r,i,a){let o=Ke.get(e);if(!o){He++;return}let s=e=>{e&&e.trigger()};if(ke(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Ye||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Ye)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(qe)),f(e)&&s(o.get(Je)));break;case`delete`:i||(s(o.get(qe)),f(e)&&s(o.get(Je)));break;case`set`:f(e)&&s(o.get(qe))}}Ae()}function Ze(e){let t=z(e);return t===e?t:(R(t,`iterate`,Ye),It(e)?t:t.map(zt))}function Qe(e){return R(e=z(e),`iterate`,Ye),e}function $e(e,t){return Ft(e)?Bt(Pt(e)?zt(t):t):zt(t)}var et={__proto__:null,[Symbol.iterator](){return tt(this,Symbol.iterator,e=>$e(this,e))},concat(...e){return Ze(this).concat(...e.map(e=>d(e)?Ze(e):e))},entries(){return tt(this,`entries`,e=>(e[1]=$e(this,e[1]),e))},every(e,t){return rt(this,`every`,e,t,void 0,arguments)},filter(e,t){return rt(this,`filter`,e,t,e=>e.map(e=>$e(this,e)),arguments)},find(e,t){return rt(this,`find`,e,t,e=>$e(this,e),arguments)},findIndex(e,t){return rt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return rt(this,`findLast`,e,t,e=>$e(this,e),arguments)},findLastIndex(e,t){return rt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return rt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return at(this,`includes`,e)},indexOf(...e){return at(this,`indexOf`,e)},join(e){return Ze(this).join(e)},lastIndexOf(...e){return at(this,`lastIndexOf`,e)},map(e,t){return rt(this,`map`,e,t,void 0,arguments)},pop(){return ot(this,`pop`)},push(...e){return ot(this,`push`,e)},reduce(e,...t){return it(this,`reduce`,e,t)},reduceRight(e,...t){return it(this,`reduceRight`,e,t)},shift(){return ot(this,`shift`)},some(e,t){return rt(this,`some`,e,t,void 0,arguments)},splice(...e){return ot(this,`splice`,e)},toReversed(){return Ze(this).toReversed()},toSorted(e){return Ze(this).toSorted(e)},toSpliced(...e){return Ze(this).toSpliced(...e)},unshift(...e){return ot(this,`unshift`,e)},values(){return tt(this,`values`,e=>$e(this,e))}};function tt(e,t,n){let r=Qe(e),i=r[t]();return r!==e&&!It(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var nt=Array.prototype;function rt(e,t,n,r,i,a){let o=Qe(e),s=o!==e&&!It(e),c=o[t];if(c!==nt[t]){let t=c.apply(e,a);return s?zt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,$e(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function it(e,t,n,r){let i=Qe(e),a=i!==e&&!It(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=$e(e,t)),n.call(this,t,$e(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?$e(e,c):c}function at(e,t,n){let r=z(e);R(r,`iterate`,Ye);let i=r[t](...n);return(i===-1||i===!1)&&Lt(n[0])?(n[0]=z(n[0]),r[t](...n)):i}function ot(e,t,n=[]){ze(),ke();let r=z(e)[t].apply(e,n);return Ae(),Be(),r}var st=e(`__proto__,__v_isRef,__isVue`),ct=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function lt(e){_(e)||(e=String(e));let t=z(this);return R(t,`has`,e),t.hasOwnProperty(e)}var ut=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Ot:Dt:i?Et:Tt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=et[t]))return e;if(t===`hasOwnProperty`)return lt}let o=Reflect.get(e,t,B(e)?e:n);if((_(t)?ct.has(t):st(t))||(r||R(e,`get`,t),i))return o;if(B(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?Mt(e):e}return v(o)?r?Mt(o):At(o):o}},dt=class extends ut{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=Ft(i);if(!It(n)&&!Ft(n)&&(i=z(i),n=z(n)),!a&&B(i)&&!B(n))return e||(i.value=n),!0}let o=a?Number(t)e,_t=e=>Reflect.getPrototypeOf(e);function vt(e,t,n){return function(...r){let i=this.__v_raw,a=z(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?gt:t?Bt:zt;return!t&&R(a,`iterate`,l?Je:qe),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function yt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function bt(e,t){let n={get(n){let r=this.__v_raw,i=z(r),a=z(n);e||(k(n,a)&&R(i,`get`,n),R(i,`get`,a));let{has:o}=_t(i),s=t?gt:e?Bt:zt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&R(z(t),`iterate`,qe),t.size},has(t){let n=this.__v_raw,r=z(n),i=z(t);return e||(k(t,i)&&R(r,`has`,t),R(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=z(a),s=t?gt:e?Bt:zt;return!e&&R(o,`iterate`,qe),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:yt(`add`),set:yt(`set`),delete:yt(`delete`),clear:yt(`clear`)}:{add(e){let n=z(this),r=_t(n),i=z(e),a=!t&&!It(e)&&!Ft(e)?i:e;return r.has.call(n,a)||k(e,a)&&r.has.call(n,e)||k(i,a)&&r.has.call(n,i)||(n.add(a),Xe(n,`add`,a,a)),this},set(e,n){!t&&!It(n)&&!Ft(n)&&(n=z(n));let r=z(this),{has:i,get:a}=_t(r),o=i.call(r,e);o||=(e=z(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?k(n,s)&&Xe(r,`set`,e,n,s):Xe(r,`add`,e,n),this},delete(e){let t=z(this),{has:n,get:r}=_t(t),i=n.call(t,e);i||=(e=z(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&Xe(t,`delete`,e,void 0,a),o},clear(){let e=z(this),t=e.size!==0,n=e.clear();return t&&Xe(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=vt(r,e,t)}),n}function xt(e,t){let n=bt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var St={get:xt(!1,!1)},Ct={get:xt(!1,!0)},wt={get:xt(!0,!1)},Tt=new WeakMap,Et=new WeakMap,Dt=new WeakMap,Ot=new WeakMap;function kt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function At(e){return Ft(e)?e:Nt(e,!1,pt,St,Tt)}function jt(e){return Nt(e,!1,ht,Ct,Et)}function Mt(e){return Nt(e,!0,mt,wt,Dt)}function Nt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=kt(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Pt(e){return Ft(e)?Pt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ft(e){return!!(e&&e.__v_isReadonly)}function It(e){return!!(e&&e.__v_isShallow)}function Lt(e){return e?!!e.__v_raw:!1}function z(e){let t=e&&e.__v_raw;return t?z(t):e}function Rt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&j(e,`__v_skip`,!0),e}var zt=e=>v(e)?At(e):e,Bt=e=>v(e)?Mt(e):e;function B(e){return e?e.__v_isRef===!0:!1}function V(e){return Vt(e,!1)}function Vt(e,t){return B(e)?e:new Ht(e,t)}var Ht=class{constructor(e,t){this.dep=new We,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:z(e),this._value=t?e:zt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||It(e)||Ft(e);e=n?e:z(e),k(e,t)&&(this._rawValue=e,this._value=n?e:zt(e),this.dep.trigger())}};function H(e){return B(e)?e.value:e}var Ut={get:(e,t,n)=>t===`__v_raw`?e:H(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return B(i)&&!B(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Wt(e){return Pt(e)?e:new Proxy(e,Ut)}var Gt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new We(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=He-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&L!==this)return Oe(this,!0),!0}get value(){let e=this.dep.track();return Pe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Kt(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new Gt(r,i,n)}var qt={},Jt=new WeakMap,Yt=void 0;function Xt(e,t=!1,n=Yt){if(n){let t=Jt.get(n);t||Jt.set(n,t=[]),t.push(e)}}function Zt(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:It(e)||o===!1||o===0?Qt(e,1):Qt(e),m,g,_,v,y=!1,b=!1;if(B(e)?(g=()=>e.value,y=It(e)):Pt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Pt(e)||It(e)),g=()=>e.map(e=>{if(B(e))return e.value;if(Pt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){ze();try{_()}finally{Be()}}let t=Yt;Yt=m;try{return f?f(e,3,[v]):e(v)}finally{Yt=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>Qt(e(),t)}let x=Se(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(qt):qt,w=e=>{if(m.flags&1&&(m.dirty||e)){if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>k(e,C[t])):k(t,C))){_&&_();let e=Yt;Yt=m;try{let e=[t,C===qt?void 0:b&&C[0]===qt?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{Yt=e}}}else m.run()}};return u&&u(w),m=new we(g),m.scheduler=l?()=>l(w,!1):w,v=e=>Xt(e,!1,m),_=m.onStop=()=>{let e=Jt.get(m);if(e){if(f)f(e,4);else for(let t of e)t();Jt.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function Qt(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,B(e))Qt(e.value,t,n);else if(d(e))for(let r=0;r{Qt(e,t,n)});else if(C(e)){for(let r in e)Qt(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Qt(e[r],t,n)}return e}function $t(e,t,n,r){try{return r?e(...r):e()}catch(e){tn(e,t,n)}}function en(e,t,n,r){if(h(e)){let i=$t(e,t,n,r);return i&&y(i)&&i.catch(e=>{tn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a>>1,i=U[r],a=_n(i);a=_n(n)?U.push(e):U.splice(dn(t),0,e),e.flags|=1,pn()}}function pn(){ln||=cn.then(vn)}function mn(e){if(!d(e))on&&e.id===-1?on.splice(sn+1,0,e):e.flags&1||(an.push(e),e.flags|=1);else for(let t=0;t_n(e)-_n(t));if(an.length=0,on){for(let t=0;te.id==null?e.flags&2?-1:1/0:e.id;function vn(e){try{for(rn=0;rn{r._d&&Bi(-1);let i=xn(t),a=Ii.length,o;try{o=e(...n)}finally{for(let e=Ii.length;e>a;e--)Ri();xn(i),r._d&&Bi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function W(e,n){if(yn===null)return e;let r=va(yn),i=e.dirs||=[];for(let e=0;e1)return n&&h(t)?t.call(r&&r.proxy):t}}var En=Symbol.for(`v-scx`),Dn=()=>Tn(En);function On(e,t,n){return kn(e,t,n)}function kn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(da){if(c===`sync`){let e=Dn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=ia;u.call=(e,t,n)=>en(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{bi(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():fn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=Zt(e,n,u);return da&&(f?f.push(h):d&&h()),h}function An(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?jn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=ca(this),s=kn(i,a.bind(r),n);return o(),s}function jn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,Pn=Symbol(`_leaveCb`),Fn=Symbol(`_enterCb`);function In(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ur(()=>{e.isMounted=!0}),pr(()=>{e.isUnmounting=!0}),e}var Ln=[Function,Array],Rn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ln,onEnter:Ln,onAfterEnter:Ln,onEnterCancelled:Ln,onBeforeLeave:Ln,onLeave:Ln,onAfterLeave:Ln,onLeaveCancelled:Ln,onBeforeAppear:Ln,onAppear:Ln,onAfterAppear:Ln,onAppearCancelled:Ln},zn=e=>{let t=e.subTree;return t.component?zn(t.component):t},Bn={name:`BaseTransition`,props:Rn,setup(e,{slots:t}){let n=aa(),r=In();return()=>{let i=t.default&&Jn(t.default(),!0),a=i&&i.length?Vn(i):n.subTree?Q():void 0;if(!a)return;let o=z(e),{mode:s}=o;if(r.isLeaving)return Gn(a);let c=Kn(a);if(!c)return Gn(a);let l=Wn(c,o,r,n,e=>l=e);c.type!==Pi&&qn(c,l);let u=n.subTree&&Kn(n.subTree);if(u&&u.type!==Pi&&!Wi(u,c)&&zn(n).type!==Pi){let e=Wn(u,o,r,n);if(qn(u,e),s===`out-in`&&c.type!==Pi)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Gn(a);s===`in-out`&&c.type!==Pi?e.delayLeave=(e,t,n)=>{let i=Un(r,u);i[String(u.key)]=u,e[Pn]=()=>{t(),e[Pn]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Vn(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Pi){t=n;break}}return t}var Hn=Bn;function Un(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Wn(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=Un(n,e),C=(e,t)=>{e&&en(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=_||c;else return}t[Pn]&&t[Pn](!0);let i=S[x];i&&Wi(e,i)&&i.el[Pn]&&i.el[Pn](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted){if(a)r=v||l,i=y||u,o=b||f;else return}let s=!1;t[Fn]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[Fn]=void 0)};let c=t[Fn].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Fn]&&t[Fn](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[Pn]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[Pn]=void 0,S[i]===e&&delete S[i])};let o=t[Pn].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=Wn(e,t,n,r,i);return i&&i(a),a}};return T}function Gn(e){if(nr(e))return e=Yi(e),e.children=null,e}function Kn(e){if(!nr(e))return Nn(e.type)&&e.children?Vn(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function qn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;qn(Nn(n.type)&&Kn(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Jn(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;e$n(e,n&&(d(n)?n[t]:n),r,a,o));return}if(tr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&$n(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?va(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=z(v),b=v===t?i:e=>!Zn(_,e)&&u(y,e),x=(e,t)=>!(t&&Zn(_,t));if(m!=null&&m!==p){if(er(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(B(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))$t(p,f,12,[l,_]);else{let t=g(p),n=B(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),Qn.delete(e)};t.id=-1,Qn.set(e,t),bi(t,r)}else er(e),i()}}}function er(e){let t=Qn.get(e);t&&(t.flags|=8,Qn.delete(e))}oe().requestIdleCallback,oe().cancelIdleCallback;var tr=e=>!!e.type.__asyncLoader,nr=e=>e.type.__isKeepAlive;function rr(e,t){ar(e,`a`,t)}function ir(e,t){ar(e,`da`,t)}function ar(e,t,n=ia){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(sr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)nr(e.parent.vnode)&&or(r,t,n,e),e=e.parent}}function or(e,t,n,r){let i=sr(t,e,r,!0);mr(()=>{c(r[t],i)},n)}function sr(e,t,n=ia,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ze();let i=ca(n),a=en(t,n,e,r);return i(),Be(),a};return r?i.unshift(a):i.push(a),a}}var cr=e=>(t,n=ia)=>{(!da||e===`sp`)&&sr(e,(...e)=>t(...e),n)},lr=cr(`bm`),ur=cr(`m`),dr=cr(`bu`),fr=cr(`u`),pr=cr(`bum`),mr=cr(`um`),hr=cr(`sp`),gr=cr(`rtg`),_r=cr(`rtc`);function vr(e,t=ia){sr(`ec`,e,t)}var yr=Symbol.for(`v-ndc`);function br(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&Pt(e),r=!1,s=!1;n&&(r=!It(e),s=Ft(e),e=Qe(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;re?ua(e)?va(e):xr(e.parent):null,Sr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xr(e.parent),$root:e=>xr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>jr(e),$forceUpdate:e=>e.f||=()=>{fn(e.update)},$nextTick:e=>e.n||=un.bind(e.proxy),$watch:e=>An.bind(e)}),Cr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),wr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Cr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else Er&&(s[n]=0)}let d=Sr[n],f,p;if(d)return n===`$attrs`&&R(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Cr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Cr(n,c)||u(o,c)||u(i,c)||u(Sr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Tr(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var Er=!0;function Dr(e){let t=jr(e),n=e.proxy,i=e.ctx;Er=!1,t.beforeCreate&&kr(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:E,renderTriggered:ee,errorCaptured:D,serverPrefetch:te,expose:O,inheritAttrs:ne,components:re,directives:k,filters:A}=t;if(u&&Or(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=At(t))}if(Er=!0,o)for(let e in o){let t=o[e],a=ba({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Ar(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{wn(t,e[t])})}f&&kr(f,e,`c`);function j(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(lr,p),j(ur,m),j(dr,g),j(fr,_),j(rr,y),j(ir,b),j(vr,D),j(_r,E),j(gr,ee),j(pr,S),j(mr,w),j(hr,te),d(O)){if(O.length){let t=e.exposed||={};O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}T&&e.render===r&&(e.render=T),ne!=null&&(e.inheritAttrs=ne),re&&(e.components=re),k&&(e.directives=k),te&&Xn(e)}function Or(e,t,n=r){d(e)&&(e=Ir(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?Tn(r.from||n,r.default,!0):Tn(r.from||n):Tn(r),B(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function kr(e,t,n){en(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ar(e,t,n,r){let i=r.includes(`.`)?jn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&On(i,n)}else if(h(e))On(i,e.bind(n));else if(v(e)){if(d(e))e.forEach(e=>Ar(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&On(i,r,e)}}}function jr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Mr(c,e,o,!0)),Mr(c,t,o)),v(t)&&a.set(t,c),c}function Mr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Mr(e,a,n,!0),i&&i.forEach(t=>Mr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Nr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Nr={data:Pr,props:Rr,emits:Rr,methods:Lr,computed:Lr,beforeCreate:G,created:G,beforeMount:G,mounted:G,beforeUpdate:G,updated:G,beforeDestroy:G,beforeUnmount:G,destroyed:G,unmounted:G,activated:G,deactivated:G,errorCaptured:G,serverPrefetch:G,components:Lr,directives:Lr,watch:zr,provide:Pr,inject:Fr};function Pr(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function Fr(e,t){return Lr(Ir(e),Ir(t))}function Ir(e){if(d(e)){let t={};for(let n=0;nt===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${O(t)}Modifiers`];function Gr(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&Wr(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=a.map(M)));let c,l=i[c=re(n)]||i[c=re(D(n))];!l&&o&&(l=i[c=re(O(n))]),l&&en(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,en(u,e,6,a)}}var Kr=new WeakMap;function qr(e,t,n=!1){let r=n?Kr:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=qr(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Jr(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,O(t))||u(e,t))}function Yr(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=xn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Xi(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Xi(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:Xr(c)}}catch(t){Ii.length=0,tn(t,e,1),v=X(Pi)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Zr(y,a)),b=Yi(b,y,!1,!0))}return n.dirs&&(b=Yi(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&qn(Nn(b.type)&&Kn(b)||b,n.transition),v=b,xn(_),v}var Xr=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Zr=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Qr(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?$r(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(ni),ii=e=>Object.getPrototypeOf(e)===ni;function ai(e,t,n,r=!1){let i={},a=ri();e.propsDefaults=Object.create(null),si(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:jt(i):e.type.props?i:a,e.attrs=a}function oi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=z(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[t,n]=ui(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,pi=e=>d(e)?e.map(Xi):[Xi(e)],mi=(e,t,n)=>{if(t._n)return t;let r=Sn((...e)=>pi(t(...e)),n);return r._c=!1,r},hi=(e,t,n)=>{let r=e._ctx;for(let n in e){if(fi(n))continue;let i=e[n];if(h(i))t[n]=mi(n,i,r);else if(i!=null){let e=pi(i);t[n]=()=>e}}},gi=(e,t)=>{let n=pi(t);e.slots.default=()=>n},_i=(e,t,n)=>{for(let r in t)(n||!fi(r))&&(e[r]=t[r])},vi=(e,t,n)=>{let r=e.slots=ri();if(e.vnode.shapeFlag&32){let e=t._;e?(_i(r,t,n),n&&j(r,`_`,e,!0)):hi(t,r)}else t&&gi(e,t)},yi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:_i(a,n,r):(o=!n.$stable,hi(n,a)),s=n}else n&&(gi(e,n),s={default:1});if(o)for(let e in a)!fi(e)&&s[e]==null&&delete a[e]},bi=Mi;function xi(e){return Si(e)}function Si(e,i){let a=oe();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Wi(e,t)&&(r=me(e),de(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Ni:y(e,t,n,r);break;case Pi:b(e,t,n,r);break;case Fi:e??x(t,n,r,o);break;case K:re(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?k(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,_e)}u!=null&&i?$n(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&$n(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)E(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),te(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},E=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&D(e.children,d,null,r,i,Ci(e,a),s,u),_&&Cn(e,null,r,`created`),ee(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!T(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&ea(f,r,e)}_&&Cn(e,null,r,`beforeMount`);let v=Ti(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&bi(()=>{try{f&&ea(f,r,e),v&&g.enter(d),_&&Cn(e,null,r,`mounted`)}finally{}},i)},ee=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&wi(r,!1),(g=h.onVnodeBeforeUpdate)&&ea(g,r,n,e),f&&Cn(n,e,r,`beforeUpdate`),r&&wi(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?O(e.dynamicChildren,d,l,r,i,Ci(n,a),o):s||se(e,n,l,null,r,i,Ci(n,a),o,!1),u>0){if(u&16)ne(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t{g&&ea(g,r,n,e),f&&Cn(n,e,r,`updated`)},i)},O=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(n!==r){if(n!==t)for(let t in n)!T(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(T(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},re=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),D(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(O(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Ei(e,t,!0)):se(e,t,n,f,i,a,s,c,l)},k=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):j(t,n,r,i,a,o,c):M(e,t,c)},j=(e,t,n,r,i,a,o)=>{let s=e.component=ra(e,r,i);if(nr(e)&&(s.ctx.renderer=_e),fa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ie,o),!e.el){let r=s.subTree=X(Pi);b(null,r,t,n),e.placeholder=r.el}}else ie(s,e,t,n,i,a,o)},M=(e,t,n)=>{let r=t.component=e.component;if(Qr(e,t,n)){if(r.asyncDep&&!r.asyncResolved){ae(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},ie=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Oi(e);if(n){t&&(t.el=c.el,ae(e,t,o)),n.asyncDep.then(()=>{bi(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;wi(e,!1),t?(t.el=c.el,ae(e,t,o)):t=c,n&&A(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ea(d,s,t,c),wi(e,!0);let f=Yr(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),me(p),e,i,a),t.el=f.el,u===null&&ti(e,f.el),r&&bi(r,i),(d=t.props&&t.props.onVnodeUpdated)&&bi(()=>ea(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=tr(t);if(wi(e,!1),l&&A(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ea(o,d,t),wi(e,!0),s&&F){let t=()=>{e.subTree=Yr(e),F(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Yr(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&bi(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;bi(()=>ea(o,d,e),i)}(t.shapeFlag&256||d&&tr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&bi(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new we(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>fn(u),wi(e,!0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,oi(e,t.props,r,n),yi(e,t.children,n),ze(),hn(e),Be()},se=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){le(l,d,n,r,i,a,o,s,c);return}if(f&256){ce(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&P(l,i,a),d!==l&&p(n,d)):u&16?m&16?le(l,d,n,r,i,a,o,s,c):P(l,i,a,!0):(u&8&&p(n,``),m&16&&D(d,n,r,i,a,o,s,c))},ce=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;pd?P(e,a,o,!0,!1,f):D(t,r,i,a,o,s,c,l,f)},le=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Zi(t[u]):Xi(t[u]);if(Wi(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Zi(t[p]):Xi(t[p]);if(Wi(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=ep)for(;u<=f;)de(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Zi(t[u]):Xi(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){de(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Wi(n,t[_])){i=_;break}i===void 0?de(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?Di(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ue(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,_e);return}if(c===K){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Pn];a._isLeaving&&a[Pn](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},de=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(ze(),$n(s,null,n,e,!0),Be()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!tr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ea(_,t,e),u&6)pe(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Cn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,_e,r):l&&!l.hasOnce&&(a!==K||d>0&&d&64)?P(l,t,n,!1,!0):(a===K&&d&384||!i&&u&16)&&P(c,t,n),r&&N(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&bi(()=>{_&&ea(_,t,e),h&&Cn(e,null,t,`unmounted`),v&&(e.el=null)},n)},N=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===K){fe(n,r);return}if(t===Fi){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},fe=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},pe=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;ki(c),ki(l),r&&A(r),i.stop(),a&&(a.flags|=8,de(o,e,t,n)),s&&bi(s,t),bi(()=>{e.isUnmounted=!0},t)},P=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return me(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Mn];return n?h(n):t},he=!1,ge=(e,t,n)=>{let r;e==null?t._vnode&&(de(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,he||=(he=!0,hn(r),gn(),!1)},_e={p:v,um:de,m:ue,r:N,mt:j,mc:D,pc:se,pbc:O,n:me,o:e},ve,F;return i&&([ve,F]=i(_e)),{render:ge,hydrate:ve,createApp:Hr(ge,ve)}}function Ci({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function wi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ti(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ei(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Oi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Oi(t)}function ki(e){if(e)for(let t=0;te.__isSuspense;function Mi(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):mn(e)}var K=Symbol.for(`v-fgt`),Ni=Symbol.for(`v-txt`),Pi=Symbol.for(`v-cmt`),Fi=Symbol.for(`v-stc`),Ii=[],Li=null;function q(e=!1){Ii.push(Li=e?null:[])}function Ri(){Ii.pop(),Li=Ii[Ii.length-1]||null}var zi=1;function Bi(e,t=!1){zi+=e,e<0&&Li&&t&&(Li.hasOnce=!0)}function Vi(e){return e.dynamicChildren=zi>0?Li||n:null,Ri(),zi>0&&Li&&Li.push(e),e}function J(e,t,n,r,i,a){return Vi(Y(e,t,n,r,i,a,!0))}function Hi(e,t,n,r,i){return Vi(X(e,t,n,r,i,!0))}function Ui(e){return e?e.__v_isVNode===!0:!1}function Wi(e,t){return e.type===t.type&&e.key===t.key}var Gi=({key:e})=>e??null,Ki=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||B(e)||h(e)?{i:yn,r:e,k:t,f:!!n}:e);function Y(e,t=null,n=null,r=0,i=null,a=e===K?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gi(t),ref:t&&Ki(t),scopeId:bn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:yn};return s?(Qi(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),zi>0&&!o&&Li&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Li.push(c),c}var X=qi;function qi(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===yr)&&(e=Pi),Ui(e)){let r=Yi(e,t,!0);return n&&Qi(r,n),zi>0&&!a&&Li&&(r.shapeFlag&6?Li[Li.indexOf(e)]=r:Li.push(r)),r.patchFlag=-2,r}if(ya(e)&&(e=e.__vccOpts),t){t=Ji(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=N(e)),v(n)&&(Lt(n)&&!d(n)&&(n=s({},n)),t.style=se(n))}let o=g(e)?1:ji(e)?128:Nn(e)?64:v(e)?4:h(e)?2:0;return Y(e,t,n,r,i,o,a,!0)}function Ji(e){return e?Lt(e)||ii(e)?s({},e):e:null}function Yi(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?$i(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Gi(l),ref:t&&t.ref?n&&a?d(a)?a.concat(Ki(t)):[a,Ki(t)]:Ki(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yi(e.ssContent),ssFallback:e.ssFallback&&Yi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&qn(u,c.clone(u)),u}function Z(e=` `,t=0){return X(Ni,null,e,t)}function Q(e=``,t=!1){return t?(q(),Hi(Pi,null,e)):X(Pi,null,e)}function Xi(e){return e==null||typeof e==`boolean`?X(Pi):d(e)?X(K,null,e.slice()):Ui(e)?Zi(e):X(Ni,null,String(e))}function Zi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yi(e)}function Qi(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Qi(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!ii(t)?t._ctx=yn:r===3&&yn&&(yn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(h(t)){if(r&65){Qi(e,{default:t});return}t={default:t,_ctx:yn},n=32}else t=String(t),r&64?(n=16,t=[Z(t)]):n=8;e.children=t,e.shapeFlag|=n}function $i(...e){let t={};for(let n=0;nia||yn,oa,sa;{let e=oe(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};oa=t(`__VUE_INSTANCE_SETTERS__`,e=>ia=e),sa=t(`__VUE_SSR_SETTERS__`,e=>da=e)}var ca=e=>{let t=ia;return oa(e),e.scope.on(),()=>{e.scope.off(),oa(t)}},la=()=>{ia&&ia.scope.off(),oa(null)};function ua(e){return e.vnode.shapeFlag&4}var da=!1;function fa(e,t=!1,n=!1){t&&sa(t);let{props:r,children:i}=e.vnode,a=ua(e);ai(e,r,a,t),vi(e,i,n||t);let o=a?pa(e,t):void 0;return t&&sa(!1),o}function pa(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,wr);let{setup:r}=n;if(r){ze();let n=e.setupContext=r.length>1?_a(e):null,i=ca(e),a=$t(r,e,0,[e.props,n]),o=y(a);if(Be(),i(),(o||e.sp)&&!tr(e)&&Xn(e),o){if(a.then(la,la),t)return a.then(n=>{sa(!0);try{ma(e,n,t)}finally{sa(!1)}}).catch(t=>{tn(t,e,0)});e.asyncDep=a}else ma(e,a,t)}else ha(e,t)}function ma(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=Wt(t)),ha(e,n)}function ha(e,t,n){let i=e.type;e.render||=i.render||r;{let t=ca(e);ze();try{Dr(e)}finally{Be(),t()}}}var ga={get(e,t){return R(e,`get`,``),e[t]}};function _a(e){return{attrs:new Proxy(e.attrs,ga),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function va(e){return e.exposed?e.exposeProxy||=new Proxy(Wt(Rt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Sr)return Sr[n](e)},has(e,t){return t in e||t in Sr}}):e.proxy}function ya(e){return h(e)&&`__vccOpts`in e}var ba=(e,t)=>Kt(e,t,da);function xa(e,t,n){try{Bi(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?Ui(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ui(n)&&(n=[n]),X(e,t,n))}finally{Bi(1)}}var Sa=`3.5.42`,Ca=void 0,wa=typeof window<`u`&&window.trustedTypes;if(wa)try{Ca=wa.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ta=Ca?e=>Ca.createHTML(e):e=>e,Ea=`http://www.w3.org/2000/svg`,Da=`http://www.w3.org/1998/Math/MathML`,Oa=typeof document<`u`?document:null,ka=Oa&&Oa.createElement(`template`),Aa={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Oa.createElementNS(Ea,e):t===`mathml`?Oa.createElementNS(Da,e):n?Oa.createElement(e,{is:n}):Oa.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Oa.createTextNode(e),createComment:e=>Oa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Oa.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{ka.innerHTML=Ta(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=ka.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ja=`transition`,Ma=`animation`,Na=Symbol(`_vtc`),Pa={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Fa=s({},Rn,Pa),Ia=(e=>(e.displayName=`Transition`,e.props=Fa,e))((e,{slots:t})=>xa(Hn,za(e),t)),La=(e,t=[])=>{d(e)?e.forEach(e=>e(...t)):e&&e(...t)},Ra=e=>e?d(e)?e.some(e=>e.length>1):e.length>1:!1;function za(e){let t={};for(let n in e)n in Pa||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:d=c,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=Ba(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,Ua(e,t?d:c),Ua(e,t?u:o),n&&n()},ee=(e,t)=>{e._isLeaving=!1,Ua(e,f),Ua(e,m),Ua(e,p),t&&t()},D=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);La(i,[t,o]),Wa(()=>{Ua(t,e?l:a),Ha(t,e?d:c),Ra(i)||Ka(t,r,g,o)})};return s(t,{onBeforeEnter(e){La(v,[e]),Ha(e,a),Ha(e,o)},onBeforeAppear(e){La(C,[e]),Ha(e,l),Ha(e,u)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>ee(e,t);Ha(e,f),e._enterCancelled?(Ha(e,p),Xa(e)):(Xa(e),Ha(e,p)),Wa(()=>{e._isLeaving&&(Ua(e,f),Ha(e,m),Ra(x)||Ka(e,r,_,n))}),La(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),La(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),La(T,[e])},onLeaveCancelled(e){ee(e),La(S,[e])}})}function Ba(e){if(e==null)return null;if(v(e))return[Va(e.enter),Va(e.leave)];{let t=Va(e);return[t,t]}}function Va(e){return ie(e)}function Ha(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Na]||(e[Na]=new Set)).add(t)}function Ua(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Na];n&&(n.delete(t),n.size||(e[Na]=void 0))}function Wa(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ga=0;function Ka(e,t,n,r){let i=e._endId=++Ga,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=qa(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${ja}Delay`),a=r(`${ja}Duration`),o=Ja(i,a),s=r(`${Ma}Delay`),c=r(`${Ma}Duration`),l=Ja(s,c),u=null,d=0,f=0;t===ja?o>0&&(u=ja,d=o,f=a.length):t===Ma?l>0&&(u=Ma,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?ja:Ma:null,f=u?u===ja?a.length:c.length:0);let p=u===ja&&/\b(?:transform|all)(?:,|$)/.test(r(`${ja}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ja(e,t){for(;e.lengthYa(t)+Ya(e[n])))}function Ya(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Xa(e){return(e?e.ownerDocument:document).body.offsetHeight}function Za(e,t,n){let r=e[Na];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Qa=Symbol(`_vod`),$a=Symbol(`_vsh`),eo={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Qa]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):to(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),to(e,!0),r.enter(e)):r.leave(e,()=>{to(e,!1)}):to(e,t))},beforeUnmount(e,{value:t}){to(e,t)}};function to(e,t){e.style.display=t?e[Qa]:`none`,e[$a]=!t}var no=Symbol(``),ro=/(?:^|;)\s*display\s*:/;function io(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t){if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??oo(r,t,``)}else for(let e in t)n[e]??oo(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?oo(r,i,``):uo(e,i,!g(t)&&t?t[i]:void 0,o)||oo(r,i,o)}}else if(i){if(t!==n){let e=r[no];e&&(n+=`;`+e),r.cssText=n,a=ro.test(n)}}else t&&e.removeAttribute(`style`);Qa in e&&(e[Qa]=a?r.display:``,e[$a]&&(r.display=`none`))}var ao=/\s*!important$/;function oo(e,t,n){if(d(n))n.forEach(n=>oo(e,t,n));else if(n??=``,t.startsWith(`--`))ao.test(n)?e.setProperty(t,n.replace(ao,``),`important`):e.setProperty(t,n);else{let r=lo(e,t);ao.test(n)?e.setProperty(O(r),n.replace(ao,``),`important`):e[r]=n}}var so=[`Webkit`,`Moz`,`ms`],co={};function lo(e,t){let n=co[t];if(n)return n;let r=D(t);if(r!==`filter`&&r in e)return co[t]=r;r=ne(r);for(let n=0;nSo||=(Co.then(()=>So=0),Date.now());function To(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Do=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?Za(e,r,c):t===`style`?io(e,n,r):a(t)?o(t)||vo(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):Oo(e,t,r,c))?(mo(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&po(e,t,r,c,s,t!==`value`)):e._isVueCE&&(ko(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?mo(e,D(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),po(e,t,r,c))};function Oo(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Eo(t)&&h(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Eo(t)&&g(n)?!1:t in e}function ko(e,t){let n=e._def.props;if(!n)return!1;let r=D(t);return Array.isArray(n)?n.some(e=>D(e)===r):Object.keys(n).some(e=>D(e)===r)}var Ao=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>A(t,e):t};function jo(e){e.target.composing=!0}function Mo(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var No=Symbol(`_assign`),Po=Symbol(`_initialValue`);function Fo(e,t,n){return t&&(e=e.trim()),n&&(e=M(e)),e}var Io={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[Po]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[Po]=e.defaultValue.replace(/\r\n?/g,` +`))),e[No]=Ao(i);let a=r||i.props&&i.props.type===`number`;ho(e,t?`change`:`input`,t=>{t.target.composing||e[No](Fo(e.value,n,a))}),(n||a)&&ho(e,`change`,()=>{e.value=Fo(e.value,n,a)}),t||(ho(e,`compositionstart`,jo),ho(e,`compositionend`,Mo),ho(e,`change`,Mo))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[Po];delete e[Po],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[No](Fo(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[No]=Ao(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?M(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Lo={deep:!0,created(e,t,n){e[No]=Ao(n),ho(e,`change`,()=>{let t=e._modelValue,n=Ho(e),r=e.checked,i=e[No];if(d(t)){let e=_e(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(p(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Uo(e,r))})},mounted:Ro,beforeUpdate(e,t,n){e[No]=Ao(n),Ro(e,t,n)}};function Ro(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(d(t))i=_e(t,r.props.value)>-1;else if(p(t))i=t.has(r.props.value);else{if(t===n)return;i=ge(t,Uo(e,!0))}e.checked!==i&&(e.checked=i)}var zo={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,ho(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?M(Ho(e)):Ho(e)),r=e.multiple,i=r?p(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?d(i)?t.slice():t:i];try{e[No](i)}finally{un(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[No]=Ao(r)},mounted(e,{value:t}){Vo(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[No]=Ao(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Bo(t,n[1],n[0]))&&Vo(e,t)}};function Bo(e,t,n){if(!n||d(e))return ge(e,t);if(p(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function Vo(e,t){let n=e.multiple,r=d(t);if(!n||r||p(t)){for(let i=0,a=e.options.length;iString(e)===String(o)):_e(t,o)>-1}else a.selected=t.has(o)}else if(ge(Ho(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ho(e){return`_value`in e?e._value:e.value}function Uo(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Wo=[`ctrl`,`shift`,`alt`,`meta`],Go={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Wo.some(n=>e[`${n}Key`]&&!t.includes(n))},Ko=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=O(n.key);if(t.some(e=>e===r||qo[e]===r))return e(n)}))},Yo=s({patchProp:Do},Aa),Xo;function Zo(){return Xo||=xi(Yo)}var Qo=((...e)=>{let t=Zo().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=es(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,$o(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function $o(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function es(e){return g(e)?document.querySelector(e):e}var ts=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ns={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},rs=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:r,iconNode:i,name:a,class:o,...s},{slots:c})=>xa(`svg`,{...ns,width:e||ns.width,height:e||ns.height,stroke:r||ns.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:[`lucide`,`lucide-${ts(a??`icon`)}`],...s},[...i.map(e=>xa(...e)),...c.default?[c.default()]:[]]),$=(e,t)=>(n,{slots:r})=>xa(rs,{...n,iconNode:t,name:e},r),is=$(`ActivityIcon`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),as=$(`ArchiveRestoreIcon`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h2`,key:`tvwodi`}],[`path`,{d:`M20 8v11a2 2 0 0 1-2 2h-2`,key:`1gkqxj`}],[`path`,{d:`m9 15 3-3 3 3`,key:`1pd0qc`}],[`path`,{d:`M12 12v9`,key:`192myk`}]]),os=$(`CalendarDaysIcon`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M16 18h.01`,key:`kzsmim`}]]),ss=$(`CheckIcon`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),cs=$(`ChevronDownIcon`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),ls=$(`ChevronRightIcon`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),us=$(`CirclePlusIcon`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),ds=$(`DownloadIcon`,[[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`polyline`,{points:`7 10 12 15 17 10`,key:`2ggqvy`}],[`line`,{x1:`12`,x2:`12`,y1:`15`,y2:`3`,key:`1vk2je`}]]),fs=$(`FileJsonIcon`,[[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,key:`1rqfz7`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),ps=$(`FolderIcon`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),ms=$(`GripVerticalIcon`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),hs=$(`InboxIcon`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),gs=$(`ListChecksIcon`,[[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}],[`path`,{d:`M13 6h8`,key:`15sg57`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 18h8`,key:`oe0vm4`}]]),_s=$(`ListTodoIcon`,[[`rect`,{x:`3`,y:`5`,width:`6`,height:`6`,rx:`1`,key:`1defrl`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`M13 6h8`,key:`15sg57`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 18h8`,key:`oe0vm4`}]]),vs=$(`LogOutIcon`,[[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}],[`polyline`,{points:`16 17 21 12 16 7`,key:`1gabdz`}],[`line`,{x1:`21`,x2:`9`,y1:`12`,y2:`12`,key:`1uyos4`}]]),ys=$(`MenuIcon`,[[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}],[`line`,{x1:`4`,x2:`20`,y1:`6`,y2:`6`,key:`1owob3`}],[`line`,{x1:`4`,x2:`20`,y1:`18`,y2:`18`,key:`yk5zj1`}]]),bs=$(`PencilIcon`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),xs=$(`PlusIcon`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Ss=$(`RefreshCwIcon`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Cs=$(`Repeat2Icon`,[[`path`,{d:`m2 9 3-3 3 3`,key:`1ltn5i`}],[`path`,{d:`M13 18H7a2 2 0 0 1-2-2V6`,key:`1r6tfw`}],[`path`,{d:`m22 15-3 3-3-3`,key:`4rnwn2`}],[`path`,{d:`M11 6h6a2 2 0 0 1 2 2v10`,key:`2f72bc`}]]),ws=$(`SearchIcon`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),Ts=$(`SettingsIcon`,[[`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`,key:`1qme2f`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Es=$(`Trash2Icon`,[[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6`,key:`4alrt4`}],[`path`,{d:`M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2`,key:`v07s0e`}],[`line`,{x1:`10`,x2:`10`,y1:`11`,y2:`17`,key:`1uufr5`}],[`line`,{x1:`14`,x2:`14`,y1:`11`,y2:`17`,key:`xtxkd`}]]),Ds=$(`UploadIcon`,[[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`polyline`,{points:`17 8 12 3 7 8`,key:`t8dd8p`}],[`line`,{x1:`12`,x2:`12`,y1:`3`,y2:`15`,key:`widbto`}]]),Os=$(`XIcon`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),ks=e=>e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`),As=e=>{let t=ks(e);return t=t.replace(/`([^`]+)`/g,`$1`),t=t.replace(/\*\*([^*]+)\*\*/g,`$1`),t=t.replace(/\*([^*]+)\*/g,`$1`),t=t.replace(/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,`$1`),t};function js(e=``){let t=e.replace(/\r\n/g,` +`).split(` +`),n=[],r=!1,i=()=>{r&&=(n.push(`
`),!1)};for(let e of t){let t=e.trimEnd();if(!t.trim()){i();continue}t.startsWith(`# `)?(i(),n.push(`

${As(t.slice(2))}

`)):t.startsWith(`## `)?(i(),n.push(`

${As(t.slice(3))}

`)):/^[-*] /.test(t)?(r||=(n.push(`
    `),!0),n.push(`
  • ${As(t.slice(2))}
  • `)):(i(),n.push(`

    ${As(t)}

    `))}return i(),n.join(``)}function Ms(e,t){let n=t.trim().toLowerCase();return n?e.filter(e=>[e.title,e.description??``,e.list_name??``,...(e.tags??[]).map(e=>e.name)].join(` `).toLowerCase().includes(n)):e}function Ns(e){let t=new Map;for(let n of e)n.parent_id&&t.set(n.parent_id,[...t.get(n.parent_id)??[],n]);return e.filter(e=>!e.parent_id).map(e=>({task:e,subtasks:t.get(e.id)??[]}))}function Ps(e){if(!e)return``;let t=new Date(e);return Number.isNaN(t.valueOf())?``:`${t.getFullYear()}-${`${t.getMonth()+1}`.padStart(2,`0`)}-${`${t.getDate()}`.padStart(2,`0`)}T${`${t.getHours()}`.padStart(2,`0`)}:${`${t.getMinutes()}`.padStart(2,`0`)}`}function Fs(e){return e?new Date(e).toISOString():null}function Is(e){return`${e.getFullYear()}-${`${e.getMonth()+1}`.padStart(2,`0`)}-${`${e.getDate()}`.padStart(2,`0`)}`}function Ls(e){return Array.isArray(e)?{items:e,nextCursor:null}:{items:e.items??[],nextCursor:e.next_cursor??null}}function Rs(e){return e===`tasks`||e===`today`||e===`upcoming`}function zs(e,t,n=1){return e===`numeric`?Number(t??0)>=n:!!t}function Bs(e){if(e===void 0||e===``)return null;let t=Number(e);return Number.isFinite(t)&&t>=0?t:null}function Vs(e,t){return e>=64&&Math.abs(t)<=24&&e>Math.abs(t)*1.5}function Hs(e){if(e&&![`GET`,`HEAD`,`OPTIONS`].includes(e.toUpperCase())){let e=Us(`dodo_csrf`);if(e)return{"x-csrf-token":e}}return{}}function Us(e){if(typeof document>`u`)return``;let t=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),n=document.cookie.match(RegExp(`(?:^|; )${t}=([^;]*)`));return n?decodeURIComponent(n[1]):``}var Ws={key:0,class:`inline-error`},Gs={class:`view-intro`},Ks={class:`primary-small`},qs={class:`habit-list`},Js=[`onTouchstartPassive`,`onTouchend`],Ys={key:0,class:`habit-main`},Xs={class:`habit-name`},Zs={class:`habit-swipe-hint`,"aria-hidden":`true`},Qs={key:1,class:`habit-main numeric-habit`},$s={class:`habit-name`},ec={class:`numeric-action`},tc=[`onUpdate:modelValue`,`max`,`placeholder`,`aria-label`],nc=[`onClick`],rc=[`onClick`],ic={key:0,class:`empty-panel`},ac={class:`settings-grid`},oc={class:`tool-card`},sc={class:`file-button`},cc={class:`tool-card`},lc={class:`file-button`},uc=[`disabled`],dc={key:0},fc={class:`tool-card wide`},pc=[`onClick`],mc={key:0},hc={key:0,class:`tool-card wide`},gc=Yn({__name:`MvpPanel`,props:{view:{}},emits:[`changed`,`notice`],setup(e,{emit:t}){let n=e,r=t,i=V([]),a=V([]),o=V([]),s=V(!1),c=V(``),l=V(``),u=V(`boolean`),d=V(1),f=V(null),p=V(null),m=V(null),h=V({}),g=V(Is(new Date)),_=V(null),v;function y(e){if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(e=>e&&typeof e==`object`&&`msg`in e&&typeof e.msg==`string`?e.msg:String(e)).join(`;`)||`请求参数有误`;if(e&&typeof e==`object`){let t=e;return`detail`in t?y(t.detail):JSON.stringify(e)}return`请求失败`}async function b(e,t={}){let n={...t.headers||{}};t.body&&!(t.body instanceof FormData)&&(n[`Content-Type`]=`application/json`);let r=Hs(t.method);r[`x-csrf-token`]&&(n[`x-csrf-token`]=r[`x-csrf-token`]);let i=await fetch(`/api/v1`+e,{credentials:`include`,...t,headers:n});if(!i.ok){let e=await i.json().catch(()=>({}));throw Error(y(e.detail))}let a=i.headers.get(`content-type`)||``;return i.status===204?null:a.includes(`json`)?i.json():i.blob()}async function x(e){s.value=!0,c.value=``;try{await e()}catch(e){c.value=e instanceof Error?e.message:`请求失败`}finally{s.value=!1}}function S(e,t){return(e.cells??[]).find(e=>e.day===t)}function C(e,t){return zs(e.kind,S(e,t)?.value,e.target??1)}async function w(e,t){if(s.value)return;let n=+!S(e,t)?.value;await x(async()=>{await b(`/habits/${e.id}/logs/${t}`,{method:`PUT`,body:JSON.stringify({value:n})}),await re(),r(`notice`,n?`打卡成功 🎉`:`已取消打卡`)})}function T(e,t){if(e.kind===`numeric`||s.value)return;let n=t.touches[0];n&&(_.value={id:e.id,x:n.clientX,y:n.clientY})}async function E(e,t){let n=_.value;if(_.value=null,!n||n.id!==e.id||e.kind===`numeric`||s.value)return;let r=t.changedTouches[0];r&&Vs(r.clientX-n.x,r.clientY-n.y)&&await w(e,g.value)}function ee(){_.value=null}async function D(e,t){if(s.value)return;let n=Bs(h.value[e.id]);n===null||e.max_value!=null&&n>e.max_value||await x(async()=>{await b(`/habits/${e.id}/logs/${t}`,{method:`PUT`,body:JSON.stringify({value:n})}),await re(),r(`notice`,n>0?`已记录 🎉`:`已清零`)})}async function te(){l.value.trim()&&await x(async()=>{await b(`/habits`,{method:`POST`,body:JSON.stringify({name:l.value.trim(),kind:u.value,target:d.value,schedule_type:`daily`})}),l.value=``,await re(),r(`notice`,`习惯已创建`)})}async function O(e){confirm(`归档习惯“${e.name}”?历史打卡记录会保留。`)&&await x(async()=>{await b(`/habits/${e.id}`,{method:`DELETE`}),await re(),r(`notice`,`习惯已归档`)})}function ne(){let e=Is(new Date);e!==g.value&&(g.value=e,n.view===`habits`&&re())}async function re(){await x(async()=>{let e=await b(`/habits/grid?week=${Is(new Date)}`);i.value=e.habits??[]})}async function k(){await x(async()=>{let[e,t]=await Promise.all([b(`/sessions`).catch(()=>[]),b(`/audit-logs?limit=20`).catch(()=>[])]);a.value=Ls(e).items,o.value=Ls(t).items})}async function A(e){await x(async()=>{await b(`/sessions/${e}`,{method:`DELETE`}),await k(),r(`notice`,`会话已撤销`)})}function j(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}async function M(){await x(async()=>j(await b(`/export`),`dodo-export.json`))}async function ie(){f.value&&await x(async()=>{let e=new FormData;e.append(`file`,f.value),p.value=await b(`/import/ticktick/preview`,{method:`POST`,body:e})})}async function ae(){await x(async()=>{let e=new FormData;e.append(`file`,f.value);let t=await b(`/import/ticktick`,{method:`POST`,body:e});p.value=null,r(`changed`),r(`notice`,`导入完成:新增 ${t?.imported??0},跳过 ${t?.skipped??0}`)})}async function oe(){m.value&&confirm(`恢复为合并模式,将导入 JSON 中的清单与任务。继续吗?`)&&await x(async()=>{await b(`/restore?mode=merge`,{method:`POST`,body:await m.value.text()}),r(`changed`),r(`notice`,`数据已恢复`)})}return ur(()=>{n.view===`habits`?(ne(),re(),v=setInterval(ne,6e4)):k()}),pr(()=>{v&&clearInterval(v)}),(t,n)=>(q(),J(`section`,{class:N([`mvp-view`,{loading:s.value}])},[c.value?(q(),J(`p`,Ws,F(c.value),1)):Q(``,!0),e.view===`habits`?(q(),J(K,{key:1},[Y(`header`,Gs,[n[6]||=Y(`div`,null,[Y(`small`,null,`把想坚持的事,变成每天的日常`),Y(`h2`,null,`习惯`)],-1),Y(`button`,{class:`soft-button`,onClick:re},[X(H(Ss)),n[5]||=Z(`刷新`,-1)])]),Y(`form`,{class:`habit-create`,onSubmit:Ko(te,[`prevent`])},[W(Y(`input`,{"onUpdate:modelValue":n[0]||=e=>l.value=e,placeholder:`新习惯名称(如:喝水 8 杯)`,"aria-label":`新习惯名称`},null,512),[[Io,l.value]]),W(Y(`select`,{"onUpdate:modelValue":n[1]||=e=>u.value=e,"aria-label":`习惯类型`},[...n[7]||=[Y(`option`,{value:`boolean`},`完成 / 未完成`,-1),Y(`option`,{value:`numeric`},`按数量记录`,-1)]],512),[[zo,u.value]]),u.value===`numeric`?W((q(),J(`input`,{key:0,"onUpdate:modelValue":n[2]||=e=>d.value=e,type:`number`,min:`0`,step:`any`,placeholder:`目标值`,"aria-label":`目标值`},null,512)),[[Io,d.value,void 0,{number:!0}]]):Q(``,!0),Y(`button`,Ks,[X(H(xs)),n[8]||=Z(`添加`,-1)])],32),Y(`div`,qs,[(q(!0),J(K,null,br(i.value,e=>(q(),J(`article`,{key:e.id,class:N([`habit-row`,{done:C(e,g.value),swipeable:e.kind!==`numeric`}]),onTouchstartPassive:t=>T(e,t),onTouchend:t=>E(e,t),onTouchcancel:ee},[e.kind===`numeric`?(q(),J(`div`,Qs,[Y(`span`,null,[Y(`span`,$s,F(e.name),1),Y(`small`,null,`今天 `+F(S(e,g.value)?.value||0)+` / `+F(e.target||1)+F(e.unit||``),1)]),Y(`span`,ec,[W(Y(`input`,{"onUpdate:modelValue":t=>h.value[e.id]=t,type:`number`,min:`0`,max:e.max_value??void 0,step:`any`,placeholder:String(e.target||1),"aria-label":`${e.name}今日数值`},null,8,tc),[[Io,h.value[e.id],void 0,{number:!0}]]),Y(`button`,{class:`soft-button`,onClick:t=>D(e,g.value)},`记录`,8,nc)])])):(q(),J(`div`,Ys,[Y(`span`,null,[Y(`span`,Xs,F(e.name),1),Y(`small`,null,F(C(e,g.value)?`今天已完成 · 右滑可取消`:`右滑整行打卡`),1)]),Y(`span`,Zs,F(C(e,g.value)?`已完成`:`右滑`),1)])),Y(`button`,{class:`icon ghost`,"aria-label":`归档习惯`,onClick:t=>O(e)},[X(H(Es))],8,rc)],42,Js))),128)),!i.value.length&&!s.value?(q(),J(`div`,ic,`还没有习惯,从一件容易坚持的小事开始。`)):Q(``,!0)])],64)):(q(),J(K,{key:2},[n[18]||=Y(`header`,{class:`view-intro`},[Y(`div`,null,[Y(`small`,null,`备份、迁移与安全`),Y(`h2`,null,`设置与数据`)])],-1),Y(`div`,ac,[Y(`article`,oc,[X(H(fs)),n[11]||=Y(`h3`,null,`数据导出与恢复`,-1),n[12]||=Y(`p`,null,`下载完整 JSON 备份,或从备份恢复。`,-1),Y(`button`,{class:`soft-button`,onClick:M},[X(H(ds)),n[9]||=Z(`导出 JSON`,-1)]),Y(`label`,sc,[X(H(as)),n[10]||=Z(`选择备份`,-1),Y(`input`,{type:`file`,accept:`application/json`,onChange:n[3]||=e=>m.value=e.target.files?.[0]||null},null,32)]),m.value?(q(),J(`button`,{key:0,class:`danger-button`,onClick:oe},`确认恢复`)):Q(``,!0)]),Y(`article`,cc,[X(H(Ds)),n[14]||=Y(`h3`,null,`导入`,-1),n[15]||=Y(`p`,null,`先预览变化,确认后才写入。`,-1),Y(`label`,lc,[n[13]||=Z(`选择文件`,-1),Y(`input`,{type:`file`,accept:`.json,.csv`,onChange:n[4]||=e=>f.value=e.target.files?.[0]||null},null,32)]),Y(`button`,{disabled:!f.value,class:`soft-button`,onClick:ie},`生成预览`,8,uc),p.value?(q(),J(`pre`,dc,F(JSON.stringify(p.value,null,2)),1)):Q(``,!0),p.value?(q(),J(`button`,{key:1,class:`primary-small`,onClick:ae},`确认导入`)):Q(``,!0)]),Y(`article`,fc,[X(H(vs)),n[16]||=Y(`h3`,null,`登录会话`,-1),(q(!0),J(K,null,br(a.value,e=>(q(),J(`div`,{key:e.id,class:`session-row`},[Y(`span`,null,[Y(`b`,null,F(e.current?`当前设备`:`其他设备`),1),Y(`small`,null,F(e.user_agent||`未知设备`)+` · `+F(e.last_seen_at||e.created_at),1)]),e.current?Q(``,!0):(q(),J(`button`,{key:0,class:`danger-text`,onClick:t=>A(e.id)},`撤销`,8,pc))]))),128)),a.value.length?Q(``,!0):(q(),J(`p`,mc,`没有可显示的会话。`))]),o.value.length?(q(),J(`article`,hc,[X(H(is)),n[17]||=Y(`h3`,null,`最近活动`,-1),(q(!0),J(K,null,br(o.value,(e,t)=>(q(),J(`div`,{key:e.id||t,class:`audit-row`},[Y(`span`,null,F(e.action||e.event||`变更`),1),Y(`small`,null,F(e.created_at||e.timestamp),1)]))),128))])):Q(``,!0)])],64))],2))}}),_c={key:0,class:`center`},vc={key:1,class:`auth-shell`},yc={class:`auth-card`},bc={key:0,role:`alert`},xc={key:2,class:`shell`},Sc={class:`brand-row`},Cc={class:`primary-nav`},wc={class:`section-title`},Tc={class:`folders`},Ec={class:`folder-row`},Dc=[`onClick`],Oc={class:`row-actions`},kc=[`onClick`],Ac=[`onClick`],jc=[`onClick`],Mc=[`onClick`],Nc={class:`row-actions`},Pc=[`onClick`],Fc=[`onClick`],Ic=[`onClick`],Lc={class:`row-actions`},Rc=[`onClick`],zc=[`onClick`],Bc={class:`topbar`},Vc={class:`search`},Hc={class:`list-toolbar`},Uc={key:0},Wc={key:1,class:`pager`},Gc=[`disabled`],Kc=[`disabled`],qc=[`onTouchstartPassive`,`onTouchend`],Jc=[`onClick`],Yc={class:`meta`},Xc={key:0},Zc={key:1},Qc=[`title`],$c={key:0,class:`task-swipe-hint`},el=[`onClick`],tl=[`onClick`],nl=[`onClick`],rl=[`onTouchstartPassive`,`onTouchend`],il=[`onClick`],al={class:`task-swipe-hint`},ol={key:0,class:`empty`},sl={class:`detail-head`},cl={key:0,class:`detail-form`},ll={class:`detail-title`},ul=[`value`],dl=[`value`],fl={key:0},pl={class:`field`},ml={class:`field-label`},hl={class:`tag-picker`},gl=[`onClick`],_l={key:0,class:`hint`},vl={class:`field markdown`},yl={class:`field-label`},bl=[`innerHTML`],xl={class:`subtasks`},Sl={class:`field-label`},Cl=[`onClick`],wl={class:`check`},Tl={key:0,class:`hint`},El={class:`detail-actions`},Dl={key:1,class:`paper`},Ol={class:`bottom`},kl={key:0,class:`toast`,role:`status`},Al={key:2,class:`error-toast`,role:`alert`},jl=50;Qo(Yn({__name:`App`,setup(e){let t=V(null),n=V(!1),r=V(``),i=V(``),a=V([]),o=V([]),s=V([]),c=V([]),l=V([]),u=V(``),d=V(`tasks`),f=V(null),p=V(``),m=V(``),h=V(``),g=V(``),_=V(!1),v=V(!1),y=V(!1),b=V(!1),x=V(!0),S=V(1),C=V(0),w=ba(()=>Math.max(1,Math.ceil(C.value/jl))),T=V(new Set),E=V(!1),ee=V(null),D=ba(()=>d.value===`trash`?`回收站`:d.value===`today`?`今天`:d.value===`upcoming`?`最近 7 天`:d.value===`habits`?`习惯`:d.value===`settings`?`设置与数据`:o.value.find(e=>e.id===u.value)?.name||`收集箱`),te=ba(()=>d.value===`trash`?l.value:c.value),O=ba(()=>{let e=new Date,t=new Date(e);t.setDate(t.getDate()+7);let n=te.value;return[`habits`,`settings`].includes(d.value)?[]:(d.value===`today`&&(n=n.filter(t=>t.due_at&&new Date(t.due_at).toDateString()===e.toDateString())),d.value===`upcoming`&&(n=n.filter(n=>n.due_at&&new Date(n.due_at)>=e&&new Date(n.due_at)<=t)),m.value.trim()?Ms(n,m.value):n)}),ne=ba(()=>Ns(O.value)),re=ba(()=>ne.value),k;On(m,()=>{k&&window.clearTimeout(k),Rs(d.value)&&(S.value=1,k=window.setTimeout(()=>ue(),250))}),On(x,()=>{Rs(d.value)&&(S.value=1,ue())});async function A(e,t={}){let n=new Headers(t.headers||{});!n.has(`Content-Type`)&&t.body&&!(t.body instanceof FormData)&&n.set(`Content-Type`,`application/json`);let r=Hs(t.method);r[`x-csrf-token`]&&n.set(`x-csrf-token`,r[`x-csrf-token`]);let i=await fetch(`/api/v1`+e,{credentials:`include`,headers:n,...t});if(!i.ok){let e=`请求失败`;try{let t=await i.json();e=typeof t.detail==`string`?t.detail:e}catch{}throw Error(e)}return i.status===204?null:i.json()}function j(e){g.value=e,window.setTimeout(()=>{g.value===e&&(g.value=``)},2400)}function M(e){h.value=e instanceof Error?e.message:`请求失败`}async function ie(){try{let e=await A(`/setup/status`);if(t.value=e.initialized,e.initialized){let e=await A(`/bootstrap`);n.value=!0,a.value=e.folders??[],o.value=e.lists??[],s.value=e.tags??[],E.value=!0,u.value=e.inbox_id||o.value.find(e=>e.is_inbox)?.id||o.value[0]?.id||``,T.value=new Set(a.value.map(e=>e.id)),await ue()}}catch{n.value=!1,t.value??=!0}}async function ae(){h.value=``;try{await A(t.value?`/auth/login`:`/setup/initialize`,{method:`POST`,body:JSON.stringify({username:r.value,password:i.value})}),t.value=!0,n.value=!0;let e=await A(`/bootstrap`);a.value=e.folders??[],o.value=e.lists??[],s.value=e.tags??[],E.value=!0,u.value=e.inbox_id||o.value.find(e=>e.is_inbox)?.id||o.value[0]?.id||``,T.value=new Set(a.value.map(e=>e.id)),await ue()}catch(e){M(e)}}function oe(e){let t=new Date;return t.setDate(t.getDate()+e),t.setHours(0,0,0,0),t.toISOString()}async function ce(){let e=new URLSearchParams({page:String(S.value),page_size:String(jl)});m.value?e.set(`q`,m.value):d.value===`tasks`&&u.value&&e.set(`list_id`,u.value),d.value===`today`&&(e.set(`due_from`,oe(0)),e.set(`due_to`,oe(1))),d.value===`upcoming`&&(e.set(`due_from`,oe(0)),e.set(`due_to`,oe(8))),!x.value&&d.value!==`trash`&&e.set(`completed`,`false`);let t=await A(`/tasks?${e}`);c.value=t.items??[],C.value=t.total??c.value.length}async function le(e=!1){if(!e&&E.value)return;let[t,n,r]=await Promise.all([A(`/folders`),A(`/lists`),A(`/tags`).catch(()=>[])]);a.value=t,o.value=n,s.value=r,E.value=!0,o.value.some(e=>e.id===u.value)||(u.value=o.value.find(e=>e.is_inbox)?.id||o.value[0]?.id||``),T.value=new Set(a.value.map(e=>e.id))}async function ue(){_.value=!0,h.value=``;try{E.value||await le(),await ce(),S.value>w.value&&(S.value=w.value,await ce())}catch(e){M(e)}finally{_.value=!1}}async function de(){E.value=!1,await ue()}async function fe(){let e=await A(`/trash?page=${S.value}&page_size=${jl}`);l.value=e.items??[],C.value=e.total??l.value.length}async function pe(){_.value=!0,h.value=``;try{await fe()}catch(e){M(e)}finally{_.value=!1}}async function P(e,t){d.value=e,t&&(u.value=t),S.value=1,f.value=null,v.value=!1,y.value=!1,e===`trash`?await pe():Rs(e)?await ue():c.value=[]}async function me(){if(p.value.trim()&&u.value)try{let e=await A(`/tasks`,{method:`POST`,body:JSON.stringify({title:p.value.trim(),list_id:u.value})});c.value.push(e),p.value=``,Ce(e),j(`任务已添加`)}catch(e){M(e)}}async function he(e,t){let n=await A(`/tasks/${e.id}`,{method:`PATCH`,body:JSON.stringify({...t,version:e.version})}),r=c.value.findIndex(t=>t.id===e.id);return r>=0&&(c.value[r]={...c.value[r],...n}),f.value?.id===e.id&&(f.value={...f.value,...n}),n}async function ge(e){try{await he(e,{completed:!e.completed}),j(e.completed?`已重新打开`:`完成啦`)}catch(e){M(e)}}function _e(e,t){if(d.value===`trash`||_.value)return;let n=t.touches[0];n&&(ee.value={id:e.id,x:n.clientX,y:n.clientY})}async function ve(e,t){let n=ee.value;if(ee.value=null,!n||n.id!==e.id||d.value===`trash`||_.value)return;let r=t.changedTouches[0];r&&Vs(r.clientX-n.x,r.clientY-n.y)&&await ge(e)}function ye(){ee.value=null}async function be(){if(f.value?.title.trim())try{let e=f.value;await he(e,{title:e.title.trim(),description:e.description,priority:Number(e.priority),due_at:Fs(Ps(e.due_at)),list_id:e.list_id,recurrence_rule:e.recurrence_rule||null,recurrence_end_at:e.recurrence_end_at||null,tag_ids:(e.tags??[]).map(e=>e.id)}),j(`已保存`)}catch(e){M(e)}}async function I(e){if(window.confirm(`把“${e.title}”移到回收站?`))try{await A(`/tasks/${e.id}`,{method:`DELETE`}),c.value=c.value.filter(t=>t.id!==e.id&&t.parent_id!==e.id),f.value=null,y.value=!1,j(`已移到回收站`)}catch(e){M(e)}}async function xe(e){try{await A(`/tasks/${e.id}/restore`,{method:`POST`}),l.value=l.value.filter(t=>t.id!==e.id),j(`任务已恢复`)}catch(e){M(e)}}async function Se(e){if(window.confirm(`永久删除“${e.title}”?这个操作不能撤销。`))try{await A(`/trash/${e.id}`,{method:`DELETE`}),l.value=l.value.filter(t=>t.id!==e.id),j(`已永久删除`)}catch(e){M(e)}}async function L(){if(!f.value)return;let e=window.prompt(`子任务名称`)?.trim();if(e)try{let t=await A(`/tasks`,{method:`POST`,body:JSON.stringify({title:e,list_id:f.value.list_id,parent_id:f.value.id})});c.value.push(t),j(`子任务已添加`)}catch(e){M(e)}}function Ce(e){f.value={...e,tags:e.tags?[...e.tags]:[]},b.value=!1,y.value=!0}async function we(){let e=window.prompt(`文件夹名称`)?.trim();if(e)try{a.value.push(await A(`/folders`,{method:`POST`,body:JSON.stringify({name:e})})),j(`文件夹已创建`)}catch(e){M(e)}}async function Te(e=null){let t=window.prompt(`清单名称`)?.trim();if(t)try{let n=await A(`/lists`,{method:`POST`,body:JSON.stringify({name:t,folder_id:e})});o.value.push(n),await P(`tasks`,n.id),j(`清单已创建`)}catch(e){M(e)}}async function Ee(e,t){let n=window.prompt(`新名称`,t.name)?.trim();if(n&&n!==t.name)try{let r=await A(`/${e}/${t.id}`,{method:`PATCH`,body:JSON.stringify({name:n})});Object.assign(t,r),j(`已重命名`)}catch(e){M(e)}}async function De(e,t){if(window.confirm(`删除“${t.name}”?`))try{await A(`/${e}/${t.id}`,{method:`DELETE`}),await de(),j(`已删除`)}catch(e){M(e)}}async function Oe(){let e=window.prompt(`标签名称`)?.trim();if(!e)return;let t=window.prompt(`标签颜色`,`#F15A29`)||`#F15A29`;try{s.value.push(await A(`/tags`,{method:`POST`,body:JSON.stringify({name:e,color:t})})),j(`标签已创建`)}catch(e){M(e)}}function ke(e){return!!f.value?.tags?.some(t=>t.id===e.id)}function Ae(e){f.value&&(f.value.tags=ke(e)?(f.value.tags??[]).filter(t=>t.id!==e.id):[...f.value.tags??[],e])}function je(e){let t=new Set(T.value);t.has(e)?t.delete(e):t.add(e),T.value=t}function Me(e){return e?new Intl.DateTimeFormat(`zh-CN`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}).format(new Date(e)):``}function Ne(){un(()=>document.querySelector(`.quick-input`)?.focus())}function Pe(){S.value<=1||_.value||(--S.value,d.value===`trash`?pe():Rs(d.value)&&ue())}function Fe(){S.value>=w.value||_.value||(S.value+=1,d.value===`trash`?pe():Rs(d.value)&&ue())}return ur(ie),(e,l)=>t.value===null?(q(),J(`div`,_c,[...l[33]||=[Y(`span`,{class:`loader`},null,-1),Z(`正在打开 dodo…`,-1)]])):n.value?(q(),J(`div`,xc,[v.value||y.value?(q(),J(`div`,{key:0,class:`scrim`,onClick:l[2]||=e=>{v.value=!1,y.value=!1}})):Q(``,!0),Y(`aside`,{class:N([`sidebar`,{open:v.value}])},[Y(`div`,Sc,[l[37]||=Y(`div`,{class:`brand small`},[Z(`do`),Y(`span`,null,`do`)],-1),Y(`button`,{class:`icon mobile-only`,"aria-label":`关闭菜单`,onClick:l[3]||=e=>v.value=!1},[X(H(Os))])]),Y(`nav`,Cc,[Y(`button`,{class:N({active:d.value===`tasks`&&o.value.find(e=>e.id===u.value)?.is_inbox}),onClick:l[4]||=e=>P(`tasks`,o.value.find(e=>e.is_inbox)?.id)},[X(H(hs)),l[38]||=Z(`收集箱`,-1)],2),Y(`button`,{class:N({active:d.value===`today`}),onClick:l[5]||=e=>P(`today`)},[X(H(_s)),l[39]||=Z(`今天`,-1)],2),Y(`button`,{class:N({active:d.value===`upcoming`}),onClick:l[6]||=e=>P(`upcoming`)},[X(H(os)),l[40]||=Z(`最近 7 天`,-1)],2),Y(`button`,{class:N({active:d.value===`habits`}),onClick:l[7]||=e=>P(`habits`)},[X(H(Cs)),l[41]||=Z(`习惯`,-1)],2),Y(`button`,{class:N({active:d.value===`trash`}),onClick:l[8]||=e=>P(`trash`)},[X(H(Es)),l[42]||=Z(`回收站`,-1)],2)]),Y(`div`,wc,[l[43]||=Y(`span`,null,`我的清单`,-1),Y(`span`,null,[Y(`button`,{class:`mini-icon`,"aria-label":`新建文件夹`,onClick:we},[X(H(ps))]),Y(`button`,{class:`mini-icon`,"aria-label":`新建清单`,onClick:l[9]||=e=>Te(null)},[X(H(xs))])])]),Y(`div`,Tc,[(q(!0),J(K,null,br(a.value,e=>(q(),J(`div`,{key:e.id,class:`folder-block`},[Y(`div`,Ec,[Y(`button`,{onClick:t=>je(e.id)},[T.value.has(e.id)?(q(),Hi(H(cs),{key:0})):(q(),Hi(H(ls),{key:1})),X(H(ps)),Z(F(e.name),1)],8,Dc),Y(`span`,Oc,[Y(`button`,{"aria-label":`重命名文件夹`,onClick:t=>Ee(`folders`,e)},[X(H(bs))],8,kc),Y(`button`,{"aria-label":`删除文件夹`,onClick:t=>De(`folders`,e)},[X(H(Es))],8,Ac),Y(`button`,{"aria-label":`在文件夹中新建清单`,onClick:t=>Te(e.id)},[X(H(xs))],8,jc)])]),(q(!0),J(K,null,br(o.value.filter(t=>t.folder_id===e.id&&!t.is_inbox),t=>W((q(),J(`button`,{key:t.id,class:N([`list-row`,{active:d.value===`tasks`&&u.value===t.id}]),onClick:e=>P(`tasks`,t.id)},[l[44]||=Y(`i`,null,null,-1),Y(`span`,null,F(t.name),1),Y(`span`,Nc,[Y(`button`,{"aria-label":`重命名清单`,onClick:Ko(e=>Ee(`lists`,t),[`stop`])},[X(H(bs))],8,Pc),Y(`button`,{"aria-label":`删除清单`,onClick:Ko(e=>De(`lists`,t),[`stop`])},[X(H(Es))],8,Fc)])],10,Mc)),[[eo,T.value.has(e.id)]])),128))]))),128)),(q(!0),J(K,null,br(o.value.filter(e=>!e.folder_id&&!e.is_inbox),e=>(q(),J(`button`,{key:e.id,class:N([`list-row`,{active:d.value===`tasks`&&u.value===e.id}]),onClick:t=>P(`tasks`,e.id)},[l[45]||=Y(`i`,null,null,-1),Y(`span`,null,F(e.name),1),Y(`span`,Lc,[Y(`button`,{"aria-label":`重命名清单`,onClick:Ko(t=>Ee(`lists`,e),[`stop`])},[X(H(bs))],8,Rc),Y(`button`,{"aria-label":`删除清单`,onClick:Ko(t=>De(`lists`,e),[`stop`])},[X(H(Es))],8,zc)])],10,Ic))),128))]),Y(`button`,{class:N([`settings`,{active:d.value===`settings`}]),onClick:l[10]||=e=>P(`settings`)},[X(H(Ts)),l[46]||=Z(`设置`,-1)],2)],2),Y(`main`,null,[Y(`header`,Bc,[Y(`button`,{class:`icon mobile-only`,"aria-label":`打开菜单`,onClick:l[11]||=e=>v.value=!0},[X(H(ys))]),Y(`div`,null,[l[47]||=Y(`p`,null,`今天也慢慢来`,-1),Y(`h1`,null,F(D.value),1)]),Y(`label`,Vc,[X(H(ws)),W(Y(`input`,{"onUpdate:modelValue":l[12]||=e=>m.value=e,placeholder:`搜索任务…`,"aria-label":`搜索任务`},null,512),[[Io,m.value]]),l[48]||=Y(`kbd`,null,`⌘ K`,-1)])]),[`habits`,`settings`].includes(d.value)?(q(),Hi(gc,{key:d.value,view:d.value,onChanged:de,onNotice:j},null,8,[`view`])):(q(),J(K,{key:1},[d.value===`trash`?Q(``,!0):(q(),J(`form`,{key:0,class:`quick`,onSubmit:Ko(me,[`prevent`])},[X(H(us)),W(Y(`input`,{"onUpdate:modelValue":l[13]||=e=>p.value=e,class:`quick-input`,placeholder:`添加任务,按回车保存`},null,512),[[Io,p.value]]),l[49]||=Y(`button`,null,`添加`,-1)],32)),Y(`div`,Hc,[d.value===`trash`?Q(``,!0):(q(),J(`label`,Uc,[W(Y(`input`,{"onUpdate:modelValue":l[14]||=e=>x.value=e,type:`checkbox`},null,512),[[Lo,x.value]]),l[50]||=Z(` 显示已完成`,-1)])),Y(`span`,null,`第 `+F(S.value)+` / `+F(w.value)+` 页 · 共 `+F(C.value)+` 项`,1),m.value?(q(),J(`button`,{key:1,class:`link`,onClick:l[15]||=e=>m.value=``},`清除搜索`)):Q(``,!0)]),d.value!==`trash`&&w.value>1?(q(),J(`div`,Wc,[Y(`button`,{class:`secondary`,disabled:S.value<=1||_.value,onClick:Pe},`上一页`,8,Gc),Y(`span`,null,F(S.value)+` / `+F(w.value),1),Y(`button`,{class:`secondary`,disabled:S.value>=w.value||_.value,onClick:Fe},`下一页`,8,Kc)])):Q(``,!0),Y(`section`,{class:N([`task-list`,{loading:_.value}])},[(q(!0),J(K,null,br(re.value,e=>(q(),J(K,{key:e.task.id},[Y(`article`,{class:N([`task-row swipeable`,{done:e.task.completed,selected:f.value?.id===e.task.id}]),onTouchstartPassive:t=>_e(e.task,t),onTouchend:t=>ve(e.task,t),onTouchcancel:ye},[Y(`button`,{class:`task-main`,onClick:t=>d.value===`trash`?void 0:Ce(e.task)},[Y(`strong`,null,F(e.task.title),1),Y(`span`,Yc,[e.task.due_at?(q(),J(`span`,Xc,[X(H(os)),Z(F(Me(e.task.due_at)),1)])):Q(``,!0),e.subtasks.length?(q(),J(`span`,Zc,[X(H(gs)),Z(F(e.subtasks.filter(e=>e.completed).length)+`/`+F(e.subtasks.length),1)])):Q(``,!0),(q(!0),J(K,null,br(e.task.tags,e=>(q(),J(`i`,{key:e.id,class:`tag-dot`,style:se({background:e.color}),title:e.name},null,12,Qc))),128))])],8,Jc),d.value===`trash`?Q(``,!0):(q(),J(`span`,$c,F(e.task.completed?`已完成`:`右滑`),1)),e.task.priority?(q(),J(`span`,{key:1,class:N([`priority`,`p${e.task.priority}`])},F([``,`低`,`中`,`高`][e.task.priority]),3)):Q(``,!0),d.value===`trash`?(q(),J(`button`,{key:2,class:`restore`,onClick:t=>xe(e.task)},[X(H(as)),l[51]||=Z(`恢复`,-1)],8,el)):(q(),J(`button`,{key:3,class:`icon ghost`,"aria-label":`删除任务`,onClick:Ko(t=>I(e.task),[`stop`])},[X(H(Es))],8,tl)),d.value===`trash`?(q(),J(`button`,{key:4,class:`icon danger ghost`,"aria-label":`永久删除`,onClick:Ko(t=>Se(e.task),[`stop`])},[X(H(Os))],8,nl)):Q(``,!0)],42,qc),(q(!0),J(K,null,br(e.subtasks,e=>(q(),J(`article`,{key:e.id,class:N([`task-row subtask swipeable`,{done:e.completed}]),onTouchstartPassive:t=>_e(e,t),onTouchend:t=>ve(e,t),onTouchcancel:ye},[X(H(ms)),Y(`button`,{class:`task-main`,onClick:t=>Ce(e)},[Y(`strong`,null,F(e.title),1)],8,il),Y(`span`,al,F(e.completed?`已完成`:`右滑`),1)],42,rl))),128))],64))),128)),!O.value.length&&!_.value?(q(),J(`div`,ol,[X(H(_s)),Y(`b`,null,F(m.value?`没有匹配的任务`:`这里还很安静`),1),Y(`span`,null,F(m.value?`换个关键词试试`:`写下第一件想完成的小事吧`),1)])):Q(``,!0)],2)],64))]),Y(`aside`,{class:N([`detail`,{open:y.value}])},[Y(`div`,sl,[l[52]||=Y(`span`,null,`任务详情`,-1),Y(`button`,{class:`icon mobile-only`,"aria-label":`关闭详情`,onClick:l[16]||=e=>y.value=!1},[X(H(Os))])]),f.value?(q(),J(`div`,cl,[Y(`div`,ll,[Y(`button`,{class:N([`check large`,`p${f.value.priority}`]),onClick:l[17]||=e=>ge(f.value)},[f.value.completed?(q(),Hi(H(ss),{key:0})):Q(``,!0)],2),W(Y(`textarea`,{"onUpdate:modelValue":l[18]||=e=>f.value.title=e,rows:`2`,"aria-label":`任务标题`,onBlur:be},null,544),[[Io,f.value.title]])]),Y(`label`,null,[l[53]||=Z(`清单`,-1),W(Y(`select`,{"onUpdate:modelValue":l[19]||=e=>f.value.list_id=e,onChange:be},[(q(!0),J(K,null,br(o.value,e=>(q(),J(`option`,{key:e.id,value:e.id},F(e.name),9,ul))),128))],544),[[zo,f.value.list_id]])]),Y(`label`,null,[l[54]||=Z(`截止时间`,-1),Y(`input`,{value:H(Ps)(f.value.due_at),type:`datetime-local`,onChange:l[20]||=e=>{f.value.due_at=e.target.value,be()}},null,40,dl)]),Y(`label`,null,[l[56]||=Z(`优先级`,-1),W(Y(`select`,{"onUpdate:modelValue":l[21]||=e=>f.value.priority=e,onChange:be},[...l[55]||=[Y(`option`,{value:0},`无`,-1),Y(`option`,{value:1},`低`,-1),Y(`option`,{value:2},`中`,-1),Y(`option`,{value:3},`高`,-1)]],544),[[zo,f.value.priority,void 0,{number:!0}]])]),Y(`label`,null,[l[58]||=Z(`重复`,-1),W(Y(`select`,{"onUpdate:modelValue":l[22]||=e=>f.value.recurrence_rule=e,onChange:be},[...l[57]||=[Y(`option`,{value:``},`不重复`,-1),Y(`option`,{value:`FREQ=DAILY`},`每天`,-1),Y(`option`,{value:`FREQ=WEEKLY`},`每周`,-1),Y(`option`,{value:`FREQ=MONTHLY`},`每月`,-1)]],544),[[zo,f.value.recurrence_rule]])]),f.value.recurrence_rule?(q(),J(`label`,fl,[l[59]||=Z(`重复截止`,-1),W(Y(`input`,{"onUpdate:modelValue":l[23]||=e=>f.value.recurrence_end_at=e,type:`date`,onChange:be},null,544),[[Io,f.value.recurrence_end_at]])])):Q(``,!0),Y(`div`,pl,[Y(`div`,ml,[l[61]||=Y(`span`,null,`标签`,-1),Y(`button`,{class:`link`,onClick:Oe},[X(H(xs)),l[60]||=Z(`新建`,-1)])]),Y(`div`,hl,[(q(!0),J(K,null,br(s.value,e=>(q(),J(`button`,{key:e.id,class:N({chosen:ke(e)}),onClick:t=>{Ae(e),be()}},[Y(`i`,{style:se({background:e.color})},null,4),Z(F(e.name),1)],10,gl))),128)),s.value.length?Q(``,!0):(q(),J(`span`,_l,`还没有标签`))])]),Y(`div`,vl,[Y(`div`,yl,[l[62]||=Y(`span`,null,`备注`,-1),Y(`span`,null,[Y(`button`,{class:N({active:!b.value}),onClick:l[24]||=e=>b.value=!1},`编辑`,2),Y(`button`,{class:N({active:b.value}),onClick:l[25]||=e=>b.value=!0},`预览`,2)])]),b.value?(q(),J(`div`,{key:0,class:`markdown-preview`,innerHTML:H(js)(f.value.description)},null,8,bl)):W((q(),J(`textarea`,{key:1,"onUpdate:modelValue":l[26]||=e=>f.value.description=e,rows:`9`,placeholder:`支持 Markdown…`,onBlur:be},null,544)),[[Io,f.value.description]])]),Y(`div`,xl,[Y(`div`,Sl,[l[64]||=Y(`span`,null,`子任务`,-1),Y(`button`,{class:`link`,onClick:L},[X(H(xs)),l[63]||=Z(`添加`,-1)])]),(q(!0),J(K,null,br(c.value.filter(e=>e.parent_id===f.value?.id),e=>(q(),J(`button`,{key:e.id,class:`subtask-detail`,onClick:t=>ge(e)},[Y(`span`,wl,[e.completed?(q(),Hi(H(ss),{key:0})):Q(``,!0)]),Y(`span`,{class:N({strike:e.completed})},F(e.title),3)],8,Cl))),128)),c.value.some(e=>e.parent_id===f.value?.id)?Q(``,!0):(q(),J(`span`,Tl,`把这件事拆成更小的步骤`))]),Y(`div`,El,[Y(`button`,{class:`secondary`,onClick:be},`保存更改`),Y(`button`,{class:`danger-text`,onClick:l[27]||=e=>I(f.value)},[X(H(Es)),l[65]||=Z(`移到回收站`,-1)])])])):(q(),J(`div`,Dl,[X(H(gs)),l[66]||=Y(`b`,null,`选中一个任务`,-1),l[67]||=Y(`p`,null,`日期、优先级、标签、子任务和 Markdown 备注会出现在这里。`,-1)]))],2),Y(`nav`,Ol,[Y(`button`,{class:N({active:d.value===`today`}),onClick:l[28]||=e=>P(`today`)},[X(H(_s)),l[68]||=Y(`span`,null,`今天`,-1)],2),Y(`button`,{class:N({active:d.value===`tasks`}),onClick:l[29]||=e=>P(`tasks`,u.value)},[X(H(hs)),l[69]||=Y(`span`,null,`任务`,-1)],2),Y(`button`,{class:N({active:d.value===`habits`}),onClick:l[30]||=e=>P(`habits`)},[X(H(Cs)),l[70]||=Y(`span`,null,`习惯`,-1)],2),Y(`button`,{class:N({active:d.value===`settings`}),onClick:l[31]||=e=>P(`settings`)},[X(H(Ts)),l[71]||=Y(`span`,null,`设置`,-1)],2)]),[`tasks`,`today`,`upcoming`].includes(d.value)?(q(),J(`button`,{key:1,class:`fab`,"aria-label":`添加任务`,onClick:Ne},[X(H(us))])):Q(``,!0),X(Ia,{name:`toast`},{default:Sn(()=>[g.value?(q(),J(`div`,kl,F(g.value),1)):Q(``,!0)]),_:1}),h.value?(q(),J(`div`,Al,[Z(F(h.value),1),Y(`button`,{onClick:l[32]||=e=>h.value=``},[X(H(Os))])])):Q(``,!0)])):(q(),J(`div`,vc,[Y(`section`,yc,[l[36]||=Y(`div`,{class:`brand`},[Z(`do`),Y(`span`,null,`do`)],-1),Y(`p`,null,F(t.value?`欢迎回来,继续把生活理顺。`:`创建你的 dodo`),1),Y(`label`,null,[l[34]||=Z(`用户名`,-1),W(Y(`input`,{"onUpdate:modelValue":l[0]||=e=>r.value=e,autocomplete:`username`,placeholder:`你的用户名`},null,512),[[Io,r.value]])]),Y(`label`,null,[l[35]||=Z(`密码`,-1),W(Y(`input`,{"onUpdate:modelValue":l[1]||=e=>i.value=e,type:`password`,autocomplete:`current-password`,placeholder:`至少 12 位`,onKeyup:Jo(ae,[`enter`])},null,544),[[Io,i.value]])]),Y(`button`,{class:`primary`,onClick:ae},F(t.value?`登录`:`开始使用`),1),h.value?(q(),J(`small`,bc,F(h.value),1)):Q(``,!0)])]))}})).mount(`#app`),`serviceWorker`in navigator&&(navigator.serviceWorker.getRegistrations().then(e=>{e.forEach(e=>e.unregister())}),caches.keys().then(e=>e.forEach(e=>caches.delete(e)))); \ No newline at end of file diff --git a/backend/static/assets/index-nhCaMkMR.css b/backend/static/assets/index-nhCaMkMR.css deleted file mode 100644 index 5f6fb58..0000000 --- a/backend/static/assets/index-nhCaMkMR.css +++ /dev/null @@ -1,2 +0,0 @@ -/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */ -@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components,utilities;:root{color:#2d2924;--accent:#f15a29;--accent-soft:#fbe6dc;--paper:#fffdf8;--sidebar:#f6f0e4;--line:#e7ddcc;--muted:#8b8275;--danger:#bd3827;--shadow:0 12px 36px #4e3a221a;background:#f8f3e8;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Noto Sans CJK SC,sans-serif}*{box-sizing:border-box}body{background:#f8f3e8;margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}svg{stroke-width:1.8px;width:18px;height:18px}.center,.auth-shell{place-items:center;min-height:100vh;display:grid}.center{color:var(--muted);align-content:center;gap:12px}.loader{border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:24px;height:24px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.auth-shell{background:radial-gradient(circle at 20% 10%,#ffe3d5 0,#0000 28%),linear-gradient(135deg,#f8f3e8,#fffaf0)}.auth-card{background:var(--paper);border:1px solid var(--line);width:min(390px,90vw);box-shadow:var(--shadow);border-radius:14px;gap:16px;padding:38px;display:grid}.brand{letter-spacing:-3px;font-size:40px;font-weight:850}.brand span{color:var(--accent)}.brand.small{font-size:29px}.auth-card p{color:var(--muted);margin:0 0 8px}.auth-card label,.detail-form>label{color:#756d61;gap:7px;font-size:12px;font-weight:650;display:grid}.auth-card input,.detail-form input,.detail-form select{border:1px solid var(--line);background:#fff;border-radius:9px;outline:none;width:100%;padding:11px}.auth-card input:focus,.detail-form input:focus,.detail-form select:focus,.detail-form textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #f15a291a}.primary{background:var(--accent);color:#fff;border:0;border-radius:9px;padding:12px;font-weight:700;box-shadow:0 5px 12px #f15a2933}.auth-card small{color:var(--danger)}.shell{background:var(--paper);grid-template-columns:238px minmax(430px,1fr) 350px;height:100vh;display:grid;overflow:hidden}.sidebar{border-right:1px solid var(--line);background:var(--sidebar);flex-direction:column;min-height:0;display:flex}.brand-row{justify-content:space-between;align-items:center;height:76px;padding:0 20px;display:flex}.primary-nav{gap:3px;padding:4px 12px 12px;display:grid}.primary-nav button,.settings{color:#665e52;text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:10px;padding:10px 12px;display:flex}.primary-nav button:hover,.list-row:hover,.folder-row>button:hover{background:#ffffff85}.primary-nav button.active,.list-row.active{background:var(--accent-soft);color:#b7421e;font-weight:700}.section-title{color:#958b7d;text-transform:uppercase;letter-spacing:.08em;justify-content:space-between;align-items:center;padding:17px 17px 7px 22px;font-size:11px;font-weight:750;display:flex}.section-title>span:last-child{display:flex}.mini-icon,.row-actions button{color:#8e8477;background:0 0;border:0;padding:4px}.mini-icon svg,.row-actions svg{width:14px;height:14px}.folders{padding:0 10px;overflow:auto}.folder-row{align-items:center;display:flex}.folder-row>button{color:#6d6559;text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:7px;min-width:0;padding:8px;display:flex}.folder-row>button svg{width:14px}.row-actions{opacity:0;transition:opacity .15s;display:flex}.folder-row:hover .row-actions,.list-row:hover .row-actions{opacity:1}.list-row{text-align:left;color:#665f55;background:0 0;border:0;border-radius:8px;align-items:center;gap:9px;width:100%;padding:8px 7px 8px 31px;display:flex}.list-row>span:nth-child(2){white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.list-row i{background:#d89b62;border-radius:3px;width:8px;height:8px}.settings{margin:auto 12px 14px}.mobile-only,.bottom,.fab{display:none}main{background:linear-gradient(#fffdf8eb,#fffdf8eb),repeating-linear-gradient(0deg,#0000,#0000 31px,#eee3d2 32px);min-width:0;padding:27px 34px 50px;overflow:auto}.topbar{align-items:center;gap:14px;display:flex}.topbar>div{flex:1}.topbar p{color:var(--muted);margin:0;font-size:12px}.topbar h1{letter-spacing:-.03em;margin:3px 0 21px;font-size:27px}.search{border:1px solid var(--line);width:min(260px,36%);color:var(--muted);background:#faf7f0;border-radius:9px;align-items:center;gap:8px;margin-bottom:18px;padding:8px 10px;display:flex}.search input{background:0 0;border:0;outline:0;width:100%;min-width:0}.search kbd{white-space:nowrap;border:1px solid var(--line);border-radius:4px;padding:2px 4px;font-size:10px}.quick{border:1px solid var(--line);background:#fff;border-radius:11px;align-items:center;gap:10px;padding:7px 7px 7px 13px;transition:all .18s;display:flex;box-shadow:0 2px 10px #513d260d}.quick:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #f15a2917}.quick>svg{color:var(--accent)}.quick input{background:0 0;border:0;outline:0;flex:1;min-width:0}.quick button{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:8px 15px;font-weight:650}.list-toolbar{height:42px;color:var(--muted);align-items:center;gap:14px;font-size:12px;display:flex}.list-toolbar label{margin-right:auto}.link{color:var(--accent);background:0 0;border:0;align-items:center;gap:3px;padding:3px;display:inline-flex}.link svg{width:14px}.task-list{transition:opacity .2s}.task-list.loading{opacity:.45}.task-row{border-bottom:1px solid var(--line);align-items:center;gap:10px;min-height:53px;padding:4px 8px;transition:background .15s,transform .15s;display:flex}.task-row:hover,.task-row.selected{background:#faf0e5bf}.task-row:hover{transform:translate(2px)}.check{background:#fff;border:1.6px solid #c6baa8;border-radius:5px;flex:0 0 19px;place-items:center;width:19px;height:19px;padding:0;display:grid}.check svg{width:13px}.check.p1{border-color:#4b93d1}.check.p2{border-color:#d79b25}.check.p3{border-color:#dc4b30}.done .check{color:#fff;background:#afa595}.task-main{text-align:left;background:0 0;border:0;flex:1;min-width:0;padding:8px 0}.task-main strong{white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:590;display:block;overflow:hidden}.done .task-main strong{color:#9b9388;text-decoration:line-through}.meta{color:#9b9286;align-items:center;gap:9px;margin-top:3px;font-size:11px;display:flex}.meta span{align-items:center;gap:3px;display:flex}.meta svg{width:12px}.tag-dot{border-radius:50%;width:7px;height:7px}.priority{border-radius:5px;padding:3px 6px;font-size:10px;font-weight:750}.priority.p1{color:#3f80ba;background:#e5f2fc}.priority.p2{color:#a56b05;background:#fff1cb}.priority.p3{color:#bd3827;background:#fde2dc}.icon,.ghost{background:0 0;border:0;border-radius:6px;place-items:center;padding:5px;display:grid}.ghost{opacity:0;color:#9d9387}.task-row:hover .ghost{opacity:1}.ghost:hover{color:var(--danger);background:#fce7e2}.restore{border:1px solid var(--line);background:#fff;border-radius:7px;align-items:center;gap:5px;padding:6px 8px;font-size:12px;display:flex}.restore svg{width:14px}.subtask{color:#6d655b;min-height:42px;padding-left:53px}.subtask>svg{color:#bbb0a2;width:13px}.empty{color:#aaa094;text-align:center;align-content:center;place-items:center;gap:8px;min-height:300px;display:grid}.empty>svg{color:#d8cabb;width:38px;height:38px}.empty b{color:#6f675c}.empty span{font-size:13px}.detail{border-left:1px solid var(--line);background:#faf7f0;min-width:0;overflow:auto}.detail-head{border-bottom:1px solid var(--line);color:#80766a;text-transform:uppercase;letter-spacing:.08em;justify-content:space-between;align-items:center;height:57px;padding:0 21px;font-size:12px;font-weight:700;display:flex}.paper{border:1px solid var(--line);text-align:center;color:#8f8578;background:#fff;border-radius:11px;align-content:center;place-items:center;min-height:180px;margin:22px;padding:28px 20px;display:grid;box-shadow:0 4px 18px #4c39220d}.paper svg{color:#ceb8a4;width:32px;height:32px;margin-bottom:12px}.paper b{color:#625b50}.paper p{font-size:13px;line-height:1.6}.detail-form{gap:15px;padding:19px;display:grid}.detail-title{align-items:flex-start;gap:10px;display:flex}.check.large{flex-basis:22px;width:22px;height:22px;margin-top:8px}.detail-title textarea{resize:none;background:0 0;border:0;outline:none;flex:1;font-size:19px;font-weight:700;line-height:1.4}.detail-form>label{grid-template-columns:80px 1fr;align-items:center}.detail-form>label input,.detail-form>label select{padding:8px}.field{gap:7px;display:grid}.field-label{color:#756d61;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;display:flex}.tag-picker{flex-wrap:wrap;gap:6px;display:flex}.tag-picker button{border:1px solid var(--line);background:#fff;border-radius:999px;align-items:center;gap:5px;padding:5px 8px;font-size:11px;display:flex}.tag-picker button.chosen{background:#fff1e9;border-color:#c89077}.tag-picker i{border-radius:50%;width:8px;height:8px}.hint{color:#a49a8d;font-size:12px}.markdown .field-label>span:last-child{background:#eee7dc;border-radius:6px;padding:2px;display:flex}.markdown .field-label button{background:0 0;border:0;border-radius:5px;padding:4px 8px;font-size:11px}.markdown .field-label button.active{color:var(--accent);background:#fff}.markdown textarea{border:1px solid var(--line);resize:vertical;background:#fff;border-radius:9px;outline:none;padding:11px;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.markdown-preview{border:1px solid var(--line);overflow-wrap:anywhere;background:#fff;border-radius:9px;min-height:160px;padding:10px 12px;font-size:13px;line-height:1.65}.markdown-preview h1{font-size:20px}.markdown-preview h2{font-size:16px}.markdown-preview p{margin:8px 0}.markdown-preview code{background:#f2ece2;border-radius:4px;padding:2px 4px}.markdown-preview a{color:var(--accent)}.subtasks{gap:5px;display:grid}.subtask-detail{text-align:left;background:#fff;border:0;border-radius:7px;align-items:center;gap:8px;padding:8px;display:flex}.subtask-detail .check{pointer-events:none}.strike{color:var(--muted);text-decoration:line-through}.detail-actions{border-top:1px solid var(--line);justify-content:space-between;align-items:center;padding-top:10px;display:flex}.secondary{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 11px;font-weight:650}.danger-text{color:var(--danger);background:0 0;border:0;align-items:center;gap:5px;font-size:12px;display:flex}.danger-text svg{width:14px}.toast,.error-toast{z-index:50;color:#fff;box-shadow:var(--shadow);background:#322d28;border-radius:9px;padding:10px 15px;font-size:13px;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.error-toast{background:var(--danger);align-items:center;gap:10px;display:flex}.error-toast button{color:#fff;background:0 0;border:0;padding:0}.toast-enter-active,.toast-leave-active{transition:all .2s}.toast-enter-from,.toast-leave-to{opacity:0;transform:translate(-50%,8px)}@media (width<=1050px){.shell{grid-template-columns:220px minmax(400px,1fr) 310px}main{padding-inline:24px}}@media (width<=800px){.shell{height:100dvh;display:block;overflow:auto}.sidebar,.detail{z-index:30;box-shadow:var(--shadow);transition:transform .22s;display:flex;position:fixed;top:0;bottom:0}.sidebar{width:min(300px,86vw);left:0;transform:translate(-105%)}.sidebar.open{transform:none}.detail{width:min(430px,94vw);right:0;transform:translate(105%)}.detail.open{transform:none}.scrim{z-index:20;background:#2d261f42;position:fixed;inset:0}.mobile-only{display:grid}main{min-height:100dvh;padding:20px 17px 112px}.topbar h1{margin-bottom:17px;font-size:24px}.search{width:auto;margin-bottom:13px;padding:8px}.search input{width:90px}.search kbd,.quick button{display:none}.row-actions{opacity:1}.bottom{z-index:15;border-top:1px solid var(--line);padding:8px 5px max(8px,env(safe-area-inset-bottom));background:#fffdf8f5;justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -5px 18px #4f3b220f}.bottom button{color:#81786d;background:0 0;border:0;place-items:center;gap:2px;min-width:60px;font-size:10px;display:grid}.bottom button.active{color:var(--accent);font-weight:700}.bottom svg{width:20px}.fab{z-index:16;background:var(--accent);color:#fff;border:0;border-radius:50%;place-items:center;width:52px;height:52px;transition:transform .15s;display:grid;position:fixed;bottom:76px;right:18px;box-shadow:0 7px 20px #f15a2961}.fab:active{transform:scale(.94)}.toast,.error-toast{bottom:142px}.task-row{padding-inline:2px}.subtask{padding-left:35px}.ghost{opacity:.45}}.mvp-view{gap:16px;padding-bottom:36px;display:grid}.view-intro{border-bottom:1px dashed var(--line);justify-content:space-between;align-items:end;padding-bottom:12px;display:flex}.view-intro h2{margin:2px 0 0;font-size:22px}.view-intro small,.view-intro>span{color:var(--muted);font-size:12px}.tool-card,.empty-panel{border:1px solid var(--line);background:#fff;border-radius:12px;padding:16px;box-shadow:0 3px 14px #513d260d}.soft-button,.primary-small,.danger-button,.file-button{border:1px solid var(--line);background:#fff;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:8px 11px;font-size:12px;display:inline-flex}.soft-button svg,.file-button svg{width:15px}.primary-small{background:var(--accent);border-color:var(--accent);color:#fff}.danger-button{color:var(--danger);border-color:#e5b7ad}.habit-create{grid-template-columns:1fr 150px 90px auto;gap:8px;display:grid}.habit-create input,.habit-create select{border:1px solid var(--line);background:#fff;border-radius:8px;min-width:0;padding:9px}.habit-create button{background:var(--accent);color:#fff;border:0;border-radius:8px;align-items:center;gap:5px;padding:8px 13px;display:flex}.habit-list{gap:10px;display:grid}.tool-card h3{margin:0 0 4px}.habit-row{border:1px solid var(--line);background:#fff;border-radius:14px;align-items:center;gap:8px;padding:5px 5px 5px 12px;transition:border-color .15s,box-shadow .15s;display:flex;box-shadow:0 3px 14px #513d260d}.habit-row.done{border-color:var(--accent)}.habit-main{text-align:left;background:0 0;border:0;border-radius:10px;flex:1;justify-content:space-between;align-items:center;gap:10px;min-width:0;padding:13px 4px;display:flex}.habit-name{color:#3c372f;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:700;overflow:hidden}.habit-main>span:first-child{gap:3px;display:grid}.habit-main small{color:var(--muted);font-size:11px}.habit-row.done .habit-name{color:var(--accent)}.habit-check-button{color:#fff;background:#fff;border:1.5px solid #cfc3b3;border-radius:50%;flex:0 0 44px;place-items:center;width:44px;height:44px;padding:0;display:grid}.habit-check-button.done{background:var(--accent);border-color:var(--accent)}.habit-check-button svg{stroke-width:2.6px;width:19px;height:19px}.habit-row .icon.ghost{color:#b3a795;margin-left:4px}.habit-row .icon.ghost:hover{color:var(--danger)}.numeric-habit>span:first-child{gap:3px;display:grid}.numeric-habit small{color:var(--muted);font-size:11px}.numeric-action{align-items:center;gap:6px;display:flex}.numeric-action input{border:1px solid var(--line);background:#fff;border-radius:8px;width:74px;padding:7px}.numeric-action .soft-button{min-height:44px;padding:9px 12px}.habit-row>.icon.ghost{flex:0 0 44px;width:44px;height:44px}.empty-panel{text-align:center;color:var(--muted)}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.tool-card{flex-direction:column;align-items:flex-start;gap:10px;display:flex}.tool-card>svg{color:var(--accent);width:25px;height:25px}.tool-card p{color:var(--muted);margin:0;font-size:13px}.tool-card.wide{grid-column:1/-1}.file-button input{display:none}.tool-card pre{background:#f8f3e8;border-radius:8px;width:100%;max-height:180px;padding:10px;font-size:10px;overflow:auto}.session-row,.audit-row{border-top:1px solid var(--line);justify-content:space-between;align-items:center;width:100%;padding:9px 0;display:flex}.session-row span{display:grid}.session-row small,.audit-row small{color:var(--muted);font-size:11px}.inline-error{color:var(--danger);background:#fff0ed;border-radius:8px;padding:9px}.settings.active{background:var(--accent-soft);color:#b7421e;font-weight:700}@media (width<=800px){.habit-create{grid-template-columns:1fr 1fr}.habit-create button{justify-content:center}.settings-grid{grid-template-columns:1fr}.tool-card.wide{grid-column:auto}.habit-row{padding:5px 4px 5px 8px}.habit-main{padding:10px 2px}.numeric-action input{width:62px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}.pager{justify-content:flex-end;align-items:center;gap:10px;margin:0 0 14px;display:flex}.pager button:disabled{opacity:.4;cursor:not-allowed}.pager span{color:var(--muted);font-size:13px} diff --git a/backend/static/index.html b/backend/static/index.html index ffa85b3..fcd651d 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -1,3 +1,3 @@ -dodo - +dodo +
    \ No newline at end of file diff --git a/frontend/src/App.vue b/frontend/src/App.vue index c970991..d152edf 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -6,7 +6,7 @@ import { Settings, Trash2, X, Repeat2, } from 'lucide-vue-next' import { filterTasks, fromDateTimeLocal, groupTaskTree, renderMarkdown, toDateTimeLocal } from './lib/task-utils' -import { isTaskView } from './lib/mvp-utils' +import { isTaskView, shouldToggleHabitSwipe } from './lib/mvp-utils' import { csrfHeader } from './lib/csrf' import MvpPanel from './MvpPanel.vue' @@ -43,6 +43,7 @@ const totalTasks = ref(0) const totalPages = computed(() => Math.max(1, Math.ceil(totalTasks.value / pageSize))) const expandedFolders = ref(new Set()) const navigationLoaded = ref(false) +const taskSwipeStart = ref<{ id: string; x: number; y: number } | null>(null) const activeName = computed(() => { if (activeView.value === 'trash') return '回收站' @@ -221,6 +222,21 @@ async function patchTask(task: Task, patch: Partial) { async function toggle(task: Task) { try { await patchTask(task, { completed: !task.completed }); toast(task.completed ? '已重新打开' : '完成啦') } catch (reason) { fail(reason) } } +function startTaskSwipe(task: Task, event: TouchEvent) { + if (activeView.value === 'trash' || loading.value) return + const touch = event.touches[0] + if (touch) taskSwipeStart.value = { id: task.id, x: touch.clientX, y: touch.clientY } +} +async function finishTaskSwipe(task: Task, event: TouchEvent) { + const start = taskSwipeStart.value + taskSwipeStart.value = null + if (!start || start.id !== task.id || activeView.value === 'trash' || loading.value) return + const touch = event.changedTouches[0] + if (touch && shouldToggleHabitSwipe(touch.clientX - start.x, touch.clientY - start.y)) await toggle(task) +} +function cancelTaskSwipe() { + taskSwipeStart.value = null +} async function saveTask() { if (!selectedTask.value?.title.trim()) return try { @@ -341,15 +357,15 @@ onMounted(bootstrap)
    {{page}} / {{totalPages}}
    {{query?'没有匹配的任务':'这里还很安静'}}{{query?'换个关键词试试':'写下第一件想完成的小事吧'}}
    diff --git a/frontend/src/MvpPanel.vue b/frontend/src/MvpPanel.vue index a95018f..4fd71f0 100644 --- a/frontend/src/MvpPanel.vue +++ b/frontend/src/MvpPanel.vue @@ -1,7 +1,7 @@