From 5fd494210ce9cdd296f1c71e22211a9ace3a1439 Mon Sep 17 00:00:00 2001 From: Sunwuyuan Date: Sat, 6 Dec 2025 13:33:52 +0000 Subject: [PATCH] deploy: 1831c9144d8a9e6192511a4eb797d80dd5ee87ef --- assets/{404-Be-X22ct.js => 404-C6NusGbt.js} | 2 +- ...KG189LA.js => CacheManagement-DaWI8BSa.js} | 2 +- assets/DataMigration-CCX2M6jB.css | 1 - assets/DataMigration-DHME7fzg.js | 1 - ...H7DsKe.js => ExamConfigEditor-CcO-5EW7.js} | 4 +- ...{VAlert-BYrhoEr8.js => VAlert-CB2ovGuT.js} | 2 +- ...e-QQJ8OMzH.js => VAppBarTitle-CUv9Ys4F.js} | 2 +- ...{VBadge-H7ndD91w.js => VBadge-Dfdn66Fe.js} | 2 +- assets/VCheckbox-BaW9yLIL.js | 1 - assets/VCheckbox-ZL-u1kGB.css | 1 - assets/VCheckboxBtn-Cjkf0n-9.js | 1 + assets/VCheckboxBtn-CtaD8oYU.js | 1 - .../{VChip-BmBm7zXx.js => VChip-DsTHqUw0.js} | 2 +- ...ner-OExp5t5c.js => VContainer-B1JGY98V.js} | 2 +- assets/VDataTable-D5czo1DM.css | 1 - assets/VDataTable-D7gPSbin.js | 1 - ...er-CtGCqIzy.js => VDatePicker-D6FkGAp6.js} | 4 +- assets/VExpansionPanels-C5tgQAF_.js | 1 - assets/VExpansionPanels-uPjuA0pD.js | 1 + .../{VForm-BRCje5Hh.js => VForm-CnK2lukw.js} | 2 +- .../{VMenu-CJ7CiDy8.js => VMenu-ClQzjH_h.js} | 2 +- assets/{VRow-IosHPrmj.js => VRow-DtMdTMSo.js} | 2 +- assets/VSelectionControl-D-h-HCLE.js | 1 - assets/VSelectionControl-D9cm454A.css | 1 - ...{VSheet-DZUeXnyk.js => VSheet-DBWP7oOE.js} | 2 +- ...uVn92u1.js => VSkeletonLoader-DnBPECWc.js} | 2 +- assets/VSwitch-C87GkfUP.css | 1 + assets/VSwitch-CCxGT9ZY.js | 1 - assets/VSwitch-COsJOhk2.js | 1 + assets/VSwitch-DdP_-uRS.css | 1 - assets/VTabsWindowItem-CNNzieW-.js | 1 - assets/VTabsWindowItem-CQ5wWbRm.css | 1 - assets/VTabsWindowItem-ClJOXEhz.js | 1 + assets/VTabsWindowItem-DsCcWpt1.css | 1 + ...eld-C-Z2P35g.js => VTextField-xLiM0gib.js} | 2 +- ...area-mXVeQ__0.js => VTextarea-BeSb8uK6.js} | 2 +- assets/_id_-BSf-7VSQ.js | 1 - assets/_id_-COPsOi2_.js | 1 - assets/_id_-DaLKYTcE.js | 1 + assets/_id_-EtvF3n8F.js | 1 + ...rize-CNmNl-fx.js => authorize-D8xTRwK6.js} | 2 +- assets/axios-CF6XU-xP.js | 6 --- assets/cses2wakeup-Cprhtj0i.js | 7 +++ assets/cses2wakeup-DxIOWJyY.js | 7 --- assets/dataProvider-CVD6IsoX.js | 6 +++ assets/dataProvider-bw19OswA.js | 1 - .../{debug-Ba11pYfs.js => debug-BuTu-WXm.js} | 2 +- assets/debug-init-BXM_Z6IC.js | 1 + assets/debug-init-DrX-sqV-.js | 1 - ...t-B-loaBFa.js => debug-socket-CdHPMvEr.js} | 2 +- ...efault-D5AHDwKc.js => default-DRcAN1rd.js} | 2 +- ...s-B6kCnj0S.js => deviceEvents-bqh40TeD.js} | 2 +- assets/exam-player-BfcrcIG9.js | 1 - assets/exam-player-CIP0YcPa.js | 1 + assets/examschedule-BXzrB8yd.js | 1 - assets/examschedule-CSfflKwV.js | 1 + assets/filter-B-69CGo3.css | 1 + assets/filter-Bc0G1Z2P.js | 1 - assets/filter-BcCM-D_l.css | 1 - assets/filter-D0RnlzqQ.js | 1 + assets/index-BBVdlVQD.js | 44 ------------------- assets/index-BkGTTW92.js | 1 + .../{index-C1_Nmbyl.js => index-CGbgI0fv.js} | 6 +-- .../{index-90D_8zvz.js => index-CcbavYG9.js} | 2 +- assets/index-CmDQAEe_.js | 1 - ...{index-1Zmm7MNJ.css => index-DZHIzZgR.css} | 2 +- assets/index-GyS8nTIx.js | 44 +++++++++++++++++++ assets/settings-BD-rA2t3.js | 14 ------ assets/settings-CKHEbZ82.js | 14 ++++++ ...ngs-DUBpRBL_.css => settings-ilxddEFL.css} | 2 +- ...ynQ1PJ3.js => socket-debugger-C9XJXx_m.js} | 4 +- ...t-0mLOmNl0.js => socketClient-D4dHF2XE.js} | 2 +- index.html | 4 +- sw.js | 2 +- 74 files changed, 120 insertions(+), 129 deletions(-) rename assets/{404-Be-X22ct.js => 404-C6NusGbt.js} (97%) rename assets/{CacheManagement-BKG189LA.js => CacheManagement-DaWI8BSa.js} (94%) delete mode 100644 assets/DataMigration-CCX2M6jB.css delete mode 100644 assets/DataMigration-DHME7fzg.js rename assets/{ExamConfigEditor-CFH7DsKe.js => ExamConfigEditor-CcO-5EW7.js} (89%) rename assets/{VAlert-BYrhoEr8.js => VAlert-CB2ovGuT.js} (67%) rename assets/{VAppBarTitle-QQJ8OMzH.js => VAppBarTitle-CUv9Ys4F.js} (74%) rename assets/{VBadge-H7ndD91w.js => VBadge-Dfdn66Fe.js} (74%) delete mode 100644 assets/VCheckbox-BaW9yLIL.js delete mode 100644 assets/VCheckbox-ZL-u1kGB.css create mode 100644 assets/VCheckboxBtn-Cjkf0n-9.js delete mode 100644 assets/VCheckboxBtn-CtaD8oYU.js rename assets/{VChip-BmBm7zXx.js => VChip-DsTHqUw0.js} (50%) rename assets/{VContainer-OExp5t5c.js => VContainer-B1JGY98V.js} (71%) delete mode 100644 assets/VDataTable-D5czo1DM.css delete mode 100644 assets/VDataTable-D7gPSbin.js rename assets/{VDatePicker-CtGCqIzy.js => VDatePicker-D6FkGAp6.js} (94%) delete mode 100644 assets/VExpansionPanels-C5tgQAF_.js create mode 100644 assets/VExpansionPanels-uPjuA0pD.js rename assets/{VForm-BRCje5Hh.js => VForm-CnK2lukw.js} (59%) rename assets/{VMenu-CJ7CiDy8.js => VMenu-ClQzjH_h.js} (70%) rename assets/{VRow-IosHPrmj.js => VRow-DtMdTMSo.js} (68%) delete mode 100644 assets/VSelectionControl-D-h-HCLE.js delete mode 100644 assets/VSelectionControl-D9cm454A.css rename assets/{VSheet-DZUeXnyk.js => VSheet-DBWP7oOE.js} (50%) rename assets/{VSkeletonLoader-DuVn92u1.js => VSkeletonLoader-DnBPECWc.js} (97%) create mode 100644 assets/VSwitch-C87GkfUP.css delete mode 100644 assets/VSwitch-CCxGT9ZY.js create mode 100644 assets/VSwitch-COsJOhk2.js delete mode 100644 assets/VSwitch-DdP_-uRS.css delete mode 100644 assets/VTabsWindowItem-CNNzieW-.js delete mode 100644 assets/VTabsWindowItem-CQ5wWbRm.css create mode 100644 assets/VTabsWindowItem-ClJOXEhz.js create mode 100644 assets/VTabsWindowItem-DsCcWpt1.css rename assets/{VTextField-C-Z2P35g.js => VTextField-xLiM0gib.js} (69%) rename assets/{VTextarea-mXVeQ__0.js => VTextarea-BeSb8uK6.js} (65%) delete mode 100644 assets/_id_-BSf-7VSQ.js delete mode 100644 assets/_id_-COPsOi2_.js create mode 100644 assets/_id_-DaLKYTcE.js create mode 100644 assets/_id_-EtvF3n8F.js rename assets/{authorize-CNmNl-fx.js => authorize-D8xTRwK6.js} (87%) delete mode 100644 assets/axios-CF6XU-xP.js create mode 100644 assets/cses2wakeup-Cprhtj0i.js delete mode 100644 assets/cses2wakeup-DxIOWJyY.js create mode 100644 assets/dataProvider-CVD6IsoX.js delete mode 100644 assets/dataProvider-bw19OswA.js rename assets/{debug-Ba11pYfs.js => debug-BuTu-WXm.js} (77%) create mode 100644 assets/debug-init-BXM_Z6IC.js delete mode 100644 assets/debug-init-DrX-sqV-.js rename assets/{debug-socket-B-loaBFa.js => debug-socket-CdHPMvEr.js} (77%) rename assets/{default-D5AHDwKc.js => default-DRcAN1rd.js} (92%) rename assets/{deviceEvents-B6kCnj0S.js => deviceEvents-bqh40TeD.js} (97%) delete mode 100644 assets/exam-player-BfcrcIG9.js create mode 100644 assets/exam-player-CIP0YcPa.js delete mode 100644 assets/examschedule-BXzrB8yd.js create mode 100644 assets/examschedule-CSfflKwV.js create mode 100644 assets/filter-B-69CGo3.css delete mode 100644 assets/filter-Bc0G1Z2P.js delete mode 100644 assets/filter-BcCM-D_l.css create mode 100644 assets/filter-D0RnlzqQ.js delete mode 100644 assets/index-BBVdlVQD.js create mode 100644 assets/index-BkGTTW92.js rename assets/{index-C1_Nmbyl.js => index-CGbgI0fv.js} (61%) rename assets/{index-90D_8zvz.js => index-CcbavYG9.js} (98%) delete mode 100644 assets/index-CmDQAEe_.js rename assets/{index-1Zmm7MNJ.css => index-DZHIzZgR.css} (98%) create mode 100644 assets/index-GyS8nTIx.js delete mode 100644 assets/settings-BD-rA2t3.js create mode 100644 assets/settings-CKHEbZ82.js rename assets/{settings-DUBpRBL_.css => settings-ilxddEFL.css} (93%) rename assets/{socket-debugger-hynQ1PJ3.js => socket-debugger-C9XJXx_m.js} (59%) rename assets/{socketClient-0mLOmNl0.js => socketClient-D4dHF2XE.js} (99%) diff --git a/assets/404-Be-X22ct.js b/assets/404-C6NusGbt.js similarity index 97% rename from assets/404-Be-X22ct.js rename to assets/404-C6NusGbt.js index 092fd8a..f4ff021 100644 --- a/assets/404-Be-X22ct.js +++ b/assets/404-C6NusGbt.js @@ -1 +1 @@ -import{j as c,o as n,w as e,d as t,as as C,i as a,at as o,l as i,au as s}from"./index-BBVdlVQD.js";import{V as L,a as r}from"./VRow-IosHPrmj.js";import{V as h}from"./VContainer-OExp5t5c.js";const f="data:image/svg+xml,%3csvg%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns='http://www.w3.org/2000/svg'%20width='256'%20height='256'%20viewBox='0%200%20256%20256'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-74_1)'%3e%3cpath%20fill='%23FFFFFF'%20d='M0%20256L256%20256L256%200L0%200L0%20256Z'%3e%3c/path%3e%3crect%20x='0'%20y='0'%20width='256'%20height='128'%20fill='%23D8C4A0'%3e%3c/rect%3e%3crect%20x='0'%20y='128'%20width='256'%20height='128'%20fill='%23F5E0BB'%3e%3c/rect%3e%3cpath%20d='M28%20228L128%20128L228%20128L128%20228L28%20228Z'%20fill-rule='evenodd'%20fill='%23241A04'%3e%3c/path%3e%3cpath%20d='M28%20128L128%2028L228%2028L128%20128L28%20128Z'%20fill-rule='evenodd'%20fill='%2352452A'%3e%3c/path%3e%3cg%3e%3cpath%20fill='%23000000'%20d='M-3049.01%202467.94L-3043.48%202467.94L-3043.48%202466.99L-3045.92%202466.99C-3046.36%202466.99%20-3046.9%202467.04%20-3047.36%202467.08C-3045.29%202465.12%20-3043.9%202463.33%20-3043.9%202461.57C-3043.9%202460.01%20-3044.9%202458.99%20-3046.47%202458.99C-3047.58%202458.99%20-3048.35%202459.49%20-3049.06%202460.27L-3048.43%202460.9C-3047.93%202460.31%20-3047.32%202459.88%20-3046.6%202459.88C-3045.51%202459.88%20-3044.98%202460.61%20-3044.98%202461.62C-3044.98%202463.13%20-3046.25%202464.88%20-3049.01%202467.29L-3049.01%202467.94ZM-3039.27%202468.1C-3037.9%202468.1%20-3036.74%202466.95%20-3036.74%202465.24C-3036.74%202463.39%20-3037.7%202462.48%20-3039.19%202462.48C-3039.87%202462.48%20-3040.64%202462.88%20-3041.18%202463.54C-3041.13%202460.81%20-3040.13%202459.89%20-3038.91%202459.89C-3038.38%202459.89%20-3037.85%202460.15%20-3037.52%202460.56L-3036.89%202459.89C-3037.39%202459.36%20-3038.04%202458.99%20-3038.96%202458.99C-3040.66%202458.99%20-3042.21%202460.3%20-3042.21%202463.74C-3042.21%202466.65%20-3040.95%202468.1%20-3039.27%202468.1ZM-3041.15%202464.41C-3040.58%202463.6%20-3039.91%202463.3%20-3039.36%202463.3C-3038.3%202463.3%20-3037.78%202464.05%20-3037.78%202465.24C-3037.78%202466.44%20-3038.43%202467.23%20-3039.27%202467.23C-3040.37%202467.23%20-3041.03%202466.24%20-3041.15%202464.41ZM-3035.17%202467.94L-3030.34%202467.94L-3030.34%202467.03L-3032.1%202467.03L-3032.1%202459.15L-3032.95%202459.15C-3033.43%202459.42%20-3033.99%202459.62%20-3034.77%202459.77L-3034.77%202460.47L-3033.2%202460.47L-3033.2%202467.03L-3035.17%202467.03L-3035.17%202467.94ZM-3029.51%202467.94L-3028.4%202467.94L-3027.54%202465.25L-3024.33%202465.25L-3023.49%202467.94L-3022.31%202467.94L-3025.3%202459.15L-3026.54%202459.15L-3029.51%202467.94ZM-3027.27%202464.38L-3026.84%202463.02C-3026.52%202462.02%20-3026.24%202461.08%20-3025.96%202460.04L-3025.91%202460.04C-3025.62%202461.06%20-3025.35%202462.02%20-3025.02%202463.02L-3024.6%202464.38L-3027.27%202464.38ZM-3018.93%202468.1C-3017.26%202468.1%20-3016.19%202466.58%20-3016.19%202463.51C-3016.19%202460.47%20-3017.26%202458.99%20-3018.93%202458.99C-3020.61%202458.99%20-3021.67%202460.47%20-3021.67%202463.51C-3021.67%202466.58%20-3020.61%202468.1%20-3018.93%202468.1ZM-3018.93%202467.21C-3019.93%202467.21%20-3020.61%202466.09%20-3020.61%202463.51C-3020.61%202460.95%20-3019.93%202459.85%20-3018.93%202459.85C-3017.93%202459.85%20-3017.25%202460.95%20-3017.25%202463.51C-3017.25%202466.09%20-3017.93%202467.21%20-3018.93%202467.21ZM-3012.27%202468.1C-3010.6%202468.1%20-3009.53%202466.58%20-3009.53%202463.51C-3009.53%202460.47%20-3010.6%202458.99%20-3012.27%202458.99C-3013.95%202458.99%20-3015.01%202460.47%20-3015.01%202463.51C-3015.01%202466.58%20-3013.95%202468.1%20-3012.27%202468.1ZM-3012.27%202467.21C-3013.27%202467.21%20-3013.95%202466.09%20-3013.95%202463.51C-3013.95%202460.95%20-3013.27%202459.85%20-3012.27%202459.85C-3011.27%202459.85%20-3010.59%202460.95%20-3010.59%202463.51C-3010.59%202466.09%20-3011.27%202467.21%20-3012.27%202467.21Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-74_1'%3e%3cpath%20d='M0%20256L256%20256L256%200L0%200L0%20256Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",u={__name:"404",setup(d){return(p,l)=>(n(),c(h,{class:"fill-height"},{default:e(()=>[t(C,{class:"align-centerfill-height mx-auto","max-width":"900"},{default:e(()=>[t(o,{class:"mb-4",height:"150",src:f}),l[3]||(l[3]=a("div",{class:"text-center"},[a("div",{class:"text-body-2 font-weight-light mb-n1"},"出现了错误"),a("h1",{class:"text-h2 font-weight-bold"},"404")],-1)),l[4]||(l[4]=a("div",{class:"py-4"},null,-1)),t(L,null,{default:e(()=>[t(r,{cols:"12"},{default:e(()=>[t(i,{class:"py-4",color:"surface-variant","prepend-icon":"mdi-help",rounded:"lg",variant:"outlined"},{image:e(()=>[t(o,{position:"top right"})]),title:e(()=>[...l[1]||(l[1]=[a("h2",{class:"text-h5 font-weight-bold"},"为什么会出现此错误?",-1)])]),subtitle:e(()=>[...l[2]||(l[2]=[a("div",{class:"text-subtitle-1"},"大概是页面未找到",-1)])]),default:e(()=>[t(s,{contained:"","model-value":"",opacity:".12",persistent:"",scrim:"primary"})]),_:1})]),_:1}),t(r,{cols:"6"},{default:e(()=>[t(i,{class:"py-4",color:"surface-variant","prepend-icon":"mdi-home",rounded:"lg",title:"返回首页",to:"/",variant:"text"},{default:e(()=>[t(s,{contained:"","model-value":"",opacity:".06",persistent:"",scrim:"primary"})]),_:1})]),_:1}),t(r,{cols:"6"},{default:e(()=>[t(i,{class:"py-4",color:"surface-variant","prepend-icon":"mdi-arrow-left-drop-circle",rounded:"lg",title:"返回上一页",variant:"text",onClick:l[0]||(l[0]=m=>this.$router.back())},{default:e(()=>[t(s,{contained:"","model-value":"",opacity:".06",persistent:"",scrim:"primary"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}},x={__name:"404",setup(d){return(p,l)=>(n(),c(u))}};export{x as default}; +import{j as c,o as n,w as e,d as t,as as C,i as a,at as o,l as i,au as s}from"./index-GyS8nTIx.js";import{V as L,a as r}from"./VRow-DtMdTMSo.js";import{V as h}from"./VContainer-B1JGY98V.js";const f="data:image/svg+xml,%3csvg%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns='http://www.w3.org/2000/svg'%20width='256'%20height='256'%20viewBox='0%200%20256%20256'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-74_1)'%3e%3cpath%20fill='%23FFFFFF'%20d='M0%20256L256%20256L256%200L0%200L0%20256Z'%3e%3c/path%3e%3crect%20x='0'%20y='0'%20width='256'%20height='128'%20fill='%23D8C4A0'%3e%3c/rect%3e%3crect%20x='0'%20y='128'%20width='256'%20height='128'%20fill='%23F5E0BB'%3e%3c/rect%3e%3cpath%20d='M28%20228L128%20128L228%20128L128%20228L28%20228Z'%20fill-rule='evenodd'%20fill='%23241A04'%3e%3c/path%3e%3cpath%20d='M28%20128L128%2028L228%2028L128%20128L28%20128Z'%20fill-rule='evenodd'%20fill='%2352452A'%3e%3c/path%3e%3cg%3e%3cpath%20fill='%23000000'%20d='M-3049.01%202467.94L-3043.48%202467.94L-3043.48%202466.99L-3045.92%202466.99C-3046.36%202466.99%20-3046.9%202467.04%20-3047.36%202467.08C-3045.29%202465.12%20-3043.9%202463.33%20-3043.9%202461.57C-3043.9%202460.01%20-3044.9%202458.99%20-3046.47%202458.99C-3047.58%202458.99%20-3048.35%202459.49%20-3049.06%202460.27L-3048.43%202460.9C-3047.93%202460.31%20-3047.32%202459.88%20-3046.6%202459.88C-3045.51%202459.88%20-3044.98%202460.61%20-3044.98%202461.62C-3044.98%202463.13%20-3046.25%202464.88%20-3049.01%202467.29L-3049.01%202467.94ZM-3039.27%202468.1C-3037.9%202468.1%20-3036.74%202466.95%20-3036.74%202465.24C-3036.74%202463.39%20-3037.7%202462.48%20-3039.19%202462.48C-3039.87%202462.48%20-3040.64%202462.88%20-3041.18%202463.54C-3041.13%202460.81%20-3040.13%202459.89%20-3038.91%202459.89C-3038.38%202459.89%20-3037.85%202460.15%20-3037.52%202460.56L-3036.89%202459.89C-3037.39%202459.36%20-3038.04%202458.99%20-3038.96%202458.99C-3040.66%202458.99%20-3042.21%202460.3%20-3042.21%202463.74C-3042.21%202466.65%20-3040.95%202468.1%20-3039.27%202468.1ZM-3041.15%202464.41C-3040.58%202463.6%20-3039.91%202463.3%20-3039.36%202463.3C-3038.3%202463.3%20-3037.78%202464.05%20-3037.78%202465.24C-3037.78%202466.44%20-3038.43%202467.23%20-3039.27%202467.23C-3040.37%202467.23%20-3041.03%202466.24%20-3041.15%202464.41ZM-3035.17%202467.94L-3030.34%202467.94L-3030.34%202467.03L-3032.1%202467.03L-3032.1%202459.15L-3032.95%202459.15C-3033.43%202459.42%20-3033.99%202459.62%20-3034.77%202459.77L-3034.77%202460.47L-3033.2%202460.47L-3033.2%202467.03L-3035.17%202467.03L-3035.17%202467.94ZM-3029.51%202467.94L-3028.4%202467.94L-3027.54%202465.25L-3024.33%202465.25L-3023.49%202467.94L-3022.31%202467.94L-3025.3%202459.15L-3026.54%202459.15L-3029.51%202467.94ZM-3027.27%202464.38L-3026.84%202463.02C-3026.52%202462.02%20-3026.24%202461.08%20-3025.96%202460.04L-3025.91%202460.04C-3025.62%202461.06%20-3025.35%202462.02%20-3025.02%202463.02L-3024.6%202464.38L-3027.27%202464.38ZM-3018.93%202468.1C-3017.26%202468.1%20-3016.19%202466.58%20-3016.19%202463.51C-3016.19%202460.47%20-3017.26%202458.99%20-3018.93%202458.99C-3020.61%202458.99%20-3021.67%202460.47%20-3021.67%202463.51C-3021.67%202466.58%20-3020.61%202468.1%20-3018.93%202468.1ZM-3018.93%202467.21C-3019.93%202467.21%20-3020.61%202466.09%20-3020.61%202463.51C-3020.61%202460.95%20-3019.93%202459.85%20-3018.93%202459.85C-3017.93%202459.85%20-3017.25%202460.95%20-3017.25%202463.51C-3017.25%202466.09%20-3017.93%202467.21%20-3018.93%202467.21ZM-3012.27%202468.1C-3010.6%202468.1%20-3009.53%202466.58%20-3009.53%202463.51C-3009.53%202460.47%20-3010.6%202458.99%20-3012.27%202458.99C-3013.95%202458.99%20-3015.01%202460.47%20-3015.01%202463.51C-3015.01%202466.58%20-3013.95%202468.1%20-3012.27%202468.1ZM-3012.27%202467.21C-3013.27%202467.21%20-3013.95%202466.09%20-3013.95%202463.51C-3013.95%202460.95%20-3013.27%202459.85%20-3012.27%202459.85C-3011.27%202459.85%20-3010.59%202460.95%20-3010.59%202463.51C-3010.59%202466.09%20-3011.27%202467.21%20-3012.27%202467.21Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-74_1'%3e%3cpath%20d='M0%20256L256%20256L256%200L0%200L0%20256Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",u={__name:"404",setup(d){return(p,l)=>(n(),c(h,{class:"fill-height"},{default:e(()=>[t(C,{class:"align-centerfill-height mx-auto","max-width":"900"},{default:e(()=>[t(o,{class:"mb-4",height:"150",src:f}),l[3]||(l[3]=a("div",{class:"text-center"},[a("div",{class:"text-body-2 font-weight-light mb-n1"},"出现了错误"),a("h1",{class:"text-h2 font-weight-bold"},"404")],-1)),l[4]||(l[4]=a("div",{class:"py-4"},null,-1)),t(L,null,{default:e(()=>[t(r,{cols:"12"},{default:e(()=>[t(i,{class:"py-4",color:"surface-variant","prepend-icon":"mdi-help",rounded:"lg",variant:"outlined"},{image:e(()=>[t(o,{position:"top right"})]),title:e(()=>[...l[1]||(l[1]=[a("h2",{class:"text-h5 font-weight-bold"},"为什么会出现此错误?",-1)])]),subtitle:e(()=>[...l[2]||(l[2]=[a("div",{class:"text-subtitle-1"},"大概是页面未找到",-1)])]),default:e(()=>[t(s,{contained:"","model-value":"",opacity:".12",persistent:"",scrim:"primary"})]),_:1})]),_:1}),t(r,{cols:"6"},{default:e(()=>[t(i,{class:"py-4",color:"surface-variant","prepend-icon":"mdi-home",rounded:"lg",title:"返回首页",to:"/",variant:"text"},{default:e(()=>[t(s,{contained:"","model-value":"",opacity:".06",persistent:"",scrim:"primary"})]),_:1})]),_:1}),t(r,{cols:"6"},{default:e(()=>[t(i,{class:"py-4",color:"surface-variant","prepend-icon":"mdi-arrow-left-drop-circle",rounded:"lg",title:"返回上一页",variant:"text",onClick:l[0]||(l[0]=m=>this.$router.back())},{default:e(()=>[t(s,{contained:"","model-value":"",opacity:".06",persistent:"",scrim:"primary"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}},x={__name:"404",setup(d){return(p,l)=>(n(),c(u))}};export{x as default}; diff --git a/assets/CacheManagement-BKG189LA.js b/assets/CacheManagement-DaWI8BSa.js similarity index 94% rename from assets/CacheManagement-BKG189LA.js rename to assets/CacheManagement-DaWI8BSa.js index beaaaa6..579fc20 100644 --- a/assets/CacheManagement-BKG189LA.js +++ b/assets/CacheManagement-DaWI8BSa.js @@ -1 +1 @@ -import{_ as W,j as c,o,w as s,d as a,q as A,i as r,x as b,y as p,t as l,v as m,z as C,B as k,C as f,A as w,F as x,G as V,P as E,Q as N,ap as L,aq as P,l as y}from"./index-BBVdlVQD.js";import{V as _}from"./VAlert-BYrhoEr8.js";import{V as B,a as R,b as z,c as F}from"./VExpansionPanels-C5tgQAF_.js";import{V as H}from"./VChip-BmBm7zXx.js";import{V as I}from"./VSkeletonLoader-DuVn92u1.js";import{V as M,a as v}from"./VRow-IosHPrmj.js";import{V as U}from"./VContainer-OExp5t5c.js";const j={name:"CacheManager",data(){return{caches:[],loading:!1,serviceWorkerActive:!1,message:"",messageType:"info"}},mounted(){this.checkServiceWorker()},methods:{checkServiceWorker(){"serviceWorker"in navigator?navigator.serviceWorker.ready.then(()=>{this.serviceWorkerActive=!0,this.refreshCaches()}).catch(()=>{this.serviceWorkerActive=!1}):this.serviceWorkerActive=!1},async refreshCaches(){if(this.serviceWorkerActive){this.loading=!0,this.message="",this.caches=[];try{const t=await this.sendMessageToSW({type:"CACHE_KEYS"});for(const e of t.cacheNames){const n=await this.sendMessageToSW({type:"CACHE_CONTENT",cacheName:e});this.caches.push({name:e,urls:n.urls||[]})}}catch(t){this.showMessage("获取缓存信息失败: "+t.message,"error")}finally{this.loading=!1}}},async clearCache(t){this.loading=!0;try{(await this.sendMessageToSW({type:"CLEAR_CACHE",cacheName:t})).success?(this.showMessage(`已清除缓存: ${this.formatCacheName(t)}`,"success"),await this.refreshCaches()):this.showMessage("清除缓存失败","error")}catch(e){this.showMessage("清除缓存失败: "+e.message,"error")}finally{this.loading=!1}},async clearUrl(t,e){this.loading=!0;try{(await this.sendMessageToSW({type:"CLEAR_URL",cacheName:t,url:e})).success?(this.showMessage(`已从缓存中删除: ${this.getFileName(e)}`,"success"),await this.refreshCaches()):this.showMessage("删除缓存项失败","error")}catch(n){this.showMessage("删除缓存项失败: "+n.message,"error")}finally{this.loading=!1}},async clearAllCaches(){if(confirm("确定要清除所有缓存吗?这可能会导致应用需要重新下载资源。")){this.loading=!0;try{(await this.sendMessageToSW({type:"CLEAR_ALL_CACHES"})).success?(this.showMessage("已清除所有缓存","success"),await this.refreshCaches()):this.showMessage("清除所有缓存失败","error")}catch(t){this.showMessage("清除所有缓存失败: "+t.message,"error")}finally{this.loading=!1}}},sendMessageToSW(t){return new Promise((e,n)=>{if(!navigator.serviceWorker.controller){n(new Error("Service Worker 未控制页面"));return}const g=new MessageChannel;g.port1.onmessage=i=>{e(i.data)},navigator.serviceWorker.controller.postMessage(t,[g.port2]),setTimeout(()=>{n(new Error("Service Worker 响应超时"))},5e3)})},formatCacheName(t){return t.replace("workbox-precache-","预缓存-").replace("-cache","").replace("js","JS").replace("css","CSS").replace("html","HTML").replace("images","图片").replace("external-resources","外部资源").replace("cdn-cgi","CDN")},getFileName(t){try{const e=new URL(t),n=e.pathname.split("/");return n[n.length-1]||e.hostname}catch(e){return console.error("获取文件名失败:",e),t}},showMessage(t,e="info"){this.message=t,this.messageType=e,setTimeout(()=>{this.message===t&&(this.message="")},5e3)}}},q={class:"d-flex align-center"},D={class:"d-flex justify-end mb-2"};function O(t,e,n,g,i,d){return o(),c(y,null,{default:s(()=>[a(A,{class:"d-flex align-center"},{default:s(()=>[e[2]||(e[2]=r("span",null,"缓存管理",-1)),a(b),a(p,{loading:i.loading,color:"error",onClick:d.clearAllCaches},{default:s(()=>[...e[0]||(e[0]=[l(" 清除所有缓存 ",-1)])]),_:1},8,["loading","onClick"]),a(p,{class:"ml-2",icon:"",onClick:d.refreshCaches},{default:s(()=>[a(m,null,{default:s(()=>[...e[1]||(e[1]=[l("mdi-refresh",-1)])]),_:1})]),_:1},8,["onClick"])]),_:1}),a(C,null,{default:s(()=>[i.serviceWorkerActive?k("",!0):(o(),c(_,{key:0,class:"mb-4",type:"warning"},{default:s(()=>[...e[3]||(e[3]=[l(" Service Worker 未激活,缓存管理功能不可用。 ",-1)])]),_:1})),i.message?(o(),c(_,{key:1,type:i.messageType,class:"mb-4"},{default:s(()=>[l(f(i.message),1)]),_:1},8,["type"])):k("",!0),i.caches.length>0?(o(),c(B,{key:2},{default:s(()=>[(o(!0),w(x,null,V(i.caches,u=>(o(),c(R,{key:u.name},{default:s(()=>[a(z,null,{default:s(()=>[r("div",q,[r("span",null,f(d.formatCacheName(u.name)),1),a(H,{class:"ml-2",size:"small"},{default:s(()=>[l(f(u.urls.length)+" 个文件",1)]),_:2},1024)])]),_:2},1024),a(F,null,{default:s(()=>[r("div",D,[a(p,{loading:i.loading,color:"error",size:"small",onClick:h=>d.clearCache(u.name)},{default:s(()=>[...e[4]||(e[4]=[l(" 清除此缓存 ",-1)])]),_:1},8,["loading","onClick"])]),a(E,{lines:"two"},{default:s(()=>[(o(!0),w(x,null,V(u.urls,(h,T)=>(o(),c(N,{key:T},{append:s(()=>[a(p,{color:"error",icon:"",size:"small",onClick:$=>d.clearUrl(u.name,h)},{default:s(()=>[a(m,null,{default:s(()=>[...e[5]||(e[5]=[l("mdi-delete",-1)])]),_:1})]),_:1},8,["onClick"])]),default:s(()=>[a(L,{class:"text-truncate"},{default:s(()=>[l(f(d.getFileName(h)),1)]),_:2},1024),a(P,{class:"text-truncate"},{default:s(()=>[l(f(h),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})):i.loading?(o(),c(I,{key:3,type:"article"})):(o(),c(_,{key:4,type:"info"},{default:s(()=>[...e[6]||(e[6]=[l(" 没有找到缓存数据。 ",-1)])]),_:1}))]),_:1})]),_:1})}const S=W(j,[["render",O]]),G={name:"CacheManagementPage",components:{CacheManager:S},metaInfo:{title:"缓存管理"}},J={class:"d-flex align-center mb-6"},K={class:"d-flex align-center mb-2"},Q={class:"d-flex align-center mb-2"};function Y(t,e,n,g,i,d){const u=S;return o(),c(U,null,{default:s(()=>[a(M,null,{default:s(()=>[a(v,{cols:"12"},{default:s(()=>[r("div",J,[a(m,{class:"mr-3",color:"primary",size:"x-large"},{default:s(()=>[...e[0]||(e[0]=[l("mdi-database-cog-outline",-1)])]),_:1}),e[1]||(e[1]=r("div",null,[r("h1",{class:"text-h4"},"缓存管理"),r("div",{class:"text-subtitle-1 text-grey"},"管理应用的本地缓存资源")],-1))]),a(y,{class:"mb-6",color:"info",density:"compact",variant:"tonal"},{default:s(()=>[a(C,{class:"d-flex align-center"},{default:s(()=>[a(m,{class:"mr-2",color:"info"},{default:s(()=>[...e[2]||(e[2]=[l("mdi-information-outline",-1)])]),_:1}),e[3]||(e[3]=r("span",null,"在这里您可以查看和管理应用的缓存文件。清除缓存可能会导致应用需要重新下载资源,但有助于解决某些显示问题。",-1))]),_:1})]),_:1}),a(M,null,{default:s(()=>[a(v,{cols:"12",md:"8"},{default:s(()=>[a(y,{class:"mb-4",variant:"tonal"},{default:s(()=>[a(C,null,{default:s(()=>[r("div",K,[a(m,{class:"mr-2",color:"primary"},{default:s(()=>[...e[4]||(e[4]=[l("mdi-information",-1)])]),_:1}),e[5]||(e[5]=r("span",{class:"text-h6"},"什么是缓存?",-1))]),e[6]||(e[6]=r("p",null," 缓存是浏览器在本地存储的网站资源副本,如图片、脚本和样式表等。这些缓存可以加快页面加载速度,减少数据使用,并在离线时提供基本功能。",-1))]),_:1})]),_:1})]),_:1}),a(v,{cols:"12",md:"4"},{default:s(()=>[a(y,{class:"mb-4",variant:"tonal"},{default:s(()=>[a(C,null,{default:s(()=>[r("div",Q,[a(m,{class:"mr-2",color:"warning"},{default:s(()=>[...e[7]||(e[7]=[l("mdi-lightbulb-outline",-1)])]),_:1}),e[8]||(e[8]=r("span",{class:"text-h6"},"何时清除缓存?",-1))]),e[9]||(e[9]=r("ul",{class:"pl-4"},[r("li",null,"应用显示过时的内容"),r("li",null,"界面出现异常"),r("li",null,"应用功能不正常")],-1))]),_:1})]),_:1})]),_:1})]),_:1}),a(u)]),_:1})]),_:1})]),_:1})}const le=W(G,[["render",Y]]);export{le as default}; +import{_ as W,j as c,o,w as s,d as a,q as A,i as r,x as b,y as p,t as l,v as m,z as C,B as k,C as f,A as w,F as x,G as V,P as E,Q as N,ap as L,aq as P,l as y}from"./index-GyS8nTIx.js";import{V as _}from"./VAlert-CB2ovGuT.js";import{V as B,a as R,b as z,c as F}from"./VExpansionPanels-uPjuA0pD.js";import{V as H}from"./VChip-DsTHqUw0.js";import{V as I}from"./VSkeletonLoader-DnBPECWc.js";import{V as M,a as v}from"./VRow-DtMdTMSo.js";import{V as U}from"./VContainer-B1JGY98V.js";const j={name:"CacheManager",data(){return{caches:[],loading:!1,serviceWorkerActive:!1,message:"",messageType:"info"}},mounted(){this.checkServiceWorker()},methods:{checkServiceWorker(){"serviceWorker"in navigator?navigator.serviceWorker.ready.then(()=>{this.serviceWorkerActive=!0,this.refreshCaches()}).catch(()=>{this.serviceWorkerActive=!1}):this.serviceWorkerActive=!1},async refreshCaches(){if(this.serviceWorkerActive){this.loading=!0,this.message="",this.caches=[];try{const t=await this.sendMessageToSW({type:"CACHE_KEYS"});for(const e of t.cacheNames){const n=await this.sendMessageToSW({type:"CACHE_CONTENT",cacheName:e});this.caches.push({name:e,urls:n.urls||[]})}}catch(t){this.showMessage("获取缓存信息失败: "+t.message,"error")}finally{this.loading=!1}}},async clearCache(t){this.loading=!0;try{(await this.sendMessageToSW({type:"CLEAR_CACHE",cacheName:t})).success?(this.showMessage(`已清除缓存: ${this.formatCacheName(t)}`,"success"),await this.refreshCaches()):this.showMessage("清除缓存失败","error")}catch(e){this.showMessage("清除缓存失败: "+e.message,"error")}finally{this.loading=!1}},async clearUrl(t,e){this.loading=!0;try{(await this.sendMessageToSW({type:"CLEAR_URL",cacheName:t,url:e})).success?(this.showMessage(`已从缓存中删除: ${this.getFileName(e)}`,"success"),await this.refreshCaches()):this.showMessage("删除缓存项失败","error")}catch(n){this.showMessage("删除缓存项失败: "+n.message,"error")}finally{this.loading=!1}},async clearAllCaches(){if(confirm("确定要清除所有缓存吗?这可能会导致应用需要重新下载资源。")){this.loading=!0;try{(await this.sendMessageToSW({type:"CLEAR_ALL_CACHES"})).success?(this.showMessage("已清除所有缓存","success"),await this.refreshCaches()):this.showMessage("清除所有缓存失败","error")}catch(t){this.showMessage("清除所有缓存失败: "+t.message,"error")}finally{this.loading=!1}}},sendMessageToSW(t){return new Promise((e,n)=>{if(!navigator.serviceWorker.controller){n(new Error("Service Worker 未控制页面"));return}const g=new MessageChannel;g.port1.onmessage=i=>{e(i.data)},navigator.serviceWorker.controller.postMessage(t,[g.port2]),setTimeout(()=>{n(new Error("Service Worker 响应超时"))},5e3)})},formatCacheName(t){return t.replace("workbox-precache-","预缓存-").replace("-cache","").replace("js","JS").replace("css","CSS").replace("html","HTML").replace("images","图片").replace("external-resources","外部资源").replace("cdn-cgi","CDN")},getFileName(t){try{const e=new URL(t),n=e.pathname.split("/");return n[n.length-1]||e.hostname}catch(e){return console.error("获取文件名失败:",e),t}},showMessage(t,e="info"){this.message=t,this.messageType=e,setTimeout(()=>{this.message===t&&(this.message="")},5e3)}}},q={class:"d-flex align-center"},D={class:"d-flex justify-end mb-2"};function O(t,e,n,g,i,d){return o(),c(y,null,{default:s(()=>[a(A,{class:"d-flex align-center"},{default:s(()=>[e[2]||(e[2]=r("span",null,"缓存管理",-1)),a(b),a(p,{loading:i.loading,color:"error",onClick:d.clearAllCaches},{default:s(()=>[...e[0]||(e[0]=[l(" 清除所有缓存 ",-1)])]),_:1},8,["loading","onClick"]),a(p,{class:"ml-2",icon:"",onClick:d.refreshCaches},{default:s(()=>[a(m,null,{default:s(()=>[...e[1]||(e[1]=[l("mdi-refresh",-1)])]),_:1})]),_:1},8,["onClick"])]),_:1}),a(C,null,{default:s(()=>[i.serviceWorkerActive?k("",!0):(o(),c(_,{key:0,class:"mb-4",type:"warning"},{default:s(()=>[...e[3]||(e[3]=[l(" Service Worker 未激活,缓存管理功能不可用。 ",-1)])]),_:1})),i.message?(o(),c(_,{key:1,type:i.messageType,class:"mb-4"},{default:s(()=>[l(f(i.message),1)]),_:1},8,["type"])):k("",!0),i.caches.length>0?(o(),c(B,{key:2},{default:s(()=>[(o(!0),w(x,null,V(i.caches,u=>(o(),c(R,{key:u.name},{default:s(()=>[a(z,null,{default:s(()=>[r("div",q,[r("span",null,f(d.formatCacheName(u.name)),1),a(H,{class:"ml-2",size:"small"},{default:s(()=>[l(f(u.urls.length)+" 个文件",1)]),_:2},1024)])]),_:2},1024),a(F,null,{default:s(()=>[r("div",D,[a(p,{loading:i.loading,color:"error",size:"small",onClick:h=>d.clearCache(u.name)},{default:s(()=>[...e[4]||(e[4]=[l(" 清除此缓存 ",-1)])]),_:1},8,["loading","onClick"])]),a(E,{lines:"two"},{default:s(()=>[(o(!0),w(x,null,V(u.urls,(h,T)=>(o(),c(N,{key:T},{append:s(()=>[a(p,{color:"error",icon:"",size:"small",onClick:$=>d.clearUrl(u.name,h)},{default:s(()=>[a(m,null,{default:s(()=>[...e[5]||(e[5]=[l("mdi-delete",-1)])]),_:1})]),_:1},8,["onClick"])]),default:s(()=>[a(L,{class:"text-truncate"},{default:s(()=>[l(f(d.getFileName(h)),1)]),_:2},1024),a(P,{class:"text-truncate"},{default:s(()=>[l(f(h),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})):i.loading?(o(),c(I,{key:3,type:"article"})):(o(),c(_,{key:4,type:"info"},{default:s(()=>[...e[6]||(e[6]=[l(" 没有找到缓存数据。 ",-1)])]),_:1}))]),_:1})]),_:1})}const S=W(j,[["render",O]]),G={name:"CacheManagementPage",components:{CacheManager:S},metaInfo:{title:"缓存管理"}},J={class:"d-flex align-center mb-6"},K={class:"d-flex align-center mb-2"},Q={class:"d-flex align-center mb-2"};function Y(t,e,n,g,i,d){const u=S;return o(),c(U,null,{default:s(()=>[a(M,null,{default:s(()=>[a(v,{cols:"12"},{default:s(()=>[r("div",J,[a(m,{class:"mr-3",color:"primary",size:"x-large"},{default:s(()=>[...e[0]||(e[0]=[l("mdi-database-cog-outline",-1)])]),_:1}),e[1]||(e[1]=r("div",null,[r("h1",{class:"text-h4"},"缓存管理"),r("div",{class:"text-subtitle-1 text-grey"},"管理应用的本地缓存资源")],-1))]),a(y,{class:"mb-6",color:"info",density:"compact",variant:"tonal"},{default:s(()=>[a(C,{class:"d-flex align-center"},{default:s(()=>[a(m,{class:"mr-2",color:"info"},{default:s(()=>[...e[2]||(e[2]=[l("mdi-information-outline",-1)])]),_:1}),e[3]||(e[3]=r("span",null,"在这里您可以查看和管理应用的缓存文件。清除缓存可能会导致应用需要重新下载资源,但有助于解决某些显示问题。",-1))]),_:1})]),_:1}),a(M,null,{default:s(()=>[a(v,{cols:"12",md:"8"},{default:s(()=>[a(y,{class:"mb-4",variant:"tonal"},{default:s(()=>[a(C,null,{default:s(()=>[r("div",K,[a(m,{class:"mr-2",color:"primary"},{default:s(()=>[...e[4]||(e[4]=[l("mdi-information",-1)])]),_:1}),e[5]||(e[5]=r("span",{class:"text-h6"},"什么是缓存?",-1))]),e[6]||(e[6]=r("p",null," 缓存是浏览器在本地存储的网站资源副本,如图片、脚本和样式表等。这些缓存可以加快页面加载速度,减少数据使用,并在离线时提供基本功能。",-1))]),_:1})]),_:1})]),_:1}),a(v,{cols:"12",md:"4"},{default:s(()=>[a(y,{class:"mb-4",variant:"tonal"},{default:s(()=>[a(C,null,{default:s(()=>[r("div",Q,[a(m,{class:"mr-2",color:"warning"},{default:s(()=>[...e[7]||(e[7]=[l("mdi-lightbulb-outline",-1)])]),_:1}),e[8]||(e[8]=r("span",{class:"text-h6"},"何时清除缓存?",-1))]),e[9]||(e[9]=r("ul",{class:"pl-4"},[r("li",null,"应用显示过时的内容"),r("li",null,"界面出现异常"),r("li",null,"应用功能不正常")],-1))]),_:1})]),_:1})]),_:1})]),_:1}),a(u)]),_:1})]),_:1})]),_:1})}const le=W(G,[["render",Y]]);export{le as default}; diff --git a/assets/DataMigration-CCX2M6jB.css b/assets/DataMigration-CCX2M6jB.css deleted file mode 100644 index 58482d3..0000000 --- a/assets/DataMigration-CCX2M6jB.css +++ /dev/null @@ -1 +0,0 @@ -.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.v-radio-group>.v-input__control{flex-direction:column}.v-radio-group>.v-input__control>.v-label{margin-inline-start:16px}.v-radio-group>.v-input__control>.v-label+.v-selection-control-group{padding-inline-start:6px;margin-top:8px}.v-radio-group .v-input__details{padding-inline:16px} diff --git a/assets/DataMigration-DHME7fzg.js b/assets/DataMigration-DHME7fzg.js deleted file mode 100644 index daac449..0000000 --- a/assets/DataMigration-DHME7fzg.js +++ /dev/null @@ -1 +0,0 @@ -import{a as S,o as F}from"./axios-CF6XU-xP.js";import{g as J,p as E,c as G,d as r,E as P,aN as se,a5 as ae,a3 as re,$ as ie,az as oe,i as g,F as Y,ad as le,aO as $,ae as ne,_ as W,s as O,k as b,A as R,o as v,w as o,q as M,t as d,z as I,B as w,v as T,l as x,C as f,x as z,y as U,j as D,K as ue,P as ce,aa as de,G as me,Q as ge,ap as fe,aq as he,M as Q,H as X}from"./index-BBVdlVQD.js";import{V as j,a as N}from"./VRow-IosHPrmj.js";import{b as q,g as pe,f as ye,V}from"./VTextField-C-Z2P35g.js";import{V as B,m as ve,a as ke,b as Se}from"./VSelectionControl-D-h-HCLE.js";import{V as _}from"./VAlert-BYrhoEr8.js";import{V as we}from"./VDataTable-D7gPSbin.js";import{V as be}from"./VChip-BmBm7zXx.js";import{V as De}from"./VSkeletonLoader-DuVn92u1.js";import{V as Ve}from"./VContainer-OExp5t5c.js";import"./filter-Bc0G1Z2P.js";import"./VMenu-CJ7CiDy8.js";import"./VCheckboxBtn-CtaD8oYU.js";const Ie=E({...ve({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),L=J()({name:"VRadio",props:Ie(),setup(t,e){let{slots:l}=e;return G(()=>{const n=B.filterProps(t);return r(B,P(n,{class:["v-radio",t.class],style:t.style,type:"radio"}),l)}),{}}}),Te=E({height:{type:[Number,String],default:"auto"},...ye(),...ne(Se(),["multiple"]),trueIcon:{type:$,default:"$radioOn"},falseIcon:{type:$,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),H=J()({name:"VRadioGroup",inheritAttrs:!1,props:Te(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:l,slots:n}=e;const s=se(),i=ae(()=>t.id||`radio-group-${s}`),a=re(t,"modelValue"),u=ie();return G(()=>{const[m,c]=oe(l),h=q.filterProps(t),y=B.filterProps(t),p=n.label?n.label({label:t.label,props:{for:i.value}}):t.label;return r(q,P({ref:u,class:["v-radio-group",t.class],style:t.style},m,h,{modelValue:a.value,"onUpdate:modelValue":k=>a.value=k,id:i.value}),{...n,default:k=>{let{id:K,messagesId:A,isDisabled:C,isReadonly:ee}=k;return g(Y,null,[p&&r(pe,{id:K.value},{default:()=>[p]}),r(ke,P(y,{id:K.value,"aria-describedby":A.value,defaultsTarget:"VRadio",trueIcon:t.trueIcon,falseIcon:t.falseIcon,type:t.type,disabled:C.value,readonly:ee.value,"aria-labelledby":p?K.value:void 0,multiple:!1},c,{modelValue:a.value,"onUpdate:modelValue":te=>a.value=te}),n)])}})}),le({},u)}}),xe={name:"MigrationTool",data(){return{classNumber:"",machineId:"",migrationType:"server",serverUrl:"",targetStorage:"kv-server",targetServerUrl:"https://kv-service.wuyuan.dev",startDate:this.getDateString(new Date(Date.now()-30*24*60*60*1e3)),endDate:this.getDateString(new Date),loading:!1,scanning:!1,migrating:!1,showServerPreview:!1,showResult:!1,migrationSuccess:!1,migrationError:null,migrationStats:{total:0,success:0,failed:0},migrationResults:[],localDbItems:[],serverItems:[],selectedItems:[],headers:[{title:"类型",key:"type",sortable:!0},{title:"键名",key:"key",sortable:!0},{title:"日期",key:"date",sortable:!0},{title:"大小",key:"size",sortable:!0}]}},computed:{displayItems(){return this.migrationType==="local"?this.localDbItems:this.serverItems},canMigrate(){return this.classNumber&&this.machineId&&this.displayItems.length>0&&(this.targetStorage!=="kv-server"||this.targetServerUrl)}},async mounted(){try{await this.initMachineId(),this.classNumber=b("server.classNumber"),this.serverUrl=b("server.domain"),this.migrationType=b("server.provider")}catch(t){console.error("初始化设备ID失败:",t)}},methods:{getItemType(t){return t?t.raw?t.raw.type:t.type:""},getItemDate(t){return t?t.raw?t.raw.date:t.date:null},getDateString(t){return t.toISOString().split("T")[0]},async initMachineId(){this.machineId=b("device.uuid")},getRequestHeaders(){const t={Accept:"application/json"},e=b("server.siteKey");return e&&(t["x-site-key"]=e),t},async scanLocalDatabase(){if(!this.classNumber){this.$emit("message",{text:"请先输入班级编号",type:"error"});return}this.scanning=!0,this.localDbItems=[];try{const t=await F("ClassworksDB",2);if(t.objectStoreNames.contains("homework")&&t.objectStoreNames.contains("config")){const l=t.transaction("homework","readonly").objectStore("homework"),s=(await l.getAllKeys()).filter(u=>u.startsWith(`homework_${this.classNumber}_`));for(const u of s){const m=await l.get(u),c=u.split("_")[2];let h=null;if(c){const[y,p,k]=c.split("-");h=new Date(y,p-1,k)}this.localDbItems.push({type:"homework",key:u,originalKey:u,date:h,size:this.getDataSize(m)+" KB",value:m})}const i=`config_${this.classNumber}`,a=await t.get("config",i);a&&this.localDbItems.push({type:"config",key:i,originalKey:i,date:null,size:this.getDataSize(a)+" KB",value:a})}if(t.objectStoreNames.contains("kv")){const l=t.transaction("kv","readonly").objectStore("kv"),s=(await l.getAllKeys()).filter(i=>i.startsWith(`${this.classNumber}/`));for(const i of s){const a=await l.get(i),u=i.includes(`/${this.classNumber}/classworks-config`);let m=null;if(!u){const c=i.match(/classworks-data-(\d{4})(\d{2})(\d{2})/);if(c){const[,h,y,p]=c;m=new Date(h,parseInt(y)-1,p)}}this.localDbItems.push({type:u?"config":"homework",key:i,originalKey:i,date:m,size:this.getDataSize(a)+" KB",value:a,isKv:!0})}}}catch(t){console.error("扫描本地数据库失败:",t),this.$emit("message",{text:"扫描数据库失败: "+t.message,type:"error"})}finally{this.scanning=!1}},getDataSize(t){if(!t)return 0;const e=typeof t=="string"?t:JSON.stringify(t);return Math.round(e.length*2/1024*100)/100},formatDate(t){return t?t.toLocaleDateString():"配置 (无日期)"},async previewServerData(){var t;if(!this.serverUrl||!this.classNumber||!this.startDate||!this.endDate){this.$emit("message",{text:"请填写完整的服务器信息和时间范围",type:"error"});return}this.loading=!0,this.serverItems=[];try{try{const s=`${this.serverUrl}/${this.classNumber}/config`,i=await S.get(s,{headers:this.getRequestHeaders()});i.data&&this.serverItems.push({type:"config",key:`config_${this.classNumber}`,originalKey:s,date:null,size:this.getDataSize(i.data)+" KB",value:i.data})}catch(s){console.warn("无法获取配置:",s)}const e=new Date(this.startDate),l=new Date(this.endDate),n=this.getDateArray(e,l);for(const s of n){const i=this.formatDateForServer(s);try{const a=`${this.serverUrl}/${this.classNumber}/homework?date=${i}`,u=await S.get(a,{headers:this.getRequestHeaders()});u.data&&u.data.status!=!1&&(console.log(u.data),this.serverItems.push({type:"homework",key:`homework_${this.classNumber}_${i}`,originalKey:a,date:s,size:this.getDataSize(u.data)+" KB",value:u.data}))}catch(a){((t=a.response)==null?void 0:t.status)!==404&&console.warn(`无法获取 ${i} 的数据:`,a)}}this.showServerPreview=!0}catch(e){console.error("预览服务器数据失败:",e),this.$emit("message",{text:"预览数据失败: "+e.message,type:"error"})}finally{this.loading=!1}},getDateArray(t,e){const l=[],n=new Date(t);for(;n<=e;)l.push(new Date(n)),n.setDate(n.getDate()+1);return l},formatDateForServer(t){const e=t.getFullYear(),l=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0");return`${e}-${l}-${n}`},formatDateForKv(t){const e=t.getFullYear(),l=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0");return`${e}${l}${n}`},async migrateToLocalKv(t){try{const e=await F("ClassworksDB",2,{upgrade(s){s.objectStoreNames.contains("kv")||s.createObjectStore("kv")}}),l=typeof t.value=="string"?JSON.parse(t.value):t.value;if(this.getItemType(t)==="config"){if(l.studentList&&Array.isArray(l.studentList)){const s=l.studentList.map((a,u)=>({id:u+1,name:a}));await e.put("kv",JSON.stringify(s),"classworks-list-main");const i={...l};delete i.studentList,await e.put("kv",JSON.stringify(i),"classworks-config")}else await e.put("kv",JSON.stringify(l),"classworks-config");return{success:!0,message:"配置已迁移"}}else{const s=this.getItemDate(t);let i;if(s)i=this.formatDateForKv(s);else{const a=t.key.match(/(\d{4})-(\d{2})-(\d{2})/);if(a){const[,u,m,c]=a;i=`${u}${m}${c}`}else return{success:!1,message:"无法确定日期格式"}}return await e.put("kv",JSON.stringify(l),`classworks-data-${i}`),{success:!0,message:`${i} 数据已迁移`}}}catch(e){return console.error("本地KV迁移失败:",e),{success:!1,message:e.message}}},async migrateToServerKv(t){var e,l;try{const n=typeof t.value=="string"?JSON.parse(t.value):t.value;if(this.getItemType(t)==="config"){if(n.studentList&&Array.isArray(n.studentList)){const i=n.studentList.map((c,h)=>({id:h+1,name:c})),a={...n};delete a.studentList;const u={"classworks-list-main":i,"classworks-config":a},m=await S.post(`${this.targetServerUrl}/${this.machineId}/_batchimport`,u,{headers:this.getRequestHeaders()});if(m.data&&m.data.successful>0&&(this.migrationResults.push({key:"classworks-config",success:!0,message:"配置已批量迁移到服务器"}),this.migrationStats.success++,m.data.failed>0&&m.data.errors))for(const c of m.data.errors)this.migrationResults.push({key:c.key,success:!1,message:c.error||"配置迁移失败"}),this.migrationStats.failed++}else await S.post(`${this.targetServerUrl}/${this.machineId}/classworks-config`,n,{headers:this.getRequestHeaders()});return{success:!0,message:"配置已迁移到服务器"}}else{const i=this.getItemDate(t);let a;if(i)a=this.formatDateForKv(i);else{const u=t.key.match(/(\d{4})-(\d{2})-(\d{2})/);if(u){const[,m,c,h]=u;a=`${m}${c}${h}`}else return{success:!1,message:"无法确定日期格式"}}return await S.post(`${this.targetServerUrl}/${this.machineId}/classworks-data-${a}`,n,{headers:this.getRequestHeaders()}),{success:!0,message:`${a} 数据已迁移到服务器`}}}catch(n){return console.error("服务器KV迁移失败:",n),{success:!1,message:((l=(e=n.response)==null?void 0:e.data)==null?void 0:l.message)||n.message}}},async batchMigrateToServerKv(t){var e,l;try{const n=t.filter(a=>this.getItemType(a)==="config"),s=t.filter(a=>this.getItemType(a)==="homework");if(n.length>0){const a=n[0],u=typeof a.value=="string"?JSON.parse(a.value):a.value;if(u.studentList&&Array.isArray(u.studentList)){const m=u.studentList.map((p,k)=>({id:k+1,name:p})),c={...u};delete c.studentList;const h={"classworks-list-main":m,"classworks-config":c},y=await S.post(`${this.targetServerUrl}/${this.machineId}/_batchimport`,h,{headers:this.getRequestHeaders()});if(y.data&&y.data.successful>0&&(this.migrationResults.push({key:"classworks-config",success:!0,message:"配置已批量迁移到服务器"}),this.migrationStats.success++,y.data.failed>0&&y.data.errors))for(const p of y.data.errors)this.migrationResults.push({key:p.key,success:!1,message:p.error||"配置迁移失败"}),this.migrationStats.failed++}else await S.post(`${this.targetServerUrl}/${this.machineId}/classworks-config`,u,{headers:this.getRequestHeaders()});this.migrationResults.push({key:a.key,success:!0,message:"配置已迁移到服务器"}),this.migrationStats.success++}const i=100;for(let a=0;a0){const c=await S.post(`${this.targetServerUrl}/${this.machineId}/_batchimport`,m,{headers:this.getRequestHeaders()});if(c.data&&(c.data.successful>0&&(this.migrationResults.push({key:`批量数据 (${Object.keys(m).length}项)`,success:!0,message:`成功迁移 ${c.data.successful} 项数据到服务器`}),this.migrationStats.success+=c.data.successful),c.data.failed>0&&c.data.errors))for(const h of c.data.errors)this.migrationResults.push({key:h.key,success:!1,message:h.error||"迁移失败"}),this.migrationStats.failed+=c.data.failed}}return{success:!0}}catch(n){return console.error("批量迁移到服务器失败:",n),{success:!1,message:((l=(e=n.response)==null?void 0:e.data)==null?void 0:l.message)||n.message}}},async startMigration(){if(!this.canMigrate){this.$emit("message",{text:"无法开始迁移,请检查配置",type:"error"});return}this.migrating=!0,this.migrationResults=[],this.migrationStats={total:this.displayItems.length,success:0,failed:0};try{if(this.targetStorage==="kv-local"){const t=this.displayItems.filter(l=>this.getItemType(l)==="config"),e=this.displayItems.filter(l=>this.getItemType(l)==="homework");for(const l of t)await this.migrateItem(l);for(const l of e)await this.migrateItem(l)}else await this.batchMigrateToServerKv(this.displayItems);this.migrationSuccess=this.migrationStats.failed===0,this.showResult=!0,O("server.provider",this.targetStorage),this.targetStorage==="kv-server"&&O("server.domain",this.targetServerUrl)}catch(t){console.error("迁移过程出错:",t),this.migrationSuccess=!1,this.migrationError=t.message,this.showResult=!0}finally{this.migrating=!1}},async migrateItem(t){try{let e;this.targetStorage==="kv-local"?e=await this.migrateToLocalKv(t):e=await this.migrateToServerKv(t),this.migrationResults.push({key:t.key,success:e.success,message:e.message}),e.success?this.migrationStats.success++:this.migrationStats.failed++}catch(e){console.error(`迁移 ${t.key} 失败:`,e),this.migrationResults.push({key:t.key,success:!1,message:e.message}),this.migrationStats.failed++}}}},Ke={key:0,class:"mt-4"},Re={class:"d-flex align-center mt-4"},Me={key:0,class:"mt-4"},Ne={class:"d-flex justify-end mb-6"},_e={key:1};function Ue(t,e,l,n,s,i){return v(),R("div",null,[r(x,{class:"mb-6"},{default:o(()=>[r(M,null,{default:o(()=>[...e[11]||(e[11]=[d("迁移设置",-1)])]),_:1}),r(I,null,{default:o(()=>[r(j,null,{default:o(()=>[r(N,{cols:"12",md:"6"},{default:o(()=>[r(V,{modelValue:s.classNumber,"onUpdate:modelValue":e[0]||(e[0]=a=>s.classNumber=a),hint:"请输入需要迁移的班级编号",label:"班级编号","persistent-hint":"","prepend-icon":"mdi-account-group"},null,8,["modelValue"])]),_:1}),r(N,{cols:"12",md:"6"},{default:o(()=>[r(V,{modelValue:s.machineId,"onUpdate:modelValue":e[1]||(e[1]=a=>s.machineId=a),hint:"系统已自动填充设备标识,通常无需修改",label:"设备标识 (UUID)","persistent-hint":"","prepend-icon":"mdi-identifier",readonly:""},null,8,["modelValue"])]),_:1})]),_:1}),r(H,{modelValue:s.migrationType,"onUpdate:modelValue":e[2]||(e[2]=a=>s.migrationType=a),class:"mt-2"},{default:o(()=>[r(L,{label:"本地数据迁移",value:"local"}),r(L,{label:"服务器数据迁移",value:"server"})]),_:1},8,["modelValue"]),s.migrationType==="server"?(v(),R("div",Ke,[r(V,{modelValue:s.serverUrl,"onUpdate:modelValue":e[3]||(e[3]=a=>s.serverUrl=a),hint:"输入服务器域名,例如:https://example.com",label:"服务器地址","persistent-hint":"","prepend-icon":"mdi-server"},null,8,["modelValue"]),r(_,{class:"mt-2",density:"compact",type:"info",variant:"outlined"},{default:o(()=>[...e[12]||(e[12]=[d(" 服务器接口格式:",-1),g("br",null,null,-1),d(" - 配置接口:域名/班号/config",-1),g("br",null,null,-1),d(" - 作业数据接口:域名/班号/homework?date=YYYY-MM-DD ",-1)])]),_:1}),g("div",Re,[r(T,{class:"mr-2",color:"warning"},{default:o(()=>[...e[13]||(e[13]=[d("mdi-calendar-range",-1)])]),_:1}),e[14]||(e[14]=g("span",{class:"text-subtitle-1"},"选择迁移时间范围:",-1))]),r(j,{class:"mt-1"},{default:o(()=>[r(N,{cols:"12",md:"6"},{default:o(()=>[r(V,{modelValue:s.startDate,"onUpdate:modelValue":e[4]||(e[4]=a=>s.startDate=a),label:"开始日期","prepend-icon":"mdi-calendar-start",type:"date"},null,8,["modelValue"])]),_:1}),r(N,{cols:"12",md:"6"},{default:o(()=>[r(V,{modelValue:s.endDate,"onUpdate:modelValue":e[5]||(e[5]=a=>s.endDate=a),label:"结束日期","prepend-icon":"mdi-calendar-end",type:"date"},null,8,["modelValue"])]),_:1})]),_:1})])):w("",!0)]),_:1})]),_:1}),r(x,{class:"mb-6"},{default:o(()=>[r(M,{class:"d-flex align-center"},{default:o(()=>[g("span",null,f(s.migrationType==="local"?"本地数据库内容":"服务器数据内容"),1),r(z),r(U,{loading:s.loading||s.scanning,color:"primary",onClick:e[6]||(e[6]=a=>s.migrationType==="local"?i.scanLocalDatabase():i.previewServerData())},{default:o(()=>[d(f(s.migrationType==="local"?"扫描数据":"加载数据"),1)]),_:1},8,["loading"])]),_:1}),r(I,null,{default:o(()=>[i.displayItems.length===0&&!s.loading&&!s.scanning?(v(),D(_,{key:0,type:"info"},{default:o(()=>[d(f(s.migrationType==="local"?'尚未扫描本地数据或未找到可迁移的数据。点击"扫描数据"按钮开始扫描。':'尚未预览服务器数据或未找到可迁移的数据。点击"加载数据"按钮开始查询。'),1)]),_:1})):w("",!0),i.displayItems.length>0?(v(),D(we,{key:1,headers:s.headers,items:i.displayItems,"items-per-page":10,class:"elevation-1","item-value":"key"},{"item.type":o(({item:a})=>[r(be,{color:i.getItemType(a)==="config"?"primary":"secondary",size:"small"},{default:o(()=>[d(f(i.getItemType(a)==="config"?"配置":"作业数据"),1)]),_:2},1032,["color"])]),"item.date":o(({item:a})=>[d(f(i.formatDate(i.getItemDate(a))),1)]),_:2},1032,["headers","items"])):w("",!0),i.displayItems.length>0?(v(),D(_,{key:2,class:"mt-2",density:"compact",type:"info"},{default:o(()=>[...e[15]||(e[15]=[d(" 系统将迁移表格中显示的所有数据项,迁移前请确认数据完整性。 ",-1)])]),_:1})):w("",!0),s.loading||s.scanning?(v(),D(De,{key:3,type:"table"})):w("",!0)]),_:1})]),_:1}),r(x,{class:"mb-6"},{default:o(()=>[r(M,null,{default:o(()=>[...e[16]||(e[16]=[d("迁移目标",-1)])]),_:1}),r(I,null,{default:o(()=>[r(H,{modelValue:s.targetStorage,"onUpdate:modelValue":e[7]||(e[7]=a=>s.targetStorage=a)},{default:o(()=>[r(L,{label:"本地 KV 存储",value:"kv-local"}),r(L,{label:"服务器 KV 存储",value:"kv-server"})]),_:1},8,["modelValue"]),s.targetStorage==="kv-server"?(v(),R("div",Me,[r(V,{modelValue:s.targetServerUrl,"onUpdate:modelValue":e[8]||(e[8]=a=>s.targetServerUrl=a),hint:"输入KV服务器地址,例如:https://example.com/kv-api",label:"目标服务器地址","persistent-hint":"","prepend-icon":"mdi-server-network"},null,8,["modelValue"])])):w("",!0)]),_:1})]),_:1}),g("div",Ne,[r(U,{disabled:!i.canMigrate,loading:s.migrating,color:"success",onClick:i.startMigration},{default:o(()=>[...e[17]||(e[17]=[d(" 开始迁移 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),r(X,{modelValue:s.showResult,"onUpdate:modelValue":e[10]||(e[10]=a=>s.showResult=a),"max-width":"600"},{default:o(()=>[r(x,null,{default:o(()=>[r(M,{class:"d-flex align-center"},{default:o(()=>[r(T,{color:s.migrationSuccess?"success":"error",class:"mr-2"},{default:o(()=>[d(f(s.migrationSuccess?"mdi-check-circle":"mdi-alert-circle"),1)]),_:1},8,["color"]),g("span",null,f(s.migrationSuccess?"迁移成功":"迁移失败"),1)]),_:1}),r(I,null,{default:o(()=>[s.migrationError?(v(),D(_,{key:0,class:"mb-4",type:"error"},{default:o(()=>[d(f(s.migrationError),1)]),_:1})):w("",!0),s.migrationSuccess?(v(),R("div",_e,[g("p",null," 成功迁移 "+f(s.migrationStats.success)+" 项数据到 "+f(s.targetStorage==="kv-local"?"本地":"服务器")+" KV 存储。 ",1),r(ue,{class:"my-4"}),r(ce,null,{default:o(()=>[r(de,null,{default:o(()=>[...e[18]||(e[18]=[d("迁移详情",-1)])]),_:1}),(v(!0),R(Y,null,me(s.migrationResults,(a,u)=>(v(),D(ge,{key:u},{default:o(()=>[r(fe,null,{default:o(()=>[d(f(a.key),1)]),_:2},1024),r(he,null,{default:o(()=>[d(f(a.success?"成功":"失败")+" "+f(a.message),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})])):w("",!0)]),_:1}),r(Q,null,{default:o(()=>[r(z),r(U,{color:"primary",onClick:e[9]||(e[9]=a=>s.showResult=!1)},{default:o(()=>[...e[19]||(e[19]=[d(" 关闭",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Z=W(xe,[["render",Ue]]),Le={name:"DataMigrationPage",components:{MigrationTool:Z},data(){const t=new Date,e=new Date;return e.setMonth(t.getMonth()-3),{showMigrationDialog:!1,isAutoMigrating:!1,today:t,sixMonthsAgo:e,classNumber:"",serverDomain:"",dataProvider:""}},computed:{dataSourceText(){switch(this.dataProvider){case"server":return"服务器";case"indexeddb":return"本地数据库";case"kv-local":return"本地 KV 存储";case"kv-server":return"远程 KV 存储";case"classworkscloud":return"Classworks 云";default:return"未知来源"}}},async mounted(){this.loadSettings(),this.serverDomain=="https://class.wuyuan.dev"&&(await this.startAutoMigration(),this.$router.push("/"))},methods:{loadSettings(){this.classNumber=b("server.classNumber"),this.serverDomain=b("server.domain"),this.dataProvider=b("server.provider"),this.showMigrationDialog=this.dataProvider==="server"||this.dataProvider==="indexeddb"},formatDate(t){return t.toLocaleDateString()},async startAutoMigration(){if(!this.$refs.migrationTool){console.error("MigrationTool组件引用不可用");return}this.isAutoMigrating=!0;try{const t=this.$refs.migrationTool;t.classNumber=this.classNumber,t.migrationType=this.dataProvider==="server"?"server":"local",t.serverUrl=this.serverDomain,t.targetStorage="kv-server",t.startDate=this.formatDateString(this.sixMonthsAgo),t.endDate=this.formatDateString(this.today),this.dataProvider==="server"?await t.previewServerData():await t.scanLocalDatabase(),t.displayItems.length>0?await t.startMigration():console.warn("没有找到可迁移的数据"),O("server.provider","classworkscloud")}catch(t){console.error("自动迁移失败:",t)}finally{this.isAutoMigrating=!1,this.showMigrationDialog=!1}},formatDateString(t){const e=t.getFullYear(),l=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0");return`${e}-${l}-${n}`}},metaInfo:{title:"数据迁移工具"}},Ae={class:"d-flex align-center mb-6"},Ce={class:"ml-3 mt-1"};function Pe(t,e,l,n,s,i){const a=Z;return v(),D(Ve,null,{default:o(()=>[r(j,null,{default:o(()=>[r(N,{cols:"12"},{default:o(()=>[g("div",Ae,[r(T,{class:"mr-3",color:"primary",size:"x-large"},{default:o(()=>[...e[2]||(e[2]=[d(" mdi-database-sync ",-1)])]),_:1}),e[3]||(e[3]=g("div",null,[g("h1",{class:"text-h4"}," 数据迁移工具 "),g("div",{class:"text-subtitle-1 text-grey"}," 将现有数据迁移至 KV 存储系统 ")],-1))]),r(x,{class:"mb-6",color:"info",variant:"tonal"},{default:o(()=>[r(I,{class:"d-flex align-center"},{default:o(()=>[r(T,{class:"mr-2",color:"info"},{default:o(()=>[...e[4]||(e[4]=[d(" mdi-information-outline ",-1)])]),_:1}),e[5]||(e[5]=g("span",null," 使用此工具可以将数据从旧存储系统迁移到新的 KV 存储系统,选择本地或云端迁移,以确保数据不会丢失。 ",-1))]),_:1})]),_:1}),r(a,{ref:"migrationTool"},null,512)]),_:1})]),_:1}),r(X,{modelValue:s.showMigrationDialog,"onUpdate:modelValue":e[1]||(e[1]=u=>s.showMigrationDialog=u),"max-width":"500",persistent:""},{default:o(()=>[r(x,null,{default:o(()=>[r(M,{class:"text-h5 d-flex align-center"},{default:o(()=>[r(T,{class:"mr-3",color:"primary",size:"large"},{default:o(()=>[...e[6]||(e[6]=[d(" mdi-database-sync ",-1)])]),_:1}),e[7]||(e[7]=d(" 一键数据迁移 ",-1))]),_:1}),r(I,{class:"mt-4"},{default:o(()=>[e[8]||(e[8]=g("p",null," 系统将自动读取您的配置,并将过去半年的数据迁移至Classworks KV数据库中 ",-1)),r(_,{class:"mt-4",color:"info",icon:"mdi-information-outline",variant:"tonal"},{default:o(()=>[g("ul",Ce,[g("li",null,"数据源: "+f(i.dataSourceText),1),g("li",null,"班级: "+f(s.classNumber),1),g("li",null,"服务器: "+f(s.serverDomain||"本地存储"),1),g("li",null," 迁移范围: "+f(i.formatDate(s.sixMonthsAgo))+" 至 "+f(i.formatDate(s.today)),1)])]),_:1})]),_:1}),r(Q,null,{default:o(()=>[r(z),r(U,{color:"grey-darken-1",variant:"text",onClick:e[0]||(e[0]=u=>s.showMigrationDialog=!1)},{default:o(()=>[...e[9]||(e[9]=[d(" 稍后再说 ",-1)])]),_:1}),r(U,{disabled:s.isAutoMigrating,loading:s.isAutoMigrating,color:"primary",size:"large",variant:"elevated",onClick:i.startAutoMigration},{default:o(()=>[r(T,{class:"mr-2",left:""},{default:o(()=>[...e[10]||(e[10]=[d(" mdi-database-export ",-1)])]),_:1}),e[11]||(e[11]=d(" 开始一键迁移 ",-1))]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const Qe=W(Le,[["render",Pe]]);export{Qe as default}; diff --git a/assets/ExamConfigEditor-CFH7DsKe.js b/assets/ExamConfigEditor-CcO-5EW7.js similarity index 89% rename from assets/ExamConfigEditor-CFH7DsKe.js rename to assets/ExamConfigEditor-CcO-5EW7.js index a0ef1b1..5041797 100644 --- a/assets/ExamConfigEditor-CFH7DsKe.js +++ b/assets/ExamConfigEditor-CcO-5EW7.js @@ -1,2 +1,2 @@ -import{d as ue}from"./dataProvider-bw19OswA.js";import{g as pe,p as we,$ as S,a2 as $e,aB as Ze,a5 as R,a6 as X,c as ke,i as g,n as Ee,e as re,aZ as Qe,a0 as Xe,d as l,E as se,ad as et,Z as Ke,a3 as fe,t as f,y as D,a_ as Ue,aF as tt,ay as lt,aj as at,ae as xe,aJ as nt,a$ as _e,_ as ot,A as z,o as C,j as P,B as F,w as a,v as _,C as A,P as Fe,F as he,G as ye,Q as Ae,ap as it,z as Q,l as K,D as rt,q as le,x as de,O as st,b0 as ut,I as dt,J as mt,M as be,H as ct}from"./index-BBVdlVQD.js";import{V as Ce}from"./VAlert-BYrhoEr8.js";import{V as ft}from"./VSkeletonLoader-DuVn92u1.js";import{V as vt}from"./VBadge-H7ndD91w.js";import{V as Be,b as gt}from"./VChip-BmBm7zXx.js";import{a as L,V as me}from"./VRow-IosHPrmj.js";import{V as ie}from"./VTextField-C-Z2P35g.js";import{V as ht}from"./VTextarea-mXVeQ__0.js";import{V as He}from"./VMenu-CJ7CiDy8.js";import{a as ze,m as yt,V as Le}from"./VDatePicker-CtGCqIzy.js";const pt=we({allowedValues:Function,ampm:Boolean,color:String,disabled:Boolean,displayedValue:null,double:Boolean,format:{type:Function,default:e=>e},max:{type:Number,required:!0},min:{type:Number,required:!0},scrollable:Boolean,readonly:Boolean,rotate:{type:Number,default:0},step:{type:Number,default:1},modelValue:{type:Number}},"VTimePickerClock"),Re=pe()({name:"VTimePickerClock",props:pt(),emits:{change:e=>!0,input:e=>!0},setup(e,t){let{emit:i}=t;const m=S(null),o=S(null),v=S(void 0),n=S(!1),c=S(null),r=S(null),k=Qe(u=>i("change",u),750),{textColorClasses:Y,textColorStyles:ae}=$e(()=>e.color),{backgroundColorClasses:B,backgroundColorStyles:p}=Ze(()=>e.color),J=R(()=>e.max-e.min+1),j=R(()=>e.double?J.value/2:J.value),M=R(()=>360/j.value),W=R(()=>M.value*Math.PI/180),$=R(()=>e.modelValue==null?e.min:e.modelValue),U=R(()=>.62),s=R(()=>{const u=[];for(let y=e.min;y<=e.max;y=y+e.step)u.push(y);return u});X(()=>e.modelValue,u=>{v.value=u});function V(u){v.value!==u&&(v.value=u),i("input",u)}function I(u){return!e.allowedValues||e.allowedValues(u)}function x(u){if(!e.scrollable||e.disabled)return;u.preventDefault();const y=Math.sign(-u.deltaY||1);let b=$.value;do b=b+y,b=(b-e.min+J.value)%J.value+e.min;while(!I(b)&&b!==$.value);b!==e.displayedValue&&V(b),k(b)}function N(u){return e.double&&u-e.min>=j.value}function H(u){return N(u)?U.value:1}function ee(u){const y=e.rotate*Math.PI/180;return{x:Math.sin((u-e.min)*W.value+y)*H(u),y:-Math.cos((u-e.min)*W.value+y)*H(u)}}function O(u,y){const b=(Math.round(u/M.value)+(y?j.value:0))%J.value+e.min;return u<360-M.value/2?b:y?e.max-j.value+1:e.min}function d(u){const{x:y,y:b}=ee(u);return{left:`${Math.round(50+y*50)}%`,top:`${Math.round(50+b*50)}%`}}function w(u,y){const b=y.x-u.x,ne=y.y-u.y;return Math.sqrt(b*b+ne*ne)}function T(u,y){const b=2*Math.atan2(y.y-u.y-w(u,y),y.x-u.x);return Math.abs(b*180/Math.PI)}function h(u){c.value===null&&(c.value=u),r.value=u,V(u)}function E(u){var Ie,Pe;if(u.preventDefault(),!n.value&&u.type!=="click"||!m.value)return;const{width:y,top:b,left:ne}=(Ie=m.value)==null?void 0:Ie.getBoundingClientRect(),{width:te}=((Pe=o.value)==null?void 0:Pe.getBoundingClientRect())??{width:0},{clientX:ve,clientY:We}="touches"in u?u.touches[0]:u,Te={x:y/2,y:-y/2},Se={x:ve-ne,y:b-We},Me=Math.round(T(Te,Se)-e.rotate+360)%360,Ne=e.double&&w(Te,Se)<(te+te*U.value)/4,Ge=Math.ceil(15/M.value);let oe;for(let ge=0;geg("div",{class:re([{"v-time-picker-clock":!0,"v-time-picker-clock--indeterminate":e.modelValue==null,"v-time-picker-clock--readonly":e.readonly}]),onMousedown:G,onTouchstart:G,onWheel:x,ref:m},[g("div",{class:"v-time-picker-clock__inner",ref:o},[g("div",{class:re([{"v-time-picker-clock__hand":!0,"v-time-picker-clock__hand--inner":N(e.modelValue)},Y.value]),style:Ee([{transform:`rotate(${e.rotate+M.value*($.value-e.min)}deg) scaleY(${H($.value)})`},ae.value])},null),s.value.map(u=>{const y=u===$.value;return g("div",{class:re([{"v-time-picker-clock__item":!0,"v-time-picker-clock__item--active":y,"v-time-picker-clock__item--disabled":e.disabled||!I(u)},y&&B.value]),style:Ee([d(u),y&&p.value])},[g("span",null,[e.format(u)])])})])]))}}),wt=we({active:Boolean,color:String,disabled:Boolean,label:String,modelValue:String,readonly:Boolean},"VTimePickerField"),Ve=pe()({name:"VTimePickerField",inheritAttrs:!1,props:wt(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:i,attrs:m}=t;const{textColorClasses:o,textColorStyles:v}=$e(()=>e.color),n=S(),c=Xe(!1);function r(k){if(["Backspace","Delete"].includes(k.key)){k.preventDefault();const Y=k.target;Y.value="",i("update:modelValue",null)}}return ke(()=>g("div",null,[l(ie,se({ref:n,autocomplete:"off",class:["v-time-picker-controls__time__field",{"v-time-picker-controls__time__field--active":e.active},e.active?o.value:[]],style:e.active?v.value:[],disabled:e.disabled,variant:"solo-filled",inputmode:"numeric",hideDetails:!0,flat:!0,modelValue:e.modelValue??(c.value?"":"--"),"onUpdate:modelValue":k=>i("update:modelValue",k),onKeydown:r,onFocus:()=>c.value=!0,onBlur:()=>c.value=!1},m),null),g("div",{class:"v-time-picker-controls__field-label"},[e.label])])),et({},n)}});function q(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(e).padStart(t,"0")}function qe(e){return e?(e-1)%12+1:12}function De(e,t){return e%12+(t==="pm"?12:0)}function ce(e){const t=e.replaceAll(/\D/g,"");return t.length>0?Number(t):null}function kt(e,t,i){if(i){if(e===12&&t)return{value:1};if(e===11&&t)return{value:12,togglePeriod:!0};if(e===12&&!t)return{value:11,togglePeriod:!0};if(e===1&&!t)return{value:12}}else{if(e===23&&t)return{value:0};if(e===0&&!t)return{value:23}}return{value:e+(t?1:-1)}}function Je(e,t){return e===59&&t?0:e===0&&!t?59:e+(t?1:-1)}const bt=we({ampm:Boolean,color:String,disabled:Boolean,hour:[Number,String],minute:[Number,String],second:[Number,String],period:String,readonly:Boolean,useSeconds:Boolean,value:Number,viewMode:String},"VTimePickerControls"),Oe=pe()({name:"VTimePickerControls",props:bt(),emits:{"update:period":e=>!0,"update:viewMode":e=>!0,"update:hour":e=>!0,"update:minute":e=>!0,"update:second":e=>!0},setup(e,t){let{emit:i,slots:m}=t;const{t:o}=Ke(),v={in:s=>{if(s==null||isNaN(Number(s)))return null;const V=Number(s);return e.ampm?q(qe(V)):q(V)},out:s=>{if(isNaN(Number(s))||s==null||s==="")return null;const V=typeof s=="string"?ce(s):Number(s);return V===null?null:e.ampm?De(V,e.period??"am"):Ue(V,0,23)}},n=fe(e,"hour",void 0,v.in,v.out),c={in:s=>s!=null&&!isNaN(Number(s))?q(`${s}`):null,out:s=>{if(isNaN(Number(s))||s==null||s==="")return null;const V=typeof s=="string"?ce(s):Number(s);return V!==null?Ue(V,0,59):null}},r=fe(e,"minute",void 0,c.in,c.out),k=fe(e,"second",void 0,c.in,c.out);function Y(s){if(!["ArrowUp","ArrowDown"].includes(s.key))return;s.preventDefault(),s.stopPropagation();const V=Number(n.value??0),I=e.ampm?e.period??"am":null,{value:x,togglePeriod:N}=kt(V,s.key==="ArrowUp",I);n.value=q(x),N&&i("update:period",e.period==="am"?"pm":"am")}function ae(s){["ArrowUp","ArrowDown"].includes(s.key)&&(s.preventDefault(),s.stopPropagation(),r.value=Je(Number(r.value),s.key==="ArrowUp"))}function B(s){["ArrowUp","ArrowDown"].includes(s.key)&&(s.preventDefault(),s.stopPropagation(),k.value=Je(Number(k.value),s.key==="ArrowUp"))}function p(s,V,I){return x=>{if(!x.data)return;const N=x.target,{value:H,selectionStart:ee,selectionEnd:O}=N??{};if(ce(x.data)===null){x.preventDefault();return}const d=H?H.slice(0,ee)+x.data+H.slice(O):x.data;if(d.length>2){if(ee===O&&O===0&&x.data.trim().startsWith("0")){x.preventDefault(),N.value=d.trim().substring(0,2),I(N.value),x.data.trim().length===1&&N.setSelectionRange(1,1);return}if(ee===O&&O===1&&H.startsWith("0")){x.preventDefault(),N.value=d.trim().substring(0,2),I(N.value);return}const T=e.viewMode==="hour"?e.ampm?12:23:59;if(ce(d)>T){x.preventDefault(),N.value=q(String(ce(x.data)).substring(0,2)),I(N.value);return}}const w=s(d);V(w)&&x.preventDefault()}}const J=S(),j=S(),M=S();X(()=>e.viewMode,(s,V)=>{switch(V){case"hour":J.value.blur();break;case"minute":j.value.blur();break;case"second":M.value.blur();break}});const W=p(v.out,s=>v.in(s)===n.value,s=>n.value=s),$=p(c.out,s=>c.in(s)===r.value,s=>r.value=s),U=p(c.out,s=>c.in(s)===k.value,s=>k.value=s);return ke(()=>g("div",{class:"v-time-picker-controls"},[g("div",{class:re({"v-time-picker-controls__time":!0,"v-time-picker-controls__time--with-ampm":e.ampm,"v-time-picker-controls__time--with-seconds":e.useSeconds})},[l(Ve,{ref:J,active:e.viewMode==="hour",color:e.color,disabled:e.disabled,label:o("$vuetify.timePicker.hour"),modelValue:n.value,"onUpdate:modelValue":s=>n.value=s,onKeydown:Y,onBeforeinput:W,onFocus:()=>i("update:viewMode","hour")},null),g("span",{class:"v-time-picker-controls__time__separator"},[f(":")]),l(Ve,{ref:j,active:e.viewMode==="minute",color:e.color,disabled:e.disabled,label:o("$vuetify.timePicker.minute"),modelValue:r.value,"onUpdate:modelValue":s=>r.value=s,onKeydown:ae,onBeforeinput:$,onFocus:()=>i("update:viewMode","minute")},null),e.useSeconds&&g("span",{key:"secondsDivider",class:"v-time-picker-controls__time__separator"},[f(":")]),e.useSeconds&&l(Ve,{key:"secondsVal",ref:M,active:e.viewMode==="second",color:e.color,disabled:e.disabled,label:o("$vuetify.timePicker.second"),modelValue:k.value,"onUpdate:modelValue":s=>k.value=s,onKeydown:B,onBeforeinput:U,onFocus:()=>i("update:viewMode","second")},null),e.ampm&&g("div",{class:"v-time-picker-controls__ampm"},[l(D,{active:e.period==="am",color:e.period==="am"?e.color:void 0,class:re({"v-time-picker-controls__ampm__am":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":e.period==="am"}),disabled:e.disabled,text:o("$vuetify.timePicker.am"),variant:e.disabled&&e.period==="am"?"elevated":"tonal",onClick:()=>e.period!=="am"?i("update:period","am"):null},null),l(D,{active:e.period==="pm",color:e.period==="pm"?e.color:void 0,class:re({"v-time-picker-controls__ampm__pm":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":e.period==="pm"}),disabled:e.disabled,text:o("$vuetify.timePicker.pm"),variant:e.disabled&&e.period==="pm"?"elevated":"tonal",onClick:()=>e.period!=="pm"?i("update:period","pm"):null},null)])])])),{}}}),Ct=_e(24),Ye=_e(12),Vt=Ye.map(e=>e+12);_e(60);const xt=we({allowedHours:[Function,Array],allowedMinutes:[Function,Array],allowedSeconds:[Function,Array],disabled:Boolean,format:{type:String,default:"ampm"},max:String,min:String,viewMode:{type:String,default:"hour"},period:{type:String,default:"am",validator:e=>["am","pm"].includes(e)},modelValue:null,readonly:Boolean,scrollable:Boolean,useSeconds:Boolean,variant:{type:String,default:"dial"},...xe(yt({title:"$vuetify.timePicker.title"}),["landscape"]),...nt()},"VTimePicker"),je=pe()({name:"VTimePicker",props:xt(),emits:{"update:hour":e=>!0,"update:minute":e=>!0,"update:period":e=>!0,"update:second":e=>!0,"update:modelValue":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:i,slots:m}=t;const{t:o}=Ke(),{densityClasses:v}=tt(e),n=S(null),c=S(null),r=S(null),k=S(null),Y=S(null),ae=S(null),B=fe(e,"period","am"),p=fe(e,"viewMode","hour"),J=S(null),j=S(null),M=R(()=>{let d;if(e.allowedHours instanceof Array?d=h=>e.allowedHours.includes(h):d=e.allowedHours,!e.min&&!e.max)return d;const w=e.min?Number(e.min.split(":")[0]):0,T=e.max?Number(e.max.split(":")[0]):23;return h=>h>=Number(w)&&h<=Number(T)&&(!d||d(h))}),W=R(()=>{let d;const w=!M.value||n.value===null||M.value(n.value);if(e.allowedMinutes instanceof Array?d=y=>e.allowedMinutes.includes(y):d=e.allowedMinutes,!e.min&&!e.max)return w?d:()=>!1;const[T,h]=e.min?e.min.split(":").map(Number):[0,0],[E,G]=e.max?e.max.split(":").map(Number):[23,59],Z=T*60+Number(h),u=E*60+Number(G);return y=>{const b=60*n.value+y;return b>=Z&&b<=u&&w&&(!d||d(y))}}),$=R(()=>{let d;const T=(!M.value||n.value===null||M.value(n.value))&&(!W.value||c.value===null||W.value(c.value));if(e.allowedSeconds instanceof Array?d=te=>e.allowedSeconds.includes(te):d=e.allowedSeconds,!e.min&&!e.max)return T?d:()=>!1;const[h,E,G]=e.min?e.min.split(":").map(Number):[0,0,0],[Z,u,y]=e.max?e.max.split(":").map(Number):[23,59,59],b=h*3600+E*60+Number(G||0),ne=Z*3600+u*60+Number(y||0);return te=>{const ve=3600*n.value+60*c.value+te;return ve>=b&&ve<=ne&&T&&(!d||d(te))}}),U=R(()=>e.format==="ampm"),s=lt(()=>e.modelValue!==null&&n.value===null&&c.value===null&&(!e.useSeconds||r.value===null));function V(){const d=I();d!==null&&d!==e.modelValue&&i("update:modelValue",d),s.value&&i("update:modelValue",null)}X(n,V),X(c,V),X(r,V),X(()=>e.period,d=>H(d)),X(()=>e.modelValue,d=>x(d)),X(()=>e.useSeconds,(d,w)=>{w&&!d&&p.value==="second"&&(p.value="minute"),!d&&r.value!==null&&(r.value=null)}),at(()=>{x(e.modelValue)});function I(){return n.value!=null&&c.value!=null&&(!e.useSeconds||r.value!=null)?`${q(n.value)}:${q(c.value)}`+(e.useSeconds?`:${q(r.value)}`:""):null}function x(d){if(d==null||d==="")n.value=null,c.value=null,r.value=null;else if(d instanceof Date)n.value=d.getHours(),c.value=d.getMinutes(),r.value=d.getSeconds();else{const[w,,T,,h,E]=d.trim().toLowerCase().match(/^(\d+):(\d+)(:(\d+))?([ap]m)?$/)||new Array(6);n.value=E?De(parseInt(w,10),E):parseInt(w,10),c.value=parseInt(T,10),r.value=parseInt(h||0,10)}B.value=n.value==null||n.value<12?"am":"pm"}function N(d,w){const T=M.value;if(!T)return w;const h=U.value?w<12?Ye:Vt:Ct;return((h.find(G=>T((G+w)%h.length+h[0]))||0)+w)%h.length+h[0]}function H(d){if(B.value=d,n.value!=null){const w=n.value+(B.value==="am"?-12:12);n.value=N("hour",w)}return i("update:period",d),V(),!0}function ee(d){p.value==="hour"?n.value=U.value?De(d,B.value):d:p.value==="minute"?c.value=d:r.value=d}function O(d){switch(p.value||"hour"){case"hour":i("update:hour",d);break;case"minute":i("update:minute",d);break;case"second":i("update:second",d);break}const w=n.value!==null&&c.value!==null&&(e.useSeconds?r.value!==null:!0);p.value==="hour"?p.value="minute":e.useSeconds&&p.value==="minute"&&(p.value="second"),!(n.value===k.value&&c.value===Y.value&&(!e.useSeconds||r.value===ae.value)||I()===null)&&(k.value=n.value,Y.value=c.value,e.useSeconds&&(ae.value=r.value),w&&V())}ke(()=>{const d=xe(ze.filterProps(e),["hideHeader"]),w=Oe.filterProps(e),T=Re.filterProps(xe(e,["format","modelValue","min","max"]));return l(ze,se(d,{color:void 0,class:["v-time-picker",`v-time-picker--variant-${e.variant}`,e.class,v.value],hideHeader:e.hideHeader&&e.variant!=="input",style:e.style}),{title:()=>{var h;return((h=m.title)==null?void 0:h.call(m))??g("div",{class:"v-time-picker__title"},[o(e.title)])},header:()=>l(Oe,se(w,{ampm:U.value,hour:n.value,minute:c.value,period:B.value,second:r.value,viewMode:p.value,"onUpdate:hour":h=>n.value=h,"onUpdate:minute":h=>c.value=h,"onUpdate:period":h=>H(h),"onUpdate:second":h=>r.value=h,"onUpdate:viewMode":h=>p.value=h,ref:J}),null),default:()=>l(Re,se(T,{allowedValues:p.value==="hour"?M.value:p.value==="minute"?W.value:$.value,double:p.value==="hour"&&!U.value,format:p.value==="hour"?U.value?qe:h=>h:h=>q(h,2),max:p.value==="hour"?U.value&&B.value==="am"?11:23:59,min:p.value==="hour"&&U.value&&B.value==="pm"?12:0,size:20,step:p.value==="hour"?1:5,modelValue:p.value==="hour"?n.value:p.value==="minute"?c.value:r.value,onChange:O,onInput:ee,ref:j}),null),actions:m.actions})})}}),Dt={name:"ExamConfigEditor",props:{configId:{type:String,required:!0},dialogMode:{type:Boolean,default:!1}},emits:["saved","error","opened","deleted"],data(){return{localConfig:{examName:"",message:"",room:"",examInfos:[]},loading:!1,saving:!1,deleting:!1,deleteDialog:!1,error:"",success:"",isEditMode:!1,showJsonPreview:!1,defaultExamTips:["请保持卷面整洁,字迹清晰,诚信应考。在听到终考铃时立刻起立,停止作答。","沉着 冷静 细心 守记","答题不守记,自己两行泪。"]}},computed:{formattedJson(){try{return JSON.stringify(this.localConfig,null,2)}catch(e){return console.error("格式化JSON时出错:",e),"无效的JSON格式"}},isValidConfig(){return this.localConfig.examName&&this.localConfig.message&&this.localConfig.examInfos&&this.localConfig.examInfos.length>0&&this.localConfig.examInfos.every(e=>e.name&&e.start&&e.end)},validationErrors(){const e=[];if((!this.localConfig.examName||this.localConfig.examName.trim()==="")&&e.push("考试名称不能为空"),(!this.localConfig.message||this.localConfig.message.trim()==="")&&e.push("考试提示不能为空"),!this.localConfig.examInfos||this.localConfig.examInfos.length===0)e.push("至少需要添加一个考试科目");else{this.localConfig.examInfos.forEach((t,i)=>{const m=`第${i+1}个科目`;if((!t.name||t.name.trim()==="")&&e.push(`${m}的名称不能为空`),t.start||e.push(`${m}的开始时间不能为空`),t.end||e.push(`${m}的结束时间不能为空`),t.start&&t.end){const o=new Date(t.start),v=new Date(t.end);isNaN(o.getTime())&&e.push(`${m}的开始时间格式不正确`),isNaN(v.getTime())&&e.push(`${m}的结束时间格式不正确`),!isNaN(o.getTime())&&!isNaN(v.getTime())&&(v<=o&&e.push(`${m}的结束时间必须晚于开始时间`),(v-o)/(1e3*60*60)>24&&e.push(`${m}的考试时长不能超过24小时`))}});for(let t=0;tc&&e.push(`第${t+1}个科目与第${i+1}个科目的时间有重叠`)}}}return e},hasValidationErrors(){return this.validationErrors.length>0}},watch:{configId:{immediate:!0,handler(e){e&&this.loadConfig()}}},methods:{async loadConfig(){var e;this.loading=!0,this.error="";try{const t=await ue.loadData(`es_${this.configId}`);t?(this.localConfig={examName:"",message:"",room:"",examInfos:[],...t},Array.isArray(this.localConfig.examInfos)||(this.localConfig.examInfos=[]),this.localConfig.examInfos.forEach(i=>{if(i.start){const m=this.parseDateTime(i.start);i.start=this.formatDateTimeLocal(m),i.startDate=m,i.startTime=this.formatTimeOnly(m),i.startFormatted=this.formatDisplayDateTime(m),i.startDateMenu=!1}if(i.end){const m=this.parseDateTime(i.end);i.end=this.formatDateTimeLocal(m),i.endDate=m,i.endTime=this.formatTimeOnly(m),i.endFormatted=this.formatDisplayDateTime(m),i.endDateMenu=!1}})):(console.error("加载配置失败:",t),this.error="加载配置失败: "+(((e=t.error)==null?void 0:e.message)||"未知错误"),this.$emit("error",this.error))}catch(t){console.error(t),this.error="加载配置失败: "+t.message,this.$emit("error",this.error)}finally{this.loading=!1}},async saveConfig(){var e;if(!this.isValidConfig){const t=this.validationErrors;return t.length>0?this.error=`配置验证失败:${t.join(";")}`:this.error="请填写完整的配置信息",!1}this.saving=!0,this.error="";try{const t={...this.localConfig,examInfos:this.localConfig.examInfos.map(m=>({...m,start:this.formatDisplayDateTime(m.start),end:this.formatDisplayDateTime(m.end)}))},i=await ue.saveData(`es_${this.configId}`,t);return i?(this.success="配置保存成功",this.$emit("saved",t),!0):(this.error="保存配置失败: "+(((e=i.error)==null?void 0:e.message)||"未知错误"),this.$emit("error",this.error),!1)}catch(t){return this.error="保存配置失败: "+t,this.$emit("error",this.error),!1}finally{this.saving=!1}},addExamInfo(){const e=new Date,t=new Date(e.getTime()+60*60*1e3),i=new Date(t.getTime()+2*60*60*1e3),m={name:"新科目",start:this.formatDateTimeLocal(t),end:this.formatDateTimeLocal(i),startDate:t,startTime:this.formatTimeOnly(t),startFormatted:this.formatDisplayDateTime(t),startDateMenu:!1,endDate:i,endTime:this.formatTimeOnly(i),endFormatted:this.formatDisplayDateTime(i),endDateMenu:!1};this.localConfig.examInfos.push(m)},removeExamInfo(e){this.localConfig.examInfos.splice(e,1)},moveExamInfo(e,t){const i=e+t;if(i>=0&&io.id!==this.configId);if(!await ue.saveData("es_list",i))throw new Error("更新云端列表失败");this.deleteDialog=!1,this.$emit("deleted",{success:!0,message:"配置删除成功",configId:this.configId})}catch(e){console.error("删除配置失败:",e),this.$emit("deleted",{success:!1,message:"删除失败: "+e.message})}finally{this.deleting=!1}}}},_t={class:"d-flex align-center"},Tt={class:"d-flex align-center"},St={key:4,class:"d-flex justify-space-between align-center mb-4"},Mt={class:"d-flex align-center gap-2"},Nt={key:5},It={class:"mb-8"},Pt={class:"text-h3 font-weight-bold",style:{"line-height":"1.2"}},Et={class:"text-subtitle-1 text-grey",style:{"white-space":"pre-wrap","line-height":"1.8"}},Ut={key:0,class:"mb-8"},Ft={class:"d-flex align-center"},At={class:""},Bt={class:"mb-3"},Ht={class:"d-flex align-center mb-1"},zt={class:"text-h6 font-weight-medium text-success"},Lt={class:"d-flex align-center mb-1"},Rt={class:"text-h6 font-weight-medium text-error"},Jt={key:1,class:"text-center py-12"},Ot={class:"json-preview"},jt={key:6},$t={class:"text-caption text-medium-emphasis ml-2"},Kt={class:"w-100"},qt={key:1,class:"text-center py-8"};function Yt(e,t,i,m,o,v){return C(),z("div",null,[o.error?(C(),P(Ce,{key:0,border:"start",class:"mb-4 mt-3 mx-2",closable:"",type:"error",variant:"tonal","onClick:close":t[0]||(t[0]=n=>o.error="")},{default:a(()=>[g("div",_t,[l(_,{class:"mr-2"},{default:a(()=>[...t[9]||(t[9]=[f("mdi-alert-circle",-1)])]),_:1}),f(" "+A(o.error),1)])]),_:1})):F("",!0),o.success?(C(),P(Ce,{key:1,border:"start",class:"mb-4 mt-3 mx-2",closable:"",type:"success",variant:"tonal","onClick:close":t[1]||(t[1]=n=>o.success="")},{default:a(()=>[g("div",Tt,[l(_,{class:"mr-2"},{default:a(()=>[...t[10]||(t[10]=[f("mdi-check-circle",-1)])]),_:1}),f(" "+A(o.success),1)])]),_:1})):F("",!0),v.hasValidationErrors&&!o.loading?(C(),P(Ce,{key:2,border:"start",class:"mb-4 mt-3 mx-2",type:"warning",variant:"tonal"},{default:a(()=>[t[12]||(t[12]=g("div",{class:"d-flex align-center"},[g("span",{class:"font-weight-bold"},"配置验证失败,请检查以下问题:")],-1)),l(Fe,{class:"bg-transparent",density:"compact"},{default:a(()=>[(C(!0),z(he,null,ye(v.validationErrors,(n,c)=>(C(),P(Ae,{key:c,class:"px-0 py-0"},{prepend:a(()=>[l(_,{color:"warning",size:"small"},{default:a(()=>[...t[11]||(t[11]=[f("mdi-circle-small",-1)])]),_:1})]),default:a(()=>[l(it,{class:"text-body-2"},{default:a(()=>[f(A(n),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):F("",!0),o.loading?(C(),P(K,{key:3,class:"my-4",outlined:""},{default:a(()=>[l(Q,null,{default:a(()=>[l(ft,{class:"mx-auto",type:"article"})]),_:1})]),_:1})):F("",!0),o.loading?F("",!0):(C(),z("div",St,[g("div",Mt,[l(D,{disabled:!v.isValidConfig,class:"mr-2 text-none",color:"success","prepend-icon":"mdi-open-in-new",variant:"elevated",onClick:v.openConfig},{default:a(()=>[...t[13]||(t[13]=[f(" 打开 ExamSchedule ",-1)])]),_:1},8,["disabled","onClick"]),v.isValidConfig?F("",!0):(C(),P(vt,{key:0,activator:"parent",location:"bottom"},{default:a(()=>[...t[14]||(t[14]=[g("span",null,"请先完善配置信息后再打开",-1)])]),_:1}))]),l(rt,{modelValue:o.isEditMode,"onUpdate:modelValue":t[2]||(t[2]=n=>o.isEditMode=n),color:"primary",divided:"",variant:"outlined"},{default:a(()=>[l(D,{class:"text-error","prepend-icon":"mdi-delete",onClick:v.confirmDelete},{default:a(()=>[...t[15]||(t[15]=[f(" 删除配置 ",-1)])]),_:1},8,["onClick"]),l(D,{value:!1,"prepend-icon":"mdi-eye"},{default:a(()=>[...t[16]||(t[16]=[f(" 预览",-1)])]),_:1}),l(D,{value:!0,"prepend-icon":"mdi-pencil"},{default:a(()=>[...t[17]||(t[17]=[f(" 编辑",-1)])]),_:1})]),_:1},8,["modelValue"])])),!o.loading&&!o.isEditMode?(C(),z("div",Nt,[g("div",It,[g("div",Pt,A(o.localConfig.examName||"未设置考试名称"),1),g("div",Et,A(o.localConfig.message||"未设置考试提示"),1),o.localConfig.room?(C(),P(Be,{key:0,class:"px-4 py-2",size:"large"},{default:a(()=>[l(_,{start:""},{default:a(()=>[...t[18]||(t[18]=[f("mdi-home",-1)])]),_:1}),f(" 考场:"+A(o.localConfig.room),1)]),_:1})):F("",!0)]),o.localConfig.examInfos&&o.localConfig.examInfos.length>0?(C(),z("div",Ut,[l(me,null,{default:a(()=>[(C(!0),z(he,null,ye(o.localConfig.examInfos,(n,c)=>(C(),P(L,{key:c,cols:"12",lg:"4",md:"6"},{default:a(()=>[l(K,{class:"h-100",hover:"",variant:"tonal"},{default:a(()=>[l(le,{class:"bg-primary-lighten-5 pa-4"},{default:a(()=>[g("div",Ft,[l(_,{class:"mr-2"},{default:a(()=>[...t[19]||(t[19]=[f("mdi-book-open-page-variant",-1)])]),_:1}),g("span",At,A(n.name||"未设置科目"),1)])]),_:2},1024),l(Q,{class:"pa-4"},{default:a(()=>[g("div",Bt,[g("div",Ht,[l(_,{class:"mr-2",color:"success",size:"small"},{default:a(()=>[...t[20]||(t[20]=[f("mdi-clock-start ",-1)])]),_:1}),t[21]||(t[21]=g("span",{class:"text-body-2 text-grey-darken-1"},"开始时间",-1))]),g("div",zt,A(n.startFormatted||n.start||"未设置"),1)]),g("div",null,[g("div",Lt,[l(_,{class:"mr-2",color:"error",size:"small"},{default:a(()=>[...t[22]||(t[22]=[f("mdi-clock-end ",-1)])]),_:1}),t[23]||(t[23]=g("span",{class:"text-body-2 text-grey-darken-1"},"结束时间",-1))]),g("div",Rt,A(n.endFormatted||n.end||"未设置"),1)])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})])):(C(),z("div",Jt,[l(_,{class:"mb-4",color:"grey-lighten-2",size:"80"},{default:a(()=>[...t[24]||(t[24]=[f(" mdi-calendar-blank ",-1)])]),_:1}),t[27]||(t[27]=g("div",{class:"text-h5 text-grey-darken-1 mb-2"},"暂无考试科目安排",-1)),t[28]||(t[28]=g("div",{class:"text-body-1 text-grey mb-4"},' 点击上方"添加科目"按钮开始配置考试时间表 ',-1)),l(D,{color:"primary",variant:"outlined",onClick:v.quickEdit},{default:a(()=>[l(_,{start:""},{default:a(()=>[...t[25]||(t[25]=[f("mdi-plus",-1)])]),_:1}),t[26]||(t[26]=f(" 立即添加 ",-1))]),_:1},8,["onClick"])])),l(K,{border:"",class:"mb-4",elevation:"2"},{default:a(()=>[l(le,{class:"d-flex align-center text-white cursor-pointer",onClick:t[3]||(t[3]=n=>o.showJsonPreview=!o.showJsonPreview)},{default:a(()=>[l(_,{class:"mr-2"},{default:a(()=>[...t[29]||(t[29]=[f("mdi-code-json",-1)])]),_:1}),t[31]||(t[31]=f(" JSON配置预览 ",-1)),l(de),l(D,{color:"white","prepend-icon":"mdi-content-copy",size:"small",variant:"outlined",onClick:st(v.copyToClipboard,["stop"])},{default:a(()=>[...t[30]||(t[30]=[f(" 复制 ",-1)])]),_:1},8,["onClick"]),l(D,{icon:o.showJsonPreview?"mdi-chevron-up":"mdi-chevron-down",class:"ml-2",color:"white",size:"small",variant:"text"},null,8,["icon"])]),_:1}),l(ut,null,{default:a(()=>[dt(l(Q,{class:"pa-4"},{default:a(()=>[l(K,{class:"pa-4",variant:"tonal"},{default:a(()=>[g("pre",Ot,[g("code",null,A(v.formattedJson),1)])]),_:1})]),_:1},512),[[mt,o.showJsonPreview]])]),_:1})]),_:1})])):F("",!0),!o.loading&&o.isEditMode?(C(),z("div",jt,[l(K,{border:"",class:"mb-4",elevation:"1"},{default:a(()=>[l(le,{class:"d-flex align-center"},{default:a(()=>[l(_,{class:"mr-2"},{default:a(()=>[...t[32]||(t[32]=[f("mdi-information",-1)])]),_:1}),t[33]||(t[33]=f(" 基本信息 ",-1))]),_:1}),l(Q,{class:"pa-4"},{default:a(()=>[l(me,null,{default:a(()=>[l(L,{cols:"12",md:"6"},{default:a(()=>[l(ie,{modelValue:o.localConfig.examName,"onUpdate:modelValue":t[4]||(t[4]=n=>o.localConfig.examName=n),rules:[n=>!!n||"考试名称不能为空"],label:"考试名称","prepend-inner-icon":"mdi-calendar-text",required:"",variant:"outlined"},null,8,["modelValue","rules"])]),_:1}),l(L,{cols:"12",md:"6"},{default:a(()=>[l(ie,{modelValue:o.localConfig.room,"onUpdate:modelValue":t[5]||(t[5]=n=>o.localConfig.room=n),label:"考场号(标准ES尚不支持此配置)","prepend-inner-icon":"mdi-home",variant:"outlined"},null,8,["modelValue"])]),_:1})]),_:1}),l(ht,{modelValue:o.localConfig.message,"onUpdate:modelValue":t[6]||(t[6]=n=>o.localConfig.message=n),label:"考试提示",placeholder:"输入考试相关的提示信息...","prepend-inner-icon":"mdi-message-text",rows:"3",variant:"outlined"},null,8,["modelValue"]),!o.localConfig.message||o.localConfig.message.trim()===""?(C(),P(gt,{key:0,class:"mt-2",column:""},{default:a(()=>[(C(!0),z(he,null,ye(o.defaultExamTips,(n,c)=>(C(),P(Be,{key:c,class:"ma-1",color:"primary",size:"small",variant:"outlined",onClick:r=>v.selectDefaultTip(n)},{default:a(()=>[l(_,{size:"small",start:""},{default:a(()=>[...t[34]||(t[34]=[f("mdi-plus",-1)])]),_:1}),f(" "+A(n),1)]),_:2},1032,["onClick"]))),128))]),_:1})):F("",!0),g("div",$t,[l(_,{class:"mr-1",size:"small"},{default:a(()=>[...t[35]||(t[35]=[f("mdi-lightbulb-outline",-1)])]),_:1}),t[36]||(t[36]=f(" 点击上方选项快速添加常用考试提示 ",-1))])]),_:1})]),_:1}),l(K,{border:"",class:"mb-4",elevation:"1"},{default:a(()=>[l(le,{class:"d-flex align-center"},{default:a(()=>[l(_,{class:"mr-2"},{default:a(()=>[...t[37]||(t[37]=[f("mdi-format-list-bulleted",-1)])]),_:1}),t[39]||(t[39]=f(" 考试科目安排 ",-1)),l(de),l(D,{color:"primary","prepend-icon":"mdi-plus",size:"small",onClick:v.addExamInfo},{default:a(()=>[...t[38]||(t[38]=[f(" 添加科目 ",-1)])]),_:1},8,["onClick"])]),_:1}),l(Q,{class:"pa-0"},{default:a(()=>[o.localConfig.examInfos&&o.localConfig.examInfos.length>0?(C(),P(Fe,{key:0},{default:a(()=>[(C(!0),z(he,null,ye(o.localConfig.examInfos,(n,c)=>(C(),P(Ae,{key:c,class:"border-b pa-4"},{default:a(()=>[g("div",Kt,[l(me,null,{default:a(()=>[l(L,{cols:"12",md:"4"},{default:a(()=>[l(ie,{modelValue:n.name,"onUpdate:modelValue":r=>n.name=r,rules:[r=>!!r||"科目名称不能为空"],density:"comfortable",label:"科目名称","prepend-inner-icon":"mdi-book",variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","rules"])]),_:2},1024),l(L,{cols:"12",md:"3"},{default:a(()=>[l(He,{modelValue:n.startDateMenu,"onUpdate:modelValue":r=>n.startDateMenu=r,"close-on-content-click":!1,"min-width":"auto","offset-y":"",transition:"scale-transition"},{activator:a(({props:r})=>[l(ie,se({modelValue:n.startFormatted,"onUpdate:modelValue":k=>n.startFormatted=k,rules:[k=>!!k||"开始时间不能为空"],density:"comfortable",label:"开始时间","prepend-inner-icon":"mdi-clock-start",readonly:""},{ref_for:!0},r,{variant:"outlined"}),null,16,["modelValue","onUpdate:modelValue","rules"])]),default:a(()=>[l(K,{"min-width":"600"},{default:a(()=>[l(le,{class:"text-center py-2"},{default:a(()=>[...t[40]||(t[40]=[f(" 选择开始时间 ",-1)])]),_:1}),l(Q,{class:"pa-0"},{default:a(()=>[l(me,{"no-gutters":""},{default:a(()=>[l(L,{class:"border-e",cols:"6"},{default:a(()=>[l(Le,{modelValue:n.startDate,"onUpdate:modelValue":[r=>n.startDate=r,r=>v.updateStartDateTime(c)],color:"primary",elevation:"0",locale:"zh-cn","show-adjacent-months":""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(L,{cols:"6"},{default:a(()=>[l(je,{modelValue:n.startTime,"onUpdate:modelValue":[r=>n.startTime=r,r=>v.updateStartDateTime(c)],color:"primary",elevation:"0",format:"24hr",scrollable:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024),l(be,null,{default:a(()=>[l(de),l(D,{color:"grey",variant:"text",onClick:r=>n.startDateMenu=!1},{default:a(()=>[...t[41]||(t[41]=[f(" 取消 ",-1)])]),_:1},8,["onClick"]),l(D,{color:"primary",variant:"text",onClick:r=>n.startDateMenu=!1},{default:a(()=>[...t[42]||(t[42]=[f(" 确定 ",-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(L,{cols:"12",md:"3"},{default:a(()=>[l(He,{modelValue:n.endDateMenu,"onUpdate:modelValue":r=>n.endDateMenu=r,"close-on-content-click":!1,"min-width":"auto","offset-y":"",transition:"scale-transition"},{activator:a(({props:r})=>[l(ie,se({modelValue:n.endFormatted,"onUpdate:modelValue":k=>n.endFormatted=k,rules:[k=>!!k||"结束时间不能为空"],density:"comfortable",label:"结束时间","prepend-inner-icon":"mdi-clock-end",readonly:""},{ref_for:!0},r,{variant:"outlined"}),null,16,["modelValue","onUpdate:modelValue","rules"])]),default:a(()=>[l(K,{"min-width":"600"},{default:a(()=>[l(le,{class:"text-center py-2"},{default:a(()=>[...t[43]||(t[43]=[f(" 选择结束时间 ",-1)])]),_:1}),l(Q,{class:"pa-0"},{default:a(()=>[l(me,{"no-gutters":""},{default:a(()=>[l(L,{class:"border-e",cols:"6"},{default:a(()=>[l(Le,{modelValue:n.endDate,"onUpdate:modelValue":[r=>n.endDate=r,r=>v.updateEndDateTime(c)],color:"primary",elevation:"0",locale:"zh-cn","show-adjacent-months":""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(L,{cols:"6"},{default:a(()=>[l(je,{modelValue:n.endTime,"onUpdate:modelValue":[r=>n.endTime=r,r=>v.updateEndDateTime(c)],color:"primary",elevation:"0",format:"24hr",scrollable:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024),l(be,null,{default:a(()=>[l(de),l(D,{color:"grey",variant:"text",onClick:r=>n.endDateMenu=!1},{default:a(()=>[...t[44]||(t[44]=[f(" 取消 ",-1)])]),_:1},8,["onClick"]),l(D,{color:"primary",variant:"text",onClick:r=>n.endDateMenu=!1},{default:a(()=>[...t[45]||(t[45]=[f(" 确定 ",-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(L,{class:"d-flex align-center",cols:"12",md:"2"},{default:a(()=>[l(D,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:r=>v.removeExamInfo(c)},{default:a(()=>[l(_,null,{default:a(()=>[...t[46]||(t[46]=[f("mdi-delete",-1)])]),_:1})]),_:1},8,["onClick"]),c>0?(C(),P(D,{key:0,color:"primary",icon:"mdi-arrow-up",size:"small",variant:"text",onClick:r=>v.moveExamInfo(c,-1)},{default:a(()=>[l(_,null,{default:a(()=>[...t[47]||(t[47]=[f("mdi-arrow-up",-1)])]),_:1})]),_:1},8,["onClick"])):F("",!0),cv.moveExamInfo(c,1)},{default:a(()=>[l(_,null,{default:a(()=>[...t[48]||(t[48]=[f("mdi-arrow-down",-1)])]),_:1})]),_:1},8,["onClick"])):F("",!0)]),_:2},1024)]),_:2},1024)])]),_:2},1024))),128))]),_:1})):(C(),z("div",qt,[l(_,{class:"mb-2",color:"grey-lighten-1",size:"48"},{default:a(()=>[...t[49]||(t[49]=[f(" mdi-book-plus ",-1)])]),_:1}),t[51]||(t[51]=g("p",{class:"text-body-2 text-grey-darken-1 mb-4"},' 暂无考试科目,点击"添加科目"按钮开始添加 ',-1)),l(D,{color:"primary","prepend-icon":"mdi-plus",onClick:v.addExamInfo},{default:a(()=>[...t[50]||(t[50]=[f(" 添加科目 ",-1)])]),_:1},8,["onClick"])]))]),_:1})]),_:1})])):F("",!0),l(ct,{modelValue:o.deleteDialog,"onUpdate:modelValue":t[8]||(t[8]=n=>o.deleteDialog=n),"max-width":"400"},{default:a(()=>[l(K,null,{default:a(()=>[l(le,{class:"d-flex align-center"},{default:a(()=>[l(_,{class:"mr-2",color:"error"},{default:a(()=>[...t[52]||(t[52]=[f("mdi-delete-alert",-1)])]),_:1}),t[53]||(t[53]=f(" 确认删除配置 ",-1))]),_:1}),l(Q,null,{default:a(()=>[t[54]||(t[54]=f(" 确定要删除配置 ",-1)),g("strong",null,A(o.localConfig.examName||`配置 ${i.configId}`),1),t[55]||(t[55]=f(" 吗? ",-1)),t[56]||(t[56]=g("br",null,null,-1)),t[57]||(t[57]=g("small",{class:"text-grey"},"此操作不可撤销,将会删除所有相关数据",-1))]),_:1}),l(be,null,{default:a(()=>[l(de),l(D,{color:"grey",variant:"text",onClick:t[7]||(t[7]=n=>o.deleteDialog=!1)},{default:a(()=>[...t[58]||(t[58]=[f(" 取消 ",-1)])]),_:1}),l(D,{loading:o.deleting,color:"error",variant:"outlined",onClick:v.deleteConfig},{default:a(()=>[...t[59]||(t[59]=[f(" 删除 ",-1)])]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const il=ot(Dt,[["render",Yt],["__scopeId","data-v-f5f81ffa"]]);export{il as _}; +import{d as ue}from"./dataProvider-CVD6IsoX.js";import{g as pe,p as we,$ as S,a2 as Ke,aB as Xe,a5 as R,a6 as Q,c as ke,i as g,n as Ee,e as re,aX as Ze,a0 as Qe,d as l,E as se,ad as et,Z as $e,a3 as fe,t as f,y as D,aY as Ue,aF as tt,ay as lt,aj as at,ae as xe,aJ as nt,aZ as _e,_ as ot,A as z,o as C,j as P,B as F,w as a,v as _,C as A,P as Fe,F as he,G as ye,Q as Ae,ap as it,z as Z,l as $,D as rt,q as le,x as de,O as st,a_ as ut,I as dt,J as mt,M as be,H as ct}from"./index-GyS8nTIx.js";import{V as Ce}from"./VAlert-CB2ovGuT.js";import{V as ft}from"./VSkeletonLoader-DnBPECWc.js";import{V as vt}from"./VBadge-Dfdn66Fe.js";import{V as Be,b as gt}from"./VChip-DsTHqUw0.js";import{a as L,V as me}from"./VRow-DtMdTMSo.js";import{V as ie}from"./VTextField-xLiM0gib.js";import{V as ht}from"./VTextarea-BeSb8uK6.js";import{V as He}from"./VMenu-ClQzjH_h.js";import{a as ze,m as yt,V as Le}from"./VDatePicker-D6FkGAp6.js";const pt=we({allowedValues:Function,ampm:Boolean,color:String,disabled:Boolean,displayedValue:null,double:Boolean,format:{type:Function,default:e=>e},max:{type:Number,required:!0},min:{type:Number,required:!0},scrollable:Boolean,readonly:Boolean,rotate:{type:Number,default:0},step:{type:Number,default:1},modelValue:{type:Number}},"VTimePickerClock"),Re=pe()({name:"VTimePickerClock",props:pt(),emits:{change:e=>!0,input:e=>!0},setup(e,t){let{emit:i}=t;const m=S(null),o=S(null),v=S(void 0),n=S(!1),c=S(null),r=S(null),k=Ze(u=>i("change",u),750),{textColorClasses:Y,textColorStyles:ae}=Ke(()=>e.color),{backgroundColorClasses:B,backgroundColorStyles:p}=Xe(()=>e.color),J=R(()=>e.max-e.min+1),j=R(()=>e.double?J.value/2:J.value),M=R(()=>360/j.value),W=R(()=>M.value*Math.PI/180),K=R(()=>e.modelValue==null?e.min:e.modelValue),U=R(()=>.62),s=R(()=>{const u=[];for(let y=e.min;y<=e.max;y=y+e.step)u.push(y);return u});Q(()=>e.modelValue,u=>{v.value=u});function V(u){v.value!==u&&(v.value=u),i("input",u)}function I(u){return!e.allowedValues||e.allowedValues(u)}function x(u){if(!e.scrollable||e.disabled)return;u.preventDefault();const y=Math.sign(-u.deltaY||1);let b=K.value;do b=b+y,b=(b-e.min+J.value)%J.value+e.min;while(!I(b)&&b!==K.value);b!==e.displayedValue&&V(b),k(b)}function N(u){return e.double&&u-e.min>=j.value}function H(u){return N(u)?U.value:1}function ee(u){const y=e.rotate*Math.PI/180;return{x:Math.sin((u-e.min)*W.value+y)*H(u),y:-Math.cos((u-e.min)*W.value+y)*H(u)}}function O(u,y){const b=(Math.round(u/M.value)+(y?j.value:0))%J.value+e.min;return u<360-M.value/2?b:y?e.max-j.value+1:e.min}function d(u){const{x:y,y:b}=ee(u);return{left:`${Math.round(50+y*50)}%`,top:`${Math.round(50+b*50)}%`}}function w(u,y){const b=y.x-u.x,ne=y.y-u.y;return Math.sqrt(b*b+ne*ne)}function T(u,y){const b=2*Math.atan2(y.y-u.y-w(u,y),y.x-u.x);return Math.abs(b*180/Math.PI)}function h(u){c.value===null&&(c.value=u),r.value=u,V(u)}function E(u){var Ie,Pe;if(u.preventDefault(),!n.value&&u.type!=="click"||!m.value)return;const{width:y,top:b,left:ne}=(Ie=m.value)==null?void 0:Ie.getBoundingClientRect(),{width:te}=((Pe=o.value)==null?void 0:Pe.getBoundingClientRect())??{width:0},{clientX:ve,clientY:We}="touches"in u?u.touches[0]:u,Te={x:y/2,y:-y/2},Se={x:ve-ne,y:b-We},Me=Math.round(T(Te,Se)-e.rotate+360)%360,Ne=e.double&&w(Te,Se)<(te+te*U.value)/4,Ge=Math.ceil(15/M.value);let oe;for(let ge=0;geg("div",{class:re([{"v-time-picker-clock":!0,"v-time-picker-clock--indeterminate":e.modelValue==null,"v-time-picker-clock--readonly":e.readonly}]),onMousedown:G,onTouchstart:G,onWheel:x,ref:m},[g("div",{class:"v-time-picker-clock__inner",ref:o},[g("div",{class:re([{"v-time-picker-clock__hand":!0,"v-time-picker-clock__hand--inner":N(e.modelValue)},Y.value]),style:Ee([{transform:`rotate(${e.rotate+M.value*(K.value-e.min)}deg) scaleY(${H(K.value)})`},ae.value])},null),s.value.map(u=>{const y=u===K.value;return g("div",{class:re([{"v-time-picker-clock__item":!0,"v-time-picker-clock__item--active":y,"v-time-picker-clock__item--disabled":e.disabled||!I(u)},y&&B.value]),style:Ee([d(u),y&&p.value])},[g("span",null,[e.format(u)])])})])]))}}),wt=we({active:Boolean,color:String,disabled:Boolean,label:String,modelValue:String,readonly:Boolean},"VTimePickerField"),Ve=pe()({name:"VTimePickerField",inheritAttrs:!1,props:wt(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:i,attrs:m}=t;const{textColorClasses:o,textColorStyles:v}=Ke(()=>e.color),n=S(),c=Qe(!1);function r(k){if(["Backspace","Delete"].includes(k.key)){k.preventDefault();const Y=k.target;Y.value="",i("update:modelValue",null)}}return ke(()=>g("div",null,[l(ie,se({ref:n,autocomplete:"off",class:["v-time-picker-controls__time__field",{"v-time-picker-controls__time__field--active":e.active},e.active?o.value:[]],style:e.active?v.value:[],disabled:e.disabled,variant:"solo-filled",inputmode:"numeric",hideDetails:!0,flat:!0,modelValue:e.modelValue??(c.value?"":"--"),"onUpdate:modelValue":k=>i("update:modelValue",k),onKeydown:r,onFocus:()=>c.value=!0,onBlur:()=>c.value=!1},m),null),g("div",{class:"v-time-picker-controls__field-label"},[e.label])])),et({},n)}});function q(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(e).padStart(t,"0")}function qe(e){return e?(e-1)%12+1:12}function De(e,t){return e%12+(t==="pm"?12:0)}function ce(e){const t=e.replaceAll(/\D/g,"");return t.length>0?Number(t):null}function kt(e,t,i){if(i){if(e===12&&t)return{value:1};if(e===11&&t)return{value:12,togglePeriod:!0};if(e===12&&!t)return{value:11,togglePeriod:!0};if(e===1&&!t)return{value:12}}else{if(e===23&&t)return{value:0};if(e===0&&!t)return{value:23}}return{value:e+(t?1:-1)}}function Je(e,t){return e===59&&t?0:e===0&&!t?59:e+(t?1:-1)}const bt=we({ampm:Boolean,color:String,disabled:Boolean,hour:[Number,String],minute:[Number,String],second:[Number,String],period:String,readonly:Boolean,useSeconds:Boolean,value:Number,viewMode:String},"VTimePickerControls"),Oe=pe()({name:"VTimePickerControls",props:bt(),emits:{"update:period":e=>!0,"update:viewMode":e=>!0,"update:hour":e=>!0,"update:minute":e=>!0,"update:second":e=>!0},setup(e,t){let{emit:i,slots:m}=t;const{t:o}=$e(),v={in:s=>{if(s==null||isNaN(Number(s)))return null;const V=Number(s);return e.ampm?q(qe(V)):q(V)},out:s=>{if(isNaN(Number(s))||s==null||s==="")return null;const V=typeof s=="string"?ce(s):Number(s);return V===null?null:e.ampm?De(V,e.period??"am"):Ue(V,0,23)}},n=fe(e,"hour",void 0,v.in,v.out),c={in:s=>s!=null&&!isNaN(Number(s))?q(`${s}`):null,out:s=>{if(isNaN(Number(s))||s==null||s==="")return null;const V=typeof s=="string"?ce(s):Number(s);return V!==null?Ue(V,0,59):null}},r=fe(e,"minute",void 0,c.in,c.out),k=fe(e,"second",void 0,c.in,c.out);function Y(s){if(!["ArrowUp","ArrowDown"].includes(s.key))return;s.preventDefault(),s.stopPropagation();const V=Number(n.value??0),I=e.ampm?e.period??"am":null,{value:x,togglePeriod:N}=kt(V,s.key==="ArrowUp",I);n.value=q(x),N&&i("update:period",e.period==="am"?"pm":"am")}function ae(s){["ArrowUp","ArrowDown"].includes(s.key)&&(s.preventDefault(),s.stopPropagation(),r.value=Je(Number(r.value),s.key==="ArrowUp"))}function B(s){["ArrowUp","ArrowDown"].includes(s.key)&&(s.preventDefault(),s.stopPropagation(),k.value=Je(Number(k.value),s.key==="ArrowUp"))}function p(s,V,I){return x=>{if(!x.data)return;const N=x.target,{value:H,selectionStart:ee,selectionEnd:O}=N??{};if(ce(x.data)===null){x.preventDefault();return}const d=H?H.slice(0,ee)+x.data+H.slice(O):x.data;if(d.length>2){if(ee===O&&O===0&&x.data.trim().startsWith("0")){x.preventDefault(),N.value=d.trim().substring(0,2),I(N.value),x.data.trim().length===1&&N.setSelectionRange(1,1);return}if(ee===O&&O===1&&H.startsWith("0")){x.preventDefault(),N.value=d.trim().substring(0,2),I(N.value);return}const T=e.viewMode==="hour"?e.ampm?12:23:59;if(ce(d)>T){x.preventDefault(),N.value=q(String(ce(x.data)).substring(0,2)),I(N.value);return}}const w=s(d);V(w)&&x.preventDefault()}}const J=S(),j=S(),M=S();Q(()=>e.viewMode,(s,V)=>{switch(V){case"hour":J.value.blur();break;case"minute":j.value.blur();break;case"second":M.value.blur();break}});const W=p(v.out,s=>v.in(s)===n.value,s=>n.value=s),K=p(c.out,s=>c.in(s)===r.value,s=>r.value=s),U=p(c.out,s=>c.in(s)===k.value,s=>k.value=s);return ke(()=>g("div",{class:"v-time-picker-controls"},[g("div",{class:re({"v-time-picker-controls__time":!0,"v-time-picker-controls__time--with-ampm":e.ampm,"v-time-picker-controls__time--with-seconds":e.useSeconds})},[l(Ve,{ref:J,active:e.viewMode==="hour",color:e.color,disabled:e.disabled,label:o("$vuetify.timePicker.hour"),modelValue:n.value,"onUpdate:modelValue":s=>n.value=s,onKeydown:Y,onBeforeinput:W,onFocus:()=>i("update:viewMode","hour")},null),g("span",{class:"v-time-picker-controls__time__separator"},[f(":")]),l(Ve,{ref:j,active:e.viewMode==="minute",color:e.color,disabled:e.disabled,label:o("$vuetify.timePicker.minute"),modelValue:r.value,"onUpdate:modelValue":s=>r.value=s,onKeydown:ae,onBeforeinput:K,onFocus:()=>i("update:viewMode","minute")},null),e.useSeconds&&g("span",{key:"secondsDivider",class:"v-time-picker-controls__time__separator"},[f(":")]),e.useSeconds&&l(Ve,{key:"secondsVal",ref:M,active:e.viewMode==="second",color:e.color,disabled:e.disabled,label:o("$vuetify.timePicker.second"),modelValue:k.value,"onUpdate:modelValue":s=>k.value=s,onKeydown:B,onBeforeinput:U,onFocus:()=>i("update:viewMode","second")},null),e.ampm&&g("div",{class:"v-time-picker-controls__ampm"},[l(D,{active:e.period==="am",color:e.period==="am"?e.color:void 0,class:re({"v-time-picker-controls__ampm__am":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":e.period==="am"}),disabled:e.disabled,text:o("$vuetify.timePicker.am"),variant:e.disabled&&e.period==="am"?"elevated":"tonal",onClick:()=>e.period!=="am"?i("update:period","am"):null},null),l(D,{active:e.period==="pm",color:e.period==="pm"?e.color:void 0,class:re({"v-time-picker-controls__ampm__pm":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":e.period==="pm"}),disabled:e.disabled,text:o("$vuetify.timePicker.pm"),variant:e.disabled&&e.period==="pm"?"elevated":"tonal",onClick:()=>e.period!=="pm"?i("update:period","pm"):null},null)])])])),{}}}),Ct=_e(24),Ye=_e(12),Vt=Ye.map(e=>e+12);_e(60);const xt=we({allowedHours:[Function,Array],allowedMinutes:[Function,Array],allowedSeconds:[Function,Array],disabled:Boolean,format:{type:String,default:"ampm"},max:String,min:String,viewMode:{type:String,default:"hour"},period:{type:String,default:"am",validator:e=>["am","pm"].includes(e)},modelValue:null,readonly:Boolean,scrollable:Boolean,useSeconds:Boolean,variant:{type:String,default:"dial"},...xe(yt({title:"$vuetify.timePicker.title"}),["landscape"]),...nt()},"VTimePicker"),je=pe()({name:"VTimePicker",props:xt(),emits:{"update:hour":e=>!0,"update:minute":e=>!0,"update:period":e=>!0,"update:second":e=>!0,"update:modelValue":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:i,slots:m}=t;const{t:o}=$e(),{densityClasses:v}=tt(e),n=S(null),c=S(null),r=S(null),k=S(null),Y=S(null),ae=S(null),B=fe(e,"period","am"),p=fe(e,"viewMode","hour"),J=S(null),j=S(null),M=R(()=>{let d;if(e.allowedHours instanceof Array?d=h=>e.allowedHours.includes(h):d=e.allowedHours,!e.min&&!e.max)return d;const w=e.min?Number(e.min.split(":")[0]):0,T=e.max?Number(e.max.split(":")[0]):23;return h=>h>=Number(w)&&h<=Number(T)&&(!d||d(h))}),W=R(()=>{let d;const w=!M.value||n.value===null||M.value(n.value);if(e.allowedMinutes instanceof Array?d=y=>e.allowedMinutes.includes(y):d=e.allowedMinutes,!e.min&&!e.max)return w?d:()=>!1;const[T,h]=e.min?e.min.split(":").map(Number):[0,0],[E,G]=e.max?e.max.split(":").map(Number):[23,59],X=T*60+Number(h),u=E*60+Number(G);return y=>{const b=60*n.value+y;return b>=X&&b<=u&&w&&(!d||d(y))}}),K=R(()=>{let d;const T=(!M.value||n.value===null||M.value(n.value))&&(!W.value||c.value===null||W.value(c.value));if(e.allowedSeconds instanceof Array?d=te=>e.allowedSeconds.includes(te):d=e.allowedSeconds,!e.min&&!e.max)return T?d:()=>!1;const[h,E,G]=e.min?e.min.split(":").map(Number):[0,0,0],[X,u,y]=e.max?e.max.split(":").map(Number):[23,59,59],b=h*3600+E*60+Number(G||0),ne=X*3600+u*60+Number(y||0);return te=>{const ve=3600*n.value+60*c.value+te;return ve>=b&&ve<=ne&&T&&(!d||d(te))}}),U=R(()=>e.format==="ampm"),s=lt(()=>e.modelValue!==null&&n.value===null&&c.value===null&&(!e.useSeconds||r.value===null));function V(){const d=I();d!==null&&d!==e.modelValue&&i("update:modelValue",d),s.value&&i("update:modelValue",null)}Q(n,V),Q(c,V),Q(r,V),Q(()=>e.period,d=>H(d)),Q(()=>e.modelValue,d=>x(d)),Q(()=>e.useSeconds,(d,w)=>{w&&!d&&p.value==="second"&&(p.value="minute"),!d&&r.value!==null&&(r.value=null)}),at(()=>{x(e.modelValue)});function I(){return n.value!=null&&c.value!=null&&(!e.useSeconds||r.value!=null)?`${q(n.value)}:${q(c.value)}`+(e.useSeconds?`:${q(r.value)}`:""):null}function x(d){if(d==null||d==="")n.value=null,c.value=null,r.value=null;else if(d instanceof Date)n.value=d.getHours(),c.value=d.getMinutes(),r.value=d.getSeconds();else{const[w,,T,,h,E]=d.trim().toLowerCase().match(/^(\d+):(\d+)(:(\d+))?([ap]m)?$/)||new Array(6);n.value=E?De(parseInt(w,10),E):parseInt(w,10),c.value=parseInt(T,10),r.value=parseInt(h||0,10)}B.value=n.value==null||n.value<12?"am":"pm"}function N(d,w){const T=M.value;if(!T)return w;const h=U.value?w<12?Ye:Vt:Ct;return((h.find(G=>T((G+w)%h.length+h[0]))||0)+w)%h.length+h[0]}function H(d){if(B.value=d,n.value!=null){const w=n.value+(B.value==="am"?-12:12);n.value=N("hour",w)}return i("update:period",d),V(),!0}function ee(d){p.value==="hour"?n.value=U.value?De(d,B.value):d:p.value==="minute"?c.value=d:r.value=d}function O(d){switch(p.value||"hour"){case"hour":i("update:hour",d);break;case"minute":i("update:minute",d);break;case"second":i("update:second",d);break}const w=n.value!==null&&c.value!==null&&(e.useSeconds?r.value!==null:!0);p.value==="hour"?p.value="minute":e.useSeconds&&p.value==="minute"&&(p.value="second"),!(n.value===k.value&&c.value===Y.value&&(!e.useSeconds||r.value===ae.value)||I()===null)&&(k.value=n.value,Y.value=c.value,e.useSeconds&&(ae.value=r.value),w&&V())}ke(()=>{const d=xe(ze.filterProps(e),["hideHeader"]),w=Oe.filterProps(e),T=Re.filterProps(xe(e,["format","modelValue","min","max"]));return l(ze,se(d,{color:void 0,class:["v-time-picker",`v-time-picker--variant-${e.variant}`,e.class,v.value],hideHeader:e.hideHeader&&e.variant!=="input",style:e.style}),{title:()=>{var h;return((h=m.title)==null?void 0:h.call(m))??g("div",{class:"v-time-picker__title"},[o(e.title)])},header:()=>l(Oe,se(w,{ampm:U.value,hour:n.value,minute:c.value,period:B.value,second:r.value,viewMode:p.value,"onUpdate:hour":h=>n.value=h,"onUpdate:minute":h=>c.value=h,"onUpdate:period":h=>H(h),"onUpdate:second":h=>r.value=h,"onUpdate:viewMode":h=>p.value=h,ref:J}),null),default:()=>l(Re,se(T,{allowedValues:p.value==="hour"?M.value:p.value==="minute"?W.value:K.value,double:p.value==="hour"&&!U.value,format:p.value==="hour"?U.value?qe:h=>h:h=>q(h,2),max:p.value==="hour"?U.value&&B.value==="am"?11:23:59,min:p.value==="hour"&&U.value&&B.value==="pm"?12:0,size:20,step:p.value==="hour"?1:5,modelValue:p.value==="hour"?n.value:p.value==="minute"?c.value:r.value,onChange:O,onInput:ee,ref:j}),null),actions:m.actions})})}}),Dt={name:"ExamConfigEditor",props:{configId:{type:String,required:!0},dialogMode:{type:Boolean,default:!1}},emits:["saved","error","opened","deleted"],data(){return{localConfig:{examName:"",message:"",room:"",examInfos:[]},loading:!1,saving:!1,deleting:!1,deleteDialog:!1,error:"",success:"",isEditMode:!1,showJsonPreview:!1,defaultExamTips:["请保持卷面整洁,字迹清晰,诚信应考。在听到终考铃时立刻起立,停止作答。","沉着 冷静 细心 守记","答题不守记,自己两行泪。"]}},computed:{formattedJson(){try{return JSON.stringify(this.localConfig,null,2)}catch(e){return console.error("格式化JSON时出错:",e),"无效的JSON格式"}},isValidConfig(){return this.localConfig.examName&&this.localConfig.message&&this.localConfig.examInfos&&this.localConfig.examInfos.length>0&&this.localConfig.examInfos.every(e=>e.name&&e.start&&e.end)},validationErrors(){const e=[];if((!this.localConfig.examName||this.localConfig.examName.trim()==="")&&e.push("考试名称不能为空"),(!this.localConfig.message||this.localConfig.message.trim()==="")&&e.push("考试提示不能为空"),!this.localConfig.examInfos||this.localConfig.examInfos.length===0)e.push("至少需要添加一个考试科目");else{this.localConfig.examInfos.forEach((t,i)=>{const m=`第${i+1}个科目`;if((!t.name||t.name.trim()==="")&&e.push(`${m}的名称不能为空`),t.start||e.push(`${m}的开始时间不能为空`),t.end||e.push(`${m}的结束时间不能为空`),t.start&&t.end){const o=new Date(t.start),v=new Date(t.end);isNaN(o.getTime())&&e.push(`${m}的开始时间格式不正确`),isNaN(v.getTime())&&e.push(`${m}的结束时间格式不正确`),!isNaN(o.getTime())&&!isNaN(v.getTime())&&(v<=o&&e.push(`${m}的结束时间必须晚于开始时间`),(v-o)/(1e3*60*60)>24&&e.push(`${m}的考试时长不能超过24小时`))}});for(let t=0;tc&&e.push(`第${t+1}个科目与第${i+1}个科目的时间有重叠`)}}}return e},hasValidationErrors(){return this.validationErrors.length>0}},watch:{configId:{immediate:!0,handler(e){e&&this.loadConfig()}}},methods:{async loadConfig(){var e;this.loading=!0,this.error="";try{const t=await ue.loadData(`es_${this.configId}`);t?(this.localConfig={examName:"",message:"",room:"",examInfos:[],...t},Array.isArray(this.localConfig.examInfos)||(this.localConfig.examInfos=[]),this.localConfig.examInfos.forEach(i=>{if(i.start){const m=this.parseDateTime(i.start);i.start=this.formatDateTimeLocal(m),i.startDate=m,i.startTime=this.formatTimeOnly(m),i.startFormatted=this.formatDisplayDateTime(m),i.startDateMenu=!1}if(i.end){const m=this.parseDateTime(i.end);i.end=this.formatDateTimeLocal(m),i.endDate=m,i.endTime=this.formatTimeOnly(m),i.endFormatted=this.formatDisplayDateTime(m),i.endDateMenu=!1}})):(console.error("加载配置失败:",t),this.error="加载配置失败: "+(((e=t.error)==null?void 0:e.message)||"未知错误"),this.$emit("error",this.error))}catch(t){console.error(t),this.error="加载配置失败: "+t.message,this.$emit("error",this.error)}finally{this.loading=!1}},async saveConfig(){var e;if(!this.isValidConfig){const t=this.validationErrors;return t.length>0?this.error=`配置验证失败:${t.join(";")}`:this.error="请填写完整的配置信息",!1}this.saving=!0,this.error="";try{const t={...this.localConfig,examInfos:this.localConfig.examInfos.map(m=>({...m,start:this.formatDisplayDateTime(m.start),end:this.formatDisplayDateTime(m.end)}))},i=await ue.saveData(`es_${this.configId}`,t);return i?(this.success="配置保存成功",this.$emit("saved",t),!0):(this.error="保存配置失败: "+(((e=i.error)==null?void 0:e.message)||"未知错误"),this.$emit("error",this.error),!1)}catch(t){return this.error="保存配置失败: "+t,this.$emit("error",this.error),!1}finally{this.saving=!1}},addExamInfo(){const e=new Date,t=new Date(e.getTime()+60*60*1e3),i=new Date(t.getTime()+2*60*60*1e3),m={name:"新科目",start:this.formatDateTimeLocal(t),end:this.formatDateTimeLocal(i),startDate:t,startTime:this.formatTimeOnly(t),startFormatted:this.formatDisplayDateTime(t),startDateMenu:!1,endDate:i,endTime:this.formatTimeOnly(i),endFormatted:this.formatDisplayDateTime(i),endDateMenu:!1};this.localConfig.examInfos.push(m)},removeExamInfo(e){this.localConfig.examInfos.splice(e,1)},moveExamInfo(e,t){const i=e+t;if(i>=0&&io.id!==this.configId);if(!await ue.saveData("es_list",i))throw new Error("更新云端列表失败");this.deleteDialog=!1,this.$emit("deleted",{success:!0,message:"配置删除成功",configId:this.configId})}catch(e){console.error("删除配置失败:",e),this.$emit("deleted",{success:!1,message:"删除失败: "+e.message})}finally{this.deleting=!1}}}},_t={class:"d-flex align-center"},Tt={class:"d-flex align-center"},St={key:4,class:"d-flex justify-space-between align-center mb-4"},Mt={class:"d-flex align-center gap-2"},Nt={key:5},It={class:"mb-8"},Pt={class:"text-h3 font-weight-bold",style:{"line-height":"1.2"}},Et={class:"text-subtitle-1 text-grey",style:{"white-space":"pre-wrap","line-height":"1.8"}},Ut={key:0,class:"mb-8"},Ft={class:"d-flex align-center"},At={class:""},Bt={class:"mb-3"},Ht={class:"d-flex align-center mb-1"},zt={class:"text-h6 font-weight-medium text-success"},Lt={class:"d-flex align-center mb-1"},Rt={class:"text-h6 font-weight-medium text-error"},Jt={key:1,class:"text-center py-12"},Ot={class:"json-preview"},jt={key:6},Kt={class:"text-caption text-medium-emphasis ml-2"},$t={class:"w-100"},qt={key:1,class:"text-center py-8"};function Yt(e,t,i,m,o,v){return C(),z("div",null,[o.error?(C(),P(Ce,{key:0,border:"start",class:"mb-4 mt-3 mx-2",closable:"",type:"error",variant:"tonal","onClick:close":t[0]||(t[0]=n=>o.error="")},{default:a(()=>[g("div",_t,[l(_,{class:"mr-2"},{default:a(()=>[...t[9]||(t[9]=[f("mdi-alert-circle",-1)])]),_:1}),f(" "+A(o.error),1)])]),_:1})):F("",!0),o.success?(C(),P(Ce,{key:1,border:"start",class:"mb-4 mt-3 mx-2",closable:"",type:"success",variant:"tonal","onClick:close":t[1]||(t[1]=n=>o.success="")},{default:a(()=>[g("div",Tt,[l(_,{class:"mr-2"},{default:a(()=>[...t[10]||(t[10]=[f("mdi-check-circle",-1)])]),_:1}),f(" "+A(o.success),1)])]),_:1})):F("",!0),v.hasValidationErrors&&!o.loading?(C(),P(Ce,{key:2,border:"start",class:"mb-4 mt-3 mx-2",type:"warning",variant:"tonal"},{default:a(()=>[t[12]||(t[12]=g("div",{class:"d-flex align-center"},[g("span",{class:"font-weight-bold"},"配置验证失败,请检查以下问题:")],-1)),l(Fe,{class:"bg-transparent",density:"compact"},{default:a(()=>[(C(!0),z(he,null,ye(v.validationErrors,(n,c)=>(C(),P(Ae,{key:c,class:"px-0 py-0"},{prepend:a(()=>[l(_,{color:"warning",size:"small"},{default:a(()=>[...t[11]||(t[11]=[f("mdi-circle-small",-1)])]),_:1})]),default:a(()=>[l(it,{class:"text-body-2"},{default:a(()=>[f(A(n),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):F("",!0),o.loading?(C(),P($,{key:3,class:"my-4",outlined:""},{default:a(()=>[l(Z,null,{default:a(()=>[l(ft,{class:"mx-auto",type:"article"})]),_:1})]),_:1})):F("",!0),o.loading?F("",!0):(C(),z("div",St,[g("div",Mt,[l(D,{disabled:!v.isValidConfig,class:"mr-2 text-none",color:"success","prepend-icon":"mdi-open-in-new",variant:"elevated",onClick:v.openConfig},{default:a(()=>[...t[13]||(t[13]=[f(" 打开 ExamSchedule ",-1)])]),_:1},8,["disabled","onClick"]),v.isValidConfig?F("",!0):(C(),P(vt,{key:0,activator:"parent",location:"bottom"},{default:a(()=>[...t[14]||(t[14]=[g("span",null,"请先完善配置信息后再打开",-1)])]),_:1}))]),l(rt,{modelValue:o.isEditMode,"onUpdate:modelValue":t[2]||(t[2]=n=>o.isEditMode=n),color:"primary",divided:"",variant:"outlined"},{default:a(()=>[l(D,{class:"text-error","prepend-icon":"mdi-delete",onClick:v.confirmDelete},{default:a(()=>[...t[15]||(t[15]=[f(" 删除配置 ",-1)])]),_:1},8,["onClick"]),l(D,{value:!1,"prepend-icon":"mdi-eye"},{default:a(()=>[...t[16]||(t[16]=[f(" 预览",-1)])]),_:1}),l(D,{value:!0,"prepend-icon":"mdi-pencil"},{default:a(()=>[...t[17]||(t[17]=[f(" 编辑",-1)])]),_:1})]),_:1},8,["modelValue"])])),!o.loading&&!o.isEditMode?(C(),z("div",Nt,[g("div",It,[g("div",Pt,A(o.localConfig.examName||"未设置考试名称"),1),g("div",Et,A(o.localConfig.message||"未设置考试提示"),1),o.localConfig.room?(C(),P(Be,{key:0,class:"px-4 py-2",size:"large"},{default:a(()=>[l(_,{start:""},{default:a(()=>[...t[18]||(t[18]=[f("mdi-home",-1)])]),_:1}),f(" 考场:"+A(o.localConfig.room),1)]),_:1})):F("",!0)]),o.localConfig.examInfos&&o.localConfig.examInfos.length>0?(C(),z("div",Ut,[l(me,null,{default:a(()=>[(C(!0),z(he,null,ye(o.localConfig.examInfos,(n,c)=>(C(),P(L,{key:c,cols:"12",lg:"4",md:"6"},{default:a(()=>[l($,{class:"h-100",hover:"",variant:"tonal"},{default:a(()=>[l(le,{class:"bg-primary-lighten-5 pa-4"},{default:a(()=>[g("div",Ft,[l(_,{class:"mr-2"},{default:a(()=>[...t[19]||(t[19]=[f("mdi-book-open-page-variant",-1)])]),_:1}),g("span",At,A(n.name||"未设置科目"),1)])]),_:2},1024),l(Z,{class:"pa-4"},{default:a(()=>[g("div",Bt,[g("div",Ht,[l(_,{class:"mr-2",color:"success",size:"small"},{default:a(()=>[...t[20]||(t[20]=[f("mdi-clock-start ",-1)])]),_:1}),t[21]||(t[21]=g("span",{class:"text-body-2 text-grey-darken-1"},"开始时间",-1))]),g("div",zt,A(n.startFormatted||n.start||"未设置"),1)]),g("div",null,[g("div",Lt,[l(_,{class:"mr-2",color:"error",size:"small"},{default:a(()=>[...t[22]||(t[22]=[f("mdi-clock-end ",-1)])]),_:1}),t[23]||(t[23]=g("span",{class:"text-body-2 text-grey-darken-1"},"结束时间",-1))]),g("div",Rt,A(n.endFormatted||n.end||"未设置"),1)])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})])):(C(),z("div",Jt,[l(_,{class:"mb-4",color:"grey-lighten-2",size:"80"},{default:a(()=>[...t[24]||(t[24]=[f(" mdi-calendar-blank ",-1)])]),_:1}),t[27]||(t[27]=g("div",{class:"text-h5 text-grey-darken-1 mb-2"},"暂无考试科目安排",-1)),t[28]||(t[28]=g("div",{class:"text-body-1 text-grey mb-4"},' 点击上方"添加科目"按钮开始配置考试时间表 ',-1)),l(D,{color:"primary",variant:"outlined",onClick:v.quickEdit},{default:a(()=>[l(_,{start:""},{default:a(()=>[...t[25]||(t[25]=[f("mdi-plus",-1)])]),_:1}),t[26]||(t[26]=f(" 立即添加 ",-1))]),_:1},8,["onClick"])])),l($,{border:"",class:"mb-4",elevation:"2"},{default:a(()=>[l(le,{class:"d-flex align-center text-white cursor-pointer",onClick:t[3]||(t[3]=n=>o.showJsonPreview=!o.showJsonPreview)},{default:a(()=>[l(_,{class:"mr-2"},{default:a(()=>[...t[29]||(t[29]=[f("mdi-code-json",-1)])]),_:1}),t[31]||(t[31]=f(" JSON配置预览 ",-1)),l(de),l(D,{color:"white","prepend-icon":"mdi-content-copy",size:"small",variant:"outlined",onClick:st(v.copyToClipboard,["stop"])},{default:a(()=>[...t[30]||(t[30]=[f(" 复制 ",-1)])]),_:1},8,["onClick"]),l(D,{icon:o.showJsonPreview?"mdi-chevron-up":"mdi-chevron-down",class:"ml-2",color:"white",size:"small",variant:"text"},null,8,["icon"])]),_:1}),l(ut,null,{default:a(()=>[dt(l(Z,{class:"pa-4"},{default:a(()=>[l($,{class:"pa-4",variant:"tonal"},{default:a(()=>[g("pre",Ot,[g("code",null,A(v.formattedJson),1)])]),_:1})]),_:1},512),[[mt,o.showJsonPreview]])]),_:1})]),_:1})])):F("",!0),!o.loading&&o.isEditMode?(C(),z("div",jt,[l($,{border:"",class:"mb-4",elevation:"1"},{default:a(()=>[l(le,{class:"d-flex align-center"},{default:a(()=>[l(_,{class:"mr-2"},{default:a(()=>[...t[32]||(t[32]=[f("mdi-information",-1)])]),_:1}),t[33]||(t[33]=f(" 基本信息 ",-1))]),_:1}),l(Z,{class:"pa-4"},{default:a(()=>[l(me,null,{default:a(()=>[l(L,{cols:"12",md:"6"},{default:a(()=>[l(ie,{modelValue:o.localConfig.examName,"onUpdate:modelValue":t[4]||(t[4]=n=>o.localConfig.examName=n),rules:[n=>!!n||"考试名称不能为空"],label:"考试名称","prepend-inner-icon":"mdi-calendar-text",required:"",variant:"outlined"},null,8,["modelValue","rules"])]),_:1}),l(L,{cols:"12",md:"6"},{default:a(()=>[l(ie,{modelValue:o.localConfig.room,"onUpdate:modelValue":t[5]||(t[5]=n=>o.localConfig.room=n),label:"考场号(标准ES尚不支持此配置)","prepend-inner-icon":"mdi-home",variant:"outlined"},null,8,["modelValue"])]),_:1})]),_:1}),l(ht,{modelValue:o.localConfig.message,"onUpdate:modelValue":t[6]||(t[6]=n=>o.localConfig.message=n),label:"考试提示",placeholder:"输入考试相关的提示信息...","prepend-inner-icon":"mdi-message-text",rows:"3",variant:"outlined"},null,8,["modelValue"]),!o.localConfig.message||o.localConfig.message.trim()===""?(C(),P(gt,{key:0,class:"mt-2",column:""},{default:a(()=>[(C(!0),z(he,null,ye(o.defaultExamTips,(n,c)=>(C(),P(Be,{key:c,class:"ma-1",color:"primary",size:"small",variant:"outlined",onClick:r=>v.selectDefaultTip(n)},{default:a(()=>[l(_,{size:"small",start:""},{default:a(()=>[...t[34]||(t[34]=[f("mdi-plus",-1)])]),_:1}),f(" "+A(n),1)]),_:2},1032,["onClick"]))),128))]),_:1})):F("",!0),g("div",Kt,[l(_,{class:"mr-1",size:"small"},{default:a(()=>[...t[35]||(t[35]=[f("mdi-lightbulb-outline",-1)])]),_:1}),t[36]||(t[36]=f(" 点击上方选项快速添加常用考试提示 ",-1))])]),_:1})]),_:1}),l($,{border:"",class:"mb-4",elevation:"1"},{default:a(()=>[l(le,{class:"d-flex align-center"},{default:a(()=>[l(_,{class:"mr-2"},{default:a(()=>[...t[37]||(t[37]=[f("mdi-format-list-bulleted",-1)])]),_:1}),t[39]||(t[39]=f(" 考试科目安排 ",-1)),l(de),l(D,{color:"primary","prepend-icon":"mdi-plus",size:"small",onClick:v.addExamInfo},{default:a(()=>[...t[38]||(t[38]=[f(" 添加科目 ",-1)])]),_:1},8,["onClick"])]),_:1}),l(Z,{class:"pa-0"},{default:a(()=>[o.localConfig.examInfos&&o.localConfig.examInfos.length>0?(C(),P(Fe,{key:0},{default:a(()=>[(C(!0),z(he,null,ye(o.localConfig.examInfos,(n,c)=>(C(),P(Ae,{key:c,class:"border-b pa-4"},{default:a(()=>[g("div",$t,[l(me,null,{default:a(()=>[l(L,{cols:"12",md:"4"},{default:a(()=>[l(ie,{modelValue:n.name,"onUpdate:modelValue":r=>n.name=r,rules:[r=>!!r||"科目名称不能为空"],density:"comfortable",label:"科目名称","prepend-inner-icon":"mdi-book",variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","rules"])]),_:2},1024),l(L,{cols:"12",md:"3"},{default:a(()=>[l(He,{modelValue:n.startDateMenu,"onUpdate:modelValue":r=>n.startDateMenu=r,"close-on-content-click":!1,"min-width":"auto","offset-y":"",transition:"scale-transition"},{activator:a(({props:r})=>[l(ie,se({modelValue:n.startFormatted,"onUpdate:modelValue":k=>n.startFormatted=k,rules:[k=>!!k||"开始时间不能为空"],density:"comfortable",label:"开始时间","prepend-inner-icon":"mdi-clock-start",readonly:""},{ref_for:!0},r,{variant:"outlined"}),null,16,["modelValue","onUpdate:modelValue","rules"])]),default:a(()=>[l($,{"min-width":"600"},{default:a(()=>[l(le,{class:"text-center py-2"},{default:a(()=>[...t[40]||(t[40]=[f(" 选择开始时间 ",-1)])]),_:1}),l(Z,{class:"pa-0"},{default:a(()=>[l(me,{"no-gutters":""},{default:a(()=>[l(L,{class:"border-e",cols:"6"},{default:a(()=>[l(Le,{modelValue:n.startDate,"onUpdate:modelValue":[r=>n.startDate=r,r=>v.updateStartDateTime(c)],color:"primary",elevation:"0",locale:"zh-cn","show-adjacent-months":""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(L,{cols:"6"},{default:a(()=>[l(je,{modelValue:n.startTime,"onUpdate:modelValue":[r=>n.startTime=r,r=>v.updateStartDateTime(c)],color:"primary",elevation:"0",format:"24hr",scrollable:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024),l(be,null,{default:a(()=>[l(de),l(D,{color:"grey",variant:"text",onClick:r=>n.startDateMenu=!1},{default:a(()=>[...t[41]||(t[41]=[f(" 取消 ",-1)])]),_:1},8,["onClick"]),l(D,{color:"primary",variant:"text",onClick:r=>n.startDateMenu=!1},{default:a(()=>[...t[42]||(t[42]=[f(" 确定 ",-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(L,{cols:"12",md:"3"},{default:a(()=>[l(He,{modelValue:n.endDateMenu,"onUpdate:modelValue":r=>n.endDateMenu=r,"close-on-content-click":!1,"min-width":"auto","offset-y":"",transition:"scale-transition"},{activator:a(({props:r})=>[l(ie,se({modelValue:n.endFormatted,"onUpdate:modelValue":k=>n.endFormatted=k,rules:[k=>!!k||"结束时间不能为空"],density:"comfortable",label:"结束时间","prepend-inner-icon":"mdi-clock-end",readonly:""},{ref_for:!0},r,{variant:"outlined"}),null,16,["modelValue","onUpdate:modelValue","rules"])]),default:a(()=>[l($,{"min-width":"600"},{default:a(()=>[l(le,{class:"text-center py-2"},{default:a(()=>[...t[43]||(t[43]=[f(" 选择结束时间 ",-1)])]),_:1}),l(Z,{class:"pa-0"},{default:a(()=>[l(me,{"no-gutters":""},{default:a(()=>[l(L,{class:"border-e",cols:"6"},{default:a(()=>[l(Le,{modelValue:n.endDate,"onUpdate:modelValue":[r=>n.endDate=r,r=>v.updateEndDateTime(c)],color:"primary",elevation:"0",locale:"zh-cn","show-adjacent-months":""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(L,{cols:"6"},{default:a(()=>[l(je,{modelValue:n.endTime,"onUpdate:modelValue":[r=>n.endTime=r,r=>v.updateEndDateTime(c)],color:"primary",elevation:"0",format:"24hr",scrollable:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024),l(be,null,{default:a(()=>[l(de),l(D,{color:"grey",variant:"text",onClick:r=>n.endDateMenu=!1},{default:a(()=>[...t[44]||(t[44]=[f(" 取消 ",-1)])]),_:1},8,["onClick"]),l(D,{color:"primary",variant:"text",onClick:r=>n.endDateMenu=!1},{default:a(()=>[...t[45]||(t[45]=[f(" 确定 ",-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(L,{class:"d-flex align-center",cols:"12",md:"2"},{default:a(()=>[l(D,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:r=>v.removeExamInfo(c)},{default:a(()=>[l(_,null,{default:a(()=>[...t[46]||(t[46]=[f("mdi-delete",-1)])]),_:1})]),_:1},8,["onClick"]),c>0?(C(),P(D,{key:0,color:"primary",icon:"mdi-arrow-up",size:"small",variant:"text",onClick:r=>v.moveExamInfo(c,-1)},{default:a(()=>[l(_,null,{default:a(()=>[...t[47]||(t[47]=[f("mdi-arrow-up",-1)])]),_:1})]),_:1},8,["onClick"])):F("",!0),cv.moveExamInfo(c,1)},{default:a(()=>[l(_,null,{default:a(()=>[...t[48]||(t[48]=[f("mdi-arrow-down",-1)])]),_:1})]),_:1},8,["onClick"])):F("",!0)]),_:2},1024)]),_:2},1024)])]),_:2},1024))),128))]),_:1})):(C(),z("div",qt,[l(_,{class:"mb-2",color:"grey-lighten-1",size:"48"},{default:a(()=>[...t[49]||(t[49]=[f(" mdi-book-plus ",-1)])]),_:1}),t[51]||(t[51]=g("p",{class:"text-body-2 text-grey-darken-1 mb-4"},' 暂无考试科目,点击"添加科目"按钮开始添加 ',-1)),l(D,{color:"primary","prepend-icon":"mdi-plus",onClick:v.addExamInfo},{default:a(()=>[...t[50]||(t[50]=[f(" 添加科目 ",-1)])]),_:1},8,["onClick"])]))]),_:1})]),_:1})])):F("",!0),l(ct,{modelValue:o.deleteDialog,"onUpdate:modelValue":t[8]||(t[8]=n=>o.deleteDialog=n),"max-width":"400"},{default:a(()=>[l($,null,{default:a(()=>[l(le,{class:"d-flex align-center"},{default:a(()=>[l(_,{class:"mr-2",color:"error"},{default:a(()=>[...t[52]||(t[52]=[f("mdi-delete-alert",-1)])]),_:1}),t[53]||(t[53]=f(" 确认删除配置 ",-1))]),_:1}),l(Z,null,{default:a(()=>[t[54]||(t[54]=f(" 确定要删除配置 ",-1)),g("strong",null,A(o.localConfig.examName||`配置 ${i.configId}`),1),t[55]||(t[55]=f(" 吗? ",-1)),t[56]||(t[56]=g("br",null,null,-1)),t[57]||(t[57]=g("small",{class:"text-grey"},"此操作不可撤销,将会删除所有相关数据",-1))]),_:1}),l(be,null,{default:a(()=>[l(de),l(D,{color:"grey",variant:"text",onClick:t[7]||(t[7]=n=>o.deleteDialog=!1)},{default:a(()=>[...t[58]||(t[58]=[f(" 取消 ",-1)])]),_:1}),l(D,{loading:o.deleting,color:"error",variant:"outlined",onClick:v.deleteConfig},{default:a(()=>[...t[59]||(t[59]=[f(" 删除 ",-1)])]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const il=ot(Dt,[["render",Yt],["__scopeId","data-v-f5f81ffa"]]);export{il as _}; diff --git a/assets/VAlert-BYrhoEr8.js b/assets/VAlert-CB2ovGuT.js similarity index 67% rename from assets/VAlert-BYrhoEr8.js rename to assets/VAlert-CB2ovGuT.js index 347e5fe..8056b60 100644 --- a/assets/VAlert-BYrhoEr8.js +++ b/assets/VAlert-CB2ovGuT.js @@ -1 +1 @@ -import{aP as E,p as P,a5 as M,g as N,a3 as O,ay as y,bl as R,cn as j,aF as J,u as Z,bk as p,be as q,cd as G,bc as H,a2 as K,Z as Q,d as l,co as U,i as s,n as f,e as b,v as W,E as S,ac as k,y as X,c7 as Y,bh as ee,m as ae,bi as te,ce as le,bj as ne,bm as se,f as oe,aJ as ie,h as ce,aO as re}from"./index-BBVdlVQD.js";const ue=E("v-alert-title"),de=P({iconSize:[Number,String],iconSizes:{type:Array,default:()=>[["x-small",10],["small",16],["default",24],["large",28],["x-large",32]]}},"iconSize");function ve(e,o){return{iconSize:M(()=>{const a=new Map(e.iconSizes),t=e.iconSize??o()??"default";return a.has(t)?a.get(t):t})}}const me=["success","info","warning","error"],ye=P({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:re,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>me.includes(e)},...ce(),...ie(),...oe(),...se(),...de(),...ne(),...le(),...te(),...ae(),...ee(),...Y({variant:"flat"})},"VAlert"),be=N()({name:"VAlert",props:ye(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,o){let{emit:r,slots:a}=o;const t=O(e,"modelValue"),i=y(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),{iconSize:V}=ve(e,()=>e.prominent?44:void 0),{themeClasses:g}=R(e),{colorClasses:z,colorStyles:C,variantClasses:x}=j(()=>({color:e.color??e.type,variant:e.variant})),{densityClasses:_}=J(e),{dimensionStyles:h}=Z(e),{elevationClasses:B}=p(e),{locationStyles:I}=q(e),{positionClasses:A}=G(e),{roundedClasses:T}=H(e),{textColorClasses:D,textColorStyles:L}=K(()=>e.borderColor),{t:$}=Q(),u=y(()=>({"aria-label":$(e.closeLabel),onClick(c){t.value=!1,r("click:close",c)}}));return()=>{const c=!!(a.prepend||i.value),F=!!(a.title||e.title),w=!!(a.close||e.closable),d={density:e.density,icon:i.value,size:e.iconSize||e.prominent?V.value:void 0};return t.value&&l(e.tag,{class:b(["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},g.value,z.value,_.value,B.value,A.value,T.value,x.value,e.class]),style:f([C.value,h.value,I.value,e.style]),role:"alert"},{default:()=>{var v,m;return[U(!1,"v-alert"),e.border&&s("div",{key:"border",class:b(["v-alert__border",D.value]),style:f(L.value)},null),c&&s("div",{key:"prepend",class:"v-alert__prepend"},[a.prepend?l(k,{key:"prepend-defaults",disabled:!i.value,defaults:{VIcon:{...d}}},a.prepend):l(W,S({key:"prepend-icon"},d),null)]),s("div",{class:"v-alert__content"},[F&&l(ue,{key:"title"},{default:()=>{var n;return[((n=a.title)==null?void 0:n.call(a))??e.title]}}),((v=a.text)==null?void 0:v.call(a))??e.text,(m=a.default)==null?void 0:m.call(a)]),a.append&&s("div",{key:"append",class:"v-alert__append"},[a.append()]),w&&s("div",{key:"close",class:"v-alert__close"},[a.close?l(k,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var n;return[(n=a.close)==null?void 0:n.call(a,{props:u.value})]}}):l(X,S({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},u.value),null)])]}})}}});export{be as V,ue as a}; +import{aN as w,p as P,a5 as E,g as M,a3 as R,ay as y,bl as j,co as O,aF as p,u as J,bk as Z,be as q,ce as G,bc as H,a2 as K,Z as Q,d as l,cp as U,i as s,n as f,e as b,v as W,E as S,ac as k,y as X,c8 as Y,bh as ee,m as ae,bi as te,cf as le,bj as ne,bm as se,f as oe,aJ as ie,h as ce,a$ as re}from"./index-GyS8nTIx.js";const ue=w("v-alert-title"),de=P({iconSize:[Number,String],iconSizes:{type:Array,default:()=>[["x-small",10],["small",16],["default",24],["large",28],["x-large",32]]}},"iconSize");function ve(e,o){return{iconSize:E(()=>{const a=new Map(e.iconSizes),t=e.iconSize??o()??"default";return a.has(t)?a.get(t):t})}}const me=["success","info","warning","error"],ye=P({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:re,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>me.includes(e)},...ce(),...ie(),...oe(),...se(),...de(),...ne(),...le(),...te(),...ae(),...ee(),...Y({variant:"flat"})},"VAlert"),be=M()({name:"VAlert",props:ye(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,o){let{emit:r,slots:a}=o;const t=R(e,"modelValue"),i=y(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),{iconSize:V}=ve(e,()=>e.prominent?44:void 0),{themeClasses:g}=j(e),{colorClasses:z,colorStyles:C,variantClasses:x}=O(()=>({color:e.color??e.type,variant:e.variant})),{densityClasses:_}=p(e),{dimensionStyles:h}=J(e),{elevationClasses:B}=Z(e),{locationStyles:I}=q(e),{positionClasses:A}=G(e),{roundedClasses:T}=H(e),{textColorClasses:$,textColorStyles:D}=K(()=>e.borderColor),{t:L}=Q(),u=y(()=>({"aria-label":L(e.closeLabel),onClick(c){t.value=!1,r("click:close",c)}}));return()=>{const c=!!(a.prepend||i.value),F=!!(a.title||e.title),N=!!(a.close||e.closable),d={density:e.density,icon:i.value,size:e.iconSize||e.prominent?V.value:void 0};return t.value&&l(e.tag,{class:b(["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},g.value,z.value,_.value,B.value,A.value,T.value,x.value,e.class]),style:f([C.value,h.value,I.value,e.style]),role:"alert"},{default:()=>{var v,m;return[U(!1,"v-alert"),e.border&&s("div",{key:"border",class:b(["v-alert__border",$.value]),style:f(D.value)},null),c&&s("div",{key:"prepend",class:"v-alert__prepend"},[a.prepend?l(k,{key:"prepend-defaults",disabled:!i.value,defaults:{VIcon:{...d}}},a.prepend):l(W,S({key:"prepend-icon"},d),null)]),s("div",{class:"v-alert__content"},[F&&l(ue,{key:"title"},{default:()=>{var n;return[((n=a.title)==null?void 0:n.call(a))??e.title]}}),((v=a.text)==null?void 0:v.call(a))??e.text,(m=a.default)==null?void 0:m.call(a)]),a.append&&s("div",{key:"append",class:"v-alert__append"},[a.append()]),N&&s("div",{key:"close",class:"v-alert__close"},[a.close?l(k,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var n;return[(n=a.close)==null?void 0:n.call(a,{props:u.value})]}}):l(X,S({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},u.value),null)])]}})}}});export{be as V,ue as a}; diff --git a/assets/VAppBarTitle-QQJ8OMzH.js b/assets/VAppBarTitle-CUv9Ys4F.js similarity index 74% rename from assets/VAppBarTitle-QQJ8OMzH.js rename to assets/VAppBarTitle-CUv9Ys4F.js index 17d1b3a..3c29055 100644 --- a/assets/VAppBarTitle-QQJ8OMzH.js +++ b/assets/VAppBarTitle-CUv9Ys4F.js @@ -1 +1 @@ -import{g as p,p as C,c as I,d as m,i as V,n as R,e as A,m as L,h as z,aB as j,bx as q,bk as O,bc as W,bl as Y,b8 as G,a0 as T,a5 as c,aH as J,at as K,ac as _,aI as H,b0 as Q,bh as X,bi as Z,bm as ee,bE as te,$ as U,a_ as ae,a6 as P,aj as le,aS as oe,a3 as ne,ay as E,bv as se,b5 as re,b as ue,bB as ie,E as D,bC as ce}from"./index-BBVdlVQD.js";const M=C({text:String,...z(),...L()},"VToolbarTitle"),$=p()({name:"VToolbarTitle",props:M(),setup(e,g){let{slots:t}=g;return I(()=>{const d=!!(t.default||t.text||e.text);return m(e.tag,{class:A(["v-toolbar-title",e.class]),style:R(e.style)},{default:()=>{var n;return[d&&V("div",{class:"v-toolbar-title__placeholder"},[t.text?t.text():e.text,(n=t.default)==null?void 0:n.call(t)])]}})}),{}}}),de=[null,"prominent","default","comfortable","compact"],F=C({absolute:Boolean,collapse:Boolean,collapsePosition:{type:String,default:"start"},color:String,density:{type:String,default:"default",validator:e=>de.includes(e)},extended:{type:Boolean,default:null},extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...te(),...z(),...ee(),...Z(),...L({tag:"header"}),...X()},"VToolbar"),N=p()({name:"VToolbar",props:F(),setup(e,g){var h;let{slots:t}=g;const{backgroundColorClasses:d,backgroundColorStyles:n}=j(()=>e.color),{borderClasses:a}=q(e),{elevationClasses:u}=O(e),{roundedClasses:s}=W(e),{themeClasses:f}=Y(e),{rtlClasses:x}=G(),r=T(e.extended===null?!!((h=t.extension)!=null&&h.call(t)):e.extended),i=c(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),y=c(()=>r.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return J({VBtn:{variant:"text"}}),I(()=>{var k;const o=!!(e.title||t.title),v=!!(t.image||e.image),S=(k=t.extension)==null?void 0:k.call(t);return r.value=e.extended===null?!!S:e.extended,m(e.tag,{class:A(["v-toolbar",`v-toolbar--collapse-${e.collapsePosition}`,{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},d.value,a.value,u.value,s.value,f.value,x.value,e.class]),style:R([n.value,e.style])},{default:()=>[v&&V("div",{key:"image",class:"v-toolbar__image"},[t.image?m(_,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},t.image):m(K,{key:"image-img",cover:!0,src:e.image},null)]),m(_,{defaults:{VTabs:{height:H(i.value)}}},{default:()=>{var l,b,B;return[V("div",{class:"v-toolbar__content",style:{height:H(i.value)}},[t.prepend&&V("div",{class:"v-toolbar__prepend"},[(l=t.prepend)==null?void 0:l.call(t)]),o&&m($,{key:"title",text:e.title},{text:t.title}),(b=t.default)==null?void 0:b.call(t),t.append&&V("div",{class:"v-toolbar__append"},[(B=t.append)==null?void 0:B.call(t)])])]}}),m(_,{defaults:{VTabs:{height:H(y.value)}}},{default:()=>[m(Q,null,{default:()=>[r.value&&V("div",{class:"v-toolbar__extension",style:{height:H(y.value)}},[S])]})]})]})}),{contentHeight:i,extensionHeight:y}}}),ve=C({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function me(e){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:t}=g;let d=0,n=0;const a=U(null),u=T(0),s=T(0),f=T(0),x=T(!1),r=T(!1),i=c(()=>Number(e.scrollThreshold)),y=c(()=>ae((i.value-u.value)/i.value||0)),h=()=>{const o=a.value;if(!o||t&&!t.value)return;d=u.value,u.value="window"in o?o.pageYOffset:o.scrollTop;const v=o instanceof Window?document.documentElement.scrollHeight:o.scrollHeight;if(n!==v){n=v;return}r.value=u.value{s.value=s.value||u.value}),P(x,()=>{s.value=0}),le(()=>{P(()=>e.scrollTarget,o=>{var S;const v=o?document.querySelector(o):window;v&&v!==a.value&&((S=a.value)==null||S.removeEventListener("scroll",h),a.value=v,a.value.addEventListener("scroll",h,{passive:!0}))},{immediate:!0})}),oe(()=>{var o;(o=a.value)==null||o.removeEventListener("scroll",h)}),t&&P(t,h,{immediate:!0}),{scrollThreshold:i,currentScroll:u,currentThreshold:f,isScrollActive:x,scrollRatio:y,isScrollingUp:r,savedScroll:s}}const ge=C({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...F(),...ce(),...ve(),height:{type:[Number,String],default:64}},"VAppBar"),fe=p()({name:"VAppBar",props:ge(),emits:{"update:modelValue":e=>!0},setup(e,g){let{slots:t}=g;const d=U(),n=ne(e,"modelValue"),a=c(()=>{var b;const l=new Set(((b=e.scrollBehavior)==null?void 0:b.split(" "))??[]);return{hide:l.has("hide"),fullyHide:l.has("fully-hide"),inverted:l.has("inverted"),collapse:l.has("collapse"),elevate:l.has("elevate"),fadeImage:l.has("fade-image")}}),u=c(()=>{const l=a.value;return l.hide||l.fullyHide||l.inverted||l.collapse||l.elevate||l.fadeImage||!n.value}),{currentScroll:s,scrollThreshold:f,isScrollingUp:x,scrollRatio:r}=me(e,{canScroll:u}),i=E(()=>a.value.hide||a.value.fullyHide),y=c(()=>e.collapse||a.value.collapse&&(a.value.inverted?r.value>0:r.value===0)),h=c(()=>e.flat||a.value.fullyHide&&!n.value||a.value.elevate&&(a.value.inverted?s.value>0:s.value===0)),o=c(()=>a.value.fadeImage?a.value.inverted?1-r.value:r.value:void 0),v=c(()=>{var B,w;if(a.value.hide&&a.value.inverted)return 0;const l=((B=d.value)==null?void 0:B.contentHeight)??0,b=((w=d.value)==null?void 0:w.extensionHeight)??0;return i.value?s.value!!e.scrollBehavior,()=>{re(()=>{i.value?a.value.inverted?n.value=s.value>f.value:n.value=x.value||s.valueparseInt(e.order,10)),position:E(()=>e.location),layoutSize:v,elementSize:T(void 0),active:n,absolute:E(()=>e.absolute)});return I(()=>{const l=N.filterProps(e);return m(N,D({ref:d,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...k.value,"--v-toolbar-image-opacity":o.value,height:void 0,...S.value},e.style]},l,{collapse:y.value,flat:h.value}),t)}),{}}}),be=p()({name:"VAppBarTitle",props:M(),setup(e,g){let{slots:t}=g;return I(()=>m($,D(e,{class:"v-app-bar-title"}),t)),{}}});export{N as V,$ as a,be as b,fe as c}; +import{g as p,p as C,c as I,d as m,i as V,n as R,e as A,m as L,h as z,aB as Y,by as j,bk as q,bc as O,bl as Q,b7 as W,a0 as T,a5 as c,aH as G,at as J,ac as _,aI as H,a_ as K,bh as X,bi as Z,bm as ee,bF as te,$ as D,aY as ae,a6 as P,aj as le,aQ as oe,a3 as ne,ay as w,bw as se,b4 as re,b as ue,bC as ie,E as U,bD as ce}from"./index-GyS8nTIx.js";const F=C({text:String,...z(),...L()},"VToolbarTitle"),M=p()({name:"VToolbarTitle",props:F(),setup(e,g){let{slots:t}=g;return I(()=>{const d=!!(t.default||t.text||e.text);return m(e.tag,{class:A(["v-toolbar-title",e.class]),style:R(e.style)},{default:()=>{var n;return[d&&V("div",{class:"v-toolbar-title__placeholder"},[t.text?t.text():e.text,(n=t.default)==null?void 0:n.call(t)])]}})}),{}}}),de=[null,"prominent","default","comfortable","compact"],$=C({absolute:Boolean,collapse:Boolean,collapsePosition:{type:String,default:"start"},color:String,density:{type:String,default:"default",validator:e=>de.includes(e)},extended:{type:Boolean,default:null},extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...te(),...z(),...ee(),...Z(),...L({tag:"header"}),...X()},"VToolbar"),N=p()({name:"VToolbar",props:$(),setup(e,g){var h;let{slots:t}=g;const{backgroundColorClasses:d,backgroundColorStyles:n}=Y(()=>e.color),{borderClasses:a}=j(e),{elevationClasses:u}=q(e),{roundedClasses:s}=O(e),{themeClasses:f}=Q(e),{rtlClasses:x}=W(),r=T(e.extended===null?!!((h=t.extension)!=null&&h.call(t)):e.extended),i=c(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),y=c(()=>r.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return G({VBtn:{variant:"text"}}),I(()=>{var k;const o=!!(e.title||t.title),v=!!(t.image||e.image),S=(k=t.extension)==null?void 0:k.call(t);return r.value=e.extended===null?!!S:e.extended,m(e.tag,{class:A(["v-toolbar",`v-toolbar--collapse-${e.collapsePosition}`,{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},d.value,a.value,u.value,s.value,f.value,x.value,e.class]),style:R([n.value,e.style])},{default:()=>[v&&V("div",{key:"image",class:"v-toolbar__image"},[t.image?m(_,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},t.image):m(J,{key:"image-img",cover:!0,src:e.image},null)]),m(_,{defaults:{VTabs:{height:H(i.value)}}},{default:()=>{var l,b,B;return[V("div",{class:"v-toolbar__content",style:{height:H(i.value)}},[t.prepend&&V("div",{class:"v-toolbar__prepend"},[(l=t.prepend)==null?void 0:l.call(t)]),o&&m(M,{key:"title",text:e.title},{text:t.title}),(b=t.default)==null?void 0:b.call(t),t.append&&V("div",{class:"v-toolbar__append"},[(B=t.append)==null?void 0:B.call(t)])])]}}),m(_,{defaults:{VTabs:{height:H(y.value)}}},{default:()=>[m(K,null,{default:()=>[r.value&&V("div",{class:"v-toolbar__extension",style:{height:H(y.value)}},[S])]})]})]})}),{contentHeight:i,extensionHeight:y}}}),ve=C({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function me(e){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:t}=g;let d=0,n=0;const a=D(null),u=T(0),s=T(0),f=T(0),x=T(!1),r=T(!1),i=c(()=>Number(e.scrollThreshold)),y=c(()=>ae((i.value-u.value)/i.value||0)),h=()=>{const o=a.value;if(!o||t&&!t.value)return;d=u.value,u.value="window"in o?o.pageYOffset:o.scrollTop;const v=o instanceof Window?document.documentElement.scrollHeight:o.scrollHeight;if(n!==v){n=v;return}r.value=u.value{s.value=s.value||u.value}),P(x,()=>{s.value=0}),le(()=>{P(()=>e.scrollTarget,o=>{var S;const v=o?document.querySelector(o):window;v&&v!==a.value&&((S=a.value)==null||S.removeEventListener("scroll",h),a.value=v,a.value.addEventListener("scroll",h,{passive:!0}))},{immediate:!0})}),oe(()=>{var o;(o=a.value)==null||o.removeEventListener("scroll",h)}),t&&P(t,h,{immediate:!0}),{scrollThreshold:i,currentScroll:u,currentThreshold:f,isScrollActive:x,scrollRatio:y,isScrollingUp:r,savedScroll:s}}const ge=C({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...$(),...ce(),...ve(),height:{type:[Number,String],default:64}},"VAppBar"),fe=p()({name:"VAppBar",props:ge(),emits:{"update:modelValue":e=>!0},setup(e,g){let{slots:t}=g;const d=D(),n=ne(e,"modelValue"),a=c(()=>{var b;const l=new Set(((b=e.scrollBehavior)==null?void 0:b.split(" "))??[]);return{hide:l.has("hide"),fullyHide:l.has("fully-hide"),inverted:l.has("inverted"),collapse:l.has("collapse"),elevate:l.has("elevate"),fadeImage:l.has("fade-image")}}),u=c(()=>{const l=a.value;return l.hide||l.fullyHide||l.inverted||l.collapse||l.elevate||l.fadeImage||!n.value}),{currentScroll:s,scrollThreshold:f,isScrollingUp:x,scrollRatio:r}=me(e,{canScroll:u}),i=w(()=>a.value.hide||a.value.fullyHide),y=c(()=>e.collapse||a.value.collapse&&(a.value.inverted?r.value>0:r.value===0)),h=c(()=>e.flat||a.value.fullyHide&&!n.value||a.value.elevate&&(a.value.inverted?s.value>0:s.value===0)),o=c(()=>a.value.fadeImage?a.value.inverted?1-r.value:r.value:void 0),v=c(()=>{var B,E;if(a.value.hide&&a.value.inverted)return 0;const l=((B=d.value)==null?void 0:B.contentHeight)??0,b=((E=d.value)==null?void 0:E.extensionHeight)??0;return i.value?s.value!!e.scrollBehavior,()=>{re(()=>{i.value?a.value.inverted?n.value=s.value>f.value:n.value=x.value||s.valueparseInt(e.order,10)),position:w(()=>e.location),layoutSize:v,elementSize:T(void 0),active:n,absolute:w(()=>e.absolute)});return I(()=>{const l=N.filterProps(e);return m(N,U({ref:d,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...k.value,"--v-toolbar-image-opacity":o.value,height:void 0,...S.value},e.style]},l,{collapse:y.value,flat:h.value}),t)}),{}}}),be=p()({name:"VAppBarTitle",props:F(),setup(e,g){let{slots:t}=g;return I(()=>m(M,U(e,{class:"v-app-bar-title"}),t)),{}}});export{N as V,M as a,be as b,fe as c}; diff --git a/assets/VBadge-H7ndD91w.js b/assets/VBadge-Dfdn66Fe.js similarity index 74% rename from assets/VBadge-H7ndD91w.js rename to assets/VBadge-Dfdn66Fe.js index 581fd50..a53ff50 100644 --- a/assets/VBadge-H7ndD91w.js +++ b/assets/VBadge-Dfdn66Fe.js @@ -1 +1 @@ -import{g as N,p as x,a3 as I,aG as O,aN as R,ay as C,$ as w,a5 as S,E as m,c as T,au as k,d as g,ad as A,ae as F,bb as $,aB as D,bc as L,Z as G,a2 as M,bd as W,be as X,u as Y,bf as j,i as B,b1 as E,I as H,J,v as U,f as Z,bg as _,bh as q,m as z,bi as K,bj as Q,h as p,aO as ee}from"./index-BBVdlVQD.js";const te=x({id:String,interactive:Boolean,text:String,...F($({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","retainFocus","captureFocus","disableInitialFocus","persistent"])},"VTooltip"),ne=N()({name:"VTooltip",props:te(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:n}=o;const l=I(e,"modelValue"),{scopeId:v}=O(),b=R(),r=C(()=>e.id||`v-tooltip-${b}`),u=w(),f=S(()=>e.location.split(" ").length>1?e.location:e.location+" center"),V=S(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),y=C(()=>e.transition!=null?e.transition:l.value?"scale-transition":"fade-transition"),t=S(()=>m({"aria-describedby":r.value},e.activatorProps));return T(()=>{const c=k.filterProps(e);return g(k,m({ref:u,class:["v-tooltip",{"v-tooltip--interactive":e.interactive},e.class],style:e.style,id:r.value},c,{modelValue:l.value,"onUpdate:modelValue":i=>l.value=i,transition:y.value,absolute:!0,location:f.value,origin:V.value,persistent:!0,role:"tooltip",activatorProps:t.value,_disableGlobalStack:!0},v),{activator:n.activator,default:function(){var s;for(var i=arguments.length,d=new Array(i),a=0;ae.color),{roundedClasses:v}=L(e),{t:b}=G(),{textColorClasses:r,textColorStyles:u}=M(()=>e.textColor),{themeClasses:f}=W(),{locationStyles:V}=X(e,!0,t=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(t)?Number(e.offsetY??0):["left","right"].includes(t)?Number(e.offsetX??0):0)),{dimensionStyles:y}=Y(e);return T(()=>{const t=Number(e.content),c=!e.max||isNaN(t)?e.content:t<=Number(e.max)?t:`${e.max}+`,[i,d]=j(o.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return g(e.tag,m({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},d,{style:e.style}),{default:()=>{var a,s;return[B("div",{class:"v-badge__wrapper"},[(s=(a=o.slots).default)==null?void 0:s.call(a),g(E,{transition:e.transition},{default:()=>{var P,h;return[H(B("span",m({class:["v-badge__badge",f.value,n.value,v.value,r.value],style:[l.value,u.value,y.value,e.inline?{}:V.value],"aria-atomic":"true","aria-label":b(e.label,t),"aria-live":"polite",role:"status"},i),[e.dot?void 0:o.slots.badge?(h=(P=o.slots).badge)==null?void 0:h.call(P):e.icon?g(U,{icon:e.icon},null):c]),[[J,e.modelValue]])]}})])]}})}),{}}});export{ne as V,ie as a}; +import{g as N,p as x,a3 as I,aG as R,ba as w,ay as C,$ as O,a5 as S,E as b,c as T,au as k,d as g,ad as $,ae as A,bb as F,aB as D,bc as L,Z as G,a2 as M,bd as W,be as X,u as Y,bf as j,i as B,b0 as E,I as H,J,v as U,f as Z,bg as _,bh as q,m as z,bi as K,bj as Q,h as p,a$ as ee}from"./index-GyS8nTIx.js";const te=x({id:String,interactive:Boolean,text:String,...A(F({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","retainFocus","captureFocus","disableInitialFocus","persistent"])},"VTooltip"),ne=N()({name:"VTooltip",props:te(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:n}=o;const l=I(e,"modelValue"),{scopeId:m}=R(),v=w(),r=C(()=>e.id||`v-tooltip-${v}`),u=O(),f=S(()=>e.location.split(" ").length>1?e.location:e.location+" center"),V=S(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),y=C(()=>e.transition!=null?e.transition:l.value?"scale-transition":"fade-transition"),t=S(()=>b({"aria-describedby":r.value},e.activatorProps));return T(()=>{const c=k.filterProps(e);return g(k,b({ref:u,class:["v-tooltip",{"v-tooltip--interactive":e.interactive},e.class],style:e.style,id:r.value},c,{modelValue:l.value,"onUpdate:modelValue":i=>l.value=i,transition:y.value,absolute:!0,location:f.value,origin:V.value,persistent:!0,role:"tooltip",activatorProps:t.value,_disableGlobalStack:!0},m),{activator:n.activator,default:function(){var s;for(var i=arguments.length,d=new Array(i),a=0;ae.color),{roundedClasses:m}=L(e),{t:v}=G(),{textColorClasses:r,textColorStyles:u}=M(()=>e.textColor),{themeClasses:f}=W(),{locationStyles:V}=X(e,!0,t=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(t)?Number(e.offsetY??0):["left","right"].includes(t)?Number(e.offsetX??0):0)),{dimensionStyles:y}=Y(e);return T(()=>{const t=Number(e.content),c=!e.max||isNaN(t)?e.content:t<=Number(e.max)?t:`${e.max}+`,[i,d]=j(o.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return g(e.tag,b({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},d,{style:e.style}),{default:()=>{var a,s;return[B("div",{class:"v-badge__wrapper"},[(s=(a=o.slots).default)==null?void 0:s.call(a),g(E,{transition:e.transition},{default:()=>{var P,h;return[H(B("span",b({class:["v-badge__badge",f.value,n.value,m.value,r.value],style:[l.value,u.value,y.value,e.inline?{}:V.value],"aria-atomic":"true","aria-label":v(e.label,t),"aria-live":"polite",role:"status"},i),[e.dot?void 0:o.slots.badge?(h=(P=o.slots).badge)==null?void 0:h.call(P):e.icon?g(U,{icon:e.icon},null):c]),[[J,e.modelValue]])]}})])]}})}),{}}});export{ne as V,ie as a}; diff --git a/assets/VCheckbox-BaW9yLIL.js b/assets/VCheckbox-BaW9yLIL.js deleted file mode 100644 index 88a51eb..0000000 --- a/assets/VCheckbox-BaW9yLIL.js +++ /dev/null @@ -1 +0,0 @@ -import{V as r,m as g}from"./VCheckboxBtn-CtaD8oYU.js";import{a as A,b as l,f as F}from"./VTextField-C-Z2P35g.js";import{g as R,p as B,a3 as N,$ as U,aN as $,c as w,az as z,d as u,E as d,ad as D,ae as E}from"./index-BBVdlVQD.js";const M=B({...F(),...E(g(),["inline"])},"VCheckbox"),H=R()({name:"VCheckbox",inheritAttrs:!1,props:M(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,c){let{attrs:n,slots:o}=c;const s=N(e,"modelValue"),{isFocused:i,focus:m,blur:f}=A(e),t=U(),V=$();return w(()=>{const[p,b]=z(n),k=l.filterProps(e),v=r.filterProps(e);return u(l,d({ref:t,class:["v-checkbox",e.class]},p,k,{modelValue:s.value,"onUpdate:modelValue":a=>s.value=a,id:e.id||`checkbox-${V}`,focused:i.value,style:e.style}),{...o,default:a=>{let{id:x,messagesId:h,isDisabled:P,isReadonly:C,isValid:y}=a;return u(r,d(v,{id:x.value,"aria-describedby":h.value,disabled:P.value,readonly:C.value},b,{error:y.value===!1,modelValue:s.value,"onUpdate:modelValue":I=>s.value=I,onFocus:m,onBlur:f}),o)}})}),D({},t)}});export{H as V}; diff --git a/assets/VCheckbox-ZL-u1kGB.css b/assets/VCheckbox-ZL-u1kGB.css deleted file mode 100644 index e1b6c99..0000000 --- a/assets/VCheckbox-ZL-u1kGB.css +++ /dev/null @@ -1 +0,0 @@ -.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.v-checkbox.v-input{flex:0 1 auto}.v-checkbox .v-selection-control{min-height:var(--v-input-control-height)} diff --git a/assets/VCheckboxBtn-Cjkf0n-9.js b/assets/VCheckboxBtn-Cjkf0n-9.js new file mode 100644 index 0000000..6943817 --- /dev/null +++ b/assets/VCheckboxBtn-Cjkf0n-9.js @@ -0,0 +1 @@ +import{a as o,m as f}from"./VSwitch-COsJOhk2.js";import{g as V,p as v,a3 as c,ay as l,c as I,ae as k,d as x,E as h,a$ as b}from"./index-GyS8nTIx.js";const C=v({indeterminate:Boolean,indeterminateIcon:{type:b,default:"$checkboxIndeterminate"},...f({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),B=V()({name:"VCheckboxBtn",props:C(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,r){let{slots:s}=r;const t=c(e,"indeterminate"),a=c(e,"modelValue");function u(n){t.value&&(t.value=!1)}const i=l(()=>t.value?e.indeterminateIcon:e.falseIcon),m=l(()=>t.value?e.indeterminateIcon:e.trueIcon);return I(()=>{const n=k(o.filterProps(e),["modelValue"]);return x(o,h(n,{modelValue:a.value,"onUpdate:modelValue":[d=>a.value=d,u],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:i.value,trueIcon:m.value,"aria-checked":t.value?"mixed":void 0}),s)}),{}}});export{B as V,C as m}; diff --git a/assets/VCheckboxBtn-CtaD8oYU.js b/assets/VCheckboxBtn-CtaD8oYU.js deleted file mode 100644 index d394742..0000000 --- a/assets/VCheckboxBtn-CtaD8oYU.js +++ /dev/null @@ -1 +0,0 @@ -import{V as o,m as f}from"./VSelectionControl-D-h-HCLE.js";import{g as V,p as v,a3 as c,ay as l,c as I,ae as k,d as x,E as h,aO as b}from"./index-BBVdlVQD.js";const C=v({indeterminate:Boolean,indeterminateIcon:{type:b,default:"$checkboxIndeterminate"},...f({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),B=V()({name:"VCheckboxBtn",props:C(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,r){let{slots:s}=r;const t=c(e,"indeterminate"),n=c(e,"modelValue");function u(a){t.value&&(t.value=!1)}const i=l(()=>t.value?e.indeterminateIcon:e.falseIcon),m=l(()=>t.value?e.indeterminateIcon:e.trueIcon);return I(()=>{const a=k(o.filterProps(e),["modelValue"]);return x(o,h(a,{modelValue:n.value,"onUpdate:modelValue":[d=>n.value=d,u],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:i.value,trueIcon:m.value,"aria-checked":t.value?"mixed":void 0}),s)}),{}}});export{B as V,C as m}; diff --git a/assets/VChip-BmBm7zXx.js b/assets/VChip-DsTHqUw0.js similarity index 50% rename from assets/VChip-BmBm7zXx.js rename to assets/VChip-DsTHqUw0.js index 8792ad1..74b9e3d 100644 --- a/assets/VChip-BmBm7zXx.js +++ b/assets/VChip-DsTHqUw0.js @@ -1 +1 @@ -import{g as le,p as te,b8 as Pe,X as we,bN as ye,a0 as O,a5 as S,c6 as se,cs as Ee,a8 as ie,a6 as pe,c as me,d as h,i as g,b9 as oe,v as E,e as M,n as Re,bO as ge,m as ae,bD as _e,h as ne,aO as R,cj as Te,bl as ke,aH as Fe,ay as z,E as ee,c7 as Se,bh as Ce,ag as Oe,S as ce,Z as Be,bx as De,aF as Ge,bk as Le,bc as We,ct as Me,a3 as He,bK as re,cu as Ne,cn as $e,I as ue,co as Ke,cv as qe,ac as H,J as je,F as de,L as ve,C as Je,c8 as Ue,cw as Xe,bi as Qe,bL as Ze,bm as Ye,aJ as el,bE as ll,b2 as fe}from"./index-BBVdlVQD.js";function tl(e){let{selectedElement:s,containerElement:n,isRtl:r,isHorizontal:i}=e;const y=B(i,n),c=xe(i,r,n),p=B(i,s),b=Ie(i,s),k=p*.4;return c>b?b-k:c+ytypeof e=="boolean"||["always","desktop","mobile","never"].includes(e)},...ne(),..._e({mobile:null}),...ae(),...ge({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),be=le()({name:"VSlideGroup",props:ze(),emits:{"update:modelValue":e=>!0},setup(e,s){let{slots:n}=s;const{isRtl:r}=Pe(),{displayClasses:i,mobile:y}=we(e),c=ye(e,e.symbol),p=O(!1),b=O(0),k=O(0),I=O(0),v=S(()=>e.direction==="horizontal"),{resizeRef:d,contentRect:a}=se(),{resizeRef:u,contentRect:m}=se(),D=Ee(),C=S(()=>({container:d.el,duration:200,easing:"easeOutQuart"})),N=S(()=>c.selected.value.length?c.items.value.findIndex(t=>t.id===c.selected.value[0]):-1),$=S(()=>c.selected.value.length?c.items.value.findIndex(t=>t.id===c.selected.value[c.selected.value.length-1]):-1);if(ie){let t=-1;pe(()=>[c.selected.value,a.value,m.value,v.value],()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{if(a.value&&m.value){const l=v.value?"width":"height";k.value=a.value[l],I.value=m.value[l],p.value=k.value+1=0&&u.el){const l=u.el.children[$.value];G(l,e.centerActive)}})})}const A=O(!1);function G(t,l){let o=0;l?o=al({containerElement:d.el,isHorizontal:v.value,selectedElement:t}):o=tl({containerElement:d.el,isHorizontal:v.value,isRtl:r.value,selectedElement:t}),_(o)}function _(t){if(!ie||!d.el)return;const l=B(v.value,d.el),o=xe(v.value,r.value,d.el);if(!(he(v.value,d.el)<=l||Math.abs(t-o)<16)){if(v.value&&r.value&&d.el){const{scrollWidth:Z,offsetWidth:Y}=d.el;t=Z-Y-t}v.value?D.horizontal(t,C.value):D(t,C.value)}}function K(t){const{scrollTop:l,scrollLeft:o}=t.target;b.value=v.value?o:l}function f(t){if(A.value=!0,!(!p.value||!u.el)){for(const l of t.composedPath())for(const o of u.el.children)if(o===l){G(o);return}}}function V(t){A.value=!1}let T=!1;function q(t){var l;!T&&!A.value&&!(t.relatedTarget&&((l=u.el)!=null&&l.contains(t.relatedTarget)))&&x(),T=!1}function F(){T=!0}function L(t){if(!u.el)return;function l(o){t.preventDefault(),x(o)}v.value?t.key==="ArrowRight"?l(r.value?"prev":"next"):t.key==="ArrowLeft"&&l(r.value?"next":"prev"):t.key==="ArrowDown"?l("next"):t.key==="ArrowUp"&&l("prev"),t.key==="Home"?l("first"):t.key==="End"&&l("last")}function P(t,l){if(!t)return;let o=t;do o=o==null?void 0:o[l==="next"?"nextElementSibling":"previousElementSibling"];while(o!=null&&o.hasAttribute("disabled"));return o}function x(t){if(!u.el)return;let l;if(!t)l=Te(u.el)[0];else if(t==="next"){if(l=P(u.el.querySelector(":focus"),t),!l)return x("first")}else if(t==="prev"){if(l=P(u.el.querySelector(":focus"),t),!l)return x("last")}else t==="first"?(l=u.el.firstElementChild,l!=null&&l.hasAttribute("disabled")&&(l=P(l,"next"))):t==="last"&&(l=u.el.lastElementChild,l!=null&&l.hasAttribute("disabled")&&(l=P(l,"prev")));l&&l.focus({preventScroll:!0})}function w(t){const l=v.value&&r.value?-1:1,o=(t==="prev"?-l:l)*k.value;let Q=b.value+o;if(v.value&&r.value&&d.el){const{scrollWidth:Z,offsetWidth:Y}=d.el;Q+=Z-Y}_(Q)}const j=S(()=>({next:c.next,prev:c.prev,select:c.select,isSelected:c.isSelected})),W=S(()=>p.value||Math.abs(b.value)>0),J=S(()=>{switch(e.showArrows){case"never":return!1;case"always":return!0;case"desktop":return!y.value;case!0:return W.value;case"mobile":return y.value||W.value;default:return!y.value&&W.value}}),U=S(()=>Math.abs(b.value)>1),X=S(()=>{if(!d.value||!W.value)return!1;const t=he(v.value,d.el),l=nl(v.value,d.el);return t-l-Math.abs(b.value)>1});return me(()=>h(e.tag,{class:M(["v-slide-group",{"v-slide-group--vertical":!v.value,"v-slide-group--has-affixes":J.value,"v-slide-group--is-overflowing":p.value},i.value,e.class]),style:Re(e.style),tabindex:A.value||c.selected.value.length?-1:0,onFocus:q},{default:()=>{var t,l,o;return[J.value&&g("div",{key:"prev",class:M(["v-slide-group__prev",{"v-slide-group__prev--disabled":!U.value}]),onMousedown:F,onClick:()=>U.value&&w("prev")},[((t=n.prev)==null?void 0:t.call(n,j.value))??h(oe,null,{default:()=>[h(E,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),g("div",{key:"container",ref:d,class:M(["v-slide-group__container",e.contentClass]),onScroll:K},[g("div",{ref:u,class:"v-slide-group__content",onFocusin:f,onFocusout:V,onKeydown:L},[(l=n.default)==null?void 0:l.call(n,j.value)])]),J.value&&g("div",{key:"next",class:M(["v-slide-group__next",{"v-slide-group__next--disabled":!X.value}]),onMousedown:F,onClick:()=>X.value&&w("next")},[((o=n.next)==null?void 0:o.call(n,j.value))??h(oe,null,{default:()=>[h(E,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:c.selected,scrollTo:w,scrollOffset:b,focus:x,hasPrev:U,hasNext:X}}}),Ae=Symbol.for("vuetify:v-chip-group"),sl=te({baseColor:String,column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Oe},...ze({scrollToActive:!1}),...ne(),...ge({selectedClass:"v-chip--selected"}),...ae(),...Ce(),...Se({variant:"tonal"})},"VChipGroup"),cl=le()({name:"VChipGroup",props:sl(),emits:{"update:modelValue":e=>!0},setup(e,s){let{slots:n}=s;const{themeClasses:r}=ke(e),{isSelected:i,select:y,next:c,prev:p,selected:b}=ye(e,Ae);return Fe({VChip:{baseColor:z(()=>e.baseColor),color:z(()=>e.color),disabled:z(()=>e.disabled),filter:z(()=>e.filter),variant:z(()=>e.variant)}}),me(()=>{const k=be.filterProps(e);return h(be,ee(k,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style}),{default:()=>{var I;return[(I=n.default)==null?void 0:I.call(n,{isSelected:i,select:y,next:c,prev:p,selected:b.value})]}})}),{}}}),il=te({activeClass:String,appendAvatar:String,appendIcon:R,baseColor:String,closable:Boolean,closeIcon:{type:R,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:R,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:R,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:fe(),onClickOnce:fe(),...ll(),...ne(),...el(),...Ye(),...Ze(),...Qe(),...Xe(),...Ue(),...ae({tag:"span"}),...Ce(),...Se({variant:"tonal"})},"VChip"),rl=le()({name:"VChip",directives:{vRipple:ce},props:il(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,s){let{attrs:n,emit:r,slots:i}=s;const{t:y}=Be(),{borderClasses:c}=De(e),{densityClasses:p}=Ge(e),{elevationClasses:b}=Le(e),{roundedClasses:k}=We(e),{sizeClasses:I}=Me(e),{themeClasses:v}=ke(e),d=He(e,"modelValue"),a=re(e,Ae,!1),u=re(e,Ve,!1),m=Ne(e,n),D=z(()=>e.link!==!1&&m.isLink.value),C=S(()=>!e.disabled&&e.link!==!1&&(!!a||e.link||m.isClickable.value)),N=z(()=>({"aria-label":y(e.closeLabel),disabled:e.disabled,onClick(f){f.preventDefault(),f.stopPropagation(),d.value=!1,r("click:close",f)}}));pe(d,f=>{f?(a==null||a.register(),u==null||u.register()):(a==null||a.unregister(),u==null||u.unregister())});const{colorClasses:$,colorStyles:A,variantClasses:G}=$e(()=>({color:!a||a.isSelected.value?e.color??e.baseColor:e.baseColor,variant:e.variant}));function _(f){var V;r("click",f),C.value&&((V=m.navigate)==null||V.call(m,f),a==null||a.toggle())}function K(f){(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),_(f))}return()=>{var x;const f=m.isLink.value?"a":e.tag,V=!!(e.appendIcon||e.appendAvatar),T=!!(V||i.append),q=!!(i.close||e.closable),F=!!(i.filter||e.filter)&&a,L=!!(e.prependIcon||e.prependAvatar),P=!!(L||i.prepend);return d.value&&ue(h(f,ee(m.linkProps,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":C.value,"v-chip--filter":F,"v-chip--pill":e.pill,[`${e.activeClass}`]:e.activeClass&&((x=m.isActive)==null?void 0:x.value)},v.value,c.value,$.value,p.value,b.value,k.value,I.value,G.value,a==null?void 0:a.selectedClass.value,e.class],style:[A.value,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:C.value?0:void 0,onClick:_,onKeydown:C.value&&!D.value&&K}),{default:()=>{var w;return[Ke(C.value,"v-chip"),F&&h(qe,{key:"filter"},{default:()=>[ue(g("div",{class:"v-chip__filter"},[i.filter?h(H,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},i.filter):h(E,{key:"filter-icon",icon:e.filterIcon},null)]),[[je,a.isSelected.value]])]}),P&&g("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?h(H,{key:"prepend-defaults",disabled:!L,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},i.prepend):g(de,null,[e.prependIcon&&h(E,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&h(ve,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),g("div",{class:"v-chip__content","data-no-activator":""},[((w=i.default)==null?void 0:w.call(i,{isSelected:a==null?void 0:a.isSelected.value,selectedClass:a==null?void 0:a.selectedClass.value,select:a==null?void 0:a.select,toggle:a==null?void 0:a.toggle,value:a==null?void 0:a.value.value,disabled:e.disabled}))??Je(e.text)]),T&&g("div",{key:"append",class:"v-chip__append"},[i.append?h(H,{key:"append-defaults",disabled:!V,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},i.append):g(de,null,[e.appendIcon&&h(E,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&h(ve,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),q&&g("button",ee({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},N.value),[i.close?h(H,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},i.close):h(E,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[ce,C.value&&e.ripple,null]])}}});export{rl as V,be as a,cl as b,ze as m}; +import{g as le,p as te,b7 as Ae,X as we,bO as ye,a0 as B,a5 as S,c7 as se,cs as Ee,a8 as ie,a6 as pe,c as me,d as h,i as k,b8 as oe,v as E,e as W,n as Re,bP as ke,m as ae,bE as _e,h as ne,a$ as R,ck as Te,bl as ge,aH as Fe,ay as P,E as ee,c8 as Se,bh as Ce,ag as Be,S as ce,Z as Oe,by as De,aF as Ge,bk as Le,bc as Me,ct as We,a3 as He,bL as re,cu as $e,co as Ne,I as ue,cp as qe,cv as Ke,ac as H,J as Je,F as de,L as ve,C as Ue,c9 as Xe,cw as je,bi as Qe,bM as Ze,bm as Ye,aJ as el,bF as ll,b1 as fe}from"./index-GyS8nTIx.js";function tl(e){let{selectedElement:s,containerElement:n,isRtl:r,isHorizontal:i}=e;const y=O(i,n),c=xe(i,r,n),p=O(i,s),b=Ie(i,s),g=p*.4;return c>b?b-g:c+ytypeof e=="boolean"||["always","desktop","mobile","never"].includes(e)},...ne(),..._e({mobile:null}),...ae(),...ke({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),be=le()({name:"VSlideGroup",props:Pe(),emits:{"update:modelValue":e=>!0},setup(e,s){let{slots:n}=s;const{isRtl:r}=Ae(),{displayClasses:i,mobile:y}=we(e),c=ye(e,e.symbol),p=B(!1),b=B(0),g=B(0),I=B(0),v=S(()=>e.direction==="horizontal"),{resizeRef:d,contentRect:a}=se(),{resizeRef:u,contentRect:m}=se(),D=Ee(),C=S(()=>({container:d.el,duration:200,easing:"easeOutQuart"})),$=S(()=>c.selected.value.length?c.items.value.findIndex(t=>t.id===c.selected.value[0]):-1),N=S(()=>c.selected.value.length?c.items.value.findIndex(t=>t.id===c.selected.value[c.selected.value.length-1]):-1);if(ie){let t=-1;pe(()=>[c.selected.value,a.value,m.value,v.value],()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{if(a.value&&m.value){const l=v.value?"width":"height";g.value=a.value[l],I.value=m.value[l],p.value=g.value+1=0&&u.el){const l=u.el.children[N.value];G(l,e.centerActive)}})})}const z=B(!1);function G(t,l){let o=0;l?o=al({containerElement:d.el,isHorizontal:v.value,selectedElement:t}):o=tl({containerElement:d.el,isHorizontal:v.value,isRtl:r.value,selectedElement:t}),_(o)}function _(t){if(!ie||!d.el)return;const l=O(v.value,d.el),o=xe(v.value,r.value,d.el);if(!(he(v.value,d.el)<=l||Math.abs(t-o)<16)){if(v.value&&r.value&&d.el){const{scrollWidth:Z,offsetWidth:Y}=d.el;t=Z-Y-t}v.value?D.horizontal(t,C.value):D(t,C.value)}}function q(t){const{scrollTop:l,scrollLeft:o}=t.target;b.value=v.value?o:l}function f(t){if(z.value=!0,!(!p.value||!u.el)){for(const l of t.composedPath())for(const o of u.el.children)if(o===l){G(o);return}}}function V(t){z.value=!1}let T=!1;function K(t){var l;!T&&!z.value&&!(t.relatedTarget&&((l=u.el)!=null&&l.contains(t.relatedTarget)))&&x(),T=!1}function F(){T=!0}function L(t){if(!u.el)return;function l(o){t.preventDefault(),x(o)}v.value?t.key==="ArrowRight"?l(r.value?"prev":"next"):t.key==="ArrowLeft"&&l(r.value?"next":"prev"):t.key==="ArrowDown"?l("next"):t.key==="ArrowUp"&&l("prev"),t.key==="Home"?l("first"):t.key==="End"&&l("last")}function A(t,l){if(!t)return;let o=t;do o=o==null?void 0:o[l==="next"?"nextElementSibling":"previousElementSibling"];while(o!=null&&o.hasAttribute("disabled"));return o}function x(t){if(!u.el)return;let l;if(!t)l=Te(u.el)[0];else if(t==="next"){if(l=A(u.el.querySelector(":focus"),t),!l)return x("first")}else if(t==="prev"){if(l=A(u.el.querySelector(":focus"),t),!l)return x("last")}else t==="first"?(l=u.el.firstElementChild,l!=null&&l.hasAttribute("disabled")&&(l=A(l,"next"))):t==="last"&&(l=u.el.lastElementChild,l!=null&&l.hasAttribute("disabled")&&(l=A(l,"prev")));l&&l.focus({preventScroll:!0})}function w(t){const l=v.value&&r.value?-1:1,o=(t==="prev"?-l:l)*g.value;let Q=b.value+o;if(v.value&&r.value&&d.el){const{scrollWidth:Z,offsetWidth:Y}=d.el;Q+=Z-Y}_(Q)}const J=S(()=>({next:c.next,prev:c.prev,select:c.select,isSelected:c.isSelected})),M=S(()=>p.value||Math.abs(b.value)>0),U=S(()=>{switch(e.showArrows){case"never":return!1;case"always":return!0;case"desktop":return!y.value;case!0:return M.value;case"mobile":return y.value||M.value;default:return!y.value&&M.value}}),X=S(()=>Math.abs(b.value)>1),j=S(()=>{if(!d.value||!M.value)return!1;const t=he(v.value,d.el),l=nl(v.value,d.el);return t-l-Math.abs(b.value)>1});return me(()=>h(e.tag,{class:W(["v-slide-group",{"v-slide-group--vertical":!v.value,"v-slide-group--has-affixes":U.value,"v-slide-group--is-overflowing":p.value},i.value,e.class]),style:Re(e.style),tabindex:z.value||c.selected.value.length?-1:0,onFocus:K},{default:()=>{var t,l,o;return[U.value&&k("div",{key:"prev",class:W(["v-slide-group__prev",{"v-slide-group__prev--disabled":!X.value}]),onMousedown:F,onClick:()=>X.value&&w("prev")},[((t=n.prev)==null?void 0:t.call(n,J.value))??h(oe,null,{default:()=>[h(E,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),k("div",{key:"container",ref:d,class:W(["v-slide-group__container",e.contentClass]),onScroll:q},[k("div",{ref:u,class:"v-slide-group__content",onFocusin:f,onFocusout:V,onKeydown:L},[(l=n.default)==null?void 0:l.call(n,J.value)])]),U.value&&k("div",{key:"next",class:W(["v-slide-group__next",{"v-slide-group__next--disabled":!j.value}]),onMousedown:F,onClick:()=>j.value&&w("next")},[((o=n.next)==null?void 0:o.call(n,J.value))??h(oe,null,{default:()=>[h(E,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:c.selected,scrollTo:w,scrollOffset:b,focus:x,hasPrev:X,hasNext:j}}}),ze=Symbol.for("vuetify:v-chip-group"),sl=te({baseColor:String,column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Be},...Pe({scrollToActive:!1}),...ne(),...ke({selectedClass:"v-chip--selected"}),...ae(),...Ce(),...Se({variant:"tonal"})},"VChipGroup"),cl=le()({name:"VChipGroup",props:sl(),emits:{"update:modelValue":e=>!0},setup(e,s){let{slots:n}=s;const{themeClasses:r}=ge(e),{isSelected:i,select:y,next:c,prev:p,selected:b}=ye(e,ze);return Fe({VChip:{baseColor:P(()=>e.baseColor),color:P(()=>e.color),disabled:P(()=>e.disabled),filter:P(()=>e.filter),variant:P(()=>e.variant)}}),me(()=>{const g=be.filterProps(e);return h(be,ee(g,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style}),{default:()=>{var I;return[(I=n.default)==null?void 0:I.call(n,{isSelected:i,select:y,next:c,prev:p,selected:b.value})]}})}),{}}}),il=te({activeClass:String,appendAvatar:String,appendIcon:R,baseColor:String,closable:Boolean,closeIcon:{type:R,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:R,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:R,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:fe(),onClickOnce:fe(),...ll(),...ne(),...el(),...Ye(),...Ze(),...Qe(),...je(),...Xe(),...ae({tag:"span"}),...Ce(),...Se({variant:"tonal"})},"VChip"),rl=le()({name:"VChip",directives:{vRipple:ce},props:il(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,s){let{attrs:n,emit:r,slots:i}=s;const{t:y}=Oe(),{borderClasses:c}=De(e),{densityClasses:p}=Ge(e),{elevationClasses:b}=Le(e),{roundedClasses:g}=Me(e),{sizeClasses:I}=We(e),{themeClasses:v}=ge(e),d=He(e,"modelValue"),a=re(e,ze,!1),u=re(e,Ve,!1),m=$e(e,n),D=P(()=>e.link!==!1&&m.isLink.value),C=S(()=>!e.disabled&&e.link!==!1&&(!!a||e.link||m.isClickable.value)),$=P(()=>({"aria-label":y(e.closeLabel),disabled:e.disabled,onClick(f){f.preventDefault(),f.stopPropagation(),d.value=!1,r("click:close",f)}}));pe(d,f=>{f?(a==null||a.register(),u==null||u.register()):(a==null||a.unregister(),u==null||u.unregister())});const{colorClasses:N,colorStyles:z,variantClasses:G}=Ne(()=>({color:!a||a.isSelected.value?e.color??e.baseColor:e.baseColor,variant:e.variant}));function _(f){var V;r("click",f),C.value&&((V=m.navigate)==null||V.call(m,f),a==null||a.toggle())}function q(f){(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),_(f))}return()=>{var x;const f=m.isLink.value?"a":e.tag,V=!!(e.appendIcon||e.appendAvatar),T=!!(V||i.append),K=!!(i.close||e.closable),F=!!(i.filter||e.filter)&&a,L=!!(e.prependIcon||e.prependAvatar),A=!!(L||i.prepend);return d.value&&ue(h(f,ee(m.linkProps,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":C.value,"v-chip--filter":F,"v-chip--pill":e.pill,[`${e.activeClass}`]:e.activeClass&&((x=m.isActive)==null?void 0:x.value)},v.value,c.value,N.value,p.value,b.value,g.value,I.value,G.value,a==null?void 0:a.selectedClass.value,e.class],style:[z.value,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:C.value?0:void 0,onClick:_,onKeydown:C.value&&!D.value&&q}),{default:()=>{var w;return[qe(C.value,"v-chip"),F&&h(Ke,{key:"filter"},{default:()=>[ue(k("div",{class:"v-chip__filter"},[i.filter?h(H,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},i.filter):h(E,{key:"filter-icon",icon:e.filterIcon},null)]),[[Je,a.isSelected.value]])]}),A&&k("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?h(H,{key:"prepend-defaults",disabled:!L,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},i.prepend):k(de,null,[e.prependIcon&&h(E,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&h(ve,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),k("div",{class:"v-chip__content","data-no-activator":""},[((w=i.default)==null?void 0:w.call(i,{isSelected:a==null?void 0:a.isSelected.value,selectedClass:a==null?void 0:a.selectedClass.value,select:a==null?void 0:a.select,toggle:a==null?void 0:a.toggle,value:a==null?void 0:a.value.value,disabled:e.disabled}))??Ue(e.text)]),T&&k("div",{key:"append",class:"v-chip__append"},[i.append?h(H,{key:"append-defaults",disabled:!V,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},i.append):k(de,null,[e.appendIcon&&h(E,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&h(ve,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),K&&k("button",ee({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},$.value),[i.close?h(H,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},i.close):h(E,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[ce,C.value&&e.ripple,null]])}}});export{rl as V,be as a,cl as b,Pe as m}; diff --git a/assets/VContainer-OExp5t5c.js b/assets/VContainer-B1JGY98V.js similarity index 71% rename from assets/VContainer-OExp5t5c.js rename to assets/VContainer-B1JGY98V.js index a5e8a8a..665786d 100644 --- a/assets/VContainer-OExp5t5c.js +++ b/assets/VContainer-B1JGY98V.js @@ -1 +1 @@ -import{g as t,p as l,b8 as r,u as i,c as m,d as c,n as u,e as d,m as C,f,h as p}from"./index-BBVdlVQD.js";const y=l({fluid:{type:Boolean,default:!1},...p(),...f(),...C()},"VContainer"),g=t()({name:"VContainer",props:y(),setup(e,s){let{slots:a}=s;const{rtlClasses:n}=r(),{dimensionStyles:o}=i(e);return m(()=>c(e.tag,{class:d(["v-container",{"v-container--fluid":e.fluid},n.value,e.class]),style:u([o.value,e.style])},a)),{}}});export{g as V}; +import{g as t,p as l,b7 as r,u as i,c as m,d as c,n as u,e as d,m as C,f,h as p}from"./index-GyS8nTIx.js";const y=l({fluid:{type:Boolean,default:!1},...p(),...f(),...C()},"VContainer"),g=t()({name:"VContainer",props:y(),setup(e,s){let{slots:a}=s;const{rtlClasses:n}=r(),{dimensionStyles:o}=i(e);return m(()=>c(e.tag,{class:d(["v-container",{"v-container--fluid":e.fluid},n.value,e.class]),style:u([o.value,e.style])},a)),{}}});export{g as V}; diff --git a/assets/VDataTable-D5czo1DM.css b/assets/VDataTable-D5czo1DM.css deleted file mode 100644 index a0c0cae..0000000 --- a/assets/VDataTable-D5czo1DM.css +++ /dev/null @@ -1 +0,0 @@ -.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--empty,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--empty,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--empty,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--empty{padding:0}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:focus,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:focus{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):focus .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):focus .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table-column--fixed-end,.v-data-table__th--sticky{background-color:rgb(var(--v-theme-surface));background-image:inherit;position:sticky!important;left:0;z-index:1}.v-data-table-column--fixed-end{left:unset;right:0}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table-column--first-fixed-end{border-left:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed,.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed-end{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-inline-start:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-progress__loader{position:relative}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table__tr--mobile>.v-data-table__td--expanded-row{grid-template-columns:auto;justify-content:center}.v-data-table__tr--mobile>.v-data-table__td--select-row{grid-template-columns:0;justify-content:end}.v-data-table__tr--mobile>td{align-items:center;column-gap:4px;display:grid;grid-template-columns:repeat(2,1fr);min-height:var(--v-table-row-height)}.v-data-table__tr--mobile>td:not(:last-child){border-bottom:0!important}.v-data-table__td-title{font-weight:500;text-align:start}.v-data-table__td-value{text-align:end}.v-data-table__td-sort-icon{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-data-table__td-sort-icon-active{color:rgba(var(--v-theme-on-surface))}.v-data-table-footer{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:8px 4px}.v-data-table-footer__items-per-page{align-items:center;display:flex;justify-content:center}.v-data-table-footer__items-per-page>span{padding-inline-end:8px}.v-data-table-footer__items-per-page>.v-select{width:90px}.v-data-table-footer__info{display:flex;justify-content:flex-end;min-width:116px;padding:0 16px}.v-data-table-footer__paginationz{align-items:center;display:flex;margin-inline-start:16px}.v-data-table-footer__page{padding:0 8px}.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.v-table{font-size:.875rem;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr>td{position:relative}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{background:rgba(var(--v-border-color),var(--v-hover-opacity));pointer-events:none}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-table.v-table--striped-even>.v-table__wrapper>table>tbody>tr:nth-child(2n){background-image:linear-gradient(0deg,rgba(var(--v-border-color),var(--v-hover-opacity)),rgba(var(--v-border-color),var(--v-hover-opacity)))}.v-table.v-table--striped-odd>.v-table__wrapper>table>tbody>tr:nth-child(odd){background-image:linear-gradient(0deg,rgba(var(--v-border-color),var(--v-hover-opacity)),rgba(var(--v-border-color),var(--v-hover-opacity)))}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{border-radius:inherit;line-height:1.5;max-width:100%;display:flex;flex-direction:column}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>td{height:var(--v-table-row-height)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{height:var(--v-table-header-height);font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default{--v-table-header-height: 56px;--v-table-row-height: 52px}.v-table--density-comfortable{--v-table-header-height: 48px;--v-table-row-height: 44px}.v-table--density-compact{--v-table-header-height: 40px;--v-table-row-height: 36px}.v-table__wrapper{border-radius:inherit;overflow:auto;flex:1 1 auto}.v-table--has-top>.v-table__wrapper{border-top-left-radius:0;border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:2}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important} diff --git a/assets/VDataTable-D7gPSbin.js b/assets/VDataTable-D7gPSbin.js deleted file mode 100644 index 7e3d8a6..0000000 --- a/assets/VDataTable-D7gPSbin.js +++ /dev/null @@ -1 +0,0 @@ -import{bS as xt,aA as St,p as C,a3 as q,a5 as T,a6 as be,bT as Ae,a_ as ge,bH as X,bM as Z,g as M,Z as ue,c as J,i as y,d as w,E as H,ae as ye,aO as N,bU as pt,aI as B,e as Y,$ as z,b5 as Pt,bV as wt,bW as kt,a4 as te,bX as It,ag as Ne,a0 as Dt,ay as O,bY as oe,bZ as ae,aL as Tt,b_ as Vt,aB as Ft,X as xe,b$ as Ct,F as U,c0 as Ot,bD as Se,aJ as ie,v as Te,n as He,c1 as Bt,y as Re,t as Ve,c2 as le,O as ne,C as _t,b2 as me,aK as ve,bl as Et,aF as At,bh as Nt,m as Ht,h as Rt,c3 as re,c4 as $t,aH as Gt,K as Lt}from"./index-BBVdlVQD.js";import{V as Fe,e as $e,u as Mt,d as jt}from"./filter-Bc0G1Z2P.js";import{V as Wt}from"./VChip-BmBm7zXx.js";import{V as se}from"./VCheckboxBtn-CtaD8oYU.js";function Ce(e,a,l){return Object.keys(e).filter(t=>xt(t)&&t.endsWith(a)).reduce((t,n)=>(t[n.slice(0,-a.length)]=r=>St(e[n],r,l(r)),t),{})}const Kt=C({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),Ge=Symbol.for("vuetify:data-table-pagination");function zt(e){const a=q(e,"page",void 0,t=>Number(t??1)),l=q(e,"itemsPerPage",void 0,t=>Number(t??10));return{page:a,itemsPerPage:l}}function qt(e){const{page:a,itemsPerPage:l,itemsLength:t}=e,n=T(()=>l.value===-1?0:l.value*(a.value-1)),r=T(()=>l.value===-1?t.value:Math.min(t.value,n.value+l.value)),o=T(()=>l.value===-1||t.value===0?1:Math.ceil(t.value/l.value));be([a,o],()=>{a.value>o.value&&(a.value=o.value)});function i(g){l.value=g,a.value=1}function u(){a.value=ge(a.value+1,1,o.value)}function d(){a.value=ge(a.value-1,1,o.value)}function c(g){a.value=ge(g,1,o.value)}const m={page:a,itemsPerPage:l,startIndex:n,stopIndex:r,pageCount:o,itemsLength:t,nextPage:u,prevPage:d,setPage:c,setItemsPerPage:i};return Z(Ge,m),m}function Ut(){const e=X(Ge);if(!e)throw new Error("Missing pagination!");return e}function Xt(e){const a=Ae("usePaginatedItems"),{items:l,startIndex:t,stopIndex:n,itemsPerPage:r}=e,o=T(()=>r.value<=0?l.value:l.value.slice(t.value,n.value));return be(o,i=>{a.emit("update:currentItems",i)},{immediate:!0}),{paginatedItems:o}}const Le=C({color:String,prevIcon:{type:N,default:"$prev"},nextIcon:{type:N,default:"$next"},firstIcon:{type:N,default:"$first"},lastIcon:{type:N,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Oe=M()({name:"VDataTableFooter",props:Le(),setup(e,a){let{slots:l}=a;const{t}=ue(),{page:n,pageCount:r,startIndex:o,stopIndex:i,itemsLength:u,itemsPerPage:d,setItemsPerPage:c}=Ut(),m=T(()=>e.itemsPerPageOptions.map(g=>typeof g=="number"?{value:g,title:g===-1?t("$vuetify.dataFooter.itemsPerPageAll"):String(g)}:{...g,title:isNaN(Number(g.title))?t(g.title):g.title}));return J(()=>{var x;const g=Fe.filterProps(e);return y("div",{class:"v-data-table-footer"},[(x=l.prepend)==null?void 0:x.call(l),y("div",{class:"v-data-table-footer__items-per-page"},[y("span",{"aria-label":t(e.itemsPerPageText)},[t(e.itemsPerPageText)]),w($e,{items:m.value,itemColor:e.color,modelValue:d.value,"onUpdate:modelValue":b=>c(Number(b)),density:"compact",variant:"outlined",hideDetails:!0},null)]),y("div",{class:"v-data-table-footer__info"},[y("div",null,[t(e.pageText,u.value?o.value+1:0,i.value,u.value)])]),y("div",{class:"v-data-table-footer__pagination"},[w(Fe,H({modelValue:n.value,"onUpdate:modelValue":b=>n.value=b,density:"comfortable",firstAriaLabel:e.firstPageLabel,lastAriaLabel:e.lastPageLabel,length:r.value,nextAriaLabel:e.nextPageLabel,previousAriaLabel:e.prevPageLabel,rounded:!0,showFirstLastPage:!0,totalVisible:e.showCurrentPage?1:0,variant:"plain"},ye(g,["color"])),null)])])}),{}}}),ee=pt({align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,indent:[Number,String],empty:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,a)=>{let{slots:l}=a;const t=e.tag??"td",n=typeof e.fixed=="string"?e.fixed:e.fixed?"start":"none";return w(t,{class:Y(["v-data-table__td",{"v-data-table-column--fixed":n==="start","v-data-table-column--fixed-end":n==="end","v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--first-fixed-end":e.firstFixedEnd,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap,"v-data-table-column--empty":e.empty},`v-data-table-column--align-${e.align}`]),style:{height:B(e.height),width:B(e.width),maxWidth:B(e.maxWidth),left:n==="start"?B(e.fixedOffset||null):void 0,right:n==="end"?B(e.fixedEndOffset||null):void 0,paddingInlineStart:e.indent?B(e.indent):void 0}},{default:()=>{var r;return[(r=l.default)==null?void 0:r.call(l)]}})}),Zt=C({headers:Array},"DataTable-header"),Me=Symbol.for("vuetify:data-table-headers"),je={title:"",sortable:!1},Jt={...je,width:48};function Qt(){const a=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(l=>({element:l,priority:0}));return{enqueue:(l,t)=>{let n=!1;for(let r=0;rt){a.splice(r,0,{element:l,priority:t}),n=!0;break}n||a.push({element:l,priority:t})},size:()=>a.length,count:()=>{let l=0;if(!a.length)return 0;const t=Math.floor(a[0].priority);for(let n=0;na.shift()}}function he(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)a.push(e);else for(const l of e.children)he(l,a);return a}function We(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const l of e)l.key&&a.add(l.key),l.children&&We(l.children,a);return a}function Yt(e){if(e.key){if(e.key==="data-table-group")return je;if(["data-table-expand","data-table-select"].includes(e.key))return Jt}}function pe(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(a,...e.children.map(l=>pe(l,a+1))):a}function ea(e){let a=!1;function l(r,o){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none";if(r)if(i!=="none"&&(r.fixed=i),r.fixed===!0&&(r.fixed="start"),r.fixed===o)if(r.children)if(o==="start")for(let u=r.children.length-1;u>=0;u--)l(r.children[u],o,o);else for(let u=0;u=0;u--)l(r.children[u],o);else for(let u=0;u=0;r--)l(e[r],"start");for(let r=0;r=0;r--)n=ze(e[r],n)}function Ke(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return a;if(e.children){e.fixedOffset=a;for(const l of e.children)a=Ke(l,a)}else e.fixed&&e.fixed!=="end"&&(e.fixedOffset=a,a+=parseFloat(e.width||"0")||0);return a}function ze(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return a;if(e.children){e.fixedEndOffset=a;for(const l of e.children)a=ze(l,a)}else e.fixed==="end"&&(e.fixedEndOffset=a,a+=parseFloat(e.width||"0")||0);return a}function ta(e,a){const l=[];let t=0;const n=Qt(e);for(;n.size()>0;){let o=n.count();const i=[];let u=1;for(;o>0;){const{element:d,priority:c}=n.dequeue(),m=a-t-pe(d);if(i.push({...d,rowspan:m??1,colspan:d.children?he(d).length:1}),d.children)for(const g of d.children){const x=c%1+u/Math.pow(10,t+2);n.enqueue(g,t+m+x)}u+=1,o-=1}t+=1,l.push(i)}return{columns:e.map(o=>he(o)).flat(),headers:l}}function qe(e){const a=[];for(const l of e){const t={...Yt(l),...l},n=t.key??(typeof t.value=="string"?t.value:null),r=t.value??n??null,o={...t,key:n,value:r,sortable:t.sortable??(t.key!=null||!!t.sort),children:t.children?qe(t.children):void 0};a.push(o)}return a}function aa(e,a){const l=z([]),t=z([]),n=z({}),r=z({}),o=z({});Pt(()=>{var h,f,S;const d=(e.headers||Object.keys(e.items[0]??{}).map(s=>({key:s,title:wt(s)}))).slice(),c=We(d);(h=a==null?void 0:a.groupBy)!=null&&h.value.length&&!c.has("data-table-group")&&d.unshift({key:"data-table-group",title:"Group"}),(f=a==null?void 0:a.showSelect)!=null&&f.value&&!c.has("data-table-select")&&d.unshift({key:"data-table-select"}),(S=a==null?void 0:a.showExpand)!=null&&S.value&&!c.has("data-table-expand")&&d.push({key:"data-table-expand"});const m=qe(d);ea(m);const g=Math.max(...m.map(s=>pe(s)))+1,x=ta(m,g);l.value=x.headers,t.value=x.columns;const b=x.headers.flat(1);for(const s of b)s.key&&(s.sortable&&(s.sort&&(n.value[s.key]=s.sort),s.sortRaw&&(r.value[s.key]=s.sortRaw)),s.filter&&(o.value[s.key]=s.filter))});const i={headers:l,columns:t,sortFunctions:n,sortRawFunctions:r,filterFunctions:o};return Z(Me,i),i}function de(){const e=X(Me);if(!e)throw new Error("Missing headers!");return e}const la={showSelectAll:!1,allSelected:()=>[],select:e=>{var t;let{items:a,value:l}=e;return new Set(l?[(t=a[0])==null?void 0:t.value]:[])},selectAll:e=>{let{selected:a}=e;return a}},Ue={showSelectAll:!0,allSelected:e=>{let{currentPage:a}=e;return a},select:e=>{let{items:a,value:l,selected:t}=e;for(const n of a)l?t.add(n.value):t.delete(n.value);return t},selectAll:e=>{let{value:a,currentPage:l,selected:t}=e;return Ue.select({items:l,value:a,selected:t})}},na={showSelectAll:!0,allSelected:e=>{let{allItems:a}=e;return a},select:e=>{let{items:a,value:l,selected:t}=e;for(const n of a)l?t.add(n.value):t.delete(n.value);return t},selectAll:e=>{let{value:a,allItems:l}=e;return new Set(a?l.map(t=>t.value):[])}},ra=C({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:Function},"DataTable-select"),Xe=Symbol.for("vuetify:data-table-selection");function oa(e,a){let{allItems:l,currentPage:t}=a;const n=q(e,"modelValue",e.modelValue,s=>{const p=e.valueComparator;return p?new Set(te(s).map(I=>{var P;return((P=l.value.find(V=>p(I,V.value)))==null?void 0:P.value)??I})):new Set(te(s).map(I=>{var P,V;return It(I)?((P=l.value.find(F=>I===F.value))==null?void 0:P.value)??I:((V=l.value.find(F=>Ne(I,F.value)))==null?void 0:V.value)??I}))},s=>[...s.values()]),r=T(()=>l.value.filter(s=>s.selectable)),o=T(()=>t.value.filter(s=>s.selectable)),i=T(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return la;case"all":return na;case"page":default:return Ue}}),u=Dt(null);function d(s){return te(s).every(p=>n.value.has(p.value))}function c(s){return te(s).some(p=>n.value.has(p.value))}function m(s,p){const I=i.value.select({items:s,value:p,selected:new Set(n.value)});n.value=I}function g(s,p,I){const P=[];if(p=p??t.value.findIndex(V=>V.value===s.value),e.selectStrategy!=="single"&&(I!=null&&I.shiftKey)&&u.value!==null){const[V,F]=[u.value,p].sort((R,D)=>R-D);P.push(...t.value.slice(V,F+1).filter(R=>R.selectable))}else P.push(s),u.value=p;m(P,!d([s]))}function x(s){const p=i.value.selectAll({value:s,allItems:r.value,currentPage:o.value,selected:new Set(n.value)});n.value=p}const b=T(()=>n.value.size>0),h=T(()=>{const s=i.value.allSelected({allItems:r.value,currentPage:o.value});return!!s.length&&d(s)}),f=O(()=>i.value.showSelectAll),S={toggleSelect:g,select:m,selectAll:x,isSelected:d,isSomeSelected:c,someSelected:b,allSelected:h,showSelectAll:f,lastSelectedIndex:u,selectStrategy:i};return Z(Xe,S),S}function ce(){const e=X(Xe);if(!e)throw new Error("Missing selection!");return e}const sa=C({initialSortOrder:{type:String,default:"asc",validator:e=>!e||["asc","desc"].includes(e)},sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:{type:[Boolean,Object],default:!1},mustSort:Boolean},"DataTable-sort"),Ze=Symbol.for("vuetify:data-table-sort");function ua(e){const a=O(()=>e.initialSortOrder),l=q(e,"sortBy"),t=O(()=>e.mustSort),n=O(()=>e.multiSort);return{initialSortOrder:a,sortBy:l,multiSort:n,mustSort:t}}function ia(e,a){if(!Tt(e))return{active:!!e};const{key:l,mode:t,modifier:n}=e,r=n==="alt"&&(a==null?void 0:a.altKey)||n==="shift"&&(a==null?void 0:a.shiftKey);return{active:!l||(a==null?void 0:a.ctrlKey)||(a==null?void 0:a.metaKey)||!1,mode:r?t==="append"?"prepend":"append":t}}function da(e){const{initialSortOrder:a,sortBy:l,mustSort:t,multiSort:n,page:r}=e,o=(d,c)=>{if(d.key==null)return;let m=l.value.map(h=>({...h}))??[];const g=m.find(h=>h.key===d.key),x=a.value,b=a.value==="desc"?"asc":"desc";if(g)g.order===b?t.value&&m.length===1?g.order=a.value:m=m.filter(h=>h.key!==d.key):g.order=b;else{const{active:h,mode:f}=ia(n.value,c);h?f==="prepend"?m.unshift({key:d.key,order:x}):m.push({key:d.key,order:x}):m=[{key:d.key,order:x}]}l.value=m,r&&(r.value=1)};function i(d){return!!l.value.find(c=>c.key===d.key)}const u={sortBy:l,toggleSort:o,isSorted:i};return Z(Ze,u),u}function Je(){const e=X(Ze);if(!e)throw new Error("Missing sort!");return e}function ca(e,a,l,t){const n=ue();return{sortedItems:T(()=>{var o,i;return l.value.length?fa(a.value,l.value,n.current.value,{transform:t==null?void 0:t.transform,sortFunctions:{...e.customKeySort,...(o=t==null?void 0:t.sortFunctions)==null?void 0:o.value},sortRawFunctions:(i=t==null?void 0:t.sortRawFunctions)==null?void 0:i.value}):a.value})}}function fa(e,a,l,t){const n=new Intl.Collator(l,{sensitivity:"accent",usage:"sort"});return e.map(o=>[o,t!=null&&t.transform?t.transform(o):o]).sort((o,i)=>{var u,d;for(let c=0;cs!=null?s.toString().toLocaleLowerCase():s),b!==h))return ae(b)&&ae(h)?0:ae(b)?-1:ae(h)?1:!isNaN(b)&&!isNaN(h)?Number(b)-Number(h):n.compare(b,h)}return 0}).map(o=>{let[i]=o;return i})}const Qe=C({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,initialSortOrder:String,sortAscIcon:{type:N,default:"$sortAsc"},sortDescIcon:{type:N,default:"$sortDesc"},headerProps:{type:Object},sticky:Boolean,...ie(),...Se(),...Ot()},"VDataTableHeaders"),Be=M()({name:"VDataTableHeaders",props:Qe(),setup(e,a){let{slots:l}=a;const{t}=ue(),{toggleSort:n,sortBy:r,isSorted:o}=Je(),{someSelected:i,allSelected:u,selectAll:d,showSelectAll:c}=ce(),{columns:m,headers:g}=de(),{loaderClasses:x}=Vt(e);function b(D,v){if(!(e.sticky||e.fixedHeader)&&!D.fixed)return;const k=typeof D.fixed=="string"?D.fixed:D.fixed?"start":"none";return{position:"sticky",left:k==="start"?B(D.fixedOffset):void 0,right:k==="end"?B(D.fixedEndOffset):void 0,top:e.sticky||e.fixedHeader?`calc(var(--v-table-header-height) * ${v})`:void 0}}function h(D,v){D.key==="Enter"&&!e.disableSort&&n(v,D)}function f(D){const v=r.value.find(k=>k.key===D.key);return!v&&e.initialSortOrder==="asc"||(v==null?void 0:v.order)==="asc"?e.sortAscIcon:e.sortDescIcon}const{backgroundColorClasses:S,backgroundColorStyles:s}=Ft(()=>e.color),{displayClasses:p,mobile:I}=xe(e),P=T(()=>({headers:g.value,columns:m.value,toggleSort:n,isSorted:o,sortBy:r.value,someSelected:i.value,allSelected:u.value,selectAll:d,getSortIcon:f})),V=T(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky||e.fixedHeader},p.value,x.value]),F=D=>{let{column:v,x:k,y:_}=D;const $=v.key==="data-table-select"||v.key==="data-table-expand",L=v.key==="data-table-group"&&v.width===0&&!v.title,j=H(e.headerProps??{},v.headerProps??{});return w(ee,H({tag:"th",align:v.align,class:[{"v-data-table__th--sortable":v.sortable&&!e.disableSort,"v-data-table__th--sorted":o(v),"v-data-table__th--fixed":v.fixed},...V.value],style:{width:B(v.width),minWidth:B(v.minWidth),maxWidth:B(v.maxWidth),...b(v,_)},colspan:v.colspan,rowspan:v.rowspan,fixed:v.fixed,nowrap:v.nowrap,lastFixed:v.lastFixed,firstFixedEnd:v.firstFixedEnd,noPadding:$,empty:L,tabindex:v.sortable?0:void 0,onClick:v.sortable?E=>n(v,E):void 0,onKeydown:v.sortable?E=>h(E,v):void 0},j),{default:()=>{var K;const E=`header.${v.key}`,W={column:v,selectAll:d,isSorted:o,toggleSort:n,sortBy:r.value,someSelected:i.value,allSelected:u.value,getSortIcon:f};return l[E]?l[E](W):L?"":v.key==="data-table-select"?((K=l["header.data-table-select"])==null?void 0:K.call(l,W))??(c.value&&w(se,{color:e.color,density:e.density,modelValue:u.value,indeterminate:i.value&&!u.value,"onUpdate:modelValue":d},null)):y("div",{class:"v-data-table-header__content"},[y("span",null,[v.title]),v.sortable&&!e.disableSort&&w(Te,{key:"icon",class:"v-data-table-header__sort-icon",icon:f(v)},null),e.multiSort&&o(v)&&y("div",{key:"badge",class:Y(["v-data-table-header__sort-badge",...S.value]),style:He(s.value)},[r.value.findIndex(fe=>fe.key===v.key)+1])])}})},R=()=>{const D=T(()=>m.value.filter(k=>(k==null?void 0:k.sortable)&&!e.disableSort)),v=m.value.find(k=>k.key==="data-table-select");return w(ee,H({tag:"th",class:[...V.value],colspan:g.value.length+1},e.headerProps),{default:()=>[y("div",{class:"v-data-table-header__content"},[w($e,{chips:!0,color:e.color,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:D.value,label:t("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>r.value=[]},{append:v?()=>w(se,{color:e.color,density:"compact",modelValue:u.value,indeterminate:i.value&&!u.value,"onUpdate:modelValue":()=>d(!u.value)},null):void 0,chip:k=>{var _;return w(Wt,{onClick:(_=k.item.raw)!=null&&_.sortable?()=>n(k.item.raw):void 0,onMousedown:$=>{$.preventDefault(),$.stopPropagation()}},{default:()=>[k.item.title,w(Te,{class:Y(["v-data-table__td-sort-icon",o(k.item.raw)&&"v-data-table__td-sort-icon-active"]),icon:f(k.item.raw),size:"small"},null)]})}})])]})};J(()=>I.value?y("tr",null,[w(R,null,null)]):y(U,null,[l.headers?l.headers(P.value):g.value.map((D,v)=>y("tr",null,[D.map((k,_)=>w(F,{column:k,x:_,y:v},null))])),e.loading&&y("tr",{class:"v-data-table-progress"},[y("th",{colspan:m.value.length},[w(Ct,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"||e.loading==="true"?e.color:e.loading,indeterminate:!0},{default:l.loader})])])]))}}),ga=C({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Ye=Symbol.for("vuetify:data-table-group");function ma(e){return{groupBy:q(e,"groupBy")}}function va(e){const{disableSort:a,groupBy:l,sortBy:t}=e,n=z(new Set),r=T(()=>l.value.map(c=>({...c,order:c.order??!1})).concat(a!=null&&a.value?[]:t.value));function o(c){return n.value.has(c.id)}function i(c){const m=new Set(n.value);o(c)?m.delete(c.id):m.add(c.id),n.value=m}function u(c){function m(g){const x=[];for(const b of g.items)"type"in b&&b.type==="group"?x.push(...m(b)):x.push(b);return[...new Set(x)]}return m({items:c})}const d={sortByWithGroups:r,toggleGroup:i,opened:n,groupBy:l,extractRows:u,isGroupOpen:o};return Z(Ye,d),d}function et(){const e=X(Ye);if(!e)throw new Error("Missing group!");return e}function ha(e,a){if(!e.length)return[];const l=new Map;for(const t of e){const n=oe(t.raw,a);l.has(n)||l.set(n,[]),l.get(n).push(t)}return l}function tt(e,a){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!a.length)return[];const n=ha(e,a[0]),r=[],o=a.slice(1);return n.forEach((i,u)=>{const d=a[0],c=`${t}_${d}_${u}`;r.push({depth:l,id:c,key:d,value:u,items:o.length?tt(i,o,l+1,c):i,type:"group"})}),r}function at(e,a,l){const t=[];for(const n of e)"type"in n&&n.type==="group"?(n.value!=null&&t.push(n),(a.has(n.id)||n.value==null)&&(t.push(...at(n.items,a,l)),l&&t.push({...n,type:"group-summary"}))):t.push(n);return t}function ba(e,a,l,t){return{flatItems:T(()=>{if(!a.value.length)return e.value;const r=tt(e.value,a.value.map(o=>o.key));return at(r,l.value,Bt(t))})}}const lt=C({item:{type:Object,required:!0},groupCollapseIcon:{type:N,default:"$tableGroupCollapse"},groupExpandIcon:{type:N,default:"$tableGroupExpand"},...ie()},"VDataTableGroupHeaderRow"),ya=M()({name:"VDataTableGroupHeaderRow",props:lt(),setup(e,a){let{slots:l}=a;const{isGroupOpen:t,toggleGroup:n,extractRows:r}=et(),{isSelected:o,isSomeSelected:i,select:u}=ce(),{columns:d}=de(),c=T(()=>r([e.item])),m=O(()=>d.value.length-(d.value.some(g=>g.key==="data-table-select")?1:0));return()=>y("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[d.value.map(g=>{var x,b;if(g.key==="data-table-group"){const h=t(e.item)?e.groupCollapseIcon:e.groupExpandIcon,f=()=>n(e.item);return((x=l["data-table-group"])==null?void 0:x.call(l,{item:e.item,count:c.value.length,props:{icon:h,onClick:f}}))??w(ee,{class:"v-data-table-group-header-row__column",colspan:m.value},{default:()=>[w(Re,{size:"small",variant:"text",icon:h,onClick:f},null),y("span",null,[e.item.value]),y("span",null,[Ve("("),c.value.length,Ve(")")])]})}else if(g.key==="data-table-select"){const h=o(c.value),f=i(c.value)&&!h,S=s=>u(c.value,s);return((b=l["data-table-select"])==null?void 0:b.call(l,{props:{modelValue:h,indeterminate:f,"onUpdate:modelValue":S}}))??w(ee,{class:"v-data-table__td--select-row",noPadding:!0},{default:()=>[w(se,{density:e.density,modelValue:h,indeterminate:f,"onUpdate:modelValue":S},null)]})}return""})])}}),xa=C({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),nt=Symbol.for("vuetify:datatable:expanded");function Sa(e){const a=O(()=>e.expandOnClick),l=q(e,"expanded",e.expanded,i=>new Set(i),i=>[...i.values()]);function t(i,u){const d=new Set(l.value),c=le(i.value);if(u)d.add(c);else{const m=[...l.value].find(g=>le(g)===c);d.delete(m)}l.value=d}function n(i){const u=le(i.value);return[...l.value].some(d=>le(d)===u)}function r(i){t(i,!n(i))}const o={expand:t,expanded:l,expandOnClick:a,isExpanded:n,toggleExpand:r};return Z(nt,o),o}function rt(){const e=X(nt);if(!e)throw new Error("foo");return e}const ot=C({color:String,index:Number,item:Object,cellProps:[Object,Function],collapseIcon:{type:N,default:"$collapse"},expandIcon:{type:N,default:"$expand"},onClick:me(),onContextmenu:me(),onDblclick:me(),...ie(),...Se()},"VDataTableRow"),pa=M()({name:"VDataTableRow",props:ot(),setup(e,a){let{slots:l}=a;const{displayClasses:t,mobile:n}=xe(e,"v-data-table__tr"),{isSelected:r,toggleSelect:o,someSelected:i,allSelected:u,selectAll:d}=ce(),{isExpanded:c,toggleExpand:m}=rt(),{toggleSort:g,sortBy:x,isSorted:b}=Je(),{columns:h}=de();J(()=>y("tr",{class:Y(["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},t.value]),onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&h.value.map((f,S)=>{const s=e.item,p=`item.${f.key}`,I=`header.${f.key}`,P={index:e.index,item:s.raw,internalItem:s,value:oe(s.columns,f.key),column:f,isSelected:r,toggleSelect:o,isExpanded:c,toggleExpand:m},V={column:f,selectAll:d,isSorted:b,toggleSort:g,sortBy:x.value,someSelected:i.value,allSelected:u.value,getSortIcon:()=>""},F=typeof e.cellProps=="function"?e.cellProps({index:P.index,item:P.item,internalItem:P.internalItem,value:P.value,column:f}):e.cellProps,R=typeof f.cellProps=="function"?f.cellProps({index:P.index,item:P.item,internalItem:P.internalItem,value:P.value}):f.cellProps,D=f.key==="data-table-select"||f.key==="data-table-expand",v=f.key==="data-table-group"&&f.width===0&&!f.title;return w(ee,H({align:f.align,indent:f.intent,class:{"v-data-table__td--expanded-row":f.key==="data-table-expand","v-data-table__td--select-row":f.key==="data-table-select"},fixed:f.fixed,fixedOffset:f.fixedOffset,fixedEndOffset:f.fixedEndOffset,lastFixed:f.lastFixed,firstFixedEnd:f.firstFixedEnd,maxWidth:n.value?void 0:f.maxWidth,noPadding:D,empty:v,nowrap:f.nowrap,width:n.value?void 0:f.width},F,R),{default:()=>{var _,$,L,j;if(f.key==="data-table-select")return((_=l["item.data-table-select"])==null?void 0:_.call(l,{...P,props:{color:e.color,disabled:!s.selectable,modelValue:r([s]),onClick:ne(()=>o(s),["stop"])}}))??w(se,{color:e.color,disabled:!s.selectable,density:e.density,modelValue:r([s]),onClick:ne(E=>o(s,e.index,E),["stop"])},null);if(f.key==="data-table-expand")return(($=l["item.data-table-expand"])==null?void 0:$.call(l,{...P,props:{icon:c(s)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:ne(()=>m(s),["stop"])}}))??w(Re,{icon:c(s)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:ne(()=>m(s),["stop"])},null);if(l[p]&&!n.value)return l[p](P);const k=_t(P.value);return n.value?y(U,null,[y("div",{class:"v-data-table__td-title"},[((L=l[I])==null?void 0:L.call(l,V))??f.title]),y("div",{class:"v-data-table__td-value"},[((j=l[p])==null?void 0:j.call(l,P))??k])]):k}})})]))}}),st=C({color:String,loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...ve(ot(),["collapseIcon","expandIcon","density"]),...ve(lt(),["groupCollapseIcon","groupExpandIcon","density"]),...Se()},"VDataTableRows"),_e=M()({name:"VDataTableRows",inheritAttrs:!1,props:st(),setup(e,a){let{attrs:l,slots:t}=a;const{columns:n}=de(),{expandOnClick:r,toggleExpand:o,isExpanded:i}=rt(),{isSelected:u,toggleSelect:d}=ce(),{toggleGroup:c,isGroupOpen:m}=et(),{t:g}=ue(),{mobile:x}=xe(e);return J(()=>{var h,f;const b=ve(e,["groupCollapseIcon","groupExpandIcon","density"]);return e.loading&&(!e.items.length||t.loading)?y("tr",{class:"v-data-table-rows-loading",key:"loading"},[y("td",{colspan:n.value.length},[((h=t.loading)==null?void 0:h.call(t))??g(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?y("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[y("td",{colspan:n.value.length},[((f=t["no-data"])==null?void 0:f.call(t))??g(e.noDataText)])]):y(U,null,[e.items.map((S,s)=>{var P,V;if(S.type==="group"){const F={index:s,item:S,columns:n.value,isExpanded:i,toggleExpand:o,isSelected:u,toggleSelect:d,toggleGroup:c,isGroupOpen:m};return t["group-header"]?t["group-header"](F):w(ya,H({key:`group-header_${S.id}`,item:S},Ce(l,":groupHeader",()=>F),b),t)}if(S.type==="group-summary"){const F={index:s,item:S,columns:n.value,toggleGroup:c};return((P=t["group-summary"])==null?void 0:P.call(t,F))??""}const p={index:s,item:S.raw,internalItem:S,columns:n.value,isExpanded:i,toggleExpand:o,isSelected:u,toggleSelect:d},I={...p,props:H({key:`item_${S.key??S.index}`,onClick:r.value?()=>{o(S)}:void 0,index:s,item:S,color:e.color,cellProps:e.cellProps,collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,density:e.density,mobile:x.value},Ce(l,":row",()=>p),typeof e.rowProps=="function"?e.rowProps({item:p.item,index:p.index,internalItem:p.internalItem}):e.rowProps)};return y(U,{key:I.props.key},[t.item?t.item(I):w(pa,I.props,t),i(S)&&((V=t["expanded-row"])==null?void 0:V.call(t,p))])})])}),{}}}),ut=C({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,striped:{type:String,default:null,validator:e=>["even","odd"].includes(e)},...Rt(),...ie(),...Ht(),...Nt()},"VTable"),Ee=M()({name:"VTable",props:ut(),setup(e,a){let{slots:l,emit:t}=a;const{themeClasses:n}=Et(e),{densityClasses:r}=At(e);return J(()=>w(e.tag,{class:Y(["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!l.top,"v-table--has-bottom":!!l.bottom,"v-table--hover":e.hover,"v-table--striped-even":e.striped==="even","v-table--striped-odd":e.striped==="odd"},n.value,r.value,e.class]),style:He(e.style)},{default:()=>{var o,i,u;return[(o=l.top)==null?void 0:o.call(l),l.default?y("div",{class:"v-table__wrapper",style:{height:B(e.height)}},[y("table",null,[l.default()])]):(i=l.wrapper)==null?void 0:i.call(l),(u=l.bottom)==null?void 0:u.call(l)]}})),{}}}),Pa=C({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function wa(e,a,l,t){const n=e.returnObject?a:re(a,e.itemValue),r=re(a,e.itemSelectable,!0),o=t.reduce((i,u)=>(u.key!=null&&(i[u.key]=re(a,u.value)),i),{});return{type:"item",key:e.returnObject?re(a,e.itemValue):n,index:l,value:n,selectable:r,columns:o,raw:a}}function ka(e,a,l){return a.map((t,n)=>wa(e,t,n,l))}function Ia(e,a){return{items:T(()=>ka(e,e.items,a.value))}}function Da(e){let{page:a,itemsPerPage:l,sortBy:t,groupBy:n,search:r}=e;const o=Ae("VDataTable"),i=()=>({page:a.value,itemsPerPage:l.value,sortBy:t.value,groupBy:n.value,search:r.value});let u=null;be(i,d=>{Ne(u,d)||(u&&u.search!==d.search&&(a.value=1),o.emit("update:options",d),u=d)},{deep:!0,immediate:!0})}const Ta=C({...st(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...xa(),...ga(),...Zt(),...Pa(),...ra(),...sa(),...ye(Qe(),["multiSort","initialSortOrder"]),...ut()},"DataTable"),Va=C({...Kt(),...Ta(),...jt(),...Le()},"VDataTable"),_a=M()({name:"VDataTable",props:Va(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,a){let{attrs:l,slots:t}=a;const{groupBy:n}=ma(e),{initialSortOrder:r,sortBy:o,multiSort:i,mustSort:u}=ua(e),{page:d,itemsPerPage:c}=zt(e),{disableSort:m}=$t(e),{columns:g,headers:x,sortFunctions:b,sortRawFunctions:h,filterFunctions:f}=aa(e,{groupBy:n,showSelect:O(()=>e.showSelect),showExpand:O(()=>e.showExpand)}),{items:S}=Ia(e,g),s=O(()=>e.search),{filteredItems:p}=Mt(e,S,s,{transform:G=>G.columns,customKeyFilter:f}),{toggleSort:I}=da({initialSortOrder:r,sortBy:o,multiSort:i,mustSort:u,page:d}),{sortByWithGroups:P,opened:V,extractRows:F,isGroupOpen:R,toggleGroup:D}=va({groupBy:n,sortBy:o,disableSort:m}),{sortedItems:v}=ca(e,p,P,{transform:G=>({...G.raw,...G.columns}),sortFunctions:b,sortRawFunctions:h}),{flatItems:k}=ba(v,n,V,()=>!!t["group-summary"]),_=T(()=>k.value.length),{startIndex:$,stopIndex:L,pageCount:j,setItemsPerPage:E}=qt({page:d,itemsPerPage:c,itemsLength:_}),{paginatedItems:W}=Xt({items:k,startIndex:$,stopIndex:L,itemsPerPage:c}),K=T(()=>F(W.value)),{isSelected:fe,select:it,selectAll:dt,toggleSelect:ct,someSelected:ft,allSelected:gt}=oa(e,{allItems:S,currentPage:K}),{isExpanded:mt,toggleExpand:vt}=Sa(e);Da({page:d,itemsPerPage:c,sortBy:o,groupBy:n,search:s}),Gt({VDataTableRows:{hideNoData:O(()=>e.hideNoData),noDataText:O(()=>e.noDataText),loading:O(()=>e.loading),loadingText:O(()=>e.loadingText)}});const A=T(()=>({page:d.value,itemsPerPage:c.value,sortBy:o.value,pageCount:j.value,toggleSort:I,setItemsPerPage:E,someSelected:ft.value,allSelected:gt.value,isSelected:fe,select:it,selectAll:dt,toggleSelect:ct,isExpanded:mt,toggleExpand:vt,isGroupOpen:R,toggleGroup:D,items:K.value.map(G=>G.raw),internalItems:K.value,groupedItems:W.value,columns:g.value,headers:x.value}));return J(()=>{const G=Oe.filterProps(e),ht=Be.filterProps(ye(e,["multiSort"])),bt=_e.filterProps(e),yt=Ee.filterProps(e);return w(Ee,H({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},yt,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>{var Q;return(Q=t.top)==null?void 0:Q.call(t,A.value)},default:()=>{var Q,Pe,we,ke,Ie,De;return t.default?t.default(A.value):y(U,null,[(Q=t.colgroup)==null?void 0:Q.call(t,A.value),!e.hideDefaultHeader&&y("thead",{key:"thead"},[w(Be,H(ht,{multiSort:!!e.multiSort}),t)]),(Pe=t.thead)==null?void 0:Pe.call(t,A.value),!e.hideDefaultBody&&y("tbody",null,[(we=t["body.prepend"])==null?void 0:we.call(t,A.value),t.body?t.body(A.value):w(_e,H(l,bt,{items:W.value}),t),(ke=t["body.append"])==null?void 0:ke.call(t,A.value)]),(Ie=t.tbody)==null?void 0:Ie.call(t,A.value),(De=t.tfoot)==null?void 0:De.call(t,A.value)])},bottom:()=>t.bottom?t.bottom(A.value):!e.hideDefaultFooter&&y(U,null,[w(Lt,null,null),w(Oe,G,{prepend:t["footer.prepend"]})])})}),{}}});export{_a as V,Ee as a}; diff --git a/assets/VDatePicker-CtGCqIzy.js b/assets/VDatePicker-D6FkGAp6.js similarity index 94% rename from assets/VDatePicker-CtGCqIzy.js rename to assets/VDatePicker-D6FkGAp6.js index e42af2a..5259129 100644 --- a/assets/VDatePicker-CtGCqIzy.js +++ b/assets/VDatePicker-D6FkGAp6.js @@ -1,2 +1,2 @@ -import{g as E,p as L,Z as re,a5 as P,c as U,d as b,y as O,i as g,F as Q,x as de,aI as ne,e as K,ac as le,aO as te,aB as me,b1 as be,n as ge,b2 as Be,b3 as q,a3 as N,a4 as j,$ as Ne,a0 as ae,ay as H,a6 as De,t as We,ae as Z,b4 as Le,a$ as we,b5 as xe,E as B,b6 as se,b7 as Fe,I as Re,aP as He,b8 as je,b9 as Ee,ba as Ue}from"./index-BBVdlVQD.js";import{a as pe}from"./VBadge-H7ndD91w.js";import{V as ue,m as ze}from"./VSheet-DZUeXnyk.js";const Me=L({active:{type:[String,Array],default:void 0},controlHeight:[Number,String],controlVariant:{type:String,default:"docked"},noMonthPicker:Boolean,disabled:{type:[Boolean,String,Array],default:null},nextIcon:{type:te,default:"$next"},prevIcon:{type:te,default:"$prev"},modeIcon:{type:te,default:"$subgroup"},text:String,monthText:String,yearText:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),ce=E()({name:"VDatePickerControls",props:Me(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:prev-year":()=>!0,"click:next-year":()=>!0},setup(e,a){let{emit:c,slots:l}=a;const{t}=re(),v=P(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),k=P(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),d=P(()=>Array.isArray(e.disabled)?e.disabled.includes("prev-month"):!!e.disabled),s=P(()=>Array.isArray(e.disabled)?e.disabled.includes("next-month"):!!e.disabled),w=P(()=>Array.isArray(e.disabled)?e.disabled.includes("prev-year"):!!e.disabled),r=P(()=>Array.isArray(e.disabled)?e.disabled.includes("next-year"):!!e.disabled);function h(){c("click:prev")}function x(){c("click:next")}function M(){c("click:prev-year")}function I(){c("click:next-year")}function n(){c("click:year")}function m(){c("click:month")}return U(()=>{const o={VBtn:{density:"comfortable",variant:"text"}},Y=b(O,{"data-testid":"prev-month",disabled:d.value,icon:e.prevIcon,"aria-label":t("$vuetify.datePicker.ariaLabel.previousMonth"),onClick:h},null),T=b(O,{"data-testid":"next-month",disabled:s.value,icon:e.nextIcon,"aria-label":t("$vuetify.datePicker.ariaLabel.nextMonth"),onClick:x},null),_=b(O,{"data-testid":"prev-year",disabled:w.value,icon:e.prevIcon,"aria-label":t("$vuetify.datePicker.ariaLabel.previousYear"),onClick:M},null),F=b(O,{"data-testid":"next-year",disabled:r.value,icon:e.nextIcon,"aria-label":t("$vuetify.datePicker.ariaLabel.nextYear"),onClick:I},null),y=b(O,{class:"v-date-picker-controls__only-month-btn","data-testid":"month-btn",density:"default",disabled:v.value,text:e.monthText,appendIcon:e.modeIcon,rounded:!0,"aria-label":t("$vuetify.datePicker.ariaLabel.selectMonth"),onClick:m},null),i=b(O,{class:"v-date-picker-controls__only-year-btn","data-testid":"year-btn",density:"default",disabled:k.value,text:e.yearText,appendIcon:e.modeIcon,rounded:!0,"aria-label":t("$vuetify.datePicker.ariaLabel.selectYear"),onClick:n},null),D=b(O,{class:"v-date-picker-controls__year-btn","data-testid":"year-btn",density:"default",disabled:k.value,text:e.text,appendIcon:e.modeIcon,rounded:!0,"aria-label":t("$vuetify.datePicker.ariaLabel.selectYear"),onClick:n},null),C=g(Q,null,[b(O,{class:"v-date-picker-controls__month-btn","data-testid":"month-btn",height:"36",disabled:v.value,text:e.text,rounded:!0,"aria-label":t("$vuetify.datePicker.ariaLabel.selectMonth"),onClick:m},null),b(O,{class:"v-date-picker-controls__mode-btn","data-testid":"year-btn",disabled:k.value,icon:e.modeIcon,"aria-label":t("$vuetify.datePicker.ariaLabel.selectYear"),onClick:n},null)]),A={viewMode:e.viewMode,disabled:Array.isArray(e.disabled)?e.disabled:[],monthYearText:e.text??"",monthText:e.monthText??"",yearText:e.yearText??"",openMonths:m,openYears:n,prevMonth:h,nextMonth:x,prevYear:M,nextYear:I},p=g(Q,null,[e.noMonthPicker?D:C,b(de,null,null),g("div",{class:"v-date-picker-controls__month"},[Y,T])]),X=g(Q,null,[g("div",{class:"v-date-picker-controls__month"},[Y,y,T]),b(de,null,null),g("div",{class:"v-date-picker-controls__year"},[_,i,F])]);return b(le,{defaults:o},{default:()=>{var ee;return[g("div",{class:K(["v-date-picker-controls",`v-date-picker-controls--variant-${e.controlVariant}`]),style:{"--v-date-picker-controls-height":ne(e.controlHeight)}},[((ee=l.default)==null?void 0:ee.call(l,A))??g(Q,null,[e.controlVariant==="modal"&&p,e.controlVariant==="docked"&&X])])]}})}),{}}}),Je=L({appendIcon:te,color:String,header:String,transition:String,onClick:Be()},"VDatePickerHeader"),ve=E()({name:"VDatePickerHeader",props:Je(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,a){let{emit:c,slots:l}=a;const{backgroundColorClasses:t,backgroundColorStyles:v}=me(()=>e.color);function k(){c("click")}function d(){c("click:append")}return U(()=>{const s=!!(l.default||e.header),w=!!(l.append||e.appendIcon);return g("div",{class:K(["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},t.value]),style:ge(v.value),onClick:k},[l.prepend&&g("div",{key:"prepend",class:"v-date-picker-header__prepend"},[l.prepend()]),s&&b(be,{key:"content",name:e.transition},{default:()=>{var r;return[g("div",{key:e.header,class:"v-date-picker-header__content"},[((r=l.default)==null?void 0:r.call(l))??e.header])]}}),w&&g("div",{class:"v-date-picker-header__append"},[l.append?b(le,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>{var r;return[(r=l.append)==null?void 0:r.call(l)]}}):b(O,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:d},null)])])}),{}}}),Ke=L({allowedDates:[Array,Function],disabled:{type:Boolean,default:null},displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]},weeksInMonth:{type:String,default:"dynamic"},firstDayOfWeek:{type:[Number,String],default:void 0},firstDayOfYear:{type:[Number,String],default:void 0},weekdayFormat:String},"calendar");function Ze(e){const a=q(),c=N(e,"modelValue",[],n=>j(n).map(m=>a.date(m))),l=P(()=>e.displayValue?a.date(e.displayValue):c.value.length>0?a.date(c.value[0]):e.min?a.date(e.min):Array.isArray(e.allowedDates)?a.date(e.allowedDates[0]):a.date()),t=N(e,"year",void 0,n=>{const m=n!=null?Number(n):a.getYear(l.value);return a.startOfYear(a.setYear(a.date(),m))},n=>a.getYear(n)),v=N(e,"month",void 0,n=>{const m=n!=null?Number(n):a.getMonth(l.value),o=a.setYear(a.startOfMonth(a.date()),a.getYear(t.value));return a.setMonth(o,m)},n=>a.getMonth(n)),k=P(()=>{const n=a.toJsDate(a.startOfWeek(a.date(),e.firstDayOfWeek)).getDay();return a.getWeekdays(e.firstDayOfWeek,e.weekdayFormat).filter((m,o)=>e.weekdays.includes((o+n)%7))}),d=P(()=>{const n=a.getWeekArray(v.value,e.firstDayOfWeek),m=n.flat(),o=6*7;if(e.weeksInMonth==="static"&&m.lengthe.weekdays.includes(a.toJsDate(o).getDay())).map((o,Y)=>{const T=a.toISO(o),_=!a.isSameMonth(o,v.value),F=a.isSameDay(o,a.startOfMonth(v.value)),y=a.isSameDay(o,a.endOfMonth(v.value)),i=a.isSameDay(o,v.value),D=e.weekdays.length;return{date:o,formatted:a.format(o,"keyboardDate"),isAdjacent:_,isDisabled:I(o),isEnd:y,isHidden:_&&!e.showAdjacentMonths,isSame:i,isSelected:c.value.some(C=>a.isSameDay(o,C)),isStart:F,isToday:a.isSameDay(o,m),isWeekEnd:Y%D===D-1,isWeekStart:Y%D===0,isoDate:T,localized:a.format(o,"dayOfMonth"),month:a.getMonth(o),year:a.getYear(o)}})}const w=P(()=>{const n=a.startOfWeek(l.value,e.firstDayOfWeek),m=[];for(let Y=0;Y<=6;Y++)m.push(a.addDays(n,Y));const o=a.date();return s(m,o)}),r=P(()=>{const n=d.value.flat(),m=a.date();return s(n,m)}),h=P(()=>d.value.map(n=>n.length?a.getWeek(n[0],e.firstDayOfWeek,e.firstDayOfYear):null)),{minDate:x,maxDate:M}=Pe(e);function I(n){if(e.disabled)return!0;const m=a.date(n);return x.value&&a.isBefore(a.endOfDay(m),x.value)||M.value&&a.isAfter(m,M.value)?!0:Array.isArray(e.allowedDates)&&e.allowedDates.length>0?!e.allowedDates.some(o=>a.isSameDay(a.date(o),m)):typeof e.allowedDates=="function"?!e.allowedDates(m):!1}return{displayValue:l,daysInMonth:r,daysInWeek:w,genDays:s,model:c,weeksInMonth:d,weekdayLabels:k,weekNumbers:h}}function Pe(e){const a=q(),c=P(()=>{if(!e.min)return null;const k=a.date(e.min);return a.isValid(k)?k:null}),l=P(()=>{if(!e.max)return null;const k=a.date(e.max);return a.isValid(k)?k:null});function t(k){return c.value&&a.isBefore(k,c.value)?c.value:l.value&&a.isAfter(k,l.value)?l.value:k}function v(k){return(!c.value||a.isAfter(k,c.value))&&(!l.value||a.isBefore(k,l.value))}return{minDate:c,maxDate:l,clampDate:t,isInAllowedRange:v}}const Se=L({color:String,hideWeekdays:Boolean,multiple:[Boolean,Number,String],showWeek:Boolean,transition:{type:String,default:"picker-transition"},reverseTransition:{type:String,default:"picker-reverse-transition"},events:{type:[Array,Function,Object],default:()=>null},eventColor:{type:[Array,Function,Object,String],default:()=>null},...Z(Ke(),["displayValue"])},"VDatePickerMonth"),fe=E()({name:"VDatePickerMonth",props:Se(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,a){let{emit:c,slots:l}=a;const t=Ne(),{t:v}=re(),{daysInMonth:k,model:d,weekNumbers:s,weekdayLabels:w}=Ze(e),r=q(),h=ae(),x=ae(),M=ae(!1),I=H(()=>M.value?e.reverseTransition:e.transition);e.multiple==="range"&&d.value.length>0&&(h.value=d.value[0],d.value.length>1&&(x.value=d.value[d.value.length-1]));const n=P(()=>{const y=["number","string"].includes(typeof e.multiple)?Number(e.multiple):1/0;return d.value.length>=y});De(k,(y,i)=>{i&&(M.value=r.isBefore(y[0].date,i[0].date))});function m(y){const i=r.startOfDay(y);if(d.value.length===0?h.value=void 0:d.value.length===1&&(h.value=d.value[0],x.value=void 0),!h.value)h.value=i,d.value=[h.value];else if(x.value)h.value=y,x.value=void 0,d.value=[h.value];else{if(r.isSameDay(i,h.value)){h.value=void 0,d.value=[];return}else r.isBefore(i,h.value)?(x.value=r.endOfDay(h.value),h.value=i):x.value=r.endOfDay(i);d.value=Le(r,h.value,x.value)}}function o(y){const i=r.format(y.date,"fullDateWithWeekday"),D=y.isToday?"currentDate":"selectDate";return v(`$vuetify.datePicker.ariaLabel.${D}`,i)}function Y(y){const i=d.value.findIndex(D=>r.isSameDay(D,y));if(i===-1)d.value=[...d.value,y];else{const D=[...d.value];D.splice(i,1),d.value=D}}function T(y){e.multiple==="range"?m(y):e.multiple?Y(y):d.value=[y]}function _(y){const{events:i,eventColor:D}=e;let C,A=[];if(Array.isArray(i)?C=i.includes(y):i instanceof Function?C=i(y)||!1:i?C=i[y]||!1:C=!1,C)C!==!0?A=j(C):typeof D=="string"?A=[D]:typeof D=="function"?A=j(D(y)):Array.isArray(D)?A=D:typeof D=="object"&&D!==null&&(A=j(D[y]));else return[];return A.length?A.filter(Boolean).map(p=>typeof p=="string"?p:"surface-variant"):["surface-variant"]}function F(y){const i=_(y);return i.length?g("div",{class:"v-date-picker-month__events"},[i.map(D=>b(pe,{dot:!0,color:D},null))]):null}U(()=>g("div",{class:"v-date-picker-month",style:{"--v-date-picker-days-in-week":e.weekdays.length}},[e.showWeek&&g("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&g("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[We(" ")]),s.value.map(y=>g("div",{class:K(["v-date-picker-month__day","v-date-picker-month__day--adjacent"])},[y]))]),b(be,{name:I.value},{default:()=>{var y;return[g("div",{ref:t,key:(y=k.value[0].date)==null?void 0:y.toString(),class:"v-date-picker-month__days"},[!e.hideWeekdays&&w.value.map(i=>g("div",{class:K(["v-date-picker-month__day","v-date-picker-month__weekday"])},[i])),k.value.map((i,D)=>{var A;const C={props:{class:"v-date-picker-month__day-btn",color:i.isSelected||i.isToday?e.color:void 0,disabled:i.isDisabled,icon:!0,ripple:!1,variant:i.isSelected?"flat":i.isToday?"outlined":"text","aria-label":o(i),"aria-current":i.isToday?"date":void 0,onClick:()=>T(i.date)},item:i,i:D};return n.value&&!i.isSelected&&(i.isDisabled=!0),g("div",{class:K(["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":i.isAdjacent,"v-date-picker-month__day--hide-adjacent":i.isHidden,"v-date-picker-month__day--selected":i.isSelected,"v-date-picker-month__day--week-end":i.isWeekEnd,"v-date-picker-month__day--week-start":i.isWeekStart}]),"data-v-date":i.isDisabled?void 0:i.isoDate},[(e.showAdjacentMonths||!i.isAdjacent)&&(((A=l.day)==null?void 0:A.call(l,C))??b(O,C.props,{default:()=>[i.localized,F(i.isoDate)]}))])})])]}})]))}}),Ve=L({color:String,height:[String,Number],min:null,max:null,modelValue:Number,year:Number,allowedMonths:[Array,Function]},"VDatePickerMonths"),he=E()({name:"VDatePickerMonths",props:Ve(),emits:{"update:modelValue":e=>!0},setup(e,a){let{emit:c,slots:l}=a;const t=q(),v=N(e,"modelValue"),k=P(()=>{let s=t.startOfYear(t.date());return e.year&&(s=t.setYear(s,e.year)),we(12).map(w=>{const r=t.format(s,"monthShort"),h=t.format(s,"month"),x=!!(!d(w)||e.min&&t.isAfter(t.startOfMonth(t.date(e.min)),s)||e.max&&t.isAfter(s,t.startOfMonth(t.date(e.max))));return s=t.getNextMonth(s),{isDisabled:x,text:r,label:h,value:w}})});xe(()=>{v.value=v.value??t.getMonth(t.date())});function d(s){return Array.isArray(e.allowedMonths)&&e.allowedMonths.length?e.allowedMonths.includes(s):typeof e.allowedMonths=="function"?e.allowedMonths(s):!0}return U(()=>g("div",{class:"v-date-picker-months",style:{height:ne(e.height)}},[g("div",{class:"v-date-picker-months__content"},[k.value.map((s,w)=>{var x;const r={active:v.value===w,ariaLabel:s.label,color:v.value===w?e.color:void 0,disabled:s.isDisabled,rounded:!0,text:s.text,variant:v.value===s.value?"flat":"text",onClick:()=>h(w)};function h(M){if(v.value===M){c("update:modelValue",v.value);return}v.value=M}return((x=l.month)==null?void 0:x.call(l,{month:s,i:w,props:r}))??b(O,B({key:"month"},r),null)})])])),{}}}),Ye=L({color:String,height:[String,Number],min:null,max:null,modelValue:Number,allowedYears:[Array,Function]},"VDatePickerYears"),ye=E()({name:"VDatePickerYears",props:Ye(),directives:{vIntersect:se},emits:{"update:modelValue":e=>!0},setup(e,a){let{emit:c,slots:l}=a;const t=q(),v=N(e,"modelValue"),k=P(()=>{const r=t.getYear(t.date());let h=r-100,x=r+52;e.min&&(h=t.getYear(t.date(e.min))),e.max&&(x=t.getYear(t.date(e.max)));let M=t.startOfYear(t.date());return M=t.setYear(M,h),we(x-h+1,h).map(I=>{const n=t.format(M,"year");return M=t.setYear(M,t.getYear(M)+1),{text:n,value:I,isDisabled:!w(I)}})});xe(()=>{v.value=v.value??t.getYear(t.date())});const d=Fe();function s(){var r,h;(r=d.el)==null||r.focus(),(h=d.el)==null||h.scrollIntoView({block:"center"})}function w(r){return Array.isArray(e.allowedYears)&&e.allowedYears.length?e.allowedYears.includes(r):typeof e.allowedYears=="function"?e.allowedYears(r):!0}return U(()=>Re(g("div",{class:"v-date-picker-years",style:{height:ne(e.height)}},[g("div",{class:"v-date-picker-years__content"},[k.value.map((r,h)=>{var M;const x={ref:v.value===r.value?d:void 0,active:v.value===r.value,color:v.value===r.value?e.color:void 0,rounded:!0,text:r.text,disabled:r.isDisabled,variant:v.value===r.value?"flat":"text",onClick:()=>{if(v.value===r.value){c("update:modelValue",v.value);return}v.value=r.value}};return((M=l.year)==null?void 0:M.call(l,{year:r,i:h,props:x}))??b(O,B({key:"month"},x),null)})])]),[[se,{handler:s},null,{once:!0}]])),{}}}),qe=He("v-picker-title"),Ce=L({bgColor:String,divided:Boolean,landscape:Boolean,title:String,hideHeader:Boolean,hideTitle:Boolean,...ze()},"VPicker"),ke=E()({name:"VPicker",props:Ce(),setup(e,a){let{slots:c}=a;const{backgroundColorClasses:l,backgroundColorStyles:t}=me(()=>e.color);return U(()=>{const v=ue.filterProps(e),k=!e.hideTitle&&!!(e.title||c.title);return b(ue,B(v,{color:e.bgColor,class:["v-picker",{"v-picker--divided":e.divided,"v-picker--landscape":e.landscape,"v-picker--with-actions":!!c.actions},e.class],style:e.style}),{default:()=>{var d;return[!e.hideHeader&&g("div",{key:"header",class:K(["v-picker__header-wrapper",l.value]),style:ge([t.value])},[k&&b(qe,{key:"picker-title"},{default:()=>{var s;return[((s=c.title)==null?void 0:s.call(c))??e.title]}}),c.header&&g("div",{class:"v-picker__header"},[c.header()])]),g("div",{class:"v-picker__body"},[(d=c.default)==null?void 0:d.call(c)]),c.actions&&b(le,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[g("div",{class:"v-picker__actions"},[c.actions()])]})]}})}),{}}}),Ge=L({header:{type:String,default:"$vuetify.datePicker.header"},headerColor:String,headerDateFormat:{type:String,default:"normalDateWithWeekday"},landscapeHeaderWidth:[Number,String],...Me(),...Se({weeksInMonth:"static"}),...Z(Ve(),["modelValue"]),...Z(Ye(),["modelValue"]),...Ce({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),tt=E()({name:"VDatePicker",props:Ge(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,a){let{emit:c,slots:l}=a;const t=q(),{t:v}=re(),{rtlClasses:k}=je(),d=N(e,"modelValue",void 0,u=>j(u).map(f=>t.date(f)),u=>e.multiple?u:u[0]),s=N(e,"viewMode"),{minDate:w,maxDate:r,clampDate:h}=Pe(e),x=P(()=>{var V;const u=t.date(),f=(V=d.value)!=null&&V[0]?t.date(d.value[0]):h(u);return f&&t.isValid(f)?f:u}),M=H(()=>e.headerColor??e.color),I=N(e,"month"),n=P({get:()=>Number(I.value??t.getMonth(t.startOfMonth(x.value))),set:u=>I.value=u}),m=N(e,"year"),o=P({get:()=>Number(m.value??t.getYear(t.startOfYear(t.setMonth(x.value,n.value)))),set:u=>m.value=u}),Y=ae(!1),T=P(()=>{if(e.multiple&&d.value.length>1)return v("$vuetify.datePicker.itemsSelected",d.value.length);const u=d.value[0]&&t.isValid(d.value[0])?t.format(t.date(d.value[0]),e.headerDateFormat):v(e.header);return e.landscape&&u.split(" ").length===3?u.replace(" ",` -`):u}),_=H(()=>{const u=String(n.value+1).padStart(2,"0");return t.parseISO(`${o.value}-${u}-01`)}),F=H(()=>t.format(_.value,"monthAndYear")),y=H(()=>t.format(_.value,"monthShort")),i=H(()=>t.format(_.value,"year")),D=H(()=>`date-picker-header${Y.value?"-reverse":""}-transition`),C=P(()=>{if(e.disabled)return!0;const u=[];if(s.value!=="month")u.push("prev-month","next-month","prev-year","next-year");else{let f=t.date();if(f=t.startOfMonth(f),f=t.setMonth(f,n.value),f=t.setYear(f,o.value),w.value){const V=t.addDays(t.startOfMonth(f),-1),$=t.addDays(t.startOfYear(f),-1);t.isAfter(w.value,V)&&u.push("prev-month"),t.isAfter(w.value,$)&&u.push("next-year")}if(r.value){const V=t.addDays(t.endOfMonth(f),1),$=t.addDays(t.endOfYear(f),1);t.isAfter(V,r.value)&&u.push("next-month"),t.isAfter($,r.value)&&u.push("next-year")}}return u}),A=P(()=>e.allowedYears||ee),p=P(()=>e.allowedMonths||_e);function X(u,f){const V=e.allowedDates;if(typeof V!="function")return!0;const $=1+Ue(t,u,f);for(let W=0;W<$;W++)if(V(t.addDays(u,W)))return!0;return!1}function ee(u){if(typeof e.allowedDates=="function"){const f=t.parseISO(`${u}-01-01`);return X(f,t.endOfYear(f))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const f of e.allowedDates)if(t.getYear(t.date(f))===u)return!0;return!1}return!0}function _e(u){if(typeof e.allowedDates=="function"){const f=String(u+1).padStart(2,"0"),V=t.parseISO(`${o.value}-${f}-01`);return X(V,t.endOfMonth(V))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const f of e.allowedDates)if(t.getYear(t.date(f))===o.value&&t.getMonth(t.date(f))===u)return!0;return!1}return!0}function Ae(){n.value<11?n.value++:(o.value++,n.value=0,R()),G()}function Oe(){n.value>0?n.value--:(o.value--,n.value=11,R()),G()}function Ie(){if(o.value++,r.value){const u=String(n.value+1).padStart(2,"0"),f=t.parseISO(`${o.value}-${u}-01`);t.isAfter(f,r.value)&&(n.value=t.getMonth(r.value))}R()}function Te(){if(o.value--,w.value){const u=String(n.value+1).padStart(2,"0"),f=t.endOfMonth(t.parseISO(`${o.value}-${u}-01`));t.isAfter(w.value,f)&&(n.value=t.getMonth(w.value))}R()}function $e(){s.value="month"}function ie(){s.value=s.value==="months"?"month":"months"}function oe(){s.value=s.value==="year"?"month":"year"}function G(){s.value==="months"&&ie()}function R(){s.value==="year"&&oe()}return De(d,(u,f)=>{const V=j(f),$=j(u);if(!$.length)return;const W=t.date(V[V.length-1]),z=t.date($[$.length-1]);if(t.isSameDay(W,z))return;const J=t.getMonth(z),S=t.getYear(z);J!==n.value&&(n.value=J,G()),S!==o.value&&(o.value=S,R()),Y.value=t.isBefore(W,z)}),U(()=>{const u=ke.filterProps(e),f=Z(ce.filterProps(e),["viewMode"]),V=ve.filterProps(e),$=fe.filterProps(e),W=Z(he.filterProps(e),["modelValue"]),z=Z(ye.filterProps(e),["modelValue"]),J={color:M.value,header:T.value,transition:D.value};return b(ke,B(u,{color:M.value,class:["v-date-picker",`v-date-picker--${s.value}`,{"v-date-picker--show-week":e.showWeek},k.value,e.class],style:[{"--v-date-picker-landscape-header-width":ne(e.landscapeHeaderWidth)},e.style]}),{title:()=>{var S;return((S=l.title)==null?void 0:S.call(l))??g("div",{class:"v-date-picker__title"},[v(e.title)])},header:()=>l.header?b(le,{defaults:{VDatePickerHeader:{...J}}},{default:()=>{var S;return[(S=l.header)==null?void 0:S.call(l,J)]}}):b(ve,B({key:"header"},V,J,{onClick:s.value!=="month"?$e:void 0}),{prepend:l.prepend,append:l.append}),default:()=>g(Q,null,[b(ce,B(f,{disabled:C.value,viewMode:s.value,text:F.value,monthText:y.value,yearText:i.value,"onClick:next":Ae,"onClick:prev":Oe,"onClick:nextYear":Ie,"onClick:prevYear":Te,"onClick:month":ie,"onClick:year":oe}),{default:l.controls}),b(Ee,{hideOnLeave:!0},{default:()=>[s.value==="months"?b(he,B({key:"date-picker-months"},W,{modelValue:n.value,"onUpdate:modelValue":[S=>n.value=S,G],min:w.value,max:r.value,year:o.value,allowedMonths:p.value}),{month:l.month}):s.value==="year"?b(ye,B({key:"date-picker-years"},z,{modelValue:o.value,"onUpdate:modelValue":[S=>o.value=S,R],min:w.value,max:r.value,allowedYears:A.value}),{year:l.year}):b(fe,B({key:"date-picker-month"},$,{modelValue:d.value,"onUpdate:modelValue":S=>d.value=S,month:n.value,"onUpdate:month":[S=>n.value=S,G],year:o.value,"onUpdate:year":[S=>o.value=S,R],min:w.value,max:r.value}),{day:l.day})]})]),actions:l.actions})}),{}}});export{tt as V,ke as a,Ce as m}; +import{g as E,p as L,Z as re,a5 as P,c as U,d as b,y as O,i as g,F as Q,x as de,aI as ne,e as Z,ac as le,a$ as te,aB as me,b0 as be,n as ge,b1 as Be,b2 as q,a3 as N,a4 as j,$ as Ne,a0 as ae,ay as H,a6 as De,t as We,ae as K,b3 as Le,aZ as we,b4 as xe,E as B,b5 as se,b6 as Fe,I as Re,aN as He,b7 as je,b8 as Ee,b9 as Ue}from"./index-GyS8nTIx.js";import{a as pe}from"./VBadge-Dfdn66Fe.js";import{V as ue,m as ze}from"./VSheet-DBWP7oOE.js";const Me=L({active:{type:[String,Array],default:void 0},controlHeight:[Number,String],controlVariant:{type:String,default:"docked"},noMonthPicker:Boolean,disabled:{type:[Boolean,String,Array],default:null},nextIcon:{type:te,default:"$next"},prevIcon:{type:te,default:"$prev"},modeIcon:{type:te,default:"$subgroup"},text:String,monthText:String,yearText:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),ce=E()({name:"VDatePickerControls",props:Me(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:prev-year":()=>!0,"click:next-year":()=>!0},setup(e,a){let{emit:c,slots:l}=a;const{t}=re(),v=P(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),k=P(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),d=P(()=>Array.isArray(e.disabled)?e.disabled.includes("prev-month"):!!e.disabled),s=P(()=>Array.isArray(e.disabled)?e.disabled.includes("next-month"):!!e.disabled),w=P(()=>Array.isArray(e.disabled)?e.disabled.includes("prev-year"):!!e.disabled),r=P(()=>Array.isArray(e.disabled)?e.disabled.includes("next-year"):!!e.disabled);function h(){c("click:prev")}function x(){c("click:next")}function M(){c("click:prev-year")}function I(){c("click:next-year")}function n(){c("click:year")}function m(){c("click:month")}return U(()=>{const o={VBtn:{density:"comfortable",variant:"text"}},Y=b(O,{"data-testid":"prev-month",disabled:d.value,icon:e.prevIcon,"aria-label":t("$vuetify.datePicker.ariaLabel.previousMonth"),onClick:h},null),T=b(O,{"data-testid":"next-month",disabled:s.value,icon:e.nextIcon,"aria-label":t("$vuetify.datePicker.ariaLabel.nextMonth"),onClick:x},null),_=b(O,{"data-testid":"prev-year",disabled:w.value,icon:e.prevIcon,"aria-label":t("$vuetify.datePicker.ariaLabel.previousYear"),onClick:M},null),F=b(O,{"data-testid":"next-year",disabled:r.value,icon:e.nextIcon,"aria-label":t("$vuetify.datePicker.ariaLabel.nextYear"),onClick:I},null),y=b(O,{class:"v-date-picker-controls__only-month-btn","data-testid":"month-btn",density:"default",disabled:v.value,text:e.monthText,appendIcon:e.modeIcon,rounded:!0,"aria-label":t("$vuetify.datePicker.ariaLabel.selectMonth"),onClick:m},null),i=b(O,{class:"v-date-picker-controls__only-year-btn","data-testid":"year-btn",density:"default",disabled:k.value,text:e.yearText,appendIcon:e.modeIcon,rounded:!0,"aria-label":t("$vuetify.datePicker.ariaLabel.selectYear"),onClick:n},null),D=b(O,{class:"v-date-picker-controls__year-btn","data-testid":"year-btn",density:"default",disabled:k.value,text:e.text,appendIcon:e.modeIcon,rounded:!0,"aria-label":t("$vuetify.datePicker.ariaLabel.selectYear"),onClick:n},null),C=g(Q,null,[b(O,{class:"v-date-picker-controls__month-btn","data-testid":"month-btn",height:"36",disabled:v.value,text:e.text,rounded:!0,"aria-label":t("$vuetify.datePicker.ariaLabel.selectMonth"),onClick:m},null),b(O,{class:"v-date-picker-controls__mode-btn","data-testid":"year-btn",disabled:k.value,icon:e.modeIcon,"aria-label":t("$vuetify.datePicker.ariaLabel.selectYear"),onClick:n},null)]),A={viewMode:e.viewMode,disabled:Array.isArray(e.disabled)?e.disabled:[],monthYearText:e.text??"",monthText:e.monthText??"",yearText:e.yearText??"",openMonths:m,openYears:n,prevMonth:h,nextMonth:x,prevYear:M,nextYear:I},p=g(Q,null,[e.noMonthPicker?D:C,b(de,null,null),g("div",{class:"v-date-picker-controls__month"},[Y,T])]),X=g(Q,null,[g("div",{class:"v-date-picker-controls__month"},[Y,y,T]),b(de,null,null),g("div",{class:"v-date-picker-controls__year"},[_,i,F])]);return b(le,{defaults:o},{default:()=>{var ee;return[g("div",{class:Z(["v-date-picker-controls",`v-date-picker-controls--variant-${e.controlVariant}`]),style:{"--v-date-picker-controls-height":ne(e.controlHeight)}},[((ee=l.default)==null?void 0:ee.call(l,A))??g(Q,null,[e.controlVariant==="modal"&&p,e.controlVariant==="docked"&&X])])]}})}),{}}}),Je=L({appendIcon:te,color:String,header:String,transition:String,onClick:Be()},"VDatePickerHeader"),ve=E()({name:"VDatePickerHeader",props:Je(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,a){let{emit:c,slots:l}=a;const{backgroundColorClasses:t,backgroundColorStyles:v}=me(()=>e.color);function k(){c("click")}function d(){c("click:append")}return U(()=>{const s=!!(l.default||e.header),w=!!(l.append||e.appendIcon);return g("div",{class:Z(["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},t.value]),style:ge(v.value),onClick:k},[l.prepend&&g("div",{key:"prepend",class:"v-date-picker-header__prepend"},[l.prepend()]),s&&b(be,{key:"content",name:e.transition},{default:()=>{var r;return[g("div",{key:e.header,class:"v-date-picker-header__content"},[((r=l.default)==null?void 0:r.call(l))??e.header])]}}),w&&g("div",{class:"v-date-picker-header__append"},[l.append?b(le,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>{var r;return[(r=l.append)==null?void 0:r.call(l)]}}):b(O,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:d},null)])])}),{}}}),Ze=L({allowedDates:[Array,Function],disabled:{type:Boolean,default:null},displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]},weeksInMonth:{type:String,default:"dynamic"},firstDayOfWeek:{type:[Number,String],default:void 0},firstDayOfYear:{type:[Number,String],default:void 0},weekdayFormat:String},"calendar");function Ke(e){const a=q(),c=N(e,"modelValue",[],n=>j(n).map(m=>a.date(m))),l=P(()=>e.displayValue?a.date(e.displayValue):c.value.length>0?a.date(c.value[0]):e.min?a.date(e.min):Array.isArray(e.allowedDates)?a.date(e.allowedDates[0]):a.date()),t=N(e,"year",void 0,n=>{const m=n!=null?Number(n):a.getYear(l.value);return a.startOfYear(a.setYear(a.date(),m))},n=>a.getYear(n)),v=N(e,"month",void 0,n=>{const m=n!=null?Number(n):a.getMonth(l.value),o=a.setYear(a.startOfMonth(a.date()),a.getYear(t.value));return a.setMonth(o,m)},n=>a.getMonth(n)),k=P(()=>{const n=a.toJsDate(a.startOfWeek(a.date(),e.firstDayOfWeek)).getDay();return a.getWeekdays(e.firstDayOfWeek,e.weekdayFormat).filter((m,o)=>e.weekdays.includes((o+n)%7))}),d=P(()=>{const n=a.getWeekArray(v.value,e.firstDayOfWeek),m=n.flat(),o=6*7;if(e.weeksInMonth==="static"&&m.lengthe.weekdays.includes(a.toJsDate(o).getDay())).map((o,Y)=>{const T=a.toISO(o),_=!a.isSameMonth(o,v.value),F=a.isSameDay(o,a.startOfMonth(v.value)),y=a.isSameDay(o,a.endOfMonth(v.value)),i=a.isSameDay(o,v.value),D=e.weekdays.length;return{date:o,formatted:a.format(o,"keyboardDate"),isAdjacent:_,isDisabled:I(o),isEnd:y,isHidden:_&&!e.showAdjacentMonths,isSame:i,isSelected:c.value.some(C=>a.isSameDay(o,C)),isStart:F,isToday:a.isSameDay(o,m),isWeekEnd:Y%D===D-1,isWeekStart:Y%D===0,isoDate:T,localized:a.format(o,"dayOfMonth"),month:a.getMonth(o),year:a.getYear(o)}})}const w=P(()=>{const n=a.startOfWeek(l.value,e.firstDayOfWeek),m=[];for(let Y=0;Y<=6;Y++)m.push(a.addDays(n,Y));const o=a.date();return s(m,o)}),r=P(()=>{const n=d.value.flat(),m=a.date();return s(n,m)}),h=P(()=>d.value.map(n=>n.length?a.getWeek(n[0],e.firstDayOfWeek,e.firstDayOfYear):null)),{minDate:x,maxDate:M}=Pe(e);function I(n){if(e.disabled)return!0;const m=a.date(n);return x.value&&a.isBefore(a.endOfDay(m),x.value)||M.value&&a.isAfter(m,M.value)?!0:Array.isArray(e.allowedDates)&&e.allowedDates.length>0?!e.allowedDates.some(o=>a.isSameDay(a.date(o),m)):typeof e.allowedDates=="function"?!e.allowedDates(m):!1}return{displayValue:l,daysInMonth:r,daysInWeek:w,genDays:s,model:c,weeksInMonth:d,weekdayLabels:k,weekNumbers:h}}function Pe(e){const a=q(),c=P(()=>{if(!e.min)return null;const k=a.date(e.min);return a.isValid(k)?k:null}),l=P(()=>{if(!e.max)return null;const k=a.date(e.max);return a.isValid(k)?k:null});function t(k){return c.value&&a.isBefore(k,c.value)?c.value:l.value&&a.isAfter(k,l.value)?l.value:k}function v(k){return(!c.value||a.isAfter(k,c.value))&&(!l.value||a.isBefore(k,l.value))}return{minDate:c,maxDate:l,clampDate:t,isInAllowedRange:v}}const Se=L({color:String,hideWeekdays:Boolean,multiple:[Boolean,Number,String],showWeek:Boolean,transition:{type:String,default:"picker-transition"},reverseTransition:{type:String,default:"picker-reverse-transition"},events:{type:[Array,Function,Object],default:()=>null},eventColor:{type:[Array,Function,Object,String],default:()=>null},...K(Ze(),["displayValue"])},"VDatePickerMonth"),fe=E()({name:"VDatePickerMonth",props:Se(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,a){let{emit:c,slots:l}=a;const t=Ne(),{t:v}=re(),{daysInMonth:k,model:d,weekNumbers:s,weekdayLabels:w}=Ke(e),r=q(),h=ae(),x=ae(),M=ae(!1),I=H(()=>M.value?e.reverseTransition:e.transition);e.multiple==="range"&&d.value.length>0&&(h.value=d.value[0],d.value.length>1&&(x.value=d.value[d.value.length-1]));const n=P(()=>{const y=["number","string"].includes(typeof e.multiple)?Number(e.multiple):1/0;return d.value.length>=y});De(k,(y,i)=>{i&&(M.value=r.isBefore(y[0].date,i[0].date))});function m(y){const i=r.startOfDay(y);if(d.value.length===0?h.value=void 0:d.value.length===1&&(h.value=d.value[0],x.value=void 0),!h.value)h.value=i,d.value=[h.value];else if(x.value)h.value=y,x.value=void 0,d.value=[h.value];else{if(r.isSameDay(i,h.value)){h.value=void 0,d.value=[];return}else r.isBefore(i,h.value)?(x.value=r.endOfDay(h.value),h.value=i):x.value=r.endOfDay(i);d.value=Le(r,h.value,x.value)}}function o(y){const i=r.format(y.date,"fullDateWithWeekday"),D=y.isToday?"currentDate":"selectDate";return v(`$vuetify.datePicker.ariaLabel.${D}`,i)}function Y(y){const i=d.value.findIndex(D=>r.isSameDay(D,y));if(i===-1)d.value=[...d.value,y];else{const D=[...d.value];D.splice(i,1),d.value=D}}function T(y){e.multiple==="range"?m(y):e.multiple?Y(y):d.value=[y]}function _(y){const{events:i,eventColor:D}=e;let C,A=[];if(Array.isArray(i)?C=i.includes(y):i instanceof Function?C=i(y)||!1:i?C=i[y]||!1:C=!1,C)C!==!0?A=j(C):typeof D=="string"?A=[D]:typeof D=="function"?A=j(D(y)):Array.isArray(D)?A=D:typeof D=="object"&&D!==null&&(A=j(D[y]));else return[];return A.length?A.filter(Boolean).map(p=>typeof p=="string"?p:"surface-variant"):["surface-variant"]}function F(y){const i=_(y);return i.length?g("div",{class:"v-date-picker-month__events"},[i.map(D=>b(pe,{dot:!0,color:D},null))]):null}U(()=>g("div",{class:"v-date-picker-month",style:{"--v-date-picker-days-in-week":e.weekdays.length}},[e.showWeek&&g("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&g("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[We(" ")]),s.value.map(y=>g("div",{class:Z(["v-date-picker-month__day","v-date-picker-month__day--adjacent"])},[y]))]),b(be,{name:I.value},{default:()=>{var y;return[g("div",{ref:t,key:(y=k.value[0].date)==null?void 0:y.toString(),class:"v-date-picker-month__days"},[!e.hideWeekdays&&w.value.map(i=>g("div",{class:Z(["v-date-picker-month__day","v-date-picker-month__weekday"])},[i])),k.value.map((i,D)=>{var A;const C={props:{class:"v-date-picker-month__day-btn",color:i.isSelected||i.isToday?e.color:void 0,disabled:i.isDisabled,icon:!0,ripple:!1,variant:i.isSelected?"flat":i.isToday?"outlined":"text","aria-label":o(i),"aria-current":i.isToday?"date":void 0,onClick:()=>T(i.date)},item:i,i:D};return n.value&&!i.isSelected&&(i.isDisabled=!0),g("div",{class:Z(["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":i.isAdjacent,"v-date-picker-month__day--hide-adjacent":i.isHidden,"v-date-picker-month__day--selected":i.isSelected,"v-date-picker-month__day--week-end":i.isWeekEnd,"v-date-picker-month__day--week-start":i.isWeekStart}]),"data-v-date":i.isDisabled?void 0:i.isoDate},[(e.showAdjacentMonths||!i.isAdjacent)&&(((A=l.day)==null?void 0:A.call(l,C))??b(O,C.props,{default:()=>[i.localized,F(i.isoDate)]}))])})])]}})]))}}),Ve=L({color:String,height:[String,Number],min:null,max:null,modelValue:Number,year:Number,allowedMonths:[Array,Function]},"VDatePickerMonths"),he=E()({name:"VDatePickerMonths",props:Ve(),emits:{"update:modelValue":e=>!0},setup(e,a){let{emit:c,slots:l}=a;const t=q(),v=N(e,"modelValue"),k=P(()=>{let s=t.startOfYear(t.date());return e.year&&(s=t.setYear(s,e.year)),we(12).map(w=>{const r=t.format(s,"monthShort"),h=t.format(s,"month"),x=!!(!d(w)||e.min&&t.isAfter(t.startOfMonth(t.date(e.min)),s)||e.max&&t.isAfter(s,t.startOfMonth(t.date(e.max))));return s=t.getNextMonth(s),{isDisabled:x,text:r,label:h,value:w}})});xe(()=>{v.value=v.value??t.getMonth(t.date())});function d(s){return Array.isArray(e.allowedMonths)&&e.allowedMonths.length?e.allowedMonths.includes(s):typeof e.allowedMonths=="function"?e.allowedMonths(s):!0}return U(()=>g("div",{class:"v-date-picker-months",style:{height:ne(e.height)}},[g("div",{class:"v-date-picker-months__content"},[k.value.map((s,w)=>{var x;const r={active:v.value===w,ariaLabel:s.label,color:v.value===w?e.color:void 0,disabled:s.isDisabled,rounded:!0,text:s.text,variant:v.value===s.value?"flat":"text",onClick:()=>h(w)};function h(M){if(v.value===M){c("update:modelValue",v.value);return}v.value=M}return((x=l.month)==null?void 0:x.call(l,{month:s,i:w,props:r}))??b(O,B({key:"month"},r),null)})])])),{}}}),Ye=L({color:String,height:[String,Number],min:null,max:null,modelValue:Number,allowedYears:[Array,Function]},"VDatePickerYears"),ye=E()({name:"VDatePickerYears",props:Ye(),directives:{vIntersect:se},emits:{"update:modelValue":e=>!0},setup(e,a){let{emit:c,slots:l}=a;const t=q(),v=N(e,"modelValue"),k=P(()=>{const r=t.getYear(t.date());let h=r-100,x=r+52;e.min&&(h=t.getYear(t.date(e.min))),e.max&&(x=t.getYear(t.date(e.max)));let M=t.startOfYear(t.date());return M=t.setYear(M,h),we(x-h+1,h).map(I=>{const n=t.format(M,"year");return M=t.setYear(M,t.getYear(M)+1),{text:n,value:I,isDisabled:!w(I)}})});xe(()=>{v.value=v.value??t.getYear(t.date())});const d=Fe();function s(){var r,h;(r=d.el)==null||r.focus(),(h=d.el)==null||h.scrollIntoView({block:"center"})}function w(r){return Array.isArray(e.allowedYears)&&e.allowedYears.length?e.allowedYears.includes(r):typeof e.allowedYears=="function"?e.allowedYears(r):!0}return U(()=>Re(g("div",{class:"v-date-picker-years",style:{height:ne(e.height)}},[g("div",{class:"v-date-picker-years__content"},[k.value.map((r,h)=>{var M;const x={ref:v.value===r.value?d:void 0,active:v.value===r.value,color:v.value===r.value?e.color:void 0,rounded:!0,text:r.text,disabled:r.isDisabled,variant:v.value===r.value?"flat":"text",onClick:()=>{if(v.value===r.value){c("update:modelValue",v.value);return}v.value=r.value}};return((M=l.year)==null?void 0:M.call(l,{year:r,i:h,props:x}))??b(O,B({key:"month"},x),null)})])]),[[se,{handler:s},null,{once:!0}]])),{}}}),qe=He("v-picker-title"),Ce=L({bgColor:String,divided:Boolean,landscape:Boolean,title:String,hideHeader:Boolean,hideTitle:Boolean,...ze()},"VPicker"),ke=E()({name:"VPicker",props:Ce(),setup(e,a){let{slots:c}=a;const{backgroundColorClasses:l,backgroundColorStyles:t}=me(()=>e.color);return U(()=>{const v=ue.filterProps(e),k=!e.hideTitle&&!!(e.title||c.title);return b(ue,B(v,{color:e.bgColor,class:["v-picker",{"v-picker--divided":e.divided,"v-picker--landscape":e.landscape,"v-picker--with-actions":!!c.actions},e.class],style:e.style}),{default:()=>{var d;return[!e.hideHeader&&g("div",{key:"header",class:Z(["v-picker__header-wrapper",l.value]),style:ge([t.value])},[k&&b(qe,{key:"picker-title"},{default:()=>{var s;return[((s=c.title)==null?void 0:s.call(c))??e.title]}}),c.header&&g("div",{class:"v-picker__header"},[c.header()])]),g("div",{class:"v-picker__body"},[(d=c.default)==null?void 0:d.call(c)]),c.actions&&b(le,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[g("div",{class:"v-picker__actions"},[c.actions()])]})]}})}),{}}}),Ge=L({header:{type:String,default:"$vuetify.datePicker.header"},headerColor:String,headerDateFormat:{type:String,default:"normalDateWithWeekday"},landscapeHeaderWidth:[Number,String],...Me(),...Se({weeksInMonth:"static"}),...K(Ve(),["modelValue"]),...K(Ye(),["modelValue"]),...Ce({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),tt=E()({name:"VDatePicker",props:Ge(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,a){let{emit:c,slots:l}=a;const t=q(),{t:v}=re(),{rtlClasses:k}=je(),d=N(e,"modelValue",void 0,u=>j(u).map(f=>t.date(f)),u=>e.multiple?u:u[0]),s=N(e,"viewMode"),{minDate:w,maxDate:r,clampDate:h}=Pe(e),x=P(()=>{var V;const u=t.date(),f=(V=d.value)!=null&&V[0]?t.date(d.value[0]):h(u);return f&&t.isValid(f)?f:u}),M=H(()=>e.headerColor??e.color),I=N(e,"month"),n=P({get:()=>Number(I.value??t.getMonth(t.startOfMonth(x.value))),set:u=>I.value=u}),m=N(e,"year"),o=P({get:()=>Number(m.value??t.getYear(t.startOfYear(t.setMonth(x.value,n.value)))),set:u=>m.value=u}),Y=ae(!1),T=P(()=>{if(e.multiple&&d.value.length>1)return v("$vuetify.datePicker.itemsSelected",d.value.length);const u=d.value[0]&&t.isValid(d.value[0])?t.format(t.date(d.value[0]),e.headerDateFormat):v(e.header);return e.landscape&&u.split(" ").length===3?u.replace(" ",` +`):u}),_=H(()=>{const u=String(n.value+1).padStart(2,"0");return t.parseISO(`${o.value}-${u}-01`)}),F=H(()=>t.format(_.value,"monthAndYear")),y=H(()=>t.format(_.value,"monthShort")),i=H(()=>t.format(_.value,"year")),D=H(()=>`date-picker-header${Y.value?"-reverse":""}-transition`),C=P(()=>{if(e.disabled)return!0;const u=[];if(s.value!=="month")u.push("prev-month","next-month","prev-year","next-year");else{let f=t.date();if(f=t.startOfMonth(f),f=t.setMonth(f,n.value),f=t.setYear(f,o.value),w.value){const V=t.addDays(t.startOfMonth(f),-1),$=t.addDays(t.startOfYear(f),-1);t.isAfter(w.value,V)&&u.push("prev-month"),t.isAfter(w.value,$)&&u.push("next-year")}if(r.value){const V=t.addDays(t.endOfMonth(f),1),$=t.addDays(t.endOfYear(f),1);t.isAfter(V,r.value)&&u.push("next-month"),t.isAfter($,r.value)&&u.push("next-year")}}return u}),A=P(()=>e.allowedYears||ee),p=P(()=>e.allowedMonths||_e);function X(u,f){const V=e.allowedDates;if(typeof V!="function")return!0;const $=1+Ue(t,u,f);for(let W=0;W<$;W++)if(V(t.addDays(u,W)))return!0;return!1}function ee(u){if(typeof e.allowedDates=="function"){const f=t.parseISO(`${u}-01-01`);return X(f,t.endOfYear(f))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const f of e.allowedDates)if(t.getYear(t.date(f))===u)return!0;return!1}return!0}function _e(u){if(typeof e.allowedDates=="function"){const f=String(u+1).padStart(2,"0"),V=t.parseISO(`${o.value}-${f}-01`);return X(V,t.endOfMonth(V))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const f of e.allowedDates)if(t.getYear(t.date(f))===o.value&&t.getMonth(t.date(f))===u)return!0;return!1}return!0}function Ae(){n.value<11?n.value++:(o.value++,n.value=0,R()),G()}function Oe(){n.value>0?n.value--:(o.value--,n.value=11,R()),G()}function Ie(){if(o.value++,r.value){const u=String(n.value+1).padStart(2,"0"),f=t.parseISO(`${o.value}-${u}-01`);t.isAfter(f,r.value)&&(n.value=t.getMonth(r.value))}R()}function Te(){if(o.value--,w.value){const u=String(n.value+1).padStart(2,"0"),f=t.endOfMonth(t.parseISO(`${o.value}-${u}-01`));t.isAfter(w.value,f)&&(n.value=t.getMonth(w.value))}R()}function $e(){s.value="month"}function ie(){s.value=s.value==="months"?"month":"months"}function oe(){s.value=s.value==="year"?"month":"year"}function G(){s.value==="months"&&ie()}function R(){s.value==="year"&&oe()}return De(d,(u,f)=>{const V=j(f),$=j(u);if(!$.length)return;const W=t.date(V[V.length-1]),z=t.date($[$.length-1]);if(t.isSameDay(W,z))return;const J=t.getMonth(z),S=t.getYear(z);J!==n.value&&(n.value=J,G()),S!==o.value&&(o.value=S,R()),Y.value=t.isBefore(W,z)}),U(()=>{const u=ke.filterProps(e),f=K(ce.filterProps(e),["viewMode"]),V=ve.filterProps(e),$=fe.filterProps(e),W=K(he.filterProps(e),["modelValue"]),z=K(ye.filterProps(e),["modelValue"]),J={color:M.value,header:T.value,transition:D.value};return b(ke,B(u,{color:M.value,class:["v-date-picker",`v-date-picker--${s.value}`,{"v-date-picker--show-week":e.showWeek},k.value,e.class],style:[{"--v-date-picker-landscape-header-width":ne(e.landscapeHeaderWidth)},e.style]}),{title:()=>{var S;return((S=l.title)==null?void 0:S.call(l))??g("div",{class:"v-date-picker__title"},[v(e.title)])},header:()=>l.header?b(le,{defaults:{VDatePickerHeader:{...J}}},{default:()=>{var S;return[(S=l.header)==null?void 0:S.call(l,J)]}}):b(ve,B({key:"header"},V,J,{onClick:s.value!=="month"?$e:void 0}),{prepend:l.prepend,append:l.append}),default:()=>g(Q,null,[b(ce,B(f,{disabled:C.value,viewMode:s.value,text:F.value,monthText:y.value,yearText:i.value,"onClick:next":Ae,"onClick:prev":Oe,"onClick:nextYear":Ie,"onClick:prevYear":Te,"onClick:month":ie,"onClick:year":oe}),{default:l.controls}),b(Ee,{hideOnLeave:!0},{default:()=>[s.value==="months"?b(he,B({key:"date-picker-months"},W,{modelValue:n.value,"onUpdate:modelValue":[S=>n.value=S,G],min:w.value,max:r.value,year:o.value,allowedMonths:p.value}),{month:l.month}):s.value==="year"?b(ye,B({key:"date-picker-years"},z,{modelValue:o.value,"onUpdate:modelValue":[S=>o.value=S,R],min:w.value,max:r.value,allowedYears:A.value}),{year:l.year}):b(fe,B({key:"date-picker-month"},$,{modelValue:d.value,"onUpdate:modelValue":S=>d.value=S,month:n.value,"onUpdate:month":[S=>n.value=S,G],year:o.value,"onUpdate:year":[S=>o.value=S,R],min:w.value,max:r.value}),{day:l.day})]})]),actions:l.actions})}),{}}});export{tt as V,ke as a,Ce as m}; diff --git a/assets/VExpansionPanels-C5tgQAF_.js b/assets/VExpansionPanels-C5tgQAF_.js deleted file mode 100644 index 851067c..0000000 --- a/assets/VExpansionPanels-C5tgQAF_.js +++ /dev/null @@ -1 +0,0 @@ -import{g as P,p as y,bH as w,bI as $,c as V,d as c,I as A,J as j,i as v,n as g,e as p,b0 as H,bJ as J,h as k,S as C,aB as _,u as K,a5 as m,ay as l,v as F,ac as D,f as M,aO as h,bK as q,bk as Q,bc as U,m as R,bi as W,bL as X,bm as Y,bM as Z,bN as ee,bl as ae,aH as ne,bh as le,aK as te,bO as se}from"./index-BBVdlVQD.js";const f=Symbol.for("vuetify:v-expansion-panel"),L=y({...k(),...J()},"VExpansionPanelText"),T=P()({name:"VExpansionPanelText",props:L(),setup(e,d){let{slots:n}=d;const a=w(f);if(!a)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:s,onAfterLeave:u}=$(e,a.isSelected);return V(()=>c(H,{onAfterLeave:u},{default:()=>{var o;return[A(v("div",{class:p(["v-expansion-panel-text",e.class]),style:g(e.style)},[n.default&&s.value&&v("div",{class:"v-expansion-panel-text__wrapper"},[(o=n.default)==null?void 0:o.call(n)])]),[[j,a.isSelected.value]])]}})),{}}}),z=y({color:String,expandIcon:{type:h,default:"$expand"},collapseIcon:{type:h,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...k(),...M()},"VExpansionPanelTitle"),B=P()({name:"VExpansionPanelTitle",directives:{vRipple:C},props:z(),setup(e,d){let{slots:n}=d;const a=w(f);if(!a)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:s,backgroundColorStyles:u}=_(()=>e.color),{dimensionStyles:o}=K(e),r=m(()=>({collapseIcon:e.collapseIcon,disabled:a.disabled.value,expanded:a.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),E=l(()=>a.isSelected.value?e.collapseIcon:e.expandIcon);return V(()=>{var x;return A(v("button",{class:p(["v-expansion-panel-title",{"v-expansion-panel-title--active":a.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},s.value,e.class]),style:g([u.value,o.value,e.style]),type:"button",tabindex:a.disabled.value?-1:void 0,disabled:a.disabled.value,"aria-expanded":a.isSelected.value,onClick:e.readonly?void 0:a.toggle},[v("span",{class:"v-expansion-panel-title__overlay"},null),(x=n.default)==null?void 0:x.call(n,r.value),!e.hideActions&&c(D,{defaults:{VIcon:{icon:E.value}}},{default:()=>{var b;return[v("span",{class:"v-expansion-panel-title__icon"},[((b=n.actions)==null?void 0:b.call(n,r.value))??c(F,null,null)])]}})]),[[C,e.ripple]])}),{}}}),G=y({title:String,text:String,bgColor:String,...Y(),...X(),...W(),...R(),...z(),...L()},"VExpansionPanel"),de=P()({name:"VExpansionPanel",props:G(),emits:{"group:selected":e=>!0},setup(e,d){let{slots:n}=d;const a=q(e,f),{backgroundColorClasses:s,backgroundColorStyles:u}=_(()=>e.bgColor),{elevationClasses:o}=Q(e),{roundedClasses:r}=U(e),E=l(()=>(a==null?void 0:a.disabled.value)||e.disabled),x=m(()=>a.group.items.value.reduce((i,t,S)=>(a.group.selected.value.includes(t.id)&&i.push(S),i),[])),b=m(()=>{const i=a.group.items.value.findIndex(t=>t.id===a.id);return!a.isSelected.value&&x.value.some(t=>t-i===1)}),N=m(()=>{const i=a.group.items.value.findIndex(t=>t.id===a.id);return!a.isSelected.value&&x.value.some(t=>t-i===-1)});return Z(f,a),V(()=>{const i=!!(n.text||e.text),t=!!(n.title||e.title),S=B.filterProps(e),O=T.filterProps(e);return c(e.tag,{class:p(["v-expansion-panel",{"v-expansion-panel--active":a.isSelected.value,"v-expansion-panel--before-active":b.value,"v-expansion-panel--after-active":N.value,"v-expansion-panel--disabled":E.value},r.value,s.value,e.class]),style:g([u.value,e.style])},{default:()=>[v("div",{class:p(["v-expansion-panel__shadow",...o.value])},null),c(D,{defaults:{VExpansionPanelTitle:{...S},VExpansionPanelText:{...O}}},{default:()=>{var I;return[t&&c(B,{key:"title"},{default:()=>[n.title?n.title():e.title]}),i&&c(T,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(I=n.default)==null?void 0:I.call(n)]}})]})}),{groupItem:a}}}),oe=["default","accordion","inset","popout"],ie=y({flat:Boolean,...se(),...te(G(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...le(),...k(),...R(),variant:{type:String,default:"default",validator:e=>oe.includes(e)}},"VExpansionPanels"),ue=P()({name:"VExpansionPanels",props:ie(),emits:{"update:modelValue":e=>!0},setup(e,d){let{slots:n}=d;const{next:a,prev:s}=ee(e,f),{themeClasses:u}=ae(e),o=l(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return ne({VExpansionPanel:{bgColor:l(()=>e.bgColor),collapseIcon:l(()=>e.collapseIcon),color:l(()=>e.color),eager:l(()=>e.eager),elevation:l(()=>e.elevation),expandIcon:l(()=>e.expandIcon),focusable:l(()=>e.focusable),hideActions:l(()=>e.hideActions),readonly:l(()=>e.readonly),ripple:l(()=>e.ripple),rounded:l(()=>e.rounded),static:l(()=>e.static)}}),V(()=>c(e.tag,{class:p(["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},u.value,o.value,e.class]),style:g(e.style)},{default:()=>{var r;return[(r=n.default)==null?void 0:r.call(n,{prev:s,next:a})]}})),{next:a,prev:s}}});export{ue as V,de as a,B as b,T as c}; diff --git a/assets/VExpansionPanels-uPjuA0pD.js b/assets/VExpansionPanels-uPjuA0pD.js new file mode 100644 index 0000000..30a91f5 --- /dev/null +++ b/assets/VExpansionPanels-uPjuA0pD.js @@ -0,0 +1 @@ +import{g as m,p as y,bI as w,bJ as j,c as V,d as c,I as _,J,i as v,n as g,e as p,a_ as K,bK as O,h as k,S as C,aB as A,u as F,a5 as P,ay as l,v as H,ac as D,f as M,a$ as h,bL as q,bk as Q,bc as U,m as R,bi as W,bM as X,bm as Y,bN as Z,bO as ee,bl as ae,aH as ne,bh as le,aK as te,bP as se}from"./index-GyS8nTIx.js";const f=Symbol.for("vuetify:v-expansion-panel"),L=y({...k(),...O()},"VExpansionPanelText"),T=m()({name:"VExpansionPanelText",props:L(),setup(e,d){let{slots:n}=d;const a=w(f);if(!a)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:s,onAfterLeave:u}=j(e,a.isSelected);return V(()=>c(K,{onAfterLeave:u},{default:()=>{var o;return[_(v("div",{class:p(["v-expansion-panel-text",e.class]),style:g(e.style)},[n.default&&s.value&&v("div",{class:"v-expansion-panel-text__wrapper"},[(o=n.default)==null?void 0:o.call(n)])]),[[J,a.isSelected.value]])]}})),{}}}),z=y({color:String,expandIcon:{type:h,default:"$expand"},collapseIcon:{type:h,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...k(),...M()},"VExpansionPanelTitle"),B=m()({name:"VExpansionPanelTitle",directives:{vRipple:C},props:z(),setup(e,d){let{slots:n}=d;const a=w(f);if(!a)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:s,backgroundColorStyles:u}=A(()=>e.color),{dimensionStyles:o}=F(e),r=P(()=>({collapseIcon:e.collapseIcon,disabled:a.disabled.value,expanded:a.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),E=l(()=>a.isSelected.value?e.collapseIcon:e.expandIcon);return V(()=>{var x;return _(v("button",{class:p(["v-expansion-panel-title",{"v-expansion-panel-title--active":a.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},s.value,e.class]),style:g([u.value,o.value,e.style]),type:"button",tabindex:a.disabled.value?-1:void 0,disabled:a.disabled.value,"aria-expanded":a.isSelected.value,onClick:e.readonly?void 0:a.toggle},[v("span",{class:"v-expansion-panel-title__overlay"},null),(x=n.default)==null?void 0:x.call(n,r.value),!e.hideActions&&c(D,{defaults:{VIcon:{icon:E.value}}},{default:()=>{var b;return[v("span",{class:"v-expansion-panel-title__icon"},[((b=n.actions)==null?void 0:b.call(n,r.value))??c(H,null,null)])]}})]),[[C,e.ripple]])}),{}}}),G=y({title:String,text:String,bgColor:String,...Y(),...X(),...W(),...R(),...z(),...L()},"VExpansionPanel"),de=m()({name:"VExpansionPanel",props:G(),emits:{"group:selected":e=>!0},setup(e,d){let{slots:n}=d;const a=q(e,f),{backgroundColorClasses:s,backgroundColorStyles:u}=A(()=>e.bgColor),{elevationClasses:o}=Q(e),{roundedClasses:r}=U(e),E=l(()=>(a==null?void 0:a.disabled.value)||e.disabled),x=P(()=>a.group.items.value.reduce((i,t,S)=>(a.group.selected.value.includes(t.id)&&i.push(S),i),[])),b=P(()=>{const i=a.group.items.value.findIndex(t=>t.id===a.id);return!a.isSelected.value&&x.value.some(t=>t-i===1)}),$=P(()=>{const i=a.group.items.value.findIndex(t=>t.id===a.id);return!a.isSelected.value&&x.value.some(t=>t-i===-1)});return Z(f,a),V(()=>{const i=!!(n.text||e.text),t=!!(n.title||e.title),S=B.filterProps(e),N=T.filterProps(e);return c(e.tag,{class:p(["v-expansion-panel",{"v-expansion-panel--active":a.isSelected.value,"v-expansion-panel--before-active":b.value,"v-expansion-panel--after-active":$.value,"v-expansion-panel--disabled":E.value},r.value,s.value,e.class]),style:g([u.value,e.style])},{default:()=>[v("div",{class:p(["v-expansion-panel__shadow",...o.value])},null),c(D,{defaults:{VExpansionPanelTitle:{...S},VExpansionPanelText:{...N}}},{default:()=>{var I;return[t&&c(B,{key:"title"},{default:()=>[n.title?n.title():e.title]}),i&&c(T,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(I=n.default)==null?void 0:I.call(n)]}})]})}),{groupItem:a}}}),oe=["default","accordion","inset","popout"],ie=y({flat:Boolean,...se(),...te(G(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...le(),...k(),...R(),variant:{type:String,default:"default",validator:e=>oe.includes(e)}},"VExpansionPanels"),ue=m()({name:"VExpansionPanels",props:ie(),emits:{"update:modelValue":e=>!0},setup(e,d){let{slots:n}=d;const{next:a,prev:s}=ee(e,f),{themeClasses:u}=ae(e),o=l(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return ne({VExpansionPanel:{bgColor:l(()=>e.bgColor),collapseIcon:l(()=>e.collapseIcon),color:l(()=>e.color),eager:l(()=>e.eager),elevation:l(()=>e.elevation),expandIcon:l(()=>e.expandIcon),focusable:l(()=>e.focusable),hideActions:l(()=>e.hideActions),readonly:l(()=>e.readonly),ripple:l(()=>e.ripple),rounded:l(()=>e.rounded),static:l(()=>e.static)}}),V(()=>c(e.tag,{class:p(["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},u.value,o.value,e.class]),style:g(e.style)},{default:()=>{var r;return[(r=n.default)==null?void 0:r.call(n,{prev:s,next:a})]}})),{next:a,prev:s}}});export{ue as V,de as a,B as b,T as c}; diff --git a/assets/VForm-BRCje5Hh.js b/assets/VForm-CnK2lukw.js similarity index 59% rename from assets/VForm-BRCje5Hh.js rename to assets/VForm-CnK2lukw.js index 536db28..b9b2fe0 100644 --- a/assets/VForm-BRCje5Hh.js +++ b/assets/VForm-CnK2lukw.js @@ -1 +1 @@ -import{g as p,p as v,$ as b,c as y,i as F,n as V,e as h,ad as R,h as P}from"./index-BBVdlVQD.js";import{i as k,j as C}from"./VTextField-C-Z2P35g.js";const S=v({...P(),...C()},"VForm"),D=p()({name:"VForm",props:S(),emits:{"update:modelValue":o=>!0,submit:o=>!0},setup(o,i){let{slots:s,emit:l}=i;const r=k(o),n=b();function f(t){t.preventDefault(),r.reset()}function u(t){const a=t,e=r.validate();a.then=e.then.bind(e),a.catch=e.catch.bind(e),a.finally=e.finally.bind(e),l("submit",a),a.defaultPrevented||e.then(c=>{var m;let{valid:d}=c;d&&((m=n.value)==null||m.submit())}),a.preventDefault()}return y(()=>{var t;return F("form",{ref:n,class:h(["v-form",o.class]),style:V(o.style),novalidate:!0,onReset:f,onSubmit:u},[(t=s.default)==null?void 0:t.call(s,r)])}),R(r,n)}});export{D as V}; +import{g as p,p as v,$ as b,c as h,i as y,n as F,e as V,ad as R,h as P}from"./index-GyS8nTIx.js";import{h as k,i as C}from"./VTextField-xLiM0gib.js";const S=v({...P(),...C()},"VForm"),D=p()({name:"VForm",props:S(),emits:{"update:modelValue":o=>!0,submit:o=>!0},setup(o,i){let{slots:s,emit:l}=i;const r=k(o),n=b();function f(t){t.preventDefault(),r.reset()}function u(t){const a=t,e=r.validate();a.then=e.then.bind(e),a.catch=e.catch.bind(e),a.finally=e.finally.bind(e),l("submit",a),a.defaultPrevented||e.then(c=>{var m;let{valid:d}=c;d&&((m=n.value)==null||m.submit())}),a.preventDefault()}return h(()=>{var t;return y("form",{ref:n,class:V(["v-form",o.class]),style:F(o.style),novalidate:!0,onReset:f,onSubmit:u},[(t=s.default)==null?void 0:t.call(s,r)])}),R(r,n)}});export{D as V}; diff --git a/assets/VMenu-CJ7CiDy8.js b/assets/VMenu-ClQzjH_h.js similarity index 70% rename from assets/VMenu-CJ7CiDy8.js rename to assets/VMenu-ClQzjH_h.js index 781ab58..fd29ecc 100644 --- a/assets/VMenu-CJ7CiDy8.js +++ b/assets/VMenu-ClQzjH_h.js @@ -1 +1 @@ -import{g as x,p as M,a3 as R,aG as p,b8 as I,aN as S,ay as T,$ as L,bH as K,cf as w,a0 as O,aS as U,cg as F,a6 as H,a5 as N,E as b,c as j,au as k,d as A,ac as B,ad as $,ae as z,bb as G,cb as q,ch as m,ci as J,cj as Q,bM as W,ck as X}from"./index-BBVdlVQD.js";const Y=M({id:String,submenu:Boolean,...z(G({captureFocus:!0,closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:q}}),["absolute"])},"VMenu"),ee=x()({name:"VMenu",props:Y(),emits:{"update:modelValue":t=>!0},setup(t,E){let{slots:i}=E;const o=R(t,"modelValue"),{scopeId:V}=p(),{isRtl:c}=I(),v=S(),f=T(()=>t.id||`v-menu-${v}`),s=L(),a=K(w,null),d=O(new Set);W(w,{register(){d.value.add(v)},unregister(){d.value.delete(v)},closeParents(e){setTimeout(()=>{var n;!d.value.size&&!t.persistent&&(e==null||(n=s.value)!=null&&n.contentEl&&!X(e,s.value.contentEl))&&(o.value=!1,a==null||a.closeParents())},40)}}),U(()=>a==null?void 0:a.unregister()),F(()=>o.value=!1),H(o,e=>{e?a==null||a.register():a==null||a.unregister()},{immediate:!0});function P(e){a==null||a.closeParents(e)}function h(e){var n,l,r,u,g;if(!t.disabled)if(e.key==="Tab"||e.key==="Enter"&&!t.closeOnContentClick){if(e.key==="Enter"&&(e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLInputElement&&e.target.closest("form")))return;e.key==="Enter"&&e.preventDefault(),!J(Q((n=s.value)==null?void 0:n.contentEl,!1),e.shiftKey?"prev":"next",D=>D.tabIndex>=0)&&!t.retainFocus&&(o.value=!1,(r=(l=s.value)==null?void 0:l.activatorEl)==null||r.focus())}else t.submenu&&e.key===(c.value?"ArrowRight":"ArrowLeft")&&(o.value=!1,(g=(u=s.value)==null?void 0:u.activatorEl)==null||g.focus())}function y(e){var l;if(t.disabled)return;const n=(l=s.value)==null?void 0:l.contentEl;n&&o.value?e.key==="ArrowDown"?(e.preventDefault(),e.stopImmediatePropagation(),m(n,"next")):e.key==="ArrowUp"?(e.preventDefault(),e.stopImmediatePropagation(),m(n,"prev")):t.submenu&&(e.key===(c.value?"ArrowRight":"ArrowLeft")?o.value=!1:e.key===(c.value?"ArrowLeft":"ArrowRight")&&(e.preventDefault(),m(n,"first"))):(t.submenu?e.key===(c.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(e.key))&&(o.value=!0,e.preventDefault(),setTimeout(()=>setTimeout(()=>y(e))))}const C=N(()=>b({"aria-haspopup":"menu","aria-expanded":String(o.value),"aria-controls":f.value,"aria-owns":f.value,onKeydown:y},t.activatorProps));return j(()=>{const e=k.filterProps(t);return A(k,b({ref:s,id:f.value,class:["v-menu",t.class],style:t.style},e,{modelValue:o.value,"onUpdate:modelValue":n=>o.value=n,absolute:!0,activatorProps:C.value,location:t.location??(t.submenu?"end":"bottom"),"onClick:outside":P,onKeydown:h},V),{activator:i.activator,default:function(){for(var n=arguments.length,l=new Array(n),r=0;r{var u;return[(u=i.default)==null?void 0:u.call(i,...l)]}})}})}),$({id:f,ΨopenChildren:d},s)}});export{ee as V}; +import{g as x,p as R,a3 as p,aG as I,b7 as M,ba as T,ay as S,$ as L,bI as K,cg as w,a0 as O,aQ as U,ch as F,a6 as N,a5 as j,E as b,c as B,au as k,d as A,ac as H,ad as $,ae as z,bb as G,cc as Q,ci as m,cj as q,ck as J,bN as W,cl as X}from"./index-GyS8nTIx.js";const Y=R({id:String,submenu:Boolean,...z(G({captureFocus:!0,closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:Q}}),["absolute"])},"VMenu"),ee=x()({name:"VMenu",props:Y(),emits:{"update:modelValue":t=>!0},setup(t,E){let{slots:i}=E;const o=p(t,"modelValue"),{scopeId:V}=I(),{isRtl:c}=M(),v=T(),f=S(()=>t.id||`v-menu-${v}`),s=L(),a=K(w,null),d=O(new Set);W(w,{register(){d.value.add(v)},unregister(){d.value.delete(v)},closeParents(e){setTimeout(()=>{var n;!d.value.size&&!t.persistent&&(e==null||(n=s.value)!=null&&n.contentEl&&!X(e,s.value.contentEl))&&(o.value=!1,a==null||a.closeParents())},40)}}),U(()=>a==null?void 0:a.unregister()),F(()=>o.value=!1),N(o,e=>{e?a==null||a.register():a==null||a.unregister()},{immediate:!0});function P(e){a==null||a.closeParents(e)}function h(e){var n,l,r,u,g;if(!t.disabled)if(e.key==="Tab"||e.key==="Enter"&&!t.closeOnContentClick){if(e.key==="Enter"&&(e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLInputElement&&e.target.closest("form")))return;e.key==="Enter"&&e.preventDefault(),!q(J((n=s.value)==null?void 0:n.contentEl,!1),e.shiftKey?"prev":"next",D=>D.tabIndex>=0)&&!t.retainFocus&&(o.value=!1,(r=(l=s.value)==null?void 0:l.activatorEl)==null||r.focus())}else t.submenu&&e.key===(c.value?"ArrowRight":"ArrowLeft")&&(o.value=!1,(g=(u=s.value)==null?void 0:u.activatorEl)==null||g.focus())}function y(e){var l;if(t.disabled)return;const n=(l=s.value)==null?void 0:l.contentEl;n&&o.value?e.key==="ArrowDown"?(e.preventDefault(),e.stopImmediatePropagation(),m(n,"next")):e.key==="ArrowUp"?(e.preventDefault(),e.stopImmediatePropagation(),m(n,"prev")):t.submenu&&(e.key===(c.value?"ArrowRight":"ArrowLeft")?o.value=!1:e.key===(c.value?"ArrowLeft":"ArrowRight")&&(e.preventDefault(),m(n,"first"))):(t.submenu?e.key===(c.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(e.key))&&(o.value=!0,e.preventDefault(),setTimeout(()=>setTimeout(()=>y(e))))}const C=j(()=>b({"aria-haspopup":"menu","aria-expanded":String(o.value),"aria-controls":f.value,"aria-owns":f.value,onKeydown:y},t.activatorProps));return B(()=>{const e=k.filterProps(t);return A(k,b({ref:s,id:f.value,class:["v-menu",t.class],style:t.style},e,{modelValue:o.value,"onUpdate:modelValue":n=>o.value=n,absolute:!0,activatorProps:C.value,location:t.location??(t.submenu?"end":"bottom"),"onClick:outside":P,onKeydown:h},V),{activator:i.activator,default:function(){for(var n=arguments.length,l=new Array(n),r=0;r{var u;return[(u=i.default)==null?void 0:u.call(i,...l)]}})}})}),$({id:f,ΨopenChildren:d},s)}});export{ee as V}; diff --git a/assets/VRow-IosHPrmj.js b/assets/VRow-DtMdTMSo.js similarity index 68% rename from assets/VRow-IosHPrmj.js rename to assets/VRow-DtMdTMSo.js index 22e1ef0..427440c 100644 --- a/assets/VRow-IosHPrmj.js +++ b/assets/VRow-DtMdTMSo.js @@ -1 +1 @@ -import{g as C,p as S,a5 as b,aY as k,m as N,h as V,cm as i,bV as u}from"./index-BBVdlVQD.js";const j=i.reduce((e,a)=>(e[a]={type:[Boolean,String,Number],default:!1},e),{}),v=i.reduce((e,a)=>{const t="offset"+u(a);return e[t]={type:[String,Number],default:null},e},{}),L=i.reduce((e,a)=>{const t="order"+u(a);return e[t]={type:[String,Number],default:null},e},{}),y={col:Object.keys(j),offset:Object.keys(v),order:Object.keys(L)};function G(e,a,t){let s=e;if(!(t==null||t===!1)){if(a){const n=a.replace(e,"");s+=`-${n}`}return e==="col"&&(s="v-"+s),e==="col"&&(t===""||t===!0)||(s+=`-${t}`),s.toLowerCase()}}const _=["auto","start","end","center","baseline","stretch"],I=S({cols:{type:[Boolean,String,Number],default:!1},...j,offset:{type:[String,Number],default:null},...v,order:{type:[String,Number],default:null},...L,alignSelf:{type:String,default:null,validator:e=>_.includes(e)},...V(),...N()},"VCol"),x=C()({name:"VCol",props:I(),setup(e,a){let{slots:t}=a;const s=b(()=>{const n=[];let l;for(l in y)y[l].forEach(o=>{const c=e[o],g=G(l,o,c);g&&n.push(g)});const r=n.some(o=>o.startsWith("v-col-"));return n.push({"v-col":!r||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),n});return()=>{var n;return k(e.tag,{class:[s.value,e.class],style:e.style},(n=t.default)==null?void 0:n.call(t))}}}),f=["start","end","center"],h=["space-between","space-around","space-evenly"];function d(e,a){return i.reduce((t,s)=>{const n=e+u(s);return t[n]=a(),t},{})}const R=[...f,"baseline","stretch"],$=e=>R.includes(e),w=d("align",()=>({type:String,default:null,validator:$})),T=[...f,...h],P=e=>T.includes(e),E=d("justify",()=>({type:String,default:null,validator:P})),U=[...f,...h,"stretch"],A=e=>U.includes(e),O=d("alignContent",()=>({type:String,default:null,validator:A})),m={align:Object.keys(w),justify:Object.keys(E),alignContent:Object.keys(O)},B={align:"align",justify:"justify",alignContent:"align-content"};function M(e,a,t){let s=B[e];if(t!=null){if(a){const n=a.replace(e,"");s+=`-${n}`}return s+=`-${t}`,s.toLowerCase()}}const F=S({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:$},...w,justify:{type:String,default:null,validator:P},...E,alignContent:{type:String,default:null,validator:A},...O,...V(),...N()},"VRow"),Y=C()({name:"VRow",props:F(),setup(e,a){let{slots:t}=a;const s=b(()=>{const n=[];let l;for(l in m)m[l].forEach(r=>{const o=e[r],c=M(l,r,o);c&&n.push(c)});return n.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),n});return()=>{var n;return k(e.tag,{class:["v-row",s.value,e.class],style:e.style},(n=t.default)==null?void 0:n.call(t))}}});export{Y as V,x as a}; +import{g as C,p as S,a5 as b,aW as k,m as N,h as j,cn as i,bU as u}from"./index-GyS8nTIx.js";const V=i.reduce((e,a)=>(e[a]={type:[Boolean,String,Number],default:!1},e),{}),v=i.reduce((e,a)=>{const t="offset"+u(a);return e[t]={type:[String,Number],default:null},e},{}),L=i.reduce((e,a)=>{const t="order"+u(a);return e[t]={type:[String,Number],default:null},e},{}),y={col:Object.keys(V),offset:Object.keys(v),order:Object.keys(L)};function G(e,a,t){let s=e;if(!(t==null||t===!1)){if(a){const n=a.replace(e,"");s+=`-${n}`}return e==="col"&&(s="v-"+s),e==="col"&&(t===""||t===!0)||(s+=`-${t}`),s.toLowerCase()}}const U=["auto","start","end","center","baseline","stretch"],_=S({cols:{type:[Boolean,String,Number],default:!1},...V,offset:{type:[String,Number],default:null},...v,order:{type:[String,Number],default:null},...L,alignSelf:{type:String,default:null,validator:e=>U.includes(e)},...j(),...N()},"VCol"),x=C()({name:"VCol",props:_(),setup(e,a){let{slots:t}=a;const s=b(()=>{const n=[];let l;for(l in y)y[l].forEach(o=>{const c=e[o],g=G(l,o,c);g&&n.push(g)});const r=n.some(o=>o.startsWith("v-col-"));return n.push({"v-col":!r||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),n});return()=>{var n;return k(e.tag,{class:[s.value,e.class],style:e.style},(n=t.default)==null?void 0:n.call(t))}}}),f=["start","end","center"],h=["space-between","space-around","space-evenly"];function d(e,a){return i.reduce((t,s)=>{const n=e+u(s);return t[n]=a(),t},{})}const I=[...f,"baseline","stretch"],$=e=>I.includes(e),w=d("align",()=>({type:String,default:null,validator:$})),R=[...f,...h],P=e=>R.includes(e),E=d("justify",()=>({type:String,default:null,validator:P})),T=[...f,...h,"stretch"],A=e=>T.includes(e),O=d("alignContent",()=>({type:String,default:null,validator:A})),m={align:Object.keys(w),justify:Object.keys(E),alignContent:Object.keys(O)},B={align:"align",justify:"justify",alignContent:"align-content"};function M(e,a,t){let s=B[e];if(t!=null){if(a){const n=a.replace(e,"");s+=`-${n}`}return s+=`-${t}`,s.toLowerCase()}}const F=S({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:$},...w,justify:{type:String,default:null,validator:P},...E,alignContent:{type:String,default:null,validator:A},...O,...j(),...N()},"VRow"),W=C()({name:"VRow",props:F(),setup(e,a){let{slots:t}=a;const s=b(()=>{const n=[];let l;for(l in m)m[l].forEach(r=>{const o=e[r],c=M(l,r,o);c&&n.push(c)});return n.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),n});return()=>{var n;return k(e.tag,{class:["v-row",s.value,e.class],style:e.style},(n=t.default)==null?void 0:n.call(t))}}});export{W as V,x as a}; diff --git a/assets/VSelectionControl-D-h-HCLE.js b/assets/VSelectionControl-D-h-HCLE.js deleted file mode 100644 index 59087ab..0000000 --- a/assets/VSelectionControl-D-h-HCLE.js +++ /dev/null @@ -1 +0,0 @@ -import{g as _,p as B,a3 as z,aN as E,ay as t,aH as Q,c as H,i as y,n as M,e as h,bh as W,aJ as X,h as $,ag as Y,aO as T,bM as Z,bw as p,S as D,a0 as R,$ as ee,az as le,E as N,d as U,I as ae,F as te,v as ne,bH as oe,aF as ue,a5 as C,a4 as I,a2 as ie,aB as re,a7 as ce,ah as se}from"./index-BBVdlVQD.js";import{g as de}from"./VTextField-C-Z2P35g.js";const j=Symbol.for("vuetify:selection-control-group"),L=B({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:T,trueIcon:T,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Y},...$(),...X(),...W()},"SelectionControlGroup"),ve=B({...L({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),be=_()({name:"VSelectionControlGroup",props:ve(),emits:{"update:modelValue":e=>!0},setup(e,u){let{slots:d}=u;const l=z(e,"modelValue"),n=E(),m=t(()=>e.id||`v-selection-control-group-${n}`),r=t(()=>e.name||m.value),a=new Set;return Z(j,{modelValue:l,forceUpdate:()=>{a.forEach(o=>o())},onForceUpdate:o=>{a.add(o),p(()=>{a.delete(o)})}}),Q({[e.defaultsTarget]:{color:t(()=>e.color),disabled:t(()=>e.disabled),density:t(()=>e.density),error:t(()=>e.error),inline:t(()=>e.inline),modelValue:l,multiple:t(()=>!!e.multiple||e.multiple==null&&Array.isArray(l.value)),name:r,falseIcon:t(()=>e.falseIcon),trueIcon:t(()=>e.trueIcon),readonly:t(()=>e.readonly),ripple:t(()=>e.ripple),type:t(()=>e.type),valueComparator:t(()=>e.valueComparator)}}),H(()=>{var o;return y("div",{class:h(["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class]),style:M(e.style),role:e.type==="radio"?"radiogroup":void 0},[(o=d.default)==null?void 0:o.call(d)])}),{}}}),fe=B({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...$(),...L()},"VSelectionControl");function me(e){const u=oe(j,void 0),{densityClasses:d}=ue(e),l=z(e,"modelValue"),n=C(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),m=C(()=>e.falseValue!==void 0?e.falseValue:!1),r=C(()=>!!e.multiple||e.multiple==null&&Array.isArray(l.value)),a=C({get(){const v=u?u.modelValue.value:l.value;return r.value?I(v).some(i=>e.valueComparator(i,n.value)):e.valueComparator(v,n.value)},set(v){if(e.readonly)return;const i=v?n.value:m.value;let f=i;r.value&&(f=v?[...I(l.value),i]:I(l.value).filter(c=>!e.valueComparator(c,n.value))),u?u.modelValue.value=f:l.value=f}}),{textColorClasses:o,textColorStyles:b}=ie(()=>{if(!(e.error||e.disabled))return a.value?e.color:e.baseColor}),{backgroundColorClasses:V,backgroundColorStyles:S}=re(()=>a.value&&!e.error&&!e.disabled?e.color:e.baseColor),k=C(()=>a.value?e.trueIcon:e.falseIcon);return{group:u,densityClasses:d,trueValue:n,falseValue:m,model:a,textColorClasses:o,textColorStyles:b,backgroundColorClasses:V,backgroundColorStyles:S,icon:k}}const Ve=_()({name:"VSelectionControl",directives:{vRipple:D},inheritAttrs:!1,props:fe(),emits:{"update:modelValue":e=>!0},setup(e,u){let{attrs:d,slots:l}=u;const{group:n,densityClasses:m,icon:r,model:a,textColorClasses:o,textColorStyles:b,backgroundColorClasses:V,backgroundColorStyles:S,trueValue:k}=me(e),v=E(),i=R(!1),f=R(!1),c=ee(),g=t(()=>e.id||`input-${v}`),F=t(()=>!e.disabled&&!e.readonly);n==null||n.onForceUpdate(()=>{c.value&&(c.value.checked=a.value)});function x(s){F.value&&(i.value=!0,se(s.target,":focus-visible")!==!1&&(f.value=!0))}function A(){i.value=!1,f.value=!1}function O(s){s.stopPropagation()}function q(s){if(!F.value){c.value&&(c.value.checked=a.value);return}e.readonly&&n&&ce(()=>n.forceUpdate()),a.value=s.target.checked}return H(()=>{var w,G;const s=l.label?l.label({label:e.label,props:{for:g.value}}):e.label,[J,K]=le(d),P=y("input",N({ref:c,checked:a.value,disabled:!!e.disabled,id:g.value,onBlur:A,onFocus:x,onInput:q,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:k.value,name:e.name,"aria-checked":e.type==="checkbox"?a.value:void 0},K),null);return y("div",N({class:["v-selection-control",{"v-selection-control--dirty":a.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":i.value,"v-selection-control--focus-visible":f.value,"v-selection-control--inline":e.inline},m.value,e.class]},J,{style:e.style}),[y("div",{class:h(["v-selection-control__wrapper",o.value]),style:M(b.value)},[(w=l.default)==null?void 0:w.call(l,{backgroundColorClasses:V,backgroundColorStyles:S}),ae(y("div",{class:h(["v-selection-control__input"])},[((G=l.input)==null?void 0:G.call(l,{model:a,textColorClasses:o,textColorStyles:b,backgroundColorClasses:V,backgroundColorStyles:S,inputNode:P,icon:r.value,props:{onFocus:x,onBlur:A,id:g.value}}))??y(te,null,[r.value&&U(ne,{key:"icon",icon:r.value},null),P])]),[[D,!e.disabled&&!e.readonly&&e.ripple,null,{center:!0,circle:!0}]])]),s&&U(de,{for:g.value,onClick:O},{default:()=>[s]})])}),{isFocused:i,input:c}}});export{Ve as V,be as a,L as b,fe as m}; diff --git a/assets/VSelectionControl-D9cm454A.css b/assets/VSelectionControl-D9cm454A.css deleted file mode 100644 index b53d672..0000000 --- a/assets/VSelectionControl-D9cm454A.css +++ /dev/null @@ -1 +0,0 @@ -.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%;opacity:1}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap} diff --git a/assets/VSheet-DZUeXnyk.js b/assets/VSheet-DBWP7oOE.js similarity index 50% rename from assets/VSheet-DZUeXnyk.js rename to assets/VSheet-DBWP7oOE.js index 58cef92..33be4b4 100644 --- a/assets/VSheet-DZUeXnyk.js +++ b/assets/VSheet-DBWP7oOE.js @@ -1 +1 @@ -import{g as d,p as k,bl as v,aB as b,bx as C,u as P,bk as h,be as S,cd as g,bc as y,c as V,d as B,n as E,e as R,bh as T,m as f,bi as p,ce as x,bj as z,bm as D,f as L,h as j,bE as F}from"./index-BBVdlVQD.js";const N=k({color:String,...F(),...j(),...L(),...D(),...z(),...x(),...p(),...f(),...T()},"VSheet"),w=d()({name:"VSheet",props:N(),setup(e,s){let{slots:a}=s;const{themeClasses:o}=v(e),{backgroundColorClasses:n,backgroundColorStyles:t}=b(()=>e.color),{borderClasses:l}=C(e),{dimensionStyles:r}=P(e),{elevationClasses:c}=h(e),{locationStyles:m}=S(e),{positionClasses:u}=g(e),{roundedClasses:i}=y(e);return V(()=>B(e.tag,{class:R(["v-sheet",o.value,n.value,l.value,c.value,u.value,i.value,e.class]),style:E([t.value,r.value,m.value,e.style])},a)),{}}});export{w as V,N as m}; +import{g as d,p as k,bl as v,aB as b,by as C,u as P,bk as h,be as S,ce as g,bc as y,c as V,d as B,n as f,e as R,bh as T,m as p,bi as z,cf as D,bj as E,bm as F,f as L,h as j,bF as x}from"./index-GyS8nTIx.js";const N=k({color:String,...x(),...j(),...L(),...F(),...E(),...D(),...z(),...p(),...T()},"VSheet"),w=d()({name:"VSheet",props:N(),setup(e,s){let{slots:a}=s;const{themeClasses:o}=v(e),{backgroundColorClasses:n,backgroundColorStyles:t}=b(()=>e.color),{borderClasses:l}=C(e),{dimensionStyles:r}=P(e),{elevationClasses:c}=h(e),{locationStyles:m}=S(e),{positionClasses:u}=g(e),{roundedClasses:i}=y(e);return V(()=>B(e.tag,{class:R(["v-sheet",o.value,n.value,l.value,c.value,u.value,i.value,e.class]),style:f([t.value,r.value,m.value,e.style])},a)),{}}});export{w as V,N as m}; diff --git a/assets/VSkeletonLoader-DuVn92u1.js b/assets/VSkeletonLoader-DnBPECWc.js similarity index 97% rename from assets/VSkeletonLoader-DuVn92u1.js rename to assets/VSkeletonLoader-DnBPECWc.js index 875e1ee..ea24cca 100644 --- a/assets/VSkeletonLoader-DuVn92u1.js +++ b/assets/VSkeletonLoader-DnBPECWc.js @@ -1 +1 @@ -import{g as f,p as k,aB as x,u as y,bk as S,bl as B,Z as C,a5 as L,a4 as w,c as P,i as r,E as V,F as T,bh as A,bm as _,f as E,e as F}from"./index-BBVdlVQD.js";const D={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function $(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return r("div",{class:F(["v-skeleton-loader__bone",`v-skeleton-loader__${e}`])},[a])}function l(e){const[a,t]=e.split("@");return Array.from({length:t}).map(()=>i(a))}function i(e){let a=[];if(!e)return a;const t=D[e];if(e!==t){if(e.includes(","))return d(e);if(e.includes("@"))return l(e);t.includes(",")?a=d(t):t.includes("@")?a=l(t):t&&a.push(i(t))}return[$(e,a)]}function d(e){return e.replace(/\s/g,"").split(",").map(i)}const j=k({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...E(),..._(),...A()},"VSkeletonLoader"),I=f()({name:"VSkeletonLoader",inheritAttrs:!1,props:j(),setup(e,a){let{attrs:t,slots:n}=a;const{backgroundColorClasses:c,backgroundColorStyles:u}=x(()=>e.color),{dimensionStyles:g}=y(e),{elevationClasses:m}=S(e),{themeClasses:v}=B(e),{t:b}=C(),p=L(()=>i(w(e.type).join(",")));return P(()=>{var s;const o=!n.default||e.loading,h=e.boilerplate||!o?{}:{ariaLive:"polite",ariaLabel:b(e.loadingText),role:"alert"};return o?r("div",V({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},v.value,c.value,m.value],style:[u.value,g.value]},h,t),[p.value]):r(T,null,[(s=n.default)==null?void 0:s.call(n)])}),{}}});export{I as V}; +import{g as f,p as k,aB as x,u as y,bk as S,bl as B,Z as C,a5 as L,a4 as w,c as P,i as r,E as V,F as T,bh as A,bm as _,f as E,e as F}from"./index-GyS8nTIx.js";const D={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function $(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return r("div",{class:F(["v-skeleton-loader__bone",`v-skeleton-loader__${e}`])},[a])}function l(e){const[a,t]=e.split("@");return Array.from({length:t}).map(()=>i(a))}function i(e){let a=[];if(!e)return a;const t=D[e];if(e!==t){if(e.includes(","))return d(e);if(e.includes("@"))return l(e);t.includes(",")?a=d(t):t.includes("@")?a=l(t):t&&a.push(i(t))}return[$(e,a)]}function d(e){return e.replace(/\s/g,"").split(",").map(i)}const j=k({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...E(),..._(),...A()},"VSkeletonLoader"),I=f()({name:"VSkeletonLoader",inheritAttrs:!1,props:j(),setup(e,a){let{attrs:t,slots:n}=a;const{backgroundColorClasses:c,backgroundColorStyles:u}=x(()=>e.color),{dimensionStyles:g}=y(e),{elevationClasses:m}=S(e),{themeClasses:v}=B(e),{t:b}=C(),p=L(()=>i(w(e.type).join(",")));return P(()=>{var s;const o=!n.default||e.loading,h=e.boilerplate||!o?{}:{ariaLive:"polite",ariaLabel:b(e.loadingText),role:"alert"};return o?r("div",V({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},v.value,c.value,m.value],style:[u.value,g.value]},h,t),[p.value]):r(T,null,[(s=n.default)==null?void 0:s.call(n)])}),{}}});export{I as V}; diff --git a/assets/VSwitch-C87GkfUP.css b/assets/VSwitch-C87GkfUP.css new file mode 100644 index 0000000..e42940b --- /dev/null +++ b/assets/VSwitch-C87GkfUP.css @@ -0,0 +1 @@ +.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%;opacity:1}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.v-switch .v-label{padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__loader .v-progress-circular{color:rgb(var(--v-theme-surface))}.v-switch__track,.v-switch__thumb{transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb{background-color:rgb(var(--v-theme-error));color:rgb(var(--v-theme-on-error))}.v-switch__track-true{margin-inline-end:auto}.v-selection-control:not(.v-selection-control--dirty) .v-switch__track-true{opacity:0}.v-switch__track-false{margin-inline-start:auto}.v-selection-control--dirty .v-switch__track-false{opacity:0}.v-switch__track{display:inline-flex;align-items:center;font-size:.5rem;padding:0 5px;background-color:rgb(var(--v-theme-surface-variant));border-radius:9999px;height:14px;opacity:.6;min-width:36px;cursor:pointer;transition:.2s background-color cubic-bezier(.4,0,.2,1)}.v-switch--inset .v-switch__track{border-radius:9999px;font-size:.75rem;height:32px;min-width:52px}.v-switch__thumb{align-items:center;background-color:rgb(var(--v-theme-surface-bright));color:rgb(var(--v-theme-on-surface-bright));border-radius:50%;display:flex;font-size:.75rem;height:20px;justify-content:center;width:20px;pointer-events:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1),.2s color cubic-bezier(.4,0,.2,1),.2s background-color cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.v-switch:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch--inset .v-switch__thumb{height:24px;width:24px;transform:scale(.6666666667)}.v-switch--inset .v-switch__thumb--filled{transform:none}.v-switch--inset .v-selection-control--dirty .v-switch__thumb{transform:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1)}.v-switch.v-input{flex:0 1 auto}.v-switch .v-selection-control{min-height:var(--v-input-control-height)}.v-switch .v-selection-control__input{border-radius:50%;transition:.2s transform cubic-bezier(.4,0,.2,1);position:absolute}.v-locale--is-ltr.v-switch .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control__input{transform:translate(-10px)}.v-locale--is-rtl.v-switch .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control__input{transform:translate(10px)}.v-switch .v-selection-control__input .v-icon{position:absolute}.v-locale--is-ltr.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(10px)}.v-locale--is-rtl.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(-10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.v-switch.v-switch--inset .v-selection-control__wrapper{width:auto}.v-switch.v-input--vertical .v-label{min-width:max-content}.v-switch.v-input--vertical .v-selection-control__wrapper{transform:rotate(-90deg)}@media (forced-colors: active){.v-switch .v-switch__loader .v-progress-circular{color:currentColor}.v-switch .v-switch__thumb{background-color:buttontext}.v-switch .v-switch__track,.v-switch .v-switch__thumb{border:1px solid;color:buttontext}.v-switch:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track,.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{color:highlight}.v-switch.v-switch--inset .v-switch__track{border-width:2px}.v-switch.v-switch--inset:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlighttext;color:highlighttext}.v-switch.v-input--disabled .v-switch__thumb{background-color:graytext}.v-switch.v-input--disabled .v-switch__track,.v-switch.v-input--disabled .v-switch__thumb{color:graytext}.v-switch.v-switch--loading .v-switch__thumb{background-color:canvas}.v-switch.v-switch--loading.v-switch--inset .v-switch__thumb,.v-switch.v-switch--loading.v-switch--indeterminate .v-switch__thumb{border-width:0}} diff --git a/assets/VSwitch-CCxGT9ZY.js b/assets/VSwitch-CCxGT9ZY.js deleted file mode 100644 index abdd5b3..0000000 --- a/assets/VSwitch-CCxGT9ZY.js +++ /dev/null @@ -1 +0,0 @@ -import{g as j,p as G,a3 as w,b_ as J,$ as y,cp as K,ay as C,aN as Q,c as W,az as X,d as l,E as b,i as n,n as S,e as P,ac as Y,cq as Z,v as ee,b$ as ae,cr as te,F as le,ad as se}from"./index-BBVdlVQD.js";import{a as oe,b as _,f as ne}from"./VTextField-C-Z2P35g.js";import{V as A,m as ie}from"./VSelectionControl-D-h-HCLE.js";const re=G({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...ne(),...ie()},"VSwitch"),fe=j()({name:"VSwitch",inheritAttrs:!1,props:re(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,I){let{attrs:F,slots:a}=I;const i=w(e,"indeterminate"),s=w(e,"modelValue"),{loaderClasses:p}=J(e),{isFocused:x,focus:z,blur:B}=oe(e),h=y(),V=y(),k=K&&window.matchMedia("(forced-colors: active)").matches,R=C(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),M=Q(),D=C(()=>e.id||`switch-${M}`);function N(){i.value&&(i.value=!1)}function T(r){var c,u;r.stopPropagation(),r.preventDefault(),(u=(c=h.value)==null?void 0:c.input)==null||u.click()}return W(()=>{const[r,c]=X(F),u=_.filterProps(e),U=A.filterProps(e);return l(_,b({ref:V,class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":i.value},p.value,e.class]},r,u,{modelValue:s.value,"onUpdate:modelValue":d=>s.value=d,id:D.value,focused:x.value,style:e.style}),{...a,default:d=>{let{id:$,messagesId:E,isDisabled:L,isReadonly:q,isValid:g}=d;const f={model:s,isValid:g};return l(A,b({ref:h},U,{modelValue:s.value,"onUpdate:modelValue":[o=>s.value=o,N],id:$.value,"aria-describedby":E.value,type:"checkbox","aria-checked":i.value?"mixed":void 0,disabled:L.value,readonly:q.value,onFocus:z,onBlur:B},c),{...a,default:o=>{let{backgroundColorClasses:v,backgroundColorStyles:t}=o;return n("div",{class:P(["v-switch__track",k?void 0:v.value]),style:S(t.value),onClick:T},[a["track-true"]&&n("div",{key:"prepend",class:"v-switch__track-true"},[a["track-true"](f)]),a["track-false"]&&n("div",{key:"append",class:"v-switch__track-false"},[a["track-false"](f)])])},input:o=>{let{inputNode:v,icon:t,backgroundColorClasses:H,backgroundColorStyles:O}=o;return n(le,null,[v,n("div",{class:P(["v-switch__thumb",{"v-switch__thumb--filled":t||e.loading},e.inset||k?void 0:H.value]),style:S(e.inset?void 0:O.value)},[a.thumb?l(Y,{defaults:{VIcon:{icon:t,size:"x-small"}}},{default:()=>[a.thumb({...f,icon:t})]}):l(Z,null,{default:()=>[e.loading?l(ae,{name:"v-switch",active:!0,color:g.value===!1?void 0:R.value},{default:m=>a.loader?a.loader(m):l(te,{active:m.isActive,color:m.color,indeterminate:!0,size:"16",width:"2"},null)}):t&&l(ee,{key:String(t),icon:t,size:"x-small"},null)]})])])}})}})}),se({},V)}});export{fe as V}; diff --git a/assets/VSwitch-COsJOhk2.js b/assets/VSwitch-COsJOhk2.js new file mode 100644 index 0000000..7cf8986 --- /dev/null +++ b/assets/VSwitch-COsJOhk2.js @@ -0,0 +1 @@ +import{p as G,bh as ie,aJ as se,h as Y,ag as re,a$ as Z,g as q,a3 as R,ba as O,ay as n,aH as ce,c as J,i as r,n as U,e as T,bN as de,bx as ve,S as K,a0 as Q,$ as H,az as p,E as z,d as b,I as fe,F as ee,v as le,bI as me,aF as ye,a5 as x,a4 as j,a2 as be,aB as Ce,a7 as Ve,ah as ge,bZ as ke,cq as Se,ac as he,cr as we,b_ as Ie,bu as Pe,ad as _e}from"./index-GyS8nTIx.js";import{j as Ae,a as Be,b as W,f as Fe}from"./VTextField-xLiM0gib.js";const ae=Symbol.for("vuetify:selection-control-group"),te=G({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Z,trueIcon:Z,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:re},...Y(),...se(),...ie()},"SelectionControlGroup"),xe=G({...te({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");q()({name:"VSelectionControlGroup",props:xe(),emits:{"update:modelValue":e=>!0},setup(e,i){let{slots:f}=i;const l=R(e,"modelValue"),a=O(),u=n(()=>e.id||`v-selection-control-group-${a}`),c=n(()=>e.name||u.value),t=new Set;return de(ae,{modelValue:l,forceUpdate:()=>{t.forEach(o=>o())},onForceUpdate:o=>{t.add(o),ve(()=>{t.delete(o)})}}),ce({[e.defaultsTarget]:{color:n(()=>e.color),disabled:n(()=>e.disabled),density:n(()=>e.density),error:n(()=>e.error),inline:n(()=>e.inline),modelValue:l,multiple:n(()=>!!e.multiple||e.multiple==null&&Array.isArray(l.value)),name:c,falseIcon:n(()=>e.falseIcon),trueIcon:n(()=>e.trueIcon),readonly:n(()=>e.readonly),ripple:n(()=>e.ripple),type:n(()=>e.type),valueComparator:n(()=>e.valueComparator)}}),J(()=>{var o;return r("div",{class:T(["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class]),style:U(e.style),role:e.type==="radio"?"radiogroup":void 0},[(o=f.default)==null?void 0:o.call(f)])}),{}}});const ne=G({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Y(),...te()},"VSelectionControl");function Te(e){const i=me(ae,void 0),{densityClasses:f}=ye(e),l=R(e,"modelValue"),a=x(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),u=x(()=>e.falseValue!==void 0?e.falseValue:!1),c=x(()=>!!e.multiple||e.multiple==null&&Array.isArray(l.value)),t=x({get(){const m=i?i.modelValue.value:l.value;return c.value?j(m).some(s=>e.valueComparator(s,a.value)):e.valueComparator(m,a.value)},set(m){if(e.readonly)return;const s=m?a.value:u.value;let y=s;c.value&&(y=m?[...j(l.value),s]:j(l.value).filter(d=>!e.valueComparator(d,a.value))),i?i.modelValue.value=y:l.value=y}}),{textColorClasses:o,textColorStyles:w}=be(()=>{if(!(e.error||e.disabled))return t.value?e.color:e.baseColor}),{backgroundColorClasses:V,backgroundColorStyles:g}=Ce(()=>t.value&&!e.error&&!e.disabled?e.color:e.baseColor),I=x(()=>t.value?e.trueIcon:e.falseIcon);return{group:i,densityClasses:f,trueValue:a,falseValue:u,model:t,textColorClasses:o,textColorStyles:w,backgroundColorClasses:V,backgroundColorStyles:g,icon:I}}const X=q()({name:"VSelectionControl",directives:{vRipple:K},inheritAttrs:!1,props:ne(),emits:{"update:modelValue":e=>!0},setup(e,i){let{attrs:f,slots:l}=i;const{group:a,densityClasses:u,icon:c,model:t,textColorClasses:o,textColorStyles:w,backgroundColorClasses:V,backgroundColorStyles:g,trueValue:I}=Te(e),m=O(),s=Q(!1),y=Q(!1),d=H(),P=n(()=>e.id||`input-${m}`),k=n(()=>!e.disabled&&!e.readonly);a==null||a.onForceUpdate(()=>{d.value&&(d.value.checked=t.value)});function S(v){k.value&&(s.value=!0,ge(v.target,":focus-visible")!==!1&&(y.value=!0))}function h(){s.value=!1,y.value=!1}function M(v){v.stopPropagation()}function A(v){if(!k.value){d.value&&(d.value.checked=t.value);return}e.readonly&&a&&Ve(()=>a.forceUpdate()),t.value=v.target.checked}return J(()=>{var B,_;const v=l.label?l.label({label:e.label,props:{for:P.value}}):e.label,[N,$]=p(f),D=r("input",z({ref:d,checked:t.value,disabled:!!e.disabled,id:P.value,onBlur:h,onFocus:S,onInput:A,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:I.value,name:e.name,"aria-checked":e.type==="checkbox"?t.value:void 0},$),null);return r("div",z({class:["v-selection-control",{"v-selection-control--dirty":t.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":s.value,"v-selection-control--focus-visible":y.value,"v-selection-control--inline":e.inline},u.value,e.class]},N,{style:e.style}),[r("div",{class:T(["v-selection-control__wrapper",o.value]),style:U(w.value)},[(B=l.default)==null?void 0:B.call(l,{backgroundColorClasses:V,backgroundColorStyles:g}),fe(r("div",{class:T(["v-selection-control__input"])},[((_=l.input)==null?void 0:_.call(l,{model:t,textColorClasses:o,textColorStyles:w,backgroundColorClasses:V,backgroundColorStyles:g,inputNode:D,icon:c.value,props:{onFocus:S,onBlur:h,id:P.value}}))??r(ee,null,[c.value&&b(le,{key:"icon",icon:c.value},null),D])]),[[K,!e.disabled&&!e.readonly&&e.ripple,null,{center:!0,circle:!0}]])]),v&&b(Ae,{for:P.value,onClick:M},{default:()=>[v]})])}),{isFocused:s,input:d}}}),De=G({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Fe(),...ne()},"VSwitch"),ze=q()({name:"VSwitch",inheritAttrs:!1,props:De(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,i){let{attrs:f,slots:l}=i;const a=R(e,"indeterminate"),u=R(e,"modelValue"),{loaderClasses:c}=ke(e),{isFocused:t,focus:o,blur:w}=Be(e),V=H(),g=H(),I=Se&&window.matchMedia("(forced-colors: active)").matches,m=n(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),s=O(),y=n(()=>e.id||`switch-${s}`);function d(){a.value&&(a.value=!1)}function P(k){var S,h;k.stopPropagation(),k.preventDefault(),(h=(S=V.value)==null?void 0:S.input)==null||h.click()}return J(()=>{const[k,S]=p(f),h=W.filterProps(e),M=X.filterProps(e);return b(W,z({ref:g,class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":a.value},c.value,e.class]},k,h,{modelValue:u.value,"onUpdate:modelValue":A=>u.value=A,id:y.value,focused:t.value,style:e.style}),{...l,default:A=>{let{id:v,messagesId:N,isDisabled:$,isReadonly:D,isValid:B}=A;const _={model:u,isValid:B};return b(X,z({ref:V},M,{modelValue:u.value,"onUpdate:modelValue":[F=>u.value=F,d],id:v.value,"aria-describedby":N.value,type:"checkbox","aria-checked":a.value?"mixed":void 0,disabled:$.value,readonly:D.value,onFocus:o,onBlur:w},S),{...l,default:F=>{let{backgroundColorClasses:E,backgroundColorStyles:C}=F;return r("div",{class:T(["v-switch__track",I?void 0:E.value]),style:U(C.value),onClick:P},[l["track-true"]&&r("div",{key:"prepend",class:"v-switch__track-true"},[l["track-true"](_)]),l["track-false"]&&r("div",{key:"append",class:"v-switch__track-false"},[l["track-false"](_)])])},input:F=>{let{inputNode:E,icon:C,backgroundColorClasses:oe,backgroundColorStyles:ue}=F;return r(ee,null,[E,r("div",{class:T(["v-switch__thumb",{"v-switch__thumb--filled":C||e.loading},e.inset||I?void 0:oe.value]),style:U(e.inset?void 0:ue.value)},[l.thumb?b(he,{defaults:{VIcon:{icon:C,size:"x-small"}}},{default:()=>[l.thumb({..._,icon:C})]}):b(we,null,{default:()=>[e.loading?b(Ie,{name:"v-switch",active:!0,color:B.value===!1?void 0:m.value},{default:L=>l.loader?l.loader(L):b(Pe,{active:L.isActive,color:L.color,indeterminate:!0,size:"16",width:"2"},null)}):C&&b(le,{key:String(C),icon:C,size:"x-small"},null)]})])])}})}})}),_e({},g)}});export{ze as V,X as a,ne as m}; diff --git a/assets/VSwitch-DdP_-uRS.css b/assets/VSwitch-DdP_-uRS.css deleted file mode 100644 index 6387528..0000000 --- a/assets/VSwitch-DdP_-uRS.css +++ /dev/null @@ -1 +0,0 @@ -.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.v-switch .v-label{padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__loader .v-progress-circular{color:rgb(var(--v-theme-surface))}.v-switch__track,.v-switch__thumb{transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb{background-color:rgb(var(--v-theme-error));color:rgb(var(--v-theme-on-error))}.v-switch__track-true{margin-inline-end:auto}.v-selection-control:not(.v-selection-control--dirty) .v-switch__track-true{opacity:0}.v-switch__track-false{margin-inline-start:auto}.v-selection-control--dirty .v-switch__track-false{opacity:0}.v-switch__track{display:inline-flex;align-items:center;font-size:.5rem;padding:0 5px;background-color:rgb(var(--v-theme-surface-variant));border-radius:9999px;height:14px;opacity:.6;min-width:36px;cursor:pointer;transition:.2s background-color cubic-bezier(.4,0,.2,1)}.v-switch--inset .v-switch__track{border-radius:9999px;font-size:.75rem;height:32px;min-width:52px}.v-switch__thumb{align-items:center;background-color:rgb(var(--v-theme-surface-bright));color:rgb(var(--v-theme-on-surface-bright));border-radius:50%;display:flex;font-size:.75rem;height:20px;justify-content:center;width:20px;pointer-events:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1),.2s color cubic-bezier(.4,0,.2,1),.2s background-color cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.v-switch:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch--inset .v-switch__thumb{height:24px;width:24px;transform:scale(.6666666667)}.v-switch--inset .v-switch__thumb--filled{transform:none}.v-switch--inset .v-selection-control--dirty .v-switch__thumb{transform:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1)}.v-switch.v-input{flex:0 1 auto}.v-switch .v-selection-control{min-height:var(--v-input-control-height)}.v-switch .v-selection-control__input{border-radius:50%;transition:.2s transform cubic-bezier(.4,0,.2,1);position:absolute}.v-locale--is-ltr.v-switch .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control__input{transform:translate(-10px)}.v-locale--is-rtl.v-switch .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control__input{transform:translate(10px)}.v-switch .v-selection-control__input .v-icon{position:absolute}.v-locale--is-ltr.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(10px)}.v-locale--is-rtl.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(-10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.v-switch.v-switch--inset .v-selection-control__wrapper{width:auto}.v-switch.v-input--vertical .v-label{min-width:max-content}.v-switch.v-input--vertical .v-selection-control__wrapper{transform:rotate(-90deg)}@media (forced-colors: active){.v-switch .v-switch__loader .v-progress-circular{color:currentColor}.v-switch .v-switch__thumb{background-color:buttontext}.v-switch .v-switch__track,.v-switch .v-switch__thumb{border:1px solid;color:buttontext}.v-switch:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track,.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{color:highlight}.v-switch.v-switch--inset .v-switch__track{border-width:2px}.v-switch.v-switch--inset:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlighttext;color:highlighttext}.v-switch.v-input--disabled .v-switch__thumb{background-color:graytext}.v-switch.v-input--disabled .v-switch__track,.v-switch.v-input--disabled .v-switch__thumb{color:graytext}.v-switch.v-switch--loading .v-switch__thumb{background-color:canvas}.v-switch.v-switch--loading.v-switch--inset .v-switch__thumb,.v-switch.v-switch--loading.v-switch--indeterminate .v-switch__thumb{border-width:0}} diff --git a/assets/VTabsWindowItem-CNNzieW-.js b/assets/VTabsWindowItem-CNNzieW-.js deleted file mode 100644 index a350d67..0000000 --- a/assets/VTabsWindowItem-CNNzieW-.js +++ /dev/null @@ -1 +0,0 @@ -import{bP as O,g as I,p as S,bl as p,b8 as ee,Z as te,bN as ne,$ as k,a5 as h,a0 as W,a6 as oe,a8 as H,bQ as se,a7 as D,ay as A,d as w,i as b,y as L,c as V,I as F,e as E,n as j,aI as B,bR as ae,bh as ie,m as le,h as z,bM as ue,bH as G,a3 as ce,E as N,ae as re,bK as de,b as ve,bI as fe,J as he,b1 as me,bJ as we,bL as ge}from"./index-BBVdlVQD.js";const be=e=>{const{touchstartX:o,touchendX:t,touchstartY:n,touchendY:a}=e,l=.5,s=16;e.offsetX=t-o,e.offsetY=a-n,Math.abs(e.offsetY)o+s&&e.right(e)),Math.abs(e.offsetX)n+s&&e.down(e))};function ye(e,o){var n;const t=e.changedTouches[0];o.touchstartX=t.clientX,o.touchstartY=t.clientY,(n=o.start)==null||n.call(o,{originalEvent:e,...o})}function Te(e,o){var n;const t=e.changedTouches[0];o.touchendX=t.clientX,o.touchendY=t.clientY,(n=o.end)==null||n.call(o,{originalEvent:e,...o}),be(o)}function Ie(e,o){var n;const t=e.changedTouches[0];o.touchmoveX=t.clientX,o.touchmoveY=t.clientY,(n=o.move)==null||n.call(o,{originalEvent:e,...o})}function Se(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:t=>ye(t,o),touchend:t=>Te(t,o),touchmove:t=>Ie(t,o)}}function Ve(e,o){var u;const t=o.value,n=t!=null&&t.parent?e.parentElement:e,a=(t==null?void 0:t.options)??{passive:!0},l=(u=o.instance)==null?void 0:u.$.uid;if(!n||l===void 0)return;const s=Se(o.value);n._touchHandlers=n._touchHandlers??Object.create(null),n._touchHandlers[l]=s,O(s).forEach(v=>{n.addEventListener(v,s[v],a)})}function _e(e,o){var l,s;const t=(l=o.value)!=null&&l.parent?e.parentElement:e,n=(s=o.instance)==null?void 0:s.$.uid;if(!(t!=null&&t._touchHandlers)||n===void 0)return;const a=t._touchHandlers[n];O(a).forEach(u=>{t.removeEventListener(u,a[u])}),delete t._touchHandlers[n]}const x={mounted:Ve,unmounted:_e},We=Symbol.for("vuetify:v-tabs"),U=Symbol.for("vuetify:v-window"),J=Symbol.for("vuetify:v-window-group"),q=S({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},verticalArrows:[Boolean,String],touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},crossfade:Boolean,transitionDuration:Number,...z(),...le(),...ie()},"VWindow"),$=I()({name:"VWindow",directives:{vTouch:x},props:q(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:t}=o;const{themeClasses:n}=p(e),{isRtl:a}=ee(),{t:l}=te(),s=ne(e,J),u=k(),v=h(()=>a.value?!e.reverse:e.reverse),f=W(!1),y=h(()=>{if(e.crossfade)return"v-window-crossfade-transition";const c=e.direction==="vertical"?"y":"x",i=(v.value?!f.value:f.value)?"-reverse":"";return`v-window-${c}${i}-transition`}),_=W(0),T=k(void 0),g=h(()=>s.items.value.findIndex(c=>s.selected.value.includes(c.id)));oe(g,(c,r)=>{let i;const m={left:0,top:0};H&&r>=0&&(i=se(u.value),m.left=i==null?void 0:i.scrollLeft,m.top=i==null?void 0:i.scrollTop);const Y=s.items.value.length,X=Y-1;Y<=2?f.value=c{if(!H||!i)return;i.scrollTop!==m.top&&i.scrollTo({...m,behavior:"instant"}),requestAnimationFrame(()=>{if(!i)return;i.scrollTop!==m.top&&i.scrollTo({...m,behavior:"instant"})})})},{flush:"sync"}),ue(U,{transition:y,isReversed:f,transitionCount:_,transitionHeight:T,rootRef:u});const d=A(()=>e.continuous||g.value!==0),C=A(()=>e.continuous||g.value!==s.items.value.length-1);function P(){d.value&&s.prev()}function R(){C.value&&s.next()}const Q=h(()=>{const c=[],r={icon:a.value?e.nextIcon:e.prevIcon,class:`v-window__${v.value?"right":"left"}`,onClick:s.prev,"aria-label":l("$vuetify.carousel.prev")};c.push(d.value?t.prev?t.prev({props:r}):w(L,r,null):b("div",null,null));const i={icon:a.value?e.prevIcon:e.nextIcon,class:`v-window__${v.value?"left":"right"}`,onClick:s.next,"aria-label":l("$vuetify.carousel.next")};return c.push(C.value?t.next?t.next({props:i}):w(L,i,null):b("div",null,null)),c}),Z=h(()=>e.touch===!1?e.touch:{...{left:()=>{v.value?P():R()},right:()=>{v.value?R():P()},start:r=>{let{originalEvent:i}=r;i.stopPropagation()}},...e.touch===!0?{}:e.touch});return V(()=>F(w(e.tag,{ref:u,class:E(["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover","v-window--vertical-arrows":!!e.verticalArrows,"v-window--crossfade":!!e.crossfade},n.value,e.class]),style:j([e.style,e.transitionDuration&&!ae?{"--v-window-transition-duration":B(e.transitionDuration,"ms")}:void 0])},{default:()=>{var c,r;return[b("div",{class:"v-window__container",style:{height:T.value}},[(c=t.default)==null?void 0:c.call(t,{group:s}),e.showArrows!==!1&&b("div",{class:E(["v-window__controls",{"v-window__controls--left":e.verticalArrows==="left"||e.verticalArrows===!0},{"v-window__controls--right":e.verticalArrows==="right"}])},[Q.value])]),(r=t.additional)==null?void 0:r.call(t,{group:s})]}}),[[x,Z.value]])),{group:s}}}),Ee=S({...re(q(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),Re=I()({name:"VTabsWindow",props:Ee(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:t}=o;const n=G(We,null),a=ce(e,"modelValue"),l=h({get(){var s;return a.value!=null||!n?a.value:(s=n.items.value.find(u=>n.selected.value.includes(u.id)))==null?void 0:s.value},set(s){a.value=s}});return V(()=>{const s=$.filterProps(e);return w($,N({_as:"VTabsWindow"},s,{modelValue:l.value,"onUpdate:modelValue":u=>l.value=u,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),t)}),{}}}),K=S({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...z(),...ge(),...we()},"VWindowItem"),M=I()({name:"VWindowItem",directives:{vTouch:x},props:K(),emits:{"group:selected":e=>!0},setup(e,o){let{slots:t}=o;const n=G(U),a=de(e,J),{isBooted:l}=ve();if(!n||!a)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const s=W(!1),u=h(()=>l.value&&(n.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function v(){!s.value||!n||(s.value=!1,n.transitionCount.value>0&&(n.transitionCount.value-=1,n.transitionCount.value===0&&(n.transitionHeight.value=void 0)))}function f(){var d;s.value||!n||(s.value=!0,n.transitionCount.value===0&&(n.transitionHeight.value=B((d=n.rootRef.value)==null?void 0:d.clientHeight)),n.transitionCount.value+=1)}function y(){v()}function _(d){s.value&&D(()=>{!u.value||!s.value||!n||(n.transitionHeight.value=B(d.clientHeight))})}const T=h(()=>{const d=n.isReversed.value?e.reverseTransition:e.transition;return u.value?{name:typeof d!="string"?n.transition.value:d,onBeforeEnter:f,onAfterEnter:v,onEnterCancelled:y,onBeforeLeave:f,onAfterLeave:v,onLeaveCancelled:y,onEnter:_}:!1}),{hasContent:g}=fe(e,a.isSelected);return V(()=>w(me,{transition:T.value,disabled:!l.value},{default:()=>{var d;return[F(b("div",{class:E(["v-window-item",a.selectedClass.value,e.class]),style:j(e.style)},[g.value&&((d=t.default)==null?void 0:d.call(t))]),[[he,a.isSelected.value]])]}})),{groupItem:a}}}),Be=S({...K()},"VTabsWindowItem"),Ye=I()({name:"VTabsWindowItem",props:Be(),setup(e,o){let{slots:t}=o;return V(()=>{const n=M.filterProps(e);return w(M,N({_as:"VTabsWindowItem"},n,{class:["v-tabs-window-item",e.class],style:e.style}),t)}),{}}});export{We as V,Ye as a,Re as b,$ as c,M as d}; diff --git a/assets/VTabsWindowItem-CQ5wWbRm.css b/assets/VTabsWindowItem-CQ5wWbRm.css deleted file mode 100644 index 75a1461..0000000 --- a/assets/VTabsWindowItem-CQ5wWbRm.css +++ /dev/null @@ -1 +0,0 @@ -.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.v-window{overflow:hidden}.v-window__container{display:flex;flex-direction:column;height:inherit;position:relative;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-window__controls{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 16px;pointer-events:none}.v-window__controls>*{pointer-events:auto}.v-window--show-arrows-on-hover{overflow:hidden}.v-window--show-arrows-on-hover .v-window__left{transform:translate(-200%)}:has(.v-window__controls--right).v-window--show-arrows-on-hover .v-window__left{transform:translate(200%)}.v-window--show-arrows-on-hover .v-window__right{transform:translate(200%)}:has(.v-window__controls--left).v-window--show-arrows-on-hover .v-window__right{transform:translate(-200%)}.v-window--show-arrows-on-hover:hover .v-window__left,.v-window--show-arrows-on-hover:hover .v-window__right{transform:translate(0)}.v-window--vertical-arrows .v-window__controls{flex-direction:column;justify-content:center;gap:12px}.v-window--vertical-arrows .v-window__controls--left{align-items:start}.v-window--vertical-arrows .v-window__controls--right{align-items:end}.v-window--vertical-arrows .v-window__controls .v-window__left .v-icon,.v-window--vertical-arrows .v-window__controls .v-window__right .v-icon{transform:rotate(90deg)}@container style(--v-window-transition-duration){.v-window .v-window-item{transition-duration:var(--v-window-transition-duration)!important}}.v-window--crossfade>.v-window__container{isolation:isolate}.v-window--crossfade>.v-window__container>.v-window-item{mix-blend-mode:plus-lighter}.v-window-x-transition-enter-active,.v-window-x-transition-leave-active,.v-window-x-reverse-transition-enter-active,.v-window-x-reverse-transition-leave-active,.v-window-y-transition-enter-active,.v-window-y-transition-leave-active,.v-window-y-reverse-transition-enter-active,.v-window-y-reverse-transition-leave-active{transition:.3s cubic-bezier(.25,.8,.5,1)}@media (prefers-reduced-motion: reduce){.v-window-x-transition-enter-active,.v-window-x-transition-leave-active,.v-window-x-reverse-transition-enter-active,.v-window-x-reverse-transition-leave-active,.v-window-y-transition-enter-active,.v-window-y-transition-leave-active,.v-window-y-reverse-transition-enter-active,.v-window-y-reverse-transition-leave-active{transition-duration:0s}}.v-window-x-transition-leave-from,.v-window-x-transition-leave-to,.v-window-x-reverse-transition-leave-from,.v-window-x-reverse-transition-leave-to,.v-window-y-transition-leave-from,.v-window-y-transition-leave-to,.v-window-y-reverse-transition-leave-from,.v-window-y-reverse-transition-leave-to{position:absolute!important;top:0;width:100%}.v-window-x-transition-enter-from{transform:translate(100%)}.v-window-x-transition-leave-to,.v-window-x-reverse-transition-enter-from{transform:translate(-100%)}.v-window-x-reverse-transition-leave-to{transform:translate(100%)}.v-window-y-transition-enter-from{transform:translateY(100%)}.v-window-y-transition-leave-to,.v-window-y-reverse-transition-enter-from{transform:translateY(-100%)}.v-window-y-reverse-transition-leave-to{transform:translateY(100%)}.v-window-crossfade-transition-enter-active,.v-window-crossfade-transition-leave-active{transition:.3s cubic-bezier(.25,.8,.5,1)}.v-window-crossfade-transition-leave-from,.v-window-crossfade-transition-leave-to{position:absolute!important;top:0;width:100%}.v-window-crossfade-transition-enter-from,.v-window-crossfade-transition-leave-to{opacity:0} diff --git a/assets/VTabsWindowItem-ClJOXEhz.js b/assets/VTabsWindowItem-ClJOXEhz.js new file mode 100644 index 0000000..7b01198 --- /dev/null +++ b/assets/VTabsWindowItem-ClJOXEhz.js @@ -0,0 +1 @@ +import{bQ as At,aA as Rt,bR as Me,p as _,a3 as K,a5 as V,a6 as ce,bS as je,aY as ye,bI as Y,bN as z,g as R,Z as te,c as W,i as w,d as I,E as O,ae as fe,a$ as N,bT as Ht,aI as E,e as j,$ as M,b4 as $t,bU as Nt,bV as Wt,a4 as ae,bW as Lt,ag as Ye,a0 as se,ay as B,bX as ue,bY as ne,aL as Gt,bZ as Mt,aB as jt,X as ke,b_ as Yt,F as Q,b$ as Xt,bE as Ie,aJ as ve,v as Ee,n as me,c0 as Kt,y as ie,t as Fe,c1 as le,O as oe,C as zt,b1 as xe,aK as Se,bl as Xe,aF as Ut,bh as Ke,m as ze,h as Te,c2 as re,c3 as qt,aH as Jt,K as Qt,b7 as Zt,bO as ea,a8 as Oe,c4 as ta,a7 as Ue,I as qe,c5 as aa,bL as na,b as la,bJ as oa,J as ra,b0 as sa,bK as ua,bM as ia}from"./index-GyS8nTIx.js";import{V as Ae,f as Je,u as da,e as ca}from"./filter-D0RnlzqQ.js";import{V as fa}from"./VChip-DsTHqUw0.js";import{V as de}from"./VCheckboxBtn-Cjkf0n-9.js";function Re(e,n,a){return Object.keys(e).filter(t=>At(t)&&t.endsWith(n)).reduce((t,l)=>(t[l.slice(0,-n.length)]=r=>Rt(e[l],r,a(r)),t),{})}const va=e=>{const{touchstartX:n,touchendX:a,touchstartY:t,touchendY:l}=e,r=.5,o=16;e.offsetX=a-n,e.offsetY=l-t,Math.abs(e.offsetY)n+o&&e.right(e)),Math.abs(e.offsetX)t+o&&e.down(e))};function ma(e,n){var t;const a=e.changedTouches[0];n.touchstartX=a.clientX,n.touchstartY=a.clientY,(t=n.start)==null||t.call(n,{originalEvent:e,...n})}function ga(e,n){var t;const a=e.changedTouches[0];n.touchendX=a.clientX,n.touchendY=a.clientY,(t=n.end)==null||t.call(n,{originalEvent:e,...n}),va(n)}function ha(e,n){var t;const a=e.changedTouches[0];n.touchmoveX=a.clientX,n.touchmoveY=a.clientY,(t=n.move)==null||t.call(n,{originalEvent:e,...n})}function ba(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:a=>ma(a,n),touchend:a=>ga(a,n),touchmove:a=>ha(a,n)}}function ya(e,n){var s;const a=n.value,t=a!=null&&a.parent?e.parentElement:e,l=(a==null?void 0:a.options)??{passive:!0},r=(s=n.instance)==null?void 0:s.$.uid;if(!t||r===void 0)return;const o=ba(n.value);t._touchHandlers=t._touchHandlers??Object.create(null),t._touchHandlers[r]=o,Me(o).forEach(u=>{t.addEventListener(u,o[u],l)})}function xa(e,n){var r,o;const a=(r=n.value)!=null&&r.parent?e.parentElement:e,t=(o=n.instance)==null?void 0:o.$.uid;if(!(a!=null&&a._touchHandlers)||t===void 0)return;const l=a._touchHandlers[t];Me(l).forEach(s=>{a.removeEventListener(s,l[s])}),delete a._touchHandlers[t]}const we={mounted:ya,unmounted:xa},Sa=_({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),Qe=Symbol.for("vuetify:data-table-pagination");function wa(e){const n=K(e,"page",void 0,t=>Number(t??1)),a=K(e,"itemsPerPage",void 0,t=>Number(t??10));return{page:n,itemsPerPage:a}}function Pa(e){const{page:n,itemsPerPage:a,itemsLength:t}=e,l=V(()=>a.value===-1?0:a.value*(n.value-1)),r=V(()=>a.value===-1?t.value:Math.min(t.value,l.value+a.value)),o=V(()=>a.value===-1||t.value===0?1:Math.ceil(t.value/a.value));ce([n,o],()=>{n.value>o.value&&(n.value=o.value)});function s(v){a.value=v,n.value=1}function u(){n.value=ye(n.value+1,1,o.value)}function d(){n.value=ye(n.value-1,1,o.value)}function c(v){n.value=ye(v,1,o.value)}const m={page:n,itemsPerPage:a,startIndex:l,stopIndex:r,pageCount:o,itemsLength:t,nextPage:u,prevPage:d,setPage:c,setItemsPerPage:s};return z(Qe,m),m}function ka(){const e=Y(Qe);if(!e)throw new Error("Missing pagination!");return e}function Ia(e){const n=je("usePaginatedItems"),{items:a,startIndex:t,stopIndex:l,itemsPerPage:r}=e,o=V(()=>r.value<=0?a.value:a.value.slice(t.value,l.value));return ce(o,s=>{n.emit("update:currentItems",s)},{immediate:!0}),{paginatedItems:o}}const Ze=_({color:String,prevIcon:{type:N,default:"$prev"},nextIcon:{type:N,default:"$next"},firstIcon:{type:N,default:"$first"},lastIcon:{type:N,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),He=R()({name:"VDataTableFooter",props:Ze(),setup(e,n){let{slots:a}=n;const{t}=te(),{page:l,pageCount:r,startIndex:o,stopIndex:s,itemsLength:u,itemsPerPage:d,setItemsPerPage:c}=ka(),m=V(()=>e.itemsPerPageOptions.map(v=>typeof v=="number"?{value:v,title:v===-1?t("$vuetify.dataFooter.itemsPerPageAll"):String(v)}:{...v,title:isNaN(Number(v.title))?t(v.title):v.title}));return W(()=>{var P;const v=Ae.filterProps(e);return w("div",{class:"v-data-table-footer"},[(P=a.prepend)==null?void 0:P.call(a),w("div",{class:"v-data-table-footer__items-per-page"},[w("span",{"aria-label":t(e.itemsPerPageText)},[t(e.itemsPerPageText)]),I(Je,{items:m.value,itemColor:e.color,modelValue:d.value,"onUpdate:modelValue":g=>c(Number(g)),density:"compact",variant:"outlined",hideDetails:!0},null)]),w("div",{class:"v-data-table-footer__info"},[w("div",null,[t(e.pageText,u.value?o.value+1:0,s.value,u.value)])]),w("div",{class:"v-data-table-footer__pagination"},[I(Ae,O({modelValue:l.value,"onUpdate:modelValue":g=>l.value=g,density:"comfortable",firstAriaLabel:e.firstPageLabel,lastAriaLabel:e.lastPageLabel,length:r.value,nextAriaLabel:e.nextPageLabel,previousAriaLabel:e.prevPageLabel,rounded:!0,showFirstLastPage:!0,totalVisible:e.showCurrentPage?1:0,variant:"plain"},fe(v,["color"])),null)])])}),{}}}),ee=Ht({align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,indent:[Number,String],empty:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,n)=>{let{slots:a}=n;const t=e.tag??"td",l=typeof e.fixed=="string"?e.fixed:e.fixed?"start":"none";return I(t,{class:j(["v-data-table__td",{"v-data-table-column--fixed":l==="start","v-data-table-column--fixed-end":l==="end","v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--first-fixed-end":e.firstFixedEnd,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap,"v-data-table-column--empty":e.empty},`v-data-table-column--align-${e.align}`]),style:{height:E(e.height),width:E(e.width),maxWidth:E(e.maxWidth),left:l==="start"?E(e.fixedOffset||null):void 0,right:l==="end"?E(e.fixedEndOffset||null):void 0,paddingInlineStart:e.indent?E(e.indent):void 0}},{default:()=>{var r;return[(r=a.default)==null?void 0:r.call(a)]}})}),Ta=_({headers:Array},"DataTable-header"),et=Symbol.for("vuetify:data-table-headers"),tt={title:"",sortable:!1},Va={...tt,width:48};function pa(){const n=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(a=>({element:a,priority:0}));return{enqueue:(a,t)=>{let l=!1;for(let r=0;rt){n.splice(r,0,{element:a,priority:t}),l=!0;break}l||n.push({element:a,priority:t})},size:()=>n.length,count:()=>{let a=0;if(!n.length)return 0;const t=Math.floor(n[0].priority);for(let l=0;ln.shift()}}function Pe(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)n.push(e);else for(const a of e.children)Pe(a,n);return n}function at(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const a of e)a.key&&n.add(a.key),a.children&&at(a.children,n);return n}function Da(e){if(e.key){if(e.key==="data-table-group")return tt;if(["data-table-expand","data-table-select"].includes(e.key))return Va}}function Ve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(n,...e.children.map(a=>Ve(a,n+1))):n}function Ca(e){let n=!1;function a(r,o){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none";if(r)if(s!=="none"&&(r.fixed=s),r.fixed===!0&&(r.fixed="start"),r.fixed===o)if(r.children)if(o==="start")for(let u=r.children.length-1;u>=0;u--)a(r.children[u],o,o);else for(let u=0;u=0;u--)a(r.children[u],o);else for(let u=0;u=0;r--)a(e[r],"start");for(let r=0;r=0;r--)l=lt(e[r],l)}function nt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return n;if(e.children){e.fixedOffset=n;for(const a of e.children)n=nt(a,n)}else e.fixed&&e.fixed!=="end"&&(e.fixedOffset=n,n+=parseFloat(e.width||"0")||0);return n}function lt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return n;if(e.children){e.fixedEndOffset=n;for(const a of e.children)n=lt(a,n)}else e.fixed==="end"&&(e.fixedEndOffset=n,n+=parseFloat(e.width||"0")||0);return n}function _a(e,n){const a=[];let t=0;const l=pa(e);for(;l.size()>0;){let o=l.count();const s=[];let u=1;for(;o>0;){const{element:d,priority:c}=l.dequeue(),m=n-t-Ve(d);if(s.push({...d,rowspan:m??1,colspan:d.children?Pe(d).length:1}),d.children)for(const v of d.children){const P=c%1+u/Math.pow(10,t+2);l.enqueue(v,t+m+P)}u+=1,o-=1}t+=1,a.push(s)}return{columns:e.map(o=>Pe(o)).flat(),headers:a}}function ot(e){const n=[];for(const a of e){const t={...Da(a),...a},l=t.key??(typeof t.value=="string"?t.value:null),r=t.value??l??null,o={...t,key:l,value:r,sortable:t.sortable??(t.key!=null||!!t.sort),children:t.children?ot(t.children):void 0};n.push(o)}return n}function Ba(e,n){const a=M([]),t=M([]),l=M({}),r=M({}),o=M({});$t(()=>{var b,f,k;const d=(e.headers||Object.keys(e.items[0]??{}).map(i=>({key:i,title:Nt(i)}))).slice(),c=at(d);(b=n==null?void 0:n.groupBy)!=null&&b.value.length&&!c.has("data-table-group")&&d.unshift({key:"data-table-group",title:"Group"}),(f=n==null?void 0:n.showSelect)!=null&&f.value&&!c.has("data-table-select")&&d.unshift({key:"data-table-select"}),(k=n==null?void 0:n.showExpand)!=null&&k.value&&!c.has("data-table-expand")&&d.push({key:"data-table-expand"});const m=ot(d);Ca(m);const v=Math.max(...m.map(i=>Ve(i)))+1,P=_a(m,v);a.value=P.headers,t.value=P.columns;const g=P.headers.flat(1);for(const i of g)i.key&&(i.sortable&&(i.sort&&(l.value[i.key]=i.sort),i.sortRaw&&(r.value[i.key]=i.sortRaw)),i.filter&&(o.value[i.key]=i.filter))});const s={headers:a,columns:t,sortFunctions:l,sortRawFunctions:r,filterFunctions:o};return z(et,s),s}function ge(){const e=Y(et);if(!e)throw new Error("Missing headers!");return e}const Ea={showSelectAll:!1,allSelected:()=>[],select:e=>{var t;let{items:n,value:a}=e;return new Set(a?[(t=n[0])==null?void 0:t.value]:[])},selectAll:e=>{let{selected:n}=e;return n}},rt={showSelectAll:!0,allSelected:e=>{let{currentPage:n}=e;return n},select:e=>{let{items:n,value:a,selected:t}=e;for(const l of n)a?t.add(l.value):t.delete(l.value);return t},selectAll:e=>{let{value:n,currentPage:a,selected:t}=e;return rt.select({items:a,value:n,selected:t})}},Fa={showSelectAll:!0,allSelected:e=>{let{allItems:n}=e;return n},select:e=>{let{items:n,value:a,selected:t}=e;for(const l of n)a?t.add(l.value):t.delete(l.value);return t},selectAll:e=>{let{value:n,allItems:a}=e;return new Set(n?a.map(t=>t.value):[])}},Oa=_({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:Function},"DataTable-select"),st=Symbol.for("vuetify:data-table-selection");function Aa(e,n){let{allItems:a,currentPage:t}=n;const l=K(e,"modelValue",e.modelValue,i=>{const T=e.valueComparator;return T?new Set(ae(i).map(x=>{var y;return((y=a.value.find(S=>T(x,S.value)))==null?void 0:y.value)??x})):new Set(ae(i).map(x=>{var y,S;return Lt(x)?((y=a.value.find(C=>x===C.value))==null?void 0:y.value)??x:((S=a.value.find(C=>Ye(x,C.value)))==null?void 0:S.value)??x}))},i=>[...i.values()]),r=V(()=>a.value.filter(i=>i.selectable)),o=V(()=>t.value.filter(i=>i.selectable)),s=V(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return Ea;case"all":return Fa;case"page":default:return rt}}),u=se(null);function d(i){return ae(i).every(T=>l.value.has(T.value))}function c(i){return ae(i).some(T=>l.value.has(T.value))}function m(i,T){const x=s.value.select({items:i,value:T,selected:new Set(l.value)});l.value=x}function v(i,T,x){const y=[];if(T=T??t.value.findIndex(S=>S.value===i.value),e.selectStrategy!=="single"&&(x!=null&&x.shiftKey)&&u.value!==null){const[S,C]=[u.value,T].sort((F,p)=>F-p);y.push(...t.value.slice(S,C+1).filter(F=>F.selectable))}else y.push(i),u.value=T;m(y,!d([i]))}function P(i){const T=s.value.selectAll({value:i,allItems:r.value,currentPage:o.value,selected:new Set(l.value)});l.value=T}const g=V(()=>l.value.size>0),b=V(()=>{const i=s.value.allSelected({allItems:r.value,currentPage:o.value});return!!i.length&&d(i)}),f=B(()=>s.value.showSelectAll),k={toggleSelect:v,select:m,selectAll:P,isSelected:d,isSomeSelected:c,someSelected:g,allSelected:b,showSelectAll:f,lastSelectedIndex:u,selectStrategy:s};return z(st,k),k}function he(){const e=Y(st);if(!e)throw new Error("Missing selection!");return e}const Ra=_({initialSortOrder:{type:String,default:"asc",validator:e=>!e||["asc","desc"].includes(e)},sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:{type:[Boolean,Object],default:!1},mustSort:Boolean},"DataTable-sort"),ut=Symbol.for("vuetify:data-table-sort");function Ha(e){const n=B(()=>e.initialSortOrder),a=K(e,"sortBy"),t=B(()=>e.mustSort),l=B(()=>e.multiSort);return{initialSortOrder:n,sortBy:a,multiSort:l,mustSort:t}}function $a(e,n){if(!Gt(e))return{active:!!e};const{key:a,mode:t,modifier:l}=e,r=l==="alt"&&(n==null?void 0:n.altKey)||l==="shift"&&(n==null?void 0:n.shiftKey);return{active:!a||(n==null?void 0:n.ctrlKey)||(n==null?void 0:n.metaKey)||!1,mode:r?t==="append"?"prepend":"append":t}}function Na(e){const{initialSortOrder:n,sortBy:a,mustSort:t,multiSort:l,page:r}=e,o=(d,c)=>{if(d.key==null)return;let m=a.value.map(b=>({...b}))??[];const v=m.find(b=>b.key===d.key),P=n.value,g=n.value==="desc"?"asc":"desc";if(v)v.order===g?t.value&&m.length===1?v.order=n.value:m=m.filter(b=>b.key!==d.key):v.order=g;else{const{active:b,mode:f}=$a(l.value,c);b?f==="prepend"?m.unshift({key:d.key,order:P}):m.push({key:d.key,order:P}):m=[{key:d.key,order:P}]}a.value=m,r&&(r.value=1)};function s(d){return!!a.value.find(c=>c.key===d.key)}const u={sortBy:a,toggleSort:o,isSorted:s};return z(ut,u),u}function it(){const e=Y(ut);if(!e)throw new Error("Missing sort!");return e}function Wa(e,n,a,t){const l=te();return{sortedItems:V(()=>{var o,s;return a.value.length?La(n.value,a.value,l.current.value,{transform:t==null?void 0:t.transform,sortFunctions:{...e.customKeySort,...(o=t==null?void 0:t.sortFunctions)==null?void 0:o.value},sortRawFunctions:(s=t==null?void 0:t.sortRawFunctions)==null?void 0:s.value}):n.value})}}function La(e,n,a,t){const l=new Intl.Collator(a,{sensitivity:"accent",usage:"sort"});return e.map(o=>[o,t!=null&&t.transform?t.transform(o):o]).sort((o,s)=>{var u,d;for(let c=0;ci!=null?i.toString().toLocaleLowerCase():i),g!==b))return ne(g)&&ne(b)?0:ne(g)?-1:ne(b)?1:!isNaN(g)&&!isNaN(b)?Number(g)-Number(b):l.compare(g,b)}return 0}).map(o=>{let[s]=o;return s})}const dt=_({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,initialSortOrder:String,sortAscIcon:{type:N,default:"$sortAsc"},sortDescIcon:{type:N,default:"$sortDesc"},headerProps:{type:Object},sticky:Boolean,...ve(),...Ie(),...Xt()},"VDataTableHeaders"),$e=R()({name:"VDataTableHeaders",props:dt(),setup(e,n){let{slots:a}=n;const{t}=te(),{toggleSort:l,sortBy:r,isSorted:o}=it(),{someSelected:s,allSelected:u,selectAll:d,showSelectAll:c}=he(),{columns:m,headers:v}=ge(),{loaderClasses:P}=Mt(e);function g(p,h){if(!(e.sticky||e.fixedHeader)&&!p.fixed)return;const D=typeof p.fixed=="string"?p.fixed:p.fixed?"start":"none";return{position:"sticky",left:D==="start"?E(p.fixedOffset):void 0,right:D==="end"?E(p.fixedEndOffset):void 0,top:e.sticky||e.fixedHeader?`calc(var(--v-table-header-height) * ${h})`:void 0}}function b(p,h){p.key==="Enter"&&!e.disableSort&&l(h,p)}function f(p){const h=r.value.find(D=>D.key===p.key);return!h&&e.initialSortOrder==="asc"||(h==null?void 0:h.order)==="asc"?e.sortAscIcon:e.sortDescIcon}const{backgroundColorClasses:k,backgroundColorStyles:i}=jt(()=>e.color),{displayClasses:T,mobile:x}=ke(e),y=V(()=>({headers:v.value,columns:m.value,toggleSort:l,isSorted:o,sortBy:r.value,someSelected:s.value,allSelected:u.value,selectAll:d,getSortIcon:f})),S=V(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky||e.fixedHeader},T.value,P.value]),C=p=>{let{column:h,x:D,y:A}=p;const L=h.key==="data-table-select"||h.key==="data-table-expand",X=h.key==="data-table-group"&&h.width===0&&!h.title,U=O(e.headerProps??{},h.headerProps??{});return I(ee,O({tag:"th",align:h.align,class:[{"v-data-table__th--sortable":h.sortable&&!e.disableSort,"v-data-table__th--sorted":o(h),"v-data-table__th--fixed":h.fixed},...S.value],style:{width:E(h.width),minWidth:E(h.minWidth),maxWidth:E(h.maxWidth),...g(h,A)},colspan:h.colspan,rowspan:h.rowspan,fixed:h.fixed,nowrap:h.nowrap,lastFixed:h.lastFixed,firstFixedEnd:h.firstFixedEnd,noPadding:L,empty:X,tabindex:h.sortable?0:void 0,onClick:h.sortable?H=>l(h,H):void 0,onKeydown:h.sortable?H=>b(H,h):void 0},U),{default:()=>{var J;const H=`header.${h.key}`,q={column:h,selectAll:d,isSorted:o,toggleSort:l,sortBy:r.value,someSelected:s.value,allSelected:u.value,getSortIcon:f};return a[H]?a[H](q):X?"":h.key==="data-table-select"?((J=a["header.data-table-select"])==null?void 0:J.call(a,q))??(c.value&&I(de,{color:e.color,density:e.density,modelValue:u.value,indeterminate:s.value&&!u.value,"onUpdate:modelValue":d},null)):w("div",{class:"v-data-table-header__content"},[w("span",null,[h.title]),h.sortable&&!e.disableSort&&I(Ee,{key:"icon",class:"v-data-table-header__sort-icon",icon:f(h)},null),e.multiSort&&o(h)&&w("div",{key:"badge",class:j(["v-data-table-header__sort-badge",...k.value]),style:me(i.value)},[r.value.findIndex(be=>be.key===h.key)+1])])}})},F=()=>{const p=V(()=>m.value.filter(D=>(D==null?void 0:D.sortable)&&!e.disableSort)),h=m.value.find(D=>D.key==="data-table-select");return I(ee,O({tag:"th",class:[...S.value],colspan:v.value.length+1},e.headerProps),{default:()=>[w("div",{class:"v-data-table-header__content"},[I(Je,{chips:!0,color:e.color,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:p.value,label:t("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>r.value=[]},{append:h?()=>I(de,{color:e.color,density:"compact",modelValue:u.value,indeterminate:s.value&&!u.value,"onUpdate:modelValue":()=>d(!u.value)},null):void 0,chip:D=>{var A;return I(fa,{onClick:(A=D.item.raw)!=null&&A.sortable?()=>l(D.item.raw):void 0,onMousedown:L=>{L.preventDefault(),L.stopPropagation()}},{default:()=>[D.item.title,I(Ee,{class:j(["v-data-table__td-sort-icon",o(D.item.raw)&&"v-data-table__td-sort-icon-active"]),icon:f(D.item.raw),size:"small"},null)]})}})])]})};W(()=>x.value?w("tr",null,[I(F,null,null)]):w(Q,null,[a.headers?a.headers(y.value):v.value.map((p,h)=>w("tr",null,[p.map((D,A)=>I(C,{column:D,x:A,y:h},null))])),e.loading&&w("tr",{class:"v-data-table-progress"},[w("th",{colspan:m.value.length},[I(Yt,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"||e.loading==="true"?e.color:e.loading,indeterminate:!0},{default:a.loader})])])]))}}),Ga=_({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),ct=Symbol.for("vuetify:data-table-group");function Ma(e){return{groupBy:K(e,"groupBy")}}function ja(e){const{disableSort:n,groupBy:a,sortBy:t}=e,l=M(new Set),r=V(()=>a.value.map(c=>({...c,order:c.order??!1})).concat(n!=null&&n.value?[]:t.value));function o(c){return l.value.has(c.id)}function s(c){const m=new Set(l.value);o(c)?m.delete(c.id):m.add(c.id),l.value=m}function u(c){function m(v){const P=[];for(const g of v.items)"type"in g&&g.type==="group"?P.push(...m(g)):P.push(g);return[...new Set(P)]}return m({items:c})}const d={sortByWithGroups:r,toggleGroup:s,opened:l,groupBy:a,extractRows:u,isGroupOpen:o};return z(ct,d),d}function ft(){const e=Y(ct);if(!e)throw new Error("Missing group!");return e}function Ya(e,n){if(!e.length)return[];const a=new Map;for(const t of e){const l=ue(t.raw,n);a.has(l)||a.set(l,[]),a.get(l).push(t)}return a}function vt(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!n.length)return[];const l=Ya(e,n[0]),r=[],o=n.slice(1);return l.forEach((s,u)=>{const d=n[0],c=`${t}_${d}_${u}`;r.push({depth:a,id:c,key:d,value:u,items:o.length?vt(s,o,a+1,c):s,type:"group"})}),r}function mt(e,n,a){const t=[];for(const l of e)"type"in l&&l.type==="group"?(l.value!=null&&t.push(l),(n.has(l.id)||l.value==null)&&(t.push(...mt(l.items,n,a)),a&&t.push({...l,type:"group-summary"}))):t.push(l);return t}function Xa(e,n,a,t){return{flatItems:V(()=>{if(!n.value.length)return e.value;const r=vt(e.value,n.value.map(o=>o.key));return mt(r,a.value,Kt(t))})}}const gt=_({item:{type:Object,required:!0},groupCollapseIcon:{type:N,default:"$tableGroupCollapse"},groupExpandIcon:{type:N,default:"$tableGroupExpand"},...ve()},"VDataTableGroupHeaderRow"),Ka=R()({name:"VDataTableGroupHeaderRow",props:gt(),setup(e,n){let{slots:a}=n;const{isGroupOpen:t,toggleGroup:l,extractRows:r}=ft(),{isSelected:o,isSomeSelected:s,select:u}=he(),{columns:d}=ge(),c=V(()=>r([e.item])),m=B(()=>d.value.length-(d.value.some(v=>v.key==="data-table-select")?1:0));return()=>w("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[d.value.map(v=>{var P,g;if(v.key==="data-table-group"){const b=t(e.item)?e.groupCollapseIcon:e.groupExpandIcon,f=()=>l(e.item);return((P=a["data-table-group"])==null?void 0:P.call(a,{item:e.item,count:c.value.length,props:{icon:b,onClick:f}}))??I(ee,{class:"v-data-table-group-header-row__column",colspan:m.value},{default:()=>[I(ie,{size:"small",variant:"text",icon:b,onClick:f},null),w("span",null,[e.item.value]),w("span",null,[Fe("("),c.value.length,Fe(")")])]})}else if(v.key==="data-table-select"){const b=o(c.value),f=s(c.value)&&!b,k=i=>u(c.value,i);return((g=a["data-table-select"])==null?void 0:g.call(a,{props:{modelValue:b,indeterminate:f,"onUpdate:modelValue":k}}))??I(ee,{class:"v-data-table__td--select-row",noPadding:!0},{default:()=>[I(de,{density:e.density,modelValue:b,indeterminate:f,"onUpdate:modelValue":k},null)]})}return""})])}}),za=_({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),ht=Symbol.for("vuetify:datatable:expanded");function Ua(e){const n=B(()=>e.expandOnClick),a=K(e,"expanded",e.expanded,s=>new Set(s),s=>[...s.values()]);function t(s,u){const d=new Set(a.value),c=le(s.value);if(u)d.add(c);else{const m=[...a.value].find(v=>le(v)===c);d.delete(m)}a.value=d}function l(s){const u=le(s.value);return[...a.value].some(d=>le(d)===u)}function r(s){t(s,!l(s))}const o={expand:t,expanded:a,expandOnClick:n,isExpanded:l,toggleExpand:r};return z(ht,o),o}function bt(){const e=Y(ht);if(!e)throw new Error("foo");return e}const yt=_({color:String,index:Number,item:Object,cellProps:[Object,Function],collapseIcon:{type:N,default:"$collapse"},expandIcon:{type:N,default:"$expand"},onClick:xe(),onContextmenu:xe(),onDblclick:xe(),...ve(),...Ie()},"VDataTableRow"),qa=R()({name:"VDataTableRow",props:yt(),setup(e,n){let{slots:a}=n;const{displayClasses:t,mobile:l}=ke(e,"v-data-table__tr"),{isSelected:r,toggleSelect:o,someSelected:s,allSelected:u,selectAll:d}=he(),{isExpanded:c,toggleExpand:m}=bt(),{toggleSort:v,sortBy:P,isSorted:g}=it(),{columns:b}=ge();W(()=>w("tr",{class:j(["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},t.value]),onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&b.value.map((f,k)=>{const i=e.item,T=`item.${f.key}`,x=`header.${f.key}`,y={index:e.index,item:i.raw,internalItem:i,value:ue(i.columns,f.key),column:f,isSelected:r,toggleSelect:o,isExpanded:c,toggleExpand:m},S={column:f,selectAll:d,isSorted:g,toggleSort:v,sortBy:P.value,someSelected:s.value,allSelected:u.value,getSortIcon:()=>""},C=typeof e.cellProps=="function"?e.cellProps({index:y.index,item:y.item,internalItem:y.internalItem,value:y.value,column:f}):e.cellProps,F=typeof f.cellProps=="function"?f.cellProps({index:y.index,item:y.item,internalItem:y.internalItem,value:y.value}):f.cellProps,p=f.key==="data-table-select"||f.key==="data-table-expand",h=f.key==="data-table-group"&&f.width===0&&!f.title;return I(ee,O({align:f.align,indent:f.intent,class:{"v-data-table__td--expanded-row":f.key==="data-table-expand","v-data-table__td--select-row":f.key==="data-table-select"},fixed:f.fixed,fixedOffset:f.fixedOffset,fixedEndOffset:f.fixedEndOffset,lastFixed:f.lastFixed,firstFixedEnd:f.firstFixedEnd,maxWidth:l.value?void 0:f.maxWidth,noPadding:p,empty:h,nowrap:f.nowrap,width:l.value?void 0:f.width},C,F),{default:()=>{var A,L,X,U;if(f.key==="data-table-select")return((A=a["item.data-table-select"])==null?void 0:A.call(a,{...y,props:{color:e.color,disabled:!i.selectable,modelValue:r([i]),onClick:oe(()=>o(i),["stop"])}}))??I(de,{color:e.color,disabled:!i.selectable,density:e.density,modelValue:r([i]),onClick:oe(H=>o(i,e.index,H),["stop"])},null);if(f.key==="data-table-expand")return((L=a["item.data-table-expand"])==null?void 0:L.call(a,{...y,props:{icon:c(i)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:oe(()=>m(i),["stop"])}}))??I(ie,{icon:c(i)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:oe(()=>m(i),["stop"])},null);if(a[T]&&!l.value)return a[T](y);const D=zt(y.value);return l.value?w(Q,null,[w("div",{class:"v-data-table__td-title"},[((X=a[x])==null?void 0:X.call(a,S))??f.title]),w("div",{class:"v-data-table__td-value"},[((U=a[T])==null?void 0:U.call(a,y))??D])]):D}})})]))}}),xt=_({color:String,loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Se(yt(),["collapseIcon","expandIcon","density"]),...Se(gt(),["groupCollapseIcon","groupExpandIcon","density"]),...Ie()},"VDataTableRows"),Ne=R()({name:"VDataTableRows",inheritAttrs:!1,props:xt(),setup(e,n){let{attrs:a,slots:t}=n;const{columns:l}=ge(),{expandOnClick:r,toggleExpand:o,isExpanded:s}=bt(),{isSelected:u,toggleSelect:d}=he(),{toggleGroup:c,isGroupOpen:m}=ft(),{t:v}=te(),{mobile:P}=ke(e);return W(()=>{var b,f;const g=Se(e,["groupCollapseIcon","groupExpandIcon","density"]);return e.loading&&(!e.items.length||t.loading)?w("tr",{class:"v-data-table-rows-loading",key:"loading"},[w("td",{colspan:l.value.length},[((b=t.loading)==null?void 0:b.call(t))??v(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?w("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[w("td",{colspan:l.value.length},[((f=t["no-data"])==null?void 0:f.call(t))??v(e.noDataText)])]):w(Q,null,[e.items.map((k,i)=>{var y,S;if(k.type==="group"){const C={index:i,item:k,columns:l.value,isExpanded:s,toggleExpand:o,isSelected:u,toggleSelect:d,toggleGroup:c,isGroupOpen:m};return t["group-header"]?t["group-header"](C):I(Ka,O({key:`group-header_${k.id}`,item:k},Re(a,":groupHeader",()=>C),g),t)}if(k.type==="group-summary"){const C={index:i,item:k,columns:l.value,toggleGroup:c};return((y=t["group-summary"])==null?void 0:y.call(t,C))??""}const T={index:i,item:k.raw,internalItem:k,columns:l.value,isExpanded:s,toggleExpand:o,isSelected:u,toggleSelect:d},x={...T,props:O({key:`item_${k.key??k.index}`,onClick:r.value?()=>{o(k)}:void 0,index:i,item:k,color:e.color,cellProps:e.cellProps,collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,density:e.density,mobile:P.value},Re(a,":row",()=>T),typeof e.rowProps=="function"?e.rowProps({item:T.item,index:T.index,internalItem:T.internalItem}):e.rowProps)};return w(Q,{key:x.props.key},[t.item?t.item(x):I(qa,x.props,t),s(k)&&((S=t["expanded-row"])==null?void 0:S.call(t,T))])})])}),{}}}),St=_({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,striped:{type:String,default:null,validator:e=>["even","odd"].includes(e)},...Te(),...ve(),...ze(),...Ke()},"VTable"),We=R()({name:"VTable",props:St(),setup(e,n){let{slots:a,emit:t}=n;const{themeClasses:l}=Xe(e),{densityClasses:r}=Ut(e);return W(()=>I(e.tag,{class:j(["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!a.top,"v-table--has-bottom":!!a.bottom,"v-table--hover":e.hover,"v-table--striped-even":e.striped==="even","v-table--striped-odd":e.striped==="odd"},l.value,r.value,e.class]),style:me(e.style)},{default:()=>{var o,s,u;return[(o=a.top)==null?void 0:o.call(a),a.default?w("div",{class:"v-table__wrapper",style:{height:E(e.height)}},[w("table",null,[a.default()])]):(s=a.wrapper)==null?void 0:s.call(a),(u=a.bottom)==null?void 0:u.call(a)]}})),{}}}),Ja=_({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function Qa(e,n,a,t){const l=e.returnObject?n:re(n,e.itemValue),r=re(n,e.itemSelectable,!0),o=t.reduce((s,u)=>(u.key!=null&&(s[u.key]=re(n,u.value)),s),{});return{type:"item",key:e.returnObject?re(n,e.itemValue):l,index:a,value:l,selectable:r,columns:o,raw:n}}function Za(e,n,a){return n.map((t,l)=>Qa(e,t,l,a))}function en(e,n){return{items:V(()=>Za(e,e.items,n.value))}}function tn(e){let{page:n,itemsPerPage:a,sortBy:t,groupBy:l,search:r}=e;const o=je("VDataTable"),s=()=>({page:n.value,itemsPerPage:a.value,sortBy:t.value,groupBy:l.value,search:r.value});let u=null;ce(s,d=>{Ye(u,d)||(u&&u.search!==d.search&&(n.value=1),o.emit("update:options",d),u=d)},{deep:!0,immediate:!0})}const an=_({...xt(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...za(),...Ga(),...Ta(),...Ja(),...Oa(),...Ra(),...fe(dt(),["multiSort","initialSortOrder"]),...St()},"DataTable"),nn=_({...Sa(),...an(),...ca(),...Ze()},"VDataTable"),fn=R()({name:"VDataTable",props:nn(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,n){let{attrs:a,slots:t}=n;const{groupBy:l}=Ma(e),{initialSortOrder:r,sortBy:o,multiSort:s,mustSort:u}=Ha(e),{page:d,itemsPerPage:c}=wa(e),{disableSort:m}=qt(e),{columns:v,headers:P,sortFunctions:g,sortRawFunctions:b,filterFunctions:f}=Ba(e,{groupBy:l,showSelect:B(()=>e.showSelect),showExpand:B(()=>e.showExpand)}),{items:k}=en(e,v),i=B(()=>e.search),{filteredItems:T}=da(e,k,i,{transform:G=>G.columns,customKeyFilter:f}),{toggleSort:x}=Na({initialSortOrder:r,sortBy:o,multiSort:s,mustSort:u,page:d}),{sortByWithGroups:y,opened:S,extractRows:C,isGroupOpen:F,toggleGroup:p}=ja({groupBy:l,sortBy:o,disableSort:m}),{sortedItems:h}=Wa(e,T,y,{transform:G=>({...G.raw,...G.columns}),sortFunctions:g,sortRawFunctions:b}),{flatItems:D}=Xa(h,l,S,()=>!!t["group-summary"]),A=V(()=>D.value.length),{startIndex:L,stopIndex:X,pageCount:U,setItemsPerPage:H}=Pa({page:d,itemsPerPage:c,itemsLength:A}),{paginatedItems:q}=Ia({items:D,startIndex:L,stopIndex:X,itemsPerPage:c}),J=V(()=>C(q.value)),{isSelected:be,select:Tt,selectAll:Vt,toggleSelect:pt,someSelected:Dt,allSelected:Ct}=Aa(e,{allItems:k,currentPage:J}),{isExpanded:_t,toggleExpand:Bt}=Ua(e);tn({page:d,itemsPerPage:c,sortBy:o,groupBy:l,search:i}),Jt({VDataTableRows:{hideNoData:B(()=>e.hideNoData),noDataText:B(()=>e.noDataText),loading:B(()=>e.loading),loadingText:B(()=>e.loadingText)}});const $=V(()=>({page:d.value,itemsPerPage:c.value,sortBy:o.value,pageCount:U.value,toggleSort:x,setItemsPerPage:H,someSelected:Dt.value,allSelected:Ct.value,isSelected:be,select:Tt,selectAll:Vt,toggleSelect:pt,isExpanded:_t,toggleExpand:Bt,isGroupOpen:F,toggleGroup:p,items:J.value.map(G=>G.raw),internalItems:J.value,groupedItems:q.value,columns:v.value,headers:P.value}));return W(()=>{const G=He.filterProps(e),Et=$e.filterProps(fe(e,["multiSort"])),Ft=Ne.filterProps(e),Ot=We.filterProps(e);return I(We,O({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},Ot,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>{var Z;return(Z=t.top)==null?void 0:Z.call(t,$.value)},default:()=>{var Z,pe,De,Ce,_e,Be;return t.default?t.default($.value):w(Q,null,[(Z=t.colgroup)==null?void 0:Z.call(t,$.value),!e.hideDefaultHeader&&w("thead",{key:"thead"},[I($e,O(Et,{multiSort:!!e.multiSort}),t)]),(pe=t.thead)==null?void 0:pe.call(t,$.value),!e.hideDefaultBody&&w("tbody",null,[(De=t["body.prepend"])==null?void 0:De.call(t,$.value),t.body?t.body($.value):I(Ne,O(a,Ft,{items:q.value}),t),(Ce=t["body.append"])==null?void 0:Ce.call(t,$.value)]),(_e=t.tbody)==null?void 0:_e.call(t,$.value),(Be=t.tfoot)==null?void 0:Be.call(t,$.value)])},bottom:()=>t.bottom?t.bottom($.value):!e.hideDefaultFooter&&w(Q,null,[I(Qt,null,null),I(He,G,{prepend:t["footer.prepend"]})])})}),{}}}),ln=Symbol.for("vuetify:v-tabs"),wt=Symbol.for("vuetify:v-window"),Pt=Symbol.for("vuetify:v-window-group"),kt=_({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},verticalArrows:[Boolean,String],touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},crossfade:Boolean,transitionDuration:Number,...Te(),...ze(),...Ke()},"VWindow"),Le=R()({name:"VWindow",directives:{vTouch:we},props:kt(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const{themeClasses:t}=Xe(e),{isRtl:l}=Zt(),{t:r}=te(),o=ea(e,Pt),s=M(),u=V(()=>l.value?!e.reverse:e.reverse),d=se(!1),c=V(()=>{if(e.crossfade)return"v-window-crossfade-transition";const x=e.direction==="vertical"?"y":"x",S=(u.value?!d.value:d.value)?"-reverse":"";return`v-window-${x}${S}-transition`}),m=se(0),v=M(void 0),P=V(()=>o.items.value.findIndex(x=>o.selected.value.includes(x.id)));ce(P,(x,y)=>{let S;const C={left:0,top:0};Oe&&y>=0&&(S=ta(s.value),C.left=S==null?void 0:S.scrollLeft,C.top=S==null?void 0:S.scrollTop);const F=o.items.value.length,p=F-1;F<=2?d.value=x{if(!Oe||!S)return;S.scrollTop!==C.top&&S.scrollTo({...C,behavior:"instant"}),requestAnimationFrame(()=>{if(!S)return;S.scrollTop!==C.top&&S.scrollTo({...C,behavior:"instant"})})})},{flush:"sync"}),z(wt,{transition:c,isReversed:d,transitionCount:m,transitionHeight:v,rootRef:s});const g=B(()=>e.continuous||P.value!==0),b=B(()=>e.continuous||P.value!==o.items.value.length-1);function f(){g.value&&o.prev()}function k(){b.value&&o.next()}const i=V(()=>{const x=[],y={icon:l.value?e.nextIcon:e.prevIcon,class:`v-window__${u.value?"right":"left"}`,onClick:o.prev,"aria-label":r("$vuetify.carousel.prev")};x.push(g.value?a.prev?a.prev({props:y}):I(ie,y,null):w("div",null,null));const S={icon:l.value?e.prevIcon:e.nextIcon,class:`v-window__${u.value?"left":"right"}`,onClick:o.next,"aria-label":r("$vuetify.carousel.next")};return x.push(b.value?a.next?a.next({props:S}):I(ie,S,null):w("div",null,null)),x}),T=V(()=>e.touch===!1?e.touch:{...{left:()=>{u.value?f():k()},right:()=>{u.value?k():f()},start:y=>{let{originalEvent:S}=y;S.stopPropagation()}},...e.touch===!0?{}:e.touch});return W(()=>qe(I(e.tag,{ref:s,class:j(["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover","v-window--vertical-arrows":!!e.verticalArrows,"v-window--crossfade":!!e.crossfade},t.value,e.class]),style:me([e.style,e.transitionDuration&&!aa?{"--v-window-transition-duration":E(e.transitionDuration,"ms")}:void 0])},{default:()=>{var x,y;return[w("div",{class:"v-window__container",style:{height:v.value}},[(x=a.default)==null?void 0:x.call(a,{group:o}),e.showArrows!==!1&&w("div",{class:j(["v-window__controls",{"v-window__controls--left":e.verticalArrows==="left"||e.verticalArrows===!0},{"v-window__controls--right":e.verticalArrows==="right"}])},[i.value])]),(y=a.additional)==null?void 0:y.call(a,{group:o})]}}),[[we,T.value]])),{group:o}}}),on=_({...fe(kt(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),vn=R()({name:"VTabsWindow",props:on(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const t=Y(ln,null),l=K(e,"modelValue"),r=V({get(){var o;return l.value!=null||!t?l.value:(o=t.items.value.find(s=>t.selected.value.includes(s.id)))==null?void 0:o.value},set(o){l.value=o}});return W(()=>{const o=Le.filterProps(e);return I(Le,O({_as:"VTabsWindow"},o,{modelValue:r.value,"onUpdate:modelValue":s=>r.value=s,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),a)}),{}}}),It=_({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...Te(),...ia(),...ua()},"VWindowItem"),Ge=R()({name:"VWindowItem",directives:{vTouch:we},props:It(),emits:{"group:selected":e=>!0},setup(e,n){let{slots:a}=n;const t=Y(wt),l=na(e,Pt),{isBooted:r}=la();if(!t||!l)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const o=se(!1),s=V(()=>r.value&&(t.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function u(){!o.value||!t||(o.value=!1,t.transitionCount.value>0&&(t.transitionCount.value-=1,t.transitionCount.value===0&&(t.transitionHeight.value=void 0)))}function d(){var g;o.value||!t||(o.value=!0,t.transitionCount.value===0&&(t.transitionHeight.value=E((g=t.rootRef.value)==null?void 0:g.clientHeight)),t.transitionCount.value+=1)}function c(){u()}function m(g){o.value&&Ue(()=>{!s.value||!o.value||!t||(t.transitionHeight.value=E(g.clientHeight))})}const v=V(()=>{const g=t.isReversed.value?e.reverseTransition:e.transition;return s.value?{name:typeof g!="string"?t.transition.value:g,onBeforeEnter:d,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onAfterLeave:u,onLeaveCancelled:c,onEnter:m}:!1}),{hasContent:P}=oa(e,l.isSelected);return W(()=>I(sa,{transition:v.value,disabled:!r.value},{default:()=>{var g;return[qe(w("div",{class:j(["v-window-item",l.selectedClass.value,e.class]),style:me(e.style)},[P.value&&((g=a.default)==null?void 0:g.call(a))]),[[ra,l.isSelected.value]])]}})),{groupItem:l}}}),rn=_({...It()},"VTabsWindowItem"),mn=R()({name:"VTabsWindowItem",props:rn(),setup(e,n){let{slots:a}=n;return W(()=>{const t=Ge.filterProps(e);return I(Ge,O({_as:"VTabsWindowItem"},t,{class:["v-tabs-window-item",e.class],style:e.style}),a)}),{}}});export{ln as V,mn as a,vn as b,Le as c,Ge as d,fn as e,We as f}; diff --git a/assets/VTabsWindowItem-DsCcWpt1.css b/assets/VTabsWindowItem-DsCcWpt1.css new file mode 100644 index 0000000..4d676a8 --- /dev/null +++ b/assets/VTabsWindowItem-DsCcWpt1.css @@ -0,0 +1 @@ +.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--empty,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--empty,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--empty,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--empty{padding:0}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:focus,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:focus{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):focus .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):focus .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table-column--fixed-end,.v-data-table__th--sticky{background-color:rgb(var(--v-theme-surface));background-image:inherit;position:sticky!important;left:0;z-index:1}.v-data-table-column--fixed-end{left:unset;right:0}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table-column--first-fixed-end{border-left:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed,.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed-end{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-inline-start:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-progress__loader{position:relative}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table__tr--mobile>.v-data-table__td--expanded-row{grid-template-columns:auto;justify-content:center}.v-data-table__tr--mobile>.v-data-table__td--select-row{grid-template-columns:0;justify-content:end}.v-data-table__tr--mobile>td{align-items:center;column-gap:4px;display:grid;grid-template-columns:repeat(2,1fr);min-height:var(--v-table-row-height)}.v-data-table__tr--mobile>td:not(:last-child){border-bottom:0!important}.v-data-table__td-title{font-weight:500;text-align:start}.v-data-table__td-value{text-align:end}.v-data-table__td-sort-icon{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-data-table__td-sort-icon-active{color:rgba(var(--v-theme-on-surface))}.v-data-table-footer{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:8px 4px}.v-data-table-footer__items-per-page{align-items:center;display:flex;justify-content:center}.v-data-table-footer__items-per-page>span{padding-inline-end:8px}.v-data-table-footer__items-per-page>.v-select{width:90px}.v-data-table-footer__info{display:flex;justify-content:flex-end;min-width:116px;padding:0 16px}.v-data-table-footer__paginationz{align-items:center;display:flex;margin-inline-start:16px}.v-data-table-footer__page{padding:0 8px}.v-table{font-size:.875rem;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr>td{position:relative}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{background:rgba(var(--v-border-color),var(--v-hover-opacity));pointer-events:none}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-table.v-table--striped-even>.v-table__wrapper>table>tbody>tr:nth-child(2n){background-image:linear-gradient(0deg,rgba(var(--v-border-color),var(--v-hover-opacity)),rgba(var(--v-border-color),var(--v-hover-opacity)))}.v-table.v-table--striped-odd>.v-table__wrapper>table>tbody>tr:nth-child(odd){background-image:linear-gradient(0deg,rgba(var(--v-border-color),var(--v-hover-opacity)),rgba(var(--v-border-color),var(--v-hover-opacity)))}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{border-radius:inherit;line-height:1.5;max-width:100%;display:flex;flex-direction:column}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>td{height:var(--v-table-row-height)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{height:var(--v-table-header-height);font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default{--v-table-header-height: 56px;--v-table-row-height: 52px}.v-table--density-comfortable{--v-table-header-height: 48px;--v-table-row-height: 44px}.v-table--density-compact{--v-table-header-height: 40px;--v-table-row-height: 36px}.v-table__wrapper{border-radius:inherit;overflow:auto;flex:1 1 auto}.v-table--has-top>.v-table__wrapper{border-top-left-radius:0;border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:2}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.v-window{overflow:hidden}.v-window__container{display:flex;flex-direction:column;height:inherit;position:relative;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-window__controls{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 16px;pointer-events:none}.v-window__controls>*{pointer-events:auto}.v-window--show-arrows-on-hover{overflow:hidden}.v-window--show-arrows-on-hover .v-window__left{transform:translate(-200%)}:has(.v-window__controls--right).v-window--show-arrows-on-hover .v-window__left{transform:translate(200%)}.v-window--show-arrows-on-hover .v-window__right{transform:translate(200%)}:has(.v-window__controls--left).v-window--show-arrows-on-hover .v-window__right{transform:translate(-200%)}.v-window--show-arrows-on-hover:hover .v-window__left,.v-window--show-arrows-on-hover:hover .v-window__right{transform:translate(0)}.v-window--vertical-arrows .v-window__controls{flex-direction:column;justify-content:center;gap:12px}.v-window--vertical-arrows .v-window__controls--left{align-items:start}.v-window--vertical-arrows .v-window__controls--right{align-items:end}.v-window--vertical-arrows .v-window__controls .v-window__left .v-icon,.v-window--vertical-arrows .v-window__controls .v-window__right .v-icon{transform:rotate(90deg)}@container style(--v-window-transition-duration){.v-window .v-window-item{transition-duration:var(--v-window-transition-duration)!important}}.v-window--crossfade>.v-window__container{isolation:isolate}.v-window--crossfade>.v-window__container>.v-window-item{mix-blend-mode:plus-lighter}.v-window-x-transition-enter-active,.v-window-x-transition-leave-active,.v-window-x-reverse-transition-enter-active,.v-window-x-reverse-transition-leave-active,.v-window-y-transition-enter-active,.v-window-y-transition-leave-active,.v-window-y-reverse-transition-enter-active,.v-window-y-reverse-transition-leave-active{transition:.3s cubic-bezier(.25,.8,.5,1)}@media (prefers-reduced-motion: reduce){.v-window-x-transition-enter-active,.v-window-x-transition-leave-active,.v-window-x-reverse-transition-enter-active,.v-window-x-reverse-transition-leave-active,.v-window-y-transition-enter-active,.v-window-y-transition-leave-active,.v-window-y-reverse-transition-enter-active,.v-window-y-reverse-transition-leave-active{transition-duration:0s}}.v-window-x-transition-leave-from,.v-window-x-transition-leave-to,.v-window-x-reverse-transition-leave-from,.v-window-x-reverse-transition-leave-to,.v-window-y-transition-leave-from,.v-window-y-transition-leave-to,.v-window-y-reverse-transition-leave-from,.v-window-y-reverse-transition-leave-to{position:absolute!important;top:0;width:100%}.v-window-x-transition-enter-from{transform:translate(100%)}.v-window-x-transition-leave-to,.v-window-x-reverse-transition-enter-from{transform:translate(-100%)}.v-window-x-reverse-transition-leave-to{transform:translate(100%)}.v-window-y-transition-enter-from{transform:translateY(100%)}.v-window-y-transition-leave-to,.v-window-y-reverse-transition-enter-from{transform:translateY(-100%)}.v-window-y-reverse-transition-leave-to{transform:translateY(100%)}.v-window-crossfade-transition-enter-active,.v-window-crossfade-transition-leave-active{transition:.3s cubic-bezier(.25,.8,.5,1)}.v-window-crossfade-transition-leave-from,.v-window-crossfade-transition-leave-to{position:absolute!important;top:0;width:100%}.v-window-crossfade-transition-enter-from,.v-window-crossfade-transition-leave-to{opacity:0} diff --git a/assets/VTextField-C-Z2P35g.js b/assets/VTextField-xLiM0gib.js similarity index 69% rename from assets/VTextField-C-Z2P35g.js rename to assets/VTextField-xLiM0gib.js index 6ed7478..127383c 100644 --- a/assets/VTextField-C-Z2P35g.js +++ b/assets/VTextField-xLiM0gib.js @@ -1 +1 @@ -import{g as X,p as T,ay as I,c as Y,d as h,I as ve,J as he,i as r,n as J,e as q,b1 as Ce,bg as Ve,h as p,U as xe,bh as fe,b2 as H,Z as Te,E as ae,v as Le,aA as ke,cx as Ie,a3 as oe,bl as Se,b_ as Ne,bc as ze,b8 as _e,aN as re,a5 as m,$ as U,aB as Oe,a2 as Be,a6 as Q,bR as Ue,cy as je,aD as Ke,aE as We,aI as qe,b$ as He,ac as Je,cv as Xe,F as ne,bi as Ye,c0 as Ze,aO as le,a4 as ie,a0 as ue,bM as Ge,bH as Pe,cz as Qe,bT as pe,am as ea,cA as aa,aS as la,aj as ta,bv as ge,a7 as se,aF as na,u as ia,aK as sa,aJ as ua,f as oa,b6 as me,az as ra,ae as da,cB as ca,ad as va}from"./index-BBVdlVQD.js";const fa=T({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...p(),...Ve({transition:{component:xe}})},"VCounter"),ga=X()({name:"VCounter",functional:!0,props:fa(),setup(e,n){let{slots:u}=n;const t=I(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return Y(()=>h(Ce,{transition:e.transition},{default:()=>[ve(r("div",{class:q(["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class]),style:J(e.style)},[u.default?u.default({counter:t.value,max:e.max,value:e.value}):t.value]),[[he,e.active]])]})),{}}}),ma=T({text:String,onClick:H(),...p(),...fe()},"VLabel"),ya=X()({name:"VLabel",props:ma(),setup(e,n){let{slots:u}=n;return Y(()=>{var t;return r("label",{class:q(["v-label",{"v-label--clickable":!!e.onClick},e.class]),style:J(e.style),onClick:e.onClick},[e.text,(t=u.default)==null?void 0:t.call(u)])}),{}}}),ba=T({floating:Boolean,...p()},"VFieldLabel"),te=X()({name:"VFieldLabel",props:ba(),setup(e,n){let{slots:u}=n;return Y(()=>h(ya,{class:q(["v-field-label",{"v-field-label--floating":e.floating},e.class]),style:J(e.style)},u)),{}}});function we(e){const{t:n}=Te();function u(t){let{name:a,color:l,...y}=t;const b={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[a],V=e[`onClick:${a}`];function S(s){s.key!=="Enter"&&s.key!==" "||(s.preventDefault(),s.stopPropagation(),ke(V,new PointerEvent("click",s)))}const o=V&&b?n(`$vuetify.input.${b}`,e.label??""):void 0;return h(Le,ae({icon:e[`${a}Icon`],"aria-label":o,onClick:V,onKeydown:S,color:l},y),null)}return{InputIcon:u}}const Fe=T({focused:Boolean,"onUpdate:focused":H()},"focus");function Me(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ie();const u=oe(e,"focused"),t=I(()=>({[`${n}--focused`]:u.value}));function a(){u.value=!0}function l(){u.value=!1}return{focusClasses:t,isFocused:u,focus:a,blur:l}}const ha=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Ae=T({appendInnerIcon:le,bgColor:String,clearable:Boolean,clearIcon:{type:le,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},glow:Boolean,error:Boolean,flat:Boolean,iconColor:[Boolean,String],label:String,persistentClear:Boolean,prependInnerIcon:le,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>ha.includes(e)},"onClick:clear":H(),"onClick:appendInner":H(),"onClick:prependInner":H(),...p(),...Ze(),...Ye(),...fe()},"VField"),ye=X()({name:"VField",inheritAttrs:!1,props:{id:String,details:Boolean,...Fe(),...Ae()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,n){let{attrs:u,emit:t,slots:a}=n;const{themeClasses:l}=Se(e),{loaderClasses:y}=Ne(e),{focusClasses:b,isFocused:V,focus:S,blur:o}=Me(e),{InputIcon:s}=we(e),{roundedClasses:d}=ze(e),{rtlClasses:c}=_e(),x=I(()=>e.dirty||e.active),P=I(()=>!!(e.label||a.label)),C=I(()=>!e.singleLine&&P.value),N=re(),k=m(()=>e.id||`input-${N}`),B=I(()=>e.details?`${k.value}-messages`:void 0),i=U(),f=U(),F=U(),g=m(()=>["plain","underlined"].includes(e.variant)),v=m(()=>e.error||e.disabled?void 0:x.value&&V.value?e.color:e.baseColor),M=m(()=>{if(!(!e.iconColor||e.glow&&!V.value))return e.iconColor===!0?v.value:e.iconColor}),{backgroundColorClasses:z,backgroundColorStyles:L}=Oe(()=>e.bgColor),{textColorClasses:O,textColorStyles:E}=Be(v);Q(x,A=>{if(C.value&&!Ue()){const w=i.value.$el,D=f.value.$el;requestAnimationFrame(()=>{const R=je(w),$=D.getBoundingClientRect(),Z=$.x-R.x,K=$.y-R.y-(R.height/2-$.height/2),W=$.width/.75,G=Math.abs(W-R.width)>1?{maxWidth:qe(W)}:void 0,de=getComputedStyle(w),ee=getComputedStyle(D),ce=parseFloat(de.transitionDuration)*1e3||150,$e=parseFloat(ee.getPropertyValue("--v-field-label-scale")),Ee=ee.getPropertyValue("color");w.style.visibility="visible",D.style.visibility="hidden",Ke(w,{transform:`translate(${Z}px, ${K}px) scale(${$e})`,color:Ee,...G},{duration:ce,easing:We,direction:A?"normal":"reverse"}).finished.then(()=>{w.style.removeProperty("visibility"),D.style.removeProperty("visibility")})})}},{flush:"post"});const _=m(()=>({isActive:x,isFocused:V,controlRef:F,blur:o,focus:S}));function j(A){A.target!==document.activeElement&&A.preventDefault()}return Y(()=>{var Z,K,W;const A=e.variant==="outlined",w=!!(a["prepend-inner"]||e.prependInnerIcon),D=!!(e.clearable||a.clear)&&!e.disabled,R=!!(a["append-inner"]||e.appendInnerIcon||D),$=()=>a.label?a.label({..._.value,label:e.label,props:{for:k.value}}):e.label;return r("div",ae({class:["v-field",{"v-field--active":x.value,"v-field--appended":R,"v-field--center-affix":e.centerAffix??!g.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--glow":e.glow,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":w,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!$(),[`v-field--variant-${e.variant}`]:!0},l.value,z.value,b.value,y.value,d.value,c.value,e.class],style:[L.value,e.style],onClick:j},u),[r("div",{class:"v-field__overlay"},null),h(He,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:a.loader}),w&&r("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&h(s,{key:"prepend-icon",name:"prependInner",color:M.value},null),(Z=a["prepend-inner"])==null?void 0:Z.call(a,_.value)]),r("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&C.value&&h(te,{key:"floating-label",ref:f,class:q([O.value]),floating:!0,for:k.value,"aria-hidden":!x.value,style:J(E.value)},{default:()=>[$()]}),P.value&&h(te,{key:"label",ref:i,for:k.value},{default:()=>[$()]}),((K=a.default)==null?void 0:K.call(a,{..._.value,props:{id:k.value,class:"v-field__input","aria-describedby":B.value},focus:S,blur:o}))??r("div",{id:k.value,class:"v-field__input","aria-describedby":B.value},null)]),D&&h(Xe,{key:"clear"},{default:()=>[ve(r("div",{class:"v-field__clearable",onMousedown:G=>{G.preventDefault(),G.stopPropagation()}},[h(Je,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[a.clear?a.clear({..._.value,props:{onFocus:S,onBlur:o,onClick:e["onClick:clear"],tabindex:-1}}):h(s,{name:"clear",onFocus:S,onBlur:o,tabindex:-1},null)]})]),[[he,e.dirty]])]}),R&&r("div",{key:"append",class:"v-field__append-inner"},[(W=a["append-inner"])==null?void 0:W.call(a,_.value),e.appendInnerIcon&&h(s,{key:"append-icon",name:"appendInner",color:M.value},null)]),r("div",{class:q(["v-field__outline",O.value]),style:J(E.value)},[A&&r(ne,null,[r("div",{class:"v-field__outline__start"},null),C.value&&r("div",{class:"v-field__outline__notch"},[h(te,{ref:f,floating:!0,for:k.value,"aria-hidden":!x.value},{default:()=>[$()]})]),r("div",{class:"v-field__outline__end"},null)]),g.value&&C.value&&h(te,{ref:f,floating:!0,for:k.value,"aria-hidden":!x.value},{default:()=>[$()]})])])}),{controlRef:F,fieldIconColor:M}}}),Ca=T({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...p(),...Ve({transition:{component:xe,leaveAbsolute:!0,group:!0}})},"VMessages"),Va=X()({name:"VMessages",props:Ca(),setup(e,n){let{slots:u}=n;const t=m(()=>ie(e.messages)),{textColorClasses:a,textColorStyles:l}=Be(()=>e.color);return Y(()=>h(Ce,{transition:e.transition,tag:"div",class:q(["v-messages",a.value,e.class]),style:J([l.value,e.style])},{default:()=>[e.active&&t.value.map((y,b)=>r("div",{class:"v-messages__message",key:`${b}-${t.value}`},[u.message?u.message({message:y}):y]))]})),{}}}),De=Symbol.for("vuetify:form"),Da=T({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function Ra(e){const n=oe(e,"modelValue"),u=I(()=>e.disabled),t=I(()=>e.readonly),a=ue(!1),l=U([]),y=U([]);async function b(){const o=[];let s=!0;y.value=[],a.value=!0;for(const d of l.value){const c=await d.validate();if(c.length>0&&(s=!1,o.push({id:d.id,errorMessages:c})),!s&&e.fastFail)break}return y.value=o,a.value=!1,{valid:s,errors:y.value}}function V(){l.value.forEach(o=>o.reset())}function S(){l.value.forEach(o=>o.resetValidation())}return Q(l,()=>{let o=0,s=0;const d=[];for(const c of l.value)c.isValid===!1?(s++,d.push({id:c.id,errorMessages:c.errorMessages})):c.isValid===!0&&o++;y.value=d,n.value=s>0?!1:o===l.value.length?!0:null},{deep:!0,flush:"post"}),Ge(De,{register:o=>{let{id:s,vm:d,validate:c,reset:x,resetValidation:P}=o;l.value.some(C=>C.id===s),l.value.push({id:s,validate:c,reset:x,resetValidation:P,vm:Qe(d),isValid:null,errorMessages:[]})},unregister:o=>{l.value=l.value.filter(s=>s.id!==o)},update:(o,s,d)=>{const c=l.value.find(x=>x.id===o);c&&(c.isValid=s,c.errorMessages=d)},isDisabled:u,isReadonly:t,isValidating:a,isValid:n,items:l,validateOn:I(()=>e.validateOn)}),{errors:y,isDisabled:u,isReadonly:t,isValidating:a,isValid:n,items:l,validate:b,reset:V,resetValidation:S}}function xa(e){const n=Pe(De,null);return{...n,isReadonly:m(()=>!!((e==null?void 0:e.readonly)??(n==null?void 0:n.isReadonly.value))),isDisabled:m(()=>!!((e==null?void 0:e.disabled)??(n==null?void 0:n.isDisabled.value)))}}const ka=Symbol.for("vuetify:rules");function Ia(e){const n=Pe(ka,null);if(!e){if(!n)throw new Error("Could not find Vuetify rules injection");return n.aliases}return(n==null?void 0:n.resolve(e))??I(e)}const Sa=T({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Fe()},"validation");function _a(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ie(),u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:re();const t=oe(e,"modelValue"),a=m(()=>e.validationValue===void 0?t.value:e.validationValue),l=xa(e),y=Ia(()=>e.rules),b=U([]),V=ue(!0),S=m(()=>!!(ie(t.value===""?null:t.value).length||ie(a.value===""?null:a.value).length)),o=m(()=>{var i;return(i=e.errorMessages)!=null&&i.length?ie(e.errorMessages).concat(b.value).slice(0,Math.max(0,Number(e.maxErrors))):b.value}),s=m(()=>{var F;let i=(e.validateOn??((F=l.validateOn)==null?void 0:F.value))||"input";i==="lazy"&&(i="input lazy"),i==="eager"&&(i="input eager");const f=new Set((i==null?void 0:i.split(" "))??[]);return{input:f.has("input"),blur:f.has("blur")||f.has("input")||f.has("invalid-input"),invalidInput:f.has("invalid-input"),lazy:f.has("lazy"),eager:f.has("eager")}}),d=m(()=>{var i;return e.error||(i=e.errorMessages)!=null&&i.length?!1:e.rules.length?V.value?b.value.length||s.value.lazy?null:!0:!b.value.length:!0}),c=ue(!1),x=m(()=>({[`${n}--error`]:d.value===!1,[`${n}--dirty`]:S.value,[`${n}--disabled`]:l.isDisabled.value,[`${n}--readonly`]:l.isReadonly.value})),P=pe("validation"),C=m(()=>e.name??ea(u));aa(()=>{var i;(i=l.register)==null||i.call(l,{id:C.value,vm:P,validate:B,reset:N,resetValidation:k})}),la(()=>{var i;(i=l.unregister)==null||i.call(l,C.value)}),ta(async()=>{var i;s.value.lazy||await B(!s.value.eager),(i=l.update)==null||i.call(l,C.value,d.value,o.value)}),ge(()=>s.value.input||s.value.invalidInput&&d.value===!1,()=>{Q(a,()=>{if(a.value!=null)B();else if(e.focused){const i=Q(()=>e.focused,f=>{f||B(),i()})}})}),ge(()=>s.value.blur,()=>{Q(()=>e.focused,i=>{i||B()})}),Q([d,o],()=>{var i;(i=l.update)==null||i.call(l,C.value,d.value,o.value)});async function N(){t.value=null,await se(),await k()}async function k(){V.value=!0,s.value.lazy?b.value=[]:await B(!s.value.eager)}async function B(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const f=[];c.value=!0;for(const F of y.value){if(f.length>=Number(e.maxErrors??1))break;const v=await(typeof F=="function"?F:()=>F)(a.value);if(v!==!0){if(v!==!1&&typeof v!="string"){console.warn(`${v} is not a valid value. Rule functions must return boolean true or a string.`);continue}f.push(v||"")}}return b.value=f,c.value=!1,V.value=i,b.value}return{errorMessages:o,isDirty:S,isDisabled:l.isDisabled,isReadonly:l.isReadonly,isPristine:V,isValid:d,isValidating:c,reset:N,resetValidation:k,validate:B,validationClasses:x}}const Re=T({id:String,appendIcon:le,baseColor:String,centerAffix:{type:Boolean,default:!0},color:String,glow:Boolean,iconColor:[Boolean,String],prependIcon:le,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":H(),"onClick:append":H(),...p(),...ua(),...sa(oa(),["maxWidth","minWidth","width"]),...fe(),...Sa()},"VInput"),be=X()({name:"VInput",props:{...Re()},emits:{"update:modelValue":e=>!0},setup(e,n){let{attrs:u,slots:t,emit:a}=n;const{densityClasses:l}=na(e),{dimensionStyles:y}=ia(e),{themeClasses:b}=Se(e),{rtlClasses:V}=_e(),{InputIcon:S}=we(e),o=re(),s=m(()=>e.id||`input-${o}`),{errorMessages:d,isDirty:c,isDisabled:x,isReadonly:P,isPristine:C,isValid:N,isValidating:k,reset:B,resetValidation:i,validate:f,validationClasses:F}=_a(e,"v-input",s),g=m(()=>{var _;return(_=e.errorMessages)!=null&&_.length||!C.value&&d.value.length?d.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages}),v=I(()=>g.value.length>0),M=I(()=>!e.hideDetails||e.hideDetails==="auto"&&(v.value||!!t.details)),z=m(()=>M.value?`${s.value}-messages`:void 0),L=m(()=>({id:s,messagesId:z,isDirty:c,isDisabled:x,isReadonly:P,isPristine:C,isValid:N,isValidating:k,hasDetails:M,reset:B,resetValidation:i,validate:f})),O=I(()=>e.error||e.disabled?void 0:e.focused?e.color:e.baseColor),E=I(()=>{if(e.iconColor)return e.iconColor===!0?O.value:e.iconColor});return Y(()=>{var A,w,D,R;const _=!!(t.prepend||e.prependIcon),j=!!(t.append||e.appendIcon);return r("div",{class:q(["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--focused":e.focused,"v-input--glow":e.glow,"v-input--hide-spin-buttons":e.hideSpinButtons},l.value,b.value,V.value,F.value,e.class]),style:J([y.value,e.style])},[_&&r("div",{key:"prepend",class:"v-input__prepend"},[(A=t.prepend)==null?void 0:A.call(t,L.value),e.prependIcon&&h(S,{key:"prepend-icon",name:"prepend",color:E.value},null)]),t.default&&r("div",{class:"v-input__control"},[(w=t.default)==null?void 0:w.call(t,L.value)]),j&&r("div",{key:"append",class:"v-input__append"},[e.appendIcon&&h(S,{key:"append-icon",name:"append",color:E.value},null),(D=t.append)==null?void 0:D.call(t,L.value)]),M.value&&r("div",{id:z.value,class:"v-input__details",role:"alert","aria-live":"polite"},[h(Va,{active:v.value,messages:g.value},{message:t.message}),(R=t.details)==null?void 0:R.call(t,L.value)])])}),{reset:B,resetValidation:i,validate:f,isValid:N,errorMessages:d}}}),Ba=T({autocomplete:String},"autocomplete");function Pa(e){const n=re(),u=ue(0),t=I(()=>e.autocomplete==="suppress"),a=I(()=>{if(e.name)return t.value?`${e.name}-${n}-${u.value}`:e.name}),l=I(()=>t.value?"off":e.autocomplete);return{isSuppressing:t,fieldAutocomplete:l,fieldName:a,update:()=>u.value=new Date().getTime()}}function wa(e){function n(u,t){if(!e.autofocus||!u)return;const a=t[0].target,l=a.matches("input,textarea")?a:a.querySelector("input,textarea");l==null||l.focus()}return{onIntersect:n}}const Fa=["color","file","time","date","datetime-local","week","month"],Ma=T({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...Ba(),...Re(),...Ae()},"VTextField"),$a=X()({name:"VTextField",directives:{vIntersect:me},inheritAttrs:!1,props:Ma(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,n){let{attrs:u,emit:t,slots:a}=n;const l=oe(e,"modelValue"),{isFocused:y,focus:b,blur:V}=Me(e),{onIntersect:S}=wa(e),o=m(()=>typeof e.counterValue=="function"?e.counterValue(l.value):typeof e.counterValue=="number"?e.counterValue:(l.value??"").toString().length),s=m(()=>{if(u.maxlength)return u.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),d=m(()=>["plain","underlined"].includes(e.variant)),c=U(),x=U(),P=U(),C=Pa(e),N=m(()=>Fa.includes(e.type)||e.persistentPlaceholder||y.value||e.active);function k(){C.isSuppressing.value&&C.update(),y.value||b(),se(()=>{var g;P.value!==document.activeElement&&((g=P.value)==null||g.focus())})}function B(g){t("mousedown:control",g),g.target!==P.value&&(k(),g.preventDefault())}function i(g){t("click:control",g)}function f(g,v){g.stopPropagation(),k(),se(()=>{v(),ke(e["onClick:clear"],g)})}function F(g){var O;const v=g.target;if(!((O=e.modelModifiers)!=null&&O.trim&&["text","search","password","tel","url"].includes(e.type))){l.value=v.value;return}const M=v.value,z=v.selectionStart,L=v.selectionEnd;l.value=M,se(()=>{let E=0;M.trimStart().length===v.value.length&&(E=M.length-v.value.length),z!=null&&(v.selectionStart=z-E),L!=null&&(v.selectionEnd=L-E)})}return Y(()=>{const g=!!(a.counter||e.counter!==!1&&e.counter!=null),v=!!(g||a.details),[M,z]=ra(u),{modelValue:L,...O}=be.filterProps(e),E=ye.filterProps(e);return h(be,ae({ref:c,modelValue:l.value,"onUpdate:modelValue":_=>l.value=_,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":d.value},e.class],style:e.style},M,O,{centerAffix:!d.value,focused:y.value}),{...a,default:_=>{let{id:j,isDisabled:A,isDirty:w,isReadonly:D,isValid:R,hasDetails:$,reset:Z}=_;return h(ye,ae({ref:x,onMousedown:B,onClick:i,"onClick:clear":K=>f(K,Z),role:e.role},da(E,["onClick:clear"]),{id:j.value,active:N.value||w.value,dirty:w.value||e.dirty,disabled:A.value,focused:y.value,details:$.value,error:R.value===!1}),{...a,default:K=>{let{props:{class:W,...G},controlRef:de}=K;const ee=r("input",ae({ref:ce=>P.value=de.value=ce,value:l.value,onInput:F,autofocus:e.autofocus,readonly:D.value,disabled:A.value,name:C.fieldName.value,autocomplete:C.fieldAutocomplete.value,placeholder:e.placeholder,size:1,role:e.role,type:e.type,onFocus:b,onBlur:V},G,z),null);return r(ne,null,[e.prefix&&r("span",{class:"v-text-field__prefix"},[r("span",{class:"v-text-field__prefix__text"},[e.prefix])]),ve(a.default?r("div",{class:q(W),"data-no-activator":""},[a.default(),ee]):ca(ee,{class:W}),[[me,S,null,{once:!0}]]),e.suffix&&r("span",{class:"v-text-field__suffix"},[r("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:v?_=>{var j;return r(ne,null,[(j=a.details)==null?void 0:j.call(a,_),g&&r(ne,null,[r("span",null,null),h(ga,{active:e.persistentCounter||y.value,value:o.value,max:s.value,disabled:e.disabled},a.counter)])])}:void 0})}),va({},c,x,P)}});export{$a as V,Me as a,be as b,ye as c,ga as d,Ae as e,Re as f,ya as g,Pa as h,Ra as i,Da as j,wa as k,Ba as l,Ma as m,xa as u}; +import{g as Z,p as T,ay as I,c as Q,d as h,I as ve,J as he,i as r,n as J,e as q,b0 as Ce,bg as Ve,h as p,U as xe,bh as fe,b1 as H,Z as Te,E as ae,v as Le,aA as ke,cx as Ie,a3 as oe,bl as Se,bZ as Ne,bc as ze,b7 as _e,ba as re,a5 as m,$ as U,aB as Oe,a2 as Be,a6 as G,c5 as Ue,cy as je,aD as Ke,aE as We,aI as qe,b_ as He,ac as Je,cv as Ze,F as ne,bi as Qe,b$ as Xe,a$ as le,a4 as ie,a0 as ue,bN as Ye,bI as Pe,cz as Ge,bS as pe,am as ea,cA as aa,aQ as la,aj as ta,bw as ge,a7 as se,aF as na,u as ia,aK as sa,aJ as ua,f as oa,b5 as me,az as ra,ae as da,cB as ca,ad as va}from"./index-GyS8nTIx.js";const fa=T({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...p(),...Ve({transition:{component:xe}})},"VCounter"),ga=Z()({name:"VCounter",functional:!0,props:fa(),setup(e,n){let{slots:u}=n;const t=I(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return Q(()=>h(Ce,{transition:e.transition},{default:()=>[ve(r("div",{class:q(["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class]),style:J(e.style)},[u.default?u.default({counter:t.value,max:e.max,value:e.value}):t.value]),[[he,e.active]])]})),{}}}),ma=T({text:String,onClick:H(),...p(),...fe()},"VLabel"),ya=Z()({name:"VLabel",props:ma(),setup(e,n){let{slots:u}=n;return Q(()=>{var t;return r("label",{class:q(["v-label",{"v-label--clickable":!!e.onClick},e.class]),style:J(e.style),onClick:e.onClick},[e.text,(t=u.default)==null?void 0:t.call(u)])}),{}}}),ba=T({floating:Boolean,...p()},"VFieldLabel"),te=Z()({name:"VFieldLabel",props:ba(),setup(e,n){let{slots:u}=n;return Q(()=>h(ya,{class:q(["v-field-label",{"v-field-label--floating":e.floating},e.class]),style:J(e.style)},u)),{}}});function we(e){const{t:n}=Te();function u(t){let{name:a,color:l,...y}=t;const b={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[a],V=e[`onClick:${a}`];function S(s){s.key!=="Enter"&&s.key!==" "||(s.preventDefault(),s.stopPropagation(),ke(V,new PointerEvent("click",s)))}const o=V&&b?n(`$vuetify.input.${b}`,e.label??""):void 0;return h(Le,ae({icon:e[`${a}Icon`],"aria-label":o,onClick:V,onKeydown:S,color:l},y),null)}return{InputIcon:u}}const Fe=T({focused:Boolean,"onUpdate:focused":H()},"focus");function Ae(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ie();const u=oe(e,"focused"),t=I(()=>({[`${n}--focused`]:u.value}));function a(){u.value=!0}function l(){u.value=!1}return{focusClasses:t,isFocused:u,focus:a,blur:l}}const ha=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],De=T({appendInnerIcon:le,bgColor:String,clearable:Boolean,clearIcon:{type:le,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},glow:Boolean,error:Boolean,flat:Boolean,iconColor:[Boolean,String],label:String,persistentClear:Boolean,prependInnerIcon:le,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>ha.includes(e)},"onClick:clear":H(),"onClick:appendInner":H(),"onClick:prependInner":H(),...p(),...Xe(),...Qe(),...fe()},"VField"),ye=Z()({name:"VField",inheritAttrs:!1,props:{id:String,details:Boolean,...Fe(),...De()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,n){let{attrs:u,emit:t,slots:a}=n;const{themeClasses:l}=Se(e),{loaderClasses:y}=Ne(e),{focusClasses:b,isFocused:V,focus:S,blur:o}=Ae(e),{InputIcon:s}=we(e),{roundedClasses:d}=ze(e),{rtlClasses:c}=_e(),x=I(()=>e.dirty||e.active),P=I(()=>!!(e.label||a.label)),C=I(()=>!e.singleLine&&P.value),N=re(),k=m(()=>e.id||`input-${N}`),B=I(()=>e.details?`${k.value}-messages`:void 0),i=U(),f=U(),F=U(),g=m(()=>["plain","underlined"].includes(e.variant)),v=m(()=>e.error||e.disabled?void 0:x.value&&V.value?e.color:e.baseColor),A=m(()=>{if(!(!e.iconColor||e.glow&&!V.value))return e.iconColor===!0?v.value:e.iconColor}),{backgroundColorClasses:z,backgroundColorStyles:L}=Oe(()=>e.bgColor),{textColorClasses:O,textColorStyles:E}=Be(v);G(x,D=>{if(C.value&&!Ue()){const w=i.value.$el,M=f.value.$el;requestAnimationFrame(()=>{const $=je(w),R=M.getBoundingClientRect(),X=R.x-$.x,K=R.y-$.y-($.height/2-R.height/2),W=R.width/.75,Y=Math.abs(W-$.width)>1?{maxWidth:qe(W)}:void 0,de=getComputedStyle(w),ee=getComputedStyle(M),ce=parseFloat(de.transitionDuration)*1e3||150,Re=parseFloat(ee.getPropertyValue("--v-field-label-scale")),Ee=ee.getPropertyValue("color");w.style.visibility="visible",M.style.visibility="hidden",Ke(w,{transform:`translate(${X}px, ${K}px) scale(${Re})`,color:Ee,...Y},{duration:ce,easing:We,direction:D?"normal":"reverse"}).finished.then(()=>{w.style.removeProperty("visibility"),M.style.removeProperty("visibility")})})}},{flush:"post"});const _=m(()=>({isActive:x,isFocused:V,controlRef:F,blur:o,focus:S}));function j(D){D.target!==document.activeElement&&D.preventDefault()}return Q(()=>{var X,K,W;const D=e.variant==="outlined",w=!!(a["prepend-inner"]||e.prependInnerIcon),M=!!(e.clearable||a.clear)&&!e.disabled,$=!!(a["append-inner"]||e.appendInnerIcon||M),R=()=>a.label?a.label({..._.value,label:e.label,props:{for:k.value}}):e.label;return r("div",ae({class:["v-field",{"v-field--active":x.value,"v-field--appended":$,"v-field--center-affix":e.centerAffix??!g.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--glow":e.glow,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":w,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!R(),[`v-field--variant-${e.variant}`]:!0},l.value,z.value,b.value,y.value,d.value,c.value,e.class],style:[L.value,e.style],onClick:j},u),[r("div",{class:"v-field__overlay"},null),h(He,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:a.loader}),w&&r("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&h(s,{key:"prepend-icon",name:"prependInner",color:A.value},null),(X=a["prepend-inner"])==null?void 0:X.call(a,_.value)]),r("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&C.value&&h(te,{key:"floating-label",ref:f,class:q([O.value]),floating:!0,for:k.value,"aria-hidden":!x.value,style:J(E.value)},{default:()=>[R()]}),P.value&&h(te,{key:"label",ref:i,for:k.value},{default:()=>[R()]}),((K=a.default)==null?void 0:K.call(a,{..._.value,props:{id:k.value,class:"v-field__input","aria-describedby":B.value},focus:S,blur:o}))??r("div",{id:k.value,class:"v-field__input","aria-describedby":B.value},null)]),M&&h(Ze,{key:"clear"},{default:()=>[ve(r("div",{class:"v-field__clearable",onMousedown:Y=>{Y.preventDefault(),Y.stopPropagation()}},[h(Je,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[a.clear?a.clear({..._.value,props:{onFocus:S,onBlur:o,onClick:e["onClick:clear"],tabindex:-1}}):h(s,{name:"clear",onFocus:S,onBlur:o,tabindex:-1},null)]})]),[[he,e.dirty]])]}),$&&r("div",{key:"append",class:"v-field__append-inner"},[(W=a["append-inner"])==null?void 0:W.call(a,_.value),e.appendInnerIcon&&h(s,{key:"append-icon",name:"appendInner",color:A.value},null)]),r("div",{class:q(["v-field__outline",O.value]),style:J(E.value)},[D&&r(ne,null,[r("div",{class:"v-field__outline__start"},null),C.value&&r("div",{class:"v-field__outline__notch"},[h(te,{ref:f,floating:!0,for:k.value,"aria-hidden":!x.value},{default:()=>[R()]})]),r("div",{class:"v-field__outline__end"},null)]),g.value&&C.value&&h(te,{ref:f,floating:!0,for:k.value,"aria-hidden":!x.value},{default:()=>[R()]})])])}),{controlRef:F,fieldIconColor:A}}}),Ca=T({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...p(),...Ve({transition:{component:xe,leaveAbsolute:!0,group:!0}})},"VMessages"),Va=Z()({name:"VMessages",props:Ca(),setup(e,n){let{slots:u}=n;const t=m(()=>ie(e.messages)),{textColorClasses:a,textColorStyles:l}=Be(()=>e.color);return Q(()=>h(Ce,{transition:e.transition,tag:"div",class:q(["v-messages",a.value,e.class]),style:J([l.value,e.style])},{default:()=>[e.active&&t.value.map((y,b)=>r("div",{class:"v-messages__message",key:`${b}-${t.value}`},[u.message?u.message({message:y}):y]))]})),{}}}),Me=Symbol.for("vuetify:form"),Ma=T({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function $a(e){const n=oe(e,"modelValue"),u=I(()=>e.disabled),t=I(()=>e.readonly),a=ue(!1),l=U([]),y=U([]);async function b(){const o=[];let s=!0;y.value=[],a.value=!0;for(const d of l.value){const c=await d.validate();if(c.length>0&&(s=!1,o.push({id:d.id,errorMessages:c})),!s&&e.fastFail)break}return y.value=o,a.value=!1,{valid:s,errors:y.value}}function V(){l.value.forEach(o=>o.reset())}function S(){l.value.forEach(o=>o.resetValidation())}return G(l,()=>{let o=0,s=0;const d=[];for(const c of l.value)c.isValid===!1?(s++,d.push({id:c.id,errorMessages:c.errorMessages})):c.isValid===!0&&o++;y.value=d,n.value=s>0?!1:o===l.value.length?!0:null},{deep:!0,flush:"post"}),Ye(Me,{register:o=>{let{id:s,vm:d,validate:c,reset:x,resetValidation:P}=o;l.value.some(C=>C.id===s),l.value.push({id:s,validate:c,reset:x,resetValidation:P,vm:Ge(d),isValid:null,errorMessages:[]})},unregister:o=>{l.value=l.value.filter(s=>s.id!==o)},update:(o,s,d)=>{const c=l.value.find(x=>x.id===o);c&&(c.isValid=s,c.errorMessages=d)},isDisabled:u,isReadonly:t,isValidating:a,isValid:n,items:l,validateOn:I(()=>e.validateOn)}),{errors:y,isDisabled:u,isReadonly:t,isValidating:a,isValid:n,items:l,validate:b,reset:V,resetValidation:S}}function xa(e){const n=Pe(Me,null);return{...n,isReadonly:m(()=>!!((e==null?void 0:e.readonly)??(n==null?void 0:n.isReadonly.value))),isDisabled:m(()=>!!((e==null?void 0:e.disabled)??(n==null?void 0:n.isDisabled.value)))}}const ka=Symbol.for("vuetify:rules");function Ia(e){const n=Pe(ka,null);if(!e){if(!n)throw new Error("Could not find Vuetify rules injection");return n.aliases}return(n==null?void 0:n.resolve(e))??I(e)}const Sa=T({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Fe()},"validation");function _a(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ie(),u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:re();const t=oe(e,"modelValue"),a=m(()=>e.validationValue===void 0?t.value:e.validationValue),l=xa(e),y=Ia(()=>e.rules),b=U([]),V=ue(!0),S=m(()=>!!(ie(t.value===""?null:t.value).length||ie(a.value===""?null:a.value).length)),o=m(()=>{var i;return(i=e.errorMessages)!=null&&i.length?ie(e.errorMessages).concat(b.value).slice(0,Math.max(0,Number(e.maxErrors))):b.value}),s=m(()=>{var F;let i=(e.validateOn??((F=l.validateOn)==null?void 0:F.value))||"input";i==="lazy"&&(i="input lazy"),i==="eager"&&(i="input eager");const f=new Set((i==null?void 0:i.split(" "))??[]);return{input:f.has("input"),blur:f.has("blur")||f.has("input")||f.has("invalid-input"),invalidInput:f.has("invalid-input"),lazy:f.has("lazy"),eager:f.has("eager")}}),d=m(()=>{var i;return e.error||(i=e.errorMessages)!=null&&i.length?!1:e.rules.length?V.value?b.value.length||s.value.lazy?null:!0:!b.value.length:!0}),c=ue(!1),x=m(()=>({[`${n}--error`]:d.value===!1,[`${n}--dirty`]:S.value,[`${n}--disabled`]:l.isDisabled.value,[`${n}--readonly`]:l.isReadonly.value})),P=pe("validation"),C=m(()=>e.name??ea(u));aa(()=>{var i;(i=l.register)==null||i.call(l,{id:C.value,vm:P,validate:B,reset:N,resetValidation:k})}),la(()=>{var i;(i=l.unregister)==null||i.call(l,C.value)}),ta(async()=>{var i;s.value.lazy||await B(!s.value.eager),(i=l.update)==null||i.call(l,C.value,d.value,o.value)}),ge(()=>s.value.input||s.value.invalidInput&&d.value===!1,()=>{G(a,()=>{if(a.value!=null)B();else if(e.focused){const i=G(()=>e.focused,f=>{f||B(),i()})}})}),ge(()=>s.value.blur,()=>{G(()=>e.focused,i=>{i||B()})}),G([d,o],()=>{var i;(i=l.update)==null||i.call(l,C.value,d.value,o.value)});async function N(){t.value=null,await se(),await k()}async function k(){V.value=!0,s.value.lazy?b.value=[]:await B(!s.value.eager)}async function B(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const f=[];c.value=!0;for(const F of y.value){if(f.length>=Number(e.maxErrors??1))break;const v=await(typeof F=="function"?F:()=>F)(a.value);if(v!==!0){if(v!==!1&&typeof v!="string"){console.warn(`${v} is not a valid value. Rule functions must return boolean true or a string.`);continue}f.push(v||"")}}return b.value=f,c.value=!1,V.value=i,b.value}return{errorMessages:o,isDirty:S,isDisabled:l.isDisabled,isReadonly:l.isReadonly,isPristine:V,isValid:d,isValidating:c,reset:N,resetValidation:k,validate:B,validationClasses:x}}const $e=T({id:String,appendIcon:le,baseColor:String,centerAffix:{type:Boolean,default:!0},color:String,glow:Boolean,iconColor:[Boolean,String],prependIcon:le,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":H(),"onClick:append":H(),...p(),...ua(),...sa(oa(),["maxWidth","minWidth","width"]),...fe(),...Sa()},"VInput"),be=Z()({name:"VInput",props:{...$e()},emits:{"update:modelValue":e=>!0},setup(e,n){let{attrs:u,slots:t,emit:a}=n;const{densityClasses:l}=na(e),{dimensionStyles:y}=ia(e),{themeClasses:b}=Se(e),{rtlClasses:V}=_e(),{InputIcon:S}=we(e),o=re(),s=m(()=>e.id||`input-${o}`),{errorMessages:d,isDirty:c,isDisabled:x,isReadonly:P,isPristine:C,isValid:N,isValidating:k,reset:B,resetValidation:i,validate:f,validationClasses:F}=_a(e,"v-input",s),g=m(()=>{var _;return(_=e.errorMessages)!=null&&_.length||!C.value&&d.value.length?d.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages}),v=I(()=>g.value.length>0),A=I(()=>!e.hideDetails||e.hideDetails==="auto"&&(v.value||!!t.details)),z=m(()=>A.value?`${s.value}-messages`:void 0),L=m(()=>({id:s,messagesId:z,isDirty:c,isDisabled:x,isReadonly:P,isPristine:C,isValid:N,isValidating:k,hasDetails:A,reset:B,resetValidation:i,validate:f})),O=I(()=>e.error||e.disabled?void 0:e.focused?e.color:e.baseColor),E=I(()=>{if(e.iconColor)return e.iconColor===!0?O.value:e.iconColor});return Q(()=>{var D,w,M,$;const _=!!(t.prepend||e.prependIcon),j=!!(t.append||e.appendIcon);return r("div",{class:q(["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--focused":e.focused,"v-input--glow":e.glow,"v-input--hide-spin-buttons":e.hideSpinButtons},l.value,b.value,V.value,F.value,e.class]),style:J([y.value,e.style])},[_&&r("div",{key:"prepend",class:"v-input__prepend"},[(D=t.prepend)==null?void 0:D.call(t,L.value),e.prependIcon&&h(S,{key:"prepend-icon",name:"prepend",color:E.value},null)]),t.default&&r("div",{class:"v-input__control"},[(w=t.default)==null?void 0:w.call(t,L.value)]),j&&r("div",{key:"append",class:"v-input__append"},[e.appendIcon&&h(S,{key:"append-icon",name:"append",color:E.value},null),(M=t.append)==null?void 0:M.call(t,L.value)]),A.value&&r("div",{id:z.value,class:"v-input__details",role:"alert","aria-live":"polite"},[h(Va,{active:v.value,messages:g.value},{message:t.message}),($=t.details)==null?void 0:$.call(t,L.value)])])}),{reset:B,resetValidation:i,validate:f,isValid:N,errorMessages:d}}}),Ba=T({autocomplete:String},"autocomplete");function Pa(e){const n=re(),u=ue(0),t=I(()=>e.autocomplete==="suppress"),a=I(()=>{if(e.name)return t.value?`${e.name}-${n}-${u.value}`:e.name}),l=I(()=>t.value?"off":e.autocomplete);return{isSuppressing:t,fieldAutocomplete:l,fieldName:a,update:()=>u.value=new Date().getTime()}}function wa(e){function n(u,t){if(!e.autofocus||!u)return;const a=t[0].target,l=a.matches("input,textarea")?a:a.querySelector("input,textarea");l==null||l.focus()}return{onIntersect:n}}const Fa=["color","file","time","date","datetime-local","week","month"],Aa=T({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...Ba(),...$e(),...De()},"VTextField"),Ra=Z()({name:"VTextField",directives:{vIntersect:me},inheritAttrs:!1,props:Aa(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,n){let{attrs:u,emit:t,slots:a}=n;const l=oe(e,"modelValue"),{isFocused:y,focus:b,blur:V}=Ae(e),{onIntersect:S}=wa(e),o=m(()=>typeof e.counterValue=="function"?e.counterValue(l.value):typeof e.counterValue=="number"?e.counterValue:(l.value??"").toString().length),s=m(()=>{if(u.maxlength)return u.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),d=m(()=>["plain","underlined"].includes(e.variant)),c=U(),x=U(),P=U(),C=Pa(e),N=m(()=>Fa.includes(e.type)||e.persistentPlaceholder||y.value||e.active);function k(){C.isSuppressing.value&&C.update(),y.value||b(),se(()=>{var g;P.value!==document.activeElement&&((g=P.value)==null||g.focus())})}function B(g){t("mousedown:control",g),g.target!==P.value&&(k(),g.preventDefault())}function i(g){t("click:control",g)}function f(g,v){g.stopPropagation(),k(),se(()=>{v(),ke(e["onClick:clear"],g)})}function F(g){var O;const v=g.target;if(!((O=e.modelModifiers)!=null&&O.trim&&["text","search","password","tel","url"].includes(e.type))){l.value=v.value;return}const A=v.value,z=v.selectionStart,L=v.selectionEnd;l.value=A,se(()=>{let E=0;A.trimStart().length===v.value.length&&(E=A.length-v.value.length),z!=null&&(v.selectionStart=z-E),L!=null&&(v.selectionEnd=L-E)})}return Q(()=>{const g=!!(a.counter||e.counter!==!1&&e.counter!=null),v=!!(g||a.details),[A,z]=ra(u),{modelValue:L,...O}=be.filterProps(e),E=ye.filterProps(e);return h(be,ae({ref:c,modelValue:l.value,"onUpdate:modelValue":_=>l.value=_,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":d.value},e.class],style:e.style},A,O,{centerAffix:!d.value,focused:y.value}),{...a,default:_=>{let{id:j,isDisabled:D,isDirty:w,isReadonly:M,isValid:$,hasDetails:R,reset:X}=_;return h(ye,ae({ref:x,onMousedown:B,onClick:i,"onClick:clear":K=>f(K,X),role:e.role},da(E,["onClick:clear"]),{id:j.value,active:N.value||w.value,dirty:w.value||e.dirty,disabled:D.value,focused:y.value,details:R.value,error:$.value===!1}),{...a,default:K=>{let{props:{class:W,...Y},controlRef:de}=K;const ee=r("input",ae({ref:ce=>P.value=de.value=ce,value:l.value,onInput:F,autofocus:e.autofocus,readonly:M.value,disabled:D.value,name:C.fieldName.value,autocomplete:C.fieldAutocomplete.value,placeholder:e.placeholder,size:1,role:e.role,type:e.type,onFocus:b,onBlur:V},Y,z),null);return r(ne,null,[e.prefix&&r("span",{class:"v-text-field__prefix"},[r("span",{class:"v-text-field__prefix__text"},[e.prefix])]),ve(a.default?r("div",{class:q(W),"data-no-activator":""},[a.default(),ee]):ca(ee,{class:W}),[[me,S,null,{once:!0}]]),e.suffix&&r("span",{class:"v-text-field__suffix"},[r("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:v?_=>{var j;return r(ne,null,[(j=a.details)==null?void 0:j.call(a,_),g&&r(ne,null,[r("span",null,null),h(ga,{active:e.persistentCounter||y.value,value:o.value,max:s.value,disabled:e.disabled},a.counter)])])}:void 0})}),va({},c,x,P)}});export{Ra as V,Ae as a,be as b,ye as c,ga as d,De as e,$e as f,Pa as g,$a as h,Ma as i,ya as j,wa as k,Ba as l,Aa as m,xa as u}; diff --git a/assets/VTextarea-mXVeQ__0.js b/assets/VTextarea-BeSb8uK6.js similarity index 65% rename from assets/VTextarea-mXVeQ__0.js rename to assets/VTextarea-BeSb8uK6.js index 3bb6c60..b6c6ee4 100644 --- a/assets/VTextarea-mXVeQ__0.js +++ b/assets/VTextarea-BeSb8uK6.js @@ -1 +1 @@ -import{g as re,p as se,b6 as p,a3 as ce,a5 as b,$ as h,a0 as de,X as fe,b5 as ve,aj as me,a6 as f,aS as xe,c as ge,az as he,d as A,i as r,F as M,E as z,I as O,aV as we,e as Ve,aI as B,ad as ye,a7 as P,a_ as Fe,aA as Ce}from"./index-BBVdlVQD.js";import{a as be,h as Pe,b as W,c as $,d as Ie,k as ke,e as Se,f as Ne,l as Re}from"./VTextField-C-Z2P35g.js";const He=se({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxHeight:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...Re(),...Ne(),...Se()},"VTextarea"),ze=re()({name:"VTextarea",directives:{vIntersect:p},inheritAttrs:!1,props:He(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,j){let{attrs:I,emit:k,slots:o}=j;const l=ce(e,"modelValue"),{isFocused:w,focus:X,blur:q}=be(e),{onIntersect:J}=ke(e),K=b(()=>typeof e.counterValue=="function"?e.counterValue(l.value):(l.value||"").toString().length),L=b(()=>{if(I.maxlength)return I.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),_=h(),y=h(),T=de(""),v=h(),S=h(0),{platform:Q}=fe(),F=Pe(e),Y=b(()=>e.persistentPlaceholder||w.value||e.active);function N(){var t;F.isSuppressing.value&&F.update(),v.value!==document.activeElement&&((t=v.value)==null||t.focus()),w.value||X()}function Z(t){N(),k("click:control",t)}function ee(t){k("mousedown:control",t)}function te(t){t.stopPropagation(),N(),P(()=>{l.value="",Ce(e["onClick:clear"],t)})}function ae(t){var g;const a=t.target;if(!((g=e.modelModifiers)!=null&&g.trim)){l.value=a.value;return}const n=a.value,x=a.selectionStart,c=a.selectionEnd;l.value=n,P(()=>{let d=0;n.trimStart().length===a.value.length&&(d=n.length-a.value.length),x!=null&&(a.selectionStart=x-d),c!=null&&(a.selectionEnd=c-d)})}const m=h(),V=h(Number(e.rows)),R=b(()=>["plain","underlined"].includes(e.variant));ve(()=>{e.autoGrow||(V.value=Number(e.rows))});function s(){P(()=>{if(!v.value)return;if(Q.value.firefox){S.value=12;return}const{offsetWidth:t,clientWidth:a}=v.value;S.value=Math.max(0,t-a)}),e.autoGrow&&P(()=>{if(!m.value||!y.value)return;const t=getComputedStyle(m.value),a=getComputedStyle(y.value.$el),n=parseFloat(t.getPropertyValue("--v-field-padding-top"))+parseFloat(t.getPropertyValue("--v-input-padding-top"))+parseFloat(t.getPropertyValue("--v-field-padding-bottom")),x=m.value.scrollHeight,c=parseFloat(t.lineHeight),g=Math.max(parseFloat(e.rows)*c+n,parseFloat(a.getPropertyValue("--v-input-control-height"))),d=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*c+n||1/0,i=Fe(x??0,g,d);V.value=Math.floor((i-n)/c),T.value=B(i)})}me(s),f(l,s),f(()=>e.rows,s),f(()=>e.maxHeight,s),f(()=>e.maxRows,s),f(()=>e.density,s),f(V,t=>{k("update:rows",t)});let u;return f(m,t=>{t?(u=new ResizeObserver(s),u.observe(m.value)):u==null||u.disconnect()}),xe(()=>{u==null||u.disconnect()}),ge(()=>{const t=!!(o.counter||e.counter||e.counterValue),a=!!(t||o.details),[n,x]=he(I),{modelValue:c,...g}=W.filterProps(e),d={...$.filterProps(e),"onClick:clear":te};return A(W,z({ref:_,modelValue:l.value,"onUpdate:modelValue":i=>l.value=i,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":R.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?B(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":B(S.value)},e.style]},n,g,{centerAffix:V.value===1&&!R.value,focused:w.value}),{...o,default:i=>{let{id:C,isDisabled:D,isDirty:E,isReadonly:le,isValid:ne,hasDetails:oe}=i;return A($,z({ref:y,style:{"--v-textarea-control-height":T.value},onClick:Z,onMousedown:ee,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},d,{id:C.value,active:Y.value||E.value,centerAffix:V.value===1&&!R.value,dirty:E.value||e.dirty,disabled:D.value,focused:w.value,details:oe.value,error:ne.value===!1}),{...o,default:ue=>{let{props:{class:G,...U},controlRef:ie}=ue;return r(M,null,[e.prefix&&r("span",{class:"v-text-field__prefix"},[e.prefix]),O(r("textarea",z({ref:H=>v.value=ie.value=H,class:G,value:l.value,onInput:ae,autofocus:e.autofocus,readonly:le.value,disabled:D.value,placeholder:e.placeholder,rows:e.rows,name:F.fieldName.value,autocomplete:F.fieldAutocomplete.value,onFocus:N,onBlur:q},U,x),null),[[p,{handler:J},null,{once:!0}]]),e.autoGrow&&O(r("textarea",{class:Ve([G,"v-textarea__sizer"]),id:`${U.id}-sizer`,"onUpdate:modelValue":H=>l.value=H,ref:m,readonly:!0,"aria-hidden":"true"},null),[[we,l.value]]),e.suffix&&r("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:a?i=>{var C;return r(M,null,[(C=o.details)==null?void 0:C.call(o,i),t&&r(M,null,[r("span",null,null),A(Ie,{active:e.persistentCounter||w.value,value:K.value,max:L.value,disabled:e.disabled},o.counter)])])}:void 0})}),ye({},_,y,v)}});export{ze as V}; +import{g as re,p as se,b5 as p,a3 as ce,a5 as b,$ as h,a0 as de,X as fe,b4 as ve,aj as me,a6 as f,aQ as xe,c as ge,az as he,d as A,i as r,F as M,E as z,I as O,aT as we,e as Ve,aI as B,ad as ye,a7 as P,aY as Fe,aA as Ce}from"./index-GyS8nTIx.js";import{a as be,g as Pe,b as W,c as $,d as Ie,k as ke,e as Ne,f as Re,l as Se}from"./VTextField-xLiM0gib.js";const He=se({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxHeight:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...Se(),...Re(),...Ne()},"VTextarea"),ze=re()({name:"VTextarea",directives:{vIntersect:p},inheritAttrs:!1,props:He(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,j){let{attrs:I,emit:k,slots:o}=j;const l=ce(e,"modelValue"),{isFocused:w,focus:Q,blur:X}=be(e),{onIntersect:Y}=ke(e),q=b(()=>typeof e.counterValue=="function"?e.counterValue(l.value):(l.value||"").toString().length),J=b(()=>{if(I.maxlength)return I.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),T=h(),y=h(),_=de(""),v=h(),N=h(0),{platform:K}=fe(),F=Pe(e),L=b(()=>e.persistentPlaceholder||w.value||e.active);function R(){var t;F.isSuppressing.value&&F.update(),v.value!==document.activeElement&&((t=v.value)==null||t.focus()),w.value||Q()}function Z(t){R(),k("click:control",t)}function ee(t){k("mousedown:control",t)}function te(t){t.stopPropagation(),R(),P(()=>{l.value="",Ce(e["onClick:clear"],t)})}function ae(t){var g;const a=t.target;if(!((g=e.modelModifiers)!=null&&g.trim)){l.value=a.value;return}const n=a.value,x=a.selectionStart,c=a.selectionEnd;l.value=n,P(()=>{let d=0;n.trimStart().length===a.value.length&&(d=n.length-a.value.length),x!=null&&(a.selectionStart=x-d),c!=null&&(a.selectionEnd=c-d)})}const m=h(),V=h(Number(e.rows)),S=b(()=>["plain","underlined"].includes(e.variant));ve(()=>{e.autoGrow||(V.value=Number(e.rows))});function s(){P(()=>{if(!v.value)return;if(K.value.firefox){N.value=12;return}const{offsetWidth:t,clientWidth:a}=v.value;N.value=Math.max(0,t-a)}),e.autoGrow&&P(()=>{if(!m.value||!y.value)return;const t=getComputedStyle(m.value),a=getComputedStyle(y.value.$el),n=parseFloat(t.getPropertyValue("--v-field-padding-top"))+parseFloat(t.getPropertyValue("--v-input-padding-top"))+parseFloat(t.getPropertyValue("--v-field-padding-bottom")),x=m.value.scrollHeight,c=parseFloat(t.lineHeight),g=Math.max(parseFloat(e.rows)*c+n,parseFloat(a.getPropertyValue("--v-input-control-height"))),d=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*c+n||1/0,i=Fe(x??0,g,d);V.value=Math.floor((i-n)/c),_.value=B(i)})}me(s),f(l,s),f(()=>e.rows,s),f(()=>e.maxHeight,s),f(()=>e.maxRows,s),f(()=>e.density,s),f(V,t=>{k("update:rows",t)});let u;return f(m,t=>{t?(u=new ResizeObserver(s),u.observe(m.value)):u==null||u.disconnect()}),xe(()=>{u==null||u.disconnect()}),ge(()=>{const t=!!(o.counter||e.counter||e.counterValue),a=!!(t||o.details),[n,x]=he(I),{modelValue:c,...g}=W.filterProps(e),d={...$.filterProps(e),"onClick:clear":te};return A(W,z({ref:T,modelValue:l.value,"onUpdate:modelValue":i=>l.value=i,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":S.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?B(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":B(N.value)},e.style]},n,g,{centerAffix:V.value===1&&!S.value,focused:w.value}),{...o,default:i=>{let{id:C,isDisabled:D,isDirty:E,isReadonly:le,isValid:ne,hasDetails:oe}=i;return A($,z({ref:y,style:{"--v-textarea-control-height":_.value},onClick:Z,onMousedown:ee,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},d,{id:C.value,active:L.value||E.value,centerAffix:V.value===1&&!S.value,dirty:E.value||e.dirty,disabled:D.value,focused:w.value,details:oe.value,error:ne.value===!1}),{...o,default:ue=>{let{props:{class:G,...U},controlRef:ie}=ue;return r(M,null,[e.prefix&&r("span",{class:"v-text-field__prefix"},[e.prefix]),O(r("textarea",z({ref:H=>v.value=ie.value=H,class:G,value:l.value,onInput:ae,autofocus:e.autofocus,readonly:le.value,disabled:D.value,placeholder:e.placeholder,rows:e.rows,name:F.fieldName.value,autocomplete:F.fieldAutocomplete.value,onFocus:R,onBlur:X},U,x),null),[[p,{handler:Y},null,{once:!0}]]),e.autoGrow&&O(r("textarea",{class:Ve([G,"v-textarea__sizer"]),id:`${U.id}-sizer`,"onUpdate:modelValue":H=>l.value=H,ref:m,readonly:!0,"aria-hidden":"true"},null),[[we,l.value]]),e.suffix&&r("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:a?i=>{var C;return r(M,null,[(C=o.details)==null?void 0:C.call(o,i),t&&r(M,null,[r("span",null,null),A(Ie,{active:e.persistentCounter||w.value,value:q.value,max:J.value,disabled:e.disabled},o.counter)])])}:void 0})}),ye({},T,y,v)}});export{ze as V}; diff --git a/assets/_id_-BSf-7VSQ.js b/assets/_id_-BSf-7VSQ.js deleted file mode 100644 index 02bb8e5..0000000 --- a/assets/_id_-BSf-7VSQ.js +++ /dev/null @@ -1 +0,0 @@ -import{d as h}from"./dataProvider-bw19OswA.js";import{g as _,p as B,c as O,d as i,n as U,e as T,m as J,h as F,_ as z,A as u,o as m,w as l,j as p,t as o,C as f,y as r,i as M,v as I,N as P,l as c,B as b,q as D,x as y,D as K,z as V,P as R,F as k,G as q,Q as C,aq as v,O as j,M as N,H as A,ap as S}from"./index-BBVdlVQD.js";import{b as E,c as G}from"./VAppBarTitle-QQJ8OMzH.js";import{V as x}from"./VTextField-C-Z2P35g.js";import{V as H}from"./VCheckboxBtn-CtaD8oYU.js";import{V as Q}from"./VChip-BmBm7zXx.js";import{V as W}from"./VTextarea-mXVeQ__0.js";import{V as X}from"./VSwitch-CCxGT9ZY.js";import{V as Y}from"./VContainer-OExp5t5c.js";import"./axios-CF6XU-xP.js";import"./VSelectionControl-D-h-HCLE.js";const Z=B({start:Boolean,end:Boolean,...F(),...J()},"VListItemAction"),$=_()({name:"VListItemAction",props:Z(),setup(t,e){let{slots:n}=e;return O(()=>i(t.tag,{class:T(["v-list-item-action",{"v-list-item-action--start":t.start,"v-list-item-action--end":t.end},t.class]),style:U(t.style)},n)),{}}}),ee={data(){return{listId:null,list:null,items:[],originalItems:[],newItemName:"",sortSeed:"1",sortType:"default",isRandomSorted:!1,deleteDialog:{show:!1,title:"",text:"",itemId:null,action:null},isRenaming:!1,newListName:"",itemDialog:{show:!1,item:null,isEditing:!1,editedItem:null}}},computed:{sortedItems(){return this.sortType==="completed"?[...this.items].sort((t,e)=>t.completed===e.completed?0:t.completed?1:-1):this.items},hasCompletedItems(){return this.items.some(t=>t.completed)}},async created(){this.listId=this.$route.params.id,await Promise.all([this.loadListInfo(),this.loadItems()])},methods:{async loadListInfo(){try{const t=await h.loadData("classworks-list-info");t&&Array.isArray(t)&&(this.list=t.find(e=>e.id===this.listId)),this.list||this.$router.push("/list")}catch(t){console.error("Failed to load list info",t),this.$router.push("/list")}},startRenaming(){this.list&&(this.newListName=this.list.name,this.isRenaming=!0)},cancelRenaming(){this.isRenaming=!1,this.newListName=""},async saveListName(){if(this.newListName.trim())try{const t=await h.loadData("classworks-list-info");if(t&&Array.isArray(t)){const e=t.findIndex(n=>n.id===this.listId);e!==-1&&(t[e].name=this.newListName.trim(),await h.saveData("classworks-list-info",t),this.list.name=this.newListName.trim())}this.isRenaming=!1}catch(t){console.error("Failed to update list name",t)}},async loadItems(){try{let t=await h.loadData(`classworks-list-${this.listId}`);(!t||!Array.isArray(t))&&(t=[],await h.saveData(`classworks-list-${this.listId}`,t)),this.items=t.map(e=>typeof e.completed>"u"?{id:e.id||Date.now()+Math.floor(Math.random()*1e3),name:e.name,completed:!1,description:e.description||""}:{...e,description:e.description||""}),this.originalItems=JSON.parse(JSON.stringify(this.items))}catch(t){console.error("Failed to load items",t),this.items=[],this.originalItems=[]}},async addItem(){if(!this.newItemName)return;const t={id:Date.now().toString(),name:this.newItemName,completed:!1,description:""};this.items.push(t),this.originalItems.push(JSON.parse(JSON.stringify(t))),await this.saveItems(),this.newItemName=""},openItemDetails(t){this.itemDialog={show:!0,item:t,isEditing:!1,editedItem:null}},startEditingItem(){this.itemDialog.item&&(this.itemDialog.isEditing=!0,this.itemDialog.editedItem=JSON.parse(JSON.stringify(this.itemDialog.item)))},cancelEditingItem(){this.itemDialog.isEditing=!1,this.itemDialog.editedItem=null},async saveItemChanges(){if(!this.itemDialog.editedItem)return;const t=this.items.findIndex(e=>e.id===this.itemDialog.item.id);if(t!==-1){this.items[t]={...this.itemDialog.editedItem};const e=this.originalItems.findIndex(n=>n.id===this.itemDialog.item.id);e!==-1&&(this.originalItems[e]=JSON.parse(JSON.stringify(this.items[t]))),await this.saveItems(),this.itemDialog.item=this.items[t],this.itemDialog.isEditing=!1,this.itemDialog.editedItem=null}},confirmDeleteItem(t){var n;const e=this.items.find(g=>g.id===t);e&&(this.deleteDialog={show:!0,title:"删除确认",text:`确定要删除 "${e.name}" 吗?`,itemId:t,action:"deleteItem"},this.itemDialog.show&&((n=this.itemDialog.item)==null?void 0:n.id)===t&&(this.itemDialog.show=!1))},confirmDeleteCompleted(){const t=this.items.filter(e=>e.completed).length;this.deleteDialog={show:!0,title:"删除已完成项目",text:`确定要删除所有已完成的项目吗?(共 ${t} 项)`,action:"deleteCompleted"}},confirmDelete(){this.deleteDialog.action==="deleteItem"&&this.deleteDialog.itemId?this.deleteItem(this.deleteDialog.itemId):this.deleteDialog.action==="deleteCompleted"&&this.deleteCompletedItems(),this.deleteDialog.show=!1},async deleteItem(t){this.items=this.items.filter(e=>e.id!==t),this.originalItems=this.originalItems.filter(e=>e.id!==t),await this.saveItems()},async deleteCompletedItems(){this.items=this.items.filter(t=>!t.completed),this.originalItems=this.originalItems.filter(t=>!t.completed),await this.saveItems()},async updateItemStatus(t,e){const n=this.items.find(g=>g.id===t);if(n){n.completed=e;const g=this.originalItems.find(s=>s.id===t);g&&(g.completed=e),await this.saveItems()}},async saveItems(){try{await h.saveData(`classworks-list-${this.listId}`,this.items)}catch(t){console.error("Failed to save items",t)}},randomSort(){const t=this.items.map(e=>{const n=this.hashCode(e.id+this.sortSeed);return{...e,randomValue:this.seededRandom(n)}});t.sort((e,n)=>e.randomValue-n.randomValue),this.items=t.map(e=>{const n={...e};return delete n.randomValue,n}),this.isRandomSorted=!0,this.saveItems()},resetSort(){this.items=JSON.parse(JSON.stringify(this.originalItems)),this.isRandomSorted=!1,this.saveItems()},hashCode(t){let e=0;for(let n=0;n[i(r,{icon:"mdi-arrow-left",variant:"text",onClick:e[0]||(e[0]=a=>t.$router.push("/"))})]),default:l(()=>[s.list&&!s.isRenaming?(m(),p(E,{key:0,class:"text-h6"},{default:l(()=>[o(f(s.list.name),1)]),_:1})):(m(),p(E,{key:1,class:"text-h6"},{default:l(()=>[...e[14]||(e[14]=[o("列表",-1)])]),_:1}))]),_:1}),i(Y,null,{default:l(()=>[M("div",te,[i(r,{border:"",class:"mr-2",icon:"",to:"/list"},{default:l(()=>[i(I,null,{default:l(()=>[...e[15]||(e[15]=[o("mdi-arrow-left",-1)])]),_:1})]),_:1}),s.list&&!s.isRenaming?(m(),u("h1",ie,[o(f(s.list.name)+" ",1),i(r,{border:"",icon:"",size:"small",onClick:d.startRenaming},{default:l(()=>[i(I,null,{default:l(()=>[...e[16]||(e[16]=[o("mdi-pencil",-1)])]),_:1})]),_:1},8,["onClick"])])):s.list&&s.isRenaming?(m(),u("div",le,[i(x,{modelValue:s.newListName,"onUpdate:modelValue":e[1]||(e[1]=a=>s.newListName=a),autofocus:"",class:"mr-2",density:"compact","hide-details":"",label:"列表名称",style:{"min-width":"200px"},onKeyup:P(d.saveListName,["enter"])},null,8,["modelValue","onKeyup"]),i(r,{class:"mr-2",color:"primary",size:"small",onClick:d.saveListName},{default:l(()=>[i(I,null,{default:l(()=>[...e[17]||(e[17]=[o("mdi-check",-1)])]),_:1})]),_:1},8,["onClick"]),i(r,{color:"error",size:"small",onClick:d.cancelRenaming},{default:l(()=>[i(I,null,{default:l(()=>[...e[18]||(e[18]=[o("mdi-close",-1)])]),_:1})]),_:1},8,["onClick"])])):(m(),u("h1",se," 加载中... "))]),i(c,{border:"",class:"mb-5",rounded:"xl"},{default:l(()=>[i(D,{class:"d-flex align-center"},{default:l(()=>[e[21]||(e[21]=o(" 项目列表 ",-1)),i(y),i(K,{modelValue:s.sortType,"onUpdate:modelValue":e[2]||(e[2]=a=>s.sortType=a),mandatory:""},{default:l(()=>[i(r,{value:"default"},{default:l(()=>[i(I,null,{default:l(()=>[...e[19]||(e[19]=[o("mdi-sort-alphabetical-ascending",-1)])]),_:1})]),_:1}),i(r,{value:"completed"},{default:l(()=>[i(I,null,{default:l(()=>[...e[20]||(e[20]=[o("mdi-check-circle-outline",-1)])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),d.sortedItems.length===0?(m(),p(V,{key:0},{default:l(()=>[...e[22]||(e[22]=[o(" 暂无项目,请添加新项目 ",-1)])]),_:1})):(m(),p(R,{key:1,"select-strategy":"leaf"},{default:l(()=>[(m(!0),u(k,null,q(d.sortedItems,(a,w)=>(m(),p(C,{key:a.id,class:T({"text-decoration-line-through":a.completed}),onClick:L=>d.openItemDetails(a)},{prepend:l(()=>[i($,{start:""},{default:l(()=>[i(H,{"model-value":a.completed,"onUpdate:modelValue":L=>d.updateItemStatus(a.id,L),onClick:e[3]||(e[3]=j(()=>{},["stop"]))},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)]),append:l(()=>[o(f(w+1),1)]),default:l(()=>[o(" "+f(a.name)+" ",1),i(v,null,{default:l(()=>[o(f(a.description),1)]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1})),d.sortedItems.length>0?(m(),p(N,{key:2},{default:l(()=>[i(y),i(r,{disabled:!d.hasCompletedItems,color:"error","prepend-icon":"mdi-delete-sweep",onClick:d.confirmDeleteCompleted},{default:l(()=>[...e[23]||(e[23]=[o(" 删除已完成项目 ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})):b("",!0)]),_:1}),i(c,{border:"",class:"mb-5",rounded:"xl"},{default:l(()=>[i(D,null,{default:l(()=>[...e[24]||(e[24]=[o("添加新项目",-1)])]),_:1}),i(V,null,{default:l(()=>[i(x,{modelValue:s.newItemName,"onUpdate:modelValue":e[4]||(e[4]=a=>s.newItemName=a),rules:[a=>!!a||"名称不能为空"],label:"项目名称"},null,8,["modelValue","rules"]),i(r,{disabled:!s.newItemName,color:"primary",onClick:d.addItem},{default:l(()=>[...e[25]||(e[25]=[o(" 添加 ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1}),i(c,{border:"",class:"mb-5",rounded:"xl"},{default:l(()=>[i(D,null,{default:l(()=>[...e[26]||(e[26]=[o("列表排序",-1)])]),_:1}),i(V,null,{default:l(()=>[i(x,{modelValue:s.sortSeed,"onUpdate:modelValue":e[5]||(e[5]=a=>s.sortSeed=a),class:"mb-3",hint:"输入相同的种子值可以得到相同的排序结果",label:"排序种子 (任意数字或文本)","persistent-hint":""},null,8,["modelValue"]),i(r,{class:"mr-2",color:"primary",onClick:d.randomSort},{default:l(()=>[...e[27]||(e[27]=[o(" 随机排序 ",-1)])]),_:1},8,["onClick"]),i(r,{variant:"text",onClick:d.resetSort},{default:l(()=>[...e[28]||(e[28]=[o(" 撤销 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1}),i(A,{modelValue:s.deleteDialog.show,"onUpdate:modelValue":e[7]||(e[7]=a=>s.deleteDialog.show=a),"max-width":"500"},{default:l(()=>[i(c,{border:"",rounded:"xl"},{default:l(()=>[i(D,null,{default:l(()=>[o(f(s.deleteDialog.title),1)]),_:1}),i(V,null,{default:l(()=>[o(f(s.deleteDialog.text),1)]),_:1}),i(N,null,{default:l(()=>[i(y),i(r,{color:"primary",variant:"text",onClick:e[6]||(e[6]=a=>s.deleteDialog.show=!1)},{default:l(()=>[...e[29]||(e[29]=[o(" 取消 ",-1)])]),_:1}),i(r,{color:"error",variant:"text",onClick:d.confirmDelete},{default:l(()=>[...e[30]||(e[30]=[o(" 确认删除 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),i(A,{modelValue:s.itemDialog.show,"onUpdate:modelValue":e[13]||(e[13]=a=>s.itemDialog.show=a),"max-width":"600"},{default:l(()=>[i(c,{border:"",rounded:"xl"},{default:l(()=>[i(D,null,{default:l(()=>[s.itemDialog.isEditing?(m(),u("span",ae,"编辑项目")):(m(),u("span",oe,"项目详情"))]),_:1}),i(V,null,{default:l(()=>[!s.itemDialog.isEditing&&s.itemDialog.item?(m(),u("div",ne,[i(R,null,{default:l(()=>[i(C,null,{default:l(()=>[i(S,{class:"text-subtitle-1 font-weight-bold"},{default:l(()=>[o(f(s.itemDialog.item.name),1)]),_:1}),i(v,null,{default:l(()=>[o(f(s.itemDialog.item.id),1)]),_:1})]),_:1}),i(C,null,{default:l(()=>[i(S,{class:"text-subtitle-1 font-weight-bold"},{default:l(()=>[...e[31]||(e[31]=[o("状态",-1)])]),_:1}),i(v,null,{default:l(()=>[i(Q,{color:s.itemDialog.item.completed?"success":"warning",size:"small"},{default:l(()=>[o(f(s.itemDialog.item.completed?"已完成":"未完成"),1)]),_:1},8,["color"])]),_:1})]),_:1}),s.itemDialog.item.description?(m(),p(C,{key:0},{default:l(()=>[i(S,{class:"text-subtitle-1 font-weight-bold"},{default:l(()=>[...e[32]||(e[32]=[o("描述",-1)])]),_:1}),i(v,null,{default:l(()=>[o(f(s.itemDialog.item.description),1)]),_:1})]),_:1})):b("",!0)]),_:1})])):s.itemDialog.isEditing&&s.itemDialog.item?(m(),u("div",de,[i(x,{modelValue:s.itemDialog.editedItem.name,"onUpdate:modelValue":e[8]||(e[8]=a=>s.itemDialog.editedItem.name=a),class:"mb-3",label:"名称",variant:"outlined"},null,8,["modelValue"]),i(W,{modelValue:s.itemDialog.editedItem.description,"onUpdate:modelValue":e[9]||(e[9]=a=>s.itemDialog.editedItem.description=a),class:"mb-3",label:"描述",rows:"3",variant:"outlined"},null,8,["modelValue"]),i(X,{modelValue:s.itemDialog.editedItem.completed,"onUpdate:modelValue":e[10]||(e[10]=a=>s.itemDialog.editedItem.completed=a),color:"success","hide-details":"",label:"已完成"},null,8,["modelValue"])])):b("",!0)]),_:1}),i(N,null,{default:l(()=>[i(y),s.itemDialog.isEditing?(m(),u(k,{key:1},[i(r,{color:"success",variant:"text",onClick:d.saveItemChanges},{default:l(()=>[...e[36]||(e[36]=[o(" 保存 ",-1)])]),_:1},8,["onClick"]),i(r,{color:"secondary",variant:"text",onClick:d.cancelEditingItem},{default:l(()=>[...e[37]||(e[37]=[o(" 取消 ",-1)])]),_:1},8,["onClick"])],64)):(m(),u(k,{key:0},[i(r,{color:"primary",variant:"text",onClick:d.startEditingItem},{default:l(()=>[...e[33]||(e[33]=[o(" 编辑 ",-1)])]),_:1},8,["onClick"]),i(r,{color:"error",variant:"text",onClick:e[11]||(e[11]=a=>{var w;return d.confirmDeleteItem((w=s.itemDialog.item)==null?void 0:w.id)})},{default:l(()=>[...e[34]||(e[34]=[o(" 删除 ",-1)])]),_:1}),i(r,{color:"secondary",variant:"text",onClick:e[12]||(e[12]=a=>s.itemDialog.show=!1)},{default:l(()=>[...e[35]||(e[35]=[o(" 关闭 ",-1)])]),_:1})],64))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)}const ye=z(ee,[["render",me]]);export{ye as default}; diff --git a/assets/_id_-COPsOi2_.js b/assets/_id_-COPsOi2_.js deleted file mode 100644 index 70085f4..0000000 --- a/assets/_id_-COPsOi2_.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as c}from"./ExamConfigEditor-CFH7DsKe.js";import{_ as u,j as n,o as d,w as r,d as e,t as p,x as v,y as m,B as _}from"./index-BBVdlVQD.js";import{c as g,b as x}from"./VAppBarTitle-QQJ8OMzH.js";import{V as l}from"./VContainer-OExp5t5c.js";import"./dataProvider-bw19OswA.js";import"./axios-CF6XU-xP.js";import"./VAlert-BYrhoEr8.js";import"./VSkeletonLoader-DuVn92u1.js";import"./VBadge-H7ndD91w.js";import"./VChip-BmBm7zXx.js";import"./VRow-IosHPrmj.js";import"./VTextField-C-Z2P35g.js";import"./VTextarea-mXVeQ__0.js";import"./VMenu-CJ7CiDy8.js";import"./VDatePicker-CtGCqIzy.js";import"./VSheet-DZUeXnyk.js";const E={name:"ExamEditorPage",components:{ExamConfigEditor:c},data(){return{id:this.$route.params.id,saving:!1}},watch:{"$route.params.id"(o){this.id=o}},methods:{async save(){if(this.$refs.editor){this.saving=!0;try{await this.$refs.editor.saveConfig()}finally{this.saving=!1}}},onSaved(){var o,t;(t=(o=this.$toast)==null?void 0:o.success)==null||t.call(o,"保存成功")},onError(o){var t,i;(i=(t=this.$toast)==null?void 0:t.error)==null||i.call(t,o||"保存失败")}}};function C(o,t,i,V,a,s){const f=c;return d(),n(l,{class:"pa-0"},{default:r(()=>[e(g,{elevation:"1"},{prepend:r(()=>[e(m,{icon:"mdi-arrow-left",variant:"text",onClick:t[0]||(t[0]=h=>o.$router.back())})]),default:r(()=>[e(x,{class:"text-h6"},{default:r(()=>[...t[1]||(t[1]=[p(" 编辑考试配置 ",-1)])]),_:1}),e(v),e(m,{loading:a.saving,color:"success","prepend-icon":"mdi-content-save",variant:"outlined",onClick:s.save},{default:r(()=>[...t[2]||(t[2]=[p(" 保存 ",-1)])]),_:1},8,["loading","onClick"])]),_:1}),e(l,{class:"py-4",style:{"max-width":"1200px"}},{default:r(()=>[a.id?(d(),n(f,{key:0,ref:"editor","config-id":a.id,onError:s.onError,onSaved:s.onSaved},null,8,["config-id","onError","onSaved"])):_("",!0)]),_:1})]),_:1})}const G=u(E,[["render",C]]);export{G as default}; diff --git a/assets/_id_-DaLKYTcE.js b/assets/_id_-DaLKYTcE.js new file mode 100644 index 0000000..17b1d4a --- /dev/null +++ b/assets/_id_-DaLKYTcE.js @@ -0,0 +1 @@ +import{d as h}from"./dataProvider-CVD6IsoX.js";import{g as _,p as B,c as O,d as i,n as U,e as T,m as J,h as F,_ as z,A as u,o as m,w as l,j as p,t as o,C as f,y as r,i as M,v as I,N as P,l as c,B as b,q as D,x as y,D as K,z as V,P as R,F as k,G as q,Q as C,aq as v,O as j,M as N,H as A,ap as S}from"./index-GyS8nTIx.js";import{b as E,c as G}from"./VAppBarTitle-CUv9Ys4F.js";import{V as x}from"./VTextField-xLiM0gib.js";import{V as H}from"./VCheckboxBtn-Cjkf0n-9.js";import{V as Q}from"./VChip-DsTHqUw0.js";import{V as W}from"./VTextarea-BeSb8uK6.js";import{V as X}from"./VSwitch-COsJOhk2.js";import{V as Y}from"./VContainer-B1JGY98V.js";const Z=B({start:Boolean,end:Boolean,...F(),...J()},"VListItemAction"),$=_()({name:"VListItemAction",props:Z(),setup(t,e){let{slots:n}=e;return O(()=>i(t.tag,{class:T(["v-list-item-action",{"v-list-item-action--start":t.start,"v-list-item-action--end":t.end},t.class]),style:U(t.style)},n)),{}}}),ee={data(){return{listId:null,list:null,items:[],originalItems:[],newItemName:"",sortSeed:"1",sortType:"default",isRandomSorted:!1,deleteDialog:{show:!1,title:"",text:"",itemId:null,action:null},isRenaming:!1,newListName:"",itemDialog:{show:!1,item:null,isEditing:!1,editedItem:null}}},computed:{sortedItems(){return this.sortType==="completed"?[...this.items].sort((t,e)=>t.completed===e.completed?0:t.completed?1:-1):this.items},hasCompletedItems(){return this.items.some(t=>t.completed)}},async created(){this.listId=this.$route.params.id,await Promise.all([this.loadListInfo(),this.loadItems()])},methods:{async loadListInfo(){try{const t=await h.loadData("classworks-list-info");t&&Array.isArray(t)&&(this.list=t.find(e=>e.id===this.listId)),this.list||this.$router.push("/list")}catch(t){console.error("Failed to load list info",t),this.$router.push("/list")}},startRenaming(){this.list&&(this.newListName=this.list.name,this.isRenaming=!0)},cancelRenaming(){this.isRenaming=!1,this.newListName=""},async saveListName(){if(this.newListName.trim())try{const t=await h.loadData("classworks-list-info");if(t&&Array.isArray(t)){const e=t.findIndex(n=>n.id===this.listId);e!==-1&&(t[e].name=this.newListName.trim(),await h.saveData("classworks-list-info",t),this.list.name=this.newListName.trim())}this.isRenaming=!1}catch(t){console.error("Failed to update list name",t)}},async loadItems(){try{let t=await h.loadData(`classworks-list-${this.listId}`);(!t||!Array.isArray(t))&&(t=[],await h.saveData(`classworks-list-${this.listId}`,t)),this.items=t.map(e=>typeof e.completed>"u"?{id:e.id||Date.now()+Math.floor(Math.random()*1e3),name:e.name,completed:!1,description:e.description||""}:{...e,description:e.description||""}),this.originalItems=JSON.parse(JSON.stringify(this.items))}catch(t){console.error("Failed to load items",t),this.items=[],this.originalItems=[]}},async addItem(){if(!this.newItemName)return;const t={id:Date.now().toString(),name:this.newItemName,completed:!1,description:""};this.items.push(t),this.originalItems.push(JSON.parse(JSON.stringify(t))),await this.saveItems(),this.newItemName=""},openItemDetails(t){this.itemDialog={show:!0,item:t,isEditing:!1,editedItem:null}},startEditingItem(){this.itemDialog.item&&(this.itemDialog.isEditing=!0,this.itemDialog.editedItem=JSON.parse(JSON.stringify(this.itemDialog.item)))},cancelEditingItem(){this.itemDialog.isEditing=!1,this.itemDialog.editedItem=null},async saveItemChanges(){if(!this.itemDialog.editedItem)return;const t=this.items.findIndex(e=>e.id===this.itemDialog.item.id);if(t!==-1){this.items[t]={...this.itemDialog.editedItem};const e=this.originalItems.findIndex(n=>n.id===this.itemDialog.item.id);e!==-1&&(this.originalItems[e]=JSON.parse(JSON.stringify(this.items[t]))),await this.saveItems(),this.itemDialog.item=this.items[t],this.itemDialog.isEditing=!1,this.itemDialog.editedItem=null}},confirmDeleteItem(t){var n;const e=this.items.find(g=>g.id===t);e&&(this.deleteDialog={show:!0,title:"删除确认",text:`确定要删除 "${e.name}" 吗?`,itemId:t,action:"deleteItem"},this.itemDialog.show&&((n=this.itemDialog.item)==null?void 0:n.id)===t&&(this.itemDialog.show=!1))},confirmDeleteCompleted(){const t=this.items.filter(e=>e.completed).length;this.deleteDialog={show:!0,title:"删除已完成项目",text:`确定要删除所有已完成的项目吗?(共 ${t} 项)`,action:"deleteCompleted"}},confirmDelete(){this.deleteDialog.action==="deleteItem"&&this.deleteDialog.itemId?this.deleteItem(this.deleteDialog.itemId):this.deleteDialog.action==="deleteCompleted"&&this.deleteCompletedItems(),this.deleteDialog.show=!1},async deleteItem(t){this.items=this.items.filter(e=>e.id!==t),this.originalItems=this.originalItems.filter(e=>e.id!==t),await this.saveItems()},async deleteCompletedItems(){this.items=this.items.filter(t=>!t.completed),this.originalItems=this.originalItems.filter(t=>!t.completed),await this.saveItems()},async updateItemStatus(t,e){const n=this.items.find(g=>g.id===t);if(n){n.completed=e;const g=this.originalItems.find(s=>s.id===t);g&&(g.completed=e),await this.saveItems()}},async saveItems(){try{await h.saveData(`classworks-list-${this.listId}`,this.items)}catch(t){console.error("Failed to save items",t)}},randomSort(){const t=this.items.map(e=>{const n=this.hashCode(e.id+this.sortSeed);return{...e,randomValue:this.seededRandom(n)}});t.sort((e,n)=>e.randomValue-n.randomValue),this.items=t.map(e=>{const n={...e};return delete n.randomValue,n}),this.isRandomSorted=!0,this.saveItems()},resetSort(){this.items=JSON.parse(JSON.stringify(this.originalItems)),this.isRandomSorted=!1,this.saveItems()},hashCode(t){let e=0;for(let n=0;n[i(r,{icon:"mdi-arrow-left",variant:"text",onClick:e[0]||(e[0]=a=>t.$router.push("/"))})]),default:l(()=>[s.list&&!s.isRenaming?(m(),p(E,{key:0,class:"text-h6"},{default:l(()=>[o(f(s.list.name),1)]),_:1})):(m(),p(E,{key:1,class:"text-h6"},{default:l(()=>[...e[14]||(e[14]=[o("列表",-1)])]),_:1}))]),_:1}),i(Y,null,{default:l(()=>[M("div",te,[i(r,{border:"",class:"mr-2",icon:"",to:"/list"},{default:l(()=>[i(I,null,{default:l(()=>[...e[15]||(e[15]=[o("mdi-arrow-left",-1)])]),_:1})]),_:1}),s.list&&!s.isRenaming?(m(),u("h1",ie,[o(f(s.list.name)+" ",1),i(r,{border:"",icon:"",size:"small",onClick:d.startRenaming},{default:l(()=>[i(I,null,{default:l(()=>[...e[16]||(e[16]=[o("mdi-pencil",-1)])]),_:1})]),_:1},8,["onClick"])])):s.list&&s.isRenaming?(m(),u("div",le,[i(x,{modelValue:s.newListName,"onUpdate:modelValue":e[1]||(e[1]=a=>s.newListName=a),autofocus:"",class:"mr-2",density:"compact","hide-details":"",label:"列表名称",style:{"min-width":"200px"},onKeyup:P(d.saveListName,["enter"])},null,8,["modelValue","onKeyup"]),i(r,{class:"mr-2",color:"primary",size:"small",onClick:d.saveListName},{default:l(()=>[i(I,null,{default:l(()=>[...e[17]||(e[17]=[o("mdi-check",-1)])]),_:1})]),_:1},8,["onClick"]),i(r,{color:"error",size:"small",onClick:d.cancelRenaming},{default:l(()=>[i(I,null,{default:l(()=>[...e[18]||(e[18]=[o("mdi-close",-1)])]),_:1})]),_:1},8,["onClick"])])):(m(),u("h1",se," 加载中... "))]),i(c,{border:"",class:"mb-5",rounded:"xl"},{default:l(()=>[i(D,{class:"d-flex align-center"},{default:l(()=>[e[21]||(e[21]=o(" 项目列表 ",-1)),i(y),i(K,{modelValue:s.sortType,"onUpdate:modelValue":e[2]||(e[2]=a=>s.sortType=a),mandatory:""},{default:l(()=>[i(r,{value:"default"},{default:l(()=>[i(I,null,{default:l(()=>[...e[19]||(e[19]=[o("mdi-sort-alphabetical-ascending",-1)])]),_:1})]),_:1}),i(r,{value:"completed"},{default:l(()=>[i(I,null,{default:l(()=>[...e[20]||(e[20]=[o("mdi-check-circle-outline",-1)])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),d.sortedItems.length===0?(m(),p(V,{key:0},{default:l(()=>[...e[22]||(e[22]=[o(" 暂无项目,请添加新项目 ",-1)])]),_:1})):(m(),p(R,{key:1,"select-strategy":"leaf"},{default:l(()=>[(m(!0),u(k,null,q(d.sortedItems,(a,w)=>(m(),p(C,{key:a.id,class:T({"text-decoration-line-through":a.completed}),onClick:L=>d.openItemDetails(a)},{prepend:l(()=>[i($,{start:""},{default:l(()=>[i(H,{"model-value":a.completed,"onUpdate:modelValue":L=>d.updateItemStatus(a.id,L),onClick:e[3]||(e[3]=j(()=>{},["stop"]))},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)]),append:l(()=>[o(f(w+1),1)]),default:l(()=>[o(" "+f(a.name)+" ",1),i(v,null,{default:l(()=>[o(f(a.description),1)]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1})),d.sortedItems.length>0?(m(),p(N,{key:2},{default:l(()=>[i(y),i(r,{disabled:!d.hasCompletedItems,color:"error","prepend-icon":"mdi-delete-sweep",onClick:d.confirmDeleteCompleted},{default:l(()=>[...e[23]||(e[23]=[o(" 删除已完成项目 ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})):b("",!0)]),_:1}),i(c,{border:"",class:"mb-5",rounded:"xl"},{default:l(()=>[i(D,null,{default:l(()=>[...e[24]||(e[24]=[o("添加新项目",-1)])]),_:1}),i(V,null,{default:l(()=>[i(x,{modelValue:s.newItemName,"onUpdate:modelValue":e[4]||(e[4]=a=>s.newItemName=a),rules:[a=>!!a||"名称不能为空"],label:"项目名称"},null,8,["modelValue","rules"]),i(r,{disabled:!s.newItemName,color:"primary",onClick:d.addItem},{default:l(()=>[...e[25]||(e[25]=[o(" 添加 ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1}),i(c,{border:"",class:"mb-5",rounded:"xl"},{default:l(()=>[i(D,null,{default:l(()=>[...e[26]||(e[26]=[o("列表排序",-1)])]),_:1}),i(V,null,{default:l(()=>[i(x,{modelValue:s.sortSeed,"onUpdate:modelValue":e[5]||(e[5]=a=>s.sortSeed=a),class:"mb-3",hint:"输入相同的种子值可以得到相同的排序结果",label:"排序种子 (任意数字或文本)","persistent-hint":""},null,8,["modelValue"]),i(r,{class:"mr-2",color:"primary",onClick:d.randomSort},{default:l(()=>[...e[27]||(e[27]=[o(" 随机排序 ",-1)])]),_:1},8,["onClick"]),i(r,{variant:"text",onClick:d.resetSort},{default:l(()=>[...e[28]||(e[28]=[o(" 撤销 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1}),i(A,{modelValue:s.deleteDialog.show,"onUpdate:modelValue":e[7]||(e[7]=a=>s.deleteDialog.show=a),"max-width":"500"},{default:l(()=>[i(c,{border:"",rounded:"xl"},{default:l(()=>[i(D,null,{default:l(()=>[o(f(s.deleteDialog.title),1)]),_:1}),i(V,null,{default:l(()=>[o(f(s.deleteDialog.text),1)]),_:1}),i(N,null,{default:l(()=>[i(y),i(r,{color:"primary",variant:"text",onClick:e[6]||(e[6]=a=>s.deleteDialog.show=!1)},{default:l(()=>[...e[29]||(e[29]=[o(" 取消 ",-1)])]),_:1}),i(r,{color:"error",variant:"text",onClick:d.confirmDelete},{default:l(()=>[...e[30]||(e[30]=[o(" 确认删除 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),i(A,{modelValue:s.itemDialog.show,"onUpdate:modelValue":e[13]||(e[13]=a=>s.itemDialog.show=a),"max-width":"600"},{default:l(()=>[i(c,{border:"",rounded:"xl"},{default:l(()=>[i(D,null,{default:l(()=>[s.itemDialog.isEditing?(m(),u("span",ae,"编辑项目")):(m(),u("span",oe,"项目详情"))]),_:1}),i(V,null,{default:l(()=>[!s.itemDialog.isEditing&&s.itemDialog.item?(m(),u("div",ne,[i(R,null,{default:l(()=>[i(C,null,{default:l(()=>[i(S,{class:"text-subtitle-1 font-weight-bold"},{default:l(()=>[o(f(s.itemDialog.item.name),1)]),_:1}),i(v,null,{default:l(()=>[o(f(s.itemDialog.item.id),1)]),_:1})]),_:1}),i(C,null,{default:l(()=>[i(S,{class:"text-subtitle-1 font-weight-bold"},{default:l(()=>[...e[31]||(e[31]=[o("状态",-1)])]),_:1}),i(v,null,{default:l(()=>[i(Q,{color:s.itemDialog.item.completed?"success":"warning",size:"small"},{default:l(()=>[o(f(s.itemDialog.item.completed?"已完成":"未完成"),1)]),_:1},8,["color"])]),_:1})]),_:1}),s.itemDialog.item.description?(m(),p(C,{key:0},{default:l(()=>[i(S,{class:"text-subtitle-1 font-weight-bold"},{default:l(()=>[...e[32]||(e[32]=[o("描述",-1)])]),_:1}),i(v,null,{default:l(()=>[o(f(s.itemDialog.item.description),1)]),_:1})]),_:1})):b("",!0)]),_:1})])):s.itemDialog.isEditing&&s.itemDialog.item?(m(),u("div",de,[i(x,{modelValue:s.itemDialog.editedItem.name,"onUpdate:modelValue":e[8]||(e[8]=a=>s.itemDialog.editedItem.name=a),class:"mb-3",label:"名称",variant:"outlined"},null,8,["modelValue"]),i(W,{modelValue:s.itemDialog.editedItem.description,"onUpdate:modelValue":e[9]||(e[9]=a=>s.itemDialog.editedItem.description=a),class:"mb-3",label:"描述",rows:"3",variant:"outlined"},null,8,["modelValue"]),i(X,{modelValue:s.itemDialog.editedItem.completed,"onUpdate:modelValue":e[10]||(e[10]=a=>s.itemDialog.editedItem.completed=a),color:"success","hide-details":"",label:"已完成"},null,8,["modelValue"])])):b("",!0)]),_:1}),i(N,null,{default:l(()=>[i(y),s.itemDialog.isEditing?(m(),u(k,{key:1},[i(r,{color:"success",variant:"text",onClick:d.saveItemChanges},{default:l(()=>[...e[36]||(e[36]=[o(" 保存 ",-1)])]),_:1},8,["onClick"]),i(r,{color:"secondary",variant:"text",onClick:d.cancelEditingItem},{default:l(()=>[...e[37]||(e[37]=[o(" 取消 ",-1)])]),_:1},8,["onClick"])],64)):(m(),u(k,{key:0},[i(r,{color:"primary",variant:"text",onClick:d.startEditingItem},{default:l(()=>[...e[33]||(e[33]=[o(" 编辑 ",-1)])]),_:1},8,["onClick"]),i(r,{color:"error",variant:"text",onClick:e[11]||(e[11]=a=>{var w;return d.confirmDeleteItem((w=s.itemDialog.item)==null?void 0:w.id)})},{default:l(()=>[...e[34]||(e[34]=[o(" 删除 ",-1)])]),_:1}),i(r,{color:"secondary",variant:"text",onClick:e[12]||(e[12]=a=>s.itemDialog.show=!1)},{default:l(()=>[...e[35]||(e[35]=[o(" 关闭 ",-1)])]),_:1})],64))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)}const Ve=z(ee,[["render",me]]);export{Ve as default}; diff --git a/assets/_id_-EtvF3n8F.js b/assets/_id_-EtvF3n8F.js new file mode 100644 index 0000000..9627a20 --- /dev/null +++ b/assets/_id_-EtvF3n8F.js @@ -0,0 +1 @@ +import{_ as c}from"./ExamConfigEditor-CcO-5EW7.js";import{_ as u,j as n,o as d,w as r,d as e,t as p,x as v,y as m,B as _}from"./index-GyS8nTIx.js";import{c as g,b as x}from"./VAppBarTitle-CUv9Ys4F.js";import{V as l}from"./VContainer-B1JGY98V.js";import"./dataProvider-CVD6IsoX.js";import"./VAlert-CB2ovGuT.js";import"./VSkeletonLoader-DnBPECWc.js";import"./VBadge-Dfdn66Fe.js";import"./VChip-DsTHqUw0.js";import"./VRow-DtMdTMSo.js";import"./VTextField-xLiM0gib.js";import"./VTextarea-BeSb8uK6.js";import"./VMenu-ClQzjH_h.js";import"./VDatePicker-D6FkGAp6.js";import"./VSheet-DBWP7oOE.js";const E={name:"ExamEditorPage",components:{ExamConfigEditor:c},data(){return{id:this.$route.params.id,saving:!1}},watch:{"$route.params.id"(o){this.id=o}},methods:{async save(){if(this.$refs.editor){this.saving=!0;try{await this.$refs.editor.saveConfig()}finally{this.saving=!1}}},onSaved(){var o,t;(t=(o=this.$toast)==null?void 0:o.success)==null||t.call(o,"保存成功")},onError(o){var t,i;(i=(t=this.$toast)==null?void 0:t.error)==null||i.call(t,o||"保存失败")}}};function C(o,t,i,V,a,s){const f=c;return d(),n(l,{class:"pa-0"},{default:r(()=>[e(g,{elevation:"1"},{prepend:r(()=>[e(m,{icon:"mdi-arrow-left",variant:"text",onClick:t[0]||(t[0]=h=>o.$router.back())})]),default:r(()=>[e(x,{class:"text-h6"},{default:r(()=>[...t[1]||(t[1]=[p(" 编辑考试配置 ",-1)])]),_:1}),e(v),e(m,{loading:a.saving,color:"success","prepend-icon":"mdi-content-save",variant:"outlined",onClick:s.save},{default:r(()=>[...t[2]||(t[2]=[p(" 保存 ",-1)])]),_:1},8,["loading","onClick"])]),_:1}),e(l,{class:"py-4",style:{"max-width":"1200px"}},{default:r(()=>[a.id?(d(),n(f,{key:0,ref:"editor","config-id":a.id,onError:s.onError,onSaved:s.onSaved},null,8,["config-id","onError","onSaved"])):_("",!0)]),_:1})]),_:1})}const F=u(E,[["render",C]]);export{F as default}; diff --git a/assets/authorize-CNmNl-fx.js b/assets/authorize-D8xTRwK6.js similarity index 87% rename from assets/authorize-CNmNl-fx.js rename to assets/authorize-D8xTRwK6.js index 5f7164e..9b98a25 100644 --- a/assets/authorize-CNmNl-fx.js +++ b/assets/authorize-D8xTRwK6.js @@ -1 +1 @@ -import{av as V,aw as g,$ as c,aj as _,s as i,k,j as u,o as l,w as e,d as a,l as y,B as d,q as C,t as f,C as m,z as h,i as x,al as B,M as T,x as w,y as N}from"./index-BBVdlVQD.js";import{V as S,a as j}from"./VRow-IosHPrmj.js";import{V as R}from"./VContainer-OExp5t5c.js";const b={__name:"authorize",setup(q){const p=V(),n=g(),s=c("processing"),r=c("正在验证授权信息...");_(async()=>{try{const t=p.query.token;if(!t){s.value="error",r.value="未获取到授权令牌";return}i("server.kvToken",t);const o=k("device.uuid");o&&o!=="00000000-0000-4000-8000-000000000000"?(i("device.uuid","00000000-0000-4000-8000-000000000000"),r.value="授权成功!已完成数据迁移。"):r.value="授权成功!",s.value="success",n.push("/")}catch(t){console.error("授权处理失败:",t),s.value="error",r.value=`授权失败: ${t.message}`}});const v=()=>{n.push("/")};return(t,o)=>(l(),u(R,{class:"fill-height",fluid:""},{default:e(()=>[a(S,{align:"center",justify:"center"},{default:e(()=>[a(j,{cols:"12",md:"6",sm:"8"},{default:e(()=>[a(y,null,{default:e(()=>[a(C,{class:"text-h5"},{default:e(()=>[f(m(s.value==="processing"?"正在处理授权...":s.value==="success"?"授权成功":"授权失败"),1)]),_:1}),a(h,null,{default:e(()=>[s.value==="processing"?(l(),u(B,{key:0,class:"mb-4",color:"primary",indeterminate:""})):d("",!0),x("p",null,m(r.value),1)]),_:1}),s.value!=="processing"?(l(),u(T,{key:0},{default:e(()=>[a(w),a(N,{color:"primary",onClick:v},{default:e(()=>[...o[0]||(o[0]=[f("返回首页",-1)])]),_:1})]),_:1})):d("",!0)]),_:1})]),_:1})]),_:1})]),_:1}))}};export{b as default}; +import{av as V,aw as g,$ as c,aj as _,s as i,k,j as u,o as l,w as e,d as a,l as y,B as d,q as C,t as f,C as m,z as h,i as x,al as B,M as T,x as w,y as N}from"./index-GyS8nTIx.js";import{V as S,a as j}from"./VRow-DtMdTMSo.js";import{V as R}from"./VContainer-B1JGY98V.js";const b={__name:"authorize",setup(q){const p=V(),n=g(),s=c("processing"),r=c("正在验证授权信息...");_(async()=>{try{const t=p.query.token;if(!t){s.value="error",r.value="未获取到授权令牌";return}i("server.kvToken",t);const o=k("device.uuid");o&&o!=="00000000-0000-4000-8000-000000000000"?(i("device.uuid","00000000-0000-4000-8000-000000000000"),r.value="授权成功!已完成数据迁移。"):r.value="授权成功!",s.value="success",n.push("/")}catch(t){console.error("授权处理失败:",t),s.value="error",r.value=`授权失败: ${t.message}`}});const v=()=>{n.push("/")};return(t,o)=>(l(),u(R,{class:"fill-height",fluid:""},{default:e(()=>[a(S,{align:"center",justify:"center"},{default:e(()=>[a(j,{cols:"12",md:"6",sm:"8"},{default:e(()=>[a(y,null,{default:e(()=>[a(C,{class:"text-h5"},{default:e(()=>[f(m(s.value==="processing"?"正在处理授权...":s.value==="success"?"授权成功":"授权失败"),1)]),_:1}),a(h,null,{default:e(()=>[s.value==="processing"?(l(),u(B,{key:0,class:"mb-4",color:"primary",indeterminate:""})):d("",!0),x("p",null,m(r.value),1)]),_:1}),s.value!=="processing"?(l(),u(T,{key:0},{default:e(()=>[a(w),a(N,{color:"primary",onClick:v},{default:e(()=>[...o[0]||(o[0]=[f("返回首页",-1)])]),_:1})]),_:1})):d("",!0)]),_:1})]),_:1})]),_:1})]),_:1}))}};export{b as default}; diff --git a/assets/axios-CF6XU-xP.js b/assets/axios-CF6XU-xP.js deleted file mode 100644 index e243e6b..0000000 --- a/assets/axios-CF6XU-xP.js +++ /dev/null @@ -1,6 +0,0 @@ -import{k as Ee,cl as pn}from"./index-BBVdlVQD.js";const Ce=(e,t)=>t.some(n=>e instanceof n);let Qe,Ye;function mn(){return Qe||(Qe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function yn(){return Ye||(Ye=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Be=new WeakMap,Se=new WeakMap,de=new WeakMap;function bn(e){const t=new Promise((n,r)=>{const s=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{n(H(e.result)),s()},o=()=>{r(e.error),s()};e.addEventListener("success",i),e.addEventListener("error",o)});return de.set(t,e),t}function wn(e){if(Be.has(e))return;const t=new Promise((n,r)=>{const s=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{n(),s()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),s()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});Be.set(e,t)}let Pe={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Be.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return H(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function At(e){Pe=e(Pe)}function gn(e){return yn().includes(e)?function(...t){return e.apply(De(this),t),H(this.request)}:function(...t){return H(e.apply(De(this),t))}}function En(e){return typeof e=="function"?gn(e):(e instanceof IDBTransaction&&wn(e),Ce(e,mn())?new Proxy(e,Pe):e)}function H(e){if(e instanceof IDBRequest)return bn(e);if(Se.has(e))return Se.get(e);const t=En(e);return t!==e&&(Se.set(e,t),de.set(t,e)),t}const De=e=>de.get(e);function Ss(e,t,{blocked:n,upgrade:r,blocking:s,terminated:i}={}){const o=indexedDB.open(e,t),c=H(o);return r&&o.addEventListener("upgradeneeded",f=>{r(H(o.result),f.oldVersion,f.newVersion,H(o.transaction),f)}),n&&o.addEventListener("blocked",f=>n(f.oldVersion,f.newVersion,f)),c.then(f=>{i&&f.addEventListener("close",()=>i()),s&&f.addEventListener("versionchange",u=>s(u.oldVersion,u.newVersion,u))}).catch(()=>{}),c}const Sn=["get","getKey","getAll","getAllKeys","count"],xn=["put","add","delete","clear"],xe=new Map;function et(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(xe.get(t))return xe.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,s=xn.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(s||Sn.includes(n)))return;const i=async function(o,...c){const f=this.transaction(o,s?"readwrite":"readonly");let u=f.store;return r&&(u=u.index(c.shift())),(await Promise.all([u[n](...c),s&&f.done]))[0]};return xe.set(t,i),i}At(e=>({...e,get:(t,n,r)=>et(t,n)||e.get(t,n,r),has:(t,n)=>!!et(t,n)||e.has(t,n)}));const Rn=["continue","continuePrimaryKey","advance"],tt={},Ne=new WeakMap,Ot=new WeakMap,An={get(e,t){if(!Rn.includes(t))return e[t];let n=tt[t];return n||(n=tt[t]=function(...r){Ne.set(this,Ot.get(this)[t](...r))}),n}};async function*On(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const n=new Proxy(t,An);for(Ot.set(n,t),de.set(n,De(t));t;)yield n,t=await(Ne.get(n)||t.continue()),Ne.delete(n)}function nt(e,t){return t===Symbol.asyncIterator&&Ce(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Ce(e,[IDBIndex,IDBObjectStore])}At(e=>({...e,get(t,n,r){return nt(t,n)?On:e.get(t,n,r)},has(t,n){return nt(t,n)||e.has(t,n)}}));function Tt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tn}=Object.prototype,{getPrototypeOf:Me}=Object,{iterator:he,toStringTag:Ct}=Symbol,pe=(e=>t=>{const n=Tn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>pe(t)===e),me=e=>t=>typeof t===e,{isArray:J}=Array,V=me("undefined");function Q(e){return e!==null&&!V(e)&&e.constructor!==null&&!V(e.constructor)&&O(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bt=N("ArrayBuffer");function Cn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bt(e.buffer),t}const Bn=me("string"),O=me("function"),Pt=me("number"),Y=e=>e!==null&&typeof e=="object",Pn=e=>e===!0||e===!1,ae=e=>{if(pe(e)!=="object")return!1;const t=Me(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ct in e)&&!(he in e)},Dn=e=>{if(!Y(e)||Q(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Nn=N("Date"),Fn=N("File"),_n=N("Blob"),Un=N("FileList"),Ln=e=>Y(e)&&O(e.pipe),kn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||O(e.append)&&((t=pe(e))==="formdata"||t==="object"&&O(e.toString)&&e.toString()==="[object FormData]"))},In=N("URLSearchParams"),[jn,Mn,Hn,qn]=["ReadableStream","Request","Response","Headers"].map(N),$n=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ee(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),J(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const M=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Nt=e=>!V(e)&&e!==M;function Fe(){const{caseless:e,skipUndefined:t}=Nt(this)&&this||{},n={},r=(s,i)=>{const o=e&&Dt(n,i)||i;ae(n[o])&&ae(s)?n[o]=Fe(n[o],s):ae(s)?n[o]=Fe({},s):J(s)?n[o]=s.slice():(!t||!V(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s(ee(t,(s,i)=>{n&&O(s)?e[i]=Tt(s,n):e[i]=s},{allOwnKeys:r}),e),zn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Jn=(e,t,n,r)=>{let s,i,o;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&Me(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Wn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Kn=e=>{if(!e)return null;if(J(e))return e;let t=e.length;if(!Pt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Xn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Me(Uint8Array)),Zn=(e,t)=>{const r=(e&&e[he]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Gn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qn=N("HTMLFormElement"),Yn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),rt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),er=N("RegExp"),Ft=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ee(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},tr=e=>{Ft(e,(t,n)=>{if(O(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(O(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nr=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return J(e)?r(e):r(String(e).split(t)),n},rr=()=>{},sr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function or(e){return!!(e&&O(e.append)&&e[Ct]==="FormData"&&e[he])}const ir=e=>{const t=new Array(10),n=(r,s)=>{if(Y(r)){if(t.indexOf(r)>=0)return;if(Q(r))return r;if(!("toJSON"in r)){t[s]=r;const i=J(r)?[]:{};return ee(r,(o,c)=>{const f=n(o,s+1);!V(f)&&(i[c]=f)}),t[s]=void 0,i}}return r};return n(e,0)},ar=N("AsyncFunction"),cr=e=>e&&(Y(e)||O(e))&&O(e.then)&&O(e.catch),_t=((e,t)=>e?setImmediate:t?((n,r)=>(M.addEventListener("message",({source:s,data:i})=>{s===M&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),M.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",O(M.postMessage)),ur=typeof queueMicrotask<"u"?queueMicrotask.bind(M):typeof process<"u"&&process.nextTick||_t,lr=e=>e!=null&&O(e[he]),a={isArray:J,isArrayBuffer:Bt,isBuffer:Q,isFormData:kn,isArrayBufferView:Cn,isString:Bn,isNumber:Pt,isBoolean:Pn,isObject:Y,isPlainObject:ae,isEmptyObject:Dn,isReadableStream:jn,isRequest:Mn,isResponse:Hn,isHeaders:qn,isUndefined:V,isDate:Nn,isFile:Fn,isBlob:_n,isRegExp:er,isFunction:O,isStream:Ln,isURLSearchParams:In,isTypedArray:Xn,isFileList:Un,forEach:ee,merge:Fe,extend:vn,trim:$n,stripBOM:zn,inherits:Vn,toFlatObject:Jn,kindOf:pe,kindOfTest:N,endsWith:Wn,toArray:Kn,forEachEntry:Zn,matchAll:Gn,isHTMLForm:Qn,hasOwnProperty:rt,hasOwnProp:rt,reduceDescriptors:Ft,freezeMethods:tr,toObjectSet:nr,toCamelCase:Yn,noop:rr,toFiniteNumber:sr,findKey:Dt,global:M,isContextDefined:Nt,isSpecCompliantForm:or,toJSONObject:ir,isAsyncFn:ar,isThenable:cr,setImmediate:_t,asap:ur,isIterable:lr};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Ut=y.prototype,Lt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Lt[e]={value:e}});Object.defineProperties(y,Lt);Object.defineProperty(Ut,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,i)=>{const o=Object.create(Ut);a.toFlatObject(e,o,function(l){return l!==Error.prototype},u=>u!=="isAxiosError");const c=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return y.call(o,c,f,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const fr=null;function _e(e){return a.isPlainObject(e)||a.isArray(e)}function kt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function st(e,t,n){return e?e.concat(t).map(function(s,i){return s=kt(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function dr(e){return a.isArray(e)&&!e.some(_e)}const hr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ye(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!a.isUndefined(h[m])});const r=n.metaTokens,s=n.visitor||l,i=n.dots,o=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(a.isBoolean(d))return d.toString();if(!f&&a.isBlob(d))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function l(d,m,h){let g=d;if(d&&!h&&typeof d=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&dr(d)||(a.isFileList(d)||a.endsWith(m,"[]"))&&(g=a.toArray(d)))return m=kt(m),g.forEach(function(E,A){!(a.isUndefined(E)||E===null)&&t.append(o===!0?st([m],A,i):o===null?m:m+"[]",u(E))}),!1}return _e(d)?!0:(t.append(st(h,m,i),u(d)),!1)}const p=[],b=Object.assign(hr,{defaultVisitor:l,convertValue:u,isVisitable:_e});function x(d,m){if(!a.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(d),a.forEach(d,function(g,C){(!(a.isUndefined(g)||g===null)&&s.call(t,g,a.isString(C)?C.trim():C,m,b))===!0&&x(g,m?m.concat(C):[C])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return x(e),t}function ot(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function He(e,t){this._pairs=[],e&&ye(e,this,t)}const It=He.prototype;It.append=function(t,n){this._pairs.push([t,n])};It.toString=function(t){const n=t?function(r){return t.call(this,r,ot)}:ot;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function pr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function jt(e,t,n){if(!t)return e;const r=n&&n.encode||pr;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=a.isURLSearchParams(t)?t.toString():new He(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class it{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Mt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mr=typeof URLSearchParams<"u"?URLSearchParams:He,yr=typeof FormData<"u"?FormData:null,br=typeof Blob<"u"?Blob:null,wr={isBrowser:!0,classes:{URLSearchParams:mr,FormData:yr,Blob:br},protocols:["http","https","file","blob","url","data"]},qe=typeof window<"u"&&typeof document<"u",Ue=typeof navigator=="object"&&navigator||void 0,gr=qe&&(!Ue||["ReactNative","NativeScript","NS"].indexOf(Ue.product)<0),Er=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sr=qe&&window.location.href||"http://localhost",xr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qe,hasStandardBrowserEnv:gr,hasStandardBrowserWebWorkerEnv:Er,navigator:Ue,origin:Sr},Symbol.toStringTag,{value:"Module"})),R={...xr,...wr};function Rr(e,t){return ye(e,new R.classes.URLSearchParams,{visitor:function(n,r,s,i){return R.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Ar(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Or(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r=n.length;return o=!o&&a.isArray(s)?s.length:o,f?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=Or(s[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Ar(r),s,n,0)}),n}return null}function Tr(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const te={transitional:Mt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Ht(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Rr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ye(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Tr(t)):t}],transformResponse:[function(t){const n=this.transitional||te.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:R.classes.FormData,Blob:R.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{te.headers[e]={}});const Cr=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Br=e=>{const t={};let n,r,s;return e&&e.split(` -`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Cr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},at=Symbol("internals");function Z(e){return e&&String(e).trim().toLowerCase()}function ce(e){return e===!1||e==null?e:a.isArray(e)?e.map(ce):String(e)}function Pr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Dr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Re(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Nr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Fr(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let T=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(c,f,u){const l=Z(f);if(!l)throw new Error("header name must be a non-empty string");const p=a.findKey(s,l);(!p||s[p]===void 0||u===!0||u===void 0&&s[p]!==!1)&&(s[p||f]=ce(c))}const o=(c,f)=>a.forEach(c,(u,l)=>i(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(a.isString(t)&&(t=t.trim())&&!Dr(t))o(Br(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,u;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[u=l[0]]=(f=c[u])?a.isArray(f)?[...f,l[1]]:[f,l[1]]:l[1]}o(c,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Z(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Pr(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Z(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Re(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=Z(o),o){const c=a.findKey(r,o);c&&(!n||Re(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Re(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,i)=>{const o=a.findKey(r,i);if(o){n[o]=ce(s),delete n[i];return}const c=t?Nr(i):String(i).trim();c!==i&&delete n[i],n[c]=ce(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[at]=this[at]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=Z(o);r[c]||(Fr(s,o),r[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};T.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(T.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(T);function Ae(e,t){const n=this||te,r=t||n,s=T.from(r.headers);let i=r.data;return a.forEach(e,function(c){i=c.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function qt(e){return!!(e&&e.__CANCEL__)}function W(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(W,y,{__CANCEL__:!0});function $t(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function _r(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ur(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=r[i];o||(o=u),n[s]=f,r[s]=u;let p=i,b=0;for(;p!==s;)b+=n[p++],p=p%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-o{n=l,s=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const l=Date.now(),p=l-n;p>=r?o(u,l):(s=u,i||(i=setTimeout(()=>{i=null,o(s)},r-p)))},()=>s&&o(s)]}const fe=(e,t,n=3)=>{let r=0;const s=Ur(50,250);return Lr(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,f=o-r,u=s(f),l=o<=c;r=o;const p={loaded:o,total:c,progress:c?o/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-o)/u:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},ct=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ut=e=>(...t)=>a.asap(()=>e(...t)),kr=R.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,R.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(R.origin),R.navigator&&/(msie|trident)/i.test(R.navigator.userAgent)):()=>!0,Ir=R.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),i===!0&&c.push("secure"),a.isString(o)&&c.push(`SameSite=${o}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function jr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Mr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vt(e,t,n){let r=!jr(t);return e&&(r||n==!1)?Mr(e,t):t}const lt=e=>e instanceof T?{...e}:e;function $(e,t){t=t||{};const n={};function r(u,l,p,b){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:b},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,p,b){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,p,b)}else return r(u,l,p,b)}function i(u,l){if(!a.isUndefined(l))return r(void 0,l)}function o(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,p){if(p in t)return r(u,l);if(p in e)return r(void 0,u)}const f={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(u,l,p)=>s(lt(u),lt(l),p,!0)};return a.forEach(Object.keys({...e,...t}),function(l){const p=f[l]||s,b=p(e[l],t[l],l);a.isUndefined(b)&&p!==c||(n[l]=b)}),n}const zt=e=>{const t=$({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=t;if(t.headers=o=T.from(o),t.url=jt(vt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(R.hasStandardBrowserEnv||R.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const f=n.getHeaders(),u=["content-type","content-length"];Object.entries(f).forEach(([l,p])=>{u.includes(l.toLowerCase())&&o.set(l,p)})}}if(R.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&kr(t.url))){const f=s&&i&&Ir.read(i);f&&o.set(s,f)}return t},Hr=typeof XMLHttpRequest<"u",qr=Hr&&function(e){return new Promise(function(n,r){const s=zt(e);let i=s.data;const o=T.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,p,b,x,d;function m(){x&&x(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function g(){if(!h)return;const E=T.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),P={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:E,config:e,request:h};$t(function(B){n(B),m()},function(B){r(B),m()},P),h=null}"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(g)},h.onabort=function(){h&&(r(new y("Request aborted",y.ECONNABORTED,e,h)),h=null)},h.onerror=function(A){const P=A&&A.message?A.message:"Network Error",I=new y(P,y.ERR_NETWORK,e,h);I.event=A||null,r(I),h=null},h.ontimeout=function(){let A=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const P=s.transitional||Mt;s.timeoutErrorMessage&&(A=s.timeoutErrorMessage),r(new y(A,P.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,h)),h=null},i===void 0&&o.setContentType(null),"setRequestHeader"in h&&a.forEach(o.toJSON(),function(A,P){h.setRequestHeader(P,A)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([b,d]=fe(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([p,x]=fe(f),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",x)),(s.cancelToken||s.signal)&&(l=E=>{h&&(r(!E||E.type?new W(null,e,h):E),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const C=_r(s.url);if(C&&R.protocols.indexOf(C)===-1){r(new y("Unsupported protocol "+C+":",y.ERR_BAD_REQUEST,e));return}h.send(i||null)})},$r=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof y?l:new W(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},vr=function*(e,t){let n=e.byteLength;if(n{const s=zr(e,t);let i=0,o,c=f=>{o||(o=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let p=l.byteLength;if(n){let b=i+=p;n(b)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},dt=64*1024,{isFunction:oe}=a,Jr=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:ht,TextEncoder:pt}=a.global,mt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Wr=e=>{e=a.merge.call({skipUndefined:!0},Jr,e);const{fetch:t,Request:n,Response:r}=e,s=t?oe(t):typeof fetch=="function",i=oe(n),o=oe(r);if(!s)return!1;const c=s&&oe(ht),f=s&&(typeof pt=="function"?(d=>m=>d.encode(m))(new pt):async d=>new Uint8Array(await new n(d).arrayBuffer())),u=i&&c&&mt(()=>{let d=!1;const m=new n(R.origin,{body:new ht,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!m}),l=o&&c&&mt(()=>a.isReadableStream(new r("").body)),p={stream:l&&(d=>d.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!p[d]&&(p[d]=(m,h)=>{let g=m&&m[d];if(g)return g.call(m);throw new y(`Response type '${d}' is not supported`,y.ERR_NOT_SUPPORT,h)})});const b=async d=>{if(d==null)return 0;if(a.isBlob(d))return d.size;if(a.isSpecCompliantForm(d))return(await new n(R.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(a.isArrayBufferView(d)||a.isArrayBuffer(d))return d.byteLength;if(a.isURLSearchParams(d)&&(d=d+""),a.isString(d))return(await f(d)).byteLength},x=async(d,m)=>{const h=a.toFiniteNumber(d.getContentLength());return h??b(m)};return async d=>{let{url:m,method:h,data:g,signal:C,cancelToken:E,timeout:A,onDownloadProgress:P,onUploadProgress:I,responseType:B,headers:we,withCredentials:ne="same-origin",fetchOptions:Je}=zt(d),We=t||fetch;B=B?(B+"").toLowerCase():"text";let re=$r([C,E&&E.toAbortSignal()],A),X=null;const j=re&&re.unsubscribe&&(()=>{re.unsubscribe()});let Ke;try{if(I&&u&&h!=="get"&&h!=="head"&&(Ke=await x(we,g))!==0){let k=new n(m,{method:"POST",body:g,duplex:"half"}),v;if(a.isFormData(g)&&(v=k.headers.get("content-type"))&&we.setContentType(v),k.body){const[ge,se]=ct(Ke,fe(ut(I)));g=ft(k.body,dt,ge,se)}}a.isString(ne)||(ne=ne?"include":"omit");const F=i&&"credentials"in n.prototype,Xe={...Je,signal:re,method:h.toUpperCase(),headers:we.normalize().toJSON(),body:g,duplex:"half",credentials:F?ne:void 0};X=i&&new n(m,Xe);let L=await(i?We(X,Je):We(m,Xe));const Ze=l&&(B==="stream"||B==="response");if(l&&(P||Ze&&j)){const k={};["status","statusText","headers"].forEach(Ge=>{k[Ge]=L[Ge]});const v=a.toFiniteNumber(L.headers.get("content-length")),[ge,se]=P&&ct(v,fe(ut(P),!0))||[];L=new r(ft(L.body,dt,ge,()=>{se&&se(),j&&j()}),k)}B=B||"text";let hn=await p[a.findKey(p,B)||"text"](L,d);return!Ze&&j&&j(),await new Promise((k,v)=>{$t(k,v,{data:hn,headers:T.from(L.headers),status:L.status,statusText:L.statusText,config:d,request:X})})}catch(F){throw j&&j(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,d,X),{cause:F.cause||F}):y.from(F,F&&F.code,d,X)}}},Kr=new Map,Vt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,c=o,f,u,l=Kr;for(;c--;)f=i[c],u=l.get(f),u===void 0&&l.set(f,u=c?new Map:Wr(t)),l=u;return u};Vt();const $e={http:fr,xhr:qr,fetch:{get:Vt}};a.forEach($e,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yt=e=>`- ${e}`,Xr=e=>a.isFunction(e)||e===null||e===!1;function Zr(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o`adapter ${f} `+(u===!1?"is not supported by the environment":"is not available in the build"));let c=n?o.length>1?`since : -`+o.map(yt).join(` -`):" "+yt(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const Jt={getAdapter:Zr,adapters:$e};function Oe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new W(null,e)}function bt(e){return Oe(e),e.headers=T.from(e.headers),e.data=Ae.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jt.getAdapter(e.adapter||te.adapter,e)(e).then(function(r){return Oe(e),r.data=Ae.call(e,e.transformResponse,r),r.headers=T.from(r.headers),r},function(r){return qt(r)||(Oe(e),r&&r.response&&(r.response.data=Ae.call(e,e.transformResponse,r.response),r.response.headers=T.from(r.response.headers))),Promise.reject(r)})}const Wt="1.13.2",be={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{be[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wt={};be.transitional=function(t,n,r){function s(i,o){return"[Axios v"+Wt+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,c)=>{if(t===!1)throw new y(s(o," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!wt[o]&&(wt[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,c):!0}};be.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Gr(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const c=e[i],f=c===void 0||o(c,i,e);if(f!==!0)throw new y("option "+i+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}const ue={assertOptions:Gr,validators:be},_=ue.validators;let q=class{constructor(t){this.defaults=t||{},this.interceptors={request:new it,response:new it}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&ue.assertOptions(r,{silentJSONParsing:_.transitional(_.boolean),forcedJSONParsing:_.transitional(_.boolean),clarifyTimeoutError:_.transitional(_.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:ue.assertOptions(s,{encode:_.function,serialize:_.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ue.assertOptions(n,{baseUrl:_.spelling("baseURL"),withXsrfToken:_.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=T.concat(o,i);const c=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let l,p=0,b;if(!f){const d=[bt.bind(this),void 0];for(d.unshift(...c),d.push(...u),b=d.length,l=Promise.resolve(n);p{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{r.subscribe(c),i=c}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,c){r.reason||(r.reason=new W(i,o,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Kt(function(s){t=s}),cancel:t}}};function Yr(e){return function(n){return e.apply(null,n)}}function es(e){return a.isObject(e)&&e.isAxiosError===!0}const Le={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Le).forEach(([e,t])=>{Le[t]=e});function Xt(e){const t=new q(e),n=Tt(q.prototype.request,t);return a.extend(n,q.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Xt($(e,s))},n}const w=Xt(te);w.Axios=q;w.CanceledError=W;w.CancelToken=Qr;w.isCancel=qt;w.VERSION=Wt;w.toFormData=ye;w.AxiosError=y;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=Yr;w.isAxiosError=es;w.mergeConfig=$;w.AxiosHeaders=T;w.formToJSON=e=>Ht(a.isHTMLForm(e)?new FormData(e):e);w.getAdapter=Jt.getAdapter;w.HttpStatusCode=Le;w.default=w;const{Axios:As,AxiosError:Os,CanceledError:Ts,isCancel:Cs,CancelToken:Bs,VERSION:Ps,all:Ds,Cancel:Ns,isAxiosError:Fs,spread:_s,toFormData:Us,AxiosHeaders:Ls,HttpStatusCode:ks,formToJSON:Is,getAdapter:js,mergeConfig:Ms}=w;function ts(e,t){return"headers"in e&&typeof e.headers=="object"&&!Array.isArray(e.headers)?Te(e.headers):"getHeaders"in e&&typeof e.getHeaders=="function"?Te(e.getHeaders()):Te(e)}function Te(e,t){const n=U(e,"ratelimit");if(n)return os(n);let r;if(U(e,"ratelimit-remaining"))r="ratelimit-";else if(U(e,"x-ratelimit-remaining"))r="x-ratelimit-";else if(U(e,"x-rate-limit-remaining"))r="x-rate-limit-";else return;const s=D(U(e,`${r}limit`)),i=D(U(e,`${r}used`))||D(U(e,`${r}observed`)),o=D(U(e,`${r}remaining`));let c;const f=U(e,`${r}reset`);switch(void 0){case"date":{c=Zt(f??"");break}case"unix":{c=ke(f??"");break}case"seconds":{c=Gt(f??"");break}case"milliseconds":{c=is(f??"");break}default:if(f)c=cs(f);else{const l=U(e,"retry-after");l&&(c=ke(l))}}return{limit:Number.isNaN(s)?i+o:s,used:Number.isNaN(i)?s-o:i,remaining:o,reset:c}}var ns=/limit\s*=\s*(\d+)/i,rs=/remaining\s*=\s*(\d+)/i,ss=/reset\s*=\s*(\d+)/i;function os(e){var t,n,r;const s=D((t=ns.exec(e))==null?void 0:t[1]),i=D((n=rs.exec(e))==null?void 0:n[1]),o=D((r=ss.exec(e))==null?void 0:r[1]),c=ve(o);return{limit:s,used:s-i,remaining:i,reset:c}}function ve(e){const t=new Date;return t.setSeconds(t.getSeconds()+e),t}function D(e){return typeof e=="number"?e:Number.parseInt(e??"",10)}function U(e,t){var n;if("get"in e&&typeof e.get=="function")return(n=e.get(t))!=null?n:void 0;if(t in e&&typeof e[t]=="string")return e[t]}function Zt(e){return new Date(e)}function ke(e){const t=D(e);return new Date(t*1e3)}function Gt(e){const t=D(e);return ve(t)}function is(e){const t=D(e);return ve(t/1e3)}var as=/[a-z]/i;function cs(e){if(as.test(e))return Zt(e);const t=D(e);return t&&t>1e9?ke(t):Gt(t)}const Qt="3.7.8",us=Qt,K=typeof Buffer=="function",gt=typeof TextDecoder=="function"?new TextDecoder:void 0,Et=typeof TextEncoder=="function"?new TextEncoder:void 0,ls="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",G=Array.prototype.slice.call(ls),ie=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(G),fs=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,S=String.fromCharCode.bind(String),St=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Yt=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),en=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),tn=e=>{let t,n,r,s,i="";const o=e.length%3;for(let c=0;c255||(r=e.charCodeAt(c++))>255||(s=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|s,i+=G[t>>18&63]+G[t>>12&63]+G[t>>6&63]+G[t&63]}return o?i.slice(0,o-3)+"===".substring(o):i},ze=typeof btoa=="function"?e=>btoa(e):K?e=>Buffer.from(e,"binary").toString("base64"):tn,Ie=K?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,s=e.length;rt?Yt(Ie(e)):Ie(e),ds=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?S(192|t>>>6)+S(128|t&63):S(224|t>>>12&15)+S(128|t>>>6&63)+S(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return S(240|t>>>18&7)+S(128|t>>>12&63)+S(128|t>>>6&63)+S(128|t&63)}},hs=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,nn=e=>e.replace(hs,ds),xt=K?e=>Buffer.from(e,"utf8").toString("base64"):Et?e=>Ie(Et.encode(e)):e=>ze(nn(e)),z=(e,t=!1)=>t?Yt(xt(e)):xt(e),Rt=e=>z(e,!0),ps=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ms=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return S((n>>>10)+55296)+S((n&1023)+56320);case 3:return S((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return S((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},rn=e=>e.replace(ps,ms),sn=e=>{if(e=e.replace(/\s+/g,""),!fs.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n,r,s=[];for(let i=0;i>16&255)):r===64?s.push(S(t>>16&255,t>>8&255)):s.push(S(t>>16&255,t>>8&255,t&255));return s.join("")},Ve=typeof atob=="function"?e=>atob(en(e)):K?e=>Buffer.from(e,"base64").toString("binary"):sn,on=K?e=>St(Buffer.from(e,"base64")):e=>St(Ve(e).split("").map(t=>t.charCodeAt(0))),an=e=>on(cn(e)),ys=K?e=>Buffer.from(e,"base64").toString("utf8"):gt?e=>gt.decode(on(e)):e=>rn(Ve(e)),cn=e=>en(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),je=e=>ys(cn(e)),bs=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},un=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),ln=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,un(n));e("fromBase64",function(){return je(this)}),e("toBase64",function(t){return z(this,t)}),e("toBase64URI",function(){return z(this,!0)}),e("toBase64URL",function(){return z(this,!0)}),e("toUint8Array",function(){return an(this)})},fn=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,un(n));e("toBase64",function(t){return le(this,t)}),e("toBase64URI",function(){return le(this,!0)}),e("toBase64URL",function(){return le(this,!0)})},ws=()=>{ln(),fn()},gs={version:Qt,VERSION:us,atob:Ve,atobPolyfill:sn,btoa:ze,btoaPolyfill:tn,fromBase64:je,toBase64:z,encode:z,encodeURI:Rt,encodeURL:Rt,utob:nn,btou:rn,decode:je,isValid:bs,fromUint8Array:le,toUint8Array:an,extendString:ln,extendUint8Array:fn,extendBuiltins:ws},dn=w.create({timeout:1e4});dn.interceptors.request.use(e=>{const t=Ee("server.provider");if(t==="kv-server"||t==="classworkscloud"){const n=Ee("server.kvToken");if(n)e.headers["x-app-token"]=n;else{const r=Ee("server.siteKey");r&&(e.headers["x-site-key"]=gs.encode(r))}}return e},e=>(console.log(e),Promise.reject(e)));dn.interceptors.response.use(e=>e,e=>{if(e.response&&e.response.status===429)try{const t=ts(e.response);t&&pn.show(t.reset,e.config.url,e.config.method.toUpperCase())}catch(t){console.error("解析限速头信息失败:",t)}return Promise.reject(e)});export{dn as a,w as b,gs as g,Ss as o}; diff --git a/assets/cses2wakeup-Cprhtj0i.js b/assets/cses2wakeup-Cprhtj0i.js new file mode 100644 index 0000000..72ce5e2 --- /dev/null +++ b/assets/cses2wakeup-Cprhtj0i.js @@ -0,0 +1,7 @@ +import{p as le,a5 as z,g as ye,Z as et,a3 as Ne,a4 as Re,ax as we,$ as Q,ay as M,a0 as tt,a6 as st,c as pe,az as lt,d as n,i as y,F as C,E as I,e as Fe,ad as Me,a7 as at,aA as it,a2 as rt,aB as Le,y as L,n as nt,ae as ot,aC as dt,aD as ut,aE as ct,aF as mt,aG as ft,aH as ht,aI as ce,m as yt,aJ as pt,aK as bt,aL as gt,_ as vt,j as S,o as m,w as r,l as q,q as me,t as c,v as j,Y as kt,z as te,B as T,A as p,C as b,D as Tt,G as R,aM as wt,M as xt,x as Dt}from"./index-GyS8nTIx.js";import{V as xe,a as X}from"./VRow-DtMdTMSo.js";import{V as K}from"./VAlert-CB2ovGuT.js";import{V as ze,a as Ct,b as Vt,c as De,d as fe,e as St,f as jt}from"./VTabsWindowItem-ClJOXEhz.js";import{V as W,a as Ce,m as Pt,b as At}from"./VChip-DsTHqUw0.js";import{V as he,a as Ve}from"./VBadge-Dfdn66Fe.js";import{V as Et}from"./VTextarea-BeSb8uK6.js";import{a as Bt,b as Se,c as je,d as Nt,e as Rt,f as Ft,V as Mt}from"./VTextField-xLiM0gib.js";import{V as Pe}from"./VSwitch-COsJOhk2.js";import{V as Lt}from"./VSkeletonLoader-DnBPECWc.js";import{a as zt}from"./filter-D0RnlzqQ.js";import{V as Wt}from"./VContainer-B1JGY98V.js";import"./VCheckboxBtn-Cjkf0n-9.js";import"./VMenu-ClQzjH_h.js";function It(){function t(o){var s,i;return[...((s=o.dataTransfer)==null?void 0:s.items)??[]].filter(l=>l.kind==="file").map(l=>l.webkitGetAsEntry()).filter(Boolean).length>0||[...((i=o.dataTransfer)==null?void 0:i.files)??[]].length>0}async function e(o){var i,l;const a=[],s=[...((i=o.dataTransfer)==null?void 0:i.items)??[]].filter(d=>d.kind==="file").map(d=>d.webkitGetAsEntry()).filter(Boolean);if(s.length)for(const d of s){const f=await We(d,Ie(".",d));a.push(...f.map(h=>h.file))}else a.push(...((l=o.dataTransfer)==null?void 0:l.files)??[]);return a}return{handleDrop:e,hasFilesOrFolders:t}}function We(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise((o,a)=>{t.isFile?t.file(i=>o([{file:i,path:e}]),a):t.isDirectory&&t.createReader().readEntries(async i=>{const l=[];for(const d of i)l.push(...await We(d,Ie(e,d)));o(l)})})}function Ie(t,e){return e.isDirectory?`${t}/${e.name}`:t}const _t=le({filterByType:String},"file-accept");function Ut(t){const e=z(()=>t.filterByType?Ot(t.filterByType):null);function o(a){if(e.value){const s=a.filter(e.value);return{accepted:s,rejected:a.filter(i=>!s.includes(i))}}return{accepted:a,rejected:[]}}return{filterAccepted:o}}function Ot(t){const e=t.split(",").map(i=>i.trim().toLowerCase()),o=e.filter(i=>i.startsWith(".")),a=e.filter(i=>i.endsWith("/*")),s=e.filter(i=>!o.includes(i)&&!a.includes(i));return i=>{var f,h;const l=((f=i.name.split(".").at(-1))==null?void 0:f.toLowerCase())??"",d=((h=i.type.split("/").at(0))==null?void 0:h.toLowerCase())??"";return s.includes(i.type)||o.includes(`.${l}`)||a.includes(`${d}/*`)}}const Yt=le({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:t=>typeof t=="boolean"||[1e3,1024].includes(Number(t))},truncateLength:{type:[Number,String],default:22},...Ft({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:t=>t.multiple?[]:null,validator:t=>Re(t).every(e=>e!=null&&typeof e=="object")},..._t(),...Rt({clearable:!0})},"VFileInput"),Ht=ye()({name:"VFileInput",inheritAttrs:!1,props:Yt(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0,rejected:t=>!0},setup(t,e){let{attrs:o,emit:a,slots:s}=e;const{t:i}=et(),{filterAccepted:l}=Ut(t),d=Ne(t,"modelValue",t.modelValue,u=>Re(u),u=>!t.multiple&&Array.isArray(u)?u[0]:u),{isFocused:f,focus:h,blur:v}=Bt(t),w=z(()=>typeof t.showSize!="boolean"?t.showSize:void 0),k=z(()=>(d.value??[]).reduce((u,g)=>{let{size:O=0}=g;return u+O},0)),V=z(()=>we(k.value,w.value)),D=z(()=>(d.value??[]).map(u=>{const{name:g="",size:O=0}=u,Y=re(g);return t.showSize?`${Y} (${we(O,w.value)})`:Y})),G=z(()=>{var g;const u=((g=d.value)==null?void 0:g.length)??0;return t.showSize?i(t.counterSizeString,u,V.value):i(t.counterString,u)}),A=Q(),P=Q(),x=Q(),B=M(()=>f.value||t.active),N=z(()=>["plain","underlined"].includes(t.variant)),E=tt(!1),{handleDrop:J,hasFilesOrFolders:F}=It();function U(){var u;x.value!==document.activeElement&&((u=x.value)==null||u.focus()),f.value||h()}function ae(u){var g;(g=x.value)==null||g.click()}function _(u){a("mousedown:control",u)}function ie(u){var g;(g=x.value)==null||g.click(),a("click:control",u)}function be(u){u.stopPropagation(),U(),at(()=>{d.value=[],it(t["onClick:clear"],u)})}function re(u){if(u.length{(!Array.isArray(u)||!u.length)&&x.value&&(x.value.value="")}),pe(()=>{const u=!!(s.counter||t.counter),g=!!(u||s.details),[O,Y]=lt(o),{modelValue:oe,...de}=Se.filterProps(t),Ye={...je.filterProps(t),"onClick:clear":be},He=o.webkitdirectory!==void 0&&o.webkitdirectory!==!1,Ge=o.accept?String(o.accept):void 0,Je=He?void 0:t.filterByType??Ge;return n(Se,I({ref:A,modelValue:t.multiple?d.value:d.value[0],class:["v-file-input",{"v-file-input--chips":!!t.chips,"v-file-input--dragging":E.value,"v-file-input--hide":t.hideInput,"v-input--plain-underlined":N.value},t.class],style:t.style,"onClick:prepend":ae},O,de,{centerAffix:!N.value,focused:f.value}),{...s,default:ue=>{let{id:ee,isDisabled:Z,isDirty:ve,isReadonly:ke,isValid:qe,hasDetails:Xe}=ue;return n(je,I({ref:P,prependIcon:t.prependIcon,onMousedown:_,onClick:ie,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},Ye,{id:ee.value,active:B.value||ve.value,dirty:ve.value||t.dirty,disabled:Z.value,focused:f.value,details:Xe.value,error:qe.value===!1,onDragover:ne,onDrop:Ue}),{...s,default:Ze=>{var Te;let{props:{class:Ke,...Qe},controlRef:$e}=Ze;return y(C,null,[y("input",I({ref:H=>x.value=$e.value=H,type:"file",accept:Je,readonly:ke.value,disabled:Z.value,multiple:t.multiple,name:t.name,onClick:H=>{H.stopPropagation(),ke.value&&H.preventDefault(),U()},onChange:Oe,onDragleave:$,onFocus:U,onBlur:v},Qe,Y),null),y("div",{class:Fe(Ke)},[!!((Te=d.value)!=null&&Te.length)&&!t.hideInput&&(s.selection?s.selection({fileNames:D.value,totalBytes:k.value,totalBytesReadable:V.value}):t.chips?D.value.map(H=>n(W,{key:H,size:"small",text:H},null)):D.value.join(", "))])])}})},details:g?ue=>{var ee,Z;return y(C,null,[(ee=s.details)==null?void 0:ee.call(s,ue),u&&y(C,null,[y("span",null,null),n(Nt,{active:!!((Z=d.value)!=null&&Z.length),value:G.value,disabled:t.disabled},s.counter)])])}:void 0})}),Me({},A,P,x)}}),_e=le({fixed:Boolean,sliderColor:String,sliderTransition:String,sliderTransitionDuration:[String,Number],hideSlider:Boolean,inset:Boolean,direction:{type:String,default:"horizontal"},...ot(dt({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),se=ye()({name:"VTab",props:_e(),setup(t,e){let{slots:o,attrs:a}=e;const{textColorClasses:s,textColorStyles:i}=rt(()=>t.sliderColor),{backgroundColorClasses:l,backgroundColorStyles:d}=Le(()=>t.sliderColor),f=Q(),h=Q(),v=z(()=>t.direction==="horizontal"),w=z(()=>{var A,P;return((P=(A=f.value)==null?void 0:A.group)==null?void 0:P.isSelected.value)??!1});function k(A,P){return{opacity:[0,1]}}function V(A,P){return t.direction==="vertical"?{transform:["scaleY(0)","scaleY(1)"]}:{transform:["scaleX(0)","scaleX(1)"]}}function D(A,P){const x=P.getBoundingClientRect(),B=A.getBoundingClientRect(),N=v.value?"x":"y",E=v.value?"X":"Y",J=v.value?"right":"bottom",F=v.value?"width":"height",U=x[N],ae=B[N],_=U>ae?x[J]-B[J]:x[N]-B[N],ie=Math.sign(_)>0?v.value?"right":"bottom":Math.sign(_)<0?v.value?"left":"top":"center",re=(Math.abs(_)+(Math.sign(_)<0?x[F]:B[F]))/Math.max(x[F],B[F])||0,ne=x[F]/B[F]||0,$=1.5;return{transform:[`translate${E}(${_}px) scale${E}(${ne})`,`translate${E}(${_/$}px) scale${E}(${(re-1)/$+1})`,"none"],transformOrigin:Array(3).fill(ie)}}function G(A){var x,B;let{value:P}=A;if(P){const N=(B=(x=f.value)==null?void 0:x.$el.parentElement)==null?void 0:B.querySelector(".v-tab--selected .v-tab__slider"),E=h.value;if(!N||!E)return;const J=getComputedStyle(N).color,F={fade:k,grow:V,shift:D}[t.sliderTransition??"shift"]??D,U=Number(t.sliderTransitionDuration)||({fade:400,grow:350,shift:225}[t.sliderTransition??"shift"]??225);ut(E,{backgroundColor:[J,"currentcolor"],...F(E,N)},{duration:U,easing:ct})}}return pe(()=>{const A=L.filterProps(t);return n(L,I({symbol:ze,ref:f,class:["v-tab",t.class,w.value&&t.inset?l.value:[]],style:[t.style,w.value&&t.inset?d.value:[]],tabindex:w.value?0:-1,role:"tab","aria-selected":String(w.value),active:!1},A,a,{block:t.fixed,maxWidth:t.fixed?300:void 0,"onGroup:selected":G}),{...o,default:()=>{var P;return y(C,null,[((P=o.default)==null?void 0:P.call(o))??t.text,!t.hideSlider&&y("div",{ref:h,class:Fe(["v-tab__slider",s.value]),style:nt(i.value)},null)])}})}),Me({},f)}});function Gt(t){return t?t.map(e=>gt(e)?e:{text:e,value:e}):[]}const Jt=le({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,inset:Boolean,insetPadding:[String,Number],insetRadius:[String,Number],sliderColor:String,...bt(_e(),["spaced","sliderTransition","sliderTransitionDuration"]),...Pt({mandatory:"force",selectedClass:"v-tab-item--selected"}),...pt(),...yt()},"VTabs"),Ae=ye()({name:"VTabs",props:Jt(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:a}=e;const s=Ne(t,"modelValue"),i=z(()=>Gt(t.items)),{densityClasses:l}=mt(t),{backgroundColorClasses:d,backgroundColorStyles:f}=Le(()=>t.bgColor),{scopeId:h}=ft();return ht({VTab:{color:M(t,"color"),direction:M(t,"direction"),stacked:M(t,"stacked"),fixed:M(t,"fixedTabs"),inset:M(t,"inset"),sliderColor:M(t,"sliderColor"),sliderTransition:M(t,"sliderTransition"),sliderTransitionDuration:M(t,"sliderTransitionDuration"),hideSlider:M(t,"hideSlider")}}),pe(()=>{const v=Ce.filterProps(t),w=!!(a.window||t.items.length>0);return y(C,null,[n(Ce,I(v,{modelValue:s.value,"onUpdate:modelValue":k=>s.value=k,class:["v-tabs",`v-tabs--${t.direction}`,`v-tabs--align-tabs-${t.alignTabs}`,{"v-tabs--fixed-tabs":t.fixedTabs,"v-tabs--grow":t.grow,"v-tabs--inset":t.inset,"v-tabs--stacked":t.stacked},l.value,d.value,t.class],style:[{"--v-tabs-height":ce(t.height),"--v-tabs-inset-padding":t.inset?ce(t.insetPadding):void 0,"--v-tabs-inset-radius":t.inset?ce(t.insetRadius):void 0},f.value,t.style],role:"tablist",symbol:ze},h,o),{default:a.default??(()=>i.value.map(k=>{var V;return((V=a.tab)==null?void 0:V.call(a,{item:k}))??n(se,I(k,{key:k.text,value:k.value,spaced:t.spaced}),{default:a[`tab.${k.value}`]?()=>{var D;return(D=a[`tab.${k.value}`])==null?void 0:D.call(a,{item:k})}:void 0})})),prev:a.prev,next:a.next}),w&&n(Vt,I({modelValue:s.value,"onUpdate:modelValue":k=>s.value=k,key:"tabs-window"},h),{default:()=>{var k;return[i.value.map(V=>{var D;return((D=a.item)==null?void 0:D.call(a,{item:V}))??n(Ct,{value:V.value},{default:()=>{var G;return(G=a[`item.${V.value}`])==null?void 0:G.call(a,{item:V})}})}),(k=a.window)==null?void 0:k.call(a)]}})])}),{}}}),Ee=()=>new Promise((t,e)=>{if(typeof window.jsyaml<"u")return t(window.jsyaml);const o=document.createElement("script");o.src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/4.1.0/js-yaml.min.js",o.async=!0,o.onload=()=>t(window.jsyaml),o.onerror=()=>e(new Error("无法加载YAML解析库")),document.head.appendChild(o)});class Be{constructor(e){this.data=e,this.version=null,this.subjects=[],this.schedules=[],this._parseData()}_parseData(){if(!this.data)return;this.version=this.data.version||1;const e=this.data.subjects||[];for(const a of e)this.subjects.push({name:a.name,simplified_name:a.simplified_name||null,teacher:a.teacher||null,room:a.room||null});const o=this.data.schedules||[];for(const a of o){const s=[];for(const i of a.classes||[])s.push({subject:i.subject,start_time:i.start_time,end_time:i.end_time});this.schedules.push({name:a.name,enable_day:a.enable_day,weeks:a.weeks||"all",classes:s})}}getSubjects(){return this.subjects}getSchedules(){return this.schedules}getScheduleByDay(e){const o=this.schedules.find(a=>a.enable_day===e);return o?o.classes:[]}toCsesData(){return{version:this.version,subjects:this.subjects,schedules:this.schedules}}}const qt={name:"Cses2Wakeup",data(){return{activeTab:"text",file:null,jsonText:"",loading:!1,error:"",success:"",processedData:null,selectedRows:[],exportPeriods:[],selectedDays:[1,2,3,4,5,6,7],formatMode:"auto",yamlLibLoaded:!1,activeDay:null,subjectColors:{数学:"blue",语文:"red",英语:"green",物理:"purple",化学:"orange",生物:"teal",历史:"brown",地理:"indigo",政治:"pink",体育:"cyan",自习:"grey",早读:"amber",班会:"deep-purple",听力:"light-blue",信息技术:"light-green"},settings:{hideTeacherName:!1,hideRoom:!1,totalWeeks:30},tableHeaders:[{title:"",key:"data-table-select"},{title:"节次",key:"period"},{title:"周一",key:"1"},{title:"周二",key:"2"},{title:"周三",key:"3"},{title:"周四",key:"4"},{title:"周五",key:"5"},{title:"周六",key:"6"},{title:"周日",key:"7"}],timeTableHeaders:[{title:"节次",key:"period"},{title:"课程",key:"subject"},{title:"星期",key:"day"},{title:"开始时间",key:"startTime"},{title:"结束时间",key:"endTime"},{title:"教师",key:"teacher"},{title:"教室",key:"room"},{title:"周次",key:"weeks"}],dayNames:{1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六",7:"周日"}}},computed:{timeTableData(){if(!this.processedData||!this.processedData.tableData)return[];const t=[],e=this.processedData.tableData.filter(a=>this.exportPeriods.includes(a.period)),o={};return e.sort((a,s)=>a.period-s.period).forEach((a,s)=>{o[a.period]=s+1}),e.forEach(a=>{for(let s=1;s<=7;s++){if(!this.selectedDays.includes(s))continue;const i=a[s];if(i)if(Array.isArray(i))i.forEach(l=>{!l||!l.name||t.push({originalPeriod:a.period,period:o[a.period],subject:l.name,day:this.dayNames[s],startTime:l.startTime,endTime:l.endTime,teacher:this.settings.hideTeacherName?"":l.teacher||"",room:this.settings.hideRoom?"":l.room||"",weeks:l.weekType?`1-${this.settings.totalWeeks}${l.weekType}`:`1-${this.settings.totalWeeks}`})});else{if(!i.name)continue;t.push({originalPeriod:a.period,period:o[a.period],subject:i.name,day:this.dayNames[s],startTime:i.startTime,endTime:i.endTime,teacher:this.settings.hideTeacherName?"":i.teacher||"",room:this.settings.hideRoom?"":i.room||"",weeks:i.weekType?`1-${this.settings.totalWeeks}${i.weekType}`:`1-${this.settings.totalWeeks}`})}}}),t.sort((a,s)=>{if(a.period!==s.period)return a.period-s.period;const i={周一:1,周二:2,周三:3,周四:4,周五:5,周六:6,周日:7};return i[a.day]-i[s.day]})},hasExportData(){return this.processedData&&this.exportPeriods.length>0},totalClassHours(){return this.timeTableData.length},daysWithSchedule(){const t=[];for(let e=1;e<=7;e++)this.selectedDays.includes(e)&&this.getDaySchedule(e).length>0&&t.push(e);return t}},methods:{async handleFileChange(){if(this.resetData(),!this.file)return;const t=this.file.name.toLowerCase();if(t.endsWith(".json")||t.endsWith(".js"))this.formatMode="json";else if((t.endsWith(".yml")||t.endsWith(".yaml"))&&(this.formatMode="yaml",!this.yamlLibLoaded))try{await Ee(),this.yamlLibLoaded=!0}catch(e){this.error=`无法加载YAML解析库: ${e.message}`;return}try{const e=new FileReader;e.onload=async o=>{try{this.jsonText=o.target.result,await this.processInput()}catch(a){this.error=`文件读取失败: ${a.message}`}},e.onerror=()=>{this.error="文件读取失败"},e.readAsText(this.file)}catch(e){this.error=`文件处理失败: ${e.message}`}},handleTextChange(){this.resetData()},resetData(){this.error="",this.success="",this.processedData=null,this.selectedRows=[],this.exportPeriods=[]},async processInput(){if(!this.jsonText&&!this.file){this.error="请粘贴文本或上传文件";return}this.loading=!0,this.error="",this.success="";try{await this.$nextTick();let t;try{if(this.formatMode==="yaml"||this.formatMode==="auto"&&this.isYaml(this.jsonText)){const o=this.parseYaml(this.jsonText);t=new Be(o).toCsesData()}else t=JSON.parse(this.jsonText)}catch(o){throw new Error(`格式解析错误: ${o.message}`)}if(!this.validateCsesFormat(t))throw new Error("不是有效的CSES格式数据");const e=this.processCsesData(t);this.processedData=e,this.selectedDays=[1,2,3,4,5],this.success="数据处理成功!",e.tableData&&e.tableData.length>0&&(this.selectedRows=[...e.tableData],this.exportPeriods=e.tableData.map(o=>o.period))}catch(t){this.error="数据处理失败:"+t.message,console.error(t)}finally{this.loading=!1}},validateCsesFormat(t){return t instanceof Be?t.version===1&&Array.isArray(t.subjects)&&Array.isArray(t.schedules):!(!t||typeof t!="object"||t.version!==1||!Array.isArray(t.subjects)||!Array.isArray(t.schedules))},processCsesData(t){const{schedules:e,subjects:o}=t,a=Object.fromEntries(o.map(l=>[l.name,l])),s=[];let i=0;e.forEach(l=>{l.classes&&l.classes.length>i&&(i=l.classes.length)});for(let l=1;l<=i;l++)s.push({period:l,1:null,2:null,3:null,4:null,5:null,6:null,7:null});return e.forEach(l=>{const d=l.enable_day;if(!d||d<1||d>7)return;let f="";l.weeks==="odd"?f="单":l.weeks==="even"&&(f="双"),l.classes.forEach((h,v)=>{if(!h.subject)return;const w=v+1;if(w>i)return;const k=a[h.subject]||{},V={name:h.subject,teacher:k.teacher||"",room:k.room||"",period:w,startTime:h.start_time,endTime:h.end_time,day:d,weekType:f},D=s[w-1][d];D?f&&D.weekType&&f!==D.weekType?(Array.isArray(s[w-1][d])||(s[w-1][d]=[D]),s[w-1][d].push(V)):f===D.weekType?s[w-1][d]=V:f||(s[w-1][d]=V):s[w-1][d]=V})}),{tableData:s,originalData:t}},updateSelectedPeriods(t){this.exportPeriods=[],t&&t.length>0&&(this.exportPeriods=[...new Set(t.filter(e=>e&&typeof e.period=="number").map(e=>e.period))])},getTimeTableData(){return this.timeTableData},downloadCSV(){var s;if(!((s=this.processedData)!=null&&s.tableData)){this.error="没有可下载的数据";return}if(this.exportPeriods.length===0){this.error="请至少选择一节要导出的课";return}if(this.daysWithSchedule.length===0||this.totalClassHours===0){this.error="没有课程数据可导出";return}let t=`课程名称,星期,开始节数,结束节数,老师,地点,周数 +`;for(const i of this.daysWithSchedule){const l=this.groupByPeriod(this.getDaySchedule(i));for(const d of l)for(const f of d.items){const h={周一:1,周二:2,周三:3,周四:4,周五:5,周六:6,周日:7}[f.day],v=this.settings.hideTeacherName?"":f.teacher||"",w=this.settings.hideRoom?"":f.room||"";t+=`${f.subject},${h},${f.period},${f.period},${v},${w},${f.weeks} +`}}const e="\uFEFF",o=new Blob([e+t],{type:"text/csv;charset=utf-8"}),a=document.createElement("a");a.href=URL.createObjectURL(o),a.download=`course_schedule_${this.totalClassHours}课时.csv`,a.click(),URL.revokeObjectURL(a.href),this.success=`导出成功!共计 ${this.totalClassHours} 课时`},showExportPreview(){if(!this.hasExportData){this.error="请先选择要导出的节次";return}const t=this.timeTableData.slice(0,5).map(e=>`${e.subject} (${e.day} 第${e.period}节)`).join(` +`);this.timeTableData.length>5?this.success=`导出预览 (共${this.totalClassHours}课时): +${t} +...等${this.totalClassHours-5}节课程`:this.success=`导出预览 (共${this.totalClassHours}课时): +${t}`,this.$nextTick(()=>{this.daysWithSchedule.length>0&&!this.activeDay&&(this.activeDay=this.daysWithSchedule[0])})},isYaml(t){const e=t.trim();if(e.startsWith("{")||e.startsWith("["))try{return JSON.parse(e),!1}catch{}return/^\s*[a-zA-Z0-9_-]+\s*:/.test(e)||/\n\s*[a-zA-Z0-9_-]+\s*:/.test(e)},parseYaml(t){try{if(typeof window.jsyaml<"u")return window.jsyaml.load(t);throw new Error("YAML解析器未加载")}catch(e){throw new Error(`YAML解析错误: ${e.message}`)}},getDaySchedule(t){return this.timeTableData?this.getUnfilteredTimeTableData().filter(o=>({周一:1,周二:2,周三:3,周四:4,周五:5,周六:6,周日:7})[o.day]===t):[]},getUnfilteredTimeTableData(){if(!this.processedData||!this.processedData.tableData)return[];const t=[],e=this.processedData.tableData.filter(a=>this.exportPeriods.includes(a.period)),o={};return e.sort((a,s)=>a.period-s.period).forEach((a,s)=>{o[a.period]=s+1}),e.forEach(a=>{for(let s=1;s<=7;s++){const i=a[s];if(i)if(Array.isArray(i))i.forEach(l=>{!l||!l.name||t.push({originalPeriod:a.period,period:o[a.period],subject:l.name,day:this.dayNames[s],startTime:l.startTime,endTime:l.endTime,teacher:this.settings.hideTeacherName?"":l.teacher||"",room:this.settings.hideRoom?"":l.room||"",weeks:l.weekType?`1-${this.settings.totalWeeks}${l.weekType}`:`1-${this.settings.totalWeeks}`})});else{if(!i.name)continue;t.push({originalPeriod:a.period,period:o[a.period],subject:i.name,day:this.dayNames[s],startTime:i.startTime,endTime:i.endTime,teacher:this.settings.hideTeacherName?"":i.teacher||"",room:this.settings.hideRoom?"":i.room||"",weeks:i.weekType?`1-${this.settings.totalWeeks}${i.weekType}`:`1-${this.settings.totalWeeks}`})}}}),t.sort((a,s)=>{if(a.period!==s.period)return a.period-s.period;const i={周一:1,周二:2,周三:3,周四:4,周五:5,周六:6,周日:7};return i[a.day]-i[s.day]})},groupByPeriod(t){const e={};return t.forEach(o=>{e[o.period]||(e[o.period]={period:o.period,originalPeriod:o.originalPeriod,items:[],timeSlots:[]}),e[o.period].items.push(o),e[o.period].timeSlots.push({startTime:o.startTime,endTime:o.endTime})}),Object.values(e).forEach(o=>{o.uniqueTimeSlots=[],o.timeSlots.forEach(a=>{o.uniqueTimeSlots.some(s=>s.startTime===a.startTime&&s.endTime===a.endTime)||o.uniqueTimeSlots.push(a)}),o.uniqueTimeSlots.sort((a,s)=>a.startTime.localeCompare(s.startTime))}),Object.values(e).sort((o,a)=>o.period-a.period)},formatTime(t){return t?t.substring(0,5):""},getSubjectColor(t){return this.subjectColors[t]||"grey"},selectAllDays(){this.selectedDays=[1,2,3,4,5,6,7]},clearSelectedDays(){this.selectedDays=[]}},async mounted(){try{await Ee(),this.yamlLibLoaded=!0}catch(t){this.error=t.message}this.$watch("daysWithSchedule",t=>{t.length>0&&!this.activeDay&&(this.activeDay=t[0])})}},Xt={class:"d-flex align-center"},Zt={class:"d-flex align-center"},Kt={key:2,class:"text-caption mb-2"},Qt={class:"d-flex align-center mb-2"},$t={class:"d-flex align-center mb-3"},es={class:"d-flex align-center mb-3"},ts={key:0,class:"course-cell"},ss={key:0},ls={key:1},as={key:2,class:"week-type"},is={key:0},rs={key:1},ns={key:2,class:"week-type"},os={class:"text-center font-weight-bold"};function ds(t,e,o,a,s,i){return m(),S(Wt,{class:"fill-height"},{default:r(()=>[n(xe,null,{default:r(()=>[n(X,{cols:"12"},{default:r(()=>[n(q,{class:"elevation-12",border:""},{default:r(()=>[n(me,{class:"d-flex align-center primary lighten-1 white--text py-3 px-4"},{default:r(()=>[n(j,{color:"white",class:"mr-2"},{default:r(()=>[...e[15]||(e[15]=[c("mdi-swap-horizontal",-1)])]),_:1}),e[16]||(e[16]=c(" 课程表转换工具 ",-1))]),_:1}),n(kt,null,{default:r(()=>[...e[17]||(e[17]=[c(" 将CSES格式的JSON或YAML文本转换为WakeUp软件使用的课程表 ",-1)])]),_:1}),n(te,null,{default:r(()=>[s.error?(m(),S(K,{key:0,type:"error",class:"mb-4 mt-3 mx-2",variant:"tonal",border:"start",closable:"","onClick:close":e[0]||(e[0]=l=>s.error="")},{default:r(()=>[y("div",Xt,[n(j,{class:"mr-2"},{default:r(()=>[...e[18]||(e[18]=[c("mdi-alert-circle",-1)])]),_:1}),c(" "+b(s.error),1)])]),_:1})):T("",!0),s.success?(m(),S(K,{key:1,type:"success",class:"mb-4 mt-3 mx-2",variant:"tonal",border:"start",closable:"","onClick:close":e[1]||(e[1]=l=>s.success="")},{default:r(()=>[y("div",Zt,[n(j,{class:"mr-2"},{default:r(()=>[...e[19]||(e[19]=[c("mdi-check-circle",-1)])]),_:1}),c(" "+b(s.success),1)])]),_:1})):T("",!0),n(Ae,{modelValue:s.activeTab,"onUpdate:modelValue":e[2]||(e[2]=l=>s.activeTab=l),class:"mb-4 mx-2",color:"primary",rounded:""},{default:r(()=>[n(se,{value:"text",class:"px-5"},{default:r(()=>[n(j,{start:""},{default:r(()=>[...e[20]||(e[20]=[c("mdi-text-box",-1)])]),_:1}),e[21]||(e[21]=c(" 文本粘贴 ",-1))]),_:1}),n(se,{value:"file",class:"px-5"},{default:r(()=>[n(j,{start:""},{default:r(()=>[...e[22]||(e[22]=[c("mdi-file-upload",-1)])]),_:1}),e[23]||(e[23]=c(" 文件上传 ",-1))]),_:1})]),_:1},8,["modelValue"]),n(Tt,{modelValue:s.formatMode,"onUpdate:modelValue":e[3]||(e[3]=l=>s.formatMode=l),color:"primary",class:"mb-4 mx-2",mandatory:"",density:"comfortable",border:"",rounded:""},{default:r(()=>[n(L,{value:"auto"},{default:r(()=>[...e[24]||(e[24]=[c("自动检测",-1)])]),_:1}),n(L,{value:"json"},{default:r(()=>[...e[25]||(e[25]=[c("JSON",-1)])]),_:1}),n(L,{value:"yaml",disabled:!s.yamlLibLoaded},{default:r(()=>[e[26]||(e[26]=c(" YAML ",-1)),n(he,{activator:"parent",location:"bottom"},{default:r(()=>[c(b(s.yamlLibLoaded?"YAML解析库已加载":"正在加载YAML解析库..."),1)]),_:1})]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),s.jsonText&&s.formatMode==="auto"?(m(),p("div",Kt," 检测到的格式: "+b(i.isYaml(s.jsonText)?"YAML":"JSON"),1)):T("",!0),n(De,{modelValue:s.activeTab,"onUpdate:modelValue":e[6]||(e[6]=l=>s.activeTab=l)},{default:r(()=>[n(fe,{value:"text"},{default:r(()=>[y("div",Qt,[n(Et,{modelValue:s.jsonText,"onUpdate:modelValue":e[4]||(e[4]=l=>s.jsonText=l),label:"粘贴JSON或YAML文本",loading:s.loading,disabled:s.loading,"row-height":"25",rows:"6",placeholder:"请在此粘贴CSES格式的数据...",onInput:i.handleTextChange},null,8,["modelValue","loading","disabled","onInput"])])]),_:1}),n(fe,{value:"file"},{default:r(()=>[n(Ht,{modelValue:s.file,"onUpdate:modelValue":e[5]||(e[5]=l=>s.file=l),accept:".js,.json,.yml,.yaml",label:"选择课程表文件","prepend-icon":"mdi-file-upload",loading:s.loading,disabled:s.loading,onChange:i.handleFileChange,hint:"支持JSON、YAML格式文件","persistent-hint":"",rules:[l=>!l||l.size<2e6||"文件大小不能超过 2 MB"]},null,8,["modelValue","loading","disabled","onChange","rules"]),s.file&&s.formatMode==="auto"?(m(),S(K,{key:0,type:"info",class:"mb-4",variant:"tonal",density:"compact"},{default:r(()=>[...e[27]||(e[27]=[c(" 将根据文件扩展名自动检测格式 ",-1)])]),_:1})):T("",!0)]),_:1})]),_:1},8,["modelValue"]),n(X,{cols:"12"},{default:r(()=>[n(q,{flat:"",class:"pa-4 rounded-lg",border:""},{default:r(()=>[y("div",$t,[n(j,{color:"primary",class:"mr-2"},{default:r(()=>[...e[28]||(e[28]=[c("mdi-calendar-multiselect",-1)])]),_:1}),e[33]||(e[33]=y("h3",{class:"text-subtitle-1 font-weight-medium mr-auto"},"选择导出天数",-1)),n(L,{variant:"text",color:"primary",class:"ml-2",onClick:i.selectAllDays},{default:r(()=>[n(j,{start:"",size:"small"},{default:r(()=>[...e[29]||(e[29]=[c("mdi-checkbox-multiple-marked",-1)])]),_:1}),e[30]||(e[30]=c(" 全选 ",-1))]),_:1},8,["onClick"]),n(L,{variant:"text",color:"error",class:"ml-2",onClick:i.clearSelectedDays},{default:r(()=>[n(j,{start:"",size:"small"},{default:r(()=>[...e[31]||(e[31]=[c("mdi-checkbox-multiple-blank-outline",-1)])]),_:1}),e[32]||(e[32]=c(" 清除 ",-1))]),_:1},8,["onClick"])]),n(At,{modelValue:s.selectedDays,"onUpdate:modelValue":e[7]||(e[7]=l=>s.selectedDays=l),multiple:"",class:"mb-2",color:"primary"},{default:r(()=>[(m(),p(C,null,R(7,l=>n(W,{key:l,value:l,filter:"",variant:"tonal",class:"filter-chip",label:""},{default:r(()=>[c(b(s.dayNames[l])+" ",1),i.getDaySchedule(l).length>0?(m(),S(Ve,{key:0,content:i.getDaySchedule(l).length,color:"primary",inline:""},null,8,["content"])):T("",!0)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),n(X,{cols:"12"},{default:r(()=>[n(q,{flat:"",class:"pa-4 rounded-lg",border:""},{default:r(()=>[y("div",es,[n(j,{color:"primary",class:"mr-2"},{default:r(()=>[...e[34]||(e[34]=[c("mdi-cog",-1)])]),_:1}),e[35]||(e[35]=y("h3",{class:"text-subtitle-1 font-weight-medium"},"显示配置",-1))]),n(xe,null,{default:r(()=>[n(X,{cols:"12",sm:"6"},{default:r(()=>[n(Pe,{modelValue:s.settings.hideTeacherName,"onUpdate:modelValue":e[8]||(e[8]=l=>s.settings.hideTeacherName=l),label:"不显示教师姓名",color:"primary",inset:"","hide-details":""},null,8,["modelValue"])]),_:1}),n(X,{cols:"12",sm:"6"},{default:r(()=>[n(Pe,{modelValue:s.settings.hideRoom,"onUpdate:modelValue":e[9]||(e[9]=l=>s.settings.hideRoom=l),label:"不显示教室信息",color:"primary",inset:"","hide-details":""},null,8,["modelValue"])]),_:1}),n(X,{cols:"12",sm:"6"},{default:r(()=>[n(Mt,{modelValue:s.settings.totalWeeks,"onUpdate:modelValue":e[10]||(e[10]=l=>s.settings.totalWeeks=l),modelModifiers:{number:!0},label:"总周数",type:"number",min:"1",max:"30",rules:[l=>l>0||"周数必须大于0"],density:"comfortable",variant:"outlined","prepend-inner-icon":"mdi-calendar-week",class:"mt-3"},null,8,["modelValue","rules"])]),_:1})]),_:1})]),_:1})]),_:1}),s.loading?(m(),S(q,{key:3,class:"my-4",outlined:""},{default:r(()=>[n(te,null,{default:r(()=>[n(Lt,{type:"table",class:"mx-auto"})]),_:1})]),_:1})):T("",!0),s.processedData?(m(),S(W,{key:4,color:"primary",class:"ml-2","prepend-icon":"mdi-book-open-variant"},{default:r(()=>[c(b(s.processedData.tableData.length)+" 节课程 ",1)]),_:1})):T("",!0),s.processedData&&s.exportPeriods.length===0?(m(),S(K,{key:5,type:"warning",class:"mb-4",closable:""},{default:r(()=>[...e[36]||(e[36]=[c(" 请选择要导出的节次 ",-1)])]),_:1})):T("",!0),s.processedData?(m(),S(q,{key:6,class:"my-4",elevation:"1"},{default:r(()=>[n(me,{class:"d-flex align-center pa-4 bg-primary-lighten-5"},{default:r(()=>[n(j,{color:"primary",class:"mr-2"},{default:r(()=>[...e[37]||(e[37]=[c("mdi-table",-1)])]),_:1}),e[39]||(e[39]=y("span",{class:"font-weight-bold"},"课程表",-1)),n(W,{color:"primary",class:"ml-3",size:"small",pill:""},{default:r(()=>[n(j,{start:"",size:"x-small"},{default:r(()=>[...e[38]||(e[38]=[c("mdi-book-open-variant",-1)])]),_:1}),c(" "+b(s.processedData.tableData.length)+" 节课程 ",1)]),_:1})]),_:1}),n(te,{class:"pa-0"},{default:r(()=>[n(St,{"items-selected":s.selectedRows,"onUpdate:itemsSelected":[e[12]||(e[12]=l=>s.selectedRows=l),i.updateSelectedPeriods],headers:s.tableHeaders,items:s.processedData.tableData,"hide-default-footer":"",class:"elevation-1","items-per-page":-1,"item-value":"period","show-select":"","select-strategy":"single-independent","sort-by":[],"disable-sort":""},wt({"item.data-table-select":r(({item:l})=>[n(zt,{modelValue:s.exportPeriods,"onUpdate:modelValue":e[11]||(e[11]=d=>s.exportPeriods=d),value:l.period,"hide-details":"",density:"compact"},null,8,["modelValue","value"])]),_:2},[R(7,l=>({name:`item.${l}`,fn:r(({item:d})=>[d[l]?(m(),p("div",ts,[Array.isArray(d[l])?(m(!0),p(C,{key:0},R(d[l],(f,h)=>(m(),p("div",{key:h,class:"course-item"},[c(b(f.name)+" ",1),!s.settings.hideTeacherName&&f.teacher?(m(),p("span",ss,[e[40]||(e[40]=y("br",null,null,-1)),c(b(f.teacher),1)])):T("",!0),!s.settings.hideRoom&&f.room?(m(),p("span",ls,[e[41]||(e[41]=y("br",null,null,-1)),c(b(f.room),1)])):T("",!0),f.weekType?(m(),p("span",as,b(f.weekType)+"周 ",1)):T("",!0)]))),128)):(m(),p(C,{key:1},[c(b(d[l].name)+" ",1),!s.settings.hideTeacherName&&d[l].teacher?(m(),p("span",is,[e[42]||(e[42]=y("br",null,null,-1)),c(b(d[l].teacher),1)])):T("",!0),!s.settings.hideRoom&&d[l].room?(m(),p("span",rs,[e[43]||(e[43]=y("br",null,null,-1)),c(b(d[l].room),1)])):T("",!0),d[l].weekType?(m(),p("span",ns,b(d[l].weekType)+"周 ",1)):T("",!0)],64))])):T("",!0)])}))]),1032,["items-selected","headers","items","onUpdate:itemsSelected"])]),_:1})]),_:1})):T("",!0),i.hasExportData?(m(),S(q,{key:7,class:"my-4",elevation:"1"},{default:r(()=>[n(me,{class:"d-flex align-center pa-4 bg-primary-lighten-5"},{default:r(()=>[n(j,{color:"primary",class:"mr-2"},{default:r(()=>[...e[44]||(e[44]=[c("mdi-timetable",-1)])]),_:1}),e[48]||(e[48]=y("span",{class:"font-weight-bold"},"每日课程时间表",-1)),n(W,{class:"ml-3",size:"small",color:"primary",pill:""},{default:r(()=>[n(j,{start:"",size:"x-small"},{default:r(()=>[...e[45]||(e[45]=[c("mdi-clock-outline",-1)])]),_:1}),c(" "+b(i.totalClassHours)+" 课时 ",1)]),_:1}),s.exportPeriods.length>0?(m(),S(he,{key:0},{activator:r(({props:l})=>[n(W,I({class:"ml-2",size:"small",color:"info"},l,{pill:""}),{default:r(()=>[n(j,{start:"",size:"x-small"},{default:r(()=>[...e[46]||(e[46]=[c("mdi-information-outline",-1)])]),_:1}),e[47]||(e[47]=c(" 节次已重排 ",-1))]),_:1},16)]),default:r(()=>[y("span",null,"已将选中的节次 "+b(s.exportPeriods.join(", "))+" 重新排序为连续的 1-"+b(s.exportPeriods.length),1)]),_:1})):T("",!0)]),_:1}),n(te,null,{default:r(()=>[i.daysWithSchedule.length>0?(m(),S(Ae,{key:0,modelValue:s.activeDay,"onUpdate:modelValue":e[13]||(e[13]=l=>s.activeDay=l),class:"mb-4",color:"primary",grow:"","align-tabs":"center"},{default:r(()=>[(m(!0),p(C,null,R(i.daysWithSchedule,l=>(m(),S(se,{key:l,value:l,class:"px-2 font-weight-medium"},{default:r(()=>[c(b(s.dayNames[l])+" ",1),n(Ve,{content:i.getDaySchedule(l).length,color:"primary",inline:""},null,8,["content"])]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])):T("",!0),n(De,{modelValue:s.activeDay,"onUpdate:modelValue":e[14]||(e[14]=l=>s.activeDay=l)},{default:r(()=>[(m(!0),p(C,null,R(i.daysWithSchedule,l=>(m(),S(fe,{key:l,value:l},{default:r(()=>[n(jt,{density:"compact",class:"rounded","headers-length":6,"disable-sort":""},{default:r(()=>[e[50]||(e[50]=y("thead",null,[y("tr",null,[y("th",{class:"text-center"},"节次"),y("th",null,"课程"),y("th",null,"时间"),y("th",null,"教师"),y("th",null,"教室"),y("th",null,"周次")])],-1)),y("tbody",null,[(m(!0),p(C,null,R(i.groupByPeriod(i.getDaySchedule(l)),(d,f)=>(m(),p("tr",{key:f},[y("td",os,[c(b(d.period)+" ",1),d.originalPeriod!==d.period?(m(),S(he,{key:0},{activator:r(({props:h})=>[n(j,I({size:"x-small"},{ref_for:!0},h,{color:"info",class:"ml-1"}),{default:r(()=>[...e[49]||(e[49]=[c("mdi-sync",-1)])]),_:1},16)]),default:r(()=>[c(" 原节次: "+b(d.originalPeriod),1)]),_:2},1024)):T("",!0)]),y("td",null,[(m(!0),p(C,null,R(d.items,(h,v)=>(m(),p("div",{key:v,class:"mb-1"},[n(W,{size:"small",color:i.getSubjectColor(h.subject),label:"","text-color":"white",class:"mr-1"},{default:r(()=>[c(b(h.subject),1)]),_:2},1032,["color"]),d.items.length>1?(m(),S(W,{key:0,size:"x-small",class:"ml-1",color:h.weekType==="单"?"warning":"success"},{default:r(()=>[c(b(h.weekType)+"周 ",1)]),_:2},1032,["color"])):T("",!0)]))),128))]),y("td",null,[(m(!0),p(C,null,R(d.uniqueTimeSlots,(h,v)=>(m(),p("div",{key:v,class:"mb-1"},[n(W,{size:"x-small",class:"time-chip"},{default:r(()=>[c(b(i.formatTime(h.startTime))+" - "+b(i.formatTime(h.endTime)),1)]),_:2},1024)]))),128))]),y("td",null,[s.settings.hideTeacherName?(m(),p(C,{key:1},[c("-")],64)):(m(!0),p(C,{key:0},R(d.items,(h,v)=>(m(),p("div",{key:v,class:"mb-1"},b(h.teacher||"-"),1))),128))]),y("td",null,[s.settings.hideRoom?(m(),p(C,{key:1},[c("-")],64)):(m(!0),p(C,{key:0},R(d.items,(h,v)=>(m(),p("div",{key:v,class:"mb-1"},b(h.room||"-"),1))),128))]),y("td",null,[(m(!0),p(C,null,R(d.items,(h,v)=>(m(),p("div",{key:v,class:"mb-1"},b(h.weeks),1))),128))])]))),128))])]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),i.hasExportData&&i.daysWithSchedule.length===0?(m(),S(K,{key:1,type:"info",class:"mt-3"},{default:r(()=>[...e[51]||(e[51]=[c(" 没有找到任何课程数据 ",-1)])]),_:1})):T("",!0)]),_:1})]),_:1})):T("",!0)]),_:1}),n(xt,{class:""},{default:r(()=>[n(Dt),n(L,{color:"primary",variant:"outlined",loading:s.loading,disabled:!s.jsonText&&!s.file||s.loading,onClick:i.processInput,"prepend-icon":"mdi-cog-refresh"},{default:r(()=>[...e[52]||(e[52]=[c(" 处理数据 ",-1)])]),_:1},8,["loading","disabled","onClick"]),n(L,{color:"info",disabled:!i.hasExportData,onClick:i.showExportPreview,class:"ml-2","prepend-icon":"mdi-eye",border:""},{default:r(()=>[...e[53]||(e[53]=[c(" 刷新 ",-1)])]),_:1},8,["disabled","onClick"]),n(L,{color:"success",variant:"outlined",disabled:!i.hasExportData,onClick:i.downloadCSV,class:"ml-2","prepend-icon":"mdi-download",border:""},{default:r(()=>[...e[54]||(e[54]=[c(" 下载CSV ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const Ds=vt(qt,[["render",ds],["__scopeId","data-v-c07f22af"]]);export{Ds as default}; diff --git a/assets/cses2wakeup-DxIOWJyY.js b/assets/cses2wakeup-DxIOWJyY.js deleted file mode 100644 index 7feda35..0000000 --- a/assets/cses2wakeup-DxIOWJyY.js +++ /dev/null @@ -1,7 +0,0 @@ -import{p as le,a5 as z,g as ye,Z as et,a3 as Ne,a4 as Re,ax as we,$ as Q,ay as M,a0 as tt,a6 as st,c as pe,az as lt,d as n,i as y,F as C,E as I,e as Fe,ad as Me,a7 as at,aA as it,a2 as rt,aB as Le,y as L,n as nt,ae as ot,aC as dt,aD as ut,aE as ct,aF as mt,aG as ft,aH as ht,aI as ce,m as yt,aJ as pt,aK as bt,aL as gt,_ as vt,j as S,o as m,w as r,l as q,q as me,t as c,v as j,Y as kt,z as te,B as T,A as p,C as b,D as Tt,G as R,aM as wt,M as xt,x as Dt}from"./index-BBVdlVQD.js";import{V as xe,a as X}from"./VRow-IosHPrmj.js";import{V as K}from"./VAlert-BYrhoEr8.js";import{V as ze,a as Ct,b as Vt,c as De,d as fe}from"./VTabsWindowItem-CNNzieW-.js";import{V as W,a as Ce,m as St,b as jt}from"./VChip-BmBm7zXx.js";import{V as he,a as Ve}from"./VBadge-H7ndD91w.js";import{V as Pt}from"./VTextarea-mXVeQ__0.js";import{a as At,b as Se,c as je,d as Et,e as Bt,f as Nt,V as Rt}from"./VTextField-C-Z2P35g.js";import{V as Pe}from"./VSwitch-CCxGT9ZY.js";import{V as Ft}from"./VSkeletonLoader-DuVn92u1.js";import{V as Mt,a as Lt}from"./VDataTable-D7gPSbin.js";import{V as zt}from"./VCheckbox-BaW9yLIL.js";import{V as Wt}from"./VContainer-OExp5t5c.js";import"./VSelectionControl-D-h-HCLE.js";import"./filter-Bc0G1Z2P.js";import"./VMenu-CJ7CiDy8.js";import"./VCheckboxBtn-CtaD8oYU.js";function It(){function t(o){var s,i;return[...((s=o.dataTransfer)==null?void 0:s.items)??[]].filter(l=>l.kind==="file").map(l=>l.webkitGetAsEntry()).filter(Boolean).length>0||[...((i=o.dataTransfer)==null?void 0:i.files)??[]].length>0}async function e(o){var i,l;const a=[],s=[...((i=o.dataTransfer)==null?void 0:i.items)??[]].filter(d=>d.kind==="file").map(d=>d.webkitGetAsEntry()).filter(Boolean);if(s.length)for(const d of s){const f=await We(d,Ie(".",d));a.push(...f.map(h=>h.file))}else a.push(...((l=o.dataTransfer)==null?void 0:l.files)??[]);return a}return{handleDrop:e,hasFilesOrFolders:t}}function We(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise((o,a)=>{t.isFile?t.file(i=>o([{file:i,path:e}]),a):t.isDirectory&&t.createReader().readEntries(async i=>{const l=[];for(const d of i)l.push(...await We(d,Ie(e,d)));o(l)})})}function Ie(t,e){return e.isDirectory?`${t}/${e.name}`:t}const _t=le({filterByType:String},"file-accept");function Ut(t){const e=z(()=>t.filterByType?Ot(t.filterByType):null);function o(a){if(e.value){const s=a.filter(e.value);return{accepted:s,rejected:a.filter(i=>!s.includes(i))}}return{accepted:a,rejected:[]}}return{filterAccepted:o}}function Ot(t){const e=t.split(",").map(i=>i.trim().toLowerCase()),o=e.filter(i=>i.startsWith(".")),a=e.filter(i=>i.endsWith("/*")),s=e.filter(i=>!o.includes(i)&&!a.includes(i));return i=>{var f,h;const l=((f=i.name.split(".").at(-1))==null?void 0:f.toLowerCase())??"",d=((h=i.type.split("/").at(0))==null?void 0:h.toLowerCase())??"";return s.includes(i.type)||o.includes(`.${l}`)||a.includes(`${d}/*`)}}const Yt=le({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:t=>typeof t=="boolean"||[1e3,1024].includes(Number(t))},truncateLength:{type:[Number,String],default:22},...Nt({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:t=>t.multiple?[]:null,validator:t=>Re(t).every(e=>e!=null&&typeof e=="object")},..._t(),...Bt({clearable:!0})},"VFileInput"),Ht=ye()({name:"VFileInput",inheritAttrs:!1,props:Yt(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0,rejected:t=>!0},setup(t,e){let{attrs:o,emit:a,slots:s}=e;const{t:i}=et(),{filterAccepted:l}=Ut(t),d=Ne(t,"modelValue",t.modelValue,u=>Re(u),u=>!t.multiple&&Array.isArray(u)?u[0]:u),{isFocused:f,focus:h,blur:v}=At(t),w=z(()=>typeof t.showSize!="boolean"?t.showSize:void 0),k=z(()=>(d.value??[]).reduce((u,g)=>{let{size:O=0}=g;return u+O},0)),V=z(()=>we(k.value,w.value)),D=z(()=>(d.value??[]).map(u=>{const{name:g="",size:O=0}=u,Y=re(g);return t.showSize?`${Y} (${we(O,w.value)})`:Y})),G=z(()=>{var g;const u=((g=d.value)==null?void 0:g.length)??0;return t.showSize?i(t.counterSizeString,u,V.value):i(t.counterString,u)}),A=Q(),P=Q(),x=Q(),B=M(()=>f.value||t.active),N=z(()=>["plain","underlined"].includes(t.variant)),E=tt(!1),{handleDrop:J,hasFilesOrFolders:F}=It();function U(){var u;x.value!==document.activeElement&&((u=x.value)==null||u.focus()),f.value||h()}function ae(u){var g;(g=x.value)==null||g.click()}function _(u){a("mousedown:control",u)}function ie(u){var g;(g=x.value)==null||g.click(),a("click:control",u)}function be(u){u.stopPropagation(),U(),at(()=>{d.value=[],it(t["onClick:clear"],u)})}function re(u){if(u.length{(!Array.isArray(u)||!u.length)&&x.value&&(x.value.value="")}),pe(()=>{const u=!!(s.counter||t.counter),g=!!(u||s.details),[O,Y]=lt(o),{modelValue:oe,...de}=Se.filterProps(t),Ye={...je.filterProps(t),"onClick:clear":be},He=o.webkitdirectory!==void 0&&o.webkitdirectory!==!1,Ge=o.accept?String(o.accept):void 0,Je=He?void 0:t.filterByType??Ge;return n(Se,I({ref:A,modelValue:t.multiple?d.value:d.value[0],class:["v-file-input",{"v-file-input--chips":!!t.chips,"v-file-input--dragging":E.value,"v-file-input--hide":t.hideInput,"v-input--plain-underlined":N.value},t.class],style:t.style,"onClick:prepend":ae},O,de,{centerAffix:!N.value,focused:f.value}),{...s,default:ue=>{let{id:ee,isDisabled:Z,isDirty:ve,isReadonly:ke,isValid:qe,hasDetails:Xe}=ue;return n(je,I({ref:P,prependIcon:t.prependIcon,onMousedown:_,onClick:ie,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},Ye,{id:ee.value,active:B.value||ve.value,dirty:ve.value||t.dirty,disabled:Z.value,focused:f.value,details:Xe.value,error:qe.value===!1,onDragover:ne,onDrop:Ue}),{...s,default:Ze=>{var Te;let{props:{class:Ke,...Qe},controlRef:$e}=Ze;return y(C,null,[y("input",I({ref:H=>x.value=$e.value=H,type:"file",accept:Je,readonly:ke.value,disabled:Z.value,multiple:t.multiple,name:t.name,onClick:H=>{H.stopPropagation(),ke.value&&H.preventDefault(),U()},onChange:Oe,onDragleave:$,onFocus:U,onBlur:v},Qe,Y),null),y("div",{class:Fe(Ke)},[!!((Te=d.value)!=null&&Te.length)&&!t.hideInput&&(s.selection?s.selection({fileNames:D.value,totalBytes:k.value,totalBytesReadable:V.value}):t.chips?D.value.map(H=>n(W,{key:H,size:"small",text:H},null)):D.value.join(", "))])])}})},details:g?ue=>{var ee,Z;return y(C,null,[(ee=s.details)==null?void 0:ee.call(s,ue),u&&y(C,null,[y("span",null,null),n(Et,{active:!!((Z=d.value)!=null&&Z.length),value:G.value,disabled:t.disabled},s.counter)])])}:void 0})}),Me({},A,P,x)}}),_e=le({fixed:Boolean,sliderColor:String,sliderTransition:String,sliderTransitionDuration:[String,Number],hideSlider:Boolean,inset:Boolean,direction:{type:String,default:"horizontal"},...ot(dt({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),se=ye()({name:"VTab",props:_e(),setup(t,e){let{slots:o,attrs:a}=e;const{textColorClasses:s,textColorStyles:i}=rt(()=>t.sliderColor),{backgroundColorClasses:l,backgroundColorStyles:d}=Le(()=>t.sliderColor),f=Q(),h=Q(),v=z(()=>t.direction==="horizontal"),w=z(()=>{var A,P;return((P=(A=f.value)==null?void 0:A.group)==null?void 0:P.isSelected.value)??!1});function k(A,P){return{opacity:[0,1]}}function V(A,P){return t.direction==="vertical"?{transform:["scaleY(0)","scaleY(1)"]}:{transform:["scaleX(0)","scaleX(1)"]}}function D(A,P){const x=P.getBoundingClientRect(),B=A.getBoundingClientRect(),N=v.value?"x":"y",E=v.value?"X":"Y",J=v.value?"right":"bottom",F=v.value?"width":"height",U=x[N],ae=B[N],_=U>ae?x[J]-B[J]:x[N]-B[N],ie=Math.sign(_)>0?v.value?"right":"bottom":Math.sign(_)<0?v.value?"left":"top":"center",re=(Math.abs(_)+(Math.sign(_)<0?x[F]:B[F]))/Math.max(x[F],B[F])||0,ne=x[F]/B[F]||0,$=1.5;return{transform:[`translate${E}(${_}px) scale${E}(${ne})`,`translate${E}(${_/$}px) scale${E}(${(re-1)/$+1})`,"none"],transformOrigin:Array(3).fill(ie)}}function G(A){var x,B;let{value:P}=A;if(P){const N=(B=(x=f.value)==null?void 0:x.$el.parentElement)==null?void 0:B.querySelector(".v-tab--selected .v-tab__slider"),E=h.value;if(!N||!E)return;const J=getComputedStyle(N).color,F={fade:k,grow:V,shift:D}[t.sliderTransition??"shift"]??D,U=Number(t.sliderTransitionDuration)||({fade:400,grow:350,shift:225}[t.sliderTransition??"shift"]??225);ut(E,{backgroundColor:[J,"currentcolor"],...F(E,N)},{duration:U,easing:ct})}}return pe(()=>{const A=L.filterProps(t);return n(L,I({symbol:ze,ref:f,class:["v-tab",t.class,w.value&&t.inset?l.value:[]],style:[t.style,w.value&&t.inset?d.value:[]],tabindex:w.value?0:-1,role:"tab","aria-selected":String(w.value),active:!1},A,a,{block:t.fixed,maxWidth:t.fixed?300:void 0,"onGroup:selected":G}),{...o,default:()=>{var P;return y(C,null,[((P=o.default)==null?void 0:P.call(o))??t.text,!t.hideSlider&&y("div",{ref:h,class:Fe(["v-tab__slider",s.value]),style:nt(i.value)},null)])}})}),Me({},f)}});function Gt(t){return t?t.map(e=>gt(e)?e:{text:e,value:e}):[]}const Jt=le({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,inset:Boolean,insetPadding:[String,Number],insetRadius:[String,Number],sliderColor:String,...bt(_e(),["spaced","sliderTransition","sliderTransitionDuration"]),...St({mandatory:"force",selectedClass:"v-tab-item--selected"}),...pt(),...yt()},"VTabs"),Ae=ye()({name:"VTabs",props:Jt(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:a}=e;const s=Ne(t,"modelValue"),i=z(()=>Gt(t.items)),{densityClasses:l}=mt(t),{backgroundColorClasses:d,backgroundColorStyles:f}=Le(()=>t.bgColor),{scopeId:h}=ft();return ht({VTab:{color:M(t,"color"),direction:M(t,"direction"),stacked:M(t,"stacked"),fixed:M(t,"fixedTabs"),inset:M(t,"inset"),sliderColor:M(t,"sliderColor"),sliderTransition:M(t,"sliderTransition"),sliderTransitionDuration:M(t,"sliderTransitionDuration"),hideSlider:M(t,"hideSlider")}}),pe(()=>{const v=Ce.filterProps(t),w=!!(a.window||t.items.length>0);return y(C,null,[n(Ce,I(v,{modelValue:s.value,"onUpdate:modelValue":k=>s.value=k,class:["v-tabs",`v-tabs--${t.direction}`,`v-tabs--align-tabs-${t.alignTabs}`,{"v-tabs--fixed-tabs":t.fixedTabs,"v-tabs--grow":t.grow,"v-tabs--inset":t.inset,"v-tabs--stacked":t.stacked},l.value,d.value,t.class],style:[{"--v-tabs-height":ce(t.height),"--v-tabs-inset-padding":t.inset?ce(t.insetPadding):void 0,"--v-tabs-inset-radius":t.inset?ce(t.insetRadius):void 0},f.value,t.style],role:"tablist",symbol:ze},h,o),{default:a.default??(()=>i.value.map(k=>{var V;return((V=a.tab)==null?void 0:V.call(a,{item:k}))??n(se,I(k,{key:k.text,value:k.value,spaced:t.spaced}),{default:a[`tab.${k.value}`]?()=>{var D;return(D=a[`tab.${k.value}`])==null?void 0:D.call(a,{item:k})}:void 0})})),prev:a.prev,next:a.next}),w&&n(Vt,I({modelValue:s.value,"onUpdate:modelValue":k=>s.value=k,key:"tabs-window"},h),{default:()=>{var k;return[i.value.map(V=>{var D;return((D=a.item)==null?void 0:D.call(a,{item:V}))??n(Ct,{value:V.value},{default:()=>{var G;return(G=a[`item.${V.value}`])==null?void 0:G.call(a,{item:V})}})}),(k=a.window)==null?void 0:k.call(a)]}})])}),{}}}),Ee=()=>new Promise((t,e)=>{if(typeof window.jsyaml<"u")return t(window.jsyaml);const o=document.createElement("script");o.src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/4.1.0/js-yaml.min.js",o.async=!0,o.onload=()=>t(window.jsyaml),o.onerror=()=>e(new Error("无法加载YAML解析库")),document.head.appendChild(o)});class Be{constructor(e){this.data=e,this.version=null,this.subjects=[],this.schedules=[],this._parseData()}_parseData(){if(!this.data)return;this.version=this.data.version||1;const e=this.data.subjects||[];for(const a of e)this.subjects.push({name:a.name,simplified_name:a.simplified_name||null,teacher:a.teacher||null,room:a.room||null});const o=this.data.schedules||[];for(const a of o){const s=[];for(const i of a.classes||[])s.push({subject:i.subject,start_time:i.start_time,end_time:i.end_time});this.schedules.push({name:a.name,enable_day:a.enable_day,weeks:a.weeks||"all",classes:s})}}getSubjects(){return this.subjects}getSchedules(){return this.schedules}getScheduleByDay(e){const o=this.schedules.find(a=>a.enable_day===e);return o?o.classes:[]}toCsesData(){return{version:this.version,subjects:this.subjects,schedules:this.schedules}}}const qt={name:"Cses2Wakeup",data(){return{activeTab:"text",file:null,jsonText:"",loading:!1,error:"",success:"",processedData:null,selectedRows:[],exportPeriods:[],selectedDays:[1,2,3,4,5,6,7],formatMode:"auto",yamlLibLoaded:!1,activeDay:null,subjectColors:{数学:"blue",语文:"red",英语:"green",物理:"purple",化学:"orange",生物:"teal",历史:"brown",地理:"indigo",政治:"pink",体育:"cyan",自习:"grey",早读:"amber",班会:"deep-purple",听力:"light-blue",信息技术:"light-green"},settings:{hideTeacherName:!1,hideRoom:!1,totalWeeks:30},tableHeaders:[{title:"",key:"data-table-select"},{title:"节次",key:"period"},{title:"周一",key:"1"},{title:"周二",key:"2"},{title:"周三",key:"3"},{title:"周四",key:"4"},{title:"周五",key:"5"},{title:"周六",key:"6"},{title:"周日",key:"7"}],timeTableHeaders:[{title:"节次",key:"period"},{title:"课程",key:"subject"},{title:"星期",key:"day"},{title:"开始时间",key:"startTime"},{title:"结束时间",key:"endTime"},{title:"教师",key:"teacher"},{title:"教室",key:"room"},{title:"周次",key:"weeks"}],dayNames:{1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六",7:"周日"}}},computed:{timeTableData(){if(!this.processedData||!this.processedData.tableData)return[];const t=[],e=this.processedData.tableData.filter(a=>this.exportPeriods.includes(a.period)),o={};return e.sort((a,s)=>a.period-s.period).forEach((a,s)=>{o[a.period]=s+1}),e.forEach(a=>{for(let s=1;s<=7;s++){if(!this.selectedDays.includes(s))continue;const i=a[s];if(i)if(Array.isArray(i))i.forEach(l=>{!l||!l.name||t.push({originalPeriod:a.period,period:o[a.period],subject:l.name,day:this.dayNames[s],startTime:l.startTime,endTime:l.endTime,teacher:this.settings.hideTeacherName?"":l.teacher||"",room:this.settings.hideRoom?"":l.room||"",weeks:l.weekType?`1-${this.settings.totalWeeks}${l.weekType}`:`1-${this.settings.totalWeeks}`})});else{if(!i.name)continue;t.push({originalPeriod:a.period,period:o[a.period],subject:i.name,day:this.dayNames[s],startTime:i.startTime,endTime:i.endTime,teacher:this.settings.hideTeacherName?"":i.teacher||"",room:this.settings.hideRoom?"":i.room||"",weeks:i.weekType?`1-${this.settings.totalWeeks}${i.weekType}`:`1-${this.settings.totalWeeks}`})}}}),t.sort((a,s)=>{if(a.period!==s.period)return a.period-s.period;const i={周一:1,周二:2,周三:3,周四:4,周五:5,周六:6,周日:7};return i[a.day]-i[s.day]})},hasExportData(){return this.processedData&&this.exportPeriods.length>0},totalClassHours(){return this.timeTableData.length},daysWithSchedule(){const t=[];for(let e=1;e<=7;e++)this.selectedDays.includes(e)&&this.getDaySchedule(e).length>0&&t.push(e);return t}},methods:{async handleFileChange(){if(this.resetData(),!this.file)return;const t=this.file.name.toLowerCase();if(t.endsWith(".json")||t.endsWith(".js"))this.formatMode="json";else if((t.endsWith(".yml")||t.endsWith(".yaml"))&&(this.formatMode="yaml",!this.yamlLibLoaded))try{await Ee(),this.yamlLibLoaded=!0}catch(e){this.error=`无法加载YAML解析库: ${e.message}`;return}try{const e=new FileReader;e.onload=async o=>{try{this.jsonText=o.target.result,await this.processInput()}catch(a){this.error=`文件读取失败: ${a.message}`}},e.onerror=()=>{this.error="文件读取失败"},e.readAsText(this.file)}catch(e){this.error=`文件处理失败: ${e.message}`}},handleTextChange(){this.resetData()},resetData(){this.error="",this.success="",this.processedData=null,this.selectedRows=[],this.exportPeriods=[]},async processInput(){if(!this.jsonText&&!this.file){this.error="请粘贴文本或上传文件";return}this.loading=!0,this.error="",this.success="";try{await this.$nextTick();let t;try{if(this.formatMode==="yaml"||this.formatMode==="auto"&&this.isYaml(this.jsonText)){const o=this.parseYaml(this.jsonText);t=new Be(o).toCsesData()}else t=JSON.parse(this.jsonText)}catch(o){throw new Error(`格式解析错误: ${o.message}`)}if(!this.validateCsesFormat(t))throw new Error("不是有效的CSES格式数据");const e=this.processCsesData(t);this.processedData=e,this.selectedDays=[1,2,3,4,5],this.success="数据处理成功!",e.tableData&&e.tableData.length>0&&(this.selectedRows=[...e.tableData],this.exportPeriods=e.tableData.map(o=>o.period))}catch(t){this.error="数据处理失败:"+t.message,console.error(t)}finally{this.loading=!1}},validateCsesFormat(t){return t instanceof Be?t.version===1&&Array.isArray(t.subjects)&&Array.isArray(t.schedules):!(!t||typeof t!="object"||t.version!==1||!Array.isArray(t.subjects)||!Array.isArray(t.schedules))},processCsesData(t){const{schedules:e,subjects:o}=t,a=Object.fromEntries(o.map(l=>[l.name,l])),s=[];let i=0;e.forEach(l=>{l.classes&&l.classes.length>i&&(i=l.classes.length)});for(let l=1;l<=i;l++)s.push({period:l,1:null,2:null,3:null,4:null,5:null,6:null,7:null});return e.forEach(l=>{const d=l.enable_day;if(!d||d<1||d>7)return;let f="";l.weeks==="odd"?f="单":l.weeks==="even"&&(f="双"),l.classes.forEach((h,v)=>{if(!h.subject)return;const w=v+1;if(w>i)return;const k=a[h.subject]||{},V={name:h.subject,teacher:k.teacher||"",room:k.room||"",period:w,startTime:h.start_time,endTime:h.end_time,day:d,weekType:f},D=s[w-1][d];D?f&&D.weekType&&f!==D.weekType?(Array.isArray(s[w-1][d])||(s[w-1][d]=[D]),s[w-1][d].push(V)):f===D.weekType?s[w-1][d]=V:f||(s[w-1][d]=V):s[w-1][d]=V})}),{tableData:s,originalData:t}},updateSelectedPeriods(t){this.exportPeriods=[],t&&t.length>0&&(this.exportPeriods=[...new Set(t.filter(e=>e&&typeof e.period=="number").map(e=>e.period))])},getTimeTableData(){return this.timeTableData},downloadCSV(){var s;if(!((s=this.processedData)!=null&&s.tableData)){this.error="没有可下载的数据";return}if(this.exportPeriods.length===0){this.error="请至少选择一节要导出的课";return}if(this.daysWithSchedule.length===0||this.totalClassHours===0){this.error="没有课程数据可导出";return}let t=`课程名称,星期,开始节数,结束节数,老师,地点,周数 -`;for(const i of this.daysWithSchedule){const l=this.groupByPeriod(this.getDaySchedule(i));for(const d of l)for(const f of d.items){const h={周一:1,周二:2,周三:3,周四:4,周五:5,周六:6,周日:7}[f.day],v=this.settings.hideTeacherName?"":f.teacher||"",w=this.settings.hideRoom?"":f.room||"";t+=`${f.subject},${h},${f.period},${f.period},${v},${w},${f.weeks} -`}}const e="\uFEFF",o=new Blob([e+t],{type:"text/csv;charset=utf-8"}),a=document.createElement("a");a.href=URL.createObjectURL(o),a.download=`course_schedule_${this.totalClassHours}课时.csv`,a.click(),URL.revokeObjectURL(a.href),this.success=`导出成功!共计 ${this.totalClassHours} 课时`},showExportPreview(){if(!this.hasExportData){this.error="请先选择要导出的节次";return}const t=this.timeTableData.slice(0,5).map(e=>`${e.subject} (${e.day} 第${e.period}节)`).join(` -`);this.timeTableData.length>5?this.success=`导出预览 (共${this.totalClassHours}课时): -${t} -...等${this.totalClassHours-5}节课程`:this.success=`导出预览 (共${this.totalClassHours}课时): -${t}`,this.$nextTick(()=>{this.daysWithSchedule.length>0&&!this.activeDay&&(this.activeDay=this.daysWithSchedule[0])})},isYaml(t){const e=t.trim();if(e.startsWith("{")||e.startsWith("["))try{return JSON.parse(e),!1}catch{}return/^\s*[a-zA-Z0-9_-]+\s*:/.test(e)||/\n\s*[a-zA-Z0-9_-]+\s*:/.test(e)},parseYaml(t){try{if(typeof window.jsyaml<"u")return window.jsyaml.load(t);throw new Error("YAML解析器未加载")}catch(e){throw new Error(`YAML解析错误: ${e.message}`)}},getDaySchedule(t){return this.timeTableData?this.getUnfilteredTimeTableData().filter(o=>({周一:1,周二:2,周三:3,周四:4,周五:5,周六:6,周日:7})[o.day]===t):[]},getUnfilteredTimeTableData(){if(!this.processedData||!this.processedData.tableData)return[];const t=[],e=this.processedData.tableData.filter(a=>this.exportPeriods.includes(a.period)),o={};return e.sort((a,s)=>a.period-s.period).forEach((a,s)=>{o[a.period]=s+1}),e.forEach(a=>{for(let s=1;s<=7;s++){const i=a[s];if(i)if(Array.isArray(i))i.forEach(l=>{!l||!l.name||t.push({originalPeriod:a.period,period:o[a.period],subject:l.name,day:this.dayNames[s],startTime:l.startTime,endTime:l.endTime,teacher:this.settings.hideTeacherName?"":l.teacher||"",room:this.settings.hideRoom?"":l.room||"",weeks:l.weekType?`1-${this.settings.totalWeeks}${l.weekType}`:`1-${this.settings.totalWeeks}`})});else{if(!i.name)continue;t.push({originalPeriod:a.period,period:o[a.period],subject:i.name,day:this.dayNames[s],startTime:i.startTime,endTime:i.endTime,teacher:this.settings.hideTeacherName?"":i.teacher||"",room:this.settings.hideRoom?"":i.room||"",weeks:i.weekType?`1-${this.settings.totalWeeks}${i.weekType}`:`1-${this.settings.totalWeeks}`})}}}),t.sort((a,s)=>{if(a.period!==s.period)return a.period-s.period;const i={周一:1,周二:2,周三:3,周四:4,周五:5,周六:6,周日:7};return i[a.day]-i[s.day]})},groupByPeriod(t){const e={};return t.forEach(o=>{e[o.period]||(e[o.period]={period:o.period,originalPeriod:o.originalPeriod,items:[],timeSlots:[]}),e[o.period].items.push(o),e[o.period].timeSlots.push({startTime:o.startTime,endTime:o.endTime})}),Object.values(e).forEach(o=>{o.uniqueTimeSlots=[],o.timeSlots.forEach(a=>{o.uniqueTimeSlots.some(s=>s.startTime===a.startTime&&s.endTime===a.endTime)||o.uniqueTimeSlots.push(a)}),o.uniqueTimeSlots.sort((a,s)=>a.startTime.localeCompare(s.startTime))}),Object.values(e).sort((o,a)=>o.period-a.period)},formatTime(t){return t?t.substring(0,5):""},getSubjectColor(t){return this.subjectColors[t]||"grey"},selectAllDays(){this.selectedDays=[1,2,3,4,5,6,7]},clearSelectedDays(){this.selectedDays=[]}},async mounted(){try{await Ee(),this.yamlLibLoaded=!0}catch(t){this.error=t.message}this.$watch("daysWithSchedule",t=>{t.length>0&&!this.activeDay&&(this.activeDay=t[0])})}},Xt={class:"d-flex align-center"},Zt={class:"d-flex align-center"},Kt={key:2,class:"text-caption mb-2"},Qt={class:"d-flex align-center mb-2"},$t={class:"d-flex align-center mb-3"},es={class:"d-flex align-center mb-3"},ts={key:0,class:"course-cell"},ss={key:0},ls={key:1},as={key:2,class:"week-type"},is={key:0},rs={key:1},ns={key:2,class:"week-type"},os={class:"text-center font-weight-bold"};function ds(t,e,o,a,s,i){return m(),S(Wt,{class:"fill-height"},{default:r(()=>[n(xe,null,{default:r(()=>[n(X,{cols:"12"},{default:r(()=>[n(q,{class:"elevation-12",border:""},{default:r(()=>[n(me,{class:"d-flex align-center primary lighten-1 white--text py-3 px-4"},{default:r(()=>[n(j,{color:"white",class:"mr-2"},{default:r(()=>[...e[15]||(e[15]=[c("mdi-swap-horizontal",-1)])]),_:1}),e[16]||(e[16]=c(" 课程表转换工具 ",-1))]),_:1}),n(kt,null,{default:r(()=>[...e[17]||(e[17]=[c(" 将CSES格式的JSON或YAML文本转换为WakeUp软件使用的课程表 ",-1)])]),_:1}),n(te,null,{default:r(()=>[s.error?(m(),S(K,{key:0,type:"error",class:"mb-4 mt-3 mx-2",variant:"tonal",border:"start",closable:"","onClick:close":e[0]||(e[0]=l=>s.error="")},{default:r(()=>[y("div",Xt,[n(j,{class:"mr-2"},{default:r(()=>[...e[18]||(e[18]=[c("mdi-alert-circle",-1)])]),_:1}),c(" "+b(s.error),1)])]),_:1})):T("",!0),s.success?(m(),S(K,{key:1,type:"success",class:"mb-4 mt-3 mx-2",variant:"tonal",border:"start",closable:"","onClick:close":e[1]||(e[1]=l=>s.success="")},{default:r(()=>[y("div",Zt,[n(j,{class:"mr-2"},{default:r(()=>[...e[19]||(e[19]=[c("mdi-check-circle",-1)])]),_:1}),c(" "+b(s.success),1)])]),_:1})):T("",!0),n(Ae,{modelValue:s.activeTab,"onUpdate:modelValue":e[2]||(e[2]=l=>s.activeTab=l),class:"mb-4 mx-2",color:"primary",rounded:""},{default:r(()=>[n(se,{value:"text",class:"px-5"},{default:r(()=>[n(j,{start:""},{default:r(()=>[...e[20]||(e[20]=[c("mdi-text-box",-1)])]),_:1}),e[21]||(e[21]=c(" 文本粘贴 ",-1))]),_:1}),n(se,{value:"file",class:"px-5"},{default:r(()=>[n(j,{start:""},{default:r(()=>[...e[22]||(e[22]=[c("mdi-file-upload",-1)])]),_:1}),e[23]||(e[23]=c(" 文件上传 ",-1))]),_:1})]),_:1},8,["modelValue"]),n(Tt,{modelValue:s.formatMode,"onUpdate:modelValue":e[3]||(e[3]=l=>s.formatMode=l),color:"primary",class:"mb-4 mx-2",mandatory:"",density:"comfortable",border:"",rounded:""},{default:r(()=>[n(L,{value:"auto"},{default:r(()=>[...e[24]||(e[24]=[c("自动检测",-1)])]),_:1}),n(L,{value:"json"},{default:r(()=>[...e[25]||(e[25]=[c("JSON",-1)])]),_:1}),n(L,{value:"yaml",disabled:!s.yamlLibLoaded},{default:r(()=>[e[26]||(e[26]=c(" YAML ",-1)),n(he,{activator:"parent",location:"bottom"},{default:r(()=>[c(b(s.yamlLibLoaded?"YAML解析库已加载":"正在加载YAML解析库..."),1)]),_:1})]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),s.jsonText&&s.formatMode==="auto"?(m(),p("div",Kt," 检测到的格式: "+b(i.isYaml(s.jsonText)?"YAML":"JSON"),1)):T("",!0),n(De,{modelValue:s.activeTab,"onUpdate:modelValue":e[6]||(e[6]=l=>s.activeTab=l)},{default:r(()=>[n(fe,{value:"text"},{default:r(()=>[y("div",Qt,[n(Pt,{modelValue:s.jsonText,"onUpdate:modelValue":e[4]||(e[4]=l=>s.jsonText=l),label:"粘贴JSON或YAML文本",loading:s.loading,disabled:s.loading,"row-height":"25",rows:"6",placeholder:"请在此粘贴CSES格式的数据...",onInput:i.handleTextChange},null,8,["modelValue","loading","disabled","onInput"])])]),_:1}),n(fe,{value:"file"},{default:r(()=>[n(Ht,{modelValue:s.file,"onUpdate:modelValue":e[5]||(e[5]=l=>s.file=l),accept:".js,.json,.yml,.yaml",label:"选择课程表文件","prepend-icon":"mdi-file-upload",loading:s.loading,disabled:s.loading,onChange:i.handleFileChange,hint:"支持JSON、YAML格式文件","persistent-hint":"",rules:[l=>!l||l.size<2e6||"文件大小不能超过 2 MB"]},null,8,["modelValue","loading","disabled","onChange","rules"]),s.file&&s.formatMode==="auto"?(m(),S(K,{key:0,type:"info",class:"mb-4",variant:"tonal",density:"compact"},{default:r(()=>[...e[27]||(e[27]=[c(" 将根据文件扩展名自动检测格式 ",-1)])]),_:1})):T("",!0)]),_:1})]),_:1},8,["modelValue"]),n(X,{cols:"12"},{default:r(()=>[n(q,{flat:"",class:"pa-4 rounded-lg",border:""},{default:r(()=>[y("div",$t,[n(j,{color:"primary",class:"mr-2"},{default:r(()=>[...e[28]||(e[28]=[c("mdi-calendar-multiselect",-1)])]),_:1}),e[33]||(e[33]=y("h3",{class:"text-subtitle-1 font-weight-medium mr-auto"},"选择导出天数",-1)),n(L,{variant:"text",color:"primary",class:"ml-2",onClick:i.selectAllDays},{default:r(()=>[n(j,{start:"",size:"small"},{default:r(()=>[...e[29]||(e[29]=[c("mdi-checkbox-multiple-marked",-1)])]),_:1}),e[30]||(e[30]=c(" 全选 ",-1))]),_:1},8,["onClick"]),n(L,{variant:"text",color:"error",class:"ml-2",onClick:i.clearSelectedDays},{default:r(()=>[n(j,{start:"",size:"small"},{default:r(()=>[...e[31]||(e[31]=[c("mdi-checkbox-multiple-blank-outline",-1)])]),_:1}),e[32]||(e[32]=c(" 清除 ",-1))]),_:1},8,["onClick"])]),n(jt,{modelValue:s.selectedDays,"onUpdate:modelValue":e[7]||(e[7]=l=>s.selectedDays=l),multiple:"",class:"mb-2",color:"primary"},{default:r(()=>[(m(),p(C,null,R(7,l=>n(W,{key:l,value:l,filter:"",variant:"tonal",class:"filter-chip",label:""},{default:r(()=>[c(b(s.dayNames[l])+" ",1),i.getDaySchedule(l).length>0?(m(),S(Ve,{key:0,content:i.getDaySchedule(l).length,color:"primary",inline:""},null,8,["content"])):T("",!0)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),n(X,{cols:"12"},{default:r(()=>[n(q,{flat:"",class:"pa-4 rounded-lg",border:""},{default:r(()=>[y("div",es,[n(j,{color:"primary",class:"mr-2"},{default:r(()=>[...e[34]||(e[34]=[c("mdi-cog",-1)])]),_:1}),e[35]||(e[35]=y("h3",{class:"text-subtitle-1 font-weight-medium"},"显示配置",-1))]),n(xe,null,{default:r(()=>[n(X,{cols:"12",sm:"6"},{default:r(()=>[n(Pe,{modelValue:s.settings.hideTeacherName,"onUpdate:modelValue":e[8]||(e[8]=l=>s.settings.hideTeacherName=l),label:"不显示教师姓名",color:"primary",inset:"","hide-details":""},null,8,["modelValue"])]),_:1}),n(X,{cols:"12",sm:"6"},{default:r(()=>[n(Pe,{modelValue:s.settings.hideRoom,"onUpdate:modelValue":e[9]||(e[9]=l=>s.settings.hideRoom=l),label:"不显示教室信息",color:"primary",inset:"","hide-details":""},null,8,["modelValue"])]),_:1}),n(X,{cols:"12",sm:"6"},{default:r(()=>[n(Rt,{modelValue:s.settings.totalWeeks,"onUpdate:modelValue":e[10]||(e[10]=l=>s.settings.totalWeeks=l),modelModifiers:{number:!0},label:"总周数",type:"number",min:"1",max:"30",rules:[l=>l>0||"周数必须大于0"],density:"comfortable",variant:"outlined","prepend-inner-icon":"mdi-calendar-week",class:"mt-3"},null,8,["modelValue","rules"])]),_:1})]),_:1})]),_:1})]),_:1}),s.loading?(m(),S(q,{key:3,class:"my-4",outlined:""},{default:r(()=>[n(te,null,{default:r(()=>[n(Ft,{type:"table",class:"mx-auto"})]),_:1})]),_:1})):T("",!0),s.processedData?(m(),S(W,{key:4,color:"primary",class:"ml-2","prepend-icon":"mdi-book-open-variant"},{default:r(()=>[c(b(s.processedData.tableData.length)+" 节课程 ",1)]),_:1})):T("",!0),s.processedData&&s.exportPeriods.length===0?(m(),S(K,{key:5,type:"warning",class:"mb-4",closable:""},{default:r(()=>[...e[36]||(e[36]=[c(" 请选择要导出的节次 ",-1)])]),_:1})):T("",!0),s.processedData?(m(),S(q,{key:6,class:"my-4",elevation:"1"},{default:r(()=>[n(me,{class:"d-flex align-center pa-4 bg-primary-lighten-5"},{default:r(()=>[n(j,{color:"primary",class:"mr-2"},{default:r(()=>[...e[37]||(e[37]=[c("mdi-table",-1)])]),_:1}),e[39]||(e[39]=y("span",{class:"font-weight-bold"},"课程表",-1)),n(W,{color:"primary",class:"ml-3",size:"small",pill:""},{default:r(()=>[n(j,{start:"",size:"x-small"},{default:r(()=>[...e[38]||(e[38]=[c("mdi-book-open-variant",-1)])]),_:1}),c(" "+b(s.processedData.tableData.length)+" 节课程 ",1)]),_:1})]),_:1}),n(te,{class:"pa-0"},{default:r(()=>[n(Mt,{"items-selected":s.selectedRows,"onUpdate:itemsSelected":[e[12]||(e[12]=l=>s.selectedRows=l),i.updateSelectedPeriods],headers:s.tableHeaders,items:s.processedData.tableData,"hide-default-footer":"",class:"elevation-1","items-per-page":-1,"item-value":"period","show-select":"","select-strategy":"single-independent","sort-by":[],"disable-sort":""},wt({"item.data-table-select":r(({item:l})=>[n(zt,{modelValue:s.exportPeriods,"onUpdate:modelValue":e[11]||(e[11]=d=>s.exportPeriods=d),value:l.period,"hide-details":"",density:"compact"},null,8,["modelValue","value"])]),_:2},[R(7,l=>({name:`item.${l}`,fn:r(({item:d})=>[d[l]?(m(),p("div",ts,[Array.isArray(d[l])?(m(!0),p(C,{key:0},R(d[l],(f,h)=>(m(),p("div",{key:h,class:"course-item"},[c(b(f.name)+" ",1),!s.settings.hideTeacherName&&f.teacher?(m(),p("span",ss,[e[40]||(e[40]=y("br",null,null,-1)),c(b(f.teacher),1)])):T("",!0),!s.settings.hideRoom&&f.room?(m(),p("span",ls,[e[41]||(e[41]=y("br",null,null,-1)),c(b(f.room),1)])):T("",!0),f.weekType?(m(),p("span",as,b(f.weekType)+"周 ",1)):T("",!0)]))),128)):(m(),p(C,{key:1},[c(b(d[l].name)+" ",1),!s.settings.hideTeacherName&&d[l].teacher?(m(),p("span",is,[e[42]||(e[42]=y("br",null,null,-1)),c(b(d[l].teacher),1)])):T("",!0),!s.settings.hideRoom&&d[l].room?(m(),p("span",rs,[e[43]||(e[43]=y("br",null,null,-1)),c(b(d[l].room),1)])):T("",!0),d[l].weekType?(m(),p("span",ns,b(d[l].weekType)+"周 ",1)):T("",!0)],64))])):T("",!0)])}))]),1032,["items-selected","headers","items","onUpdate:itemsSelected"])]),_:1})]),_:1})):T("",!0),i.hasExportData?(m(),S(q,{key:7,class:"my-4",elevation:"1"},{default:r(()=>[n(me,{class:"d-flex align-center pa-4 bg-primary-lighten-5"},{default:r(()=>[n(j,{color:"primary",class:"mr-2"},{default:r(()=>[...e[44]||(e[44]=[c("mdi-timetable",-1)])]),_:1}),e[48]||(e[48]=y("span",{class:"font-weight-bold"},"每日课程时间表",-1)),n(W,{class:"ml-3",size:"small",color:"primary",pill:""},{default:r(()=>[n(j,{start:"",size:"x-small"},{default:r(()=>[...e[45]||(e[45]=[c("mdi-clock-outline",-1)])]),_:1}),c(" "+b(i.totalClassHours)+" 课时 ",1)]),_:1}),s.exportPeriods.length>0?(m(),S(he,{key:0},{activator:r(({props:l})=>[n(W,I({class:"ml-2",size:"small",color:"info"},l,{pill:""}),{default:r(()=>[n(j,{start:"",size:"x-small"},{default:r(()=>[...e[46]||(e[46]=[c("mdi-information-outline",-1)])]),_:1}),e[47]||(e[47]=c(" 节次已重排 ",-1))]),_:1},16)]),default:r(()=>[y("span",null,"已将选中的节次 "+b(s.exportPeriods.join(", "))+" 重新排序为连续的 1-"+b(s.exportPeriods.length),1)]),_:1})):T("",!0)]),_:1}),n(te,null,{default:r(()=>[i.daysWithSchedule.length>0?(m(),S(Ae,{key:0,modelValue:s.activeDay,"onUpdate:modelValue":e[13]||(e[13]=l=>s.activeDay=l),class:"mb-4",color:"primary",grow:"","align-tabs":"center"},{default:r(()=>[(m(!0),p(C,null,R(i.daysWithSchedule,l=>(m(),S(se,{key:l,value:l,class:"px-2 font-weight-medium"},{default:r(()=>[c(b(s.dayNames[l])+" ",1),n(Ve,{content:i.getDaySchedule(l).length,color:"primary",inline:""},null,8,["content"])]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])):T("",!0),n(De,{modelValue:s.activeDay,"onUpdate:modelValue":e[14]||(e[14]=l=>s.activeDay=l)},{default:r(()=>[(m(!0),p(C,null,R(i.daysWithSchedule,l=>(m(),S(fe,{key:l,value:l},{default:r(()=>[n(Lt,{density:"compact",class:"rounded","headers-length":6,"disable-sort":""},{default:r(()=>[e[50]||(e[50]=y("thead",null,[y("tr",null,[y("th",{class:"text-center"},"节次"),y("th",null,"课程"),y("th",null,"时间"),y("th",null,"教师"),y("th",null,"教室"),y("th",null,"周次")])],-1)),y("tbody",null,[(m(!0),p(C,null,R(i.groupByPeriod(i.getDaySchedule(l)),(d,f)=>(m(),p("tr",{key:f},[y("td",os,[c(b(d.period)+" ",1),d.originalPeriod!==d.period?(m(),S(he,{key:0},{activator:r(({props:h})=>[n(j,I({size:"x-small"},{ref_for:!0},h,{color:"info",class:"ml-1"}),{default:r(()=>[...e[49]||(e[49]=[c("mdi-sync",-1)])]),_:1},16)]),default:r(()=>[c(" 原节次: "+b(d.originalPeriod),1)]),_:2},1024)):T("",!0)]),y("td",null,[(m(!0),p(C,null,R(d.items,(h,v)=>(m(),p("div",{key:v,class:"mb-1"},[n(W,{size:"small",color:i.getSubjectColor(h.subject),label:"","text-color":"white",class:"mr-1"},{default:r(()=>[c(b(h.subject),1)]),_:2},1032,["color"]),d.items.length>1?(m(),S(W,{key:0,size:"x-small",class:"ml-1",color:h.weekType==="单"?"warning":"success"},{default:r(()=>[c(b(h.weekType)+"周 ",1)]),_:2},1032,["color"])):T("",!0)]))),128))]),y("td",null,[(m(!0),p(C,null,R(d.uniqueTimeSlots,(h,v)=>(m(),p("div",{key:v,class:"mb-1"},[n(W,{size:"x-small",class:"time-chip"},{default:r(()=>[c(b(i.formatTime(h.startTime))+" - "+b(i.formatTime(h.endTime)),1)]),_:2},1024)]))),128))]),y("td",null,[s.settings.hideTeacherName?(m(),p(C,{key:1},[c("-")],64)):(m(!0),p(C,{key:0},R(d.items,(h,v)=>(m(),p("div",{key:v,class:"mb-1"},b(h.teacher||"-"),1))),128))]),y("td",null,[s.settings.hideRoom?(m(),p(C,{key:1},[c("-")],64)):(m(!0),p(C,{key:0},R(d.items,(h,v)=>(m(),p("div",{key:v,class:"mb-1"},b(h.room||"-"),1))),128))]),y("td",null,[(m(!0),p(C,null,R(d.items,(h,v)=>(m(),p("div",{key:v,class:"mb-1"},b(h.weeks),1))),128))])]))),128))])]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),i.hasExportData&&i.daysWithSchedule.length===0?(m(),S(K,{key:1,type:"info",class:"mt-3"},{default:r(()=>[...e[51]||(e[51]=[c(" 没有找到任何课程数据 ",-1)])]),_:1})):T("",!0)]),_:1})]),_:1})):T("",!0)]),_:1}),n(xt,{class:""},{default:r(()=>[n(Dt),n(L,{color:"primary",variant:"outlined",loading:s.loading,disabled:!s.jsonText&&!s.file||s.loading,onClick:i.processInput,"prepend-icon":"mdi-cog-refresh"},{default:r(()=>[...e[52]||(e[52]=[c(" 处理数据 ",-1)])]),_:1},8,["loading","disabled","onClick"]),n(L,{color:"info",disabled:!i.hasExportData,onClick:i.showExportPreview,class:"ml-2","prepend-icon":"mdi-eye",border:""},{default:r(()=>[...e[53]||(e[53]=[c(" 刷新 ",-1)])]),_:1},8,["disabled","onClick"]),n(L,{color:"success",variant:"outlined",disabled:!i.hasExportData,onClick:i.downloadCSV,class:"ml-2","prepend-icon":"mdi-download",border:""},{default:r(()=>[...e[54]||(e[54]=[c(" 下载CSV ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const Ss=vt(qt,[["render",ds],["__scopeId","data-v-c07f22af"]]);export{Ss as default}; diff --git a/assets/dataProvider-CVD6IsoX.js b/assets/dataProvider-CVD6IsoX.js new file mode 100644 index 0000000..66d409d --- /dev/null +++ b/assets/dataProvider-CVD6IsoX.js @@ -0,0 +1,6 @@ +import{k as A,cm as Er,s as Ce}from"./index-GyS8nTIx.js";const ve=(e,t)=>t.some(r=>e instanceof r);let it,at;function Rr(){return it||(it=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Sr(){return at||(at=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Fe=new WeakMap,De=new WeakMap,ge=new WeakMap;function Ar(e){const t=new Promise((r,n)=>{const s=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{r(K(e.result)),s()},o=()=>{n(e.error),s()};e.addEventListener("success",i),e.addEventListener("error",o)});return ge.set(t,e),t}function xr(e){if(Fe.has(e))return;const t=new Promise((r,n)=>{const s=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{r(),s()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),s()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});Fe.set(e,t)}let Le={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return Fe.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return K(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function Pt(e){Le=e(Le)}function Or(e){return Sr().includes(e)?function(...t){return e.apply(Ie(this),t),K(this.request)}:function(...t){return K(e.apply(Ie(this),t))}}function Tr(e){return typeof e=="function"?Or(e):(e instanceof IDBTransaction&&xr(e),ve(e,Rr())?new Proxy(e,Le):e)}function K(e){if(e instanceof IDBRequest)return Ar(e);if(De.has(e))return De.get(e);const t=Tr(e);return t!==e&&(De.set(e,t),ge.set(t,e)),t}const Ie=e=>ge.get(e);function Cr(e,t,{blocked:r,upgrade:n,blocking:s,terminated:i}={}){const o=indexedDB.open(e,t),c=K(o);return n&&o.addEventListener("upgradeneeded",f=>{n(K(o.result),f.oldVersion,f.newVersion,K(o.transaction),f)}),r&&o.addEventListener("blocked",f=>r(f.oldVersion,f.newVersion,f)),c.then(f=>{i&&f.addEventListener("close",()=>i()),s&&f.addEventListener("versionchange",u=>s(u.oldVersion,u.newVersion,u))}).catch(()=>{}),c}const Dr=["get","getKey","getAll","getAllKeys","count"],Nr=["put","add","delete","clear"],Ne=new Map;function ct(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Ne.get(t))return Ne.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,s=Nr.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(s||Dr.includes(r)))return;const i=async function(o,...c){const f=this.transaction(o,s?"readwrite":"readonly");let u=f.store;return n&&(u=u.index(c.shift())),(await Promise.all([u[r](...c),s&&f.done]))[0]};return Ne.set(t,i),i}Pt(e=>({...e,get:(t,r,n)=>ct(t,r)||e.get(t,r,n),has:(t,r)=>!!ct(t,r)||e.has(t,r)}));const _r=["continue","continuePrimaryKey","advance"],ut={},je=new WeakMap,Bt=new WeakMap,Ur={get(e,t){if(!_r.includes(t))return e[t];let r=ut[t];return r||(r=ut[t]=function(...n){je.set(this,Bt.get(this)[t](...n))}),r}};async function*Pr(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const r=new Proxy(t,Ur);for(Bt.set(r,t),ge.set(r,Ie(t));t;)yield r,t=await(je.get(r)||t.continue()),je.delete(r)}function lt(e,t){return t===Symbol.asyncIterator&&ve(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&ve(e,[IDBIndex,IDBObjectStore])}Pt(e=>({...e,get(t,r,n){return lt(t,r)?Pr:e.get(t,r,n)},has(t,r){return lt(t,r)||e.has(t,r)}}));const Br="ClassworksDB",kr=2,_e=async()=>Cr(Br,kr,{upgrade(e){e.objectStoreNames.contains("kv")||e.createObjectStore("kv"),e.objectStoreNames.contains("system")||e.createObjectStore("system")}}),fe={async loadData(e){try{const r=await(await _e()).get("kv",e);return r?q(JSON.parse(r)):O("数据不存在","NOT_FOUND")}catch(t){return O("读取本地数据失败:"+t)}},async saveData(e,t){try{return await(await _e()).put("kv",JSON.stringify(t),e),q(!0)}catch(r){return O("保存本地数据失败:"+r)}},async loadKeys(e={}){try{const s=await(await _e()).transaction(["kv"],"readonly").objectStore("kv").getAllKeys(),{sortDir:i="asc",limit:o=100,skip:c=0}=e,f=s.sort((y,w)=>i==="desc"?w.localeCompare(y):y.localeCompare(w)),u=f.length,l=f.slice(c,c+o),p={keys:l,total_rows:u,current_page:{limit:o,skip:c,count:l.length},load_more:null};return q(p)}catch(t){return O("获取本地键名列表失败:"+t.message)}}};function kt(e,t){return function(){return e.apply(t,arguments)}}const{toString:vr}=Object.prototype,{getPrototypeOf:Je}=Object,{iterator:Ee,toStringTag:vt}=Symbol,Re=(e=>t=>{const r=vr.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),B=e=>(e=e.toLowerCase(),t=>Re(t)===e),Se=e=>t=>typeof t===e,{isArray:Z}=Array,X=Se("undefined");function se(e){return e!==null&&!X(e)&&e.constructor!==null&&!X(e.constructor)&&C(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ft=B("ArrayBuffer");function Fr(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ft(e.buffer),t}const Lr=Se("string"),C=Se("function"),Lt=Se("number"),oe=e=>e!==null&&typeof e=="object",Ir=e=>e===!0||e===!1,pe=e=>{if(Re(e)!=="object")return!1;const t=Je(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(vt in e)&&!(Ee in e)},jr=e=>{if(!oe(e)||se(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Mr=B("Date"),$r=B("File"),Hr=B("Blob"),qr=B("FileList"),Kr=e=>oe(e)&&C(e.pipe),zr=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||C(e.append)&&((t=Re(e))==="formdata"||t==="object"&&C(e.toString)&&e.toString()==="[object FormData]"))},Vr=B("URLSearchParams"),[Jr,Wr,Xr,Zr]=["ReadableStream","Request","Response","Headers"].map(B),Gr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ie(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),Z(e))for(n=0,s=e.length;n0;)if(s=r[n],t===s.toLowerCase())return s;return null}const H=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jt=e=>!X(e)&&e!==H;function Me(){const{caseless:e,skipUndefined:t}=jt(this)&&this||{},r={},n=(s,i)=>{const o=e&&It(r,i)||i;pe(r[o])&&pe(s)?r[o]=Me(r[o],s):pe(s)?r[o]=Me({},s):Z(s)?r[o]=s.slice():(!t||!X(s))&&(r[o]=s)};for(let s=0,i=arguments.length;s(ie(t,(s,i)=>{r&&C(s)?e[i]=kt(s,r):e[i]=s},{allOwnKeys:n}),e),Yr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),en=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},tn=(e,t,r,n)=>{let s,i,o;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!n||n(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=r!==!1&&Je(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},rn=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},nn=e=>{if(!e)return null;if(Z(e))return e;let t=e.length;if(!Lt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},sn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Je(Uint8Array)),on=(e,t)=>{const n=(e&&e[Ee]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},an=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},cn=B("HTMLFormElement"),un=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),ft=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ln=B("RegExp"),Mt=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ie(r,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(n[i]=o||s)}),Object.defineProperties(e,n)},fn=e=>{Mt(e,(t,r)=>{if(C(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(C(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},dn=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return Z(e)?n(e):n(String(e).split(t)),r},hn=()=>{},pn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function mn(e){return!!(e&&C(e.append)&&e[vt]==="FormData"&&e[Ee])}const yn=e=>{const t=new Array(10),r=(n,s)=>{if(oe(n)){if(t.indexOf(n)>=0)return;if(se(n))return n;if(!("toJSON"in n)){t[s]=n;const i=Z(n)?[]:{};return ie(n,(o,c)=>{const f=r(o,s+1);!X(f)&&(i[c]=f)}),t[s]=void 0,i}}return n};return r(e,0)},bn=B("AsyncFunction"),wn=e=>e&&(oe(e)||C(e))&&C(e.then)&&C(e.catch),$t=((e,t)=>e?setImmediate:t?((r,n)=>(H.addEventListener("message",({source:s,data:i})=>{s===H&&i===r&&n.length&&n.shift()()},!1),s=>{n.push(s),H.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",C(H.postMessage)),gn=typeof queueMicrotask<"u"?queueMicrotask.bind(H):typeof process<"u"&&process.nextTick||$t,En=e=>e!=null&&C(e[Ee]),a={isArray:Z,isArrayBuffer:Ft,isBuffer:se,isFormData:zr,isArrayBufferView:Fr,isString:Lr,isNumber:Lt,isBoolean:Ir,isObject:oe,isPlainObject:pe,isEmptyObject:jr,isReadableStream:Jr,isRequest:Wr,isResponse:Xr,isHeaders:Zr,isUndefined:X,isDate:Mr,isFile:$r,isBlob:Hr,isRegExp:ln,isFunction:C,isStream:Kr,isURLSearchParams:Vr,isTypedArray:sn,isFileList:qr,forEach:ie,merge:Me,extend:Qr,trim:Gr,stripBOM:Yr,inherits:en,toFlatObject:tn,kindOf:Re,kindOfTest:B,endsWith:rn,toArray:nn,forEachEntry:on,matchAll:an,isHTMLForm:cn,hasOwnProperty:ft,hasOwnProp:ft,reduceDescriptors:Mt,freezeMethods:fn,toObjectSet:dn,toCamelCase:un,noop:hn,toFiniteNumber:pn,findKey:It,global:H,isContextDefined:jt,isSpecCompliantForm:mn,toJSONObject:yn,isAsyncFn:bn,isThenable:wn,setImmediate:$t,asap:gn,isIterable:En};function b(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(b,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Ht=b.prototype,qt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qt[e]={value:e}});Object.defineProperties(b,qt);Object.defineProperty(Ht,"isAxiosError",{value:!0});b.from=(e,t,r,n,s,i)=>{const o=Object.create(Ht);a.toFlatObject(e,o,function(l){return l!==Error.prototype},u=>u!=="isAxiosError");const c=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return b.call(o,c,f,r,n,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const Rn=null;function $e(e){return a.isPlainObject(e)||a.isArray(e)}function Kt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function dt(e,t,r){return e?e.concat(t).map(function(s,i){return s=Kt(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function Sn(e){return a.isArray(e)&&!e.some($e)}const An=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Ae(e,t,r){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=a.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!a.isUndefined(h[m])});const n=r.metaTokens,s=r.visitor||l,i=r.dots,o=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(a.isBoolean(d))return d.toString();if(!f&&a.isBlob(d))throw new b("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function l(d,m,h){let E=d;if(d&&!h&&typeof d=="object"){if(a.endsWith(m,"{}"))m=n?m:m.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&Sn(d)||(a.isFileList(d)||a.endsWith(m,"[]"))&&(E=a.toArray(d)))return m=Kt(m),E.forEach(function(R,T){!(a.isUndefined(R)||R===null)&&t.append(o===!0?dt([m],T,i):o===null?m:m+"[]",u(R))}),!1}return $e(d)?!0:(t.append(dt(h,m,i),u(d)),!1)}const p=[],y=Object.assign(An,{defaultVisitor:l,convertValue:u,isVisitable:$e});function w(d,m){if(!a.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(d),a.forEach(d,function(E,N){(!(a.isUndefined(E)||E===null)&&s.call(t,E,a.isString(N)?N.trim():N,m,y))===!0&&w(E,m?m.concat(N):[N])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function ht(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function We(e,t){this._pairs=[],e&&Ae(e,this,t)}const zt=We.prototype;zt.append=function(t,r){this._pairs.push([t,r])};zt.toString=function(t){const r=t?function(n){return t.call(this,n,ht)}:ht;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function xn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Vt(e,t,r){if(!t)return e;const n=r&&r.encode||xn;a.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let i;if(s?i=s(t,r):i=a.isURLSearchParams(t)?t.toString():new We(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class pt{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},On=typeof URLSearchParams<"u"?URLSearchParams:We,Tn=typeof FormData<"u"?FormData:null,Cn=typeof Blob<"u"?Blob:null,Dn={isBrowser:!0,classes:{URLSearchParams:On,FormData:Tn,Blob:Cn},protocols:["http","https","file","blob","url","data"]},Xe=typeof window<"u"&&typeof document<"u",He=typeof navigator=="object"&&navigator||void 0,Nn=Xe&&(!He||["ReactNative","NativeScript","NS"].indexOf(He.product)<0),_n=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Un=Xe&&window.location.href||"http://localhost",Pn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xe,hasStandardBrowserEnv:Nn,hasStandardBrowserWebWorkerEnv:_n,navigator:He,origin:Un},Symbol.toStringTag,{value:"Module"})),x={...Pn,...Dn};function Bn(e,t){return Ae(e,new x.classes.URLSearchParams,{visitor:function(r,n,s,i){return x.isNode&&a.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function kn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vn(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n=r.length;return o=!o&&a.isArray(s)?s.length:o,f?(a.hasOwnProp(s,o)?s[o]=[s[o],n]:s[o]=n,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(r,n,s[o],i)&&a.isArray(s[o])&&(s[o]=vn(s[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const r={};return a.forEachEntry(e,(n,s)=>{t(kn(n),s,r,0)}),r}return null}function Fn(e,t,r){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ae={transitional:Jt,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Wt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Bn(t,this.formSerializer).toString();if((c=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Ae(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),Fn(t)):t}],transformResponse:[function(t){const r=this.transitional||ae.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||s)){const o=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?b.from(c,b.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ae.headers[e]={}});const Ln=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),In=e=>{const t={};let r,n,s;return e&&e.split(` +`).forEach(function(o){s=o.indexOf(":"),r=o.substring(0,s).trim().toLowerCase(),n=o.substring(s+1).trim(),!(!r||t[r]&&Ln[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},mt=Symbol("internals");function ee(e){return e&&String(e).trim().toLowerCase()}function me(e){return e===!1||e==null?e:a.isArray(e)?e.map(me):String(e)}function jn(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Mn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ue(e,t,r,n,s){if(a.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!a.isString(t)){if(a.isString(n))return t.indexOf(n)!==-1;if(a.isRegExp(n))return n.test(t)}}function $n(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Hn(e,t){const r=a.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,i,o){return this[n].call(this,t,s,i,o)},configurable:!0})})}let D=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(c,f,u){const l=ee(f);if(!l)throw new Error("header name must be a non-empty string");const p=a.findKey(s,l);(!p||s[p]===void 0||u===!0||u===void 0&&s[p]!==!1)&&(s[p||f]=me(c))}const o=(c,f)=>a.forEach(c,(u,l)=>i(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(a.isString(t)&&(t=t.trim())&&!Mn(t))o(In(t),r);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,u;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[u=l[0]]=(f=c[u])?a.isArray(f)?[...f,l[1]]:[f,l[1]]:l[1]}o(c,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=ee(t),t){const n=a.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return jn(s);if(a.isFunction(r))return r.call(this,s,n);if(a.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ee(t),t){const n=a.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Ue(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(o){if(o=ee(o),o){const c=a.findKey(n,o);c&&(!r||Ue(n,n[c],c,r))&&(delete n[c],s=!0)}}return a.isArray(t)?t.forEach(i):i(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const i=r[n];(!t||Ue(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const r=this,n={};return a.forEach(this,(s,i)=>{const o=a.findKey(n,i);if(o){r[o]=me(s),delete r[i];return}const c=t?$n(i):String(i).trim();c!==i&&delete r[i],r[c]=me(s),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return a.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&a.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[mt]=this[mt]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=ee(o);n[c]||(Hn(s,o),n[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(D.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});a.freezeMethods(D);function Pe(e,t){const r=this||ae,n=t||r,s=D.from(n.headers);let i=n.data;return a.forEach(e,function(c){i=c.call(r,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Xt(e){return!!(e&&e.__CANCEL__)}function G(e,t,r){b.call(this,e??"canceled",b.ERR_CANCELED,t,r),this.name="CanceledError"}a.inherits(G,b,{__CANCEL__:!0});function Zt(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new b("Request failed with status code "+r.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function qn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kn(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=n[i];o||(o=u),r[s]=f,n[s]=u;let p=i,y=0;for(;p!==s;)y+=r[p++],p=p%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-o{r=l,s=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const l=Date.now(),p=l-r;p>=n?o(u,l):(s=u,i||(i=setTimeout(()=>{i=null,o(s)},n-p)))},()=>s&&o(s)]}const we=(e,t,r=3)=>{let n=0;const s=Kn(50,250);return zn(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,f=o-n,u=s(f),l=o<=c;n=o;const p={loaded:o,total:c,progress:c?o/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-o)/u:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},r)},yt=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},bt=e=>(...t)=>a.asap(()=>e(...t)),Vn=x.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,x.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(x.origin),x.navigator&&/(msie|trident)/i.test(x.navigator.userAgent)):()=>!0,Jn=x.hasStandardBrowserEnv?{write(e,t,r,n,s,i,o){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(r)&&c.push(`expires=${new Date(r).toUTCString()}`),a.isString(n)&&c.push(`path=${n}`),a.isString(s)&&c.push(`domain=${s}`),i===!0&&c.push("secure"),a.isString(o)&&c.push(`SameSite=${o}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Wn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Gt(e,t,r){let n=!Wn(t);return e&&(n||r==!1)?Xn(e,t):t}const wt=e=>e instanceof D?{...e}:e;function V(e,t){t=t||{};const r={};function n(u,l,p,y){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:y},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,p,y){if(a.isUndefined(l)){if(!a.isUndefined(u))return n(void 0,u,p,y)}else return n(u,l,p,y)}function i(u,l){if(!a.isUndefined(l))return n(void 0,l)}function o(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function c(u,l,p){if(p in t)return n(u,l);if(p in e)return n(void 0,u)}const f={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(u,l,p)=>s(wt(u),wt(l),p,!0)};return a.forEach(Object.keys({...e,...t}),function(l){const p=f[l]||s,y=p(e[l],t[l],l);a.isUndefined(y)&&p!==c||(r[l]=y)}),r}const Qt=e=>{const t=V({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=t;if(t.headers=o=D.from(o),t.url=Vt(Gt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(r)){if(x.hasStandardBrowserEnv||x.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(a.isFunction(r.getHeaders)){const f=r.getHeaders(),u=["content-type","content-length"];Object.entries(f).forEach(([l,p])=>{u.includes(l.toLowerCase())&&o.set(l,p)})}}if(x.hasStandardBrowserEnv&&(n&&a.isFunction(n)&&(n=n(t)),n||n!==!1&&Vn(t.url))){const f=s&&i&&Jn.read(i);f&&o.set(s,f)}return t},Zn=typeof XMLHttpRequest<"u",Gn=Zn&&function(e){return new Promise(function(r,n){const s=Qt(e);let i=s.data;const o=D.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,p,y,w,d;function m(){w&&w(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function E(){if(!h)return;const R=D.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),U={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:R,config:e,request:h};Zt(function(_){r(_),m()},function(_){n(_),m()},U),h=null}"onloadend"in h?h.onloadend=E:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(E)},h.onabort=function(){h&&(n(new b("Request aborted",b.ECONNABORTED,e,h)),h=null)},h.onerror=function(T){const U=T&&T.message?T.message:"Network Error",j=new b(U,b.ERR_NETWORK,e,h);j.event=T||null,n(j),h=null},h.ontimeout=function(){let T=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const U=s.transitional||Jt;s.timeoutErrorMessage&&(T=s.timeoutErrorMessage),n(new b(T,U.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,e,h)),h=null},i===void 0&&o.setContentType(null),"setRequestHeader"in h&&a.forEach(o.toJSON(),function(T,U){h.setRequestHeader(U,T)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([y,d]=we(u,!0),h.addEventListener("progress",y)),f&&h.upload&&([p,w]=we(f),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(l=R=>{h&&(n(!R||R.type?new G(null,e,h):R),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const N=qn(s.url);if(N&&x.protocols.indexOf(N)===-1){n(new b("Unsupported protocol "+N+":",b.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Qn=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const i=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;n.abort(l instanceof b?l:new G(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new b(`timeout ${t} of ms exceeded`,b.ETIMEDOUT))},t);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:f}=n;return f.unsubscribe=()=>a.asap(c),f}},Yn=function*(e,t){let r=e.byteLength;if(r{const s=es(e,t);let i=0,o,c=f=>{o||(o=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let p=l.byteLength;if(r){let y=i+=p;r(y)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Et=64*1024,{isFunction:de}=a,rs=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:Rt,TextEncoder:St}=a.global,At=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ns=e=>{e=a.merge.call({skipUndefined:!0},rs,e);const{fetch:t,Request:r,Response:n}=e,s=t?de(t):typeof fetch=="function",i=de(r),o=de(n);if(!s)return!1;const c=s&&de(Rt),f=s&&(typeof St=="function"?(d=>m=>d.encode(m))(new St):async d=>new Uint8Array(await new r(d).arrayBuffer())),u=i&&c&&At(()=>{let d=!1;const m=new r(x.origin,{body:new Rt,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!m}),l=o&&c&&At(()=>a.isReadableStream(new n("").body)),p={stream:l&&(d=>d.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!p[d]&&(p[d]=(m,h)=>{let E=m&&m[d];if(E)return E.call(m);throw new b(`Response type '${d}' is not supported`,b.ERR_NOT_SUPPORT,h)})});const y=async d=>{if(d==null)return 0;if(a.isBlob(d))return d.size;if(a.isSpecCompliantForm(d))return(await new r(x.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(a.isArrayBufferView(d)||a.isArrayBuffer(d))return d.byteLength;if(a.isURLSearchParams(d)&&(d=d+""),a.isString(d))return(await f(d)).byteLength},w=async(d,m)=>{const h=a.toFiniteNumber(d.getContentLength());return h??y(m)};return async d=>{let{url:m,method:h,data:E,signal:N,cancelToken:R,timeout:T,onDownloadProgress:U,onUploadProgress:j,responseType:_,headers:Oe,withCredentials:ce="same-origin",fetchOptions:et}=Qt(d),tt=t||fetch;_=_?(_+"").toLowerCase():"text";let ue=Qn([N,R&&R.toAbortSignal()],T),Y=null;const M=ue&&ue.unsubscribe&&(()=>{ue.unsubscribe()});let rt;try{if(j&&u&&h!=="get"&&h!=="head"&&(rt=await w(Oe,E))!==0){let I=new r(m,{method:"POST",body:E,duplex:"half"}),J;if(a.isFormData(E)&&(J=I.headers.get("content-type"))&&Oe.setContentType(J),I.body){const[Te,le]=yt(rt,we(bt(j)));E=gt(I.body,Et,Te,le)}}a.isString(ce)||(ce=ce?"include":"omit");const k=i&&"credentials"in r.prototype,nt={...et,signal:ue,method:h.toUpperCase(),headers:Oe.normalize().toJSON(),body:E,duplex:"half",credentials:k?ce:void 0};Y=i&&new r(m,nt);let L=await(i?tt(Y,et):tt(m,nt));const st=l&&(_==="stream"||_==="response");if(l&&(U||st&&M)){const I={};["status","statusText","headers"].forEach(ot=>{I[ot]=L[ot]});const J=a.toFiniteNumber(L.headers.get("content-length")),[Te,le]=U&&yt(J,we(bt(U),!0))||[];L=new n(gt(L.body,Et,Te,()=>{le&&le(),M&&M()}),I)}_=_||"text";let gr=await p[a.findKey(p,_)||"text"](L,d);return!st&&M&&M(),await new Promise((I,J)=>{Zt(I,J,{data:gr,headers:D.from(L.headers),status:L.status,statusText:L.statusText,config:d,request:Y})})}catch(k){throw M&&M(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,d,Y),{cause:k.cause||k}):b.from(k,k&&k.code,d,Y)}}},ss=new Map,Yt=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:s}=t,i=[n,s,r];let o=i.length,c=o,f,u,l=ss;for(;c--;)f=i[c],u=l.get(f),u===void 0&&l.set(f,u=c?new Map:ns(t)),l=u;return u};Yt();const Ze={http:Rn,xhr:Gn,fetch:{get:Yt}};a.forEach(Ze,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const xt=e=>`- ${e}`,os=e=>a.isFunction(e)||e===null||e===!1;function is(e,t){e=a.isArray(e)?e:[e];const{length:r}=e;let n,s;const i={};for(let o=0;o`adapter ${f} `+(u===!1?"is not supported by the environment":"is not available in the build"));let c=r?o.length>1?`since : +`+o.map(xt).join(` +`):" "+xt(o[0]):"as no adapter specified";throw new b("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const er={getAdapter:is,adapters:Ze};function Be(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new G(null,e)}function Ot(e){return Be(e),e.headers=D.from(e.headers),e.data=Pe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),er.getAdapter(e.adapter||ae.adapter,e)(e).then(function(n){return Be(e),n.data=Pe.call(e,e.transformResponse,n),n.headers=D.from(n.headers),n},function(n){return Xt(n)||(Be(e),n&&n.response&&(n.response.data=Pe.call(e,e.transformResponse,n.response),n.response.headers=D.from(n.response.headers))),Promise.reject(n)})}const tr="1.13.2",xe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Tt={};xe.transitional=function(t,r,n){function s(i,o){return"[Axios v"+tr+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,c)=>{if(t===!1)throw new b(s(o," has been removed"+(r?" in "+r:"")),b.ERR_DEPRECATED);return r&&!Tt[o]&&(Tt[o]=!0,console.warn(s(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,c):!0}};xe.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function as(e,t,r){if(typeof e!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],o=t[i];if(o){const c=e[i],f=c===void 0||o(c,i,e);if(f!==!0)throw new b("option "+i+" must be "+f,b.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new b("Unknown option "+i,b.ERR_BAD_OPTION)}}const ye={assertOptions:as,validators:xe},v=ye.validators;let z=class{constructor(t){this.defaults=t||{},this.interceptors={request:new pt,response:new pt}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=` +`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=V(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&ye.assertOptions(n,{silentJSONParsing:v.transitional(v.boolean),forcedJSONParsing:v.transitional(v.boolean),clarifyTimeoutError:v.transitional(v.boolean)},!1),s!=null&&(a.isFunction(s)?r.paramsSerializer={serialize:s}:ye.assertOptions(s,{encode:v.function,serialize:v.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ye.assertOptions(r,{baseUrl:v.spelling("baseURL"),withXsrfToken:v.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&a.merge(i.common,i[r.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),r.headers=D.concat(o,i);const c=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(f=f&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let l,p=0,y;if(!f){const d=[Ot.bind(this),void 0];for(d.unshift(...c),d.push(...u),y=d.length,l=Promise.resolve(r);p{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{n.subscribe(c),i=c}).then(s);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,c){n.reason||(n.reason=new G(i,o,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new rr(function(s){t=s}),cancel:t}}};function us(e){return function(r){return e.apply(null,r)}}function ls(e){return a.isObject(e)&&e.isAxiosError===!0}const qe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(qe).forEach(([e,t])=>{qe[t]=e});function nr(e){const t=new z(e),r=kt(z.prototype.request,t);return a.extend(r,z.prototype,t,{allOwnKeys:!0}),a.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return nr(V(e,s))},r}const g=nr(ae);g.Axios=z;g.CanceledError=G;g.CancelToken=cs;g.isCancel=Xt;g.VERSION=tr;g.toFormData=Ae;g.AxiosError=b;g.Cancel=g.CanceledError;g.all=function(t){return Promise.all(t)};g.spread=us;g.isAxiosError=ls;g.mergeConfig=V;g.AxiosHeaders=D;g.formToJSON=e=>Wt(a.isHTMLForm(e)?new FormData(e):e);g.getAdapter=er.getAdapter;g.HttpStatusCode=qe;g.default=g;const{Axios:Bs,AxiosError:ks,CanceledError:vs,isCancel:Fs,CancelToken:Ls,VERSION:Is,all:js,Cancel:Ms,isAxiosError:$s,spread:Hs,toFormData:qs,AxiosHeaders:Ks,HttpStatusCode:zs,formToJSON:Vs,getAdapter:Js,mergeConfig:Ws}=g;function fs(e,t){return"headers"in e&&typeof e.headers=="object"&&!Array.isArray(e.headers)?ke(e.headers):"getHeaders"in e&&typeof e.getHeaders=="function"?ke(e.getHeaders()):ke(e)}function ke(e,t){const r=F(e,"ratelimit");if(r)return ms(r);let n;if(F(e,"ratelimit-remaining"))n="ratelimit-";else if(F(e,"x-ratelimit-remaining"))n="x-ratelimit-";else if(F(e,"x-rate-limit-remaining"))n="x-rate-limit-";else return;const s=P(F(e,`${n}limit`)),i=P(F(e,`${n}used`))||P(F(e,`${n}observed`)),o=P(F(e,`${n}remaining`));let c;const f=F(e,`${n}reset`);switch(void 0){case"date":{c=sr(f??"");break}case"unix":{c=Ke(f??"");break}case"seconds":{c=or(f??"");break}case"milliseconds":{c=ys(f??"");break}default:if(f)c=ws(f);else{const l=F(e,"retry-after");l&&(c=Ke(l))}}return{limit:Number.isNaN(s)?i+o:s,used:Number.isNaN(i)?s-o:i,remaining:o,reset:c}}var ds=/limit\s*=\s*(\d+)/i,hs=/remaining\s*=\s*(\d+)/i,ps=/reset\s*=\s*(\d+)/i;function ms(e){var t,r,n;const s=P((t=ds.exec(e))==null?void 0:t[1]),i=P((r=hs.exec(e))==null?void 0:r[1]),o=P((n=ps.exec(e))==null?void 0:n[1]),c=Ge(o);return{limit:s,used:s-i,remaining:i,reset:c}}function Ge(e){const t=new Date;return t.setSeconds(t.getSeconds()+e),t}function P(e){return typeof e=="number"?e:Number.parseInt(e??"",10)}function F(e,t){var r;if("get"in e&&typeof e.get=="function")return(r=e.get(t))!=null?r:void 0;if(t in e&&typeof e[t]=="string")return e[t]}function sr(e){return new Date(e)}function Ke(e){const t=P(e);return new Date(t*1e3)}function or(e){const t=P(e);return Ge(t)}function ys(e){const t=P(e);return Ge(t/1e3)}var bs=/[a-z]/i;function ws(e){if(bs.test(e))return sr(e);const t=P(e);return t&&t>1e9?Ke(t):or(t)}const ir="3.7.8",gs=ir,Q=typeof Buffer=="function",Ct=typeof TextDecoder=="function"?new TextDecoder:void 0,Dt=typeof TextEncoder=="function"?new TextEncoder:void 0,Es="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ne=Array.prototype.slice.call(Es),he=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(ne),Rs=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,S=String.fromCharCode.bind(String),Nt=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),ar=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),cr=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),ur=e=>{let t,r,n,s,i="";const o=e.length%3;for(let c=0;c255||(n=e.charCodeAt(c++))>255||(s=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|s,i+=ne[t>>18&63]+ne[t>>12&63]+ne[t>>6&63]+ne[t&63]}return o?i.slice(0,o-3)+"===".substring(o):i},Qe=typeof btoa=="function"?e=>btoa(e):Q?e=>Buffer.from(e,"binary").toString("base64"):ur,ze=Q?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,s=e.length;nt?ar(ze(e)):ze(e),Ss=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?S(192|t>>>6)+S(128|t&63):S(224|t>>>12&15)+S(128|t>>>6&63)+S(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return S(240|t>>>18&7)+S(128|t>>>12&63)+S(128|t>>>6&63)+S(128|t&63)}},As=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,lr=e=>e.replace(As,Ss),_t=Q?e=>Buffer.from(e,"utf8").toString("base64"):Dt?e=>ze(Dt.encode(e)):e=>Qe(lr(e)),W=(e,t=!1)=>t?ar(_t(e)):_t(e),Ut=e=>W(e,!0),xs=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Os=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return S((r>>>10)+55296)+S((r&1023)+56320);case 3:return S((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return S((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},fr=e=>e.replace(xs,Os),dr=e=>{if(e=e.replace(/\s+/g,""),!Rs.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r,n,s=[];for(let i=0;i>16&255)):n===64?s.push(S(t>>16&255,t>>8&255)):s.push(S(t>>16&255,t>>8&255,t&255));return s.join("")},Ye=typeof atob=="function"?e=>atob(cr(e)):Q?e=>Buffer.from(e,"base64").toString("binary"):dr,hr=Q?e=>Nt(Buffer.from(e,"base64")):e=>Nt(Ye(e).split("").map(t=>t.charCodeAt(0))),pr=e=>hr(mr(e)),Ts=Q?e=>Buffer.from(e,"base64").toString("utf8"):Ct?e=>Ct.decode(hr(e)):e=>fr(Ye(e)),mr=e=>cr(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Ve=e=>Ts(mr(e)),Cs=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},yr=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),br=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,yr(r));e("fromBase64",function(){return Ve(this)}),e("toBase64",function(t){return W(this,t)}),e("toBase64URI",function(){return W(this,!0)}),e("toBase64URL",function(){return W(this,!0)}),e("toUint8Array",function(){return pr(this)})},wr=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,yr(r));e("toBase64",function(t){return be(this,t)}),e("toBase64URI",function(){return be(this,!0)}),e("toBase64URL",function(){return be(this,!0)})},Ds=()=>{br(),wr()},Ns={version:ir,VERSION:gs,atob:Ye,atobPolyfill:dr,btoa:Qe,btoaPolyfill:ur,fromBase64:Ve,toBase64:W,encode:W,encodeURI:Ut,encodeURL:Ut,utob:lr,btou:fr,decode:Ve,isValid:Cs,fromUint8Array:be,toUint8Array:pr,extendString:br,extendUint8Array:wr,extendBuiltins:Ds},$=g.create({timeout:1e4});$.interceptors.request.use(e=>{const t=A("server.provider");if(t==="kv-server"||t==="classworkscloud"){const r=A("server.kvToken");if(r)e.headers["x-app-token"]=r;else{const n=A("server.siteKey");n&&(e.headers["x-site-key"]=Ns.encode(n))}}return e},e=>(console.log(e),Promise.reject(e)));$.interceptors.response.use(e=>e,e=>{if(e.response&&e.response.status===429)try{const t=fs(e.response);t&&Er.show(t.reset,e.config.url,e.config.method.toUpperCase())}catch(t){console.error("解析限速头信息失败:",t)}return Promise.reject(e)});const te=()=>{const e={Accept:"application/json"},t=A("server.kvToken"),r=A("server.siteKey");return t?e["x-app-token"]=t:r&&(e["x-site-key"]=r),e},re={async loadNamespaceInfo(){var e,t;try{const r=A("server.domain"),n=await $.get(`${r}/kv/_info`,{headers:te()});return q(n.data)}catch(r){return console.error("获取命名空间信息失败:",r),O(((t=(e=r.response)==null?void 0:e.data)==null?void 0:t.message)||"获取命名空间信息失败","NAMESPACE_ERROR")}},async updateNamespaceInfo(e){var t,r;try{const n=A("server.domain");return await $.put(`${n}/kv/_info`,e,{headers:te()})}catch(n){return O(((r=(t=n.response)==null?void 0:t.data)==null?void 0:r.message)||"更新命名空间信息失败","NAMESPACE_ERROR")}},async loadData(e){var t,r,n;try{const s=A("server.domain"),i=await $.get(`${s}/kv/${e}`,{headers:te()});return q(i.data)}catch(s){return((t=s.response)==null?void 0:t.status)===404?O("数据不存在","NOT_FOUND"):(console.log(s),O(((n=(r=s.response)==null?void 0:r.data)==null?void 0:n.message)||"服务器连接失败","NETWORK_ERROR"))}},async saveData(e,t){var r,n;try{const s=A("server.domain");return await $.post(`${s}/kv/${e}`,t,{headers:te()}),q(!0)}catch(s){return console.log(s),O(((n=(r=s.response)==null?void 0:r.data)==null?void 0:n.message)||"保存失败","SAVE_ERROR")}},async loadKeys(e={}){var t,r,n,s,i;try{const o=A("server.domain"),{sortBy:c="key",sortDir:f="asc",limit:u=100,skip:l=0}=e,p=new URLSearchParams({sortBy:c,sortDir:f,limit:u.toString(),skip:l.toString()}),y=await $.get(`${o}/kv/_keys?${p}`,{headers:te()});return q(y.data)}catch(o){return((t=o.response)==null?void 0:t.status)===404?O("命名空间不存在","NOT_FOUND"):((r=o.response)==null?void 0:r.status)===403?O("无权限访问此命名空间","PERMISSION_DENIED"):((n=o.response)==null?void 0:n.status)===401?O("认证失败","UNAUTHORIZED"):(console.log(o),O(((i=(s=o.response)==null?void 0:s.data)==null?void 0:i.message)||"获取键名列表失败","NETWORK_ERROR"))}}},q=e=>e,O=(e,t="UNKNOWN_ERROR")=>({success:!1,error:{code:t,message:e}}),Xs={loadData:async e=>{const t=A("server.provider");return t==="kv-server"||t==="classworkscloud"?re.loadData(e):fe.loadData(e)},saveData:async(e,t)=>{const r=A("server.provider");return r==="kv-server"||r==="classworkscloud"?re.saveData(e,t):fe.saveData(e,t)},loadKeys:async(e={})=>{const t=A("server.provider");return t==="kv-server"||t==="classworkscloud"?re.loadKeys(e):fe.loadKeys(e)},async getKeyCloudUrl(e,t={}){var s;const{migrateFromLocal:r=!0,autoConfigureCloud:n=!0}=t;try{let i=A("server.domain"),o=A("server.siteKey");const c=A("device.uuid");let f=!1;if(!i||!c)if(n){const y={"server.domain":"https://kv.wuyuan.dev","server.siteKey":""};i||(Ce("server.domain",y["server.domain"]),i=y["server.domain"],f=!0),o||(Ce("server.siteKey",y["server.siteKey"]),o=y["server.siteKey"]),Ce("server.provider","classworkscloud")}else return O("云端配置无效,请检查服务器域名和设备UUID","CONFIG_ERROR");let u=!1;if(r)try{const y=await fe.loadData(e);if(y&&y.success!==!1){const w=await re.loadData(e);if(w&&w.success===!1&&((s=w.error)==null?void 0:s.code)==="NOT_FOUND"){const d=await re.saveData(e,y);d&&d.success!==!1&&(u=!0,console.log(`已成功将键 ${e} 的数据从本地迁移到云端`))}}}catch(y){console.warn(`迁移键 ${e} 的数据时出错:`,y)}const l=A("server.kvToken");return{success:!0,url:`${i}/kv/${e}?token=${l}`,migrated:u,configured:f}}catch(i){return console.error("获取键云端地址时出错:",i),O(i.message||"获取键云端地址失败","CLOUD_URL_ERROR")}}};export{$ as a,fe as b,g as c,Xs as d,Ns as g,re as k,Cr as o}; diff --git a/assets/dataProvider-bw19OswA.js b/assets/dataProvider-bw19OswA.js deleted file mode 100644 index a2c6f8e..0000000 --- a/assets/dataProvider-bw19OswA.js +++ /dev/null @@ -1 +0,0 @@ -import{o as S,a as f}from"./axios-CF6XU-xP.js";import{k as i,s as O}from"./index-BBVdlVQD.js";const h="ClassworksDB",E=2,N=async()=>S(h,E,{upgrade(e){e.objectStoreNames.contains("kv")||e.createObjectStore("kv"),e.objectStoreNames.contains("system")||e.createObjectStore("system")}}),D={async loadData(e){try{const s=await(await N()).get("kv",e);return s?d(JSON.parse(s)):n("数据不存在","NOT_FOUND")}catch(r){return n("读取本地数据失败:"+r)}},async saveData(e,r){try{return await(await N()).put("kv",JSON.stringify(r),e),d(!0)}catch(s){return n("保存本地数据失败:"+s)}},async loadKeys(e={}){try{const t=await(await N()).transaction(["kv"],"readonly").objectStore("kv").getAllKeys(),{sortDir:c="asc",limit:l=100,skip:u=0}=e,v=t.sort((o,m)=>c==="desc"?m.localeCompare(o):o.localeCompare(m)),y=v.length,p=v.slice(u,u+l),g={keys:p,total_rows:y,current_page:{limit:l,skip:u,count:p.length},load_more:null};return d(g)}catch(r){return n("获取本地键名列表失败:"+r.message)}}},k=()=>{const e={Accept:"application/json"},r=i("server.kvToken"),s=i("server.siteKey");return r?e["x-app-token"]=r:s&&(e["x-site-key"]=s),e},R={async loadNamespaceInfo(){var e,r;try{const s=i("server.domain"),a=await f.get(`${s}/kv/_info`,{headers:k()});return d(a.data)}catch(s){return console.error("获取命名空间信息失败:",s),n(((r=(e=s.response)==null?void 0:e.data)==null?void 0:r.message)||"获取命名空间信息失败","NAMESPACE_ERROR")}},async updateNamespaceInfo(e){var r,s;try{const a=i("server.domain");return await f.put(`${a}/kv/_info`,e,{headers:k()})}catch(a){return n(((s=(r=a.response)==null?void 0:r.data)==null?void 0:s.message)||"更新命名空间信息失败","NAMESPACE_ERROR")}},async loadData(e){var r,s,a;try{const t=i("server.domain"),c=await f.get(`${t}/kv/${e}`,{headers:k()});return d(c.data)}catch(t){return((r=t.response)==null?void 0:r.status)===404?n("数据不存在","NOT_FOUND"):(console.log(t),n(((a=(s=t.response)==null?void 0:s.data)==null?void 0:a.message)||"服务器连接失败","NETWORK_ERROR"))}},async saveData(e,r){var s,a;try{const t=i("server.domain");return await f.post(`${t}/kv/${e}`,r,{headers:k()}),d(!0)}catch(t){return console.log(t),n(((a=(s=t.response)==null?void 0:s.data)==null?void 0:a.message)||"保存失败","SAVE_ERROR")}},async loadKeys(e={}){var r,s,a,t,c;try{const l=i("server.domain"),{sortBy:u="key",sortDir:v="asc",limit:y=100,skip:p=0}=e,g=new URLSearchParams({sortBy:u,sortDir:v,limit:y.toString(),skip:p.toString()}),o=await f.get(`${l}/kv/_keys?${g}`,{headers:k()});return d(o.data)}catch(l){return((r=l.response)==null?void 0:r.status)===404?n("命名空间不存在","NOT_FOUND"):((s=l.response)==null?void 0:s.status)===403?n("无权限访问此命名空间","PERMISSION_DENIED"):((a=l.response)==null?void 0:a.status)===401?n("认证失败","UNAUTHORIZED"):(console.log(l),n(((c=(t=l.response)==null?void 0:t.data)==null?void 0:c.message)||"获取键名列表失败","NETWORK_ERROR"))}}},d=e=>e,n=(e,r="UNKNOWN_ERROR")=>({success:!1,error:{code:r,message:e}}),U={loadData:async e=>{const r=i("server.provider");return r==="kv-server"||r==="classworkscloud"?R.loadData(e):D.loadData(e)},saveData:async(e,r)=>{const s=i("server.provider");return s==="kv-server"||s==="classworkscloud"?R.saveData(e,r):D.saveData(e,r)},loadKeys:async(e={})=>{const r=i("server.provider");return r==="kv-server"||r==="classworkscloud"?R.loadKeys(e):D.loadKeys(e)},async getKeyCloudUrl(e,r={}){var t;const{migrateFromLocal:s=!0,autoConfigureCloud:a=!0}=r;try{let c=i("server.domain"),l=i("server.siteKey");const u=i("device.uuid");let v=!1;if(!c||!u)if(a){const o={"server.domain":"https://kv.wuyuan.dev","server.siteKey":""};c||(O("server.domain",o["server.domain"]),c=o["server.domain"],v=!0),l||(O("server.siteKey",o["server.siteKey"]),l=o["server.siteKey"]),O("server.provider","classworkscloud")}else return n("云端配置无效,请检查服务器域名和设备UUID","CONFIG_ERROR");let y=!1;if(s)try{const o=await D.loadData(e);if(o&&o.success!==!1){const m=await R.loadData(e);if(m&&m.success===!1&&((t=m.error)==null?void 0:t.code)==="NOT_FOUND"){const w=await R.saveData(e,o);w&&w.success!==!1&&(y=!0,console.log(`已成功将键 ${e} 的数据从本地迁移到云端`))}}}catch(o){console.warn(`迁移键 ${e} 的数据时出错:`,o)}const p=i("server.kvToken");return{success:!0,url:`${c}/kv/${e}?token=${p}`,migrated:y,configured:v}}catch(c){return console.error("获取键云端地址时出错:",c),n(c.message||"获取键云端地址失败","CLOUD_URL_ERROR")}}};export{U as d,R as k}; diff --git a/assets/debug-Ba11pYfs.js b/assets/debug-BuTu-WXm.js similarity index 77% rename from assets/debug-Ba11pYfs.js rename to assets/debug-BuTu-WXm.js index bb5f3c3..8826913 100644 --- a/assets/debug-Ba11pYfs.js +++ b/assets/debug-BuTu-WXm.js @@ -1 +1 @@ -import{aP as u,$ as r,aj as f,j as c,o as g,w as t,d as e,l as p,q as V,t as l,Y as m,z as v,i as C,C as _,M as b,y,aQ as D,aR as x}from"./index-BBVdlVQD.js";import{V as I}from"./VContainer-OExp5t5c.js";const k=u("v-code","code"),S={__name:"debug",setup(w){const s=r(""),i=r({}),o=r(!1),n=async()=>{o.value=!0;try{s.value=await D(),i.value=await x()}catch(d){console.error(d),s.value="Error loading visitor ID"}finally{o.value=!1}};return f(()=>{n()}),(d,a)=>(g(),c(I,null,{default:t(()=>[e(p,{class:"mb-4"},{default:t(()=>[e(V,null,{default:t(()=>[...a[0]||(a[0]=[l("调试信息",-1)])]),_:1}),e(m,null,{default:t(()=>[...a[1]||(a[1]=[l(" 请将这个ID复制并私聊给开发者,以便进行问题排查。 ",-1)])]),_:1}),e(v,null,{default:t(()=>[a[2]||(a[2]=C("div",{class:"text-h6 mb-2"},"访客 ID",-1)),e(k,{class:"d-block pa-2 bg-grey-lighten-4 rounded mb-4"},{default:t(()=>[l(_(s.value||"加载中..."),1)]),_:1})]),_:1}),e(b,null,{default:t(()=>[e(y,{color:"primary",onClick:n,loading:o.value},{default:t(()=>[...a[3]||(a[3]=[l(" Refresh ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1}))}};export{S as default}; +import{aN as u,$ as r,aj as f,j as c,o as g,w as t,d as e,l as p,q as V,t as l,Y as m,z as v,i as C,C as _,M as b,y,aO as D,aP as x}from"./index-GyS8nTIx.js";import{V as I}from"./VContainer-B1JGY98V.js";const k=u("v-code","code"),S={__name:"debug",setup(w){const s=r(""),i=r({}),o=r(!1),n=async()=>{o.value=!0;try{s.value=await D(),i.value=await x()}catch(d){console.error(d),s.value="Error loading visitor ID"}finally{o.value=!1}};return f(()=>{n()}),(d,a)=>(g(),c(I,null,{default:t(()=>[e(p,{class:"mb-4"},{default:t(()=>[e(V,null,{default:t(()=>[...a[0]||(a[0]=[l("调试信息",-1)])]),_:1}),e(m,null,{default:t(()=>[...a[1]||(a[1]=[l(" 请将这个ID复制并私聊给开发者,以便进行问题排查。 ",-1)])]),_:1}),e(v,null,{default:t(()=>[a[2]||(a[2]=C("div",{class:"text-h6 mb-2"},"访客 ID",-1)),e(k,{class:"d-block pa-2 bg-grey-lighten-4 rounded mb-4"},{default:t(()=>[l(_(s.value||"加载中..."),1)]),_:1})]),_:1}),e(b,null,{default:t(()=>[e(y,{color:"primary",onClick:n,loading:o.value},{default:t(()=>[...a[3]||(a[3]=[l(" Refresh ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1}))}};export{S as default}; diff --git a/assets/debug-init-BXM_Z6IC.js b/assets/debug-init-BXM_Z6IC.js new file mode 100644 index 0000000..3d06c12 --- /dev/null +++ b/assets/debug-init-BXM_Z6IC.js @@ -0,0 +1 @@ +import{$ as s,k as a,a5 as k,r as R,j as U,o as N,w as t,d as e,l as g,q as _,t as o,z as C,K as B,y as p,P as G,Q as T,ap as D,aq as S,C as y,s as n}from"./index-GyS8nTIx.js";import{k as K}from"./dataProvider-CVD6IsoX.js";import{V as q,a as c}from"./VRow-DtMdTMSo.js";import{V as z}from"./VForm-CnK2lukw.js";import{V as d}from"./VTextField-xLiM0gib.js";import{V as F}from"./VContainer-B1JGY98V.js";const I="kvinit.redirecting",$={__name:"debug-init",setup(P){const i=s(a("server.provider")||"kv-server"),v=s(a("server.kvToken")||""),m=s(a("device.uuid")||"00000000-0000-4000-8000-000000000000"),f=s(a("server.authDomain")||"https://cs.example.com"),w=()=>{n("server.provider",i.value),n("server.kvToken",v.value),n("device.uuid",m.value),n("server.authDomain",f.value),location.reload()},b=()=>{try{sessionStorage.removeItem(I)}catch(u){console.debug(u)}},x=()=>{K.loadNamespaceInfo=async()=>{throw new Error("模拟加载错误")},location.reload()},E=k(()=>{try{return sessionStorage.getItem(I)}catch(u){return String(u)}}),L=k(()=>JSON.stringify({provider:a("server.provider"),kvToken:a("server.kvToken"),uuid:a("device.uuid"),authDomain:a("server.authDomain")},null,2));return(u,l)=>{const V=R("v-list-item-content");return N(),U(F,null,{default:t(()=>[e(q,null,{default:t(()=>[e(c,{cols:"12",md:"6"},{default:t(()=>[e(g,null,{default:t(()=>[e(_,null,{default:t(()=>[...l[4]||(l[4]=[o("KvInitialize 调试面板",-1)])]),_:1}),e(C,null,{default:t(()=>[e(z,null,{default:t(()=>[e(d,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=r=>i.value=r),label:"server.provider (kv-server/classworkscloud/other)"},null,8,["modelValue"]),e(d,{modelValue:v.value,"onUpdate:modelValue":l[1]||(l[1]=r=>v.value=r),label:"server.kvToken (空表示未授权)"},null,8,["modelValue"]),e(d,{modelValue:m.value,"onUpdate:modelValue":l[2]||(l[2]=r=>m.value=r),label:"device.uuid"},null,8,["modelValue"]),e(d,{modelValue:f.value,"onUpdate:modelValue":l[3]||(l[3]=r=>f.value=r),label:"server.authDomain"},null,8,["modelValue"])]),_:1}),e(B,{class:"my-4"}),e(p,{class:"me-2",color:"primary",onClick:w},{default:t(()=>[...l[5]||(l[5]=[o(" 应用设置 ",-1)])]),_:1}),e(p,{class:"me-2",color:"secondary",onClick:b},{default:t(()=>[...l[6]||(l[6]=[o(" 清除重定向守卫 ",-1)])]),_:1}),e(p,{color:"error",onClick:x},{default:t(()=>[...l[7]||(l[7]=[o(" 模拟命名空间加载错误 ",-1)])]),_:1}),e(G,{"two-line":""},{default:t(()=>[e(T,null,{default:t(()=>[e(V,null,{default:t(()=>[e(D,null,{default:t(()=>[...l[8]||(l[8]=[o("当前 sessionGuard",-1)])]),_:1}),e(S,null,{default:t(()=>[o(y(E.value),1)]),_:1})]),_:1})]),_:1}),e(T,null,{default:t(()=>[e(V,null,{default:t(()=>[e(D,null,{default:t(()=>[...l[9]||(l[9]=[o("当前 settings",-1)])]),_:1}),e(S,null,{default:t(()=>[o(y(L.value),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),e(c,{cols:"12",md:"6"},{default:t(()=>[e(g,null,{default:t(()=>[e(_,null,{default:t(()=>[...l[10]||(l[10]=[o("初始化组件已替换",-1)])]),_:1}),e(C,null,{default:t(()=>[...l[11]||(l[11]=[o(" 已迁移为首页内联的 InitServiceChooser 组件。 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}};export{$ as default}; diff --git a/assets/debug-init-DrX-sqV-.js b/assets/debug-init-DrX-sqV-.js deleted file mode 100644 index edc11b1..0000000 --- a/assets/debug-init-DrX-sqV-.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as s,k as r,a5 as k,r as R,j as U,o as N,w as t,d as e,l as g,q as _,t as o,z as C,K as B,y as p,P as G,Q as T,ap as D,aq as S,C as y,s as n}from"./index-BBVdlVQD.js";import{k as K}from"./dataProvider-bw19OswA.js";import{V as q,a as c}from"./VRow-IosHPrmj.js";import{V as z}from"./VForm-BRCje5Hh.js";import{V as d}from"./VTextField-C-Z2P35g.js";import{V as F}from"./VContainer-OExp5t5c.js";import"./axios-CF6XU-xP.js";const I="kvinit.redirecting",H={__name:"debug-init",setup(P){const i=s(r("server.provider")||"kv-server"),v=s(r("server.kvToken")||""),m=s(r("device.uuid")||"00000000-0000-4000-8000-000000000000"),f=s(r("server.authDomain")||"https://cs.example.com"),w=()=>{n("server.provider",i.value),n("server.kvToken",v.value),n("device.uuid",m.value),n("server.authDomain",f.value),location.reload()},b=()=>{try{sessionStorage.removeItem(I)}catch(u){console.debug(u)}},x=()=>{K.loadNamespaceInfo=async()=>{throw new Error("模拟加载错误")},location.reload()},E=k(()=>{try{return sessionStorage.getItem(I)}catch(u){return String(u)}}),L=k(()=>JSON.stringify({provider:r("server.provider"),kvToken:r("server.kvToken"),uuid:r("device.uuid"),authDomain:r("server.authDomain")},null,2));return(u,l)=>{const V=R("v-list-item-content");return N(),U(F,null,{default:t(()=>[e(q,null,{default:t(()=>[e(c,{cols:"12",md:"6"},{default:t(()=>[e(g,null,{default:t(()=>[e(_,null,{default:t(()=>[...l[4]||(l[4]=[o("KvInitialize 调试面板",-1)])]),_:1}),e(C,null,{default:t(()=>[e(z,null,{default:t(()=>[e(d,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=a=>i.value=a),label:"server.provider (kv-server/classworkscloud/other)"},null,8,["modelValue"]),e(d,{modelValue:v.value,"onUpdate:modelValue":l[1]||(l[1]=a=>v.value=a),label:"server.kvToken (空表示未授权)"},null,8,["modelValue"]),e(d,{modelValue:m.value,"onUpdate:modelValue":l[2]||(l[2]=a=>m.value=a),label:"device.uuid"},null,8,["modelValue"]),e(d,{modelValue:f.value,"onUpdate:modelValue":l[3]||(l[3]=a=>f.value=a),label:"server.authDomain"},null,8,["modelValue"])]),_:1}),e(B,{class:"my-4"}),e(p,{class:"me-2",color:"primary",onClick:w},{default:t(()=>[...l[5]||(l[5]=[o(" 应用设置 ",-1)])]),_:1}),e(p,{class:"me-2",color:"secondary",onClick:b},{default:t(()=>[...l[6]||(l[6]=[o(" 清除重定向守卫 ",-1)])]),_:1}),e(p,{color:"error",onClick:x},{default:t(()=>[...l[7]||(l[7]=[o(" 模拟命名空间加载错误 ",-1)])]),_:1}),e(G,{"two-line":""},{default:t(()=>[e(T,null,{default:t(()=>[e(V,null,{default:t(()=>[e(D,null,{default:t(()=>[...l[8]||(l[8]=[o("当前 sessionGuard",-1)])]),_:1}),e(S,null,{default:t(()=>[o(y(E.value),1)]),_:1})]),_:1})]),_:1}),e(T,null,{default:t(()=>[e(V,null,{default:t(()=>[e(D,null,{default:t(()=>[...l[9]||(l[9]=[o("当前 settings",-1)])]),_:1}),e(S,null,{default:t(()=>[o(y(L.value),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),e(c,{cols:"12",md:"6"},{default:t(()=>[e(g,null,{default:t(()=>[e(_,null,{default:t(()=>[...l[10]||(l[10]=[o("初始化组件已替换",-1)])]),_:1}),e(C,null,{default:t(()=>[...l[11]||(l[11]=[o(" 已迁移为首页内联的 InitServiceChooser 组件。 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}};export{H as default}; diff --git a/assets/debug-socket-B-loaBFa.js b/assets/debug-socket-CdHPMvEr.js similarity index 77% rename from assets/debug-socket-B-loaBFa.js rename to assets/debug-socket-CdHPMvEr.js index e236efe..84e7071 100644 --- a/assets/debug-socket-B-loaBFa.js +++ b/assets/debug-socket-CdHPMvEr.js @@ -1 +1 @@ -import{$ as i,k as te,a5 as A,aj as le,aS as ne,r as ae,j as x,o as d,w as l,d as t,l as b,q as w,t as o,z as j,P as U,Q as f,ap as v,aq as m,C as u,A as L,B as oe,K,y as c,i as D,x as M,F as q,G as J,L as se}from"./index-BBVdlVQD.js";import{b as re,g as z,c as O,j as R,o as p,l as ue}from"./socketClient-0mLOmNl0.js";import{s as ie,D as de}from"./deviceEvents-B6kCnj0S.js";import{V as B,a as _}from"./VRow-IosHPrmj.js";import{V as ce}from"./VChip-BmBm7zXx.js";import{V as fe}from"./VTextField-C-Z2P35g.js";import{V as ve}from"./VTextarea-mXVeQ__0.js";import{V as me}from"./VContainer-OExp5t5c.js";const pe={key:0},_e={class:"d-flex"},ge={key:1,class:"text-grey"},ke={class:"text-caption text-grey"},ye={class:"ml-2"},Ve={class:"mb-2",style:{"white-space":"pre-wrap"}},Be={__name:"debug-socket",setup(Ce){const g=i(te("server.kvToken")||""),$=i(""),r=i(""),k=i(!1),S=i(""),y=i([]),T=i([]),V=i(""),I=A(()=>re()),G=A(()=>{const n=new Date,e=n.getFullYear(),C=String(n.getMonth()+1).padStart(2,"0"),s=String(n.getDate()).padStart(2,"0");return`classworks-data-${e}${C}${s}`});function a(n,e){const C=new Date().toLocaleTimeString();y.value.unshift({time:C,event:n,payload:typeof e=="string"?e:JSON.stringify(e,null,2)}),y.value.length>200&&y.value.pop()}function H(){const n=z();k.value=!!n.connected,S.value=n.id||"",n.on("connect",()=>{k.value=!0,S.value=n.id||"",a("connect",{id:n.id}),r.value&&R(r.value)}),n.on("disconnect",e=>{k.value=!1,a("disconnect",{reason:e})}),n.on("connect_error",e=>a("connect_error",{message:e==null?void 0:e.message})),n.on("reconnect_attempt",e=>a("reconnect_attempt",{attempt:e})),n.on("reconnect",e=>a("reconnect",{attempt:e}))}function P(){p("kv-key-changed",n=>{a("kv-key-changed",n)}),p("device-joined",n=>{a("device-joined",n)}),p("joined",n=>{a("joined",n)}),p("join-error",n=>{a("join-error",n)}),p("chat:message",n=>{a("chat:message",n)}),p("device-event",n=>{a("device-event",n)})}function N(n){try{if(!n){a("join-error","Token 为空");return}R(n),r.value=n,a("join-token",{token:n})}catch(e){a("join-token-error",String(e))}}function Q(n){try{O(n),r.value===n&&(r.value=""),a("leave-token",{token:n})}catch(e){a("leave-token-error",String(e))}}function Y(){try{ue(),r.value="",a("leave-all",{})}catch(n){a("leave-all-error",String(n))}}function W(){try{z().connect()}catch(n){a("reconnect-error",String(n))}}const X=A(()=>{var e;return!!((((e=V.value)==null?void 0:e.trim())||"")&&(r.value||g.value))});function Z(){try{const n=(V.value||"").trim();if(!n)return;ie(n),a("send-event",{type:de.CHAT,content:{text:n}}),V.value=""}catch(n){a("chat:error",String(n))}}function h(n){a("select-device",{message:"请输入该设备对应的 KV Token 以加入频道",device:n})}async function E(){try{const e=await(await fetch(`${I.value}/devices/online`)).json();T.value=Array.isArray(e==null?void 0:e.devices)?e.devices:[],a("fetch-online",{count:T.value.length})}catch(n){a("fetch-online-error",String(n))}}function ee(){y.value=[]}return le(()=>{z(),H(),P(),g.value&&N(g.value),E()}),ne(()=>{try{r.value&&O(r.value)}catch{}}),(n,e)=>{const C=ae("v-list-item-text");return d(),x(me,null,{default:l(()=>[t(B,null,{default:l(()=>[t(_,{cols:"12",md:"6"},{default:l(()=>[t(b,{border:"",class:"mb-4"},{default:l(()=>[t(w,null,{default:l(()=>[...e[4]||(e[4]=[o("连接信息",-1)])]),_:1}),t(j,null,{default:l(()=>[t(U,{density:"compact"},{default:l(()=>[t(f,null,{default:l(()=>[t(v,null,{default:l(()=>[...e[5]||(e[5]=[o("Server URL",-1)])]),_:1}),t(m,null,{default:l(()=>[o(u(I.value),1)]),_:1})]),_:1}),t(f,null,{default:l(()=>[t(v,null,{default:l(()=>[...e[6]||(e[6]=[o("当前 KV Token",-1)])]),_:1}),t(m,null,{default:l(()=>[o(u(g.value||"(未配置)"),1)]),_:1})]),_:1}),t(f,null,{default:l(()=>[t(v,null,{default:l(()=>[...e[7]||(e[7]=[o("连接状态",-1)])]),_:1}),t(m,null,{default:l(()=>[t(ce,{color:k.value?"success":"error",class:"mr-2",size:"small"},{default:l(()=>[o(u(k.value?"connected":"disconnected"),1)]),_:1},8,["color"]),S.value?(d(),L("span",pe,"id: "+u(S.value),1)):oe("",!0)]),_:1})]),_:1}),t(f,null,{default:l(()=>[t(v,null,{default:l(()=>[...e[8]||(e[8]=[o("已加入 Token",-1)])]),_:1}),t(m,null,{default:l(()=>[o(u(r.value||"-"),1)]),_:1})]),_:1}),t(f,null,{default:l(()=>[t(v,null,{default:l(()=>[...e[9]||(e[9]=[o("当前数据键",-1)])]),_:1}),t(m,null,{default:l(()=>[o(u(G.value),1)]),_:1})]),_:1})]),_:1}),t(K,{class:"my-4"}),t(B,null,{default:l(()=>[t(_,{cols:"12",md:"8"},{default:l(()=>[t(fe,{modelValue:$.value,"onUpdate:modelValue":e[0]||(e[0]=s=>$.value=s),clearable:"",label:"手动加入 Token (留空使用配置的 Token)"},null,8,["modelValue"])]),_:1}),t(_,{class:"d-flex align-center",cols:"12",md:"4"},{default:l(()=>[t(c,{class:"mr-2",color:"primary",onClick:e[1]||(e[1]=s=>N($.value||g.value))},{default:l(()=>[...e[10]||(e[10]=[o(" 加入 ",-1)])]),_:1}),t(c,{disabled:!r.value,class:"mr-2",color:"warning",onClick:e[2]||(e[2]=s=>Q(r.value))},{default:l(()=>[...e[11]||(e[11]=[o(" 离开当前 ",-1)])]),_:1},8,["disabled"]),t(c,{color:"error",variant:"tonal",onClick:Y},{default:l(()=>[...e[12]||(e[12]=[o(" 离开全部 ",-1)])]),_:1})]),_:1})]),_:1}),t(K,{class:"my-4"}),t(B,null,{default:l(()=>[t(_,{cols:"12"},{default:l(()=>[t(b,{border:"",color:"primary",variant:"tonal"},{default:l(()=>[t(w,{class:"text-subtitle-1"},{default:l(()=>[...e[13]||(e[13]=[o("聊天室消息",-1)])]),_:1}),t(j,null,{default:l(()=>[t(ve,{modelValue:V.value,"onUpdate:modelValue":e[3]||(e[3]=s=>V.value=s),"auto-grow":"",clearable:"",label:"发送到当前已加入的设备频道",rows:"2"},null,8,["modelValue"]),D("div",_e,[t(M),t(c,{disabled:!X.value,color:"primary",onClick:Z},{default:l(()=>[...e[14]||(e[14]=[o(" 发送聊天 ",-1)])]),_:1},8,["disabled"])])]),_:1})]),_:1})]),_:1})]),_:1}),t(B,null,{default:l(()=>[t(_,{cols:"12"},{default:l(()=>[t(c,{color:"secondary",variant:"tonal",onClick:W},{default:l(()=>[...e[15]||(e[15]=[o(" 重新连接 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(b,{border:""},{default:l(()=>[t(w,null,{default:l(()=>[...e[16]||(e[16]=[o("在线设备",-1)])]),_:1}),t(j,null,{default:l(()=>[t(c,{class:"mb-3",color:"primary",onClick:E},{default:l(()=>[...e[17]||(e[17]=[o(" 刷新在线列表 ",-1)])]),_:1}),T.value.length?(d(),x(U,{key:0,density:"compact"},{default:l(()=>[(d(!0),L(q,null,J(T.value,s=>(d(),x(f,{key:s.uuid},{prepend:l(()=>[t(se,{color:s.connections>0?"success":"grey",size:"24"},null,8,["color"])]),append:l(()=>[t(c,{size:"small",variant:"text",onClick:F=>h(s)},{default:l(()=>[...e[18]||(e[18]=[o(" 选择 ",-1)])]),_:1},8,["onClick"])]),default:l(()=>[t(v,null,{default:l(()=>[o(u(s.name||"(未命名)"),1)]),_:2},1024),t(m,null,{default:l(()=>[o(u(s.uuid)+" · 连接数 "+u(s.connections),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})):(d(),L("div",ge," 暂无数据 "))]),_:1})]),_:1})]),_:1}),t(_,{cols:"12",md:"6"},{default:l(()=>[t(b,{border:""},{default:l(()=>[t(w,{class:"d-flex align-center"},{default:l(()=>[e[20]||(e[20]=o(" 事件日志 ",-1)),t(M),t(c,{color:"error",size:"small",variant:"text",onClick:ee},{default:l(()=>[...e[19]||(e[19]=[o(" 清空 ",-1)])]),_:1})]),_:1}),t(j,null,{default:l(()=>[t(U,{density:"compact"},{default:l(()=>[(d(!0),L(q,null,J(y.value,(s,F)=>(d(),x(f,{key:F},{default:l(()=>[t(v,null,{default:l(()=>[D("span",ke,u(s.time),1),D("span",ye,u(s.event),1)]),_:2},1024),t(C,null,{default:l(()=>[D("pre",Ve,u(s.payload),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}};export{Be as default}; +import{$ as i,k as te,a5 as A,aj as le,aQ as ne,r as ae,j as S,o as d,w as l,d as t,l as b,q as w,t as o,z as j,P as U,Q as f,ap as v,aq as m,C as u,A as L,B as oe,K,y as c,i as D,x as M,F as q,G as J,L as se}from"./index-GyS8nTIx.js";import{b as re,g as z,c as O,j as Q,o as p,l as ue}from"./socketClient-D4dHF2XE.js";import{s as ie,D as de}from"./deviceEvents-bqh40TeD.js";import{V as B,a as _}from"./VRow-DtMdTMSo.js";import{V as ce}from"./VChip-DsTHqUw0.js";import{V as fe}from"./VTextField-xLiM0gib.js";import{V as ve}from"./VTextarea-BeSb8uK6.js";import{V as me}from"./VContainer-B1JGY98V.js";const pe={key:0},_e={class:"d-flex"},ge={key:1,class:"text-grey"},ke={class:"text-caption text-grey"},ye={class:"ml-2"},Ve={class:"mb-2",style:{"white-space":"pre-wrap"}},Be={__name:"debug-socket",setup(Ce){const g=i(te("server.kvToken")||""),$=i(""),r=i(""),k=i(!1),T=i(""),y=i([]),x=i([]),V=i(""),I=A(()=>re()),R=A(()=>{const n=new Date,e=n.getFullYear(),C=String(n.getMonth()+1).padStart(2,"0"),s=String(n.getDate()).padStart(2,"0");return`classworks-data-${e}${C}${s}`});function a(n,e){const C=new Date().toLocaleTimeString();y.value.unshift({time:C,event:n,payload:typeof e=="string"?e:JSON.stringify(e,null,2)}),y.value.length>200&&y.value.pop()}function G(){const n=z();k.value=!!n.connected,T.value=n.id||"",n.on("connect",()=>{k.value=!0,T.value=n.id||"",a("connect",{id:n.id}),r.value&&Q(r.value)}),n.on("disconnect",e=>{k.value=!1,a("disconnect",{reason:e})}),n.on("connect_error",e=>a("connect_error",{message:e==null?void 0:e.message})),n.on("reconnect_attempt",e=>a("reconnect_attempt",{attempt:e})),n.on("reconnect",e=>a("reconnect",{attempt:e}))}function H(){p("kv-key-changed",n=>{a("kv-key-changed",n)}),p("device-joined",n=>{a("device-joined",n)}),p("joined",n=>{a("joined",n)}),p("join-error",n=>{a("join-error",n)}),p("chat:message",n=>{a("chat:message",n)}),p("device-event",n=>{a("device-event",n)})}function N(n){try{if(!n){a("join-error","Token 为空");return}Q(n),r.value=n,a("join-token",{token:n})}catch(e){a("join-token-error",String(e))}}function P(n){try{O(n),r.value===n&&(r.value=""),a("leave-token",{token:n})}catch(e){a("leave-token-error",String(e))}}function Y(){try{ue(),r.value="",a("leave-all",{})}catch(n){a("leave-all-error",String(n))}}function W(){try{z().connect()}catch(n){a("reconnect-error",String(n))}}const X=A(()=>{var e;return!!((((e=V.value)==null?void 0:e.trim())||"")&&(r.value||g.value))});function Z(){try{const n=(V.value||"").trim();if(!n)return;ie(n),a("send-event",{type:de.CHAT,content:{text:n}}),V.value=""}catch(n){a("chat:error",String(n))}}function h(n){a("select-device",{message:"请输入该设备对应的 KV Token 以加入频道",device:n})}async function E(){try{const e=await(await fetch(`${I.value}/devices/online`)).json();x.value=Array.isArray(e==null?void 0:e.devices)?e.devices:[],a("fetch-online",{count:x.value.length})}catch(n){a("fetch-online-error",String(n))}}function ee(){y.value=[]}return le(()=>{z(),G(),H(),g.value&&N(g.value),E()}),ne(()=>{try{r.value&&O(r.value)}catch{}}),(n,e)=>{const C=ae("v-list-item-text");return d(),S(me,null,{default:l(()=>[t(B,null,{default:l(()=>[t(_,{cols:"12",md:"6"},{default:l(()=>[t(b,{border:"",class:"mb-4"},{default:l(()=>[t(w,null,{default:l(()=>[...e[4]||(e[4]=[o("连接信息",-1)])]),_:1}),t(j,null,{default:l(()=>[t(U,{density:"compact"},{default:l(()=>[t(f,null,{default:l(()=>[t(v,null,{default:l(()=>[...e[5]||(e[5]=[o("Server URL",-1)])]),_:1}),t(m,null,{default:l(()=>[o(u(I.value),1)]),_:1})]),_:1}),t(f,null,{default:l(()=>[t(v,null,{default:l(()=>[...e[6]||(e[6]=[o("当前 KV Token",-1)])]),_:1}),t(m,null,{default:l(()=>[o(u(g.value||"(未配置)"),1)]),_:1})]),_:1}),t(f,null,{default:l(()=>[t(v,null,{default:l(()=>[...e[7]||(e[7]=[o("连接状态",-1)])]),_:1}),t(m,null,{default:l(()=>[t(ce,{color:k.value?"success":"error",class:"mr-2",size:"small"},{default:l(()=>[o(u(k.value?"connected":"disconnected"),1)]),_:1},8,["color"]),T.value?(d(),L("span",pe,"id: "+u(T.value),1)):oe("",!0)]),_:1})]),_:1}),t(f,null,{default:l(()=>[t(v,null,{default:l(()=>[...e[8]||(e[8]=[o("已加入 Token",-1)])]),_:1}),t(m,null,{default:l(()=>[o(u(r.value||"-"),1)]),_:1})]),_:1}),t(f,null,{default:l(()=>[t(v,null,{default:l(()=>[...e[9]||(e[9]=[o("当前数据键",-1)])]),_:1}),t(m,null,{default:l(()=>[o(u(R.value),1)]),_:1})]),_:1})]),_:1}),t(K,{class:"my-4"}),t(B,null,{default:l(()=>[t(_,{cols:"12",md:"8"},{default:l(()=>[t(fe,{modelValue:$.value,"onUpdate:modelValue":e[0]||(e[0]=s=>$.value=s),clearable:"",label:"手动加入 Token (留空使用配置的 Token)"},null,8,["modelValue"])]),_:1}),t(_,{class:"d-flex align-center",cols:"12",md:"4"},{default:l(()=>[t(c,{class:"mr-2",color:"primary",onClick:e[1]||(e[1]=s=>N($.value||g.value))},{default:l(()=>[...e[10]||(e[10]=[o(" 加入 ",-1)])]),_:1}),t(c,{disabled:!r.value,class:"mr-2",color:"warning",onClick:e[2]||(e[2]=s=>P(r.value))},{default:l(()=>[...e[11]||(e[11]=[o(" 离开当前 ",-1)])]),_:1},8,["disabled"]),t(c,{color:"error",variant:"tonal",onClick:Y},{default:l(()=>[...e[12]||(e[12]=[o(" 离开全部 ",-1)])]),_:1})]),_:1})]),_:1}),t(K,{class:"my-4"}),t(B,null,{default:l(()=>[t(_,{cols:"12"},{default:l(()=>[t(b,{border:"",color:"primary",variant:"tonal"},{default:l(()=>[t(w,{class:"text-subtitle-1"},{default:l(()=>[...e[13]||(e[13]=[o("聊天室消息",-1)])]),_:1}),t(j,null,{default:l(()=>[t(ve,{modelValue:V.value,"onUpdate:modelValue":e[3]||(e[3]=s=>V.value=s),"auto-grow":"",clearable:"",label:"发送到当前已加入的设备频道",rows:"2"},null,8,["modelValue"]),D("div",_e,[t(M),t(c,{disabled:!X.value,color:"primary",onClick:Z},{default:l(()=>[...e[14]||(e[14]=[o(" 发送聊天 ",-1)])]),_:1},8,["disabled"])])]),_:1})]),_:1})]),_:1})]),_:1}),t(B,null,{default:l(()=>[t(_,{cols:"12"},{default:l(()=>[t(c,{color:"secondary",variant:"tonal",onClick:W},{default:l(()=>[...e[15]||(e[15]=[o(" 重新连接 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(b,{border:""},{default:l(()=>[t(w,null,{default:l(()=>[...e[16]||(e[16]=[o("在线设备",-1)])]),_:1}),t(j,null,{default:l(()=>[t(c,{class:"mb-3",color:"primary",onClick:E},{default:l(()=>[...e[17]||(e[17]=[o(" 刷新在线列表 ",-1)])]),_:1}),x.value.length?(d(),S(U,{key:0,density:"compact"},{default:l(()=>[(d(!0),L(q,null,J(x.value,s=>(d(),S(f,{key:s.uuid},{prepend:l(()=>[t(se,{color:s.connections>0?"success":"grey",size:"24"},null,8,["color"])]),append:l(()=>[t(c,{size:"small",variant:"text",onClick:F=>h(s)},{default:l(()=>[...e[18]||(e[18]=[o(" 选择 ",-1)])]),_:1},8,["onClick"])]),default:l(()=>[t(v,null,{default:l(()=>[o(u(s.name||"(未命名)"),1)]),_:2},1024),t(m,null,{default:l(()=>[o(u(s.uuid)+" · 连接数 "+u(s.connections),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})):(d(),L("div",ge," 暂无数据 "))]),_:1})]),_:1})]),_:1}),t(_,{cols:"12",md:"6"},{default:l(()=>[t(b,{border:""},{default:l(()=>[t(w,{class:"d-flex align-center"},{default:l(()=>[e[20]||(e[20]=o(" 事件日志 ",-1)),t(M),t(c,{color:"error",size:"small",variant:"text",onClick:ee},{default:l(()=>[...e[19]||(e[19]=[o(" 清空 ",-1)])]),_:1})]),_:1}),t(j,null,{default:l(()=>[t(U,{density:"compact"},{default:l(()=>[(d(!0),L(q,null,J(y.value,(s,F)=>(d(),S(f,{key:F},{default:l(()=>[t(v,null,{default:l(()=>[D("span",ke,u(s.time),1),D("span",ye,u(s.event),1)]),_:2},1024),t(C,null,{default:l(()=>[D("pre",Ve,u(s.payload),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}};export{Be as default}; diff --git a/assets/default-D5AHDwKc.js b/assets/default-DRcAN1rd.js similarity index 92% rename from assets/default-D5AHDwKc.js rename to assets/default-DRcAN1rd.js index c9a9112..ecd4d0f 100644 --- a/assets/default-D5AHDwKc.js +++ b/assets/default-DRcAN1rd.js @@ -1 +1 @@ -import{g as u,p as m,u as _,a as d,b as p,c as f,d as n,n as v,e as y,m as V,f as k,h as B,i as b,j as g,r as C,o as S,w as r,V as w}from"./index-BBVdlVQD.js";const M=m({scrollable:Boolean,...B(),...k(),...V({tag:"main"})},"VMain"),P=u()({name:"VMain",props:M(),setup(e,o){let{slots:a}=o;const{dimensionStyles:s}=_(e),{mainStyles:c}=d(),{ssrBootStyles:i}=p();return f(()=>n(e.tag,{class:y(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:v([c.value,i.value,s.value,e.style])},{default:()=>{var t,l;return[e.scrollable?b("div",{class:"v-main__scroller"},[(t=a.default)==null?void 0:t.call(a)]):(l=a.default)==null?void 0:l.call(a)]}})),{}}}),x={__name:"default",setup(e){return(o,a)=>{const s=C("router-view");return S(),g(w,null,{default:r(()=>[n(P,null,{default:r(()=>[n(s)]),_:1})]),_:1})}}};export{x as default}; +import{g as u,p as m,u as _,a as d,b as p,c as f,d as n,n as v,e as y,m as V,f as k,h as B,i as b,j as g,r as C,o as S,w as r,V as w}from"./index-GyS8nTIx.js";const M=m({scrollable:Boolean,...B(),...k(),...V({tag:"main"})},"VMain"),P=u()({name:"VMain",props:M(),setup(e,o){let{slots:a}=o;const{dimensionStyles:s}=_(e),{mainStyles:c}=d(),{ssrBootStyles:i}=p();return f(()=>n(e.tag,{class:y(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:v([c.value,i.value,s.value,e.style])},{default:()=>{var t,l;return[e.scrollable?b("div",{class:"v-main__scroller"},[(t=a.default)==null?void 0:t.call(a)]):(l=a.default)==null?void 0:l.call(a)]}})),{}}}),x={__name:"default",setup(e){return(o,a)=>{const s=C("router-view");return S(),g(w,null,{default:r(()=>[n(P,null,{default:r(()=>[n(s)]),_:1})]),_:1})}}};export{x as default}; diff --git a/assets/deviceEvents-B6kCnj0S.js b/assets/deviceEvents-bqh40TeD.js similarity index 97% rename from assets/deviceEvents-B6kCnj0S.js rename to assets/deviceEvents-bqh40TeD.js index 4e6f8a6..a703eb7 100644 --- a/assets/deviceEvents-B6kCnj0S.js +++ b/assets/deviceEvents-bqh40TeD.js @@ -1 +1 @@ -import{s as E}from"./socketClient-0mLOmNl0.js";const t={CHAT:"chat",KV_KEY_CHANGED:"kv-key-changed",URGENT_NOTICE:"urgent-notice",NOTIFICATION:"notification"};function m(e){if(!e||typeof e!="string")throw new Error("消息文本不能为空");E(t.CHAT,{text:e.trim()})}function I(e,n={}){if(!e||!e.type){console.warn("无效的设备事件数据:",e);return}const o=n[e.type];if(typeof o=="function")try{o(e)}catch(c){console.error(`处理设备事件 ${e.type} 时出错:`,c)}}function g(e){var n;if(e.type!==t.CHAT)throw new Error("不是聊天事件");return{text:((n=e.content)==null?void 0:n.text)||"",senderId:e.senderId,at:e.timestamp,uuid:e.uuid,senderInfo:e.senderInfo}}function T(e){var n,o,c,i,u,s;if(e.type!==t.KV_KEY_CHANGED)throw new Error("不是 KV 变化事件");return{uuid:e.uuid,key:(n=e.content)==null?void 0:n.key,action:(o=e.content)==null?void 0:o.action,created:(c=e.content)==null?void 0:c.created,updatedAt:(i=e.content)==null?void 0:i.updatedAt,deletedAt:(u=e.content)==null?void 0:u.deletedAt,batch:(s=e.content)==null?void 0:s.batch}}function p(e){var n,o,c,i;if(e.type!==t.URGENT_NOTICE)throw new Error("不是紧急通知事件");return{urgency:((n=e.content)==null?void 0:n.urgency)||"info",message:((o=e.content)==null?void 0:o.message)||"",targetDevices:((c=e.content)==null?void 0:c.targetDevices)||[],senderId:e.senderId,senderInfo:((i=e.content)==null?void 0:i.senderInfo)||e.senderInfo,timestamp:e.timestamp}}function y(e){var n,o,c,i;if(e.type!==t.NOTIFICATION)throw new Error("不是通知事件");return{message:((n=e.content)==null?void 0:n.message)||"",isUrgent:((o=e.content)==null?void 0:o.isUrgent)||!1,targetDevices:((c=e.content)==null?void 0:c.targetDevices)||[],senderId:e.senderId,senderInfo:((i=e.content)==null?void 0:i.senderInfo)||e.senderInfo,timestamp:e.timestamp,eventId:e.eventId}}function C(e){return e?e.deviceName==="realtime"?"实时同步":`${e.deviceName||"未知设备"} (${e.deviceType||"未知类型"})`:"未知设备"}function h(e={}){const{onChat:n,onKvChanged:o,onUrgentNotice:c,onNotification:i,onOtherEvent:u,enableLegacySupport:s=!0}=e;return d=>{I(d,{[t.CHAT]:r=>{if(n){const f=s?g(r):r;n(f,r)}},[t.KV_KEY_CHANGED]:r=>{if(o){const f=s?T(r):r;o(f,r)}},[t.URGENT_NOTICE]:r=>{if(c){const f=s?p(r):r;c(f,r)}},[t.NOTIFICATION]:r=>{if(i){const f=s?y(r):r;i(f,r)}}}),u&&d.type!==t.CHAT&&d.type!==t.KV_KEY_CHANGED&&d.type!==t.URGENT_NOTICE&&d.type!==t.NOTIFICATION&&u(d)}}export{t as D,h as c,C as f,m as s}; +import{s as E}from"./socketClient-D4dHF2XE.js";const t={CHAT:"chat",KV_KEY_CHANGED:"kv-key-changed",URGENT_NOTICE:"urgent-notice",NOTIFICATION:"notification"};function m(e){if(!e||typeof e!="string")throw new Error("消息文本不能为空");E(t.CHAT,{text:e.trim()})}function I(e,n={}){if(!e||!e.type){console.warn("无效的设备事件数据:",e);return}const o=n[e.type];if(typeof o=="function")try{o(e)}catch(c){console.error(`处理设备事件 ${e.type} 时出错:`,c)}}function g(e){var n;if(e.type!==t.CHAT)throw new Error("不是聊天事件");return{text:((n=e.content)==null?void 0:n.text)||"",senderId:e.senderId,at:e.timestamp,uuid:e.uuid,senderInfo:e.senderInfo}}function T(e){var n,o,c,i,u,s;if(e.type!==t.KV_KEY_CHANGED)throw new Error("不是 KV 变化事件");return{uuid:e.uuid,key:(n=e.content)==null?void 0:n.key,action:(o=e.content)==null?void 0:o.action,created:(c=e.content)==null?void 0:c.created,updatedAt:(i=e.content)==null?void 0:i.updatedAt,deletedAt:(u=e.content)==null?void 0:u.deletedAt,batch:(s=e.content)==null?void 0:s.batch}}function p(e){var n,o,c,i;if(e.type!==t.URGENT_NOTICE)throw new Error("不是紧急通知事件");return{urgency:((n=e.content)==null?void 0:n.urgency)||"info",message:((o=e.content)==null?void 0:o.message)||"",targetDevices:((c=e.content)==null?void 0:c.targetDevices)||[],senderId:e.senderId,senderInfo:((i=e.content)==null?void 0:i.senderInfo)||e.senderInfo,timestamp:e.timestamp}}function y(e){var n,o,c,i;if(e.type!==t.NOTIFICATION)throw new Error("不是通知事件");return{message:((n=e.content)==null?void 0:n.message)||"",isUrgent:((o=e.content)==null?void 0:o.isUrgent)||!1,targetDevices:((c=e.content)==null?void 0:c.targetDevices)||[],senderId:e.senderId,senderInfo:((i=e.content)==null?void 0:i.senderInfo)||e.senderInfo,timestamp:e.timestamp,eventId:e.eventId}}function C(e){return e?e.deviceName==="realtime"?"实时同步":`${e.deviceName||"未知设备"} (${e.deviceType||"未知类型"})`:"未知设备"}function h(e={}){const{onChat:n,onKvChanged:o,onUrgentNotice:c,onNotification:i,onOtherEvent:u,enableLegacySupport:s=!0}=e;return d=>{I(d,{[t.CHAT]:r=>{if(n){const f=s?g(r):r;n(f,r)}},[t.KV_KEY_CHANGED]:r=>{if(o){const f=s?T(r):r;o(f,r)}},[t.URGENT_NOTICE]:r=>{if(c){const f=s?p(r):r;c(f,r)}},[t.NOTIFICATION]:r=>{if(i){const f=s?y(r):r;i(f,r)}}}),u&&d.type!==t.CHAT&&d.type!==t.KV_KEY_CHANGED&&d.type!==t.URGENT_NOTICE&&d.type!==t.NOTIFICATION&&u(d)}}export{t as D,h as c,C as f,m as s}; diff --git a/assets/exam-player-BfcrcIG9.js b/assets/exam-player-BfcrcIG9.js deleted file mode 100644 index b774541..0000000 --- a/assets/exam-player-BfcrcIG9.js +++ /dev/null @@ -1 +0,0 @@ -import{aT as W,$ as A,a6 as z,a5 as d,aj as ee,aU as ie,A as $,o as T,i as u,j as Q,B as F,ak as ue,d as M,C as O,am as j,w as Y,F as re,G as Ie,I as Se,aV as Ae,aW as je,aX as le,n as ne,e as ce,r as _e,aY as ze,_ as We,t as xe,av as qe,aw as Ve}from"./index-BBVdlVQD.js";import{d as Fe}from"./dataProvider-bw19OswA.js";import{V as ye}from"./VAlert-BYrhoEr8.js";import{V as He}from"./VSkeletonLoader-DuVn92u1.js";import"./axios-CF6XU-xP.js";function Be(e){var t;return!e.examName||!((t=e.examInfos)!=null&&t.length)?!1:e.examInfos.every(r=>r.name&&r.start&&r.end)}function Ue(e){const t=e.examInfos.slice().sort((r,a)=>new Date(r.start).getTime()-new Date(a.start).getTime());for(let r=0;rnew Date(t[r+1].start).getTime())return!0;return!1}function Ze(e){return e.examInfos.slice().sort((t,r)=>new Date(t.start).getTime()-new Date(r.start).getTime())}function se(e){return{...e,examInfos:Ze(e)}}function P(e){return e?e.includes("T")||e.includes("Z")?new Date(e):e.match(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/)?new Date(e.replace(" ","T")):new Date(e):new Date(NaN)}class Qe{constructor(t=()=>Date.now()){this.tasks=new Map,this.timeouts=new Map,this.isRunning=!1,this.timeProvider=t}addTask(t,r,a,o){const n=`${r}-${a.name}-${t}`,i={id:n,executeTime:t,type:r,examInfo:a,callback:o,status:"pending"};return this.tasks.set(n,i),this.isRunning&&this.scheduleTask(i),n}scheduleTask(t){const r=this.timeProvider(),a=t.executeTime-r;if(a<=0)this.executeTask(t);else{const o=setTimeout(()=>{this.executeTask(t)},a);this.timeouts.set(t.id,o)}}executeTask(t){try{t.callback(),t.status="completed"}catch(a){console.error(`任务执行失败: ${t.id}`,a),t.status="failed"}const r=this.timeouts.get(t.id);r&&(clearTimeout(r),this.timeouts.delete(t.id))}createTasksForConfig(t,r={}){if(this.clear(),!t.examInfos||t.examInfos.length===0)return;const a=this.timeProvider();t.examInfos.forEach(o=>{const n=P(o.start).getTime(),i=P(o.end).getTime();if(n>a&&this.addTask(n,"exam-start",o,()=>{var s;console.log(`考试开始: ${o.name}`),(s=r.onExamStart)==null||s.call(r,o)}),i>a&&this.addTask(i,"exam-end",o,()=>{var s;console.log(`考试结束: ${o.name}`),(s=r.onExamEnd)==null||s.call(r,o)}),o.alertTime&&o.alertTime>0){const s=i-o.alertTime*60*1e3;s>a&&this.addTask(s,"exam-alert",o,()=>{var v;console.log(`考试提醒: ${o.name} 将在 ${o.alertTime} 分钟后结束`),(v=r.onExamAlert)==null||v.call(r,o,o.alertTime)})}})}start(){this.isRunning||(this.isRunning=!0,this.tasks.forEach(t=>{t.status==="pending"&&this.scheduleTask(t)}))}stop(){this.isRunning=!1,this.timeouts.forEach(t=>{clearTimeout(t)}),this.timeouts.clear()}clear(){this.stop(),this.tasks.clear()}updateTimeProvider(t){this.timeProvider=t,this.isRunning&&(this.stop(),this.start())}getTaskCount(){return this.tasks.size}getTaskDetails(){return Array.from(this.tasks.values()).map(t=>({id:t.id,executeTime:t.executeTime,type:t.type,examInfo:t.examInfo,status:t.status}))}getPendingTasks(){return this.getTaskDetails().filter(t=>t.status==="pending")}}class Z{static formatExamInfos(t,r){if(!(t!=null&&t.examInfos))return[];const a=se(t);let o="";return a.examInfos.map((n,i)=>{const s=P(n.start),v=P(n.end),C=r;let E="pending",m="未开始";C>v.getTime()?(E="completed",m="已结束"):C>=s.getTime()&&(E="inProgress",m="进行中");const f=s.toLocaleDateString("zh-CN",{month:"2-digit",day:"2-digit"});let S="";return f!==o&&(S=f,o=f),{index:i,name:n.name,date:S,timeRange:`${this.formatHourMinute(s)} ~ ${this.formatHourMinute(v)}`,status:E,statusText:m,rawData:n}})}static getExamStatus(t,r){if(!t)return{status:"unknown",message:"暂无考试安排"};const a=P(t.start).getTime(),o=P(t.end).getTime(),n=r;if(n=a&&n=a&&n0?`${r} ${o}小时${a%60}分钟`:a>0?`${r} ${a}分钟`:r==="剩余"?"即将结束":"未开始"}static formatDuration(t){const r=Math.max(0,Math.floor(t/1e3)),a=Math.floor(r/3600),o=Math.floor(r%3600/60),n=r%60,i=String(o).padStart(2,"0"),s=String(n).padStart(2,"0");return a>0?`${a}:${i}:${s}`:`${i}:${s}`}static formatCurrentTime(t){return new Date(t).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}static getStatusTheme(t){return{pending:"primary",inProgress:"success",completed:"default"}[t]||"default"}static getCurrentExamIndex(t,r){if(!(t!=null&&t.examInfos)||t.examInfos.length===0)return 0;const a=se(t).examInfos,o=r;for(let n=0;n=s&&o{(!o.name||o.name.trim()==="")&&r.push(`第${n+1}场考试名称不能为空`);try{const i=P(o.start),s=P(o.end);i>=s&&r.push(`第${n+1}场考试:开始时间必须早于结束时间`)}catch{r.push(`第${n+1}场考试:时间格式无效`)}o.alertTime&&(o.alertTime<0||o.alertTime>300)&&a.push(`第${n+1}场考试:提醒时间建议在0-300分钟之间`)}),{isValid:r.length===0,errors:r,warnings:a})):(r.push("配置对象为空"),{isValid:!1,errors:r,warnings:a})}}function Ke(e,t={roomNumber:"01"},r={getCurrentTime:()=>Date.now()},a={}){const o=A({currentExamIndex:0,loading:!1,loaded:!1,error:null}),n=A(e),i=A(r.getCurrentTime()),s=new Qe(r.getCurrentTime),v=d(()=>!n.value||o.value.currentExamIndex<0||o.value.currentExamIndex>=n.value.examInfos.length?null:n.value.examInfos[o.value.currentExamIndex]),C=d(()=>n.value?se(n.value).examInfos:[]),E=d(()=>Z.getExamStatus(v.value,i.value)),m=d(()=>{var g;return((g=v.value)==null?void 0:g.name)||"暂无考试"}),f=d(()=>Z.getExamTimeRange(v.value)),S=d(()=>Z.getRemainingTimeText(v.value,i.value)),h=d(()=>Z.formatCurrentTime(i.value)),I=d(()=>Z.formatExamInfos(n.value,i.value)),B=g=>g?Be(g)?Ue(g)?(o.value.error="考试时间存在重叠",o.value.loaded=!1,s.clear(),!1):(n.value=g,o.value.error=null,o.value.loaded=!0,q(),s.createTasksForConfig(g,{onExamStart:w=>{var k;console.log(`考试开始: ${w.name}`),i.value=r.getCurrentTime(),q(),(k=a.onExamStart)==null||k.call(a,w)},onExamEnd:w=>{var k;console.log(`考试结束: ${w.name}`),i.value=r.getCurrentTime(),q(),(k=a.onExamEnd)==null||k.call(a,w)},onExamAlert:(w,k)=>{var N;console.log(`考试提醒: ${w.name} 将在 ${k} 分钟后结束`),(N=a.onExamAlert)==null||N.call(a,w,k)},onExamSwitch:a.onExamSwitch}),s.start(),!0):(o.value.error="配置验证失败",o.value.loaded=!1,s.clear(),!1):(o.value.error="配置为空",o.value.loaded=!1,s.clear(),!1),q=()=>{var g;if(!((g=n.value)!=null&&g.examInfos))return;const w=C.value;if(!w.length)return;let k=Z.getCurrentExamIndex(n.value,i.value);const N=o.value.currentExamIndex,U=w[N];if(U){const K=U?U.end:void 0;if(K){const X=P(K).getTime();i.value>=X&&N{if(!n.value||g<0||g>=n.value.examInfos.length)return!1;const w=o.value.currentExamIndex;if(o.value.currentExamIndex=g,a.onExamSwitch&&w!==g){const k=C.value[w],N=C.value[g];a.onExamSwitch(k,N)}return!0};let x=null;const y=()=>{x||(x=setInterval(()=>{i.value=r.getCurrentTime()},1e3),r.onTimeChange&&r.onTimeChange(()=>{i.value=r.getCurrentTime(),s.updateTimeProvider(r.getCurrentTime)}))},_=()=>{x&&(clearInterval(x),x=null),r.offTimeChange&&r.offTimeChange(()=>{i.value=r.getCurrentTime()}),s.stop()};return z(i,()=>{var g;(g=n.value)!=null&&g.examInfos&&o.value.loaded&&i.value%3e4<1e3&&q()}),ee(()=>{y(),n.value&&B(n.value)}),ie(()=>{_()}),{state:le(o),examConfig:le(n),currentTime:le(i),currentExam:v,sortedExamInfos:C,formattedExamInfos:I,examStatus:E,currentExamName:m,currentExamTimeRange:f,remainingTime:S,formattedCurrentTime:h,updateConfig:B,updateCurrentExam:q,switchToExam:b,startTimeUpdates:y,stopTimeUpdates:_,taskQueue:{getTaskCount:()=>s.getTaskCount(),getTaskDetails:()=>s.getTaskDetails(),getPendingTasks:()=>s.getPendingTasks(),clear:()=>s.clear(),start:()=>s.start(),stop:()=>s.stop()},dataProcessor:Z}}const Ge={class:"card-content"},Je=W({__name:"BaseCard",props:{customClass:{default:""},customStyle:{default:()=>({})}},setup(e){return(t,r)=>(T(),$("div",{class:ce(["base-card",e.customClass]),style:ne(e.customStyle)},[u("div",Ge,[ue(t.$slots,"default",{},void 0)])],6))}}),H=(e,t)=>{const r=e.__vccOpts||e;for(const[a,o]of t)r[a]=o;return r},me=H(Je,[["__scopeId","data-v-1b507f4d"]]),Ye={class:"card-header"},Xe={class:"card-title"},et={class:"card-body"},tt=W({__name:"InfoCardWithIcon",props:{title:{},showIcon:{type:Boolean,default:!0},customClass:{default:""}},emits:["iconClick"],setup(e){return(t,r)=>(T(),Q(me,{"custom-class":e.customClass},{default:Y(()=>[u("div",Ye,[u("h3",Xe,O(e.title),1),e.showIcon?(T(),$("button",{key:0,class:"card-icon",onClick:r[0]||(r[0]=a=>t.$emit("iconClick"))},[...r[1]||(r[1]=[u("svg",{class:"icon-svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)])])):F("",!0)]),u("div",et,[ue(t.$slots,"default",{},void 0,!0)])]),_:3},8,["custom-class"]))}}),at=H(tt,[["__scopeId","data-v-cd49bf6c"]]),rt={class:"info-item"},ot={class:"info-label"},lt={class:"info-value"},nt=W({__name:"InfoItem",props:{label:{},value:{}},setup(e){return(t,r)=>(T(),$("div",rt,[u("div",ot,O(e.label),1),u("div",lt,O(e.value),1)]))}}),ae=H(nt,[["__scopeId","data-v-268ec3a9"]]),st={class:"room-number-display"},it=W({__name:"ExamRoomNumber",props:{roomNumber:{}},emits:["click"],setup(e,{emit:t}){const r=t,a=()=>{console.log("考场号被点击"),r("click")};return(o,n)=>(T(),$("div",{class:"exam-room-number",onClick:a},[u("div",st,O(e.roomNumber),1)]))}}),ut=H(it,[["__scopeId","data-v-cd6f7b3d"]]),ct={class:"exam-info-item"},mt={class:"exam-date"},dt={class:"exam-details"},vt={class:"exam-subject"},ft={class:"exam-time"},gt=W({__name:"ExamInfoItem",props:{date:{},subject:{},time:{},status:{}},setup(e){const t=e,r=d(()=>{switch(t.status){case"已结束":return"status-finished";case"进行中":return"status-ongoing";case"未开始":return"status-pending";default:return""}});return(a,o)=>(T(),$("div",ct,[u("div",mt,O(e.date),1),u("div",dt,[u("div",vt,O(e.subject),1),u("div",ft,O(e.time),1),u("div",{class:ce(["exam-status",r.value])},O(e.status),3)])]))}}),pt=H(gt,[["__scopeId","data-v-a18343db"]]),ht={class:"exam-info-list"},xt={key:0,class:"empty-state"},yt=W({__name:"CurrentExamInfo",props:{examInfos:{default:()=>[]}},setup(e){return(t,r)=>(T(),Q(me,{"custom-class":"current-exam-info-card"},{default:Y(()=>[r[1]||(r[1]=u("div",{class:"card-header"},[u("h3",{class:"card-title"},"本次考试信息")],-1)),u("div",ht,[(T(!0),$(re,null,Ie(e.examInfos,a=>(T(),Q(pt,{key:a.name,date:a.date,subject:a.name,time:a.timeRange,status:a.statusText},null,8,["date","subject","time","status"]))),128)),!e.examInfos||e.examInfos.length===0?(T(),$("div",xt,[...r[0]||(r[0]=[u("span",{class:"empty-text"},"暂无考试安排",-1)])])):F("",!0)])]),_:1}))}}),Ct=H(yt,[["__scopeId","data-v-c11ab571"]]);function Ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ce=e=>{var t=["strokeLinecap","fillRule","clipRule","strokeWidth"];return t.includes(e)?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():e},de=(e,t)=>{var r={};if(e.attrs)for(var[a,o]of Object.entries(e.attrs))if(typeof o=="string"&&o.startsWith("props.")){var n=o.split(".")[1];r[Ce(a)]=t[n]}else r[Ce(a)]=o;e.tag==="svg"&&(r.class=t.class,r.style=t.style,r.onClick=t.onClick);var i=e.children?e.children.map(s=>de(s,t)):[];return ze(e.tag,r,i)},kt="t",bt={classPrefix:kt};function Tt(){var{classPrefix:e}=bt;return{SIZE:{default:"",xs:"".concat(e,"-size-xs"),small:"".concat(e,"-size-s"),medium:"".concat(e,"-size-m"),large:"".concat(e,"-size-l"),xl:"".concat(e,"-size-xl"),block:"".concat(e,"-size-full-width")},STATUS:{loading:"".concat(e,"-is-loading"),disabled:"".concat(e,"-is-disabled"),focused:"".concat(e,"-is-focused"),success:"".concat(e,"-is-success"),error:"".concat(e,"-is-error"),warning:"".concat(e,"-is-warning"),selected:"".concat(e,"-is-selected"),active:"".concat(e,"-is-active"),checked:"".concat(e,"-is-checked"),current:"".concat(e,"-is-current"),hidden:"".concat(e,"-is-hidden"),visible:"".concat(e,"-is-visible"),expanded:"".concat(e,"-is-expanded"),indeterminate:"".concat(e,"-is-indeterminate")}}}function Pe(e){var t=Tt().SIZE,r=d(()=>e.value in t?t[e.value]:""),a=d(()=>e.value===void 0||e.value in t?{}:{fontSize:e.value});return{style:a,className:r}}function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function be(e){for(var t=1;te.size),o=d(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:"currentColor"),n=d(()=>{var h;return e.strokeColor?Array.isArray(e.strokeColor)?(h=e.strokeColor[1])!==null&&h!==void 0?h:e.strokeColor[0]:e.strokeColor:"currentColor"}),i=d(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:"transparent"),s=d(()=>{var h;return e.fillColor?Array.isArray(e.fillColor)?(h=e.fillColor[1])!==null&&h!==void 0?h:e.fillColor[0]:e.fillColor:"transparent"}),v=d(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:"currentColor"),{className:C,style:E}=Pe(a),m=d(()=>["t-icon","t-icon-logout",C.value]),f=d(()=>be(be({fill:"none"},E.value),r.style)),S=d(()=>({class:m.value,style:f.value,onClick:h=>{var I;return(I=e.onClick)===null||I===void 0?void 0:I.call(e,{e:h})},strokeColor1:o.value,strokeColor2:n.value,fillColor1:i.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:v.value}));return()=>de(wt,S.value)}});function Te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function we(e){for(var t=1;te.size),o=d(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:"currentColor"),n=d(()=>{var h;return e.strokeColor?Array.isArray(e.strokeColor)?(h=e.strokeColor[1])!==null&&h!==void 0?h:e.strokeColor[0]:e.strokeColor:"currentColor"}),i=d(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:"transparent"),s=d(()=>{var h;return e.fillColor?Array.isArray(e.fillColor)?(h=e.fillColor[1])!==null&&h!==void 0?h:e.fillColor[0]:e.fillColor:"transparent"}),v=d(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:"currentColor"),{className:C,style:E}=Pe(a),m=d(()=>["t-icon","t-icon-setting",C.value]),f=d(()=>we(we({fill:"none"},E.value),r.style)),S=d(()=>({class:m.value,style:f.value,onClick:h=>{var I;return(I=e.onClick)===null||I===void 0?void 0:I.call(e,{e:h})},strokeColor1:o.value,strokeColor2:n.value,fillColor1:i.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:v.value}));return()=>de(It,S.value)}});const At={class:"action-button-bar"},_t={class:"button-container"},Nt={class:"button-icon"},Pt={class:"button-text"},$t={class:"button-icon"},Ot={class:"ui-scale-bar"},Dt={class:"ui-scale-value"},Mt=W({__name:"ActionButtonBar",emits:["exit"],setup(e,{emit:t}){const r=t,a=A(m()),o=A(!1),n=A(!1),i=A(0),s=A(0);let v=null,C=null,E=null;function m(){const b=window.innerWidth;return b>=1920?1.2:b>=1440?1:b>=1024?.85:.7}const f=b=>{const x=window.autoScaleAnimationId;x&&(cancelAnimationFrame(x),window.autoScaleAnimationId=null),document.documentElement.style.setProperty("--ui-scale",String(b));const y=document.querySelector(".exam-container");y&&y.style.setProperty("--ui-scale",String(b)),console.log("Manual scale set to:",b),console.log("CSS variable --ui-scale is now:",getComputedStyle(document.documentElement).getPropertyValue("--ui-scale"))},S=()=>{console.log("UI Scale input changed:",a.value)};ee(()=>{a.value,f(a.value)}),z(a,b=>{console.log("uiScale watch triggered:",b),f(b),console.log("CSS variable --ui-scale set to:",b)}),ie(()=>{I(),E&&(cancelAnimationFrame(E),E=null)});const h=b=>{b.preventDefault(),console.log("开始长按退出"),n.value=!0,i.value=0,s.value=0;const x=performance.now(),y=3e3,_=1e3;v=window.setTimeout(()=>{B()},y);const g=w=>{const k=w-x;if(i.value=Math.min(k/y,1),k<=_){const N=k/_;s.value=N===1?1:1-Math.pow(2,-10*N)}else s.value=1;i.value<1?C=requestAnimationFrame(g):C=null};C=requestAnimationFrame(g)},I=()=>{v&&(clearTimeout(v),v=null),C&&(cancelAnimationFrame(C),C=null),n.value=!1,i.value=0;const b=s.value,x=performance.now(),y=500;if(b>0){const _=g=>{const w=g-x,k=Math.min(w/y,1),N=1-Math.pow(1-k,4);s.value=b*(1-N),k<1?E=requestAnimationFrame(_):(s.value=0,E=null)};E=requestAnimationFrame(_)}else s.value=0;console.log("取消长按退出")},B=()=>{console.log("退出播放(触发 exit 事件)"),r("exit")},q=()=>{console.log("打开播放设置弹窗"),o.value=!0};return(b,x)=>{const y=_e("t-dialog");return T(),$(re,null,[n.value||s.value>0?(T(),$("div",{key:0,class:"fullscreen-overlay",style:ne({"--darkness":s.value})},null,4)):F("",!0),u("div",At,[u("div",_t,[u("button",{class:ce(["action-button exit-button",{pressing:n.value}]),onMousedown:h,onMouseup:I,onMouseleave:I,onTouchstart:h,onTouchend:I,onTouchcancel:I},[n.value?(T(),$("div",{key:0,class:"progress-border",style:ne({"--progress":i.value})},null,4)):F("",!0),u("div",Nt,[M(j(Et))]),u("div",Pt,O(n.value?"按住退出":"退出播放"),1)],34),u("button",{class:"action-button",onClick:q},[u("div",$t,[M(j(St))]),x[2]||(x[2]=u("div",{class:"button-text"},"播放设置",-1))])]),u("div",Ot,[x[3]||(x[3]=u("label",{for:"ui-scale",class:"ui-scale-label"},"UI缩放:",-1)),Se(u("input",{id:"ui-scale",type:"range",min:"0.5",max:"2",step:"0.01","onUpdate:modelValue":x[0]||(x[0]=_=>a.value=_),onInput:S},null,544),[[Ae,a.value,void 0,{number:!0}]]),u("span",Dt,O(a.value.toFixed(2))+"x",1)])]),M(y,{visible:o.value,"onUpdate:visible":x[1]||(x[1]=_=>o.value=_),header:"播放设置",footer:!1,closeOnOverlayClick:!0,closeOnEscKeydown:!0},null,8,["visible"])],64)}}}),Rt=H(Mt,[["__scopeId","data-v-8847fe6b"]]),Lt={class:"content-wrapper"},jt={class:"left-column"},zt={class:"title-section"},Wt={class:"clock-content"},qt={class:"time-display"},Vt={class:"time-note"},Ft={class:"right-column"},Ht={class:"exam-room-container"},Bt={key:1,class:"room-number-modal"},Ut={class:"modal-content"},Zt={class:"modal-body"},Qt={class:"form-item"},Kt={class:"keyboard-container"},Ee="examaware:roomNumber",Gt=W({__name:"ExamPlayer",props:{examConfig:{},config:{default:()=>({roomNumber:"01"})},timeProvider:{default:()=>({getCurrentTime:()=>Date.now()})},timeSyncStatus:{default:"电脑时间"},roomNumber:{default:"01"},showActionBar:{type:Boolean,default:!0},allowEditRoomNumber:{type:Boolean,default:!0},eventHandlers:{default:()=>({})}},emits:["editClick","roomNumberClick","roomNumberChange","update:roomNumber","exit","examStart","examEnd","examAlert","examSwitch","error"],setup(e,{emit:t}){const r=A(null),a=e,o=t,n={...a.eventHandlers,onExamStart:l=>{var c,p;(p=(c=a.eventHandlers)==null?void 0:c.onExamStart)==null||p.call(c,l),o("examStart",l)},onExamEnd:l=>{var c,p;(p=(c=a.eventHandlers)==null?void 0:c.onExamEnd)==null||p.call(c,l),o("examEnd",l)},onExamAlert:(l,c)=>{var p,D;(D=(p=a.eventHandlers)==null?void 0:p.onExamAlert)==null||D.call(p,l,c),o("examAlert",l,c)},onExamSwitch:(l,c)=>{var p,D;(D=(p=a.eventHandlers)==null?void 0:p.onExamSwitch)==null||D.call(p,l,c),o("examSwitch",l,c)},onError:l=>{var c,p;(p=(c=a.eventHandlers)==null?void 0:c.onError)==null||p.call(c,l),o("error",l)}},i=Ke(a.examConfig,a.config||{roomNumber:a.roomNumber||"01"},a.timeProvider||{getCurrentTime:()=>Date.now()},n);z(()=>a.examConfig,l=>{console.log("ExamPlayer: 配置变化",l),i.updateConfig(l)},{immediate:!1,deep:!0}),z(()=>a.config,l=>{},{deep:!0}),z(()=>a.timeProvider,l=>{l&&(i.taskQueue.stop(),i.taskQueue.start())},{deep:!0});const{examConfig:s,currentExam:v,formattedExamInfos:C,examStatus:E,currentExamName:m,currentExamTimeRange:f,remainingTime:S,formattedCurrentTime:h}=i,I=A(!1),B=()=>{if(typeof window>"u")return null;try{const l=window.localStorage.getItem(Ee);return l&&l.trim()?l.trim():null}catch{return null}},q=l=>{if(!(typeof window>"u"))try{window.localStorage.setItem(Ee,l)}catch{}},b=A(a.roomNumber||B()||"01"),x=d(()=>a.roomNumber??b.value),y=A(x.value),_=A();let g=null;const w=()=>{if(!a.allowEditRoomNumber){o("roomNumberClick");return}y.value=x.value||"01",I.value=!0,setTimeout(()=>{N()},100)},k=l=>{l==="{clear}"?y.value="":l==="{bksp}"?y.value=y.value.slice(0,-1):/^[0-9a-zA-Z]$/.test(l)&&y.value.length<10&&(y.value+=l)},N=()=>{je(()=>import("./index-BvkH3f4i-DeI5J5cs.js"),[],import.meta.url).then(l=>l.i).then(({default:l})=>{_.value&&!g&&(g=new l(_.value,{layout:{default:["1 2 3","4 5 6","7 8 9","{clear} 0 {bksp}"]},display:{"{clear}":"清空","{bksp}":"⌫ 删除"},theme:"hg-theme-default hg-layout-numeric numeric-keyboard-dark",physicalKeyboardHighlight:!1,syncInstanceInputs:!1,mergeDisplay:!0,onKeyPress:c=>k(c)}))}).catch(l=>{console.warn("Failed to load simple-keyboard:",l)})},U=()=>{g&&(g.destroy(),g=null)},K=()=>{if(y.value&&y.value.trim()){const l=y.value.trim();b.value=l,q(l),o("update:roomNumber",l),o("roomNumberChange",l),I.value=!1,U()}else o("error","考场号不能为空")},X=()=>{I.value=!1,y.value=x.value||"01",U()},$e=d(()=>C.value||[]),Oe=d(()=>{var l;return((l=E.value)==null?void 0:l.status)==="pending"?"":S.value||""});ee(()=>{console.log("ExamPlayer: mounted, props.examConfig:",a.examConfig),console.log("ExamPlayer: examPlayer state:",i.state.value),console.log("ExamPlayer: formattedExamInfos:",C.value);const l=B();l&&l!==a.roomNumber&&(b.value=l,o("update:roomNumber",l),o("roomNumberChange",l))});let V=null,te=1;const ve=()=>{const l=window.innerWidth;return l>=1920?1.2:l>=1440?1:l>=1024?.85:.7},De=l=>1-Math.pow(1-l,3),fe=l=>{document.documentElement.style.setProperty("--ui-scale",String(l)),r.value&&r.value.style.setProperty("--ui-scale",String(l)),console.log("Auto-scale set to:",l)},Me=l=>{V&&cancelAnimationFrame(V);const c=te,p=performance.now(),D=400,R=J=>{const Re=J-p,pe=Math.min(Re/D,1),Le=De(pe),he=c+(l-c)*Le;te=he,fe(he),pe<1?(V=requestAnimationFrame(R),window.autoScaleAnimationId=V):(V=null,window.autoScaleAnimationId=null)};V=requestAnimationFrame(R),window.autoScaleAnimationId=V},ge=()=>{const l=ve();Me(l)},L=A(),oe=A(),G=()=>{if(!L.value||!oe.value)return;const l=L.value.parentElement;l&&setTimeout(()=>{const c=l.clientWidth;let p=50;L.value.style.fontSize=`${p}px`,L.value.offsetHeight;let D=L.value.scrollWidth;for(;D>c&&p>12;)p-=.5,L.value.style.fontSize=`${p}px`,L.value.offsetHeight,D=L.value.scrollWidth;p=Math.max(12,p-5),L.value.style.fontSize=`${p}px`;const R=p*.4;oe.value.style.fontSize=`${R}px`},10)};return ee(()=>{G(),window.addEventListener("resize",G),te=ve(),fe(te),window.addEventListener("resize",ge);const l=new MutationObserver(()=>{G()});l.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),window.addEventListener("beforeunload",()=>{l.disconnect()})}),ie(()=>{window.removeEventListener("resize",G),window.removeEventListener("resize",ge),V&&cancelAnimationFrame(V)}),z(()=>{var l;return(l=s==null?void 0:s.value)==null?void 0:l.examName},()=>G()),z(()=>{var l;return(l=s==null?void 0:s.value)==null?void 0:l.message},()=>G()),z(()=>a.roomNumber,l=>{l!=null&&(b.value=l,y.value=l)}),(l,c)=>{var p,D;return T(),$("div",{class:"exam-container",ref_key:"rootRef",ref:r},[c[8]||(c[8]=u("div",{class:"background-ellipse"},null,-1)),u("div",Lt,[u("div",jt,[c[5]||(c[5]=u("div",{class:"logo-container"},[u("span",{class:"logo-text"},"DSZ ExamAware 知试")],-1)),u("div",zt,[u("h1",{ref_key:"mainTitleRef",ref:L,class:"main-title"},O(((p=j(s))==null?void 0:p.examName)||"考试"),513),u("p",{ref_key:"subtitleRef",ref:oe,class:"subtitle"},O(((D=j(s))==null?void 0:D.message)||"请遵守考场纪律"),513)]),M(me,{"custom-class":"clock-card"},{default:Y(()=>[u("div",Wt,[u("div",qt,O(j(h)),1),u("div",Vt,[u("div",null,O(e.timeSyncStatus||"电脑时间")+"仅供参考",1),c[3]||(c[3]=u("div",null,"以考场铃声为准",-1))])])]),_:1}),M(at,{title:"当前考试信息",onIconClick:c[0]||(c[0]=R=>l.$emit("editClick")),"custom-class":"exam-info-card"},{default:Y(()=>{var R;return[M(ae,{label:"当前科目",value:j(m)},null,8,["value"]),M(ae,{label:"考试时间",value:j(f)},null,8,["value"]),M(ae,{label:"剩余时间",value:Oe.value},null,8,["value"]),(R=j(v))!=null&&R.materials&&j(v).materials.length>0?(T(!0),$(re,{key:0},Ie(j(v).materials,J=>(T(),Q(ae,{key:J.name,label:J.name,value:`${J.quantity}${J.unit}`},null,8,["label","value"]))),128)):F("",!0),c[4]||(c[4]=u("div",null,null,-1))]}),_:1})]),u("div",Ft,[u("div",Ht,[M(ut,{"room-number":x.value,onClick:w},null,8,["room-number"])]),M(Ct,{"exam-infos":$e.value},null,8,["exam-infos"])])]),e.showActionBar?(T(),Q(Rt,{key:0,onExit:c[1]||(c[1]=R=>o("exit"))})):F("",!0),I.value?(T(),$("div",Bt,[u("div",{class:"modal-overlay",onClick:X}),u("div",Ut,[u("div",{class:"modal-header"},[c[6]||(c[6]=u("h3",null,"设置考场号",-1)),u("button",{class:"close-btn",onClick:X},"×")]),u("div",Zt,[u("div",Qt,[c[7]||(c[7]=u("label",null,"考场号",-1)),Se(u("input",{"onUpdate:modelValue":c[2]||(c[2]=R=>y.value=R),type:"text",placeholder:"请输入考场号",maxlength:"10",readonly:"",class:"room-input"},null,512),[[Ae,y.value]])]),u("div",Kt,[u("div",{ref_key:"keyboardRef",ref:_,class:"virtual-keyboard"},null,512)])]),u("div",{class:"modal-footer"},[u("button",{class:"btn btn-cancel",onClick:X},"取消"),u("button",{class:"btn btn-confirm",onClick:K},"确认")])])])):F("",!0),ue(l.$slots,"extra",{},void 0)],512)}}}),Jt=H(Gt,[["__scopeId","data-v-19483b40"]]),Yt={name:"ExamPlayerPage",components:{ExamPlayer:Jt},setup(){const e=qe(),t=Ve(),r=A(!0),a=A(""),o=A(null),n=d(()=>(e.query.roomNumber||e.query.room||"01")+""),i=A(n.value),s=d(()=>({roomNumber:i.value,timeSync:!0,refreshInterval:1e3,fullscreen:!1}));async function v(){r.value=!0,a.value="",o.value=null;try{const m=e.query.url||e.query.configUrl,f=e.query.id;if(m){const S=await fetch(m);if(!S.ok)throw new Error("拉取配置失败: "+S.status);const h=await S.json();o.value=E(h)}else if(f){const S=await Fe.loadData(`es_${f}`);if(!S)throw new Error("未找到该配置");o.value=E(S)}else o.value=null}catch(m){a.value=(m==null?void 0:m.message)||String(m)}finally{r.value=!1}}function C(){t.push("/")}function E(m){return{examName:(m==null?void 0:m.examName)||"未命名考试",message:(m==null?void 0:m.message)||"",examInfos:Array.isArray(m==null?void 0:m.examInfos)?m.examInfos.map(f=>({name:(f==null?void 0:f.name)||"未命名科目",start:(f==null?void 0:f.start)||"",end:(f==null?void 0:f.end)||"",alertTime:typeof(f==null?void 0:f.alertTime)=="number"?f.alertTime:15})):[]}}return ee(v),z(()=>[e.query.id,e.query.url,e.query.configUrl,e.query.room,e.query.roomNumber],v),z(n,m=>{i.value=m}),{loading:r,error:a,config:o,roomNumberLocal:i,playerConfigObj:s,exit:C}}},Xt={key:2},ea={key:3},ta={ref:"playerRef",class:"player"};function aa(e,t,r,a,o,n){const i=_e("ExamPlayer",!0);return T(),$(re,null,[a.error?(T(),Q(ye,{key:0,border:"start",class:"mb-4",closable:"",type:"error",variant:"tonal","onClick:close":t[0]||(t[0]=s=>a.error="")},{default:Y(()=>[xe(O(a.error),1)]),_:1})):F("",!0),a.loading?(T(),Q(He,{key:1,type:"article"})):a.config?(T(),$("div",ea,[u("div",ta,[M(i,{"room-number":a.roomNumberLocal,"onUpdate:roomNumber":t[1]||(t[1]=s=>a.roomNumberLocal=s),config:a.playerConfigObj,"exam-config":a.config,"show-action-bar":!0,"time-sync-status":"电脑时间",onExit:t[2]||(t[2]=s=>a.exit())},null,8,["room-number","config","exam-config"])],512)])):(T(),$("div",Xt,[M(ye,{border:"start",type:"warning",variant:"tonal"},{default:Y(()=>[...t[3]||(t[3]=[xe(" 缺少配置,请通过 URL 参数 id 或 url 传入配置。 ",-1)])]),_:1})]))],64)}const ia=We(Yt,[["render",aa],["__scopeId","data-v-38342629"]]);export{ia as default}; diff --git a/assets/exam-player-CIP0YcPa.js b/assets/exam-player-CIP0YcPa.js new file mode 100644 index 0000000..d8b49f2 --- /dev/null +++ b/assets/exam-player-CIP0YcPa.js @@ -0,0 +1 @@ +import{aR as W,$ as A,a6 as z,a5 as d,aj as ee,aS as ie,A as $,o as T,i as u,j as Q,B as F,ak as ue,d as M,C as O,am as j,w as Y,F as re,G as Ie,I as Se,aT as Ae,aU as je,aV as le,n as ne,e as ce,r as _e,aW as ze,_ as We,t as xe,av as qe,aw as Ve}from"./index-GyS8nTIx.js";import{d as Fe}from"./dataProvider-CVD6IsoX.js";import{V as ye}from"./VAlert-CB2ovGuT.js";import{V as He}from"./VSkeletonLoader-DnBPECWc.js";function Be(e){var t;return!e.examName||!((t=e.examInfos)!=null&&t.length)?!1:e.examInfos.every(r=>r.name&&r.start&&r.end)}function Ue(e){const t=e.examInfos.slice().sort((r,a)=>new Date(r.start).getTime()-new Date(a.start).getTime());for(let r=0;rnew Date(t[r+1].start).getTime())return!0;return!1}function Ze(e){return e.examInfos.slice().sort((t,r)=>new Date(t.start).getTime()-new Date(r.start).getTime())}function se(e){return{...e,examInfos:Ze(e)}}function P(e){return e?e.includes("T")||e.includes("Z")?new Date(e):e.match(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/)?new Date(e.replace(" ","T")):new Date(e):new Date(NaN)}class Qe{constructor(t=()=>Date.now()){this.tasks=new Map,this.timeouts=new Map,this.isRunning=!1,this.timeProvider=t}addTask(t,r,a,o){const n=`${r}-${a.name}-${t}`,i={id:n,executeTime:t,type:r,examInfo:a,callback:o,status:"pending"};return this.tasks.set(n,i),this.isRunning&&this.scheduleTask(i),n}scheduleTask(t){const r=this.timeProvider(),a=t.executeTime-r;if(a<=0)this.executeTask(t);else{const o=setTimeout(()=>{this.executeTask(t)},a);this.timeouts.set(t.id,o)}}executeTask(t){try{t.callback(),t.status="completed"}catch(a){console.error(`任务执行失败: ${t.id}`,a),t.status="failed"}const r=this.timeouts.get(t.id);r&&(clearTimeout(r),this.timeouts.delete(t.id))}createTasksForConfig(t,r={}){if(this.clear(),!t.examInfos||t.examInfos.length===0)return;const a=this.timeProvider();t.examInfos.forEach(o=>{const n=P(o.start).getTime(),i=P(o.end).getTime();if(n>a&&this.addTask(n,"exam-start",o,()=>{var s;console.log(`考试开始: ${o.name}`),(s=r.onExamStart)==null||s.call(r,o)}),i>a&&this.addTask(i,"exam-end",o,()=>{var s;console.log(`考试结束: ${o.name}`),(s=r.onExamEnd)==null||s.call(r,o)}),o.alertTime&&o.alertTime>0){const s=i-o.alertTime*60*1e3;s>a&&this.addTask(s,"exam-alert",o,()=>{var v;console.log(`考试提醒: ${o.name} 将在 ${o.alertTime} 分钟后结束`),(v=r.onExamAlert)==null||v.call(r,o,o.alertTime)})}})}start(){this.isRunning||(this.isRunning=!0,this.tasks.forEach(t=>{t.status==="pending"&&this.scheduleTask(t)}))}stop(){this.isRunning=!1,this.timeouts.forEach(t=>{clearTimeout(t)}),this.timeouts.clear()}clear(){this.stop(),this.tasks.clear()}updateTimeProvider(t){this.timeProvider=t,this.isRunning&&(this.stop(),this.start())}getTaskCount(){return this.tasks.size}getTaskDetails(){return Array.from(this.tasks.values()).map(t=>({id:t.id,executeTime:t.executeTime,type:t.type,examInfo:t.examInfo,status:t.status}))}getPendingTasks(){return this.getTaskDetails().filter(t=>t.status==="pending")}}class Z{static formatExamInfos(t,r){if(!(t!=null&&t.examInfos))return[];const a=se(t);let o="";return a.examInfos.map((n,i)=>{const s=P(n.start),v=P(n.end),C=r;let E="pending",m="未开始";C>v.getTime()?(E="completed",m="已结束"):C>=s.getTime()&&(E="inProgress",m="进行中");const f=s.toLocaleDateString("zh-CN",{month:"2-digit",day:"2-digit"});let S="";return f!==o&&(S=f,o=f),{index:i,name:n.name,date:S,timeRange:`${this.formatHourMinute(s)} ~ ${this.formatHourMinute(v)}`,status:E,statusText:m,rawData:n}})}static getExamStatus(t,r){if(!t)return{status:"unknown",message:"暂无考试安排"};const a=P(t.start).getTime(),o=P(t.end).getTime(),n=r;if(n=a&&n=a&&n0?`${r} ${o}小时${a%60}分钟`:a>0?`${r} ${a}分钟`:r==="剩余"?"即将结束":"未开始"}static formatDuration(t){const r=Math.max(0,Math.floor(t/1e3)),a=Math.floor(r/3600),o=Math.floor(r%3600/60),n=r%60,i=String(o).padStart(2,"0"),s=String(n).padStart(2,"0");return a>0?`${a}:${i}:${s}`:`${i}:${s}`}static formatCurrentTime(t){return new Date(t).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}static getStatusTheme(t){return{pending:"primary",inProgress:"success",completed:"default"}[t]||"default"}static getCurrentExamIndex(t,r){if(!(t!=null&&t.examInfos)||t.examInfos.length===0)return 0;const a=se(t).examInfos,o=r;for(let n=0;n=s&&o{(!o.name||o.name.trim()==="")&&r.push(`第${n+1}场考试名称不能为空`);try{const i=P(o.start),s=P(o.end);i>=s&&r.push(`第${n+1}场考试:开始时间必须早于结束时间`)}catch{r.push(`第${n+1}场考试:时间格式无效`)}o.alertTime&&(o.alertTime<0||o.alertTime>300)&&a.push(`第${n+1}场考试:提醒时间建议在0-300分钟之间`)}),{isValid:r.length===0,errors:r,warnings:a})):(r.push("配置对象为空"),{isValid:!1,errors:r,warnings:a})}}function Ke(e,t={roomNumber:"01"},r={getCurrentTime:()=>Date.now()},a={}){const o=A({currentExamIndex:0,loading:!1,loaded:!1,error:null}),n=A(e),i=A(r.getCurrentTime()),s=new Qe(r.getCurrentTime),v=d(()=>!n.value||o.value.currentExamIndex<0||o.value.currentExamIndex>=n.value.examInfos.length?null:n.value.examInfos[o.value.currentExamIndex]),C=d(()=>n.value?se(n.value).examInfos:[]),E=d(()=>Z.getExamStatus(v.value,i.value)),m=d(()=>{var g;return((g=v.value)==null?void 0:g.name)||"暂无考试"}),f=d(()=>Z.getExamTimeRange(v.value)),S=d(()=>Z.getRemainingTimeText(v.value,i.value)),h=d(()=>Z.formatCurrentTime(i.value)),I=d(()=>Z.formatExamInfos(n.value,i.value)),B=g=>g?Be(g)?Ue(g)?(o.value.error="考试时间存在重叠",o.value.loaded=!1,s.clear(),!1):(n.value=g,o.value.error=null,o.value.loaded=!0,q(),s.createTasksForConfig(g,{onExamStart:w=>{var k;console.log(`考试开始: ${w.name}`),i.value=r.getCurrentTime(),q(),(k=a.onExamStart)==null||k.call(a,w)},onExamEnd:w=>{var k;console.log(`考试结束: ${w.name}`),i.value=r.getCurrentTime(),q(),(k=a.onExamEnd)==null||k.call(a,w)},onExamAlert:(w,k)=>{var N;console.log(`考试提醒: ${w.name} 将在 ${k} 分钟后结束`),(N=a.onExamAlert)==null||N.call(a,w,k)},onExamSwitch:a.onExamSwitch}),s.start(),!0):(o.value.error="配置验证失败",o.value.loaded=!1,s.clear(),!1):(o.value.error="配置为空",o.value.loaded=!1,s.clear(),!1),q=()=>{var g;if(!((g=n.value)!=null&&g.examInfos))return;const w=C.value;if(!w.length)return;let k=Z.getCurrentExamIndex(n.value,i.value);const N=o.value.currentExamIndex,U=w[N];if(U){const K=U?U.end:void 0;if(K){const X=P(K).getTime();i.value>=X&&N{if(!n.value||g<0||g>=n.value.examInfos.length)return!1;const w=o.value.currentExamIndex;if(o.value.currentExamIndex=g,a.onExamSwitch&&w!==g){const k=C.value[w],N=C.value[g];a.onExamSwitch(k,N)}return!0};let x=null;const y=()=>{x||(x=setInterval(()=>{i.value=r.getCurrentTime()},1e3),r.onTimeChange&&r.onTimeChange(()=>{i.value=r.getCurrentTime(),s.updateTimeProvider(r.getCurrentTime)}))},_=()=>{x&&(clearInterval(x),x=null),r.offTimeChange&&r.offTimeChange(()=>{i.value=r.getCurrentTime()}),s.stop()};return z(i,()=>{var g;(g=n.value)!=null&&g.examInfos&&o.value.loaded&&i.value%3e4<1e3&&q()}),ee(()=>{y(),n.value&&B(n.value)}),ie(()=>{_()}),{state:le(o),examConfig:le(n),currentTime:le(i),currentExam:v,sortedExamInfos:C,formattedExamInfos:I,examStatus:E,currentExamName:m,currentExamTimeRange:f,remainingTime:S,formattedCurrentTime:h,updateConfig:B,updateCurrentExam:q,switchToExam:b,startTimeUpdates:y,stopTimeUpdates:_,taskQueue:{getTaskCount:()=>s.getTaskCount(),getTaskDetails:()=>s.getTaskDetails(),getPendingTasks:()=>s.getPendingTasks(),clear:()=>s.clear(),start:()=>s.start(),stop:()=>s.stop()},dataProcessor:Z}}const Ge={class:"card-content"},Je=W({__name:"BaseCard",props:{customClass:{default:""},customStyle:{default:()=>({})}},setup(e){return(t,r)=>(T(),$("div",{class:ce(["base-card",e.customClass]),style:ne(e.customStyle)},[u("div",Ge,[ue(t.$slots,"default",{},void 0)])],6))}}),H=(e,t)=>{const r=e.__vccOpts||e;for(const[a,o]of t)r[a]=o;return r},me=H(Je,[["__scopeId","data-v-1b507f4d"]]),Ye={class:"card-header"},Xe={class:"card-title"},et={class:"card-body"},tt=W({__name:"InfoCardWithIcon",props:{title:{},showIcon:{type:Boolean,default:!0},customClass:{default:""}},emits:["iconClick"],setup(e){return(t,r)=>(T(),Q(me,{"custom-class":e.customClass},{default:Y(()=>[u("div",Ye,[u("h3",Xe,O(e.title),1),e.showIcon?(T(),$("button",{key:0,class:"card-icon",onClick:r[0]||(r[0]=a=>t.$emit("iconClick"))},[...r[1]||(r[1]=[u("svg",{class:"icon-svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)])])):F("",!0)]),u("div",et,[ue(t.$slots,"default",{},void 0,!0)])]),_:3},8,["custom-class"]))}}),at=H(tt,[["__scopeId","data-v-cd49bf6c"]]),rt={class:"info-item"},ot={class:"info-label"},lt={class:"info-value"},nt=W({__name:"InfoItem",props:{label:{},value:{}},setup(e){return(t,r)=>(T(),$("div",rt,[u("div",ot,O(e.label),1),u("div",lt,O(e.value),1)]))}}),ae=H(nt,[["__scopeId","data-v-268ec3a9"]]),st={class:"room-number-display"},it=W({__name:"ExamRoomNumber",props:{roomNumber:{}},emits:["click"],setup(e,{emit:t}){const r=t,a=()=>{console.log("考场号被点击"),r("click")};return(o,n)=>(T(),$("div",{class:"exam-room-number",onClick:a},[u("div",st,O(e.roomNumber),1)]))}}),ut=H(it,[["__scopeId","data-v-cd6f7b3d"]]),ct={class:"exam-info-item"},mt={class:"exam-date"},dt={class:"exam-details"},vt={class:"exam-subject"},ft={class:"exam-time"},gt=W({__name:"ExamInfoItem",props:{date:{},subject:{},time:{},status:{}},setup(e){const t=e,r=d(()=>{switch(t.status){case"已结束":return"status-finished";case"进行中":return"status-ongoing";case"未开始":return"status-pending";default:return""}});return(a,o)=>(T(),$("div",ct,[u("div",mt,O(e.date),1),u("div",dt,[u("div",vt,O(e.subject),1),u("div",ft,O(e.time),1),u("div",{class:ce(["exam-status",r.value])},O(e.status),3)])]))}}),pt=H(gt,[["__scopeId","data-v-a18343db"]]),ht={class:"exam-info-list"},xt={key:0,class:"empty-state"},yt=W({__name:"CurrentExamInfo",props:{examInfos:{default:()=>[]}},setup(e){return(t,r)=>(T(),Q(me,{"custom-class":"current-exam-info-card"},{default:Y(()=>[r[1]||(r[1]=u("div",{class:"card-header"},[u("h3",{class:"card-title"},"本次考试信息")],-1)),u("div",ht,[(T(!0),$(re,null,Ie(e.examInfos,a=>(T(),Q(pt,{key:a.name,date:a.date,subject:a.name,time:a.timeRange,status:a.statusText},null,8,["date","subject","time","status"]))),128)),!e.examInfos||e.examInfos.length===0?(T(),$("div",xt,[...r[0]||(r[0]=[u("span",{class:"empty-text"},"暂无考试安排",-1)])])):F("",!0)])]),_:1}))}}),Ct=H(yt,[["__scopeId","data-v-c11ab571"]]);function Ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ce=e=>{var t=["strokeLinecap","fillRule","clipRule","strokeWidth"];return t.includes(e)?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():e},de=(e,t)=>{var r={};if(e.attrs)for(var[a,o]of Object.entries(e.attrs))if(typeof o=="string"&&o.startsWith("props.")){var n=o.split(".")[1];r[Ce(a)]=t[n]}else r[Ce(a)]=o;e.tag==="svg"&&(r.class=t.class,r.style=t.style,r.onClick=t.onClick);var i=e.children?e.children.map(s=>de(s,t)):[];return ze(e.tag,r,i)},kt="t",bt={classPrefix:kt};function Tt(){var{classPrefix:e}=bt;return{SIZE:{default:"",xs:"".concat(e,"-size-xs"),small:"".concat(e,"-size-s"),medium:"".concat(e,"-size-m"),large:"".concat(e,"-size-l"),xl:"".concat(e,"-size-xl"),block:"".concat(e,"-size-full-width")},STATUS:{loading:"".concat(e,"-is-loading"),disabled:"".concat(e,"-is-disabled"),focused:"".concat(e,"-is-focused"),success:"".concat(e,"-is-success"),error:"".concat(e,"-is-error"),warning:"".concat(e,"-is-warning"),selected:"".concat(e,"-is-selected"),active:"".concat(e,"-is-active"),checked:"".concat(e,"-is-checked"),current:"".concat(e,"-is-current"),hidden:"".concat(e,"-is-hidden"),visible:"".concat(e,"-is-visible"),expanded:"".concat(e,"-is-expanded"),indeterminate:"".concat(e,"-is-indeterminate")}}}function Pe(e){var t=Tt().SIZE,r=d(()=>e.value in t?t[e.value]:""),a=d(()=>e.value===void 0||e.value in t?{}:{fontSize:e.value});return{style:a,className:r}}function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function be(e){for(var t=1;te.size),o=d(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:"currentColor"),n=d(()=>{var h;return e.strokeColor?Array.isArray(e.strokeColor)?(h=e.strokeColor[1])!==null&&h!==void 0?h:e.strokeColor[0]:e.strokeColor:"currentColor"}),i=d(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:"transparent"),s=d(()=>{var h;return e.fillColor?Array.isArray(e.fillColor)?(h=e.fillColor[1])!==null&&h!==void 0?h:e.fillColor[0]:e.fillColor:"transparent"}),v=d(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:"currentColor"),{className:C,style:E}=Pe(a),m=d(()=>["t-icon","t-icon-logout",C.value]),f=d(()=>be(be({fill:"none"},E.value),r.style)),S=d(()=>({class:m.value,style:f.value,onClick:h=>{var I;return(I=e.onClick)===null||I===void 0?void 0:I.call(e,{e:h})},strokeColor1:o.value,strokeColor2:n.value,fillColor1:i.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:v.value}));return()=>de(wt,S.value)}});function Te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function we(e){for(var t=1;te.size),o=d(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:"currentColor"),n=d(()=>{var h;return e.strokeColor?Array.isArray(e.strokeColor)?(h=e.strokeColor[1])!==null&&h!==void 0?h:e.strokeColor[0]:e.strokeColor:"currentColor"}),i=d(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:"transparent"),s=d(()=>{var h;return e.fillColor?Array.isArray(e.fillColor)?(h=e.fillColor[1])!==null&&h!==void 0?h:e.fillColor[0]:e.fillColor:"transparent"}),v=d(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:"currentColor"),{className:C,style:E}=Pe(a),m=d(()=>["t-icon","t-icon-setting",C.value]),f=d(()=>we(we({fill:"none"},E.value),r.style)),S=d(()=>({class:m.value,style:f.value,onClick:h=>{var I;return(I=e.onClick)===null||I===void 0?void 0:I.call(e,{e:h})},strokeColor1:o.value,strokeColor2:n.value,fillColor1:i.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:v.value}));return()=>de(It,S.value)}});const At={class:"action-button-bar"},_t={class:"button-container"},Nt={class:"button-icon"},Pt={class:"button-text"},$t={class:"button-icon"},Ot={class:"ui-scale-bar"},Dt={class:"ui-scale-value"},Mt=W({__name:"ActionButtonBar",emits:["exit"],setup(e,{emit:t}){const r=t,a=A(m()),o=A(!1),n=A(!1),i=A(0),s=A(0);let v=null,C=null,E=null;function m(){const b=window.innerWidth;return b>=1920?1.2:b>=1440?1:b>=1024?.85:.7}const f=b=>{const x=window.autoScaleAnimationId;x&&(cancelAnimationFrame(x),window.autoScaleAnimationId=null),document.documentElement.style.setProperty("--ui-scale",String(b));const y=document.querySelector(".exam-container");y&&y.style.setProperty("--ui-scale",String(b)),console.log("Manual scale set to:",b),console.log("CSS variable --ui-scale is now:",getComputedStyle(document.documentElement).getPropertyValue("--ui-scale"))},S=()=>{console.log("UI Scale input changed:",a.value)};ee(()=>{a.value,f(a.value)}),z(a,b=>{console.log("uiScale watch triggered:",b),f(b),console.log("CSS variable --ui-scale set to:",b)}),ie(()=>{I(),E&&(cancelAnimationFrame(E),E=null)});const h=b=>{b.preventDefault(),console.log("开始长按退出"),n.value=!0,i.value=0,s.value=0;const x=performance.now(),y=3e3,_=1e3;v=window.setTimeout(()=>{B()},y);const g=w=>{const k=w-x;if(i.value=Math.min(k/y,1),k<=_){const N=k/_;s.value=N===1?1:1-Math.pow(2,-10*N)}else s.value=1;i.value<1?C=requestAnimationFrame(g):C=null};C=requestAnimationFrame(g)},I=()=>{v&&(clearTimeout(v),v=null),C&&(cancelAnimationFrame(C),C=null),n.value=!1,i.value=0;const b=s.value,x=performance.now(),y=500;if(b>0){const _=g=>{const w=g-x,k=Math.min(w/y,1),N=1-Math.pow(1-k,4);s.value=b*(1-N),k<1?E=requestAnimationFrame(_):(s.value=0,E=null)};E=requestAnimationFrame(_)}else s.value=0;console.log("取消长按退出")},B=()=>{console.log("退出播放(触发 exit 事件)"),r("exit")},q=()=>{console.log("打开播放设置弹窗"),o.value=!0};return(b,x)=>{const y=_e("t-dialog");return T(),$(re,null,[n.value||s.value>0?(T(),$("div",{key:0,class:"fullscreen-overlay",style:ne({"--darkness":s.value})},null,4)):F("",!0),u("div",At,[u("div",_t,[u("button",{class:ce(["action-button exit-button",{pressing:n.value}]),onMousedown:h,onMouseup:I,onMouseleave:I,onTouchstart:h,onTouchend:I,onTouchcancel:I},[n.value?(T(),$("div",{key:0,class:"progress-border",style:ne({"--progress":i.value})},null,4)):F("",!0),u("div",Nt,[M(j(Et))]),u("div",Pt,O(n.value?"按住退出":"退出播放"),1)],34),u("button",{class:"action-button",onClick:q},[u("div",$t,[M(j(St))]),x[2]||(x[2]=u("div",{class:"button-text"},"播放设置",-1))])]),u("div",Ot,[x[3]||(x[3]=u("label",{for:"ui-scale",class:"ui-scale-label"},"UI缩放:",-1)),Se(u("input",{id:"ui-scale",type:"range",min:"0.5",max:"2",step:"0.01","onUpdate:modelValue":x[0]||(x[0]=_=>a.value=_),onInput:S},null,544),[[Ae,a.value,void 0,{number:!0}]]),u("span",Dt,O(a.value.toFixed(2))+"x",1)])]),M(y,{visible:o.value,"onUpdate:visible":x[1]||(x[1]=_=>o.value=_),header:"播放设置",footer:!1,closeOnOverlayClick:!0,closeOnEscKeydown:!0},null,8,["visible"])],64)}}}),Rt=H(Mt,[["__scopeId","data-v-8847fe6b"]]),Lt={class:"content-wrapper"},jt={class:"left-column"},zt={class:"title-section"},Wt={class:"clock-content"},qt={class:"time-display"},Vt={class:"time-note"},Ft={class:"right-column"},Ht={class:"exam-room-container"},Bt={key:1,class:"room-number-modal"},Ut={class:"modal-content"},Zt={class:"modal-body"},Qt={class:"form-item"},Kt={class:"keyboard-container"},Ee="examaware:roomNumber",Gt=W({__name:"ExamPlayer",props:{examConfig:{},config:{default:()=>({roomNumber:"01"})},timeProvider:{default:()=>({getCurrentTime:()=>Date.now()})},timeSyncStatus:{default:"电脑时间"},roomNumber:{default:"01"},showActionBar:{type:Boolean,default:!0},allowEditRoomNumber:{type:Boolean,default:!0},eventHandlers:{default:()=>({})}},emits:["editClick","roomNumberClick","roomNumberChange","update:roomNumber","exit","examStart","examEnd","examAlert","examSwitch","error"],setup(e,{emit:t}){const r=A(null),a=e,o=t,n={...a.eventHandlers,onExamStart:l=>{var c,p;(p=(c=a.eventHandlers)==null?void 0:c.onExamStart)==null||p.call(c,l),o("examStart",l)},onExamEnd:l=>{var c,p;(p=(c=a.eventHandlers)==null?void 0:c.onExamEnd)==null||p.call(c,l),o("examEnd",l)},onExamAlert:(l,c)=>{var p,D;(D=(p=a.eventHandlers)==null?void 0:p.onExamAlert)==null||D.call(p,l,c),o("examAlert",l,c)},onExamSwitch:(l,c)=>{var p,D;(D=(p=a.eventHandlers)==null?void 0:p.onExamSwitch)==null||D.call(p,l,c),o("examSwitch",l,c)},onError:l=>{var c,p;(p=(c=a.eventHandlers)==null?void 0:c.onError)==null||p.call(c,l),o("error",l)}},i=Ke(a.examConfig,a.config||{roomNumber:a.roomNumber||"01"},a.timeProvider||{getCurrentTime:()=>Date.now()},n);z(()=>a.examConfig,l=>{console.log("ExamPlayer: 配置变化",l),i.updateConfig(l)},{immediate:!1,deep:!0}),z(()=>a.config,l=>{},{deep:!0}),z(()=>a.timeProvider,l=>{l&&(i.taskQueue.stop(),i.taskQueue.start())},{deep:!0});const{examConfig:s,currentExam:v,formattedExamInfos:C,examStatus:E,currentExamName:m,currentExamTimeRange:f,remainingTime:S,formattedCurrentTime:h}=i,I=A(!1),B=()=>{if(typeof window>"u")return null;try{const l=window.localStorage.getItem(Ee);return l&&l.trim()?l.trim():null}catch{return null}},q=l=>{if(!(typeof window>"u"))try{window.localStorage.setItem(Ee,l)}catch{}},b=A(a.roomNumber||B()||"01"),x=d(()=>a.roomNumber??b.value),y=A(x.value),_=A();let g=null;const w=()=>{if(!a.allowEditRoomNumber){o("roomNumberClick");return}y.value=x.value||"01",I.value=!0,setTimeout(()=>{N()},100)},k=l=>{l==="{clear}"?y.value="":l==="{bksp}"?y.value=y.value.slice(0,-1):/^[0-9a-zA-Z]$/.test(l)&&y.value.length<10&&(y.value+=l)},N=()=>{je(()=>import("./index-BvkH3f4i-DeI5J5cs.js"),[],import.meta.url).then(l=>l.i).then(({default:l})=>{_.value&&!g&&(g=new l(_.value,{layout:{default:["1 2 3","4 5 6","7 8 9","{clear} 0 {bksp}"]},display:{"{clear}":"清空","{bksp}":"⌫ 删除"},theme:"hg-theme-default hg-layout-numeric numeric-keyboard-dark",physicalKeyboardHighlight:!1,syncInstanceInputs:!1,mergeDisplay:!0,onKeyPress:c=>k(c)}))}).catch(l=>{console.warn("Failed to load simple-keyboard:",l)})},U=()=>{g&&(g.destroy(),g=null)},K=()=>{if(y.value&&y.value.trim()){const l=y.value.trim();b.value=l,q(l),o("update:roomNumber",l),o("roomNumberChange",l),I.value=!1,U()}else o("error","考场号不能为空")},X=()=>{I.value=!1,y.value=x.value||"01",U()},$e=d(()=>C.value||[]),Oe=d(()=>{var l;return((l=E.value)==null?void 0:l.status)==="pending"?"":S.value||""});ee(()=>{console.log("ExamPlayer: mounted, props.examConfig:",a.examConfig),console.log("ExamPlayer: examPlayer state:",i.state.value),console.log("ExamPlayer: formattedExamInfos:",C.value);const l=B();l&&l!==a.roomNumber&&(b.value=l,o("update:roomNumber",l),o("roomNumberChange",l))});let V=null,te=1;const ve=()=>{const l=window.innerWidth;return l>=1920?1.2:l>=1440?1:l>=1024?.85:.7},De=l=>1-Math.pow(1-l,3),fe=l=>{document.documentElement.style.setProperty("--ui-scale",String(l)),r.value&&r.value.style.setProperty("--ui-scale",String(l)),console.log("Auto-scale set to:",l)},Me=l=>{V&&cancelAnimationFrame(V);const c=te,p=performance.now(),D=400,R=J=>{const Re=J-p,pe=Math.min(Re/D,1),Le=De(pe),he=c+(l-c)*Le;te=he,fe(he),pe<1?(V=requestAnimationFrame(R),window.autoScaleAnimationId=V):(V=null,window.autoScaleAnimationId=null)};V=requestAnimationFrame(R),window.autoScaleAnimationId=V},ge=()=>{const l=ve();Me(l)},L=A(),oe=A(),G=()=>{if(!L.value||!oe.value)return;const l=L.value.parentElement;l&&setTimeout(()=>{const c=l.clientWidth;let p=50;L.value.style.fontSize=`${p}px`,L.value.offsetHeight;let D=L.value.scrollWidth;for(;D>c&&p>12;)p-=.5,L.value.style.fontSize=`${p}px`,L.value.offsetHeight,D=L.value.scrollWidth;p=Math.max(12,p-5),L.value.style.fontSize=`${p}px`;const R=p*.4;oe.value.style.fontSize=`${R}px`},10)};return ee(()=>{G(),window.addEventListener("resize",G),te=ve(),fe(te),window.addEventListener("resize",ge);const l=new MutationObserver(()=>{G()});l.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),window.addEventListener("beforeunload",()=>{l.disconnect()})}),ie(()=>{window.removeEventListener("resize",G),window.removeEventListener("resize",ge),V&&cancelAnimationFrame(V)}),z(()=>{var l;return(l=s==null?void 0:s.value)==null?void 0:l.examName},()=>G()),z(()=>{var l;return(l=s==null?void 0:s.value)==null?void 0:l.message},()=>G()),z(()=>a.roomNumber,l=>{l!=null&&(b.value=l,y.value=l)}),(l,c)=>{var p,D;return T(),$("div",{class:"exam-container",ref_key:"rootRef",ref:r},[c[8]||(c[8]=u("div",{class:"background-ellipse"},null,-1)),u("div",Lt,[u("div",jt,[c[5]||(c[5]=u("div",{class:"logo-container"},[u("span",{class:"logo-text"},"DSZ ExamAware 知试")],-1)),u("div",zt,[u("h1",{ref_key:"mainTitleRef",ref:L,class:"main-title"},O(((p=j(s))==null?void 0:p.examName)||"考试"),513),u("p",{ref_key:"subtitleRef",ref:oe,class:"subtitle"},O(((D=j(s))==null?void 0:D.message)||"请遵守考场纪律"),513)]),M(me,{"custom-class":"clock-card"},{default:Y(()=>[u("div",Wt,[u("div",qt,O(j(h)),1),u("div",Vt,[u("div",null,O(e.timeSyncStatus||"电脑时间")+"仅供参考",1),c[3]||(c[3]=u("div",null,"以考场铃声为准",-1))])])]),_:1}),M(at,{title:"当前考试信息",onIconClick:c[0]||(c[0]=R=>l.$emit("editClick")),"custom-class":"exam-info-card"},{default:Y(()=>{var R;return[M(ae,{label:"当前科目",value:j(m)},null,8,["value"]),M(ae,{label:"考试时间",value:j(f)},null,8,["value"]),M(ae,{label:"剩余时间",value:Oe.value},null,8,["value"]),(R=j(v))!=null&&R.materials&&j(v).materials.length>0?(T(!0),$(re,{key:0},Ie(j(v).materials,J=>(T(),Q(ae,{key:J.name,label:J.name,value:`${J.quantity}${J.unit}`},null,8,["label","value"]))),128)):F("",!0),c[4]||(c[4]=u("div",null,null,-1))]}),_:1})]),u("div",Ft,[u("div",Ht,[M(ut,{"room-number":x.value,onClick:w},null,8,["room-number"])]),M(Ct,{"exam-infos":$e.value},null,8,["exam-infos"])])]),e.showActionBar?(T(),Q(Rt,{key:0,onExit:c[1]||(c[1]=R=>o("exit"))})):F("",!0),I.value?(T(),$("div",Bt,[u("div",{class:"modal-overlay",onClick:X}),u("div",Ut,[u("div",{class:"modal-header"},[c[6]||(c[6]=u("h3",null,"设置考场号",-1)),u("button",{class:"close-btn",onClick:X},"×")]),u("div",Zt,[u("div",Qt,[c[7]||(c[7]=u("label",null,"考场号",-1)),Se(u("input",{"onUpdate:modelValue":c[2]||(c[2]=R=>y.value=R),type:"text",placeholder:"请输入考场号",maxlength:"10",readonly:"",class:"room-input"},null,512),[[Ae,y.value]])]),u("div",Kt,[u("div",{ref_key:"keyboardRef",ref:_,class:"virtual-keyboard"},null,512)])]),u("div",{class:"modal-footer"},[u("button",{class:"btn btn-cancel",onClick:X},"取消"),u("button",{class:"btn btn-confirm",onClick:K},"确认")])])])):F("",!0),ue(l.$slots,"extra",{},void 0)],512)}}}),Jt=H(Gt,[["__scopeId","data-v-19483b40"]]),Yt={name:"ExamPlayerPage",components:{ExamPlayer:Jt},setup(){const e=qe(),t=Ve(),r=A(!0),a=A(""),o=A(null),n=d(()=>(e.query.roomNumber||e.query.room||"01")+""),i=A(n.value),s=d(()=>({roomNumber:i.value,timeSync:!0,refreshInterval:1e3,fullscreen:!1}));async function v(){r.value=!0,a.value="",o.value=null;try{const m=e.query.url||e.query.configUrl,f=e.query.id;if(m){const S=await fetch(m);if(!S.ok)throw new Error("拉取配置失败: "+S.status);const h=await S.json();o.value=E(h)}else if(f){const S=await Fe.loadData(`es_${f}`);if(!S)throw new Error("未找到该配置");o.value=E(S)}else o.value=null}catch(m){a.value=(m==null?void 0:m.message)||String(m)}finally{r.value=!1}}function C(){t.push("/")}function E(m){return{examName:(m==null?void 0:m.examName)||"未命名考试",message:(m==null?void 0:m.message)||"",examInfos:Array.isArray(m==null?void 0:m.examInfos)?m.examInfos.map(f=>({name:(f==null?void 0:f.name)||"未命名科目",start:(f==null?void 0:f.start)||"",end:(f==null?void 0:f.end)||"",alertTime:typeof(f==null?void 0:f.alertTime)=="number"?f.alertTime:15})):[]}}return ee(v),z(()=>[e.query.id,e.query.url,e.query.configUrl,e.query.room,e.query.roomNumber],v),z(n,m=>{i.value=m}),{loading:r,error:a,config:o,roomNumberLocal:i,playerConfigObj:s,exit:C}}},Xt={key:2},ea={key:3},ta={ref:"playerRef",class:"player"};function aa(e,t,r,a,o,n){const i=_e("ExamPlayer",!0);return T(),$(re,null,[a.error?(T(),Q(ye,{key:0,border:"start",class:"mb-4",closable:"",type:"error",variant:"tonal","onClick:close":t[0]||(t[0]=s=>a.error="")},{default:Y(()=>[xe(O(a.error),1)]),_:1})):F("",!0),a.loading?(T(),Q(He,{key:1,type:"article"})):a.config?(T(),$("div",ea,[u("div",ta,[M(i,{"room-number":a.roomNumberLocal,"onUpdate:roomNumber":t[1]||(t[1]=s=>a.roomNumberLocal=s),config:a.playerConfigObj,"exam-config":a.config,"show-action-bar":!0,"time-sync-status":"电脑时间",onExit:t[2]||(t[2]=s=>a.exit())},null,8,["room-number","config","exam-config"])],512)])):(T(),$("div",Xt,[M(ye,{border:"start",type:"warning",variant:"tonal"},{default:Y(()=>[...t[3]||(t[3]=[xe(" 缺少配置,请通过 URL 参数 id 或 url 传入配置。 ",-1)])]),_:1})]))],64)}const sa=We(Yt,[["render",aa],["__scopeId","data-v-38342629"]]);export{sa as default}; diff --git a/assets/examschedule-BXzrB8yd.js b/assets/examschedule-BXzrB8yd.js deleted file mode 100644 index 7348d55..0000000 --- a/assets/examschedule-BXzrB8yd.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as E}from"./ExamConfigEditor-CFH7DsKe.js";import{d as C}from"./dataProvider-bw19OswA.js";import{_ as I,j as f,o as m,w as i,d as s,l as v,q as k,t as l,v as d,Y as T,z as w,B as p,i as g,C as x,y as u,P as R,A as S,F as z,G as L,Q as B,ap as A,aq as O,L as F,H as V,N as K,M as _,x as D,k as U}from"./index-BBVdlVQD.js";import{V as j,a as q}from"./VRow-IosHPrmj.js";import{V as b}from"./VAlert-BYrhoEr8.js";import{V as N}from"./VChip-BmBm7zXx.js";import{V as M}from"./VSkeletonLoader-DuVn92u1.js";import{V as P}from"./VTextField-C-Z2P35g.js";import{V as G}from"./VContainer-OExp5t5c.js";import"./VBadge-H7ndD91w.js";import"./VTextarea-mXVeQ__0.js";import"./VMenu-CJ7CiDy8.js";import"./VDatePicker-CtGCqIzy.js";import"./VSheet-DZUeXnyk.js";import"./axios-CF6XU-xP.js";const H={name:"ExamScheduleManager",components:{ExamConfigEditor:E},data(){return{configs:[],loading:!1,error:"",success:"",renameDialog:!1,editDialog:!1,configToRename:null,editingConfig:null,newConfigName:"",renaming:!1,saving:!1}},async mounted(){await this.loadConfigs()},methods:{async initializeExampleData(){const n=[{id:"exam_example_001",examName:"期末考试安排",message:"请按时参加考试,携带学生证和身份证",examInfos:[{name:"数学",start:"2025/01/15 09:00",end:"2025/01/15 11:00"},{name:"英语",start:"2025/01/16 14:00",end:"2025/01/16 16:00"}]},{id:"exam_example_002",examName:"期中考试安排",message:"考试期间请保持安静",examInfos:[{name:"物理",start:"2025/01/20 10:00",end:"2025/01/20 12:00"},{name:"化学",start:"2025/01/21 14:00",end:"2025/01/21 16:00"}]},{id:"exam_example_003",examName:"模拟考试安排",message:"模拟考试,请认真对待",examInfos:[{name:"语文",start:"2025/01/25 09:00",end:"2025/01/25 11:30"}]}],e=n.map(r=>({id:r.id}));await C.saveData("es_list",e);for(let r of n){const c={...r};delete c.id,await C.saveData(`es_${r.id}`,c)}return n},async loadConfigs(){this.loading=!0,this.error="";try{const n=await C.loadData("es_list");if(n&&n&&n.length>0){this.configs=[];for(let e of n)try{const r=await C.loadData(`es_${e.id}`);r&&this.configs.push({id:e.id,...r})}catch(r){console.warn(`加载配置 es_${e.id} 失败:`,r)}}else this.configs=await this.initializeExampleData()}catch(n){this.error="加载配置列表失败: "+n.message,this.configs=[]}finally{this.loading=!1}},async createNewConfig(){var r,c;const n=Date.now().toString(),e={examName:"新考试配置",message:"请编辑此配置",room:U("server.classNumber")||"待定",examInfos:[{name:"科目1",start:"2025/08/29 16:27",end:"2025/08/29 17:27"}]};try{const t=await C.saveData(`es_${n}`,e);if(!t)throw new Error(((r=t.error)==null?void 0:r.message)||"保存失败");this.configs.push({id:n,...e});const a=this.configs.map(y=>({id:y.id})),h=await C.saveData("es_list",a);if(!h)throw new Error(((c=h.error)==null?void 0:c.message)||"更新列表失败");this.success="新配置创建成功";const o=this.configs.find(y=>y.id===n);o&&(this.editingConfig=o,this.editDialog=!0)}catch(t){this.error="创建配置失败: "+t.message}},showRenameDialog(n){this.configToRename=n,this.newConfigName=n.examName||`配置 ${n.id}`,this.renameDialog=!0},async renameConfig(){var n;if(!(!this.configToRename||!this.newConfigName)){this.renaming=!0;try{const e={examName:this.newConfigName,message:this.configToRename.message,examInfos:this.configToRename.examInfos},r=await C.saveData(`es_${this.configToRename.id}`,e);if(!r)throw new Error(((n=r.error)==null?void 0:n.message)||"保存失败");const c=this.configs.findIndex(t=>t.id===this.configToRename.id);c!==-1&&(this.configs[c].examName=this.newConfigName),this.success="配置重命名成功",this.renameDialog=!1,this.configToRename=null,this.newConfigName=""}catch(e){this.error="重命名配置失败: "+e.message}finally{this.renaming=!1}}},showEditDialog(n){this.editingConfig=n,this.editDialog=!0},closeEditDialog(){this.editDialog=!1,this.editingConfig=null,this.saving=!1},async saveConfigInDialog(){if(this.$refs.configEditor){this.saving=!0;try{await this.$refs.configEditor.saveConfig()}catch(n){console.error("保存配置失败:",n)}finally{this.saving=!1}}},onConfigSaved(){this.success="配置保存成功!",this.loadConfigs(),setTimeout(()=>{this.success=""},3e3)},onConfigError(n){this.error=n||"保存配置时发生错误",setTimeout(()=>{this.error=""},5e3)},onConfigOpened(){this.success="配置已在新窗口中打开",setTimeout(()=>{this.success=""},3e3)},onConfigDeleted(n){n.success?(this.success=n.message||"配置删除成功",this.editDialog=!1,this.loadConfigs()):this.error=n.message||"删除失败"}}},Q={class:"d-flex align-center"},Y={class:"d-flex align-center"},J={class:"d-flex justify-space-between align-center mb-4"},W={class:"d-flex align-center"},X={class:"d-flex align-center"},Z={class:"d-flex align-center mt-1"},$={class:"d-flex align-center"};function ee(n,e,r,c,t,a){const h=E;return m(),f(G,{class:"fill-height"},{default:i(()=>[s(j,null,{default:i(()=>[s(q,{cols:"12"},{default:i(()=>[s(v,{border:"",class:"elevation-12"},{default:i(()=>[s(k,{class:"d-flex align-center primary lighten-1 white--text py-3 px-4"},{default:i(()=>[s(d,{class:"mr-2",color:"white"},{default:i(()=>[...e[6]||(e[6]=[l("mdi-calendar-check",-1)])]),_:1}),e[7]||(e[7]=l(" 考试看板 ",-1))]),_:1}),s(T,null,{default:i(()=>[...e[8]||(e[8]=[l(" 不只是考试看板。 ",-1)])]),_:1}),s(w,null,{default:i(()=>[t.error?(m(),f(b,{key:0,border:"start",class:"mb-4 mt-3 mx-2",closable:"",type:"error",variant:"tonal","onClick:close":e[0]||(e[0]=o=>t.error="")},{default:i(()=>[g("div",Q,[s(d,{class:"mr-2"},{default:i(()=>[...e[9]||(e[9]=[l("mdi-alert-circle",-1)])]),_:1}),l(" "+x(t.error),1)])]),_:1})):p("",!0),t.success?(m(),f(b,{key:1,border:"start",class:"mb-4 mt-3 mx-2",closable:"",type:"success",variant:"tonal","onClick:close":e[1]||(e[1]=o=>t.success="")},{default:i(()=>[g("div",Y,[s(d,{class:"mr-2"},{default:i(()=>[...e[10]||(e[10]=[l("mdi-check-circle",-1)])]),_:1}),l(" "+x(t.success),1)])]),_:1})):p("",!0),g("div",J,[g("div",W,[s(u,{class:"mr-2",color:"primary","prepend-icon":"mdi-plus",onClick:a.createNewConfig},{default:i(()=>[...e[11]||(e[11]=[l(" 新建配置 ",-1)])]),_:1},8,["onClick"]),s(u,{loading:t.loading,color:"info","prepend-icon":"mdi-refresh",variant:"outlined",onClick:a.loadConfigs},{default:i(()=>[...e[12]||(e[12]=[l(" 刷新 ",-1)])]),_:1},8,["loading","onClick"])]),t.configs.length>0?(m(),f(N,{key:0,color:"primary","prepend-icon":"mdi-format-list-numbered"},{default:i(()=>[l(x(t.configs.length)+" 个配置 ",1)]),_:1})):p("",!0)]),t.loading?(m(),f(v,{key:2,class:"my-4",outlined:""},{default:i(()=>[s(w,null,{default:i(()=>[s(M,{class:"mx-auto",type:"list-item-avatar-two-line@3"})]),_:1})]),_:1})):p("",!0),!t.loading&&t.configs.length>0?(m(),f(v,{key:3,class:"my-4",elevation:"1"},{default:i(()=>[s(k,{class:"d-flex align-center pa-4 bg-primary-lighten-5"},{default:i(()=>[s(d,{class:"mr-2"},{default:i(()=>[...e[13]||(e[13]=[l("mdi-format-list-bulleted",-1)])]),_:1}),e[14]||(e[14]=g("span",{class:"font-weight-bold"},"配置列表",-1))]),_:1}),s(R,null,{default:i(()=>[(m(!0),S(z,null,L(t.configs,o=>(m(),f(B,{key:o.id,class:"border-b",style:{cursor:"pointer"},onClick:y=>a.showEditDialog(o)},{prepend:i(()=>[s(F,{class:"mr-2",color:"primary"},{default:i(()=>[s(d,{color:"white"},{default:i(()=>[...e[15]||(e[15]=[l("mdi-calendar-text",-1)])]),_:1})]),_:1})]),append:i(()=>[g("div",$,[s(u,{class:"mr-1",color:"primary",icon:"mdi-pencil",size:"small",variant:"text",onClick:y=>a.showEditDialog(o)},{default:i(()=>[s(d,null,{default:i(()=>[...e[18]||(e[18]=[l("mdi-pencil",-1)])]),_:1})]),_:1},8,["onClick"]),s(u,{class:"mr-1",color:"info",icon:"mdi-eye",size:"small",variant:"text",onClick:y=>a.showEditDialog(o)},{default:i(()=>[s(d,null,{default:i(()=>[...e[19]||(e[19]=[l("mdi-eye",-1)])]),_:1})]),_:1},8,["onClick"])])]),default:i(()=>[s(A,{class:"font-weight-medium"},{default:i(()=>[l(x(o.examName||`配置 ${o.id}`),1)]),_:2},1024),s(O,{class:"text-caption mt-1"},{default:i(()=>[g("div",X,[s(d,{class:"mr-1",size:"small"},{default:i(()=>[...e[16]||(e[16]=[l("mdi-information-outline",-1)])]),_:1}),l(" "+x(o.message||"无描述"),1)]),g("div",Z,[s(d,{class:"mr-1",size:"small"},{default:i(()=>[...e[17]||(e[17]=[l("mdi-book-multiple",-1)])]),_:1}),l(" "+x(o.examInfos?o.examInfos.length:0)+" 堂考试 ",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})):p("",!0),!t.loading&&t.configs.length===0?(m(),f(v,{key:4,class:"my-4",elevation:"1"},{default:i(()=>[s(w,{class:"text-center py-8"},{default:i(()=>[s(d,{class:"mb-4",color:"grey-lighten-1",size:"64"},{default:i(()=>[...e[20]||(e[20]=[l(" mdi-calendar-blank ",-1)])]),_:1}),e[22]||(e[22]=g("h3",{class:"text-h6 mb-2 text-grey-darken-1"},"暂无配置",-1)),e[23]||(e[23]=g("p",{class:"text-body-2 text-grey-darken-1 mb-4"},' 点击"新建配置"按钮创建您的第一个考试配置 ',-1)),s(u,{color:"primary","prepend-icon":"mdi-plus",onClick:a.createNewConfig},{default:i(()=>[...e[21]||(e[21]=[l(" 新建配置 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})):p("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),s(V,{modelValue:t.renameDialog,"onUpdate:modelValue":e[4]||(e[4]=o=>t.renameDialog=o),"max-width":"500"},{default:i(()=>[s(v,null,{default:i(()=>[s(k,{class:"d-flex align-center"},{default:i(()=>[s(d,{class:"mr-2",color:"primary"},{default:i(()=>[...e[24]||(e[24]=[l("mdi-rename-box",-1)])]),_:1}),e[25]||(e[25]=l(" 重命名配置 ",-1))]),_:1}),s(w,null,{default:i(()=>[s(P,{modelValue:t.newConfigName,"onUpdate:modelValue":e[2]||(e[2]=o=>t.newConfigName=o),rules:[o=>!!o||"配置名称不能为空"],label:"配置名称","prepend-inner-icon":"mdi-calendar-text",variant:"outlined",onKeyup:K(a.renameConfig,["enter"])},null,8,["modelValue","rules","onKeyup"])]),_:1}),s(_,null,{default:i(()=>[s(D),s(u,{color:"grey",variant:"text",onClick:e[3]||(e[3]=o=>t.renameDialog=!1)},{default:i(()=>[...e[26]||(e[26]=[l(" 取消 ",-1)])]),_:1}),s(u,{disabled:!t.newConfigName,loading:t.renaming,color:"primary",variant:"outlined",onClick:a.renameConfig},{default:i(()=>[...e[27]||(e[27]=[l(" 确认 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),s(V,{modelValue:t.editDialog,"onUpdate:modelValue":e[5]||(e[5]=o=>t.editDialog=o),"max-width":"1200",persistent:""},{default:i(()=>[s(v,null,{default:i(()=>[s(k,{class:"d-flex align-center primary lighten-1 white--text py-3 px-4"},{default:i(()=>[s(d,{class:"mr-2",color:"white"},{default:i(()=>[...e[28]||(e[28]=[l("mdi-pencil",-1)])]),_:1}),e[30]||(e[30]=l(" 编辑考试配置 ",-1)),s(D),t.editingConfig?(m(),f(N,{key:0,class:"mr-2",color:"white",size:"small","text-color":"primary"},{default:i(()=>[l(" ID: "+x(t.editingConfig.id),1)]),_:1})):p("",!0),s(u,{color:"white",icon:"mdi-close",variant:"text",onClick:a.closeEditDialog},{default:i(()=>[s(d,null,{default:i(()=>[...e[29]||(e[29]=[l("mdi-close",-1)])]),_:1})]),_:1},8,["onClick"])]),_:1}),s(w,{class:"pa-4",style:{"max-height":"70vh","overflow-y":"auto"}},{default:i(()=>[t.editingConfig?(m(),f(h,{key:0,ref:"configEditor","config-id":t.editingConfig.id,"dialog-mode":!0,onDeleted:a.onConfigDeleted,onError:a.onConfigError,onOpened:a.onConfigOpened,onSaved:a.onConfigSaved},null,8,["config-id","onDeleted","onError","onOpened","onSaved"])):p("",!0)]),_:1}),s(_,{class:"pa-4"},{default:i(()=>[s(u,{color:"grey","prepend-icon":"mdi-close",variant:"outlined",onClick:a.closeEditDialog},{default:i(()=>[...e[31]||(e[31]=[l(" 关闭 ",-1)])]),_:1},8,["onClick"]),s(D),s(u,{loading:t.saving,color:"success","prepend-icon":"mdi-content-save",variant:"outlined",onClick:a.saveConfigInDialog},{default:i(()=>[...e[32]||(e[32]=[l(" 保存配置 ",-1)])]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const Ce=I(H,[["render",ee],["__scopeId","data-v-45ef6e1d"]]);export{Ce as default}; diff --git a/assets/examschedule-CSfflKwV.js b/assets/examschedule-CSfflKwV.js new file mode 100644 index 0000000..f63da98 --- /dev/null +++ b/assets/examschedule-CSfflKwV.js @@ -0,0 +1 @@ +import{_ as E}from"./ExamConfigEditor-CcO-5EW7.js";import{d as C}from"./dataProvider-CVD6IsoX.js";import{_ as I,j as f,o as m,w as i,d as s,l as v,q as k,t as l,v as d,Y as T,z as w,B as p,i as g,C as x,y as u,P as R,A as S,F as z,G as L,Q as B,ap as A,aq as O,L as F,H as V,N as K,M as _,x as D,k as U}from"./index-GyS8nTIx.js";import{V as j,a as q}from"./VRow-DtMdTMSo.js";import{V as b}from"./VAlert-CB2ovGuT.js";import{V as N}from"./VChip-DsTHqUw0.js";import{V as M}from"./VSkeletonLoader-DnBPECWc.js";import{V as P}from"./VTextField-xLiM0gib.js";import{V as G}from"./VContainer-B1JGY98V.js";import"./VBadge-Dfdn66Fe.js";import"./VTextarea-BeSb8uK6.js";import"./VMenu-ClQzjH_h.js";import"./VDatePicker-D6FkGAp6.js";import"./VSheet-DBWP7oOE.js";const H={name:"ExamScheduleManager",components:{ExamConfigEditor:E},data(){return{configs:[],loading:!1,error:"",success:"",renameDialog:!1,editDialog:!1,configToRename:null,editingConfig:null,newConfigName:"",renaming:!1,saving:!1}},async mounted(){await this.loadConfigs()},methods:{async initializeExampleData(){const n=[{id:"exam_example_001",examName:"期末考试安排",message:"请按时参加考试,携带学生证和身份证",examInfos:[{name:"数学",start:"2025/01/15 09:00",end:"2025/01/15 11:00"},{name:"英语",start:"2025/01/16 14:00",end:"2025/01/16 16:00"}]},{id:"exam_example_002",examName:"期中考试安排",message:"考试期间请保持安静",examInfos:[{name:"物理",start:"2025/01/20 10:00",end:"2025/01/20 12:00"},{name:"化学",start:"2025/01/21 14:00",end:"2025/01/21 16:00"}]},{id:"exam_example_003",examName:"模拟考试安排",message:"模拟考试,请认真对待",examInfos:[{name:"语文",start:"2025/01/25 09:00",end:"2025/01/25 11:30"}]}],e=n.map(r=>({id:r.id}));await C.saveData("es_list",e);for(let r of n){const c={...r};delete c.id,await C.saveData(`es_${r.id}`,c)}return n},async loadConfigs(){this.loading=!0,this.error="";try{const n=await C.loadData("es_list");if(n&&n&&n.length>0){this.configs=[];for(let e of n)try{const r=await C.loadData(`es_${e.id}`);r&&this.configs.push({id:e.id,...r})}catch(r){console.warn(`加载配置 es_${e.id} 失败:`,r)}}else this.configs=await this.initializeExampleData()}catch(n){this.error="加载配置列表失败: "+n.message,this.configs=[]}finally{this.loading=!1}},async createNewConfig(){var r,c;const n=Date.now().toString(),e={examName:"新考试配置",message:"请编辑此配置",room:U("server.classNumber")||"待定",examInfos:[{name:"科目1",start:"2025/08/29 16:27",end:"2025/08/29 17:27"}]};try{const t=await C.saveData(`es_${n}`,e);if(!t)throw new Error(((r=t.error)==null?void 0:r.message)||"保存失败");this.configs.push({id:n,...e});const a=this.configs.map(y=>({id:y.id})),h=await C.saveData("es_list",a);if(!h)throw new Error(((c=h.error)==null?void 0:c.message)||"更新列表失败");this.success="新配置创建成功";const o=this.configs.find(y=>y.id===n);o&&(this.editingConfig=o,this.editDialog=!0)}catch(t){this.error="创建配置失败: "+t.message}},showRenameDialog(n){this.configToRename=n,this.newConfigName=n.examName||`配置 ${n.id}`,this.renameDialog=!0},async renameConfig(){var n;if(!(!this.configToRename||!this.newConfigName)){this.renaming=!0;try{const e={examName:this.newConfigName,message:this.configToRename.message,examInfos:this.configToRename.examInfos},r=await C.saveData(`es_${this.configToRename.id}`,e);if(!r)throw new Error(((n=r.error)==null?void 0:n.message)||"保存失败");const c=this.configs.findIndex(t=>t.id===this.configToRename.id);c!==-1&&(this.configs[c].examName=this.newConfigName),this.success="配置重命名成功",this.renameDialog=!1,this.configToRename=null,this.newConfigName=""}catch(e){this.error="重命名配置失败: "+e.message}finally{this.renaming=!1}}},showEditDialog(n){this.editingConfig=n,this.editDialog=!0},closeEditDialog(){this.editDialog=!1,this.editingConfig=null,this.saving=!1},async saveConfigInDialog(){if(this.$refs.configEditor){this.saving=!0;try{await this.$refs.configEditor.saveConfig()}catch(n){console.error("保存配置失败:",n)}finally{this.saving=!1}}},onConfigSaved(){this.success="配置保存成功!",this.loadConfigs(),setTimeout(()=>{this.success=""},3e3)},onConfigError(n){this.error=n||"保存配置时发生错误",setTimeout(()=>{this.error=""},5e3)},onConfigOpened(){this.success="配置已在新窗口中打开",setTimeout(()=>{this.success=""},3e3)},onConfigDeleted(n){n.success?(this.success=n.message||"配置删除成功",this.editDialog=!1,this.loadConfigs()):this.error=n.message||"删除失败"}}},Q={class:"d-flex align-center"},Y={class:"d-flex align-center"},J={class:"d-flex justify-space-between align-center mb-4"},W={class:"d-flex align-center"},X={class:"d-flex align-center"},Z={class:"d-flex align-center mt-1"},$={class:"d-flex align-center"};function ee(n,e,r,c,t,a){const h=E;return m(),f(G,{class:"fill-height"},{default:i(()=>[s(j,null,{default:i(()=>[s(q,{cols:"12"},{default:i(()=>[s(v,{border:"",class:"elevation-12"},{default:i(()=>[s(k,{class:"d-flex align-center primary lighten-1 white--text py-3 px-4"},{default:i(()=>[s(d,{class:"mr-2",color:"white"},{default:i(()=>[...e[6]||(e[6]=[l("mdi-calendar-check",-1)])]),_:1}),e[7]||(e[7]=l(" 考试看板 ",-1))]),_:1}),s(T,null,{default:i(()=>[...e[8]||(e[8]=[l(" 不只是考试看板。 ",-1)])]),_:1}),s(w,null,{default:i(()=>[t.error?(m(),f(b,{key:0,border:"start",class:"mb-4 mt-3 mx-2",closable:"",type:"error",variant:"tonal","onClick:close":e[0]||(e[0]=o=>t.error="")},{default:i(()=>[g("div",Q,[s(d,{class:"mr-2"},{default:i(()=>[...e[9]||(e[9]=[l("mdi-alert-circle",-1)])]),_:1}),l(" "+x(t.error),1)])]),_:1})):p("",!0),t.success?(m(),f(b,{key:1,border:"start",class:"mb-4 mt-3 mx-2",closable:"",type:"success",variant:"tonal","onClick:close":e[1]||(e[1]=o=>t.success="")},{default:i(()=>[g("div",Y,[s(d,{class:"mr-2"},{default:i(()=>[...e[10]||(e[10]=[l("mdi-check-circle",-1)])]),_:1}),l(" "+x(t.success),1)])]),_:1})):p("",!0),g("div",J,[g("div",W,[s(u,{class:"mr-2",color:"primary","prepend-icon":"mdi-plus",onClick:a.createNewConfig},{default:i(()=>[...e[11]||(e[11]=[l(" 新建配置 ",-1)])]),_:1},8,["onClick"]),s(u,{loading:t.loading,color:"info","prepend-icon":"mdi-refresh",variant:"outlined",onClick:a.loadConfigs},{default:i(()=>[...e[12]||(e[12]=[l(" 刷新 ",-1)])]),_:1},8,["loading","onClick"])]),t.configs.length>0?(m(),f(N,{key:0,color:"primary","prepend-icon":"mdi-format-list-numbered"},{default:i(()=>[l(x(t.configs.length)+" 个配置 ",1)]),_:1})):p("",!0)]),t.loading?(m(),f(v,{key:2,class:"my-4",outlined:""},{default:i(()=>[s(w,null,{default:i(()=>[s(M,{class:"mx-auto",type:"list-item-avatar-two-line@3"})]),_:1})]),_:1})):p("",!0),!t.loading&&t.configs.length>0?(m(),f(v,{key:3,class:"my-4",elevation:"1"},{default:i(()=>[s(k,{class:"d-flex align-center pa-4 bg-primary-lighten-5"},{default:i(()=>[s(d,{class:"mr-2"},{default:i(()=>[...e[13]||(e[13]=[l("mdi-format-list-bulleted",-1)])]),_:1}),e[14]||(e[14]=g("span",{class:"font-weight-bold"},"配置列表",-1))]),_:1}),s(R,null,{default:i(()=>[(m(!0),S(z,null,L(t.configs,o=>(m(),f(B,{key:o.id,class:"border-b",style:{cursor:"pointer"},onClick:y=>a.showEditDialog(o)},{prepend:i(()=>[s(F,{class:"mr-2",color:"primary"},{default:i(()=>[s(d,{color:"white"},{default:i(()=>[...e[15]||(e[15]=[l("mdi-calendar-text",-1)])]),_:1})]),_:1})]),append:i(()=>[g("div",$,[s(u,{class:"mr-1",color:"primary",icon:"mdi-pencil",size:"small",variant:"text",onClick:y=>a.showEditDialog(o)},{default:i(()=>[s(d,null,{default:i(()=>[...e[18]||(e[18]=[l("mdi-pencil",-1)])]),_:1})]),_:1},8,["onClick"]),s(u,{class:"mr-1",color:"info",icon:"mdi-eye",size:"small",variant:"text",onClick:y=>a.showEditDialog(o)},{default:i(()=>[s(d,null,{default:i(()=>[...e[19]||(e[19]=[l("mdi-eye",-1)])]),_:1})]),_:1},8,["onClick"])])]),default:i(()=>[s(A,{class:"font-weight-medium"},{default:i(()=>[l(x(o.examName||`配置 ${o.id}`),1)]),_:2},1024),s(O,{class:"text-caption mt-1"},{default:i(()=>[g("div",X,[s(d,{class:"mr-1",size:"small"},{default:i(()=>[...e[16]||(e[16]=[l("mdi-information-outline",-1)])]),_:1}),l(" "+x(o.message||"无描述"),1)]),g("div",Z,[s(d,{class:"mr-1",size:"small"},{default:i(()=>[...e[17]||(e[17]=[l("mdi-book-multiple",-1)])]),_:1}),l(" "+x(o.examInfos?o.examInfos.length:0)+" 堂考试 ",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})):p("",!0),!t.loading&&t.configs.length===0?(m(),f(v,{key:4,class:"my-4",elevation:"1"},{default:i(()=>[s(w,{class:"text-center py-8"},{default:i(()=>[s(d,{class:"mb-4",color:"grey-lighten-1",size:"64"},{default:i(()=>[...e[20]||(e[20]=[l(" mdi-calendar-blank ",-1)])]),_:1}),e[22]||(e[22]=g("h3",{class:"text-h6 mb-2 text-grey-darken-1"},"暂无配置",-1)),e[23]||(e[23]=g("p",{class:"text-body-2 text-grey-darken-1 mb-4"},' 点击"新建配置"按钮创建您的第一个考试配置 ',-1)),s(u,{color:"primary","prepend-icon":"mdi-plus",onClick:a.createNewConfig},{default:i(()=>[...e[21]||(e[21]=[l(" 新建配置 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})):p("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),s(V,{modelValue:t.renameDialog,"onUpdate:modelValue":e[4]||(e[4]=o=>t.renameDialog=o),"max-width":"500"},{default:i(()=>[s(v,null,{default:i(()=>[s(k,{class:"d-flex align-center"},{default:i(()=>[s(d,{class:"mr-2",color:"primary"},{default:i(()=>[...e[24]||(e[24]=[l("mdi-rename-box",-1)])]),_:1}),e[25]||(e[25]=l(" 重命名配置 ",-1))]),_:1}),s(w,null,{default:i(()=>[s(P,{modelValue:t.newConfigName,"onUpdate:modelValue":e[2]||(e[2]=o=>t.newConfigName=o),rules:[o=>!!o||"配置名称不能为空"],label:"配置名称","prepend-inner-icon":"mdi-calendar-text",variant:"outlined",onKeyup:K(a.renameConfig,["enter"])},null,8,["modelValue","rules","onKeyup"])]),_:1}),s(_,null,{default:i(()=>[s(D),s(u,{color:"grey",variant:"text",onClick:e[3]||(e[3]=o=>t.renameDialog=!1)},{default:i(()=>[...e[26]||(e[26]=[l(" 取消 ",-1)])]),_:1}),s(u,{disabled:!t.newConfigName,loading:t.renaming,color:"primary",variant:"outlined",onClick:a.renameConfig},{default:i(()=>[...e[27]||(e[27]=[l(" 确认 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),s(V,{modelValue:t.editDialog,"onUpdate:modelValue":e[5]||(e[5]=o=>t.editDialog=o),"max-width":"1200",persistent:""},{default:i(()=>[s(v,null,{default:i(()=>[s(k,{class:"d-flex align-center primary lighten-1 white--text py-3 px-4"},{default:i(()=>[s(d,{class:"mr-2",color:"white"},{default:i(()=>[...e[28]||(e[28]=[l("mdi-pencil",-1)])]),_:1}),e[30]||(e[30]=l(" 编辑考试配置 ",-1)),s(D),t.editingConfig?(m(),f(N,{key:0,class:"mr-2",color:"white",size:"small","text-color":"primary"},{default:i(()=>[l(" ID: "+x(t.editingConfig.id),1)]),_:1})):p("",!0),s(u,{color:"white",icon:"mdi-close",variant:"text",onClick:a.closeEditDialog},{default:i(()=>[s(d,null,{default:i(()=>[...e[29]||(e[29]=[l("mdi-close",-1)])]),_:1})]),_:1},8,["onClick"])]),_:1}),s(w,{class:"pa-4",style:{"max-height":"70vh","overflow-y":"auto"}},{default:i(()=>[t.editingConfig?(m(),f(h,{key:0,ref:"configEditor","config-id":t.editingConfig.id,"dialog-mode":!0,onDeleted:a.onConfigDeleted,onError:a.onConfigError,onOpened:a.onConfigOpened,onSaved:a.onConfigSaved},null,8,["config-id","onDeleted","onError","onOpened","onSaved"])):p("",!0)]),_:1}),s(_,{class:"pa-4"},{default:i(()=>[s(u,{color:"grey","prepend-icon":"mdi-close",variant:"outlined",onClick:a.closeEditDialog},{default:i(()=>[...e[31]||(e[31]=[l(" 关闭 ",-1)])]),_:1},8,["onClick"]),s(D),s(u,{loading:t.saving,color:"success","prepend-icon":"mdi-content-save",variant:"outlined",onClick:a.saveConfigInDialog},{default:i(()=>[...e[32]||(e[32]=[l(" 保存配置 ",-1)])]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const pe=I(H,[["render",ee],["__scopeId","data-v-45ef6e1d"]]);export{pe as default}; diff --git a/assets/filter-B-69CGo3.css b/assets/filter-B-69CGo3.css new file mode 100644 index 0000000..73ae1bf --- /dev/null +++ b/assets/filter-B-69CGo3.css @@ -0,0 +1 @@ +.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}.v-checkbox.v-input{flex:0 1 auto}.v-checkbox .v-selection-control{min-height:var(--v-input-control-height)}.v-select--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-select--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-select--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-select--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;left:0;right:0;width:100%;transition:none;pointer-events:none;caret-color:transparent;padding-inline:inherit}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden}.v-select__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-menu>.v-overlay__content.v-select__content{border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{transform:rotate(180deg)}.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block} diff --git a/assets/filter-Bc0G1Z2P.js b/assets/filter-Bc0G1Z2P.js deleted file mode 100644 index 8af3639..0000000 --- a/assets/filter-Bc0G1Z2P.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as ae,c5 as Ze,g as he,p as ee,a3 as Pe,Z as Ie,b8 as Ge,bl as Je,X as Ne,a0 as X,aH as Te,c6 as Le,a5 as O,a$ as ve,ay as Q,c as ye,d as A,i as x,y as re,E as K,e as ne,n as ze,c7 as Ye,bh as qe,m as et,c8 as tt,bi as at,bm as lt,aJ as nt,h as _e,bE as it,aO as oe,c9 as Me,a7 as ge,a6 as le,F as ie,b5 as Se,aZ as ut,bw as He,a_ as pe,c3 as Ue,a8 as je,bT as rt,u as st,bv as ot,aj as ct,bQ as dt,aI as me,f as ft,aN as vt,c1 as Re,a1 as mt,a4 as xe,ag as Ve,v as Be,P as gt,Q as De,ca as ht,K as yt,aa as bt,L as pt,ab as Vt,ac as kt,t as wt,ad as Pt,bg as St,ae as xt,cb as It,af as Oe,ah as Ee,cc as Lt,am as se}from"./index-BBVdlVQD.js";import{u as _t,h as At,V as $e,m as Ct}from"./VTextField-C-Z2P35g.js";import{V as Ft}from"./VMenu-CJ7CiDy8.js";import{V as Tt}from"./VCheckboxBtn-CtaD8oYU.js";import{V as Ke}from"./VChip-BmBm7zXx.js";function Mt(){const e=ae([]);Ze(()=>e.value=[]);function n(t,u){e.value[u]=t}return{refs:e,updateRef:n}}const Rt=ee({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:oe,default:"$first"},prevIcon:{type:oe,default:"$prev"},nextIcon:{type:oe,default:"$next"},lastIcon:{type:oe,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...it(),..._e(),...nt(),...lt(),...at(),...tt(),...et({tag:"nav"}),...qe(),...Ye({variant:"text"})},"VPagination"),aa=he()({name:"VPagination",props:Rt(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,n){let{slots:t,emit:u}=n;const a=Pe(e,"modelValue"),{t:c,n:m}=Ie(),{isRtl:i}=Ge(),{themeClasses:s}=Je(e),{width:P}=Ne(),r=X(-1);Te(void 0,{scoped:!0});const{resizeRef:$}=Le(o=>{if(!o.length)return;const{target:p,contentRect:k}=o[0],M=p.querySelector(".v-pagination__list > *");if(!M)return;const L=k.width,G=M.offsetWidth+parseFloat(getComputedStyle(M).marginRight)*2;r.value=w(L,G)}),g=O(()=>parseInt(e.length,10)),d=O(()=>parseInt(e.start,10)),V=O(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):r.value>=0?r.value:w(P.value,58));function w(o,p){const k=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((o-p*k)/p).toFixed(2))))}const y=O(()=>{if(g.value<=0||isNaN(g.value)||g.value>Number.MAX_SAFE_INTEGER)return[];if(V.value<=0)return[];if(V.value===1)return[a.value];if(g.value<=V.value)return ve(g.value,d.value);const o=V.value%2===0,p=o?V.value/2:Math.floor(V.value/2),k=o?p:p+1,M=g.value-p;if(k-a.value>=0)return[...ve(Math.max(1,V.value-1),d.value),e.ellipsis,g.value];if(a.value-M>=(o?1:0)){const L=V.value-1,G=g.value-L+d.value;return[d.value,e.ellipsis,...ve(L,G)]}else{const L=Math.max(1,V.value-2),G=L===1?a.value:a.value-Math.ceil(L/2)+d.value;return[d.value,e.ellipsis,...ve(L,G),e.ellipsis,g.value]}});function b(o,p,k){o.preventDefault(),a.value=p,k&&u(k,p)}const{refs:C,updateRef:F}=Mt();Te({VPaginationBtn:{color:Q(()=>e.color),border:Q(()=>e.border),density:Q(()=>e.density),size:Q(()=>e.size),variant:Q(()=>e.variant),rounded:Q(()=>e.rounded),elevation:Q(()=>e.elevation)}});const N=O(()=>y.value.map((o,p)=>{const k=M=>F(M,p);if(typeof o=="string")return{isActive:!1,key:`ellipsis-${p}`,page:o,props:{ref:k,ellipsis:!0,icon:!0,disabled:!0}};{const M=o===a.value;return{isActive:M,key:o,page:m(o),props:{ref:k,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:M?e.activeColor:e.color,"aria-current":M,"aria-label":c(M?e.currentPageAriaLabel:e.pageAriaLabel,o),onClick:L=>b(L,o)}}}})),T=O(()=>{const o=!!e.disabled||a.value<=d.value,p=!!e.disabled||a.value>=d.value+g.value-1;return{first:e.showFirstLastPage?{icon:i.value?e.lastIcon:e.firstIcon,onClick:k=>b(k,d.value,"first"),disabled:o,"aria-label":c(e.firstAriaLabel),"aria-disabled":o}:void 0,prev:{icon:i.value?e.nextIcon:e.prevIcon,onClick:k=>b(k,a.value-1,"prev"),disabled:o,"aria-label":c(e.previousAriaLabel),"aria-disabled":o},next:{icon:i.value?e.prevIcon:e.nextIcon,onClick:k=>b(k,a.value+1,"next"),disabled:p,"aria-label":c(e.nextAriaLabel),"aria-disabled":p},last:e.showFirstLastPage?{icon:i.value?e.firstIcon:e.lastIcon,onClick:k=>b(k,d.value+g.value-1,"last"),disabled:p,"aria-label":c(e.lastAriaLabel),"aria-disabled":p}:void 0}});function I(){var p;const o=a.value-d.value;(p=C.value[o])==null||p.$el.focus()}function H(o){o.key===Me.left&&!e.disabled&&a.value>Number(e.start)?(a.value=a.value-1,ge(I)):o.key===Me.right&&!e.disabled&&a.valueA(e.tag,{ref:$,class:ne(["v-pagination",s.value,e.class]),style:ze(e.style),role:"navigation","aria-label":c(e.ariaLabel),onKeydown:H,"data-test":"v-pagination-root"},{default:()=>[x("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&x("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[t.first?t.first(T.value.first):A(re,K({_as:"VPaginationBtn"},T.value.first),null)]),x("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[t.prev?t.prev(T.value.prev):A(re,K({_as:"VPaginationBtn"},T.value.prev),null)]),N.value.map((o,p)=>x("li",{key:o.key,class:ne(["v-pagination__item",{"v-pagination__item--is-active":o.isActive}]),"data-test":"v-pagination-item"},[t.item?t.item(o):A(re,K({_as:"VPaginationBtn"},o.props),{default:()=>[o.page]})])),x("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[t.next?t.next(T.value.next):A(re,K({_as:"VPaginationBtn"},T.value.next),null)]),e.showFirstLastPage&&x("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[t.last?t.last(T.value.last):A(re,K({_as:"VPaginationBtn"},T.value.last),null)])])]})),{}}}),Bt=ee({renderless:Boolean,..._e()},"VVirtualScrollItem"),Dt=he()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Bt(),emits:{"update:height":e=>!0},setup(e,n){let{attrs:t,emit:u,slots:a}=n;const{resizeRef:c,contentRect:m}=Le(void 0,"border");le(()=>{var i;return(i=m.value)==null?void 0:i.height},i=>{i!=null&&u("update:height",i)}),ye(()=>{var i,s;return e.renderless?x(ie,null,[(i=a.default)==null?void 0:i.call(a,{itemRef:c})]):x("div",K({ref:c,class:["v-virtual-scroll__item",e.class],style:e.style},t),[(s=a.default)==null?void 0:s.call(a)])})}}),Ot=-1,Et=1,ke=100,$t=ee({itemHeight:{type:[Number,String],default:null},itemKey:{type:[String,Array,Function],default:null},height:[Number,String]},"virtual");function Kt(e,n){const t=Ne(),u=X(0);Se(()=>{u.value=parseFloat(e.itemHeight||0)});const a=X(0),c=X(Math.ceil((parseInt(e.height)||t.height.value)/(u.value||16))||1),m=X(0),i=X(0),s=ae(),P=ae();let r=0;const{resizeRef:$,contentRect:g}=Le();Se(()=>{$.value=s.value});const d=O(()=>{var f;return s.value===document.documentElement?t.height.value:((f=g.value)==null?void 0:f.height)||parseInt(e.height)||0}),V=O(()=>!!(s.value&&P.value&&d.value&&u.value));let w=Array.from({length:n.value.length}),y=Array.from({length:n.value.length});const b=X(0);let C=-1;function F(f){return w[f]||u.value}const N=ut(()=>{const f=performance.now();y[0]=0;const S=n.value.length;for(let B=1;B<=S;B++)y[B]=(y[B-1]||0)+F(B-1);b.value=Math.max(b.value,performance.now()-f)},b),T=le(V,f=>{f&&(T(),r=P.value.offsetTop,N.immediate(),J(),~C&&ge(()=>{je&&window.requestAnimationFrame(()=>{te(C),C=-1})}))});He(()=>{N.clear()});function I(f,S){const B=w[f],z=u.value;u.value=z?Math.min(u.value,S):S,(B!==S||z!==u.value)&&(w[f]=S,N())}function H(f){f=pe(f,0,n.value.length);const S=Math.floor(f),B=f%1,z=S+1,l=y[S]||0,v=y[z]||l;return l+(v-l)*B}function o(f){return Nt(y,f)}let p=0,k=0,M=0;le(d,(f,S)=>{S&&(J(),f{k=0,J()}))});let L=-1;function G(){if(!s.value||!P.value)return;const f=s.value.scrollTop,S=performance.now();S-M>500?(k=Math.sign(f-p),r=P.value.offsetTop):k=f-p,p=f,M=S,window.clearTimeout(L),L=window.setTimeout(ce,500),J()}function ce(){!s.value||!P.value||(k=0,M=0,window.clearTimeout(L),J())}let de=-1;function J(){cancelAnimationFrame(de),de=requestAnimationFrame(fe)}function fe(){if(!s.value||!d.value||!u.value)return;const f=p-r,S=Math.sign(k),B=Math.max(0,f-ke),z=pe(o(B),0,n.value.length),l=f+d.value+ke,v=pe(o(l)+1,z+1,n.value.length);if((S!==Ot||zc.value)){const D=H(a.value)-H(z),Y=H(v)-H(c.value);Math.max(D,Y)>ke?(a.value=z,c.value=v):(z<=0&&(a.value=z),v>=n.value.length&&(c.value=v))}m.value=H(a.value),i.value=H(n.value.length)-H(c.value)}function te(f){const S=H(f);!s.value||f&&!S?C=f:s.value.scrollTop=S}const be=O(()=>n.value.slice(a.value,c.value).map((f,S)=>{const B=S+a.value;return{raw:f,index:B,key:Ue(f,e.itemKey,B)}}));return le(n,()=>{w=Array.from({length:n.value.length}),y=Array.from({length:n.value.length}),N.immediate(),J()},{deep:1}),{calculateVisibleItems:J,containerRef:s,markerRef:P,computedItems:be,paddingTop:m,paddingBottom:i,scrollToIndex:te,handleScroll:G,handleScrollend:ce,handleItemResize:I}}function Nt(e,n){let t=e.length-1,u=0,a=0,c=null,m=-1;if(e[t]>1,c=e[a],c>n)t=a-1;else if(c[]},renderless:Boolean,...$t(),..._e(),...ft()},"VVirtualScroll"),Ht=he()({name:"VVirtualScroll",props:zt(),setup(e,n){let{slots:t}=n;const u=rt("VVirtualScroll"),{dimensionStyles:a}=st(e),{calculateVisibleItems:c,containerRef:m,markerRef:i,handleScroll:s,handleScrollend:P,handleItemResize:r,scrollToIndex:$,paddingTop:g,paddingBottom:d,computedItems:V}=Kt(e,Q(()=>e.items));return ot(()=>e.renderless,()=>{function w(){var C,F;const b=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";m.value===document.documentElement?(document[b]("scroll",s,{passive:!0}),document[b]("scrollend",P)):((C=m.value)==null||C[b]("scroll",s,{passive:!0}),(F=m.value)==null||F[b]("scrollend",P))}ct(()=>{m.value=dt(u.vnode.el,!0),w(!0)}),He(w)}),ye(()=>{const w=V.value.map(y=>A(Dt,{key:y.key,renderless:e.renderless,"onUpdate:height":b=>r(y.index,b)},{default:b=>{var C;return(C=t.default)==null?void 0:C.call(t,{item:y.raw,index:y.index,...b})}}));return e.renderless?x(ie,null,[x("div",{ref:i,class:"v-virtual-scroll__spacer",style:{paddingTop:me(g.value)}},null),w,x("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:me(d.value)}},null)]):x("div",{ref:m,class:ne(["v-virtual-scroll",e.class]),onScrollPassive:s,onScrollend:P,style:ze([a.value,e.style])},[x("div",{ref:i,class:"v-virtual-scroll__container",style:{paddingTop:me(g.value),paddingBottom:me(d.value)}},[w])])}),{calculateVisibleItems:c,scrollToIndex:$}}});function Ut(e,n){const t=X(!1);let u;function a(i){cancelAnimationFrame(u),t.value=!0,u=requestAnimationFrame(()=>{u=requestAnimationFrame(()=>{t.value=!1})})}async function c(){await new Promise(i=>requestAnimationFrame(i)),await new Promise(i=>requestAnimationFrame(i)),await new Promise(i=>requestAnimationFrame(i)),await new Promise(i=>{if(t.value){const s=le(t,()=>{s(),i()})}else i()})}async function m(i){var r,$;if(i.key==="Tab"&&((r=n.value)==null||r.focus()),!["PageDown","PageUp","Home","End"].includes(i.key))return;const s=($=e.value)==null?void 0:$.$el;if(!s)return;(i.key==="Home"||i.key==="End")&&s.scrollTo({top:i.key==="Home"?0:s.scrollHeight,behavior:"smooth"}),await c();const P=s.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(i.key==="PageDown"||i.key==="Home"){const g=s.getBoundingClientRect().top;for(const d of P)if(d.getBoundingClientRect().top>=g){d.focus();break}}else{const g=s.getBoundingClientRect().bottom;for(const d of[...P].reverse())if(d.getBoundingClientRect().bottom<=g){d.focus();break}}}return{onScrollPassive:a,onKeydown:m}}const jt=ee({closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"}},"autocomplete");function Wt(e,n){const{t}=Ie(),u=vt(),a=O(()=>`menu-${u}`),c=Q(()=>Re(n)),m=Q(()=>a.value),i=Q(()=>t(Re(n)?e.closeText:e.openText));return{menuId:a,ariaExpanded:c,ariaControls:m,ariaLabel:i}}const Qt=ee({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:oe,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,noAutoScroll:Boolean,...jt(),...Lt({itemChildren:!1})},"Select"),Xt=ee({...Qt(),...xt(Ct({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...St({transition:{component:It}})},"VSelect"),la=he()({name:"VSelect",props:Xt(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,n){let{slots:t}=n;const{t:u}=Ie(),a=ae(),c=ae(),m=ae(),{items:i,transformIn:s,transformOut:P}=mt(e),r=Pe(e,"modelValue",[],l=>s(l===null?[null]:xe(l)),l=>{const v=P(l);return e.multiple?v:v[0]??null}),$=O(()=>typeof e.counterValue=="function"?e.counterValue(r.value):typeof e.counterValue=="number"?e.counterValue:r.value.length),g=_t(e),d=At(e),V=O(()=>r.value.map(l=>l.value)),w=X(!1);let y="",b=-1,C;const F=O(()=>e.hideSelected?i.value.filter(l=>!r.value.some(v=>(e.valueComparator||Ve)(v,l))):i.value),N=O(()=>e.hideNoData&&!F.value.length||g.isReadonly.value||g.isDisabled.value),T=Pe(e,"menu"),I=O({get:()=>T.value,set:l=>{var v;T.value&&!l&&((v=c.value)!=null&&v.ΨopenChildren.size)||l&&N.value||(T.value=l)}}),{menuId:H,ariaExpanded:o,ariaControls:p,ariaLabel:k}=Wt(e,I),M=O(()=>{var l;return{...e.menuProps,activatorProps:{...((l=e.menuProps)==null?void 0:l.activatorProps)||{},"aria-haspopup":"listbox"}}}),L=ae(),G=Ut(L,a);function ce(l){e.openOnClear&&(I.value=!0)}function de(){N.value||(I.value=!I.value)}function J(l){Oe(l)&&fe(l)}function fe(l){var _,W,E;if(!l.key||g.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(l.key)&&l.preventDefault(),["Enter","ArrowDown"," "].includes(l.key)&&(I.value=!0),["Escape","Tab"].includes(l.key)&&(I.value=!1),l.key==="Home"?(_=L.value)==null||_.focus("first"):l.key==="End"&&((W=L.value)==null||W.focus("last"));const v=1e3;if(!Oe(l))return;const D=performance.now();D-C>v&&(y="",b=-1),y+=l.key.toLowerCase(),C=D;const Y=F.value;function q(){let R=h();return R||y.at(-1)===y.at(-2)&&(y=y.slice(0,-1),R=h(),R)||(b=-1,R=h(),R)?R:(y=l.key.toLowerCase(),h())}function h(){for(let R=b+1;R1&&arguments[1]!==void 0?arguments[1]:!0;if(!l.props.disabled)if(e.multiple){const D=r.value.findIndex(q=>(e.valueComparator||Ve)(q.value,l.value)),Y=v??!~D;if(~D){const q=Y?[...r.value,l]:[...r.value];q.splice(D,1),r.value=q}else Y&&(r.value=[...r.value,l])}else{const D=v!==!1;r.value=D?[l]:[],ge(()=>{I.value=!1})}}function be(l){var v;(v=L.value)!=null&&v.$el.contains(l.relatedTarget)||(I.value=!1)}function f(){var l;e.eager&&((l=m.value)==null||l.calculateVisibleItems())}function S(){var l;w.value&&((l=a.value)==null||l.focus())}function B(l){w.value=!0}function z(l){if(l==null)r.value=[];else if(Ee(a.value,":autofill")||Ee(a.value,":-webkit-autofill")){const v=i.value.find(D=>D.title===l);v&&te(v)}else a.value&&(a.value.value="")}return le(I,()=>{if(!e.hideSelected&&I.value&&r.value.length){const l=F.value.findIndex(v=>r.value.some(D=>(e.valueComparator||Ve)(D.value,v.value)));je&&!e.noAutoScroll&&window.requestAnimationFrame(()=>{var v;l>=0&&((v=m.value)==null||v.scrollToIndex(l))})}}),le(i,(l,v)=>{I.value||w.value&&e.hideNoData&&!v.length&&l.length&&(I.value=!0)}),ye(()=>{const l=!!(e.chips||t.chip),v=!!(!e.hideNoData||F.value.length||t["prepend-item"]||t["append-item"]||t["no-data"]),D=r.value.length>0,Y=$e.filterProps(e),q=D||!w.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return A($e,K({ref:a},Y,{modelValue:r.value.map(h=>h.props.title).join(", "),name:void 0,"onUpdate:modelValue":z,focused:w.value,"onUpdate:focused":h=>w.value=h,validationValue:r.externalValue,counterValue:$.value,dirty:D,class:["v-select",{"v-select--active-menu":I.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":r.value.length,"v-select--selection-slot":!!t.selection},e.class],style:e.style,inputmode:"none",placeholder:q,"onClick:clear":ce,"onMousedown:control":de,onBlur:be,onKeydown:fe,"aria-expanded":o.value,"aria-controls":p.value,"aria-label":k.value,title:k.value}),{...t,default:()=>x(ie,null,[x("select",{hidden:!0,multiple:e.multiple,name:d.fieldName.value},[i.value.map(h=>x("option",{key:h.value,value:h.value,selected:V.value.includes(h.value)},null))]),A(Ft,K({id:H.value,ref:c,modelValue:I.value,"onUpdate:modelValue":h=>I.value=h,activator:"parent",contentClass:"v-select__content",disabled:N.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:f,onAfterLeave:S},M.value),{default:()=>[v&&A(gt,K({ref:L,selected:V.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:h=>h.preventDefault(),onKeydown:J,onFocusin:B,tabindex:"-1",selectable:!0,"aria-live":"polite","aria-label":`${e.label}-list`,color:e.itemColor??e.color},G,e.listProps),{default:()=>{var h,U,j;return[(h=t["prepend-item"])==null?void 0:h.call(t),!F.value.length&&!e.hideNoData&&(((U=t["no-data"])==null?void 0:U.call(t))??A(De,{key:"no-data",title:u(e.noDataText)},null)),A(Ht,{ref:m,renderless:!0,items:F.value,itemKey:"value"},{default:Z=>{var Ae,Ce,Fe;let{item:_,index:W,itemRef:E}=Z;const R=ht(_.props),ue=K(_.props,{ref:E,key:_.value,onClick:()=>te(_,null)});return _.type==="divider"?((Ae=t.divider)==null?void 0:Ae.call(t,{props:_.raw,index:W}))??A(yt,K(_.props,{key:`divider-${W}`}),null):_.type==="subheader"?((Ce=t.subheader)==null?void 0:Ce.call(t,{props:_.raw,index:W}))??A(bt,K(_.props,{key:`subheader-${W}`}),null):((Fe=t.item)==null?void 0:Fe.call(t,{item:_,index:W,props:ue}))??A(De,K(ue,{role:"option"}),{prepend:We=>{let{isSelected:Qe}=We;return x(ie,null,[e.multiple&&!e.hideSelected?A(Tt,{key:_.value,modelValue:Qe,ripple:!1,tabindex:"-1",onClick:Xe=>Xe.preventDefault()},null):void 0,R.prependAvatar&&A(pt,{image:R.prependAvatar},null),R.prependIcon&&A(Be,{icon:R.prependIcon},null)])}})}}),(j=t["append-item"])==null?void 0:j.call(t)]}})]}),r.value.map((h,U)=>{function j(E){E.stopPropagation(),E.preventDefault(),te(h,!1)}const Z=K(Ke.filterProps(h.props),{"onClick:close":j,onKeydown(E){E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),E.stopPropagation(),j(E))},onMousedown(E){E.preventDefault(),E.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),_=l?!!t.chip:!!t.selection,W=_?Vt(l?t.chip({item:h,index:U,props:Z}):t.selection({item:h,index:U})):void 0;if(!(_&&!W))return x("div",{key:h.value,class:"v-select__selection"},[l?t.chip?A(kt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:h.title}}},{default:()=>[W]}):A(Ke,K({key:"chip",closable:e.closableChips,size:"small",text:h.title,disabled:h.props.disabled},Z),null):W??x("span",{class:"v-select__selection-text"},[h.title,e.multiple&&U{if(e==null||n==null)return-1;if(!n.length)return 0;e=e.toString().toLocaleLowerCase(),n=n.toString().toLocaleLowerCase();const u=[];let a=e.indexOf(n);for(;~a;)u.push([a,a+n.length]),a=e.indexOf(n,a+n.length);return u.length?u:-1};function we(e,n){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+n.length]]:Array.isArray(e[0])?e:[e]}const na=ee({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function Gt(e,n,t){var s;const u=[],a=(t==null?void 0:t.default)??Zt,c=t!=null&&t.filterKeys?xe(t.filterKeys):!1,m=Object.keys((t==null?void 0:t.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return u;let i=null;e:for(let P=0;P0)&&!(t!=null&&t.noFilter)){let w=!1;if(typeof r=="object"){if(r.type==="divider"||r.type==="subheader"){(i==null?void 0:i.type)==="divider"&&r.type==="subheader"&&u.push(i),i={index:P,matches:{},type:r.type};continue}const C=c||Object.keys($);w=C.length===m;for(const F of C){const N=Ue($,F),T=(s=t==null?void 0:t.customKeyFilter)==null?void 0:s[F];if(V=T?T(N,n,r):a(N,n,r),V!==-1&&V!==!1)T?g[F]=we(V,n):d[F]=we(V,n);else if((t==null?void 0:t.filterMode)==="every")continue e}}else V=a(r,n,r),V!==-1&&V!==!1&&(d.title=we(V,n));const y=Object.keys(d).length,b=Object.keys(g).length;if(!y&&!b||(t==null?void 0:t.filterMode)==="union"&&b!==m&&!y||(t==null?void 0:t.filterMode)==="intersection"&&(b!==m||!y&&m>0&&!w))continue}i&&(u.push(i),i=null),u.push({index:P,matches:{...d,...g}})}return u}function ia(e,n,t,u){const a=X([]),c=X(new Map),m=O(()=>u!=null&&u.transform?se(n).map(s=>[s,u.transform(s)]):se(n));Se(()=>{const s=typeof t=="function"?t():se(t),P=typeof s!="string"&&typeof s!="number"?"":String(s),r=Gt(m.value,P,{customKeyFilter:{...e.customKeyFilter,...se(u==null?void 0:u.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),$=se(n),g=[],d=new Map;r.forEach(V=>{let{index:w,matches:y}=V;const b=$[w];g.push(b),d.set(b.value,y)}),a.value=g,c.value=d});function i(s){return c.value.get(s.value)}return{filteredItems:a,filteredMatches:c,getMatches:i}}function ua(e,n,t){return t==null||!t.length?n:t.map((u,a)=>{const c=a===0?0:t[a-1][1],m=[x("span",{class:ne(`${e}__unmask`)},[n.slice(c,u[0])]),x("span",{class:ne(`${e}__mask`)},[n.slice(u[0],u[1])])];return a===t.length-1&&m.push(x("span",{class:ne(`${e}__unmask`)},[n.slice(u[1])])),x(ie,null,[m])})}export{aa as V,Wt as a,Ut as b,Ht as c,na as d,la as e,ua as h,Qt as m,ia as u}; diff --git a/assets/filter-BcCM-D_l.css b/assets/filter-BcCM-D_l.css deleted file mode 100644 index 97895ab..0000000 --- a/assets/filter-BcCM-D_l.css +++ /dev/null @@ -1 +0,0 @@ -.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}.v-select--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-select--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-select--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-select--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;left:0;right:0;width:100%;transition:none;pointer-events:none;caret-color:transparent;padding-inline:inherit}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden}.v-select__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-menu>.v-overlay__content.v-select__content{border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{transform:rotate(180deg)}.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block} diff --git a/assets/filter-D0RnlzqQ.js b/assets/filter-D0RnlzqQ.js new file mode 100644 index 0000000..75085b1 --- /dev/null +++ b/assets/filter-D0RnlzqQ.js @@ -0,0 +1 @@ +import{$ as te,c6 as et,g as ce,p as ee,a3 as ye,Z as Ce,b7 as tt,bl as at,X as He,a0 as Q,aH as Re,c7 as Le,a5 as E,aZ as ge,ay as X,c as de,d as I,i as S,y as re,E as $,e as ne,n as Ue,c8 as lt,bh as nt,m as ut,c9 as it,bi as rt,bm as st,aJ as ot,h as Ae,bF as ct,a$ as oe,ca as Me,a7 as be,ba as je,az as dt,ad as We,ae as Xe,a6 as le,F as ue,b4 as xe,aX as ft,bx as Qe,aY as Ve,c2 as Ye,a8 as Ze,bS as vt,u as mt,bw as gt,aj as ht,c4 as yt,aI as he,f as bt,c0 as Be,a1 as pt,a4 as Se,ag as ke,v as De,P as Vt,Q as Oe,cb as kt,K as Pt,aa as wt,L as xt,ab as St,ac as It,t as Ct,bg as Lt,cc as At,af as $e,ah as Ee,cd as Ft,am as se}from"./index-GyS8nTIx.js";import{V as Ie,m as _t}from"./VCheckboxBtn-Cjkf0n-9.js";import{a as Tt,b as Ke,f as Rt,u as Mt,g as Bt,V as Ne,m as Dt}from"./VTextField-xLiM0gib.js";import{V as Ot}from"./VMenu-ClQzjH_h.js";import{V as ze}from"./VChip-DsTHqUw0.js";function $t(){const e=te([]);et(()=>e.value=[]);function n(t,i){e.value[i]=t}return{refs:e,updateRef:n}}const Et=ee({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:oe,default:"$first"},prevIcon:{type:oe,default:"$prev"},nextIcon:{type:oe,default:"$next"},lastIcon:{type:oe,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...ct(),...Ae(),...ot(),...st(),...rt(),...it(),...ut({tag:"nav"}),...nt(),...lt({variant:"text"})},"VPagination"),sa=ce()({name:"VPagination",props:Et(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,n){let{slots:t,emit:i}=n;const a=ye(e,"modelValue"),{t:o,n:f}=Ce(),{isRtl:u}=tt(),{themeClasses:s}=at(e),{width:w}=He(),r=Q(-1);Re(void 0,{scoped:!0});const{resizeRef:B}=Le(c=>{if(!c.length)return;const{target:V,contentRect:P}=c[0],R=V.querySelector(".v-pagination__list > *");if(!R)return;const L=P.width,Z=R.offsetWidth+parseFloat(getComputedStyle(R).marginRight)*2;r.value=k(L,Z)}),g=E(()=>parseInt(e.length,10)),d=E(()=>parseInt(e.start,10)),h=E(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):r.value>=0?r.value:k(w.value,58));function k(c,V){const P=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((c-V*P)/V).toFixed(2))))}const y=E(()=>{if(g.value<=0||isNaN(g.value)||g.value>Number.MAX_SAFE_INTEGER)return[];if(h.value<=0)return[];if(h.value===1)return[a.value];if(g.value<=h.value)return ge(g.value,d.value);const c=h.value%2===0,V=c?h.value/2:Math.floor(h.value/2),P=c?V:V+1,R=g.value-V;if(P-a.value>=0)return[...ge(Math.max(1,h.value-1),d.value),e.ellipsis,g.value];if(a.value-R>=(c?1:0)){const L=h.value-1,Z=g.value-L+d.value;return[d.value,e.ellipsis,...ge(L,Z)]}else{const L=Math.max(1,h.value-2),Z=L===1?a.value:a.value-Math.ceil(L/2)+d.value;return[d.value,e.ellipsis,...ge(L,Z),e.ellipsis,g.value]}});function b(c,V,P){c.preventDefault(),a.value=V,P&&i(P,V)}const{refs:F,updateRef:_}=$t();Re({VPaginationBtn:{color:X(()=>e.color),border:X(()=>e.border),density:X(()=>e.density),size:X(()=>e.size),variant:X(()=>e.variant),rounded:X(()=>e.rounded),elevation:X(()=>e.elevation)}});const N=E(()=>y.value.map((c,V)=>{const P=R=>_(R,V);if(typeof c=="string")return{isActive:!1,key:`ellipsis-${V}`,page:c,props:{ref:P,ellipsis:!0,icon:!0,disabled:!0}};{const R=c===a.value;return{isActive:R,key:c,page:f(c),props:{ref:P,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:R?e.activeColor:e.color,"aria-current":R,"aria-label":o(R?e.currentPageAriaLabel:e.pageAriaLabel,c),onClick:L=>b(L,c)}}}})),T=E(()=>{const c=!!e.disabled||a.value<=d.value,V=!!e.disabled||a.value>=d.value+g.value-1;return{first:e.showFirstLastPage?{icon:u.value?e.lastIcon:e.firstIcon,onClick:P=>b(P,d.value,"first"),disabled:c,"aria-label":o(e.firstAriaLabel),"aria-disabled":c}:void 0,prev:{icon:u.value?e.nextIcon:e.prevIcon,onClick:P=>b(P,a.value-1,"prev"),disabled:c,"aria-label":o(e.previousAriaLabel),"aria-disabled":c},next:{icon:u.value?e.prevIcon:e.nextIcon,onClick:P=>b(P,a.value+1,"next"),disabled:V,"aria-label":o(e.nextAriaLabel),"aria-disabled":V},last:e.showFirstLastPage?{icon:u.value?e.firstIcon:e.lastIcon,onClick:P=>b(P,d.value+g.value-1,"last"),disabled:V,"aria-label":o(e.lastAriaLabel),"aria-disabled":V}:void 0}});function C(){var V;const c=a.value-d.value;(V=F.value[c])==null||V.$el.focus()}function H(c){c.key===Me.left&&!e.disabled&&a.value>Number(e.start)?(a.value=a.value-1,be(C)):c.key===Me.right&&!e.disabled&&a.valueI(e.tag,{ref:B,class:ne(["v-pagination",s.value,e.class]),style:Ue(e.style),role:"navigation","aria-label":o(e.ariaLabel),onKeydown:H,"data-test":"v-pagination-root"},{default:()=>[S("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&S("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[t.first?t.first(T.value.first):I(re,$({_as:"VPaginationBtn"},T.value.first),null)]),S("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[t.prev?t.prev(T.value.prev):I(re,$({_as:"VPaginationBtn"},T.value.prev),null)]),N.value.map((c,V)=>S("li",{key:c.key,class:ne(["v-pagination__item",{"v-pagination__item--is-active":c.isActive}]),"data-test":"v-pagination-item"},[t.item?t.item(c):I(re,$({_as:"VPaginationBtn"},c.props),{default:()=>[c.page]})])),S("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[t.next?t.next(T.value.next):I(re,$({_as:"VPaginationBtn"},T.value.next),null)]),e.showFirstLastPage&&S("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[t.last?t.last(T.value.last):I(re,$({_as:"VPaginationBtn"},T.value.last),null)])])]})),{}}}),Kt=ee({...Rt(),...Xe(_t(),["inline"])},"VCheckbox"),oa=ce()({name:"VCheckbox",inheritAttrs:!1,props:Kt(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,n){let{attrs:t,slots:i}=n;const a=ye(e,"modelValue"),{isFocused:o,focus:f,blur:u}=Tt(e),s=te(),w=je();return de(()=>{const[r,B]=dt(t),g=Ke.filterProps(e),d=Ie.filterProps(e);return I(Ke,$({ref:s,class:["v-checkbox",e.class]},r,g,{modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,id:e.id||`checkbox-${w}`,focused:o.value,style:e.style}),{...i,default:h=>{let{id:k,messagesId:y,isDisabled:b,isReadonly:F,isValid:_}=h;return I(Ie,$(d,{id:k.value,"aria-describedby":y.value,disabled:b.value,readonly:F.value},B,{error:_.value===!1,modelValue:a.value,"onUpdate:modelValue":N=>a.value=N,onFocus:f,onBlur:u}),i)}})}),We({},s)}}),Nt=ee({renderless:Boolean,...Ae()},"VVirtualScrollItem"),zt=ce()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Nt(),emits:{"update:height":e=>!0},setup(e,n){let{attrs:t,emit:i,slots:a}=n;const{resizeRef:o,contentRect:f}=Le(void 0,"border");le(()=>{var u;return(u=f.value)==null?void 0:u.height},u=>{u!=null&&i("update:height",u)}),de(()=>{var u,s;return e.renderless?S(ue,null,[(u=a.default)==null?void 0:u.call(a,{itemRef:o})]):S("div",$({ref:o,class:["v-virtual-scroll__item",e.class],style:e.style},t),[(s=a.default)==null?void 0:s.call(a)])})}}),Ht=-1,Ut=1,Pe=100,jt=ee({itemHeight:{type:[Number,String],default:null},itemKey:{type:[String,Array,Function],default:null},height:[Number,String]},"virtual");function Wt(e,n){const t=He(),i=Q(0);xe(()=>{i.value=parseFloat(e.itemHeight||0)});const a=Q(0),o=Q(Math.ceil((parseInt(e.height)||t.height.value)/(i.value||16))||1),f=Q(0),u=Q(0),s=te(),w=te();let r=0;const{resizeRef:B,contentRect:g}=Le();xe(()=>{B.value=s.value});const d=E(()=>{var v;return s.value===document.documentElement?t.height.value:((v=g.value)==null?void 0:v.height)||parseInt(e.height)||0}),h=E(()=>!!(s.value&&w.value&&d.value&&i.value));let k=Array.from({length:n.value.length}),y=Array.from({length:n.value.length});const b=Q(0);let F=-1;function _(v){return k[v]||i.value}const N=ft(()=>{const v=performance.now();y[0]=0;const x=n.value.length;for(let D=1;D<=x;D++)y[D]=(y[D-1]||0)+_(D-1);b.value=Math.max(b.value,performance.now()-v)},b),T=le(h,v=>{v&&(T(),r=w.value.offsetTop,N.immediate(),G(),~F&&be(()=>{Ze&&window.requestAnimationFrame(()=>{ae(F),F=-1})}))});Qe(()=>{N.clear()});function C(v,x){const D=k[v],z=i.value;i.value=z?Math.min(i.value,x):x,(D!==x||z!==i.value)&&(k[v]=x,N())}function H(v){v=Ve(v,0,n.value.length);const x=Math.floor(v),D=v%1,z=x+1,l=y[x]||0,m=y[z]||l;return l+(m-l)*D}function c(v){return Xt(y,v)}let V=0,P=0,R=0;le(d,(v,x)=>{x&&(G(),v{P=0,G()}))});let L=-1;function Z(){if(!s.value||!w.value)return;const v=s.value.scrollTop,x=performance.now();x-R>500?(P=Math.sign(v-V),r=w.value.offsetTop):P=v-V,V=v,R=x,window.clearTimeout(L),L=window.setTimeout(fe,500),G()}function fe(){!s.value||!w.value||(P=0,R=0,window.clearTimeout(L),G())}let ve=-1;function G(){cancelAnimationFrame(ve),ve=requestAnimationFrame(me)}function me(){if(!s.value||!d.value||!i.value)return;const v=V-r,x=Math.sign(P),D=Math.max(0,v-Pe),z=Ve(c(D),0,n.value.length),l=v+d.value+Pe,m=Ve(c(l)+1,z+1,n.value.length);if((x!==Ht||zo.value)){const O=H(a.value)-H(z),J=H(m)-H(o.value);Math.max(O,J)>Pe?(a.value=z,o.value=m):(z<=0&&(a.value=z),m>=n.value.length&&(o.value=m))}f.value=H(a.value),u.value=H(n.value.length)-H(o.value)}function ae(v){const x=H(v);!s.value||v&&!x?F=v:s.value.scrollTop=x}const pe=E(()=>n.value.slice(a.value,o.value).map((v,x)=>{const D=x+a.value;return{raw:v,index:D,key:Ye(v,e.itemKey,D)}}));return le(n,()=>{k=Array.from({length:n.value.length}),y=Array.from({length:n.value.length}),N.immediate(),G()},{deep:1}),{calculateVisibleItems:G,containerRef:s,markerRef:w,computedItems:pe,paddingTop:f,paddingBottom:u,scrollToIndex:ae,handleScroll:Z,handleScrollend:fe,handleItemResize:C}}function Xt(e,n){let t=e.length-1,i=0,a=0,o=null,f=-1;if(e[t]>1,o=e[a],o>n)t=a-1;else if(o[]},renderless:Boolean,...jt(),...Ae(),...bt()},"VVirtualScroll"),Yt=ce()({name:"VVirtualScroll",props:Qt(),setup(e,n){let{slots:t}=n;const i=vt("VVirtualScroll"),{dimensionStyles:a}=mt(e),{calculateVisibleItems:o,containerRef:f,markerRef:u,handleScroll:s,handleScrollend:w,handleItemResize:r,scrollToIndex:B,paddingTop:g,paddingBottom:d,computedItems:h}=Wt(e,X(()=>e.items));return gt(()=>e.renderless,()=>{function k(){var F,_;const b=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";f.value===document.documentElement?(document[b]("scroll",s,{passive:!0}),document[b]("scrollend",w)):((F=f.value)==null||F[b]("scroll",s,{passive:!0}),(_=f.value)==null||_[b]("scrollend",w))}ht(()=>{f.value=yt(i.vnode.el,!0),k(!0)}),Qe(k)}),de(()=>{const k=h.value.map(y=>I(zt,{key:y.key,renderless:e.renderless,"onUpdate:height":b=>r(y.index,b)},{default:b=>{var F;return(F=t.default)==null?void 0:F.call(t,{item:y.raw,index:y.index,...b})}}));return e.renderless?S(ue,null,[S("div",{ref:u,class:"v-virtual-scroll__spacer",style:{paddingTop:he(g.value)}},null),k,S("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:he(d.value)}},null)]):S("div",{ref:f,class:ne(["v-virtual-scroll",e.class]),onScrollPassive:s,onScrollend:w,style:Ue([a.value,e.style])},[S("div",{ref:u,class:"v-virtual-scroll__container",style:{paddingTop:he(g.value),paddingBottom:he(d.value)}},[k])])}),{calculateVisibleItems:o,scrollToIndex:B}}});function Zt(e,n){const t=Q(!1);let i;function a(u){cancelAnimationFrame(i),t.value=!0,i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{t.value=!1})})}async function o(){await new Promise(u=>requestAnimationFrame(u)),await new Promise(u=>requestAnimationFrame(u)),await new Promise(u=>requestAnimationFrame(u)),await new Promise(u=>{if(t.value){const s=le(t,()=>{s(),u()})}else u()})}async function f(u){var r,B;if(u.key==="Tab"&&((r=n.value)==null||r.focus()),!["PageDown","PageUp","Home","End"].includes(u.key))return;const s=(B=e.value)==null?void 0:B.$el;if(!s)return;(u.key==="Home"||u.key==="End")&&s.scrollTo({top:u.key==="Home"?0:s.scrollHeight,behavior:"smooth"}),await o();const w=s.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(u.key==="PageDown"||u.key==="Home"){const g=s.getBoundingClientRect().top;for(const d of w)if(d.getBoundingClientRect().top>=g){d.focus();break}}else{const g=s.getBoundingClientRect().bottom;for(const d of[...w].reverse())if(d.getBoundingClientRect().bottom<=g){d.focus();break}}}return{onScrollPassive:a,onKeydown:f}}const Gt=ee({closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"}},"autocomplete");function Jt(e,n){const{t}=Ce(),i=je(),a=E(()=>`menu-${i}`),o=X(()=>Be(n)),f=X(()=>a.value),u=X(()=>t(Be(n)?e.closeText:e.openText));return{menuId:a,ariaExpanded:o,ariaControls:f,ariaLabel:u}}const qt=ee({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:oe,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,noAutoScroll:Boolean,...Gt(),...Ft({itemChildren:!1})},"Select"),ea=ee({...qt(),...Xe(Dt({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Lt({transition:{component:At}})},"VSelect"),ca=ce()({name:"VSelect",props:ea(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,n){let{slots:t}=n;const{t:i}=Ce(),a=te(),o=te(),f=te(),{items:u,transformIn:s,transformOut:w}=pt(e),r=ye(e,"modelValue",[],l=>s(l===null?[null]:Se(l)),l=>{const m=w(l);return e.multiple?m:m[0]??null}),B=E(()=>typeof e.counterValue=="function"?e.counterValue(r.value):typeof e.counterValue=="number"?e.counterValue:r.value.length),g=Mt(e),d=Bt(e),h=E(()=>r.value.map(l=>l.value)),k=Q(!1);let y="",b=-1,F;const _=E(()=>e.hideSelected?u.value.filter(l=>!r.value.some(m=>(e.valueComparator||ke)(m,l))):u.value),N=E(()=>e.hideNoData&&!_.value.length||g.isReadonly.value||g.isDisabled.value),T=ye(e,"menu"),C=E({get:()=>T.value,set:l=>{var m;T.value&&!l&&((m=o.value)!=null&&m.ΨopenChildren.size)||l&&N.value||(T.value=l)}}),{menuId:H,ariaExpanded:c,ariaControls:V,ariaLabel:P}=Jt(e,C),R=E(()=>{var l;return{...e.menuProps,activatorProps:{...((l=e.menuProps)==null?void 0:l.activatorProps)||{},"aria-haspopup":"listbox"}}}),L=te(),Z=Zt(L,a);function fe(l){e.openOnClear&&(C.value=!0)}function ve(){N.value||(C.value=!C.value)}function G(l){$e(l)&&me(l)}function me(l){var A,W,K;if(!l.key||g.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(l.key)&&l.preventDefault(),["Enter","ArrowDown"," "].includes(l.key)&&(C.value=!0),["Escape","Tab"].includes(l.key)&&(C.value=!1),l.key==="Home"?(A=L.value)==null||A.focus("first"):l.key==="End"&&((W=L.value)==null||W.focus("last"));const m=1e3;if(!$e(l))return;const O=performance.now();O-F>m&&(y="",b=-1),y+=l.key.toLowerCase(),F=O;const J=_.value;function q(){let M=p();return M||y.at(-1)===y.at(-2)&&(y=y.slice(0,-1),M=p(),M)||(b=-1,M=p(),M)?M:(y=l.key.toLowerCase(),p())}function p(){for(let M=b+1;M1&&arguments[1]!==void 0?arguments[1]:!0;if(!l.props.disabled)if(e.multiple){const O=r.value.findIndex(q=>(e.valueComparator||ke)(q.value,l.value)),J=m??!~O;if(~O){const q=J?[...r.value,l]:[...r.value];q.splice(O,1),r.value=q}else J&&(r.value=[...r.value,l])}else{const O=m!==!1;r.value=O?[l]:[],be(()=>{C.value=!1})}}function pe(l){var m;(m=L.value)!=null&&m.$el.contains(l.relatedTarget)||(C.value=!1)}function v(){var l;e.eager&&((l=f.value)==null||l.calculateVisibleItems())}function x(){var l;k.value&&((l=a.value)==null||l.focus())}function D(l){k.value=!0}function z(l){if(l==null)r.value=[];else if(Ee(a.value,":autofill")||Ee(a.value,":-webkit-autofill")){const m=u.value.find(O=>O.title===l);m&&ae(m)}else a.value&&(a.value.value="")}return le(C,()=>{if(!e.hideSelected&&C.value&&r.value.length){const l=_.value.findIndex(m=>r.value.some(O=>(e.valueComparator||ke)(O.value,m.value)));Ze&&!e.noAutoScroll&&window.requestAnimationFrame(()=>{var m;l>=0&&((m=f.value)==null||m.scrollToIndex(l))})}}),le(u,(l,m)=>{C.value||k.value&&e.hideNoData&&!m.length&&l.length&&(C.value=!0)}),de(()=>{const l=!!(e.chips||t.chip),m=!!(!e.hideNoData||_.value.length||t["prepend-item"]||t["append-item"]||t["no-data"]),O=r.value.length>0,J=Ne.filterProps(e),q=O||!k.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return I(Ne,$({ref:a},J,{modelValue:r.value.map(p=>p.props.title).join(", "),name:void 0,"onUpdate:modelValue":z,focused:k.value,"onUpdate:focused":p=>k.value=p,validationValue:r.externalValue,counterValue:B.value,dirty:O,class:["v-select",{"v-select--active-menu":C.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":r.value.length,"v-select--selection-slot":!!t.selection},e.class],style:e.style,inputmode:"none",placeholder:q,"onClick:clear":fe,"onMousedown:control":ve,onBlur:pe,onKeydown:me,"aria-expanded":c.value,"aria-controls":V.value,"aria-label":P.value,title:P.value}),{...t,default:()=>S(ue,null,[S("select",{hidden:!0,multiple:e.multiple,name:d.fieldName.value},[u.value.map(p=>S("option",{key:p.value,value:p.value,selected:h.value.includes(p.value)},null))]),I(Ot,$({id:H.value,ref:o,modelValue:C.value,"onUpdate:modelValue":p=>C.value=p,activator:"parent",contentClass:"v-select__content",disabled:N.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:v,onAfterLeave:x},R.value),{default:()=>[m&&I(Vt,$({ref:L,selected:h.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:p=>p.preventDefault(),onKeydown:G,onFocusin:D,tabindex:"-1",selectable:!0,"aria-live":"polite","aria-label":`${e.label}-list`,color:e.itemColor??e.color},Z,e.listProps),{default:()=>{var p,U,j;return[(p=t["prepend-item"])==null?void 0:p.call(t),!_.value.length&&!e.hideNoData&&(((U=t["no-data"])==null?void 0:U.call(t))??I(Oe,{key:"no-data",title:i(e.noDataText)},null)),I(Yt,{ref:f,renderless:!0,items:_.value,itemKey:"value"},{default:Y=>{var Fe,_e,Te;let{item:A,index:W,itemRef:K}=Y;const M=kt(A.props),ie=$(A.props,{ref:K,key:A.value,onClick:()=>ae(A,null)});return A.type==="divider"?((Fe=t.divider)==null?void 0:Fe.call(t,{props:A.raw,index:W}))??I(Pt,$(A.props,{key:`divider-${W}`}),null):A.type==="subheader"?((_e=t.subheader)==null?void 0:_e.call(t,{props:A.raw,index:W}))??I(wt,$(A.props,{key:`subheader-${W}`}),null):((Te=t.item)==null?void 0:Te.call(t,{item:A,index:W,props:ie}))??I(Oe,$(ie,{role:"option"}),{prepend:Ge=>{let{isSelected:Je}=Ge;return S(ue,null,[e.multiple&&!e.hideSelected?I(Ie,{key:A.value,modelValue:Je,ripple:!1,tabindex:"-1",onClick:qe=>qe.preventDefault()},null):void 0,M.prependAvatar&&I(xt,{image:M.prependAvatar},null),M.prependIcon&&I(De,{icon:M.prependIcon},null)])}})}}),(j=t["append-item"])==null?void 0:j.call(t)]}})]}),r.value.map((p,U)=>{function j(K){K.stopPropagation(),K.preventDefault(),ae(p,!1)}const Y=$(ze.filterProps(p.props),{"onClick:close":j,onKeydown(K){K.key!=="Enter"&&K.key!==" "||(K.preventDefault(),K.stopPropagation(),j(K))},onMousedown(K){K.preventDefault(),K.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),A=l?!!t.chip:!!t.selection,W=A?St(l?t.chip({item:p,index:U,props:Y}):t.selection({item:p,index:U})):void 0;if(!(A&&!W))return S("div",{key:p.value,class:"v-select__selection"},[l?t.chip?I(It,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:p.title}}},{default:()=>[W]}):I(ze,$({key:"chip",closable:e.closableChips,size:"small",text:p.title,disabled:p.props.disabled},Y),null):W??S("span",{class:"v-select__selection-text"},[p.title,e.multiple&&U{if(e==null||n==null)return-1;if(!n.length)return 0;e=e.toString().toLocaleLowerCase(),n=n.toString().toLocaleLowerCase();const i=[];let a=e.indexOf(n);for(;~a;)i.push([a,a+n.length]),a=e.indexOf(n,a+n.length);return i.length?i:-1};function we(e,n){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+n.length]]:Array.isArray(e[0])?e:[e]}const da=ee({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function aa(e,n,t){var s;const i=[],a=(t==null?void 0:t.default)??ta,o=t!=null&&t.filterKeys?Se(t.filterKeys):!1,f=Object.keys((t==null?void 0:t.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return i;let u=null;e:for(let w=0;w0)&&!(t!=null&&t.noFilter)){let k=!1;if(typeof r=="object"){if(r.type==="divider"||r.type==="subheader"){(u==null?void 0:u.type)==="divider"&&r.type==="subheader"&&i.push(u),u={index:w,matches:{},type:r.type};continue}const F=o||Object.keys(B);k=F.length===f;for(const _ of F){const N=Ye(B,_),T=(s=t==null?void 0:t.customKeyFilter)==null?void 0:s[_];if(h=T?T(N,n,r):a(N,n,r),h!==-1&&h!==!1)T?g[_]=we(h,n):d[_]=we(h,n);else if((t==null?void 0:t.filterMode)==="every")continue e}}else h=a(r,n,r),h!==-1&&h!==!1&&(d.title=we(h,n));const y=Object.keys(d).length,b=Object.keys(g).length;if(!y&&!b||(t==null?void 0:t.filterMode)==="union"&&b!==f&&!y||(t==null?void 0:t.filterMode)==="intersection"&&(b!==f||!y&&f>0&&!k))continue}u&&(i.push(u),u=null),i.push({index:w,matches:{...d,...g}})}return i}function fa(e,n,t,i){const a=Q([]),o=Q(new Map),f=E(()=>i!=null&&i.transform?se(n).map(s=>[s,i.transform(s)]):se(n));xe(()=>{const s=typeof t=="function"?t():se(t),w=typeof s!="string"&&typeof s!="number"?"":String(s),r=aa(f.value,w,{customKeyFilter:{...e.customKeyFilter,...se(i==null?void 0:i.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),B=se(n),g=[],d=new Map;r.forEach(h=>{let{index:k,matches:y}=h;const b=B[k];g.push(b),d.set(b.value,y)}),a.value=g,o.value=d});function u(s){return o.value.get(s.value)}return{filteredItems:a,filteredMatches:o,getMatches:u}}function va(e,n,t){return t==null||!t.length?n:t.map((i,a)=>{const o=a===0?0:t[a-1][1],f=[S("span",{class:ne(`${e}__unmask`)},[n.slice(o,i[0])]),S("span",{class:ne(`${e}__mask`)},[n.slice(i[0],i[1])])];return a===t.length-1&&f.push(S("span",{class:ne(`${e}__unmask`)},[n.slice(i[1])])),S(ue,null,[f])})}export{sa as V,oa as a,Jt as b,Zt as c,Yt as d,da as e,ca as f,va as h,qt as m,fa as u}; diff --git a/assets/index-BBVdlVQD.js b/assets/index-BBVdlVQD.js deleted file mode 100644 index 3a69943..0000000 --- a/assets/index-BBVdlVQD.js +++ /dev/null @@ -1,44 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./default-D5AHDwKc.js","./default-CmdaPMSp.css","./index-C1_Nmbyl.js","./VTextField-C-Z2P35g.js","./VTextField-DTDEIDq0.css","./VBadge-H7ndD91w.js","./VBadge-CeM1RYir.css","./VChip-BmBm7zXx.js","./VChip-Dmz_1Lnv.css","./socketClient-0mLOmNl0.js","./deviceEvents-B6kCnj0S.js","./VRow-IosHPrmj.js","./filter-Bc0G1Z2P.js","./VMenu-CJ7CiDy8.js","./VMenu-C31D-C2L.css","./VCheckboxBtn-CtaD8oYU.js","./VSelectionControl-D-h-HCLE.js","./VSelectionControl-D9cm454A.css","./filter-BcCM-D_l.css","./VTextarea-mXVeQ__0.js","./VTextarea-CB_zhwgO.css","./dataProvider-bw19OswA.js","./axios-CF6XU-xP.js","./VAppBarTitle-QQJ8OMzH.js","./VAppBarTitle-DHaTV8xv.css","./VContainer-OExp5t5c.js","./VForm-BRCje5Hh.js","./VSwitch-CCxGT9ZY.js","./VSwitch-DdP_-uRS.css","./VCheckbox-BaW9yLIL.js","./VCheckbox-ZL-u1kGB.css","./VDatePicker-CtGCqIzy.js","./VSheet-DZUeXnyk.js","./VSheet-DW_b51tO.css","./VDatePicker-BKahqdZK.css","./index-90D_8zvz.js","./index-BGkFwivK.css","./VAlert-BYrhoEr8.js","./VAlert-D_OX1cfW.css","./VExpansionPanels-C5tgQAF_.js","./VExpansionPanels-kEj4ZJQK.css","./index-1Zmm7MNJ.css","./404-Be-X22ct.js","./authorize-CNmNl-fx.js","./CacheManagement-BKG189LA.js","./VSkeletonLoader-DuVn92u1.js","./VSkeletonLoader-C11ZEozu.css","./cses2wakeup-DxIOWJyY.js","./VTabsWindowItem-CNNzieW-.js","./VTabsWindowItem-CQ5wWbRm.css","./VDataTable-D7gPSbin.js","./VDataTable-D5czo1DM.css","./cses2wakeup-B_ZAsO72.css","./DataMigration-DHME7fzg.js","./DataMigration-CCX2M6jB.css","./debug-Ba11pYfs.js","./debug-CbS14biG.css","./debug-init-DrX-sqV-.js","./debug-socket-B-loaBFa.js","./_id_-COPsOi2_.js","./ExamConfigEditor-CFH7DsKe.js","./ExamConfigEditor-B82fI3LH.css","./exam-player-BfcrcIG9.js","./exam-player-DVKAP24G.css","./examschedule-BXzrB8yd.js","./examschedule-CscQiHT5.css","./index-CmDQAEe_.js","./_id_-BSf-7VSQ.js","./settings-BD-rA2t3.js","./settings-DUBpRBL_.css","./socket-debugger-hynQ1PJ3.js","./socket-debugger-ykBk0O32.css"])))=>i.map(i=>d[i]); -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const Jd="modulepreload",Qd=function(e,t){return new URL(e,t).href},ka={},Fe=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(u=>{if(u=Qd(u,r),u in ka)return;ka[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let g=o.length-1;g>=0;g--){const v=o[g];if(v.href===u&&(!c||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":Jd,c||(m.as="script"),m.crossOrigin="",m.href=u,l&&m.setAttribute("nonce",l),document.head.appendChild(m),c)return new Promise((g,v)=>{m.addEventListener("load",g),m.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};/** -* @vue/shared v3.5.25 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Oo(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const we={},Qn=[],jt=()=>{},Lu=()=>!1,es=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ro=e=>e.startsWith("onUpdate:"),Be=Object.assign,Do=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},em=Object.prototype.hasOwnProperty,ye=(e,t)=>em.call(e,t),re=Array.isArray,er=e=>ts(e)==="[object Map]",Mu=e=>ts(e)==="[object Set]",oe=e=>typeof e=="function",Re=e=>typeof e=="string",nn=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",Nu=e=>(_e(e)||oe(e))&&oe(e.then)&&oe(e.catch),Vu=Object.prototype.toString,ts=e=>Vu.call(e),tm=e=>ts(e).slice(8,-1),Fu=e=>ts(e)==="[object Object]",ns=e=>Re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dr=Oo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nm=/-\w/g,at=rs(e=>e.replace(nm,t=>t.slice(1).toUpperCase())),rm=/\B([A-Z])/g,pn=rs(e=>e.replace(rm,"-$1").toLowerCase()),vr=rs(e=>e.charAt(0).toUpperCase()+e.slice(1)),ws=rs(e=>e?`on${vr(e)}`:""),hn=(e,t)=>!Object.is(e,t),Ai=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Lo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},im=e=>{const t=Re(e)?Number(e):NaN;return isNaN(t)?e:t};let Ta;const is=()=>Ta||(Ta=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xe(e){if(re(e)){const t={};for(let n=0;n{if(n){const r=n.split(om);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function he(e){let t="";if(Re(e))t=e;else if(re(e))for(let n=0;n!!(e&&e.__v_isRef===!0),xt=e=>Re(e)?e:e==null?"":re(e)||_e(e)&&(e.toString===Vu||!oe(e.toString))?Hu(e)?xt(e.value):JSON.stringify(e,ju,2):String(e),ju=(e,t)=>Hu(t)?ju(e,t.value):er(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[_s(r,s)+" =>"]=i,n),{})}:Mu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>_s(n))}:nn(t)?_s(t):_e(t)&&!re(t)&&!Fu(t)?String(t):t,_s=(e,t="")=>{var n;return nn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.25 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Ye;class Wu{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ye,!t&&Ye&&(this.index=(Ye.scopes||(Ye.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(Ye=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(Mr){let t=Mr;for(Mr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Lr;){let t=Lr;for(Lr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function qu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Yu(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Vo(r),fm(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Zs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gr)||(e.globalVersion=Gr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Zs(e))))return;e.flags|=2;const t=e.dep,n=Ee,r=At;Ee=e,At=!0;try{qu(e);const i=e.fn(e._value);(t.version===0||hn(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Ee=n,At=r,Yu(e),e.flags&=-3}}function Vo(e,t=!1){const{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 s=n.computed.deps;s;s=s.nextDep)Vo(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function fm(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let At=!0;const Zu=[];function Jt(){Zu.push(At),At=!1}function Qt(){const e=Zu.pop();At=e===void 0?!0:e}function Pa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ee;Ee=void 0;try{t()}finally{Ee=n}}}let Gr=0;class dm{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Fo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ee||!At||Ee===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ee)n=this.activeLink=new dm(Ee,this),Ee.deps?(n.prevDep=Ee.depsTail,Ee.depsTail.nextDep=n,Ee.depsTail=n):Ee.deps=Ee.depsTail=n,Ju(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ee.depsTail,n.nextDep=void 0,Ee.depsTail.nextDep=n,Ee.depsTail=n,Ee.deps===n&&(Ee.deps=r)}return n}trigger(t){this.version++,Gr++,this.notify(t)}notify(t){Mo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{No()}}}function Ju(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ju(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Li=new WeakMap,Rn=Symbol(""),Js=Symbol(""),Ur=Symbol("");function Xe(e,t,n){if(At&&Ee){let r=Li.get(e);r||Li.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Fo),i.map=r,i.key=n),i.track()}}function Yt(e,t,n,r,i,s){const o=Li.get(e);if(!o){Gr++;return}const a=l=>{l&&l.trigger()};if(Mo(),t==="clear")o.forEach(a);else{const l=re(e),u=l&&ns(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===Ur||!nn(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Ur)),t){case"add":l?u&&a(o.get("length")):(a(o.get(Rn)),er(e)&&a(o.get(Js)));break;case"delete":l||(a(o.get(Rn)),er(e)&&a(o.get(Js)));break;case"set":er(e)&&a(o.get(Rn));break}}No()}function mm(e,t){const n=Li.get(e);return n&&n.get(t)}function Wn(e){const t=ee(e);return t===e?t:(Xe(t,"iterate",Ur),gt(e)?t:t.map(kt))}function ss(e){return Xe(e=ee(e),"iterate",Ur),e}function cn(e,t){return en(e)?Dn(e)?lr(kt(t)):lr(t):kt(t)}const hm={__proto__:null,[Symbol.iterator](){return Es(this,Symbol.iterator,e=>cn(this,e))},concat(...e){return Wn(this).concat(...e.map(t=>re(t)?Wn(t):t))},entries(){return Es(this,"entries",e=>(e[1]=cn(this,e[1]),e))},every(e,t){return Gt(this,"every",e,t,void 0,arguments)},filter(e,t){return Gt(this,"filter",e,t,n=>n.map(r=>cn(this,r)),arguments)},find(e,t){return Gt(this,"find",e,t,n=>cn(this,n),arguments)},findIndex(e,t){return Gt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Gt(this,"findLast",e,t,n=>cn(this,n),arguments)},findLastIndex(e,t){return Gt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Gt(this,"forEach",e,t,void 0,arguments)},includes(...e){return xs(this,"includes",e)},indexOf(...e){return xs(this,"indexOf",e)},join(e){return Wn(this).join(e)},lastIndexOf(...e){return xs(this,"lastIndexOf",e)},map(e,t){return Gt(this,"map",e,t,void 0,arguments)},pop(){return xr(this,"pop")},push(...e){return xr(this,"push",e)},reduce(e,...t){return Ia(this,"reduce",e,t)},reduceRight(e,...t){return Ia(this,"reduceRight",e,t)},shift(){return xr(this,"shift")},some(e,t){return Gt(this,"some",e,t,void 0,arguments)},splice(...e){return xr(this,"splice",e)},toReversed(){return Wn(this).toReversed()},toSorted(e){return Wn(this).toSorted(e)},toSpliced(...e){return Wn(this).toSpliced(...e)},unshift(...e){return xr(this,"unshift",e)},values(){return Es(this,"values",e=>cn(this,e))}};function Es(e,t,n){const r=ss(e),i=r[t]();return r!==e&&!gt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.done||(s.value=n(s.value)),s}),i}const gm=Array.prototype;function Gt(e,t,n,r,i,s){const o=ss(e),a=o!==e&&!gt(e),l=o[t];if(l!==gm[t]){const f=l.apply(e,s);return a?kt(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,cn(e,f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(o,u,r);return a&&i?i(c):c}function Ia(e,t,n,r){const i=ss(e);let s=n;return i!==e&&(gt(e)?n.length>3&&(s=function(o,a,l){return n.call(this,o,a,l,e)}):s=function(o,a,l){return n.call(this,o,cn(e,a),l,e)}),i[t](s,...r)}function xs(e,t,n){const r=ee(e);Xe(r,"iterate",Ur);const i=r[t](...n);return(i===-1||i===!1)&&os(n[0])?(n[0]=ee(n[0]),r[t](...n)):i}function xr(e,t,n=[]){Jt(),Mo();const r=ee(e)[t].apply(e,n);return No(),Qt(),r}const vm=Oo("__proto__,__v_isRef,__isVue"),Qu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(nn));function pm(e){nn(e)||(e=String(e));const t=ee(this);return Xe(t,"has",e),t.hasOwnProperty(e)}class ec{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?km:ic:s?rc:nc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=re(t);if(!i){let l;if(o&&(l=hm[n]))return l;if(n==="hasOwnProperty")return pm}const a=Reflect.get(t,n,Le(t)?t:r);if((nn(n)?Qu.has(n):vm(n))||(i||Xe(t,"get",n),s))return a;if(Le(a)){const l=o&&ns(n)?a:a.value;return i&&_e(l)?ar(l):l}return _e(a)?i?ar(a):We(a):a}}class tc extends ec{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];const o=re(t)&&ns(n);if(!this._isShallow){const u=en(s);if(!gt(r)&&!en(r)&&(s=ee(s),r=ee(r)),!o&&Le(s)&&!Le(r))return u||(s.value=r),!0}const a=o?Number(n)e,pi=e=>Reflect.getPrototypeOf(e);function _m(e,t,n){return function(...r){const i=this.__v_raw,s=ee(i),o=er(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...r),c=n?Qs:t?lr:kt;return!t&&Xe(s,"iterate",l?Js:Rn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function yi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Cm(e,t){const n={get(i){const s=this.__v_raw,o=ee(s),a=ee(i);e||(hn(i,a)&&Xe(o,"get",i),Xe(o,"get",a));const{has:l}=pi(o),u=t?Qs:e?lr:kt;if(l.call(o,i))return u(s.get(i));if(l.call(o,a))return u(s.get(a));s!==o&&s.get(i)},get size(){const i=this.__v_raw;return!e&&Xe(ee(i),"iterate",Rn),i.size},has(i){const s=this.__v_raw,o=ee(s),a=ee(i);return e||(hn(i,a)&&Xe(o,"has",i),Xe(o,"has",a)),i===a?s.has(i):s.has(i)||s.has(a)},forEach(i,s){const o=this,a=o.__v_raw,l=ee(a),u=t?Qs:e?lr:kt;return!e&&Xe(l,"iterate",Rn),a.forEach((c,f)=>i.call(s,u(c),u(f),o))}};return Be(n,e?{add:yi("add"),set:yi("set"),delete:yi("delete"),clear:yi("clear")}:{add(i){!t&&!gt(i)&&!en(i)&&(i=ee(i));const s=ee(this);return pi(s).has.call(s,i)||(s.add(i),Yt(s,"add",i,i)),this},set(i,s){!t&&!gt(s)&&!en(s)&&(s=ee(s));const o=ee(this),{has:a,get:l}=pi(o);let u=a.call(o,i);u||(i=ee(i),u=a.call(o,i));const c=l.call(o,i);return o.set(i,s),u?hn(s,c)&&Yt(o,"set",i,s):Yt(o,"add",i,s),this},delete(i){const s=ee(this),{has:o,get:a}=pi(s);let l=o.call(s,i);l||(i=ee(i),l=o.call(s,i)),a&&a.call(s,i);const u=s.delete(i);return l&&Yt(s,"delete",i,void 0),u},clear(){const i=ee(this),s=i.size!==0,o=i.clear();return s&&Yt(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=_m(i,e,t)}),n}function Bo(e,t){const n=Cm(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ye(n,i)&&i in r?n:r,i,s)}const Em={get:Bo(!1,!1)},xm={get:Bo(!1,!0)},Am={get:Bo(!0,!1)};const nc=new WeakMap,rc=new WeakMap,ic=new WeakMap,km=new WeakMap;function Tm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pm(e){return e.__v_skip||!Object.isExtensible(e)?0:Tm(tm(e))}function We(e){return en(e)?e:$o(e,!1,bm,Em,nc)}function sc(e){return $o(e,!1,wm,xm,rc)}function ar(e){return $o(e,!0,Sm,Am,ic)}function $o(e,t,n,r,i){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=Pm(e);if(s===0)return e;const o=i.get(e);if(o)return o;const a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function Dn(e){return en(e)?Dn(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function gt(e){return!!(e&&e.__v_isShallow)}function os(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function oc(e){return!ye(e,"__v_skip")&&Object.isExtensible(e)&&Bu(e,"__v_skip",!0),e}const kt=e=>_e(e)?We(e):e,lr=e=>_e(e)?ar(e):e;function Le(e){return e?e.__v_isRef===!0:!1}function ue(e){return ac(e,!1)}function le(e){return ac(e,!0)}function ac(e,t){return Le(e)?e:new Im(e,t)}class Im{constructor(t,n){this.dep=new Fo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ee(t),this._value=n?t:kt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||gt(t)||en(t);t=r?t:ee(t),hn(t,n)&&(this._rawValue=t,this._value=r?t:kt(t),this.dep.trigger())}}function ft(e){return Le(e)?e.value:e}function Qe(e){return oe(e)?e():ft(e)}const Om={get:(e,t,n)=>t==="__v_raw"?e:ft(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Le(i)&&!Le(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function lc(e){return Dn(e)?e:new Proxy(e,Om)}function uc(e){const t=re(e)?new Array(e.length):{};for(const n in e)t[n]=cc(e,n);return t}class Rm{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=ee(t);let i=!0,s=t;if(!re(t)||!ns(String(n)))do i=!os(s)||gt(s);while(i&&(s=s.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=ft(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Le(this._raw[this._key])){const n=this._object[this._key];if(Le(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return mm(this._raw,this._key)}}class Dm{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function G(e,t,n){return Le(e)?e:oe(e)?new Dm(e):_e(e)&&arguments.length>1?cc(e,t,n):ue(e)}function cc(e,t,n){return new Rm(e,t,n)}class Lm{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Fo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ee!==this)return Ku(this,!0),!0}get value(){const t=this.dep.track();return Xu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Mm(e,t,n=!1){let r,i;return oe(e)?r=e:(r=e.get,i=e.set),new Lm(r,i,n)}const bi={},Mi=new WeakMap;let Tn;function Nm(e,t=!1,n=Tn){if(n){let r=Mi.get(n);r||Mi.set(n,r=[]),r.push(e)}}function Vm(e,t,n=we){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:l}=n,u=_=>i?_:gt(_)||i===!1||i===0?Xt(_,1):Xt(_);let c,f,d,m,g=!1,v=!1;if(Le(e)?(f=()=>e.value,g=gt(e)):Dn(e)?(f=()=>u(e),g=!0):re(e)?(v=!0,g=e.some(_=>Dn(_)||gt(_)),f=()=>e.map(_=>{if(Le(_))return _.value;if(Dn(_))return u(_);if(oe(_))return l?l(_,2):_()})):oe(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Jt();try{d()}finally{Qt()}}const _=Tn;Tn=c;try{return l?l(e,3,[m]):e(m)}finally{Tn=_}}:f=jt,t&&i){const _=f,O=i===!0?1/0:i;f=()=>Xt(_(),O)}const E=Gu(),p=()=>{c.stop(),E&&E.active&&Do(E.effects,c)};if(s&&t){const _=t;t=(...O)=>{_(...O),p()}}let S=v?new Array(e.length).fill(bi):bi;const b=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const O=c.run();if(i||g||(v?O.some((A,D)=>hn(A,S[D])):hn(O,S))){d&&d();const A=Tn;Tn=c;try{const D=[O,S===bi?void 0:v&&S[0]===bi?[]:S,m];S=O,l?l(t,3,D):t(...D)}finally{Tn=A}}}else c.run()};return a&&a(b),c=new Uu(f),c.scheduler=o?()=>o(b,!1):b,m=_=>Nm(_,!1,c),d=c.onStop=()=>{const _=Mi.get(c);if(_){if(l)l(_,4);else for(const O of _)O();Mi.delete(c)}},t?r?b(!0):S=c.run():o?o(b.bind(null,!0),!0):c.run(),p.pause=c.pause.bind(c),p.resume=c.resume.bind(c),p.stop=p,p}function Xt(e,t=1/0,n){if(t<=0||!_e(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Le(e))Xt(e.value,t,n);else if(re(e))for(let r=0;r{Xt(r,t,n)});else if(Fu(e)){for(const r in e)Xt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Xt(e[r],t,n)}return e}/** -* @vue/runtime-core v3.5.25 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function oi(e,t,n,r){try{return r?e(...r):e()}catch(i){as(i,t,n)}}function Tt(e,t,n,r){if(oe(e)){const i=oi(e,t,n,r);return i&&Nu(i)&&i.catch(s=>{as(s,t,n)}),i}if(re(e)){const i=[];for(let s=0;s>>1,i=ot[r],s=zr(i);s=zr(n)?ot.push(e):ot.splice(Bm(t),0,e),e.flags|=1,dc()}}function dc(){Ni||(Ni=fc.then(hc))}function $m(e){re(e)?tr.push(...e):fn&&e.id===-1?fn.splice(Kn+1,0,e):e.flags&1||(tr.push(e),e.flags|=1),dc()}function Oa(e,t,n=Mt+1){for(;nzr(n)-zr(r));if(tr.length=0,fn){fn.push(...t);return}for(fn=t,Kn=0;Kne.id==null?e.flags&2?-1:1/0:e.id;function hc(e){try{for(Mt=0;Mt{r._d&&$i(-1);const s=Vi(t);let o;try{o=e(...i)}finally{Vi(s),r._d&&$i(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Vn(e,t){if(ze===null)return e;const n=ms(ze),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,Nr=e=>e&&(e.disabled||e.disabled===""),Ra=e=>e&&(e.defer||e.defer===""),Da=e=>typeof SVGElement<"u"&&e instanceof SVGElement,La=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,eo=(e,t)=>{const n=e&&e.to;return Re(n)?t?t(n):null:n},yc={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,s,o,a,l,u){const{mc:c,pc:f,pbc:d,o:{insert:m,querySelector:g,createText:v,createComment:E}}=u,p=Nr(t.props);let{shapeFlag:S,children:b,dynamicChildren:_}=t;if(e==null){const O=t.el=v(""),A=t.anchor=v("");m(O,n,r),m(A,n,r);const D=(T,H)=>{S&16&&c(b,T,H,i,s,o,a,l)},k=()=>{const T=t.target=eo(t.props,g),H=bc(T,t,v,m);T&&(o!=="svg"&&Da(T)?o="svg":o!=="mathml"&&La(T)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(T),p||(D(T,H),ki(t,!1)))};p&&(D(n,A),ki(t,!0)),Ra(t.props)?(t.el.__isMounted=!1,it(()=>{k(),delete t.el.__isMounted},s)):k()}else{if(Ra(t.props)&&e.el.__isMounted===!1){it(()=>{yc.process(e,t,n,r,i,s,o,a,l,u)},s);return}t.el=e.el,t.targetStart=e.targetStart;const O=t.anchor=e.anchor,A=t.target=e.target,D=t.targetAnchor=e.targetAnchor,k=Nr(e.props),T=k?n:A,H=k?O:D;if(o==="svg"||Da(A)?o="svg":(o==="mathml"||La(A))&&(o="mathml"),_?(d(e.dynamicChildren,_,T,i,s,o,a),Ko(e,t,!0)):l||f(e,t,T,H,i,s,o,a,!1),p)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Si(t,n,O,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=eo(t.props,g);B&&Si(t,B,null,u,0)}else k&&Si(t,A,D,u,1);ki(t,p)}},remove(e,t,n,{um:r,o:{remove:i}},s){const{shapeFlag:o,children:a,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(i(u),i(c)),s&&i(l),o&16){const m=s||!Nr(d);for(let g=0;g{e.isMounted=!0}),Ct(()=>{e.isUnmounting=!0}),e}const yt=[Function,Array],wc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:yt,onEnter:yt,onAfterEnter:yt,onEnterCancelled:yt,onBeforeLeave:yt,onLeave:yt,onAfterLeave:yt,onLeaveCancelled:yt,onBeforeAppear:yt,onAppear:yt,onAfterAppear:yt,onAppearCancelled:yt},_c=e=>{const t=e.subTree;return t.component?_c(t.component):t},Wm={name:"BaseTransition",props:wc,setup(e,{slots:t}){const n=li(),r=Sc();return()=>{const i=t.default&&jo(t.default(),!0);if(!i||!i.length)return;const s=Cc(i),o=ee(e),{mode:a}=o;if(r.isLeaving)return As(s);const l=Ma(s);if(!l)return As(s);let u=Kr(l,o,r,n,f=>u=f);l.type!==Ue&&Fn(l,u);let c=n.subTree&&Ma(n.subTree);if(c&&c.type!==Ue&&!In(c,l)&&_c(n).type!==Ue){let f=Kr(c,o,r,n);if(Fn(c,f),a==="out-in"&&l.type!==Ue)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},As(s);a==="in-out"&&l.type!==Ue?f.delayLeave=(d,m,g)=>{const v=Ec(r,c);v[String(c.key)]=c,d[qt]=()=>{m(),d[qt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{g(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return s}}};function Cc(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ue){t=n;break}}return t}const Gm=Wm;function Ec(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Kr(e,t,n,r,i){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:m,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:E,onAppear:p,onAfterAppear:S,onAppearCancelled:b}=t,_=String(e.key),O=Ec(n,e),A=(T,H)=>{T&&Tt(T,r,9,H)},D=(T,H)=>{const B=H[1];A(T,H),re(T)?T.every(x=>x.length<=1)&&B():T.length<=1&&B()},k={mode:o,persisted:a,beforeEnter(T){let H=l;if(!n.isMounted)if(s)H=E||l;else return;T[qt]&&T[qt](!0);const B=O[_];B&&In(e,B)&&B.el[qt]&&B.el[qt](),A(H,[T])},enter(T){let H=u,B=c,x=f;if(!n.isMounted)if(s)H=p||u,B=S||c,x=b||f;else return;let N=!1;const j=T[wi]=Y=>{N||(N=!0,Y?A(x,[T]):A(B,[T]),k.delayedLeave&&k.delayedLeave(),T[wi]=void 0)};H?D(H,[T,j]):j()},leave(T,H){const B=String(e.key);if(T[wi]&&T[wi](!0),n.isUnmounting)return H();A(d,[T]);let x=!1;const N=T[qt]=j=>{x||(x=!0,H(),j?A(v,[T]):A(g,[T]),T[qt]=void 0,O[B]===e&&delete O[B])};O[B]=e,m?D(m,[T,N]):N()},clone(T){const H=Kr(T,t,n,r,i);return i&&i(H),H}};return k}function As(e){if(us(e))return e=gn(e),e.children=null,e}function Ma(e){if(!us(e))return pc(e.type)&&e.children?Cc(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&oe(n.default))return n.default()}}function Fn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Fn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jo(e,t=!1,n){let r=[],i=0;for(let s=0;s1)for(let s=0;sVr(g,t&&(re(t)?t[v]:t),n,r,i));return}if(nr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Vr(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?ms(r.component):r.el,o=i?null:s,{i:a,r:l}=e,u=t&&t.r,c=a.refs===we?a.refs={}:a.refs,f=a.setupState,d=ee(f),m=f===we?Lu:g=>ye(d,g);if(u!=null&&u!==l){if(Na(t),Re(u))c[u]=null,m(u)&&(f[u]=null);else if(Le(u)){u.value=null;const g=t;g.k&&(c[g.k]=null)}}if(oe(l))oi(l,a,12,[o,c]);else{const g=Re(l),v=Le(l);if(g||v){const E=()=>{if(e.f){const p=g?m(l)?f[l]:c[l]:l.value;if(i)re(p)&&Do(p,s);else if(re(p))p.includes(s)||p.push(s);else if(g)c[l]=[s],m(l)&&(f[l]=c[l]);else{const S=[s];l.value=S,e.k&&(c[e.k]=S)}}else g?(c[l]=o,m(l)&&(f[l]=o)):v&&(l.value=o,e.k&&(c[e.k]=o))};if(o){const p=()=>{E(),Fi.delete(e)};p.id=-1,Fi.set(e,p),it(p,n)}else Na(e),E()}}}function Na(e){const t=Fi.get(e);t&&(t.flags|=8,Fi.delete(e))}is().requestIdleCallback;is().cancelIdleCallback;const nr=e=>!!e.type.__asyncLoader,us=e=>e.type.__isKeepAlive;function kc(e,t){Pc(e,"a",t)}function Tc(e,t){Pc(e,"da",t)}function Pc(e,t,n=Ze){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(cs(t,r,n),n){let i=n.parent;for(;i&&i.parent;)us(i.parent.vnode)&&Um(r,t,n,i),i=i.parent}}function Um(e,t,n,r){const i=cs(t,e,r,!0);Ic(()=>{Do(r[t],i)},n)}function cs(e,t,n=Ze,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Jt();const a=ui(n),l=Tt(t,n,e,o);return a(),Qt(),l});return r?i.unshift(s):i.push(s),s}}const rn=e=>(t,n=Ze)=>{(!Yr||e==="sp")&&cs(e,(...r)=>t(...r),n)},fs=rn("bm"),yn=rn("m"),zm=rn("bu"),Wo=rn("u"),Ct=rn("bum"),Ic=rn("um"),Km=rn("sp"),qm=rn("rtg"),Ym=rn("rtc");function Xm(e,t=Ze){cs("ec",e,t)}const Oc="components";function Zm(e,t){return Lc(Oc,e,!0,t)||e}const Rc=Symbol.for("v-ndc");function Dc(e){return Re(e)?Lc(Oc,e,!1)||e:e||Rc}function Lc(e,t,n=!0,r=!1){const i=ze||Ze;if(i){const s=i.type;{const a=Fh(s,!1);if(a&&(a===t||a===at(t)||a===vr(at(t))))return s}const o=Va(i[e]||s[e],t)||Va(i.appContext[e],t);return!o&&r?s:o}}function Va(e,t){return e&&(e[t]||e[at(t)]||e[vr(at(t))])}function Jm(e,t,n,r){let i;const s=n,o=re(e);if(o||Re(e)){const a=o&&Dn(e);let l=!1,u=!1;a&&(l=!gt(e),u=en(e),e=ss(e)),i=new Array(e.length);for(let c=0,f=e.length;ct(a,l,void 0,s));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,u=a.length;l{const s=r.fn(...i);return s&&(s.key=r.key),s}:r.fn)}return e}function uS(e,t,n={},r,i){if(ze.ce||ze.parent&&nr(ze.parent)&&ze.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),bt(),$t(Pe,null,[I("slot",n,r)],u?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),bt();const o=s&&Mc(s(n)),a=n.key||o&&o.key,l=$t(Pe,{key:(a&&!nn(a)?a:`_${t}`)+(!o&&r?"_fb":"")},o||[],o&&e._===1?64:-2);return s&&s._c&&(s._d=!0),l}function Mc(e){return e.some(t=>ur(t)?!(t.type===Ue||t.type===Pe&&!Mc(t.children)):!0)?e:null}const to=e=>e?ef(e)?ms(e):to(e.parent):null,Fr=Be(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=>to(e.parent),$root:e=>to(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vc(e),$forceUpdate:e=>e.f||(e.f=()=>{Ho(e.update)}),$nextTick:e=>e.n||(e.n=qe.bind(e.proxy)),$watch:e=>uh.bind(e)}),ks=(e,t)=>e!==we&&!e.__isScriptSetup&&ye(e,t),Qm={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(ks(r,t))return o[t]=1,r[t];if(i!==we&&ye(i,t))return o[t]=2,i[t];if(ye(s,t))return o[t]=3,s[t];if(n!==we&&ye(n,t))return o[t]=4,n[t];no&&(o[t]=0)}}const u=Fr[t];let c,f;if(u)return t==="$attrs"&&Xe(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==we&&ye(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,ye(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return ks(i,t)?(i[t]=n,!0):r!==we&&ye(r,t)?(r[t]=n,!0):ye(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:s,type:o}},a){let l;return!!(n[a]||e!==we&&a[0]!=="$"&&ye(e,a)||ks(t,a)||ye(s,a)||ye(r,a)||ye(Fr,a)||ye(i.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ye(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Fa(e){return re(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let no=!0;function eh(e){const t=Vc(e),n=e.proxy,r=e.ctx;no=!1,t.beforeCreate&&Ba(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:m,updated:g,activated:v,deactivated:E,beforeDestroy:p,beforeUnmount:S,destroyed:b,unmounted:_,render:O,renderTracked:A,renderTriggered:D,errorCaptured:k,serverPrefetch:T,expose:H,inheritAttrs:B,components:x,directives:N,filters:j}=t;if(u&&th(u,r,null),o)for(const J in o){const te=o[J];oe(te)&&(r[J]=te.bind(n))}if(i){const J=i.call(n,n);_e(J)&&(e.data=We(J))}if(no=!0,s)for(const J in s){const te=s[J],Oe=oe(te)?te.bind(n,n):oe(te.get)?te.get.bind(n,n):jt,me=!oe(te)&&oe(te.set)?te.set.bind(n):jt,Ae=M({get:Oe,set:me});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>Ae.value,set:Se=>Ae.value=Se})}if(a)for(const J in a)Nc(a[J],r,n,J);if(l){const J=oe(l)?l.call(n):l;Reflect.ownKeys(J).forEach(te=>{et(te,J[te])})}c&&Ba(c,e,"c");function ie(J,te){re(te)?te.forEach(Oe=>J(Oe.bind(n))):te&&J(te.bind(n))}if(ie(fs,f),ie(yn,d),ie(zm,m),ie(Wo,g),ie(kc,v),ie(Tc,E),ie(Xm,k),ie(Ym,A),ie(qm,D),ie(Ct,S),ie(Ic,_),ie(Km,T),re(H))if(H.length){const J=e.exposed||(e.exposed={});H.forEach(te=>{Object.defineProperty(J,te,{get:()=>n[te],set:Oe=>n[te]=Oe,enumerable:!0})})}else e.exposed||(e.exposed={});O&&e.render===jt&&(e.render=O),B!=null&&(e.inheritAttrs=B),x&&(e.components=x),N&&(e.directives=N),T&&Ac(e)}function th(e,t,n=jt){re(e)&&(e=ro(e));for(const r in e){const i=e[r];let s;_e(i)?"default"in i?s=ge(i.from||r,i.default,!0):s=ge(i.from||r):s=ge(i),Le(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function Ba(e,t,n){Tt(re(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Nc(e,t,n,r){let i=r.includes(".")?Bc(n,r):()=>n[r];if(Re(e)){const s=t[e];oe(s)&&fe(i,s)}else if(oe(e))fe(i,e.bind(n));else if(_e(e))if(re(e))e.forEach(s=>Nc(s,t,n,r));else{const s=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(s)&&fe(i,s,e)}}function Vc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>Bi(l,u,o,!0)),Bi(l,t,o)),_e(t)&&s.set(t,l),l}function Bi(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Bi(e,s,n,!0),i&&i.forEach(o=>Bi(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=nh[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const nh={data:$a,props:Ha,emits:Ha,methods:Or,computed:Or,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:Or,directives:Or,watch:ih,provide:$a,inject:rh};function $a(e,t){return t?e?function(){return Be(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function rh(e,t){return Or(ro(e),ro(t))}function ro(e){if(re(e)){const t={};for(let n=0;n1)return n&&oe(t)?t.call(r&&r.proxy):t}}const ah=Symbol.for("v-scx"),lh=()=>ge(ah);function _t(e,t){return Go(e,null,t)}function fe(e,t,n){return Go(e,t,n)}function Go(e,t,n=we){const{immediate:r,deep:i,flush:s,once:o}=n,a=Be({},n),l=t&&r||!t&&s!=="post";let u;if(Yr){if(s==="sync"){const m=lh();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=jt,m.resume=jt,m.pause=jt,m}}const c=Ze;a.call=(m,g,v)=>Tt(m,c,g,v);let f=!1;s==="post"?a.scheduler=m=>{it(m,c&&c.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(m,g)=>{g?m():Ho(m)}),a.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const d=Vm(e,t,a);return Yr&&(u?u.push(d):l&&d()),d}function uh(e,t,n){const r=this.proxy,i=Re(e)?e.includes(".")?Bc(r,e):()=>r[e]:e.bind(r,r);let s;oe(t)?s=t:(s=t.handler,n=t);const o=ui(this),a=Go(i,s.bind(r),n);return o(),a}function Bc(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${at(t)}Modifiers`]||e[`${pn(t)}Modifiers`];function fh(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||we;let i=n;const s=t.startsWith("update:"),o=s&&ch(r,t.slice(7));o&&(o.trim&&(i=n.map(c=>Re(c)?c.trim():c)),o.number&&(i=n.map(Lo)));let a,l=r[a=ws(t)]||r[a=ws(at(t))];!l&&s&&(l=r[a=ws(pn(t))]),l&&Tt(l,e,6,i);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Tt(u,e,6,i)}}const dh=new WeakMap;function $c(e,t,n=!1){const r=n?dh:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!oe(e)){const l=u=>{const c=$c(u,t,!0);c&&(a=!0,Be(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(_e(e)&&r.set(e,null),null):(re(s)?s.forEach(l=>o[l]=null):Be(o,s),_e(e)&&r.set(e,o),o)}function ds(e,t){return!e||!es(t)?!1:(t=t.slice(2).replace(/Once$/,""),ye(e,t[0].toLowerCase()+t.slice(1))||ye(e,pn(t))||ye(e,t))}function ja(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:m,ctx:g,inheritAttrs:v}=e,E=Vi(e);let p,S;try{if(n.shapeFlag&4){const _=i||r,O=_;p=Vt(u.call(O,_,c,f,m,d,g)),S=a}else{const _=t;p=Vt(_.length>1?_(f,{attrs:a,slots:o,emit:l}):_(f,null)),S=t.props?a:mh(a)}}catch(_){Br.length=0,as(_,e,1),p=I(Ue)}let b=p;if(S&&v!==!1){const _=Object.keys(S),{shapeFlag:O}=b;_.length&&O&7&&(s&&_.some(Ro)&&(S=hh(S,s)),b=gn(b,S,!1,!0))}return n.dirs&&(b=gn(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Fn(b,n.transition),p=b,Vi(E),p}const mh=e=>{let t;for(const n in e)(n==="class"||n==="style"||es(n))&&((t||(t={}))[n]=e[n]);return t},hh=(e,t)=>{const n={};for(const r in e)(!Ro(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function gh(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:l}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Wa(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fObject.create(Hc),Wc=e=>Object.getPrototypeOf(e)===Hc;function ph(e,t,n,r=!1){const i={},s=jc();e.propsDefaults=Object.create(null),Gc(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:sc(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function yh(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=ee(i),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,m]=Uc(f,t,!0);Be(o,d),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return _e(e)&&r.set(e,Qn),Qn;if(re(s))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",zo=e=>re(e)?e.map(Vt):[Vt(e)],Sh=(e,t,n)=>{if(t._n)return t;const r=je((...i)=>zo(t(...i)),n);return r._c=!1,r},zc=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Uo(i))continue;const s=e[i];if(oe(s))t[i]=Sh(i,s,r);else if(s!=null){const o=zo(s);t[i]=()=>o}}},Kc=(e,t)=>{const n=zo(t);e.slots.default=()=>n},qc=(e,t,n)=>{for(const r in t)(n||!Uo(r))&&(e[r]=t[r])},wh=(e,t,n)=>{const r=e.slots=jc();if(e.vnode.shapeFlag&32){const i=t._;i?(qc(r,t,n),n&&Bu(r,"_",i,!0)):zc(t,r)}else t&&Kc(e,t)},_h=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=we;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:qc(i,t,n):(s=!t.$stable,zc(t,i)),o=t}else t&&(Kc(e,t),o={default:1});if(s)for(const a in i)!Uo(a)&&o[a]==null&&delete i[a]},it=kh;function Ch(e){return Eh(e)}function Eh(e,t){const n=is();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:m=jt,insertStaticContent:g}=e,v=(h,y,C,P=null,L=null,R=null,z=void 0,U=null,W=!!y.dynamicChildren)=>{if(h===y)return;h&&!In(h,y)&&(P=w(h),Se(h,L,R,!0),h=null),y.patchFlag===-2&&(W=!1,y.dynamicChildren=null);const{type:V,ref:ne,shapeFlag:K}=y;switch(V){case ai:E(h,y,C,P);break;case Ue:p(h,y,C,P);break;case Ps:h==null&&S(y,C,P,z);break;case Pe:x(h,y,C,P,L,R,z,U,W);break;default:K&1?O(h,y,C,P,L,R,z,U,W):K&6?N(h,y,C,P,L,R,z,U,W):(K&64||K&128)&&V.process(h,y,C,P,L,R,z,U,W,X)}ne!=null&&L?Vr(ne,h&&h.ref,R,y||h,!y):ne==null&&h&&h.ref!=null&&Vr(h.ref,null,R,h,!0)},E=(h,y,C,P)=>{if(h==null)r(y.el=a(y.children),C,P);else{const L=y.el=h.el;y.children!==h.children&&u(L,y.children)}},p=(h,y,C,P)=>{h==null?r(y.el=l(y.children||""),C,P):y.el=h.el},S=(h,y,C,P)=>{[h.el,h.anchor]=g(h.children,y,C,P,h.el,h.anchor)},b=({el:h,anchor:y},C,P)=>{let L;for(;h&&h!==y;)L=d(h),r(h,C,P),h=L;r(y,C,P)},_=({el:h,anchor:y})=>{let C;for(;h&&h!==y;)C=d(h),i(h),h=C;i(y)},O=(h,y,C,P,L,R,z,U,W)=>{if(y.type==="svg"?z="svg":y.type==="math"&&(z="mathml"),h==null)A(y,C,P,L,R,z,U,W);else{const V=h.el&&h.el._isVueCE?h.el:null;try{V&&V._beginPatch(),T(h,y,L,R,z,U,W)}finally{V&&V._endPatch()}}},A=(h,y,C,P,L,R,z,U)=>{let W,V;const{props:ne,shapeFlag:K,transition:Q,dirs:ae}=h;if(W=h.el=o(h.type,R,ne&&ne.is,ne),K&8?c(W,h.children):K&16&&k(h.children,W,null,P,L,Ts(h,R),z,U),ae&&_n(h,null,P,"created"),D(W,h,h.scopeId,z,P),ne){for(const Ce in ne)Ce!=="value"&&!Dr(Ce)&&s(W,Ce,null,ne[Ce],R,P);"value"in ne&&s(W,"value",null,ne.value,R),(V=ne.onVnodeBeforeMount)&&Dt(V,P,h)}ae&&_n(h,null,P,"beforeMount");const de=xh(L,Q);de&&Q.beforeEnter(W),r(W,y,C),((V=ne&&ne.onVnodeMounted)||de||ae)&&it(()=>{V&&Dt(V,P,h),de&&Q.enter(W),ae&&_n(h,null,P,"mounted")},L)},D=(h,y,C,P,L)=>{if(C&&m(h,C),P)for(let R=0;R{for(let V=W;V{const U=y.el=h.el;let{patchFlag:W,dynamicChildren:V,dirs:ne}=y;W|=h.patchFlag&16;const K=h.props||we,Q=y.props||we;let ae;if(C&&Cn(C,!1),(ae=Q.onVnodeBeforeUpdate)&&Dt(ae,C,y,h),ne&&_n(y,h,C,"beforeUpdate"),C&&Cn(C,!0),(K.innerHTML&&Q.innerHTML==null||K.textContent&&Q.textContent==null)&&c(U,""),V?H(h.dynamicChildren,V,U,C,P,Ts(y,L),R):z||te(h,y,U,null,C,P,Ts(y,L),R,!1),W>0){if(W&16)B(U,K,Q,C,L);else if(W&2&&K.class!==Q.class&&s(U,"class",null,Q.class,L),W&4&&s(U,"style",K.style,Q.style,L),W&8){const de=y.dynamicProps;for(let Ce=0;Ce{ae&&Dt(ae,C,y,h),ne&&_n(y,h,C,"updated")},P)},H=(h,y,C,P,L,R,z)=>{for(let U=0;U{if(y!==C){if(y!==we)for(const R in y)!Dr(R)&&!(R in C)&&s(h,R,y[R],null,L,P);for(const R in C){if(Dr(R))continue;const z=C[R],U=y[R];z!==U&&R!=="value"&&s(h,R,U,z,L,P)}"value"in C&&s(h,"value",y.value,C.value,L)}},x=(h,y,C,P,L,R,z,U,W)=>{const V=y.el=h?h.el:a(""),ne=y.anchor=h?h.anchor:a("");let{patchFlag:K,dynamicChildren:Q,slotScopeIds:ae}=y;ae&&(U=U?U.concat(ae):ae),h==null?(r(V,C,P),r(ne,C,P),k(y.children||[],C,ne,L,R,z,U,W)):K>0&&K&64&&Q&&h.dynamicChildren?(H(h.dynamicChildren,Q,C,L,R,z,U),(y.key!=null||L&&y===L.subTree)&&Ko(h,y,!0)):te(h,y,C,ne,L,R,z,U,W)},N=(h,y,C,P,L,R,z,U,W)=>{y.slotScopeIds=U,h==null?y.shapeFlag&512?L.ctx.activate(y,C,P,z,W):j(y,C,P,L,R,z,W):Y(h,y,W)},j=(h,y,C,P,L,R,z)=>{const U=h.component=Dh(h,P,L);if(us(h)&&(U.ctx.renderer=X),Lh(U,!1,z),U.asyncDep){if(L&&L.registerDep(U,ie,z),!h.el){const W=U.subTree=I(Ue);p(null,W,y,C),h.placeholder=W.el}}else ie(U,h,y,C,L,R,z)},Y=(h,y,C)=>{const P=y.component=h.component;if(gh(h,y,C))if(P.asyncDep&&!P.asyncResolved){J(P,y,C);return}else P.next=y,P.update();else y.el=h.el,P.vnode=y},ie=(h,y,C,P,L,R,z)=>{const U=()=>{if(h.isMounted){let{next:K,bu:Q,u:ae,parent:de,vnode:Ce}=h;{const Ot=Yc(h);if(Ot){K&&(K.el=Ce.el,J(h,K,z)),Ot.asyncDep.then(()=>{h.isUnmounted||U()});return}}let be=K,ut;Cn(h,!1),K?(K.el=Ce.el,J(h,K,z)):K=Ce,Q&&Ai(Q),(ut=K.props&&K.props.onVnodeBeforeUpdate)&&Dt(ut,de,K,Ce),Cn(h,!0);const ct=ja(h),It=h.subTree;h.subTree=ct,v(It,ct,f(It.el),w(It),h,L,R),K.el=ct.el,be===null&&vh(h,ct.el),ae&&it(ae,L),(ut=K.props&&K.props.onVnodeUpdated)&&it(()=>Dt(ut,de,K,Ce),L)}else{let K;const{el:Q,props:ae}=y,{bm:de,m:Ce,parent:be,root:ut,type:ct}=h,It=nr(y);Cn(h,!1),de&&Ai(de),!It&&(K=ae&&ae.onVnodeBeforeMount)&&Dt(K,be,y),Cn(h,!0);{ut.ce&&ut.ce._def.shadowRoot!==!1&&ut.ce._injectChildStyle(ct);const Ot=h.subTree=ja(h);v(null,Ot,C,P,h,L,R),y.el=Ot.el}if(Ce&&it(Ce,L),!It&&(K=ae&&ae.onVnodeMounted)){const Ot=y;it(()=>Dt(K,be,Ot),L)}(y.shapeFlag&256||be&&nr(be.vnode)&&be.vnode.shapeFlag&256)&&h.a&&it(h.a,L),h.isMounted=!0,y=C=P=null}};h.scope.on();const W=h.effect=new Uu(U);h.scope.off();const V=h.update=W.run.bind(W),ne=h.job=W.runIfDirty.bind(W);ne.i=h,ne.id=h.uid,W.scheduler=()=>Ho(ne),Cn(h,!0),V()},J=(h,y,C)=>{y.component=h;const P=h.vnode.props;h.vnode=y,h.next=null,yh(h,y.props,P,C),_h(h,y.children,C),Jt(),Oa(h),Qt()},te=(h,y,C,P,L,R,z,U,W=!1)=>{const V=h&&h.children,ne=h?h.shapeFlag:0,K=y.children,{patchFlag:Q,shapeFlag:ae}=y;if(Q>0){if(Q&128){me(V,K,C,P,L,R,z,U,W);return}else if(Q&256){Oe(V,K,C,P,L,R,z,U,W);return}}ae&8?(ne&16&&He(V,L,R),K!==V&&c(C,K)):ne&16?ae&16?me(V,K,C,P,L,R,z,U,W):He(V,L,R,!0):(ne&8&&c(C,""),ae&16&&k(K,C,P,L,R,z,U,W))},Oe=(h,y,C,P,L,R,z,U,W)=>{h=h||Qn,y=y||Qn;const V=h.length,ne=y.length,K=Math.min(V,ne);let Q;for(Q=0;Qne?He(h,L,R,!0,!1,K):k(y,C,P,L,R,z,U,W,K)},me=(h,y,C,P,L,R,z,U,W)=>{let V=0;const ne=y.length;let K=h.length-1,Q=ne-1;for(;V<=K&&V<=Q;){const ae=h[V],de=y[V]=W?dn(y[V]):Vt(y[V]);if(In(ae,de))v(ae,de,C,null,L,R,z,U,W);else break;V++}for(;V<=K&&V<=Q;){const ae=h[K],de=y[Q]=W?dn(y[Q]):Vt(y[Q]);if(In(ae,de))v(ae,de,C,null,L,R,z,U,W);else break;K--,Q--}if(V>K){if(V<=Q){const ae=Q+1,de=aeQ)for(;V<=K;)Se(h[V],L,R,!0),V++;else{const ae=V,de=V,Ce=new Map;for(V=de;V<=Q;V++){const dt=y[V]=W?dn(y[V]):Vt(y[V]);dt.key!=null&&Ce.set(dt.key,V)}let be,ut=0;const ct=Q-de+1;let It=!1,Ot=0;const Er=new Array(ct);for(V=0;V=ct){Se(dt,L,R,!0);continue}let Rt;if(dt.key!=null)Rt=Ce.get(dt.key);else for(be=de;be<=Q;be++)if(Er[be-de]===0&&In(dt,y[be])){Rt=be;break}Rt===void 0?Se(dt,L,R,!0):(Er[Rt-de]=V+1,Rt>=Ot?Ot=Rt:It=!0,v(dt,y[Rt],C,null,L,R,z,U,W),ut++)}const Ea=It?Ah(Er):Qn;for(be=Ea.length-1,V=ct-1;V>=0;V--){const dt=de+V,Rt=y[dt],xa=y[dt+1],Aa=dt+1{const{el:R,type:z,transition:U,children:W,shapeFlag:V}=h;if(V&6){Ae(h.component.subTree,y,C,P);return}if(V&128){h.suspense.move(y,C,P);return}if(V&64){z.move(h,y,C,X);return}if(z===Pe){r(R,y,C);for(let K=0;KU.enter(R),L);else{const{leave:K,delayLeave:Q,afterLeave:ae}=U,de=()=>{h.ctx.isUnmounted?i(R):r(R,y,C)},Ce=()=>{R._isLeaving&&R[qt](!0),K(R,()=>{de(),ae&&ae()})};Q?Q(R,de,Ce):Ce()}else r(R,y,C)},Se=(h,y,C,P=!1,L=!1)=>{const{type:R,props:z,ref:U,children:W,dynamicChildren:V,shapeFlag:ne,patchFlag:K,dirs:Q,cacheIndex:ae}=h;if(K===-2&&(L=!1),U!=null&&(Jt(),Vr(U,null,C,h,!0),Qt()),ae!=null&&(y.renderCache[ae]=void 0),ne&256){y.ctx.deactivate(h);return}const de=ne&1&&Q,Ce=!nr(h);let be;if(Ce&&(be=z&&z.onVnodeBeforeUnmount)&&Dt(be,y,h),ne&6)nt(h.component,C,P);else{if(ne&128){h.suspense.unmount(C,P);return}de&&_n(h,null,y,"beforeUnmount"),ne&64?h.type.remove(h,y,C,X,P):V&&!V.hasOnce&&(R!==Pe||K>0&&K&64)?He(V,y,C,!1,!0):(R===Pe&&K&384||!L&&ne&16)&&He(W,y,C),P&&Ne(h)}(Ce&&(be=z&&z.onVnodeUnmounted)||de)&&it(()=>{be&&Dt(be,y,h),de&&_n(h,null,y,"unmounted")},C)},Ne=h=>{const{type:y,el:C,anchor:P,transition:L}=h;if(y===Pe){Ge(C,P);return}if(y===Ps){_(h);return}const R=()=>{i(C),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(h.shapeFlag&1&&L&&!L.persisted){const{leave:z,delayLeave:U}=L,W=()=>z(C,R);U?U(h.el,R,W):W()}else R()},Ge=(h,y)=>{let C;for(;h!==y;)C=d(h),i(h),h=C;i(y)},nt=(h,y,C)=>{const{bum:P,scope:L,job:R,subTree:z,um:U,m:W,a:V}=h;Ua(W),Ua(V),P&&Ai(P),L.stop(),R&&(R.flags|=8,Se(z,h,y,C)),U&&it(U,y),it(()=>{h.isUnmounted=!0},y)},He=(h,y,C,P=!1,L=!1,R=0)=>{for(let z=R;z{if(h.shapeFlag&6)return w(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const y=d(h.anchor||h.el),C=y&&y[vc];return C?d(C):y};let F=!1;const $=(h,y,C)=>{h==null?y._vnode&&Se(y._vnode,null,null,!0):v(y._vnode||null,h,y,null,null,null,C),y._vnode=h,F||(F=!0,Oa(),mc(),F=!1)},X={p:v,um:Se,m:Ae,r:Ne,mt:j,mc:k,pc:te,pbc:H,n:w,o:e};return{render:$,hydrate:void 0,createApp:oh($)}}function Ts({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 Cn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function xh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ko(e,t,n=!1){const r=e.children,i=t.children;if(re(r)&&re(i))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}function Yc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yc(t)}function Ua(e){if(e)for(let t=0;te.__isSuspense;function kh(e,t){t&&t.pendingBranch?re(e)?t.effects.push(...e):t.effects.push(e):$m(e)}const Pe=Symbol.for("v-fgt"),ai=Symbol.for("v-txt"),Ue=Symbol.for("v-cmt"),Ps=Symbol.for("v-stc"),Br=[];let ht=null;function bt(e=!1){Br.push(ht=e?null:[])}function Th(){Br.pop(),ht=Br[Br.length-1]||null}let qr=1;function $i(e,t=!1){qr+=e,e<0&&ht&&t&&(ht.hasOnce=!0)}function Zc(e){return e.dynamicChildren=qr>0?ht||Qn:null,Th(),qr>0&&ht&&ht.push(e),e}function Jc(e,t,n,r,i,s){return Zc(q(e,t,n,r,i,s,!0))}function $t(e,t,n,r,i){return Zc(I(e,t,n,r,i,!0))}function ur(e){return e?e.__v_isVNode===!0:!1}function In(e,t){return e.type===t.type&&e.key===t.key}const Qc=({key:e})=>e??null,Ti=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Re(e)||Le(e)||oe(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function q(e,t=null,n=null,r=0,i=null,s=e===Pe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qc(t),ref:t&&Ti(t),scopeId:gc,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:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ze};return a?(qo(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Re(n)?8:16),qr>0&&!o&&ht&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&ht.push(l),l}const I=Ph;function Ph(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Rc)&&(e=Ue),ur(e)){const a=gn(e,t,!0);return n&&qo(a,n),qr>0&&!s&&ht&&(a.shapeFlag&6?ht[ht.indexOf(e)]=a:ht.push(a)),a.patchFlag=-2,a}if(Bh(e)&&(e=e.__vccOpts),t){t=Ih(t);let{class:a,style:l}=t;a&&!Re(a)&&(t.class=he(a)),_e(l)&&(os(l)&&!re(l)&&(l=Be({},l)),t.style=xe(l))}const o=Re(e)?1:Xc(e)?128:pc(e)?64:_e(e)?4:oe(e)?2:0;return q(e,t,n,r,i,o,s,!0)}function Ih(e){return e?os(e)||Wc(e)?Be({},e):e:null}function gn(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:l}=e,u=t?ke(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Qc(u),ref:t&&t.ref?n&&s?re(s)?s.concat(Ti(t)):[s,Ti(t)]:Ti(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gn(e.ssContent),ssFallback:e.ssFallback&&gn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Fn(c,l.clone(c)),c}function Rr(e=" ",t=0){return I(ai,null,e,t)}function so(e="",t=!1){return t?(bt(),$t(Ue,null,e)):I(Ue,null,e)}function Vt(e){return e==null||typeof e=="boolean"?I(Ue):re(e)?I(Pe,null,e.slice()):ur(e)?dn(e):I(ai,null,String(e))}function dn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gn(e)}function qo(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(re(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),qo(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Wc(t)?t._ctx=ze:i===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),r&64?(n=16,t=[Rr(t)]):n=8);e.children=t,e.shapeFlag|=n}function ke(...e){const t={};for(let n=0;nZe||ze;let Hi,oo;{const e=is(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};Hi=t("__VUE_INSTANCE_SETTERS__",n=>Ze=n),oo=t("__VUE_SSR_SETTERS__",n=>Yr=n)}const ui=e=>{const t=Ze;return Hi(e),e.scope.on(),()=>{e.scope.off(),Hi(t)}},za=()=>{Ze&&Ze.scope.off(),Hi(null)};function ef(e){return e.vnode.shapeFlag&4}let Yr=!1;function Lh(e,t=!1,n=!1){t&&oo(t);const{props:r,children:i}=e.vnode,s=ef(e);ph(e,r,s,t),wh(e,i,n||t);const o=s?Mh(e,t):void 0;return t&&oo(!1),o}function Mh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Qm);const{setup:r}=n;if(r){Jt();const i=e.setupContext=r.length>1?Vh(e):null,s=ui(e),o=oi(r,e,0,[e.props,i]),a=Nu(o);if(Qt(),s(),(a||e.sp)&&!nr(e)&&Ac(e),a){if(o.then(za,za),t)return o.then(l=>{Ka(e,l)}).catch(l=>{as(l,e,0)});e.asyncDep=o}else Ka(e,o)}else tf(e)}function Ka(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=lc(t)),tf(e)}function tf(e,t,n){const r=e.type;e.render||(e.render=r.render||jt);{const i=ui(e);Jt();try{eh(e)}finally{Qt(),i()}}}const Nh={get(e,t){return Xe(e,"get",""),e[t]}};function Vh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Nh),slots:e.slots,emit:e.emit,expose:t}}function ms(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(lc(oc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Fr)return Fr[n](e)},has(t,n){return n in t||n in Fr}})):e.proxy}function Fh(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Bh(e){return oe(e)&&"__vccOpts"in e}const M=(e,t)=>Mm(e,t,Yr);function bn(e,t,n){try{$i(-1);const r=arguments.length;return r===2?_e(t)&&!re(t)?ur(t)?I(e,null,[t]):I(e,t):I(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ur(n)&&(n=[n]),I(e,t,n))}finally{$i(1)}}const $h="3.5.25";/** -* @vue/runtime-dom v3.5.25 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let ao;const qa=typeof window<"u"&&window.trustedTypes;if(qa)try{ao=qa.createPolicy("vue",{createHTML:e=>e})}catch{}const nf=ao?e=>ao.createHTML(e):e=>e,Hh="http://www.w3.org/2000/svg",jh="http://www.w3.org/1998/Math/MathML",Kt=typeof document<"u"?document:null,Ya=Kt&&Kt.createElement("template"),Wh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?Kt.createElementNS(Hh,e):t==="mathml"?Kt.createElementNS(jh,e):n?Kt.createElement(e,{is:n}):Kt.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Kt.createTextNode(e),createComment:e=>Kt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Kt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Ya.innerHTML=nf(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=Ya.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},an="transition",Ar="animation",cr=Symbol("_vtc"),rf={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},sf=Be({},wc,rf),Gh=e=>(e.displayName="Transition",e.props=sf,e),vn=Gh((e,{slots:t})=>bn(Gm,of(e),t)),En=(e,t=[])=>{re(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xa=e=>e?re(e)?e.some(t=>t.length>1):e.length>1:!1;function of(e){const t={};for(const x in e)x in rf||(t[x]=e[x]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,g=Uh(i),v=g&&g[0],E=g&&g[1],{onBeforeEnter:p,onEnter:S,onEnterCancelled:b,onLeave:_,onLeaveCancelled:O,onBeforeAppear:A=p,onAppear:D=S,onAppearCancelled:k=b}=t,T=(x,N,j,Y)=>{x._enterCancelled=Y,un(x,N?c:a),un(x,N?u:o),j&&j()},H=(x,N)=>{x._isLeaving=!1,un(x,f),un(x,m),un(x,d),N&&N()},B=x=>(N,j)=>{const Y=x?D:S,ie=()=>T(N,x,j);En(Y,[N,ie]),Za(()=>{un(N,x?l:s),Lt(N,x?c:a),Xa(Y)||Ja(N,r,v,ie)})};return Be(t,{onBeforeEnter(x){En(p,[x]),Lt(x,s),Lt(x,o)},onBeforeAppear(x){En(A,[x]),Lt(x,l),Lt(x,u)},onEnter:B(!1),onAppear:B(!0),onLeave(x,N){x._isLeaving=!0;const j=()=>H(x,N);Lt(x,f),x._enterCancelled?(Lt(x,d),lo(x)):(lo(x),Lt(x,d)),Za(()=>{x._isLeaving&&(un(x,f),Lt(x,m),Xa(_)||Ja(x,r,E,j))}),En(_,[x,j])},onEnterCancelled(x){T(x,!1,void 0,!0),En(b,[x])},onAppearCancelled(x){T(x,!0,void 0,!0),En(k,[x])},onLeaveCancelled(x){H(x),En(O,[x])}})}function Uh(e){if(e==null)return null;if(_e(e))return[Is(e.enter),Is(e.leave)];{const t=Is(e);return[t,t]}}function Is(e){return im(e)}function Lt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[cr]||(e[cr]=new Set)).add(t)}function un(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[cr];n&&(n.delete(t),n.size||(e[cr]=void 0))}function Za(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let zh=0;function Ja(e,t,n,r){const i=e._endId=++zh,s=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:o,timeout:a,propCount:l}=af(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),s()},d=m=>{m.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[g]||"").split(", "),i=r(`${an}Delay`),s=r(`${an}Duration`),o=Qa(i,s),a=r(`${Ar}Delay`),l=r(`${Ar}Duration`),u=Qa(a,l);let c=null,f=0,d=0;t===an?o>0&&(c=an,f=o,d=s.length):t===Ar?u>0&&(c=Ar,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?an:Ar:null,d=c?c===an?s.length:l.length:0);const m=c===an&&/\b(?:transform|all)(?:,|$)/.test(r(`${an}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:m}}function Qa(e,t){for(;e.lengthel(n)+el(e[r])))}function el(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function lo(e){return(e?e.ownerDocument:document).body.offsetHeight}function Kh(e,t,n){const r=e[cr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ji=Symbol("_vod"),lf=Symbol("_vsh"),Yo={name:"show",beforeMount(e,{value:t},{transition:n}){e[ji]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kr(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),kr(e,!0),r.enter(e)):r.leave(e,()=>{kr(e,!1)}):kr(e,t))},beforeUnmount(e,{value:t}){kr(e,t)}};function kr(e,t){e.style.display=t?e[ji]:"none",e[lf]=!t}const qh=Symbol(""),Yh=/(?:^|;)\s*display\s*:/;function Xh(e,t,n){const r=e.style,i=Re(n);let s=!1;if(n&&!i){if(t)if(Re(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Pi(r,a,"")}else for(const o in t)n[o]==null&&Pi(r,o,"");for(const o in n)o==="display"&&(s=!0),Pi(r,o,n[o])}else if(i){if(t!==n){const o=r[qh];o&&(n+=";"+o),r.cssText=n,s=Yh.test(n)}}else t&&e.removeAttribute("style");ji in e&&(e[ji]=s?r.display:"",e[lf]&&(r.display="none"))}const tl=/\s*!important$/;function Pi(e,t,n){if(re(n))n.forEach(r=>Pi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Zh(e,t);tl.test(n)?e.setProperty(pn(r),n.replace(tl,""),"important"):e[r]=n}}const nl=["Webkit","Moz","ms"],Os={};function Zh(e,t){const n=Os[t];if(n)return n;let r=at(t);if(r!=="filter"&&r in e)return Os[t]=r;r=vr(r);for(let i=0;iRs||(tg.then(()=>Rs=0),Rs=Date.now());function rg(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Tt(ig(r,n.value),t,5,[r])};return n.value=e,n.attached=ng(),n}function ig(e,t){if(re(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const ll=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,sg=(e,t,n,r,i,s)=>{const o=i==="svg";t==="class"?Kh(e,r,o):t==="style"?Xh(e,n,r):es(t)?Ro(t)||Qh(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):og(e,t,r,o))?(sl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&il(e,t,r,o,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Re(r))?sl(e,at(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),il(e,t,r,o))};function og(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ll(t)&&oe(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"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ll(t)&&Re(n)?!1:t in e}const uf=new WeakMap,cf=new WeakMap,Wi=Symbol("_moveCb"),ul=Symbol("_enterCb"),ag=e=>(delete e.props.mode,e),lg=ag({name:"TransitionGroup",props:Be({},sf,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=li(),r=Sc();let i,s;return Wo(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!dg(i[0].el,n.vnode.el,o)){i=[];return}i.forEach(ug),i.forEach(cg);const a=i.filter(fg);lo(n.vnode.el),a.forEach(l=>{const u=l.el,c=u.style;Lt(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[Wi]=d=>{d&&d.target!==u||(!d||d.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",f),u[Wi]=null,un(u,o))};u.addEventListener("transitionend",f)}),i=[]}),()=>{const o=ee(e),a=of(o);let l=o.tag||Pe;if(i=[],s)for(let u=0;u{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:o}=af(r);return s.removeChild(r),o}const cl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return re(t)?n=>Ai(t,n):t};function mg(e){e.target.composing=!0}function fl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ds=Symbol("_assign");function dl(e,t,n){return t&&(e=e.trim()),n&&(e=Lo(e)),e}const cS={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ds]=cl(i);const s=r||i.props&&i.props.type==="number";qn(e,t?"change":"input",o=>{o.target.composing||e[Ds](dl(e.value,n,s))}),(n||s)&&qn(e,"change",()=>{e.value=dl(e.value,n,s)}),t||(qn(e,"compositionstart",mg),qn(e,"compositionend",fl),qn(e,"change",fl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},o){if(e[Ds]=cl(o),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?Lo(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l))}},hg=["ctrl","shift","alt","meta"],gg={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)=>hg.some(n=>e[`${n}Key`]&&!t.includes(n))},fS=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...s)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const s=pn(i.key);if(t.some(o=>o===s||vg[o]===s))return e(i)})},pg=Be({patchProp:sg},Wh);let ml;function yg(){return ml||(ml=Ch(pg))}const bg=(...e)=>{const t=yg().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=wg(r);if(!i)return;const s=t._component;!oe(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,Sg(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function Sg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wg(e){return Re(e)?document.querySelector(e):e}function mS(e){}function ff(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const Te=typeof window<"u",Zo=Te&&"IntersectionObserver"in window,_g=Te&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),df=Te&&"matchMedia"in window&&typeof window.matchMedia=="function",Xr=()=>df&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function hl(e,t,n){Cg(e,t),t.set(e,n)}function Cg(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function gl(e,t,n){return e.set(mf(e,t),n),n}function Ut(e,t){return e.get(mf(e,t))}function mf(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function hf(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let i=0;i"u"?n:i}if(typeof t=="string")return uo(e,t,n);if(Array.isArray(t))return hf(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function gf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function se(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(e==null||e==="")return;const n=Number(e);return isNaN(n)?String(e):isFinite(n)?`${n}${t}`:void 0}function co(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function vl(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function Jo(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const hS=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function gS(e){return Object.keys(e)}function Ls(e,t){return t.every(n=>e.hasOwnProperty(n))}function Qo(e,t){const n={};for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function pl(e,t,n){const r=Object.create(null),i=Object.create(null);for(const s in e)t.some(o=>o instanceof RegExp?o.test(s):o===s)?r[s]=e[s]:i[s]=e[s];return[r,i]}function $n(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}const vf=/^on[^a-z]/,pf=e=>vf.test(e),Eg=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function vS(e){const[t,n]=pl(e,[vf]),r=$n(t,Eg),[i,s]=pl(n,["class","style","id",/^data-/]);return Object.assign(i,t),Object.assign(s,r),[i,s]}function ea(e){return e==null?[]:Array.isArray(e)?e:[e]}function pS(e,t){let n=0;const r=function(){for(var i=arguments.length,s=new Array(i),o=0;oe(...s),ft(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function tn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function yl(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function bl(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function xg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const i in e)r[i]=e[i];for(const i in t){const s=e[i],o=t[i];if(vl(s)&&vl(o)){r[i]=Je(s,o,n);continue}if(n&&Array.isArray(s)&&Array.isArray(o)){r[i]=n(s,o);continue}r[i]=o}return r}function yf(e){return e.map(t=>t.type===Pe?yf(t.children):t).flat()}function Ln(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Ln.cache.has(e))return Ln.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Ln.cache.set(e,t),t}Ln.cache=new Map;function Zn(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Zn(e,n)).flat(1);if(t.suspense)return Zn(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>Zn(e,n)).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return Zn(e,t.component.subTree).flat(1)}return[]}var Gn=new WeakMap,xn=new WeakMap;class Ag{constructor(t){hl(this,Gn,[]),hl(this,xn,0),this.size=t}get isFull(){return Ut(Gn,this).length===this.size}push(t){Ut(Gn,this)[Ut(xn,this)]=t,gl(xn,this,(Ut(xn,this)+1)%this.size)}values(){return Ut(Gn,this).slice(Ut(xn,this)).concat(Ut(Gn,this).slice(0,Ut(xn,this)))}clear(){Ut(Gn,this).length=0,gl(xn,this,0)}}function ta(e){const t=We({});_t(()=>{const r=e();for(const i in r)t[i]=r[i]},{flush:"sync"});const n={};for(const r in t)n[r]=G(()=>t[r]);return n}function Gi(e,t){return e.includes(t)}function bf(e){return e[2].toLowerCase()+e.slice(3)}const $r=()=>[Function,Array];function Sl(e,t){return t="on"+vr(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function bS(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","details:not(:has(> summary))","details > summary","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]"].map(i=>`${i}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let r;try{r=[...e.querySelectorAll(n)]}catch{return[]}return r.filter(i=>!i.closest("[inert]")).filter(i=>!!i.offsetParent||i.getClientRects().length>0).filter(i=>{var s,o;return!((s=i.parentElement)!=null&&s.closest("details:not([open])"))||i.tagName==="SUMMARY"&&((o=i.parentElement)==null?void 0:o.tagName)==="DETAILS"})}function kg(e,t,n){let r,i=e.indexOf(document.activeElement);const s=t==="next"?1:-1;do i+=s,r=e[i];while((!r||r.offsetParent==null||!((n==null?void 0:n(r))??!0))&&i=0);return r}function Sf(e,t){var r,i,s,o;const n=Hr(e);if(t==null)(e===document.activeElement||!e.contains(document.activeElement))&&((r=n[0])==null||r.focus());else if(t==="first")(i=n[0])==null||i.focus();else if(t==="last")(s=n.at(-1))==null||s.focus();else if(typeof t=="number")(o=n[t])==null||o.focus();else{const a=kg(n,t);a?a.focus():Sf(e,t==="next"?"first":"last")}}function SS(e){return e==null||typeof e=="string"&&e.trim()===""}function wS(){}function Tg(e,t){if(!(Te&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function Pg(e){return e.some(t=>ur(t)?t.type===Ue?!1:t.type!==Pe||Pg(t.children):!0)?e:null}function Ig(e,t){if(!Te||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function _S(e,t){const n=e.clientX,r=e.clientY,i=t.getBoundingClientRect(),s=i.left,o=i.top,a=i.right,l=i.bottom;return n>=s&&n<=a&&r>=o&&r<=l}function fo(){const e=le(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>Jo(e.value)}),t}function CS(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function Bn(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function ES(e){const t={};for(const n in e)t[at(n)]=e[n];return t}function Og(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(n=>{let[r,i]=n;return t.includes(r)?!!i:i!==void 0}))}const wf=["top","bottom"],Rg=["start","end","left","right"];function mo(e,t){let[n,r]=e.split(" ");return r||(r=Gi(wf,n)?"start":Gi(Rg,n)?"top":"center"),{side:wl(n,t),align:wl(r,t)}}function wl(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function Ms(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Ns(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function _l(e){return{side:e.align,align:e.side}}function Cl(e){return Gi(wf,e.side)?"y":"x"}class St{constructor(t){const n=document.body.currentCSSZoom??1,r=t instanceof Element,i=r?1+(1-n)/n:1,{x:s,y:o,width:a,height:l}=r?t.getBoundingClientRect():t;this.x=s*i,this.y=o*i,this.width=a*i,this.height=l*i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function El(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function _f(e){if(Array.isArray(e)){const t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new St({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}else return new St(e)}function Dg(e){if(e===document.documentElement)if(visualViewport){const t=document.body.currentCSSZoom??1;return new St({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale/t,height:visualViewport.height*visualViewport.scale/t})}else return new St({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});else return new St(e)}function Cf(e){const t=new St(e),n=getComputedStyle(e),r=n.transform;if(r){let i,s,o,a,l;if(r.startsWith("matrix3d("))i=r.slice(9,-1).split(/, /),s=Number(i[0]),o=Number(i[5]),a=Number(i[12]),l=Number(i[13]);else if(r.startsWith("matrix("))i=r.slice(7,-1).split(/, /),s=Number(i[0]),o=Number(i[3]),a=Number(i[4]),l=Number(i[5]);else return new St(t);const u=n.transformOrigin,c=t.x-a-(1-s)*parseFloat(u),f=t.y-l-(1-o)*parseFloat(u.slice(u.indexOf(" ")+1)),d=s?t.width/s:e.offsetWidth+1,m=o?t.height/o:e.offsetHeight+1;return new St({x:c,y:f,width:d,height:m})}else return new St(t)}function Pn(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(i=>{r.onfinish=()=>{i(r)}})),r}const Ii=new WeakMap;function Lg(e,t){Object.keys(t).forEach(n=>{if(pf(n)){const r=bf(n),i=Ii.get(e);if(t[n]==null)i==null||i.forEach(s=>{const[o,a]=s;o===r&&(e.removeEventListener(r,a),i.delete(s))});else if(!i||![...i].some(s=>s[0]===r&&s[1]===t[n])){e.addEventListener(r,t[n]);const s=i||new Set;s.add([r,t[n]]),Ii.has(e)||Ii.set(e,s)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function Mg(e,t){Object.keys(t).forEach(n=>{if(pf(n)){const r=bf(n),i=Ii.get(e);i==null||i.forEach(s=>{const[o,a]=s;o===r&&(e.removeEventListener(r,a),i.delete(s))})}else e.removeAttribute(n)})}const Un=2.4,xl=.2126729,Al=.7151522,kl=.072175,Ng=.55,Vg=.58,Fg=.57,Bg=.62,_i=.03,Tl=1.45,$g=5e-4,Hg=1.25,jg=1.25,Pl=.078,Il=12.82051282051282,Ci=.06,Ol=.001;function Rl(e,t){const n=(e.r/255)**Un,r=(e.g/255)**Un,i=(e.b/255)**Un,s=(t.r/255)**Un,o=(t.g/255)**Un,a=(t.b/255)**Un;let l=n*xl+r*Al+i*kl,u=s*xl+o*Al+a*kl;if(l<=_i&&(l+=(_i-l)**Tl),u<=_i&&(u+=(_i-u)**Tl),Math.abs(u-l)<$g)return 0;let c;if(u>l){const f=(u**Ng-l**Vg)*Hg;c=f-Ol?0:f>-Pl?f-f*Il*Ci:f+Ci}return c*100}const Ui=.20689655172413793,Wg=e=>e>Ui**3?Math.cbrt(e):e/(3*Ui**2)+4/29,Gg=e=>e>Ui?e**3:3*Ui**2*(e-4/29);function Ef(e){const t=Wg,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function xf(e){const t=Gg,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const Ug=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],zg=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,Kg=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],qg=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Af(e){const t=Array(3),n=zg,r=Ug;for(let i=0;i<3;++i)t[i]=Math.round(tn(n(r[i][0]*e[0]+r[i][1]*e[1]+r[i][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function na(e){let{r:t,g:n,b:r}=e;const i=[0,0,0],s=qg,o=Kg;t=s(t/255),n=s(n/255),r=s(r/255);for(let a=0;a<3;++a)i[a]=o[a][0]*t+o[a][1]*n+o[a][2]*r;return i}function ho(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function Yg(e){return ho(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const Dl=/^(?(?:rgb|hsl)a?)\((?.+)\)/,Xg={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>Ll({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>Ll({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>Zr({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>Zr({h:e,s:t,v:n,a:r})};function Ht(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&Dl.test(e)){const{groups:t}=e.match(Dl),{fn:n,values:r}=t,i=r.split(/,\s*|\s*\/\s*|\s+/).map((s,o)=>s.endsWith("%")||o>0&&o<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(s)/100:parseFloat(s));return Xg[n](...i)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),Jg(t)}else if(typeof e=="object"){if(Ls(e,["r","g","b"]))return e;if(Ls(e,["h","s","l"]))return Zr(kf(e));if(Ls(e,["h","s","v"]))return Zr(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} -Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Zr(e){const{h:t,s:n,v:r,a:i}=e,s=a=>{const l=(a+t/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},o=[s(5),s(3),s(1)].map(a=>Math.round(a*255));return{r:o[0],g:o[1],b:o[2],a:i}}function Ll(e){return Zr(kf(e))}function kf(e){const{h:t,s:n,l:r,a:i}=e,s=r+n*Math.min(r,1-r),o=s===0?0:2-2*r/s;return{h:t,s:o,v:s,a:i}}function Ei(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function Zg(e){let{r:t,g:n,b:r,a:i}=e;return`#${[Ei(t),Ei(n),Ei(r),i!==void 0?Ei(Math.round(i*255)):""].join("")}`}function Jg(e){e=Qg(e);let[t,n,r,i]=xg(e,2).map(s=>parseInt(s,16));return i=i===void 0?i:i/255,{r:t,g:n,b:r,a:i}}function Qg(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=yl(yl(e,6),8,"F")),e}function ev(e,t){const n=Ef(na(e));return n[0]=n[0]+t*10,Af(xf(n))}function tv(e,t){const n=Ef(na(e));return n[0]=n[0]-t*10,Af(xf(n))}function nv(e){const t=Ht(e);return na(t)[1]}function Tf(e){const t=Math.abs(Rl(Ht(0),Ht(e)));return Math.abs(Rl(Ht(16777215),Ht(e)))>Math.min(t,50)?"#fff":"#000"}function Z(e,t){return n=>Object.keys(e).reduce((r,i)=>{const o=typeof e[i]=="object"&&e[i]!=null&&!Array.isArray(e[i])?e[i]:{type:e[i]};return n&&i in n?r[i]={...o,default:n[i]}:r[i]=o,t&&!r[i].source&&(r[i].source=t),r},{})}const Me=Z({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function $e(e,t){const n=li();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Sn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=$e(e).type;return Ln((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}function rv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$e("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const fr=Symbol.for("vuetify:defaults");function iv(e){return ue(e)}function ra(){const e=ge(fr);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function hs(e,t){const n=ra(),r=ue(e),i=M(()=>{if(ft(t==null?void 0:t.disabled))return n.value;const o=ft(t==null?void 0:t.scoped),a=ft(t==null?void 0:t.reset),l=ft(t==null?void 0:t.root);if(r.value==null&&!(o||a||l))return n.value;let u=Je(r.value,{prev:n.value});if(o)return u;if(a||l){const c=Number(a||1/0);for(let f=0;f<=c&&!(!u||!("prev"in u));f++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=Je(Je(u,{prev:u}),u[l])),u}return u.prev?Je(u.prev,u):u});return et(fr,i),i}function sv(e,t){return e.props&&(typeof e.props[t]<"u"||typeof e.props[Ln(t)]<"u")}function ov(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ra();const r=$e("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const i=M(()=>{var l;return(l=n.value)==null?void 0:l[e._as??t]}),s=new Proxy(e,{get(l,u){var m,g,v,E;const c=Reflect.get(l,u);if(u==="class"||u==="style")return[(m=i.value)==null?void 0:m[u],c].filter(p=>p!=null);if(sv(r.vnode,u))return c;const f=(g=i.value)==null?void 0:g[u];if(f!==void 0)return f;const d=(E=(v=n.value)==null?void 0:v.global)==null?void 0:E[u];return d!==void 0?d:c}}),o=le();_t(()=>{if(i.value){const l=Object.entries(i.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});o.value=l.length?Object.fromEntries(l):void 0}else o.value=void 0});function a(){const l=rv(fr,r);et(fr,M(()=>o.value?Je((l==null?void 0:l.value)??{},o.value):l==null?void 0:l.value))}return{props:s,provideSubDefaults:a}}function pr(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=Z(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return Qo(r,t)},e.props._as=String,e.setup=function(r,i){const s=ra();if(!s.value)return e._setup(r,i);const{props:o,provideSubDefaults:a}=ov(r,r._as??e.name,s),l=e._setup(o,i);return a(),l}}return e}function ve(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?pr:ls)(t)}function xS(e,t){return t.props=e,t}function ia(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return ve()({name:n??vr(at(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...Me()},setup(r,i){let{slots:s}=i;return()=>{var o;return bn(r.tag,{class:[e,r.class],style:r.style},(o=s.default)==null?void 0:o.call(s))}}})}function av(e,t,n,r){if(!n||Bn(e)||Bn(t))return;const i=n.get(e);if(i)i.set(t,r);else{const s=new WeakMap;s.set(t,r),n.set(e,s)}}function lv(e,t,n){var s,o;if(!n||Bn(e)||Bn(t))return null;const r=(s=n.get(e))==null?void 0:s.get(t);if(typeof r=="boolean")return r;const i=(o=n.get(t))==null?void 0:o.get(e);return typeof i=="boolean"?i:null}function Mn(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new WeakMap;if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;const i=lv(e,t,n);return i||(av(e,t,n,!0),r.every(s=>Mn(e[s],t[s],n)))}function Pf(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const go="cubic-bezier(0.4, 0, 0.2, 1)",Ml="cubic-bezier(0.0, 0, 0.2, 1)",Nl="cubic-bezier(0.4, 0, 1, 1)",uv={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1};function cv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?fv(e):sa(e))return e;e=e.parentElement}return document.scrollingElement}function zi(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(sa(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function sa(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e),n=t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight,r=t.overflowX==="scroll"||t.overflowX==="auto"&&e.scrollWidth>e.clientWidth;return n||r}function fv(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function dv(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function Ie(e){const t=$e("useRender");t.render=e}function mv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{leading:!0,trailing:!0},r=0,i=0,s=!1,o=0;function a(){clearTimeout(r),s=!1,o=0}const l=function(){for(var u=arguments.length,c=new Array(u),f=0;f=t?g():n.trailing&&(r=setTimeout(g,t-m)):(s=!0,n.leading&&g())};return l.clear=a,l.immediate=e,l}const Ke=[String,Function,Object,Array],vo=Symbol.for("vuetify:icons"),gs=Z({icon:{type:Ke},tag:{type:[String,Object,Function],required:!0}},"icon"),Vl=ve()({name:"VComponentIcon",props:gs(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return I(e.tag,null,{default:()=>{var i;return[e.icon?I(r,null,null):(i=n.default)==null?void 0:i.call(n)]}})}}}),If=pr({name:"VSvgIcon",inheritAttrs:!1,props:gs(),setup(e,t){let{attrs:n}=t;return()=>I(e.tag,ke(n,{style:null}),{default:()=>[q("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?q("path",{d:r[0],"fill-opacity":r[1]},null):q("path",{d:r},null)):q("path",{d:e.icon},null)])]})}});pr({name:"VLigatureIcon",props:gs(),setup(e){return()=>I(e.tag,null,{default:()=>[e.icon]})}});const Of=pr({name:"VClassIcon",props:gs(),setup(e){return()=>I(e.tag,{class:he(e.icon)},null)}}),hv=e=>{const t=ge(vo);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:M(()=>{var l;const r=Qe(e);if(!r)return{component:Vl};let i=r;if(typeof i=="string"&&(i=i.trim(),i.startsWith("$")&&(i=(l=t.aliases)==null?void 0:l[i.slice(1)])),Array.isArray(i))return{component:If,icon:i};if(typeof i!="string")return{component:Vl,icon:i};const s=Object.keys(t.sets).find(u=>typeof i=="string"&&i.startsWith(`${u}:`)),o=s?i.slice(s.length+1):i;return{component:t.sets[s??t.defaultSet].component,icon:o}})}},gv={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off"},vv={component:e=>bn(Of,{...e,class:"mdi"})};function pv(){return{svg:{component:If},class:{component:Of}}}function yv(e){const t=pv(),n=(e==null?void 0:e.defaultSet)??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=vv),Je({defaultSet:n,sets:t,aliases:{...gv,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}function yr(e,t){let n;function r(){n=or(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}fe(e,i=>{i&&!n?r():i||(n==null||n.stop(),n=void 0)},{immediate:!0}),lt(()=>{n==null||n.stop()})}function Zt(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f=>f,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:f=>f;const s=$e("useProxiedModel"),o=ue(e[t]!==void 0?e[t]:n),a=Ln(t),u=M(a!==t?()=>{var f,d,m,g;return e[t],!!(((f=s.vnode.props)!=null&&f.hasOwnProperty(t)||(d=s.vnode.props)!=null&&d.hasOwnProperty(a))&&((m=s.vnode.props)!=null&&m.hasOwnProperty(`onUpdate:${t}`)||(g=s.vnode.props)!=null&&g.hasOwnProperty(`onUpdate:${a}`)))}:()=>{var f,d;return e[t],!!((f=s.vnode.props)!=null&&f.hasOwnProperty(t)&&((d=s.vnode.props)!=null&&d.hasOwnProperty(`onUpdate:${t}`)))});yr(()=>!u.value,()=>{fe(()=>e[t],f=>{o.value=f})});const c=M({get(){const f=e[t];return r(u.value?f:o.value)},set(f){const d=i(f),m=ee(u.value?e[t]:o.value);m===d||r(m)===f||(o.value=d,s==null||s.emit(`update:${t}`,d))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:o.value}),c}const bv={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",previousYear:"Previous year",nextYear:"Next year",selectMonth:"Select month",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time",hour:"Hour",minute:"Minute",second:"Second"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}",or:"or"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}},Fl="$vuetify.",Bl=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[Number(r)])),Rf=(e,t,n)=>function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;onew Intl.NumberFormat([e.value,t.value],r).format(n)}function Df(e,t){return oa(e,t)(.1).includes(",")?",":"."}function Vs(e,t,n){const r=Zt(e,t,e[t]??n.value);return r.value=e[t]??n.value,fe(n,i=>{e[t]==null&&(r.value=n.value)}),r}function Lf(e){return t=>{const n=Vs(t,"locale",e.current),r=Vs(t,"fallback",e.fallback),i=Vs(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:i,decimalSeparator:G(()=>Df(n,r)),t:Rf(n,r,i),n:oa(n,r),provide:Lf({current:n,fallback:r,messages:i})}}}function Sv(e){const t=le((e==null?void 0:e.locale)??"en"),n=le((e==null?void 0:e.fallback)??"en"),r=ue({en:bv,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,decimalSeparator:G(()=>(e==null?void 0:e.decimalSeparator)??Df(t,n)),t:Rf(t,n,r),n:oa(t,n),provide:Lf({current:t,fallback:n,messages:r})}}const Ki=Symbol.for("vuetify:locale");function wv(e){return e.name!=null}function _v(e){const t=e!=null&&e.adapter&&wv(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:Sv(e),n=xv(t,e);return{...t,...n}}function Cv(){const e=ge(Ki);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function Ev(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function xv(e,t){const n=ue((t==null?void 0:t.rtl)??Ev()),r=M(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:G(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function ci(){const e=ge(Ki);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}function fi(e){const t=e.slice(-2).toUpperCase();switch(!0){case e==="GB-alt-variant":return{firstDay:0,firstWeekSize:4};case e==="001":return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE - KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US - VE VI WS YE ZA ZW`.includes(t):return{firstDay:0,firstWeekSize:1};case`AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV - MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK`.includes(t):return{firstDay:1,firstWeekSize:1};case`AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS - IT LI LT LU MC MQ NL NO PL RE RU SE SK SM VA`.includes(t):return{firstDay:1,firstWeekSize:4};case"AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY".includes(t):return{firstDay:6,firstWeekSize:1};case t==="MV":return{firstDay:5,firstWeekSize:1};case t==="PT":return{firstDay:0,firstWeekSize:4};default:return null}}function Av(e,t,n){var c;const r=[];let i=[];const s=Mf(e),o=Nf(e),a=n??((c=fi(t))==null?void 0:c.firstDay)??0,l=(s.getDay()-a+7)%7,u=(o.getDay()-a+7)%7;for(let f=0;f0&&r.push(i),r}function jr(e,t,n){var s;let r=(n??((s=fi(t))==null?void 0:s.firstDay)??0)%7;[0,1,2,3,4,5,6].includes(r)||(r=0);const i=new Date(e);for(;i.getDay()!==r;)i.setDate(i.getDate()-1);return i}function kv(e,t){var i;const n=new Date(e),r=((((i=fi(t))==null?void 0:i.firstDay)??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function Mf(e){return new Date(e.getFullYear(),e.getMonth(),1)}function Nf(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function Tv(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const Pv=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function Vf(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(Pv.test(e))return Tv(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const $l=new Date(2e3,0,2);function Iv(e,t,n){var i;const r=t??((i=fi(e))==null?void 0:i.firstDay)??0;return gf(7).map(s=>{const o=new Date($l);return o.setDate($l.getDate()+r+s),new Intl.DateTimeFormat(e,{weekday:n??"narrow"}).format(o)})}function Ov(e,t,n,r){const i=Vf(e)??new Date,s=r==null?void 0:r[t];if(typeof s=="function")return s(i,t,n);let o={};switch(t){case"fullDate":o={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const a=i.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(i);return`${a} ${l}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(i.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric"};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,o).format(i).replace(/, /g," ");case"keyboardDateTime12h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,o).format(i).replace(/, /g," ");case"keyboardDateTime24h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,o).format(i).replace(/, /g," ");default:o=s??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(i)}function Rv(e,t){const n=e.toJsDate(t),r=n.getFullYear(),i=bl(String(n.getMonth()+1),2,"0"),s=bl(String(n.getDate()),2,"0");return`${r}-${i}-${s}`}function Dv(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function Lv(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function Mv(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function Nn(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Nv(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function Vv(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function Jr(e){return e.getFullYear()}function Fv(e){return e.getMonth()}function Bv(e,t,n,r){const i=fi(t),s=n??(i==null?void 0:i.firstDay)??0,o=(i==null?void 0:i.firstWeekSize)??1;return r!==void 0?$v(e,t,s,r):Hv(e,t,s,o)}function $v(e,t,n,r){const i=(7+r-n)%7,s=jr(e,t,n),o=Nn(s,6);function a(d){return(7+new Date(d,0,1).getDay()-n)%7}let l=Jr(s);l=r&&a++;const l=new Date(a,0,1),u=o(a),c=u>=r?Nn(l,u-7):Nn(l,u);return 1+Yi(aa(i),Qr(c),"weeks")}function jv(e){return e.getDate()}function Wv(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function Gv(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function Uv(e){return e.getHours()}function zv(e){return e.getMinutes()}function Kv(e){return new Date(e.getFullYear(),0,1)}function qv(e){return new Date(e.getFullYear(),11,31)}function Yv(e,t){return qi(e,t[0])&&Jv(e,t[1])}function Xv(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function qi(e,t){return e.getTime()>t.getTime()}function Zv(e,t){return qi(Qr(e),Qr(t))}function Jv(e,t){return e.getTime(){n.locale=e.locale[r]??r??n.locale}),n}function kS(){const e=ge(Ff);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=Cv();return Bf(e,t)}const TS=["sm","md","lg","xl","xxl"],po=Symbol.for("vuetify:display"),Wl={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},cp=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wl;return Je(Wl,e)};function Gl(e){return Te&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function Ul(e){return Te&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function zl(e){const t=Te&&!e?window.navigator.userAgent:"ssr";function n(g){return!!t.match(g)}const r=n(/android/i),i=n(/iphone|ipad|ipod/i),s=n(/cordova/i),o=n(/electron/i),a=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),f=n(/win/i),d=n(/mac/i),m=n(/linux/i);return{android:r,ios:i,cordova:s,electron:o,chrome:a,edge:l,firefox:u,opera:c,win:f,mac:d,linux:m,touch:_g,ssr:t==="ssr"}}function fp(e,t){const{thresholds:n,mobileBreakpoint:r}=cp(e),i=le(Ul(t)),s=le(zl(t)),o=We({}),a=le(Gl(t));function l(){i.value=Ul(),a.value=Gl()}function u(){l(),s.value=zl()}return _t(()=>{const c=a.value=n.xxl,E=c?"xs":f?"sm":d?"md":m?"lg":g?"xl":"xxl",p=typeof r=="number"?r:n[r],S=a.value{window.removeEventListener("resize",l)},!0)),{...uc(o),update:u,ssr:!!t}}const PS=Z({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function dp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{mobile:null},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();const n=ge(po);if(!n)throw new Error("Could not find Vuetify display injection");const r=M(()=>e.mobile?!0:typeof e.mobileBreakpoint=="number"?n.width.valuet?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:i,mobile:r}}const $f=Symbol.for("vuetify:goto");function Hf(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:uv}}function mp(e){return la(e)??(document.scrollingElement||document.body)}function la(e){return typeof e=="string"?document.querySelector(e):Jo(e)}function Fs(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=la(e),i=0;for(;r;)i+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return i}function hp(e,t){return{rtl:t.isRtl,options:Je(Hf(),e)}}async function Kl(e,t,n,r){const i=n?"scrollLeft":"scrollTop",s=Je((r==null?void 0:r.options)??Hf(),t),o=r==null?void 0:r.rtl.value,a=(typeof e=="number"?e:la(e))??0,l=s.container==="parent"&&a instanceof HTMLElement?a.parentElement:mp(s.container),u=Xr()?s.patterns.instant:typeof s.easing=="function"?s.easing:s.patterns[s.easing];if(!u)throw new TypeError(`Easing function "${s.easing}" not found.`);let c;if(typeof a=="number")c=Fs(a,n,o);else if(c=Fs(a,n,o)-Fs(l,n,o),s.layout){const g=window.getComputedStyle(a).getPropertyValue("--v-layout-top");g&&(c-=parseInt(g,10))}c+=s.offset,c=gp(l,c,!!o,!!n);const f=l[i]??0;if(c===f)return Promise.resolve(c);const d=performance.now();return new Promise(m=>requestAnimationFrame(function g(v){const p=(v-d)/s.duration,S=Math.floor(f+(c-f)*u(tn(p,0,1)));if(l[i]=S,p>=1&&Math.abs(S-l[i])<10)return m(c);if(p>2)return m(l[i]);requestAnimationFrame(g)}))}function IS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=ge($f),{isRtl:n}=ci();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:G(()=>t.rtl.value||n.value)};async function i(s,o){return Kl(s,Je(e,o),!1,r)}return i.horizontal=async(s,o)=>Kl(s,Je(e,o),!0,r),i}function gp(e,t,n,r){const{scrollWidth:i,scrollHeight:s}=e,[o,a]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;return r?n?(l=-(i-o),u=0):(l=0,u=i-o):(l=0,u=s+-a),tn(t,l,u)}const ei=Symbol.for("vuetify:theme"),vt=Z({theme:String},"theme");function ql(){return{defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0}}function vp(){var r,i;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ql();const t=ql();if(!e)return{...t,isDisabled:!0};const n={};for(const[s,o]of Object.entries(e.themes??{})){const a=o.dark||s==="dark"?(r=t.themes)==null?void 0:r.dark:(i=t.themes)==null?void 0:i.light;n[s]=Je(a,o)}return Je(t,{...e,themes:n})}function An(e,t,n,r){e.push(`${Sp(t,r)} { -`,...n.map(i=>` ${i}; -`),`} -`)}function Yl(e,t){const n=e.dark?2:1,r=e.dark?1:2,i=[];for(const[s,o]of Object.entries(e.colors)){const a=Ht(o);i.push(`--${t}theme-${s}: ${a.r},${a.g},${a.b}`),s.startsWith("on-")||i.push(`--${t}theme-${s}-overlay-multiplier: ${nv(o)>.18?n:r}`)}for(const[s,o]of Object.entries(e.variables)){const a=typeof o=="string"&&o.startsWith("#")?Ht(o):void 0,l=a?`${a.r}, ${a.g}, ${a.b}`:void 0;i.push(`--${t}${s}: ${l??o}`)}return i}function pp(e,t,n){const r={};if(n)for(const i of["lighten","darken"]){const s=i==="lighten"?ev:tv;for(const o of gf(n[i],1))r[`${e}-${i}-${o}`]=Zg(s(Ht(t),o))}return r}function yp(e,t){if(!t)return{};let n={};for(const r of t.colors){const i=e[r];i&&(n={...n,...pp(r,i,t)})}return n}function bp(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e[`on-${n}`])continue;const r=`on-${n}`,i=Ht(e[n]);t[r]=Tf(i)}return t}function Sp(e,t){if(!t)return e;const n=`:where(${t})`;return e===":root"?n:`${n} ${e}`}function wp(e,t,n){const r=_p(e,t);r&&(r.innerHTML=n)}function _p(e,t){if(!Te)return null;let n=document.getElementById(e);return n||(n=document.createElement("style"),n.id=e,n.type="text/css",t&&n.setAttribute("nonce",t),document.head.appendChild(n)),n}function Cp(e){const t=vp(e),n=le(t.defaultTheme),r=ue(t.themes),i=le("light"),s=M({get(){return n.value==="system"?i.value:n.value},set(p){n.value=p}}),o=M(()=>{const p={};for(const[S,b]of Object.entries(r.value)){const _={...b.colors,...yp(b.colors,t.variations)};p[S]={...b,colors:{..._,...bp(_)}}}return p}),a=G(()=>o.value[s.value]),l=G(()=>n.value==="system"),u=M(()=>{var O;const p=[],S=t.unimportant?"":" !important",b=t.scoped?t.prefix:"";(O=a.value)!=null&&O.dark&&An(p,":root",["color-scheme: dark"],t.scope),An(p,":root",Yl(a.value,t.prefix),t.scope);for(const[A,D]of Object.entries(o.value))An(p,`.${t.prefix}theme--${A}`,[`color-scheme: ${D.dark?"dark":"normal"}`,...Yl(D,t.prefix)],t.scope);if(t.utilities){const A=[],D=[],k=new Set(Object.values(o.value).flatMap(T=>Object.keys(T.colors)));for(const T of k)T.startsWith("on-")?An(D,`.${T}`,[`color: rgb(var(--${t.prefix}theme-${T}))${S}`],t.scope):(An(A,`.${b}bg-${T}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${T}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${T}))${S}`,`color: rgb(var(--${t.prefix}theme-on-${T}))${S}`],t.scope),An(D,`.${b}text-${T}`,[`color: rgb(var(--${t.prefix}theme-${T}))${S}`],t.scope),An(D,`.${b}border-${T}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${T})`],t.scope));t.layers?p.push(`@layer background { -`,...A.map(T=>` ${T}`),`} -`,`@layer foreground { -`,...D.map(T=>` ${T}`),`} -`):p.push(...A,...D)}let _=p.map((A,D)=>D===0?A:` ${A}`).join("");return t.layers&&(_=`@layer vuetify.theme { -`+p.map(A=>` ${A}`).join("")+` -}`),_}),c=G(()=>t.isDisabled?void 0:`${t.prefix}theme--${s.value}`),f=G(()=>Object.keys(o.value));if(df){let S=function(){i.value=p.matches?"dark":"light"};const p=window.matchMedia("(prefers-color-scheme: dark)");S(),p.addEventListener("change",S,{passive:!0}),Gu()&<(()=>{p.removeEventListener("change",S)})}function d(p){if(t.isDisabled)return;const S=p._context.provides.usehead;if(S){let b=function(){return{style:[{textContent:u.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}};if(S.push){const _=S.push(b);Te&&fe(u,()=>{_.patch(b)})}else Te?(S.addHeadObjs(G(b)),_t(()=>S.updateDOM())):S.addHeadObjs(b())}else{let b=function(){wp(t.stylesheetId,t.cspNonce,u.value)};Te?fe(u,b,{immediate:!0}):b()}}function m(p){p!=="system"&&!f.value.includes(p)||(s.value=p)}function g(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f.value;const S=p.indexOf(s.value),b=S===-1?0:(S+1)%p.length;m(p[b])}function v(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["light","dark"];g(p)}const E=new Proxy(s,{get(p,S){return Reflect.get(p,S)},set(p,S,b){return S==="value"&&ff(`theme.global.name.value = ${b}`,`theme.change('${b}')`),Reflect.set(p,S,b)}});return{install:d,change:m,cycle:g,toggle:v,isDisabled:t.isDisabled,isSystem:l,name:s,themes:r,current:a,computedThemes:o,prefix:t.prefix,themeClasses:c,styles:u,global:{name:E,current:a}}}function Et(e){$e("provideTheme");const t=ge(ei,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=G(()=>e.theme??t.name.value),r=G(()=>t.themes.value[n.value]),i=G(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`),s={...t,name:n,current:r,themeClasses:i};return et(ei,s),s}function jf(){$e("useTheme");const e=ge(ei,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function ua(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=fo(),r=ue();if(Te){const i=new ResizeObserver(s=>{e==null||e(s,i),s.length&&(t==="content"?r.value=s[0].contentRect:r.value=s[0].target.getBoundingClientRect())});Ct(()=>{i.disconnect()}),fe(()=>n.el,(s,o)=>{o&&(i.unobserve(o),r.value=void 0),s&&i.observe(s)},{flush:"post"})}return{resizeRef:n,contentRect:ar(r)}}const ti=Symbol.for("vuetify:layout"),Wf=Symbol.for("vuetify:layout-item"),Xl=1e3,Ep=Z({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),OS=Z({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function xp(){const e=ge(ti);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function RS(e){const t=ge(ti);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${xc()}`,r=$e("useLayoutItem");et(Wf,{id:n});const i=le(!1);Tc(()=>i.value=!0),kc(()=>i.value=!1);const{layoutItemStyles:s,layoutItemScrimStyles:o}=t.register(r,{...e,active:M(()=>i.value?!1:e.active.value),id:n});return Ct(()=>t.unregister(n)),{layoutItemStyles:s,layoutRect:t.layoutRect,layoutItemScrimStyles:o}}const Ap=(e,t,n,r)=>{let i={top:0,left:0,right:0,bottom:0};const s=[{id:"",layer:{...i}}];for(const o of e){const a=t.get(o),l=n.get(o),u=r.get(o);if(!a||!l||!u)continue;const c={...i,[a.value]:parseInt(i[a.value],10)+(u.value?parseInt(l.value,10):0)};s.push({id:o,layer:c}),i=c}return s};function kp(e){const t=ge(ti,null),n=M(()=>t?t.rootZIndex.value-100:Xl),r=ue([]),i=We(new Map),s=We(new Map),o=We(new Map),a=We(new Map),l=We(new Map),{resizeRef:u,contentRect:c}=ua(),f=M(()=>{const A=new Map,D=e.overlaps??[];for(const k of D.filter(T=>T.includes(":"))){const[T,H]=k.split(":");if(!r.value.includes(T)||!r.value.includes(H))continue;const B=i.get(T),x=i.get(H),N=s.get(T),j=s.get(H);!B||!x||!N||!j||(A.set(H,{position:B.value,amount:parseInt(N.value,10)}),A.set(T,{position:x.value,amount:-parseInt(j.value,10)}))}return A}),d=M(()=>{const A=[...new Set([...o.values()].map(k=>k.value))].sort((k,T)=>k-T),D=[];for(const k of A){const T=r.value.filter(H=>{var B;return((B=o.get(H))==null?void 0:B.value)===k});D.push(...T)}return Ap(D,i,s,a)}),m=M(()=>!Array.from(l.values()).some(A=>A.value)),g=M(()=>d.value[d.value.length-1].layer),v=G(()=>({"--v-layout-left":se(g.value.left),"--v-layout-right":se(g.value.right),"--v-layout-top":se(g.value.top),"--v-layout-bottom":se(g.value.bottom),...m.value?void 0:{transition:"none"}})),E=M(()=>d.value.slice(1).map((A,D)=>{let{id:k}=A;const{layer:T}=d.value[D],H=s.get(k),B=i.get(k);return{id:k,...T,size:Number(H.value),position:B.value}})),p=A=>E.value.find(D=>D.id===A),S=$e("createLayout"),b=le(!1);yn(()=>{b.value=!0}),et(ti,{register:(A,D)=>{let{id:k,order:T,position:H,layoutSize:B,elementSize:x,active:N,disableTransitions:j,absolute:Y}=D;o.set(k,T),i.set(k,H),s.set(k,B),a.set(k,N),j&&l.set(k,j);const J=Zn(Wf,S==null?void 0:S.vnode).indexOf(A);J>-1?r.value.splice(J,0,k):r.value.push(k);const te=M(()=>E.value.findIndex(Se=>Se.id===k)),Oe=M(()=>n.value+d.value.length*2-te.value*2),me=M(()=>{const Se=H.value==="left"||H.value==="right",Ne=H.value==="right",Ge=H.value==="bottom",nt=x.value??B.value,He=nt===0?"%":"px",w={[H.value]:0,zIndex:Oe.value,transform:`translate${Se?"X":"Y"}(${(N.value?0:-(nt===0?100:nt))*(Ne||Ge?-1:1)}${He})`,position:Y.value||n.value!==Xl?"absolute":"fixed",...m.value?void 0:{transition:"none"}};if(!b.value)return w;const F=E.value[te.value],$=f.value.get(k);return $&&(F[$.position]+=$.amount),{...w,height:Se?`calc(100% - ${F.top}px - ${F.bottom}px)`:x.value?`${x.value}px`:void 0,left:Ne?void 0:`${F.left}px`,right:Ne?`${F.right}px`:void 0,top:H.value!=="bottom"?`${F.top}px`:void 0,bottom:H.value!=="top"?`${F.bottom}px`:void 0,width:Se?x.value?`${x.value}px`:void 0:`calc(100% - ${F.left}px - ${F.right}px)`}}),Ae=M(()=>({zIndex:Oe.value-1}));return{layoutItemStyles:me,layoutItemScrimStyles:Ae,zIndex:Oe}},unregister:A=>{o.delete(A),i.delete(A),s.delete(A),a.delete(A),l.delete(A),r.value=r.value.filter(D=>D!==A)},mainRect:g,mainStyles:v,getLayoutItem:p,items:E,layoutRect:c,rootZIndex:n});const _=G(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),O=G(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:_,layoutStyles:O,getLayoutItem:p,items:E,layoutRect:c,layoutRef:u}}function Gf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=Je(t,n),{aliases:i={},components:s={},directives:o={}}=r,a=or();return a.run(()=>{const l=iv(r.defaults),u=fp(r.display,r.ssr),c=Cp(r.theme),f=yv(r.icons),d=_v(r.locale),m=lp(r.date,d),g=hp(r.goTo,d);function v(p){for(const b in o)p.directive(b,o[b]);for(const b in s)p.component(b,s[b]);for(const b in i)p.component(b,pr({...i[b],name:b,aliasName:i[b].name}));const S=or();if(S.run(()=>{c.install(p)}),p.onUnmount(()=>S.stop()),p.provide(fr,l),p.provide(po,u),p.provide(ei,c),p.provide(vo,f),p.provide(Ki,d),p.provide(Ff,m.options),p.provide(jl,m.instance),p.provide($f,g),Te&&r.ssr)if(p.$nuxt)p.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:b}=p;p.mount=function(){const _=b(...arguments);return qe(()=>u.update()),p.mount=b,_}}p.mixin({computed:{$vuetify(){return We({defaults:zn.call(this,fr),display:zn.call(this,po),theme:zn.call(this,ei),icons:zn.call(this,vo),locale:zn.call(this,Ki),date:zn.call(this,jl)})}}})}function E(){a.stop()}return{install:v,unmount:E,defaults:l,display:u,theme:c,icons:f,locale:d,date:m,goTo:g}})}const Tp="3.11.2";Gf.version=Tp;function zn(e){var r,i;const t=this.$,n=((r=t.parent)==null?void 0:r.provides)??((i=t.vnode.appContext)==null?void 0:i.provides);if(n&&e in n)return n[e]}const Pp=Gf({theme:{defaultTheme:"dark"}});/*! - * pinia v3.0.4 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */const Ip=Symbol();var Zl;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Zl||(Zl={}));function Uf(){const e=or(!0),t=e.run(()=>ue({}));let n=[],r=[];const i=oc({install(s){i._a=s,s.provide(Ip,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Op=Uf();/*! - * vue-router v4.6.3 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */const Yn=typeof document<"u";function zf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Rp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&zf(e.default)}const pe=Object.assign;function Bs(e,t){const n={};for(const r in t){const i=t[r];n[r]=Pt(i)?i.map(e):e(i)}return n}const Wr=()=>{},Pt=Array.isArray;function Jl(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Kf=/#/g,Dp=/&/g,Lp=/\//g,Mp=/=/g,Np=/\?/g,qf=/\+/g,Vp=/%5B/g,Fp=/%5D/g,Yf=/%5E/g,Bp=/%60/g,Xf=/%7B/g,$p=/%7C/g,Zf=/%7D/g,Hp=/%20/g;function ca(e){return e==null?"":encodeURI(""+e).replace($p,"|").replace(Vp,"[").replace(Fp,"]")}function jp(e){return ca(e).replace(Xf,"{").replace(Zf,"}").replace(Yf,"^")}function yo(e){return ca(e).replace(qf,"%2B").replace(Hp,"+").replace(Kf,"%23").replace(Dp,"%26").replace(Bp,"`").replace(Xf,"{").replace(Zf,"}").replace(Yf,"^")}function Wp(e){return yo(e).replace(Mp,"%3D")}function Gp(e){return ca(e).replace(Kf,"%23").replace(Np,"%3F")}function Up(e){return Gp(e).replace(Lp,"%2F")}function ni(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const zp=/\/$/,Kp=e=>e.replace(zp,"");function $s(e,t,n="/"){let r,i={},s="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),s=t.slice(l,a>0?a:t.length),i=e(s.slice(1))),a>=0&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=Zp(r??t,n),{fullPath:r+s+o,path:r,query:i,hash:ni(o)}}function qp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ql(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Yp(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&dr(t.matched[r],n.matched[i])&&Jf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function dr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Jf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Xp(e[n],t[n]))return!1;return!0}function Xp(e,t){return Pt(e)?eu(e,t):Pt(t)?eu(t,e):e===t}function eu(e,t){return Pt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Zp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,o,a;for(o=0;o1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o).join("/")}const ln={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let bo=function(e){return e.pop="pop",e.push="push",e}({}),Hs=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Jp(e){if(!e)if(Yn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Kp(e)}const Qp=/^[^#]+#/;function ey(e,t){return e.replace(Qp,"#")+t}function ty(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const vs=()=>({left:window.scrollX,top:window.scrollY});function ny(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=ty(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function tu(e,t){return(history.state?history.state.position-t:-1)+e}const So=new Map;function ry(e,t){So.set(e,t)}function iy(e){const t=So.get(e);return So.delete(e),t}function sy(e){return typeof e=="string"||e&&typeof e=="object"}function Qf(e){return typeof e=="string"||typeof e=="symbol"}let De=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const ed=Symbol("");De.MATCHER_NOT_FOUND+"",De.NAVIGATION_GUARD_REDIRECT+"",De.NAVIGATION_ABORTED+"",De.NAVIGATION_CANCELLED+"",De.NAVIGATION_DUPLICATED+"";function mr(e,t){return pe(new Error,{type:e,[ed]:!0},t)}function zt(e,t){return e instanceof Error&&ed in e&&(t==null||!!(e.type&t))}const oy=["params","query","hash"];function ay(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of oy)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function ly(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&yo(i)):[r&&yo(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function uy(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Pt(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const cy=Symbol(""),ru=Symbol(""),ps=Symbol(""),fa=Symbol(""),wo=Symbol("");function Tr(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function mn(e,t,n,r,i,s=o=>o()){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(mr(De.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?l(d):sy(d)?l(mr(De.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(o&&r.enterCallbacks[i]===o&&typeof d=="function"&&o.push(d),a())},c=s(()=>e.call(r&&r.instances[i],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function js(e,t,n,r,i=s=>s()){const s=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(zf(l)){const u=(l.__vccOpts||l)[t];u&&s.push(mn(u,n,r,o,a,i))}else{let u=l();s.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=Rp(c)?c.default:c;o.mods[a]=c,o.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&mn(d,n,r,o,a,i)()}))}}return s}function fy(e,t){const n=[],r=[],i=[],s=Math.max(t.matched.length,e.matched.length);for(let o=0;odr(u,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(u=>dr(u,l))||i.push(l))}return[n,r,i]}/*! - * vue-router v4.6.3 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let dy=()=>location.protocol+"//"+location.host;function td(e,t){const{pathname:n,search:r,hash:i}=t,s=e.indexOf("#");if(s>-1){let o=i.includes(e.slice(s))?e.slice(s).length:1,a=i.slice(o);return a[0]!=="/"&&(a="/"+a),Ql(a,"")}return Ql(n,e)+r+i}function my(e,t,n,r){let i=[],s=[],o=null;const a=({state:d})=>{const m=td(e,location),g=n.value,v=t.value;let E=0;if(d){if(n.value=m,t.value=d,o&&o===g){o=null;return}E=v?d.position-v.position:0}else r(m);i.forEach(p=>{p(n.value,g,{delta:E,type:bo.pop,direction:E?E>0?Hs.forward:Hs.back:Hs.unknown})})};function l(){o=n.value}function u(d){i.push(d);const m=()=>{const g=i.indexOf(d);g>-1&&i.splice(g,1)};return s.push(m),m}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(pe({},d.state,{scroll:vs()}),"")}}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function iu(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?vs():null}}function hy(e){const{history:t,location:n}=window,r={value:td(e,n)},i={value:t.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:dy()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),i.value=u}catch(m){console.error(m),n[c?"replace":"assign"](d)}}function o(l,u){s(l,pe({},t.state,iu(i.value.back,l,i.value.forward,!0),u,{position:i.value.position}),!0),r.value=l}function a(l,u){const c=pe({},i.value,t.state,{forward:l,scroll:vs()});s(c.current,c,!0),s(l,pe({},iu(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:i,push:a,replace:o}}function gy(e){e=Jp(e);const t=hy(e),n=my(e,t.state,t.location,t.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=pe({location:"",base:e,go:r,createHref:ey.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let On=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Ve=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Ve||{});const vy={type:On.Static,value:""},py=/[a-zA-Z0-9_]/;function yy(e){if(!e)return[[]];if(e==="/")return[[vy]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=Ve.Static,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,l,u="",c="";function f(){u&&(n===Ve.Static?s.push({type:On.Static,value:u}):n===Ve.Param||n===Ve.ParamRegExp||n===Ve.ParamRegExpEnd?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:On.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;at.length?t.length===1&&t[0]===st.Static+st.Segment?1:-1:0}function nd(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const Cy={strict:!1,end:!0,sensitive:!1};function Ey(e,t,n){const r=wy(yy(e.path),n),i=pe(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function xy(e,t){const n=[],r=new Map;t=Jl(Cy,t);function i(f){return r.get(f)}function s(f,d,m){const g=!m,v=lu(f);v.aliasOf=m&&m.record;const E=Jl(t,f),p=[v];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const O of _)p.push(lu(pe({},v,{components:m?m.record.components:v.components,path:O,aliasOf:m?m.record:v})))}let S,b;for(const _ of p){const{path:O}=_;if(d&&O[0]!=="/"){const A=d.record.path,D=A[A.length-1]==="/"?"":"/";_.path=d.record.path+(O&&D+O)}if(S=Ey(_,d,E),m?m.alias.push(S):(b=b||S,b!==S&&b.alias.push(S),g&&f.name&&!uu(S)&&o(f.name)),rd(S)&&l(S),v.children){const A=v.children;for(let D=0;D{o(b)}:Wr}function o(f){if(Qf(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return n}function l(f){const d=Ty(f,n);n.splice(d,0,f),f.record.name&&!uu(f)&&r.set(f.record.name,f)}function u(f,d){let m,g={},v,E;if("name"in f&&f.name){if(m=r.get(f.name),!m)throw mr(De.MATCHER_NOT_FOUND,{location:f});E=m.record.name,g=pe(au(d.params,m.keys.filter(b=>!b.optional).concat(m.parent?m.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&au(f.params,m.keys.map(b=>b.name))),v=m.stringify(g)}else if(f.path!=null)v=f.path,m=n.find(b=>b.re.test(v)),m&&(g=m.parse(v),E=m.record.name);else{if(m=d.name?r.get(d.name):n.find(b=>b.re.test(d.path)),!m)throw mr(De.MATCHER_NOT_FOUND,{location:f,currentLocation:d});E=m.record.name,g=pe({},d.params,f.params),v=m.stringify(g)}const p=[];let S=m;for(;S;)p.unshift(S.record),S=S.parent;return{name:E,path:v,params:g,matched:p,meta:ky(p)}}e.forEach(f=>s(f));function c(){n.length=0,r.clear()}return{addRoute:s,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:a,getRecordMatcher:i}}function au(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function lu(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ay(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ay(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function uu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ky(e){return e.reduce((t,n)=>pe(t,n.meta),{})}function Ty(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;nd(e,t[s])<0?r=s:n=s+1}const i=Py(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Py(e){let t=e;for(;t=t.parent;)if(rd(t)&&nd(e,t)===0)return t}function rd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function cu(e){const t=ge(ps),n=ge(fa),r=M(()=>{const l=ft(e.to);return t.resolve(l)}),i=M(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(dr.bind(null,c));if(d>-1)return d;const m=fu(l[u-2]);return u>1&&fu(c)===m&&f[f.length-1].path!==m?f.findIndex(dr.bind(null,l[u-2])):d}),s=M(()=>i.value>-1&&Ly(n.params,r.value.params)),o=M(()=>i.value>-1&&i.value===n.matched.length-1&&Jf(n.params,r.value.params));function a(l={}){if(Dy(l)){const u=t[ft(e.replace)?"replace":"push"](ft(e.to)).catch(Wr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:M(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}function Iy(e){return e.length===1?e[0]:e}const Oy=ls({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:cu,setup(e,{slots:t}){const n=We(cu(e)),{options:r}=ge(ps),i=M(()=>({[du(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[du(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&Iy(t.default(n));return e.custom?s:bn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),Ry=Oy;function Dy(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ly(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Pt(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function fu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const du=(e,t,n)=>e??t??n,My=ls({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ge(wo),i=M(()=>e.route||r.value),s=ge(ru,0),o=M(()=>{let u=ft(s);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=M(()=>i.value.matched[o.value]);et(ru,M(()=>o.value+1)),et(cy,a),et(wo,i);const l=ue();return fe(()=>[l.value,a.value,e.name],([u,c,f],[d,m,g])=>{c&&(c.instances[f]=u,m&&m!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=m.leaveGuards),c.updateGuards.size||(c.updateGuards=m.updateGuards))),u&&c&&(!m||!dr(c,m)||!d)&&(c.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return mu(n.default,{Component:d,route:u});const m=f.props[c],g=m?m===!0?u.params:typeof m=="function"?m(u):m:null,E=bn(d,pe({},g,t,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return mu(n.default,{Component:E,route:u})||E}}});function mu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ny=My;function Vy(e){const t=xy(e.routes,e),n=e.parseQuery||ly,r=e.stringifyQuery||nu,i=e.history,s=Tr(),o=Tr(),a=Tr(),l=le(ln);let u=ln;Yn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bs.bind(null,w=>""+w),f=Bs.bind(null,Up),d=Bs.bind(null,ni);function m(w,F){let $,X;return Qf(w)?($=t.getRecordMatcher(w),X=F):X=w,t.addRoute(X,$)}function g(w){const F=t.getRecordMatcher(w);F&&t.removeRoute(F)}function v(){return t.getRoutes().map(w=>w.record)}function E(w){return!!t.getRecordMatcher(w)}function p(w,F){if(F=pe({},F||l.value),typeof w=="string"){const C=$s(n,w,F.path),P=t.resolve({path:C.path},F),L=i.createHref(C.fullPath);return pe(C,P,{params:d(P.params),hash:ni(C.hash),redirectedFrom:void 0,href:L})}let $;if(w.path!=null)$=pe({},w,{path:$s(n,w.path,F.path).path});else{const C=pe({},w.params);for(const P in C)C[P]==null&&delete C[P];$=pe({},w,{params:f(C)}),F.params=f(F.params)}const X=t.resolve($,F),ce=w.hash||"";X.params=c(d(X.params));const h=qp(r,pe({},w,{hash:jp(ce),path:X.path})),y=i.createHref(h);return pe({fullPath:h,hash:ce,query:r===nu?uy(w.query):w.query||{}},X,{redirectedFrom:void 0,href:y})}function S(w){return typeof w=="string"?$s(n,w,l.value.path):pe({},w)}function b(w,F){if(u!==w)return mr(De.NAVIGATION_CANCELLED,{from:F,to:w})}function _(w){return D(w)}function O(w){return _(pe(S(w),{replace:!0}))}function A(w,F){const $=w.matched[w.matched.length-1];if($&&$.redirect){const{redirect:X}=$;let ce=typeof X=="function"?X(w,F):X;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=S(ce):{path:ce},ce.params={}),pe({query:w.query,hash:w.hash,params:ce.path!=null?{}:w.params},ce)}}function D(w,F){const $=u=p(w),X=l.value,ce=w.state,h=w.force,y=w.replace===!0,C=A($,X);if(C)return D(pe(S(C),{state:typeof C=="object"?pe({},ce,C.state):ce,force:h,replace:y}),F||$);const P=$;P.redirectedFrom=F;let L;return!h&&Yp(r,X,$)&&(L=mr(De.NAVIGATION_DUPLICATED,{to:P,from:X}),Ae(X,X,!0,!1)),(L?Promise.resolve(L):H(P,X)).catch(R=>zt(R)?zt(R,De.NAVIGATION_GUARD_REDIRECT)?R:me(R):te(R,P,X)).then(R=>{if(R){if(zt(R,De.NAVIGATION_GUARD_REDIRECT))return D(pe({replace:y},S(R.to),{state:typeof R.to=="object"?pe({},ce,R.to.state):ce,force:h}),F||P)}else R=x(P,X,!0,y,ce);return B(P,X,R),R})}function k(w,F){const $=b(w,F);return $?Promise.reject($):Promise.resolve()}function T(w){const F=Ge.values().next().value;return F&&typeof F.runWithContext=="function"?F.runWithContext(w):w()}function H(w,F){let $;const[X,ce,h]=fy(w,F);$=js(X.reverse(),"beforeRouteLeave",w,F);for(const C of X)C.leaveGuards.forEach(P=>{$.push(mn(P,w,F))});const y=k.bind(null,w,F);return $.push(y),He($).then(()=>{$=[];for(const C of s.list())$.push(mn(C,w,F));return $.push(y),He($)}).then(()=>{$=js(ce,"beforeRouteUpdate",w,F);for(const C of ce)C.updateGuards.forEach(P=>{$.push(mn(P,w,F))});return $.push(y),He($)}).then(()=>{$=[];for(const C of h)if(C.beforeEnter)if(Pt(C.beforeEnter))for(const P of C.beforeEnter)$.push(mn(P,w,F));else $.push(mn(C.beforeEnter,w,F));return $.push(y),He($)}).then(()=>(w.matched.forEach(C=>C.enterCallbacks={}),$=js(h,"beforeRouteEnter",w,F,T),$.push(y),He($))).then(()=>{$=[];for(const C of o.list())$.push(mn(C,w,F));return $.push(y),He($)}).catch(C=>zt(C,De.NAVIGATION_CANCELLED)?C:Promise.reject(C))}function B(w,F,$){a.list().forEach(X=>T(()=>X(w,F,$)))}function x(w,F,$,X,ce){const h=b(w,F);if(h)return h;const y=F===ln,C=Yn?history.state:{};$&&(X||y?i.replace(w.fullPath,pe({scroll:y&&C&&C.scroll},ce)):i.push(w.fullPath,ce)),l.value=w,Ae(w,F,$,y),me()}let N;function j(){N||(N=i.listen((w,F,$)=>{if(!nt.listening)return;const X=p(w),ce=A(X,nt.currentRoute.value);if(ce){D(pe(ce,{replace:!0,force:!0}),X).catch(Wr);return}u=X;const h=l.value;Yn&&ry(tu(h.fullPath,$.delta),vs()),H(X,h).catch(y=>zt(y,De.NAVIGATION_ABORTED|De.NAVIGATION_CANCELLED)?y:zt(y,De.NAVIGATION_GUARD_REDIRECT)?(D(pe(S(y.to),{force:!0}),X).then(C=>{zt(C,De.NAVIGATION_ABORTED|De.NAVIGATION_DUPLICATED)&&!$.delta&&$.type===bo.pop&&i.go(-1,!1)}).catch(Wr),Promise.reject()):($.delta&&i.go(-$.delta,!1),te(y,X,h))).then(y=>{y=y||x(X,h,!1),y&&($.delta&&!zt(y,De.NAVIGATION_CANCELLED)?i.go(-$.delta,!1):$.type===bo.pop&&zt(y,De.NAVIGATION_ABORTED|De.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),B(X,h,y)}).catch(Wr)}))}let Y=Tr(),ie=Tr(),J;function te(w,F,$){me(w);const X=ie.list();return X.length?X.forEach(ce=>ce(w,F,$)):console.error(w),Promise.reject(w)}function Oe(){return J&&l.value!==ln?Promise.resolve():new Promise((w,F)=>{Y.add([w,F])})}function me(w){return J||(J=!w,j(),Y.list().forEach(([F,$])=>w?$(w):F()),Y.reset()),w}function Ae(w,F,$,X){const{scrollBehavior:ce}=e;if(!Yn||!ce)return Promise.resolve();const h=!$&&iy(tu(w.fullPath,0))||(X||!$)&&history.state&&history.state.scroll||null;return qe().then(()=>ce(w,F,h)).then(y=>y&&ny(y)).catch(y=>te(y,w,F))}const Se=w=>i.go(w);let Ne;const Ge=new Set,nt={currentRoute:l,listening:!0,addRoute:m,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:v,resolve:p,options:e,push:_,replace:O,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:ie.add,isReady:Oe,install(w){w.component("RouterLink",Ry),w.component("RouterView",Ny),w.config.globalProperties.$router=nt,Object.defineProperty(w.config.globalProperties,"$route",{enumerable:!0,get:()=>ft(l)}),Yn&&!Ne&&l.value===ln&&(Ne=!0,_(i.location).catch(X=>{}));const F={};for(const X in ln)Object.defineProperty(F,X,{get:()=>l.value[X],enumerable:!0});w.provide(ps,nt),w.provide(fa,sc(F)),w.provide(wo,l);const $=w.unmount;Ge.add(w),w.unmount=function(){Ge.delete(w),Ge.size<1&&(u=ln,N&&N(),N=null,l.value=ln,Ne=!1,J=!1),$()}}};function He(w){return w.reduce((F,$)=>F.then(()=>T($)),Promise.resolve())}return nt}function DS(){return ge(ps)}function LS(e){return ge(fa)}const Fy=e=>{const t={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>Fe(()=>import("./default-D5AHDwKc.js"),__vite__mapDeps([0,1]),import.meta.url)})).forEach(([i,s])=>{let o=i.replace("/src/layouts/","").replace(".vue","");t[o]=s});function r(i,s=!0){return i.map(o=>{var a,l,u,c,f,d;if(((a=o.children)==null?void 0:a.length)>0&&(o.children=r(o.children,!1)),s){if(!o.component&&((l=o.children)==null?void 0:l.find(g=>{var v;return(g.path===""||g.path==="/")&&((v=g.meta)==null?void 0:v.isLayout)})))return o;if(((u=o.meta)==null?void 0:u.layout)!==!1)return{path:o.path,component:t[((c=o.meta)==null?void 0:c.layout)||"default"],children:o.path==="/"?[o]:[{...o,path:""}],meta:{isLayout:!0}}}return(f=o.meta)!=null&&f.layout?{path:o.path,component:t[(d=o.meta)==null?void 0:d.layout],children:[{...o,path:""}],meta:{isLayout:!0}}:o})}return r(e)},By=[{path:"/",name:"/",component:()=>Fe(()=>import("./index-C1_Nmbyl.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41]),import.meta.url)},{path:"/404",name:"/404",component:()=>Fe(()=>import("./404-Be-X22ct.js"),__vite__mapDeps([42,11,25]),import.meta.url)},{path:"/authorize",name:"/authorize",component:()=>Fe(()=>import("./authorize-CNmNl-fx.js"),__vite__mapDeps([43,11,25]),import.meta.url)},{path:"/CacheManagement",name:"/CacheManagement",component:()=>Fe(()=>import("./CacheManagement-BKG189LA.js"),__vite__mapDeps([44,37,38,39,40,7,8,45,46,11,25]),import.meta.url)},{path:"/cses2wakeup",name:"/cses2wakeup",component:()=>Fe(()=>import("./cses2wakeup-DxIOWJyY.js"),__vite__mapDeps([47,11,37,38,48,49,7,8,5,6,19,3,4,20,27,16,17,28,45,46,50,12,13,14,15,18,51,29,30,25,52]),import.meta.url)},{path:"/DataMigration",name:"/DataMigration",component:()=>Fe(()=>import("./DataMigration-DHME7fzg.js"),__vite__mapDeps([53,22,11,3,4,16,17,37,38,50,12,13,14,15,7,8,18,51,45,46,25,54]),import.meta.url)},{path:"/debug",name:"/debug",component:()=>Fe(()=>import("./debug-Ba11pYfs.js"),__vite__mapDeps([55,25,56]),import.meta.url)},{path:"/debug-init",name:"/debug-init",component:()=>Fe(()=>import("./debug-init-DrX-sqV-.js"),__vite__mapDeps([57,21,22,11,26,3,4,25]),import.meta.url)},{path:"/debug-socket",name:"/debug-socket",component:()=>Fe(()=>import("./debug-socket-B-loaBFa.js"),__vite__mapDeps([58,9,10,11,7,8,3,4,19,20,25]),import.meta.url)},{path:"/exam-editor",children:[{path:":id",name:"/exam-editor/[id]",component:()=>Fe(()=>import("./_id_-COPsOi2_.js"),__vite__mapDeps([59,60,21,22,37,38,45,46,5,6,7,8,11,3,4,19,20,13,14,31,32,33,34,61,23,24,25]),import.meta.url)}]},{path:"/exam-player",name:"/exam-player",component:()=>Fe(()=>import("./exam-player-BfcrcIG9.js"),__vite__mapDeps([62,21,22,37,38,45,46,63]),import.meta.url)},{path:"/examschedule",name:"/examschedule",component:()=>Fe(()=>import("./examschedule-BXzrB8yd.js"),__vite__mapDeps([64,60,21,22,37,38,45,46,5,6,7,8,11,3,4,19,20,13,14,31,32,33,34,61,25,65]),import.meta.url)},{path:"/list",children:[{path:"",name:"/list/",component:()=>Fe(()=>import("./index-CmDQAEe_.js"),__vite__mapDeps([66,21,22,23,24,3,4,25]),import.meta.url)},{path:":id",name:"/list/[id]",component:()=>Fe(()=>import("./_id_-BSf-7VSQ.js"),__vite__mapDeps([67,21,22,23,24,3,4,15,16,17,7,8,19,20,27,28,25]),import.meta.url)}]},{path:"/settings",name:"/settings",component:()=>Fe(()=>import("./settings-BD-rA2t3.js"),__vite__mapDeps([68,35,23,24,36,7,8,27,3,4,16,17,28,12,13,14,15,18,21,22,37,38,11,25,26,29,30,39,40,50,51,19,20,32,33,48,49,69]),import.meta.url)},{path:"/socket-debugger",name:"/socket-debugger",component:()=>Fe(()=>import("./socket-debugger-hynQ1PJ3.js"),__vite__mapDeps([70,9,11,7,8,3,4,19,20,27,16,17,28,37,38,25,71]),import.meta.url)}],da=Vy({history:gy("./"),routes:Fy(By)});da.onError((e,t)=>{var n,r;(r=(n=e==null?void 0:e.message)==null?void 0:n.includes)!=null&&r.call(n,"Failed to fetch dynamically imported module")?localStorage.getItem("vuetify:dynamic-reload")?console.error("Dynamic import error, reloading page did not fix it",e):(console.log("Reloading page to fix dynamic import error"),localStorage.setItem("vuetify:dynamic-reload","true"),location.assign(t.fullPath)):console.error(e)});da.isReady().then(()=>{localStorage.removeItem("vuetify:dynamic-reload")});function $y(e){e.use(Pp).use(da).use(Op)}async function Hy(){return Notification&&Notification.requestPermission?await Notification.requestPermission()==="granted"?(console.log("通知权限已授予"),!0):(console.warn("通知权限被拒绝"),!1):(console.warn("浏览器不支持通知权限请求"),!1)}async function jy(){var e;try{return(e=navigator.storage)!=null&&e.persist?await navigator.storage.persist():!1}catch(t){return console.warn("请求持久性存储失败:",t),!1}}async function Wy(){if(await Hy()&&wn.getSetting("storage.persistOnLoad")){const t=await jy();console.log(`持久性存储状态: ${t?"已启用":"未启用"}`)}}typeof window<"u"&&window.addEventListener("load",Wy);const Ws="Classworks_settings",hu={"server.domain":"https://kv.wuyuan.dev","server.siteKey":""},kn={"device.uuid":{type:"string",default:"00000000-0000-4000-8000-000000000000",description:"设备唯一标识符",icon:"mdi-identifier"},"storage.persistOnLoad":{type:"boolean",default:!0,description:"是否在页面加载时自动请求持久性存储",icon:"mdi-database-sync"},"display.emptySubjectDisplay":{type:"string",default:"card",validate:e=>["card","button"].includes(e),description:"空科目的显示方式",icon:"mdi-card-outline"},"display.dynamicSort":{type:"boolean",default:!0,description:"是否启用动态排序",icon:"mdi-sort-variant"},"display.showRandomButton":{type:"boolean",default:!1,description:"是否显示随机点人按钮",icon:"mdi-shuffle-variant"},"display.showFullscreenButton":{type:"boolean",default:!0,description:"是否显示全屏按钮",icon:"mdi-fullscreen"},"display.cardHoverEffect":{type:"boolean",default:!0,description:"是否启用卡片悬浮效果",icon:"mdi-gesture-tap"},"display.enhancedTouchMode":{type:"boolean",default:!0,description:"是否启用增强触摸模式",icon:"mdi-gesture-tap-button"},"display.showAntiScreenBurnCard":{type:"boolean",default:!1,description:"是否显示防烧屏忽悠卡片",icon:"mdi-monitor-shimmer"},"display.showListCard":{type:"boolean",default:!0,description:"是否显示列表卡片",icon:"mdi-list-box"},"display.showExamScheduleButton":{type:"boolean",default:!0,description:"是否显示考试看板",icon:"mdi-calendar-check"},"display.showQuickTools":{type:"boolean",default:!0,description:"是否显示快捷键盘",icon:"mdi-dialpad"},"server.domain":{type:"string",default:"",validate:e=>{if(!e)return!0;try{return new URL(e),!0}catch(t){return console.error("域名格式无效:",t),!1}},description:"后端服务器域名",icon:"mdi-web"},"server.classNumber":{type:"string",default:"高三八班",validate:e=>/.*/.test(e),description:"班级编号",icon:"mdi-account-group"},"server.siteKey":{type:"string",default:"",description:"网站令牌",icon:"mdi-key-chain"},"server.kvToken":{type:"string",default:"",description:"KV授权令牌",icon:"mdi-shield-key"},"server.authDomain":{type:"string",default:"https://kv.houlang.cloud",description:"授权服务器域名",icon:"mdi-shield-account",validate:e=>{if(!e)return!0;try{return new URL(e),!0}catch(t){return console.error("授权域名格式无效:",t),!1}}},"server.provider":{type:"string",default:"classworkscloud",validate:e=>["kv-local","kv-server","classworkscloud"].includes(e),description:"数据提供者",icon:"mdi-database"},"refresh.auto":{type:"boolean",default:!1,description:"是否启用自动刷新",icon:"mdi-refresh-auto"},"refresh.interval":{type:"number",default:300,validate:e=>e>=10&&e<=3600,description:"自动刷新间隔(秒)",icon:"mdi-timer-outline"},"font.size":{type:"number",default:28,validate:e=>e>=16&&e<=100,description:"字体大小",icon:"mdi-format-size"},"edit.autoSave":{type:"boolean",default:!0,description:"是否启用自动保存",icon:"mdi-content-save-outline"},"edit.blockNonTodayAutoSave":{type:"boolean",default:!0,description:"禁止自动保存非当天数据",icon:"mdi-calendar-lock"},"edit.refreshBeforeEdit":{type:"boolean",default:!0,description:"编辑前是否自动刷新",icon:"mdi-refresh"},"edit.confirmNonTodaySave":{type:"boolean",default:!0,description:"保存非当天数据需确认",icon:"mdi-calendar-alert"},"edit.blockPastDataEdit":{type:"boolean",default:!1,description:"禁止编辑过往数据",icon:"mdi-lock-clock"},"edit.autoSavePromptText":{type:"string",default:"喵?喵呜!",description:"自动保存模式提示文本",icon:"mdi-text-box-outline"},"edit.manualSavePromptText":{type:"string",default:"写完后点击上传谢谢喵",description:"手动保存模式提示文本",icon:"mdi-text-box-outline"},"developer.enabled":{type:"boolean",default:!1,description:"是否启用开发者选项",icon:"mdi-developer-board"},"developer.showDebugConfig":{type:"boolean",default:!1,description:"是否显示调试配置",icon:"mdi-bug-outline"},"developer.disableMessageLog":{type:"boolean",default:!1,description:"禁用消息日志记录",requireDeveloper:!0,icon:"mdi-message-off-outline"},"message.showSidebar":{type:"boolean",default:!0,description:"是否显示消息记录侧栏",requireDeveloper:!0,icon:"mdi-message-text-outline"},"message.maxActiveMessages":{type:"number",default:5,validate:e=>e>=1&&e<=10,description:"同时显示的最大消息数量",requireDeveloper:!0,icon:"mdi-message-badge-outline"},"message.timeout":{type:"number",default:5e3,validate:e=>e>=1e3&&e<=3e4,description:"消息自动关闭时间(毫秒)",requireDeveloper:!0,icon:"mdi-timer-sand"},"message.saveHistory":{type:"boolean",default:!0,description:"是否保存消息历史记录",requireDeveloper:!0,icon:"mdi-history"},"theme.mode":{type:"string",default:"dark",validate:e=>["light","dark"].includes(e),description:"主题模式",icon:"mdi-theme-light-dark"},"randomPicker.enabled":{type:"boolean",default:!0,description:"是否启用随机点名功能",icon:"mdi-account-question"},"randomPicker.animation":{type:"boolean",default:!0,description:"是否启用随机点名动画效果",icon:"mdi-animation-play"},"randomPicker.defaultCount":{type:"number",default:1,validate:e=>e>=1&&e,description:"默认抽取人数",icon:"mdi-counter"},"randomPicker.excludeAbsent":{type:"boolean",default:!0,description:"是否排除请假学生",icon:"mdi-account-off"},"randomPicker.excludeLate":{type:"boolean",default:!1,description:"是否排除迟到学生",icon:"mdi-clock-alert"},"randomPicker.excludeExcluded":{type:"boolean",default:!0,description:"是否排除不参与学生",icon:"mdi-account-cancel"},"randomPicker.mode":{type:"string",default:"name",validate:e=>["name","number"].includes(e),description:"随机点名模式",icon:"mdi-format-list-numbered"},"randomPicker.maxNumber":{type:"number",default:60,validate:e=>e>=1&&e,description:"学号模式最大值",icon:"mdi-numeric"},"randomPicker.minNumber":{type:"number",default:1,validate:e=>e>=1&&e,description:"学号模式最小值",icon:"mdi-numeric-negative-1"}};class Gy{constructor(){this.settingsCache=null,this.isInitialized=!1}init(){this.isInitialized||(this.loadSettings(),this.isInitialized=!0)}loadSettings(){this.settingsCache={};try{const t=typeof localStorage<"u"?localStorage.getItem(Ws):null;t&&(this.settingsCache=JSON.parse(t))}catch(t){console.error("加载设置失败:",t)}for(const[t,n]of Object.entries(kn))t in this.settingsCache||(this.settingsCache[t]=n.default);return this.settingsCache}saveSettings(){if(!(typeof localStorage>"u"))try{localStorage.setItem(Ws,JSON.stringify(this.settingsCache))}catch(t){console.error("保存设置失败:",t)}}getSetting(t){this.isInitialized||this.init();const n=kn[t];if(!n)return console.warn(`未定义的设置项: ${t}`),null;if(n.requireDeveloper&&!this.settingsCache["developer.enabled"])return n.default;if(this.settingsCache["server.provider"]==="classworkscloud"&&hu[t]!==void 0)return hu[t];const r=this.settingsCache[t];return r!==void 0?r:n.default}setSetting(t,n){this.isInitialized||this.init();const r=kn[t];if(!r)return console.warn(`未定义的设置项: ${t}`),!1;if(r.requireDeveloper&&!this.settingsCache["developer.enabled"])return console.warn(`设置项 ${t} 需要启用开发者选项`),!1;try{const i=this.settingsCache[t];if(typeof n!==r.type&&(n=r.type==="boolean"?!!n:r.type==="number"?Number(n):String(n)),r.validate&&!r.validate(n))return console.warn(`设置项 ${t} 的值无效`),!1;this.settingsCache[t]=n,this.saveSettings(),this.logSettingsChange(t,i,n);const s=r.legacyKey;return s&&typeof localStorage<"u"&&localStorage.setItem(s,n.toString()),!0}catch(i){return console.error(`设置配置项 ${t} 失败:`,i),!1}}logSettingsChange(t,n,r){this.settingsCache["developer.enabled"]&&this.settingsCache["developer.showDebugConfig"]&&console.log(`[Settings] ${t}:`,{old:n,new:r,time:new Date().toLocaleTimeString()})}resetSetting(t){this.isInitialized||this.init();const n=kn[t];if(!n){console.warn(`未定义的设置项: ${t}`);return}this.settingsCache[t]=n.default,this.saveSettings()}resetAllSettings(){this.settingsCache={};for(const[t,n]of Object.entries(kn))this.settingsCache[t]=n.default;this.saveSettings()}watchSettings(t){if(typeof window>"u")return()=>{};const n=r=>{r.key===Ws&&(this.settingsCache=JSON.parse(r.newValue),t(this.settingsCache))};return window.addEventListener("storage",n),()=>window.removeEventListener("storage",n)}getSettingDefinition(t){return kn[t]||null}exportSettingsAsKeyValue(){this.isInitialized||this.init();const t={};for(const n in kn)t[n]=this.getSetting(n);return t}}const wn=new Gy;typeof window<"u"&&wn.init();const id=e=>wn.getSetting(e),MS=(e,t)=>wn.setSetting(e,t),NS=e=>wn.resetSetting(e),VS=e=>wn.watchSettings(e),FS=e=>wn.getSettingDefinition(e),BS=()=>wn.exportSettingsAsKeyValue();class Uy{constructor(){this.logs=[]}async addLog(t){return this.logs.push(t),this.logs.length>100&&this.logs.shift(),!0}async getLogs(t=20){return this.logs.slice(-t).reverse()}}const Oi=new Uy,Ft=[];let Ri=null,Nt=null;const Pr={SUCCESS:"success",ERROR:"error",INFO:"info",WARNING:"warning"},zy={timeout:3e3,showSnackbar:!0,addToLog:!0};async function xi(e,t,n="",r={}){const i={...zy,...r},s={id:Date.now()+Math.random(),type:e,title:t,content:n.substring(0,500),timestamp:new Date};if(i.addToLog)try{for(await Oi.addLog(s),Ft.unshift(s);Ft.length>id("message.maxActiveMessages");)Ft.pop();Nt==null||Nt(Ft)}catch(o){console.error("保存日志失败:",o)}return i.showSnackbar&&(Ri==null||Ri(s)),s}function Ky(e,t){let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}}const Xn={install:e=>{e.config.globalProperties.$message={success:(t,n,r)=>xi(Pr.SUCCESS,t,n,r),error:(t,n,r)=>xi(Pr.ERROR,t,n,r),info:(t,n,r)=>xi(Pr.INFO,t,n,r),warning:(t,n,r)=>xi(Pr.WARNING,t,n,r)}},onSnackbar:e=>{Ri=e},onLog:e=>{Nt=e},getMessages:async()=>{try{return await Oi.getLogs()}catch(e){return console.error("获取日志失败:",e),[...Ft]}},clearMessages:async()=>{try{await Oi.clearLogs(),Ft.length=0,Nt==null||Nt(Ft)}catch(e){console.error("清除日志失败:",e)}},MessageType:Pr,markAsRead:()=>{},deleteMessage:async e=>{try{await Oi.deleteLog(e);const t=Ft.findIndex(n=>n.id===e);t!==-1&&Ft.splice(t,1),Nt==null||Nt(Ft)}catch(t){console.error("删除消息失败:",t)}},getUnreadCount:()=>0,debounce:Ky},sd=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},br=Z({border:[Boolean,Number,String]},"border");function Sr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();return{borderClasses:M(()=>{const r=e.border;return r===!0||r===""?`${t}--border`:typeof r=="string"||r===0?String(r).split(" ").map(i=>`border-${i}`):[]})}}const qy=[null,"default","comfortable","compact"],Hn=Z({density:{type:String,default:"default",validator:e=>qy.includes(e)}},"density");function wr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();return{densityClasses:G(()=>`${t}--density-${e.density}`)}}const di=Z({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function mi(e){return{elevationClasses:G(()=>{const n=Le(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const sn=Z({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function on(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();return{roundedClasses:M(()=>{const r=Le(e)?e.value:e.rounded,i=Le(e)?!1:e.tile,s=[];if(i||r===!1)s.push("rounded-0");else if(r===!0||r==="")s.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))s.push(`rounded-${o}`);return s})}}const tt=Z({tag:{type:[String,Object,Function],default:"div"}},"tag");function ma(e){return ta(()=>{const{class:t,style:n}=Yy(e);return{colorClasses:t,colorStyles:n}})}function hr(e){const{colorClasses:t,colorStyles:n}=ma(()=>({text:Qe(e)}));return{textColorClasses:t,textColorStyles:n}}function ir(e){const{colorClasses:t,colorStyles:n}=ma(()=>({background:Qe(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}function Yy(e){const t=Qe(e),n=[],r={};if(t.background)if(ho(t.background)){if(r.backgroundColor=t.background,!t.text&&Yg(t.background)){const i=Ht(t.background);if(i.a==null||i.a===1){const s=Tf(i);r.color=s,r.caretColor=s}}}else n.push(`bg-${t.background}`);return t.text&&(ho(t.text)?(r.color=t.text,r.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:r}}const Xy=["elevated","flat","tonal","outlined","text","plain"];function hi(e,t){return q(Pe,null,[e&&q("span",{key:"overlay",class:he(`${t}__overlay`)},null),q("span",{key:"underlay",class:he(`${t}__underlay`)},null)])}const jn=Z({color:String,variant:{type:String,default:"elevated",validator:e=>Xy.includes(e)}},"variant");function gi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();const n=G(()=>{const{variant:s}=Qe(e);return`${t}--variant-${s}`}),{colorClasses:r,colorStyles:i}=ma(()=>{const{variant:s,color:o}=Qe(e);return{[["elevated","flat"].includes(s)?"background":"text"]:o}});return{colorClasses:r,colorStyles:i,variantClasses:n}}const od=Z({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...br(),...Me(),...Hn(),...di(),...sn(),...tt(),...vt(),...jn()},"VBtnGroup"),gu=ve()({name:"VBtnGroup",props:od(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Et(e),{densityClasses:i}=wr(e),{borderClasses:s}=Sr(e),{elevationClasses:o}=mi(e),{roundedClasses:a}=on(e);hs({VBtn:{height:G(()=>e.direction==="horizontal"?"auto":null),baseColor:G(()=>e.baseColor),color:G(()=>e.color),density:G(()=>e.density),flat:!0,variant:G(()=>e.variant)}}),Ie(()=>I(e.tag,{class:he(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},r.value,s.value,i.value,o.value,a.value,e.class]),style:xe(e.style)},n))}}),Zy=Z({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Jy=Z({value:null,disabled:Boolean,selectedClass:String},"group-item");function Qy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=$e("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=xc();et(Symbol.for(`${t.description}:id`),i);const s=ge(t,null);if(!s){if(!n)return s;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=G(()=>e.value),a=M(()=>!!(s.disabled.value||e.disabled));function l(){s==null||s.register({id:i,value:o,disabled:a},r)}function u(){s==null||s.unregister(i)}l(),Ct(()=>u());const c=M(()=>s.isSelected(i)),f=M(()=>s.items.value[0].id===i),d=M(()=>s.items.value[s.items.value.length-1].id===i),m=M(()=>c.value&&[s.selectedClass.value,e.selectedClass]);return fe(c,g=>{r.emit("group:selected",{value:g})},{flush:"sync"}),{id:i,isSelected:c,isFirst:f,isLast:d,toggle:()=>s.select(i,!c.value),select:g=>s.select(i,g),selectedClass:m,value:o,disabled:a,group:s,register:l,unregister:u}}function eb(e,t){let n=!1;const r=We([]),i=Zt(e,"modelValue",[],d=>d===void 0?[]:ad(r,d===null?[null]:ea(d)),d=>{const m=nb(r,d);return e.multiple?m:m[0]}),s=$e("useGroup");function o(d,m){const g=d,v=Symbol.for(`${t.description}:id`),p=Zn(v,s==null?void 0:s.vnode).indexOf(m);ft(g.value)===void 0&&(g.value=p,g.useIndexAsValue=!0),p>-1?r.splice(p,0,g):r.push(g)}function a(d){if(n)return;l();const m=r.findIndex(g=>g.id===d);r.splice(m,1)}function l(){const d=r.find(m=>!m.disabled);d&&e.mandatory==="force"&&!i.value.length&&(i.value=[d.id])}yn(()=>{l()}),Ct(()=>{n=!0}),Wo(()=>{for(let d=0;dv.id===d);if(!(m&&(g!=null&&g.disabled)))if(e.multiple){const v=i.value.slice(),E=v.findIndex(S=>S===d),p=~E;if(m=m??!p,p&&e.mandatory&&v.length<=1||!p&&e.max!=null&&v.length+1>e.max)return;E<0&&m?v.push(d):E>=0&&!m&&v.splice(E,1),i.value=v}else{const v=i.value.includes(d);if(e.mandatory&&v||!v&&!m)return;i.value=m??!v?[d]:[]}}function c(d){if(e.multiple,i.value.length){const m=i.value[0],g=r.findIndex(p=>p.id===m);let v=(g+d)%r.length,E=r[v];for(;E.disabled&&v!==g;)v=(v+d)%r.length,E=r[v];if(E.disabled)return;i.value=[r[v].id]}else{const m=r.find(g=>!g.disabled);m&&(i.value=[m.id])}}const f={register:o,unregister:a,selected:i,select:u,disabled:G(()=>e.disabled),prev:()=>c(r.length-1),next:()=>c(1),isSelected:d=>i.value.includes(d),selectedClass:G(()=>e.selectedClass),items:G(()=>r),getItemIndex:d=>tb(r,d)};return et(t,f),f}function tb(e,t){const n=ad(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function ad(e,t){const n=[];return t.forEach(r=>{const i=e.find(o=>Mn(r,o.value)),s=e[r];(i==null?void 0:i.value)!==void 0?n.push(i.id):s!=null&&s.useIndexAsValue&&n.push(s.id)}),n}function nb(e,t){const n=[];return t.forEach(r=>{const i=e.findIndex(s=>s.id===r);if(~i){const s=e[i];n.push(s.value!==void 0?s.value:i)}}),n}const ld=Symbol.for("vuetify:v-btn-toggle"),rb=Z({...od(),...Zy()},"VBtnToggle"),$S=ve()({name:"VBtnToggle",props:rb(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:i,prev:s,select:o,selected:a}=eb(e,ld);return Ie(()=>{const l=gu.filterProps(e);return I(gu,ke({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:r,next:i,prev:s,select:o,selected:a})]}})}),{next:i,prev:s,select:o}}}),ib=Z({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),wt=ve(!1)({name:"VDefaultsProvider",props:ib(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:i,reset:s,root:o,scoped:a}=uc(e);return hs(r,{reset:s,root:o,scoped:a,disabled:i}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}}),sb=["x-small","small","default","large","x-large"],ys=Z({size:{type:[String,Number],default:"default"}},"size");function bs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();return ta(()=>{const n=e.size;let r,i;return Gi(sb,n)?r=`${t}--size-${n}`:n&&(i={width:se(n),height:se(n)}),{sizeClasses:r,sizeStyles:i}})}const ob=Z({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Ke,opacity:[String,Number],...Me(),...ys(),...tt({tag:"i"}),...vt()},"VIcon"),Wt=ve()({name:"VIcon",props:ob(),setup(e,t){let{attrs:n,slots:r}=t;const i=le(),{themeClasses:s}=jf(),{iconData:o}=hv(()=>i.value||e.icon),{sizeClasses:a}=bs(e),{textColorClasses:l,textColorStyles:u}=hr(()=>e.color);return Ie(()=>{var d,m;const c=(d=r.default)==null?void 0:d.call(r);c&&(i.value=(m=yf(c).filter(g=>g.type===ai&&g.children&&typeof g.children=="string")[0])==null?void 0:m.children);const f=!!(n.onClick||n.onClickOnce);return I(o.value.component,{tag:e.tag,icon:o.value.icon,class:he(["v-icon","notranslate",s.value,a.value,l.value,{"v-icon--clickable":f,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:xe([{"--v-icon-opacity":e.opacity},a.value?void 0:{fontSize:se(e.size),height:se(e.size),width:se(e.size)},u.value,e.style]),role:f?"button":void 0,"aria-hidden":!f,tabindex:f?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function ud(e,t){const n=ue(),r=le(!1);if(Zo){const i=new IntersectionObserver(s=>{r.value=!!s.find(o=>o.isIntersecting)},t);lt(()=>{i.disconnect()}),fe(n,(s,o)=>{o&&(i.unobserve(o),r.value=!1),s&&i.observe(s)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const ab=Z({bgColor:String,color:String,indeterminate:[Boolean,String],rounded:Boolean,modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Me(),...ys(),...tt({tag:"div"}),...vt()},"VProgressCircular"),lb=ve()({name:"VProgressCircular",props:ab(),setup(e,t){let{slots:n}=t;const r=20,i=2*Math.PI*r,s=ue(),{themeClasses:o}=Et(e),{sizeClasses:a,sizeStyles:l}=bs(e),{textColorClasses:u,textColorStyles:c}=hr(()=>e.color),{textColorClasses:f,textColorStyles:d}=hr(()=>e.bgColor),{intersectionRef:m,isIntersecting:g}=ud(),{resizeRef:v,contentRect:E}=ua(),p=G(()=>tn(parseFloat(e.modelValue),0,100)),S=G(()=>Number(e.width)),b=G(()=>l.value?Number(e.size):E.value?E.value.width:Math.max(S.value,32)),_=G(()=>r/(1-S.value/b.value)*2),O=G(()=>S.value/b.value*_.value),A=G(()=>{const k=(100-p.value)/100*i;return e.rounded&&p.value>0&&p.value<100?se(Math.min(i-.01,k+O.value)):se(k)}),D=M(()=>{const k=Number(e.rotate);return e.rounded?k+O.value/2/i*360:k});return _t(()=>{m.value=s.value,v.value=s.value}),Ie(()=>I(e.tag,{ref:s,class:he(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":g.value,"v-progress-circular--disable-shrink":e.indeterminate&&(e.indeterminate==="disable-shrink"||Xr())},o.value,a.value,u.value,e.class]),style:xe([l.value,c.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:p.value},{default:()=>[q("svg",{style:{transform:`rotate(calc(-90deg + ${D.value}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[q("circle",{class:he(["v-progress-circular__underlay",f.value]),style:xe(d.value),fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":O.value,"stroke-dasharray":i,"stroke-dashoffset":0},null),q("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":O.value,"stroke-dasharray":i,"stroke-dashoffset":A.value,"stroke-linecap":e.rounded?"round":void 0},null)]),n.default&&q("div",{class:"v-progress-circular__content"},[n.default({value:p.value})])]})),{}}}),_r=Z({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Cr(e){return{dimensionStyles:M(()=>{const n={},r=se(e.height),i=se(e.maxHeight),s=se(e.maxWidth),o=se(e.minHeight),a=se(e.minWidth),l=se(e.width);return r!=null&&(n.height=r),i!=null&&(n.maxHeight=i),s!=null&&(n.maxWidth=s),o!=null&&(n.minHeight=o),a!=null&&(n.minWidth=a),l!=null&&(n.width=l),n})}}const vu={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Ss=Z({location:String},"location");function ha(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=ci();return{locationStyles:M(()=>{if(!e.location)return{};const{side:s,align:o}=mo(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function a(u){return n?n(u):0}const l={};return s!=="center"&&(t?l[vu[s]]=`calc(100% - ${a(s)}px)`:l[s]=0),o!=="center"?t?l[vu[o]]=`calc(100% - ${a(o)}px)`:l[o]=0:(s==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[s]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[s]),l})}}const ub=Z({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function cb(e,t){const n=G(()=>!!e.chunkCount||!!e.chunkWidth),r=M(()=>{const a=Qe(t);if(!a)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const l=Number(e.chunkCount);return(a-Number(e.chunkGap)*(l-1))/l}),i=G(()=>Number(e.chunkGap)),s=M(()=>{if(!n.value)return{};const a=se(i.value),l=se(r.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${l}, transparent ${l}, transparent)`,maskSize:`calc(${l} + ${a}) 100%`}});function o(a){const l=Qe(t);if(!l)return a;const u=100*i.value/l,c=100*(r.value+i.value)/l,f=Math.floor((a+u)/c);return tn(0,f*c-u/2,100)}return{hasChunks:n,chunksMaskStyles:s,snapValueToChunk:o}}const fb=Z({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...ub(),...Me(),...Ss({location:"top"}),...sn(),...tt(),...vt()},"VProgressLinear"),cd=ve()({name:"VProgressLinear",props:fb(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ue(),i=Zt(e,"modelValue"),{isRtl:s,rtlClasses:o}=ci(),{themeClasses:a}=Et(e),{locationStyles:l}=ha(e),{textColorClasses:u,textColorStyles:c}=hr(()=>e.color),{backgroundColorClasses:f,backgroundColorStyles:d}=ir(()=>e.bgColor||e.color),{backgroundColorClasses:m,backgroundColorStyles:g}=ir(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:v,backgroundColorStyles:E}=ir(()=>e.color),{roundedClasses:p}=on(e),{intersectionRef:S,isIntersecting:b}=ud(),_=M(()=>parseFloat(e.max)),O=M(()=>parseFloat(e.height)),A=M(()=>tn(parseFloat(e.bufferValue)/_.value*100,0,100)),D=M(()=>tn(parseFloat(i.value)/_.value*100,0,100)),k=M(()=>s.value!==e.reverse),T=M(()=>e.indeterminate?"fade-transition":"slide-x-transition"),H=le(0),{hasChunks:B,chunksMaskStyles:x,snapValueToChunk:N}=cb(e,H);yr(B,()=>{const{resizeRef:J}=ua(te=>H.value=te[0].contentRect.width);_t(()=>J.value=r.value)});const j=M(()=>B.value?N(A.value):A.value),Y=M(()=>B.value?N(D.value):D.value);function ie(J){if(!S.value)return;const{left:te,right:Oe,width:me}=S.value.getBoundingClientRect(),Ae=k.value?me-J.clientX+(Oe-me):J.clientX-te;i.value=Math.round(Ae/me*_.value)}return _t(()=>{S.value=r.value}),Ie(()=>I(e.tag,{ref:r,class:he(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&b.value,"v-progress-linear--reverse":k.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},p.value,a.value,o.value,e.class]),style:xe([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?se(O.value):0,"--v-progress-linear-height":se(O.value),...e.absolute?l.value:{}},x.value,e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(i.value),_.value),onClick:e.clickable&&ie},{default:()=>[e.stream&&q("div",{key:"stream",class:he(["v-progress-linear__stream",u.value]),style:{...c.value,[k.value?"left":"right"]:se(-O.value),borderTop:`${se(O.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${se(O.value/4)})`,width:se(100-A.value,"%"),"--v-progress-linear-stream-to":se(O.value*(k.value?1:-1))}},null),q("div",{class:he(["v-progress-linear__background",f.value]),style:xe([d.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),q("div",{class:he(["v-progress-linear__buffer",m.value]),style:xe([g.value,{opacity:parseFloat(e.bufferOpacity),width:se(j.value,"%")}])},null),I(vn,{name:T.value},{default:()=>[e.indeterminate?q("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(J=>q("div",{key:J,class:he(["v-progress-linear__indeterminate",J,v.value]),style:xe(E.value)},null))]):q("div",{class:he(["v-progress-linear__determinate",v.value]),style:xe([E.value,{width:se(Y.value,"%")}])},null)]}),n.default&&q("div",{class:"v-progress-linear__content"},[n.default({value:D.value,buffer:A.value})])]})),{}}}),fd=Z({loading:[Boolean,String]},"loader");function dd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();return{loaderClasses:G(()=>({[`${t}--loading`]:e.loading}))}}function db(e,t){var r;let{slots:n}=t;return q("div",{class:he(`${e.name}__loader`)},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||I(cd,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const mb=["static","relative","fixed","absolute","sticky"],ga=Z({position:{type:String,validator:e=>mb.includes(e)}},"position");function va(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();return{positionClasses:G(()=>e.position?`${t}--${e.position}`:void 0)}}function hb(){const e=$e("useRoute");return M(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function gb(){var e,t;return(t=(e=$e("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function pa(e,t){var f,d;const n=Dc("RouterLink"),r=G(()=>!!(e.href||e.to)),i=M(()=>(r==null?void 0:r.value)||Sl(t,"click")||Sl(e,"click"));if(typeof n=="string"||!("useLink"in n)){const m=G(()=>e.href);return{isLink:r,isRouterLink:G(()=>!1),isClickable:i,href:m,linkProps:We({href:m})}}const s=n.useLink({to:G(()=>e.to||""),replace:G(()=>e.replace)}),o=M(()=>e.to?s:void 0),a=hb(),l=M(()=>{var m,g,v;return o.value?e.exact?a.value?((v=o.value.isExactActive)==null?void 0:v.value)&&Mn(o.value.route.value.query,a.value.query):((g=o.value.isExactActive)==null?void 0:g.value)??!1:((m=o.value.isActive)==null?void 0:m.value)??!1:!1}),u=M(()=>{var m;return e.to?(m=o.value)==null?void 0:m.route.value.href:e.href}),c=G(()=>!!e.to);return{isLink:r,isRouterLink:c,isClickable:i,isActive:l,route:(f=o.value)==null?void 0:f.route,navigate:(d=o.value)==null?void 0:d.navigate,href:u,linkProps:We({href:u,"aria-current":G(()=>l.value?"page":void 0),"aria-disabled":G(()=>e.disabled&&r.value?"true":void 0),tabindex:G(()=>e.disabled&&r.value?"-1":void 0)})}}const ya=Z({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Gs=!1;function vb(e,t){let n=!1,r,i;Te&&(e!=null&&e.beforeEach)&&(qe(()=>{window.addEventListener("popstate",s),r=e.beforeEach((o,a,l)=>{Gs?n?t(l):l():setTimeout(()=>n?t(l):l()),Gs=!0}),i=e==null?void 0:e.afterEach(()=>{Gs=!1})}),lt(()=>{window.removeEventListener("popstate",s),r==null||r(),i==null||i()}));function s(o){var a;(a=o.state)!=null&&a.replaced||(n=!0,setTimeout(()=>n=!1))}}function pb(e,t){fe(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n!=null&&t&&qe(()=>{t(n)})},{immediate:!0})}const _o=Symbol("rippleStop"),yb=80;function pu(e,t){e.style.transform=t,e.style.webkitTransform=t}function Co(e){return e.constructor.name==="TouchEvent"}function md(e){return e.constructor.name==="KeyboardEvent"}const bb=function(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,i=0;if(!md(e)){const d=t.getBoundingClientRect(),m=Co(e)?e.touches[e.touches.length-1]:e;r=m.clientX-d.left,i=m.clientY-d.top}let s=0,o=.3;(f=t._ripple)!=null&&f.circle?(o=.15,s=t.clientWidth/2,s=n.center?s:s+Math.sqrt((r-s)**2+(i-s)**2)/4):s=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-s*2)/2}px`,l=`${(t.clientHeight-s*2)/2}px`,u=n.center?a:`${r-s}px`,c=n.center?l:`${i-s}px`;return{radius:s,scale:o,x:u,y:c,centerX:a,centerY:l}},Xi={show(e,t){var m;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((m=t==null?void 0:t._ripple)!=null&&m.enabled))return;const r=document.createElement("span"),i=document.createElement("span");r.appendChild(i),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:s,scale:o,x:a,y:l,centerX:u,centerY:c}=bb(e,t,n),f=`${s*2}px`;i.className="v-ripple__animation",i.style.width=f,i.style.height=f,t.appendChild(r);const d=window.getComputedStyle(t);d&&d.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),pu(i,`translate(${a}, ${l}) scale3d(${o},${o},${o})`),i.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),pu(i,`translate(${u}, ${c}) scale3d(1,1,1)`)})})},hide(e){var s;if(!((s=e==null?void 0:e._ripple)!=null&&s.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=Array.from(t).findLast(o=>!o.dataset.isHiding);if(n)n.dataset.isHiding="true";else return;const r=performance.now()-Number(n.dataset.activated),i=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===e&&e.removeChild(n.parentNode)},300)},i)}};function hd(e){return typeof e>"u"||!!e}function ri(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[_o])){if(e[_o]=!0,Co(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||md(e),n._ripple.class&&(t.class=n._ripple.class),Co(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Xi.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},yb)}else Xi.show(e,n,t)}}function yu(e){e[_o]=!0}function mt(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{mt(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Xi.hide(t)}}function gd(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let ii=!1;function bu(e,t){!ii&&t.includes(e.key)&&(ii=!0,ri(e))}function vd(e){ii=!1,mt(e)}function pd(e){ii&&(ii=!1,mt(e))}function yd(e,t,n){const{value:r,modifiers:i}=t,s=hd(r);s||Xi.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=s,e._ripple.centered=i.center,e._ripple.circle=i.circle;const o=co(r)?r:{};o.class&&(e._ripple.class=o.class);const a=o.keys??["Enter","Space"];if(e._ripple.keyDownHandler=l=>bu(l,a),s&&!n){if(i.stop){e.addEventListener("touchstart",yu,{passive:!0}),e.addEventListener("mousedown",yu);return}e.addEventListener("touchstart",ri,{passive:!0}),e.addEventListener("touchend",mt,{passive:!0}),e.addEventListener("touchmove",gd,{passive:!0}),e.addEventListener("touchcancel",mt),e.addEventListener("mousedown",ri),e.addEventListener("mouseup",mt),e.addEventListener("mouseleave",mt),e.addEventListener("keydown",l=>bu(l,a)),e.addEventListener("keyup",vd),e.addEventListener("blur",pd),e.addEventListener("dragstart",mt,{passive:!0})}else!s&&n&&bd(e)}function bd(e){var t;e.removeEventListener("mousedown",ri),e.removeEventListener("touchstart",ri),e.removeEventListener("touchend",mt),e.removeEventListener("touchmove",gd),e.removeEventListener("touchcancel",mt),e.removeEventListener("mouseup",mt),e.removeEventListener("mouseleave",mt),(t=e._ripple)!=null&&t.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",vd),e.removeEventListener("dragstart",mt),e.removeEventListener("blur",pd)}function Sb(e,t){yd(e,t,!1)}function wb(e){bd(e),delete e._ripple}function _b(e,t){if(t.value===t.oldValue)return;const n=hd(t.oldValue);yd(e,t,n)}const si={mounted:Sb,unmounted:wb,updated:_b},Cb=Z({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:ld},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Ke,appendIcon:Ke,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...br(),...Me(),...Hn(),..._r(),...di(),...Jy(),...fd(),...Ss(),...ga(),...sn(),...ya(),...ys(),...tt({tag:"button"}),...vt(),...jn({variant:"elevated"})},"VBtn"),Sd=ve()({name:"VBtn",props:Cb(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:i}=Et(e),{borderClasses:s}=Sr(e),{densityClasses:o}=wr(e),{dimensionStyles:a}=Cr(e),{elevationClasses:l}=mi(e),{loaderClasses:u}=dd(e),{locationStyles:c}=ha(e),{positionClasses:f}=va(e),{roundedClasses:d}=on(e),{sizeClasses:m,sizeStyles:g}=bs(e),v=Qy(e,e.symbol,!1),E=pa(e,n),p=M(()=>{var B;return e.active!==void 0?e.active:E.isRouterLink.value?(B=E.isActive)==null?void 0:B.value:v==null?void 0:v.isSelected.value}),S=G(()=>p.value?e.activeColor??e.color:e.color),b=M(()=>{var x,N;return{color:(v==null?void 0:v.isSelected.value)&&(!E.isLink.value||((x=E.isActive)==null?void 0:x.value))||!v||((N=E.isActive)==null?void 0:N.value)?S.value??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:_,colorStyles:O,variantClasses:A}=gi(b),D=M(()=>(v==null?void 0:v.disabled.value)||e.disabled),k=G(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),T=M(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function H(B){var x;D.value||E.isLink.value&&(B.metaKey||B.ctrlKey||B.shiftKey||B.button!==0||n.target==="_blank")||(E.isRouterLink.value?(x=E.navigate)==null||x.call(E,B):v==null||v.toggle())}return pb(E,v==null?void 0:v.select),Ie(()=>{const B=E.isLink.value?"a":e.tag,x=!!(e.prependIcon||r.prepend),N=!!(e.appendIcon||r.append),j=!!(e.icon&&e.icon!==!0);return Vn(I(B,ke(E.linkProps,{type:B==="a"?void 0:"button",class:["v-btn",v==null?void 0:v.selectedClass.value,{"v-btn--active":p.value,"v-btn--block":e.block,"v-btn--disabled":D.value,"v-btn--elevated":k.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},e.spaced?["v-btn--spaced",`v-btn--spaced-${e.spaced}`]:[],i.value,s.value,_.value,o.value,l.value,u.value,f.value,d.value,m.value,A.value,e.class],style:[O.value,a.value,c.value,g.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:D.value&&B!=="a"||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:H,value:T.value}),{default:()=>{var Y;return[hi(!0,"v-btn"),!e.icon&&x&&q("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?I(wt,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):I(Wt,{key:"prepend-icon",icon:e.prependIcon},null)]),q("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&j?I(Wt,{key:"content-icon",icon:e.icon},null):I(wt,{key:"content-defaults",disabled:!j,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var ie;return[((ie=r.default)==null?void 0:ie.call(r))??xt(e.text)]}})]),!e.icon&&N&&q("span",{key:"append",class:"v-btn__append"},[r.append?I(wt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):I(Wt,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&q("span",{key:"loader",class:"v-btn__loader"},[((Y=r.loader)==null?void 0:Y.call(r))??I(lb,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[si,!D.value&&e.ripple,"",{center:!!e.icon}]])}),{group:v}}});function Us(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Eb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Su(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,i=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,s=n==="top"?0:n==="bottom"?t.height:n;return Us({x:i,y:s},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,i=n==="left"?0:n==="right"?t.width:n,s=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return Us({x:i,y:s},t)}return Us({x:t.width/2,y:t.height/2},t)}const wd={static:kb,connected:Pb},xb=Z({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in wd},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array],stickToTarget:Boolean,viewportMargin:{type:[Number,String],default:12}},"VOverlay-location-strategies");function Ab(e,t){const n=ue({}),r=ue();Te&&yr(()=>!!(t.isActive.value&&e.locationStrategy),a=>{var l,u;fe(()=>e.locationStrategy,a),lt(()=>{window.removeEventListener("resize",i),visualViewport==null||visualViewport.removeEventListener("resize",s),visualViewport==null||visualViewport.removeEventListener("scroll",o),r.value=void 0}),window.addEventListener("resize",i,{passive:!0}),visualViewport==null||visualViewport.addEventListener("resize",s,{passive:!0}),visualViewport==null||visualViewport.addEventListener("scroll",o,{passive:!0}),typeof e.locationStrategy=="function"?r.value=(l=e.locationStrategy(t,e,n))==null?void 0:l.updateLocation:r.value=(u=wd[e.locationStrategy](t,e,n))==null?void 0:u.updateLocation});function i(a){var l;(l=r.value)==null||l.call(r,a)}function s(a){var l;(l=r.value)==null||l.call(r,a)}function o(a){var l;(l=r.value)==null||l.call(r,a)}return{contentStyles:n,updateLocation:r}}function kb(){}function Tb(e,t){const n=Cf(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function Pb(e,t,n){(Array.isArray(e.target.value)||dv(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:i,preferredOrigin:s}=ta(()=>{const p=mo(t.location,e.isRtl.value),S=t.origin==="overlap"?p:t.origin==="auto"?Ms(p):mo(t.origin,e.isRtl.value);return p.side===S.side&&p.align===Ns(S).align?{preferredAnchor:_l(p),preferredOrigin:_l(S)}:{preferredAnchor:p,preferredOrigin:S}}),[o,a,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(p=>M(()=>{const S=parseFloat(t[p]);return isNaN(S)?1/0:S})),c=M(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const p=t.offset.split(" ").map(parseFloat);return p.length<2&&p.push(0),p}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let f=!1,d=-1;const m=new Ag(4),g=new ResizeObserver(()=>{if(!f)return;if(requestAnimationFrame(S=>{S!==d&&m.clear(),requestAnimationFrame(b=>{d=b})}),m.isFull){const S=m.values();if(Mn(S.at(-1),S.at(-3))&&!Mn(S.at(-1),S.at(-2)))return}const p=E();p&&m.push(p.flipped)});let v=new St({x:0,y:0,width:0,height:0});fe(e.target,(p,S)=>{S&&!Array.isArray(S)&&g.unobserve(S),Array.isArray(p)?Mn(p,S)||E():p&&g.observe(p)},{immediate:!0}),fe(e.contentEl,(p,S)=>{S&&g.unobserve(S),p&&g.observe(p)},{immediate:!0}),lt(()=>{g.disconnect()});function E(){if(f=!1,requestAnimationFrame(()=>f=!0),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(v=_f(e.target.value));const p=Tb(e.contentEl.value,e.isRtl.value),S=zi(e.contentEl.value),b=Number(t.viewportMargin);S.length||(S.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(p.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),p.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const _=S.reduce((N,j)=>{const Y=Dg(j);return N?new St({x:Math.max(N.left,Y.left),y:Math.max(N.top,Y.top),width:Math.min(N.right,Y.right)-Math.max(N.left,Y.left),height:Math.min(N.bottom,Y.bottom)-Math.max(N.top,Y.top)}):Y},void 0);t.stickToTarget?(_.x+=Math.min(b,v.x),_.y+=Math.min(b,v.y),_.width=Math.max(_.width-b*2,v.x+v.width-b),_.height=Math.max(_.height-b*2,v.y+v.height-b)):(_.x+=b,_.y+=b,_.width-=b*2,_.height-=b*2);let O={anchor:i.value,origin:s.value};function A(N){const j=new St(p),Y=Su(N.anchor,v),ie=Su(N.origin,j);let{x:J,y:te}=Eb(Y,ie);switch(N.anchor.side){case"top":te-=c.value[0];break;case"bottom":te+=c.value[0];break;case"left":J-=c.value[0];break;case"right":J+=c.value[0];break}switch(N.anchor.align){case"top":te-=c.value[1];break;case"bottom":te+=c.value[1];break;case"left":J-=c.value[1];break;case"right":J+=c.value[1];break}return j.x+=J,j.y+=te,j.width=Math.min(j.width,l.value),j.height=Math.min(j.height,u.value),{overflows:El(j,_),x:J,y:te}}let D=0,k=0;const T={x:0,y:0},H={x:!1,y:!1};let B=-1;for(;!(B++>10);){const{x:N,y:j,overflows:Y}=A(O);D+=N,k+=j,p.x+=N,p.y+=j;{const ie=Cl(O.anchor),J=Y.x.before||Y.x.after,te=Y.y.before||Y.y.after;let Oe=!1;if(["x","y"].forEach(me=>{if(me==="x"&&J&&!H.x||me==="y"&&te&&!H.y){const Ae={anchor:{...O.anchor},origin:{...O.origin}},Se=me==="x"?ie==="y"?Ns:Ms:ie==="y"?Ms:Ns;Ae.anchor=Se(Ae.anchor),Ae.origin=Se(Ae.origin);const{overflows:Ne}=A(Ae);(Ne[me].before<=Y[me].before&&Ne[me].after<=Y[me].after||Ne[me].before+Ne[me].after<(Y[me].before+Y[me].after)/2)&&(O=Ae,Oe=H[me]=!0)}}),Oe)continue}Y.x.before&&(D+=Y.x.before,p.x+=Y.x.before),Y.x.after&&(D-=Y.x.after,p.x-=Y.x.after),Y.y.before&&(k+=Y.y.before,p.y+=Y.y.before),Y.y.after&&(k-=Y.y.after,p.y-=Y.y.after);{const ie=El(p,_);T.x=_.width-ie.x.before-ie.x.after,T.y=_.height-ie.y.before-ie.y.after,D+=ie.x.before,p.x+=ie.x.before,k+=ie.y.before,p.y+=ie.y.before}break}const x=Cl(O.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${O.anchor.side} ${O.anchor.align}`,transformOrigin:`${O.origin.side} ${O.origin.align}`,top:se(zs(k)),left:e.isRtl.value?void 0:se(zs(D)),right:e.isRtl.value?se(zs(-D)):void 0,minWidth:se(x==="y"?Math.min(o.value,v.width):o.value),maxWidth:se(wu(tn(T.x,o.value===1/0?0:o.value,l.value))),maxHeight:se(wu(tn(T.y,a.value===1/0?0:a.value,u.value)))}),{available:T,contentBox:p,flipped:H}}return fe(()=>[i.value,s.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>E()),qe(()=>{const p=E();if(!p)return;const{available:S,contentBox:b}=p;b.height>S.y&&requestAnimationFrame(()=>{E(),requestAnimationFrame(()=>{E()})})}),{updateLocation:E}}function zs(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function wu(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let Eo=!0;const Zi=[];function Ib(e){!Eo||Zi.length?(Zi.push(e),xo()):(Eo=!1,e(),xo())}let _u=-1;function xo(){cancelAnimationFrame(_u),_u=requestAnimationFrame(()=>{const e=Zi.shift();e&&e(),Zi.length?xo():Eo=!0})}const Di={none:null,close:Db,block:Lb,reposition:Mb},Ob=Z({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Di}},"VOverlay-scroll-strategies");function Rb(e,t){if(!Te)return;let n;_t(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=or(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=Di[e.scrollStrategy])==null||r.call(Di,t,e,n)}))}),lt(()=>{n==null||n.stop()})}function Db(e){function t(n){e.isActive.value=!1}_d(ba(e.target.value,e.contentEl.value),t)}function Lb(e,t){var a;const n=(a=e.root.value)==null?void 0:a.offsetParent,r=ba(e.target.value,e.contentEl.value),i=[...new Set([...zi(r,t.contained?n:void 0),...zi(e.contentEl.value,t.contained?n:void 0)])].filter(l=>!l.classList.contains("v-overlay-scroll-blocked")),s=window.innerWidth-document.documentElement.offsetWidth,o=(l=>sa(l)&&l)(n||document.documentElement);o&&e.root.value.classList.add("v-overlay--scroll-blocked"),i.forEach((l,u)=>{l.style.setProperty("--v-body-scroll-x",se(-l.scrollLeft)),l.style.setProperty("--v-body-scroll-y",se(-l.scrollTop)),l!==document.documentElement&&l.style.setProperty("--v-scrollbar-offset",se(s)),l.classList.add("v-overlay-scroll-blocked")}),lt(()=>{i.forEach((l,u)=>{const c=parseFloat(l.style.getPropertyValue("--v-body-scroll-x")),f=parseFloat(l.style.getPropertyValue("--v-body-scroll-y")),d=l.style.scrollBehavior;l.style.scrollBehavior="auto",l.style.removeProperty("--v-body-scroll-x"),l.style.removeProperty("--v-body-scroll-y"),l.style.removeProperty("--v-scrollbar-offset"),l.classList.remove("v-overlay-scroll-blocked"),l.scrollLeft=-c,l.scrollTop=-f,l.style.scrollBehavior=d}),o&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function Mb(e,t,n){let r=!1,i=-1,s=-1;function o(a){Ib(()=>{var c,f;const l=performance.now();(f=(c=e.updateLocation).value)==null||f.call(c,a),r=(performance.now()-l)/(1e3/60)>2})}s=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{_d(ba(e.target.value,e.contentEl.value),a=>{r?(cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{o(a)})})):o(a)})})}),lt(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(s),cancelAnimationFrame(i)})}function ba(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find(n=>!(t!=null&&t.contains(n))):e??t}function _d(e,t){const n=[document,...zi(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),lt(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const Nb=Symbol.for("vuetify:v-menu"),Vb=Z({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function Fb(e,t){let n=()=>{};function r(o,a){n==null||n();const l=o?e.openDelay:e.closeDelay,u=Math.max((a==null?void 0:a.minDelay)??0,Number(l??0));return new Promise(c=>{n=Ig(u,()=>{t==null||t(o),c(o)})})}function i(){return r(!0)}function s(o){return r(!1,o)}return{clearDelay:n,runOpenDelay:i,runCloseDelay:s}}const Bb=Z({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...Vb()},"VOverlay-activator");function $b(e,t){let{isActive:n,isTop:r,contentEl:i}=t;const s=$e("useActivator"),o=ue();let a=!1,l=!1,u=!0;const c=M(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),f=M(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:d,runCloseDelay:m}=Fb(e,k=>{k===(e.openOnHover&&a||c.value&&l)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==k&&(u=!0),n.value=k)}),g=ue(),v={onClick:k=>{k.stopPropagation(),o.value=k.currentTarget||k.target,n.value||(g.value=[k.clientX,k.clientY]),n.value=!n.value},onMouseenter:k=>{a=!0,o.value=k.currentTarget||k.target,d()},onMouseleave:k=>{a=!1,m()},onFocus:k=>{Tg(k.target,":focus-visible")!==!1&&(l=!0,k.stopPropagation(),o.value=k.currentTarget||k.target,d())},onBlur:k=>{l=!1,k.stopPropagation(),m({minDelay:1})}},E=M(()=>{const k={};return f.value&&(k.onClick=v.onClick),e.openOnHover&&(k.onMouseenter=v.onMouseenter,k.onMouseleave=v.onMouseleave),c.value&&(k.onFocus=v.onFocus,k.onBlur=v.onBlur),k}),p=M(()=>{const k={};if(e.openOnHover&&(k.onMouseenter=()=>{a=!0,d()},k.onMouseleave=()=>{a=!1,m()}),c.value&&(k.onFocusin=T=>{T.target.matches(":focus-visible")&&(l=!0,d())},k.onFocusout=()=>{l=!1,m({minDelay:1})}),e.closeOnContentClick){const T=ge(Nb,null);k.onClick=()=>{n.value=!1,T==null||T.closeParents()}}return k}),S=M(()=>{const k={};return e.openOnHover&&(k.onMouseenter=()=>{u&&(a=!0,u=!1,d())},k.onMouseleave=()=>{a=!1,m()}),k});fe(r,k=>{var T;k&&(e.openOnHover&&!a&&(!c.value||!l)||c.value&&!l&&(!e.openOnHover||!a))&&!((T=i.value)!=null&&T.contains(document.activeElement))&&(n.value=!1)}),fe(n,k=>{k||setTimeout(()=>{g.value=void 0})},{flush:"post"});const b=fo();_t(()=>{b.value&&qe(()=>{o.value=b.el})});const _=fo(),O=M(()=>e.target==="cursor"&&g.value?g.value:_.value?_.el:Cd(e.target,s)||o.value),A=M(()=>Array.isArray(O.value)?void 0:O.value);let D;return fe(()=>!!e.activator,k=>{k&&Te?(D=or(),D.run(()=>{Hb(e,s,{activatorEl:o,activatorEvents:E})})):D&&D.stop()},{flush:"post",immediate:!0}),lt(()=>{D==null||D.stop()}),{activatorEl:o,activatorRef:b,target:O,targetEl:A,targetRef:_,activatorEvents:E,contentEvents:p,scrimEvents:S}}function Hb(e,t,n){let{activatorEl:r,activatorEvents:i}=n;fe(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=a(u);c&&o(c)}l&&qe(()=>s())},{immediate:!0}),fe(()=>e.activatorProps,()=>{s()}),lt(()=>{o()});function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Lg(l,ke(i.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Mg(l,ke(i.value,u))}function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=Cd(l,t);return r.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,r.value}}function Cd(e,t){var r,i;if(!e)return;let n;if(e==="parent"){let s=(i=(r=t==null?void 0:t.proxy)==null?void 0:r.$el)==null?void 0:i.parentNode;for(;s!=null&&s.hasAttribute("data-no-activator");)s=s.parentNode;n=s}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}const jb=Z({retainFocus:Boolean,captureFocus:Boolean,disableInitialFocus:Boolean},"focusTrap"),Ao=new Map;function Wb(e){const t=document.activeElement;if(e.key!=="Tab"||!t)return;const n=Array.from(Ao.values()).filter(u=>{var d;let{isActive:c,contentEl:f}=u;return c.value&&((d=f.value)==null?void 0:d.contains(t))}).map(u=>u.contentEl.value);let r,i=t.parentElement;for(;i;){if(n.includes(i)){r=i;break}i=i.parentElement}if(!r)return;const s=Hr(r).filter(u=>u.tabIndex>=0);if(!s.length)return;const o=document.activeElement;if(s.length===1&&s[0].classList.contains("v-list")&&s[0].contains(o)){e.preventDefault();return}const a=s[0],l=s[s.length-1];e.shiftKey&&(o===a||a.classList.contains("v-list")&&a.contains(o))&&(e.preventDefault(),l.focus()),!e.shiftKey&&(o===l||l.classList.contains("v-list")&&l.contains(o))&&(e.preventDefault(),a.focus())}function Gb(e,t){let{isActive:n,localTop:r,activatorEl:i,contentEl:s}=t;const o=Symbol("trap");fe(()=>e.retainFocus,m=>{m?Ao.set(o,{isActive:n,contentEl:s}):Ao.delete(o)},{immediate:!0});let a=!1,l=-1;async function u(){a=!0,l=window.setTimeout(()=>{a=!1},100)}async function c(m){var E;const g=m.relatedTarget,v=m.target;document.removeEventListener("pointerdown",u),document.removeEventListener("keydown",f),await qe(),n.value&&!a&&g!==v&&s.value&&Qe(r)&&![document,s.value].includes(v)&&!s.value.contains(v)&&((E=Hr(s.value)[0])==null||E.focus())}function f(m){if(m.key==="Tab"&&(document.removeEventListener("keydown",f),n.value&&s.value&&m.target&&!s.value.contains(m.target))){const g=Hr(document.documentElement);if(m.shiftKey&&m.target===g.at(0)||!m.shiftKey&&m.target===g.at(-1)){const v=Hr(s.value);v.length>0&&(m.preventDefault(),v[0].focus())}}}const d=G(()=>n.value&&e.captureFocus&&!e.disableInitialFocus);Te&&fe(d,m=>{m?(document.addEventListener("pointerdown",u),document.addEventListener("focusin",c,{once:!0}),document.addEventListener("keydown",f)):(document.removeEventListener("pointerdown",u),document.removeEventListener("focusin",c),document.removeEventListener("keydown",f))},{immediate:!0}),Ct(()=>{clearTimeout(l),document.removeEventListener("pointerdown",u),document.removeEventListener("focusin",c),document.removeEventListener("keydown",f)}),Te&&document.addEventListener("keydown",Wb)}function Ub(){if(!Te)return le(!1);const{ssr:e}=dp();if(e){const t=le(!1);return yn(()=>{t.value=!0}),t}else return le(!0)}const zb=Z({eager:Boolean},"lazy");function Kb(e,t){const n=le(!1),r=G(()=>n.value||e.eager||t.value);fe(t,()=>n.value=!0);function i(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:i}}function Sa(){const t=$e("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const Cu=Symbol.for("vuetify:stack"),Ir=We([]);function qb(e,t,n){const r=$e("useStack"),i=!n,s=ge(Cu,void 0),o=We({activeChildren:new Set});et(Cu,o);const a=le(Number(Qe(t)));yr(e,()=>{var f;const c=(f=Ir.at(-1))==null?void 0:f[1];a.value=c?c+10:Number(Qe(t)),i&&Ir.push([r.uid,a.value]),s==null||s.activeChildren.add(r.uid),lt(()=>{if(i){const d=ee(Ir).findIndex(m=>m[0]===r.uid);Ir.splice(d,1)}s==null||s.activeChildren.delete(r.uid)})});const l=le(!0);i&&_t(()=>{var f;const c=((f=Ir.at(-1))==null?void 0:f[0])===r.uid;setTimeout(()=>l.value=c)});const u=G(()=>!o.activeChildren.size);return{globalTop:ar(l),localTop:u,stackStyles:G(()=>({zIndex:a.value}))}}function Yb(e){return{teleportTarget:M(()=>{const n=e();if(n===!0||!Te)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let i=[...r.children].find(s=>s.matches(".v-overlay-container"));return i||(i=document.createElement("div"),i.className="v-overlay-container",r.appendChild(i)),i})}}const Ed=Z({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),Jn=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:i,group:s,...o}=e,{component:a=s?Xo:vn,...l}=co(r)?r:{};let u;return co(r)?u=ke(l,Og({disabled:i,group:s}),o):u=ke({name:i||!r?"":r},o),bn(a,u,n)};function Xb(){return!0}function xd(e,t,n){if(!e||Ad(e,n)===!1)return!1;const r=Pf(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const i=(typeof n.value=="object"&&n.value.include||(()=>[]))();return i.push(t),!i.some(s=>s==null?void 0:s.contains(e.target))}function Ad(e,t){return(typeof t.value=="object"&&t.value.closeConditional||Xb)(e)}function Zb(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&xd(e,t,n)&&setTimeout(()=>{Ad(e,n)&&r&&r(e)},0)}function Eu(e,t){const n=Pf(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const xu={mounted(e,t){const n=i=>Zb(i,e,t),r=i=>{e._clickOutside.lastMousedownWasOutside=xd(i,e,t)};Eu(e,i=>{i.addEventListener("click",n,!0),i.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(Eu(e,n=>{var s;if(!n||!((s=e._clickOutside)!=null&&s[t.instance.$.uid]))return;const{onClick:r,onMousedown:i}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",i,!0)}),delete e._clickOutside[t.instance.$.uid])}};function Jb(e){const{modelValue:t,color:n,...r}=e;return I(vn,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&q("div",ke({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const wa=Z({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...Bb(),...Me(),..._r(),...zb(),...xb(),...Ob(),...jb(),...vt(),...Ed()},"VOverlay"),Ji=ve()({name:"VOverlay",directives:{vClickOutside:xu},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...$n(wa(),["disableInitialFocus"])},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,keydown:e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:i}=t;const s=$e("VOverlay"),o=ue(),a=ue(),l=ue(),u=Zt(e,"modelValue"),c=M({get:()=>u.value,set:w=>{w&&e.disabled||(u.value=w)}}),{themeClasses:f}=Et(e),{rtlClasses:d,isRtl:m}=ci(),{hasContent:g,onAfterLeave:v}=Kb(e,c),E=ir(()=>typeof e.scrim=="string"?e.scrim:null),{globalTop:p,localTop:S,stackStyles:b}=qb(c,()=>e.zIndex,e._disableGlobalStack),{activatorEl:_,activatorRef:O,target:A,targetEl:D,targetRef:k,activatorEvents:T,contentEvents:H,scrimEvents:B}=$b(e,{isActive:c,isTop:S,contentEl:l}),{teleportTarget:x}=Yb(()=>{var $,X,ce;const w=e.attach||e.contained;if(w)return w;const F=(($=_==null?void 0:_.value)==null?void 0:$.getRootNode())||((ce=(X=s.proxy)==null?void 0:X.$el)==null?void 0:ce.getRootNode());return F instanceof ShadowRoot?F:!1}),{dimensionStyles:N}=Cr(e),j=Ub(),{scopeId:Y}=Sa();fe(()=>e.disabled,w=>{w&&(c.value=!1)});const{contentStyles:ie,updateLocation:J}=Ab(e,{isRtl:m,contentEl:l,target:A,isActive:c});Rb(e,{root:o,contentEl:l,targetEl:D,target:A,isActive:c,updateLocation:J});function te(w){i("click:outside",w),e.persistent?Ge():c.value=!1}function Oe(w){return c.value&&S.value&&(!e.scrim||w.target===a.value||w instanceof MouseEvent&&w.shadowTarget===a.value)}Gb(e,{isActive:c,localTop:S,contentEl:l,activatorEl:_}),Te&&fe(c,w=>{w?window.addEventListener("keydown",me):window.removeEventListener("keydown",me)},{immediate:!0}),Ct(()=>{Te&&window.removeEventListener("keydown",me)});function me(w){var F,$,X;w.key==="Escape"&&p.value&&((F=l.value)!=null&&F.contains(document.activeElement)||i("keydown",w),e.persistent?Ge():(c.value=!1,($=l.value)!=null&&$.contains(document.activeElement)&&((X=_.value)==null||X.focus())))}function Ae(w){w.key==="Escape"&&!p.value||i("keydown",w)}const Se=gb();yr(()=>e.closeOnBack,()=>{vb(Se,w=>{p.value&&c.value?(w(!1),e.persistent?Ge():c.value=!1):w()})});const Ne=ue();fe(()=>c.value&&(e.absolute||e.contained)&&x.value==null,w=>{if(w){const F=cv(o.value);F&&F!==document.scrollingElement&&(Ne.value=F.scrollTop)}});function Ge(){e.noClickAnimation||l.value&&Pn(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:go})}function nt(){i("afterEnter")}function He(){v(),i("afterLeave")}return Ie(()=>{var w;return q(Pe,null,[(w=n.activator)==null?void 0:w.call(n,{isActive:c.value,targetRef:k,props:ke({ref:O},T.value,e.activatorProps)}),j.value&&g.value&&I(jm,{disabled:!x.value,to:x.value},{default:()=>[q("div",ke({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},f.value,d.value,e.class],style:[b.value,{"--v-overlay-opacity":e.opacity,top:se(Ne.value)},e.style],ref:o,onKeydown:Ae},Y,r),[I(Jb,ke({color:E,modelValue:c.value&&!!e.scrim,ref:a},B.value),null),I(Jn,{appear:!0,persisted:!0,transition:e.transition,target:A.value,onAfterEnter:nt,onAfterLeave:He},{default:()=>{var F;return[Vn(q("div",ke({ref:l,class:["v-overlay__content",e.contentClass],style:[N.value,ie.value]},H.value,e.contentProps),[(F=n.default)==null?void 0:F.call(n,{isActive:c})]),[[Yo,c.value],[xu,{handler:te,closeConditional:Oe,include:()=>[_.value]}]])]}})])]})])}),{activatorEl:_,scrimEl:a,target:A,animateClick:Ge,contentEl:l,rootEl:o,globalTop:p,localTop:S,updateLocation:J}}}),Ks=Symbol("Forwarded refs");function qs(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function kd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rt.value=e())}function s(o){const a=o?getComputedStyle(o):{transitionDuration:.2},l=parseFloat(a.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const u=performance.now();n=window.setInterval(()=>{const c=performance.now()-u+l;t.value=Math.max(e()-c,0),t.value<=0&&r()},l)}return lt(r),{clear:r,time:t,start:s,reset:i}}const e0=Z({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...Ss({location:"bottom"}),...ga(),...sn(),...jn(),...vt(),...$n(wa({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","retainFocus","captureFocus","disableInitialFocus","scrim","scrollStrategy","stickToTarget","viewportMargin"])},"VSnackbar"),t0=ve()({name:"VSnackbar",props:e0(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Zt(e,"modelValue"),{positionClasses:i}=va(e),{scopeId:s}=Sa(),{themeClasses:o}=Et(e),{colorClasses:a,colorStyles:l,variantClasses:u}=gi(e),{roundedClasses:c}=on(e),f=Qb(()=>Number(e.timeout)),d=ue(),m=ue(),g=le(!1),v=le(0),E=ue(),p=ge(ti,void 0);yr(()=>!!p,()=>{const B=xp();_t(()=>{E.value=B.mainStyles.value})}),fe(r,b),fe(()=>e.timeout,b),yn(()=>{r.value&&b()});let S=-1;function b(){f.reset(),window.clearTimeout(S);const B=Number(e.timeout);if(!r.value||B===-1)return;const x=Jo(m.value);f.start(x),S=window.setTimeout(()=>{r.value=!1},B)}function _(){f.reset(),window.clearTimeout(S)}function O(){g.value=!0,_()}function A(){g.value=!1,b()}function D(B){v.value=B.touches[0].clientY}function k(B){Math.abs(v.value-B.changedTouches[0].clientY)>50&&(r.value=!1)}function T(){g.value&&A()}const H=M(()=>e.location.split(" ").reduce((B,x)=>(B[`v-snackbar--${x}`]=!0,B),{}));return Ie(()=>{const B=Ji.filterProps(e),x=!!(n.default||n.text||e.text);return I(Ji,ke({ref:d,class:["v-snackbar",{"v-snackbar--active":r.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},H.value,i.value,e.class],style:[E.value,e.style]},B,{modelValue:r.value,"onUpdate:modelValue":N=>r.value=N,contentProps:ke({class:["v-snackbar__wrapper",o.value,a.value,c.value,u.value],style:[l.value],onPointerenter:O,onPointerleave:A},B.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:D,onTouchend:k,onAfterLeave:T},s),{default:()=>{var N,j;return[hi(!1,"v-snackbar"),e.timer&&!g.value&&q("div",{key:"timer",class:"v-snackbar__timer"},[I(cd,{ref:m,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,modelValue:f.time.value},null)]),x&&q("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((N=n.text)==null?void 0:N.call(n))??e.text,(j=n.default)==null?void 0:j.call(n)]),n.actions&&I(wt,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[q("div",{class:"v-snackbar__actions"},[n.actions({isActive:r})])]})]},activator:n.activator})}),kd({},d)}}),n0=ls({name:"GlobalMessage",setup(){var s;const e=ue(!1),t=ue(null),n={success:"mdi-check-circle",error:"mdi-alert-circle",warning:"mdi-alert",info:"mdi-information"},r={success:"success",error:"error",warning:"warning",info:"info"},i=(s=Xn==null?void 0:Xn.onSnackbar)==null?void 0:s.call(Xn,async o=>{o&&(e.value&&(e.value=!1,await qe()),t.value=o,e.value=!0)});return Ct(()=>i==null?void 0:i()),{snackbar:e,message:t,icons:n,colors:r}}}),r0={class:"d-flex align-center"},i0={class:"text-subtitle-2 font-weight-medium"},s0={key:0,class:"text-body-2"};function o0(e,t,n,r,i,s){var o;return bt(),$t(t0,{modelValue:e.snackbar,"onUpdate:modelValue":t[1]||(t[1]=a=>e.snackbar=a),color:e.colors[(o=e.message)==null?void 0:o.type]||e.colors.info,timeout:2e3,location:"top right","multi-line":"",variant:"tonal"},{actions:je(()=>[I(Sd,{icon:"mdi-close",variant:"text",onClick:t[0]||(t[0]=a=>e.snackbar=!1)})]),default:je(()=>{var a,l,u,c;return[q("div",r0,[I(Wt,{icon:e.icons[(a=e.message)==null?void 0:a.type]||e.icons.info,class:"mr-2"},null,8,["icon"]),q("div",null,[q("div",i0,xt((l=e.message)==null?void 0:l.title),1),(u=e.message)!=null&&u.content?(bt(),Jc("div",s0,xt((c=e.message)==null?void 0:c.content),1)):so("",!0)])])]}),_:1},8,["modelValue","color"])}const Td=sd(n0,[["render",o0]]),a0=Z({...Me(),...tt()},"VCardActions"),Pd=ve()({name:"VCardActions",props:a0(),setup(e,t){let{slots:n}=t;return hs({VBtn:{slim:!0,variant:"text"}}),Ie(()=>I(e.tag,{class:he(["v-card-actions",e.class]),style:xe(e.style)},n)),{}}}),l0=Z({opacity:[Number,String],...Me(),...tt()},"VCardSubtitle"),u0=ve()({name:"VCardSubtitle",props:l0(),setup(e,t){let{slots:n}=t;return Ie(()=>I(e.tag,{class:he(["v-card-subtitle",e.class]),style:xe([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),Id=ia("v-card-title");function c0(e){return{aspectStyles:M(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const Od=Z({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Me(),..._r()},"VResponsive"),Au=ve()({name:"VResponsive",props:Od(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=c0(e),{dimensionStyles:i}=Cr(e);return Ie(()=>{var s;return q("div",{class:he(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:xe([i.value,e.style])},[q("div",{class:"v-responsive__sizer",style:xe(r.value)},null),(s=n.additional)==null?void 0:s.call(n),n.default&&q("div",{class:he(["v-responsive__content",e.contentClass])},[n.default()])])}),{}}});function f0(e,t){if(!Zo)return;const n=t.modifiers||{},r=t.value,{handler:i,options:s}=typeof r=="object"?r:{handler:r,options:{}},o=new IntersectionObserver(function(){var f;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=(f=e._observe)==null?void 0:f[t.instance.$.uid];if(!u)return;const c=a.some(d=>d.isIntersecting);i&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&i(c,a,l),c&&n.once?Rd(e,t):u.init=!0},s);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function Rd(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const ku={mounted:f0,unmounted:Rd},d0=Z({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...Od(),...Me(),...sn(),...Ed()},"VImg"),Dd=ve()({name:"VImg",directives:{vIntersect:ku},props:d0(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:i,backgroundColorStyles:s}=ir(()=>e.color),{roundedClasses:o}=on(e),a=$e("VImg"),l=le(""),u=ue(),c=le(e.eager?"loading":"idle"),f=le(),d=le(),m=M(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),g=M(()=>m.value.aspect||f.value/d.value||0);fe(()=>e.src,()=>{v(c.value!=="idle")}),fe(g,(x,N)=>{!x&&N&&u.value&&_(u.value)}),fs(()=>v());function v(x){if(!(e.eager&&x)&&!(Zo&&!x&&!e.eager)){if(c.value="loading",m.value.lazySrc){const N=new Image;N.src=m.value.lazySrc,_(N,null)}m.value.src&&qe(()=>{var N;n("loadstart",((N=u.value)==null?void 0:N.currentSrc)||m.value.src),setTimeout(()=>{var j;if(!a.isUnmounted)if((j=u.value)!=null&&j.complete){if(u.value.naturalWidth||p(),c.value==="error")return;g.value||_(u.value,null),c.value==="loading"&&E()}else g.value||_(u.value),S()})})}}function E(){var x;a.isUnmounted||(S(),_(u.value),c.value="loaded",n("load",((x=u.value)==null?void 0:x.currentSrc)||m.value.src))}function p(){var x;a.isUnmounted||(c.value="error",n("error",((x=u.value)==null?void 0:x.currentSrc)||m.value.src))}function S(){const x=u.value;x&&(l.value=x.currentSrc||x.src)}let b=-1;Ct(()=>{clearTimeout(b)});function _(x){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const j=()=>{if(clearTimeout(b),a.isUnmounted)return;const{naturalHeight:Y,naturalWidth:ie}=x;Y||ie?(f.value=ie,d.value=Y):!x.complete&&c.value==="loading"&&N!=null?b=window.setTimeout(j,N):(x.currentSrc.endsWith(".svg")||x.currentSrc.startsWith("data:image/svg+xml"))&&(f.value=1,d.value=1)};j()}const O=G(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),A=()=>{var j;if(!m.value.src||c.value==="idle")return null;const x=q("img",{class:he(["v-img__img",O.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:m.value.src,srcset:m.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:E,onError:p},null),N=(j=r.sources)==null?void 0:j.call(r);return I(Jn,{transition:e.transition,appear:!0},{default:()=>[Vn(N?q("picture",{class:"v-img__picture"},[N,x]):x,[[Yo,c.value==="loaded"]])]})},D=()=>I(Jn,{transition:e.transition},{default:()=>[m.value.lazySrc&&c.value!=="loaded"&&q("img",{class:he(["v-img__img","v-img__img--preload",O.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:m.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),k=()=>r.placeholder?I(Jn,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!r.error)&&q("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,T=()=>r.error?I(Jn,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&q("div",{class:"v-img__error"},[r.error()])]}):null,H=()=>e.gradient?q("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,B=le(!1);{const x=fe(g,N=>{N&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{B.value=!0})}),x())})}return Ie(()=>{const x=Au.filterProps(e);return Vn(I(Au,ke({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!B.value},i.value,o.value,e.class],style:[{width:se(e.width==="auto"?f.value:e.width)},s.value,e.style]},x,{aspectRatio:g.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>q(Pe,null,[I(A,null,null),I(D,null,null),I(H,null,null),I(k,null,null),I(T,null,null)]),default:r.default}),[[ku,{handler:v,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:f,naturalHeight:d}}}),m0=Z({start:Boolean,end:Boolean,icon:Ke,image:String,text:String,...br(),...Me(),...Hn(),...sn(),...ys(),...tt(),...vt(),...jn({variant:"flat"})},"VAvatar"),Qi=ve()({name:"VAvatar",props:m0(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Et(e),{borderClasses:i}=Sr(e),{colorClasses:s,colorStyles:o,variantClasses:a}=gi(e),{densityClasses:l}=wr(e),{roundedClasses:u}=on(e),{sizeClasses:c,sizeStyles:f}=bs(e);return Ie(()=>I(e.tag,{class:he(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,i.value,s.value,l.value,u.value,c.value,a.value,e.class]),style:xe([o.value,f.value,e.style])},{default:()=>[n.default?I(wt,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?I(Dd,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?I(Wt,{key:"icon",icon:e.icon},null):e.text,hi(!1,"v-avatar")]})),{}}}),h0=Z({appendAvatar:String,appendIcon:Ke,prependAvatar:String,prependIcon:Ke,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...Me(),...Hn(),...tt()},"VCardItem"),g0=ve()({name:"VCardItem",props:h0(),setup(e,t){let{slots:n}=t;return Ie(()=>{const r=!!(e.prependAvatar||e.prependIcon),i=!!(r||n.prepend),s=!!(e.appendAvatar||e.appendIcon),o=!!(s||n.append),a=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return I(e.tag,{class:he(["v-card-item",e.class]),style:xe(e.style)},{default:()=>{var u;return[i&&q("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?I(wt,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):q(Pe,null,[e.prependAvatar&&I(Qi,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&I(Wt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),q("div",{class:"v-card-item__content"},[a&&I(Id,{key:"title"},{default:()=>{var c;return[((c=n.title)==null?void 0:c.call(n))??xt(e.title)]}}),l&&I(u0,{key:"subtitle"},{default:()=>{var c;return[((c=n.subtitle)==null?void 0:c.call(n))??xt(e.subtitle)]}}),(u=n.default)==null?void 0:u.call(n)]),o&&q("div",{key:"append",class:"v-card-item__append"},[n.append?I(wt,{key:"append-defaults",disabled:!s,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):q(Pe,null,[e.appendIcon&&I(Wt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&I(Qi,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]}})}),{}}}),v0=Z({opacity:[Number,String],...Me(),...tt()},"VCardText"),ko=ve()({name:"VCardText",props:v0(),setup(e,t){let{slots:n}=t;return Ie(()=>I(e.tag,{class:he(["v-card-text",e.class]),style:xe([{"--v-card-text-opacity":e.opacity},e.style])},n)),{}}}),p0=Z({appendAvatar:String,appendIcon:Ke,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Ke,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...br(),...Me(),...Hn(),..._r(),...di(),...fd(),...Ss(),...ga(),...sn(),...ya(),...tt(),...vt(),...jn({variant:"elevated"})},"VCard"),Tu=ve()({name:"VCard",directives:{vRipple:si},props:p0(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:i}=Et(e),{borderClasses:s}=Sr(e),{colorClasses:o,colorStyles:a,variantClasses:l}=gi(e),{densityClasses:u}=wr(e),{dimensionStyles:c}=Cr(e),{elevationClasses:f}=mi(e),{loaderClasses:d}=dd(e),{locationStyles:m}=ha(e),{positionClasses:g}=va(e),{roundedClasses:v}=on(e),E=pa(e,n),p=le(void 0);return fe(()=>e.loading,(S,b)=>{p.value=!S&&typeof b=="string"?b:typeof S=="boolean"?void 0:S},{immediate:!0}),Ie(()=>{const S=e.link!==!1&&E.isLink.value,b=!e.disabled&&e.link!==!1&&(e.link||E.isClickable.value),_=S?"a":e.tag,O=!!(r.title||e.title!=null),A=!!(r.subtitle||e.subtitle!=null),D=O||A,k=!!(r.append||e.appendAvatar||e.appendIcon),T=!!(r.prepend||e.prependAvatar||e.prependIcon),H=!!(r.image||e.image),B=D||T||k,x=!!(r.text||e.text!=null);return Vn(I(_,ke(E.linkProps,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":b},i.value,s.value,o.value,u.value,f.value,d.value,g.value,v.value,l.value,e.class],style:[a.value,c.value,m.value,e.style],onClick:b&&E.navigate,tabindex:e.disabled?-1:void 0}),{default:()=>{var N;return[H&&q("div",{key:"image",class:"v-card__image"},[r.image?I(wt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):I(Dd,{key:"image-img",cover:!0,src:e.image},null)]),I(db,{name:"v-card",active:!!e.loading,color:p.value},{default:r.loader}),B&&I(g0,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),x&&I(ko,{key:"text"},{default:()=>{var j;return[((j=r.text)==null?void 0:j.call(r))??e.text]}}),(N=r.default)==null?void 0:N.call(r),r.actions&&I(Pd,null,{default:r.actions}),hi(b,"v-card")]}}),[[si,b&&e.ripple]])}),{}}}),y0=Z({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function pt(e,t,n){return ve()({name:e,props:y0({mode:n,origin:t}),setup(r,i){let{slots:s}=i;const o={onBeforeEnter(a){r.origin&&(a.style.transformOrigin=r.origin)},onLeave(a){if(r.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:f}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${l}px`,a.style.left=`${u}px`,a.style.width=`${c}px`,a.style.height=`${f}px`}r.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(r.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:l,top:u,left:c,width:f,height:d}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=l||"",a.style.top=u||"",a.style.left=c||"",a.style.width=f||"",a.style.height=d||""}}};return()=>{const a=r.group?Xo:vn;return bn(a,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:o},s.default)}}})}function Ld(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return ve()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:Xr()},group:Boolean},setup(r,i){let{slots:s}=i;const o=r.group?Xo:vn;return()=>bn(o,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},s.default)}})}function Md(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=at(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const a=o._initialStyle;if(!a)return;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const l=`${o[r]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=a.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=l})},onAfterEnter:s,onEnterCancelled:s,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[r]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:i,onLeaveCancelled:i};function i(o){e&&o._parent&&o._parent.classList.remove(e),s(o)}function s(o){if(!o._initialStyle)return;const a=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,a!=null&&(o.style[n]=a),delete o._initialStyle}}const b0=Z({target:[Object,Array]},"v-dialog-transition"),Ys=new WeakMap,S0=ve()({name:"VDialogTransition",props:b0(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(i){i.style.pointerEvents="none",i.style.visibility="hidden"},async onEnter(i,s){var d;await new Promise(m=>requestAnimationFrame(m)),await new Promise(m=>requestAnimationFrame(m)),i.style.visibility="";const o=Iu(e.target,i),{x:a,y:l,sx:u,sy:c,speed:f}=o;if(Ys.set(i,o),Xr())Pn(i,[{opacity:0},{}],{duration:125*f,easing:Ml}).finished.then(()=>s());else{const m=Pn(i,[{transform:`translate(${a}px, ${l}px) scale(${u}, ${c})`,opacity:0},{}],{duration:225*f,easing:Ml});(d=Pu(i))==null||d.forEach(g=>{Pn(g,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*f,easing:go})}),m.finished.then(()=>s())}},onAfterEnter(i){i.style.removeProperty("pointer-events")},onBeforeLeave(i){i.style.pointerEvents="none"},async onLeave(i,s){var d;await new Promise(m=>requestAnimationFrame(m));let o;!Ys.has(i)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?o=Iu(e.target,i):o=Ys.get(i);const{x:a,y:l,sx:u,sy:c,speed:f}=o;Xr()?Pn(i,[{},{opacity:0}],{duration:85*f,easing:Nl}).finished.then(()=>s()):(Pn(i,[{},{transform:`translate(${a}px, ${l}px) scale(${u}, ${c})`,opacity:0}],{duration:125*f,easing:Nl}).finished.then(()=>s()),(d=Pu(i))==null||d.forEach(g=>{Pn(g,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*f,easing:go})}))},onAfterLeave(i){i.style.removeProperty("pointer-events")}};return()=>e.target?I(vn,ke({name:"dialog-transition"},r,{css:!1}),n):I(vn,{name:"dialog-transition"},n)}});function Pu(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function Iu(e,t){const n=_f(e),r=Cf(t),[i,s]=getComputedStyle(t).transformOrigin.split(" ").map(p=>parseFloat(p)),[o,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;o==="left"||a==="left"?l-=n.width/2:(o==="right"||a==="right")&&(l+=n.width/2);let u=n.top+n.height/2;o==="top"||a==="top"?u-=n.height/2:(o==="bottom"||a==="bottom")&&(u+=n.height/2);const c=n.width/r.width,f=n.height/r.height,d=Math.max(1,c,f),m=c/d||0,g=f/d||0,v=r.width*r.height/(window.innerWidth*window.innerHeight),E=v>.12?Math.min(1.5,(v-.12)*10+1):1;return{x:l-(i+r.left),y:u-(s+r.top),sx:m,sy:g,speed:E}}pt("fab-transition","center center","out-in");pt("dialog-bottom-transition");pt("dialog-top-transition");const HS=pt("fade-transition"),jS=pt("scale-transition");pt("scroll-x-transition");pt("scroll-x-reverse-transition");pt("scroll-y-transition");pt("scroll-y-reverse-transition");pt("slide-x-transition");const WS=pt("slide-x-reverse-transition"),GS=pt("slide-y-transition");pt("slide-y-reverse-transition");const w0=Ld("expand-transition",Md()),US=Ld("expand-x-transition",Md("",!0)),_0=Z({fullscreen:Boolean,scrollable:Boolean,...$n(wa({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:S0},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),C0=ve()({name:"VDialog",props:_0(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const i=Zt(e,"modelValue"),{scopeId:s}=Sa(),o=ue();function a(){var u;n("afterEnter"),(e.scrim||e.retainFocus)&&((u=o.value)!=null&&u.contentEl)&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function l(){n("afterLeave")}return fe(i,async u=>{var c;u||(await qe(),(c=o.value.activatorEl)==null||c.focus({preventScroll:!0}))}),Ie(()=>{const u=Ji.filterProps(e),c=ke({"aria-haspopup":"dialog"},e.activatorProps),f=ke({tabindex:-1},e.contentProps);return I(Ji,ke({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},u,{modelValue:i.value,"onUpdate:modelValue":d=>i.value=d,"aria-modal":"true",activatorProps:c,contentProps:f,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:a,onAfterLeave:l},s),{activator:r.activator,default:function(){for(var d=arguments.length,m=new Array(d),g=0;g{var v;return[(v=r.default)==null?void 0:v.call(r,...m)]}})}})}),kd({},o)}}),E0=["dotted","dashed","solid","double"],x0=Z({color:String,contentOffset:[Number,String,Array],gradient:Boolean,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,variant:{type:String,default:"solid",validator:e=>E0.includes(e)},...Me(),...vt()},"VDivider"),Nd=ve()({name:"VDivider",props:x0(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:i}=Et(e),{textColorClasses:s,textColorStyles:o}=hr(()=>e.color),a=M(()=>{const u={};return e.length&&(u[e.vertical?"height":"width"]=se(e.length)),e.thickness&&(u[e.vertical?"borderRightWidth":"borderTopWidth"]=se(e.thickness)),u}),l=G(()=>{const u=Array.isArray(e.contentOffset)?e.contentOffset[0]:e.contentOffset,c=Array.isArray(e.contentOffset)?e.contentOffset[1]:0;return{marginBlock:e.vertical&&u?se(u):void 0,marginInline:!e.vertical&&u?se(u):void 0,transform:c?`translate${e.vertical?"X":"Y"}(${se(c)})`:void 0}});return Ie(()=>{const u=q("hr",{class:he([{"v-divider":!0,"v-divider--gradient":e.gradient&&!r.default,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},i.value,s.value,e.class]),style:xe([a.value,o.value,{"--v-border-opacity":e.opacity},{"border-style":e.variant},e.style]),"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?q("div",{class:he(["v-divider__wrapper",{"v-divider__wrapper--gradient":e.gradient,"v-divider__wrapper--inset":e.inset,"v-divider__wrapper--vertical":e.vertical}])},[u,q("div",{class:"v-divider__content",style:xe(l.value)},[r.default()]),u]):u}),{}}}),A0=ia("v-spacer","div","VSpacer"),To=Symbol.for("vuetify:list");function Vd(){let{filterable:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filterable:!1};const t=ge(To,{filterable:!1,hasPrepend:le(!1),updateHasPrepend:()=>null}),n={filterable:t.filterable||e,hasPrepend:le(!1),updateHasPrepend:r=>{r&&(n.hasPrepend.value=r)}};return et(To,n),t}function Fd(){return ge(To,null)}const _a=e=>{const t={activate:n=>{let{id:r,value:i,activated:s}=n;return r=ee(r),e&&!i&&s.size===1&&s.has(r)||(i?s.add(r):s.delete(r)),s},in:(n,r,i)=>{let s=new Set;if(n!=null)for(const o of ea(n))s=t.activate({id:o,value:!0,activated:new Set(s),children:r,parents:i});return s},out:n=>Array.from(n)};return t},Bd=e=>{const t=_a(e);return{activate:r=>{let{activated:i,id:s,...o}=r;s=ee(s);const a=i.has(s)?new Set([s]):new Set;return t.activate({...o,id:s,activated:a})},in:(r,i,s)=>{let o=new Set;if(r!=null){const a=ea(r);a.length&&(o=t.in(a.slice(0,1),i,s))}return o},out:(r,i,s)=>t.out(r,i,s)}},k0=e=>{const t=_a(e);return{activate:r=>{let{id:i,activated:s,children:o,...a}=r;return i=ee(i),o.has(i)?s:t.activate({id:i,activated:s,children:o,...a})},in:t.in,out:t.out}},T0=e=>{const t=Bd(e);return{activate:r=>{let{id:i,activated:s,children:o,...a}=r;return i=ee(i),o.has(i)?s:t.activate({id:i,activated:s,children:o,...a})},in:t.in,out:t.out}},P0={open:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(n){const s=new Set;s.add(t);let o=i.get(t);for(;o!=null;)s.add(o),o=i.get(o);return s}else return r.delete(t),r},select:()=>null},$d={open:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(n){let s=i.get(t);for(r.add(t);s!=null&&s!==t;)r.add(s),s=i.get(s);return r}else r.delete(t);return r},select:()=>null},I0={open:$d.open,select:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(!n)return r;const s=[];let o=i.get(t);for(;o!=null;)s.push(o),o=i.get(o);return new Set(s)}},Ca=e=>{const t={select:n=>{let{id:r,value:i,selected:s}=n;if(r=ee(r),e&&!i){const o=Array.from(s.entries()).reduce((a,l)=>{let[u,c]=l;return c==="on"&&a.push(u),a},[]);if(o.length===1&&o[0]===r)return s}return s.set(r,i?"on":"off"),s},in:(n,r,i,s)=>{const o=new Map;for(const a of n||[])t.select({id:a,value:!0,selected:o,children:r,parents:i,disabled:s});return o},out:n=>{const r=[];for(const[i,s]of n.entries())s==="on"&&r.push(i);return r}};return t},Hd=e=>{const t=Ca(e);return{select:r=>{let{selected:i,id:s,...o}=r;s=ee(s);const a=i.has(s)?new Map([[s,i.get(s)]]):new Map;return t.select({...o,id:s,selected:a})},in:(r,i,s,o)=>r!=null&&r.length?t.in(r.slice(0,1),i,s,o):new Map,out:(r,i,s)=>t.out(r,i,s)}},O0=e=>{const t=Ca(e);return{select:r=>{let{id:i,selected:s,children:o,...a}=r;return i=ee(i),o.has(i)?s:t.select({id:i,selected:s,children:o,...a})},in:t.in,out:t.out}},R0=e=>{const t=Hd(e);return{select:r=>{let{id:i,selected:s,children:o,...a}=r;return i=ee(i),o.has(i)?s:t.select({id:i,selected:s,children:o,...a})},in:t.in,out:t.out}},jd=e=>{const t={select:n=>{let{id:r,value:i,selected:s,children:o,parents:a,disabled:l}=n;r=ee(r);const u=new Map(s),c=[r];for(;c.length;){const d=c.shift();l.has(d)||s.set(ee(d),i?"on":"off"),o.has(d)&&c.push(...o.get(d))}let f=ee(a.get(r));for(;f;){let d=!0,m=!0;for(const g of o.get(f)){const v=ee(g);if(!l.has(v)&&(s.get(v)!=="on"&&(d=!1),s.has(v)&&s.get(v)!=="off"&&(m=!1),!d&&!m))break}s.set(f,d?"on":m?"off":"indeterminate"),f=ee(a.get(f))}return e&&!i&&Array.from(s.entries()).reduce((m,g)=>{let[v,E]=g;return E==="on"&&m.push(v),m},[]).length===0?u:s},in:(n,r,i,s)=>{let o=new Map;for(const a of n||[])o=t.select({id:a,value:!0,selected:o,children:r,parents:i,disabled:s});return o},out:(n,r)=>{const i=[];for(const[s,o]of n.entries())o==="on"&&!r.has(s)&&i.push(s);return i}};return t},D0=e=>{const t=jd(e);return{select:t.select,in:t.in,out:(r,i,s)=>{const o=[];for(const[a,l]of r.entries())if(l==="on"){if(s.has(a)){const u=s.get(a);if(r.get(u)==="on")continue}o.push(a)}return o}}},gr=Symbol.for("vuetify:nested"),Wd={id:le(),root:{itemsRegistration:ue("render"),register:()=>null,unregister:()=>null,children:ue(new Map),parents:ue(new Map),disabled:ue(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ue(!1),selectable:ue(!1),opened:ue(new Set),activated:ue(new Set),selected:ue(new Map),selectedValues:ue([]),getPath:()=>[]}},L0=Z({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean,itemsRegistration:{type:String,default:"render"}},"nested"),M0=(e,t,n)=>{let r=!1;const i=le(new Map),s=le(new Map),o=le(new Set),a=Zt(e,"opened",e.opened,b=>new Set(Array.isArray(b)?b.map(_=>ee(_)):b),b=>[...b.values()]),l=M(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return k0(e.mandatory);case"single-leaf":return T0(e.mandatory);case"independent":return _a(e.mandatory);case"single-independent":default:return Bd(e.mandatory)}}),u=M(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return R0(e.mandatory);case"leaf":return O0(e.mandatory);case"independent":return Ca(e.mandatory);case"single-independent":return Hd(e.mandatory);case"trunk":return D0(e.mandatory);case"classic":default:return jd(e.mandatory)}}),c=M(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return I0;case"single":return P0;case"multiple":default:return $d}}),f=Zt(e,"activated",e.activated,b=>l.value.in(b,i.value,s.value),b=>l.value.out(b,i.value,s.value)),d=Zt(e,"selected",e.selected,b=>u.value.in(b,i.value,s.value,o.value),b=>u.value.out(b,i.value,s.value));Ct(()=>{r=!0});function m(b){const _=[];let O=ee(b);for(;O!==void 0;)_.unshift(O),O=s.value.get(O);return _}const g=$e("nested"),v=new Set,E=mv(()=>{qe(()=>{i.value=new Map(i.value),s.value=new Map(s.value)})},100);fe(()=>[t.value,Qe(n)],()=>{e.itemsRegistration==="props"&&p()},{immediate:!0});function p(){const b=new Map,_=new Map,O=new Set,A=Qe(n)?T=>ee(T.raw):T=>T.value,D=[...t.value];let k=0;for(;ke.activatable),selectable:G(()=>e.selectable),activated:f,selected:d,selectedValues:M(()=>{const b=[];for(const[_,O]of d.value.entries())O==="on"&&b.push(_);return b}),itemsRegistration:G(()=>e.itemsRegistration),register:(b,_,O,A)=>{if(v.has(b)){m(b).map(String).join(" -> "),m(_).concat(b).map(String).join(" -> ");return}else v.add(b);_&&b!==_&&s.value.set(b,_),O&&o.value.add(b),A&&i.value.set(b,[]),_!=null&&i.value.set(_,[...i.value.get(_)||[],b]),E()},unregister:b=>{if(r)return;v.delete(b),i.value.delete(b),o.value.delete(b);const _=s.value.get(b);if(_){const O=i.value.get(_)??[];i.value.set(_,O.filter(A=>A!==b))}s.value.delete(b),E()},open:(b,_,O)=>{g.emit("click:open",{id:b,value:_,path:m(b),event:O});const A=c.value.open({id:b,value:_,opened:new Set(a.value),children:i.value,parents:s.value,event:O});A&&(a.value=A)},openOnSelect:(b,_,O)=>{const A=c.value.select({id:b,value:_,selected:new Map(d.value),opened:new Set(a.value),children:i.value,parents:s.value,event:O});A&&(a.value=A)},select:(b,_,O)=>{g.emit("click:select",{id:b,value:_,path:m(b),event:O});const A=u.value.select({id:b,value:_,selected:new Map(d.value),children:i.value,parents:s.value,disabled:o.value,event:O});A&&(d.value=A),S.root.openOnSelect(b,_,O)},activate:(b,_,O)=>{if(!e.activatable)return S.root.select(b,!0,O);g.emit("click:activate",{id:b,value:_,path:m(b),event:O});const A=l.value.activate({id:b,value:_,activated:new Set(f.value),children:i.value,parents:s.value,event:O});if(A.size!==f.value.size)f.value=A;else{for(const D of A)if(!f.value.has(D)){f.value=A;return}for(const D of f.value)if(!A.has(D)){f.value=A;return}}},children:i,parents:s,disabled:o,getPath:m}};return et(gr,S),S.root},Gd=(e,t,n)=>{const r=ge(gr,Wd),i=Symbol("nested item"),s=M(()=>{const a=ee(Qe(e));return a!==void 0?a:i}),o={...r,id:s,open:(a,l)=>r.root.open(s.value,a,l),openOnSelect:(a,l)=>r.root.openOnSelect(s.value,a,l),isOpen:M(()=>r.root.opened.value.has(s.value)),parent:M(()=>r.root.parents.value.get(s.value)),activate:(a,l)=>r.root.activate(s.value,a,l),isActivated:M(()=>r.root.activated.value.has(s.value)),select:(a,l)=>r.root.select(s.value,a,l),isSelected:M(()=>r.root.selected.value.get(s.value)==="on"),isIndeterminate:M(()=>r.root.selected.value.get(s.value)==="indeterminate"),isLeaf:M(()=>!r.root.children.value.get(s.value)),isGroupActivator:r.isGroupActivator};return fs(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||qe(()=>{r.root.register(s.value,r.id.value,Qe(t),n)})}),Ct(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||r.root.unregister(s.value)}),fe(s,(a,l)=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||(r.root.unregister(l),qe(()=>{r.root.register(a,r.id.value,Qe(t),n)}))}),n&&et(gr,o),o},N0=()=>{const e=ge(gr,Wd);et(gr,{...e,isGroupActivator:!0})};function V0(){const e=le(!1);return yn(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:G(()=>e.value?void 0:{transition:"none !important"}),isBooted:ar(e)}}const F0=pr({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return N0(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),B0=Z({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Ke,default:"$collapse"},disabled:Boolean,expandIcon:{type:Ke,default:"$expand"},rawId:[String,Number],prependIcon:Ke,appendIcon:Ke,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Me(),...tt()},"VListGroup"),Ou=ve()({name:"VListGroup",props:B0(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:i,id:s}=Gd(()=>e.value,()=>e.disabled,!0),o=M(()=>`v-list-group--id-${String(e.rawId??s.value)}`),a=Fd(),{isBooted:l}=V0(),u=ge(gr),c=G(()=>{var v;return((v=u==null?void 0:u.root)==null?void 0:v.itemsRegistration.value)==="render"});function f(v){var E;["INPUT","TEXTAREA"].includes((E=v.target)==null?void 0:E.tagName)||i(!r.value,v)}const d=M(()=>({onClick:f,class:"v-list-group__header",id:o.value})),m=M(()=>r.value?e.collapseIcon:e.expandIcon),g=M(()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&m.value,appendIcon:e.appendIcon||!e.subgroup&&m.value,title:e.title,value:e.value}}));return Ie(()=>I(e.tag,{class:he(["v-list-group",{"v-list-group--prepend":a==null?void 0:a.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class]),style:xe(e.style)},{default:()=>[n.activator&&I(wt,{defaults:g.value},{default:()=>[I(F0,null,{default:()=>[n.activator({props:d.value,isOpen:r.value})]})]}),I(Jn,{transition:{component:w0},disabled:!l.value},{default:()=>{var v,E;return[c.value?Vn(q("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(v=n.default)==null?void 0:v.call(n)]),[[Yo,r.value]]):r.value&&q("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(E=n.default)==null?void 0:E.call(n)])]}})]})),{isOpen:r}}}),$0=Z({opacity:[Number,String],...Me(),...tt()},"VListItemSubtitle"),Ud=ve()({name:"VListItemSubtitle",props:$0(),setup(e,t){let{slots:n}=t;return Ie(()=>I(e.tag,{class:he(["v-list-item-subtitle",e.class]),style:xe([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n)),{}}}),zd=ia("v-list-item-title"),H0=Z({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Ke,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Ke,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,prependGap:[Number,String],subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},value:null,onClick:$r(),onClickOnce:$r(),...br(),...Me(),...Hn(),..._r(),...di(),...sn(),...ya(),...tt(),...vt(),...jn({variant:"text"})},"VListItem"),Po=ve()({name:"VListItem",directives:{vRipple:si},props:H0(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:i}=t;const s=pa(e,n),o=M(()=>e.value===void 0?s.href.value:e.value),{activate:a,isActivated:l,select:u,isOpen:c,isSelected:f,isIndeterminate:d,isGroupActivator:m,root:g,parent:v,openOnSelect:E,id:p}=Gd(o,()=>e.disabled,!1),S=Fd(),b=M(()=>{var w;return e.active!==!1&&(e.active||((w=s.isActive)==null?void 0:w.value)||(g.activatable.value?l.value:f.value))}),_=G(()=>e.link!==!1&&s.isLink.value),O=M(()=>!!S&&(g.selectable.value||g.activatable.value||e.value!=null)),A=M(()=>!e.disabled&&e.link!==!1&&(e.link||s.isClickable.value||O.value)),D=M(()=>S?_.value?"link":O.value?"option":"listitem":void 0),k=M(()=>{if(O.value)return g.activatable.value?l.value:g.selectable.value?f.value:b.value}),T=G(()=>e.rounded||e.nav),H=G(()=>e.color??e.activeColor),B=G(()=>({color:b.value?H.value??e.baseColor:e.baseColor,variant:e.variant}));fe(()=>{var w;return(w=s.isActive)==null?void 0:w.value},w=>{w&&x()}),fs(()=>{var w;(w=s.isActive)!=null&&w.value&&qe(()=>x())});function x(){v.value!=null&&g.open(v.value,!0),E(!0)}const{themeClasses:N}=Et(e),{borderClasses:j}=Sr(e),{colorClasses:Y,colorStyles:ie,variantClasses:J}=gi(B),{densityClasses:te}=wr(e),{dimensionStyles:Oe}=Cr(e),{elevationClasses:me}=mi(e),{roundedClasses:Ae}=on(T),Se=G(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),Ne=G(()=>e.ripple!==void 0&&e.ripple&&(S!=null&&S.filterable)?{keys:["Enter"]}:e.ripple),Ge=M(()=>({isActive:b.value,select:u,isOpen:c.value,isSelected:f.value,isIndeterminate:d.value}));function nt(w){var F,$;i("click",w),!["INPUT","TEXTAREA"].includes((F=w.target)==null?void 0:F.tagName)&&A.value&&(($=s.navigate)==null||$.call(s,w),!m&&(g.activatable.value?a(!l.value,w):(g.selectable.value||e.value!=null&&!_.value)&&u(!f.value,w)))}function He(w){const F=w.target;["INPUT","TEXTAREA"].includes(F.tagName)||(w.key==="Enter"||w.key===" "&&!(S!=null&&S.filterable))&&(w.preventDefault(),w.stopPropagation(),w.target.dispatchEvent(new MouseEvent("click",w)))}return Ie(()=>{const w=_.value?"a":e.tag,F=r.title||e.title!=null,$=r.subtitle||e.subtitle!=null,X=!!(e.appendAvatar||e.appendIcon),ce=!!(X||r.append),h=!!(e.prependAvatar||e.prependIcon),y=!!(h||r.prepend);return S==null||S.updateHasPrepend(y),e.activeColor&&ff("active-color",["color","base-color"]),Vn(I(w,ke(s.linkProps,{class:["v-list-item",{"v-list-item--active":b.value,"v-list-item--disabled":e.disabled,"v-list-item--link":A.value,"v-list-item--nav":e.nav,"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&b.value},N.value,j.value,Y.value,te.value,me.value,Se.value,Ae.value,J.value,e.class],style:[{"--v-list-prepend-gap":se(e.prependGap)},ie.value,Oe.value,e.style],tabindex:A.value?S?-2:0:void 0,"aria-selected":k.value,role:D.value,onClick:nt,onKeydown:A.value&&!_.value&&He}),{default:()=>{var C;return[hi(A.value||b.value,"v-list-item"),y&&q("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?I(wt,{key:"prepend-defaults",disabled:!h,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var P;return[(P=r.prepend)==null?void 0:P.call(r,Ge.value)]}}):q(Pe,null,[e.prependAvatar&&I(Qi,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&I(Wt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),q("div",{class:"v-list-item__spacer"},null)]),q("div",{class:"v-list-item__content","data-no-activator":""},[F&&I(zd,{key:"title"},{default:()=>{var P;return[((P=r.title)==null?void 0:P.call(r,{title:e.title}))??xt(e.title)]}}),$&&I(Ud,{key:"subtitle"},{default:()=>{var P;return[((P=r.subtitle)==null?void 0:P.call(r,{subtitle:e.subtitle}))??xt(e.subtitle)]}}),(C=r.default)==null?void 0:C.call(r,Ge.value)]),ce&&q("div",{key:"append",class:"v-list-item__append"},[r.append?I(wt,{key:"append-defaults",disabled:!X,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var P;return[(P=r.append)==null?void 0:P.call(r,Ge.value)]}}):q(Pe,null,[e.appendIcon&&I(Wt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&I(Qi,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),q("div",{class:"v-list-item__spacer"},null)])]}}),[[si,A.value&&Ne.value]])}),{activate:a,isActivated:l,isGroupActivator:m,isSelected:f,list:S,select:u,root:g,id:p,link:s}}}),j0=Z({color:String,inset:Boolean,sticky:Boolean,title:String,...Me(),...tt()},"VListSubheader"),W0=ve()({name:"VListSubheader",props:j0(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:i}=hr(()=>e.color);return Ie(()=>{const s=!!(n.default||e.title);return I(e.tag,{class:he(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class]),style:xe([{textColorStyles:i},e.style])},{default:()=>{var o;return[s&&q("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??e.title])]}})}),{}}}),G0=Z({items:Array,returnObject:Boolean},"VListChildren"),Kd=ve()({name:"VListChildren",props:G0(),setup(e,t){let{slots:n}=t;return Vd(),()=>{var r,i;return((r=n.default)==null?void 0:r.call(n))??((i=e.items)==null?void 0:i.map(s=>{var d,m;let{children:o,props:a,type:l,raw:u}=s;if(l==="divider")return((d=n.divider)==null?void 0:d.call(n,{props:a}))??I(Nd,a,null);if(l==="subheader")return((m=n.subheader)==null?void 0:m.call(n,{props:a}))??I(W0,a,null);const c={subtitle:n.subtitle?g=>{var v;return(v=n.subtitle)==null?void 0:v.call(n,{...g,item:u})}:void 0,prepend:n.prepend?g=>{var v;return(v=n.prepend)==null?void 0:v.call(n,{...g,item:u})}:void 0,append:n.append?g=>{var v;return(v=n.append)==null?void 0:v.call(n,{...g,item:u})}:void 0,title:n.title?g=>{var v;return(v=n.title)==null?void 0:v.call(n,{...g,item:u})}:void 0},f=Ou.filterProps(a);return o?I(Ou,ke(f,{value:e.returnObject?u:a==null?void 0:a.value,rawId:a==null?void 0:a.value}),{activator:g=>{let{props:v}=g;const E=ke(a,v,{value:e.returnObject?u:a.value});return n.header?n.header({props:E}):I(Po,E,c)},default:()=>I(Kd,{items:o,returnObject:e.returnObject},n)}):n.item?n.item({props:a}):I(Po,ke(a,{value:e.returnObject?u:a.value}),c)}))}}}),U0=Z({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},itemType:{type:[Boolean,String,Array,Function],default:"type"},returnObject:Boolean,valueComparator:Function},"list-items"),z0=new Set(["item","divider","subheader"]);function sr(e,t){const n=Bt(t,e.itemTitle,t),r=Bt(t,e.itemValue,n),i=Bt(t,e.itemChildren),s=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?$n(t,["children"]):t:void 0:Bt(t,e.itemProps);let o=Bt(t,e.itemType,"item");z0.has(o)||(o="item");const a={title:n,value:r,...s};return{type:o,title:String(a.title??""),value:a.value,props:a,children:o==="item"&&Array.isArray(i)?qd(e,i):void 0,raw:t}}sr.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];function qd(e,t){const n=Qo(e,sr.neededProps),r=[];for(const i of t)r.push(sr(n,i));return r}function zS(e){const t=M(()=>qd(e,e.items)),n=M(()=>t.value.some(a=>a.value===null)),r=le(new Map),i=le([]);_t(()=>{const a=t.value,l=new Map,u=[];for(let c=0;c{let{raw:u}=l;return u}):a.map(l=>{let{value:u}=l;return u})}return{items:t,transformIn:s,transformOut:o}}const K0=new Set(["item","divider","subheader"]);function q0(e,t){const n=Bn(t)?t:Bt(t,e.itemTitle),r=Bn(t)?t:Bt(t,e.itemValue,void 0),i=Bt(t,e.itemChildren),s=e.itemProps===!0?$n(t,["children"]):Bt(t,e.itemProps);let o=Bt(t,e.itemType,"item");K0.has(o)||(o="item");const a={title:n,value:r,...s};return{type:o,title:a.title,value:a.value,props:a,children:o==="item"&&i?Yd(e,i):void 0,raw:t}}function Yd(e,t){const n=[];for(const r of t)n.push(q0(e,r));return n}function Y0(e){return{items:M(()=>Yd(e,e.items))}}const X0=Z({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:Ke,collapseIcon:Ke,lines:{type:[Boolean,String],default:"one"},slim:Boolean,prependGap:[Number,String],indent:[Number,String],nav:Boolean,"onClick:open":$r(),"onClick:select":$r(),"onUpdate:opened":$r(),...L0({selectStrategy:"single-leaf",openStrategy:"list"}),...br(),...Me(),...Hn(),..._r(),...di(),...U0(),...sn(),...tt(),...vt(),...jn({variant:"text"})},"VList"),Z0=ve()({name:"VList",props:X0(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=Y0(e),{themeClasses:i}=Et(e),{backgroundColorClasses:s,backgroundColorStyles:o}=ir(()=>e.bgColor),{borderClasses:a}=Sr(e),{densityClasses:l}=wr(e),{dimensionStyles:u}=Cr(e),{elevationClasses:c}=mi(e),{roundedClasses:f}=on(e),{children:d,open:m,parents:g,select:v,getPath:E}=M0(e,r,()=>e.returnObject),p=G(()=>e.lines?`v-list--${e.lines}-line`:void 0),S=G(()=>e.activeColor),b=G(()=>e.baseColor),_=G(()=>e.color),O=G(()=>e.selectable||e.activatable);Vd({filterable:e.filterable}),hs({VListGroup:{activeColor:S,baseColor:b,color:_,expandIcon:G(()=>e.expandIcon),collapseIcon:G(()=>e.collapseIcon)},VListItem:{activeClass:G(()=>e.activeClass),activeColor:S,baseColor:b,color:_,density:G(()=>e.density),disabled:G(()=>e.disabled),lines:G(()=>e.lines),nav:G(()=>e.nav),slim:G(()=>e.slim),variant:G(()=>e.variant)}});const A=le(!1),D=ue();function k(j){A.value=!0}function T(j){A.value=!1}function H(j){var Y;!A.value&&!(j.relatedTarget&&((Y=D.value)!=null&&Y.contains(j.relatedTarget)))&&N()}function B(j){const Y=j.target;if(!(!D.value||Y.tagName==="INPUT"&&["Home","End"].includes(j.key)||Y.tagName==="TEXTAREA")){if(j.key==="ArrowDown")N("next");else if(j.key==="ArrowUp")N("prev");else if(j.key==="Home")N("first");else if(j.key==="End")N("last");else return;j.preventDefault()}}function x(j){A.value=!0}function N(j){if(D.value)return Sf(D.value,j)}return Ie(()=>{const j=e.indent??(e.prependGap?Number(e.prependGap)+24:void 0);return I(e.tag,{ref:D,class:he(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},i.value,s.value,a.value,l.value,c.value,p.value,f.value,e.class]),style:xe([{"--v-list-indent":se(j),"--v-list-group-prepend":j?"0px":void 0,"--v-list-prepend-gap":se(e.prependGap)},o.value,u.value,e.style]),tabindex:e.disabled?-1:0,role:O.value?"listbox":"list","aria-activedescendant":void 0,onFocusin:k,onFocusout:T,onFocus:H,onKeydown:B,onMousedown:x},{default:()=>[I(Kd,{items:r.value,returnObject:e.returnObject},n)]})}),{open:m,select:v,focus:N,children:d,parents:g,getPath:E}}});let Io=null;const Xd={name:"RateLimitModal",data(){return{isVisible:!1,activeRequests:[]}},computed:{hasActiveRequests(){return this.activeRequests.length>0}},watch:{hasActiveRequests(e){this.isVisible=e}},methods:{close(){this.isVisible=!1},show(e,t,n){const r=Date.now()+Math.random().toString(36).substring(2,9),i=Math.max(0,Math.floor((new Date(e)-new Date)/1e3)),s={id:r,resetTime:e,path:t,method:n,remainingSeconds:i};this.activeRequests.push(s),this.startCountdown(r),this.isVisible=!0},startCountdown(e){const t=this.activeRequests.find(r=>r.id===e);if(!t)return;const n=setInterval(()=>{const r=this.activeRequests.findIndex(i=>i.id===e);if(r===-1){clearInterval(n);return}this.activeRequests[r].remainingSeconds--,this.activeRequests[r].remainingSeconds<=0&&(clearInterval(n),this.activeRequests.splice(r,1))},1e3);t.intervalId=n},clearAllCountdowns(){this.activeRequests.forEach(e=>{e.intervalId&&clearInterval(e.intervalId)}),this.activeRequests=[]}},beforeUnmount(){this.clearAllCountdowns()},created(){Io=this}};Xd.show=function(e,t,n){Io&&Io.show(e,t,n)};const J0=Xd,Q0={class:"text-primary font-weight-bold"};function eS(e,t,n,r,i,s){return bt(),$t(C0,{modelValue:e.isVisible,"onUpdate:modelValue":t[0]||(t[0]=o=>e.isVisible=o),"max-width":"500",persistent:""},{default:je(()=>[I(Tu,{class:"rate-limit-modal"},{default:je(()=>[I(Id,{class:"text-center pa-4 bg-error text-white"},{default:je(()=>[I(Wt,{class:"mr-2",icon:"mdi-clock-alert-outline",size:"large"}),t[1]||(t[1]=Rr(" 请求频率超限 ",-1))]),_:1}),I(ko,{class:"pa-6"},{default:je(()=>[t[3]||(t[3]=q("div",{class:"text-body-1 mb-4"},"您的请求过于频繁,请稍后再试。",-1)),e.activeRequests.length>0?(bt(),$t(Tu,{key:0,class:"mb-4",flat:""},{default:je(()=>[I(ko,null,{default:je(()=>[(bt(!0),Jc(Pe,null,Jm(e.activeRequests,(o,a)=>(bt(),$t(Z0,{key:a,class:"mb-4"},{default:je(()=>[I(Po,{color:"primary","prepend-icon":"mdi-web"},{default:je(()=>[I(zd,null,{default:je(()=>[t[2]||(t[2]=Rr(" 等待时间: ",-1)),q("span",Q0,xt(o.remainingSeconds),1)]),_:2},1024),I(Ud,null,{default:je(()=>[Rr(xt(o.method)+" "+xt(o.path),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),e.index[I(A0),I(Sd,{color:"primary",variant:"tonal",onClick:e.close},{default:je(()=>[...t[5]||(t[5]=[Rr(" 我知道了",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const tS=sd(J0,[["render",eS]]),nS=Z({...Me(),...$n(Ep(),["fullHeight"]),...vt()},"VApp"),rS=ve()({name:"VApp",props:nS(),setup(e,t){let{slots:n}=t;const r=Et(e),{layoutClasses:i,getLayoutItem:s,items:o,layoutRef:a}=kp({...e,fullHeight:!0}),{rtlClasses:l}=ci();return Ie(()=>{var u;return q("div",{ref:a,class:he(["v-application",r.themeClasses.value,i.value,l.value,e.class]),style:xe([e.style])},[q("div",{class:"v-application__wrap"},[(u=n.default)==null?void 0:u.call(n)])])}),{getLayoutItem:s,items:o,theme:r}}}),iS={__name:"App",setup(e){const t=jf();return yn(()=>{const n=id("theme.mode");t.global.name.value=n}),(n,r)=>{const i=Zm("router-view"),s=Td;return bt(),$t(rS,null,{default:je(()=>[I(i,null,{default:je(({Component:o,route:a})=>[I(vn,{mode:"out-in",name:"md3"},{default:je(()=>[(bt(),$t(Dc(o),{key:a.path}))]),_:2},1024)]),_:1}),I(s),I(tS)]),_:1})}}};let Xs;const Ru=e=>({get:async()=>({visitorId:"unknown",error:(e==null?void 0:e.message)||String(e||""),fallback:!0})}),sS=async()=>{try{const e=await Fe(()=>import("./fp.esm-HJFDfcHo.js"),[],import.meta.url);return(e==null?void 0:e.default)||e}catch(e){return console.warn("Fingerprint library blocked or failed to load; using fallback agent.",e),null}},Zd=()=>(Xs||(Xs=(async()=>{const e=await sS();if(!e)return Ru(new Error("fingerprint module unavailable"));try{return await e.load()}catch(t){return console.warn("FingerprintJS.load failed, using fallback agent.",t),Ru(t)}})()),Xs),oS=async()=>{const t=await(await Zd()).get();return(t==null?void 0:t.visitorId)||"unknown"},KS=async()=>await(await Zd()).get(),aS=Uf(),vi=bg(iS);$y(vi);vi.use(Xn);vi.use(aS);vi.component("GlobalMessage",Td);vi.mount("#app");document.readyState==="complete"?Du():window.addEventListener("load",Du,{once:!0});async function Du(){try{const e=(await Fe(async()=>{const{default:r}=await import("./index-ghQi_28l.js");return{default:r}},[],import.meta.url)).default;e.init("rhp8uqoc3l");const n=await oS();console.log("Visitor ID:",n),e.identify(n),e.setTag("fingerprintjs",n)}catch(e){console.warn("Clarity 加载或标识设置失败:",e)}}try{const e=()=>{document.body.classList.add("app-loaded");const t=document.getElementById("app-loader");t&&setTimeout(()=>t.remove(),220)};document.readyState==="complete"||document.readyState==="interactive"?e():window.addEventListener("DOMContentLoaded",e,{once:!0})}catch{}export{ue as $,Jc as A,so as B,xt as C,$S as D,ke as E,Pe as F,Jm as G,C0 as H,Vn as I,Yo as J,Nd as K,Qi as L,Pd as M,dS as N,fS as O,Z0 as P,Po as Q,gu as R,si as S,Xo as T,GS as U,rS as V,WS as W,dp as X,u0 as Y,Cv as Z,sd as _,xp as a,gf as a$,le as a0,zS as a1,hr as a2,Zt as a3,ea as a4,M as a5,fe as a6,qe as a7,Te as a8,wS as a9,bS as aA,ir as aB,Cb as aC,Pn as aD,go as aE,wr as aF,Sa as aG,hs as aH,se as aI,Hn as aJ,Qo as aK,co as aL,lS as aM,xc as aN,Ke as aO,ia as aP,oS as aQ,KS as aR,Ct as aS,ls as aT,Ic as aU,cS as aV,Fe as aW,ar as aX,bn as aY,pS as aZ,tn as a_,W0 as aa,Pg as ab,wt as ac,kd as ad,$n as ae,CS as af,Mn as ag,Tg as ah,VS as ai,yn as aj,uS as ak,cd as al,ft as am,g0 as an,t0 as ao,zd as ap,Ud as aq,kn as ar,Au as as,Dd as at,Ji as au,LS as av,DS as aw,yS as ax,G as ay,vS as az,V0 as b,db as b$,w0 as b0,Jn as b1,$r as b2,kS as b3,AS as b4,_t as b5,ku as b6,fo as b7,ci as b8,HS as b9,Gb as bA,RS as bB,OS as bC,PS as bD,br as bE,jb as bF,Xn as bG,ge as bH,Kb as bI,zb as bJ,Qy as bK,Jy as bL,et as bM,eb as bN,Zy as bO,gS as bP,cv as bQ,Xr as bR,pf as bS,$e as bT,xS as bU,vr as bV,mS as bW,Bn as bX,uo as bY,SS as bZ,dd as b_,up as ba,wa as bb,on as bc,jf as bd,ha as be,pl as bf,Ed as bg,vt as bh,sn as bi,Ss as bj,mi as bk,Et as bl,di as bm,vn as bn,NS as bo,FS as bp,BS as bq,We as br,Fb as bs,Vb as bt,Ag as bu,yr as bv,lt as bw,Sr as bx,gb as by,wl as bz,Ie as c,fd as c0,Qe as c1,ee as c2,Bt as c3,uc as c4,zm as c5,ua as c6,jn as c7,ys as c8,hS as c9,fs as cA,gn as cB,ES as ca,S0 as cb,U0 as cc,va as cd,ga as ce,Nb as cf,Tc as cg,Sf as ch,kg as ci,Hr as cj,_S as ck,tS as cl,TS as cm,gi as cn,hi as co,df as cp,jS as cq,lb as cr,IS as cs,bs as ct,pa as cu,US as cv,ya as cw,Sn as cx,Cf as cy,oc as cz,I as d,he as e,_r as f,ve as g,Me as h,q as i,$t as j,id as k,Tu as l,tt as m,xe as n,bt as o,Z as p,Id as q,Zm as r,MS as s,Rr as t,Cr as u,Wt as v,je as w,A0 as x,Sd as y,ko as z}; diff --git a/assets/index-BkGTTW92.js b/assets/index-BkGTTW92.js new file mode 100644 index 0000000..99f03c7 --- /dev/null +++ b/assets/index-BkGTTW92.js @@ -0,0 +1 @@ +import{d as n}from"./dataProvider-CVD6IsoX.js";import{_ as N,A as f,o,d as s,w as i,t as d,y as r,l as h,j as k,q as g,z as V,P as C,F as v,G as x,Q as I,ap as b,C as y,N as A,O as L,v as w,B as _,H as B,M as E,x as F}from"./index-GyS8nTIx.js";import{b as T,c as S}from"./VAppBarTitle-CUv9Ys4F.js";import{V as D}from"./VTextField-xLiM0gib.js";import{V as M}from"./VContainer-B1JGY98V.js";const K={data(){return{lists:[],newListName:"",studentList:[],deleteDialog:{show:!1,text:"",listId:null},editingListId:null,editListName:""}},async created(){await Promise.all([this.loadLists(),this.loadStudentList()])},methods:{async loadLists(){try{let e=await n.loadData("classworks-list-info");(!e||!Array.isArray(e))&&(e=[],await n.saveData("classworks-list-info",e)),this.lists=e}catch(e){console.error("Failed to load lists",e),this.lists=[],await n.saveData("classworks-list-info",[])}},async loadStudentList(){try{const e=await n.loadData("classworks-list-main");e&&Array.isArray(e)?this.studentList=e:this.studentList=[]}catch(e){console.error("Failed to load student list",e),this.studentList=[]}},async createNewList(){if(!this.newListName)return;const e=Date.now().toString(),t={id:e,name:this.newListName};this.lists.push(t),await n.saveData("classworks-list-info",this.lists);const u=[];this.studentList&&this.studentList.length>0&&this.studentList.forEach(p=>{u.push({id:p.id||Date.now()+Math.floor(Math.random()*1e3),name:p.name,completed:!1})}),await n.saveData(`classworks-list-${e}`,u),this.newListName="",this.$router.push(`/list/${e}`)},startEditing(e){const t=this.lists.find(u=>u.id===e);t&&(this.editingListId=e,this.editListName=t.name)},cancelEditing(){this.editingListId=null,this.editListName=""},async saveListName(){if(!(!this.editListName.trim()||!this.editingListId))try{const e=this.lists.findIndex(t=>t.id===this.editingListId);e!==-1&&(this.lists[e].name=this.editListName.trim(),await n.saveData("classworks-list-info",this.lists)),this.editingListId=null,this.editListName=""}catch(e){console.error("Failed to update list name",e)}},confirmDeleteList(e){const t=this.lists.find(u=>u.id===e);t&&(this.deleteDialog={show:!0,text:`确定要删除列表 "${t.name}" 吗?`,listId:e})},confirmDelete(){this.deleteDialog.listId&&this.deleteList(this.deleteDialog.listId),this.deleteDialog.show=!1},async deleteList(e){this.lists=this.lists.filter(t=>t.id!==e),await n.saveData("classworks-list-info",this.lists)}}},P={key:0},U={key:1,class:"d-flex align-center w-100"},j={key:0};function q(e,t,u,p,a,m){return o(),f(v,null,[s(S,{elevation:"1"},{prepend:i(()=>[s(r,{icon:"mdi-arrow-left",variant:"text",onClick:t[0]||(t[0]=l=>e.$router.push("/"))})]),default:i(()=>[s(T,{class:"text-h6"},{default:i(()=>[...t[5]||(t[5]=[d("列表",-1)])]),_:1})]),_:1}),s(M,null,{default:i(()=>[s(h,{border:"",class:"mb-5",rounded:"xl"},{default:i(()=>[s(g,null,{default:i(()=>[...t[6]||(t[6]=[d("现有列表",-1)])]),_:1}),a.lists.length===0?(o(),k(V,{key:0},{default:i(()=>[...t[7]||(t[7]=[d(" 暂无列表,请创建新列表 ",-1)])]),_:1})):(o(),k(C,{key:1},{default:i(()=>[(o(!0),f(v,null,x(a.lists,l=>(o(),k(I,{key:l.id,active:l.id===a.editingListId,to:l.id!==a.editingListId?`/list/${l.id}`:void 0},{append:i(()=>[l.id!==a.editingListId?(o(),f("div",j,[s(r,{border:"",class:"mr-2",icon:"",onClick:L(c=>m.startEditing(l.id),["stop","prevent"])},{default:i(()=>[s(w,null,{default:i(()=>[...t[10]||(t[10]=[d("mdi-pencil",-1)])]),_:1})]),_:1},8,["onClick"]),s(r,{border:"",icon:"",onClick:L(c=>m.confirmDeleteList(l.id),["stop","prevent"])},{default:i(()=>[s(w,null,{default:i(()=>[...t[11]||(t[11]=[d("mdi-delete",-1)])]),_:1})]),_:1},8,["onClick"])])):_("",!0)]),default:i(()=>[l.id!==a.editingListId?(o(),f("div",P,[s(b,null,{default:i(()=>[d(y(l.name),1)]),_:2},1024)])):(o(),f("div",U,[s(D,{modelValue:a.editListName,"onUpdate:modelValue":t[1]||(t[1]=c=>a.editListName=c),autofocus:"",class:"mr-2",density:"compact","hide-details":"",label:"列表名称",onKeyup:A(m.saveListName,["enter"])},null,8,["modelValue","onKeyup"]),s(r,{border:"",class:"mr-2",color:"primary",icon:"",onClick:L(m.saveListName,["stop","prevent"])},{default:i(()=>[s(w,null,{default:i(()=>[...t[8]||(t[8]=[d("mdi-check",-1)])]),_:1})]),_:1},8,["onClick"]),s(r,{border:"",color:"error",icon:"",onClick:L(m.cancelEditing,["stop","prevent"])},{default:i(()=>[s(w,null,{default:i(()=>[...t[9]||(t[9]=[d("mdi-close",-1)])]),_:1})]),_:1},8,["onClick"])]))]),_:2},1032,["active","to"]))),128))]),_:1}))]),_:1}),s(h,{border:"",class:"mb-5",rounded:"xl"},{default:i(()=>[s(g,null,{default:i(()=>[...t[12]||(t[12]=[d("创建新列表",-1)])]),_:1}),s(V,null,{default:i(()=>[s(D,{modelValue:a.newListName,"onUpdate:modelValue":t[2]||(t[2]=l=>a.newListName=l),rules:[l=>!!l||"名称不能为空"],label:"列表名称"},null,8,["modelValue","rules"]),s(r,{disabled:!a.newListName,color:"primary",onClick:m.createNewList},{default:i(()=>[...t[13]||(t[13]=[d(" 创建列表 ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1}),s(B,{modelValue:a.deleteDialog.show,"onUpdate:modelValue":t[4]||(t[4]=l=>a.deleteDialog.show=l),"max-width":"500"},{default:i(()=>[s(h,{border:""},{default:i(()=>[s(g,null,{default:i(()=>[...t[14]||(t[14]=[d("删除列表",-1)])]),_:1}),s(V,null,{default:i(()=>[d(y(a.deleteDialog.text),1)]),_:1}),s(E,null,{default:i(()=>[s(F),s(r,{color:"primary",variant:"text",onClick:t[3]||(t[3]=l=>a.deleteDialog.show=!1)},{default:i(()=>[...t[15]||(t[15]=[d(" 取消 ",-1)])]),_:1}),s(r,{color:"error",variant:"text",onClick:m.confirmDelete},{default:i(()=>[...t[16]||(t[16]=[d(" 确认删除 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)}const J=N(K,[["render",q]]);export{J as default}; diff --git a/assets/index-C1_Nmbyl.js b/assets/index-CGbgI0fv.js similarity index 61% rename from assets/index-C1_Nmbyl.js rename to assets/index-CGbgI0fv.js index 63cc7f5..e69a98a 100644 --- a/assets/index-C1_Nmbyl.js +++ b/assets/index-CGbgI0fv.js @@ -1,4 +1,4 @@ -import{_ as te,k as C,s as pe,j as w,o as f,w as i,d as n,l as _,q as Y,t as c,v as D,x as K,y as k,z as A,i as r,A as y,B as x,C as g,D as bt,F as N,E as he,T as Ye,G as M,e as we,H as ie,I as re,n as Ie,J as Te,K as xe,L as je,M as de,N as it,O as at,P as Ke,Q as Me,R as wt,S as Ve,U as tn,W as nn,X as Pe,Y as sn,g as an,p as ln,Z as on,$ as P,a0 as Ee,a1 as rn,a2 as dn,a3 as We,a4 as un,a5 as q,a6 as Se,a7 as lt,a8 as cn,c as fn,a9 as mn,aa as hn,ab as vn,ac as gn,ad as pn,ae as yn,af as ot,ag as kn,ah as rt,ai as xt,aj as St,ak as bn,al as dt,am as Ae,an as Fe,ao as wn,ap as xn,aq as Sn,ar as Ue}from"./index-BBVdlVQD.js";import{V as De,u as Cn,m as Dn}from"./VTextField-C-Z2P35g.js";import{V as Ze,a as _n}from"./VBadge-H7ndD91w.js";import{V as B}from"./VChip-BmBm7zXx.js";import{s as Tn,g as Ct,j as Xe,o as be,a as Vn,l as In}from"./socketClient-0mLOmNl0.js";import{f as Nn,s as En,c as Dt}from"./deviceEvents-B6kCnj0S.js";import{V as ge,a as se}from"./VRow-IosHPrmj.js";import{V as An,u as Un,a as Fn,b as Mn,c as Pn,h as zn,m as Ln,d as Rn}from"./filter-Bc0G1Z2P.js";import{V as ze}from"./VTextarea-mXVeQ__0.js";import{d as fe,k as Bn}from"./dataProvider-bw19OswA.js";import{V as ut,a as ct,b as $n,c as On}from"./VAppBarTitle-QQJ8OMzH.js";import{V as _t}from"./VContainer-OExp5t5c.js";import{V as ft}from"./VForm-BRCje5Hh.js";import{V as mt}from"./VSwitch-CCxGT9ZY.js";import{V as ht}from"./VCheckbox-BaW9yLIL.js";import{V as Tt}from"./VMenu-CJ7CiDy8.js";import{V as jn}from"./VDatePicker-CtGCqIzy.js";import{p as vt,_ as Vt}from"./index-90D_8zvz.js";import{V as Le}from"./VAlert-BYrhoEr8.js";import{a as Ce,g as Kn}from"./axios-CF6XU-xP.js";import{V as Hn}from"./VCheckboxBtn-CtaD8oYU.js";import{V as qn,a as gt,b as pt,c as yt}from"./VExpansionPanels-C5tgQAF_.js";import"./VSelectionControl-D-h-HCLE.js";import"./VSheet-DZUeXnyk.js";const Qn={name:"RandomPicker",props:{studentList:{type:Array,required:!0},attendance:{type:Object,required:!0,default:()=>({absent:[],late:[],exclude:[]})}},data(){return{dialog:!1,count:C("randomPicker.defaultCount"),isPickingStarted:!1,isAnimating:!1,pickedStudents:[],animationStudents:[],highlightedIndices:[],animationTimer:null,getSetting:C,tempFilters:{excludeAbsent:C("randomPicker.excludeAbsent"),excludeLate:C("randomPicker.excludeLate"),excludeExcluded:C("randomPicker.excludeExcluded")},pickerMode:C("randomPicker.mode"),minNumber:C("randomPicker.minNumber"),maxNumber:C("randomPicker.maxNumber")}},computed:{absentCount(){return this.attendance.absent?this.attendance.absent.length:0},lateCount(){return this.attendance.late?this.attendance.late.length:0},excludedCount(){return this.attendance.exclude?this.attendance.exclude.length:0},numberModeStudents(){if(this.pickerMode!=="number")return[];const t=[];for(let e=this.minNumber;e<=this.maxNumber;e++)t.push(e.toString().padStart(2,"0")+"号");return t},filteredStudents(){return this.pickerMode==="number"?this.numberModeStudents:!this.studentList||!this.studentList.length?[]:this.studentList.filter(t=>!(this.tempFilters.excludeAbsent&&this.attendance.absent.includes(t)||this.tempFilters.excludeLate&&this.attendance.late.includes(t)||this.tempFilters.excludeExcluded&&this.attendance.exclude.includes(t)))},availableStudents(){return this.filteredStudents},maxAllowedCount(){return Math.min(10,this.filteredStudents.length)},remainingStudents(){return this.filteredStudents.filter(t=>!this.pickedStudents.includes(t))}},watch:{dialog(t){t?(this.count=C("randomPicker.defaultCount"),this.isPickingStarted=!1,this.isAnimating=!1,this.pickedStudents=[],this.tempFilters={excludeAbsent:C("randomPicker.excludeAbsent"),excludeLate:C("randomPicker.excludeLate"),excludeExcluded:C("randomPicker.excludeExcluded")}):this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)},tempFilters:{handler(){this.count>this.maxAllowedCount&&(this.count=Math.max(1,this.maxAllowedCount))},deep:!0},pickerMode:{handler(t){pe("randomPicker.mode",t)}},minNumber:{handler(t){t>this.maxNumber&&(this.minNumber=this.maxNumber),t<1&&(this.minNumber=1),pe("randomPicker.minNumber",this.minNumber)}},maxNumber:{handler(t){t100&&(this.maxNumber=100),pe("randomPicker.maxNumber",this.maxNumber)}}},methods:{open(){this.dialog=!0},incrementCount(){this.count1&&this.count--},startPicking(){this.filteredStudents.length!==0&&(this.isPickingStarted=!0,C("randomPicker.animation")?this.startAnimation():this.finishPicking())},startAnimation(){this.isAnimating=!0,this.animationStudents=this.filteredStudents.map((t,e)=>({id:`student-${e}`,name:t})),this.animateHighlight()},animateHighlight(){let e=0;const a=50,d=()=>{this.highlightedIndices=[];const s=[];for(let o=0;o{this.finishPicking()},500)};d()},finishPicking(){this.isAnimating=!1;const t=[...this.filteredStudents].sort(()=>.5-Math.random());this.pickedStudents=t.slice(0,this.count)},resetPicker(){this.isPickingStarted=!1,this.isAnimating=!1,this.pickedStudents=[],this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)},refreshSingleStudent(t){if(this.remainingStudents.length===0)return;const e=Math.floor(Math.random()*this.remainingStudents.length),a=this.remainingStudents[e];this.pickedStudents[t]=a;const d=document.querySelectorAll(".result-card");d[t]&&(d[t].classList.add("refresh-animation"),setTimeout(()=>{d[t].classList.remove("refresh-animation")},500))}}},Wn={class:"d-flex justify-center align-center counter-container"},Gn={class:"count-display mx-8"},Jn={class:"text-h2 font-weight-bold"},Yn={class:"mode-switch-container mt-6"},Xn={key:0,class:"number-range-container mt-4"},Zn={class:"d-flex justify-center align-center gap-4"},es={class:"mt-4"},ts={key:1,class:"mt-4 text-error"},ns={class:"mt-4 text-caption"},ss={class:"pa-2"},is={key:0},as={key:1},ls={key:2},os={key:1,class:"d-flex flex-wrap justify-center gap-2 mt-4"},rs={key:0,class:"animation-container"},ds={class:"animation-wrapper"},us={key:1,class:"result-container"},cs={class:"mt-8 d-flex justify-center"};function fs(t,e,a,d,s,l){return f(),w(ie,{modelValue:s.dialog,"onUpdate:modelValue":e[8]||(e[8]=o=>s.dialog=o),"fullscreen-breakpoint":"sm","max-width":"600",persistent:""},{default:i(()=>[n(_,{border:"",class:"random-picker-card",rounded:"xl"},{default:i(()=>[n(Y,{class:"text-h5 d-flex align-center"},{default:i(()=>[n(D,{class:"mr-2",icon:"mdi-account-question"}),e[9]||(e[9]=c(" 随机点名 ",-1)),n(K),n(k,{icon:"mdi-close",variant:"text",onClick:e[0]||(e[0]=o=>s.dialog=!1)})]),_:1}),s.isPickingStarted?(f(),w(A,{key:1,class:"text-center py-6"},{default:i(()=>[s.isAnimating?(f(),y("div",rs,[r("div",ds,[n(Ye,{class:"shuffle-container",name:"shuffle",tag:"div"},{default:i(()=>[(f(!0),y(N,null,M(s.animationStudents,(o,u)=>(f(),y("div",{key:o.id,class:we([{highlighted:s.highlightedIndices.includes(u)},"student-item"])},g(o.name),3))),128))]),_:1})])])):(f(),y("div",us,[e[19]||(e[19]=r("div",{class:"text-h6 mb-4"},"抽取结果",-1)),(f(!0),y(N,null,M(s.pickedStudents,(o,u)=>(f(),w(_,{key:u,class:"mb-2 result-card",color:"primary",variant:"outlined"},{default:i(()=>[n(A,{class:"text-h4 text-center py-4 d-flex align-center justify-center"},{default:i(()=>[c(g(o)+" ",1),n(k,{disabled:l.remainingStudents.length===0,title:l.remainingStudents.length===0?"没有更多可用学生":"重新抽取此学生",class:"ml-2 refresh-btn",icon:"mdi-refresh",size:"small",variant:"text",onClick:h=>l.refreshSingleStudent(u)},null,8,["disabled","title","onClick"])]),_:2},1024)]),_:2},1024))),128)),r("div",cs,[n(k,{class:"mx-2",color:"primary","prepend-icon":"mdi-refresh",size:"large",onClick:l.resetPicker},{default:i(()=>[...e[17]||(e[17]=[c(" 重新抽取 ",-1)])]),_:1},8,["onClick"]),n(k,{class:"mx-2",color:"grey",size:"large",variant:"outlined",onClick:e[7]||(e[7]=o=>s.dialog=!1)},{default:i(()=>[...e[18]||(e[18]=[c(" 关闭 ",-1)])]),_:1})])]))]),_:1})):(f(),w(A,{key:0,class:"text-center py-6"},{default:i(()=>[e[16]||(e[16]=r("div",{class:"text-h6 mb-4"},"请选择抽取人数",-1)),r("div",Wn,[n(k,{disabled:s.count<=1,class:"counter-btn",color:"primary",icon:"mdi-minus",size:"x-large",variant:"tonal",onClick:l.decrementCount},null,8,["disabled","onClick"]),r("div",Gn,[r("span",Jn,g(s.count),1),e[10]||(e[10]=r("span",{class:"text-subtitle-1 ml-2"},"人",-1))]),n(k,{disabled:s.count>=l.maxAllowedCount,class:"counter-btn",color:"primary",icon:"mdi-plus",size:"x-large",variant:"tonal",onClick:l.incrementCount},null,8,["disabled","onClick"])]),r("div",Yn,[n(bt,{modelValue:s.pickerMode,"onUpdate:modelValue":e[1]||(e[1]=o=>s.pickerMode=o),class:"mode-toggle",color:"primary",mandatory:"",rounded:"pill"},{default:i(()=>[n(k,{"prepend-icon":"mdi-account",value:"name"},{default:i(()=>[...e[11]||(e[11]=[c("姓名模式",-1)])]),_:1}),n(k,{"prepend-icon":"mdi-numeric",value:"number"},{default:i(()=>[...e[12]||(e[12]=[c("学号模式",-1)])]),_:1})]),_:1},8,["modelValue"])]),s.pickerMode==="number"?(f(),y("div",Xn,[e[14]||(e[14]=r("div",{class:"text-subtitle-1 mb-2"},"学号范围设置",-1)),r("div",Zn,[n(De,{modelValue:s.minNumber,"onUpdate:modelValue":e[2]||(e[2]=o=>s.minNumber=o),modelModifiers:{number:!0},class:"number-input",density:"compact","hide-details":"",label:"最小值",max:"100",min:"1",type:"number"},null,8,["modelValue"]),e[13]||(e[13]=r("span",{class:"mx-2"},"至",-1)),n(De,{modelValue:s.maxNumber,"onUpdate:modelValue":e[3]||(e[3]=o=>s.maxNumber=o),modelModifiers:{number:!0},class:"number-input",density:"compact","hide-details":"",label:"最大值",max:"100",min:"1",type:"number"},null,8,["modelValue"])])])):x("",!0),r("div",es,[n(k,{disabled:l.filteredStudents.length===0,class:"start-btn",color:"primary","prepend-icon":"mdi-dice-multiple",size:"x-large",onClick:l.startPicking},{default:i(()=>[...e[15]||(e[15]=[c(" 开始抽取 ",-1)])]),_:1},8,["disabled","onClick"])]),l.filteredStudents.length===0?(f(),y("div",ts,[s.pickerMode==="name"?(f(),y(N,{key:0},[c(" 没有可抽取的学生,请调整过滤选项 ")],64)):(f(),y(N,{key:1},[c(" 请设置有效的学号范围 ")],64))])):x("",!0),r("div",ns,[c(" 当前可抽取学生: "+g(l.filteredStudents.length)+"人 ",1),s.pickerMode==="name"?(f(),w(Ze,{key:0,location:"bottom"},{activator:i(({props:o})=>[n(D,he({class:"ml-1",icon:"mdi-information-outline",size:"small"},o),null,16)]),default:i(()=>[r("div",ss,[s.tempFilters.excludeAbsent?(f(),y("div",is," • 已排除请假学生 ("+g(l.absentCount)+"人) ",1)):x("",!0),s.tempFilters.excludeLate?(f(),y("div",as," • 已排除迟到学生 ("+g(l.lateCount)+"人) ",1)):x("",!0),s.tempFilters.excludeExcluded?(f(),y("div",ls," • 已排除不参与学生 ("+g(l.excludedCount)+"人) ",1)):x("",!0)])]),_:1})):x("",!0),s.pickerMode==="name"?(f(),y("div",os,[n(B,{color:s.tempFilters.excludeLate?"warning":"default",variant:s.tempFilters.excludeLate?"elevated":"text",class:"filter-chip","prepend-icon":"mdi-clock-alert",onClick:e[4]||(e[4]=o=>s.tempFilters.excludeLate=!s.tempFilters.excludeLate)},{default:i(()=>[c(g(s.tempFilters.excludeLate?"排除":"包含")+"迟到学生 ",1)]),_:1},8,["color","variant"]),n(B,{color:s.tempFilters.excludeAbsent?"error":"default",variant:s.tempFilters.excludeAbsent?"elevated":"text",class:"filter-chip","prepend-icon":"mdi-account-off",onClick:e[5]||(e[5]=o=>s.tempFilters.excludeAbsent=!s.tempFilters.excludeAbsent)},{default:i(()=>[c(g(s.tempFilters.excludeAbsent?"排除":"包含")+"请假学生 ",1)]),_:1},8,["color","variant"]),n(B,{color:s.tempFilters.excludeExcluded?"grey":"default",variant:s.tempFilters.excludeExcluded?"elevated":"text",class:"filter-chip","prepend-icon":"mdi-account-cancel",onClick:e[6]||(e[6]=o=>s.tempFilters.excludeExcluded=!s.tempFilters.excludeExcluded)},{default:i(()=>[c(g(s.tempFilters.excludeExcluded?"排除":"包含")+"不参与学生 ",1)]),_:1},8,["color","variant"])])):x("",!0)])]),_:1}))]),_:1})]),_:1},8,["modelValue"])}const It=te(Qn,[["render",fs],["__scopeId","data-v-85e7eea6"]]),ms={name:"EventSender",emits:["sent","error"],methods:{async sendEvent(t,e={}){try{return Tn(t,e),this.$emit("sent",{eventName:t,content:e,timestamp:new Date().toISOString(),success:!0}),{success:!0,eventId:(e==null?void 0:e.eventId)||null,notificationId:(e==null?void 0:e.notificationId)||null}}catch(a){return console.error("发送事件失败:",a),this.$emit("error",{eventName:t,content:e,error:a.message,timestamp:new Date().toISOString(),success:!1}),{success:!1,error:a.message}}},async sendNotification(t,e=!1,a=[],d={},s=null){const l=`evt-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;return this.sendEvent("notification",{eventId:l,notificationId:s,message:t,isUrgent:e,targetDevices:a,senderInfo:d})},async sendReceipt(t,e,a={},d=null){const s=`rcpt-${Date.now()}-${Math.random().toString(36).slice(2,6)}`;return this.sendEvent("notification-receipt",{eventId:s,originalEventId:t,notificationId:d,status:e,deviceInfo:a})},async sendDisplayedReceipt(t={},e=null){const a=`disp-${Date.now()}-${Math.random().toString(36).slice(2,6)}`;return this.sendEvent("notification-displayed",{eventId:a,notificationId:e,deviceInfo:t})},async sendReadReceipt(t={},e=null){const a=`read-${Date.now()}-${Math.random().toString(36).slice(2,6)}`;return this.sendEvent("notification-read",{eventId:a,notificationId:e,deviceInfo:t})}}},hs={style:{display:"none"}};function vs(t,e,a,d,s,l){return f(),y("div",hs)}const He=te(ms,[["render",vs]]),gs={name:"UrgentNotification",components:{EventSender:He},data(){return{visible:!1,notificationQueue:[],currentIndex:0,autoCloseTimer:null,urgentSoundTimer:null}},computed:{currentNotification(){return this.notificationQueue[this.currentIndex]||null},hasNotifications(){return this.notificationQueue.length>0},hasMultipleNotifications(){return this.notificationQueue.length>1},notificationCountText(){return this.hasMultipleNotifications?`${this.currentIndex+1} / ${this.notificationQueue.length}`:""},isUrgent(){var t,e;return((e=(t=this.currentNotification)==null?void 0:t.content)==null?void 0:e.isUrgent)||!1},urgencyColor(){return this.isUrgent?"red darken-2":"blue darken-2"},iconColor(){return"white"},urgencyIcon(){return this.isUrgent?"mdi-alert-circle-outline":"mdi-information-outline"},urgencyTitle(){return this.isUrgent?"🚨 紧急通知":"📢 通知消息"},senderName(){var e,a,d;const t=((e=this.currentNotification)==null?void 0:e.senderInfo)||((d=(a=this.currentNotification)==null?void 0:a.content)==null?void 0:d.senderInfo);return t?t.deviceName||t.deviceType||"未知设备":"未知发送者"},deviceType(){var e,a,d;const t=((e=this.currentNotification)==null?void 0:e.senderInfo)||((d=(a=this.currentNotification)==null?void 0:a.content)==null?void 0:d.senderInfo);return(t==null?void 0:t.deviceType)||"未知类型"},targetDevices(){var t,e;return((e=(t=this.currentNotification)==null?void 0:t.content)==null?void 0:e.targetDevices)||[]}},beforeUnmount(){this.autoCloseTimer&&clearTimeout(this.autoCloseTimer),this.urgentSoundTimer&&clearInterval(this.urgentSoundTimer)},methods:{show(t){var a;if(this.notificationQueue.findIndex(d=>{var s,l;return((s=d.content)==null?void 0:s.notificationId)===((l=t.content)==null?void 0:l.notificationId)})!==-1){console.log("通知已存在,跳过添加");return}this.notificationQueue.push(t),this.visible?(a=t.content)!=null&&a.isUrgent&&!this.isUrgent&&(this.currentIndex=this.notificationQueue.length-1,this.sendDisplayedReceipt(),this.playNotificationSound(),this.startUrgentSound()):(this.currentIndex=this.notificationQueue.length-1,this.visible=!0,this.sendDisplayedReceipt(),this.playNotificationSound(),this.isUrgent&&this.startUrgentSound())},close(){var t,e,a,d;try{this.sendReadReceipt(),console.log("已发送已读回执")}catch(s){console.warn("发送已读回执失败:",s)}if((e=(t=this.currentNotification)==null?void 0:t.content)!=null&&e.message){const s=this.isUrgent?"紧急通知":"通知";this.isUrgent?(a=this.$message)==null||a.error(s,`${this.currentNotification.content.message}`):(d=this.$message)==null||d.info(s,`${this.currentNotification.content.message}`)}this.notificationQueue.length>0&&(this.notificationQueue.splice(this.currentIndex,1),this.currentIndex>=this.notificationQueue.length&&(this.currentIndex=Math.max(0,this.notificationQueue.length-1)),this.notificationQueue.length>0?(this.sendDisplayedReceipt(),this.isUrgent?this.startUrgentSound():this.stopUrgentSound()):this.closeWithoutRead())},closeWithoutRead(){this.visible=!1,this.notificationQueue=[],this.currentIndex=0,this.autoCloseTimer&&(clearTimeout(this.autoCloseTimer),this.autoCloseTimer=null),this.stopUrgentSound()},formatTime(t){if(!t)return"";try{const e=new Date(t);if(new Date-e<24*60*60*1e3){const s=String(e.getHours()).padStart(2,"0"),l=String(e.getMinutes()).padStart(2,"0");return`${s}:${l}`}else{const s=String(e.getMonth()+1).padStart(2,"0"),l=String(e.getDate()).padStart(2,"0");return`${s}/${l}`}}catch{return"无效时间"}},getDeviceTypeLabel(t){return{classroom:"教室设备",student:"学生设备",teacher:"教师设备",admin:"管理员设备",system:"系统设备"}[t]||t},playNotificationSound(){try{const t=new(window.AudioContext||window.webkitAudioContext),e=t.createOscillator(),a=t.createGain();e.connect(a),a.connect(t.destination),e.frequency.value=1e3,e.type="sine",a.gain.value=.3,e.start(),e.stop(t.currentTime+.3)}catch(t){console.warn("无法播放通知音效:",t)}},sendDisplayedReceipt(){var t;try{this.$refs.eventSender&&((t=this.currentNotification)!=null&&t.eventId)&&(this.$refs.eventSender.sendDisplayedReceipt({},this.currentNotification.content.notificationId),console.log("已发送显示回执:",this.currentNotification.eventId))}catch(e){console.warn("发送显示回执失败:",e)}},sendReadReceipt(){var t;try{this.$refs.eventSender&&((t=this.currentNotification)!=null&&t.eventId)&&(this.$refs.eventSender.sendReadReceipt({},this.currentNotification.content.notificationId),console.log("已发送已读回执:",this.currentNotification.eventId))}catch(e){console.warn("发送已读回执失败:",e)}},previousNotification(){this.currentIndex>0&&(this.currentIndex--,this.sendDisplayedReceipt(),this.isUrgent?this.startUrgentSound():this.stopUrgentSound())},nextNotification(){this.currentIndex{this.visible&&this.isUrgent?this.playNotificationSound():this.stopUrgentSound()},1e3)},stopUrgentSound(){this.urgentSoundTimer&&(clearInterval(this.urgentSoundTimer),this.urgentSoundTimer=null)}}},ps={class:"urgent-title mb-6"},ys={key:0,class:"navigation-controls mt-6"},ks={class:"notification-counter mb-3"},bs={class:"navigation-buttons"},ws={class:"mt-8"};function xs(t,e,a,d,s,l){const o=He;return f(),y(N,null,[n(ie,{modelValue:s.visible,"onUpdate:modelValue":e[0]||(e[0]=u=>s.visible=u),"max-width":"800",persistent:"",transition:"dialog-transition",class:"urgent-notification-dialog"},{default:i(()=>[n(_,{class:"urgent-notification-card",color:l.urgencyColor,elevation:"24"},{default:i(()=>[n(A,null,{default:i(()=>{var u,h;return[r("div",ps,g(((h=(u=l.currentNotification)==null?void 0:u.content)==null?void 0:h.message)||"无内容"),1),n(_,{variant:"flat",color:"white"},{default:i(()=>[n(Y,null,{default:i(()=>[...e[1]||(e[1]=[c("发送者信息",-1)])]),_:1}),n(A,null,{default:i(()=>[n(B,{class:"mr-2 mb-2",color:"primary",variant:"outlined",size:"small"},{default:i(()=>[n(D,{left:"",size:"16"},{default:i(()=>[...e[2]||(e[2]=[c(" mdi-account ",-1)])]),_:1}),c(" "+g(l.senderName),1)]),_:1}),n(B,{class:"mr-2 mb-2",color:"info",variant:"outlined",size:"small"},{default:i(()=>[n(D,{left:"",size:"16"},{default:i(()=>[...e[3]||(e[3]=[c(" mdi-devices ",-1)])]),_:1}),c(" "+g(l.deviceType),1)]),_:1}),n(B,{class:"mb-2",color:"success",variant:"outlined",size:"small"},{default:i(()=>{var m;return[n(D,{left:"",size:"16"},{default:i(()=>[...e[4]||(e[4]=[c(" mdi-clock ",-1)])]),_:1}),c(" "+g(l.formatTime((m=l.currentNotification)==null?void 0:m.timestamp)),1)]}),_:1})]),_:1})]),_:1}),l.hasMultipleNotifications?(f(),y("div",ys,[n(_,{variant:"flat",color:"rgba(255,255,255,0.1)"},{default:i(()=>[n(A,{class:"text-center"},{default:i(()=>[r("div",ks,[n(B,{color:"white",variant:"flat",size:"small"},{default:i(()=>[c(g(l.notificationCountText),1)]),_:1})]),r("div",bs,[n(k,{disabled:s.currentIndex===0,color:"white",variant:"outlined",size:"small",onClick:l.previousNotification},{default:i(()=>[n(D,null,{default:i(()=>[...e[5]||(e[5]=[c(" mdi-chevron-left ",-1)])]),_:1}),e[6]||(e[6]=c(" 上一个 ",-1))]),_:1},8,["disabled","onClick"]),n(k,{disabled:s.currentIndex===s.notificationQueue.length-1,color:"white",variant:"outlined",size:"small",class:"ml-2",onClick:l.nextNotification},{default:i(()=>[e[8]||(e[8]=c(" 下一个 ",-1)),n(D,null,{default:i(()=>[...e[7]||(e[7]=[c(" mdi-chevron-right ",-1)])]),_:1})]),_:1},8,["disabled","onClick"])])]),_:1})]),_:1})])):x("",!0),r("div",ws,[n(k,{color:"white",size:"large",variant:"flat",onClick:l.close},{default:i(()=>[n(D,{left:""},{default:i(()=>[...e[9]||(e[9]=[c(" mdi-check ",-1)])]),_:1}),e[10]||(e[10]=c(" 我知道了 ",-1))]),_:1},8,["onClick"])])]}),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue"]),n(o,{ref:"eventSender"},null,512)],64)}const Nt=te(gs,[["render",xs],["__scopeId","data-v-e250350b"]]),Ss={name:"ChatWidget",components:{UrgentNotification:Nt},props:{modelValue:{type:Boolean,default:!1},showButton:{type:Boolean,default:!0},offset:{type:Number,default:16},width:{type:Number,default:380},height:{type:Number,default:520}},emits:["update:modelValue"],data(){return{visible:this.modelValue,text:"",messages:[],allEvents:[],lastVisit:null,unreadCount:0,connected:!1,socketId:"",currentMode:"chat",currentPage:1,itemsPerPage:20,loading:!1,isDestroying:!1,eventStats:{chat:0,kvChanged:0,other:0},cleanupFunctions:[]}},computed:{panelStyle(){return{right:this.offset+"px",bottom:this.offset+"px",width:this.width+"px",height:this.height+"px"}},toggleStyle(){return{right:this.offset+"px",bottom:this.offset+"px"}},canSend(){return!!(C("server.kvToken")&&this.text.trim())},showToggleButton(){return this.$props.showButton&&!this.visible},decoratedMessages(){if(!this.lastVisit)return this.messages;const t=this.messages.findIndex(d=>d.at&&new Date(d.at).getTime()>=new Date(this.lastVisit).getTime());if(t<=0)return this.messages;const e=this.messages.slice(0,t),a=this.messages.slice(t);return[...e,{_id:"divider",_type:"divider"},...a]},currentDisplayItems(){return this.currentMode==="chat"?this.decoratedMessages:this.paginatedEvents},paginatedEvents(){if(this.isDestroying||!this.allEvents)return[];const t=(this.currentPage-1)*this.itemsPerPage,e=t+this.itemsPerPage;return this.allEvents.slice(t,e)},totalPages(){return this.isDestroying||!this.allEvents?1:Math.ceil(this.allEvents.length/this.itemsPerPage)},modeTitle(){return this.currentMode==="chat"?"设备聊天室":"所有事件"}},watch:{modelValue(t){this.visible=t,t&&this.onOpen()}},mounted(){try{const m=localStorage.getItem("chat.lastVisit");m&&(this.lastVisit=m)}catch{}const t=Ct();this.connected=!!t.connected,this.socketId=t.id||"",t.on("connect",()=>{this.connected=!0,this.socketId=t.id||""}),t.on("disconnect",()=>{this.connected=!1});const e=C("server.kvToken");e&&Xe(e);const a=m=>(...p)=>{if(!this.isDestroying)try{m(...p)}catch(I){console.error("ChatWidget 事件处理错误:",I)}},d=be("chat:message",a(m=>{this.pushMessage(m),this.addEvent({_id:`legacy-chat-${Date.now()}-${Math.random()}`,type:"chat:message",content:m,timestamp:m.at||new Date().toISOString(),senderId:m.senderId,uuid:m.uuid,senderInfo:m.senderInfo})})),s=be("chat",a(m=>{if(m&&m.content&&m.content.text){const p={text:m.content.text,senderId:m.senderId,at:m.timestamp,uuid:m.senderId,senderInfo:m.senderInfo};this.pushMessage(p),this.addEvent({_id:m.eventId||`chat-${Date.now()}-${Math.random()}`,type:"chat",content:m.content,timestamp:m.timestamp,eventId:m.eventId,senderId:m.senderId,senderInfo:m.senderInfo})}}));this.deviceEventHandler=Dt({onChat:a((m,p)=>{this.pushMessage(m),this.addEvent(p)}),onKvChanged:a((m,p)=>{this.addEvent(p)}),onUrgentNotice:a((m,p)=>{this.addEvent(p),this.showUrgentNotification(p)}),onNotification:a((m,p)=>{console.log("收到通知事件:",m,p),this.addEvent(p),this.showUrgentNotification(p)}),onOtherEvent:a(m=>{(m.type==="urgent-notice"||m.type==="notification")&&this.showUrgentNotification(m),this.addEvent(m)}),enableLegacySupport:!0});const l=be("device-event",this.deviceEventHandler),o=be("kv-key-changed",a(m=>{m.content&&m.timestamp?this.addEvent({_id:`kv-${Date.now()}-${Math.random()}`,type:"kv-key-changed",content:m.content,timestamp:m.timestamp,eventId:m.eventId,senderId:m.senderId,senderInfo:m.senderInfo}):this.addEvent({_id:`legacy-kv-${Date.now()}-${Math.random()}`,type:"kv-key-changed",content:m,timestamp:m.updatedAt||new Date().toISOString(),uuid:m.uuid})})),u=be("urgent-notice",a(m=>{console.log("收到紧急通知:",m),this.addEvent({_id:`urgent-${Date.now()}-${Math.random()}`,type:"urgent-notice",content:m.content||m,timestamp:m.timestamp||new Date().toISOString(),eventId:m.eventId,senderId:m.senderId,senderInfo:m.senderInfo}),this.showUrgentNotification(m)})),h=be("notification",a(m=>{var p;console.log("收到通知事件:",m),this.addEvent({_id:`notification-${Date.now()}-${Math.random()}`,type:"notification",content:m.content||m,timestamp:m.timestamp||new Date().toISOString(),eventId:m.eventId,senderId:m.senderId,senderInfo:m.senderInfo||((p=m.content)==null?void 0:p.senderInfo)}),this.showUrgentNotification(m)}));this.cleanupFunctions=[d,s,u,h,l,o],this.visible&&this.onOpen()},beforeUnmount(){this.isDestroying=!0,this.cleanupFunctions&&Array.isArray(this.cleanupFunctions)&&this.cleanupFunctions.forEach(t=>{try{typeof t=="function"&&t()}catch(e){console.warn("ChatWidget 清理函数执行失败:",e)}});try{this.offMessage&&this.offMessage(),this.offDeviceEvent&&this.offDeviceEvent(),this.offKvChanged&&this.offKvChanged()}catch(t){console.warn("ChatWidget 旧清理函数执行失败:",t)}this.cleanupFunctions=[],this.messages=[],this.allEvents=[]},methods:{open(){this.visible=!0,this.$emit("update:modelValue",!0),this.onOpen()},close(){this.visible=!1,this.$emit("update:modelValue",!1);try{localStorage.setItem("chat.lastVisit",new Date().toISOString())}catch{}this.unreadCount=0},onOpen(){this.$nextTick(()=>this.scrollToBottom())},insertEmoji(t){this.text+=t,this.$nextTick(()=>{var e,a;if((a=(e=this.$refs.inputRef)==null?void 0:e.$el)!=null&&a.querySelector){const d=this.$refs.inputRef.$el.querySelector("textarea");d==null||d.focus()}})},handleEnter(t){t.shiftKey||this.send()},send(){const t=this.text.trim();if(!t)return;const e={_id:`self-${Date.now()}-${Math.random()}`,text:t,at:new Date().toISOString(),senderId:this.socketId,self:!0,senderInfo:{deviceName:"我",deviceType:"client",isReadOnly:!1}};this.pushMessage(e),this.addEvent({_id:`self-event-${Date.now()}-${Math.random()}`,type:"chat",content:{text:t},timestamp:new Date().toISOString(),senderId:this.socketId,senderInfo:{deviceName:"本设备",deviceType:"client",isReadOnly:!1}}),En(t),this.text=""},pushMessage(t){if(!(this.isDestroying||!t))try{const e={_id:`${t.at||Date.now()}-${Math.random()}`,text:typeof(t==null?void 0:t.text)=="string"?t.text:(t==null?void 0:t.text)||"",at:t.at||new Date().toISOString(),senderId:t.senderId,self:!!(t.senderId&&t.senderId===this.socketId),senderInfo:t.senderInfo||null,deviceName:this.getDeviceName(t.senderInfo,t.senderId===this.socketId)};if(!e.text)return;this.messages.push(e),this.visible||this.unreadCount++,this.$nextTick(()=>{this.isDestroying||this.scrollToBottom()}),this.messages.length>500&&this.messages.shift()}catch(e){console.error("ChatWidget pushMessage 错误:",e)}},formatTime(t){try{const e=new Date(t),a=String(e.getHours()).padStart(2,"0"),d=String(e.getMinutes()).padStart(2,"0");return`${a}:${d}`}catch{return""}},scrollToBottom(){if(!this.isDestroying)try{const t=this.$refs.listRef;if(!t)return;requestAnimationFrame(()=>{!this.isDestroying&&t&&(t.scrollTop=t.scrollHeight)})}catch(t){console.warn("ChatWidget scrollToBottom 错误:",t)}},addEvent(t){if(!(this.isDestroying||!t))try{this.allEvents.unshift(t),t.type==="chat"||t.type==="chat:message"?this.eventStats.chat++:t.type==="kv-key-changed"?this.eventStats.kvChanged++:this.eventStats.other++,this.allEvents.length>200&&(this.allEvents=this.allEvents.slice(0,200))}catch(e){console.error("ChatWidget addEvent 错误:",e)}},getEventColor(t){switch(t){case"chat":case"chat:message":return"success";case"kv-key-changed":return"info";default:return"warning"}},getEventTypeLabel(t){switch(t){case"chat":case"chat:message":return"聊天";case"kv-key-changed":return"KV变化";default:return t}},formatDeviceInfo(t){return Nn(t)},getDeviceName(t,e=!1){return e?"我":t?t.deviceName==="realtime"?"系统":t.deviceName||t.deviceType||"未知设备":"未知设备"},showUrgentNotification(t){try{this.$refs.urgentNotification?this.$refs.urgentNotification.show(t):console.warn("紧急通知组件未找到")}catch(e){console.error("显示紧急通知失败:",e)}}}},Cs={class:"text-subtitle-1"},Ds={key:0,ref:"listRef",class:"messages"},_s={key:0,class:"divider-row"},Ts={class:"avatar"},Vs={class:"bubble"},Is={key:0,class:"sender-name"},Ns={class:"text"},Es={class:"meta"},As={key:0,class:"device-name"},Us={key:1,class:"events-container"},Fs={class:"event-stats mb-3"},Ms={class:"text-h6"},Ps={class:"text-h6"},zs={class:"text-h6"},Ls={class:"events-list"},Rs={class:"d-flex align-center mb-1"},Bs={class:"text-caption"},$s={key:0,class:"mb-1 text-caption"},Os={class:"event-content"},js={key:0,class:"chat-content"},Ks={key:1,class:"text-caption event-data"},Hs={key:0,class:"text-center text-grey pa-4"},qs={key:0,class:"pagination mt-2"};function Qs(t,e,a,d,s,l){const o=Nt;return f(),y(N,null,[l.showToggleButton?(f(),y("div",{key:0,style:Ie(l.toggleStyle),class:"chat-toggle"},[n(k,{color:"primary",icon:"",variant:"flat",onClick:e[0]||(e[0]=u=>l.open())},{default:i(()=>[n(_n,{content:s.unreadCount||void 0,"model-value":s.unreadCount>0,color:"error",overlap:""},{default:i(()=>[n(D,null,{default:i(()=>[...e[7]||(e[7]=[c(" mdi-chat ",-1)])]),_:1})]),_:1},8,["content","model-value"])]),_:1})],4)):x("",!0),re(r("div",{style:Ie(l.panelStyle),class:"chat-panel"},[n(_,{border:"",class:"chat-card",elevation:"8"},{default:i(()=>[n(Y,{class:"d-flex align-center"},{default:i(()=>[n(D,{class:"mr-2"},{default:i(()=>[...e[8]||(e[8]=[c(" mdi-chat-processing ",-1)])]),_:1}),r("span",Cs,g(l.modeTitle),1),n(K),n(bt,{modelValue:s.currentMode,"onUpdate:modelValue":e[1]||(e[1]=u=>s.currentMode=u),class:"mr-2",mandatory:"",size:"small",variant:"outlined"},{default:i(()=>[n(k,{value:"chat",size:"small"},{default:i(()=>[n(D,null,{default:i(()=>[...e[9]||(e[9]=[c("mdi-chat",-1)])]),_:1})]),_:1}),n(k,{value:"events",size:"small"},{default:i(()=>[n(D,null,{default:i(()=>[...e[10]||(e[10]=[c("mdi-format-list-bulleted",-1)])]),_:1})]),_:1})]),_:1},8,["modelValue"]),n(Ze,{location:"top"},{activator:i(({props:u})=>[n(B,he({color:s.connected?"success":"grey",size:"x-small"},u,{variant:"tonal"}),{default:i(()=>[c(g(s.connected?"已连接":"未连接"),1)]),_:1},16,["color"])]),default:i(()=>[r("span",null,"Socket "+g(s.socketId||"-"),1)]),_:1}),n(k,{icon:"",variant:"text",onClick:e[2]||(e[2]=u=>l.close())},{default:i(()=>[n(D,null,{default:i(()=>[...e[11]||(e[11]=[c("mdi-close",-1)])]),_:1})]),_:1})]),_:1}),n(xe),n(A,{class:"chat-body"},{default:i(()=>[s.currentMode==="chat"?(f(),y("div",Ds,[(f(!0),y(N,null,M(l.decoratedMessages,u=>(f(),y(N,{key:u._id},[u._type==="divider"?(f(),y("div",_s,[n(xe,{class:"my-2"}),e[12]||(e[12]=r("div",{class:"divider-text"}," 今天 - 上次访问 ",-1)),n(xe,{class:"my-2"})])):(f(),y("div",{key:1,class:we([{self:u.self},"message-row"])},[r("div",Ts,[n(je,{color:u.self?"primary":"grey",size:"24"},{default:i(()=>[n(D,{size:"small"},{default:i(()=>[c(g(u.self?"mdi-account":"mdi-account-outline"),1)]),_:2},1024)]),_:2},1032,["color"])]),r("div",Vs,[!u.self&&u.deviceName?(f(),y("div",Is,g(u.deviceName),1)):x("",!0),r("div",Ns,g(u.text),1),r("div",Es,[u.self&&u.deviceName?(f(),y("span",As,g(u.deviceName)+" • ",1)):x("",!0),c(" "+g(l.formatTime(u.at)),1)])])],2))],64))),128))],512)):(f(),y("div",Us,[r("div",Fs,[n(ge,{dense:""},{default:i(()=>[n(se,{cols:"4"},{default:i(()=>[n(_,{color:"success",dark:"",size:"small"},{default:i(()=>[n(A,{class:"text-center pa-2"},{default:i(()=>[r("div",Ms,g(s.eventStats.chat),1),e[13]||(e[13]=r("div",{class:"text-caption"}," 聊天 ",-1))]),_:1})]),_:1})]),_:1}),n(se,{cols:"4"},{default:i(()=>[n(_,{color:"info",dark:"",size:"small"},{default:i(()=>[n(A,{class:"text-center pa-2"},{default:i(()=>[r("div",Ps,g(s.eventStats.kvChanged),1),e[14]||(e[14]=r("div",{class:"text-caption"}," KV变化 ",-1))]),_:1})]),_:1})]),_:1}),n(se,{cols:"4"},{default:i(()=>[n(_,{color:"warning",dark:"",size:"small"},{default:i(()=>[n(A,{class:"text-center pa-2"},{default:i(()=>[r("div",zs,g(s.eventStats.other),1),e[15]||(e[15]=r("div",{class:"text-caption"}," 其他 ",-1))]),_:1})]),_:1})]),_:1})]),_:1})]),r("div",Ls,[(f(!0),y(N,null,M(l.paginatedEvents,u=>(f(),y("div",{key:u._id,class:"event-item mb-2"},[n(_,{color:l.getEventColor(u.type),size:"small",variant:"outlined"},{default:i(()=>[n(A,{class:"pa-2"},{default:i(()=>{var h;return[r("div",Rs,[n(B,{color:l.getEventColor(u.type),size:"x-small"},{default:i(()=>[c(g(l.getEventTypeLabel(u.type)),1)]),_:2},1032,["color"]),n(K),r("span",Bs,g(l.formatTime(u.timestamp||u.at)),1)]),u.senderInfo?(f(),y("div",$s,[e[16]||(e[16]=r("strong",null,"发送者:",-1)),c(" "+g(l.formatDeviceInfo(u.senderInfo)),1)])):x("",!0),r("div",Os,[u.type==="chat"||u.type==="chat:message"?(f(),y("div",js,g(((h=u.content)==null?void 0:h.text)||u.text),1)):(f(),y("pre",Ks,g(JSON.stringify(u.content||u,null,1)),1))])]}),_:2},1024)]),_:2},1032,["color"])]))),128)),s.allEvents.length===0?(f(),y("div",Hs," 暂无事件 ")):x("",!0)]),l.totalPages>1?(f(),y("div",qs,[n(An,{modelValue:s.currentPage,"onUpdate:modelValue":e[3]||(e[3]=u=>s.currentPage=u),length:l.totalPages,"total-visible":3,size:"small"},null,8,["modelValue","length"])])):x("",!0)]))]),_:1}),s.currentMode==="chat"?(f(),w(xe,{key:0})):x("",!0),s.currentMode==="chat"?(f(),w(de,{key:1,class:"chat-input"},{default:i(()=>[n(k,{class:"mr-1",icon:"",variant:"text",onClick:e[4]||(e[4]=u=>l.insertEmoji("😄"))},{default:i(()=>[n(D,null,{default:i(()=>[...e[17]||(e[17]=[c("mdi-emoticon-outline",-1)])]),_:1})]),_:1}),n(ze,{ref:"inputRef",modelValue:s.text,"onUpdate:modelValue":e[5]||(e[5]=u=>s.text=u),"auto-grow":"",class:"flex-grow-1","hide-details":"",placeholder:"输入消息",rows:"1",variant:"solo",onKeydown:[it(at(l.handleEnter,["prevent"]),["enter"]),e[6]||(e[6]=it(at(()=>{},["shift","stop"]),["enter"]))]},null,8,["modelValue","onKeydown"]),n(k,{disabled:!l.canSend,class:"ml-2",color:"primary",onClick:l.send},{default:i(()=>[n(D,{start:""},{default:i(()=>[...e[18]||(e[18]=[c(" mdi-send ",-1)])]),_:1}),e[19]||(e[19]=c(" 发送 ",-1))]),_:1},8,["disabled","onClick"])]),_:1})):x("",!0)]),_:1})],4),[[Te,s.visible]]),n(o,{ref:"urgentNotification"},null,512)],64)}const qe=te(Ss,[["render",Qs],["__scopeId","data-v-1a62ac2a"]]),Ws={name:"UrgentTestDialog",components:{ChatWidget:qe,EventSender:He},props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{sending:!1,notificationForm:{isUrgent:!1,message:"",isPersistent:!1},sentMessages:[],receiptCleanup:[],persistentNotifications:[],editDialog:!1,editForm:{id:null,message:"",isUrgent:!1,resend:!1},savingEdit:!1,deleteConfirmDialog:!1,itemToDelete:null}},computed:{dialog:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},mounted(){this.setupEventListeners(),this.loadPersistentNotifications()},beforeUnmount(){this.cleanup()},methods:{generateNotificationId(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let e="";for(let a=0;a<32;a++)e+=t.charAt(Math.floor(Math.random()*t.length));return e},async sendNotification(){if(this.notificationForm.message.trim()){this.sending=!0;try{const t=this.generateNotificationId(),e=this.notificationForm.message,a=this.notificationForm.isUrgent,d=this.notificationForm.isPersistent,s=await this.$refs.eventSender.sendNotification(e,a,[],{deviceName:"测试设备",deviceType:"system",isReadOnly:!1},t),l=(s==null?void 0:s.eventId)||`msg-${Date.now()}`;if(this.sentMessages.push({id:l,notificationId:t,message:e,isUrgent:a,timestamp:new Date().toISOString(),receipts:{displayed:[],read:[]}}),d)try{const o="notification-list",u=await fe.loadData(o);let h=[];u&&Array.isArray(u)?h=u:u&&u.success!==!1&&Array.isArray(u.data)&&(h=u.data);const m={id:t,message:e,isUrgent:a,timestamp:new Date().toISOString()};h.unshift(m),await fe.saveData(o,h),this.persistentNotifications=h,console.log("常驻通知已保存")}catch(o){console.error("保存常驻通知失败",o)}console.log("通知已发送,事件ID:",l,"通知ID:",t),this.resetForm()}catch(t){console.error("发送通知失败:",t)}finally{this.sending=!1}}},resetForm(){this.notificationForm={isUrgent:!1,message:"",isPersistent:!1}},close(){this.dialog=!1},setupEventListeners(){const t=be("notification-displayed",a=>{console.log("收到显示回执:",a),this.updateReceipt(a,"displayed")}),e=be("notification-read",a=>{console.log("收到已读回执:",a),this.updateReceipt(a,"read")});this.receiptCleanup.push(t,e)},updateReceipt(t,e){var l,o,u,h,m;const a=t.originalEventId,d=t.notificationId||((l=t.content)==null?void 0:l.notificationId);if(!a&&!d)return;const s=this.sentMessages.find(p=>p.id===a||p.notificationId===d);if(s){const p={senderId:t.senderId||"unknown-sender",deviceName:((o=t.senderInfo)==null?void 0:o.deviceName)||((u=t.deviceInfo)==null?void 0:u.deviceName)||"未知设备",deviceType:((h=t.senderInfo)==null?void 0:h.deviceType)||((m=t.deviceInfo)==null?void 0:m.deviceType)||"unknown",timestamp:new Date().toISOString()};s.receipts[e].find(L=>L.senderId===p.senderId)||(s.receipts[e].push(p),console.log(`更新${e}回执:`,s.id,p))}},cleanup(){this.receiptCleanup.forEach(t=>t()),this.receiptCleanup=[]},formatTime(t){return new Date(t).toLocaleString("zh-CN")},getReceiptStatus(t){return t.read.length>0?"已读":t.displayed.length>0?"已显示":"已发送"},getReceiptColor(t){return t.read.length>0?"success":t.displayed.length>0?"info":"grey"},formatDeviceTime(t){return new Date(t).toLocaleTimeString("zh-CN")},getMainCardColor(t){return t.read.length>0?"success":t.displayed.length>0?"info":"grey"},hasAnyReceipts(t){return t.read.length>0||t.displayed.length>0},getDisplayedOnlyDevices(t){const e=t.read.map(a=>a.senderId);return t.displayed.filter(a=>!e.includes(a.senderId))},openEditDialog(t){this.editForm={id:t.id,message:t.message,isUrgent:t.isUrgent||!1,resend:!1,timestamp:t.timestamp},this.editDialog=!0},async saveEdit(){var t,e;if(this.editForm.message.trim()){this.savingEdit=!0;try{const a=this.persistentNotifications.findIndex(d=>d.id===this.editForm.id);if(a!==-1){if(this.persistentNotifications[a]={...this.persistentNotifications[a],message:this.editForm.message,isUrgent:this.editForm.isUrgent,timestamp:new Date().toISOString()},await fe.saveData("notification-list",this.persistentNotifications),this.editForm.resend){const d=this.editForm.id,s=this.editForm.message,l=this.editForm.isUrgent,o=await this.$refs.eventSender.sendNotification(s,l,[],{deviceName:"测试设备",deviceType:"system",isReadOnly:!1},d),u=(o==null?void 0:o.eventId)||`msg-${Date.now()}`;this.sentMessages.push({id:u,notificationId:d,message:s,isUrgent:l,timestamp:new Date().toISOString(),receipts:{displayed:[],read:[]}})}this.editDialog=!1,(t=this.$message)==null||t.success("已更新")}}catch(a){console.error("保存失败",a),(e=this.$message)==null||e.error("保存失败")}finally{this.savingEdit=!1}}},async loadPersistentNotifications(){try{const t=await fe.loadData("notification-list");t&&Array.isArray(t)?this.persistentNotifications=t:t&&t.success!==!1&&Array.isArray(t.data)?this.persistentNotifications=t.data:this.persistentNotifications=[]}catch(t){console.error("加载常驻通知失败",t)}},async deleteNotification(t){if(confirm("确定要删除这个通知吗?"))try{this.sentMessages=this.sentMessages.filter(a=>a.id!==t),this.persistentNotifications=this.persistentNotifications.filter(a=>a.id!==t),console.log("通知已删除,通知ID:",t)}catch(a){console.error("删除通知失败:",a)}},deletePersistentNotification(t){this.itemToDelete=t,this.deleteConfirmDialog=!0},async executeDelete(){var e,a;if(!this.itemToDelete)return;const t=this.itemToDelete;this.deleteConfirmDialog=!1,this.itemToDelete=null;try{this.persistentNotifications=this.persistentNotifications.filter(s=>s.id!==t);const d=this.persistentNotifications.length>0?this.persistentNotifications:{};await fe.saveData("notification-list",d),(e=this.$message)==null||e.success("已删除")}catch(d){console.error("删除失败",d),(a=this.$message)==null||a.error("删除失败")}}}},Gs={key:0,class:"text-center text-grey py-4"},Js={key:0,class:"text-center text-grey py-8"},Ys={class:"d-flex align-center mb-2"},Xs={class:"font-weight-medium"},Zs={class:"text-caption font-weight-medium"},ei={class:"text-body-2 mb-3",style:{"max-height":"60px",overflow:"hidden"}},ti={class:"text-caption"},ni={key:0},si={class:"align-center"},ii={class:"text-body-2 font-weight-medium"},ai={class:"text-caption mt-1"},li={class:"align-center"},oi={class:"text-body-2 font-weight-medium"},ri={class:"text-caption text-grey"},di={class:"text-caption text-grey mt-1"},ui={key:1};function ci(t,e,a,d,s,l){const o=qe,u=He;return f(),w(ie,{modelValue:l.dialog,"onUpdate:modelValue":e[11]||(e[11]=h=>l.dialog=h),fullscreen:"",transition:"dialog-bottom-transition",scrollable:""},{default:i(()=>[n(_,null,{default:i(()=>[n(ut,{dark:"",flat:""},{default:i(()=>[n(ct,null,{default:i(()=>[n(D,{class:"mr-2"},{default:i(()=>[...e[12]||(e[12]=[c(" mdi-chat ",-1)])]),_:1}),e[13]||(e[13]=c(" 发送通知 ",-1))]),_:1}),n(K),n(k,{icon:"mdi-close",onClick:l.close},null,8,["onClick"])]),_:1}),n(A,{class:"pa-0"},{default:i(()=>[n(_t,null,{default:i(()=>[n(ge,null,{default:i(()=>[n(se,{cols:"12"},{default:i(()=>[n(_,null,{default:i(()=>[n(A,null,{default:i(()=>[n(ft,null,{default:i(()=>[n(ge,null,{default:i(()=>[n(se,{cols:"12",md:"6"},{default:i(()=>[n(mt,{modelValue:s.notificationForm.isUrgent,"onUpdate:modelValue":e[0]||(e[0]=h=>s.notificationForm.isUrgent=h),label:"强调通知",color:"red",inset:""},null,8,["modelValue"]),n(ht,{modelValue:s.notificationForm.isPersistent,"onUpdate:modelValue":e[1]||(e[1]=h=>s.notificationForm.isPersistent=h),label:"常驻展示",color:"primary","hide-details":"",class:"mt-0"},null,8,["modelValue"])]),_:1}),n(se,{cols:"12"},{default:i(()=>[n(ze,{modelValue:s.notificationForm.message,"onUpdate:modelValue":e[2]||(e[2]=h=>s.notificationForm.message=h),label:"通知内容",outlined:"",rows:"3",placeholder:"请输入强调通知的内容..."},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),n(de,{class:"px-6 pb-6"},{default:i(()=>[n(k,{color:s.notificationForm.isUrgent?"red":"blue",disabled:!s.notificationForm.message.trim(),loading:s.sending,size:"large",variant:"elevated",onClick:l.sendNotification},{default:i(()=>[n(D,{left:""},{default:i(()=>[c(g(s.notificationForm.isUrgent?"mdi-alert-circle":"mdi-information"),1)]),_:1}),c(" "+g(s.notificationForm.isUrgent?"发送强调通知":"发送通知"),1)]),_:1},8,["color","disabled","loading","onClick"]),n(K)]),_:1})]),_:1})]),_:1})]),_:1}),n(ge,{class:"mt-4"},{default:i(()=>[n(se,{cols:"12"},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,null,{default:i(()=>[n(D,{class:"mr-2"},{default:i(()=>[...e[14]||(e[14]=[c("mdi-pin",-1)])]),_:1}),e[15]||(e[15]=c(" 常驻通知管理 ",-1))]),_:1}),n(A,null,{default:i(()=>[s.persistentNotifications.length===0?(f(),y("div",Gs," 暂无常驻通知 ")):(f(),w(Ke,{key:1},{default:i(()=>[(f(!0),y(N,null,M(s.persistentNotifications,h=>(f(),w(Me,{key:h.id,title:h.message,subtitle:l.formatTime(h.timestamp),lines:"two"},{prepend:i(()=>[n(D,{color:h.isUrgent?"error":"primary"},{default:i(()=>[c(g(h.isUrgent?"mdi-alert-circle":"mdi-information"),1)]),_:2},1032,["color"])]),append:i(()=>[n(k,{icon:"mdi-pencil",variant:"text",size:"small",onClick:m=>l.openEditDialog(h)},null,8,["onClick"]),n(k,{icon:"mdi-delete",variant:"text",color:"error",size:"small",onClick:m=>l.deletePersistentNotification(h.id)},null,8,["onClick"])]),_:2},1032,["title","subtitle"]))),128))]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1}),n(ge,{class:"mt-4"},{default:i(()=>[n(se,{cols:"12"},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,null,{default:i(()=>[n(D,{class:"mr-2"},{default:i(()=>[...e[16]||(e[16]=[c(" mdi-history ",-1)])]),_:1}),e[17]||(e[17]=c(" 消息记录 ",-1)),n(K)]),_:1}),n(A,null,{default:i(()=>[s.sentMessages.length===0?(f(),y("div",Js,[n(D,{size:"64",color:"grey-lighten-2"},{default:i(()=>[...e[18]||(e[18]=[c(" mdi-message-outline ",-1)])]),_:1}),e[19]||(e[19]=r("div",{class:"mt-2"}," 暂无发送记录 ",-1))])):(f(),w(ge,{key:1},{default:i(()=>[(f(!0),y(N,null,M(s.sentMessages.slice().reverse(),h=>(f(),w(se,{key:h.id,cols:"12",md:"6",lg:"4"},{default:i(()=>[n(_,{color:l.getMainCardColor(h.receipts),class:"mb-2"},{default:i(()=>[n(A,null,{default:i(()=>[r("div",Ys,[r("span",Xs,g(h.isUrgent?"强调通知":"通知"),1),n(K),r("span",Zs,g(l.getReceiptStatus(h.receipts)),1)]),r("div",ei,g(h.message),1),r("div",ti,[r("div",null,"发送时间:"+g(l.formatTime(h.timestamp)),1),r("div",null,"事件ID:"+g(h.id),1),r("div",null,"通知ID:"+g(h.notificationId),1)])]),_:2},1024)]),_:2},1032,["color"]),l.hasAnyReceipts(h.receipts)?(f(),y("div",ni,[(f(!0),y(N,null,M(h.receipts.read,m=>(f(),w(_,{key:`${m.senderId}-read`,color:"success",class:"mb-1",size:"small"},{default:i(()=>[n(A,{class:"pa-2"},{default:i(()=>[r("div",si,[r("span",ii,g(m.deviceName),1),e[20]||(e[20]=r("br",null,null,-1)),c(" "+g(m.deviceType),1)]),r("div",ai," 已读于 "+g(l.formatDeviceTime(m.timestamp)),1)]),_:2},1024)]),_:2},1024))),128)),(f(!0),y(N,null,M(l.getDisplayedOnlyDevices(h.receipts),m=>(f(),w(_,{key:`${m.senderId}-displayed`,color:"info-lighten-4",variant:"outlined",class:"mb-1",size:"small"},{default:i(()=>[n(A,{class:"pa-2"},{default:i(()=>[r("div",li,[r("span",oi,g(m.deviceName),1),n(K),r("span",ri,g(m.deviceType=="classroom"?"教室设备上的应用":m.deviceType),1)]),r("div",di," 已显示于 "+g(l.formatDeviceTime(m.timestamp)),1)]),_:2},1024)]),_:2},1024))),128))])):(f(),y("div",ui,[n(_,{color:"info-lighten-4",variant:"outlined",class:"mb-1",size:"small",title:"无设备在线"},{default:i(()=>[n(A,null,{default:i(()=>[...e[21]||(e[21]=[c(" 如果数秒后任然显示这个提示,则可能没有任何设备在线接收通知。 ",-1)])]),_:1})]),_:1})]))]),_:2},1024))),128))]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),n(o),n(u,{ref:"eventSender"},null,512),n(ie,{modelValue:s.editDialog,"onUpdate:modelValue":e[8]||(e[8]=h=>s.editDialog=h),"max-width":"500",fullscreen:t.$vuetify.display.xs},{default:i(()=>[n(_,null,{default:i(()=>[n(ut,{flat:"",density:"compact"},{default:i(()=>[n(ct,null,{default:i(()=>[...e[22]||(e[22]=[c("编辑常驻通知",-1)])]),_:1}),n(K),n(k,{icon:"mdi-close",onClick:e[3]||(e[3]=h=>s.editDialog=!1)})]),_:1}),n(A,null,{default:i(()=>[n(ft,null,{default:i(()=>[n(ze,{modelValue:s.editForm.message,"onUpdate:modelValue":e[4]||(e[4]=h=>s.editForm.message=h),label:"通知内容",rows:"3","auto-grow":""},null,8,["modelValue"]),n(mt,{modelValue:s.editForm.isUrgent,"onUpdate:modelValue":e[5]||(e[5]=h=>s.editForm.isUrgent=h),label:"强调通知",color:"error","hide-details":""},null,8,["modelValue"]),n(ht,{modelValue:s.editForm.resend,"onUpdate:modelValue":e[6]||(e[6]=h=>s.editForm.resend=h),label:"保存并重新发送通知",hint:"勾选后将作为新通知发送给所有在线设备","persistent-hint":""},null,8,["modelValue"])]),_:1})]),_:1}),n(de,null,{default:i(()=>[n(K),n(k,{variant:"text",onClick:e[7]||(e[7]=h=>s.editDialog=!1)},{default:i(()=>[...e[23]||(e[23]=[c("取消",-1)])]),_:1}),n(k,{color:"primary",loading:s.savingEdit,onClick:l.saveEdit},{default:i(()=>[...e[24]||(e[24]=[c("保存",-1)])]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","fullscreen"]),n(ie,{modelValue:s.deleteConfirmDialog,"onUpdate:modelValue":e[10]||(e[10]=h=>s.deleteConfirmDialog=h),"max-width":"400"},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,{class:"text-h5"},{default:i(()=>[...e[25]||(e[25]=[c("确认删除",-1)])]),_:1}),n(A,null,{default:i(()=>[...e[26]||(e[26]=[c("确定要删除这条常驻通知吗?此操作无法撤销。",-1)])]),_:1}),n(de,null,{default:i(()=>[n(K),n(k,{color:"grey-darken-1",variant:"text",onClick:e[9]||(e[9]=h=>s.deleteConfirmDialog=!1)},{default:i(()=>[...e[27]||(e[27]=[c("取消",-1)])]),_:1}),n(k,{color:"error",variant:"text",onClick:l.executeDelete},{default:i(()=>[...e[28]||(e[28]=[c("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])}const Et=te(Ws,[["render",ci],["__scopeId","data-v-c6850940"]]),fi={name:"FloatingICP"},mi={"aria-label":"浙ICP备2024068645号",class:"floating-icp-link",href:"https://beian.miit.gov.cn/",rel:"noopener noreferrer",target:"_blank"};function hi(t,e,a,d,s,l){return f(),y("a",mi," 浙ICP备2024068645号 ")}const At=te(fi,[["render",hi],["__scopeId","data-v-8d08b563"]]),vi={name:"FloatingToolbar",props:{loading:{type:Boolean,default:!1},unreadCount:{type:Number,default:0},selectedDate:{type:[String,Date],required:!0},isToday:{type:Boolean,required:!0},copyToTodayLoading:{type:Boolean,default:!1}},data(){return{isExpanded:!1}},methods:{handleDateSelect(t){this.$emit("date-select",t)}}},gi={class:"floating-toolbar-container"};function pi(t,e,a,d,s,l){return f(),y("div",gi,[n(tn,null,{default:i(()=>[n(_,{class:we([{"toolbar-expanded":s.isExpanded},"floating-toolbar"]),elevation:"4",rounded:"xl"},{default:i(()=>[n(wt,{class:"toolbar-buttons",variant:"text"},{default:i(()=>[re(n(k,{title:"查看昨天",class:"toolbar-btn",icon:"mdi-chevron-left",variant:"text",onClick:e[0]||(e[0]=o=>t.$emit("prev-day"))},null,512),[[Ve]]),re(n(k,{title:"缩小字体",class:"toolbar-btn",icon:"mdi-format-font-size-decrease",variant:"text",onClick:e[1]||(e[1]=o=>t.$emit("zoom","out"))},null,512),[[Ve]]),re(n(k,{title:"放大字体",class:"toolbar-btn",icon:"mdi-format-font-size-increase",variant:"text",onClick:e[2]||(e[2]=o=>t.$emit("zoom","up"))},null,512),[[Ve]]),n(Tt,{"close-on-content-click":!1,location:"top"},{activator:i(({props:o})=>[re(n(k,he({title:"选择日期",class:"toolbar-btn",icon:"mdi-calendar"},o,{variant:"text"}),null,16),[[Ve]])]),default:i(()=>[n(_,{border:"",class:"date-picker-card"},{default:i(()=>[n(jn,{"model-value":a.selectedDate,color:"primary","onUpdate:modelValue":l.handleDateSelect},null,8,["model-value","onUpdate:modelValue"])]),_:1})]),_:1}),re(n(k,{loading:a.loading,title:"刷新数据",class:"toolbar-btn",icon:"mdi-refresh",variant:"text",onClick:e[3]||(e[3]=o=>t.$emit("refresh"))},null,8,["loading"]),[[Ve]]),a.isToday?x("",!0):re((f(),w(k,{key:0,title:"查看明天",class:"toolbar-btn",icon:"mdi-chevron-right",variant:"text",onClick:e[4]||(e[4]=o=>t.$emit("next-day"))},null,512)),[[Ve]])]),_:1})]),_:1},8,["class"])]),_:1}),n(nn,null,{default:i(()=>[a.isToday?x("",!0):(f(),w(k,{key:0,loading:a.copyToTodayLoading,disabled:a.copyToTodayLoading,class:"side-action-btn",color:"primary",elevation:"4","prepend-icon":"mdi-content-copy",rounded:"xl",size:"large",text:"复制作业内容到今天",onClick:e[5]||(e[5]=o=>t.$emit("copy-to-today"))},{default:i(()=>[...e[6]||(e[6]=[c("复制到今天",-1)])]),_:1},8,["loading","disabled"]))]),_:1})])}const Ut=te(vi,[["render",pi],["__scopeId","data-v-7076d3aa"]]),yi={name:"AttendanceManagementDialog",props:{modelValue:{type:Boolean,required:!0},studentList:{type:Array,required:!0},attendance:{type:Object,required:!0},dateString:{type:String,default:""}},emits:["update:modelValue","save","change"],setup(){const{mobile:t}=Pe();return{isMobile:t}},data(){return{attendanceSearch:"",attendanceFilter:[]}},computed:{filteredStudents(){let t=[...this.studentList];if(this.attendanceSearch){const e=this.attendanceSearch.toLowerCase();t=t.filter(a=>a.toLowerCase().includes(e))}return this.attendanceFilter&&this.attendanceFilter.length>0&&(t=t.filter(e=>!!(this.attendanceFilter.includes("present")&&this.isPresent(e)||this.attendanceFilter.includes("absent")&&this.isAbsent(e)||this.attendanceFilter.includes("late")&&this.isLate(e)||this.attendanceFilter.includes("exclude")&&this.isExclude(e)))),t},extractedSurnames(){if(!this.studentList||this.studentList.length===0)return[];const t=new Map;return this.studentList.forEach(e=>{if(e&&e.length>0){const a=e.charAt(0);t.set(a,(t.get(a)||0)+1)}}),Array.from(t.entries()).map(([e,a])=>({name:e,count:a})).sort((e,a)=>{const d=vt(e.name,{toneType:"none"}),s=vt(a.name,{toneType:"none"});return d.localeCompare(s)})}},methods:{toggleFilter(t){const e=this.attendanceFilter.indexOf(t);e===-1?this.attendanceFilter.push(t):this.attendanceFilter.splice(e,1)},isPresent(t){const{absent:e,late:a,exclude:d}=this.attendance;return!e.includes(t)&&!a.includes(t)&&!d.includes(t)},isAbsent(t){return this.attendance.absent.includes(t)},isLate(t){return this.attendance.late.includes(t)},isExclude(t){return this.attendance.exclude.includes(t)},getStudentStatusColor(t){return this.attendance.absent.includes(t)?"error":this.attendance.late.includes(t)?"warning":this.attendance.exclude.includes(t)?"grey":"success"},getStudentStatusIcon(t){return this.attendance.absent.includes(t)?"mdi-account-off":this.attendance.late.includes(t)?"mdi-clock-alert":this.attendance.exclude.includes(t)?"mdi-account-cancel":"mdi-account-check"},removeFromAll(t){const e=this.attendance.absent.indexOf(t);e>-1&&this.attendance.absent.splice(e,1);const a=this.attendance.late.indexOf(t);a>-1&&this.attendance.late.splice(a,1);const d=this.attendance.exclude.indexOf(t);d>-1&&this.attendance.exclude.splice(d,1)},setPresent(t){this.removeFromAll(t),this.$emit("change")},setAbsent(t){this.removeFromAll(t),this.attendance.absent.push(t),this.$emit("change")},setLate(t){this.removeFromAll(t),this.attendance.late.push(t),this.$emit("change")},setExclude(t){this.removeFromAll(t),this.attendance.exclude.push(t),this.$emit("change")},setAllPresent(){this.attendance.absent.splice(0,this.attendance.absent.length),this.attendance.late.splice(0,this.attendance.late.length),this.attendance.exclude.splice(0,this.attendance.exclude.length),this.$emit("change")},setAllAbsent(){this.setAllPresent(),this.attendance.absent.push(...this.studentList),this.$emit("change")},setAllLate(){this.setAllPresent(),this.attendance.late.push(...this.studentList),this.$emit("change")},setAllExclude(){this.setAllPresent(),this.attendance.exclude.push(...this.studentList),this.$emit("change")}}},ki={class:"d-flex flex-wrap mt-2 gap-1"},bi={class:"d-flex flex-wrap mb-4 gap-2"},wi={class:"flex-grow-1"},xi={class:"d-flex align-center"},Si={class:"text-subtitle-1"},Ci={class:"attendance-actions"},Di={class:"d-flex flex-wrap gap-2"};function _i(t,e,a,d,s,l){return f(),w(ie,{"model-value":a.modelValue,fullscreen:d.isMobile,"fullscreen-breakpoint":"sm","max-width":"900","onUpdate:modelValue":e[7]||(e[7]=o=>t.$emit("update:modelValue",o))},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,{class:"d-flex align-center"},{default:i(()=>[n(D,{class:"mr-2",icon:"mdi-account-group"}),e[8]||(e[8]=c(" 出勤状态管理 ",-1)),n(K),d.isMobile?x("",!0):(f(),w(B,{key:0,class:"ml-2",color:"primary",size:"small"},{default:i(()=>[c(g(a.dateString),1)]),_:1})),d.isMobile?(f(),w(k,{key:1,icon:"mdi-close",variant:"text",onClick:e[0]||(e[0]=o=>t.$emit("update:modelValue",!1))})):x("",!0)]),_:1}),n(A,null,{default:i(()=>[n(ge,{class:"mb-4"},{default:i(()=>[n(se,{cols:"12",md:"12"},{default:i(()=>[n(De,{modelValue:s.attendanceSearch,"onUpdate:modelValue":e[1]||(e[1]=o=>s.attendanceSearch=o),clearable:"",hint:"支持筛选姓氏,如输入'孙'可筛选所有姓孙的学生",label:"搜索学生","prepend-inner-icon":"mdi-magnify",variant:"outlined"},null,8,["modelValue"]),r("div",ki,[(f(!0),y(N,null,M(l.extractedSurnames,o=>(f(),w(k,{key:o.name,color:s.attendanceSearch===o.name?"primary":"",variant:s.attendanceSearch===o.name?"elevated":"text",onClick:u=>s.attendanceSearch=s.attendanceSearch===o.name?"":o.name},{default:i(()=>[c(g(o.name)+" ("+g(o.count)+") ",1)]),_:2},1032,["color","variant","onClick"]))),128))])]),_:1})]),_:1}),r("div",bi,[r("div",null,[n(B,{"append-icon":s.attendanceFilter.includes("present")?"mdi-check":"",color:s.attendanceFilter.includes("present")?"success":"",variant:s.attendanceFilter.includes("present")?"elevated":"tonal",class:"px-2 filter-chip","prepend-icon":"mdi-account-check",value:"present",onClick:e[2]||(e[2]=o=>l.toggleFilter("present"))},{default:i(()=>[...e[9]||(e[9]=[c(" 到课 ",-1)])]),_:1},8,["append-icon","color","variant"]),n(B,{"append-icon":s.attendanceFilter.includes("absent")?"mdi-check":"",color:s.attendanceFilter.includes("absent")?"error":"",variant:s.attendanceFilter.includes("absent")?"elevated":"tonal",class:"px-2 filter-chip","prepend-icon":"mdi-account-off",value:"absent",onClick:e[3]||(e[3]=o=>l.toggleFilter("absent"))},{default:i(()=>[...e[10]||(e[10]=[c(" 请假 ",-1)])]),_:1},8,["append-icon","color","variant"]),n(B,{"append-icon":s.attendanceFilter.includes("late")?"mdi-check":"",color:s.attendanceFilter.includes("late")?"warning":"",variant:s.attendanceFilter.includes("late")?"elevated":"tonal",class:"px-2 filter-chip","prepend-icon":"mdi-clock-alert",value:"late",onClick:e[4]||(e[4]=o=>l.toggleFilter("late"))},{default:i(()=>[...e[11]||(e[11]=[c(" 迟到 ",-1)])]),_:1},8,["append-icon","color","variant"]),n(B,{"append-icon":s.attendanceFilter.includes("exclude")?"mdi-check":"",color:s.attendanceFilter.includes("exclude")?"grey":"",variant:s.attendanceFilter.includes("exclude")?"elevated":"tonal",class:"px-2 filter-chip","prepend-icon":"mdi-account-cancel",value:"exclude",onClick:e[5]||(e[5]=o=>l.toggleFilter("exclude"))},{default:i(()=>[...e[12]||(e[12]=[c(" 不参与 ",-1)])]),_:1},8,["append-icon","color","variant"])])]),n(ge,null,{default:i(()=>[(f(!0),y(N,null,M(l.filteredStudents,o=>(f(),w(se,{key:o,cols:"12",lg:"4",md:"6",sm:"6"},{default:i(()=>[n(_,{border:"",class:"student-card"},{default:i(()=>[n(A,{class:"d-flex align-center pa-2"},{default:i(()=>[r("div",wi,[r("div",xi,[n(je,{color:l.getStudentStatusColor(o),class:"mr-2",size:"24"},{default:i(()=>[n(D,{size:"small"},{default:i(()=>[c(g(l.getStudentStatusIcon(o)),1)]),_:2},1024)]),_:2},1032,["color"]),r("div",Si,g(o),1)])]),r("div",Ci,[n(k,{color:l.isPresent(o)?"success":"",title:"设为到课",icon:"mdi-account-check",size:d.isMobile?"default":"small",variant:"text",onClick:u=>l.setPresent(o)},null,8,["color","size","onClick"]),n(k,{color:l.isAbsent(o)?"error":"",title:"设为请假",icon:"mdi-account-off",size:d.isMobile?"default":"small",variant:"text",onClick:u=>l.setAbsent(o)},null,8,["color","size","onClick"]),n(k,{color:l.isLate(o)?"warning":"",title:"设为迟到",icon:"mdi-clock-alert",size:d.isMobile?"default":"small",variant:"text",onClick:u=>l.setLate(o)},null,8,["color","size","onClick"]),n(k,{color:l.isExclude(o)?"grey":"",title:"设为不参与",icon:"mdi-account-cancel",size:d.isMobile?"default":"small",variant:"text",onClick:u=>l.setExclude(o)},null,8,["color","size","onClick"])])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1}),n(ge,null,{default:i(()=>[n(se,{cols:"12",md:"12"},{default:i(()=>[n(_,{class:"mb-4",color:"primary",variant:"tonal"},{default:i(()=>[n(A,null,{default:i(()=>[e[17]||(e[17]=r("div",{class:"text-subtitle-2 mb-2"},"批量操作",-1)),r("div",Di,[n(k,{class:"flex-grow-1",color:"success","prepend-icon":"mdi-account-check",onClick:l.setAllPresent},{default:i(()=>[...e[13]||(e[13]=[c(" 全部到齐 ",-1)])]),_:1},8,["onClick"]),n(k,{class:"flex-grow-1",color:"error","prepend-icon":"mdi-account-off",onClick:l.setAllAbsent},{default:i(()=>[...e[14]||(e[14]=[c(" 全部请假 ",-1)])]),_:1},8,["onClick"]),n(k,{class:"flex-grow-1",color:"warning","prepend-icon":"mdi-clock-alert",onClick:l.setAllLate},{default:i(()=>[...e[15]||(e[15]=[c(" 全部迟到 ",-1)])]),_:1},8,["onClick"]),n(k,{class:"flex-grow-1",color:"grey","prepend-icon":"mdi-account-cancel",onClick:l.setAllExclude},{default:i(()=>[...e[16]||(e[16]=[c(" 全部不参与 ",-1)])]),_:1},8,["onClick"])])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),n(xe),n(de,null,{default:i(()=>[n(K),n(k,{color:"primary",onClick:e[6]||(e[6]=o=>t.$emit("save"))},{default:i(()=>[n(D,{start:""},{default:i(()=>[...e[18]||(e[18]=[c("mdi-content-save",-1)])]),_:1}),e[19]||(e[19]=c(" 保存 ",-1))]),_:1})]),_:1})]),_:1})]),_:1},8,["model-value","fullscreen"])}const Ft=te(yi,[["render",_i],["__scopeId","data-v-7f9de516"]]),Ti={name:"HomeworkEditDialog",props:{modelValue:{type:Boolean,required:!0},title:{type:String,required:!0},initialContent:{type:String,default:""},autoSave:{type:Boolean,default:!1},isEditingPastData:{type:Boolean,default:!1},currentDateString:{type:String,default:""}},emits:["update:modelValue","save"],setup(){const{mobile:t}=Pe();return{isMobile:t}},data(){return{content:"",templateData:null,currentLine:"",currentLineStart:0,currentLineEnd:0,quickTexts:["课","题","例","变","T","P"]}},computed:{dialogVisible:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},subject(){return this.title},hasTemplates(){var t,e;return!!((e=(t=this.templateData)==null?void 0:t.actions)!=null&&e.length||this.subjectBooks||this.commonBooks)},subjectBooks(){var t,e,a;return!this.subject||!((a=(e=(t=this.templateData)==null?void 0:t.subjects)==null?void 0:e[this.subject])!=null&&a.books)?null:this.templateData.subjects[this.subject].books},commonBooks(){var t,e;return(e=(t=this.templateData)==null?void 0:t.commonSubject)!=null&&e.books?this.templateData.commonSubject.books:null},showQuickTools(){return C("display.showQuickTools")},autoSavePromptText(){return C("edit.autoSavePromptText")},manualSavePromptText(){return C("edit.manualSavePromptText")}},watch:{async modelValue(t){if(t){this.content=this.initialContent;try{this.templateData=await fe.loadData("classworks-config-homework-template")}catch(e){console.error("Failed to load homework templates:",e),this.templateData=null}this.$nextTick(()=>{this.$refs.inputRef&&(this.$refs.inputRef.focus(),this.updateCurrentLine())})}}},methods:{handleClose(){const t=this.content.trim();t!==this.initialContent.trim()&&this.$emit("save",t),this.dialogVisible=!1},updateCurrentLine(){const e=this.$refs.inputRef.$el.querySelector("textarea").selectionStart,a=this.content;let d=0;const s=a.split(` +import{_ as te,k as C,s as pe,j as w,o as f,w as i,d as n,l as _,q as Y,t as c,v as D,x as K,y as k,z as A,i as r,A as y,B as x,C as g,D as bt,F as N,E as he,T as Ye,G as M,e as we,H as ie,I as re,n as Ie,J as Te,K as xe,L as je,M as de,N as it,O as at,P as Ke,Q as Me,R as wt,S as Ve,U as tn,W as nn,X as Pe,Y as sn,g as an,p as ln,Z as on,$ as P,a0 as Ee,a1 as rn,a2 as dn,a3 as We,a4 as un,a5 as q,a6 as Se,a7 as lt,a8 as cn,c as fn,a9 as mn,aa as hn,ab as vn,ac as gn,ad as pn,ae as yn,af as ot,ag as kn,ah as rt,ai as xt,aj as St,ak as bn,al as dt,am as Ae,an as Fe,ao as wn,ap as xn,aq as Sn,ar as Ue}from"./index-GyS8nTIx.js";import{V as De,u as Cn,m as Dn}from"./VTextField-xLiM0gib.js";import{V as Ze,a as _n}from"./VBadge-Dfdn66Fe.js";import{V as B}from"./VChip-DsTHqUw0.js";import{s as Tn,g as Ct,j as Xe,o as be,a as Vn,l as In}from"./socketClient-D4dHF2XE.js";import{f as Nn,s as En,c as Dt}from"./deviceEvents-bqh40TeD.js";import{V as ge,a as se}from"./VRow-DtMdTMSo.js";import{V as An,a as ut,u as Un,b as Fn,c as Mn,d as Pn,h as zn,m as Ln,e as Rn}from"./filter-D0RnlzqQ.js";import{V as ze}from"./VTextarea-BeSb8uK6.js";import{d as fe,a as Ce,g as Bn,k as $n}from"./dataProvider-CVD6IsoX.js";import{V as ct,a as ft,b as On,c as jn}from"./VAppBarTitle-CUv9Ys4F.js";import{V as _t}from"./VContainer-B1JGY98V.js";import{V as mt}from"./VForm-CnK2lukw.js";import{V as ht}from"./VSwitch-COsJOhk2.js";import{V as Tt}from"./VMenu-ClQzjH_h.js";import{V as Kn}from"./VDatePicker-D6FkGAp6.js";import{p as vt,_ as Vt}from"./index-CcbavYG9.js";import{V as Le}from"./VAlert-CB2ovGuT.js";import{V as Hn}from"./VCheckboxBtn-Cjkf0n-9.js";import{V as qn,a as gt,b as pt,c as yt}from"./VExpansionPanels-uPjuA0pD.js";import"./VSheet-DBWP7oOE.js";const Qn={name:"RandomPicker",props:{studentList:{type:Array,required:!0},attendance:{type:Object,required:!0,default:()=>({absent:[],late:[],exclude:[]})}},data(){return{dialog:!1,count:C("randomPicker.defaultCount"),isPickingStarted:!1,isAnimating:!1,pickedStudents:[],animationStudents:[],highlightedIndices:[],animationTimer:null,getSetting:C,tempFilters:{excludeAbsent:C("randomPicker.excludeAbsent"),excludeLate:C("randomPicker.excludeLate"),excludeExcluded:C("randomPicker.excludeExcluded")},pickerMode:C("randomPicker.mode"),minNumber:C("randomPicker.minNumber"),maxNumber:C("randomPicker.maxNumber")}},computed:{absentCount(){return this.attendance.absent?this.attendance.absent.length:0},lateCount(){return this.attendance.late?this.attendance.late.length:0},excludedCount(){return this.attendance.exclude?this.attendance.exclude.length:0},numberModeStudents(){if(this.pickerMode!=="number")return[];const t=[];for(let e=this.minNumber;e<=this.maxNumber;e++)t.push(e.toString().padStart(2,"0")+"号");return t},filteredStudents(){return this.pickerMode==="number"?this.numberModeStudents:!this.studentList||!this.studentList.length?[]:this.studentList.filter(t=>!(this.tempFilters.excludeAbsent&&this.attendance.absent.includes(t)||this.tempFilters.excludeLate&&this.attendance.late.includes(t)||this.tempFilters.excludeExcluded&&this.attendance.exclude.includes(t)))},availableStudents(){return this.filteredStudents},maxAllowedCount(){return Math.min(10,this.filteredStudents.length)},remainingStudents(){return this.filteredStudents.filter(t=>!this.pickedStudents.includes(t))}},watch:{dialog(t){t?(this.count=C("randomPicker.defaultCount"),this.isPickingStarted=!1,this.isAnimating=!1,this.pickedStudents=[],this.tempFilters={excludeAbsent:C("randomPicker.excludeAbsent"),excludeLate:C("randomPicker.excludeLate"),excludeExcluded:C("randomPicker.excludeExcluded")}):this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)},tempFilters:{handler(){this.count>this.maxAllowedCount&&(this.count=Math.max(1,this.maxAllowedCount))},deep:!0},pickerMode:{handler(t){pe("randomPicker.mode",t)}},minNumber:{handler(t){t>this.maxNumber&&(this.minNumber=this.maxNumber),t<1&&(this.minNumber=1),pe("randomPicker.minNumber",this.minNumber)}},maxNumber:{handler(t){t100&&(this.maxNumber=100),pe("randomPicker.maxNumber",this.maxNumber)}}},methods:{open(){this.dialog=!0},incrementCount(){this.count1&&this.count--},startPicking(){this.filteredStudents.length!==0&&(this.isPickingStarted=!0,C("randomPicker.animation")?this.startAnimation():this.finishPicking())},startAnimation(){this.isAnimating=!0,this.animationStudents=this.filteredStudents.map((t,e)=>({id:`student-${e}`,name:t})),this.animateHighlight()},animateHighlight(){let e=0;const a=50,d=()=>{this.highlightedIndices=[];const s=[];for(let o=0;o{this.finishPicking()},500)};d()},finishPicking(){this.isAnimating=!1;const t=[...this.filteredStudents].sort(()=>.5-Math.random());this.pickedStudents=t.slice(0,this.count)},resetPicker(){this.isPickingStarted=!1,this.isAnimating=!1,this.pickedStudents=[],this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)},refreshSingleStudent(t){if(this.remainingStudents.length===0)return;const e=Math.floor(Math.random()*this.remainingStudents.length),a=this.remainingStudents[e];this.pickedStudents[t]=a;const d=document.querySelectorAll(".result-card");d[t]&&(d[t].classList.add("refresh-animation"),setTimeout(()=>{d[t].classList.remove("refresh-animation")},500))}}},Wn={class:"d-flex justify-center align-center counter-container"},Gn={class:"count-display mx-8"},Jn={class:"text-h2 font-weight-bold"},Yn={class:"mode-switch-container mt-6"},Xn={key:0,class:"number-range-container mt-4"},Zn={class:"d-flex justify-center align-center gap-4"},es={class:"mt-4"},ts={key:1,class:"mt-4 text-error"},ns={class:"mt-4 text-caption"},ss={class:"pa-2"},is={key:0},as={key:1},ls={key:2},os={key:1,class:"d-flex flex-wrap justify-center gap-2 mt-4"},rs={key:0,class:"animation-container"},ds={class:"animation-wrapper"},us={key:1,class:"result-container"},cs={class:"mt-8 d-flex justify-center"};function fs(t,e,a,d,s,l){return f(),w(ie,{modelValue:s.dialog,"onUpdate:modelValue":e[8]||(e[8]=o=>s.dialog=o),"fullscreen-breakpoint":"sm","max-width":"600",persistent:""},{default:i(()=>[n(_,{border:"",class:"random-picker-card",rounded:"xl"},{default:i(()=>[n(Y,{class:"text-h5 d-flex align-center"},{default:i(()=>[n(D,{class:"mr-2",icon:"mdi-account-question"}),e[9]||(e[9]=c(" 随机点名 ",-1)),n(K),n(k,{icon:"mdi-close",variant:"text",onClick:e[0]||(e[0]=o=>s.dialog=!1)})]),_:1}),s.isPickingStarted?(f(),w(A,{key:1,class:"text-center py-6"},{default:i(()=>[s.isAnimating?(f(),y("div",rs,[r("div",ds,[n(Ye,{class:"shuffle-container",name:"shuffle",tag:"div"},{default:i(()=>[(f(!0),y(N,null,M(s.animationStudents,(o,u)=>(f(),y("div",{key:o.id,class:we([{highlighted:s.highlightedIndices.includes(u)},"student-item"])},g(o.name),3))),128))]),_:1})])])):(f(),y("div",us,[e[19]||(e[19]=r("div",{class:"text-h6 mb-4"},"抽取结果",-1)),(f(!0),y(N,null,M(s.pickedStudents,(o,u)=>(f(),w(_,{key:u,class:"mb-2 result-card",color:"primary",variant:"outlined"},{default:i(()=>[n(A,{class:"text-h4 text-center py-4 d-flex align-center justify-center"},{default:i(()=>[c(g(o)+" ",1),n(k,{disabled:l.remainingStudents.length===0,title:l.remainingStudents.length===0?"没有更多可用学生":"重新抽取此学生",class:"ml-2 refresh-btn",icon:"mdi-refresh",size:"small",variant:"text",onClick:h=>l.refreshSingleStudent(u)},null,8,["disabled","title","onClick"])]),_:2},1024)]),_:2},1024))),128)),r("div",cs,[n(k,{class:"mx-2",color:"primary","prepend-icon":"mdi-refresh",size:"large",onClick:l.resetPicker},{default:i(()=>[...e[17]||(e[17]=[c(" 重新抽取 ",-1)])]),_:1},8,["onClick"]),n(k,{class:"mx-2",color:"grey",size:"large",variant:"outlined",onClick:e[7]||(e[7]=o=>s.dialog=!1)},{default:i(()=>[...e[18]||(e[18]=[c(" 关闭 ",-1)])]),_:1})])]))]),_:1})):(f(),w(A,{key:0,class:"text-center py-6"},{default:i(()=>[e[16]||(e[16]=r("div",{class:"text-h6 mb-4"},"请选择抽取人数",-1)),r("div",Wn,[n(k,{disabled:s.count<=1,class:"counter-btn",color:"primary",icon:"mdi-minus",size:"x-large",variant:"tonal",onClick:l.decrementCount},null,8,["disabled","onClick"]),r("div",Gn,[r("span",Jn,g(s.count),1),e[10]||(e[10]=r("span",{class:"text-subtitle-1 ml-2"},"人",-1))]),n(k,{disabled:s.count>=l.maxAllowedCount,class:"counter-btn",color:"primary",icon:"mdi-plus",size:"x-large",variant:"tonal",onClick:l.incrementCount},null,8,["disabled","onClick"])]),r("div",Yn,[n(bt,{modelValue:s.pickerMode,"onUpdate:modelValue":e[1]||(e[1]=o=>s.pickerMode=o),class:"mode-toggle",color:"primary",mandatory:"",rounded:"pill"},{default:i(()=>[n(k,{"prepend-icon":"mdi-account",value:"name"},{default:i(()=>[...e[11]||(e[11]=[c("姓名模式",-1)])]),_:1}),n(k,{"prepend-icon":"mdi-numeric",value:"number"},{default:i(()=>[...e[12]||(e[12]=[c("学号模式",-1)])]),_:1})]),_:1},8,["modelValue"])]),s.pickerMode==="number"?(f(),y("div",Xn,[e[14]||(e[14]=r("div",{class:"text-subtitle-1 mb-2"},"学号范围设置",-1)),r("div",Zn,[n(De,{modelValue:s.minNumber,"onUpdate:modelValue":e[2]||(e[2]=o=>s.minNumber=o),modelModifiers:{number:!0},class:"number-input",density:"compact","hide-details":"",label:"最小值",max:"100",min:"1",type:"number"},null,8,["modelValue"]),e[13]||(e[13]=r("span",{class:"mx-2"},"至",-1)),n(De,{modelValue:s.maxNumber,"onUpdate:modelValue":e[3]||(e[3]=o=>s.maxNumber=o),modelModifiers:{number:!0},class:"number-input",density:"compact","hide-details":"",label:"最大值",max:"100",min:"1",type:"number"},null,8,["modelValue"])])])):x("",!0),r("div",es,[n(k,{disabled:l.filteredStudents.length===0,class:"start-btn",color:"primary","prepend-icon":"mdi-dice-multiple",size:"x-large",onClick:l.startPicking},{default:i(()=>[...e[15]||(e[15]=[c(" 开始抽取 ",-1)])]),_:1},8,["disabled","onClick"])]),l.filteredStudents.length===0?(f(),y("div",ts,[s.pickerMode==="name"?(f(),y(N,{key:0},[c(" 没有可抽取的学生,请调整过滤选项 ")],64)):(f(),y(N,{key:1},[c(" 请设置有效的学号范围 ")],64))])):x("",!0),r("div",ns,[c(" 当前可抽取学生: "+g(l.filteredStudents.length)+"人 ",1),s.pickerMode==="name"?(f(),w(Ze,{key:0,location:"bottom"},{activator:i(({props:o})=>[n(D,he({class:"ml-1",icon:"mdi-information-outline",size:"small"},o),null,16)]),default:i(()=>[r("div",ss,[s.tempFilters.excludeAbsent?(f(),y("div",is," • 已排除请假学生 ("+g(l.absentCount)+"人) ",1)):x("",!0),s.tempFilters.excludeLate?(f(),y("div",as," • 已排除迟到学生 ("+g(l.lateCount)+"人) ",1)):x("",!0),s.tempFilters.excludeExcluded?(f(),y("div",ls," • 已排除不参与学生 ("+g(l.excludedCount)+"人) ",1)):x("",!0)])]),_:1})):x("",!0),s.pickerMode==="name"?(f(),y("div",os,[n(B,{color:s.tempFilters.excludeLate?"warning":"default",variant:s.tempFilters.excludeLate?"elevated":"text",class:"filter-chip","prepend-icon":"mdi-clock-alert",onClick:e[4]||(e[4]=o=>s.tempFilters.excludeLate=!s.tempFilters.excludeLate)},{default:i(()=>[c(g(s.tempFilters.excludeLate?"排除":"包含")+"迟到学生 ",1)]),_:1},8,["color","variant"]),n(B,{color:s.tempFilters.excludeAbsent?"error":"default",variant:s.tempFilters.excludeAbsent?"elevated":"text",class:"filter-chip","prepend-icon":"mdi-account-off",onClick:e[5]||(e[5]=o=>s.tempFilters.excludeAbsent=!s.tempFilters.excludeAbsent)},{default:i(()=>[c(g(s.tempFilters.excludeAbsent?"排除":"包含")+"请假学生 ",1)]),_:1},8,["color","variant"]),n(B,{color:s.tempFilters.excludeExcluded?"grey":"default",variant:s.tempFilters.excludeExcluded?"elevated":"text",class:"filter-chip","prepend-icon":"mdi-account-cancel",onClick:e[6]||(e[6]=o=>s.tempFilters.excludeExcluded=!s.tempFilters.excludeExcluded)},{default:i(()=>[c(g(s.tempFilters.excludeExcluded?"排除":"包含")+"不参与学生 ",1)]),_:1},8,["color","variant"])])):x("",!0)])]),_:1}))]),_:1})]),_:1},8,["modelValue"])}const It=te(Qn,[["render",fs],["__scopeId","data-v-85e7eea6"]]),ms={name:"EventSender",emits:["sent","error"],methods:{async sendEvent(t,e={}){try{return Tn(t,e),this.$emit("sent",{eventName:t,content:e,timestamp:new Date().toISOString(),success:!0}),{success:!0,eventId:(e==null?void 0:e.eventId)||null,notificationId:(e==null?void 0:e.notificationId)||null}}catch(a){return console.error("发送事件失败:",a),this.$emit("error",{eventName:t,content:e,error:a.message,timestamp:new Date().toISOString(),success:!1}),{success:!1,error:a.message}}},async sendNotification(t,e=!1,a=[],d={},s=null){const l=`evt-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;return this.sendEvent("notification",{eventId:l,notificationId:s,message:t,isUrgent:e,targetDevices:a,senderInfo:d})},async sendReceipt(t,e,a={},d=null){const s=`rcpt-${Date.now()}-${Math.random().toString(36).slice(2,6)}`;return this.sendEvent("notification-receipt",{eventId:s,originalEventId:t,notificationId:d,status:e,deviceInfo:a})},async sendDisplayedReceipt(t={},e=null){const a=`disp-${Date.now()}-${Math.random().toString(36).slice(2,6)}`;return this.sendEvent("notification-displayed",{eventId:a,notificationId:e,deviceInfo:t})},async sendReadReceipt(t={},e=null){const a=`read-${Date.now()}-${Math.random().toString(36).slice(2,6)}`;return this.sendEvent("notification-read",{eventId:a,notificationId:e,deviceInfo:t})}}},hs={style:{display:"none"}};function vs(t,e,a,d,s,l){return f(),y("div",hs)}const He=te(ms,[["render",vs]]),gs={name:"UrgentNotification",components:{EventSender:He},data(){return{visible:!1,notificationQueue:[],currentIndex:0,autoCloseTimer:null,urgentSoundTimer:null}},computed:{currentNotification(){return this.notificationQueue[this.currentIndex]||null},hasNotifications(){return this.notificationQueue.length>0},hasMultipleNotifications(){return this.notificationQueue.length>1},notificationCountText(){return this.hasMultipleNotifications?`${this.currentIndex+1} / ${this.notificationQueue.length}`:""},isUrgent(){var t,e;return((e=(t=this.currentNotification)==null?void 0:t.content)==null?void 0:e.isUrgent)||!1},urgencyColor(){return this.isUrgent?"red darken-2":"blue darken-2"},iconColor(){return"white"},urgencyIcon(){return this.isUrgent?"mdi-alert-circle-outline":"mdi-information-outline"},urgencyTitle(){return this.isUrgent?"🚨 紧急通知":"📢 通知消息"},senderName(){var e,a,d;const t=((e=this.currentNotification)==null?void 0:e.senderInfo)||((d=(a=this.currentNotification)==null?void 0:a.content)==null?void 0:d.senderInfo);return t?t.deviceName||t.deviceType||"未知设备":"未知发送者"},deviceType(){var e,a,d;const t=((e=this.currentNotification)==null?void 0:e.senderInfo)||((d=(a=this.currentNotification)==null?void 0:a.content)==null?void 0:d.senderInfo);return(t==null?void 0:t.deviceType)||"未知类型"},targetDevices(){var t,e;return((e=(t=this.currentNotification)==null?void 0:t.content)==null?void 0:e.targetDevices)||[]}},beforeUnmount(){this.autoCloseTimer&&clearTimeout(this.autoCloseTimer),this.urgentSoundTimer&&clearInterval(this.urgentSoundTimer)},methods:{show(t){var a;if(this.notificationQueue.findIndex(d=>{var s,l;return((s=d.content)==null?void 0:s.notificationId)===((l=t.content)==null?void 0:l.notificationId)})!==-1){console.log("通知已存在,跳过添加");return}this.notificationQueue.push(t),this.visible?(a=t.content)!=null&&a.isUrgent&&!this.isUrgent&&(this.currentIndex=this.notificationQueue.length-1,this.sendDisplayedReceipt(),this.playNotificationSound(),this.startUrgentSound()):(this.currentIndex=this.notificationQueue.length-1,this.visible=!0,this.sendDisplayedReceipt(),this.playNotificationSound(),this.isUrgent&&this.startUrgentSound())},close(){var t,e,a,d;try{this.sendReadReceipt(),console.log("已发送已读回执")}catch(s){console.warn("发送已读回执失败:",s)}if((e=(t=this.currentNotification)==null?void 0:t.content)!=null&&e.message){const s=this.isUrgent?"紧急通知":"通知";this.isUrgent?(a=this.$message)==null||a.error(s,`${this.currentNotification.content.message}`):(d=this.$message)==null||d.info(s,`${this.currentNotification.content.message}`)}this.notificationQueue.length>0&&(this.notificationQueue.splice(this.currentIndex,1),this.currentIndex>=this.notificationQueue.length&&(this.currentIndex=Math.max(0,this.notificationQueue.length-1)),this.notificationQueue.length>0?(this.sendDisplayedReceipt(),this.isUrgent?this.startUrgentSound():this.stopUrgentSound()):this.closeWithoutRead())},closeWithoutRead(){this.visible=!1,this.notificationQueue=[],this.currentIndex=0,this.autoCloseTimer&&(clearTimeout(this.autoCloseTimer),this.autoCloseTimer=null),this.stopUrgentSound()},formatTime(t){if(!t)return"";try{const e=new Date(t);if(new Date-e<24*60*60*1e3){const s=String(e.getHours()).padStart(2,"0"),l=String(e.getMinutes()).padStart(2,"0");return`${s}:${l}`}else{const s=String(e.getMonth()+1).padStart(2,"0"),l=String(e.getDate()).padStart(2,"0");return`${s}/${l}`}}catch{return"无效时间"}},getDeviceTypeLabel(t){return{classroom:"教室设备",student:"学生设备",teacher:"教师设备",admin:"管理员设备",system:"系统设备"}[t]||t},playNotificationSound(){try{const t=new(window.AudioContext||window.webkitAudioContext),e=t.createOscillator(),a=t.createGain();e.connect(a),a.connect(t.destination),e.frequency.value=1e3,e.type="sine",a.gain.value=.3,e.start(),e.stop(t.currentTime+.3)}catch(t){console.warn("无法播放通知音效:",t)}},sendDisplayedReceipt(){var t;try{this.$refs.eventSender&&((t=this.currentNotification)!=null&&t.eventId)&&(this.$refs.eventSender.sendDisplayedReceipt({},this.currentNotification.content.notificationId),console.log("已发送显示回执:",this.currentNotification.eventId))}catch(e){console.warn("发送显示回执失败:",e)}},sendReadReceipt(){var t;try{this.$refs.eventSender&&((t=this.currentNotification)!=null&&t.eventId)&&(this.$refs.eventSender.sendReadReceipt({},this.currentNotification.content.notificationId),console.log("已发送已读回执:",this.currentNotification.eventId))}catch(e){console.warn("发送已读回执失败:",e)}},previousNotification(){this.currentIndex>0&&(this.currentIndex--,this.sendDisplayedReceipt(),this.isUrgent?this.startUrgentSound():this.stopUrgentSound())},nextNotification(){this.currentIndex{this.visible&&this.isUrgent?this.playNotificationSound():this.stopUrgentSound()},1e3)},stopUrgentSound(){this.urgentSoundTimer&&(clearInterval(this.urgentSoundTimer),this.urgentSoundTimer=null)}}},ps={class:"urgent-title mb-6"},ys={key:0,class:"navigation-controls mt-6"},ks={class:"notification-counter mb-3"},bs={class:"navigation-buttons"},ws={class:"mt-8"};function xs(t,e,a,d,s,l){const o=He;return f(),y(N,null,[n(ie,{modelValue:s.visible,"onUpdate:modelValue":e[0]||(e[0]=u=>s.visible=u),"max-width":"800",persistent:"",transition:"dialog-transition",class:"urgent-notification-dialog"},{default:i(()=>[n(_,{class:"urgent-notification-card",color:l.urgencyColor,elevation:"24"},{default:i(()=>[n(A,null,{default:i(()=>{var u,h;return[r("div",ps,g(((h=(u=l.currentNotification)==null?void 0:u.content)==null?void 0:h.message)||"无内容"),1),n(_,{variant:"flat",color:"white"},{default:i(()=>[n(Y,null,{default:i(()=>[...e[1]||(e[1]=[c("发送者信息",-1)])]),_:1}),n(A,null,{default:i(()=>[n(B,{class:"mr-2 mb-2",color:"primary",variant:"outlined",size:"small"},{default:i(()=>[n(D,{left:"",size:"16"},{default:i(()=>[...e[2]||(e[2]=[c(" mdi-account ",-1)])]),_:1}),c(" "+g(l.senderName),1)]),_:1}),n(B,{class:"mr-2 mb-2",color:"info",variant:"outlined",size:"small"},{default:i(()=>[n(D,{left:"",size:"16"},{default:i(()=>[...e[3]||(e[3]=[c(" mdi-devices ",-1)])]),_:1}),c(" "+g(l.deviceType),1)]),_:1}),n(B,{class:"mb-2",color:"success",variant:"outlined",size:"small"},{default:i(()=>{var m;return[n(D,{left:"",size:"16"},{default:i(()=>[...e[4]||(e[4]=[c(" mdi-clock ",-1)])]),_:1}),c(" "+g(l.formatTime((m=l.currentNotification)==null?void 0:m.timestamp)),1)]}),_:1})]),_:1})]),_:1}),l.hasMultipleNotifications?(f(),y("div",ys,[n(_,{variant:"flat",color:"rgba(255,255,255,0.1)"},{default:i(()=>[n(A,{class:"text-center"},{default:i(()=>[r("div",ks,[n(B,{color:"white",variant:"flat",size:"small"},{default:i(()=>[c(g(l.notificationCountText),1)]),_:1})]),r("div",bs,[n(k,{disabled:s.currentIndex===0,color:"white",variant:"outlined",size:"small",onClick:l.previousNotification},{default:i(()=>[n(D,null,{default:i(()=>[...e[5]||(e[5]=[c(" mdi-chevron-left ",-1)])]),_:1}),e[6]||(e[6]=c(" 上一个 ",-1))]),_:1},8,["disabled","onClick"]),n(k,{disabled:s.currentIndex===s.notificationQueue.length-1,color:"white",variant:"outlined",size:"small",class:"ml-2",onClick:l.nextNotification},{default:i(()=>[e[8]||(e[8]=c(" 下一个 ",-1)),n(D,null,{default:i(()=>[...e[7]||(e[7]=[c(" mdi-chevron-right ",-1)])]),_:1})]),_:1},8,["disabled","onClick"])])]),_:1})]),_:1})])):x("",!0),r("div",ws,[n(k,{color:"white",size:"large",variant:"flat",onClick:l.close},{default:i(()=>[n(D,{left:""},{default:i(()=>[...e[9]||(e[9]=[c(" mdi-check ",-1)])]),_:1}),e[10]||(e[10]=c(" 我知道了 ",-1))]),_:1},8,["onClick"])])]}),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue"]),n(o,{ref:"eventSender"},null,512)],64)}const Nt=te(gs,[["render",xs],["__scopeId","data-v-e250350b"]]),Ss={name:"ChatWidget",components:{UrgentNotification:Nt},props:{modelValue:{type:Boolean,default:!1},showButton:{type:Boolean,default:!0},offset:{type:Number,default:16},width:{type:Number,default:380},height:{type:Number,default:520}},emits:["update:modelValue"],data(){return{visible:this.modelValue,text:"",messages:[],allEvents:[],lastVisit:null,unreadCount:0,connected:!1,socketId:"",currentMode:"chat",currentPage:1,itemsPerPage:20,loading:!1,isDestroying:!1,eventStats:{chat:0,kvChanged:0,other:0},cleanupFunctions:[]}},computed:{panelStyle(){return{right:this.offset+"px",bottom:this.offset+"px",width:this.width+"px",height:this.height+"px"}},toggleStyle(){return{right:this.offset+"px",bottom:this.offset+"px"}},canSend(){return!!(C("server.kvToken")&&this.text.trim())},showToggleButton(){return this.$props.showButton&&!this.visible},decoratedMessages(){if(!this.lastVisit)return this.messages;const t=this.messages.findIndex(d=>d.at&&new Date(d.at).getTime()>=new Date(this.lastVisit).getTime());if(t<=0)return this.messages;const e=this.messages.slice(0,t),a=this.messages.slice(t);return[...e,{_id:"divider",_type:"divider"},...a]},currentDisplayItems(){return this.currentMode==="chat"?this.decoratedMessages:this.paginatedEvents},paginatedEvents(){if(this.isDestroying||!this.allEvents)return[];const t=(this.currentPage-1)*this.itemsPerPage,e=t+this.itemsPerPage;return this.allEvents.slice(t,e)},totalPages(){return this.isDestroying||!this.allEvents?1:Math.ceil(this.allEvents.length/this.itemsPerPage)},modeTitle(){return this.currentMode==="chat"?"设备聊天室":"所有事件"}},watch:{modelValue(t){this.visible=t,t&&this.onOpen()}},mounted(){try{const m=localStorage.getItem("chat.lastVisit");m&&(this.lastVisit=m)}catch{}const t=Ct();this.connected=!!t.connected,this.socketId=t.id||"",t.on("connect",()=>{this.connected=!0,this.socketId=t.id||""}),t.on("disconnect",()=>{this.connected=!1});const e=C("server.kvToken");e&&Xe(e);const a=m=>(...p)=>{if(!this.isDestroying)try{m(...p)}catch(I){console.error("ChatWidget 事件处理错误:",I)}},d=be("chat:message",a(m=>{this.pushMessage(m),this.addEvent({_id:`legacy-chat-${Date.now()}-${Math.random()}`,type:"chat:message",content:m,timestamp:m.at||new Date().toISOString(),senderId:m.senderId,uuid:m.uuid,senderInfo:m.senderInfo})})),s=be("chat",a(m=>{if(m&&m.content&&m.content.text){const p={text:m.content.text,senderId:m.senderId,at:m.timestamp,uuid:m.senderId,senderInfo:m.senderInfo};this.pushMessage(p),this.addEvent({_id:m.eventId||`chat-${Date.now()}-${Math.random()}`,type:"chat",content:m.content,timestamp:m.timestamp,eventId:m.eventId,senderId:m.senderId,senderInfo:m.senderInfo})}}));this.deviceEventHandler=Dt({onChat:a((m,p)=>{this.pushMessage(m),this.addEvent(p)}),onKvChanged:a((m,p)=>{this.addEvent(p)}),onUrgentNotice:a((m,p)=>{this.addEvent(p),this.showUrgentNotification(p)}),onNotification:a((m,p)=>{console.log("收到通知事件:",m,p),this.addEvent(p),this.showUrgentNotification(p)}),onOtherEvent:a(m=>{(m.type==="urgent-notice"||m.type==="notification")&&this.showUrgentNotification(m),this.addEvent(m)}),enableLegacySupport:!0});const l=be("device-event",this.deviceEventHandler),o=be("kv-key-changed",a(m=>{m.content&&m.timestamp?this.addEvent({_id:`kv-${Date.now()}-${Math.random()}`,type:"kv-key-changed",content:m.content,timestamp:m.timestamp,eventId:m.eventId,senderId:m.senderId,senderInfo:m.senderInfo}):this.addEvent({_id:`legacy-kv-${Date.now()}-${Math.random()}`,type:"kv-key-changed",content:m,timestamp:m.updatedAt||new Date().toISOString(),uuid:m.uuid})})),u=be("urgent-notice",a(m=>{console.log("收到紧急通知:",m),this.addEvent({_id:`urgent-${Date.now()}-${Math.random()}`,type:"urgent-notice",content:m.content||m,timestamp:m.timestamp||new Date().toISOString(),eventId:m.eventId,senderId:m.senderId,senderInfo:m.senderInfo}),this.showUrgentNotification(m)})),h=be("notification",a(m=>{var p;console.log("收到通知事件:",m),this.addEvent({_id:`notification-${Date.now()}-${Math.random()}`,type:"notification",content:m.content||m,timestamp:m.timestamp||new Date().toISOString(),eventId:m.eventId,senderId:m.senderId,senderInfo:m.senderInfo||((p=m.content)==null?void 0:p.senderInfo)}),this.showUrgentNotification(m)}));this.cleanupFunctions=[d,s,u,h,l,o],this.visible&&this.onOpen()},beforeUnmount(){this.isDestroying=!0,this.cleanupFunctions&&Array.isArray(this.cleanupFunctions)&&this.cleanupFunctions.forEach(t=>{try{typeof t=="function"&&t()}catch(e){console.warn("ChatWidget 清理函数执行失败:",e)}});try{this.offMessage&&this.offMessage(),this.offDeviceEvent&&this.offDeviceEvent(),this.offKvChanged&&this.offKvChanged()}catch(t){console.warn("ChatWidget 旧清理函数执行失败:",t)}this.cleanupFunctions=[],this.messages=[],this.allEvents=[]},methods:{open(){this.visible=!0,this.$emit("update:modelValue",!0),this.onOpen()},close(){this.visible=!1,this.$emit("update:modelValue",!1);try{localStorage.setItem("chat.lastVisit",new Date().toISOString())}catch{}this.unreadCount=0},onOpen(){this.$nextTick(()=>this.scrollToBottom())},insertEmoji(t){this.text+=t,this.$nextTick(()=>{var e,a;if((a=(e=this.$refs.inputRef)==null?void 0:e.$el)!=null&&a.querySelector){const d=this.$refs.inputRef.$el.querySelector("textarea");d==null||d.focus()}})},handleEnter(t){t.shiftKey||this.send()},send(){const t=this.text.trim();if(!t)return;const e={_id:`self-${Date.now()}-${Math.random()}`,text:t,at:new Date().toISOString(),senderId:this.socketId,self:!0,senderInfo:{deviceName:"我",deviceType:"client",isReadOnly:!1}};this.pushMessage(e),this.addEvent({_id:`self-event-${Date.now()}-${Math.random()}`,type:"chat",content:{text:t},timestamp:new Date().toISOString(),senderId:this.socketId,senderInfo:{deviceName:"本设备",deviceType:"client",isReadOnly:!1}}),En(t),this.text=""},pushMessage(t){if(!(this.isDestroying||!t))try{const e={_id:`${t.at||Date.now()}-${Math.random()}`,text:typeof(t==null?void 0:t.text)=="string"?t.text:(t==null?void 0:t.text)||"",at:t.at||new Date().toISOString(),senderId:t.senderId,self:!!(t.senderId&&t.senderId===this.socketId),senderInfo:t.senderInfo||null,deviceName:this.getDeviceName(t.senderInfo,t.senderId===this.socketId)};if(!e.text)return;this.messages.push(e),this.visible||this.unreadCount++,this.$nextTick(()=>{this.isDestroying||this.scrollToBottom()}),this.messages.length>500&&this.messages.shift()}catch(e){console.error("ChatWidget pushMessage 错误:",e)}},formatTime(t){try{const e=new Date(t),a=String(e.getHours()).padStart(2,"0"),d=String(e.getMinutes()).padStart(2,"0");return`${a}:${d}`}catch{return""}},scrollToBottom(){if(!this.isDestroying)try{const t=this.$refs.listRef;if(!t)return;requestAnimationFrame(()=>{!this.isDestroying&&t&&(t.scrollTop=t.scrollHeight)})}catch(t){console.warn("ChatWidget scrollToBottom 错误:",t)}},addEvent(t){if(!(this.isDestroying||!t))try{this.allEvents.unshift(t),t.type==="chat"||t.type==="chat:message"?this.eventStats.chat++:t.type==="kv-key-changed"?this.eventStats.kvChanged++:this.eventStats.other++,this.allEvents.length>200&&(this.allEvents=this.allEvents.slice(0,200))}catch(e){console.error("ChatWidget addEvent 错误:",e)}},getEventColor(t){switch(t){case"chat":case"chat:message":return"success";case"kv-key-changed":return"info";default:return"warning"}},getEventTypeLabel(t){switch(t){case"chat":case"chat:message":return"聊天";case"kv-key-changed":return"KV变化";default:return t}},formatDeviceInfo(t){return Nn(t)},getDeviceName(t,e=!1){return e?"我":t?t.deviceName==="realtime"?"系统":t.deviceName||t.deviceType||"未知设备":"未知设备"},showUrgentNotification(t){try{this.$refs.urgentNotification?this.$refs.urgentNotification.show(t):console.warn("紧急通知组件未找到")}catch(e){console.error("显示紧急通知失败:",e)}}}},Cs={class:"text-subtitle-1"},Ds={key:0,ref:"listRef",class:"messages"},_s={key:0,class:"divider-row"},Ts={class:"avatar"},Vs={class:"bubble"},Is={key:0,class:"sender-name"},Ns={class:"text"},Es={class:"meta"},As={key:0,class:"device-name"},Us={key:1,class:"events-container"},Fs={class:"event-stats mb-3"},Ms={class:"text-h6"},Ps={class:"text-h6"},zs={class:"text-h6"},Ls={class:"events-list"},Rs={class:"d-flex align-center mb-1"},Bs={class:"text-caption"},$s={key:0,class:"mb-1 text-caption"},Os={class:"event-content"},js={key:0,class:"chat-content"},Ks={key:1,class:"text-caption event-data"},Hs={key:0,class:"text-center text-grey pa-4"},qs={key:0,class:"pagination mt-2"};function Qs(t,e,a,d,s,l){const o=Nt;return f(),y(N,null,[l.showToggleButton?(f(),y("div",{key:0,style:Ie(l.toggleStyle),class:"chat-toggle"},[n(k,{color:"primary",icon:"",variant:"flat",onClick:e[0]||(e[0]=u=>l.open())},{default:i(()=>[n(_n,{content:s.unreadCount||void 0,"model-value":s.unreadCount>0,color:"error",overlap:""},{default:i(()=>[n(D,null,{default:i(()=>[...e[7]||(e[7]=[c(" mdi-chat ",-1)])]),_:1})]),_:1},8,["content","model-value"])]),_:1})],4)):x("",!0),re(r("div",{style:Ie(l.panelStyle),class:"chat-panel"},[n(_,{border:"",class:"chat-card",elevation:"8"},{default:i(()=>[n(Y,{class:"d-flex align-center"},{default:i(()=>[n(D,{class:"mr-2"},{default:i(()=>[...e[8]||(e[8]=[c(" mdi-chat-processing ",-1)])]),_:1}),r("span",Cs,g(l.modeTitle),1),n(K),n(bt,{modelValue:s.currentMode,"onUpdate:modelValue":e[1]||(e[1]=u=>s.currentMode=u),class:"mr-2",mandatory:"",size:"small",variant:"outlined"},{default:i(()=>[n(k,{value:"chat",size:"small"},{default:i(()=>[n(D,null,{default:i(()=>[...e[9]||(e[9]=[c("mdi-chat",-1)])]),_:1})]),_:1}),n(k,{value:"events",size:"small"},{default:i(()=>[n(D,null,{default:i(()=>[...e[10]||(e[10]=[c("mdi-format-list-bulleted",-1)])]),_:1})]),_:1})]),_:1},8,["modelValue"]),n(Ze,{location:"top"},{activator:i(({props:u})=>[n(B,he({color:s.connected?"success":"grey",size:"x-small"},u,{variant:"tonal"}),{default:i(()=>[c(g(s.connected?"已连接":"未连接"),1)]),_:1},16,["color"])]),default:i(()=>[r("span",null,"Socket "+g(s.socketId||"-"),1)]),_:1}),n(k,{icon:"",variant:"text",onClick:e[2]||(e[2]=u=>l.close())},{default:i(()=>[n(D,null,{default:i(()=>[...e[11]||(e[11]=[c("mdi-close",-1)])]),_:1})]),_:1})]),_:1}),n(xe),n(A,{class:"chat-body"},{default:i(()=>[s.currentMode==="chat"?(f(),y("div",Ds,[(f(!0),y(N,null,M(l.decoratedMessages,u=>(f(),y(N,{key:u._id},[u._type==="divider"?(f(),y("div",_s,[n(xe,{class:"my-2"}),e[12]||(e[12]=r("div",{class:"divider-text"}," 今天 - 上次访问 ",-1)),n(xe,{class:"my-2"})])):(f(),y("div",{key:1,class:we([{self:u.self},"message-row"])},[r("div",Ts,[n(je,{color:u.self?"primary":"grey",size:"24"},{default:i(()=>[n(D,{size:"small"},{default:i(()=>[c(g(u.self?"mdi-account":"mdi-account-outline"),1)]),_:2},1024)]),_:2},1032,["color"])]),r("div",Vs,[!u.self&&u.deviceName?(f(),y("div",Is,g(u.deviceName),1)):x("",!0),r("div",Ns,g(u.text),1),r("div",Es,[u.self&&u.deviceName?(f(),y("span",As,g(u.deviceName)+" • ",1)):x("",!0),c(" "+g(l.formatTime(u.at)),1)])])],2))],64))),128))],512)):(f(),y("div",Us,[r("div",Fs,[n(ge,{dense:""},{default:i(()=>[n(se,{cols:"4"},{default:i(()=>[n(_,{color:"success",dark:"",size:"small"},{default:i(()=>[n(A,{class:"text-center pa-2"},{default:i(()=>[r("div",Ms,g(s.eventStats.chat),1),e[13]||(e[13]=r("div",{class:"text-caption"}," 聊天 ",-1))]),_:1})]),_:1})]),_:1}),n(se,{cols:"4"},{default:i(()=>[n(_,{color:"info",dark:"",size:"small"},{default:i(()=>[n(A,{class:"text-center pa-2"},{default:i(()=>[r("div",Ps,g(s.eventStats.kvChanged),1),e[14]||(e[14]=r("div",{class:"text-caption"}," KV变化 ",-1))]),_:1})]),_:1})]),_:1}),n(se,{cols:"4"},{default:i(()=>[n(_,{color:"warning",dark:"",size:"small"},{default:i(()=>[n(A,{class:"text-center pa-2"},{default:i(()=>[r("div",zs,g(s.eventStats.other),1),e[15]||(e[15]=r("div",{class:"text-caption"}," 其他 ",-1))]),_:1})]),_:1})]),_:1})]),_:1})]),r("div",Ls,[(f(!0),y(N,null,M(l.paginatedEvents,u=>(f(),y("div",{key:u._id,class:"event-item mb-2"},[n(_,{color:l.getEventColor(u.type),size:"small",variant:"outlined"},{default:i(()=>[n(A,{class:"pa-2"},{default:i(()=>{var h;return[r("div",Rs,[n(B,{color:l.getEventColor(u.type),size:"x-small"},{default:i(()=>[c(g(l.getEventTypeLabel(u.type)),1)]),_:2},1032,["color"]),n(K),r("span",Bs,g(l.formatTime(u.timestamp||u.at)),1)]),u.senderInfo?(f(),y("div",$s,[e[16]||(e[16]=r("strong",null,"发送者:",-1)),c(" "+g(l.formatDeviceInfo(u.senderInfo)),1)])):x("",!0),r("div",Os,[u.type==="chat"||u.type==="chat:message"?(f(),y("div",js,g(((h=u.content)==null?void 0:h.text)||u.text),1)):(f(),y("pre",Ks,g(JSON.stringify(u.content||u,null,1)),1))])]}),_:2},1024)]),_:2},1032,["color"])]))),128)),s.allEvents.length===0?(f(),y("div",Hs," 暂无事件 ")):x("",!0)]),l.totalPages>1?(f(),y("div",qs,[n(An,{modelValue:s.currentPage,"onUpdate:modelValue":e[3]||(e[3]=u=>s.currentPage=u),length:l.totalPages,"total-visible":3,size:"small"},null,8,["modelValue","length"])])):x("",!0)]))]),_:1}),s.currentMode==="chat"?(f(),w(xe,{key:0})):x("",!0),s.currentMode==="chat"?(f(),w(de,{key:1,class:"chat-input"},{default:i(()=>[n(k,{class:"mr-1",icon:"",variant:"text",onClick:e[4]||(e[4]=u=>l.insertEmoji("😄"))},{default:i(()=>[n(D,null,{default:i(()=>[...e[17]||(e[17]=[c("mdi-emoticon-outline",-1)])]),_:1})]),_:1}),n(ze,{ref:"inputRef",modelValue:s.text,"onUpdate:modelValue":e[5]||(e[5]=u=>s.text=u),"auto-grow":"",class:"flex-grow-1","hide-details":"",placeholder:"输入消息",rows:"1",variant:"solo",onKeydown:[it(at(l.handleEnter,["prevent"]),["enter"]),e[6]||(e[6]=it(at(()=>{},["shift","stop"]),["enter"]))]},null,8,["modelValue","onKeydown"]),n(k,{disabled:!l.canSend,class:"ml-2",color:"primary",onClick:l.send},{default:i(()=>[n(D,{start:""},{default:i(()=>[...e[18]||(e[18]=[c(" mdi-send ",-1)])]),_:1}),e[19]||(e[19]=c(" 发送 ",-1))]),_:1},8,["disabled","onClick"])]),_:1})):x("",!0)]),_:1})],4),[[Te,s.visible]]),n(o,{ref:"urgentNotification"},null,512)],64)}const qe=te(Ss,[["render",Qs],["__scopeId","data-v-1a62ac2a"]]),Ws={name:"UrgentTestDialog",components:{ChatWidget:qe,EventSender:He},props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{sending:!1,notificationForm:{isUrgent:!1,message:"",isPersistent:!1},sentMessages:[],receiptCleanup:[],persistentNotifications:[],editDialog:!1,editForm:{id:null,message:"",isUrgent:!1,resend:!1},savingEdit:!1,deleteConfirmDialog:!1,itemToDelete:null}},computed:{dialog:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},mounted(){this.setupEventListeners(),this.loadPersistentNotifications()},beforeUnmount(){this.cleanup()},methods:{generateNotificationId(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let e="";for(let a=0;a<32;a++)e+=t.charAt(Math.floor(Math.random()*t.length));return e},async sendNotification(){if(this.notificationForm.message.trim()){this.sending=!0;try{const t=this.generateNotificationId(),e=this.notificationForm.message,a=this.notificationForm.isUrgent,d=this.notificationForm.isPersistent,s=await this.$refs.eventSender.sendNotification(e,a,[],{deviceName:"测试设备",deviceType:"system",isReadOnly:!1},t),l=(s==null?void 0:s.eventId)||`msg-${Date.now()}`;if(this.sentMessages.push({id:l,notificationId:t,message:e,isUrgent:a,timestamp:new Date().toISOString(),receipts:{displayed:[],read:[]}}),d)try{const o="notification-list",u=await fe.loadData(o);let h=[];u&&Array.isArray(u)?h=u:u&&u.success!==!1&&Array.isArray(u.data)&&(h=u.data);const m={id:t,message:e,isUrgent:a,timestamp:new Date().toISOString()};h.unshift(m),await fe.saveData(o,h),this.persistentNotifications=h,console.log("常驻通知已保存")}catch(o){console.error("保存常驻通知失败",o)}console.log("通知已发送,事件ID:",l,"通知ID:",t),this.resetForm()}catch(t){console.error("发送通知失败:",t)}finally{this.sending=!1}}},resetForm(){this.notificationForm={isUrgent:!1,message:"",isPersistent:!1}},close(){this.dialog=!1},setupEventListeners(){const t=be("notification-displayed",a=>{console.log("收到显示回执:",a),this.updateReceipt(a,"displayed")}),e=be("notification-read",a=>{console.log("收到已读回执:",a),this.updateReceipt(a,"read")});this.receiptCleanup.push(t,e)},updateReceipt(t,e){var l,o,u,h,m;const a=t.originalEventId,d=t.notificationId||((l=t.content)==null?void 0:l.notificationId);if(!a&&!d)return;const s=this.sentMessages.find(p=>p.id===a||p.notificationId===d);if(s){const p={senderId:t.senderId||"unknown-sender",deviceName:((o=t.senderInfo)==null?void 0:o.deviceName)||((u=t.deviceInfo)==null?void 0:u.deviceName)||"未知设备",deviceType:((h=t.senderInfo)==null?void 0:h.deviceType)||((m=t.deviceInfo)==null?void 0:m.deviceType)||"unknown",timestamp:new Date().toISOString()};s.receipts[e].find(L=>L.senderId===p.senderId)||(s.receipts[e].push(p),console.log(`更新${e}回执:`,s.id,p))}},cleanup(){this.receiptCleanup.forEach(t=>t()),this.receiptCleanup=[]},formatTime(t){return new Date(t).toLocaleString("zh-CN")},getReceiptStatus(t){return t.read.length>0?"已读":t.displayed.length>0?"已显示":"已发送"},getReceiptColor(t){return t.read.length>0?"success":t.displayed.length>0?"info":"grey"},formatDeviceTime(t){return new Date(t).toLocaleTimeString("zh-CN")},getMainCardColor(t){return t.read.length>0?"success":t.displayed.length>0?"info":"grey"},hasAnyReceipts(t){return t.read.length>0||t.displayed.length>0},getDisplayedOnlyDevices(t){const e=t.read.map(a=>a.senderId);return t.displayed.filter(a=>!e.includes(a.senderId))},openEditDialog(t){this.editForm={id:t.id,message:t.message,isUrgent:t.isUrgent||!1,resend:!1,timestamp:t.timestamp},this.editDialog=!0},async saveEdit(){var t,e;if(this.editForm.message.trim()){this.savingEdit=!0;try{const a=this.persistentNotifications.findIndex(d=>d.id===this.editForm.id);if(a!==-1){if(this.persistentNotifications[a]={...this.persistentNotifications[a],message:this.editForm.message,isUrgent:this.editForm.isUrgent,timestamp:new Date().toISOString()},await fe.saveData("notification-list",this.persistentNotifications),this.editForm.resend){const d=this.editForm.id,s=this.editForm.message,l=this.editForm.isUrgent,o=await this.$refs.eventSender.sendNotification(s,l,[],{deviceName:"测试设备",deviceType:"system",isReadOnly:!1},d),u=(o==null?void 0:o.eventId)||`msg-${Date.now()}`;this.sentMessages.push({id:u,notificationId:d,message:s,isUrgent:l,timestamp:new Date().toISOString(),receipts:{displayed:[],read:[]}})}this.editDialog=!1,(t=this.$message)==null||t.success("已更新")}}catch(a){console.error("保存失败",a),(e=this.$message)==null||e.error("保存失败")}finally{this.savingEdit=!1}}},async loadPersistentNotifications(){try{const t=await fe.loadData("notification-list");t&&Array.isArray(t)?this.persistentNotifications=t:t&&t.success!==!1&&Array.isArray(t.data)?this.persistentNotifications=t.data:this.persistentNotifications=[]}catch(t){console.error("加载常驻通知失败",t)}},async deleteNotification(t){if(confirm("确定要删除这个通知吗?"))try{this.sentMessages=this.sentMessages.filter(a=>a.id!==t),this.persistentNotifications=this.persistentNotifications.filter(a=>a.id!==t),console.log("通知已删除,通知ID:",t)}catch(a){console.error("删除通知失败:",a)}},deletePersistentNotification(t){this.itemToDelete=t,this.deleteConfirmDialog=!0},async executeDelete(){var e,a;if(!this.itemToDelete)return;const t=this.itemToDelete;this.deleteConfirmDialog=!1,this.itemToDelete=null;try{this.persistentNotifications=this.persistentNotifications.filter(s=>s.id!==t);const d=this.persistentNotifications.length>0?this.persistentNotifications:{};await fe.saveData("notification-list",d),(e=this.$message)==null||e.success("已删除")}catch(d){console.error("删除失败",d),(a=this.$message)==null||a.error("删除失败")}}}},Gs={key:0,class:"text-center text-grey py-4"},Js={key:0,class:"text-center text-grey py-8"},Ys={class:"d-flex align-center mb-2"},Xs={class:"font-weight-medium"},Zs={class:"text-caption font-weight-medium"},ei={class:"text-body-2 mb-3",style:{"max-height":"60px",overflow:"hidden"}},ti={class:"text-caption"},ni={key:0},si={class:"align-center"},ii={class:"text-body-2 font-weight-medium"},ai={class:"text-caption mt-1"},li={class:"align-center"},oi={class:"text-body-2 font-weight-medium"},ri={class:"text-caption text-grey"},di={class:"text-caption text-grey mt-1"},ui={key:1};function ci(t,e,a,d,s,l){const o=qe,u=He;return f(),w(ie,{modelValue:l.dialog,"onUpdate:modelValue":e[11]||(e[11]=h=>l.dialog=h),fullscreen:"",transition:"dialog-bottom-transition",scrollable:""},{default:i(()=>[n(_,null,{default:i(()=>[n(ct,{dark:"",flat:""},{default:i(()=>[n(ft,null,{default:i(()=>[n(D,{class:"mr-2"},{default:i(()=>[...e[12]||(e[12]=[c(" mdi-chat ",-1)])]),_:1}),e[13]||(e[13]=c(" 发送通知 ",-1))]),_:1}),n(K),n(k,{icon:"mdi-close",onClick:l.close},null,8,["onClick"])]),_:1}),n(A,{class:"pa-0"},{default:i(()=>[n(_t,null,{default:i(()=>[n(ge,null,{default:i(()=>[n(se,{cols:"12"},{default:i(()=>[n(_,null,{default:i(()=>[n(A,null,{default:i(()=>[n(mt,null,{default:i(()=>[n(ge,null,{default:i(()=>[n(se,{cols:"12",md:"6"},{default:i(()=>[n(ht,{modelValue:s.notificationForm.isUrgent,"onUpdate:modelValue":e[0]||(e[0]=h=>s.notificationForm.isUrgent=h),label:"强调通知",color:"red",inset:""},null,8,["modelValue"]),n(ut,{modelValue:s.notificationForm.isPersistent,"onUpdate:modelValue":e[1]||(e[1]=h=>s.notificationForm.isPersistent=h),label:"常驻展示",color:"primary","hide-details":"",class:"mt-0"},null,8,["modelValue"])]),_:1}),n(se,{cols:"12"},{default:i(()=>[n(ze,{modelValue:s.notificationForm.message,"onUpdate:modelValue":e[2]||(e[2]=h=>s.notificationForm.message=h),label:"通知内容",outlined:"",rows:"3",placeholder:"请输入强调通知的内容..."},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),n(de,{class:"px-6 pb-6"},{default:i(()=>[n(k,{color:s.notificationForm.isUrgent?"red":"blue",disabled:!s.notificationForm.message.trim(),loading:s.sending,size:"large",variant:"elevated",onClick:l.sendNotification},{default:i(()=>[n(D,{left:""},{default:i(()=>[c(g(s.notificationForm.isUrgent?"mdi-alert-circle":"mdi-information"),1)]),_:1}),c(" "+g(s.notificationForm.isUrgent?"发送强调通知":"发送通知"),1)]),_:1},8,["color","disabled","loading","onClick"]),n(K)]),_:1})]),_:1})]),_:1})]),_:1}),n(ge,{class:"mt-4"},{default:i(()=>[n(se,{cols:"12"},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,null,{default:i(()=>[n(D,{class:"mr-2"},{default:i(()=>[...e[14]||(e[14]=[c("mdi-pin",-1)])]),_:1}),e[15]||(e[15]=c(" 常驻通知管理 ",-1))]),_:1}),n(A,null,{default:i(()=>[s.persistentNotifications.length===0?(f(),y("div",Gs," 暂无常驻通知 ")):(f(),w(Ke,{key:1},{default:i(()=>[(f(!0),y(N,null,M(s.persistentNotifications,h=>(f(),w(Me,{key:h.id,title:h.message,subtitle:l.formatTime(h.timestamp),lines:"two"},{prepend:i(()=>[n(D,{color:h.isUrgent?"error":"primary"},{default:i(()=>[c(g(h.isUrgent?"mdi-alert-circle":"mdi-information"),1)]),_:2},1032,["color"])]),append:i(()=>[n(k,{icon:"mdi-pencil",variant:"text",size:"small",onClick:m=>l.openEditDialog(h)},null,8,["onClick"]),n(k,{icon:"mdi-delete",variant:"text",color:"error",size:"small",onClick:m=>l.deletePersistentNotification(h.id)},null,8,["onClick"])]),_:2},1032,["title","subtitle"]))),128))]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1}),n(ge,{class:"mt-4"},{default:i(()=>[n(se,{cols:"12"},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,null,{default:i(()=>[n(D,{class:"mr-2"},{default:i(()=>[...e[16]||(e[16]=[c(" mdi-history ",-1)])]),_:1}),e[17]||(e[17]=c(" 消息记录 ",-1)),n(K)]),_:1}),n(A,null,{default:i(()=>[s.sentMessages.length===0?(f(),y("div",Js,[n(D,{size:"64",color:"grey-lighten-2"},{default:i(()=>[...e[18]||(e[18]=[c(" mdi-message-outline ",-1)])]),_:1}),e[19]||(e[19]=r("div",{class:"mt-2"}," 暂无发送记录 ",-1))])):(f(),w(ge,{key:1},{default:i(()=>[(f(!0),y(N,null,M(s.sentMessages.slice().reverse(),h=>(f(),w(se,{key:h.id,cols:"12",md:"6",lg:"4"},{default:i(()=>[n(_,{color:l.getMainCardColor(h.receipts),class:"mb-2"},{default:i(()=>[n(A,null,{default:i(()=>[r("div",Ys,[r("span",Xs,g(h.isUrgent?"强调通知":"通知"),1),n(K),r("span",Zs,g(l.getReceiptStatus(h.receipts)),1)]),r("div",ei,g(h.message),1),r("div",ti,[r("div",null,"发送时间:"+g(l.formatTime(h.timestamp)),1),r("div",null,"事件ID:"+g(h.id),1),r("div",null,"通知ID:"+g(h.notificationId),1)])]),_:2},1024)]),_:2},1032,["color"]),l.hasAnyReceipts(h.receipts)?(f(),y("div",ni,[(f(!0),y(N,null,M(h.receipts.read,m=>(f(),w(_,{key:`${m.senderId}-read`,color:"success",class:"mb-1",size:"small"},{default:i(()=>[n(A,{class:"pa-2"},{default:i(()=>[r("div",si,[r("span",ii,g(m.deviceName),1),e[20]||(e[20]=r("br",null,null,-1)),c(" "+g(m.deviceType),1)]),r("div",ai," 已读于 "+g(l.formatDeviceTime(m.timestamp)),1)]),_:2},1024)]),_:2},1024))),128)),(f(!0),y(N,null,M(l.getDisplayedOnlyDevices(h.receipts),m=>(f(),w(_,{key:`${m.senderId}-displayed`,color:"info-lighten-4",variant:"outlined",class:"mb-1",size:"small"},{default:i(()=>[n(A,{class:"pa-2"},{default:i(()=>[r("div",li,[r("span",oi,g(m.deviceName),1),n(K),r("span",ri,g(m.deviceType=="classroom"?"教室设备上的应用":m.deviceType),1)]),r("div",di," 已显示于 "+g(l.formatDeviceTime(m.timestamp)),1)]),_:2},1024)]),_:2},1024))),128))])):(f(),y("div",ui,[n(_,{color:"info-lighten-4",variant:"outlined",class:"mb-1",size:"small",title:"无设备在线"},{default:i(()=>[n(A,null,{default:i(()=>[...e[21]||(e[21]=[c(" 如果数秒后任然显示这个提示,则可能没有任何设备在线接收通知。 ",-1)])]),_:1})]),_:1})]))]),_:2},1024))),128))]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),n(o),n(u,{ref:"eventSender"},null,512),n(ie,{modelValue:s.editDialog,"onUpdate:modelValue":e[8]||(e[8]=h=>s.editDialog=h),"max-width":"500",fullscreen:t.$vuetify.display.xs},{default:i(()=>[n(_,null,{default:i(()=>[n(ct,{flat:"",density:"compact"},{default:i(()=>[n(ft,null,{default:i(()=>[...e[22]||(e[22]=[c("编辑常驻通知",-1)])]),_:1}),n(K),n(k,{icon:"mdi-close",onClick:e[3]||(e[3]=h=>s.editDialog=!1)})]),_:1}),n(A,null,{default:i(()=>[n(mt,null,{default:i(()=>[n(ze,{modelValue:s.editForm.message,"onUpdate:modelValue":e[4]||(e[4]=h=>s.editForm.message=h),label:"通知内容",rows:"3","auto-grow":""},null,8,["modelValue"]),n(ht,{modelValue:s.editForm.isUrgent,"onUpdate:modelValue":e[5]||(e[5]=h=>s.editForm.isUrgent=h),label:"强调通知",color:"error","hide-details":""},null,8,["modelValue"]),n(ut,{modelValue:s.editForm.resend,"onUpdate:modelValue":e[6]||(e[6]=h=>s.editForm.resend=h),label:"保存并重新发送通知",hint:"勾选后将作为新通知发送给所有在线设备","persistent-hint":""},null,8,["modelValue"])]),_:1})]),_:1}),n(de,null,{default:i(()=>[n(K),n(k,{variant:"text",onClick:e[7]||(e[7]=h=>s.editDialog=!1)},{default:i(()=>[...e[23]||(e[23]=[c("取消",-1)])]),_:1}),n(k,{color:"primary",loading:s.savingEdit,onClick:l.saveEdit},{default:i(()=>[...e[24]||(e[24]=[c("保存",-1)])]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","fullscreen"]),n(ie,{modelValue:s.deleteConfirmDialog,"onUpdate:modelValue":e[10]||(e[10]=h=>s.deleteConfirmDialog=h),"max-width":"400"},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,{class:"text-h5"},{default:i(()=>[...e[25]||(e[25]=[c("确认删除",-1)])]),_:1}),n(A,null,{default:i(()=>[...e[26]||(e[26]=[c("确定要删除这条常驻通知吗?此操作无法撤销。",-1)])]),_:1}),n(de,null,{default:i(()=>[n(K),n(k,{color:"grey-darken-1",variant:"text",onClick:e[9]||(e[9]=h=>s.deleteConfirmDialog=!1)},{default:i(()=>[...e[27]||(e[27]=[c("取消",-1)])]),_:1}),n(k,{color:"error",variant:"text",onClick:l.executeDelete},{default:i(()=>[...e[28]||(e[28]=[c("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])}const Et=te(Ws,[["render",ci],["__scopeId","data-v-c6850940"]]),fi={name:"FloatingICP"},mi={"aria-label":"xICP备x号",class:"floating-icp-link",href:"https://beian.miit.gov.cn/",rel:"noopener noreferrer",target:"_blank",style:{display:"none"}};function hi(t,e,a,d,s,l){return f(),y("a",mi," xICP备x号 ")}const At=te(fi,[["render",hi],["__scopeId","data-v-fa73670f"]]),vi={name:"FloatingToolbar",props:{loading:{type:Boolean,default:!1},unreadCount:{type:Number,default:0},selectedDate:{type:[String,Date],required:!0},isToday:{type:Boolean,required:!0},copyToTodayLoading:{type:Boolean,default:!1}},data(){return{isExpanded:!1}},methods:{handleDateSelect(t){this.$emit("date-select",t)}}},gi={class:"floating-toolbar-container"};function pi(t,e,a,d,s,l){return f(),y("div",gi,[n(tn,null,{default:i(()=>[n(_,{class:we([{"toolbar-expanded":s.isExpanded},"floating-toolbar"]),elevation:"4",rounded:"xl"},{default:i(()=>[n(wt,{class:"toolbar-buttons",variant:"text"},{default:i(()=>[re(n(k,{title:"查看昨天",class:"toolbar-btn",icon:"mdi-chevron-left",variant:"text",onClick:e[0]||(e[0]=o=>t.$emit("prev-day"))},null,512),[[Ve]]),re(n(k,{title:"缩小字体",class:"toolbar-btn",icon:"mdi-format-font-size-decrease",variant:"text",onClick:e[1]||(e[1]=o=>t.$emit("zoom","out"))},null,512),[[Ve]]),re(n(k,{title:"放大字体",class:"toolbar-btn",icon:"mdi-format-font-size-increase",variant:"text",onClick:e[2]||(e[2]=o=>t.$emit("zoom","up"))},null,512),[[Ve]]),n(Tt,{"close-on-content-click":!1,location:"top"},{activator:i(({props:o})=>[re(n(k,he({title:"选择日期",class:"toolbar-btn",icon:"mdi-calendar"},o,{variant:"text"}),null,16),[[Ve]])]),default:i(()=>[n(_,{border:"",class:"date-picker-card"},{default:i(()=>[n(Kn,{"model-value":a.selectedDate,color:"primary","onUpdate:modelValue":l.handleDateSelect},null,8,["model-value","onUpdate:modelValue"])]),_:1})]),_:1}),re(n(k,{loading:a.loading,title:"刷新数据",class:"toolbar-btn",icon:"mdi-refresh",variant:"text",onClick:e[3]||(e[3]=o=>t.$emit("refresh"))},null,8,["loading"]),[[Ve]]),a.isToday?x("",!0):re((f(),w(k,{key:0,title:"查看明天",class:"toolbar-btn",icon:"mdi-chevron-right",variant:"text",onClick:e[4]||(e[4]=o=>t.$emit("next-day"))},null,512)),[[Ve]])]),_:1})]),_:1},8,["class"])]),_:1}),n(nn,null,{default:i(()=>[a.isToday?x("",!0):(f(),w(k,{key:0,loading:a.copyToTodayLoading,disabled:a.copyToTodayLoading,class:"side-action-btn",color:"primary",elevation:"4","prepend-icon":"mdi-content-copy",rounded:"xl",size:"large",text:"复制作业内容到今天",onClick:e[5]||(e[5]=o=>t.$emit("copy-to-today"))},{default:i(()=>[...e[6]||(e[6]=[c("复制到今天",-1)])]),_:1},8,["loading","disabled"]))]),_:1})])}const Ut=te(vi,[["render",pi],["__scopeId","data-v-7076d3aa"]]),yi={name:"AttendanceManagementDialog",props:{modelValue:{type:Boolean,required:!0},studentList:{type:Array,required:!0},attendance:{type:Object,required:!0},dateString:{type:String,default:""}},emits:["update:modelValue","save","change"],setup(){const{mobile:t}=Pe();return{isMobile:t}},data(){return{attendanceSearch:"",attendanceFilter:[]}},computed:{filteredStudents(){let t=[...this.studentList];if(this.attendanceSearch){const e=this.attendanceSearch.toLowerCase();t=t.filter(a=>a.toLowerCase().includes(e))}return this.attendanceFilter&&this.attendanceFilter.length>0&&(t=t.filter(e=>!!(this.attendanceFilter.includes("present")&&this.isPresent(e)||this.attendanceFilter.includes("absent")&&this.isAbsent(e)||this.attendanceFilter.includes("late")&&this.isLate(e)||this.attendanceFilter.includes("exclude")&&this.isExclude(e)))),t},extractedSurnames(){if(!this.studentList||this.studentList.length===0)return[];const t=new Map;return this.studentList.forEach(e=>{if(e&&e.length>0){const a=e.charAt(0);t.set(a,(t.get(a)||0)+1)}}),Array.from(t.entries()).map(([e,a])=>({name:e,count:a})).sort((e,a)=>{const d=vt(e.name,{toneType:"none"}),s=vt(a.name,{toneType:"none"});return d.localeCompare(s)})}},methods:{toggleFilter(t){const e=this.attendanceFilter.indexOf(t);e===-1?this.attendanceFilter.push(t):this.attendanceFilter.splice(e,1)},isPresent(t){const{absent:e,late:a,exclude:d}=this.attendance;return!e.includes(t)&&!a.includes(t)&&!d.includes(t)},isAbsent(t){return this.attendance.absent.includes(t)},isLate(t){return this.attendance.late.includes(t)},isExclude(t){return this.attendance.exclude.includes(t)},getStudentStatusColor(t){return this.attendance.absent.includes(t)?"error":this.attendance.late.includes(t)?"warning":this.attendance.exclude.includes(t)?"grey":"success"},getStudentStatusIcon(t){return this.attendance.absent.includes(t)?"mdi-account-off":this.attendance.late.includes(t)?"mdi-clock-alert":this.attendance.exclude.includes(t)?"mdi-account-cancel":"mdi-account-check"},removeFromAll(t){const e=this.attendance.absent.indexOf(t);e>-1&&this.attendance.absent.splice(e,1);const a=this.attendance.late.indexOf(t);a>-1&&this.attendance.late.splice(a,1);const d=this.attendance.exclude.indexOf(t);d>-1&&this.attendance.exclude.splice(d,1)},setPresent(t){this.removeFromAll(t),this.$emit("change")},setAbsent(t){this.removeFromAll(t),this.attendance.absent.push(t),this.$emit("change")},setLate(t){this.removeFromAll(t),this.attendance.late.push(t),this.$emit("change")},setExclude(t){this.removeFromAll(t),this.attendance.exclude.push(t),this.$emit("change")},setAllPresent(){this.attendance.absent.splice(0,this.attendance.absent.length),this.attendance.late.splice(0,this.attendance.late.length),this.attendance.exclude.splice(0,this.attendance.exclude.length),this.$emit("change")},setAllAbsent(){this.setAllPresent(),this.attendance.absent.push(...this.studentList),this.$emit("change")},setAllLate(){this.setAllPresent(),this.attendance.late.push(...this.studentList),this.$emit("change")},setAllExclude(){this.setAllPresent(),this.attendance.exclude.push(...this.studentList),this.$emit("change")}}},ki={class:"d-flex flex-wrap mt-2 gap-1"},bi={class:"d-flex flex-wrap mb-4 gap-2"},wi={class:"flex-grow-1"},xi={class:"d-flex align-center"},Si={class:"text-subtitle-1"},Ci={class:"attendance-actions"},Di={class:"d-flex flex-wrap gap-2"};function _i(t,e,a,d,s,l){return f(),w(ie,{"model-value":a.modelValue,fullscreen:d.isMobile,"fullscreen-breakpoint":"sm","max-width":"900","onUpdate:modelValue":e[7]||(e[7]=o=>t.$emit("update:modelValue",o))},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,{class:"d-flex align-center"},{default:i(()=>[n(D,{class:"mr-2",icon:"mdi-account-group"}),e[8]||(e[8]=c(" 出勤状态管理 ",-1)),n(K),d.isMobile?x("",!0):(f(),w(B,{key:0,class:"ml-2",color:"primary",size:"small"},{default:i(()=>[c(g(a.dateString),1)]),_:1})),d.isMobile?(f(),w(k,{key:1,icon:"mdi-close",variant:"text",onClick:e[0]||(e[0]=o=>t.$emit("update:modelValue",!1))})):x("",!0)]),_:1}),n(A,null,{default:i(()=>[n(ge,{class:"mb-4"},{default:i(()=>[n(se,{cols:"12",md:"12"},{default:i(()=>[n(De,{modelValue:s.attendanceSearch,"onUpdate:modelValue":e[1]||(e[1]=o=>s.attendanceSearch=o),clearable:"",hint:"支持筛选姓氏,如输入'孙'可筛选所有姓孙的学生",label:"搜索学生","prepend-inner-icon":"mdi-magnify",variant:"outlined"},null,8,["modelValue"]),r("div",ki,[(f(!0),y(N,null,M(l.extractedSurnames,o=>(f(),w(k,{key:o.name,color:s.attendanceSearch===o.name?"primary":"",variant:s.attendanceSearch===o.name?"elevated":"text",onClick:u=>s.attendanceSearch=s.attendanceSearch===o.name?"":o.name},{default:i(()=>[c(g(o.name)+" ("+g(o.count)+") ",1)]),_:2},1032,["color","variant","onClick"]))),128))])]),_:1})]),_:1}),r("div",bi,[r("div",null,[n(B,{"append-icon":s.attendanceFilter.includes("present")?"mdi-check":"",color:s.attendanceFilter.includes("present")?"success":"",variant:s.attendanceFilter.includes("present")?"elevated":"tonal",class:"px-2 filter-chip","prepend-icon":"mdi-account-check",value:"present",onClick:e[2]||(e[2]=o=>l.toggleFilter("present"))},{default:i(()=>[...e[9]||(e[9]=[c(" 到课 ",-1)])]),_:1},8,["append-icon","color","variant"]),n(B,{"append-icon":s.attendanceFilter.includes("absent")?"mdi-check":"",color:s.attendanceFilter.includes("absent")?"error":"",variant:s.attendanceFilter.includes("absent")?"elevated":"tonal",class:"px-2 filter-chip","prepend-icon":"mdi-account-off",value:"absent",onClick:e[3]||(e[3]=o=>l.toggleFilter("absent"))},{default:i(()=>[...e[10]||(e[10]=[c(" 请假 ",-1)])]),_:1},8,["append-icon","color","variant"]),n(B,{"append-icon":s.attendanceFilter.includes("late")?"mdi-check":"",color:s.attendanceFilter.includes("late")?"warning":"",variant:s.attendanceFilter.includes("late")?"elevated":"tonal",class:"px-2 filter-chip","prepend-icon":"mdi-clock-alert",value:"late",onClick:e[4]||(e[4]=o=>l.toggleFilter("late"))},{default:i(()=>[...e[11]||(e[11]=[c(" 迟到 ",-1)])]),_:1},8,["append-icon","color","variant"]),n(B,{"append-icon":s.attendanceFilter.includes("exclude")?"mdi-check":"",color:s.attendanceFilter.includes("exclude")?"grey":"",variant:s.attendanceFilter.includes("exclude")?"elevated":"tonal",class:"px-2 filter-chip","prepend-icon":"mdi-account-cancel",value:"exclude",onClick:e[5]||(e[5]=o=>l.toggleFilter("exclude"))},{default:i(()=>[...e[12]||(e[12]=[c(" 不参与 ",-1)])]),_:1},8,["append-icon","color","variant"])])]),n(ge,null,{default:i(()=>[(f(!0),y(N,null,M(l.filteredStudents,o=>(f(),w(se,{key:o,cols:"12",lg:"4",md:"6",sm:"6"},{default:i(()=>[n(_,{border:"",class:"student-card"},{default:i(()=>[n(A,{class:"d-flex align-center pa-2"},{default:i(()=>[r("div",wi,[r("div",xi,[n(je,{color:l.getStudentStatusColor(o),class:"mr-2",size:"24"},{default:i(()=>[n(D,{size:"small"},{default:i(()=>[c(g(l.getStudentStatusIcon(o)),1)]),_:2},1024)]),_:2},1032,["color"]),r("div",Si,g(o),1)])]),r("div",Ci,[n(k,{color:l.isPresent(o)?"success":"",title:"设为到课",icon:"mdi-account-check",size:d.isMobile?"default":"small",variant:"text",onClick:u=>l.setPresent(o)},null,8,["color","size","onClick"]),n(k,{color:l.isAbsent(o)?"error":"",title:"设为请假",icon:"mdi-account-off",size:d.isMobile?"default":"small",variant:"text",onClick:u=>l.setAbsent(o)},null,8,["color","size","onClick"]),n(k,{color:l.isLate(o)?"warning":"",title:"设为迟到",icon:"mdi-clock-alert",size:d.isMobile?"default":"small",variant:"text",onClick:u=>l.setLate(o)},null,8,["color","size","onClick"]),n(k,{color:l.isExclude(o)?"grey":"",title:"设为不参与",icon:"mdi-account-cancel",size:d.isMobile?"default":"small",variant:"text",onClick:u=>l.setExclude(o)},null,8,["color","size","onClick"])])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1}),n(ge,null,{default:i(()=>[n(se,{cols:"12",md:"12"},{default:i(()=>[n(_,{class:"mb-4",color:"primary",variant:"tonal"},{default:i(()=>[n(A,null,{default:i(()=>[e[17]||(e[17]=r("div",{class:"text-subtitle-2 mb-2"},"批量操作",-1)),r("div",Di,[n(k,{class:"flex-grow-1",color:"success","prepend-icon":"mdi-account-check",onClick:l.setAllPresent},{default:i(()=>[...e[13]||(e[13]=[c(" 全部到齐 ",-1)])]),_:1},8,["onClick"]),n(k,{class:"flex-grow-1",color:"error","prepend-icon":"mdi-account-off",onClick:l.setAllAbsent},{default:i(()=>[...e[14]||(e[14]=[c(" 全部请假 ",-1)])]),_:1},8,["onClick"]),n(k,{class:"flex-grow-1",color:"warning","prepend-icon":"mdi-clock-alert",onClick:l.setAllLate},{default:i(()=>[...e[15]||(e[15]=[c(" 全部迟到 ",-1)])]),_:1},8,["onClick"]),n(k,{class:"flex-grow-1",color:"grey","prepend-icon":"mdi-account-cancel",onClick:l.setAllExclude},{default:i(()=>[...e[16]||(e[16]=[c(" 全部不参与 ",-1)])]),_:1},8,["onClick"])])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),n(xe),n(de,null,{default:i(()=>[n(K),n(k,{color:"primary",onClick:e[6]||(e[6]=o=>t.$emit("save"))},{default:i(()=>[n(D,{start:""},{default:i(()=>[...e[18]||(e[18]=[c("mdi-content-save",-1)])]),_:1}),e[19]||(e[19]=c(" 保存 ",-1))]),_:1})]),_:1})]),_:1})]),_:1},8,["model-value","fullscreen"])}const Ft=te(yi,[["render",_i],["__scopeId","data-v-7f9de516"]]),Ti={name:"HomeworkEditDialog",props:{modelValue:{type:Boolean,required:!0},title:{type:String,required:!0},initialContent:{type:String,default:""},autoSave:{type:Boolean,default:!1},isEditingPastData:{type:Boolean,default:!1},currentDateString:{type:String,default:""}},emits:["update:modelValue","save"],setup(){const{mobile:t}=Pe();return{isMobile:t}},data(){return{content:"",templateData:null,currentLine:"",currentLineStart:0,currentLineEnd:0,quickTexts:["课","题","例","变","T","P"]}},computed:{dialogVisible:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},subject(){return this.title},hasTemplates(){var t,e;return!!((e=(t=this.templateData)==null?void 0:t.actions)!=null&&e.length||this.subjectBooks||this.commonBooks)},subjectBooks(){var t,e,a;return!this.subject||!((a=(e=(t=this.templateData)==null?void 0:t.subjects)==null?void 0:e[this.subject])!=null&&a.books)?null:this.templateData.subjects[this.subject].books},commonBooks(){var t,e;return(e=(t=this.templateData)==null?void 0:t.commonSubject)!=null&&e.books?this.templateData.commonSubject.books:null},showQuickTools(){return C("display.showQuickTools")},autoSavePromptText(){return C("edit.autoSavePromptText")},manualSavePromptText(){return C("edit.manualSavePromptText")}},watch:{async modelValue(t){if(t){this.content=this.initialContent;try{this.templateData=await fe.loadData("classworks-config-homework-template")}catch(e){console.error("Failed to load homework templates:",e),this.templateData=null}this.$nextTick(()=>{this.$refs.inputRef&&(this.$refs.inputRef.focus(),this.updateCurrentLine())})}}},methods:{handleClose(){const t=this.content.trim();t!==this.initialContent.trim()&&this.$emit("save",t),this.dialogVisible=!1},updateCurrentLine(){const e=this.$refs.inputRef.$el.querySelector("textarea").selectionStart,a=this.content;let d=0;const s=a.split(` `);for(let l=0;ld.includes(t));a!==-1&&(e.splice(a,1),this.content=e.join(` `))}else{const e=this.content.trim().length>0;this.content=(e?this.content.trim()+` @@ -9,5 +9,5 @@ import{_ as te,k as C,s as pe,j as w,o as f,w as i,d as n,l as _,q as Y,t as c,v `))},{default:i(()=>[...e[10]||(e[10]=[c(" 换行 ",-1)])]),_:1})])]),r("div",ji,[(f(!0),y(N,null,M(s.quickTexts,u=>(f(),w(k,{key:u,size:"small",variant:"flat",onClick:h=>l.insertAtCursor(u)},{default:i(()=>[c(g(u),1)]),_:2},1032,["onClick"]))),128))])])):x("",!0)])]}),_:1}),a.isEditingPastData?(f(),w(Le,{key:0,type:"warning",variant:"tonal",class:"mx-4 mb-4",border:"start","border-color":"warning",prominent:""},{prepend:i(()=>[...e[11]||(e[11]=[])]),default:i(()=>[r("div",Ki,[e[12]||(e[12]=r("div",{class:"text-h6 mb-1"},"你打算修改历史?",-1)),r("div",Hi," 这是 "+g(new Date(a.currentDateString.slice(0,4),a.currentDateString.slice(4,6)-1,a.currentDateString.slice(6,8)).toLocaleDateString())+" 的作业 • 请谨慎操作,确保不会覆盖重要数据 ",1)])]),_:1})):x("",!0),e[13]||(e[13]=r("div",{class:"text-center text-body-2 text-disabled mb-5"}," 点击空白处完成编辑 ",-1))]),_:1})]),_:1},8,["modelValue","fullscreen","onClick:outside"])}const Mt=te(Ti,[["render",qi],["__scopeId","data-v-b3e3018d"]]),Qi={name:"AttendanceSidebar",props:{studentList:{type:Array,required:!0},attendance:{type:Object,required:!0},isEditingDisabled:{type:Boolean,default:!1}},emits:["click","disabled-click"],setup(){return{display:Pe()}},methods:{handleClick(){this.isEditingDisabled?this.$emit("disabled-click"):this.$emit("click")}}},Wi={style:{"white-space":"nowrap"}},Gi={style:{"white-space":"nowrap"}},Ji={style:{"white-space":"nowrap"}},Yi={key:0},Xi={style:{"white-space":"nowrap"}},Zi={style:{"white-space":"nowrap"}},ea={key:0},ta={style:{"white-space":"nowrap"}},na={style:{"white-space":"nowrap"}},sa={key:0},ia={style:{"white-space":"nowrap"}};function aa(t,e,a,d,s,l){return a.studentList&&a.studentList.length?re((f(),w(se,{key:0,class:we([{"cursor-not-allowed":a.isEditingDisabled},"attendance-area no-select"]),cols:"1",onClick:l.handleClick},{default:i(()=>[e[10]||(e[10]=r("h1",null,"出勤",-1)),r("h2",null,[e[0]||(e[0]=r("span",{style:{"white-space":"nowrap"}}," 应到",-1)),e[1]||(e[1]=c(" : ",-1)),r("span",Wi,g(a.studentList.length-a.attendance.exclude.length)+"人 ",1)]),r("h2",null,[e[2]||(e[2]=r("span",{style:{"white-space":"nowrap"}}," 实到",-1)),e[3]||(e[3]=c(" : ",-1)),r("span",Gi,g(a.studentList.length-a.attendance.absent.length-a.attendance.late.length-a.attendance.exclude.length)+"人 ",1)]),r("h2",null,[e[4]||(e[4]=r("span",{style:{"white-space":"nowrap"}}," 请假",-1)),e[5]||(e[5]=c(" : ",-1)),r("span",Ji,g(a.attendance.absent.length)+"人 ",1)]),(f(!0),y(N,null,M(a.attendance.absent,(o,u)=>(f(),y("h3",{key:"absent-"+u,class:"gray-text"},[d.display.lgAndUp.value?(f(),y("span",Yi,g(`${u+1}. `),1)):x("",!0),r("span",Xi,g(o),1)]))),128)),r("h2",null,[e[6]||(e[6]=r("span",{style:{"white-space":"nowrap"}},"迟到",-1)),e[7]||(e[7]=c(" : ",-1)),r("span",Zi,g(a.attendance.late.length)+"人 ",1)]),(f(!0),y(N,null,M(a.attendance.late,(o,u)=>(f(),y("h3",{key:"late-"+u,class:"gray-text"},[d.display.lgAndUp.value?(f(),y("span",ea,g(`${u+1}. `),1)):x("",!0),r("span",ta,g(o),1)]))),128)),r("h2",null,[e[8]||(e[8]=r("span",{style:{"white-space":"nowrap"}},"不参与",-1)),e[9]||(e[9]=c(" : ",-1)),r("span",na,g(a.attendance.exclude.length)+"人 ",1)]),(f(!0),y(N,null,M(a.attendance.exclude,(o,u)=>(f(),y("h3",{key:"exclude-"+u,class:"gray-text"},[d.display.lgAndUp.value?(f(),y("span",sa,g(`${u+1}. `),1)):x("",!0),r("span",ia,g(o),1)]))),128))]),_:1},8,["class","onClick"])),[[Ve,a.isEditingDisabled?!1:{class:`text-${["primary","secondary","info","success","warning","error"][Math.floor(Math.random()*6)]}`}]]):x("",!0)}const Pt=te(Qi,[["render",aa],["__scopeId","data-v-8dbe204a"]]),la={name:"HomeActions",props:{synced:Boolean,loadingUpload:Boolean,showRandomPickerButton:Boolean,showExamScheduleButton:Boolean,showListCardButton:Boolean,showFullscreenButton:Boolean,isFullscreen:Boolean,showAntiScreenBurnCard:Boolean,showTestCardButton:Boolean},emits:["upload","show-sync-message","open-random-picker","toggle-fullscreen","add-test-card"]},oa={class:"d-flex flex-wrap align-center mt-4"};function ra(t,e,a,d,s,l){return f(),y(N,null,[r("div",oa,[a.synced?(f(),w(k,{key:1,color:"success",size:"large",onClick:e[1]||(e[1]=o=>t.$emit("show-sync-message"))},{default:i(()=>[...e[8]||(e[8]=[c(" 同步完成 ",-1)])]),_:1})):(f(),w(k,{key:0,loading:a.loadingUpload,class:"ml-2",color:"error",size:"large",onClick:e[0]||(e[0]=o=>t.$emit("upload"))},{default:i(()=>[...e[7]||(e[7]=[c(" 上传 ",-1)])]),_:1},8,["loading"])),a.showRandomPickerButton?(f(),w(k,{key:2,"append-icon":"mdi-dice-multiple",class:"ml-2",color:"amber","prepend-icon":"mdi-account-question",size:"large",onClick:e[2]||(e[2]=o=>t.$emit("open-random-picker"))},{default:i(()=>[...e[9]||(e[9]=[c(" 随机点名 ",-1)])]),_:1})):x("",!0),a.showExamScheduleButton?(f(),w(k,{key:3,class:"ml-2",color:"green","prepend-icon":"mdi-calendar-check",size:"large",onClick:e[3]||(e[3]=o=>t.$router.push("/examschedule"))},{default:i(()=>[...e[10]||(e[10]=[c(" 考试看板 ",-1)])]),_:1})):x("",!0),a.showListCardButton?(f(),w(k,{key:4,class:"ml-2",color:"primary-darken-1","prepend-icon":"mdi-list-box",size:"large",onClick:e[4]||(e[4]=o=>t.$router.push("/list"))},{default:i(()=>[...e[11]||(e[11]=[c(" 列表 ",-1)])]),_:1})):x("",!0),a.showFullscreenButton?(f(),w(k,{key:5,color:a.isFullscreen?"blue-grey":"blue","prepend-icon":a.isFullscreen?"mdi-fullscreen-exit":"mdi-fullscreen",class:"ml-2",size:"large",onClick:e[5]||(e[5]=o=>t.$emit("toggle-fullscreen"))},{default:i(()=>[c(g(a.isFullscreen?"退出全屏":"全屏显示"),1)]),_:1},8,["color","prepend-icon"])):x("",!0),a.showTestCardButton?(f(),w(k,{key:6,class:"ml-2",color:"purple","prepend-icon":"mdi-test-tube",size:"large",onClick:e[6]||(e[6]=o=>t.$emit("add-test-card"))},{default:i(()=>[...e[12]||(e[12]=[c(" 添加测试卡片 ",-1)])]),_:1})):x("",!0)]),a.showAntiScreenBurnCard?(f(),w(_,{key:0,border:"",class:"mt-4 anti-burn-card",color:"primary",variant:"tonal"},{default:i(()=>[n(Y,{class:"text-subtitle-1"},{default:i(()=>[n(D,{icon:"mdi-shield-check",size:"small",start:""}),e[13]||(e[13]=c(" 屏幕保护技术已启用 ",-1))]),_:1}),n(A,{class:"text-body-2"},{default:i(()=>[...e[14]||(e[14]=[r("p",null," 为防止OLED/LCD屏幕烧屏,界面元素会定期微调位置。 ",-1),r("p",{class:"text-caption text-grey"}," 此功能不会影响正常使用,仅在长时间静止显示时生效。 ",-1),r("p",{class:"text-caption text-grey"}," 建议在放学后关闭显示器以节约能源。 ",-1)])]),_:1})]),_:1})):x("",!0)],64)}const zt=te(la,[["render",ra]]),da={name:"HomeworkGrid",props:{sortedItems:{type:Array,required:!0},unusedSubjects:{type:Array,required:!0},emptySubjectDisplay:{type:String,default:"button"},isEditingDisabled:{type:Boolean,default:!1},contentStyle:{type:Object,default:()=>({})},highlightedCards:{type:Object,default:()=>({})}},emits:["open-dialog","open-attendance","disabled-click"],computed:{isMobile(){return this.$vuetify.display.mobile}},methods:{handleCardClick(t,e){if(this.isEditingDisabled){this.$emit("disabled-click");return}t==="attendance"?this.$emit("open-attendance"):t==="dialog"&&this.$emit("open-dialog",e)},splitPoint(t){return t.split(` `).filter(e=>e.trim())},handleMouseMove(t){const e=t.currentTarget,a=e.getBoundingClientRect(),d=(t.clientX-a.left)/a.width*100,s=(t.clientY-a.top)/a.height*100;e.style.setProperty("--x",`${d}%`),e.style.setProperty("--y",`${s}%`)},handleTouchMove(t){if(t.touches.length===1){const e=t.touches[0],a=t.currentTarget,d=a.getBoundingClientRect(),s=(e.clientX-d.left)/d.width*100,l=(e.clientY-d.top)/d.height*100;a.style.setProperty("--x",`${s}%`),a.style.setProperty("--y",`${l}%`)}}}},ua={ref:"gridContainer",class:"grid-masonry"},ca={class:"d-flex justify-space-between align-center mb-2"},fa={class:"text-h6"},ma={key:0,class:"mb-2"},ha={class:"text-error text-caption mb-1"},va={class:"d-flex flex-wrap",style:{gap:"4px"}},ga={key:1,class:"mb-2"},pa={class:"text-warning text-caption mb-1"},ya={class:"d-flex flex-wrap",style:{gap:"4px"}},ka={key:2,class:"mb-2"},ba={class:"text-grey text-caption mb-1"},wa={class:"d-flex flex-wrap",style:{gap:"4px"}},xa={key:3,class:"text-success text-center mt-2"},Sa={class:"empty-subjects mt-4"},Ca={key:0,class:"d-flex flex-wrap justify-center"},Da={key:2,class:"empty-subjects-grid"};function _a(t,e,a,d,s,l){return f(),y(N,null,[r("div",ua,[n(Ye,{name:"grid"},{default:i(()=>[(f(!0),y(N,null,M(a.sortedItems,o=>(f(),y("div",{key:o.key,style:Ie({"grid-row-end":`span ${o.rowSpan}`,order:o.order}),class:"grid-item"},[o.type==="attendance"?(f(),w(_,{key:0,class:we([{"glow-highlight":a.highlightedCards[o.key],"cursor-not-allowed":a.isEditingDisabled,"cursor-pointer":!a.isEditingDisabled},"glow-track"]),border:"",height:"100%",onClick:e[0]||(e[0]=u=>l.handleCardClick("attendance",null)),onMousemove:l.handleMouseMove,onTouchmove:l.handleTouchMove},{default:i(()=>[n(Y,{class:"d-flex align-center"},{default:i(()=>[n(D,{class:"mr-2",color:"primary",icon:"mdi-account-group"}),e[1]||(e[1]=c(" 出勤统计 ",-1))]),_:1}),n(A,null,{default:i(()=>[r("div",ca,[e[2]||(e[2]=r("span",null,"应到/实到",-1)),r("span",fa,g(o.data.total-o.data.exclude.length)+"/"+g(o.data.total-o.data.absent.length-o.data.late.length-o.data.exclude.length),1)]),n(xe,{class:"mb-2"}),o.data.absent.length>0?(f(),y("div",ma,[r("div",ha,"请假 ("+g(o.data.absent.length)+")",1),r("div",va,[(f(!0),y(N,null,M(o.data.absent,u=>(f(),w(B,{key:u,color:"error",size:"x-small",variant:"flat"},{default:i(()=>[c(g(u),1)]),_:2},1024))),128))])])):x("",!0),o.data.late.length>0?(f(),y("div",ga,[r("div",pa,"迟到 ("+g(o.data.late.length)+")",1),r("div",ya,[(f(!0),y(N,null,M(o.data.late,u=>(f(),w(B,{key:u,color:"warning",size:"x-small",variant:"flat"},{default:i(()=>[c(g(u),1)]),_:2},1024))),128))])])):x("",!0),o.data.exclude.length>0?(f(),y("div",ka,[r("div",ba,"不参与 ("+g(o.data.exclude.length)+")",1),r("div",wa,[(f(!0),y(N,null,M(o.data.exclude,u=>(f(),w(B,{key:u,color:"grey",size:"x-small",variant:"flat"},{default:i(()=>[c(g(u),1)]),_:2},1024))),128))])])):x("",!0),o.data.absent.length===0&&o.data.late.length===0&&o.data.exclude.length===0?(f(),y("div",xa," 全勤 ")):x("",!0)]),_:2},1024)]),_:2},1032,["class","onMousemove","onTouchmove"])):o.type==="custom"?(f(),w(_,{key:1,class:we([{"glow-highlight":a.highlightedCards[o.key],"cursor-not-allowed":a.isEditingDisabled,"cursor-pointer":!a.isEditingDisabled},"glow-track"]),border:"",height:"100%",onClick:u=>l.handleCardClick("dialog",o.key),onMousemove:l.handleMouseMove,onTouchmove:l.handleTouchMove},{default:i(()=>[n(Y,{class:"text-primary"},{default:i(()=>[n(D,{class:"mr-2",icon:"mdi-card-text-outline",size:"small"}),c(" "+g(o.name),1)]),_:2},1024),n(A,{style:Ie(a.contentStyle)},{default:i(()=>[c(g(o.content),1)]),_:2},1032,["style"])]),_:2},1032,["class","onClick","onMousemove","onTouchmove"])):(f(),w(_,{key:2,class:we([{"glow-highlight":a.highlightedCards[o.key],"cursor-not-allowed":a.isEditingDisabled,"cursor-pointer":!a.isEditingDisabled},"glow-track"]),border:"",height:"100%",onClick:u=>l.handleCardClick("dialog",o.key),onMousemove:l.handleMouseMove,onTouchmove:l.handleTouchMove},{default:i(()=>[n(Y,null,{default:i(()=>[c(g(o.name),1)]),_:2},1024),n(A,{style:Ie(a.contentStyle)},{default:i(()=>[n(Ke,null,{default:i(()=>[(f(!0),y(N,null,M(l.splitPoint(o.content),u=>(f(),w(Me,{key:u},{default:i(()=>[c(g(u),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["style"])]),_:2},1032,["class","onClick","onMousemove","onTouchmove"]))],4))),128))]),_:1})],512),r("div",Sa,[l.isMobile?(f(),y("div",Ca,[(f(!0),y(N,null,M(a.unusedSubjects,o=>(f(),w(B,{key:o.name,class:"ma-1",color:"primary",variant:"tonal",onClick:u=>l.handleCardClick("dialog",o.name)},{default:i(()=>[n(D,{start:"",size:"small"},{default:i(()=>[...e[3]||(e[3]=[c("mdi-plus",-1)])]),_:1}),c(" "+g(o.name),1)]),_:2},1032,["onClick"]))),128))])):a.emptySubjectDisplay==="button"?(f(),w(wt,{key:1,divided:"",variant:"tonal"},{default:i(()=>[(f(!0),y(N,null,M(a.unusedSubjects,o=>(f(),w(k,{key:o.name,onClick:u=>l.handleCardClick("dialog",o.name)},{default:i(()=>[n(D,{start:""},{default:i(()=>[...e[4]||(e[4]=[c(" mdi-plus",-1)])]),_:1}),c(" "+g(o.name),1)]),_:2},1032,["onClick"]))),128))]),_:1})):(f(),y("div",Da,[n(Ye,{name:"v-list"},{default:i(()=>[(f(!0),y(N,null,M(a.unusedSubjects,o=>(f(),w(_,{key:o.name,border:"",class:"empty-subject-card",onClick:u=>l.handleCardClick("dialog",o.name)},{default:i(()=>[n(Y,{class:"text-subtitle-1"},{default:i(()=>[c(g(o.name),1)]),_:2},1024),n(A,{class:"text-center"},{default:i(()=>[n(D,{color:"grey",size:"small"},{default:i(()=>[...e[5]||(e[5]=[c(" mdi-plus",-1)])]),_:1}),e[6]||(e[6]=r("div",{class:"text-caption text-grey"},"点击添加作业",-1))]),_:1})]),_:2},1032,["onClick"]))),128))]),_:1})]))])],64)}const Lt=te(da,[["render",_a],["__scopeId","data-v-1f29e910"]]),Ta=ln({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...Rn({filterKeys:["title"]}),...Ln(),...yn(Dn({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"])},"VAutocomplete"),Va=an()({name:"VAutocomplete",props:Ta(),emits:{"update:focused":t=>!0,"update:search":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:a}=e;const{t:d}=on(),s=P(),l=Ee(!1),o=Ee(!0),u=Ee(!1),h=P(),m=P(),p=Ee(-1),I=Ee(null),{items:L,transformIn:oe,transformOut:$}=rn(t),{textColorClasses:Q,textColorStyles:ae}=dn(()=>{var S;return(S=s.value)==null?void 0:S.color}),j=We(t,"search",""),E=We(t,"modelValue",[],S=>oe(S===null?[null]:un(S)),S=>{const F=$(S);return t.multiple?F:F[0]??null}),T=q(()=>typeof t.counterValue=="function"?t.counterValue(E.value):typeof t.counterValue=="number"?t.counterValue:E.value.length),ve=Cn(t),{filteredItems:ye,getMatches:V}=Un(t,L,()=>I.value??(o.value?"":j.value)),b=q(()=>t.hideSelected&&I.value===null?ye.value.filter(S=>!E.value.some(F=>F.value===S.value)):ye.value),U=q(()=>!!(t.chips||a.chip)),le=q(()=>U.value||!!a.selection),W=q(()=>E.value.map(S=>S.props.value)),ne=q(()=>{var F;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&j.value===((F=b.value[0])==null?void 0:F.title))&&b.value.length>0&&!o.value&&!u.value}),G=q(()=>t.hideNoData&&!b.value.length||ve.isReadonly.value||ve.isDisabled.value),v=We(t,"menu"),R=q({get:()=>v.value,set:S=>{var F;v.value&&!S&&((F=h.value)!=null&&F.ΨopenChildren.size)||S&&G.value||(v.value=S)}}),{menuId:ue,ariaExpanded:Ne,ariaControls:Re,ariaLabel:Be}=Fn(t,R),me=P(),$t=Mn(me,s);function Ot(S){t.openOnClear&&(R.value=!0),j.value=""}function jt(){G.value||(R.value=!0)}function Kt(S){G.value||(l.value&&(S.preventDefault(),S.stopPropagation()),R.value=!R.value)}function Ht(S){var F;(ot(S)||S.key==="Backspace")&&((F=s.value)==null||F.focus())}function qt(S){var z,X,ce,ke,O;if(ve.isReadonly.value)return;const F=(z=s.value)==null?void 0:z.selectionStart,H=E.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(S.key)&&S.preventDefault(),["Enter","ArrowDown"].includes(S.key)&&(R.value=!0),["Escape"].includes(S.key)&&(R.value=!1),ne.value&&["Enter","Tab"].includes(S.key)&&!E.value.some(J=>{let{value:Z}=J;return Z===b.value[0].value})&&_e(b.value[0]),S.key==="ArrowDown"&&ne.value&&((X=me.value)==null||X.focus("next")),["Backspace","Delete"].includes(S.key)){if(!t.multiple&&le.value&&E.value.length>0&&!j.value)return _e(E.value[0],!1);if(~p.value){S.preventDefault();const J=p.value;_e(E.value[p.value],!1),p.value=J>=H-1?H-2:J}else S.key==="Backspace"&&!j.value&&(p.value=H-1);return}if(t.multiple)if(S.key==="ArrowLeft"){if(p.value<0&&F&&F>0)return;const J=p.value>-1?p.value-1:H-1;if(E.value[J])p.value=J;else{const Z=((ce=j.value)==null?void 0:ce.length)??null;p.value=-1,(ke=s.value)==null||ke.setSelectionRange(Z,Z)}}else if(S.key==="ArrowRight"){if(p.value<0)return;const J=p.value+1;E.value[J]?p.value=J:(p.value=-1,(O=s.value)==null||O.setSelectionRange(0,0))}else~p.value&&ot(S)&&(p.value=-1)}function Qt(S){if(rt(s.value,":autofill")||rt(s.value,":-webkit-autofill")){const F=L.value.find(H=>H.title===S.target.value);F&&_e(F)}}function Wt(){var S;t.eager&&((S=m.value)==null||S.calculateVisibleItems())}function Gt(){var S;l.value&&(o.value=!0,(S=s.value)==null||S.focus()),I.value=null}function Jt(S){l.value=!0,setTimeout(()=>{u.value=!0})}function Yt(S){u.value=!1}function Xt(S){(S==null||S===""&&!t.multiple&&!le.value)&&(E.value=[])}const Qe=Ee(!1);function _e(S){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!S||S.props.disabled))if(t.multiple){const H=E.value.findIndex(X=>(t.valueComparator||kn)(X.value,S.value)),z=F??!~H;if(~H){const X=z?[...E.value,S]:[...E.value];X.splice(H,1),E.value=X}else z&&(E.value=[...E.value,S]);t.clearOnSelect&&(j.value="")}else{const H=F!==!1;E.value=H?[S]:[],I.value=o.value?"":j.value??"",j.value=H&&!le.value?S.title:"",lt(()=>{R.value=!1,o.value=!0})}}return Se(l,(S,F)=>{var H;S!==F&&(S?(Qe.value=!0,j.value=t.multiple||le.value?"":String(((H=E.value.at(-1))==null?void 0:H.props.title)??""),o.value=!0,lt(()=>Qe.value=!1)):(!t.multiple&&j.value==null&&(E.value=[]),R.value=!1,!o.value&&j.value&&(I.value=j.value),j.value="",p.value=-1))}),Se(j,S=>{!l.value||Qe.value||(S&&(R.value=!0),o.value=!S)}),Se(R,S=>{if(!t.hideSelected&&S&&E.value.length&&o.value){const F=b.value.findIndex(H=>E.value.some(z=>H.value===z.value));cn&&window.requestAnimationFrame(()=>{var H;F>=0&&((H=m.value)==null||H.scrollToIndex(F))})}S&&(I.value=null)}),Se(L,(S,F)=>{R.value||l.value&&!F.length&&S.length&&(R.value=!0)}),fn(()=>{const S=!!(!t.hideNoData||b.value.length||a["prepend-item"]||a["append-item"]||a["no-data"]),F=E.value.length>0,H=De.filterProps(t);return n(De,he({ref:s},H,{modelValue:j.value,"onUpdate:modelValue":[z=>j.value=z,Xt],focused:l.value,"onUpdate:focused":z=>l.value=z,validationValue:E.externalValue,counterValue:T.value,dirty:F,onChange:Qt,class:["v-autocomplete",`v-autocomplete--${t.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":R.value,"v-autocomplete--chips":!!t.chips,"v-autocomplete--selection-slot":!!le.value,"v-autocomplete--selecting-index":p.value>-1},t.class],style:t.style,readonly:ve.isReadonly.value,placeholder:F?void 0:t.placeholder,"onClick:clear":Ot,"onMousedown:control":jt,onKeydown:qt,"aria-expanded":Ne.value,"aria-controls":Re.value}),{...a,default:()=>r(N,null,[n(Tt,he({id:ue.value,ref:h,modelValue:R.value,"onUpdate:modelValue":z=>R.value=z,activator:"parent",contentClass:"v-autocomplete__content",disabled:G.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:Wt,onAfterLeave:Gt},t.menuProps),{default:()=>[S&&n(Ke,he({ref:me,filterable:!0,selected:W.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:z=>z.preventDefault(),onKeydown:Ht,onFocusin:Jt,onFocusout:Yt,tabindex:"-1",selectable:!0,"aria-live":"polite",color:t.itemColor??t.color},$t,t.listProps),{default:()=>{var z,X,ce;return[(z=a["prepend-item"])==null?void 0:z.call(a),!b.value.length&&!t.hideNoData&&(((X=a["no-data"])==null?void 0:X.call(a))??n(Me,{key:"no-data",title:d(t.noDataText)},null)),n(Pn,{ref:m,renderless:!0,items:b.value,itemKey:"value"},{default:ke=>{var tt,nt,st;let{item:O,index:J,itemRef:Z}=ke;const et=he(O.props,{ref:Z,key:O.value,active:ne.value&&J===0?!0:void 0,onClick:()=>_e(O,null)});return O.type==="divider"?((tt=a.divider)==null?void 0:tt.call(a,{props:O.raw,index:J}))??n(xe,he(O.props,{key:`divider-${J}`}),null):O.type==="subheader"?((nt=a.subheader)==null?void 0:nt.call(a,{props:O.raw,index:J}))??n(hn,he(O.props,{key:`subheader-${J}`}),null):((st=a.item)==null?void 0:st.call(a,{item:O,index:J,props:et}))??n(Me,he(et,{role:"option"}),{prepend:$e=>{let{isSelected:Zt}=$e;return r(N,null,[t.multiple&&!t.hideSelected?n(Hn,{key:O.value,modelValue:Zt,ripple:!1,tabindex:"-1",onClick:en=>en.preventDefault()},null):void 0,O.props.prependAvatar&&n(je,{image:O.props.prependAvatar},null),O.props.prependIcon&&n(D,{icon:O.props.prependIcon},null)])},title:()=>{var $e;return o.value?O.title:zn("v-autocomplete",O.title,($e=V(O))==null?void 0:$e.title)}})}}),(ce=a["append-item"])==null?void 0:ce.call(a)]}})]}),E.value.map((z,X)=>{function ce(Z){Z.stopPropagation(),Z.preventDefault(),_e(z,!1)}const ke=he(B.filterProps(z.props),{"onClick:close":ce,onKeydown(Z){Z.key!=="Enter"&&Z.key!==" "||(Z.preventDefault(),Z.stopPropagation(),ce(Z))},onMousedown(Z){Z.preventDefault(),Z.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),O=U.value?!!a.chip:!!a.selection,J=O?vn(U.value?a.chip({item:z,index:X,props:ke}):a.selection({item:z,index:X})):void 0;if(!(O&&!J))return r("div",{key:z.value,class:we(["v-autocomplete__selection",X===p.value&&["v-autocomplete__selection--selected",Q.value]]),style:Ie(X===p.value?ae.value:{})},[U.value?a.chip?n(gn,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:z.title}}},{default:()=>[J]}):n(B,he({key:"chip",closable:t.closableChips,size:"small",text:z.title,disabled:z.props.disabled},ke),null):J??r("span",{class:"v-autocomplete__selection-text"},[z.title,t.multiple&&X{var V;return((V=p.value)==null?void 0:V.deviceType)==="student"}),L=q(()=>{var V;return((V=p.value)==null?void 0:V.isReadOnly)===!0}),oe=q(()=>{var V;return((V=p.value)==null?void 0:V.note)||"设置名称"}),$=q(()=>!!Q.value),Q=q(()=>C("server.kvToken")),ae=q(()=>C("server.provider")),j=q(()=>ae.value==="kv-server"||ae.value==="classworkscloud"),E=async()=>{if(!(!j.value||!Q.value))try{const V=C("server.domain");if(!V)return;const b=await Ce.get(`${V}/kv/_token`,{headers:{Authorization:`Bearer ${Q.value}`}});if(p.value=b.data,p.value.deviceType!=="student")return;u.value=p.value.note||"";const le=(await Ce.get(`${V}/kv/classworks-list-main`,{headers:{Authorization:`Bearer ${Q.value}`}})).data.value||[];if(o.value=Array.isArray(le)?le:[],o.value.length===0)return;const W=p.value.note||"",ne=o.value.some(G=>G.name===W);(!W||!ne)&&(s.value=!0,l.value="")}catch(V){console.error("检查学生姓名状态失败:",V)}},T=async()=>{var V,b,U,le;if(!(!l.value||h.value)){m.value="",h.value=!0;try{const W=C("server.domain"),ne=Q.value;(await Ce.post(`${W}/apps/tokens/${ne}/set-student-name`,{name:l.value})).data.success&&(u.value=l.value,s.value=!1,await E(),d("token-info-updated"))}catch(W){const ne=(V=W==null?void 0:W.response)==null?void 0:V.status;ne===400?m.value="该名称不在学生列表中,请选择正确的姓名":ne===403?m.value="只有学生类型的 Token 可以设置姓名":ne===404?m.value="设备未设置学生列表或 Token 不存在":m.value=((le=(U=(b=W==null?void 0:W.response)==null?void 0:b.data)==null?void 0:U.error)==null?void 0:le.message)||(W==null?void 0:W.message)||"设置失败,请稍后重试"}finally{h.value=!1}}},ve=()=>{s.value=!1},ye=async()=>{if(console.log("StudentNameManager.openDialog called"),console.log("isStudentToken:",I.value),console.log("studentList.length:",o.value.length),console.log("currentStudentName:",u.value),!I.value){console.log("Not a student token, cannot open dialog");return}o.value=await fe.loadData("classworks-list-main"),o.value.length===0?(console.log("Student list is empty, trying to load..."),E().then(()=>{o.value.length>0?(l.value=u.value,s.value=!0):console.warn("Student list is still empty after reload")})):(l.value=u.value,s.value=!0,console.log("Dialog opened, showDialog:",s.value))};return Se(Q,()=>{E()}),xt(()=>{E()}),Se(p,()=>{d("token-info-updated")},{deep:!0}),St(()=>{E()}),e({checkStudentNameStatus:E,openDialog:ye,currentStudentName:u,isStudentToken:I,isReadOnly:L,displayName:oe,hasToken:$,tokenInfo:p}),(V,b)=>(f(),y(N,null,[n(ie,{modelValue:s.value,"onUpdate:modelValue":b[1]||(b[1]=U=>s.value=U),"max-width":"500",persistent:""},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,null,{default:i(()=>[...b[2]||(b[2]=[c("设置学生姓名",-1)])]),_:1}),n(A,null,{default:i(()=>[b[3]||(b[3]=r("div",{class:"mb-2"}," 请从列表中选择您的姓名: ",-1)),n(Va,{modelValue:l.value,"onUpdate:modelValue":b[0]||(b[0]=U=>l.value=U),items:o.value,clearable:"","hide-details":"","item-title":"name","item-value":"name",label:"学生姓名",placeholder:"选择您的姓名"},null,8,["modelValue","items"]),o.value.length>0?(f(),y("div",Ia," 共 "+g(o.value.length)+" 位学生 ",1)):x("",!0),m.value?(f(),w(Le,{key:1,class:"mt-3",type:"error",variant:"tonal"},{default:i(()=>[c(g(m.value),1)]),_:1})):x("",!0)]),_:1}),n(de,null,{default:i(()=>[n(k,{variant:"text",onClick:ve},{default:i(()=>[...b[4]||(b[4]=[c(" 稍后设置 ",-1)])]),_:1}),n(K),n(k,{disabled:!l.value||h.value,loading:h.value,color:"primary",onClick:T},{default:i(()=>[...b[5]||(b[5]=[c(" 确认 ",-1)])]),_:1},8,["disabled","loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),bn(V.$slots,"header-display",{isStudent:I.value,openDialog:ye,studentName:u.value},void 0)],64))}},Rt=te(Na,[["__scopeId","data-v-49cb0f5f"]]),Ea={class:"text-center mb-6"},Aa={class:"text-body-2"},Ua={class:"form-section"},Fa={__name:"DeviceAuthDialog",props:{showCancel:{type:Boolean,default:!1},preconfig:{type:Object,default:null}},emits:["success","cancel"],setup(t,{expose:e,emit:a}){const d=t,s=a,l=P({namespace:"",password:""}),o=P(!1),u=P("");Se(()=>d.preconfig,m=>{m&&(console.log("应用预配置数据:",m),l.value.namespace=m.namespace||"",l.value.password=m.password||"",m.autoExecute&&m.namespace?(console.log("检测到自动执行标志且有命名空间,自动执行认证"),setTimeout(()=>{h()},300)):m.namespace&&console.log("预配置数据已填入,等待手动认证"))},{immediate:!0,deep:!0});const h=async()=>{var m,p,I,L,oe;if(!(!l.value.namespace||o.value)){u.value="",o.value=!0;try{const $=C("server.domain");if(!$)throw new Error("未配置服务器域名");const Q=await Ce.post(`${$}/apps/auth/token`,{namespace:l.value.namespace,password:l.value.password||void 0,appId:"d158067f53627d2b98babe8bffd2fd7d"});if(!Q.data.success)throw new Error("设备验证失败");const ae=Q.data;pe("server.kvToken",ae.token),(m=ae.device)!=null&&m.uuid&&pe("device.uuid",ae.device.uuid),s("success",ae)}catch($){const Q=(p=$==null?void 0:$.response)==null?void 0:p.status;Q===401||Q===403?u.value="密码错误或无权限访问":Q===404?u.value="设备不存在,请检查 namespace 是否正确":u.value=((oe=(L=(I=$==null?void 0:$.response)==null?void 0:I.data)==null?void 0:L.error)==null?void 0:oe.message)||($==null?void 0:$.message)||"认证失败,请稍后重试"}finally{o.value=!1}}};return e({reset:()=>{l.value={namespace:"",password:""},u.value=""}}),(m,p)=>(f(),w(_,{class:"auth-card"},{default:i(()=>[n(A,{class:"pa-8"},{default:i(()=>[r("div",Ea,[n(D,{class:"mb-4",color:"success",size:"80"},{default:i(()=>[...p[4]||(p[4]=[c(" mdi-account-key ",-1)])]),_:1}),p[5]||(p[5]=r("h2",{class:"text-h4 mb-3"}," 设备认证 ",-1)),p[6]||(p[6]=r("p",{class:"text-body-1 text-medium-emphasis"}," 输入你在 Classworks KV 获取的认证信息 ",-1))]),n(_,{class:"pa-4 mb-6",color:"info",variant:"tonal"},{default:i(()=>[r("div",Aa,[n(D,{class:"mr-2",size:"20"},{default:i(()=>[...p[7]||(p[7]=[c(" mdi-information ",-1)])]),_:1}),p[8]||(p[8]=c(" 对于已有UUID的用户,您应当使用UUID与您的密码登录。 ",-1))])]),_:1}),r("div",Ua,[n(De,{modelValue:l.value.namespace,"onUpdate:modelValue":p[0]||(p[0]=I=>l.value.namespace=I),class:"mb-4","hide-details":"auto",label:"命名空间","prepend-inner-icon":"mdi-identifier",variant:"outlined"},null,8,["modelValue"]),n(De,{modelValue:l.value.password,"onUpdate:modelValue":p[1]||(p[1]=I=>l.value.password=I),label:"认证码","prepend-inner-icon":"mdi-lock-outline",type:"text",variant:"outlined"},null,8,["modelValue"]),u.value?(f(),w(Le,{key:0,class:"mt-4",closable:"",type:"error",variant:"tonal","onClick:close":p[2]||(p[2]=I=>u.value="")},{default:i(()=>[c(g(u.value),1)]),_:1})):x("",!0)])]),_:1}),n(de,{class:"pa-6 pt-0"},{default:i(()=>[t.showCancel?(f(),w(k,{key:0,size:"large",variant:"text",onClick:p[3]||(p[3]=I=>m.$emit("cancel"))},{default:i(()=>[...p[9]||(p[9]=[c(" 取消 ",-1)])]),_:1})):x("",!0),n(K),n(k,{disabled:!l.value.namespace||o.value,loading:o.value,class:"px-8",color:"primary",size:"x-large",variant:"elevated",onClick:h},{default:i(()=>[n(D,{size:"24",start:""},{default:i(()=>[...p[10]||(p[10]=[c(" mdi-login ",-1)])]),_:1}),p[11]||(p[11]=r("span",{class:"text-h6"},"认证并登录",-1))]),_:1},8,["disabled","loading"])]),_:1})]),_:1}))}},Ma=te(Fa,[["__scopeId","data-v-9e8d02e4"]]),Pa={__name:"TokenInputDialog",props:{showCancel:{type:Boolean,default:!1}},emits:["success","cancel"],setup(t,{expose:e,emit:a}){const d=a,s=P(""),l=P(!1),o=P(""),u=async()=>{var h,m,p;if(!(!s.value||l.value)){o.value="",l.value=!0;try{const I=C("server.domain");if(!I)throw new Error("未配置服务器域名");await Ce.get(`${I}/kv/_info`,{headers:{Accept:"application/json","x-app-token":s.value}}),pe("server.kvToken",s.value),d("success")}catch(I){const L=(h=I==null?void 0:I.response)==null?void 0:h.status;L===401||L===403?o.value="Token 无效或无权限,请确认后重试":L===404?o.value="命名空间不存在或服务器未就绪":o.value=((p=(m=I==null?void 0:I.response)==null?void 0:m.data)==null?void 0:p.message)||(I==null?void 0:I.message)||"验证失败,请稍后重试"}finally{l.value=!1}}};return e({reset:()=>{s.value="",o.value=""}}),(h,m)=>(f(),w(_,null,{default:i(()=>[n(Y,null,{default:i(()=>[...m[2]||(m[2]=[c("输入授权 Token",-1)])]),_:1}),n(A,null,{default:i(()=>[n(De,{modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=p=>s.value=p),clearable:"",density:"comfortable","hide-details":"auto",label:"KV 授权 Token",placeholder:"粘贴从授权页面获取的 Token",variant:"outlined"},null,8,["modelValue"]),o.value?(f(),w(Le,{key:0,class:"mt-3",type:"error",variant:"tonal"},{default:i(()=>[c(g(o.value),1)]),_:1})):x("",!0)]),_:1}),n(de,null,{default:i(()=>[n(K),t.showCancel?(f(),w(k,{key:0,variant:"text",onClick:m[1]||(m[1]=p=>h.$emit("cancel"))},{default:i(()=>[...m[3]||(m[3]=[c(" 取消 ",-1)])]),_:1})):x("",!0),n(k,{disabled:!s.value||l.value,loading:l.value,color:"primary",onClick:u},{default:i(()=>[...m[4]||(m[4]=[c(" 保存 Token ",-1)])]),_:1},8,["disabled","loading"])]),_:1})]),_:1}))}},za={__name:"AlternativeCodeDialog",props:{showCancel:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(t,{expose:e,emit:a}){const d=a,s=P(""),l=()=>{s.value&&d("submit",s.value)};return e({reset:()=>{s.value=""}}),(o,u)=>(f(),w(_,null,{default:i(()=>[n(Y,null,{default:i(()=>[...u[2]||(u[2]=[c("输入替代代码",-1)])]),_:1}),n(A,null,{default:i(()=>[n(ze,{modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=h=>s.value=h),density:"comfortable","hide-details":"auto",label:"替代代码",placeholder:"请输入替代代码",rows:"5",variant:"outlined"},null,8,["modelValue"]),n(Le,{class:"mt-3",type:"info",variant:"tonal"},{default:i(()=>[...u[3]||(u[3]=[c(" 替代代码功能暂未实现,敬请期待 ",-1)])]),_:1})]),_:1}),n(de,null,{default:i(()=>[n(K),t.showCancel?(f(),w(k,{key:0,variant:"text",onClick:u[1]||(u[1]=h=>o.$emit("cancel"))},{default:i(()=>[...u[4]||(u[4]=[c(" 取消 ",-1)])]),_:1})):x("",!0),n(k,{disabled:!s.value,color:"primary",onClick:l},{default:i(()=>[...u[5]||(u[5]=[c(" 提交 ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1}))}},ee=[];for(let t=0;t<256;++t)ee.push((t+256).toString(16).slice(1));function La(t,e=0){return(ee[t[e+0]]+ee[t[e+1]]+ee[t[e+2]]+ee[t[e+3]]+"-"+ee[t[e+4]]+ee[t[e+5]]+"-"+ee[t[e+6]]+ee[t[e+7]]+"-"+ee[t[e+8]]+ee[t[e+9]]+"-"+ee[t[e+10]]+ee[t[e+11]]+ee[t[e+12]]+ee[t[e+13]]+ee[t[e+14]]+ee[t[e+15]]).toLowerCase()}let Ge;const Ra=new Uint8Array(16);function Ba(){if(!Ge){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ge=crypto.getRandomValues.bind(crypto)}return Ge(Ra)}const $a=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),kt={randomUUID:$a};function Oa(t,e,a){var s;t=t||{};const d=t.random??((s=t.rng)==null?void 0:s.call(t))??Ba();if(d.length<16)throw new Error("Random bytes length must be >= 16");return d[6]=d[6]&15|64,d[8]=d[8]&63|128,La(d)}function ja(t,e,a){return kt.randomUUID&&!t?kt.randomUUID():Oa(t)}const Ka={class:"step-content"},Ha={class:"text-center mb-6"},qa={class:"step-content"},Qa={class:"relationship-diagram"},Wa={class:"diagram-item"},Ga={class:"text-center"},Ja={class:"diagram-description mt-3"},Ya={class:"diagram-connector"},Xa={class:"diagram-item"},Za={class:"text-center"},el={class:"diagram-description mt-3"},tl={class:"step-content"},nl={class:"button-group"},sl={class:"d-flex flex-column align-center py-2"},il={class:"d-flex flex-column align-center py-2"},al={class:"step-content"},ll={class:"text-center mb-6"},ol={class:"step-content"},rl={class:"text-center mb-6"},dl={class:"d-flex flex-column flex-sm-row align-center"},ul={class:"flex-grow-1"},cl={class:"text-h6 font-weight-bold"},fl={class:"text-h5 mb-6"},ml={class:"text-subtitle-2"},hl={class:"d-flex align-center"},vl={class:"d-flex align-center"},gl={class:"step-content"},pl={class:"text-center mb-6"},yl={class:"d-flex align-center mb-3"},kl={class:"text-h6 font-weight-medium"},bl={key:0,class:"text-body-2 mb-2"},wl={class:"mb-2"},xl={class:"device-code"},Sl={key:1,class:"text-body-2 text-error"},Cl={class:"log-box"},Dl={key:0,class:"text-caption text-medium-emphasis"},_l={class:"d-flex flex-wrap gap-2 mt-4"},Oe=5,Tl={__name:"FirstTimeGuide",emits:["close","success"],setup(t,{emit:e}){const a=e,d=C("server.authDomain"),s=P(1),l=P(""),o=P("idle"),u=P(""),h=P(null),m=P(null),p=P([]),I=P({1:!1,2:!1,3:!1,4:!1}),L=()=>{s.value{s.value>1&&s.value--},$=G=>{l.value=G,L()},Q=()=>{a("close")},ae=()=>{window.open(d,"_blank")},j=()=>{s.value=5},E=q(()=>Object.values(I.value).filter(Boolean).length/4*100),T=q(()=>o.value==="success"?"success":o.value==="error"?"error":"primary"),ve=q(()=>o.value==="success"?"mdi-check-circle":o.value==="error"?"mdi-alert-circle":o.value==="registering"?"mdi-progress-clock":"mdi-rocket-launch"),ye=q(()=>o.value==="success"?"完成!设备已创建":o.value==="error"?"创建失败":o.value==="registering"?"正在执行…":"准备开始"),V=G=>{const v=new Date,R=String(v.getHours()).padStart(2,"0"),ue=String(v.getMinutes()).padStart(2,"0"),Ne=String(v.getSeconds()).padStart(2,"0");p.value.push({time:`${R}:${ue}:${Ne}`,message:G})},b=()=>"Classworks",U=async()=>{var G,v,R;if(o.value!=="registering"){o.value="registering",u.value="",p.value=[],I.value={1:!1,2:!1,3:!1,4:!1};try{V("正在生成设备信息…");const ue=ja(),Ne=b(),Re=C("server.domain");I.value[1]=!0,V("向服务器注册设备…");const Be=await Ce.post(`${Re}/devices`,{uuid:ue,deviceName:Ne});I.value[2]=!0,h.value={uuid:ue,deviceName:Ne,createdAt:new Date().toISOString(),registered:!0},localStorage.setItem("Classworks_progressive_device",JSON.stringify(h.value)),V("获取访问令牌…");try{const me=await Ce.post(`${Re}/apps/auth/token`,{namespace:ue,password:"",appId:"d158067f53627d2b98babe8bffd2fd7d"});me.data&&me.data.token?(m.value=me.data,pe("server.kvToken",me.data.token),(G=me.data.device)!=null&&G.uuid&&pe("device.uuid",me.data.device.uuid),V("已获取 Token 并写入配置")):V("未返回 Token,您可以稍后在授权页完成配置")}catch(me){console.warn("自动获取 Token 失败:",me),V("自动获取 Token 失败,可在授权页手动完成")}I.value[3]=!0,V("完成!您可以应用令牌或前往授权页面继续配置"),I.value[4]=!0,o.value="success"}catch(ue){console.error("设备注册失败:",ue),u.value=((R=(v=ue.response)==null?void 0:v.data)==null?void 0:R.message)||ue.message||"网络连接失败",V("失败:"+u.value),o.value="error"}}},le=()=>{o.value="idle",u.value="",p.value=[],I.value={1:!1,2:!1,3:!1,4:!1}},W=()=>{const G=h.value;if(!(G!=null&&G.uuid))return;const R=`${C("server.authDomain")}/?uuid=${encodeURIComponent(G.uuid)}&tolinktoaccount=true`;window.open(R,"_blank")},ne=()=>{m.value&&a("success",m.value),a("close")};return(G,v)=>(f(),w(_,{class:"guide-card"},{default:i(()=>[n(dt,{"model-value":s.value/Oe*100,color:"primary",height:"6"},null,8,["model-value"]),n(A,{class:"pa-8"},{default:i(()=>[re(r("div",Ka,[r("div",Ha,[n(D,{class:"mb-4",color:"primary",size:"80"},{default:i(()=>[...v[2]||(v[2]=[c(" mdi-hand-wave ",-1)])]),_:1}),v[3]||(v[3]=r("h2",{class:"text-h4 mb-3"}," 欢迎使用 Classworks ",-1)),v[4]||(v[4]=r("p",{class:"text-body-1 text-medium-emphasis"}," 适用于班级大屏的作业板小工具 ",-1))])],512),[[Te,s.value===1]]),re(r("div",qa,[v[17]||(v[17]=r("h3",{class:"text-h5 mb-6 text-center"}," Classworks 和 Classworks KV 的关系 ",-1)),n(_,{class:"pa-6 mb-6",color:"primary",variant:"tonal"},{default:i(()=>[r("div",Qa,[r("div",Wa,[n(_,{class:"pa-4",color:"blue-darken-1",elevation:"8"},{default:i(()=>[r("div",Ga,[n(D,{color:"white",size:"60"},{default:i(()=>[...v[5]||(v[5]=[c(" mdi-laptop ",-1)])]),_:1}),v[6]||(v[6]=r("h4",{class:"text-h6 text-white mt-2"}," Classworks ",-1)),v[7]||(v[7]=r("p",{class:"text-caption text-white mt-1"}," 作业板应用 ",-1))])]),_:1}),r("div",Ja,[n(B,{class:"mb-2",color:"blue",size:"small",variant:"flat"},{default:i(()=>[...v[8]||(v[8]=[c(" 前端应用 ",-1)])]),_:1}),v[9]||(v[9]=r("div",{class:"text-body-2"},[c(" • 显示作业内容"),r("br"),c(" • 管理班级信息"),r("br"),c(" • 提供用户界面 ")],-1))])]),r("div",Ya,[n(D,{color:"primary",size:"40"},{default:i(()=>[...v[10]||(v[10]=[c(" mdi-swap-horizontal ",-1)])]),_:1}),v[11]||(v[11]=r("div",{class:"text-caption font-weight-bold mt-2"}," 数据同步 ",-1))]),r("div",Xa,[n(_,{class:"pa-4",color:"green-darken-1",elevation:"8"},{default:i(()=>[r("div",Za,[n(D,{color:"white",size:"60"},{default:i(()=>[...v[12]||(v[12]=[c(" mdi-cloud-sync ",-1)])]),_:1}),v[13]||(v[13]=r("h4",{class:"text-h6 text-white mt-2"}," Classworks KV ",-1)),v[14]||(v[14]=r("p",{class:"text-caption text-white mt-1"}," 云端数据库 ",-1))])]),_:1}),r("div",el,[n(B,{class:"mb-2",color:"green",size:"small",variant:"flat"},{default:i(()=>[...v[15]||(v[15]=[c(" 后端服务 ",-1)])]),_:1}),v[16]||(v[16]=r("div",{class:"text-body-2"},[c(" • 存储作业数据"),r("br"),c(" • 多设备同步"),r("br"),c(" • 权限管理 ")],-1))])])])]),_:1})],512),[[Te,s.value===2]]),re(r("div",tl,[v[25]||(v[25]=r("h3",{class:"text-h5 mb-6 text-center"}," 你需要在多个设备上查看作业吗? ",-1)),n(_,{class:"mb-6 pa-4",color:"info",variant:"tonal"},{default:i(()=>[...v[18]||(v[18]=[r("div",{class:"text-body-2"}," 比如:在家里电脑、手机上查看,或者多个教室设备共享数据 ",-1)])]),_:1}),r("div",nl,[n(k,{block:"",class:"mb-4 py-6",color:"primary",size:"x-large",variant:"elevated",onClick:v[0]||(v[0]=R=>$("cloud"))},{default:i(()=>[r("div",sl,[n(D,{class:"mb-2",size:"40"},{default:i(()=>[...v[19]||(v[19]=[c(" mdi-cloud-check ",-1)])]),_:1}),v[20]||(v[20]=r("span",{class:"text-h6"},"需要,使用云同步",-1)),v[21]||(v[21]=r("span",{class:"text-caption mt-1"},"多设备访问",-1))])]),_:1}),n(k,{block:"",class:"py-6",size:"x-large",variant:"outlined",onClick:v[1]||(v[1]=R=>$("local"))},{default:i(()=>[r("div",il,[n(D,{class:"mb-2",size:"40"},{default:i(()=>[...v[22]||(v[22]=[c(" mdi-laptop ",-1)])]),_:1}),v[23]||(v[23]=r("span",{class:"text-h6"},"不需要,只用这台设备",-1)),v[24]||(v[24]=r("span",{class:"text-caption mt-1"},"本地存储",-1))])]),_:1})])],512),[[Te,s.value===3]]),re(r("div",al,[r("div",ll,[n(D,{class:"mb-4",color:"success",size:"80"},{default:i(()=>[...v[26]||(v[26]=[c(" mdi-check-circle ",-1)])]),_:1}),v[28]||(v[28]=r("h3",{class:"text-h5 mb-4"}," 您可以使用本地模式 ",-1)),n(_,{class:"pa-4 text-left",variant:"tonal"},{default:i(()=>[...v[27]||(v[27]=[r("div",{class:"text-body-1 mb-2"}," 此数据将存储在您的浏览器中,如果您的浏览器不支持IndexedDB,可能会出现问题。如果您经常清除浏览器数据,请谨慎使用本地模式。 ",-1),r("div",{class:"text-body-1 mb-2"}," 在刚才地方点击使用本地模式的按钮使用。 ",-1)])]),_:1})])],512),[[Te,s.value===4&&l.value==="local"]]),re(r("div",ol,[r("div",rl,[n(D,{class:"mb-4",color:"primary",size:"80"},{default:i(()=>[...v[29]||(v[29]=[c(" mdi-cloud-cog ",-1)])]),_:1}),v[30]||(v[30]=r("h3",{class:"text-h5 mb-4"}," 需要先设置云端账号 ",-1))]),n(_,{class:"pa-6 mb-6",variant:"tonal"},{default:i(()=>[r("div",dl,[r("div",ul,[v[32]||(v[32]=r("h4",{class:"text-h6 font-weight-bold mb-2"}," 自动注册设备 ",-1)),v[33]||(v[33]=r("p",{class:"text-body-2 mb-3 text-medium-emphasis"}," 通过引导式流程自动创建设备、获取令牌并完成初始化。适合首次体验或快速部署多终端。 ",-1)),n(k,{color:"primary","prepend-icon":"mdi-flash",size:"large",variant:"elevated",onClick:j},{default:i(()=>[...v[31]||(v[31]=[c(" 自动注册 ",-1)])]),_:1})])])]),_:1}),v[41]||(v[41]=r("div",{class:"mb-6"}," 也可以手动前往 Classworks KV 控制台获取认证信息: ",-1)),n(_,{color:Ae(d)=="https://kv.houlang.cloud"?"primary":"error",variant:Ae(d)=="https://kv.houlang.cloud"?"elevated":"outlined",class:"pa-6 mb-6",onClick:ae},{default:i(()=>[n(D,{class:"mb-3",size:"48"},{default:i(()=>[...v[34]||(v[34]=[c(" mdi-open-in-new ",-1)])]),_:1}),r("h4",cl," 请访问 "+g(Ae(d)=="https://kv.houlang.cloud"?"Classworks KV":"自定义的 Classworks KV 实例 ")+" 控制台 ",1),r("div",fl,g(Ae(d)),1),r("h6",ml,g(Ae(d)=="https://kv.houlang.cloud"?"此实例由 Classworks KV 官方提供":"此链接由您的实例、预配代码或管理员管理,当前可能不是 Classworks KV 官方的实例地址。"),1)]),_:1},8,["color","variant"]),n(qn,{class:"mt-6",variant:"accordion"},{default:i(()=>[n(gt,null,{default:i(()=>[n(pt,null,{default:i(()=>[r("div",hl,[n(D,{class:"mr-3",color:"warning"},{default:i(()=>[...v[35]||(v[35]=[c(" mdi-help-circle ",-1)])]),_:1}),v[36]||(v[36]=r("span",{class:"text-subtitle-1 font-weight-medium"},"我以前已经使用过 Classworks KV?",-1))])]),_:1}),n(yt,null,{default:i(()=>[n(_,{class:"pa-4",color:"success",variant:"tonal"},{default:i(()=>[...v[37]||(v[37]=[r("div",{class:"text-body-2 mb-2"},[c(" 如果您之前已经使用过 Classworks KV,可以直接使用您的 "),r("strong",null,"UUID(命名空间)"),c(" 和 "),r("strong",null,"设置的密码"),c(" 进行认证。 ")],-1),r("div",{class:"text-body-2"},' 返回上一页,点击"已注册"按钮,输入您的认证信息即可登录。 ',-1)])]),_:1})]),_:1})]),_:1}),n(gt,null,{default:i(()=>[n(pt,null,{default:i(()=>[r("div",vl,[n(D,{class:"mr-3",color:"info"},{default:i(()=>[...v[38]||(v[38]=[c(" mdi-help-circle ",-1)])]),_:1}),v[39]||(v[39]=r("span",{class:"text-subtitle-1 font-weight-medium"},"我如何配置不同类型的设备?",-1))])]),_:1}),n(yt,null,{default:i(()=>[n(_,{class:"pa-4",color:"info",variant:"tonal"},{default:i(()=>[...v[40]||(v[40]=[r("div",{class:"text-body-2 mb-2"},[c(" 不同的密码对应不同的设备类型,这将由 "),r("strong",null,"管理员管理"),c("。 ")],-1),r("div",{class:"text-body-2 mb-2"}," 例如: ",-1),r("ul",{class:"text-body-2 ml-4"},[r("li",{class:"mb-1"}," 班级大屏使用一个密码 "),r("li",{class:"mb-1"}," 教师设备使用另一个密码 "),r("li",null,"学生设备使用不同的密码")],-1),r("div",{class:"text-body-2 mt-3"}," 请联系您的管理员获取对应设备类型的密码。 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1})],512),[[Te,s.value===4&&l.value==="cloud"]]),re(r("div",gl,[r("div",pl,[n(je,{class:"mb-4",color:"primary",size:"80",variant:"tonal"},{default:i(()=>[n(D,{size:"48"},{default:i(()=>[...v[42]||(v[42]=[c(" mdi-rocket-launch ",-1)])]),_:1})]),_:1}),v[43]||(v[43]=r("h3",{class:"text-h5 font-weight-bold mb-2"}," 渐进式注册 ",-1)),v[44]||(v[44]=r("p",{class:"text-body-2 text-medium-emphasis"}," 您可以暂时不配置 Classworks KV ",-1))]),n(dt,{"model-value":E.value,class:"mb-6",color:"primary",height:"8",rounded:""},null,8,["model-value"]),n(ge,null,{default:i(()=>[n(se,{cols:"12"},{default:i(()=>[n(_,{color:T.value,variant:"tonal"},{default:i(()=>[n(Fe,null,{default:i(()=>[r("div",yl,[n(D,{color:T.value,class:"mr-2",size:"32"},{default:i(()=>[c(g(ve.value),1)]),_:1},8,["color"]),r("div",kl,g(ye.value),1)]),h.value?(f(),y("div",bl,[r("div",wl,[v[45]||(v[45]=r("strong",null,"设备名称:",-1)),c(g(h.value.deviceName),1)]),r("div",null,[v[46]||(v[46]=r("strong",null,"设备 UUID:",-1)),r("code",xl,g(h.value.uuid),1)])])):x("",!0),o.value==="error"?(f(),y("div",Sl,g(u.value),1)):x("",!0)]),_:1})]),_:1},8,["color"])]),_:1}),n(se,{cols:"12"},{default:i(()=>[n(_,{variant:"outlined"},{default:i(()=>[n(Fe,null,{default:i(()=>[v[47]||(v[47]=r("div",{class:"text-subtitle-2 font-weight-medium mb-3"}," 过程日志 ",-1)),r("div",Cl,[(f(!0),y(N,null,M(p.value,(R,ue)=>(f(),y("div",{key:ue,class:"text-caption log-line"},g(R.time)+" · "+g(R.message),1))),128)),p.value.length?x("",!0):(f(),y("div",Dl," 等待开始… "))])]),_:1})]),_:1})]),_:1})]),_:1}),r("div",_l,[o.value==="idle"?(f(),w(k,{key:0,color:"primary","prepend-icon":"mdi-play",size:"large",onClick:U},{default:i(()=>[...v[48]||(v[48]=[c(" 开始创建 ",-1)])]),_:1})):x("",!0),o.value==="error"?(f(),w(k,{key:1,color:"error","prepend-icon":"mdi-refresh",variant:"outlined",onClick:le},{default:i(()=>[...v[49]||(v[49]=[c(" 重试 ",-1)])]),_:1})):x("",!0),o.value==="registering"?(f(),w(k,{key:2,loading:!0,color:"primary","prepend-icon":"mdi-progress-clock",variant:"tonal"},{default:i(()=>[...v[50]||(v[50]=[c(" 正在执行… ",-1)])]),_:1})):x("",!0),o.value==="success"?(f(),w(k,{key:3,color:"success","prepend-icon":"mdi-check-circle",size:"large",variant:"elevated",onClick:ne},{default:i(()=>[...v[51]||(v[51]=[c(" 应用令牌并关闭 ",-1)])]),_:1})):x("",!0),o.value==="success"?(f(),w(k,{key:4,color:"primary","prepend-icon":"mdi-open-in-new",size:"large",variant:"outlined",onClick:W},{default:i(()=>[...v[52]||(v[52]=[c(" 前往绑定账户 ",-1)])]),_:1})):x("",!0)])],512),[[Te,s.value===5]])]),_:1}),n(de,{class:"pa-6 pt-0"},{default:i(()=>[s.value>1?(f(),w(k,{key:0,size:"large",variant:"text",onClick:oe},{default:i(()=>[n(D,{start:""},{default:i(()=>[...v[53]||(v[53]=[c(" mdi-chevron-left ",-1)])]),_:1}),v[54]||(v[54]=c(" 上一步 ",-1))]),_:1})):x("",!0),n(K),s.value[v[56]||(v[56]=c(" 下一步 ",-1)),n(D,{end:""},{default:i(()=>[...v[55]||(v[55]=[c(" mdi-chevron-right ",-1)])]),_:1})]),_:1},8,["disabled"])):x("",!0),s.value===Oe||s.value===4?(f(),w(k,{key:2,color:"primary",size:"large",variant:"elevated",onClick:Q},{default:i(()=>[...v[57]||(v[57]=[c(" 关闭 ",-1)])]),_:1})):x("",!0)]),_:1})]),_:1}))}},Vl=te(Tl,[["__scopeId","data-v-817c6e0e"]]),Il={key:0,class:"init-overlay"},Nl={class:"init-container"},El={class:"main-card-row"},Al={class:"card-horizontal-layout"},Ul={class:"card-icon-wrapper"},Fl={class:"card-horizontal-layout"},Ml={class:"card-icon-wrapper"},Pl={class:"card-horizontal-layout"},zl={class:"card-icon-wrapper"},Ll={class:"options-buttons"},Rl={__name:"InitServiceChooser",props:{preconfig:{type:Object,default:()=>({namespace:null,authCode:null,autoOpen:!1,autoExecute:!1})}},emits:["done"],setup(t,{emit:e}){const a=t,d=e,s=P(!1),l=P(!1),o=P(!1),u=P(!1),h=P(!1),m=P(null),p=q(()=>C("server.provider")),I=q(()=>p.value==="kv-server"||p.value==="classworkscloud"),L=q(()=>C("server.kvToken")),oe=q(()=>{var V;return(V=a.preconfig)!=null&&V.namespace?{namespace:a.preconfig.namespace,password:a.preconfig.authCode||"",autoExecute:a.preconfig.autoExecute||!1}:null}),$=()=>{const V=window.location.pathname,b=V==="/"||V==="/index"||V==="/index.html",U=I.value&&(!L.value||L.value==="");s.value=b&&U};Se(()=>a.preconfig,V=>{V!=null&&V.autoOpen&&(V!=null&&V.namespace)&&s.value&&(console.log("检测到预配数据,自动打开设备认证对话框"),setTimeout(()=>{o.value=!0},500))},{immediate:!0,deep:!0}),St(()=>{$()});const Q=()=>{const V=C("server.authDomain"),b="d158067f53627d2b98babe8bffd2fd7d",U=window.location.origin,le=encodeURIComponent(`${U}/authorizecallback`),W=C("device.uuid")||"00000000-0000-4000-8000-000000000000";let ne=`${V}/authorize?app_id=${b}&mode=callback&callback_url=${le}&remark=Classworks 自动授权 来自${window.location.hostname} ${new Date().toLocaleString()}`;W!=="00000000-0000-4000-8000-000000000000"&&(ne+=`&uuid=${encodeURIComponent(W)}`),window.location.href=ne},ae=V=>{l.value=!1,console.log("渐进式注册成功:",V),$(),d("done")},j=V=>{var b;o.value=!1,console.log("认证成功:",V),(b=a.preconfig)!=null&&b.namespace&&console.log(`预配数据认证成功: ${a.preconfig.namespace}`),$(),d("done")},E=()=>{u.value=!1,$(),d("done")},T=V=>{console.log("替代代码:",V),h.value=!1},ve=()=>{pe("server.provider","kv-local"),s.value=!1,window.location.reload(),d("done")},ye=()=>{window.open(C("server.authDomain"),"_blank")};return(V,b)=>s.value?(f(),y("div",Il,[r("div",Nl,[b[22]||(b[22]=r("div",{class:"init-header"},[r("div",{class:"title"}," 欢迎使用 Classworks "),r("div",{class:"subtitle"}," 请选择你的使用方式 ")],-1)),r("div",El,[n(_,{class:"main-service-card gradient-new clickable",elevation:"4",onClick:b[0]||(b[0]=U=>l.value=!0)},{default:i(()=>[n(Fe,null,{default:i(()=>[r("div",Al,[r("div",Ul,[n(D,{color:"primary",size:"48"},{default:i(()=>[...b[12]||(b[12]=[c(" mdi-new-box ",-1)])]),_:1})]),b[13]||(b[13]=r("div",{class:"card-content"},[r("div",{class:"text-h6 font-weight-bold"}," 初次使用 "),r("div",{class:"text-body-2 text-medium-emphasis mt-1"}," 了解 Classworks KV 并开始使用 ")],-1))])]),_:1})]),_:1}),n(_,{class:"main-service-card gradient-registered clickable",elevation:"4",onClick:b[1]||(b[1]=U=>o.value=!0)},{default:i(()=>[n(Fe,null,{default:i(()=>[r("div",Fl,[r("div",Ml,[n(D,{color:"success",size:"48"},{default:i(()=>[...b[14]||(b[14]=[c(" mdi-account-check ",-1)])]),_:1})]),b[15]||(b[15]=r("div",{class:"card-content"},[r("div",{class:"text-h6 font-weight-bold"}," 已注册 "),r("div",{class:"text-body-2 text-medium-emphasis mt-1"}," 使用设备 Namespace 登录 ")],-1))])]),_:1})]),_:1}),n(_,{class:"main-service-card clickable",elevation:"4",onClick:ye},{default:i(()=>[n(Fe,null,{default:i(()=>[r("div",Pl,[r("div",zl,[n(D,{color:"info",size:"48"},{default:i(()=>[...b[16]||(b[16]=[c(" mdi-database-cog ",-1)])]),_:1})]),b[17]||(b[17]=r("div",{class:"card-content"},[r("div",{class:"text-h6 font-weight-bold"}," Classworks KV "),r("div",{class:"text-body-2 text-medium-emphasis mt-1"}," 打开云端控制台管理数据 ")],-1))])]),_:1})]),_:1})]),r("div",Ll,[n(k,{"prepend-icon":"mdi-laptop",size:"small",variant:"tonal",onClick:ve},{default:i(()=>[...b[18]||(b[18]=[c(" 使用本地模式 ",-1)])]),_:1}),n(k,{"prepend-icon":"mdi-flash",size:"small",variant:"tonal",onClick:Q},{default:i(()=>[...b[19]||(b[19]=[c(" 授权码式授权(弃用) ",-1)])]),_:1}),n(k,{"prepend-icon":"mdi-key",size:"small",variant:"tonal",onClick:b[2]||(b[2]=U=>u.value=!0)},{default:i(()=>[...b[20]||(b[20]=[c(" 输入 Token ",-1)])]),_:1}),n(k,{"prepend-icon":"mdi-code-tags",size:"small",variant:"tonal",onClick:b[3]||(b[3]=U=>h.value=!0)},{default:i(()=>[...b[21]||(b[21]=[c(" 输入替代代码 ",-1)])]),_:1})]),b[23]||(b[23]=r("div",{class:"footer-hint"}," 完成授权后可使用作业同步、考试看板等在线功能。 ",-1))]),n(ie,{modelValue:l.value,"onUpdate:modelValue":b[5]||(b[5]=U=>l.value=U),"max-width":"600"},{default:i(()=>[n(Vl,{onClose:b[4]||(b[4]=U=>l.value=!1),onSuccess:ae})]),_:1},8,["modelValue"]),n(ie,{modelValue:o.value,"onUpdate:modelValue":b[7]||(b[7]=U=>o.value=U),"max-width":"500"},{default:i(()=>[n(Ma,{ref_key:"deviceAuthDialog",ref:m,preconfig:oe.value,"show-cancel":!0,onCancel:b[6]||(b[6]=U=>o.value=!1),onSuccess:j},null,8,["preconfig"])]),_:1},8,["modelValue"]),n(ie,{modelValue:u.value,"onUpdate:modelValue":b[9]||(b[9]=U=>u.value=U),"max-width":"500"},{default:i(()=>[n(Pa,{"show-cancel":!0,onCancel:b[8]||(b[8]=U=>u.value=!1),onSuccess:E})]),_:1},8,["modelValue"]),n(ie,{modelValue:h.value,"onUpdate:modelValue":b[11]||(b[11]=U=>h.value=U),"max-width":"500"},{default:i(()=>[n(za,{"show-cancel":!0,onCancel:b[10]||(b[10]=U=>h.value=!1),onSubmit:T})]),_:1},8,["modelValue"])])):x("",!0)}},Bt=te(Rl,[["__scopeId","data-v-cbfbc6db"]]);function Je(t,e){let a=null;return function(...d){a&&clearTimeout(a),a=setTimeout(()=>{t.apply(this,d)},e)}}function Bl(t,e){let a=null,d=0;return function(...s){const l=Date.now();l-d{d=l,t.apply(this,s)},e)):(d=l,t.apply(this,s))}}const $l={name:"Classworks 作业板",components:{MessageLog:Vt,RandomPicker:It,FloatingToolbar:Ut,FloatingICP:At,HomeworkEditDialog:Mt,InitServiceChooser:Bt,ChatWidget:qe,StudentNameManager:Rt,UrgentTestDialog:Et,AttendanceSidebar:Pt,AttendanceManagementDialog:Ft,HomeworkGrid:Lt,HomeActions:zt},setup(){const{mobile:t}=Pe();return{mobile:t}},data(){const t=[{name:"语文",order:0},{name:"数学",order:1},{name:"英语",order:2},{name:"物理",order:3},{name:"化学",order:4},{name:"生物",order:5},{name:"政治",order:6},{name:"历史",order:7},{name:"地理",order:8},{name:"其他",order:9}];return{dataKey:"",provider:"",useDisplay:Pe,state:{classNumber:"",namespaceInfo:null,deviceName:"",studentList:[],boardData:{homework:{},attendance:{absent:[],late:[],exclude:[]}},dialogVisible:!1,dialogTitle:"",textarea:"",dateString:"",synced:!1,attendDialogVisible:!1,contentStyle:{"font-size":`${C("font.size")}px`},uploadLoading:!1,downloadLoading:!1,snackbar:!1,snackbarText:"",fontSize:C("font.size"),datePickerDialog:!1,selectedDate:new Date().toISOString().split("T")[0].replace(/-/g,""),selectedDateObj:new Date,refreshInterval:null,showNoDataMessage:!1,noDataMessage:"",isToday:!1,attendanceDialog:!1,availableSubjects:t,isFullscreen:!1},loading:{download:!1,upload:!1,students:!1,copyToToday:!1},debouncedUpload:null,debouncedAttendanceSave:null,throttledReflow:null,sortedItemsCache:{key:"",value:[]},confirmDialog:{show:!1,resolve:null,reject:null},urlConfigDialog:{show:!1,config:null,changes:[],validSettings:{},confirmHandler:null,cancelHandler:null,icons:{}},settingsTick:0,isChatOpen:!1,highlightedCards:{},tokenDisplayInfo:{show:!1,readonly:!1,text:"",color:"primary",variant:"tonal",icon:"mdi-account",disabled:!1},realtimeInfo:{show:!1,time:"",key:""},$offKvChanged:null,$offConnect:null,debouncedRealtimeRefresh:null,preconfigData:{namespace:null,authCode:null,autoOpen:!1,autoExecute:!1},urgentTestDialog:!1,tokenInfo:null,persistentNotifications:[],notificationDetailDialog:!1,currentNotification:null}},computed:{isMobile(){return this.mobile},titleText(){var o,u;const t=((u=(o=this.state.namespaceInfo)==null?void 0:o.device)==null?void 0:u.name)||this.state.classNumber||"高三八班",e=this.getToday(),a=new Date(e);a.setDate(a.getDate()-1);const d=this.state.dateString,s=this.formatDate(e),l=this.formatDate(a);return d===s?t+" - 今天的作业":d===l?t+" - 昨天的作业":`${t} - ${d}的作业`},sortedItems(){const t=[];this.mobile&&t.push({key:"attendance-card",name:"出勤统计",type:"attendance",data:{total:this.state.studentList.length,absent:this.state.boardData.attendance.absent,late:this.state.boardData.attendance.late,exclude:this.state.boardData.attendance.exclude}});for(const e of this.state.availableSubjects){const a=e.name,d=this.state.boardData.homework[a];d&&d.content&&t.push({key:a,name:a,type:"homework",content:d.content,order:e.order,rowSpan:Math.ceil((d.content.split(` `).filter(s=>s.trim()).length+1)*.8)})}for(const e in this.state.boardData.homework)if(e.startsWith("custom-")){const a=this.state.boardData.homework[e];t.push({key:e,name:a.name,type:"custom",content:a.content,order:9999,rowSpan:Math.ceil((a.content.split(` -`).filter(d=>d.trim()).length+1)*.8)})}return t.sort((e,a)=>e.order-a.order),t},unusedSubjects(){const t=Object.keys(this.state.boardData.homework).filter(e=>{var a;return(a=this.state.boardData.homework[e].content)==null?void 0:a.trim()});return this.state.availableSubjects.filter(e=>!t.includes(e.name)).sort((e,a)=>e.order-a.order)},emptySubjects(){return this.emptySubjectDisplay!=="button"?[]:this.unusedSubjects},autoSave(){return C("edit.autoSave")},blockNonTodayAutoSave(){return C("edit.blockNonTodayAutoSave")},isToday(){const t=(()=>{const e=new Date,a=e.getFullYear(),d=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${a}${d}${s}`})();return this.state.dateString===t},canAutoSave(){return this.autoSave&&(!this.blockNonTodayAutoSave||this.isToday)},needConfirmSave(){return!this.isToday&&this.confirmNonTodaySave},shouldShowBlockedMessage(){return!this.isToday&&this.autoSave&&this.blockNonTodayAutoSave},refreshBeforeEdit(){return C("edit.refreshBeforeEdit")},emptySubjectDisplay(){return C("display.emptySubjectDisplay")},dynamicSort(){return C("display.dynamicSort")},isEditingDisabled(){if(this.state.uploadLoading||this.state.downloadLoading)return!0;const t=this.$refs.studentNameManager;return!!(t!=null&&t.isReadOnly||!this.canEditCurrentDate)},unreadCount(){var t;return((t=this.$refs.messageLog)==null?void 0:t.unreadCount)||0},showRandomPickerButton(){return C("randomPicker.enabled")},showListCardButton(){return C("display.showListCard")},confirmNonTodaySave(){return C("edit.confirmNonTodaySave")},blockPastDataEdit(){return C("edit.blockPastDataEdit")},shouldShowSaveConfirm(){return!this.isToday&&this.confirmNonTodaySave},shouldBlockAutoSave(){return!this.isToday&&this.autoSave&&this.blockNonTodayAutoSave},canEditCurrentDate(){return this.isToday?!0:!this.blockPastDataEdit},isEditingPastData(){return!this.isToday},showFullscreenButton(){return C("display.showFullscreenButton")},showExamScheduleButton(){return C("display.showExamScheduleButton")},showAntiScreenBurnCard(){return C("display.showAntiScreenBurnCard")},showTestCardButton(){return C("developer.enabled")},shouldShowInit(){var s;const t=C("server.provider"),e=t==="kv-server"||t==="classworkscloud",a=C("server.kvToken"),d=((s=this.$route)==null?void 0:s.path)==="/";return this.settingsTick,d&&e&&(!a||a==="")},shouldShowUrgentTestButton(){const t=C("server.provider");return!(t==="kv-server"||t==="classworkscloud")||!C("server.kvToken")||!this.tokenInfo?!1:this.tokenInfo.deviceType==="teacher"||this.tokenInfo.deviceType==="classroom"},subjectOrder(){return[...this.state.availableSubjects].sort((t,e)=>t.order-e.order).map(t=>t.name)}},watch:{homeworkData:{handler(){this.$nextTick(()=>{this.$refs.waterfall&&this.$refs.waterfall.reflow()})},deep:!0},"$vuetify.display.width":{handler(){this.throttledReflow()},deep:!0},"state.attendanceDialog":{handler(t){this.handleAttendanceDialogClose(t)}}},created(){this.debouncedUpload=Je(this.uploadData,2e3),this.debouncedAttendanceSave=Je(async()=>{this.autoSave&&await this.trySave(!0)},2e3),this.throttledReflow=Bl(()=>{this.$refs.gridContainer&&this.optimizeGridLayout(this.sortedItems)},200)},async mounted(){try{this.updateBackendUrl(),await this.initializeData(),await this.loadDeviceInfo(),this.setupAutoRefresh(),this.unwatchSettings=xt(()=>{this.updateSettings()}),this.$nextTick(()=>{const t=this.$refs.studentNameManager;t&&(this.studentNameInfo.name=t.currentStudentName,this.studentNameInfo.isStudent=t.isStudentToken,this.studentNameInfo.openDialog=()=>t.openDialog(),this.$watch(()=>t.currentStudentName,e=>{this.studentNameInfo.name=e}),this.$watch(()=>t.isStudentToken,e=>{this.studentNameInfo.isStudent=e}))}),document.addEventListener("fullscreenchange",this.fullscreenChangeHandler),document.addEventListener("webkitfullscreenchange",this.fullscreenChangeHandler),document.addEventListener("mozfullscreenchange",this.fullscreenChangeHandler),document.addEventListener("MSFullscreenChange",this.fullscreenChangeHandler),this.checkHashForRandomPicker(),window.addEventListener("hashchange",this.checkHashForRandomPicker),this.setupRealtimeChannel(),this.$nextTick(()=>{this.updateTokenDisplayInfo()}),await this.loadTokenInfo(),this.loadPersistentNotifications()}catch(t){console.error("初始化失败:",t),this.showError("初始化失败,请刷新页面重试")}},beforeUnmount(){this.unwatchSettings&&this.unwatchSettings(),this.state.refreshInterval&&clearInterval(this.state.refreshInterval),document.removeEventListener("fullscreenchange",this.fullscreenChangeHandler),document.removeEventListener("webkitfullscreenchange",this.fullscreenChangeHandler),document.removeEventListener("mozfullscreenchange",this.fullscreenChangeHandler),document.removeEventListener("MSFullscreenChange",this.fullscreenChangeHandler),window.removeEventListener("hashchange",this.checkHashForRandomPicker);try{this.$offKvChanged&&typeof this.$offKvChanged=="function"&&(this.$offKvChanged(),this.$offKvChanged=null),this.$offDeviceEvent&&typeof this.$offDeviceEvent=="function"&&(this.$offDeviceEvent(),this.$offDeviceEvent=null),this.$offConnect&&typeof this.$offConnect=="function"&&(this.$offConnect(),this.$offConnect=null),In()}catch(t){console.warn("主页面事件清理失败:",t)}},methods:{async loadDeviceInfo(){var t;try{const e=C("server.provider");if(!(e==="kv-server"||e==="classworkscloud"))return;const d=await Bn.loadNamespaceInfo();if(d&&d.success===!1)return;this.state.namespaceInfo=d||null,this.state.deviceName=((t=d==null?void 0:d.account)==null?void 0:t.deviceName)||""}catch(e){console.warn("加载设备信息失败:",e)}},async loadTokenInfo(){try{const t=C("server.provider");if(!(t==="kv-server"||t==="classworkscloud"))return;const a=C("server.kvToken");if(!a)return;const d=C("server.domain");if(!d)return;const s=await Ce.get(`${d}/kv/_token`,{headers:{Authorization:`Bearer ${a}`}});this.tokenInfo=s.data,console.log("Token info loaded:",this.tokenInfo)}catch(t){console.warn("Failed to load token info:",t),this.tokenInfo=null}},updateTokenDisplayInfo(){const t=this.$refs.studentNameManager;if(!t||!t.hasToken){this.tokenDisplayInfo.show=!1,this.tokenDisplayInfo.readonly=!1;return}const e=t.displayName,a=t.isReadOnly,d=t.isStudentToken;if(this.tokenDisplayInfo.readonly=a,!d){this.tokenDisplayInfo.show=!1;return}this.tokenDisplayInfo.text=e,this.tokenDisplayInfo.color="primary",this.tokenDisplayInfo.icon="mdi-account",this.tokenDisplayInfo.disabled=a,this.tokenDisplayInfo.show=!0},handleTokenChipClick(){console.log("Token chip clicked");const t=this.$refs.studentNameManager;console.log("Manager:",t),console.log("Is student token:",t==null?void 0:t.isStudentToken),t&&t.isStudentToken?(console.log("Opening dialog..."),t.openDialog()):console.log("Cannot open dialog - conditions not met")},ensureDate(t){if(t instanceof Date)return t;if(typeof t=="string"){const e=new Date(t);if(!isNaN(e.getTime()))return e}return new Date},formatDate(t){const e=this.ensureDate(t),a=e.getFullYear(),d=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${a}${d}${s}`},formatTime(t){return t?new Date(t).toLocaleString():""},getToday(){return new Date},async initializeData(){this.parsePreconfigData();const t=await this.parseUrlConfig(),a=new URLSearchParams(window.location.search).get("date"),d=this.getToday();let s=d;if(a){if(/^\d{8}$/.test(a)){const l=a.substring(0,4),o=a.substring(4,6),u=a.substring(6,8);s=new Date(`${l}-${o}-${u}`)}else s=new Date(a);isNaN(s.getTime())&&(s=d)}if(this.state.dateString=this.formatDate(s),this.state.selectedDate=this.state.dateString,this.state.selectedDateObj=s,this.state.isToday=this.formatDate(s)===this.formatDate(d),!t){this.provider=C("server.provider");const l=C("server.classNumber");this.state.classNumber=l}await Promise.all([this.downloadData(),this.loadConfig()])},async downloadData(t=!1){var e,a,d;if(!this.loading.download)try{this.loading.download=!0;const s=await fe.loadData("classworks-data-"+this.state.dateString);if(s.success==!1)if(s.error.code==="NOT_FOUND")this.state.showNoDataMessage=!0,this.state.noDataMessage=s.error.message,(t||!this.state.boardData||!this.state.boardData.homework&&!this.state.boardData.attendance)&&(this.state.boardData={homework:{},attendance:{absent:[],late:[],exclude:[]}});else throw new Error(s.error.message);else this.state.boardData={homework:s.homework||{},attendance:{absent:((e=s.attendance)==null?void 0:e.absent)||[],late:((a=s.attendance)==null?void 0:a.late)||[],exclude:((d=s.attendance)==null?void 0:d.exclude)||[]}},this.state.synced=!0,this.state.showNoDataMessage=!1,this.$message.success("下载成功","数据已更新")}catch(s){console.error("数据加载失败:",s),this.$message.error("下载失败",s.message),(t||!this.state.boardData||!this.state.boardData.homework&&!this.state.boardData.attendance)&&(this.state.boardData={homework:{},attendance:{absent:[],late:[],exclude:[]}})}finally{this.loading.download=!1}},async trySave(t=!1){if(t&&!this.canAutoSave)return this.shouldShowBlockedMessage&&this.showMessage("需要手动保存","已禁止自动保存非当天数据","warning"),!1;if(!t&&this.needConfirmSave)try{await this.showConfirmDialog()}catch{return!1}try{return await this.uploadData(),!0}catch(e){return this.$message.error("保存失败",e.message||"请重试"),!1}},async handleClose(){var a;if(!this.currentEditSubject)return;const t=this.state.textarea.trim(),e=((a=this.state.boardData.homework[this.currentEditSubject])==null?void 0:a.content)||"";t!==e.trim()&&(this.state.boardData.homework[this.currentEditSubject].type==="custom"?this.state.boardData.homework[this.currentEditSubject].content=t:this.state.boardData.homework[this.currentEditSubject]={content:t},this.state.synced=!1,this.autoSave&&await this.trySave(!0)),this.state.dialogVisible=!1},async uploadData(){if(!this.loading.upload)try{this.loading.upload=!0;const t=await fe.saveData("classworks-data-"+this.state.dateString,this.state.boardData);if(t.success==!1)throw new Error(t.error.message);this.state.synced=!0,this.$message.success(t.message||"保存成功")}finally{this.loading.upload=!1}},async loadConfig(){try{try{const t=await fe.loadData("classworks-list-main");t.success!=!1&&Array.isArray(t)&&(this.state.studentList=t.map(e=>e.name))}catch(t){console.warn("Failed to load student list from dedicated key, falling back to config",t)}await this.loadSubjects()}catch(t){console.error("加载配置失败:",t),this.$message.error("加载配置失败",t.message)}},async loadSubjects(){try{const t=await fe.loadData("classworks-config-subject");t&&Array.isArray(t)&&(this.state.availableSubjects=t)}catch(t){console.warn("Failed to load subject configuration:",t)}},showSyncMessage(){this.$message.success("数据已同步","数据已完成与服务器同步")},async openDialog(t){var e;if(this.isEditingDisabled){const a=this.$refs.studentNameManager;a!=null&&a.isReadOnly?this.$message.warning("无法编辑","当前使用的是只读令牌"):this.canEditCurrentDate?this.$message.warning("无法编辑","数据加载中,请稍候"):this.$message.warning("无法编辑","已禁止编辑过往数据");return}if(t.startsWith("custom-")){this.currentEditSubject=t,this.state.dialogTitle=this.state.boardData.homework[t].name,this.state.textarea=this.state.boardData.homework[t].content,this.state.dialogVisible=!0;return}if(this.refreshBeforeEdit)try{await this.downloadData()}catch(a){console.error("刷新数据失败:",a),this.$message.error("刷新数据失败,可能显示的不是最新数据")}this.currentEditSubject=t,this.state.boardData.homework[t]||(this.state.boardData.homework[t]={content:""}),this.state.dialogTitle=((e=this.state.availableSubjects.find(a=>a.name===t))==null?void 0:e.name)||t,this.state.textarea=this.state.boardData.homework[t].content,this.state.dialogVisible=!0},async handleHomeworkSave(t){this.currentEditSubject&&(this.state.boardData.homework[this.currentEditSubject].type==="custom"?this.state.boardData.homework[this.currentEditSubject].content=t:this.state.boardData.homework[this.currentEditSubject]={content:t},this.state.synced=!1,this.autoSave&&await this.trySave(!0))},setAttendanceArea(){if(this.isEditingDisabled){this.handleDisabledClick();return}this.state.attendanceDialog=!0},handleDisabledClick(){const t=this.$refs.studentNameManager;t!=null&&t.isReadOnly?this.$message.warning("无法编辑","当前使用的是只读令牌"):this.canEditCurrentDate?this.$message.warning("无法编辑","数据加载中,请稍候"):this.$message.warning("无法编辑","已禁止编辑过往数据")},zoom(t){t==="up"&&this.state.fontSize<100?this.state.fontSize+=2:t==="out"&&this.state.fontSize>16&&(this.state.fontSize-=2),this.state.contentStyle={"font-size":`${this.state.fontSize}px`},pe("font.size",this.state.fontSize)},updateBackendUrl(){const t=C("server.provider"),e=C("server.classNumber");this.provider=t,this.state.classNumber=e},setupAutoRefresh(){const t=C("refresh.auto"),e=C("refresh.interval");this.state.refreshInterval&&clearInterval(this.state.refreshInterval),t&&(this.state.refreshInterval=setInterval(()=>{this.shouldSkipRefresh()||(this.downloadData(),this.loadPersistentNotifications())},e*1e3))},shouldSkipRefresh(){return!!(this.state.dialogVisible||this.state.attendanceDialog||this.confirmDialog.show||this.state.datePickerDialog||this.loading.upload||this.loading.download||!this.state.synced)},updateSettings(){this.state.fontSize=C("font.size"),this.state.contentStyle={"font-size":`${this.state.fontSize}px`},this.setupAutoRefresh(),this.updateBackendUrl(),this.loadDeviceInfo(),this.loadTokenInfo(),this.settingsTick++},async handleDateSelect(t){if(t)try{const e=this.ensureDate(t),a=this.formatDate(e);if(a===this.state.dateString)return;this.state.dateString=a,this.state.selectedDate=a,this.state.selectedDateObj=e,this.state.isToday=a===this.formatDate(this.getToday()),await Promise.all([this.downloadData(!0),this.loadSubjects()])}catch(e){console.error("Date processing error:",e),this.$message.error("日期处理错误","请重新选择日期")}},setupRealtimeChannel(){try{const t=C("server.kvToken");if(!t){console.warn("未配置 KV Token,无法加入实时频道");return}Ct(),Xe(t),this.$offConnect=Vn(()=>Xe(t)),this.debouncedRealtimeRefresh||(this.debouncedRealtimeRefresh=Je(async()=>{var m,p,I;const d=JSON.parse(JSON.stringify(this.state.boardData.homework));await this.downloadData();const s=new Date,l=String(s.getHours()).padStart(2,"0"),o=String(s.getMinutes()).padStart(2,"0"),u=String(s.getSeconds()).padStart(2,"0");(m=this.$message)==null||m.info("数据已更新",`已于 ${l}:${o}:${u} 自动刷新`);const h={};for(const L in this.state.boardData.homework){const oe=((p=d[L])==null?void 0:p.content)||"",$=((I=this.state.boardData.homework[L])==null?void 0:I.content)||"";oe!==$&&(h[L]=!0)}for(const L in d)this.state.boardData.homework[L]||(h[L]=!0);this.highlightedCards=h,setTimeout(()=>{this.highlightedCards={}},1e4)},800));const e=d=>{var l;if(!d)return;if(d.key==="notification-list"){this.loadPersistentNotifications();return}const s=`classworks-data-${this.state.dateString}`;d.key===s&&(d.action!=="upsert"&&d.action!=="delete"||(l=this.debouncedRealtimeRefresh)==null||l.call(this,d.key))},a=d=>{let s=d;d.content&&d.timestamp&&(s={uuid:d.senderId||"realtime",key:d.content.key,action:d.content.action,created:d.content.created,updatedAt:d.content.updatedAt||d.timestamp,deletedAt:d.content.deletedAt,batch:d.content.batch}),e(s)};this.$offKvChanged=be("kv-key-changed",a),this.deviceEventHandler=Dt({onKvChanged:e,enableLegacySupport:!0}),this.$offDeviceEvent=be("device-event",this.deviceEventHandler)}catch(t){console.warn("实时频道初始化失败",t)}},async saveAttendance(){try{await this.trySave(!0),this.state.attendanceDialog=!1}catch(t){console.error("保存出勤状态失败:",t),this.$message.error("保存失败","请重试")}},showMessage(t,e="",a="success"){this.$message[a](t,e)},updateSortedItemsCache(t,e){this._sortedItemsCache={key:t,value:e}},addTestCard(){const t=Date.now().toString();this.state.boardData.homework[`custom-${t}`]={name:"测试卡片",content:`这是一个测试卡片 -可以用来测试布局`,type:"custom"},this.state.synced=!1},showConfirmDialog(){return new Promise((t,e)=>{this.confirmDialog={show:!0,resolve:()=>{this.confirmDialog.show=!1,t()},reject:()=>{this.confirmDialog.show=!1,e(new Error("用户取消保存"))}}})},confirmSave(){this.confirmDialog.show=!1,this.confirmDialog.resolve&&this.confirmDialog.resolve(!0)},cancelSave(){this.confirmDialog.show=!1,this.confirmDialog.reject&&this.confirmDialog.reject(new Error("用户取消保存"))},async manualUpload(){return this.trySave(!1)},handleAttendanceChange(){this.state.synced=!1,this.debouncedAttendanceSave()},async handleAttendanceDialogClose(t){!t&&!this.state.synced&&await this.trySave(!0)},toggleFullscreen(){this.state.isFullscreen?this.exitFullscreen():this.enterFullscreen()},enterFullscreen(){const t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},exitFullscreen(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},fullscreenChangeHandler(){this.state.isFullscreen=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)},openRandomPicker(){this.$refs.randomPicker&&this.$refs.randomPicker.open()},checkHashForRandomPicker(){window.location.hash==="#random-picker"&&this.$nextTick(()=>{console.log("打开随机点名"),window.location.hash="",this.openRandomPicker()})},parseUrlConfig(){try{const e=new URLSearchParams(window.location.search).get("config");if(!e)return!1;try{const a=atob(e),d=Uint8Array.from(a,m=>m.charCodeAt(0)),s=new TextDecoder().decode(d),l=JSON.parse(s);console.log("从URL读取配置:",l);const o=[],u={},h={};return this.processSpecialSettings(l,o,u),this.processStandardSettings(l,o,u,h),Object.keys(u).length===0?(console.log("URL配置与当前配置相同,无需应用"),!1):new Promise(m=>{this.urlConfigDialog={show:!0,config:l,changes:o,validSettings:u,icons:h,confirmHandler:()=>{this.urlConfigDialog.show=!1,this.applyUrlConfig(u),m(!0)},cancelHandler:()=>{this.urlConfigDialog.show=!1,m(!1)}}})}catch(a){return console.error("解析URL配置错误:",a),this.$message.error("URL配置错误","无法解析配置数据"),!1}}catch(t){return console.error("处理URL配置错误:",t),!1}},processSpecialSettings(t,e,a){var d,s;if(t.classNumber!==void 0){const l=C("server.classNumber");t.classNumber!==l&&(e.push({key:"server.classNumber",name:"班级",oldValue:l,newValue:t.classNumber,description:((d=Ue["server.classNumber"])==null?void 0:d.description)||"班级编号",icon:((s=Ue["server.classNumber"])==null?void 0:s.icon)||"mdi-account-group"}),a["server.classNumber"]=t.classNumber)}t.date!==void 0&&t.date!==this.state.dateString&&(e.push({key:"date",name:"日期",oldValue:this.state.dateString,newValue:t.date,description:"查看的日期",icon:"mdi-calendar"}),a.date=t.date),t.subjects&&Array.isArray(t.subjects)&&(e.push({key:"subjects",name:"科目列表",oldValue:`${this.state.availableSubjects.length}个科目`,newValue:`${t.subjects.length}个科目`,description:"可用科目列表",icon:"mdi-notebook"}),a.subjects=t.subjects)},processStandardSettings(t,e,a,d){Object.entries(t).forEach(([s,l])=>{if(["classNumber","date","subjects"].includes(s))return;let o=s,u=Ue[s];if(!u&&!s.includes(".")){const h=["server.","display.","theme.","edit.","refresh.","font.","randomPicker."];for(const m of h){const p=`${m}${s}`;if(Ue[p]){o=p,u=Ue[p];break}}}if(u){let h=this.convertValueToCorrectType(l,u.type);if(u.validate&&!u.validate(h)){console.warn(`URL配置项 ${o} 的值无效: ${l}`);return}const m=C(o);h!==m&&(e.push({key:o,name:this.getSettingDisplayName(o),oldValue:this.formatSettingValue(m),newValue:this.formatSettingValue(h),description:u.description||o,icon:u.icon||"mdi-cog"}),a[o]=h,d[o]=u.icon||"mdi-cog")}else e.push({key:s,name:this.getSettingDisplayName(s),oldValue:"未知",newValue:this.formatSettingValue(l),description:"自定义配置项",icon:"mdi-cog-outline"}),a[s]=l,d[s]="mdi-cog-outline"})},convertValueToCorrectType(t,e){return e==="boolean"?!!t:e==="number"?Number(t):String(t)},formatSettingValue(t){return typeof t=="boolean"?t?"开启":"关闭":t===""||t===null||t===void 0?"空":t.toString()},getSettingDisplayName(t){const e=t.split("."),a=e[e.length-1];return{provider:"数据提供方",domain:"服务器域名",classNumber:"班级编号",emptySubjectDisplay:"空科目显示方式",dynamicSort:"动态排序",showRandomButton:"随机按钮",showFullscreenButton:"全屏按钮",cardHoverEffect:"卡片悬浮效果",enhancedTouchMode:"增强触摸模式",showAntiScreenBurnCard:"防烧屏卡片",mode:"主题模式",size:"字体大小",autoSave:"自动保存",blockNonTodayAutoSave:"禁止自动保存非当日",refreshBeforeEdit:"编辑前刷新",confirmNonTodaySave:"非当日保存确认",auto:"自动刷新",interval:"刷新间隔"}[a]||a},safeBase64Decode(t){try{return Kn.decode(t)}catch(e){throw console.error("Base64解码错误:",e),new Error("无法解码配置数据")}},applyUrlConfig(t){for(const[e,a]of Object.entries(t)){if(e==="date"){this.handleDateSelect(a);continue}if(e==="subjects"){this.state.availableSubjects=a;continue}pe(e,a),e==="server.classNumber"&&(this.state.classNumber=a)}return this.updateBackendUrl(),this.$message.success("URL配置已应用","已从URL加载配置"),!0},navigateDay(t){const e=new Date(this.state.selectedDateObj);e.setDate(e.getDate()+t),this.handleDateSelect(e)},async copyHomeworkToToday(){if(!this.loading.copyToToday)try{this.loading.copyToToday=!0;const t=this.state.dateString,e=JSON.parse(JSON.stringify(this.state.boardData.homework)),a=this.getToday(),d=this.formatDate(a);this.state.dateString=d,await this.downloadData();const s={};for(const o in e)e[o]&&e[o].content&&(e[o].type==="custom"?s[o]=JSON.parse(JSON.stringify(e[o])):s[o]={content:e[o].content});this.state.boardData.homework=s,this.state.synced=!1,await this.uploadData(),this.state.selectedDate=d,this.state.selectedDateObj=a,this.state.isToday=!0;const l=new URL(window.location);l.searchParams.delete("date"),window.history.pushState({},"",l),this.$message.success("复制成功",`已将 ${t} 的作业内容复制到今天(已替换原有作业)`)}catch(t){console.error("复制作业失败:",t),this.$message.error("复制失败",t.message||"请重试")}finally{this.loading.copyToToday=!1}},parsePreconfigData(){try{const t=new URLSearchParams(window.location.search),e=t.get("namespace"),a=t.get("authCode")||t.get("auth_code"),d=t.get("autoExecute")||t.get("auto_execute");e&&(this.preconfigData.namespace=e,this.preconfigData.authCode=a,this.preconfigData.autoOpen=!0,this.preconfigData.autoExecute=this.parseBoolean(d),console.log("检测到预配数据:",{namespace:this.preconfigData.namespace,hasAuthCode:!!this.preconfigData.authCode,autoExecute:this.preconfigData.autoExecute}),this.cleanupUrlParams(["namespace","authCode","auth_code","autoExecute","auto_execute"]))}catch(t){console.error("解析预配数据失败:",t)}},parseBoolean(t){if(!t)return!1;const e=t.toLowerCase();return e==="true"||e==="1"||e==="yes"},cleanupUrlParams(t){try{const e=new URL(window.location);let a=!1;t.forEach(d=>{e.searchParams.has(d)&&(e.searchParams.delete(d),a=!0)}),a&&window.history.replaceState({},document.title,e.toString())}catch(e){console.error("清理URL参数失败:",e)}},async loadPersistentNotifications(){try{const t=await fe.loadData("notification-list");t&&Array.isArray(t)?this.persistentNotifications=t:t&&t.success!==!1&&Array.isArray(t.data)?this.persistentNotifications=t.data:this.persistentNotifications=[]}catch(t){console.error("加载常驻通知失败",t)}},showNotificationDetail(t){this.currentNotification=t,this.notificationDetailDialog=!0},async removePersistentNotification(t){this.persistentNotifications=this.persistentNotifications.filter(a=>a.id!==t);const e=this.persistentNotifications.length>0?this.persistentNotifications:{};await fe.saveData("notification-list",e),this.notificationDetailDialog=!1}}},Ol={key:2,class:"d-flex"},jl={class:"text-h6 text-truncate font-weight-bold"},Kl={class:"text-h4 font-weight-medium mb-4",style:{"line-height":"1.5"}},Hl={class:"text-subtitle-1 text-grey"},ql={class:"text-subtitle-1"},Ql={class:"text-grey-darken-1"},Wl={class:"text-primary font-weight-medium"};function Gl(t,e,a,d,s,l){const o=Bt,u=Rt,h=Lt,m=zt,p=Pt,I=Mt,L=Ft,oe=Vt,$=Ut,Q=At,ae=qe,j=Et,E=It;return f(),y(N,null,[n(On,{class:"no-select"},{append:i(()=>[s.tokenDisplayInfo.readonly?(f(),w(B,{key:0,class:"mx-2",color:"warning","prepend-icon":"mdi-lock-alert",variant:"tonal"},{default:i(()=>[...e[23]||(e[23]=[c(" 只读 ",-1)])]),_:1})):x("",!0),s.tokenDisplayInfo.show?(f(),w(B,{key:1,style:Ie({cursor:s.tokenDisplayInfo.disabled?"default":"pointer"}),class:"mx-2",color:"primary","prepend-icon":"mdi-account",variant:"tonal",onClick:l.handleTokenChipClick},{default:i(()=>[c(g(s.tokenDisplayInfo.text),1)]),_:1},8,["style","onClick"])):x("",!0),l.shouldShowUrgentTestButton?(f(),w(k,{key:2,"prepend-icon":"mdi-chat",onClick:e[0]||(e[0]=T=>s.urgentTestDialog=!0),variant:"tonal"},{default:i(()=>[...e[24]||(e[24]=[c("发送通知",-1)])]),_:1})):x("",!0),n(k,{icon:"mdi-chat",variant:"text",onClick:e[1]||(e[1]=T=>s.isChatOpen=!0)}),n(k,{badge:l.unreadCount||void 0,"badge-color":l.unreadCount?"error":void 0,icon:"mdi-bell",variant:"text",onClick:e[2]||(e[2]=T=>t.$refs.messageLog.drawer=!0)},null,8,["badge","badge-color"]),n(k,{icon:"mdi-cog",variant:"text",onClick:e[3]||(e[3]=T=>t.$router.push("/settings"))})]),default:i(()=>[n($n,null,{default:i(()=>[c(g(l.titleText),1)]),_:1}),n(K)]),_:1}),l.shouldShowInit?(f(),w(o,{key:0,preconfig:s.preconfigData,onDone:e[4]||(e[4]=T=>s.settingsTick++)},null,8,["preconfig"])):x("",!0),l.shouldShowInit?x("",!0):(f(),w(u,{key:1,ref:"studentNameManager",onTokenInfoUpdated:l.updateTokenDisplayInfo},null,8,["onTokenInfoUpdated"])),l.shouldShowInit?x("",!0):(f(),y("div",Ol,[n(_t,{class:"main-window flex-grow-1 no-select bloom-container",fluid:""},{default:i(()=>[s.persistentNotifications.length>0?(f(),w(ge,{key:0,class:"mb-4"},{default:i(()=>[n(se,{cols:"12"},{default:i(()=>[(f(!0),y(N,null,M(s.persistentNotifications,T=>(f(),w(_,{key:T.id,color:T.isUrgent?"error":"primary",class:"mb-2 cursor-pointer",variant:"tonal",onClick:ve=>l.showNotificationDetail(T)},{default:i(()=>[n(A,{class:"d-flex align-center py-3"},{default:i(()=>[r("span",jl,g(T.message),1),n(K),n(k,{icon:"mdi-chevron-right",variant:"text"})]),_:2},1024)]),_:2},1032,["color","onClick"]))),128))]),_:1})]),_:1})):x("",!0),n(ie,{modelValue:s.notificationDetailDialog,"onUpdate:modelValue":e[8]||(e[8]=T=>s.notificationDetailDialog=T),"max-width":"700",scrollable:""},{default:i(()=>[s.currentNotification?(f(),w(_,{key:0,class:"rounded-xl"},{default:i(()=>[n(Y,{class:"d-flex align-center pa-4 text-h5"},{default:i(()=>[r("span",{class:we([s.currentNotification.isUrgent?"text-error":"","font-weight-bold"])},g(s.currentNotification.isUrgent?"强调通知":"通知详情"),3),n(K),n(k,{icon:"mdi-close",variant:"text",onClick:e[5]||(e[5]=T=>s.notificationDetailDialog=!1)})]),_:1}),n(xe),n(A,{class:"pa-6"},{default:i(()=>[r("div",Kl,g(s.currentNotification.message),1),r("div",Hl," 发布时间:"+g(l.formatTime(s.currentNotification.timestamp)),1)]),_:1}),n(xe),n(de,{class:"pa-4"},{default:i(()=>[n(k,{color:"error","prepend-icon":"mdi-delete",size:"x-large",variant:"tonal",class:"px-6",onClick:e[6]||(e[6]=T=>l.removePersistentNotification(s.currentNotification.id))},{default:i(()=>[...e[25]||(e[25]=[c(" 删除通知 ",-1)])]),_:1}),n(K),n(k,{color:"primary",size:"x-large",variant:"elevated",class:"px-8",onClick:e[7]||(e[7]=T=>s.notificationDetailDialog=!1)},{default:i(()=>[...e[26]||(e[26]=[c(" 关闭 ",-1)])]),_:1})]),_:1})]),_:1})):x("",!0)]),_:1},8,["modelValue"]),n(h,{"sorted-items":l.sortedItems,"unused-subjects":l.unusedSubjects,"empty-subject-display":l.emptySubjectDisplay,"is-editing-disabled":l.isEditingDisabled,"content-style":s.state.contentStyle,"highlighted-cards":s.highlightedCards,onOpenDialog:l.openDialog,onOpenAttendance:l.setAttendanceArea,onDisabledClick:l.handleDisabledClick},null,8,["sorted-items","unused-subjects","empty-subject-display","is-editing-disabled","content-style","highlighted-cards","onOpenDialog","onOpenAttendance","onDisabledClick"]),n(m,{synced:s.state.synced,"loading-upload":s.loading.upload,"show-random-picker-button":l.showRandomPickerButton,"show-exam-schedule-button":l.showExamScheduleButton,"show-list-card-button":l.showListCardButton,"show-fullscreen-button":l.showFullscreenButton,"is-fullscreen":s.state.isFullscreen,"show-anti-screen-burn-card":l.showAntiScreenBurnCard,"show-test-card-button":l.showTestCardButton,onUpload:l.manualUpload,onShowSyncMessage:l.showSyncMessage,onOpenRandomPicker:l.openRandomPicker,onToggleFullscreen:l.toggleFullscreen,onAddTestCard:l.addTestCard},null,8,["synced","loading-upload","show-random-picker-button","show-exam-schedule-button","show-list-card-button","show-fullscreen-button","is-fullscreen","show-anti-screen-burn-card","show-test-card-button","onUpload","onShowSyncMessage","onOpenRandomPicker","onToggleFullscreen","onAddTestCard"])]),_:1}),d.mobile?x("",!0):(f(),w(p,{key:0,"student-list":s.state.studentList,attendance:s.state.boardData.attendance,"is-editing-disabled":l.isEditingDisabled,onClick:l.setAttendanceArea,onDisabledClick:l.handleDisabledClick},null,8,["student-list","attendance","is-editing-disabled","onClick","onDisabledClick"]))])),n(I,{modelValue:s.state.dialogVisible,"onUpdate:modelValue":e[9]||(e[9]=T=>s.state.dialogVisible=T),"auto-save":l.autoSave,"initial-content":s.state.textarea,title:s.state.dialogTitle,"is-editing-past-data":l.isEditingPastData,"current-date-string":s.state.dateString,onSave:l.handleHomeworkSave},null,8,["modelValue","auto-save","initial-content","title","is-editing-past-data","current-date-string","onSave"]),n(wn,{modelValue:s.state.snackbar,"onUpdate:modelValue":e[10]||(e[10]=T=>s.state.snackbar=T),timeout:2e3},{default:i(()=>[c(g(s.state.snackbarText),1)]),_:1},8,["modelValue"]),n(L,{modelValue:s.state.attendanceDialog,"onUpdate:modelValue":e[11]||(e[11]=T=>s.state.attendanceDialog=T),"student-list":s.state.studentList,attendance:s.state.boardData.attendance,"date-string":s.state.dateString,onSave:l.saveAttendance,onChange:l.handleAttendanceChange},null,8,["modelValue","student-list","attendance","date-string","onSave","onChange"]),n(oe,{ref:"messageLog"},null,512),n($,{"is-today":l.isToday,loading:s.loading.download,"copy-to-today-loading":s.loading.copyToToday,"selected-date":s.state.selectedDateObj,"unread-count":l.unreadCount,onRefresh:l.downloadData,onZoom:l.zoom,onOpenMessages:e[12]||(e[12]=T=>t.$refs.messageLog.drawer=!0),onOpenSettings:e[13]||(e[13]=T=>t.$router.push("/settings")),onDateSelect:l.handleDateSelect,onPrevDay:e[14]||(e[14]=T=>l.navigateDay(-1)),onNextDay:e[15]||(e[15]=T=>l.navigateDay(1)),onCopyToToday:l.copyHomeworkToToday},null,8,["is-today","loading","copy-to-today-loading","selected-date","unread-count","onRefresh","onZoom","onDateSelect","onCopyToToday"]),n(Q),n(ae,{modelValue:s.isChatOpen,"onUpdate:modelValue":e[16]||(e[16]=T=>s.isChatOpen=T),"show-button":!1},null,8,["modelValue"]),n(j,{modelValue:s.urgentTestDialog,"onUpdate:modelValue":e[17]||(e[17]=T=>s.urgentTestDialog=T)},null,8,["modelValue"]),n(ie,{modelValue:s.confirmDialog.show,"onUpdate:modelValue":e[18]||(e[18]=T=>s.confirmDialog.show=T),"max-width":"400"},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,{class:"text-h6"},{default:i(()=>[...e[27]||(e[27]=[c(" 确认保存",-1)])]),_:1}),n(A,null,{default:i(()=>[c(" 您正在修改 "+g(s.state.dateString)+" 的数据,确定要保存吗? ",1)]),_:1}),n(de,null,{default:i(()=>[n(K),n(k,{color:"grey",variant:"text",onClick:s.confirmDialog.reject},{default:i(()=>[...e[28]||(e[28]=[c(" 取消 ",-1)])]),_:1},8,["onClick"]),n(k,{color:"primary",onClick:s.confirmDialog.resolve},{default:i(()=>[...e[29]||(e[29]=[c(" 确认保存",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),n(E,{ref:"randomPicker",attendance:s.state.boardData.attendance,"student-list":s.state.studentList},null,8,["attendance","student-list"]),n(ie,{modelValue:s.urlConfigDialog.show,"onUpdate:modelValue":e[19]||(e[19]=T=>s.urlConfigDialog.show=T),"max-width":"500"},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,{class:"text-h6"},{default:i(()=>[...e[30]||(e[30]=[c(" 确认应用URL配置",-1)])]),_:1}),n(A,null,{default:i(()=>[e[31]||(e[31]=r("p",null,"以下配置将应用于当前班级:",-1)),n(Ke,{density:"compact"},{default:i(()=>[(f(!0),y(N,null,M(s.urlConfigDialog.changes,T=>(f(),w(Me,{key:T.key},{prepend:i(()=>[n(D,{icon:T.icon,class:"mr-2",size:"small"},null,8,["icon"])]),default:i(()=>[n(xn,{class:"d-flex align-center"},{default:i(()=>[r("span",ql,g(T.name),1),n(Ze,{activator:"parent",location:"top"},{default:i(()=>[c(g(T.description||T.key),1)]),_:2},1024)]),_:2},1024),n(Sn,null,{default:i(()=>[r("span",Ql,g(T.oldValue),1),n(D,{class:"mx-1",icon:"mdi-arrow-right",size:"small"}),r("span",Wl,g(T.newValue),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),n(de,null,{default:i(()=>[n(K),n(k,{color:"grey",variant:"text",onClick:s.urlConfigDialog.cancelHandler},{default:i(()=>[...e[32]||(e[32]=[c(" 取消 ",-1)])]),_:1},8,["onClick"]),n(k,{color:"primary",onClick:s.urlConfigDialog.confirmHandler},{default:i(()=>[...e[33]||(e[33]=[c(" 确认应用 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),n(ie,{modelValue:s.notificationDetailDialog,"onUpdate:modelValue":e[22]||(e[22]=T=>s.notificationDetailDialog=T),"max-width":"600"},{default:i(()=>[s.currentNotification?(f(),w(_,{key:0},{default:i(()=>[n(Y,{class:we(["headline",s.currentNotification.isUrgent?"text-error":"text-primary"])},{default:i(()=>[c(g(s.currentNotification.isUrgent?"强调通知":"通知详情"),1)]),_:1},8,["class"]),n(A,{class:"text-h5 py-4"},{default:i(()=>[c(g(s.currentNotification.message),1)]),_:1}),n(de,null,{default:i(()=>[n(k,{color:"error",variant:"text",onClick:e[20]||(e[20]=T=>l.removePersistentNotification(s.currentNotification.id))},{default:i(()=>[...e[34]||(e[34]=[c("删除",-1)])]),_:1}),n(K),n(k,{color:"primary",onClick:e[21]||(e[21]=T=>s.notificationDetailDialog=!1)},{default:i(()=>[...e[35]||(e[35]=[c("关闭",-1)])]),_:1})]),_:1})]),_:1})):x("",!0)]),_:1},8,["modelValue"]),e[36]||(e[36]=r("br",null,null,-1)),e[37]||(e[37]=r("br",null,null,-1)),e[38]||(e[38]=r("br",null,null,-1))],64)}const wo=te($l,[["render",Gl]]);export{wo as default}; +`).filter(d=>d.trim()).length+1)*.8)})}return t.sort((e,a)=>e.order-a.order),t},unusedSubjects(){const t=Object.keys(this.state.boardData.homework).filter(e=>{var a;return(a=this.state.boardData.homework[e].content)==null?void 0:a.trim()});return this.state.availableSubjects.filter(e=>!t.includes(e.name)).sort((e,a)=>e.order-a.order)},emptySubjects(){return this.emptySubjectDisplay!=="button"?[]:this.unusedSubjects},autoSave(){return C("edit.autoSave")},blockNonTodayAutoSave(){return C("edit.blockNonTodayAutoSave")},isToday(){const t=(()=>{const e=new Date,a=e.getFullYear(),d=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${a}${d}${s}`})();return this.state.dateString===t},canAutoSave(){return this.autoSave&&(!this.blockNonTodayAutoSave||this.isToday)},needConfirmSave(){return!this.isToday&&this.confirmNonTodaySave},shouldShowBlockedMessage(){return!this.isToday&&this.autoSave&&this.blockNonTodayAutoSave},refreshBeforeEdit(){return C("edit.refreshBeforeEdit")},emptySubjectDisplay(){return C("display.emptySubjectDisplay")},dynamicSort(){return C("display.dynamicSort")},isEditingDisabled(){if(this.state.uploadLoading||this.state.downloadLoading)return!0;const t=this.$refs.studentNameManager;return!!(t!=null&&t.isReadOnly||!this.canEditCurrentDate)},unreadCount(){var t;return((t=this.$refs.messageLog)==null?void 0:t.unreadCount)||0},showRandomPickerButton(){return C("randomPicker.enabled")},showListCardButton(){return C("display.showListCard")},confirmNonTodaySave(){return C("edit.confirmNonTodaySave")},blockPastDataEdit(){return C("edit.blockPastDataEdit")},shouldShowSaveConfirm(){return!this.isToday&&this.confirmNonTodaySave},shouldBlockAutoSave(){return!this.isToday&&this.autoSave&&this.blockNonTodayAutoSave},canEditCurrentDate(){return this.isToday?!0:!this.blockPastDataEdit},isEditingPastData(){return!this.isToday},showFullscreenButton(){return C("display.showFullscreenButton")},showExamScheduleButton(){return C("display.showExamScheduleButton")},showAntiScreenBurnCard(){return C("display.showAntiScreenBurnCard")},showTestCardButton(){return C("developer.enabled")},shouldShowInit(){var s;const t=C("server.provider"),e=t==="kv-server"||t==="classworkscloud",a=C("server.kvToken"),d=((s=this.$route)==null?void 0:s.path)==="/";return this.settingsTick,d&&e&&(!a||a==="")},shouldShowUrgentTestButton(){const t=C("server.provider");return!(t==="kv-server"||t==="classworkscloud")||!C("server.kvToken")||!this.tokenInfo?!1:this.tokenInfo.deviceType==="teacher"||this.tokenInfo.deviceType==="classroom"},subjectOrder(){return[...this.state.availableSubjects].sort((t,e)=>t.order-e.order).map(t=>t.name)}},watch:{homeworkData:{handler(){this.$nextTick(()=>{this.$refs.waterfall&&this.$refs.waterfall.reflow()})},deep:!0},"$vuetify.display.width":{handler(){this.throttledReflow()},deep:!0},"state.attendanceDialog":{handler(t){this.handleAttendanceDialogClose(t)}}},created(){this.debouncedUpload=Je(this.uploadData,2e3),this.debouncedAttendanceSave=Je(async()=>{this.autoSave&&await this.trySave(!0)},2e3),this.throttledReflow=Bl(()=>{this.$refs.gridContainer&&this.optimizeGridLayout(this.sortedItems)},200)},async mounted(){try{this.updateBackendUrl(),await this.initializeData(),await this.loadDeviceInfo(),this.setupAutoRefresh(),this.unwatchSettings=xt(()=>{this.updateSettings()}),this.$nextTick(()=>{const t=this.$refs.studentNameManager;t&&(this.studentNameInfo.name=t.currentStudentName,this.studentNameInfo.isStudent=t.isStudentToken,this.studentNameInfo.openDialog=()=>t.openDialog(),this.$watch(()=>t.currentStudentName,e=>{this.studentNameInfo.name=e}),this.$watch(()=>t.isStudentToken,e=>{this.studentNameInfo.isStudent=e}))}),document.addEventListener("fullscreenchange",this.fullscreenChangeHandler),document.addEventListener("webkitfullscreenchange",this.fullscreenChangeHandler),document.addEventListener("mozfullscreenchange",this.fullscreenChangeHandler),document.addEventListener("MSFullscreenChange",this.fullscreenChangeHandler),this.checkHashForRandomPicker(),window.addEventListener("hashchange",this.checkHashForRandomPicker),this.setupRealtimeChannel(),this.$nextTick(()=>{this.updateTokenDisplayInfo()}),await this.loadTokenInfo(),this.loadPersistentNotifications()}catch(t){console.error("初始化失败:",t),this.showError("初始化失败,请刷新页面重试")}},beforeUnmount(){this.unwatchSettings&&this.unwatchSettings(),this.state.refreshInterval&&clearInterval(this.state.refreshInterval),document.removeEventListener("fullscreenchange",this.fullscreenChangeHandler),document.removeEventListener("webkitfullscreenchange",this.fullscreenChangeHandler),document.removeEventListener("mozfullscreenchange",this.fullscreenChangeHandler),document.removeEventListener("MSFullscreenChange",this.fullscreenChangeHandler),window.removeEventListener("hashchange",this.checkHashForRandomPicker);try{this.$offKvChanged&&typeof this.$offKvChanged=="function"&&(this.$offKvChanged(),this.$offKvChanged=null),this.$offDeviceEvent&&typeof this.$offDeviceEvent=="function"&&(this.$offDeviceEvent(),this.$offDeviceEvent=null),this.$offConnect&&typeof this.$offConnect=="function"&&(this.$offConnect(),this.$offConnect=null),In()}catch(t){console.warn("主页面事件清理失败:",t)}},methods:{async loadDeviceInfo(){var t;try{const e=C("server.provider");if(!(e==="kv-server"||e==="classworkscloud"))return;const d=await $n.loadNamespaceInfo();if(d&&d.success===!1)return;this.state.namespaceInfo=d||null,this.state.deviceName=((t=d==null?void 0:d.account)==null?void 0:t.deviceName)||""}catch(e){console.warn("加载设备信息失败:",e)}},async loadTokenInfo(){try{const t=C("server.provider");if(!(t==="kv-server"||t==="classworkscloud"))return;const a=C("server.kvToken");if(!a)return;const d=C("server.domain");if(!d)return;const s=await Ce.get(`${d}/kv/_token`,{headers:{Authorization:`Bearer ${a}`}});this.tokenInfo=s.data,console.log("Token info loaded:",this.tokenInfo)}catch(t){console.warn("Failed to load token info:",t),this.tokenInfo=null}},updateTokenDisplayInfo(){const t=this.$refs.studentNameManager;if(!t||!t.hasToken){this.tokenDisplayInfo.show=!1,this.tokenDisplayInfo.readonly=!1;return}const e=t.displayName,a=t.isReadOnly,d=t.isStudentToken;if(this.tokenDisplayInfo.readonly=a,!d){this.tokenDisplayInfo.show=!1;return}this.tokenDisplayInfo.text=e,this.tokenDisplayInfo.color="primary",this.tokenDisplayInfo.icon="mdi-account",this.tokenDisplayInfo.disabled=a,this.tokenDisplayInfo.show=!0},handleTokenChipClick(){console.log("Token chip clicked");const t=this.$refs.studentNameManager;console.log("Manager:",t),console.log("Is student token:",t==null?void 0:t.isStudentToken),t&&t.isStudentToken?(console.log("Opening dialog..."),t.openDialog()):console.log("Cannot open dialog - conditions not met")},ensureDate(t){if(t instanceof Date)return t;if(typeof t=="string"){const e=new Date(t);if(!isNaN(e.getTime()))return e}return new Date},formatDate(t){const e=this.ensureDate(t),a=e.getFullYear(),d=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${a}${d}${s}`},formatTime(t){return t?new Date(t).toLocaleString():""},getToday(){return new Date},async initializeData(){this.parsePreconfigData();const t=await this.parseUrlConfig(),a=new URLSearchParams(window.location.search).get("date"),d=this.getToday();let s=d;if(a){if(/^\d{8}$/.test(a)){const l=a.substring(0,4),o=a.substring(4,6),u=a.substring(6,8);s=new Date(`${l}-${o}-${u}`)}else s=new Date(a);isNaN(s.getTime())&&(s=d)}if(this.state.dateString=this.formatDate(s),this.state.selectedDate=this.state.dateString,this.state.selectedDateObj=s,this.state.isToday=this.formatDate(s)===this.formatDate(d),!t){this.provider=C("server.provider");const l=C("server.classNumber");this.state.classNumber=l}await Promise.all([this.downloadData(),this.loadConfig()])},async downloadData(t=!1){var e,a,d;if(!this.loading.download)try{this.loading.download=!0;const s=await fe.loadData("classworks-data-"+this.state.dateString);if(s.success==!1)if(s.error.code==="NOT_FOUND")this.state.showNoDataMessage=!0,this.state.noDataMessage=s.error.message,(t||!this.state.boardData||!this.state.boardData.homework&&!this.state.boardData.attendance)&&(this.state.boardData={homework:{},attendance:{absent:[],late:[],exclude:[]}});else throw new Error(s.error.message);else this.state.boardData={homework:s.homework||{},attendance:{absent:((e=s.attendance)==null?void 0:e.absent)||[],late:((a=s.attendance)==null?void 0:a.late)||[],exclude:((d=s.attendance)==null?void 0:d.exclude)||[]}},this.state.synced=!0,this.state.showNoDataMessage=!1,this.$message.success("下载成功","数据已更新")}catch(s){console.error("数据加载失败:",s),this.$message.error("下载失败",s.message),(t||!this.state.boardData||!this.state.boardData.homework&&!this.state.boardData.attendance)&&(this.state.boardData={homework:{},attendance:{absent:[],late:[],exclude:[]}})}finally{this.loading.download=!1}},async trySave(t=!1){if(t&&!this.canAutoSave)return this.shouldShowBlockedMessage&&this.showMessage("需要手动保存","已禁止自动保存非当天数据","warning"),!1;if(!t&&this.needConfirmSave)try{await this.showConfirmDialog()}catch{return!1}try{return await this.uploadData(),!0}catch(e){return this.$message.error("保存失败",e.message||"请重试"),!1}},async handleClose(){var a;if(!this.currentEditSubject)return;const t=this.state.textarea.trim(),e=((a=this.state.boardData.homework[this.currentEditSubject])==null?void 0:a.content)||"";t!==e.trim()&&(this.state.boardData.homework[this.currentEditSubject].type==="custom"?this.state.boardData.homework[this.currentEditSubject].content=t:this.state.boardData.homework[this.currentEditSubject]={content:t},this.state.synced=!1,this.autoSave&&await this.trySave(!0)),this.state.dialogVisible=!1},async uploadData(){if(!this.loading.upload)try{this.loading.upload=!0;const t=await fe.saveData("classworks-data-"+this.state.dateString,this.state.boardData);if(t.success==!1)throw new Error(t.error.message);this.state.synced=!0,this.$message.success(t.message||"保存成功")}finally{this.loading.upload=!1}},async loadConfig(){try{try{const t=await fe.loadData("classworks-list-main");t.success!=!1&&Array.isArray(t)&&(this.state.studentList=t.map(e=>e.name))}catch(t){console.warn("Failed to load student list from dedicated key, falling back to config",t)}await this.loadSubjects()}catch(t){console.error("加载配置失败:",t),this.$message.error("加载配置失败",t.message)}},async loadSubjects(){try{const t=await fe.loadData("classworks-config-subject");t&&Array.isArray(t)&&(this.state.availableSubjects=t)}catch(t){console.warn("Failed to load subject configuration:",t)}},showSyncMessage(){this.$message.success("数据已同步","数据已完成与服务器同步")},async openDialog(t){var e;if(this.isEditingDisabled){const a=this.$refs.studentNameManager;a!=null&&a.isReadOnly?this.$message.warning("无法编辑","当前使用的是只读令牌"):this.canEditCurrentDate?this.$message.warning("无法编辑","数据加载中,请稍候"):this.$message.warning("无法编辑","已禁止编辑过往数据");return}if(t.startsWith("custom-")){this.currentEditSubject=t,this.state.dialogTitle=this.state.boardData.homework[t].name,this.state.textarea=this.state.boardData.homework[t].content,this.state.dialogVisible=!0;return}if(this.refreshBeforeEdit)try{await this.downloadData()}catch(a){console.error("刷新数据失败:",a),this.$message.error("刷新数据失败,可能显示的不是最新数据")}this.currentEditSubject=t,this.state.boardData.homework[t]||(this.state.boardData.homework[t]={content:""}),this.state.dialogTitle=((e=this.state.availableSubjects.find(a=>a.name===t))==null?void 0:e.name)||t,this.state.textarea=this.state.boardData.homework[t].content,this.state.dialogVisible=!0},async handleHomeworkSave(t){this.currentEditSubject&&(this.state.boardData.homework[this.currentEditSubject].type==="custom"?this.state.boardData.homework[this.currentEditSubject].content=t:this.state.boardData.homework[this.currentEditSubject]={content:t},this.state.synced=!1,this.autoSave&&await this.trySave(!0))},setAttendanceArea(){if(this.isEditingDisabled){this.handleDisabledClick();return}this.state.attendanceDialog=!0},handleDisabledClick(){const t=this.$refs.studentNameManager;t!=null&&t.isReadOnly?this.$message.warning("无法编辑","当前使用的是只读令牌"):this.canEditCurrentDate?this.$message.warning("无法编辑","数据加载中,请稍候"):this.$message.warning("无法编辑","已禁止编辑过往数据")},zoom(t){t==="up"&&this.state.fontSize<100?this.state.fontSize+=2:t==="out"&&this.state.fontSize>16&&(this.state.fontSize-=2),this.state.contentStyle={"font-size":`${this.state.fontSize}px`},pe("font.size",this.state.fontSize)},updateBackendUrl(){const t=C("server.provider"),e=C("server.classNumber");this.provider=t,this.state.classNumber=e},setupAutoRefresh(){const t=C("refresh.auto"),e=C("refresh.interval");this.state.refreshInterval&&clearInterval(this.state.refreshInterval),t&&(this.state.refreshInterval=setInterval(()=>{this.shouldSkipRefresh()||(this.downloadData(),this.loadPersistentNotifications())},e*1e3))},shouldSkipRefresh(){return!!(this.state.dialogVisible||this.state.attendanceDialog||this.confirmDialog.show||this.state.datePickerDialog||this.loading.upload||this.loading.download||!this.state.synced)},updateSettings(){this.state.fontSize=C("font.size"),this.state.contentStyle={"font-size":`${this.state.fontSize}px`},this.setupAutoRefresh(),this.updateBackendUrl(),this.loadDeviceInfo(),this.loadTokenInfo(),this.settingsTick++},async handleDateSelect(t){if(t)try{const e=this.ensureDate(t),a=this.formatDate(e);if(a===this.state.dateString)return;this.state.dateString=a,this.state.selectedDate=a,this.state.selectedDateObj=e,this.state.isToday=a===this.formatDate(this.getToday()),await Promise.all([this.downloadData(!0),this.loadSubjects()])}catch(e){console.error("Date processing error:",e),this.$message.error("日期处理错误","请重新选择日期")}},setupRealtimeChannel(){try{const t=C("server.kvToken");if(!t){console.warn("未配置 KV Token,无法加入实时频道");return}Ct(),Xe(t),this.$offConnect=Vn(()=>Xe(t)),this.debouncedRealtimeRefresh||(this.debouncedRealtimeRefresh=Je(async()=>{var m,p,I;const d=JSON.parse(JSON.stringify(this.state.boardData.homework));await this.downloadData();const s=new Date,l=String(s.getHours()).padStart(2,"0"),o=String(s.getMinutes()).padStart(2,"0"),u=String(s.getSeconds()).padStart(2,"0");(m=this.$message)==null||m.info("数据已更新",`已于 ${l}:${o}:${u} 自动刷新`);const h={};for(const L in this.state.boardData.homework){const oe=((p=d[L])==null?void 0:p.content)||"",$=((I=this.state.boardData.homework[L])==null?void 0:I.content)||"";oe!==$&&(h[L]=!0)}for(const L in d)this.state.boardData.homework[L]||(h[L]=!0);this.highlightedCards=h,setTimeout(()=>{this.highlightedCards={}},1e4)},800));const e=d=>{var l;if(!d)return;if(d.key==="notification-list"){this.loadPersistentNotifications();return}const s=`classworks-data-${this.state.dateString}`;d.key===s&&(d.action!=="upsert"&&d.action!=="delete"||(l=this.debouncedRealtimeRefresh)==null||l.call(this,d.key))},a=d=>{let s=d;d.content&&d.timestamp&&(s={uuid:d.senderId||"realtime",key:d.content.key,action:d.content.action,created:d.content.created,updatedAt:d.content.updatedAt||d.timestamp,deletedAt:d.content.deletedAt,batch:d.content.batch}),e(s)};this.$offKvChanged=be("kv-key-changed",a),this.deviceEventHandler=Dt({onKvChanged:e,enableLegacySupport:!0}),this.$offDeviceEvent=be("device-event",this.deviceEventHandler)}catch(t){console.warn("实时频道初始化失败",t)}},async saveAttendance(){try{await this.trySave(!0),this.state.attendanceDialog=!1}catch(t){console.error("保存出勤状态失败:",t),this.$message.error("保存失败","请重试")}},showMessage(t,e="",a="success"){this.$message[a](t,e)},updateSortedItemsCache(t,e){this._sortedItemsCache={key:t,value:e}},addTestCard(){const t=Date.now().toString();this.state.boardData.homework[`custom-${t}`]={name:"测试卡片",content:`这是一个测试卡片 +可以用来测试布局`,type:"custom"},this.state.synced=!1},showConfirmDialog(){return new Promise((t,e)=>{this.confirmDialog={show:!0,resolve:()=>{this.confirmDialog.show=!1,t()},reject:()=>{this.confirmDialog.show=!1,e(new Error("用户取消保存"))}}})},confirmSave(){this.confirmDialog.show=!1,this.confirmDialog.resolve&&this.confirmDialog.resolve(!0)},cancelSave(){this.confirmDialog.show=!1,this.confirmDialog.reject&&this.confirmDialog.reject(new Error("用户取消保存"))},async manualUpload(){return this.trySave(!1)},handleAttendanceChange(){this.state.synced=!1,this.debouncedAttendanceSave()},async handleAttendanceDialogClose(t){!t&&!this.state.synced&&await this.trySave(!0)},toggleFullscreen(){this.state.isFullscreen?this.exitFullscreen():this.enterFullscreen()},enterFullscreen(){const t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},exitFullscreen(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},fullscreenChangeHandler(){this.state.isFullscreen=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)},openRandomPicker(){this.$refs.randomPicker&&this.$refs.randomPicker.open()},checkHashForRandomPicker(){window.location.hash==="#random-picker"&&this.$nextTick(()=>{console.log("打开随机点名"),window.location.hash="",this.openRandomPicker()})},parseUrlConfig(){try{const e=new URLSearchParams(window.location.search).get("config");if(!e)return!1;try{const a=atob(e),d=Uint8Array.from(a,m=>m.charCodeAt(0)),s=new TextDecoder().decode(d),l=JSON.parse(s);console.log("从URL读取配置:",l);const o=[],u={},h={};return this.processSpecialSettings(l,o,u),this.processStandardSettings(l,o,u,h),Object.keys(u).length===0?(console.log("URL配置与当前配置相同,无需应用"),!1):new Promise(m=>{this.urlConfigDialog={show:!0,config:l,changes:o,validSettings:u,icons:h,confirmHandler:()=>{this.urlConfigDialog.show=!1,this.applyUrlConfig(u),m(!0)},cancelHandler:()=>{this.urlConfigDialog.show=!1,m(!1)}}})}catch(a){return console.error("解析URL配置错误:",a),this.$message.error("URL配置错误","无法解析配置数据"),!1}}catch(t){return console.error("处理URL配置错误:",t),!1}},processSpecialSettings(t,e,a){var d,s;if(t.classNumber!==void 0){const l=C("server.classNumber");t.classNumber!==l&&(e.push({key:"server.classNumber",name:"班级",oldValue:l,newValue:t.classNumber,description:((d=Ue["server.classNumber"])==null?void 0:d.description)||"班级编号",icon:((s=Ue["server.classNumber"])==null?void 0:s.icon)||"mdi-account-group"}),a["server.classNumber"]=t.classNumber)}t.date!==void 0&&t.date!==this.state.dateString&&(e.push({key:"date",name:"日期",oldValue:this.state.dateString,newValue:t.date,description:"查看的日期",icon:"mdi-calendar"}),a.date=t.date),t.subjects&&Array.isArray(t.subjects)&&(e.push({key:"subjects",name:"科目列表",oldValue:`${this.state.availableSubjects.length}个科目`,newValue:`${t.subjects.length}个科目`,description:"可用科目列表",icon:"mdi-notebook"}),a.subjects=t.subjects)},processStandardSettings(t,e,a,d){Object.entries(t).forEach(([s,l])=>{if(["classNumber","date","subjects"].includes(s))return;let o=s,u=Ue[s];if(!u&&!s.includes(".")){const h=["server.","display.","theme.","edit.","refresh.","font.","randomPicker."];for(const m of h){const p=`${m}${s}`;if(Ue[p]){o=p,u=Ue[p];break}}}if(u){let h=this.convertValueToCorrectType(l,u.type);if(u.validate&&!u.validate(h)){console.warn(`URL配置项 ${o} 的值无效: ${l}`);return}const m=C(o);h!==m&&(e.push({key:o,name:this.getSettingDisplayName(o),oldValue:this.formatSettingValue(m),newValue:this.formatSettingValue(h),description:u.description||o,icon:u.icon||"mdi-cog"}),a[o]=h,d[o]=u.icon||"mdi-cog")}else e.push({key:s,name:this.getSettingDisplayName(s),oldValue:"未知",newValue:this.formatSettingValue(l),description:"自定义配置项",icon:"mdi-cog-outline"}),a[s]=l,d[s]="mdi-cog-outline"})},convertValueToCorrectType(t,e){return e==="boolean"?!!t:e==="number"?Number(t):String(t)},formatSettingValue(t){return typeof t=="boolean"?t?"开启":"关闭":t===""||t===null||t===void 0?"空":t.toString()},getSettingDisplayName(t){const e=t.split("."),a=e[e.length-1];return{provider:"数据提供方",domain:"服务器域名",classNumber:"班级编号",emptySubjectDisplay:"空科目显示方式",dynamicSort:"动态排序",showRandomButton:"随机按钮",showFullscreenButton:"全屏按钮",cardHoverEffect:"卡片悬浮效果",enhancedTouchMode:"增强触摸模式",showAntiScreenBurnCard:"防烧屏卡片",mode:"主题模式",size:"字体大小",autoSave:"自动保存",blockNonTodayAutoSave:"禁止自动保存非当日",refreshBeforeEdit:"编辑前刷新",confirmNonTodaySave:"非当日保存确认",auto:"自动刷新",interval:"刷新间隔"}[a]||a},safeBase64Decode(t){try{return Bn.decode(t)}catch(e){throw console.error("Base64解码错误:",e),new Error("无法解码配置数据")}},applyUrlConfig(t){for(const[e,a]of Object.entries(t)){if(e==="date"){this.handleDateSelect(a);continue}if(e==="subjects"){this.state.availableSubjects=a;continue}pe(e,a),e==="server.classNumber"&&(this.state.classNumber=a)}return this.updateBackendUrl(),this.$message.success("URL配置已应用","已从URL加载配置"),!0},navigateDay(t){const e=new Date(this.state.selectedDateObj);e.setDate(e.getDate()+t),this.handleDateSelect(e)},async copyHomeworkToToday(){if(!this.loading.copyToToday)try{this.loading.copyToToday=!0;const t=this.state.dateString,e=JSON.parse(JSON.stringify(this.state.boardData.homework)),a=this.getToday(),d=this.formatDate(a);this.state.dateString=d,await this.downloadData();const s={};for(const o in e)e[o]&&e[o].content&&(e[o].type==="custom"?s[o]=JSON.parse(JSON.stringify(e[o])):s[o]={content:e[o].content});this.state.boardData.homework=s,this.state.synced=!1,await this.uploadData(),this.state.selectedDate=d,this.state.selectedDateObj=a,this.state.isToday=!0;const l=new URL(window.location);l.searchParams.delete("date"),window.history.pushState({},"",l),this.$message.success("复制成功",`已将 ${t} 的作业内容复制到今天(已替换原有作业)`)}catch(t){console.error("复制作业失败:",t),this.$message.error("复制失败",t.message||"请重试")}finally{this.loading.copyToToday=!1}},parsePreconfigData(){try{const t=new URLSearchParams(window.location.search),e=t.get("namespace"),a=t.get("authCode")||t.get("auth_code"),d=t.get("autoExecute")||t.get("auto_execute");e&&(this.preconfigData.namespace=e,this.preconfigData.authCode=a,this.preconfigData.autoOpen=!0,this.preconfigData.autoExecute=this.parseBoolean(d),console.log("检测到预配数据:",{namespace:this.preconfigData.namespace,hasAuthCode:!!this.preconfigData.authCode,autoExecute:this.preconfigData.autoExecute}),this.cleanupUrlParams(["namespace","authCode","auth_code","autoExecute","auto_execute"]))}catch(t){console.error("解析预配数据失败:",t)}},parseBoolean(t){if(!t)return!1;const e=t.toLowerCase();return e==="true"||e==="1"||e==="yes"},cleanupUrlParams(t){try{const e=new URL(window.location);let a=!1;t.forEach(d=>{e.searchParams.has(d)&&(e.searchParams.delete(d),a=!0)}),a&&window.history.replaceState({},document.title,e.toString())}catch(e){console.error("清理URL参数失败:",e)}},async loadPersistentNotifications(){try{const t=await fe.loadData("notification-list");t&&Array.isArray(t)?this.persistentNotifications=t:t&&t.success!==!1&&Array.isArray(t.data)?this.persistentNotifications=t.data:this.persistentNotifications=[]}catch(t){console.error("加载常驻通知失败",t)}},showNotificationDetail(t){this.currentNotification=t,this.notificationDetailDialog=!0},async removePersistentNotification(t){this.persistentNotifications=this.persistentNotifications.filter(a=>a.id!==t);const e=this.persistentNotifications.length>0?this.persistentNotifications:{};await fe.saveData("notification-list",e),this.notificationDetailDialog=!1}}},Ol={key:2,class:"d-flex"},jl={class:"text-h6 text-truncate font-weight-bold"},Kl={class:"text-h4 font-weight-medium mb-4",style:{"line-height":"1.5"}},Hl={class:"text-subtitle-1 text-grey"},ql={class:"text-subtitle-1"},Ql={class:"text-grey-darken-1"},Wl={class:"text-primary font-weight-medium"};function Gl(t,e,a,d,s,l){const o=Bt,u=Rt,h=Lt,m=zt,p=Pt,I=Mt,L=Ft,oe=Vt,$=Ut,Q=At,ae=qe,j=Et,E=It;return f(),y(N,null,[n(jn,{class:"no-select"},{append:i(()=>[s.tokenDisplayInfo.readonly?(f(),w(B,{key:0,class:"mx-2",color:"warning","prepend-icon":"mdi-lock-alert",variant:"tonal"},{default:i(()=>[...e[23]||(e[23]=[c(" 只读 ",-1)])]),_:1})):x("",!0),s.tokenDisplayInfo.show?(f(),w(B,{key:1,style:Ie({cursor:s.tokenDisplayInfo.disabled?"default":"pointer"}),class:"mx-2",color:"primary","prepend-icon":"mdi-account",variant:"tonal",onClick:l.handleTokenChipClick},{default:i(()=>[c(g(s.tokenDisplayInfo.text),1)]),_:1},8,["style","onClick"])):x("",!0),l.shouldShowUrgentTestButton?(f(),w(k,{key:2,"prepend-icon":"mdi-chat",onClick:e[0]||(e[0]=T=>s.urgentTestDialog=!0),variant:"tonal"},{default:i(()=>[...e[24]||(e[24]=[c("发送通知",-1)])]),_:1})):x("",!0),n(k,{icon:"mdi-chat",variant:"text",onClick:e[1]||(e[1]=T=>s.isChatOpen=!0)}),n(k,{badge:l.unreadCount||void 0,"badge-color":l.unreadCount?"error":void 0,icon:"mdi-bell",variant:"text",onClick:e[2]||(e[2]=T=>t.$refs.messageLog.drawer=!0)},null,8,["badge","badge-color"]),n(k,{icon:"mdi-cog",variant:"text",onClick:e[3]||(e[3]=T=>t.$router.push("/settings"))})]),default:i(()=>[n(On,null,{default:i(()=>[c(g(l.titleText),1)]),_:1}),n(K)]),_:1}),l.shouldShowInit?(f(),w(o,{key:0,preconfig:s.preconfigData,onDone:e[4]||(e[4]=T=>s.settingsTick++)},null,8,["preconfig"])):x("",!0),l.shouldShowInit?x("",!0):(f(),w(u,{key:1,ref:"studentNameManager",onTokenInfoUpdated:l.updateTokenDisplayInfo},null,8,["onTokenInfoUpdated"])),l.shouldShowInit?x("",!0):(f(),y("div",Ol,[n(_t,{class:"main-window flex-grow-1 no-select bloom-container",fluid:""},{default:i(()=>[s.persistentNotifications.length>0?(f(),w(ge,{key:0,class:"mb-4"},{default:i(()=>[n(se,{cols:"12"},{default:i(()=>[(f(!0),y(N,null,M(s.persistentNotifications,T=>(f(),w(_,{key:T.id,color:T.isUrgent?"error":"primary",class:"mb-2 cursor-pointer",variant:"tonal",onClick:ve=>l.showNotificationDetail(T)},{default:i(()=>[n(A,{class:"d-flex align-center py-3"},{default:i(()=>[r("span",jl,g(T.message),1),n(K),n(k,{icon:"mdi-chevron-right",variant:"text"})]),_:2},1024)]),_:2},1032,["color","onClick"]))),128))]),_:1})]),_:1})):x("",!0),n(ie,{modelValue:s.notificationDetailDialog,"onUpdate:modelValue":e[8]||(e[8]=T=>s.notificationDetailDialog=T),"max-width":"700",scrollable:""},{default:i(()=>[s.currentNotification?(f(),w(_,{key:0,class:"rounded-xl"},{default:i(()=>[n(Y,{class:"d-flex align-center pa-4 text-h5"},{default:i(()=>[r("span",{class:we([s.currentNotification.isUrgent?"text-error":"","font-weight-bold"])},g(s.currentNotification.isUrgent?"强调通知":"通知详情"),3),n(K),n(k,{icon:"mdi-close",variant:"text",onClick:e[5]||(e[5]=T=>s.notificationDetailDialog=!1)})]),_:1}),n(xe),n(A,{class:"pa-6"},{default:i(()=>[r("div",Kl,g(s.currentNotification.message),1),r("div",Hl," 发布时间:"+g(l.formatTime(s.currentNotification.timestamp)),1)]),_:1}),n(xe),n(de,{class:"pa-4"},{default:i(()=>[n(k,{color:"error","prepend-icon":"mdi-delete",size:"x-large",variant:"tonal",class:"px-6",onClick:e[6]||(e[6]=T=>l.removePersistentNotification(s.currentNotification.id))},{default:i(()=>[...e[25]||(e[25]=[c(" 删除通知 ",-1)])]),_:1}),n(K),n(k,{color:"primary",size:"x-large",variant:"elevated",class:"px-8",onClick:e[7]||(e[7]=T=>s.notificationDetailDialog=!1)},{default:i(()=>[...e[26]||(e[26]=[c(" 关闭 ",-1)])]),_:1})]),_:1})]),_:1})):x("",!0)]),_:1},8,["modelValue"]),n(h,{"sorted-items":l.sortedItems,"unused-subjects":l.unusedSubjects,"empty-subject-display":l.emptySubjectDisplay,"is-editing-disabled":l.isEditingDisabled,"content-style":s.state.contentStyle,"highlighted-cards":s.highlightedCards,onOpenDialog:l.openDialog,onOpenAttendance:l.setAttendanceArea,onDisabledClick:l.handleDisabledClick},null,8,["sorted-items","unused-subjects","empty-subject-display","is-editing-disabled","content-style","highlighted-cards","onOpenDialog","onOpenAttendance","onDisabledClick"]),n(m,{synced:s.state.synced,"loading-upload":s.loading.upload,"show-random-picker-button":l.showRandomPickerButton,"show-exam-schedule-button":l.showExamScheduleButton,"show-list-card-button":l.showListCardButton,"show-fullscreen-button":l.showFullscreenButton,"is-fullscreen":s.state.isFullscreen,"show-anti-screen-burn-card":l.showAntiScreenBurnCard,"show-test-card-button":l.showTestCardButton,onUpload:l.manualUpload,onShowSyncMessage:l.showSyncMessage,onOpenRandomPicker:l.openRandomPicker,onToggleFullscreen:l.toggleFullscreen,onAddTestCard:l.addTestCard},null,8,["synced","loading-upload","show-random-picker-button","show-exam-schedule-button","show-list-card-button","show-fullscreen-button","is-fullscreen","show-anti-screen-burn-card","show-test-card-button","onUpload","onShowSyncMessage","onOpenRandomPicker","onToggleFullscreen","onAddTestCard"])]),_:1}),d.mobile?x("",!0):(f(),w(p,{key:0,"student-list":s.state.studentList,attendance:s.state.boardData.attendance,"is-editing-disabled":l.isEditingDisabled,onClick:l.setAttendanceArea,onDisabledClick:l.handleDisabledClick},null,8,["student-list","attendance","is-editing-disabled","onClick","onDisabledClick"]))])),n(I,{modelValue:s.state.dialogVisible,"onUpdate:modelValue":e[9]||(e[9]=T=>s.state.dialogVisible=T),"auto-save":l.autoSave,"initial-content":s.state.textarea,title:s.state.dialogTitle,"is-editing-past-data":l.isEditingPastData,"current-date-string":s.state.dateString,onSave:l.handleHomeworkSave},null,8,["modelValue","auto-save","initial-content","title","is-editing-past-data","current-date-string","onSave"]),n(wn,{modelValue:s.state.snackbar,"onUpdate:modelValue":e[10]||(e[10]=T=>s.state.snackbar=T),timeout:2e3},{default:i(()=>[c(g(s.state.snackbarText),1)]),_:1},8,["modelValue"]),n(L,{modelValue:s.state.attendanceDialog,"onUpdate:modelValue":e[11]||(e[11]=T=>s.state.attendanceDialog=T),"student-list":s.state.studentList,attendance:s.state.boardData.attendance,"date-string":s.state.dateString,onSave:l.saveAttendance,onChange:l.handleAttendanceChange},null,8,["modelValue","student-list","attendance","date-string","onSave","onChange"]),n(oe,{ref:"messageLog"},null,512),n($,{"is-today":l.isToday,loading:s.loading.download,"copy-to-today-loading":s.loading.copyToToday,"selected-date":s.state.selectedDateObj,"unread-count":l.unreadCount,onRefresh:l.downloadData,onZoom:l.zoom,onOpenMessages:e[12]||(e[12]=T=>t.$refs.messageLog.drawer=!0),onOpenSettings:e[13]||(e[13]=T=>t.$router.push("/settings")),onDateSelect:l.handleDateSelect,onPrevDay:e[14]||(e[14]=T=>l.navigateDay(-1)),onNextDay:e[15]||(e[15]=T=>l.navigateDay(1)),onCopyToToday:l.copyHomeworkToToday},null,8,["is-today","loading","copy-to-today-loading","selected-date","unread-count","onRefresh","onZoom","onDateSelect","onCopyToToday"]),n(Q),n(ae,{modelValue:s.isChatOpen,"onUpdate:modelValue":e[16]||(e[16]=T=>s.isChatOpen=T),"show-button":!1},null,8,["modelValue"]),n(j,{modelValue:s.urgentTestDialog,"onUpdate:modelValue":e[17]||(e[17]=T=>s.urgentTestDialog=T)},null,8,["modelValue"]),n(ie,{modelValue:s.confirmDialog.show,"onUpdate:modelValue":e[18]||(e[18]=T=>s.confirmDialog.show=T),"max-width":"400"},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,{class:"text-h6"},{default:i(()=>[...e[27]||(e[27]=[c(" 确认保存",-1)])]),_:1}),n(A,null,{default:i(()=>[c(" 您正在修改 "+g(s.state.dateString)+" 的数据,确定要保存吗? ",1)]),_:1}),n(de,null,{default:i(()=>[n(K),n(k,{color:"grey",variant:"text",onClick:s.confirmDialog.reject},{default:i(()=>[...e[28]||(e[28]=[c(" 取消 ",-1)])]),_:1},8,["onClick"]),n(k,{color:"primary",onClick:s.confirmDialog.resolve},{default:i(()=>[...e[29]||(e[29]=[c(" 确认保存",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),n(E,{ref:"randomPicker",attendance:s.state.boardData.attendance,"student-list":s.state.studentList},null,8,["attendance","student-list"]),n(ie,{modelValue:s.urlConfigDialog.show,"onUpdate:modelValue":e[19]||(e[19]=T=>s.urlConfigDialog.show=T),"max-width":"500"},{default:i(()=>[n(_,null,{default:i(()=>[n(Y,{class:"text-h6"},{default:i(()=>[...e[30]||(e[30]=[c(" 确认应用URL配置",-1)])]),_:1}),n(A,null,{default:i(()=>[e[31]||(e[31]=r("p",null,"以下配置将应用于当前班级:",-1)),n(Ke,{density:"compact"},{default:i(()=>[(f(!0),y(N,null,M(s.urlConfigDialog.changes,T=>(f(),w(Me,{key:T.key},{prepend:i(()=>[n(D,{icon:T.icon,class:"mr-2",size:"small"},null,8,["icon"])]),default:i(()=>[n(xn,{class:"d-flex align-center"},{default:i(()=>[r("span",ql,g(T.name),1),n(Ze,{activator:"parent",location:"top"},{default:i(()=>[c(g(T.description||T.key),1)]),_:2},1024)]),_:2},1024),n(Sn,null,{default:i(()=>[r("span",Ql,g(T.oldValue),1),n(D,{class:"mx-1",icon:"mdi-arrow-right",size:"small"}),r("span",Wl,g(T.newValue),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),n(de,null,{default:i(()=>[n(K),n(k,{color:"grey",variant:"text",onClick:s.urlConfigDialog.cancelHandler},{default:i(()=>[...e[32]||(e[32]=[c(" 取消 ",-1)])]),_:1},8,["onClick"]),n(k,{color:"primary",onClick:s.urlConfigDialog.confirmHandler},{default:i(()=>[...e[33]||(e[33]=[c(" 确认应用 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),n(ie,{modelValue:s.notificationDetailDialog,"onUpdate:modelValue":e[22]||(e[22]=T=>s.notificationDetailDialog=T),"max-width":"600"},{default:i(()=>[s.currentNotification?(f(),w(_,{key:0},{default:i(()=>[n(Y,{class:we(["headline",s.currentNotification.isUrgent?"text-error":"text-primary"])},{default:i(()=>[c(g(s.currentNotification.isUrgent?"强调通知":"通知详情"),1)]),_:1},8,["class"]),n(A,{class:"text-h5 py-4"},{default:i(()=>[c(g(s.currentNotification.message),1)]),_:1}),n(de,null,{default:i(()=>[n(k,{color:"error",variant:"text",onClick:e[20]||(e[20]=T=>l.removePersistentNotification(s.currentNotification.id))},{default:i(()=>[...e[34]||(e[34]=[c("删除",-1)])]),_:1}),n(K),n(k,{color:"primary",onClick:e[21]||(e[21]=T=>s.notificationDetailDialog=!1)},{default:i(()=>[...e[35]||(e[35]=[c("关闭",-1)])]),_:1})]),_:1})]),_:1})):x("",!0)]),_:1},8,["modelValue"]),e[36]||(e[36]=r("br",null,null,-1)),e[37]||(e[37]=r("br",null,null,-1)),e[38]||(e[38]=r("br",null,null,-1))],64)}const yo=te($l,[["render",Gl]]);export{yo as default}; diff --git a/assets/index-90D_8zvz.js b/assets/index-CcbavYG9.js similarity index 98% rename from assets/index-90D_8zvz.js rename to assets/index-CcbavYG9.js index 6ae589f..baab283 100644 --- a/assets/index-90D_8zvz.js +++ b/assets/index-CcbavYG9.js @@ -1 +1 @@ -import{a0 as _,a5 as v,aI as Fn,aj as Zn,a6 as L,aS as Nn,bu as Yn,bv as O,b5 as Xn,bw as Un,a_ as Gn,g as Qn,p as Jn,b8 as Kn,bl as ni,bx as ii,aB as yn,bk as gi,X as hi,bc as ui,by as si,a3 as oi,b as ti,aG as li,$ as hn,bz as ci,ay as Q,bA as zi,a7 as ei,bB as yi,aX as di,aH as ji,c as ri,i as C,d as S,at as bi,ac as ai,E as dn,bs as xi,bn as mi,F as Vn,bh as fi,m as wi,ae as qi,bi as pi,bC as ki,bm as vi,bD as Si,bt as Pi,h as Ti,bE as Di,bF as Mi,_ as Ci,aT as Ei,bG as J,j as H,B as K,o as B,w as k,t as W,P as Ii,A as _i,G as Zi,Q as jn,ap as rn,C as nn,aq as Ni,v as bn}from"./index-BBVdlVQD.js";import{V as Vi,a as Bi}from"./VAppBarTitle-QQJ8OMzH.js";function Li(n){let{rootEl:i,isSticky:g,layoutItemStyles:u}=n;const h=_(!1),s=_(0),o=v(()=>{const l=typeof h.value=="boolean"?"top":h.value;return[g.value?{top:"auto",bottom:"auto",height:void 0}:void 0,h.value?{[l]:Fn(s.value)}:{top:u.value.top}]});Zn(()=>{L(g,l=>{l?window.addEventListener("scroll",z,{passive:!0}):window.removeEventListener("scroll",z)},{immediate:!0})}),Nn(()=>{window.removeEventListener("scroll",z)});let t=0;function z(){const l=t>window.scrollY?"up":"down",c=i.value.getBoundingClientRect(),e=parseFloat(u.value.top??0),j=window.scrollY-Math.max(0,s.value-e),a=c.height+Math.max(s.value,e)-window.scrollY-window.innerHeight,f=parseFloat(getComputedStyle(i.value).getPropertyValue("--v-body-scroll-y"))||0;c.height0;g--){if(n[g].t===n[g-1].t)continue;const u=an(i),h=(n[g].d-n[g-1].d)/(n[g].t-n[g-1].t);i+=(h-u)*Math.abs(h),g===n.length-1&&(i*=.5)}return an(i)*1e3}function $i(){const n={};function i(h){Array.from(h.changedTouches).forEach(s=>{(n[s.identifier]??(n[s.identifier]=new Yn(Ai))).push([h.timeStamp,s])})}function g(h){Array.from(h.changedTouches).forEach(s=>{delete n[s.identifier]})}function u(h){var l;const s=(l=n[h])==null?void 0:l.values().reverse();if(!s)throw new Error(`No samples for touch id ${h}`);const o=s[0],t=[],z=[];for(const c of s){if(o[0]-c[0]>Ri)break;t.push({t:c[0],d:c[1].clientX}),z.push({t:c[0],d:c[1].clientY})}return{x:xn(t),y:xn(z),get direction(){const{x:c,y:e}=this,[j,a]=[Math.abs(c),Math.abs(e)];return j>a&&c>=0?"right":j>a&&c<=0?"left":a>j&&e>=0?"down":a>j&&e<=0?"up":Hi()}}}return{addMovement:i,endTouch:g,getVelocity:u}}function Hi(){throw new Error}function Wi(n){let{el:i,isActive:g,isTemporary:u,width:h,touchless:s,position:o}=n;Zn(()=>{window.addEventListener("touchstart",D,{passive:!0}),window.addEventListener("touchmove",M,{passive:!1}),window.addEventListener("touchend",A,{passive:!0})}),Nn(()=>{window.removeEventListener("touchstart",D),window.removeEventListener("touchmove",M),window.removeEventListener("touchend",A)});const t=v(()=>["left","right"].includes(o.value)),{addMovement:z,endTouch:l,getVelocity:c}=$i();let e=!1;const j=_(!1),a=_(0),f=_(0);let w;function Z(y,d){return(o.value==="left"?y:o.value==="right"?document.documentElement.clientWidth-y:o.value==="top"?y:o.value==="bottom"?document.documentElement.clientHeight-y:I())-(d?h.value:0)}function N(y){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=o.value==="left"?(y-f.value)/h.value:o.value==="right"?(document.documentElement.clientWidth-y-f.value)/h.value:o.value==="top"?(y-f.value)/h.value:o.value==="bottom"?(document.documentElement.clientHeight-y-f.value)/h.value:I();return d?Gn(r):r}function D(y){if(s.value)return;const d=y.changedTouches[0].clientX,r=y.changedTouches[0].clientY,b=25,x=o.value==="left"?ddocument.documentElement.clientWidth-b:o.value==="top"?rdocument.documentElement.clientHeight-b:I(),m=g.value&&(o.value==="left"?ddocument.documentElement.clientWidth-h.value:o.value==="top"?rdocument.documentElement.clientHeight-h.value:I());(x||m||g.value&&u.value)&&(w=[d,r],f.value=Z(t.value?d:r,g.value),a.value=N(t.value?d:r),e=f.value>-20&&f.value<80,l(y),z(y))}function M(y){const d=y.changedTouches[0].clientX,r=y.changedTouches[0].clientY;if(e){if(!y.cancelable){e=!1;return}const x=Math.abs(d-w[0]),m=Math.abs(r-w[1]);(t.value?x>m&&x>3:m>x&&m>3)?(j.value=!0,e=!1):(t.value?m:x)>3&&(e=!1)}if(!j.value)return;y.preventDefault(),z(y);const b=N(t.value?d:r,!1);a.value=Math.max(0,Math.min(1,b)),b>1?f.value=Z(t.value?d:r,!0):b<0&&(f.value=Z(t.value?d:r,!1))}function A(y){if(e=!1,!j.value)return;z(y),j.value=!1;const d=c(y.changedTouches[0].identifier),r=Math.abs(d.x),b=Math.abs(d.y);(t.value?r>b&&r>400:b>r&&b>3)?g.value=d.direction===({left:"right",right:"left",top:"down",bottom:"up"}[o.value]||I()):g.value=a.value>.5}const V=v(()=>j.value?{transform:o.value==="left"?`translateX(calc(-100% + ${a.value*h.value}px))`:o.value==="right"?`translateX(calc(100% - ${a.value*h.value}px))`:o.value==="top"?`translateY(calc(-100% + ${a.value*h.value}px))`:o.value==="bottom"?`translateY(calc(100% - ${a.value*h.value}px))`:I(),transition:"none"}:void 0);return O(j,()=>{var r,b;const y=((r=i.value)==null?void 0:r.style.transform)??null,d=((b=i.value)==null?void 0:b.style.transition)??null;Xn(()=>{var x,m,E,$;(m=i.value)==null||m.style.setProperty("transform",((x=V.value)==null?void 0:x.transform)||"none"),($=i.value)==null||$.style.setProperty("transition",((E=V.value)==null?void 0:E.transition)||null)}),Un(()=>{var x,m;(x=i.value)==null||x.style.setProperty("transform",y),(m=i.value)==null||m.style.setProperty("transition",d)})}),{isDragging:j,dragProgress:a,dragStyles:V}}function I(){throw new Error}const Oi=["start","end","left","right","top","bottom"],Fi=Jn({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:n=>Oi.includes(n)},sticky:Boolean,...Di(),...Ti(),...Pi(),...Si({mobile:null}),...vi(),...ki(),...pi(),...qi(Mi(),["disableInitialFocus"]),...wi({tag:"nav"}),...fi()},"VNavigationDrawer"),Yi=Qn()({name:"VNavigationDrawer",props:Fi(),emits:{"update:modelValue":n=>!0,"update:rail":n=>!0},setup(n,i){let{attrs:g,emit:u,slots:h}=i;const{isRtl:s}=Kn(),{themeClasses:o}=ni(n),{borderClasses:t}=ii(n),{backgroundColorClasses:z,backgroundColorStyles:l}=yn(()=>n.color),{elevationClasses:c}=gi(n),{displayClasses:e,mobile:j}=hi(n),{roundedClasses:a}=ui(n),f=si(),w=oi(n,"modelValue",null,q=>!!q),{ssrBootStyles:Z}=ti(),{scopeId:N}=li(),D=hn(),M=_(!1),{runOpenDelay:A,runCloseDelay:V}=xi(n,q=>{M.value=q}),y=v(()=>n.rail&&n.expandOnHover&&M.value?Number(n.width):Number(n.rail?n.railWidth:n.width)),d=v(()=>ci(n.location,s.value)),r=Q(()=>n.persistent),b=v(()=>!n.permanent&&(j.value||n.temporary)),x=v(()=>n.sticky&&!b.value&&d.value!=="bottom");zi(n,{isActive:w,localTop:b,contentEl:D}),O(()=>n.expandOnHover&&n.rail!=null,()=>{L(M,q=>u("update:rail",!q))}),O(()=>!n.disableResizeWatcher,()=>{L(b,q=>!n.permanent&&ei(()=>w.value=!q))}),O(()=>!n.disableRouteWatcher&&!!f,()=>{L(f.currentRoute,()=>b.value&&(w.value=!1))}),L(()=>n.permanent,q=>{q&&(w.value=!0)}),n.modelValue==null&&!b.value&&(w.value=n.permanent||!j.value);const{isDragging:m,dragProgress:E}=Wi({el:D,isActive:w,isTemporary:b,width:y,touchless:Q(()=>n.touchless),position:d}),$=v(()=>{const q=b.value?0:n.rail&&n.expandOnHover?Number(n.railWidth):y.value;return m.value?q*E.value:q}),{layoutItemStyles:on,layoutItemScrimStyles:Hn}=yi({id:n.name,order:v(()=>parseInt(n.order,10)),position:d,layoutSize:$,elementSize:y,active:di(w),disableTransitions:Q(()=>m.value),absolute:v(()=>n.absolute||x.value&&typeof tn.value!="string")}),{isStuck:tn,stickyStyles:Wn}=Li({rootEl:D,isSticky:x,layoutItemStyles:on}),ln=yn(()=>typeof n.scrim=="string"?n.scrim:null),On=v(()=>({...m.value?{opacity:E.value*.2,transition:"none"}:void 0,...Hn.value}));return ji({VList:{bgColor:"transparent"}}),ri(()=>{const q=h.image||n.image;return C(Vn,null,[S(n.tag,dn({ref:D,onMouseenter:A,onMouseleave:V,class:["v-navigation-drawer",`v-navigation-drawer--${d.value}`,{"v-navigation-drawer--expand-on-hover":n.expandOnHover,"v-navigation-drawer--floating":n.floating,"v-navigation-drawer--is-hovering":M.value,"v-navigation-drawer--rail":n.rail,"v-navigation-drawer--temporary":b.value,"v-navigation-drawer--persistent":r.value,"v-navigation-drawer--active":w.value,"v-navigation-drawer--sticky":x.value},o.value,z.value,t.value,e.value,c.value,a.value,n.class],style:[l.value,on.value,Z.value,Wn.value,n.style],inert:!w.value},N,g),{default:()=>{var cn,zn,en;return[q&&C("div",{key:"image",class:"v-navigation-drawer__img"},[h.image?S(ai,{key:"image-defaults",disabled:!n.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:n.image}}},h.image):S(bi,{key:"image-img",alt:"",cover:!0,height:"inherit",src:n.image},null)]),h.prepend&&C("div",{class:"v-navigation-drawer__prepend"},[(cn=h.prepend)==null?void 0:cn.call(h)]),C("div",{class:"v-navigation-drawer__content"},[(zn=h.default)==null?void 0:zn.call(h)]),h.append&&C("div",{class:"v-navigation-drawer__append"},[(en=h.append)==null?void 0:en.call(h)])]}}),S(mi,{name:"fade-transition"},{default:()=>[b.value&&(m.value||w.value)&&!!n.scrim&&C("div",dn({class:["v-navigation-drawer__scrim",ln.backgroundColorClasses.value],style:[On.value,ln.backgroundColorStyles.value],onClick:()=>{r.value||(w.value=!1)}},N),null)]})])}),{isStuck:tn}}}),Xi=Ei({name:"MessageLog",setup(){const n=hn(!1),i=hn([]),g={success:"mdi-check-circle",error:"mdi-alert-circle",warning:"mdi-alert",info:"mdi-information"},u={success:"success",error:"error",warning:"warning",info:"primary"};return J.onLog(h=>{h&&(i.value=h)}),{drawer:n,messages:i,icons:g,colors:u,deleteMessage:h=>J.deleteMessage(h),clearMessages:()=>J.clearMessages()}}}),Ui={class:"text-caption text-grey"};function Gi(n,i,g,u,h,s){return n.drawer?(B(),H(Yi,{key:0,modelValue:n.drawer,"onUpdate:modelValue":i[0]||(i[0]=o=>n.drawer=o),location:"right",temporary:"",width:"400"},{default:k(()=>[S(Vi,{color:"primary"},{default:k(()=>[S(Bi,null,{default:k(()=>[...i[1]||(i[1]=[W("消息记录",-1)])]),_:1})]),_:1}),S(Ii,null,{default:k(()=>[(B(!0),_i(Vn,null,Zi(n.messages,o=>(B(),H(jn,{key:o.id,rounded:""},{prepend:k(()=>[S(bn,{color:n.colors[o.type],icon:n.icons[o.type],size:"20"},null,8,["color","icon"])]),default:k(()=>[S(rn,null,{default:k(()=>[W(nn(o.title),1)]),_:2},1024),o.content?(B(),H(Ni,{key:0},{default:k(()=>[W(nn(o.content),1)]),_:2},1024)):K("",!0),C("span",Ui,nn(new Date(o.timestamp).toLocaleTimeString()),1)]),_:2},1024))),128)),n.messages.length?K("",!0):(B(),H(jn,{key:0},{prepend:k(()=>[S(bn,{color:"grey",icon:"mdi-inbox"})]),default:k(()=>[S(rn,{class:"text-grey"},{default:k(()=>[...i[2]||(i[2]=[W("暂无消息",-1)])]),_:1})]),_:1}))]),_:1})]),_:1},8,["modelValue"])):K("",!0)}const Rg=Ci(Xi,[["render",Gi]]),Qi=/^[\uD800-\uDBFF]$/,Ji=/^[\uDC00-\uDFFF]$/,Ki=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var mn;(function(n){n[n.Unknown=1e-13]="Unknown",n[n.Rule=1e-12]="Rule",n[n.DICT=2e-8]="DICT",n[n.Surname=1]="Surname",n[n.Custom=1]="Custom"})(mn||(mn={}));const p={Normal:1,Surname:10,Custom:100};function P(n){var i;return n.length-(((i=n.match(Ki))===null||i===void 0?void 0:i.length)||0)}function Y(n){const i=[];let g=0;for(;g1)return this.StringDICT.get(i);{const g=i.charCodeAt(0);return this.NumberDICT[g]}}set(i,g){if(i.length>1)this.StringDICT.set(i,g);else{const u=i.charCodeAt(0);this.NumberDICT[u]=g}}clear(){this.NumberDICT=[],this.StringDICT.clear()}}const fn={"bǎng páng pāng":["膀"],líng:["〇","伶","凌","刢","囹","坽","夌","姈","婈","孁","岺","彾","掕","昤","朎","柃","棂","櫺","欞","泠","淩","澪","灵","燯","爧","狑","玲","琌","瓴","皊","砱","祾","秢","竛","笭","紷","綾","绫","羐","羚","翎","聆","舲","苓","菱","蓤","蔆","蕶","蛉","衑","裬","詅","跉","軨","輘","酃","醽","鈴","錂","铃","閝","陵","零","霊","霗","霛","霝","靈","駖","魿","鯪","鲮","鴒","鸰","鹷","麢","齡","齢","龄","龗","㥄"],yī:["一","乊","伊","依","医","吚","咿","噫","壱","壹","夁","嫛","嬄","弌","揖","撎","檹","毉","洢","渏","漪","瑿","畩","祎","禕","稦","繄","蛜","衤","譩","辷","郼","醫","銥","铱","鷖","鹥","黟","黳"],"dīng zhēng":["丁"],"kǎo qiǎo yú":["丂"],qī:["七","倛","僛","凄","嘁","墄","娸","悽","慼","慽","戚","捿","柒","桤","桼","棲","榿","欺","沏","淒","漆","紪","緀","萋","褄","諆","迉","郪","鏚","霋","魌","鶈"],shàng:["丄","尙","尚","恦","緔","绱"],xià:["丅","下","乤","圷","夏","夓","懗","梺","疜","睱","罅","鎼","鏬"],hǎn:["丆","喊","浫","罕","豃","㘎"],"wàn mò":["万"],zhàng:["丈","仗","墇","嶂","帐","帳","幛","扙","杖","涱","痮","瘬","瘴","瞕","粀","胀","脹","賬","账","障"],sān:["三","厁","叁","弎","毵","毶","毿","犙","鬖"],"shàng shǎng shang":["上"],"qí jī":["丌","其","奇"],"bù fǒu":["不"],"yǔ yù yú":["与"],miǎn:["丏","偭","免","冕","勉","勔","喕","娩","愐","汅","沔","湎","睌","緬","缅","腼","葂","靦","鮸","𩾃"],gài:["丐","乢","匃","匄","戤","概","槩","槪","溉","漑","瓂","葢","鈣","钙","𬮿"],chǒu:["丑","丒","侴","吜","杽","瞅","矁","醜","魗"],zhuān:["专","叀","嫥","専","專","瑼","甎","砖","磗","磚","蟤","諯","鄟","顓","颛","鱄","䏝"],"qiě jū":["且"],pī:["丕","伓","伾","噼","坯","岯","憵","批","披","炋","狉","狓","砒","磇","礔","礕","秛","秠","耚","豾","邳","鈚","鉟","銔","錃","錍","霹","駓","髬","魾","𬳵"],shì:["世","丗","亊","事","仕","侍","冟","势","勢","卋","呩","嗜","噬","士","奭","嬕","室","市","式","弑","弒","恀","恃","戺","拭","揓","是","昰","枾","柿","栻","澨","烒","煶","眂","眎","眡","睗","示","礻","筮","簭","舐","舓","襫","視","视","觢","試","誓","諡","謚","试","谥","貰","贳","軾","轼","逝","遾","釈","释","釋","鈰","鉃","鉽","铈","飾","餙","餝","饰","鰘","䏡","𬤊"],qiū:["丘","丠","坵","媝","恘","恷","楸","秋","秌","穐","篍","緧","萩","蘒","蚯","蝵","蟗","蠤","趥","邱","鞦","鞧","鰌","鰍","鳅","鶖","鹙","龝"],bǐng:["丙","屛","怲","抦","昞","昺","柄","棅","炳","禀","秉","稟","苪","蛃","邴","鈵","陃","鞆","餅","餠","饼"],yè:["业","亱","僷","墷","夜","嶪","嶫","抴","捙","擛","擪","擫","晔","曄","曅","曗","曳","曵","枼","枽","業","洂","液","澲","烨","燁","爗","璍","皣","瞱","瞸","礏","腋","葉","謁","谒","邺","鄴","鍱","鐷","靥","靨","頁","页","餣","饁","馌","驜","鵺","鸈"],cóng:["丛","从","叢","婃","孮","従","徔","徖","悰","樷","欉","淙","灇","爜","琮","藂","誴","賨","賩","錝"],dōng:["东","倲","冬","咚","埬","岽","崬","徚","昸","東","氡","氭","涷","笗","苳","菄","蝀","鮗","鯟","鶇","鶫","鸫","鼕","𬟽"],sī:["丝","俬","凘","厮","司","咝","嘶","噝","媤","廝","恖","撕","斯","楒","泀","澌","燍","禗","禠","私","糹","絲","緦","纟","缌","罳","蕬","虒","蛳","蜤","螄","蟖","蟴","鉰","銯","鍶","鐁","锶","颸","飔","騦","鷥","鸶","鼶","㟃"],chéng:["丞","呈","城","埕","堘","塍","塖","宬","峸","惩","懲","成","承","挰","掁","揨","枨","棖","橙","檙","洆","溗","澂","珵","珹","畻","程","窚","筬","絾","脭","荿","誠","诚","郕","酲","鋮","铖","騬","鯎"],diū:["丟","丢","銩","铥"],liǎng:["両","两","兩","唡","啢","掚","緉","脼","蜽","裲","魉","魎","𬜯"],yǒu:["丣","卣","友","梄","湵","牖","禉","羑","聈","苃","莠","蜏","酉","銪","铕","黝"],yán:["严","厳","啱","喦","嚴","塩","壛","壧","妍","姸","娫","娮","岩","嵒","嵓","巌","巖","巗","延","揅","昖","楌","檐","櫩","欕","沿","炎","炏","狿","琂","盐","碞","筵","簷","莚","蔅","虤","蜒","言","訁","訮","詽","讠","郔","閆","閻","闫","阎","顏","顔","颜","鹽","麣","𫄧"],bìng:["並","併","倂","傡","垪","摒","栤","病","窉","竝","誁","靐","鮩"],"sàng sāng":["丧"],gǔn:["丨","惃","滚","滾","磙","緄","绲","蓘","蔉","衮","袞","輥","辊","鮌","鯀","鲧"],jiū:["丩","勼","啾","揪","揫","朻","究","糾","纠","萛","赳","阄","鬏","鬮","鳩","鸠"],"gè gě":["个","個","各"],yā:["丫","圧","孲","庘","押","枒","桠","椏","錏","鐚","鴉","鴨","鵶","鸦","鸭"],pán:["丬","媻","幋","槃","洀","瀊","爿","盘","盤","磐","縏","蒰","蟠","蹒","蹣","鎜","鞶"],"zhōng zhòng":["中"],jǐ:["丮","妀","己","戟","挤","掎","撠","擠","橶","泲","犱","脊","虮","蟣","魢","鱾","麂"],jiè:["丯","介","借","唶","堺","屆","届","岕","庎","徣","戒","楐","犗","玠","琾","界","畍","疥","砎","蚧","蛶","衸","褯","誡","诫","鎅","骱","魪"],fēng:["丰","仹","偑","僼","凨","凬","凮","妦","寷","封","峯","峰","崶","枫","楓","檒","沣","沨","渢","灃","烽","犎","猦","琒","疯","瘋","盽","砜","碸","篈","蘴","蜂","蠭","豐","鄷","酆","鋒","鎽","鏠","锋","霻","靊","飌","麷"],"guàn kuàng":["丱"],chuàn:["串","汌","玔","賗","釧","钏"],chǎn:["丳","产","冁","剷","囅","嵼","旵","浐","滻","灛","產","産","簅","蒇","蕆","諂","譂","讇","谄","鏟","铲","閳","闡","阐","骣","𬊤"],lín:["临","冧","壣","崊","嶙","斴","晽","暽","林","潾","瀶","燐","琳","璘","瞵","碄","磷","粦","粼","繗","翷","臨","轔","辚","遴","邻","鄰","鏻","阾","隣","霖","驎","鱗","鳞","麐","麟","𬴊","𬭸"],zhuó:["丵","劅","卓","啄","圴","妰","娺","撯","擆","擢","斫","斮","斱","斲","斵","晫","椓","浊","浞","濁","灼","烵","琸","硺","禚","窡","籗","籱","罬","茁","蠗","蠿","諁","諑","謶","诼","酌","鐲","镯","鵫","鷟","䓬","𬸦"],zhǔ:["丶","主","劯","嘱","囑","宔","帾","拄","渚","濐","煑","煮","燝","瞩","矚","罜","詝","陼","鸀","麈","𬣞"],bā:["丷","仈","八","叭","哵","夿","岜","巴","捌","朳","玐","疤","笆","粑","羓","芭","蚆","豝","釟"],wán:["丸","刓","完","岏","抏","捖","汍","烷","玩","琓","笂","紈","纨","翫","芄","貦","頑","顽"],dān:["丹","勯","匰","単","妉","媅","殚","殫","甔","眈","砃","箪","簞","耼","耽","聃","聸","褝","襌","躭","郸","鄲","酖","頕"],"wèi wéi":["为"],"jǐng dǎn":["丼"],"lì lí":["丽"],jǔ:["举","弆","挙","擧","椇","榉","榘","櫸","欅","矩","筥","聥","舉","莒","蒟","襷","踽","齟","龃"],piě:["丿","苤","鐅","𬭯"],fú:["乀","伏","俘","凫","刜","匐","咈","哹","垘","孚","岪","巿","帗","幅","幞","弗","彿","怫","扶","柫","栿","桴","氟","泭","浮","涪","澓","炥","玸","甶","畉","癁","祓","福","稪","符","箙","紱","紼","絥","綍","绂","绋","罘","罦","翇","艀","芙","芣","苻","茀","茯","菔","葍","虙","蚨","蜉","蝠","袚","袱","襆","襥","諨","豧","踾","輻","辐","郛","鉘","鉜","韍","韨","颫","髴","鮄","鮲","鳧","鳬","鴔","鵩","黻"],"yí jí":["乁"],yì:["乂","义","亄","亦","亿","伇","伿","佾","俋","億","兿","刈","劓","劮","勚","勩","匇","呓","呭","呹","唈","囈","圛","坄","垼","埸","奕","嫕","嬑","寱","屹","峄","嶧","帟","帠","幆","廙","异","弈","弋","役","忆","怈","怿","悒","意","憶","懌","懿","抑","挹","敡","易","晹","曀","曎","杙","枍","棭","榏","槸","檍","歝","殔","殪","殹","毅","浂","浥","浳","湙","溢","潩","澺","瀷","炈","焲","熠","熤","熼","燚","燡","燱","獈","玴","異","疫","痬","瘗","瘞","瘱","癔","益","瞖","穓","竩","篒","縊","繶","繹","绎","缢","義","羿","翊","翌","翳","翼","耴","肄","肊","膉","臆","艗","艺","芅","苅","萟","蓺","薏","藙","藝","蘙","虉","蜴","螠","衪","袣","裔","裛","褹","襼","訲","訳","詍","詣","誼","譯","議","讛","议","译","诣","谊","豙","豛","豷","貖","贀","跇","轶","逸","邑","鄓","醷","釴","鈠","鎰","鐿","镒","镱","阣","隿","霬","饐","駅","驛","驿","骮","鮨","鶂","鶃","鶍","鷁","鷊","鷧","鷾","鸃","鹝","鹢","黓","齸","𬬩","㑊","𫄷","𬟁"],nǎi:["乃","倷","奶","嬭","廼","氖","疓","艿","迺","釢"],wǔ:["乄","五","仵","伍","侮","倵","儛","午","啎","妩","娬","嫵","庑","廡","忤","怃","憮","摀","武","潕","熓","牾","玝","珷","瑦","甒","碔","舞","躌","迕","逜","陚","鵡","鹉","𣲘"],jiǔ:["久","乆","九","乣","奺","杦","汣","灸","玖","紤","舏","酒","镹","韭","韮"],"tuō zhé":["乇","杔","馲"],"me mó ma yāo":["么"],zhī:["之","倁","卮","巵","搘","支","栀","梔","椥","榰","汁","泜","疷","祗","祬","秓","稙","綕","肢","胑","胝","脂","芝","蘵","蜘","衼","隻","鳷","鴲","鼅","𦭜"],"wū wù":["乌"],zhà:["乍","咤","宱","搾","榨","溠","痄","蚱","詐","诈","醡","霅","䃎"],hū:["乎","乯","匢","匫","呼","唿","嘑","垀","寣","幠","忽","惚","昒","歑","泘","淴","滹","烀","苸","虍","虖","謼","軤","轷","雐"],fá:["乏","伐","傠","坺","垡","墢","姂","栰","浌","瞂","笩","筏","罚","罰","罸","藅","閥","阀"],"lè yuè yào lào":["乐","樂"],yín:["乑","吟","噖","嚚","圁","垠","夤","婬","寅","峾","崟","崯","檭","殥","泿","淫","滛","烎","犾","狺","璌","硍","碒","荶","蔩","訔","訚","訡","誾","鄞","鈝","銀","银","霪","鷣","齦"],pīng:["乒","俜","娉","涄","甹","砯","聠","艵","頩"],pāng:["乓","滂","胮","膖","雱","霶"],qiáo:["乔","侨","僑","嫶","憔","桥","槗","樵","橋","櫵","犞","瞧","硚","礄","荍","荞","蕎","藮","譙","趫","鐈","鞒","鞽","顦"],hǔ:["乕","琥","萀","虎","虝","錿","鯱"],guāi:["乖"],"chéng shèng":["乗","乘","娍"],yǐ:["乙","乛","以","倚","偯","嬟","崺","已","庡","扆","攺","敼","旑","旖","檥","矣","礒","笖","舣","艤","苡","苢","蚁","螘","蟻","裿","踦","輢","轙","逘","酏","釔","鈘","鉯","钇","顗","鳦","齮","𫖮","𬺈"],"háo yǐ":["乚"],"niè miē":["乜"],qǐ:["乞","企","启","唘","啓","啔","啟","婍","屺","杞","棨","玘","盀","綺","绮","芑","諬","起","邔","闙"],yě:["也","冶","嘢","埜","壄","漜","野"],xí:["习","喺","媳","嶍","席","椺","檄","漝","習","蓆","袭","襲","覡","觋","謵","趘","郋","鎴","隰","霫","飁","騱","騽","驨","鰼","鳛","𠅤","𫘬"],xiāng:["乡","厢","廂","忀","楿","欀","湘","瓖","稥","箱","緗","缃","膷","芗","萫","葙","薌","襄","郷","鄉","鄊","鄕","鑲","镶","香","驤","骧","鱜","麘","𬙋"],shū:["书","倏","倐","儵","叔","姝","尗","抒","掓","摅","攄","書","枢","梳","樞","殊","殳","毹","毺","淑","瀭","焂","疎","疏","紓","綀","纾","舒","菽","蔬","踈","軗","輸","输","鄃","陎","鮛","鵨"],dǒu:["乧","抖","枓","蚪","鈄","阧","陡"],shǐ:["乨","使","兘","史","始","宩","屎","榁","矢","笶","豕","鉂","駛","驶"],jī:["乩","僟","击","刉","刏","剞","叽","唧","喞","嗘","嘰","圾","基","墼","姬","屐","嵆","嵇","撃","擊","朞","机","枅","樭","機","毄","激","犄","玑","璣","畸","畿","癪","矶","磯","积","積","笄","筓","箕","簊","緁","羁","羇","羈","耭","肌","芨","虀","覉","覊","譏","譤","讥","賫","賷","赍","跻","踑","躋","躸","銈","錤","鐖","鑇","鑙","隮","雞","鞿","韲","飢","饑","饥","魕","鳮","鶏","鶺","鷄","鸄","鸡","齎","齏","齑","𬯀","𫓯","𫓹","𫌀"],náng:["乪","嚢","欜","蠰","饢"],jiā:["乫","佳","傢","加","嘉","抸","枷","梜","毠","泇","浃","浹","犌","猳","珈","痂","笳","糘","耞","腵","葭","袈","豭","貑","跏","迦","鉫","鎵","镓","鴐","麚","𬂩"],jù:["乬","倨","倶","具","剧","劇","勮","埧","埾","壉","姖","屦","屨","岠","巨","巪","怇","惧","愳","懅","懼","拒","拠","昛","歫","洰","澽","炬","烥","犋","秬","窭","窶","簴","粔","耟","聚","虡","蚷","詎","讵","豦","距","踞","躆","遽","邭","醵","鉅","鐻","钜","颶","飓","駏","鮔"],shí:["乭","十","埘","塒","姼","实","実","寔","實","峕","嵵","时","旹","時","榯","湜","溡","炻","祏","竍","蚀","蝕","辻","遈","鉐","飠","饣","鮖","鰣","鲥","鼫","鼭"],mǎo:["乮","冇","卯","峁","戼","昴","泖","笷","蓩","鉚","铆"],mǎi:["买","嘪","荬","蕒","買","鷶"],luàn:["乱","亂","釠"],rǔ:["乳","擩","汝","肗","辱","鄏"],xué:["乴","学","學","峃","嶨","斈","泶","澩","燢","穴","茓","袕","踅","鷽","鸴"],yǎn:["䶮","乵","俨","偃","儼","兖","兗","厣","厴","噞","孍","嵃","巘","巚","弇","愝","戭","扊","抁","掩","揜","曮","椼","檿","沇","渷","演","琰","甗","眼","罨","萒","蝘","衍","褗","躽","遃","郾","隒","顩","魇","魘","鰋","鶠","黡","黤","黬","黭","黶","鼴","鼹","齴","龑","𬸘","𬙂","𪩘"],fǔ:["乶","俌","俛","俯","府","弣","抚","拊","撫","斧","椨","滏","焤","甫","盙","簠","腐","腑","蜅","輔","辅","郙","釜","釡","阝","頫","鬴","黼","㕮","𫖯"],shā:["乷","唦","杀","桬","殺","毮","猀","痧","砂","硰","紗","繺","纱","蔱","裟","鎩","铩","閷","髿","魦","鯊","鯋","鲨"],nǎ:["乸","雫"],qián:["乹","亁","仱","偂","前","墘","媊","岒","拑","掮","榩","橬","歬","潛","潜","濳","灊","箝","葥","虔","軡","鈐","鉗","銭","錢","鎆","钤","钱","钳","靬","騚","騝","鰬","黔","黚"],suǒ:["乺","唢","嗩","所","暛","溑","溹","琐","琑","瑣","索","褨","鎖","鎻","鏁","锁"],yú:["乻","于","亐","伃","余","堣","堬","妤","娛","娯","娱","嬩","崳","嵎","嵛","愚","扵","揄","旟","楡","楰","榆","欤","歈","歟","歶","渔","渝","湡","漁","澞","牏","狳","玗","玙","瑜","璵","盂","睮","窬","竽","籅","羭","腴","臾","舁","舆","艅","茰","萮","萸","蕍","蘛","虞","虶","蝓","螸","衧","褕","覦","觎","諛","謣","谀","踰","輿","轝","逾","邘","酑","鍝","隅","雓","雩","餘","馀","騟","骬","髃","魚","魣","鮽","鯲","鰅","鱼","鷠","鸆","齵"],zhù:["乼","伫","佇","住","坾","墸","壴","嵀","拀","杼","柱","樦","殶","注","炷","疰","眝","祝","祩","竚","筯","箸","篫","簗","紵","紸","纻","羜","翥","苎","莇","蛀","註","貯","贮","跓","軴","鉒","鋳","鑄","铸","馵","駐","驻"],zhě:["乽","者","褶","襵","赭","踷","鍺","锗"],"qián gān":["乾"],"zhì luàn":["乿"],guī:["亀","圭","妫","媯","嫢","嬀","帰","归","摫","椝","槻","槼","櫷","歸","珪","瑰","璝","瓌","皈","瞡","硅","茥","蘬","規","规","邽","郌","閨","闺","騩","鬶","鬹"],"lǐn lìn":["亃"],jué:["亅","决","刔","劂","匷","厥","噊","孒","孓","崛","崫","嶥","彏","憠","憰","戄","抉","挗","掘","攫","桷","橛","橜","欮","氒","決","灍","焳","熦","爑","爴","爵","獗","玃","玦","玨","珏","瑴","瘚","矍","矡","砄","絕","絶","绝","臄","芵","蕝","蕨","虳","蟨","蟩","觖","觮","觼","訣","譎","诀","谲","貜","赽","趉","蹷","躩","鈌","鐍","鐝","钁","镢","鴂","鴃","鷢","𫘝","㵐","𫔎"],"le liǎo":["了"],"gè mā":["亇"],"yǔ yú":["予","懙"],zhēng:["争","佂","凧","姃","媜","峥","崝","崢","征","徰","炡","烝","爭","狰","猙","癥","眐","睁","睜","筝","箏","篜","聇","脀","蒸","踭","鉦","錚","鏳","鬇"],èr:["二","刵","咡","弍","弐","樲","誀","貮","貳","贰","髶"],chù:["亍","傗","儊","怵","憷","搐","斶","歜","珿","琡","矗","竌","絀","绌","臅","触","觸","豖","鄐","閦","黜"],kuī:["亏","刲","岿","巋","盔","窥","窺","聧","虧","闚","顝"],yún:["云","伝","勻","匀","囩","妘","愪","抣","昀","橒","沄","涢","溳","澐","熉","畇","秐","筼","篔","紜","縜","纭","耘","芸","蒷","蕓","郧","鄖","鋆","雲"],hù:["互","冱","嗀","嚛","婟","嫭","嫮","岵","帍","弖","怙","戶","户","戸","戽","扈","护","昈","槴","沍","沪","滬","熩","瓠","祜","笏","簄","粐","綔","蔰","護","豰","鄠","鍙","頀","鱯","鳠","鳸","鸌","鹱"],qí:["亓","剘","埼","岐","岓","崎","嵜","愭","掑","斉","斊","旂","旗","棊","棋","檱","櫀","歧","淇","濝","猉","玂","琦","琪","璂","畦","疧","碁","碕","祁","祈","祺","禥","竒","簯","簱","籏","粸","綥","綦","肵","脐","臍","艩","芪","萁","萕","蕲","藄","蘄","蚑","蚚","蛴","蜝","蜞","螧","蠐","褀","軝","鄿","釮","錡","锜","陭","頎","颀","騎","騏","騹","骐","骑","鬐","鬿","鯕","鰭","鲯","鳍","鵸","鶀","麒","麡","𨙸","𬨂","䓫"],jǐng:["井","儆","刭","剄","坓","宑","幜","憬","暻","殌","汫","汬","澋","璄","璟","璥","穽","肼","蟼","警","阱","頚","頸"],sì:["亖","佀","価","儩","兕","嗣","四","姒","娰","孠","寺","巳","柶","榹","汜","泗","泤","洍","洠","涘","瀃","牭","祀","禩","竢","笥","耜","肂","肆","蕼","覗","貄","釲","鈶","鈻","飤","飼","饲","駟","騃","驷"],suì:["亗","嬘","岁","嵗","旞","檖","歲","歳","澻","煫","燧","璲","砕","碎","祟","禭","穂","穗","穟","繀","繐","繸","襚","誶","譢","谇","賥","邃","鐆","鐩","隧","韢","𫟦","𬭼"],gèn:["亘","亙","揯","搄","茛"],yà:["亚","亜","俹","冴","劜","圔","圠","埡","娅","婭","揠","氩","氬","犽","砑","稏","聐","襾","覀","訝","讶","迓","齾"],"xiē suò":["些"],"qí zhāi":["亝","齊"],"yā yà":["亞","压","垭","壓","铔"],"jí qì":["亟","焏"],tóu:["亠","投","頭","骰"],"wáng wú":["亡"],"kàng háng gāng":["亢"],dà:["亣","眔"],jiāo:["交","僬","娇","嬌","峧","嶕","嶣","憍","椒","浇","澆","焦","礁","穚","簥","胶","膠","膲","茭","茮","蕉","虠","蛟","蟭","跤","轇","郊","鐎","驕","骄","鮫","鲛","鵁","鷦","鷮","鹪","䴔"],hài:["亥","嗐","害","氦","餀","饚","駭","駴","骇"],"hēng pēng":["亨"],mǔ:["亩","姆","峔","拇","母","牡","牳","畂","畆","畒","畝","畞","畮","砪","胟","踇","鉧","𬭁","𧿹"],ye:["亪"],xiǎng:["享","亯","响","想","晑","蚃","蠁","響","飨","餉","饗","饷","鮝","鯗","鱶","鲞"],jīng:["京","亰","兢","坕","坙","婛","惊","旌","旍","晶","橸","泾","涇","猄","睛","秔","稉","粳","精","経","經","綡","聙","腈","茎","荆","荊","菁","葏","驚","鯨","鲸","鶁","鶄","麖","麠","鼱","䴖"],tíng:["亭","停","婷","嵉","庭","廷","楟","榳","筳","聤","莛","葶","蜓","蝏","諪","邒","霆","鼮","䗴"],liàng:["亮","喨","悢","晾","湸","諒","谅","輌","輛","辆","鍄"],"qīn qìng":["亲","親"],bó:["亳","仢","侼","僰","博","帛","愽","懪","挬","搏","欂","浡","淿","渤","煿","牔","狛","瓝","礴","秡","箔","簙","糪","胉","脖","膊","舶","艊","萡","葧","袯","襏","襮","謈","踣","郣","鈸","鉑","鋍","鎛","鑮","钹","铂","镈","餺","馎","馛","馞","駁","駮","驳","髆","鵓","鹁"],yòu:["亴","佑","佦","侑","又","右","哊","唀","囿","姷","宥","峟","幼","狖","祐","蚴","誘","诱","貁","迶","酭","釉","鼬"],xiè:["亵","伳","偞","偰","僁","卨","卸","噧","塮","夑","媟","屑","屧","廨","徢","懈","暬","械","榍","榭","泻","洩","渫","澥","瀉","瀣","灺","炧","炨","燮","爕","獬","祄","禼","糏","紲","絏","絬","繲","纈","绁","缷","薢","薤","蟹","蠏","褉","褻","謝","谢","躞","邂","靾","韰","齂","齘","齛","齥","𬹼","𤫉"],"dǎn dàn":["亶","馾"],lián:["亷","劆","匲","匳","嗹","噒","奁","奩","嫾","帘","廉","怜","憐","涟","漣","濂","濓","瀮","熑","燫","簾","籢","籨","縺","翴","联","聨","聫","聮","聯","臁","莲","蓮","薕","螊","蠊","裢","褳","覝","謰","蹥","连","連","鎌","鐮","镰","鬑","鰱","鲢"],duǒ:["亸","哚","嚲","埵","崜","朵","朶","綞","缍","趓","躱","躲","軃"],"wěi mén":["亹","斖"],rén:["人","亻","仁","壬","忈","忎","朲","秂","芢","魜","鵀"],jí:["亼","亽","伋","佶","偮","卙","即","卽","及","叝","吉","堲","塉","姞","嫉","岌","嵴","嶯","彶","忣","急","愱","戢","揤","极","棘","楫","極","槉","檝","殛","汲","湒","潗","疾","瘠","皍","笈","箿","籍","級","级","膌","艥","蒺","蕀","蕺","蝍","螏","襋","觙","谻","踖","蹐","躤","輯","轚","辑","郆","銡","鍓","鏶","集","雧","霵","鹡","㴔"],wáng:["亾","仼","兦","莣","蚟"],"shén shí":["什"],lè:["仂","叻","忇","氻","泐","玏","砳","簕","艻","阞","韷","餎","鰳","鱳","鳓"],dīng:["仃","叮","帄","玎","疔","盯","耵","虰","靪"],zè:["仄","崱","庂","捑","昃","昗","汄"],"jǐn jìn":["仅","僅","嫤"],"pú pū":["仆"],"chóu qiú":["仇"],zhǎng:["仉","幥","掌","礃"],jīn:["今","堻","巾","惍","斤","津","珒","琻","璡","砛","筋","荕","衿","襟","觔","金","釒","釿","钅","鹶","黅","𬬱"],bīng:["仌","仒","兵","冫","冰","掤","氷","鋲"],réng:["仍","礽","芿","辸","陾"],fó:["仏","坲","梻"],"jīn sǎn":["仐"],lún:["仑","伦","侖","倫","囵","圇","婨","崘","崙","棆","沦","淪","磮","腀","菕","蜦","踚","輪","轮","錀","陯","鯩","𬬭"],cāng:["仓","仺","倉","凔","嵢","沧","滄","濸","獊","舱","艙","苍","蒼","螥","鸧"],"zǎi zǐ zī":["仔"],tā:["他","塌","它","榙","溻","牠","祂","褟","趿","遢","闧"],fù:["付","偩","傅","冨","副","咐","坿","复","妇","婦","媍","嬔","富","復","椱","祔","禣","竎","緮","縛","缚","腹","萯","蕧","蚹","蛗","蝜","蝮","袝","複","覄","覆","訃","詂","讣","負","賦","賻","负","赋","赙","赴","輹","鍑","鍢","阜","附","馥","駙","驸","鮒","鰒","鲋","鳆","㳇"],xiān:["仙","仚","佡","僊","僲","先","嘕","奾","屳","廯","忺","憸","掀","暹","杴","氙","珗","祆","秈","籼","繊","纎","纖","苮","褼","襳","跹","蹮","躚","酰","鍁","锨","韯","韱","馦","鱻","鶱","𬸣"],"tuō chà duó":["仛"],hóng:["仜","吰","垬","妅","娂","宏","宖","弘","彋","汯","泓","洪","浤","渱","潂","玒","玜","竑","竤","篊","粠","紘","紭","綋","纮","翃","翝","耾","苰","荭","葒","葓","谹","谼","鈜","鉷","鋐","閎","闳","霐","霟","鞃","魟","鴻","鸿","黉","黌","𫟹","𬭎"],tóng:["仝","佟","哃","峂","峝","庝","彤","晍","曈","桐","氃","浵","潼","犝","獞","眮","瞳","砼","秱","童","粡","膧","茼","蚒","詷","赨","酮","鉖","鉵","銅","铜","餇","鮦","鲖","𫍣","𦒍"],rèn:["仞","仭","刃","刄","妊","姙","屻","岃","扨","牣","祍","紉","紝","絍","纫","纴","肕","腍","衽","袵","訒","認","认","讱","軔","轫","鈓","靭","靱","韌","韧","飪","餁","饪"],qiān:["仟","佥","僉","千","圲","奷","孯","岍","悭","愆","慳","扦","拪","搴","撁","攐","攑","攓","杄","櫏","汘","汧","牵","牽","竏","签","簽","籖","籤","粁","芊","茾","蚈","褰","諐","謙","谦","谸","迁","遷","釺","鈆","鉛","鏲","钎","阡","韆","顅","騫","骞","鬜","鬝","鵮","鹐"],"gǎn hàn":["仠"],"yì gē":["仡"],dài:["代","侢","叇","垈","埭","岱","帒","带","帯","帶","廗","怠","戴","曃","柋","殆","瀻","玳","瑇","甙","簤","紿","緿","绐","艜","蝳","袋","襶","貣","贷","蹛","軑","軚","軩","轪","迨","霴","靆","鴏","黛","黱"],"lìng líng lǐng":["令"],chào:["仦","耖","觘"],"cháng zhǎng":["仧","兏","長","长"],sā:["仨"],cháng:["仩","偿","償","嘗","嚐","嫦","尝","常","徜","瑺","瓺","甞","肠","腸","膓","苌","萇","镸","鱨","鲿"],yí:["仪","侇","儀","冝","匜","咦","圯","夷","姨","宐","宜","宧","寲","峓","嶬","嶷","巸","彛","彜","彝","彞","怡","恞","扅","暆","栘","椬","椸","沂","洟","熪","瓵","痍","移","簃","籎","羠","胰","萓","蛦","螔","觺","謻","貽","贻","跠","迻","遺","鏔","頉","頤","頥","顊","颐","饴","鮧","鴺"],mù:["仫","凩","募","墓","幕","幙","慔","慕","暮","暯","木","楘","毣","沐","炑","牧","狇","目","睦","穆","艒","苜","莯","蚞","鉬","钼","雮","霂"],"men mén":["们"],fǎn:["仮","反","橎","返"],"chào miǎo":["仯"],"yǎng áng":["仰"],zhòng:["仲","众","堹","妕","媑","狆","眾","祌","筗","茽","蚛","衆","衶","諥"],"pǐ pí":["仳"],wò:["仴","偓","卧","媉","幄","握","楃","沃","渥","濣","瓁","瞃","硪","肟","腛","臥","齷","龌"],jiàn:["件","俴","健","僭","剑","剣","剱","劍","劎","劒","劔","墹","寋","建","徤","擶","旔","楗","毽","洊","涧","澗","牮","珔","瞷","磵","礀","箭","糋","繝","腱","臶","舰","艦","荐","薦","覸","諓","諫","譛","谏","賎","賤","贱","趝","践","踐","踺","轞","鉴","鍳","鍵","鐱","鑑","鑒","鑬","鑳","键","間","餞","饯","𬣡"],"jià jiè jie":["价"],"yǎo fó":["仸"],"rèn rén":["任"],"fèn bīn":["份"],dī:["仾","低","啲","埞","堤","岻","彽","樀","滴","磾","秪","羝","袛","趆","隄","鞮","䃅"],fǎng:["仿","倣","旊","昉","昘","瓬","眆","紡","纺","舫","訪","访","髣","鶭"],zhōng:["伀","刣","妐","幒","彸","忠","柊","汷","泈","炂","盅","籦","終","终","舯","蔠","蜙","螤","螽","衳","衷","蹱","鈡","鍾","鐘","钟","锺","鴤","鼨"],pèi:["伂","佩","姵","帔","斾","旆","沛","浿","珮","蓜","轡","辔","配","霈","馷"],diào:["伄","吊","弔","掉","瘹","盄","窎","窵","竨","訋","釣","鈟","銱","鋽","鑃","钓","铞","雿","魡"],dùn:["伅","潡","炖","燉","盾","砘","碷","踲","逇","遁","遯","鈍","钝"],wěn:["伆","刎","吻","呅","抆","桽","稳","穏","穩","紊","肳","脗"],xǐn:["伈"],kàng:["伉","匟","囥","抗","炕","鈧","钪"],ài:["伌","僾","塧","壒","嫒","嬡","愛","懓","暧","曖","爱","瑷","璦","皧","瞹","砹","硋","碍","礙","薆","譺","賹","鑀","隘","靉","餲","馤","鱫","鴱"],"jì qí":["伎","薺"],"xiū xǔ":["休"],"jìn yín":["伒"],dǎn:["伔","刐","撢","玬","瓭","紞","胆","膽","衴","賧","赕","黕","𬘘"],fū:["伕","呋","娐","孵","尃","怤","懯","敷","旉","玞","砆","稃","筟","糐","綒","肤","膚","荂","荴","衭","趺","跗","邞","鄜","酜","鈇","麩","麬","麱","麸","𫓧"],tǎng:["伖","傥","儻","埫","戃","曭","爣","矘","躺","鎲","钂","镋"],yōu:["优","優","呦","嚘","峳","幽","忧","悠","憂","攸","櫌","滺","瀀","纋","羪","耰","逌","鄾","麀"],huǒ:["伙","夥","火","煷","邩","鈥","钬"],"huì kuài":["会","會","浍","璯"],yǔ:["伛","俁","俣","偊","傴","匬","噳","圄","圉","宇","寙","屿","嶼","庾","挧","敔","斞","楀","瑀","瘐","祤","禹","穥","窳","羽","與","萭","貐","鄅","頨","麌","齬","龉","㺄"],cuì:["伜","啛","忰","悴","毳","淬","焠","疩","瘁","竁","粋","粹","紣","綷","翆","翠","脃","脆","脺","膬","膵","臎","萃","襊","顇"],sǎn:["伞","傘","糤","繖","饊","馓"],wěi:["伟","伪","偉","偽","僞","儰","娓","寪","屗","崣","嶉","徫","愇","捤","暐","梶","洧","浘","渨","炜","煒","猥","玮","瑋","痿","緯","纬","腲","艉","芛","苇","荱","萎","葦","蒍","蔿","蜼","諉","诿","踓","鍡","韑","韙","韡","韪","頠","颹","骩","骪","骫","鮪","鲔","𫇭","𬀩","𬱟"],"chuán zhuàn":["传","傳"],"chē jū":["伡","俥","车"],"jū chē":["車"],yá:["伢","厑","厓","堐","岈","崕","崖","涯","漄","牙","玡","琊","睚","笌","芽","蚜","衙","齖"],qiàn:["伣","俔","倩","儙","刋","壍","嬱","悓","棈","椠","槧","欠","歉","皘","篏","篟","縴","芡","蒨","蔳","輤","𬘬"],shāng:["伤","傷","商","墒","慯","殇","殤","滳","漡","熵","蔏","螪","觞","觴","謪","鬺"],chāng:["伥","倀","娼","昌","椙","淐","猖","琩","菖","裮","錩","锠","閶","阊","鯧","鲳","鼚"],"chen cāng":["伧"],xùn:["伨","侚","卂","噀","巺","巽","徇","愻","殉","殾","汛","潠","狥","蕈","訊","訓","訙","训","讯","迅","迿","逊","遜","鑂","顨","馴","驯"],xìn:["伩","囟","孞","脪","舋","衅","訫","釁","阠","顖"],chǐ:["伬","侈","卶","叺","呎","垑","恥","歯","耻","肔","胣","蚇","裭","褫","豉","鉹","齒","齿"],"xián xuán":["伭"],"nú nǔ":["伮"],"bó bǎi":["伯"],"gū gù":["估"],nǐ:["伱","你","儞","孴","拟","擬","旎","晲","狔","苨","薿","隬"],"nì ní":["伲"],bàn:["伴","办","半","姅","怑","扮","瓣","秚","絆","绊","辦","鉡","靽"],xù:["伵","侐","勖","勗","卹","叙","垿","壻","婿","序","恤","敍","敘","旭","昫","朂","槒","欰","殈","汿","沀","洫","溆","漵","潊","烅","烼","煦","獝","珬","盢","瞁","稸","絮","続","緒","緖","續","绪","续","聓","聟","蓄","藚","訹","賉","酗","頊","鱮","㳚"],zhòu:["伷","僽","冑","呪","咒","咮","宙","昼","晝","甃","皱","皺","籀","籒","籕","粙","紂","縐","纣","绉","胄","荮","葤","詋","酎","駎","驟","骤","㤘","㑇"],shēn:["伸","侁","兟","呻","堔","妽","娠","屾","峷","扟","敒","曑","柛","氠","深","燊","珅","甡","甧","申","眒","砷","穼","籶","籸","糂","紳","绅","罙","罧","葠","蓡","蔘","薓","裑","訷","詵","诜","身","駪","鯓","鯵","鰺","鲹","鵢","𬳽"],qū:["伹","佉","匤","呿","坥","屈","岖","岴","嶇","憈","抾","敺","浀","煀","祛","筁","粬","胠","蛆","蛐","袪","覻","詘","诎","趍","躯","軀","阹","駆","駈","驅","驱","髷","魼","鰸","鱋","鶌","麯","麴","麹","黢","㭕","𪨰","䓛"],"sì cì":["伺"],bēng:["伻","嘣","奟","崩","嵭","閍"],"sì shì":["似"],"jiā qié gā":["伽"],"yǐ chì":["佁"],"diàn tián":["佃","钿"],"hān gàn":["佄"],mài:["佅","劢","勱","卖","唛","売","脈","衇","賣","迈","邁","霡","霢","麥","麦","鿏"],dàn:["但","僤","啖","啗","啿","噉","嚪","帎","憺","旦","柦","氮","沊","泹","淡","狚","疍","癚","禫","窞","腅","萏","蓞","蛋","蜑","觛","訑","誕","诞","贉","霮","餤","饏","駳","髧","鴠","𫢸"],bù:["佈","勏","吥","咘","埗","埠","布","廍","怖","悑","步","歨","歩","瓿","篰","荹","蔀","踄","部","郶","鈈","钚","餢"],bǐ:["佊","俾","匕","夶","妣","彼","朼","柀","比","毞","沘","疕","秕","笔","筆","粃","聛","舭","貏","鄙"],"zhāo shào":["佋"],cǐ:["佌","此","泚","皉","𫚖"],wèi:["位","卫","味","喂","墛","媦","慰","懀","未","渭","煟","熭","犚","猬","畏","緭","罻","胃","苿","菋","藯","蘶","蝟","螱","衛","衞","褽","謂","讆","讏","谓","躗","躛","軎","轊","鏏","霨","餧","餵","饖","魏","鮇","鳚"],zuǒ:["佐","左","繓"],yǎng:["佒","傟","养","坱","岟","慃","懩","攁","氧","氱","炴","痒","癢","礢","紻","蝆","軮","養","駚"],"tǐ tī":["体","體"],zhàn:["佔","偡","嶘","战","戦","戰","栈","桟","棧","湛","站","綻","绽","菚","蘸","虥","虦","譧","轏","驏"],"hé hē hè":["何"],bì:["佖","咇","哔","嗶","坒","堛","壁","奰","妼","婢","嬖","币","幣","幤","庇","庳","廦","弊","弻","弼","彃","必","怭","愊","愎","敝","斃","梐","毕","毖","毙","湢","滗","滭","潷","煏","熚","狴","獘","獙","珌","璧","畀","畢","疪","痹","痺","皕","睤","碧","筚","箅","箆","篦","篳","粊","綼","縪","繴","罼","腷","苾","荜","萆","萞","蓖","蓽","蔽","薜","蜌","袐","襅","襞","襣","觱","詖","诐","貱","贔","赑","跸","蹕","躃","躄","避","邲","鄨","鄪","鉍","鏎","鐴","铋","閇","閉","閟","闭","陛","韠","飶","饆","馝","駜","驆","髀","魓","鮅","鷝","鷩","鼊"],tuó:["佗","坨","堶","岮","槖","橐","沱","砣","砤","碢","紽","詑","跎","酡","阤","陀","陁","駝","駞","騨","驒","驝","驼","鮀","鴕","鸵","鼉","鼍","鼧","𬶍"],shé:["佘","舌","虵","蛥"],"yì dié":["佚","昳","泆","軼"],"fó fú bì bó":["佛"],"zuò zuō":["作"],gōu:["佝","沟","溝","痀","篝","簼","緱","缑","袧","褠","鈎","鉤","钩","鞲","韝"],nìng:["佞","侫","倿","寕","泞","澝","濘"],qú:["佢","劬","戵","斪","欋","欔","氍","淭","灈","爠","璖","璩","癯","磲","籧","絇","胊","臞","菃","葋","蕖","蘧","蟝","蠷","蠼","衐","衢","躣","軥","鑺","鴝","鸜","鸲","鼩"],"yōng yòng":["佣"],wǎ:["佤","咓","砙","邷"],kǎ:["佧","垰","胩","裃","鉲"],bāo:["佨","勹","包","孢","煲","笣","胞","苞","蕔","裦","褒","襃","闁","齙","龅"],"huái huí":["佪"],"gé hè":["佫"],lǎo:["佬","咾","恅","栳","狫","珯","硓","老","耂","荖","蛯","轑","銠","铑","鮱"],xiáng:["佭","庠","栙","祥","絴","翔","詳","跭"],gé:["佮","匌","呄","嗝","塥","愅","挌","搿","槅","櫊","滆","膈","臵","茖","觡","諽","輵","轕","閣","阁","隔","鞷","韐","韚","騔","骼","鮯"],yáng:["佯","劷","垟","崸","徉","扬","揚","敭","旸","昜","暘","杨","楊","洋","炀","珜","疡","瘍","眻","蛘","諹","輰","鍚","钖","阦","阳","陽","霷","颺","飏","鰑","鴹","鸉"],bǎi:["佰","捭","摆","擺","栢","百","竡","粨","襬"],fǎ:["佱","峜","法","灋","砝","鍅"],mǐng:["佲","凕","姳","慏","酩"],"èr nài":["佴"],hěn:["佷","很","狠","詪","𬣳"],huó:["佸","活"],guǐ:["佹","匦","匭","厬","垝","姽","宄","庋","庪","恑","晷","湀","癸","祪","簋","蛫","蟡","觤","詭","诡","軌","轨","陒","鬼"],quán:["佺","全","啳","埢","姾","峑","巏","拳","搼","权","楾","権","權","泉","洤","湶","牷","犈","瑔","痊","硂","筌","縓","荃","葲","蜷","蠸","觠","詮","诠","跧","踡","輇","辁","醛","銓","铨","闎","顴","颧","駩","騡","鬈","鰁","鳈","齤"],tiāo:["佻","庣","旫","祧","聎"],jiǎo:["佼","儌","孂","挢","搅","撟","撹","攪","敫","敽","敿","晈","暞","曒","灚","燞","狡","璬","皎","皦","絞","纐","绞","腳","臫","蟜","譑","賋","踋","鉸","铰","餃","饺","鱎","龣"],cì:["佽","刾","庛","朿","栨","次","絘","茦","莿","蛓","螆","賜","赐"],xíng:["侀","刑","哘","型","娙","形","洐","硎","蛵","邢","郉","鈃","鉶","銒","钘","铏","陉","陘","餳","𫰛"],tuō:["侂","咃","咜","圫","托","拕","拖","汑","脫","脱","莌","袥","託","讬","飥","饦","魠","鮵"],kǎn:["侃","偘","冚","坎","惂","砍","莰","輡","轗","顑"],zhí:["侄","値","值","埴","執","姪","嬂","戠","执","摭","植","樴","淔","漐","直","禃","絷","縶","聀","职","職","膱","蟙","跖","踯","蹠","躑","軄","釞","馽"],gāi:["侅","垓","姟","峐","晐","畡","祴","荄","該","该","豥","賅","賌","赅","陔"],lái:["來","俫","倈","崃","崍","庲","来","梾","棶","涞","淶","猍","琜","筙","箂","莱","萊","逨","郲","錸","铼","騋","鯠","鶆","麳"],kuǎ:["侉","咵","垮","銙"],gōng:["侊","公","功","匑","匔","塨","宫","宮","工","幊","弓","恭","攻","杛","碽","糼","糿","肱","觥","觵","躬","躳","髸","龔","龚","䢼"],lì:["例","俐","俪","傈","儮","儷","凓","利","力","励","勵","历","厉","厤","厯","厲","叓","吏","呖","唎","唳","嚦","囇","坜","塛","壢","娳","婯","屴","岦","悧","悷","慄","戾","搮","暦","曆","曞","朸","枥","栃","栗","栛","檪","櫔","櫪","欐","歴","歷","沥","沴","涖","溧","濿","瀝","爏","犡","猁","珕","瑮","瓅","瓑","瓥","疬","痢","癧","盭","睙","砅","砺","砾","磿","礪","礫","礰","禲","秝","立","笠","篥","粒","粝","糲","脷","苈","茘","荔","莅","莉","蒚","蒞","藶","蚸","蛎","蛠","蜧","蝷","蠇","蠣","詈","讈","赲","轢","轣","轹","酈","鉝","隶","隷","雳","靂","靋","鬁","鳨","鴗","鷅","麜","𫵷","𬍛"],yīn:["侌","凐","喑","噾","囙","因","垔","堙","姻","婣","愔","慇","栶","氤","洇","溵","濦","瘖","禋","秵","筃","絪","緸","茵","蒑","蔭","裀","諲","銦","铟","闉","阥","阴","陰","陻","隂","霒","霠","鞇","音","韾","駰","骃","齗","𬘡","𬤇","𬮱"],mǐ:["侎","孊","弭","敉","洣","渳","灖","米","粎","羋","脒","芈","葞","蔝","銤"],zhū:["侏","株","槠","橥","櫧","櫫","洙","潴","瀦","猪","珠","硃","秼","絑","茱","蕏","蛛","蝫","蠩","袾","誅","諸","诛","诸","豬","跦","邾","銖","铢","駯","鮢","鯺","鴸","鼄"],ān:["侒","偣","媕","安","峖","庵","桉","氨","盦","盫","腤","菴","萻","葊","蓭","誝","諳","谙","鞌","鞍","韽","馣","鮟","鵪","鶕","鹌","𩽾"],lù:["侓","僇","勎","勠","圥","坴","塶","娽","峍","廘","彔","录","戮","摝","椂","樚","淕","淥","渌","漉","潞","琭","璐","甪","盝","睩","硉","祿","禄","稑","穋","箓","簏","簬","簵","簶","籙","粶","蔍","蕗","虂","螰","賂","赂","趢","路","踛","蹗","輅","轆","辂","辘","逯","醁","錄","録","錴","鏴","陸","騄","騼","鯥","鴼","鵦","鵱","鷺","鹭","鹿","麓","𫘧"],móu:["侔","劺","恈","眸","蛑","謀","谋","踎","鍪","鴾","麰"],ér:["侕","儿","児","兒","峏","栭","洏","粫","而","胹","荋","袻","輀","轜","陑","隭","髵","鮞","鲕","鴯","鸸"],"dòng tǒng tóng":["侗"],chà:["侘","奼","姹","岔","汊","詫","诧"],chì:["侙","傺","勅","勑","叱","啻","彳","恜","慗","憏","懘","抶","敕","斥","杘","湁","灻","炽","烾","熾","痓","痸","瘛","翄","翅","翤","翨","腟","赤","趩","遫","鉓","雴","飭","饬","鶒","鷘"],"gòng gōng":["供","共"],zhōu:["侜","周","喌","州","徟","洲","淍","炿","烐","珘","矪","舟","謅","譸","诌","賙","赒","輈","輖","辀","週","郮","銂","霌","駲","騆","鵃","鸼"],rú:["侞","儒","嚅","如","嬬","孺","帤","曘","桇","渪","濡","筎","茹","蕠","薷","蝡","蠕","袽","襦","邚","醹","銣","铷","顬","颥","鱬","鴑","鴽"],"jiàn cún":["侟"],xiá:["侠","俠","匣","峡","峽","敮","暇","柙","炠","烚","狎","狭","狹","珨","瑕","硖","硤","碬","祫","筪","縖","翈","舝","舺","蕸","赮","轄","辖","遐","鍜","鎋","陜","陿","霞","騢","魻","鶷","黠"],lǚ:["侣","侶","儢","吕","呂","屡","屢","履","挔","捛","旅","梠","焒","祣","稆","穭","絽","縷","缕","膂","膐","褛","褸","郘","鋁","铝"],ta:["侤"],"jiǎo yáo":["侥","僥","徺"],zhēn:["侦","偵","寊","帧","帪","幀","搸","斟","桢","楨","榛","樼","殝","浈","湞","潧","澵","獉","珍","珎","瑧","甄","眞","真","砧","碪","祯","禎","禛","箴","胗","臻","葴","蒖","蓁","薽","貞","贞","轃","遉","酙","針","鉁","錱","鍼","针","鱵"],"cè zè zhāi":["侧","側"],kuài:["侩","儈","凷","哙","噲","圦","块","塊","巜","廥","快","旝","欳","狯","獪","筷","糩","脍","膾","郐","鄶","鱠","鲙"],chái:["侪","儕","喍","柴","犲","祡","豺"],nóng:["侬","儂","农","哝","噥","檂","欁","浓","濃","燶","禯","秾","穠","脓","膿","蕽","襛","譨","農","辳","醲","鬞","𬪩"],jǐn:["侭","儘","卺","厪","巹","槿","漌","瑾","紧","緊","菫","蓳","謹","谨","錦","锦","饉","馑"],"hóu hòu":["侯","矦"],jiǒng:["侰","僒","冏","囧","泂","澃","炯","烱","煚","煛","熲","燛","窘","綗","褧","迥","逈","顈","颎","䌹"],"chěng tǐng":["侱"],"zhèn zhēn":["侲","揕"],zuò:["侳","做","唑","坐","岝","岞","座","祚","糳","胙","葃","葄","蓙","袏","阼"],qīn:["侵","兓","媇","嵚","嶔","欽","衾","誛","钦","顉","駸","骎","鮼"],jú:["侷","啹","婅","局","巈","椈","橘","泦","淗","湨","焗","犑","狊","粷","菊","蘜","趜","跼","蹫","輂","郹","閰","駶","驧","鵙","鵴","鶪","鼰","鼳","䴗"],"shù dōu":["侸"],tǐng:["侹","圢","娗","挺","涏","烶","珽","脡","艇","誔","頲","颋"],shèn:["侺","愼","慎","昚","涁","渗","滲","瘆","瘮","眘","祳","肾","胂","脤","腎","蜃","蜄","鋠"],"tuì tuó":["侻"],nán:["侽","喃","娚","抩","暔","枏","柟","楠","男","畘","莮","萳","遖"],xiāo:["侾","哓","嘵","嚻","囂","婋","宯","宵","庨","彇","揱","枭","枵","梟","櫹","歊","毊","消","潇","瀟","灱","灲","烋","焇","猇","獢","痚","痟","硝","硣","窙","箫","簘","簫","綃","绡","翛","膮","萧","蕭","虈","虓","蟂","蟏","蟰","蠨","踃","逍","銷","销","霄","颵","驍","骁","髇","髐","魈","鴞","鴵","鷍","鸮"],"biàn pián":["便","緶","缏"],tuǐ:["俀","腿","蹆","骽"],xì:["係","匸","卌","呬","墍","屃","屓","屭","忥","怬","恄","椞","潝","潟","澙","熂","犔","磶","禊","細","綌","縘","细","绤","舃","舄","蕮","虩","衋","覤","赩","趇","郤","釳","阋","隙","隟","霼","餼","饩","鬩","黖"],cù:["促","媨","憱","猝","瘄","瘯","簇","縬","脨","蔟","誎","趗","踧","踿","蹙","蹴","蹵","醋","顣","鼀"],é:["俄","囮","娥","峉","峨","峩","涐","珴","皒","睋","磀","莪","訛","誐","譌","讹","迗","鈋","鋨","锇","頟","額","额","魤","鵝","鵞","鹅"],qiú:["俅","叴","唒","囚","崷","巯","巰","扏","梂","殏","毬","求","汓","泅","浗","湭","煪","犰","玌","球","璆","皳","盚","紌","絿","肍","芁","莍","虬","虯","蛷","裘","觓","觩","訄","訅","賕","赇","逎","逑","遒","酋","釚","釻","銶","頄","鮂","鯄","鰽","鼽","𨱇"],xú:["俆","徐","禑"],"guàng kuāng":["俇"],kù:["俈","喾","嚳","库","庫","廤","瘔","絝","绔","袴","裤","褲","酷"],wù:["俉","务","務","勿","卼","坞","塢","奦","婺","寤","屼","岉","嵨","忢","悞","悟","悮","戊","扤","晤","杌","溩","焐","熃","物","痦","矹","窹","粅","蘁","誤","误","鋈","阢","隖","雾","霚","霧","靰","騖","骛","鶩","鹜","鼿","齀"],jùn:["俊","儁","呁","埈","寯","峻","懏","捃","攟","晙","棞","燇","珺","畯","竣","箟","蜠","賐","郡","陖","餕","馂","駿","骏","鵔","鵕","鵘","䐃"],liáng:["俍","墚","梁","椋","樑","粮","粱","糧","良","輬","辌","𫟅"],zǔ:["俎","唨","爼","祖","組","组","詛","诅","鎺","阻","靻"],"qiào xiào":["俏"],yǒng:["俑","勇","勈","咏","埇","塎","嵱","彮","怺","恿","悀","惥","愑","愹","慂","柡","栐","永","泳","湧","甬","蛹","詠","踊","踴","鯒","鲬"],hùn:["俒","倱","圂","尡","慁","掍","溷","焝","睴","觨","諢","诨"],jìng:["俓","傹","境","妌","婙","婧","弪","弳","径","徑","敬","曔","桱","梷","浄","瀞","獍","痉","痙","竞","竟","竫","競","竸","胫","脛","莖","誩","踁","迳","逕","鏡","镜","靖","静","靜","鵛"],sàn:["俕","閐"],pěi:["俖"],sú:["俗"],xī:["俙","僖","兮","凞","卥","厀","吸","唏","唽","嘻","噏","嚱","夕","奚","嬆","嬉","屖","嵠","巇","希","徆","徯","息","悉","悕","惁","惜","昔","晞","晰","晳","曦","析","桸","榽","樨","橀","欷","氥","汐","浠","淅","渓","溪","烯","焁","焈","焟","熄","熈","熙","熹","熺","熻","燨","爔","牺","犀","犠","犧","琋","瘜","皙","睎","瞦","矽","硒","磎","礂","稀","穸","窸","粞","糦","緆","繥","羲","翕","翖","肸","肹","膝","舾","莃","菥","蒠","蜥","螅","蟋","蠵","西","觹","觽","觿","譆","谿","豀","豨","豯","貕","赥","邜","鄎","酅","醯","釸","錫","鏭","鐊","鑴","锡","隵","餏","饎","饻","鯑","鵗","鸂","鼷"],lǐ:["俚","娌","峢","峲","李","欚","浬","澧","理","礼","禮","粴","裏","裡","豊","逦","邐","醴","鋰","锂","鯉","鱧","鱱","鲤","鳢"],bǎo:["保","堢","媬","宝","寚","寳","寶","珤","緥","葆","藵","褓","賲","靌","飹","飽","饱","駂","鳵","鴇","鸨"],"yú shù yù":["俞"],"sì qí":["俟"],"xìn shēn":["信"],xiū:["俢","修","咻","庥","樇","烌","羞","脙","脩","臹","貅","銝","鎀","飍","饈","馐","髤","髹","鮴","鱃","鵂","鸺","䗛"],dì:["俤","偙","僀","埊","墑","墬","娣","帝","怟","旳","梊","焍","玓","甋","眱","睇","碲","祶","禘","第","締","缔","腣","菂","蒂","蔕","蝃","蝭","螮","諦","谛","踶","递","逓","遞","遰","鉪","𤧛","䗖"],chóu:["俦","儔","嬦","惆","愁","懤","栦","燽","畴","疇","皗","稠","筹","籌","絒","綢","绸","菗","詶","讎","讐","踌","躊","酧","酬","醻","雔","雠","雦"],zhì:["俧","偫","儨","制","劕","垁","娡","寘","帙","帜","幟","庢","庤","廌","彘","徏","徝","志","忮","懥","懫","挃","挚","掷","摯","擲","旘","晊","智","栉","桎","梽","櫍","櫛","治","洷","滍","滞","滯","潌","瀄","炙","熫","狾","猘","璏","瓆","痔","痣","礩","祑","秩","秷","稚","稺","穉","窒","紩","緻","置","翐","膣","至","致","芖","蛭","袟","袠","製","覟","觗","觯","觶","誌","豑","豒","貭","質","贄","质","贽","跱","踬","躓","輊","轾","郅","銍","鋕","鑕","铚","锧","陟","隲","雉","駤","騭","騺","驇","骘","鯯","鴙","鷙","鸷","𬃊"],"liǎ liǎng":["俩"],jiǎn:["俭","倹","儉","减","剪","堿","弿","彅","戩","戬","拣","挸","捡","揀","撿","枧","柬","梘","检","検","檢","減","湕","瀽","瑐","睑","瞼","硷","碱","礆","笕","筧","简","簡","絸","繭","翦","茧","藆","蠒","裥","襇","襉","襺","詃","謇","謭","譾","谫","趼","蹇","鐗","鬋","鰎","鹸","鹻","鹼"],huò:["俰","咟","嚯","嚿","奯","彠","惑","或","擭","旤","曤","檴","沎","湱","瀖","獲","癨","眓","矐","祸","禍","穫","窢","耯","臛","艧","获","蒦","藿","蠖","謋","貨","货","鍃","鑊","镬","雘","霍","靃","韄","㸌"],"jù jū":["俱","据","鋸","锯"],xiào:["俲","傚","効","咲","哮","啸","嘋","嘨","嘯","孝","效","斅","斆","歗","涍","熽","笑","詨","誟"],pái:["俳","徘","牌","犤","猅","簰","簲","輫"],biào:["俵","鰾","鳔"],"chù tì":["俶"],fèi:["俷","剕","厞","吠","屝","废","廃","廢","昲","曊","櫠","沸","濷","狒","癈","肺","萉","費","费","鐨","镄","陫","靅","鼣"],fèng:["俸","凤","奉","湗","焨","煈","賵","赗","鳯","鳳","鴌"],ǎn:["俺","唵","埯","揞","罯","銨","铵"],bèi:["俻","倍","偝","偹","備","僃","备","悖","惫","愂","憊","昁","梖","焙","牬","犕","狈","狽","珼","琲","碚","禙","糒","苝","蓓","蛽","褙","貝","贝","軰","輩","辈","邶","郥","鄁","鋇","鐾","钡","鞁","鞴","𬇙"],yù:["俼","儥","喅","喩","喻","域","堉","妪","嫗","寓","峪","嶎","庽","彧","御","愈","慾","戫","昱","棛","棜","棫","櫲","欎","欝","欲","毓","浴","淯","滪","潏","澦","灪","焴","煜","燏","燠","爩","狱","獄","玉","琙","瘉","癒","砡","硢","硲","礇","礖","礜","禦","秗","稢","稶","篽","籞","籲","粖","緎","罭","聿","肀","艈","芋","芌","茟","蒮","蓣","蓹","蕷","蘌","蜟","蜮","袬","裕","誉","諭","譽","谕","豫","軉","輍","逳","遇","遹","郁","醧","鈺","鋊","錥","鐭","钰","閾","阈","雤","霱","預","预","飫","饇","饫","馭","驈","驭","鬰","鬱","鬻","魊","鱊","鳿","鴥","鴧","鴪","鵒","鷸","鸒","鹆","鹬"],xīn:["俽","噺","妡","嬜","廞","心","忄","忻","惞","新","昕","杺","欣","歆","炘","盺","薪","訢","辛","邤","鈊","鋅","鑫","锌","馨","馫","䜣","𫷷"],"hǔ chí":["俿"],jiù:["倃","僦","匓","匛","匶","厩","咎","就","廄","廏","廐","慦","捄","救","旧","柩","柾","桕","欍","殧","疚","臼","舅","舊","鯦","鷲","鹫","麔","齨","㠇"],yáo:["倄","傜","嗂","垚","堯","姚","媱","尧","尭","峣","嶢","嶤","徭","揺","搖","摇","摿","暚","榣","烑","爻","猺","珧","瑤","瑶","磘","窑","窯","窰","肴","蘨","謠","謡","谣","軺","轺","遙","遥","邎","顤","颻","飖","餆","餚","鰩","鱙","鳐"],"cuì zú":["倅"],"liǎng liǎ":["倆"],wǎn:["倇","唍","婉","惋","挽","晚","晥","晩","晼","梚","椀","琬","畹","皖","盌","碗","綩","綰","绾","脘","萖","踠","輓","鋔"],zǒng:["倊","偬","傯","嵸","总","惣","捴","搃","摠","燪","総","緫","縂","總","蓗"],guān:["倌","关","官","棺","瘝","癏","窤","蒄","関","闗","關","鰥","鱞","鳏"],tiǎn:["倎","唺","忝","悿","晪","殄","淟","睓","腆","舔","覥","觍","賟","錪","餂"],mén:["們","扪","捫","璊","菛","虋","鍆","钔","門","閅","门","𫞩"],"dǎo dào":["倒"],"tán tàn":["倓","埮"],"juè jué":["倔"],chuí:["倕","垂","埀","捶","搥","桘","棰","槌","箠","腄","菙","錘","鎚","锤","陲","顀"],xìng:["倖","姓","婞","嬹","幸","性","悻","杏","涬","緈","臖","荇","莕","葕"],péng:["倗","傰","塜","塳","弸","憉","捀","朋","棚","椖","樥","硼","稝","竼","篷","纄","膨","芃","蓬","蘕","蟚","蟛","袶","輣","錋","鑝","韸","韼","騯","髼","鬅","鬔","鵬","鹏"],"tǎng cháng":["倘"],hòu:["候","厚","后","垕","堠","後","洉","茩","豞","逅","郈","鮜","鱟","鲎","鲘"],tì:["倜","剃","嚏","嚔","屉","屜","悌","悐","惕","惖","戻","掦","替","朑","歒","殢","涕","瓋","笹","籊","薙","褅","逖","逷","髰","鬀","鬄"],gàn:["倝","凎","幹","榦","檊","淦","灨","盰","紺","绀","詌","贑","赣","骭","㽏"],"liàng jìng":["倞","靓"],suī:["倠","哸","夊","滖","濉","眭","睢","芕","荽","荾","虽","雖","鞖"],"chàng chāng":["倡"],jié:["倢","偼","傑","刦","刧","刼","劫","劼","卩","卪","婕","媫","孑","岊","崨","嵥","嶻","巀","幯","截","捷","掶","擮","昅","杢","杰","桀","桝","楬","楶","榤","洁","滐","潔","狤","睫","礍","竭","節","羯","莭","蓵","蛣","蜐","蠘","蠞","蠽","衱","袺","訐","詰","誱","讦","踕","迼","鉣","鍻","镼","頡","鮚","鲒","㛃"],"kǒng kōng":["倥"],juàn:["倦","劵","奆","慻","桊","淃","狷","獧","眷","睊","睠","絭","絹","绢","罥","羂","腃","蔨","鄄","餋"],zōng:["倧","堫","宗","嵏","嵕","惾","朡","棕","椶","熧","猣","磫","緃","翪","腙","葼","蝬","豵","踨","踪","蹤","鍐","鑁","騌","騣","骔","鬃","鬉","鬷","鯮","鯼"],ní:["倪","坭","埿","尼","屔","怩","淣","猊","籾","聣","蚭","蜺","觬","貎","跜","輗","郳","鈮","铌","霓","馜","鯢","鲵","麑","齯","𫐐","𫠜"],zhuō:["倬","拙","捉","桌","梲","棁","棳","槕","涿","窧","鐯","䦃"],"wō wēi":["倭"],luǒ:["倮","剆","曪","瘰","癳","臝","蓏","蠃","裸","躶"],sōng:["倯","凇","娀","崧","嵩","庺","憽","松","枀","枩","柗","梥","檧","淞","濍","硹","菘","鬆"],lèng:["倰","堎","愣","睖","踜"],zì:["倳","剚","字","恣","渍","漬","牸","眥","眦","胔","胾","自","茡","荢"],bèn:["倴","坌","捹","撪","渀","笨","逩"],cǎi:["倸","啋","婇","彩","採","棌","毝","睬","綵","跴","踩"],zhài:["债","債","寨","瘵","砦"],yē:["倻","吔","噎","擨","暍","椰","歋","潱","蠮"],shà:["倽","唼","喢","歃","箑","翜","翣","萐","閯","霎"],qīng:["倾","傾","卿","圊","寈","氢","氫","淸","清","蜻","軽","輕","轻","郬","錆","鑋","靑","青","鯖"],yīng:["偀","嘤","噟","嚶","婴","媖","嫈","嬰","孆","孾","愥","撄","攖","朠","桜","樱","櫻","渶","煐","珱","瑛","璎","瓔","甇","甖","碤","礯","緓","纓","绬","缨","罂","罃","罌","膺","英","莺","蘡","蝧","蠳","褮","譻","賏","軈","鑍","锳","霙","韺","鴬","鶑","鶧","鶯","鷪","鷹","鸎","鸚","鹦","鹰","䓨"],"chēng chèn":["偁","爯"],ruǎn:["偄","朊","瑌","瓀","碝","礝","腝","軟","輭","软","阮"],"zhòng tóng":["偅"],chǔn:["偆","惷","睶","萶","蠢","賰"],"jiǎ jià":["假"],"jì jié":["偈"],"bǐng bìng":["偋"],ruò:["偌","叒","嵶","弱","楉","焫","爇","箬","篛","蒻","鄀","鰙","鰯","鶸"],tí:["偍","厗","啼","嗁","崹","漽","瑅","睼","禵","稊","緹","缇","罤","蕛","褆","謕","趧","蹄","蹏","醍","鍗","題","题","騠","鮷","鯷","鳀","鵜","鷤","鹈","𫘨"],wēi:["偎","危","喴","威","媙","嶶","巍","微","愄","揋","揻","椳","楲","溦","烓","煨","燰","癓","縅","葨","葳","薇","蜲","蝛","覣","詴","逶","隇","隈","霺","鰃","鰄","鳂"],piān:["偏","囨","媥","楄","犏","篇","翩","鍂"],yàn:["偐","厌","厭","唁","喭","嚈","嚥","堰","妟","姲","嬊","嬿","宴","彥","彦","敥","晏","暥","曕","曣","滟","灎","灔","灧","灩","焔","焰","焱","熖","燄","牪","猒","砚","硯","艳","艶","艷","覎","觃","觾","諺","讌","讞","谚","谳","豓","豔","贋","贗","赝","軅","酀","酽","醼","釅","雁","餍","饜","騐","験","騴","驗","驠","验","鬳","鳫","鴈","鴳","鷃","鷰","齞"],"tǎng dàng":["偒"],è:["偔","匎","卾","厄","呝","咢","噩","垩","堊","堮","岋","崿","廅","悪","愕","戹","扼","搤","搹","擜","櫮","歞","歺","湂","琧","砈","砐","硆","腭","苊","萼","蕚","蚅","蝁","覨","諤","讍","谔","豟","軛","軶","轭","遌","遏","遻","鄂","鈪","鍔","鑩","锷","阨","阸","頞","顎","颚","餓","餩","饿","鰐","鰪","鱷","鳄","鶚","鹗","齃","齶","𫫇","𥔲"],xié:["偕","勰","协","協","嗋","垥","奊","恊","愶","拹","携","撷","擕","擷","攜","斜","旪","熁","燲","綊","緳","縀","缬","翓","胁","脅","脇","脋","膎","蝢","衺","襭","諧","讗","谐","鞋","鞵","龤","㙦"],chě:["偖","扯","撦"],shěng:["偗","渻","眚"],chā:["偛","嗏","扠","挿","插","揷","疀","臿","艖","銟","鍤","锸","餷"],huáng:["偟","凰","喤","堭","墴","媓","崲","徨","惶","楻","湟","煌","獚","瑝","璜","癀","皇","磺","穔","篁","簧","艎","葟","蝗","蟥","諻","趪","遑","鍠","鐄","锽","隍","韹","餭","騜","鰉","鱑","鳇","鷬","黃","黄","𨱑"],yǎo:["偠","咬","婹","宎","岆","杳","柼","榚","溔","狕","窅","窈","舀","苭","闄","騕","鷕","齩"],"chǒu qiào":["偢"],yóu:["偤","尤","庮","怣","沋","油","浟","游","犹","猶","猷","由","疣","秞","肬","莜","莸","蕕","蚰","蝣","訧","輏","輶","逰","遊","邮","郵","鈾","铀","駀","魷","鮋","鱿","鲉","𬨎"],xū:["偦","墟","媭","嬃","楈","欨","歔","燸","疞","盱","綇","縃","繻","胥","蕦","虗","虚","虛","蝑","裇","訏","許","諝","譃","谞","鑐","需","須","须","顼","驉","鬚","魆","魖","𬣙","𦈡"],zhā:["偧","哳","抯","挓","揸","摣","樝","渣","皶","觰","譇","齄","齇"],cī:["偨","疵","蠀","趀","骴","髊","齹"],bī:["偪","屄","楅","毴","豍","逼","鰏","鲾","鵖"],xún:["偱","噚","寻","尋","峋","巡","廵","循","恂","揗","攳","旬","杊","栒","桪","樳","洵","浔","潯","燅","燖","珣","璕","畃","紃","荀","蟳","詢","询","鄩","鱏","鱘","鲟","𬘓","𬩽","𬍤","𬊈"],"cāi sī":["偲"],duān:["偳","媏","端","褍","鍴"],ǒu:["偶","吘","嘔","耦","腢","蕅","藕","𬉼","𠙶"],tōu:["偷","偸","鍮"],"zán zá zǎ":["偺"],"lǚ lóu":["偻","僂"],fèn:["偾","僨","奋","奮","弅","忿","愤","憤","瀵","瞓","秎","粪","糞","膹","鱝","鲼"],"kuǐ guī":["傀"],sǒu:["傁","叜","叟","嗾","櫢","瞍","薮","藪"],"zhì sī tí":["傂"],sù:["傃","僳","嗉","塐","塑","夙","嫊","愫","憟","榡","樎","樕","殐","泝","涑","溯","溸","潚","潥","玊","珟","璛","簌","粛","粟","素","縤","肃","肅","膆","蔌","藗","觫","訴","謖","诉","谡","趚","蹜","速","遡","遬","鋉","餗","驌","骕","鱐","鷫","鹔","𫗧"],xiā:["傄","煆","瞎","虲","谺","颬","鰕"],"yuàn yuán":["傆","媛"],rǒng:["傇","冗","宂","氄","軵"],nù:["傉","怒"],yùn:["傊","孕","恽","惲","愠","慍","枟","腪","蕴","薀","藴","蘊","褞","貟","运","運","郓","鄆","酝","醖","醞","韗","韞","韵","韻","餫"],"gòu jiǎng":["傋"],mà:["傌","嘜","榪","睰","祃","禡","罵","閁","駡","骂","鬕"],bàng:["傍","塝","棒","玤","稖","艕","蒡","蜯","謗","谤","鎊","镑"],diān:["傎","厧","嵮","巅","巓","巔","掂","攧","敁","槇","滇","癫","癲","蹎","顚","顛","颠","齻"],táng:["傏","唐","啺","坣","堂","塘","搪","棠","榶","溏","漟","煻","瑭","磄","禟","篖","糃","糖","糛","膅","膛","蓎","螗","螳","赯","踼","鄌","醣","鎕","隚","餹","饄","鶶","䣘"],hào:["傐","哠","恏","昊","昦","晧","暠","暤","暭","曍","浩","淏","澔","灏","灝","皓","皜","皞","皡","皥","耗","聕","薃","號","鄗","顥","颢","鰝"],"xī xì":["傒"],shān:["傓","删","刪","剼","圸","山","挻","搧","柵","檆","潸","澘","煽","狦","珊","笘","縿","羴","羶","脠","舢","芟","衫","跚","軕","邖","閊","鯅"],"qiàn jiān":["傔"],"què jué":["傕","埆"],"cāng chen":["傖"],róng:["傛","媶","嫆","嬫","容","峵","嵘","嶸","戎","搈","曧","栄","榕","榮","榵","毧","溶","瀜","烿","熔","狨","瑢","穁","絨","绒","羢","肜","茙","茸","荣","蓉","蝾","融","螎","蠑","褣","鎔","镕","駥"],"tà tàn":["傝"],suō:["傞","唆","嗍","嗦","娑","摍","桫","梭","睃","簑","簔","羧","莏","蓑","趖","鮻"],dǎi:["傣","歹"],zài:["傤","儎","再","在","扗","洅","載","酨"],gǔ:["傦","古","啒","尳","愲","榖","榾","汩","淈","濲","瀔","牯","皷","皼","盬","瞽","穀","罟","羖","股","脵","臌","薣","蛊","蠱","詁","诂","轂","逧","鈷","钴","餶","馉","鼓","鼔","𦙶"],bīn:["傧","宾","彬","斌","椕","滨","濒","濱","濵","瀕","繽","缤","虨","豩","豳","賓","賔","邠","鑌","镔","霦","顮"],chǔ:["储","儲","杵","椘","楚","楮","檚","濋","璴","础","礎","禇","處","齭","齼","𬺓"],nuó:["傩","儺","挪","梛","橠"],"cān càn":["傪"],lěi:["傫","儡","厽","垒","塁","壘","壨","櫐","灅","癗","矋","磊","礨","耒","蕌","蕾","藟","蘽","蠝","誄","讄","诔","鑸","鸓"],cuī:["催","凗","墔","崔","嵟","慛","摧","榱","獕","磪","鏙"],yōng:["傭","嗈","墉","壅","嫞","庸","廱","慵","拥","擁","滽","灉","牅","痈","癕","癰","臃","邕","郺","鄘","鏞","镛","雍","雝","饔","鱅","鳙","鷛"],"zāo cáo":["傮"],sǒng:["傱","嵷","怂","悚","愯","慫","竦","耸","聳","駷","㧐"],ào:["傲","坳","垇","墺","奡","嫯","岙","岰","嶴","懊","擙","澳","鏊","驁","骜"],"qī còu":["傶"],chuǎng:["傸","磢","闖","闯"],shǎ:["傻","儍"],hàn:["傼","垾","悍","憾","扞","捍","撖","撼","旱","晘","暵","汉","涆","漢","瀚","焊","猂","皔","睅","翰","莟","菡","蛿","蜭","螒","譀","輚","釬","銲","鋎","雗","頷","顄","颔","駻","鶾"],zhāng:["傽","嫜","张","張","彰","慞","暲","樟","漳","獐","璋","章","粻","蔁","蟑","遧","鄣","鏱","餦","騿","鱆","麞"],"yān yàn":["傿","墕","嬮"],"piào biāo":["僄","骠"],liàn:["僆","堜","媡","恋","戀","楝","殓","殮","湅","潋","澰","瀲","炼","煉","瑓","練","纞","练","萰","錬","鍊","鏈","链","鰊","𬶠"],màn:["㵘","僈","墁","幔","慢","曼","漫","澷","熳","獌","縵","缦","蔄","蘰","鄤","鏝","镘","𬜬"],"tàn tǎn":["僋"],yíng:["僌","営","塋","嬴","攍","楹","櫿","溁","溋","滢","潆","濙","濚","濴","瀅","瀛","瀠","瀯","灐","灜","熒","營","瑩","盁","盈","禜","籝","籯","縈","茔","荧","莹","萤","营","萦","萾","蓥","藀","蛍","蝇","蝿","螢","蠅","謍","贏","赢","迎","鎣"],dòng:["働","冻","凍","动","動","姛","戙","挏","栋","棟","湩","硐","胨","胴","腖","迵","霘","駧"],zhuàn:["僎","啭","囀","堟","撰","灷","瑑","篆","腞","蒃","襈","譔","饌","馔"],xiàng:["像","勨","向","嚮","姠","嶑","曏","橡","珦","缿","蟓","衖","襐","象","鐌","項","项","鱌"],shàn:["僐","善","墠","墡","嬗","擅","敾","椫","樿","歚","汕","灗","疝","磰","繕","缮","膳","蟮","蟺","訕","謆","譱","讪","贍","赡","赸","鄯","鐥","饍","騸","骟","鱓","鱔","鳝","𫮃"],"tuí tuǐ":["僓"],zǔn:["僔","噂","撙","譐"],pú:["僕","匍","圤","墣","濮","獛","璞","瞨","穙","莆","菐","菩","葡","蒱","蒲","贌","酺","鏷","镤"],láo:["僗","劳","労","勞","哰","崂","嶗","憥","朥","浶","牢","痨","癆","窂","簩","醪","鐒","铹","顟","髝","𫭼"],chǎng:["僘","厰","廠","敞","昶","氅","鋹","𬬮"],guāng:["僙","光","咣","垙","姯","洸","灮","炗","炚","炛","烡","珖","胱","茪","輄","銧","黆","𨐈"],liáo:["僚","嘹","嫽","寥","寮","尞","屪","嵺","嶚","嶛","廫","憀","敹","暸","橑","獠","璙","疗","療","竂","簝","繚","缭","聊","膋","膫","藔","蟟","豂","賿","蹘","辽","遼","飉","髎","鷯","鹩"],dèng:["僜","凳","墱","嶝","櫈","瞪","磴","覴","邓","鄧","隥"],"chán zhàn zhuàn":["僝"],bō:["僠","嶓","拨","撥","播","波","溊","玻","癶","盋","砵","碆","礡","缽","菠","袰","蹳","鉢","钵","餑","饽","驋","鱍","𬭛"],huì:["僡","匯","卉","喙","嘒","嚖","圚","嬒","寭","屶","屷","彗","彙","彚","徻","恚","恵","惠","慧","憓","懳","晦","暳","槥","橞","檅","櫘","汇","泋","滙","潓","烩","燴","獩","璤","瞺","硊","秽","穢","篲","絵","繪","绘","翙","翽","荟","蔧","蕙","薈","薉","蟪","詯","誨","諱","譓","譿","讳","诲","賄","贿","鐬","闠","阓","靧","頮","顪","颒","餯","𬤝","𬭬"],chuǎn:["僢","喘","舛","荈","踳"],"tiě jiàn":["僣"],sēng:["僧","鬙"],xiàn:["僩","僴","哯","垷","塪","姭","娊","宪","岘","峴","憲","撊","晛","橌","橺","涀","瀗","献","獻","现","現","県","睍","粯","糮","絤","綫","線","线","缐","羡","羨","腺","臔","臽","苋","莧","誢","豏","鋧","錎","限","陥","陷","霰","餡","馅","麲","鼸","𬀪","𪾢"],"yù jú":["僪"],"è wū":["僫"],"tóng zhuàng":["僮"],lǐn:["僯","凛","凜","廩","廪","懍","懔","撛","檁","檩","澟","癛","癝"],gù:["僱","凅","固","堌","崓","崮","故","梏","棝","牿","痼","祻","錮","锢","雇","顧","顾","鯝","鲴"],jiāng:["僵","壃","姜","橿","殭","江","畕","疅","礓","繮","缰","翞","茳","葁","薑","螀","螿","豇","韁","鱂","鳉"],mǐn:["僶","冺","刡","勄","悯","惽","愍","慜","憫","抿","敃","敏","敯","泯","潣","皿","笢","笽","簢","蠠","閔","閩","闵","闽","鰵","鳘","黽"],jìn:["僸","凚","噤","嚍","墐","壗","妗","嬧","搢","晉","晋","枃","殣","浕","浸","溍","濅","濜","烬","煡","燼","琎","瑨","璶","盡","祲","縉","缙","荩","藎","覲","觐","賮","贐","赆","近","进","進","靳","齽"],"jià jie":["價"],qiào:["僺","峭","帩","撬","殻","窍","竅","誚","诮","躈","陗","鞩","韒","髚"],pì:["僻","媲","嫓","屁","澼","甓","疈","譬","闢","鷿","鸊","䴙"],sài:["僿","簺","賽","赛"],"chán tǎn shàn":["儃"],"dāng dàng":["儅","当","闣"],xuān:["儇","喧","塇","媗","宣","愃","愋","揎","昍","暄","煊","煖","瑄","睻","矎","禤","箮","翧","翾","萱","萲","蓒","蕿","藼","蘐","蝖","蠉","諠","諼","譞","谖","軒","轩","鍹","駽","鰚","𫓶","𫍽"],"dān dàn":["儋","擔","瘅"],càn:["儏","澯","灿","燦","璨","粲","薒","謲"],"bīn bìn":["儐"],"án àn":["儑"],tái:["儓","坮","嬯","抬","擡","檯","炱","炲","籉","臺","薹","跆","邰","颱","鮐","鲐"],lán:["儖","兰","囒","婪","岚","嵐","幱","拦","攔","斓","斕","栏","欄","欗","澜","瀾","灆","灡","燣","燷","璼","篮","籃","籣","繿","葻","蓝","藍","蘫","蘭","褴","襕","襤","襴","襽","譋","讕","谰","躝","鑭","镧","闌","阑","韊","𬒗"],"nǐ yì ài yí":["儗"],méng:["儚","幪","曚","朦","橗","檬","氋","溕","濛","甍","甿","盟","礞","艨","莔","萌","蕄","虻","蝱","鄳","鄸","霿","靀","顭","饛","鯍","鸏","鹲","𫑡","㠓"],níng:["儜","凝","咛","嚀","嬣","柠","橣","檸","狞","獰","聍","聹","薴","鑏","鬡","鸋"],qióng:["儝","卭","宆","惸","憌","桏","橩","焪","焭","煢","熍","琼","瓊","睘","穷","穹","窮","竆","笻","筇","舼","茕","藑","藭","蛩","蛬","赹","跫","邛","銎","䓖"],liè:["儠","冽","列","劣","劽","埒","埓","姴","峛","巤","挒","捩","栵","洌","浖","烈","烮","煭","犣","猎","猟","獵","聗","脟","茢","蛚","趔","躐","迾","颲","鬛","鬣","鮤","鱲","鴷","䴕","𫚭"],kuǎng:["儣","夼","懭"],bào:["儤","勽","報","忁","报","抱","曓","爆","犦","菢","虣","蚫","豹","鉋","鑤","铇","骲","髱","鮑","鲍"],biāo:["儦","墂","幖","彪","标","標","滮","瀌","熛","爂","猋","瘭","磦","膘","臕","謤","贆","鏢","鑣","镖","镳","颮","颷","飆","飇","飈","飊","飑","飙","飚","驫","骉","髟"],zǎn:["儧","儹","噆","攅","昝","趱","趲"],háo:["儫","嗥","嘷","噑","嚎","壕","椃","毜","毫","濠","獆","獔","竓","籇","蚝","蠔","譹","豪"],qìng:["儬","凊","庆","慶","櫦","濪","碃","磬","罄","靘"],chèn:["儭","嚫","榇","櫬","疢","衬","襯","讖","谶","趁","趂","齓","齔","龀"],téng:["儯","幐","滕","漛","疼","籐","籘","縢","腾","藤","虅","螣","誊","謄","邆","駦","騰","驣","鰧","䲢"],"lǒng lóng lòng":["儱"],"chán chàn":["儳"],"ráng xiāng":["儴","勷"],"huì xié":["儶"],luó:["儸","攞","椤","欏","猡","玀","箩","籮","罗","羅","脶","腡","萝","蘿","螺","覼","逻","邏","鏍","鑼","锣","镙","饠","騾","驘","骡","鸁"],léi:["儽","嫘","檑","欙","瓃","畾","縲","纍","纝","缧","罍","羸","蔂","蘲","虆","轠","鐳","鑘","镭","雷","靁","鱩","鼺"],"nàng nāng":["儾"],"wù wū":["兀"],yǔn:["允","喗","夽","抎","殒","殞","狁","磒","荺","賱","鈗","阭","陨","隕","霣","馻","齫","齳"],zān:["兂","橵","簪","簮","糌","鐕","鐟","鵤"],yuán:["元","円","原","厡","厵","园","圆","圎","園","圓","垣","塬","媴","嫄","援","榞","榬","橼","櫞","沅","湲","源","溒","爰","猨","猿","笎","緣","縁","缘","羱","茒","薗","蝝","蝯","螈","袁","褤","謜","轅","辕","邍","邧","酛","鈨","鎱","騵","魭","鶢","鶰","黿","鼋","𫘪"],xiōng:["兄","兇","凶","匂","匈","哅","忷","恟","汹","洶","胷","胸","芎","訩","詾","讻"],chōng:["充","嘃","忡","憃","憧","摏","沖","浺","珫","罿","翀","舂","艟","茺","衝","蹖","㳘"],zhào:["兆","垗","旐","曌","枛","櫂","照","燳","狣","瞾","笊","罀","罩","羄","肁","肇","肈","詔","诏","赵","趙","鮡","𬶐"],"duì ruì yuè":["兊","兌","兑"],kè:["克","刻","勀","勊","堁","娔","客","恪","愙","氪","溘","碦","緙","缂","艐","衉","課","课","錁","锞","騍","骒"],tù:["兎","兔","堍","迌","鵵"],dǎng:["党","攩","欓","譡","讜","谠","黨","𣗋"],dōu:["兜","兠","唗","橷","篼","蔸"],huǎng:["兤","奛","幌","怳","恍","晄","炾","熀","縨","詤","謊","谎"],rù:["入","嗕","媷","扖","杁","洳","溽","縟","缛","蓐","褥","鳰"],nèi:["內","氝","氞","錗"],"yú shù":["兪"],"liù lù":["六"],han:["兯","爳"],tiān:["兲","天","婖","添","酟","靔","靝","黇"],"xīng xìng":["兴"],diǎn:["典","嚸","奌","婰","敟","椣","点","碘","蒧","蕇","踮","點"],"zī cí":["兹"],jiān:["兼","冿","囏","坚","堅","奸","姦","姧","尖","幵","惤","戋","戔","搛","椾","樫","櫼","歼","殱","殲","湔","瀐","瀸","煎","熞","熸","牋","瑊","睷","礛","礷","笺","箋","緘","縑","缄","缣","肩","艰","艱","菅","菺","葌","蒹","蔪","蕑","蕳","虃","譼","豜","鑯","雃","鞯","韀","韉","餰","馢","鰔","鰜","鰹","鲣","鳒","鵑","鵳","鶼","鹣","麉"],shòu:["兽","受","售","壽","夀","寿","授","狩","獣","獸","痩","瘦","綬","绶","膄"],jì:["兾","冀","剂","剤","劑","勣","坖","垍","塈","妓","季","寂","寄","廭","彑","徛","忌","悸","惎","懻","技","旡","既","旣","暨","暩","曁","梞","檕","檵","洎","漃","漈","瀱","痵","癠","禝","稩","稷","穄","穊","穧","紀","継","績","繋","繼","继","绩","罽","臮","芰","茍","茤","葪","蓟","蔇","薊","蘎","蘮","蘻","裚","襀","覬","觊","計","記","誋","计","记","跡","跽","蹟","迹","际","際","霁","霽","驥","骥","髻","鬾","魝","魥","鯚","鯽","鰶","鰿","鱀","鱭","鲚","鲫","鵋","鷑","齌","𪟝","𬶨","𬶭"],jiōng:["冂","冋","坰","埛","扃","蘏","蘔","駉","駫","𬳶"],mào:["冃","冐","媢","帽","愗","懋","暓","柕","楙","毷","瑁","皃","眊","瞀","耄","茂","萺","蝐","袤","覒","貌","貿","贸","鄚","鄮"],rǎn:["冄","冉","姌","媣","染","珃","苒","蒅","䎃"],"nèi nà":["内"],gāng:["冈","冮","刚","剛","堈","堽","岡","掆","摃","棡","牨","犅","疘","綱","纲","缸","罁","罡","肛","釭","鎠","㭎"],cè:["冊","册","厕","厠","夨","廁","恻","惻","憡","敇","测","測","笧","策","筞","筴","箣","荝","萗","萴","蓛"],guǎ:["冎","剐","剮","叧","寡"],"mào mò":["冒"],gòu:["冓","啂","坸","垢","够","夠","媾","彀","搆","撀","构","構","煹","覯","觏","訽","詬","诟","購","购","遘","雊"],xǔ:["冔","喣","暊","栩","珝","盨","糈","詡","諿","诩","鄦","醑"],mì:["冖","冪","嘧","塓","宻","密","峚","幂","幎","幦","怽","榓","樒","櫁","汨","淧","滵","漞","濗","熐","羃","蔤","蜜","覓","覔","覛","觅","謐","谧","鼏"],"yóu yín":["冘"],xiě:["写","冩","藛"],jūn:["军","君","均","桾","汮","皲","皸","皹","碅","莙","蚐","袀","覠","軍","鈞","銁","銞","鍕","钧","頵","鮶","鲪","麏"],mí:["冞","擟","瀰","爢","猕","獼","祢","禰","縻","蒾","藌","蘪","蘼","袮","詸","謎","迷","醚","醾","醿","釄","镾","鸍","麊","麋","麛"],"guān guàn":["冠","覌","観","觀","观"],měng:["冡","勐","懵","掹","猛","獴","艋","蜢","蠓","錳","锰","鯭","鼆"],zhǒng:["冢","塚","尰","歱","煄","瘇","肿","腫","踵"],zuì:["冣","嶵","晬","最","栬","槜","檇","檌","祽","絊","罪","蕞","辠","酔","酻","醉","錊"],yuān:["冤","剈","囦","嬽","寃","棩","淵","渁","渆","渊","渕","灁","眢","肙","葾","蒬","蜎","蜵","駌","鳶","鴛","鵷","鸢","鸳","鹓","鼘","鼝"],míng:["冥","名","明","暝","朙","榠","洺","溟","猽","眀","眳","瞑","茗","螟","覭","詺","鄍","銘","铭","鳴","鸣"],kòu:["冦","叩","宼","寇","扣","敂","滱","窛","筘","簆","蔲","蔻","釦","鷇"],tài:["冭","太","夳","忲","态","態","汰","汱","泰","溙","肽","舦","酞","鈦","钛"],"féng píng":["冯","馮"],"chōng chòng":["冲"],kuàng:["况","圹","壙","岲","懬","旷","昿","曠","框","況","爌","眖","眶","矿","砿","礦","穬","絋","絖","纊","纩","貺","贶","軦","邝","鄺","鉱","鋛","鑛","黋"],lěng:["冷"],pàn:["冸","判","叛","沜","泮","溿","炍","牉","畔","盼","聁","袢","襻","詊","鋬","鑻","頖","鵥"],fā:["冹","彂","沷","発","發"],xiǎn:["冼","尟","尠","崄","嶮","幰","攇","显","櫶","毨","灦","烍","燹","狝","猃","獫","獮","玁","禒","筅","箲","藓","蘚","蚬","蜆","譣","赻","跣","鍌","险","険","險","韅","顕","顯","㬎"],qià:["冾","圶","帢","恰","殎","洽","硈","胢","髂"],"jìng chēng":["净","凈","淨"],sōu:["凁","嗖","廀","廋","捜","搜","摉","溲","獀","艘","蒐","螋","鄋","醙","鎪","锼","颼","飕","餿","馊","騪"],měi:["凂","媄","媺","嬍","嵄","挴","毎","每","浼","渼","燘","美","躾","鎂","镁","黣"],tú:["凃","図","图","圖","圗","塗","屠","峹","嵞","庩","廜","徒","悇","揬","涂","瘏","筡","腯","荼","蒤","跿","途","酴","鈯","鍎","馟","駼","鵌","鶟","鷋","鷵","𬳿"],zhǔn:["准","凖","埻","準","𬘯"],"liáng liàng":["凉","涼","量"],diāo:["凋","刁","刟","叼","奝","弴","彫","汈","琱","碉","簓","虭","蛁","貂","錭","雕","鮉","鯛","鲷","鵰","鼦"],còu:["凑","湊","腠","輳","辏"],ái:["凒","啀","嘊","捱","溰","癌","皑","皚"],duó:["凙","剫","夺","奪","痥","踱","鈬","鐸","铎"],dú:["凟","匵","嬻","椟","櫝","殰","涜","牍","牘","犊","犢","独","獨","瓄","皾","裻","読","讀","讟","豄","贕","錖","鑟","韇","韣","韥","騳","髑","黩","黷"],"jǐ jī":["几"],fán:["凡","凢","凣","匥","墦","杋","柉","棥","樊","瀿","烦","煩","燔","璠","矾","礬","笲","籵","緐","羳","舤","舧","薠","蘩","蠜","襎","蹯","釩","鐇","鐢","钒","鷭","𫔍","𬸪"],jū:["凥","匊","娵","婮","居","崌","抅","挶","掬","梮","椐","檋","毩","毱","泃","涺","狙","琚","疽","砠","罝","腒","艍","蜛","裾","諊","跔","踘","躹","陱","雎","鞠","鞫","駒","驹","鮈","鴡","鶋","𬶋"],"chù chǔ":["処","处"],zhǐ:["凪","劧","咫","址","坧","帋","恉","扺","指","旨","枳","止","汦","沚","洔","淽","疻","砋","祉","秖","紙","纸","芷","藢","衹","襧","訨","趾","軹","轵","酯","阯","黹"],píng:["凭","凴","呯","坪","塀","岼","帡","帲","幈","平","慿","憑","枰","洴","焩","玶","瓶","甁","竮","箳","簈","缾","荓","萍","蓱","蚲","蛢","評","评","軿","輧","郱","鮃","鲆"],kǎi:["凯","凱","剀","剴","垲","塏","恺","愷","慨","暟","蒈","輆","鍇","鎧","铠","锴","闓","闿","颽"],gān:["凲","坩","尲","尴","尶","尷","柑","泔","漧","玕","甘","疳","矸","竿","筸","粓","肝","苷","迀","酐","魐"],"kǎn qiǎn":["凵"],tū:["凸","堗","嶀","捸","涋","湥","痜","禿","秃","突","葖","鋵","鵚","鼵","㻬"],"āo wā":["凹"],chū:["出","初","岀","摴","榋","樗","貙","齣","䢺","䝙"],dàng:["凼","圵","垱","壋","档","檔","氹","璗","瓽","盪","瞊","砀","碭","礑","簜","荡","菪","蕩","蘯","趤","逿","雼","𬍡"],hán:["函","凾","含","圅","娢","寒","崡","晗","梒","浛","涵","澏","焓","琀","甝","筨","蜬","邗","邯","鋡","韓","韩"],záo:["凿","鑿"],dāo:["刀","刂","忉","氘","舠","螩","釖","魛","鱽"],chuāng:["刅","摐","牎","牕","疮","瘡","窓","窗","窻"],"fēn fèn":["分"],"qiè qiē":["切"],kān:["刊","勘","堪","戡","栞","龕","龛"],cǔn:["刌","忖"],chú:["刍","厨","幮","廚","橱","櫉","櫥","滁","犓","篨","耡","芻","蒢","蒭","蜍","蟵","豠","趎","蹰","躇","躕","鉏","鋤","锄","除","雏","雛","鶵"],"huà huá":["划"],lí:["刕","剓","剺","劙","厘","喱","嚟","囄","嫠","孷","廲","悡","梨","梸","棃","漓","灕","犁","犂","狸","琍","璃","瓈","盠","睝","离","穲","竰","筣","篱","籬","糎","縭","缡","罹","艃","荲","菞","蓠","蔾","藜","蘺","蜊","蟍","蟸","蠫","褵","謧","貍","醨","鋫","錅","鏫","鑗","離","驪","骊","鯏","鯬","鱺","鲡","鵹","鸝","鹂","黎","黧","㰀"],yuè:["刖","嬳","岄","岳","嶽","恱","悅","悦","戉","抈","捳","月","樾","瀹","爚","玥","礿","禴","篗","籆","籥","籰","粤","粵","蘥","蚎","蚏","説","越","跀","跃","躍","軏","鈅","鉞","鑰","钺","閱","閲","阅","鸑","鸙","黦","龠","𫐄","𬸚"],liú:["刘","劉","嚠","媹","嵧","旈","旒","榴","橊","流","浏","瀏","琉","瑠","瑬","璢","畄","留","畱","疁","瘤","癅","硫","蒥","蓅","蟉","裗","鎏","鏐","鐂","镠","飀","飅","飗","駠","駵","騮","驑","骝","鰡","鶹","鹠","麍"],zé:["则","則","啧","嘖","嫧","帻","幘","択","樍","歵","沢","泎","溭","皟","瞔","矠","礋","箦","簀","舴","蔶","蠌","襗","謮","賾","赜","迮","鸅","齚","齰"],"chuàng chuāng":["创","創"],qù:["刞","厺","去","閴","闃","阒","麮","鼁"],"bié biè":["別","别"],"páo bào":["刨"],"chǎn chàn":["刬","剗","幝"],guā:["刮","劀","桰","歄","煱","瓜","胍","踻","颪","颳","騧","鴰","鸹"],gēng:["刯","庚","椩","浭","焿","畊","絚","羮","羹","耕","菮","賡","赓","鶊","鹒"],dào:["到","噵","悼","椡","檤","燾","瓙","盗","盜","稲","稻","纛","翿","艔","菿","衜","衟","軇","道"],chuàng:["刱","剏","剙","怆","愴"],kū:["刳","哭","圐","堀","枯","桍","矻","窟","跍","郀","骷","鮬"],duò:["刴","剁","墯","尮","惰","憜","挅","桗","舵","跥","跺","陊","陏","飿","饳","鵽"],"shuā shuà":["刷"],"quàn xuàn":["券"],"chà shā":["刹","剎"],"cì cī":["刺"],guì:["刽","刿","劊","劌","撌","攰","昋","桂","椢","槶","樻","櫃","猤","禬","筀","蓕","襘","貴","贵","跪","鐀","鑎","鞼","鱖","鱥"],lóu:["剅","娄","婁","廔","楼","樓","溇","漊","熡","耧","耬","艛","蒌","蔞","蝼","螻","謱","軁","遱","鞻","髅","髏","𪣻"],cuò:["剉","剒","厝","夎","挫","措","棤","莝","莡","蓌","逪","銼","錯","锉","错"],"xiāo xuē":["削"],"kēi kè":["剋","尅"],"là lá":["剌"],tī:["剔","梯","踢","銻","锑","鷈","鷉","䏲","䴘"],pōu:["剖"],wān:["剜","塆","壪","帵","弯","彎","湾","潫","灣","睕","蜿","豌"],"bāo bō":["剝","剥"],duō:["剟","咄","哆","嚉","多","夛","掇","毲","畓","裰","㙍"],qíng:["剠","勍","夝","情","擎","晴","暒","棾","樈","檠","氰","甠","硘","葝","黥"],"yǎn shàn":["剡"],"dū zhuó":["剢"],yān:["剦","嫣","崦","嶖","恹","懕","懨","樮","淊","淹","漹","烟","焉","焑","煙","珚","篶","胭","臙","菸","鄢","醃","閹","阉","黫"],huō:["剨","劐","吙","攉","秴","耠","锪","騞","𬴃"],shèng:["剩","剰","勝","圣","墭","嵊","晠","榺","橳","琞","聖","蕂","貹","賸"],"duān zhì":["剬"],wū:["剭","呜","嗚","圬","屋","巫","弙","杇","歍","汙","汚","污","洿","烏","窏","箼","螐","誈","誣","诬","邬","鄔","鎢","钨","鰞","鴮"],gē:["割","哥","圪","彁","戈","戓","戨","歌","滒","犵","肐","袼","謌","鎶","鴚","鴿","鸽"],"dá zhá":["剳"],chuán:["剶","暷","椽","篅","舡","舩","船","輲","遄"],"tuán zhuān":["剸","漙","篿"],"lù jiū":["剹"],pēng:["剻","匉","嘭","怦","恲","抨","梈","烹","砰","軯","駍"],piāo:["剽","勡","慓","旚","犥","翲","螵","飃","飄","飘","魒"],kōu:["剾","彄","抠","摳","眍","瞘","芤","𫸩"],"jiǎo chāo":["剿","劋","勦","摷"],qiāo:["劁","勪","墝","幧","敲","橇","毃","燆","硗","磽","繑","趬","跷","踍","蹺","蹻","郻","鄡","鄥","鍫","鍬","鐰","锹","頝"],"huá huà":["劃"],"zhā zhá":["劄"],"pī pǐ":["劈","悂"],tāng:["劏","嘡","羰","薚","蝪","蹚","鞺","鼞"],chán:["劖","嚵","壥","婵","嬋","巉","廛","棎","毚","湹","潹","潺","澶","瀍","瀺","煘","獑","磛","緾","纏","纒","缠","艬","蝉","蟐","蟬","蟾","誗","讒","谗","躔","鄽","酁","鋋","鑱","镵","饞","馋"],zuān:["劗","躜","躦","鉆","鑚"],mó:["劘","嫫","嬤","嬷","尛","摹","擵","橅","糢","膜","藦","蘑","謨","謩","谟","饃","饝","馍","髍","魔","魹"],zhú:["劚","斸","曯","欘","灟","炢","烛","燭","爥","瘃","竹","笁","笜","舳","茿","蓫","蠋","蠾","躅","逐","逫","钃","鱁"],quàn:["劝","勧","勸","牶","韏"],"jìn jìng":["劤","劲","勁"],kēng:["劥","坑","牼","硁","硜","誙","銵","鍞","鏗","铿","阬"],"xié liè":["劦"],"zhù chú":["助"],nǔ:["努","弩","砮","胬"],shào:["劭","卲","哨","潲","紹","綤","绍","袑","邵"],miǎo:["劰","杪","淼","渺","眇","秒","篎","緲","缈","藐","邈"],kǒu:["劶","口"],wā:["劸","娲","媧","屲","挖","攨","洼","溛","漥","瓾","畖","穵","窊","窪","蛙","韈","鼃"],kuāng:["劻","匡","匩","哐","恇","洭","筐","筺","誆","诓","軭","邼"],hé:["劾","咊","啝","姀","峆","敆","曷","柇","楁","毼","河","涸","渮","澕","熆","皬","盇","盉","盍","盒","禾","篕","籺","粭","翮","菏","萂","覈","訸","詥","郃","釛","鉌","鑉","閡","闔","阂","阖","鞨","頜","餄","饸","魺","鹖","麧","齕","龁","龢","𬌗"],gào:["勂","吿","告","峼","祮","祰","禞","筶","誥","诰","郜","鋯","锆"],"bó bèi":["勃"],láng:["勆","嫏","廊","斏","桹","榔","樃","欴","狼","琅","瑯","硠","稂","艆","蓈","蜋","螂","躴","郒","郞","鋃","鎯","锒"],xūn:["勋","勛","勲","勳","嚑","坃","埙","塤","壎","壦","曛","燻","獯","矄","纁","臐","薫","薰","蘍","醺","𫄸"],"juàn juān":["勌","瓹"],"lè lēi":["勒"],kài:["勓","炌","烗","鎎"],"wěng yǎng":["勜"],qín:["勤","嗪","噙","嶜","庈","懃","懄","捦","擒","斳","檎","澿","珡","琴","琹","瘽","禽","秦","耹","芩","芹","菦","螓","蠄","鈙","鈫","雂","靲","鳹","鵭"],jiàng:["勥","匞","匠","嵹","弜","弶","摾","櫤","洚","滰","犟","糡","糨","絳","绛","謽","酱","醤","醬"],fān:["勫","嬏","帆","幡","忛","憣","旙","旛","繙","翻","藩","轓","颿","飜","鱕"],juān:["勬","姢","娟","捐","涓","蠲","裐","鎸","鐫","镌","鹃"],"tóng dòng":["勭","烔","燑","狪"],lǜ:["勴","垏","嵂","律","慮","氯","滤","濾","爈","箻","綠","繂","膟","葎","虑","鑢"],chè:["勶","坼","彻","徹","掣","撤","澈","烢","爡","瞮","硩","聅","迠","頙","㬚"],sháo:["勺","玿","韶"],"gōu gòu":["勾"],cōng:["匆","囪","囱","忩","怱","悤","暰","樬","漗","瑽","璁","瞛","篵","繱","聡","聦","聪","聰","苁","茐","葱","蓯","蔥","蟌","鍯","鏓","鏦","騘","驄","骢"],"táo yáo":["匋","陶"],páo:["匏","咆","垉","庖","爮","狍","袍","褜","軳","鞄","麅"],dá:["匒","妲","怛","炟","燵","畣","笪","羍","荙","薘","蟽","詚","达","迏","迖","迚","逹","達","鐽","靼","鞑","韃","龖","龘","𫟼"],"huà huā":["化"],"běi bèi":["北"],nǎo:["匘","垴","堖","嫐","恼","悩","惱","瑙","碯","脑","脳","腦"],"chí shi":["匙"],fāng:["匚","堏","方","淓","牥","芳","邡","鈁","錺","钫","鴋"],zā:["匝","咂","帀","沞","臜","臢","迊","鉔","魳"],qiè:["匧","厒","妾","怯","悏","惬","愜","挈","穕","窃","竊","笡","箧","篋","籡","踥","鍥","锲","鯜"],"zāng cáng":["匨"],fěi:["匪","奜","悱","棐","榧","篚","翡","蕜","誹","诽"],"kuì guì":["匮","匱"],suǎn:["匴"],pǐ:["匹","噽","嚭","圮","庀","痞","癖","脴","苉","銢","鴄"],"qū ōu":["区","區"],"kē qià":["匼"],"yǎn yàn":["匽","棪"],biǎn:["匾","惼","揙","碥","稨","窆","藊","褊","貶","贬","鴘"],nì:["匿","堄","嫟","嬺","惄","愵","昵","暱","氼","眤","睨","縌","胒","腻","膩","逆","𨺙"],niàn:["卄","唸","埝","廿","念","惗","艌"],sà:["卅","櫒","脎","萨","蕯","薩","鈒","隡","颯","飒","馺"],zú:["卆","哫","崪","族","箤","足","踤","镞"],shēng:["升","呏","声","斘","昇","曻","枡","殅","泩","湦","焺","牲","珄","生","甥","竔","笙","聲","鉎","鍟","阩","陞","陹","鵿","鼪"],wàn:["卍","卐","忨","杤","瞣","脕","腕","萬","蟃","贎","輐","錽","𬇕"],"huá huà huā":["华","華"],bēi:["卑","悲","揹","杯","桮","盃","碑","藣","鵯","鹎"],"zú cù":["卒"],"dān shàn chán":["单","單"],"nán nā":["南"],"shuài lǜ":["卛"],"bǔ bo pú":["卜"],"kuàng guàn":["卝"],biàn:["卞","变","変","峅","弁","徧","忭","抃","昪","汳","汴","玣","艑","苄","覍","諚","變","辡","辧","辨","辩","辫","辮","辯","遍","釆","𨚕"],bǔ:["卟","哺","捕","补","補","鸔","𬷕"],"zhàn zhān":["占","覱"],"kǎ qiǎ":["卡"],lú:["卢","嚧","垆","壚","庐","廬","曥","枦","栌","櫨","泸","瀘","炉","爐","獹","玈","瓐","盧","矑","籚","纑","罏","胪","臚","舮","舻","艫","芦","蘆","蠦","轤","轳","鈩","鑪","顱","颅","馿","髗","魲","鱸","鲈","鸕","鸬","黸","𬬻"],lǔ:["卤","塷","掳","擄","樐","橹","櫓","氌","滷","澛","瀂","硵","磠","穞","艣","艪","蓾","虏","虜","鏀","鐪","鑥","镥","魯","鲁","鹵"],guà:["卦","啩","挂","掛","罣","褂","詿","诖"],"áng yǎng":["卬"],yìn:["印","垽","堷","廕","慭","憖","憗","懚","洕","湚","猌","癊","胤","茚","酳","鮣","䲟"],què:["却","卻","塙","崅","悫","愨","慤","搉","榷","燩","琷","皵","确","確","礭","闋","阕","鵲","鹊","𬒈"],luǎn:["卵"],"juàn juǎn":["卷","巻"],"chǎng ān hàn":["厂"],"wěi yán":["厃"],tīng:["厅","厛","听","庁","廰","廳","汀","烃","烴","綎","耓","聴","聼","聽","鞓","𬘩"],"zhé zhái":["厇"],"hàn àn":["厈","屽"],yǎ:["厊","唖","庌","痖","瘂","蕥"],shè:["厍","厙","弽","慑","慴","懾","摂","欇","涉","涻","渉","滠","灄","社","舎","蔎","蠂","設","设","赦","騇","麝"],dǐ:["厎","呧","坘","弤","抵","拞","掋","牴","砥","菧","觝","詆","诋","軧","邸","阺","骶","鯳"],"zhǎ zhǎi":["厏"],páng:["厐","嫎","庞","徬","舽","螃","逄","鰟","鳑","龎","龐"],"zhì shī":["厔"],máng:["厖","吂","哤","娏","忙","恾","杗","杧","汒","浝","牻","痝","盲","硭","笀","芒","茫","蘉","邙","釯","鋩","铓","駹"],zuī:["厜","樶","纗","蟕"],"shà xià":["厦","廈"],áo:["厫","嗷","嗸","廒","敖","滶","獒","獓","璈","翱","翶","翺","聱","蔜","螯","謷","謸","遨","鏖","隞","鰲","鳌","鷔","鼇"],"lán qiān":["厱"],"sī mǒu":["厶"],"gōng hóng":["厷"],"lín miǎo":["厸"],"qiú róu":["厹"],dū:["厾","嘟","督","醏"],"xiàn xuán":["县","縣"],"cān shēn cēn sān":["参","參","叄","叅"],"ài yǐ":["叆"],"chā chà chǎ chá":["叉"],shuāng:["双","孀","孇","欆","礵","艭","雙","霜","騻","驦","骦","鷞","鸘","鹴"],shōu:["収","收"],guái:["叏"],bá:["叐","妭","抜","拔","炦","癹","胈","茇","菝","詙","跋","軷","魃","鼥"],"fā fà":["发"],"zhuó yǐ lì jué":["叕"],qǔ:["取","娶","竬","蝺","詓","齲","龋"],"jiǎ xiá":["叚","徦"],"wèi yù":["叞","尉","蔚"],dié:["叠","垤","堞","峌","幉","恎","惵","戜","曡","殜","氎","牃","牒","瓞","畳","疂","疉","疊","碟","絰","绖","耊","耋","胅","艓","苵","蜨","蝶","褋","詄","諜","谍","跮","蹀","迭","镻","鰈","鲽","鴩","𫶇"],ruì:["叡","枘","汭","瑞","睿","芮","蚋","蜹","銳","鋭","锐"],"jù gōu":["句"],lìng:["另","呤","炩","蘦"],"dāo dáo tāo":["叨"],"zhī zhǐ":["只"],jiào:["叫","呌","嘂","嘦","噍","嬓","斍","斠","滘","漖","獥","珓","皭","窖","藠","訆","譥","趭","較","轎","轿","较","酵","醮","釂"],"zhào shào":["召"],"kě kè":["可"],"tái tāi":["台","苔"],pǒ:["叵","尀","笸","箥","鉕","钷","駊"],"yè xié":["叶"],"hào háo":["号"],tàn:["叹","嘆","探","歎","湠","炭","碳","舕"],"hōng hóng":["叿"],miē:["吀","咩","哶","孭"],"xū yū yù":["吁"],chī:["吃","哧","喫","嗤","噄","妛","媸","彨","彲","摛","攡","殦","瓻","痴","癡","眵","瞝","笞","粚","胵","蚩","螭","訵","魑","鴟","鵄","鸱","黐","齝","𫄨"],"xuān sòng":["吅"],yāo:["吆","喓","夭","妖","幺","楆","殀","祅","腰","葽","訞","邀","鴁","鴢","㙘"],zǐ:["吇","姉","姊","子","杍","梓","榟","橴","滓","矷","秭","笫","籽","紫","耔","虸","訿","釨"],"hé gě":["合","鲄"],"cùn dòu":["吋"],"tóng tòng":["同"],"tǔ tù":["吐","唋"],"zhà zhā":["吒","奓"],"xià hè":["吓"],"ā yā":["吖"],"ma má mǎ":["吗"],lìn:["吝","恡","悋","橉","焛","甐","膦","蔺","藺","賃","赁","蹸","躏","躙","躪","轥","閵"],tūn:["吞","暾","朜","焞"],"bǐ pǐ":["吡"],qìn:["吢","吣","唚","抋","揿","搇","撳","沁","瀙","菣","藽"],"jiè gè":["吤"],"fǒu pǐ":["否"],"ba bā":["吧"],dūn:["吨","噸","墩","墪","惇","撉","撴","犜","獤","礅","蜳","蹾","驐"],fēn:["吩","帉","昐","朆","梤","棻","氛","竕","紛","纷","翂","芬","衯","訜","躮","酚","鈖","雰","餴","饙","馚"],"é huā":["吪"],"kēng háng":["吭","妔"],shǔn:["吮"],"zhī zī":["吱"],"yǐn shěn":["吲"],wú:["吳","吴","呉","墲","峿","梧","橆","毋","洖","浯","無","珸","璑","祦","芜","茣","莁","蕪","蜈","蟱","譕","郚","鋙","铻","鯃","鵐","鷡","鹀","鼯"],"chǎo chāo":["吵"],"nà nè":["吶"],"xuè chuò jué":["吷"],chuī:["吹","炊","龡"],"dōu rú":["吺"],hǒu:["吼","犼"],"hōng hǒu ōu":["吽"],"wú yù":["吾"],"ya yā":["呀"],"è e":["呃"],dāi:["呆","懛","獃"],"mèn qǐ":["呇"],hōng:["呍","嚝","揈","灴","烘","焢","硡","薨","訇","谾","軣","輷","轟","轰","鍧"],nà:["呐","捺","笝","納","纳","肭","蒳","衲","豽","貀","軜","郍","鈉","钠","靹","魶"],"tūn tiān":["呑"],"fǔ ḿ":["呒","嘸"],"dāi tǎi":["呔"],"ǒu ōu òu":["呕"],"bài bei":["呗"],"yuán yún yùn":["员","員"],guō:["呙","啯","嘓","埚","堝","墎","崞","彉","彍","懖","猓","瘑","聒","蝈","蟈","郭","鈛","鍋","锅"],"huá qì":["呚"],"qiàng qiāng":["呛","跄"],shī:["呞","失","尸","屍","师","師","施","浉","湤","湿","溮","溼","濕","狮","獅","瑡","絁","葹","蒒","蓍","虱","蝨","褷","襹","詩","诗","邿","釃","鉇","鍦","鯴","鰤","鲺","鳲","鳾","鶳","鸤","䴓","𫚕"],juǎn:["呟","埍","臇","菤","錈","锩"],pěn:["呠","翸"],"wěn mǐn":["呡"],"ne ní":["呢"],"ḿ m̀ móu":["呣"],rán:["呥","嘫","然","燃","繎","肰","蚦","蚺","衻","袇","袡","髥","髯"],"tiè chè":["呫"],"qì zhī":["呮"],"zǐ cī":["呰"],"guā gū guǎ":["呱"],"cī zī":["呲"],"hǒu xǔ gòu":["呴"],"hē ā á ǎ à a":["呵"],náo:["呶","夒","峱","嶩","巎","挠","撓","猱","硇","蛲","蟯","詉","譊","鐃","铙"],"xiā gā":["呷"],pēi:["呸","怌","肧","胚","衃","醅"],"háo xiāo":["呺"],mìng:["命","掵"],"dá dàn":["呾"],"zuǐ jǔ":["咀"],"xián gān":["咁"],pǒu:["咅","哣","犃"],"yǎng yāng":["咉"],"zǎ zé zhā":["咋"],"hé hè huó huò hú":["和"],hāi:["咍"],dā:["咑","哒","噠","墶","搭","撘","耷","褡","鎝","𨱏"],"kǎ kā":["咔"],gū:["咕","唂","唃","姑","嫴","孤","巬","巭","柧","橭","沽","泒","稒","笟","箍","箛","篐","罛","苽","菇","菰","蓇","觚","軱","軲","轱","辜","酤","鈲","鮕","鴣","鸪"],"kā gā":["咖"],zuo:["咗"],lóng:["咙","嚨","嶐","巃","巄","昽","曨","朧","栊","槞","櫳","湰","滝","漋","爖","珑","瓏","癃","眬","矓","砻","礱","礲","窿","竜","聋","聾","胧","茏","蘢","蠪","蠬","襱","豅","鏧","鑨","霳","靇","驡","鸗","龍","龒","龙"],"xiàn xián":["咞"],qì:["咠","唭","噐","器","夡","弃","憇","憩","暣","棄","欫","气","気","氣","汔","汽","泣","湆","湇","炁","甈","盵","矵","碛","碶","磜","磧","罊","芞","葺","藒","蟿","訖","讫","迄","鐑"],"xì dié":["咥"],"liē liě lié lie":["咧"],zī:["咨","嗞","姕","姿","孜","孳","孶","崰","嵫","栥","椔","淄","湽","滋","澬","玆","禌","秶","粢","紎","緇","緕","纃","缁","茊","茲","葘","諮","谘","貲","資","赀","资","赼","趑","趦","輜","輺","辎","鄑","鈭","錙","鍿","鎡","锱","镃","頾","頿","髭","鯔","鰦","鲻","鶅","鼒","齍","齜","龇"],mī:["咪"],"jī xī qià":["咭"],"gē luò kǎ lo":["咯"],"shù xún":["咰"],"zán zá zǎ zan":["咱"],"hāi ké":["咳"],huī:["咴","噅","噕","婎","媈","幑","徽","恢","拻","挥","揮","晖","暉","楎","洃","瀈","灰","灳","烣","睳","禈","翚","翬","蘳","袆","褘","詼","诙","豗","輝","辉","鰴","麾","㧑"],"huài shì":["咶"],táo:["咷","啕","桃","檮","洮","淘","祹","綯","绹","萄","蜪","裪","迯","逃","醄","鋾","鞀","鞉","饀","駣","騊","鼗","𫘦"],xián:["咸","啣","娴","娹","婱","嫌","嫺","嫻","弦","挦","撏","涎","湺","澖","甉","痫","癇","癎","絃","胘","舷","藖","蚿","蛝","衔","衘","誸","諴","賢","贒","贤","輱","醎","銜","鑦","閑","闲","鷳","鷴","鷼","鹇","鹹","麙","𫍯"],"è àn":["咹"],"xuān xuǎn":["咺","烜"],"wāi hé wǒ guǎ guō":["咼"],"yàn yè yān":["咽"],āi:["哀","哎","埃","溾","銰","鎄","锿"],pǐn:["品","榀"],shěn:["哂","婶","嬸","审","宷","審","弞","曋","渖","瀋","瞫","矤","矧","覾","訠","諗","讅","谂","谉","邥","頣","魫"],"hǒng hōng hòng":["哄"],"wā wa":["哇"],"hā hǎ hà":["哈"],zāi:["哉","栽","渽","溨","災","灾","烖","睵","賳"],"dì diè":["哋"],pài:["哌","沠","派","渒","湃","蒎","鎃"],"gén hěn":["哏"],"yǎ yā":["哑","雅"],"yuě huì":["哕","噦"],nián:["哖","年","秊","秥","鮎","鯰","鲇","鲶","鵇","黏"],"huá huā":["哗","嘩"],"jì jiē zhāi":["哜","嚌"],mōu:["哞"],"yō yo":["哟","喲"],lòng:["哢","梇","贚"],"ò ó é":["哦"],"lī lǐ li":["哩"],"nǎ na nǎi né něi":["哪"],hè:["哬","垎","壑","寉","惒","焃","煂","燺","爀","癋","碋","翯","褐","謞","賀","贺","赫","靍","靎","靏","鶴","鸖","鹤"],"bō pò bā":["哱"],zhé:["哲","啠","喆","嚞","埑","悊","摺","晢","晣","歽","矺","砓","磔","籷","粍","虴","蛰","蟄","袩","詟","謫","謺","讁","讋","谪","輒","輙","轍","辄","辙","鮿"],"liàng láng":["哴"],"liè lǜ":["哷"],hān:["哻","憨","蚶","谽","酣","頇","顸","馠","魽","鼾"],"hēng hng":["哼"],gěng:["哽","埂","峺","挭","梗","綆","绠","耿","莄","郠","骾","鯁","鲠","𬒔"],"chuò yuè":["哾"],"gě jiā":["哿"],"bei bài":["唄"],"hán hàn":["唅"],chún:["唇","浱","湻","滣","漘","犉","純","纯","脣","莼","蒓","蓴","醇","醕","錞","陙","鯙","鶉","鹑","𬭚"],"ài āi":["唉"],"jiá qiǎn":["唊"],"yán dàn xián":["唌"],chē:["唓","砗","硨","莗","蛼"],"wú ńg ń":["唔"],zào:["唕","唣","噪","慥","梍","灶","煰","燥","皁","皂","竃","竈","簉","艁","譟","趮","躁","造","𥖨"],dí:["唙","啇","嘀","嚁","嫡","廸","敌","敵","梑","涤","滌","狄","笛","籴","糴","苖","荻","蔋","蔐","藡","覿","觌","豴","迪","靮","頔","馰","髢","鸐","𬱖"],"gòng hǒng gǒng":["唝","嗊"],dóu:["唞"],"lào láo":["唠","嘮","憦"],huàn:["唤","喚","奂","奐","宦","嵈","幻","患","愌","换","換","擐","攌","梙","槵","浣","涣","渙","漶","澣","烉","焕","煥","瑍","痪","瘓","睆","肒","藧","豢","轘","逭","鯇","鯶","鰀","鲩"],léng:["唥","塄","楞","碐","薐"],"wō wěi":["唩"],fěng:["唪","覂","諷","讽"],"yín jìn":["唫"],"hǔ xià":["唬"],wéi:["唯","围","圍","壝","峗","峞","嵬","帏","帷","幃","惟","桅","沩","洈","涠","湋","溈","潍","潙","潿","濰","犩","矀","維","维","蓶","覹","违","違","鄬","醀","鍏","闈","闱","韋","韦","鮠","𣲗","𬶏"],shuā:["唰"],chàng:["唱","怅","悵","暢","焻","畅","畼","誯","韔","鬯"],"ér wā":["唲"],qiàng:["唴","炝","熗","羻"],yō:["唷"],yū:["唹","淤","瘀","盓","箊","紆","纡","込","迂","迃","陓"],lài:["唻","濑","瀨","瀬","癞","癩","睐","睞","籁","籟","藾","賚","賴","赉","赖","頼","顂","鵣"],tuò:["唾","嶞","柝","毤","毻","箨","籜","萚","蘀","跅"],"zhōu zhāo tiào":["啁"],kěn:["啃","垦","墾","恳","懇","肎","肯","肻","豤","錹"],"zhuó zhào":["啅","濯"],"hēng hèng":["啈","悙"],"lín lán":["啉"],"a ā á ǎ à":["啊"],qiāng:["啌","嗴","嶈","戕","摤","斨","枪","槍","溬","牄","猐","獇","羌","羗","腔","蜣","謒","鏘","锖","锵"],"tūn zhūn xiāng duǐ":["啍"],wèn:["問","妏","揾","搵","璺","问","顐"],"cuì qi":["啐"],"dié shà jié tì":["啑"],"yuē wā":["啘"],"zǐ cǐ":["啙"],"bǐ tú":["啚"],"chuò chuài":["啜"],"yǎ yā è":["啞"],fēi:["啡","婓","婔","扉","暃","渄","猆","緋","绯","裶","霏","非","靟","飛","飝","飞","餥","馡","騑","騛","鯡","鲱","𬴂"],pí:["啤","壀","枇","毗","毘","焷","琵","疲","皮","篺","罴","羆","脾","腗","膍","蚍","蚽","蜱","螷","蠯","豼","貔","郫","鈹","阰","陴","隦","魮","鮍","鲏","鵧","鼙"],shá:["啥"],"lā la":["啦"],"yīng qíng":["啨"],pā:["啪","妑","舥","葩","趴"],"zhě shì":["啫"],sè:["啬","嗇","懎","擌","栜","歮","涩","渋","澀","澁","濇","濏","瀒","瑟","璱","瘷","穑","穡","穯","繬","譅","轖","銫","鏼","铯","飋"],niè:["啮","嗫","噛","嚙","囁","囓","圼","孼","孽","嵲","嶭","巕","帇","敜","枿","槷","櫱","涅","湼","痆","篞","籋","糱","糵","聂","聶","臬","臲","蘖","蠥","讘","踂","踗","踙","蹑","躡","錜","鎳","鑈","鑷","钀","镊","镍","闑","陧","隉","顳","颞","齧","𫔶"],"luō luó luo":["啰","囉"],"tān chǎn tuō":["啴"],bo:["啵","蔔"],dìng:["啶","定","椗","矴","碇","碠","磸","聢","腚","萣","蝊","訂","订","錠","锭","顁","飣","饤"],lāng:["啷"],"án ān":["啽"],kā:["喀","擖"],"yóng yú":["喁"],"lā lá lǎ":["喇"],jiē:["喈","喼","嗟","堦","媘","接","掲","擑","湝","煯","疖","痎","癤","皆","秸","稭","脻","蝔","街","謯","阶","階","鞂","鶛"],hóu:["喉","帿","猴","瘊","睺","篌","糇","翭","葔","鄇","鍭","餱","骺","鯸","𬭤"],"dié zhá":["喋"],wāi:["喎","歪","竵"],"nuò rě":["喏"],"xù huò guó":["喐"],zán:["喒"],"wō ō":["喔"],hú:["喖","嘝","囫","壶","壷","壺","媩","弧","搰","斛","楜","槲","湖","瀫","焀","煳","狐","猢","瑚","瓳","箶","絗","縠","胡","葫","蔛","蝴","螜","衚","觳","醐","鍸","頶","餬","鬍","魱","鰗","鵠","鶘","鶦","鹕"],"huàn yuán xuǎn hé":["喛"],xǐ:["喜","囍","壐","屣","徙","憙","枲","橲","歖","漇","玺","璽","矖","禧","縰","葈","葸","蓰","蟢","謑","蹝","躧","鈢","鉨","鉩","鱚","𬭳","𬶮"],"hē hè yè":["喝"],kuì:["喟","嘳","媿","嬇","愦","愧","憒","篑","簣","籄","聩","聭","聵","膭","蕢","謉","餽","饋","馈"],"zhǒng chuáng":["喠"],"wéi wèi":["喡","為","爲"],"duó zhà":["喥"],"sāng sàng":["喪"],"qiáo jiāo":["喬"],"pèn bēn":["喯"],"cān sūn qī":["喰"],"zhā chā":["喳"],miāo:["喵"],"pēn pèn":["喷"],kuí:["喹","夔","奎","巙","戣","揆","晆","暌","楏","楑","櫆","犪","睽","葵","藈","蘷","虁","蝰","躨","逵","鄈","鍨","鍷","頯","馗","騤","骙","魁"],"lou lóu":["喽"],"zào qiāo":["喿"],"hè xiāo xiào hù":["嗃"],"á shà":["嗄"],xiù:["嗅","岫","峀","溴","珛","琇","璓","秀","綉","繍","繡","绣","螑","袖","褎","褏","銹","鏥","鏽","锈","齅"],"qiāng qiàng":["嗆","戗","戧","蹌","蹡"],"ài yì":["嗌","艾"],"má mǎ ma":["嗎"],"kè kē":["嗑"],"dā tà":["嗒","鎉"],sǎng:["嗓","搡","磉","褬","鎟","顙","颡"],chēn:["嗔","抻","琛","瞋","諃","謓","賝","郴","𬘭"],"wā gǔ":["嗗"],"pǎng bēng":["嗙"],"xián qiǎn qiān":["嗛"],lào:["嗠","嫪","橯","涝","澇","耢","耮","躼","軂","酪"],wēng:["嗡","翁","聬","螉","鎓","鶲","鹟","𬭩"],wà:["嗢","腽","膃","袜","襪","韤"],"hēi hāi":["嗨"],hē:["嗬","欱","蠚","訶","诃"],zi:["嗭"],sǎi:["嗮"],"ǹg ńg ňg":["嗯"],gě:["嗰","舸"],ná:["嗱","拏","拿","鎿","镎"],diǎ:["嗲"],"ài ǎi āi":["嗳"],tōng:["嗵","樋","炵","蓪"],"zuī suī":["嗺"],"zhē zhè zhù zhe":["嗻"],mò:["嗼","圽","塻","墨","妺","嫼","寞","帞","昩","末","枺","歿","殁","沫","漠","爅","獏","瘼","皌","眽","眿","瞐","瞙","砞","礳","秣","絈","纆","耱","茉","莈","蓦","蛨","蟔","貃","貊","貘","銆","鏌","镆","陌","靺","驀","魩","默","黙","𬙊"],sòu:["嗽","瘶"],tǎn:["嗿","坦","忐","憳","憻","暺","毯","璮","菼","袒","襢","醓","鉭","钽"],"jiào dǎo":["嘄"],"kǎi gě":["嘅"],"shān càn":["嘇"],cáo:["嘈","嶆","曹","曺","槽","漕","艚","蓸","螬","褿","鏪","𥕢"],piào:["嘌","徱","蔈","驃"],"lóu lou":["嘍"],gǎ:["尕","玍"],"gǔ jiǎ":["嘏"],"jiāo xiāo":["嘐"],"xū shī":["嘘","噓"],pó:["嘙","嚩","婆","櫇","皤","鄱"],"dē dēi":["嘚"],"ma má":["嘛"],"lē lei":["嘞"],"gā gá gǎ":["嘠"],sāi:["嘥","噻","毢","腮","顋","鰓"],"zuō chuài":["嘬"],"cháo zhāo":["嘲","朝","鼂"],zuǐ:["嘴","噿","嶊","璻"],"qiáo qiào":["嘺","翹","谯"],"chù xù shòu":["嘼"],"tān chǎn":["嘽"],"dàn tán":["嘾","弾","彈","惔","澹"],"hēi mò":["嘿"],ě:["噁","砨","頋","騀","鵈"],"fān bo":["噃"],chuáng:["噇","床","牀"],"cù zā hé":["噈"],"tūn kuò":["噋"],"cēng chēng":["噌"],dēng:["噔","嬁","灯","燈","璒","登","竳","簦","艠","豋"],pū:["噗","扑","撲","攴","攵","潽","炇","陠"],juē:["噘","屩","屫","撧"],lū:["噜","嚕","撸","擼","謢"],zhān:["噡","岾","惉","旃","旜","枬","栴","毡","氈","氊","沾","瞻","薝","蛅","詀","詹","譫","谵","趈","邅","閚","霑","飦","饘","驙","魙","鱣","鸇","鹯","𫗴"],ō:["噢"],"zhòu zhuó":["噣"],"jiào qiào chī":["噭"],yuàn:["噮","妴","怨","愿","掾","瑗","禐","苑","衏","裫","褑","院","願"],"ǎi ài āi":["噯"],"yōng yǒng":["噰","澭"],"jué xué":["噱"],"pēn pèn fèn":["噴"],gá:["噶","尜","釓","錷","钆"],"xīn hěn hèn":["噷"],dāng:["噹","澢","珰","璫","筜","簹","艡","蟷","裆","襠"],làn:["嚂","滥","濫","烂","燗","爁","爛","爤","瓓","糷","钄"],tà:["嚃","嚺","崉","挞","搨","撻","榻","橽","毾","涾","澾","濌","禢","粏","誻","譶","蹋","蹹","躂","躢","遝","錔","闒","闥","闼","阘","鞜","鞳"],"huō huò ǒ":["嚄"],hāo:["嚆","茠","蒿","薅"],"hè xià":["嚇"],"xiù pì":["嚊"],"zhōu chóu":["嚋","盩","诪"],mē:["嚒"],"chā cā":["嚓"],"bó pào bào":["嚗"],"me mèi mò":["嚜"],"xié hái":["嚡"],"áo xiāo":["嚣"],mō:["嚤","摸"],pín:["嚬","娦","嫔","嬪","玭","矉","薲","蠙","貧","贫","顰","颦","𬞟"],mè:["嚰","濹"],"rǎng rāng":["嚷"],lá:["嚹","旯"],"jiáo jué jiào":["嚼"],chuò:["嚽","娖","擉","歠","涰","磭","踀","輟","辍","辵","辶","酫","鑡","餟","齪","龊"],"huān huàn":["嚾"],"zá cà":["囃"],chài:["囆","虿","蠆","袃","訍"],"náng nāng":["囊"],"zá zàn cān":["囋"],sū:["囌","櫯","甦","稣","穌","窣","蘇","蘓","酥","鯂"],zèng:["囎","熷","甑","贈","赠","鋥","锃"],"zá niè yàn":["囐"],nāng:["囔"],"luó luō luo":["囖"],"wéi guó":["囗"],huí:["囘","回","囬","廻","廽","恛","洄","痐","茴","蚘","蛔","蛕","蜖","迴","逥","鮰"],nín:["囜","您","脌"],"jiǎn nān":["囝"],nān:["囡"],tuán:["团","団","團","慱","抟","摶","檲","糰","鏄","鷒","鷻"],"tún dùn":["囤","坉"],guó:["囯","囶","囻","国","圀","國","帼","幗","慖","摑","漍","聝","腘","膕","蔮","虢","馘","𬇹"],kùn:["困","涃","睏"],"wéi tōng":["囲"],qūn:["囷","夋","逡"],rì:["囸","日","衵","鈤","馹","驲"],tāi:["囼","孡","胎"],pǔ:["圃","圑","擈","普","暜","樸","檏","氆","浦","溥","烳","諩","譜","谱","蹼","鐠","镨"],"quān juàn juān":["圈","圏"],"chuí chuán":["圌"],tuǎn:["圕","畽","疃"],lüè:["圙","掠","略","畧","稤","鋝","鋢","锊","䂮"],"huán yuán":["圜"],luán:["圝","圞","奱","娈","孌","孪","孿","峦","巒","挛","攣","曫","栾","欒","滦","灤","癴","癵","羉","脔","臠","虊","銮","鑾","鵉","鸞","鸾"],tǔ:["土","圡","釷","钍"],"xū wéi":["圩"],"dì de":["地","嶳"],"qiān sú":["圱"],zhèn:["圳","塦","挋","振","朕","栚","甽","眹","紖","絼","纼","誫","賑","赈","鋴","鎭","鎮","镇","阵","陣","震","鴆","鸩"],"chǎng cháng":["场","場","塲"],"qí yín":["圻"],jiá:["圿","忦","恝","戞","扴","脥","荚","莢","蛱","蛺","裌","跲","郏","郟","鋏","铗","頬","頰","颊","鴶","鵊"],"zhǐ zhì":["坁"],bǎn:["坂","岅","昄","板","版","瓪","粄","舨","蝂","鈑","钣","阪","魬"],qǐn:["坅","寑","寝","寢","昑","梫","笉","螼","赾","鋟","锓"],"méi fén":["坆"],"rǒng kēng":["坈"],"fāng fáng":["坊"],"fèn bèn":["坋"],tān:["坍","怹","摊","擹","攤","滩","灘","瘫","癱","舑","貪","贪"],"huài pēi pī péi":["坏"],"dì làn":["坔"],tán:["坛","墰","墵","壇","壜","婒","憛","昙","曇","榃","檀","潭","燂","痰","磹","罈","罎","藫","談","譚","譠","谈","谭","貚","郯","醰","錟","顃"],bà:["坝","垻","壩","弝","欛","灞","爸","矲","覇","霸","鮁","鲅"],fén:["坟","墳","妢","岎","幩","枌","棼","汾","焚","燌","燓","羒","羵","蒶","蕡","蚠","蚡","豮","豶","轒","鐼","隫","馩","魵","黂","鼖","鼢","𣸣"],zhuì:["坠","墜","惴","甀","畷","礈","綴","縋","缀","缒","腏","膇","諈","贅","赘","醊","錣","鑆"],pō:["坡","岥","泼","溌","潑","釙","鏺","钋","頗","颇","䥽"],"pǎn bàn":["坢"],kūn:["坤","堃","堒","崐","崑","昆","晜","潉","焜","熴","猑","琨","瑻","菎","蜫","裈","裩","褌","醌","錕","锟","騉","髠","髡","髨","鯤","鲲","鵾","鶤","鹍"],diàn:["坫","垫","墊","壂","奠","婝","店","惦","扂","橂","殿","淀","澱","玷","琔","电","癜","簟","蜔","鈿","電","靛","驔"],"mù mǔ":["坶"],"kē kě":["坷","軻"],xuè:["坹","岤","桖","瀥","狘","瞲","謔","谑","趐"],"dǐ chí":["坻","柢"],lā:["垃","柆","菈","邋"],lǒng:["垄","垅","壟","壠","拢","攏","竉","陇","隴","𬕂"],mín:["垊","姄","岷","崏","捪","旻","旼","民","珉","琘","琝","瑉","痻","盿","砇","緍","緡","缗","罠","苠","鈱","錉","鍲","鴖"],"dòng tóng":["垌","峒","洞"],cí:["垐","嬨","慈","柌","濨","珁","瓷","甆","磁","礠","祠","糍","茨","詞","词","辝","辞","辤","辭","雌","飺","餈","鴜","鶿","鷀","鹚"],duī:["垖","堆","塠","痽","磓","鐓","鐜","鴭"],"duò duǒ":["垛"],"duǒ duò":["垜","挆"],chá:["垞","察","嵖","搽","槎","檫","猹","茬","茶","詧","靫","𥻗"],shǎng:["垧","晌","樉","賞","贘","赏","鋿","鏛","鑜"],shǒu:["垨","守","手","扌","艏","首"],da:["垯","繨","跶"],háng:["垳","斻","杭","筕","絎","绗","航","苀","蚢","裄","貥","迒","頏","颃","魧"],"ān ǎn":["垵"],xīng:["垶","惺","星","曐","煋","猩","瑆","皨","篂","腥","興","觪","觲","謃","騂","骍","鮏","鯹"],"yuàn huán":["垸"],bāng:["垹","帮","幇","幚","幫","捠","梆","浜","邦","邫","鞤","𠳐"],"póu fú":["垺"],cén:["埁","岑","涔"],"běng fēng":["埄"],"dì fáng":["埅"],"xiá jiā":["埉"],"mái mán":["埋"],làng:["埌","崀","浪","蒗","閬","㫰"],"shān yán":["埏"],"qín jīn":["埐"],"pǔ bù":["埔"],huā:["埖","婲","椛","硴","糀","花","蒊","蘤","誮","錵"],"suì sù":["埣"],"pí pì":["埤"],"qīng zhēng":["埥","鲭"],"wǎn wān":["埦"],lǔn:["埨","稐","𫭢"],"zhēng chéng":["埩"],kōng:["埪","崆","箜","躻","錓","鵼"],"cǎi cài":["埰","寀","采"],"chù tòu":["埱"],běng:["埲","琫","菶","鞛"],"kǎn xiàn":["埳"],"yì shì":["埶","醳"],péi:["培","毰","裴","裵","賠","赔","錇","锫","阫","陪"],"sào sǎo":["埽"],"jǐn qīn jìn":["堇"],"péng bèng":["堋"],"qiàn zàn jiàn":["堑"],àn:["堓","屵","岸","按","暗","案","胺","荌","豻","貋","錌","闇","隌","黯"],"duò huī":["堕","墮"],huán:["堚","寏","寰","峘","桓","洹","澴","獂","环","環","糫","繯","缳","羦","荁","萈","萑","豲","鍰","鐶","锾","镮","闤","阛","雈","鬟","鹮","𬘫","𤩽"],"bǎo bǔ pù":["堡"],"máo móu wǔ":["堥"],ruán:["堧","壖","撋"],"ài è yè":["堨"],gèng:["堩","暅"],méi:["堳","塺","媒","嵋","徾","攗","枚","栂","梅","楣","楳","槑","湄","湈","煤","猸","玫","珻","瑂","眉","睂","禖","脄","脢","腜","苺","莓","葿","郿","酶","鎇","镅","霉","鶥","鹛","黴"],dǔ:["堵","琽","睹","笃","篤","覩","賭","赌"],féng:["堸","綘","艂","逢"],hèng:["堼"],chūn:["堾","媋","旾","春","暙","杶","椿","槆","橁","櫄","瑃","箺","萅","蝽","輴","鰆","鶞","䲠"],jiǎng:["塂","奖","奨","奬","桨","槳","獎","耩","膙","蒋","蔣","講","讲","顜"],huāng:["塃","巟","慌","肓","荒","衁"],duàn:["塅","断","斷","椴","段","毈","煅","瑖","碫","簖","籪","緞","缎","腶","葮","躖","鍛","锻"],tǎ:["塔","墖","獭","獺","鮙","鰨","鳎"],wěng:["塕","奣","嵡","攚","暡","瞈","蓊"],"sāi sài sè":["塞"],zàng:["塟","弉","臓","臟","葬","蔵","銺"],tián:["塡","屇","恬","沺","湉","璳","甛","甜","田","畋","畑","碵","磌","胋","闐","阗","鴫","鷆","鷏"],zhèng:["塣","幁","政","証","諍","證","证","诤","郑","鄭","靕","鴊"],"tián zhèn":["填"],wēn:["塭","昷","榲","殟","温","溫","瑥","瘟","蕰","豱","輼","轀","辒","鎾","饂","鰛","鰮","鳁"],liù:["塯","廇","磟","翏","雡","霤","餾","鬸","鷚","鹨"],hǎi:["塰","海","烸","酼","醢"],lǎng:["塱","朖","朗","朤","烺","蓢","㮾"],bèng:["塴","揼","泵","甏","綳","蹦","迸","逬","鏰","镚"],chén:["塵","宸","尘","忱","敐","敶","晨","曟","栕","樄","沉","煁","瘎","臣","茞","莀","莐","蔯","薼","螴","訦","諶","軙","辰","迧","鈂","陈","陳","霃","鷐","麎"],"ōu qiū":["塸"],"qiàn jiàn":["塹"],"zhuān tuán":["塼"],shuǎng:["塽","慡","漺","爽","縔","鏯"],shú:["塾","婌","孰","璹","秫","贖","赎"],lǒu:["塿","嵝","嶁","甊","篓","簍"],chí:["墀","弛","持","池","漦","竾","筂","箎","篪","茌","荎","蚳","謘","貾","赿","踟","迟","迡","遅","遟","遲","鍉","馳","驰"],shù:["墅","庶","庻","怷","恕","戍","束","树","樹","沭","漱","潄","濖","竖","竪","絉","腧","荗","蒁","虪","術","裋","豎","述","鉥","錰","鏣","霔","鶐","𬬸"],"dì zhì":["墆","疐"],kàn:["墈","崁","瞰","矙","磡","衎","鬫"],chěn:["墋","夦","硶","碜","磣","贂","趻","踸","鍖"],"zhǐ zhuó":["墌"],qiǎng:["墏","繈","繦","羥","襁"],zēng:["増","增","憎","璔","矰","磳","罾","譄","鄫","鱛","䎖"],qiáng:["墙","墻","嫱","嬙","樯","檣","漒","牆","艢","蔃","蔷","蘠"],"kuài tuí":["墤"],"tuǎn dǒng":["墥"],"qiáo què":["墧"],"zūn dūn":["墫"],"qiāo áo":["墽"],"yì tú":["墿"],"xué bó jué":["壆"],lǎn:["壈","嬾","孄","孏","懒","懶","揽","擥","攬","榄","欖","浨","漤","灠","纜","缆","罱","覧","覽","览","醂","顲"],huài:["壊","壞","蘾"],rǎng:["壌","壤","攘","爙"],"làn xiàn":["壏"],dǎo:["壔","导","導","岛","島","嶋","嶌","嶹","捣","搗","擣","槝","祷","禂","禱","蹈","陦","隝","隯"],ruǐ:["壡","桵","橤","繠","蕊","蕋","蘂","蘃"],san:["壭"],zhuàng:["壮","壯","壵","撞","焋","状","狀"],"ké qiào":["壳","殼"],kǔn:["壸","壼","悃","捆","梱","硱","祵","稇","稛","綑","裍","閫","閸","阃"],mǎng:["壾","漭","茻","莽","莾","蠎"],cún:["壿","存"],"zhǐ zhōng":["夂"],"gǔ yíng":["夃"],"jiàng xiáng":["夅","降"],"páng féng fēng":["夆"],zhāi:["夈","捚","摘","斋","斎","榸","粂","齋"],"xuàn xiòng":["夐"],wài:["外","顡"],"wǎn yuàn wān yuān":["夗"],"mǎo wǎn":["夘"],mèng:["夢","夣","孟","梦","癦","霥"],"dà dài":["大"],"fū fú":["夫","姇","枎","粰"],guài:["夬","怪","恠"],yāng:["央","姎","抰","殃","泱","秧","胦","鉠","鍈","雵","鴦","鸯"],"hāng bèn":["夯"],gǎo:["夰","搞","杲","槀","槁","檺","稁","稾","稿","縞","缟","菒","藁","藳"],"tāo běn":["夲"],"tóu tou":["头"],"yǎn tāo":["夵"],"kuā kuà":["夸","誇"],"jiá jiā gā xiá":["夹"],huà:["夻","婳","嫿","嬅","崋","摦","杹","枠","桦","槬","樺","澅","画","畫","畵","繣","舙","話","諙","譮","话","黊"],"jiā jiá gā xiá":["夾"],ēn:["奀","恩","蒽"],"dī tì":["奃"],"yǎn yān":["奄","渰"],pào:["奅","疱","皰","砲","礟","礮","靤","麭"],nài:["奈","柰","渿","耐","萘","褦","錼","鼐"],"quān juàn":["奍","弮","棬"],zòu:["奏","揍"],"qì qiè xiè":["契"],kāi:["奒","开","揩","鐦","锎","開"],"bēn bèn":["奔","泍"],tào:["套"],"zàng zhuǎng":["奘"],běn:["奙","本","楍","畚","翉","苯"],"xùn zhuì":["奞"],shē:["奢","檨","猞","畭","畲","賒","賖","赊","輋","𪨶"],"hǎ pò tǎi":["奤"],"ào yù":["奥","奧","澚"],yūn:["奫","氲","氳","蒀","蒕","蝹","贇","赟","𫖳"],"duǒ chě":["奲"],"nǚ rǔ":["女"],nú:["奴","孥","笯","駑","驽"],"dīng dǐng tiǎn":["奵"],"tā jiě":["她"],nuán:["奻"],"hǎo hào":["好"],fàn:["奿","嬎","梵","汎","泛","滼","瀪","犯","畈","盕","笵","範","范","訉","販","贩","軬","輽","飯","飰","饭"],shuò:["妁","搠","朔","槊","烁","爍","矟","蒴","鎙","鑠","铄"],"fēi pèi":["妃"],wàng:["妄","忘","旺","望","朢"],zhuāng:["妆","妝","娤","庄","庒","桩","梉","樁","粧","糚","荘","莊","装","裝"],mā:["妈","媽"],"fū yōu":["妋"],"hài jiè":["妎"],dù:["妒","妬","杜","殬","渡","秺","芏","荰","螙","蠧","蠹","鍍","镀","靯","𬭊"],miào:["妙","庙","庿","廟","玅","竗"],"fǒu pēi pī":["妚"],"yuè jué":["妜"],niū:["妞"],"nà nàn":["妠"],tuǒ:["妥","嫷","庹","椭","楕","橢","鬌","鰖","鵎"],"wàn yuán":["妧"],fáng:["妨","房","肪","防","魴","鲂"],nī:["妮"],zhóu:["妯","碡"],zhāo:["妱","巶","招","昭","釗","鉊","鍣","钊","駋","𬬿"],"nǎi nǐ":["妳"],tǒu:["妵","敨","紏","蘣","黈"],"xián xuán xù":["妶"],"zhí yì":["妷","秇"],ē:["妸","妿","婀","屙"],mèi:["妹","媚","寐","抺","旀","昧","沬","煝","痗","眛","睸","祙","篃","蝞","袂","跊","鬽","魅"],"qī qì":["妻"],"xū xǔ":["姁","稰"],"shān shàn":["姍","姗","苫","釤","钐"],mán:["姏","慲","樠","蛮","蠻","謾","饅","馒","鬗","鬘","鰻","鳗"],jiě:["姐","媎","檞","毑","飷"],"wěi wēi":["委"],pīn:["姘","拼","礗","穦","馪","驞"],"huá huó":["姡"],"jiāo xiáo":["姣"],"gòu dù":["姤"],"lǎo mǔ":["姥"],"nián niàn":["姩"],zhěn:["姫","屒","弫","抮","昣","枕","畛","疹","眕","稹","縝","縥","缜","聄","萙","袗","裖","覙","診","诊","軫","轸","辴","駗","鬒"],héng:["姮","恆","恒","烆","珩","胻","蘅","衡","鑅","鴴","鵆","鸻"],"jūn xún":["姰"],"kuā hù":["姱"],"è yà":["姶"],"xiān shēn":["姺"],wá:["娃"],"ráo rǎo":["娆","嬈"],"shào shāo":["娋"],xiē:["娎","揳","楔","歇","蝎","蠍"],"wǔ méi mǔ":["娒"],"chuò lài":["娕"],niáng:["娘","嬢","孃"],"nà nuó":["娜","𦰡"],"pōu bǐ":["娝"],"něi suī":["娞"],tuì:["娧","煺","蛻","蜕","退","駾"],mǎn:["娨","屘","満","满","滿","螨","蟎","襔","鏋"],"wú wù yú":["娪"],"xī āi":["娭"],"zhuì shuì":["娷"],"dōng dòng":["娻"],"ǎi ái è":["娾"],"ē ě":["娿"],mián:["婂","嬵","宀","杣","棉","檰","櫋","眠","矈","矊","矏","綿","緜","绵","芇","蝒"],"pǒu péi bù":["婄"],biǎo:["婊","脿","表","裱","褾","諘","錶"],"fù fàn":["婏"],wǒ:["婐","婑","我"],"ní nǐ":["婗","棿"],"quán juàn":["婘","惓"],hūn:["婚","昏","昬","棔","涽","睧","睯","碈","荤","葷","蔒","轋","閽","阍"],"qiān jǐn":["婜"],"wān wà":["婠"],"lái lài":["婡","徕","徠"],"zhōu chōu":["婤"],"chuò nào":["婥"],"nüè àn":["婩"],"hùn kūn":["婫"],"dàng yáng":["婸"],nàn:["婻"],"ruò chuò":["婼"],jiǎ:["婽","岬","斚","斝","榎","槚","檟","玾","甲","胛","鉀","钾"],"tōu yú":["婾","媮"],"yù yú":["媀"],"wéi wěi":["媁"],"dì tí":["媂","珶","苐"],róu:["媃","揉","柔","渘","煣","瑈","瓇","禸","粈","糅","脜","腬","葇","蝚","蹂","輮","鍒","鞣","騥","鰇","鶔","𫐓"],"ruǎn nèn":["媆"],miáo:["媌","嫹","描","瞄","苗","鶓","鹋"],"yí pèi":["媐"],"mián miǎn":["媔"],"tí shì":["媞","惿"],"duò tuó":["媠","沲"],ǎo:["媪","媼","艹","芺","袄","襖","镺"],"chú zòu":["媰"],yìng:["媵","映","暎","硬","膡","鱦"],"qín shēn":["嫀"],jià:["嫁","幏","架","榢","稼","駕","驾"],sǎo:["嫂"],"zhēn zhěn":["嫃"],"jiē suǒ":["嫅"],"míng mǐng":["嫇"],niǎo:["嫋","嬝","嬲","茑","蔦","袅","裊","褭","鸟"],tāo:["嫍","幍","弢","慆","掏","搯","槄","涛","滔","濤","瑫","絛","縚","縧","绦","詜","謟","轁","鞱","韜","韬","飸","饕"],biáo:["嫑"],"piáo piāo":["嫖","薸"],xuán:["嫙","悬","懸","暶","檈","漩","玄","璇","璿","痃","蜁","𫠊"],"màn mān":["嫚"],kāng:["嫝","嵻","康","慷","槺","漮","砊","穅","糠","躿","鏮","鱇","𡐓","𩾌"],"hān nǎn":["嫨"],nèn:["嫩","嫰"],zhē:["嫬","遮"],"mā má":["嫲"],piè:["嫳"],zhǎn:["嫸","展","搌","斩","斬","琖","盏","盞","輾","醆","颭","飐"],"xiān yǎn jìn":["嬐"],liǎn:["嬚","敛","斂","琏","璉","羷","脸","臉","蔹","蘝","蘞","裣","襝","鄻"],"qióng huán xuān":["嬛"],dǒng:["嬞","懂","箽","董","蕫","諌"],cān:["嬠","湌","爘","飡","餐","驂","骖"],tiǎo:["嬥","宨","晀","朓","窱","脁"],bí:["嬶","荸","鼻"],liǔ:["嬼","柳","栁","桞","桺","橮","熮","珋","綹","绺","罶","羀","鋶","锍"],"qiān xiān":["孅","欦"],"xié huī":["孈"],"huān quán":["孉"],"lí lì":["孋","麗"],"zhú chuò":["孎"],kǒng:["孔","恐"],"mā zī":["孖"],"sūn xùn":["孙","孫"],"bèi bó":["孛","誖"],"yòu niū":["孧"],zhuǎn:["孨","竱","轉"],hái:["孩","骸"],nāo:["孬"],"chán càn":["孱"],bò:["孹","檗","蘗","譒"],nái:["孻","腉"],"níng nìng":["宁","寍","寗","寜","寧","甯"],zhái:["宅"],"tū jiā":["宊"],sòng:["宋","訟","誦","讼","诵","送","鎹","頌","颂","餸"],ròu:["宍","肉","譳"],zhūn:["宒","窀","衠","諄","谆","迍"],"mì fú":["宓"],"dàng tàn":["宕"],"wǎn yuān":["宛"],chǒng:["宠","寵"],qún:["宭","峮","帬","羣","群","裙","裠"],zǎi:["宰","崽"],"bǎo shí":["宲"],"jiā jia jie":["家"],"huāng huǎng":["宺"],kuān:["宽","寛","寬","臗","鑧","髋","髖"],"sù xiǔ xiù":["宿"],"jié zǎn":["寁"],"bìng bǐng":["寎"],"jìn qǐn":["寖"],"lóu jù":["寠"],"xiě xiè":["寫"],"qīn qìn":["寴"],cùn:["寸","籿"],duì:["对","対","對","怼","憝","懟","濧","瀩","碓","祋","綐","薱","譈","譵","轛","队","陮"],"lüè luó":["寽"],"shè yè yì":["射"],"jiāng jiàng qiāng":["将"],"jiāng jiàng":["將","浆","漿","畺"],zūn:["尊","嶟","樽","罇","遵","鐏","鱒","鳟","鶎","鷷","𨱔"],"shù zhù":["尌","澍"],xiǎo:["小","晓","暁","曉","皛","皢","筱","筿","篠","謏","𫍲"],"jié jí":["尐","诘","鞊"],"shǎo shào":["少"],ěr:["尒","尓","尔","栮","毦","洱","爾","珥","耳","薾","衈","趰","迩","邇","鉺","铒","餌","饵","駬"],"wāng yóu":["尢"],wāng:["尣","尩","尪","尫","汪"],liào:["尥","尦","廖","撂","料","炓","窷","鐐","镣","𪤗"],"méng máng lóng páng":["尨"],gà:["尬","魀"],"kuì kuǐ":["尯"],tuí:["尵","弚","穨","蘈","蹪","隤","頹","頺","頽","颓","魋","𬯎"],yǐn:["尹","嶾","引","朄","檃","檼","櫽","淾","濥","瘾","癮","粌","蘟","蚓","螾","讔","赺","趛","輑","鈏","靷"],"chǐ chě":["尺"],kāo:["尻","髛"],"jìn jǐn":["尽"],"wěi yǐ":["尾"],"niào suī":["尿"],céng:["层","層","嶒","驓"],diǎo:["屌"],"píng bǐng bīng":["屏"],lòu:["屚","漏","瘘","瘺","瘻","鏤","镂","陋"],"shǔ zhǔ":["属","屬"],"xiè tì":["屟"],"chè cǎo":["屮"],"tún zhūn":["屯"],"nì jǐ":["屰"],"hóng lóng":["屸"],"qǐ kǎi":["岂","豈"],áng:["岇","昂","昻"],"gǎng gāng":["岗","崗"],kě:["岢","敤","渇","渴","炣"],gǒu:["岣","狗","玽","笱","耇","耈","耉","苟","豿"],tiáo:["岧","岹","樤","祒","笤","芀","萔","蓚","蓨","蜩","迢","鋚","鎥","鞗","髫","鯈","鰷","鲦","齠","龆"],"qū jū":["岨"],lǐng:["岭","嶺","領","领"],pò:["岶","敀","洦","湐","烞","珀","破","砶","粕","蒪","魄"],"bā kè":["峇"],luò:["峈","摞","洛","洜","犖","珞","笿","纙","荦","詻","雒","駱","骆","鵅"],"fù niè":["峊"],ěn:["峎"],"zhì shì":["峙","崻"],qiǎ:["峠","跒","酠","鞐"],"qiáo jiào":["峤","癄"],"xié yé":["峫"],bū:["峬","庯","晡","誧","逋","鈽","錻","钸","餔","鵏"],chóng:["崇","崈","爞","虫","蝩","蟲","褈","隀"],"zú cuì":["崒","椊"],"líng léng":["崚"],"dòng dōng":["崠"],xiáo:["崤","洨","淆","訤","誵"],"pí bǐ":["崥","芘"],"zhǎn chán":["崭","嶃","嶄"],"wǎi wēi":["崴"],"yáng dàng":["崵"],"shì dié":["崼"],yào:["崾","曜","熎","燿","矅","穾","窔","筄","耀","艞","药","葯","薬","藥","袎","覞","詏","讑","靿","鷂","鹞","鼼"],"kān zhàn":["嵁"],"hán dǎng":["嵅"],"qiàn kàn":["嵌"],"wù máo":["嵍"],"kě jié":["嵑","嶱"],"wēi wěi":["嵔"],kē:["嵙","柯","棵","榼","樖","牁","牱","犐","珂","疴","瞌","磕","礚","科","稞","窠","萪","薖","蚵","蝌","趷","轲","醘","鈳","钶","頦","顆","颗","髁"],"dàng táng":["嵣"],"róng yíng":["嵤","爃"],"ái kǎi":["嵦"],"kāo qiāo":["嵪"],cuó:["嵯","嵳","痤","矬","蒫","蔖","虘","鹺","鹾"],"qiǎn qīn":["嵰"],"dì dié":["嵽"],cēn:["嵾"],dǐng:["嵿","艼","薡","鐤","頂","顶","鼎","鼑"],"áo ào":["嶅"],"pǐ pèi":["嶏"],"jiào qiáo":["嶠","潐"],"jué guì":["嶡","鳜"],"zhān shàn":["嶦","鳣"],"xiè jiè":["嶰"],"guī xī juàn":["嶲"],rū:["嶿"],"lì liè":["巁","棙","爄","綟"],"xī guī juàn":["巂"],"yíng hōng":["巆"],yǐng:["巊","廮","影","摬","梬","潁","瘿","癭","矨","穎","郢","鐛","頴","颍","颕","颖"],chǎo:["巐","炒","煼","眧","麨"],cuán:["巑","櫕","欑"],chuān:["巛","川","氚","瑏","穿"],"jīng xíng":["巠"],cháo:["巢","巣","晁","漅","潮","牊","窲","罺","謿","轈","鄛","鼌"],qiǎo:["巧","愀","髜"],gǒng:["巩","廾","拱","拲","栱","汞","珙","輁","鞏"],"chà chā chāi cī":["差"],"xiàng hàng":["巷"],shuài:["帅","帥","蟀"],pà:["帊","帕","怕","袙"],"tǎng nú":["帑"],"mò wà":["帓"],"tiē tiě tiè":["帖"],zhǒu:["帚","晭","疛","睭","箒","肘","菷","鯞"],"juǎn juàn":["帣"],shuì:["帨","涗","涚","睡","稅","税","裞"],"chóu dào":["帱","幬"],"jiǎn jiān sàn":["帴"],"shà qiè":["帹"],"qí jì":["帺","荠"],"shān qiāo shēn":["幓"],"zhuàng chuáng":["幢"],"chān chàn":["幨"],miè:["幭","懱","搣","滅","灭","烕","礣","篾","蔑","薎","蠛","衊","鑖","鱴","鴓"],"gān gàn":["干"],"bìng bīng":["并","幷"],"jī jǐ":["幾"],"guǎng ān":["广"],guǎng:["広","廣","犷","獷"],me:["庅"],"dùn tún":["庉"],"bài tīng":["庍"],"yìng yīng":["应"],"dǐ de":["底"],"dù duó":["度"],"máng méng páng":["庬"],"bìng píng":["庰"],chěng:["庱","悜","睈","逞","騁","骋"],"jī cuò":["庴"],qǐng:["庼","廎","檾","漀","苘","請","謦","请","頃","顷"],"guī wěi huì":["廆"],"jǐn qín":["廑"],kuò:["廓","扩","拡","擴","濶","筈","萿","葀","蛞","闊","阔","霩","鞟","鞹","韕","頢","鬠"],"qiáng sè":["廧","薔"],"yǐn yìn":["廴","隐","隠","隱","飮","飲","饮"],"pò pǎi":["廹","迫"],"nòng lòng":["弄"],"dì tì tuí":["弟"],"jué zhāng":["弡"],"mí mǐ":["弥","彌","靡"],chāo:["弨","怊","抄","欩","訬","超","鈔","钞"],yi:["弬"],shāo:["弰","旓","烧","焼","燒","筲","艄","萷","蕱","輎","髾","鮹"],"xuān yuān":["弲"],"qiáng qiǎng jiàng":["強","强"],"tán dàn":["弹","醈"],biè:["彆"],"qiáng jiàng qiǎng":["彊"],"jì xuě":["彐"],tuàn:["彖","褖"],yuē:["彟","曰","曱","矱"],"shān xiǎn":["彡"],wén:["彣","文","炆","珳","瘒","繧","聞","芠","蚉","蚊","螡","蟁","閺","閿","闅","闦","闻","阌","雯","馼","駇","魰","鳼","鴍","鼤","𫘜"],"péng bāng":["彭"],"piāo piào":["彯"],"zhuó bó":["彴"],"tuǒ yí":["彵"],"páng fǎng":["彷"],wǎng:["彺","往","徃","惘","枉","棢","網","网","罒","罓","罔","罖","菵","蛧","蝄","誷","輞","辋","魍"],cú:["徂","殂"],"dài dāi":["待"],huái:["徊","怀","懐","懷","槐","淮","耲","蘹","褢","褱","踝"],"wā wàng jiā":["徍"],"chěng zhèng":["徎"],"dé děi de":["得"],"cóng zòng":["從"],"shì tǐ":["徥"],"tí chí":["徲","鶗","鶙"],dé:["徳","德","恴","悳","惪","淂","鍀","锝"],"zhǐ zhēng":["徴","徵"],bié:["徶","癿","莂","蛂","襒","蹩"],"chōng zhǒng":["徸"],"jiǎo jiào":["徼","笅","筊"],"lòng lǒng":["徿"],"qú jù":["忂","渠","瞿","螶"],"dìng tìng":["忊"],gǎi:["忋","改"],rěn:["忍","栠","栣","秹","稔","綛","荏","荵","躵"],chàn:["忏","懴","懺","硟","羼","韂","顫"],tè:["忑","慝","特","蟘","鋱","铽"],"tè tēi tuī":["忒"],"gān hàn":["忓","攼"],"yì qì":["忔"],"tài shì":["忕"],"xī liě":["忚"],"yīng yìng":["応","應","譍"],"mǐn wěn mín":["忞","忟"],"sōng zhōng":["忪"],"yù shū":["忬","悆"],"qí shì":["忯","耆"],"tún zhūn dùn":["忳"],"qián qín":["忴","扲"],hún:["忶","浑","渾","餛","馄","魂","鼲"],niǔ:["忸","扭","炄","狃","紐","纽","莥","鈕","钮","靵"],"kuáng wǎng":["忹"],"kāng hàng":["忼"],"kài xì":["忾","愾"],òu:["怄","慪"],"bǎo bào":["怉"],"mín mén":["怋"],"zuò zhà":["怍"],zěn:["怎"],yàng:["怏","恙","样","様","樣","漾","羕","詇"],"kòu jù":["怐"],"náo niú":["怓"],"zhēng zhèng":["怔","掙","钲","铮"],"tiē zhān":["怗"],"hù gù":["怘"],"cū jù zū":["怚"],"sī sāi":["思"],"yóu chóu":["怞"],"tū dié":["怢"],"yōu yào":["怮"],xuàn:["怰","昡","楦","泫","渲","炫","琄","眩","碹","絢","縼","繏","绚","蔙","衒","袨","贙","鉉","鏇","铉","镟","颴"],"xù xuè":["怴"],"bì pī":["怶"],"xī shù":["怸"],"nèn nín":["恁"],"tiāo yáo":["恌"],"xī qī xù":["恓"],"xiào jiǎo":["恔"],"hū kuā":["恗"],nǜ:["恧","朒","衂","衄"],hèn:["恨"],"dòng tōng":["恫"],"quán zhuān":["恮"],"è wù ě wū":["恶","惡"],tòng:["恸","慟","憅","痛","衕"],"yuān juàn":["悁"],"qiāo qiǎo":["悄"],"jiè kè":["悈"],"hào jiào":["悎"],huǐ:["悔","檓","毀","毁","毇","燬","譭"],"mán mèn":["悗","鞔"],"yī yì":["悘","衣"],quān:["悛","箞","鐉","𨟠"],"kuī lǐ":["悝"],"yì niàn":["悥"],"mèn mēn":["悶"],guàn:["悹","悺","惯","慣","掼","摜","樌","欟","泴","涫","潅","灌","爟","瓘","盥","礶","祼","罆","罐","貫","贯","躀","遦","鏆","鑵","鱹","鸛","鹳"],"kōng kǒng":["悾"],"lǔn lùn":["惀"],guǒ:["惈","果","椁","槨","粿","綶","菓","蜾","裹","褁","輠","餜","馃"],"yuān wǎn":["惌","箢"],"lán lín":["惏"],"yù xù":["惐","淢"],"chuò chuì":["惙"],"hūn mèn":["惛"],"chǎng tǎng":["惝"],"suǒ ruǐ":["惢"],cǎn:["惨","慘","憯","黪","黲","䅟"],cán:["惭","慙","慚","残","殘","蚕","蝅","蠶","蠺"],"dàn dá":["惮","憚"],rě:["惹"],"yú tōu":["愉"],"kài qì":["愒"],"dàng táng shāng yáng":["愓"],"chén xìn dān":["愖"],"kè qià":["愘"],nuò:["愞","懦","懧","掿","搦","榒","稬","穤","糑","糥","糯","諾","诺","蹃","逽","鍩","锘"],gǎn:["感","擀","敢","桿","橄","澉","澸","皯","秆","稈","笴","芉","衦","赶","趕","鱤","鳡"],"còng sōng":["愡"],"sāi sī sǐ":["愢"],"gōng gòng hǒng":["愩","慐"],"shuò sù":["愬","洬"],"yáo yào":["愮"],huàng:["愰","曂","榥","滉","皝","皩","鎤","㿠"],zhěng:["愸","抍","拯","整","晸"],cǎo:["愺","艸","草","騲"],"xì xié":["慀"],"cǎo sāo":["慅"],"xù chù":["慉"],"qiè qiàn":["慊"],"cáo cóng":["慒"],"ào áo":["慠"],"lián liǎn":["慩","梿","槤","櫣"],"jìn qín jǐn":["慬"],"dì chì":["慸"],"zhí zhé":["慹"],"lóu lǚ":["慺","鷜"],còng:["憁","謥"],"zhī zhì":["憄","知","織","织"],chēng:["憆","摚","撐","撑","晿","柽","棦","橕","檉","泟","浾","琤","瞠","碀","緽","罉","蛏","蟶","赪","赬","鏿","鐣","阷","靗","頳","饓"],biē:["憋","虌","鱉","鳖","鼈","龞"],"chéng dèng zhèng":["憕"],"xǐ xī":["憘"],"duì dùn tūn":["憞"],"xiāo jiāo":["憢"],"xián xiàn":["憪"],"liáo liǎo":["憭","燎","爎","爒"],shéng:["憴","縄","繉","繩","绳","譝"],"náo nǎo náng":["憹"],"jǐng jìng":["憼"],"jǐ jiǎo":["憿"],"xuān huān":["懁"],"cǎo sāo sào":["懆"],mèn:["懑","懣","暪","焖","燜"],"mèng méng měng":["懜"],"ài yì nǐ":["懝"],"méng měng":["懞","瞢","矒"],"qí jī jì":["懠"],mǒ:["懡"],"lán xiàn":["懢"],"yōu yǒu":["懮"],"liú liǔ":["懰","藰"],ràng:["懹","譲","讓","让"],huān:["懽","欢","歓","歡","獾","讙","貛","酄","驩","鴅","鵍"],nǎn:["戁","揇","湳","煵","腩","蝻","赧"],"mí mó":["戂"],"gàng zhuàng":["戅","戆"],"zhuàng gàng":["戇"],"xū qu":["戌"],"xì hū":["戏","戯","戲"],"jiá gā":["戛"],zéi:["戝","蠈","賊","贼","鰂","鱡","鲗"],děng:["戥","等"],"hū xì":["戱"],chuō:["戳","踔","逴"],"biǎn piān":["扁"],"shǎng jiōng":["扄"],"shàn shān":["扇"],cái:["才","材","纔","裁","財","财"],"zhā zā zhá":["扎"],"lè lì cái":["扐"],"bā pá":["扒"],"dǎ dá":["打"],rēng:["扔"],"fǎn fú":["払"],"diǎo dí yuē lì":["扚"],"káng gāng":["扛"],"yū wū":["扜"],"yū wū kū":["扝"],"tuō chǐ yǐ":["扡"],"gǔ jié xì gē":["扢"],dèn:["扥","扽"],"sǎo sào":["扫","掃"],rǎo:["扰","擾","隢"],"xī chā qì":["扱"],"bān pān":["扳"],"bā ào":["扷"],"xī zhé":["扸"],"zhì sǔn kǎn":["扻"],zhǎo:["找","沼","瑵"],"kuáng wǎng zài":["抂"],"hú gǔ":["抇","鹄","鹘"],"bǎ bà":["把"],"dǎn shěn":["抌"],"nè nì ruì nà":["抐"],zhuā:["抓","檛","簻","膼","髽"],póu:["抔","裒"],"zhé shé zhē":["折"],"póu pōu fū":["抙","捊"],pāo:["抛","拋","脬","萢"],"ǎo ào niù":["抝"],"lūn lún":["抡","掄"],"qiǎng qiāng chēng":["抢"],"zhǐ zhǎi":["抧"],"bù pū":["抪","柨"],"yǎo tāo":["抭"],"hē hè qiā":["抲"],"nǐ ní":["抳"],"pī pēi":["抷"],"mǒ mò mā":["抹"],chōu:["抽","犨","犫","瘳","篘"],"jiā yá":["拁"],"fú bì":["拂","畐","鶝"],zhǎ:["拃","眨","砟","鮺","鲝"],"dān dàn dǎn":["担"],"chāi cā":["拆"],niān:["拈","蔫"],"lā lá lǎ là":["拉"],"bàn pàn":["拌"],pāi:["拍"],līn:["拎"],guǎi:["拐","枴","柺"],"tuò tà zhí":["拓"],"ào ǎo niù":["拗"],"jū gōu":["拘"],"pīn pàn fān":["拚"],"bài bái":["拜"],bài:["拝","敗","稗","粺","薭","贁","败","韛"],qiá:["拤"],"nǐng níng nìng":["拧"],"zé zhái":["择","擇"],hén:["拫","痕","鞎"],"kuò guā":["括"],"jié jiá":["拮"],nǐn:["拰"],shuān:["拴","栓","閂","闩"],"cún zùn":["拵"],"zā zǎn":["拶","桚"],kǎo:["拷","攷","栲","烤","考"],"yí chǐ hài":["拸"],"cè sè chuò":["拺"],"zhuài zhuāi yè":["拽"],"shí shè":["拾"],bāi:["挀","掰"],"kuò guāng":["挄"],nòng:["挊","挵","齈"],"jiào jiāo":["挍","敎","教"],"kuà kū":["挎"],"ná rú":["挐"],"tiāo tiǎo":["挑"],"dié shè":["挕"],liě:["挘","毟"],"yà yǎ":["挜","掗"],"wō zhuā":["挝"],"xié jiā":["挟","挾"],"dǎng dàng":["挡","擋"],"zhèng zhēng":["挣","正","症"],"āi ái":["挨"],"tuō shuì":["挩","捝"],"tǐ tì":["挮"],"suō shā":["挱"],"sā shā suō":["挲"],"kēng qiān":["挳","摼"],"bàng péng":["挷"],"ruó ruá":["挼"],"jiǎo kù":["捁"],"wǔ wú":["捂"],tǒng:["捅","桶","筒","筩","統","綂","统","㛚"],"huò chì":["捇"],"tú shū chá":["捈"],"lǚ luō":["捋"],"shāo shào":["捎","稍"],niē:["捏","揑"],"shù sǒng sōu":["捒"],"yé yú":["捓"],"jué zhuó":["捔"],"bù pú zhì":["捗"],zùn:["捘","銌"],lāo:["捞","撈","粩"],sǔn:["损","損","榫","笋","筍","箰","鎨","隼"],"wàn wǎn wān yù":["捥"],pěng:["捧","淎","皏"],shě:["捨"],"fǔ fù bǔ":["捬"],dáo:["捯"],"luò luǒ wǒ":["捰"],"juǎn quán":["捲"],"chēn tiǎn":["捵"],"niǎn niē":["捻"],"ruó wěi ré":["捼"],zuó:["捽","昨","秨","稓","筰","莋","鈼"],"wò xiá":["捾"],"qìng qiàn":["掅"],"póu pǒu":["掊"],qiā:["掐","葜"],"pái pǎi":["排"],"qiān wàn":["掔"],"yè yē":["掖"],"niè nǐ yì":["掜"],"huò xù":["掝"],"yàn shàn yǎn":["掞"],"zhěng dìng":["掟"],kòng:["控","鞚"],tuī:["推","蓷","藬"],"zōu zhōu chōu":["掫"],tiàn:["掭","舚"],kèn:["掯","裉","褃"],pá:["掱","杷","潖","爬","琶","筢"],"guó guāi":["掴"],"dǎn shàn":["掸","撣"],"chān xiān càn shǎn":["掺"],sāo:["掻","搔","溞","繅","缫","螦","騒","騷","鰠","鱢","鳋"],pèng:["掽","椪","槰","碰","踫"],"zhēng kēng":["揁"],"jiū yóu":["揂"],"jiān jiǎn":["揃","籛"],"pì chè":["揊"],"sāi zǒng cāi":["揌"],"tí dī dǐ":["提"],"zǒng sōng":["揔"],"huáng yóng":["揘"],"zǎn zuàn":["揝"],"xū jū":["揟"],"ké qiā":["揢"],"chuāi chuǎi chuài tuán zhuī":["揣"],"dì tì":["揥"],"lá là":["揦"],là:["揧","楋","溂","瓎","瘌","翋","臘","蝋","蝲","蠟","辢","辣","鑞","镴","鬎","鯻","𬶟"],"jiē qì":["揭"],"chòng dǒng":["揰"],"dié shé yè":["揲"],"jiàn qián jiǎn":["揵"],yé:["揶","爷","爺","瑘","鋣","鎁","铘"],chān:["搀","摻","攙","裧","襜","覘","觇","辿","鋓"],"gē gé":["搁","擱"],"lǒu lōu":["搂","摟"],"chōu zǒu":["搊"],chuāi:["搋"],sūn:["搎","槂","狲","猻","荪","蓀","蕵","薞","飧","飱"],"róng náng nǎng":["搑"],"péng bàng":["搒"],cuō:["搓","瑳","磋","蹉","遳","醝"],"kē è":["搕"],"nù nuò nòu":["搙"],"lā xié xiàn":["搚"],qiǔ:["搝","糗"],"xiǎn xiān":["搟"],"jié zhé":["搩"],"pán bān pó":["搫"],bān:["搬","攽","斑","斒","班","瘢","癍","肦","螁","螌","褩","辬","頒","颁","𨭉"],"zhì nái":["搱"],"wā wǎ wà":["搲"],huá:["搳","撶","滑","猾","蕐","螖","譁","鏵","铧","驊","骅","鷨"],"qiāng qiǎng chēng":["搶"],"tián shēn":["搷"],"ná nuò":["搻"],èn:["摁"],"shè niè":["摄","攝"],bìn:["摈","擯","殡","殯","膑","臏","髌","髕","髩","鬂","鬓","鬢"],"shā sà shǎi":["摋"],"chǎn sùn":["摌"],"jiū liú liáo jiǎo náo":["摎"],"féng pěng":["摓"],shuāi:["摔"],"dì tú zhí":["摕"],"qì jì chá":["摖"],"sōu sǒng":["摗"],"liǎn liàn":["摙"],"gài xì":["摡"],"hù chū":["摢"],tàng:["摥","烫","燙","鐋"],"nái zhì":["摨"],"mó mā":["摩"],"jiāng qiàng":["摪"],"áo qiáo":["摮"],"niè chè":["摰"],"mán màn":["摱"],"chàn cán":["摲"],"sè mí sù":["摵"],"biāo biào":["摽"],"juē jué":["撅"],piē:["撆","暼","氕","瞥"],"piě piē":["撇"],"zǎn zān zēn qián":["撍"],"sā sǎ":["撒"],hòng:["撔","訌","讧","闀","鬨"],"héng guàng":["撗"],niǎn:["撚","撵","攆","涊","焾","碾","簐","蹍","蹨","躎","輦","辇"],"chéng zhěng":["撜"],"huī wéi":["撝"],cāo:["撡","操","糙"],"xiāo sōu":["撨"],"liáo liāo":["撩"],"cuō zuǒ":["撮"],"wěi tuǒ":["撱"],cuān:["撺","攛","汆","蹿","躥","鑹","镩"],"qiào yāo jī":["撽"],"zhuā wō":["撾"],"lèi léi":["擂"],nǎng:["擃","攮","曩","灢"],"qíng jǐng":["擏"],kuǎi:["擓","蒯","㧟"],"pǐ bò":["擗"],"bò bāi":["擘"],"jù jǐ":["據"],mēng:["擝"],"sǒu sòu":["擞"],xǐng:["擤","箵","醒"],cā:["擦"],"níng nǐng nìng":["擰"],"zhì jié":["擳"],"là liè":["擸","爉"],"sòu sǒu":["擻"],"lì luò yuè":["擽"],"tī zhāi zhì":["擿"],pān:["攀","潘","眅","萠"],lèi:["攂","泪","涙","淚","禷","类","纇","蘱","酹","銇","錑","頛","頪","類","颣"],"cā sǎ":["攃"],"jùn pèi":["攈"],"lì luò":["攊","躒"],"là lài":["攋","櫴"],"lú luó":["攎"],"zǎn cuán":["攒"],"xiān jiān":["攕"],"mí mǐ mó":["攠"],"zǎn cuán zàn zuān":["攢"],zuàn:["攥"],"lì shài":["攦"],"lì luǒ":["攭"],"guǐ guì":["攱"],"jī qī yǐ":["攲"],fàng:["放"],"wù móu":["敄"],"chù shōu":["敊"],"gé guó è":["敋"],"duó duì":["敓","敚"],"duō què":["敠","敪"],"sàn sǎn":["散"],"dūn duì":["敦","镦"],"qī yǐ jī":["敧"],"xiào xué":["敩"],"shù shǔ shuò":["数","數"],"ái zhú":["敱","敳"],"xiòng xuàn":["敻"],"zhuó zhú":["斀"],"yì dù":["斁"],"lí tái":["斄"],"fěi fēi":["斐"],"yǔ zhōng":["斔"],"dòu dǒu":["斗"],"wò guǎn":["斡"],"tǒu tiǎo":["斢"],dòu:["斣","梪","浢","痘","窦","竇","脰","荳","豆","逗","郖","酘","閗","闘","餖","饾","鬥","鬦","鬪","鬬","鬭"],"yín zhì":["斦"],"chǎn jiè":["斺"],"wū yū yú":["於"],"yóu liú":["斿"],"páng bàng":["旁"],"máo mào":["旄"],"pī bì":["旇"],"xuán xuàn":["旋"],"wú mó":["无"],zǎo:["早","枣","栆","棗","澡","璪","薻","藻","蚤"],gā:["旮"],"gàn hàn":["旰"],"tái yīng":["旲"],"xū xù":["旴"],"tūn zhùn":["旽"],"wù wǔ":["旿"],"pò pèi":["昢"],zòng:["昮","猔","疭","瘲","粽","糉","糭","縦"],ǎi:["昹","毐","矮","蔼","藹","譪","躷","霭","靄"],"huàng huǎng":["晃"],xuǎn:["晅","癣","癬","选","選"],"xù kuā":["晇"],hǒng:["晎"],shài:["晒","曬"],"yūn yùn":["晕","煴"],"shèng chéng":["晟","椉","盛"],"jǐng yǐng":["景"],shǎn:["晱","熌","睒","覢","閃","闪","陕","陝"],"qǐ dù":["晵"],"ǎn àn yǎn":["晻"],"wǎng wàng":["暀"],zàn:["暂","暫","瓉","瓒","瓚","禶","襸","讃","讚","賛","贊","赞","蹔","鄼","錾","鏨","饡"],"yùn yūn":["暈"],"mín mǐn":["暋"],"dǔ shǔ":["暏"],shǔ:["暑","曙","潻","癙","糬","署","薥","薯","藷","蜀","蠴","襡","襩","鱪","鱰","黍","鼠","鼡"],"jiǎn lán":["暕"],nuǎn:["暖","煗","餪"],"bào pù":["暴"],"xī xǐ":["暿"],"pù bào":["曝","瀑"],"qū qǔ":["紶"],"qǔ qū":["曲"],"gèng gēng":["更"],"hū hù":["曶","雽"],"zēng céng":["曽","橧"],"céng zēng":["曾","竲"],"cǎn qián jiàn":["朁"],"qiè hé":["朅"],"bì pí":["朇","禆","笓","裨"],"yǒu yòu":["有"],"bān fén":["朌","鳻"],"fú fù":["服","洑"],"fěi kū":["朏","胐"],"qú xù chǔn":["朐"],"juān zuī":["朘"],"huāng máng wáng":["朚"],"qī jī":["期"],"tóng chuáng":["朣","橦"],zhá:["札","牐","箚","蚻","譗","鍘","铡","閘","闸"],"zhú shù shú":["朮"],"shù shú zhú":["术"],"zhū shú":["朱"],"pǔ pò pō piáo":["朴"],"dāo tiáo mù":["朷"],"guǐ qiú":["朹"],xiǔ:["朽","滫","潃","糔"],"chéng chēng":["朾"],zá:["杂","沯","砸","襍","雑","雜","雥","韴"],"yú wū":["杅"],"gān gǎn":["杆"],"chā chà":["杈"],"shān shā":["杉"],cūn:["村","皴","竴","膥","踆","邨"],"rèn ér":["杒","梕"],"sháo biāo":["杓"],"dì duò":["杕","枤"],"gū gài":["杚"],"yí zhì lí duò":["杝"],"gàng gāng":["杠"],"tiáo tiāo":["条","條"],"mà mǎ":["杩"],"sì zhǐ xǐ":["杫"],"yuán wán":["杬","蚖"],"bèi fèi":["杮"],"shū duì":["杸"],"niǔ chǒu":["杻"],"wò yuè":["枂","臒"],máo:["枆","毛","氂","渵","牦","矛","罞","茅","茆","蝥","蟊","軞","酕","鉾","錨","锚","髦","鶜"],"pī mì":["枈"],àng:["枊","盎","醠"],"fāng bìng":["枋"],"hù dǐ":["枑"],xín:["枔","襑","鐔","鬵"],"yāo yǎo":["枖"],"ě è":["枙"],"zhī qí":["枝"],"cōng zōng":["枞","樅"],"xiān zhēn":["枮"],"tái sì":["枱"],"gǒu jǔ gōu":["枸"],"bāo fú":["枹"],"yì xiè":["枻","栧"],"tuó duò":["柁","馱","駄","驮"],"yí duò lí":["柂"],"nǐ chì":["柅"],"pán bàn":["柈","跘"],"yǎng yàng yāng yīng":["柍"],"fù fū fǔ":["柎"],"bǎi bó bò":["柏"],mǒu:["某"],"sháo shào":["柖"],zhè:["柘","樜","浙","淛","蔗","蟅","這","鷓","鹧","䗪"],"yòu yóu":["柚","櫾"],"guì jǔ":["柜"],"zhà zuò":["柞"],"dié zhì":["柣","眰"],"zhā zǔ zū":["柤"],"chá zhā":["查","査"],"āo ào":["柪","軪"],"bā fú pèi bó biē":["柭"],"duò zuó wù":["柮"],"bì bié":["柲"],"zhù chù":["柷"],"bēi pēi":["柸"],"shì fèi":["柹"],"shān zhà shi cè":["栅"],"lì yuè":["栎","櫟"],"qì qiè":["栔","砌"],"qī xī":["栖","蹊"],"guā kuò":["栝"],"bīng bēn":["栟"],"xiào jiào":["校"],"jiàn zùn":["栫","袸"],"yǒu yù":["栯"],"hé hú":["核"],gēn:["根","跟"],"zhī yì":["栺"],"gé gē":["格"],"héng háng":["桁"],"guàng guāng":["桄"],"yí tí":["桋","荑"],sāng:["桑","桒","槡"],"jú jié":["桔"],"yú móu":["桙"],"ráo náo":["桡","橈"],"guì huì":["桧","檜"],"chén zhèn":["桭"],"tīng yíng":["桯"],"bó po":["桲"],"bèn fàn":["桳"],"fēng fèng":["桻","葑"],"sù yìn":["梀"],"tǐng tìng":["梃"],"xuān juān xié":["梋"],"tú chá":["梌"],"āo yòu":["梎"],kuǎn:["梡","欵","款","歀"],"shāo sào":["梢"],"qín chén cén":["梣"],"lí sì qǐ":["梩"],"chān yán":["梴"],"bīn bīng":["梹","槟","檳"],"táo chóu dào":["梼"],"cōng sōng":["棇"],"gùn hùn":["棍"],"dé zhé":["棏"],"pái bèi pèi":["棑"],"bàng pǒu bèi bēi":["棓"],"dì dài tì":["棣"],sēn:["森","椮","槮","襂"],"rěn shěn":["棯"],"léng lēng líng":["棱"],"fú sù":["棴"],"zōu sǒu":["棷"],zōu:["棸","箃","緅","諏","诹","邹","郰","鄒","鄹","陬","騶","驺","鯫","鲰","黀","齱","齺"],"zhào zhuō":["棹"],"chēn shēn":["棽"],"jiē qiè":["椄"],"yǐ yī":["椅"],"chóu zhòu diāo":["椆"],"qiāng kōng":["椌"],"zhuī chuí":["椎"],"bēi pí":["椑"],mēn:["椚"],"quān juàn quán":["椦"],"duǒ chuán":["椯"],"wěi huī":["椲"],"jiǎ jiā":["椵"],"hán jiān":["椷"],"shèn zhēn":["椹"],"yàn yà":["椻"],"zhā chá":["楂"],"guō kuǎ":["楇"],"jí zhì":["楖"],"kǔ hù":["楛"],"yóu yǒu":["楢"],"sǒng cōng":["楤"],"yuán xuàn":["楥"],"yǎng yàng yīng":["楧"],pián:["楩","胼","腁","賆","蹁","駢","騈","骈","骿","㛹"],"dié yè":["楪"],"dùn shǔn":["楯"],"còu zòu":["楱"],"dì dǐ shì":["楴"],"kǎi jiē":["楷"],"róu ròu":["楺"],"lè yuè":["楽"],"wēn yùn":["榅","鞰"],lǘ:["榈","櫚","氀","膢","藘","閭","闾","驢","驴"],shén:["榊","神","鉮","鰰","𬬹"],"bī pi":["榌"],"zhǎn niǎn zhèn":["榐"],"fú fù bó":["榑"],"jiàn jìn":["榗"],"bǎng bàng":["榜"],"shā xiè":["榝","樧"],nòu:["槈","耨","鎒","鐞"],"qiǎn lián xiàn":["槏"],gàng:["槓","焵","焹","筻","鿍"],gāo:["槔","槹","橰","櫜","睾","篙","糕","羔","臯","韟","餻","高","髙","鷎","鷱","鼛"],"diān zhěn zhēn":["槙"],"kǎn jiàn":["槛"],"xí dié":["槢"],"jī guī":["槣"],"róng yōng":["槦"],"tuán shuàn quán":["槫"],"qì sè":["槭"],"cuī zhǐ":["槯"],"yǒu chǎo":["槱"],"màn wàn":["槾"],"lí chī":["樆"],"léi lěi":["樏","櫑","礌"],"cháo jiǎo chāo":["樔"],"chēng táng":["樘"],"jiū liáo":["樛"],"mó mú":["模"],"niǎo mù":["樢"],"héng hèng":["横","橫"],xuě:["樰","膤","艝","轌","雪","鱈","鳕"],"fá fèi":["橃"],rùn:["橍","润","潤","膶","閏","閠","闰"],"zhǎn jiǎn":["橏"],shùn:["橓","瞚","瞬","舜","蕣","順","顺","鬊"],"tuí dūn":["橔"],"táng chēng":["橖"],"sù qiū":["橚"],"tán diàn":["橝"],"fén fèn fèi":["橨"],"rǎn yān":["橪"],"cū chu":["橻"],"shū qiāo":["橾"],"píng bò":["檘"],"zhái shì tú":["檡"],"biǎo biāo":["檦"],"qiān lián":["檶"],"nǐ mí":["檷"],"jiàn kǎn":["檻"],"nòu ruǎn rú":["檽"],"jī jì":["櫅","禨"],"huǎng guǒ gǔ":["櫎"],"lǜ chū":["櫖"],"miè mèi":["櫗"],ōu:["櫙","欧","歐","殴","毆","瓯","甌","膒","藲","謳","讴","鏂","鴎","鷗","鸥"],"zhù zhuó":["櫡"],"jué jì":["櫭"],"huái guī":["櫰"],"chán zhàn":["欃"],"wéi zuì":["欈"],cáng:["欌","鑶"],"yù yì":["欥"],"chù qù xì":["欪"],"kài ài":["欬"],"yì yīn":["欭"],"xì kài":["欯"],"shuò sòu":["欶"],"ǎi ēi éi ěi èi ê̄ ế ê̌ ề":["欸"],"qī yī":["欹"],"chuā xū":["欻"],"chǐ chuài":["欼"],"kǎn qiàn":["欿"],"kǎn kè":["歁"],"chuǎn chuán":["歂"],"yīn yān":["歅"],"jìn qūn":["歏"],pēn:["歕"],"xū chuā":["歘"],"xī shè":["歙"],"liǎn hān":["歛"],"zhì chí":["歭"],"sè shà":["歰"],sǐ:["死"],"wěn mò":["歾"],piǎo:["殍","皫","瞟","醥","顠"],"qíng jìng":["殑"],"fǒu bó":["殕"],"zhí shi":["殖"],"yè yān yàn":["殗"],"hūn mèi":["殙"],chòu:["殠","臰","遚"],"kuì huì":["殨","溃","潰"],cuàn:["殩","熶","爨","窜","竄","篡","簒"],"yīn yān yǐn":["殷"],"qìng kēng shēng":["殸"],"yáo xiáo xiào":["殽"],"gū gǔ":["毂","蛄"],"guàn wān":["毌"],"dú dài":["毒"],"xún xùn":["毥"],mú:["毪","氁"],"dòu nuò":["毭"],"sāi suī":["毸"],lu:["氇"],sào:["氉","瘙","矂","髞"],"shì zhī":["氏"],"dī dǐ":["氐"],"máng méng":["氓"],"yáng rì":["氜"],shuǐ:["水","氵","氺","閖"],"zhěng chéng zhèng":["氶"],tǔn:["氽"],"fán fàn":["氾"],"guǐ jiǔ":["氿"],"bīn pà pā":["汃"],"zhuó què":["汋"],"dà tài":["汏"],pìn:["汖","牝","聘"],"hàn hán":["汗","馯"],tu:["汢"],"tāng shāng":["汤","湯"],"zhī jì":["汥"],"gàn hán cén":["汵"],"wèn mén":["汶"],"fāng pāng":["汸"],"hǔ huǎng":["汻"],"niú yóu":["汼"],hàng:["沆"],"shěn chén":["沈"],"dùn zhuàn":["沌"],"nǜ niǔ":["沑"],"méi mò":["沒","没"],"tà dá":["沓"],"mì wù":["沕"],"hóng pāng":["沗"],"shā shà":["沙"],"zhuǐ zǐ":["沝"],"ōu òu":["沤","漚"],"jǔ jù":["沮"],"tuō duó":["沰"],"mǐ lì":["沵"],"yí chí":["沶"],"xiè yì":["泄"],"bó pō":["泊"],"mì bì":["泌","秘"],"chù shè":["泏"],"yōu yòu āo":["泑"],"pēng píng":["泙","硑"],"pào pāo":["泡"],"ní nì":["泥","秜"],"yuè sà":["泧"],"jué xuè":["泬","疦"],"lóng shuāng":["泷","瀧"],"luò pō":["泺","濼"],"zé shì":["泽","澤"],"sǎ xǐ":["洒"],"sè qì zì":["洓"],"xǐ xiǎn":["洗"],"kǎo kào":["洘"],"àn yàn è":["洝"],"lěi lèi":["洡"],"qiè jié":["洯"],"qiǎn jiān":["浅"],"jì jǐ":["济","済","濟","纪"],"hǔ xǔ":["浒","滸"],"jùn xùn":["浚","濬"],"yǐng chéng yíng":["浧"],"liàn lì":["浰"],"féng hóng":["浲","溄"],"jiǒng jiōng":["浻"],"suī něi":["浽"],"yǒng chōng":["涌"],"tūn yūn":["涒"],"wō guō":["涡","渦"],hēng:["涥","脝"],"zhǎng zhàng":["涨","漲"],"shòu tāo":["涭"],shuàn:["涮","腨"],"kōng náng":["涳"],"wò wǎn yuān":["涴"],"tuō tuò":["涶"],wō:["涹","猧","窝","窩","莴","萵","蜗","蝸","踒"],"qiè jí":["淁"],"guǒ guàn":["淉"],"lín lìn":["淋","獜","疄"],"tǎng chǎng":["淌"],"nào chuò zhuō":["淖"],"péng píng":["淜"],féi:["淝","肥","腓","蜰"],"pì pèi":["淠"],"niǎn shěn":["淰"],"biāo hǔ":["淲"],"chún zhūn":["淳"],"hùn hún":["混"],qiǎn:["淺","繾","缱","肷","膁","蜸","譴","谴","遣","鑓"],"wèn mín":["渂"],"rè ruò luò":["渃"],"dú dòu":["渎","瀆","读"],"jiàn jiān":["渐","溅","漸","濺"],"miǎn shéng":["渑","澠"],"nuǎn nuán":["渜"],"qiú wù":["渞"],"tíng tīng":["渟"],"dì tí dī":["渧"],"gǎng jiǎng":["港"],"hōng qìng":["渹"],tuān:["湍","煓"],"huì mǐn xū":["湏"],"xǔ xù":["湑"],pén:["湓","瓫","盆","葐"],"mǐn hūn":["湣"],"tuàn nuǎn":["湪"],"qiū jiǎo":["湫","湬"],"yān yīn":["湮"],"bàn pán":["湴"],"zhuāng hún":["湷"],"yàn guì":["溎"],"lián liǎn nián xián xiàn":["溓"],"dá tǎ":["溚","鿎"],"liū liù":["溜","澑","蹓"],lùn:["溣"],mǎ:["溤","犸","獁","玛","瑪","码","碼","遤","鎷","馬","马","鰢","鷌"],"zhēn qín":["溱"],"nì niào":["溺"],"chù xù":["滀","畜"],"wěng wēng":["滃"],"hào xuè":["滈"],"qì xì xiē":["滊"],"xíng yíng":["滎"],"zé hào":["滜"],"piāo piào piǎo":["漂"],"cóng sǒng":["漎"],"féng péng":["漨"],"luò tà":["漯"],"pēng bēn":["漰"],"chóng shuāng":["漴"],"huǒ kuò huò":["漷"],"liáo liú":["漻"],"cuǐ cuī":["漼"],"cóng zǒng":["潀"],"cóng zōng":["潈"],"pì piē":["潎"],"dàng xiàng":["潒"],"huáng guāng":["潢"],"liáo lào lǎo":["潦"],"cōng zòng":["潨"],"zhí zhì":["潪"],"tān shàn":["潬"],"tú zhā":["潳"],"sàn sǎ":["潵"],hēi:["潶","黑","黒","𬭶"],"chéng dèng":["澄","瀓"],"cūn cún":["澊"],"péng pēng":["澎"],"hòng gǒng":["澒","銾"],"wàn màn":["澫"],"kuài huì":["澮"],"guō wō":["濄"],"pēn fén":["濆"],"jí shà":["濈"],"huì huò":["濊"],"dǐng tìng":["濎"],"mǐ nǐ":["濔"],"bì pì":["濞"],"cuì zuǐ":["濢"],"hù huò":["濩"],"ǎi kài kè":["濭"],"wěi duì":["濻","瀢"],"zàn cuán":["濽","灒"],"yǎng yàng":["瀁"],"wǎng wāng":["瀇"],"mò miè":["瀎","眜"],suǐ:["瀡","膸","髓"],"huái wāi":["瀤"],"zùn jiàn":["瀳"],"yīng yǐng yìng":["瀴"],"ráng ràng":["瀼"],shuàng:["灀"],"zhuó jiào zé":["灂"],sǎ:["灑","訯","靸"],"luán luàn":["灓"],"dǎng tǎng":["灙"],"xún quán quàn":["灥"],"huǒ biāo":["灬"],"zhà yù":["灹"],"fén bèn":["炃"],"jiǒng guì":["炅"],"pàng fēng":["炐"],quē:["炔","缺","缼","蒛"],biān:["炞","煸","甂","砭","笾","箯","籩","編","编","蝙","邉","邊","鍽","鞭","鯾","鯿","鳊"],"zhāo zhào":["炤"],"zhuō chù":["炪"],"pào páo bāo":["炮"],"páo fǒu":["炰"],"shǎn qián shān":["炶"],"zhà zhá":["炸"],"jiǎo yào":["烄"],quǎn:["烇","犬","犭","畎","綣","绻","虇"],"yàng yáng":["烊"],"lào luò":["烙"],"huí huǐ":["烠"],rè:["热","熱"],"fú páo":["烰"],"xiè chè":["烲","焎"],"yàn shān":["烻"],"hūn xūn":["焄"],kào:["焅","犒","銬","铐","靠","鮳","鯌","鲓","㸆"],"juān yè":["焆"],"jùn qū":["焌"],"tāo dào":["焘"],"chǎo jù":["焣"],"wò ài":["焥"],"zǒng cōng":["焧"],"xī yì":["焬"],"xìn xīn":["焮"],"chāo zhuō":["焯"],"xiǒng yīng":["焸","焽"],kuǐ:["煃","跬","蹞","頍","𫠆"],"huī yùn xūn":["煇"],"jiǎo qiāo":["煍"],"qián shǎn shān":["煔"],"xī yí":["煕"],"shà shā":["煞"],"yè zhá":["煠"],"yáng yàng":["煬"],"ēn yūn":["煾"],"yūn yǔn":["熅"],"hè xiāo":["熇"],xióng:["熊","熋","雄"],"xūn xùn":["熏","爋"],gòng:["熕","貢","贡"],liū:["熘"],"cōng zǒng":["熜"],"lù āo":["熝"],"shú shóu":["熟"],"fēng péng":["熢"],"cuǐ suī":["熣"],tēng:["熥","膯","鼟"],"yùn yù":["熨"],"áo āo":["熬"],"hàn rǎn":["熯"],"ōu ǒu":["熰"],"huáng huǎng":["熿"],"chǎn dǎn chàn":["燀"],"jiāo zhuó qiáo jué":["燋"],"yàn yān":["燕"],"tài liè":["燤"],āo:["爊"],"yàn xún":["爓"],"jué jiào":["爝","覐","覚","覺","觉"],"lǎn làn":["爦"],"zhuǎ zhǎo":["爪"],"zhǎo zhuǎ":["爫"],"fù fǔ":["父"],diē:["爹","褺","跌"],zāng:["牂","羘","臧","賍","賘","贓","贜","赃","髒"],"piàn piān":["片"],"biān miàn":["牑"],bǎng:["牓","綁","绑"],"yǒu yōng":["牗"],"chēng chèng":["牚","竀"],niú:["牛","牜"],"jiū lè":["牞"],"mù móu":["牟"],māng:["牤"],"gē qiú":["牫"],"yòu chōu":["牰"],"tè zhí":["犆"],bēn:["犇","錛","锛"],"jiān qián":["犍","玪"],má:["犘","痲","蔴","蟇","麻"],"máo lí":["犛"],"bá quǎn":["犮"],"zhuó bào":["犳"],"àn hān":["犴"],"kàng gǎng":["犺"],"pèi fèi":["犻"],"fān huān":["犿"],kuáng:["狂","狅","誑","诳","軖","軠","鵟","𫛭"],"yí quán chí":["狋"],"xīng shēng":["狌"],"tuó yí":["狏"],kǔ:["狜","苦"],"huán huān":["狟"],"hé mò":["狢"],"tà shì":["狧"],"máng dòu":["狵"],"xī shǐ":["狶"],suān:["狻","痠","酸"],"bài pí":["猈"],"jiān yàn":["猏","豣"],"yī yǐ":["猗"],"yá wèi":["猚"],cāi:["猜"],"māo máo":["猫","貓"],"chuàn chuān":["猭"],"tuān tuàn":["猯","貒"],"yà jiá qiè":["猰"],"hè xiē gé hài":["猲"],"biān piàn":["猵","獱"],"bó pò":["猼"],"háo gāo":["獋"],"fén fèn":["獖"],"yào xiāo":["獟"],"shuò xī":["獡"],"gé liè xiē":["獦"],"nòu rú":["獳"],"náo nǎo yōu":["獶"],ráng:["獽","瓤","禳","穣","穰","蘘","躟","鬤"],"náo yōu":["獿"],"lǜ shuài":["率"],"wáng wàng":["王"],"yáng chàng":["玚"],"mín wén":["玟"],"bīn fēn":["玢"],"mén yǔn":["玧"],"qiāng cāng":["玱","瑲","篬"],"án gān":["玵"],"xuán xián":["玹"],"cī cǐ":["玼","跐"],"yí tāi":["珆"],"zǔ jù":["珇"],fà:["珐","琺","蕟","髪","髮"],"yín kèn":["珢"],"huī hún":["珲"],"xuán qióng":["琁"],"fú fū":["琈"],"bǐng pín":["琕"],"cuì sè":["琗"],"yù wéi":["琟"],"tiǎn tiàn":["琠"],"zhuó zuó":["琢"],"běng pěi":["琣"],guǎn:["琯","璭","痯","筦","管","舘","輨","錧","館","馆","鳤"],"hún huī":["琿"],"xié jiē":["瑎"],"chàng dàng yáng":["瑒"],"tiàn zhèn":["瑱"],"bīn pián":["瑸","璸"],"tú shū":["瑹"],cuǐ:["璀","皠","趡"],"zǎo suǒ":["璅"],"jué qióng":["璚"],"lú fū":["璷"],"jì zī":["璾"],suí:["瓍","綏","绥","遀","随","隨","髄"],"mí xǐ":["瓕"],"qióng wěi wèi":["瓗"],"huán yè yà":["瓛"],"bó páo":["瓟"],"zhí hú":["瓡"],piáo:["瓢","闝"],"wǎ wà":["瓦"],"xiáng hóng":["瓨"],wèng:["瓮","甕","罋","蕹","齆"],"shèn shén":["甚"],ruí:["甤","緌","蕤"],yòng:["用","砽","苚","蒏","醟","㶲"],shuǎi:["甩"],béng:["甭","甮"],"yóu zhá":["甴"],"diàn tián shèng":["甸"],"tǐng dīng":["町","甼"],"zāi zī":["甾"],"bì qí":["畁"],"dá fú":["畗"],"cè jì":["畟"],"zāi zī tián":["畠"],"zhì chóu shì":["畤"],"fān pān":["畨","番"],"shē yú":["畬"],"dāng dàng dǎng":["當"],"jiāng qiáng":["疆"],"pǐ yǎ shū":["疋"],"jié qiè":["疌"],"yí nǐ":["疑"],nè:["疒","眲","訥","讷"],"gē yì":["疙"],"nüè yào":["疟","瘧"],"lì lài":["疠","癘"],"yǎ xiā":["疨"],xuē:["疶","蒆","薛","辥","辪","靴","鞾"],"dǎn da":["疸"],"fá biǎn":["疺"],"fèi féi":["疿","痱"],"shān diàn":["痁"],"téng chóng":["痋"],"tōng tóng":["痌"],"wěi yòu yù":["痏"],"tān shǐ":["痑"],"pū pù":["痡","鋪"],"bēng péng":["痭"],"má lìn":["痳"],"tiǎn diàn":["痶"],"ān yè è":["痷"],"kē ē":["痾"],"zhì chì":["瘈"],"jiǎ xiá xiā":["瘕"],"lěi huì":["瘣"],"chài cuó":["瘥"],"diān chēn":["瘨"],"da dá":["瘩"],"biě biē":["瘪"],qué:["瘸"],"dàn dān":["癉"],"guì wēi":["癐"],"nòng nóng":["癑"],"biē biě":["癟"],"bō bǒ":["癷"],bái:["白"],"jí bī":["皀"],"de dì dí dī":["的"],"pā bà":["皅"],"gāo háo":["皋"],"gāo yáo":["皐"],"lì luò bō":["皪"],"zhā cǔ":["皻"],"zhāo zhǎn dǎn":["皽"],"jiān jiàn":["监","監","鋻","间","鞬"],"gài gě hé":["盖"],"máng wàng":["盳"],yuǎn:["盶","逺","遠"],"tián xián":["盷"],"xiāng xiàng":["相"],dǔn:["盹","趸","躉"],"xì pǎn":["盻"],"shěng xǐng":["省"],"yún hùn":["眃"],"miǎn miàn":["眄"],"kàn kān":["看"],"yìng yāng yǎng":["眏"],"yǎo āo ǎo":["眑"],"jū xū kōu":["眗"],"yí chì":["眙"],"dié tì":["眣"],"bǐng fǎng":["眪"],"pàng pán":["眫"],"mī mí":["眯","瞇"],"xuàn shùn xún":["眴"],tiào:["眺","粜","糶","覜","趒"],"zhe zhuó zháo zhāo":["着"],"qiáo shào xiāo":["睄"],"cuó zhuài":["睉"],gùn:["睔","謴"],"suì zuì":["睟"],"pì bì":["睥","稫","辟"],"yì zé gāo":["睪"],"xǐng xìng":["睲"],"guì wèi kuì":["瞆"],"kòu jì":["瞉"],"qióng huán":["瞏"],"mán mén":["瞒","瞞"],"diāo dōu":["瞗"],"lou lóu lǘ":["瞜"],"shùn rún":["瞤"],"liào liǎo":["瞭","钌"],"jiàn xián":["瞯"],"wǔ mí":["瞴"],"guì kuì":["瞶"],"nǐng chēng":["矃"],"huò yuè":["矆"],"mēng méng":["矇"],"kuàng guō":["矌"],"guàn quán":["矔"],"mǎn mán":["矕"],"jīn guān qín":["矜"],"jīn qín guān":["矝"],"yù xù jué":["矞"],"jiǎo jiáo":["矫","矯"],duǎn:["短"],"shí dàn":["石"],"gāng qiāng kòng":["矼"],"huā xū":["砉"],"pīn bīn fēn":["砏"],"yán yàn":["研","硏"],"luǒ kē":["砢"],"fú fèi":["砩","笰"],"zhǔ zhù":["砫"],"lá lì lā":["砬"],"kuāng guāng":["硄"],"gè luò":["硌"],"shuò shí":["硕","碩"],"wèi wéi ái":["硙"],"què kè kù":["硞"],"mǎng bàng":["硥"],"luò lòng":["硦"],"yǒng tóng":["硧"],nüè:["硸","虐"],"kēng kěng":["硻"],"yān yǎn":["硽"],"zhuì chuí duǒ":["硾"],"kōng kòng":["硿"],"zòng cóng":["碂"],"jiān zhàn":["碊"],"lù liù":["碌","陆"],"què xī":["碏"],"lún lǔn lùn":["碖"],"náo gāng":["碙"],"jié yà":["碣"],"wèi wěi":["碨"],"tí dī":["碮"],"chá chā":["碴"],"qiāo què":["碻"],"sù xiè":["碿"],"liú liù":["磂","遛","鎦","馏"],"sī tí":["磃"],"bàng páng":["磅"],"huá kě gū":["磆"],"wěi kuǐ":["磈"],"xiá qià yà":["磍"],"lián qiān":["磏"],"wèi ái gài":["磑"],"lá lā":["磖"],"áo qiāo":["磝"],"pēng pèng":["磞","閛"],"yīn yǐn":["磤"],"lěi léi":["磥"],"mó mò":["磨"],"qì zhú":["磩"],"láo luò":["磱"],"pán bō":["磻"],"jí shé":["磼"],"hé qiāo qiào":["礉"],"kè huò":["礊"],"què hú":["礐"],"è qì":["礘"],cǎ:["礤","礸"],"xián xín":["礥"],"léi lěi lèi":["礧"],"yán yǎn":["礹"],"qí zhǐ":["祇","蚔"],"bēng fāng":["祊"],"bì mì":["祕"],suàn:["祘","笇","筭","算","蒜"],"piào piāo":["票"],"jì zhài":["祭"],"shuì lèi":["祱"],"jìn jīn":["禁"],"chán shàn":["禅"],"yáng shāng":["禓"],"zhī zhǐ tí":["禔"],"shàn chán":["禪"],"yú yù ǒu":["禺"],"zǐ zì":["秄"],"chá ná":["秅"],"zhǒng zhòng chóng":["种"],"hào mào":["秏"],"kù kū":["秙"],zū:["租","葅"],chèng:["秤","穪"],"huó kuò":["秮","秳"],"chēng chèn chèng":["称","稱"],"shì zhì":["秲","銴"],"fù pū":["秿"],"xùn zè":["稄"],"tú shǔ":["稌"],"zhùn zhǔn":["稕"],"jī qí":["稘","綨","觭"],"léng líng":["稜"],"zuì zú sū":["稡"],"xì qiè":["稧","郄"],"zhǒng zhòng":["種"],"zōng zǒng":["稯"],"xián jiān liàn":["稴"],"zī jiū":["稵"],"jī qǐ":["稽"],ròng:["穃"],"shān cǎn cēn":["穇"],"mén méi":["穈"],"jǐ jì":["穖"],"xiāo rào":["穘"],"zhuō bó":["穛"],"tóng zhǒng zhòng":["穜"],zuō:["穝"],"biāo pāo":["穮","藨"],"zhuō jué":["穱"],"cuán zàn":["穳"],"kōng kòng kǒng":["空"],"yū yǔ":["穻"],zhǎi:["窄","鉙"],báo:["窇","雹"],"kū zhú":["窋"],"jiào liáo liù":["窌"],"wā guī":["窐"],"tiǎo yáo":["窕"],"xūn yìn":["窨"],"yà yē":["窫"],"tián diān yǎn":["窴"],"chāo kē":["窼"],"kuǎn cuàn":["窽","窾"],"chù qì":["竐"],"qǔ kǒu":["竘"],"jìng zhěn":["竧"],"kǎn kàn":["竷"],"zhú dǔ":["竺"],"lè jīn":["竻"],"zhuì ruì":["笍"],"háng hàng":["笐"],"cén jìn hán":["笒"],"dā xiá nà":["笚"],"zé zuó":["笮"],"lóng lǒng":["笼","篭","籠","躘","龓"],"zhù zhú":["筑","築"],"dá dā":["答","荅"],shāi:["筛","篩","簁","籭"],"yún jūn":["筠"],"láng làng":["筤","郎","阆"],"zhì zhǐ":["筫"],o:["筽"],"póu bù fú pú":["箁"],"pái bēi":["箄"],gè:["箇","虼","鉻","铬"],"tái chí":["箈"],"guǎi dài":["箉"],"zhào dào":["箌"],"jīng qìng":["箐"],"lín lǐn":["箖"],"jùn qūn":["箘"],"shī yí":["箷","釶"],"yuē yào chuò":["箹"],"xiāo shuò qiào":["箾"],"gōng gǎn lǒng":["篢"],"páng péng":["篣"],"zhuó huò":["篧"],"jiǎn jiān":["篯"],"dí zhú":["篴"],"zān cēn cǎn":["篸"],"zhuàn suǎn zuàn":["篹"],"piǎo biāo":["篻"],"guó guì":["簂"],"cè jí":["簎"],"mì miè":["簚"],"shāi sī":["簛"],"sǔn zhuàn":["簨"],"gàn gǎn":["簳"],"bò bǒ":["簸"],"bó bù":["簿"],shi:["籂"],"zhēn jiān":["籈"],"zhuàn zuǎn":["籑"],"fān pān biān":["籓"],"sǒu shǔ":["籔"],zuǎn:["籫","繤","纂","纉","纘","缵"],nǚ:["籹","釹","钕"],"shā chǎo":["粆"],"kāng jīng":["粇"],fěn:["粉","黺"],cū:["粗","觕","麁","麄","麤"],"nián zhān":["粘"],"cè sè":["粣"],"zhōu yù":["粥"],"shēn sǎn":["糁"],"biān biǎn":["糄","萹"],miàn:["糆","面","靣","麪","麫","麵","麺"],"hú hū hù":["糊"],"gǔ gòu":["糓"],"mí méi":["糜"],"sǎn shēn":["糝","糣"],zāo:["糟","蹧","遭","醩"],"mì sī":["糸"],"jiū jiǔ":["糺"],"xì jì":["系","繫"],"zhēng zhěng":["糽"],"chà chǎ":["紁","衩"],"yuē yāo":["約","约"],"hóng gōng":["紅","红"],"hé gē":["紇","纥"],"wén wèn":["紋","纹"],fóu:["紑"],"jì jié jiè":["紒"],"pī pí bǐ":["紕","纰"],"jīn jìn":["紟"],"zhā zā":["紥","紮"],hā:["紦"],"fū fù":["紨"],"chōu chóu":["紬"],"lèi léi lěi":["累"],"bō bì":["紴"],"tiǎn zhěn":["紾"],"jiōng jiǒng":["絅"],"jié jiē":["結","结","节"],"guà kuā":["絓"],"bǎi mò":["絔"],"gēng huán":["絙"],"jié xié":["絜"],"quán shuān":["絟"],"gǎi ǎi":["絠"],"luò lào":["絡","络"],"bīng bēng pēng":["絣"],"gěi jǐ":["給","给"],"tóng tōng dòng":["絧"],"tiào diào dào":["絩"],"lěi lèi léi":["絫"],"gāi hài":["絯"],"chī zhǐ":["絺"],"wèn miǎn mán wàn":["絻"],"huán huàn wàn":["綄"],"qīn xiān":["綅"],"tì tí":["綈"],"yán xiàn":["綖"],"zōng zèng zòng":["綜"],"chēn lín":["綝"],"zhǔn zhùn":["綧"],"qiàn qīng zhēng":["綪"],"qìng qǐ":["綮"],"lún guān":["綸","纶"],"chuò chāo":["綽","绰"],"tián tǎn chān":["緂"],"lǜ lù":["緑","绿"],"ruǎn ruàn":["緛"],"jí qī":["緝"],"zhòng chóng":["緟","重"],"miáo máo":["緢"],"xiè yè":["緤"],huǎn:["緩","缓","㬊"],"gēng gèng":["緪","縆"],"tōu xū shū":["緰"],"zōng zòng":["緵","繌"],"yùn gǔn":["緷"],"guā wō":["緺"],"yùn yūn wēn":["緼","縕"],"bāng bàng":["縍"],"gǔ hú":["縎","鶻"],"cī cuò suǒ":["縒"],"cuī shuāi":["縗"],"róng rǒng ròng":["縙"],"zài zēng":["縡"],cài:["縩","菜","蔡"],"féng fèng":["縫"],"suō sù":["縮","缩"],"yǎn yǐn":["縯","酓"],"zòng zǒng":["縱","纵"],"zhuàn juàn":["縳"],"mò mù":["縸","莫"],"piǎo piāo":["縹","缥"],"fán pó":["繁"],"bēng bèng":["繃"],"móu miù miào liǎo":["繆"],"yáo yóu zhòu":["繇"],"zēng zèng":["繒","缯"],"jú jué":["繘"],"chuō chuò":["繛"],"zūn zǔn":["繜"],rào:["繞","绕","遶"],"chǎn chán":["繟"],"huì huí":["繢","缋","藱"],"qiāo sāo zǎo":["繰"],"jiǎo zhuó":["繳","缴"],"dàn tán chán":["繵"],nǒng:["繷"],"pú fú":["纀"],"yào lì":["纅"],"rǎng xiāng":["纕"],"lí sǎ xǐ lǐ":["纚"],"xiān qiàn":["纤"],"jīng jìng":["经"],"tí tì":["绨"],"bēng běng bèng":["绷"],"zōng zèng":["综"],"jī qī":["缉"],"wēn yùn yūn":["缊"],"fèng féng":["缝"],"shuāi cuī suī":["缞"],"miù móu liáo miào mù":["缪"],"qiāo sāo":["缲"],fǒu:["缶","缹","缻","雬","鴀"],"bà ba pí":["罢","罷"],"guà guǎi":["罫"],"yáng xiáng":["羊","羏"],"měi gāo":["羙"],"yì xī":["羛"],"qiǎng qiān":["羟"],"qiāng kòng":["羫"],"qián xián yán":["羬"],nóu:["羺"],"hóng gòng":["羾"],"pī bì pō":["翍"],"qú yù":["翑"],ké:["翗"],"qiào qiáo":["翘"],"zhái dí":["翟"],"dào zhōu":["翢"],"hóu qú":["翵"],shuǎ:["耍"],"ruǎn nuò":["耎"],"ér nài":["耏"],"zhuān duān":["耑"],"pá bà":["耙"],"chí sì":["耛"],"qù chú":["耝"],"lún lǔn":["耣"],"jí jiè":["耤"],"tāng tǎng":["耥"],pǎng:["耪","覫"],"zhá zé":["耫"],"yē yé":["耶"],"yún yíng":["耺"],"wà tuǐ zhuó":["聉"],"ér nǜ":["聏"],"tiē zhé":["聑"],"dǐ zhì":["聜"],qié:["聺"],"nǐ jiàn":["聻"],"lèi lē":["肋"],cào:["肏","襙","鄵","鼜"],"bó dí":["肑"],"xiào xiāo":["肖"],"dù dǔ":["肚"],chāi:["肞","釵","钗"],"hán qín hàn":["肣"],"pàng pán pàn":["肨","胖"],"zhūn chún":["肫"],āng:["肮","骯"],"yù yō":["育"],"pí bǐ bì":["肶"],"fèi bì":["胇"],"bèi bēi":["背"],"fèi zǐ":["胏"],"píng pēng":["胓","苹"],"fū fú zhǒu":["胕"],"shèng shēng":["胜"],kuà:["胯","跨","骻"],"gǎi hǎi":["胲"],"gē gé gā":["胳"],"néng nài":["能"],"guī kuì":["胿"],"mài mò":["脉"],"zāng zàng":["脏"],"jiǎo jué":["脚","角"],cuǒ:["脞"],"de te":["脦"],"zuī juān":["脧"],něi:["脮","腇","餒","馁","鮾","鯘"],"pú fǔ":["脯"],niào:["脲"],shuí:["脽"],guò:["腂","過","鐹"],"là xī":["腊"],"yān ā":["腌"],"gāo gào":["膏"],"lù biāo":["膔"],chuái:["膗"],"zhuān chuán chún zhuǎn":["膞"],chuài:["膪","踹"],"fán pán":["膰"],"wǔ hū":["膴"],"shān dàn":["膻"],tún:["臀","臋","蛌","豘","豚","軘","霕","飩","饨","魨","鲀","黗"],"bì bei":["臂"],"là gé":["臈"],"sào sāo":["臊"],nào:["臑","閙","闹","鬧"],"ní luán":["臡"],"qiān xián":["臤"],"guàng jiǒng":["臦"],"guǎng jiǒng":["臩"],"chòu xiù":["臭"],"mián biān":["臱"],"dié zhí":["臷"],"zhī jìn":["臸"],"shè shě":["舍"],pù:["舖","舗"],"bān bō pán":["般"],kuā:["舿"],"gèn gěn":["艮"],"sè shǎi":["色"],"fú bó":["艴"],"jiāo qiú":["艽"],"chāi chā":["芆"],"sháo què":["芍"],"hù xià":["芐"],"zì zǐ":["芓"],"huì hū":["芔"],"tún chūn":["芚"],"jiè gài":["芥"],"xù zhù":["芧"],"yuán yán":["芫"],"xīn xìn":["芯"],"lún huā":["芲"],"wù hū":["芴"],"gōu gǒu":["芶"],"mào máo":["芼"],"fèi fú":["芾"],"chán yín":["苂"],qiē:["苆"],"sū sù":["苏"],"tiáo sháo":["苕"],"lì jī":["苙"],"kē hē":["苛"],"jù qǔ":["苣"],"ruò rě":["若"],"zhù níng":["苧"],"pā bó":["苩"],xiú:["苬"],"zhǎ zuó":["苲"],"jū chá":["苴"],nié:["苶"],"shēng ruí":["苼"],"qié jiā":["茄"],"zǐ cí":["茈"],"qiàn xī":["茜"],chǎi:["茝"],"fá pèi":["茷"],ráo:["荛","蕘","襓","饒","饶"],"yíng xíng":["荥"],"qián xún":["荨","蕁"],"yìn yīn":["荫"],"hé hè":["荷"],"shā suō":["莎"],"péng fēng":["莑"],"shēn xīn":["莘"],"wǎn guān guǎn":["莞"],"yóu sù":["莤"],"shāo xiāo":["莦","蛸"],"làng liáng":["莨"],"piǎo fú":["莩"],"wèn wǎn miǎn":["莬"],"shì shí":["莳","蒔"],"tù tú":["莵"],"xiān liǎn":["莶","薟"],"wǎn yù":["菀"],"zōu chù":["菆"],"lù lǜ":["菉"],"jūn jùn":["菌"],"niè rěn":["菍"],"zī zì zāi":["菑"],"tú tù":["菟"],"jiē shà":["菨"],"qiáo zhǎo":["菬"],"tái zhī chí":["菭"],"fēi fěi":["菲","蜚"],"qín qīn jīn":["菳"],"zū jù":["菹","蒩"],"lǐn má":["菻"],"tián tiàn":["菾"],tiē:["萜","貼","贴"],"luò là lào luō":["落"],"zhù zhuó zhe":["著"],"shèn rèn":["葚"],"gě gé":["葛"],"jùn suǒ":["葰"],"kuì kuài":["蒉"],"rú ná":["蒘"],"méng mēng měng":["蒙"],"yuán huán":["蒝"],"xú shú":["蒣"],"xí xì":["蒵"],"mì míng":["蓂"],"sōu sǒu":["蓃"],"gài gě hé hài":["蓋"],"yǎo zhuó":["蓔"],"diào tiáo dí":["蓧"],"xū qiū fū":["蓲"],"zí jú":["蓻"],"liǎo lù":["蓼"],xu:["蓿"],"hàn hǎn":["蔊"],"màn wàn mán":["蔓"],"pó bò":["蔢"],"fān fán bō":["蕃"],"hóng hòng":["蕻"],"yù ào":["薁","隩"],"xí xiào":["薂"],"báo bó bò":["薄"],"cí zī":["薋"],"wàn luàn":["薍"],"kǎo hāo":["薧"],"yuǎn wěi":["薳"],"zhòu chóu":["薵"],"wō mái":["薶"],"xiāo hào":["藃"],"yù xù xū":["藇"],"jiè jí":["藉"],"diào zhuó":["藋"],"cáng zàng":["藏"],lǎ:["藞"],"chú zhū":["藸"],"pín píng":["蘋"],"gān hán":["虷"],"hóng jiàng":["虹"],"huī huǐ":["虺"],"xiā há":["虾"],"mǎ mà mā":["蚂"],"fāng bàng":["蚄"],"bàng bèng":["蚌"],"jué quē":["蚗"],"qín qián":["蚙"],"gōng zhōng":["蚣"],"fǔ fù":["蚥"],"dài dé":["蚮"],"gǒu qú xù":["蚼"],"bǒ pí":["蚾"],"shé yí":["蛇"],tiě:["蛈","鉄","銕","鐡","鐵","铁","驖"],"gé luò":["蛒"],"máng bàng":["蛖"],"yì xǔ":["蛡"],"há gé":["蛤"],"qiè ní":["蛪"],"é yǐ":["蛾"],"zhē zhé":["蜇"],"là zhà":["蜡"],suò:["蜶","逤"],"yóu qiú":["蝤"],"xiā hā":["蝦"],"xī qī":["螇"],"bī pí":["螕"],"nài něng":["螚"],"hé xiá":["螛"],"guì huǐ":["螝"],"mǎ mā mà":["螞"],"shì zhē":["螫"],"zhì dié":["螲"],"jiàn chán":["螹"],"ma má mò":["蟆"],"mǎng měng":["蟒"],"biē bié":["蟞"],"bēn fèi":["蟦"],"láo liáo":["蟧"],"yín xún":["蟫"],"lí lǐ":["蠡"],"xuè xiě":["血"],"xíng háng hàng héng":["行"],"shuāi cuī":["衰"],"tuó tuō":["袉"],"lǐng líng":["袊"],"bào páo pào":["袌"],"jù jiē":["袓"],"hè kè":["袔"],"yí yì":["袘","貤"],"nà jué":["袦"],"bèi pī":["被"],"chǐ nuǒ":["袲"],"chǐ qǐ duǒ nuǒ":["袳"],"jiá qiā jié":["袷"],"bó mò":["袹"],"guī guà":["袿"],"liè liě":["裂"],"chéng chěng":["裎"],"jiē gé":["裓"],"dāo chóu":["裯"],"shang cháng":["裳"],"yuān gǔn":["裷"],"yǎn ān":["裺"],"tì xī":["裼"],"fù fú":["褔"],"chǔ zhǔ":["褚"],"tuì tùn":["褪"],lǎi:["襰"],"yào yāo":["要"],"qín tán":["覃"],"jiàn xiàn":["見","见"],piǎn:["覑","諞","谝","貵","𡎚"],"piē miè":["覕"],"yíng yǐng":["覮"],"qù qū":["覰","覷","觑"],"jiàn biǎn":["覵"],"luó luǎn":["覶"],"zī zuǐ":["觜"],"huà xiè":["觟"],"jiě jiè xiè":["解","觧"],"xué hù":["觷"],"lì lù":["觻"],tǎo:["討","讨"],zhùn:["訰"],"zī zǐ":["訾"],"yí dài":["詒","诒"],xiòng:["詗","诇"],"diào tiǎo":["誂"],"yí chǐ chì":["誃"],"lǎng làng":["誏"],"ēi éi ěi èi xī":["誒","诶"],shuà:["誜"],"yǔ yù":["語","语","雨"],"shuō shuì yuè":["說","说"],"shuí shéi":["誰","谁"],"qū juè":["誳"],"chī lài":["誺"],"nì ná":["誽"],"diào tiáo":["調"],"pǐ bēi":["諀"],"jì jī":["諅"],"zé zuò zhǎ cuò":["諎"],"chù jí":["諔"],"háo xià":["諕"],"lùn lún":["論","论"],"shì dì":["諟"],"huà guā":["諣"],"xǐ shāi āi":["諰"],"nán nàn":["諵","難"],miù:["謬","谬"],zèn:["譖","谮"],"shí zhì":["識","识"],"juàn xuān":["讂"],"yí tuī":["讉"],zhán:["讝"],"xǔ hǔ":["许"],"xiáng yáng":["详"],"tiáo diào zhōu":["调"],"chén shèn":["谌"],"mí mèi":["谜"],"màn mán":["谩"],"gǔ yù":["谷"],"huō huò huá":["豁"],"zhì zhài":["豸"],"huān huán":["貆"],"kěn kūn":["貇"],"mò hé":["貈"],"mò hé háo":["貉"],"jù lóu":["貗"],"zé zhài":["責","责"],"dài tè":["貸"],"bì bēn":["賁"],"jiǎ gǔ jià":["賈"],"xiōng mín":["賯"],càng:["賶"],"zhuàn zuàn":["賺","赚"],"wàn zhuàn":["贃"],"gàn gòng zhuàng":["贛"],"yuán yùn":["贠"],"bēn bì":["贲"],"jiǎ gǔ":["贾"],zǒu:["走","赱","鯐"],"dié tú":["趃"],"jū qiè":["趄"],"qū cù":["趋","趨"],"jí jié":["趌"],"guā huó":["趏"],"què qì jí":["趞"],"tàng tāng":["趟"],"chuō zhuó":["趠"],"qù cù":["趣"],"yuè tì":["趯"],"bō bào":["趵"],"kuà wù":["趶"],"guì jué":["趹"],"fāng fàng páng":["趽"],"páo bà":["跁"],"qí qǐ":["跂"],"jiàn chén":["跈"],"pǎo páo":["跑"],"diǎn diē tiē":["跕"],"jū jù qiè":["跙"],bǒ:["跛"],"luò lì":["跞"],"dài duò duō chí":["跢"],zhuǎi:["跩"],"bèng pián":["跰"],"tiào táo":["跳"],"shū chōu":["跾"],"liàng liáng":["踉"],"tà tā":["踏"],chǎ:["蹅","鑔","镲"],"dí zhí":["蹢"],"dēng dèng":["蹬","鐙","镫"],cèng:["蹭"],"dūn cún":["蹲"],"juě jué":["蹶"],liāo:["蹽"],"xiè sǎ":["躠"],tǐ:["躰","軆","骵"],"yà zhá gá":["轧","軋"],"xìn xiàn":["軐"],"fàn guǐ":["軓"],"zhuàn zhuǎn":["転"],"zhóu zhòu":["軸","轴"],bú:["轐","醭","鳪"],"zhuǎn zhuàn zhuǎi":["转"],"zǎi zài":["载"],"niǎn zhǎn":["辗"],"biān bian":["边"],"dào biān":["辺"],"yǐ yí":["迆","迤","迱"],"guò guo guō":["过"],"wàng kuāng":["迋"],"hái huán":["还"],"zhè zhèi":["这"],"yuǎn yuàn":["远"],"zhì lì":["迣"],"zhù wǎng":["迬"],"zhuī duī":["追"],"shì kuò":["适"],tòu:["透"],"tōng tòng":["通"],guàng:["逛"],"dǎi dài":["逮"],"suì suí":["遂"],"tí dì":["遆"],"yí wèi":["遗"],"shì dí zhé":["適"],cà:["遪"],"huán hái":["還"],"lí chí":["邌"],"kàng háng":["邟"],"nà nèi nā":["那"],"xié yá yé yú xú":["邪"],"gāi hái":["郂"],"huán xún":["郇"],"chī xī":["郗"],hǎo:["郝"],"lì zhí":["郦"],"xiáo ǎo":["郩"],"dōu dū":["都"],liǎo:["曢","鄝","镽"],"zàn cuán cuó":["酂","酇"],"dīng dǐng":["酊"],"cù zuò":["酢"],"fā pō":["酦"],"shāi shī":["酾"],niàng:["酿","醸"],"qiú chōu":["醔"],"pō fā":["醗","醱"],"chǎn chěn":["醦"],"yàn liǎn xiān":["醶"],"niàng niáng":["釀"],"lǐ li":["里"],"lí xǐ xī":["釐"],"liǎo liào":["釕"],"dīng dìng":["釘","钉"],"qiǎo jiǎo":["釥"],"yú huá":["釪"],"huá wū":["釫"],"rì rèn jiàn":["釰","釼"],"dì dài":["釱"],"pī zhāo":["釽"],"yá yé":["釾"],"bǎ pá":["鈀","钯"],"tā tuó":["鉈","铊"],běi:["鉳"],"bǐng píng":["鉼"],"hā kē":["鉿","铪"],chòng:["銃","铳"],"xiǎng jiōng":["銄"],"yù sì":["銉"],"xù huì":["銊"],"rén rěn":["銋"],"shàn shuò":["銏"],"chì lì":["銐"],"xiǎn xǐ":["銑","铣"],"hóu xiàng":["銗"],"diào tiáo yáo":["銚"],"xiān kuò tiǎn guā":["銛","銽","铦"],"zhé niè":["銸"],"zhōng yōng":["銿"],"tōu tù dòu":["鋀"],"méi méng":["鋂"],"wàn jiǎn":["鋄","鎫"],"tǐng dìng":["鋌","铤"],"juān jiān cuān":["鋑"],"sī tuó":["鋖"],"juān xuān juàn":["鋗"],"wú huá wū":["鋘"],"zhuó chuò":["鋜"],"xíng xìng jīng":["鋞"],"jū jú":["鋦","锔"],"zuì niè":["鋷"],"yuān yuǎn wǎn wān":["鋺"],"gāng gàng":["鋼","钢"],zhuī:["錐","锥","騅","骓","鵻"],ā:["錒","锕"],"cuō chā":["鎈"],"suǒ sè":["鎍"],"yáo zú":["鎐"],"yè tà gé":["鎑"],"qiāng chēng":["鎗"],"gé lì":["鎘","镉","鬲"],"bī pī bì":["鎞"],"gǎo hào":["鎬"],"zú chuò":["鏃"],"xiū xiù":["鏅"],"shòu sōu":["鏉"],"dí dī":["鏑","镝"],"qiāo sǎn càn":["鏒"],"lù áo":["鏕"],"tāng táng":["鏜"],"jiàn zàn":["鏩"],"huì suì ruì":["鏸"],"qiǎng qiāng":["鏹","镪"],"sǎn xiàn sà":["鏾"],"jiǎn jiàn":["鐧","锏"],"dāng chēng":["鐺","铛"],"zuān zuàn":["鑽"],"sà xì":["钑"],"yào yuè":["钥"],"tǒu dǒu":["钭"],"zuàn zuān":["钻"],"qiān yán":["铅"],"pí pī":["铍"],"yáo diào tiáo":["铫"],"tāng tàng":["铴"],"pù pū":["铺"],"tán xiān":["锬"],"liù liú":["镏"],"hào gǎo":["镐"],"táng tāng":["镗"],"tán chán xín":["镡"],"huò shǎn":["閄"],"hàn bì":["閈","闬"],"kāng kàng":["閌","闶"],"xián jiàn jiān jiǎn":["閒"],"xiā xiǎ":["閕"],"xiǎ kě":["閜"],"biàn guān":["閞"],"hé gé":["閤","颌"],"hòng xiàng":["閧"],"sē xī":["閪"],"tíng tǐng":["閮"],"è yān":["閼","阏"],"hòng juǎn xiàng":["闂"],"bǎn pàn":["闆"],"dū shé":["闍","阇"],"què quē":["闕"],"tāng táng chāng":["闛"],"kàn hǎn":["闞","阚"],"xì sè tà":["闟"],"mēn mèn":["闷"],"quē què":["阙"],"yán diàn":["阽"],"ā ē":["阿"],"bēi pō pí":["陂"],"yàn yǎn":["隁"],"yú yáo shù":["隃"],"lóng lōng":["隆"],"duì zhuì":["隊"],"suí duò":["隋"],"gāi qí ái":["隑"],"huī duò":["隓","隳"],"wěi kuí":["隗"],"lì dài":["隸"],"zhuī cuī wéi":["隹"],"hè hú":["隺","鶮"],"jùn juàn":["隽","雋"],"nán nàn nuó":["难"],"què qiāo qiǎo":["雀"],"guàn huán":["雚"],"guī xī":["雟"],"sè xí":["雭"],án:["雸"],"wù méng":["雺"],tèng:["霯"],"lù lòu":["露"],mái:["霾"],"jìng liàng":["靚"],"gé jí":["革"],bǎ:["靶"],"yāng yàng":["鞅"],"gé tà sǎ":["鞈"],"biān yìng":["鞕"],"qiào shāo":["鞘"],"juān xuān":["鞙"],"shàng zhǎng":["鞝"],"pí bǐng bì bēi":["鞞"],la:["鞡"],"xiè dié":["鞢"],ēng:["鞥"],"móu mù":["鞪"],"bì bǐng":["鞸"],"mèi wà":["韎"],rǒu:["韖"],"shè xiè":["韘"],"yùn wēn":["韫"],"dùn dú":["頓","顿"],duǐ:["頧"],luō:["頱"],"bīn pín":["頻"],yóng:["顒","颙","鰫"],mān:["顢","颟"],"jǐng gěng":["颈"],"jié xié jiá":["颉"],"kē ké":["颏"],"pín bīn":["频"],"chàn zhàn":["颤"],"fēng fěng":["風","风"],"biāo diū":["颩"],"bá fú":["颰"],"sāo sōu":["颾"],"liù liáo":["飂"],"shí sì yì":["食"],"yǎng juàn":["飬"],"zhù tǒu":["飳"],"yí sì":["飴"],"zuò zé zhā":["飵"],tiè:["飻","餮"],"xiǎng náng":["饟"],"táng xíng":["饧"],"gē le":["饹"],"chā zha":["馇"],"náng nǎng":["馕"],"yūn wò":["馧"],"zhī shì":["馶"],"xìn jìn":["馸"],"kuài jué":["駃"],zǎng:["駔","驵"],"tái dài":["駘"],"xún xuān":["駨"],"liáng láng":["駺"],piàn:["騗","騙","骗","魸"],"dài tái":["骀"],"sāo sǎo":["骚"],"gǔ gū":["骨"],"bèi mó":["骳"],"xiāo qiāo":["骹"],"bǎng pǎng":["髈"],"bó jué":["髉"],"bì pǒ":["髲"],"máo méng":["髳"],"kuò yuè":["髺"],"bā bà":["魞","鲃"],"jì cǐ":["鮆"],"bó bà":["鮊"],"zhǎ zhà":["鮓","鲊"],"chóu dài":["鮘"],"luò gé":["鮥"],"guī xié wā kuí":["鮭"],"xiān xiǎn":["鮮","鲜"],"pū bū":["鯆"],"yì sī":["鯣"],"bà bó":["鲌"],"guī xié":["鲑"],"sāi xǐ":["鳃"],"niǎo diǎo":["鳥"],"diāo zhāo":["鳭"],"gān hàn yàn":["鳱"],"fū guī":["鳺"],"jiān qiān zhān":["鳽"],"hé jiè":["鶡"],"piān biǎn":["鶣"],"chuàn zhì":["鶨"],"cāng qiāng":["鶬"],"sǔn xùn":["鶽"],"biāo páo":["麃"],"zhù cū":["麆"],"jūn qún":["麇","麕"],chi:["麶"],"mó me":["麼"],"mó me ma":["麽"],"mí mǒ":["麿"],"dàn shèn":["黮"],"zhěn yān":["黰"],"dǎn zhǎn":["黵"],"miǎn mǐn měng":["黾"],hōu:["齁"],nàng:["齉"],"qí jì zī zhāi":["齐"],"yín kěn yǎn":["龂"],"yín kěn":["龈"],"gōng wò":["龏"],"guī jūn qiū":["龜","龟"],"kuí wā":["䖯"],lōu:["䁖"],"ōu qū":["𫭟"],"lóu lǘ":["𦝼"],"gǎ gā gá":["嘎"],"wā guà":["坬"],"zhǐ dǐ":["茋"],"gǒng hóng":["硔"],"yáo xiào":["滧"]},T=new Bn;Object.keys(fn).forEach(n=>{const i=fn[n];for(let g of i)T.set(g,n)});const ng=["zh","ch","sh","z","c","s","b","p","m","f","d","t","n","l","g","k","h","j","q","x","r","y","w",""],ig=["j","q","x"],gg=["uān","uán","uǎn","uàn","uan","uē","ué","uě","uè","ue","ūn","ún","ǔn","ùn","un","ū","ú","ǔ","ù","u"],hg={uān:"üān",uán:"üán",uǎn:"üǎn",uàn:"üàn",uan:"üan",uē:"üē",ué:"üé",uě:"üě",uè:"üè",ue:"üe",ūn:"ǖn",ún:"ǘn",ǔn:"ǚn",ùn:"ǜn",un:"ün",ū:"ǖ",ú:"ǘ",ǔ:"ǚ",ù:"ǜ",u:"ü"},ug=["ia","ian","iang","iao","ie","iu","iong","ua","uai","uan","uang","ue","ui","uo","üan","üe","van","ve"],wn={一:"yì",二:"èr",三:"sān",四:"sì",五:"wǔ",六:"liù",七:"qī",八:"bā",九:"jiǔ",十:"shí",百:"bǎi",千:"qiān",万:"wàn",亿:"yì",单:"dān",两:"liǎng",双:"shuāng",多:"duō",几:"jǐ",十一:"shí yī",零一:"líng yī",第一:"dì yī",一十:"yī shí",一十一:"yī shí yī"},qn={重:"chóng",行:"háng",斗:"dǒu",更:"gēng"};function sg(){const n={零一:"líng yī","〇一":"líng yī",十一:"shí yī",一十:"yī shí",第一:"dì yī",一十一:"yī shí yī"};for(let i in wn)for(let g in qn){const u=`${i}${g}`,h=`${wn[i]} ${qn[g]}`;n[u]=h}return n}const pn=sg(),og=Object.keys(pn).map(n=>({zh:n,pinyin:pn[n],probability:1e-12,length:P(n),priority:p.Normal,dict:Symbol("rule")})),Ln={不:{bú:[4]},一:{yí:[4],yì:[1,2,3]}},tg={不:["的","而","之","后","也","还","地"],一:["的","而","之","后","也","还","是"]},lg=Object.keys(Ln);function cg(n,i,g){if(lg.indexOf(n)===-1)return R(n);if(i===g&&i&&R(i)!==i)return U(R(n));if(g&&!tg[n].includes(g)){const u=R(g);if(u!==g){const h=G(u),s=Ln[n];for(let o in s)if(s[o].indexOf(Number(h))!==-1)return o}}}function zg(n,i){if(n==="了"&&(!i||!T.get(i)))return"liǎo"}function eg(n,i){if(n==="々")return!i||!T.get(i)?"tóng":T.get(i).split(" ")[0]}function kn(n,i,g){return eg(n,i)||zg(n,i)||cg(n,i,g)||R(n)}const un={南宫:"nán gōng",第五:"dì wǔ",万俟:"mò qí",司马:"sī mǎ",上官:"shàng guān",欧阳:"ōu yáng",夏侯:"xià hóu",诸葛:"zhū gě",闻人:"wén rén",东方:"dōng fāng",赫连:"hè lián",皇甫:"huáng fǔ",尉迟:"yù chí",公羊:"gōng yáng",澹台:"tán tái",公冶:"gōng yě",宗政:"zōng zhèng",濮阳:"pú yáng",淳于:"chún yú",太叔:"tài shū",申屠:"shēn tú",公孙:"gōng sūn",仲孙:"zhòng sūn",轩辕:"xuān yuán",令狐:"líng hú",钟离:"zhōng lí",宇文:"yǔ wén",长孙:"zhǎng sūn",慕容:"mù róng",鲜于:"xiān yú",闾丘:"lǘ qiū",司徒:"sī tú",司空:"sī kōng",亓官:"qí guān",司寇:"sī kòu",仉督:"zhǎng dū",子车:"zǐ jū",颛孙:"zhuān sūn",端木:"duān mù",巫马:"wū mǎ",公西:"gōng xī",漆雕:"qī diāo",乐正:"yuè zhèng",壤驷:"rǎng sì",公良:"gōng liáng",拓跋:"tuò bá",夹谷:"jiá gǔ",宰父:"zǎi fǔ",榖梁:"gǔ liáng",段干:"duàn gān",百里:"bǎi lǐ",东郭:"dōng guō",南门:"nán mén",呼延:"hū yán",羊舌:"yáng shé",梁丘:"liáng qiū",左丘:"zuǒ qiū",东门:"dōng mén",西门:"xī mén",句龙:"gōu lóng",毌丘:"guàn qiū",赵:"zhào",钱:"qián",孙:"sūn",李:"lǐ",周:"zhōu",吴:"wú",郑:"zhèng",王:"wáng",冯:"féng",陈:"chén",褚:"chǔ",卫:"wèi",蒋:"jiǎng",沈:"shěn",韩:"hán",杨:"yáng",朱:"zhū",秦:"qín",尤:"yóu",许:"xǔ",何:"hé",吕:"lǚ",施:"shī",张:"zhāng",孔:"kǒng",曹:"cáo",严:"yán",华:"huà",金:"jīn",魏:"wèi",陶:"táo",姜:"jiāng",戚:"qī",谢:"xiè",邹:"zōu",喻:"yù",柏:"bǎi",水:"shuǐ",窦:"dòu",章:"zhāng",云:"yún",苏:"sū",潘:"pān",葛:"gě",奚:"xī",范:"fàn",彭:"péng",郎:"láng",鲁:"lǔ",韦:"wéi",昌:"chāng",马:"mǎ",苗:"miáo",凤:"fèng",花:"huā",方:"fāng",俞:"yú",任:"rén",袁:"yuán",柳:"liǔ",酆:"fēng",鲍:"bào",史:"shǐ",唐:"táng",费:"fèi",廉:"lián",岑:"cén",薛:"xuē",雷:"léi",贺:"hè",倪:"ní",汤:"tāng",滕:"téng",殷:"yīn",罗:"luó",毕:"bì",郝:"hǎo",邬:"wū",安:"ān",常:"cháng",乐:"yuè",于:"yú",时:"shí",傅:"fù",皮:"pí",卞:"biàn",齐:"qí",康:"kāng",伍:"wǔ",余:"yú",元:"yuán",卜:"bǔ",顾:"gù",孟:"mèng",平:"píng",黄:"huáng",和:"hé",穆:"mù",萧:"xiāo",尹:"yǐn",姚:"yáo",邵:"shào",湛:"zhàn",汪:"wāng",祁:"qí",毛:"máo",禹:"yǔ",狄:"dí",米:"mǐ",贝:"bèi",明:"míng",臧:"zāng",计:"jì",伏:"fú",成:"chéng",戴:"dài",谈:"tán",宋:"sòng",茅:"máo",庞:"páng",熊:"xióng",纪:"jǐ",舒:"shū",屈:"qū",项:"xiàng",祝:"zhù",董:"dǒng",梁:"liáng",杜:"dù",阮:"ruǎn",蓝:"lán",闵:"mǐn",席:"xí",季:"jì",麻:"má",强:"qiáng",贾:"jiǎ",路:"lù",娄:"lóu",危:"wēi",江:"jiāng",童:"tóng",颜:"yán",郭:"guō",梅:"méi",盛:"shèng",林:"lín",刁:"diāo",钟:"zhōng",徐:"xú",邱:"qiū",骆:"luò",高:"gāo",夏:"xià",蔡:"cài",田:"tián",樊:"fán",胡:"hú",凌:"líng",霍:"huò",虞:"yú",万:"wàn",支:"zhī",柯:"kē",昝:"zǎn",管:"guǎn",卢:"lú",莫:"mò",经:"jīng",房:"fáng",裘:"qiú",缪:"miào",干:"gān",解:"xiè",应:"yīng",宗:"zōng",丁:"dīng",宣:"xuān",贲:"bēn",邓:"dèng",郁:"yù",单:"shàn",杭:"háng",洪:"hóng",包:"bāo",诸:"zhū",左:"zuǒ",石:"shí",崔:"cuī",吉:"jí",钮:"niǔ",龚:"gōng",程:"chéng",嵇:"jī",邢:"xíng",滑:"huá",裴:"péi",陆:"lù",荣:"róng",翁:"wēng",荀:"xún",羊:"yáng",於:"yū",惠:"huì",甄:"zhēn",曲:"qū",家:"jiā",封:"fēng",芮:"ruì",羿:"yì",储:"chǔ",靳:"jìn",汲:"jí",邴:"bǐng",糜:"mí",松:"sōng",井:"jǐng",段:"duàn",富:"fù",巫:"wū",乌:"wū",焦:"jiāo",巴:"bā",弓:"gōng",牧:"mù",隗:"wěi",山:"shān",谷:"gǔ",车:"chē",侯:"hóu",宓:"mì",蓬:"péng",全:"quán",郗:"xī",班:"bān",仰:"yǎng",秋:"qiū",仲:"zhòng",伊:"yī",宫:"gōng",宁:"nìng",仇:"qiú",栾:"luán",暴:"bào",甘:"gān",钭:"tǒu",厉:"lì",戎:"róng",祖:"zǔ",武:"wǔ",符:"fú",刘:"liú",景:"jǐng",詹:"zhān",束:"shù",龙:"lóng",叶:"yè",幸:"xìng",司:"sī",韶:"sháo",郜:"gào",黎:"lí",蓟:"jì",薄:"bó",印:"yìn",宿:"sù",白:"bái",怀:"huái",蒲:"pú",邰:"tái",从:"cóng",鄂:"è",索:"suǒ",咸:"xián",籍:"jí",赖:"lài",卓:"zhuó",蔺:"lìn",屠:"tú",蒙:"méng",池:"chí",乔:"qiáo",阴:"yīn",鬱:"yù",胥:"xū",能:"nài",苍:"cāng",双:"shuāng",闻:"wén",莘:"shēn",党:"dǎng",翟:"zhái",谭:"tán",贡:"gòng",劳:"láo",逄:"páng",姬:"jī",申:"shēn",扶:"fú",堵:"dǔ",冉:"rǎn",宰:"zǎi",郦:"lì",雍:"yōng",郤:"xì",璩:"qú",桑:"sāng",桂:"guì",濮:"pú",牛:"niú",寿:"shòu",通:"tōng",边:"biān",扈:"hù",燕:"yān",冀:"jì",郏:"jiá",浦:"pǔ",尚:"shàng",农:"nóng",温:"wēn",别:"bié",庄:"zhuāng",晏:"yàn",柴:"chái",瞿:"qú",阎:"yán",充:"chōng",慕:"mù",连:"lián",茹:"rú",习:"xí",宦:"huàn",艾:"ài",鱼:"yú",容:"róng",向:"xiàng",古:"gǔ",易:"yì",慎:"shèn",戈:"gē",廖:"liào",庾:"yǔ",终:"zhōng",暨:"jì",居:"jū",衡:"héng",步:"bù",都:"dū",耿:"gěng",满:"mǎn",弘:"hóng",匡:"kuāng",国:"guó",文:"wén",寇:"kòu",广:"guǎng",禄:"lù",阙:"quē",东:"dōng",欧:"ōu",殳:"shū",沃:"wò",利:"lì",蔚:"wèi",越:"yuè",夔:"kuí",隆:"lóng",师:"shī",巩:"gǒng",厍:"shè",聂:"niè",晁:"cháo",勾:"gōu",敖:"áo",融:"róng",冷:"lěng",訾:"zī",辛:"xīn",阚:"kàn",那:"nā",简:"jiǎn",饶:"ráo",空:"kōng",曾:"zēng",母:"mǔ",沙:"shā",乜:"niè",养:"yǎng",鞠:"jū",须:"xū",丰:"fēng",巢:"cháo",关:"guān",蒯:"kuǎi",相:"xiàng",查:"zhā",后:"hòu",荆:"jīng",红:"hóng",游:"yóu",竺:"zhú",权:"quán",逯:"lù",盖:"gě",益:"yì",桓:"huán",公:"gōng",牟:"móu",哈:"hǎ",言:"yán",福:"fú",肖:"xiāo",区:"ōu",覃:"qín",朴:"piáo",繁:"pó",员:"yùn",句:"gōu",要:"yāo",过:"guō",钻:"zuān",谌:"chén",折:"shé",召:"shào",郄:"qiè",撒:"sǎ",甯:"nìng",六:"lù",啜:"chuài",行:"xíng"},yg=Object.keys(un).map(n=>({zh:n,pinyin:un[n],probability:1+P(n),length:P(n),priority:p.Surname,dict:Symbol("surname")})),vn={这个:"zhè ge",成为:"chéng wéi",认为:"rèn wéi",作为:"zuò wéi",部分:"bù fen",要求:"yāo qiú",应该:"yīng gāi",增长:"zēng zhǎng",提供:"tí gōng",觉得:"jué de",任务:"rèn wu",那个:"nà ge",称为:"chēng wéi",为主:"wéi zhǔ",了解:"liǎo jiě",处理:"chǔ lǐ",皇上:"huáng shang",只要:"zhǐ yào",大量:"dà liàng",力量:"lì liàng",几乎:"jī hū",干部:"gàn bù",目的:"mù dì",行为:"xíng wéi",只见:"zhǐ jiàn",认识:"rèn shi",市长:"shì zhǎng",师父:"shī fu",调查:"diào chá",重新:"chóng xīn",分为:"fēn wéi",知识:"zhī shi",导弹:"dǎo dàn",质量:"zhì liàng",行款:"háng kuǎn",行列:"háng liè",行话:"háng huà",行业:"háng yè",隔行:"gé háng",在行:"zài háng",行家:"háng jia",内行:"nèi háng",外行:"wài háng",同行:"tóng háng",本行:"běn háng",行伍:"háng wǔ",洋行:"yáng háng",银行:"yín háng",商行:"shāng háng",支行:"zhī háng",总行:"zǒng háng",行情:"háng qíng",懂行:"dǒng háng",行规:"háng guī",行当:"háng dang",行货:"háng huò",太行:"tài háng",入行:"rù háng",中行:"zhōng háng",农行:"nóng háng",工行:"gōng háng",建行:"jiàn háng",各行:"gè háng",行号:"háng hào",行高:"háng gāo",行首:"háng shǒu",行尾:"háng wěi",行末:"háng mò",行长:"háng cháng",行距:"háng jù",换行:"huàn háng",行会:"háng huì",行辈:"háng bèi",行道:"háng dào",道行:"dào heng",参与:"cān yù",充分:"chōng fèn",尽管:"jǐn guǎn",生长:"shēng zhǎng",数量:"shù liàng",应当:"yīng dāng",院长:"yuàn zhǎng",强调:"qiáng diào",只能:"zhǐ néng",音乐:"yīn yuè",以为:"yǐ wéi",处于:"chǔ yú",部长:"bù zhǎng",蒙古:"měng gǔ",只有:"zhǐ yǒu",适当:"shì dàng",只好:"zhǐ hǎo",成长:"chéng zhǎng",高兴:"gāo xìng",不了:"bù liǎo",产量:"chǎn liàng",胖子:"pàng zi",显得:"xiǎn de",只是:"zhǐ shì",似的:"shì de",率领:"shuài lǐng",改为:"gǎi wéi",不禁:"bù jīn",成分:"chéng fèn",答应:"dā ying",少年:"shào nián",兴趣:"xìng qù",太监:"tài jian",休息:"xiū xi",校长:"xiào zhǎng",更新:"gēng xīn",合同:"hé tong",喝道:"hè dào",重庆:"chóng qìng",重建:"chóng jiàn",使得:"shǐ de",审查:"shěn chá",累计:"lěi jì",给予:"jǐ yǔ",极为:"jí wéi",冠军:"guàn jūn",仿佛:"fǎng fú",头发:"tóu fa",投降:"tóu xiáng",家长:"jiā zhǎng",仔细:"zǐ xì",要是:"yào shi",将领:"jiàng lǐng",含量:"hán liàng",更为:"gèng wéi",积累:"jī lěi",地处:"dì chǔ",县长:"xiàn zhǎng",少女:"shào nǚ",路上:"lù shang",只怕:"zhǐ pà",能量:"néng liàng",储量:"chǔ liàng",供应:"gōng yìng",挑战:"tiǎo zhàn",西藏:"xī zàng",记得:"jì de",总量:"zǒng liàng",当真:"dàng zhēn",将士:"jiàng shì",差别:"chā bié",较为:"jiào wéi",长老:"zhǎng lǎo",大夫:"dài fu",差异:"chā yì",懂得:"dǒng de",尽量:"jǐn liàng",模样:"mú yàng",的确:"dí què",为首:"wéi shǒu",便宜:"pián yi",更名:"gēng míng",石头:"shí tou",州长:"zhōu zhǎng",为止:"wéi zhǐ",漂亮:"piào liang",炮弹:"pào dàn",藏族:"zàng zú",角色:"jué sè",当作:"dàng zuò",尽快:"jǐn kuài",人为:"rén wéi",重复:"chóng fù",胡同:"hú tòng",差距:"chā jù",弟兄:"dì xiong",大将:"dà jiàng",睡觉:"shuì jiào",一觉:"yí jiào",团长:"tuán zhǎng",队长:"duì zhǎng",区长:"qū zhǎng",难得:"nán dé",丫头:"yā tou",会长:"huì zhǎng",弟弟:"dì di",王爷:"wáng ye",重量:"zhòng liàng",誉为:"yù wéi",家伙:"jiā huo",华山:"huà shān",椅子:"yǐ zi",流量:"liú liàng",长大:"zhǎng dà",勉强:"miǎn qiǎng",会计:"kuài jì",过分:"guò fèn",济南:"jǐ nán",调动:"diào dòng",燕京:"yān jīng",少将:"shào jiàng",中毒:"zhòng dú",晓得:"xiǎo de",变更:"biàn gēng",打更:"dǎ gēng",认得:"rèn de",苹果:"píng guǒ",念头:"niàn tou",挣扎:"zhēng zhá",三藏:"sān zàng",剥削:"bō xuē",丞相:"chéng xiàng",少量:"shǎo liàng",寻思:"xún si",夺得:"duó dé",干线:"gàn xiàn",呼吁:"hū yù",处罚:"chǔ fá",长官:"zhǎng guān",柏林:"bó lín",亲戚:"qīn qi",身分:"shēn fèn",胳膊:"gē bo",着手:"zhuó shǒu",炸弹:"zhà dàn",咳嗽:"ké sou",叶子:"yè zi",外长:"wài zhǎng",供给:"gōng jǐ",师长:"shī zhǎng",变量:"biàn liàng",应有:"yīng yǒu",下载:"xià zài",乐器:"yuè qì",间接:"jiàn jiē",底下:"dǐ xià",打扮:"dǎ bàn",子弹:"zǐ dàn",弹药:"dàn yào",热量:"rè liàng",削弱:"xuē ruò",骨干:"gǔ gàn",容量:"róng liàng",模糊:"mó hu",转动:"zhuàn dòng",称呼:"chēng hu",科长:"kē zhǎng",处置:"chǔ zhì",着重:"zhuó zhòng",着急:"zháo jí",强迫:"qiǎng pò",庭长:"tíng zhǎng",首相:"shǒu xiàng",喇嘛:"lǎ ma",镇长:"zhèn zhǎng",只管:"zhǐ guǎn",重重:"chóng chóng",免得:"miǎn de",着实:"zhuó shí",度假:"dù jià",真相:"zhēn xiàng",相貌:"xiàng mào",处分:"chǔ fèn",委屈:"wěi qu",为期:"wéi qī",伯伯:"bó bo",伯子:"bǎi zi",圈子:"quān zi",见识:"jiàn shi",笼罩:"lǒng zhào",与会:"yù huì",都督:"dū du",都市:"dū shì",成都:"chéng dū",首都:"shǒu dū",帝都:"dì dū",王都:"wáng dū",东都:"dōng dū",都护:"dū hù",都城:"dū chéng",建都:"jiàn dū",迁都:"qiān dū",故都:"gù dū",定都:"dìng dū",中都:"zhōng dū",六安:"lù ān",宰相:"zǎi xiàng",较量:"jiào liàng",对称:"duì chèn",总长:"zǒng zhǎng",相公:"xiàng gong",空白:"kòng bái",打量:"dǎ liang",水分:"shuǐ fèn",舌头:"shé tou",没收:"mò shōu",行李:"xíng li",判处:"pàn chǔ",散文:"sǎn wén",处境:"chǔ jìng",孙子:"sūn zi",拳头:"quán tou",打发:"dǎ fā",组长:"zǔ zhǎng",骨头:"gǔ tou",宁可:"nìng kě",更换:"gēng huàn",薄弱:"bó ruò",还原:"huán yuán",重修:"chóng xiū",重来:"chóng lái",只顾:"zhǐ gù",爱好:"ài hào",馒头:"mán tou",军长:"jūn zhǎng",首长:"shǒu zhǎng",厂长:"chǎng zhǎng",司长:"sī zhǎng",长子:"zhǎng zǐ",强劲:"qiáng jìng",恰当:"qià dàng",头儿:"tóu er",站长:"zhàn zhǎng",折腾:"zhē teng",相处:"xiāng chǔ",统率:"tǒng shuài",中将:"zhōng jiàng",命中:"mìng zhòng",名将:"míng jiàng",木头:"mù tou",动弹:"dòng tan",地壳:"dì qiào",干活:"gàn huó",少爷:"shào ye",水量:"shuǐ liàng",补给:"bǔ jǐ",尾巴:"wěi ba",来得:"lái de",好奇:"hào qí",钥匙:"yào shi",当做:"dàng zuò",沉着:"chén zhuó",哑巴:"yǎ ba",车子:"chē zi",上将:"shàng jiàng",恶心:"ě xīn",担子:"dàn zi",应届:"yīng jiè",主角:"zhǔ jué",运转:"yùn zhuǎn",兄长:"xiōng zhǎng",格式:"gé shì",正月:"zhēng yuè",营长:"yíng zhǎng",当成:"dàng chéng",女婿:"nǚ xu",咽喉:"yān hóu",重阳:"chóng yáng",化为:"huà wéi",吐蕃:"tǔ bō",钻进:"zuān jìn",乐队:"yuè duì",亮相:"liàng xiàng",被子:"bèi zi",舍得:"shě de",杉木:"shā mù",击中:"jī zhòng",排长:"pái zhǎng",假期:"jià qī",分量:"fèn liàng",数次:"shù cì",提防:"dī fáng",吆喝:"yāo he",查处:"chá chǔ",量子:"liàng zǐ",里头:"lǐ tou",调研:"diào yán",伺候:"cì hou",重申:"chóng shēn",枕头:"zhěn tou",拚命:"pīn mìng",社长:"shè zhǎng",归还:"guī huán",批量:"pī liàng",畜牧:"xù mù",点着:"diǎn zháo",甚为:"shèn wéi",小将:"xiǎo jiàng",着眼:"zhuó yǎn",处死:"chǔ sǐ",厌恶:"yàn wù",鼓乐:"gǔ yuè",树干:"shù gàn",秘鲁:"bì lǔ",大方:"dà fāng",外头:"wài tou",班长:"bān zhǎng",星宿:"xīng xiù",宁愿:"nìng yuàn",钦差:"qīn chāi",为数:"wéi shù",勾当:"gòu dàng",削减:"xuē jiǎn",间谍:"jiàn dié",埋怨:"mán yuàn",结实:"jiē shi",计量:"jì liáng",淹没:"yān mò",村长:"cūn zhǎng",连长:"lián zhǎng",自给:"zì jǐ",武将:"wǔ jiàng",温差:"wēn chā",直奔:"zhí bèn",供求:"gōng qiú",剂量:"jì liàng",道长:"dào zhǎng",泄露:"xiè lòu",王八:"wáng ba",切割:"qiē gē",间隔:"jiàn gé",一晃:"yì huǎng",长假:"cháng jià",令狐:"líng hú",为害:"wéi hài",句子:"jù zi",偿还:"cháng huán",疙瘩:"gē da",燕山:"yān shān",堵塞:"dǔ sè",夺冠:"duó guàn",扎实:"zhā shi",电荷:"diàn hè",看守:"kān shǒu",复辟:"fù bì",郁闷:"yù mèn",尽早:"jǐn zǎo",切断:"qiē duàn",指头:"zhǐ tou",为生:"wéi shēng",畜生:"chù sheng",切除:"qiē chú",着力:"zhuó lì",着想:"zhuó xiǎng",级差:"jí chā",投奔:"tóu bèn",棍子:"gùn zi",含糊:"hán hu",少妇:"shào fù",兴致:"xìng zhì",纳闷:"nà mèn",干流:"gàn liú",卷起:"juǎn qǐ",扇子:"shàn zi",更改:"gēng gǎi",笼络:"lǒng luò",喇叭:"lǎ ba",载荷:"zài hè",妥当:"tuǒ dàng",为难:"wéi nán",着陆:"zhuó lù",燕子:"yàn zi",干吗:"gàn má",白发:"bái fà",总得:"zǒng děi",夹击:"jiā jī",曝光:"bào guāng",曲调:"qǔ diào",相机:"xiàng jī",叫化:"jiào huà",角逐:"jué zhú",啊哟:"ā yō",载重:"zài zhòng",长辈:"zhǎng bèi",出差:"chū chāi",垛口:"duǒ kǒu",撇开:"piē kāi",厅长:"tīng zhǎng",组分:"zǔ fèn",误差:"wù chā",家当:"jiā dàng",传记:"zhuàn jì",个子:"gè zi",铺设:"pū shè",干事:"gàn shì",杆菌:"gǎn jūn",定量:"dìng liàng",运载:"yùn zài",会儿:"huì er",酋长:"qiú zhǎng",重返:"chóng fǎn",差额:"chā é",露面:"lòu miàn",钻研:"zuān yán",大城:"dài chéng",上当:"shàng dàng",销量:"xiāo liàng",作坊:"zuō fang",照相:"zhào xiàng",哎呀:"āi yā",调集:"diào jí",看中:"kàn zhòng",议长:"yì zhǎng",风筝:"fēng zheng",辟邪:"bì xié",空隙:"kòng xì",更迭:"gēng dié",偏差:"piān chā",声调:"shēng diào",适量:"shì liàng",屯子:"tún zi",无量:"wú liàng",空地:"kòng dì",调度:"diào dù",散射:"sǎn shè",创伤:"chuāng shāng",海参:"hǎi shēn",满载:"mǎn zài",重叠:"chóng dié",落差:"luò chā",单调:"dān diào",老将:"lǎo jiàng",人参:"rén shēn",间断:"jiàn duàn",重现:"chóng xiàn",夹杂:"jiā zá",调用:"diào yòng",萝卜:"luó bo",附着:"fù zhuó",应声:"yìng shēng",主将:"zhǔ jiàng",罪过:"zuì guo",咀嚼:"jǔ jué",为政:"wéi zhèng",过量:"guò liàng",乐曲:"yuè qǔ",负荷:"fù hè",枪弹:"qiāng dàn",悄然:"qiǎo rán",处方:"chǔ fāng",悄声:"qiǎo shēng",曲子:"qǔ zi",情调:"qíng diào",挑衅:"tiǎo xìn",代为:"dài wéi",了结:"liǎo jié",打中:"dǎ zhòng",酒吧:"jiǔ bā",懒得:"lǎn de",增量:"zēng liàng",衣着:"yī zhuó",部将:"bù jiàng",要塞:"yào sài",茶几:"chá jī",杠杆:"gàng gǎn",出没:"chū mò",鲜有:"xiǎn yǒu",间隙:"jiàn xì",重担:"zhòng dàn",重演:"chóng yǎn",重试:"chóng shì",应酬:"yìng chou",只当:"zhǐ dāng",毋宁:"wú nìng",包扎:"bāo zā",前头:"qián tou",卷烟:"juǎn yān",非得:"fēi děi",弹道:"dàn dào",杆子:"gān zi",门将:"mén jiàng",后头:"hòu tou",喝彩:"hè cǎi",暖和:"nuǎn huo",累积:"lěi jī",调遣:"diào qiǎn",倔强:"jué jiàng",宝藏:"bǎo zàng",丧事:"sāng shì",约莫:"yuē mo",纤夫:"qiàn fū",更替:"gēng tì",装载:"zhuāng zài",背包:"bēi bāo",帖子:"tiě zi",松散:"sōng sǎn",呼喝:"hū hè",可恶:"kě wù",自转:"zì zhuàn",供电:"gōng diàn",反省:"fǎn xǐng",坦率:"tǎn shuài",苏打:"sū dá",本分:"běn fèn",落得:"luò de",鄙薄:"bǐ bó",相间:"xiāng jiàn",单薄:"dān bó",混蛋:"hún dàn",贞观:"zhēn guān",附和:"fù hè",能耐:"néng nài",吓唬:"xià hu",未了:"wèi liǎo",引着:"yǐn zháo",抽调:"chōu diào",沙子:"shā zi",席卷:"xí juǎn",标的:"biāo dì",别扭:"biè niu",思量:"sī liang",喝采:"hè cǎi",论语:"lún yǔ",盖子:"gài zi",分外:"fèn wài",弄堂:"lòng táng",乐舞:"yuè wǔ",雨量:"yǔ liàng",毛发:"máo fà",差遣:"chāi qiǎn",背负:"bēi fù",转速:"zhuàn sù",声乐:"shēng yuè",夹攻:"jiā gōng",供水:"gōng shuǐ",主干:"zhǔ gàn",惩处:"chéng chǔ",长相:"zhǎng xiàng",公差:"gōng chāi",榴弹:"liú dàn",省得:"shěng de",条子:"tiáo zi",重围:"chóng wéi",阻塞:"zǔ sè",劲风:"jìng fēng",纠葛:"jiū gé",颠簸:"diān bǒ",点中:"diǎn zhòng",重创:"zhòng chuāng",姥姥:"lǎo lao",迷糊:"mí hu",公家:"gōng jia",几率:"jī lǜ",苦闷:"kǔ mèn",度量:"dù liàng",差错:"chā cuò",暑假:"shǔ jià",参差:"cēn cī",搭载:"dā zài",助长:"zhù zhǎng",相称:"xiāng chèn",红晕:"hóng yùn",舍命:"shě mìng",喜好:"xǐ hào",列传:"liè zhuàn",劲敌:"jìng dí",蛤蟆:"há ma",请假:"qǐng jià",钉子:"dīng zi",沉没:"chén mò",高丽:"gāo lí",休假:"xiū jià",无为:"wú wéi",巴结:"bā jie",了得:"liǎo dé",变相:"biàn xiàng",核弹:"hé dàn",亲家:"qìng jia",承载:"chéng zài",喝问:"hè wèn",还击:"huán jī",交还:"jiāo huán",将令:"jiàng lìng",单于:"chán yú",空缺:"kòng quē",绿林:"lù lín",胆量:"dǎn liàng",执着:"zhí zhuó",低调:"dī diào",闭塞:"bì sè",轻薄:"qīng bó",得当:"dé dàng",占卜:"zhān bǔ",扫帚:"sào zhou",龟兹:"qiū cí",年长:"nián zhǎng",外传:"wài zhuàn",头子:"tóu zi",裁缝:"cái feng",礼乐:"lǐ yuè",血泊:"xuè pō",散乱:"sǎn luàn",动量:"dòng liàng",倒腾:"dǎo teng",取舍:"qǔ shě",咱家:"zán jiā",长发:"cháng fà",爪哇:"zhǎo wā",弹壳:"dàn ké",省悟:"xǐng wù",嚷嚷:"rāng rang",连累:"lián lèi",应得:"yīng dé",族长:"zú zhǎng",柜子:"guì zi",擂鼓:"léi gǔ",眩晕:"xuàn yùn",调配:"tiáo pèi",躯干:"qū gàn",差役:"chāi yì",坎坷:"kǎn kě",少儿:"shào ér",乐团:"yuè tuán",养分:"yǎng fèn",退还:"tuì huán",格调:"gé diào",语调:"yǔ diào",音调:"yīn diào",乐府:"yuè fǔ",古朴:"gǔ pǔ",打点:"dǎ diǎn",差使:"chāi shǐ",匀称:"yún chèn",瘦削:"shòu xuē",膏药:"gāo yao",吞没:"tūn mò",调任:"diào rèn",散居:"sǎn jū",上头:"shàng tóu",风靡:"fēng mǐ",放假:"fàng jià",估量:"gū liang",失当:"shī dàng",中弹:"zhòng dàn",妄为:"wàng wéi",长者:"zhǎng zhě",起哄:"qǐ hòng",末了:"mò liǎo",相声:"xiàng sheng",校正:"jiào zhèng",劝降:"quàn xiáng",矢量:"shǐ liàng",沉闷:"chén mèn",给与:"jǐ yǔ",解法:"jiě fǎ",塞外:"sài wài",将校:"jiàng xiào",嗜好:"shì hào",没落:"mò luò",朴刀:"pō dāo",片子:"piān zi",切削:"qiē xiāo",弹丸:"dàn wán",稀薄:"xī bó",亏得:"kuī dé",间歇:"jiàn xiē",翘首:"qiáo shǒu",色调:"sè diào",处决:"chǔ jué",表率:"biǎo shuài",尺子:"chǐ zi",招降:"zhāo xiáng",称职:"chèn zhí",斗篷:"dǒu peng",铺子:"pù zi",底子:"dǐ zi",负载:"fù zài",干警:"gàn jǐng",倒数:"dào shǔ",将官:"jiàng guān",锄头:"chú tou",归降:"guī xiáng",疟疾:"nüè ji",唠叨:"láo dao",限量:"xiàn liàng",屏息:"bǐng xī",重逢:"chóng féng",器乐:"qì yuè",氢弹:"qīng dàn",脖颈:"bó gěng",妃子:"fēi zi",处事:"chǔ shì",参量:"cān liàng",轻率:"qīng shuài",缥缈:"piāo miǎo",中奖:"zhòng jiǎng",才干:"cái gàn",施舍:"shī shě",卷子:"juàn zi",游说:"yóu shuì",巷子:"xiàng zi",膀胱:"páng guāng",切勿:"qiè wù",看管:"kān guǎn",风头:"fēng tou",精干:"jīng gàn",高差:"gāo chā",恐吓:"kǒng hè",扁担:"biǎn dàn",给养:"jǐ yǎng",格子:"gé zi",供需:"gōng xū",反差:"fǎn chā",飞弹:"fēi dàn",微薄:"wēi bó",发型:"fà xíng",即兴:"jí xìng",攒动:"cuán dòng",间或:"jiàn huò",浅薄:"qiǎn bó",乐章:"yuè zhāng",顺差:"shùn chā",调子:"diào zi",相位:"xiàng wèi",转子:"zhuàn zǐ",劲旅:"jìng lǚ",咔嚓:"kā chā",了事:"liǎo shì",转悠:"zhuàn you",当铺:"dàng pù",爪子:"zhuǎ zi",单子:"dān zi",好战:"hào zhàn",燕麦:"yàn mài",只许:"zhǐ xǔ",干练:"gàn liàn",女将:"nǚ jiàng",酒量:"jiǔ liàng",划船:"huá chuán",伎俩:"jì liǎng",挑拨:"tiǎo bō",少校:"shào xiào",着落:"zhuó luò",憎恶:"zēng wù",刻薄:"kè bó",要挟:"yāo xié",用处:"yòng chu",还手:"huán shǒu",模具:"mú jù",执著:"zhí zhuó",喝令:"hè lìng",保长:"bǎo zhǎng",吸着:"xī zhe",症结:"zhēng jié",公转:"gōng zhuàn",校勘:"jiào kān",重提:"chóng tí",扫兴:"sǎo xìng",铺盖:"pū gài",长史:"zhǎng shǐ",差价:"chā jià",压根:"yà gēn",怔住:"zhèng zhù",应允:"yīng yǔn",切入:"qiē rù",战将:"zhàn jiàng",年少:"nián shào",舍身:"shě shēn",执拗:"zhí niù",处世:"chǔ shì",中风:"zhòng fēng",等量:"děng liàng",放量:"fàng liàng",腔调:"qiāng diào",老少:"lǎo shào",没入:"mò rù",瓜葛:"guā gé",将帅:"jiàng shuài",车载:"chē zài",窝囊:"wō nang",长进:"zhǎng jìn",可汗:"kè hán",并州:"bīng zhōu",供销:"gōng xiāo",切片:"qiē piàn",差事:"chāi shì",知会:"zhī hui",鹰爪:"yīng zhǎo",处女:"chǔ nǚ",切磋:"qiē cuō",日头:"rì tou",押解:"yā jiè",滋长:"zī zhǎng",道观:"dào guàn",脚色:"jué sè",当量:"dāng liàng",婆家:"pó jia",缘分:"yuán fèn",空闲:"kòng xián",好色:"hào sè",怒喝:"nù hè",笼统:"lǒng tǒng",边塞:"biān sài",何曾:"hé céng",重合:"chóng hé",零散:"líng sǎn",轰隆:"hōng lōng",化子:"huà zi",内蒙:"nèi měng",数落:"shǔ luò",逆差:"nì chā",牟利:"móu lì",栅栏:"zhà lan",中标:"zhòng biāo",调档:"diào dàng",佝偻:"gōu lóu",场子:"chǎng zi",甲壳:"jiǎ qiào",重温:"chóng wēn",炮制:"páo zhì",返还:"fǎn huán",自传:"zì zhuàn",高调:"gāo diào",殷红:"yān hóng",固着:"gù zhuó",强求:"qiǎng qiú",本相:"běn xiàng",骄横:"jiāo hèng",草率:"cǎo shuài",气闷:"qì mèn",着色:"zhuó sè",宁肯:"nìng kěn",兴头:"xìng tou",拘泥:"jū nì",夹角:"jiā jiǎo",发髻:"fà jì",猛将:"měng jiàng",约摸:"yuē mo",拖累:"tuō lěi",呢绒:"ní róng",钻探:"zuān tàn",夹层:"jiā céng",落魄:"luò pò",巷道:"hàng dào",运量:"yùn liàng",解闷:"jiě mèn",空儿:"kòng er",估摸:"gū mo",好客:"hào kè",钻孔:"zuān kǒng",糊弄:"hù nòng",荥阳:"xíng yáng",烦闷:"fán mèn",仓卒:"cāng cù",分叉:"fēn chà",厂子:"chǎng zi",小调:"xiǎo diào",少阳:"shào yáng",受降:"shòu xiáng",染坊:"rǎn fáng",胳臂:"gē bei",将门:"jiàng mén",模板:"mú bǎn",配给:"pèi jǐ",为伍:"wéi wǔ",跟头:"gēn tou",划算:"huá suàn",累赘:"léi zhui",哄笑:"hōng xiào",晕眩:"yūn xuàn",干掉:"gàn diào",缝制:"féng zhì",难处:"nán chù",着意:"zhuó yì",蛮横:"mán hèng",奇数:"jī shù",短发:"duǎn fà",生还:"shēng huán",还清:"huán qīng",看护:"kān hù",直率:"zhí shuài",奏乐:"zòu yuè",载客:"zài kè",专横:"zhuān hèng",湮没:"yān mò",空格:"kòng gé",铺垫:"pū diàn",良将:"liáng jiàng",哗啦:"huā lā",散漫:"sǎn màn",脱发:"tuō fà",送还:"sòng huán",埋没:"mái mò",累及:"lěi jí",薄雾:"bó wù",调离:"diào lí",舌苔:"shé tāi",机长:"jī zhǎng",栓塞:"shuān sè",配角:"pèi jué",切口:"qiē kǒu",创口:"chuāng kǒu",哈欠:"hā qian",实弹:"shí dàn",铺平:"pū píng",哈达:"hǎ dá",懒散:"lǎn sǎn",实干:"shí gàn",填空:"tián kòng",刁钻:"diāo zuān",乐师:"yuè shī",量变:"liàng biàn",诱降:"yòu xiáng",搪塞:"táng sè",征调:"zhēng diào",夹道:"jiā dào",干咳:"gān ké",止咳:"zhǐ ké",乐工:"yuè gōng",划过:"huá guò",着火:"zháo huǒ",更正:"gēng zhèng",给付:"jǐ fù",空子:"kòng zi",哪吒:"né zhā",正着:"zhèng zháo",刷子:"shuā zi",丧葬:"sāng zàng",夹带:"jiā dài",安分:"ān fèn",中意:"zhòng yì",长孙:"zhǎng sūn",校订:"jiào dìng",卷曲:"juǎn qū",载运:"zài yùn",投弹:"tóu dàn",柞蚕:"zuò cán",份量:"fèn liàng",调换:"diào huàn",了然:"liǎo rán",咧嘴:"liě zuǐ",典当:"diǎn dàng",寒假:"hán jià",长兄:"zhǎng xiōng",给水:"jǐ shuǐ",须发:"xū fà",枝干:"zhī gàn",属相:"shǔ xiàng",哄抢:"hōng qiǎng",刻划:"kè huà",塞子:"sāi zi",单干:"dān gàn",还乡:"huán xiāng",兆头:"zhào tou",寺观:"sì guàn",督率:"dū shuài",啊哈:"ā ha",割舍:"gē shě",抹布:"mā bù",好恶:"hào wù",下处:"xià chǔ",消长:"xiāo zhǎng",离间:"lí jiàn",准头:"zhǔn tou",校对:"jiào duì",什物:"shí wù",番禺:"pān yú",佛爷:"fó ye",吗啡:"mǎ fēi",盐分:"yán fèn",虎将:"hǔ jiàng",薄荷:"bò he",独处:"dú chǔ",空位:"kòng wèi",铺路:"pū lù",乌拉:"wū lā",调回:"diào huí",来头:"lái tou",闲散:"xián sǎn",胶卷:"jiāo juǎn",冒失:"mào shi",干劲:"gàn jìn",弦乐:"xián yuè",相国:"xiàng guó",丹参:"dān shēn",助兴:"zhù xìng",铺开:"pū kāi",次长:"cì zhǎng",发卡:"fà qiǎ",拮据:"jié jū",刹车:"shā chē",生发:"shēng fà",重播:"chóng bō",缝合:"féng hé",音量:"yīn liàng",少尉:"shào wèi",冲压:"chòng yā",苍劲:"cāng jìng",厚薄:"hòu báo",威吓:"wēi hè",外相:"wài xiàng",呼号:"hū háo",着迷:"zháo mí",挑担:"tiāo dàn",纹路:"wén lù",还俗:"huán sú",强横:"qiáng hèng",着数:"zhāo shù",降顺:"xiáng shùn",挑明:"tiǎo míng",眯缝:"mī feng",分内:"fèn nèi",更衣:"gēng yī",软和:"ruǎn huo",尽兴:"jìn xìng",号子:"hào zi",爪牙:"zhǎo yá",败将:"bài jiàng",猜中:"cāi zhòng",结扎:"jié zā",没空:"méi kòng",夹缝:"jiā fèng",拾掇:"shí duo",掺和:"chān huo",簸箕:"bò ji",电量:"diàn liàng",荷载:"hè zǎi",调式:"diào shì",处身:"chǔ shēn",打手:"dǎ shǒu",弹弓:"dàn gōng",横蛮:"hèng mán",能干:"néng gàn",校点:"jiào diǎn",加载:"jiā zài",干校:"gàn xiào",哄传:"hōng chuán",校注:"jiào zhù",淤塞:"yū sè",马扎:"mǎ zhá",月氏:"yuè zhī",高干:"gāo gàn",经传:"jīng zhuàn",曾孙:"zēng sūn",好斗:"hào dòu",关卡:"guān qiǎ",逃奔:"táo bèn",磨蹭:"mó ceng",牟取:"móu qǔ",颤栗:"zhàn lì",蚂蚱:"mà zha",撮合:"cuō he",趔趄:"liè qie",摔打:"shuāi dǎ",台子:"tái zi",分得:"fēn de",粘着:"nián zhuó",采邑:"cài yì",散装:"sǎn zhuāng",婀娜:"ē nuó",兴味:"xìng wèi",行头:"xíng tou",气量:"qì liàng",调运:"diào yùn",处治:"chǔ zhì",乐音:"yuè yīn",充塞:"chōng sè",恫吓:"dòng hè",论调:"lùn diào",相中:"xiāng zhòng",民乐:"mín yuè",炮仗:"pào zhang",丧服:"sāng fú",骁将:"xiāo jiàng",量刑:"liàng xíng",缝补:"féng bǔ",财会:"cái kuài",大干:"dà gàn",历数:"lì shǔ",校场:"jiào chǎng",塞北:"sài běi",识相:"shí xiàng",辱没:"rǔ mò",鲜亮:"xiān liàng",语塞:"yǔ sè",露脸:"lòu liǎn",凉快:"liáng kuai",腰杆:"yāo gǎn",溜达:"liū da",嘎嘎:"gā gā",公干:"gōng gàn",桔梗:"jié gěng",挑逗:"tiǎo dòu",看门:"kān mén",乐歌:"yuè gē",拓片:"tà piàn",挑动:"tiǎo dòng",准将:"zhǔn jiàng",遒劲:"qiú jìng",磨坊:"mò fáng",逶迤:"wēi yí",搅和:"jiǎo huo",摩挲:"mó suō",作弄:"zuò nòng",苗头:"miáo tou",打颤:"dǎ zhàn",大藏:"dà zàng",畜牲:"chù shēng",勾搭:"gōu da",树荫:"shù yīn",树杈:"shù chà",铁杆:"tiě gǎn",将相:"jiàng xiàng",份子:"fèn zi",视差:"shì chā",绿荫:"lǜ yīn",枪杆:"qiāng gǎn",缝纫:"féng rèn",愁闷:"chóu mèn",点将:"diǎn jiàng",华佗:"huà tuó",劲射:"jìng shè",箱笼:"xiāng lǒng",终了:"zhōng liǎo",鬓发:"bìn fà",结巴:"jiē ba",苦干:"kǔ gàn",看家:"kān jiā",正旦:"zhēng dàn",中肯:"zhòng kěn",厦门:"xià mén",东莞:"dōng guǎn",食量:"shí liàng",宫调:"gōng diào",间作:"jiàn zuò",弹片:"dàn piàn",差池:"chā chí",漂白:"piǎo bái",杠子:"gàng zi",调处:"tiáo chǔ",好动:"hào dòng",转炉:"zhuàn lú",屏气:"bǐng qì",夹板:"jiā bǎn",哀乐:"āi yuè",干道:"gàn dào",苦处:"kǔ chù",劈柴:"pǐ chái",长势:"zhǎng shì",天华:"tiān huá",共处:"gòng chǔ",校验:"jiào yàn",出塞:"chū sài",磨盘:"mò pán",萎靡:"wěi mǐ",奔丧:"bēn sāng",唱和:"chàng hè",大调:"dà diào",非分:"fēi fèn",钻营:"zuān yíng",夹子:"jiā zi",超载:"chāo zài",更始:"gēng shǐ",铃铛:"líng dang",披散:"pī sàn",发还:"fā huán",转轮:"zhuàn lún",横财:"hèng cái",泡桐:"pāo tóng",抛撒:"pāo sǎ",天呀:"tiān yā",糊糊:"hū hu",躯壳:"qū qiào",通量:"tōng liàng",奉还:"fèng huán",午觉:"wǔ jiào",闷棍:"mèn gùn",浪头:"làng tou",砚台:"yàn tái",油坊:"yóu fáng",学长:"xué zhǎng",过载:"guò zài",笔调:"bǐ diào",衣被:"yī bèi",畜产:"xù chǎn",调阅:"diào yuè",蛮干:"mán gàn",曾祖:"zēng zǔ",提干:"tí gàn",变调:"biàn diào",覆没:"fù mò",模子:"mú zi",乐律:"yuè lǜ",称心:"chèn xīn",木杆:"mù gān",重印:"chóng yìn",自省:"zì xǐng",提调:"tí diào",看相:"kàn xiàng",芋头:"yù tou",下切:"xià qiē",塞上:"sài shàng",铺张:"pū zhāng",藤蔓:"téng wàn",薄幸:"bó xìng",解数:"xiè shù",褪去:"tuì qù",霰弹:"xiàn dàn",柚木:"yóu mù",痕量:"hén liàng",雅乐:"yǎ yuè",号哭:"háo kū",诈降:"zhà xiáng",猪圈:"zhū juàn",咋舌:"zé shé",铣床:"xǐ chuáng",防弹:"fáng dàn",健将:"jiàn jiàng",丽水:"lí shuǐ",削发:"xuē fà",空当:"kòng dāng",多相:"duō xiàng",鲜见:"xiǎn jiàn",划桨:"huá jiǎng",载波:"zài bō",跳蚤:"tiào zao",俏皮:"qiào pí",吧嗒:"bā dā",结发:"jié fà",了断:"liǎo duàn",同调:"tóng diào",石磨:"shí mò",时差:"shí chā",鼻塞:"bí sè",挑子:"tiāo zi",推磨:"tuī mò",武侯:"wǔ hóu",抹煞:"mǒ shā",调转:"diào zhuǎn",籍没:"jí mò",还债:"huán zhài",调演:"diào yǎn",分划:"fēn huá",奇偶:"jī ǒu",断喝:"duàn hè",闷雷:"mèn léi",狼藉:"láng jí",饭量:"fàn liàng",还礼:"huán lǐ",转调:"zhuǎn diào",星相:"xīng xiàng",手相:"shǒu xiàng",配乐:"pèi yuè",盖头:"gài tou",连杆:"lián gǎn",簿记:"bù jì",刀把:"dāo bà",量词:"liàng cí",名角:"míng jué",步调:"bù diào",校本:"jiào běn",账簿:"zhàng bù",隽永:"juàn yǒng",稍为:"shāo wéi",易传:"yì zhuàn",乐谱:"yuè pǔ",牵累:"qiān lěi",答理:"dā li",喝斥:"hè chì",吟哦:"yín é",干渠:"gàn qú",海量:"hǎi liàng",精当:"jīng dàng",着床:"zhuó chuáng",月相:"yuè xiàng",庶几:"shù jī",宫观:"gōng guàn",论处:"lùn chǔ",征辟:"zhēng bì",厚朴:"hòu pò",介壳:"jiè qiào",吭哧:"kēng chī",咯血:"kǎ xiě",铺陈:"pū chén",重生:"chóng shēng",乐理:"yuè lǐ",哀号:"āi háo",藏历:"zàng lì",刚劲:"gāng jìng",削平:"xuē píng",浓荫:"nóng yīn",城垛:"chéng duǒ",当差:"dāng chāi",正传:"zhèng zhuàn",并处:"bìng chǔ",创面:"chuāng miàn",旦角:"dàn jué",薄礼:"bó lǐ",晃荡:"huàng dang",臊子:"sào zi",家什:"jiā shí",闷头:"mēn tóu",美发:"měi fà",度数:"dù shu",着凉:"zháo liáng",闯将:"chuǎng jiàng",几案:"jī àn",姘头:"pīn tou",差数:"chā shù",散碎:"sǎn suì",壅塞:"yōng sè",寒颤:"hán zhàn",牵强:"qiān qiǎng",无间:"wú jiàn",轮转:"lún zhuàn",号叫:"háo jiào",铺排:"pū pái",降伏:"xiáng fú",轧钢:"zhá gāng",东阿:"dōng ē",病假:"bìng jià",累加:"lěi jiā",梗塞:"gěng sè",弹夹:"dàn jiā",钻心:"zuān xīn",晃眼:"huǎng yǎn",魔爪:"mó zhǎo",标量:"biāo liàng",憋闷:"biē mèn",猜度:"cāi duó",处士:"chǔ shì",官差:"guān chāi",讨还:"tǎo huán",长门:"cháng mén",馏分:"liú fēn",里弄:"lǐ lòng",色相:"sè xiàng",雅兴:"yǎ xìng",角力:"jué lì",弹坑:"dàn kēng",枝杈:"zhī chà",夹具:"jiā jù",处刑:"chǔ xíng",悍将:"hàn jiàng",好学:"hào xué",好好:"hǎo hǎo",银发:"yín fà",扫把:"sào bǎ",法相:"fǎ xiàng",贵干:"guì gàn",供气:"gōng qì",空余:"kòng yú",捆扎:"kǔn zā",瘠薄:"jí bó",浆糊:"jiàng hu",嘎吱:"gā zhī",调令:"diào lìng",法帖:"fǎ tiè",淋病:"lìn bìng",调派:"diào pài",转盘:"zhuàn pán",供稿:"gōng gǎo",差官:"chāi guān",忧闷:"yōu mèn",教长:"jiào zhǎng",重唱:"chóng chàng",酒兴:"jiǔ xìng",乐坛:"yuè tán",花呢:"huā ní",叱喝:"chì hè",膀臂:"bǎng bì",得空:"dé kòng",转圈:"zhuàn quān",横暴:"hèng bào",哄抬:"hōng tái",引吭:"yǐn háng",载货:"zài huò",中计:"zhòng jì",官长:"guān zhǎng",相面:"xiàng miàn",看头:"kàn tou",盼头:"pàn tou",意兴:"yì xìng",军乐:"jūn yuè",累次:"lěi cì",骨嘟:"gǔ dū",燕赵:"yān zhào",报丧:"bào sāng",弥撒:"mí sa",挨斗:"ái dòu",扁舟:"piān zhōu",丑角:"chǒu jué",吊丧:"diào sāng",强将:"qiáng jiàng",重奏:"chóng zòu",发辫:"fà biàn",着魔:"zháo mó",着法:"zhāo fǎ",盛放:"shèng fàng",填塞:"tián sè",凶横:"xiōng hèng",稽首:"qǐ shǒu",碑帖:"bēi tiè",冲量:"chōng liàng",发菜:"fà cài",假发:"jiǎ fà",翻卷:"fān juǎn",小量:"xiǎo liàng",胶着:"jiāo zhuó",里子:"lǐ zi",调调:"diào diao",散兵:"sǎn bīng",高挑:"gāo tiǎo",播撒:"bō sǎ",夹心:"jiā xīn",扇动:"shān dòng",叨扰:"tāo rǎo",霓裳:"ní cháng",捻子:"niǎn zi",弥缝:"mí féng",撒布:"sǎ bù",场院:"cháng yuàn",省亲:"xǐng qīn",提拉:"tí lā",惯量:"guàn liàng",强逼:"qiáng bī",强征:"qiáng zhēng",晕车:"yùn chē",数道:"shù dào",带累:"dài lèi",拓本:"tà běn",嫌恶:"xián wù",宿将:"sù jiàng",龟裂:"jūn liè",缠夹:"chán jiā",发式:"fà shì",隔扇:"gé shàn",天分:"tiān fèn",癖好:"pǐ hào",四通:"sì tōng",白术:"bái zhú",划伤:"huá shāng",角斗:"jué dòu",听差:"tīng chāi",岁差:"suì chā",丧礼:"sāng lǐ",脉脉:"mò mò",削瘦:"xuē shòu",撒播:"sǎ bō",莎草:"suō cǎo",犍为:"qián wéi",调头:"diào tóu",龙卷:"lóng juǎn",外调:"wài diào",字帖:"zì tiè",卷发:"juǎn fà",揣度:"chuǎi duó",洋相:"yáng xiàng",散光:"sǎn guāng",骨碌:"gū lu",薄命:"bó mìng",笼头:"lóng tóu",咽炎:"yān yán",碌碡:"liù zhou",片儿:"piàn er",纤手:"qiàn shǒu",散体:"sǎn tǐ",内省:"nèi xǐng",强留:"qiáng liú",解送:"jiè sòng",反间:"fǎn jiàn",少壮:"shào zhuàng",留空:"liú kōng",告假:"gào jià",咳血:"ké xuè",薄暮:"bó mù",铺轨:"pū guǐ",磨削:"mó xuē",治丧:"zhì sāng",叉子:"chā zi",哄动:"hōng dòng",蛾子:"é zi",出落:"chū luò",股长:"gǔ zhǎng",贵处:"guì chù",还魂:"huán hún",例假:"lì jià",刹住:"shā zhù",身量:"shēn liàng",同好:"tóng hào",模量:"mó liàng",更生:"gēng shēng",服丧:"fú sāng",率直:"shuài zhí",字模:"zì mú",散架:"sǎn jià",答腔:"dā qiāng",交恶:"jiāo wù",薄情:"bó qíng",眼泡:"yǎn pāo",袅娜:"niǎo nuó",草垛:"cǎo duò",冲劲:"chòng jìn",呢喃:"ní nán",切中:"qiè zhòng",挑灯:"tiǎo dēng",还愿:"huán yuàn",激将:"jī jiàng",更鼓:"gēng gǔ",没药:"mò yào",败兴:"bài xìng",切面:"qiē miàn",散户:"sǎn hù",累进:"lěi jìn",背带:"bēi dài",秤杆:"chèng gǎn",碾坊:"niǎn fáng",簿子:"bù zi",扳手:"bān shǒu",铅山:"yán shān",儒将:"rú jiàng",重光:"chóng guāng",剪发:"jiǎn fà",长上:"zhǎng shàng",小传:"xiǎo zhuàn",压轴:"yā zhòu",弱冠:"ruò guàn",花卷:"huā juǎn",横祸:"hèng huò",夹克:"jiā kè",光晕:"guāng yùn",披靡:"pī mǐ",对调:"duì diào",夹持:"jiā chí",空额:"kòng é",平调:"píng diào",铺床:"pū chuáng",丧钟:"sāng zhōng",作乐:"zuò lè",少府:"shào fǔ",数数:"shuò shuò",奔头:"bèn tou",进给:"jìn jǐ",率性:"shuài xìng",乐子:"lè zi",绑扎:"bǎng zā",挑唆:"tiǎo suō",漂洗:"piǎo xǐ",夹墙:"jiā qiáng",咳喘:"ké chuǎn",乜斜:"miē xie",错处:"cuò chù",闷酒:"mèn jiǔ",时调:"shí diào",重孙:"chóng sūn",经幢:"jīng chuáng",圩场:"xū chǎng",调门:"diào mén",花头:"huā tóu",划拉:"huá la",套色:"tào shǎi",粗率:"cū shuài",相率:"xiāng shuài",款识:"kuǎn zhì",吁请:"yù qǐng",荫蔽:"yīn bì",文蛤:"wén gé",嘀嗒:"dī dā",调取:"diào qǔ",交差:"jiāo chāi",落子:"luò zǐ",相册:"xiàng cè",絮叨:"xù dao",落发:"luò fà",异相:"yì xiàng",浸没:"jìn mò",角抵:"jué dǐ",卸载:"xiè zài",春卷:"chūn juǎn",扎挣:"zhá zheng",畜养:"xù yǎng",吡咯:"bǐ luò",垛子:"duò zi",恶少:"è shào",发际:"fà jì",红苕:"hóng sháo",糨糊:"jiàng hu",哭丧:"kū sāng",稍息:"shào xī",晕船:"yùn chuán",校样:"jiào yàng",外差:"wài chā",脚爪:"jiǎo zhǎo",铺展:"pū zhǎn",芫荽:"yán sui",夹紧:"jiā jǐn",尿泡:"suī pào",丧乱:"sāng luàn",凶相:"xiōng xiàng",华发:"huá fà",打场:"dǎ cháng",云量:"yún liàng",正切:"zhèng qiē",划拳:"huá quán",划艇:"huá tǐng",评传:"píng zhuàn",拉纤:"lā qiàn",句读:"jù dòu",散剂:"sǎn jì",骨殖:"gǔ shi",塞音:"sè yīn",铺叙:"pū xù",阏氏:"yān zhī",冷颤:"lěng zhàn",煞住:"shā zhù",少男:"shào nán",管乐:"guǎn yuè",号啕:"háo táo",纳降:"nà xiáng",拥塞:"yōng sè",万乘:"wàn shèng",杆儿:"gǎn ér",葛藤:"gé téng",簿籍:"bù jí",皮夹:"pí jiā",校准:"jiào zhǔn",允当:"yǔn dàng",器量:"qì liàng",选调:"xuǎn diào",扮相:"bàn xiàng",干才:"gàn cái",基干:"jī gàn",割切:"gē qiē",国乐:"guó yuè",卡壳:"qiǎ ké",辟谷:"bì gǔ",磨房:"mò fáng",咿呀:"yī yā",芥末:"jiè mo",薄技:"bó jì",产假:"chǎn jià",诗兴:"shī xìng",重出:"chóng chū",转椅:"zhuàn yǐ",酌量:"zhuó liang",簿册:"bù cè",藏青:"zàng qīng",的士:"dī shì",调人:"diào rén",解元:"jiè yuán",茎干:"jīng gàn",巨量:"jù liàng",榔头:"láng tou",率真:"shuài zhēn",喷香:"pèn xiāng",锁钥:"suǒ yuè",虾蟆:"há má",相图:"xiàng tú",兴会:"xìng huì",灶头:"zào tóu",重婚:"chóng hūn",钻洞:"zuān dòng",忖度:"cǔn duó",党参:"dǎng shēn",调温:"diào wēn",杆塔:"gān tǎ",葛布:"gé bù",拱券:"gǒng xuàn",夹生:"jiā shēng",露馅:"lòu xiàn",恰切:"qià qiè",散见:"sǎn jiàn",哨卡:"shào qiǎ",烫发:"tàng fà",体量:"tǐ liàng",挺括:"tǐng kuò",系带:"jì dài",相士:"xiàng shì",羊圈:"yáng juàn",转矩:"zhuàn jǔ",吧台:"bā tái",苍术:"cāng zhú",菲薄:"fěi bó",蛤蚧:"gé jiè",蛤蜊:"gé lí",瓜蔓:"guā wàn",怪相:"guài xiàng",临帖:"lín tiè",女红:"nǚ gōng",刨床:"bào chuáng",翘楚:"qiáo chǔ",数九:"shǔ jiǔ",谈兴:"tán xìng",雄劲:"xióng jìng",扎染:"zā rǎn",遮荫:"zhē yīn",周正:"zhōu zhèng",赚头:"zhuàn tou",扒手:"pá shǒu",搀和:"chān huo",诚朴:"chéng pǔ",肚量:"dù liàng",干结:"gān jié",工尺:"gōng chě",家累:"jiā lěi",曲水:"qū shuǐ",沙参:"shā shēn",挑花:"tiǎo huā",阿门:"ā mén",背篓:"bēi lǒu",瘪三:"biē sān",裁处:"cái chǔ",创痛:"chuāng tòng",福相:"fú xiàng",更动:"gēng dòng",豪兴:"háo xìng",还阳:"huán yáng",还嘴:"huán zuǐ",借调:"jiè diào",卷云:"juǎn yún",流弹:"liú dàn",想头:"xiǎng tou",削价:"xuē jià",校阅:"jiào yuè",雅量:"yǎ liàng",别传:"bié zhuàn",薄酒:"bó jiǔ",春假:"chūn jià",发妻:"fà qī",哗哗:"huā huā",宽绰:"kuān chuo",了悟:"liǎo wù",切花:"qiē huā",审度:"shěn duó",应许:"yīng xǔ",转台:"zhuàn tái",仔猪:"zǐ zhū",裁量:"cái liáng",藏戏:"zàng xì",乘兴:"chéng xìng",绸缪:"chóu móu",摧折:"cuī zhé",调经:"tiáo jīng",调职:"diào zhí",缝缀:"féng zhuì",骨朵:"gū duǒ",核儿:"hú er",恒量:"héng liàng",还价:"huán jià",浑朴:"hún pǔ",苦差:"kǔ chāi",面糊:"miàn hù",煞车:"shā chē",省视:"xǐng shì",什锦:"shí jǐn",信差:"xìn chāi",余切:"yú qiē",攒眉:"cuán méi",炸糕:"zhá gāo",钻杆:"zuàn gǎn",扒灰:"pá huī",拌和:"bàn huò",长调:"cháng diào",大溜:"dà liù",抖搂:"dǒu lōu",飞转:"fēi zhuàn",干仗:"gàn zhàng",好胜:"hào shèng",画片:"huà piàn",搅混:"jiǎo hún",螺杆:"luó gǎn",木模:"mù mú",怒号:"nù háo",频数:"pín shù",无宁:"wú níng",遗少:"yí shào",邮差:"yóu chāi",占卦:"zhān guà",占星:"zhān xīng",重审:"chóng shěn",自量:"zì liàng",调防:"diào fáng",发廊:"fà láng",反调:"fǎn diào",缝子:"fèng zi",更夫:"gēng fū",骨子:"gǔ zi",光杆:"guāng gǎn",夹棍:"jiā gùn",居丧:"jū sāng",巨贾:"jù gǔ",看押:"kān yā",空转:"kōng zhuàn",量力:"liàng lì",炮烙:"páo luò",赔还:"péi huán",扑扇:"pū shān",散记:"sǎn jì",散件:"sǎn jiàn",删削:"shān xuē",射干:"shè gàn",条几:"tiáo jī",偷空:"tōu kòng",削壁:"xuē bì",校核:"jiào hé",阴干:"yīn gān",择菜:"zhái cài",重九:"chóng jiǔ",主调:"zhǔ diào",自禁:"zì jīn",吧唧:"bā jī",便溺:"biàn niào",词调:"cí diào",叨咕:"dáo gu",落枕:"lào zhěn",铺砌:"pū qì",刷白:"shuà bái",委靡:"wěi mǐ",系泊:"xì bó",相马:"xiàng mǎ",熨帖:"yù tiē",转筋:"zhuàn jīn",棒喝:"bàng hè",傧相:"bīn xiàng",镐头:"gǎo tóu",间苗:"jiàn miáo",乐池:"yuè chí",卖相:"mài xiàng",屏弃:"bǐng qì",铅弹:"qiān dàn",切变:"qiē biàn",请调:"qǐng diào",群氓:"qún méng",散板:"sǎn bǎn",省察:"xǐng chá",事假:"shì jià",纤绳:"qiàn shéng",重影:"chóng yǐng",耕种:"gēng zhòng",种地:"zhòng dì",种菜:"zhòng cài",栽种:"zāi zhòng",接种:"jiē zhòng",垦种:"kěn zhòng",种殖:"zhòng zhí",种瓜:"zhòng guā",种豆:"zhòng dòu",种树:"zhòng shù",睡着:"shuì zháo",笼子:"lóng zi",重启:"chóng qǐ",重整:"chóng zhěng",重弹:"chóng tán",重足:"chóng zú",重山:"chóng shān",重游:"chóng yóu",重峦:"chóng luán",爷爷:"yé ye",奶奶:"nǎi nai",姥爷:"lǎo ye",爸爸:"bà ba",妈妈:"mā ma",婶婶:"shěn shen",舅舅:"jiù jiu",姑姑:"gū gu",叔叔:"shū shu",姨夫:"yí fu",舅母:"jiù mu",姑父:"gū fu",姐夫:"jiě fu",婆婆:"pó po",公公:"gōng gong",舅子:"jiù zi",姐姐:"jiě jie",哥哥:"gē ge",妹妹:"mèi mei",妹夫:"mèi fu",姨子:"yí zi",宝宝:"bǎo bao",娃娃:"wá wa",孩子:"hái zi",日子:"rì zi",样子:"yàng zi",狮子:"shī zi",身子:"shēn zi",架子:"jià zi",嫂子:"sǎo zi",鼻子:"bí zi",亭子:"tíng zi",折子:"zhé zi",面子:"miàn zi",脖子:"bó zi",辈子:"bèi zi",帽子:"mào zi",拍子:"pāi zi",柱子:"zhù zi",辫子:"biàn zi",鸽子:"gē zi",房子:"fáng zi",丸子:"wán zi",摊子:"tān zi",牌子:"pái zi",胡子:"hú zi",鬼子:"guǐ zi",矮子:"ǎi zi",鸭子:"yā zi",小子:"xiǎo zi",影子:"yǐng zi",屋子:"wū zi",对子:"duì zi",点子:"diǎn zi",本子:"běn zi",种子:"zhǒng zi",儿子:"ér zi",兔子:"tù zi",骗子:"piàn zi",院子:"yuàn zi",猴子:"hóu zi",嗓子:"sǎng zi",侄子:"zhí zi",柿子:"shì zi",钳子:"qián zi",虱子:"shī zi",瓶子:"píng zi",豹子:"bào zi",筷子:"kuài zi",篮子:"lán zi",绳子:"shéng zi",嘴巴:"zuǐ ba",耳朵:"ěr duo",茄子:"qié zi",蚌埠:"bèng bù",崆峒:"kōng tóng",琵琶:"pí pa",蘑菇:"mó gu",葫芦:"hú lu",狐狸:"hú li",桔子:"jú zi",盒子:"hé zi",桌子:"zhuō zi",竹子:"zhú zi",师傅:"shī fu",衣服:"yī fu",袜子:"wà zi",杯子:"bēi zi",刺猬:"cì wei",麦子:"mài zi",队伍:"duì wu",知了:"zhī liǎo",鱼儿:"yú er",馄饨:"hún tun",灯笼:"dēng long",庄稼:"zhuāng jia",聪明:"cōng ming",镜子:"jìng zi",银子:"yín zi",盘子:"pán zi",了却:"liǎo què",力气:"lì qi",席子:"xí zi",林子:"lín zi",朝霞:"zhāo xiá",朝夕:"zhāo xī",朝气:"zhāo qì",翅膀:"chì bǎng",省长:"shěng zhǎng",臧否:"zāng pǐ",否泰:"pǐ tài",变得:"biàn de",丈夫:"zhàng fu",豆腐:"dòu fu",笔杆:"bǐ gǎn",枞阳:"zōng yáng",行人:"xíng rén",打着:"dǎ zhe",第一:"dì yī",万一:"wàn yī",之一:"zhī yī",得之:"dé zhī",统一:"tǒng yī",唯一:"wéi yī",专一:"zhuān yī",单一:"dān yī",如一:"rú yī",其一:"qí yī",合一:"hé yī",逐一:"zhú yī",周一:"zhōu yī",初一:"chū yī",研一:"yán yī",归一:"guī yī",假一:"jiǎ yī",闻一:"wén yī",了了:"liǎo liǎo",公了:"gōng liǎo",私了:"sī liǎo",一月:"yī yuè",一号:"yī hào",一级:"yī jí",一等:"yī děng",一哥:"yī gē",月一:"yuè yī",一一:"yī yī",二一:"èr yī",三一:"sān yī",四一:"sì yī",五一:"wǔ yī",六一:"liù yī",七一:"qī yī",八一:"bā yī",九一:"jiǔ yī","一〇":"yī líng",一零:"yī líng",一二:"yī èr",一三:"yī sān",一四:"yī sì",一五:"yī wǔ",一六:"yī liù",一七:"yī qī",一八:"yī bā",一九:"yī jiǔ",一又:"yī yòu",一饼:"yī bǐng",一楼:"yī lóu",为例:"wéi lì",为准:"wéi zhǔn",沧海:"cāng hǎi",难为:"nán wéi",责难:"zé nàn",患难:"huàn nàn",磨难:"mó nàn",大难:"dà nàn",刁难:"diāo nàn",殉难:"xùn nàn",落难:"luò nàn",罹难:"lí nàn",灾难:"zāi nàn",难民:"nàn mín",苦难:"kǔ nàn",危难:"wēi nàn",发难:"fā nàn",逃难:"táo nàn",避难:"bì nàn",遇难:"yù nàn",阻难:"zǔ nàn",厄难:"è nàn",徇难:"xùn nàn",空难:"kōng nàn",喜欢:"xǐ huan",朝朝:"zhāo zhāo",不行:"bù xíng",轧轧:"yà yà",弯曲:"wān qū",扭曲:"niǔ qū",曲直:"qū zhí",委曲:"wěi qū",酒曲:"jiǔ qū",曲径:"qū jìng",曲解:"qū jiě",歪曲:"wāi qū",曲线:"qū xiàn",曲阜:"qū fù",九曲:"jiǔ qū",曲折:"qū zhé",曲肱:"qū gōng",曲意:"qū yì",仡佬:"gē lǎo"},dg=Object.keys(vn).map(n=>({zh:n,pinyin:vn[n],probability:2e-8,length:2,priority:p.Normal,dict:Symbol("dict2")})),Sn={为什么:"wèi shén me",实际上:"shí jì shang",检察长:"jiǎn chá zhǎng",干什么:"gàn shén me",这会儿:"zhè huì er",尽可能:"jǐn kě néng",董事长:"dǒng shì zhǎng",了不起:"liǎo bù qǐ",参谋长:"cān móu zhǎng",朝鲜族:"cháo xiǎn zú",海内外:"hǎi nèi wài",禁不住:"jīn bú zhù",柏拉图:"bó lā tú",不在乎:"bú zài hu",洛杉矶:"luò shān jī",有点儿:"yǒu diǎn er",迫击炮:"pǎi jī pào",不得了:"bù dé liǎo",马尾松:"mǎ wěi sōng",运输量:"yùn shū liàng",发脾气:"fā pí qi",士大夫:"shì dà fū",鸭绿江:"yā lù jiāng",压根儿:"yà gēn er",对得起:"duì de qǐ",那会儿:"nà huì er",自个儿:"zì gě er",物理量:"wù lǐ liàng",怎么着:"zěn me zhāo",明晃晃:"míng huǎng huǎng",节假日:"jié jià rì",心里话:"xīn lǐ huà",发行量:"fā xíng liàng",兴冲冲:"xìng chōng chōng",分子量:"fēn zǐ liàng",国子监:"guó zǐ jiàn",老大难:"lǎo dà nán",党内外:"dǎng nèi wài",这么着:"zhè me zhāo",少奶奶:"shào nǎi nai",暗地里:"àn dì lǐ",更年期:"gēng nián qī",工作量:"gōng zuò liàng",背地里:"bèi dì lǐ",山里红:"shān li hóng",好好儿:"hǎo hāo er",交响乐:"jiāo xiǎng yuè",好意思:"hǎo yì si",吐谷浑:"tǔ yù hún",没意思:"méi yì si",理发师:"lǐ fà shī",塔什干:"tǎ shí gān",充其量:"chōng qí liàng",靠得住:"kào de zhù",车行道:"chē xíng dào",人行道:"rén xíng dào",中郎将:"zhōng láng jiàng",照明弹:"zhào míng dàn",烟幕弹:"yān mù dàn",没奈何:"mò nài hé",乱哄哄:"luàn hōng hōng",惠更斯:"huì gēng sī",载重量:"zài zhòng liàng",瞧得起:"qiáo de qǐ",纪传体:"jì zhuàn tǐ",阿房宫:"ē páng gōng",卷心菜:"juǎn xīn cài",戏班子:"xì bān zi",过得去:"guò de qù",花岗石:"huā gāng shí",外甥女:"wài sheng nǚ",团团转:"tuán tuán zhuàn",大堡礁:"dà bǎo jiāo",燃烧弹:"rán shāo dàn",劳什子:"láo shí zi",摇滚乐:"yáo gǔn yuè",夹竹桃:"jiā zhú táo",闹哄哄:"nào hōng hōng",三连冠:"sān lián guàn",重头戏:"zhòng tóu xì",二人转:"èr rén zhuàn",节骨眼:"jiē gǔ yǎn",知识面:"zhī shi miàn",护士长:"hù shi zhǎng",信号弹:"xìn hào dàn",干电池:"gān diàn chí",枪杆子:"qiāng gǎn zi",哭丧棒:"kū sāng bàng",鼻咽癌:"bí yān ái",瓦岗军:"wǎ gāng jūn",买得起:"mǎi de qǐ",癞蛤蟆:"lài há ma",脊梁骨:"jǐ liang gǔ",子母弹:"zǐ mǔ dàn",开小差:"kāi xiǎo chāi",女强人:"nǚ qiáng rén",英雄传:"yīng xióng zhuàn",爵士乐:"jué shì yuè",说笑话:"shuō xiào hua",碰头会:"pèng tóu huì",玻璃钢:"bō li gāng",曳光弹:"yè guāng dàn",少林拳:"shào lín quán",咏叹调:"yǒng tàn diào",少先队:"shào xiān duì",灵长目:"líng zhǎng mù",对着干:"duì zhe gàn",蒙蒙亮:"méng méng liàng",软骨头:"ruǎn gǔ tou",铺盖卷:"pū gài juǎn",和稀泥:"huò xī ní",背黑锅:"bēi hēi guō",红彤彤:"hóng tōng tōng",武侯祠:"wǔ hóu cí",打哆嗦:"dǎ duō suo",户口簿:"hù kǒu bù",马尾藻:"mǎ wěi zǎo",夜猫子:"yè māo zi",打手势:"dǎ shǒu shì",龙王爷:"lóng wáng yé",气头上:"qì tóu shang",糊涂虫:"hú tu chóng",笔杆子:"bǐ gǎn zi",占便宜:"zhàn pián yi",打主意:"dǎ zhǔ yì",多弹头:"duō dàn tóu",露一手:"lòu yì shǒu",堰塞湖:"yàn sè hú",保得住:"bǎo de zhù",趵突泉:"bào tū quán",奥得河:"ào de hé",司务长:"sī wù zhǎng",禁不起:"jīn bù qǐ",什刹海:"shí chà hǎi",莲花落:"lián huā lào",见世面:"jiàn shì miàn",豁出去:"huō chū qù",电位差:"diàn wèi chā",挨个儿:"āi gè er",那阵儿:"nà zhèn er",肺活量:"fèi huó liàng",大师傅:"dà shī fu",掷弹筒:"zhì dàn tǒng",打呼噜:"dǎ hū lu",广渠门:"ān qú mén",未见得:"wèi jiàn dé",大婶儿:"dà shěn er",谈得来:"tán de lái",脚丫子:"jiǎo yā zi",空包弹:"kōng bāo dàn",窝里斗:"wō li dòu",弹着点:"dàn zhuó diǎn",个头儿:"gè tóu er",看得起:"kàn de qǐ",糊涂账:"hú tu zhàng",大猩猩:"dà xīng xing",禁得起:"jīn de qǐ",法相宗:"fǎ xiàng zōng",可怜相:"kě lián xiàng",吃得下:"chī de xià",汉堡包:"hàn bǎo bāo",闹嚷嚷:"nào rāng rāng",数来宝:"shǔ lái bǎo",合得来:"hé de lái",干性油:"gān xìng yóu",闷葫芦:"mèn hú lu",呱呱叫:"guā guā jiào",西洋参:"xī yáng shēn",林荫道:"lín yīn dào",拉家常:"lā jiā cháng",卷铺盖:"juǎn pū gài",过得硬:"guò de yìng",飞将军:"fēi jiāng jūn",挑大梁:"tiǎo dà liáng",哈巴狗:"hǎ ba gǒu",过家家:"guò jiā jiā",催泪弹:"cuī lèi dàn",雨夹雪:"yǔ jiā xuě",敲竹杠:"qiāo zhú gàng",列车长:"liè chē zhǎng",华达呢:"huá dá ní",犯得着:"fàn de zháo",土疙瘩:"tǔ gē da",煞风景:"shā fēng jǐng",轻量级:"qīng liàng jí",羞答答:"xiū dā dā",石子儿:"shí zǐ er",达姆弹:"dá mǔ dàn",科教片:"kē jiào piān",侃大山:"kǎn dà shān",丁点儿:"dīng diǎn er",吃得消:"chī de xiāo",捋虎须:"luō hǔ xū",高丽参:"gāo lí shēn",众生相:"zhòng shēng xiàng",咽峡炎:"yān xiá yán",禁得住:"jīn de zhù",吃得开:"chī de kāi",柞丝绸:"zuò sī chóu",应声虫:"yìng shēng chóng",数得着:"shǔ de zháo",傻劲儿:"shǎ jìn er",铅玻璃:"qiān bō li",可的松:"kě dì sōng",划得来:"huá de lái",晕乎乎:"yūn hū hū",屎壳郎:"shǐ ke làng",尥蹶子:"liào juě zi",藏红花:"zàng hóng huā",闷罐车:"mèn guàn chē",卡脖子:"qiǎ bó zi",红澄澄:"hóng deng deng",赶得及:"gǎn de jí",当间儿:"dāng jiàn er",露马脚:"lòu mǎ jiǎo",鸡内金:"jī nèi jīn",犯得上:"fàn de shàng",钉齿耙:"dīng chǐ bà",饱和点:"bǎo hé diǎn",龙爪槐:"lóng zhǎo huái",喝倒彩:"hè dào cǎi",定冠词:"dìng guàn cí",担担面:"dàn dan miàn",吃得住:"chī de zhù",爪尖儿:"zhuǎ jiān er",支着儿:"zhī zhāo er",折跟头:"zhē gēn tou",阴着儿:"yīn zhāo er",烟卷儿:"yān juǎn er",宣传弹:"xuān chuán dàn",信皮儿:"xìn pí er",弦切角:"xián qiē jiǎo",缩砂密:"sù shā mì",说得来:"shuō de lái",水漂儿:"shuǐ piāo er",耍笔杆:"shuǎ bǐ gǎn",数得上:"shǔ de shàng",数不着:"shǔ bù zháo",数不清:"shǔ bù qīng",什件儿:"shí jiàn er",生死簿:"shēng sǐ bù",扇风机:"shān fēng jī",撒呓挣:"sā yì zheng",日记簿:"rì jì bù",热得快:"rè de kuài",亲家公:"qìng jia gōng",奇函数:"jī hán shù",拍纸簿:"pāi zhǐ bù",努劲儿:"nǔ jìn er",泥娃娃:"ní wá wa",内切圆:"nèi qiē yuán",哪会儿:"nǎ huì er",闷头儿:"mēn tóu er",没谱儿:"méi pǔ er",铆劲儿:"mǎo jìn er",溜肩膀:"liū jiān bǎng",了望台:"liào wàng tái",老来少:"lǎo lái shào",坤角儿:"kūn jué er",考勤簿:"kǎo qín bù",卷笔刀:"juǎn bǐ dāo",进给量:"jìn jǐ liàng",划不来:"huá bù lái",汗褂儿:"hàn guà er",鼓囊囊:"gǔ nāng nāng",够劲儿:"gòu jìn er",公切线:"gōng qiē xiàn",搁得住:"gé de zhù",赶浪头:"gǎn làng tóu",赶得上:"gǎn de shàng",干酵母:"gān jiào mǔ",嘎渣儿:"gā zhā er",嘎嘣脆:"gā bēng cuì",对得住:"duì de zhù",逗闷子:"dòu mèn zi",顶呱呱:"dǐng guā guā",滴溜儿:"dī liù er",大轴子:"dà zhòu zi",打板子:"dǎ bǎn zi",寸劲儿:"cùn jìn er",醋劲儿:"cù jìn er",揣手儿:"chuāi shǒu er",冲劲儿:"chòng jìn er",吃得来:"chī de lái",不更事:"bù gēng shì",奔头儿:"bèn tou er",百夫长:"bǎi fū zhǎng",娃娃亲:"wá wa qīn",死劲儿:"sǐ jìn er",骨朵儿:"gū duǒ er",功劳簿:"gōng láo bù",都江堰:"dū jiāng yàn",一担水:"yí dàn shuǐ",否极泰:"pǐ jí tài",泰来否:"tài lái pǐ",咳特灵:"ké tè líng",开户行:"kāi hù háng",郦食其:"lì yì jī",花事了:"huā shì liǎo",一更更:"yì gēng gēng",一重山:"yì chóng shān",风一更:"fēng yì gēng",雪一更:"xuě yì gēng",归一码:"guī yì mǎ",星期一:"xīng qī yī",礼拜一:"lǐ bài yī",一季度:"yī jì dù",一月一:"yī yuè yī",一字马:"yī zì mǎ",一是一:"yī shì yī",一次方:"yī cì fāng",一阳指:"yī yáng zhǐ",一字决:"yī zì jué",一年级:"yī nián jí",一不做:"yī bú zuò",屈戌儿:"qū qu ér",难为水:"nán wéi shuǐ",难为情:"nán wéi qíng",行一行:"xíng yì háng",别别的:"biè bié de",干哪行:"gàn nǎ háng",干一行:"gàn yì háng",曲别针:"qū bié zhēn"},jg=Object.keys(Sn).map(n=>({zh:n,pinyin:Sn[n],probability:2e-8,length:3,priority:p.Normal,dict:Symbol("dict3")})),Pn={成吉思汗:"chéng jí sī hán",四通八达:"sì tōng bā dá",一模一样:"yì mú yí yàng",青藏高原:"qīng zàng gāo yuán",阿弥陀佛:"ē mí tuó fó",解放思想:"jiè fàng sī xiǎng",所作所为:"suǒ zuò suǒ wéi",迷迷糊糊:"mí mí hu hū",荷枪实弹:"hè qiāng shí dàn",兴高采烈:"xìng gāo cǎi liè",无能为力:"wú néng wéi lì",布鲁塞尔:"bù lǔ sài ěr",为所欲为:"wéi suǒ yù wéi",克什米尔:"kè shí mǐ ěr",没完没了:"méi wán méi liǎo",不为人知:"bù wéi rén zhī",结结巴巴:"jiē jiē bā bā",前仆后继:"qián pū hòu jì",铺天盖地:"pū tiān gài dì",直截了当:"zhí jié liǎo dàng",供不应求:"gōng bú yìng qiú",御史大夫:"yù shǐ dà fū",不为瓦全:"bù wéi wǎ quán",不可收拾:"bù kě shōu shi",胡作非为:"hú zuò fēi wéi",分毫不差:"fēn háo bú chà",模模糊糊:"mó mó hu hū",不足为奇:"bù zú wéi qí",悄无声息:"qiǎo wú shēng xī",了如指掌:"liǎo rú zhǐ zhǎng",深恶痛绝:"shēn wù tòng jué",高高兴兴:"gāo gāo xìng xìng",唉声叹气:"āi shēng tàn qì",汉藏语系:"hàn zàng yǔ xì",处心积虑:"chǔ xīn jī lǜ",泣不成声:"qì bù chéng shēng",半夜三更:"bàn yè sān gēng",失魂落魄:"shī hún luò pò",二十八宿:"èr shí bā xiù",转来转去:"zhuàn lái zhuàn qù",数以万计:"shǔ yǐ wàn jì",相依为命:"xiāng yī wéi mìng",恋恋不舍:"liàn liàn bù shě",屈指可数:"qū zhǐ kě shǔ",神出鬼没:"shén chū guǐ mò",结结实实:"jiē jiē shí shí",有的放矢:"yǒu dì fàng shǐ",叽哩咕噜:"jī lǐ gū lū",调兵遣将:"diào bīng qiǎn jiàng",载歌载舞:"zài gē zài wǔ",转危为安:"zhuǎn wēi wéi ān",踏踏实实:"tā tā shi shí",桑给巴尔:"sāng jǐ bā ěr",装模作样:"zhuāng mú zuò yàng",见义勇为:"jiàn yì yǒng wéi",相差无几:"xiāng chā wú jǐ",叹为观止:"tàn wéi guān zhǐ",闷闷不乐:"mèn mèn bú lè",喜怒哀乐:"xǐ nù āi lè",鲜为人知:"xiǎn wéi rén zhī",张牙舞爪:"zhāng yá wǔ zhǎo",为非作歹:"wéi fēi zuò dǎi",含糊其辞:"hán hú qí cí",疲于奔命:"pí yú bēn mìng",勉为其难:"miǎn wéi qí nán",依依不舍:"yī yī bù shě",顶头上司:"dǐng tóu shàng si",不着边际:"bù zhuó biān jì",大模大样:"dà mú dà yàng",寻欢作乐:"xún huān zuò lè",一走了之:"yì zǒu liǎo zhī",字里行间:"zì lǐ háng jiān",含含糊糊:"hán hán hu hū",恰如其分:"qià rú qí fèn",破涕为笑:"pò tì wéi xiào",深更半夜:"shēn gēng bàn yè",千差万别:"qiān chā wàn bié",数不胜数:"shǔ bú shèng shǔ",据为己有:"jù wéi jǐ yǒu",天旋地转:"tiān xuán dì zhuàn",养尊处优:"yǎng zūn chǔ yōu",玻璃纤维:"bō li xiān wéi",吵吵闹闹:"chāo chao nào nào",晕头转向:"yūn tóu zhuàn xiàng",土生土长:"tǔ shēng tǔ zhǎng",宁死不屈:"nìng sǐ bù qū",不省人事:"bù xǐng rén shì",尽力而为:"jìn lì ér wéi",精明强干:"jīng míng qiáng gàn",唠唠叨叨:"láo lao dāo dāo",叽叽喳喳:"jī ji zhā zhā",功不可没:"gōng bù kě mò",锲而不舍:"qiè ér bù shě",排忧解难:"pái yōu jiě nàn",稀里糊涂:"xī li hú tú",各有所长:"gè yǒu suǒ cháng",的的确确:"dí dí què què",哄堂大笑:"hōng táng dà xiào",听而不闻:"tīng ér bù wén",刀耕火种:"dāo gēng huǒ zhòng",内分泌腺:"nèi fèn mì xiàn",化险为夷:"huà xiǎn wéi yí",百发百中:"bǎi fā bǎi zhòng",重见天日:"chóng jiàn tiān rì",反败为胜:"fǎn bài wéi shèng",一了百了:"yì liǎo bǎi liǎo",大大咧咧:"dà da liē liē",心急火燎:"xīn jí huǒ liǎo",粗心大意:"cū xīn dà yi",鸡皮疙瘩:"jī pí gē da",夷为平地:"yí wéi píng dì",日积月累:"rì jī yuè lěi",设身处地:"shè shēn chǔ dì",投其所好:"tóu qí suǒ hào",间不容发:"jiān bù róng fà",人满为患:"rén mǎn wéi huàn",穷追不舍:"qióng zhuī bù shě",为时已晚:"wéi shí yǐ wǎn",如数家珍:"rú shǔ jiā zhēn",心里有数:"xīn lǐ yǒu shù",以牙还牙:"yǐ yá huán yá",神不守舍:"shén bù shǒu shě",孟什维克:"mèng shí wéi kè",各自为战:"gè zì wéi zhàn",怨声载道:"yuàn shēng zài dào",救苦救难:"jiù kǔ jiù nàn",好好先生:"hǎo hǎo xiān sheng",怪模怪样:"guài mú guài yàng",抛头露面:"pāo tóu lù miàn",游手好闲:"yóu shǒu hào xián",无所不为:"wú suǒ bù wéi",调虎离山:"diào hǔ lí shān",步步为营:"bù bù wéi yíng",好大喜功:"hào dà xǐ gōng",众矢之的:"zhòng shǐ zhī dì",长生不死:"cháng shēng bù sǐ",蔚为壮观:"wèi wéi zhuàng guān",不可胜数:"bù kě shèng shǔ",鬼使神差:"guǐ shǐ shén chāi",洁身自好:"jié shēn zì hào",敢作敢为:"gǎn zuò gǎn wéi",茅塞顿开:"máo sè dùn kāi",走马换将:"zǒu mǎ huàn jiàng",为时过早:"wéi shí guò zǎo",为人师表:"wéi rén shī biǎo",阴差阳错:"yīn chā yáng cuò",油腔滑调:"yóu qiāng huá diào",重蹈覆辙:"chóng dǎo fù zhé",骂骂咧咧:"mà ma liē liē",絮絮叨叨:"xù xù dāo dāo",如履薄冰:"rú lǚ bó bīng",损兵折将:"sǔn bīng zhé jiàng",拐弯抹角:"guǎi wān mò jiǎo",像模像样:"xiàng mú xiàng yàng",供过于求:"gōng guò yú qiú",开花结果:"kāi huā jiē guǒ",仔仔细细:"zǐ zǐ xì xì",川藏公路:"chuān zàng gōng lù",河北梆子:"hé běi bāng zi",长年累月:"cháng nián lěi yuè",正儿八经:"zhèng er bā jīng",不识抬举:"bù shí tái ju",重振旗鼓:"chóng zhèn qí gǔ",气息奄奄:"qì xī yān yān",紧追不舍:"jǐn zhuī bù shě",服服帖帖:"fú fu tiē tiē",强词夺理:"qiǎng cí duó lǐ",噼里啪啦:"pī li pā lā",人才济济:"rén cái jǐ jǐ",发人深省:"fā rén shēn xǐng",不足为凭:"bù zú wéi píng",为富不仁:"wéi fù bù rén",连篇累牍:"lián piān lěi dú",呼天抢地:"hū tiān qiāng dì",落落大方:"luò luò dà fāng",自吹自擂:"zì chuī zì léi",乐善好施:"lè shàn hào shī",以攻为守:"yǐ gōng wéi shǒu",磨磨蹭蹭:"mó mó cèng cèng",削铁如泥:"xuē tiě rú ní",助纣为虐:"zhù zhòu wéi nüè",以退为进:"yǐ tuì wéi jìn",嘁嘁喳喳:"qī qī chā chā",枪林弹雨:"qiāng lín dàn yǔ",令人发指:"lìng rén fà zhǐ",转败为胜:"zhuǎn bài wéi shèng",转弯抹角:"zhuǎn wān mò jiǎo",在劫难逃:"zài jié nán táo",正当防卫:"zhèng dàng fáng wèi",不足为怪:"bù zú wéi guài",难兄难弟:"nàn xiōng nàn dì",咿咿呀呀:"yī yī yā yā",弹尽粮绝:"dàn jìn liáng jué",阿谀奉承:"ē yú fèng chéng",稀里哗啦:"xī li huā lā",返老还童:"fǎn lǎo huán tóng",好高骛远:"hào gāo wù yuǎn",鹿死谁手:"lù sǐ shéi shǒu",差强人意:"chā qiáng rén yì",大吹大擂:"dà chuī dà léi",成家立业:"chéng jiā lì yè",自怨自艾:"zì yuàn zì yì",负债累累:"fù zhài lěi lěi",古为今用:"gǔ wéi jīn yòng",入土为安:"rù tǔ wéi ān",下不为例:"xià bù wéi lì",一哄而上:"yì hōng ér shàng",没头苍蝇:"méi tóu cāng ying",天差地远:"tiān chā dì yuǎn",风卷残云:"fēng juǎn cán yún",多灾多难:"duō zāi duō nàn",乳臭未干:"rǔ xiù wèi gān",行家里手:"háng jiā lǐ shǒu",狼狈为奸:"láng bèi wéi jiān",处变不惊:"chǔ biàn bù jīng",一唱一和:"yí chàng yí hè",一念之差:"yí niàn zhī chā",金蝉脱壳:"jīn chán tuō qiào",滴滴答答:"dī dī dā dā",硕果累累:"shuò guǒ léi léi",好整以暇:"hào zhěng yǐ xiá",红得发紫:"hóng de fā zǐ",传为美谈:"chuán wéi měi tán",富商大贾:"fù shāng dà gǔ",四海为家:"sì hǎi wéi jiā",了若指掌:"liǎo ruò zhǐ zhǎng",大有可为:"dà yǒu kě wéi",出头露面:"chū tóu lù miàn",鼓鼓囊囊:"gǔ gu nāng nāng",窗明几净:"chuāng míng jī jìng",泰然处之:"tài rán chǔ zhī",怒发冲冠:"nù fà chōng guān",有机玻璃:"yǒu jī bō li",骨头架子:"gǔ tou jià zi",义薄云天:"yì bó yún tiān",一丁点儿:"yī dīng diǎn er",时来运转:"shí lái yùn zhuǎn",陈词滥调:"chén cí làn diào",化整为零:"huà zhěng wéi líng",火烧火燎:"huǒ shāo huǒ liǎo",干脆利索:"gàn cuì lì suǒ",吊儿郎当:"diào er láng dāng",广种薄收:"guǎng zhòng bó shōu",种瓜得瓜:"zhòng guā dé guā",种豆得豆:"zhòng dòu dé dòu",难舍难分:"nán shě nán fēn",歃血为盟:"shà xuè wéi méng",奋发有为:"fèn fā yǒu wéi",阴错阳差:"yīn cuò yáng chā",东躲西藏:"dōng duǒ xī cáng",烟熏火燎:"yān xūn huǒ liǎo",钻牛角尖:"zuān niú jiǎo jiān",乔装打扮:"qiáo zhuāng dǎ bàn",改弦更张:"gǎi xián gēng zhāng",河南梆子:"hé nán bāng zi",好吃懒做:"hào chī lǎn zuò",何乐不为:"hé lè bù wéi",大出风头:"dà chū fēng tóu",攻城掠地:"gōng chéng lüè dì",漂漂亮亮:"piào piào liang liang",折衷主义:"zhé zhōng zhǔ yì",大马哈鱼:"dà mǎ hǎ yú",绿树成荫:"lǜ shù chéng yīn",率先垂范:"shuài xiān chuí fàn",家长里短:"jiā cháng lǐ duǎn",宽大为怀:"kuān dà wéi huái",左膀右臂:"zuǒ bǎng yòu bì",一笑了之:"yí xiào liǎo zhī",天下为公:"tiān xià wéi gōng",还我河山:"huán wǒ hé shān",何足为奇:"hé zú wéi qí",好自为之:"hǎo zì wéi zhī",风姿绰约:"fēng zī chuò yuē",大雨滂沱:"dà yǔ pāng tuó",传为佳话:"chuán wéi jiā huà",吃里扒外:"chī lǐ pá wài",重操旧业:"chóng cāo jiù yè",小家子气:"xiǎo jiā zi qì",少不更事:"shào bù gēng shì",难分难舍:"nán fēn nán shě",添砖加瓦:"tiān zhuān jiā wǎ",是非分明:"shì fēi fēn míng",舍我其谁:"shě wǒ qí shuí",偏听偏信:"piān tīng piān xìn",量入为出:"liàng rù wéi chū",降龙伏虎:"xiáng lóng fú hǔ",钢化玻璃:"gāng huà bō li",正中下怀:"zhèng zhòng xià huái",以身许国:"yǐ shēn xǔ guó",一语中的:"yì yǔ zhòng dì",丧魂落魄:"sàng hún luò pò",三座大山:"sān zuò dà shān",济济一堂:"jǐ jǐ yì táng",好事之徒:"hào shì zhī tú",干净利索:"gàn jìng lì suǒ",出将入相:"chū jiàng rù xiàng",袅袅娜娜:"niǎo niǎo nuó nuó",狐狸尾巴:"hú li wěi ba",好逸恶劳:"hào yì wù láo",大而无当:"dà ér wú dàng",打马虎眼:"dǎ mǎ hu yǎn",板上钉钉:"bǎn shàng dìng dīng",吆五喝六:"yāo wǔ hè liù",虾兵蟹将:"xiā bīng xiè jiàng",水调歌头:"shuǐ diào gē tóu",数典忘祖:"shǔ diǎn wàng zǔ",人事不省:"rén shì bù xǐng",曲高和寡:"qǔ gāo hè guǎ",屡教不改:"lǚ jiào bù gǎi",互为因果:"hù wéi yīn guǒ",互为表里:"hù wéi biǎo lǐ",厚此薄彼:"hòu cǐ bó bǐ",过关斩将:"guò guān zhǎn jiàng",疙疙瘩瘩:"gē ge dā dā",大腹便便:"dà fù pián pián",走为上策:"zǒu wéi shàng cè",冤家对头:"yuān jia duì tóu",有隙可乘:"yǒu xì kě chèng",一鳞半爪:"yì lín bàn zhǎo",片言只语:"piàn yán zhǐ yǔ",开花结实:"kāi huā jié shí",经年累月:"jīng nián lěi yuè",含糊其词:"hán hú qí cí",寡廉鲜耻:"guǎ lián xiǎn chǐ",成年累月:"chéng nián lěi yuè",不徇私情:"bú xùn sī qíng",不当人子:"bù dāng rén zǐ",膀大腰圆:"bǎng dà yāo yuán",指腹为婚:"zhǐ fù wéi hūn",这么点儿:"zhè me diǎn er",意兴索然:"yì xīng suǒ rán",绣花枕头:"xiù huā zhěn tou",无的放矢:"wú dì fàng shǐ",望闻问切:"wàng wén wèn qiè",舍己为人:"shě jǐ wèi rén",穷年累月:"qióng nián lěi yuè",排难解纷:"pái nàn jiě fēn",处之泰然:"chǔ zhī tài rán",指鹿为马:"zhǐ lù wéi mǎ",危如累卵:"wēi rú lěi luǎn",天兵天将:"tiān bīng tiān jiàng",舍近求远:"shě jìn qiú yuǎn",南腔北调:"nán qiāng běi diào",苦中作乐:"kǔ zhōng zuò lè",厚积薄发:"hòu jī bó fā",臭味相投:"xiù wèi xiāng tóu",长幼有序:"zhǎng yòu yǒu xù",逼良为娼:"bī liáng wéi chāng",悲悲切切:"bēi bēi qiè qiē",败军之将:"bài jūn zhī jiàng",欺行霸市:"qī háng bà shì",削足适履:"xuē zú shì lǚ",先睹为快:"xiān dǔ wéi kuài",啼饥号寒:"tí jī háo hán",疏不间亲:"shū bú jiàn qīn",神差鬼使:"shén chāi guǐ shǐ",敲敲打打:"qiāo qiāo dǎ dǎ",平铺直叙:"píng pū zhí xù",没头没尾:"méi tóu mò wěi",寥寥可数:"liáo liáo kě shǔ",哼哈二将:"hēng hā èr jiàng",鹤发童颜:"hè fà tóng yán",各奔前程:"gè bèn qián chéng",弹无虚发:"dàn wú xū fā",大人先生:"dà rén xiān sheng",与民更始:"yǔ mín gēng shǐ",树碑立传:"shù bēi lì zhuàn",是非得失:"shì fēi dé shī",实逼处此:"shí bī chǔ cǐ",塞翁失马:"sài wēng shī mǎ",日薄西山:"rì bó xī shān",切身体会:"qiè shēn tǐ huì",片言只字:"piàn yán zhǐ zì",跑马卖解:"pǎo mǎ mài xiè",宁折不弯:"nìng zhé bù wān",零零散散:"líng líng sǎn sǎn",量体裁衣:"liàng tǐ cái yī",连中三元:"lián zhòng sān yuán",礼崩乐坏:"lǐ bēng yuè huài",不为已甚:"bù wéi yǐ shèn",转悲为喜:"zhuǎn bēi wéi xǐ",以眼还眼:"yǐ yǎn huán yǎn",蔚为大观:"wèi wéi dà guān",未为不可:"wèi wéi bù kě",童颜鹤发:"tóng yán hè fà",朋比为奸:"péng bǐ wéi jiān",莫此为甚:"mò cǐ wéi shèn",夹枪带棒:"jiā qiāng dài bàng",富商巨贾:"fù shāng jù jiǎ",淡然处之:"dàn rán chǔ zhī",箪食壶浆:"dān shí hú jiāng",创巨痛深:"chuāng jù tòng shēn",草长莺飞:"cǎo zhǎng yīng fēi",坐视不救:"zuò shī bú jiù",以己度人:"yǐ jǐ duó rén",随行就市:"suí háng jiù shì",文以载道:"wén yǐ zài dào",文不对题:"wén bú duì tí",铁板钉钉:"tiě bǎn dìng dīng",身体发肤:"shēn tǐ fà fū",缺吃少穿:"quē chī shǎo chuān",目无尊长:"mù wú zūn zhǎng",吉人天相:"jí rén tiān xiàng",毁家纾难:"huǐ jiā shū nàn",钢筋铁骨:"gāng jīn tiě gǔ",丢卒保车:"diū zú bǎo jū",丢三落四:"diū sān là sì",闭目塞听:"bì mù sè tīng",削尖脑袋:"xuē jiān nǎo dài",为非作恶:"wéi fēi zuò è",人才难得:"rén cái nán dé",情非得已:"qíng fēi dé yǐ",切中要害:"qiè zhòng yào hài",火急火燎:"huǒ jí huǒ liǎo",画地为牢:"huà dì wéi láo",好酒贪杯:"hào jiǔ tān bēi",长歌当哭:"cháng gē dàng kū",载沉载浮:"zài chén zài fú",遇难呈祥:"yù nàn chéng xiáng",榆木疙瘩:"yú mù gē da",以邻为壑:"yǐ lín wéi hè",洋为中用:"yáng wéi zhōng yòng",言为心声:"yán wéi xīn shēng",言必有中:"yán bì yǒu zhòng",图穷匕见:"tú qióng bǐ xiàn",滂沱大雨:"páng tuó dà yǔ",目不暇给:"mù bù xiá jǐ",量才录用:"liàng cái lù yòng",教学相长:"jiào xué xiāng zhǎng",悔不当初:"huǐ bù dāng chū",呼幺喝六:"hū yāo hè liù",不足为训:"bù zú wéi xùn",不拘形迹:"bù jū xíng jī",傍若无人:"páng ruò wú rén",罪责难逃:"zuì zé nán táo",自我吹嘘:"zì wǒ chuī xū",转祸为福:"zhuǎn huò wéi fú",勇冠三军:"yǒng guàn sān jūn",易地而处:"yì dì ér chǔ",卸磨杀驴:"xiè mò shā lǘ",玩儿不转:"wán ér bú zhuàn",天道好还:"tiān dào hǎo huán",身单力薄:"shēn dān lì bó",撒豆成兵:"sǎ dòu chéng bīng",片纸只字:"piàn zhǐ zhī zì",宁缺毋滥:"nìng quē wú làn",没没无闻:"mò mò wú wén",量力而为:"liàng lì ér wéi",历历可数:"lì lì kě shǔ",口碑载道:"kǒu bēi zài dào",君子好逑:"jūn zǐ hǎo qiú",好为人师:"hào wéi rén shī",豪商巨贾:"háo shāng jù jiǎ",各有所好:"gè yǒu suǒ hào",度德量力:"duó dé liàng lì",指天为誓:"zhǐ tiān wéi shì",逸兴遄飞:"yì xìng chuán fēi",心宽体胖:"xīn kuān tǐ pán",为德不卒:"wéi dé bù zú",天下为家:"tiān xià wéi jiā",视为畏途:"shì wéi wèi tú",三灾八难:"sān zāi bā nàn",沐猴而冠:"mù hóu ér guàn",哩哩啦啦:"lī li lā lā",见缝就钻:"jiàn fèng jiù zuān",夹层玻璃:"jiā céng bō li",急公好义:"jí gōng hào yì",积年累月:"jī nián lěi yuè",划地为牢:"huá dì wéi láo",更名改姓:"gēng míng gǎi xìng",奉为圭臬:"fèng wéi guī niè",多难兴邦:"duō nàn xīng bāng",不破不立:"bú pò bú lì",坐地自划:"zuò dì zì huá",坐不重席:"zuò bù chóng xí",坐不窥堂:"zuò bù kuī táng",作嫁衣裳:"zuò jià yī shang",左枝右梧:"zuǒ zhī yòu wú",左宜右有:"zuǒ yí yòu yǒu",钻头觅缝:"zuān tóu mì fèng",钻天打洞:"zuān tiān dǎ dòng",钻皮出羽:"zuān pí chū yǔ",钻火得冰:"zuān huǒ dé bīng",钻洞觅缝:"zuàn dòng mì féng",钻冰求火:"zuān bīng qiú huǒ",子为父隐:"zǐ wéi fù yǐn",擢发难数:"zhuó fà nán shǔ",着人先鞭:"zhuó rén xiān biān",斫雕为朴:"zhuó diāo wéi pǔ",锥处囊中:"zhuī chǔ náng zhōng",椎心饮泣:"chuí xīn yǐn qì",椎心泣血:"chuí xīn qì xuè",椎牛飨士:"chuí niú xiǎng shì",椎牛歃血:"chuí niú shà xuè",椎牛发冢:"chuí niú fà zhǒng",椎埋屠狗:"chuí mái tú gǒu",椎埋狗窃:"chuí mái gǒu qiè",壮发冲冠:"zhuàng fā chōng guàn",庄严宝相:"zhuāng yán bǎo xiàng",转愁为喜:"zhuǎn chóu wéi xǐ",转嗔为喜:"zhuǎn chēn wéi xǐ",拽巷啰街:"zhuài xiàng luó jiē",拽耙扶犁:"zhuāi pá fú lí",拽布拖麻:"zhuài bù tuō má",箸长碗短:"zhù cháng wǎn duǎn",铸剑为犁:"zhù jiàn wéi lí",杼柚其空:"zhù yòu qí kōng",杼柚空虚:"zhù yòu kōng xū",助天为虐:"zhù tiān wéi nüè",属垣有耳:"zhǔ yuán yǒu ěr",属毛离里:"zhǔ máo lí lǐ",属辞比事:"zhǔ cí bǐ shì",逐物不还:"zhú wù bù huán",铢量寸度:"zhū liáng cùn duó",铢两悉称:"zhū liǎng xī chèn",侏儒观戏:"zhū rú guān xì",朱轓皁盖:"zhū fān zào gài",昼度夜思:"zhòu duó yè sī",诪张为幻:"zhōu zhāng wéi huàn",重明继焰:"chóng míng jì yàn",众啄同音:"zhòng zhuó tóng yīn",众毛攒裘:"zhòng máo cuán qiú",众好众恶:"zhòng hào zhòng wù",擿埴索涂:"zhāi zhí suǒ tú",稚齿婑媠:"zhì chǐ wǒ tuó",至当不易:"zhì dàng bú yì",指皂为白:"zhǐ zào wéi bái",指雁为羹:"zhǐ yàn wéi gēng",指树为姓:"zhǐ shù wéi xìng",指山说磨:"zhǐ shān shuō mò",止戈为武:"zhǐ gē wéi wǔ",枝干相持:"zhī gàn xiāng chí",枝大于本:"zh dà yú běn",支吾其词:"zhī wú qí cí",正身率下:"zhèng shēn shuài xià",正冠李下:"zhèng guàn lǐ xià",整冠纳履:"zhěng guān nà lǚ",整躬率物:"zhěng gōng shuài wù",整顿干坤:"zhěng dùn gàn kūn",针头削铁:"zhēn tóu xuē tiě",贞松劲柏:"zhēn sōng jìng bǎi",赭衣塞路:"zhě yī sè lù",折箭为誓:"shé jiàn wéi shì",折而族之:"zhé ér zú zhī",昭德塞违:"zhāo dé sè wéi",章句小儒:"zhāng jù xiǎo rú",湛恩汪濊:"zhàn ēn wāng huì",占风望气:"zhān fēng wàng qì",斩将搴旗:"zhǎn jiàng qiān qí",曾母投杼:"zēng mǔ tóu zhù",曾参杀人:"zēng shēn shā rén",造谣中伤:"zào yáo zhòng shāng",早占勿药:"zǎo zhān wù yào",凿龟数策:"záo guī shǔ cè",攒三聚五:"cuán sān jù wǔ",攒眉蹙额:"cuán mei cù é",攒零合整:"cuán líng hé zhěng",攒锋聚镝:"cuán fēng jù dí",载笑载言:"zài xiào zài yán",载酒问字:"zài jiǔ wèn zì",殒身不恤:"yǔn shēn bú xù",云舒霞卷:"yún shū xiá juǎn",月中折桂:"yuè zhōng shé guì",月落参横:"yuè luò shēn héng",鬻驽窃价:"yù nú qiè jià",鬻鸡为凤:"yù jī wéi fèng",遇难成祥:"yù nàn chéng xiáng",郁郁累累:"yù yù lěi lěi",玉卮无当:"yù zhī wú dàng",语笑喧阗:"yǔ xiào xuān tián",与世沉浮:"yǔ shì chén fú",与时消息:"yǔ shí xiāo xi",逾墙钻隙:"yú qiáng zuān xì",渔夺侵牟:"yú duó qīn móu",杅穿皮蠹:"yú chuān pí dù",余勇可贾:"yú yǒng kě gǔ",予智予雄:"yú zhì yú xióng",予取予求:"yú qǔ yú qiú",于家为国:"yú jiā wéi guó",有借无还:"yǒu jiè wú huán",有加无已:"yǒu jiā wú yǐ",有国难投:"yǒu guó nán tóu",游必有方:"yóu bì yǒu fāng",油干灯尽:"yóu gàn dēng jìn",尤云殢雨:"yóu yún tì yǔ",庸中皦皦:"yōng zhōng jiǎo jiǎo",郢书燕说:"yǐng shū yān shuō",营蝇斐锦:"yíng yíng fēi jǐn",鹰心雁爪:"yīng xīn yàn zhǎo",莺吟燕儛:"yīng yín yàn wǔ",应天顺时:"yīng tiān shùn shí",印累绶若:"yìn léi shòu ruò",隐占身体:"yǐn zhàn shēn tǐ",饮犊上流:"yìn dú shàng liú",引绳切墨:"yǐn shéng qiē mò",龈齿弹舌:"yín chǐ dàn shé",因缘为市:"yīn yuán wéi shì",因树为屋:"yīn shù wéi wū",溢美溢恶:"yì měi yì wù",抑塞磊落:"yì sè lěi luò",倚闾望切:"yǐ lǘ wàng qiē",以意为之:"yǐ yì wéi zhī",以言为讳:"yǐ yán wéi huì",以疏间亲:"yǐ shū jiàn qīn",以水济水:"yǐ shuǐ jǐ shuǐ",以书为御:"yǐ shū wéi yù",以守为攻:"yǐ shǒu wéi gōng",以升量石:"yǐ shēng liáng dàn",以慎为键:"yǐ shèn wéi jiàn",以筌为鱼:"yǐ quán wéi yú",以利累形:"yǐ lì lěi xíng",以毁为罚:"yǐ huǐ wéi fá",以黑为白:"yǐ hēi wéi bái",以规为瑱:"yǐ guī wéi tiàn",以古为鉴:"yǐ gǔ wéi jiàn",以宫笑角:"yǐ gōng xiào jué",以法为教:"yǐ fǎ wéi jiào",以大恶细:"yǐ dà wù xì",遗世忘累:"yí shì wàng lěi",遗寝载怀:"yí qǐn zài huái",移的就箭:"yí dì jiù jiàn",依头缕当:"yī tóu lǚ dàng",衣租食税:"yì zū shí shuì",衣轻乘肥:"yì qīng chéng féi",衣裳之会:"yī shang zhī huì",衣单食薄:"yī dān shí bó",一还一报:"yì huán yí bào",叶公好龙:"yè gōng hào lóng",野调无腔:"yě diào wú qiāng",瑶池女使:"yáo chí nǚ shǐ",幺麽小丑:"yāo mó xiǎo chǒu",养精畜锐:"yǎng jīng xù ruì",卬首信眉:"áng shǒu shēn méi",洋洋纚纚:"yáng yáng sǎ sǎ",羊羔美酒:"yáng gāo měi jiǔ",扬风扢雅:"yáng fēng jié yǎ",燕昭市骏:"yān zhāo shì jùn",燕昭好马:"yān zhāo hǎo mǎ",燕石妄珍:"yān shí wàng zhēn",燕骏千金:"yān jùn qiān jīn",燕金募秀:"yān jīn mù xiù",燕驾越毂:"yān jià yuè gǔ",燕歌赵舞:"yān gē zhào wǔ",燕岱之石:"yān dài zhī shí",燕处危巢:"yàn chǔ wēi cháo",掞藻飞声:"shàn zǎo fēi shēng",偃革为轩:"yǎn gé wéi xuān",妍蚩好恶:"yán chī hǎo è",压良为贱:"yā liáng wéi jiàn",搀行夺市:"chān háng duó shì",泣数行下:"qì shù háng xià",当行出色:"dāng háng chū sè",秀出班行:"xiù chū bān háng",儿女成行:"ér nǚ chéng háng",大行大市:"dà háng dà shì",寻行数墨:"xún háng shǔ mò",埙篪相和:"xūn chí xiāng hè",血债累累:"xuè zhài lěi lěi",炫玉贾石:"xuàn yù gǔ shí",炫石为玉:"xuàn shí wéi yù",悬石程书:"xuán dàn chéng shū",悬狟素飡:"xuán huán sù cān",悬龟系鱼:"xuán guī xì yú",揎拳捋袖:"xuān quán luō xiù",轩鹤冠猴:"xuān hè guàn hóu",畜妻养子:"xù qī yǎng zǐ",羞人答答:"xiū rén dā dā",修鳞养爪:"xiū lín yǎng zhǎo",熊据虎跱:"xióng jù hǔ zhì",兄死弟及:"xiōng sǐ dì jí",腥闻在上:"xīng wén zài shàng",兴文匽武:"xīng wén yǎn wǔ",兴观群怨:"xìng guān qún yuàn",兴高彩烈:"xìng gāo cǎi liè",心手相应:"xīn shǒu xiāng yìng",心口相应:"xīn kǒu xiāng yīng",挟势弄权:"xié shì nòng quán",胁肩累足:"xié jiān lěi zú",校短量长:"jiào duǎn liáng cháng",小眼薄皮:"xiǎo yǎn bó pí",硝云弹雨:"xiāo yún dàn yǔ",鸮鸣鼠暴:"xiāo míng shǔ bào",削株掘根:"xuē zhū jué gēn",削铁无声:"xuē tiě wú shēng",削职为民:"xuē zhí wéi mín",削木为吏:"xuē mù wéi lì",想望风褱:"xiǎng wàng fēng huái",香培玉琢:"xiang pei yu zhuó",相鼠有皮:"xiàng shǔ yǒu pí",相时而动:"xiàng shí ér dòng",相切相磋:"xiāng qiē xiāng cuō",相女配夫:"xiàng nǚ pèi fū",相门有相:"xiàng mén yǒu xiàng",挦章撦句:"xián zhāng chě jù",先我着鞭:"xiān wǒ zhuó biān",习焉不察:"xí yān bù chá",歙漆阿胶:"shè qī ē jiāo",晰毛辨发:"xī máo biàn fà",悉索薄赋:"xī suǒ bó fù",雾鳞云爪:"wù lín yún zhǎo",物稀为贵:"wù xī wéi guì",碔砆混玉:"wǔ fū hùn yù",武断专横:"wǔ duàn zhuān héng",五石六鹢:"wǔ shí liù yì",五色相宣:"wǔ sè xiāng xuān",五侯七贵:"wǔ hóu qī guì",五侯蜡烛:"wǔ hòu là zhú",五羖大夫:"wǔ gǔ dà fū",吾自有处:"wú zì yǒu chǔ",无下箸处:"wú xià zhù chǔ",无伤无臭:"wú shāng wú xiù",无能为役:"wú néng wéi yì",无寇暴死:"wú kòu bào sǐ",无孔不钻:"wú kǒng bú zuàn",无间可乘:"wú jiān kě chéng",无间冬夏:"wú jiān dōng xià",无恶不为:"wú è bù wéi",无动为大:"wú dòng wéi dà",诬良为盗:"wū liáng wéi dào",握拳透爪:"wò quán tòu zhǎo",文武差事:"wén wǔ chāi shì",委委佗佗:"wēi wēi tuó tuó",惟日为岁:"wéi rì wéi suì",帷薄不修:"wéi bó bù xiū",为善最乐:"wéi shàn zuì lè",为山止篑:"wéi shān zhǐ kuì",为仁不富:"wéi rén bú fù",为裘为箕:"wéi qiú wéi jī",为民父母:"wéi mín fù mǔ",为虺弗摧:"wéi huǐ fú cuī",为好成歉:"wéi hǎo chéng qiàn",为鬼为蜮:"wéi guǐ wéi yù",望风响应:"wàng fēng xiǎng yīng",望尘僄声:"wàng chén piào shēng",往渚还汀:"wǎng zhǔ huán tīng",王贡弹冠:"wáng gòng dàn guàn",亡国大夫:"wáng guó dà fū",万贯家私:"wàn guàn jiā sī",晚食当肉:"wǎn shí dàng ròu",晚节不保:"wǎn jié bù bǎo",玩岁愒时:"wán suì kài shí",蛙蟆胜负:"wā má shèng fù",吞言咽理:"tūn yán yàn lǐ",颓垣断堑:"tuí yuán duàn qiàn",推干就湿:"tuī gàn jiù shī",剸繁决剧:"tuán fán jué jù",团头聚面:"tuán tóu jù miàn",兔丝燕麦:"tù sī yàn mài",兔头麞脑:"tù tóu zhāng nǎo",兔葵燕麦:"tù kuí yàn mài",吐哺握发:"tǔ bǔ wò fà",投传而去:"tóu zhuàn ér qù",头没杯案:"tóu mò bēi àn",头昏脑闷:"tóu hūn nǎo mèn",头会箕敛:"tóu kuài jī liǎn",头出头没:"tóu chū tóu mò",痛自创艾:"tòng zì chuāng yì",同恶相助:"tóng wù xiāng zhù",同恶相恤:"tóng wù xiāng xù",痌瘝在抱:"tōng guān zài bào",通文调武:"tōng wén diào wǔ",停留长智:"tíng liú zhǎng zhì",铁树开华:"tiě shù kāi huā",条贯部分:"tiáo guàn bù fēn",挑牙料唇:"tiǎo yá liào chún",挑么挑六:"tiāo yāo tiāo liù",挑唇料嘴:"tiǎo chún liào zuǐ",恬不为意:"tián bù wéi yì",恬不为怪:"tián bù wéi guài",天下为笼:"tiān xià wéi lóng",天台路迷:"tiān tái lù mí",天年不遂:"tiān nián bú suì",探囊胠箧:"tàn náng qū qiè",谭言微中:"tán yán wēi zhòng",谈言微中:"tán yán wēi zhòng",狧穅及米:"shì kāng jí mǐ",随物应机:"suí wù yīng jī",搜岩采干:"sōu yán cǎi gàn",宋斤鲁削:"sòng jīn lǔ xuē",松筠之节:"sōng yún zhī jié",四亭八当:"sì tíng bā dàng",四马攒蹄:"sì mǎ cuán tí",四不拗六:"sì bú niù liù",思所逐之:"sī suǒ zhú zhī",丝恩发怨:"sī ēn fà yuàn",硕望宿德:"shuò wàng xiǔ dé",铄古切今:"shuò gǔ qiē jīn",顺风而呼:"shùn fēng ér hū",顺风吹火:"shùn fēng chuī huǒ",水中著盐:"shuǐ zhōng zhuó yán",双柑斗酒:"shuāng gān dǒu jiǔ",数米而炊:"shǔ mǐ ér chuī",数米量柴:"shǔ mǐ liáng chái",数理逻辑:"shù lǐ luó ji",数黑论黄:"shǔ hēi lùn huáng",数白论黄:"shǔ bái lùn huáng",束缊还妇:"shù yūn huán fù",束蒲为脯:"shù pú wéi pú",束椽为柱:"shù chuán wéi zhù",书缺有间:"shū quē yǒu jiàn",手足重茧:"shǒu zú chóng jiǎn",手足异处:"shǒu zú yì chǔ",手脚干净:"shǒu jiǎo gàn jìng",手不应心:"shǒu bù yīng xīn",螫手解腕:"shì shǒu jiě wàn",释知遗形:"shì zhī yí xíng",适时应务:"shì shí yīng wù",适情率意:"shì qíng shuài yì",适当其冲:"shì dāng qí chōng",视为知己:"shì wéi zhī jǐ",使羊将狼:"shǐ yáng jiàng láng",食为民天:"shí wéi mín tiān",拾掇无遗:"shí duō wú yí",实与有力:"shí yù yǒu lì",石英玻璃:"shí yīng bō li",石室金匮:"shí shì jīn guì",什袭珍藏:"shí xí zhēn cáng",什伍东西:"shí wǔ dōng xī",什围伍攻:"shí wéi wǔ gōng",十魔九难:"shí mó jiǔ nàn",诗书发冢:"shī shū fà zhǒng",虱处裈中:"shī chǔ kūn zhōng",师直为壮:"shī zhí wéi zhuàng",尸居龙见:"shī jū lóng xiàn",圣经贤传:"shèng jīng xián zhuàn",圣君贤相:"shèng jūn xián xiàng",生拖死拽:"shēng tuō sǐ zhuài",审己度人:"shěn jǐ duó rén",神武挂冠:"shén wǔ guà guàn",神龙失埶:"shén lóng shī shì",深文曲折:"shēn wén qǔ shé",深厉浅揭:"shēn lì qiǎn qì",深谷为陵:"shēn gǔ wéi líng",深恶痛疾:"shēn wù tòng jí",深仇宿怨:"shēn chóu xiǔ yuàn",舍己为公:"shě jǐ wèi gōng",舍短取长:"shě duǎn qǔ cháng",舍策追羊:"shě cè zhuī yáng",蛇蝎为心:"shé xiē wéi xīn",少成若性:"shào chéng ruò xìng",上当学乖:"shàng dàng xué guāi",赏不当功:"shǎng bù dāng gōng",善自为谋:"shàn zì wéi móu",善为说辞:"shàn wéi shuō cí",善善恶恶:"shàn shàn wù è",善财难舍:"shàn cái nán shě",苫眼铺眉:"shān yǎn pū méi",讪牙闲嗑:"shàn yá xián kē",山阴乘兴:"shān yīn chéng xīng",山殽野湋:"shān yáo yě wéi",山溜穿石:"shān liù chuān shí",山节藻棁:"shān jié zǎo zhuō",杀鸡为黍:"shā jī wéi shǔ",色厉胆薄:"sè lì dǎn bó",桑荫未移:"sāng yīn wèi yí",桑荫不徙:"sāng yīn bù xǐ",桑土绸缪:"sāng tǔ chóu miù",桑户棬枢:"sāng hù juàn shū",三战三北:"sān zhàn sān běi",三瓦两舍:"sān wǎ liǎng shě",三人为众:"sān rén wèi zhòng",三差两错:"sān chā liǎng cuò",塞井焚舍:"sāi jǐng fén shě",洒心更始:"sǎ xīn gèng shǐ",洒扫应对:"sǎ sǎo yìng duì",软红香土:"ruǎn hóng xiāng tǔ",入吾彀中:"rù wú gòu zhōng",入铁主簿:"rù tiě zhǔ bù",入理切情:"rù lǐ qiē qíng",汝成人耶:"rǔ chéng rén yé",如水投石:"rú shuǐ tóu shí",如切如磋:"rú qiē rú cuō",如登春台:"rú dēng chūn tái",肉薄骨并:"ròu bó gǔ bìng",柔情绰态:"róu qíng chuò tài",戎马劻勷:"róng mǎ kuāng ráng",日中为市:"rì zhōng wéi shì",日月参辰:"rì yuè shēn chén",日省月修:"rì xǐng yuè xiū",日削月割:"rì xuē yuè gē",日省月试:"rì xǐng yuè shì",任达不拘:"rèn dá bù jū",人言藉藉:"rén yán jí jí",人模狗样:"rén mú gǒu yàng",人莫予毒:"rén mò yú dú",热熬翻饼:"rè áo fān bǐng",圈牢养物:"juàn láo yǎng wù",取予有节:"qǔ yǔ yǒu jié",诎要桡腘:"qū yāo ráo guó",穷形尽相:"qióng xíng jìn xiàng",情凄意切:"qíng qī yì qiè",情见势屈:"qíng xiàn shì qū",情见乎辞:"qíng xiàn hū cí",清都绛阙:"qīng dōu jiàng què",倾肠倒肚:"qīng cháng dào dǔ",青紫被体:"qīng zǐ pī tǐ",青林黑塞:"qīng lín hēi sài",螓首蛾眉:"qín shǒu é méi",琴瑟之好:"qín sè zhī hào",且住为佳:"qiě zhù wéi jiā",切树倒根:"qiē shù dǎo gēn",切理餍心:"qiē lǐ yàn xīn",切近的当:"qiē jìn de dāng",翘足引领:"qiáo zú yǐn lǐng",巧发奇中:"qiǎo fā qí zhòng",强嘴拗舌:"jiàng zuǐ niù shé",强直自遂:"qiáng zhí zì suí",强死强活:"qiǎng sǐ qiǎng huó",强食自爱:"qiǎng shí zì ài",强食靡角:"qiǎng shí mí jiǎo",强弓劲弩:"qiáng gōng jìng nǔ",强聒不舍:"qiǎng guō bù shě",强凫变鹤:"qiáng fú biàn hè",强而后可:"qiǎng ér hòu kě",强得易贫:"qiǎng dé yì pín",遣兴陶情:"qiǎn xìng táo qíng",牵羊担酒:"qiān yáng dān jiǔ",千了百当:"qiān liǎo bǎi dàng",泣下如雨:"qì xià rú yǔ",起偃为竖:"qǐ yǎn wéi shù",岂弟君子:"kǎi tì jūn zǐ",綦溪利跂:"qí xī lì qí",棋输先著:"qí shū xiān zhuó",齐王舍牛:"qí wáng shě niú",欺天诳地:"qī tiān kuáng dì",普天率土:"pǔ tiān shuài tǔ",铺胸纳地:"pū xiōng nà dì",铺锦列绣:"pū jǐn liè xiù",破家为国:"pò jiā wèi guó",破觚为圜:"pò gū wéi yuán",萍飘蓬转:"píng piāo péng zhuàn",帡天极地:"píng tiān jí dì",屏声息气:"bǐng shēng xī qì",凭几据杖:"píng jī jù zhàng",贫嘴薄舌:"pín zuǐ bó shé",片语只辞:"piàn yǔ zhī cí",披发文身:"pī fà wén shēn",烹龙炮凤:"pēng lóng páo fèng",炰鳖脍鲤:"fǒu biē kuài lǐ",庞眉皓发:"páng méi hào fà",攀花折柳:"pān huā zhé liǔ",攀蟾折桂:"pān chán shé guì",女大难留:"nǚ dà nán liú",弄玉吹箫:"nòng yù chuī xiāo",弄管调弦:"nòng guǎn tiáo xián",弄粉调朱:"nòng fěn diào zhū",浓抹淡妆:"nóng mò dàn zhuāng",捻土为香:"niǎn tǔ wéi xiāng",年谊世好:"nián yì shì hǎo",年华垂暮:"nián huá chuí mù",儗不于伦:"nǐ bù yú lún",泥而不滓:"ní ér bù zǐ",能者为师:"néng zhě wéi shī",能不称官:"néng bú chèn guān",挠直为曲:"náo zhí wéi qū",难进易退:"nán jìn yì tuì",难得糊涂:"nán dé hú tú",南蛮鴂舌:"nán mán jué shé",南贩北贾:"nán fàn běi gǔ",牧猪奴戏:"mù zhū nú xì",目眢心忳:"mù yuān xīn tún",目挑心招:"mù tiǎo xīn zhāo",目量意营:"mù liàng yì yíng",木头木脑:"mù tóu mù nǎo",木干鸟栖:"mù gàn niǎo qī",侔色揣称:"móu sè chuǎi chèn",莫予毒也:"mò yú dú yě",抹粉施脂:"mò fěn shī zhī",磨砻镌切:"mó lóng juān qiē",磨棱刓角:"mó léng wán jiǎo",摸门不着:"mō mén bù zháo",摸不着边:"mō bù zhuó biān",命中注定:"mìng zhōng zhù dìng",鸣鹤之应:"míng hè zhī yìng",明效大验:"míng xiào dà yàn",名我固当:"míng wǒ gù dāng",邈处欿视:"miǎo chǔ kǎn shì",黾穴鸲巢:"měng xué qú cháo",绵里薄材:"mián lǐ bó cái",靡有孑遗:"mǐ yǒu jié yí",靡衣偷食:"mǐ yī tōu shí",迷恋骸骨:"mí liàn hái gǔ",扪参历井:"mén shēn lì jǐng",门单户薄:"mén dān hù bó",昧旦晨兴:"mèi dàn chén xīng",冒名接脚:"mào míng jiē jiǎo",毛遂堕井:"máo suí duò jǐng",毛发倒竖:"máo fā dǎo shù",卖文为生:"mài wén wéi shēng",卖李钻核:"mài lǐ zuān hé",买椟还珠:"mǎi dú huán zhū",埋三怨四:"mán sān yuàn sì",马入华山:"mǎ rù huá shān",落魄江湖:"luò pò jiāng hú",落落难合:"luò luò nán hé",落草为寇:"luò cǎo wéi kòu",罗织构陷:"luó zhī gòu xiàn",鸾凤和鸣:"luán fèng hè míng",率由旧章:"shuài yóu jiù zhāng",率土同庆:"shuài tǔ tóng qìng",率兽食人:"shuài shòu shí rén",率土归心:"shuài tǔ guī xīn",率马以骥:"shuài mǎ yǐ jì",率尔成章:"shuài ěr chéng zhāng",鲁斤燕削:"lǔ jīn yàn xuē",漏尽更阑:"lòu jìn gēng lán",笼鸟槛猿:"lóng niǎo jiàn yuán",笼鸟池鱼:"lóng niǎo chí yú",龙游曲沼:"lóng yóu qū zhǎo",龙血玄黄:"lóng xuè xuán huáng",龙雕凤咀:"lóng diāo fèng jǔ",六尺之讬:"liù chǐ zhī tuō",令原之戚:"líng yuán zhī qī",令人捧腹:"lìng rén pěng fù",陵劲淬砺:"líng jìng cuì lì",临敌易将:"lín dí yì jiàng",裂裳衣疮:"liè shang yī chuāng",裂冠毁冕:"liè guàn huǐ miǎn",了无惧色:"liǎo wú jù sè",了身达命:"liǎo shēn dá mìng",了然无闻:"liǎo rán wú wén",了不可见:"liǎo bù kě jiàn",了不长进:"liǎo bù zhǎng jìn",燎发摧枯:"liǎo fà cuī kū",审时度势:"shěn shí duó shì",量小力微:"liàng xiǎo lì wēi",相时度力:"xiāng shí duó lì",量枘制凿:"liàng ruì zhì záo",量如江海:"liàng rú jiāng hǎi",量金买赋:"liàng jīn mǎi fù",量己审分:"liàng jǐ shěn fēn",敛骨吹魂:"liǎn gǔ chuī hún",詈夷为跖:"lì yí wéi zhí",利令志惛:"lì lìng zhì hūn",李广不侯:"lǐ guǎng bú hòu",礼为情貌:"lǐ wéi qíng mào",礼让为国:"lǐ ràng wéi guó",犁生骍角:"lí shēng xīng jiǎo",离本徼末:"lí běn jiǎo mò",楞眉横眼:"léng méi hèng yǎn",擂天倒地:"léi tiān dǎo dì",累足成步:"lěi zú chéng bù",累瓦结绳:"lěi wǎ jié shéng",累土至山:"lěi tǔ zhì shān",累土聚沙:"lěi tǔ jù shā",累卵之危:"lěi luǎn zhī wēi",累累如珠:"lěi lěi rú zhū",累块积苏:"lěi kuài jī sū",乐山乐水:"lè shān lè shuǐ",潦原浸天:"lǎo yuán jìn tiān",老师宿儒:"lǎo shī xiǔ rú",牢什古子:"láo shí gǔ zi",琅嬛福地:"láng huán fú dì",揆情度理:"kuí qíng duó lǐ",旷日累时:"kuàng rì lěi shí",匡救弥缝:"kuāng jiù mí fèng",枯树生华:"kū shù shēng huā",口轻舌薄:"kǒu qīng shé bó",口角生风:"kǒu jiǎo shēng fēng",口角春风:"kǒu jiǎo chūn fēng",口角风情:"kǒu jiǎo fēng qíng",口干舌焦:"kǒu gān shé jiāo",口腹之累:"kǒu fù zhī lěi",空腹便便:"kōng fù pián pián",嗑牙料嘴:"kē yá liào zuǐ",刻木为鹄:"kè mù wéi hú",咳珠唾玉:"ké zhū tuò yù",咳唾成珠:"ké tuò chéng zhū",抗颜为师:"kàng yán wéi shī",开华结果:"kāi huā jié guǒ",峻阪盐车:"jùn bǎn yán chē",嚼铁咀金:"jiáo tiě jǔ jīn",嚼墨喷纸:"jué mò pēn zhǐ",倔头强脑:"juè tóu jiàng nǎo",倔头倔脑:"juè tóu juè nǎo",倦鸟知还:"juàn niǎo zhī huán",卷席而葬:"juǎn xí ér zàng",卷甲倍道:"juǎn jiǎ bèi dào",聚米为山:"jù mǐ wéi shān",举手相庆:"jǔ shǒu xiāng qìng",举世混浊:"jǔ shì hún zhuó",鞠为茂草:"jū wéi mào cǎo",拘神遣将:"jū shén qiǎn jiàng",居下讪上:"jū xià shàn shàng",久要不忘:"jiǔ yāo bú wàng",九转功成:"jiǔ zhuǎn gōng chéng",九蒸三熯:"jiǔ zhēng sān hàn",敬业乐群:"jìng yè lè qún",井底虾蟆:"jǐng dǐ xiā má",旌旗卷舒:"jīng qí juǎn shū",荆棘载途:"jīng jí zài tú",禁舍开塞:"jìn shě kāi sāi",祲威盛容:"jìn wēi shèng róng",进退消长:"jìn tuì xiāo cháng",进退应矩:"jìn tuì yīng jǔ",进退触籓:"jìn tuì chù fān",进退跋疐:"jìn tuì bá zhì",尽多尽少:"jǐn duō jǐn shǎo",锦囊还矢:"jǐn náng huán shǐ",矜己自饰:"jīn jǐ zì shì",矜功负气:"jīn gōng fù qì",津关险塞:"jīn guān xiǎn sài",金吾不禁:"jīn wú bú jìn",金翅擘海:"jīn chì bāi hǎi",解衣衣人:"jiě yī yī rén",解人难得:"jiě rén nán dé",解铃系铃:"jiě líng xì líng",解发佯狂:"jiě fà yáng kuáng",诘屈磝碻:"jié qū áo qiāo",教猱升木:"jiāo náo shēng mù",较瘦量肥:"jiào shòu liàng féi",角立杰出:"jiǎo lì jié chū",焦沙烂石:"jiāo shā làn shí",骄儿騃女:"jiāo ér sì nǚ",浇风薄俗:"jiāo fēng bó sú",降妖捉怪:"xiáng yāo zhuō guài",将取固予:"jiāng qǔ gù yǔ",将门有将:"jiàng mén yǒu jiàng",将夺固与:"jiāng duó gù yǔ",槛花笼鹤:"jiàn huā lóng hè",鉴影度形:"jiàn yǐng duó xíng",渐不可长:"jiàn bù kě zhǎng",见素抱朴:"xiàn sù bào pǔ",见弃于人:"jiàn qì yú rén",简丝数米:"jiǎn sī shǔ mǐ",俭不中礼:"jiǎn bú zhòng lǐ",间见层出:"jiàn xiàn céng chū",尖嘴薄舌:"jiān zuǐ bó shé",甲冠天下:"jiǎ guàn tiān xià",葭莩之亲:"jiā fú zhī qīn",家累千金:"jiā lèi qiān jīn",家给人足:"jiā jǐ rén zú",家道从容:"jiā dào cóng róng",夹袋人物:"jiā dài rén wù",霁风朗月:"jì fēng lǎng yuè",寄兴寓情:"jì xìng yù qíng",计深虑远:"jì shēn lǜ yuǎn",计功量罪:"jì gōng liàng zuì",掎裳连襼:"jǐ shang lián yì",虮虱相吊:"jǐ shī xiāng diào",疾不可为:"jí bù kě wéi",极深研几:"jí shēn yán jī",及宾有鱼:"jí bīn yǒu yú",激薄停浇:"jī bó tíng jiāo",积素累旧:"jī sù lěi jiù",积时累日:"jī shí lěi rì",积露为波:"jī lù wéi bō",积德累功:"jī dé lěi gōng",积谗糜骨:"jī chán méi gǔ",击排冒没:"jī pái mào mò",祸为福先:"huò wéi fú xiān",祸福相依:"huò fú xiāng yī",获隽公车:"huò jùn gōng chē",混应滥应:"hùn yīng làn yīng",毁舟为杕:"huǐ zhōu wéi duò",毁钟为铎:"huǐ zhōng wéi duó",毁冠裂裳:"huǐ guān liè cháng",晦盲否塞:"huì máng pǐ sè",回船转舵:"huí chuán zhuàn duò",潢池盗弄:"huáng chí dào nòng",黄冠草履:"huáng guàn cǎo lǚ",黄发儿齿:"huáng fà ér chǐ",黄发垂髫:"huáng fà chuí tiáo",还珠返璧:"huán zhū fǎn bì",还年驻色:"huán nián zhù sè",还年却老:"huán nián què lǎo",坏裳为裤:"huài shang wéi kù",画荻和丸:"huà dí huò wán",化枭为鸠:"huà xiāo wéi jiū",化腐为奇:"huà fǔ wéi qí",化鸱为凤:"huà chī wéi fèng",花不棱登:"huā bu lēng dēng",户限为穿:"hù xiàn wéi chuān",呼卢喝雉:"hū lú hè zhì",呼来喝去:"hū lái hè qù",呼不给吸:"hū bù jǐ xī",厚味腊毒:"hòu wèi xī dú",厚德载物:"hòu dé zài wù",鸿渐于干:"hóng jiàn yú gàn",洪炉燎发:"hóng lú liáo fà",红绳系足:"hóng shéng jì zú",红不棱登:"hóng bu lēng dēng",横抢硬夺:"hèng qiǎng yìng duó",横恩滥赏:"hèng ēn làn shǎng",恨海难填:"hèn hǎi nán tián",鹤发鸡皮:"hè fà jī pí",涸思干虑:"hé sī gān lǜ",河涸海干:"hé hé hǎi gān",和颜说色:"hé yán yuè sè",合从连衡:"hé zòng lián héng",浩浩汤汤:"hào hào shāng shāng",好勇斗狠:"hào yǒng dòu hěn",好问则裕:"hào wèn zé yù",好为事端:"hào wéi shì duān",好问决疑:"hào wèn jué yí",好生之德:"hào shēng zhī dé",好奇尚异:"hǎo qí shàng yì",好恶不同:"hǎo è bù tóng",好丹非素:"hào dān fēi sù",豪干暴取:"háo gàn bào qǔ",毫发不爽:"háo fà bù shuǎng",寒酸落魄:"hán suān luò pò",含英咀华:"hán yīng jǔ huá",含糊不明:"hán hú bù míng",过为已甚:"guò wéi yǐ shèn",桂折兰摧:"guì shé lán cuī",规旋矩折:"guī xuán jǔ shé",广文先生:"guǎng wén xiān sheng",广陵散绝:"guǎng líng sǎn jué",冠山戴粒:"guàn shān dài lì",冠屦倒施:"guàn jù dǎo shī",挂席为门:"guà xí wéi mén",寡见鲜闻:"guǎ jiàn xiǎn wén",瓜葛相连:"guā gé xiāng lián",鼓吻奋爪:"gǔ wěn fèn zhǎo",古调单弹:"gǔ diào dān tán",古调不弹:"gǔ diào bù tán",姑射神人:"gū yè shén rén",苟合取容:"gǒu hé qǔ róng",狗续侯冠:"gǒu xù hòu guàn",钩爪锯牙:"gōu zhǎo jù yá",共枝别干:"gòng zhī bié gàn",共为唇齿:"gòng wéi chún chǐ",拱手而降:"gǒng shǒu ér xiáng",拱肩缩背:"gǒng jiān suō bèi",功薄蝉翼:"gōng bó chán yì",弓调马服:"gōng diào mǎ fú",更姓改物:"gēng xìng gǎi wù",更仆难数:"gēng pú nán shǔ",更令明号:"gēng lìng míng hào",更待干罢:"gèng dài gàn bà",更唱迭和:"gēng chàng dié hé",更长梦短:"gēng cháng mèng duǎn",各色名样:"gè sè míng yàng",格格不纳:"gé gé bú nà",格格不吐:"gé gé bù tǔ",告朔饩羊:"gù shuò xì yáng",膏车秣马:"gào chē mò mǎ",高义薄云:"gāo yì bó yún",岗头泽底:"gāng tóu zé dǐ",敢为敢做:"gǎn wéi gǎn zuò",甘分随时:"gān fèn suí shí",甘处下流:"gān chǔ xià liú",干啼湿哭:"gàn tí shī kū",干名犯义:"gàn míng fàn yì",干将莫邪:"gān jiāng mò yé",干城之将:"gān chéng zhī jiàng",腹载五车:"fù zài wǔ chē",父债子还:"fù zhài zǐ huán",父为子隐:"fù wéi zǐ yǐn",辅世长民:"fǔ shì zhǎng mín",福为祸始:"fú wéi huò shǐ",符号逻辑:"fú hào luó jí",浮收勒折:"fú shōu lè shé",肤受之愬:"fū shòu zhī sù",否终则泰:"pǐ zhōng zé tài",佛头著粪:"fó tóu zhuó fèn",奉为楷模:"fèng wéi kǎi mó",凤靡鸾吪:"fèng mǐ luán é",封豨修蛇:"fēng xī xiū shé",风影敷衍:"fēng yǐng fū yǎn",丰屋蔀家:"fēng wū bù jiā",粪土不如:"fèn tǔ bù rú",分风劈流:"fēn fēng pǐ liú",沸沸汤汤:"fèi fèi shāng shāng",菲食薄衣:"fěi shí bó yī",飞将数奇:"fēi jiàng shù qí",放辟邪侈:"fàng pì xié chǐ",方领圆冠:"fāng lǐng yuán guàn",犯而不校:"fàn ér bú jiào",返本还源:"fǎn běn huán yuán",反劳为逸:"fǎn láo wéi yì",法轮常转:"fǎ lún cháng zhuàn",罚不当罪:"fá bù dāng zuì",发引千钧:"fà yǐn qiān jūn",发奸擿伏:"fā jiān tī fú",发短心长:"fà duǎn xīn cháng",二竖为虐:"èr shù wéi nüè",儿女心肠:"ér nǚ xīn cháng",儿女亲家:"ér nǚ qìng jiā",遏恶扬善:"è wù yáng shàn",饿殍枕藉:"è piǎo zhěn jí",饿殍载道:"è piǎo zài dào",恶醉强酒:"wù zuì qiǎng jiǔ",恶意中伤:"è yì zhòng shāng",恶湿居下:"wù shī jū xià",恶居下流:"wù jū xià liú",恶不去善:"wù bú qù shàn",扼吭夺食:"è háng duó shí",扼襟控咽:"è jīn kòng yān",峨峨汤汤:"é é shāng shāng",屙金溺银:"ē jīn niào yín",朵颐大嚼:"duǒ yí dà jiáo",夺人所好:"duó rén suǒ hào",多言数穷:"duō yán shuò qióng",多文为富:"duō wén wéi fù",多端寡要:"duō duān guǎ yào",多财善贾:"duō cái shàn gǔ",遁世无闷:"dùn shì wú mèn",遁迹黄冠:"dùn jì huáng guàn",堆案盈几:"duī àn yíng jī",断还归宗:"duàn huán guī zōng",短见薄识:"duǎn jiàn bó shí",蠹居棊处:"dù jū qí chǔ",度己以绳:"duó jǐ yǐ shéng",杜默为诗:"dù mò wéi shī",杜鹃啼血:"dù juān tí xuè",笃近举远:"dǔ jìn jǔ yuǎn",独有千秋:"dú yǒu qiān qiū",读书得间:"dú shū dé jiàn",斗转参横:"dǒu zhuǎn shēn héng",兜肚连肠:"dōu dǔ lián cháng",洞见症结:"dòng jiàn zhèng jié",恫疑虚喝:"dòng yí xū hè",动中窾要:"dòng zhōng kuǎn yào",东鸣西应:"dōng míng xī yīng",东鳞西爪:"dōng lín xī zhǎo",东量西折:"dōng liàng xī shé",东家西舍:"dōng jiā xī shè",东扯西拽:"dōng chě xī zhuāi",鼎铛有耳:"dǐng chēng yǒu ěr",鼎铛玉石:"dǐng chēng yù shí",钉头磷磷:"dīng tóu lín lín",跌宕不羁:"diē dàng bù jī",跌弹斑鸠:"diē dàn bān jiū",雕心雁爪:"diāo xīn yàn zhǎo",颠倒衣裳:"diān dǎo yī cháng",德薄能鲜:"dé bó néng xiǎn",得马折足:"dé mǎ shé zú",蹈其覆辙:"dǎo qí fù zhé",捣虚撇抗:"dǎo xū piē kàng",倒载干戈:"dào zài gān gē",倒裳索领:"dào cháng suǒ lǐng",倒果为因:"dào guǒ wéi yīn",叨在知己:"tāo zài zhī jǐ",叨陪末座:"tāo péi mò zuò",党豺为虐:"dǎng chái wéi nüè",当轴处中:"dāng zhóu chǔ zhōng",当着不着:"dāng zhuó bù zhuó",当务始终:"dāng wù shǐ zhōng",淡汝浓抹:"dàn rǔ nóng mǒ",弹丸脱手:"tán wán tuō shǒu",弹铗无鱼:"dàn jiá wú yú",箪食瓢饮:"dān sì piáo yǐn",大璞不完:"dà pú bù wán",大明法度:"dà míng fǎ dù",大车以载:"dà chē yǐ zài",打闷葫芦:"dǎ mèn hú lu",沓来踵至:"tà lái zhǒng zhì",厝火燎原:"cuò huǒ liǎo yuán",撮科打哄:"cuō kē dǎ hòng",寸积铢累:"cùn jī zhū lěi",啛啛喳喳:"cuì cuì chā chā",摧折豪强:"cuī zhé háo qiáng",摧刚为柔:"cuī gāng wéi róu",从俗就简:"cóng sú jiù jiǎn",此发彼应:"cǐ fā bǐ yīng",此唱彼和:"cǐ chàng bǐ hè",慈悲为本:"cí bēi wéi běn",纯属骗局:"chún shǔ piàn jú",春笋怒发:"chūn sǔn nù fā",垂头搨翼:"chuí tóu tà yì",传为笑谈:"chuán wéi xiào tán",传风扇火:"chuán fēng shān huǒ",穿红着绿:"chuān hóng zhuó lǜ",触处机来:"chù chǔ jī lái",处尊居显:"chǔ zūn jū xiǎn",处堂燕雀:"chǔ táng yàn què",处实效功:"chǔ shí xiào gōng",处高临深:"chǔ gāo lín shēn",出入无间:"chū rù wú jiān",出门应辙:"chū mén yīng zhé",出处语默:"chū chǔ yǔ mò",出处殊途:"chū chǔ shū tú",出处进退:"chū chǔ jìn tuì",愁山闷海:"chóu shān mèn hǎi",冲冠眦裂:"chōng guàn zì liè",齿牙为祸:"chǐ yá wéi huò",尺二冤家:"chǐ èr yuān jia",尺短寸长:"chǐ duǎn cùn cháng",尺寸之功:"chǐ cùn zhī gōng",城北徐公:"chéng běi xú gōng",成败兴废:"chéng bài xīng fèi",趁水和泥:"chèn shuǐ huò ní",称雨道晴:"chēng yǔ dào qíng",称体载衣:"chēng tǐ zài yī",称体裁衣:"chèn tǐ cái yī",称家有无:"chèn jiā yǒu wú",称德度功:"chēng dé duó gōng",沉吟章句:"chén yín zhāng jù",沉吟不决:"chén yín bù jué",沉疴宿疾:"chén kē sù jí",扯纤拉烟:"chě qiàn lā yān",扯顺风旗:"chě shùn fēng qí",车载船装:"chē zǎi chuán zhuāng",朝升暮合:"zhāo shēng mù gě",朝攀暮折:"zhāo pān mù shé",超今冠古:"chāo jīn guàn gǔ",倡而不和:"chàng ér bú hè",畅所欲为:"chàng suǒ yù wéi",苌弘碧血:"cháng hóng bì xiě",长幼尊卑:"zhǎng yòu zūn bēi",长绳系日:"cháng shéng jì rì",长年三老:"zhǎng nián sān lǎo",长春不老:"cháng chūn bù lǎo",长傲饰非:"zhǎng ào shì fēi",昌亭旅食:"chāng tíng lǚ shí",禅絮沾泥:"chán xù zhān ní",差三错四:"chā sān cuò sì",层台累榭:"céng tái lěi xiè",层见迭出:"céng xiàn dié chū",藏踪蹑迹:"cáng zōng niè jì",苍蝇见血:"cāng yíng jiàn xiě",餐松啖柏:"cān sōng dàn bó",骖风驷霞:"cān fēng sì xiá",参伍错综:"cēn wǔ cuò zōng",参辰卯酉:"shēn chén mǎo yǒu",材优干济:"cái yōu gān jǐ",材薄质衰:"cái bó zhì shuāi",才大难用:"cái dà nán yòng",才薄智浅:"cái bó zhì qiǎn",不足为意:"bù zú wéi yì",不足为据:"bù zú wéi jù",不足为法:"bù zú wéi fǎ",不足齿数:"bù zú chǐ shǔ",不着疼热:"bù zhuó téng rè",不知薡蕫:"bù zhī dǐng dǒng",不越雷池:"bú yuè léi chí",不相为谋:"bù xiāng wéi móu",不贪为宝:"bù tān wéi bǎo",不了而了:"bù liǎo ér liǎo",不可揆度:"bù kě kuí duó",不遑启处:"bù huáng qǐ chǔ",不当不正:"bù dāng bú zhèng",不差什么:"bú chà shén me",不差累黍:"bù chā lěi shǔ",擘两分星:"bò liǎng fēn xīng",簸土扬沙:"bǒ tǔ yáng shā",薄物细故:"bó wù xì gù",薄寒中人:"bó hán zhòng rén",博文约礼:"bó wén yuē lǐ",播糠眯目:"bō kāng mí mù",剥皮抽筋:"bō pí chōu jīn",剥肤椎髓:"bō fū chuí suǐ",波属云委:"bō zhǔ yún wěi",波骇云属:"bō hài yún zhǔ",兵微将寡:"bīng wēi jiàng guǎ",兵强将勇:"bīng qiáng jiàng yǒng",兵多将广:"bīng duō jiàng guǎng",兵不由将:"bīng bù yóu jiàng",冰解的破:"bīng jiě dì pò",彬彬济济:"bīn bīn jǐ jǐ",摽梅之年:"biào méi zhī nián",表里为奸:"biǎo lǐ wéi jiān",飙发电举:"biāo fā diàn jǔ",变贪厉薄:"biàn tān lì bó",敝盖不弃:"bì gài bú qì",秕言谬说:"bǐ yán miù shuō",比物属事:"bǐ wù zhǔ shì",被山带河:"pī shān dài hé",被甲枕戈:"pī jiǎ zhěn gē",被甲据鞍:"pī jiǎ jù ān",被褐怀玉:"pī hè huái yù",被发缨冠:"pī fà yīng guàn",背曲腰躬:"bèi qǔ yāo gōng",北窗高卧:"běi chuāng gāo wò",北辰星拱:"běi chén xīng gǒng",北鄙之音:"běi bǐ zhī yīn",卑宫菲食:"bēi gōng fěi shí",暴衣露冠:"pù yī lù guàn",暴腮龙门:"pù sāi lóng mén",暴露文学:"bào lù wén xué",暴虎冯河:"bào hǔ píng hé",抱蔓摘瓜:"bào wàn zhāi guā",抱法处势:"bào fǎ chǔ shì",褒贬与夺:"bāo biǎn yǔ duó",帮闲钻懒:"bāng xián zuān lǎn",拜将封侯:"bài jiàng fēng hóu",百兽率舞:"bǎi shòu shuài wǔ",百孔千创:"bǎi kǒng qiān chuāng",白衣卿相:"bái yī qīng xiàng",白首为郎:"bái shǒu wéi láng",白首相知:"bái shǒu xiāng zhī",把玩无厌:"bǎ wán wú yàn",拔锅卷席:"bá guō juǎn xí",拔本塞源:"bá běn sè yuán",傲不可长:"ào bù kě zhǎng",熬更守夜:"áo gēng shǒu yè",安时处顺:"ān shí chǔ shùn",安身为乐:"ān shēn wéi lè",安老怀少:"ān lǎo huái shào",安步当车:"ān bù dàng chē",爱人好士:"ài rén hào shì",矮人观场:"ǎi rén guān chǎng",捱风缉缝:"ái fēng jī fèng",挨山塞海:"āi shān sè hǎi",阿家阿翁:"ā jiā ā wēng",阿党相为:"ē dǎng xiāng wéi",追亡逐北:"zhuī wáng zhú běi",竹篮打水:"zhú lán dá shuǐ",知疼着热:"zhī téng zháo rè",语不惊人:"yǔ bù jīng rén",于今为烈:"yú jīn wéi liè",一日三省:"yí rì sān xǐng",穴居野处:"xué jū yě chǔ",五脊六兽:"wǔ jǐ liù shòu",无声无臭:"wú shēng wú xiù",谓予不信:"wèi yú bú xìn",舍身为国:"shě shēn wéi guó",杀妻求将:"shā qī qiú jiàng",强作解人:"qiǎng zuò jiě rén",气冲斗牛:"qì chōng dǒu niú",临深履薄:"lín shēn lǚ bó",钧天广乐:"jūn tiān guǎng yuè",艰难竭蹶:"jiān nán jié jué",夹七夹八:"jiā qī jiā bā",混混噩噩:"hún hún è è",厚古薄今:"hòu gǔ bó jīn",鬼怕恶人:"guǐ pà è rén",伽马射线:"gā mǎ shè xiàn",佛头着粪:"fó tóu zhuó fèn",奉为至宝:"fèng wéi zhì bǎo",登坛拜将:"dēng tán bài jiàng",晨昏定省:"chén hūn dìng xǐng",察察为明:"chá chá wéi míng",博闻强识:"bó wén qiáng zhì",避难就易:"bì nán jiù yì",了无生机:"liǎo wú shēng jī",有一说一:"yǒu yī shuō yī",独一无二:"dú yī wú èr",说一不二:"shuō yī bù èr",举一反三:"jǔ yī fǎn sān",数一数二:"shǔ yī shǔ èr",杀一儆百:"shā yī jǐng bǎi",丁一卯二:"dīng yī mǎo èr",丁一确二:"dīng yī què èr",不一而止:"bù yī ér zhǐ",无一幸免:"wú yī xìng miǎn",表里不一:"biǎo lǐ bù yī",良莠不一:"liáng yǒu bù yī",心口不一:"xīn kǒu bù yī",言行不一:"yán xíng bù yī",政令不一:"zhèng lìng bù yī",参差不一:"cēn cī bù yī",纷纷不一:"fēn fēn bù yī",毁誉不一:"huǐ yù bù yī",不一而三:"bù yī ér sān",百不一遇:"bǎi bù yī yù",言行抱一:"yán xíng bào yī",瑜百瑕一:"yú bǎi xiá yī",背城借一:"bèi chéng jiè yī",凭城借一:"píng chéng jiè yī",劝百讽一:"quàn bǎi fěng yī",群居和一:"qún jū hé yī",百不获一:"bǎi bù huò yī",百不失一:"bǎi bù shī yī",百无失一:"bǎi wú shī yī",万不失一:"wàn bù shī yī",万无失一:"wàn wú shī yī",合而为一:"hé ér wéi yī",合两为一:"hé liǎng wéi yī",合二为一:"hé èr wéi yī",天下为一:"tiān xià wéi yī",相与为一:"xiāng yǔ wéi yī",较若画一:"jiào ruò huà yī",较如画一:"jiào rú huà yī",斠若画一:"jiào ruò huà yī",言行若一:"yán xíng ruò yī",始终若一:"shǐ zhōng ruò yī",终始若一:"zhōng shǐ ruò yī",惟精惟一:"wéi jīng wéi yī",众多非一:"zhòng duō fēi yī",不能赞一:"bù néng zàn yī",问一答十:"wèn yī dá shí",一不扭众:"yī bù niǔ zhòng",一以贯之:"yī yǐ guàn zhī",一以当百:"yī yǐ dāng bǎi",百不当一:"bǎi bù dāng yī",十不当一:"shí bù dāng yī",以一警百:"yǐ yī jǐng bǎi",以一奉百:"yǐ yī fèng bǎi",以一持万:"yǐ yī chí wàn",以一知万:"yǐ yī zhī wàn",百里挑一:"bǎi lǐ tiāo yī",整齐划一:"zhěng qí huà yī",一来二去:"yī lái èr qù",一路公交:"yī lù gōng jiāo",一路汽车:"yī lù qì chē",一路巴士:"yī lù bā shì",朝朝朝落:"zhāo cháo zhāo luò",曲意逢迎:"qū yì féng yíng",一行不行:"yì háng bù xíng",行行不行:"háng háng bù xíng"},rg=Object.keys(Pn).map(n=>({zh:n,pinyin:Pn[n],probability:2e-8,length:4,priority:p.Normal,dict:Symbol("dict4")})),Tn={巴尔干半岛:"bā ěr gàn bàn dǎo",巴尔喀什湖:"bā ěr kā shí hú",不幸而言中:"bú xìng ér yán zhòng",布尔什维克:"bù ěr shí wéi kè",何乐而不为:"hé lè ér bù wéi",苛政猛于虎:"kē zhèng měng yú hǔ",蒙得维的亚:"méng dé wéi dì yà",民以食为天:"mín yǐ shí wéi tiān",事后诸葛亮:"shì hòu zhū gě liàng",物以稀为贵:"wù yǐ xī wéi guì",先下手为强:"xiān xià shǒu wéi qiáng",行行出状元:"háng háng chū zhuàng yuan",亚得里亚海:"yà dé lǐ yà hǎi",眼不见为净:"yǎn bú jiàn wéi jìng",竹筒倒豆子:"zhú tǒng dào dòu zi"},bg=Object.keys(Tn).map(n=>({zh:n,pinyin:Tn[n],probability:2e-8,length:5,priority:p.Normal,dict:Symbol("dict5")}));function Dn(n,i){return n&&(n.decimali.probability)?n:i}function Mn(n){n.probability<1e-300&&(n.probability*=1e300,n.decimal+=1)}function ag(n){return n.priority===p.Custom?-(n.length*n.length*100):n.priority===p.Surname?-(n.length*n.length*10):0}function xg(n,i){const g=[];let u=n.length-1,h=n[u];for(let s=i-1;s>=0;s--){const o=s+1>=i?{probability:1,decimal:0,patterns:[]}:g[s+1];for(;h&&h.index+h.length-1===s;){const z=h.index,l={probability:h.probability*o.probability,decimal:o.decimal+ag(h),patterns:o.patterns,concatPattern:h};Mn(l),g[z]=Dn(g[z],l),h=n[--u]}const t={probability:1e-13*o.probability,decimal:0,patterns:o.patterns};Mn(t),g[s]=Dn(g[s],t),g[s].concatPattern&&(g[s].patterns=g[s].patterns.concat(g[s].concatPattern),g[s].concatPattern=void 0,delete g[s+1])}return g[0].patterns.reverse()}function Cn(n,i){return n&&n.count<=i.count?n:i}function mg(n){return n.priority===p.Custom?-(n.length*n.length*1e5):n.priority===p.Surname?-(n.length*n.length*100):1}function fg(n,i){const g=[];let u=n.length-1,h=n[u];for(let s=i-1;s>=0;s--){const o=s+1>=i?{count:0,patterns:[]}:g[s+1];for(;h&&h.index+h.length-1===s;){const z=h.index,l={count:mg(h)+o.count,patterns:o.patterns,concatPattern:h};g[z]=Cn(g[z],l),h=n[--u]}const t={count:1+o.count,patterns:o.patterns};g[s]=Cn(g[s],t),g[s].concatPattern&&(g[s].patterns=g[s].patterns.concat(g[s].concatPattern),g[s].concatPattern=void 0,delete g[s+1])}return g[0].patterns.reverse()}function wg(n,i){return!(i.index+i.length<=n.index||i.priority>n.priority||i.priority===n.priority&&i.length>n.length)}function qg(n){const i=[];for(let g=n.length-1;g>=0;){const{index:u}=n[g];let h=g-1;for(;h>=0&&wg(n[g],n[h]);)h--;(h<0||n[h].index+n[h].length<=u)&&i.push(n[g]),g=h}return i.reverse()}var En;(function(n){n[n.ReverseMaxMatch=1]="ReverseMaxMatch",n[n.MaxProbability=2]="MaxProbability",n[n.MinTokenization=3]="MinTokenization"})(En||(En={}));class In{constructor(i,g="",u=""){this.children=new Map,this.fail=null,this.patterns=[],this.parent=i,this.prefix=g,this.key=u}}class pg{constructor(){this.dictMap=new Map,this.queues=[],this.root=new In(null)}build(i){this.buildTrie(i),this.buildFailPointer()}buildTrie(i){for(let g of i){const u=Y(g.zh);let h=this.root;for(let s=0;s{i=i.concat(u)}),this.queues=[];i.length>g;){let u=i[g++],h=u.parent&&u.parent.fail,s=u.key;for(;h&&!h.children.has(s);)h=h.fail;h?u.fail=h.children.get(s):u.fail=this.root}}addPatternToDictMap(i){this.dictMap.has(i.dict)||this.dictMap.set(i.dict,new Set),this.dictMap.get(i.dict).add(i)}addNodeToQueues(i){this.queues[P(i.prefix)]||(this.queues[P(i.prefix)]=[]),this.queues[P(i.prefix)].push(i)}insertPattern(i,g){for(let u=i.length-1;u>=0;u--){const h=i[u];if(g.priority===h.priority&&g.probability>=h.probability)i[u+1]=h;else if(g.priority>h.priority)i[u+1]=h;else{i[u+1]=g;return}}i[0]=g}removeDict(i){this.dictMap.has(i)&&(this.dictMap.get(i).forEach(u=>{u.node.patterns=u.node.patterns.filter(h=>h!==u)}),this.dictMap.delete(i))}match(i,g){let u=this.root,h=[];const s=Y(i);for(let o=0;og==="off"?c.priority!==p.Surname:g==="head"?c.length-1-o===0:!0);z&&h.push(Object.assign(Object.assign({},z),{index:o-z.length+1}));let l=u.fail;for(;l!==null;){const c=l.patterns.find(e=>g==="off"?e.priority!==p.Surname:g==="head"?e.length-1-o===0:!0);c&&h.push(Object.assign(Object.assign({},c),{index:o-c.length+1})),l=l.fail}}}return h}search(i,g,u=2){const h=this.match(i,g);return u===1?qg(h):u===3?fg(h,P(i)):xg(h,P(i))}}const kg=[...bg,...rg,...jg,...dg,...og,...yg],Rn=new pg;Rn.build(kg);const vg=new Bn,Sg=()=>vg,R=n=>{const i=T.get(n);return i?i.split(" ")[0]:n},Pg=(n,i,g,u)=>{const h=Rn.search(n,g,u);let s=0;const o=Y(n);for(let t=0;tn.replace(/(ā|á|ǎ|à)/g,"a").replace(/(ō|ó|ǒ|ò)/g,"o").replace(/(ē|é|ě|è)/g,"e").replace(/(ī|í|ǐ|ì)/g,"i").replace(/(ū|ú|ǔ|ù)/g,"u").replace(/(ǖ|ǘ|ǚ|ǜ)/g,"ü").replace(/(n̄|ń|ň|ǹ)/g,"n").replace(/(m̄|ḿ|m̌|m̀)/g,"m").replace(/(ê̄|ế|ê̌|ề)/g,"ê"),An=(n,i="off")=>{const g=Sg();let u=T.get(n)?T.get(n).split(" "):[];if(g.get(n))u=g.get(n).split(" ");else if(i!=="off"){const h=un[n];h&&(u=[h].concat(u.filter(s=>s!==h)))}return u},Tg=(n,i="off")=>{let g=An(n,i);return g.length>0?g.map(u=>({origin:n,result:u,isZh:!0,originPinyin:u})):[{origin:n,result:n,isZh:!1,originPinyin:n}]},X=(n,i)=>{const g=n.split(" "),u=[],h=[];for(let s of g)for(let o of ng)if(s.startsWith(o)){let t=s.slice(o.length);ig.indexOf(o)!==-1&&gg.indexOf(t)!==-1&&(t=hg[t]),u.push(o),h.push(t);break}return i==="standard"&&u.forEach((s,o)=>{(s==="y"||s==="w")&&(u[o]="")}),{final:h.join(" "),initial:u.join(" ")}},F=n=>{const{final:i}=X(n);let g="",u="",h="";return ug.indexOf(U(i))!==-1?(g=i[0],u=i[1],h=i.slice(2)):(u=i[0]||"",h=i.slice(1)||""),{head:g,body:u,tail:h}},G=n=>{const i=/(ā|ō|ē|ī|ū|ǖ|n̄|m̄|ê̄)/,g=/(á|ó|é|í|ú|ǘ|ń|ḿ|ế)/,u=/(ǎ|ǒ|ě|ǐ|ǔ|ǚ|ň|m̌|ê̌)/,h=/(à|ò|è|ì|ù|ǜ|ǹ|m̀|ề)/,s=/(a|o|e|i|u|ü|ê)/,o=/(n|m)$/,t=[];return n.split(" ").forEach(l=>{i.test(l)?t.push("1"):g.test(l)?t.push("2"):u.test(l)?t.push("3"):h.test(l)?t.push("4"):s.test(l)||o.test(l)?t.push("0"):t.push("")}),t.join(" ")},Dg=(n,i)=>{const g=U(n).split(" "),u=G(i).split(" "),h=[];return g.forEach((s,o)=>{h.push(`${s}${u[o]}`)}),h.join(" ")},$n=(n,i)=>{const g=[];return n.split(" ").forEach(h=>{g.push(i?h[0]:h)}),g.join(" ")},Mg=n=>typeof n!="string"?(console.error("The first param of pinyin is error: "+n+' is not assignable to type "string".'),!1):!0;function gn(n,i){return i instanceof RegExp?i.test(n):!0}const Cg=(n,i)=>{let g=i.nonZh;if(g==="removed")return n.filter(u=>u.isZh||!gn(u.origin,i.nonZhScope));if(g==="consecutive"){for(let u=n.length-2;u>=0;u--){const h=n[u],s=n[u+1];!h.isZh&&!s.isZh&&gn(h.origin,i.nonZhScope)&&gn(s.origin,i.nonZhScope)&&(h.origin+=s.origin,h.result+=s.result,s.delete=!0)}return n.filter(u=>!u.delete)}else return n},_n=(n,i)=>P(n)===1&&i.multiple?Tg(n,i.surname):!1,Eg=(n,i)=>{switch(i.pattern){case"pinyin":break;case"num":n.forEach(g=>{g.result=g.isZh?G(g.result):""});break;case"initial":n.forEach(g=>{g.result=g.isZh?X(g.result,i.initialPattern).initial:""});break;case"final":n.forEach(g=>{g.result=g.isZh?X(g.result,i.initialPattern).final:""});break;case"first":n.forEach(g=>{g.result=$n(g.result,g.isZh)});break;case"finalHead":n.forEach(g=>{g.result=g.isZh?F(g.result).head:""});break;case"finalBody":n.forEach(g=>{g.result=g.isZh?F(g.result).body:""});break;case"finalTail":n.forEach(g=>{g.result=g.isZh?F(g.result).tail:""});break}},Ig=(n,i)=>{switch(i.toneType){case"symbol":break;case"none":n.forEach(g=>{g.isZh&&(g.result=U(g.result))});break;case"num":{n.forEach(g=>{g.isZh&&(g.result=Dg(g.result,g.originPinyin))});break}}},_g=(n,i)=>{i.v&&n.forEach(g=>{g.isZh&&(g.result=g.result.replace(/ü/g,typeof i.v=="string"?i.v:"v"))})},Zg=(n,i,g)=>{if(i.multiple&&P(g)===1){let u="";n=n.filter(h=>{const s=h.result!==u;return u=h.result,s})}return i.type==="array"?n.map(u=>u.result):i.type==="all"?n.map(u=>{const h=u.isZh?u.result:"",{initial:s,final:o}=X(h,i.initialPattern),{head:t,body:z,tail:l}=F(h);let c=[];return h!==""&&(c=[h].concat(An(u.origin,i.surname).filter(e=>e!==h))),{origin:u.origin,pinyin:h,initial:s,final:o,first:$n(u.result,u.isZh),finalHead:t,finalBody:z,finalTail:l,num:Number(G(u.originPinyin)),isZh:u.isZh,polyphonic:c,inZhRange:!!T.get(u.origin),result:u.result}}):n.map(u=>u.result).join(i.separator)},Ng=(n,i)=>(i===!1&&n.forEach(g=>{g.origin==="一"?g.result=g.originPinyin="yī":g.origin==="不"&&(g.result=g.originPinyin="bù")}),n),Vg={pattern:"pinyin",toneType:"symbol",type:"string",multiple:!1,mode:"normal",removeNonZh:!1,nonZh:"spaced",v:!1,separator:" ",toneSandhi:!0,segmentit:2};function Ag(n,i){if(i=Object.assign(Object.assign({},Vg),i||{}),!Mg(n))return n;if(n==="")return i.type==="array"||i.type==="all"?[]:"";i.surname===void 0&&(i.mode==="surname"?i.surname="all":i.surname="off"),i.type==="all"&&(i.pattern="pinyin"),i.pattern==="num"&&(i.toneType="none"),i.removeNonZh&&(i.nonZh="removed");let u=Array(P(n)),{list:h}=Pg(n,u,i.surname,i.segmentit);return h=Ng(h,i.toneSandhi),h=Cg(h,i),_n(n,i)&&(h=_n(n,i)),Eg(h,i),Ig(h,i),_g(h,i),Zg(h,i,n)}var sn;(function(n){n[n.AllSegment=1]="AllSegment",n[n.AllArray=2]="AllArray",n[n.AllString=3]="AllString",n[n.PinyinSegment=4]="PinyinSegment",n[n.PinyinArray=5]="PinyinArray",n[n.PinyinString=6]="PinyinString",n[n.ZhSegment=7]="ZhSegment",n[n.ZhArray=8]="ZhArray",n[n.ZhString=9]="ZhString"})(sn||(sn={}));sn.AllSegment;export{Yi as V,Rg as _,Ag as p}; +import{a0 as _,a5 as v,aI as Yn,aj as Zn,a6 as L,aQ as Nn,bv as Fn,bw as O,b4 as Un,bx as Xn,aY as Qn,g as Gn,p as Jn,b7 as Kn,bl as ni,by as ii,aB as yn,bk as gi,X as hi,bc as ui,bz as si,a3 as oi,b as ti,aG as li,$ as hn,bA as ci,ay as G,bB as zi,a7 as ei,bC as yi,aV as di,aH as ji,c as ri,i as C,d as S,at as bi,ac as ai,E as dn,bs as xi,bn as mi,F as Vn,bh as fi,m as wi,ae as qi,bi as pi,bD as ki,bm as vi,bE as Si,bt as Pi,h as Ti,bF as Di,bG as Mi,_ as Ci,aR as Ei,bH as J,j as H,B as K,o as B,w as k,t as W,P as Ii,A as _i,G as Zi,Q as jn,ap as rn,C as nn,aq as Ni,v as bn}from"./index-GyS8nTIx.js";import{V as Vi,a as Bi}from"./VAppBarTitle-CUv9Ys4F.js";function Li(n){let{rootEl:i,isSticky:g,layoutItemStyles:u}=n;const h=_(!1),s=_(0),o=v(()=>{const l=typeof h.value=="boolean"?"top":h.value;return[g.value?{top:"auto",bottom:"auto",height:void 0}:void 0,h.value?{[l]:Yn(s.value)}:{top:u.value.top}]});Zn(()=>{L(g,l=>{l?window.addEventListener("scroll",z,{passive:!0}):window.removeEventListener("scroll",z)},{immediate:!0})}),Nn(()=>{window.removeEventListener("scroll",z)});let t=0;function z(){const l=t>window.scrollY?"up":"down",c=i.value.getBoundingClientRect(),e=parseFloat(u.value.top??0),j=window.scrollY-Math.max(0,s.value-e),a=c.height+Math.max(s.value,e)-window.scrollY-window.innerHeight,f=parseFloat(getComputedStyle(i.value).getPropertyValue("--v-body-scroll-y"))||0;c.height0;g--){if(n[g].t===n[g-1].t)continue;const u=an(i),h=(n[g].d-n[g-1].d)/(n[g].t-n[g-1].t);i+=(h-u)*Math.abs(h),g===n.length-1&&(i*=.5)}return an(i)*1e3}function $i(){const n={};function i(h){Array.from(h.changedTouches).forEach(s=>{(n[s.identifier]??(n[s.identifier]=new Fn(Ai))).push([h.timeStamp,s])})}function g(h){Array.from(h.changedTouches).forEach(s=>{delete n[s.identifier]})}function u(h){var l;const s=(l=n[h])==null?void 0:l.values().reverse();if(!s)throw new Error(`No samples for touch id ${h}`);const o=s[0],t=[],z=[];for(const c of s){if(o[0]-c[0]>Ri)break;t.push({t:c[0],d:c[1].clientX}),z.push({t:c[0],d:c[1].clientY})}return{x:xn(t),y:xn(z),get direction(){const{x:c,y:e}=this,[j,a]=[Math.abs(c),Math.abs(e)];return j>a&&c>=0?"right":j>a&&c<=0?"left":a>j&&e>=0?"down":a>j&&e<=0?"up":Hi()}}}return{addMovement:i,endTouch:g,getVelocity:u}}function Hi(){throw new Error}function Wi(n){let{el:i,isActive:g,isTemporary:u,width:h,touchless:s,position:o}=n;Zn(()=>{window.addEventListener("touchstart",D,{passive:!0}),window.addEventListener("touchmove",M,{passive:!1}),window.addEventListener("touchend",A,{passive:!0})}),Nn(()=>{window.removeEventListener("touchstart",D),window.removeEventListener("touchmove",M),window.removeEventListener("touchend",A)});const t=v(()=>["left","right"].includes(o.value)),{addMovement:z,endTouch:l,getVelocity:c}=$i();let e=!1;const j=_(!1),a=_(0),f=_(0);let w;function Z(y,d){return(o.value==="left"?y:o.value==="right"?document.documentElement.clientWidth-y:o.value==="top"?y:o.value==="bottom"?document.documentElement.clientHeight-y:I())-(d?h.value:0)}function N(y){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=o.value==="left"?(y-f.value)/h.value:o.value==="right"?(document.documentElement.clientWidth-y-f.value)/h.value:o.value==="top"?(y-f.value)/h.value:o.value==="bottom"?(document.documentElement.clientHeight-y-f.value)/h.value:I();return d?Qn(r):r}function D(y){if(s.value)return;const d=y.changedTouches[0].clientX,r=y.changedTouches[0].clientY,b=25,x=o.value==="left"?ddocument.documentElement.clientWidth-b:o.value==="top"?rdocument.documentElement.clientHeight-b:I(),m=g.value&&(o.value==="left"?ddocument.documentElement.clientWidth-h.value:o.value==="top"?rdocument.documentElement.clientHeight-h.value:I());(x||m||g.value&&u.value)&&(w=[d,r],f.value=Z(t.value?d:r,g.value),a.value=N(t.value?d:r),e=f.value>-20&&f.value<80,l(y),z(y))}function M(y){const d=y.changedTouches[0].clientX,r=y.changedTouches[0].clientY;if(e){if(!y.cancelable){e=!1;return}const x=Math.abs(d-w[0]),m=Math.abs(r-w[1]);(t.value?x>m&&x>3:m>x&&m>3)?(j.value=!0,e=!1):(t.value?m:x)>3&&(e=!1)}if(!j.value)return;y.preventDefault(),z(y);const b=N(t.value?d:r,!1);a.value=Math.max(0,Math.min(1,b)),b>1?f.value=Z(t.value?d:r,!0):b<0&&(f.value=Z(t.value?d:r,!1))}function A(y){if(e=!1,!j.value)return;z(y),j.value=!1;const d=c(y.changedTouches[0].identifier),r=Math.abs(d.x),b=Math.abs(d.y);(t.value?r>b&&r>400:b>r&&b>3)?g.value=d.direction===({left:"right",right:"left",top:"down",bottom:"up"}[o.value]||I()):g.value=a.value>.5}const V=v(()=>j.value?{transform:o.value==="left"?`translateX(calc(-100% + ${a.value*h.value}px))`:o.value==="right"?`translateX(calc(100% - ${a.value*h.value}px))`:o.value==="top"?`translateY(calc(-100% + ${a.value*h.value}px))`:o.value==="bottom"?`translateY(calc(100% - ${a.value*h.value}px))`:I(),transition:"none"}:void 0);return O(j,()=>{var r,b;const y=((r=i.value)==null?void 0:r.style.transform)??null,d=((b=i.value)==null?void 0:b.style.transition)??null;Un(()=>{var x,m,E,$;(m=i.value)==null||m.style.setProperty("transform",((x=V.value)==null?void 0:x.transform)||"none"),($=i.value)==null||$.style.setProperty("transition",((E=V.value)==null?void 0:E.transition)||null)}),Xn(()=>{var x,m;(x=i.value)==null||x.style.setProperty("transform",y),(m=i.value)==null||m.style.setProperty("transition",d)})}),{isDragging:j,dragProgress:a,dragStyles:V}}function I(){throw new Error}const Oi=["start","end","left","right","top","bottom"],Yi=Jn({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:n=>Oi.includes(n)},sticky:Boolean,...Di(),...Ti(),...Pi(),...Si({mobile:null}),...vi(),...ki(),...pi(),...qi(Mi(),["disableInitialFocus"]),...wi({tag:"nav"}),...fi()},"VNavigationDrawer"),Fi=Gn()({name:"VNavigationDrawer",props:Yi(),emits:{"update:modelValue":n=>!0,"update:rail":n=>!0},setup(n,i){let{attrs:g,emit:u,slots:h}=i;const{isRtl:s}=Kn(),{themeClasses:o}=ni(n),{borderClasses:t}=ii(n),{backgroundColorClasses:z,backgroundColorStyles:l}=yn(()=>n.color),{elevationClasses:c}=gi(n),{displayClasses:e,mobile:j}=hi(n),{roundedClasses:a}=ui(n),f=si(),w=oi(n,"modelValue",null,q=>!!q),{ssrBootStyles:Z}=ti(),{scopeId:N}=li(),D=hn(),M=_(!1),{runOpenDelay:A,runCloseDelay:V}=xi(n,q=>{M.value=q}),y=v(()=>n.rail&&n.expandOnHover&&M.value?Number(n.width):Number(n.rail?n.railWidth:n.width)),d=v(()=>ci(n.location,s.value)),r=G(()=>n.persistent),b=v(()=>!n.permanent&&(j.value||n.temporary)),x=v(()=>n.sticky&&!b.value&&d.value!=="bottom");zi(n,{isActive:w,localTop:b,contentEl:D}),O(()=>n.expandOnHover&&n.rail!=null,()=>{L(M,q=>u("update:rail",!q))}),O(()=>!n.disableResizeWatcher,()=>{L(b,q=>!n.permanent&&ei(()=>w.value=!q))}),O(()=>!n.disableRouteWatcher&&!!f,()=>{L(f.currentRoute,()=>b.value&&(w.value=!1))}),L(()=>n.permanent,q=>{q&&(w.value=!0)}),n.modelValue==null&&!b.value&&(w.value=n.permanent||!j.value);const{isDragging:m,dragProgress:E}=Wi({el:D,isActive:w,isTemporary:b,width:y,touchless:G(()=>n.touchless),position:d}),$=v(()=>{const q=b.value?0:n.rail&&n.expandOnHover?Number(n.railWidth):y.value;return m.value?q*E.value:q}),{layoutItemStyles:on,layoutItemScrimStyles:Hn}=yi({id:n.name,order:v(()=>parseInt(n.order,10)),position:d,layoutSize:$,elementSize:y,active:di(w),disableTransitions:G(()=>m.value),absolute:v(()=>n.absolute||x.value&&typeof tn.value!="string")}),{isStuck:tn,stickyStyles:Wn}=Li({rootEl:D,isSticky:x,layoutItemStyles:on}),ln=yn(()=>typeof n.scrim=="string"?n.scrim:null),On=v(()=>({...m.value?{opacity:E.value*.2,transition:"none"}:void 0,...Hn.value}));return ji({VList:{bgColor:"transparent"}}),ri(()=>{const q=h.image||n.image;return C(Vn,null,[S(n.tag,dn({ref:D,onMouseenter:A,onMouseleave:V,class:["v-navigation-drawer",`v-navigation-drawer--${d.value}`,{"v-navigation-drawer--expand-on-hover":n.expandOnHover,"v-navigation-drawer--floating":n.floating,"v-navigation-drawer--is-hovering":M.value,"v-navigation-drawer--rail":n.rail,"v-navigation-drawer--temporary":b.value,"v-navigation-drawer--persistent":r.value,"v-navigation-drawer--active":w.value,"v-navigation-drawer--sticky":x.value},o.value,z.value,t.value,e.value,c.value,a.value,n.class],style:[l.value,on.value,Z.value,Wn.value,n.style],inert:!w.value},N,g),{default:()=>{var cn,zn,en;return[q&&C("div",{key:"image",class:"v-navigation-drawer__img"},[h.image?S(ai,{key:"image-defaults",disabled:!n.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:n.image}}},h.image):S(bi,{key:"image-img",alt:"",cover:!0,height:"inherit",src:n.image},null)]),h.prepend&&C("div",{class:"v-navigation-drawer__prepend"},[(cn=h.prepend)==null?void 0:cn.call(h)]),C("div",{class:"v-navigation-drawer__content"},[(zn=h.default)==null?void 0:zn.call(h)]),h.append&&C("div",{class:"v-navigation-drawer__append"},[(en=h.append)==null?void 0:en.call(h)])]}}),S(mi,{name:"fade-transition"},{default:()=>[b.value&&(m.value||w.value)&&!!n.scrim&&C("div",dn({class:["v-navigation-drawer__scrim",ln.backgroundColorClasses.value],style:[On.value,ln.backgroundColorStyles.value],onClick:()=>{r.value||(w.value=!1)}},N),null)]})])}),{isStuck:tn}}}),Ui=Ei({name:"MessageLog",setup(){const n=hn(!1),i=hn([]),g={success:"mdi-check-circle",error:"mdi-alert-circle",warning:"mdi-alert",info:"mdi-information"},u={success:"success",error:"error",warning:"warning",info:"primary"};return J.onLog(h=>{h&&(i.value=h)}),{drawer:n,messages:i,icons:g,colors:u,deleteMessage:h=>J.deleteMessage(h),clearMessages:()=>J.clearMessages()}}}),Xi={class:"text-caption text-grey"};function Qi(n,i,g,u,h,s){return n.drawer?(B(),H(Fi,{key:0,modelValue:n.drawer,"onUpdate:modelValue":i[0]||(i[0]=o=>n.drawer=o),location:"right",temporary:"",width:"400"},{default:k(()=>[S(Vi,{color:"primary"},{default:k(()=>[S(Bi,null,{default:k(()=>[...i[1]||(i[1]=[W("消息记录",-1)])]),_:1})]),_:1}),S(Ii,null,{default:k(()=>[(B(!0),_i(Vn,null,Zi(n.messages,o=>(B(),H(jn,{key:o.id,rounded:""},{prepend:k(()=>[S(bn,{color:n.colors[o.type],icon:n.icons[o.type],size:"20"},null,8,["color","icon"])]),default:k(()=>[S(rn,null,{default:k(()=>[W(nn(o.title),1)]),_:2},1024),o.content?(B(),H(Ni,{key:0},{default:k(()=>[W(nn(o.content),1)]),_:2},1024)):K("",!0),C("span",Xi,nn(new Date(o.timestamp).toLocaleTimeString()),1)]),_:2},1024))),128)),n.messages.length?K("",!0):(B(),H(jn,{key:0},{prepend:k(()=>[S(bn,{color:"grey",icon:"mdi-inbox"})]),default:k(()=>[S(rn,{class:"text-grey"},{default:k(()=>[...i[2]||(i[2]=[W("暂无消息",-1)])]),_:1})]),_:1}))]),_:1})]),_:1},8,["modelValue"])):K("",!0)}const Rg=Ci(Ui,[["render",Qi]]),Gi=/^[\uD800-\uDBFF]$/,Ji=/^[\uDC00-\uDFFF]$/,Ki=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var mn;(function(n){n[n.Unknown=1e-13]="Unknown",n[n.Rule=1e-12]="Rule",n[n.DICT=2e-8]="DICT",n[n.Surname=1]="Surname",n[n.Custom=1]="Custom"})(mn||(mn={}));const p={Normal:1,Surname:10,Custom:100};function P(n){var i;return n.length-(((i=n.match(Ki))===null||i===void 0?void 0:i.length)||0)}function F(n){const i=[];let g=0;for(;g1)return this.StringDICT.get(i);{const g=i.charCodeAt(0);return this.NumberDICT[g]}}set(i,g){if(i.length>1)this.StringDICT.set(i,g);else{const u=i.charCodeAt(0);this.NumberDICT[u]=g}}clear(){this.NumberDICT=[],this.StringDICT.clear()}}const fn={"bǎng páng pāng":["膀"],líng:["〇","伶","凌","刢","囹","坽","夌","姈","婈","孁","岺","彾","掕","昤","朎","柃","棂","櫺","欞","泠","淩","澪","灵","燯","爧","狑","玲","琌","瓴","皊","砱","祾","秢","竛","笭","紷","綾","绫","羐","羚","翎","聆","舲","苓","菱","蓤","蔆","蕶","蛉","衑","裬","詅","跉","軨","輘","酃","醽","鈴","錂","铃","閝","陵","零","霊","霗","霛","霝","靈","駖","魿","鯪","鲮","鴒","鸰","鹷","麢","齡","齢","龄","龗","㥄"],yī:["一","乊","伊","依","医","吚","咿","噫","壱","壹","夁","嫛","嬄","弌","揖","撎","檹","毉","洢","渏","漪","瑿","畩","祎","禕","稦","繄","蛜","衤","譩","辷","郼","醫","銥","铱","鷖","鹥","黟","黳"],"dīng zhēng":["丁"],"kǎo qiǎo yú":["丂"],qī:["七","倛","僛","凄","嘁","墄","娸","悽","慼","慽","戚","捿","柒","桤","桼","棲","榿","欺","沏","淒","漆","紪","緀","萋","褄","諆","迉","郪","鏚","霋","魌","鶈"],shàng:["丄","尙","尚","恦","緔","绱"],xià:["丅","下","乤","圷","夏","夓","懗","梺","疜","睱","罅","鎼","鏬"],hǎn:["丆","喊","浫","罕","豃","㘎"],"wàn mò":["万"],zhàng:["丈","仗","墇","嶂","帐","帳","幛","扙","杖","涱","痮","瘬","瘴","瞕","粀","胀","脹","賬","账","障"],sān:["三","厁","叁","弎","毵","毶","毿","犙","鬖"],"shàng shǎng shang":["上"],"qí jī":["丌","其","奇"],"bù fǒu":["不"],"yǔ yù yú":["与"],miǎn:["丏","偭","免","冕","勉","勔","喕","娩","愐","汅","沔","湎","睌","緬","缅","腼","葂","靦","鮸","𩾃"],gài:["丐","乢","匃","匄","戤","概","槩","槪","溉","漑","瓂","葢","鈣","钙","𬮿"],chǒu:["丑","丒","侴","吜","杽","瞅","矁","醜","魗"],zhuān:["专","叀","嫥","専","專","瑼","甎","砖","磗","磚","蟤","諯","鄟","顓","颛","鱄","䏝"],"qiě jū":["且"],pī:["丕","伓","伾","噼","坯","岯","憵","批","披","炋","狉","狓","砒","磇","礔","礕","秛","秠","耚","豾","邳","鈚","鉟","銔","錃","錍","霹","駓","髬","魾","𬳵"],shì:["世","丗","亊","事","仕","侍","冟","势","勢","卋","呩","嗜","噬","士","奭","嬕","室","市","式","弑","弒","恀","恃","戺","拭","揓","是","昰","枾","柿","栻","澨","烒","煶","眂","眎","眡","睗","示","礻","筮","簭","舐","舓","襫","視","视","觢","試","誓","諡","謚","试","谥","貰","贳","軾","轼","逝","遾","釈","释","釋","鈰","鉃","鉽","铈","飾","餙","餝","饰","鰘","䏡","𬤊"],qiū:["丘","丠","坵","媝","恘","恷","楸","秋","秌","穐","篍","緧","萩","蘒","蚯","蝵","蟗","蠤","趥","邱","鞦","鞧","鰌","鰍","鳅","鶖","鹙","龝"],bǐng:["丙","屛","怲","抦","昞","昺","柄","棅","炳","禀","秉","稟","苪","蛃","邴","鈵","陃","鞆","餅","餠","饼"],yè:["业","亱","僷","墷","夜","嶪","嶫","抴","捙","擛","擪","擫","晔","曄","曅","曗","曳","曵","枼","枽","業","洂","液","澲","烨","燁","爗","璍","皣","瞱","瞸","礏","腋","葉","謁","谒","邺","鄴","鍱","鐷","靥","靨","頁","页","餣","饁","馌","驜","鵺","鸈"],cóng:["丛","从","叢","婃","孮","従","徔","徖","悰","樷","欉","淙","灇","爜","琮","藂","誴","賨","賩","錝"],dōng:["东","倲","冬","咚","埬","岽","崬","徚","昸","東","氡","氭","涷","笗","苳","菄","蝀","鮗","鯟","鶇","鶫","鸫","鼕","𬟽"],sī:["丝","俬","凘","厮","司","咝","嘶","噝","媤","廝","恖","撕","斯","楒","泀","澌","燍","禗","禠","私","糹","絲","緦","纟","缌","罳","蕬","虒","蛳","蜤","螄","蟖","蟴","鉰","銯","鍶","鐁","锶","颸","飔","騦","鷥","鸶","鼶","㟃"],chéng:["丞","呈","城","埕","堘","塍","塖","宬","峸","惩","懲","成","承","挰","掁","揨","枨","棖","橙","檙","洆","溗","澂","珵","珹","畻","程","窚","筬","絾","脭","荿","誠","诚","郕","酲","鋮","铖","騬","鯎"],diū:["丟","丢","銩","铥"],liǎng:["両","两","兩","唡","啢","掚","緉","脼","蜽","裲","魉","魎","𬜯"],yǒu:["丣","卣","友","梄","湵","牖","禉","羑","聈","苃","莠","蜏","酉","銪","铕","黝"],yán:["严","厳","啱","喦","嚴","塩","壛","壧","妍","姸","娫","娮","岩","嵒","嵓","巌","巖","巗","延","揅","昖","楌","檐","櫩","欕","沿","炎","炏","狿","琂","盐","碞","筵","簷","莚","蔅","虤","蜒","言","訁","訮","詽","讠","郔","閆","閻","闫","阎","顏","顔","颜","鹽","麣","𫄧"],bìng:["並","併","倂","傡","垪","摒","栤","病","窉","竝","誁","靐","鮩"],"sàng sāng":["丧"],gǔn:["丨","惃","滚","滾","磙","緄","绲","蓘","蔉","衮","袞","輥","辊","鮌","鯀","鲧"],jiū:["丩","勼","啾","揪","揫","朻","究","糾","纠","萛","赳","阄","鬏","鬮","鳩","鸠"],"gè gě":["个","個","各"],yā:["丫","圧","孲","庘","押","枒","桠","椏","錏","鐚","鴉","鴨","鵶","鸦","鸭"],pán:["丬","媻","幋","槃","洀","瀊","爿","盘","盤","磐","縏","蒰","蟠","蹒","蹣","鎜","鞶"],"zhōng zhòng":["中"],jǐ:["丮","妀","己","戟","挤","掎","撠","擠","橶","泲","犱","脊","虮","蟣","魢","鱾","麂"],jiè:["丯","介","借","唶","堺","屆","届","岕","庎","徣","戒","楐","犗","玠","琾","界","畍","疥","砎","蚧","蛶","衸","褯","誡","诫","鎅","骱","魪"],fēng:["丰","仹","偑","僼","凨","凬","凮","妦","寷","封","峯","峰","崶","枫","楓","檒","沣","沨","渢","灃","烽","犎","猦","琒","疯","瘋","盽","砜","碸","篈","蘴","蜂","蠭","豐","鄷","酆","鋒","鎽","鏠","锋","霻","靊","飌","麷"],"guàn kuàng":["丱"],chuàn:["串","汌","玔","賗","釧","钏"],chǎn:["丳","产","冁","剷","囅","嵼","旵","浐","滻","灛","產","産","簅","蒇","蕆","諂","譂","讇","谄","鏟","铲","閳","闡","阐","骣","𬊤"],lín:["临","冧","壣","崊","嶙","斴","晽","暽","林","潾","瀶","燐","琳","璘","瞵","碄","磷","粦","粼","繗","翷","臨","轔","辚","遴","邻","鄰","鏻","阾","隣","霖","驎","鱗","鳞","麐","麟","𬴊","𬭸"],zhuó:["丵","劅","卓","啄","圴","妰","娺","撯","擆","擢","斫","斮","斱","斲","斵","晫","椓","浊","浞","濁","灼","烵","琸","硺","禚","窡","籗","籱","罬","茁","蠗","蠿","諁","諑","謶","诼","酌","鐲","镯","鵫","鷟","䓬","𬸦"],zhǔ:["丶","主","劯","嘱","囑","宔","帾","拄","渚","濐","煑","煮","燝","瞩","矚","罜","詝","陼","鸀","麈","𬣞"],bā:["丷","仈","八","叭","哵","夿","岜","巴","捌","朳","玐","疤","笆","粑","羓","芭","蚆","豝","釟"],wán:["丸","刓","完","岏","抏","捖","汍","烷","玩","琓","笂","紈","纨","翫","芄","貦","頑","顽"],dān:["丹","勯","匰","単","妉","媅","殚","殫","甔","眈","砃","箪","簞","耼","耽","聃","聸","褝","襌","躭","郸","鄲","酖","頕"],"wèi wéi":["为"],"jǐng dǎn":["丼"],"lì lí":["丽"],jǔ:["举","弆","挙","擧","椇","榉","榘","櫸","欅","矩","筥","聥","舉","莒","蒟","襷","踽","齟","龃"],piě:["丿","苤","鐅","𬭯"],fú:["乀","伏","俘","凫","刜","匐","咈","哹","垘","孚","岪","巿","帗","幅","幞","弗","彿","怫","扶","柫","栿","桴","氟","泭","浮","涪","澓","炥","玸","甶","畉","癁","祓","福","稪","符","箙","紱","紼","絥","綍","绂","绋","罘","罦","翇","艀","芙","芣","苻","茀","茯","菔","葍","虙","蚨","蜉","蝠","袚","袱","襆","襥","諨","豧","踾","輻","辐","郛","鉘","鉜","韍","韨","颫","髴","鮄","鮲","鳧","鳬","鴔","鵩","黻"],"yí jí":["乁"],yì:["乂","义","亄","亦","亿","伇","伿","佾","俋","億","兿","刈","劓","劮","勚","勩","匇","呓","呭","呹","唈","囈","圛","坄","垼","埸","奕","嫕","嬑","寱","屹","峄","嶧","帟","帠","幆","廙","异","弈","弋","役","忆","怈","怿","悒","意","憶","懌","懿","抑","挹","敡","易","晹","曀","曎","杙","枍","棭","榏","槸","檍","歝","殔","殪","殹","毅","浂","浥","浳","湙","溢","潩","澺","瀷","炈","焲","熠","熤","熼","燚","燡","燱","獈","玴","異","疫","痬","瘗","瘞","瘱","癔","益","瞖","穓","竩","篒","縊","繶","繹","绎","缢","義","羿","翊","翌","翳","翼","耴","肄","肊","膉","臆","艗","艺","芅","苅","萟","蓺","薏","藙","藝","蘙","虉","蜴","螠","衪","袣","裔","裛","褹","襼","訲","訳","詍","詣","誼","譯","議","讛","议","译","诣","谊","豙","豛","豷","貖","贀","跇","轶","逸","邑","鄓","醷","釴","鈠","鎰","鐿","镒","镱","阣","隿","霬","饐","駅","驛","驿","骮","鮨","鶂","鶃","鶍","鷁","鷊","鷧","鷾","鸃","鹝","鹢","黓","齸","𬬩","㑊","𫄷","𬟁"],nǎi:["乃","倷","奶","嬭","廼","氖","疓","艿","迺","釢"],wǔ:["乄","五","仵","伍","侮","倵","儛","午","啎","妩","娬","嫵","庑","廡","忤","怃","憮","摀","武","潕","熓","牾","玝","珷","瑦","甒","碔","舞","躌","迕","逜","陚","鵡","鹉","𣲘"],jiǔ:["久","乆","九","乣","奺","杦","汣","灸","玖","紤","舏","酒","镹","韭","韮"],"tuō zhé":["乇","杔","馲"],"me mó ma yāo":["么"],zhī:["之","倁","卮","巵","搘","支","栀","梔","椥","榰","汁","泜","疷","祗","祬","秓","稙","綕","肢","胑","胝","脂","芝","蘵","蜘","衼","隻","鳷","鴲","鼅","𦭜"],"wū wù":["乌"],zhà:["乍","咤","宱","搾","榨","溠","痄","蚱","詐","诈","醡","霅","䃎"],hū:["乎","乯","匢","匫","呼","唿","嘑","垀","寣","幠","忽","惚","昒","歑","泘","淴","滹","烀","苸","虍","虖","謼","軤","轷","雐"],fá:["乏","伐","傠","坺","垡","墢","姂","栰","浌","瞂","笩","筏","罚","罰","罸","藅","閥","阀"],"lè yuè yào lào":["乐","樂"],yín:["乑","吟","噖","嚚","圁","垠","夤","婬","寅","峾","崟","崯","檭","殥","泿","淫","滛","烎","犾","狺","璌","硍","碒","荶","蔩","訔","訚","訡","誾","鄞","鈝","銀","银","霪","鷣","齦"],pīng:["乒","俜","娉","涄","甹","砯","聠","艵","頩"],pāng:["乓","滂","胮","膖","雱","霶"],qiáo:["乔","侨","僑","嫶","憔","桥","槗","樵","橋","櫵","犞","瞧","硚","礄","荍","荞","蕎","藮","譙","趫","鐈","鞒","鞽","顦"],hǔ:["乕","琥","萀","虎","虝","錿","鯱"],guāi:["乖"],"chéng shèng":["乗","乘","娍"],yǐ:["乙","乛","以","倚","偯","嬟","崺","已","庡","扆","攺","敼","旑","旖","檥","矣","礒","笖","舣","艤","苡","苢","蚁","螘","蟻","裿","踦","輢","轙","逘","酏","釔","鈘","鉯","钇","顗","鳦","齮","𫖮","𬺈"],"háo yǐ":["乚"],"niè miē":["乜"],qǐ:["乞","企","启","唘","啓","啔","啟","婍","屺","杞","棨","玘","盀","綺","绮","芑","諬","起","邔","闙"],yě:["也","冶","嘢","埜","壄","漜","野"],xí:["习","喺","媳","嶍","席","椺","檄","漝","習","蓆","袭","襲","覡","觋","謵","趘","郋","鎴","隰","霫","飁","騱","騽","驨","鰼","鳛","𠅤","𫘬"],xiāng:["乡","厢","廂","忀","楿","欀","湘","瓖","稥","箱","緗","缃","膷","芗","萫","葙","薌","襄","郷","鄉","鄊","鄕","鑲","镶","香","驤","骧","鱜","麘","𬙋"],shū:["书","倏","倐","儵","叔","姝","尗","抒","掓","摅","攄","書","枢","梳","樞","殊","殳","毹","毺","淑","瀭","焂","疎","疏","紓","綀","纾","舒","菽","蔬","踈","軗","輸","输","鄃","陎","鮛","鵨"],dǒu:["乧","抖","枓","蚪","鈄","阧","陡"],shǐ:["乨","使","兘","史","始","宩","屎","榁","矢","笶","豕","鉂","駛","驶"],jī:["乩","僟","击","刉","刏","剞","叽","唧","喞","嗘","嘰","圾","基","墼","姬","屐","嵆","嵇","撃","擊","朞","机","枅","樭","機","毄","激","犄","玑","璣","畸","畿","癪","矶","磯","积","積","笄","筓","箕","簊","緁","羁","羇","羈","耭","肌","芨","虀","覉","覊","譏","譤","讥","賫","賷","赍","跻","踑","躋","躸","銈","錤","鐖","鑇","鑙","隮","雞","鞿","韲","飢","饑","饥","魕","鳮","鶏","鶺","鷄","鸄","鸡","齎","齏","齑","𬯀","𫓯","𫓹","𫌀"],náng:["乪","嚢","欜","蠰","饢"],jiā:["乫","佳","傢","加","嘉","抸","枷","梜","毠","泇","浃","浹","犌","猳","珈","痂","笳","糘","耞","腵","葭","袈","豭","貑","跏","迦","鉫","鎵","镓","鴐","麚","𬂩"],jù:["乬","倨","倶","具","剧","劇","勮","埧","埾","壉","姖","屦","屨","岠","巨","巪","怇","惧","愳","懅","懼","拒","拠","昛","歫","洰","澽","炬","烥","犋","秬","窭","窶","簴","粔","耟","聚","虡","蚷","詎","讵","豦","距","踞","躆","遽","邭","醵","鉅","鐻","钜","颶","飓","駏","鮔"],shí:["乭","十","埘","塒","姼","实","実","寔","實","峕","嵵","时","旹","時","榯","湜","溡","炻","祏","竍","蚀","蝕","辻","遈","鉐","飠","饣","鮖","鰣","鲥","鼫","鼭"],mǎo:["乮","冇","卯","峁","戼","昴","泖","笷","蓩","鉚","铆"],mǎi:["买","嘪","荬","蕒","買","鷶"],luàn:["乱","亂","釠"],rǔ:["乳","擩","汝","肗","辱","鄏"],xué:["乴","学","學","峃","嶨","斈","泶","澩","燢","穴","茓","袕","踅","鷽","鸴"],yǎn:["䶮","乵","俨","偃","儼","兖","兗","厣","厴","噞","孍","嵃","巘","巚","弇","愝","戭","扊","抁","掩","揜","曮","椼","檿","沇","渷","演","琰","甗","眼","罨","萒","蝘","衍","褗","躽","遃","郾","隒","顩","魇","魘","鰋","鶠","黡","黤","黬","黭","黶","鼴","鼹","齴","龑","𬸘","𬙂","𪩘"],fǔ:["乶","俌","俛","俯","府","弣","抚","拊","撫","斧","椨","滏","焤","甫","盙","簠","腐","腑","蜅","輔","辅","郙","釜","釡","阝","頫","鬴","黼","㕮","𫖯"],shā:["乷","唦","杀","桬","殺","毮","猀","痧","砂","硰","紗","繺","纱","蔱","裟","鎩","铩","閷","髿","魦","鯊","鯋","鲨"],nǎ:["乸","雫"],qián:["乹","亁","仱","偂","前","墘","媊","岒","拑","掮","榩","橬","歬","潛","潜","濳","灊","箝","葥","虔","軡","鈐","鉗","銭","錢","鎆","钤","钱","钳","靬","騚","騝","鰬","黔","黚"],suǒ:["乺","唢","嗩","所","暛","溑","溹","琐","琑","瑣","索","褨","鎖","鎻","鏁","锁"],yú:["乻","于","亐","伃","余","堣","堬","妤","娛","娯","娱","嬩","崳","嵎","嵛","愚","扵","揄","旟","楡","楰","榆","欤","歈","歟","歶","渔","渝","湡","漁","澞","牏","狳","玗","玙","瑜","璵","盂","睮","窬","竽","籅","羭","腴","臾","舁","舆","艅","茰","萮","萸","蕍","蘛","虞","虶","蝓","螸","衧","褕","覦","觎","諛","謣","谀","踰","輿","轝","逾","邘","酑","鍝","隅","雓","雩","餘","馀","騟","骬","髃","魚","魣","鮽","鯲","鰅","鱼","鷠","鸆","齵"],zhù:["乼","伫","佇","住","坾","墸","壴","嵀","拀","杼","柱","樦","殶","注","炷","疰","眝","祝","祩","竚","筯","箸","篫","簗","紵","紸","纻","羜","翥","苎","莇","蛀","註","貯","贮","跓","軴","鉒","鋳","鑄","铸","馵","駐","驻"],zhě:["乽","者","褶","襵","赭","踷","鍺","锗"],"qián gān":["乾"],"zhì luàn":["乿"],guī:["亀","圭","妫","媯","嫢","嬀","帰","归","摫","椝","槻","槼","櫷","歸","珪","瑰","璝","瓌","皈","瞡","硅","茥","蘬","規","规","邽","郌","閨","闺","騩","鬶","鬹"],"lǐn lìn":["亃"],jué:["亅","决","刔","劂","匷","厥","噊","孒","孓","崛","崫","嶥","彏","憠","憰","戄","抉","挗","掘","攫","桷","橛","橜","欮","氒","決","灍","焳","熦","爑","爴","爵","獗","玃","玦","玨","珏","瑴","瘚","矍","矡","砄","絕","絶","绝","臄","芵","蕝","蕨","虳","蟨","蟩","觖","觮","觼","訣","譎","诀","谲","貜","赽","趉","蹷","躩","鈌","鐍","鐝","钁","镢","鴂","鴃","鷢","𫘝","㵐","𫔎"],"le liǎo":["了"],"gè mā":["亇"],"yǔ yú":["予","懙"],zhēng:["争","佂","凧","姃","媜","峥","崝","崢","征","徰","炡","烝","爭","狰","猙","癥","眐","睁","睜","筝","箏","篜","聇","脀","蒸","踭","鉦","錚","鏳","鬇"],èr:["二","刵","咡","弍","弐","樲","誀","貮","貳","贰","髶"],chù:["亍","傗","儊","怵","憷","搐","斶","歜","珿","琡","矗","竌","絀","绌","臅","触","觸","豖","鄐","閦","黜"],kuī:["亏","刲","岿","巋","盔","窥","窺","聧","虧","闚","顝"],yún:["云","伝","勻","匀","囩","妘","愪","抣","昀","橒","沄","涢","溳","澐","熉","畇","秐","筼","篔","紜","縜","纭","耘","芸","蒷","蕓","郧","鄖","鋆","雲"],hù:["互","冱","嗀","嚛","婟","嫭","嫮","岵","帍","弖","怙","戶","户","戸","戽","扈","护","昈","槴","沍","沪","滬","熩","瓠","祜","笏","簄","粐","綔","蔰","護","豰","鄠","鍙","頀","鱯","鳠","鳸","鸌","鹱"],qí:["亓","剘","埼","岐","岓","崎","嵜","愭","掑","斉","斊","旂","旗","棊","棋","檱","櫀","歧","淇","濝","猉","玂","琦","琪","璂","畦","疧","碁","碕","祁","祈","祺","禥","竒","簯","簱","籏","粸","綥","綦","肵","脐","臍","艩","芪","萁","萕","蕲","藄","蘄","蚑","蚚","蛴","蜝","蜞","螧","蠐","褀","軝","鄿","釮","錡","锜","陭","頎","颀","騎","騏","騹","骐","骑","鬐","鬿","鯕","鰭","鲯","鳍","鵸","鶀","麒","麡","𨙸","𬨂","䓫"],jǐng:["井","儆","刭","剄","坓","宑","幜","憬","暻","殌","汫","汬","澋","璄","璟","璥","穽","肼","蟼","警","阱","頚","頸"],sì:["亖","佀","価","儩","兕","嗣","四","姒","娰","孠","寺","巳","柶","榹","汜","泗","泤","洍","洠","涘","瀃","牭","祀","禩","竢","笥","耜","肂","肆","蕼","覗","貄","釲","鈶","鈻","飤","飼","饲","駟","騃","驷"],suì:["亗","嬘","岁","嵗","旞","檖","歲","歳","澻","煫","燧","璲","砕","碎","祟","禭","穂","穗","穟","繀","繐","繸","襚","誶","譢","谇","賥","邃","鐆","鐩","隧","韢","𫟦","𬭼"],gèn:["亘","亙","揯","搄","茛"],yà:["亚","亜","俹","冴","劜","圔","圠","埡","娅","婭","揠","氩","氬","犽","砑","稏","聐","襾","覀","訝","讶","迓","齾"],"xiē suò":["些"],"qí zhāi":["亝","齊"],"yā yà":["亞","压","垭","壓","铔"],"jí qì":["亟","焏"],tóu:["亠","投","頭","骰"],"wáng wú":["亡"],"kàng háng gāng":["亢"],dà:["亣","眔"],jiāo:["交","僬","娇","嬌","峧","嶕","嶣","憍","椒","浇","澆","焦","礁","穚","簥","胶","膠","膲","茭","茮","蕉","虠","蛟","蟭","跤","轇","郊","鐎","驕","骄","鮫","鲛","鵁","鷦","鷮","鹪","䴔"],hài:["亥","嗐","害","氦","餀","饚","駭","駴","骇"],"hēng pēng":["亨"],mǔ:["亩","姆","峔","拇","母","牡","牳","畂","畆","畒","畝","畞","畮","砪","胟","踇","鉧","𬭁","𧿹"],ye:["亪"],xiǎng:["享","亯","响","想","晑","蚃","蠁","響","飨","餉","饗","饷","鮝","鯗","鱶","鲞"],jīng:["京","亰","兢","坕","坙","婛","惊","旌","旍","晶","橸","泾","涇","猄","睛","秔","稉","粳","精","経","經","綡","聙","腈","茎","荆","荊","菁","葏","驚","鯨","鲸","鶁","鶄","麖","麠","鼱","䴖"],tíng:["亭","停","婷","嵉","庭","廷","楟","榳","筳","聤","莛","葶","蜓","蝏","諪","邒","霆","鼮","䗴"],liàng:["亮","喨","悢","晾","湸","諒","谅","輌","輛","辆","鍄"],"qīn qìng":["亲","親"],bó:["亳","仢","侼","僰","博","帛","愽","懪","挬","搏","欂","浡","淿","渤","煿","牔","狛","瓝","礴","秡","箔","簙","糪","胉","脖","膊","舶","艊","萡","葧","袯","襏","襮","謈","踣","郣","鈸","鉑","鋍","鎛","鑮","钹","铂","镈","餺","馎","馛","馞","駁","駮","驳","髆","鵓","鹁"],yòu:["亴","佑","佦","侑","又","右","哊","唀","囿","姷","宥","峟","幼","狖","祐","蚴","誘","诱","貁","迶","酭","釉","鼬"],xiè:["亵","伳","偞","偰","僁","卨","卸","噧","塮","夑","媟","屑","屧","廨","徢","懈","暬","械","榍","榭","泻","洩","渫","澥","瀉","瀣","灺","炧","炨","燮","爕","獬","祄","禼","糏","紲","絏","絬","繲","纈","绁","缷","薢","薤","蟹","蠏","褉","褻","謝","谢","躞","邂","靾","韰","齂","齘","齛","齥","𬹼","𤫉"],"dǎn dàn":["亶","馾"],lián:["亷","劆","匲","匳","嗹","噒","奁","奩","嫾","帘","廉","怜","憐","涟","漣","濂","濓","瀮","熑","燫","簾","籢","籨","縺","翴","联","聨","聫","聮","聯","臁","莲","蓮","薕","螊","蠊","裢","褳","覝","謰","蹥","连","連","鎌","鐮","镰","鬑","鰱","鲢"],duǒ:["亸","哚","嚲","埵","崜","朵","朶","綞","缍","趓","躱","躲","軃"],"wěi mén":["亹","斖"],rén:["人","亻","仁","壬","忈","忎","朲","秂","芢","魜","鵀"],jí:["亼","亽","伋","佶","偮","卙","即","卽","及","叝","吉","堲","塉","姞","嫉","岌","嵴","嶯","彶","忣","急","愱","戢","揤","极","棘","楫","極","槉","檝","殛","汲","湒","潗","疾","瘠","皍","笈","箿","籍","級","级","膌","艥","蒺","蕀","蕺","蝍","螏","襋","觙","谻","踖","蹐","躤","輯","轚","辑","郆","銡","鍓","鏶","集","雧","霵","鹡","㴔"],wáng:["亾","仼","兦","莣","蚟"],"shén shí":["什"],lè:["仂","叻","忇","氻","泐","玏","砳","簕","艻","阞","韷","餎","鰳","鱳","鳓"],dīng:["仃","叮","帄","玎","疔","盯","耵","虰","靪"],zè:["仄","崱","庂","捑","昃","昗","汄"],"jǐn jìn":["仅","僅","嫤"],"pú pū":["仆"],"chóu qiú":["仇"],zhǎng:["仉","幥","掌","礃"],jīn:["今","堻","巾","惍","斤","津","珒","琻","璡","砛","筋","荕","衿","襟","觔","金","釒","釿","钅","鹶","黅","𬬱"],bīng:["仌","仒","兵","冫","冰","掤","氷","鋲"],réng:["仍","礽","芿","辸","陾"],fó:["仏","坲","梻"],"jīn sǎn":["仐"],lún:["仑","伦","侖","倫","囵","圇","婨","崘","崙","棆","沦","淪","磮","腀","菕","蜦","踚","輪","轮","錀","陯","鯩","𬬭"],cāng:["仓","仺","倉","凔","嵢","沧","滄","濸","獊","舱","艙","苍","蒼","螥","鸧"],"zǎi zǐ zī":["仔"],tā:["他","塌","它","榙","溻","牠","祂","褟","趿","遢","闧"],fù:["付","偩","傅","冨","副","咐","坿","复","妇","婦","媍","嬔","富","復","椱","祔","禣","竎","緮","縛","缚","腹","萯","蕧","蚹","蛗","蝜","蝮","袝","複","覄","覆","訃","詂","讣","負","賦","賻","负","赋","赙","赴","輹","鍑","鍢","阜","附","馥","駙","驸","鮒","鰒","鲋","鳆","㳇"],xiān:["仙","仚","佡","僊","僲","先","嘕","奾","屳","廯","忺","憸","掀","暹","杴","氙","珗","祆","秈","籼","繊","纎","纖","苮","褼","襳","跹","蹮","躚","酰","鍁","锨","韯","韱","馦","鱻","鶱","𬸣"],"tuō chà duó":["仛"],hóng:["仜","吰","垬","妅","娂","宏","宖","弘","彋","汯","泓","洪","浤","渱","潂","玒","玜","竑","竤","篊","粠","紘","紭","綋","纮","翃","翝","耾","苰","荭","葒","葓","谹","谼","鈜","鉷","鋐","閎","闳","霐","霟","鞃","魟","鴻","鸿","黉","黌","𫟹","𬭎"],tóng:["仝","佟","哃","峂","峝","庝","彤","晍","曈","桐","氃","浵","潼","犝","獞","眮","瞳","砼","秱","童","粡","膧","茼","蚒","詷","赨","酮","鉖","鉵","銅","铜","餇","鮦","鲖","𫍣","𦒍"],rèn:["仞","仭","刃","刄","妊","姙","屻","岃","扨","牣","祍","紉","紝","絍","纫","纴","肕","腍","衽","袵","訒","認","认","讱","軔","轫","鈓","靭","靱","韌","韧","飪","餁","饪"],qiān:["仟","佥","僉","千","圲","奷","孯","岍","悭","愆","慳","扦","拪","搴","撁","攐","攑","攓","杄","櫏","汘","汧","牵","牽","竏","签","簽","籖","籤","粁","芊","茾","蚈","褰","諐","謙","谦","谸","迁","遷","釺","鈆","鉛","鏲","钎","阡","韆","顅","騫","骞","鬜","鬝","鵮","鹐"],"gǎn hàn":["仠"],"yì gē":["仡"],dài:["代","侢","叇","垈","埭","岱","帒","带","帯","帶","廗","怠","戴","曃","柋","殆","瀻","玳","瑇","甙","簤","紿","緿","绐","艜","蝳","袋","襶","貣","贷","蹛","軑","軚","軩","轪","迨","霴","靆","鴏","黛","黱"],"lìng líng lǐng":["令"],chào:["仦","耖","觘"],"cháng zhǎng":["仧","兏","長","长"],sā:["仨"],cháng:["仩","偿","償","嘗","嚐","嫦","尝","常","徜","瑺","瓺","甞","肠","腸","膓","苌","萇","镸","鱨","鲿"],yí:["仪","侇","儀","冝","匜","咦","圯","夷","姨","宐","宜","宧","寲","峓","嶬","嶷","巸","彛","彜","彝","彞","怡","恞","扅","暆","栘","椬","椸","沂","洟","熪","瓵","痍","移","簃","籎","羠","胰","萓","蛦","螔","觺","謻","貽","贻","跠","迻","遺","鏔","頉","頤","頥","顊","颐","饴","鮧","鴺"],mù:["仫","凩","募","墓","幕","幙","慔","慕","暮","暯","木","楘","毣","沐","炑","牧","狇","目","睦","穆","艒","苜","莯","蚞","鉬","钼","雮","霂"],"men mén":["们"],fǎn:["仮","反","橎","返"],"chào miǎo":["仯"],"yǎng áng":["仰"],zhòng:["仲","众","堹","妕","媑","狆","眾","祌","筗","茽","蚛","衆","衶","諥"],"pǐ pí":["仳"],wò:["仴","偓","卧","媉","幄","握","楃","沃","渥","濣","瓁","瞃","硪","肟","腛","臥","齷","龌"],jiàn:["件","俴","健","僭","剑","剣","剱","劍","劎","劒","劔","墹","寋","建","徤","擶","旔","楗","毽","洊","涧","澗","牮","珔","瞷","磵","礀","箭","糋","繝","腱","臶","舰","艦","荐","薦","覸","諓","諫","譛","谏","賎","賤","贱","趝","践","踐","踺","轞","鉴","鍳","鍵","鐱","鑑","鑒","鑬","鑳","键","間","餞","饯","𬣡"],"jià jiè jie":["价"],"yǎo fó":["仸"],"rèn rén":["任"],"fèn bīn":["份"],dī:["仾","低","啲","埞","堤","岻","彽","樀","滴","磾","秪","羝","袛","趆","隄","鞮","䃅"],fǎng:["仿","倣","旊","昉","昘","瓬","眆","紡","纺","舫","訪","访","髣","鶭"],zhōng:["伀","刣","妐","幒","彸","忠","柊","汷","泈","炂","盅","籦","終","终","舯","蔠","蜙","螤","螽","衳","衷","蹱","鈡","鍾","鐘","钟","锺","鴤","鼨"],pèi:["伂","佩","姵","帔","斾","旆","沛","浿","珮","蓜","轡","辔","配","霈","馷"],diào:["伄","吊","弔","掉","瘹","盄","窎","窵","竨","訋","釣","鈟","銱","鋽","鑃","钓","铞","雿","魡"],dùn:["伅","潡","炖","燉","盾","砘","碷","踲","逇","遁","遯","鈍","钝"],wěn:["伆","刎","吻","呅","抆","桽","稳","穏","穩","紊","肳","脗"],xǐn:["伈"],kàng:["伉","匟","囥","抗","炕","鈧","钪"],ài:["伌","僾","塧","壒","嫒","嬡","愛","懓","暧","曖","爱","瑷","璦","皧","瞹","砹","硋","碍","礙","薆","譺","賹","鑀","隘","靉","餲","馤","鱫","鴱"],"jì qí":["伎","薺"],"xiū xǔ":["休"],"jìn yín":["伒"],dǎn:["伔","刐","撢","玬","瓭","紞","胆","膽","衴","賧","赕","黕","𬘘"],fū:["伕","呋","娐","孵","尃","怤","懯","敷","旉","玞","砆","稃","筟","糐","綒","肤","膚","荂","荴","衭","趺","跗","邞","鄜","酜","鈇","麩","麬","麱","麸","𫓧"],tǎng:["伖","傥","儻","埫","戃","曭","爣","矘","躺","鎲","钂","镋"],yōu:["优","優","呦","嚘","峳","幽","忧","悠","憂","攸","櫌","滺","瀀","纋","羪","耰","逌","鄾","麀"],huǒ:["伙","夥","火","煷","邩","鈥","钬"],"huì kuài":["会","會","浍","璯"],yǔ:["伛","俁","俣","偊","傴","匬","噳","圄","圉","宇","寙","屿","嶼","庾","挧","敔","斞","楀","瑀","瘐","祤","禹","穥","窳","羽","與","萭","貐","鄅","頨","麌","齬","龉","㺄"],cuì:["伜","啛","忰","悴","毳","淬","焠","疩","瘁","竁","粋","粹","紣","綷","翆","翠","脃","脆","脺","膬","膵","臎","萃","襊","顇"],sǎn:["伞","傘","糤","繖","饊","馓"],wěi:["伟","伪","偉","偽","僞","儰","娓","寪","屗","崣","嶉","徫","愇","捤","暐","梶","洧","浘","渨","炜","煒","猥","玮","瑋","痿","緯","纬","腲","艉","芛","苇","荱","萎","葦","蒍","蔿","蜼","諉","诿","踓","鍡","韑","韙","韡","韪","頠","颹","骩","骪","骫","鮪","鲔","𫇭","𬀩","𬱟"],"chuán zhuàn":["传","傳"],"chē jū":["伡","俥","车"],"jū chē":["車"],yá:["伢","厑","厓","堐","岈","崕","崖","涯","漄","牙","玡","琊","睚","笌","芽","蚜","衙","齖"],qiàn:["伣","俔","倩","儙","刋","壍","嬱","悓","棈","椠","槧","欠","歉","皘","篏","篟","縴","芡","蒨","蔳","輤","𬘬"],shāng:["伤","傷","商","墒","慯","殇","殤","滳","漡","熵","蔏","螪","觞","觴","謪","鬺"],chāng:["伥","倀","娼","昌","椙","淐","猖","琩","菖","裮","錩","锠","閶","阊","鯧","鲳","鼚"],"chen cāng":["伧"],xùn:["伨","侚","卂","噀","巺","巽","徇","愻","殉","殾","汛","潠","狥","蕈","訊","訓","訙","训","讯","迅","迿","逊","遜","鑂","顨","馴","驯"],xìn:["伩","囟","孞","脪","舋","衅","訫","釁","阠","顖"],chǐ:["伬","侈","卶","叺","呎","垑","恥","歯","耻","肔","胣","蚇","裭","褫","豉","鉹","齒","齿"],"xián xuán":["伭"],"nú nǔ":["伮"],"bó bǎi":["伯"],"gū gù":["估"],nǐ:["伱","你","儞","孴","拟","擬","旎","晲","狔","苨","薿","隬"],"nì ní":["伲"],bàn:["伴","办","半","姅","怑","扮","瓣","秚","絆","绊","辦","鉡","靽"],xù:["伵","侐","勖","勗","卹","叙","垿","壻","婿","序","恤","敍","敘","旭","昫","朂","槒","欰","殈","汿","沀","洫","溆","漵","潊","烅","烼","煦","獝","珬","盢","瞁","稸","絮","続","緒","緖","續","绪","续","聓","聟","蓄","藚","訹","賉","酗","頊","鱮","㳚"],zhòu:["伷","僽","冑","呪","咒","咮","宙","昼","晝","甃","皱","皺","籀","籒","籕","粙","紂","縐","纣","绉","胄","荮","葤","詋","酎","駎","驟","骤","㤘","㑇"],shēn:["伸","侁","兟","呻","堔","妽","娠","屾","峷","扟","敒","曑","柛","氠","深","燊","珅","甡","甧","申","眒","砷","穼","籶","籸","糂","紳","绅","罙","罧","葠","蓡","蔘","薓","裑","訷","詵","诜","身","駪","鯓","鯵","鰺","鲹","鵢","𬳽"],qū:["伹","佉","匤","呿","坥","屈","岖","岴","嶇","憈","抾","敺","浀","煀","祛","筁","粬","胠","蛆","蛐","袪","覻","詘","诎","趍","躯","軀","阹","駆","駈","驅","驱","髷","魼","鰸","鱋","鶌","麯","麴","麹","黢","㭕","𪨰","䓛"],"sì cì":["伺"],bēng:["伻","嘣","奟","崩","嵭","閍"],"sì shì":["似"],"jiā qié gā":["伽"],"yǐ chì":["佁"],"diàn tián":["佃","钿"],"hān gàn":["佄"],mài:["佅","劢","勱","卖","唛","売","脈","衇","賣","迈","邁","霡","霢","麥","麦","鿏"],dàn:["但","僤","啖","啗","啿","噉","嚪","帎","憺","旦","柦","氮","沊","泹","淡","狚","疍","癚","禫","窞","腅","萏","蓞","蛋","蜑","觛","訑","誕","诞","贉","霮","餤","饏","駳","髧","鴠","𫢸"],bù:["佈","勏","吥","咘","埗","埠","布","廍","怖","悑","步","歨","歩","瓿","篰","荹","蔀","踄","部","郶","鈈","钚","餢"],bǐ:["佊","俾","匕","夶","妣","彼","朼","柀","比","毞","沘","疕","秕","笔","筆","粃","聛","舭","貏","鄙"],"zhāo shào":["佋"],cǐ:["佌","此","泚","皉","𫚖"],wèi:["位","卫","味","喂","墛","媦","慰","懀","未","渭","煟","熭","犚","猬","畏","緭","罻","胃","苿","菋","藯","蘶","蝟","螱","衛","衞","褽","謂","讆","讏","谓","躗","躛","軎","轊","鏏","霨","餧","餵","饖","魏","鮇","鳚"],zuǒ:["佐","左","繓"],yǎng:["佒","傟","养","坱","岟","慃","懩","攁","氧","氱","炴","痒","癢","礢","紻","蝆","軮","養","駚"],"tǐ tī":["体","體"],zhàn:["佔","偡","嶘","战","戦","戰","栈","桟","棧","湛","站","綻","绽","菚","蘸","虥","虦","譧","轏","驏"],"hé hē hè":["何"],bì:["佖","咇","哔","嗶","坒","堛","壁","奰","妼","婢","嬖","币","幣","幤","庇","庳","廦","弊","弻","弼","彃","必","怭","愊","愎","敝","斃","梐","毕","毖","毙","湢","滗","滭","潷","煏","熚","狴","獘","獙","珌","璧","畀","畢","疪","痹","痺","皕","睤","碧","筚","箅","箆","篦","篳","粊","綼","縪","繴","罼","腷","苾","荜","萆","萞","蓖","蓽","蔽","薜","蜌","袐","襅","襞","襣","觱","詖","诐","貱","贔","赑","跸","蹕","躃","躄","避","邲","鄨","鄪","鉍","鏎","鐴","铋","閇","閉","閟","闭","陛","韠","飶","饆","馝","駜","驆","髀","魓","鮅","鷝","鷩","鼊"],tuó:["佗","坨","堶","岮","槖","橐","沱","砣","砤","碢","紽","詑","跎","酡","阤","陀","陁","駝","駞","騨","驒","驝","驼","鮀","鴕","鸵","鼉","鼍","鼧","𬶍"],shé:["佘","舌","虵","蛥"],"yì dié":["佚","昳","泆","軼"],"fó fú bì bó":["佛"],"zuò zuō":["作"],gōu:["佝","沟","溝","痀","篝","簼","緱","缑","袧","褠","鈎","鉤","钩","鞲","韝"],nìng:["佞","侫","倿","寕","泞","澝","濘"],qú:["佢","劬","戵","斪","欋","欔","氍","淭","灈","爠","璖","璩","癯","磲","籧","絇","胊","臞","菃","葋","蕖","蘧","蟝","蠷","蠼","衐","衢","躣","軥","鑺","鴝","鸜","鸲","鼩"],"yōng yòng":["佣"],wǎ:["佤","咓","砙","邷"],kǎ:["佧","垰","胩","裃","鉲"],bāo:["佨","勹","包","孢","煲","笣","胞","苞","蕔","裦","褒","襃","闁","齙","龅"],"huái huí":["佪"],"gé hè":["佫"],lǎo:["佬","咾","恅","栳","狫","珯","硓","老","耂","荖","蛯","轑","銠","铑","鮱"],xiáng:["佭","庠","栙","祥","絴","翔","詳","跭"],gé:["佮","匌","呄","嗝","塥","愅","挌","搿","槅","櫊","滆","膈","臵","茖","觡","諽","輵","轕","閣","阁","隔","鞷","韐","韚","騔","骼","鮯"],yáng:["佯","劷","垟","崸","徉","扬","揚","敭","旸","昜","暘","杨","楊","洋","炀","珜","疡","瘍","眻","蛘","諹","輰","鍚","钖","阦","阳","陽","霷","颺","飏","鰑","鴹","鸉"],bǎi:["佰","捭","摆","擺","栢","百","竡","粨","襬"],fǎ:["佱","峜","法","灋","砝","鍅"],mǐng:["佲","凕","姳","慏","酩"],"èr nài":["佴"],hěn:["佷","很","狠","詪","𬣳"],huó:["佸","活"],guǐ:["佹","匦","匭","厬","垝","姽","宄","庋","庪","恑","晷","湀","癸","祪","簋","蛫","蟡","觤","詭","诡","軌","轨","陒","鬼"],quán:["佺","全","啳","埢","姾","峑","巏","拳","搼","权","楾","権","權","泉","洤","湶","牷","犈","瑔","痊","硂","筌","縓","荃","葲","蜷","蠸","觠","詮","诠","跧","踡","輇","辁","醛","銓","铨","闎","顴","颧","駩","騡","鬈","鰁","鳈","齤"],tiāo:["佻","庣","旫","祧","聎"],jiǎo:["佼","儌","孂","挢","搅","撟","撹","攪","敫","敽","敿","晈","暞","曒","灚","燞","狡","璬","皎","皦","絞","纐","绞","腳","臫","蟜","譑","賋","踋","鉸","铰","餃","饺","鱎","龣"],cì:["佽","刾","庛","朿","栨","次","絘","茦","莿","蛓","螆","賜","赐"],xíng:["侀","刑","哘","型","娙","形","洐","硎","蛵","邢","郉","鈃","鉶","銒","钘","铏","陉","陘","餳","𫰛"],tuō:["侂","咃","咜","圫","托","拕","拖","汑","脫","脱","莌","袥","託","讬","飥","饦","魠","鮵"],kǎn:["侃","偘","冚","坎","惂","砍","莰","輡","轗","顑"],zhí:["侄","値","值","埴","執","姪","嬂","戠","执","摭","植","樴","淔","漐","直","禃","絷","縶","聀","职","職","膱","蟙","跖","踯","蹠","躑","軄","釞","馽"],gāi:["侅","垓","姟","峐","晐","畡","祴","荄","該","该","豥","賅","賌","赅","陔"],lái:["來","俫","倈","崃","崍","庲","来","梾","棶","涞","淶","猍","琜","筙","箂","莱","萊","逨","郲","錸","铼","騋","鯠","鶆","麳"],kuǎ:["侉","咵","垮","銙"],gōng:["侊","公","功","匑","匔","塨","宫","宮","工","幊","弓","恭","攻","杛","碽","糼","糿","肱","觥","觵","躬","躳","髸","龔","龚","䢼"],lì:["例","俐","俪","傈","儮","儷","凓","利","力","励","勵","历","厉","厤","厯","厲","叓","吏","呖","唎","唳","嚦","囇","坜","塛","壢","娳","婯","屴","岦","悧","悷","慄","戾","搮","暦","曆","曞","朸","枥","栃","栗","栛","檪","櫔","櫪","欐","歴","歷","沥","沴","涖","溧","濿","瀝","爏","犡","猁","珕","瑮","瓅","瓑","瓥","疬","痢","癧","盭","睙","砅","砺","砾","磿","礪","礫","礰","禲","秝","立","笠","篥","粒","粝","糲","脷","苈","茘","荔","莅","莉","蒚","蒞","藶","蚸","蛎","蛠","蜧","蝷","蠇","蠣","詈","讈","赲","轢","轣","轹","酈","鉝","隶","隷","雳","靂","靋","鬁","鳨","鴗","鷅","麜","𫵷","𬍛"],yīn:["侌","凐","喑","噾","囙","因","垔","堙","姻","婣","愔","慇","栶","氤","洇","溵","濦","瘖","禋","秵","筃","絪","緸","茵","蒑","蔭","裀","諲","銦","铟","闉","阥","阴","陰","陻","隂","霒","霠","鞇","音","韾","駰","骃","齗","𬘡","𬤇","𬮱"],mǐ:["侎","孊","弭","敉","洣","渳","灖","米","粎","羋","脒","芈","葞","蔝","銤"],zhū:["侏","株","槠","橥","櫧","櫫","洙","潴","瀦","猪","珠","硃","秼","絑","茱","蕏","蛛","蝫","蠩","袾","誅","諸","诛","诸","豬","跦","邾","銖","铢","駯","鮢","鯺","鴸","鼄"],ān:["侒","偣","媕","安","峖","庵","桉","氨","盦","盫","腤","菴","萻","葊","蓭","誝","諳","谙","鞌","鞍","韽","馣","鮟","鵪","鶕","鹌","𩽾"],lù:["侓","僇","勎","勠","圥","坴","塶","娽","峍","廘","彔","录","戮","摝","椂","樚","淕","淥","渌","漉","潞","琭","璐","甪","盝","睩","硉","祿","禄","稑","穋","箓","簏","簬","簵","簶","籙","粶","蔍","蕗","虂","螰","賂","赂","趢","路","踛","蹗","輅","轆","辂","辘","逯","醁","錄","録","錴","鏴","陸","騄","騼","鯥","鴼","鵦","鵱","鷺","鹭","鹿","麓","𫘧"],móu:["侔","劺","恈","眸","蛑","謀","谋","踎","鍪","鴾","麰"],ér:["侕","儿","児","兒","峏","栭","洏","粫","而","胹","荋","袻","輀","轜","陑","隭","髵","鮞","鲕","鴯","鸸"],"dòng tǒng tóng":["侗"],chà:["侘","奼","姹","岔","汊","詫","诧"],chì:["侙","傺","勅","勑","叱","啻","彳","恜","慗","憏","懘","抶","敕","斥","杘","湁","灻","炽","烾","熾","痓","痸","瘛","翄","翅","翤","翨","腟","赤","趩","遫","鉓","雴","飭","饬","鶒","鷘"],"gòng gōng":["供","共"],zhōu:["侜","周","喌","州","徟","洲","淍","炿","烐","珘","矪","舟","謅","譸","诌","賙","赒","輈","輖","辀","週","郮","銂","霌","駲","騆","鵃","鸼"],rú:["侞","儒","嚅","如","嬬","孺","帤","曘","桇","渪","濡","筎","茹","蕠","薷","蝡","蠕","袽","襦","邚","醹","銣","铷","顬","颥","鱬","鴑","鴽"],"jiàn cún":["侟"],xiá:["侠","俠","匣","峡","峽","敮","暇","柙","炠","烚","狎","狭","狹","珨","瑕","硖","硤","碬","祫","筪","縖","翈","舝","舺","蕸","赮","轄","辖","遐","鍜","鎋","陜","陿","霞","騢","魻","鶷","黠"],lǚ:["侣","侶","儢","吕","呂","屡","屢","履","挔","捛","旅","梠","焒","祣","稆","穭","絽","縷","缕","膂","膐","褛","褸","郘","鋁","铝"],ta:["侤"],"jiǎo yáo":["侥","僥","徺"],zhēn:["侦","偵","寊","帧","帪","幀","搸","斟","桢","楨","榛","樼","殝","浈","湞","潧","澵","獉","珍","珎","瑧","甄","眞","真","砧","碪","祯","禎","禛","箴","胗","臻","葴","蒖","蓁","薽","貞","贞","轃","遉","酙","針","鉁","錱","鍼","针","鱵"],"cè zè zhāi":["侧","側"],kuài:["侩","儈","凷","哙","噲","圦","块","塊","巜","廥","快","旝","欳","狯","獪","筷","糩","脍","膾","郐","鄶","鱠","鲙"],chái:["侪","儕","喍","柴","犲","祡","豺"],nóng:["侬","儂","农","哝","噥","檂","欁","浓","濃","燶","禯","秾","穠","脓","膿","蕽","襛","譨","農","辳","醲","鬞","𬪩"],jǐn:["侭","儘","卺","厪","巹","槿","漌","瑾","紧","緊","菫","蓳","謹","谨","錦","锦","饉","馑"],"hóu hòu":["侯","矦"],jiǒng:["侰","僒","冏","囧","泂","澃","炯","烱","煚","煛","熲","燛","窘","綗","褧","迥","逈","顈","颎","䌹"],"chěng tǐng":["侱"],"zhèn zhēn":["侲","揕"],zuò:["侳","做","唑","坐","岝","岞","座","祚","糳","胙","葃","葄","蓙","袏","阼"],qīn:["侵","兓","媇","嵚","嶔","欽","衾","誛","钦","顉","駸","骎","鮼"],jú:["侷","啹","婅","局","巈","椈","橘","泦","淗","湨","焗","犑","狊","粷","菊","蘜","趜","跼","蹫","輂","郹","閰","駶","驧","鵙","鵴","鶪","鼰","鼳","䴗"],"shù dōu":["侸"],tǐng:["侹","圢","娗","挺","涏","烶","珽","脡","艇","誔","頲","颋"],shèn:["侺","愼","慎","昚","涁","渗","滲","瘆","瘮","眘","祳","肾","胂","脤","腎","蜃","蜄","鋠"],"tuì tuó":["侻"],nán:["侽","喃","娚","抩","暔","枏","柟","楠","男","畘","莮","萳","遖"],xiāo:["侾","哓","嘵","嚻","囂","婋","宯","宵","庨","彇","揱","枭","枵","梟","櫹","歊","毊","消","潇","瀟","灱","灲","烋","焇","猇","獢","痚","痟","硝","硣","窙","箫","簘","簫","綃","绡","翛","膮","萧","蕭","虈","虓","蟂","蟏","蟰","蠨","踃","逍","銷","销","霄","颵","驍","骁","髇","髐","魈","鴞","鴵","鷍","鸮"],"biàn pián":["便","緶","缏"],tuǐ:["俀","腿","蹆","骽"],xì:["係","匸","卌","呬","墍","屃","屓","屭","忥","怬","恄","椞","潝","潟","澙","熂","犔","磶","禊","細","綌","縘","细","绤","舃","舄","蕮","虩","衋","覤","赩","趇","郤","釳","阋","隙","隟","霼","餼","饩","鬩","黖"],cù:["促","媨","憱","猝","瘄","瘯","簇","縬","脨","蔟","誎","趗","踧","踿","蹙","蹴","蹵","醋","顣","鼀"],é:["俄","囮","娥","峉","峨","峩","涐","珴","皒","睋","磀","莪","訛","誐","譌","讹","迗","鈋","鋨","锇","頟","額","额","魤","鵝","鵞","鹅"],qiú:["俅","叴","唒","囚","崷","巯","巰","扏","梂","殏","毬","求","汓","泅","浗","湭","煪","犰","玌","球","璆","皳","盚","紌","絿","肍","芁","莍","虬","虯","蛷","裘","觓","觩","訄","訅","賕","赇","逎","逑","遒","酋","釚","釻","銶","頄","鮂","鯄","鰽","鼽","𨱇"],xú:["俆","徐","禑"],"guàng kuāng":["俇"],kù:["俈","喾","嚳","库","庫","廤","瘔","絝","绔","袴","裤","褲","酷"],wù:["俉","务","務","勿","卼","坞","塢","奦","婺","寤","屼","岉","嵨","忢","悞","悟","悮","戊","扤","晤","杌","溩","焐","熃","物","痦","矹","窹","粅","蘁","誤","误","鋈","阢","隖","雾","霚","霧","靰","騖","骛","鶩","鹜","鼿","齀"],jùn:["俊","儁","呁","埈","寯","峻","懏","捃","攟","晙","棞","燇","珺","畯","竣","箟","蜠","賐","郡","陖","餕","馂","駿","骏","鵔","鵕","鵘","䐃"],liáng:["俍","墚","梁","椋","樑","粮","粱","糧","良","輬","辌","𫟅"],zǔ:["俎","唨","爼","祖","組","组","詛","诅","鎺","阻","靻"],"qiào xiào":["俏"],yǒng:["俑","勇","勈","咏","埇","塎","嵱","彮","怺","恿","悀","惥","愑","愹","慂","柡","栐","永","泳","湧","甬","蛹","詠","踊","踴","鯒","鲬"],hùn:["俒","倱","圂","尡","慁","掍","溷","焝","睴","觨","諢","诨"],jìng:["俓","傹","境","妌","婙","婧","弪","弳","径","徑","敬","曔","桱","梷","浄","瀞","獍","痉","痙","竞","竟","竫","競","竸","胫","脛","莖","誩","踁","迳","逕","鏡","镜","靖","静","靜","鵛"],sàn:["俕","閐"],pěi:["俖"],sú:["俗"],xī:["俙","僖","兮","凞","卥","厀","吸","唏","唽","嘻","噏","嚱","夕","奚","嬆","嬉","屖","嵠","巇","希","徆","徯","息","悉","悕","惁","惜","昔","晞","晰","晳","曦","析","桸","榽","樨","橀","欷","氥","汐","浠","淅","渓","溪","烯","焁","焈","焟","熄","熈","熙","熹","熺","熻","燨","爔","牺","犀","犠","犧","琋","瘜","皙","睎","瞦","矽","硒","磎","礂","稀","穸","窸","粞","糦","緆","繥","羲","翕","翖","肸","肹","膝","舾","莃","菥","蒠","蜥","螅","蟋","蠵","西","觹","觽","觿","譆","谿","豀","豨","豯","貕","赥","邜","鄎","酅","醯","釸","錫","鏭","鐊","鑴","锡","隵","餏","饎","饻","鯑","鵗","鸂","鼷"],lǐ:["俚","娌","峢","峲","李","欚","浬","澧","理","礼","禮","粴","裏","裡","豊","逦","邐","醴","鋰","锂","鯉","鱧","鱱","鲤","鳢"],bǎo:["保","堢","媬","宝","寚","寳","寶","珤","緥","葆","藵","褓","賲","靌","飹","飽","饱","駂","鳵","鴇","鸨"],"yú shù yù":["俞"],"sì qí":["俟"],"xìn shēn":["信"],xiū:["俢","修","咻","庥","樇","烌","羞","脙","脩","臹","貅","銝","鎀","飍","饈","馐","髤","髹","鮴","鱃","鵂","鸺","䗛"],dì:["俤","偙","僀","埊","墑","墬","娣","帝","怟","旳","梊","焍","玓","甋","眱","睇","碲","祶","禘","第","締","缔","腣","菂","蒂","蔕","蝃","蝭","螮","諦","谛","踶","递","逓","遞","遰","鉪","𤧛","䗖"],chóu:["俦","儔","嬦","惆","愁","懤","栦","燽","畴","疇","皗","稠","筹","籌","絒","綢","绸","菗","詶","讎","讐","踌","躊","酧","酬","醻","雔","雠","雦"],zhì:["俧","偫","儨","制","劕","垁","娡","寘","帙","帜","幟","庢","庤","廌","彘","徏","徝","志","忮","懥","懫","挃","挚","掷","摯","擲","旘","晊","智","栉","桎","梽","櫍","櫛","治","洷","滍","滞","滯","潌","瀄","炙","熫","狾","猘","璏","瓆","痔","痣","礩","祑","秩","秷","稚","稺","穉","窒","紩","緻","置","翐","膣","至","致","芖","蛭","袟","袠","製","覟","觗","觯","觶","誌","豑","豒","貭","質","贄","质","贽","跱","踬","躓","輊","轾","郅","銍","鋕","鑕","铚","锧","陟","隲","雉","駤","騭","騺","驇","骘","鯯","鴙","鷙","鸷","𬃊"],"liǎ liǎng":["俩"],jiǎn:["俭","倹","儉","减","剪","堿","弿","彅","戩","戬","拣","挸","捡","揀","撿","枧","柬","梘","检","検","檢","減","湕","瀽","瑐","睑","瞼","硷","碱","礆","笕","筧","简","簡","絸","繭","翦","茧","藆","蠒","裥","襇","襉","襺","詃","謇","謭","譾","谫","趼","蹇","鐗","鬋","鰎","鹸","鹻","鹼"],huò:["俰","咟","嚯","嚿","奯","彠","惑","或","擭","旤","曤","檴","沎","湱","瀖","獲","癨","眓","矐","祸","禍","穫","窢","耯","臛","艧","获","蒦","藿","蠖","謋","貨","货","鍃","鑊","镬","雘","霍","靃","韄","㸌"],"jù jū":["俱","据","鋸","锯"],xiào:["俲","傚","効","咲","哮","啸","嘋","嘨","嘯","孝","效","斅","斆","歗","涍","熽","笑","詨","誟"],pái:["俳","徘","牌","犤","猅","簰","簲","輫"],biào:["俵","鰾","鳔"],"chù tì":["俶"],fèi:["俷","剕","厞","吠","屝","废","廃","廢","昲","曊","櫠","沸","濷","狒","癈","肺","萉","費","费","鐨","镄","陫","靅","鼣"],fèng:["俸","凤","奉","湗","焨","煈","賵","赗","鳯","鳳","鴌"],ǎn:["俺","唵","埯","揞","罯","銨","铵"],bèi:["俻","倍","偝","偹","備","僃","备","悖","惫","愂","憊","昁","梖","焙","牬","犕","狈","狽","珼","琲","碚","禙","糒","苝","蓓","蛽","褙","貝","贝","軰","輩","辈","邶","郥","鄁","鋇","鐾","钡","鞁","鞴","𬇙"],yù:["俼","儥","喅","喩","喻","域","堉","妪","嫗","寓","峪","嶎","庽","彧","御","愈","慾","戫","昱","棛","棜","棫","櫲","欎","欝","欲","毓","浴","淯","滪","潏","澦","灪","焴","煜","燏","燠","爩","狱","獄","玉","琙","瘉","癒","砡","硢","硲","礇","礖","礜","禦","秗","稢","稶","篽","籞","籲","粖","緎","罭","聿","肀","艈","芋","芌","茟","蒮","蓣","蓹","蕷","蘌","蜟","蜮","袬","裕","誉","諭","譽","谕","豫","軉","輍","逳","遇","遹","郁","醧","鈺","鋊","錥","鐭","钰","閾","阈","雤","霱","預","预","飫","饇","饫","馭","驈","驭","鬰","鬱","鬻","魊","鱊","鳿","鴥","鴧","鴪","鵒","鷸","鸒","鹆","鹬"],xīn:["俽","噺","妡","嬜","廞","心","忄","忻","惞","新","昕","杺","欣","歆","炘","盺","薪","訢","辛","邤","鈊","鋅","鑫","锌","馨","馫","䜣","𫷷"],"hǔ chí":["俿"],jiù:["倃","僦","匓","匛","匶","厩","咎","就","廄","廏","廐","慦","捄","救","旧","柩","柾","桕","欍","殧","疚","臼","舅","舊","鯦","鷲","鹫","麔","齨","㠇"],yáo:["倄","傜","嗂","垚","堯","姚","媱","尧","尭","峣","嶢","嶤","徭","揺","搖","摇","摿","暚","榣","烑","爻","猺","珧","瑤","瑶","磘","窑","窯","窰","肴","蘨","謠","謡","谣","軺","轺","遙","遥","邎","顤","颻","飖","餆","餚","鰩","鱙","鳐"],"cuì zú":["倅"],"liǎng liǎ":["倆"],wǎn:["倇","唍","婉","惋","挽","晚","晥","晩","晼","梚","椀","琬","畹","皖","盌","碗","綩","綰","绾","脘","萖","踠","輓","鋔"],zǒng:["倊","偬","傯","嵸","总","惣","捴","搃","摠","燪","総","緫","縂","總","蓗"],guān:["倌","关","官","棺","瘝","癏","窤","蒄","関","闗","關","鰥","鱞","鳏"],tiǎn:["倎","唺","忝","悿","晪","殄","淟","睓","腆","舔","覥","觍","賟","錪","餂"],mén:["們","扪","捫","璊","菛","虋","鍆","钔","門","閅","门","𫞩"],"dǎo dào":["倒"],"tán tàn":["倓","埮"],"juè jué":["倔"],chuí:["倕","垂","埀","捶","搥","桘","棰","槌","箠","腄","菙","錘","鎚","锤","陲","顀"],xìng:["倖","姓","婞","嬹","幸","性","悻","杏","涬","緈","臖","荇","莕","葕"],péng:["倗","傰","塜","塳","弸","憉","捀","朋","棚","椖","樥","硼","稝","竼","篷","纄","膨","芃","蓬","蘕","蟚","蟛","袶","輣","錋","鑝","韸","韼","騯","髼","鬅","鬔","鵬","鹏"],"tǎng cháng":["倘"],hòu:["候","厚","后","垕","堠","後","洉","茩","豞","逅","郈","鮜","鱟","鲎","鲘"],tì:["倜","剃","嚏","嚔","屉","屜","悌","悐","惕","惖","戻","掦","替","朑","歒","殢","涕","瓋","笹","籊","薙","褅","逖","逷","髰","鬀","鬄"],gàn:["倝","凎","幹","榦","檊","淦","灨","盰","紺","绀","詌","贑","赣","骭","㽏"],"liàng jìng":["倞","靓"],suī:["倠","哸","夊","滖","濉","眭","睢","芕","荽","荾","虽","雖","鞖"],"chàng chāng":["倡"],jié:["倢","偼","傑","刦","刧","刼","劫","劼","卩","卪","婕","媫","孑","岊","崨","嵥","嶻","巀","幯","截","捷","掶","擮","昅","杢","杰","桀","桝","楬","楶","榤","洁","滐","潔","狤","睫","礍","竭","節","羯","莭","蓵","蛣","蜐","蠘","蠞","蠽","衱","袺","訐","詰","誱","讦","踕","迼","鉣","鍻","镼","頡","鮚","鲒","㛃"],"kǒng kōng":["倥"],juàn:["倦","劵","奆","慻","桊","淃","狷","獧","眷","睊","睠","絭","絹","绢","罥","羂","腃","蔨","鄄","餋"],zōng:["倧","堫","宗","嵏","嵕","惾","朡","棕","椶","熧","猣","磫","緃","翪","腙","葼","蝬","豵","踨","踪","蹤","鍐","鑁","騌","騣","骔","鬃","鬉","鬷","鯮","鯼"],ní:["倪","坭","埿","尼","屔","怩","淣","猊","籾","聣","蚭","蜺","觬","貎","跜","輗","郳","鈮","铌","霓","馜","鯢","鲵","麑","齯","𫐐","𫠜"],zhuō:["倬","拙","捉","桌","梲","棁","棳","槕","涿","窧","鐯","䦃"],"wō wēi":["倭"],luǒ:["倮","剆","曪","瘰","癳","臝","蓏","蠃","裸","躶"],sōng:["倯","凇","娀","崧","嵩","庺","憽","松","枀","枩","柗","梥","檧","淞","濍","硹","菘","鬆"],lèng:["倰","堎","愣","睖","踜"],zì:["倳","剚","字","恣","渍","漬","牸","眥","眦","胔","胾","自","茡","荢"],bèn:["倴","坌","捹","撪","渀","笨","逩"],cǎi:["倸","啋","婇","彩","採","棌","毝","睬","綵","跴","踩"],zhài:["债","債","寨","瘵","砦"],yē:["倻","吔","噎","擨","暍","椰","歋","潱","蠮"],shà:["倽","唼","喢","歃","箑","翜","翣","萐","閯","霎"],qīng:["倾","傾","卿","圊","寈","氢","氫","淸","清","蜻","軽","輕","轻","郬","錆","鑋","靑","青","鯖"],yīng:["偀","嘤","噟","嚶","婴","媖","嫈","嬰","孆","孾","愥","撄","攖","朠","桜","樱","櫻","渶","煐","珱","瑛","璎","瓔","甇","甖","碤","礯","緓","纓","绬","缨","罂","罃","罌","膺","英","莺","蘡","蝧","蠳","褮","譻","賏","軈","鑍","锳","霙","韺","鴬","鶑","鶧","鶯","鷪","鷹","鸎","鸚","鹦","鹰","䓨"],"chēng chèn":["偁","爯"],ruǎn:["偄","朊","瑌","瓀","碝","礝","腝","軟","輭","软","阮"],"zhòng tóng":["偅"],chǔn:["偆","惷","睶","萶","蠢","賰"],"jiǎ jià":["假"],"jì jié":["偈"],"bǐng bìng":["偋"],ruò:["偌","叒","嵶","弱","楉","焫","爇","箬","篛","蒻","鄀","鰙","鰯","鶸"],tí:["偍","厗","啼","嗁","崹","漽","瑅","睼","禵","稊","緹","缇","罤","蕛","褆","謕","趧","蹄","蹏","醍","鍗","題","题","騠","鮷","鯷","鳀","鵜","鷤","鹈","𫘨"],wēi:["偎","危","喴","威","媙","嶶","巍","微","愄","揋","揻","椳","楲","溦","烓","煨","燰","癓","縅","葨","葳","薇","蜲","蝛","覣","詴","逶","隇","隈","霺","鰃","鰄","鳂"],piān:["偏","囨","媥","楄","犏","篇","翩","鍂"],yàn:["偐","厌","厭","唁","喭","嚈","嚥","堰","妟","姲","嬊","嬿","宴","彥","彦","敥","晏","暥","曕","曣","滟","灎","灔","灧","灩","焔","焰","焱","熖","燄","牪","猒","砚","硯","艳","艶","艷","覎","觃","觾","諺","讌","讞","谚","谳","豓","豔","贋","贗","赝","軅","酀","酽","醼","釅","雁","餍","饜","騐","験","騴","驗","驠","验","鬳","鳫","鴈","鴳","鷃","鷰","齞"],"tǎng dàng":["偒"],è:["偔","匎","卾","厄","呝","咢","噩","垩","堊","堮","岋","崿","廅","悪","愕","戹","扼","搤","搹","擜","櫮","歞","歺","湂","琧","砈","砐","硆","腭","苊","萼","蕚","蚅","蝁","覨","諤","讍","谔","豟","軛","軶","轭","遌","遏","遻","鄂","鈪","鍔","鑩","锷","阨","阸","頞","顎","颚","餓","餩","饿","鰐","鰪","鱷","鳄","鶚","鹗","齃","齶","𫫇","𥔲"],xié:["偕","勰","协","協","嗋","垥","奊","恊","愶","拹","携","撷","擕","擷","攜","斜","旪","熁","燲","綊","緳","縀","缬","翓","胁","脅","脇","脋","膎","蝢","衺","襭","諧","讗","谐","鞋","鞵","龤","㙦"],chě:["偖","扯","撦"],shěng:["偗","渻","眚"],chā:["偛","嗏","扠","挿","插","揷","疀","臿","艖","銟","鍤","锸","餷"],huáng:["偟","凰","喤","堭","墴","媓","崲","徨","惶","楻","湟","煌","獚","瑝","璜","癀","皇","磺","穔","篁","簧","艎","葟","蝗","蟥","諻","趪","遑","鍠","鐄","锽","隍","韹","餭","騜","鰉","鱑","鳇","鷬","黃","黄","𨱑"],yǎo:["偠","咬","婹","宎","岆","杳","柼","榚","溔","狕","窅","窈","舀","苭","闄","騕","鷕","齩"],"chǒu qiào":["偢"],yóu:["偤","尤","庮","怣","沋","油","浟","游","犹","猶","猷","由","疣","秞","肬","莜","莸","蕕","蚰","蝣","訧","輏","輶","逰","遊","邮","郵","鈾","铀","駀","魷","鮋","鱿","鲉","𬨎"],xū:["偦","墟","媭","嬃","楈","欨","歔","燸","疞","盱","綇","縃","繻","胥","蕦","虗","虚","虛","蝑","裇","訏","許","諝","譃","谞","鑐","需","須","须","顼","驉","鬚","魆","魖","𬣙","𦈡"],zhā:["偧","哳","抯","挓","揸","摣","樝","渣","皶","觰","譇","齄","齇"],cī:["偨","疵","蠀","趀","骴","髊","齹"],bī:["偪","屄","楅","毴","豍","逼","鰏","鲾","鵖"],xún:["偱","噚","寻","尋","峋","巡","廵","循","恂","揗","攳","旬","杊","栒","桪","樳","洵","浔","潯","燅","燖","珣","璕","畃","紃","荀","蟳","詢","询","鄩","鱏","鱘","鲟","𬘓","𬩽","𬍤","𬊈"],"cāi sī":["偲"],duān:["偳","媏","端","褍","鍴"],ǒu:["偶","吘","嘔","耦","腢","蕅","藕","𬉼","𠙶"],tōu:["偷","偸","鍮"],"zán zá zǎ":["偺"],"lǚ lóu":["偻","僂"],fèn:["偾","僨","奋","奮","弅","忿","愤","憤","瀵","瞓","秎","粪","糞","膹","鱝","鲼"],"kuǐ guī":["傀"],sǒu:["傁","叜","叟","嗾","櫢","瞍","薮","藪"],"zhì sī tí":["傂"],sù:["傃","僳","嗉","塐","塑","夙","嫊","愫","憟","榡","樎","樕","殐","泝","涑","溯","溸","潚","潥","玊","珟","璛","簌","粛","粟","素","縤","肃","肅","膆","蔌","藗","觫","訴","謖","诉","谡","趚","蹜","速","遡","遬","鋉","餗","驌","骕","鱐","鷫","鹔","𫗧"],xiā:["傄","煆","瞎","虲","谺","颬","鰕"],"yuàn yuán":["傆","媛"],rǒng:["傇","冗","宂","氄","軵"],nù:["傉","怒"],yùn:["傊","孕","恽","惲","愠","慍","枟","腪","蕴","薀","藴","蘊","褞","貟","运","運","郓","鄆","酝","醖","醞","韗","韞","韵","韻","餫"],"gòu jiǎng":["傋"],mà:["傌","嘜","榪","睰","祃","禡","罵","閁","駡","骂","鬕"],bàng:["傍","塝","棒","玤","稖","艕","蒡","蜯","謗","谤","鎊","镑"],diān:["傎","厧","嵮","巅","巓","巔","掂","攧","敁","槇","滇","癫","癲","蹎","顚","顛","颠","齻"],táng:["傏","唐","啺","坣","堂","塘","搪","棠","榶","溏","漟","煻","瑭","磄","禟","篖","糃","糖","糛","膅","膛","蓎","螗","螳","赯","踼","鄌","醣","鎕","隚","餹","饄","鶶","䣘"],hào:["傐","哠","恏","昊","昦","晧","暠","暤","暭","曍","浩","淏","澔","灏","灝","皓","皜","皞","皡","皥","耗","聕","薃","號","鄗","顥","颢","鰝"],"xī xì":["傒"],shān:["傓","删","刪","剼","圸","山","挻","搧","柵","檆","潸","澘","煽","狦","珊","笘","縿","羴","羶","脠","舢","芟","衫","跚","軕","邖","閊","鯅"],"qiàn jiān":["傔"],"què jué":["傕","埆"],"cāng chen":["傖"],róng:["傛","媶","嫆","嬫","容","峵","嵘","嶸","戎","搈","曧","栄","榕","榮","榵","毧","溶","瀜","烿","熔","狨","瑢","穁","絨","绒","羢","肜","茙","茸","荣","蓉","蝾","融","螎","蠑","褣","鎔","镕","駥"],"tà tàn":["傝"],suō:["傞","唆","嗍","嗦","娑","摍","桫","梭","睃","簑","簔","羧","莏","蓑","趖","鮻"],dǎi:["傣","歹"],zài:["傤","儎","再","在","扗","洅","載","酨"],gǔ:["傦","古","啒","尳","愲","榖","榾","汩","淈","濲","瀔","牯","皷","皼","盬","瞽","穀","罟","羖","股","脵","臌","薣","蛊","蠱","詁","诂","轂","逧","鈷","钴","餶","馉","鼓","鼔","𦙶"],bīn:["傧","宾","彬","斌","椕","滨","濒","濱","濵","瀕","繽","缤","虨","豩","豳","賓","賔","邠","鑌","镔","霦","顮"],chǔ:["储","儲","杵","椘","楚","楮","檚","濋","璴","础","礎","禇","處","齭","齼","𬺓"],nuó:["傩","儺","挪","梛","橠"],"cān càn":["傪"],lěi:["傫","儡","厽","垒","塁","壘","壨","櫐","灅","癗","矋","磊","礨","耒","蕌","蕾","藟","蘽","蠝","誄","讄","诔","鑸","鸓"],cuī:["催","凗","墔","崔","嵟","慛","摧","榱","獕","磪","鏙"],yōng:["傭","嗈","墉","壅","嫞","庸","廱","慵","拥","擁","滽","灉","牅","痈","癕","癰","臃","邕","郺","鄘","鏞","镛","雍","雝","饔","鱅","鳙","鷛"],"zāo cáo":["傮"],sǒng:["傱","嵷","怂","悚","愯","慫","竦","耸","聳","駷","㧐"],ào:["傲","坳","垇","墺","奡","嫯","岙","岰","嶴","懊","擙","澳","鏊","驁","骜"],"qī còu":["傶"],chuǎng:["傸","磢","闖","闯"],shǎ:["傻","儍"],hàn:["傼","垾","悍","憾","扞","捍","撖","撼","旱","晘","暵","汉","涆","漢","瀚","焊","猂","皔","睅","翰","莟","菡","蛿","蜭","螒","譀","輚","釬","銲","鋎","雗","頷","顄","颔","駻","鶾"],zhāng:["傽","嫜","张","張","彰","慞","暲","樟","漳","獐","璋","章","粻","蔁","蟑","遧","鄣","鏱","餦","騿","鱆","麞"],"yān yàn":["傿","墕","嬮"],"piào biāo":["僄","骠"],liàn:["僆","堜","媡","恋","戀","楝","殓","殮","湅","潋","澰","瀲","炼","煉","瑓","練","纞","练","萰","錬","鍊","鏈","链","鰊","𬶠"],màn:["㵘","僈","墁","幔","慢","曼","漫","澷","熳","獌","縵","缦","蔄","蘰","鄤","鏝","镘","𬜬"],"tàn tǎn":["僋"],yíng:["僌","営","塋","嬴","攍","楹","櫿","溁","溋","滢","潆","濙","濚","濴","瀅","瀛","瀠","瀯","灐","灜","熒","營","瑩","盁","盈","禜","籝","籯","縈","茔","荧","莹","萤","营","萦","萾","蓥","藀","蛍","蝇","蝿","螢","蠅","謍","贏","赢","迎","鎣"],dòng:["働","冻","凍","动","動","姛","戙","挏","栋","棟","湩","硐","胨","胴","腖","迵","霘","駧"],zhuàn:["僎","啭","囀","堟","撰","灷","瑑","篆","腞","蒃","襈","譔","饌","馔"],xiàng:["像","勨","向","嚮","姠","嶑","曏","橡","珦","缿","蟓","衖","襐","象","鐌","項","项","鱌"],shàn:["僐","善","墠","墡","嬗","擅","敾","椫","樿","歚","汕","灗","疝","磰","繕","缮","膳","蟮","蟺","訕","謆","譱","讪","贍","赡","赸","鄯","鐥","饍","騸","骟","鱓","鱔","鳝","𫮃"],"tuí tuǐ":["僓"],zǔn:["僔","噂","撙","譐"],pú:["僕","匍","圤","墣","濮","獛","璞","瞨","穙","莆","菐","菩","葡","蒱","蒲","贌","酺","鏷","镤"],láo:["僗","劳","労","勞","哰","崂","嶗","憥","朥","浶","牢","痨","癆","窂","簩","醪","鐒","铹","顟","髝","𫭼"],chǎng:["僘","厰","廠","敞","昶","氅","鋹","𬬮"],guāng:["僙","光","咣","垙","姯","洸","灮","炗","炚","炛","烡","珖","胱","茪","輄","銧","黆","𨐈"],liáo:["僚","嘹","嫽","寥","寮","尞","屪","嵺","嶚","嶛","廫","憀","敹","暸","橑","獠","璙","疗","療","竂","簝","繚","缭","聊","膋","膫","藔","蟟","豂","賿","蹘","辽","遼","飉","髎","鷯","鹩"],dèng:["僜","凳","墱","嶝","櫈","瞪","磴","覴","邓","鄧","隥"],"chán zhàn zhuàn":["僝"],bō:["僠","嶓","拨","撥","播","波","溊","玻","癶","盋","砵","碆","礡","缽","菠","袰","蹳","鉢","钵","餑","饽","驋","鱍","𬭛"],huì:["僡","匯","卉","喙","嘒","嚖","圚","嬒","寭","屶","屷","彗","彙","彚","徻","恚","恵","惠","慧","憓","懳","晦","暳","槥","橞","檅","櫘","汇","泋","滙","潓","烩","燴","獩","璤","瞺","硊","秽","穢","篲","絵","繪","绘","翙","翽","荟","蔧","蕙","薈","薉","蟪","詯","誨","諱","譓","譿","讳","诲","賄","贿","鐬","闠","阓","靧","頮","顪","颒","餯","𬤝","𬭬"],chuǎn:["僢","喘","舛","荈","踳"],"tiě jiàn":["僣"],sēng:["僧","鬙"],xiàn:["僩","僴","哯","垷","塪","姭","娊","宪","岘","峴","憲","撊","晛","橌","橺","涀","瀗","献","獻","现","現","県","睍","粯","糮","絤","綫","線","线","缐","羡","羨","腺","臔","臽","苋","莧","誢","豏","鋧","錎","限","陥","陷","霰","餡","馅","麲","鼸","𬀪","𪾢"],"yù jú":["僪"],"è wū":["僫"],"tóng zhuàng":["僮"],lǐn:["僯","凛","凜","廩","廪","懍","懔","撛","檁","檩","澟","癛","癝"],gù:["僱","凅","固","堌","崓","崮","故","梏","棝","牿","痼","祻","錮","锢","雇","顧","顾","鯝","鲴"],jiāng:["僵","壃","姜","橿","殭","江","畕","疅","礓","繮","缰","翞","茳","葁","薑","螀","螿","豇","韁","鱂","鳉"],mǐn:["僶","冺","刡","勄","悯","惽","愍","慜","憫","抿","敃","敏","敯","泯","潣","皿","笢","笽","簢","蠠","閔","閩","闵","闽","鰵","鳘","黽"],jìn:["僸","凚","噤","嚍","墐","壗","妗","嬧","搢","晉","晋","枃","殣","浕","浸","溍","濅","濜","烬","煡","燼","琎","瑨","璶","盡","祲","縉","缙","荩","藎","覲","觐","賮","贐","赆","近","进","進","靳","齽"],"jià jie":["價"],qiào:["僺","峭","帩","撬","殻","窍","竅","誚","诮","躈","陗","鞩","韒","髚"],pì:["僻","媲","嫓","屁","澼","甓","疈","譬","闢","鷿","鸊","䴙"],sài:["僿","簺","賽","赛"],"chán tǎn shàn":["儃"],"dāng dàng":["儅","当","闣"],xuān:["儇","喧","塇","媗","宣","愃","愋","揎","昍","暄","煊","煖","瑄","睻","矎","禤","箮","翧","翾","萱","萲","蓒","蕿","藼","蘐","蝖","蠉","諠","諼","譞","谖","軒","轩","鍹","駽","鰚","𫓶","𫍽"],"dān dàn":["儋","擔","瘅"],càn:["儏","澯","灿","燦","璨","粲","薒","謲"],"bīn bìn":["儐"],"án àn":["儑"],tái:["儓","坮","嬯","抬","擡","檯","炱","炲","籉","臺","薹","跆","邰","颱","鮐","鲐"],lán:["儖","兰","囒","婪","岚","嵐","幱","拦","攔","斓","斕","栏","欄","欗","澜","瀾","灆","灡","燣","燷","璼","篮","籃","籣","繿","葻","蓝","藍","蘫","蘭","褴","襕","襤","襴","襽","譋","讕","谰","躝","鑭","镧","闌","阑","韊","𬒗"],"nǐ yì ài yí":["儗"],méng:["儚","幪","曚","朦","橗","檬","氋","溕","濛","甍","甿","盟","礞","艨","莔","萌","蕄","虻","蝱","鄳","鄸","霿","靀","顭","饛","鯍","鸏","鹲","𫑡","㠓"],níng:["儜","凝","咛","嚀","嬣","柠","橣","檸","狞","獰","聍","聹","薴","鑏","鬡","鸋"],qióng:["儝","卭","宆","惸","憌","桏","橩","焪","焭","煢","熍","琼","瓊","睘","穷","穹","窮","竆","笻","筇","舼","茕","藑","藭","蛩","蛬","赹","跫","邛","銎","䓖"],liè:["儠","冽","列","劣","劽","埒","埓","姴","峛","巤","挒","捩","栵","洌","浖","烈","烮","煭","犣","猎","猟","獵","聗","脟","茢","蛚","趔","躐","迾","颲","鬛","鬣","鮤","鱲","鴷","䴕","𫚭"],kuǎng:["儣","夼","懭"],bào:["儤","勽","報","忁","报","抱","曓","爆","犦","菢","虣","蚫","豹","鉋","鑤","铇","骲","髱","鮑","鲍"],biāo:["儦","墂","幖","彪","标","標","滮","瀌","熛","爂","猋","瘭","磦","膘","臕","謤","贆","鏢","鑣","镖","镳","颮","颷","飆","飇","飈","飊","飑","飙","飚","驫","骉","髟"],zǎn:["儧","儹","噆","攅","昝","趱","趲"],háo:["儫","嗥","嘷","噑","嚎","壕","椃","毜","毫","濠","獆","獔","竓","籇","蚝","蠔","譹","豪"],qìng:["儬","凊","庆","慶","櫦","濪","碃","磬","罄","靘"],chèn:["儭","嚫","榇","櫬","疢","衬","襯","讖","谶","趁","趂","齓","齔","龀"],téng:["儯","幐","滕","漛","疼","籐","籘","縢","腾","藤","虅","螣","誊","謄","邆","駦","騰","驣","鰧","䲢"],"lǒng lóng lòng":["儱"],"chán chàn":["儳"],"ráng xiāng":["儴","勷"],"huì xié":["儶"],luó:["儸","攞","椤","欏","猡","玀","箩","籮","罗","羅","脶","腡","萝","蘿","螺","覼","逻","邏","鏍","鑼","锣","镙","饠","騾","驘","骡","鸁"],léi:["儽","嫘","檑","欙","瓃","畾","縲","纍","纝","缧","罍","羸","蔂","蘲","虆","轠","鐳","鑘","镭","雷","靁","鱩","鼺"],"nàng nāng":["儾"],"wù wū":["兀"],yǔn:["允","喗","夽","抎","殒","殞","狁","磒","荺","賱","鈗","阭","陨","隕","霣","馻","齫","齳"],zān:["兂","橵","簪","簮","糌","鐕","鐟","鵤"],yuán:["元","円","原","厡","厵","园","圆","圎","園","圓","垣","塬","媴","嫄","援","榞","榬","橼","櫞","沅","湲","源","溒","爰","猨","猿","笎","緣","縁","缘","羱","茒","薗","蝝","蝯","螈","袁","褤","謜","轅","辕","邍","邧","酛","鈨","鎱","騵","魭","鶢","鶰","黿","鼋","𫘪"],xiōng:["兄","兇","凶","匂","匈","哅","忷","恟","汹","洶","胷","胸","芎","訩","詾","讻"],chōng:["充","嘃","忡","憃","憧","摏","沖","浺","珫","罿","翀","舂","艟","茺","衝","蹖","㳘"],zhào:["兆","垗","旐","曌","枛","櫂","照","燳","狣","瞾","笊","罀","罩","羄","肁","肇","肈","詔","诏","赵","趙","鮡","𬶐"],"duì ruì yuè":["兊","兌","兑"],kè:["克","刻","勀","勊","堁","娔","客","恪","愙","氪","溘","碦","緙","缂","艐","衉","課","课","錁","锞","騍","骒"],tù:["兎","兔","堍","迌","鵵"],dǎng:["党","攩","欓","譡","讜","谠","黨","𣗋"],dōu:["兜","兠","唗","橷","篼","蔸"],huǎng:["兤","奛","幌","怳","恍","晄","炾","熀","縨","詤","謊","谎"],rù:["入","嗕","媷","扖","杁","洳","溽","縟","缛","蓐","褥","鳰"],nèi:["內","氝","氞","錗"],"yú shù":["兪"],"liù lù":["六"],han:["兯","爳"],tiān:["兲","天","婖","添","酟","靔","靝","黇"],"xīng xìng":["兴"],diǎn:["典","嚸","奌","婰","敟","椣","点","碘","蒧","蕇","踮","點"],"zī cí":["兹"],jiān:["兼","冿","囏","坚","堅","奸","姦","姧","尖","幵","惤","戋","戔","搛","椾","樫","櫼","歼","殱","殲","湔","瀐","瀸","煎","熞","熸","牋","瑊","睷","礛","礷","笺","箋","緘","縑","缄","缣","肩","艰","艱","菅","菺","葌","蒹","蔪","蕑","蕳","虃","譼","豜","鑯","雃","鞯","韀","韉","餰","馢","鰔","鰜","鰹","鲣","鳒","鵑","鵳","鶼","鹣","麉"],shòu:["兽","受","售","壽","夀","寿","授","狩","獣","獸","痩","瘦","綬","绶","膄"],jì:["兾","冀","剂","剤","劑","勣","坖","垍","塈","妓","季","寂","寄","廭","彑","徛","忌","悸","惎","懻","技","旡","既","旣","暨","暩","曁","梞","檕","檵","洎","漃","漈","瀱","痵","癠","禝","稩","稷","穄","穊","穧","紀","継","績","繋","繼","继","绩","罽","臮","芰","茍","茤","葪","蓟","蔇","薊","蘎","蘮","蘻","裚","襀","覬","觊","計","記","誋","计","记","跡","跽","蹟","迹","际","際","霁","霽","驥","骥","髻","鬾","魝","魥","鯚","鯽","鰶","鰿","鱀","鱭","鲚","鲫","鵋","鷑","齌","𪟝","𬶨","𬶭"],jiōng:["冂","冋","坰","埛","扃","蘏","蘔","駉","駫","𬳶"],mào:["冃","冐","媢","帽","愗","懋","暓","柕","楙","毷","瑁","皃","眊","瞀","耄","茂","萺","蝐","袤","覒","貌","貿","贸","鄚","鄮"],rǎn:["冄","冉","姌","媣","染","珃","苒","蒅","䎃"],"nèi nà":["内"],gāng:["冈","冮","刚","剛","堈","堽","岡","掆","摃","棡","牨","犅","疘","綱","纲","缸","罁","罡","肛","釭","鎠","㭎"],cè:["冊","册","厕","厠","夨","廁","恻","惻","憡","敇","测","測","笧","策","筞","筴","箣","荝","萗","萴","蓛"],guǎ:["冎","剐","剮","叧","寡"],"mào mò":["冒"],gòu:["冓","啂","坸","垢","够","夠","媾","彀","搆","撀","构","構","煹","覯","觏","訽","詬","诟","購","购","遘","雊"],xǔ:["冔","喣","暊","栩","珝","盨","糈","詡","諿","诩","鄦","醑"],mì:["冖","冪","嘧","塓","宻","密","峚","幂","幎","幦","怽","榓","樒","櫁","汨","淧","滵","漞","濗","熐","羃","蔤","蜜","覓","覔","覛","觅","謐","谧","鼏"],"yóu yín":["冘"],xiě:["写","冩","藛"],jūn:["军","君","均","桾","汮","皲","皸","皹","碅","莙","蚐","袀","覠","軍","鈞","銁","銞","鍕","钧","頵","鮶","鲪","麏"],mí:["冞","擟","瀰","爢","猕","獼","祢","禰","縻","蒾","藌","蘪","蘼","袮","詸","謎","迷","醚","醾","醿","釄","镾","鸍","麊","麋","麛"],"guān guàn":["冠","覌","観","觀","观"],měng:["冡","勐","懵","掹","猛","獴","艋","蜢","蠓","錳","锰","鯭","鼆"],zhǒng:["冢","塚","尰","歱","煄","瘇","肿","腫","踵"],zuì:["冣","嶵","晬","最","栬","槜","檇","檌","祽","絊","罪","蕞","辠","酔","酻","醉","錊"],yuān:["冤","剈","囦","嬽","寃","棩","淵","渁","渆","渊","渕","灁","眢","肙","葾","蒬","蜎","蜵","駌","鳶","鴛","鵷","鸢","鸳","鹓","鼘","鼝"],míng:["冥","名","明","暝","朙","榠","洺","溟","猽","眀","眳","瞑","茗","螟","覭","詺","鄍","銘","铭","鳴","鸣"],kòu:["冦","叩","宼","寇","扣","敂","滱","窛","筘","簆","蔲","蔻","釦","鷇"],tài:["冭","太","夳","忲","态","態","汰","汱","泰","溙","肽","舦","酞","鈦","钛"],"féng píng":["冯","馮"],"chōng chòng":["冲"],kuàng:["况","圹","壙","岲","懬","旷","昿","曠","框","況","爌","眖","眶","矿","砿","礦","穬","絋","絖","纊","纩","貺","贶","軦","邝","鄺","鉱","鋛","鑛","黋"],lěng:["冷"],pàn:["冸","判","叛","沜","泮","溿","炍","牉","畔","盼","聁","袢","襻","詊","鋬","鑻","頖","鵥"],fā:["冹","彂","沷","発","發"],xiǎn:["冼","尟","尠","崄","嶮","幰","攇","显","櫶","毨","灦","烍","燹","狝","猃","獫","獮","玁","禒","筅","箲","藓","蘚","蚬","蜆","譣","赻","跣","鍌","险","険","險","韅","顕","顯","㬎"],qià:["冾","圶","帢","恰","殎","洽","硈","胢","髂"],"jìng chēng":["净","凈","淨"],sōu:["凁","嗖","廀","廋","捜","搜","摉","溲","獀","艘","蒐","螋","鄋","醙","鎪","锼","颼","飕","餿","馊","騪"],měi:["凂","媄","媺","嬍","嵄","挴","毎","每","浼","渼","燘","美","躾","鎂","镁","黣"],tú:["凃","図","图","圖","圗","塗","屠","峹","嵞","庩","廜","徒","悇","揬","涂","瘏","筡","腯","荼","蒤","跿","途","酴","鈯","鍎","馟","駼","鵌","鶟","鷋","鷵","𬳿"],zhǔn:["准","凖","埻","準","𬘯"],"liáng liàng":["凉","涼","量"],diāo:["凋","刁","刟","叼","奝","弴","彫","汈","琱","碉","簓","虭","蛁","貂","錭","雕","鮉","鯛","鲷","鵰","鼦"],còu:["凑","湊","腠","輳","辏"],ái:["凒","啀","嘊","捱","溰","癌","皑","皚"],duó:["凙","剫","夺","奪","痥","踱","鈬","鐸","铎"],dú:["凟","匵","嬻","椟","櫝","殰","涜","牍","牘","犊","犢","独","獨","瓄","皾","裻","読","讀","讟","豄","贕","錖","鑟","韇","韣","韥","騳","髑","黩","黷"],"jǐ jī":["几"],fán:["凡","凢","凣","匥","墦","杋","柉","棥","樊","瀿","烦","煩","燔","璠","矾","礬","笲","籵","緐","羳","舤","舧","薠","蘩","蠜","襎","蹯","釩","鐇","鐢","钒","鷭","𫔍","𬸪"],jū:["凥","匊","娵","婮","居","崌","抅","挶","掬","梮","椐","檋","毩","毱","泃","涺","狙","琚","疽","砠","罝","腒","艍","蜛","裾","諊","跔","踘","躹","陱","雎","鞠","鞫","駒","驹","鮈","鴡","鶋","𬶋"],"chù chǔ":["処","处"],zhǐ:["凪","劧","咫","址","坧","帋","恉","扺","指","旨","枳","止","汦","沚","洔","淽","疻","砋","祉","秖","紙","纸","芷","藢","衹","襧","訨","趾","軹","轵","酯","阯","黹"],píng:["凭","凴","呯","坪","塀","岼","帡","帲","幈","平","慿","憑","枰","洴","焩","玶","瓶","甁","竮","箳","簈","缾","荓","萍","蓱","蚲","蛢","評","评","軿","輧","郱","鮃","鲆"],kǎi:["凯","凱","剀","剴","垲","塏","恺","愷","慨","暟","蒈","輆","鍇","鎧","铠","锴","闓","闿","颽"],gān:["凲","坩","尲","尴","尶","尷","柑","泔","漧","玕","甘","疳","矸","竿","筸","粓","肝","苷","迀","酐","魐"],"kǎn qiǎn":["凵"],tū:["凸","堗","嶀","捸","涋","湥","痜","禿","秃","突","葖","鋵","鵚","鼵","㻬"],"āo wā":["凹"],chū:["出","初","岀","摴","榋","樗","貙","齣","䢺","䝙"],dàng:["凼","圵","垱","壋","档","檔","氹","璗","瓽","盪","瞊","砀","碭","礑","簜","荡","菪","蕩","蘯","趤","逿","雼","𬍡"],hán:["函","凾","含","圅","娢","寒","崡","晗","梒","浛","涵","澏","焓","琀","甝","筨","蜬","邗","邯","鋡","韓","韩"],záo:["凿","鑿"],dāo:["刀","刂","忉","氘","舠","螩","釖","魛","鱽"],chuāng:["刅","摐","牎","牕","疮","瘡","窓","窗","窻"],"fēn fèn":["分"],"qiè qiē":["切"],kān:["刊","勘","堪","戡","栞","龕","龛"],cǔn:["刌","忖"],chú:["刍","厨","幮","廚","橱","櫉","櫥","滁","犓","篨","耡","芻","蒢","蒭","蜍","蟵","豠","趎","蹰","躇","躕","鉏","鋤","锄","除","雏","雛","鶵"],"huà huá":["划"],lí:["刕","剓","剺","劙","厘","喱","嚟","囄","嫠","孷","廲","悡","梨","梸","棃","漓","灕","犁","犂","狸","琍","璃","瓈","盠","睝","离","穲","竰","筣","篱","籬","糎","縭","缡","罹","艃","荲","菞","蓠","蔾","藜","蘺","蜊","蟍","蟸","蠫","褵","謧","貍","醨","鋫","錅","鏫","鑗","離","驪","骊","鯏","鯬","鱺","鲡","鵹","鸝","鹂","黎","黧","㰀"],yuè:["刖","嬳","岄","岳","嶽","恱","悅","悦","戉","抈","捳","月","樾","瀹","爚","玥","礿","禴","篗","籆","籥","籰","粤","粵","蘥","蚎","蚏","説","越","跀","跃","躍","軏","鈅","鉞","鑰","钺","閱","閲","阅","鸑","鸙","黦","龠","𫐄","𬸚"],liú:["刘","劉","嚠","媹","嵧","旈","旒","榴","橊","流","浏","瀏","琉","瑠","瑬","璢","畄","留","畱","疁","瘤","癅","硫","蒥","蓅","蟉","裗","鎏","鏐","鐂","镠","飀","飅","飗","駠","駵","騮","驑","骝","鰡","鶹","鹠","麍"],zé:["则","則","啧","嘖","嫧","帻","幘","択","樍","歵","沢","泎","溭","皟","瞔","矠","礋","箦","簀","舴","蔶","蠌","襗","謮","賾","赜","迮","鸅","齚","齰"],"chuàng chuāng":["创","創"],qù:["刞","厺","去","閴","闃","阒","麮","鼁"],"bié biè":["別","别"],"páo bào":["刨"],"chǎn chàn":["刬","剗","幝"],guā:["刮","劀","桰","歄","煱","瓜","胍","踻","颪","颳","騧","鴰","鸹"],gēng:["刯","庚","椩","浭","焿","畊","絚","羮","羹","耕","菮","賡","赓","鶊","鹒"],dào:["到","噵","悼","椡","檤","燾","瓙","盗","盜","稲","稻","纛","翿","艔","菿","衜","衟","軇","道"],chuàng:["刱","剏","剙","怆","愴"],kū:["刳","哭","圐","堀","枯","桍","矻","窟","跍","郀","骷","鮬"],duò:["刴","剁","墯","尮","惰","憜","挅","桗","舵","跥","跺","陊","陏","飿","饳","鵽"],"shuā shuà":["刷"],"quàn xuàn":["券"],"chà shā":["刹","剎"],"cì cī":["刺"],guì:["刽","刿","劊","劌","撌","攰","昋","桂","椢","槶","樻","櫃","猤","禬","筀","蓕","襘","貴","贵","跪","鐀","鑎","鞼","鱖","鱥"],lóu:["剅","娄","婁","廔","楼","樓","溇","漊","熡","耧","耬","艛","蒌","蔞","蝼","螻","謱","軁","遱","鞻","髅","髏","𪣻"],cuò:["剉","剒","厝","夎","挫","措","棤","莝","莡","蓌","逪","銼","錯","锉","错"],"xiāo xuē":["削"],"kēi kè":["剋","尅"],"là lá":["剌"],tī:["剔","梯","踢","銻","锑","鷈","鷉","䏲","䴘"],pōu:["剖"],wān:["剜","塆","壪","帵","弯","彎","湾","潫","灣","睕","蜿","豌"],"bāo bō":["剝","剥"],duō:["剟","咄","哆","嚉","多","夛","掇","毲","畓","裰","㙍"],qíng:["剠","勍","夝","情","擎","晴","暒","棾","樈","檠","氰","甠","硘","葝","黥"],"yǎn shàn":["剡"],"dū zhuó":["剢"],yān:["剦","嫣","崦","嶖","恹","懕","懨","樮","淊","淹","漹","烟","焉","焑","煙","珚","篶","胭","臙","菸","鄢","醃","閹","阉","黫"],huō:["剨","劐","吙","攉","秴","耠","锪","騞","𬴃"],shèng:["剩","剰","勝","圣","墭","嵊","晠","榺","橳","琞","聖","蕂","貹","賸"],"duān zhì":["剬"],wū:["剭","呜","嗚","圬","屋","巫","弙","杇","歍","汙","汚","污","洿","烏","窏","箼","螐","誈","誣","诬","邬","鄔","鎢","钨","鰞","鴮"],gē:["割","哥","圪","彁","戈","戓","戨","歌","滒","犵","肐","袼","謌","鎶","鴚","鴿","鸽"],"dá zhá":["剳"],chuán:["剶","暷","椽","篅","舡","舩","船","輲","遄"],"tuán zhuān":["剸","漙","篿"],"lù jiū":["剹"],pēng:["剻","匉","嘭","怦","恲","抨","梈","烹","砰","軯","駍"],piāo:["剽","勡","慓","旚","犥","翲","螵","飃","飄","飘","魒"],kōu:["剾","彄","抠","摳","眍","瞘","芤","𫸩"],"jiǎo chāo":["剿","劋","勦","摷"],qiāo:["劁","勪","墝","幧","敲","橇","毃","燆","硗","磽","繑","趬","跷","踍","蹺","蹻","郻","鄡","鄥","鍫","鍬","鐰","锹","頝"],"huá huà":["劃"],"zhā zhá":["劄"],"pī pǐ":["劈","悂"],tāng:["劏","嘡","羰","薚","蝪","蹚","鞺","鼞"],chán:["劖","嚵","壥","婵","嬋","巉","廛","棎","毚","湹","潹","潺","澶","瀍","瀺","煘","獑","磛","緾","纏","纒","缠","艬","蝉","蟐","蟬","蟾","誗","讒","谗","躔","鄽","酁","鋋","鑱","镵","饞","馋"],zuān:["劗","躜","躦","鉆","鑚"],mó:["劘","嫫","嬤","嬷","尛","摹","擵","橅","糢","膜","藦","蘑","謨","謩","谟","饃","饝","馍","髍","魔","魹"],zhú:["劚","斸","曯","欘","灟","炢","烛","燭","爥","瘃","竹","笁","笜","舳","茿","蓫","蠋","蠾","躅","逐","逫","钃","鱁"],quàn:["劝","勧","勸","牶","韏"],"jìn jìng":["劤","劲","勁"],kēng:["劥","坑","牼","硁","硜","誙","銵","鍞","鏗","铿","阬"],"xié liè":["劦"],"zhù chú":["助"],nǔ:["努","弩","砮","胬"],shào:["劭","卲","哨","潲","紹","綤","绍","袑","邵"],miǎo:["劰","杪","淼","渺","眇","秒","篎","緲","缈","藐","邈"],kǒu:["劶","口"],wā:["劸","娲","媧","屲","挖","攨","洼","溛","漥","瓾","畖","穵","窊","窪","蛙","韈","鼃"],kuāng:["劻","匡","匩","哐","恇","洭","筐","筺","誆","诓","軭","邼"],hé:["劾","咊","啝","姀","峆","敆","曷","柇","楁","毼","河","涸","渮","澕","熆","皬","盇","盉","盍","盒","禾","篕","籺","粭","翮","菏","萂","覈","訸","詥","郃","釛","鉌","鑉","閡","闔","阂","阖","鞨","頜","餄","饸","魺","鹖","麧","齕","龁","龢","𬌗"],gào:["勂","吿","告","峼","祮","祰","禞","筶","誥","诰","郜","鋯","锆"],"bó bèi":["勃"],láng:["勆","嫏","廊","斏","桹","榔","樃","欴","狼","琅","瑯","硠","稂","艆","蓈","蜋","螂","躴","郒","郞","鋃","鎯","锒"],xūn:["勋","勛","勲","勳","嚑","坃","埙","塤","壎","壦","曛","燻","獯","矄","纁","臐","薫","薰","蘍","醺","𫄸"],"juàn juān":["勌","瓹"],"lè lēi":["勒"],kài:["勓","炌","烗","鎎"],"wěng yǎng":["勜"],qín:["勤","嗪","噙","嶜","庈","懃","懄","捦","擒","斳","檎","澿","珡","琴","琹","瘽","禽","秦","耹","芩","芹","菦","螓","蠄","鈙","鈫","雂","靲","鳹","鵭"],jiàng:["勥","匞","匠","嵹","弜","弶","摾","櫤","洚","滰","犟","糡","糨","絳","绛","謽","酱","醤","醬"],fān:["勫","嬏","帆","幡","忛","憣","旙","旛","繙","翻","藩","轓","颿","飜","鱕"],juān:["勬","姢","娟","捐","涓","蠲","裐","鎸","鐫","镌","鹃"],"tóng dòng":["勭","烔","燑","狪"],lǜ:["勴","垏","嵂","律","慮","氯","滤","濾","爈","箻","綠","繂","膟","葎","虑","鑢"],chè:["勶","坼","彻","徹","掣","撤","澈","烢","爡","瞮","硩","聅","迠","頙","㬚"],sháo:["勺","玿","韶"],"gōu gòu":["勾"],cōng:["匆","囪","囱","忩","怱","悤","暰","樬","漗","瑽","璁","瞛","篵","繱","聡","聦","聪","聰","苁","茐","葱","蓯","蔥","蟌","鍯","鏓","鏦","騘","驄","骢"],"táo yáo":["匋","陶"],páo:["匏","咆","垉","庖","爮","狍","袍","褜","軳","鞄","麅"],dá:["匒","妲","怛","炟","燵","畣","笪","羍","荙","薘","蟽","詚","达","迏","迖","迚","逹","達","鐽","靼","鞑","韃","龖","龘","𫟼"],"huà huā":["化"],"běi bèi":["北"],nǎo:["匘","垴","堖","嫐","恼","悩","惱","瑙","碯","脑","脳","腦"],"chí shi":["匙"],fāng:["匚","堏","方","淓","牥","芳","邡","鈁","錺","钫","鴋"],zā:["匝","咂","帀","沞","臜","臢","迊","鉔","魳"],qiè:["匧","厒","妾","怯","悏","惬","愜","挈","穕","窃","竊","笡","箧","篋","籡","踥","鍥","锲","鯜"],"zāng cáng":["匨"],fěi:["匪","奜","悱","棐","榧","篚","翡","蕜","誹","诽"],"kuì guì":["匮","匱"],suǎn:["匴"],pǐ:["匹","噽","嚭","圮","庀","痞","癖","脴","苉","銢","鴄"],"qū ōu":["区","區"],"kē qià":["匼"],"yǎn yàn":["匽","棪"],biǎn:["匾","惼","揙","碥","稨","窆","藊","褊","貶","贬","鴘"],nì:["匿","堄","嫟","嬺","惄","愵","昵","暱","氼","眤","睨","縌","胒","腻","膩","逆","𨺙"],niàn:["卄","唸","埝","廿","念","惗","艌"],sà:["卅","櫒","脎","萨","蕯","薩","鈒","隡","颯","飒","馺"],zú:["卆","哫","崪","族","箤","足","踤","镞"],shēng:["升","呏","声","斘","昇","曻","枡","殅","泩","湦","焺","牲","珄","生","甥","竔","笙","聲","鉎","鍟","阩","陞","陹","鵿","鼪"],wàn:["卍","卐","忨","杤","瞣","脕","腕","萬","蟃","贎","輐","錽","𬇕"],"huá huà huā":["华","華"],bēi:["卑","悲","揹","杯","桮","盃","碑","藣","鵯","鹎"],"zú cù":["卒"],"dān shàn chán":["单","單"],"nán nā":["南"],"shuài lǜ":["卛"],"bǔ bo pú":["卜"],"kuàng guàn":["卝"],biàn:["卞","变","変","峅","弁","徧","忭","抃","昪","汳","汴","玣","艑","苄","覍","諚","變","辡","辧","辨","辩","辫","辮","辯","遍","釆","𨚕"],bǔ:["卟","哺","捕","补","補","鸔","𬷕"],"zhàn zhān":["占","覱"],"kǎ qiǎ":["卡"],lú:["卢","嚧","垆","壚","庐","廬","曥","枦","栌","櫨","泸","瀘","炉","爐","獹","玈","瓐","盧","矑","籚","纑","罏","胪","臚","舮","舻","艫","芦","蘆","蠦","轤","轳","鈩","鑪","顱","颅","馿","髗","魲","鱸","鲈","鸕","鸬","黸","𬬻"],lǔ:["卤","塷","掳","擄","樐","橹","櫓","氌","滷","澛","瀂","硵","磠","穞","艣","艪","蓾","虏","虜","鏀","鐪","鑥","镥","魯","鲁","鹵"],guà:["卦","啩","挂","掛","罣","褂","詿","诖"],"áng yǎng":["卬"],yìn:["印","垽","堷","廕","慭","憖","憗","懚","洕","湚","猌","癊","胤","茚","酳","鮣","䲟"],què:["却","卻","塙","崅","悫","愨","慤","搉","榷","燩","琷","皵","确","確","礭","闋","阕","鵲","鹊","𬒈"],luǎn:["卵"],"juàn juǎn":["卷","巻"],"chǎng ān hàn":["厂"],"wěi yán":["厃"],tīng:["厅","厛","听","庁","廰","廳","汀","烃","烴","綎","耓","聴","聼","聽","鞓","𬘩"],"zhé zhái":["厇"],"hàn àn":["厈","屽"],yǎ:["厊","唖","庌","痖","瘂","蕥"],shè:["厍","厙","弽","慑","慴","懾","摂","欇","涉","涻","渉","滠","灄","社","舎","蔎","蠂","設","设","赦","騇","麝"],dǐ:["厎","呧","坘","弤","抵","拞","掋","牴","砥","菧","觝","詆","诋","軧","邸","阺","骶","鯳"],"zhǎ zhǎi":["厏"],páng:["厐","嫎","庞","徬","舽","螃","逄","鰟","鳑","龎","龐"],"zhì shī":["厔"],máng:["厖","吂","哤","娏","忙","恾","杗","杧","汒","浝","牻","痝","盲","硭","笀","芒","茫","蘉","邙","釯","鋩","铓","駹"],zuī:["厜","樶","纗","蟕"],"shà xià":["厦","廈"],áo:["厫","嗷","嗸","廒","敖","滶","獒","獓","璈","翱","翶","翺","聱","蔜","螯","謷","謸","遨","鏖","隞","鰲","鳌","鷔","鼇"],"lán qiān":["厱"],"sī mǒu":["厶"],"gōng hóng":["厷"],"lín miǎo":["厸"],"qiú róu":["厹"],dū:["厾","嘟","督","醏"],"xiàn xuán":["县","縣"],"cān shēn cēn sān":["参","參","叄","叅"],"ài yǐ":["叆"],"chā chà chǎ chá":["叉"],shuāng:["双","孀","孇","欆","礵","艭","雙","霜","騻","驦","骦","鷞","鸘","鹴"],shōu:["収","收"],guái:["叏"],bá:["叐","妭","抜","拔","炦","癹","胈","茇","菝","詙","跋","軷","魃","鼥"],"fā fà":["发"],"zhuó yǐ lì jué":["叕"],qǔ:["取","娶","竬","蝺","詓","齲","龋"],"jiǎ xiá":["叚","徦"],"wèi yù":["叞","尉","蔚"],dié:["叠","垤","堞","峌","幉","恎","惵","戜","曡","殜","氎","牃","牒","瓞","畳","疂","疉","疊","碟","絰","绖","耊","耋","胅","艓","苵","蜨","蝶","褋","詄","諜","谍","跮","蹀","迭","镻","鰈","鲽","鴩","𫶇"],ruì:["叡","枘","汭","瑞","睿","芮","蚋","蜹","銳","鋭","锐"],"jù gōu":["句"],lìng:["另","呤","炩","蘦"],"dāo dáo tāo":["叨"],"zhī zhǐ":["只"],jiào:["叫","呌","嘂","嘦","噍","嬓","斍","斠","滘","漖","獥","珓","皭","窖","藠","訆","譥","趭","較","轎","轿","较","酵","醮","釂"],"zhào shào":["召"],"kě kè":["可"],"tái tāi":["台","苔"],pǒ:["叵","尀","笸","箥","鉕","钷","駊"],"yè xié":["叶"],"hào háo":["号"],tàn:["叹","嘆","探","歎","湠","炭","碳","舕"],"hōng hóng":["叿"],miē:["吀","咩","哶","孭"],"xū yū yù":["吁"],chī:["吃","哧","喫","嗤","噄","妛","媸","彨","彲","摛","攡","殦","瓻","痴","癡","眵","瞝","笞","粚","胵","蚩","螭","訵","魑","鴟","鵄","鸱","黐","齝","𫄨"],"xuān sòng":["吅"],yāo:["吆","喓","夭","妖","幺","楆","殀","祅","腰","葽","訞","邀","鴁","鴢","㙘"],zǐ:["吇","姉","姊","子","杍","梓","榟","橴","滓","矷","秭","笫","籽","紫","耔","虸","訿","釨"],"hé gě":["合","鲄"],"cùn dòu":["吋"],"tóng tòng":["同"],"tǔ tù":["吐","唋"],"zhà zhā":["吒","奓"],"xià hè":["吓"],"ā yā":["吖"],"ma má mǎ":["吗"],lìn:["吝","恡","悋","橉","焛","甐","膦","蔺","藺","賃","赁","蹸","躏","躙","躪","轥","閵"],tūn:["吞","暾","朜","焞"],"bǐ pǐ":["吡"],qìn:["吢","吣","唚","抋","揿","搇","撳","沁","瀙","菣","藽"],"jiè gè":["吤"],"fǒu pǐ":["否"],"ba bā":["吧"],dūn:["吨","噸","墩","墪","惇","撉","撴","犜","獤","礅","蜳","蹾","驐"],fēn:["吩","帉","昐","朆","梤","棻","氛","竕","紛","纷","翂","芬","衯","訜","躮","酚","鈖","雰","餴","饙","馚"],"é huā":["吪"],"kēng háng":["吭","妔"],shǔn:["吮"],"zhī zī":["吱"],"yǐn shěn":["吲"],wú:["吳","吴","呉","墲","峿","梧","橆","毋","洖","浯","無","珸","璑","祦","芜","茣","莁","蕪","蜈","蟱","譕","郚","鋙","铻","鯃","鵐","鷡","鹀","鼯"],"chǎo chāo":["吵"],"nà nè":["吶"],"xuè chuò jué":["吷"],chuī:["吹","炊","龡"],"dōu rú":["吺"],hǒu:["吼","犼"],"hōng hǒu ōu":["吽"],"wú yù":["吾"],"ya yā":["呀"],"è e":["呃"],dāi:["呆","懛","獃"],"mèn qǐ":["呇"],hōng:["呍","嚝","揈","灴","烘","焢","硡","薨","訇","谾","軣","輷","轟","轰","鍧"],nà:["呐","捺","笝","納","纳","肭","蒳","衲","豽","貀","軜","郍","鈉","钠","靹","魶"],"tūn tiān":["呑"],"fǔ ḿ":["呒","嘸"],"dāi tǎi":["呔"],"ǒu ōu òu":["呕"],"bài bei":["呗"],"yuán yún yùn":["员","員"],guō:["呙","啯","嘓","埚","堝","墎","崞","彉","彍","懖","猓","瘑","聒","蝈","蟈","郭","鈛","鍋","锅"],"huá qì":["呚"],"qiàng qiāng":["呛","跄"],shī:["呞","失","尸","屍","师","師","施","浉","湤","湿","溮","溼","濕","狮","獅","瑡","絁","葹","蒒","蓍","虱","蝨","褷","襹","詩","诗","邿","釃","鉇","鍦","鯴","鰤","鲺","鳲","鳾","鶳","鸤","䴓","𫚕"],juǎn:["呟","埍","臇","菤","錈","锩"],pěn:["呠","翸"],"wěn mǐn":["呡"],"ne ní":["呢"],"ḿ m̀ móu":["呣"],rán:["呥","嘫","然","燃","繎","肰","蚦","蚺","衻","袇","袡","髥","髯"],"tiè chè":["呫"],"qì zhī":["呮"],"zǐ cī":["呰"],"guā gū guǎ":["呱"],"cī zī":["呲"],"hǒu xǔ gòu":["呴"],"hē ā á ǎ à a":["呵"],náo:["呶","夒","峱","嶩","巎","挠","撓","猱","硇","蛲","蟯","詉","譊","鐃","铙"],"xiā gā":["呷"],pēi:["呸","怌","肧","胚","衃","醅"],"háo xiāo":["呺"],mìng:["命","掵"],"dá dàn":["呾"],"zuǐ jǔ":["咀"],"xián gān":["咁"],pǒu:["咅","哣","犃"],"yǎng yāng":["咉"],"zǎ zé zhā":["咋"],"hé hè huó huò hú":["和"],hāi:["咍"],dā:["咑","哒","噠","墶","搭","撘","耷","褡","鎝","𨱏"],"kǎ kā":["咔"],gū:["咕","唂","唃","姑","嫴","孤","巬","巭","柧","橭","沽","泒","稒","笟","箍","箛","篐","罛","苽","菇","菰","蓇","觚","軱","軲","轱","辜","酤","鈲","鮕","鴣","鸪"],"kā gā":["咖"],zuo:["咗"],lóng:["咙","嚨","嶐","巃","巄","昽","曨","朧","栊","槞","櫳","湰","滝","漋","爖","珑","瓏","癃","眬","矓","砻","礱","礲","窿","竜","聋","聾","胧","茏","蘢","蠪","蠬","襱","豅","鏧","鑨","霳","靇","驡","鸗","龍","龒","龙"],"xiàn xián":["咞"],qì:["咠","唭","噐","器","夡","弃","憇","憩","暣","棄","欫","气","気","氣","汔","汽","泣","湆","湇","炁","甈","盵","矵","碛","碶","磜","磧","罊","芞","葺","藒","蟿","訖","讫","迄","鐑"],"xì dié":["咥"],"liē liě lié lie":["咧"],zī:["咨","嗞","姕","姿","孜","孳","孶","崰","嵫","栥","椔","淄","湽","滋","澬","玆","禌","秶","粢","紎","緇","緕","纃","缁","茊","茲","葘","諮","谘","貲","資","赀","资","赼","趑","趦","輜","輺","辎","鄑","鈭","錙","鍿","鎡","锱","镃","頾","頿","髭","鯔","鰦","鲻","鶅","鼒","齍","齜","龇"],mī:["咪"],"jī xī qià":["咭"],"gē luò kǎ lo":["咯"],"shù xún":["咰"],"zán zá zǎ zan":["咱"],"hāi ké":["咳"],huī:["咴","噅","噕","婎","媈","幑","徽","恢","拻","挥","揮","晖","暉","楎","洃","瀈","灰","灳","烣","睳","禈","翚","翬","蘳","袆","褘","詼","诙","豗","輝","辉","鰴","麾","㧑"],"huài shì":["咶"],táo:["咷","啕","桃","檮","洮","淘","祹","綯","绹","萄","蜪","裪","迯","逃","醄","鋾","鞀","鞉","饀","駣","騊","鼗","𫘦"],xián:["咸","啣","娴","娹","婱","嫌","嫺","嫻","弦","挦","撏","涎","湺","澖","甉","痫","癇","癎","絃","胘","舷","藖","蚿","蛝","衔","衘","誸","諴","賢","贒","贤","輱","醎","銜","鑦","閑","闲","鷳","鷴","鷼","鹇","鹹","麙","𫍯"],"è àn":["咹"],"xuān xuǎn":["咺","烜"],"wāi hé wǒ guǎ guō":["咼"],"yàn yè yān":["咽"],āi:["哀","哎","埃","溾","銰","鎄","锿"],pǐn:["品","榀"],shěn:["哂","婶","嬸","审","宷","審","弞","曋","渖","瀋","瞫","矤","矧","覾","訠","諗","讅","谂","谉","邥","頣","魫"],"hǒng hōng hòng":["哄"],"wā wa":["哇"],"hā hǎ hà":["哈"],zāi:["哉","栽","渽","溨","災","灾","烖","睵","賳"],"dì diè":["哋"],pài:["哌","沠","派","渒","湃","蒎","鎃"],"gén hěn":["哏"],"yǎ yā":["哑","雅"],"yuě huì":["哕","噦"],nián:["哖","年","秊","秥","鮎","鯰","鲇","鲶","鵇","黏"],"huá huā":["哗","嘩"],"jì jiē zhāi":["哜","嚌"],mōu:["哞"],"yō yo":["哟","喲"],lòng:["哢","梇","贚"],"ò ó é":["哦"],"lī lǐ li":["哩"],"nǎ na nǎi né něi":["哪"],hè:["哬","垎","壑","寉","惒","焃","煂","燺","爀","癋","碋","翯","褐","謞","賀","贺","赫","靍","靎","靏","鶴","鸖","鹤"],"bō pò bā":["哱"],zhé:["哲","啠","喆","嚞","埑","悊","摺","晢","晣","歽","矺","砓","磔","籷","粍","虴","蛰","蟄","袩","詟","謫","謺","讁","讋","谪","輒","輙","轍","辄","辙","鮿"],"liàng láng":["哴"],"liè lǜ":["哷"],hān:["哻","憨","蚶","谽","酣","頇","顸","馠","魽","鼾"],"hēng hng":["哼"],gěng:["哽","埂","峺","挭","梗","綆","绠","耿","莄","郠","骾","鯁","鲠","𬒔"],"chuò yuè":["哾"],"gě jiā":["哿"],"bei bài":["唄"],"hán hàn":["唅"],chún:["唇","浱","湻","滣","漘","犉","純","纯","脣","莼","蒓","蓴","醇","醕","錞","陙","鯙","鶉","鹑","𬭚"],"ài āi":["唉"],"jiá qiǎn":["唊"],"yán dàn xián":["唌"],chē:["唓","砗","硨","莗","蛼"],"wú ńg ń":["唔"],zào:["唕","唣","噪","慥","梍","灶","煰","燥","皁","皂","竃","竈","簉","艁","譟","趮","躁","造","𥖨"],dí:["唙","啇","嘀","嚁","嫡","廸","敌","敵","梑","涤","滌","狄","笛","籴","糴","苖","荻","蔋","蔐","藡","覿","觌","豴","迪","靮","頔","馰","髢","鸐","𬱖"],"gòng hǒng gǒng":["唝","嗊"],dóu:["唞"],"lào láo":["唠","嘮","憦"],huàn:["唤","喚","奂","奐","宦","嵈","幻","患","愌","换","換","擐","攌","梙","槵","浣","涣","渙","漶","澣","烉","焕","煥","瑍","痪","瘓","睆","肒","藧","豢","轘","逭","鯇","鯶","鰀","鲩"],léng:["唥","塄","楞","碐","薐"],"wō wěi":["唩"],fěng:["唪","覂","諷","讽"],"yín jìn":["唫"],"hǔ xià":["唬"],wéi:["唯","围","圍","壝","峗","峞","嵬","帏","帷","幃","惟","桅","沩","洈","涠","湋","溈","潍","潙","潿","濰","犩","矀","維","维","蓶","覹","违","違","鄬","醀","鍏","闈","闱","韋","韦","鮠","𣲗","𬶏"],shuā:["唰"],chàng:["唱","怅","悵","暢","焻","畅","畼","誯","韔","鬯"],"ér wā":["唲"],qiàng:["唴","炝","熗","羻"],yō:["唷"],yū:["唹","淤","瘀","盓","箊","紆","纡","込","迂","迃","陓"],lài:["唻","濑","瀨","瀬","癞","癩","睐","睞","籁","籟","藾","賚","賴","赉","赖","頼","顂","鵣"],tuò:["唾","嶞","柝","毤","毻","箨","籜","萚","蘀","跅"],"zhōu zhāo tiào":["啁"],kěn:["啃","垦","墾","恳","懇","肎","肯","肻","豤","錹"],"zhuó zhào":["啅","濯"],"hēng hèng":["啈","悙"],"lín lán":["啉"],"a ā á ǎ à":["啊"],qiāng:["啌","嗴","嶈","戕","摤","斨","枪","槍","溬","牄","猐","獇","羌","羗","腔","蜣","謒","鏘","锖","锵"],"tūn zhūn xiāng duǐ":["啍"],wèn:["問","妏","揾","搵","璺","问","顐"],"cuì qi":["啐"],"dié shà jié tì":["啑"],"yuē wā":["啘"],"zǐ cǐ":["啙"],"bǐ tú":["啚"],"chuò chuài":["啜"],"yǎ yā è":["啞"],fēi:["啡","婓","婔","扉","暃","渄","猆","緋","绯","裶","霏","非","靟","飛","飝","飞","餥","馡","騑","騛","鯡","鲱","𬴂"],pí:["啤","壀","枇","毗","毘","焷","琵","疲","皮","篺","罴","羆","脾","腗","膍","蚍","蚽","蜱","螷","蠯","豼","貔","郫","鈹","阰","陴","隦","魮","鮍","鲏","鵧","鼙"],shá:["啥"],"lā la":["啦"],"yīng qíng":["啨"],pā:["啪","妑","舥","葩","趴"],"zhě shì":["啫"],sè:["啬","嗇","懎","擌","栜","歮","涩","渋","澀","澁","濇","濏","瀒","瑟","璱","瘷","穑","穡","穯","繬","譅","轖","銫","鏼","铯","飋"],niè:["啮","嗫","噛","嚙","囁","囓","圼","孼","孽","嵲","嶭","巕","帇","敜","枿","槷","櫱","涅","湼","痆","篞","籋","糱","糵","聂","聶","臬","臲","蘖","蠥","讘","踂","踗","踙","蹑","躡","錜","鎳","鑈","鑷","钀","镊","镍","闑","陧","隉","顳","颞","齧","𫔶"],"luō luó luo":["啰","囉"],"tān chǎn tuō":["啴"],bo:["啵","蔔"],dìng:["啶","定","椗","矴","碇","碠","磸","聢","腚","萣","蝊","訂","订","錠","锭","顁","飣","饤"],lāng:["啷"],"án ān":["啽"],kā:["喀","擖"],"yóng yú":["喁"],"lā lá lǎ":["喇"],jiē:["喈","喼","嗟","堦","媘","接","掲","擑","湝","煯","疖","痎","癤","皆","秸","稭","脻","蝔","街","謯","阶","階","鞂","鶛"],hóu:["喉","帿","猴","瘊","睺","篌","糇","翭","葔","鄇","鍭","餱","骺","鯸","𬭤"],"dié zhá":["喋"],wāi:["喎","歪","竵"],"nuò rě":["喏"],"xù huò guó":["喐"],zán:["喒"],"wō ō":["喔"],hú:["喖","嘝","囫","壶","壷","壺","媩","弧","搰","斛","楜","槲","湖","瀫","焀","煳","狐","猢","瑚","瓳","箶","絗","縠","胡","葫","蔛","蝴","螜","衚","觳","醐","鍸","頶","餬","鬍","魱","鰗","鵠","鶘","鶦","鹕"],"huàn yuán xuǎn hé":["喛"],xǐ:["喜","囍","壐","屣","徙","憙","枲","橲","歖","漇","玺","璽","矖","禧","縰","葈","葸","蓰","蟢","謑","蹝","躧","鈢","鉨","鉩","鱚","𬭳","𬶮"],"hē hè yè":["喝"],kuì:["喟","嘳","媿","嬇","愦","愧","憒","篑","簣","籄","聩","聭","聵","膭","蕢","謉","餽","饋","馈"],"zhǒng chuáng":["喠"],"wéi wèi":["喡","為","爲"],"duó zhà":["喥"],"sāng sàng":["喪"],"qiáo jiāo":["喬"],"pèn bēn":["喯"],"cān sūn qī":["喰"],"zhā chā":["喳"],miāo:["喵"],"pēn pèn":["喷"],kuí:["喹","夔","奎","巙","戣","揆","晆","暌","楏","楑","櫆","犪","睽","葵","藈","蘷","虁","蝰","躨","逵","鄈","鍨","鍷","頯","馗","騤","骙","魁"],"lou lóu":["喽"],"zào qiāo":["喿"],"hè xiāo xiào hù":["嗃"],"á shà":["嗄"],xiù:["嗅","岫","峀","溴","珛","琇","璓","秀","綉","繍","繡","绣","螑","袖","褎","褏","銹","鏥","鏽","锈","齅"],"qiāng qiàng":["嗆","戗","戧","蹌","蹡"],"ài yì":["嗌","艾"],"má mǎ ma":["嗎"],"kè kē":["嗑"],"dā tà":["嗒","鎉"],sǎng:["嗓","搡","磉","褬","鎟","顙","颡"],chēn:["嗔","抻","琛","瞋","諃","謓","賝","郴","𬘭"],"wā gǔ":["嗗"],"pǎng bēng":["嗙"],"xián qiǎn qiān":["嗛"],lào:["嗠","嫪","橯","涝","澇","耢","耮","躼","軂","酪"],wēng:["嗡","翁","聬","螉","鎓","鶲","鹟","𬭩"],wà:["嗢","腽","膃","袜","襪","韤"],"hēi hāi":["嗨"],hē:["嗬","欱","蠚","訶","诃"],zi:["嗭"],sǎi:["嗮"],"ǹg ńg ňg":["嗯"],gě:["嗰","舸"],ná:["嗱","拏","拿","鎿","镎"],diǎ:["嗲"],"ài ǎi āi":["嗳"],tōng:["嗵","樋","炵","蓪"],"zuī suī":["嗺"],"zhē zhè zhù zhe":["嗻"],mò:["嗼","圽","塻","墨","妺","嫼","寞","帞","昩","末","枺","歿","殁","沫","漠","爅","獏","瘼","皌","眽","眿","瞐","瞙","砞","礳","秣","絈","纆","耱","茉","莈","蓦","蛨","蟔","貃","貊","貘","銆","鏌","镆","陌","靺","驀","魩","默","黙","𬙊"],sòu:["嗽","瘶"],tǎn:["嗿","坦","忐","憳","憻","暺","毯","璮","菼","袒","襢","醓","鉭","钽"],"jiào dǎo":["嘄"],"kǎi gě":["嘅"],"shān càn":["嘇"],cáo:["嘈","嶆","曹","曺","槽","漕","艚","蓸","螬","褿","鏪","𥕢"],piào:["嘌","徱","蔈","驃"],"lóu lou":["嘍"],gǎ:["尕","玍"],"gǔ jiǎ":["嘏"],"jiāo xiāo":["嘐"],"xū shī":["嘘","噓"],pó:["嘙","嚩","婆","櫇","皤","鄱"],"dē dēi":["嘚"],"ma má":["嘛"],"lē lei":["嘞"],"gā gá gǎ":["嘠"],sāi:["嘥","噻","毢","腮","顋","鰓"],"zuō chuài":["嘬"],"cháo zhāo":["嘲","朝","鼂"],zuǐ:["嘴","噿","嶊","璻"],"qiáo qiào":["嘺","翹","谯"],"chù xù shòu":["嘼"],"tān chǎn":["嘽"],"dàn tán":["嘾","弾","彈","惔","澹"],"hēi mò":["嘿"],ě:["噁","砨","頋","騀","鵈"],"fān bo":["噃"],chuáng:["噇","床","牀"],"cù zā hé":["噈"],"tūn kuò":["噋"],"cēng chēng":["噌"],dēng:["噔","嬁","灯","燈","璒","登","竳","簦","艠","豋"],pū:["噗","扑","撲","攴","攵","潽","炇","陠"],juē:["噘","屩","屫","撧"],lū:["噜","嚕","撸","擼","謢"],zhān:["噡","岾","惉","旃","旜","枬","栴","毡","氈","氊","沾","瞻","薝","蛅","詀","詹","譫","谵","趈","邅","閚","霑","飦","饘","驙","魙","鱣","鸇","鹯","𫗴"],ō:["噢"],"zhòu zhuó":["噣"],"jiào qiào chī":["噭"],yuàn:["噮","妴","怨","愿","掾","瑗","禐","苑","衏","裫","褑","院","願"],"ǎi ài āi":["噯"],"yōng yǒng":["噰","澭"],"jué xué":["噱"],"pēn pèn fèn":["噴"],gá:["噶","尜","釓","錷","钆"],"xīn hěn hèn":["噷"],dāng:["噹","澢","珰","璫","筜","簹","艡","蟷","裆","襠"],làn:["嚂","滥","濫","烂","燗","爁","爛","爤","瓓","糷","钄"],tà:["嚃","嚺","崉","挞","搨","撻","榻","橽","毾","涾","澾","濌","禢","粏","誻","譶","蹋","蹹","躂","躢","遝","錔","闒","闥","闼","阘","鞜","鞳"],"huō huò ǒ":["嚄"],hāo:["嚆","茠","蒿","薅"],"hè xià":["嚇"],"xiù pì":["嚊"],"zhōu chóu":["嚋","盩","诪"],mē:["嚒"],"chā cā":["嚓"],"bó pào bào":["嚗"],"me mèi mò":["嚜"],"xié hái":["嚡"],"áo xiāo":["嚣"],mō:["嚤","摸"],pín:["嚬","娦","嫔","嬪","玭","矉","薲","蠙","貧","贫","顰","颦","𬞟"],mè:["嚰","濹"],"rǎng rāng":["嚷"],lá:["嚹","旯"],"jiáo jué jiào":["嚼"],chuò:["嚽","娖","擉","歠","涰","磭","踀","輟","辍","辵","辶","酫","鑡","餟","齪","龊"],"huān huàn":["嚾"],"zá cà":["囃"],chài:["囆","虿","蠆","袃","訍"],"náng nāng":["囊"],"zá zàn cān":["囋"],sū:["囌","櫯","甦","稣","穌","窣","蘇","蘓","酥","鯂"],zèng:["囎","熷","甑","贈","赠","鋥","锃"],"zá niè yàn":["囐"],nāng:["囔"],"luó luō luo":["囖"],"wéi guó":["囗"],huí:["囘","回","囬","廻","廽","恛","洄","痐","茴","蚘","蛔","蛕","蜖","迴","逥","鮰"],nín:["囜","您","脌"],"jiǎn nān":["囝"],nān:["囡"],tuán:["团","団","團","慱","抟","摶","檲","糰","鏄","鷒","鷻"],"tún dùn":["囤","坉"],guó:["囯","囶","囻","国","圀","國","帼","幗","慖","摑","漍","聝","腘","膕","蔮","虢","馘","𬇹"],kùn:["困","涃","睏"],"wéi tōng":["囲"],qūn:["囷","夋","逡"],rì:["囸","日","衵","鈤","馹","驲"],tāi:["囼","孡","胎"],pǔ:["圃","圑","擈","普","暜","樸","檏","氆","浦","溥","烳","諩","譜","谱","蹼","鐠","镨"],"quān juàn juān":["圈","圏"],"chuí chuán":["圌"],tuǎn:["圕","畽","疃"],lüè:["圙","掠","略","畧","稤","鋝","鋢","锊","䂮"],"huán yuán":["圜"],luán:["圝","圞","奱","娈","孌","孪","孿","峦","巒","挛","攣","曫","栾","欒","滦","灤","癴","癵","羉","脔","臠","虊","銮","鑾","鵉","鸞","鸾"],tǔ:["土","圡","釷","钍"],"xū wéi":["圩"],"dì de":["地","嶳"],"qiān sú":["圱"],zhèn:["圳","塦","挋","振","朕","栚","甽","眹","紖","絼","纼","誫","賑","赈","鋴","鎭","鎮","镇","阵","陣","震","鴆","鸩"],"chǎng cháng":["场","場","塲"],"qí yín":["圻"],jiá:["圿","忦","恝","戞","扴","脥","荚","莢","蛱","蛺","裌","跲","郏","郟","鋏","铗","頬","頰","颊","鴶","鵊"],"zhǐ zhì":["坁"],bǎn:["坂","岅","昄","板","版","瓪","粄","舨","蝂","鈑","钣","阪","魬"],qǐn:["坅","寑","寝","寢","昑","梫","笉","螼","赾","鋟","锓"],"méi fén":["坆"],"rǒng kēng":["坈"],"fāng fáng":["坊"],"fèn bèn":["坋"],tān:["坍","怹","摊","擹","攤","滩","灘","瘫","癱","舑","貪","贪"],"huài pēi pī péi":["坏"],"dì làn":["坔"],tán:["坛","墰","墵","壇","壜","婒","憛","昙","曇","榃","檀","潭","燂","痰","磹","罈","罎","藫","談","譚","譠","谈","谭","貚","郯","醰","錟","顃"],bà:["坝","垻","壩","弝","欛","灞","爸","矲","覇","霸","鮁","鲅"],fén:["坟","墳","妢","岎","幩","枌","棼","汾","焚","燌","燓","羒","羵","蒶","蕡","蚠","蚡","豮","豶","轒","鐼","隫","馩","魵","黂","鼖","鼢","𣸣"],zhuì:["坠","墜","惴","甀","畷","礈","綴","縋","缀","缒","腏","膇","諈","贅","赘","醊","錣","鑆"],pō:["坡","岥","泼","溌","潑","釙","鏺","钋","頗","颇","䥽"],"pǎn bàn":["坢"],kūn:["坤","堃","堒","崐","崑","昆","晜","潉","焜","熴","猑","琨","瑻","菎","蜫","裈","裩","褌","醌","錕","锟","騉","髠","髡","髨","鯤","鲲","鵾","鶤","鹍"],diàn:["坫","垫","墊","壂","奠","婝","店","惦","扂","橂","殿","淀","澱","玷","琔","电","癜","簟","蜔","鈿","電","靛","驔"],"mù mǔ":["坶"],"kē kě":["坷","軻"],xuè:["坹","岤","桖","瀥","狘","瞲","謔","谑","趐"],"dǐ chí":["坻","柢"],lā:["垃","柆","菈","邋"],lǒng:["垄","垅","壟","壠","拢","攏","竉","陇","隴","𬕂"],mín:["垊","姄","岷","崏","捪","旻","旼","民","珉","琘","琝","瑉","痻","盿","砇","緍","緡","缗","罠","苠","鈱","錉","鍲","鴖"],"dòng tóng":["垌","峒","洞"],cí:["垐","嬨","慈","柌","濨","珁","瓷","甆","磁","礠","祠","糍","茨","詞","词","辝","辞","辤","辭","雌","飺","餈","鴜","鶿","鷀","鹚"],duī:["垖","堆","塠","痽","磓","鐓","鐜","鴭"],"duò duǒ":["垛"],"duǒ duò":["垜","挆"],chá:["垞","察","嵖","搽","槎","檫","猹","茬","茶","詧","靫","𥻗"],shǎng:["垧","晌","樉","賞","贘","赏","鋿","鏛","鑜"],shǒu:["垨","守","手","扌","艏","首"],da:["垯","繨","跶"],háng:["垳","斻","杭","筕","絎","绗","航","苀","蚢","裄","貥","迒","頏","颃","魧"],"ān ǎn":["垵"],xīng:["垶","惺","星","曐","煋","猩","瑆","皨","篂","腥","興","觪","觲","謃","騂","骍","鮏","鯹"],"yuàn huán":["垸"],bāng:["垹","帮","幇","幚","幫","捠","梆","浜","邦","邫","鞤","𠳐"],"póu fú":["垺"],cén:["埁","岑","涔"],"běng fēng":["埄"],"dì fáng":["埅"],"xiá jiā":["埉"],"mái mán":["埋"],làng:["埌","崀","浪","蒗","閬","㫰"],"shān yán":["埏"],"qín jīn":["埐"],"pǔ bù":["埔"],huā:["埖","婲","椛","硴","糀","花","蒊","蘤","誮","錵"],"suì sù":["埣"],"pí pì":["埤"],"qīng zhēng":["埥","鲭"],"wǎn wān":["埦"],lǔn:["埨","稐","𫭢"],"zhēng chéng":["埩"],kōng:["埪","崆","箜","躻","錓","鵼"],"cǎi cài":["埰","寀","采"],"chù tòu":["埱"],běng:["埲","琫","菶","鞛"],"kǎn xiàn":["埳"],"yì shì":["埶","醳"],péi:["培","毰","裴","裵","賠","赔","錇","锫","阫","陪"],"sào sǎo":["埽"],"jǐn qīn jìn":["堇"],"péng bèng":["堋"],"qiàn zàn jiàn":["堑"],àn:["堓","屵","岸","按","暗","案","胺","荌","豻","貋","錌","闇","隌","黯"],"duò huī":["堕","墮"],huán:["堚","寏","寰","峘","桓","洹","澴","獂","环","環","糫","繯","缳","羦","荁","萈","萑","豲","鍰","鐶","锾","镮","闤","阛","雈","鬟","鹮","𬘫","𤩽"],"bǎo bǔ pù":["堡"],"máo móu wǔ":["堥"],ruán:["堧","壖","撋"],"ài è yè":["堨"],gèng:["堩","暅"],méi:["堳","塺","媒","嵋","徾","攗","枚","栂","梅","楣","楳","槑","湄","湈","煤","猸","玫","珻","瑂","眉","睂","禖","脄","脢","腜","苺","莓","葿","郿","酶","鎇","镅","霉","鶥","鹛","黴"],dǔ:["堵","琽","睹","笃","篤","覩","賭","赌"],féng:["堸","綘","艂","逢"],hèng:["堼"],chūn:["堾","媋","旾","春","暙","杶","椿","槆","橁","櫄","瑃","箺","萅","蝽","輴","鰆","鶞","䲠"],jiǎng:["塂","奖","奨","奬","桨","槳","獎","耩","膙","蒋","蔣","講","讲","顜"],huāng:["塃","巟","慌","肓","荒","衁"],duàn:["塅","断","斷","椴","段","毈","煅","瑖","碫","簖","籪","緞","缎","腶","葮","躖","鍛","锻"],tǎ:["塔","墖","獭","獺","鮙","鰨","鳎"],wěng:["塕","奣","嵡","攚","暡","瞈","蓊"],"sāi sài sè":["塞"],zàng:["塟","弉","臓","臟","葬","蔵","銺"],tián:["塡","屇","恬","沺","湉","璳","甛","甜","田","畋","畑","碵","磌","胋","闐","阗","鴫","鷆","鷏"],zhèng:["塣","幁","政","証","諍","證","证","诤","郑","鄭","靕","鴊"],"tián zhèn":["填"],wēn:["塭","昷","榲","殟","温","溫","瑥","瘟","蕰","豱","輼","轀","辒","鎾","饂","鰛","鰮","鳁"],liù:["塯","廇","磟","翏","雡","霤","餾","鬸","鷚","鹨"],hǎi:["塰","海","烸","酼","醢"],lǎng:["塱","朖","朗","朤","烺","蓢","㮾"],bèng:["塴","揼","泵","甏","綳","蹦","迸","逬","鏰","镚"],chén:["塵","宸","尘","忱","敐","敶","晨","曟","栕","樄","沉","煁","瘎","臣","茞","莀","莐","蔯","薼","螴","訦","諶","軙","辰","迧","鈂","陈","陳","霃","鷐","麎"],"ōu qiū":["塸"],"qiàn jiàn":["塹"],"zhuān tuán":["塼"],shuǎng:["塽","慡","漺","爽","縔","鏯"],shú:["塾","婌","孰","璹","秫","贖","赎"],lǒu:["塿","嵝","嶁","甊","篓","簍"],chí:["墀","弛","持","池","漦","竾","筂","箎","篪","茌","荎","蚳","謘","貾","赿","踟","迟","迡","遅","遟","遲","鍉","馳","驰"],shù:["墅","庶","庻","怷","恕","戍","束","树","樹","沭","漱","潄","濖","竖","竪","絉","腧","荗","蒁","虪","術","裋","豎","述","鉥","錰","鏣","霔","鶐","𬬸"],"dì zhì":["墆","疐"],kàn:["墈","崁","瞰","矙","磡","衎","鬫"],chěn:["墋","夦","硶","碜","磣","贂","趻","踸","鍖"],"zhǐ zhuó":["墌"],qiǎng:["墏","繈","繦","羥","襁"],zēng:["増","增","憎","璔","矰","磳","罾","譄","鄫","鱛","䎖"],qiáng:["墙","墻","嫱","嬙","樯","檣","漒","牆","艢","蔃","蔷","蘠"],"kuài tuí":["墤"],"tuǎn dǒng":["墥"],"qiáo què":["墧"],"zūn dūn":["墫"],"qiāo áo":["墽"],"yì tú":["墿"],"xué bó jué":["壆"],lǎn:["壈","嬾","孄","孏","懒","懶","揽","擥","攬","榄","欖","浨","漤","灠","纜","缆","罱","覧","覽","览","醂","顲"],huài:["壊","壞","蘾"],rǎng:["壌","壤","攘","爙"],"làn xiàn":["壏"],dǎo:["壔","导","導","岛","島","嶋","嶌","嶹","捣","搗","擣","槝","祷","禂","禱","蹈","陦","隝","隯"],ruǐ:["壡","桵","橤","繠","蕊","蕋","蘂","蘃"],san:["壭"],zhuàng:["壮","壯","壵","撞","焋","状","狀"],"ké qiào":["壳","殼"],kǔn:["壸","壼","悃","捆","梱","硱","祵","稇","稛","綑","裍","閫","閸","阃"],mǎng:["壾","漭","茻","莽","莾","蠎"],cún:["壿","存"],"zhǐ zhōng":["夂"],"gǔ yíng":["夃"],"jiàng xiáng":["夅","降"],"páng féng fēng":["夆"],zhāi:["夈","捚","摘","斋","斎","榸","粂","齋"],"xuàn xiòng":["夐"],wài:["外","顡"],"wǎn yuàn wān yuān":["夗"],"mǎo wǎn":["夘"],mèng:["夢","夣","孟","梦","癦","霥"],"dà dài":["大"],"fū fú":["夫","姇","枎","粰"],guài:["夬","怪","恠"],yāng:["央","姎","抰","殃","泱","秧","胦","鉠","鍈","雵","鴦","鸯"],"hāng bèn":["夯"],gǎo:["夰","搞","杲","槀","槁","檺","稁","稾","稿","縞","缟","菒","藁","藳"],"tāo běn":["夲"],"tóu tou":["头"],"yǎn tāo":["夵"],"kuā kuà":["夸","誇"],"jiá jiā gā xiá":["夹"],huà:["夻","婳","嫿","嬅","崋","摦","杹","枠","桦","槬","樺","澅","画","畫","畵","繣","舙","話","諙","譮","话","黊"],"jiā jiá gā xiá":["夾"],ēn:["奀","恩","蒽"],"dī tì":["奃"],"yǎn yān":["奄","渰"],pào:["奅","疱","皰","砲","礟","礮","靤","麭"],nài:["奈","柰","渿","耐","萘","褦","錼","鼐"],"quān juàn":["奍","弮","棬"],zòu:["奏","揍"],"qì qiè xiè":["契"],kāi:["奒","开","揩","鐦","锎","開"],"bēn bèn":["奔","泍"],tào:["套"],"zàng zhuǎng":["奘"],běn:["奙","本","楍","畚","翉","苯"],"xùn zhuì":["奞"],shē:["奢","檨","猞","畭","畲","賒","賖","赊","輋","𪨶"],"hǎ pò tǎi":["奤"],"ào yù":["奥","奧","澚"],yūn:["奫","氲","氳","蒀","蒕","蝹","贇","赟","𫖳"],"duǒ chě":["奲"],"nǚ rǔ":["女"],nú:["奴","孥","笯","駑","驽"],"dīng dǐng tiǎn":["奵"],"tā jiě":["她"],nuán:["奻"],"hǎo hào":["好"],fàn:["奿","嬎","梵","汎","泛","滼","瀪","犯","畈","盕","笵","範","范","訉","販","贩","軬","輽","飯","飰","饭"],shuò:["妁","搠","朔","槊","烁","爍","矟","蒴","鎙","鑠","铄"],"fēi pèi":["妃"],wàng:["妄","忘","旺","望","朢"],zhuāng:["妆","妝","娤","庄","庒","桩","梉","樁","粧","糚","荘","莊","装","裝"],mā:["妈","媽"],"fū yōu":["妋"],"hài jiè":["妎"],dù:["妒","妬","杜","殬","渡","秺","芏","荰","螙","蠧","蠹","鍍","镀","靯","𬭊"],miào:["妙","庙","庿","廟","玅","竗"],"fǒu pēi pī":["妚"],"yuè jué":["妜"],niū:["妞"],"nà nàn":["妠"],tuǒ:["妥","嫷","庹","椭","楕","橢","鬌","鰖","鵎"],"wàn yuán":["妧"],fáng:["妨","房","肪","防","魴","鲂"],nī:["妮"],zhóu:["妯","碡"],zhāo:["妱","巶","招","昭","釗","鉊","鍣","钊","駋","𬬿"],"nǎi nǐ":["妳"],tǒu:["妵","敨","紏","蘣","黈"],"xián xuán xù":["妶"],"zhí yì":["妷","秇"],ē:["妸","妿","婀","屙"],mèi:["妹","媚","寐","抺","旀","昧","沬","煝","痗","眛","睸","祙","篃","蝞","袂","跊","鬽","魅"],"qī qì":["妻"],"xū xǔ":["姁","稰"],"shān shàn":["姍","姗","苫","釤","钐"],mán:["姏","慲","樠","蛮","蠻","謾","饅","馒","鬗","鬘","鰻","鳗"],jiě:["姐","媎","檞","毑","飷"],"wěi wēi":["委"],pīn:["姘","拼","礗","穦","馪","驞"],"huá huó":["姡"],"jiāo xiáo":["姣"],"gòu dù":["姤"],"lǎo mǔ":["姥"],"nián niàn":["姩"],zhěn:["姫","屒","弫","抮","昣","枕","畛","疹","眕","稹","縝","縥","缜","聄","萙","袗","裖","覙","診","诊","軫","轸","辴","駗","鬒"],héng:["姮","恆","恒","烆","珩","胻","蘅","衡","鑅","鴴","鵆","鸻"],"jūn xún":["姰"],"kuā hù":["姱"],"è yà":["姶"],"xiān shēn":["姺"],wá:["娃"],"ráo rǎo":["娆","嬈"],"shào shāo":["娋"],xiē:["娎","揳","楔","歇","蝎","蠍"],"wǔ méi mǔ":["娒"],"chuò lài":["娕"],niáng:["娘","嬢","孃"],"nà nuó":["娜","𦰡"],"pōu bǐ":["娝"],"něi suī":["娞"],tuì:["娧","煺","蛻","蜕","退","駾"],mǎn:["娨","屘","満","满","滿","螨","蟎","襔","鏋"],"wú wù yú":["娪"],"xī āi":["娭"],"zhuì shuì":["娷"],"dōng dòng":["娻"],"ǎi ái è":["娾"],"ē ě":["娿"],mián:["婂","嬵","宀","杣","棉","檰","櫋","眠","矈","矊","矏","綿","緜","绵","芇","蝒"],"pǒu péi bù":["婄"],biǎo:["婊","脿","表","裱","褾","諘","錶"],"fù fàn":["婏"],wǒ:["婐","婑","我"],"ní nǐ":["婗","棿"],"quán juàn":["婘","惓"],hūn:["婚","昏","昬","棔","涽","睧","睯","碈","荤","葷","蔒","轋","閽","阍"],"qiān jǐn":["婜"],"wān wà":["婠"],"lái lài":["婡","徕","徠"],"zhōu chōu":["婤"],"chuò nào":["婥"],"nüè àn":["婩"],"hùn kūn":["婫"],"dàng yáng":["婸"],nàn:["婻"],"ruò chuò":["婼"],jiǎ:["婽","岬","斚","斝","榎","槚","檟","玾","甲","胛","鉀","钾"],"tōu yú":["婾","媮"],"yù yú":["媀"],"wéi wěi":["媁"],"dì tí":["媂","珶","苐"],róu:["媃","揉","柔","渘","煣","瑈","瓇","禸","粈","糅","脜","腬","葇","蝚","蹂","輮","鍒","鞣","騥","鰇","鶔","𫐓"],"ruǎn nèn":["媆"],miáo:["媌","嫹","描","瞄","苗","鶓","鹋"],"yí pèi":["媐"],"mián miǎn":["媔"],"tí shì":["媞","惿"],"duò tuó":["媠","沲"],ǎo:["媪","媼","艹","芺","袄","襖","镺"],"chú zòu":["媰"],yìng:["媵","映","暎","硬","膡","鱦"],"qín shēn":["嫀"],jià:["嫁","幏","架","榢","稼","駕","驾"],sǎo:["嫂"],"zhēn zhěn":["嫃"],"jiē suǒ":["嫅"],"míng mǐng":["嫇"],niǎo:["嫋","嬝","嬲","茑","蔦","袅","裊","褭","鸟"],tāo:["嫍","幍","弢","慆","掏","搯","槄","涛","滔","濤","瑫","絛","縚","縧","绦","詜","謟","轁","鞱","韜","韬","飸","饕"],biáo:["嫑"],"piáo piāo":["嫖","薸"],xuán:["嫙","悬","懸","暶","檈","漩","玄","璇","璿","痃","蜁","𫠊"],"màn mān":["嫚"],kāng:["嫝","嵻","康","慷","槺","漮","砊","穅","糠","躿","鏮","鱇","𡐓","𩾌"],"hān nǎn":["嫨"],nèn:["嫩","嫰"],zhē:["嫬","遮"],"mā má":["嫲"],piè:["嫳"],zhǎn:["嫸","展","搌","斩","斬","琖","盏","盞","輾","醆","颭","飐"],"xiān yǎn jìn":["嬐"],liǎn:["嬚","敛","斂","琏","璉","羷","脸","臉","蔹","蘝","蘞","裣","襝","鄻"],"qióng huán xuān":["嬛"],dǒng:["嬞","懂","箽","董","蕫","諌"],cān:["嬠","湌","爘","飡","餐","驂","骖"],tiǎo:["嬥","宨","晀","朓","窱","脁"],bí:["嬶","荸","鼻"],liǔ:["嬼","柳","栁","桞","桺","橮","熮","珋","綹","绺","罶","羀","鋶","锍"],"qiān xiān":["孅","欦"],"xié huī":["孈"],"huān quán":["孉"],"lí lì":["孋","麗"],"zhú chuò":["孎"],kǒng:["孔","恐"],"mā zī":["孖"],"sūn xùn":["孙","孫"],"bèi bó":["孛","誖"],"yòu niū":["孧"],zhuǎn:["孨","竱","轉"],hái:["孩","骸"],nāo:["孬"],"chán càn":["孱"],bò:["孹","檗","蘗","譒"],nái:["孻","腉"],"níng nìng":["宁","寍","寗","寜","寧","甯"],zhái:["宅"],"tū jiā":["宊"],sòng:["宋","訟","誦","讼","诵","送","鎹","頌","颂","餸"],ròu:["宍","肉","譳"],zhūn:["宒","窀","衠","諄","谆","迍"],"mì fú":["宓"],"dàng tàn":["宕"],"wǎn yuān":["宛"],chǒng:["宠","寵"],qún:["宭","峮","帬","羣","群","裙","裠"],zǎi:["宰","崽"],"bǎo shí":["宲"],"jiā jia jie":["家"],"huāng huǎng":["宺"],kuān:["宽","寛","寬","臗","鑧","髋","髖"],"sù xiǔ xiù":["宿"],"jié zǎn":["寁"],"bìng bǐng":["寎"],"jìn qǐn":["寖"],"lóu jù":["寠"],"xiě xiè":["寫"],"qīn qìn":["寴"],cùn:["寸","籿"],duì:["对","対","對","怼","憝","懟","濧","瀩","碓","祋","綐","薱","譈","譵","轛","队","陮"],"lüè luó":["寽"],"shè yè yì":["射"],"jiāng jiàng qiāng":["将"],"jiāng jiàng":["將","浆","漿","畺"],zūn:["尊","嶟","樽","罇","遵","鐏","鱒","鳟","鶎","鷷","𨱔"],"shù zhù":["尌","澍"],xiǎo:["小","晓","暁","曉","皛","皢","筱","筿","篠","謏","𫍲"],"jié jí":["尐","诘","鞊"],"shǎo shào":["少"],ěr:["尒","尓","尔","栮","毦","洱","爾","珥","耳","薾","衈","趰","迩","邇","鉺","铒","餌","饵","駬"],"wāng yóu":["尢"],wāng:["尣","尩","尪","尫","汪"],liào:["尥","尦","廖","撂","料","炓","窷","鐐","镣","𪤗"],"méng máng lóng páng":["尨"],gà:["尬","魀"],"kuì kuǐ":["尯"],tuí:["尵","弚","穨","蘈","蹪","隤","頹","頺","頽","颓","魋","𬯎"],yǐn:["尹","嶾","引","朄","檃","檼","櫽","淾","濥","瘾","癮","粌","蘟","蚓","螾","讔","赺","趛","輑","鈏","靷"],"chǐ chě":["尺"],kāo:["尻","髛"],"jìn jǐn":["尽"],"wěi yǐ":["尾"],"niào suī":["尿"],céng:["层","層","嶒","驓"],diǎo:["屌"],"píng bǐng bīng":["屏"],lòu:["屚","漏","瘘","瘺","瘻","鏤","镂","陋"],"shǔ zhǔ":["属","屬"],"xiè tì":["屟"],"chè cǎo":["屮"],"tún zhūn":["屯"],"nì jǐ":["屰"],"hóng lóng":["屸"],"qǐ kǎi":["岂","豈"],áng:["岇","昂","昻"],"gǎng gāng":["岗","崗"],kě:["岢","敤","渇","渴","炣"],gǒu:["岣","狗","玽","笱","耇","耈","耉","苟","豿"],tiáo:["岧","岹","樤","祒","笤","芀","萔","蓚","蓨","蜩","迢","鋚","鎥","鞗","髫","鯈","鰷","鲦","齠","龆"],"qū jū":["岨"],lǐng:["岭","嶺","領","领"],pò:["岶","敀","洦","湐","烞","珀","破","砶","粕","蒪","魄"],"bā kè":["峇"],luò:["峈","摞","洛","洜","犖","珞","笿","纙","荦","詻","雒","駱","骆","鵅"],"fù niè":["峊"],ěn:["峎"],"zhì shì":["峙","崻"],qiǎ:["峠","跒","酠","鞐"],"qiáo jiào":["峤","癄"],"xié yé":["峫"],bū:["峬","庯","晡","誧","逋","鈽","錻","钸","餔","鵏"],chóng:["崇","崈","爞","虫","蝩","蟲","褈","隀"],"zú cuì":["崒","椊"],"líng léng":["崚"],"dòng dōng":["崠"],xiáo:["崤","洨","淆","訤","誵"],"pí bǐ":["崥","芘"],"zhǎn chán":["崭","嶃","嶄"],"wǎi wēi":["崴"],"yáng dàng":["崵"],"shì dié":["崼"],yào:["崾","曜","熎","燿","矅","穾","窔","筄","耀","艞","药","葯","薬","藥","袎","覞","詏","讑","靿","鷂","鹞","鼼"],"kān zhàn":["嵁"],"hán dǎng":["嵅"],"qiàn kàn":["嵌"],"wù máo":["嵍"],"kě jié":["嵑","嶱"],"wēi wěi":["嵔"],kē:["嵙","柯","棵","榼","樖","牁","牱","犐","珂","疴","瞌","磕","礚","科","稞","窠","萪","薖","蚵","蝌","趷","轲","醘","鈳","钶","頦","顆","颗","髁"],"dàng táng":["嵣"],"róng yíng":["嵤","爃"],"ái kǎi":["嵦"],"kāo qiāo":["嵪"],cuó:["嵯","嵳","痤","矬","蒫","蔖","虘","鹺","鹾"],"qiǎn qīn":["嵰"],"dì dié":["嵽"],cēn:["嵾"],dǐng:["嵿","艼","薡","鐤","頂","顶","鼎","鼑"],"áo ào":["嶅"],"pǐ pèi":["嶏"],"jiào qiáo":["嶠","潐"],"jué guì":["嶡","鳜"],"zhān shàn":["嶦","鳣"],"xiè jiè":["嶰"],"guī xī juàn":["嶲"],rū:["嶿"],"lì liè":["巁","棙","爄","綟"],"xī guī juàn":["巂"],"yíng hōng":["巆"],yǐng:["巊","廮","影","摬","梬","潁","瘿","癭","矨","穎","郢","鐛","頴","颍","颕","颖"],chǎo:["巐","炒","煼","眧","麨"],cuán:["巑","櫕","欑"],chuān:["巛","川","氚","瑏","穿"],"jīng xíng":["巠"],cháo:["巢","巣","晁","漅","潮","牊","窲","罺","謿","轈","鄛","鼌"],qiǎo:["巧","愀","髜"],gǒng:["巩","廾","拱","拲","栱","汞","珙","輁","鞏"],"chà chā chāi cī":["差"],"xiàng hàng":["巷"],shuài:["帅","帥","蟀"],pà:["帊","帕","怕","袙"],"tǎng nú":["帑"],"mò wà":["帓"],"tiē tiě tiè":["帖"],zhǒu:["帚","晭","疛","睭","箒","肘","菷","鯞"],"juǎn juàn":["帣"],shuì:["帨","涗","涚","睡","稅","税","裞"],"chóu dào":["帱","幬"],"jiǎn jiān sàn":["帴"],"shà qiè":["帹"],"qí jì":["帺","荠"],"shān qiāo shēn":["幓"],"zhuàng chuáng":["幢"],"chān chàn":["幨"],miè:["幭","懱","搣","滅","灭","烕","礣","篾","蔑","薎","蠛","衊","鑖","鱴","鴓"],"gān gàn":["干"],"bìng bīng":["并","幷"],"jī jǐ":["幾"],"guǎng ān":["广"],guǎng:["広","廣","犷","獷"],me:["庅"],"dùn tún":["庉"],"bài tīng":["庍"],"yìng yīng":["应"],"dǐ de":["底"],"dù duó":["度"],"máng méng páng":["庬"],"bìng píng":["庰"],chěng:["庱","悜","睈","逞","騁","骋"],"jī cuò":["庴"],qǐng:["庼","廎","檾","漀","苘","請","謦","请","頃","顷"],"guī wěi huì":["廆"],"jǐn qín":["廑"],kuò:["廓","扩","拡","擴","濶","筈","萿","葀","蛞","闊","阔","霩","鞟","鞹","韕","頢","鬠"],"qiáng sè":["廧","薔"],"yǐn yìn":["廴","隐","隠","隱","飮","飲","饮"],"pò pǎi":["廹","迫"],"nòng lòng":["弄"],"dì tì tuí":["弟"],"jué zhāng":["弡"],"mí mǐ":["弥","彌","靡"],chāo:["弨","怊","抄","欩","訬","超","鈔","钞"],yi:["弬"],shāo:["弰","旓","烧","焼","燒","筲","艄","萷","蕱","輎","髾","鮹"],"xuān yuān":["弲"],"qiáng qiǎng jiàng":["強","强"],"tán dàn":["弹","醈"],biè:["彆"],"qiáng jiàng qiǎng":["彊"],"jì xuě":["彐"],tuàn:["彖","褖"],yuē:["彟","曰","曱","矱"],"shān xiǎn":["彡"],wén:["彣","文","炆","珳","瘒","繧","聞","芠","蚉","蚊","螡","蟁","閺","閿","闅","闦","闻","阌","雯","馼","駇","魰","鳼","鴍","鼤","𫘜"],"péng bāng":["彭"],"piāo piào":["彯"],"zhuó bó":["彴"],"tuǒ yí":["彵"],"páng fǎng":["彷"],wǎng:["彺","往","徃","惘","枉","棢","網","网","罒","罓","罔","罖","菵","蛧","蝄","誷","輞","辋","魍"],cú:["徂","殂"],"dài dāi":["待"],huái:["徊","怀","懐","懷","槐","淮","耲","蘹","褢","褱","踝"],"wā wàng jiā":["徍"],"chěng zhèng":["徎"],"dé děi de":["得"],"cóng zòng":["從"],"shì tǐ":["徥"],"tí chí":["徲","鶗","鶙"],dé:["徳","德","恴","悳","惪","淂","鍀","锝"],"zhǐ zhēng":["徴","徵"],bié:["徶","癿","莂","蛂","襒","蹩"],"chōng zhǒng":["徸"],"jiǎo jiào":["徼","笅","筊"],"lòng lǒng":["徿"],"qú jù":["忂","渠","瞿","螶"],"dìng tìng":["忊"],gǎi:["忋","改"],rěn:["忍","栠","栣","秹","稔","綛","荏","荵","躵"],chàn:["忏","懴","懺","硟","羼","韂","顫"],tè:["忑","慝","特","蟘","鋱","铽"],"tè tēi tuī":["忒"],"gān hàn":["忓","攼"],"yì qì":["忔"],"tài shì":["忕"],"xī liě":["忚"],"yīng yìng":["応","應","譍"],"mǐn wěn mín":["忞","忟"],"sōng zhōng":["忪"],"yù shū":["忬","悆"],"qí shì":["忯","耆"],"tún zhūn dùn":["忳"],"qián qín":["忴","扲"],hún:["忶","浑","渾","餛","馄","魂","鼲"],niǔ:["忸","扭","炄","狃","紐","纽","莥","鈕","钮","靵"],"kuáng wǎng":["忹"],"kāng hàng":["忼"],"kài xì":["忾","愾"],òu:["怄","慪"],"bǎo bào":["怉"],"mín mén":["怋"],"zuò zhà":["怍"],zěn:["怎"],yàng:["怏","恙","样","様","樣","漾","羕","詇"],"kòu jù":["怐"],"náo niú":["怓"],"zhēng zhèng":["怔","掙","钲","铮"],"tiē zhān":["怗"],"hù gù":["怘"],"cū jù zū":["怚"],"sī sāi":["思"],"yóu chóu":["怞"],"tū dié":["怢"],"yōu yào":["怮"],xuàn:["怰","昡","楦","泫","渲","炫","琄","眩","碹","絢","縼","繏","绚","蔙","衒","袨","贙","鉉","鏇","铉","镟","颴"],"xù xuè":["怴"],"bì pī":["怶"],"xī shù":["怸"],"nèn nín":["恁"],"tiāo yáo":["恌"],"xī qī xù":["恓"],"xiào jiǎo":["恔"],"hū kuā":["恗"],nǜ:["恧","朒","衂","衄"],hèn:["恨"],"dòng tōng":["恫"],"quán zhuān":["恮"],"è wù ě wū":["恶","惡"],tòng:["恸","慟","憅","痛","衕"],"yuān juàn":["悁"],"qiāo qiǎo":["悄"],"jiè kè":["悈"],"hào jiào":["悎"],huǐ:["悔","檓","毀","毁","毇","燬","譭"],"mán mèn":["悗","鞔"],"yī yì":["悘","衣"],quān:["悛","箞","鐉","𨟠"],"kuī lǐ":["悝"],"yì niàn":["悥"],"mèn mēn":["悶"],guàn:["悹","悺","惯","慣","掼","摜","樌","欟","泴","涫","潅","灌","爟","瓘","盥","礶","祼","罆","罐","貫","贯","躀","遦","鏆","鑵","鱹","鸛","鹳"],"kōng kǒng":["悾"],"lǔn lùn":["惀"],guǒ:["惈","果","椁","槨","粿","綶","菓","蜾","裹","褁","輠","餜","馃"],"yuān wǎn":["惌","箢"],"lán lín":["惏"],"yù xù":["惐","淢"],"chuò chuì":["惙"],"hūn mèn":["惛"],"chǎng tǎng":["惝"],"suǒ ruǐ":["惢"],cǎn:["惨","慘","憯","黪","黲","䅟"],cán:["惭","慙","慚","残","殘","蚕","蝅","蠶","蠺"],"dàn dá":["惮","憚"],rě:["惹"],"yú tōu":["愉"],"kài qì":["愒"],"dàng táng shāng yáng":["愓"],"chén xìn dān":["愖"],"kè qià":["愘"],nuò:["愞","懦","懧","掿","搦","榒","稬","穤","糑","糥","糯","諾","诺","蹃","逽","鍩","锘"],gǎn:["感","擀","敢","桿","橄","澉","澸","皯","秆","稈","笴","芉","衦","赶","趕","鱤","鳡"],"còng sōng":["愡"],"sāi sī sǐ":["愢"],"gōng gòng hǒng":["愩","慐"],"shuò sù":["愬","洬"],"yáo yào":["愮"],huàng:["愰","曂","榥","滉","皝","皩","鎤","㿠"],zhěng:["愸","抍","拯","整","晸"],cǎo:["愺","艸","草","騲"],"xì xié":["慀"],"cǎo sāo":["慅"],"xù chù":["慉"],"qiè qiàn":["慊"],"cáo cóng":["慒"],"ào áo":["慠"],"lián liǎn":["慩","梿","槤","櫣"],"jìn qín jǐn":["慬"],"dì chì":["慸"],"zhí zhé":["慹"],"lóu lǚ":["慺","鷜"],còng:["憁","謥"],"zhī zhì":["憄","知","織","织"],chēng:["憆","摚","撐","撑","晿","柽","棦","橕","檉","泟","浾","琤","瞠","碀","緽","罉","蛏","蟶","赪","赬","鏿","鐣","阷","靗","頳","饓"],biē:["憋","虌","鱉","鳖","鼈","龞"],"chéng dèng zhèng":["憕"],"xǐ xī":["憘"],"duì dùn tūn":["憞"],"xiāo jiāo":["憢"],"xián xiàn":["憪"],"liáo liǎo":["憭","燎","爎","爒"],shéng:["憴","縄","繉","繩","绳","譝"],"náo nǎo náng":["憹"],"jǐng jìng":["憼"],"jǐ jiǎo":["憿"],"xuān huān":["懁"],"cǎo sāo sào":["懆"],mèn:["懑","懣","暪","焖","燜"],"mèng méng měng":["懜"],"ài yì nǐ":["懝"],"méng měng":["懞","瞢","矒"],"qí jī jì":["懠"],mǒ:["懡"],"lán xiàn":["懢"],"yōu yǒu":["懮"],"liú liǔ":["懰","藰"],ràng:["懹","譲","讓","让"],huān:["懽","欢","歓","歡","獾","讙","貛","酄","驩","鴅","鵍"],nǎn:["戁","揇","湳","煵","腩","蝻","赧"],"mí mó":["戂"],"gàng zhuàng":["戅","戆"],"zhuàng gàng":["戇"],"xū qu":["戌"],"xì hū":["戏","戯","戲"],"jiá gā":["戛"],zéi:["戝","蠈","賊","贼","鰂","鱡","鲗"],děng:["戥","等"],"hū xì":["戱"],chuō:["戳","踔","逴"],"biǎn piān":["扁"],"shǎng jiōng":["扄"],"shàn shān":["扇"],cái:["才","材","纔","裁","財","财"],"zhā zā zhá":["扎"],"lè lì cái":["扐"],"bā pá":["扒"],"dǎ dá":["打"],rēng:["扔"],"fǎn fú":["払"],"diǎo dí yuē lì":["扚"],"káng gāng":["扛"],"yū wū":["扜"],"yū wū kū":["扝"],"tuō chǐ yǐ":["扡"],"gǔ jié xì gē":["扢"],dèn:["扥","扽"],"sǎo sào":["扫","掃"],rǎo:["扰","擾","隢"],"xī chā qì":["扱"],"bān pān":["扳"],"bā ào":["扷"],"xī zhé":["扸"],"zhì sǔn kǎn":["扻"],zhǎo:["找","沼","瑵"],"kuáng wǎng zài":["抂"],"hú gǔ":["抇","鹄","鹘"],"bǎ bà":["把"],"dǎn shěn":["抌"],"nè nì ruì nà":["抐"],zhuā:["抓","檛","簻","膼","髽"],póu:["抔","裒"],"zhé shé zhē":["折"],"póu pōu fū":["抙","捊"],pāo:["抛","拋","脬","萢"],"ǎo ào niù":["抝"],"lūn lún":["抡","掄"],"qiǎng qiāng chēng":["抢"],"zhǐ zhǎi":["抧"],"bù pū":["抪","柨"],"yǎo tāo":["抭"],"hē hè qiā":["抲"],"nǐ ní":["抳"],"pī pēi":["抷"],"mǒ mò mā":["抹"],chōu:["抽","犨","犫","瘳","篘"],"jiā yá":["拁"],"fú bì":["拂","畐","鶝"],zhǎ:["拃","眨","砟","鮺","鲝"],"dān dàn dǎn":["担"],"chāi cā":["拆"],niān:["拈","蔫"],"lā lá lǎ là":["拉"],"bàn pàn":["拌"],pāi:["拍"],līn:["拎"],guǎi:["拐","枴","柺"],"tuò tà zhí":["拓"],"ào ǎo niù":["拗"],"jū gōu":["拘"],"pīn pàn fān":["拚"],"bài bái":["拜"],bài:["拝","敗","稗","粺","薭","贁","败","韛"],qiá:["拤"],"nǐng níng nìng":["拧"],"zé zhái":["择","擇"],hén:["拫","痕","鞎"],"kuò guā":["括"],"jié jiá":["拮"],nǐn:["拰"],shuān:["拴","栓","閂","闩"],"cún zùn":["拵"],"zā zǎn":["拶","桚"],kǎo:["拷","攷","栲","烤","考"],"yí chǐ hài":["拸"],"cè sè chuò":["拺"],"zhuài zhuāi yè":["拽"],"shí shè":["拾"],bāi:["挀","掰"],"kuò guāng":["挄"],nòng:["挊","挵","齈"],"jiào jiāo":["挍","敎","教"],"kuà kū":["挎"],"ná rú":["挐"],"tiāo tiǎo":["挑"],"dié shè":["挕"],liě:["挘","毟"],"yà yǎ":["挜","掗"],"wō zhuā":["挝"],"xié jiā":["挟","挾"],"dǎng dàng":["挡","擋"],"zhèng zhēng":["挣","正","症"],"āi ái":["挨"],"tuō shuì":["挩","捝"],"tǐ tì":["挮"],"suō shā":["挱"],"sā shā suō":["挲"],"kēng qiān":["挳","摼"],"bàng péng":["挷"],"ruó ruá":["挼"],"jiǎo kù":["捁"],"wǔ wú":["捂"],tǒng:["捅","桶","筒","筩","統","綂","统","㛚"],"huò chì":["捇"],"tú shū chá":["捈"],"lǚ luō":["捋"],"shāo shào":["捎","稍"],niē:["捏","揑"],"shù sǒng sōu":["捒"],"yé yú":["捓"],"jué zhuó":["捔"],"bù pú zhì":["捗"],zùn:["捘","銌"],lāo:["捞","撈","粩"],sǔn:["损","損","榫","笋","筍","箰","鎨","隼"],"wàn wǎn wān yù":["捥"],pěng:["捧","淎","皏"],shě:["捨"],"fǔ fù bǔ":["捬"],dáo:["捯"],"luò luǒ wǒ":["捰"],"juǎn quán":["捲"],"chēn tiǎn":["捵"],"niǎn niē":["捻"],"ruó wěi ré":["捼"],zuó:["捽","昨","秨","稓","筰","莋","鈼"],"wò xiá":["捾"],"qìng qiàn":["掅"],"póu pǒu":["掊"],qiā:["掐","葜"],"pái pǎi":["排"],"qiān wàn":["掔"],"yè yē":["掖"],"niè nǐ yì":["掜"],"huò xù":["掝"],"yàn shàn yǎn":["掞"],"zhěng dìng":["掟"],kòng:["控","鞚"],tuī:["推","蓷","藬"],"zōu zhōu chōu":["掫"],tiàn:["掭","舚"],kèn:["掯","裉","褃"],pá:["掱","杷","潖","爬","琶","筢"],"guó guāi":["掴"],"dǎn shàn":["掸","撣"],"chān xiān càn shǎn":["掺"],sāo:["掻","搔","溞","繅","缫","螦","騒","騷","鰠","鱢","鳋"],pèng:["掽","椪","槰","碰","踫"],"zhēng kēng":["揁"],"jiū yóu":["揂"],"jiān jiǎn":["揃","籛"],"pì chè":["揊"],"sāi zǒng cāi":["揌"],"tí dī dǐ":["提"],"zǒng sōng":["揔"],"huáng yóng":["揘"],"zǎn zuàn":["揝"],"xū jū":["揟"],"ké qiā":["揢"],"chuāi chuǎi chuài tuán zhuī":["揣"],"dì tì":["揥"],"lá là":["揦"],là:["揧","楋","溂","瓎","瘌","翋","臘","蝋","蝲","蠟","辢","辣","鑞","镴","鬎","鯻","𬶟"],"jiē qì":["揭"],"chòng dǒng":["揰"],"dié shé yè":["揲"],"jiàn qián jiǎn":["揵"],yé:["揶","爷","爺","瑘","鋣","鎁","铘"],chān:["搀","摻","攙","裧","襜","覘","觇","辿","鋓"],"gē gé":["搁","擱"],"lǒu lōu":["搂","摟"],"chōu zǒu":["搊"],chuāi:["搋"],sūn:["搎","槂","狲","猻","荪","蓀","蕵","薞","飧","飱"],"róng náng nǎng":["搑"],"péng bàng":["搒"],cuō:["搓","瑳","磋","蹉","遳","醝"],"kē è":["搕"],"nù nuò nòu":["搙"],"lā xié xiàn":["搚"],qiǔ:["搝","糗"],"xiǎn xiān":["搟"],"jié zhé":["搩"],"pán bān pó":["搫"],bān:["搬","攽","斑","斒","班","瘢","癍","肦","螁","螌","褩","辬","頒","颁","𨭉"],"zhì nái":["搱"],"wā wǎ wà":["搲"],huá:["搳","撶","滑","猾","蕐","螖","譁","鏵","铧","驊","骅","鷨"],"qiāng qiǎng chēng":["搶"],"tián shēn":["搷"],"ná nuò":["搻"],èn:["摁"],"shè niè":["摄","攝"],bìn:["摈","擯","殡","殯","膑","臏","髌","髕","髩","鬂","鬓","鬢"],"shā sà shǎi":["摋"],"chǎn sùn":["摌"],"jiū liú liáo jiǎo náo":["摎"],"féng pěng":["摓"],shuāi:["摔"],"dì tú zhí":["摕"],"qì jì chá":["摖"],"sōu sǒng":["摗"],"liǎn liàn":["摙"],"gài xì":["摡"],"hù chū":["摢"],tàng:["摥","烫","燙","鐋"],"nái zhì":["摨"],"mó mā":["摩"],"jiāng qiàng":["摪"],"áo qiáo":["摮"],"niè chè":["摰"],"mán màn":["摱"],"chàn cán":["摲"],"sè mí sù":["摵"],"biāo biào":["摽"],"juē jué":["撅"],piē:["撆","暼","氕","瞥"],"piě piē":["撇"],"zǎn zān zēn qián":["撍"],"sā sǎ":["撒"],hòng:["撔","訌","讧","闀","鬨"],"héng guàng":["撗"],niǎn:["撚","撵","攆","涊","焾","碾","簐","蹍","蹨","躎","輦","辇"],"chéng zhěng":["撜"],"huī wéi":["撝"],cāo:["撡","操","糙"],"xiāo sōu":["撨"],"liáo liāo":["撩"],"cuō zuǒ":["撮"],"wěi tuǒ":["撱"],cuān:["撺","攛","汆","蹿","躥","鑹","镩"],"qiào yāo jī":["撽"],"zhuā wō":["撾"],"lèi léi":["擂"],nǎng:["擃","攮","曩","灢"],"qíng jǐng":["擏"],kuǎi:["擓","蒯","㧟"],"pǐ bò":["擗"],"bò bāi":["擘"],"jù jǐ":["據"],mēng:["擝"],"sǒu sòu":["擞"],xǐng:["擤","箵","醒"],cā:["擦"],"níng nǐng nìng":["擰"],"zhì jié":["擳"],"là liè":["擸","爉"],"sòu sǒu":["擻"],"lì luò yuè":["擽"],"tī zhāi zhì":["擿"],pān:["攀","潘","眅","萠"],lèi:["攂","泪","涙","淚","禷","类","纇","蘱","酹","銇","錑","頛","頪","類","颣"],"cā sǎ":["攃"],"jùn pèi":["攈"],"lì luò":["攊","躒"],"là lài":["攋","櫴"],"lú luó":["攎"],"zǎn cuán":["攒"],"xiān jiān":["攕"],"mí mǐ mó":["攠"],"zǎn cuán zàn zuān":["攢"],zuàn:["攥"],"lì shài":["攦"],"lì luǒ":["攭"],"guǐ guì":["攱"],"jī qī yǐ":["攲"],fàng:["放"],"wù móu":["敄"],"chù shōu":["敊"],"gé guó è":["敋"],"duó duì":["敓","敚"],"duō què":["敠","敪"],"sàn sǎn":["散"],"dūn duì":["敦","镦"],"qī yǐ jī":["敧"],"xiào xué":["敩"],"shù shǔ shuò":["数","數"],"ái zhú":["敱","敳"],"xiòng xuàn":["敻"],"zhuó zhú":["斀"],"yì dù":["斁"],"lí tái":["斄"],"fěi fēi":["斐"],"yǔ zhōng":["斔"],"dòu dǒu":["斗"],"wò guǎn":["斡"],"tǒu tiǎo":["斢"],dòu:["斣","梪","浢","痘","窦","竇","脰","荳","豆","逗","郖","酘","閗","闘","餖","饾","鬥","鬦","鬪","鬬","鬭"],"yín zhì":["斦"],"chǎn jiè":["斺"],"wū yū yú":["於"],"yóu liú":["斿"],"páng bàng":["旁"],"máo mào":["旄"],"pī bì":["旇"],"xuán xuàn":["旋"],"wú mó":["无"],zǎo:["早","枣","栆","棗","澡","璪","薻","藻","蚤"],gā:["旮"],"gàn hàn":["旰"],"tái yīng":["旲"],"xū xù":["旴"],"tūn zhùn":["旽"],"wù wǔ":["旿"],"pò pèi":["昢"],zòng:["昮","猔","疭","瘲","粽","糉","糭","縦"],ǎi:["昹","毐","矮","蔼","藹","譪","躷","霭","靄"],"huàng huǎng":["晃"],xuǎn:["晅","癣","癬","选","選"],"xù kuā":["晇"],hǒng:["晎"],shài:["晒","曬"],"yūn yùn":["晕","煴"],"shèng chéng":["晟","椉","盛"],"jǐng yǐng":["景"],shǎn:["晱","熌","睒","覢","閃","闪","陕","陝"],"qǐ dù":["晵"],"ǎn àn yǎn":["晻"],"wǎng wàng":["暀"],zàn:["暂","暫","瓉","瓒","瓚","禶","襸","讃","讚","賛","贊","赞","蹔","鄼","錾","鏨","饡"],"yùn yūn":["暈"],"mín mǐn":["暋"],"dǔ shǔ":["暏"],shǔ:["暑","曙","潻","癙","糬","署","薥","薯","藷","蜀","蠴","襡","襩","鱪","鱰","黍","鼠","鼡"],"jiǎn lán":["暕"],nuǎn:["暖","煗","餪"],"bào pù":["暴"],"xī xǐ":["暿"],"pù bào":["曝","瀑"],"qū qǔ":["紶"],"qǔ qū":["曲"],"gèng gēng":["更"],"hū hù":["曶","雽"],"zēng céng":["曽","橧"],"céng zēng":["曾","竲"],"cǎn qián jiàn":["朁"],"qiè hé":["朅"],"bì pí":["朇","禆","笓","裨"],"yǒu yòu":["有"],"bān fén":["朌","鳻"],"fú fù":["服","洑"],"fěi kū":["朏","胐"],"qú xù chǔn":["朐"],"juān zuī":["朘"],"huāng máng wáng":["朚"],"qī jī":["期"],"tóng chuáng":["朣","橦"],zhá:["札","牐","箚","蚻","譗","鍘","铡","閘","闸"],"zhú shù shú":["朮"],"shù shú zhú":["术"],"zhū shú":["朱"],"pǔ pò pō piáo":["朴"],"dāo tiáo mù":["朷"],"guǐ qiú":["朹"],xiǔ:["朽","滫","潃","糔"],"chéng chēng":["朾"],zá:["杂","沯","砸","襍","雑","雜","雥","韴"],"yú wū":["杅"],"gān gǎn":["杆"],"chā chà":["杈"],"shān shā":["杉"],cūn:["村","皴","竴","膥","踆","邨"],"rèn ér":["杒","梕"],"sháo biāo":["杓"],"dì duò":["杕","枤"],"gū gài":["杚"],"yí zhì lí duò":["杝"],"gàng gāng":["杠"],"tiáo tiāo":["条","條"],"mà mǎ":["杩"],"sì zhǐ xǐ":["杫"],"yuán wán":["杬","蚖"],"bèi fèi":["杮"],"shū duì":["杸"],"niǔ chǒu":["杻"],"wò yuè":["枂","臒"],máo:["枆","毛","氂","渵","牦","矛","罞","茅","茆","蝥","蟊","軞","酕","鉾","錨","锚","髦","鶜"],"pī mì":["枈"],àng:["枊","盎","醠"],"fāng bìng":["枋"],"hù dǐ":["枑"],xín:["枔","襑","鐔","鬵"],"yāo yǎo":["枖"],"ě è":["枙"],"zhī qí":["枝"],"cōng zōng":["枞","樅"],"xiān zhēn":["枮"],"tái sì":["枱"],"gǒu jǔ gōu":["枸"],"bāo fú":["枹"],"yì xiè":["枻","栧"],"tuó duò":["柁","馱","駄","驮"],"yí duò lí":["柂"],"nǐ chì":["柅"],"pán bàn":["柈","跘"],"yǎng yàng yāng yīng":["柍"],"fù fū fǔ":["柎"],"bǎi bó bò":["柏"],mǒu:["某"],"sháo shào":["柖"],zhè:["柘","樜","浙","淛","蔗","蟅","這","鷓","鹧","䗪"],"yòu yóu":["柚","櫾"],"guì jǔ":["柜"],"zhà zuò":["柞"],"dié zhì":["柣","眰"],"zhā zǔ zū":["柤"],"chá zhā":["查","査"],"āo ào":["柪","軪"],"bā fú pèi bó biē":["柭"],"duò zuó wù":["柮"],"bì bié":["柲"],"zhù chù":["柷"],"bēi pēi":["柸"],"shì fèi":["柹"],"shān zhà shi cè":["栅"],"lì yuè":["栎","櫟"],"qì qiè":["栔","砌"],"qī xī":["栖","蹊"],"guā kuò":["栝"],"bīng bēn":["栟"],"xiào jiào":["校"],"jiàn zùn":["栫","袸"],"yǒu yù":["栯"],"hé hú":["核"],gēn:["根","跟"],"zhī yì":["栺"],"gé gē":["格"],"héng háng":["桁"],"guàng guāng":["桄"],"yí tí":["桋","荑"],sāng:["桑","桒","槡"],"jú jié":["桔"],"yú móu":["桙"],"ráo náo":["桡","橈"],"guì huì":["桧","檜"],"chén zhèn":["桭"],"tīng yíng":["桯"],"bó po":["桲"],"bèn fàn":["桳"],"fēng fèng":["桻","葑"],"sù yìn":["梀"],"tǐng tìng":["梃"],"xuān juān xié":["梋"],"tú chá":["梌"],"āo yòu":["梎"],kuǎn:["梡","欵","款","歀"],"shāo sào":["梢"],"qín chén cén":["梣"],"lí sì qǐ":["梩"],"chān yán":["梴"],"bīn bīng":["梹","槟","檳"],"táo chóu dào":["梼"],"cōng sōng":["棇"],"gùn hùn":["棍"],"dé zhé":["棏"],"pái bèi pèi":["棑"],"bàng pǒu bèi bēi":["棓"],"dì dài tì":["棣"],sēn:["森","椮","槮","襂"],"rěn shěn":["棯"],"léng lēng líng":["棱"],"fú sù":["棴"],"zōu sǒu":["棷"],zōu:["棸","箃","緅","諏","诹","邹","郰","鄒","鄹","陬","騶","驺","鯫","鲰","黀","齱","齺"],"zhào zhuō":["棹"],"chēn shēn":["棽"],"jiē qiè":["椄"],"yǐ yī":["椅"],"chóu zhòu diāo":["椆"],"qiāng kōng":["椌"],"zhuī chuí":["椎"],"bēi pí":["椑"],mēn:["椚"],"quān juàn quán":["椦"],"duǒ chuán":["椯"],"wěi huī":["椲"],"jiǎ jiā":["椵"],"hán jiān":["椷"],"shèn zhēn":["椹"],"yàn yà":["椻"],"zhā chá":["楂"],"guō kuǎ":["楇"],"jí zhì":["楖"],"kǔ hù":["楛"],"yóu yǒu":["楢"],"sǒng cōng":["楤"],"yuán xuàn":["楥"],"yǎng yàng yīng":["楧"],pián:["楩","胼","腁","賆","蹁","駢","騈","骈","骿","㛹"],"dié yè":["楪"],"dùn shǔn":["楯"],"còu zòu":["楱"],"dì dǐ shì":["楴"],"kǎi jiē":["楷"],"róu ròu":["楺"],"lè yuè":["楽"],"wēn yùn":["榅","鞰"],lǘ:["榈","櫚","氀","膢","藘","閭","闾","驢","驴"],shén:["榊","神","鉮","鰰","𬬹"],"bī pi":["榌"],"zhǎn niǎn zhèn":["榐"],"fú fù bó":["榑"],"jiàn jìn":["榗"],"bǎng bàng":["榜"],"shā xiè":["榝","樧"],nòu:["槈","耨","鎒","鐞"],"qiǎn lián xiàn":["槏"],gàng:["槓","焵","焹","筻","鿍"],gāo:["槔","槹","橰","櫜","睾","篙","糕","羔","臯","韟","餻","高","髙","鷎","鷱","鼛"],"diān zhěn zhēn":["槙"],"kǎn jiàn":["槛"],"xí dié":["槢"],"jī guī":["槣"],"róng yōng":["槦"],"tuán shuàn quán":["槫"],"qì sè":["槭"],"cuī zhǐ":["槯"],"yǒu chǎo":["槱"],"màn wàn":["槾"],"lí chī":["樆"],"léi lěi":["樏","櫑","礌"],"cháo jiǎo chāo":["樔"],"chēng táng":["樘"],"jiū liáo":["樛"],"mó mú":["模"],"niǎo mù":["樢"],"héng hèng":["横","橫"],xuě:["樰","膤","艝","轌","雪","鱈","鳕"],"fá fèi":["橃"],rùn:["橍","润","潤","膶","閏","閠","闰"],"zhǎn jiǎn":["橏"],shùn:["橓","瞚","瞬","舜","蕣","順","顺","鬊"],"tuí dūn":["橔"],"táng chēng":["橖"],"sù qiū":["橚"],"tán diàn":["橝"],"fén fèn fèi":["橨"],"rǎn yān":["橪"],"cū chu":["橻"],"shū qiāo":["橾"],"píng bò":["檘"],"zhái shì tú":["檡"],"biǎo biāo":["檦"],"qiān lián":["檶"],"nǐ mí":["檷"],"jiàn kǎn":["檻"],"nòu ruǎn rú":["檽"],"jī jì":["櫅","禨"],"huǎng guǒ gǔ":["櫎"],"lǜ chū":["櫖"],"miè mèi":["櫗"],ōu:["櫙","欧","歐","殴","毆","瓯","甌","膒","藲","謳","讴","鏂","鴎","鷗","鸥"],"zhù zhuó":["櫡"],"jué jì":["櫭"],"huái guī":["櫰"],"chán zhàn":["欃"],"wéi zuì":["欈"],cáng:["欌","鑶"],"yù yì":["欥"],"chù qù xì":["欪"],"kài ài":["欬"],"yì yīn":["欭"],"xì kài":["欯"],"shuò sòu":["欶"],"ǎi ēi éi ěi èi ê̄ ế ê̌ ề":["欸"],"qī yī":["欹"],"chuā xū":["欻"],"chǐ chuài":["欼"],"kǎn qiàn":["欿"],"kǎn kè":["歁"],"chuǎn chuán":["歂"],"yīn yān":["歅"],"jìn qūn":["歏"],pēn:["歕"],"xū chuā":["歘"],"xī shè":["歙"],"liǎn hān":["歛"],"zhì chí":["歭"],"sè shà":["歰"],sǐ:["死"],"wěn mò":["歾"],piǎo:["殍","皫","瞟","醥","顠"],"qíng jìng":["殑"],"fǒu bó":["殕"],"zhí shi":["殖"],"yè yān yàn":["殗"],"hūn mèi":["殙"],chòu:["殠","臰","遚"],"kuì huì":["殨","溃","潰"],cuàn:["殩","熶","爨","窜","竄","篡","簒"],"yīn yān yǐn":["殷"],"qìng kēng shēng":["殸"],"yáo xiáo xiào":["殽"],"gū gǔ":["毂","蛄"],"guàn wān":["毌"],"dú dài":["毒"],"xún xùn":["毥"],mú:["毪","氁"],"dòu nuò":["毭"],"sāi suī":["毸"],lu:["氇"],sào:["氉","瘙","矂","髞"],"shì zhī":["氏"],"dī dǐ":["氐"],"máng méng":["氓"],"yáng rì":["氜"],shuǐ:["水","氵","氺","閖"],"zhěng chéng zhèng":["氶"],tǔn:["氽"],"fán fàn":["氾"],"guǐ jiǔ":["氿"],"bīn pà pā":["汃"],"zhuó què":["汋"],"dà tài":["汏"],pìn:["汖","牝","聘"],"hàn hán":["汗","馯"],tu:["汢"],"tāng shāng":["汤","湯"],"zhī jì":["汥"],"gàn hán cén":["汵"],"wèn mén":["汶"],"fāng pāng":["汸"],"hǔ huǎng":["汻"],"niú yóu":["汼"],hàng:["沆"],"shěn chén":["沈"],"dùn zhuàn":["沌"],"nǜ niǔ":["沑"],"méi mò":["沒","没"],"tà dá":["沓"],"mì wù":["沕"],"hóng pāng":["沗"],"shā shà":["沙"],"zhuǐ zǐ":["沝"],"ōu òu":["沤","漚"],"jǔ jù":["沮"],"tuō duó":["沰"],"mǐ lì":["沵"],"yí chí":["沶"],"xiè yì":["泄"],"bó pō":["泊"],"mì bì":["泌","秘"],"chù shè":["泏"],"yōu yòu āo":["泑"],"pēng píng":["泙","硑"],"pào pāo":["泡"],"ní nì":["泥","秜"],"yuè sà":["泧"],"jué xuè":["泬","疦"],"lóng shuāng":["泷","瀧"],"luò pō":["泺","濼"],"zé shì":["泽","澤"],"sǎ xǐ":["洒"],"sè qì zì":["洓"],"xǐ xiǎn":["洗"],"kǎo kào":["洘"],"àn yàn è":["洝"],"lěi lèi":["洡"],"qiè jié":["洯"],"qiǎn jiān":["浅"],"jì jǐ":["济","済","濟","纪"],"hǔ xǔ":["浒","滸"],"jùn xùn":["浚","濬"],"yǐng chéng yíng":["浧"],"liàn lì":["浰"],"féng hóng":["浲","溄"],"jiǒng jiōng":["浻"],"suī něi":["浽"],"yǒng chōng":["涌"],"tūn yūn":["涒"],"wō guō":["涡","渦"],hēng:["涥","脝"],"zhǎng zhàng":["涨","漲"],"shòu tāo":["涭"],shuàn:["涮","腨"],"kōng náng":["涳"],"wò wǎn yuān":["涴"],"tuō tuò":["涶"],wō:["涹","猧","窝","窩","莴","萵","蜗","蝸","踒"],"qiè jí":["淁"],"guǒ guàn":["淉"],"lín lìn":["淋","獜","疄"],"tǎng chǎng":["淌"],"nào chuò zhuō":["淖"],"péng píng":["淜"],féi:["淝","肥","腓","蜰"],"pì pèi":["淠"],"niǎn shěn":["淰"],"biāo hǔ":["淲"],"chún zhūn":["淳"],"hùn hún":["混"],qiǎn:["淺","繾","缱","肷","膁","蜸","譴","谴","遣","鑓"],"wèn mín":["渂"],"rè ruò luò":["渃"],"dú dòu":["渎","瀆","读"],"jiàn jiān":["渐","溅","漸","濺"],"miǎn shéng":["渑","澠"],"nuǎn nuán":["渜"],"qiú wù":["渞"],"tíng tīng":["渟"],"dì tí dī":["渧"],"gǎng jiǎng":["港"],"hōng qìng":["渹"],tuān:["湍","煓"],"huì mǐn xū":["湏"],"xǔ xù":["湑"],pén:["湓","瓫","盆","葐"],"mǐn hūn":["湣"],"tuàn nuǎn":["湪"],"qiū jiǎo":["湫","湬"],"yān yīn":["湮"],"bàn pán":["湴"],"zhuāng hún":["湷"],"yàn guì":["溎"],"lián liǎn nián xián xiàn":["溓"],"dá tǎ":["溚","鿎"],"liū liù":["溜","澑","蹓"],lùn:["溣"],mǎ:["溤","犸","獁","玛","瑪","码","碼","遤","鎷","馬","马","鰢","鷌"],"zhēn qín":["溱"],"nì niào":["溺"],"chù xù":["滀","畜"],"wěng wēng":["滃"],"hào xuè":["滈"],"qì xì xiē":["滊"],"xíng yíng":["滎"],"zé hào":["滜"],"piāo piào piǎo":["漂"],"cóng sǒng":["漎"],"féng péng":["漨"],"luò tà":["漯"],"pēng bēn":["漰"],"chóng shuāng":["漴"],"huǒ kuò huò":["漷"],"liáo liú":["漻"],"cuǐ cuī":["漼"],"cóng zǒng":["潀"],"cóng zōng":["潈"],"pì piē":["潎"],"dàng xiàng":["潒"],"huáng guāng":["潢"],"liáo lào lǎo":["潦"],"cōng zòng":["潨"],"zhí zhì":["潪"],"tān shàn":["潬"],"tú zhā":["潳"],"sàn sǎ":["潵"],hēi:["潶","黑","黒","𬭶"],"chéng dèng":["澄","瀓"],"cūn cún":["澊"],"péng pēng":["澎"],"hòng gǒng":["澒","銾"],"wàn màn":["澫"],"kuài huì":["澮"],"guō wō":["濄"],"pēn fén":["濆"],"jí shà":["濈"],"huì huò":["濊"],"dǐng tìng":["濎"],"mǐ nǐ":["濔"],"bì pì":["濞"],"cuì zuǐ":["濢"],"hù huò":["濩"],"ǎi kài kè":["濭"],"wěi duì":["濻","瀢"],"zàn cuán":["濽","灒"],"yǎng yàng":["瀁"],"wǎng wāng":["瀇"],"mò miè":["瀎","眜"],suǐ:["瀡","膸","髓"],"huái wāi":["瀤"],"zùn jiàn":["瀳"],"yīng yǐng yìng":["瀴"],"ráng ràng":["瀼"],shuàng:["灀"],"zhuó jiào zé":["灂"],sǎ:["灑","訯","靸"],"luán luàn":["灓"],"dǎng tǎng":["灙"],"xún quán quàn":["灥"],"huǒ biāo":["灬"],"zhà yù":["灹"],"fén bèn":["炃"],"jiǒng guì":["炅"],"pàng fēng":["炐"],quē:["炔","缺","缼","蒛"],biān:["炞","煸","甂","砭","笾","箯","籩","編","编","蝙","邉","邊","鍽","鞭","鯾","鯿","鳊"],"zhāo zhào":["炤"],"zhuō chù":["炪"],"pào páo bāo":["炮"],"páo fǒu":["炰"],"shǎn qián shān":["炶"],"zhà zhá":["炸"],"jiǎo yào":["烄"],quǎn:["烇","犬","犭","畎","綣","绻","虇"],"yàng yáng":["烊"],"lào luò":["烙"],"huí huǐ":["烠"],rè:["热","熱"],"fú páo":["烰"],"xiè chè":["烲","焎"],"yàn shān":["烻"],"hūn xūn":["焄"],kào:["焅","犒","銬","铐","靠","鮳","鯌","鲓","㸆"],"juān yè":["焆"],"jùn qū":["焌"],"tāo dào":["焘"],"chǎo jù":["焣"],"wò ài":["焥"],"zǒng cōng":["焧"],"xī yì":["焬"],"xìn xīn":["焮"],"chāo zhuō":["焯"],"xiǒng yīng":["焸","焽"],kuǐ:["煃","跬","蹞","頍","𫠆"],"huī yùn xūn":["煇"],"jiǎo qiāo":["煍"],"qián shǎn shān":["煔"],"xī yí":["煕"],"shà shā":["煞"],"yè zhá":["煠"],"yáng yàng":["煬"],"ēn yūn":["煾"],"yūn yǔn":["熅"],"hè xiāo":["熇"],xióng:["熊","熋","雄"],"xūn xùn":["熏","爋"],gòng:["熕","貢","贡"],liū:["熘"],"cōng zǒng":["熜"],"lù āo":["熝"],"shú shóu":["熟"],"fēng péng":["熢"],"cuǐ suī":["熣"],tēng:["熥","膯","鼟"],"yùn yù":["熨"],"áo āo":["熬"],"hàn rǎn":["熯"],"ōu ǒu":["熰"],"huáng huǎng":["熿"],"chǎn dǎn chàn":["燀"],"jiāo zhuó qiáo jué":["燋"],"yàn yān":["燕"],"tài liè":["燤"],āo:["爊"],"yàn xún":["爓"],"jué jiào":["爝","覐","覚","覺","觉"],"lǎn làn":["爦"],"zhuǎ zhǎo":["爪"],"zhǎo zhuǎ":["爫"],"fù fǔ":["父"],diē:["爹","褺","跌"],zāng:["牂","羘","臧","賍","賘","贓","贜","赃","髒"],"piàn piān":["片"],"biān miàn":["牑"],bǎng:["牓","綁","绑"],"yǒu yōng":["牗"],"chēng chèng":["牚","竀"],niú:["牛","牜"],"jiū lè":["牞"],"mù móu":["牟"],māng:["牤"],"gē qiú":["牫"],"yòu chōu":["牰"],"tè zhí":["犆"],bēn:["犇","錛","锛"],"jiān qián":["犍","玪"],má:["犘","痲","蔴","蟇","麻"],"máo lí":["犛"],"bá quǎn":["犮"],"zhuó bào":["犳"],"àn hān":["犴"],"kàng gǎng":["犺"],"pèi fèi":["犻"],"fān huān":["犿"],kuáng:["狂","狅","誑","诳","軖","軠","鵟","𫛭"],"yí quán chí":["狋"],"xīng shēng":["狌"],"tuó yí":["狏"],kǔ:["狜","苦"],"huán huān":["狟"],"hé mò":["狢"],"tà shì":["狧"],"máng dòu":["狵"],"xī shǐ":["狶"],suān:["狻","痠","酸"],"bài pí":["猈"],"jiān yàn":["猏","豣"],"yī yǐ":["猗"],"yá wèi":["猚"],cāi:["猜"],"māo máo":["猫","貓"],"chuàn chuān":["猭"],"tuān tuàn":["猯","貒"],"yà jiá qiè":["猰"],"hè xiē gé hài":["猲"],"biān piàn":["猵","獱"],"bó pò":["猼"],"háo gāo":["獋"],"fén fèn":["獖"],"yào xiāo":["獟"],"shuò xī":["獡"],"gé liè xiē":["獦"],"nòu rú":["獳"],"náo nǎo yōu":["獶"],ráng:["獽","瓤","禳","穣","穰","蘘","躟","鬤"],"náo yōu":["獿"],"lǜ shuài":["率"],"wáng wàng":["王"],"yáng chàng":["玚"],"mín wén":["玟"],"bīn fēn":["玢"],"mén yǔn":["玧"],"qiāng cāng":["玱","瑲","篬"],"án gān":["玵"],"xuán xián":["玹"],"cī cǐ":["玼","跐"],"yí tāi":["珆"],"zǔ jù":["珇"],fà:["珐","琺","蕟","髪","髮"],"yín kèn":["珢"],"huī hún":["珲"],"xuán qióng":["琁"],"fú fū":["琈"],"bǐng pín":["琕"],"cuì sè":["琗"],"yù wéi":["琟"],"tiǎn tiàn":["琠"],"zhuó zuó":["琢"],"běng pěi":["琣"],guǎn:["琯","璭","痯","筦","管","舘","輨","錧","館","馆","鳤"],"hún huī":["琿"],"xié jiē":["瑎"],"chàng dàng yáng":["瑒"],"tiàn zhèn":["瑱"],"bīn pián":["瑸","璸"],"tú shū":["瑹"],cuǐ:["璀","皠","趡"],"zǎo suǒ":["璅"],"jué qióng":["璚"],"lú fū":["璷"],"jì zī":["璾"],suí:["瓍","綏","绥","遀","随","隨","髄"],"mí xǐ":["瓕"],"qióng wěi wèi":["瓗"],"huán yè yà":["瓛"],"bó páo":["瓟"],"zhí hú":["瓡"],piáo:["瓢","闝"],"wǎ wà":["瓦"],"xiáng hóng":["瓨"],wèng:["瓮","甕","罋","蕹","齆"],"shèn shén":["甚"],ruí:["甤","緌","蕤"],yòng:["用","砽","苚","蒏","醟","㶲"],shuǎi:["甩"],béng:["甭","甮"],"yóu zhá":["甴"],"diàn tián shèng":["甸"],"tǐng dīng":["町","甼"],"zāi zī":["甾"],"bì qí":["畁"],"dá fú":["畗"],"cè jì":["畟"],"zāi zī tián":["畠"],"zhì chóu shì":["畤"],"fān pān":["畨","番"],"shē yú":["畬"],"dāng dàng dǎng":["當"],"jiāng qiáng":["疆"],"pǐ yǎ shū":["疋"],"jié qiè":["疌"],"yí nǐ":["疑"],nè:["疒","眲","訥","讷"],"gē yì":["疙"],"nüè yào":["疟","瘧"],"lì lài":["疠","癘"],"yǎ xiā":["疨"],xuē:["疶","蒆","薛","辥","辪","靴","鞾"],"dǎn da":["疸"],"fá biǎn":["疺"],"fèi féi":["疿","痱"],"shān diàn":["痁"],"téng chóng":["痋"],"tōng tóng":["痌"],"wěi yòu yù":["痏"],"tān shǐ":["痑"],"pū pù":["痡","鋪"],"bēng péng":["痭"],"má lìn":["痳"],"tiǎn diàn":["痶"],"ān yè è":["痷"],"kē ē":["痾"],"zhì chì":["瘈"],"jiǎ xiá xiā":["瘕"],"lěi huì":["瘣"],"chài cuó":["瘥"],"diān chēn":["瘨"],"da dá":["瘩"],"biě biē":["瘪"],qué:["瘸"],"dàn dān":["癉"],"guì wēi":["癐"],"nòng nóng":["癑"],"biē biě":["癟"],"bō bǒ":["癷"],bái:["白"],"jí bī":["皀"],"de dì dí dī":["的"],"pā bà":["皅"],"gāo háo":["皋"],"gāo yáo":["皐"],"lì luò bō":["皪"],"zhā cǔ":["皻"],"zhāo zhǎn dǎn":["皽"],"jiān jiàn":["监","監","鋻","间","鞬"],"gài gě hé":["盖"],"máng wàng":["盳"],yuǎn:["盶","逺","遠"],"tián xián":["盷"],"xiāng xiàng":["相"],dǔn:["盹","趸","躉"],"xì pǎn":["盻"],"shěng xǐng":["省"],"yún hùn":["眃"],"miǎn miàn":["眄"],"kàn kān":["看"],"yìng yāng yǎng":["眏"],"yǎo āo ǎo":["眑"],"jū xū kōu":["眗"],"yí chì":["眙"],"dié tì":["眣"],"bǐng fǎng":["眪"],"pàng pán":["眫"],"mī mí":["眯","瞇"],"xuàn shùn xún":["眴"],tiào:["眺","粜","糶","覜","趒"],"zhe zhuó zháo zhāo":["着"],"qiáo shào xiāo":["睄"],"cuó zhuài":["睉"],gùn:["睔","謴"],"suì zuì":["睟"],"pì bì":["睥","稫","辟"],"yì zé gāo":["睪"],"xǐng xìng":["睲"],"guì wèi kuì":["瞆"],"kòu jì":["瞉"],"qióng huán":["瞏"],"mán mén":["瞒","瞞"],"diāo dōu":["瞗"],"lou lóu lǘ":["瞜"],"shùn rún":["瞤"],"liào liǎo":["瞭","钌"],"jiàn xián":["瞯"],"wǔ mí":["瞴"],"guì kuì":["瞶"],"nǐng chēng":["矃"],"huò yuè":["矆"],"mēng méng":["矇"],"kuàng guō":["矌"],"guàn quán":["矔"],"mǎn mán":["矕"],"jīn guān qín":["矜"],"jīn qín guān":["矝"],"yù xù jué":["矞"],"jiǎo jiáo":["矫","矯"],duǎn:["短"],"shí dàn":["石"],"gāng qiāng kòng":["矼"],"huā xū":["砉"],"pīn bīn fēn":["砏"],"yán yàn":["研","硏"],"luǒ kē":["砢"],"fú fèi":["砩","笰"],"zhǔ zhù":["砫"],"lá lì lā":["砬"],"kuāng guāng":["硄"],"gè luò":["硌"],"shuò shí":["硕","碩"],"wèi wéi ái":["硙"],"què kè kù":["硞"],"mǎng bàng":["硥"],"luò lòng":["硦"],"yǒng tóng":["硧"],nüè:["硸","虐"],"kēng kěng":["硻"],"yān yǎn":["硽"],"zhuì chuí duǒ":["硾"],"kōng kòng":["硿"],"zòng cóng":["碂"],"jiān zhàn":["碊"],"lù liù":["碌","陆"],"què xī":["碏"],"lún lǔn lùn":["碖"],"náo gāng":["碙"],"jié yà":["碣"],"wèi wěi":["碨"],"tí dī":["碮"],"chá chā":["碴"],"qiāo què":["碻"],"sù xiè":["碿"],"liú liù":["磂","遛","鎦","馏"],"sī tí":["磃"],"bàng páng":["磅"],"huá kě gū":["磆"],"wěi kuǐ":["磈"],"xiá qià yà":["磍"],"lián qiān":["磏"],"wèi ái gài":["磑"],"lá lā":["磖"],"áo qiāo":["磝"],"pēng pèng":["磞","閛"],"yīn yǐn":["磤"],"lěi léi":["磥"],"mó mò":["磨"],"qì zhú":["磩"],"láo luò":["磱"],"pán bō":["磻"],"jí shé":["磼"],"hé qiāo qiào":["礉"],"kè huò":["礊"],"què hú":["礐"],"è qì":["礘"],cǎ:["礤","礸"],"xián xín":["礥"],"léi lěi lèi":["礧"],"yán yǎn":["礹"],"qí zhǐ":["祇","蚔"],"bēng fāng":["祊"],"bì mì":["祕"],suàn:["祘","笇","筭","算","蒜"],"piào piāo":["票"],"jì zhài":["祭"],"shuì lèi":["祱"],"jìn jīn":["禁"],"chán shàn":["禅"],"yáng shāng":["禓"],"zhī zhǐ tí":["禔"],"shàn chán":["禪"],"yú yù ǒu":["禺"],"zǐ zì":["秄"],"chá ná":["秅"],"zhǒng zhòng chóng":["种"],"hào mào":["秏"],"kù kū":["秙"],zū:["租","葅"],chèng:["秤","穪"],"huó kuò":["秮","秳"],"chēng chèn chèng":["称","稱"],"shì zhì":["秲","銴"],"fù pū":["秿"],"xùn zè":["稄"],"tú shǔ":["稌"],"zhùn zhǔn":["稕"],"jī qí":["稘","綨","觭"],"léng líng":["稜"],"zuì zú sū":["稡"],"xì qiè":["稧","郄"],"zhǒng zhòng":["種"],"zōng zǒng":["稯"],"xián jiān liàn":["稴"],"zī jiū":["稵"],"jī qǐ":["稽"],ròng:["穃"],"shān cǎn cēn":["穇"],"mén méi":["穈"],"jǐ jì":["穖"],"xiāo rào":["穘"],"zhuō bó":["穛"],"tóng zhǒng zhòng":["穜"],zuō:["穝"],"biāo pāo":["穮","藨"],"zhuō jué":["穱"],"cuán zàn":["穳"],"kōng kòng kǒng":["空"],"yū yǔ":["穻"],zhǎi:["窄","鉙"],báo:["窇","雹"],"kū zhú":["窋"],"jiào liáo liù":["窌"],"wā guī":["窐"],"tiǎo yáo":["窕"],"xūn yìn":["窨"],"yà yē":["窫"],"tián diān yǎn":["窴"],"chāo kē":["窼"],"kuǎn cuàn":["窽","窾"],"chù qì":["竐"],"qǔ kǒu":["竘"],"jìng zhěn":["竧"],"kǎn kàn":["竷"],"zhú dǔ":["竺"],"lè jīn":["竻"],"zhuì ruì":["笍"],"háng hàng":["笐"],"cén jìn hán":["笒"],"dā xiá nà":["笚"],"zé zuó":["笮"],"lóng lǒng":["笼","篭","籠","躘","龓"],"zhù zhú":["筑","築"],"dá dā":["答","荅"],shāi:["筛","篩","簁","籭"],"yún jūn":["筠"],"láng làng":["筤","郎","阆"],"zhì zhǐ":["筫"],o:["筽"],"póu bù fú pú":["箁"],"pái bēi":["箄"],gè:["箇","虼","鉻","铬"],"tái chí":["箈"],"guǎi dài":["箉"],"zhào dào":["箌"],"jīng qìng":["箐"],"lín lǐn":["箖"],"jùn qūn":["箘"],"shī yí":["箷","釶"],"yuē yào chuò":["箹"],"xiāo shuò qiào":["箾"],"gōng gǎn lǒng":["篢"],"páng péng":["篣"],"zhuó huò":["篧"],"jiǎn jiān":["篯"],"dí zhú":["篴"],"zān cēn cǎn":["篸"],"zhuàn suǎn zuàn":["篹"],"piǎo biāo":["篻"],"guó guì":["簂"],"cè jí":["簎"],"mì miè":["簚"],"shāi sī":["簛"],"sǔn zhuàn":["簨"],"gàn gǎn":["簳"],"bò bǒ":["簸"],"bó bù":["簿"],shi:["籂"],"zhēn jiān":["籈"],"zhuàn zuǎn":["籑"],"fān pān biān":["籓"],"sǒu shǔ":["籔"],zuǎn:["籫","繤","纂","纉","纘","缵"],nǚ:["籹","釹","钕"],"shā chǎo":["粆"],"kāng jīng":["粇"],fěn:["粉","黺"],cū:["粗","觕","麁","麄","麤"],"nián zhān":["粘"],"cè sè":["粣"],"zhōu yù":["粥"],"shēn sǎn":["糁"],"biān biǎn":["糄","萹"],miàn:["糆","面","靣","麪","麫","麵","麺"],"hú hū hù":["糊"],"gǔ gòu":["糓"],"mí méi":["糜"],"sǎn shēn":["糝","糣"],zāo:["糟","蹧","遭","醩"],"mì sī":["糸"],"jiū jiǔ":["糺"],"xì jì":["系","繫"],"zhēng zhěng":["糽"],"chà chǎ":["紁","衩"],"yuē yāo":["約","约"],"hóng gōng":["紅","红"],"hé gē":["紇","纥"],"wén wèn":["紋","纹"],fóu:["紑"],"jì jié jiè":["紒"],"pī pí bǐ":["紕","纰"],"jīn jìn":["紟"],"zhā zā":["紥","紮"],hā:["紦"],"fū fù":["紨"],"chōu chóu":["紬"],"lèi léi lěi":["累"],"bō bì":["紴"],"tiǎn zhěn":["紾"],"jiōng jiǒng":["絅"],"jié jiē":["結","结","节"],"guà kuā":["絓"],"bǎi mò":["絔"],"gēng huán":["絙"],"jié xié":["絜"],"quán shuān":["絟"],"gǎi ǎi":["絠"],"luò lào":["絡","络"],"bīng bēng pēng":["絣"],"gěi jǐ":["給","给"],"tóng tōng dòng":["絧"],"tiào diào dào":["絩"],"lěi lèi léi":["絫"],"gāi hài":["絯"],"chī zhǐ":["絺"],"wèn miǎn mán wàn":["絻"],"huán huàn wàn":["綄"],"qīn xiān":["綅"],"tì tí":["綈"],"yán xiàn":["綖"],"zōng zèng zòng":["綜"],"chēn lín":["綝"],"zhǔn zhùn":["綧"],"qiàn qīng zhēng":["綪"],"qìng qǐ":["綮"],"lún guān":["綸","纶"],"chuò chāo":["綽","绰"],"tián tǎn chān":["緂"],"lǜ lù":["緑","绿"],"ruǎn ruàn":["緛"],"jí qī":["緝"],"zhòng chóng":["緟","重"],"miáo máo":["緢"],"xiè yè":["緤"],huǎn:["緩","缓","㬊"],"gēng gèng":["緪","縆"],"tōu xū shū":["緰"],"zōng zòng":["緵","繌"],"yùn gǔn":["緷"],"guā wō":["緺"],"yùn yūn wēn":["緼","縕"],"bāng bàng":["縍"],"gǔ hú":["縎","鶻"],"cī cuò suǒ":["縒"],"cuī shuāi":["縗"],"róng rǒng ròng":["縙"],"zài zēng":["縡"],cài:["縩","菜","蔡"],"féng fèng":["縫"],"suō sù":["縮","缩"],"yǎn yǐn":["縯","酓"],"zòng zǒng":["縱","纵"],"zhuàn juàn":["縳"],"mò mù":["縸","莫"],"piǎo piāo":["縹","缥"],"fán pó":["繁"],"bēng bèng":["繃"],"móu miù miào liǎo":["繆"],"yáo yóu zhòu":["繇"],"zēng zèng":["繒","缯"],"jú jué":["繘"],"chuō chuò":["繛"],"zūn zǔn":["繜"],rào:["繞","绕","遶"],"chǎn chán":["繟"],"huì huí":["繢","缋","藱"],"qiāo sāo zǎo":["繰"],"jiǎo zhuó":["繳","缴"],"dàn tán chán":["繵"],nǒng:["繷"],"pú fú":["纀"],"yào lì":["纅"],"rǎng xiāng":["纕"],"lí sǎ xǐ lǐ":["纚"],"xiān qiàn":["纤"],"jīng jìng":["经"],"tí tì":["绨"],"bēng běng bèng":["绷"],"zōng zèng":["综"],"jī qī":["缉"],"wēn yùn yūn":["缊"],"fèng féng":["缝"],"shuāi cuī suī":["缞"],"miù móu liáo miào mù":["缪"],"qiāo sāo":["缲"],fǒu:["缶","缹","缻","雬","鴀"],"bà ba pí":["罢","罷"],"guà guǎi":["罫"],"yáng xiáng":["羊","羏"],"měi gāo":["羙"],"yì xī":["羛"],"qiǎng qiān":["羟"],"qiāng kòng":["羫"],"qián xián yán":["羬"],nóu:["羺"],"hóng gòng":["羾"],"pī bì pō":["翍"],"qú yù":["翑"],ké:["翗"],"qiào qiáo":["翘"],"zhái dí":["翟"],"dào zhōu":["翢"],"hóu qú":["翵"],shuǎ:["耍"],"ruǎn nuò":["耎"],"ér nài":["耏"],"zhuān duān":["耑"],"pá bà":["耙"],"chí sì":["耛"],"qù chú":["耝"],"lún lǔn":["耣"],"jí jiè":["耤"],"tāng tǎng":["耥"],pǎng:["耪","覫"],"zhá zé":["耫"],"yē yé":["耶"],"yún yíng":["耺"],"wà tuǐ zhuó":["聉"],"ér nǜ":["聏"],"tiē zhé":["聑"],"dǐ zhì":["聜"],qié:["聺"],"nǐ jiàn":["聻"],"lèi lē":["肋"],cào:["肏","襙","鄵","鼜"],"bó dí":["肑"],"xiào xiāo":["肖"],"dù dǔ":["肚"],chāi:["肞","釵","钗"],"hán qín hàn":["肣"],"pàng pán pàn":["肨","胖"],"zhūn chún":["肫"],āng:["肮","骯"],"yù yō":["育"],"pí bǐ bì":["肶"],"fèi bì":["胇"],"bèi bēi":["背"],"fèi zǐ":["胏"],"píng pēng":["胓","苹"],"fū fú zhǒu":["胕"],"shèng shēng":["胜"],kuà:["胯","跨","骻"],"gǎi hǎi":["胲"],"gē gé gā":["胳"],"néng nài":["能"],"guī kuì":["胿"],"mài mò":["脉"],"zāng zàng":["脏"],"jiǎo jué":["脚","角"],cuǒ:["脞"],"de te":["脦"],"zuī juān":["脧"],něi:["脮","腇","餒","馁","鮾","鯘"],"pú fǔ":["脯"],niào:["脲"],shuí:["脽"],guò:["腂","過","鐹"],"là xī":["腊"],"yān ā":["腌"],"gāo gào":["膏"],"lù biāo":["膔"],chuái:["膗"],"zhuān chuán chún zhuǎn":["膞"],chuài:["膪","踹"],"fán pán":["膰"],"wǔ hū":["膴"],"shān dàn":["膻"],tún:["臀","臋","蛌","豘","豚","軘","霕","飩","饨","魨","鲀","黗"],"bì bei":["臂"],"là gé":["臈"],"sào sāo":["臊"],nào:["臑","閙","闹","鬧"],"ní luán":["臡"],"qiān xián":["臤"],"guàng jiǒng":["臦"],"guǎng jiǒng":["臩"],"chòu xiù":["臭"],"mián biān":["臱"],"dié zhí":["臷"],"zhī jìn":["臸"],"shè shě":["舍"],pù:["舖","舗"],"bān bō pán":["般"],kuā:["舿"],"gèn gěn":["艮"],"sè shǎi":["色"],"fú bó":["艴"],"jiāo qiú":["艽"],"chāi chā":["芆"],"sháo què":["芍"],"hù xià":["芐"],"zì zǐ":["芓"],"huì hū":["芔"],"tún chūn":["芚"],"jiè gài":["芥"],"xù zhù":["芧"],"yuán yán":["芫"],"xīn xìn":["芯"],"lún huā":["芲"],"wù hū":["芴"],"gōu gǒu":["芶"],"mào máo":["芼"],"fèi fú":["芾"],"chán yín":["苂"],qiē:["苆"],"sū sù":["苏"],"tiáo sháo":["苕"],"lì jī":["苙"],"kē hē":["苛"],"jù qǔ":["苣"],"ruò rě":["若"],"zhù níng":["苧"],"pā bó":["苩"],xiú:["苬"],"zhǎ zuó":["苲"],"jū chá":["苴"],nié:["苶"],"shēng ruí":["苼"],"qié jiā":["茄"],"zǐ cí":["茈"],"qiàn xī":["茜"],chǎi:["茝"],"fá pèi":["茷"],ráo:["荛","蕘","襓","饒","饶"],"yíng xíng":["荥"],"qián xún":["荨","蕁"],"yìn yīn":["荫"],"hé hè":["荷"],"shā suō":["莎"],"péng fēng":["莑"],"shēn xīn":["莘"],"wǎn guān guǎn":["莞"],"yóu sù":["莤"],"shāo xiāo":["莦","蛸"],"làng liáng":["莨"],"piǎo fú":["莩"],"wèn wǎn miǎn":["莬"],"shì shí":["莳","蒔"],"tù tú":["莵"],"xiān liǎn":["莶","薟"],"wǎn yù":["菀"],"zōu chù":["菆"],"lù lǜ":["菉"],"jūn jùn":["菌"],"niè rěn":["菍"],"zī zì zāi":["菑"],"tú tù":["菟"],"jiē shà":["菨"],"qiáo zhǎo":["菬"],"tái zhī chí":["菭"],"fēi fěi":["菲","蜚"],"qín qīn jīn":["菳"],"zū jù":["菹","蒩"],"lǐn má":["菻"],"tián tiàn":["菾"],tiē:["萜","貼","贴"],"luò là lào luō":["落"],"zhù zhuó zhe":["著"],"shèn rèn":["葚"],"gě gé":["葛"],"jùn suǒ":["葰"],"kuì kuài":["蒉"],"rú ná":["蒘"],"méng mēng měng":["蒙"],"yuán huán":["蒝"],"xú shú":["蒣"],"xí xì":["蒵"],"mì míng":["蓂"],"sōu sǒu":["蓃"],"gài gě hé hài":["蓋"],"yǎo zhuó":["蓔"],"diào tiáo dí":["蓧"],"xū qiū fū":["蓲"],"zí jú":["蓻"],"liǎo lù":["蓼"],xu:["蓿"],"hàn hǎn":["蔊"],"màn wàn mán":["蔓"],"pó bò":["蔢"],"fān fán bō":["蕃"],"hóng hòng":["蕻"],"yù ào":["薁","隩"],"xí xiào":["薂"],"báo bó bò":["薄"],"cí zī":["薋"],"wàn luàn":["薍"],"kǎo hāo":["薧"],"yuǎn wěi":["薳"],"zhòu chóu":["薵"],"wō mái":["薶"],"xiāo hào":["藃"],"yù xù xū":["藇"],"jiè jí":["藉"],"diào zhuó":["藋"],"cáng zàng":["藏"],lǎ:["藞"],"chú zhū":["藸"],"pín píng":["蘋"],"gān hán":["虷"],"hóng jiàng":["虹"],"huī huǐ":["虺"],"xiā há":["虾"],"mǎ mà mā":["蚂"],"fāng bàng":["蚄"],"bàng bèng":["蚌"],"jué quē":["蚗"],"qín qián":["蚙"],"gōng zhōng":["蚣"],"fǔ fù":["蚥"],"dài dé":["蚮"],"gǒu qú xù":["蚼"],"bǒ pí":["蚾"],"shé yí":["蛇"],tiě:["蛈","鉄","銕","鐡","鐵","铁","驖"],"gé luò":["蛒"],"máng bàng":["蛖"],"yì xǔ":["蛡"],"há gé":["蛤"],"qiè ní":["蛪"],"é yǐ":["蛾"],"zhē zhé":["蜇"],"là zhà":["蜡"],suò:["蜶","逤"],"yóu qiú":["蝤"],"xiā hā":["蝦"],"xī qī":["螇"],"bī pí":["螕"],"nài něng":["螚"],"hé xiá":["螛"],"guì huǐ":["螝"],"mǎ mā mà":["螞"],"shì zhē":["螫"],"zhì dié":["螲"],"jiàn chán":["螹"],"ma má mò":["蟆"],"mǎng měng":["蟒"],"biē bié":["蟞"],"bēn fèi":["蟦"],"láo liáo":["蟧"],"yín xún":["蟫"],"lí lǐ":["蠡"],"xuè xiě":["血"],"xíng háng hàng héng":["行"],"shuāi cuī":["衰"],"tuó tuō":["袉"],"lǐng líng":["袊"],"bào páo pào":["袌"],"jù jiē":["袓"],"hè kè":["袔"],"yí yì":["袘","貤"],"nà jué":["袦"],"bèi pī":["被"],"chǐ nuǒ":["袲"],"chǐ qǐ duǒ nuǒ":["袳"],"jiá qiā jié":["袷"],"bó mò":["袹"],"guī guà":["袿"],"liè liě":["裂"],"chéng chěng":["裎"],"jiē gé":["裓"],"dāo chóu":["裯"],"shang cháng":["裳"],"yuān gǔn":["裷"],"yǎn ān":["裺"],"tì xī":["裼"],"fù fú":["褔"],"chǔ zhǔ":["褚"],"tuì tùn":["褪"],lǎi:["襰"],"yào yāo":["要"],"qín tán":["覃"],"jiàn xiàn":["見","见"],piǎn:["覑","諞","谝","貵","𡎚"],"piē miè":["覕"],"yíng yǐng":["覮"],"qù qū":["覰","覷","觑"],"jiàn biǎn":["覵"],"luó luǎn":["覶"],"zī zuǐ":["觜"],"huà xiè":["觟"],"jiě jiè xiè":["解","觧"],"xué hù":["觷"],"lì lù":["觻"],tǎo:["討","讨"],zhùn:["訰"],"zī zǐ":["訾"],"yí dài":["詒","诒"],xiòng:["詗","诇"],"diào tiǎo":["誂"],"yí chǐ chì":["誃"],"lǎng làng":["誏"],"ēi éi ěi èi xī":["誒","诶"],shuà:["誜"],"yǔ yù":["語","语","雨"],"shuō shuì yuè":["說","说"],"shuí shéi":["誰","谁"],"qū juè":["誳"],"chī lài":["誺"],"nì ná":["誽"],"diào tiáo":["調"],"pǐ bēi":["諀"],"jì jī":["諅"],"zé zuò zhǎ cuò":["諎"],"chù jí":["諔"],"háo xià":["諕"],"lùn lún":["論","论"],"shì dì":["諟"],"huà guā":["諣"],"xǐ shāi āi":["諰"],"nán nàn":["諵","難"],miù:["謬","谬"],zèn:["譖","谮"],"shí zhì":["識","识"],"juàn xuān":["讂"],"yí tuī":["讉"],zhán:["讝"],"xǔ hǔ":["许"],"xiáng yáng":["详"],"tiáo diào zhōu":["调"],"chén shèn":["谌"],"mí mèi":["谜"],"màn mán":["谩"],"gǔ yù":["谷"],"huō huò huá":["豁"],"zhì zhài":["豸"],"huān huán":["貆"],"kěn kūn":["貇"],"mò hé":["貈"],"mò hé háo":["貉"],"jù lóu":["貗"],"zé zhài":["責","责"],"dài tè":["貸"],"bì bēn":["賁"],"jiǎ gǔ jià":["賈"],"xiōng mín":["賯"],càng:["賶"],"zhuàn zuàn":["賺","赚"],"wàn zhuàn":["贃"],"gàn gòng zhuàng":["贛"],"yuán yùn":["贠"],"bēn bì":["贲"],"jiǎ gǔ":["贾"],zǒu:["走","赱","鯐"],"dié tú":["趃"],"jū qiè":["趄"],"qū cù":["趋","趨"],"jí jié":["趌"],"guā huó":["趏"],"què qì jí":["趞"],"tàng tāng":["趟"],"chuō zhuó":["趠"],"qù cù":["趣"],"yuè tì":["趯"],"bō bào":["趵"],"kuà wù":["趶"],"guì jué":["趹"],"fāng fàng páng":["趽"],"páo bà":["跁"],"qí qǐ":["跂"],"jiàn chén":["跈"],"pǎo páo":["跑"],"diǎn diē tiē":["跕"],"jū jù qiè":["跙"],bǒ:["跛"],"luò lì":["跞"],"dài duò duō chí":["跢"],zhuǎi:["跩"],"bèng pián":["跰"],"tiào táo":["跳"],"shū chōu":["跾"],"liàng liáng":["踉"],"tà tā":["踏"],chǎ:["蹅","鑔","镲"],"dí zhí":["蹢"],"dēng dèng":["蹬","鐙","镫"],cèng:["蹭"],"dūn cún":["蹲"],"juě jué":["蹶"],liāo:["蹽"],"xiè sǎ":["躠"],tǐ:["躰","軆","骵"],"yà zhá gá":["轧","軋"],"xìn xiàn":["軐"],"fàn guǐ":["軓"],"zhuàn zhuǎn":["転"],"zhóu zhòu":["軸","轴"],bú:["轐","醭","鳪"],"zhuǎn zhuàn zhuǎi":["转"],"zǎi zài":["载"],"niǎn zhǎn":["辗"],"biān bian":["边"],"dào biān":["辺"],"yǐ yí":["迆","迤","迱"],"guò guo guō":["过"],"wàng kuāng":["迋"],"hái huán":["还"],"zhè zhèi":["这"],"yuǎn yuàn":["远"],"zhì lì":["迣"],"zhù wǎng":["迬"],"zhuī duī":["追"],"shì kuò":["适"],tòu:["透"],"tōng tòng":["通"],guàng:["逛"],"dǎi dài":["逮"],"suì suí":["遂"],"tí dì":["遆"],"yí wèi":["遗"],"shì dí zhé":["適"],cà:["遪"],"huán hái":["還"],"lí chí":["邌"],"kàng háng":["邟"],"nà nèi nā":["那"],"xié yá yé yú xú":["邪"],"gāi hái":["郂"],"huán xún":["郇"],"chī xī":["郗"],hǎo:["郝"],"lì zhí":["郦"],"xiáo ǎo":["郩"],"dōu dū":["都"],liǎo:["曢","鄝","镽"],"zàn cuán cuó":["酂","酇"],"dīng dǐng":["酊"],"cù zuò":["酢"],"fā pō":["酦"],"shāi shī":["酾"],niàng:["酿","醸"],"qiú chōu":["醔"],"pō fā":["醗","醱"],"chǎn chěn":["醦"],"yàn liǎn xiān":["醶"],"niàng niáng":["釀"],"lǐ li":["里"],"lí xǐ xī":["釐"],"liǎo liào":["釕"],"dīng dìng":["釘","钉"],"qiǎo jiǎo":["釥"],"yú huá":["釪"],"huá wū":["釫"],"rì rèn jiàn":["釰","釼"],"dì dài":["釱"],"pī zhāo":["釽"],"yá yé":["釾"],"bǎ pá":["鈀","钯"],"tā tuó":["鉈","铊"],běi:["鉳"],"bǐng píng":["鉼"],"hā kē":["鉿","铪"],chòng:["銃","铳"],"xiǎng jiōng":["銄"],"yù sì":["銉"],"xù huì":["銊"],"rén rěn":["銋"],"shàn shuò":["銏"],"chì lì":["銐"],"xiǎn xǐ":["銑","铣"],"hóu xiàng":["銗"],"diào tiáo yáo":["銚"],"xiān kuò tiǎn guā":["銛","銽","铦"],"zhé niè":["銸"],"zhōng yōng":["銿"],"tōu tù dòu":["鋀"],"méi méng":["鋂"],"wàn jiǎn":["鋄","鎫"],"tǐng dìng":["鋌","铤"],"juān jiān cuān":["鋑"],"sī tuó":["鋖"],"juān xuān juàn":["鋗"],"wú huá wū":["鋘"],"zhuó chuò":["鋜"],"xíng xìng jīng":["鋞"],"jū jú":["鋦","锔"],"zuì niè":["鋷"],"yuān yuǎn wǎn wān":["鋺"],"gāng gàng":["鋼","钢"],zhuī:["錐","锥","騅","骓","鵻"],ā:["錒","锕"],"cuō chā":["鎈"],"suǒ sè":["鎍"],"yáo zú":["鎐"],"yè tà gé":["鎑"],"qiāng chēng":["鎗"],"gé lì":["鎘","镉","鬲"],"bī pī bì":["鎞"],"gǎo hào":["鎬"],"zú chuò":["鏃"],"xiū xiù":["鏅"],"shòu sōu":["鏉"],"dí dī":["鏑","镝"],"qiāo sǎn càn":["鏒"],"lù áo":["鏕"],"tāng táng":["鏜"],"jiàn zàn":["鏩"],"huì suì ruì":["鏸"],"qiǎng qiāng":["鏹","镪"],"sǎn xiàn sà":["鏾"],"jiǎn jiàn":["鐧","锏"],"dāng chēng":["鐺","铛"],"zuān zuàn":["鑽"],"sà xì":["钑"],"yào yuè":["钥"],"tǒu dǒu":["钭"],"zuàn zuān":["钻"],"qiān yán":["铅"],"pí pī":["铍"],"yáo diào tiáo":["铫"],"tāng tàng":["铴"],"pù pū":["铺"],"tán xiān":["锬"],"liù liú":["镏"],"hào gǎo":["镐"],"táng tāng":["镗"],"tán chán xín":["镡"],"huò shǎn":["閄"],"hàn bì":["閈","闬"],"kāng kàng":["閌","闶"],"xián jiàn jiān jiǎn":["閒"],"xiā xiǎ":["閕"],"xiǎ kě":["閜"],"biàn guān":["閞"],"hé gé":["閤","颌"],"hòng xiàng":["閧"],"sē xī":["閪"],"tíng tǐng":["閮"],"è yān":["閼","阏"],"hòng juǎn xiàng":["闂"],"bǎn pàn":["闆"],"dū shé":["闍","阇"],"què quē":["闕"],"tāng táng chāng":["闛"],"kàn hǎn":["闞","阚"],"xì sè tà":["闟"],"mēn mèn":["闷"],"quē què":["阙"],"yán diàn":["阽"],"ā ē":["阿"],"bēi pō pí":["陂"],"yàn yǎn":["隁"],"yú yáo shù":["隃"],"lóng lōng":["隆"],"duì zhuì":["隊"],"suí duò":["隋"],"gāi qí ái":["隑"],"huī duò":["隓","隳"],"wěi kuí":["隗"],"lì dài":["隸"],"zhuī cuī wéi":["隹"],"hè hú":["隺","鶮"],"jùn juàn":["隽","雋"],"nán nàn nuó":["难"],"què qiāo qiǎo":["雀"],"guàn huán":["雚"],"guī xī":["雟"],"sè xí":["雭"],án:["雸"],"wù méng":["雺"],tèng:["霯"],"lù lòu":["露"],mái:["霾"],"jìng liàng":["靚"],"gé jí":["革"],bǎ:["靶"],"yāng yàng":["鞅"],"gé tà sǎ":["鞈"],"biān yìng":["鞕"],"qiào shāo":["鞘"],"juān xuān":["鞙"],"shàng zhǎng":["鞝"],"pí bǐng bì bēi":["鞞"],la:["鞡"],"xiè dié":["鞢"],ēng:["鞥"],"móu mù":["鞪"],"bì bǐng":["鞸"],"mèi wà":["韎"],rǒu:["韖"],"shè xiè":["韘"],"yùn wēn":["韫"],"dùn dú":["頓","顿"],duǐ:["頧"],luō:["頱"],"bīn pín":["頻"],yóng:["顒","颙","鰫"],mān:["顢","颟"],"jǐng gěng":["颈"],"jié xié jiá":["颉"],"kē ké":["颏"],"pín bīn":["频"],"chàn zhàn":["颤"],"fēng fěng":["風","风"],"biāo diū":["颩"],"bá fú":["颰"],"sāo sōu":["颾"],"liù liáo":["飂"],"shí sì yì":["食"],"yǎng juàn":["飬"],"zhù tǒu":["飳"],"yí sì":["飴"],"zuò zé zhā":["飵"],tiè:["飻","餮"],"xiǎng náng":["饟"],"táng xíng":["饧"],"gē le":["饹"],"chā zha":["馇"],"náng nǎng":["馕"],"yūn wò":["馧"],"zhī shì":["馶"],"xìn jìn":["馸"],"kuài jué":["駃"],zǎng:["駔","驵"],"tái dài":["駘"],"xún xuān":["駨"],"liáng láng":["駺"],piàn:["騗","騙","骗","魸"],"dài tái":["骀"],"sāo sǎo":["骚"],"gǔ gū":["骨"],"bèi mó":["骳"],"xiāo qiāo":["骹"],"bǎng pǎng":["髈"],"bó jué":["髉"],"bì pǒ":["髲"],"máo méng":["髳"],"kuò yuè":["髺"],"bā bà":["魞","鲃"],"jì cǐ":["鮆"],"bó bà":["鮊"],"zhǎ zhà":["鮓","鲊"],"chóu dài":["鮘"],"luò gé":["鮥"],"guī xié wā kuí":["鮭"],"xiān xiǎn":["鮮","鲜"],"pū bū":["鯆"],"yì sī":["鯣"],"bà bó":["鲌"],"guī xié":["鲑"],"sāi xǐ":["鳃"],"niǎo diǎo":["鳥"],"diāo zhāo":["鳭"],"gān hàn yàn":["鳱"],"fū guī":["鳺"],"jiān qiān zhān":["鳽"],"hé jiè":["鶡"],"piān biǎn":["鶣"],"chuàn zhì":["鶨"],"cāng qiāng":["鶬"],"sǔn xùn":["鶽"],"biāo páo":["麃"],"zhù cū":["麆"],"jūn qún":["麇","麕"],chi:["麶"],"mó me":["麼"],"mó me ma":["麽"],"mí mǒ":["麿"],"dàn shèn":["黮"],"zhěn yān":["黰"],"dǎn zhǎn":["黵"],"miǎn mǐn měng":["黾"],hōu:["齁"],nàng:["齉"],"qí jì zī zhāi":["齐"],"yín kěn yǎn":["龂"],"yín kěn":["龈"],"gōng wò":["龏"],"guī jūn qiū":["龜","龟"],"kuí wā":["䖯"],lōu:["䁖"],"ōu qū":["𫭟"],"lóu lǘ":["𦝼"],"gǎ gā gá":["嘎"],"wā guà":["坬"],"zhǐ dǐ":["茋"],"gǒng hóng":["硔"],"yáo xiào":["滧"]},T=new Bn;Object.keys(fn).forEach(n=>{const i=fn[n];for(let g of i)T.set(g,n)});const ng=["zh","ch","sh","z","c","s","b","p","m","f","d","t","n","l","g","k","h","j","q","x","r","y","w",""],ig=["j","q","x"],gg=["uān","uán","uǎn","uàn","uan","uē","ué","uě","uè","ue","ūn","ún","ǔn","ùn","un","ū","ú","ǔ","ù","u"],hg={uān:"üān",uán:"üán",uǎn:"üǎn",uàn:"üàn",uan:"üan",uē:"üē",ué:"üé",uě:"üě",uè:"üè",ue:"üe",ūn:"ǖn",ún:"ǘn",ǔn:"ǚn",ùn:"ǜn",un:"ün",ū:"ǖ",ú:"ǘ",ǔ:"ǚ",ù:"ǜ",u:"ü"},ug=["ia","ian","iang","iao","ie","iu","iong","ua","uai","uan","uang","ue","ui","uo","üan","üe","van","ve"],wn={一:"yì",二:"èr",三:"sān",四:"sì",五:"wǔ",六:"liù",七:"qī",八:"bā",九:"jiǔ",十:"shí",百:"bǎi",千:"qiān",万:"wàn",亿:"yì",单:"dān",两:"liǎng",双:"shuāng",多:"duō",几:"jǐ",十一:"shí yī",零一:"líng yī",第一:"dì yī",一十:"yī shí",一十一:"yī shí yī"},qn={重:"chóng",行:"háng",斗:"dǒu",更:"gēng"};function sg(){const n={零一:"líng yī","〇一":"líng yī",十一:"shí yī",一十:"yī shí",第一:"dì yī",一十一:"yī shí yī"};for(let i in wn)for(let g in qn){const u=`${i}${g}`,h=`${wn[i]} ${qn[g]}`;n[u]=h}return n}const pn=sg(),og=Object.keys(pn).map(n=>({zh:n,pinyin:pn[n],probability:1e-12,length:P(n),priority:p.Normal,dict:Symbol("rule")})),Ln={不:{bú:[4]},一:{yí:[4],yì:[1,2,3]}},tg={不:["的","而","之","后","也","还","地"],一:["的","而","之","后","也","还","是"]},lg=Object.keys(Ln);function cg(n,i,g){if(lg.indexOf(n)===-1)return R(n);if(i===g&&i&&R(i)!==i)return X(R(n));if(g&&!tg[n].includes(g)){const u=R(g);if(u!==g){const h=Q(u),s=Ln[n];for(let o in s)if(s[o].indexOf(Number(h))!==-1)return o}}}function zg(n,i){if(n==="了"&&(!i||!T.get(i)))return"liǎo"}function eg(n,i){if(n==="々")return!i||!T.get(i)?"tóng":T.get(i).split(" ")[0]}function kn(n,i,g){return eg(n,i)||zg(n,i)||cg(n,i,g)||R(n)}const un={南宫:"nán gōng",第五:"dì wǔ",万俟:"mò qí",司马:"sī mǎ",上官:"shàng guān",欧阳:"ōu yáng",夏侯:"xià hóu",诸葛:"zhū gě",闻人:"wén rén",东方:"dōng fāng",赫连:"hè lián",皇甫:"huáng fǔ",尉迟:"yù chí",公羊:"gōng yáng",澹台:"tán tái",公冶:"gōng yě",宗政:"zōng zhèng",濮阳:"pú yáng",淳于:"chún yú",太叔:"tài shū",申屠:"shēn tú",公孙:"gōng sūn",仲孙:"zhòng sūn",轩辕:"xuān yuán",令狐:"líng hú",钟离:"zhōng lí",宇文:"yǔ wén",长孙:"zhǎng sūn",慕容:"mù róng",鲜于:"xiān yú",闾丘:"lǘ qiū",司徒:"sī tú",司空:"sī kōng",亓官:"qí guān",司寇:"sī kòu",仉督:"zhǎng dū",子车:"zǐ jū",颛孙:"zhuān sūn",端木:"duān mù",巫马:"wū mǎ",公西:"gōng xī",漆雕:"qī diāo",乐正:"yuè zhèng",壤驷:"rǎng sì",公良:"gōng liáng",拓跋:"tuò bá",夹谷:"jiá gǔ",宰父:"zǎi fǔ",榖梁:"gǔ liáng",段干:"duàn gān",百里:"bǎi lǐ",东郭:"dōng guō",南门:"nán mén",呼延:"hū yán",羊舌:"yáng shé",梁丘:"liáng qiū",左丘:"zuǒ qiū",东门:"dōng mén",西门:"xī mén",句龙:"gōu lóng",毌丘:"guàn qiū",赵:"zhào",钱:"qián",孙:"sūn",李:"lǐ",周:"zhōu",吴:"wú",郑:"zhèng",王:"wáng",冯:"féng",陈:"chén",褚:"chǔ",卫:"wèi",蒋:"jiǎng",沈:"shěn",韩:"hán",杨:"yáng",朱:"zhū",秦:"qín",尤:"yóu",许:"xǔ",何:"hé",吕:"lǚ",施:"shī",张:"zhāng",孔:"kǒng",曹:"cáo",严:"yán",华:"huà",金:"jīn",魏:"wèi",陶:"táo",姜:"jiāng",戚:"qī",谢:"xiè",邹:"zōu",喻:"yù",柏:"bǎi",水:"shuǐ",窦:"dòu",章:"zhāng",云:"yún",苏:"sū",潘:"pān",葛:"gě",奚:"xī",范:"fàn",彭:"péng",郎:"láng",鲁:"lǔ",韦:"wéi",昌:"chāng",马:"mǎ",苗:"miáo",凤:"fèng",花:"huā",方:"fāng",俞:"yú",任:"rén",袁:"yuán",柳:"liǔ",酆:"fēng",鲍:"bào",史:"shǐ",唐:"táng",费:"fèi",廉:"lián",岑:"cén",薛:"xuē",雷:"léi",贺:"hè",倪:"ní",汤:"tāng",滕:"téng",殷:"yīn",罗:"luó",毕:"bì",郝:"hǎo",邬:"wū",安:"ān",常:"cháng",乐:"yuè",于:"yú",时:"shí",傅:"fù",皮:"pí",卞:"biàn",齐:"qí",康:"kāng",伍:"wǔ",余:"yú",元:"yuán",卜:"bǔ",顾:"gù",孟:"mèng",平:"píng",黄:"huáng",和:"hé",穆:"mù",萧:"xiāo",尹:"yǐn",姚:"yáo",邵:"shào",湛:"zhàn",汪:"wāng",祁:"qí",毛:"máo",禹:"yǔ",狄:"dí",米:"mǐ",贝:"bèi",明:"míng",臧:"zāng",计:"jì",伏:"fú",成:"chéng",戴:"dài",谈:"tán",宋:"sòng",茅:"máo",庞:"páng",熊:"xióng",纪:"jǐ",舒:"shū",屈:"qū",项:"xiàng",祝:"zhù",董:"dǒng",梁:"liáng",杜:"dù",阮:"ruǎn",蓝:"lán",闵:"mǐn",席:"xí",季:"jì",麻:"má",强:"qiáng",贾:"jiǎ",路:"lù",娄:"lóu",危:"wēi",江:"jiāng",童:"tóng",颜:"yán",郭:"guō",梅:"méi",盛:"shèng",林:"lín",刁:"diāo",钟:"zhōng",徐:"xú",邱:"qiū",骆:"luò",高:"gāo",夏:"xià",蔡:"cài",田:"tián",樊:"fán",胡:"hú",凌:"líng",霍:"huò",虞:"yú",万:"wàn",支:"zhī",柯:"kē",昝:"zǎn",管:"guǎn",卢:"lú",莫:"mò",经:"jīng",房:"fáng",裘:"qiú",缪:"miào",干:"gān",解:"xiè",应:"yīng",宗:"zōng",丁:"dīng",宣:"xuān",贲:"bēn",邓:"dèng",郁:"yù",单:"shàn",杭:"háng",洪:"hóng",包:"bāo",诸:"zhū",左:"zuǒ",石:"shí",崔:"cuī",吉:"jí",钮:"niǔ",龚:"gōng",程:"chéng",嵇:"jī",邢:"xíng",滑:"huá",裴:"péi",陆:"lù",荣:"róng",翁:"wēng",荀:"xún",羊:"yáng",於:"yū",惠:"huì",甄:"zhēn",曲:"qū",家:"jiā",封:"fēng",芮:"ruì",羿:"yì",储:"chǔ",靳:"jìn",汲:"jí",邴:"bǐng",糜:"mí",松:"sōng",井:"jǐng",段:"duàn",富:"fù",巫:"wū",乌:"wū",焦:"jiāo",巴:"bā",弓:"gōng",牧:"mù",隗:"wěi",山:"shān",谷:"gǔ",车:"chē",侯:"hóu",宓:"mì",蓬:"péng",全:"quán",郗:"xī",班:"bān",仰:"yǎng",秋:"qiū",仲:"zhòng",伊:"yī",宫:"gōng",宁:"nìng",仇:"qiú",栾:"luán",暴:"bào",甘:"gān",钭:"tǒu",厉:"lì",戎:"róng",祖:"zǔ",武:"wǔ",符:"fú",刘:"liú",景:"jǐng",詹:"zhān",束:"shù",龙:"lóng",叶:"yè",幸:"xìng",司:"sī",韶:"sháo",郜:"gào",黎:"lí",蓟:"jì",薄:"bó",印:"yìn",宿:"sù",白:"bái",怀:"huái",蒲:"pú",邰:"tái",从:"cóng",鄂:"è",索:"suǒ",咸:"xián",籍:"jí",赖:"lài",卓:"zhuó",蔺:"lìn",屠:"tú",蒙:"méng",池:"chí",乔:"qiáo",阴:"yīn",鬱:"yù",胥:"xū",能:"nài",苍:"cāng",双:"shuāng",闻:"wén",莘:"shēn",党:"dǎng",翟:"zhái",谭:"tán",贡:"gòng",劳:"láo",逄:"páng",姬:"jī",申:"shēn",扶:"fú",堵:"dǔ",冉:"rǎn",宰:"zǎi",郦:"lì",雍:"yōng",郤:"xì",璩:"qú",桑:"sāng",桂:"guì",濮:"pú",牛:"niú",寿:"shòu",通:"tōng",边:"biān",扈:"hù",燕:"yān",冀:"jì",郏:"jiá",浦:"pǔ",尚:"shàng",农:"nóng",温:"wēn",别:"bié",庄:"zhuāng",晏:"yàn",柴:"chái",瞿:"qú",阎:"yán",充:"chōng",慕:"mù",连:"lián",茹:"rú",习:"xí",宦:"huàn",艾:"ài",鱼:"yú",容:"róng",向:"xiàng",古:"gǔ",易:"yì",慎:"shèn",戈:"gē",廖:"liào",庾:"yǔ",终:"zhōng",暨:"jì",居:"jū",衡:"héng",步:"bù",都:"dū",耿:"gěng",满:"mǎn",弘:"hóng",匡:"kuāng",国:"guó",文:"wén",寇:"kòu",广:"guǎng",禄:"lù",阙:"quē",东:"dōng",欧:"ōu",殳:"shū",沃:"wò",利:"lì",蔚:"wèi",越:"yuè",夔:"kuí",隆:"lóng",师:"shī",巩:"gǒng",厍:"shè",聂:"niè",晁:"cháo",勾:"gōu",敖:"áo",融:"róng",冷:"lěng",訾:"zī",辛:"xīn",阚:"kàn",那:"nā",简:"jiǎn",饶:"ráo",空:"kōng",曾:"zēng",母:"mǔ",沙:"shā",乜:"niè",养:"yǎng",鞠:"jū",须:"xū",丰:"fēng",巢:"cháo",关:"guān",蒯:"kuǎi",相:"xiàng",查:"zhā",后:"hòu",荆:"jīng",红:"hóng",游:"yóu",竺:"zhú",权:"quán",逯:"lù",盖:"gě",益:"yì",桓:"huán",公:"gōng",牟:"móu",哈:"hǎ",言:"yán",福:"fú",肖:"xiāo",区:"ōu",覃:"qín",朴:"piáo",繁:"pó",员:"yùn",句:"gōu",要:"yāo",过:"guō",钻:"zuān",谌:"chén",折:"shé",召:"shào",郄:"qiè",撒:"sǎ",甯:"nìng",六:"lù",啜:"chuài",行:"xíng"},yg=Object.keys(un).map(n=>({zh:n,pinyin:un[n],probability:1+P(n),length:P(n),priority:p.Surname,dict:Symbol("surname")})),vn={这个:"zhè ge",成为:"chéng wéi",认为:"rèn wéi",作为:"zuò wéi",部分:"bù fen",要求:"yāo qiú",应该:"yīng gāi",增长:"zēng zhǎng",提供:"tí gōng",觉得:"jué de",任务:"rèn wu",那个:"nà ge",称为:"chēng wéi",为主:"wéi zhǔ",了解:"liǎo jiě",处理:"chǔ lǐ",皇上:"huáng shang",只要:"zhǐ yào",大量:"dà liàng",力量:"lì liàng",几乎:"jī hū",干部:"gàn bù",目的:"mù dì",行为:"xíng wéi",只见:"zhǐ jiàn",认识:"rèn shi",市长:"shì zhǎng",师父:"shī fu",调查:"diào chá",重新:"chóng xīn",分为:"fēn wéi",知识:"zhī shi",导弹:"dǎo dàn",质量:"zhì liàng",行款:"háng kuǎn",行列:"háng liè",行话:"háng huà",行业:"háng yè",隔行:"gé háng",在行:"zài háng",行家:"háng jia",内行:"nèi háng",外行:"wài háng",同行:"tóng háng",本行:"běn háng",行伍:"háng wǔ",洋行:"yáng háng",银行:"yín háng",商行:"shāng háng",支行:"zhī háng",总行:"zǒng háng",行情:"háng qíng",懂行:"dǒng háng",行规:"háng guī",行当:"háng dang",行货:"háng huò",太行:"tài háng",入行:"rù háng",中行:"zhōng háng",农行:"nóng háng",工行:"gōng háng",建行:"jiàn háng",各行:"gè háng",行号:"háng hào",行高:"háng gāo",行首:"háng shǒu",行尾:"háng wěi",行末:"háng mò",行长:"háng cháng",行距:"háng jù",换行:"huàn háng",行会:"háng huì",行辈:"háng bèi",行道:"háng dào",道行:"dào heng",参与:"cān yù",充分:"chōng fèn",尽管:"jǐn guǎn",生长:"shēng zhǎng",数量:"shù liàng",应当:"yīng dāng",院长:"yuàn zhǎng",强调:"qiáng diào",只能:"zhǐ néng",音乐:"yīn yuè",以为:"yǐ wéi",处于:"chǔ yú",部长:"bù zhǎng",蒙古:"měng gǔ",只有:"zhǐ yǒu",适当:"shì dàng",只好:"zhǐ hǎo",成长:"chéng zhǎng",高兴:"gāo xìng",不了:"bù liǎo",产量:"chǎn liàng",胖子:"pàng zi",显得:"xiǎn de",只是:"zhǐ shì",似的:"shì de",率领:"shuài lǐng",改为:"gǎi wéi",不禁:"bù jīn",成分:"chéng fèn",答应:"dā ying",少年:"shào nián",兴趣:"xìng qù",太监:"tài jian",休息:"xiū xi",校长:"xiào zhǎng",更新:"gēng xīn",合同:"hé tong",喝道:"hè dào",重庆:"chóng qìng",重建:"chóng jiàn",使得:"shǐ de",审查:"shěn chá",累计:"lěi jì",给予:"jǐ yǔ",极为:"jí wéi",冠军:"guàn jūn",仿佛:"fǎng fú",头发:"tóu fa",投降:"tóu xiáng",家长:"jiā zhǎng",仔细:"zǐ xì",要是:"yào shi",将领:"jiàng lǐng",含量:"hán liàng",更为:"gèng wéi",积累:"jī lěi",地处:"dì chǔ",县长:"xiàn zhǎng",少女:"shào nǚ",路上:"lù shang",只怕:"zhǐ pà",能量:"néng liàng",储量:"chǔ liàng",供应:"gōng yìng",挑战:"tiǎo zhàn",西藏:"xī zàng",记得:"jì de",总量:"zǒng liàng",当真:"dàng zhēn",将士:"jiàng shì",差别:"chā bié",较为:"jiào wéi",长老:"zhǎng lǎo",大夫:"dài fu",差异:"chā yì",懂得:"dǒng de",尽量:"jǐn liàng",模样:"mú yàng",的确:"dí què",为首:"wéi shǒu",便宜:"pián yi",更名:"gēng míng",石头:"shí tou",州长:"zhōu zhǎng",为止:"wéi zhǐ",漂亮:"piào liang",炮弹:"pào dàn",藏族:"zàng zú",角色:"jué sè",当作:"dàng zuò",尽快:"jǐn kuài",人为:"rén wéi",重复:"chóng fù",胡同:"hú tòng",差距:"chā jù",弟兄:"dì xiong",大将:"dà jiàng",睡觉:"shuì jiào",一觉:"yí jiào",团长:"tuán zhǎng",队长:"duì zhǎng",区长:"qū zhǎng",难得:"nán dé",丫头:"yā tou",会长:"huì zhǎng",弟弟:"dì di",王爷:"wáng ye",重量:"zhòng liàng",誉为:"yù wéi",家伙:"jiā huo",华山:"huà shān",椅子:"yǐ zi",流量:"liú liàng",长大:"zhǎng dà",勉强:"miǎn qiǎng",会计:"kuài jì",过分:"guò fèn",济南:"jǐ nán",调动:"diào dòng",燕京:"yān jīng",少将:"shào jiàng",中毒:"zhòng dú",晓得:"xiǎo de",变更:"biàn gēng",打更:"dǎ gēng",认得:"rèn de",苹果:"píng guǒ",念头:"niàn tou",挣扎:"zhēng zhá",三藏:"sān zàng",剥削:"bō xuē",丞相:"chéng xiàng",少量:"shǎo liàng",寻思:"xún si",夺得:"duó dé",干线:"gàn xiàn",呼吁:"hū yù",处罚:"chǔ fá",长官:"zhǎng guān",柏林:"bó lín",亲戚:"qīn qi",身分:"shēn fèn",胳膊:"gē bo",着手:"zhuó shǒu",炸弹:"zhà dàn",咳嗽:"ké sou",叶子:"yè zi",外长:"wài zhǎng",供给:"gōng jǐ",师长:"shī zhǎng",变量:"biàn liàng",应有:"yīng yǒu",下载:"xià zài",乐器:"yuè qì",间接:"jiàn jiē",底下:"dǐ xià",打扮:"dǎ bàn",子弹:"zǐ dàn",弹药:"dàn yào",热量:"rè liàng",削弱:"xuē ruò",骨干:"gǔ gàn",容量:"róng liàng",模糊:"mó hu",转动:"zhuàn dòng",称呼:"chēng hu",科长:"kē zhǎng",处置:"chǔ zhì",着重:"zhuó zhòng",着急:"zháo jí",强迫:"qiǎng pò",庭长:"tíng zhǎng",首相:"shǒu xiàng",喇嘛:"lǎ ma",镇长:"zhèn zhǎng",只管:"zhǐ guǎn",重重:"chóng chóng",免得:"miǎn de",着实:"zhuó shí",度假:"dù jià",真相:"zhēn xiàng",相貌:"xiàng mào",处分:"chǔ fèn",委屈:"wěi qu",为期:"wéi qī",伯伯:"bó bo",伯子:"bǎi zi",圈子:"quān zi",见识:"jiàn shi",笼罩:"lǒng zhào",与会:"yù huì",都督:"dū du",都市:"dū shì",成都:"chéng dū",首都:"shǒu dū",帝都:"dì dū",王都:"wáng dū",东都:"dōng dū",都护:"dū hù",都城:"dū chéng",建都:"jiàn dū",迁都:"qiān dū",故都:"gù dū",定都:"dìng dū",中都:"zhōng dū",六安:"lù ān",宰相:"zǎi xiàng",较量:"jiào liàng",对称:"duì chèn",总长:"zǒng zhǎng",相公:"xiàng gong",空白:"kòng bái",打量:"dǎ liang",水分:"shuǐ fèn",舌头:"shé tou",没收:"mò shōu",行李:"xíng li",判处:"pàn chǔ",散文:"sǎn wén",处境:"chǔ jìng",孙子:"sūn zi",拳头:"quán tou",打发:"dǎ fā",组长:"zǔ zhǎng",骨头:"gǔ tou",宁可:"nìng kě",更换:"gēng huàn",薄弱:"bó ruò",还原:"huán yuán",重修:"chóng xiū",重来:"chóng lái",只顾:"zhǐ gù",爱好:"ài hào",馒头:"mán tou",军长:"jūn zhǎng",首长:"shǒu zhǎng",厂长:"chǎng zhǎng",司长:"sī zhǎng",长子:"zhǎng zǐ",强劲:"qiáng jìng",恰当:"qià dàng",头儿:"tóu er",站长:"zhàn zhǎng",折腾:"zhē teng",相处:"xiāng chǔ",统率:"tǒng shuài",中将:"zhōng jiàng",命中:"mìng zhòng",名将:"míng jiàng",木头:"mù tou",动弹:"dòng tan",地壳:"dì qiào",干活:"gàn huó",少爷:"shào ye",水量:"shuǐ liàng",补给:"bǔ jǐ",尾巴:"wěi ba",来得:"lái de",好奇:"hào qí",钥匙:"yào shi",当做:"dàng zuò",沉着:"chén zhuó",哑巴:"yǎ ba",车子:"chē zi",上将:"shàng jiàng",恶心:"ě xīn",担子:"dàn zi",应届:"yīng jiè",主角:"zhǔ jué",运转:"yùn zhuǎn",兄长:"xiōng zhǎng",格式:"gé shì",正月:"zhēng yuè",营长:"yíng zhǎng",当成:"dàng chéng",女婿:"nǚ xu",咽喉:"yān hóu",重阳:"chóng yáng",化为:"huà wéi",吐蕃:"tǔ bō",钻进:"zuān jìn",乐队:"yuè duì",亮相:"liàng xiàng",被子:"bèi zi",舍得:"shě de",杉木:"shā mù",击中:"jī zhòng",排长:"pái zhǎng",假期:"jià qī",分量:"fèn liàng",数次:"shù cì",提防:"dī fáng",吆喝:"yāo he",查处:"chá chǔ",量子:"liàng zǐ",里头:"lǐ tou",调研:"diào yán",伺候:"cì hou",重申:"chóng shēn",枕头:"zhěn tou",拚命:"pīn mìng",社长:"shè zhǎng",归还:"guī huán",批量:"pī liàng",畜牧:"xù mù",点着:"diǎn zháo",甚为:"shèn wéi",小将:"xiǎo jiàng",着眼:"zhuó yǎn",处死:"chǔ sǐ",厌恶:"yàn wù",鼓乐:"gǔ yuè",树干:"shù gàn",秘鲁:"bì lǔ",大方:"dà fāng",外头:"wài tou",班长:"bān zhǎng",星宿:"xīng xiù",宁愿:"nìng yuàn",钦差:"qīn chāi",为数:"wéi shù",勾当:"gòu dàng",削减:"xuē jiǎn",间谍:"jiàn dié",埋怨:"mán yuàn",结实:"jiē shi",计量:"jì liáng",淹没:"yān mò",村长:"cūn zhǎng",连长:"lián zhǎng",自给:"zì jǐ",武将:"wǔ jiàng",温差:"wēn chā",直奔:"zhí bèn",供求:"gōng qiú",剂量:"jì liàng",道长:"dào zhǎng",泄露:"xiè lòu",王八:"wáng ba",切割:"qiē gē",间隔:"jiàn gé",一晃:"yì huǎng",长假:"cháng jià",令狐:"líng hú",为害:"wéi hài",句子:"jù zi",偿还:"cháng huán",疙瘩:"gē da",燕山:"yān shān",堵塞:"dǔ sè",夺冠:"duó guàn",扎实:"zhā shi",电荷:"diàn hè",看守:"kān shǒu",复辟:"fù bì",郁闷:"yù mèn",尽早:"jǐn zǎo",切断:"qiē duàn",指头:"zhǐ tou",为生:"wéi shēng",畜生:"chù sheng",切除:"qiē chú",着力:"zhuó lì",着想:"zhuó xiǎng",级差:"jí chā",投奔:"tóu bèn",棍子:"gùn zi",含糊:"hán hu",少妇:"shào fù",兴致:"xìng zhì",纳闷:"nà mèn",干流:"gàn liú",卷起:"juǎn qǐ",扇子:"shàn zi",更改:"gēng gǎi",笼络:"lǒng luò",喇叭:"lǎ ba",载荷:"zài hè",妥当:"tuǒ dàng",为难:"wéi nán",着陆:"zhuó lù",燕子:"yàn zi",干吗:"gàn má",白发:"bái fà",总得:"zǒng děi",夹击:"jiā jī",曝光:"bào guāng",曲调:"qǔ diào",相机:"xiàng jī",叫化:"jiào huà",角逐:"jué zhú",啊哟:"ā yō",载重:"zài zhòng",长辈:"zhǎng bèi",出差:"chū chāi",垛口:"duǒ kǒu",撇开:"piē kāi",厅长:"tīng zhǎng",组分:"zǔ fèn",误差:"wù chā",家当:"jiā dàng",传记:"zhuàn jì",个子:"gè zi",铺设:"pū shè",干事:"gàn shì",杆菌:"gǎn jūn",定量:"dìng liàng",运载:"yùn zài",会儿:"huì er",酋长:"qiú zhǎng",重返:"chóng fǎn",差额:"chā é",露面:"lòu miàn",钻研:"zuān yán",大城:"dài chéng",上当:"shàng dàng",销量:"xiāo liàng",作坊:"zuō fang",照相:"zhào xiàng",哎呀:"āi yā",调集:"diào jí",看中:"kàn zhòng",议长:"yì zhǎng",风筝:"fēng zheng",辟邪:"bì xié",空隙:"kòng xì",更迭:"gēng dié",偏差:"piān chā",声调:"shēng diào",适量:"shì liàng",屯子:"tún zi",无量:"wú liàng",空地:"kòng dì",调度:"diào dù",散射:"sǎn shè",创伤:"chuāng shāng",海参:"hǎi shēn",满载:"mǎn zài",重叠:"chóng dié",落差:"luò chā",单调:"dān diào",老将:"lǎo jiàng",人参:"rén shēn",间断:"jiàn duàn",重现:"chóng xiàn",夹杂:"jiā zá",调用:"diào yòng",萝卜:"luó bo",附着:"fù zhuó",应声:"yìng shēng",主将:"zhǔ jiàng",罪过:"zuì guo",咀嚼:"jǔ jué",为政:"wéi zhèng",过量:"guò liàng",乐曲:"yuè qǔ",负荷:"fù hè",枪弹:"qiāng dàn",悄然:"qiǎo rán",处方:"chǔ fāng",悄声:"qiǎo shēng",曲子:"qǔ zi",情调:"qíng diào",挑衅:"tiǎo xìn",代为:"dài wéi",了结:"liǎo jié",打中:"dǎ zhòng",酒吧:"jiǔ bā",懒得:"lǎn de",增量:"zēng liàng",衣着:"yī zhuó",部将:"bù jiàng",要塞:"yào sài",茶几:"chá jī",杠杆:"gàng gǎn",出没:"chū mò",鲜有:"xiǎn yǒu",间隙:"jiàn xì",重担:"zhòng dàn",重演:"chóng yǎn",重试:"chóng shì",应酬:"yìng chou",只当:"zhǐ dāng",毋宁:"wú nìng",包扎:"bāo zā",前头:"qián tou",卷烟:"juǎn yān",非得:"fēi děi",弹道:"dàn dào",杆子:"gān zi",门将:"mén jiàng",后头:"hòu tou",喝彩:"hè cǎi",暖和:"nuǎn huo",累积:"lěi jī",调遣:"diào qiǎn",倔强:"jué jiàng",宝藏:"bǎo zàng",丧事:"sāng shì",约莫:"yuē mo",纤夫:"qiàn fū",更替:"gēng tì",装载:"zhuāng zài",背包:"bēi bāo",帖子:"tiě zi",松散:"sōng sǎn",呼喝:"hū hè",可恶:"kě wù",自转:"zì zhuàn",供电:"gōng diàn",反省:"fǎn xǐng",坦率:"tǎn shuài",苏打:"sū dá",本分:"běn fèn",落得:"luò de",鄙薄:"bǐ bó",相间:"xiāng jiàn",单薄:"dān bó",混蛋:"hún dàn",贞观:"zhēn guān",附和:"fù hè",能耐:"néng nài",吓唬:"xià hu",未了:"wèi liǎo",引着:"yǐn zháo",抽调:"chōu diào",沙子:"shā zi",席卷:"xí juǎn",标的:"biāo dì",别扭:"biè niu",思量:"sī liang",喝采:"hè cǎi",论语:"lún yǔ",盖子:"gài zi",分外:"fèn wài",弄堂:"lòng táng",乐舞:"yuè wǔ",雨量:"yǔ liàng",毛发:"máo fà",差遣:"chāi qiǎn",背负:"bēi fù",转速:"zhuàn sù",声乐:"shēng yuè",夹攻:"jiā gōng",供水:"gōng shuǐ",主干:"zhǔ gàn",惩处:"chéng chǔ",长相:"zhǎng xiàng",公差:"gōng chāi",榴弹:"liú dàn",省得:"shěng de",条子:"tiáo zi",重围:"chóng wéi",阻塞:"zǔ sè",劲风:"jìng fēng",纠葛:"jiū gé",颠簸:"diān bǒ",点中:"diǎn zhòng",重创:"zhòng chuāng",姥姥:"lǎo lao",迷糊:"mí hu",公家:"gōng jia",几率:"jī lǜ",苦闷:"kǔ mèn",度量:"dù liàng",差错:"chā cuò",暑假:"shǔ jià",参差:"cēn cī",搭载:"dā zài",助长:"zhù zhǎng",相称:"xiāng chèn",红晕:"hóng yùn",舍命:"shě mìng",喜好:"xǐ hào",列传:"liè zhuàn",劲敌:"jìng dí",蛤蟆:"há ma",请假:"qǐng jià",钉子:"dīng zi",沉没:"chén mò",高丽:"gāo lí",休假:"xiū jià",无为:"wú wéi",巴结:"bā jie",了得:"liǎo dé",变相:"biàn xiàng",核弹:"hé dàn",亲家:"qìng jia",承载:"chéng zài",喝问:"hè wèn",还击:"huán jī",交还:"jiāo huán",将令:"jiàng lìng",单于:"chán yú",空缺:"kòng quē",绿林:"lù lín",胆量:"dǎn liàng",执着:"zhí zhuó",低调:"dī diào",闭塞:"bì sè",轻薄:"qīng bó",得当:"dé dàng",占卜:"zhān bǔ",扫帚:"sào zhou",龟兹:"qiū cí",年长:"nián zhǎng",外传:"wài zhuàn",头子:"tóu zi",裁缝:"cái feng",礼乐:"lǐ yuè",血泊:"xuè pō",散乱:"sǎn luàn",动量:"dòng liàng",倒腾:"dǎo teng",取舍:"qǔ shě",咱家:"zán jiā",长发:"cháng fà",爪哇:"zhǎo wā",弹壳:"dàn ké",省悟:"xǐng wù",嚷嚷:"rāng rang",连累:"lián lèi",应得:"yīng dé",族长:"zú zhǎng",柜子:"guì zi",擂鼓:"léi gǔ",眩晕:"xuàn yùn",调配:"tiáo pèi",躯干:"qū gàn",差役:"chāi yì",坎坷:"kǎn kě",少儿:"shào ér",乐团:"yuè tuán",养分:"yǎng fèn",退还:"tuì huán",格调:"gé diào",语调:"yǔ diào",音调:"yīn diào",乐府:"yuè fǔ",古朴:"gǔ pǔ",打点:"dǎ diǎn",差使:"chāi shǐ",匀称:"yún chèn",瘦削:"shòu xuē",膏药:"gāo yao",吞没:"tūn mò",调任:"diào rèn",散居:"sǎn jū",上头:"shàng tóu",风靡:"fēng mǐ",放假:"fàng jià",估量:"gū liang",失当:"shī dàng",中弹:"zhòng dàn",妄为:"wàng wéi",长者:"zhǎng zhě",起哄:"qǐ hòng",末了:"mò liǎo",相声:"xiàng sheng",校正:"jiào zhèng",劝降:"quàn xiáng",矢量:"shǐ liàng",沉闷:"chén mèn",给与:"jǐ yǔ",解法:"jiě fǎ",塞外:"sài wài",将校:"jiàng xiào",嗜好:"shì hào",没落:"mò luò",朴刀:"pō dāo",片子:"piān zi",切削:"qiē xiāo",弹丸:"dàn wán",稀薄:"xī bó",亏得:"kuī dé",间歇:"jiàn xiē",翘首:"qiáo shǒu",色调:"sè diào",处决:"chǔ jué",表率:"biǎo shuài",尺子:"chǐ zi",招降:"zhāo xiáng",称职:"chèn zhí",斗篷:"dǒu peng",铺子:"pù zi",底子:"dǐ zi",负载:"fù zài",干警:"gàn jǐng",倒数:"dào shǔ",将官:"jiàng guān",锄头:"chú tou",归降:"guī xiáng",疟疾:"nüè ji",唠叨:"láo dao",限量:"xiàn liàng",屏息:"bǐng xī",重逢:"chóng féng",器乐:"qì yuè",氢弹:"qīng dàn",脖颈:"bó gěng",妃子:"fēi zi",处事:"chǔ shì",参量:"cān liàng",轻率:"qīng shuài",缥缈:"piāo miǎo",中奖:"zhòng jiǎng",才干:"cái gàn",施舍:"shī shě",卷子:"juàn zi",游说:"yóu shuì",巷子:"xiàng zi",膀胱:"páng guāng",切勿:"qiè wù",看管:"kān guǎn",风头:"fēng tou",精干:"jīng gàn",高差:"gāo chā",恐吓:"kǒng hè",扁担:"biǎn dàn",给养:"jǐ yǎng",格子:"gé zi",供需:"gōng xū",反差:"fǎn chā",飞弹:"fēi dàn",微薄:"wēi bó",发型:"fà xíng",即兴:"jí xìng",攒动:"cuán dòng",间或:"jiàn huò",浅薄:"qiǎn bó",乐章:"yuè zhāng",顺差:"shùn chā",调子:"diào zi",相位:"xiàng wèi",转子:"zhuàn zǐ",劲旅:"jìng lǚ",咔嚓:"kā chā",了事:"liǎo shì",转悠:"zhuàn you",当铺:"dàng pù",爪子:"zhuǎ zi",单子:"dān zi",好战:"hào zhàn",燕麦:"yàn mài",只许:"zhǐ xǔ",干练:"gàn liàn",女将:"nǚ jiàng",酒量:"jiǔ liàng",划船:"huá chuán",伎俩:"jì liǎng",挑拨:"tiǎo bō",少校:"shào xiào",着落:"zhuó luò",憎恶:"zēng wù",刻薄:"kè bó",要挟:"yāo xié",用处:"yòng chu",还手:"huán shǒu",模具:"mú jù",执著:"zhí zhuó",喝令:"hè lìng",保长:"bǎo zhǎng",吸着:"xī zhe",症结:"zhēng jié",公转:"gōng zhuàn",校勘:"jiào kān",重提:"chóng tí",扫兴:"sǎo xìng",铺盖:"pū gài",长史:"zhǎng shǐ",差价:"chā jià",压根:"yà gēn",怔住:"zhèng zhù",应允:"yīng yǔn",切入:"qiē rù",战将:"zhàn jiàng",年少:"nián shào",舍身:"shě shēn",执拗:"zhí niù",处世:"chǔ shì",中风:"zhòng fēng",等量:"děng liàng",放量:"fàng liàng",腔调:"qiāng diào",老少:"lǎo shào",没入:"mò rù",瓜葛:"guā gé",将帅:"jiàng shuài",车载:"chē zài",窝囊:"wō nang",长进:"zhǎng jìn",可汗:"kè hán",并州:"bīng zhōu",供销:"gōng xiāo",切片:"qiē piàn",差事:"chāi shì",知会:"zhī hui",鹰爪:"yīng zhǎo",处女:"chǔ nǚ",切磋:"qiē cuō",日头:"rì tou",押解:"yā jiè",滋长:"zī zhǎng",道观:"dào guàn",脚色:"jué sè",当量:"dāng liàng",婆家:"pó jia",缘分:"yuán fèn",空闲:"kòng xián",好色:"hào sè",怒喝:"nù hè",笼统:"lǒng tǒng",边塞:"biān sài",何曾:"hé céng",重合:"chóng hé",零散:"líng sǎn",轰隆:"hōng lōng",化子:"huà zi",内蒙:"nèi měng",数落:"shǔ luò",逆差:"nì chā",牟利:"móu lì",栅栏:"zhà lan",中标:"zhòng biāo",调档:"diào dàng",佝偻:"gōu lóu",场子:"chǎng zi",甲壳:"jiǎ qiào",重温:"chóng wēn",炮制:"páo zhì",返还:"fǎn huán",自传:"zì zhuàn",高调:"gāo diào",殷红:"yān hóng",固着:"gù zhuó",强求:"qiǎng qiú",本相:"běn xiàng",骄横:"jiāo hèng",草率:"cǎo shuài",气闷:"qì mèn",着色:"zhuó sè",宁肯:"nìng kěn",兴头:"xìng tou",拘泥:"jū nì",夹角:"jiā jiǎo",发髻:"fà jì",猛将:"měng jiàng",约摸:"yuē mo",拖累:"tuō lěi",呢绒:"ní róng",钻探:"zuān tàn",夹层:"jiā céng",落魄:"luò pò",巷道:"hàng dào",运量:"yùn liàng",解闷:"jiě mèn",空儿:"kòng er",估摸:"gū mo",好客:"hào kè",钻孔:"zuān kǒng",糊弄:"hù nòng",荥阳:"xíng yáng",烦闷:"fán mèn",仓卒:"cāng cù",分叉:"fēn chà",厂子:"chǎng zi",小调:"xiǎo diào",少阳:"shào yáng",受降:"shòu xiáng",染坊:"rǎn fáng",胳臂:"gē bei",将门:"jiàng mén",模板:"mú bǎn",配给:"pèi jǐ",为伍:"wéi wǔ",跟头:"gēn tou",划算:"huá suàn",累赘:"léi zhui",哄笑:"hōng xiào",晕眩:"yūn xuàn",干掉:"gàn diào",缝制:"féng zhì",难处:"nán chù",着意:"zhuó yì",蛮横:"mán hèng",奇数:"jī shù",短发:"duǎn fà",生还:"shēng huán",还清:"huán qīng",看护:"kān hù",直率:"zhí shuài",奏乐:"zòu yuè",载客:"zài kè",专横:"zhuān hèng",湮没:"yān mò",空格:"kòng gé",铺垫:"pū diàn",良将:"liáng jiàng",哗啦:"huā lā",散漫:"sǎn màn",脱发:"tuō fà",送还:"sòng huán",埋没:"mái mò",累及:"lěi jí",薄雾:"bó wù",调离:"diào lí",舌苔:"shé tāi",机长:"jī zhǎng",栓塞:"shuān sè",配角:"pèi jué",切口:"qiē kǒu",创口:"chuāng kǒu",哈欠:"hā qian",实弹:"shí dàn",铺平:"pū píng",哈达:"hǎ dá",懒散:"lǎn sǎn",实干:"shí gàn",填空:"tián kòng",刁钻:"diāo zuān",乐师:"yuè shī",量变:"liàng biàn",诱降:"yòu xiáng",搪塞:"táng sè",征调:"zhēng diào",夹道:"jiā dào",干咳:"gān ké",止咳:"zhǐ ké",乐工:"yuè gōng",划过:"huá guò",着火:"zháo huǒ",更正:"gēng zhèng",给付:"jǐ fù",空子:"kòng zi",哪吒:"né zhā",正着:"zhèng zháo",刷子:"shuā zi",丧葬:"sāng zàng",夹带:"jiā dài",安分:"ān fèn",中意:"zhòng yì",长孙:"zhǎng sūn",校订:"jiào dìng",卷曲:"juǎn qū",载运:"zài yùn",投弹:"tóu dàn",柞蚕:"zuò cán",份量:"fèn liàng",调换:"diào huàn",了然:"liǎo rán",咧嘴:"liě zuǐ",典当:"diǎn dàng",寒假:"hán jià",长兄:"zhǎng xiōng",给水:"jǐ shuǐ",须发:"xū fà",枝干:"zhī gàn",属相:"shǔ xiàng",哄抢:"hōng qiǎng",刻划:"kè huà",塞子:"sāi zi",单干:"dān gàn",还乡:"huán xiāng",兆头:"zhào tou",寺观:"sì guàn",督率:"dū shuài",啊哈:"ā ha",割舍:"gē shě",抹布:"mā bù",好恶:"hào wù",下处:"xià chǔ",消长:"xiāo zhǎng",离间:"lí jiàn",准头:"zhǔn tou",校对:"jiào duì",什物:"shí wù",番禺:"pān yú",佛爷:"fó ye",吗啡:"mǎ fēi",盐分:"yán fèn",虎将:"hǔ jiàng",薄荷:"bò he",独处:"dú chǔ",空位:"kòng wèi",铺路:"pū lù",乌拉:"wū lā",调回:"diào huí",来头:"lái tou",闲散:"xián sǎn",胶卷:"jiāo juǎn",冒失:"mào shi",干劲:"gàn jìn",弦乐:"xián yuè",相国:"xiàng guó",丹参:"dān shēn",助兴:"zhù xìng",铺开:"pū kāi",次长:"cì zhǎng",发卡:"fà qiǎ",拮据:"jié jū",刹车:"shā chē",生发:"shēng fà",重播:"chóng bō",缝合:"féng hé",音量:"yīn liàng",少尉:"shào wèi",冲压:"chòng yā",苍劲:"cāng jìng",厚薄:"hòu báo",威吓:"wēi hè",外相:"wài xiàng",呼号:"hū háo",着迷:"zháo mí",挑担:"tiāo dàn",纹路:"wén lù",还俗:"huán sú",强横:"qiáng hèng",着数:"zhāo shù",降顺:"xiáng shùn",挑明:"tiǎo míng",眯缝:"mī feng",分内:"fèn nèi",更衣:"gēng yī",软和:"ruǎn huo",尽兴:"jìn xìng",号子:"hào zi",爪牙:"zhǎo yá",败将:"bài jiàng",猜中:"cāi zhòng",结扎:"jié zā",没空:"méi kòng",夹缝:"jiā fèng",拾掇:"shí duo",掺和:"chān huo",簸箕:"bò ji",电量:"diàn liàng",荷载:"hè zǎi",调式:"diào shì",处身:"chǔ shēn",打手:"dǎ shǒu",弹弓:"dàn gōng",横蛮:"hèng mán",能干:"néng gàn",校点:"jiào diǎn",加载:"jiā zài",干校:"gàn xiào",哄传:"hōng chuán",校注:"jiào zhù",淤塞:"yū sè",马扎:"mǎ zhá",月氏:"yuè zhī",高干:"gāo gàn",经传:"jīng zhuàn",曾孙:"zēng sūn",好斗:"hào dòu",关卡:"guān qiǎ",逃奔:"táo bèn",磨蹭:"mó ceng",牟取:"móu qǔ",颤栗:"zhàn lì",蚂蚱:"mà zha",撮合:"cuō he",趔趄:"liè qie",摔打:"shuāi dǎ",台子:"tái zi",分得:"fēn de",粘着:"nián zhuó",采邑:"cài yì",散装:"sǎn zhuāng",婀娜:"ē nuó",兴味:"xìng wèi",行头:"xíng tou",气量:"qì liàng",调运:"diào yùn",处治:"chǔ zhì",乐音:"yuè yīn",充塞:"chōng sè",恫吓:"dòng hè",论调:"lùn diào",相中:"xiāng zhòng",民乐:"mín yuè",炮仗:"pào zhang",丧服:"sāng fú",骁将:"xiāo jiàng",量刑:"liàng xíng",缝补:"féng bǔ",财会:"cái kuài",大干:"dà gàn",历数:"lì shǔ",校场:"jiào chǎng",塞北:"sài běi",识相:"shí xiàng",辱没:"rǔ mò",鲜亮:"xiān liàng",语塞:"yǔ sè",露脸:"lòu liǎn",凉快:"liáng kuai",腰杆:"yāo gǎn",溜达:"liū da",嘎嘎:"gā gā",公干:"gōng gàn",桔梗:"jié gěng",挑逗:"tiǎo dòu",看门:"kān mén",乐歌:"yuè gē",拓片:"tà piàn",挑动:"tiǎo dòng",准将:"zhǔn jiàng",遒劲:"qiú jìng",磨坊:"mò fáng",逶迤:"wēi yí",搅和:"jiǎo huo",摩挲:"mó suō",作弄:"zuò nòng",苗头:"miáo tou",打颤:"dǎ zhàn",大藏:"dà zàng",畜牲:"chù shēng",勾搭:"gōu da",树荫:"shù yīn",树杈:"shù chà",铁杆:"tiě gǎn",将相:"jiàng xiàng",份子:"fèn zi",视差:"shì chā",绿荫:"lǜ yīn",枪杆:"qiāng gǎn",缝纫:"féng rèn",愁闷:"chóu mèn",点将:"diǎn jiàng",华佗:"huà tuó",劲射:"jìng shè",箱笼:"xiāng lǒng",终了:"zhōng liǎo",鬓发:"bìn fà",结巴:"jiē ba",苦干:"kǔ gàn",看家:"kān jiā",正旦:"zhēng dàn",中肯:"zhòng kěn",厦门:"xià mén",东莞:"dōng guǎn",食量:"shí liàng",宫调:"gōng diào",间作:"jiàn zuò",弹片:"dàn piàn",差池:"chā chí",漂白:"piǎo bái",杠子:"gàng zi",调处:"tiáo chǔ",好动:"hào dòng",转炉:"zhuàn lú",屏气:"bǐng qì",夹板:"jiā bǎn",哀乐:"āi yuè",干道:"gàn dào",苦处:"kǔ chù",劈柴:"pǐ chái",长势:"zhǎng shì",天华:"tiān huá",共处:"gòng chǔ",校验:"jiào yàn",出塞:"chū sài",磨盘:"mò pán",萎靡:"wěi mǐ",奔丧:"bēn sāng",唱和:"chàng hè",大调:"dà diào",非分:"fēi fèn",钻营:"zuān yíng",夹子:"jiā zi",超载:"chāo zài",更始:"gēng shǐ",铃铛:"líng dang",披散:"pī sàn",发还:"fā huán",转轮:"zhuàn lún",横财:"hèng cái",泡桐:"pāo tóng",抛撒:"pāo sǎ",天呀:"tiān yā",糊糊:"hū hu",躯壳:"qū qiào",通量:"tōng liàng",奉还:"fèng huán",午觉:"wǔ jiào",闷棍:"mèn gùn",浪头:"làng tou",砚台:"yàn tái",油坊:"yóu fáng",学长:"xué zhǎng",过载:"guò zài",笔调:"bǐ diào",衣被:"yī bèi",畜产:"xù chǎn",调阅:"diào yuè",蛮干:"mán gàn",曾祖:"zēng zǔ",提干:"tí gàn",变调:"biàn diào",覆没:"fù mò",模子:"mú zi",乐律:"yuè lǜ",称心:"chèn xīn",木杆:"mù gān",重印:"chóng yìn",自省:"zì xǐng",提调:"tí diào",看相:"kàn xiàng",芋头:"yù tou",下切:"xià qiē",塞上:"sài shàng",铺张:"pū zhāng",藤蔓:"téng wàn",薄幸:"bó xìng",解数:"xiè shù",褪去:"tuì qù",霰弹:"xiàn dàn",柚木:"yóu mù",痕量:"hén liàng",雅乐:"yǎ yuè",号哭:"háo kū",诈降:"zhà xiáng",猪圈:"zhū juàn",咋舌:"zé shé",铣床:"xǐ chuáng",防弹:"fáng dàn",健将:"jiàn jiàng",丽水:"lí shuǐ",削发:"xuē fà",空当:"kòng dāng",多相:"duō xiàng",鲜见:"xiǎn jiàn",划桨:"huá jiǎng",载波:"zài bō",跳蚤:"tiào zao",俏皮:"qiào pí",吧嗒:"bā dā",结发:"jié fà",了断:"liǎo duàn",同调:"tóng diào",石磨:"shí mò",时差:"shí chā",鼻塞:"bí sè",挑子:"tiāo zi",推磨:"tuī mò",武侯:"wǔ hóu",抹煞:"mǒ shā",调转:"diào zhuǎn",籍没:"jí mò",还债:"huán zhài",调演:"diào yǎn",分划:"fēn huá",奇偶:"jī ǒu",断喝:"duàn hè",闷雷:"mèn léi",狼藉:"láng jí",饭量:"fàn liàng",还礼:"huán lǐ",转调:"zhuǎn diào",星相:"xīng xiàng",手相:"shǒu xiàng",配乐:"pèi yuè",盖头:"gài tou",连杆:"lián gǎn",簿记:"bù jì",刀把:"dāo bà",量词:"liàng cí",名角:"míng jué",步调:"bù diào",校本:"jiào běn",账簿:"zhàng bù",隽永:"juàn yǒng",稍为:"shāo wéi",易传:"yì zhuàn",乐谱:"yuè pǔ",牵累:"qiān lěi",答理:"dā li",喝斥:"hè chì",吟哦:"yín é",干渠:"gàn qú",海量:"hǎi liàng",精当:"jīng dàng",着床:"zhuó chuáng",月相:"yuè xiàng",庶几:"shù jī",宫观:"gōng guàn",论处:"lùn chǔ",征辟:"zhēng bì",厚朴:"hòu pò",介壳:"jiè qiào",吭哧:"kēng chī",咯血:"kǎ xiě",铺陈:"pū chén",重生:"chóng shēng",乐理:"yuè lǐ",哀号:"āi háo",藏历:"zàng lì",刚劲:"gāng jìng",削平:"xuē píng",浓荫:"nóng yīn",城垛:"chéng duǒ",当差:"dāng chāi",正传:"zhèng zhuàn",并处:"bìng chǔ",创面:"chuāng miàn",旦角:"dàn jué",薄礼:"bó lǐ",晃荡:"huàng dang",臊子:"sào zi",家什:"jiā shí",闷头:"mēn tóu",美发:"měi fà",度数:"dù shu",着凉:"zháo liáng",闯将:"chuǎng jiàng",几案:"jī àn",姘头:"pīn tou",差数:"chā shù",散碎:"sǎn suì",壅塞:"yōng sè",寒颤:"hán zhàn",牵强:"qiān qiǎng",无间:"wú jiàn",轮转:"lún zhuàn",号叫:"háo jiào",铺排:"pū pái",降伏:"xiáng fú",轧钢:"zhá gāng",东阿:"dōng ē",病假:"bìng jià",累加:"lěi jiā",梗塞:"gěng sè",弹夹:"dàn jiā",钻心:"zuān xīn",晃眼:"huǎng yǎn",魔爪:"mó zhǎo",标量:"biāo liàng",憋闷:"biē mèn",猜度:"cāi duó",处士:"chǔ shì",官差:"guān chāi",讨还:"tǎo huán",长门:"cháng mén",馏分:"liú fēn",里弄:"lǐ lòng",色相:"sè xiàng",雅兴:"yǎ xìng",角力:"jué lì",弹坑:"dàn kēng",枝杈:"zhī chà",夹具:"jiā jù",处刑:"chǔ xíng",悍将:"hàn jiàng",好学:"hào xué",好好:"hǎo hǎo",银发:"yín fà",扫把:"sào bǎ",法相:"fǎ xiàng",贵干:"guì gàn",供气:"gōng qì",空余:"kòng yú",捆扎:"kǔn zā",瘠薄:"jí bó",浆糊:"jiàng hu",嘎吱:"gā zhī",调令:"diào lìng",法帖:"fǎ tiè",淋病:"lìn bìng",调派:"diào pài",转盘:"zhuàn pán",供稿:"gōng gǎo",差官:"chāi guān",忧闷:"yōu mèn",教长:"jiào zhǎng",重唱:"chóng chàng",酒兴:"jiǔ xìng",乐坛:"yuè tán",花呢:"huā ní",叱喝:"chì hè",膀臂:"bǎng bì",得空:"dé kòng",转圈:"zhuàn quān",横暴:"hèng bào",哄抬:"hōng tái",引吭:"yǐn háng",载货:"zài huò",中计:"zhòng jì",官长:"guān zhǎng",相面:"xiàng miàn",看头:"kàn tou",盼头:"pàn tou",意兴:"yì xìng",军乐:"jūn yuè",累次:"lěi cì",骨嘟:"gǔ dū",燕赵:"yān zhào",报丧:"bào sāng",弥撒:"mí sa",挨斗:"ái dòu",扁舟:"piān zhōu",丑角:"chǒu jué",吊丧:"diào sāng",强将:"qiáng jiàng",重奏:"chóng zòu",发辫:"fà biàn",着魔:"zháo mó",着法:"zhāo fǎ",盛放:"shèng fàng",填塞:"tián sè",凶横:"xiōng hèng",稽首:"qǐ shǒu",碑帖:"bēi tiè",冲量:"chōng liàng",发菜:"fà cài",假发:"jiǎ fà",翻卷:"fān juǎn",小量:"xiǎo liàng",胶着:"jiāo zhuó",里子:"lǐ zi",调调:"diào diao",散兵:"sǎn bīng",高挑:"gāo tiǎo",播撒:"bō sǎ",夹心:"jiā xīn",扇动:"shān dòng",叨扰:"tāo rǎo",霓裳:"ní cháng",捻子:"niǎn zi",弥缝:"mí féng",撒布:"sǎ bù",场院:"cháng yuàn",省亲:"xǐng qīn",提拉:"tí lā",惯量:"guàn liàng",强逼:"qiáng bī",强征:"qiáng zhēng",晕车:"yùn chē",数道:"shù dào",带累:"dài lèi",拓本:"tà běn",嫌恶:"xián wù",宿将:"sù jiàng",龟裂:"jūn liè",缠夹:"chán jiā",发式:"fà shì",隔扇:"gé shàn",天分:"tiān fèn",癖好:"pǐ hào",四通:"sì tōng",白术:"bái zhú",划伤:"huá shāng",角斗:"jué dòu",听差:"tīng chāi",岁差:"suì chā",丧礼:"sāng lǐ",脉脉:"mò mò",削瘦:"xuē shòu",撒播:"sǎ bō",莎草:"suō cǎo",犍为:"qián wéi",调头:"diào tóu",龙卷:"lóng juǎn",外调:"wài diào",字帖:"zì tiè",卷发:"juǎn fà",揣度:"chuǎi duó",洋相:"yáng xiàng",散光:"sǎn guāng",骨碌:"gū lu",薄命:"bó mìng",笼头:"lóng tóu",咽炎:"yān yán",碌碡:"liù zhou",片儿:"piàn er",纤手:"qiàn shǒu",散体:"sǎn tǐ",内省:"nèi xǐng",强留:"qiáng liú",解送:"jiè sòng",反间:"fǎn jiàn",少壮:"shào zhuàng",留空:"liú kōng",告假:"gào jià",咳血:"ké xuè",薄暮:"bó mù",铺轨:"pū guǐ",磨削:"mó xuē",治丧:"zhì sāng",叉子:"chā zi",哄动:"hōng dòng",蛾子:"é zi",出落:"chū luò",股长:"gǔ zhǎng",贵处:"guì chù",还魂:"huán hún",例假:"lì jià",刹住:"shā zhù",身量:"shēn liàng",同好:"tóng hào",模量:"mó liàng",更生:"gēng shēng",服丧:"fú sāng",率直:"shuài zhí",字模:"zì mú",散架:"sǎn jià",答腔:"dā qiāng",交恶:"jiāo wù",薄情:"bó qíng",眼泡:"yǎn pāo",袅娜:"niǎo nuó",草垛:"cǎo duò",冲劲:"chòng jìn",呢喃:"ní nán",切中:"qiè zhòng",挑灯:"tiǎo dēng",还愿:"huán yuàn",激将:"jī jiàng",更鼓:"gēng gǔ",没药:"mò yào",败兴:"bài xìng",切面:"qiē miàn",散户:"sǎn hù",累进:"lěi jìn",背带:"bēi dài",秤杆:"chèng gǎn",碾坊:"niǎn fáng",簿子:"bù zi",扳手:"bān shǒu",铅山:"yán shān",儒将:"rú jiàng",重光:"chóng guāng",剪发:"jiǎn fà",长上:"zhǎng shàng",小传:"xiǎo zhuàn",压轴:"yā zhòu",弱冠:"ruò guàn",花卷:"huā juǎn",横祸:"hèng huò",夹克:"jiā kè",光晕:"guāng yùn",披靡:"pī mǐ",对调:"duì diào",夹持:"jiā chí",空额:"kòng é",平调:"píng diào",铺床:"pū chuáng",丧钟:"sāng zhōng",作乐:"zuò lè",少府:"shào fǔ",数数:"shuò shuò",奔头:"bèn tou",进给:"jìn jǐ",率性:"shuài xìng",乐子:"lè zi",绑扎:"bǎng zā",挑唆:"tiǎo suō",漂洗:"piǎo xǐ",夹墙:"jiā qiáng",咳喘:"ké chuǎn",乜斜:"miē xie",错处:"cuò chù",闷酒:"mèn jiǔ",时调:"shí diào",重孙:"chóng sūn",经幢:"jīng chuáng",圩场:"xū chǎng",调门:"diào mén",花头:"huā tóu",划拉:"huá la",套色:"tào shǎi",粗率:"cū shuài",相率:"xiāng shuài",款识:"kuǎn zhì",吁请:"yù qǐng",荫蔽:"yīn bì",文蛤:"wén gé",嘀嗒:"dī dā",调取:"diào qǔ",交差:"jiāo chāi",落子:"luò zǐ",相册:"xiàng cè",絮叨:"xù dao",落发:"luò fà",异相:"yì xiàng",浸没:"jìn mò",角抵:"jué dǐ",卸载:"xiè zài",春卷:"chūn juǎn",扎挣:"zhá zheng",畜养:"xù yǎng",吡咯:"bǐ luò",垛子:"duò zi",恶少:"è shào",发际:"fà jì",红苕:"hóng sháo",糨糊:"jiàng hu",哭丧:"kū sāng",稍息:"shào xī",晕船:"yùn chuán",校样:"jiào yàng",外差:"wài chā",脚爪:"jiǎo zhǎo",铺展:"pū zhǎn",芫荽:"yán sui",夹紧:"jiā jǐn",尿泡:"suī pào",丧乱:"sāng luàn",凶相:"xiōng xiàng",华发:"huá fà",打场:"dǎ cháng",云量:"yún liàng",正切:"zhèng qiē",划拳:"huá quán",划艇:"huá tǐng",评传:"píng zhuàn",拉纤:"lā qiàn",句读:"jù dòu",散剂:"sǎn jì",骨殖:"gǔ shi",塞音:"sè yīn",铺叙:"pū xù",阏氏:"yān zhī",冷颤:"lěng zhàn",煞住:"shā zhù",少男:"shào nán",管乐:"guǎn yuè",号啕:"háo táo",纳降:"nà xiáng",拥塞:"yōng sè",万乘:"wàn shèng",杆儿:"gǎn ér",葛藤:"gé téng",簿籍:"bù jí",皮夹:"pí jiā",校准:"jiào zhǔn",允当:"yǔn dàng",器量:"qì liàng",选调:"xuǎn diào",扮相:"bàn xiàng",干才:"gàn cái",基干:"jī gàn",割切:"gē qiē",国乐:"guó yuè",卡壳:"qiǎ ké",辟谷:"bì gǔ",磨房:"mò fáng",咿呀:"yī yā",芥末:"jiè mo",薄技:"bó jì",产假:"chǎn jià",诗兴:"shī xìng",重出:"chóng chū",转椅:"zhuàn yǐ",酌量:"zhuó liang",簿册:"bù cè",藏青:"zàng qīng",的士:"dī shì",调人:"diào rén",解元:"jiè yuán",茎干:"jīng gàn",巨量:"jù liàng",榔头:"láng tou",率真:"shuài zhēn",喷香:"pèn xiāng",锁钥:"suǒ yuè",虾蟆:"há má",相图:"xiàng tú",兴会:"xìng huì",灶头:"zào tóu",重婚:"chóng hūn",钻洞:"zuān dòng",忖度:"cǔn duó",党参:"dǎng shēn",调温:"diào wēn",杆塔:"gān tǎ",葛布:"gé bù",拱券:"gǒng xuàn",夹生:"jiā shēng",露馅:"lòu xiàn",恰切:"qià qiè",散见:"sǎn jiàn",哨卡:"shào qiǎ",烫发:"tàng fà",体量:"tǐ liàng",挺括:"tǐng kuò",系带:"jì dài",相士:"xiàng shì",羊圈:"yáng juàn",转矩:"zhuàn jǔ",吧台:"bā tái",苍术:"cāng zhú",菲薄:"fěi bó",蛤蚧:"gé jiè",蛤蜊:"gé lí",瓜蔓:"guā wàn",怪相:"guài xiàng",临帖:"lín tiè",女红:"nǚ gōng",刨床:"bào chuáng",翘楚:"qiáo chǔ",数九:"shǔ jiǔ",谈兴:"tán xìng",雄劲:"xióng jìng",扎染:"zā rǎn",遮荫:"zhē yīn",周正:"zhōu zhèng",赚头:"zhuàn tou",扒手:"pá shǒu",搀和:"chān huo",诚朴:"chéng pǔ",肚量:"dù liàng",干结:"gān jié",工尺:"gōng chě",家累:"jiā lěi",曲水:"qū shuǐ",沙参:"shā shēn",挑花:"tiǎo huā",阿门:"ā mén",背篓:"bēi lǒu",瘪三:"biē sān",裁处:"cái chǔ",创痛:"chuāng tòng",福相:"fú xiàng",更动:"gēng dòng",豪兴:"háo xìng",还阳:"huán yáng",还嘴:"huán zuǐ",借调:"jiè diào",卷云:"juǎn yún",流弹:"liú dàn",想头:"xiǎng tou",削价:"xuē jià",校阅:"jiào yuè",雅量:"yǎ liàng",别传:"bié zhuàn",薄酒:"bó jiǔ",春假:"chūn jià",发妻:"fà qī",哗哗:"huā huā",宽绰:"kuān chuo",了悟:"liǎo wù",切花:"qiē huā",审度:"shěn duó",应许:"yīng xǔ",转台:"zhuàn tái",仔猪:"zǐ zhū",裁量:"cái liáng",藏戏:"zàng xì",乘兴:"chéng xìng",绸缪:"chóu móu",摧折:"cuī zhé",调经:"tiáo jīng",调职:"diào zhí",缝缀:"féng zhuì",骨朵:"gū duǒ",核儿:"hú er",恒量:"héng liàng",还价:"huán jià",浑朴:"hún pǔ",苦差:"kǔ chāi",面糊:"miàn hù",煞车:"shā chē",省视:"xǐng shì",什锦:"shí jǐn",信差:"xìn chāi",余切:"yú qiē",攒眉:"cuán méi",炸糕:"zhá gāo",钻杆:"zuàn gǎn",扒灰:"pá huī",拌和:"bàn huò",长调:"cháng diào",大溜:"dà liù",抖搂:"dǒu lōu",飞转:"fēi zhuàn",干仗:"gàn zhàng",好胜:"hào shèng",画片:"huà piàn",搅混:"jiǎo hún",螺杆:"luó gǎn",木模:"mù mú",怒号:"nù háo",频数:"pín shù",无宁:"wú níng",遗少:"yí shào",邮差:"yóu chāi",占卦:"zhān guà",占星:"zhān xīng",重审:"chóng shěn",自量:"zì liàng",调防:"diào fáng",发廊:"fà láng",反调:"fǎn diào",缝子:"fèng zi",更夫:"gēng fū",骨子:"gǔ zi",光杆:"guāng gǎn",夹棍:"jiā gùn",居丧:"jū sāng",巨贾:"jù gǔ",看押:"kān yā",空转:"kōng zhuàn",量力:"liàng lì",炮烙:"páo luò",赔还:"péi huán",扑扇:"pū shān",散记:"sǎn jì",散件:"sǎn jiàn",删削:"shān xuē",射干:"shè gàn",条几:"tiáo jī",偷空:"tōu kòng",削壁:"xuē bì",校核:"jiào hé",阴干:"yīn gān",择菜:"zhái cài",重九:"chóng jiǔ",主调:"zhǔ diào",自禁:"zì jīn",吧唧:"bā jī",便溺:"biàn niào",词调:"cí diào",叨咕:"dáo gu",落枕:"lào zhěn",铺砌:"pū qì",刷白:"shuà bái",委靡:"wěi mǐ",系泊:"xì bó",相马:"xiàng mǎ",熨帖:"yù tiē",转筋:"zhuàn jīn",棒喝:"bàng hè",傧相:"bīn xiàng",镐头:"gǎo tóu",间苗:"jiàn miáo",乐池:"yuè chí",卖相:"mài xiàng",屏弃:"bǐng qì",铅弹:"qiān dàn",切变:"qiē biàn",请调:"qǐng diào",群氓:"qún méng",散板:"sǎn bǎn",省察:"xǐng chá",事假:"shì jià",纤绳:"qiàn shéng",重影:"chóng yǐng",耕种:"gēng zhòng",种地:"zhòng dì",种菜:"zhòng cài",栽种:"zāi zhòng",接种:"jiē zhòng",垦种:"kěn zhòng",种殖:"zhòng zhí",种瓜:"zhòng guā",种豆:"zhòng dòu",种树:"zhòng shù",睡着:"shuì zháo",笼子:"lóng zi",重启:"chóng qǐ",重整:"chóng zhěng",重弹:"chóng tán",重足:"chóng zú",重山:"chóng shān",重游:"chóng yóu",重峦:"chóng luán",爷爷:"yé ye",奶奶:"nǎi nai",姥爷:"lǎo ye",爸爸:"bà ba",妈妈:"mā ma",婶婶:"shěn shen",舅舅:"jiù jiu",姑姑:"gū gu",叔叔:"shū shu",姨夫:"yí fu",舅母:"jiù mu",姑父:"gū fu",姐夫:"jiě fu",婆婆:"pó po",公公:"gōng gong",舅子:"jiù zi",姐姐:"jiě jie",哥哥:"gē ge",妹妹:"mèi mei",妹夫:"mèi fu",姨子:"yí zi",宝宝:"bǎo bao",娃娃:"wá wa",孩子:"hái zi",日子:"rì zi",样子:"yàng zi",狮子:"shī zi",身子:"shēn zi",架子:"jià zi",嫂子:"sǎo zi",鼻子:"bí zi",亭子:"tíng zi",折子:"zhé zi",面子:"miàn zi",脖子:"bó zi",辈子:"bèi zi",帽子:"mào zi",拍子:"pāi zi",柱子:"zhù zi",辫子:"biàn zi",鸽子:"gē zi",房子:"fáng zi",丸子:"wán zi",摊子:"tān zi",牌子:"pái zi",胡子:"hú zi",鬼子:"guǐ zi",矮子:"ǎi zi",鸭子:"yā zi",小子:"xiǎo zi",影子:"yǐng zi",屋子:"wū zi",对子:"duì zi",点子:"diǎn zi",本子:"běn zi",种子:"zhǒng zi",儿子:"ér zi",兔子:"tù zi",骗子:"piàn zi",院子:"yuàn zi",猴子:"hóu zi",嗓子:"sǎng zi",侄子:"zhí zi",柿子:"shì zi",钳子:"qián zi",虱子:"shī zi",瓶子:"píng zi",豹子:"bào zi",筷子:"kuài zi",篮子:"lán zi",绳子:"shéng zi",嘴巴:"zuǐ ba",耳朵:"ěr duo",茄子:"qié zi",蚌埠:"bèng bù",崆峒:"kōng tóng",琵琶:"pí pa",蘑菇:"mó gu",葫芦:"hú lu",狐狸:"hú li",桔子:"jú zi",盒子:"hé zi",桌子:"zhuō zi",竹子:"zhú zi",师傅:"shī fu",衣服:"yī fu",袜子:"wà zi",杯子:"bēi zi",刺猬:"cì wei",麦子:"mài zi",队伍:"duì wu",知了:"zhī liǎo",鱼儿:"yú er",馄饨:"hún tun",灯笼:"dēng long",庄稼:"zhuāng jia",聪明:"cōng ming",镜子:"jìng zi",银子:"yín zi",盘子:"pán zi",了却:"liǎo què",力气:"lì qi",席子:"xí zi",林子:"lín zi",朝霞:"zhāo xiá",朝夕:"zhāo xī",朝气:"zhāo qì",翅膀:"chì bǎng",省长:"shěng zhǎng",臧否:"zāng pǐ",否泰:"pǐ tài",变得:"biàn de",丈夫:"zhàng fu",豆腐:"dòu fu",笔杆:"bǐ gǎn",枞阳:"zōng yáng",行人:"xíng rén",打着:"dǎ zhe",第一:"dì yī",万一:"wàn yī",之一:"zhī yī",得之:"dé zhī",统一:"tǒng yī",唯一:"wéi yī",专一:"zhuān yī",单一:"dān yī",如一:"rú yī",其一:"qí yī",合一:"hé yī",逐一:"zhú yī",周一:"zhōu yī",初一:"chū yī",研一:"yán yī",归一:"guī yī",假一:"jiǎ yī",闻一:"wén yī",了了:"liǎo liǎo",公了:"gōng liǎo",私了:"sī liǎo",一月:"yī yuè",一号:"yī hào",一级:"yī jí",一等:"yī děng",一哥:"yī gē",月一:"yuè yī",一一:"yī yī",二一:"èr yī",三一:"sān yī",四一:"sì yī",五一:"wǔ yī",六一:"liù yī",七一:"qī yī",八一:"bā yī",九一:"jiǔ yī","一〇":"yī líng",一零:"yī líng",一二:"yī èr",一三:"yī sān",一四:"yī sì",一五:"yī wǔ",一六:"yī liù",一七:"yī qī",一八:"yī bā",一九:"yī jiǔ",一又:"yī yòu",一饼:"yī bǐng",一楼:"yī lóu",为例:"wéi lì",为准:"wéi zhǔn",沧海:"cāng hǎi",难为:"nán wéi",责难:"zé nàn",患难:"huàn nàn",磨难:"mó nàn",大难:"dà nàn",刁难:"diāo nàn",殉难:"xùn nàn",落难:"luò nàn",罹难:"lí nàn",灾难:"zāi nàn",难民:"nàn mín",苦难:"kǔ nàn",危难:"wēi nàn",发难:"fā nàn",逃难:"táo nàn",避难:"bì nàn",遇难:"yù nàn",阻难:"zǔ nàn",厄难:"è nàn",徇难:"xùn nàn",空难:"kōng nàn",喜欢:"xǐ huan",朝朝:"zhāo zhāo",不行:"bù xíng",轧轧:"yà yà",弯曲:"wān qū",扭曲:"niǔ qū",曲直:"qū zhí",委曲:"wěi qū",酒曲:"jiǔ qū",曲径:"qū jìng",曲解:"qū jiě",歪曲:"wāi qū",曲线:"qū xiàn",曲阜:"qū fù",九曲:"jiǔ qū",曲折:"qū zhé",曲肱:"qū gōng",曲意:"qū yì",仡佬:"gē lǎo"},dg=Object.keys(vn).map(n=>({zh:n,pinyin:vn[n],probability:2e-8,length:2,priority:p.Normal,dict:Symbol("dict2")})),Sn={为什么:"wèi shén me",实际上:"shí jì shang",检察长:"jiǎn chá zhǎng",干什么:"gàn shén me",这会儿:"zhè huì er",尽可能:"jǐn kě néng",董事长:"dǒng shì zhǎng",了不起:"liǎo bù qǐ",参谋长:"cān móu zhǎng",朝鲜族:"cháo xiǎn zú",海内外:"hǎi nèi wài",禁不住:"jīn bú zhù",柏拉图:"bó lā tú",不在乎:"bú zài hu",洛杉矶:"luò shān jī",有点儿:"yǒu diǎn er",迫击炮:"pǎi jī pào",不得了:"bù dé liǎo",马尾松:"mǎ wěi sōng",运输量:"yùn shū liàng",发脾气:"fā pí qi",士大夫:"shì dà fū",鸭绿江:"yā lù jiāng",压根儿:"yà gēn er",对得起:"duì de qǐ",那会儿:"nà huì er",自个儿:"zì gě er",物理量:"wù lǐ liàng",怎么着:"zěn me zhāo",明晃晃:"míng huǎng huǎng",节假日:"jié jià rì",心里话:"xīn lǐ huà",发行量:"fā xíng liàng",兴冲冲:"xìng chōng chōng",分子量:"fēn zǐ liàng",国子监:"guó zǐ jiàn",老大难:"lǎo dà nán",党内外:"dǎng nèi wài",这么着:"zhè me zhāo",少奶奶:"shào nǎi nai",暗地里:"àn dì lǐ",更年期:"gēng nián qī",工作量:"gōng zuò liàng",背地里:"bèi dì lǐ",山里红:"shān li hóng",好好儿:"hǎo hāo er",交响乐:"jiāo xiǎng yuè",好意思:"hǎo yì si",吐谷浑:"tǔ yù hún",没意思:"méi yì si",理发师:"lǐ fà shī",塔什干:"tǎ shí gān",充其量:"chōng qí liàng",靠得住:"kào de zhù",车行道:"chē xíng dào",人行道:"rén xíng dào",中郎将:"zhōng láng jiàng",照明弹:"zhào míng dàn",烟幕弹:"yān mù dàn",没奈何:"mò nài hé",乱哄哄:"luàn hōng hōng",惠更斯:"huì gēng sī",载重量:"zài zhòng liàng",瞧得起:"qiáo de qǐ",纪传体:"jì zhuàn tǐ",阿房宫:"ē páng gōng",卷心菜:"juǎn xīn cài",戏班子:"xì bān zi",过得去:"guò de qù",花岗石:"huā gāng shí",外甥女:"wài sheng nǚ",团团转:"tuán tuán zhuàn",大堡礁:"dà bǎo jiāo",燃烧弹:"rán shāo dàn",劳什子:"láo shí zi",摇滚乐:"yáo gǔn yuè",夹竹桃:"jiā zhú táo",闹哄哄:"nào hōng hōng",三连冠:"sān lián guàn",重头戏:"zhòng tóu xì",二人转:"èr rén zhuàn",节骨眼:"jiē gǔ yǎn",知识面:"zhī shi miàn",护士长:"hù shi zhǎng",信号弹:"xìn hào dàn",干电池:"gān diàn chí",枪杆子:"qiāng gǎn zi",哭丧棒:"kū sāng bàng",鼻咽癌:"bí yān ái",瓦岗军:"wǎ gāng jūn",买得起:"mǎi de qǐ",癞蛤蟆:"lài há ma",脊梁骨:"jǐ liang gǔ",子母弹:"zǐ mǔ dàn",开小差:"kāi xiǎo chāi",女强人:"nǚ qiáng rén",英雄传:"yīng xióng zhuàn",爵士乐:"jué shì yuè",说笑话:"shuō xiào hua",碰头会:"pèng tóu huì",玻璃钢:"bō li gāng",曳光弹:"yè guāng dàn",少林拳:"shào lín quán",咏叹调:"yǒng tàn diào",少先队:"shào xiān duì",灵长目:"líng zhǎng mù",对着干:"duì zhe gàn",蒙蒙亮:"méng méng liàng",软骨头:"ruǎn gǔ tou",铺盖卷:"pū gài juǎn",和稀泥:"huò xī ní",背黑锅:"bēi hēi guō",红彤彤:"hóng tōng tōng",武侯祠:"wǔ hóu cí",打哆嗦:"dǎ duō suo",户口簿:"hù kǒu bù",马尾藻:"mǎ wěi zǎo",夜猫子:"yè māo zi",打手势:"dǎ shǒu shì",龙王爷:"lóng wáng yé",气头上:"qì tóu shang",糊涂虫:"hú tu chóng",笔杆子:"bǐ gǎn zi",占便宜:"zhàn pián yi",打主意:"dǎ zhǔ yì",多弹头:"duō dàn tóu",露一手:"lòu yì shǒu",堰塞湖:"yàn sè hú",保得住:"bǎo de zhù",趵突泉:"bào tū quán",奥得河:"ào de hé",司务长:"sī wù zhǎng",禁不起:"jīn bù qǐ",什刹海:"shí chà hǎi",莲花落:"lián huā lào",见世面:"jiàn shì miàn",豁出去:"huō chū qù",电位差:"diàn wèi chā",挨个儿:"āi gè er",那阵儿:"nà zhèn er",肺活量:"fèi huó liàng",大师傅:"dà shī fu",掷弹筒:"zhì dàn tǒng",打呼噜:"dǎ hū lu",广渠门:"ān qú mén",未见得:"wèi jiàn dé",大婶儿:"dà shěn er",谈得来:"tán de lái",脚丫子:"jiǎo yā zi",空包弹:"kōng bāo dàn",窝里斗:"wō li dòu",弹着点:"dàn zhuó diǎn",个头儿:"gè tóu er",看得起:"kàn de qǐ",糊涂账:"hú tu zhàng",大猩猩:"dà xīng xing",禁得起:"jīn de qǐ",法相宗:"fǎ xiàng zōng",可怜相:"kě lián xiàng",吃得下:"chī de xià",汉堡包:"hàn bǎo bāo",闹嚷嚷:"nào rāng rāng",数来宝:"shǔ lái bǎo",合得来:"hé de lái",干性油:"gān xìng yóu",闷葫芦:"mèn hú lu",呱呱叫:"guā guā jiào",西洋参:"xī yáng shēn",林荫道:"lín yīn dào",拉家常:"lā jiā cháng",卷铺盖:"juǎn pū gài",过得硬:"guò de yìng",飞将军:"fēi jiāng jūn",挑大梁:"tiǎo dà liáng",哈巴狗:"hǎ ba gǒu",过家家:"guò jiā jiā",催泪弹:"cuī lèi dàn",雨夹雪:"yǔ jiā xuě",敲竹杠:"qiāo zhú gàng",列车长:"liè chē zhǎng",华达呢:"huá dá ní",犯得着:"fàn de zháo",土疙瘩:"tǔ gē da",煞风景:"shā fēng jǐng",轻量级:"qīng liàng jí",羞答答:"xiū dā dā",石子儿:"shí zǐ er",达姆弹:"dá mǔ dàn",科教片:"kē jiào piān",侃大山:"kǎn dà shān",丁点儿:"dīng diǎn er",吃得消:"chī de xiāo",捋虎须:"luō hǔ xū",高丽参:"gāo lí shēn",众生相:"zhòng shēng xiàng",咽峡炎:"yān xiá yán",禁得住:"jīn de zhù",吃得开:"chī de kāi",柞丝绸:"zuò sī chóu",应声虫:"yìng shēng chóng",数得着:"shǔ de zháo",傻劲儿:"shǎ jìn er",铅玻璃:"qiān bō li",可的松:"kě dì sōng",划得来:"huá de lái",晕乎乎:"yūn hū hū",屎壳郎:"shǐ ke làng",尥蹶子:"liào juě zi",藏红花:"zàng hóng huā",闷罐车:"mèn guàn chē",卡脖子:"qiǎ bó zi",红澄澄:"hóng deng deng",赶得及:"gǎn de jí",当间儿:"dāng jiàn er",露马脚:"lòu mǎ jiǎo",鸡内金:"jī nèi jīn",犯得上:"fàn de shàng",钉齿耙:"dīng chǐ bà",饱和点:"bǎo hé diǎn",龙爪槐:"lóng zhǎo huái",喝倒彩:"hè dào cǎi",定冠词:"dìng guàn cí",担担面:"dàn dan miàn",吃得住:"chī de zhù",爪尖儿:"zhuǎ jiān er",支着儿:"zhī zhāo er",折跟头:"zhē gēn tou",阴着儿:"yīn zhāo er",烟卷儿:"yān juǎn er",宣传弹:"xuān chuán dàn",信皮儿:"xìn pí er",弦切角:"xián qiē jiǎo",缩砂密:"sù shā mì",说得来:"shuō de lái",水漂儿:"shuǐ piāo er",耍笔杆:"shuǎ bǐ gǎn",数得上:"shǔ de shàng",数不着:"shǔ bù zháo",数不清:"shǔ bù qīng",什件儿:"shí jiàn er",生死簿:"shēng sǐ bù",扇风机:"shān fēng jī",撒呓挣:"sā yì zheng",日记簿:"rì jì bù",热得快:"rè de kuài",亲家公:"qìng jia gōng",奇函数:"jī hán shù",拍纸簿:"pāi zhǐ bù",努劲儿:"nǔ jìn er",泥娃娃:"ní wá wa",内切圆:"nèi qiē yuán",哪会儿:"nǎ huì er",闷头儿:"mēn tóu er",没谱儿:"méi pǔ er",铆劲儿:"mǎo jìn er",溜肩膀:"liū jiān bǎng",了望台:"liào wàng tái",老来少:"lǎo lái shào",坤角儿:"kūn jué er",考勤簿:"kǎo qín bù",卷笔刀:"juǎn bǐ dāo",进给量:"jìn jǐ liàng",划不来:"huá bù lái",汗褂儿:"hàn guà er",鼓囊囊:"gǔ nāng nāng",够劲儿:"gòu jìn er",公切线:"gōng qiē xiàn",搁得住:"gé de zhù",赶浪头:"gǎn làng tóu",赶得上:"gǎn de shàng",干酵母:"gān jiào mǔ",嘎渣儿:"gā zhā er",嘎嘣脆:"gā bēng cuì",对得住:"duì de zhù",逗闷子:"dòu mèn zi",顶呱呱:"dǐng guā guā",滴溜儿:"dī liù er",大轴子:"dà zhòu zi",打板子:"dǎ bǎn zi",寸劲儿:"cùn jìn er",醋劲儿:"cù jìn er",揣手儿:"chuāi shǒu er",冲劲儿:"chòng jìn er",吃得来:"chī de lái",不更事:"bù gēng shì",奔头儿:"bèn tou er",百夫长:"bǎi fū zhǎng",娃娃亲:"wá wa qīn",死劲儿:"sǐ jìn er",骨朵儿:"gū duǒ er",功劳簿:"gōng láo bù",都江堰:"dū jiāng yàn",一担水:"yí dàn shuǐ",否极泰:"pǐ jí tài",泰来否:"tài lái pǐ",咳特灵:"ké tè líng",开户行:"kāi hù háng",郦食其:"lì yì jī",花事了:"huā shì liǎo",一更更:"yì gēng gēng",一重山:"yì chóng shān",风一更:"fēng yì gēng",雪一更:"xuě yì gēng",归一码:"guī yì mǎ",星期一:"xīng qī yī",礼拜一:"lǐ bài yī",一季度:"yī jì dù",一月一:"yī yuè yī",一字马:"yī zì mǎ",一是一:"yī shì yī",一次方:"yī cì fāng",一阳指:"yī yáng zhǐ",一字决:"yī zì jué",一年级:"yī nián jí",一不做:"yī bú zuò",屈戌儿:"qū qu ér",难为水:"nán wéi shuǐ",难为情:"nán wéi qíng",行一行:"xíng yì háng",别别的:"biè bié de",干哪行:"gàn nǎ háng",干一行:"gàn yì háng",曲别针:"qū bié zhēn"},jg=Object.keys(Sn).map(n=>({zh:n,pinyin:Sn[n],probability:2e-8,length:3,priority:p.Normal,dict:Symbol("dict3")})),Pn={成吉思汗:"chéng jí sī hán",四通八达:"sì tōng bā dá",一模一样:"yì mú yí yàng",青藏高原:"qīng zàng gāo yuán",阿弥陀佛:"ē mí tuó fó",解放思想:"jiè fàng sī xiǎng",所作所为:"suǒ zuò suǒ wéi",迷迷糊糊:"mí mí hu hū",荷枪实弹:"hè qiāng shí dàn",兴高采烈:"xìng gāo cǎi liè",无能为力:"wú néng wéi lì",布鲁塞尔:"bù lǔ sài ěr",为所欲为:"wéi suǒ yù wéi",克什米尔:"kè shí mǐ ěr",没完没了:"méi wán méi liǎo",不为人知:"bù wéi rén zhī",结结巴巴:"jiē jiē bā bā",前仆后继:"qián pū hòu jì",铺天盖地:"pū tiān gài dì",直截了当:"zhí jié liǎo dàng",供不应求:"gōng bú yìng qiú",御史大夫:"yù shǐ dà fū",不为瓦全:"bù wéi wǎ quán",不可收拾:"bù kě shōu shi",胡作非为:"hú zuò fēi wéi",分毫不差:"fēn háo bú chà",模模糊糊:"mó mó hu hū",不足为奇:"bù zú wéi qí",悄无声息:"qiǎo wú shēng xī",了如指掌:"liǎo rú zhǐ zhǎng",深恶痛绝:"shēn wù tòng jué",高高兴兴:"gāo gāo xìng xìng",唉声叹气:"āi shēng tàn qì",汉藏语系:"hàn zàng yǔ xì",处心积虑:"chǔ xīn jī lǜ",泣不成声:"qì bù chéng shēng",半夜三更:"bàn yè sān gēng",失魂落魄:"shī hún luò pò",二十八宿:"èr shí bā xiù",转来转去:"zhuàn lái zhuàn qù",数以万计:"shǔ yǐ wàn jì",相依为命:"xiāng yī wéi mìng",恋恋不舍:"liàn liàn bù shě",屈指可数:"qū zhǐ kě shǔ",神出鬼没:"shén chū guǐ mò",结结实实:"jiē jiē shí shí",有的放矢:"yǒu dì fàng shǐ",叽哩咕噜:"jī lǐ gū lū",调兵遣将:"diào bīng qiǎn jiàng",载歌载舞:"zài gē zài wǔ",转危为安:"zhuǎn wēi wéi ān",踏踏实实:"tā tā shi shí",桑给巴尔:"sāng jǐ bā ěr",装模作样:"zhuāng mú zuò yàng",见义勇为:"jiàn yì yǒng wéi",相差无几:"xiāng chā wú jǐ",叹为观止:"tàn wéi guān zhǐ",闷闷不乐:"mèn mèn bú lè",喜怒哀乐:"xǐ nù āi lè",鲜为人知:"xiǎn wéi rén zhī",张牙舞爪:"zhāng yá wǔ zhǎo",为非作歹:"wéi fēi zuò dǎi",含糊其辞:"hán hú qí cí",疲于奔命:"pí yú bēn mìng",勉为其难:"miǎn wéi qí nán",依依不舍:"yī yī bù shě",顶头上司:"dǐng tóu shàng si",不着边际:"bù zhuó biān jì",大模大样:"dà mú dà yàng",寻欢作乐:"xún huān zuò lè",一走了之:"yì zǒu liǎo zhī",字里行间:"zì lǐ háng jiān",含含糊糊:"hán hán hu hū",恰如其分:"qià rú qí fèn",破涕为笑:"pò tì wéi xiào",深更半夜:"shēn gēng bàn yè",千差万别:"qiān chā wàn bié",数不胜数:"shǔ bú shèng shǔ",据为己有:"jù wéi jǐ yǒu",天旋地转:"tiān xuán dì zhuàn",养尊处优:"yǎng zūn chǔ yōu",玻璃纤维:"bō li xiān wéi",吵吵闹闹:"chāo chao nào nào",晕头转向:"yūn tóu zhuàn xiàng",土生土长:"tǔ shēng tǔ zhǎng",宁死不屈:"nìng sǐ bù qū",不省人事:"bù xǐng rén shì",尽力而为:"jìn lì ér wéi",精明强干:"jīng míng qiáng gàn",唠唠叨叨:"láo lao dāo dāo",叽叽喳喳:"jī ji zhā zhā",功不可没:"gōng bù kě mò",锲而不舍:"qiè ér bù shě",排忧解难:"pái yōu jiě nàn",稀里糊涂:"xī li hú tú",各有所长:"gè yǒu suǒ cháng",的的确确:"dí dí què què",哄堂大笑:"hōng táng dà xiào",听而不闻:"tīng ér bù wén",刀耕火种:"dāo gēng huǒ zhòng",内分泌腺:"nèi fèn mì xiàn",化险为夷:"huà xiǎn wéi yí",百发百中:"bǎi fā bǎi zhòng",重见天日:"chóng jiàn tiān rì",反败为胜:"fǎn bài wéi shèng",一了百了:"yì liǎo bǎi liǎo",大大咧咧:"dà da liē liē",心急火燎:"xīn jí huǒ liǎo",粗心大意:"cū xīn dà yi",鸡皮疙瘩:"jī pí gē da",夷为平地:"yí wéi píng dì",日积月累:"rì jī yuè lěi",设身处地:"shè shēn chǔ dì",投其所好:"tóu qí suǒ hào",间不容发:"jiān bù róng fà",人满为患:"rén mǎn wéi huàn",穷追不舍:"qióng zhuī bù shě",为时已晚:"wéi shí yǐ wǎn",如数家珍:"rú shǔ jiā zhēn",心里有数:"xīn lǐ yǒu shù",以牙还牙:"yǐ yá huán yá",神不守舍:"shén bù shǒu shě",孟什维克:"mèng shí wéi kè",各自为战:"gè zì wéi zhàn",怨声载道:"yuàn shēng zài dào",救苦救难:"jiù kǔ jiù nàn",好好先生:"hǎo hǎo xiān sheng",怪模怪样:"guài mú guài yàng",抛头露面:"pāo tóu lù miàn",游手好闲:"yóu shǒu hào xián",无所不为:"wú suǒ bù wéi",调虎离山:"diào hǔ lí shān",步步为营:"bù bù wéi yíng",好大喜功:"hào dà xǐ gōng",众矢之的:"zhòng shǐ zhī dì",长生不死:"cháng shēng bù sǐ",蔚为壮观:"wèi wéi zhuàng guān",不可胜数:"bù kě shèng shǔ",鬼使神差:"guǐ shǐ shén chāi",洁身自好:"jié shēn zì hào",敢作敢为:"gǎn zuò gǎn wéi",茅塞顿开:"máo sè dùn kāi",走马换将:"zǒu mǎ huàn jiàng",为时过早:"wéi shí guò zǎo",为人师表:"wéi rén shī biǎo",阴差阳错:"yīn chā yáng cuò",油腔滑调:"yóu qiāng huá diào",重蹈覆辙:"chóng dǎo fù zhé",骂骂咧咧:"mà ma liē liē",絮絮叨叨:"xù xù dāo dāo",如履薄冰:"rú lǚ bó bīng",损兵折将:"sǔn bīng zhé jiàng",拐弯抹角:"guǎi wān mò jiǎo",像模像样:"xiàng mú xiàng yàng",供过于求:"gōng guò yú qiú",开花结果:"kāi huā jiē guǒ",仔仔细细:"zǐ zǐ xì xì",川藏公路:"chuān zàng gōng lù",河北梆子:"hé běi bāng zi",长年累月:"cháng nián lěi yuè",正儿八经:"zhèng er bā jīng",不识抬举:"bù shí tái ju",重振旗鼓:"chóng zhèn qí gǔ",气息奄奄:"qì xī yān yān",紧追不舍:"jǐn zhuī bù shě",服服帖帖:"fú fu tiē tiē",强词夺理:"qiǎng cí duó lǐ",噼里啪啦:"pī li pā lā",人才济济:"rén cái jǐ jǐ",发人深省:"fā rén shēn xǐng",不足为凭:"bù zú wéi píng",为富不仁:"wéi fù bù rén",连篇累牍:"lián piān lěi dú",呼天抢地:"hū tiān qiāng dì",落落大方:"luò luò dà fāng",自吹自擂:"zì chuī zì léi",乐善好施:"lè shàn hào shī",以攻为守:"yǐ gōng wéi shǒu",磨磨蹭蹭:"mó mó cèng cèng",削铁如泥:"xuē tiě rú ní",助纣为虐:"zhù zhòu wéi nüè",以退为进:"yǐ tuì wéi jìn",嘁嘁喳喳:"qī qī chā chā",枪林弹雨:"qiāng lín dàn yǔ",令人发指:"lìng rén fà zhǐ",转败为胜:"zhuǎn bài wéi shèng",转弯抹角:"zhuǎn wān mò jiǎo",在劫难逃:"zài jié nán táo",正当防卫:"zhèng dàng fáng wèi",不足为怪:"bù zú wéi guài",难兄难弟:"nàn xiōng nàn dì",咿咿呀呀:"yī yī yā yā",弹尽粮绝:"dàn jìn liáng jué",阿谀奉承:"ē yú fèng chéng",稀里哗啦:"xī li huā lā",返老还童:"fǎn lǎo huán tóng",好高骛远:"hào gāo wù yuǎn",鹿死谁手:"lù sǐ shéi shǒu",差强人意:"chā qiáng rén yì",大吹大擂:"dà chuī dà léi",成家立业:"chéng jiā lì yè",自怨自艾:"zì yuàn zì yì",负债累累:"fù zhài lěi lěi",古为今用:"gǔ wéi jīn yòng",入土为安:"rù tǔ wéi ān",下不为例:"xià bù wéi lì",一哄而上:"yì hōng ér shàng",没头苍蝇:"méi tóu cāng ying",天差地远:"tiān chā dì yuǎn",风卷残云:"fēng juǎn cán yún",多灾多难:"duō zāi duō nàn",乳臭未干:"rǔ xiù wèi gān",行家里手:"háng jiā lǐ shǒu",狼狈为奸:"láng bèi wéi jiān",处变不惊:"chǔ biàn bù jīng",一唱一和:"yí chàng yí hè",一念之差:"yí niàn zhī chā",金蝉脱壳:"jīn chán tuō qiào",滴滴答答:"dī dī dā dā",硕果累累:"shuò guǒ léi léi",好整以暇:"hào zhěng yǐ xiá",红得发紫:"hóng de fā zǐ",传为美谈:"chuán wéi měi tán",富商大贾:"fù shāng dà gǔ",四海为家:"sì hǎi wéi jiā",了若指掌:"liǎo ruò zhǐ zhǎng",大有可为:"dà yǒu kě wéi",出头露面:"chū tóu lù miàn",鼓鼓囊囊:"gǔ gu nāng nāng",窗明几净:"chuāng míng jī jìng",泰然处之:"tài rán chǔ zhī",怒发冲冠:"nù fà chōng guān",有机玻璃:"yǒu jī bō li",骨头架子:"gǔ tou jià zi",义薄云天:"yì bó yún tiān",一丁点儿:"yī dīng diǎn er",时来运转:"shí lái yùn zhuǎn",陈词滥调:"chén cí làn diào",化整为零:"huà zhěng wéi líng",火烧火燎:"huǒ shāo huǒ liǎo",干脆利索:"gàn cuì lì suǒ",吊儿郎当:"diào er láng dāng",广种薄收:"guǎng zhòng bó shōu",种瓜得瓜:"zhòng guā dé guā",种豆得豆:"zhòng dòu dé dòu",难舍难分:"nán shě nán fēn",歃血为盟:"shà xuè wéi méng",奋发有为:"fèn fā yǒu wéi",阴错阳差:"yīn cuò yáng chā",东躲西藏:"dōng duǒ xī cáng",烟熏火燎:"yān xūn huǒ liǎo",钻牛角尖:"zuān niú jiǎo jiān",乔装打扮:"qiáo zhuāng dǎ bàn",改弦更张:"gǎi xián gēng zhāng",河南梆子:"hé nán bāng zi",好吃懒做:"hào chī lǎn zuò",何乐不为:"hé lè bù wéi",大出风头:"dà chū fēng tóu",攻城掠地:"gōng chéng lüè dì",漂漂亮亮:"piào piào liang liang",折衷主义:"zhé zhōng zhǔ yì",大马哈鱼:"dà mǎ hǎ yú",绿树成荫:"lǜ shù chéng yīn",率先垂范:"shuài xiān chuí fàn",家长里短:"jiā cháng lǐ duǎn",宽大为怀:"kuān dà wéi huái",左膀右臂:"zuǒ bǎng yòu bì",一笑了之:"yí xiào liǎo zhī",天下为公:"tiān xià wéi gōng",还我河山:"huán wǒ hé shān",何足为奇:"hé zú wéi qí",好自为之:"hǎo zì wéi zhī",风姿绰约:"fēng zī chuò yuē",大雨滂沱:"dà yǔ pāng tuó",传为佳话:"chuán wéi jiā huà",吃里扒外:"chī lǐ pá wài",重操旧业:"chóng cāo jiù yè",小家子气:"xiǎo jiā zi qì",少不更事:"shào bù gēng shì",难分难舍:"nán fēn nán shě",添砖加瓦:"tiān zhuān jiā wǎ",是非分明:"shì fēi fēn míng",舍我其谁:"shě wǒ qí shuí",偏听偏信:"piān tīng piān xìn",量入为出:"liàng rù wéi chū",降龙伏虎:"xiáng lóng fú hǔ",钢化玻璃:"gāng huà bō li",正中下怀:"zhèng zhòng xià huái",以身许国:"yǐ shēn xǔ guó",一语中的:"yì yǔ zhòng dì",丧魂落魄:"sàng hún luò pò",三座大山:"sān zuò dà shān",济济一堂:"jǐ jǐ yì táng",好事之徒:"hào shì zhī tú",干净利索:"gàn jìng lì suǒ",出将入相:"chū jiàng rù xiàng",袅袅娜娜:"niǎo niǎo nuó nuó",狐狸尾巴:"hú li wěi ba",好逸恶劳:"hào yì wù láo",大而无当:"dà ér wú dàng",打马虎眼:"dǎ mǎ hu yǎn",板上钉钉:"bǎn shàng dìng dīng",吆五喝六:"yāo wǔ hè liù",虾兵蟹将:"xiā bīng xiè jiàng",水调歌头:"shuǐ diào gē tóu",数典忘祖:"shǔ diǎn wàng zǔ",人事不省:"rén shì bù xǐng",曲高和寡:"qǔ gāo hè guǎ",屡教不改:"lǚ jiào bù gǎi",互为因果:"hù wéi yīn guǒ",互为表里:"hù wéi biǎo lǐ",厚此薄彼:"hòu cǐ bó bǐ",过关斩将:"guò guān zhǎn jiàng",疙疙瘩瘩:"gē ge dā dā",大腹便便:"dà fù pián pián",走为上策:"zǒu wéi shàng cè",冤家对头:"yuān jia duì tóu",有隙可乘:"yǒu xì kě chèng",一鳞半爪:"yì lín bàn zhǎo",片言只语:"piàn yán zhǐ yǔ",开花结实:"kāi huā jié shí",经年累月:"jīng nián lěi yuè",含糊其词:"hán hú qí cí",寡廉鲜耻:"guǎ lián xiǎn chǐ",成年累月:"chéng nián lěi yuè",不徇私情:"bú xùn sī qíng",不当人子:"bù dāng rén zǐ",膀大腰圆:"bǎng dà yāo yuán",指腹为婚:"zhǐ fù wéi hūn",这么点儿:"zhè me diǎn er",意兴索然:"yì xīng suǒ rán",绣花枕头:"xiù huā zhěn tou",无的放矢:"wú dì fàng shǐ",望闻问切:"wàng wén wèn qiè",舍己为人:"shě jǐ wèi rén",穷年累月:"qióng nián lěi yuè",排难解纷:"pái nàn jiě fēn",处之泰然:"chǔ zhī tài rán",指鹿为马:"zhǐ lù wéi mǎ",危如累卵:"wēi rú lěi luǎn",天兵天将:"tiān bīng tiān jiàng",舍近求远:"shě jìn qiú yuǎn",南腔北调:"nán qiāng běi diào",苦中作乐:"kǔ zhōng zuò lè",厚积薄发:"hòu jī bó fā",臭味相投:"xiù wèi xiāng tóu",长幼有序:"zhǎng yòu yǒu xù",逼良为娼:"bī liáng wéi chāng",悲悲切切:"bēi bēi qiè qiē",败军之将:"bài jūn zhī jiàng",欺行霸市:"qī háng bà shì",削足适履:"xuē zú shì lǚ",先睹为快:"xiān dǔ wéi kuài",啼饥号寒:"tí jī háo hán",疏不间亲:"shū bú jiàn qīn",神差鬼使:"shén chāi guǐ shǐ",敲敲打打:"qiāo qiāo dǎ dǎ",平铺直叙:"píng pū zhí xù",没头没尾:"méi tóu mò wěi",寥寥可数:"liáo liáo kě shǔ",哼哈二将:"hēng hā èr jiàng",鹤发童颜:"hè fà tóng yán",各奔前程:"gè bèn qián chéng",弹无虚发:"dàn wú xū fā",大人先生:"dà rén xiān sheng",与民更始:"yǔ mín gēng shǐ",树碑立传:"shù bēi lì zhuàn",是非得失:"shì fēi dé shī",实逼处此:"shí bī chǔ cǐ",塞翁失马:"sài wēng shī mǎ",日薄西山:"rì bó xī shān",切身体会:"qiè shēn tǐ huì",片言只字:"piàn yán zhǐ zì",跑马卖解:"pǎo mǎ mài xiè",宁折不弯:"nìng zhé bù wān",零零散散:"líng líng sǎn sǎn",量体裁衣:"liàng tǐ cái yī",连中三元:"lián zhòng sān yuán",礼崩乐坏:"lǐ bēng yuè huài",不为已甚:"bù wéi yǐ shèn",转悲为喜:"zhuǎn bēi wéi xǐ",以眼还眼:"yǐ yǎn huán yǎn",蔚为大观:"wèi wéi dà guān",未为不可:"wèi wéi bù kě",童颜鹤发:"tóng yán hè fà",朋比为奸:"péng bǐ wéi jiān",莫此为甚:"mò cǐ wéi shèn",夹枪带棒:"jiā qiāng dài bàng",富商巨贾:"fù shāng jù jiǎ",淡然处之:"dàn rán chǔ zhī",箪食壶浆:"dān shí hú jiāng",创巨痛深:"chuāng jù tòng shēn",草长莺飞:"cǎo zhǎng yīng fēi",坐视不救:"zuò shī bú jiù",以己度人:"yǐ jǐ duó rén",随行就市:"suí háng jiù shì",文以载道:"wén yǐ zài dào",文不对题:"wén bú duì tí",铁板钉钉:"tiě bǎn dìng dīng",身体发肤:"shēn tǐ fà fū",缺吃少穿:"quē chī shǎo chuān",目无尊长:"mù wú zūn zhǎng",吉人天相:"jí rén tiān xiàng",毁家纾难:"huǐ jiā shū nàn",钢筋铁骨:"gāng jīn tiě gǔ",丢卒保车:"diū zú bǎo jū",丢三落四:"diū sān là sì",闭目塞听:"bì mù sè tīng",削尖脑袋:"xuē jiān nǎo dài",为非作恶:"wéi fēi zuò è",人才难得:"rén cái nán dé",情非得已:"qíng fēi dé yǐ",切中要害:"qiè zhòng yào hài",火急火燎:"huǒ jí huǒ liǎo",画地为牢:"huà dì wéi láo",好酒贪杯:"hào jiǔ tān bēi",长歌当哭:"cháng gē dàng kū",载沉载浮:"zài chén zài fú",遇难呈祥:"yù nàn chéng xiáng",榆木疙瘩:"yú mù gē da",以邻为壑:"yǐ lín wéi hè",洋为中用:"yáng wéi zhōng yòng",言为心声:"yán wéi xīn shēng",言必有中:"yán bì yǒu zhòng",图穷匕见:"tú qióng bǐ xiàn",滂沱大雨:"páng tuó dà yǔ",目不暇给:"mù bù xiá jǐ",量才录用:"liàng cái lù yòng",教学相长:"jiào xué xiāng zhǎng",悔不当初:"huǐ bù dāng chū",呼幺喝六:"hū yāo hè liù",不足为训:"bù zú wéi xùn",不拘形迹:"bù jū xíng jī",傍若无人:"páng ruò wú rén",罪责难逃:"zuì zé nán táo",自我吹嘘:"zì wǒ chuī xū",转祸为福:"zhuǎn huò wéi fú",勇冠三军:"yǒng guàn sān jūn",易地而处:"yì dì ér chǔ",卸磨杀驴:"xiè mò shā lǘ",玩儿不转:"wán ér bú zhuàn",天道好还:"tiān dào hǎo huán",身单力薄:"shēn dān lì bó",撒豆成兵:"sǎ dòu chéng bīng",片纸只字:"piàn zhǐ zhī zì",宁缺毋滥:"nìng quē wú làn",没没无闻:"mò mò wú wén",量力而为:"liàng lì ér wéi",历历可数:"lì lì kě shǔ",口碑载道:"kǒu bēi zài dào",君子好逑:"jūn zǐ hǎo qiú",好为人师:"hào wéi rén shī",豪商巨贾:"háo shāng jù jiǎ",各有所好:"gè yǒu suǒ hào",度德量力:"duó dé liàng lì",指天为誓:"zhǐ tiān wéi shì",逸兴遄飞:"yì xìng chuán fēi",心宽体胖:"xīn kuān tǐ pán",为德不卒:"wéi dé bù zú",天下为家:"tiān xià wéi jiā",视为畏途:"shì wéi wèi tú",三灾八难:"sān zāi bā nàn",沐猴而冠:"mù hóu ér guàn",哩哩啦啦:"lī li lā lā",见缝就钻:"jiàn fèng jiù zuān",夹层玻璃:"jiā céng bō li",急公好义:"jí gōng hào yì",积年累月:"jī nián lěi yuè",划地为牢:"huá dì wéi láo",更名改姓:"gēng míng gǎi xìng",奉为圭臬:"fèng wéi guī niè",多难兴邦:"duō nàn xīng bāng",不破不立:"bú pò bú lì",坐地自划:"zuò dì zì huá",坐不重席:"zuò bù chóng xí",坐不窥堂:"zuò bù kuī táng",作嫁衣裳:"zuò jià yī shang",左枝右梧:"zuǒ zhī yòu wú",左宜右有:"zuǒ yí yòu yǒu",钻头觅缝:"zuān tóu mì fèng",钻天打洞:"zuān tiān dǎ dòng",钻皮出羽:"zuān pí chū yǔ",钻火得冰:"zuān huǒ dé bīng",钻洞觅缝:"zuàn dòng mì féng",钻冰求火:"zuān bīng qiú huǒ",子为父隐:"zǐ wéi fù yǐn",擢发难数:"zhuó fà nán shǔ",着人先鞭:"zhuó rén xiān biān",斫雕为朴:"zhuó diāo wéi pǔ",锥处囊中:"zhuī chǔ náng zhōng",椎心饮泣:"chuí xīn yǐn qì",椎心泣血:"chuí xīn qì xuè",椎牛飨士:"chuí niú xiǎng shì",椎牛歃血:"chuí niú shà xuè",椎牛发冢:"chuí niú fà zhǒng",椎埋屠狗:"chuí mái tú gǒu",椎埋狗窃:"chuí mái gǒu qiè",壮发冲冠:"zhuàng fā chōng guàn",庄严宝相:"zhuāng yán bǎo xiàng",转愁为喜:"zhuǎn chóu wéi xǐ",转嗔为喜:"zhuǎn chēn wéi xǐ",拽巷啰街:"zhuài xiàng luó jiē",拽耙扶犁:"zhuāi pá fú lí",拽布拖麻:"zhuài bù tuō má",箸长碗短:"zhù cháng wǎn duǎn",铸剑为犁:"zhù jiàn wéi lí",杼柚其空:"zhù yòu qí kōng",杼柚空虚:"zhù yòu kōng xū",助天为虐:"zhù tiān wéi nüè",属垣有耳:"zhǔ yuán yǒu ěr",属毛离里:"zhǔ máo lí lǐ",属辞比事:"zhǔ cí bǐ shì",逐物不还:"zhú wù bù huán",铢量寸度:"zhū liáng cùn duó",铢两悉称:"zhū liǎng xī chèn",侏儒观戏:"zhū rú guān xì",朱轓皁盖:"zhū fān zào gài",昼度夜思:"zhòu duó yè sī",诪张为幻:"zhōu zhāng wéi huàn",重明继焰:"chóng míng jì yàn",众啄同音:"zhòng zhuó tóng yīn",众毛攒裘:"zhòng máo cuán qiú",众好众恶:"zhòng hào zhòng wù",擿埴索涂:"zhāi zhí suǒ tú",稚齿婑媠:"zhì chǐ wǒ tuó",至当不易:"zhì dàng bú yì",指皂为白:"zhǐ zào wéi bái",指雁为羹:"zhǐ yàn wéi gēng",指树为姓:"zhǐ shù wéi xìng",指山说磨:"zhǐ shān shuō mò",止戈为武:"zhǐ gē wéi wǔ",枝干相持:"zhī gàn xiāng chí",枝大于本:"zh dà yú běn",支吾其词:"zhī wú qí cí",正身率下:"zhèng shēn shuài xià",正冠李下:"zhèng guàn lǐ xià",整冠纳履:"zhěng guān nà lǚ",整躬率物:"zhěng gōng shuài wù",整顿干坤:"zhěng dùn gàn kūn",针头削铁:"zhēn tóu xuē tiě",贞松劲柏:"zhēn sōng jìng bǎi",赭衣塞路:"zhě yī sè lù",折箭为誓:"shé jiàn wéi shì",折而族之:"zhé ér zú zhī",昭德塞违:"zhāo dé sè wéi",章句小儒:"zhāng jù xiǎo rú",湛恩汪濊:"zhàn ēn wāng huì",占风望气:"zhān fēng wàng qì",斩将搴旗:"zhǎn jiàng qiān qí",曾母投杼:"zēng mǔ tóu zhù",曾参杀人:"zēng shēn shā rén",造谣中伤:"zào yáo zhòng shāng",早占勿药:"zǎo zhān wù yào",凿龟数策:"záo guī shǔ cè",攒三聚五:"cuán sān jù wǔ",攒眉蹙额:"cuán mei cù é",攒零合整:"cuán líng hé zhěng",攒锋聚镝:"cuán fēng jù dí",载笑载言:"zài xiào zài yán",载酒问字:"zài jiǔ wèn zì",殒身不恤:"yǔn shēn bú xù",云舒霞卷:"yún shū xiá juǎn",月中折桂:"yuè zhōng shé guì",月落参横:"yuè luò shēn héng",鬻驽窃价:"yù nú qiè jià",鬻鸡为凤:"yù jī wéi fèng",遇难成祥:"yù nàn chéng xiáng",郁郁累累:"yù yù lěi lěi",玉卮无当:"yù zhī wú dàng",语笑喧阗:"yǔ xiào xuān tián",与世沉浮:"yǔ shì chén fú",与时消息:"yǔ shí xiāo xi",逾墙钻隙:"yú qiáng zuān xì",渔夺侵牟:"yú duó qīn móu",杅穿皮蠹:"yú chuān pí dù",余勇可贾:"yú yǒng kě gǔ",予智予雄:"yú zhì yú xióng",予取予求:"yú qǔ yú qiú",于家为国:"yú jiā wéi guó",有借无还:"yǒu jiè wú huán",有加无已:"yǒu jiā wú yǐ",有国难投:"yǒu guó nán tóu",游必有方:"yóu bì yǒu fāng",油干灯尽:"yóu gàn dēng jìn",尤云殢雨:"yóu yún tì yǔ",庸中皦皦:"yōng zhōng jiǎo jiǎo",郢书燕说:"yǐng shū yān shuō",营蝇斐锦:"yíng yíng fēi jǐn",鹰心雁爪:"yīng xīn yàn zhǎo",莺吟燕儛:"yīng yín yàn wǔ",应天顺时:"yīng tiān shùn shí",印累绶若:"yìn léi shòu ruò",隐占身体:"yǐn zhàn shēn tǐ",饮犊上流:"yìn dú shàng liú",引绳切墨:"yǐn shéng qiē mò",龈齿弹舌:"yín chǐ dàn shé",因缘为市:"yīn yuán wéi shì",因树为屋:"yīn shù wéi wū",溢美溢恶:"yì měi yì wù",抑塞磊落:"yì sè lěi luò",倚闾望切:"yǐ lǘ wàng qiē",以意为之:"yǐ yì wéi zhī",以言为讳:"yǐ yán wéi huì",以疏间亲:"yǐ shū jiàn qīn",以水济水:"yǐ shuǐ jǐ shuǐ",以书为御:"yǐ shū wéi yù",以守为攻:"yǐ shǒu wéi gōng",以升量石:"yǐ shēng liáng dàn",以慎为键:"yǐ shèn wéi jiàn",以筌为鱼:"yǐ quán wéi yú",以利累形:"yǐ lì lěi xíng",以毁为罚:"yǐ huǐ wéi fá",以黑为白:"yǐ hēi wéi bái",以规为瑱:"yǐ guī wéi tiàn",以古为鉴:"yǐ gǔ wéi jiàn",以宫笑角:"yǐ gōng xiào jué",以法为教:"yǐ fǎ wéi jiào",以大恶细:"yǐ dà wù xì",遗世忘累:"yí shì wàng lěi",遗寝载怀:"yí qǐn zài huái",移的就箭:"yí dì jiù jiàn",依头缕当:"yī tóu lǚ dàng",衣租食税:"yì zū shí shuì",衣轻乘肥:"yì qīng chéng féi",衣裳之会:"yī shang zhī huì",衣单食薄:"yī dān shí bó",一还一报:"yì huán yí bào",叶公好龙:"yè gōng hào lóng",野调无腔:"yě diào wú qiāng",瑶池女使:"yáo chí nǚ shǐ",幺麽小丑:"yāo mó xiǎo chǒu",养精畜锐:"yǎng jīng xù ruì",卬首信眉:"áng shǒu shēn méi",洋洋纚纚:"yáng yáng sǎ sǎ",羊羔美酒:"yáng gāo měi jiǔ",扬风扢雅:"yáng fēng jié yǎ",燕昭市骏:"yān zhāo shì jùn",燕昭好马:"yān zhāo hǎo mǎ",燕石妄珍:"yān shí wàng zhēn",燕骏千金:"yān jùn qiān jīn",燕金募秀:"yān jīn mù xiù",燕驾越毂:"yān jià yuè gǔ",燕歌赵舞:"yān gē zhào wǔ",燕岱之石:"yān dài zhī shí",燕处危巢:"yàn chǔ wēi cháo",掞藻飞声:"shàn zǎo fēi shēng",偃革为轩:"yǎn gé wéi xuān",妍蚩好恶:"yán chī hǎo è",压良为贱:"yā liáng wéi jiàn",搀行夺市:"chān háng duó shì",泣数行下:"qì shù háng xià",当行出色:"dāng háng chū sè",秀出班行:"xiù chū bān háng",儿女成行:"ér nǚ chéng háng",大行大市:"dà háng dà shì",寻行数墨:"xún háng shǔ mò",埙篪相和:"xūn chí xiāng hè",血债累累:"xuè zhài lěi lěi",炫玉贾石:"xuàn yù gǔ shí",炫石为玉:"xuàn shí wéi yù",悬石程书:"xuán dàn chéng shū",悬狟素飡:"xuán huán sù cān",悬龟系鱼:"xuán guī xì yú",揎拳捋袖:"xuān quán luō xiù",轩鹤冠猴:"xuān hè guàn hóu",畜妻养子:"xù qī yǎng zǐ",羞人答答:"xiū rén dā dā",修鳞养爪:"xiū lín yǎng zhǎo",熊据虎跱:"xióng jù hǔ zhì",兄死弟及:"xiōng sǐ dì jí",腥闻在上:"xīng wén zài shàng",兴文匽武:"xīng wén yǎn wǔ",兴观群怨:"xìng guān qún yuàn",兴高彩烈:"xìng gāo cǎi liè",心手相应:"xīn shǒu xiāng yìng",心口相应:"xīn kǒu xiāng yīng",挟势弄权:"xié shì nòng quán",胁肩累足:"xié jiān lěi zú",校短量长:"jiào duǎn liáng cháng",小眼薄皮:"xiǎo yǎn bó pí",硝云弹雨:"xiāo yún dàn yǔ",鸮鸣鼠暴:"xiāo míng shǔ bào",削株掘根:"xuē zhū jué gēn",削铁无声:"xuē tiě wú shēng",削职为民:"xuē zhí wéi mín",削木为吏:"xuē mù wéi lì",想望风褱:"xiǎng wàng fēng huái",香培玉琢:"xiang pei yu zhuó",相鼠有皮:"xiàng shǔ yǒu pí",相时而动:"xiàng shí ér dòng",相切相磋:"xiāng qiē xiāng cuō",相女配夫:"xiàng nǚ pèi fū",相门有相:"xiàng mén yǒu xiàng",挦章撦句:"xián zhāng chě jù",先我着鞭:"xiān wǒ zhuó biān",习焉不察:"xí yān bù chá",歙漆阿胶:"shè qī ē jiāo",晰毛辨发:"xī máo biàn fà",悉索薄赋:"xī suǒ bó fù",雾鳞云爪:"wù lín yún zhǎo",物稀为贵:"wù xī wéi guì",碔砆混玉:"wǔ fū hùn yù",武断专横:"wǔ duàn zhuān héng",五石六鹢:"wǔ shí liù yì",五色相宣:"wǔ sè xiāng xuān",五侯七贵:"wǔ hóu qī guì",五侯蜡烛:"wǔ hòu là zhú",五羖大夫:"wǔ gǔ dà fū",吾自有处:"wú zì yǒu chǔ",无下箸处:"wú xià zhù chǔ",无伤无臭:"wú shāng wú xiù",无能为役:"wú néng wéi yì",无寇暴死:"wú kòu bào sǐ",无孔不钻:"wú kǒng bú zuàn",无间可乘:"wú jiān kě chéng",无间冬夏:"wú jiān dōng xià",无恶不为:"wú è bù wéi",无动为大:"wú dòng wéi dà",诬良为盗:"wū liáng wéi dào",握拳透爪:"wò quán tòu zhǎo",文武差事:"wén wǔ chāi shì",委委佗佗:"wēi wēi tuó tuó",惟日为岁:"wéi rì wéi suì",帷薄不修:"wéi bó bù xiū",为善最乐:"wéi shàn zuì lè",为山止篑:"wéi shān zhǐ kuì",为仁不富:"wéi rén bú fù",为裘为箕:"wéi qiú wéi jī",为民父母:"wéi mín fù mǔ",为虺弗摧:"wéi huǐ fú cuī",为好成歉:"wéi hǎo chéng qiàn",为鬼为蜮:"wéi guǐ wéi yù",望风响应:"wàng fēng xiǎng yīng",望尘僄声:"wàng chén piào shēng",往渚还汀:"wǎng zhǔ huán tīng",王贡弹冠:"wáng gòng dàn guàn",亡国大夫:"wáng guó dà fū",万贯家私:"wàn guàn jiā sī",晚食当肉:"wǎn shí dàng ròu",晚节不保:"wǎn jié bù bǎo",玩岁愒时:"wán suì kài shí",蛙蟆胜负:"wā má shèng fù",吞言咽理:"tūn yán yàn lǐ",颓垣断堑:"tuí yuán duàn qiàn",推干就湿:"tuī gàn jiù shī",剸繁决剧:"tuán fán jué jù",团头聚面:"tuán tóu jù miàn",兔丝燕麦:"tù sī yàn mài",兔头麞脑:"tù tóu zhāng nǎo",兔葵燕麦:"tù kuí yàn mài",吐哺握发:"tǔ bǔ wò fà",投传而去:"tóu zhuàn ér qù",头没杯案:"tóu mò bēi àn",头昏脑闷:"tóu hūn nǎo mèn",头会箕敛:"tóu kuài jī liǎn",头出头没:"tóu chū tóu mò",痛自创艾:"tòng zì chuāng yì",同恶相助:"tóng wù xiāng zhù",同恶相恤:"tóng wù xiāng xù",痌瘝在抱:"tōng guān zài bào",通文调武:"tōng wén diào wǔ",停留长智:"tíng liú zhǎng zhì",铁树开华:"tiě shù kāi huā",条贯部分:"tiáo guàn bù fēn",挑牙料唇:"tiǎo yá liào chún",挑么挑六:"tiāo yāo tiāo liù",挑唇料嘴:"tiǎo chún liào zuǐ",恬不为意:"tián bù wéi yì",恬不为怪:"tián bù wéi guài",天下为笼:"tiān xià wéi lóng",天台路迷:"tiān tái lù mí",天年不遂:"tiān nián bú suì",探囊胠箧:"tàn náng qū qiè",谭言微中:"tán yán wēi zhòng",谈言微中:"tán yán wēi zhòng",狧穅及米:"shì kāng jí mǐ",随物应机:"suí wù yīng jī",搜岩采干:"sōu yán cǎi gàn",宋斤鲁削:"sòng jīn lǔ xuē",松筠之节:"sōng yún zhī jié",四亭八当:"sì tíng bā dàng",四马攒蹄:"sì mǎ cuán tí",四不拗六:"sì bú niù liù",思所逐之:"sī suǒ zhú zhī",丝恩发怨:"sī ēn fà yuàn",硕望宿德:"shuò wàng xiǔ dé",铄古切今:"shuò gǔ qiē jīn",顺风而呼:"shùn fēng ér hū",顺风吹火:"shùn fēng chuī huǒ",水中著盐:"shuǐ zhōng zhuó yán",双柑斗酒:"shuāng gān dǒu jiǔ",数米而炊:"shǔ mǐ ér chuī",数米量柴:"shǔ mǐ liáng chái",数理逻辑:"shù lǐ luó ji",数黑论黄:"shǔ hēi lùn huáng",数白论黄:"shǔ bái lùn huáng",束缊还妇:"shù yūn huán fù",束蒲为脯:"shù pú wéi pú",束椽为柱:"shù chuán wéi zhù",书缺有间:"shū quē yǒu jiàn",手足重茧:"shǒu zú chóng jiǎn",手足异处:"shǒu zú yì chǔ",手脚干净:"shǒu jiǎo gàn jìng",手不应心:"shǒu bù yīng xīn",螫手解腕:"shì shǒu jiě wàn",释知遗形:"shì zhī yí xíng",适时应务:"shì shí yīng wù",适情率意:"shì qíng shuài yì",适当其冲:"shì dāng qí chōng",视为知己:"shì wéi zhī jǐ",使羊将狼:"shǐ yáng jiàng láng",食为民天:"shí wéi mín tiān",拾掇无遗:"shí duō wú yí",实与有力:"shí yù yǒu lì",石英玻璃:"shí yīng bō li",石室金匮:"shí shì jīn guì",什袭珍藏:"shí xí zhēn cáng",什伍东西:"shí wǔ dōng xī",什围伍攻:"shí wéi wǔ gōng",十魔九难:"shí mó jiǔ nàn",诗书发冢:"shī shū fà zhǒng",虱处裈中:"shī chǔ kūn zhōng",师直为壮:"shī zhí wéi zhuàng",尸居龙见:"shī jū lóng xiàn",圣经贤传:"shèng jīng xián zhuàn",圣君贤相:"shèng jūn xián xiàng",生拖死拽:"shēng tuō sǐ zhuài",审己度人:"shěn jǐ duó rén",神武挂冠:"shén wǔ guà guàn",神龙失埶:"shén lóng shī shì",深文曲折:"shēn wén qǔ shé",深厉浅揭:"shēn lì qiǎn qì",深谷为陵:"shēn gǔ wéi líng",深恶痛疾:"shēn wù tòng jí",深仇宿怨:"shēn chóu xiǔ yuàn",舍己为公:"shě jǐ wèi gōng",舍短取长:"shě duǎn qǔ cháng",舍策追羊:"shě cè zhuī yáng",蛇蝎为心:"shé xiē wéi xīn",少成若性:"shào chéng ruò xìng",上当学乖:"shàng dàng xué guāi",赏不当功:"shǎng bù dāng gōng",善自为谋:"shàn zì wéi móu",善为说辞:"shàn wéi shuō cí",善善恶恶:"shàn shàn wù è",善财难舍:"shàn cái nán shě",苫眼铺眉:"shān yǎn pū méi",讪牙闲嗑:"shàn yá xián kē",山阴乘兴:"shān yīn chéng xīng",山殽野湋:"shān yáo yě wéi",山溜穿石:"shān liù chuān shí",山节藻棁:"shān jié zǎo zhuō",杀鸡为黍:"shā jī wéi shǔ",色厉胆薄:"sè lì dǎn bó",桑荫未移:"sāng yīn wèi yí",桑荫不徙:"sāng yīn bù xǐ",桑土绸缪:"sāng tǔ chóu miù",桑户棬枢:"sāng hù juàn shū",三战三北:"sān zhàn sān běi",三瓦两舍:"sān wǎ liǎng shě",三人为众:"sān rén wèi zhòng",三差两错:"sān chā liǎng cuò",塞井焚舍:"sāi jǐng fén shě",洒心更始:"sǎ xīn gèng shǐ",洒扫应对:"sǎ sǎo yìng duì",软红香土:"ruǎn hóng xiāng tǔ",入吾彀中:"rù wú gòu zhōng",入铁主簿:"rù tiě zhǔ bù",入理切情:"rù lǐ qiē qíng",汝成人耶:"rǔ chéng rén yé",如水投石:"rú shuǐ tóu shí",如切如磋:"rú qiē rú cuō",如登春台:"rú dēng chūn tái",肉薄骨并:"ròu bó gǔ bìng",柔情绰态:"róu qíng chuò tài",戎马劻勷:"róng mǎ kuāng ráng",日中为市:"rì zhōng wéi shì",日月参辰:"rì yuè shēn chén",日省月修:"rì xǐng yuè xiū",日削月割:"rì xuē yuè gē",日省月试:"rì xǐng yuè shì",任达不拘:"rèn dá bù jū",人言藉藉:"rén yán jí jí",人模狗样:"rén mú gǒu yàng",人莫予毒:"rén mò yú dú",热熬翻饼:"rè áo fān bǐng",圈牢养物:"juàn láo yǎng wù",取予有节:"qǔ yǔ yǒu jié",诎要桡腘:"qū yāo ráo guó",穷形尽相:"qióng xíng jìn xiàng",情凄意切:"qíng qī yì qiè",情见势屈:"qíng xiàn shì qū",情见乎辞:"qíng xiàn hū cí",清都绛阙:"qīng dōu jiàng què",倾肠倒肚:"qīng cháng dào dǔ",青紫被体:"qīng zǐ pī tǐ",青林黑塞:"qīng lín hēi sài",螓首蛾眉:"qín shǒu é méi",琴瑟之好:"qín sè zhī hào",且住为佳:"qiě zhù wéi jiā",切树倒根:"qiē shù dǎo gēn",切理餍心:"qiē lǐ yàn xīn",切近的当:"qiē jìn de dāng",翘足引领:"qiáo zú yǐn lǐng",巧发奇中:"qiǎo fā qí zhòng",强嘴拗舌:"jiàng zuǐ niù shé",强直自遂:"qiáng zhí zì suí",强死强活:"qiǎng sǐ qiǎng huó",强食自爱:"qiǎng shí zì ài",强食靡角:"qiǎng shí mí jiǎo",强弓劲弩:"qiáng gōng jìng nǔ",强聒不舍:"qiǎng guō bù shě",强凫变鹤:"qiáng fú biàn hè",强而后可:"qiǎng ér hòu kě",强得易贫:"qiǎng dé yì pín",遣兴陶情:"qiǎn xìng táo qíng",牵羊担酒:"qiān yáng dān jiǔ",千了百当:"qiān liǎo bǎi dàng",泣下如雨:"qì xià rú yǔ",起偃为竖:"qǐ yǎn wéi shù",岂弟君子:"kǎi tì jūn zǐ",綦溪利跂:"qí xī lì qí",棋输先著:"qí shū xiān zhuó",齐王舍牛:"qí wáng shě niú",欺天诳地:"qī tiān kuáng dì",普天率土:"pǔ tiān shuài tǔ",铺胸纳地:"pū xiōng nà dì",铺锦列绣:"pū jǐn liè xiù",破家为国:"pò jiā wèi guó",破觚为圜:"pò gū wéi yuán",萍飘蓬转:"píng piāo péng zhuàn",帡天极地:"píng tiān jí dì",屏声息气:"bǐng shēng xī qì",凭几据杖:"píng jī jù zhàng",贫嘴薄舌:"pín zuǐ bó shé",片语只辞:"piàn yǔ zhī cí",披发文身:"pī fà wén shēn",烹龙炮凤:"pēng lóng páo fèng",炰鳖脍鲤:"fǒu biē kuài lǐ",庞眉皓发:"páng méi hào fà",攀花折柳:"pān huā zhé liǔ",攀蟾折桂:"pān chán shé guì",女大难留:"nǚ dà nán liú",弄玉吹箫:"nòng yù chuī xiāo",弄管调弦:"nòng guǎn tiáo xián",弄粉调朱:"nòng fěn diào zhū",浓抹淡妆:"nóng mò dàn zhuāng",捻土为香:"niǎn tǔ wéi xiāng",年谊世好:"nián yì shì hǎo",年华垂暮:"nián huá chuí mù",儗不于伦:"nǐ bù yú lún",泥而不滓:"ní ér bù zǐ",能者为师:"néng zhě wéi shī",能不称官:"néng bú chèn guān",挠直为曲:"náo zhí wéi qū",难进易退:"nán jìn yì tuì",难得糊涂:"nán dé hú tú",南蛮鴂舌:"nán mán jué shé",南贩北贾:"nán fàn běi gǔ",牧猪奴戏:"mù zhū nú xì",目眢心忳:"mù yuān xīn tún",目挑心招:"mù tiǎo xīn zhāo",目量意营:"mù liàng yì yíng",木头木脑:"mù tóu mù nǎo",木干鸟栖:"mù gàn niǎo qī",侔色揣称:"móu sè chuǎi chèn",莫予毒也:"mò yú dú yě",抹粉施脂:"mò fěn shī zhī",磨砻镌切:"mó lóng juān qiē",磨棱刓角:"mó léng wán jiǎo",摸门不着:"mō mén bù zháo",摸不着边:"mō bù zhuó biān",命中注定:"mìng zhōng zhù dìng",鸣鹤之应:"míng hè zhī yìng",明效大验:"míng xiào dà yàn",名我固当:"míng wǒ gù dāng",邈处欿视:"miǎo chǔ kǎn shì",黾穴鸲巢:"měng xué qú cháo",绵里薄材:"mián lǐ bó cái",靡有孑遗:"mǐ yǒu jié yí",靡衣偷食:"mǐ yī tōu shí",迷恋骸骨:"mí liàn hái gǔ",扪参历井:"mén shēn lì jǐng",门单户薄:"mén dān hù bó",昧旦晨兴:"mèi dàn chén xīng",冒名接脚:"mào míng jiē jiǎo",毛遂堕井:"máo suí duò jǐng",毛发倒竖:"máo fā dǎo shù",卖文为生:"mài wén wéi shēng",卖李钻核:"mài lǐ zuān hé",买椟还珠:"mǎi dú huán zhū",埋三怨四:"mán sān yuàn sì",马入华山:"mǎ rù huá shān",落魄江湖:"luò pò jiāng hú",落落难合:"luò luò nán hé",落草为寇:"luò cǎo wéi kòu",罗织构陷:"luó zhī gòu xiàn",鸾凤和鸣:"luán fèng hè míng",率由旧章:"shuài yóu jiù zhāng",率土同庆:"shuài tǔ tóng qìng",率兽食人:"shuài shòu shí rén",率土归心:"shuài tǔ guī xīn",率马以骥:"shuài mǎ yǐ jì",率尔成章:"shuài ěr chéng zhāng",鲁斤燕削:"lǔ jīn yàn xuē",漏尽更阑:"lòu jìn gēng lán",笼鸟槛猿:"lóng niǎo jiàn yuán",笼鸟池鱼:"lóng niǎo chí yú",龙游曲沼:"lóng yóu qū zhǎo",龙血玄黄:"lóng xuè xuán huáng",龙雕凤咀:"lóng diāo fèng jǔ",六尺之讬:"liù chǐ zhī tuō",令原之戚:"líng yuán zhī qī",令人捧腹:"lìng rén pěng fù",陵劲淬砺:"líng jìng cuì lì",临敌易将:"lín dí yì jiàng",裂裳衣疮:"liè shang yī chuāng",裂冠毁冕:"liè guàn huǐ miǎn",了无惧色:"liǎo wú jù sè",了身达命:"liǎo shēn dá mìng",了然无闻:"liǎo rán wú wén",了不可见:"liǎo bù kě jiàn",了不长进:"liǎo bù zhǎng jìn",燎发摧枯:"liǎo fà cuī kū",审时度势:"shěn shí duó shì",量小力微:"liàng xiǎo lì wēi",相时度力:"xiāng shí duó lì",量枘制凿:"liàng ruì zhì záo",量如江海:"liàng rú jiāng hǎi",量金买赋:"liàng jīn mǎi fù",量己审分:"liàng jǐ shěn fēn",敛骨吹魂:"liǎn gǔ chuī hún",詈夷为跖:"lì yí wéi zhí",利令志惛:"lì lìng zhì hūn",李广不侯:"lǐ guǎng bú hòu",礼为情貌:"lǐ wéi qíng mào",礼让为国:"lǐ ràng wéi guó",犁生骍角:"lí shēng xīng jiǎo",离本徼末:"lí běn jiǎo mò",楞眉横眼:"léng méi hèng yǎn",擂天倒地:"léi tiān dǎo dì",累足成步:"lěi zú chéng bù",累瓦结绳:"lěi wǎ jié shéng",累土至山:"lěi tǔ zhì shān",累土聚沙:"lěi tǔ jù shā",累卵之危:"lěi luǎn zhī wēi",累累如珠:"lěi lěi rú zhū",累块积苏:"lěi kuài jī sū",乐山乐水:"lè shān lè shuǐ",潦原浸天:"lǎo yuán jìn tiān",老师宿儒:"lǎo shī xiǔ rú",牢什古子:"láo shí gǔ zi",琅嬛福地:"láng huán fú dì",揆情度理:"kuí qíng duó lǐ",旷日累时:"kuàng rì lěi shí",匡救弥缝:"kuāng jiù mí fèng",枯树生华:"kū shù shēng huā",口轻舌薄:"kǒu qīng shé bó",口角生风:"kǒu jiǎo shēng fēng",口角春风:"kǒu jiǎo chūn fēng",口角风情:"kǒu jiǎo fēng qíng",口干舌焦:"kǒu gān shé jiāo",口腹之累:"kǒu fù zhī lěi",空腹便便:"kōng fù pián pián",嗑牙料嘴:"kē yá liào zuǐ",刻木为鹄:"kè mù wéi hú",咳珠唾玉:"ké zhū tuò yù",咳唾成珠:"ké tuò chéng zhū",抗颜为师:"kàng yán wéi shī",开华结果:"kāi huā jié guǒ",峻阪盐车:"jùn bǎn yán chē",嚼铁咀金:"jiáo tiě jǔ jīn",嚼墨喷纸:"jué mò pēn zhǐ",倔头强脑:"juè tóu jiàng nǎo",倔头倔脑:"juè tóu juè nǎo",倦鸟知还:"juàn niǎo zhī huán",卷席而葬:"juǎn xí ér zàng",卷甲倍道:"juǎn jiǎ bèi dào",聚米为山:"jù mǐ wéi shān",举手相庆:"jǔ shǒu xiāng qìng",举世混浊:"jǔ shì hún zhuó",鞠为茂草:"jū wéi mào cǎo",拘神遣将:"jū shén qiǎn jiàng",居下讪上:"jū xià shàn shàng",久要不忘:"jiǔ yāo bú wàng",九转功成:"jiǔ zhuǎn gōng chéng",九蒸三熯:"jiǔ zhēng sān hàn",敬业乐群:"jìng yè lè qún",井底虾蟆:"jǐng dǐ xiā má",旌旗卷舒:"jīng qí juǎn shū",荆棘载途:"jīng jí zài tú",禁舍开塞:"jìn shě kāi sāi",祲威盛容:"jìn wēi shèng róng",进退消长:"jìn tuì xiāo cháng",进退应矩:"jìn tuì yīng jǔ",进退触籓:"jìn tuì chù fān",进退跋疐:"jìn tuì bá zhì",尽多尽少:"jǐn duō jǐn shǎo",锦囊还矢:"jǐn náng huán shǐ",矜己自饰:"jīn jǐ zì shì",矜功负气:"jīn gōng fù qì",津关险塞:"jīn guān xiǎn sài",金吾不禁:"jīn wú bú jìn",金翅擘海:"jīn chì bāi hǎi",解衣衣人:"jiě yī yī rén",解人难得:"jiě rén nán dé",解铃系铃:"jiě líng xì líng",解发佯狂:"jiě fà yáng kuáng",诘屈磝碻:"jié qū áo qiāo",教猱升木:"jiāo náo shēng mù",较瘦量肥:"jiào shòu liàng féi",角立杰出:"jiǎo lì jié chū",焦沙烂石:"jiāo shā làn shí",骄儿騃女:"jiāo ér sì nǚ",浇风薄俗:"jiāo fēng bó sú",降妖捉怪:"xiáng yāo zhuō guài",将取固予:"jiāng qǔ gù yǔ",将门有将:"jiàng mén yǒu jiàng",将夺固与:"jiāng duó gù yǔ",槛花笼鹤:"jiàn huā lóng hè",鉴影度形:"jiàn yǐng duó xíng",渐不可长:"jiàn bù kě zhǎng",见素抱朴:"xiàn sù bào pǔ",见弃于人:"jiàn qì yú rén",简丝数米:"jiǎn sī shǔ mǐ",俭不中礼:"jiǎn bú zhòng lǐ",间见层出:"jiàn xiàn céng chū",尖嘴薄舌:"jiān zuǐ bó shé",甲冠天下:"jiǎ guàn tiān xià",葭莩之亲:"jiā fú zhī qīn",家累千金:"jiā lèi qiān jīn",家给人足:"jiā jǐ rén zú",家道从容:"jiā dào cóng róng",夹袋人物:"jiā dài rén wù",霁风朗月:"jì fēng lǎng yuè",寄兴寓情:"jì xìng yù qíng",计深虑远:"jì shēn lǜ yuǎn",计功量罪:"jì gōng liàng zuì",掎裳连襼:"jǐ shang lián yì",虮虱相吊:"jǐ shī xiāng diào",疾不可为:"jí bù kě wéi",极深研几:"jí shēn yán jī",及宾有鱼:"jí bīn yǒu yú",激薄停浇:"jī bó tíng jiāo",积素累旧:"jī sù lěi jiù",积时累日:"jī shí lěi rì",积露为波:"jī lù wéi bō",积德累功:"jī dé lěi gōng",积谗糜骨:"jī chán méi gǔ",击排冒没:"jī pái mào mò",祸为福先:"huò wéi fú xiān",祸福相依:"huò fú xiāng yī",获隽公车:"huò jùn gōng chē",混应滥应:"hùn yīng làn yīng",毁舟为杕:"huǐ zhōu wéi duò",毁钟为铎:"huǐ zhōng wéi duó",毁冠裂裳:"huǐ guān liè cháng",晦盲否塞:"huì máng pǐ sè",回船转舵:"huí chuán zhuàn duò",潢池盗弄:"huáng chí dào nòng",黄冠草履:"huáng guàn cǎo lǚ",黄发儿齿:"huáng fà ér chǐ",黄发垂髫:"huáng fà chuí tiáo",还珠返璧:"huán zhū fǎn bì",还年驻色:"huán nián zhù sè",还年却老:"huán nián què lǎo",坏裳为裤:"huài shang wéi kù",画荻和丸:"huà dí huò wán",化枭为鸠:"huà xiāo wéi jiū",化腐为奇:"huà fǔ wéi qí",化鸱为凤:"huà chī wéi fèng",花不棱登:"huā bu lēng dēng",户限为穿:"hù xiàn wéi chuān",呼卢喝雉:"hū lú hè zhì",呼来喝去:"hū lái hè qù",呼不给吸:"hū bù jǐ xī",厚味腊毒:"hòu wèi xī dú",厚德载物:"hòu dé zài wù",鸿渐于干:"hóng jiàn yú gàn",洪炉燎发:"hóng lú liáo fà",红绳系足:"hóng shéng jì zú",红不棱登:"hóng bu lēng dēng",横抢硬夺:"hèng qiǎng yìng duó",横恩滥赏:"hèng ēn làn shǎng",恨海难填:"hèn hǎi nán tián",鹤发鸡皮:"hè fà jī pí",涸思干虑:"hé sī gān lǜ",河涸海干:"hé hé hǎi gān",和颜说色:"hé yán yuè sè",合从连衡:"hé zòng lián héng",浩浩汤汤:"hào hào shāng shāng",好勇斗狠:"hào yǒng dòu hěn",好问则裕:"hào wèn zé yù",好为事端:"hào wéi shì duān",好问决疑:"hào wèn jué yí",好生之德:"hào shēng zhī dé",好奇尚异:"hǎo qí shàng yì",好恶不同:"hǎo è bù tóng",好丹非素:"hào dān fēi sù",豪干暴取:"háo gàn bào qǔ",毫发不爽:"háo fà bù shuǎng",寒酸落魄:"hán suān luò pò",含英咀华:"hán yīng jǔ huá",含糊不明:"hán hú bù míng",过为已甚:"guò wéi yǐ shèn",桂折兰摧:"guì shé lán cuī",规旋矩折:"guī xuán jǔ shé",广文先生:"guǎng wén xiān sheng",广陵散绝:"guǎng líng sǎn jué",冠山戴粒:"guàn shān dài lì",冠屦倒施:"guàn jù dǎo shī",挂席为门:"guà xí wéi mén",寡见鲜闻:"guǎ jiàn xiǎn wén",瓜葛相连:"guā gé xiāng lián",鼓吻奋爪:"gǔ wěn fèn zhǎo",古调单弹:"gǔ diào dān tán",古调不弹:"gǔ diào bù tán",姑射神人:"gū yè shén rén",苟合取容:"gǒu hé qǔ róng",狗续侯冠:"gǒu xù hòu guàn",钩爪锯牙:"gōu zhǎo jù yá",共枝别干:"gòng zhī bié gàn",共为唇齿:"gòng wéi chún chǐ",拱手而降:"gǒng shǒu ér xiáng",拱肩缩背:"gǒng jiān suō bèi",功薄蝉翼:"gōng bó chán yì",弓调马服:"gōng diào mǎ fú",更姓改物:"gēng xìng gǎi wù",更仆难数:"gēng pú nán shǔ",更令明号:"gēng lìng míng hào",更待干罢:"gèng dài gàn bà",更唱迭和:"gēng chàng dié hé",更长梦短:"gēng cháng mèng duǎn",各色名样:"gè sè míng yàng",格格不纳:"gé gé bú nà",格格不吐:"gé gé bù tǔ",告朔饩羊:"gù shuò xì yáng",膏车秣马:"gào chē mò mǎ",高义薄云:"gāo yì bó yún",岗头泽底:"gāng tóu zé dǐ",敢为敢做:"gǎn wéi gǎn zuò",甘分随时:"gān fèn suí shí",甘处下流:"gān chǔ xià liú",干啼湿哭:"gàn tí shī kū",干名犯义:"gàn míng fàn yì",干将莫邪:"gān jiāng mò yé",干城之将:"gān chéng zhī jiàng",腹载五车:"fù zài wǔ chē",父债子还:"fù zhài zǐ huán",父为子隐:"fù wéi zǐ yǐn",辅世长民:"fǔ shì zhǎng mín",福为祸始:"fú wéi huò shǐ",符号逻辑:"fú hào luó jí",浮收勒折:"fú shōu lè shé",肤受之愬:"fū shòu zhī sù",否终则泰:"pǐ zhōng zé tài",佛头著粪:"fó tóu zhuó fèn",奉为楷模:"fèng wéi kǎi mó",凤靡鸾吪:"fèng mǐ luán é",封豨修蛇:"fēng xī xiū shé",风影敷衍:"fēng yǐng fū yǎn",丰屋蔀家:"fēng wū bù jiā",粪土不如:"fèn tǔ bù rú",分风劈流:"fēn fēng pǐ liú",沸沸汤汤:"fèi fèi shāng shāng",菲食薄衣:"fěi shí bó yī",飞将数奇:"fēi jiàng shù qí",放辟邪侈:"fàng pì xié chǐ",方领圆冠:"fāng lǐng yuán guàn",犯而不校:"fàn ér bú jiào",返本还源:"fǎn běn huán yuán",反劳为逸:"fǎn láo wéi yì",法轮常转:"fǎ lún cháng zhuàn",罚不当罪:"fá bù dāng zuì",发引千钧:"fà yǐn qiān jūn",发奸擿伏:"fā jiān tī fú",发短心长:"fà duǎn xīn cháng",二竖为虐:"èr shù wéi nüè",儿女心肠:"ér nǚ xīn cháng",儿女亲家:"ér nǚ qìng jiā",遏恶扬善:"è wù yáng shàn",饿殍枕藉:"è piǎo zhěn jí",饿殍载道:"è piǎo zài dào",恶醉强酒:"wù zuì qiǎng jiǔ",恶意中伤:"è yì zhòng shāng",恶湿居下:"wù shī jū xià",恶居下流:"wù jū xià liú",恶不去善:"wù bú qù shàn",扼吭夺食:"è háng duó shí",扼襟控咽:"è jīn kòng yān",峨峨汤汤:"é é shāng shāng",屙金溺银:"ē jīn niào yín",朵颐大嚼:"duǒ yí dà jiáo",夺人所好:"duó rén suǒ hào",多言数穷:"duō yán shuò qióng",多文为富:"duō wén wéi fù",多端寡要:"duō duān guǎ yào",多财善贾:"duō cái shàn gǔ",遁世无闷:"dùn shì wú mèn",遁迹黄冠:"dùn jì huáng guàn",堆案盈几:"duī àn yíng jī",断还归宗:"duàn huán guī zōng",短见薄识:"duǎn jiàn bó shí",蠹居棊处:"dù jū qí chǔ",度己以绳:"duó jǐ yǐ shéng",杜默为诗:"dù mò wéi shī",杜鹃啼血:"dù juān tí xuè",笃近举远:"dǔ jìn jǔ yuǎn",独有千秋:"dú yǒu qiān qiū",读书得间:"dú shū dé jiàn",斗转参横:"dǒu zhuǎn shēn héng",兜肚连肠:"dōu dǔ lián cháng",洞见症结:"dòng jiàn zhèng jié",恫疑虚喝:"dòng yí xū hè",动中窾要:"dòng zhōng kuǎn yào",东鸣西应:"dōng míng xī yīng",东鳞西爪:"dōng lín xī zhǎo",东量西折:"dōng liàng xī shé",东家西舍:"dōng jiā xī shè",东扯西拽:"dōng chě xī zhuāi",鼎铛有耳:"dǐng chēng yǒu ěr",鼎铛玉石:"dǐng chēng yù shí",钉头磷磷:"dīng tóu lín lín",跌宕不羁:"diē dàng bù jī",跌弹斑鸠:"diē dàn bān jiū",雕心雁爪:"diāo xīn yàn zhǎo",颠倒衣裳:"diān dǎo yī cháng",德薄能鲜:"dé bó néng xiǎn",得马折足:"dé mǎ shé zú",蹈其覆辙:"dǎo qí fù zhé",捣虚撇抗:"dǎo xū piē kàng",倒载干戈:"dào zài gān gē",倒裳索领:"dào cháng suǒ lǐng",倒果为因:"dào guǒ wéi yīn",叨在知己:"tāo zài zhī jǐ",叨陪末座:"tāo péi mò zuò",党豺为虐:"dǎng chái wéi nüè",当轴处中:"dāng zhóu chǔ zhōng",当着不着:"dāng zhuó bù zhuó",当务始终:"dāng wù shǐ zhōng",淡汝浓抹:"dàn rǔ nóng mǒ",弹丸脱手:"tán wán tuō shǒu",弹铗无鱼:"dàn jiá wú yú",箪食瓢饮:"dān sì piáo yǐn",大璞不完:"dà pú bù wán",大明法度:"dà míng fǎ dù",大车以载:"dà chē yǐ zài",打闷葫芦:"dǎ mèn hú lu",沓来踵至:"tà lái zhǒng zhì",厝火燎原:"cuò huǒ liǎo yuán",撮科打哄:"cuō kē dǎ hòng",寸积铢累:"cùn jī zhū lěi",啛啛喳喳:"cuì cuì chā chā",摧折豪强:"cuī zhé háo qiáng",摧刚为柔:"cuī gāng wéi róu",从俗就简:"cóng sú jiù jiǎn",此发彼应:"cǐ fā bǐ yīng",此唱彼和:"cǐ chàng bǐ hè",慈悲为本:"cí bēi wéi běn",纯属骗局:"chún shǔ piàn jú",春笋怒发:"chūn sǔn nù fā",垂头搨翼:"chuí tóu tà yì",传为笑谈:"chuán wéi xiào tán",传风扇火:"chuán fēng shān huǒ",穿红着绿:"chuān hóng zhuó lǜ",触处机来:"chù chǔ jī lái",处尊居显:"chǔ zūn jū xiǎn",处堂燕雀:"chǔ táng yàn què",处实效功:"chǔ shí xiào gōng",处高临深:"chǔ gāo lín shēn",出入无间:"chū rù wú jiān",出门应辙:"chū mén yīng zhé",出处语默:"chū chǔ yǔ mò",出处殊途:"chū chǔ shū tú",出处进退:"chū chǔ jìn tuì",愁山闷海:"chóu shān mèn hǎi",冲冠眦裂:"chōng guàn zì liè",齿牙为祸:"chǐ yá wéi huò",尺二冤家:"chǐ èr yuān jia",尺短寸长:"chǐ duǎn cùn cháng",尺寸之功:"chǐ cùn zhī gōng",城北徐公:"chéng běi xú gōng",成败兴废:"chéng bài xīng fèi",趁水和泥:"chèn shuǐ huò ní",称雨道晴:"chēng yǔ dào qíng",称体载衣:"chēng tǐ zài yī",称体裁衣:"chèn tǐ cái yī",称家有无:"chèn jiā yǒu wú",称德度功:"chēng dé duó gōng",沉吟章句:"chén yín zhāng jù",沉吟不决:"chén yín bù jué",沉疴宿疾:"chén kē sù jí",扯纤拉烟:"chě qiàn lā yān",扯顺风旗:"chě shùn fēng qí",车载船装:"chē zǎi chuán zhuāng",朝升暮合:"zhāo shēng mù gě",朝攀暮折:"zhāo pān mù shé",超今冠古:"chāo jīn guàn gǔ",倡而不和:"chàng ér bú hè",畅所欲为:"chàng suǒ yù wéi",苌弘碧血:"cháng hóng bì xiě",长幼尊卑:"zhǎng yòu zūn bēi",长绳系日:"cháng shéng jì rì",长年三老:"zhǎng nián sān lǎo",长春不老:"cháng chūn bù lǎo",长傲饰非:"zhǎng ào shì fēi",昌亭旅食:"chāng tíng lǚ shí",禅絮沾泥:"chán xù zhān ní",差三错四:"chā sān cuò sì",层台累榭:"céng tái lěi xiè",层见迭出:"céng xiàn dié chū",藏踪蹑迹:"cáng zōng niè jì",苍蝇见血:"cāng yíng jiàn xiě",餐松啖柏:"cān sōng dàn bó",骖风驷霞:"cān fēng sì xiá",参伍错综:"cēn wǔ cuò zōng",参辰卯酉:"shēn chén mǎo yǒu",材优干济:"cái yōu gān jǐ",材薄质衰:"cái bó zhì shuāi",才大难用:"cái dà nán yòng",才薄智浅:"cái bó zhì qiǎn",不足为意:"bù zú wéi yì",不足为据:"bù zú wéi jù",不足为法:"bù zú wéi fǎ",不足齿数:"bù zú chǐ shǔ",不着疼热:"bù zhuó téng rè",不知薡蕫:"bù zhī dǐng dǒng",不越雷池:"bú yuè léi chí",不相为谋:"bù xiāng wéi móu",不贪为宝:"bù tān wéi bǎo",不了而了:"bù liǎo ér liǎo",不可揆度:"bù kě kuí duó",不遑启处:"bù huáng qǐ chǔ",不当不正:"bù dāng bú zhèng",不差什么:"bú chà shén me",不差累黍:"bù chā lěi shǔ",擘两分星:"bò liǎng fēn xīng",簸土扬沙:"bǒ tǔ yáng shā",薄物细故:"bó wù xì gù",薄寒中人:"bó hán zhòng rén",博文约礼:"bó wén yuē lǐ",播糠眯目:"bō kāng mí mù",剥皮抽筋:"bō pí chōu jīn",剥肤椎髓:"bō fū chuí suǐ",波属云委:"bō zhǔ yún wěi",波骇云属:"bō hài yún zhǔ",兵微将寡:"bīng wēi jiàng guǎ",兵强将勇:"bīng qiáng jiàng yǒng",兵多将广:"bīng duō jiàng guǎng",兵不由将:"bīng bù yóu jiàng",冰解的破:"bīng jiě dì pò",彬彬济济:"bīn bīn jǐ jǐ",摽梅之年:"biào méi zhī nián",表里为奸:"biǎo lǐ wéi jiān",飙发电举:"biāo fā diàn jǔ",变贪厉薄:"biàn tān lì bó",敝盖不弃:"bì gài bú qì",秕言谬说:"bǐ yán miù shuō",比物属事:"bǐ wù zhǔ shì",被山带河:"pī shān dài hé",被甲枕戈:"pī jiǎ zhěn gē",被甲据鞍:"pī jiǎ jù ān",被褐怀玉:"pī hè huái yù",被发缨冠:"pī fà yīng guàn",背曲腰躬:"bèi qǔ yāo gōng",北窗高卧:"běi chuāng gāo wò",北辰星拱:"běi chén xīng gǒng",北鄙之音:"běi bǐ zhī yīn",卑宫菲食:"bēi gōng fěi shí",暴衣露冠:"pù yī lù guàn",暴腮龙门:"pù sāi lóng mén",暴露文学:"bào lù wén xué",暴虎冯河:"bào hǔ píng hé",抱蔓摘瓜:"bào wàn zhāi guā",抱法处势:"bào fǎ chǔ shì",褒贬与夺:"bāo biǎn yǔ duó",帮闲钻懒:"bāng xián zuān lǎn",拜将封侯:"bài jiàng fēng hóu",百兽率舞:"bǎi shòu shuài wǔ",百孔千创:"bǎi kǒng qiān chuāng",白衣卿相:"bái yī qīng xiàng",白首为郎:"bái shǒu wéi láng",白首相知:"bái shǒu xiāng zhī",把玩无厌:"bǎ wán wú yàn",拔锅卷席:"bá guō juǎn xí",拔本塞源:"bá běn sè yuán",傲不可长:"ào bù kě zhǎng",熬更守夜:"áo gēng shǒu yè",安时处顺:"ān shí chǔ shùn",安身为乐:"ān shēn wéi lè",安老怀少:"ān lǎo huái shào",安步当车:"ān bù dàng chē",爱人好士:"ài rén hào shì",矮人观场:"ǎi rén guān chǎng",捱风缉缝:"ái fēng jī fèng",挨山塞海:"āi shān sè hǎi",阿家阿翁:"ā jiā ā wēng",阿党相为:"ē dǎng xiāng wéi",追亡逐北:"zhuī wáng zhú běi",竹篮打水:"zhú lán dá shuǐ",知疼着热:"zhī téng zháo rè",语不惊人:"yǔ bù jīng rén",于今为烈:"yú jīn wéi liè",一日三省:"yí rì sān xǐng",穴居野处:"xué jū yě chǔ",五脊六兽:"wǔ jǐ liù shòu",无声无臭:"wú shēng wú xiù",谓予不信:"wèi yú bú xìn",舍身为国:"shě shēn wéi guó",杀妻求将:"shā qī qiú jiàng",强作解人:"qiǎng zuò jiě rén",气冲斗牛:"qì chōng dǒu niú",临深履薄:"lín shēn lǚ bó",钧天广乐:"jūn tiān guǎng yuè",艰难竭蹶:"jiān nán jié jué",夹七夹八:"jiā qī jiā bā",混混噩噩:"hún hún è è",厚古薄今:"hòu gǔ bó jīn",鬼怕恶人:"guǐ pà è rén",伽马射线:"gā mǎ shè xiàn",佛头着粪:"fó tóu zhuó fèn",奉为至宝:"fèng wéi zhì bǎo",登坛拜将:"dēng tán bài jiàng",晨昏定省:"chén hūn dìng xǐng",察察为明:"chá chá wéi míng",博闻强识:"bó wén qiáng zhì",避难就易:"bì nán jiù yì",了无生机:"liǎo wú shēng jī",有一说一:"yǒu yī shuō yī",独一无二:"dú yī wú èr",说一不二:"shuō yī bù èr",举一反三:"jǔ yī fǎn sān",数一数二:"shǔ yī shǔ èr",杀一儆百:"shā yī jǐng bǎi",丁一卯二:"dīng yī mǎo èr",丁一确二:"dīng yī què èr",不一而止:"bù yī ér zhǐ",无一幸免:"wú yī xìng miǎn",表里不一:"biǎo lǐ bù yī",良莠不一:"liáng yǒu bù yī",心口不一:"xīn kǒu bù yī",言行不一:"yán xíng bù yī",政令不一:"zhèng lìng bù yī",参差不一:"cēn cī bù yī",纷纷不一:"fēn fēn bù yī",毁誉不一:"huǐ yù bù yī",不一而三:"bù yī ér sān",百不一遇:"bǎi bù yī yù",言行抱一:"yán xíng bào yī",瑜百瑕一:"yú bǎi xiá yī",背城借一:"bèi chéng jiè yī",凭城借一:"píng chéng jiè yī",劝百讽一:"quàn bǎi fěng yī",群居和一:"qún jū hé yī",百不获一:"bǎi bù huò yī",百不失一:"bǎi bù shī yī",百无失一:"bǎi wú shī yī",万不失一:"wàn bù shī yī",万无失一:"wàn wú shī yī",合而为一:"hé ér wéi yī",合两为一:"hé liǎng wéi yī",合二为一:"hé èr wéi yī",天下为一:"tiān xià wéi yī",相与为一:"xiāng yǔ wéi yī",较若画一:"jiào ruò huà yī",较如画一:"jiào rú huà yī",斠若画一:"jiào ruò huà yī",言行若一:"yán xíng ruò yī",始终若一:"shǐ zhōng ruò yī",终始若一:"zhōng shǐ ruò yī",惟精惟一:"wéi jīng wéi yī",众多非一:"zhòng duō fēi yī",不能赞一:"bù néng zàn yī",问一答十:"wèn yī dá shí",一不扭众:"yī bù niǔ zhòng",一以贯之:"yī yǐ guàn zhī",一以当百:"yī yǐ dāng bǎi",百不当一:"bǎi bù dāng yī",十不当一:"shí bù dāng yī",以一警百:"yǐ yī jǐng bǎi",以一奉百:"yǐ yī fèng bǎi",以一持万:"yǐ yī chí wàn",以一知万:"yǐ yī zhī wàn",百里挑一:"bǎi lǐ tiāo yī",整齐划一:"zhěng qí huà yī",一来二去:"yī lái èr qù",一路公交:"yī lù gōng jiāo",一路汽车:"yī lù qì chē",一路巴士:"yī lù bā shì",朝朝朝落:"zhāo cháo zhāo luò",曲意逢迎:"qū yì féng yíng",一行不行:"yì háng bù xíng",行行不行:"háng háng bù xíng"},rg=Object.keys(Pn).map(n=>({zh:n,pinyin:Pn[n],probability:2e-8,length:4,priority:p.Normal,dict:Symbol("dict4")})),Tn={巴尔干半岛:"bā ěr gàn bàn dǎo",巴尔喀什湖:"bā ěr kā shí hú",不幸而言中:"bú xìng ér yán zhòng",布尔什维克:"bù ěr shí wéi kè",何乐而不为:"hé lè ér bù wéi",苛政猛于虎:"kē zhèng měng yú hǔ",蒙得维的亚:"méng dé wéi dì yà",民以食为天:"mín yǐ shí wéi tiān",事后诸葛亮:"shì hòu zhū gě liàng",物以稀为贵:"wù yǐ xī wéi guì",先下手为强:"xiān xià shǒu wéi qiáng",行行出状元:"háng háng chū zhuàng yuan",亚得里亚海:"yà dé lǐ yà hǎi",眼不见为净:"yǎn bú jiàn wéi jìng",竹筒倒豆子:"zhú tǒng dào dòu zi"},bg=Object.keys(Tn).map(n=>({zh:n,pinyin:Tn[n],probability:2e-8,length:5,priority:p.Normal,dict:Symbol("dict5")}));function Dn(n,i){return n&&(n.decimali.probability)?n:i}function Mn(n){n.probability<1e-300&&(n.probability*=1e300,n.decimal+=1)}function ag(n){return n.priority===p.Custom?-(n.length*n.length*100):n.priority===p.Surname?-(n.length*n.length*10):0}function xg(n,i){const g=[];let u=n.length-1,h=n[u];for(let s=i-1;s>=0;s--){const o=s+1>=i?{probability:1,decimal:0,patterns:[]}:g[s+1];for(;h&&h.index+h.length-1===s;){const z=h.index,l={probability:h.probability*o.probability,decimal:o.decimal+ag(h),patterns:o.patterns,concatPattern:h};Mn(l),g[z]=Dn(g[z],l),h=n[--u]}const t={probability:1e-13*o.probability,decimal:0,patterns:o.patterns};Mn(t),g[s]=Dn(g[s],t),g[s].concatPattern&&(g[s].patterns=g[s].patterns.concat(g[s].concatPattern),g[s].concatPattern=void 0,delete g[s+1])}return g[0].patterns.reverse()}function Cn(n,i){return n&&n.count<=i.count?n:i}function mg(n){return n.priority===p.Custom?-(n.length*n.length*1e5):n.priority===p.Surname?-(n.length*n.length*100):1}function fg(n,i){const g=[];let u=n.length-1,h=n[u];for(let s=i-1;s>=0;s--){const o=s+1>=i?{count:0,patterns:[]}:g[s+1];for(;h&&h.index+h.length-1===s;){const z=h.index,l={count:mg(h)+o.count,patterns:o.patterns,concatPattern:h};g[z]=Cn(g[z],l),h=n[--u]}const t={count:1+o.count,patterns:o.patterns};g[s]=Cn(g[s],t),g[s].concatPattern&&(g[s].patterns=g[s].patterns.concat(g[s].concatPattern),g[s].concatPattern=void 0,delete g[s+1])}return g[0].patterns.reverse()}function wg(n,i){return!(i.index+i.length<=n.index||i.priority>n.priority||i.priority===n.priority&&i.length>n.length)}function qg(n){const i=[];for(let g=n.length-1;g>=0;){const{index:u}=n[g];let h=g-1;for(;h>=0&&wg(n[g],n[h]);)h--;(h<0||n[h].index+n[h].length<=u)&&i.push(n[g]),g=h}return i.reverse()}var En;(function(n){n[n.ReverseMaxMatch=1]="ReverseMaxMatch",n[n.MaxProbability=2]="MaxProbability",n[n.MinTokenization=3]="MinTokenization"})(En||(En={}));class In{constructor(i,g="",u=""){this.children=new Map,this.fail=null,this.patterns=[],this.parent=i,this.prefix=g,this.key=u}}class pg{constructor(){this.dictMap=new Map,this.queues=[],this.root=new In(null)}build(i){this.buildTrie(i),this.buildFailPointer()}buildTrie(i){for(let g of i){const u=F(g.zh);let h=this.root;for(let s=0;s{i=i.concat(u)}),this.queues=[];i.length>g;){let u=i[g++],h=u.parent&&u.parent.fail,s=u.key;for(;h&&!h.children.has(s);)h=h.fail;h?u.fail=h.children.get(s):u.fail=this.root}}addPatternToDictMap(i){this.dictMap.has(i.dict)||this.dictMap.set(i.dict,new Set),this.dictMap.get(i.dict).add(i)}addNodeToQueues(i){this.queues[P(i.prefix)]||(this.queues[P(i.prefix)]=[]),this.queues[P(i.prefix)].push(i)}insertPattern(i,g){for(let u=i.length-1;u>=0;u--){const h=i[u];if(g.priority===h.priority&&g.probability>=h.probability)i[u+1]=h;else if(g.priority>h.priority)i[u+1]=h;else{i[u+1]=g;return}}i[0]=g}removeDict(i){this.dictMap.has(i)&&(this.dictMap.get(i).forEach(u=>{u.node.patterns=u.node.patterns.filter(h=>h!==u)}),this.dictMap.delete(i))}match(i,g){let u=this.root,h=[];const s=F(i);for(let o=0;og==="off"?c.priority!==p.Surname:g==="head"?c.length-1-o===0:!0);z&&h.push(Object.assign(Object.assign({},z),{index:o-z.length+1}));let l=u.fail;for(;l!==null;){const c=l.patterns.find(e=>g==="off"?e.priority!==p.Surname:g==="head"?e.length-1-o===0:!0);c&&h.push(Object.assign(Object.assign({},c),{index:o-c.length+1})),l=l.fail}}}return h}search(i,g,u=2){const h=this.match(i,g);return u===1?qg(h):u===3?fg(h,P(i)):xg(h,P(i))}}const kg=[...bg,...rg,...jg,...dg,...og,...yg],Rn=new pg;Rn.build(kg);const vg=new Bn,Sg=()=>vg,R=n=>{const i=T.get(n);return i?i.split(" ")[0]:n},Pg=(n,i,g,u)=>{const h=Rn.search(n,g,u);let s=0;const o=F(n);for(let t=0;tn.replace(/(ā|á|ǎ|à)/g,"a").replace(/(ō|ó|ǒ|ò)/g,"o").replace(/(ē|é|ě|è)/g,"e").replace(/(ī|í|ǐ|ì)/g,"i").replace(/(ū|ú|ǔ|ù)/g,"u").replace(/(ǖ|ǘ|ǚ|ǜ)/g,"ü").replace(/(n̄|ń|ň|ǹ)/g,"n").replace(/(m̄|ḿ|m̌|m̀)/g,"m").replace(/(ê̄|ế|ê̌|ề)/g,"ê"),An=(n,i="off")=>{const g=Sg();let u=T.get(n)?T.get(n).split(" "):[];if(g.get(n))u=g.get(n).split(" ");else if(i!=="off"){const h=un[n];h&&(u=[h].concat(u.filter(s=>s!==h)))}return u},Tg=(n,i="off")=>{let g=An(n,i);return g.length>0?g.map(u=>({origin:n,result:u,isZh:!0,originPinyin:u})):[{origin:n,result:n,isZh:!1,originPinyin:n}]},U=(n,i)=>{const g=n.split(" "),u=[],h=[];for(let s of g)for(let o of ng)if(s.startsWith(o)){let t=s.slice(o.length);ig.indexOf(o)!==-1&&gg.indexOf(t)!==-1&&(t=hg[t]),u.push(o),h.push(t);break}return i==="standard"&&u.forEach((s,o)=>{(s==="y"||s==="w")&&(u[o]="")}),{final:h.join(" "),initial:u.join(" ")}},Y=n=>{const{final:i}=U(n);let g="",u="",h="";return ug.indexOf(X(i))!==-1?(g=i[0],u=i[1],h=i.slice(2)):(u=i[0]||"",h=i.slice(1)||""),{head:g,body:u,tail:h}},Q=n=>{const i=/(ā|ō|ē|ī|ū|ǖ|n̄|m̄|ê̄)/,g=/(á|ó|é|í|ú|ǘ|ń|ḿ|ế)/,u=/(ǎ|ǒ|ě|ǐ|ǔ|ǚ|ň|m̌|ê̌)/,h=/(à|ò|è|ì|ù|ǜ|ǹ|m̀|ề)/,s=/(a|o|e|i|u|ü|ê)/,o=/(n|m)$/,t=[];return n.split(" ").forEach(l=>{i.test(l)?t.push("1"):g.test(l)?t.push("2"):u.test(l)?t.push("3"):h.test(l)?t.push("4"):s.test(l)||o.test(l)?t.push("0"):t.push("")}),t.join(" ")},Dg=(n,i)=>{const g=X(n).split(" "),u=Q(i).split(" "),h=[];return g.forEach((s,o)=>{h.push(`${s}${u[o]}`)}),h.join(" ")},$n=(n,i)=>{const g=[];return n.split(" ").forEach(h=>{g.push(i?h[0]:h)}),g.join(" ")},Mg=n=>typeof n!="string"?(console.error("The first param of pinyin is error: "+n+' is not assignable to type "string".'),!1):!0;function gn(n,i){return i instanceof RegExp?i.test(n):!0}const Cg=(n,i)=>{let g=i.nonZh;if(g==="removed")return n.filter(u=>u.isZh||!gn(u.origin,i.nonZhScope));if(g==="consecutive"){for(let u=n.length-2;u>=0;u--){const h=n[u],s=n[u+1];!h.isZh&&!s.isZh&&gn(h.origin,i.nonZhScope)&&gn(s.origin,i.nonZhScope)&&(h.origin+=s.origin,h.result+=s.result,s.delete=!0)}return n.filter(u=>!u.delete)}else return n},_n=(n,i)=>P(n)===1&&i.multiple?Tg(n,i.surname):!1,Eg=(n,i)=>{switch(i.pattern){case"pinyin":break;case"num":n.forEach(g=>{g.result=g.isZh?Q(g.result):""});break;case"initial":n.forEach(g=>{g.result=g.isZh?U(g.result,i.initialPattern).initial:""});break;case"final":n.forEach(g=>{g.result=g.isZh?U(g.result,i.initialPattern).final:""});break;case"first":n.forEach(g=>{g.result=$n(g.result,g.isZh)});break;case"finalHead":n.forEach(g=>{g.result=g.isZh?Y(g.result).head:""});break;case"finalBody":n.forEach(g=>{g.result=g.isZh?Y(g.result).body:""});break;case"finalTail":n.forEach(g=>{g.result=g.isZh?Y(g.result).tail:""});break}},Ig=(n,i)=>{switch(i.toneType){case"symbol":break;case"none":n.forEach(g=>{g.isZh&&(g.result=X(g.result))});break;case"num":{n.forEach(g=>{g.isZh&&(g.result=Dg(g.result,g.originPinyin))});break}}},_g=(n,i)=>{i.v&&n.forEach(g=>{g.isZh&&(g.result=g.result.replace(/ü/g,typeof i.v=="string"?i.v:"v"))})},Zg=(n,i,g)=>{if(i.multiple&&P(g)===1){let u="";n=n.filter(h=>{const s=h.result!==u;return u=h.result,s})}return i.type==="array"?n.map(u=>u.result):i.type==="all"?n.map(u=>{const h=u.isZh?u.result:"",{initial:s,final:o}=U(h,i.initialPattern),{head:t,body:z,tail:l}=Y(h);let c=[];return h!==""&&(c=[h].concat(An(u.origin,i.surname).filter(e=>e!==h))),{origin:u.origin,pinyin:h,initial:s,final:o,first:$n(u.result,u.isZh),finalHead:t,finalBody:z,finalTail:l,num:Number(Q(u.originPinyin)),isZh:u.isZh,polyphonic:c,inZhRange:!!T.get(u.origin),result:u.result}}):n.map(u=>u.result).join(i.separator)},Ng=(n,i)=>(i===!1&&n.forEach(g=>{g.origin==="一"?g.result=g.originPinyin="yī":g.origin==="不"&&(g.result=g.originPinyin="bù")}),n),Vg={pattern:"pinyin",toneType:"symbol",type:"string",multiple:!1,mode:"normal",removeNonZh:!1,nonZh:"spaced",v:!1,separator:" ",toneSandhi:!0,segmentit:2};function Ag(n,i){if(i=Object.assign(Object.assign({},Vg),i||{}),!Mg(n))return n;if(n==="")return i.type==="array"||i.type==="all"?[]:"";i.surname===void 0&&(i.mode==="surname"?i.surname="all":i.surname="off"),i.type==="all"&&(i.pattern="pinyin"),i.pattern==="num"&&(i.toneType="none"),i.removeNonZh&&(i.nonZh="removed");let u=Array(P(n)),{list:h}=Pg(n,u,i.surname,i.segmentit);return h=Ng(h,i.toneSandhi),h=Cg(h,i),_n(n,i)&&(h=_n(n,i)),Eg(h,i),Ig(h,i),_g(h,i),Zg(h,i,n)}var sn;(function(n){n[n.AllSegment=1]="AllSegment",n[n.AllArray=2]="AllArray",n[n.AllString=3]="AllString",n[n.PinyinSegment=4]="PinyinSegment",n[n.PinyinArray=5]="PinyinArray",n[n.PinyinString=6]="PinyinString",n[n.ZhSegment=7]="ZhSegment",n[n.ZhArray=8]="ZhArray",n[n.ZhString=9]="ZhString"})(sn||(sn={}));sn.AllSegment;export{Fi as V,Rg as _,Ag as p}; diff --git a/assets/index-CmDQAEe_.js b/assets/index-CmDQAEe_.js deleted file mode 100644 index ab5b5d2..0000000 --- a/assets/index-CmDQAEe_.js +++ /dev/null @@ -1 +0,0 @@ -import{d as n}from"./dataProvider-bw19OswA.js";import{_ as N,A as f,o,d as s,w as i,t as d,y as r,l as h,j as k,q as g,z as V,P as C,F as v,G as x,Q as I,ap as b,C as y,N as A,O as L,v as w,B as _,H as B,M as E,x as F}from"./index-BBVdlVQD.js";import{b as T,c as S}from"./VAppBarTitle-QQJ8OMzH.js";import{V as D}from"./VTextField-C-Z2P35g.js";import{V as M}from"./VContainer-OExp5t5c.js";import"./axios-CF6XU-xP.js";const K={data(){return{lists:[],newListName:"",studentList:[],deleteDialog:{show:!1,text:"",listId:null},editingListId:null,editListName:""}},async created(){await Promise.all([this.loadLists(),this.loadStudentList()])},methods:{async loadLists(){try{let e=await n.loadData("classworks-list-info");(!e||!Array.isArray(e))&&(e=[],await n.saveData("classworks-list-info",e)),this.lists=e}catch(e){console.error("Failed to load lists",e),this.lists=[],await n.saveData("classworks-list-info",[])}},async loadStudentList(){try{const e=await n.loadData("classworks-list-main");e&&Array.isArray(e)?this.studentList=e:this.studentList=[]}catch(e){console.error("Failed to load student list",e),this.studentList=[]}},async createNewList(){if(!this.newListName)return;const e=Date.now().toString(),t={id:e,name:this.newListName};this.lists.push(t),await n.saveData("classworks-list-info",this.lists);const u=[];this.studentList&&this.studentList.length>0&&this.studentList.forEach(p=>{u.push({id:p.id||Date.now()+Math.floor(Math.random()*1e3),name:p.name,completed:!1})}),await n.saveData(`classworks-list-${e}`,u),this.newListName="",this.$router.push(`/list/${e}`)},startEditing(e){const t=this.lists.find(u=>u.id===e);t&&(this.editingListId=e,this.editListName=t.name)},cancelEditing(){this.editingListId=null,this.editListName=""},async saveListName(){if(!(!this.editListName.trim()||!this.editingListId))try{const e=this.lists.findIndex(t=>t.id===this.editingListId);e!==-1&&(this.lists[e].name=this.editListName.trim(),await n.saveData("classworks-list-info",this.lists)),this.editingListId=null,this.editListName=""}catch(e){console.error("Failed to update list name",e)}},confirmDeleteList(e){const t=this.lists.find(u=>u.id===e);t&&(this.deleteDialog={show:!0,text:`确定要删除列表 "${t.name}" 吗?`,listId:e})},confirmDelete(){this.deleteDialog.listId&&this.deleteList(this.deleteDialog.listId),this.deleteDialog.show=!1},async deleteList(e){this.lists=this.lists.filter(t=>t.id!==e),await n.saveData("classworks-list-info",this.lists)}}},P={key:0},U={key:1,class:"d-flex align-center w-100"},j={key:0};function q(e,t,u,p,a,m){return o(),f(v,null,[s(S,{elevation:"1"},{prepend:i(()=>[s(r,{icon:"mdi-arrow-left",variant:"text",onClick:t[0]||(t[0]=l=>e.$router.push("/"))})]),default:i(()=>[s(T,{class:"text-h6"},{default:i(()=>[...t[5]||(t[5]=[d("列表",-1)])]),_:1})]),_:1}),s(M,null,{default:i(()=>[s(h,{border:"",class:"mb-5",rounded:"xl"},{default:i(()=>[s(g,null,{default:i(()=>[...t[6]||(t[6]=[d("现有列表",-1)])]),_:1}),a.lists.length===0?(o(),k(V,{key:0},{default:i(()=>[...t[7]||(t[7]=[d(" 暂无列表,请创建新列表 ",-1)])]),_:1})):(o(),k(C,{key:1},{default:i(()=>[(o(!0),f(v,null,x(a.lists,l=>(o(),k(I,{key:l.id,active:l.id===a.editingListId,to:l.id!==a.editingListId?`/list/${l.id}`:void 0},{append:i(()=>[l.id!==a.editingListId?(o(),f("div",j,[s(r,{border:"",class:"mr-2",icon:"",onClick:L(c=>m.startEditing(l.id),["stop","prevent"])},{default:i(()=>[s(w,null,{default:i(()=>[...t[10]||(t[10]=[d("mdi-pencil",-1)])]),_:1})]),_:1},8,["onClick"]),s(r,{border:"",icon:"",onClick:L(c=>m.confirmDeleteList(l.id),["stop","prevent"])},{default:i(()=>[s(w,null,{default:i(()=>[...t[11]||(t[11]=[d("mdi-delete",-1)])]),_:1})]),_:1},8,["onClick"])])):_("",!0)]),default:i(()=>[l.id!==a.editingListId?(o(),f("div",P,[s(b,null,{default:i(()=>[d(y(l.name),1)]),_:2},1024)])):(o(),f("div",U,[s(D,{modelValue:a.editListName,"onUpdate:modelValue":t[1]||(t[1]=c=>a.editListName=c),autofocus:"",class:"mr-2",density:"compact","hide-details":"",label:"列表名称",onKeyup:A(m.saveListName,["enter"])},null,8,["modelValue","onKeyup"]),s(r,{border:"",class:"mr-2",color:"primary",icon:"",onClick:L(m.saveListName,["stop","prevent"])},{default:i(()=>[s(w,null,{default:i(()=>[...t[8]||(t[8]=[d("mdi-check",-1)])]),_:1})]),_:1},8,["onClick"]),s(r,{border:"",color:"error",icon:"",onClick:L(m.cancelEditing,["stop","prevent"])},{default:i(()=>[s(w,null,{default:i(()=>[...t[9]||(t[9]=[d("mdi-close",-1)])]),_:1})]),_:1},8,["onClick"])]))]),_:2},1032,["active","to"]))),128))]),_:1}))]),_:1}),s(h,{border:"",class:"mb-5",rounded:"xl"},{default:i(()=>[s(g,null,{default:i(()=>[...t[12]||(t[12]=[d("创建新列表",-1)])]),_:1}),s(V,null,{default:i(()=>[s(D,{modelValue:a.newListName,"onUpdate:modelValue":t[2]||(t[2]=l=>a.newListName=l),rules:[l=>!!l||"名称不能为空"],label:"列表名称"},null,8,["modelValue","rules"]),s(r,{disabled:!a.newListName,color:"primary",onClick:m.createNewList},{default:i(()=>[...t[13]||(t[13]=[d(" 创建列表 ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1}),s(B,{modelValue:a.deleteDialog.show,"onUpdate:modelValue":t[4]||(t[4]=l=>a.deleteDialog.show=l),"max-width":"500"},{default:i(()=>[s(h,{border:""},{default:i(()=>[s(g,null,{default:i(()=>[...t[14]||(t[14]=[d("删除列表",-1)])]),_:1}),s(V,null,{default:i(()=>[d(y(a.deleteDialog.text),1)]),_:1}),s(E,null,{default:i(()=>[s(F),s(r,{color:"primary",variant:"text",onClick:t[3]||(t[3]=l=>a.deleteDialog.show=!1)},{default:i(()=>[...t[15]||(t[15]=[d(" 取消 ",-1)])]),_:1}),s(r,{color:"error",variant:"text",onClick:m.confirmDelete},{default:i(()=>[...t[16]||(t[16]=[d(" 确认删除 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)}const R=N(K,[["render",q]]);export{R as default}; diff --git a/assets/index-1Zmm7MNJ.css b/assets/index-DZHIzZgR.css similarity index 98% rename from assets/index-1Zmm7MNJ.css rename to assets/index-DZHIzZgR.css index ff7a8c8..83b086a 100644 --- a/assets/index-1Zmm7MNJ.css +++ b/assets/index-DZHIzZgR.css @@ -1 +1 @@ -@charset "UTF-8";.random-picker-card[data-v-85e7eea6]{overflow:hidden}.counter-container[data-v-85e7eea6]{margin:2rem 0}.counter-btn[data-v-85e7eea6]{width:64px;height:64px;border-radius:50%}.count-display[data-v-85e7eea6]{min-width:100px;text-align:center}.start-btn[data-v-85e7eea6]{min-width:200px;height:64px;border-radius:32px;font-size:1.2rem}.filter-options-card[data-v-85e7eea6]{max-width:450px;margin:0 auto}.filter-chip[data-v-85e7eea6]{cursor:pointer;transition:all .2s ease}.filter-chip[data-v-85e7eea6]:active{transform:scale(.95)}.student-list-tooltip[data-v-85e7eea6]{max-height:200px;overflow-y:auto;margin-top:5px;font-size:.9em}.animation-container[data-v-85e7eea6]{min-height:300px;display:flex;flex-direction:column;justify-content:center;align-items:center}.animation-wrapper[data-v-85e7eea6]{width:100%;max-width:400px;margin:0 auto}.shuffle-container[data-v-85e7eea6]{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.student-item[data-v-85e7eea6]{padding:10px 15px;background-color:rgba(var(--v-theme-surface-variant),.7);border-radius:8px;transition:all .3s ease;font-size:1.2rem}.student-item.highlighted[data-v-85e7eea6]{background-color:rgb(var(--v-theme-primary));color:rgb(var(--v-theme-on-primary));transform:scale(1.1);font-weight:700;box-shadow:0 4px 8px #0003}.result-container[data-v-85e7eea6]{min-height:300px}.result-card[data-v-85e7eea6]{max-width:400px;margin:0 auto;transition:transform .3s ease}.result-card[data-v-85e7eea6]:hover{transform:translateY(-4px)}.result-card:hover .refresh-btn[data-v-85e7eea6]{opacity:1}.refresh-btn[data-v-85e7eea6]{opacity:.7;transition:opacity .3s ease}.refresh-btn[data-v-85e7eea6]:hover{opacity:1}@keyframes refresh-pulse-85e7eea6{0%{transform:scale(1);box-shadow:0 0 rgba(var(--v-theme-primary),.5)}50%{transform:scale(1.05);box-shadow:0 0 15px rgba(var(--v-theme-primary),.7)}to{transform:scale(1);box-shadow:0 0 rgba(var(--v-theme-primary),.5)}}.refresh-animation[data-v-85e7eea6]{animation:refresh-pulse-85e7eea6 .5s ease}.shuffle-enter-active[data-v-85e7eea6],.shuffle-leave-active[data-v-85e7eea6]{transition:all .5s ease}.shuffle-enter-from[data-v-85e7eea6],.shuffle-leave-to[data-v-85e7eea6]{opacity:0;transform:translateY(30px)}.shuffle-move[data-v-85e7eea6]{transition:transform .5s ease}@media (hover: none){.counter-btn[data-v-85e7eea6],.start-btn[data-v-85e7eea6]{min-height:72px}.student-item[data-v-85e7eea6]{padding:12px 20px;font-size:1.4rem}.refresh-btn[data-v-85e7eea6]{opacity:1;min-width:36px;min-height:36px}.filter-chip[data-v-85e7eea6]{min-height:40px;font-size:1rem}}.mode-switch-container .mode-toggle[data-v-85e7eea6]{border:1px solid rgba(var(--v-theme-primary),.2);border-radius:50px;padding:4px;box-shadow:0 2px 8px #0000001a}.mode-switch-container .mode-toggle .v-btn[data-v-85e7eea6]{min-width:120px;height:40px;font-weight:500;letter-spacing:.5px}.mode-switch-container .mode-toggle .v-btn.v-btn--active[data-v-85e7eea6]{transform:scale(1.02);font-weight:600}.number-range-container[data-v-85e7eea6]{max-width:300px;margin:0 auto;padding:16px;background:rgba(var(--v-theme-surface-variant),.1);border-radius:12px;border:1px solid rgba(var(--v-theme-primary),.1)}.number-range-container .number-input[data-v-85e7eea6]{width:100px}.number-range-container .number-input[data-v-85e7eea6] .v-field{border-radius:8px;box-shadow:0 2px 4px #0000000d}[data-v-e250350b] .v-dialog{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}[data-v-e250350b] .v-overlay__scrim{background:#000c!important}.urgent-notification-card[data-v-e250350b]{position:relative;animation:urgentPulse-e250350b 2s infinite,slideIn-e250350b .5s ease-out;border:3px solid rgba(255,255,255,.3)}.close-btn[data-v-e250350b]{position:absolute;top:16px;right:16px;z-index:1}.urgency-icon[data-v-e250350b]{animation:iconPulse-e250350b 1.5s infinite;filter:drop-shadow(0 0 10px rgba(255,255,255,.5))}.urgent-title[data-v-e250350b]{font-size:2.5rem;font-weight:700;color:#fff;line-height:1.2}.notification-content[data-v-e250350b]{font-size:1.4rem;color:#fffffff2;line-height:1.6;padding:0 20px}.sender-label[data-v-e250350b],.target-label[data-v-e250350b]{font-size:.9rem;color:#fffc;font-weight:600;text-transform:uppercase;letter-spacing:1px}.sender-details[data-v-e250350b],.target-devices[data-v-e250350b]{display:flex;flex-wrap:wrap;gap:8px}.actions[data-v-e250350b]{display:flex;justify-content:center;gap:16px}.navigation-controls[data-v-e250350b]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.notification-counter[data-v-e250350b]{color:#fff;font-weight:600}.navigation-buttons[data-v-e250350b]{display:flex;justify-content:center;gap:8px}@keyframes urgentPulse-e250350b{0%,to{box-shadow:0 0 30px #ffffff4d}50%{box-shadow:0 0 50px #fff9}}@keyframes iconPulse-e250350b{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}@keyframes slideIn-e250350b{0%{opacity:0;transform:translateY(-50px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 600px){.urgent-title[data-v-e250350b]{font-size:2rem}.notification-content[data-v-e250350b]{font-size:1.2rem;padding:0 10px}.urgent-notification-card[data-v-e250350b]{width:95%!important;margin:20px}}.chat-toggle[data-v-1a62ac2a]{position:fixed;z-index:1100}.chat-panel[data-v-1a62ac2a]{position:fixed;z-index:1101}.chat-card[data-v-1a62ac2a]{width:100%;height:100%;display:flex;flex-direction:column}.chat-body[data-v-1a62ac2a]{padding:8px 12px;height:calc(100% - 120px)}.messages[data-v-1a62ac2a]{height:100%;overflow:auto}.message-row[data-v-1a62ac2a]{display:flex;align-items:flex-end;margin:8px 0}.message-row.self[data-v-1a62ac2a]{flex-direction:row-reverse}.message-row .avatar[data-v-1a62ac2a]{width:28px;display:flex;justify-content:center}.message-row .bubble[data-v-1a62ac2a]{max-width:70%;background:#ffffff0f;border-radius:10px;padding:6px 10px;margin:0 8px}.message-row.self .bubble[data-v-1a62ac2a]{background:#2196f326}.bubble .text[data-v-1a62ac2a]{white-space:pre-wrap;word-break:break-word}.bubble .meta[data-v-1a62ac2a]{font-size:12px;opacity:.6;margin-top:2px;text-align:right}.bubble .sender-name[data-v-1a62ac2a]{font-size:11px;color:#fffc;margin-bottom:2px;font-weight:500}.message-row.self .bubble .sender-name[data-v-1a62ac2a]{color:#2196f3cc}.device-name[data-v-1a62ac2a]{font-weight:500;opacity:.8}.divider-row[data-v-1a62ac2a]{text-align:center;color:#fff9;font-size:12px}.divider-text[data-v-1a62ac2a]{margin:4px 0}.chat-input[data-v-1a62ac2a]{padding:8px}.events-container[data-v-1a62ac2a]{height:100%;display:flex;flex-direction:column}.events-list[data-v-1a62ac2a]{flex-grow:1;overflow-y:auto;max-height:calc(100% - 120px)}.event-item[data-v-1a62ac2a]{transition:all .2s ease}.event-item[data-v-1a62ac2a]:hover{transform:translate(2px)}.event-content[data-v-1a62ac2a]{max-width:100%}.chat-content[data-v-1a62ac2a]{background:#0000000d;padding:4px 8px;border-radius:4px;word-break:break-word}.event-data[data-v-1a62ac2a]{background:#0000000d;padding:4px;border-radius:4px;font-size:10px;max-height:100px;overflow-y:auto;white-space:pre-wrap;word-break:break-all}.pagination[data-v-1a62ac2a]{display:flex;justify-content:center}.event-stats[data-v-1a62ac2a]{flex-shrink:0}.gap-1[data-v-c6850940]{gap:4px}.message-history-card .v-chip[data-v-c6850940]{margin:1px}.floating-icp-link[data-v-8d08b563]{position:fixed;right:4px;bottom:0;z-index:100;font-size:14px;font-weight:500;letter-spacing:.2px;color:#6b6b6b;text-decoration:none;background:transparent;border:none;box-shadow:none;transition:none!important}.floating-icp-link[data-v-8d08b563]:hover,.floating-icp-link[data-v-8d08b563]:focus,.floating-icp-link[data-v-8d08b563]:active{color:#414141;text-decoration:none;outline:none}@media (max-width: 600px){.floating-icp-link[data-v-8d08b563]{right:16px;bottom:0;font-size:14px}}.floating-toolbar-container[data-v-7076d3aa]{position:fixed;bottom:0;left:0;width:100%;height:0;z-index:100;display:flex;justify-content:center;pointer-events:none}.floating-toolbar[data-v-7076d3aa]{position:absolute;bottom:24px;left:50%;transform:translate(-50%);transition:all .3s cubic-bezier(.4,0,.2,1);background:#ffffffb3!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2);box-shadow:0 8px 32px #0000001a!important;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;display:flex;align-items:center;justify-content:space-between;padding:0 4px;pointer-events:auto;will-change:transform}.floating-toolbar[data-v-7076d3aa]:hover{transform:translate(-50%) translateY(-4px);background:#fffc!important}.toolbar-buttons[data-v-7076d3aa]{display:flex;align-items:center}.toolbar-btn[data-v-7076d3aa]{margin:0 2px}.toolbar-btn[data-v-7076d3aa]:hover{background:#ffffff4d!important;transform:scale(1.05)}.toolbar-btn[data-v-7076d3aa]:active{transform:scale(.95)}.side-action-btn[data-v-7076d3aa]{position:absolute;bottom:24px;right:24px;pointer-events:auto;z-index:101;background:#ffffffe6!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2)}.date-picker-card[data-v-7076d3aa]{border-radius:16px;overflow:hidden;background:#ffffffe6!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2)}@media (max-width: 600px){.floating-toolbar[data-v-7076d3aa]{bottom:16px;width:auto;max-width:95%;padding:2px}.toolbar-buttons[data-v-7076d3aa]{width:100%;justify-content:space-around;padding:4px}.toolbar-btn[data-v-7076d3aa]{margin:0;min-width:40px}.side-action-btn[data-v-7076d3aa]{bottom:80px;right:16px}}@media (prefers-color-scheme: dark){.floating-toolbar[data-v-7076d3aa]{background:#1e1e1eb3!important;border:1px solid rgba(255,255,255,.1)}.floating-toolbar[data-v-7076d3aa]:hover{background:#1e1e1ecc!important}.toolbar-btn[data-v-7076d3aa]:hover{background:#ffffff1a!important}.date-picker-card[data-v-7076d3aa]{background:#1e1e1ee6!important;border:1px solid rgba(255,255,255,.1)}.side-action-btn[data-v-7076d3aa]{background:#1e1e1ee6!important;border:1px solid rgba(255,255,255,.1);color:#fff!important}}.gap-1[data-v-7f9de516]{gap:4px}.gap-2[data-v-7f9de516]{gap:8px}.template-buttons[data-v-b3e3018d]{display:flex;flex-direction:column;gap:12px}.book-chip[data-v-b3e3018d]{align-self:flex-start}.pages-container[data-v-b3e3018d]{display:flex;flex-wrap:wrap;gap:4px;padding-left:16px}.group-label[data-v-b3e3018d]{font-size:.875rem;color:#0009;margin-right:8px;white-space:nowrap}[data-v-b3e3018d] .v-chip{cursor:pointer;-webkit-user-select:none;user-select:none}.quick-tools[data-v-b3e3018d]{border-left:1px solid rgba(0,0,0,.12);padding-left:16px}.gap-1[data-v-b3e3018d]{gap:4px}.numeric-keypad[data-v-b3e3018d]{display:flex;flex-direction:column;gap:4px;padding:8px;border:1px solid rgba(0,0,0,.12);border-radius:4px}.keypad-row[data-v-b3e3018d]{display:flex;gap:4px}.keypad-btn[data-v-b3e3018d]{flex:1;min-width:36px!important}.space-btn[data-v-b3e3018d]{width:100%!important}.cursor-not-allowed[data-v-1f29e910]{cursor:not-allowed!important}.cursor-pointer[data-v-1f29e910]{cursor:pointer}.v-card.cursor-not-allowed[data-v-1f29e910]:hover{transform:none!important}.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field .v-field__input>input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden}.v-autocomplete__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-menu>.v-overlay__content.v-autocomplete__content{border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-surface-light))}.v-autocomplete__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single:not(.v-autocomplete--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--active input{transition:none}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{transform:rotate(180deg)}.auth-card[data-v-9e8d02e4]{max-width:100%;min-height:500px}.form-section[data-v-9e8d02e4]{max-width:600px;margin:0 auto}.v-btn[data-v-9e8d02e4]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.v-btn.v-btn--size-x-large[data-v-9e8d02e4]{min-height:60px}.guide-card[data-v-817c6e0e]{max-width:100%;min-height:500px}.step-content[data-v-817c6e0e]{min-height:400px;animation:fadeIn-817c6e0e .3s ease-in}@keyframes fadeIn-817c6e0e{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.button-group[data-v-817c6e0e]{max-width:600px;margin:0 auto}.step-item[data-v-817c6e0e]{cursor:default}.v-btn[data-v-817c6e0e]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.v-btn.v-btn--size-x-large[data-v-817c6e0e]{min-height:120px}.relationship-diagram[data-v-817c6e0e]{display:flex;justify-content:space-around;align-items:flex-start;gap:20px;flex-wrap:wrap}.diagram-item[data-v-817c6e0e]{flex:1;min-width:200px;max-width:300px}.diagram-connector[data-v-817c6e0e]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100px}.diagram-description[data-v-817c6e0e]{text-align:center}@media (max-width: 768px){.relationship-diagram[data-v-817c6e0e]{flex-direction:column;align-items:center}.diagram-connector[data-v-817c6e0e]{transform:rotate(90deg);margin:20px 0}}.progressive-register-card[data-v-817c6e0e]{transition:all .3s ease;border:2px solid transparent!important}.progressive-register-card[data-v-817c6e0e]:hover{box-shadow:0 8px 24px #0000001f!important}.progressive-register-card .card-icon-wrapper[data-v-817c6e0e],.progressive-register-card .card-actions[data-v-817c6e0e]{flex-shrink:0}.progressive-register-card code[data-v-817c6e0e]{background:#0000001a;padding:2px 6px;border-radius:4px;font-family:Consolas,Monaco,Courier New,monospace}.log-box[data-v-817c6e0e]{height:140px;overflow:auto;background:#0000000a;border-radius:8px;padding:8px 12px}.log-line+.log-line[data-v-817c6e0e]{margin-top:4px}.device-code[data-v-817c6e0e]{background:#0000001a;padding:2px 6px;border-radius:4px;font-family:Consolas,Monaco,Courier New,monospace;font-size:.875rem}.init-overlay[data-v-cbfbc6db]{position:relative}.init-container[data-v-cbfbc6db]{max-width:900px;margin:24px auto;padding:8px 16px}.init-header .title[data-v-cbfbc6db]{font-size:28px;font-weight:700;text-align:left;margin-bottom:8px}.init-header .subtitle[data-v-cbfbc6db]{font-size:14px;opacity:.75;text-align:left}.main-card-row[data-v-cbfbc6db]{display:flex;flex-direction:column;gap:16px;margin-top:32px}.main-service-card[data-v-cbfbc6db]{min-height:100px;cursor:pointer;transition:all .3s ease}.main-service-card[data-v-cbfbc6db]:hover{box-shadow:0 4px 12px #00000026!important}.main-service-card .v-card-item[data-v-cbfbc6db]{padding:20px 24px}.card-horizontal-layout[data-v-cbfbc6db]{display:flex;align-items:center;gap:20px}.card-icon-wrapper[data-v-cbfbc6db]{flex-shrink:0}.card-content[data-v-cbfbc6db]{flex:1;text-align:left}.gradient-new[data-v-cbfbc6db]{background:linear-gradient(135deg,#2196f31f,#6750a414 60%);border:2px solid rgba(33,150,243,.2)}.gradient-registered[data-v-cbfbc6db]{background:linear-gradient(135deg,#4caf501f,#00b8d414 60%);border:2px solid rgba(76,175,80,.2)}.gradient-kv[data-v-cbfbc6db]{background:linear-gradient(135deg,#00b8d41f,#2196f314 60%);border:2px solid rgba(0,184,212,.2)}.alternative-options[data-v-cbfbc6db]{margin-top:40px;padding:20px;background:rgba(var(--v-theme-surface-variant),.3);border-radius:12px}.options-title[data-v-cbfbc6db]{font-size:14px;font-weight:600;opacity:.8;margin-bottom:12px;text-align:left}.options-buttons[data-v-cbfbc6db]{margin-top:24px;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start}.clickable[data-v-cbfbc6db]{cursor:pointer}.footer-hint[data-v-cbfbc6db]{margin-top:24px;font-size:13px;opacity:.7;text-align:left}@media (max-width: 768px){.card-horizontal-layout[data-v-cbfbc6db]{gap:16px}.card-icon-wrapper .v-icon[data-v-cbfbc6db]{font-size:40px!important}.options-buttons[data-v-cbfbc6db]{flex-direction:column}.options-buttons .v-btn[data-v-cbfbc6db]{width:100%}}.glow-effect{transition:box-shadow .3s ease-in-out,transform .3s ease-in-out}.glow-effect:hover{box-shadow:0 0 15px rgba(var(--v-theme-primary),.5);transform:translateY(-2px)}.glow-text{text-shadow:0 0 5px rgba(var(--v-theme-primary),.5)}.bloom-container .v-card{transition:box-shadow .3s ease}.bloom-container .v-card:hover{box-shadow:0 4px 20px #0000001a,0 0 15px rgba(var(--v-theme-primary),.3)!important}.bloom-container .v-btn{transition:box-shadow .3s ease}.bloom-container .v-btn:hover{box-shadow:0 0 10px rgba(var(--v-theme-primary),.4)}.glow-track{position:relative;overflow:hidden;transition:all .3s ease}.glow-track:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(circle at var(--x, 50%) var(--y, 50%),rgba(255,255,255,.15) 0%,rgba(255,255,255,0) 70%);opacity:0;transition:opacity .3s;pointer-events:none;z-index:1}.glow-track:hover:before{opacity:1}.glow-highlight{animation:glow-pulse 3s ease-in-out;box-shadow:0 0 20px #2196f399,0 0 40px #2196f366,0 0 60px #2196f333!important}@keyframes glow-pulse{0%,to{box-shadow:0 0 20px #2196f399,0 0 40px #2196f366,0 0 60px #2196f333}50%{box-shadow:0 0 30px #2196f3cc,0 0 60px #2196f399,0 0 90px #2196f366}}.grid-item .v-card{transition:transform .3s ease,box-shadow .3s ease}.grid-item .v-card:hover{transform:translateY(-4px);box-shadow:0 8px 16px #00000026!important}.grid-item .v-card:active{transform:translateY(-2px)}.empty-subject-card{transition:all .3s ease;opacity:.8}.empty-subject-card:hover{opacity:1;transform:translateY(-4px)}.anti-burn-card{animation:subtle-glow 4s infinite alternate;transition:all .3s ease}.anti-burn-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026!important}@keyframes subtle-glow{0%{box-shadow:0 0 5px #2196f31a}to{box-shadow:0 0 15px #2196f34d}}.grid-masonry{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:8px;grid-auto-flow:dense}.grid-item{width:100%;transition:all .2s ease}.empty-card{transform:scale(.9);opacity:.8;grid-row-end:span 1!important}.empty-card:hover{transform:scale(.95);opacity:1}.empty-subjects-container{display:flex;flex-wrap:wrap}@media (max-width: 1199px){.grid-masonry{grid-template-columns:repeat(2,1fr)}}@media (max-width: 799px){.grid-masonry{grid-template-columns:1fr}.empty-card{transform:scale(.95)}}.main-window::-webkit-scrollbar{width:8px}.main-window::-webkit-scrollbar-track{background:transparent}.main-window::-webkit-scrollbar-thumb{background-color:#0003;border-radius:4px}.main-window::-webkit-scrollbar-thumb:hover{background-color:#0000004d}.no-data-message{display:flex;justify-content:center;align-items:center;min-height:200px;margin:20px 0}.attendance-drawer{border-left:1px solid rgba(0,0,0,.12)}.attendance-drawer :deep(.v-navigation-drawer__content){overflow-y:auto}.attendance-drawer :deep(.v-navigation-drawer__content::-webkit-scrollbar){width:8px}.attendance-drawer :deep(.v-navigation-drawer__content::-webkit-scrollbar-track){background:transparent}.attendance-drawer :deep(.v-navigation-drawer__content::-webkit-scrollbar-thumb){background-color:#0003;border-radius:4px}.attendance-drawer :deep(.v-navigation-drawer__content::-webkit-scrollbar-thumb:hover){background-color:#0000004d}@media (max-width: 960px){.attendance-drawer{display:none}}.text-success{color:rgb(var(--v-theme-success))}.text-error{color:rgb(var(--v-theme-error))}.text-warning{color:rgb(var(--v-theme-warning))}.attendance-card{display:flex;flex-direction:column}.attendance-numbers{padding:20px 0}.total-number{border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:20px}.status-number{flex:1}.text-h2,.text-h3{line-height:1.2}.empty-subjects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;padding:8px}.empty-subject-card{cursor:pointer;transition:all .2s ease;opacity:.8}.empty-subject-card:hover{transform:scale(1.02);opacity:1}.empty-subjects{border-top:1px solid rgba(0,0,0,.12);padding-top:1rem}.empty-subject-card:not(:disabled):hover{opacity:1;transform:scale(1.02)}.attendance-stat{height:100%}.suggestion-btn{margin:2px;min-width:0;padding:0 6px}.suggestion-btn:active{transform:scale(.95)}@media (hover: none){.student-card .attendance-actions{opacity:1}}@media (max-width: 600px){.student-card .attendance-actions .v-btn{margin:0 1px;min-width:28px;width:28px;height:28px}}.filter-chip{cursor:pointer;margin:2px}.filter-chip:active{transform:scale(.95)}.grid-item{transition:transform .4s cubic-bezier(.05,.7,.1,1),opacity .2s cubic-bezier(.2,0,0,1);will-change:transform,opacity;backface-visibility:hidden}.grid-item.v-enter-active{transition:transform .4s cubic-bezier(.05,.7,.1,1),opacity .25s cubic-bezier(.2,0,0,1)}.grid-item.v-move{transition:transform .4s cubic-bezier(.05,.7,.1,1);z-index:1}.grid-item.v-leave-active{position:absolute!important;transition:transform .3s cubic-bezier(.3,0,.8,.15),opacity .2s cubic-bezier(.3,0,1,1)}.grid-item.v-enter-from,.grid-item.v-leave-to{opacity:0;transform:scale(.95)}.empty-subject-card{transition:all .25s cubic-bezier(.2,0,0,1)}.empty-subject-card:hover{transform:translateY(-4px) scale(1.02);box-shadow:0 4px 24px #0000001f}.v-list-enter-active{transition:all .4s cubic-bezier(.05,.7,.1,1)}.v-list-leave-active{transition:all .3s cubic-bezier(.3,0,.8,.15)}.v-list-enter-from,.v-list-leave-to{opacity:0;transform:translate(-24px)}.attendance-area h2,.attendance-area h3{transition:all .3s cubic-bezier(.2,0,0,1)}.v-card{transition:all .4s cubic-bezier(.05,.7,.1,1)}.v-card:active{transform:scale(.98);transition-duration:.1s}.v-card{touch-action:manipulation}.v-card:active{transform:scale(.99);transition-duration:80ms}@media (pointer: coarse){.v-card:before{margin:-8px}}.v-dialog:before{display:none!important}.v-dialog:before,.v-dialog:after{display:none!important}.v-dialog .v-card{transition:none}.v-dialog .v-card:active{transform:none}.v-dialog-transition-enter-active{transition:transform .4s cubic-bezier(.05,.7,.1,1),opacity .3s cubic-bezier(.2,0,0,1)}.v-dialog-transition-leave-active{transition:transform .25s cubic-bezier(.3,0,.8,.15),opacity .2s cubic-bezier(.3,0,1,1)}.v-btn{transition:background-color .25s cubic-bezier(.2,0,0,1),transform .15s cubic-bezier(.05,.7,.1,1);touch-action:manipulation;min-height:40px;min-width:40px}.v-btn:active{transform:scale(.98);transition-duration:80ms}@media (pointer: coarse){.v-btn{padding:8px 16px;margin:4px}.v-btn:before{margin:-8px}}.no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none}.grid-enter-active,.grid-leave-active{transition:all .5s ease}.grid-enter-from{opacity:0;transform:translateY(20px)}.grid-leave-to{opacity:0;transform:translateY(-20px)}.v-list-enter-active,.v-list-leave-active{transition:all .3s ease}.v-list-enter-from{opacity:0;transform:translate(-20px)}.v-list-leave-to{opacity:0;transform:translate(20px)}.page-enter-active,.page-leave-active{transition:opacity .3s,transform .3s}.page-enter-from{opacity:0;transform:translateY(20px)}.page-leave-to{opacity:0;transform:translateY(-20px)}.fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter-from,.fade-leave-to{opacity:0}.scale-enter-active,.scale-leave-active{transition:all .3s}.scale-enter-from,.scale-leave-to{opacity:0;transform:scale(.9)}.hover-card{transition:transform .2s ease,box-shadow .3s ease;will-change:transform,box-shadow}.hover-card:hover,.hover-card:focus{transform:translateY(-4px);box-shadow:0 8px 16px #00000026!important}.hover-card:active{transform:translateY(-2px);box-shadow:0 4px 8px #0000001a!important}.touch-button{min-height:48px;min-width:48px;border-radius:12px;padding:12px 24px}.touch-button.v-btn--icon{min-height:56px;min-width:56px}.ripple-enhanced{position:relative;overflow:hidden}.ripple-enhanced:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(circle at var(--x, 50%) var(--y, 50%),rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 60%);opacity:0;transition:opacity .5s;pointer-events:none}.ripple-enhanced:active:after{opacity:1;transition:opacity .2s}html{scroll-behavior:smooth}.v-app-bar{position:fixed!important}.touch-list-item{min-height:56px;padding:12px 16px}.large-touch-target{min-height:56px;min-width:56px}.fullscreen-mode .v-app-bar{background-color:rgba(var(--v-theme-surface-variant),.85)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.fullscreen-mode .main-window{padding-top:16px;padding-bottom:16px} +@charset "UTF-8";.random-picker-card[data-v-85e7eea6]{overflow:hidden}.counter-container[data-v-85e7eea6]{margin:2rem 0}.counter-btn[data-v-85e7eea6]{width:64px;height:64px;border-radius:50%}.count-display[data-v-85e7eea6]{min-width:100px;text-align:center}.start-btn[data-v-85e7eea6]{min-width:200px;height:64px;border-radius:32px;font-size:1.2rem}.filter-options-card[data-v-85e7eea6]{max-width:450px;margin:0 auto}.filter-chip[data-v-85e7eea6]{cursor:pointer;transition:all .2s ease}.filter-chip[data-v-85e7eea6]:active{transform:scale(.95)}.student-list-tooltip[data-v-85e7eea6]{max-height:200px;overflow-y:auto;margin-top:5px;font-size:.9em}.animation-container[data-v-85e7eea6]{min-height:300px;display:flex;flex-direction:column;justify-content:center;align-items:center}.animation-wrapper[data-v-85e7eea6]{width:100%;max-width:400px;margin:0 auto}.shuffle-container[data-v-85e7eea6]{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.student-item[data-v-85e7eea6]{padding:10px 15px;background-color:rgba(var(--v-theme-surface-variant),.7);border-radius:8px;transition:all .3s ease;font-size:1.2rem}.student-item.highlighted[data-v-85e7eea6]{background-color:rgb(var(--v-theme-primary));color:rgb(var(--v-theme-on-primary));transform:scale(1.1);font-weight:700;box-shadow:0 4px 8px #0003}.result-container[data-v-85e7eea6]{min-height:300px}.result-card[data-v-85e7eea6]{max-width:400px;margin:0 auto;transition:transform .3s ease}.result-card[data-v-85e7eea6]:hover{transform:translateY(-4px)}.result-card:hover .refresh-btn[data-v-85e7eea6]{opacity:1}.refresh-btn[data-v-85e7eea6]{opacity:.7;transition:opacity .3s ease}.refresh-btn[data-v-85e7eea6]:hover{opacity:1}@keyframes refresh-pulse-85e7eea6{0%{transform:scale(1);box-shadow:0 0 rgba(var(--v-theme-primary),.5)}50%{transform:scale(1.05);box-shadow:0 0 15px rgba(var(--v-theme-primary),.7)}to{transform:scale(1);box-shadow:0 0 rgba(var(--v-theme-primary),.5)}}.refresh-animation[data-v-85e7eea6]{animation:refresh-pulse-85e7eea6 .5s ease}.shuffle-enter-active[data-v-85e7eea6],.shuffle-leave-active[data-v-85e7eea6]{transition:all .5s ease}.shuffle-enter-from[data-v-85e7eea6],.shuffle-leave-to[data-v-85e7eea6]{opacity:0;transform:translateY(30px)}.shuffle-move[data-v-85e7eea6]{transition:transform .5s ease}@media (hover: none){.counter-btn[data-v-85e7eea6],.start-btn[data-v-85e7eea6]{min-height:72px}.student-item[data-v-85e7eea6]{padding:12px 20px;font-size:1.4rem}.refresh-btn[data-v-85e7eea6]{opacity:1;min-width:36px;min-height:36px}.filter-chip[data-v-85e7eea6]{min-height:40px;font-size:1rem}}.mode-switch-container .mode-toggle[data-v-85e7eea6]{border:1px solid rgba(var(--v-theme-primary),.2);border-radius:50px;padding:4px;box-shadow:0 2px 8px #0000001a}.mode-switch-container .mode-toggle .v-btn[data-v-85e7eea6]{min-width:120px;height:40px;font-weight:500;letter-spacing:.5px}.mode-switch-container .mode-toggle .v-btn.v-btn--active[data-v-85e7eea6]{transform:scale(1.02);font-weight:600}.number-range-container[data-v-85e7eea6]{max-width:300px;margin:0 auto;padding:16px;background:rgba(var(--v-theme-surface-variant),.1);border-radius:12px;border:1px solid rgba(var(--v-theme-primary),.1)}.number-range-container .number-input[data-v-85e7eea6]{width:100px}.number-range-container .number-input[data-v-85e7eea6] .v-field{border-radius:8px;box-shadow:0 2px 4px #0000000d}[data-v-e250350b] .v-dialog{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}[data-v-e250350b] .v-overlay__scrim{background:#000c!important}.urgent-notification-card[data-v-e250350b]{position:relative;animation:urgentPulse-e250350b 2s infinite,slideIn-e250350b .5s ease-out;border:3px solid rgba(255,255,255,.3)}.close-btn[data-v-e250350b]{position:absolute;top:16px;right:16px;z-index:1}.urgency-icon[data-v-e250350b]{animation:iconPulse-e250350b 1.5s infinite;filter:drop-shadow(0 0 10px rgba(255,255,255,.5))}.urgent-title[data-v-e250350b]{font-size:2.5rem;font-weight:700;color:#fff;line-height:1.2}.notification-content[data-v-e250350b]{font-size:1.4rem;color:#fffffff2;line-height:1.6;padding:0 20px}.sender-label[data-v-e250350b],.target-label[data-v-e250350b]{font-size:.9rem;color:#fffc;font-weight:600;text-transform:uppercase;letter-spacing:1px}.sender-details[data-v-e250350b],.target-devices[data-v-e250350b]{display:flex;flex-wrap:wrap;gap:8px}.actions[data-v-e250350b]{display:flex;justify-content:center;gap:16px}.navigation-controls[data-v-e250350b]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.notification-counter[data-v-e250350b]{color:#fff;font-weight:600}.navigation-buttons[data-v-e250350b]{display:flex;justify-content:center;gap:8px}@keyframes urgentPulse-e250350b{0%,to{box-shadow:0 0 30px #ffffff4d}50%{box-shadow:0 0 50px #fff9}}@keyframes iconPulse-e250350b{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}@keyframes slideIn-e250350b{0%{opacity:0;transform:translateY(-50px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 600px){.urgent-title[data-v-e250350b]{font-size:2rem}.notification-content[data-v-e250350b]{font-size:1.2rem;padding:0 10px}.urgent-notification-card[data-v-e250350b]{width:95%!important;margin:20px}}.chat-toggle[data-v-1a62ac2a]{position:fixed;z-index:1100}.chat-panel[data-v-1a62ac2a]{position:fixed;z-index:1101}.chat-card[data-v-1a62ac2a]{width:100%;height:100%;display:flex;flex-direction:column}.chat-body[data-v-1a62ac2a]{padding:8px 12px;height:calc(100% - 120px)}.messages[data-v-1a62ac2a]{height:100%;overflow:auto}.message-row[data-v-1a62ac2a]{display:flex;align-items:flex-end;margin:8px 0}.message-row.self[data-v-1a62ac2a]{flex-direction:row-reverse}.message-row .avatar[data-v-1a62ac2a]{width:28px;display:flex;justify-content:center}.message-row .bubble[data-v-1a62ac2a]{max-width:70%;background:#ffffff0f;border-radius:10px;padding:6px 10px;margin:0 8px}.message-row.self .bubble[data-v-1a62ac2a]{background:#2196f326}.bubble .text[data-v-1a62ac2a]{white-space:pre-wrap;word-break:break-word}.bubble .meta[data-v-1a62ac2a]{font-size:12px;opacity:.6;margin-top:2px;text-align:right}.bubble .sender-name[data-v-1a62ac2a]{font-size:11px;color:#fffc;margin-bottom:2px;font-weight:500}.message-row.self .bubble .sender-name[data-v-1a62ac2a]{color:#2196f3cc}.device-name[data-v-1a62ac2a]{font-weight:500;opacity:.8}.divider-row[data-v-1a62ac2a]{text-align:center;color:#fff9;font-size:12px}.divider-text[data-v-1a62ac2a]{margin:4px 0}.chat-input[data-v-1a62ac2a]{padding:8px}.events-container[data-v-1a62ac2a]{height:100%;display:flex;flex-direction:column}.events-list[data-v-1a62ac2a]{flex-grow:1;overflow-y:auto;max-height:calc(100% - 120px)}.event-item[data-v-1a62ac2a]{transition:all .2s ease}.event-item[data-v-1a62ac2a]:hover{transform:translate(2px)}.event-content[data-v-1a62ac2a]{max-width:100%}.chat-content[data-v-1a62ac2a]{background:#0000000d;padding:4px 8px;border-radius:4px;word-break:break-word}.event-data[data-v-1a62ac2a]{background:#0000000d;padding:4px;border-radius:4px;font-size:10px;max-height:100px;overflow-y:auto;white-space:pre-wrap;word-break:break-all}.pagination[data-v-1a62ac2a]{display:flex;justify-content:center}.event-stats[data-v-1a62ac2a]{flex-shrink:0}.gap-1[data-v-c6850940]{gap:4px}.message-history-card .v-chip[data-v-c6850940]{margin:1px}.floating-icp-link[data-v-fa73670f]{position:fixed;right:4px;bottom:0;z-index:100;font-size:14px;font-weight:500;letter-spacing:.2px;color:#6b6b6b;text-decoration:none;background:transparent;border:none;box-shadow:none;transition:none!important}.floating-icp-link[data-v-fa73670f]:hover,.floating-icp-link[data-v-fa73670f]:focus,.floating-icp-link[data-v-fa73670f]:active{color:#414141;text-decoration:none;outline:none}@media (max-width: 600px){.floating-icp-link[data-v-fa73670f]{right:16px;bottom:0;font-size:14px}}.floating-toolbar-container[data-v-7076d3aa]{position:fixed;bottom:0;left:0;width:100%;height:0;z-index:100;display:flex;justify-content:center;pointer-events:none}.floating-toolbar[data-v-7076d3aa]{position:absolute;bottom:24px;left:50%;transform:translate(-50%);transition:all .3s cubic-bezier(.4,0,.2,1);background:#ffffffb3!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2);box-shadow:0 8px 32px #0000001a!important;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;display:flex;align-items:center;justify-content:space-between;padding:0 4px;pointer-events:auto;will-change:transform}.floating-toolbar[data-v-7076d3aa]:hover{transform:translate(-50%) translateY(-4px);background:#fffc!important}.toolbar-buttons[data-v-7076d3aa]{display:flex;align-items:center}.toolbar-btn[data-v-7076d3aa]{margin:0 2px}.toolbar-btn[data-v-7076d3aa]:hover{background:#ffffff4d!important;transform:scale(1.05)}.toolbar-btn[data-v-7076d3aa]:active{transform:scale(.95)}.side-action-btn[data-v-7076d3aa]{position:absolute;bottom:24px;right:24px;pointer-events:auto;z-index:101;background:#ffffffe6!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2)}.date-picker-card[data-v-7076d3aa]{border-radius:16px;overflow:hidden;background:#ffffffe6!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2)}@media (max-width: 600px){.floating-toolbar[data-v-7076d3aa]{bottom:16px;width:auto;max-width:95%;padding:2px}.toolbar-buttons[data-v-7076d3aa]{width:100%;justify-content:space-around;padding:4px}.toolbar-btn[data-v-7076d3aa]{margin:0;min-width:40px}.side-action-btn[data-v-7076d3aa]{bottom:80px;right:16px}}@media (prefers-color-scheme: dark){.floating-toolbar[data-v-7076d3aa]{background:#1e1e1eb3!important;border:1px solid rgba(255,255,255,.1)}.floating-toolbar[data-v-7076d3aa]:hover{background:#1e1e1ecc!important}.toolbar-btn[data-v-7076d3aa]:hover{background:#ffffff1a!important}.date-picker-card[data-v-7076d3aa]{background:#1e1e1ee6!important;border:1px solid rgba(255,255,255,.1)}.side-action-btn[data-v-7076d3aa]{background:#1e1e1ee6!important;border:1px solid rgba(255,255,255,.1);color:#fff!important}}.gap-1[data-v-7f9de516]{gap:4px}.gap-2[data-v-7f9de516]{gap:8px}.template-buttons[data-v-b3e3018d]{display:flex;flex-direction:column;gap:12px}.book-chip[data-v-b3e3018d]{align-self:flex-start}.pages-container[data-v-b3e3018d]{display:flex;flex-wrap:wrap;gap:4px;padding-left:16px}.group-label[data-v-b3e3018d]{font-size:.875rem;color:#0009;margin-right:8px;white-space:nowrap}[data-v-b3e3018d] .v-chip{cursor:pointer;-webkit-user-select:none;user-select:none}.quick-tools[data-v-b3e3018d]{border-left:1px solid rgba(0,0,0,.12);padding-left:16px}.gap-1[data-v-b3e3018d]{gap:4px}.numeric-keypad[data-v-b3e3018d]{display:flex;flex-direction:column;gap:4px;padding:8px;border:1px solid rgba(0,0,0,.12);border-radius:4px}.keypad-row[data-v-b3e3018d]{display:flex;gap:4px}.keypad-btn[data-v-b3e3018d]{flex:1;min-width:36px!important}.space-btn[data-v-b3e3018d]{width:100%!important}.cursor-not-allowed[data-v-1f29e910]{cursor:not-allowed!important}.cursor-pointer[data-v-1f29e910]{cursor:pointer}.v-card.cursor-not-allowed[data-v-1f29e910]:hover{transform:none!important}.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field .v-field__input>input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden}.v-autocomplete__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-menu>.v-overlay__content.v-autocomplete__content{border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-surface-light))}.v-autocomplete__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single:not(.v-autocomplete--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--active input{transition:none}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{transform:rotate(180deg)}.auth-card[data-v-9e8d02e4]{max-width:100%;min-height:500px}.form-section[data-v-9e8d02e4]{max-width:600px;margin:0 auto}.v-btn[data-v-9e8d02e4]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.v-btn.v-btn--size-x-large[data-v-9e8d02e4]{min-height:60px}.guide-card[data-v-817c6e0e]{max-width:100%;min-height:500px}.step-content[data-v-817c6e0e]{min-height:400px;animation:fadeIn-817c6e0e .3s ease-in}@keyframes fadeIn-817c6e0e{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.button-group[data-v-817c6e0e]{max-width:600px;margin:0 auto}.step-item[data-v-817c6e0e]{cursor:default}.v-btn[data-v-817c6e0e]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.v-btn.v-btn--size-x-large[data-v-817c6e0e]{min-height:120px}.relationship-diagram[data-v-817c6e0e]{display:flex;justify-content:space-around;align-items:flex-start;gap:20px;flex-wrap:wrap}.diagram-item[data-v-817c6e0e]{flex:1;min-width:200px;max-width:300px}.diagram-connector[data-v-817c6e0e]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100px}.diagram-description[data-v-817c6e0e]{text-align:center}@media (max-width: 768px){.relationship-diagram[data-v-817c6e0e]{flex-direction:column;align-items:center}.diagram-connector[data-v-817c6e0e]{transform:rotate(90deg);margin:20px 0}}.progressive-register-card[data-v-817c6e0e]{transition:all .3s ease;border:2px solid transparent!important}.progressive-register-card[data-v-817c6e0e]:hover{box-shadow:0 8px 24px #0000001f!important}.progressive-register-card .card-icon-wrapper[data-v-817c6e0e],.progressive-register-card .card-actions[data-v-817c6e0e]{flex-shrink:0}.progressive-register-card code[data-v-817c6e0e]{background:#0000001a;padding:2px 6px;border-radius:4px;font-family:Consolas,Monaco,Courier New,monospace}.log-box[data-v-817c6e0e]{height:140px;overflow:auto;background:#0000000a;border-radius:8px;padding:8px 12px}.log-line+.log-line[data-v-817c6e0e]{margin-top:4px}.device-code[data-v-817c6e0e]{background:#0000001a;padding:2px 6px;border-radius:4px;font-family:Consolas,Monaco,Courier New,monospace;font-size:.875rem}.init-overlay[data-v-cbfbc6db]{position:relative}.init-container[data-v-cbfbc6db]{max-width:900px;margin:24px auto;padding:8px 16px}.init-header .title[data-v-cbfbc6db]{font-size:28px;font-weight:700;text-align:left;margin-bottom:8px}.init-header .subtitle[data-v-cbfbc6db]{font-size:14px;opacity:.75;text-align:left}.main-card-row[data-v-cbfbc6db]{display:flex;flex-direction:column;gap:16px;margin-top:32px}.main-service-card[data-v-cbfbc6db]{min-height:100px;cursor:pointer;transition:all .3s ease}.main-service-card[data-v-cbfbc6db]:hover{box-shadow:0 4px 12px #00000026!important}.main-service-card .v-card-item[data-v-cbfbc6db]{padding:20px 24px}.card-horizontal-layout[data-v-cbfbc6db]{display:flex;align-items:center;gap:20px}.card-icon-wrapper[data-v-cbfbc6db]{flex-shrink:0}.card-content[data-v-cbfbc6db]{flex:1;text-align:left}.gradient-new[data-v-cbfbc6db]{background:linear-gradient(135deg,#2196f31f,#6750a414 60%);border:2px solid rgba(33,150,243,.2)}.gradient-registered[data-v-cbfbc6db]{background:linear-gradient(135deg,#4caf501f,#00b8d414 60%);border:2px solid rgba(76,175,80,.2)}.gradient-kv[data-v-cbfbc6db]{background:linear-gradient(135deg,#00b8d41f,#2196f314 60%);border:2px solid rgba(0,184,212,.2)}.alternative-options[data-v-cbfbc6db]{margin-top:40px;padding:20px;background:rgba(var(--v-theme-surface-variant),.3);border-radius:12px}.options-title[data-v-cbfbc6db]{font-size:14px;font-weight:600;opacity:.8;margin-bottom:12px;text-align:left}.options-buttons[data-v-cbfbc6db]{margin-top:24px;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start}.clickable[data-v-cbfbc6db]{cursor:pointer}.footer-hint[data-v-cbfbc6db]{margin-top:24px;font-size:13px;opacity:.7;text-align:left}@media (max-width: 768px){.card-horizontal-layout[data-v-cbfbc6db]{gap:16px}.card-icon-wrapper .v-icon[data-v-cbfbc6db]{font-size:40px!important}.options-buttons[data-v-cbfbc6db]{flex-direction:column}.options-buttons .v-btn[data-v-cbfbc6db]{width:100%}}.glow-effect{transition:box-shadow .3s ease-in-out,transform .3s ease-in-out}.glow-effect:hover{box-shadow:0 0 15px rgba(var(--v-theme-primary),.5);transform:translateY(-2px)}.glow-text{text-shadow:0 0 5px rgba(var(--v-theme-primary),.5)}.bloom-container .v-card{transition:box-shadow .3s ease}.bloom-container .v-card:hover{box-shadow:0 4px 20px #0000001a,0 0 15px rgba(var(--v-theme-primary),.3)!important}.bloom-container .v-btn{transition:box-shadow .3s ease}.bloom-container .v-btn:hover{box-shadow:0 0 10px rgba(var(--v-theme-primary),.4)}.glow-track{position:relative;overflow:hidden;transition:all .3s ease}.glow-track:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(circle at var(--x, 50%) var(--y, 50%),rgba(255,255,255,.15) 0%,rgba(255,255,255,0) 70%);opacity:0;transition:opacity .3s;pointer-events:none;z-index:1}.glow-track:hover:before{opacity:1}.glow-highlight{animation:glow-pulse 3s ease-in-out;box-shadow:0 0 20px #2196f399,0 0 40px #2196f366,0 0 60px #2196f333!important}@keyframes glow-pulse{0%,to{box-shadow:0 0 20px #2196f399,0 0 40px #2196f366,0 0 60px #2196f333}50%{box-shadow:0 0 30px #2196f3cc,0 0 60px #2196f399,0 0 90px #2196f366}}.grid-item .v-card{transition:transform .3s ease,box-shadow .3s ease}.grid-item .v-card:hover{transform:translateY(-4px);box-shadow:0 8px 16px #00000026!important}.grid-item .v-card:active{transform:translateY(-2px)}.empty-subject-card{transition:all .3s ease;opacity:.8}.empty-subject-card:hover{opacity:1;transform:translateY(-4px)}.anti-burn-card{animation:subtle-glow 4s infinite alternate;transition:all .3s ease}.anti-burn-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026!important}@keyframes subtle-glow{0%{box-shadow:0 0 5px #2196f31a}to{box-shadow:0 0 15px #2196f34d}}.grid-masonry{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:8px;grid-auto-flow:dense}.grid-item{width:100%;transition:all .2s ease}.empty-card{transform:scale(.9);opacity:.8;grid-row-end:span 1!important}.empty-card:hover{transform:scale(.95);opacity:1}.empty-subjects-container{display:flex;flex-wrap:wrap}@media (max-width: 1199px){.grid-masonry{grid-template-columns:repeat(2,1fr)}}@media (max-width: 799px){.grid-masonry{grid-template-columns:1fr}.empty-card{transform:scale(.95)}}.main-window::-webkit-scrollbar{width:8px}.main-window::-webkit-scrollbar-track{background:transparent}.main-window::-webkit-scrollbar-thumb{background-color:#0003;border-radius:4px}.main-window::-webkit-scrollbar-thumb:hover{background-color:#0000004d}.no-data-message{display:flex;justify-content:center;align-items:center;min-height:200px;margin:20px 0}.attendance-drawer{border-left:1px solid rgba(0,0,0,.12)}.attendance-drawer :deep(.v-navigation-drawer__content){overflow-y:auto}.attendance-drawer :deep(.v-navigation-drawer__content::-webkit-scrollbar){width:8px}.attendance-drawer :deep(.v-navigation-drawer__content::-webkit-scrollbar-track){background:transparent}.attendance-drawer :deep(.v-navigation-drawer__content::-webkit-scrollbar-thumb){background-color:#0003;border-radius:4px}.attendance-drawer :deep(.v-navigation-drawer__content::-webkit-scrollbar-thumb:hover){background-color:#0000004d}@media (max-width: 960px){.attendance-drawer{display:none}}.text-success{color:rgb(var(--v-theme-success))}.text-error{color:rgb(var(--v-theme-error))}.text-warning{color:rgb(var(--v-theme-warning))}.attendance-card{display:flex;flex-direction:column}.attendance-numbers{padding:20px 0}.total-number{border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:20px}.status-number{flex:1}.text-h2,.text-h3{line-height:1.2}.empty-subjects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;padding:8px}.empty-subject-card{cursor:pointer;transition:all .2s ease;opacity:.8}.empty-subject-card:hover{transform:scale(1.02);opacity:1}.empty-subjects{border-top:1px solid rgba(0,0,0,.12);padding-top:1rem}.empty-subject-card:not(:disabled):hover{opacity:1;transform:scale(1.02)}.attendance-stat{height:100%}.suggestion-btn{margin:2px;min-width:0;padding:0 6px}.suggestion-btn:active{transform:scale(.95)}@media (hover: none){.student-card .attendance-actions{opacity:1}}@media (max-width: 600px){.student-card .attendance-actions .v-btn{margin:0 1px;min-width:28px;width:28px;height:28px}}.filter-chip{cursor:pointer;margin:2px}.filter-chip:active{transform:scale(.95)}.grid-item{transition:transform .4s cubic-bezier(.05,.7,.1,1),opacity .2s cubic-bezier(.2,0,0,1);will-change:transform,opacity;backface-visibility:hidden}.grid-item.v-enter-active{transition:transform .4s cubic-bezier(.05,.7,.1,1),opacity .25s cubic-bezier(.2,0,0,1)}.grid-item.v-move{transition:transform .4s cubic-bezier(.05,.7,.1,1);z-index:1}.grid-item.v-leave-active{position:absolute!important;transition:transform .3s cubic-bezier(.3,0,.8,.15),opacity .2s cubic-bezier(.3,0,1,1)}.grid-item.v-enter-from,.grid-item.v-leave-to{opacity:0;transform:scale(.95)}.empty-subject-card{transition:all .25s cubic-bezier(.2,0,0,1)}.empty-subject-card:hover{transform:translateY(-4px) scale(1.02);box-shadow:0 4px 24px #0000001f}.v-list-enter-active{transition:all .4s cubic-bezier(.05,.7,.1,1)}.v-list-leave-active{transition:all .3s cubic-bezier(.3,0,.8,.15)}.v-list-enter-from,.v-list-leave-to{opacity:0;transform:translate(-24px)}.attendance-area h2,.attendance-area h3{transition:all .3s cubic-bezier(.2,0,0,1)}.v-card{transition:all .4s cubic-bezier(.05,.7,.1,1)}.v-card:active{transform:scale(.98);transition-duration:.1s}.v-card{touch-action:manipulation}.v-card:active{transform:scale(.99);transition-duration:80ms}@media (pointer: coarse){.v-card:before{margin:-8px}}.v-dialog:before{display:none!important}.v-dialog:before,.v-dialog:after{display:none!important}.v-dialog .v-card{transition:none}.v-dialog .v-card:active{transform:none}.v-dialog-transition-enter-active{transition:transform .4s cubic-bezier(.05,.7,.1,1),opacity .3s cubic-bezier(.2,0,0,1)}.v-dialog-transition-leave-active{transition:transform .25s cubic-bezier(.3,0,.8,.15),opacity .2s cubic-bezier(.3,0,1,1)}.v-btn{transition:background-color .25s cubic-bezier(.2,0,0,1),transform .15s cubic-bezier(.05,.7,.1,1);touch-action:manipulation;min-height:40px;min-width:40px}.v-btn:active{transform:scale(.98);transition-duration:80ms}@media (pointer: coarse){.v-btn{padding:8px 16px;margin:4px}.v-btn:before{margin:-8px}}.no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none}.grid-enter-active,.grid-leave-active{transition:all .5s ease}.grid-enter-from{opacity:0;transform:translateY(20px)}.grid-leave-to{opacity:0;transform:translateY(-20px)}.v-list-enter-active,.v-list-leave-active{transition:all .3s ease}.v-list-enter-from{opacity:0;transform:translate(-20px)}.v-list-leave-to{opacity:0;transform:translate(20px)}.page-enter-active,.page-leave-active{transition:opacity .3s,transform .3s}.page-enter-from{opacity:0;transform:translateY(20px)}.page-leave-to{opacity:0;transform:translateY(-20px)}.fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter-from,.fade-leave-to{opacity:0}.scale-enter-active,.scale-leave-active{transition:all .3s}.scale-enter-from,.scale-leave-to{opacity:0;transform:scale(.9)}.hover-card{transition:transform .2s ease,box-shadow .3s ease;will-change:transform,box-shadow}.hover-card:hover,.hover-card:focus{transform:translateY(-4px);box-shadow:0 8px 16px #00000026!important}.hover-card:active{transform:translateY(-2px);box-shadow:0 4px 8px #0000001a!important}.touch-button{min-height:48px;min-width:48px;border-radius:12px;padding:12px 24px}.touch-button.v-btn--icon{min-height:56px;min-width:56px}.ripple-enhanced{position:relative;overflow:hidden}.ripple-enhanced:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(circle at var(--x, 50%) var(--y, 50%),rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 60%);opacity:0;transition:opacity .5s;pointer-events:none}.ripple-enhanced:active:after{opacity:1;transition:opacity .2s}html{scroll-behavior:smooth}.v-app-bar{position:fixed!important}.touch-list-item{min-height:56px;padding:12px 16px}.large-touch-target{min-height:56px;min-width:56px}.fullscreen-mode .v-app-bar{background-color:rgba(var(--v-theme-surface-variant),.85)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.fullscreen-mode .main-window{padding-top:16px;padding-bottom:16px} diff --git a/assets/index-GyS8nTIx.js b/assets/index-GyS8nTIx.js new file mode 100644 index 0000000..9f501ac --- /dev/null +++ b/assets/index-GyS8nTIx.js @@ -0,0 +1,44 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./default-DRcAN1rd.js","./default-CmdaPMSp.css","./index-CGbgI0fv.js","./VTextField-xLiM0gib.js","./VTextField-DTDEIDq0.css","./VBadge-Dfdn66Fe.js","./VBadge-CeM1RYir.css","./VChip-DsTHqUw0.js","./VChip-Dmz_1Lnv.css","./socketClient-D4dHF2XE.js","./deviceEvents-bqh40TeD.js","./VRow-DtMdTMSo.js","./filter-D0RnlzqQ.js","./VCheckboxBtn-Cjkf0n-9.js","./VSwitch-COsJOhk2.js","./VSwitch-C87GkfUP.css","./VMenu-ClQzjH_h.js","./VMenu-C31D-C2L.css","./filter-B-69CGo3.css","./VTextarea-BeSb8uK6.js","./VTextarea-CB_zhwgO.css","./dataProvider-CVD6IsoX.js","./VAppBarTitle-CUv9Ys4F.js","./VAppBarTitle-DHaTV8xv.css","./VContainer-B1JGY98V.js","./VForm-CnK2lukw.js","./VDatePicker-D6FkGAp6.js","./VSheet-DBWP7oOE.js","./VSheet-DW_b51tO.css","./VDatePicker-BKahqdZK.css","./index-CcbavYG9.js","./index-BGkFwivK.css","./VAlert-CB2ovGuT.js","./VAlert-D_OX1cfW.css","./VExpansionPanels-uPjuA0pD.js","./VExpansionPanels-kEj4ZJQK.css","./index-DZHIzZgR.css","./404-C6NusGbt.js","./authorize-D8xTRwK6.js","./CacheManagement-DaWI8BSa.js","./VSkeletonLoader-DnBPECWc.js","./VSkeletonLoader-C11ZEozu.css","./cses2wakeup-Cprhtj0i.js","./VTabsWindowItem-ClJOXEhz.js","./VTabsWindowItem-DsCcWpt1.css","./cses2wakeup-B_ZAsO72.css","./debug-BuTu-WXm.js","./debug-CbS14biG.css","./debug-init-BXM_Z6IC.js","./debug-socket-CdHPMvEr.js","./_id_-EtvF3n8F.js","./ExamConfigEditor-CcO-5EW7.js","./ExamConfigEditor-B82fI3LH.css","./exam-player-CIP0YcPa.js","./exam-player-DVKAP24G.css","./examschedule-CSfflKwV.js","./examschedule-CscQiHT5.css","./index-BkGTTW92.js","./_id_-DaLKYTcE.js","./settings-CKHEbZ82.js","./settings-ilxddEFL.css","./socket-debugger-C9XJXx_m.js","./socket-debugger-ykBk0O32.css"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const Jd="modulepreload",Qd=function(e,t){return new URL(e,t).href},ka={},He=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(u=>{if(u=Qd(u,r),u in ka)return;ka[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let g=o.length-1;g>=0;g--){const v=o[g];if(v.href===u&&(!c||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":Jd,c||(m.as="script"),m.crossOrigin="",m.href=u,l&&m.setAttribute("nonce",l),document.head.appendChild(m),c)return new Promise((g,v)=>{m.addEventListener("load",g),m.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};/** +* @vue/shared v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Oo(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const we={},Qn=[],jt=()=>{},Lu=()=>!1,ei=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ro=e=>e.startsWith("onUpdate:"),Fe=Object.assign,Do=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},em=Object.prototype.hasOwnProperty,ye=(e,t)=>em.call(e,t),re=Array.isArray,er=e=>ti(e)==="[object Map]",Mu=e=>ti(e)==="[object Set]",oe=e=>typeof e=="function",Re=e=>typeof e=="string",nn=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",Nu=e=>(_e(e)||oe(e))&&oe(e.then)&&oe(e.catch),Vu=Object.prototype.toString,ti=e=>Vu.call(e),tm=e=>ti(e).slice(8,-1),Fu=e=>ti(e)==="[object Object]",ni=e=>Re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dr=Oo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ri=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nm=/-\w/g,at=ri(e=>e.replace(nm,t=>t.slice(1).toUpperCase())),rm=/\B([A-Z])/g,pn=ri(e=>e.replace(rm,"-$1").toLowerCase()),vr=ri(e=>e.charAt(0).toUpperCase()+e.slice(1)),wi=ri(e=>e?`on${vr(e)}`:""),hn=(e,t)=>!Object.is(e,t),As=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Lo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},sm=e=>{const t=Re(e)?Number(e):NaN;return isNaN(t)?e:t};let Ta;const si=()=>Ta||(Ta=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xe(e){if(re(e)){const t={};for(let n=0;n{if(n){const r=n.split(om);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function he(e){let t="";if(Re(e))t=e;else if(re(e))for(let n=0;n!!(e&&e.__v_isRef===!0),xt=e=>Re(e)?e:e==null?"":re(e)||_e(e)&&(e.toString===Vu||!oe(e.toString))?Hu(e)?xt(e.value):JSON.stringify(e,ju,2):String(e),ju=(e,t)=>Hu(t)?ju(e,t.value):er(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[_i(r,i)+" =>"]=s,n),{})}:Mu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>_i(n))}:nn(t)?_i(t):_e(t)&&!re(t)&&!Fu(t)?String(t):t,_i=(e,t="")=>{var n;return nn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Ye;class Wu{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ye,!t&&Ye&&(this.index=(Ye.scopes||(Ye.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(Ye=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(Mr){let t=Mr;for(Mr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Lr;){let t=Lr;for(Lr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function qu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Yu(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Vo(r),fm(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Zi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gr)||(e.globalVersion=Gr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Zi(e))))return;e.flags|=2;const t=e.dep,n=Ee,r=At;Ee=e,At=!0;try{qu(e);const s=e.fn(e._value);(t.version===0||hn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ee=n,At=r,Yu(e),e.flags&=-3}}function Vo(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Vo(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function fm(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let At=!0;const Zu=[];function Jt(){Zu.push(At),At=!1}function Qt(){const e=Zu.pop();At=e===void 0?!0:e}function Pa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ee;Ee=void 0;try{t()}finally{Ee=n}}}let Gr=0;class dm{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Fo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ee||!At||Ee===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ee)n=this.activeLink=new dm(Ee,this),Ee.deps?(n.prevDep=Ee.depsTail,Ee.depsTail.nextDep=n,Ee.depsTail=n):Ee.deps=Ee.depsTail=n,Ju(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ee.depsTail,n.nextDep=void 0,Ee.depsTail.nextDep=n,Ee.depsTail=n,Ee.deps===n&&(Ee.deps=r)}return n}trigger(t){this.version++,Gr++,this.notify(t)}notify(t){Mo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{No()}}}function Ju(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ju(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ls=new WeakMap,Rn=Symbol(""),Ji=Symbol(""),Ur=Symbol("");function Xe(e,t,n){if(At&&Ee){let r=Ls.get(e);r||Ls.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Fo),s.map=r,s.key=n),s.track()}}function Yt(e,t,n,r,s,i){const o=Ls.get(e);if(!o){Gr++;return}const a=l=>{l&&l.trigger()};if(Mo(),t==="clear")o.forEach(a);else{const l=re(e),u=l&&ni(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===Ur||!nn(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Ur)),t){case"add":l?u&&a(o.get("length")):(a(o.get(Rn)),er(e)&&a(o.get(Ji)));break;case"delete":l||(a(o.get(Rn)),er(e)&&a(o.get(Ji)));break;case"set":er(e)&&a(o.get(Rn));break}}No()}function mm(e,t){const n=Ls.get(e);return n&&n.get(t)}function Wn(e){const t=ee(e);return t===e?t:(Xe(t,"iterate",Ur),gt(e)?t:t.map(kt))}function ii(e){return Xe(e=ee(e),"iterate",Ur),e}function cn(e,t){return en(e)?Dn(e)?lr(kt(t)):lr(t):kt(t)}const hm={__proto__:null,[Symbol.iterator](){return Ei(this,Symbol.iterator,e=>cn(this,e))},concat(...e){return Wn(this).concat(...e.map(t=>re(t)?Wn(t):t))},entries(){return Ei(this,"entries",e=>(e[1]=cn(this,e[1]),e))},every(e,t){return Gt(this,"every",e,t,void 0,arguments)},filter(e,t){return Gt(this,"filter",e,t,n=>n.map(r=>cn(this,r)),arguments)},find(e,t){return Gt(this,"find",e,t,n=>cn(this,n),arguments)},findIndex(e,t){return Gt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Gt(this,"findLast",e,t,n=>cn(this,n),arguments)},findLastIndex(e,t){return Gt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Gt(this,"forEach",e,t,void 0,arguments)},includes(...e){return xi(this,"includes",e)},indexOf(...e){return xi(this,"indexOf",e)},join(e){return Wn(this).join(e)},lastIndexOf(...e){return xi(this,"lastIndexOf",e)},map(e,t){return Gt(this,"map",e,t,void 0,arguments)},pop(){return xr(this,"pop")},push(...e){return xr(this,"push",e)},reduce(e,...t){return Ia(this,"reduce",e,t)},reduceRight(e,...t){return Ia(this,"reduceRight",e,t)},shift(){return xr(this,"shift")},some(e,t){return Gt(this,"some",e,t,void 0,arguments)},splice(...e){return xr(this,"splice",e)},toReversed(){return Wn(this).toReversed()},toSorted(e){return Wn(this).toSorted(e)},toSpliced(...e){return Wn(this).toSpliced(...e)},unshift(...e){return xr(this,"unshift",e)},values(){return Ei(this,"values",e=>cn(this,e))}};function Ei(e,t,n){const r=ii(e),s=r[t]();return r!==e&&!gt(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const gm=Array.prototype;function Gt(e,t,n,r,s,i){const o=ii(e),a=o!==e&&!gt(e),l=o[t];if(l!==gm[t]){const f=l.apply(e,i);return a?kt(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,cn(e,f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(o,u,r);return a&&s?s(c):c}function Ia(e,t,n,r){const s=ii(e);let i=n;return s!==e&&(gt(e)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,e)}):i=function(o,a,l){return n.call(this,o,cn(e,a),l,e)}),s[t](i,...r)}function xi(e,t,n){const r=ee(e);Xe(r,"iterate",Ur);const s=r[t](...n);return(s===-1||s===!1)&&oi(n[0])?(n[0]=ee(n[0]),r[t](...n)):s}function xr(e,t,n=[]){Jt(),Mo();const r=ee(e)[t].apply(e,n);return No(),Qt(),r}const vm=Oo("__proto__,__v_isRef,__isVue"),Qu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(nn));function pm(e){nn(e)||(e=String(e));const t=ee(this);return Xe(t,"has",e),t.hasOwnProperty(e)}class ec{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?km:sc:i?rc:nc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=re(t);if(!s){let l;if(o&&(l=hm[n]))return l;if(n==="hasOwnProperty")return pm}const a=Reflect.get(t,n,Le(t)?t:r);if((nn(n)?Qu.has(n):vm(n))||(s||Xe(t,"get",n),i))return a;if(Le(a)){const l=o&&ni(n)?a:a.value;return s&&_e(l)?ar(l):l}return _e(a)?s?ar(a):We(a):a}}class tc extends ec{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=re(t)&&ni(n);if(!this._isShallow){const u=en(i);if(!gt(r)&&!en(r)&&(i=ee(i),r=ee(r)),!o&&Le(i)&&!Le(r))return u||(i.value=r),!0}const a=o?Number(n)e,ps=e=>Reflect.getPrototypeOf(e);function _m(e,t,n){return function(...r){const s=this.__v_raw,i=ee(s),o=er(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?Qi:t?lr:kt;return!t&&Xe(i,"iterate",l?Ji:Rn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function ys(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Cm(e,t){const n={get(s){const i=this.__v_raw,o=ee(i),a=ee(s);e||(hn(s,a)&&Xe(o,"get",s),Xe(o,"get",a));const{has:l}=ps(o),u=t?Qi:e?lr:kt;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Xe(ee(s),"iterate",Rn),s.size},has(s){const i=this.__v_raw,o=ee(i),a=ee(s);return e||(hn(s,a)&&Xe(o,"has",s),Xe(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=ee(a),u=t?Qi:e?lr:kt;return!e&&Xe(l,"iterate",Rn),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return Fe(n,e?{add:ys("add"),set:ys("set"),delete:ys("delete"),clear:ys("clear")}:{add(s){!t&&!gt(s)&&!en(s)&&(s=ee(s));const i=ee(this);return ps(i).has.call(i,s)||(i.add(s),Yt(i,"add",s,s)),this},set(s,i){!t&&!gt(i)&&!en(i)&&(i=ee(i));const o=ee(this),{has:a,get:l}=ps(o);let u=a.call(o,s);u||(s=ee(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?hn(i,c)&&Yt(o,"set",s,i):Yt(o,"add",s,i),this},delete(s){const i=ee(this),{has:o,get:a}=ps(i);let l=o.call(i,s);l||(s=ee(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&Yt(i,"delete",s,void 0),u},clear(){const s=ee(this),i=s.size!==0,o=s.clear();return i&&Yt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=_m(s,e,t)}),n}function Bo(e,t){const n=Cm(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ye(n,s)&&s in r?n:r,s,i)}const Em={get:Bo(!1,!1)},xm={get:Bo(!1,!0)},Am={get:Bo(!0,!1)};const nc=new WeakMap,rc=new WeakMap,sc=new WeakMap,km=new WeakMap;function Tm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pm(e){return e.__v_skip||!Object.isExtensible(e)?0:Tm(tm(e))}function We(e){return en(e)?e:$o(e,!1,bm,Em,nc)}function ic(e){return $o(e,!1,wm,xm,rc)}function ar(e){return $o(e,!0,Sm,Am,sc)}function $o(e,t,n,r,s){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Pm(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Dn(e){return en(e)?Dn(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function gt(e){return!!(e&&e.__v_isShallow)}function oi(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function oc(e){return!ye(e,"__v_skip")&&Object.isExtensible(e)&&Bu(e,"__v_skip",!0),e}const kt=e=>_e(e)?We(e):e,lr=e=>_e(e)?ar(e):e;function Le(e){return e?e.__v_isRef===!0:!1}function ue(e){return ac(e,!1)}function le(e){return ac(e,!0)}function ac(e,t){return Le(e)?e:new Im(e,t)}class Im{constructor(t,n){this.dep=new Fo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ee(t),this._value=n?t:kt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||gt(t)||en(t);t=r?t:ee(t),hn(t,n)&&(this._rawValue=t,this._value=r?t:kt(t),this.dep.trigger())}}function ft(e){return Le(e)?e.value:e}function Qe(e){return oe(e)?e():ft(e)}const Om={get:(e,t,n)=>t==="__v_raw"?e:ft(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Le(s)&&!Le(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function lc(e){return Dn(e)?e:new Proxy(e,Om)}function uc(e){const t=re(e)?new Array(e.length):{};for(const n in e)t[n]=cc(e,n);return t}class Rm{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=ee(t);let s=!0,i=t;if(!re(t)||!ni(String(n)))do s=!oi(i)||gt(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=ft(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Le(this._raw[this._key])){const n=this._object[this._key];if(Le(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return mm(this._raw,this._key)}}class Dm{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function G(e,t,n){return Le(e)?e:oe(e)?new Dm(e):_e(e)&&arguments.length>1?cc(e,t,n):ue(e)}function cc(e,t,n){return new Rm(e,t,n)}class Lm{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Fo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ee!==this)return Ku(this,!0),!0}get value(){const t=this.dep.track();return Xu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Mm(e,t,n=!1){let r,s;return oe(e)?r=e:(r=e.get,s=e.set),new Lm(r,s,n)}const bs={},Ms=new WeakMap;let Tn;function Nm(e,t=!1,n=Tn){if(n){let r=Ms.get(n);r||Ms.set(n,r=[]),r.push(e)}}function Vm(e,t,n=we){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=_=>s?_:gt(_)||s===!1||s===0?Xt(_,1):Xt(_);let c,f,d,m,g=!1,v=!1;if(Le(e)?(f=()=>e.value,g=gt(e)):Dn(e)?(f=()=>u(e),g=!0):re(e)?(v=!0,g=e.some(_=>Dn(_)||gt(_)),f=()=>e.map(_=>{if(Le(_))return _.value;if(Dn(_))return u(_);if(oe(_))return l?l(_,2):_()})):oe(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Jt();try{d()}finally{Qt()}}const _=Tn;Tn=c;try{return l?l(e,3,[m]):e(m)}finally{Tn=_}}:f=jt,t&&s){const _=f,O=s===!0?1/0:s;f=()=>Xt(_(),O)}const E=Gu(),p=()=>{c.stop(),E&&E.active&&Do(E.effects,c)};if(i&&t){const _=t;t=(...O)=>{_(...O),p()}}let S=v?new Array(e.length).fill(bs):bs;const b=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const O=c.run();if(s||g||(v?O.some((A,D)=>hn(A,S[D])):hn(O,S))){d&&d();const A=Tn;Tn=c;try{const D=[O,S===bs?void 0:v&&S[0]===bs?[]:S,m];S=O,l?l(t,3,D):t(...D)}finally{Tn=A}}}else c.run()};return a&&a(b),c=new Uu(f),c.scheduler=o?()=>o(b,!1):b,m=_=>Nm(_,!1,c),d=c.onStop=()=>{const _=Ms.get(c);if(_){if(l)l(_,4);else for(const O of _)O();Ms.delete(c)}},t?r?b(!0):S=c.run():o?o(b.bind(null,!0),!0):c.run(),p.pause=c.pause.bind(c),p.resume=c.resume.bind(c),p.stop=p,p}function Xt(e,t=1/0,n){if(t<=0||!_e(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Le(e))Xt(e.value,t,n);else if(re(e))for(let r=0;r{Xt(r,t,n)});else if(Fu(e)){for(const r in e)Xt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Xt(e[r],t,n)}return e}/** +* @vue/runtime-core v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function os(e,t,n,r){try{return r?e(...r):e()}catch(s){ai(s,t,n)}}function Tt(e,t,n,r){if(oe(e)){const s=os(e,t,n,r);return s&&Nu(s)&&s.catch(i=>{ai(i,t,n)}),s}if(re(e)){const s=[];for(let i=0;i>>1,s=ot[r],i=zr(s);i=zr(n)?ot.push(e):ot.splice(Bm(t),0,e),e.flags|=1,dc()}}function dc(){Ns||(Ns=fc.then(hc))}function $m(e){re(e)?tr.push(...e):fn&&e.id===-1?fn.splice(Kn+1,0,e):e.flags&1||(tr.push(e),e.flags|=1),dc()}function Oa(e,t,n=Mt+1){for(;nzr(n)-zr(r));if(tr.length=0,fn){fn.push(...t);return}for(fn=t,Kn=0;Kne.id==null?e.flags&2?-1:1/0:e.id;function hc(e){try{for(Mt=0;Mt{r._d&&$s(-1);const i=Vs(t);let o;try{o=e(...s)}finally{Vs(i),r._d&&$s(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Vn(e,t){if(ze===null)return e;const n=mi(ze),r=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,Nr=e=>e&&(e.disabled||e.disabled===""),Ra=e=>e&&(e.defer||e.defer===""),Da=e=>typeof SVGElement<"u"&&e instanceof SVGElement,La=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,eo=(e,t)=>{const n=e&&e.to;return Re(n)?t?t(n):null:n},yc={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,a,l,u){const{mc:c,pc:f,pbc:d,o:{insert:m,querySelector:g,createText:v,createComment:E}}=u,p=Nr(t.props);let{shapeFlag:S,children:b,dynamicChildren:_}=t;if(e==null){const O=t.el=v(""),A=t.anchor=v("");m(O,n,r),m(A,n,r);const D=(T,H)=>{S&16&&c(b,T,H,s,i,o,a,l)},k=()=>{const T=t.target=eo(t.props,g),H=bc(T,t,v,m);T&&(o!=="svg"&&Da(T)?o="svg":o!=="mathml"&&La(T)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(T),p||(D(T,H),ks(t,!1)))};p&&(D(n,A),ks(t,!0)),Ra(t.props)?(t.el.__isMounted=!1,st(()=>{k(),delete t.el.__isMounted},i)):k()}else{if(Ra(t.props)&&e.el.__isMounted===!1){st(()=>{yc.process(e,t,n,r,s,i,o,a,l,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const O=t.anchor=e.anchor,A=t.target=e.target,D=t.targetAnchor=e.targetAnchor,k=Nr(e.props),T=k?n:A,H=k?O:D;if(o==="svg"||Da(A)?o="svg":(o==="mathml"||La(A))&&(o="mathml"),_?(d(e.dynamicChildren,_,T,s,i,o,a),Ko(e,t,!0)):l||f(e,t,T,H,s,i,o,a,!1),p)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ss(t,n,O,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=eo(t.props,g);B&&Ss(t,B,null,u,0)}else k&&Ss(t,A,D,u,1);ks(t,p)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(s(u),s(c)),i&&s(l),o&16){const m=i||!Nr(d);for(let g=0;g{e.isMounted=!0}),Ct(()=>{e.isUnmounting=!0}),e}const yt=[Function,Array],wc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:yt,onEnter:yt,onAfterEnter:yt,onEnterCancelled:yt,onBeforeLeave:yt,onLeave:yt,onAfterLeave:yt,onLeaveCancelled:yt,onBeforeAppear:yt,onAppear:yt,onAfterAppear:yt,onAppearCancelled:yt},_c=e=>{const t=e.subTree;return t.component?_c(t.component):t},Wm={name:"BaseTransition",props:wc,setup(e,{slots:t}){const n=ls(),r=Sc();return()=>{const s=t.default&&jo(t.default(),!0);if(!s||!s.length)return;const i=Cc(s),o=ee(e),{mode:a}=o;if(r.isLeaving)return Ai(i);const l=Ma(i);if(!l)return Ai(i);let u=Kr(l,o,r,n,f=>u=f);l.type!==Ue&&Fn(l,u);let c=n.subTree&&Ma(n.subTree);if(c&&c.type!==Ue&&!In(c,l)&&_c(n).type!==Ue){let f=Kr(c,o,r,n);if(Fn(c,f),a==="out-in"&&l.type!==Ue)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},Ai(i);a==="in-out"&&l.type!==Ue?f.delayLeave=(d,m,g)=>{const v=Ec(r,c);v[String(c.key)]=c,d[qt]=()=>{m(),d[qt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{g(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function Cc(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ue){t=n;break}}return t}const Gm=Wm;function Ec(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Kr(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:m,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:E,onAppear:p,onAfterAppear:S,onAppearCancelled:b}=t,_=String(e.key),O=Ec(n,e),A=(T,H)=>{T&&Tt(T,r,9,H)},D=(T,H)=>{const B=H[1];A(T,H),re(T)?T.every(x=>x.length<=1)&&B():T.length<=1&&B()},k={mode:o,persisted:a,beforeEnter(T){let H=l;if(!n.isMounted)if(i)H=E||l;else return;T[qt]&&T[qt](!0);const B=O[_];B&&In(e,B)&&B.el[qt]&&B.el[qt](),A(H,[T])},enter(T){let H=u,B=c,x=f;if(!n.isMounted)if(i)H=p||u,B=S||c,x=b||f;else return;let N=!1;const j=T[ws]=Y=>{N||(N=!0,Y?A(x,[T]):A(B,[T]),k.delayedLeave&&k.delayedLeave(),T[ws]=void 0)};H?D(H,[T,j]):j()},leave(T,H){const B=String(e.key);if(T[ws]&&T[ws](!0),n.isUnmounting)return H();A(d,[T]);let x=!1;const N=T[qt]=j=>{x||(x=!0,H(),j?A(v,[T]):A(g,[T]),T[qt]=void 0,O[B]===e&&delete O[B])};O[B]=e,m?D(m,[T,N]):N()},clone(T){const H=Kr(T,t,n,r,s);return s&&s(H),H}};return k}function Ai(e){if(ui(e))return e=gn(e),e.children=null,e}function Ma(e){if(!ui(e))return pc(e.type)&&e.children?Cc(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&oe(n.default))return n.default()}}function Fn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Fn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jo(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;iVr(g,t&&(re(t)?t[v]:t),n,r,s));return}if(nr(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Vr(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?mi(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===we?a.refs={}:a.refs,f=a.setupState,d=ee(f),m=f===we?Lu:g=>ye(d,g);if(u!=null&&u!==l){if(Na(t),Re(u))c[u]=null,m(u)&&(f[u]=null);else if(Le(u)){u.value=null;const g=t;g.k&&(c[g.k]=null)}}if(oe(l))os(l,a,12,[o,c]);else{const g=Re(l),v=Le(l);if(g||v){const E=()=>{if(e.f){const p=g?m(l)?f[l]:c[l]:l.value;if(s)re(p)&&Do(p,i);else if(re(p))p.includes(i)||p.push(i);else if(g)c[l]=[i],m(l)&&(f[l]=c[l]);else{const S=[i];l.value=S,e.k&&(c[e.k]=S)}}else g?(c[l]=o,m(l)&&(f[l]=o)):v&&(l.value=o,e.k&&(c[e.k]=o))};if(o){const p=()=>{E(),Fs.delete(e)};p.id=-1,Fs.set(e,p),st(p,n)}else Na(e),E()}}}function Na(e){const t=Fs.get(e);t&&(t.flags|=8,Fs.delete(e))}si().requestIdleCallback;si().cancelIdleCallback;const nr=e=>!!e.type.__asyncLoader,ui=e=>e.type.__isKeepAlive;function kc(e,t){Pc(e,"a",t)}function Tc(e,t){Pc(e,"da",t)}function Pc(e,t,n=Ze){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ci(t,r,n),n){let s=n.parent;for(;s&&s.parent;)ui(s.parent.vnode)&&Um(r,t,n,s),s=s.parent}}function Um(e,t,n,r){const s=ci(t,e,r,!0);Ic(()=>{Do(r[t],s)},n)}function ci(e,t,n=Ze,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Jt();const a=us(n),l=Tt(t,n,e,o);return a(),Qt(),l});return r?s.unshift(i):s.push(i),i}}const rn=e=>(t,n=Ze)=>{(!Yr||e==="sp")&&ci(e,(...r)=>t(...r),n)},fi=rn("bm"),yn=rn("m"),zm=rn("bu"),Wo=rn("u"),Ct=rn("bum"),Ic=rn("um"),Km=rn("sp"),qm=rn("rtg"),Ym=rn("rtc");function Xm(e,t=Ze){ci("ec",e,t)}const Oc="components";function Zm(e,t){return Lc(Oc,e,!0,t)||e}const Rc=Symbol.for("v-ndc");function Dc(e){return Re(e)?Lc(Oc,e,!1)||e:e||Rc}function Lc(e,t,n=!0,r=!1){const s=ze||Ze;if(s){const i=s.type;{const a=Fh(i,!1);if(a&&(a===t||a===at(t)||a===vr(at(t))))return i}const o=Va(s[e]||i[e],t)||Va(s.appContext[e],t);return!o&&r?i:o}}function Va(e,t){return e&&(e[t]||e[at(t)]||e[vr(at(t))])}function Jm(e,t,n,r){let s;const i=n,o=re(e);if(o||Re(e)){const a=o&&Dn(e);let l=!1,u=!1;a&&(l=!gt(e),u=en(e),e=ii(e)),s=new Array(e.length);for(let c=0,f=e.length;ct(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function uS(e,t,n={},r,s){if(ze.ce||ze.parent&&nr(ze.parent)&&ze.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),bt(),$t(Pe,null,[I("slot",n,r)],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),bt();const o=i&&Mc(i(n)),a=n.key||o&&o.key,l=$t(Pe,{key:(a&&!nn(a)?a:`_${t}`)+(!o&&r?"_fb":"")},o||[],o&&e._===1?64:-2);return i&&i._c&&(i._d=!0),l}function Mc(e){return e.some(t=>ur(t)?!(t.type===Ue||t.type===Pe&&!Mc(t.children)):!0)?e:null}const to=e=>e?ef(e)?mi(e):to(e.parent):null,Fr=Fe(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=>to(e.parent),$root:e=>to(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vc(e),$forceUpdate:e=>e.f||(e.f=()=>{Ho(e.update)}),$nextTick:e=>e.n||(e.n=qe.bind(e.proxy)),$watch:e=>uh.bind(e)}),ki=(e,t)=>e!==we&&!e.__isScriptSetup&&ye(e,t),Qm={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ki(r,t))return o[t]=1,r[t];if(s!==we&&ye(s,t))return o[t]=2,s[t];if(ye(i,t))return o[t]=3,i[t];if(n!==we&&ye(n,t))return o[t]=4,n[t];no&&(o[t]=0)}}const u=Fr[t];let c,f;if(u)return t==="$attrs"&&Xe(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==we&&ye(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,ye(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ki(s,t)?(s[t]=n,!0):r!==we&&ye(r,t)?(r[t]=n,!0):ye(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let l;return!!(n[a]||e!==we&&a[0]!=="$"&&ye(e,a)||ki(t,a)||ye(i,a)||ye(r,a)||ye(Fr,a)||ye(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ye(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Fa(e){return re(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let no=!0;function eh(e){const t=Vc(e),n=e.proxy,r=e.ctx;no=!1,t.beforeCreate&&Ba(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:m,updated:g,activated:v,deactivated:E,beforeDestroy:p,beforeUnmount:S,destroyed:b,unmounted:_,render:O,renderTracked:A,renderTriggered:D,errorCaptured:k,serverPrefetch:T,expose:H,inheritAttrs:B,components:x,directives:N,filters:j}=t;if(u&&th(u,r,null),o)for(const J in o){const te=o[J];oe(te)&&(r[J]=te.bind(n))}if(s){const J=s.call(n,n);_e(J)&&(e.data=We(J))}if(no=!0,i)for(const J in i){const te=i[J],Oe=oe(te)?te.bind(n,n):oe(te.get)?te.get.bind(n,n):jt,me=!oe(te)&&oe(te.set)?te.set.bind(n):jt,Ae=M({get:Oe,set:me});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>Ae.value,set:Se=>Ae.value=Se})}if(a)for(const J in a)Nc(a[J],r,n,J);if(l){const J=oe(l)?l.call(n):l;Reflect.ownKeys(J).forEach(te=>{et(te,J[te])})}c&&Ba(c,e,"c");function se(J,te){re(te)?te.forEach(Oe=>J(Oe.bind(n))):te&&J(te.bind(n))}if(se(fi,f),se(yn,d),se(zm,m),se(Wo,g),se(kc,v),se(Tc,E),se(Xm,k),se(Ym,A),se(qm,D),se(Ct,S),se(Ic,_),se(Km,T),re(H))if(H.length){const J=e.exposed||(e.exposed={});H.forEach(te=>{Object.defineProperty(J,te,{get:()=>n[te],set:Oe=>n[te]=Oe,enumerable:!0})})}else e.exposed||(e.exposed={});O&&e.render===jt&&(e.render=O),B!=null&&(e.inheritAttrs=B),x&&(e.components=x),N&&(e.directives=N),T&&Ac(e)}function th(e,t,n=jt){re(e)&&(e=ro(e));for(const r in e){const s=e[r];let i;_e(s)?"default"in s?i=ge(s.from||r,s.default,!0):i=ge(s.from||r):i=ge(s),Le(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Ba(e,t,n){Tt(re(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Nc(e,t,n,r){let s=r.includes(".")?Bc(n,r):()=>n[r];if(Re(e)){const i=t[e];oe(i)&&fe(s,i)}else if(oe(e))fe(s,e.bind(n));else if(_e(e))if(re(e))e.forEach(i=>Nc(i,t,n,r));else{const i=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(i)&&fe(s,i,e)}}function Vc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>Bs(l,u,o,!0)),Bs(l,t,o)),_e(t)&&i.set(t,l),l}function Bs(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Bs(e,i,n,!0),s&&s.forEach(o=>Bs(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=nh[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const nh={data:$a,props:Ha,emits:Ha,methods:Or,computed:Or,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:Or,directives:Or,watch:sh,provide:$a,inject:rh};function $a(e,t){return t?e?function(){return Fe(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function rh(e,t){return Or(ro(e),ro(t))}function ro(e){if(re(e)){const t={};for(let n=0;n1)return n&&oe(t)?t.call(r&&r.proxy):t}}const ah=Symbol.for("v-scx"),lh=()=>ge(ah);function _t(e,t){return Go(e,null,t)}function fe(e,t,n){return Go(e,t,n)}function Go(e,t,n=we){const{immediate:r,deep:s,flush:i,once:o}=n,a=Fe({},n),l=t&&r||!t&&i!=="post";let u;if(Yr){if(i==="sync"){const m=lh();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=jt,m.resume=jt,m.pause=jt,m}}const c=Ze;a.call=(m,g,v)=>Tt(m,c,g,v);let f=!1;i==="post"?a.scheduler=m=>{st(m,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(m,g)=>{g?m():Ho(m)}),a.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const d=Vm(e,t,a);return Yr&&(u?u.push(d):l&&d()),d}function uh(e,t,n){const r=this.proxy,s=Re(e)?e.includes(".")?Bc(r,e):()=>r[e]:e.bind(r,r);let i;oe(t)?i=t:(i=t.handler,n=t);const o=us(this),a=Go(s,i.bind(r),n);return o(),a}function Bc(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${at(t)}Modifiers`]||e[`${pn(t)}Modifiers`];function fh(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||we;let s=n;const i=t.startsWith("update:"),o=i&&ch(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>Re(c)?c.trim():c)),o.number&&(s=n.map(Lo)));let a,l=r[a=wi(t)]||r[a=wi(at(t))];!l&&i&&(l=r[a=wi(pn(t))]),l&&Tt(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Tt(u,e,6,s)}}const dh=new WeakMap;function $c(e,t,n=!1){const r=n?dh:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!oe(e)){const l=u=>{const c=$c(u,t,!0);c&&(a=!0,Fe(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(_e(e)&&r.set(e,null),null):(re(i)?i.forEach(l=>o[l]=null):Fe(o,i),_e(e)&&r.set(e,o),o)}function di(e,t){return!e||!ei(t)?!1:(t=t.slice(2).replace(/Once$/,""),ye(e,t[0].toLowerCase()+t.slice(1))||ye(e,pn(t))||ye(e,t))}function ja(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:m,ctx:g,inheritAttrs:v}=e,E=Vs(e);let p,S;try{if(n.shapeFlag&4){const _=s||r,O=_;p=Vt(u.call(O,_,c,f,m,d,g)),S=a}else{const _=t;p=Vt(_.length>1?_(f,{attrs:a,slots:o,emit:l}):_(f,null)),S=t.props?a:mh(a)}}catch(_){Br.length=0,ai(_,e,1),p=I(Ue)}let b=p;if(S&&v!==!1){const _=Object.keys(S),{shapeFlag:O}=b;_.length&&O&7&&(i&&_.some(Ro)&&(S=hh(S,i)),b=gn(b,S,!1,!0))}return n.dirs&&(b=gn(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Fn(b,n.transition),p=b,Vs(E),p}const mh=e=>{let t;for(const n in e)(n==="class"||n==="style"||ei(n))&&((t||(t={}))[n]=e[n]);return t},hh=(e,t)=>{const n={};for(const r in e)(!Ro(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function gh(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Wa(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fObject.create(Hc),Wc=e=>Object.getPrototypeOf(e)===Hc;function ph(e,t,n,r=!1){const s={},i=jc();e.propsDefaults=Object.create(null),Gc(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:ic(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function yh(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ee(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,m]=Uc(f,t,!0);Fe(o,d),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return _e(e)&&r.set(e,Qn),Qn;if(re(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",zo=e=>re(e)?e.map(Vt):[Vt(e)],Sh=(e,t,n)=>{if(t._n)return t;const r=je((...s)=>zo(t(...s)),n);return r._c=!1,r},zc=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Uo(s))continue;const i=e[s];if(oe(i))t[s]=Sh(s,i,r);else if(i!=null){const o=zo(i);t[s]=()=>o}}},Kc=(e,t)=>{const n=zo(t);e.slots.default=()=>n},qc=(e,t,n)=>{for(const r in t)(n||!Uo(r))&&(e[r]=t[r])},wh=(e,t,n)=>{const r=e.slots=jc();if(e.vnode.shapeFlag&32){const s=t._;s?(qc(r,t,n),n&&Bu(r,"_",s,!0)):zc(t,r)}else t&&Kc(e,t)},_h=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=we;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:qc(s,t,n):(i=!t.$stable,zc(t,s)),o=t}else t&&(Kc(e,t),o={default:1});if(i)for(const a in s)!Uo(a)&&o[a]==null&&delete s[a]},st=kh;function Ch(e){return Eh(e)}function Eh(e,t){const n=si();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:m=jt,insertStaticContent:g}=e,v=(h,y,C,P=null,L=null,R=null,z=void 0,U=null,W=!!y.dynamicChildren)=>{if(h===y)return;h&&!In(h,y)&&(P=w(h),Se(h,L,R,!0),h=null),y.patchFlag===-2&&(W=!1,y.dynamicChildren=null);const{type:V,ref:ne,shapeFlag:K}=y;switch(V){case as:E(h,y,C,P);break;case Ue:p(h,y,C,P);break;case Pi:h==null&&S(y,C,P,z);break;case Pe:x(h,y,C,P,L,R,z,U,W);break;default:K&1?O(h,y,C,P,L,R,z,U,W):K&6?N(h,y,C,P,L,R,z,U,W):(K&64||K&128)&&V.process(h,y,C,P,L,R,z,U,W,X)}ne!=null&&L?Vr(ne,h&&h.ref,R,y||h,!y):ne==null&&h&&h.ref!=null&&Vr(h.ref,null,R,h,!0)},E=(h,y,C,P)=>{if(h==null)r(y.el=a(y.children),C,P);else{const L=y.el=h.el;y.children!==h.children&&u(L,y.children)}},p=(h,y,C,P)=>{h==null?r(y.el=l(y.children||""),C,P):y.el=h.el},S=(h,y,C,P)=>{[h.el,h.anchor]=g(h.children,y,C,P,h.el,h.anchor)},b=({el:h,anchor:y},C,P)=>{let L;for(;h&&h!==y;)L=d(h),r(h,C,P),h=L;r(y,C,P)},_=({el:h,anchor:y})=>{let C;for(;h&&h!==y;)C=d(h),s(h),h=C;s(y)},O=(h,y,C,P,L,R,z,U,W)=>{if(y.type==="svg"?z="svg":y.type==="math"&&(z="mathml"),h==null)A(y,C,P,L,R,z,U,W);else{const V=h.el&&h.el._isVueCE?h.el:null;try{V&&V._beginPatch(),T(h,y,L,R,z,U,W)}finally{V&&V._endPatch()}}},A=(h,y,C,P,L,R,z,U)=>{let W,V;const{props:ne,shapeFlag:K,transition:Q,dirs:ae}=h;if(W=h.el=o(h.type,R,ne&&ne.is,ne),K&8?c(W,h.children):K&16&&k(h.children,W,null,P,L,Ti(h,R),z,U),ae&&_n(h,null,P,"created"),D(W,h,h.scopeId,z,P),ne){for(const Ce in ne)Ce!=="value"&&!Dr(Ce)&&i(W,Ce,null,ne[Ce],R,P);"value"in ne&&i(W,"value",null,ne.value,R),(V=ne.onVnodeBeforeMount)&&Dt(V,P,h)}ae&&_n(h,null,P,"beforeMount");const de=xh(L,Q);de&&Q.beforeEnter(W),r(W,y,C),((V=ne&&ne.onVnodeMounted)||de||ae)&&st(()=>{V&&Dt(V,P,h),de&&Q.enter(W),ae&&_n(h,null,P,"mounted")},L)},D=(h,y,C,P,L)=>{if(C&&m(h,C),P)for(let R=0;R{for(let V=W;V{const U=y.el=h.el;let{patchFlag:W,dynamicChildren:V,dirs:ne}=y;W|=h.patchFlag&16;const K=h.props||we,Q=y.props||we;let ae;if(C&&Cn(C,!1),(ae=Q.onVnodeBeforeUpdate)&&Dt(ae,C,y,h),ne&&_n(y,h,C,"beforeUpdate"),C&&Cn(C,!0),(K.innerHTML&&Q.innerHTML==null||K.textContent&&Q.textContent==null)&&c(U,""),V?H(h.dynamicChildren,V,U,C,P,Ti(y,L),R):z||te(h,y,U,null,C,P,Ti(y,L),R,!1),W>0){if(W&16)B(U,K,Q,C,L);else if(W&2&&K.class!==Q.class&&i(U,"class",null,Q.class,L),W&4&&i(U,"style",K.style,Q.style,L),W&8){const de=y.dynamicProps;for(let Ce=0;Ce{ae&&Dt(ae,C,y,h),ne&&_n(y,h,C,"updated")},P)},H=(h,y,C,P,L,R,z)=>{for(let U=0;U{if(y!==C){if(y!==we)for(const R in y)!Dr(R)&&!(R in C)&&i(h,R,y[R],null,L,P);for(const R in C){if(Dr(R))continue;const z=C[R],U=y[R];z!==U&&R!=="value"&&i(h,R,U,z,L,P)}"value"in C&&i(h,"value",y.value,C.value,L)}},x=(h,y,C,P,L,R,z,U,W)=>{const V=y.el=h?h.el:a(""),ne=y.anchor=h?h.anchor:a("");let{patchFlag:K,dynamicChildren:Q,slotScopeIds:ae}=y;ae&&(U=U?U.concat(ae):ae),h==null?(r(V,C,P),r(ne,C,P),k(y.children||[],C,ne,L,R,z,U,W)):K>0&&K&64&&Q&&h.dynamicChildren?(H(h.dynamicChildren,Q,C,L,R,z,U),(y.key!=null||L&&y===L.subTree)&&Ko(h,y,!0)):te(h,y,C,ne,L,R,z,U,W)},N=(h,y,C,P,L,R,z,U,W)=>{y.slotScopeIds=U,h==null?y.shapeFlag&512?L.ctx.activate(y,C,P,z,W):j(y,C,P,L,R,z,W):Y(h,y,W)},j=(h,y,C,P,L,R,z)=>{const U=h.component=Dh(h,P,L);if(ui(h)&&(U.ctx.renderer=X),Lh(U,!1,z),U.asyncDep){if(L&&L.registerDep(U,se,z),!h.el){const W=U.subTree=I(Ue);p(null,W,y,C),h.placeholder=W.el}}else se(U,h,y,C,L,R,z)},Y=(h,y,C)=>{const P=y.component=h.component;if(gh(h,y,C))if(P.asyncDep&&!P.asyncResolved){J(P,y,C);return}else P.next=y,P.update();else y.el=h.el,P.vnode=y},se=(h,y,C,P,L,R,z)=>{const U=()=>{if(h.isMounted){let{next:K,bu:Q,u:ae,parent:de,vnode:Ce}=h;{const Ot=Yc(h);if(Ot){K&&(K.el=Ce.el,J(h,K,z)),Ot.asyncDep.then(()=>{h.isUnmounted||U()});return}}let be=K,ut;Cn(h,!1),K?(K.el=Ce.el,J(h,K,z)):K=Ce,Q&&As(Q),(ut=K.props&&K.props.onVnodeBeforeUpdate)&&Dt(ut,de,K,Ce),Cn(h,!0);const ct=ja(h),It=h.subTree;h.subTree=ct,v(It,ct,f(It.el),w(It),h,L,R),K.el=ct.el,be===null&&vh(h,ct.el),ae&&st(ae,L),(ut=K.props&&K.props.onVnodeUpdated)&&st(()=>Dt(ut,de,K,Ce),L)}else{let K;const{el:Q,props:ae}=y,{bm:de,m:Ce,parent:be,root:ut,type:ct}=h,It=nr(y);Cn(h,!1),de&&As(de),!It&&(K=ae&&ae.onVnodeBeforeMount)&&Dt(K,be,y),Cn(h,!0);{ut.ce&&ut.ce._def.shadowRoot!==!1&&ut.ce._injectChildStyle(ct);const Ot=h.subTree=ja(h);v(null,Ot,C,P,h,L,R),y.el=Ot.el}if(Ce&&st(Ce,L),!It&&(K=ae&&ae.onVnodeMounted)){const Ot=y;st(()=>Dt(K,be,Ot),L)}(y.shapeFlag&256||be&&nr(be.vnode)&&be.vnode.shapeFlag&256)&&h.a&&st(h.a,L),h.isMounted=!0,y=C=P=null}};h.scope.on();const W=h.effect=new Uu(U);h.scope.off();const V=h.update=W.run.bind(W),ne=h.job=W.runIfDirty.bind(W);ne.i=h,ne.id=h.uid,W.scheduler=()=>Ho(ne),Cn(h,!0),V()},J=(h,y,C)=>{y.component=h;const P=h.vnode.props;h.vnode=y,h.next=null,yh(h,y.props,P,C),_h(h,y.children,C),Jt(),Oa(h),Qt()},te=(h,y,C,P,L,R,z,U,W=!1)=>{const V=h&&h.children,ne=h?h.shapeFlag:0,K=y.children,{patchFlag:Q,shapeFlag:ae}=y;if(Q>0){if(Q&128){me(V,K,C,P,L,R,z,U,W);return}else if(Q&256){Oe(V,K,C,P,L,R,z,U,W);return}}ae&8?(ne&16&&$e(V,L,R),K!==V&&c(C,K)):ne&16?ae&16?me(V,K,C,P,L,R,z,U,W):$e(V,L,R,!0):(ne&8&&c(C,""),ae&16&&k(K,C,P,L,R,z,U,W))},Oe=(h,y,C,P,L,R,z,U,W)=>{h=h||Qn,y=y||Qn;const V=h.length,ne=y.length,K=Math.min(V,ne);let Q;for(Q=0;Qne?$e(h,L,R,!0,!1,K):k(y,C,P,L,R,z,U,W,K)},me=(h,y,C,P,L,R,z,U,W)=>{let V=0;const ne=y.length;let K=h.length-1,Q=ne-1;for(;V<=K&&V<=Q;){const ae=h[V],de=y[V]=W?dn(y[V]):Vt(y[V]);if(In(ae,de))v(ae,de,C,null,L,R,z,U,W);else break;V++}for(;V<=K&&V<=Q;){const ae=h[K],de=y[Q]=W?dn(y[Q]):Vt(y[Q]);if(In(ae,de))v(ae,de,C,null,L,R,z,U,W);else break;K--,Q--}if(V>K){if(V<=Q){const ae=Q+1,de=aeQ)for(;V<=K;)Se(h[V],L,R,!0),V++;else{const ae=V,de=V,Ce=new Map;for(V=de;V<=Q;V++){const dt=y[V]=W?dn(y[V]):Vt(y[V]);dt.key!=null&&Ce.set(dt.key,V)}let be,ut=0;const ct=Q-de+1;let It=!1,Ot=0;const Er=new Array(ct);for(V=0;V=ct){Se(dt,L,R,!0);continue}let Rt;if(dt.key!=null)Rt=Ce.get(dt.key);else for(be=de;be<=Q;be++)if(Er[be-de]===0&&In(dt,y[be])){Rt=be;break}Rt===void 0?Se(dt,L,R,!0):(Er[Rt-de]=V+1,Rt>=Ot?Ot=Rt:It=!0,v(dt,y[Rt],C,null,L,R,z,U,W),ut++)}const Ea=It?Ah(Er):Qn;for(be=Ea.length-1,V=ct-1;V>=0;V--){const dt=de+V,Rt=y[dt],xa=y[dt+1],Aa=dt+1{const{el:R,type:z,transition:U,children:W,shapeFlag:V}=h;if(V&6){Ae(h.component.subTree,y,C,P);return}if(V&128){h.suspense.move(y,C,P);return}if(V&64){z.move(h,y,C,X);return}if(z===Pe){r(R,y,C);for(let K=0;KU.enter(R),L);else{const{leave:K,delayLeave:Q,afterLeave:ae}=U,de=()=>{h.ctx.isUnmounted?s(R):r(R,y,C)},Ce=()=>{R._isLeaving&&R[qt](!0),K(R,()=>{de(),ae&&ae()})};Q?Q(R,de,Ce):Ce()}else r(R,y,C)},Se=(h,y,C,P=!1,L=!1)=>{const{type:R,props:z,ref:U,children:W,dynamicChildren:V,shapeFlag:ne,patchFlag:K,dirs:Q,cacheIndex:ae}=h;if(K===-2&&(L=!1),U!=null&&(Jt(),Vr(U,null,C,h,!0),Qt()),ae!=null&&(y.renderCache[ae]=void 0),ne&256){y.ctx.deactivate(h);return}const de=ne&1&&Q,Ce=!nr(h);let be;if(Ce&&(be=z&&z.onVnodeBeforeUnmount)&&Dt(be,y,h),ne&6)nt(h.component,C,P);else{if(ne&128){h.suspense.unmount(C,P);return}de&&_n(h,null,y,"beforeUnmount"),ne&64?h.type.remove(h,y,C,X,P):V&&!V.hasOnce&&(R!==Pe||K>0&&K&64)?$e(V,y,C,!1,!0):(R===Pe&&K&384||!L&&ne&16)&&$e(W,y,C),P&&Ne(h)}(Ce&&(be=z&&z.onVnodeUnmounted)||de)&&st(()=>{be&&Dt(be,y,h),de&&_n(h,null,y,"unmounted")},C)},Ne=h=>{const{type:y,el:C,anchor:P,transition:L}=h;if(y===Pe){Ge(C,P);return}if(y===Pi){_(h);return}const R=()=>{s(C),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(h.shapeFlag&1&&L&&!L.persisted){const{leave:z,delayLeave:U}=L,W=()=>z(C,R);U?U(h.el,R,W):W()}else R()},Ge=(h,y)=>{let C;for(;h!==y;)C=d(h),s(h),h=C;s(y)},nt=(h,y,C)=>{const{bum:P,scope:L,job:R,subTree:z,um:U,m:W,a:V}=h;Ua(W),Ua(V),P&&As(P),L.stop(),R&&(R.flags|=8,Se(z,h,y,C)),U&&st(U,y),st(()=>{h.isUnmounted=!0},y)},$e=(h,y,C,P=!1,L=!1,R=0)=>{for(let z=R;z{if(h.shapeFlag&6)return w(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const y=d(h.anchor||h.el),C=y&&y[vc];return C?d(C):y};let F=!1;const $=(h,y,C)=>{h==null?y._vnode&&Se(y._vnode,null,null,!0):v(y._vnode||null,h,y,null,null,null,C),y._vnode=h,F||(F=!0,Oa(),mc(),F=!1)},X={p:v,um:Se,m:Ae,r:Ne,mt:j,mc:k,pc:te,pbc:H,n:w,o:e};return{render:$,hydrate:void 0,createApp:oh($)}}function Ti({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 Cn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function xh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ko(e,t,n=!1){const r=e.children,s=t.children;if(re(r)&&re(s))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Yc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yc(t)}function Ua(e){if(e)for(let t=0;te.__isSuspense;function kh(e,t){t&&t.pendingBranch?re(e)?t.effects.push(...e):t.effects.push(e):$m(e)}const Pe=Symbol.for("v-fgt"),as=Symbol.for("v-txt"),Ue=Symbol.for("v-cmt"),Pi=Symbol.for("v-stc"),Br=[];let ht=null;function bt(e=!1){Br.push(ht=e?null:[])}function Th(){Br.pop(),ht=Br[Br.length-1]||null}let qr=1;function $s(e,t=!1){qr+=e,e<0&&ht&&t&&(ht.hasOnce=!0)}function Zc(e){return e.dynamicChildren=qr>0?ht||Qn:null,Th(),qr>0&&ht&&ht.push(e),e}function Jc(e,t,n,r,s,i){return Zc(q(e,t,n,r,s,i,!0))}function $t(e,t,n,r,s){return Zc(I(e,t,n,r,s,!0))}function ur(e){return e?e.__v_isVNode===!0:!1}function In(e,t){return e.type===t.type&&e.key===t.key}const Qc=({key:e})=>e??null,Ts=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Re(e)||Le(e)||oe(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function q(e,t=null,n=null,r=0,s=null,i=e===Pe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qc(t),ref:t&&Ts(t),scopeId:gc,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ze};return a?(qo(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Re(n)?8:16),qr>0&&!o&&ht&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&ht.push(l),l}const I=Ph;function Ph(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Rc)&&(e=Ue),ur(e)){const a=gn(e,t,!0);return n&&qo(a,n),qr>0&&!i&&ht&&(a.shapeFlag&6?ht[ht.indexOf(e)]=a:ht.push(a)),a.patchFlag=-2,a}if(Bh(e)&&(e=e.__vccOpts),t){t=Ih(t);let{class:a,style:l}=t;a&&!Re(a)&&(t.class=he(a)),_e(l)&&(oi(l)&&!re(l)&&(l=Fe({},l)),t.style=xe(l))}const o=Re(e)?1:Xc(e)?128:pc(e)?64:_e(e)?4:oe(e)?2:0;return q(e,t,n,r,s,o,i,!0)}function Ih(e){return e?oi(e)||Wc(e)?Fe({},e):e:null}function gn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?ke(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Qc(u),ref:t&&t.ref?n&&i?re(i)?i.concat(Ts(t)):[i,Ts(t)]:Ts(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gn(e.ssContent),ssFallback:e.ssFallback&&gn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Fn(c,l.clone(c)),c}function Rr(e=" ",t=0){return I(as,null,e,t)}function io(e="",t=!1){return t?(bt(),$t(Ue,null,e)):I(Ue,null,e)}function Vt(e){return e==null||typeof e=="boolean"?I(Ue):re(e)?I(Pe,null,e.slice()):ur(e)?dn(e):I(as,null,String(e))}function dn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gn(e)}function qo(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(re(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),qo(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Wc(t)?t._ctx=ze:s===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),r&64?(n=16,t=[Rr(t)]):n=8);e.children=t,e.shapeFlag|=n}function ke(...e){const t={};for(let n=0;nZe||ze;let Hs,oo;{const e=si(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Hs=t("__VUE_INSTANCE_SETTERS__",n=>Ze=n),oo=t("__VUE_SSR_SETTERS__",n=>Yr=n)}const us=e=>{const t=Ze;return Hs(e),e.scope.on(),()=>{e.scope.off(),Hs(t)}},za=()=>{Ze&&Ze.scope.off(),Hs(null)};function ef(e){return e.vnode.shapeFlag&4}let Yr=!1;function Lh(e,t=!1,n=!1){t&&oo(t);const{props:r,children:s}=e.vnode,i=ef(e);ph(e,r,i,t),wh(e,s,n||t);const o=i?Mh(e,t):void 0;return t&&oo(!1),o}function Mh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Qm);const{setup:r}=n;if(r){Jt();const s=e.setupContext=r.length>1?Vh(e):null,i=us(e),o=os(r,e,0,[e.props,s]),a=Nu(o);if(Qt(),i(),(a||e.sp)&&!nr(e)&&Ac(e),a){if(o.then(za,za),t)return o.then(l=>{Ka(e,l)}).catch(l=>{ai(l,e,0)});e.asyncDep=o}else Ka(e,o)}else tf(e)}function Ka(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=lc(t)),tf(e)}function tf(e,t,n){const r=e.type;e.render||(e.render=r.render||jt);{const s=us(e);Jt();try{eh(e)}finally{Qt(),s()}}}const Nh={get(e,t){return Xe(e,"get",""),e[t]}};function Vh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Nh),slots:e.slots,emit:e.emit,expose:t}}function mi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(lc(oc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Fr)return Fr[n](e)},has(t,n){return n in t||n in Fr}})):e.proxy}function Fh(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Bh(e){return oe(e)&&"__vccOpts"in e}const M=(e,t)=>Mm(e,t,Yr);function bn(e,t,n){try{$s(-1);const r=arguments.length;return r===2?_e(t)&&!re(t)?ur(t)?I(e,null,[t]):I(e,t):I(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ur(n)&&(n=[n]),I(e,t,n))}finally{$s(1)}}const $h="3.5.25";/** +* @vue/runtime-dom v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ao;const qa=typeof window<"u"&&window.trustedTypes;if(qa)try{ao=qa.createPolicy("vue",{createHTML:e=>e})}catch{}const nf=ao?e=>ao.createHTML(e):e=>e,Hh="http://www.w3.org/2000/svg",jh="http://www.w3.org/1998/Math/MathML",Kt=typeof document<"u"?document:null,Ya=Kt&&Kt.createElement("template"),Wh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Kt.createElementNS(Hh,e):t==="mathml"?Kt.createElementNS(jh,e):n?Kt.createElement(e,{is:n}):Kt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Kt.createTextNode(e),createComment:e=>Kt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Kt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Ya.innerHTML=nf(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=Ya.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},an="transition",Ar="animation",cr=Symbol("_vtc"),rf={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},sf=Fe({},wc,rf),Gh=e=>(e.displayName="Transition",e.props=sf,e),vn=Gh((e,{slots:t})=>bn(Gm,of(e),t)),En=(e,t=[])=>{re(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xa=e=>e?re(e)?e.some(t=>t.length>1):e.length>1:!1;function of(e){const t={};for(const x in e)x in rf||(t[x]=e[x]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,g=Uh(s),v=g&&g[0],E=g&&g[1],{onBeforeEnter:p,onEnter:S,onEnterCancelled:b,onLeave:_,onLeaveCancelled:O,onBeforeAppear:A=p,onAppear:D=S,onAppearCancelled:k=b}=t,T=(x,N,j,Y)=>{x._enterCancelled=Y,un(x,N?c:a),un(x,N?u:o),j&&j()},H=(x,N)=>{x._isLeaving=!1,un(x,f),un(x,m),un(x,d),N&&N()},B=x=>(N,j)=>{const Y=x?D:S,se=()=>T(N,x,j);En(Y,[N,se]),Za(()=>{un(N,x?l:i),Lt(N,x?c:a),Xa(Y)||Ja(N,r,v,se)})};return Fe(t,{onBeforeEnter(x){En(p,[x]),Lt(x,i),Lt(x,o)},onBeforeAppear(x){En(A,[x]),Lt(x,l),Lt(x,u)},onEnter:B(!1),onAppear:B(!0),onLeave(x,N){x._isLeaving=!0;const j=()=>H(x,N);Lt(x,f),x._enterCancelled?(Lt(x,d),lo(x)):(lo(x),Lt(x,d)),Za(()=>{x._isLeaving&&(un(x,f),Lt(x,m),Xa(_)||Ja(x,r,E,j))}),En(_,[x,j])},onEnterCancelled(x){T(x,!1,void 0,!0),En(b,[x])},onAppearCancelled(x){T(x,!0,void 0,!0),En(k,[x])},onLeaveCancelled(x){H(x),En(O,[x])}})}function Uh(e){if(e==null)return null;if(_e(e))return[Ii(e.enter),Ii(e.leave)];{const t=Ii(e);return[t,t]}}function Ii(e){return sm(e)}function Lt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[cr]||(e[cr]=new Set)).add(t)}function un(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[cr];n&&(n.delete(t),n.size||(e[cr]=void 0))}function Za(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let zh=0;function Ja(e,t,n,r){const s=e._endId=++zh,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=af(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=m=>{m.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[g]||"").split(", "),s=r(`${an}Delay`),i=r(`${an}Duration`),o=Qa(s,i),a=r(`${Ar}Delay`),l=r(`${Ar}Duration`),u=Qa(a,l);let c=null,f=0,d=0;t===an?o>0&&(c=an,f=o,d=i.length):t===Ar?u>0&&(c=Ar,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?an:Ar:null,d=c?c===an?i.length:l.length:0);const m=c===an&&/\b(?:transform|all)(?:,|$)/.test(r(`${an}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:m}}function Qa(e,t){for(;e.lengthel(n)+el(e[r])))}function el(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function lo(e){return(e?e.ownerDocument:document).body.offsetHeight}function Kh(e,t,n){const r=e[cr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const js=Symbol("_vod"),lf=Symbol("_vsh"),Yo={name:"show",beforeMount(e,{value:t},{transition:n}){e[js]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kr(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),kr(e,!0),r.enter(e)):r.leave(e,()=>{kr(e,!1)}):kr(e,t))},beforeUnmount(e,{value:t}){kr(e,t)}};function kr(e,t){e.style.display=t?e[js]:"none",e[lf]=!t}const qh=Symbol(""),Yh=/(?:^|;)\s*display\s*:/;function Xh(e,t,n){const r=e.style,s=Re(n);let i=!1;if(n&&!s){if(t)if(Re(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Ps(r,a,"")}else for(const o in t)n[o]==null&&Ps(r,o,"");for(const o in n)o==="display"&&(i=!0),Ps(r,o,n[o])}else if(s){if(t!==n){const o=r[qh];o&&(n+=";"+o),r.cssText=n,i=Yh.test(n)}}else t&&e.removeAttribute("style");js in e&&(e[js]=i?r.display:"",e[lf]&&(r.display="none"))}const tl=/\s*!important$/;function Ps(e,t,n){if(re(n))n.forEach(r=>Ps(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Zh(e,t);tl.test(n)?e.setProperty(pn(r),n.replace(tl,""),"important"):e[r]=n}}const nl=["Webkit","Moz","ms"],Oi={};function Zh(e,t){const n=Oi[t];if(n)return n;let r=at(t);if(r!=="filter"&&r in e)return Oi[t]=r;r=vr(r);for(let s=0;sRi||(tg.then(()=>Ri=0),Ri=Date.now());function rg(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Tt(sg(r,n.value),t,5,[r])};return n.value=e,n.attached=ng(),n}function sg(e,t){if(re(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const ll=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ig=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?Kh(e,r,o):t==="style"?Xh(e,n,r):ei(t)?Ro(t)||Qh(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):og(e,t,r,o))?(il(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&sl(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Re(r))?il(e,at(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),sl(e,t,r,o))};function og(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ll(t)&&oe(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"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return ll(t)&&Re(n)?!1:t in e}const uf=new WeakMap,cf=new WeakMap,Ws=Symbol("_moveCb"),ul=Symbol("_enterCb"),ag=e=>(delete e.props.mode,e),lg=ag({name:"TransitionGroup",props:Fe({},sf,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ls(),r=Sc();let s,i;return Wo(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!dg(s[0].el,n.vnode.el,o)){s=[];return}s.forEach(ug),s.forEach(cg);const a=s.filter(fg);lo(n.vnode.el),a.forEach(l=>{const u=l.el,c=u.style;Lt(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[Ws]=d=>{d&&d.target!==u||(!d||d.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",f),u[Ws]=null,un(u,o))};u.addEventListener("transitionend",f)}),s=[]}),()=>{const o=ee(e),a=of(o);let l=o.tag||Pe;if(s=[],i)for(let u=0;u{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=af(r);return i.removeChild(r),o}const cl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return re(t)?n=>As(t,n):t};function mg(e){e.target.composing=!0}function fl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Di=Symbol("_assign");function dl(e,t,n){return t&&(e=e.trim()),n&&(e=Lo(e)),e}const cS={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Di]=cl(s);const i=r||s.props&&s.props.type==="number";qn(e,t?"change":"input",o=>{o.target.composing||e[Di](dl(e.value,n,i))}),(n||i)&&qn(e,"change",()=>{e.value=dl(e.value,n,i)}),t||(qn(e,"compositionstart",mg),qn(e,"compositionend",fl),qn(e,"change",fl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[Di]=cl(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Lo(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},hg=["ctrl","shift","alt","meta"],gg={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)=>hg.some(n=>e[`${n}Key`]&&!t.includes(n))},fS=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const i=pn(s.key);if(t.some(o=>o===i||vg[o]===i))return e(s)})},pg=Fe({patchProp:ig},Wh);let ml;function yg(){return ml||(ml=Ch(pg))}const bg=(...e)=>{const t=yg().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=wg(r);if(!s)return;const i=t._component;!oe(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Sg(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function Sg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wg(e){return Re(e)?document.querySelector(e):e}function mS(e){}function ff(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const Te=typeof window<"u",Zo=Te&&"IntersectionObserver"in window,_g=Te&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),df=Te&&"matchMedia"in window&&typeof window.matchMedia=="function",Xr=()=>df&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function hl(e,t,n){Cg(e,t),t.set(e,n)}function Cg(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function gl(e,t,n){return e.set(mf(e,t),n),n}function Ut(e,t){return e.get(mf(e,t))}function mf(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function hf(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;s"u"?n:s}if(typeof t=="string")return uo(e,t,n);if(Array.isArray(t))return hf(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function gf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function ie(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(e==null||e==="")return;const n=Number(e);return isNaN(n)?String(e):isFinite(n)?`${n}${t}`:void 0}function co(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function vl(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function Jo(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const hS=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function gS(e){return Object.keys(e)}function Li(e,t){return t.every(n=>e.hasOwnProperty(n))}function Qo(e,t){const n={};for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function pl(e,t,n){const r=Object.create(null),s=Object.create(null);for(const i in e)t.some(o=>o instanceof RegExp?o.test(i):o===i)?r[i]=e[i]:s[i]=e[i];return[r,s]}function $n(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}const vf=/^on[^a-z]/,pf=e=>vf.test(e),Eg=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function vS(e){const[t,n]=pl(e,[vf]),r=$n(t,Eg),[s,i]=pl(n,["class","style","id",/^data-/]);return Object.assign(s,t),Object.assign(i,r),[s,i]}function ea(e){return e==null?[]:Array.isArray(e)?e:[e]}function pS(e,t){let n=0;const r=function(){for(var s=arguments.length,i=new Array(s),o=0;oe(...i),ft(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function tn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function yl(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function bl(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function xg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const s in e)r[s]=e[s];for(const s in t){const i=e[s],o=t[s];if(vl(i)&&vl(o)){r[s]=Je(i,o,n);continue}if(n&&Array.isArray(i)&&Array.isArray(o)){r[s]=n(i,o);continue}r[s]=o}return r}function yf(e){return e.map(t=>t.type===Pe?yf(t.children):t).flat()}function Ln(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Ln.cache.has(e))return Ln.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Ln.cache.set(e,t),t}Ln.cache=new Map;function Zn(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Zn(e,n)).flat(1);if(t.suspense)return Zn(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>Zn(e,n)).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return Zn(e,t.component.subTree).flat(1)}return[]}var Gn=new WeakMap,xn=new WeakMap;class Ag{constructor(t){hl(this,Gn,[]),hl(this,xn,0),this.size=t}get isFull(){return Ut(Gn,this).length===this.size}push(t){Ut(Gn,this)[Ut(xn,this)]=t,gl(xn,this,(Ut(xn,this)+1)%this.size)}values(){return Ut(Gn,this).slice(Ut(xn,this)).concat(Ut(Gn,this).slice(0,Ut(xn,this)))}clear(){Ut(Gn,this).length=0,gl(xn,this,0)}}function ta(e){const t=We({});_t(()=>{const r=e();for(const s in r)t[s]=r[s]},{flush:"sync"});const n={};for(const r in t)n[r]=G(()=>t[r]);return n}function Gs(e,t){return e.includes(t)}function bf(e){return e[2].toLowerCase()+e.slice(3)}const $r=()=>[Function,Array];function Sl(e,t){return t="on"+vr(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function bS(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","details:not(:has(> summary))","details > summary","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]"].map(s=>`${s}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let r;try{r=[...e.querySelectorAll(n)]}catch{return[]}return r.filter(s=>!s.closest("[inert]")).filter(s=>!!s.offsetParent||s.getClientRects().length>0).filter(s=>{var i,o;return!((i=s.parentElement)!=null&&i.closest("details:not([open])"))||s.tagName==="SUMMARY"&&((o=s.parentElement)==null?void 0:o.tagName)==="DETAILS"})}function kg(e,t,n){let r,s=e.indexOf(document.activeElement);const i=t==="next"?1:-1;do s+=i,r=e[s];while((!r||r.offsetParent==null||!((n==null?void 0:n(r))??!0))&&s=0);return r}function Sf(e,t){var r,s,i,o;const n=Hr(e);if(t==null)(e===document.activeElement||!e.contains(document.activeElement))&&((r=n[0])==null||r.focus());else if(t==="first")(s=n[0])==null||s.focus();else if(t==="last")(i=n.at(-1))==null||i.focus();else if(typeof t=="number")(o=n[t])==null||o.focus();else{const a=kg(n,t);a?a.focus():Sf(e,t==="next"?"first":"last")}}function SS(e){return e==null||typeof e=="string"&&e.trim()===""}function wS(){}function Tg(e,t){if(!(Te&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function Pg(e){return e.some(t=>ur(t)?t.type===Ue?!1:t.type!==Pe||Pg(t.children):!0)?e:null}function Ig(e,t){if(!Te||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function _S(e,t){const n=e.clientX,r=e.clientY,s=t.getBoundingClientRect(),i=s.left,o=s.top,a=s.right,l=s.bottom;return n>=i&&n<=a&&r>=o&&r<=l}function fo(){const e=le(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>Jo(e.value)}),t}function CS(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function Bn(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function ES(e){const t={};for(const n in e)t[at(n)]=e[n];return t}function Og(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(n=>{let[r,s]=n;return t.includes(r)?!!s:s!==void 0}))}const wf=["top","bottom"],Rg=["start","end","left","right"];function mo(e,t){let[n,r]=e.split(" ");return r||(r=Gs(wf,n)?"start":Gs(Rg,n)?"top":"center"),{side:wl(n,t),align:wl(r,t)}}function wl(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function Mi(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Ni(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function _l(e){return{side:e.align,align:e.side}}function Cl(e){return Gs(wf,e.side)?"y":"x"}class St{constructor(t){const n=document.body.currentCSSZoom??1,r=t instanceof Element,s=r?1+(1-n)/n:1,{x:i,y:o,width:a,height:l}=r?t.getBoundingClientRect():t;this.x=i*s,this.y=o*s,this.width=a*s,this.height=l*s}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function El(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function _f(e){if(Array.isArray(e)){const t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new St({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}else return new St(e)}function Dg(e){if(e===document.documentElement)if(visualViewport){const t=document.body.currentCSSZoom??1;return new St({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale/t,height:visualViewport.height*visualViewport.scale/t})}else return new St({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});else return new St(e)}function Cf(e){const t=new St(e),n=getComputedStyle(e),r=n.transform;if(r){let s,i,o,a,l;if(r.startsWith("matrix3d("))s=r.slice(9,-1).split(/, /),i=Number(s[0]),o=Number(s[5]),a=Number(s[12]),l=Number(s[13]);else if(r.startsWith("matrix("))s=r.slice(7,-1).split(/, /),i=Number(s[0]),o=Number(s[3]),a=Number(s[4]),l=Number(s[5]);else return new St(t);const u=n.transformOrigin,c=t.x-a-(1-i)*parseFloat(u),f=t.y-l-(1-o)*parseFloat(u.slice(u.indexOf(" ")+1)),d=i?t.width/i:e.offsetWidth+1,m=o?t.height/o:e.offsetHeight+1;return new St({x:c,y:f,width:d,height:m})}else return new St(t)}function Pn(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(s=>{r.onfinish=()=>{s(r)}})),r}const Is=new WeakMap;function Lg(e,t){Object.keys(t).forEach(n=>{if(pf(n)){const r=bf(n),s=Is.get(e);if(t[n]==null)s==null||s.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))});else if(!s||![...s].some(i=>i[0]===r&&i[1]===t[n])){e.addEventListener(r,t[n]);const i=s||new Set;i.add([r,t[n]]),Is.has(e)||Is.set(e,i)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function Mg(e,t){Object.keys(t).forEach(n=>{if(pf(n)){const r=bf(n),s=Is.get(e);s==null||s.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))})}else e.removeAttribute(n)})}const Un=2.4,xl=.2126729,Al=.7151522,kl=.072175,Ng=.55,Vg=.58,Fg=.57,Bg=.62,_s=.03,Tl=1.45,$g=5e-4,Hg=1.25,jg=1.25,Pl=.078,Il=12.82051282051282,Cs=.06,Ol=.001;function Rl(e,t){const n=(e.r/255)**Un,r=(e.g/255)**Un,s=(e.b/255)**Un,i=(t.r/255)**Un,o=(t.g/255)**Un,a=(t.b/255)**Un;let l=n*xl+r*Al+s*kl,u=i*xl+o*Al+a*kl;if(l<=_s&&(l+=(_s-l)**Tl),u<=_s&&(u+=(_s-u)**Tl),Math.abs(u-l)<$g)return 0;let c;if(u>l){const f=(u**Ng-l**Vg)*Hg;c=f-Ol?0:f>-Pl?f-f*Il*Cs:f+Cs}return c*100}const Us=.20689655172413793,Wg=e=>e>Us**3?Math.cbrt(e):e/(3*Us**2)+4/29,Gg=e=>e>Us?e**3:3*Us**2*(e-4/29);function Ef(e){const t=Wg,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function xf(e){const t=Gg,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const Ug=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],zg=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,Kg=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],qg=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Af(e){const t=Array(3),n=zg,r=Ug;for(let s=0;s<3;++s)t[s]=Math.round(tn(n(r[s][0]*e[0]+r[s][1]*e[1]+r[s][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function na(e){let{r:t,g:n,b:r}=e;const s=[0,0,0],i=qg,o=Kg;t=i(t/255),n=i(n/255),r=i(r/255);for(let a=0;a<3;++a)s[a]=o[a][0]*t+o[a][1]*n+o[a][2]*r;return s}function ho(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function Yg(e){return ho(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const Dl=/^(?(?:rgb|hsl)a?)\((?.+)\)/,Xg={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>Ll({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>Ll({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>Zr({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>Zr({h:e,s:t,v:n,a:r})};function Ht(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&Dl.test(e)){const{groups:t}=e.match(Dl),{fn:n,values:r}=t,s=r.split(/,\s*|\s*\/\s*|\s+/).map((i,o)=>i.endsWith("%")||o>0&&o<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return Xg[n](...s)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),Jg(t)}else if(typeof e=="object"){if(Li(e,["r","g","b"]))return e;if(Li(e,["h","s","l"]))return Zr(kf(e));if(Li(e,["h","s","v"]))return Zr(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} +Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Zr(e){const{h:t,s:n,v:r,a:s}=e,i=a=>{const l=(a+t/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},o=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:o[0],g:o[1],b:o[2],a:s}}function Ll(e){return Zr(kf(e))}function kf(e){const{h:t,s:n,l:r,a:s}=e,i=r+n*Math.min(r,1-r),o=i===0?0:2-2*r/i;return{h:t,s:o,v:i,a:s}}function Es(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function Zg(e){let{r:t,g:n,b:r,a:s}=e;return`#${[Es(t),Es(n),Es(r),s!==void 0?Es(Math.round(s*255)):""].join("")}`}function Jg(e){e=Qg(e);let[t,n,r,s]=xg(e,2).map(i=>parseInt(i,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function Qg(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=yl(yl(e,6),8,"F")),e}function ev(e,t){const n=Ef(na(e));return n[0]=n[0]+t*10,Af(xf(n))}function tv(e,t){const n=Ef(na(e));return n[0]=n[0]-t*10,Af(xf(n))}function nv(e){const t=Ht(e);return na(t)[1]}function Tf(e){const t=Math.abs(Rl(Ht(0),Ht(e)));return Math.abs(Rl(Ht(16777215),Ht(e)))>Math.min(t,50)?"#fff":"#000"}function Z(e,t){return n=>Object.keys(e).reduce((r,s)=>{const o=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...o,default:n[s]}:r[s]=o,t&&!r[s].source&&(r[s].source=t),r},{})}const Me=Z({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function Be(e,t){const n=ls();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Sn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=Be(e).type;return Ln((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}function rv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Be("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const fr=Symbol.for("vuetify:defaults");function sv(e){return ue(e)}function ra(){const e=ge(fr);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function hi(e,t){const n=ra(),r=ue(e),s=M(()=>{if(ft(t==null?void 0:t.disabled))return n.value;const o=ft(t==null?void 0:t.scoped),a=ft(t==null?void 0:t.reset),l=ft(t==null?void 0:t.root);if(r.value==null&&!(o||a||l))return n.value;let u=Je(r.value,{prev:n.value});if(o)return u;if(a||l){const c=Number(a||1/0);for(let f=0;f<=c&&!(!u||!("prev"in u));f++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=Je(Je(u,{prev:u}),u[l])),u}return u.prev?Je(u.prev,u):u});return et(fr,s),s}function iv(e,t){return e.props&&(typeof e.props[t]<"u"||typeof e.props[Ln(t)]<"u")}function ov(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ra();const r=Be("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const s=M(()=>{var l;return(l=n.value)==null?void 0:l[e._as??t]}),i=new Proxy(e,{get(l,u){var m,g,v,E;const c=Reflect.get(l,u);if(u==="class"||u==="style")return[(m=s.value)==null?void 0:m[u],c].filter(p=>p!=null);if(iv(r.vnode,u))return c;const f=(g=s.value)==null?void 0:g[u];if(f!==void 0)return f;const d=(E=(v=n.value)==null?void 0:v.global)==null?void 0:E[u];return d!==void 0?d:c}}),o=le();_t(()=>{if(s.value){const l=Object.entries(s.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});o.value=l.length?Object.fromEntries(l):void 0}else o.value=void 0});function a(){const l=rv(fr,r);et(fr,M(()=>o.value?Je((l==null?void 0:l.value)??{},o.value):l==null?void 0:l.value))}return{props:i,provideSubDefaults:a}}function pr(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=Z(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return Qo(r,t)},e.props._as=String,e.setup=function(r,s){const i=ra();if(!i.value)return e._setup(r,s);const{props:o,provideSubDefaults:a}=ov(r,r._as??e.name,i),l=e._setup(o,s);return a(),l}}return e}function ve(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?pr:li)(t)}function xS(e,t){return t.props=e,t}function sa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return ve()({name:n??vr(at(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...Me()},setup(r,s){let{slots:i}=s;return()=>{var o;return bn(r.tag,{class:[e,r.class],style:r.style},(o=i.default)==null?void 0:o.call(i))}}})}function av(e,t,n,r){if(!n||Bn(e)||Bn(t))return;const s=n.get(e);if(s)s.set(t,r);else{const i=new WeakMap;i.set(t,r),n.set(e,i)}}function lv(e,t,n){var i,o;if(!n||Bn(e)||Bn(t))return null;const r=(i=n.get(e))==null?void 0:i.get(t);if(typeof r=="boolean")return r;const s=(o=n.get(t))==null?void 0:o.get(e);return typeof s=="boolean"?s:null}function Mn(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new WeakMap;if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;const s=lv(e,t,n);return s||(av(e,t,n,!0),r.every(i=>Mn(e[i],t[i],n)))}function Pf(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const go="cubic-bezier(0.4, 0, 0.2, 1)",Ml="cubic-bezier(0.0, 0, 0.2, 1)",Nl="cubic-bezier(0.4, 0, 1, 1)",uv={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1};function cv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?fv(e):ia(e))return e;e=e.parentElement}return document.scrollingElement}function zs(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(ia(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function ia(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e),n=t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight,r=t.overflowX==="scroll"||t.overflowX==="auto"&&e.scrollWidth>e.clientWidth;return n||r}function fv(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function dv(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function Ie(e){const t=Be("useRender");t.render=e}function mv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{leading:!0,trailing:!0},r=0,s=0,i=!1,o=0;function a(){clearTimeout(r),i=!1,o=0}const l=function(){for(var u=arguments.length,c=new Array(u),f=0;f=t?g():n.trailing&&(r=setTimeout(g,t-m)):(i=!0,n.leading&&g())};return l.clear=a,l.immediate=e,l}const Ke=[String,Function,Object,Array],vo=Symbol.for("vuetify:icons"),gi=Z({icon:{type:Ke},tag:{type:[String,Object,Function],required:!0}},"icon"),Vl=ve()({name:"VComponentIcon",props:gi(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return I(e.tag,null,{default:()=>{var s;return[e.icon?I(r,null,null):(s=n.default)==null?void 0:s.call(n)]}})}}}),If=pr({name:"VSvgIcon",inheritAttrs:!1,props:gi(),setup(e,t){let{attrs:n}=t;return()=>I(e.tag,ke(n,{style:null}),{default:()=>[q("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?q("path",{d:r[0],"fill-opacity":r[1]},null):q("path",{d:r},null)):q("path",{d:e.icon},null)])]})}});pr({name:"VLigatureIcon",props:gi(),setup(e){return()=>I(e.tag,null,{default:()=>[e.icon]})}});const Of=pr({name:"VClassIcon",props:gi(),setup(e){return()=>I(e.tag,{class:he(e.icon)},null)}}),hv=e=>{const t=ge(vo);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:M(()=>{var l;const r=Qe(e);if(!r)return{component:Vl};let s=r;if(typeof s=="string"&&(s=s.trim(),s.startsWith("$")&&(s=(l=t.aliases)==null?void 0:l[s.slice(1)])),Array.isArray(s))return{component:If,icon:s};if(typeof s!="string")return{component:Vl,icon:s};const i=Object.keys(t.sets).find(u=>typeof s=="string"&&s.startsWith(`${u}:`)),o=i?s.slice(i.length+1):s;return{component:t.sets[i??t.defaultSet].component,icon:o}})}},gv={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off"},vv={component:e=>bn(Of,{...e,class:"mdi"})};function pv(){return{svg:{component:If},class:{component:Of}}}function yv(e){const t=pv(),n=(e==null?void 0:e.defaultSet)??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=vv),Je({defaultSet:n,sets:t,aliases:{...gv,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}function yr(e,t){let n;function r(){n=or(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}fe(e,s=>{s&&!n?r():s||(n==null||n.stop(),n=void 0)},{immediate:!0}),lt(()=>{n==null||n.stop()})}function Zt(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f=>f,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:f=>f;const i=Be("useProxiedModel"),o=ue(e[t]!==void 0?e[t]:n),a=Ln(t),u=M(a!==t?()=>{var f,d,m,g;return e[t],!!(((f=i.vnode.props)!=null&&f.hasOwnProperty(t)||(d=i.vnode.props)!=null&&d.hasOwnProperty(a))&&((m=i.vnode.props)!=null&&m.hasOwnProperty(`onUpdate:${t}`)||(g=i.vnode.props)!=null&&g.hasOwnProperty(`onUpdate:${a}`)))}:()=>{var f,d;return e[t],!!((f=i.vnode.props)!=null&&f.hasOwnProperty(t)&&((d=i.vnode.props)!=null&&d.hasOwnProperty(`onUpdate:${t}`)))});yr(()=>!u.value,()=>{fe(()=>e[t],f=>{o.value=f})});const c=M({get(){const f=e[t];return r(u.value?f:o.value)},set(f){const d=s(f),m=ee(u.value?e[t]:o.value);m===d||r(m)===f||(o.value=d,i==null||i.emit(`update:${t}`,d))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:o.value}),c}const bv={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",previousYear:"Previous year",nextYear:"Next year",selectMonth:"Select month",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time",hour:"Hour",minute:"Minute",second:"Second"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}",or:"or"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}},Fl="$vuetify.",Bl=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[Number(r)])),Rf=(e,t,n)=>function(r){for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;onew Intl.NumberFormat([e.value,t.value],r).format(n)}function Df(e,t){return oa(e,t)(.1).includes(",")?",":"."}function Vi(e,t,n){const r=Zt(e,t,e[t]??n.value);return r.value=e[t]??n.value,fe(n,s=>{e[t]==null&&(r.value=n.value)}),r}function Lf(e){return t=>{const n=Vi(t,"locale",e.current),r=Vi(t,"fallback",e.fallback),s=Vi(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:s,decimalSeparator:G(()=>Df(n,r)),t:Rf(n,r,s),n:oa(n,r),provide:Lf({current:n,fallback:r,messages:s})}}}function Sv(e){const t=le((e==null?void 0:e.locale)??"en"),n=le((e==null?void 0:e.fallback)??"en"),r=ue({en:bv,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,decimalSeparator:G(()=>(e==null?void 0:e.decimalSeparator)??Df(t,n)),t:Rf(t,n,r),n:oa(t,n),provide:Lf({current:t,fallback:n,messages:r})}}const Ks=Symbol.for("vuetify:locale");function wv(e){return e.name!=null}function _v(e){const t=e!=null&&e.adapter&&wv(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:Sv(e),n=xv(t,e);return{...t,...n}}function Cv(){const e=ge(Ks);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function Ev(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function xv(e,t){const n=ue((t==null?void 0:t.rtl)??Ev()),r=M(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:G(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function cs(){const e=ge(Ks);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}function fs(e){const t=e.slice(-2).toUpperCase();switch(!0){case e==="GB-alt-variant":return{firstDay:0,firstWeekSize:4};case e==="001":return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE + KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US + VE VI WS YE ZA ZW`.includes(t):return{firstDay:0,firstWeekSize:1};case`AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV + MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK`.includes(t):return{firstDay:1,firstWeekSize:1};case`AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS + IT LI LT LU MC MQ NL NO PL RE RU SE SK SM VA`.includes(t):return{firstDay:1,firstWeekSize:4};case"AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY".includes(t):return{firstDay:6,firstWeekSize:1};case t==="MV":return{firstDay:5,firstWeekSize:1};case t==="PT":return{firstDay:0,firstWeekSize:4};default:return null}}function Av(e,t,n){var c;const r=[];let s=[];const i=Mf(e),o=Nf(e),a=n??((c=fs(t))==null?void 0:c.firstDay)??0,l=(i.getDay()-a+7)%7,u=(o.getDay()-a+7)%7;for(let f=0;f0&&r.push(s),r}function jr(e,t,n){var i;let r=(n??((i=fs(t))==null?void 0:i.firstDay)??0)%7;[0,1,2,3,4,5,6].includes(r)||(r=0);const s=new Date(e);for(;s.getDay()!==r;)s.setDate(s.getDate()-1);return s}function kv(e,t){var s;const n=new Date(e),r=((((s=fs(t))==null?void 0:s.firstDay)??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function Mf(e){return new Date(e.getFullYear(),e.getMonth(),1)}function Nf(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function Tv(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const Pv=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function Vf(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(Pv.test(e))return Tv(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const $l=new Date(2e3,0,2);function Iv(e,t,n){var s;const r=t??((s=fs(e))==null?void 0:s.firstDay)??0;return gf(7).map(i=>{const o=new Date($l);return o.setDate($l.getDate()+r+i),new Intl.DateTimeFormat(e,{weekday:n??"narrow"}).format(o)})}function Ov(e,t,n,r){const s=Vf(e)??new Date,i=r==null?void 0:r[t];if(typeof i=="function")return i(s,t,n);let o={};switch(t){case"fullDate":o={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const a=s.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(s);return`${a} ${l}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(s.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric"};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");case"keyboardDateTime12h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");case"keyboardDateTime24h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");default:o=i??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(s)}function Rv(e,t){const n=e.toJsDate(t),r=n.getFullYear(),s=bl(String(n.getMonth()+1),2,"0"),i=bl(String(n.getDate()),2,"0");return`${r}-${s}-${i}`}function Dv(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function Lv(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function Mv(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function Nn(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Nv(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function Vv(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function Jr(e){return e.getFullYear()}function Fv(e){return e.getMonth()}function Bv(e,t,n,r){const s=fs(t),i=n??(s==null?void 0:s.firstDay)??0,o=(s==null?void 0:s.firstWeekSize)??1;return r!==void 0?$v(e,t,i,r):Hv(e,t,i,o)}function $v(e,t,n,r){const s=(7+r-n)%7,i=jr(e,t,n),o=Nn(i,6);function a(d){return(7+new Date(d,0,1).getDay()-n)%7}let l=Jr(i);l=r&&a++;const l=new Date(a,0,1),u=o(a),c=u>=r?Nn(l,u-7):Nn(l,u);return 1+Ys(aa(s),Qr(c),"weeks")}function jv(e){return e.getDate()}function Wv(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function Gv(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function Uv(e){return e.getHours()}function zv(e){return e.getMinutes()}function Kv(e){return new Date(e.getFullYear(),0,1)}function qv(e){return new Date(e.getFullYear(),11,31)}function Yv(e,t){return qs(e,t[0])&&Jv(e,t[1])}function Xv(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function qs(e,t){return e.getTime()>t.getTime()}function Zv(e,t){return qs(Qr(e),Qr(t))}function Jv(e,t){return e.getTime(){n.locale=e.locale[r]??r??n.locale}),n}function kS(){const e=ge(Ff);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=Cv();return Bf(e,t)}const TS=["sm","md","lg","xl","xxl"],po=Symbol.for("vuetify:display"),Wl={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},cp=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wl;return Je(Wl,e)};function Gl(e){return Te&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function Ul(e){return Te&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function zl(e){const t=Te&&!e?window.navigator.userAgent:"ssr";function n(g){return!!t.match(g)}const r=n(/android/i),s=n(/iphone|ipad|ipod/i),i=n(/cordova/i),o=n(/electron/i),a=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),f=n(/win/i),d=n(/mac/i),m=n(/linux/i);return{android:r,ios:s,cordova:i,electron:o,chrome:a,edge:l,firefox:u,opera:c,win:f,mac:d,linux:m,touch:_g,ssr:t==="ssr"}}function fp(e,t){const{thresholds:n,mobileBreakpoint:r}=cp(e),s=le(Ul(t)),i=le(zl(t)),o=We({}),a=le(Gl(t));function l(){s.value=Ul(),a.value=Gl()}function u(){l(),i.value=zl()}return _t(()=>{const c=a.value=n.xxl,E=c?"xs":f?"sm":d?"md":m?"lg":g?"xl":"xxl",p=typeof r=="number"?r:n[r],S=a.value{window.removeEventListener("resize",l)},!0)),{...uc(o),update:u,ssr:!!t}}const PS=Z({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function dp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{mobile:null},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();const n=ge(po);if(!n)throw new Error("Could not find Vuetify display injection");const r=M(()=>e.mobile?!0:typeof e.mobileBreakpoint=="number"?n.width.valuet?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:s,mobile:r}}const $f=Symbol.for("vuetify:goto");function Hf(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:uv}}function mp(e){return la(e)??(document.scrollingElement||document.body)}function la(e){return typeof e=="string"?document.querySelector(e):Jo(e)}function Fi(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=la(e),s=0;for(;r;)s+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return s}function hp(e,t){return{rtl:t.isRtl,options:Je(Hf(),e)}}async function Kl(e,t,n,r){const s=n?"scrollLeft":"scrollTop",i=Je((r==null?void 0:r.options)??Hf(),t),o=r==null?void 0:r.rtl.value,a=(typeof e=="number"?e:la(e))??0,l=i.container==="parent"&&a instanceof HTMLElement?a.parentElement:mp(i.container),u=Xr()?i.patterns.instant:typeof i.easing=="function"?i.easing:i.patterns[i.easing];if(!u)throw new TypeError(`Easing function "${i.easing}" not found.`);let c;if(typeof a=="number")c=Fi(a,n,o);else if(c=Fi(a,n,o)-Fi(l,n,o),i.layout){const g=window.getComputedStyle(a).getPropertyValue("--v-layout-top");g&&(c-=parseInt(g,10))}c+=i.offset,c=gp(l,c,!!o,!!n);const f=l[s]??0;if(c===f)return Promise.resolve(c);const d=performance.now();return new Promise(m=>requestAnimationFrame(function g(v){const p=(v-d)/i.duration,S=Math.floor(f+(c-f)*u(tn(p,0,1)));if(l[s]=S,p>=1&&Math.abs(S-l[s])<10)return m(c);if(p>2)return m(l[s]);requestAnimationFrame(g)}))}function IS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=ge($f),{isRtl:n}=cs();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:G(()=>t.rtl.value||n.value)};async function s(i,o){return Kl(i,Je(e,o),!1,r)}return s.horizontal=async(i,o)=>Kl(i,Je(e,o),!0,r),s}function gp(e,t,n,r){const{scrollWidth:s,scrollHeight:i}=e,[o,a]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;return r?n?(l=-(s-o),u=0):(l=0,u=s-o):(l=0,u=i+-a),tn(t,l,u)}const es=Symbol.for("vuetify:theme"),vt=Z({theme:String},"theme");function ql(){return{defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0}}function vp(){var r,s;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ql();const t=ql();if(!e)return{...t,isDisabled:!0};const n={};for(const[i,o]of Object.entries(e.themes??{})){const a=o.dark||i==="dark"?(r=t.themes)==null?void 0:r.dark:(s=t.themes)==null?void 0:s.light;n[i]=Je(a,o)}return Je(t,{...e,themes:n})}function An(e,t,n,r){e.push(`${Sp(t,r)} { +`,...n.map(s=>` ${s}; +`),`} +`)}function Yl(e,t){const n=e.dark?2:1,r=e.dark?1:2,s=[];for(const[i,o]of Object.entries(e.colors)){const a=Ht(o);s.push(`--${t}theme-${i}: ${a.r},${a.g},${a.b}`),i.startsWith("on-")||s.push(`--${t}theme-${i}-overlay-multiplier: ${nv(o)>.18?n:r}`)}for(const[i,o]of Object.entries(e.variables)){const a=typeof o=="string"&&o.startsWith("#")?Ht(o):void 0,l=a?`${a.r}, ${a.g}, ${a.b}`:void 0;s.push(`--${t}${i}: ${l??o}`)}return s}function pp(e,t,n){const r={};if(n)for(const s of["lighten","darken"]){const i=s==="lighten"?ev:tv;for(const o of gf(n[s],1))r[`${e}-${s}-${o}`]=Zg(i(Ht(t),o))}return r}function yp(e,t){if(!t)return{};let n={};for(const r of t.colors){const s=e[r];s&&(n={...n,...pp(r,s,t)})}return n}function bp(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e[`on-${n}`])continue;const r=`on-${n}`,s=Ht(e[n]);t[r]=Tf(s)}return t}function Sp(e,t){if(!t)return e;const n=`:where(${t})`;return e===":root"?n:`${n} ${e}`}function wp(e,t,n){const r=_p(e,t);r&&(r.innerHTML=n)}function _p(e,t){if(!Te)return null;let n=document.getElementById(e);return n||(n=document.createElement("style"),n.id=e,n.type="text/css",t&&n.setAttribute("nonce",t),document.head.appendChild(n)),n}function Cp(e){const t=vp(e),n=le(t.defaultTheme),r=ue(t.themes),s=le("light"),i=M({get(){return n.value==="system"?s.value:n.value},set(p){n.value=p}}),o=M(()=>{const p={};for(const[S,b]of Object.entries(r.value)){const _={...b.colors,...yp(b.colors,t.variations)};p[S]={...b,colors:{..._,...bp(_)}}}return p}),a=G(()=>o.value[i.value]),l=G(()=>n.value==="system"),u=M(()=>{var O;const p=[],S=t.unimportant?"":" !important",b=t.scoped?t.prefix:"";(O=a.value)!=null&&O.dark&&An(p,":root",["color-scheme: dark"],t.scope),An(p,":root",Yl(a.value,t.prefix),t.scope);for(const[A,D]of Object.entries(o.value))An(p,`.${t.prefix}theme--${A}`,[`color-scheme: ${D.dark?"dark":"normal"}`,...Yl(D,t.prefix)],t.scope);if(t.utilities){const A=[],D=[],k=new Set(Object.values(o.value).flatMap(T=>Object.keys(T.colors)));for(const T of k)T.startsWith("on-")?An(D,`.${T}`,[`color: rgb(var(--${t.prefix}theme-${T}))${S}`],t.scope):(An(A,`.${b}bg-${T}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${T}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${T}))${S}`,`color: rgb(var(--${t.prefix}theme-on-${T}))${S}`],t.scope),An(D,`.${b}text-${T}`,[`color: rgb(var(--${t.prefix}theme-${T}))${S}`],t.scope),An(D,`.${b}border-${T}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${T})`],t.scope));t.layers?p.push(`@layer background { +`,...A.map(T=>` ${T}`),`} +`,`@layer foreground { +`,...D.map(T=>` ${T}`),`} +`):p.push(...A,...D)}let _=p.map((A,D)=>D===0?A:` ${A}`).join("");return t.layers&&(_=`@layer vuetify.theme { +`+p.map(A=>` ${A}`).join("")+` +}`),_}),c=G(()=>t.isDisabled?void 0:`${t.prefix}theme--${i.value}`),f=G(()=>Object.keys(o.value));if(df){let S=function(){s.value=p.matches?"dark":"light"};const p=window.matchMedia("(prefers-color-scheme: dark)");S(),p.addEventListener("change",S,{passive:!0}),Gu()&<(()=>{p.removeEventListener("change",S)})}function d(p){if(t.isDisabled)return;const S=p._context.provides.usehead;if(S){let b=function(){return{style:[{textContent:u.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}};if(S.push){const _=S.push(b);Te&&fe(u,()=>{_.patch(b)})}else Te?(S.addHeadObjs(G(b)),_t(()=>S.updateDOM())):S.addHeadObjs(b())}else{let b=function(){wp(t.stylesheetId,t.cspNonce,u.value)};Te?fe(u,b,{immediate:!0}):b()}}function m(p){p!=="system"&&!f.value.includes(p)||(i.value=p)}function g(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f.value;const S=p.indexOf(i.value),b=S===-1?0:(S+1)%p.length;m(p[b])}function v(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["light","dark"];g(p)}const E=new Proxy(i,{get(p,S){return Reflect.get(p,S)},set(p,S,b){return S==="value"&&ff(`theme.global.name.value = ${b}`,`theme.change('${b}')`),Reflect.set(p,S,b)}});return{install:d,change:m,cycle:g,toggle:v,isDisabled:t.isDisabled,isSystem:l,name:i,themes:r,current:a,computedThemes:o,prefix:t.prefix,themeClasses:c,styles:u,global:{name:E,current:a}}}function Et(e){Be("provideTheme");const t=ge(es,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=G(()=>e.theme??t.name.value),r=G(()=>t.themes.value[n.value]),s=G(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`),i={...t,name:n,current:r,themeClasses:s};return et(es,i),i}function jf(){Be("useTheme");const e=ge(es,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function ua(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=fo(),r=ue();if(Te){const s=new ResizeObserver(i=>{e==null||e(i,s),i.length&&(t==="content"?r.value=i[0].contentRect:r.value=i[0].target.getBoundingClientRect())});Ct(()=>{s.disconnect()}),fe(()=>n.el,(i,o)=>{o&&(s.unobserve(o),r.value=void 0),i&&s.observe(i)},{flush:"post"})}return{resizeRef:n,contentRect:ar(r)}}const ts=Symbol.for("vuetify:layout"),Wf=Symbol.for("vuetify:layout-item"),Xl=1e3,Ep=Z({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),OS=Z({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function xp(){const e=ge(ts);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function RS(e){const t=ge(ts);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${xc()}`,r=Be("useLayoutItem");et(Wf,{id:n});const s=le(!1);Tc(()=>s.value=!0),kc(()=>s.value=!1);const{layoutItemStyles:i,layoutItemScrimStyles:o}=t.register(r,{...e,active:M(()=>s.value?!1:e.active.value),id:n});return Ct(()=>t.unregister(n)),{layoutItemStyles:i,layoutRect:t.layoutRect,layoutItemScrimStyles:o}}const Ap=(e,t,n,r)=>{let s={top:0,left:0,right:0,bottom:0};const i=[{id:"",layer:{...s}}];for(const o of e){const a=t.get(o),l=n.get(o),u=r.get(o);if(!a||!l||!u)continue;const c={...s,[a.value]:parseInt(s[a.value],10)+(u.value?parseInt(l.value,10):0)};i.push({id:o,layer:c}),s=c}return i};function kp(e){const t=ge(ts,null),n=M(()=>t?t.rootZIndex.value-100:Xl),r=ue([]),s=We(new Map),i=We(new Map),o=We(new Map),a=We(new Map),l=We(new Map),{resizeRef:u,contentRect:c}=ua(),f=M(()=>{const A=new Map,D=e.overlaps??[];for(const k of D.filter(T=>T.includes(":"))){const[T,H]=k.split(":");if(!r.value.includes(T)||!r.value.includes(H))continue;const B=s.get(T),x=s.get(H),N=i.get(T),j=i.get(H);!B||!x||!N||!j||(A.set(H,{position:B.value,amount:parseInt(N.value,10)}),A.set(T,{position:x.value,amount:-parseInt(j.value,10)}))}return A}),d=M(()=>{const A=[...new Set([...o.values()].map(k=>k.value))].sort((k,T)=>k-T),D=[];for(const k of A){const T=r.value.filter(H=>{var B;return((B=o.get(H))==null?void 0:B.value)===k});D.push(...T)}return Ap(D,s,i,a)}),m=M(()=>!Array.from(l.values()).some(A=>A.value)),g=M(()=>d.value[d.value.length-1].layer),v=G(()=>({"--v-layout-left":ie(g.value.left),"--v-layout-right":ie(g.value.right),"--v-layout-top":ie(g.value.top),"--v-layout-bottom":ie(g.value.bottom),...m.value?void 0:{transition:"none"}})),E=M(()=>d.value.slice(1).map((A,D)=>{let{id:k}=A;const{layer:T}=d.value[D],H=i.get(k),B=s.get(k);return{id:k,...T,size:Number(H.value),position:B.value}})),p=A=>E.value.find(D=>D.id===A),S=Be("createLayout"),b=le(!1);yn(()=>{b.value=!0}),et(ts,{register:(A,D)=>{let{id:k,order:T,position:H,layoutSize:B,elementSize:x,active:N,disableTransitions:j,absolute:Y}=D;o.set(k,T),s.set(k,H),i.set(k,B),a.set(k,N),j&&l.set(k,j);const J=Zn(Wf,S==null?void 0:S.vnode).indexOf(A);J>-1?r.value.splice(J,0,k):r.value.push(k);const te=M(()=>E.value.findIndex(Se=>Se.id===k)),Oe=M(()=>n.value+d.value.length*2-te.value*2),me=M(()=>{const Se=H.value==="left"||H.value==="right",Ne=H.value==="right",Ge=H.value==="bottom",nt=x.value??B.value,$e=nt===0?"%":"px",w={[H.value]:0,zIndex:Oe.value,transform:`translate${Se?"X":"Y"}(${(N.value?0:-(nt===0?100:nt))*(Ne||Ge?-1:1)}${$e})`,position:Y.value||n.value!==Xl?"absolute":"fixed",...m.value?void 0:{transition:"none"}};if(!b.value)return w;const F=E.value[te.value],$=f.value.get(k);return $&&(F[$.position]+=$.amount),{...w,height:Se?`calc(100% - ${F.top}px - ${F.bottom}px)`:x.value?`${x.value}px`:void 0,left:Ne?void 0:`${F.left}px`,right:Ne?`${F.right}px`:void 0,top:H.value!=="bottom"?`${F.top}px`:void 0,bottom:H.value!=="top"?`${F.bottom}px`:void 0,width:Se?x.value?`${x.value}px`:void 0:`calc(100% - ${F.left}px - ${F.right}px)`}}),Ae=M(()=>({zIndex:Oe.value-1}));return{layoutItemStyles:me,layoutItemScrimStyles:Ae,zIndex:Oe}},unregister:A=>{o.delete(A),s.delete(A),i.delete(A),a.delete(A),l.delete(A),r.value=r.value.filter(D=>D!==A)},mainRect:g,mainStyles:v,getLayoutItem:p,items:E,layoutRect:c,rootZIndex:n});const _=G(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),O=G(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:_,layoutStyles:O,getLayoutItem:p,items:E,layoutRect:c,layoutRef:u}}function Gf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=Je(t,n),{aliases:s={},components:i={},directives:o={}}=r,a=or();return a.run(()=>{const l=sv(r.defaults),u=fp(r.display,r.ssr),c=Cp(r.theme),f=yv(r.icons),d=_v(r.locale),m=lp(r.date,d),g=hp(r.goTo,d);function v(p){for(const b in o)p.directive(b,o[b]);for(const b in i)p.component(b,i[b]);for(const b in s)p.component(b,pr({...s[b],name:b,aliasName:s[b].name}));const S=or();if(S.run(()=>{c.install(p)}),p.onUnmount(()=>S.stop()),p.provide(fr,l),p.provide(po,u),p.provide(es,c),p.provide(vo,f),p.provide(Ks,d),p.provide(Ff,m.options),p.provide(jl,m.instance),p.provide($f,g),Te&&r.ssr)if(p.$nuxt)p.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:b}=p;p.mount=function(){const _=b(...arguments);return qe(()=>u.update()),p.mount=b,_}}p.mixin({computed:{$vuetify(){return We({defaults:zn.call(this,fr),display:zn.call(this,po),theme:zn.call(this,es),icons:zn.call(this,vo),locale:zn.call(this,Ks),date:zn.call(this,jl)})}}})}function E(){a.stop()}return{install:v,unmount:E,defaults:l,display:u,theme:c,icons:f,locale:d,date:m,goTo:g}})}const Tp="3.11.2";Gf.version=Tp;function zn(e){var r,s;const t=this.$,n=((r=t.parent)==null?void 0:r.provides)??((s=t.vnode.appContext)==null?void 0:s.provides);if(n&&e in n)return n[e]}const Pp=Gf({theme:{defaultTheme:"dark"}});/*! + * pinia v3.0.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const Ip=Symbol();var Zl;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Zl||(Zl={}));function Uf(){const e=or(!0),t=e.run(()=>ue({}));let n=[],r=[];const s=oc({install(i){s._a=i,i.provide(Ip,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Op=Uf();/*! + * vue-router v4.6.3 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const Yn=typeof document<"u";function zf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Rp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&zf(e.default)}const pe=Object.assign;function Bi(e,t){const n={};for(const r in t){const s=t[r];n[r]=Pt(s)?s.map(e):e(s)}return n}const Wr=()=>{},Pt=Array.isArray;function Jl(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Kf=/#/g,Dp=/&/g,Lp=/\//g,Mp=/=/g,Np=/\?/g,qf=/\+/g,Vp=/%5B/g,Fp=/%5D/g,Yf=/%5E/g,Bp=/%60/g,Xf=/%7B/g,$p=/%7C/g,Zf=/%7D/g,Hp=/%20/g;function ca(e){return e==null?"":encodeURI(""+e).replace($p,"|").replace(Vp,"[").replace(Fp,"]")}function jp(e){return ca(e).replace(Xf,"{").replace(Zf,"}").replace(Yf,"^")}function yo(e){return ca(e).replace(qf,"%2B").replace(Hp,"+").replace(Kf,"%23").replace(Dp,"%26").replace(Bp,"`").replace(Xf,"{").replace(Zf,"}").replace(Yf,"^")}function Wp(e){return yo(e).replace(Mp,"%3D")}function Gp(e){return ca(e).replace(Kf,"%23").replace(Np,"%3F")}function Up(e){return Gp(e).replace(Lp,"%2F")}function ns(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const zp=/\/$/,Kp=e=>e.replace(zp,"");function $i(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),i=t.slice(l,a>0?a:t.length),s=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=Zp(r??t,n),{fullPath:r+i+o,path:r,query:s,hash:ns(o)}}function qp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ql(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Yp(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&dr(t.matched[r],n.matched[s])&&Jf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function dr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Jf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Xp(e[n],t[n]))return!1;return!0}function Xp(e,t){return Pt(e)?eu(e,t):Pt(t)?eu(t,e):e===t}function eu(e,t){return Pt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Zp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const ln={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let bo=function(e){return e.pop="pop",e.push="push",e}({}),Hi=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Jp(e){if(!e)if(Yn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Kp(e)}const Qp=/^[^#]+#/;function ey(e,t){return e.replace(Qp,"#")+t}function ty(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const vi=()=>({left:window.scrollX,top:window.scrollY});function ny(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=ty(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function tu(e,t){return(history.state?history.state.position-t:-1)+e}const So=new Map;function ry(e,t){So.set(e,t)}function sy(e){const t=So.get(e);return So.delete(e),t}function iy(e){return typeof e=="string"||e&&typeof e=="object"}function Qf(e){return typeof e=="string"||typeof e=="symbol"}let De=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const ed=Symbol("");De.MATCHER_NOT_FOUND+"",De.NAVIGATION_GUARD_REDIRECT+"",De.NAVIGATION_ABORTED+"",De.NAVIGATION_CANCELLED+"",De.NAVIGATION_DUPLICATED+"";function mr(e,t){return pe(new Error,{type:e,[ed]:!0},t)}function zt(e,t){return e instanceof Error&&ed in e&&(t==null||!!(e.type&t))}const oy=["params","query","hash"];function ay(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of oy)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function ly(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rs&&yo(s)):[r&&yo(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function uy(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Pt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const cy=Symbol(""),ru=Symbol(""),pi=Symbol(""),fa=Symbol(""),wo=Symbol("");function Tr(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function mn(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(mr(De.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?l(d):iy(d)?l(mr(De.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(o&&r.enterCallbacks[s]===o&&typeof d=="function"&&o.push(d),a())},c=i(()=>e.call(r&&r.instances[s],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function ji(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(zf(l)){const u=(l.__vccOpts||l)[t];u&&i.push(mn(u,n,r,o,a,s))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=Rp(c)?c.default:c;o.mods[a]=c,o.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&mn(d,n,r,o,a,s)()}))}}return i}function fy(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;odr(u,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(u=>dr(u,l))||s.push(l))}return[n,r,s]}/*! + * vue-router v4.6.3 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let dy=()=>location.protocol+"//"+location.host;function td(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let o=s.includes(e.slice(i))?e.slice(i).length:1,a=s.slice(o);return a[0]!=="/"&&(a="/"+a),Ql(a,"")}return Ql(n,e)+r+s}function my(e,t,n,r){let s=[],i=[],o=null;const a=({state:d})=>{const m=td(e,location),g=n.value,v=t.value;let E=0;if(d){if(n.value=m,t.value=d,o&&o===g){o=null;return}E=v?d.position-v.position:0}else r(m);s.forEach(p=>{p(n.value,g,{delta:E,type:bo.pop,direction:E?E>0?Hi.forward:Hi.back:Hi.unknown})})};function l(){o=n.value}function u(d){s.push(d);const m=()=>{const g=s.indexOf(d);g>-1&&s.splice(g,1)};return i.push(m),m}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(pe({},d.state,{scroll:vi()}),"")}}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function su(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?vi():null}}function hy(e){const{history:t,location:n}=window,r={value:td(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:dy()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),s.value=u}catch(m){console.error(m),n[c?"replace":"assign"](d)}}function o(l,u){i(l,pe({},t.state,su(s.value.back,l,s.value.forward,!0),u,{position:s.value.position}),!0),r.value=l}function a(l,u){const c=pe({},s.value,t.state,{forward:l,scroll:vi()});i(c.current,c,!0),i(l,pe({},su(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function gy(e){e=Jp(e);const t=hy(e),n=my(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=pe({location:"",base:e,go:r,createHref:ey.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let On=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Ve=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Ve||{});const vy={type:On.Static,value:""},py=/[a-zA-Z0-9_]/;function yy(e){if(!e)return[[]];if(e==="/")return[[vy]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=Ve.Static,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,u="",c="";function f(){u&&(n===Ve.Static?i.push({type:On.Static,value:u}):n===Ve.Param||n===Ve.ParamRegExp||n===Ve.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:On.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;at.length?t.length===1&&t[0]===it.Static+it.Segment?1:-1:0}function nd(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Cy={strict:!1,end:!0,sensitive:!1};function Ey(e,t,n){const r=wy(yy(e.path),n),s=pe(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function xy(e,t){const n=[],r=new Map;t=Jl(Cy,t);function s(f){return r.get(f)}function i(f,d,m){const g=!m,v=lu(f);v.aliasOf=m&&m.record;const E=Jl(t,f),p=[v];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const O of _)p.push(lu(pe({},v,{components:m?m.record.components:v.components,path:O,aliasOf:m?m.record:v})))}let S,b;for(const _ of p){const{path:O}=_;if(d&&O[0]!=="/"){const A=d.record.path,D=A[A.length-1]==="/"?"":"/";_.path=d.record.path+(O&&D+O)}if(S=Ey(_,d,E),m?m.alias.push(S):(b=b||S,b!==S&&b.alias.push(S),g&&f.name&&!uu(S)&&o(f.name)),rd(S)&&l(S),v.children){const A=v.children;for(let D=0;D{o(b)}:Wr}function o(f){if(Qf(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return n}function l(f){const d=Ty(f,n);n.splice(d,0,f),f.record.name&&!uu(f)&&r.set(f.record.name,f)}function u(f,d){let m,g={},v,E;if("name"in f&&f.name){if(m=r.get(f.name),!m)throw mr(De.MATCHER_NOT_FOUND,{location:f});E=m.record.name,g=pe(au(d.params,m.keys.filter(b=>!b.optional).concat(m.parent?m.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&au(f.params,m.keys.map(b=>b.name))),v=m.stringify(g)}else if(f.path!=null)v=f.path,m=n.find(b=>b.re.test(v)),m&&(g=m.parse(v),E=m.record.name);else{if(m=d.name?r.get(d.name):n.find(b=>b.re.test(d.path)),!m)throw mr(De.MATCHER_NOT_FOUND,{location:f,currentLocation:d});E=m.record.name,g=pe({},d.params,f.params),v=m.stringify(g)}const p=[];let S=m;for(;S;)p.unshift(S.record),S=S.parent;return{name:E,path:v,params:g,matched:p,meta:ky(p)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:a,getRecordMatcher:s}}function au(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function lu(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ay(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ay(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function uu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ky(e){return e.reduce((t,n)=>pe(t,n.meta),{})}function Ty(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;nd(e,t[i])<0?r=i:n=i+1}const s=Py(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function Py(e){let t=e;for(;t=t.parent;)if(rd(t)&&nd(e,t)===0)return t}function rd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function cu(e){const t=ge(pi),n=ge(fa),r=M(()=>{const l=ft(e.to);return t.resolve(l)}),s=M(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(dr.bind(null,c));if(d>-1)return d;const m=fu(l[u-2]);return u>1&&fu(c)===m&&f[f.length-1].path!==m?f.findIndex(dr.bind(null,l[u-2])):d}),i=M(()=>s.value>-1&&Ly(n.params,r.value.params)),o=M(()=>s.value>-1&&s.value===n.matched.length-1&&Jf(n.params,r.value.params));function a(l={}){if(Dy(l)){const u=t[ft(e.replace)?"replace":"push"](ft(e.to)).catch(Wr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:M(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}function Iy(e){return e.length===1?e[0]:e}const Oy=li({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:cu,setup(e,{slots:t}){const n=We(cu(e)),{options:r}=ge(pi),s=M(()=>({[du(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[du(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&Iy(t.default(n));return e.custom?i:bn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),Ry=Oy;function Dy(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ly(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Pt(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function fu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const du=(e,t,n)=>e??t??n,My=li({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ge(wo),s=M(()=>e.route||r.value),i=ge(ru,0),o=M(()=>{let u=ft(i);const{matched:c}=s.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=M(()=>s.value.matched[o.value]);et(ru,M(()=>o.value+1)),et(cy,a),et(wo,s);const l=ue();return fe(()=>[l.value,a.value,e.name],([u,c,f],[d,m,g])=>{c&&(c.instances[f]=u,m&&m!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=m.leaveGuards),c.updateGuards.size||(c.updateGuards=m.updateGuards))),u&&c&&(!m||!dr(c,m)||!d)&&(c.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return mu(n.default,{Component:d,route:u});const m=f.props[c],g=m?m===!0?u.params:typeof m=="function"?m(u):m:null,E=bn(d,pe({},g,t,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return mu(n.default,{Component:E,route:u})||E}}});function mu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ny=My;function Vy(e){const t=xy(e.routes,e),n=e.parseQuery||ly,r=e.stringifyQuery||nu,s=e.history,i=Tr(),o=Tr(),a=Tr(),l=le(ln);let u=ln;Yn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bi.bind(null,w=>""+w),f=Bi.bind(null,Up),d=Bi.bind(null,ns);function m(w,F){let $,X;return Qf(w)?($=t.getRecordMatcher(w),X=F):X=w,t.addRoute(X,$)}function g(w){const F=t.getRecordMatcher(w);F&&t.removeRoute(F)}function v(){return t.getRoutes().map(w=>w.record)}function E(w){return!!t.getRecordMatcher(w)}function p(w,F){if(F=pe({},F||l.value),typeof w=="string"){const C=$i(n,w,F.path),P=t.resolve({path:C.path},F),L=s.createHref(C.fullPath);return pe(C,P,{params:d(P.params),hash:ns(C.hash),redirectedFrom:void 0,href:L})}let $;if(w.path!=null)$=pe({},w,{path:$i(n,w.path,F.path).path});else{const C=pe({},w.params);for(const P in C)C[P]==null&&delete C[P];$=pe({},w,{params:f(C)}),F.params=f(F.params)}const X=t.resolve($,F),ce=w.hash||"";X.params=c(d(X.params));const h=qp(r,pe({},w,{hash:jp(ce),path:X.path})),y=s.createHref(h);return pe({fullPath:h,hash:ce,query:r===nu?uy(w.query):w.query||{}},X,{redirectedFrom:void 0,href:y})}function S(w){return typeof w=="string"?$i(n,w,l.value.path):pe({},w)}function b(w,F){if(u!==w)return mr(De.NAVIGATION_CANCELLED,{from:F,to:w})}function _(w){return D(w)}function O(w){return _(pe(S(w),{replace:!0}))}function A(w,F){const $=w.matched[w.matched.length-1];if($&&$.redirect){const{redirect:X}=$;let ce=typeof X=="function"?X(w,F):X;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=S(ce):{path:ce},ce.params={}),pe({query:w.query,hash:w.hash,params:ce.path!=null?{}:w.params},ce)}}function D(w,F){const $=u=p(w),X=l.value,ce=w.state,h=w.force,y=w.replace===!0,C=A($,X);if(C)return D(pe(S(C),{state:typeof C=="object"?pe({},ce,C.state):ce,force:h,replace:y}),F||$);const P=$;P.redirectedFrom=F;let L;return!h&&Yp(r,X,$)&&(L=mr(De.NAVIGATION_DUPLICATED,{to:P,from:X}),Ae(X,X,!0,!1)),(L?Promise.resolve(L):H(P,X)).catch(R=>zt(R)?zt(R,De.NAVIGATION_GUARD_REDIRECT)?R:me(R):te(R,P,X)).then(R=>{if(R){if(zt(R,De.NAVIGATION_GUARD_REDIRECT))return D(pe({replace:y},S(R.to),{state:typeof R.to=="object"?pe({},ce,R.to.state):ce,force:h}),F||P)}else R=x(P,X,!0,y,ce);return B(P,X,R),R})}function k(w,F){const $=b(w,F);return $?Promise.reject($):Promise.resolve()}function T(w){const F=Ge.values().next().value;return F&&typeof F.runWithContext=="function"?F.runWithContext(w):w()}function H(w,F){let $;const[X,ce,h]=fy(w,F);$=ji(X.reverse(),"beforeRouteLeave",w,F);for(const C of X)C.leaveGuards.forEach(P=>{$.push(mn(P,w,F))});const y=k.bind(null,w,F);return $.push(y),$e($).then(()=>{$=[];for(const C of i.list())$.push(mn(C,w,F));return $.push(y),$e($)}).then(()=>{$=ji(ce,"beforeRouteUpdate",w,F);for(const C of ce)C.updateGuards.forEach(P=>{$.push(mn(P,w,F))});return $.push(y),$e($)}).then(()=>{$=[];for(const C of h)if(C.beforeEnter)if(Pt(C.beforeEnter))for(const P of C.beforeEnter)$.push(mn(P,w,F));else $.push(mn(C.beforeEnter,w,F));return $.push(y),$e($)}).then(()=>(w.matched.forEach(C=>C.enterCallbacks={}),$=ji(h,"beforeRouteEnter",w,F,T),$.push(y),$e($))).then(()=>{$=[];for(const C of o.list())$.push(mn(C,w,F));return $.push(y),$e($)}).catch(C=>zt(C,De.NAVIGATION_CANCELLED)?C:Promise.reject(C))}function B(w,F,$){a.list().forEach(X=>T(()=>X(w,F,$)))}function x(w,F,$,X,ce){const h=b(w,F);if(h)return h;const y=F===ln,C=Yn?history.state:{};$&&(X||y?s.replace(w.fullPath,pe({scroll:y&&C&&C.scroll},ce)):s.push(w.fullPath,ce)),l.value=w,Ae(w,F,$,y),me()}let N;function j(){N||(N=s.listen((w,F,$)=>{if(!nt.listening)return;const X=p(w),ce=A(X,nt.currentRoute.value);if(ce){D(pe(ce,{replace:!0,force:!0}),X).catch(Wr);return}u=X;const h=l.value;Yn&&ry(tu(h.fullPath,$.delta),vi()),H(X,h).catch(y=>zt(y,De.NAVIGATION_ABORTED|De.NAVIGATION_CANCELLED)?y:zt(y,De.NAVIGATION_GUARD_REDIRECT)?(D(pe(S(y.to),{force:!0}),X).then(C=>{zt(C,De.NAVIGATION_ABORTED|De.NAVIGATION_DUPLICATED)&&!$.delta&&$.type===bo.pop&&s.go(-1,!1)}).catch(Wr),Promise.reject()):($.delta&&s.go(-$.delta,!1),te(y,X,h))).then(y=>{y=y||x(X,h,!1),y&&($.delta&&!zt(y,De.NAVIGATION_CANCELLED)?s.go(-$.delta,!1):$.type===bo.pop&&zt(y,De.NAVIGATION_ABORTED|De.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),B(X,h,y)}).catch(Wr)}))}let Y=Tr(),se=Tr(),J;function te(w,F,$){me(w);const X=se.list();return X.length?X.forEach(ce=>ce(w,F,$)):console.error(w),Promise.reject(w)}function Oe(){return J&&l.value!==ln?Promise.resolve():new Promise((w,F)=>{Y.add([w,F])})}function me(w){return J||(J=!w,j(),Y.list().forEach(([F,$])=>w?$(w):F()),Y.reset()),w}function Ae(w,F,$,X){const{scrollBehavior:ce}=e;if(!Yn||!ce)return Promise.resolve();const h=!$&&sy(tu(w.fullPath,0))||(X||!$)&&history.state&&history.state.scroll||null;return qe().then(()=>ce(w,F,h)).then(y=>y&&ny(y)).catch(y=>te(y,w,F))}const Se=w=>s.go(w);let Ne;const Ge=new Set,nt={currentRoute:l,listening:!0,addRoute:m,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:v,resolve:p,options:e,push:_,replace:O,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:se.add,isReady:Oe,install(w){w.component("RouterLink",Ry),w.component("RouterView",Ny),w.config.globalProperties.$router=nt,Object.defineProperty(w.config.globalProperties,"$route",{enumerable:!0,get:()=>ft(l)}),Yn&&!Ne&&l.value===ln&&(Ne=!0,_(s.location).catch(X=>{}));const F={};for(const X in ln)Object.defineProperty(F,X,{get:()=>l.value[X],enumerable:!0});w.provide(pi,nt),w.provide(fa,ic(F)),w.provide(wo,l);const $=w.unmount;Ge.add(w),w.unmount=function(){Ge.delete(w),Ge.size<1&&(u=ln,N&&N(),N=null,l.value=ln,Ne=!1,J=!1),$()}}};function $e(w){return w.reduce((F,$)=>F.then(()=>T($)),Promise.resolve())}return nt}function DS(){return ge(pi)}function LS(e){return ge(fa)}const Fy=e=>{const t={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>He(()=>import("./default-DRcAN1rd.js"),__vite__mapDeps([0,1]),import.meta.url)})).forEach(([s,i])=>{let o=s.replace("/src/layouts/","").replace(".vue","");t[o]=i});function r(s,i=!0){return s.map(o=>{var a,l,u,c,f,d;if(((a=o.children)==null?void 0:a.length)>0&&(o.children=r(o.children,!1)),i){if(!o.component&&((l=o.children)==null?void 0:l.find(g=>{var v;return(g.path===""||g.path==="/")&&((v=g.meta)==null?void 0:v.isLayout)})))return o;if(((u=o.meta)==null?void 0:u.layout)!==!1)return{path:o.path,component:t[((c=o.meta)==null?void 0:c.layout)||"default"],children:o.path==="/"?[o]:[{...o,path:""}],meta:{isLayout:!0}}}return(f=o.meta)!=null&&f.layout?{path:o.path,component:t[(d=o.meta)==null?void 0:d.layout],children:[{...o,path:""}],meta:{isLayout:!0}}:o})}return r(e)},By=[{path:"/",name:"/",component:()=>He(()=>import("./index-CGbgI0fv.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url)},{path:"/404",name:"/404",component:()=>He(()=>import("./404-C6NusGbt.js"),__vite__mapDeps([37,11,24]),import.meta.url)},{path:"/authorize",name:"/authorize",component:()=>He(()=>import("./authorize-D8xTRwK6.js"),__vite__mapDeps([38,11,24]),import.meta.url)},{path:"/CacheManagement",name:"/CacheManagement",component:()=>He(()=>import("./CacheManagement-DaWI8BSa.js"),__vite__mapDeps([39,32,33,34,35,7,8,40,41,11,24]),import.meta.url)},{path:"/cses2wakeup",name:"/cses2wakeup",component:()=>He(()=>import("./cses2wakeup-Cprhtj0i.js"),__vite__mapDeps([42,11,32,33,43,12,13,14,3,4,15,16,17,7,8,18,44,5,6,19,20,40,41,24,45]),import.meta.url)},{path:"/debug",name:"/debug",component:()=>He(()=>import("./debug-BuTu-WXm.js"),__vite__mapDeps([46,24,47]),import.meta.url)},{path:"/debug-init",name:"/debug-init",component:()=>He(()=>import("./debug-init-BXM_Z6IC.js"),__vite__mapDeps([48,21,11,25,3,4,24]),import.meta.url)},{path:"/debug-socket",name:"/debug-socket",component:()=>He(()=>import("./debug-socket-CdHPMvEr.js"),__vite__mapDeps([49,9,10,11,7,8,3,4,19,20,24]),import.meta.url)},{path:"/exam-editor",children:[{path:":id",name:"/exam-editor/[id]",component:()=>He(()=>import("./_id_-EtvF3n8F.js"),__vite__mapDeps([50,51,21,32,33,40,41,5,6,7,8,11,3,4,19,20,16,17,26,27,28,29,52,22,23,24]),import.meta.url)}]},{path:"/exam-player",name:"/exam-player",component:()=>He(()=>import("./exam-player-CIP0YcPa.js"),__vite__mapDeps([53,21,32,33,40,41,54]),import.meta.url)},{path:"/examschedule",name:"/examschedule",component:()=>He(()=>import("./examschedule-CSfflKwV.js"),__vite__mapDeps([55,51,21,32,33,40,41,5,6,7,8,11,3,4,19,20,16,17,26,27,28,29,52,24,56]),import.meta.url)},{path:"/list",children:[{path:"",name:"/list/",component:()=>He(()=>import("./index-BkGTTW92.js"),__vite__mapDeps([57,21,22,23,3,4,24]),import.meta.url)},{path:":id",name:"/list/[id]",component:()=>He(()=>import("./_id_-DaLKYTcE.js"),__vite__mapDeps([58,21,22,23,3,4,13,14,15,7,8,19,20,24]),import.meta.url)}]},{path:"/settings",name:"/settings",component:()=>He(()=>import("./settings-CKHEbZ82.js"),__vite__mapDeps([59,30,22,23,31,7,8,14,3,4,15,12,13,16,17,18,21,32,33,11,24,25,34,35,43,44,19,20,27,28,60]),import.meta.url)},{path:"/socket-debugger",name:"/socket-debugger",component:()=>He(()=>import("./socket-debugger-C9XJXx_m.js"),__vite__mapDeps([61,9,11,7,8,3,4,19,20,14,15,32,33,24,62]),import.meta.url)}],da=Vy({history:gy("./"),routes:Fy(By)});da.onError((e,t)=>{var n,r;(r=(n=e==null?void 0:e.message)==null?void 0:n.includes)!=null&&r.call(n,"Failed to fetch dynamically imported module")?localStorage.getItem("vuetify:dynamic-reload")?console.error("Dynamic import error, reloading page did not fix it",e):(console.log("Reloading page to fix dynamic import error"),localStorage.setItem("vuetify:dynamic-reload","true"),location.assign(t.fullPath)):console.error(e)});da.isReady().then(()=>{localStorage.removeItem("vuetify:dynamic-reload")});function $y(e){e.use(Pp).use(da).use(Op)}async function Hy(){return Notification&&Notification.requestPermission?await Notification.requestPermission()==="granted"?(console.log("通知权限已授予"),!0):(console.warn("通知权限被拒绝"),!1):(console.warn("浏览器不支持通知权限请求"),!1)}async function jy(){var e;try{return(e=navigator.storage)!=null&&e.persist?await navigator.storage.persist():!1}catch(t){return console.warn("请求持久性存储失败:",t),!1}}async function Wy(){if(await Hy()&&wn.getSetting("storage.persistOnLoad")){const t=await jy();console.log(`持久性存储状态: ${t?"已启用":"未启用"}`)}}typeof window<"u"&&window.addEventListener("load",Wy);const Wi="Classworks_settings",hu={"server.domain":"https://kv.wuyuan.dev","server.siteKey":""},kn={"device.uuid":{type:"string",default:"00000000-0000-4000-8000-000000000000",description:"设备唯一标识符",icon:"mdi-identifier"},"storage.persistOnLoad":{type:"boolean",default:!0,description:"是否在页面加载时自动请求持久性存储",icon:"mdi-database-sync"},"display.emptySubjectDisplay":{type:"string",default:"card",validate:e=>["card","button"].includes(e),description:"空科目的显示方式",icon:"mdi-card-outline"},"display.dynamicSort":{type:"boolean",default:!0,description:"是否启用动态排序",icon:"mdi-sort-variant"},"display.showRandomButton":{type:"boolean",default:!1,description:"是否显示随机点人按钮",icon:"mdi-shuffle-variant"},"display.showFullscreenButton":{type:"boolean",default:!0,description:"是否显示全屏按钮",icon:"mdi-fullscreen"},"display.cardHoverEffect":{type:"boolean",default:!0,description:"是否启用卡片悬浮效果",icon:"mdi-gesture-tap"},"display.enhancedTouchMode":{type:"boolean",default:!0,description:"是否启用增强触摸模式",icon:"mdi-gesture-tap-button"},"display.showAntiScreenBurnCard":{type:"boolean",default:!1,description:"是否显示防烧屏忽悠卡片",icon:"mdi-monitor-shimmer"},"display.showListCard":{type:"boolean",default:!0,description:"是否显示列表卡片",icon:"mdi-list-box"},"display.showExamScheduleButton":{type:"boolean",default:!0,description:"是否显示考试看板",icon:"mdi-calendar-check"},"display.showQuickTools":{type:"boolean",default:!0,description:"是否显示快捷键盘",icon:"mdi-dialpad"},"server.domain":{type:"string",default:"",validate:e=>{if(!e)return!0;try{return new URL(e),!0}catch(t){return console.error("域名格式无效:",t),!1}},description:"后端服务器域名",icon:"mdi-web"},"server.classNumber":{type:"string",default:"高三八班",validate:e=>/.*/.test(e),description:"班级编号",icon:"mdi-account-group"},"server.siteKey":{type:"string",default:"",description:"网站令牌",icon:"mdi-key-chain"},"server.kvToken":{type:"string",default:"",description:"KV授权令牌",icon:"mdi-shield-key"},"server.authDomain":{type:"string",default:"https://kv.houlang.cloud",description:"授权服务器域名",icon:"mdi-shield-account",validate:e=>{if(!e)return!0;try{return new URL(e),!0}catch(t){return console.error("授权域名格式无效:",t),!1}}},"server.provider":{type:"string",default:"classworkscloud",validate:e=>["kv-local","kv-server","classworkscloud"].includes(e),description:"数据提供者",icon:"mdi-database"},"refresh.auto":{type:"boolean",default:!1,description:"是否启用自动刷新",icon:"mdi-refresh-auto"},"refresh.interval":{type:"number",default:300,validate:e=>e>=10&&e<=3600,description:"自动刷新间隔(秒)",icon:"mdi-timer-outline"},"font.size":{type:"number",default:28,validate:e=>e>=16&&e<=100,description:"字体大小",icon:"mdi-format-size"},"edit.autoSave":{type:"boolean",default:!0,description:"是否启用自动保存",icon:"mdi-content-save-outline"},"edit.blockNonTodayAutoSave":{type:"boolean",default:!0,description:"禁止自动保存非当天数据",icon:"mdi-calendar-lock"},"edit.refreshBeforeEdit":{type:"boolean",default:!0,description:"编辑前是否自动刷新",icon:"mdi-refresh"},"edit.confirmNonTodaySave":{type:"boolean",default:!0,description:"保存非当天数据需确认",icon:"mdi-calendar-alert"},"edit.blockPastDataEdit":{type:"boolean",default:!1,description:"禁止编辑过往数据",icon:"mdi-lock-clock"},"edit.autoSavePromptText":{type:"string",default:"喵?喵呜!",description:"自动保存模式提示文本",icon:"mdi-text-box-outline"},"edit.manualSavePromptText":{type:"string",default:"写完后点击上传谢谢喵",description:"手动保存模式提示文本",icon:"mdi-text-box-outline"},"developer.enabled":{type:"boolean",default:!1,description:"是否启用开发者选项",icon:"mdi-developer-board"},"developer.showDebugConfig":{type:"boolean",default:!1,description:"是否显示调试配置",icon:"mdi-bug-outline"},"developer.disableMessageLog":{type:"boolean",default:!1,description:"禁用消息日志记录",requireDeveloper:!0,icon:"mdi-message-off-outline"},"message.showSidebar":{type:"boolean",default:!0,description:"是否显示消息记录侧栏",requireDeveloper:!0,icon:"mdi-message-text-outline"},"message.maxActiveMessages":{type:"number",default:5,validate:e=>e>=1&&e<=10,description:"同时显示的最大消息数量",requireDeveloper:!0,icon:"mdi-message-badge-outline"},"message.timeout":{type:"number",default:5e3,validate:e=>e>=1e3&&e<=3e4,description:"消息自动关闭时间(毫秒)",requireDeveloper:!0,icon:"mdi-timer-sand"},"message.saveHistory":{type:"boolean",default:!0,description:"是否保存消息历史记录",requireDeveloper:!0,icon:"mdi-history"},"theme.mode":{type:"string",default:"dark",validate:e=>["light","dark"].includes(e),description:"主题模式",icon:"mdi-theme-light-dark"},"randomPicker.enabled":{type:"boolean",default:!0,description:"是否启用随机点名功能",icon:"mdi-account-question"},"randomPicker.animation":{type:"boolean",default:!0,description:"是否启用随机点名动画效果",icon:"mdi-animation-play"},"randomPicker.defaultCount":{type:"number",default:1,validate:e=>e>=1&&e,description:"默认抽取人数",icon:"mdi-counter"},"randomPicker.excludeAbsent":{type:"boolean",default:!0,description:"是否排除请假学生",icon:"mdi-account-off"},"randomPicker.excludeLate":{type:"boolean",default:!1,description:"是否排除迟到学生",icon:"mdi-clock-alert"},"randomPicker.excludeExcluded":{type:"boolean",default:!0,description:"是否排除不参与学生",icon:"mdi-account-cancel"},"randomPicker.mode":{type:"string",default:"name",validate:e=>["name","number"].includes(e),description:"随机点名模式",icon:"mdi-format-list-numbered"},"randomPicker.maxNumber":{type:"number",default:60,validate:e=>e>=1&&e,description:"学号模式最大值",icon:"mdi-numeric"},"randomPicker.minNumber":{type:"number",default:1,validate:e=>e>=1&&e,description:"学号模式最小值",icon:"mdi-numeric-negative-1"}};class Gy{constructor(){this.settingsCache=null,this.isInitialized=!1}init(){this.isInitialized||(this.loadSettings(),this.isInitialized=!0)}loadSettings(){this.settingsCache={};try{const t=typeof localStorage<"u"?localStorage.getItem(Wi):null;t&&(this.settingsCache=JSON.parse(t))}catch(t){console.error("加载设置失败:",t)}for(const[t,n]of Object.entries(kn))t in this.settingsCache||(this.settingsCache[t]=n.default);return this.settingsCache}saveSettings(){if(!(typeof localStorage>"u"))try{localStorage.setItem(Wi,JSON.stringify(this.settingsCache))}catch(t){console.error("保存设置失败:",t)}}getSetting(t){this.isInitialized||this.init();const n=kn[t];if(!n)return console.warn(`未定义的设置项: ${t}`),null;if(n.requireDeveloper&&!this.settingsCache["developer.enabled"])return n.default;if(this.settingsCache["server.provider"]==="classworkscloud"&&hu[t]!==void 0)return hu[t];const r=this.settingsCache[t];return r!==void 0?r:n.default}setSetting(t,n){this.isInitialized||this.init();const r=kn[t];if(!r)return console.warn(`未定义的设置项: ${t}`),!1;if(r.requireDeveloper&&!this.settingsCache["developer.enabled"])return console.warn(`设置项 ${t} 需要启用开发者选项`),!1;try{const s=this.settingsCache[t];if(typeof n!==r.type&&(n=r.type==="boolean"?!!n:r.type==="number"?Number(n):String(n)),r.validate&&!r.validate(n))return console.warn(`设置项 ${t} 的值无效`),!1;this.settingsCache[t]=n,this.saveSettings(),this.logSettingsChange(t,s,n);const i=r.legacyKey;return i&&typeof localStorage<"u"&&localStorage.setItem(i,n.toString()),!0}catch(s){return console.error(`设置配置项 ${t} 失败:`,s),!1}}logSettingsChange(t,n,r){this.settingsCache["developer.enabled"]&&this.settingsCache["developer.showDebugConfig"]&&console.log(`[Settings] ${t}:`,{old:n,new:r,time:new Date().toLocaleTimeString()})}resetSetting(t){this.isInitialized||this.init();const n=kn[t];if(!n){console.warn(`未定义的设置项: ${t}`);return}this.settingsCache[t]=n.default,this.saveSettings()}resetAllSettings(){this.settingsCache={};for(const[t,n]of Object.entries(kn))this.settingsCache[t]=n.default;this.saveSettings()}watchSettings(t){if(typeof window>"u")return()=>{};const n=r=>{r.key===Wi&&(this.settingsCache=JSON.parse(r.newValue),t(this.settingsCache))};return window.addEventListener("storage",n),()=>window.removeEventListener("storage",n)}getSettingDefinition(t){return kn[t]||null}exportSettingsAsKeyValue(){this.isInitialized||this.init();const t={};for(const n in kn)t[n]=this.getSetting(n);return t}}const wn=new Gy;typeof window<"u"&&wn.init();const sd=e=>wn.getSetting(e),MS=(e,t)=>wn.setSetting(e,t),NS=e=>wn.resetSetting(e),VS=e=>wn.watchSettings(e),FS=e=>wn.getSettingDefinition(e),BS=()=>wn.exportSettingsAsKeyValue();class Uy{constructor(){this.logs=[]}async addLog(t){return this.logs.push(t),this.logs.length>100&&this.logs.shift(),!0}async getLogs(t=20){return this.logs.slice(-t).reverse()}}const Os=new Uy,Ft=[];let Rs=null,Nt=null;const Pr={SUCCESS:"success",ERROR:"error",INFO:"info",WARNING:"warning"},zy={timeout:3e3,showSnackbar:!0,addToLog:!0};async function xs(e,t,n="",r={}){const s={...zy,...r},i={id:Date.now()+Math.random(),type:e,title:t,content:n.substring(0,500),timestamp:new Date};if(s.addToLog)try{for(await Os.addLog(i),Ft.unshift(i);Ft.length>sd("message.maxActiveMessages");)Ft.pop();Nt==null||Nt(Ft)}catch(o){console.error("保存日志失败:",o)}return s.showSnackbar&&(Rs==null||Rs(i)),i}function Ky(e,t){let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}}const Xn={install:e=>{e.config.globalProperties.$message={success:(t,n,r)=>xs(Pr.SUCCESS,t,n,r),error:(t,n,r)=>xs(Pr.ERROR,t,n,r),info:(t,n,r)=>xs(Pr.INFO,t,n,r),warning:(t,n,r)=>xs(Pr.WARNING,t,n,r)}},onSnackbar:e=>{Rs=e},onLog:e=>{Nt=e},getMessages:async()=>{try{return await Os.getLogs()}catch(e){return console.error("获取日志失败:",e),[...Ft]}},clearMessages:async()=>{try{await Os.clearLogs(),Ft.length=0,Nt==null||Nt(Ft)}catch(e){console.error("清除日志失败:",e)}},MessageType:Pr,markAsRead:()=>{},deleteMessage:async e=>{try{await Os.deleteLog(e);const t=Ft.findIndex(n=>n.id===e);t!==-1&&Ft.splice(t,1),Nt==null||Nt(Ft)}catch(t){console.error("删除消息失败:",t)}},getUnreadCount:()=>0,debounce:Ky},id=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},br=Z({border:[Boolean,Number,String]},"border");function Sr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();return{borderClasses:M(()=>{const r=e.border;return r===!0||r===""?`${t}--border`:typeof r=="string"||r===0?String(r).split(" ").map(s=>`border-${s}`):[]})}}const qy=[null,"default","comfortable","compact"],Hn=Z({density:{type:String,default:"default",validator:e=>qy.includes(e)}},"density");function wr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();return{densityClasses:G(()=>`${t}--density-${e.density}`)}}const ds=Z({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function ms(e){return{elevationClasses:G(()=>{const n=Le(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const sn=Z({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function on(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();return{roundedClasses:M(()=>{const r=Le(e)?e.value:e.rounded,s=Le(e)?!1:e.tile,i=[];if(s||r===!1)i.push("rounded-0");else if(r===!0||r==="")i.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))i.push(`rounded-${o}`);return i})}}const tt=Z({tag:{type:[String,Object,Function],default:"div"}},"tag");function ma(e){return ta(()=>{const{class:t,style:n}=Yy(e);return{colorClasses:t,colorStyles:n}})}function hr(e){const{colorClasses:t,colorStyles:n}=ma(()=>({text:Qe(e)}));return{textColorClasses:t,textColorStyles:n}}function sr(e){const{colorClasses:t,colorStyles:n}=ma(()=>({background:Qe(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}function Yy(e){const t=Qe(e),n=[],r={};if(t.background)if(ho(t.background)){if(r.backgroundColor=t.background,!t.text&&Yg(t.background)){const s=Ht(t.background);if(s.a==null||s.a===1){const i=Tf(s);r.color=i,r.caretColor=i}}}else n.push(`bg-${t.background}`);return t.text&&(ho(t.text)?(r.color=t.text,r.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:r}}const Xy=["elevated","flat","tonal","outlined","text","plain"];function hs(e,t){return q(Pe,null,[e&&q("span",{key:"overlay",class:he(`${t}__overlay`)},null),q("span",{key:"underlay",class:he(`${t}__underlay`)},null)])}const jn=Z({color:String,variant:{type:String,default:"elevated",validator:e=>Xy.includes(e)}},"variant");function gs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();const n=G(()=>{const{variant:i}=Qe(e);return`${t}--variant-${i}`}),{colorClasses:r,colorStyles:s}=ma(()=>{const{variant:i,color:o}=Qe(e);return{[["elevated","flat"].includes(i)?"background":"text"]:o}});return{colorClasses:r,colorStyles:s,variantClasses:n}}const od=Z({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...br(),...Me(),...Hn(),...ds(),...sn(),...tt(),...vt(),...jn()},"VBtnGroup"),gu=ve()({name:"VBtnGroup",props:od(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Et(e),{densityClasses:s}=wr(e),{borderClasses:i}=Sr(e),{elevationClasses:o}=ms(e),{roundedClasses:a}=on(e);hi({VBtn:{height:G(()=>e.direction==="horizontal"?"auto":null),baseColor:G(()=>e.baseColor),color:G(()=>e.color),density:G(()=>e.density),flat:!0,variant:G(()=>e.variant)}}),Ie(()=>I(e.tag,{class:he(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},r.value,i.value,s.value,o.value,a.value,e.class]),style:xe(e.style)},n))}}),Zy=Z({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Jy=Z({value:null,disabled:Boolean,selectedClass:String},"group-item");function Qy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=Be("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const s=xc();et(Symbol.for(`${t.description}:id`),s);const i=ge(t,null);if(!i){if(!n)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=G(()=>e.value),a=M(()=>!!(i.disabled.value||e.disabled));function l(){i==null||i.register({id:s,value:o,disabled:a},r)}function u(){i==null||i.unregister(s)}l(),Ct(()=>u());const c=M(()=>i.isSelected(s)),f=M(()=>i.items.value[0].id===s),d=M(()=>i.items.value[i.items.value.length-1].id===s),m=M(()=>c.value&&[i.selectedClass.value,e.selectedClass]);return fe(c,g=>{r.emit("group:selected",{value:g})},{flush:"sync"}),{id:s,isSelected:c,isFirst:f,isLast:d,toggle:()=>i.select(s,!c.value),select:g=>i.select(s,g),selectedClass:m,value:o,disabled:a,group:i,register:l,unregister:u}}function eb(e,t){let n=!1;const r=We([]),s=Zt(e,"modelValue",[],d=>d===void 0?[]:ad(r,d===null?[null]:ea(d)),d=>{const m=nb(r,d);return e.multiple?m:m[0]}),i=Be("useGroup");function o(d,m){const g=d,v=Symbol.for(`${t.description}:id`),p=Zn(v,i==null?void 0:i.vnode).indexOf(m);ft(g.value)===void 0&&(g.value=p,g.useIndexAsValue=!0),p>-1?r.splice(p,0,g):r.push(g)}function a(d){if(n)return;l();const m=r.findIndex(g=>g.id===d);r.splice(m,1)}function l(){const d=r.find(m=>!m.disabled);d&&e.mandatory==="force"&&!s.value.length&&(s.value=[d.id])}yn(()=>{l()}),Ct(()=>{n=!0}),Wo(()=>{for(let d=0;dv.id===d);if(!(m&&(g!=null&&g.disabled)))if(e.multiple){const v=s.value.slice(),E=v.findIndex(S=>S===d),p=~E;if(m=m??!p,p&&e.mandatory&&v.length<=1||!p&&e.max!=null&&v.length+1>e.max)return;E<0&&m?v.push(d):E>=0&&!m&&v.splice(E,1),s.value=v}else{const v=s.value.includes(d);if(e.mandatory&&v||!v&&!m)return;s.value=m??!v?[d]:[]}}function c(d){if(e.multiple,s.value.length){const m=s.value[0],g=r.findIndex(p=>p.id===m);let v=(g+d)%r.length,E=r[v];for(;E.disabled&&v!==g;)v=(v+d)%r.length,E=r[v];if(E.disabled)return;s.value=[r[v].id]}else{const m=r.find(g=>!g.disabled);m&&(s.value=[m.id])}}const f={register:o,unregister:a,selected:s,select:u,disabled:G(()=>e.disabled),prev:()=>c(r.length-1),next:()=>c(1),isSelected:d=>s.value.includes(d),selectedClass:G(()=>e.selectedClass),items:G(()=>r),getItemIndex:d=>tb(r,d)};return et(t,f),f}function tb(e,t){const n=ad(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function ad(e,t){const n=[];return t.forEach(r=>{const s=e.find(o=>Mn(r,o.value)),i=e[r];(s==null?void 0:s.value)!==void 0?n.push(s.id):i!=null&&i.useIndexAsValue&&n.push(i.id)}),n}function nb(e,t){const n=[];return t.forEach(r=>{const s=e.findIndex(i=>i.id===r);if(~s){const i=e[s];n.push(i.value!==void 0?i.value:s)}}),n}const ld=Symbol.for("vuetify:v-btn-toggle"),rb=Z({...od(),...Zy()},"VBtnToggle"),$S=ve()({name:"VBtnToggle",props:rb(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:s,prev:i,select:o,selected:a}=eb(e,ld);return Ie(()=>{const l=gu.filterProps(e);return I(gu,ke({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:r,next:s,prev:i,select:o,selected:a})]}})}),{next:s,prev:i,select:o}}}),sb=Z({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),wt=ve(!1)({name:"VDefaultsProvider",props:sb(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:s,reset:i,root:o,scoped:a}=uc(e);return hi(r,{reset:i,root:o,scoped:a,disabled:s}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}}),ib=["x-small","small","default","large","x-large"],yi=Z({size:{type:[String,Number],default:"default"}},"size");function bi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();return ta(()=>{const n=e.size;let r,s;return Gs(ib,n)?r=`${t}--size-${n}`:n&&(s={width:ie(n),height:ie(n)}),{sizeClasses:r,sizeStyles:s}})}const ob=Z({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Ke,opacity:[String,Number],...Me(),...yi(),...tt({tag:"i"}),...vt()},"VIcon"),Wt=ve()({name:"VIcon",props:ob(),setup(e,t){let{attrs:n,slots:r}=t;const s=le(),{themeClasses:i}=jf(),{iconData:o}=hv(()=>s.value||e.icon),{sizeClasses:a}=bi(e),{textColorClasses:l,textColorStyles:u}=hr(()=>e.color);return Ie(()=>{var d,m;const c=(d=r.default)==null?void 0:d.call(r);c&&(s.value=(m=yf(c).filter(g=>g.type===as&&g.children&&typeof g.children=="string")[0])==null?void 0:m.children);const f=!!(n.onClick||n.onClickOnce);return I(o.value.component,{tag:e.tag,icon:o.value.icon,class:he(["v-icon","notranslate",i.value,a.value,l.value,{"v-icon--clickable":f,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:xe([{"--v-icon-opacity":e.opacity},a.value?void 0:{fontSize:ie(e.size),height:ie(e.size),width:ie(e.size)},u.value,e.style]),role:f?"button":void 0,"aria-hidden":!f,tabindex:f?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function ud(e,t){const n=ue(),r=le(!1);if(Zo){const s=new IntersectionObserver(i=>{r.value=!!i.find(o=>o.isIntersecting)},t);lt(()=>{s.disconnect()}),fe(n,(i,o)=>{o&&(s.unobserve(o),r.value=!1),i&&s.observe(i)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const ab=Z({bgColor:String,color:String,indeterminate:[Boolean,String],rounded:Boolean,modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Me(),...yi(),...tt({tag:"div"}),...vt()},"VProgressCircular"),lb=ve()({name:"VProgressCircular",props:ab(),setup(e,t){let{slots:n}=t;const r=20,s=2*Math.PI*r,i=ue(),{themeClasses:o}=Et(e),{sizeClasses:a,sizeStyles:l}=bi(e),{textColorClasses:u,textColorStyles:c}=hr(()=>e.color),{textColorClasses:f,textColorStyles:d}=hr(()=>e.bgColor),{intersectionRef:m,isIntersecting:g}=ud(),{resizeRef:v,contentRect:E}=ua(),p=G(()=>tn(parseFloat(e.modelValue),0,100)),S=G(()=>Number(e.width)),b=G(()=>l.value?Number(e.size):E.value?E.value.width:Math.max(S.value,32)),_=G(()=>r/(1-S.value/b.value)*2),O=G(()=>S.value/b.value*_.value),A=G(()=>{const k=(100-p.value)/100*s;return e.rounded&&p.value>0&&p.value<100?ie(Math.min(s-.01,k+O.value)):ie(k)}),D=M(()=>{const k=Number(e.rotate);return e.rounded?k+O.value/2/s*360:k});return _t(()=>{m.value=i.value,v.value=i.value}),Ie(()=>I(e.tag,{ref:i,class:he(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":g.value,"v-progress-circular--disable-shrink":e.indeterminate&&(e.indeterminate==="disable-shrink"||Xr())},o.value,a.value,u.value,e.class]),style:xe([l.value,c.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:p.value},{default:()=>[q("svg",{style:{transform:`rotate(calc(-90deg + ${D.value}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[q("circle",{class:he(["v-progress-circular__underlay",f.value]),style:xe(d.value),fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":O.value,"stroke-dasharray":s,"stroke-dashoffset":0},null),q("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":O.value,"stroke-dasharray":s,"stroke-dashoffset":A.value,"stroke-linecap":e.rounded?"round":void 0},null)]),n.default&&q("div",{class:"v-progress-circular__content"},[n.default({value:p.value})])]})),{}}}),_r=Z({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Cr(e){return{dimensionStyles:M(()=>{const n={},r=ie(e.height),s=ie(e.maxHeight),i=ie(e.maxWidth),o=ie(e.minHeight),a=ie(e.minWidth),l=ie(e.width);return r!=null&&(n.height=r),s!=null&&(n.maxHeight=s),i!=null&&(n.maxWidth=i),o!=null&&(n.minHeight=o),a!=null&&(n.minWidth=a),l!=null&&(n.width=l),n})}}const vu={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Si=Z({location:String},"location");function ha(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=cs();return{locationStyles:M(()=>{if(!e.location)return{};const{side:i,align:o}=mo(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function a(u){return n?n(u):0}const l={};return i!=="center"&&(t?l[vu[i]]=`calc(100% - ${a(i)}px)`:l[i]=0),o!=="center"?t?l[vu[o]]=`calc(100% - ${a(o)}px)`:l[o]=0:(i==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),l})}}const ub=Z({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function cb(e,t){const n=G(()=>!!e.chunkCount||!!e.chunkWidth),r=M(()=>{const a=Qe(t);if(!a)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const l=Number(e.chunkCount);return(a-Number(e.chunkGap)*(l-1))/l}),s=G(()=>Number(e.chunkGap)),i=M(()=>{if(!n.value)return{};const a=ie(s.value),l=ie(r.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${l}, transparent ${l}, transparent)`,maskSize:`calc(${l} + ${a}) 100%`}});function o(a){const l=Qe(t);if(!l)return a;const u=100*s.value/l,c=100*(r.value+s.value)/l,f=Math.floor((a+u)/c);return tn(0,f*c-u/2,100)}return{hasChunks:n,chunksMaskStyles:i,snapValueToChunk:o}}const fb=Z({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...ub(),...Me(),...Si({location:"top"}),...sn(),...tt(),...vt()},"VProgressLinear"),cd=ve()({name:"VProgressLinear",props:fb(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ue(),s=Zt(e,"modelValue"),{isRtl:i,rtlClasses:o}=cs(),{themeClasses:a}=Et(e),{locationStyles:l}=ha(e),{textColorClasses:u,textColorStyles:c}=hr(()=>e.color),{backgroundColorClasses:f,backgroundColorStyles:d}=sr(()=>e.bgColor||e.color),{backgroundColorClasses:m,backgroundColorStyles:g}=sr(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:v,backgroundColorStyles:E}=sr(()=>e.color),{roundedClasses:p}=on(e),{intersectionRef:S,isIntersecting:b}=ud(),_=M(()=>parseFloat(e.max)),O=M(()=>parseFloat(e.height)),A=M(()=>tn(parseFloat(e.bufferValue)/_.value*100,0,100)),D=M(()=>tn(parseFloat(s.value)/_.value*100,0,100)),k=M(()=>i.value!==e.reverse),T=M(()=>e.indeterminate?"fade-transition":"slide-x-transition"),H=le(0),{hasChunks:B,chunksMaskStyles:x,snapValueToChunk:N}=cb(e,H);yr(B,()=>{const{resizeRef:J}=ua(te=>H.value=te[0].contentRect.width);_t(()=>J.value=r.value)});const j=M(()=>B.value?N(A.value):A.value),Y=M(()=>B.value?N(D.value):D.value);function se(J){if(!S.value)return;const{left:te,right:Oe,width:me}=S.value.getBoundingClientRect(),Ae=k.value?me-J.clientX+(Oe-me):J.clientX-te;s.value=Math.round(Ae/me*_.value)}return _t(()=>{S.value=r.value}),Ie(()=>I(e.tag,{ref:r,class:he(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&b.value,"v-progress-linear--reverse":k.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},p.value,a.value,o.value,e.class]),style:xe([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?ie(O.value):0,"--v-progress-linear-height":ie(O.value),...e.absolute?l.value:{}},x.value,e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(s.value),_.value),onClick:e.clickable&&se},{default:()=>[e.stream&&q("div",{key:"stream",class:he(["v-progress-linear__stream",u.value]),style:{...c.value,[k.value?"left":"right"]:ie(-O.value),borderTop:`${ie(O.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${ie(O.value/4)})`,width:ie(100-A.value,"%"),"--v-progress-linear-stream-to":ie(O.value*(k.value?1:-1))}},null),q("div",{class:he(["v-progress-linear__background",f.value]),style:xe([d.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),q("div",{class:he(["v-progress-linear__buffer",m.value]),style:xe([g.value,{opacity:parseFloat(e.bufferOpacity),width:ie(j.value,"%")}])},null),I(vn,{name:T.value},{default:()=>[e.indeterminate?q("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(J=>q("div",{key:J,class:he(["v-progress-linear__indeterminate",J,v.value]),style:xe(E.value)},null))]):q("div",{class:he(["v-progress-linear__determinate",v.value]),style:xe([E.value,{width:ie(Y.value,"%")}])},null)]}),n.default&&q("div",{class:"v-progress-linear__content"},[n.default({value:D.value,buffer:A.value})])]})),{}}}),fd=Z({loading:[Boolean,String]},"loader");function dd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();return{loaderClasses:G(()=>({[`${t}--loading`]:e.loading}))}}function db(e,t){var r;let{slots:n}=t;return q("div",{class:he(`${e.name}__loader`)},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||I(cd,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const mb=["static","relative","fixed","absolute","sticky"],ga=Z({position:{type:String,validator:e=>mb.includes(e)}},"position");function va(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn();return{positionClasses:G(()=>e.position?`${t}--${e.position}`:void 0)}}function hb(){const e=Be("useRoute");return M(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function gb(){var e,t;return(t=(e=Be("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function pa(e,t){var f,d;const n=Dc("RouterLink"),r=G(()=>!!(e.href||e.to)),s=M(()=>(r==null?void 0:r.value)||Sl(t,"click")||Sl(e,"click"));if(typeof n=="string"||!("useLink"in n)){const m=G(()=>e.href);return{isLink:r,isRouterLink:G(()=>!1),isClickable:s,href:m,linkProps:We({href:m})}}const i=n.useLink({to:G(()=>e.to||""),replace:G(()=>e.replace)}),o=M(()=>e.to?i:void 0),a=hb(),l=M(()=>{var m,g,v;return o.value?e.exact?a.value?((v=o.value.isExactActive)==null?void 0:v.value)&&Mn(o.value.route.value.query,a.value.query):((g=o.value.isExactActive)==null?void 0:g.value)??!1:((m=o.value.isActive)==null?void 0:m.value)??!1:!1}),u=M(()=>{var m;return e.to?(m=o.value)==null?void 0:m.route.value.href:e.href}),c=G(()=>!!e.to);return{isLink:r,isRouterLink:c,isClickable:s,isActive:l,route:(f=o.value)==null?void 0:f.route,navigate:(d=o.value)==null?void 0:d.navigate,href:u,linkProps:We({href:u,"aria-current":G(()=>l.value?"page":void 0),"aria-disabled":G(()=>e.disabled&&r.value?"true":void 0),tabindex:G(()=>e.disabled&&r.value?"-1":void 0)})}}const ya=Z({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Gi=!1;function vb(e,t){let n=!1,r,s;Te&&(e!=null&&e.beforeEach)&&(qe(()=>{window.addEventListener("popstate",i),r=e.beforeEach((o,a,l)=>{Gi?n?t(l):l():setTimeout(()=>n?t(l):l()),Gi=!0}),s=e==null?void 0:e.afterEach(()=>{Gi=!1})}),lt(()=>{window.removeEventListener("popstate",i),r==null||r(),s==null||s()}));function i(o){var a;(a=o.state)!=null&&a.replaced||(n=!0,setTimeout(()=>n=!1))}}function pb(e,t){fe(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n!=null&&t&&qe(()=>{t(n)})},{immediate:!0})}const _o=Symbol("rippleStop"),yb=80;function pu(e,t){e.style.transform=t,e.style.webkitTransform=t}function Co(e){return e.constructor.name==="TouchEvent"}function md(e){return e.constructor.name==="KeyboardEvent"}const bb=function(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,s=0;if(!md(e)){const d=t.getBoundingClientRect(),m=Co(e)?e.touches[e.touches.length-1]:e;r=m.clientX-d.left,s=m.clientY-d.top}let i=0,o=.3;(f=t._ripple)!=null&&f.circle?(o=.15,i=t.clientWidth/2,i=n.center?i:i+Math.sqrt((r-i)**2+(s-i)**2)/4):i=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-i*2)/2}px`,l=`${(t.clientHeight-i*2)/2}px`,u=n.center?a:`${r-i}px`,c=n.center?l:`${s-i}px`;return{radius:i,scale:o,x:u,y:c,centerX:a,centerY:l}},Xs={show(e,t){var m;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((m=t==null?void 0:t._ripple)!=null&&m.enabled))return;const r=document.createElement("span"),s=document.createElement("span");r.appendChild(s),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:i,scale:o,x:a,y:l,centerX:u,centerY:c}=bb(e,t,n),f=`${i*2}px`;s.className="v-ripple__animation",s.style.width=f,s.style.height=f,t.appendChild(r);const d=window.getComputedStyle(t);d&&d.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),pu(s,`translate(${a}, ${l}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),pu(s,`translate(${u}, ${c}) scale3d(1,1,1)`)})})},hide(e){var i;if(!((i=e==null?void 0:e._ripple)!=null&&i.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=Array.from(t).findLast(o=>!o.dataset.isHiding);if(n)n.dataset.isHiding="true";else return;const r=performance.now()-Number(n.dataset.activated),s=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function hd(e){return typeof e>"u"||!!e}function rs(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[_o])){if(e[_o]=!0,Co(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||md(e),n._ripple.class&&(t.class=n._ripple.class),Co(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Xs.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},yb)}else Xs.show(e,n,t)}}function yu(e){e[_o]=!0}function mt(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{mt(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Xs.hide(t)}}function gd(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let ss=!1;function bu(e,t){!ss&&t.includes(e.key)&&(ss=!0,rs(e))}function vd(e){ss=!1,mt(e)}function pd(e){ss&&(ss=!1,mt(e))}function yd(e,t,n){const{value:r,modifiers:s}=t,i=hd(r);i||Xs.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=i,e._ripple.centered=s.center,e._ripple.circle=s.circle;const o=co(r)?r:{};o.class&&(e._ripple.class=o.class);const a=o.keys??["Enter","Space"];if(e._ripple.keyDownHandler=l=>bu(l,a),i&&!n){if(s.stop){e.addEventListener("touchstart",yu,{passive:!0}),e.addEventListener("mousedown",yu);return}e.addEventListener("touchstart",rs,{passive:!0}),e.addEventListener("touchend",mt,{passive:!0}),e.addEventListener("touchmove",gd,{passive:!0}),e.addEventListener("touchcancel",mt),e.addEventListener("mousedown",rs),e.addEventListener("mouseup",mt),e.addEventListener("mouseleave",mt),e.addEventListener("keydown",l=>bu(l,a)),e.addEventListener("keyup",vd),e.addEventListener("blur",pd),e.addEventListener("dragstart",mt,{passive:!0})}else!i&&n&&bd(e)}function bd(e){var t;e.removeEventListener("mousedown",rs),e.removeEventListener("touchstart",rs),e.removeEventListener("touchend",mt),e.removeEventListener("touchmove",gd),e.removeEventListener("touchcancel",mt),e.removeEventListener("mouseup",mt),e.removeEventListener("mouseleave",mt),(t=e._ripple)!=null&&t.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",vd),e.removeEventListener("dragstart",mt),e.removeEventListener("blur",pd)}function Sb(e,t){yd(e,t,!1)}function wb(e){bd(e),delete e._ripple}function _b(e,t){if(t.value===t.oldValue)return;const n=hd(t.oldValue);yd(e,t,n)}const is={mounted:Sb,unmounted:wb,updated:_b},Cb=Z({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:ld},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Ke,appendIcon:Ke,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...br(),...Me(),...Hn(),..._r(),...ds(),...Jy(),...fd(),...Si(),...ga(),...sn(),...ya(),...yi(),...tt({tag:"button"}),...vt(),...jn({variant:"elevated"})},"VBtn"),Sd=ve()({name:"VBtn",props:Cb(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=Et(e),{borderClasses:i}=Sr(e),{densityClasses:o}=wr(e),{dimensionStyles:a}=Cr(e),{elevationClasses:l}=ms(e),{loaderClasses:u}=dd(e),{locationStyles:c}=ha(e),{positionClasses:f}=va(e),{roundedClasses:d}=on(e),{sizeClasses:m,sizeStyles:g}=bi(e),v=Qy(e,e.symbol,!1),E=pa(e,n),p=M(()=>{var B;return e.active!==void 0?e.active:E.isRouterLink.value?(B=E.isActive)==null?void 0:B.value:v==null?void 0:v.isSelected.value}),S=G(()=>p.value?e.activeColor??e.color:e.color),b=M(()=>{var x,N;return{color:(v==null?void 0:v.isSelected.value)&&(!E.isLink.value||((x=E.isActive)==null?void 0:x.value))||!v||((N=E.isActive)==null?void 0:N.value)?S.value??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:_,colorStyles:O,variantClasses:A}=gs(b),D=M(()=>(v==null?void 0:v.disabled.value)||e.disabled),k=G(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),T=M(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function H(B){var x;D.value||E.isLink.value&&(B.metaKey||B.ctrlKey||B.shiftKey||B.button!==0||n.target==="_blank")||(E.isRouterLink.value?(x=E.navigate)==null||x.call(E,B):v==null||v.toggle())}return pb(E,v==null?void 0:v.select),Ie(()=>{const B=E.isLink.value?"a":e.tag,x=!!(e.prependIcon||r.prepend),N=!!(e.appendIcon||r.append),j=!!(e.icon&&e.icon!==!0);return Vn(I(B,ke(E.linkProps,{type:B==="a"?void 0:"button",class:["v-btn",v==null?void 0:v.selectedClass.value,{"v-btn--active":p.value,"v-btn--block":e.block,"v-btn--disabled":D.value,"v-btn--elevated":k.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},e.spaced?["v-btn--spaced",`v-btn--spaced-${e.spaced}`]:[],s.value,i.value,_.value,o.value,l.value,u.value,f.value,d.value,m.value,A.value,e.class],style:[O.value,a.value,c.value,g.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:D.value&&B!=="a"||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:H,value:T.value}),{default:()=>{var Y;return[hs(!0,"v-btn"),!e.icon&&x&&q("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?I(wt,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):I(Wt,{key:"prepend-icon",icon:e.prependIcon},null)]),q("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&j?I(Wt,{key:"content-icon",icon:e.icon},null):I(wt,{key:"content-defaults",disabled:!j,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var se;return[((se=r.default)==null?void 0:se.call(r))??xt(e.text)]}})]),!e.icon&&N&&q("span",{key:"append",class:"v-btn__append"},[r.append?I(wt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):I(Wt,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&q("span",{key:"loader",class:"v-btn__loader"},[((Y=r.loader)==null?void 0:Y.call(r))??I(lb,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[is,!D.value&&e.ripple,"",{center:!!e.icon}]])}),{group:v}}});function Ui(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Eb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Su(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,s=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,i=n==="top"?0:n==="bottom"?t.height:n;return Ui({x:s,y:i},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,s=n==="left"?0:n==="right"?t.width:n,i=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return Ui({x:s,y:i},t)}return Ui({x:t.width/2,y:t.height/2},t)}const wd={static:kb,connected:Pb},xb=Z({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in wd},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array],stickToTarget:Boolean,viewportMargin:{type:[Number,String],default:12}},"VOverlay-location-strategies");function Ab(e,t){const n=ue({}),r=ue();Te&&yr(()=>!!(t.isActive.value&&e.locationStrategy),a=>{var l,u;fe(()=>e.locationStrategy,a),lt(()=>{window.removeEventListener("resize",s),visualViewport==null||visualViewport.removeEventListener("resize",i),visualViewport==null||visualViewport.removeEventListener("scroll",o),r.value=void 0}),window.addEventListener("resize",s,{passive:!0}),visualViewport==null||visualViewport.addEventListener("resize",i,{passive:!0}),visualViewport==null||visualViewport.addEventListener("scroll",o,{passive:!0}),typeof e.locationStrategy=="function"?r.value=(l=e.locationStrategy(t,e,n))==null?void 0:l.updateLocation:r.value=(u=wd[e.locationStrategy](t,e,n))==null?void 0:u.updateLocation});function s(a){var l;(l=r.value)==null||l.call(r,a)}function i(a){var l;(l=r.value)==null||l.call(r,a)}function o(a){var l;(l=r.value)==null||l.call(r,a)}return{contentStyles:n,updateLocation:r}}function kb(){}function Tb(e,t){const n=Cf(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function Pb(e,t,n){(Array.isArray(e.target.value)||dv(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:s,preferredOrigin:i}=ta(()=>{const p=mo(t.location,e.isRtl.value),S=t.origin==="overlap"?p:t.origin==="auto"?Mi(p):mo(t.origin,e.isRtl.value);return p.side===S.side&&p.align===Ni(S).align?{preferredAnchor:_l(p),preferredOrigin:_l(S)}:{preferredAnchor:p,preferredOrigin:S}}),[o,a,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(p=>M(()=>{const S=parseFloat(t[p]);return isNaN(S)?1/0:S})),c=M(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const p=t.offset.split(" ").map(parseFloat);return p.length<2&&p.push(0),p}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let f=!1,d=-1;const m=new Ag(4),g=new ResizeObserver(()=>{if(!f)return;if(requestAnimationFrame(S=>{S!==d&&m.clear(),requestAnimationFrame(b=>{d=b})}),m.isFull){const S=m.values();if(Mn(S.at(-1),S.at(-3))&&!Mn(S.at(-1),S.at(-2)))return}const p=E();p&&m.push(p.flipped)});let v=new St({x:0,y:0,width:0,height:0});fe(e.target,(p,S)=>{S&&!Array.isArray(S)&&g.unobserve(S),Array.isArray(p)?Mn(p,S)||E():p&&g.observe(p)},{immediate:!0}),fe(e.contentEl,(p,S)=>{S&&g.unobserve(S),p&&g.observe(p)},{immediate:!0}),lt(()=>{g.disconnect()});function E(){if(f=!1,requestAnimationFrame(()=>f=!0),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(v=_f(e.target.value));const p=Tb(e.contentEl.value,e.isRtl.value),S=zs(e.contentEl.value),b=Number(t.viewportMargin);S.length||(S.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(p.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),p.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const _=S.reduce((N,j)=>{const Y=Dg(j);return N?new St({x:Math.max(N.left,Y.left),y:Math.max(N.top,Y.top),width:Math.min(N.right,Y.right)-Math.max(N.left,Y.left),height:Math.min(N.bottom,Y.bottom)-Math.max(N.top,Y.top)}):Y},void 0);t.stickToTarget?(_.x+=Math.min(b,v.x),_.y+=Math.min(b,v.y),_.width=Math.max(_.width-b*2,v.x+v.width-b),_.height=Math.max(_.height-b*2,v.y+v.height-b)):(_.x+=b,_.y+=b,_.width-=b*2,_.height-=b*2);let O={anchor:s.value,origin:i.value};function A(N){const j=new St(p),Y=Su(N.anchor,v),se=Su(N.origin,j);let{x:J,y:te}=Eb(Y,se);switch(N.anchor.side){case"top":te-=c.value[0];break;case"bottom":te+=c.value[0];break;case"left":J-=c.value[0];break;case"right":J+=c.value[0];break}switch(N.anchor.align){case"top":te-=c.value[1];break;case"bottom":te+=c.value[1];break;case"left":J-=c.value[1];break;case"right":J+=c.value[1];break}return j.x+=J,j.y+=te,j.width=Math.min(j.width,l.value),j.height=Math.min(j.height,u.value),{overflows:El(j,_),x:J,y:te}}let D=0,k=0;const T={x:0,y:0},H={x:!1,y:!1};let B=-1;for(;!(B++>10);){const{x:N,y:j,overflows:Y}=A(O);D+=N,k+=j,p.x+=N,p.y+=j;{const se=Cl(O.anchor),J=Y.x.before||Y.x.after,te=Y.y.before||Y.y.after;let Oe=!1;if(["x","y"].forEach(me=>{if(me==="x"&&J&&!H.x||me==="y"&&te&&!H.y){const Ae={anchor:{...O.anchor},origin:{...O.origin}},Se=me==="x"?se==="y"?Ni:Mi:se==="y"?Mi:Ni;Ae.anchor=Se(Ae.anchor),Ae.origin=Se(Ae.origin);const{overflows:Ne}=A(Ae);(Ne[me].before<=Y[me].before&&Ne[me].after<=Y[me].after||Ne[me].before+Ne[me].after<(Y[me].before+Y[me].after)/2)&&(O=Ae,Oe=H[me]=!0)}}),Oe)continue}Y.x.before&&(D+=Y.x.before,p.x+=Y.x.before),Y.x.after&&(D-=Y.x.after,p.x-=Y.x.after),Y.y.before&&(k+=Y.y.before,p.y+=Y.y.before),Y.y.after&&(k-=Y.y.after,p.y-=Y.y.after);{const se=El(p,_);T.x=_.width-se.x.before-se.x.after,T.y=_.height-se.y.before-se.y.after,D+=se.x.before,p.x+=se.x.before,k+=se.y.before,p.y+=se.y.before}break}const x=Cl(O.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${O.anchor.side} ${O.anchor.align}`,transformOrigin:`${O.origin.side} ${O.origin.align}`,top:ie(zi(k)),left:e.isRtl.value?void 0:ie(zi(D)),right:e.isRtl.value?ie(zi(-D)):void 0,minWidth:ie(x==="y"?Math.min(o.value,v.width):o.value),maxWidth:ie(wu(tn(T.x,o.value===1/0?0:o.value,l.value))),maxHeight:ie(wu(tn(T.y,a.value===1/0?0:a.value,u.value)))}),{available:T,contentBox:p,flipped:H}}return fe(()=>[s.value,i.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>E()),qe(()=>{const p=E();if(!p)return;const{available:S,contentBox:b}=p;b.height>S.y&&requestAnimationFrame(()=>{E(),requestAnimationFrame(()=>{E()})})}),{updateLocation:E}}function zi(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function wu(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let Eo=!0;const Zs=[];function Ib(e){!Eo||Zs.length?(Zs.push(e),xo()):(Eo=!1,e(),xo())}let _u=-1;function xo(){cancelAnimationFrame(_u),_u=requestAnimationFrame(()=>{const e=Zs.shift();e&&e(),Zs.length?xo():Eo=!0})}const Ds={none:null,close:Db,block:Lb,reposition:Mb},Ob=Z({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Ds}},"VOverlay-scroll-strategies");function Rb(e,t){if(!Te)return;let n;_t(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=or(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=Ds[e.scrollStrategy])==null||r.call(Ds,t,e,n)}))}),lt(()=>{n==null||n.stop()})}function Db(e){function t(n){e.isActive.value=!1}_d(ba(e.target.value,e.contentEl.value),t)}function Lb(e,t){var a;const n=(a=e.root.value)==null?void 0:a.offsetParent,r=ba(e.target.value,e.contentEl.value),s=[...new Set([...zs(r,t.contained?n:void 0),...zs(e.contentEl.value,t.contained?n:void 0)])].filter(l=>!l.classList.contains("v-overlay-scroll-blocked")),i=window.innerWidth-document.documentElement.offsetWidth,o=(l=>ia(l)&&l)(n||document.documentElement);o&&e.root.value.classList.add("v-overlay--scroll-blocked"),s.forEach((l,u)=>{l.style.setProperty("--v-body-scroll-x",ie(-l.scrollLeft)),l.style.setProperty("--v-body-scroll-y",ie(-l.scrollTop)),l!==document.documentElement&&l.style.setProperty("--v-scrollbar-offset",ie(i)),l.classList.add("v-overlay-scroll-blocked")}),lt(()=>{s.forEach((l,u)=>{const c=parseFloat(l.style.getPropertyValue("--v-body-scroll-x")),f=parseFloat(l.style.getPropertyValue("--v-body-scroll-y")),d=l.style.scrollBehavior;l.style.scrollBehavior="auto",l.style.removeProperty("--v-body-scroll-x"),l.style.removeProperty("--v-body-scroll-y"),l.style.removeProperty("--v-scrollbar-offset"),l.classList.remove("v-overlay-scroll-blocked"),l.scrollLeft=-c,l.scrollTop=-f,l.style.scrollBehavior=d}),o&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function Mb(e,t,n){let r=!1,s=-1,i=-1;function o(a){Ib(()=>{var c,f;const l=performance.now();(f=(c=e.updateLocation).value)==null||f.call(c,a),r=(performance.now()-l)/(1e3/60)>2})}i=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{_d(ba(e.target.value,e.contentEl.value),a=>{r?(cancelAnimationFrame(s),s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{o(a)})})):o(a)})})}),lt(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(i),cancelAnimationFrame(s)})}function ba(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find(n=>!(t!=null&&t.contains(n))):e??t}function _d(e,t){const n=[document,...zs(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),lt(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const Nb=Symbol.for("vuetify:v-menu"),Vb=Z({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function Fb(e,t){let n=()=>{};function r(o,a){n==null||n();const l=o?e.openDelay:e.closeDelay,u=Math.max((a==null?void 0:a.minDelay)??0,Number(l??0));return new Promise(c=>{n=Ig(u,()=>{t==null||t(o),c(o)})})}function s(){return r(!0)}function i(o){return r(!1,o)}return{clearDelay:n,runOpenDelay:s,runCloseDelay:i}}const Bb=Z({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...Vb()},"VOverlay-activator");function $b(e,t){let{isActive:n,isTop:r,contentEl:s}=t;const i=Be("useActivator"),o=ue();let a=!1,l=!1,u=!0;const c=M(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),f=M(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:d,runCloseDelay:m}=Fb(e,k=>{k===(e.openOnHover&&a||c.value&&l)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==k&&(u=!0),n.value=k)}),g=ue(),v={onClick:k=>{k.stopPropagation(),o.value=k.currentTarget||k.target,n.value||(g.value=[k.clientX,k.clientY]),n.value=!n.value},onMouseenter:k=>{a=!0,o.value=k.currentTarget||k.target,d()},onMouseleave:k=>{a=!1,m()},onFocus:k=>{Tg(k.target,":focus-visible")!==!1&&(l=!0,k.stopPropagation(),o.value=k.currentTarget||k.target,d())},onBlur:k=>{l=!1,k.stopPropagation(),m({minDelay:1})}},E=M(()=>{const k={};return f.value&&(k.onClick=v.onClick),e.openOnHover&&(k.onMouseenter=v.onMouseenter,k.onMouseleave=v.onMouseleave),c.value&&(k.onFocus=v.onFocus,k.onBlur=v.onBlur),k}),p=M(()=>{const k={};if(e.openOnHover&&(k.onMouseenter=()=>{a=!0,d()},k.onMouseleave=()=>{a=!1,m()}),c.value&&(k.onFocusin=T=>{T.target.matches(":focus-visible")&&(l=!0,d())},k.onFocusout=()=>{l=!1,m({minDelay:1})}),e.closeOnContentClick){const T=ge(Nb,null);k.onClick=()=>{n.value=!1,T==null||T.closeParents()}}return k}),S=M(()=>{const k={};return e.openOnHover&&(k.onMouseenter=()=>{u&&(a=!0,u=!1,d())},k.onMouseleave=()=>{a=!1,m()}),k});fe(r,k=>{var T;k&&(e.openOnHover&&!a&&(!c.value||!l)||c.value&&!l&&(!e.openOnHover||!a))&&!((T=s.value)!=null&&T.contains(document.activeElement))&&(n.value=!1)}),fe(n,k=>{k||setTimeout(()=>{g.value=void 0})},{flush:"post"});const b=fo();_t(()=>{b.value&&qe(()=>{o.value=b.el})});const _=fo(),O=M(()=>e.target==="cursor"&&g.value?g.value:_.value?_.el:Cd(e.target,i)||o.value),A=M(()=>Array.isArray(O.value)?void 0:O.value);let D;return fe(()=>!!e.activator,k=>{k&&Te?(D=or(),D.run(()=>{Hb(e,i,{activatorEl:o,activatorEvents:E})})):D&&D.stop()},{flush:"post",immediate:!0}),lt(()=>{D==null||D.stop()}),{activatorEl:o,activatorRef:b,target:O,targetEl:A,targetRef:_,activatorEvents:E,contentEvents:p,scrimEvents:S}}function Hb(e,t,n){let{activatorEl:r,activatorEvents:s}=n;fe(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=a(u);c&&o(c)}l&&qe(()=>i())},{immediate:!0}),fe(()=>e.activatorProps,()=>{i()}),lt(()=>{o()});function i(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Lg(l,ke(s.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Mg(l,ke(s.value,u))}function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=Cd(l,t);return r.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,r.value}}function Cd(e,t){var r,s;if(!e)return;let n;if(e==="parent"){let i=(s=(r=t==null?void 0:t.proxy)==null?void 0:r.$el)==null?void 0:s.parentNode;for(;i!=null&&i.hasAttribute("data-no-activator");)i=i.parentNode;n=i}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}const jb=Z({retainFocus:Boolean,captureFocus:Boolean,disableInitialFocus:Boolean},"focusTrap"),Ao=new Map;function Wb(e){const t=document.activeElement;if(e.key!=="Tab"||!t)return;const n=Array.from(Ao.values()).filter(u=>{var d;let{isActive:c,contentEl:f}=u;return c.value&&((d=f.value)==null?void 0:d.contains(t))}).map(u=>u.contentEl.value);let r,s=t.parentElement;for(;s;){if(n.includes(s)){r=s;break}s=s.parentElement}if(!r)return;const i=Hr(r).filter(u=>u.tabIndex>=0);if(!i.length)return;const o=document.activeElement;if(i.length===1&&i[0].classList.contains("v-list")&&i[0].contains(o)){e.preventDefault();return}const a=i[0],l=i[i.length-1];e.shiftKey&&(o===a||a.classList.contains("v-list")&&a.contains(o))&&(e.preventDefault(),l.focus()),!e.shiftKey&&(o===l||l.classList.contains("v-list")&&l.contains(o))&&(e.preventDefault(),a.focus())}function Gb(e,t){let{isActive:n,localTop:r,activatorEl:s,contentEl:i}=t;const o=Symbol("trap");fe(()=>e.retainFocus,m=>{m?Ao.set(o,{isActive:n,contentEl:i}):Ao.delete(o)},{immediate:!0});let a=!1,l=-1;async function u(){a=!0,l=window.setTimeout(()=>{a=!1},100)}async function c(m){var E;const g=m.relatedTarget,v=m.target;document.removeEventListener("pointerdown",u),document.removeEventListener("keydown",f),await qe(),n.value&&!a&&g!==v&&i.value&&Qe(r)&&![document,i.value].includes(v)&&!i.value.contains(v)&&((E=Hr(i.value)[0])==null||E.focus())}function f(m){if(m.key==="Tab"&&(document.removeEventListener("keydown",f),n.value&&i.value&&m.target&&!i.value.contains(m.target))){const g=Hr(document.documentElement);if(m.shiftKey&&m.target===g.at(0)||!m.shiftKey&&m.target===g.at(-1)){const v=Hr(i.value);v.length>0&&(m.preventDefault(),v[0].focus())}}}const d=G(()=>n.value&&e.captureFocus&&!e.disableInitialFocus);Te&&fe(d,m=>{m?(document.addEventListener("pointerdown",u),document.addEventListener("focusin",c,{once:!0}),document.addEventListener("keydown",f)):(document.removeEventListener("pointerdown",u),document.removeEventListener("focusin",c),document.removeEventListener("keydown",f))},{immediate:!0}),Ct(()=>{clearTimeout(l),document.removeEventListener("pointerdown",u),document.removeEventListener("focusin",c),document.removeEventListener("keydown",f)}),Te&&document.addEventListener("keydown",Wb)}function Ub(){if(!Te)return le(!1);const{ssr:e}=dp();if(e){const t=le(!1);return yn(()=>{t.value=!0}),t}else return le(!0)}const zb=Z({eager:Boolean},"lazy");function Kb(e,t){const n=le(!1),r=G(()=>n.value||e.eager||t.value);fe(t,()=>n.value=!0);function s(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:s}}function Sa(){const t=Be("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const Cu=Symbol.for("vuetify:stack"),Ir=We([]);function qb(e,t,n){const r=Be("useStack"),s=!n,i=ge(Cu,void 0),o=We({activeChildren:new Set});et(Cu,o);const a=le(Number(Qe(t)));yr(e,()=>{var f;const c=(f=Ir.at(-1))==null?void 0:f[1];a.value=c?c+10:Number(Qe(t)),s&&Ir.push([r.uid,a.value]),i==null||i.activeChildren.add(r.uid),lt(()=>{if(s){const d=ee(Ir).findIndex(m=>m[0]===r.uid);Ir.splice(d,1)}i==null||i.activeChildren.delete(r.uid)})});const l=le(!0);s&&_t(()=>{var f;const c=((f=Ir.at(-1))==null?void 0:f[0])===r.uid;setTimeout(()=>l.value=c)});const u=G(()=>!o.activeChildren.size);return{globalTop:ar(l),localTop:u,stackStyles:G(()=>({zIndex:a.value}))}}function Yb(e){return{teleportTarget:M(()=>{const n=e();if(n===!0||!Te)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let s=[...r.children].find(i=>i.matches(".v-overlay-container"));return s||(s=document.createElement("div"),s.className="v-overlay-container",r.appendChild(s)),s})}}const Ed=Z({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),Jn=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:s,group:i,...o}=e,{component:a=i?Xo:vn,...l}=co(r)?r:{};let u;return co(r)?u=ke(l,Og({disabled:s,group:i}),o):u=ke({name:s||!r?"":r},o),bn(a,u,n)};function Xb(){return!0}function xd(e,t,n){if(!e||Ad(e,n)===!1)return!1;const r=Pf(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const s=(typeof n.value=="object"&&n.value.include||(()=>[]))();return s.push(t),!s.some(i=>i==null?void 0:i.contains(e.target))}function Ad(e,t){return(typeof t.value=="object"&&t.value.closeConditional||Xb)(e)}function Zb(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&xd(e,t,n)&&setTimeout(()=>{Ad(e,n)&&r&&r(e)},0)}function Eu(e,t){const n=Pf(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const xu={mounted(e,t){const n=s=>Zb(s,e,t),r=s=>{e._clickOutside.lastMousedownWasOutside=xd(s,e,t)};Eu(e,s=>{s.addEventListener("click",n,!0),s.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(Eu(e,n=>{var i;if(!n||!((i=e._clickOutside)!=null&&i[t.instance.$.uid]))return;const{onClick:r,onMousedown:s}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",s,!0)}),delete e._clickOutside[t.instance.$.uid])}};function Jb(e){const{modelValue:t,color:n,...r}=e;return I(vn,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&q("div",ke({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const wa=Z({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...Bb(),...Me(),..._r(),...zb(),...xb(),...Ob(),...jb(),...vt(),...Ed()},"VOverlay"),Js=ve()({name:"VOverlay",directives:{vClickOutside:xu},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...$n(wa(),["disableInitialFocus"])},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,keydown:e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:s}=t;const i=Be("VOverlay"),o=ue(),a=ue(),l=ue(),u=Zt(e,"modelValue"),c=M({get:()=>u.value,set:w=>{w&&e.disabled||(u.value=w)}}),{themeClasses:f}=Et(e),{rtlClasses:d,isRtl:m}=cs(),{hasContent:g,onAfterLeave:v}=Kb(e,c),E=sr(()=>typeof e.scrim=="string"?e.scrim:null),{globalTop:p,localTop:S,stackStyles:b}=qb(c,()=>e.zIndex,e._disableGlobalStack),{activatorEl:_,activatorRef:O,target:A,targetEl:D,targetRef:k,activatorEvents:T,contentEvents:H,scrimEvents:B}=$b(e,{isActive:c,isTop:S,contentEl:l}),{teleportTarget:x}=Yb(()=>{var $,X,ce;const w=e.attach||e.contained;if(w)return w;const F=(($=_==null?void 0:_.value)==null?void 0:$.getRootNode())||((ce=(X=i.proxy)==null?void 0:X.$el)==null?void 0:ce.getRootNode());return F instanceof ShadowRoot?F:!1}),{dimensionStyles:N}=Cr(e),j=Ub(),{scopeId:Y}=Sa();fe(()=>e.disabled,w=>{w&&(c.value=!1)});const{contentStyles:se,updateLocation:J}=Ab(e,{isRtl:m,contentEl:l,target:A,isActive:c});Rb(e,{root:o,contentEl:l,targetEl:D,target:A,isActive:c,updateLocation:J});function te(w){s("click:outside",w),e.persistent?Ge():c.value=!1}function Oe(w){return c.value&&S.value&&(!e.scrim||w.target===a.value||w instanceof MouseEvent&&w.shadowTarget===a.value)}Gb(e,{isActive:c,localTop:S,contentEl:l,activatorEl:_}),Te&&fe(c,w=>{w?window.addEventListener("keydown",me):window.removeEventListener("keydown",me)},{immediate:!0}),Ct(()=>{Te&&window.removeEventListener("keydown",me)});function me(w){var F,$,X;w.key==="Escape"&&p.value&&((F=l.value)!=null&&F.contains(document.activeElement)||s("keydown",w),e.persistent?Ge():(c.value=!1,($=l.value)!=null&&$.contains(document.activeElement)&&((X=_.value)==null||X.focus())))}function Ae(w){w.key==="Escape"&&!p.value||s("keydown",w)}const Se=gb();yr(()=>e.closeOnBack,()=>{vb(Se,w=>{p.value&&c.value?(w(!1),e.persistent?Ge():c.value=!1):w()})});const Ne=ue();fe(()=>c.value&&(e.absolute||e.contained)&&x.value==null,w=>{if(w){const F=cv(o.value);F&&F!==document.scrollingElement&&(Ne.value=F.scrollTop)}});function Ge(){e.noClickAnimation||l.value&&Pn(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:go})}function nt(){s("afterEnter")}function $e(){v(),s("afterLeave")}return Ie(()=>{var w;return q(Pe,null,[(w=n.activator)==null?void 0:w.call(n,{isActive:c.value,targetRef:k,props:ke({ref:O},T.value,e.activatorProps)}),j.value&&g.value&&I(jm,{disabled:!x.value,to:x.value},{default:()=>[q("div",ke({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},f.value,d.value,e.class],style:[b.value,{"--v-overlay-opacity":e.opacity,top:ie(Ne.value)},e.style],ref:o,onKeydown:Ae},Y,r),[I(Jb,ke({color:E,modelValue:c.value&&!!e.scrim,ref:a},B.value),null),I(Jn,{appear:!0,persisted:!0,transition:e.transition,target:A.value,onAfterEnter:nt,onAfterLeave:$e},{default:()=>{var F;return[Vn(q("div",ke({ref:l,class:["v-overlay__content",e.contentClass],style:[N.value,se.value]},H.value,e.contentProps),[(F=n.default)==null?void 0:F.call(n,{isActive:c})]),[[Yo,c.value],[xu,{handler:te,closeConditional:Oe,include:()=>[_.value]}]])]}})])]})])}),{activatorEl:_,scrimEl:a,target:A,animateClick:Ge,contentEl:l,rootEl:o,globalTop:p,localTop:S,updateLocation:J}}}),Ki=Symbol("Forwarded refs");function qi(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function kd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rt.value=e())}function i(o){const a=o?getComputedStyle(o):{transitionDuration:.2},l=parseFloat(a.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const u=performance.now();n=window.setInterval(()=>{const c=performance.now()-u+l;t.value=Math.max(e()-c,0),t.value<=0&&r()},l)}return lt(r),{clear:r,time:t,start:i,reset:s}}const e0=Z({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...Si({location:"bottom"}),...ga(),...sn(),...jn(),...vt(),...$n(wa({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","retainFocus","captureFocus","disableInitialFocus","scrim","scrollStrategy","stickToTarget","viewportMargin"])},"VSnackbar"),t0=ve()({name:"VSnackbar",props:e0(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Zt(e,"modelValue"),{positionClasses:s}=va(e),{scopeId:i}=Sa(),{themeClasses:o}=Et(e),{colorClasses:a,colorStyles:l,variantClasses:u}=gs(e),{roundedClasses:c}=on(e),f=Qb(()=>Number(e.timeout)),d=ue(),m=ue(),g=le(!1),v=le(0),E=ue(),p=ge(ts,void 0);yr(()=>!!p,()=>{const B=xp();_t(()=>{E.value=B.mainStyles.value})}),fe(r,b),fe(()=>e.timeout,b),yn(()=>{r.value&&b()});let S=-1;function b(){f.reset(),window.clearTimeout(S);const B=Number(e.timeout);if(!r.value||B===-1)return;const x=Jo(m.value);f.start(x),S=window.setTimeout(()=>{r.value=!1},B)}function _(){f.reset(),window.clearTimeout(S)}function O(){g.value=!0,_()}function A(){g.value=!1,b()}function D(B){v.value=B.touches[0].clientY}function k(B){Math.abs(v.value-B.changedTouches[0].clientY)>50&&(r.value=!1)}function T(){g.value&&A()}const H=M(()=>e.location.split(" ").reduce((B,x)=>(B[`v-snackbar--${x}`]=!0,B),{}));return Ie(()=>{const B=Js.filterProps(e),x=!!(n.default||n.text||e.text);return I(Js,ke({ref:d,class:["v-snackbar",{"v-snackbar--active":r.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},H.value,s.value,e.class],style:[E.value,e.style]},B,{modelValue:r.value,"onUpdate:modelValue":N=>r.value=N,contentProps:ke({class:["v-snackbar__wrapper",o.value,a.value,c.value,u.value],style:[l.value],onPointerenter:O,onPointerleave:A},B.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:D,onTouchend:k,onAfterLeave:T},i),{default:()=>{var N,j;return[hs(!1,"v-snackbar"),e.timer&&!g.value&&q("div",{key:"timer",class:"v-snackbar__timer"},[I(cd,{ref:m,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,modelValue:f.time.value},null)]),x&&q("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((N=n.text)==null?void 0:N.call(n))??e.text,(j=n.default)==null?void 0:j.call(n)]),n.actions&&I(wt,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[q("div",{class:"v-snackbar__actions"},[n.actions({isActive:r})])]})]},activator:n.activator})}),kd({},d)}}),n0=li({name:"GlobalMessage",setup(){var i;const e=ue(!1),t=ue(null),n={success:"mdi-check-circle",error:"mdi-alert-circle",warning:"mdi-alert",info:"mdi-information"},r={success:"success",error:"error",warning:"warning",info:"info"},s=(i=Xn==null?void 0:Xn.onSnackbar)==null?void 0:i.call(Xn,async o=>{o&&(e.value&&(e.value=!1,await qe()),t.value=o,e.value=!0)});return Ct(()=>s==null?void 0:s()),{snackbar:e,message:t,icons:n,colors:r}}}),r0={class:"d-flex align-center"},s0={class:"text-subtitle-2 font-weight-medium"},i0={key:0,class:"text-body-2"};function o0(e,t,n,r,s,i){var o;return bt(),$t(t0,{modelValue:e.snackbar,"onUpdate:modelValue":t[1]||(t[1]=a=>e.snackbar=a),color:e.colors[(o=e.message)==null?void 0:o.type]||e.colors.info,timeout:2e3,location:"top right","multi-line":"",variant:"tonal"},{actions:je(()=>[I(Sd,{icon:"mdi-close",variant:"text",onClick:t[0]||(t[0]=a=>e.snackbar=!1)})]),default:je(()=>{var a,l,u,c;return[q("div",r0,[I(Wt,{icon:e.icons[(a=e.message)==null?void 0:a.type]||e.icons.info,class:"mr-2"},null,8,["icon"]),q("div",null,[q("div",s0,xt((l=e.message)==null?void 0:l.title),1),(u=e.message)!=null&&u.content?(bt(),Jc("div",i0,xt((c=e.message)==null?void 0:c.content),1)):io("",!0)])])]}),_:1},8,["modelValue","color"])}const Td=id(n0,[["render",o0]]),a0=Z({...Me(),...tt()},"VCardActions"),Pd=ve()({name:"VCardActions",props:a0(),setup(e,t){let{slots:n}=t;return hi({VBtn:{slim:!0,variant:"text"}}),Ie(()=>I(e.tag,{class:he(["v-card-actions",e.class]),style:xe(e.style)},n)),{}}}),l0=Z({opacity:[Number,String],...Me(),...tt()},"VCardSubtitle"),u0=ve()({name:"VCardSubtitle",props:l0(),setup(e,t){let{slots:n}=t;return Ie(()=>I(e.tag,{class:he(["v-card-subtitle",e.class]),style:xe([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),Id=sa("v-card-title");function c0(e){return{aspectStyles:M(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const Od=Z({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Me(),..._r()},"VResponsive"),Au=ve()({name:"VResponsive",props:Od(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=c0(e),{dimensionStyles:s}=Cr(e);return Ie(()=>{var i;return q("div",{class:he(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:xe([s.value,e.style])},[q("div",{class:"v-responsive__sizer",style:xe(r.value)},null),(i=n.additional)==null?void 0:i.call(n),n.default&&q("div",{class:he(["v-responsive__content",e.contentClass])},[n.default()])])}),{}}});function f0(e,t){if(!Zo)return;const n=t.modifiers||{},r=t.value,{handler:s,options:i}=typeof r=="object"?r:{handler:r,options:{}},o=new IntersectionObserver(function(){var f;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=(f=e._observe)==null?void 0:f[t.instance.$.uid];if(!u)return;const c=a.some(d=>d.isIntersecting);s&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&s(c,a,l),c&&n.once?Rd(e,t):u.init=!0},i);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function Rd(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const ku={mounted:f0,unmounted:Rd},d0=Z({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...Od(),...Me(),...sn(),...Ed()},"VImg"),Dd=ve()({name:"VImg",directives:{vIntersect:ku},props:d0(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:s,backgroundColorStyles:i}=sr(()=>e.color),{roundedClasses:o}=on(e),a=Be("VImg"),l=le(""),u=ue(),c=le(e.eager?"loading":"idle"),f=le(),d=le(),m=M(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),g=M(()=>m.value.aspect||f.value/d.value||0);fe(()=>e.src,()=>{v(c.value!=="idle")}),fe(g,(x,N)=>{!x&&N&&u.value&&_(u.value)}),fi(()=>v());function v(x){if(!(e.eager&&x)&&!(Zo&&!x&&!e.eager)){if(c.value="loading",m.value.lazySrc){const N=new Image;N.src=m.value.lazySrc,_(N,null)}m.value.src&&qe(()=>{var N;n("loadstart",((N=u.value)==null?void 0:N.currentSrc)||m.value.src),setTimeout(()=>{var j;if(!a.isUnmounted)if((j=u.value)!=null&&j.complete){if(u.value.naturalWidth||p(),c.value==="error")return;g.value||_(u.value,null),c.value==="loading"&&E()}else g.value||_(u.value),S()})})}}function E(){var x;a.isUnmounted||(S(),_(u.value),c.value="loaded",n("load",((x=u.value)==null?void 0:x.currentSrc)||m.value.src))}function p(){var x;a.isUnmounted||(c.value="error",n("error",((x=u.value)==null?void 0:x.currentSrc)||m.value.src))}function S(){const x=u.value;x&&(l.value=x.currentSrc||x.src)}let b=-1;Ct(()=>{clearTimeout(b)});function _(x){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const j=()=>{if(clearTimeout(b),a.isUnmounted)return;const{naturalHeight:Y,naturalWidth:se}=x;Y||se?(f.value=se,d.value=Y):!x.complete&&c.value==="loading"&&N!=null?b=window.setTimeout(j,N):(x.currentSrc.endsWith(".svg")||x.currentSrc.startsWith("data:image/svg+xml"))&&(f.value=1,d.value=1)};j()}const O=G(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),A=()=>{var j;if(!m.value.src||c.value==="idle")return null;const x=q("img",{class:he(["v-img__img",O.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:m.value.src,srcset:m.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:E,onError:p},null),N=(j=r.sources)==null?void 0:j.call(r);return I(Jn,{transition:e.transition,appear:!0},{default:()=>[Vn(N?q("picture",{class:"v-img__picture"},[N,x]):x,[[Yo,c.value==="loaded"]])]})},D=()=>I(Jn,{transition:e.transition},{default:()=>[m.value.lazySrc&&c.value!=="loaded"&&q("img",{class:he(["v-img__img","v-img__img--preload",O.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:m.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),k=()=>r.placeholder?I(Jn,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!r.error)&&q("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,T=()=>r.error?I(Jn,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&q("div",{class:"v-img__error"},[r.error()])]}):null,H=()=>e.gradient?q("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,B=le(!1);{const x=fe(g,N=>{N&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{B.value=!0})}),x())})}return Ie(()=>{const x=Au.filterProps(e);return Vn(I(Au,ke({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!B.value},s.value,o.value,e.class],style:[{width:ie(e.width==="auto"?f.value:e.width)},i.value,e.style]},x,{aspectRatio:g.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>q(Pe,null,[I(A,null,null),I(D,null,null),I(H,null,null),I(k,null,null),I(T,null,null)]),default:r.default}),[[ku,{handler:v,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:f,naturalHeight:d}}}),m0=Z({start:Boolean,end:Boolean,icon:Ke,image:String,text:String,...br(),...Me(),...Hn(),...sn(),...yi(),...tt(),...vt(),...jn({variant:"flat"})},"VAvatar"),Qs=ve()({name:"VAvatar",props:m0(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Et(e),{borderClasses:s}=Sr(e),{colorClasses:i,colorStyles:o,variantClasses:a}=gs(e),{densityClasses:l}=wr(e),{roundedClasses:u}=on(e),{sizeClasses:c,sizeStyles:f}=bi(e);return Ie(()=>I(e.tag,{class:he(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,s.value,i.value,l.value,u.value,c.value,a.value,e.class]),style:xe([o.value,f.value,e.style])},{default:()=>[n.default?I(wt,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?I(Dd,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?I(Wt,{key:"icon",icon:e.icon},null):e.text,hs(!1,"v-avatar")]})),{}}}),h0=Z({appendAvatar:String,appendIcon:Ke,prependAvatar:String,prependIcon:Ke,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...Me(),...Hn(),...tt()},"VCardItem"),g0=ve()({name:"VCardItem",props:h0(),setup(e,t){let{slots:n}=t;return Ie(()=>{const r=!!(e.prependAvatar||e.prependIcon),s=!!(r||n.prepend),i=!!(e.appendAvatar||e.appendIcon),o=!!(i||n.append),a=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return I(e.tag,{class:he(["v-card-item",e.class]),style:xe(e.style)},{default:()=>{var u;return[s&&q("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?I(wt,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):q(Pe,null,[e.prependAvatar&&I(Qs,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&I(Wt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),q("div",{class:"v-card-item__content"},[a&&I(Id,{key:"title"},{default:()=>{var c;return[((c=n.title)==null?void 0:c.call(n))??xt(e.title)]}}),l&&I(u0,{key:"subtitle"},{default:()=>{var c;return[((c=n.subtitle)==null?void 0:c.call(n))??xt(e.subtitle)]}}),(u=n.default)==null?void 0:u.call(n)]),o&&q("div",{key:"append",class:"v-card-item__append"},[n.append?I(wt,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):q(Pe,null,[e.appendIcon&&I(Wt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&I(Qs,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]}})}),{}}}),v0=Z({opacity:[Number,String],...Me(),...tt()},"VCardText"),ko=ve()({name:"VCardText",props:v0(),setup(e,t){let{slots:n}=t;return Ie(()=>I(e.tag,{class:he(["v-card-text",e.class]),style:xe([{"--v-card-text-opacity":e.opacity},e.style])},n)),{}}}),p0=Z({appendAvatar:String,appendIcon:Ke,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Ke,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...br(),...Me(),...Hn(),..._r(),...ds(),...fd(),...Si(),...ga(),...sn(),...ya(),...tt(),...vt(),...jn({variant:"elevated"})},"VCard"),Tu=ve()({name:"VCard",directives:{vRipple:is},props:p0(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=Et(e),{borderClasses:i}=Sr(e),{colorClasses:o,colorStyles:a,variantClasses:l}=gs(e),{densityClasses:u}=wr(e),{dimensionStyles:c}=Cr(e),{elevationClasses:f}=ms(e),{loaderClasses:d}=dd(e),{locationStyles:m}=ha(e),{positionClasses:g}=va(e),{roundedClasses:v}=on(e),E=pa(e,n),p=le(void 0);return fe(()=>e.loading,(S,b)=>{p.value=!S&&typeof b=="string"?b:typeof S=="boolean"?void 0:S},{immediate:!0}),Ie(()=>{const S=e.link!==!1&&E.isLink.value,b=!e.disabled&&e.link!==!1&&(e.link||E.isClickable.value),_=S?"a":e.tag,O=!!(r.title||e.title!=null),A=!!(r.subtitle||e.subtitle!=null),D=O||A,k=!!(r.append||e.appendAvatar||e.appendIcon),T=!!(r.prepend||e.prependAvatar||e.prependIcon),H=!!(r.image||e.image),B=D||T||k,x=!!(r.text||e.text!=null);return Vn(I(_,ke(E.linkProps,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":b},s.value,i.value,o.value,u.value,f.value,d.value,g.value,v.value,l.value,e.class],style:[a.value,c.value,m.value,e.style],onClick:b&&E.navigate,tabindex:e.disabled?-1:void 0}),{default:()=>{var N;return[H&&q("div",{key:"image",class:"v-card__image"},[r.image?I(wt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):I(Dd,{key:"image-img",cover:!0,src:e.image},null)]),I(db,{name:"v-card",active:!!e.loading,color:p.value},{default:r.loader}),B&&I(g0,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),x&&I(ko,{key:"text"},{default:()=>{var j;return[((j=r.text)==null?void 0:j.call(r))??e.text]}}),(N=r.default)==null?void 0:N.call(r),r.actions&&I(Pd,null,{default:r.actions}),hs(b,"v-card")]}}),[[is,b&&e.ripple]])}),{}}}),y0=Z({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function pt(e,t,n){return ve()({name:e,props:y0({mode:n,origin:t}),setup(r,s){let{slots:i}=s;const o={onBeforeEnter(a){r.origin&&(a.style.transformOrigin=r.origin)},onLeave(a){if(r.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:f}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${l}px`,a.style.left=`${u}px`,a.style.width=`${c}px`,a.style.height=`${f}px`}r.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(r.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:l,top:u,left:c,width:f,height:d}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=l||"",a.style.top=u||"",a.style.left=c||"",a.style.width=f||"",a.style.height=d||""}}};return()=>{const a=r.group?Xo:vn;return bn(a,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:o},i.default)}}})}function Ld(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return ve()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:Xr()},group:Boolean},setup(r,s){let{slots:i}=s;const o=r.group?Xo:vn;return()=>bn(o,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},i.default)}})}function Md(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=at(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const a=o._initialStyle;if(!a)return;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const l=`${o[r]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=a.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=l})},onAfterEnter:i,onEnterCancelled:i,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[r]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:s,onLeaveCancelled:s};function s(o){e&&o._parent&&o._parent.classList.remove(e),i(o)}function i(o){if(!o._initialStyle)return;const a=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,a!=null&&(o.style[n]=a),delete o._initialStyle}}const b0=Z({target:[Object,Array]},"v-dialog-transition"),Yi=new WeakMap,S0=ve()({name:"VDialogTransition",props:b0(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(s){s.style.pointerEvents="none",s.style.visibility="hidden"},async onEnter(s,i){var d;await new Promise(m=>requestAnimationFrame(m)),await new Promise(m=>requestAnimationFrame(m)),s.style.visibility="";const o=Iu(e.target,s),{x:a,y:l,sx:u,sy:c,speed:f}=o;if(Yi.set(s,o),Xr())Pn(s,[{opacity:0},{}],{duration:125*f,easing:Ml}).finished.then(()=>i());else{const m=Pn(s,[{transform:`translate(${a}px, ${l}px) scale(${u}, ${c})`,opacity:0},{}],{duration:225*f,easing:Ml});(d=Pu(s))==null||d.forEach(g=>{Pn(g,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*f,easing:go})}),m.finished.then(()=>i())}},onAfterEnter(s){s.style.removeProperty("pointer-events")},onBeforeLeave(s){s.style.pointerEvents="none"},async onLeave(s,i){var d;await new Promise(m=>requestAnimationFrame(m));let o;!Yi.has(s)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?o=Iu(e.target,s):o=Yi.get(s);const{x:a,y:l,sx:u,sy:c,speed:f}=o;Xr()?Pn(s,[{},{opacity:0}],{duration:85*f,easing:Nl}).finished.then(()=>i()):(Pn(s,[{},{transform:`translate(${a}px, ${l}px) scale(${u}, ${c})`,opacity:0}],{duration:125*f,easing:Nl}).finished.then(()=>i()),(d=Pu(s))==null||d.forEach(g=>{Pn(g,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*f,easing:go})}))},onAfterLeave(s){s.style.removeProperty("pointer-events")}};return()=>e.target?I(vn,ke({name:"dialog-transition"},r,{css:!1}),n):I(vn,{name:"dialog-transition"},n)}});function Pu(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function Iu(e,t){const n=_f(e),r=Cf(t),[s,i]=getComputedStyle(t).transformOrigin.split(" ").map(p=>parseFloat(p)),[o,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;o==="left"||a==="left"?l-=n.width/2:(o==="right"||a==="right")&&(l+=n.width/2);let u=n.top+n.height/2;o==="top"||a==="top"?u-=n.height/2:(o==="bottom"||a==="bottom")&&(u+=n.height/2);const c=n.width/r.width,f=n.height/r.height,d=Math.max(1,c,f),m=c/d||0,g=f/d||0,v=r.width*r.height/(window.innerWidth*window.innerHeight),E=v>.12?Math.min(1.5,(v-.12)*10+1):1;return{x:l-(s+r.left),y:u-(i+r.top),sx:m,sy:g,speed:E}}pt("fab-transition","center center","out-in");pt("dialog-bottom-transition");pt("dialog-top-transition");const HS=pt("fade-transition"),jS=pt("scale-transition");pt("scroll-x-transition");pt("scroll-x-reverse-transition");pt("scroll-y-transition");pt("scroll-y-reverse-transition");pt("slide-x-transition");const WS=pt("slide-x-reverse-transition"),GS=pt("slide-y-transition");pt("slide-y-reverse-transition");const w0=Ld("expand-transition",Md()),US=Ld("expand-x-transition",Md("",!0)),_0=Z({fullscreen:Boolean,scrollable:Boolean,...$n(wa({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:S0},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),C0=ve()({name:"VDialog",props:_0(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=Zt(e,"modelValue"),{scopeId:i}=Sa(),o=ue();function a(){var u;n("afterEnter"),(e.scrim||e.retainFocus)&&((u=o.value)!=null&&u.contentEl)&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function l(){n("afterLeave")}return fe(s,async u=>{var c;u||(await qe(),(c=o.value.activatorEl)==null||c.focus({preventScroll:!0}))}),Ie(()=>{const u=Js.filterProps(e),c=ke({"aria-haspopup":"dialog"},e.activatorProps),f=ke({tabindex:-1},e.contentProps);return I(Js,ke({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},u,{modelValue:s.value,"onUpdate:modelValue":d=>s.value=d,"aria-modal":"true",activatorProps:c,contentProps:f,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:a,onAfterLeave:l},i),{activator:r.activator,default:function(){for(var d=arguments.length,m=new Array(d),g=0;g{var v;return[(v=r.default)==null?void 0:v.call(r,...m)]}})}})}),kd({},o)}}),E0=["dotted","dashed","solid","double"],x0=Z({color:String,contentOffset:[Number,String,Array],gradient:Boolean,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,variant:{type:String,default:"solid",validator:e=>E0.includes(e)},...Me(),...vt()},"VDivider"),Nd=ve()({name:"VDivider",props:x0(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=Et(e),{textColorClasses:i,textColorStyles:o}=hr(()=>e.color),a=M(()=>{const u={};return e.length&&(u[e.vertical?"height":"width"]=ie(e.length)),e.thickness&&(u[e.vertical?"borderRightWidth":"borderTopWidth"]=ie(e.thickness)),u}),l=G(()=>{const u=Array.isArray(e.contentOffset)?e.contentOffset[0]:e.contentOffset,c=Array.isArray(e.contentOffset)?e.contentOffset[1]:0;return{marginBlock:e.vertical&&u?ie(u):void 0,marginInline:!e.vertical&&u?ie(u):void 0,transform:c?`translate${e.vertical?"X":"Y"}(${ie(c)})`:void 0}});return Ie(()=>{const u=q("hr",{class:he([{"v-divider":!0,"v-divider--gradient":e.gradient&&!r.default,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},s.value,i.value,e.class]),style:xe([a.value,o.value,{"--v-border-opacity":e.opacity},{"border-style":e.variant},e.style]),"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?q("div",{class:he(["v-divider__wrapper",{"v-divider__wrapper--gradient":e.gradient,"v-divider__wrapper--inset":e.inset,"v-divider__wrapper--vertical":e.vertical}])},[u,q("div",{class:"v-divider__content",style:xe(l.value)},[r.default()]),u]):u}),{}}}),A0=sa("v-spacer","div","VSpacer"),To=Symbol.for("vuetify:list");function Vd(){let{filterable:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filterable:!1};const t=ge(To,{filterable:!1,hasPrepend:le(!1),updateHasPrepend:()=>null}),n={filterable:t.filterable||e,hasPrepend:le(!1),updateHasPrepend:r=>{r&&(n.hasPrepend.value=r)}};return et(To,n),t}function Fd(){return ge(To,null)}const _a=e=>{const t={activate:n=>{let{id:r,value:s,activated:i}=n;return r=ee(r),e&&!s&&i.size===1&&i.has(r)||(s?i.add(r):i.delete(r)),i},in:(n,r,s)=>{let i=new Set;if(n!=null)for(const o of ea(n))i=t.activate({id:o,value:!0,activated:new Set(i),children:r,parents:s});return i},out:n=>Array.from(n)};return t},Bd=e=>{const t=_a(e);return{activate:r=>{let{activated:s,id:i,...o}=r;i=ee(i);const a=s.has(i)?new Set([i]):new Set;return t.activate({...o,id:i,activated:a})},in:(r,s,i)=>{let o=new Set;if(r!=null){const a=ea(r);a.length&&(o=t.in(a.slice(0,1),s,i))}return o},out:(r,s,i)=>t.out(r,s,i)}},k0=e=>{const t=_a(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=ee(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},T0=e=>{const t=Bd(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=ee(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},P0={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){const i=new Set;i.add(t);let o=s.get(t);for(;o!=null;)i.add(o),o=s.get(o);return i}else return r.delete(t),r},select:()=>null},$d={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){let i=s.get(t);for(r.add(t);i!=null&&i!==t;)r.add(i),i=s.get(i);return r}else r.delete(t);return r},select:()=>null},I0={open:$d.open,select:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(!n)return r;const i=[];let o=s.get(t);for(;o!=null;)i.push(o),o=s.get(o);return new Set(i)}},Ca=e=>{const t={select:n=>{let{id:r,value:s,selected:i}=n;if(r=ee(r),e&&!s){const o=Array.from(i.entries()).reduce((a,l)=>{let[u,c]=l;return c==="on"&&a.push(u),a},[]);if(o.length===1&&o[0]===r)return i}return i.set(r,s?"on":"off"),i},in:(n,r,s,i)=>{const o=new Map;for(const a of n||[])t.select({id:a,value:!0,selected:o,children:r,parents:s,disabled:i});return o},out:n=>{const r=[];for(const[s,i]of n.entries())i==="on"&&r.push(s);return r}};return t},Hd=e=>{const t=Ca(e);return{select:r=>{let{selected:s,id:i,...o}=r;i=ee(i);const a=s.has(i)?new Map([[i,s.get(i)]]):new Map;return t.select({...o,id:i,selected:a})},in:(r,s,i,o)=>r!=null&&r.length?t.in(r.slice(0,1),s,i,o):new Map,out:(r,s,i)=>t.out(r,s,i)}},O0=e=>{const t=Ca(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=ee(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},R0=e=>{const t=Hd(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=ee(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},jd=e=>{const t={select:n=>{let{id:r,value:s,selected:i,children:o,parents:a,disabled:l}=n;r=ee(r);const u=new Map(i),c=[r];for(;c.length;){const d=c.shift();l.has(d)||i.set(ee(d),s?"on":"off"),o.has(d)&&c.push(...o.get(d))}let f=ee(a.get(r));for(;f;){let d=!0,m=!0;for(const g of o.get(f)){const v=ee(g);if(!l.has(v)&&(i.get(v)!=="on"&&(d=!1),i.has(v)&&i.get(v)!=="off"&&(m=!1),!d&&!m))break}i.set(f,d?"on":m?"off":"indeterminate"),f=ee(a.get(f))}return e&&!s&&Array.from(i.entries()).reduce((m,g)=>{let[v,E]=g;return E==="on"&&m.push(v),m},[]).length===0?u:i},in:(n,r,s,i)=>{let o=new Map;for(const a of n||[])o=t.select({id:a,value:!0,selected:o,children:r,parents:s,disabled:i});return o},out:(n,r)=>{const s=[];for(const[i,o]of n.entries())o==="on"&&!r.has(i)&&s.push(i);return s}};return t},D0=e=>{const t=jd(e);return{select:t.select,in:t.in,out:(r,s,i)=>{const o=[];for(const[a,l]of r.entries())if(l==="on"){if(i.has(a)){const u=i.get(a);if(r.get(u)==="on")continue}o.push(a)}return o}}},gr=Symbol.for("vuetify:nested"),Wd={id:le(),root:{itemsRegistration:ue("render"),register:()=>null,unregister:()=>null,children:ue(new Map),parents:ue(new Map),disabled:ue(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ue(!1),selectable:ue(!1),opened:ue(new Set),activated:ue(new Set),selected:ue(new Map),selectedValues:ue([]),getPath:()=>[]}},L0=Z({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean,itemsRegistration:{type:String,default:"render"}},"nested"),M0=(e,t,n)=>{let r=!1;const s=le(new Map),i=le(new Map),o=le(new Set),a=Zt(e,"opened",e.opened,b=>new Set(Array.isArray(b)?b.map(_=>ee(_)):b),b=>[...b.values()]),l=M(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return k0(e.mandatory);case"single-leaf":return T0(e.mandatory);case"independent":return _a(e.mandatory);case"single-independent":default:return Bd(e.mandatory)}}),u=M(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return R0(e.mandatory);case"leaf":return O0(e.mandatory);case"independent":return Ca(e.mandatory);case"single-independent":return Hd(e.mandatory);case"trunk":return D0(e.mandatory);case"classic":default:return jd(e.mandatory)}}),c=M(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return I0;case"single":return P0;case"multiple":default:return $d}}),f=Zt(e,"activated",e.activated,b=>l.value.in(b,s.value,i.value),b=>l.value.out(b,s.value,i.value)),d=Zt(e,"selected",e.selected,b=>u.value.in(b,s.value,i.value,o.value),b=>u.value.out(b,s.value,i.value));Ct(()=>{r=!0});function m(b){const _=[];let O=ee(b);for(;O!==void 0;)_.unshift(O),O=i.value.get(O);return _}const g=Be("nested"),v=new Set,E=mv(()=>{qe(()=>{s.value=new Map(s.value),i.value=new Map(i.value)})},100);fe(()=>[t.value,Qe(n)],()=>{e.itemsRegistration==="props"&&p()},{immediate:!0});function p(){const b=new Map,_=new Map,O=new Set,A=Qe(n)?T=>ee(T.raw):T=>T.value,D=[...t.value];let k=0;for(;ke.activatable),selectable:G(()=>e.selectable),activated:f,selected:d,selectedValues:M(()=>{const b=[];for(const[_,O]of d.value.entries())O==="on"&&b.push(_);return b}),itemsRegistration:G(()=>e.itemsRegistration),register:(b,_,O,A)=>{if(v.has(b)){m(b).map(String).join(" -> "),m(_).concat(b).map(String).join(" -> ");return}else v.add(b);_&&b!==_&&i.value.set(b,_),O&&o.value.add(b),A&&s.value.set(b,[]),_!=null&&s.value.set(_,[...s.value.get(_)||[],b]),E()},unregister:b=>{if(r)return;v.delete(b),s.value.delete(b),o.value.delete(b);const _=i.value.get(b);if(_){const O=s.value.get(_)??[];s.value.set(_,O.filter(A=>A!==b))}i.value.delete(b),E()},open:(b,_,O)=>{g.emit("click:open",{id:b,value:_,path:m(b),event:O});const A=c.value.open({id:b,value:_,opened:new Set(a.value),children:s.value,parents:i.value,event:O});A&&(a.value=A)},openOnSelect:(b,_,O)=>{const A=c.value.select({id:b,value:_,selected:new Map(d.value),opened:new Set(a.value),children:s.value,parents:i.value,event:O});A&&(a.value=A)},select:(b,_,O)=>{g.emit("click:select",{id:b,value:_,path:m(b),event:O});const A=u.value.select({id:b,value:_,selected:new Map(d.value),children:s.value,parents:i.value,disabled:o.value,event:O});A&&(d.value=A),S.root.openOnSelect(b,_,O)},activate:(b,_,O)=>{if(!e.activatable)return S.root.select(b,!0,O);g.emit("click:activate",{id:b,value:_,path:m(b),event:O});const A=l.value.activate({id:b,value:_,activated:new Set(f.value),children:s.value,parents:i.value,event:O});if(A.size!==f.value.size)f.value=A;else{for(const D of A)if(!f.value.has(D)){f.value=A;return}for(const D of f.value)if(!A.has(D)){f.value=A;return}}},children:s,parents:i,disabled:o,getPath:m}};return et(gr,S),S.root},Gd=(e,t,n)=>{const r=ge(gr,Wd),s=Symbol("nested item"),i=M(()=>{const a=ee(Qe(e));return a!==void 0?a:s}),o={...r,id:i,open:(a,l)=>r.root.open(i.value,a,l),openOnSelect:(a,l)=>r.root.openOnSelect(i.value,a,l),isOpen:M(()=>r.root.opened.value.has(i.value)),parent:M(()=>r.root.parents.value.get(i.value)),activate:(a,l)=>r.root.activate(i.value,a,l),isActivated:M(()=>r.root.activated.value.has(i.value)),select:(a,l)=>r.root.select(i.value,a,l),isSelected:M(()=>r.root.selected.value.get(i.value)==="on"),isIndeterminate:M(()=>r.root.selected.value.get(i.value)==="indeterminate"),isLeaf:M(()=>!r.root.children.value.get(i.value)),isGroupActivator:r.isGroupActivator};return fi(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||qe(()=>{r.root.register(i.value,r.id.value,Qe(t),n)})}),Ct(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||r.root.unregister(i.value)}),fe(i,(a,l)=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||(r.root.unregister(l),qe(()=>{r.root.register(a,r.id.value,Qe(t),n)}))}),n&&et(gr,o),o},N0=()=>{const e=ge(gr,Wd);et(gr,{...e,isGroupActivator:!0})};function V0(){const e=le(!1);return yn(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:G(()=>e.value?void 0:{transition:"none !important"}),isBooted:ar(e)}}const F0=pr({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return N0(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),B0=Z({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Ke,default:"$collapse"},disabled:Boolean,expandIcon:{type:Ke,default:"$expand"},rawId:[String,Number],prependIcon:Ke,appendIcon:Ke,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Me(),...tt()},"VListGroup"),Ou=ve()({name:"VListGroup",props:B0(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:s,id:i}=Gd(()=>e.value,()=>e.disabled,!0),o=M(()=>`v-list-group--id-${String(e.rawId??i.value)}`),a=Fd(),{isBooted:l}=V0(),u=ge(gr),c=G(()=>{var v;return((v=u==null?void 0:u.root)==null?void 0:v.itemsRegistration.value)==="render"});function f(v){var E;["INPUT","TEXTAREA"].includes((E=v.target)==null?void 0:E.tagName)||s(!r.value,v)}const d=M(()=>({onClick:f,class:"v-list-group__header",id:o.value})),m=M(()=>r.value?e.collapseIcon:e.expandIcon),g=M(()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&m.value,appendIcon:e.appendIcon||!e.subgroup&&m.value,title:e.title,value:e.value}}));return Ie(()=>I(e.tag,{class:he(["v-list-group",{"v-list-group--prepend":a==null?void 0:a.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class]),style:xe(e.style)},{default:()=>[n.activator&&I(wt,{defaults:g.value},{default:()=>[I(F0,null,{default:()=>[n.activator({props:d.value,isOpen:r.value})]})]}),I(Jn,{transition:{component:w0},disabled:!l.value},{default:()=>{var v,E;return[c.value?Vn(q("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(v=n.default)==null?void 0:v.call(n)]),[[Yo,r.value]]):r.value&&q("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(E=n.default)==null?void 0:E.call(n)])]}})]})),{isOpen:r}}}),$0=Z({opacity:[Number,String],...Me(),...tt()},"VListItemSubtitle"),Ud=ve()({name:"VListItemSubtitle",props:$0(),setup(e,t){let{slots:n}=t;return Ie(()=>I(e.tag,{class:he(["v-list-item-subtitle",e.class]),style:xe([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n)),{}}}),zd=sa("v-list-item-title"),H0=Z({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Ke,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Ke,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,prependGap:[Number,String],subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},value:null,onClick:$r(),onClickOnce:$r(),...br(),...Me(),...Hn(),..._r(),...ds(),...sn(),...ya(),...tt(),...vt(),...jn({variant:"text"})},"VListItem"),Po=ve()({name:"VListItem",directives:{vRipple:is},props:H0(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:s}=t;const i=pa(e,n),o=M(()=>e.value===void 0?i.href.value:e.value),{activate:a,isActivated:l,select:u,isOpen:c,isSelected:f,isIndeterminate:d,isGroupActivator:m,root:g,parent:v,openOnSelect:E,id:p}=Gd(o,()=>e.disabled,!1),S=Fd(),b=M(()=>{var w;return e.active!==!1&&(e.active||((w=i.isActive)==null?void 0:w.value)||(g.activatable.value?l.value:f.value))}),_=G(()=>e.link!==!1&&i.isLink.value),O=M(()=>!!S&&(g.selectable.value||g.activatable.value||e.value!=null)),A=M(()=>!e.disabled&&e.link!==!1&&(e.link||i.isClickable.value||O.value)),D=M(()=>S?_.value?"link":O.value?"option":"listitem":void 0),k=M(()=>{if(O.value)return g.activatable.value?l.value:g.selectable.value?f.value:b.value}),T=G(()=>e.rounded||e.nav),H=G(()=>e.color??e.activeColor),B=G(()=>({color:b.value?H.value??e.baseColor:e.baseColor,variant:e.variant}));fe(()=>{var w;return(w=i.isActive)==null?void 0:w.value},w=>{w&&x()}),fi(()=>{var w;(w=i.isActive)!=null&&w.value&&qe(()=>x())});function x(){v.value!=null&&g.open(v.value,!0),E(!0)}const{themeClasses:N}=Et(e),{borderClasses:j}=Sr(e),{colorClasses:Y,colorStyles:se,variantClasses:J}=gs(B),{densityClasses:te}=wr(e),{dimensionStyles:Oe}=Cr(e),{elevationClasses:me}=ms(e),{roundedClasses:Ae}=on(T),Se=G(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),Ne=G(()=>e.ripple!==void 0&&e.ripple&&(S!=null&&S.filterable)?{keys:["Enter"]}:e.ripple),Ge=M(()=>({isActive:b.value,select:u,isOpen:c.value,isSelected:f.value,isIndeterminate:d.value}));function nt(w){var F,$;s("click",w),!["INPUT","TEXTAREA"].includes((F=w.target)==null?void 0:F.tagName)&&A.value&&(($=i.navigate)==null||$.call(i,w),!m&&(g.activatable.value?a(!l.value,w):(g.selectable.value||e.value!=null&&!_.value)&&u(!f.value,w)))}function $e(w){const F=w.target;["INPUT","TEXTAREA"].includes(F.tagName)||(w.key==="Enter"||w.key===" "&&!(S!=null&&S.filterable))&&(w.preventDefault(),w.stopPropagation(),w.target.dispatchEvent(new MouseEvent("click",w)))}return Ie(()=>{const w=_.value?"a":e.tag,F=r.title||e.title!=null,$=r.subtitle||e.subtitle!=null,X=!!(e.appendAvatar||e.appendIcon),ce=!!(X||r.append),h=!!(e.prependAvatar||e.prependIcon),y=!!(h||r.prepend);return S==null||S.updateHasPrepend(y),e.activeColor&&ff("active-color",["color","base-color"]),Vn(I(w,ke(i.linkProps,{class:["v-list-item",{"v-list-item--active":b.value,"v-list-item--disabled":e.disabled,"v-list-item--link":A.value,"v-list-item--nav":e.nav,"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&b.value},N.value,j.value,Y.value,te.value,me.value,Se.value,Ae.value,J.value,e.class],style:[{"--v-list-prepend-gap":ie(e.prependGap)},se.value,Oe.value,e.style],tabindex:A.value?S?-2:0:void 0,"aria-selected":k.value,role:D.value,onClick:nt,onKeydown:A.value&&!_.value&&$e}),{default:()=>{var C;return[hs(A.value||b.value,"v-list-item"),y&&q("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?I(wt,{key:"prepend-defaults",disabled:!h,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var P;return[(P=r.prepend)==null?void 0:P.call(r,Ge.value)]}}):q(Pe,null,[e.prependAvatar&&I(Qs,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&I(Wt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),q("div",{class:"v-list-item__spacer"},null)]),q("div",{class:"v-list-item__content","data-no-activator":""},[F&&I(zd,{key:"title"},{default:()=>{var P;return[((P=r.title)==null?void 0:P.call(r,{title:e.title}))??xt(e.title)]}}),$&&I(Ud,{key:"subtitle"},{default:()=>{var P;return[((P=r.subtitle)==null?void 0:P.call(r,{subtitle:e.subtitle}))??xt(e.subtitle)]}}),(C=r.default)==null?void 0:C.call(r,Ge.value)]),ce&&q("div",{key:"append",class:"v-list-item__append"},[r.append?I(wt,{key:"append-defaults",disabled:!X,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var P;return[(P=r.append)==null?void 0:P.call(r,Ge.value)]}}):q(Pe,null,[e.appendIcon&&I(Wt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&I(Qs,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),q("div",{class:"v-list-item__spacer"},null)])]}}),[[is,A.value&&Ne.value]])}),{activate:a,isActivated:l,isGroupActivator:m,isSelected:f,list:S,select:u,root:g,id:p,link:i}}}),j0=Z({color:String,inset:Boolean,sticky:Boolean,title:String,...Me(),...tt()},"VListSubheader"),W0=ve()({name:"VListSubheader",props:j0(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:s}=hr(()=>e.color);return Ie(()=>{const i=!!(n.default||e.title);return I(e.tag,{class:he(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class]),style:xe([{textColorStyles:s},e.style])},{default:()=>{var o;return[i&&q("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??e.title])]}})}),{}}}),G0=Z({items:Array,returnObject:Boolean},"VListChildren"),Kd=ve()({name:"VListChildren",props:G0(),setup(e,t){let{slots:n}=t;return Vd(),()=>{var r,s;return((r=n.default)==null?void 0:r.call(n))??((s=e.items)==null?void 0:s.map(i=>{var d,m;let{children:o,props:a,type:l,raw:u}=i;if(l==="divider")return((d=n.divider)==null?void 0:d.call(n,{props:a}))??I(Nd,a,null);if(l==="subheader")return((m=n.subheader)==null?void 0:m.call(n,{props:a}))??I(W0,a,null);const c={subtitle:n.subtitle?g=>{var v;return(v=n.subtitle)==null?void 0:v.call(n,{...g,item:u})}:void 0,prepend:n.prepend?g=>{var v;return(v=n.prepend)==null?void 0:v.call(n,{...g,item:u})}:void 0,append:n.append?g=>{var v;return(v=n.append)==null?void 0:v.call(n,{...g,item:u})}:void 0,title:n.title?g=>{var v;return(v=n.title)==null?void 0:v.call(n,{...g,item:u})}:void 0},f=Ou.filterProps(a);return o?I(Ou,ke(f,{value:e.returnObject?u:a==null?void 0:a.value,rawId:a==null?void 0:a.value}),{activator:g=>{let{props:v}=g;const E=ke(a,v,{value:e.returnObject?u:a.value});return n.header?n.header({props:E}):I(Po,E,c)},default:()=>I(Kd,{items:o,returnObject:e.returnObject},n)}):n.item?n.item({props:a}):I(Po,ke(a,{value:e.returnObject?u:a.value}),c)}))}}}),U0=Z({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},itemType:{type:[Boolean,String,Array,Function],default:"type"},returnObject:Boolean,valueComparator:Function},"list-items"),z0=new Set(["item","divider","subheader"]);function ir(e,t){const n=Bt(t,e.itemTitle,t),r=Bt(t,e.itemValue,n),s=Bt(t,e.itemChildren),i=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?$n(t,["children"]):t:void 0:Bt(t,e.itemProps);let o=Bt(t,e.itemType,"item");z0.has(o)||(o="item");const a={title:n,value:r,...i};return{type:o,title:String(a.title??""),value:a.value,props:a,children:o==="item"&&Array.isArray(s)?qd(e,s):void 0,raw:t}}ir.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];function qd(e,t){const n=Qo(e,ir.neededProps),r=[];for(const s of t)r.push(ir(n,s));return r}function zS(e){const t=M(()=>qd(e,e.items)),n=M(()=>t.value.some(a=>a.value===null)),r=le(new Map),s=le([]);_t(()=>{const a=t.value,l=new Map,u=[];for(let c=0;c{let{raw:u}=l;return u}):a.map(l=>{let{value:u}=l;return u})}return{items:t,transformIn:i,transformOut:o}}const K0=new Set(["item","divider","subheader"]);function q0(e,t){const n=Bn(t)?t:Bt(t,e.itemTitle),r=Bn(t)?t:Bt(t,e.itemValue,void 0),s=Bt(t,e.itemChildren),i=e.itemProps===!0?$n(t,["children"]):Bt(t,e.itemProps);let o=Bt(t,e.itemType,"item");K0.has(o)||(o="item");const a={title:n,value:r,...i};return{type:o,title:a.title,value:a.value,props:a,children:o==="item"&&s?Yd(e,s):void 0,raw:t}}function Yd(e,t){const n=[];for(const r of t)n.push(q0(e,r));return n}function Y0(e){return{items:M(()=>Yd(e,e.items))}}const X0=Z({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:Ke,collapseIcon:Ke,lines:{type:[Boolean,String],default:"one"},slim:Boolean,prependGap:[Number,String],indent:[Number,String],nav:Boolean,"onClick:open":$r(),"onClick:select":$r(),"onUpdate:opened":$r(),...L0({selectStrategy:"single-leaf",openStrategy:"list"}),...br(),...Me(),...Hn(),..._r(),...ds(),...U0(),...sn(),...tt(),...vt(),...jn({variant:"text"})},"VList"),Z0=ve()({name:"VList",props:X0(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=Y0(e),{themeClasses:s}=Et(e),{backgroundColorClasses:i,backgroundColorStyles:o}=sr(()=>e.bgColor),{borderClasses:a}=Sr(e),{densityClasses:l}=wr(e),{dimensionStyles:u}=Cr(e),{elevationClasses:c}=ms(e),{roundedClasses:f}=on(e),{children:d,open:m,parents:g,select:v,getPath:E}=M0(e,r,()=>e.returnObject),p=G(()=>e.lines?`v-list--${e.lines}-line`:void 0),S=G(()=>e.activeColor),b=G(()=>e.baseColor),_=G(()=>e.color),O=G(()=>e.selectable||e.activatable);Vd({filterable:e.filterable}),hi({VListGroup:{activeColor:S,baseColor:b,color:_,expandIcon:G(()=>e.expandIcon),collapseIcon:G(()=>e.collapseIcon)},VListItem:{activeClass:G(()=>e.activeClass),activeColor:S,baseColor:b,color:_,density:G(()=>e.density),disabled:G(()=>e.disabled),lines:G(()=>e.lines),nav:G(()=>e.nav),slim:G(()=>e.slim),variant:G(()=>e.variant)}});const A=le(!1),D=ue();function k(j){A.value=!0}function T(j){A.value=!1}function H(j){var Y;!A.value&&!(j.relatedTarget&&((Y=D.value)!=null&&Y.contains(j.relatedTarget)))&&N()}function B(j){const Y=j.target;if(!(!D.value||Y.tagName==="INPUT"&&["Home","End"].includes(j.key)||Y.tagName==="TEXTAREA")){if(j.key==="ArrowDown")N("next");else if(j.key==="ArrowUp")N("prev");else if(j.key==="Home")N("first");else if(j.key==="End")N("last");else return;j.preventDefault()}}function x(j){A.value=!0}function N(j){if(D.value)return Sf(D.value,j)}return Ie(()=>{const j=e.indent??(e.prependGap?Number(e.prependGap)+24:void 0);return I(e.tag,{ref:D,class:he(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},s.value,i.value,a.value,l.value,c.value,p.value,f.value,e.class]),style:xe([{"--v-list-indent":ie(j),"--v-list-group-prepend":j?"0px":void 0,"--v-list-prepend-gap":ie(e.prependGap)},o.value,u.value,e.style]),tabindex:e.disabled?-1:0,role:O.value?"listbox":"list","aria-activedescendant":void 0,onFocusin:k,onFocusout:T,onFocus:H,onKeydown:B,onMousedown:x},{default:()=>[I(Kd,{items:r.value,returnObject:e.returnObject},n)]})}),{open:m,select:v,focus:N,children:d,parents:g,getPath:E}}});let Io=null;const Xd={name:"RateLimitModal",data(){return{isVisible:!1,activeRequests:[]}},computed:{hasActiveRequests(){return this.activeRequests.length>0}},watch:{hasActiveRequests(e){this.isVisible=e}},methods:{close(){this.isVisible=!1},show(e,t,n){const r=Date.now()+Math.random().toString(36).substring(2,9),s=Math.max(0,Math.floor((new Date(e)-new Date)/1e3)),i={id:r,resetTime:e,path:t,method:n,remainingSeconds:s};this.activeRequests.push(i),this.startCountdown(r),this.isVisible=!0},startCountdown(e){const t=this.activeRequests.find(r=>r.id===e);if(!t)return;const n=setInterval(()=>{const r=this.activeRequests.findIndex(s=>s.id===e);if(r===-1){clearInterval(n);return}this.activeRequests[r].remainingSeconds--,this.activeRequests[r].remainingSeconds<=0&&(clearInterval(n),this.activeRequests.splice(r,1))},1e3);t.intervalId=n},clearAllCountdowns(){this.activeRequests.forEach(e=>{e.intervalId&&clearInterval(e.intervalId)}),this.activeRequests=[]}},beforeUnmount(){this.clearAllCountdowns()},created(){Io=this}};Xd.show=function(e,t,n){Io&&Io.show(e,t,n)};const J0=Xd,Q0={class:"text-primary font-weight-bold"};function eS(e,t,n,r,s,i){return bt(),$t(C0,{modelValue:e.isVisible,"onUpdate:modelValue":t[0]||(t[0]=o=>e.isVisible=o),"max-width":"500",persistent:""},{default:je(()=>[I(Tu,{class:"rate-limit-modal"},{default:je(()=>[I(Id,{class:"text-center pa-4 bg-error text-white"},{default:je(()=>[I(Wt,{class:"mr-2",icon:"mdi-clock-alert-outline",size:"large"}),t[1]||(t[1]=Rr(" 请求频率超限 ",-1))]),_:1}),I(ko,{class:"pa-6"},{default:je(()=>[t[3]||(t[3]=q("div",{class:"text-body-1 mb-4"},"您的请求过于频繁,请稍后再试。",-1)),e.activeRequests.length>0?(bt(),$t(Tu,{key:0,class:"mb-4",flat:""},{default:je(()=>[I(ko,null,{default:je(()=>[(bt(!0),Jc(Pe,null,Jm(e.activeRequests,(o,a)=>(bt(),$t(Z0,{key:a,class:"mb-4"},{default:je(()=>[I(Po,{color:"primary","prepend-icon":"mdi-web"},{default:je(()=>[I(zd,null,{default:je(()=>[t[2]||(t[2]=Rr(" 等待时间: ",-1)),q("span",Q0,xt(o.remainingSeconds),1)]),_:2},1024),I(Ud,null,{default:je(()=>[Rr(xt(o.method)+" "+xt(o.path),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),e.index[I(A0),I(Sd,{color:"primary",variant:"tonal",onClick:e.close},{default:je(()=>[...t[5]||(t[5]=[Rr(" 我知道了",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const tS=id(J0,[["render",eS]]),nS=Z({...Me(),...$n(Ep(),["fullHeight"]),...vt()},"VApp"),rS=ve()({name:"VApp",props:nS(),setup(e,t){let{slots:n}=t;const r=Et(e),{layoutClasses:s,getLayoutItem:i,items:o,layoutRef:a}=kp({...e,fullHeight:!0}),{rtlClasses:l}=cs();return Ie(()=>{var u;return q("div",{ref:a,class:he(["v-application",r.themeClasses.value,s.value,l.value,e.class]),style:xe([e.style])},[q("div",{class:"v-application__wrap"},[(u=n.default)==null?void 0:u.call(n)])])}),{getLayoutItem:i,items:o,theme:r}}}),sS={__name:"App",setup(e){const t=jf();return yn(()=>{const n=sd("theme.mode");t.global.name.value=n}),(n,r)=>{const s=Zm("router-view"),i=Td;return bt(),$t(rS,null,{default:je(()=>[I(s,null,{default:je(({Component:o,route:a})=>[I(vn,{mode:"out-in",name:"md3"},{default:je(()=>[(bt(),$t(Dc(o),{key:a.path}))]),_:2},1024)]),_:1}),I(i),I(tS)]),_:1})}}};let Xi;const Ru=e=>({get:async()=>({visitorId:"unknown",error:(e==null?void 0:e.message)||String(e||""),fallback:!0})}),iS=async()=>{try{const e=await He(()=>import("./fp.esm-HJFDfcHo.js"),[],import.meta.url);return(e==null?void 0:e.default)||e}catch(e){return console.warn("Fingerprint library blocked or failed to load; using fallback agent.",e),null}},Zd=()=>(Xi||(Xi=(async()=>{const e=await iS();if(!e)return Ru(new Error("fingerprint module unavailable"));try{return await e.load()}catch(t){return console.warn("FingerprintJS.load failed, using fallback agent.",t),Ru(t)}})()),Xi),oS=async()=>{const t=await(await Zd()).get();return(t==null?void 0:t.visitorId)||"unknown"},KS=async()=>await(await Zd()).get(),aS=Uf(),vs=bg(sS);$y(vs);vs.use(Xn);vs.use(aS);vs.component("GlobalMessage",Td);vs.mount("#app");document.readyState==="complete"?Du():window.addEventListener("load",Du,{once:!0});async function Du(){try{const e=(await He(async()=>{const{default:r}=await import("./index-ghQi_28l.js");return{default:r}},[],import.meta.url)).default;e.init("rhp8uqoc3l");const n=await oS();console.log("Visitor ID:",n),e.identify(n),e.setTag("fingerprintjs",n)}catch(e){console.warn("Clarity 加载或标识设置失败:",e)}}try{const e=()=>{document.body.classList.add("app-loaded");const t=document.getElementById("app-loader");t&&setTimeout(()=>t.remove(),220)};document.readyState==="complete"||document.readyState==="interactive"?e():window.addEventListener("DOMContentLoaded",e,{once:!0})}catch{}export{ue as $,Jc as A,io as B,xt as C,$S as D,ke as E,Pe as F,Jm as G,C0 as H,Vn as I,Yo as J,Nd as K,Qs as L,Pd as M,dS as N,fS as O,Z0 as P,Po as Q,gu as R,is as S,Xo as T,GS as U,rS as V,WS as W,dp as X,u0 as Y,Cv as Z,id as _,xp as a,Ke as a$,le as a0,zS as a1,hr as a2,Zt as a3,ea as a4,M as a5,fe as a6,qe as a7,Te as a8,wS as a9,bS as aA,sr as aB,Cb as aC,Pn as aD,go as aE,wr as aF,Sa as aG,hi as aH,ie as aI,Hn as aJ,Qo as aK,co as aL,lS as aM,sa as aN,oS as aO,KS as aP,Ct as aQ,li as aR,Ic as aS,cS as aT,He as aU,ar as aV,bn as aW,pS as aX,tn as aY,gf as aZ,w0 as a_,W0 as aa,Pg as ab,wt as ac,kd as ad,$n as ae,CS as af,Mn as ag,Tg as ah,VS as ai,yn as aj,uS as ak,cd as al,ft as am,g0 as an,t0 as ao,zd as ap,Ud as aq,kn as ar,Au as as,Dd as at,Js as au,LS as av,DS as aw,yS as ax,G as ay,vS as az,V0 as b,fd as b$,Jn as b0,$r as b1,kS as b2,AS as b3,_t as b4,ku as b5,fo as b6,cs as b7,HS as b8,up as b9,wl as bA,Gb as bB,RS as bC,OS as bD,PS as bE,br as bF,jb as bG,Xn as bH,ge as bI,Kb as bJ,zb as bK,Qy as bL,Jy as bM,et as bN,eb as bO,Zy as bP,pf as bQ,gS as bR,Be as bS,xS as bT,vr as bU,mS as bV,Bn as bW,uo as bX,SS as bY,dd as bZ,db as b_,xc as ba,wa as bb,on as bc,jf as bd,ha as be,pl as bf,Ed as bg,vt as bh,sn as bi,Si as bj,ms as bk,Et as bl,ds as bm,vn as bn,NS as bo,FS as bp,BS as bq,We as br,Fb as bs,Vb as bt,lb as bu,Ag as bv,yr as bw,lt as bx,Sr as by,gb as bz,Ie as c,Qe as c0,ee as c1,Bt as c2,uc as c3,cv as c4,Xr as c5,zm as c6,ua as c7,jn as c8,yi as c9,fi as cA,gn as cB,hS as ca,ES as cb,S0 as cc,U0 as cd,va as ce,ga as cf,Nb as cg,Tc as ch,Sf as ci,kg as cj,Hr as ck,_S as cl,tS as cm,TS as cn,gs as co,hs as cp,df as cq,jS as cr,IS as cs,bi as ct,pa as cu,US as cv,ya as cw,Sn as cx,Cf as cy,oc as cz,I as d,he as e,_r as f,ve as g,Me as h,q as i,$t as j,sd as k,Tu as l,tt as m,xe as n,bt as o,Z as p,Id as q,Zm as r,MS as s,Rr as t,Cr as u,Wt as v,je as w,A0 as x,Sd as y,ko as z}; diff --git a/assets/settings-BD-rA2t3.js b/assets/settings-BD-rA2t3.js deleted file mode 100644 index 8063299..0000000 --- a/assets/settings-BD-rA2t3.js +++ /dev/null @@ -1,14 +0,0 @@ -import{p as nt,_ as ct,V as $t}from"./index-90D_8zvz.js";import{_ as H,j as w,o as m,w as n,d as t,B as k,an as Le,q as R,t as a,C as v,v as g,z as E,ak as Be,al as Ge,M as ie,l as N,i as h,bn as en,L as mt,at as pt,bo as ft,k as S,s as _e,bp as tn,A as D,ap as L,aq as Z,y as f,P as K,Q as V,K as M,E as Qe,ao as Ye,F as oe,bq as Ee,ai as qe,ar as Je,G as fe,x as q,Y as Ne,br as nn,N as be,O as Fe,H as we,bd as sn,D as on,g as ln,p as an,a3 as rn,bs as un,bt as dn,b0 as cn,e as st,R as it,$ as Se,aw as mn,a5 as Ie,aj as pn,aQ as fn,r as hn,X as wn}from"./index-BBVdlVQD.js";import{V as Y}from"./VChip-BmBm7zXx.js";import{V as ht}from"./VSwitch-CCxGT9ZY.js";import{e as wt}from"./filter-Bc0G1Z2P.js";import{V as B}from"./VTextField-C-Z2P35g.js";import{V as gt}from"./VMenu-CJ7CiDy8.js";import{d as ce,k as gn}from"./dataProvider-bw19OswA.js";import{V as W,a as Ce}from"./VAlert-BYrhoEr8.js";import{V as ve,a as le}from"./VRow-IosHPrmj.js";import{V as vt}from"./VContainer-OExp5t5c.js";import{V as bt}from"./VForm-BRCje5Hh.js";import{V as He}from"./VCheckbox-BaW9yLIL.js";import{V as yt,a as kt,b as xt,c as St}from"./VExpansionPanels-C5tgQAF_.js";import{V as Ct}from"./VDataTable-D7gPSbin.js";import{V as Pe}from"./VTextarea-mXVeQ__0.js";import{o as vn,b as bn}from"./axios-CF6XU-xP.js";import{V as ot,a as lt,b as yn,c as kn}from"./VAppBarTitle-QQJ8OMzH.js";import{V as xn}from"./VSheet-DZUeXnyk.js";import{b as Sn,a as de}from"./VTabsWindowItem-CNNzieW-.js";import"./VSelectionControl-D-h-HCLE.js";import"./VCheckboxBtn-CtaD8oYU.js";const Cn={name:"SettingsCard",props:{title:{type:String,required:!0},icon:{type:String,required:!0},loading:{type:Boolean,default:!1}}};function _n(s,e,l,u,i,o){return m(),w(N,{class:"settings-card rounded-lg",elevation:"2"},{default:n(()=>[t(Le,null,{prepend:n(()=>[t(g,{icon:l.icon,class:"mr-2",size:"large"},null,8,["icon"])]),default:n(()=>[t(R,{class:"text-h6"},{default:n(()=>[a(v(l.title),1)]),_:1})]),_:1}),t(E,null,{default:n(()=>[l.loading?(m(),w(Ge,{key:0,class:"mb-4",color:"primary",indeterminate:""})):k("",!0),Be(s.$slots,"default",{},void 0,!0)]),_:3}),s.$slots.actions?(m(),w(ie,{key:0,class:"pa-4"},{default:n(()=>[Be(s.$slots,"actions",{},void 0,!0)]),_:3})):k("",!0)]),_:3})}const Q=H(Cn,[["render",_n],["__scopeId","data-v-9c035df1"]]);var Vn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dn(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var _t={exports:{}};(function(s,e){(function(l,u){s.exports=u()})(typeof self<"u"?self:Vn,()=>(()=>{var l={3146:(r,c,p)=>{for(var x=p(3491),_=typeof window>"u"?p.g:window,j=["moz","webkit"],G="AnimationFrame",F=_["request"+G],X=_["cancel"+G]||_["cancelRequest"+G],re=0;!F&&re{var c=r&&r.__esModule?()=>r.default:()=>r;return i.d(c,{a:c}),c},i.d=(r,c)=>{for(var p in c)i.o(c,p)&&!i.o(r,p)&&Object.defineProperty(r,p,{enumerable:!0,get:c[p]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(r,c)=>Object.prototype.hasOwnProperty.call(r,c);var o={};return(()=>{i.d(o,{default:()=>Qt});var r=i(3146),c=i.n(r);const p=function(A){return new RegExp(/<[a-z][\s\S]*>/i).test(A)},x=function(A,b){return Math.floor(Math.random()*(b-A+1))+A};var _="TYPE_CHARACTER",j="REMOVE_CHARACTER",G="REMOVE_ALL",F="REMOVE_LAST_VISIBLE_NODE",X="PAUSE_FOR",re="CALL_FUNCTION",me="ADD_HTML_TAG_ELEMENT",ae="CHANGE_DELETE_SPEED",ee="CHANGE_DELAY",ge="CHANGE_CURSOR",$="PASTE_STRING",T="HTML_TAG";function J(A){return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},J(A)}function se(A,b){var I=Object.keys(A);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(A);b&&(C=C.filter(function(he){return Object.getOwnPropertyDescriptor(A,he).enumerable})),I.push.apply(I,C)}return I}function U(A){for(var b=1;bA.length)&&(b=A.length);for(var I=0,C=Array(b);I1&&arguments[1]!==void 0?arguments[1]:null;if(p(y))return d.typeOutHTMLString(y,P);if(y){var te=(d.options||{}).stringSplitter,ne=typeof te=="function"?te(y):y.split("");d.typeCharacters(ne,P)}return d}),O(this,"pasteString",function(y){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p(y)?d.typeOutHTMLString(y,P,!0):(y&&d.addEventToQueue($,{character:y,node:P}),d)}),O(this,"typeOutHTMLString",function(y){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,te=arguments.length>2?arguments[2]:void 0,ne=function(Ve){var De=document.createElement("div");return De.innerHTML=Ve,De.childNodes}(y);if(ne.length>0)for(var z=0;z0&&arguments[0]!==void 0?arguments[0]:"natural";return d.addEventToQueue(G,{speed:y}),d}),O(this,"changeDeleteSpeed",function(y){if(!y)throw new Error("Must provide new delete speed");return d.addEventToQueue(ae,{speed:y}),d}),O(this,"changeDelay",function(y){if(!y)throw new Error("Must provide new delay");return d.addEventToQueue(ee,{delay:y}),d}),O(this,"changeCursor",function(y){if(!y)throw new Error("Must provide new cursor");return d.addEventToQueue(ge,{cursor:y}),d}),O(this,"deleteChars",function(y){if(!y)throw new Error("Must provide amount of characters to delete");for(var P=0;P1&&arguments[1]!==void 0?arguments[1]:null;if(!y||!Array.isArray(y))throw new Error("Characters must be an array");return y.forEach(function(te){d.addEventToQueue(_,{character:te,node:P})}),d}),O(this,"removeCharacters",function(y){if(!y||!Array.isArray(y))throw new Error("Characters must be an array");return y.forEach(function(){d.addEventToQueue(j)}),d}),O(this,"addEventToQueue",function(y,P){var te=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return d.addEventToStateProperty(y,P,te,"eventQueue")}),O(this,"addReverseCalledEvent",function(y,P){var te=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return d.options.loop?d.addEventToStateProperty(y,P,te,"reverseCalledEvents"):d}),O(this,"addEventToStateProperty",function(y,P){var te=arguments.length>2&&arguments[2]!==void 0&&arguments[2],ne=arguments.length>3?arguments[3]:void 0,z={eventName:y,eventArgs:P||{}};return d.state[ne]=te?[z].concat(pe(d.state[ne])):[].concat(pe(d.state[ne]),[z]),d}),O(this,"runEventLoop",function(){d.state.lastFrameTime||(d.state.lastFrameTime=Date.now());var y=Date.now(),P=y-d.state.lastFrameTime;if(!d.state.eventQueue.length){if(!d.options.loop)return;d.state.eventQueue=pe(d.state.calledEvents),d.state.calledEvents=[],d.options=U({},d.state.initialOptions)}if(d.state.eventLoop=c()(d.runEventLoop),!d.state.eventLoopPaused){if(d.state.pauseUntil){if(y({typewriter:null,sourceWriter:null,currentQuote:ut,hasClicked:!1}),mounted(){this.initTypewriters()},methods:{initTypewriters(){this.typewriter=new at(this.$refs.typewriter,dt.main),this.sourceWriter=new at(this.$refs.sourceWriter,dt.source),this.typeQuote(ut)},typeQuote(s){this.typewriter.deleteAll(30).typeString(s.text).start(),s.author&&this.sourceWriter.deleteAll(20).typeString(s.author).start()},async handleClick(){this.hasClicked||(this.hasClicked=!0),await this.copyToClipboard(),this.currentQuote=this.getRandomQuote(),this.typeQuote(this.currentQuote)},getRandomQuote(){return rt.quotes[Math.floor(Math.random()*rt.quotes.length)]},async copyToClipboard(){if(!this.currentQuote)return;const{text:s,author:e,contributor:l,link:u}=this.currentQuote,i=[s,e&&`作者:${e}`,l&&`贡献者:${l}`,(u||l)&&`来源:${u||`https://github.com/${l}`}`].filter(Boolean);try{await navigator.clipboard.writeText(i.join(` -`))}catch(o){console.error("复制失败:",o)}}},beforeUnmount(){[this.typewriter,this.sourceWriter].forEach(s=>s==null?void 0:s.stop())}},En={ref:"typewriter",class:"typewriter-text"},Nn={ref:"sourceWriter",class:"source-text"};function jn(s,e,l,u,i,o){const r=Q;return m(),w(r,{border:"",icon:"mdi-thought-bubble",title:"回声洞",onClick:o.handleClick},{default:n(()=>[t(E,null,{default:n(()=>[h("div",En,null,512),h("div",Nn,null,512)]),_:1}),t(en,{name:"fade"},{default:n(()=>{var c;return[(c=s.currentQuote)!=null&&c.contributor?(m(),w(Y,{key:0,class:"contributor"},{default:n(()=>[t(mt,{start:""},{default:n(()=>[t(pt,{src:`https://github.com/${s.currentQuote.contributor}.png`},null,8,["src"])]),_:1}),a(" "+v(s.currentQuote.contributor),1)]),_:1})):k("",!0)]}),_:1})]),_:1},8,["onClick"])}const Vt=H(Tn,[["render",jn],["__scopeId","data-v-a6a55e27"]]),Un={name:"SettingItem",props:{settingKey:{type:String,required:!0},icon:{type:String,default:null},disabled:{type:Boolean,default:!1},title:{type:String,default:null},description:{type:String,default:null}},data(){return{localValue:null,definition:null,type:null,selectOptions:[],hasOptions:!1,minValue:0,maxValue:100,stepValue:1,showSnackbar:!1,snackbarText:"",fontFamilies:[{title:"Arial",value:"Arial, sans-serif"},{title:"Calibri",value:"Calibri, sans-serif"},{title:"Cambria",value:"Cambria, serif"},{title:"Consolas",value:"Consolas, monospace"},{title:"Courier New",value:"Courier New, monospace"},{title:"Georgia",value:"Georgia, serif"},{title:"Helvetica",value:"Helvetica, sans-serif"},{title:"Segoe UI",value:"Segoe UI, sans-serif"},{title:"Times New Roman",value:"Times New Roman, serif"},{title:"Trebuchet MS",value:"Trebuchet MS, sans-serif"},{title:"Verdana",value:"Verdana, sans-serif"},{title:"Monospace",value:"monospace"},{title:"Sans-serif",value:"sans-serif"},{title:"Serif",value:"serif"}],displayValueMappings:{"display.emptySubjectDisplay":{card:"卡片",button:"按钮"},"theme.mode":{light:"浅色",dark:"深色"},"server.provider":{classworkscloud:"Classworks云端存储","kv-local":"KV本地存储","kv-server":"KV远程服务器"}},defaultIcons:{boolean:"mdi-toggle-switch-outline",number:"mdi-numeric",string:"mdi-form-textbox"}}},computed:{displayTitle(){if(this.title)return this.title;if(this.definition&&this.definition.description)return this.definition.description;const s=this.settingKey.split(".");return s[s.length-1]},displayDescription(){return this.description?this.description:this.settingKey},isFontFamily(){return this.settingKey.toLowerCase().includes("fontfamily")||this.settingKey.toLowerCase().includes("font.family")},isDefaultValue(){return this.definition?typeof this.localValue=="object"&&this.localValue!==null?JSON.stringify(this.localValue)===JSON.stringify(this.definition.default):this.localValue===this.definition.default:!0},settingIcon(){return this.icon?this.icon:this.definition&&this.definition.icon?this.definition.icon:this.defaultIcons[this.type]||"mdi-cog-outline"}},created(){this.loadSetting()},methods:{loadSetting(){if(this.definition=tn(this.settingKey),!this.definition){console.error(`未找到设置项定义: ${this.settingKey}`);return}if(this.type=this.definition.type,this.localValue=S(this.settingKey),this.type==="string"){if(this.isFontFamily)this.selectOptions=this.fontFamilies,this.hasOptions=!0;else if(this.settingKey in this.displayValueMappings){const s=this.displayValueMappings[this.settingKey];this.selectOptions=Object.entries(s).map(([e,l])=>({title:l,value:e})),this.hasOptions=!0}else if(this.definition.validate){const e=this.definition.validate.toString().match(/\[(.*?)\]/);if(e){const u=e[1].split(",").map(i=>{const o=i.trim().replace(/['"]/g,"");return{title:this.getDisplayValue(o)||o,value:o}});u.length>0&&(this.selectOptions=u,this.hasOptions=!0)}}}if(this.type==="number"&&this.definition.validate){const s=this.definition.validate.toString(),e=s.match(/value\s*>=\s*(\d+)/);e&&(this.minValue=Number(e[1]));const l=s.match(/value\s*<=\s*(\d+)/);l&&(this.maxValue=Number(l[1]));const u=this.maxValue-this.minValue;u>100?this.stepValue=10:u>20?this.stepValue=5:u>10?this.stepValue=2:this.stepValue=1}},getDisplayValue(s){return this.settingKey in this.displayValueMappings&&this.displayValueMappings[this.settingKey][s]||s},updateSetting(s){let e=s;this.type==="boolean"?e=!!s:this.type==="number"&&(e=Number(s),ethis.maxValue&&(e=this.maxValue)),_e(this.settingKey,e)?this.$emit("update",this.settingKey,e):(this.localValue=S(this.settingKey),this.$emit("error",this.settingKey))},adjustValue(s){if(this.type!=="number")return;const e=this.localValue+s;e>=this.minValue&&e<=this.maxValue&&(this.localValue=e,this.updateSetting(e))},copySettingId(){navigator.clipboard.writeText(this.settingKey).then(()=>{this.showSnackbarMessage("设置ID已复制到剪贴板")}).catch(s=>{console.error("复制失败:",s)})},copySettingValue(){let s="";typeof this.localValue=="object"&&this.localValue!==null?s=JSON.stringify(this.localValue):s=String(this.localValue),navigator.clipboard.writeText(s).then(()=>{this.showSnackbarMessage("设置值已复制到剪贴板")}).catch(e=>{console.error("复制失败:",e)})},resetToDefault(){this.definition&&(ft(this.settingKey),this.localValue=S(this.settingKey),this.showSnackbarMessage("已重置为默认值"),this.$emit("update",this.settingKey,this.localValue))},showSnackbarMessage(s){this.snackbarText=s,this.showSnackbar=!0}}},Mn={class:"text-caption text-grey-darken-1"},Pn={class:"d-flex flex-column flex-sm-row align-center"},Bn={key:0,class:"me-2"},Ln={key:2,class:"d-flex align-center"},On={key:0,class:"px-4 pb-2 pt-0"};function zn(s,e,l,u,i,o){return m(),D(oe,null,[t(V,{disabled:l.disabled,class:"setting-item"},{prepend:n(()=>[t(g,{icon:o.settingIcon},null,8,["icon"])]),append:n(()=>[h("div",Pn,[i.type!=="string"||i.hasOptions?(m(),D("div",Bn,[i.type==="boolean"?(m(),w(ht,{key:0,modelValue:i.localValue,"onUpdate:modelValue":[e[0]||(e[0]=r=>i.localValue=r),o.updateSetting],disabled:l.disabled,density:"comfortable","hide-details":""},null,8,["modelValue","disabled","onUpdate:modelValue"])):i.type==="string"&&i.hasOptions?(m(),w(wt,{key:1,modelValue:i.localValue,"onUpdate:modelValue":[e[1]||(e[1]=r=>i.localValue=r),o.updateSetting],disabled:l.disabled,items:i.selectOptions,"bg-color":"surface",class:"setting-select",density:"compact","hide-details":"","item-title":"title","item-value":"value",variant:"outlined"},null,8,["modelValue","disabled","items","onUpdate:modelValue"])):i.type==="number"?(m(),D("div",Ln,[t(f,{disabled:l.disabled||i.localValue<=i.minValue,icon:"mdi-minus",size:"small",variant:"text",onClick:e[2]||(e[2]=r=>o.adjustValue(-i.stepValue))},null,8,["disabled"]),t(B,{modelValue:i.localValue,"onUpdate:modelValue":[e[3]||(e[3]=r=>i.localValue=r),o.updateSetting],modelModifiers:{number:!0},disabled:l.disabled,max:i.maxValue,min:i.minValue,step:i.stepValue,"bg-color":"surface",class:"mx-2 setting-number-field",density:"compact","hide-details":"",style:{width:"80px"},type:"number",variant:"outlined"},null,8,["modelValue","disabled","max","min","step","onUpdate:modelValue"]),t(f,{disabled:l.disabled||i.localValue>=i.maxValue,icon:"mdi-plus",size:"small",variant:"text",onClick:e[4]||(e[4]=r=>o.adjustValue(i.stepValue))},null,8,["disabled"])])):k("",!0)])):k("",!0),t(gt,{location:"bottom"},{activator:n(({props:r})=>[t(f,Qe({disabled:l.disabled,class:"ml-2",icon:"mdi-dots-vertical",size:"small"},r,{variant:"text"}),null,16,["disabled"])]),default:n(()=>[t(K,{density:"compact"},{default:n(()=>[t(V,{onClick:o.copySettingId},{prepend:n(()=>[t(g,{icon:"mdi-key",size:"small"})]),default:n(()=>[t(L,null,{default:n(()=>[...e[7]||(e[7]=[a("复制设置ID",-1)])]),_:1})]),_:1},8,["onClick"]),t(V,{onClick:o.copySettingValue},{prepend:n(()=>[t(g,{icon:"mdi-content-copy",size:"small"})]),default:n(()=>[t(L,null,{default:n(()=>[...e[8]||(e[8]=[a("复制设置值",-1)])]),_:1})]),_:1},8,["onClick"]),t(M),t(V,{disabled:o.isDefaultValue,onClick:o.resetToDefault},{prepend:n(()=>[t(g,{icon:"mdi-restore",size:"small"})]),default:n(()=>[t(L,null,{default:n(()=>[...e[9]||(e[9]=[a("重置为默认值",-1)])]),_:1})]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})])]),default:n(()=>[t(L,{class:"text-wrap"},{default:n(()=>[a(v(o.displayTitle),1)]),_:1}),t(Z,{class:"d-flex align-center text-wrap"},{default:n(()=>[h("span",Mn,v(l.settingKey),1)]),_:1})]),_:1},8,["disabled"]),i.type==="string"&&!i.hasOptions?(m(),D("div",On,[t(B,{modelValue:i.localValue,"onUpdate:modelValue":[e[5]||(e[5]=r=>i.localValue=r),o.updateSetting],disabled:l.disabled,"bg-color":"surface",class:"setting-text-field mt-1",density:"compact","hide-details":"",variant:"outlined"},null,8,["modelValue","disabled","onUpdate:modelValue"])])):k("",!0),t(Ye,{modelValue:i.showSnackbar,"onUpdate:modelValue":e[6]||(e[6]=r=>i.showSnackbar=r),timeout:2e3,color:"success",location:"top"},{default:n(()=>[a(v(i.snackbarText),1)]),_:1},8,["modelValue"])],64)}const ye=H(Un,[["render",zn],["__scopeId","data-v-08b49b47"]]),Rn={name:"SettingsExplorer",components:{SettingItem:ye},data(){return{searchQuery:"",currentSettings:{},unwatchFunction:null}},computed:{isDeveloperMode(){return S("developer.enabled")},allSettings(){var e;const s=[];for(const[l,u]of Object.entries(Je))this.searchQuery&&!l.toLowerCase().includes(this.searchQuery.toLowerCase())&&!((e=u.description)!=null&&e.toLowerCase().includes(this.searchQuery.toLowerCase()))||s.push({key:l,...u});return s},formattedSettings(){return JSON.stringify(this.currentSettings,null,2)}},created(){this.updateCurrentSettings(),this.unwatchFunction=qe(()=>{this.updateCurrentSettings()})},beforeUnmount(){this.unwatchFunction&&this.unwatchFunction()},methods:{updateCurrentSettings(){this.currentSettings=Ee()},onSettingUpdate(s,e){this.$emit("update",s,e),this.updateCurrentSettings()},onSettingError(s){this.$emit("error",s)},copySettingsToClipboard(){navigator.clipboard.writeText(JSON.stringify(this.currentSettings)).then(()=>{this.$emit("message",{type:"success",text:"设置已复制到剪贴板"})}).catch(s=>{console.error("复制到剪贴板失败:",s),this.$emit("message",{type:"error",text:"复制到剪贴板失败"})})}}},Kn={class:"settings-explorer"},Fn={class:"settings-json"};function Qn(s,e,l,u,i,o){const r=ye;return m(),D("div",Kn,[h("div",null,[t(B,{modelValue:i.searchQuery,"onUpdate:modelValue":e[0]||(e[0]=c=>i.searchQuery=c),class:"mb-4",clearable:"",density:"comfortable",label:"搜索设置","prepend-inner-icon":"mdi-magnify",variant:"outlined"},null,8,["modelValue"]),t(K,null,{default:n(()=>[(m(!0),D(oe,null,fe(o.allSettings,c=>(m(),D("div",{key:c.key},[(m(),w(r,{key:c.key,disabled:c.requireDeveloper&&!o.isDeveloperMode,"setting-key":c.key,onError:o.onSettingError,onUpdate:o.onSettingUpdate},null,8,["disabled","setting-key","onError","onUpdate"])),t(M,{class:"my-2"})]))),128))]),_:1}),t(N,{border:""},{default:n(()=>[t(R,{class:"text-subtitle-1"},{default:n(()=>[...e[1]||(e[1]=[a("当前配置",-1)])]),_:1}),t(E,null,{default:n(()=>[h("pre",Fn,v(o.formattedSettings),1)]),_:1}),t(ie,null,{default:n(()=>[t(q),t(f,{onClick:o.copySettingsToClipboard},{default:n(()=>[e[3]||(e[3]=a(" 复制到剪贴板 ",-1)),t(g,{right:""},{default:n(()=>[...e[2]||(e[2]=[a("mdi-content-copy",-1)])]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})])])}const Dt=H(Rn,[["render",Qn],["__scopeId","data-v-4d032f99"]]),Jn={name:"SettingGroup",props:{title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:null},border:{type:Boolean,default:!1}},methods:{onSettingUpdate(s,e){this.$emit("update",s,e)},onSettingError(s){this.$emit("error",s)}}};function Hn(s,e,l,u,i,o){return m(),w(N,{border:l.border,class:"setting-group"},{default:n(()=>[l.title?(m(),w(R,{key:0,class:"d-flex align-center"},{default:n(()=>[l.icon?(m(),w(g,{key:0,icon:l.icon,class:"mr-2"},null,8,["icon"])):k("",!0),a(" "+v(l.title),1)]),_:1})):k("",!0),l.description?(m(),w(Ne,{key:1},{default:n(()=>[a(v(l.description),1)]),_:1})):k("",!0),t(E,null,{default:n(()=>[t(K,null,{default:n(()=>[Be(s.$slots,"default",{},void 0,!0)]),_:3})]),_:3}),s.$slots.actions?(m(),w(ie,{key:2},{default:n(()=>[Be(s.$slots,"actions",{},void 0,!0)]),_:3})):k("",!0)]),_:3},8,["border"])}const At=H(Jn,[["render",Hn],["__scopeId","data-v-9af32ae4"]]),Gn={subjects:{语文:{books:{课本:["第一单元","第二单元"],练习册:["第一章","第二章"]}},数学:{books:{课本:["第一章","第二章"],习题册:["基础练习","提高练习"]}},英语:{books:{课本:["Unit 1","Unit 2"],练习册:["Chapter 1","Chapter 2"]}}},commonSubject:{books:{试卷:["单元测试","期中测试","期末测试"],假期作业:["必做题","选做题"]}},actions:["写完","下一课","不交","明天交"]},Yn={name:"HomeworkTemplateCard",components:{SettingsCard:Q,SettingGroup:At},data(){return{loading:!1,error:null,config:nn(JSON.parse(JSON.stringify(Gn))),originalConfig:null,newSubject:"",newCommonBook:"",newAction:"",newTask:"",editedSubjects:{},editedBookTypes:{},newBookTypes:{},newBooks:{},showSnackbar:!1,snackbarText:"",snackbarColor:"success",isNewConfig:!0,dialog:{show:!1,title:"",nameLabel:"",editedItem:{name:"",type:"",subject:"",bookType:"",originalName:"",tasks:[]}}}},computed:{subjectList(){return Object.keys(this.config.subjects)},hasChanges(){return this.isNewConfig?!0:this.originalConfig&&JSON.stringify(this.config)!==JSON.stringify(this.originalConfig)}},created(){this.loadConfig()},methods:{async loadConfig(){var s,e;this.loading=!0;try{const l=await ce.loadData("classworks-config-homework-template");if(l){const u=l;Object.assign(this.config,u),this.originalConfig=JSON.parse(JSON.stringify(u)),this.isNewConfig=!1,this.showMessage("配置已加载","success")}else if(((s=l.error)==null?void 0:s.code)==="NOT_FOUND")this.showMessage("使用默认配置","info"),this.isNewConfig=!0;else{const u=((e=l.error)==null?void 0:e.message)||"加载失败";this.showMessage(`加载失败: ${u},可继续编辑当前配置`,"warning")}}catch(l){console.error("Failed to load config:",l),this.showMessage("加载失败,可继续编辑当前配置","warning")}this.loading=!1},async saveConfig(){this.loading=!0;try{const s=await ce.saveData("classworks-config-homework-template",this.config);if(s)this.originalConfig=JSON.parse(JSON.stringify(this.config)),this.isNewConfig=!1,this.showMessage("配置已保存","success");else throw new Error(s||"保存失败")}catch(s){console.error("Failed to save config:",s),this.showMessage(`保存失败: ${s.message},请稍后重试`,"error")}this.loading=!1},showMessage(s,e="success"){this.snackbarText=s,this.snackbarColor=e,this.showSnackbar=!0},addSubject(){this.newSubject&&(this.config.subjects[this.newSubject]||(this.config.subjects[this.newSubject]={books:{}}),this.newSubject="")},updateSubject(s){const e=this.editedSubjects[s];if(e&&e!==s){const l=this.config.subjects[s];this.config.subjects[e]=l,delete this.config.subjects[s]}delete this.editedSubjects[s]},deleteSubject(s){delete this.config.subjects[s]},addBookType(s){const e=this.newBookTypes[s];e&&(this.config.subjects[s].books[e]||(this.config.subjects[s].books[e]=[]),this.newBookTypes[s]="")},updateBookType(s,e){const l=`${s}-${e}`,u=this.editedBookTypes[l];if(u&&u!==e){const i=this.config.subjects[s].books[e];this.config.subjects[s].books[u]=i,delete this.config.subjects[s].books[e]}delete this.editedBookTypes[l]},deleteBookType(s,e){s==="common"?delete this.config.commonSubject.books[e]:delete this.config.subjects[s].books[e]},addBook(s,e){const l=`${s}-${e}`,u=this.newBooks[l];u&&(this.config.subjects[s].books[e].includes(u)||this.config.subjects[s].books[e].push(u),this.newBooks[l]="")},removeBook(s,e,l){const u=this.config.subjects[s].books[e],i=u.indexOf(l);i>-1&&u.splice(i,1)},addCommonBook(){this.newCommonBook&&(this.config.commonSubject.books[this.newCommonBook]||(this.config.commonSubject.books[this.newCommonBook]=[]),this.newCommonBook="")},removeCommonBook(s){delete this.config.commonSubject.books[s]},addAction(){this.newAction&&(this.config.actions.includes(this.newAction)||this.config.actions.push(this.newAction),this.newAction="")},removeAction(s){const e=this.config.actions.indexOf(s);e>-1&&this.config.actions.splice(e,1)},openBookDialog(s,e,l){this.dialog.show=!0,this.dialog.title="编辑需完成部分",this.dialog.nameLabel="部分名称",this.dialog.editedItem={name:l,type:"book",subject:s,bookType:e,originalName:l,tasks:this.config.subjects[s].books[e]}},openCommonBookDialog(s){this.dialog.show=!0,this.dialog.title="编辑通用作业本",this.dialog.nameLabel="作业本名称",this.dialog.editedItem={name:s,type:"commonBook",originalName:s,tasks:Array.isArray(this.config.commonSubject.books[s])?[...this.config.commonSubject.books[s]]:[]}},openActionDialog(s){this.dialog={show:!0,title:"编辑操作",nameLabel:"操作名称",editedItem:{name:s,type:"action",originalName:s,tasks:[]}}},addTask(){this.newTask&&(this.dialog.editedItem.tasks||(this.dialog.editedItem.tasks=[]),this.dialog.editedItem.tasks.push(this.newTask),this.newTask="")},removeTask(s){this.dialog.editedItem.tasks.splice(s,1)},openSubjectBookDialog(s,e,l){this.dialog.show=!0,this.dialog.title=s==="common"?"编辑通用作业本":"编辑作业本",this.dialog.nameLabel="作业本名称",this.dialog.editedItem={name:e,type:"subjectBook",subject:s,originalName:e,tasks:Array.isArray(l)?[...l]:[]}},saveDialog(){const{type:s,name:e,subject:l,originalName:u,tasks:i}=this.dialog.editedItem;if(!e){this.showMessage("名称不能为空","error");return}let o;const r=l==="common"?this.config.commonSubject.books:l?this.config.subjects[l].books:null;switch(s){case"subjectBook":r&&(u!==e?(r[e]=i||[],delete r[u]):r[e]=i||[]);break;case"action":o=this.config.actions.indexOf(u),o>-1&&(this.config.actions[o]=e);break}this.closeDialog()},closeDialog(){this.dialog={show:!1,title:"",nameLabel:"",editedItem:{name:"",type:"",subject:"",originalName:"",tasks:[]}},this.newTask=""}}},qn={class:"d-flex justify-space-between align-center mb-6"};function Zn(s,e,l,u,i,o){const r=At,c=Q;return m(),w(c,{loading:i.loading,border:"",icon:"mdi-book-edit",title:"作业模板配置"},{default:n(()=>[i.error?(m(),w(W,{key:0,class:"mb-4",closable:"",type:"error",variant:"tonal"},{default:n(()=>[a(v(i.error),1)]),_:1})):k("",!0),h("div",qn,[h("div",null,[t(f,{loading:i.loading,class:"mr-2",color:"primary","prepend-icon":"mdi-refresh",size:"large",onClick:o.loadConfig},{default:n(()=>[...e[7]||(e[7]=[a(" 重新加载配置 ",-1)])]),_:1},8,["loading","onClick"]),t(f,{loading:i.loading,color:"success","prepend-icon":"mdi-content-save",size:"large",onClick:o.saveConfig},{default:n(()=>[...e[8]||(e[8]=[a(" 保存所有更改 ",-1)])]),_:1},8,["loading","onClick"])]),o.hasChanges?(m(),w(Y,{key:0,color:"warning",variant:"elevated"},{default:n(()=>[...e[9]||(e[9]=[a(" 有未保存的更改 ",-1)])]),_:1})):k("",!0)]),t(ve,null,{default:n(()=>[t(le,{cols:"12",md:"6"},{default:n(()=>[t(r,{border:"",icon:"mdi-book",title:"科目配置"},{default:n(()=>[t(K,null,{default:n(()=>[t(V,null,{default:n(()=>[t(B,{modelValue:i.newSubject,"onUpdate:modelValue":e[0]||(e[0]=p=>i.newSubject=p),"append-inner-icon":"mdi-plus",density:"comfortable",label:"添加新科目",variant:"outlined","onClick:appendInner":o.addSubject,onKeyup:be(o.addSubject,["enter"])},null,8,["modelValue","onClick:appendInner","onKeyup"])]),_:1}),(m(!0),D(oe,null,fe(o.subjectList,p=>(m(),w(V,{key:p},{default:n(()=>[t(N,{border:"",class:"w-100 mb-2"},{default:n(()=>[t(R,{class:"d-flex align-center"},{default:n(()=>[t(B,{modelValue:i.editedSubjects[p],"onUpdate:modelValue":x=>i.editedSubjects[p]=x,placeholder:p,density:"comfortable","hide-details":"",variant:"plain",onBlur:x=>o.updateSubject(p)},null,8,["modelValue","onUpdate:modelValue","placeholder","onBlur"]),t(q),t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:x=>o.deleteSubject(p)},null,8,["onClick"])]),_:2},1024),t(E,null,{default:n(()=>[t(B,{modelValue:i.newBookTypes[p],"onUpdate:modelValue":x=>i.newBookTypes[p]=x,"append-inner-icon":"mdi-plus",class:"mb-2",density:"comfortable",label:"添加作业本名称",variant:"outlined","onClick:appendInner":()=>o.addBookType(p),onKeyup:be(()=>o.addBookType(p),["enter"])},null,8,["modelValue","onUpdate:modelValue","onClick:appendInner","onKeyup"]),t(K,{border:"",density:"compact",rounded:""},{default:n(()=>[(m(!0),D(oe,null,fe(i.config.subjects[p].books,(x,_)=>(m(),w(V,{key:_,title:_,onClick:j=>o.openSubjectBookDialog(p,_,x)},{prepend:n(()=>[t(g,{class:"mr-2",icon:"mdi-book-open-variant"})]),append:n(()=>[t(Y,{class:"mr-2",color:"info",size:"small"},{default:n(()=>[a(v(x.length)+"个部分 ",1)]),_:2},1024),t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:Fe(()=>o.deleteBookType(p,_),["stop"])},null,8,["onClick"])]),_:2},1032,["title","onClick"]))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),t(le,{cols:"12",md:"6"},{default:n(()=>[t(r,{border:"",icon:"mdi-cog",title:"通用配置"},{default:n(()=>[t(K,null,{default:n(()=>[t(V,null,{default:n(()=>[t(B,{modelValue:i.newCommonBook,"onUpdate:modelValue":e[1]||(e[1]=p=>i.newCommonBook=p),"append-inner-icon":"mdi-plus",density:"comfortable",label:"添加作业本名称",variant:"outlined","onClick:appendInner":o.addCommonBook,onKeyup:be(o.addCommonBook,["enter"])},null,8,["modelValue","onClick:appendInner","onKeyup"])]),_:1}),t(V,null,{default:n(()=>[t(K,{border:"",density:"compact",rounded:""},{default:n(()=>[(m(!0),D(oe,null,fe(i.config.commonSubject.books,(p,x)=>(m(),w(V,{key:x,title:x,onClick:_=>o.openSubjectBookDialog("common",x,p)},{prepend:n(()=>[t(g,{class:"mr-2",icon:"mdi-book-multiple"})]),append:n(()=>[t(Y,{class:"mr-2",color:"info",size:"small"},{default:n(()=>[a(v(p.length)+"个部分 ",1)]),_:2},1024),t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:Fe(()=>o.deleteBookType("common",x),["stop"])},null,8,["onClick"])]),_:2},1032,["title","onClick"]))),128))]),_:1})]),_:1}),t(M,{class:"my-2"}),t(V,null,{default:n(()=>[t(B,{modelValue:i.newAction,"onUpdate:modelValue":e[2]||(e[2]=p=>i.newAction=p),"append-inner-icon":"mdi-plus",density:"comfortable",label:"添加操作",variant:"outlined","onClick:appendInner":o.addAction,onKeyup:be(o.addAction,["enter"])},null,8,["modelValue","onClick:appendInner","onKeyup"])]),_:1}),t(V,null,{default:n(()=>[t(K,{border:"",density:"compact",rounded:""},{default:n(()=>[(m(!0),D(oe,null,fe(i.config.actions,p=>(m(),w(V,{key:p,title:p,onClick:x=>o.openActionDialog(p)},{append:n(()=>[t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:Fe(x=>o.removeAction(p),["stop"])},null,8,["onClick"])]),_:2},1032,["title","onClick"]))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(we,{modelValue:i.dialog.show,"onUpdate:modelValue":e[5]||(e[5]=p=>i.dialog.show=p),"max-width":"600px"},{default:n(()=>[t(N,null,{default:n(()=>[t(R,{class:"text-h5 pa-4"},{default:n(()=>[a(v(i.dialog.title),1)]),_:1}),t(E,null,{default:n(()=>[t(vt,null,{default:n(()=>[t(ve,null,{default:n(()=>[t(le,{cols:"12"},{default:n(()=>[t(B,{modelValue:i.dialog.editedItem.name,"onUpdate:modelValue":e[3]||(e[3]=p=>i.dialog.editedItem.name=p),label:i.dialog.nameLabel,rules:[p=>!!p||"名称不能为空"],density:"comfortable",variant:"outlined"},null,8,["modelValue","label","rules"])]),_:1}),i.dialog.editedItem.type==="subjectBook"?(m(),w(le,{key:0,cols:"12"},{default:n(()=>[e[10]||(e[10]=h("div",{class:"text-subtitle-2 mb-2"},"所属科目",-1)),t(Y,{color:"primary"},{default:n(()=>[a(v(i.dialog.editedItem.subject),1)]),_:1})]),_:1})):k("",!0),["subjectBook","commonBook"].includes(i.dialog.editedItem.type)?(m(),w(le,{key:1,cols:"12"},{default:n(()=>[t(N,{variant:"outlined"},{default:n(()=>[t(R,{class:"text-subtitle-1 py-2"},{default:n(()=>[...e[11]||(e[11]=[a("需完成部分",-1)])]),_:1}),t(E,{class:"pt-0"},{default:n(()=>[t(K,{border:"",class:"mb-2",density:"compact",rounded:""},{default:n(()=>[(m(!0),D(oe,null,fe(i.dialog.editedItem.tasks,(p,x)=>(m(),w(V,{key:x},{prepend:n(()=>[t(g,{class:"mr-2",icon:"mdi-checkbox-blank-circle-outline",size:"small"})]),append:n(()=>[t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:_=>o.removeTask(x)},null,8,["onClick"])]),default:n(()=>[t(B,{modelValue:i.dialog.editedItem.tasks[x],"onUpdate:modelValue":_=>i.dialog.editedItem.tasks[x]=_,density:"compact","hide-details":"",variant:"plain"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024))),128))]),_:1}),t(B,{modelValue:i.newTask,"onUpdate:modelValue":e[4]||(e[4]=p=>i.newTask=p),"append-inner-icon":"mdi-plus",class:"mt-2",density:"comfortable",label:"添加需完成部分",variant:"outlined","onClick:appendInner":o.addTask,onKeyup:be(o.addTask,["enter"])},null,8,["modelValue","onClick:appendInner","onKeyup"])]),_:1})]),_:1})]),_:1})):k("",!0)]),_:1})]),_:1})]),_:1}),t(ie,{class:"pa-4"},{default:n(()=>[t(q),t(f,{color:"primary",variant:"elevated",onClick:o.saveDialog},{default:n(()=>[...e[12]||(e[12]=[a(" 关闭 ",-1)])]),_:1},8,["onClick"]),t(f,{color:"error",variant:"text",onClick:o.closeDialog},{default:n(()=>[...e[13]||(e[13]=[a(" 取消 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(Ye,{modelValue:i.showSnackbar,"onUpdate:modelValue":e[6]||(e[6]=p=>i.showSnackbar=p),color:i.snackbarColor,timeout:3e3},{default:n(()=>[a(v(i.snackbarText),1)]),_:1},8,["modelValue","color"])]),_:1},8,["loading"])}const It=H(Yn,[["render",Zn],["__scopeId","data-v-67769fa2"]]),Wn={name:"SubjectManagementCard",components:{SettingsCard:Q},data(){return{loading:!1,error:null,subjects:[],originalSubjects:null,newSubjectName:"",showSnackbar:!1,snackbarText:"",snackbarColor:"success",defaultSubjects:[{name:"语文",order:0},{name:"数学",order:1},{name:"英语",order:2},{name:"物理",order:3},{name:"化学",order:4},{name:"生物",order:5},{name:"政治",order:6},{name:"历史",order:7},{name:"地理",order:8},{name:"其他",order:9}]}},computed:{hasChanges(){return this.originalSubjects&&JSON.stringify(this.subjects)!==JSON.stringify(this.originalSubjects)}},created(){this.loadConfig()},methods:{async loadConfig(){this.loading=!0;try{const s=await ce.loadData("classworks-config-subject");s?(this.subjects=s.map((e,l)=>({name:e.name,order:e.order??l})).sort((e,l)=>e.order-l.order),this.originalSubjects=JSON.parse(JSON.stringify(this.subjects)),this.showMessage("配置已加载","success")):(this.subjects=[],this.originalSubjects=[],this.showMessage("使用默认配置","info"))}catch(s){console.error("Failed to load config:",s),this.showMessage("加载失败,可继续编辑当前配置","warning")}this.loading=!1},async saveConfig(){this.loading=!0;try{const s=await ce.saveData("classworks-config-subject",this.subjects);if(s)this.originalSubjects=JSON.parse(JSON.stringify(this.subjects)),this.showMessage("配置已保存","success");else throw new Error(s||"保存失败")}catch(s){console.error("Failed to save config:",s),this.showMessage(`保存失败: ${s.message},请稍后重试`,"error")}this.loading=!1},showMessage(s,e="success"){this.snackbarText=s,this.snackbarColor=e,this.showSnackbar=!0},addSubject(){if(!this.newSubjectName)return;const s={name:this.newSubjectName,order:this.subjects.length};this.subjects.push(s),this.newSubjectName=""},updateSubject(s){const e=this.subjects.findIndex(l=>l.order===s.order);e>-1&&(this.subjects[e]={...s})},deleteSubject(s){const e=this.subjects.findIndex(l=>l.order===s.order);e>-1&&(this.subjects.splice(e,1),this.subjects.forEach((l,u)=>{l.order=u}))},moveSubject(s,e){const l=s+e;if(l>=0&&l{i.order=o})}},resetToDefault(){this.subjects=JSON.parse(JSON.stringify(this.defaultSubjects)),this.showMessage("已重置为默认科目列表","info")}}},Xn={class:"d-flex justify-space-between align-center mb-6"},$n={class:"d-flex flex-column align-center mr-2"};function es(s,e,l,u,i,o){const r=Q;return m(),w(r,{loading:i.loading,border:"",icon:"mdi-book-multiple",title:"科目管理"},{default:n(()=>[i.error?(m(),w(W,{key:0,class:"mb-4",closable:"",type:"error",variant:"tonal"},{default:n(()=>[a(v(i.error),1)]),_:1})):k("",!0),h("div",Xn,[h("div",null,[t(f,{loading:i.loading,class:"mr-2",color:"primary","prepend-icon":"mdi-refresh",size:"large",variant:"text",onClick:o.loadConfig},{default:n(()=>[...e[2]||(e[2]=[a(" 重新加载 ",-1)])]),_:1},8,["loading","onClick"]),t(f,{loading:i.loading,color:"success","prepend-icon":"mdi-content-save",size:"large",onClick:o.saveConfig},{default:n(()=>[...e[3]||(e[3]=[a(" 保存 ",-1)])]),_:1},8,["loading","onClick"]),t(f,{loading:i.loading,class:"mr-2","prepend-icon":"mdi-restore",variant:"text",onClick:o.resetToDefault},{default:n(()=>[...e[4]||(e[4]=[a(" 重置为默认 ",-1)])]),_:1},8,["loading","onClick"])]),o.hasChanges?(m(),w(Y,{key:0,color:"warning",variant:"elevated"},{default:n(()=>[...e[5]||(e[5]=[a(" 有未保存的更改 ",-1)])]),_:1})):k("",!0)]),t(N,{class:"mb-4",variant:"outlined"},{default:n(()=>[t(E,null,{default:n(()=>[t(ve,null,{default:n(()=>[t(le,{cols:"12",sm:"6"},{default:n(()=>[t(B,{modelValue:i.newSubjectName,"onUpdate:modelValue":e[0]||(e[0]=c=>i.newSubjectName=c),rules:[c=>!!c||"科目名称不能为空"],"append-inner-icon":"mdi-plus",density:"comfortable",label:"科目名称",variant:"outlined",onKeyup:be(o.addSubject,["enter"]),"onClick:appendInner":o.addSubject},null,8,["modelValue","rules","onKeyup","onClick:appendInner"])]),_:1})]),_:1})]),_:1})]),_:1}),t(N,{variant:"outlined"},{default:n(()=>[t(E,{class:"pa-0"},{default:n(()=>[t(K,{lines:"one"},{default:n(()=>[(m(!0),D(oe,null,fe(i.subjects,(c,p)=>(m(),w(V,{key:c.order},{prepend:n(()=>[h("div",$n,[t(f,{disabled:p===0,icon:"mdi-chevron-up",size:"small",variant:"text",onClick:x=>o.moveSubject(p,-1)},null,8,["disabled","onClick"]),t(f,{disabled:p===i.subjects.length-1,icon:"mdi-chevron-down",size:"small",variant:"text",onClick:x=>o.moveSubject(p,1)},null,8,["disabled","onClick"])])]),append:n(()=>[t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:x=>o.deleteSubject(c)},null,8,["onClick"])]),default:n(()=>[t(L,null,{default:n(()=>[t(B,{modelValue:c.name,"onUpdate:modelValue":x=>c.name=x,density:"compact","hide-details":"",variant:"plain",onBlur:x=>o.updateSubject(c)},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),t(Ye,{modelValue:i.showSnackbar,"onUpdate:modelValue":e[1]||(e[1]=c=>i.showSnackbar=c),color:i.snackbarColor,timeout:3e3},{default:n(()=>[a(v(i.snackbarText),1)]),_:1},8,["modelValue","color"])]),_:1},8,["loading"])}const Tt=H(Wn,[["render",es],["__scopeId","data-v-f87674cf"]]),ts={};function ns(s,e,l,u,i,o){const r=ye,c=Q;return m(),w(c,{icon:"mdi-cog",title:"编辑设置"},{default:n(()=>[t(K,null,{default:n(()=>[t(r,{"setting-key":"randomPicker.enabled"}),t(M,{class:"my-2"}),t(r,{"setting-key":"randomPicker.mode"}),t(M,{class:"my-2"}),t(r,{"setting-key":"randomPicker.minNumber"}),t(M,{class:"my-2"}),t(r,{"setting-key":"randomPicker.maxNumber"}),t(M,{class:"my-2"}),t(r,{"setting-key":"randomPicker.defaultCount"}),t(M,{class:"my-2"}),t(r,{"setting-key":"randomPicker.animation"})]),_:1})]),_:1})}const Et=H(ts,[["render",ns]]),ss={name:"ThemeSettingsCard",components:{SettingsCard:Q},data(){return{localTheme:S("theme.mode")}},watch:{localTheme(s){_e("theme.mode",s),this.updateTheme(s)}},setup(){return{theme:sn()}},methods:{updateTheme(s){this.theme.global.name.value=s}}};function is(s,e,l,u,i,o){const r=Q;return m(),w(r,{icon:"mdi-palette",title:"主题设置"},{default:n(()=>[t(K,null,{default:n(()=>[t(V,null,{prepend:n(()=>[t(g,{class:"mr-3",icon:"mdi-theme-light-dark"})]),append:n(()=>[t(on,{modelValue:i.localTheme,"onUpdate:modelValue":e[0]||(e[0]=c=>i.localTheme=c),color:"primary",density:"comfortable"},{default:n(()=>[t(f,{value:"light"},{default:n(()=>[t(g,{class:"mr-2",icon:"mdi-white-balance-sunny"}),e[3]||(e[3]=a(" 明亮 ",-1))]),_:1}),t(f,{value:"dark"},{default:n(()=>[t(g,{class:"mr-2",icon:"mdi-moon-waning-crescent"}),e[4]||(e[4]=a(" 暗黑 ",-1))]),_:1})]),_:1},8,["modelValue"])]),default:n(()=>[t(L,null,{default:n(()=>[...e[1]||(e[1]=[a("主题模式",-1)])]),_:1}),t(Z,null,{default:n(()=>[...e[2]||(e[2]=[a("选择明亮或暗黑主题",-1)])]),_:1})]),_:1})]),_:1})]),_:1})}const Nt=H(ss,[["render",is]]),os={name:"DisplaySettingsCard",components:{SettingsCard:Q,SettingItem:ye},data(){return{}}};function ls(s,e,l,u,i,o){const r=ye,c=Q;return m(),w(c,{border:"",icon:"mdi-monitor",title:"显示设置"},{default:n(()=>[t(K,null,{default:n(()=>[t(r,{"setting-key":"display.emptySubjectDisplay"}),t(M,{class:"my-2"}),t(r,{"setting-key":"display.dynamicSort"}),t(M,{class:"my-2"}),t(r,{"setting-key":"display.showRandomButton"}),t(M,{class:"my-2"}),t(r,{"setting-key":"display.showFullscreenButton"}),t(M,{class:"my-2"}),t(r,{"setting-key":"display.cardHoverEffect"}),t(M,{class:"my-2"}),t(r,{"setting-key":"display.enhancedTouchMode"}),t(M,{class:"my-2"}),t(r,{"setting-key":"display.showQuickTools"}),t(M,{class:"my-2"}),t(r,{"setting-key":"display.showAntiScreenBurnCard"}),t(M,{class:"my-2"}),t(r,{"setting-key":"display.showExamScheduleButton"})]),_:1})]),_:1})}const jt=H(os,[["render",ls]]),as={};function rs(s,e,l,u,i,o){const r=ye,c=Q;return m(),w(c,{icon:"mdi-cog",title:"编辑设置"},{default:n(()=>[t(K,null,{default:n(()=>[t(r,{"setting-key":"edit.autoSave"}),t(M,{class:"my-2"}),t(r,{"setting-key":"edit.blockNonTodayAutoSave"}),t(M,{class:"my-2"}),t(r,{"setting-key":"edit.confirmNonTodaySave"}),t(M,{class:"my-2"}),t(r,{"setting-key":"edit.refreshBeforeEdit"}),t(M,{class:"my-2"}),t(r,{"setting-key":"edit.autoSavePromptText"}),t(M,{class:"my-2"}),t(r,{"setting-key":"edit.manualSavePromptText"})]),_:1})]),_:1})}const Ut=H(as,[["render",rs]]),us={name:"RefreshSettingsCard",components:{SettingsCard:Q},data(){return{}}};function ds(s,e,l,u,i,o){const r=ye,c=Q;return m(),w(c,{icon:"mdi-refresh-circle",title:"刷新设置"},{default:n(()=>[t(bt,null,{default:n(()=>[t(K,null,{default:n(()=>[t(r,{"setting-key":"refresh.auto",title:"自动刷新"}),t(M,{class:"my-2"}),t(r,{"setting-key":"refresh.interval",title:"刷新间隔"})]),_:1})]),_:1})]),_:1})}const Mt=H(us,[["render",ds]]),cs={name:"SettingsLinkGenerator",data(){return{selectedItems:[],generatedLink:"",linkCopied:!1,search:"",preconfigForm:{namespace:"",authCode:"",autoExecute:!1},unifiedLink:"",headers:[{title:"",key:"data-table-select"},{title:"设置项",key:"description",sortable:!0},{title:"当前值",key:"value",sortable:!0},{title:"键名",key:"key",class:"d-none d-sm-table-cell",sortable:!0},{title:"状态",key:"isChanged",sortable:!0}]}},computed:{settingItems(){const s=Ee(),e=[];for(const[l,u]of Object.entries(Je)){if(u.requireDeveloper&&!s["developer.enabled"])continue;const i=s[l]!==u.default;e.push({key:l,description:u.description||l,value:s[l],icon:u.icon||"mdi-cog",isChanged:i,defaultValue:u.default})}return e.sort((l,u)=>l.key.localeCompare(u.key))},filteredItems(){if(!this.search)return this.settingItems;const s=this.search.toLowerCase();return s==="已修改"?this.settingItems.filter(e=>e.isChanged):s==="是"||s==="否"?this.settingItems.filter(e=>typeof e.value=="boolean"&&(s==="是"?e.value:!e.value)):this.settingItems.filter(e=>{const l=e.description.toLowerCase(),u=e.key.toLowerCase(),i=String(e.value).toLowerCase(),o=e.isChanged?"已修改":"默认";return l.includes(s)||u.includes(s)||i.includes(s)||o.includes(s)})},hasDisplaySettings(){return this.selectedItems.some(s=>s.startsWith("display."))},hasEditSettings(){return this.selectedItems.some(s=>s.startsWith("edit."))},hasServerSettings(){return this.selectedItems.some(s=>s.startsWith("server."))},hasChangedSettings(){const s=Ee();return this.selectedItems.some(e=>{const l=Je[e];return l&&s[e]!==l.default})}},methods:{handleSelectionChange(s){this.selectedItems=s.map(e=>e.key),this.generateLink()},generateLink(){const s=`${window.location.protocol}//${window.location.host}/`,e=Ee(),l={};for(const u of this.selectedItems)l[u]=e[u];if(Object.keys(l).length===0){this.generatedLink=s;return}try{const u=JSON.stringify(l),o=new TextEncoder().encode(u),c={config:btoa(Array.from(o).map(j=>String.fromCharCode(j)).join(""))},x=new URLSearchParams(window.location.search).get("date");x&&(c.date=x);const _=new URLSearchParams(c).toString();this.generatedLink=`${s}?${_}`}catch(u){console.error("生成链接失败:",u),this.generatedLink="链接生成失败,请重试"}this.linkCopied=!1},async copyLink(){this.generatedLink||this.generateLink();try{await navigator.clipboard.writeText(this.generatedLink),this.linkCopied=!0,setTimeout(()=>{this.linkCopied=!1},3e3)}catch(s){console.error("复制链接失败:",s)}},resetSelection(){this.selectedItems=[],this.generatedLink="",this.linkCopied=!1},selectAll(){this.selectedItems=this.settingItems.map(s=>s.key),this.generateLink()},selectDataSourceSettings(){const s=this.settingItems.filter(e=>e.key.startsWith("server.")&&e.key!=="server.kvToken").map(e=>e.key);this.selectedItems=s,this.generateLink()},selectChangedSettings(){const s=this.settingItems.filter(e=>e.isChanged&&e.key!=="server.kvToken").map(e=>e.key);this.selectedItems=s,this.generateLink()},selectByPrefix(s){const e=this.settingItems.filter(l=>l.key.startsWith(`${s}.`)).map(l=>l.key);this.selectedItems=e},autoGenerateLink(){this.selectedItems.length>0?this.generateLink():this.generatedLink=""},getSettingDescription(s){const e=this.settingItems.find(l=>l.key===s);return e?e.description:s},generateUnifiedLink(){if(this.preconfigForm.namespace.trim())try{const s=`${window.location.protocol}//${window.location.host}/`,e=new URLSearchParams;if(e.append("namespace",this.preconfigForm.namespace.trim()),this.preconfigForm.authCode.trim()&&e.append("authCode",this.preconfigForm.authCode.trim()),this.preconfigForm.autoExecute&&e.append("autoExecute","true"),this.selectedItems.length>0){const l=Ee(),u={};for(const p of this.selectedItems)u[p]=l[p];const i=JSON.stringify(u),r=new TextEncoder().encode(i),c=btoa(Array.from(r).map(p=>String.fromCharCode(p)).join(""));e.append("config",c)}this.unifiedLink=`${s}?${e.toString()}`,this.linkCopied=!1,console.log("生成统一链接:",this.unifiedLink),console.log("包含预配置:",!!this.preconfigForm.namespace),console.log("包含设置数量:",this.selectedItems.length)}catch(s){console.error("生成统一链接失败:",s),this.unifiedLink="链接生成失败,请重试"}},async copyUnifiedLink(){if(this.unifiedLink||this.generateUnifiedLink(),!(!this.unifiedLink||this.unifiedLink.includes("失败")))try{await navigator.clipboard.writeText(this.unifiedLink),this.linkCopied=!0,setTimeout(()=>{this.linkCopied=!1},3e3)}catch(s){console.error("复制统一链接失败:",s)}},openTestLink(){this.unifiedLink&&!this.unifiedLink.includes("失败")&&window.open(this.unifiedLink,"_blank")},clearAll(){this.preconfigForm={namespace:"",authCode:"",autoExecute:!1},this.selectedItems=[],this.unifiedLink="",this.generatedLink="",this.linkCopied=!1}},watch:{selectedItems:{handler(){this.preconfigForm.namespace.trim()&&this.generateUnifiedLink()},deep:!0},"preconfigForm.namespace":{handler(){this.preconfigForm.namespace.trim()?this.generateUnifiedLink():this.unifiedLink=""}},"preconfigForm.authCode":{handler(){this.preconfigForm.namespace.trim()&&this.generateUnifiedLink()}},"preconfigForm.autoExecute":{handler(){this.preconfigForm.namespace.trim()&&this.generateUnifiedLink()}}}},ms={class:"d-flex mb-3 gap-2 flex-wrap"},ps={class:"d-flex align-center mb-3 flex-wrap gap-2"},fs={class:"d-flex align-center"},hs={class:"d-flex align-center"},ws={key:0},gs={key:1},vs={key:2},bs={class:"text-caption text-grey"},ys={class:"d-flex mb-3 gap-2 flex-wrap"},ks={class:"d-flex flex-wrap gap-1"};function xs(s,e,l,u,i,o){return m(),D("div",null,[t(N,{border:"",class:"unified-link-generator"},{default:n(()=>[t(R,{class:"text-h6"},{default:n(()=>[t(g,{class:"mr-2",icon:"mdi-link-variant",start:""}),e[6]||(e[6]=a(" 统一链接生成器 ",-1))]),_:1}),t(E,null,{default:n(()=>[e[35]||(e[35]=h("div",{class:"text-body-2 text-medium-emphasis mb-4"}," 生成包含预配置认证信息和设置的统一链接。可以同时预配置设备认证和应用设置。 ",-1)),t(N,{class:"mb-4",variant:"tonal"},{default:n(()=>[t(R,{class:"text-subtitle-1"},{default:n(()=>[t(g,{start:""},{default:n(()=>[...e[7]||(e[7]=[a("mdi-account-key",-1)])]),_:1}),e[8]||(e[8]=a(" 预配置认证信息 ",-1))]),_:1}),t(E,null,{default:n(()=>[t(ve,null,{default:n(()=>[t(le,{cols:"12",md:"6"},{default:n(()=>[t(B,{modelValue:i.preconfigForm.namespace,"onUpdate:modelValue":e[0]||(e[0]=r=>i.preconfigForm.namespace=r),hint:"设备的命名空间标识符",label:"命名空间","persistent-hint":"",placeholder:"例如: classroom-001","prepend-inner-icon":"mdi-identifier",variant:"outlined"},null,8,["modelValue"])]),_:1}),t(le,{cols:"12",md:"6"},{default:n(()=>[t(B,{modelValue:i.preconfigForm.authCode,"onUpdate:modelValue":e[1]||(e[1]=r=>i.preconfigForm.authCode=r),hint:"留空则需要用户手动输入",label:"认证码","persistent-hint":"",placeholder:"设备认证码(可选)","prepend-inner-icon":"mdi-lock-outline",variant:"outlined"},null,8,["modelValue"])]),_:1})]),_:1}),t(ve,{class:"mt-2"},{default:n(()=>[t(le,{cols:"12"},{default:n(()=>[t(He,{modelValue:i.preconfigForm.autoExecute,"onUpdate:modelValue":e[2]||(e[2]=r=>i.preconfigForm.autoExecute=r),density:"compact",hint:"启用后会自动尝试认证,即使没有认证码也会尝试",label:"自动执行认证","persistent-hint":""},null,8,["modelValue"])]),_:1})]),_:1}),i.preconfigForm.namespace?(m(),w(W,{key:0,class:"mt-3",type:"info",variant:"tonal"},{default:n(()=>[e[13]||(e[13]=h("div",{class:"text-subtitle-2 mb-2"},"预配置信息:",-1)),t(Y,{class:"mr-2 mb-1",size:"small"},{default:n(()=>[t(g,{size:"small",start:""},{default:n(()=>[...e[9]||(e[9]=[a("mdi-identifier",-1)])]),_:1}),a(" 命名空间: "+v(i.preconfigForm.namespace),1)]),_:1}),i.preconfigForm.authCode?(m(),w(Y,{key:0,class:"mr-2 mb-1",color:"warning",size:"small"},{default:n(()=>[t(g,{size:"small",start:""},{default:n(()=>[...e[10]||(e[10]=[a("mdi-lock",-1)])]),_:1}),a(" 认证码: "+v(i.preconfigForm.authCode.length>8?i.preconfigForm.authCode.substring(0,8)+"...":i.preconfigForm.authCode),1)]),_:1})):(m(),w(Y,{key:1,class:"mr-2 mb-1",color:"grey",size:"small"},{default:n(()=>[t(g,{size:"small",start:""},{default:n(()=>[...e[11]||(e[11]=[a("mdi-lock-open",-1)])]),_:1}),e[12]||(e[12]=a(" 无认证码 ",-1))]),_:1})),t(Y,{color:i.preconfigForm.autoExecute?"success":"orange",class:"mr-2 mb-1",size:"small"},{default:n(()=>[t(g,{size:"small",start:""},{default:n(()=>[a(v(i.preconfigForm.autoExecute?"mdi-play-circle":"mdi-hand-back-left"),1)]),_:1}),a(" "+v(i.preconfigForm.autoExecute?"自动认证":"手动认证"),1)]),_:1},8,["color"])]),_:1})):k("",!0)]),_:1})]),_:1}),t(N,{class:"mb-4",variant:"tonal"},{default:n(()=>[t(R,{class:"text-subtitle-1"},{default:n(()=>[t(g,{start:""},{default:n(()=>[...e[14]||(e[14]=[a("mdi-cog-transfer",-1)])]),_:1}),e[15]||(e[15]=a(" 设置分享(可选) ",-1))]),_:1}),t(E,null,{default:n(()=>[e[22]||(e[22]=h("div",{class:"text-body-2 text-medium-emphasis mb-3"}," 选择需要包含在链接中的设置项。如果不选择任何设置,将只生成预配置认证链接。 ",-1)),h("div",ms,[t(f,{color:"primary","prepend-icon":"mdi-server-network",size:"small",variant:"tonal",onClick:o.selectDataSourceSettings},{default:n(()=>[...e[16]||(e[16]=[a(" 数据源设置 ",-1)])]),_:1},8,["onClick"]),t(f,{color:"primary","prepend-icon":"mdi-compare",size:"small",variant:"tonal",onClick:o.selectChangedSettings},{default:n(()=>[...e[17]||(e[17]=[a(" 已变更设置 ",-1)])]),_:1},8,["onClick"]),t(f,{color:"success","prepend-icon":"mdi-select-all",size:"small",variant:"tonal",onClick:o.selectAll},{default:n(()=>[...e[18]||(e[18]=[a(" 全选 ",-1)])]),_:1},8,["onClick"]),t(f,{color:"error","prepend-icon":"mdi-select-remove",size:"small",variant:"tonal",onClick:o.resetSelection},{default:n(()=>[...e[19]||(e[19]=[a(" 清除选择 ",-1)])]),_:1},8,["onClick"])]),h("div",ps,[t(Y,{class:"mr-2",color:"primary"},{default:n(()=>[a(" 已选 "+v(i.selectedItems.length)+" 项设置 ",1)]),_:1}),i.selectedItems.length>0?(m(),D(oe,{key:0},[(m(!0),D(oe,null,fe(i.selectedItems.slice(0,3),r=>(m(),w(Y,{key:r,class:"mr-1",size:"small",variant:"text"},{default:n(()=>[a(v(o.getSettingDescription(r)),1)]),_:2},1024))),128)),i.selectedItems.length>3?(m(),w(Y,{key:0,color:"grey",size:"small",variant:"text"},{default:n(()=>[a(" +"+v(i.selectedItems.length-3)+" 更多 ",1)]),_:1})):k("",!0)],64)):k("",!0)]),t(yt,{variant:"accordion"},{default:n(()=>[t(kt,null,{default:n(()=>[t(xt,null,{default:n(({expanded:r})=>[h("div",fs,[t(g,{class:"mr-2"},{default:n(()=>[a(v(r?"mdi-chevron-up":"mdi-chevron-down"),1)]),_:2},1024),e[20]||(e[20]=a(" 显示设置列表详情 ",-1))])]),_:1}),t(St,null,{default:n(()=>[t(B,{modelValue:i.search,"onUpdate:modelValue":e[3]||(e[3]=r=>i.search=r),class:"mb-4",clearable:"","hide-details":"",label:"搜索设置","prepend-inner-icon":"mdi-magnify","single-line":""},null,8,["modelValue"]),t(Ct,{modelValue:i.selectedItems,"onUpdate:modelValue":e[4]||(e[4]=r=>i.selectedItems=r),headers:i.headers,items:o.filteredItems,"items-per-page":o.settingItems.length,"sort-by":[{key:"isChanged",order:"desc"}],class:"rounded setting-table",density:"compact","item-value":"key","show-select":"","onUpdate:selected":o.handleSelectionChange},{"item.description":n(({item:r})=>[h("div",hs,[t(g,{icon:r.icon,class:"mr-2",size:"small"},null,8,["icon"]),a(" "+v(r.description)+" ",1),r.key==="server.kvToken"?(m(),w(Y,{key:0,class:"ml-2",color:"error",size:"x-small"},{default:n(()=>[...e[21]||(e[21]=[a(" 敏感 ",-1)])]),_:1})):k("",!0)])]),"item.value":n(({item:r})=>[typeof r.value=="boolean"?(m(),D("span",ws,v(r.value?"是":"否"),1)):r.key==="server.kvToken"&&r.value?(m(),D("span",gs,v(r.value.substring(0,8))+"... ",1)):(m(),D("span",vs,v(r.value),1))]),"item.key":n(({item:r})=>[h("span",bs,v(r.key),1)]),"item.isChanged":n(({item:r})=>[t(Y,{color:r.isChanged?"warning":"success",text:r.isChanged?"已修改":"默认",density:"compact",size:"x-small"},null,8,["color","text"])]),_:2},1032,["modelValue","headers","items","items-per-page","onUpdate:selected"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(N,{class:"mb-4",variant:"outlined"},{default:n(()=>[t(R,{class:"text-subtitle-1"},{default:n(()=>[t(g,{start:""},{default:n(()=>[...e[23]||(e[23]=[a("mdi-link",-1)])]),_:1}),e[24]||(e[24]=a(" 生成的统一链接 ",-1))]),_:1}),t(E,null,{default:n(()=>[h("div",ys,[t(f,{disabled:!i.preconfigForm.namespace.trim(),color:"primary","prepend-icon":"mdi-auto-fix",variant:"flat",onClick:o.generateUnifiedLink},{default:n(()=>[...e[25]||(e[25]=[a(" 生成统一链接 ",-1)])]),_:1},8,["disabled","onClick"]),t(f,{disabled:!i.unifiedLink,color:"success","prepend-icon":"mdi-test-tube",variant:"tonal",onClick:o.openTestLink},{default:n(()=>[...e[26]||(e[26]=[a(" 测试链接 ",-1)])]),_:1},8,["disabled","onClick"]),t(f,{color:"error","prepend-icon":"mdi-delete",variant:"tonal",onClick:o.clearAll},{default:n(()=>[...e[27]||(e[27]=[a(" 清空所有 ",-1)])]),_:1},8,["onClick"])]),t(B,{modelValue:i.unifiedLink,"onUpdate:modelValue":e[5]||(e[5]=r=>i.unifiedLink=r),"append-inner-icon":i.linkCopied?"mdi-check":"mdi-content-copy",placeholder:i.preconfigForm.namespace?"点击「生成统一链接」按钮":"请先输入命名空间",class:"mb-3",label:"统一链接",readonly:"",variant:"outlined","onClick:appendInner":o.copyUnifiedLink},null,8,["modelValue","append-inner-icon","placeholder","onClick:appendInner"]),i.unifiedLink?(m(),w(W,{key:0,class:"mb-3",type:"success",variant:"tonal"},{default:n(()=>[e[33]||(e[33]=h("div",{class:"text-subtitle-2 mb-2"},"链接包含内容:",-1)),h("div",ks,[t(Y,{color:"primary",size:"small"},{default:n(()=>[t(g,{size:"small",start:""},{default:n(()=>[...e[28]||(e[28]=[a("mdi-account-key",-1)])]),_:1}),e[29]||(e[29]=a(" 预配置认证 ",-1))]),_:1}),i.selectedItems.length>0?(m(),w(Y,{key:0,color:"secondary",size:"small"},{default:n(()=>[t(g,{size:"small",start:""},{default:n(()=>[...e[30]||(e[30]=[a("mdi-cog",-1)])]),_:1}),a(" "+v(i.selectedItems.length)+" 项设置 ",1)]),_:1})):(m(),w(Y,{key:1,color:"grey",size:"small"},{default:n(()=>[t(g,{size:"small",start:""},{default:n(()=>[...e[31]||(e[31]=[a("mdi-cog-off",-1)])]),_:1}),e[32]||(e[32]=a(" 无额外设置 ",-1))]),_:1}))])]),_:1})):k("",!0)]),_:1})]),_:1}),t(W,{type:"warning",variant:"tonal"},{default:n(()=>[...e[34]||(e[34]=[h("div",{class:"text-subtitle-2 mb-2"},"⚠️ 安全提醒",-1),h("ul",{class:"text-body-2 pl-4"},[h("li",null,"认证码和设置信息会在URL中传输,请谨慎分发"),h("li",null,"建议仅在受信任的网络环境中使用"),h("li",null,"生产环境建议使用HTTPS协议"),h("li",null,"数据源设置和已变更设置默认不包含敏感Token信息")],-1)])]),_:1})]),_:1})]),_:1})])}const Pt=H(cs,[["render",xs]]),Ss={name:"UnsavedWarning",props:{show:Boolean,message:{type:String,default:"未保存"}}},Cs={class:"warning-container"};function _s(s,e,l,u,i,o){return m(),D("div",Cs,[l.show?(m(),w(Y,{key:0,class:"warning-chip",color:"warning",size:"small"},{default:n(()=>[a(v(l.message),1)]),_:1})):k("",!0)])}const Bt=H(Ss,[["render",_s],["__scopeId","data-v-0f36b655"]]),Vs=an({disabled:Boolean,modelValue:{type:Boolean,default:null},...dn()},"VHover"),Ds=ln()({name:"VHover",props:Vs(),emits:{"update:modelValue":s=>!0},setup(s,e){let{slots:l}=e;const u=rn(s,"modelValue"),{runOpenDelay:i,runCloseDelay:o}=un(s,r=>!s.disabled&&(u.value=r));return()=>{var r;return(r=l.default)==null?void 0:r.call(l,{isHovering:u.value,props:{onMouseenter:i,onMouseleave:o}})}}}),As={name:"StudentListCard",components:{UnsavedWarning:Bt},props:{isMobile:Boolean},data(){return{newStudentName:"",editState:{index:-1,name:""},modelValue:{list:[],text:"",advanced:!1},loading:!1,error:null,lastSavedData:null,unsavedChanges:!1}},watch:{modelValue:{handler(s){this.lastSavedData&&(this.unsavedChanges=JSON.stringify(s.list)!==JSON.stringify(this.lastSavedData)),this.modelValue.advanced||(this.modelValue.text=s.list.slice().sort((e,l)=>e.id-l.id).map(e=>e.name).join(` -`))},deep:!0}},mounted(){this.loadStudents()},methods:{async loadStudents(){var s;this.error=null;try{if(this.loading=!0,!S("server.classNumber"))throw new Error("请先设置班号");try{const l=await ce.loadData("classworks-list-main");l.success!=!1&&Array.isArray(l)&&(this.modelValue.list=l.map((u,i)=>typeof u=="string"?{id:i+1,name:u}:{id:u.id||i+1,name:u.name||u.toString()}),this.modelValue.list.sort((u,i)=>u.id-i.id),this.modelValue.text=this.modelValue.list.map(u=>u.name).join(` -`),this.lastSavedData=JSON.parse(JSON.stringify(this.modelValue.list)),this.unsavedChanges=!1)}catch(l){console.warn("Failed to load student list from dedicated key, falling back to config",l)}}catch(e){console.error("加载学生列表失败:",e),this.error=e.message||"加载失败,请检查设置",(s=this.$message)==null||s.error("加载失败",this.error)}finally{this.loading=!1}},async saveStudents(){var s,e,l;try{if(!S("server.classNumber"))throw new Error("请先设置班号");const i=this.modelValue.list.slice().sort((r,c)=>r.id-c.id).map((r,c)=>({id:c+1,name:r.name})),o=await ce.saveData("classworks-list-main",i);if(o.success===!1)throw new Error(((s=o.error)==null?void 0:s.message)||"保存失败");this.modelValue.list=i,this.lastSavedData=JSON.parse(JSON.stringify(i)),this.unsavedChanges=!1,(e=this.$message)==null||e.success("保存成功","学生列表已更新")}catch(u){console.error("保存学生列表失败:",u),(l=this.$message)==null||l.error("保存失败",u.message||"请重试")}},toggleAdvanced(){this.modelValue.advanced=!this.modelValue.advanced},handleTextInput(s){if(!this.modelValue.advanced)return;const e=s.split(` -`).filter(o=>o.trim()),l=new Map(this.modelValue.list.map(o=>[o.name,o.id]));let u=Math.max(0,...this.modelValue.list.map(o=>o.id));const i=e.map(o=>(o=o.trim(),l.has(o)?{id:l.get(o),name:o}:{id:++u,name:o}));this.modelValue.list=i},addStudent(){const s=this.newStudentName.trim();if(s&&!this.modelValue.list.some(e=>e.name===s)){const e=Math.max(0,...this.modelValue.list.map(l=>l.id));this.modelValue.list.push({id:e+1,name:s}),this.newStudentName=""}},startEdit(s,e){this.editState.index=s,this.editState.name=e.name},saveEdit(){if(this.editState.index!==-1){const s=this.editState.name.trim();s&&s!==this.modelValue.list[this.editState.index].name&&(this.modelValue.list[this.editState.index].name=s),this.editState.index=-1,this.editState.name=""}},removeStudent(s){s!==void 0&&this.modelValue.list.splice(s,1)},moveStudent(s,e){if(e==="top"){if(s>0){const l=this.modelValue.list[s];this.modelValue.list.splice(s,1),this.modelValue.list.unshift(l),this.modelValue.list.forEach((u,i)=>u.id=i+1)}}else{const l=e==="up"?s-1:s+1;l>=0&&l{const u=nt(e.name,{toneType:"none"}),i=nt(l.name,{toneType:"none"});return u.localeCompare(i)});s.forEach((e,l)=>e.id=l+1),this.modelValue.list=s}}},Is={key:0},Ts=["onClick"],Es={key:1,class:"pt-2"};function Ns(s,e,l,u,i,o){const r=Bt;return m(),w(N,{class:st({"unsaved-changes":i.unsavedChanges}),color:i.unsavedChanges?"warning-subtle":void 0,border:""},{default:n(()=>[t(Le,null,{prepend:n(()=>[t(g,{class:"mr-2",icon:"mdi-account-group",size:"large"})]),append:n(()=>[t(r,{show:i.unsavedChanges,message:"有未保存的更改"},null,8,["show"]),t(f,{disabled:i.modelValue.list.length===0,class:"mr-2","prepend-icon":"mdi-sort-alphabetical-variant",variant:"text",onClick:o.sortStudentsByPinyin},{default:n(()=>[...e[4]||(e[4]=[a(" 按姓名首字母排序 ",-1)])]),_:1},8,["disabled","onClick"]),t(f,{color:i.modelValue.advanced?"primary":void 0,"prepend-icon":"mdi-code-braces",variant:"text",onClick:o.toggleAdvanced},{default:n(()=>[a(v(i.modelValue.advanced?"返回基础编辑":"高级编辑"),1)]),_:1},8,["color","onClick"])]),default:n(()=>[t(R,{class:"text-h6"},{default:n(()=>[...e[3]||(e[3]=[a("学生列表",-1)])]),_:1})]),_:1}),t(E,null,{default:n(()=>[i.loading?(m(),w(Ge,{key:0,class:"mb-4",color:"primary",indeterminate:""})):k("",!0),i.error?(m(),w(W,{key:1,class:"mb-4",closable:"",type:"error",variant:"tonal"},{default:n(()=>[a(v(i.error),1)]),_:1})):k("",!0),t(cn,null,{default:n(()=>[i.modelValue.advanced?(m(),D("div",Es,[t(Pe,{modelValue:i.modelValue.text,"onUpdate:modelValue":[e[2]||(e[2]=c=>i.modelValue.text=c),o.handleTextInput],hint:"使用文本编辑模式批量编辑学生名单,保存时会自动去除空行",label:"批量编辑学生列表","persistent-hint":"",placeholder:"每行输入一个学生姓名",rows:"10",variant:"outlined"},null,8,["modelValue","onUpdate:modelValue"])])):(m(),D("div",Is,[t(ve,{class:"mb-6"},{default:n(()=>[t(le,{cols:"12",md:"4",sm:"6"},{default:n(()=>[t(B,{modelValue:i.newStudentName,"onUpdate:modelValue":e[0]||(e[0]=c=>i.newStudentName=c),class:"mb-4","hide-details":"",label:"添加学生",placeholder:"输入学生姓名后回车添加","prepend-inner-icon":"mdi-account-plus",variant:"outlined",onKeyup:be(o.addStudent,["enter"])},{append:n(()=>[t(f,{disabled:!i.newStudentName.trim(),color:"primary",icon:"mdi-plus",variant:"text",onClick:o.addStudent},null,8,["disabled","onClick"])]),_:1},8,["modelValue","onKeyup"])]),_:1})]),_:1}),t(ve,null,{default:n(()=>[(m(!0),D(oe,null,fe(i.modelValue.list,(c,p)=>(m(),w(le,{key:p,cols:"12",lg:"3",md:"4",sm:"6"},{default:n(()=>[t(Ds,null,{default:n(({isHovering:x,props:_})=>[t(N,Qe({elevation:l.isMobile?1:x?4:1,border:"",class:"student-card"},{ref_for:!0},_),{default:n(()=>[t(E,{class:"d-flex align-center pa-3"},{default:n(()=>[t(gt,{"open-on-hover":!l.isMobile,location:"bottom"},{activator:n(({props:j})=>[t(f,Qe({class:"mr-3 font-weight-medium",size:"small"},{ref_for:!0},j,{variant:"tonal"}),{default:n(()=>[a(v(p+1),1)]),_:2},1040)]),default:n(()=>[t(K,{density:"compact",nav:""},{default:n(()=>[t(V,{disabled:p===0,"prepend-icon":"mdi-arrow-up-bold",onClick:j=>o.moveStudent(p,"top")},{default:n(()=>[...e[5]||(e[5]=[a(" 置顶 ",-1)])]),_:1},8,["disabled","onClick"]),t(M),t(V,{disabled:p===0,"prepend-icon":"mdi-arrow-up",onClick:j=>o.moveStudent(p,"up")},{default:n(()=>[...e[6]||(e[6]=[a(" 上移 ",-1)])]),_:1},8,["disabled","onClick"]),t(V,{disabled:p===i.modelValue.list.length-1,"prepend-icon":"mdi-arrow-down",onClick:j=>o.moveStudent(p,"down")},{default:n(()=>[...e[7]||(e[7]=[a(" 下移 ",-1)])]),_:1},8,["disabled","onClick"])]),_:2},1024)]),_:2},1032,["open-on-hover"]),i.editState.index===p?(m(),w(B,{key:0,modelValue:i.editState.name,"onUpdate:modelValue":e[1]||(e[1]=j=>i.editState.name=j),autofocus:"",class:"flex-grow-1",density:"compact","hide-details":"",variant:"underlined",onBlur:o.saveEdit,onKeyup:be(o.saveEdit,["enter"])},null,8,["modelValue","onBlur","onKeyup"])):(m(),D("span",{key:1,class:"text-body-1 flex-grow-1",onClick:j=>o.handleClick(p,c)},v(c.name),9,Ts)),h("div",{class:st([{"opacity-100":x||l.isMobile},"d-flex gap-1 action-buttons"])},[t(f,{color:"primary",icon:"mdi-pencil",size:"small",variant:"text",onClick:j=>o.startEdit(p,c)},null,8,["onClick"]),t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:j=>o.removeStudent(p)},null,8,["onClick"])],2)]),_:2},1024)]),_:2},1040,["elevation"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]))]),_:1}),t(ve,{class:"mt-6"},{default:n(()=>[t(le,{class:"d-flex gap-2",cols:"12"},{default:n(()=>[t(f,{disabled:i.loading,loading:i.loading,color:"primary","prepend-icon":"mdi-content-save",size:"large",onClick:o.saveStudents},{default:n(()=>[...e[8]||(e[8]=[a(" 保存名单 ",-1)])]),_:1},8,["disabled","loading","onClick"]),t(f,{disabled:i.loading,loading:i.loading,color:"error","prepend-icon":"mdi-refresh",size:"large",variant:"outlined",onClick:o.loadStudents},{default:n(()=>[...e[9]||(e[9]=[a(" 重载名单 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["class","color"])}const Lt=H(As,[["render",Ns],["__scopeId","data-v-7e220985"]]),js={name:"KvDatabaseCard",components:{SettingsCard:Q},data(){return{loading:!1,loadingData:!1,savingData:!1,deletingData:!1,kvData:[],searchQuery:"",viewDialog:!1,editDialog:!1,deleteDialog:!1,createDialog:!1,cloudUrlDialog:!1,selectedItem:null,editingItem:null,itemToDelete:null,selectedCloudItem:null,gettingCloudUrl:!1,cloudUrlResult:null,cloudUrlError:null,cloudUrlOptions:{migrateFromLocal:!0,autoConfigureCloud:!0},editingData:"",newKey:"",newData:"",tableHeaders:[{title:"键名",key:"key",sortable:!0},{title:"操作",key:"actions",sortable:!1,width:"120px"}]}},computed:{currentProvider(){return S("server.provider")},isKvProvider(){return this.currentProvider==="kv-local"||this.currentProvider==="kv-server"||this.currentProvider==="classworkscloud"},connectionStatus(){return this.isKvProvider?this.currentProvider==="kv-local"?"本地数据库":"服务器数据库":"当前数据提供者不支持KV数据库管理"},connectionIcon(){return this.isKvProvider?this.currentProvider==="kv-local"?"mdi-database":"mdi-database-sync":"mdi-database-off"},connectionColor(){return this.isKvProvider?"success":"error"},filteredKvData(){return this.searchQuery?this.kvData.filter(s=>s.key.toLowerCase().includes(this.searchQuery.toLowerCase())):this.kvData},isValidJson(){if(!this.editingData)return!0;try{return JSON.parse(this.editingData),!0}catch{return!1}},isValidNewJson(){if(!this.newData)return!0;try{return JSON.parse(this.newData),!0}catch{return!1}},isValidKey(){return!this.newKey||this.newKey.trim()===""?!1:!this.kvData.some(s=>s.key===this.newKey.trim())}},async mounted(){this.isKvProvider&&await this.loadKvData()},methods:{async refreshConnection(){this.loading=!0;try{await new Promise(s=>setTimeout(s,500)),this.$message.success("连接状态已刷新")}catch(s){this.$message.error("刷新失败",s.message)}finally{this.loading=!1}},async loadKvData(){var s;if(!this.isKvProvider){this.$message.warning("当前数据提供者不支持KV数据库管理");return}this.loadingData=!0;try{this.kvData=[];const e=await ce.loadKeys({sortBy:"key",sortDir:"asc",limit:1e3});if(e.success===!1)throw new Error(((s=e.error)==null?void 0:s.message)||"获取键名列表失败");this.kvData=e.keys.map(l=>({key:l,value:null,loaded:!1})),this.$message.success("键名加载完成",`共找到 ${this.kvData.length} 个键,总计 ${e.total_rows} 个键`)}catch(e){this.$message.error("加载数据失败",e.message)}finally{this.loadingData=!1}},async viewItem(s){this.selectedItem=s,this.viewDialog=!0,(!s.loaded||s.value===null)&&await this.loadItemData(s)},async editItem(s){this.editingItem=s,(!s.loaded||s.value===null)&&await this.loadItemData(s),this.editingData=this.formatJsonData(s.value),this.editDialog=!0},async loadItemData(s){try{const e=await ce.loadData(s.key);if(e&&e.success!==!1)s.value=e,s.loaded=!0;else throw new Error("数据加载失败")}catch(e){this.$message.error("加载数据失败",e.message),s.value=null,s.loaded=!1}},closeEditDialog(){this.editDialog=!1,this.editingItem=null,this.editingData=""},createNewItem(){this.newKey="",this.newData=`{ - "example": "value" -}`,this.createDialog=!0},closeCreateDialog(){this.createDialog=!1,this.newKey="",this.newData=""},async saveNewData(){var s;if(!(!this.isValidKey||!this.isValidNewJson)){this.savingData=!0;try{const e=JSON.parse(this.newData),l=this.newKey.trim(),u=await ce.saveData(l,e);if(u&&!u.error)this.kvData.push({key:l,value:e,loaded:!0}),this.$message.success("数据创建成功"),this.closeCreateDialog();else throw new Error(((s=u.error)==null?void 0:s.message)||"创建失败")}catch(e){this.$message.error("创建失败",e.message)}finally{this.savingData=!1}}},async saveEditedData(){var s;if(!(!this.isValidJson||!this.editingItem)){this.savingData=!0;try{const e=JSON.parse(this.editingData),l=await ce.saveData(this.editingItem.key,e);if(l&&!l.error){const u=this.kvData.findIndex(i=>i.key===this.editingItem.key);u!==-1&&(this.kvData[u].value=e,this.kvData[u].loaded=!0),this.$message.success("数据保存成功"),this.closeEditDialog()}else throw new Error(((s=l.error)==null?void 0:s.message)||"保存失败")}catch(e){this.$message.error("保存失败",e.message)}finally{this.savingData=!1}}},confirmDelete(s){this.itemToDelete=s,this.deleteDialog=!0},async deleteItem(){if(this.itemToDelete){this.deletingData=!0;try{this.currentProvider==="kv-local"?await(await vn("ClassworksDB",2)).transaction("kv","readwrite").objectStore("kv").delete(this.itemToDelete.key):await ce.saveData(this.itemToDelete.key,null);const s=this.kvData.findIndex(e=>e.key===this.itemToDelete.key);s!==-1&&this.kvData.splice(s,1),this.$message.success("数据删除成功"),this.deleteDialog=!1,this.itemToDelete=null}catch(s){this.$message.error("删除失败",s.message)}finally{this.deletingData=!1}}},formatJsonData(s){try{return JSON.stringify(s,null,2)}catch{return String(s)}},async copyToClipboard(s){try{const e=this.formatJsonData(s);await navigator.clipboard.writeText(e),this.$message.success("数据已复制到剪贴板")}catch(e){this.$message.error("复制失败",e.message)}},async getCloudUrl(s){this.selectedCloudItem=s,this.cloudUrlResult=null,this.cloudUrlError=null,this.cloudUrlDialog=!0,await this.fetchCloudUrl()},async fetchCloudUrl(){var s;if(this.selectedCloudItem){this.gettingCloudUrl=!0,this.cloudUrlError=null;try{const e=await ce.getKeyCloudUrl(this.selectedCloudItem.key,this.cloudUrlOptions);e.success?(this.cloudUrlResult=e,this.$message.success("云端地址获取成功")):(this.cloudUrlError=((s=e.error)==null?void 0:s.message)||"获取云端地址失败",this.$message.error("获取失败",this.cloudUrlError))}catch(e){this.cloudUrlError=e.message||"获取云端地址时发生错误",this.$message.error("获取失败",this.cloudUrlError)}finally{this.gettingCloudUrl=!1}}},async refreshCloudUrl(){await this.fetchCloudUrl()},async copyCloudUrl(){var s;if((s=this.cloudUrlResult)!=null&&s.url)try{await navigator.clipboard.writeText(this.cloudUrlResult.url),this.$message.success("云端地址已复制到剪贴板")}catch(e){this.$message.error("复制失败",e.message)}},openCloudUrl(){var s;if((s=this.cloudUrlResult)!=null&&s.url)try{window.open(this.cloudUrlResult.url,"_blank")}catch(e){this.$message.error("打开链接失败",e.message)}}}},Us={class:"text-primary"},Ms={class:"mt-2"},Ps={key:0,class:"mb-2"},Bs={key:1,class:"mb-2"};function Ls(s,e,l,u,i,o){const r=Q;return m(),w(r,{loading:i.loading,icon:"mdi-database-edit",title:"KV数据库管理"},{default:n(()=>[t(K,null,{default:n(()=>[t(V,null,{prepend:n(()=>[t(g,{color:o.connectionColor,icon:o.connectionIcon,class:"mr-3"},null,8,["color","icon"])]),append:n(()=>[t(f,{loading:i.loading,variant:"tonal",onClick:o.refreshConnection},{default:n(()=>[...e[18]||(e[18]=[a(" 刷新 ",-1)])]),_:1},8,["loading","onClick"])]),default:n(()=>[t(L,null,{default:n(()=>[...e[17]||(e[17]=[a("数据库状态",-1)])]),_:1}),t(Z,null,{default:n(()=>[a(v(o.connectionStatus),1)]),_:1})]),_:1}),t(M,{class:"my-2"}),t(V,null,{prepend:n(()=>[t(g,{class:"mr-3",icon:"mdi-format-list-bulleted"})]),append:n(()=>[t(it,{variant:"tonal"},{default:n(()=>[t(f,{loading:i.loadingData,onClick:o.loadKvData},{default:n(()=>[...e[20]||(e[20]=[a(" 加载数据 ",-1)])]),_:1},8,["loading","onClick"]),t(f,{disabled:!o.isKvProvider,onClick:o.createNewItem},{default:n(()=>[t(g,{class:"mr-1",icon:"mdi-plus"}),e[21]||(e[21]=a(" 新建 ",-1))]),_:1},8,["disabled","onClick"])]),_:1})]),default:n(()=>[t(L,null,{default:n(()=>[...e[19]||(e[19]=[a("数据条目",-1)])]),_:1}),t(Z,null,{default:n(()=>[a("共 "+v(i.kvData.length)+" 条记录",1)]),_:1})]),_:1})]),_:1}),i.kvData.length>0?(m(),w(N,{key:0,class:"mt-4",variant:"outlined"},{default:n(()=>[t(R,{class:"d-flex align-center"},{default:n(()=>[t(g,{class:"mr-2",icon:"mdi-table"}),e[22]||(e[22]=a(" KV数据列表 ",-1)),t(q),t(B,{modelValue:i.searchQuery,"onUpdate:modelValue":e[0]||(e[0]=c=>i.searchQuery=c),clearable:"",density:"compact","hide-details":"",label:"搜索键名","prepend-inner-icon":"mdi-magnify",style:{"max-width":"300px"},variant:"outlined"},null,8,["modelValue"])]),_:1}),t(Ct,{headers:i.tableHeaders,items:o.filteredKvData,"items-per-page":10,loading:i.loadingData,class:"elevation-0","item-value":"key"},{"item.key":n(({item:c})=>[h("code",Us,v(c.key),1)]),"item.actions":n(({item:c})=>[t(it,{density:"compact",variant:"text"},{default:n(()=>[t(f,{icon:"mdi-eye",size:"small",title:"查看",onClick:p=>o.viewItem(c)},null,8,["onClick"]),t(f,{icon:"mdi-pencil",size:"small",title:"编辑",onClick:p=>o.editItem(c)},null,8,["onClick"]),t(f,{color:"primary",icon:"mdi-cloud-download",size:"small",title:"获取云端地址",onClick:p=>o.getCloudUrl(c)},null,8,["onClick"]),t(f,{color:"error",icon:"mdi-delete",size:"small",title:"删除",onClick:p=>o.confirmDelete(c)},null,8,["onClick"])]),_:2},1024)]),_:2},1032,["headers","items","loading"])]),_:1})):k("",!0),t(we,{modelValue:i.viewDialog,"onUpdate:modelValue":e[4]||(e[4]=c=>i.viewDialog=c),"max-width":"800px"},{default:n(()=>[t(N,null,{default:n(()=>[t(R,{class:"d-flex align-center"},{default:n(()=>[t(g,{class:"mr-2",icon:"mdi-eye"}),e[23]||(e[23]=a(" 查看数据 ",-1)),t(q),t(f,{icon:"mdi-close",variant:"text",onClick:e[1]||(e[1]=c=>i.viewDialog=!1)})]),_:1}),i.selectedItem?(m(),w(Ne,{key:0},{default:n(()=>[e[24]||(e[24]=a(" 键名: ",-1)),h("code",null,v(i.selectedItem.key),1)]),_:1})):k("",!0),t(E,null,{default:n(()=>[i.selectedItem?(m(),w(Pe,{key:0,"model-value":o.formatJsonData(i.selectedItem.value),class:"font-monospace",label:"数据内容",readonly:"",rows:"15",variant:"outlined"},null,8,["model-value"])):k("",!0)]),_:1}),t(ie,null,{default:n(()=>[t(q),t(f,{variant:"tonal",onClick:e[2]||(e[2]=c=>{var p;return o.copyToClipboard((p=i.selectedItem)==null?void 0:p.value)})},{default:n(()=>[t(g,{class:"mr-1",icon:"mdi-content-copy"}),e[25]||(e[25]=a(" 复制数据 ",-1))]),_:1}),t(f,{variant:"text",onClick:e[3]||(e[3]=c=>i.viewDialog=!1)},{default:n(()=>[...e[26]||(e[26]=[a(" 关闭 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(we,{modelValue:i.editDialog,"onUpdate:modelValue":e[6]||(e[6]=c=>i.editDialog=c),"max-width":"800px"},{default:n(()=>[t(N,null,{default:n(()=>[t(R,{class:"d-flex align-center"},{default:n(()=>[t(g,{class:"mr-2",icon:"mdi-pencil"}),e[27]||(e[27]=a(" 编辑数据 ",-1)),t(q),t(f,{icon:"mdi-close",variant:"text",onClick:o.closeEditDialog},null,8,["onClick"])]),_:1}),i.editingItem?(m(),w(Ne,{key:0},{default:n(()=>[e[28]||(e[28]=a(" 键名: ",-1)),h("code",null,v(i.editingItem.key),1)]),_:1})):k("",!0),t(E,null,{default:n(()=>[t(Pe,{modelValue:i.editingData,"onUpdate:modelValue":e[5]||(e[5]=c=>i.editingData=c),error:!o.isValidJson,"error-messages":o.isValidJson?[]:["请输入有效的JSON格式"],class:"font-monospace",label:"数据内容 (JSON格式)",rows:"15",variant:"outlined"},null,8,["modelValue","error","error-messages"])]),_:1}),t(ie,null,{default:n(()=>[t(q),t(f,{variant:"text",onClick:o.closeEditDialog},{default:n(()=>[...e[29]||(e[29]=[a(" 取消 ",-1)])]),_:1},8,["onClick"]),t(f,{disabled:!o.isValidJson,loading:i.savingData,color:"primary",variant:"tonal",onClick:o.saveEditedData},{default:n(()=>[...e[30]||(e[30]=[a(" 保存 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(we,{modelValue:i.createDialog,"onUpdate:modelValue":e[9]||(e[9]=c=>i.createDialog=c),"max-width":"800px"},{default:n(()=>[t(N,null,{default:n(()=>[t(R,{class:"d-flex align-center"},{default:n(()=>[t(g,{class:"mr-2",icon:"mdi-plus"}),e[31]||(e[31]=a(" 新建数据 ",-1)),t(q),t(f,{icon:"mdi-close",variant:"text",onClick:o.closeCreateDialog},null,8,["onClick"])]),_:1}),t(E,null,{default:n(()=>[t(B,{modelValue:i.newKey,"onUpdate:modelValue":e[7]||(e[7]=c=>i.newKey=c),error:!o.isValidKey,"error-messages":o.isValidKey?[]:["键名不能为空且不能与现有键重复"],class:"mb-4",label:"键名",placeholder:"请输入键名,如:my-config",variant:"outlined"},null,8,["modelValue","error","error-messages"]),t(Pe,{modelValue:i.newData,"onUpdate:modelValue":e[8]||(e[8]=c=>i.newData=c),error:!o.isValidNewJson,"error-messages":o.isValidNewJson?[]:["请输入有效的JSON格式"],class:"font-monospace",label:"数据内容 (JSON格式)",placeholder:'请输入JSON数据,如:{"name": "value"}',rows:"15",variant:"outlined"},null,8,["modelValue","error","error-messages"])]),_:1}),t(ie,null,{default:n(()=>[t(q),t(f,{variant:"text",onClick:o.closeCreateDialog},{default:n(()=>[...e[32]||(e[32]=[a(" 取消 ",-1)])]),_:1},8,["onClick"]),t(f,{disabled:!o.isValidKey||!o.isValidNewJson,loading:i.savingData,color:"primary",variant:"tonal",onClick:o.saveNewData},{default:n(()=>[...e[33]||(e[33]=[a(" 创建 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(we,{modelValue:i.cloudUrlDialog,"onUpdate:modelValue":e[14]||(e[14]=c=>i.cloudUrlDialog=c),"max-width":"800px"},{default:n(()=>[t(N,null,{default:n(()=>[t(R,{class:"d-flex align-center"},{default:n(()=>[t(g,{class:"mr-2",icon:"mdi-cloud-download"}),e[34]||(e[34]=a(" 获取云端访问地址 ",-1)),t(q),t(f,{icon:"mdi-close",variant:"text",onClick:e[10]||(e[10]=c=>i.cloudUrlDialog=!1)})]),_:1}),i.selectedCloudItem?(m(),w(Ne,{key:0},{default:n(()=>[e[35]||(e[35]=a(" 键名: ",-1)),h("code",null,v(i.selectedCloudItem.key),1)]),_:1})):k("",!0),t(E,null,{default:n(()=>[i.cloudUrlError?(m(),w(W,{key:0,class:"mb-4",type:"error",variant:"tonal"},{default:n(()=>[a(v(i.cloudUrlError),1)]),_:1})):k("",!0),i.cloudUrlResult&&i.cloudUrlResult.success?(m(),w(W,{key:1,class:"mb-4",type:"success",variant:"tonal"},{default:n(()=>[t(Ce,null,{default:n(()=>[...e[36]||(e[36]=[a("云端地址获取成功",-1)])]),_:1}),h("div",Ms,[i.cloudUrlResult.migrated?(m(),D("div",Ps,[t(g,{class:"mr-1",color:"success",icon:"mdi-database-arrow-up"}),e[37]||(e[37]=a(" 数据已从本地迁移到云端 ",-1))])):k("",!0),i.cloudUrlResult.configured?(m(),D("div",Bs,[t(g,{class:"mr-1",color:"info",icon:"mdi-cog"}),e[38]||(e[38]=a(" 云端配置已自动设置 ",-1))])):k("",!0)])]),_:1})):k("",!0),i.cloudUrlResult&&i.cloudUrlResult.url?(m(),w(B,{key:2,"model-value":i.cloudUrlResult.url,"append-inner-icon":"mdi-content-copy",class:"font-monospace",label:"云端访问地址",readonly:"",variant:"outlined","onClick:appendInner":o.copyCloudUrl},null,8,["model-value","onClick:appendInner"])):k("",!0),i.cloudUrlResult&&i.cloudUrlResult.url?(m(),w(yt,{key:3,class:"mt-4"},{default:n(()=>[t(kt,null,{default:n(()=>[t(xt,null,{default:n(()=>[t(g,{class:"mr-2",icon:"mdi-cog"}),e[39]||(e[39]=a(" 高级选项 ",-1))]),_:1}),t(St,null,{default:n(()=>[t(He,{modelValue:i.cloudUrlOptions.migrateFromLocal,"onUpdate:modelValue":e[11]||(e[11]=c=>i.cloudUrlOptions.migrateFromLocal=c),density:"compact",label:"从本地迁移数据到云端"},null,8,["modelValue"]),t(He,{modelValue:i.cloudUrlOptions.autoConfigureCloud,"onUpdate:modelValue":e[12]||(e[12]=c=>i.cloudUrlOptions.autoConfigureCloud=c),density:"compact",label:"自动配置云端默认设置"},null,8,["modelValue"]),t(f,{loading:i.gettingCloudUrl,class:"mt-2",color:"primary",variant:"tonal",onClick:o.refreshCloudUrl},{default:n(()=>[t(g,{class:"mr-1",icon:"mdi-refresh"}),e[40]||(e[40]=a(" 重新获取 ",-1))]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1})):k("",!0)]),_:1}),t(ie,null,{default:n(()=>[t(q),t(f,{variant:"text",onClick:e[13]||(e[13]=c=>i.cloudUrlDialog=!1)},{default:n(()=>[...e[41]||(e[41]=[a(" 关闭 ",-1)])]),_:1}),i.cloudUrlResult&&i.cloudUrlResult.url?(m(),w(f,{key:0,color:"primary",variant:"tonal",onClick:o.openCloudUrl},{default:n(()=>[t(g,{class:"mr-1",icon:"mdi-open-in-new"}),e[42]||(e[42]=a(" 在新窗口打开 ",-1))]),_:1},8,["onClick"])):k("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(we,{modelValue:i.deleteDialog,"onUpdate:modelValue":e[16]||(e[16]=c=>i.deleteDialog=c),"max-width":"400px"},{default:n(()=>[t(N,null,{default:n(()=>[t(R,{class:"d-flex align-center text-error"},{default:n(()=>[t(g,{class:"mr-2",icon:"mdi-alert"}),e[43]||(e[43]=a(" 确认删除 ",-1))]),_:1}),t(E,null,{default:n(()=>{var c;return[e[45]||(e[45]=a(" 确定要删除键名为 ",-1)),h("code",null,v((c=i.itemToDelete)==null?void 0:c.key),1),e[46]||(e[46]=a(" 的数据吗? ",-1)),e[47]||(e[47]=h("br",null,null,-1)),e[48]||(e[48]=h("br",null,null,-1)),t(W,{class:"mt-2",type:"warning",variant:"tonal"},{default:n(()=>[...e[44]||(e[44]=[a(" 此操作不可撤销,请谨慎操作! ",-1)])]),_:1})]}),_:1}),t(ie,null,{default:n(()=>[t(q),t(f,{variant:"text",onClick:e[15]||(e[15]=c=>i.deleteDialog=!1)},{default:n(()=>[...e[49]||(e[49]=[a(" 取消 ",-1)])]),_:1}),t(f,{loading:i.deletingData,color:"error",variant:"tonal",onClick:o.deleteItem},{default:n(()=>[...e[50]||(e[50]=[a(" 删除 ",-1)])]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["loading"])}const Ot=H(js,[["render",Ls],["__scopeId","data-v-fdb88c96"]]),Os={name:"DataProviderSettingsCard",components:{SettingsCard:Q},data(){return{loading:!1,serverchecktime:{},confirmDialog:!1,confirmTitle:"",confirmMessage:"",confirmAction:null,machineId:null,migrateLoading:!1}},computed:{currentProvider(){return S("server.provider")},isKvProvider(){return this.currentProvider==="kv-local"||this.currentProvider==="kv-server"||this.currentProvider==="classworkscloud"}},async created(){this.machineId=S("device.uuid")},methods:{async checkServerConnection(){this.loading=!0,this.serverchecktime=new Date;try{const s=S("server.domain"),e=S("server.siteKey"),l={Accept:"application/json"};if(e&&(l["x-site-key"]=e),(await bn.get(`${s}/check`,{method:"GET",headers:l})).data.status==="success")this.$message.success("连接成功","服务器连接正常 延迟"+(new Date-this.serverchecktime)+"ms");else throw new Error("服务器响应异常")}catch(s){this.$message.error("连接失败",s.message||"无法连接到服务器")}finally{this.loading=!1}},confirmClearLocalStorage(){this.confirmTitle="确认清除",this.confirmMessage="此操作将清除所有本地存储的数据,确定要继续吗?",this.confirmAction=this.clearLocalStorage,this.confirmDialog=!0},clearLocalStorage(){try{localStorage.clear(),this.$message.success("清除成功","本地存储数据已清除"),this.confirmDialog=!1}catch(s){this.$message.error("清除失败",s.message)}},confirmClearIndexedDB(){this.confirmTitle="确认清除",this.confirmMessage="此操作将清除所有IndexedDB中的数据,确定要继续吗?",this.confirmAction=this.clearIndexedDB,this.confirmDialog=!0},async clearIndexedDB(){try{await window.indexedDB.deleteDatabase("ClassworksDB"),this.$message.success("清除成功","数据库缓存已清除"),this.confirmDialog=!1,this.isKvProvider&&setTimeout(()=>{window.location.reload()},1500)}catch(s){this.$message.error("清除失败",s.message)}},async exportData(){try{const s="ClassworksDB",e={indexedDB:{}},l=await new Promise((p,x)=>{const _=window.indexedDB.open(s);_.onerror=()=>x(_.error),_.onsuccess=()=>p(_.result)}),u=Array.from(l.objectStoreNames);for(const p of u){const _=l.transaction(p,"readonly").objectStore(p),j=await new Promise((G,F)=>{const X=_.getAll();X.onerror=()=>F(X.error),X.onsuccess=()=>G(X.result)});e.indexedDB[p]=j}const i=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),o=URL.createObjectURL(i),r=document.createElement("a"),c=new Date().toISOString().split("T")[0];r.href=o,r.download=`homework-indexeddb-${c}.json`,r.click(),URL.revokeObjectURL(o),this.$message.success("导出成功","IndexedDB数据已导出")}catch(s){console.error("导出失败:",s),this.$message.error("导出失败",s.message||"无法导出数据库数据")}},async migrateData(){this.migrateLoading=!0,this.$router.push("/datamigration"),this.migrateLoading=!1},handleConfirm(){this.confirmAction&&this.confirmAction()}}};function zs(s,e,l,u,i,o){const r=Q;return m(),w(r,{icon:"mdi-database-cog",title:"数据源设置"},{default:n(()=>[t(K,null,{default:n(()=>[o.currentProvider==="kv-server"||o.currentProvider==="classworkscloud"?(m(),w(V,{key:0},{prepend:n(()=>[t(g,{class:"mr-3",icon:"mdi-lan-connect"})]),append:n(()=>[t(f,{loading:i.loading,variant:"tonal",onClick:o.checkServerConnection},{default:n(()=>[...e[3]||(e[3]=[a(" 测试连接 ",-1)])]),_:1},8,["loading","onClick"])]),default:n(()=>[t(L,null,{default:n(()=>[...e[2]||(e[2]=[a("检查服务器连接",-1)])]),_:1})]),_:1})):k("",!0),o.currentProvider==="kv-local"?(m(),D(oe,{key:1},[t(V,null,{prepend:n(()=>[t(g,{class:"mr-3",icon:"mdi-database"})]),append:n(()=>[t(f,{color:"error",variant:"tonal",onClick:o.confirmClearIndexedDB},{default:n(()=>[...e[6]||(e[6]=[a(" 清除 ",-1)])]),_:1},8,["onClick"])]),default:n(()=>[t(L,null,{default:n(()=>[...e[4]||(e[4]=[a("清除数据库缓存",-1)])]),_:1}),t(Z,null,{default:n(()=>[...e[5]||(e[5]=[a("这将清除所有本地数据库中的数据 ",-1)])]),_:1})]),_:1}),t(V,null,{prepend:n(()=>[t(g,{class:"mr-3",icon:"mdi-database-export"})]),append:n(()=>[t(f,{variant:"tonal",onClick:o.exportData},{default:n(()=>[...e[8]||(e[8]=[a(" 导出",-1)])]),_:1},8,["onClick"])]),default:n(()=>[t(L,null,{default:n(()=>[...e[7]||(e[7]=[a("导出数据库",-1)])]),_:1})]),_:1})],64)):k("",!0),t(V,null,{prepend:n(()=>[t(g,{class:"mr-3",icon:"mdi-database-import"})]),append:n(()=>[t(f,{loading:i.migrateLoading,variant:"tonal",onClick:o.migrateData},{default:n(()=>[...e[11]||(e[11]=[a(" 迁移 ",-1)])]),_:1},8,["loading","onClick"])]),default:n(()=>[t(L,null,{default:n(()=>[...e[9]||(e[9]=[a("迁移旧数据",-1)])]),_:1}),t(Z,null,{default:n(()=>[...e[10]||(e[10]=[a("将旧的存储格式数据转移到新的KV存储 ",-1)])]),_:1})]),_:1}),t(V,null,{prepend:n(()=>[t(g,{class:"mr-3",icon:"mdi-identifier"})]),default:n(()=>[t(L,null,{default:n(()=>[...e[12]||(e[12]=[a("本机唯一标识符",-1)])]),_:1}),i.machineId?(m(),w(Z,{key:0},{default:n(()=>[a(v(i.machineId),1)]),_:1})):(m(),w(Z,{key:1},{default:n(()=>[...e[13]||(e[13]=[a("正在加载...",-1)])]),_:1}))]),_:1}),t(V,null,{prepend:n(()=>[t(g,{class:"mr-3",icon:"mdi-lan-connect"})]),append:n(()=>[t(f,{to:"/cachemanagement",variant:"tonal"},{default:n(()=>[...e[15]||(e[15]=[a(" 查看",-1)])]),_:1})]),default:n(()=>[t(L,null,{default:n(()=>[...e[14]||(e[14]=[a("查看本地缓存",-1)])]),_:1})]),_:1})]),_:1}),t(we,{modelValue:i.confirmDialog,"onUpdate:modelValue":e[1]||(e[1]=c=>i.confirmDialog=c),"max-width":"400"},{default:n(()=>[t(N,null,{default:n(()=>[t(R,null,{default:n(()=>[a(v(i.confirmTitle),1)]),_:1}),t(E,null,{default:n(()=>[a(v(i.confirmMessage),1)]),_:1}),t(ie,null,{default:n(()=>[t(q),t(f,{color:"grey",variant:"text",onClick:e[0]||(e[0]=c=>i.confirmDialog=!1)},{default:n(()=>[...e[16]||(e[16]=[a("取消 ",-1)])]),_:1}),t(f,{color:"error",variant:"tonal",onClick:o.handleConfirm},{default:n(()=>[...e[17]||(e[17]=[a("确认 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const zt=H(Os,[["render",zs]]),Rs={name:"CloudNamespaceInfoCard",props:{visible:{type:Boolean,default:!0}},data(){return{namespaceInfo:{},loading:!1,hasNamespaceInfo:!1,showReinitDialog:!1,defaultAuthServer:S("server.authDomain")}},watch:{visible(s){s===!0&&this.fetchNamespaceInfo()}},mounted(){this.visible&&this.fetchNamespaceInfo()},methods:{formatDate(s){if(!s)return"未知";try{return new Date(s).toLocaleString("zh-CN")}catch{return s}},async fetchNamespaceInfo(){this.loading=!0;try{const s=await gn.loadNamespaceInfo();this.namespaceInfo=s,this.hasNamespaceInfo=!0,this.loading=!1}catch(s){console.error("获取命名空间信息失败:",s),this.hasNamespaceInfo=!1,this.namespaceInfo={}}finally{this.loading=!1}},async reloadInfo(){await this.fetchNamespaceInfo()},getBindAccountUrl(){var e,l;const s=(l=(e=this.namespaceInfo)==null?void 0:e.device)==null?void 0:l.uuid;return s?`${this.defaultAuthServer}?uuid=${encodeURIComponent(s)}&tolinktoaccount=true`:this.defaultAuthServer},confirmReinitialize(){_e("server.kvToken",""),_e("device.uuid",""),this.showReinitDialog=!1,this.$router.push("/")}}},Ks={key:0,class:"mb-4"},Fs={key:1,class:"d-flex align-center mb-4"},Qs={class:"d-flex flex-column gap-1"},Js={class:"d-flex align-center"},Hs={class:"d-flex align-center"},Gs={key:0,class:"d-flex align-center"},Ys={class:"text-truncate"},qs={class:"d-flex align-center"},Zs={key:1,class:"d-flex align-center"};function Ws(s,e,l,u,i,o){return m(),w(N,{disabled:!i.hasNamespaceInfo,loading:i.loading,class:"my-4"},{loader:n(()=>[i.loading?(m(),w(Ge,{key:0,color:"primary",indeterminate:""})):k("",!0)]),default:n(()=>[t(R,null,{default:n(()=>[t(g,{class:"me-2"},{default:n(()=>[...e[3]||(e[3]=[a(" mdi-cloud-check ",-1)])]),_:1}),e[4]||(e[4]=a(" 设备信息 ",-1))]),_:1}),i.hasNamespaceInfo?(m(),w(E,{key:0},{default:n(()=>[i.namespaceInfo.hasAccount===!1?(m(),D("div",Ks,[t(W,{border:"",type:"warning",variant:"tonal"},{default:n(()=>[t(Ce,null,{default:n(()=>[...e[5]||(e[5]=[a("设备未绑定账号",-1)])]),_:1}),e[7]||(e[7]=h("div",null,"当前设备尚未绑定账号,部分功能可能受限。请前往绑定账号以获得完整体验。",-1)),t(f,{href:o.getBindAccountUrl(),"append-icon":"mdi-open-in-new",class:"mt-3",target:"_blank",variant:"outlined"},{default:n(()=>[...e[6]||(e[6]=[a(" 前往绑定账号 ",-1)])]),_:1},8,["href"])]),_:1})])):k("",!0),i.namespaceInfo.hasAccount&&i.namespaceInfo.account?(m(),D("div",Fs,[t(N,{"prepend-avatar":i.namespaceInfo.account.avatarUrl,subtitle:"此设备由贵校管理 管理员账号 ID: "+i.namespaceInfo.account.id,title:i.namespaceInfo.account.name||"未命名用户",border:"",class:"w-100",hover:"",variant:"tonal"},{default:n(()=>[t(E,null,{default:n(()=>[...e[8]||(e[8]=[a(" 此设备由贵校或贵单位管理,该管理员系此空间所有者,如有疑问请咨询他,对于恶意绑定、滥用行为请反馈。 ",-1)])]),_:1})]),_:1},8,["prepend-avatar","subtitle","title"])])):k("",!0),i.namespaceInfo.device?(m(),w(N,{key:2,border:"",class:"mb-4",hover:"",variant:"tonal"},{default:n(()=>[t(R,{class:"pb-1"},{default:n(()=>[...e[9]||(e[9]=[a(" 设备信息 ",-1)])]),_:1}),t(E,null,{default:n(()=>[h("div",Qs,[h("div",Js,[t(g,{class:"me-2",size:"small"},{default:n(()=>[...e[10]||(e[10]=[a(" mdi-tag ",-1)])]),_:1}),e[11]||(e[11]=h("span",{class:"font-weight-medium me-2"},"设备名称:",-1)),h("span",null,v(i.namespaceInfo.device.name||"未命名设备"),1)]),h("div",Hs,[t(g,{class:"me-2",size:"small"},{default:n(()=>[...e[12]||(e[12]=[a(" mdi-identifier ",-1)])]),_:1}),e[13]||(e[13]=h("span",{class:"font-weight-medium me-2"},"设备 ID:",-1)),h("span",null,v(i.namespaceInfo.device.id),1)]),i.namespaceInfo.hasAccount===!1&&i.namespaceInfo.device.uuid?(m(),D("div",Gs,[t(g,{class:"me-2",size:"small"},{default:n(()=>[...e[14]||(e[14]=[a(" mdi-uuid ",-1)])]),_:1}),e[15]||(e[15]=h("span",{class:"font-weight-medium me-2"},"UUID:",-1)),h("span",Ys,v(i.namespaceInfo.device.uuid),1)])):k("",!0),h("div",qs,[t(g,{class:"me-2",size:"small"},{default:n(()=>[...e[16]||(e[16]=[a(" mdi-calendar ",-1)])]),_:1}),e[17]||(e[17]=h("span",{class:"font-weight-medium me-2"},"创建时间:",-1)),h("span",null,v(o.formatDate(i.namespaceInfo.device.createdAt)),1)]),i.namespaceInfo.device.updatedAt?(m(),D("div",Zs,[t(g,{class:"me-2",size:"small"},{default:n(()=>[...e[18]||(e[18]=[a(" mdi-calendar-clock ",-1)])]),_:1}),e[19]||(e[19]=h("span",{class:"font-weight-medium me-2"},"更新时间:",-1)),h("span",null,v(o.formatDate(i.namespaceInfo.device.updatedAt)),1)])):k("",!0)])]),_:1})]),_:1})):k("",!0),t(N,{border:"",hover:"",subtitle:"文档形键值数据库",title:"Classworks KV"},{default:n(()=>[t(E,null,{default:n(()=>[...e[20]||(e[20]=[a(" Classworks KV 是厚浪云推出的文档形键值数据库,其是一个开放的云应用平台,为各种应用提供存储服务。此设备正在使用其服务,如果您希望管理设备信息,请前往 Classworks KV 的网站,如果您在服务推出前就在使用 Classworks,您的数据已被自动迁移。 ",-1),h("br",null,null,-1),h("br",null,null,-1),a(" Classworks KV 的全域管理员是 ",-1),h("a",{href:"https://wuyuan.dev",target:"_blank"}," 孙悟元 ",-1)])]),_:1}),t(ie,null,{default:n(()=>[t(f,{href:i.defaultAuthServer,"append-icon":"mdi-open-in-new",class:"text-none",target:"_blank"},{default:n(()=>[...e[21]||(e[21]=[a(" 前往 Classworks KV ",-1)])]),_:1},8,["href"])]),_:1})]),_:1})]),_:1})):(m(),w(E,{key:1},{default:n(()=>[t(W,{type:"info",variant:"tonal"},{default:n(()=>[t(Ce,null,{default:n(()=>[...e[22]||(e[22]=[a("未获取到设备信息",-1)])]),_:1}),e[23]||(e[23]=h("p",null,"您尚未完成云端存储授权或连接失败,请点击下方按钮进行初始化。",-1))]),_:1})]),_:1})),t(ie,null,{default:n(()=>[t(q),t(f,{loading:i.loading,color:"primary",variant:"outlined",onClick:o.reloadInfo},{default:n(()=>[...e[24]||(e[24]=[a(" 刷新设备信息 ",-1)])]),_:1},8,["loading","onClick"]),t(f,{color:"error",variant:"outlined",onClick:e[0]||(e[0]=r=>i.showReinitDialog=!0)},{default:n(()=>[...e[25]||(e[25]=[a(" 重新初始化云端存储 ",-1)])]),_:1})]),_:1}),t(we,{modelValue:i.showReinitDialog,"onUpdate:modelValue":e[2]||(e[2]=r=>i.showReinitDialog=r),"max-width":"500"},{default:n(()=>[t(N,null,{default:n(()=>[t(R,null,{default:n(()=>[...e[26]||(e[26]=[a("确认重新初始化",-1)])]),_:1}),t(E,null,{default:n(()=>[t(W,{class:"mb-3",type:"warning",variant:"tonal"},{default:n(()=>[t(Ce,null,{default:n(()=>[...e[27]||(e[27]=[a("警告",-1)])]),_:1}),e[28]||(e[28]=a(" 此操作将清除当前的云端存储配置(包括 Token),您需要重新进行授权。 ",-1))]),_:1}),e[29]||(e[29]=h("p",null,"您确定要重新初始化云端存储吗?",-1))]),_:1}),t(ie,null,{default:n(()=>[t(q),t(f,{variant:"text",onClick:e[1]||(e[1]=r=>i.showReinitDialog=!1)},{default:n(()=>[...e[30]||(e[30]=[a(" 取消 ",-1)])]),_:1}),t(f,{color:"error",onClick:o.confirmReinitialize},{default:n(()=>[...e[31]||(e[31]=[a(" 确认 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["disabled","loading"])}const Rt=H(Rs,[["render",Ws]]),Xs={name:"ServerSettingsCard",components:{SettingsCard:Q,CloudNamespaceInfoCard:Rt},props:{loading:Boolean},data(){return{unwatch:null,serverSettings:{provider:S("server.provider"),domain:S("server.domain"),classNumber:S("server.classNumber"),kvToken:S("server.kvToken")},settingsChangeTimeout:null}},computed:{currentProvider(){return this.serverSettings.provider},isKvProvider(){return this.currentProvider==="kv-local"||this.currentProvider==="kv-server"},isClassworksCloud(){return this.currentProvider==="classworkscloud"},useServer(){return this.currentProvider==="server"||this.currentProvider==="kv-server"||this.currentProvider==="classworkscloud"}},watch:{serverSettings:{handler(){this.settingsChangeTimeout&&clearTimeout(this.settingsChangeTimeout),this.settingsChangeTimeout=setTimeout(()=>{this.saveAllSettings()},100)},deep:!0}},mounted(){this.loadAllSettings(),this.unwatch=qe(()=>{this.loadAllSettings(),this.$forceUpdate&&this.$forceUpdate()})},beforeUnmount(){this.unwatch&&this.unwatch()},methods:{loadAllSettings(){this.serverSettings={provider:S("server.provider"),domain:S("server.domain"),classNumber:S("server.classNumber"),kvToken:S("server.kvToken")}},saveAllSettings(){Object.entries(this.serverSettings).forEach(([s,e])=>{const l=`server.${s}`,u=S(l);e!==u&&(_e(l,e)?console.log(`设置已更新: ${l} = ${e}`):(console.error(`设置失败: ${l}`),this.serverSettings[s]=u))})}}},$s={key:0},ei={key:2},ti={key:3},ni={key:4};function si(s,e,l,u,i,o){const r=Rt,c=Q;return m(),w(c,{loading:l.loading,icon:"mdi-database",title:"数据源设置"},{default:n(()=>[t(bt,null,{default:n(()=>[t(wt,{modelValue:i.serverSettings.provider,"onUpdate:modelValue":e[0]||(e[0]=p=>i.serverSettings.provider=p),items:[{title:"Classworks云端存储",value:"classworkscloud"},{title:"KV本地存储",value:"kv-local"},{title:"KV远程服务器",value:"kv-server"}],class:"mb-3",density:"comfortable","item-title":"title","item-value":"value",label:"数据提供者","prepend-icon":"mdi-database",variant:"outlined"},null,8,["modelValue"]),o.isKvProvider?(m(),w(W,{key:0,class:"my-2",type:"info",variant:"tonal"},{default:n(()=>[t(Ce,null,{default:n(()=>[...e[5]||(e[5]=[a("KV 存储系统",-1)])]),_:1}),e[7]||(e[7]=h("p",null,"KV存储系统使用本机唯一标识符(UUID)来区分不同设备的数据。",-1)),o.currentProvider==="kv-server"?(m(),D("p",$s,[...e[6]||(e[6]=[a(" 服务器端点格式: ",-1),h("code",null,"http(s)://服务器域名/",-1),h("br",null,null,-1),a(" 在服务器域名处仅填写基础URL,不需要任何路径。 ",-1)])])):k("",!0)]),_:1})):k("",!0),o.isClassworksCloud?(m(),w(W,{key:1,class:"my-2",color:"success",type:"info",variant:"tonal"},{default:n(()=>[t(Ce,null,{default:n(()=>[...e[8]||(e[8]=[a("Classworks云端存储",-1)])]),_:1}),e[9]||(e[9]=h("p",null,"Classworks云端存储是官方提供的存储解决方案,自动配置了最优的访问设置。",-1)),e[10]||(e[10]=h("p",null,"使用此选项时,服务器域名和网站令牌将自动配置,无需手动设置。",-1))]),_:1})):k("",!0),t(M,{class:"my-2"}),o.isClassworksCloud?(m(),D("div",ei,[t(B,{modelValue:i.serverSettings.kvToken,"onUpdate:modelValue":e[1]||(e[1]=p=>i.serverSettings.kvToken=p),class:"mb-2",density:"comfortable",hint:"令牌用于云端存储授权",label:"KV 授权令牌","persistent-hint":"","prepend-icon":"mdi-shield-key",variant:"outlined"},null,8,["modelValue"]),t(r,{visible:o.isClassworksCloud,class:"mt-4"},null,8,["visible"])])):o.currentProvider==="kv-server"?(m(),D("div",ti,[t(B,{modelValue:i.serverSettings.domain,"onUpdate:modelValue":e[2]||(e[2]=p=>i.serverSettings.domain=p),class:"mb-2",density:"comfortable",hint:"例如: https://example.com (不需要路径)",label:"服务器域名","persistent-hint":"","prepend-icon":"mdi-web",variant:"outlined"},null,8,["modelValue"]),t(B,{modelValue:i.serverSettings.kvToken,"onUpdate:modelValue":e[3]||(e[3]=p=>i.serverSettings.kvToken=p),class:"mb-2",density:"comfortable",hint:"令牌用于服务器验证",label:"KV 授权令牌","persistent-hint":"","prepend-icon":"mdi-shield-key",variant:"outlined"},null,8,["modelValue"])])):o.currentProvider==="kv-local"?(m(),D("div",ni,[t(B,{modelValue:i.serverSettings.classNumber,"onUpdate:modelValue":e[4]||(e[4]=p=>i.serverSettings.classNumber=p),class:"mb-2",density:"comfortable",hint:"例如: 高三八班",label:"班级编号","persistent-hint":"","prepend-icon":"mdi-account-group",variant:"outlined"},null,8,["modelValue"])])):k("",!0)]),_:1})]),_:1},8,["loading"])}const Kt=H(Xs,[["render",si]]),ii="classworks",oi="module",li="0.0.0",ai={dev:"vite --host",build:"vite build",preview:"vite preview",lint:"eslint . --fix"},ri={"@examaware-cs/core":"^1.0.0","@examaware-cs/player":"^1.0.2","@fingerprintjs/fingerprintjs":"^5.0.1","@mdi/font":"7.4.47","@microsoft/clarity":"^1.0.2","@vueuse/core":"^14.1.0",axios:"^1.13.2",idb:"^8.0.3","js-base64":"^3.7.8","js-yaml":"^4.1.1","lucide-vue-next":"^0.555.0",marked:"^17.0.1","pinyin-pro":"^3.27.0","ratelimit-header-parser":"^0.1.0","roboto-fontface":"*","socket.io-client":"^4.8.1","typewriter-effect":"^2.22.0",uuid:"^13.0.0",vue:"^3.5.25","vue-sonner":"^2.0.9",vuetify:"^3.11.0"},ui={"@eslint/js":"^9.39.1","@vite-pwa/assets-generator":"^1.0.2","@vitejs/plugin-vue":"^6.0.2",eslint:"^9.39.1","eslint-plugin-import":"^2.32.0","eslint-plugin-n":"^17.23.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^7.2.1","eslint-plugin-vue":"^10.6.2",pinia:"^3.0.4",sass:"1.94.2","sass-embedded":"^1.93.3","unplugin-auto-import":"^20.3.0","unplugin-fonts":"^1.4.0","unplugin-vue-components":"^30.0.0","unplugin-vue-router":"^0.18.0",vite:"^5.4.11","vite-plugin-pwa":"^1.2.0","vite-plugin-vue-devtools":"^7.6.8","vite-plugin-vue-layouts":"^0.11.0","vite-plugin-vuetify":"^2.1.2","vue-router":"^4.6.3"},Te={name:ii,private:!0,type:oi,version:li,scripts:ai,dependencies:ri,devDependencies:ui},di="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAa9SURBVHic7dY9jlxVFIXRY8SsCEDyMCAjgRFBYokARoGQQII5EDIJYhNgyb9td9euqvfu3WuN4CTf1nn2958/vRyg0mdHHwAcxwBAMQMAxQwAFDMAUMwAQDEDAMUMABQzAFDMAEAxAwDFDAAUMwBQzABAMQMAxQwAFDMAUMwAQDEDAMUMABQzAFDMAEAxAwDFDAAUMwBQzABAMQMAxQwAFDMAUMwAQDEDAMUMABQzAFDMAEAxAwDFDAAUMwBQzABAMQMAxQwAFDMAUMwAQDEDAMUMABQzAFDMAEAxAwDFPj/6AI7z2+9/zW9//HX0Gct6/uUX8/yrL44+I+IDKCX+zA7xzxiASuLP7BL/jAGoI/7MTvHPGIAq4s/sFv+MAagh/syO8c8YgAriz+wa/4wB2J74MzvHP2MAtib+zO7xzxiAbYk/0xD/jAHYkvgzLfHPGIDtiD/TFP+MAdiK+DNt8c8YgG2IP9MY/4wB2IL4M63xzxiA5Yk/0xz/jAFYmvgz7fHPGIBliT8j/v8ZgAWJPyP+1wzAYsSfEf/bDMBCxJ8R//sMwCLEnxH/hxmABYg/I/6HGYCTE39G/B9nAE5M/Bnxf5oBOCnxZ8T/OAbghMSfEf/jGYCTEX9G/E9jAE5E/BnxP50BOAnxZ8R/GQNwAuLPiP9yBuBg4s+IP2MADiT+jPhzBuAg4s+I/zoMwAHEnxH/9RiAOxN/RvzXZQDuSPwZ8V+fAbgT8WfEfxsG4A7EnxH/7RiAGxN/Rvy3ZQBuSPwZ8d+eAbgR8WfEfx8G4AbEnxH//RiAKxN/Rvz3ZQCuSPwZ8d+fAbgS8WfEfwwDcAXiz4j/OAYgJP6M+I9lAALiz4j/eAbgQuLPiP8cDMAFxJ8R/3kYgCcSf0b852IAnkD8GfGfjwF4JPFnxH9OBuARxJ8R/3kZgE8Qf0b852YAPkL8GfGfnwF4gPgz4l+DAfgA8WfEvw4D8A7xZ8S/FgPwBvFnxL8eA/CK+DPiX5MBGPGnxL+u+gEQf0b8a6seAPFnxL++2gEQf0b8e6gcAPFnxL+PugEQf0b8e6kaAPFnxL+fmgEQf0b8e6oYAPFnxL+v7QdA/Bnx723rARB/Rvz723YAxJ8Rf4ctB0D8GfH32G4AxJ8Rf5etBkD8GfH32WYAxJ8Rf6ctBkD8GfH3Wn4AxJ8Rf7dn//7z68ujj+AYP774ZX548fPRZyzr+2+/me++/froMyLLfwBcRvyZHeKfMQCVxJ/ZJf4ZA1BH/Jmd4p8xAFXEn9kt/hkDUEP8mR3jnzEAFcSf2TX+GQOwPfFndo5/xgBsTfyZ3eOfMQDbEn+mIf4ZA7Al8Wda4p8xANsRf6Yp/hkDsBXxZ9rinzEA2xB/pjH+GQOwBfFnWuOfMQDLE3+mOf4ZA7A08Wfa458xAMsSf0b8/zMACxJ/RvyvGYDFiD8j/rcZgIWIPyP+9xmARYg/I/4PMwALEH9G/A8zACcn/oz4P84AnJj4M+L/NANwUuLPiP9xDMAJiT8j/sczACcj/oz4n8YAnIj4M+J/OgNwEuLPiP8yBuAExJ8R/+UMwMHEnxF/xgAcSPwZ8ecMwEHEnxH/dRiAA4g/I/7rMQB3Jv6M+K/LANyR+DPivz4DcCfiz4j/NgzAHYg/I/7bMQA3Jv6M+G/LANyQ+DPivz0DcCPiz4j/PgzADYg/I/77MQBXJv6M+O/LAFyR+DPivz8DcCXiz4j/GAbgCsSfEf9xDEBI/BnxH8sABMSfEf/xDMCFxJ8R/zkYgAuIPyP+8zAATyT+jPjPxQA8gfgz4j8fA/BI4s+I/5wMwCOIPyP+8zIAnyD+jPjPzQB8hPgz4j8/A/AA8WfEvwYD8AHiz4h/HQbgHeLPiH8tBuAN4s+Ifz0G4BXxZ8S/JgMw4k+Jf131AyD+jPjXVj0A4s+If321AyD+jPj3UDkA4s+Ifx91AyD+jPj3UjUA4s+Ifz81AyD+jPj3VDEA4s+If1/bD4D4M+Lf29YDIP6M+Pe37QCIPyP+DlsOgPgz4u+x3QCIPyP+LlsNgPgz4u+zzQCIPyP+TlsMgPgz4u+1/ACIPyP+bs/+/efXl0cfARxj+Q8AuJwBgGIGAIoZAChmAKCYAYBiBgCKGQAoZgCgmAGAYgYAihkAKGYAoJgBgGIGAIoZAChmAKCYAYBiBgCKGQAoZgCgmAGAYgYAihkAKGYAoJgBgGIGAIoZAChmAKCYAYBiBgCKGQAoZgCgmAGAYgYAihkAKGYAoJgBgGIGAIoZAChmAKCYAYBiBgCKGQAoZgCgmAGAYgYAiv0Hs2PMhrt8KlMAAAAASUVORK5CYII=",ci={name:"AboutCard",setup(){const s=Se([]),e=Se(!1),l=Se(!1),u=Se(""),i=Se(!1),o=Se(!1),r="964979747",c="https://qm.qq.com/q/T6qImKJjGi",p=mn(),x=()=>{try{const T={...Te.dependencies||{},...Te.devDependencies||{}},J=Object.entries(T).map(([se,U])=>({name:se,version:U.replace(/[\^~]/g,""),description:_(se)}));s.value=J}catch(T){console.error("加载依赖信息失败:",T),s.value=[]}},_=T=>({vue:"渐进式 JavaScript 框架",vuetify:"材料设计组件框架",axios:"Promise 基础的 HTTP 客户端",pinia:"Vue 状态管理库","vue-router":"Vue.js 官方路由管理器","@vitejs/plugin-vue":"Vite 的 Vue 插件"})[T]||"",j=()=>{p.push("/debug")},G=async()=>{i.value=!0;try{const T=await fn();u.value=T||""}catch(T){console.error("获取访客ID失败",T)}finally{i.value=!1}},F=()=>G(),X=async()=>{l.value=!0,u.value||await G()},re=async()=>{try{await navigator.clipboard.writeText(ae.value),o.value=!0,setTimeout(()=>o.value=!1,1800)}catch(T){console.error("复制失败",T)}},me=Ie(()=>{var ke,je;const T=navigator||{},J=typeof Intl<"u"&&Intl.DateTimeFormat?Intl.DateTimeFormat().resolvedOptions():{},se=J&&J.timeZone?J.timeZone:"",U=((je=(ke=p.currentRoute)==null?void 0:ke.value)==null?void 0:je.fullPath)||location.pathname;return[`App 版本: v${Te==null?void 0:Te.version}`,`URL: ${location.href}`,`路由: ${U}`,`UserAgent: ${T.userAgent||""}`,`语言: ${T.language||""}`,`时区: ${se}`,`平台: ${T.platform||""}`,`在线: ${String(T.onLine)}`,`屏幕: ${(screen==null?void 0:screen.width)||"-"}x${(screen==null?void 0:screen.height)||"-"}`,`视口: ${window.innerWidth||"-"}x${window.innerHeight||"-"}`].join(` -`)}),ae=Ie(()=>`调试ID: ${u.value||"获取失败"} - -浏览器/环境信息: -${me.value}`),ee=Ie(()=>["问题描述:","1. 期望行为:","2. 实际行为:","3. 复现步骤:","",ae.value].join(` -`)),ge=Ie(()=>{const T="https://github.com/ZeroCatDev/Classworks/issues/new",J=encodeURIComponent("问题报告"),se=encodeURIComponent(ee.value);return`${T}?title=${J}&body=${se}`}),$=Ie(()=>{const T=encodeURIComponent("Classworks 问题报告"),J=encodeURIComponent(ee.value);return`mailto:sun@wuyuan.dev?subject=${T}&body=${J}`});return pn(()=>{x()}),{Dependencies:s,showDeps:e,showReportDialog:l,debugIdInput:u,visitorLoading:i,copyOk:o,qqGroupNumber:r,qqGroupLink:c,goToDebug:j,reloadVisitorId:F,openReportDialog:X,copyEnvInfo:re,envBoxText:ae,envInfo:me,reportBody:ee,githubIssueUrl:ge,mailtoLink:$}}},mi={class:"d-flex flex-column align-start"},pi={class:"d-flex gap-2 flex-wrap mb-6"},fi={class:"text-body-2",style:{"white-space":"pre-wrap",margin:"0"}},hi={class:"d-flex gap-2 flex-wrap mb-4"},wi={class:"text-caption text-medium-emphasis"};function gi(s,e,l,u,i,o){return m(),w(N,{border:"",hover:"",rounded:"xl"},{default:n(()=>[t(Le,null,{prepend:n(()=>[t(g,{class:"mr-2",icon:"mdi-information",size:"large"})]),default:n(()=>[t(R,{class:"text-h6"},{default:n(()=>[...e[6]||(e[6]=[a("关于",-1)])]),_:1})]),_:1}),t(E,null,{default:n(()=>[t(ve,null,{default:n(()=>[t(le,{class:"mx-auto",cols:"12",md:"8"},{default:n(()=>[h("div",mi,[t(mt,{class:"mb-4",size:"120"},{default:n(()=>[t(pt,{alt:"Classworks",src:di})]),_:1}),e[36]||(e[36]=h("h2",{class:"text-h5 mb-2"},"Classworks",-1)),e[37]||(e[37]=h("p",{class:"text-body-1 mb-4"},"适用于班级大屏的作业板小工具",-1)),h("div",pi,[t(f,{color:"red","prepend-icon":"mdi-bug",variant:"tonal",onClick:u.openReportDialog},{default:n(()=>[...e[7]||(e[7]=[a(" 报告问题 ",-1)])]),_:1},8,["onClick"]),t(f,{color:"primary",href:"https://qm.qq.com/q/qNBX4ZZVeg","prepend-icon":"mdi-qqchat",target:"_blank",variant:"tonal"},{default:n(()=>[...e[8]||(e[8]=[a(" QQ 群 ",-1)])]),_:1}),t(f,{href:"https://github.com/ClassworksDev/Classworks","prepend-icon":"mdi-github",target:"_blank",variant:"text"},{default:n(()=>[...e[9]||(e[9]=[a(" 前端 ",-1)])]),_:1}),t(f,{href:"https://github.com/ClassworksDev/ClassworksServer","prepend-icon":"mdi-github",target:"_blank",variant:"text"},{default:n(()=>[...e[10]||(e[10]=[a(" 后端 ",-1)])]),_:1})]),t(M,{class:"mb-4 w-100"}),e[38]||(e[38]=h("h3",{class:"text-h6 mb-2"},"备注与致谢",-1)),t(K,{class:"mb-4 bg-transparent"},{default:n(()=>[t(V,{"append-icon":"mdi-link",href:"https://github.com/EnderWolf006/HomeworkBoard",target:"_blank"},{default:n(()=>[t(L,null,{default:n(()=>[...e[11]||(e[11]=[a(" 本项目受到 HomeworkBoard 的启发而开发 ",-1)])]),_:1}),t(Z,null,{default:n(()=>[...e[12]||(e[12]=[a(" 感谢 EnderWolf006 (@EnderWolf) fhzit(@Hellofhz) KeyFac 等人的贡献 ",-1)])]),_:1})]),_:1}),t(V,{"append-icon":"mdi-link",href:"https://hlyun.org",target:"_blank"},{default:n(()=>[t(L,null,{default:n(()=>[...e[13]||(e[13]=[a(" Classworks 由",-1),h("strong",null,"厚浪云",-1),a("提供 ",-1)])]),_:1}),t(Z,null,{default:n(()=>[...e[14]||(e[14]=[a(" 长江后浪推前浪 浮事新人换旧人 ",-1)])]),_:1})]),_:1}),t(V,{"append-icon":"mdi-link",href:"https://zerocat.houlangs.com",target:"_blank"},{default:n(()=>[t(L,null,{default:n(()=>[...e[15]||(e[15]=[a(" 感谢 ZeroCat 社区的开发者们 ",-1)])]),_:1}),t(Z,null,{default:n(()=>[...e[16]||(e[16]=[a(" 新一代,开源,编程社区 ",-1)])]),_:1})]),_:1}),t(M,{class:"ma-1"}),t(V,{"append-icon":"mdi-link",href:"https://github.com/HUSX100/IslandCaller",target:"_blank"},{default:n(()=>[t(L,null,{default:n(()=>[...e[17]||(e[17]=[a(" 本项目与 IslandCaller 没有从属关系 ",-1)])]),_:1}),t(Z,null,{default:n(()=>[...e[18]||(e[18]=[a(" IslandCaller 是由 HUSX100 开发的基于 ClassIsland 提醒服务的轻量级点名器 ",-1)])]),_:1})]),_:1}),t(V,{"append-icon":"mdi-link",href:"https://classisland.tech",target:"_blank"},{default:n(()=>[t(L,null,{default:n(()=>[...e[19]||(e[19]=[a(" 本项目与 ClassIsland 没有从属关系 ",-1)])]),_:1}),t(Z,null,{default:n(()=>[...e[20]||(e[20]=[a(" ClassIsland 是由 HelloWRC 开发的适用于班级大屏的课表信息显示工具 ",-1)])]),_:1})]),_:1})]),_:1}),t(f,{class:"mb-4","prepend-icon":"mdi-package-variant",variant:"text",onClick:e[0]||(e[0]=r=>u.showDeps=!0)},{default:n(()=>[...e[21]||(e[21]=[a(" 查看使用的第三方库 ",-1)])]),_:1}),t(we,{modelValue:u.showDeps,"onUpdate:modelValue":e[2]||(e[2]=r=>u.showDeps=r),fullscreen:"",transition:"dialog-bottom-transition"},{default:n(()=>[t(N,null,{default:n(()=>[t(ot,null,{default:n(()=>[t(f,{icon:"mdi-close",onClick:e[1]||(e[1]=r=>u.showDeps=!1)}),t(lt,null,{default:n(()=>[...e[22]||(e[22]=[a("使用的第三方库",-1)])]),_:1}),t(q)]),_:1}),t(E,null,{default:n(()=>[t(K,null,{default:n(()=>[(m(!0),D(oe,null,fe(u.Dependencies,r=>(m(),w(V,{key:r.name,href:"https://www.npmjs.com/package/"+r.name,"append-icon":"mdi-link",target:"_blank"},{default:n(()=>[t(L,null,{default:n(()=>[a(v(r.name),1)]),_:2},1024),t(Z,null,{default:n(()=>[a(" v"+v(r.version),1)]),_:2},1024)]),_:2},1032,["href"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(we,{modelValue:u.showReportDialog,"onUpdate:modelValue":e[5]||(e[5]=r=>u.showReportDialog=r),"max-width":"640"},{default:n(()=>[t(N,null,{default:n(()=>[t(ot,{density:"compact"},{default:n(()=>[t(f,{icon:"mdi-close",onClick:e[3]||(e[3]=r=>u.showReportDialog=!1)}),t(lt,null,{default:n(()=>[...e[23]||(e[23]=[a("报告问题",-1)])]),_:1}),t(q)]),_:1}),t(E,null,{default:n(()=>[e[33]||(e[33]=h("p",{class:"mb-4"}," 调试ID与下方的浏览器环境信息将帮助我们快速定位问题,请在反馈中一并附上。 ",-1)),t(xn,{class:"mb-3 pa-3 bg-grey-lighten-4 rounded",style:{"max-height":"260px",overflow:"auto"}},{default:n(()=>[h("pre",fi,v(u.envBoxText),1)]),_:1}),h("div",hi,[t(f,{size:"small",variant:"text","prepend-icon":"mdi-refresh",onClick:u.reloadVisitorId,loading:u.visitorLoading},{default:n(()=>[...e[24]||(e[24]=[a("刷新",-1)])]),_:1},8,["onClick","loading"]),t(f,{size:"small",variant:"text","prepend-icon":"mdi-content-copy",onClick:u.copyEnvInfo},{default:n(()=>[...e[25]||(e[25]=[a("复制信息",-1)])]),_:1},8,["onClick"]),t(f,{size:"small",variant:"text","prepend-icon":"mdi-open-in-new",onClick:u.goToDebug},{default:n(()=>[...e[26]||(e[26]=[a("查看 /debug 页面",-1)])]),_:1},8,["onClick"])]),u.copyOk?(m(),w(W,{key:0,type:"success",density:"compact",class:"mb-4"},{default:n(()=>[...e[27]||(e[27]=[a("已复制到剪贴板",-1)])]),_:1})):k("",!0),e[34]||(e[34]=h("h4",{class:"text-subtitle-1 mb-2"},"反馈渠道",-1)),t(K,{lines:"one",class:"bg-transparent"},{default:n(()=>[t(V,{href:u.qqGroupLink,target:"_blank","prepend-icon":"mdi-qqchat"},{default:n(()=>[t(L,null,{default:n(()=>[a("QQ群 ("+v(u.qqGroupNumber)+")",1)]),_:1}),t(Z,null,{default:n(()=>[...e[28]||(e[28]=[a("964979747",-1)])]),_:1})]),_:1},8,["href"]),t(V,{href:u.githubIssueUrl,target:"_blank","prepend-icon":"mdi-github"},{default:n(()=>[t(L,null,{default:n(()=>[...e[29]||(e[29]=[a("GitHub Issue",-1)])]),_:1}),t(Z,null,{default:n(()=>[...e[30]||(e[30]=[a("ZeroCatDev/Classworks",-1)])]),_:1})]),_:1},8,["href"]),t(V,{href:u.mailtoLink,target:"_blank","prepend-icon":"mdi-email"},{default:n(()=>[t(L,null,{default:n(()=>[...e[31]||(e[31]=[a("邮件",-1)])]),_:1}),t(Z,null,{default:n(()=>[...e[32]||(e[32]=[a("sun@wuyuan.dev",-1)])]),_:1})]),_:1},8,["href"])]),_:1})]),_:1}),t(ie,null,{default:n(()=>[t(q),t(f,{variant:"text",onClick:e[4]||(e[4]=r=>u.showReportDialog=!1)},{default:n(()=>[...e[35]||(e[35]=[a("关闭",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),h("p",wi," Copyright © "+v(new Date().getFullYear())+" Sunwuyuan ",1)])]),_:1})]),_:1})]),_:1})]),_:1})}const Ft=H(ci,[["render",gi]]),vi={name:"Settings",components:{ServerSettingsCard:Kt,EditSettingsCard:Ut,RefreshSettingsCard:Mt,DisplaySettingsCard:jt,MessageLog:ct,SettingsCard:Q,StudentListCard:Lt,AboutCard:Ft,DataProviderSettingsCard:zt,ThemeSettingsCard:Nt,EchoChamberCard:Vt,SettingsExplorer:Dt,SettingsLinkGenerator:Pt,RandomPickerCard:Et,HomeworkTemplateCard:It,SubjectManagementCard:Tt,KvDatabaseCard:Ot},setup(){const{mobile:s}=wn();return{isMobile:s}},data(){return S("server.provider"),{settings:{server:{domain:S("server.domain"),classNumber:S("server.classNumber"),provider:S("server.provider")},refresh:{auto:S("refresh.auto"),interval:S("refresh.interval")},font:{size:S("font.size")},edit:{autoSave:S("edit.autoSave"),blockNonTodayAutoSave:S("edit.blockNonTodayAutoSave"),confirmNonTodaySave:S("edit.confirmNonTodaySave"),refreshBeforeEdit:S("edit.refreshBeforeEdit")},display:{emptySubjectDisplay:S("display.emptySubjectDisplay"),dynamicSort:S("display.dynamicSort"),showRandomButton:S("display.showRandomButton"),showFullscreenButton:S("display.showFullscreenButton")},developer:{enabled:S("developer.enabled"),showDebugConfig:S("developer.showDebugConfig")},message:{showSidebar:S("message.showSidebar"),maxActiveMessages:S("message.maxActiveMessages"),timeout:S("message.timeout"),saveHistory:S("message.saveHistory")}},dataProviders:[{title:"服务器",value:"server"},{title:"本地数据库",value:"indexedDB"}],studentData:{list:[],text:"",advanced:!1},newStudent:"",editingIndex:-1,editingName:"",deleteDialog:!1,studentToDelete:null,numberDialog:!1,newPosition:"",studentToMove:null,touchStartTime:0,touchTimeout:null,studentsLoading:!1,studentsError:null,debugConfig:"",loading:{server:!1,students:!1},hasUnsavedChanges:!1,lastSavedData:null,settingsTab:"index",settingsTabs:[{title:"首页",icon:"mdi-home",value:"index"},{title:"服务器",icon:"mdi-server",value:"server"},{title:"科目",icon:"mdi-book-edit",value:"subject"},{title:"学生列表",icon:"mdi-account-group",value:"student"},{title:"预配链接",icon:"mdi-share",value:"share"},{title:"刷新",icon:"mdi-refresh",value:"refresh"},{title:"编辑",icon:"mdi-pencil",value:"edit"},{title:"显示",icon:"mdi-eye",value:"display"},{title:"主题",icon:"mdi-theme-light-dark",value:"theme"},{title:"随机点名",icon:"mdi-dice-multiple",value:"randomPicker"},{title:"开发者",icon:"mdi-developer-board",value:"developer"},{title:"关于",icon:"mdi-information",value:"about"}],drawer:!1}},watch:{settings:{handler(s){this.handleSettingsChange(s)},deep:!0},isMobile:{handler(s){this.drawer=!s},immediate:!0},studentData:{handler(s){this.lastSavedData&&(this.hasUnsavedChanges=JSON.stringify(s.list)!==JSON.stringify(this.lastSavedData)),this.studentData.text=s.list.join(` -`)},deep:!0}},mounted(){this.loadAllSettings(),this.unwatchSettings=qe(()=>{this.loadAllSettings()}),this.drawer=!this.isMobile},beforeUnmount(){this.unwatchSettings&&this.unwatchSettings()},methods:{openClassworksKV(){window.open(S("server.authDomain"),"_blank")},loadAllSettings(){Object.keys(this.settings).forEach(s=>{Object.keys(this.settings[s]).forEach(e=>{this.settings[s][e]=S(`${s}.${e}`)})})},handleSettingsChange(s){this.settingsChangeTimeout&&clearTimeout(this.settingsChangeTimeout),this.settingsChangeTimeout=setTimeout(()=>{Object.entries(s).forEach(([e,l])=>{Object.entries(l).forEach(([u,i])=>{const o=`${e}.${u}`,r=S(o);i!==r&&(_e(o,i)?this.showMessage("设置已更新",`${o} 已保存`):(this.showError("保存失败",`${o} 设置失败`),this.settings[e][u]=r))})})},100)},showMessage(s,e="",l="success"){this.$message[l](s,e)},showError(s,e=""){this.$message.error(s,e)},saveEdit(){if(this.editingIndex!==-1){const s=this.editingName.trim();s&&s!==this.studentData.list[this.editingIndex]&&(this.studentData.list[this.editingIndex]=s),this.editingIndex=-1,this.editingName=""}},startEdit(s,e){this.editingIndex=s,this.editingName=e},confirmDelete(s){this.studentToDelete={index:s,name:this.studentData.list[s]},this.deleteDialog=!0},moveStudent(s,e){const l=e==="up"?s-1:s+1;l>=0&&l=0&&s0){const e=this.studentData.list[s];this.studentData.list.splice(s,1),this.studentData.list.unshift(e)}},addStudent(){const s=this.newStudent.trim();s&&!this.studentData.list.includes(s)&&(this.studentData.list.push(s),this.newStudent="")},removeStudent(s){s!==void 0&&(this.studentData.list.splice(s,1),this.deleteDialog=!1,this.studentToDelete=null)},resetFontSize(){ft("font.size"),this.settings.font.size=S("font.size"),this.showMessage("字体已重置","字体大小已恢复默认值")},handleDeveloperChange(s){s||(this.settings.message={showSidebar:!0,maxActiveMessages:5,timeout:5e3,saveHistory:!0})},resetDeveloperSettings(){this.settings.developer={enabled:!1},this.settings.message={showSidebar:!0,maxActiveMessages:5,timeout:5e3,saveHistory:!0},this.handleSettingsChange(this.settings),this.showMessage("已重置","开发者设置已重置为默认值","warning")},adjustFontSize(s){const l=this.settings.font.size;s==="up"&&l<100?this.settings.font.size=l+2:s==="down"&&l>16&&(this.settings.font.size=l-2),this.handleSettingsChange(this.settings)},onSettingsSaved(){this.showMessage("设置已更新","您的设置已成功保存")},onSettingUpdate(s,e){this.showMessage("设置已更新",`${s} 已保存为 ${e}`)}}},bi={class:"settings-page"},yi={class:"mt-4"};function ki(s,e,l,u,i,o){const r=Ft,c=Kt,p=zt,x=Ot,_=Lt,j=Pt,G=Mt,F=Ut,X=jt,re=Nt,me=Et,ae=Tt,ee=It,ge=Q,$=hn("developer-settings-card"),T=Dt,J=Vt,se=ct;return m(),D("div",bi,[t(kn,{elevation:"1"},{prepend:n(()=>[t(f,{icon:"mdi-arrow-left",variant:"text",onClick:e[0]||(e[0]=U=>s.$router.push("/"))}),t(f,{icon:"mdi-menu",variant:"text",onClick:e[1]||(e[1]=U=>i.drawer=!i.drawer)})]),default:n(()=>[t(yn,{class:"text-h6"},{default:n(()=>[...e[5]||(e[5]=[a("设置",-1)])]),_:1})]),_:1}),t(vt,{fluid:""},{default:n(()=>[t($t,{modelValue:i.drawer,"onUpdate:modelValue":e[2]||(e[2]=U=>i.drawer=U),permanent:!u.isMobile,temporary:u.isMobile},{default:n(()=>[t(K,null,{default:n(()=>[(m(!0),D(oe,null,fe(i.settingsTabs,U=>(m(),w(V,{key:U.value,active:i.settingsTab===U.value,color:i.settingsTab===U.value?"primary":"default","prepend-icon":U.icon,class:"rounded-e-xl",onClick:pe=>i.settingsTab=U.value},{default:n(()=>[t(L,null,{default:n(()=>[a(v(U.title),1)]),_:2},1024)]),_:2},1032,["active","color","prepend-icon","onClick"]))),128))]),_:1})]),_:1},8,["modelValue","permanent","temporary"]),t(Sn,{modelValue:i.settingsTab,"onUpdate:modelValue":e[4]||(e[4]=U=>i.settingsTab=U),direction:"vertical",style:{width:"100%"}},{default:n(()=>[t(de,{value:"index"},{default:n(()=>[t(N,{border:"",class:"service-card gradient-right clickable mb-4",color:"primary",elevation:"8",hover:"",rounded:"xl",variant:"tonal",onClick:o.openClassworksKV},{default:n(()=>[t(Le,null,{default:n(()=>[...e[6]||(e[6]=[h("div",{class:"card-title"},[h("div",null,[h("div",{class:"text-h6"},"在寻找 Classworks KV ?"),h("div",{class:"text-caption text-medium-emphasis"}," 文档形键值数据库 ")])],-1)])]),_:1}),t(E,null,{default:n(()=>[h("div",yi,[t(f,{"append-icon":"mdi-arrow-right",class:"text-none",rounded:"xl",variant:"text",onClick:o.openClassworksKV},{default:n(()=>[...e[7]||(e[7]=[a(" 打开 Classworks KV ",-1)])]),_:1},8,["onClick"])])]),_:1})]),_:1},8,["onClick"]),t(N,{border:"",class:"rounded-xl mb-4",subtitle:"设置",title:"Classworks"},{default:n(()=>[t(E,null,{default:n(()=>[t(W,{class:"rounded-xl",color:"error",icon:"mdi-alert-circle",variant:"tonal"},{default:n(()=>[...e[8]||(e[8]=[a("Classworks 是开源免费的软件,官方没有提供任何形式的付费支持服务,源代码仓库地址在 ",-1),h("a",{href:"https://github.com/ZeroCatDev/Classworks",target:"_blank"},"https://github.com/ZeroCatDev/Classworks",-1),a("。如果您通过有偿协助等付费方式取得本应用,在遇到问题时请在与卖家约定的服务框架下,优先向卖家求助。如果卖家没有提供您预期的服务,请退款或通过其它形式积极维护您的合法权益。 ",-1)])]),_:1}),t(W,{class:"mt-4 rounded-xl",color:"info",icon:"mdi-information",variant:"tonal"},{default:n(()=>[...e[9]||(e[9]=[a("请不要使用浏览器清除缓存功能,否则会导致配置丢失。 ",-1),h("del",null,"恶意的操作可能导致您受到贵校教师的处理 ",-1)])]),_:1}),t(W,{class:"mt-4 rounded-xl",color:"warning",icon:"mdi-information",variant:"tonal"},{default:n(()=>[e[11]||(e[11]=h("p",null," 请不要使用包括但不限于360极速浏览器、360安全浏览器、夸克浏览器、QQ浏览器等浏览器使用 Classworks ,这些浏览器过时且存在严重的一致性问题。在Windows上,使用新版 Microsoft Edge 浏览器是最推荐的选择。 ",-1)),e[12]||(e[12]=h("p",{style:{color:"#666"}}," 上述浏览器商标为其所属公司所有,Classworks™ 与上述浏览器所属公司无竞争关系。 ",-1)),e[13]||(e[13]=h("br",null,null,-1)),t(f,{"append-icon":"mdi-open-in-new",class:"text-none rounded-xl",color:"warning",href:"https://www.microsoft.com/zh-cn/windows/microsoft-edge",target:"_blank",variant:"tonal"},{default:n(()=>[...e[10]||(e[10]=[a("下载 Microsoft Edge(微软边缘浏览器) ",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),t(r)]),_:1}),t(de,{value:"server"},{default:n(()=>[t(c,{loading:i.loading.server,border:"",onSaved:o.onSettingsSaved},null,8,["loading","onSaved"]),t(p,{border:"",class:"mt-4"}),t(x,{border:"",class:"mt-4"})]),_:1}),t(de,{value:"student"},{default:n(()=>[t(_,{"is-mobile":u.isMobile,border:""},null,8,["is-mobile"])]),_:1}),t(de,{value:"share"},{default:n(()=>[t(j,{border:"",class:"mt-4"})]),_:1}),t(de,{value:"refresh"},{default:n(()=>[t(G,{loading:i.loading.refresh,border:"",onSaved:o.onSettingsSaved},null,8,["loading","onSaved"])]),_:1}),t(de,{value:"edit"},{default:n(()=>[t(F,{loading:i.loading.edit,border:"",onSaved:o.onSettingsSaved},null,8,["loading","onSaved"])]),_:1}),t(de,{value:"display"},{default:n(()=>[t(X,{loading:i.loading.display,border:"",onSaved:o.onSettingsSaved},null,8,["loading","onSaved"])]),_:1}),t(de,{value:"theme"},{default:n(()=>[t(re,{loading:i.loading.theme,border:"",onSaved:o.onSettingsSaved},null,8,["loading","onSaved"])]),_:1}),t(de,{value:"randomPicker"},{default:n(()=>[t(me,{"is-mobile":u.isMobile,border:""},null,8,["is-mobile"])]),_:1}),t(de,{value:"subject"},{default:n(()=>[t(ae,{border:""}),e[14]||(e[14]=h("br",null,null,-1)),t(ee,{border:""})]),_:1}),t(de,{value:"developer"},{default:n(()=>[t(ge,{border:"",icon:"mdi-developer-board",title:"开发者选项"},{default:n(()=>[t(K,null,{default:n(()=>[t(V,null,{prepend:n(()=>[t(g,{class:"mr-3",icon:"mdi-code-tags"})]),append:n(()=>[t(ht,{modelValue:i.settings.developer.enabled,"onUpdate:modelValue":e[3]||(e[3]=U=>i.settings.developer.enabled=U),density:"comfortable","hide-details":"",onChange:o.handleDeveloperChange},null,8,["modelValue","onChange"])]),default:n(()=>[t(L,null,{default:n(()=>[...e[15]||(e[15]=[a("启用开发者选项",-1)])]),_:1}),t(Z,null,{default:n(()=>[...e[16]||(e[16]=[a("启用后可以查看和修改开发者设置 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),t($,{loading:i.loading.developer,border:"",onSaved:o.onSettingsSaved},null,8,["loading","onSaved"]),i.settings.developer.enabled?(m(),w(N,{key:0,border:"",class:"mt-4 rounded-lg"},{default:n(()=>[t(R,{class:"d-flex align-center"},{default:n(()=>[t(g,{class:"mr-2",icon:"mdi-cog-outline"}),e[17]||(e[17]=a(" 所有设置 ",-1))]),_:1}),t(Ne,null,{default:n(()=>[...e[18]||(e[18]=[a(" 浏览和修改所有可用设置",-1)])]),_:1}),t(E,null,{default:n(()=>[t(T,{onUpdate:o.onSettingUpdate},null,8,["onUpdate"])]),_:1})]),_:1})):k("",!0),i.settings.developer.enabled?(m(),w(le,{key:1,cols:"12"})):k("",!0)]),_:1}),t(de,{value:"about"},{default:n(()=>[t(r),t(J,{border:"",class:"mt-4"})]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(se,{ref:"messageLog"},null,512)])}const Qi=H(vi,[["render",ki]]);export{Qi as default}; diff --git a/assets/settings-CKHEbZ82.js b/assets/settings-CKHEbZ82.js new file mode 100644 index 0000000..c8c4d48 --- /dev/null +++ b/assets/settings-CKHEbZ82.js @@ -0,0 +1,14 @@ +import{p as ot,_ as gt,V as sn}from"./index-CcbavYG9.js";import{_ as Z,j as w,o as m,w as n,d as t,B as S,an as ze,q as F,t as l,C as v,v as y,z as N,ak as Oe,al as Ye,M as oe,l as B,i as p,bn as on,L as vt,at as bt,bo as yt,k as V,s as De,bp as ln,A,ap as R,aq as ie,y as f,P as Q,Q as T,K as L,E as Je,ao as qe,F as te,bq as je,ai as We,ar as He,G as me,x as W,Y as Ne,br as an,N as Se,O as Be,H as we,bd as rn,D as un,g as dn,p as cn,a3 as mn,bs as pn,bt as fn,a_ as hn,e as lt,$ as de,a6 as at,bu as wn,aa as gn,R as rt,aw as vn,a5 as Ee,aj as bn,aO as yn,r as kn,X as xn}from"./index-GyS8nTIx.js";import{V as $}from"./VChip-DsTHqUw0.js";import{V as kt}from"./VSwitch-COsJOhk2.js";import{f as xt,a as Ge}from"./filter-D0RnlzqQ.js";import{V as K}from"./VTextField-xLiM0gib.js";import{V as St}from"./VMenu-ClQzjH_h.js";import{d as he,b as ut,a as Sn,o as Cn,c as _n,k as Vn}from"./dataProvider-CVD6IsoX.js";import{V as ee,a as Ve}from"./VAlert-CB2ovGuT.js";import{V as ke,a as ce}from"./VRow-DtMdTMSo.js";import{V as Ct}from"./VContainer-B1JGY98V.js";import{V as _t}from"./VForm-CnK2lukw.js";import{V as Ze,a as Xe,b as Vt,c as $e}from"./VExpansionPanels-uPjuA0pD.js";import{e as Dt,b as Dn,a as fe}from"./VTabsWindowItem-ClJOXEhz.js";import{V as Le}from"./VTextarea-BeSb8uK6.js";import{V as dt}from"./VCheckboxBtn-Cjkf0n-9.js";import{V as ct,a as mt,b as An,c as In}from"./VAppBarTitle-CUv9Ys4F.js";import{V as Tn}from"./VSheet-DBWP7oOE.js";const En={name:"SettingsCard",props:{title:{type:String,required:!0},icon:{type:String,required:!0},loading:{type:Boolean,default:!1}}};function Un(s,e,a,u,i,o){return m(),w(B,{class:"settings-card rounded-lg",elevation:"2"},{default:n(()=>[t(ze,null,{prepend:n(()=>[t(y,{icon:a.icon,class:"mr-2",size:"large"},null,8,["icon"])]),default:n(()=>[t(F,{class:"text-h6"},{default:n(()=>[l(v(a.title),1)]),_:1})]),_:1}),t(N,null,{default:n(()=>[a.loading?(m(),w(Ye,{key:0,class:"mb-4",color:"primary",indeterminate:""})):S("",!0),Oe(s.$slots,"default",{},void 0,!0)]),_:3}),s.$slots.actions?(m(),w(oe,{key:0,class:"pa-4"},{default:n(()=>[Oe(s.$slots,"actions",{},void 0,!0)]),_:3})):S("",!0)]),_:3})}const q=Z(En,[["render",Un],["__scopeId","data-v-9c035df1"]]);var jn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nn(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var At={exports:{}};(function(s,e){(function(a,u){s.exports=u()})(typeof self<"u"?self:jn,()=>(()=>{var a={3146:(r,h,d)=>{for(var b=d(3491),D=typeof window>"u"?d.g:window,E=["moz","webkit"],G="AnimationFrame",J=D["request"+G],Y=D["cancel"+G]||D["cancelRequest"+G],ae=0;!J&&ae{var h=r&&r.__esModule?()=>r.default:()=>r;return i.d(h,{a:h}),h},i.d=(r,h)=>{for(var d in h)i.o(h,d)&&!i.o(r,d)&&Object.defineProperty(r,d,{enumerable:!0,get:h[d]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(r,h)=>Object.prototype.hasOwnProperty.call(r,h);var o={};return(()=>{i.d(o,{default:()=>Yt});var r=i(3146),h=i.n(r);const d=function(U){return new RegExp(/<[a-z][\s\S]*>/i).test(U)},b=function(U,k){return Math.floor(Math.random()*(k-U+1))+U};var D="TYPE_CHARACTER",E="REMOVE_CHARACTER",G="REMOVE_ALL",J="REMOVE_LAST_VISIBLE_NODE",Y="PAUSE_FOR",ae="CALL_FUNCTION",re="ADD_HTML_TAG_ELEMENT",le="CHANGE_DELETE_SPEED",X="CHANGE_DELAY",ge="CHANGE_CURSOR",C="PASTE_STRING",g="HTML_TAG";function _(U){return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},_(U)}function M(U,k){var P=Object.keys(U);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(U);k&&(I=I.filter(function(ve){return Object.getOwnPropertyDescriptor(U,ve).enumerable})),P.push.apply(P,I)}return P}function j(U){for(var k=1;kU.length)&&(k=U.length);for(var P=0,I=Array(k);P1&&arguments[1]!==void 0?arguments[1]:null;if(d(x))return c.typeOutHTMLString(x,z);if(x){var ne=(c.options||{}).stringSplitter,se=typeof ne=="function"?ne(x):x.split("");c.typeCharacters(se,z)}return c}),O(this,"pasteString",function(x){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d(x)?c.typeOutHTMLString(x,z,!0):(x&&c.addEventToQueue(C,{character:x,node:z}),c)}),O(this,"typeOutHTMLString",function(x){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,ne=arguments.length>2?arguments[2]:void 0,se=function(Ae){var Ie=document.createElement("div");return Ie.innerHTML=Ae,Ie.childNodes}(x);if(se.length>0)for(var H=0;H0&&arguments[0]!==void 0?arguments[0]:"natural";return c.addEventToQueue(G,{speed:x}),c}),O(this,"changeDeleteSpeed",function(x){if(!x)throw new Error("Must provide new delete speed");return c.addEventToQueue(le,{speed:x}),c}),O(this,"changeDelay",function(x){if(!x)throw new Error("Must provide new delay");return c.addEventToQueue(X,{delay:x}),c}),O(this,"changeCursor",function(x){if(!x)throw new Error("Must provide new cursor");return c.addEventToQueue(ge,{cursor:x}),c}),O(this,"deleteChars",function(x){if(!x)throw new Error("Must provide amount of characters to delete");for(var z=0;z1&&arguments[1]!==void 0?arguments[1]:null;if(!x||!Array.isArray(x))throw new Error("Characters must be an array");return x.forEach(function(ne){c.addEventToQueue(D,{character:ne,node:z})}),c}),O(this,"removeCharacters",function(x){if(!x||!Array.isArray(x))throw new Error("Characters must be an array");return x.forEach(function(){c.addEventToQueue(E)}),c}),O(this,"addEventToQueue",function(x,z){var ne=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return c.addEventToStateProperty(x,z,ne,"eventQueue")}),O(this,"addReverseCalledEvent",function(x,z){var ne=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return c.options.loop?c.addEventToStateProperty(x,z,ne,"reverseCalledEvents"):c}),O(this,"addEventToStateProperty",function(x,z){var ne=arguments.length>2&&arguments[2]!==void 0&&arguments[2],se=arguments.length>3?arguments[3]:void 0,H={eventName:x,eventArgs:z||{}};return c.state[se]=ne?[H].concat(ue(c.state[se])):[].concat(ue(c.state[se]),[H]),c}),O(this,"runEventLoop",function(){c.state.lastFrameTime||(c.state.lastFrameTime=Date.now());var x=Date.now(),z=x-c.state.lastFrameTime;if(!c.state.eventQueue.length){if(!c.options.loop)return;c.state.eventQueue=ue(c.state.calledEvents),c.state.calledEvents=[],c.options=j({},c.state.initialOptions)}if(c.state.eventLoop=h()(c.runEventLoop),!c.state.eventLoopPaused){if(c.state.pauseUntil){if(x({typewriter:null,sourceWriter:null,currentQuote:ht,hasClicked:!1}),mounted(){this.initTypewriters()},methods:{initTypewriters(){this.typewriter=new pt(this.$refs.typewriter,wt.main),this.sourceWriter=new pt(this.$refs.sourceWriter,wt.source),this.typeQuote(ht)},typeQuote(s){this.typewriter.deleteAll(30).typeString(s.text).start(),s.author&&this.sourceWriter.deleteAll(20).typeString(s.author).start()},async handleClick(){this.hasClicked||(this.hasClicked=!0),await this.copyToClipboard(),this.currentQuote=this.getRandomQuote(),this.typeQuote(this.currentQuote)},getRandomQuote(){return ft.quotes[Math.floor(Math.random()*ft.quotes.length)]},async copyToClipboard(){if(!this.currentQuote)return;const{text:s,author:e,contributor:a,link:u}=this.currentQuote,i=[s,e&&`作者:${e}`,a&&`贡献者:${a}`,(u||a)&&`来源:${u||`https://github.com/${a}`}`].filter(Boolean);try{await navigator.clipboard.writeText(i.join(` +`))}catch(o){console.error("复制失败:",o)}}},beforeUnmount(){[this.typewriter,this.sourceWriter].forEach(s=>s==null?void 0:s.stop())}},Ln={ref:"typewriter",class:"typewriter-text"},On={ref:"sourceWriter",class:"source-text"};function zn(s,e,a,u,i,o){const r=q;return m(),w(r,{border:"",icon:"mdi-thought-bubble",title:"回声洞",onClick:o.handleClick},{default:n(()=>[t(N,null,{default:n(()=>[p("div",Ln,null,512),p("div",On,null,512)]),_:1}),t(on,{name:"fade"},{default:n(()=>{var h;return[(h=s.currentQuote)!=null&&h.contributor?(m(),w($,{key:0,class:"contributor"},{default:n(()=>[t(vt,{start:""},{default:n(()=>[t(bt,{src:`https://github.com/${s.currentQuote.contributor}.png`},null,8,["src"])]),_:1}),l(" "+v(s.currentQuote.contributor),1)]),_:1})):S("",!0)]}),_:1})]),_:1},8,["onClick"])}const It=Z(Bn,[["render",zn],["__scopeId","data-v-a6a55e27"]]),Kn={name:"SettingItem",props:{settingKey:{type:String,required:!0},icon:{type:String,default:null},disabled:{type:Boolean,default:!1},title:{type:String,default:null},description:{type:String,default:null}},data(){return{localValue:null,definition:null,type:null,selectOptions:[],hasOptions:!1,minValue:0,maxValue:100,stepValue:1,showSnackbar:!1,snackbarText:"",fontFamilies:[{title:"Arial",value:"Arial, sans-serif"},{title:"Calibri",value:"Calibri, sans-serif"},{title:"Cambria",value:"Cambria, serif"},{title:"Consolas",value:"Consolas, monospace"},{title:"Courier New",value:"Courier New, monospace"},{title:"Georgia",value:"Georgia, serif"},{title:"Helvetica",value:"Helvetica, sans-serif"},{title:"Segoe UI",value:"Segoe UI, sans-serif"},{title:"Times New Roman",value:"Times New Roman, serif"},{title:"Trebuchet MS",value:"Trebuchet MS, sans-serif"},{title:"Verdana",value:"Verdana, sans-serif"},{title:"Monospace",value:"monospace"},{title:"Sans-serif",value:"sans-serif"},{title:"Serif",value:"serif"}],displayValueMappings:{"display.emptySubjectDisplay":{card:"卡片",button:"按钮"},"theme.mode":{light:"浅色",dark:"深色"},"server.provider":{classworkscloud:"Classworks云端存储","kv-local":"KV本地存储","kv-server":"KV远程服务器"}},defaultIcons:{boolean:"mdi-toggle-switch-outline",number:"mdi-numeric",string:"mdi-form-textbox"}}},computed:{displayTitle(){if(this.title)return this.title;if(this.definition&&this.definition.description)return this.definition.description;const s=this.settingKey.split(".");return s[s.length-1]},displayDescription(){return this.description?this.description:this.settingKey},isFontFamily(){return this.settingKey.toLowerCase().includes("fontfamily")||this.settingKey.toLowerCase().includes("font.family")},isDefaultValue(){return this.definition?typeof this.localValue=="object"&&this.localValue!==null?JSON.stringify(this.localValue)===JSON.stringify(this.definition.default):this.localValue===this.definition.default:!0},settingIcon(){return this.icon?this.icon:this.definition&&this.definition.icon?this.definition.icon:this.defaultIcons[this.type]||"mdi-cog-outline"}},created(){this.loadSetting()},methods:{loadSetting(){if(this.definition=ln(this.settingKey),!this.definition){console.error(`未找到设置项定义: ${this.settingKey}`);return}if(this.type=this.definition.type,this.localValue=V(this.settingKey),this.type==="string"){if(this.isFontFamily)this.selectOptions=this.fontFamilies,this.hasOptions=!0;else if(this.settingKey in this.displayValueMappings){const s=this.displayValueMappings[this.settingKey];this.selectOptions=Object.entries(s).map(([e,a])=>({title:a,value:e})),this.hasOptions=!0}else if(this.definition.validate){const e=this.definition.validate.toString().match(/\[(.*?)\]/);if(e){const u=e[1].split(",").map(i=>{const o=i.trim().replace(/['"]/g,"");return{title:this.getDisplayValue(o)||o,value:o}});u.length>0&&(this.selectOptions=u,this.hasOptions=!0)}}}if(this.type==="number"&&this.definition.validate){const s=this.definition.validate.toString(),e=s.match(/value\s*>=\s*(\d+)/);e&&(this.minValue=Number(e[1]));const a=s.match(/value\s*<=\s*(\d+)/);a&&(this.maxValue=Number(a[1]));const u=this.maxValue-this.minValue;u>100?this.stepValue=10:u>20?this.stepValue=5:u>10?this.stepValue=2:this.stepValue=1}},getDisplayValue(s){return this.settingKey in this.displayValueMappings&&this.displayValueMappings[this.settingKey][s]||s},updateSetting(s){let e=s;this.type==="boolean"?e=!!s:this.type==="number"&&(e=Number(s),ethis.maxValue&&(e=this.maxValue)),De(this.settingKey,e)?this.$emit("update",this.settingKey,e):(this.localValue=V(this.settingKey),this.$emit("error",this.settingKey))},adjustValue(s){if(this.type!=="number")return;const e=this.localValue+s;e>=this.minValue&&e<=this.maxValue&&(this.localValue=e,this.updateSetting(e))},copySettingId(){navigator.clipboard.writeText(this.settingKey).then(()=>{this.showSnackbarMessage("设置ID已复制到剪贴板")}).catch(s=>{console.error("复制失败:",s)})},copySettingValue(){let s="";typeof this.localValue=="object"&&this.localValue!==null?s=JSON.stringify(this.localValue):s=String(this.localValue),navigator.clipboard.writeText(s).then(()=>{this.showSnackbarMessage("设置值已复制到剪贴板")}).catch(e=>{console.error("复制失败:",e)})},resetToDefault(){this.definition&&(yt(this.settingKey),this.localValue=V(this.settingKey),this.showSnackbarMessage("已重置为默认值"),this.$emit("update",this.settingKey,this.localValue))},showSnackbarMessage(s){this.snackbarText=s,this.showSnackbar=!0}}},Rn={class:"text-caption text-grey-darken-1"},Fn={class:"d-flex flex-column flex-sm-row align-center"},Qn={key:0,class:"me-2"},Jn={key:2,class:"d-flex align-center"},Hn={key:0,class:"px-4 pb-2 pt-0"};function Gn(s,e,a,u,i,o){return m(),A(te,null,[t(T,{disabled:a.disabled,class:"setting-item"},{prepend:n(()=>[t(y,{icon:o.settingIcon},null,8,["icon"])]),append:n(()=>[p("div",Fn,[i.type!=="string"||i.hasOptions?(m(),A("div",Qn,[i.type==="boolean"?(m(),w(kt,{key:0,modelValue:i.localValue,"onUpdate:modelValue":[e[0]||(e[0]=r=>i.localValue=r),o.updateSetting],disabled:a.disabled,density:"comfortable","hide-details":""},null,8,["modelValue","disabled","onUpdate:modelValue"])):i.type==="string"&&i.hasOptions?(m(),w(xt,{key:1,modelValue:i.localValue,"onUpdate:modelValue":[e[1]||(e[1]=r=>i.localValue=r),o.updateSetting],disabled:a.disabled,items:i.selectOptions,"bg-color":"surface",class:"setting-select",density:"compact","hide-details":"","item-title":"title","item-value":"value",variant:"outlined"},null,8,["modelValue","disabled","items","onUpdate:modelValue"])):i.type==="number"?(m(),A("div",Jn,[t(f,{disabled:a.disabled||i.localValue<=i.minValue,icon:"mdi-minus",size:"small",variant:"text",onClick:e[2]||(e[2]=r=>o.adjustValue(-i.stepValue))},null,8,["disabled"]),t(K,{modelValue:i.localValue,"onUpdate:modelValue":[e[3]||(e[3]=r=>i.localValue=r),o.updateSetting],modelModifiers:{number:!0},disabled:a.disabled,max:i.maxValue,min:i.minValue,step:i.stepValue,"bg-color":"surface",class:"mx-2 setting-number-field",density:"compact","hide-details":"",style:{width:"80px"},type:"number",variant:"outlined"},null,8,["modelValue","disabled","max","min","step","onUpdate:modelValue"]),t(f,{disabled:a.disabled||i.localValue>=i.maxValue,icon:"mdi-plus",size:"small",variant:"text",onClick:e[4]||(e[4]=r=>o.adjustValue(i.stepValue))},null,8,["disabled"])])):S("",!0)])):S("",!0),t(St,{location:"bottom"},{activator:n(({props:r})=>[t(f,Je({disabled:a.disabled,class:"ml-2",icon:"mdi-dots-vertical",size:"small"},r,{variant:"text"}),null,16,["disabled"])]),default:n(()=>[t(Q,{density:"compact"},{default:n(()=>[t(T,{onClick:o.copySettingId},{prepend:n(()=>[t(y,{icon:"mdi-key",size:"small"})]),default:n(()=>[t(R,null,{default:n(()=>[...e[7]||(e[7]=[l("复制设置ID",-1)])]),_:1})]),_:1},8,["onClick"]),t(T,{onClick:o.copySettingValue},{prepend:n(()=>[t(y,{icon:"mdi-content-copy",size:"small"})]),default:n(()=>[t(R,null,{default:n(()=>[...e[8]||(e[8]=[l("复制设置值",-1)])]),_:1})]),_:1},8,["onClick"]),t(L),t(T,{disabled:o.isDefaultValue,onClick:o.resetToDefault},{prepend:n(()=>[t(y,{icon:"mdi-restore",size:"small"})]),default:n(()=>[t(R,null,{default:n(()=>[...e[9]||(e[9]=[l("重置为默认值",-1)])]),_:1})]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})])]),default:n(()=>[t(R,{class:"text-wrap"},{default:n(()=>[l(v(o.displayTitle),1)]),_:1}),t(ie,{class:"d-flex align-center text-wrap"},{default:n(()=>[p("span",Rn,v(a.settingKey),1)]),_:1})]),_:1},8,["disabled"]),i.type==="string"&&!i.hasOptions?(m(),A("div",Hn,[t(K,{modelValue:i.localValue,"onUpdate:modelValue":[e[5]||(e[5]=r=>i.localValue=r),o.updateSetting],disabled:a.disabled,"bg-color":"surface",class:"setting-text-field mt-1",density:"compact","hide-details":"",variant:"outlined"},null,8,["modelValue","disabled","onUpdate:modelValue"])])):S("",!0),t(qe,{modelValue:i.showSnackbar,"onUpdate:modelValue":e[6]||(e[6]=r=>i.showSnackbar=r),timeout:2e3,color:"success",location:"top"},{default:n(()=>[l(v(i.snackbarText),1)]),_:1},8,["modelValue"])],64)}const Ce=Z(Kn,[["render",Gn],["__scopeId","data-v-08b49b47"]]),Yn={name:"SettingsExplorer",components:{SettingItem:Ce},data(){return{searchQuery:"",currentSettings:{},unwatchFunction:null}},computed:{isDeveloperMode(){return V("developer.enabled")},allSettings(){var e;const s=[];for(const[a,u]of Object.entries(He))this.searchQuery&&!a.toLowerCase().includes(this.searchQuery.toLowerCase())&&!((e=u.description)!=null&&e.toLowerCase().includes(this.searchQuery.toLowerCase()))||s.push({key:a,...u});return s},formattedSettings(){return JSON.stringify(this.currentSettings,null,2)}},created(){this.updateCurrentSettings(),this.unwatchFunction=We(()=>{this.updateCurrentSettings()})},beforeUnmount(){this.unwatchFunction&&this.unwatchFunction()},methods:{updateCurrentSettings(){this.currentSettings=je()},onSettingUpdate(s,e){this.$emit("update",s,e),this.updateCurrentSettings()},onSettingError(s){this.$emit("error",s)},copySettingsToClipboard(){navigator.clipboard.writeText(JSON.stringify(this.currentSettings)).then(()=>{this.$emit("message",{type:"success",text:"设置已复制到剪贴板"})}).catch(s=>{console.error("复制到剪贴板失败:",s),this.$emit("message",{type:"error",text:"复制到剪贴板失败"})})}}},qn={class:"settings-explorer"},Wn={class:"settings-json"};function Zn(s,e,a,u,i,o){const r=Ce;return m(),A("div",qn,[p("div",null,[t(K,{modelValue:i.searchQuery,"onUpdate:modelValue":e[0]||(e[0]=h=>i.searchQuery=h),class:"mb-4",clearable:"",density:"comfortable",label:"搜索设置","prepend-inner-icon":"mdi-magnify",variant:"outlined"},null,8,["modelValue"]),t(Q,null,{default:n(()=>[(m(!0),A(te,null,me(o.allSettings,h=>(m(),A("div",{key:h.key},[(m(),w(r,{key:h.key,disabled:h.requireDeveloper&&!o.isDeveloperMode,"setting-key":h.key,onError:o.onSettingError,onUpdate:o.onSettingUpdate},null,8,["disabled","setting-key","onError","onUpdate"])),t(L,{class:"my-2"})]))),128))]),_:1}),t(B,{border:""},{default:n(()=>[t(F,{class:"text-subtitle-1"},{default:n(()=>[...e[1]||(e[1]=[l("当前配置",-1)])]),_:1}),t(N,null,{default:n(()=>[p("pre",Wn,v(o.formattedSettings),1)]),_:1}),t(oe,null,{default:n(()=>[t(W),t(f,{onClick:o.copySettingsToClipboard},{default:n(()=>[e[3]||(e[3]=l(" 复制到剪贴板 ",-1)),t(y,{right:""},{default:n(()=>[...e[2]||(e[2]=[l("mdi-content-copy",-1)])]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})])])}const Tt=Z(Yn,[["render",Zn],["__scopeId","data-v-4d032f99"]]),Xn={name:"SettingGroup",props:{title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:null},border:{type:Boolean,default:!1}},methods:{onSettingUpdate(s,e){this.$emit("update",s,e)},onSettingError(s){this.$emit("error",s)}}};function $n(s,e,a,u,i,o){return m(),w(B,{border:a.border,class:"setting-group"},{default:n(()=>[a.title?(m(),w(F,{key:0,class:"d-flex align-center"},{default:n(()=>[a.icon?(m(),w(y,{key:0,icon:a.icon,class:"mr-2"},null,8,["icon"])):S("",!0),l(" "+v(a.title),1)]),_:1})):S("",!0),a.description?(m(),w(Ne,{key:1},{default:n(()=>[l(v(a.description),1)]),_:1})):S("",!0),t(N,null,{default:n(()=>[t(Q,null,{default:n(()=>[Oe(s.$slots,"default",{},void 0,!0)]),_:3})]),_:3}),s.$slots.actions?(m(),w(oe,{key:2},{default:n(()=>[Oe(s.$slots,"actions",{},void 0,!0)]),_:3})):S("",!0)]),_:3},8,["border"])}const Et=Z(Xn,[["render",$n],["__scopeId","data-v-9af32ae4"]]),es={subjects:{语文:{books:{课本:["第一单元","第二单元"],练习册:["第一章","第二章"]}},数学:{books:{课本:["第一章","第二章"],习题册:["基础练习","提高练习"]}},英语:{books:{课本:["Unit 1","Unit 2"],练习册:["Chapter 1","Chapter 2"]}}},commonSubject:{books:{试卷:["单元测试","期中测试","期末测试"],假期作业:["必做题","选做题"]}},actions:["写完","下一课","不交","明天交"]},ts={name:"HomeworkTemplateCard",components:{SettingsCard:q,SettingGroup:Et},data(){return{loading:!1,error:null,config:an(JSON.parse(JSON.stringify(es))),originalConfig:null,newSubject:"",newCommonBook:"",newAction:"",newTask:"",editedSubjects:{},editedBookTypes:{},newBookTypes:{},newBooks:{},showSnackbar:!1,snackbarText:"",snackbarColor:"success",isNewConfig:!0,dialog:{show:!1,title:"",nameLabel:"",editedItem:{name:"",type:"",subject:"",bookType:"",originalName:"",tasks:[]}}}},computed:{subjectList(){return Object.keys(this.config.subjects)},hasChanges(){return this.isNewConfig?!0:this.originalConfig&&JSON.stringify(this.config)!==JSON.stringify(this.originalConfig)}},created(){this.loadConfig()},methods:{async loadConfig(){var s,e;this.loading=!0;try{const a=await he.loadData("classworks-config-homework-template");if(a){const u=a;Object.assign(this.config,u),this.originalConfig=JSON.parse(JSON.stringify(u)),this.isNewConfig=!1,this.showMessage("配置已加载","success")}else if(((s=a.error)==null?void 0:s.code)==="NOT_FOUND")this.showMessage("使用默认配置","info"),this.isNewConfig=!0;else{const u=((e=a.error)==null?void 0:e.message)||"加载失败";this.showMessage(`加载失败: ${u},可继续编辑当前配置`,"warning")}}catch(a){console.error("Failed to load config:",a),this.showMessage("加载失败,可继续编辑当前配置","warning")}this.loading=!1},async saveConfig(){this.loading=!0;try{const s=await he.saveData("classworks-config-homework-template",this.config);if(s)this.originalConfig=JSON.parse(JSON.stringify(this.config)),this.isNewConfig=!1,this.showMessage("配置已保存","success");else throw new Error(s||"保存失败")}catch(s){console.error("Failed to save config:",s),this.showMessage(`保存失败: ${s.message},请稍后重试`,"error")}this.loading=!1},showMessage(s,e="success"){this.snackbarText=s,this.snackbarColor=e,this.showSnackbar=!0},addSubject(){this.newSubject&&(this.config.subjects[this.newSubject]||(this.config.subjects[this.newSubject]={books:{}}),this.newSubject="")},updateSubject(s){const e=this.editedSubjects[s];if(e&&e!==s){const a=this.config.subjects[s];this.config.subjects[e]=a,delete this.config.subjects[s]}delete this.editedSubjects[s]},deleteSubject(s){delete this.config.subjects[s]},addBookType(s){const e=this.newBookTypes[s];e&&(this.config.subjects[s].books[e]||(this.config.subjects[s].books[e]=[]),this.newBookTypes[s]="")},updateBookType(s,e){const a=`${s}-${e}`,u=this.editedBookTypes[a];if(u&&u!==e){const i=this.config.subjects[s].books[e];this.config.subjects[s].books[u]=i,delete this.config.subjects[s].books[e]}delete this.editedBookTypes[a]},deleteBookType(s,e){s==="common"?delete this.config.commonSubject.books[e]:delete this.config.subjects[s].books[e]},addBook(s,e){const a=`${s}-${e}`,u=this.newBooks[a];u&&(this.config.subjects[s].books[e].includes(u)||this.config.subjects[s].books[e].push(u),this.newBooks[a]="")},removeBook(s,e,a){const u=this.config.subjects[s].books[e],i=u.indexOf(a);i>-1&&u.splice(i,1)},addCommonBook(){this.newCommonBook&&(this.config.commonSubject.books[this.newCommonBook]||(this.config.commonSubject.books[this.newCommonBook]=[]),this.newCommonBook="")},removeCommonBook(s){delete this.config.commonSubject.books[s]},addAction(){this.newAction&&(this.config.actions.includes(this.newAction)||this.config.actions.push(this.newAction),this.newAction="")},removeAction(s){const e=this.config.actions.indexOf(s);e>-1&&this.config.actions.splice(e,1)},openBookDialog(s,e,a){this.dialog.show=!0,this.dialog.title="编辑需完成部分",this.dialog.nameLabel="部分名称",this.dialog.editedItem={name:a,type:"book",subject:s,bookType:e,originalName:a,tasks:this.config.subjects[s].books[e]}},openCommonBookDialog(s){this.dialog.show=!0,this.dialog.title="编辑通用作业本",this.dialog.nameLabel="作业本名称",this.dialog.editedItem={name:s,type:"commonBook",originalName:s,tasks:Array.isArray(this.config.commonSubject.books[s])?[...this.config.commonSubject.books[s]]:[]}},openActionDialog(s){this.dialog={show:!0,title:"编辑操作",nameLabel:"操作名称",editedItem:{name:s,type:"action",originalName:s,tasks:[]}}},addTask(){this.newTask&&(this.dialog.editedItem.tasks||(this.dialog.editedItem.tasks=[]),this.dialog.editedItem.tasks.push(this.newTask),this.newTask="")},removeTask(s){this.dialog.editedItem.tasks.splice(s,1)},openSubjectBookDialog(s,e,a){this.dialog.show=!0,this.dialog.title=s==="common"?"编辑通用作业本":"编辑作业本",this.dialog.nameLabel="作业本名称",this.dialog.editedItem={name:e,type:"subjectBook",subject:s,originalName:e,tasks:Array.isArray(a)?[...a]:[]}},saveDialog(){const{type:s,name:e,subject:a,originalName:u,tasks:i}=this.dialog.editedItem;if(!e){this.showMessage("名称不能为空","error");return}let o;const r=a==="common"?this.config.commonSubject.books:a?this.config.subjects[a].books:null;switch(s){case"subjectBook":r&&(u!==e?(r[e]=i||[],delete r[u]):r[e]=i||[]);break;case"action":o=this.config.actions.indexOf(u),o>-1&&(this.config.actions[o]=e);break}this.closeDialog()},closeDialog(){this.dialog={show:!1,title:"",nameLabel:"",editedItem:{name:"",type:"",subject:"",originalName:"",tasks:[]}},this.newTask=""}}},ns={class:"d-flex justify-space-between align-center mb-6"};function ss(s,e,a,u,i,o){const r=Et,h=q;return m(),w(h,{loading:i.loading,border:"",icon:"mdi-book-edit",title:"作业模板配置"},{default:n(()=>[i.error?(m(),w(ee,{key:0,class:"mb-4",closable:"",type:"error",variant:"tonal"},{default:n(()=>[l(v(i.error),1)]),_:1})):S("",!0),p("div",ns,[p("div",null,[t(f,{loading:i.loading,class:"mr-2",color:"primary","prepend-icon":"mdi-refresh",size:"large",onClick:o.loadConfig},{default:n(()=>[...e[7]||(e[7]=[l(" 重新加载配置 ",-1)])]),_:1},8,["loading","onClick"]),t(f,{loading:i.loading,color:"success","prepend-icon":"mdi-content-save",size:"large",onClick:o.saveConfig},{default:n(()=>[...e[8]||(e[8]=[l(" 保存所有更改 ",-1)])]),_:1},8,["loading","onClick"])]),o.hasChanges?(m(),w($,{key:0,color:"warning",variant:"elevated"},{default:n(()=>[...e[9]||(e[9]=[l(" 有未保存的更改 ",-1)])]),_:1})):S("",!0)]),t(ke,null,{default:n(()=>[t(ce,{cols:"12",md:"6"},{default:n(()=>[t(r,{border:"",icon:"mdi-book",title:"科目配置"},{default:n(()=>[t(Q,null,{default:n(()=>[t(T,null,{default:n(()=>[t(K,{modelValue:i.newSubject,"onUpdate:modelValue":e[0]||(e[0]=d=>i.newSubject=d),"append-inner-icon":"mdi-plus",density:"comfortable",label:"添加新科目",variant:"outlined","onClick:appendInner":o.addSubject,onKeyup:Se(o.addSubject,["enter"])},null,8,["modelValue","onClick:appendInner","onKeyup"])]),_:1}),(m(!0),A(te,null,me(o.subjectList,d=>(m(),w(T,{key:d},{default:n(()=>[t(B,{border:"",class:"w-100 mb-2"},{default:n(()=>[t(F,{class:"d-flex align-center"},{default:n(()=>[t(K,{modelValue:i.editedSubjects[d],"onUpdate:modelValue":b=>i.editedSubjects[d]=b,placeholder:d,density:"comfortable","hide-details":"",variant:"plain",onBlur:b=>o.updateSubject(d)},null,8,["modelValue","onUpdate:modelValue","placeholder","onBlur"]),t(W),t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:b=>o.deleteSubject(d)},null,8,["onClick"])]),_:2},1024),t(N,null,{default:n(()=>[t(K,{modelValue:i.newBookTypes[d],"onUpdate:modelValue":b=>i.newBookTypes[d]=b,"append-inner-icon":"mdi-plus",class:"mb-2",density:"comfortable",label:"添加作业本名称",variant:"outlined","onClick:appendInner":()=>o.addBookType(d),onKeyup:Se(()=>o.addBookType(d),["enter"])},null,8,["modelValue","onUpdate:modelValue","onClick:appendInner","onKeyup"]),t(Q,{border:"",density:"compact",rounded:""},{default:n(()=>[(m(!0),A(te,null,me(i.config.subjects[d].books,(b,D)=>(m(),w(T,{key:D,title:D,onClick:E=>o.openSubjectBookDialog(d,D,b)},{prepend:n(()=>[t(y,{class:"mr-2",icon:"mdi-book-open-variant"})]),append:n(()=>[t($,{class:"mr-2",color:"info",size:"small"},{default:n(()=>[l(v(b.length)+"个部分 ",1)]),_:2},1024),t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:Be(()=>o.deleteBookType(d,D),["stop"])},null,8,["onClick"])]),_:2},1032,["title","onClick"]))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),t(ce,{cols:"12",md:"6"},{default:n(()=>[t(r,{border:"",icon:"mdi-cog",title:"通用配置"},{default:n(()=>[t(Q,null,{default:n(()=>[t(T,null,{default:n(()=>[t(K,{modelValue:i.newCommonBook,"onUpdate:modelValue":e[1]||(e[1]=d=>i.newCommonBook=d),"append-inner-icon":"mdi-plus",density:"comfortable",label:"添加作业本名称",variant:"outlined","onClick:appendInner":o.addCommonBook,onKeyup:Se(o.addCommonBook,["enter"])},null,8,["modelValue","onClick:appendInner","onKeyup"])]),_:1}),t(T,null,{default:n(()=>[t(Q,{border:"",density:"compact",rounded:""},{default:n(()=>[(m(!0),A(te,null,me(i.config.commonSubject.books,(d,b)=>(m(),w(T,{key:b,title:b,onClick:D=>o.openSubjectBookDialog("common",b,d)},{prepend:n(()=>[t(y,{class:"mr-2",icon:"mdi-book-multiple"})]),append:n(()=>[t($,{class:"mr-2",color:"info",size:"small"},{default:n(()=>[l(v(d.length)+"个部分 ",1)]),_:2},1024),t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:Be(()=>o.deleteBookType("common",b),["stop"])},null,8,["onClick"])]),_:2},1032,["title","onClick"]))),128))]),_:1})]),_:1}),t(L,{class:"my-2"}),t(T,null,{default:n(()=>[t(K,{modelValue:i.newAction,"onUpdate:modelValue":e[2]||(e[2]=d=>i.newAction=d),"append-inner-icon":"mdi-plus",density:"comfortable",label:"添加操作",variant:"outlined","onClick:appendInner":o.addAction,onKeyup:Se(o.addAction,["enter"])},null,8,["modelValue","onClick:appendInner","onKeyup"])]),_:1}),t(T,null,{default:n(()=>[t(Q,{border:"",density:"compact",rounded:""},{default:n(()=>[(m(!0),A(te,null,me(i.config.actions,d=>(m(),w(T,{key:d,title:d,onClick:b=>o.openActionDialog(d)},{append:n(()=>[t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:Be(b=>o.removeAction(d),["stop"])},null,8,["onClick"])]),_:2},1032,["title","onClick"]))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(we,{modelValue:i.dialog.show,"onUpdate:modelValue":e[5]||(e[5]=d=>i.dialog.show=d),"max-width":"600px"},{default:n(()=>[t(B,null,{default:n(()=>[t(F,{class:"text-h5 pa-4"},{default:n(()=>[l(v(i.dialog.title),1)]),_:1}),t(N,null,{default:n(()=>[t(Ct,null,{default:n(()=>[t(ke,null,{default:n(()=>[t(ce,{cols:"12"},{default:n(()=>[t(K,{modelValue:i.dialog.editedItem.name,"onUpdate:modelValue":e[3]||(e[3]=d=>i.dialog.editedItem.name=d),label:i.dialog.nameLabel,rules:[d=>!!d||"名称不能为空"],density:"comfortable",variant:"outlined"},null,8,["modelValue","label","rules"])]),_:1}),i.dialog.editedItem.type==="subjectBook"?(m(),w(ce,{key:0,cols:"12"},{default:n(()=>[e[10]||(e[10]=p("div",{class:"text-subtitle-2 mb-2"},"所属科目",-1)),t($,{color:"primary"},{default:n(()=>[l(v(i.dialog.editedItem.subject),1)]),_:1})]),_:1})):S("",!0),["subjectBook","commonBook"].includes(i.dialog.editedItem.type)?(m(),w(ce,{key:1,cols:"12"},{default:n(()=>[t(B,{variant:"outlined"},{default:n(()=>[t(F,{class:"text-subtitle-1 py-2"},{default:n(()=>[...e[11]||(e[11]=[l("需完成部分",-1)])]),_:1}),t(N,{class:"pt-0"},{default:n(()=>[t(Q,{border:"",class:"mb-2",density:"compact",rounded:""},{default:n(()=>[(m(!0),A(te,null,me(i.dialog.editedItem.tasks,(d,b)=>(m(),w(T,{key:b},{prepend:n(()=>[t(y,{class:"mr-2",icon:"mdi-checkbox-blank-circle-outline",size:"small"})]),append:n(()=>[t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:D=>o.removeTask(b)},null,8,["onClick"])]),default:n(()=>[t(K,{modelValue:i.dialog.editedItem.tasks[b],"onUpdate:modelValue":D=>i.dialog.editedItem.tasks[b]=D,density:"compact","hide-details":"",variant:"plain"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024))),128))]),_:1}),t(K,{modelValue:i.newTask,"onUpdate:modelValue":e[4]||(e[4]=d=>i.newTask=d),"append-inner-icon":"mdi-plus",class:"mt-2",density:"comfortable",label:"添加需完成部分",variant:"outlined","onClick:appendInner":o.addTask,onKeyup:Se(o.addTask,["enter"])},null,8,["modelValue","onClick:appendInner","onKeyup"])]),_:1})]),_:1})]),_:1})):S("",!0)]),_:1})]),_:1})]),_:1}),t(oe,{class:"pa-4"},{default:n(()=>[t(W),t(f,{color:"primary",variant:"elevated",onClick:o.saveDialog},{default:n(()=>[...e[12]||(e[12]=[l(" 关闭 ",-1)])]),_:1},8,["onClick"]),t(f,{color:"error",variant:"text",onClick:o.closeDialog},{default:n(()=>[...e[13]||(e[13]=[l(" 取消 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(qe,{modelValue:i.showSnackbar,"onUpdate:modelValue":e[6]||(e[6]=d=>i.showSnackbar=d),color:i.snackbarColor,timeout:3e3},{default:n(()=>[l(v(i.snackbarText),1)]),_:1},8,["modelValue","color"])]),_:1},8,["loading"])}const Ut=Z(ts,[["render",ss],["__scopeId","data-v-67769fa2"]]),is={name:"SubjectManagementCard",components:{SettingsCard:q},data(){return{loading:!1,error:null,subjects:[],originalSubjects:null,newSubjectName:"",showSnackbar:!1,snackbarText:"",snackbarColor:"success",defaultSubjects:[{name:"语文",order:0},{name:"数学",order:1},{name:"英语",order:2},{name:"物理",order:3},{name:"化学",order:4},{name:"生物",order:5},{name:"政治",order:6},{name:"历史",order:7},{name:"地理",order:8},{name:"其他",order:9}]}},computed:{hasChanges(){return this.originalSubjects&&JSON.stringify(this.subjects)!==JSON.stringify(this.originalSubjects)}},created(){this.loadConfig()},methods:{async loadConfig(){this.loading=!0;try{const s=await he.loadData("classworks-config-subject");s?(this.subjects=s.map((e,a)=>({name:e.name,order:e.order??a})).sort((e,a)=>e.order-a.order),this.originalSubjects=JSON.parse(JSON.stringify(this.subjects)),this.showMessage("配置已加载","success")):(this.subjects=[],this.originalSubjects=[],this.showMessage("使用默认配置","info"))}catch(s){console.error("Failed to load config:",s),this.showMessage("加载失败,可继续编辑当前配置","warning")}this.loading=!1},async saveConfig(){this.loading=!0;try{const s=await he.saveData("classworks-config-subject",this.subjects);if(s)this.originalSubjects=JSON.parse(JSON.stringify(this.subjects)),this.showMessage("配置已保存","success");else throw new Error(s||"保存失败")}catch(s){console.error("Failed to save config:",s),this.showMessage(`保存失败: ${s.message},请稍后重试`,"error")}this.loading=!1},showMessage(s,e="success"){this.snackbarText=s,this.snackbarColor=e,this.showSnackbar=!0},addSubject(){if(!this.newSubjectName)return;const s={name:this.newSubjectName,order:this.subjects.length};this.subjects.push(s),this.newSubjectName=""},updateSubject(s){const e=this.subjects.findIndex(a=>a.order===s.order);e>-1&&(this.subjects[e]={...s})},deleteSubject(s){const e=this.subjects.findIndex(a=>a.order===s.order);e>-1&&(this.subjects.splice(e,1),this.subjects.forEach((a,u)=>{a.order=u}))},moveSubject(s,e){const a=s+e;if(a>=0&&a{i.order=o})}},resetToDefault(){this.subjects=JSON.parse(JSON.stringify(this.defaultSubjects)),this.showMessage("已重置为默认科目列表","info")}}},os={class:"d-flex justify-space-between align-center mb-6"},ls={class:"d-flex flex-column align-center mr-2"};function as(s,e,a,u,i,o){const r=q;return m(),w(r,{loading:i.loading,border:"",icon:"mdi-book-multiple",title:"科目管理"},{default:n(()=>[i.error?(m(),w(ee,{key:0,class:"mb-4",closable:"",type:"error",variant:"tonal"},{default:n(()=>[l(v(i.error),1)]),_:1})):S("",!0),p("div",os,[p("div",null,[t(f,{loading:i.loading,class:"mr-2",color:"primary","prepend-icon":"mdi-refresh",size:"large",variant:"text",onClick:o.loadConfig},{default:n(()=>[...e[2]||(e[2]=[l(" 重新加载 ",-1)])]),_:1},8,["loading","onClick"]),t(f,{loading:i.loading,color:"success","prepend-icon":"mdi-content-save",size:"large",onClick:o.saveConfig},{default:n(()=>[...e[3]||(e[3]=[l(" 保存 ",-1)])]),_:1},8,["loading","onClick"]),t(f,{loading:i.loading,class:"mr-2","prepend-icon":"mdi-restore",variant:"text",onClick:o.resetToDefault},{default:n(()=>[...e[4]||(e[4]=[l(" 重置为默认 ",-1)])]),_:1},8,["loading","onClick"])]),o.hasChanges?(m(),w($,{key:0,color:"warning",variant:"elevated"},{default:n(()=>[...e[5]||(e[5]=[l(" 有未保存的更改 ",-1)])]),_:1})):S("",!0)]),t(B,{class:"mb-4",variant:"outlined"},{default:n(()=>[t(N,null,{default:n(()=>[t(ke,null,{default:n(()=>[t(ce,{cols:"12",sm:"6"},{default:n(()=>[t(K,{modelValue:i.newSubjectName,"onUpdate:modelValue":e[0]||(e[0]=h=>i.newSubjectName=h),rules:[h=>!!h||"科目名称不能为空"],"append-inner-icon":"mdi-plus",density:"comfortable",label:"科目名称",variant:"outlined",onKeyup:Se(o.addSubject,["enter"]),"onClick:appendInner":o.addSubject},null,8,["modelValue","rules","onKeyup","onClick:appendInner"])]),_:1})]),_:1})]),_:1})]),_:1}),t(B,{variant:"outlined"},{default:n(()=>[t(N,{class:"pa-0"},{default:n(()=>[t(Q,{lines:"one"},{default:n(()=>[(m(!0),A(te,null,me(i.subjects,(h,d)=>(m(),w(T,{key:h.order},{prepend:n(()=>[p("div",ls,[t(f,{disabled:d===0,icon:"mdi-chevron-up",size:"small",variant:"text",onClick:b=>o.moveSubject(d,-1)},null,8,["disabled","onClick"]),t(f,{disabled:d===i.subjects.length-1,icon:"mdi-chevron-down",size:"small",variant:"text",onClick:b=>o.moveSubject(d,1)},null,8,["disabled","onClick"])])]),append:n(()=>[t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:b=>o.deleteSubject(h)},null,8,["onClick"])]),default:n(()=>[t(R,null,{default:n(()=>[t(K,{modelValue:h.name,"onUpdate:modelValue":b=>h.name=b,density:"compact","hide-details":"",variant:"plain",onBlur:b=>o.updateSubject(h)},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),t(qe,{modelValue:i.showSnackbar,"onUpdate:modelValue":e[1]||(e[1]=h=>i.showSnackbar=h),color:i.snackbarColor,timeout:3e3},{default:n(()=>[l(v(i.snackbarText),1)]),_:1},8,["modelValue","color"])]),_:1},8,["loading"])}const jt=Z(is,[["render",as],["__scopeId","data-v-f87674cf"]]),rs={};function us(s,e,a,u,i,o){const r=Ce,h=q;return m(),w(h,{icon:"mdi-cog",title:"编辑设置"},{default:n(()=>[t(Q,null,{default:n(()=>[t(r,{"setting-key":"randomPicker.enabled"}),t(L,{class:"my-2"}),t(r,{"setting-key":"randomPicker.mode"}),t(L,{class:"my-2"}),t(r,{"setting-key":"randomPicker.minNumber"}),t(L,{class:"my-2"}),t(r,{"setting-key":"randomPicker.maxNumber"}),t(L,{class:"my-2"}),t(r,{"setting-key":"randomPicker.defaultCount"}),t(L,{class:"my-2"}),t(r,{"setting-key":"randomPicker.animation"})]),_:1})]),_:1})}const Nt=Z(rs,[["render",us]]),ds={name:"ThemeSettingsCard",components:{SettingsCard:q},data(){return{localTheme:V("theme.mode")}},watch:{localTheme(s){De("theme.mode",s),this.updateTheme(s)}},setup(){return{theme:rn()}},methods:{updateTheme(s){this.theme.global.name.value=s}}};function cs(s,e,a,u,i,o){const r=q;return m(),w(r,{icon:"mdi-palette",title:"主题设置"},{default:n(()=>[t(Q,null,{default:n(()=>[t(T,null,{prepend:n(()=>[t(y,{class:"mr-3",icon:"mdi-theme-light-dark"})]),append:n(()=>[t(un,{modelValue:i.localTheme,"onUpdate:modelValue":e[0]||(e[0]=h=>i.localTheme=h),color:"primary",density:"comfortable"},{default:n(()=>[t(f,{value:"light"},{default:n(()=>[t(y,{class:"mr-2",icon:"mdi-white-balance-sunny"}),e[3]||(e[3]=l(" 明亮 ",-1))]),_:1}),t(f,{value:"dark"},{default:n(()=>[t(y,{class:"mr-2",icon:"mdi-moon-waning-crescent"}),e[4]||(e[4]=l(" 暗黑 ",-1))]),_:1})]),_:1},8,["modelValue"])]),default:n(()=>[t(R,null,{default:n(()=>[...e[1]||(e[1]=[l("主题模式",-1)])]),_:1}),t(ie,null,{default:n(()=>[...e[2]||(e[2]=[l("选择明亮或暗黑主题",-1)])]),_:1})]),_:1})]),_:1})]),_:1})}const Mt=Z(ds,[["render",cs]]),ms={name:"DisplaySettingsCard",components:{SettingsCard:q,SettingItem:Ce},data(){return{}}};function ps(s,e,a,u,i,o){const r=Ce,h=q;return m(),w(h,{border:"",icon:"mdi-monitor",title:"显示设置"},{default:n(()=>[t(Q,null,{default:n(()=>[t(r,{"setting-key":"display.emptySubjectDisplay"}),t(L,{class:"my-2"}),t(r,{"setting-key":"display.dynamicSort"}),t(L,{class:"my-2"}),t(r,{"setting-key":"display.showRandomButton"}),t(L,{class:"my-2"}),t(r,{"setting-key":"display.showFullscreenButton"}),t(L,{class:"my-2"}),t(r,{"setting-key":"display.cardHoverEffect"}),t(L,{class:"my-2"}),t(r,{"setting-key":"display.enhancedTouchMode"}),t(L,{class:"my-2"}),t(r,{"setting-key":"display.showQuickTools"}),t(L,{class:"my-2"}),t(r,{"setting-key":"display.showAntiScreenBurnCard"}),t(L,{class:"my-2"}),t(r,{"setting-key":"display.showExamScheduleButton"})]),_:1})]),_:1})}const Pt=Z(ms,[["render",ps]]),fs={};function hs(s,e,a,u,i,o){const r=Ce,h=q;return m(),w(h,{icon:"mdi-cog",title:"编辑设置"},{default:n(()=>[t(Q,null,{default:n(()=>[t(r,{"setting-key":"edit.autoSave"}),t(L,{class:"my-2"}),t(r,{"setting-key":"edit.blockNonTodayAutoSave"}),t(L,{class:"my-2"}),t(r,{"setting-key":"edit.confirmNonTodaySave"}),t(L,{class:"my-2"}),t(r,{"setting-key":"edit.refreshBeforeEdit"}),t(L,{class:"my-2"}),t(r,{"setting-key":"edit.autoSavePromptText"}),t(L,{class:"my-2"}),t(r,{"setting-key":"edit.manualSavePromptText"})]),_:1})]),_:1})}const Bt=Z(fs,[["render",hs]]),ws={name:"RefreshSettingsCard",components:{SettingsCard:q},data(){return{}}};function gs(s,e,a,u,i,o){const r=Ce,h=q;return m(),w(h,{icon:"mdi-refresh-circle",title:"刷新设置"},{default:n(()=>[t(_t,null,{default:n(()=>[t(Q,null,{default:n(()=>[t(r,{"setting-key":"refresh.auto",title:"自动刷新"}),t(L,{class:"my-2"}),t(r,{"setting-key":"refresh.interval",title:"刷新间隔"})]),_:1})]),_:1})]),_:1})}const Lt=Z(ws,[["render",gs]]),vs={name:"SettingsLinkGenerator",data(){return{selectedItems:[],generatedLink:"",linkCopied:!1,search:"",preconfigForm:{namespace:"",authCode:"",autoExecute:!1},unifiedLink:"",headers:[{title:"",key:"data-table-select"},{title:"设置项",key:"description",sortable:!0},{title:"当前值",key:"value",sortable:!0},{title:"键名",key:"key",class:"d-none d-sm-table-cell",sortable:!0},{title:"状态",key:"isChanged",sortable:!0}]}},computed:{settingItems(){const s=je(),e=[];for(const[a,u]of Object.entries(He)){if(u.requireDeveloper&&!s["developer.enabled"])continue;const i=s[a]!==u.default;e.push({key:a,description:u.description||a,value:s[a],icon:u.icon||"mdi-cog",isChanged:i,defaultValue:u.default})}return e.sort((a,u)=>a.key.localeCompare(u.key))},filteredItems(){if(!this.search)return this.settingItems;const s=this.search.toLowerCase();return s==="已修改"?this.settingItems.filter(e=>e.isChanged):s==="是"||s==="否"?this.settingItems.filter(e=>typeof e.value=="boolean"&&(s==="是"?e.value:!e.value)):this.settingItems.filter(e=>{const a=e.description.toLowerCase(),u=e.key.toLowerCase(),i=String(e.value).toLowerCase(),o=e.isChanged?"已修改":"默认";return a.includes(s)||u.includes(s)||i.includes(s)||o.includes(s)})},hasDisplaySettings(){return this.selectedItems.some(s=>s.startsWith("display."))},hasEditSettings(){return this.selectedItems.some(s=>s.startsWith("edit."))},hasServerSettings(){return this.selectedItems.some(s=>s.startsWith("server."))},hasChangedSettings(){const s=je();return this.selectedItems.some(e=>{const a=He[e];return a&&s[e]!==a.default})}},methods:{handleSelectionChange(s){this.selectedItems=s.map(e=>e.key),this.generateLink()},generateLink(){const s=`${window.location.protocol}//${window.location.host}/`,e=je(),a={};for(const u of this.selectedItems)a[u]=e[u];if(Object.keys(a).length===0){this.generatedLink=s;return}try{const u=JSON.stringify(a),o=new TextEncoder().encode(u),h={config:btoa(Array.from(o).map(E=>String.fromCharCode(E)).join(""))},b=new URLSearchParams(window.location.search).get("date");b&&(h.date=b);const D=new URLSearchParams(h).toString();this.generatedLink=`${s}?${D}`}catch(u){console.error("生成链接失败:",u),this.generatedLink="链接生成失败,请重试"}this.linkCopied=!1},async copyLink(){this.generatedLink||this.generateLink();try{await navigator.clipboard.writeText(this.generatedLink),this.linkCopied=!0,setTimeout(()=>{this.linkCopied=!1},3e3)}catch(s){console.error("复制链接失败:",s)}},resetSelection(){this.selectedItems=[],this.generatedLink="",this.linkCopied=!1},selectAll(){this.selectedItems=this.settingItems.map(s=>s.key),this.generateLink()},selectDataSourceSettings(){const s=this.settingItems.filter(e=>e.key.startsWith("server.")&&e.key!=="server.kvToken").map(e=>e.key);this.selectedItems=s,this.generateLink()},selectChangedSettings(){const s=this.settingItems.filter(e=>e.isChanged&&e.key!=="server.kvToken").map(e=>e.key);this.selectedItems=s,this.generateLink()},selectByPrefix(s){const e=this.settingItems.filter(a=>a.key.startsWith(`${s}.`)).map(a=>a.key);this.selectedItems=e},autoGenerateLink(){this.selectedItems.length>0?this.generateLink():this.generatedLink=""},getSettingDescription(s){const e=this.settingItems.find(a=>a.key===s);return e?e.description:s},generateUnifiedLink(){if(this.preconfigForm.namespace.trim())try{const s=`${window.location.protocol}//${window.location.host}/`,e=new URLSearchParams;if(e.append("namespace",this.preconfigForm.namespace.trim()),this.preconfigForm.authCode.trim()&&e.append("authCode",this.preconfigForm.authCode.trim()),this.preconfigForm.autoExecute&&e.append("autoExecute","true"),this.selectedItems.length>0){const a=je(),u={};for(const d of this.selectedItems)u[d]=a[d];const i=JSON.stringify(u),r=new TextEncoder().encode(i),h=btoa(Array.from(r).map(d=>String.fromCharCode(d)).join(""));e.append("config",h)}this.unifiedLink=`${s}?${e.toString()}`,this.linkCopied=!1,console.log("生成统一链接:",this.unifiedLink),console.log("包含预配置:",!!this.preconfigForm.namespace),console.log("包含设置数量:",this.selectedItems.length)}catch(s){console.error("生成统一链接失败:",s),this.unifiedLink="链接生成失败,请重试"}},async copyUnifiedLink(){if(this.unifiedLink||this.generateUnifiedLink(),!(!this.unifiedLink||this.unifiedLink.includes("失败")))try{await navigator.clipboard.writeText(this.unifiedLink),this.linkCopied=!0,setTimeout(()=>{this.linkCopied=!1},3e3)}catch(s){console.error("复制统一链接失败:",s)}},openTestLink(){this.unifiedLink&&!this.unifiedLink.includes("失败")&&window.open(this.unifiedLink,"_blank")},clearAll(){this.preconfigForm={namespace:"",authCode:"",autoExecute:!1},this.selectedItems=[],this.unifiedLink="",this.generatedLink="",this.linkCopied=!1}},watch:{selectedItems:{handler(){this.preconfigForm.namespace.trim()&&this.generateUnifiedLink()},deep:!0},"preconfigForm.namespace":{handler(){this.preconfigForm.namespace.trim()?this.generateUnifiedLink():this.unifiedLink=""}},"preconfigForm.authCode":{handler(){this.preconfigForm.namespace.trim()&&this.generateUnifiedLink()}},"preconfigForm.autoExecute":{handler(){this.preconfigForm.namespace.trim()&&this.generateUnifiedLink()}}}},bs={class:"d-flex mb-3 gap-2 flex-wrap"},ys={class:"d-flex align-center mb-3 flex-wrap gap-2"},ks={class:"d-flex align-center"},xs={class:"d-flex align-center"},Ss={key:0},Cs={key:1},_s={key:2},Vs={class:"text-caption text-grey"},Ds={class:"d-flex mb-3 gap-2 flex-wrap"},As={class:"d-flex flex-wrap gap-1"};function Is(s,e,a,u,i,o){return m(),A("div",null,[t(B,{border:"",class:"unified-link-generator"},{default:n(()=>[t(F,{class:"text-h6"},{default:n(()=>[t(y,{class:"mr-2",icon:"mdi-link-variant",start:""}),e[6]||(e[6]=l(" 统一链接生成器 ",-1))]),_:1}),t(N,null,{default:n(()=>[e[35]||(e[35]=p("div",{class:"text-body-2 text-medium-emphasis mb-4"}," 生成包含预配置认证信息和设置的统一链接。可以同时预配置设备认证和应用设置。 ",-1)),t(B,{class:"mb-4",variant:"tonal"},{default:n(()=>[t(F,{class:"text-subtitle-1"},{default:n(()=>[t(y,{start:""},{default:n(()=>[...e[7]||(e[7]=[l("mdi-account-key",-1)])]),_:1}),e[8]||(e[8]=l(" 预配置认证信息 ",-1))]),_:1}),t(N,null,{default:n(()=>[t(ke,null,{default:n(()=>[t(ce,{cols:"12",md:"6"},{default:n(()=>[t(K,{modelValue:i.preconfigForm.namespace,"onUpdate:modelValue":e[0]||(e[0]=r=>i.preconfigForm.namespace=r),hint:"设备的命名空间标识符",label:"命名空间","persistent-hint":"",placeholder:"例如: classroom-001","prepend-inner-icon":"mdi-identifier",variant:"outlined"},null,8,["modelValue"])]),_:1}),t(ce,{cols:"12",md:"6"},{default:n(()=>[t(K,{modelValue:i.preconfigForm.authCode,"onUpdate:modelValue":e[1]||(e[1]=r=>i.preconfigForm.authCode=r),hint:"留空则需要用户手动输入",label:"认证码","persistent-hint":"",placeholder:"设备认证码(可选)","prepend-inner-icon":"mdi-lock-outline",variant:"outlined"},null,8,["modelValue"])]),_:1})]),_:1}),t(ke,{class:"mt-2"},{default:n(()=>[t(ce,{cols:"12"},{default:n(()=>[t(Ge,{modelValue:i.preconfigForm.autoExecute,"onUpdate:modelValue":e[2]||(e[2]=r=>i.preconfigForm.autoExecute=r),density:"compact",hint:"启用后会自动尝试认证,即使没有认证码也会尝试",label:"自动执行认证","persistent-hint":""},null,8,["modelValue"])]),_:1})]),_:1}),i.preconfigForm.namespace?(m(),w(ee,{key:0,class:"mt-3",type:"info",variant:"tonal"},{default:n(()=>[e[13]||(e[13]=p("div",{class:"text-subtitle-2 mb-2"},"预配置信息:",-1)),t($,{class:"mr-2 mb-1",size:"small"},{default:n(()=>[t(y,{size:"small",start:""},{default:n(()=>[...e[9]||(e[9]=[l("mdi-identifier",-1)])]),_:1}),l(" 命名空间: "+v(i.preconfigForm.namespace),1)]),_:1}),i.preconfigForm.authCode?(m(),w($,{key:0,class:"mr-2 mb-1",color:"warning",size:"small"},{default:n(()=>[t(y,{size:"small",start:""},{default:n(()=>[...e[10]||(e[10]=[l("mdi-lock",-1)])]),_:1}),l(" 认证码: "+v(i.preconfigForm.authCode.length>8?i.preconfigForm.authCode.substring(0,8)+"...":i.preconfigForm.authCode),1)]),_:1})):(m(),w($,{key:1,class:"mr-2 mb-1",color:"grey",size:"small"},{default:n(()=>[t(y,{size:"small",start:""},{default:n(()=>[...e[11]||(e[11]=[l("mdi-lock-open",-1)])]),_:1}),e[12]||(e[12]=l(" 无认证码 ",-1))]),_:1})),t($,{color:i.preconfigForm.autoExecute?"success":"orange",class:"mr-2 mb-1",size:"small"},{default:n(()=>[t(y,{size:"small",start:""},{default:n(()=>[l(v(i.preconfigForm.autoExecute?"mdi-play-circle":"mdi-hand-back-left"),1)]),_:1}),l(" "+v(i.preconfigForm.autoExecute?"自动认证":"手动认证"),1)]),_:1},8,["color"])]),_:1})):S("",!0)]),_:1})]),_:1}),t(B,{class:"mb-4",variant:"tonal"},{default:n(()=>[t(F,{class:"text-subtitle-1"},{default:n(()=>[t(y,{start:""},{default:n(()=>[...e[14]||(e[14]=[l("mdi-cog-transfer",-1)])]),_:1}),e[15]||(e[15]=l(" 设置分享(可选) ",-1))]),_:1}),t(N,null,{default:n(()=>[e[22]||(e[22]=p("div",{class:"text-body-2 text-medium-emphasis mb-3"}," 选择需要包含在链接中的设置项。如果不选择任何设置,将只生成预配置认证链接。 ",-1)),p("div",bs,[t(f,{color:"primary","prepend-icon":"mdi-server-network",size:"small",variant:"tonal",onClick:o.selectDataSourceSettings},{default:n(()=>[...e[16]||(e[16]=[l(" 数据源设置 ",-1)])]),_:1},8,["onClick"]),t(f,{color:"primary","prepend-icon":"mdi-compare",size:"small",variant:"tonal",onClick:o.selectChangedSettings},{default:n(()=>[...e[17]||(e[17]=[l(" 已变更设置 ",-1)])]),_:1},8,["onClick"]),t(f,{color:"success","prepend-icon":"mdi-select-all",size:"small",variant:"tonal",onClick:o.selectAll},{default:n(()=>[...e[18]||(e[18]=[l(" 全选 ",-1)])]),_:1},8,["onClick"]),t(f,{color:"error","prepend-icon":"mdi-select-remove",size:"small",variant:"tonal",onClick:o.resetSelection},{default:n(()=>[...e[19]||(e[19]=[l(" 清除选择 ",-1)])]),_:1},8,["onClick"])]),p("div",ys,[t($,{class:"mr-2",color:"primary"},{default:n(()=>[l(" 已选 "+v(i.selectedItems.length)+" 项设置 ",1)]),_:1}),i.selectedItems.length>0?(m(),A(te,{key:0},[(m(!0),A(te,null,me(i.selectedItems.slice(0,3),r=>(m(),w($,{key:r,class:"mr-1",size:"small",variant:"text"},{default:n(()=>[l(v(o.getSettingDescription(r)),1)]),_:2},1024))),128)),i.selectedItems.length>3?(m(),w($,{key:0,color:"grey",size:"small",variant:"text"},{default:n(()=>[l(" +"+v(i.selectedItems.length-3)+" 更多 ",1)]),_:1})):S("",!0)],64)):S("",!0)]),t(Ze,{variant:"accordion"},{default:n(()=>[t(Xe,null,{default:n(()=>[t(Vt,null,{default:n(({expanded:r})=>[p("div",ks,[t(y,{class:"mr-2"},{default:n(()=>[l(v(r?"mdi-chevron-up":"mdi-chevron-down"),1)]),_:2},1024),e[20]||(e[20]=l(" 显示设置列表详情 ",-1))])]),_:1}),t($e,null,{default:n(()=>[t(K,{modelValue:i.search,"onUpdate:modelValue":e[3]||(e[3]=r=>i.search=r),class:"mb-4",clearable:"","hide-details":"",label:"搜索设置","prepend-inner-icon":"mdi-magnify","single-line":""},null,8,["modelValue"]),t(Dt,{modelValue:i.selectedItems,"onUpdate:modelValue":e[4]||(e[4]=r=>i.selectedItems=r),headers:i.headers,items:o.filteredItems,"items-per-page":o.settingItems.length,"sort-by":[{key:"isChanged",order:"desc"}],class:"rounded setting-table",density:"compact","item-value":"key","show-select":"","onUpdate:selected":o.handleSelectionChange},{"item.description":n(({item:r})=>[p("div",xs,[t(y,{icon:r.icon,class:"mr-2",size:"small"},null,8,["icon"]),l(" "+v(r.description)+" ",1),r.key==="server.kvToken"?(m(),w($,{key:0,class:"ml-2",color:"error",size:"x-small"},{default:n(()=>[...e[21]||(e[21]=[l(" 敏感 ",-1)])]),_:1})):S("",!0)])]),"item.value":n(({item:r})=>[typeof r.value=="boolean"?(m(),A("span",Ss,v(r.value?"是":"否"),1)):r.key==="server.kvToken"&&r.value?(m(),A("span",Cs,v(r.value.substring(0,8))+"... ",1)):(m(),A("span",_s,v(r.value),1))]),"item.key":n(({item:r})=>[p("span",Vs,v(r.key),1)]),"item.isChanged":n(({item:r})=>[t($,{color:r.isChanged?"warning":"success",text:r.isChanged?"已修改":"默认",density:"compact",size:"x-small"},null,8,["color","text"])]),_:2},1032,["modelValue","headers","items","items-per-page","onUpdate:selected"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(B,{class:"mb-4",variant:"outlined"},{default:n(()=>[t(F,{class:"text-subtitle-1"},{default:n(()=>[t(y,{start:""},{default:n(()=>[...e[23]||(e[23]=[l("mdi-link",-1)])]),_:1}),e[24]||(e[24]=l(" 生成的统一链接 ",-1))]),_:1}),t(N,null,{default:n(()=>[p("div",Ds,[t(f,{disabled:!i.preconfigForm.namespace.trim(),color:"primary","prepend-icon":"mdi-auto-fix",variant:"flat",onClick:o.generateUnifiedLink},{default:n(()=>[...e[25]||(e[25]=[l(" 生成统一链接 ",-1)])]),_:1},8,["disabled","onClick"]),t(f,{disabled:!i.unifiedLink,color:"success","prepend-icon":"mdi-test-tube",variant:"tonal",onClick:o.openTestLink},{default:n(()=>[...e[26]||(e[26]=[l(" 测试链接 ",-1)])]),_:1},8,["disabled","onClick"]),t(f,{color:"error","prepend-icon":"mdi-delete",variant:"tonal",onClick:o.clearAll},{default:n(()=>[...e[27]||(e[27]=[l(" 清空所有 ",-1)])]),_:1},8,["onClick"])]),t(K,{modelValue:i.unifiedLink,"onUpdate:modelValue":e[5]||(e[5]=r=>i.unifiedLink=r),"append-inner-icon":i.linkCopied?"mdi-check":"mdi-content-copy",placeholder:i.preconfigForm.namespace?"点击「生成统一链接」按钮":"请先输入命名空间",class:"mb-3",label:"统一链接",readonly:"",variant:"outlined","onClick:appendInner":o.copyUnifiedLink},null,8,["modelValue","append-inner-icon","placeholder","onClick:appendInner"]),i.unifiedLink?(m(),w(ee,{key:0,class:"mb-3",type:"success",variant:"tonal"},{default:n(()=>[e[33]||(e[33]=p("div",{class:"text-subtitle-2 mb-2"},"链接包含内容:",-1)),p("div",As,[t($,{color:"primary",size:"small"},{default:n(()=>[t(y,{size:"small",start:""},{default:n(()=>[...e[28]||(e[28]=[l("mdi-account-key",-1)])]),_:1}),e[29]||(e[29]=l(" 预配置认证 ",-1))]),_:1}),i.selectedItems.length>0?(m(),w($,{key:0,color:"secondary",size:"small"},{default:n(()=>[t(y,{size:"small",start:""},{default:n(()=>[...e[30]||(e[30]=[l("mdi-cog",-1)])]),_:1}),l(" "+v(i.selectedItems.length)+" 项设置 ",1)]),_:1})):(m(),w($,{key:1,color:"grey",size:"small"},{default:n(()=>[t(y,{size:"small",start:""},{default:n(()=>[...e[31]||(e[31]=[l("mdi-cog-off",-1)])]),_:1}),e[32]||(e[32]=l(" 无额外设置 ",-1))]),_:1}))])]),_:1})):S("",!0)]),_:1})]),_:1}),t(ee,{type:"warning",variant:"tonal"},{default:n(()=>[...e[34]||(e[34]=[p("div",{class:"text-subtitle-2 mb-2"},"⚠️ 安全提醒",-1),p("ul",{class:"text-body-2 pl-4"},[p("li",null,"认证码和设置信息会在URL中传输,请谨慎分发"),p("li",null,"建议仅在受信任的网络环境中使用"),p("li",null,"生产环境建议使用HTTPS协议"),p("li",null,"数据源设置和已变更设置默认不包含敏感Token信息")],-1)])]),_:1})]),_:1})]),_:1})])}const Ot=Z(vs,[["render",Is]]),Ts={name:"UnsavedWarning",props:{show:Boolean,message:{type:String,default:"未保存"}}},Es={class:"warning-container"};function Us(s,e,a,u,i,o){return m(),A("div",Es,[a.show?(m(),w($,{key:0,class:"warning-chip",color:"warning",size:"small"},{default:n(()=>[l(v(a.message),1)]),_:1})):S("",!0)])}const zt=Z(Ts,[["render",Us],["__scopeId","data-v-0f36b655"]]),js=cn({disabled:Boolean,modelValue:{type:Boolean,default:null},...fn()},"VHover"),Ns=dn()({name:"VHover",props:js(),emits:{"update:modelValue":s=>!0},setup(s,e){let{slots:a}=e;const u=mn(s,"modelValue"),{runOpenDelay:i,runCloseDelay:o}=pn(s,r=>!s.disabled&&(u.value=r));return()=>{var r;return(r=a.default)==null?void 0:r.call(a,{isHovering:u.value,props:{onMouseenter:i,onMouseleave:o}})}}}),Ms={name:"StudentListCard",components:{UnsavedWarning:zt},props:{isMobile:Boolean},data(){return{newStudentName:"",editState:{index:-1,name:""},modelValue:{list:[],text:"",advanced:!1},loading:!1,error:null,lastSavedData:null,unsavedChanges:!1}},watch:{modelValue:{handler(s){this.lastSavedData&&(this.unsavedChanges=JSON.stringify(s.list)!==JSON.stringify(this.lastSavedData)),this.modelValue.advanced||(this.modelValue.text=s.list.slice().sort((e,a)=>e.id-a.id).map(e=>e.name).join(` +`))},deep:!0}},mounted(){this.loadStudents()},methods:{async loadStudents(){var s;this.error=null;try{if(this.loading=!0,!V("server.classNumber"))throw new Error("请先设置班号");try{const a=await he.loadData("classworks-list-main");a.success!=!1&&Array.isArray(a)&&(this.modelValue.list=a.map((u,i)=>typeof u=="string"?{id:i+1,name:u}:{id:u.id||i+1,name:u.name||u.toString()}),this.modelValue.list.sort((u,i)=>u.id-i.id),this.modelValue.text=this.modelValue.list.map(u=>u.name).join(` +`),this.lastSavedData=JSON.parse(JSON.stringify(this.modelValue.list)),this.unsavedChanges=!1)}catch(a){console.warn("Failed to load student list from dedicated key, falling back to config",a)}}catch(e){console.error("加载学生列表失败:",e),this.error=e.message||"加载失败,请检查设置",(s=this.$message)==null||s.error("加载失败",this.error)}finally{this.loading=!1}},async saveStudents(){var s,e,a;try{if(!V("server.classNumber"))throw new Error("请先设置班号");const i=this.modelValue.list.slice().sort((r,h)=>r.id-h.id).map((r,h)=>({id:h+1,name:r.name})),o=await he.saveData("classworks-list-main",i);if(o.success===!1)throw new Error(((s=o.error)==null?void 0:s.message)||"保存失败");this.modelValue.list=i,this.lastSavedData=JSON.parse(JSON.stringify(i)),this.unsavedChanges=!1,(e=this.$message)==null||e.success("保存成功","学生列表已更新")}catch(u){console.error("保存学生列表失败:",u),(a=this.$message)==null||a.error("保存失败",u.message||"请重试")}},toggleAdvanced(){this.modelValue.advanced=!this.modelValue.advanced},handleTextInput(s){if(!this.modelValue.advanced)return;const e=s.split(` +`).filter(o=>o.trim()),a=new Map(this.modelValue.list.map(o=>[o.name,o.id]));let u=Math.max(0,...this.modelValue.list.map(o=>o.id));const i=e.map(o=>(o=o.trim(),a.has(o)?{id:a.get(o),name:o}:{id:++u,name:o}));this.modelValue.list=i},addStudent(){const s=this.newStudentName.trim();if(s&&!this.modelValue.list.some(e=>e.name===s)){const e=Math.max(0,...this.modelValue.list.map(a=>a.id));this.modelValue.list.push({id:e+1,name:s}),this.newStudentName=""}},startEdit(s,e){this.editState.index=s,this.editState.name=e.name},saveEdit(){if(this.editState.index!==-1){const s=this.editState.name.trim();s&&s!==this.modelValue.list[this.editState.index].name&&(this.modelValue.list[this.editState.index].name=s),this.editState.index=-1,this.editState.name=""}},removeStudent(s){s!==void 0&&this.modelValue.list.splice(s,1)},moveStudent(s,e){if(e==="top"){if(s>0){const a=this.modelValue.list[s];this.modelValue.list.splice(s,1),this.modelValue.list.unshift(a),this.modelValue.list.forEach((u,i)=>u.id=i+1)}}else{const a=e==="up"?s-1:s+1;a>=0&&a{const u=ot(e.name,{toneType:"none"}),i=ot(a.name,{toneType:"none"});return u.localeCompare(i)});s.forEach((e,a)=>e.id=a+1),this.modelValue.list=s}}},Ps={key:0},Bs=["onClick"],Ls={key:1,class:"pt-2"};function Os(s,e,a,u,i,o){const r=zt;return m(),w(B,{class:lt({"unsaved-changes":i.unsavedChanges}),color:i.unsavedChanges?"warning-subtle":void 0,border:""},{default:n(()=>[t(ze,null,{prepend:n(()=>[t(y,{class:"mr-2",icon:"mdi-account-group",size:"large"})]),append:n(()=>[t(r,{show:i.unsavedChanges,message:"有未保存的更改"},null,8,["show"]),t(f,{disabled:i.modelValue.list.length===0,class:"mr-2","prepend-icon":"mdi-sort-alphabetical-variant",variant:"text",onClick:o.sortStudentsByPinyin},{default:n(()=>[...e[4]||(e[4]=[l(" 按姓名首字母排序 ",-1)])]),_:1},8,["disabled","onClick"]),t(f,{color:i.modelValue.advanced?"primary":void 0,"prepend-icon":"mdi-code-braces",variant:"text",onClick:o.toggleAdvanced},{default:n(()=>[l(v(i.modelValue.advanced?"返回基础编辑":"高级编辑"),1)]),_:1},8,["color","onClick"])]),default:n(()=>[t(F,{class:"text-h6"},{default:n(()=>[...e[3]||(e[3]=[l("学生列表",-1)])]),_:1})]),_:1}),t(N,null,{default:n(()=>[i.loading?(m(),w(Ye,{key:0,class:"mb-4",color:"primary",indeterminate:""})):S("",!0),i.error?(m(),w(ee,{key:1,class:"mb-4",closable:"",type:"error",variant:"tonal"},{default:n(()=>[l(v(i.error),1)]),_:1})):S("",!0),t(hn,null,{default:n(()=>[i.modelValue.advanced?(m(),A("div",Ls,[t(Le,{modelValue:i.modelValue.text,"onUpdate:modelValue":[e[2]||(e[2]=h=>i.modelValue.text=h),o.handleTextInput],hint:"使用文本编辑模式批量编辑学生名单,保存时会自动去除空行",label:"批量编辑学生列表","persistent-hint":"",placeholder:"每行输入一个学生姓名",rows:"10",variant:"outlined"},null,8,["modelValue","onUpdate:modelValue"])])):(m(),A("div",Ps,[t(ke,{class:"mb-6"},{default:n(()=>[t(ce,{cols:"12",md:"4",sm:"6"},{default:n(()=>[t(K,{modelValue:i.newStudentName,"onUpdate:modelValue":e[0]||(e[0]=h=>i.newStudentName=h),class:"mb-4","hide-details":"",label:"添加学生",placeholder:"输入学生姓名后回车添加","prepend-inner-icon":"mdi-account-plus",variant:"outlined",onKeyup:Se(o.addStudent,["enter"])},{append:n(()=>[t(f,{disabled:!i.newStudentName.trim(),color:"primary",icon:"mdi-plus",variant:"text",onClick:o.addStudent},null,8,["disabled","onClick"])]),_:1},8,["modelValue","onKeyup"])]),_:1})]),_:1}),t(ke,null,{default:n(()=>[(m(!0),A(te,null,me(i.modelValue.list,(h,d)=>(m(),w(ce,{key:d,cols:"12",lg:"3",md:"4",sm:"6"},{default:n(()=>[t(Ns,null,{default:n(({isHovering:b,props:D})=>[t(B,Je({elevation:a.isMobile?1:b?4:1,border:"",class:"student-card"},{ref_for:!0},D),{default:n(()=>[t(N,{class:"d-flex align-center pa-3"},{default:n(()=>[t(St,{"open-on-hover":!a.isMobile,location:"bottom"},{activator:n(({props:E})=>[t(f,Je({class:"mr-3 font-weight-medium",size:"small"},{ref_for:!0},E,{variant:"tonal"}),{default:n(()=>[l(v(d+1),1)]),_:2},1040)]),default:n(()=>[t(Q,{density:"compact",nav:""},{default:n(()=>[t(T,{disabled:d===0,"prepend-icon":"mdi-arrow-up-bold",onClick:E=>o.moveStudent(d,"top")},{default:n(()=>[...e[5]||(e[5]=[l(" 置顶 ",-1)])]),_:1},8,["disabled","onClick"]),t(L),t(T,{disabled:d===0,"prepend-icon":"mdi-arrow-up",onClick:E=>o.moveStudent(d,"up")},{default:n(()=>[...e[6]||(e[6]=[l(" 上移 ",-1)])]),_:1},8,["disabled","onClick"]),t(T,{disabled:d===i.modelValue.list.length-1,"prepend-icon":"mdi-arrow-down",onClick:E=>o.moveStudent(d,"down")},{default:n(()=>[...e[7]||(e[7]=[l(" 下移 ",-1)])]),_:1},8,["disabled","onClick"])]),_:2},1024)]),_:2},1032,["open-on-hover"]),i.editState.index===d?(m(),w(K,{key:0,modelValue:i.editState.name,"onUpdate:modelValue":e[1]||(e[1]=E=>i.editState.name=E),autofocus:"",class:"flex-grow-1",density:"compact","hide-details":"",variant:"underlined",onBlur:o.saveEdit,onKeyup:Se(o.saveEdit,["enter"])},null,8,["modelValue","onBlur","onKeyup"])):(m(),A("span",{key:1,class:"text-body-1 flex-grow-1",onClick:E=>o.handleClick(d,h)},v(h.name),9,Bs)),p("div",{class:lt([{"opacity-100":b||a.isMobile},"d-flex gap-1 action-buttons"])},[t(f,{color:"primary",icon:"mdi-pencil",size:"small",variant:"text",onClick:E=>o.startEdit(d,h)},null,8,["onClick"]),t(f,{color:"error",icon:"mdi-delete",size:"small",variant:"text",onClick:E=>o.removeStudent(d)},null,8,["onClick"])],2)]),_:2},1024)]),_:2},1040,["elevation"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]))]),_:1}),t(ke,{class:"mt-6"},{default:n(()=>[t(ce,{class:"d-flex gap-2",cols:"12"},{default:n(()=>[t(f,{disabled:i.loading,loading:i.loading,color:"primary","prepend-icon":"mdi-content-save",size:"large",onClick:o.saveStudents},{default:n(()=>[...e[8]||(e[8]=[l(" 保存名单 ",-1)])]),_:1},8,["disabled","loading","onClick"]),t(f,{disabled:i.loading,loading:i.loading,color:"error","prepend-icon":"mdi-refresh",size:"large",variant:"outlined",onClick:o.loadStudents},{default:n(()=>[...e[9]||(e[9]=[l(" 重载名单 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["class","color"])}const Kt=Z(Ms,[["render",Os],["__scopeId","data-v-7e220985"]]),zs={key:0,class:"d-flex justify-center align-center fill-height"},Ks={key:1,class:"d-flex justify-center align-center fill-height"},Rs={key:2},Fs={class:"text-caption ml-4 text-medium-emphasis"},Qs={key:0},Js={key:1},Hs={class:"text-error"},Rt={__name:"CloudMigrationDialog",props:{modelValue:Boolean},emits:["update:modelValue"],setup(s,{emit:e}){const a=s,u=e,i=de(!1),o=de(!1),r=de(!1),h=de([]),d=de([]),b=de(!1),D=de(null),E=de(null),G=[{id:"student-list",label:"学生列表",description:"classworks-list-main",matcher:C=>C==="classworks-list-main"||C.startsWith("classworks-list-main")},{id:"homework-data",label:"作业数据",description:"classworks-data-*",matcher:C=>C.startsWith("classworks-data-")},{id:"lists",label:"列表",description:"classworks-list-*",matcher:C=>C.startsWith("classworks-list-")},{id:"other",label:"其他",description:"所有其他键",matcher:C=>!C.startsWith("classworks-data-")&&!C.startsWith("classworks-list-")}];at(()=>a.modelValue,C=>{i.value=C,C&&J()}),at(i,C=>{u("update:modelValue",C)});const J=async()=>{o.value=!0;try{const C=await ut.loadKeys({limit:1e3});h.value=C.keys||[],d.value=[]}catch(C){console.error(C)}finally{o.value=!1}},Y=C=>h.value.filter(C.matcher),ae=C=>Y(C).length,re=C=>{const g=Y(C);return g.length===0?!1:g.filter(M=>d.value.includes(M)).length===g.length},le=C=>{const g=Y(C);if(g.length===0)return!1;const _=g.filter(M=>d.value.includes(M)).length;return _>0&&_{const g=Y(C);if(g.length===0)return;const _=re(C),M=new Set(d.value);_?g.forEach(j=>M.delete(j)):g.forEach(j=>M.add(j)),d.value=Array.from(M)},ge=async()=>{var C,g,_;r.value=!0,E.value=null,D.value=null;try{const M={};for(const O of d.value){const ye=await ut.loadData(O);if(ye){if(ye&&ye.success===!1&&ye.error){console.warn(`Skipping key ${O} due to load error`,ye.error);continue}M[O]=ye}}const j=V("server.domain"),ue=V("server.kvToken");if(!j||!ue)throw new Error("请先配置服务器地址和 Token");const xe=j.replace(/\/$/,""),be=await Sn.post(`${xe}/kv/_batchimport`,M,{headers:{Authorization:`Bearer ${ue}`,"Content-Type":"application/json"}});if(be.data&&be.data.code===200)D.value=be.data.data,b.value=!0,i.value=!1;else throw new Error(((C=be.data)==null?void 0:C.message)||"迁移失败")}catch(M){console.error(M),E.value=((_=(g=M.response)==null?void 0:g.data)==null?void 0:_.message)||M.message||"发生未知错误",b.value=!0}finally{r.value=!1}};return(C,g)=>(m(),A(te,null,[t(we,{modelValue:i.value,"onUpdate:modelValue":g[2]||(g[2]=_=>i.value=_),"max-width":"600",scrollable:""},{default:n(()=>[t(B,null,{default:n(()=>[t(F,null,{default:n(()=>[...g[5]||(g[5]=[l("迁移到云端",-1)])]),_:1}),t(N,{style:{height:"400px"}},{default:n(()=>[o.value?(m(),A("div",zs,[t(wn,{indeterminate:"",color:"primary"})])):h.value.length===0?(m(),A("div",Ks," 没有找到本地数据 ")):(m(),A("div",Rs,[t(Q,{"select-strategy":"classic",class:"mb-4"},{default:n(()=>[t(gn,null,{default:n(()=>[...g[6]||(g[6]=[l("选择数据类型",-1)])]),_:1}),(m(),A(te,null,me(G,_=>t(T,{key:_.id,onClick:M=>X(_)},{prepend:n(()=>[t(dt,{"model-value":re(_),indeterminate:le(_),onClick:Be(M=>X(_),["stop"])},null,8,["model-value","indeterminate","onClick"])]),default:n(()=>[t(R,null,{default:n(()=>[l(v(_.label),1)]),_:2},1024),t(ie,null,{default:n(()=>[l(v(_.description)+" ("+v(ae(_))+" 项)",1)]),_:2},1024)]),_:2},1032,["onClick"])),64))]),_:1}),t(L,{class:"mb-4"}),t(Ze,null,{default:n(()=>[t(Xe,{title:"详细数据列表"},{default:n(()=>[t($e,null,{default:n(()=>[t(Q,{"select-strategy":"classic",density:"compact"},{default:n(()=>[(m(!0),A(te,null,me(h.value,_=>(m(),w(T,{key:_,value:_},{prepend:n(()=>[t(dt,{modelValue:d.value,"onUpdate:modelValue":g[0]||(g[0]=M=>d.value=M),value:_},null,8,["modelValue","value"])]),default:n(()=>[t(R,null,{default:n(()=>[l(v(_),1)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1})]),_:1})]))]),_:1}),t(L),t(oe,null,{default:n(()=>[p("div",Fs," 已选择 "+v(d.value.length)+" 项 ",1),t(W),t(f,{variant:"text",onClick:g[1]||(g[1]=_=>i.value=!1)},{default:n(()=>[...g[7]||(g[7]=[l("取消",-1)])]),_:1}),t(f,{color:"primary",onClick:ge,loading:r.value,disabled:d.value.length===0},{default:n(()=>[...g[8]||(g[8]=[l(" 开始迁移 ",-1)])]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(we,{modelValue:b.value,"onUpdate:modelValue":g[4]||(g[4]=_=>b.value=_),"max-width":"500"},{default:n(()=>[t(B,null,{default:n(()=>[t(F,null,{default:n(()=>[...g[9]||(g[9]=[l("迁移结果",-1)])]),_:1}),t(N,null,{default:n(()=>[D.value?(m(),A("div",Qs,[p("p",null,"总计: "+v(D.value.summary.total),1),p("p",null,"成功: "+v(D.value.summary.successful),1),p("p",null,"失败: "+v(D.value.summary.failed),1)])):E.value?(m(),A("div",Js,[p("p",Hs,v(E.value),1)])):S("",!0)]),_:1}),t(oe,null,{default:n(()=>[t(W),t(f,{color:"primary",onClick:g[3]||(g[3]=_=>b.value=!1)},{default:n(()=>[...g[10]||(g[10]=[l("关闭",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}},Gs={name:"KvDatabaseCard",components:{SettingsCard:q,CloudMigrationDialog:Rt},data(){return{loading:!1,loadingData:!1,savingData:!1,deletingData:!1,kvData:[],searchQuery:"",viewDialog:!1,editDialog:!1,deleteDialog:!1,createDialog:!1,cloudUrlDialog:!1,showMigrationDialog:!1,selectedItem:null,editingItem:null,itemToDelete:null,selectedCloudItem:null,gettingCloudUrl:!1,cloudUrlResult:null,cloudUrlError:null,cloudUrlOptions:{migrateFromLocal:!0,autoConfigureCloud:!0},editingData:"",newKey:"",newData:"",tableHeaders:[{title:"键名",key:"key",sortable:!0},{title:"操作",key:"actions",sortable:!1,width:"120px"}]}},computed:{currentProvider(){return V("server.provider")},isKvProvider(){return this.currentProvider==="kv-local"||this.currentProvider==="kv-server"||this.currentProvider==="classworkscloud"},connectionStatus(){return this.isKvProvider?this.currentProvider==="kv-local"?"本地数据库":"服务器数据库":"当前数据提供者不支持KV数据库管理"},connectionIcon(){return this.isKvProvider?this.currentProvider==="kv-local"?"mdi-database":"mdi-database-sync":"mdi-database-off"},connectionColor(){return this.isKvProvider?"success":"error"},filteredKvData(){return this.searchQuery?this.kvData.filter(s=>s.key.toLowerCase().includes(this.searchQuery.toLowerCase())):this.kvData},isValidJson(){if(!this.editingData)return!0;try{return JSON.parse(this.editingData),!0}catch{return!1}},isValidNewJson(){if(!this.newData)return!0;try{return JSON.parse(this.newData),!0}catch{return!1}},isValidKey(){return!this.newKey||this.newKey.trim()===""?!1:!this.kvData.some(s=>s.key===this.newKey.trim())}},async mounted(){this.isKvProvider&&await this.loadKvData()},methods:{async refreshConnection(){this.loading=!0;try{await new Promise(s=>setTimeout(s,500)),this.$message.success("连接状态已刷新")}catch(s){this.$message.error("刷新失败",s.message)}finally{this.loading=!1}},async loadKvData(){var s;if(!this.isKvProvider){this.$message.warning("当前数据提供者不支持KV数据库管理");return}this.loadingData=!0;try{this.kvData=[];const e=await he.loadKeys({sortBy:"key",sortDir:"asc",limit:1e3});if(e.success===!1)throw new Error(((s=e.error)==null?void 0:s.message)||"获取键名列表失败");this.kvData=e.keys.map(a=>({key:a,value:null,loaded:!1})),this.$message.success("键名加载完成",`共找到 ${this.kvData.length} 个键,总计 ${e.total_rows} 个键`)}catch(e){this.$message.error("加载数据失败",e.message)}finally{this.loadingData=!1}},async viewItem(s){this.selectedItem=s,this.viewDialog=!0,(!s.loaded||s.value===null)&&await this.loadItemData(s)},async editItem(s){this.editingItem=s,(!s.loaded||s.value===null)&&await this.loadItemData(s),this.editingData=this.formatJsonData(s.value),this.editDialog=!0},async loadItemData(s){try{const e=await he.loadData(s.key);if(e&&e.success!==!1)s.value=e,s.loaded=!0;else throw new Error("数据加载失败")}catch(e){this.$message.error("加载数据失败",e.message),s.value=null,s.loaded=!1}},closeEditDialog(){this.editDialog=!1,this.editingItem=null,this.editingData=""},createNewItem(){this.newKey="",this.newData=`{ + "example": "value" +}`,this.createDialog=!0},closeCreateDialog(){this.createDialog=!1,this.newKey="",this.newData=""},async saveNewData(){var s;if(!(!this.isValidKey||!this.isValidNewJson)){this.savingData=!0;try{const e=JSON.parse(this.newData),a=this.newKey.trim(),u=await he.saveData(a,e);if(u&&!u.error)this.kvData.push({key:a,value:e,loaded:!0}),this.$message.success("数据创建成功"),this.closeCreateDialog();else throw new Error(((s=u.error)==null?void 0:s.message)||"创建失败")}catch(e){this.$message.error("创建失败",e.message)}finally{this.savingData=!1}}},async saveEditedData(){var s;if(!(!this.isValidJson||!this.editingItem)){this.savingData=!0;try{const e=JSON.parse(this.editingData),a=await he.saveData(this.editingItem.key,e);if(a&&!a.error){const u=this.kvData.findIndex(i=>i.key===this.editingItem.key);u!==-1&&(this.kvData[u].value=e,this.kvData[u].loaded=!0),this.$message.success("数据保存成功"),this.closeEditDialog()}else throw new Error(((s=a.error)==null?void 0:s.message)||"保存失败")}catch(e){this.$message.error("保存失败",e.message)}finally{this.savingData=!1}}},confirmDelete(s){this.itemToDelete=s,this.deleteDialog=!0},async deleteItem(){if(this.itemToDelete){this.deletingData=!0;try{this.currentProvider==="kv-local"?await(await Cn("ClassworksDB",2)).transaction("kv","readwrite").objectStore("kv").delete(this.itemToDelete.key):await he.saveData(this.itemToDelete.key,null);const s=this.kvData.findIndex(e=>e.key===this.itemToDelete.key);s!==-1&&this.kvData.splice(s,1),this.$message.success("数据删除成功"),this.deleteDialog=!1,this.itemToDelete=null}catch(s){this.$message.error("删除失败",s.message)}finally{this.deletingData=!1}}},formatJsonData(s){try{return JSON.stringify(s,null,2)}catch{return String(s)}},async copyToClipboard(s){try{const e=this.formatJsonData(s);await navigator.clipboard.writeText(e),this.$message.success("数据已复制到剪贴板")}catch(e){this.$message.error("复制失败",e.message)}},async getCloudUrl(s){this.selectedCloudItem=s,this.cloudUrlResult=null,this.cloudUrlError=null,this.cloudUrlDialog=!0,await this.fetchCloudUrl()},async fetchCloudUrl(){var s;if(this.selectedCloudItem){this.gettingCloudUrl=!0,this.cloudUrlError=null;try{const e=await he.getKeyCloudUrl(this.selectedCloudItem.key,this.cloudUrlOptions);e.success?(this.cloudUrlResult=e,this.$message.success("云端地址获取成功")):(this.cloudUrlError=((s=e.error)==null?void 0:s.message)||"获取云端地址失败",this.$message.error("获取失败",this.cloudUrlError))}catch(e){this.cloudUrlError=e.message||"获取云端地址时发生错误",this.$message.error("获取失败",this.cloudUrlError)}finally{this.gettingCloudUrl=!1}}},async refreshCloudUrl(){await this.fetchCloudUrl()},async copyCloudUrl(){var s;if((s=this.cloudUrlResult)!=null&&s.url)try{await navigator.clipboard.writeText(this.cloudUrlResult.url),this.$message.success("云端地址已复制到剪贴板")}catch(e){this.$message.error("复制失败",e.message)}},openCloudUrl(){var s;if((s=this.cloudUrlResult)!=null&&s.url)try{window.open(this.cloudUrlResult.url,"_blank")}catch(e){this.$message.error("打开链接失败",e.message)}}}},Ys={class:"text-primary"},qs={class:"mt-2"},Ws={key:0,class:"mb-2"},Zs={key:1,class:"mb-2"};function Xs(s,e,a,u,i,o){const r=Rt,h=q;return m(),w(h,{loading:i.loading,icon:"mdi-database-edit",title:"KV数据库管理"},{default:n(()=>[t(Q,null,{default:n(()=>[t(T,null,{prepend:n(()=>[t(y,{color:o.connectionColor,icon:o.connectionIcon,class:"mr-3"},null,8,["color","icon"])]),append:n(()=>[t(f,{loading:i.loading,variant:"tonal",onClick:o.refreshConnection},{default:n(()=>[...e[20]||(e[20]=[l(" 刷新 ",-1)])]),_:1},8,["loading","onClick"])]),default:n(()=>[t(R,null,{default:n(()=>[...e[19]||(e[19]=[l("数据库状态",-1)])]),_:1}),t(ie,null,{default:n(()=>[l(v(o.connectionStatus),1)]),_:1})]),_:1}),t(L,{class:"my-2"}),t(T,null,{prepend:n(()=>[t(y,{class:"mr-3",icon:"mdi-format-list-bulleted"})]),append:n(()=>[t(rt,{variant:"tonal"},{default:n(()=>[t(f,{loading:i.loadingData,onClick:o.loadKvData},{default:n(()=>[...e[22]||(e[22]=[l(" 加载数据 ",-1)])]),_:1},8,["loading","onClick"]),t(f,{disabled:!o.isKvProvider,onClick:o.createNewItem},{default:n(()=>[t(y,{class:"mr-1",icon:"mdi-plus"}),e[23]||(e[23]=l(" 新建 ",-1))]),_:1},8,["disabled","onClick"]),t(f,{onClick:e[0]||(e[0]=d=>i.showMigrationDialog=!0)},{default:n(()=>[t(y,{class:"mr-1",icon:"mdi-cloud-upload"}),e[24]||(e[24]=l(" 从本地迁移 ",-1))]),_:1})]),_:1})]),default:n(()=>[t(R,null,{default:n(()=>[...e[21]||(e[21]=[l("数据条目",-1)])]),_:1}),t(ie,null,{default:n(()=>[l("共 "+v(i.kvData.length)+" 条记录",1)]),_:1})]),_:1})]),_:1}),i.kvData.length>0?(m(),w(B,{key:0,class:"mt-4",variant:"outlined"},{default:n(()=>[t(F,{class:"d-flex align-center"},{default:n(()=>[t(y,{class:"mr-2",icon:"mdi-table"}),e[25]||(e[25]=l(" KV数据列表 ",-1)),t(W),t(K,{modelValue:i.searchQuery,"onUpdate:modelValue":e[1]||(e[1]=d=>i.searchQuery=d),clearable:"",density:"compact","hide-details":"",label:"搜索键名","prepend-inner-icon":"mdi-magnify",style:{"max-width":"300px"},variant:"outlined"},null,8,["modelValue"])]),_:1}),t(Dt,{headers:i.tableHeaders,items:o.filteredKvData,"items-per-page":10,loading:i.loadingData,class:"elevation-0","item-value":"key"},{"item.key":n(({item:d})=>[p("code",Ys,v(d.key),1)]),"item.actions":n(({item:d})=>[t(rt,{density:"compact",variant:"text"},{default:n(()=>[t(f,{icon:"mdi-eye",size:"small",title:"查看",onClick:b=>o.viewItem(d)},null,8,["onClick"]),t(f,{icon:"mdi-pencil",size:"small",title:"编辑",onClick:b=>o.editItem(d)},null,8,["onClick"]),t(f,{color:"primary",icon:"mdi-cloud-download",size:"small",title:"获取云端地址",onClick:b=>o.getCloudUrl(d)},null,8,["onClick"]),t(f,{color:"error",icon:"mdi-delete",size:"small",title:"删除",onClick:b=>o.confirmDelete(d)},null,8,["onClick"])]),_:2},1024)]),_:2},1032,["headers","items","loading"])]),_:1})):S("",!0),t(we,{modelValue:i.viewDialog,"onUpdate:modelValue":e[5]||(e[5]=d=>i.viewDialog=d),"max-width":"800px"},{default:n(()=>[t(B,null,{default:n(()=>[t(F,{class:"d-flex align-center"},{default:n(()=>[t(y,{class:"mr-2",icon:"mdi-eye"}),e[26]||(e[26]=l(" 查看数据 ",-1)),t(W),t(f,{icon:"mdi-close",variant:"text",onClick:e[2]||(e[2]=d=>i.viewDialog=!1)})]),_:1}),i.selectedItem?(m(),w(Ne,{key:0},{default:n(()=>[e[27]||(e[27]=l(" 键名: ",-1)),p("code",null,v(i.selectedItem.key),1)]),_:1})):S("",!0),t(N,null,{default:n(()=>[i.selectedItem?(m(),w(Le,{key:0,"model-value":o.formatJsonData(i.selectedItem.value),class:"font-monospace",label:"数据内容",readonly:"",rows:"15",variant:"outlined"},null,8,["model-value"])):S("",!0)]),_:1}),t(oe,null,{default:n(()=>[t(W),t(f,{variant:"tonal",onClick:e[3]||(e[3]=d=>{var b;return o.copyToClipboard((b=i.selectedItem)==null?void 0:b.value)})},{default:n(()=>[t(y,{class:"mr-1",icon:"mdi-content-copy"}),e[28]||(e[28]=l(" 复制数据 ",-1))]),_:1}),t(f,{variant:"text",onClick:e[4]||(e[4]=d=>i.viewDialog=!1)},{default:n(()=>[...e[29]||(e[29]=[l(" 关闭 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(we,{modelValue:i.editDialog,"onUpdate:modelValue":e[7]||(e[7]=d=>i.editDialog=d),"max-width":"800px"},{default:n(()=>[t(B,null,{default:n(()=>[t(F,{class:"d-flex align-center"},{default:n(()=>[t(y,{class:"mr-2",icon:"mdi-pencil"}),e[30]||(e[30]=l(" 编辑数据 ",-1)),t(W),t(f,{icon:"mdi-close",variant:"text",onClick:o.closeEditDialog},null,8,["onClick"])]),_:1}),i.editingItem?(m(),w(Ne,{key:0},{default:n(()=>[e[31]||(e[31]=l(" 键名: ",-1)),p("code",null,v(i.editingItem.key),1)]),_:1})):S("",!0),t(N,null,{default:n(()=>[t(Le,{modelValue:i.editingData,"onUpdate:modelValue":e[6]||(e[6]=d=>i.editingData=d),error:!o.isValidJson,"error-messages":o.isValidJson?[]:["请输入有效的JSON格式"],class:"font-monospace",label:"数据内容 (JSON格式)",rows:"15",variant:"outlined"},null,8,["modelValue","error","error-messages"])]),_:1}),t(oe,null,{default:n(()=>[t(W),t(f,{variant:"text",onClick:o.closeEditDialog},{default:n(()=>[...e[32]||(e[32]=[l(" 取消 ",-1)])]),_:1},8,["onClick"]),t(f,{disabled:!o.isValidJson,loading:i.savingData,color:"primary",variant:"tonal",onClick:o.saveEditedData},{default:n(()=>[...e[33]||(e[33]=[l(" 保存 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(we,{modelValue:i.createDialog,"onUpdate:modelValue":e[10]||(e[10]=d=>i.createDialog=d),"max-width":"800px"},{default:n(()=>[t(B,null,{default:n(()=>[t(F,{class:"d-flex align-center"},{default:n(()=>[t(y,{class:"mr-2",icon:"mdi-plus"}),e[34]||(e[34]=l(" 新建数据 ",-1)),t(W),t(f,{icon:"mdi-close",variant:"text",onClick:o.closeCreateDialog},null,8,["onClick"])]),_:1}),t(N,null,{default:n(()=>[t(K,{modelValue:i.newKey,"onUpdate:modelValue":e[8]||(e[8]=d=>i.newKey=d),error:!o.isValidKey,"error-messages":o.isValidKey?[]:["键名不能为空且不能与现有键重复"],class:"mb-4",label:"键名",placeholder:"请输入键名,如:my-config",variant:"outlined"},null,8,["modelValue","error","error-messages"]),t(Le,{modelValue:i.newData,"onUpdate:modelValue":e[9]||(e[9]=d=>i.newData=d),error:!o.isValidNewJson,"error-messages":o.isValidNewJson?[]:["请输入有效的JSON格式"],class:"font-monospace",label:"数据内容 (JSON格式)",placeholder:'请输入JSON数据,如:{"name": "value"}',rows:"15",variant:"outlined"},null,8,["modelValue","error","error-messages"])]),_:1}),t(oe,null,{default:n(()=>[t(W),t(f,{variant:"text",onClick:o.closeCreateDialog},{default:n(()=>[...e[35]||(e[35]=[l(" 取消 ",-1)])]),_:1},8,["onClick"]),t(f,{disabled:!o.isValidKey||!o.isValidNewJson,loading:i.savingData,color:"primary",variant:"tonal",onClick:o.saveNewData},{default:n(()=>[...e[36]||(e[36]=[l(" 创建 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(we,{modelValue:i.cloudUrlDialog,"onUpdate:modelValue":e[15]||(e[15]=d=>i.cloudUrlDialog=d),"max-width":"800px"},{default:n(()=>[t(B,null,{default:n(()=>[t(F,{class:"d-flex align-center"},{default:n(()=>[t(y,{class:"mr-2",icon:"mdi-cloud-download"}),e[37]||(e[37]=l(" 获取云端访问地址 ",-1)),t(W),t(f,{icon:"mdi-close",variant:"text",onClick:e[11]||(e[11]=d=>i.cloudUrlDialog=!1)})]),_:1}),i.selectedCloudItem?(m(),w(Ne,{key:0},{default:n(()=>[e[38]||(e[38]=l(" 键名: ",-1)),p("code",null,v(i.selectedCloudItem.key),1)]),_:1})):S("",!0),t(N,null,{default:n(()=>[i.cloudUrlError?(m(),w(ee,{key:0,class:"mb-4",type:"error",variant:"tonal"},{default:n(()=>[l(v(i.cloudUrlError),1)]),_:1})):S("",!0),i.cloudUrlResult&&i.cloudUrlResult.success?(m(),w(ee,{key:1,class:"mb-4",type:"success",variant:"tonal"},{default:n(()=>[t(Ve,null,{default:n(()=>[...e[39]||(e[39]=[l("云端地址获取成功",-1)])]),_:1}),p("div",qs,[i.cloudUrlResult.migrated?(m(),A("div",Ws,[t(y,{class:"mr-1",color:"success",icon:"mdi-database-arrow-up"}),e[40]||(e[40]=l(" 数据已从本地迁移到云端 ",-1))])):S("",!0),i.cloudUrlResult.configured?(m(),A("div",Zs,[t(y,{class:"mr-1",color:"info",icon:"mdi-cog"}),e[41]||(e[41]=l(" 云端配置已自动设置 ",-1))])):S("",!0)])]),_:1})):S("",!0),i.cloudUrlResult&&i.cloudUrlResult.url?(m(),w(K,{key:2,"model-value":i.cloudUrlResult.url,"append-inner-icon":"mdi-content-copy",class:"font-monospace",label:"云端访问地址",readonly:"",variant:"outlined","onClick:appendInner":o.copyCloudUrl},null,8,["model-value","onClick:appendInner"])):S("",!0),i.cloudUrlResult&&i.cloudUrlResult.url?(m(),w(Ze,{key:3,class:"mt-4"},{default:n(()=>[t(Xe,null,{default:n(()=>[t(Vt,null,{default:n(()=>[t(y,{class:"mr-2",icon:"mdi-cog"}),e[42]||(e[42]=l(" 高级选项 ",-1))]),_:1}),t($e,null,{default:n(()=>[t(Ge,{modelValue:i.cloudUrlOptions.migrateFromLocal,"onUpdate:modelValue":e[12]||(e[12]=d=>i.cloudUrlOptions.migrateFromLocal=d),density:"compact",label:"从本地迁移数据到云端"},null,8,["modelValue"]),t(Ge,{modelValue:i.cloudUrlOptions.autoConfigureCloud,"onUpdate:modelValue":e[13]||(e[13]=d=>i.cloudUrlOptions.autoConfigureCloud=d),density:"compact",label:"自动配置云端默认设置"},null,8,["modelValue"]),t(f,{loading:i.gettingCloudUrl,class:"mt-2",color:"primary",variant:"tonal",onClick:o.refreshCloudUrl},{default:n(()=>[t(y,{class:"mr-1",icon:"mdi-refresh"}),e[43]||(e[43]=l(" 重新获取 ",-1))]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1})):S("",!0)]),_:1}),t(oe,null,{default:n(()=>[t(W),t(f,{variant:"text",onClick:e[14]||(e[14]=d=>i.cloudUrlDialog=!1)},{default:n(()=>[...e[44]||(e[44]=[l(" 关闭 ",-1)])]),_:1}),i.cloudUrlResult&&i.cloudUrlResult.url?(m(),w(f,{key:0,color:"primary",variant:"tonal",onClick:o.openCloudUrl},{default:n(()=>[t(y,{class:"mr-1",icon:"mdi-open-in-new"}),e[45]||(e[45]=l(" 在新窗口打开 ",-1))]),_:1},8,["onClick"])):S("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(we,{modelValue:i.deleteDialog,"onUpdate:modelValue":e[17]||(e[17]=d=>i.deleteDialog=d),"max-width":"400px"},{default:n(()=>[t(B,null,{default:n(()=>[t(F,{class:"d-flex align-center text-error"},{default:n(()=>[t(y,{class:"mr-2",icon:"mdi-alert"}),e[46]||(e[46]=l(" 确认删除 ",-1))]),_:1}),t(N,null,{default:n(()=>{var d;return[e[48]||(e[48]=l(" 确定要删除键名为 ",-1)),p("code",null,v((d=i.itemToDelete)==null?void 0:d.key),1),e[49]||(e[49]=l(" 的数据吗? ",-1)),e[50]||(e[50]=p("br",null,null,-1)),e[51]||(e[51]=p("br",null,null,-1)),t(ee,{class:"mt-2",type:"warning",variant:"tonal"},{default:n(()=>[...e[47]||(e[47]=[l(" 此操作不可撤销,请谨慎操作! ",-1)])]),_:1})]}),_:1}),t(oe,null,{default:n(()=>[t(W),t(f,{variant:"text",onClick:e[16]||(e[16]=d=>i.deleteDialog=!1)},{default:n(()=>[...e[52]||(e[52]=[l(" 取消 ",-1)])]),_:1}),t(f,{loading:i.deletingData,color:"error",variant:"tonal",onClick:o.deleteItem},{default:n(()=>[...e[53]||(e[53]=[l(" 删除 ",-1)])]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(r,{modelValue:i.showMigrationDialog,"onUpdate:modelValue":e[18]||(e[18]=d=>i.showMigrationDialog=d)},null,8,["modelValue"])]),_:1},8,["loading"])}const Ft=Z(Gs,[["render",Xs],["__scopeId","data-v-67879974"]]),$s={name:"DataProviderSettingsCard",components:{SettingsCard:q},data(){return{loading:!1,serverchecktime:{},confirmDialog:!1,confirmTitle:"",confirmMessage:"",confirmAction:null,machineId:null,migrateLoading:!1}},computed:{currentProvider(){return V("server.provider")},isKvProvider(){return this.currentProvider==="kv-local"||this.currentProvider==="kv-server"||this.currentProvider==="classworkscloud"}},async created(){this.machineId=V("device.uuid")},methods:{async checkServerConnection(){this.loading=!0,this.serverchecktime=new Date;try{const s=V("server.domain"),e=V("server.siteKey"),a={Accept:"application/json"};if(e&&(a["x-site-key"]=e),(await _n.get(`${s}/check`,{method:"GET",headers:a})).data.status==="success")this.$message.success("连接成功","服务器连接正常 延迟"+(new Date-this.serverchecktime)+"ms");else throw new Error("服务器响应异常")}catch(s){this.$message.error("连接失败",s.message||"无法连接到服务器")}finally{this.loading=!1}},confirmClearLocalStorage(){this.confirmTitle="确认清除",this.confirmMessage="此操作将清除所有本地存储的数据,确定要继续吗?",this.confirmAction=this.clearLocalStorage,this.confirmDialog=!0},clearLocalStorage(){try{localStorage.clear(),this.$message.success("清除成功","本地存储数据已清除"),this.confirmDialog=!1}catch(s){this.$message.error("清除失败",s.message)}},confirmClearIndexedDB(){this.confirmTitle="确认清除",this.confirmMessage="此操作将清除所有IndexedDB中的数据,确定要继续吗?",this.confirmAction=this.clearIndexedDB,this.confirmDialog=!0},async clearIndexedDB(){try{await window.indexedDB.deleteDatabase("ClassworksDB"),this.$message.success("清除成功","数据库缓存已清除"),this.confirmDialog=!1,this.isKvProvider&&setTimeout(()=>{window.location.reload()},1500)}catch(s){this.$message.error("清除失败",s.message)}},async exportData(){try{const s="ClassworksDB",e={indexedDB:{}},a=await new Promise((d,b)=>{const D=window.indexedDB.open(s);D.onerror=()=>b(D.error),D.onsuccess=()=>d(D.result)}),u=Array.from(a.objectStoreNames);for(const d of u){const D=a.transaction(d,"readonly").objectStore(d),E=await new Promise((G,J)=>{const Y=D.getAll();Y.onerror=()=>J(Y.error),Y.onsuccess=()=>G(Y.result)});e.indexedDB[d]=E}const i=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),o=URL.createObjectURL(i),r=document.createElement("a"),h=new Date().toISOString().split("T")[0];r.href=o,r.download=`homework-indexeddb-${h}.json`,r.click(),URL.revokeObjectURL(o),this.$message.success("导出成功","IndexedDB数据已导出")}catch(s){console.error("导出失败:",s),this.$message.error("导出失败",s.message||"无法导出数据库数据")}},async migrateData(){this.migrateLoading=!0,this.$router.push("/datamigration"),this.migrateLoading=!1},handleConfirm(){this.confirmAction&&this.confirmAction()}}};function ei(s,e,a,u,i,o){const r=q;return m(),w(r,{icon:"mdi-database-cog",title:"数据源设置"},{default:n(()=>[t(Q,null,{default:n(()=>[o.currentProvider==="kv-server"||o.currentProvider==="classworkscloud"?(m(),w(T,{key:0},{prepend:n(()=>[t(y,{class:"mr-3",icon:"mdi-lan-connect"})]),append:n(()=>[t(f,{loading:i.loading,variant:"tonal",onClick:o.checkServerConnection},{default:n(()=>[...e[3]||(e[3]=[l(" 测试连接 ",-1)])]),_:1},8,["loading","onClick"])]),default:n(()=>[t(R,null,{default:n(()=>[...e[2]||(e[2]=[l("检查服务器连接",-1)])]),_:1})]),_:1})):S("",!0),o.currentProvider==="kv-local"?(m(),A(te,{key:1},[t(T,null,{prepend:n(()=>[t(y,{class:"mr-3",icon:"mdi-database"})]),append:n(()=>[t(f,{color:"error",variant:"tonal",onClick:o.confirmClearIndexedDB},{default:n(()=>[...e[6]||(e[6]=[l(" 清除 ",-1)])]),_:1},8,["onClick"])]),default:n(()=>[t(R,null,{default:n(()=>[...e[4]||(e[4]=[l("清除数据库缓存",-1)])]),_:1}),t(ie,null,{default:n(()=>[...e[5]||(e[5]=[l("这将清除所有本地数据库中的数据 ",-1)])]),_:1})]),_:1}),t(T,null,{prepend:n(()=>[t(y,{class:"mr-3",icon:"mdi-database-export"})]),append:n(()=>[t(f,{variant:"tonal",onClick:o.exportData},{default:n(()=>[...e[8]||(e[8]=[l(" 导出",-1)])]),_:1},8,["onClick"])]),default:n(()=>[t(R,null,{default:n(()=>[...e[7]||(e[7]=[l("导出数据库",-1)])]),_:1})]),_:1})],64)):S("",!0),t(T,null,{prepend:n(()=>[t(y,{class:"mr-3",icon:"mdi-lan-connect"})]),append:n(()=>[t(f,{to:"/cachemanagement",variant:"tonal"},{default:n(()=>[...e[10]||(e[10]=[l(" 查看",-1)])]),_:1})]),default:n(()=>[t(R,null,{default:n(()=>[...e[9]||(e[9]=[l("查看本地缓存",-1)])]),_:1})]),_:1})]),_:1}),t(we,{modelValue:i.confirmDialog,"onUpdate:modelValue":e[1]||(e[1]=h=>i.confirmDialog=h),"max-width":"400"},{default:n(()=>[t(B,null,{default:n(()=>[t(F,null,{default:n(()=>[l(v(i.confirmTitle),1)]),_:1}),t(N,null,{default:n(()=>[l(v(i.confirmMessage),1)]),_:1}),t(oe,null,{default:n(()=>[t(W),t(f,{color:"grey",variant:"text",onClick:e[0]||(e[0]=h=>i.confirmDialog=!1)},{default:n(()=>[...e[11]||(e[11]=[l("取消 ",-1)])]),_:1}),t(f,{color:"error",variant:"tonal",onClick:o.handleConfirm},{default:n(()=>[...e[12]||(e[12]=[l("确认 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const Qt=Z($s,[["render",ei]]),ti={name:"CloudNamespaceInfoCard",props:{visible:{type:Boolean,default:!0}},data(){return{namespaceInfo:{},loading:!1,hasNamespaceInfo:!1,showReinitDialog:!1,defaultAuthServer:V("server.authDomain")}},watch:{visible(s){s===!0&&this.fetchNamespaceInfo()}},mounted(){this.visible&&this.fetchNamespaceInfo()},methods:{formatDate(s){if(!s)return"未知";try{return new Date(s).toLocaleString("zh-CN")}catch{return s}},async fetchNamespaceInfo(){this.loading=!0;try{const s=await Vn.loadNamespaceInfo();this.namespaceInfo=s,this.hasNamespaceInfo=!0,this.loading=!1}catch(s){console.error("获取命名空间信息失败:",s),this.hasNamespaceInfo=!1,this.namespaceInfo={}}finally{this.loading=!1}},async reloadInfo(){await this.fetchNamespaceInfo()},getBindAccountUrl(){var e,a;const s=(a=(e=this.namespaceInfo)==null?void 0:e.device)==null?void 0:a.uuid;return s?`${this.defaultAuthServer}?uuid=${encodeURIComponent(s)}&tolinktoaccount=true`:this.defaultAuthServer},confirmReinitialize(){De("server.kvToken",""),De("device.uuid",""),this.showReinitDialog=!1,this.$router.push("/")}}},ni={key:0,class:"mb-4"},si={key:1,class:"d-flex align-center mb-4"},ii={class:"d-flex flex-column gap-1"},oi={class:"d-flex align-center"},li={class:"d-flex align-center"},ai={key:0,class:"d-flex align-center"},ri={class:"text-truncate"},ui={class:"d-flex align-center"},di={key:1,class:"d-flex align-center"};function ci(s,e,a,u,i,o){return m(),w(B,{disabled:!i.hasNamespaceInfo,loading:i.loading,class:"my-4"},{loader:n(()=>[i.loading?(m(),w(Ye,{key:0,color:"primary",indeterminate:""})):S("",!0)]),default:n(()=>[t(F,null,{default:n(()=>[t(y,{class:"me-2"},{default:n(()=>[...e[3]||(e[3]=[l(" mdi-cloud-check ",-1)])]),_:1}),e[4]||(e[4]=l(" 设备信息 ",-1))]),_:1}),i.hasNamespaceInfo?(m(),w(N,{key:0},{default:n(()=>[i.namespaceInfo.hasAccount===!1?(m(),A("div",ni,[t(ee,{border:"",type:"warning",variant:"tonal"},{default:n(()=>[t(Ve,null,{default:n(()=>[...e[5]||(e[5]=[l("设备未绑定账号",-1)])]),_:1}),e[7]||(e[7]=p("div",null,"当前设备尚未绑定账号,部分功能可能受限。请前往绑定账号以获得完整体验。",-1)),t(f,{href:o.getBindAccountUrl(),"append-icon":"mdi-open-in-new",class:"mt-3",target:"_blank",variant:"outlined"},{default:n(()=>[...e[6]||(e[6]=[l(" 前往绑定账号 ",-1)])]),_:1},8,["href"])]),_:1})])):S("",!0),i.namespaceInfo.hasAccount&&i.namespaceInfo.account?(m(),A("div",si,[t(B,{"prepend-avatar":i.namespaceInfo.account.avatarUrl,subtitle:"此设备由贵校管理 管理员账号 ID: "+i.namespaceInfo.account.id,title:i.namespaceInfo.account.name||"未命名用户",border:"",class:"w-100",hover:"",variant:"tonal"},{default:n(()=>[t(N,null,{default:n(()=>[...e[8]||(e[8]=[l(" 此设备由贵校或贵单位管理,该管理员系此空间所有者,如有疑问请咨询他,对于恶意绑定、滥用行为请反馈。 ",-1)])]),_:1})]),_:1},8,["prepend-avatar","subtitle","title"])])):S("",!0),i.namespaceInfo.device?(m(),w(B,{key:2,border:"",class:"mb-4",hover:"",variant:"tonal"},{default:n(()=>[t(F,{class:"pb-1"},{default:n(()=>[...e[9]||(e[9]=[l(" 设备信息 ",-1)])]),_:1}),t(N,null,{default:n(()=>[p("div",ii,[p("div",oi,[t(y,{class:"me-2",size:"small"},{default:n(()=>[...e[10]||(e[10]=[l(" mdi-tag ",-1)])]),_:1}),e[11]||(e[11]=p("span",{class:"font-weight-medium me-2"},"设备名称:",-1)),p("span",null,v(i.namespaceInfo.device.name||"未命名设备"),1)]),p("div",li,[t(y,{class:"me-2",size:"small"},{default:n(()=>[...e[12]||(e[12]=[l(" mdi-identifier ",-1)])]),_:1}),e[13]||(e[13]=p("span",{class:"font-weight-medium me-2"},"设备 ID:",-1)),p("span",null,v(i.namespaceInfo.device.id),1)]),i.namespaceInfo.hasAccount===!1&&i.namespaceInfo.device.uuid?(m(),A("div",ai,[t(y,{class:"me-2",size:"small"},{default:n(()=>[...e[14]||(e[14]=[l(" mdi-uuid ",-1)])]),_:1}),e[15]||(e[15]=p("span",{class:"font-weight-medium me-2"},"UUID:",-1)),p("span",ri,v(i.namespaceInfo.device.uuid),1)])):S("",!0),p("div",ui,[t(y,{class:"me-2",size:"small"},{default:n(()=>[...e[16]||(e[16]=[l(" mdi-calendar ",-1)])]),_:1}),e[17]||(e[17]=p("span",{class:"font-weight-medium me-2"},"创建时间:",-1)),p("span",null,v(o.formatDate(i.namespaceInfo.device.createdAt)),1)]),i.namespaceInfo.device.updatedAt?(m(),A("div",di,[t(y,{class:"me-2",size:"small"},{default:n(()=>[...e[18]||(e[18]=[l(" mdi-calendar-clock ",-1)])]),_:1}),e[19]||(e[19]=p("span",{class:"font-weight-medium me-2"},"更新时间:",-1)),p("span",null,v(o.formatDate(i.namespaceInfo.device.updatedAt)),1)])):S("",!0)])]),_:1})]),_:1})):S("",!0),t(B,{border:"",hover:"",subtitle:"文档形键值数据库",title:"Classworks KV"},{default:n(()=>[t(N,null,{default:n(()=>[...e[20]||(e[20]=[l(" Classworks KV 是厚浪云推出的文档形键值数据库,其是一个开放的云应用平台,为各种应用提供存储服务。此设备正在使用其服务,如果您希望管理设备信息,请前往 Classworks KV 的网站,如果您在服务推出前就在使用 Classworks,您的数据已被自动迁移。 ",-1),p("br",null,null,-1),p("br",null,null,-1),l(" Classworks KV 的全域管理员是 ",-1),p("a",{href:"https://wuyuan.dev",target:"_blank"}," 孙悟元 ",-1)])]),_:1}),t(oe,null,{default:n(()=>[t(f,{href:i.defaultAuthServer,"append-icon":"mdi-open-in-new",class:"text-none",target:"_blank"},{default:n(()=>[...e[21]||(e[21]=[l(" 前往 Classworks KV ",-1)])]),_:1},8,["href"])]),_:1})]),_:1})]),_:1})):(m(),w(N,{key:1},{default:n(()=>[t(ee,{type:"info",variant:"tonal"},{default:n(()=>[t(Ve,null,{default:n(()=>[...e[22]||(e[22]=[l("未获取到设备信息",-1)])]),_:1}),e[23]||(e[23]=p("p",null,"您尚未完成云端存储授权或连接失败,请点击下方按钮进行初始化。",-1))]),_:1})]),_:1})),t(oe,null,{default:n(()=>[t(W),t(f,{loading:i.loading,color:"primary",variant:"outlined",onClick:o.reloadInfo},{default:n(()=>[...e[24]||(e[24]=[l(" 刷新设备信息 ",-1)])]),_:1},8,["loading","onClick"]),t(f,{color:"error",variant:"outlined",onClick:e[0]||(e[0]=r=>i.showReinitDialog=!0)},{default:n(()=>[...e[25]||(e[25]=[l(" 重新初始化云端存储 ",-1)])]),_:1})]),_:1}),t(we,{modelValue:i.showReinitDialog,"onUpdate:modelValue":e[2]||(e[2]=r=>i.showReinitDialog=r),"max-width":"500"},{default:n(()=>[t(B,null,{default:n(()=>[t(F,null,{default:n(()=>[...e[26]||(e[26]=[l("确认重新初始化",-1)])]),_:1}),t(N,null,{default:n(()=>[t(ee,{class:"mb-3",type:"warning",variant:"tonal"},{default:n(()=>[t(Ve,null,{default:n(()=>[...e[27]||(e[27]=[l("警告",-1)])]),_:1}),e[28]||(e[28]=l(" 此操作将清除当前的云端存储配置(包括 Token),您需要重新进行授权。 ",-1))]),_:1}),e[29]||(e[29]=p("p",null,"您确定要重新初始化云端存储吗?",-1))]),_:1}),t(oe,null,{default:n(()=>[t(W),t(f,{variant:"text",onClick:e[1]||(e[1]=r=>i.showReinitDialog=!1)},{default:n(()=>[...e[30]||(e[30]=[l(" 取消 ",-1)])]),_:1}),t(f,{color:"error",onClick:o.confirmReinitialize},{default:n(()=>[...e[31]||(e[31]=[l(" 确认 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["disabled","loading"])}const Jt=Z(ti,[["render",ci]]),mi={name:"ServerSettingsCard",components:{SettingsCard:q,CloudNamespaceInfoCard:Jt},props:{loading:Boolean},data(){return{unwatch:null,serverSettings:{provider:V("server.provider"),domain:V("server.domain"),classNumber:V("server.classNumber"),kvToken:V("server.kvToken")},settingsChangeTimeout:null}},computed:{currentProvider(){return this.serverSettings.provider},isKvProvider(){return this.currentProvider==="kv-local"||this.currentProvider==="kv-server"},isClassworksCloud(){return this.currentProvider==="classworkscloud"},useServer(){return this.currentProvider==="server"||this.currentProvider==="kv-server"||this.currentProvider==="classworkscloud"}},watch:{serverSettings:{handler(){this.settingsChangeTimeout&&clearTimeout(this.settingsChangeTimeout),this.settingsChangeTimeout=setTimeout(()=>{this.saveAllSettings()},100)},deep:!0}},mounted(){this.loadAllSettings(),this.unwatch=We(()=>{this.loadAllSettings(),this.$forceUpdate&&this.$forceUpdate()})},beforeUnmount(){this.unwatch&&this.unwatch()},methods:{loadAllSettings(){this.serverSettings={provider:V("server.provider"),domain:V("server.domain"),classNumber:V("server.classNumber"),kvToken:V("server.kvToken")}},saveAllSettings(){Object.entries(this.serverSettings).forEach(([s,e])=>{const a=`server.${s}`,u=V(a);e!==u&&(De(a,e)?console.log(`设置已更新: ${a} = ${e}`):(console.error(`设置失败: ${a}`),this.serverSettings[s]=u))})}}},pi={key:0},fi={key:2},hi={key:3},wi={key:4};function gi(s,e,a,u,i,o){const r=Jt,h=q;return m(),w(h,{loading:a.loading,icon:"mdi-database",title:"数据源设置"},{default:n(()=>[t(_t,null,{default:n(()=>[t(xt,{modelValue:i.serverSettings.provider,"onUpdate:modelValue":e[0]||(e[0]=d=>i.serverSettings.provider=d),items:[{title:"Classworks云端存储",value:"classworkscloud"},{title:"KV本地存储",value:"kv-local"},{title:"KV远程服务器",value:"kv-server"}],class:"mb-3",density:"comfortable","item-title":"title","item-value":"value",label:"数据提供者","prepend-icon":"mdi-database",variant:"outlined"},null,8,["modelValue"]),o.isKvProvider?(m(),w(ee,{key:0,class:"my-2",type:"info",variant:"tonal"},{default:n(()=>[t(Ve,null,{default:n(()=>[...e[5]||(e[5]=[l("KV 存储系统",-1)])]),_:1}),e[7]||(e[7]=p("p",null,"KV存储系统使用本机唯一标识符(UUID)来区分不同设备的数据。",-1)),o.currentProvider==="kv-server"?(m(),A("p",pi,[...e[6]||(e[6]=[l(" 服务器端点格式: ",-1),p("code",null,"http(s)://服务器域名/",-1),p("br",null,null,-1),l(" 在服务器域名处仅填写基础URL,不需要任何路径。 ",-1)])])):S("",!0)]),_:1})):S("",!0),o.isClassworksCloud?(m(),w(ee,{key:1,class:"my-2",color:"success",type:"info",variant:"tonal"},{default:n(()=>[t(Ve,null,{default:n(()=>[...e[8]||(e[8]=[l("Classworks云端存储",-1)])]),_:1}),e[9]||(e[9]=p("p",null,"Classworks云端存储是官方提供的存储解决方案,自动配置了最优的访问设置。",-1)),e[10]||(e[10]=p("p",null,"使用此选项时,服务器域名和网站令牌将自动配置,无需手动设置。",-1))]),_:1})):S("",!0),t(L,{class:"my-2"}),o.isClassworksCloud?(m(),A("div",fi,[t(K,{modelValue:i.serverSettings.kvToken,"onUpdate:modelValue":e[1]||(e[1]=d=>i.serverSettings.kvToken=d),class:"mb-2",density:"comfortable",hint:"令牌用于云端存储授权",label:"KV 授权令牌","persistent-hint":"","prepend-icon":"mdi-shield-key",variant:"outlined"},null,8,["modelValue"]),t(r,{visible:o.isClassworksCloud,class:"mt-4"},null,8,["visible"])])):o.currentProvider==="kv-server"?(m(),A("div",hi,[t(K,{modelValue:i.serverSettings.domain,"onUpdate:modelValue":e[2]||(e[2]=d=>i.serverSettings.domain=d),class:"mb-2",density:"comfortable",hint:"例如: https://example.com (不需要路径)",label:"服务器域名","persistent-hint":"","prepend-icon":"mdi-web",variant:"outlined"},null,8,["modelValue"]),t(K,{modelValue:i.serverSettings.kvToken,"onUpdate:modelValue":e[3]||(e[3]=d=>i.serverSettings.kvToken=d),class:"mb-2",density:"comfortable",hint:"令牌用于服务器验证",label:"KV 授权令牌","persistent-hint":"","prepend-icon":"mdi-shield-key",variant:"outlined"},null,8,["modelValue"])])):o.currentProvider==="kv-local"?(m(),A("div",wi,[t(K,{modelValue:i.serverSettings.classNumber,"onUpdate:modelValue":e[4]||(e[4]=d=>i.serverSettings.classNumber=d),class:"mb-2",density:"comfortable",hint:"例如: 高三八班",label:"班级编号","persistent-hint":"","prepend-icon":"mdi-account-group",variant:"outlined"},null,8,["modelValue"])])):S("",!0)]),_:1})]),_:1},8,["loading"])}const Ht=Z(mi,[["render",gi]]),vi="classworks",bi="module",yi="0.0.0",ki={dev:"vite --host",build:"vite build",preview:"vite preview",lint:"eslint . --fix"},xi={"@examaware-cs/core":"^1.0.0","@examaware-cs/player":"^1.0.2","@fingerprintjs/fingerprintjs":"^5.0.1","@mdi/font":"7.4.47","@microsoft/clarity":"^1.0.2","@vueuse/core":"^14.1.0",axios:"^1.13.2",idb:"^8.0.3","js-base64":"^3.7.8","js-yaml":"^4.1.1","lucide-vue-next":"^0.555.0",marked:"^17.0.1","pinyin-pro":"^3.27.0","ratelimit-header-parser":"^0.1.0","roboto-fontface":"*","socket.io-client":"^4.8.1","typewriter-effect":"^2.22.0",uuid:"^13.0.0",vue:"^3.5.25","vue-sonner":"^2.0.9",vuetify:"^3.11.0"},Si={"@eslint/js":"^9.39.1","@vite-pwa/assets-generator":"^1.0.2","@vitejs/plugin-vue":"^6.0.2",eslint:"^9.39.1","eslint-plugin-import":"^2.32.0","eslint-plugin-n":"^17.23.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^7.2.1","eslint-plugin-vue":"^10.6.2",pinia:"^3.0.4",sass:"1.94.2","sass-embedded":"^1.93.3","unplugin-auto-import":"^20.3.0","unplugin-fonts":"^1.4.0","unplugin-vue-components":"^30.0.0","unplugin-vue-router":"^0.18.0",vite:"^5.4.11","vite-plugin-pwa":"^1.2.0","vite-plugin-vue-devtools":"^7.6.8","vite-plugin-vue-layouts":"^0.11.0","vite-plugin-vuetify":"^2.1.2","vue-router":"^4.6.3"},Ue={name:vi,private:!0,type:bi,version:yi,scripts:ki,dependencies:xi,devDependencies:Si},Ci="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAa9SURBVHic7dY9jlxVFIXRY8SsCEDyMCAjgRFBYokARoGQQII5EDIJYhNgyb9td9euqvfu3WuN4CTf1nn2958/vRyg0mdHHwAcxwBAMQMAxQwAFDMAUMwAQDEDAMUMABQzAFDMAEAxAwDFDAAUMwBQzABAMQMAxQwAFDMAUMwAQDEDAMUMABQzAFDMAEAxAwDFDAAUMwBQzABAMQMAxQwAFDMAUMwAQDEDAMUMABQzAFDMAEAxAwDFDAAUMwBQzABAMQMAxQwAFDMAUMwAQDEDAMUMABQzAFDMAEAxAwDFPj/6AI7z2+9/zW9//HX0Gct6/uUX8/yrL44+I+IDKCX+zA7xzxiASuLP7BL/jAGoI/7MTvHPGIAq4s/sFv+MAagh/syO8c8YgAriz+wa/4wB2J74MzvHP2MAtib+zO7xzxiAbYk/0xD/jAHYkvgzLfHPGIDtiD/TFP+MAdiK+DNt8c8YgG2IP9MY/4wB2IL4M63xzxiA5Yk/0xz/jAFYmvgz7fHPGIBliT8j/v8ZgAWJPyP+1wzAYsSfEf/bDMBCxJ8R//sMwCLEnxH/hxmABYg/I/6HGYCTE39G/B9nAE5M/Bnxf5oBOCnxZ8T/OAbghMSfEf/jGYCTEX9G/E9jAE5E/BnxP50BOAnxZ8R/GQNwAuLPiP9yBuBg4s+IP2MADiT+jPhzBuAg4s+I/zoMwAHEnxH/9RiAOxN/RvzXZQDuSPwZ8V+fAbgT8WfEfxsG4A7EnxH/7RiAGxN/Rvy3ZQBuSPwZ8d+eAbgR8WfEfx8G4AbEnxH//RiAKxN/Rvz3ZQCuSPwZ8d+fAbgS8WfEfwwDcAXiz4j/OAYgJP6M+I9lAALiz4j/eAbgQuLPiP8cDMAFxJ8R/3kYgCcSf0b852IAnkD8GfGfjwF4JPFnxH9OBuARxJ8R/3kZgE8Qf0b852YAPkL8GfGfnwF4gPgz4l+DAfgA8WfEvw4D8A7xZ8S/FgPwBvFnxL8eA/CK+DPiX5MBGPGnxL+u+gEQf0b8a6seAPFnxL++2gEQf0b8e6gcAPFnxL+PugEQf0b8e6kaAPFnxL+fmgEQf0b8e6oYAPFnxL+v7QdA/Bnx723rARB/Rvz723YAxJ8Rf4ctB0D8GfH32G4AxJ8Rf5etBkD8GfH32WYAxJ8Rf6ctBkD8GfH3Wn4AxJ8Rf7dn//7z68ujj+AYP774ZX548fPRZyzr+2+/me++/froMyLLfwBcRvyZHeKfMQCVxJ/ZJf4ZA1BH/Jmd4p8xAFXEn9kt/hkDUEP8mR3jnzEAFcSf2TX+GQOwPfFndo5/xgBsTfyZ3eOfMQDbEn+mIf4ZA7Al8Wda4p8xANsRf6Yp/hkDsBXxZ9rinzEA2xB/pjH+GQOwBfFnWuOfMQDLE3+mOf4ZA7A08Wfa458xAMsSf0b8/zMACxJ/RvyvGYDFiD8j/rcZgIWIPyP+9xmARYg/I/4PMwALEH9G/A8zACcn/oz4P84AnJj4M+L/NANwUuLPiP9xDMAJiT8j/sczACcj/oz4n8YAnIj4M+J/OgNwEuLPiP8yBuAExJ8R/+UMwMHEnxF/xgAcSPwZ8ecMwEHEnxH/dRiAA4g/I/7rMQB3Jv6M+K/LANyR+DPivz4DcCfiz4j/NgzAHYg/I/7bMQA3Jv6M+G/LANyQ+DPivz0DcCPiz4j/PgzADYg/I/77MQBXJv6M+O/LAFyR+DPivz8DcCXiz4j/GAbgCsSfEf9xDEBI/BnxH8sABMSfEf/xDMCFxJ8R/zkYgAuIPyP+8zAATyT+jPjPxQA8gfgz4j8fA/BI4s+I/5wMwCOIPyP+8zIAnyD+jPjPzQB8hPgz4j8/A/AA8WfEvwYD8AHiz4h/HQbgHeLPiH8tBuAN4s+Ifz0G4BXxZ8S/JgMw4k+Jf131AyD+jPjXVj0A4s+If321AyD+jPj3UDkA4s+Ifx91AyD+jPj3UjUA4s+Ifz81AyD+jPj3VDEA4s+If1/bD4D4M+Lf29YDIP6M+Pe37QCIPyP+DlsOgPgz4u+x3QCIPyP+LlsNgPgz4u+zzQCIPyP+TlsMgPgz4u+1/ACIPyP+bs/+/efXl0cfARxj+Q8AuJwBgGIGAIoZAChmAKCYAYBiBgCKGQAoZgCgmAGAYgYAihkAKGYAoJgBgGIGAIoZAChmAKCYAYBiBgCKGQAoZgCgmAGAYgYAihkAKGYAoJgBgGIGAIoZAChmAKCYAYBiBgCKGQAoZgCgmAGAYgYAihkAKGYAoJgBgGIGAIoZAChmAKCYAYBiBgCKGQAoZgCgmAGAYgYAiv0Hs2PMhrt8KlMAAAAASUVORK5CYII=",_i={name:"AboutCard",setup(){const s=de([]),e=de(!1),a=de(!1),u=de(""),i=de(!1),o=de(!1),r="964979747",h="https://qm.qq.com/q/T6qImKJjGi",d=vn(),b=()=>{try{const g={...Ue.dependencies||{},...Ue.devDependencies||{}},_=Object.entries(g).map(([M,j])=>({name:M,version:j.replace(/[\^~]/g,""),description:D(M)}));s.value=_}catch(g){console.error("加载依赖信息失败:",g),s.value=[]}},D=g=>({vue:"渐进式 JavaScript 框架",vuetify:"材料设计组件框架",axios:"Promise 基础的 HTTP 客户端",pinia:"Vue 状态管理库","vue-router":"Vue.js 官方路由管理器","@vitejs/plugin-vue":"Vite 的 Vue 插件"})[g]||"",E=()=>{d.push("/debug")},G=async()=>{i.value=!0;try{const g=await yn();u.value=g||""}catch(g){console.error("获取访客ID失败",g)}finally{i.value=!1}},J=()=>G(),Y=async()=>{a.value=!0,u.value||await G()},ae=async()=>{try{await navigator.clipboard.writeText(le.value),o.value=!0,setTimeout(()=>o.value=!1,1800)}catch(g){console.error("复制失败",g)}},re=Ee(()=>{var xe,be;const g=navigator||{},_=typeof Intl<"u"&&Intl.DateTimeFormat?Intl.DateTimeFormat().resolvedOptions():{},M=_&&_.timeZone?_.timeZone:"",j=((be=(xe=d.currentRoute)==null?void 0:xe.value)==null?void 0:be.fullPath)||location.pathname;return[`App 版本: v${Ue==null?void 0:Ue.version}`,`URL: ${location.href}`,`路由: ${j}`,`UserAgent: ${g.userAgent||""}`,`语言: ${g.language||""}`,`时区: ${M}`,`平台: ${g.platform||""}`,`在线: ${String(g.onLine)}`,`屏幕: ${(screen==null?void 0:screen.width)||"-"}x${(screen==null?void 0:screen.height)||"-"}`,`视口: ${window.innerWidth||"-"}x${window.innerHeight||"-"}`].join(` +`)}),le=Ee(()=>`调试ID: ${u.value||"获取失败"} + +浏览器/环境信息: +${re.value}`),X=Ee(()=>["问题描述:","1. 期望行为:","2. 实际行为:","3. 复现步骤:","",le.value].join(` +`)),ge=Ee(()=>{const g="https://github.com/ZeroCatDev/Classworks/issues/new",_=encodeURIComponent("问题报告"),M=encodeURIComponent(X.value);return`${g}?title=${_}&body=${M}`}),C=Ee(()=>{const g=encodeURIComponent("Classworks 问题报告"),_=encodeURIComponent(X.value);return`mailto:sun@wuyuan.dev?subject=${g}&body=${_}`});return bn(()=>{b()}),{Dependencies:s,showDeps:e,showReportDialog:a,debugIdInput:u,visitorLoading:i,copyOk:o,qqGroupNumber:r,qqGroupLink:h,goToDebug:E,reloadVisitorId:J,openReportDialog:Y,copyEnvInfo:ae,envBoxText:le,envInfo:re,reportBody:X,githubIssueUrl:ge,mailtoLink:C}}},Vi={class:"d-flex flex-column align-start"},Di={class:"d-flex gap-2 flex-wrap mb-6"},Ai={class:"text-body-2",style:{"white-space":"pre-wrap",margin:"0"}},Ii={class:"d-flex gap-2 flex-wrap mb-4"},Ti={class:"text-caption text-medium-emphasis"};function Ei(s,e,a,u,i,o){return m(),w(B,{border:"",hover:"",rounded:"xl"},{default:n(()=>[t(ze,null,{prepend:n(()=>[t(y,{class:"mr-2",icon:"mdi-information",size:"large"})]),default:n(()=>[t(F,{class:"text-h6"},{default:n(()=>[...e[6]||(e[6]=[l("关于",-1)])]),_:1})]),_:1}),t(N,null,{default:n(()=>[t(ke,null,{default:n(()=>[t(ce,{class:"mx-auto",cols:"12",md:"8"},{default:n(()=>[p("div",Vi,[t(vt,{class:"mb-4",size:"120"},{default:n(()=>[t(bt,{alt:"Classworks",src:Ci})]),_:1}),e[36]||(e[36]=p("h2",{class:"text-h5 mb-2"},"Classworks",-1)),e[37]||(e[37]=p("p",{class:"text-body-1 mb-4"},"适用于班级大屏的作业板小工具",-1)),p("div",Di,[t(f,{color:"red","prepend-icon":"mdi-bug",variant:"tonal",onClick:u.openReportDialog},{default:n(()=>[...e[7]||(e[7]=[l(" 报告问题 ",-1)])]),_:1},8,["onClick"]),t(f,{color:"primary",href:"https://qm.qq.com/q/qNBX4ZZVeg","prepend-icon":"mdi-qqchat",target:"_blank",variant:"tonal"},{default:n(()=>[...e[8]||(e[8]=[l(" QQ 群 ",-1)])]),_:1}),t(f,{href:"https://github.com/ClassworksDev/Classworks","prepend-icon":"mdi-github",target:"_blank",variant:"text"},{default:n(()=>[...e[9]||(e[9]=[l(" 前端 ",-1)])]),_:1}),t(f,{href:"https://github.com/ClassworksDev/ClassworksServer","prepend-icon":"mdi-github",target:"_blank",variant:"text"},{default:n(()=>[...e[10]||(e[10]=[l(" 后端 ",-1)])]),_:1})]),t(L,{class:"mb-4 w-100"}),e[38]||(e[38]=p("h3",{class:"text-h6 mb-2"},"备注与致谢",-1)),t(Q,{class:"mb-4 bg-transparent"},{default:n(()=>[t(T,{"append-icon":"mdi-link",href:"https://github.com/EnderWolf006/HomeworkBoard",target:"_blank"},{default:n(()=>[t(R,null,{default:n(()=>[...e[11]||(e[11]=[l(" 本项目受到 HomeworkBoard 的启发而开发 ",-1)])]),_:1}),t(ie,null,{default:n(()=>[...e[12]||(e[12]=[l(" 感谢 EnderWolf006 (@EnderWolf) fhzit(@Hellofhz) KeyFac 等人的贡献 ",-1)])]),_:1})]),_:1}),t(T,{"append-icon":"mdi-link",href:"https://hlyun.org",target:"_blank"},{default:n(()=>[t(R,null,{default:n(()=>[...e[13]||(e[13]=[l(" Classworks 由",-1),p("strong",null,"厚浪云",-1),l("提供 ",-1)])]),_:1}),t(ie,null,{default:n(()=>[...e[14]||(e[14]=[l(" 长江后浪推前浪 浮事新人换旧人 ",-1)])]),_:1})]),_:1}),t(T,{"append-icon":"mdi-link",href:"https://zerocat.houlangs.com",target:"_blank"},{default:n(()=>[t(R,null,{default:n(()=>[...e[15]||(e[15]=[l(" 感谢 ZeroCat 社区的开发者们 ",-1)])]),_:1}),t(ie,null,{default:n(()=>[...e[16]||(e[16]=[l(" 新一代,开源,编程社区 ",-1)])]),_:1})]),_:1}),t(L,{class:"ma-1"}),t(T,{"append-icon":"mdi-link",href:"https://github.com/HUSX100/IslandCaller",target:"_blank"},{default:n(()=>[t(R,null,{default:n(()=>[...e[17]||(e[17]=[l(" 本项目与 IslandCaller 没有从属关系 ",-1)])]),_:1}),t(ie,null,{default:n(()=>[...e[18]||(e[18]=[l(" IslandCaller 是由 HUSX100 开发的基于 ClassIsland 提醒服务的轻量级点名器 ",-1)])]),_:1})]),_:1}),t(T,{"append-icon":"mdi-link",href:"https://classisland.tech",target:"_blank"},{default:n(()=>[t(R,null,{default:n(()=>[...e[19]||(e[19]=[l(" 本项目与 ClassIsland 没有从属关系 ",-1)])]),_:1}),t(ie,null,{default:n(()=>[...e[20]||(e[20]=[l(" ClassIsland 是由 HelloWRC 开发的适用于班级大屏的课表信息显示工具 ",-1)])]),_:1})]),_:1})]),_:1}),t(f,{class:"mb-4","prepend-icon":"mdi-package-variant",variant:"text",onClick:e[0]||(e[0]=r=>u.showDeps=!0)},{default:n(()=>[...e[21]||(e[21]=[l(" 查看使用的第三方库 ",-1)])]),_:1}),t(we,{modelValue:u.showDeps,"onUpdate:modelValue":e[2]||(e[2]=r=>u.showDeps=r),fullscreen:"",transition:"dialog-bottom-transition"},{default:n(()=>[t(B,null,{default:n(()=>[t(ct,null,{default:n(()=>[t(f,{icon:"mdi-close",onClick:e[1]||(e[1]=r=>u.showDeps=!1)}),t(mt,null,{default:n(()=>[...e[22]||(e[22]=[l("使用的第三方库",-1)])]),_:1}),t(W)]),_:1}),t(N,null,{default:n(()=>[t(Q,null,{default:n(()=>[(m(!0),A(te,null,me(u.Dependencies,r=>(m(),w(T,{key:r.name,href:"https://www.npmjs.com/package/"+r.name,"append-icon":"mdi-link",target:"_blank"},{default:n(()=>[t(R,null,{default:n(()=>[l(v(r.name),1)]),_:2},1024),t(ie,null,{default:n(()=>[l(" v"+v(r.version),1)]),_:2},1024)]),_:2},1032,["href"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(we,{modelValue:u.showReportDialog,"onUpdate:modelValue":e[5]||(e[5]=r=>u.showReportDialog=r),"max-width":"640"},{default:n(()=>[t(B,null,{default:n(()=>[t(ct,{density:"compact"},{default:n(()=>[t(f,{icon:"mdi-close",onClick:e[3]||(e[3]=r=>u.showReportDialog=!1)}),t(mt,null,{default:n(()=>[...e[23]||(e[23]=[l("报告问题",-1)])]),_:1}),t(W)]),_:1}),t(N,null,{default:n(()=>[e[33]||(e[33]=p("p",{class:"mb-4"}," 调试ID与下方的浏览器环境信息将帮助我们快速定位问题,请在反馈中一并附上。 ",-1)),t(Tn,{class:"mb-3 pa-3 bg-grey-lighten-4 rounded",style:{"max-height":"260px",overflow:"auto"}},{default:n(()=>[p("pre",Ai,v(u.envBoxText),1)]),_:1}),p("div",Ii,[t(f,{size:"small",variant:"text","prepend-icon":"mdi-refresh",onClick:u.reloadVisitorId,loading:u.visitorLoading},{default:n(()=>[...e[24]||(e[24]=[l("刷新",-1)])]),_:1},8,["onClick","loading"]),t(f,{size:"small",variant:"text","prepend-icon":"mdi-content-copy",onClick:u.copyEnvInfo},{default:n(()=>[...e[25]||(e[25]=[l("复制信息",-1)])]),_:1},8,["onClick"]),t(f,{size:"small",variant:"text","prepend-icon":"mdi-open-in-new",onClick:u.goToDebug},{default:n(()=>[...e[26]||(e[26]=[l("查看 /debug 页面",-1)])]),_:1},8,["onClick"])]),u.copyOk?(m(),w(ee,{key:0,type:"success",density:"compact",class:"mb-4"},{default:n(()=>[...e[27]||(e[27]=[l("已复制到剪贴板",-1)])]),_:1})):S("",!0),e[34]||(e[34]=p("h4",{class:"text-subtitle-1 mb-2"},"反馈渠道",-1)),t(Q,{lines:"one",class:"bg-transparent"},{default:n(()=>[t(T,{href:u.qqGroupLink,target:"_blank","prepend-icon":"mdi-qqchat"},{default:n(()=>[t(R,null,{default:n(()=>[l("QQ群 ("+v(u.qqGroupNumber)+")",1)]),_:1}),t(ie,null,{default:n(()=>[...e[28]||(e[28]=[l("964979747",-1)])]),_:1})]),_:1},8,["href"]),t(T,{href:u.githubIssueUrl,target:"_blank","prepend-icon":"mdi-github"},{default:n(()=>[t(R,null,{default:n(()=>[...e[29]||(e[29]=[l("GitHub Issue",-1)])]),_:1}),t(ie,null,{default:n(()=>[...e[30]||(e[30]=[l("ZeroCatDev/Classworks",-1)])]),_:1})]),_:1},8,["href"]),t(T,{href:u.mailtoLink,target:"_blank","prepend-icon":"mdi-email"},{default:n(()=>[t(R,null,{default:n(()=>[...e[31]||(e[31]=[l("邮件",-1)])]),_:1}),t(ie,null,{default:n(()=>[...e[32]||(e[32]=[l("sun@wuyuan.dev",-1)])]),_:1})]),_:1},8,["href"])]),_:1})]),_:1}),t(oe,null,{default:n(()=>[t(W),t(f,{variant:"text",onClick:e[4]||(e[4]=r=>u.showReportDialog=!1)},{default:n(()=>[...e[35]||(e[35]=[l("关闭",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),p("p",Ti," Copyright © "+v(new Date().getFullYear())+" Sunwuyuan ",1)])]),_:1})]),_:1})]),_:1})]),_:1})}const Gt=Z(_i,[["render",Ei]]),Ui={name:"Settings",components:{ServerSettingsCard:Ht,EditSettingsCard:Bt,RefreshSettingsCard:Lt,DisplaySettingsCard:Pt,MessageLog:gt,SettingsCard:q,StudentListCard:Kt,AboutCard:Gt,DataProviderSettingsCard:Qt,ThemeSettingsCard:Mt,EchoChamberCard:It,SettingsExplorer:Tt,SettingsLinkGenerator:Ot,RandomPickerCard:Nt,HomeworkTemplateCard:Ut,SubjectManagementCard:jt,KvDatabaseCard:Ft},setup(){const{mobile:s}=xn();return{isMobile:s}},data(){return V("server.provider"),{settings:{server:{domain:V("server.domain"),classNumber:V("server.classNumber"),provider:V("server.provider")},refresh:{auto:V("refresh.auto"),interval:V("refresh.interval")},font:{size:V("font.size")},edit:{autoSave:V("edit.autoSave"),blockNonTodayAutoSave:V("edit.blockNonTodayAutoSave"),confirmNonTodaySave:V("edit.confirmNonTodaySave"),refreshBeforeEdit:V("edit.refreshBeforeEdit")},display:{emptySubjectDisplay:V("display.emptySubjectDisplay"),dynamicSort:V("display.dynamicSort"),showRandomButton:V("display.showRandomButton"),showFullscreenButton:V("display.showFullscreenButton")},developer:{enabled:V("developer.enabled"),showDebugConfig:V("developer.showDebugConfig")},message:{showSidebar:V("message.showSidebar"),maxActiveMessages:V("message.maxActiveMessages"),timeout:V("message.timeout"),saveHistory:V("message.saveHistory")}},dataProviders:[{title:"服务器",value:"server"},{title:"本地数据库",value:"indexedDB"}],studentData:{list:[],text:"",advanced:!1},newStudent:"",editingIndex:-1,editingName:"",deleteDialog:!1,studentToDelete:null,numberDialog:!1,newPosition:"",studentToMove:null,touchStartTime:0,touchTimeout:null,studentsLoading:!1,studentsError:null,debugConfig:"",loading:{server:!1,students:!1},hasUnsavedChanges:!1,lastSavedData:null,settingsTab:"index",settingsTabs:[{title:"首页",icon:"mdi-home",value:"index"},{title:"服务器",icon:"mdi-server",value:"server"},{title:"科目",icon:"mdi-book-edit",value:"subject"},{title:"学生列表",icon:"mdi-account-group",value:"student"},{title:"预配链接",icon:"mdi-share",value:"share"},{title:"刷新",icon:"mdi-refresh",value:"refresh"},{title:"编辑",icon:"mdi-pencil",value:"edit"},{title:"显示",icon:"mdi-eye",value:"display"},{title:"主题",icon:"mdi-theme-light-dark",value:"theme"},{title:"随机点名",icon:"mdi-dice-multiple",value:"randomPicker"},{title:"开发者",icon:"mdi-developer-board",value:"developer"},{title:"关于",icon:"mdi-information",value:"about"}],drawer:!1}},watch:{settings:{handler(s){this.handleSettingsChange(s)},deep:!0},isMobile:{handler(s){this.drawer=!s},immediate:!0},studentData:{handler(s){this.lastSavedData&&(this.hasUnsavedChanges=JSON.stringify(s.list)!==JSON.stringify(this.lastSavedData)),this.studentData.text=s.list.join(` +`)},deep:!0}},mounted(){this.loadAllSettings(),this.unwatchSettings=We(()=>{this.loadAllSettings()}),this.drawer=!this.isMobile},beforeUnmount(){this.unwatchSettings&&this.unwatchSettings()},methods:{openClassworksKV(){window.open(V("server.authDomain"),"_blank")},loadAllSettings(){Object.keys(this.settings).forEach(s=>{Object.keys(this.settings[s]).forEach(e=>{this.settings[s][e]=V(`${s}.${e}`)})})},handleSettingsChange(s){this.settingsChangeTimeout&&clearTimeout(this.settingsChangeTimeout),this.settingsChangeTimeout=setTimeout(()=>{Object.entries(s).forEach(([e,a])=>{Object.entries(a).forEach(([u,i])=>{const o=`${e}.${u}`,r=V(o);i!==r&&(De(o,i)?this.showMessage("设置已更新",`${o} 已保存`):(this.showError("保存失败",`${o} 设置失败`),this.settings[e][u]=r))})})},100)},showMessage(s,e="",a="success"){this.$message[a](s,e)},showError(s,e=""){this.$message.error(s,e)},saveEdit(){if(this.editingIndex!==-1){const s=this.editingName.trim();s&&s!==this.studentData.list[this.editingIndex]&&(this.studentData.list[this.editingIndex]=s),this.editingIndex=-1,this.editingName=""}},startEdit(s,e){this.editingIndex=s,this.editingName=e},confirmDelete(s){this.studentToDelete={index:s,name:this.studentData.list[s]},this.deleteDialog=!0},moveStudent(s,e){const a=e==="up"?s-1:s+1;a>=0&&a=0&&s0){const e=this.studentData.list[s];this.studentData.list.splice(s,1),this.studentData.list.unshift(e)}},addStudent(){const s=this.newStudent.trim();s&&!this.studentData.list.includes(s)&&(this.studentData.list.push(s),this.newStudent="")},removeStudent(s){s!==void 0&&(this.studentData.list.splice(s,1),this.deleteDialog=!1,this.studentToDelete=null)},resetFontSize(){yt("font.size"),this.settings.font.size=V("font.size"),this.showMessage("字体已重置","字体大小已恢复默认值")},handleDeveloperChange(s){s||(this.settings.message={showSidebar:!0,maxActiveMessages:5,timeout:5e3,saveHistory:!0})},resetDeveloperSettings(){this.settings.developer={enabled:!1},this.settings.message={showSidebar:!0,maxActiveMessages:5,timeout:5e3,saveHistory:!0},this.handleSettingsChange(this.settings),this.showMessage("已重置","开发者设置已重置为默认值","warning")},adjustFontSize(s){const a=this.settings.font.size;s==="up"&&a<100?this.settings.font.size=a+2:s==="down"&&a>16&&(this.settings.font.size=a-2),this.handleSettingsChange(this.settings)},onSettingsSaved(){this.showMessage("设置已更新","您的设置已成功保存")},onSettingUpdate(s,e){this.showMessage("设置已更新",`${s} 已保存为 ${e}`)}}},ji={class:"settings-page"},Ni={class:"mt-4"};function Mi(s,e,a,u,i,o){const r=Gt,h=Ht,d=Qt,b=Ft,D=Kt,E=Ot,G=Lt,J=Bt,Y=Pt,ae=Mt,re=Nt,le=jt,X=Ut,ge=q,C=kn("developer-settings-card"),g=Tt,_=It,M=gt;return m(),A("div",ji,[t(In,{elevation:"1"},{prepend:n(()=>[t(f,{icon:"mdi-arrow-left",variant:"text",onClick:e[0]||(e[0]=j=>s.$router.push("/"))}),t(f,{icon:"mdi-menu",variant:"text",onClick:e[1]||(e[1]=j=>i.drawer=!i.drawer)})]),default:n(()=>[t(An,{class:"text-h6"},{default:n(()=>[...e[5]||(e[5]=[l("设置",-1)])]),_:1})]),_:1}),t(Ct,{fluid:""},{default:n(()=>[t(sn,{modelValue:i.drawer,"onUpdate:modelValue":e[2]||(e[2]=j=>i.drawer=j),permanent:!u.isMobile,temporary:u.isMobile},{default:n(()=>[t(Q,null,{default:n(()=>[(m(!0),A(te,null,me(i.settingsTabs,j=>(m(),w(T,{key:j.value,active:i.settingsTab===j.value,color:i.settingsTab===j.value?"primary":"default","prepend-icon":j.icon,class:"rounded-e-xl",onClick:ue=>i.settingsTab=j.value},{default:n(()=>[t(R,null,{default:n(()=>[l(v(j.title),1)]),_:2},1024)]),_:2},1032,["active","color","prepend-icon","onClick"]))),128))]),_:1})]),_:1},8,["modelValue","permanent","temporary"]),t(Dn,{modelValue:i.settingsTab,"onUpdate:modelValue":e[4]||(e[4]=j=>i.settingsTab=j),direction:"vertical",style:{width:"100%"}},{default:n(()=>[t(fe,{value:"index"},{default:n(()=>[t(B,{border:"",class:"service-card gradient-right clickable mb-4",color:"primary",elevation:"8",hover:"",rounded:"xl",variant:"tonal",onClick:o.openClassworksKV},{default:n(()=>[t(ze,null,{default:n(()=>[...e[6]||(e[6]=[p("div",{class:"card-title"},[p("div",null,[p("div",{class:"text-h6"},"在寻找 Classworks KV ?"),p("div",{class:"text-caption text-medium-emphasis"}," 文档形键值数据库 ")])],-1)])]),_:1}),t(N,null,{default:n(()=>[p("div",Ni,[t(f,{"append-icon":"mdi-arrow-right",class:"text-none",rounded:"xl",variant:"text",onClick:o.openClassworksKV},{default:n(()=>[...e[7]||(e[7]=[l(" 打开 Classworks KV ",-1)])]),_:1},8,["onClick"])])]),_:1})]),_:1},8,["onClick"]),t(B,{border:"",class:"rounded-xl mb-4",subtitle:"设置",title:"Classworks"},{default:n(()=>[t(N,null,{default:n(()=>[t(ee,{class:"rounded-xl",color:"error",icon:"mdi-alert-circle",variant:"tonal"},{default:n(()=>[...e[8]||(e[8]=[l("Classworks 是开源免费的软件,官方没有提供任何形式的付费支持服务,源代码仓库地址在 ",-1),p("a",{href:"https://github.com/ZeroCatDev/Classworks",target:"_blank"},"https://github.com/ZeroCatDev/Classworks",-1),l("。如果您通过有偿协助等付费方式取得本应用,在遇到问题时请在与卖家约定的服务框架下,优先向卖家求助。如果卖家没有提供您预期的服务,请退款或通过其它形式积极维护您的合法权益。 ",-1)])]),_:1}),t(ee,{class:"mt-4 rounded-xl",color:"info",icon:"mdi-information",variant:"tonal"},{default:n(()=>[...e[9]||(e[9]=[l("请不要使用浏览器清除缓存功能,否则会导致配置丢失。 ",-1),p("del",null,"恶意的操作可能导致您受到贵校教师的处理 ",-1)])]),_:1}),t(ee,{class:"mt-4 rounded-xl",color:"warning",icon:"mdi-information",variant:"tonal"},{default:n(()=>[e[11]||(e[11]=p("p",null," 请不要使用包括但不限于360极速浏览器、360安全浏览器、夸克浏览器、QQ浏览器等浏览器使用 Classworks ,这些浏览器过时且存在严重的一致性问题。在Windows上,使用新版 Microsoft Edge 浏览器是最推荐的选择。 ",-1)),e[12]||(e[12]=p("p",{style:{color:"#666"}}," 上述浏览器商标为其所属公司所有,Classworks™ 与上述浏览器所属公司无竞争关系。 ",-1)),e[13]||(e[13]=p("br",null,null,-1)),t(f,{"append-icon":"mdi-open-in-new",class:"text-none rounded-xl",color:"warning",href:"https://www.microsoft.com/zh-cn/windows/microsoft-edge",target:"_blank",variant:"tonal"},{default:n(()=>[...e[10]||(e[10]=[l("下载 Microsoft Edge(微软边缘浏览器) ",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),t(r)]),_:1}),t(fe,{value:"server"},{default:n(()=>[t(h,{loading:i.loading.server,border:"",onSaved:o.onSettingsSaved},null,8,["loading","onSaved"]),t(d,{border:"",class:"mt-4"}),t(b,{border:"",class:"mt-4"})]),_:1}),t(fe,{value:"student"},{default:n(()=>[t(D,{"is-mobile":u.isMobile,border:""},null,8,["is-mobile"])]),_:1}),t(fe,{value:"share"},{default:n(()=>[t(E,{border:"",class:"mt-4"})]),_:1}),t(fe,{value:"refresh"},{default:n(()=>[t(G,{loading:i.loading.refresh,border:"",onSaved:o.onSettingsSaved},null,8,["loading","onSaved"])]),_:1}),t(fe,{value:"edit"},{default:n(()=>[t(J,{loading:i.loading.edit,border:"",onSaved:o.onSettingsSaved},null,8,["loading","onSaved"])]),_:1}),t(fe,{value:"display"},{default:n(()=>[t(Y,{loading:i.loading.display,border:"",onSaved:o.onSettingsSaved},null,8,["loading","onSaved"])]),_:1}),t(fe,{value:"theme"},{default:n(()=>[t(ae,{loading:i.loading.theme,border:"",onSaved:o.onSettingsSaved},null,8,["loading","onSaved"])]),_:1}),t(fe,{value:"randomPicker"},{default:n(()=>[t(re,{"is-mobile":u.isMobile,border:""},null,8,["is-mobile"])]),_:1}),t(fe,{value:"subject"},{default:n(()=>[t(le,{border:""}),e[14]||(e[14]=p("br",null,null,-1)),t(X,{border:""})]),_:1}),t(fe,{value:"developer"},{default:n(()=>[t(ge,{border:"",icon:"mdi-developer-board",title:"开发者选项"},{default:n(()=>[t(Q,null,{default:n(()=>[t(T,null,{prepend:n(()=>[t(y,{class:"mr-3",icon:"mdi-code-tags"})]),append:n(()=>[t(kt,{modelValue:i.settings.developer.enabled,"onUpdate:modelValue":e[3]||(e[3]=j=>i.settings.developer.enabled=j),density:"comfortable","hide-details":"",onChange:o.handleDeveloperChange},null,8,["modelValue","onChange"])]),default:n(()=>[t(R,null,{default:n(()=>[...e[15]||(e[15]=[l("启用开发者选项",-1)])]),_:1}),t(ie,null,{default:n(()=>[...e[16]||(e[16]=[l("启用后可以查看和修改开发者设置 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),t(C,{loading:i.loading.developer,border:"",onSaved:o.onSettingsSaved},null,8,["loading","onSaved"]),i.settings.developer.enabled?(m(),w(B,{key:0,border:"",class:"mt-4 rounded-lg"},{default:n(()=>[t(F,{class:"d-flex align-center"},{default:n(()=>[t(y,{class:"mr-2",icon:"mdi-cog-outline"}),e[17]||(e[17]=l(" 所有设置 ",-1))]),_:1}),t(Ne,null,{default:n(()=>[...e[18]||(e[18]=[l(" 浏览和修改所有可用设置",-1)])]),_:1}),t(N,null,{default:n(()=>[t(g,{onUpdate:o.onSettingUpdate},null,8,["onUpdate"])]),_:1})]),_:1})):S("",!0),i.settings.developer.enabled?(m(),w(ce,{key:1,cols:"12"})):S("",!0)]),_:1}),t(fe,{value:"about"},{default:n(()=>[t(r),t(_,{border:"",class:"mt-4"})]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(M,{ref:"messageLog"},null,512)])}const eo=Z(Ui,[["render",Mi]]);export{eo as default}; diff --git a/assets/settings-DUBpRBL_.css b/assets/settings-ilxddEFL.css similarity index 93% rename from assets/settings-DUBpRBL_.css rename to assets/settings-ilxddEFL.css index efa7124..e3c0705 100644 --- a/assets/settings-DUBpRBL_.css +++ b/assets/settings-ilxddEFL.css @@ -1 +1 @@ -.settings-card[data-v-9c035df1]{height:100%}.source-text[data-v-a6a55e27],.contributor[data-v-a6a55e27]{opacity:.7;font-size:.9em}.fade-enter-active[data-v-a6a55e27],.fade-leave-active[data-v-a6a55e27]{transition:opacity .3s ease}.fade-enter-from[data-v-a6a55e27],.fade-leave-to[data-v-a6a55e27]{opacity:0}.setting-item[data-v-08b49b47]{border-radius:8px;transition:background-color .2s}.setting-text-field[data-v-08b49b47],.setting-select[data-v-08b49b47],.setting-number-field[data-v-08b49b47]{min-width:180px;border-radius:6px}.text-wrap[data-v-08b49b47]{white-space:normal;overflow-wrap:break-word;word-break:break-word}@media (max-width: 600px){.setting-item[data-v-08b49b47]{flex-wrap:wrap}}.settings-explorer[data-v-4d032f99]{padding:8px 0}.settings-json[data-v-4d032f99]{background-color:#0000000d;padding:12px;border-radius:4px;overflow-x:auto;font-family:monospace;white-space:pre-wrap;max-height:300px;overflow-y:auto}.v-theme--dark .settings-json[data-v-4d032f99]{background-color:#ffffff0d}.setting-group[data-v-9af32ae4]{margin-bottom:16px}.v-card-text[data-v-67769fa2]{padding-top:0}.v-list-item[data-v-f87674cf]{border-bottom:1px solid rgba(0,0,0,.12)}.v-list-item[data-v-f87674cf]:last-child{border-bottom:none}.warning-container[data-v-0f36b655]{display:inline-block;margin-right:8px}.warning-chip[data-v-0f36b655]{animation:fade-in-0f36b655 .3s ease}@keyframes fade-in-0f36b655{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse-warning{0%,to{transform:scale(1)}50%{transform:scale(1.002)}}@keyframes pulse-border{0%,to{opacity:1}50%{opacity:.5}}.student-card[data-v-7e220985]{transition:all .2s ease}.action-buttons[data-v-7e220985]{opacity:0;transition:opacity .2s ease}.unsaved-changes[data-v-7e220985]{border-color:rgb(var(--v-theme-warning))!important}.font-monospace[data-v-fdb88c96]{font-family:Consolas,Monaco,Courier New,monospace}code[data-v-fdb88c96]{background-color:#0000000d;padding:2px 4px;border-radius:4px;font-size:.875em}.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.settings-page .v-card{transition:transform .2s,box-shadow .2s}.settings-page .v-card:hover{box-shadow:0 4px 8px #0000001a!important} +.settings-card[data-v-9c035df1]{height:100%}.source-text[data-v-a6a55e27],.contributor[data-v-a6a55e27]{opacity:.7;font-size:.9em}.fade-enter-active[data-v-a6a55e27],.fade-leave-active[data-v-a6a55e27]{transition:opacity .3s ease}.fade-enter-from[data-v-a6a55e27],.fade-leave-to[data-v-a6a55e27]{opacity:0}.setting-item[data-v-08b49b47]{border-radius:8px;transition:background-color .2s}.setting-text-field[data-v-08b49b47],.setting-select[data-v-08b49b47],.setting-number-field[data-v-08b49b47]{min-width:180px;border-radius:6px}.text-wrap[data-v-08b49b47]{white-space:normal;overflow-wrap:break-word;word-break:break-word}@media (max-width: 600px){.setting-item[data-v-08b49b47]{flex-wrap:wrap}}.settings-explorer[data-v-4d032f99]{padding:8px 0}.settings-json[data-v-4d032f99]{background-color:#0000000d;padding:12px;border-radius:4px;overflow-x:auto;font-family:monospace;white-space:pre-wrap;max-height:300px;overflow-y:auto}.v-theme--dark .settings-json[data-v-4d032f99]{background-color:#ffffff0d}.setting-group[data-v-9af32ae4]{margin-bottom:16px}.v-card-text[data-v-67769fa2]{padding-top:0}.v-list-item[data-v-f87674cf]{border-bottom:1px solid rgba(0,0,0,.12)}.v-list-item[data-v-f87674cf]:last-child{border-bottom:none}.warning-container[data-v-0f36b655]{display:inline-block;margin-right:8px}.warning-chip[data-v-0f36b655]{animation:fade-in-0f36b655 .3s ease}@keyframes fade-in-0f36b655{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse-warning{0%,to{transform:scale(1)}50%{transform:scale(1.002)}}@keyframes pulse-border{0%,to{opacity:1}50%{opacity:.5}}.student-card[data-v-7e220985]{transition:all .2s ease}.action-buttons[data-v-7e220985]{opacity:0;transition:opacity .2s ease}.unsaved-changes[data-v-7e220985]{border-color:rgb(var(--v-theme-warning))!important}.font-monospace[data-v-67879974]{font-family:Consolas,Monaco,Courier New,monospace}code[data-v-67879974]{background-color:#0000000d;padding:2px 4px;border-radius:4px;font-size:.875em}.student-card{transition:all .2s cubic-bezier(.4,0,.2,1)}.bg-primary-subtle{background-color:rgb(var(--v-theme-primary),.05)}.action-buttons{transition:opacity .2s ease;opacity:0}.gap-1{gap:4px}.gap-2{gap:8px}.student-card .v-text-field{margin:0;padding:0}@media (max-width: 600px){.v-container{padding:12px}.v-col{padding:8px}}.student-card.mobile{margin-bottom:8px}.student-card.mobile .v-btn{min-width:40px;min-height:40px}.student-card.mobile .v-text-field{font-size:16px}@media (max-width: 600px){.v-col{padding:6px!important}.student-card{margin-bottom:4px}.action-buttons{opacity:1}}.student-card{-webkit-tap-highlight-color:transparent}.student-card:active{background-color:rgb(var(--v-theme-primary),.05)}.settings-page .v-card{transition:transform .2s,box-shadow .2s}.settings-page .v-card:hover{box-shadow:0 4px 8px #0000001a!important} diff --git a/assets/socket-debugger-hynQ1PJ3.js b/assets/socket-debugger-C9XJXx_m.js similarity index 59% rename from assets/socket-debugger-hynQ1PJ3.js rename to assets/socket-debugger-C9XJXx_m.js index ba5a527..86f098e 100644 --- a/assets/socket-debugger-hynQ1PJ3.js +++ b/assets/socket-debugger-C9XJXx_m.js @@ -1,4 +1,4 @@ -import{b as Ce,g as T,d as se}from"./socketClient-0mLOmNl0.js";import{_ as Se,$ as c,a5 as re,aj as we,aU as Le,j as q,o as x,w as t,d as n,l as g,q as D,t as o,v as L,x as ue,C as u,z as k,i as p,P as W,Q as y,ap as _,aq as V,K as de,y as C,B as G,A as z,F as ie,G as ce,e as $e,a7 as Re}from"./index-BBVdlVQD.js";import{V as X,a as m}from"./VRow-IosHPrmj.js";import{V as Y}from"./VChip-BmBm7zXx.js";import{V as De}from"./VTextField-C-Z2P35g.js";import{V as Te}from"./VTextarea-mXVeQ__0.js";import{V as Ue}from"./VSwitch-CCxGT9ZY.js";import{V as Ie}from"./VAlert-BYrhoEr8.js";import{V as Be}from"./VContainer-OExp5t5c.js";import"./VSelectionControl-D-h-HCLE.js";const ze={class:"d-flex flex-wrap gap-2"},Me={class:"text-h4"},Pe={class:"text-h4"},Ne={class:"text-h4"},Ee={class:"text-h4"},Oe={class:"log-time"},je={class:"log-type"},Ae={class:"log-message"},Fe={key:0,class:"log-data"},Je={key:0,class:"text-center text-disabled pa-8"},qe={__name:"socket-debugger",setup(Ge){const fe=c(Ce()),$=c(!1),H=c(""),S=c(""),Z=c(0),h=c(""),M=c(null),K=c("00:00:00"),Q=c(!0),d=c({eventsReceived:0,eventsSent:0,errors:0,reconnects:0,avgLatency:0,lastPing:0,bytesSent:0,bytesReceived:0}),R=c([]),P=c(new Set),N=c(null),b=c({name:"",data:"{}"}),v=c(null),ee=re(()=>$.value?{text:"已连接",color:"success"}:{text:"未连接",color:"error"}),me=re(()=>S.value==="websocket"?"success":S.value==="polling"?"warning":"grey");function s(l,e,a=null){const f=new Date().toLocaleTimeString("zh-CN",{hour12:!1});R.value.push({type:l,message:e,data:a,time:f}),R.value.length>500&&R.value.shift(),Q.value&&Re(()=>{N.value&&(N.value.scrollTop=N.value.scrollHeight)})}function pe(){R.value=[],s("info","日志已清空")}function te(l){if(l===0)return"0 B";const e=1024,a=["B","KB","MB","GB"],i=Math.floor(Math.log(l)/Math.log(e));return Math.round(l/Math.pow(e,i)*100)/100+" "+a[i]}let w=null;function ve(){if(M.value){const e=Date.now()-M.value,a=Math.floor(e/36e5),i=Math.floor(e%36e5/6e4),f=Math.floor(e%6e4/1e3);K.value=`${String(a).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(f).padStart(2,"0")}`}else K.value="00:00:00"}let U=null;function ne(){var I;const l=T();U&&le();const e=()=>{var r,B,ae;$.value=!0,H.value=l.id,S.value=((ae=(B=(r=l.io)==null?void 0:r.engine)==null?void 0:B.transport)==null?void 0:ae.name)||"unknown",M.value=Date.now(),h.value=new Date().toLocaleString("zh-CN"),s("success","已连接到服务器",{socketId:l.id,transport:S.value}),w||(w=setInterval(ve,1e3))},a=r=>{$.value=!1,H.value="",S.value="",M.value=null,s("warning","连接已断开",{reason:r}),w&&(clearInterval(w),w=null)},i=r=>{d.value.errors++,s("error","连接错误",{message:r.message,type:r.type})},f=r=>{d.value.reconnects++,Z.value++,s("info",`重连成功 (尝试 #${r})`)},E=r=>{s("info",`正在尝试重连 #${r}...`)},O=r=>{d.value.errors++,s("error","重连失败",{message:r.message})},j=()=>{d.value.errors++,s("error","重连彻底失败")},A=()=>{s("debug","Ping 发送")},F=r=>{d.value.lastPing=r;const B=d.value.avgLatency;d.value.avgLatency=B===0?r:Math.round(B*.8+r*.2),s("debug",`Pong 接收 (${r}ms)`)},J=r=>{S.value=r.name,s("success",`传输已升级到 ${r.name}`)};U={socket:l,onConnect:e,onDisconnect:a,onConnectError:i,onReconnect:f,onReconnectAttempt:E,onReconnectError:O,onReconnectFailed:j,onPing:A,onPong:F,onUpgrade:J},l.on("connect",e),l.on("disconnect",a),l.on("connect_error",i),l.io.on("reconnect",f),l.io.on("reconnect_attempt",E),l.io.on("reconnect_error",O),l.io.on("reconnect_failed",j),l.io.on("ping",A),l.io.on("pong",F),(I=l.io)!=null&&I.engine&&l.io.engine.on("upgrade",J),P.value=new Set(Object.keys(l._callbacks||{}).map(r=>r.replace("$",""))),l.connected&&e()}function le(){var I;if(!U)return;const{socket:l,onConnect:e,onDisconnect:a,onConnectError:i,onReconnect:f,onReconnectAttempt:E,onReconnectError:O,onReconnectFailed:j,onPing:A,onPong:F,onUpgrade:J}=U;try{l.off("connect",e),l.off("disconnect",a),l.off("connect_error",i),l.io.off("reconnect",f),l.io.off("reconnect_attempt",E),l.io.off("reconnect_error",O),l.io.off("reconnect_failed",j),l.io.off("ping",A),l.io.off("pong",F),(I=l.io)!=null&&I.engine&&l.io.engine.off("upgrade",J)}catch{}U=null}function oe(){try{T().connect(),s("info","正在连接...")}catch(l){s("error","连接失败",{message:l.message})}}function ge(){try{se(),s("info","已手动断开连接")}catch(l){s("error","断开连接失败",{message:l.message})}}function ye(){try{se(),setTimeout(()=>{ne(),oe()},100)}catch(l){s("error","重连失败",{message:l.message})}}function _e(){try{const l=T();let e;try{e=JSON.parse(b.value.data)}catch{e=b.value.data}l.emit(b.value.name,e),d.value.eventsSent++,d.value.bytesSent+=JSON.stringify(e).length,s("info",`已发送事件: ${b.value.name}`,e)}catch(l){s("error","发送事件失败",{message:l.message})}}function ke(){v.value=null,s("info","开始连接测试...");const l=T(),e=setTimeout(()=>{v.value={type:"error",message:"连接测试超时 (20秒)"},s("error","连接测试超时")},2e4);l.connected?(clearTimeout(e),v.value={type:"success",message:`连接正常! Socket ID: ${l.id}, 传输: ${S.value}`},s("success","连接测试通过")):(l.once("connect",()=>{clearTimeout(e),v.value={type:"success",message:"连接测试成功!"},s("success","连接测试通过")}),l.once("connect_error",a=>{clearTimeout(e),v.value={type:"error",message:`连接失败: ${a.message}`},s("error","连接测试失败",{message:a.message})}))}function be(){const l=T(),e=Date.now();l.emit("ping",()=>{const a=Date.now()-e;v.value={type:"info",message:`测量延迟: ${a}ms`},s("info",`延迟测量结果: ${a}ms`)})}function xe(){s("warning","模拟错误场景..."),T().emit("nonexistent-event-test",{test:!0}),v.value={type:"info",message:"已发送测试事件到服务器,请检查服务器响应"}}function Ve(){const l=R.value.map(f=>`[${f.time}] [${f.type.toUpperCase()}] ${f.message}${f.data?` +import{b as Ce,g as T,d as se}from"./socketClient-D4dHF2XE.js";import{_ as Se,$ as c,a5 as re,aj as we,aS as Le,j as q,o as x,w as t,d as n,l as g,q as D,t as o,v as L,x as ue,C as u,z as k,i as p,P as W,Q as y,ap as _,aq as V,K as de,y as C,B as G,A as z,F as ie,G as ce,e as $e,a7 as Re}from"./index-GyS8nTIx.js";import{V as X,a as m}from"./VRow-DtMdTMSo.js";import{V as Y}from"./VChip-DsTHqUw0.js";import{V as De}from"./VTextField-xLiM0gib.js";import{V as Te}from"./VTextarea-BeSb8uK6.js";import{V as Ie}from"./VSwitch-COsJOhk2.js";import{V as Ue}from"./VAlert-CB2ovGuT.js";import{V as Be}from"./VContainer-B1JGY98V.js";const ze={class:"d-flex flex-wrap gap-2"},Me={class:"text-h4"},Pe={class:"text-h4"},Ne={class:"text-h4"},Ee={class:"text-h4"},Oe={class:"log-time"},je={class:"log-type"},Ae={class:"log-message"},Fe={key:0,class:"log-data"},Je={key:0,class:"text-center text-disabled pa-8"},qe={__name:"socket-debugger",setup(Ge){const fe=c(Ce()),$=c(!1),H=c(""),S=c(""),Z=c(0),h=c(""),M=c(null),K=c("00:00:00"),Q=c(!0),d=c({eventsReceived:0,eventsSent:0,errors:0,reconnects:0,avgLatency:0,lastPing:0,bytesSent:0,bytesReceived:0}),R=c([]),P=c(new Set),N=c(null),b=c({name:"",data:"{}"}),v=c(null),ee=re(()=>$.value?{text:"已连接",color:"success"}:{text:"未连接",color:"error"}),me=re(()=>S.value==="websocket"?"success":S.value==="polling"?"warning":"grey");function s(l,e,a=null){const f=new Date().toLocaleTimeString("zh-CN",{hour12:!1});R.value.push({type:l,message:e,data:a,time:f}),R.value.length>500&&R.value.shift(),Q.value&&Re(()=>{N.value&&(N.value.scrollTop=N.value.scrollHeight)})}function pe(){R.value=[],s("info","日志已清空")}function te(l){if(l===0)return"0 B";const e=1024,a=["B","KB","MB","GB"],i=Math.floor(Math.log(l)/Math.log(e));return Math.round(l/Math.pow(e,i)*100)/100+" "+a[i]}let w=null;function ve(){if(M.value){const e=Date.now()-M.value,a=Math.floor(e/36e5),i=Math.floor(e%36e5/6e4),f=Math.floor(e%6e4/1e3);K.value=`${String(a).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(f).padStart(2,"0")}`}else K.value="00:00:00"}let I=null;function ne(){var U;const l=T();I&&le();const e=()=>{var r,B,ae;$.value=!0,H.value=l.id,S.value=((ae=(B=(r=l.io)==null?void 0:r.engine)==null?void 0:B.transport)==null?void 0:ae.name)||"unknown",M.value=Date.now(),h.value=new Date().toLocaleString("zh-CN"),s("success","已连接到服务器",{socketId:l.id,transport:S.value}),w||(w=setInterval(ve,1e3))},a=r=>{$.value=!1,H.value="",S.value="",M.value=null,s("warning","连接已断开",{reason:r}),w&&(clearInterval(w),w=null)},i=r=>{d.value.errors++,s("error","连接错误",{message:r.message,type:r.type})},f=r=>{d.value.reconnects++,Z.value++,s("info",`重连成功 (尝试 #${r})`)},E=r=>{s("info",`正在尝试重连 #${r}...`)},O=r=>{d.value.errors++,s("error","重连失败",{message:r.message})},j=()=>{d.value.errors++,s("error","重连彻底失败")},A=()=>{s("debug","Ping 发送")},F=r=>{d.value.lastPing=r;const B=d.value.avgLatency;d.value.avgLatency=B===0?r:Math.round(B*.8+r*.2),s("debug",`Pong 接收 (${r}ms)`)},J=r=>{S.value=r.name,s("success",`传输已升级到 ${r.name}`)};I={socket:l,onConnect:e,onDisconnect:a,onConnectError:i,onReconnect:f,onReconnectAttempt:E,onReconnectError:O,onReconnectFailed:j,onPing:A,onPong:F,onUpgrade:J},l.on("connect",e),l.on("disconnect",a),l.on("connect_error",i),l.io.on("reconnect",f),l.io.on("reconnect_attempt",E),l.io.on("reconnect_error",O),l.io.on("reconnect_failed",j),l.io.on("ping",A),l.io.on("pong",F),(U=l.io)!=null&&U.engine&&l.io.engine.on("upgrade",J),P.value=new Set(Object.keys(l._callbacks||{}).map(r=>r.replace("$",""))),l.connected&&e()}function le(){var U;if(!I)return;const{socket:l,onConnect:e,onDisconnect:a,onConnectError:i,onReconnect:f,onReconnectAttempt:E,onReconnectError:O,onReconnectFailed:j,onPing:A,onPong:F,onUpgrade:J}=I;try{l.off("connect",e),l.off("disconnect",a),l.off("connect_error",i),l.io.off("reconnect",f),l.io.off("reconnect_attempt",E),l.io.off("reconnect_error",O),l.io.off("reconnect_failed",j),l.io.off("ping",A),l.io.off("pong",F),(U=l.io)!=null&&U.engine&&l.io.engine.off("upgrade",J)}catch{}I=null}function oe(){try{T().connect(),s("info","正在连接...")}catch(l){s("error","连接失败",{message:l.message})}}function ge(){try{se(),s("info","已手动断开连接")}catch(l){s("error","断开连接失败",{message:l.message})}}function ye(){try{se(),setTimeout(()=>{ne(),oe()},100)}catch(l){s("error","重连失败",{message:l.message})}}function _e(){try{const l=T();let e;try{e=JSON.parse(b.value.data)}catch{e=b.value.data}l.emit(b.value.name,e),d.value.eventsSent++,d.value.bytesSent+=JSON.stringify(e).length,s("info",`已发送事件: ${b.value.name}`,e)}catch(l){s("error","发送事件失败",{message:l.message})}}function ke(){v.value=null,s("info","开始连接测试...");const l=T(),e=setTimeout(()=>{v.value={type:"error",message:"连接测试超时 (20秒)"},s("error","连接测试超时")},2e4);l.connected?(clearTimeout(e),v.value={type:"success",message:`连接正常! Socket ID: ${l.id}, 传输: ${S.value}`},s("success","连接测试通过")):(l.once("connect",()=>{clearTimeout(e),v.value={type:"success",message:"连接测试成功!"},s("success","连接测试通过")}),l.once("connect_error",a=>{clearTimeout(e),v.value={type:"error",message:`连接失败: ${a.message}`},s("error","连接测试失败",{message:a.message})}))}function be(){const l=T(),e=Date.now();l.emit("ping",()=>{const a=Date.now()-e;v.value={type:"info",message:`测量延迟: ${a}ms`},s("info",`延迟测量结果: ${a}ms`)})}function xe(){s("warning","模拟错误场景..."),T().emit("nonexistent-event-test",{test:!0}),v.value={type:"info",message:"已发送测试事件到服务器,请检查服务器响应"}}function Ve(){const l=R.value.map(f=>`[${f.time}] [${f.type.toUpperCase()}] ${f.message}${f.data?` `+JSON.stringify(f.data,null,2):""}`).join(` -`),e=new Blob([l],{type:"text/plain"}),a=URL.createObjectURL(e),i=document.createElement("a");i.href=a,i.download=`socket-logs-${Date.now()}.txt`,i.click(),URL.revokeObjectURL(a),s("success","日志已导出")}return we(()=>{ne(),s("info","Socket 调试器已初始化")}),Le(()=>{le(),w&&(clearInterval(w),w=null)}),(l,e)=>(x(),q(Be,{fluid:""},{default:t(()=>[n(X,null,{default:t(()=>[n(m,{cols:"12"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,{class:"d-flex align-center"},{default:t(()=>[n(L,{class:"mr-2",color:"primary"},{default:t(()=>[...e[4]||(e[4]=[o("mdi-network",-1)])]),_:1}),e[5]||(e[5]=o(" Socket.IO 连接调试器 ",-1)),n(ue),n(Y,{color:ee.value.color,size:"small"},{default:t(()=>[o(u(ee.value.text),1)]),_:1},8,["color"])]),_:1})]),_:1})]),_:1}),n(m,{cols:"12",md:"6"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,null,{default:t(()=>[...e[6]||(e[6]=[o("连接信息",-1)])]),_:1}),n(k,null,{default:t(()=>[n(W,{density:"compact"},{default:t(()=>[n(y,null,{prepend:t(()=>[n(L,null,{default:t(()=>[...e[7]||(e[7]=[o("mdi-server",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[...e[8]||(e[8]=[o("服务器地址",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(fe.value),1)]),_:1})]),_:1}),n(y,null,{prepend:t(()=>[n(L,null,{default:t(()=>[...e[9]||(e[9]=[o("mdi-identifier",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[...e[10]||(e[10]=[o("Socket ID",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(H.value||"未连接"),1)]),_:1})]),_:1}),n(y,null,{prepend:t(()=>[n(L,null,{default:t(()=>[...e[11]||(e[11]=[o("mdi-transit-connection-variant",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[...e[12]||(e[12]=[o("传输方式",-1)])]),_:1}),n(V,null,{default:t(()=>[n(Y,{size:"x-small",color:me.value},{default:t(()=>[o(u(S.value||"未知"),1)]),_:1},8,["color"])]),_:1})]),_:1}),n(y,null,{prepend:t(()=>[n(L,null,{default:t(()=>[...e[13]||(e[13]=[o("mdi-clock-outline",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[...e[14]||(e[14]=[o("连接时长",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(K.value),1)]),_:1})]),_:1}),n(y,null,{prepend:t(()=>[n(L,null,{default:t(()=>[...e[15]||(e[15]=[o("mdi-refresh",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[...e[16]||(e[16]=[o("重连次数",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(Z.value),1)]),_:1})]),_:1}),n(y,null,{prepend:t(()=>[n(L,null,{default:t(()=>[...e[17]||(e[17]=[o("mdi-calendar-clock",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[...e[18]||(e[18]=[o("上次连接",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(h.value||"从未连接"),1)]),_:1})]),_:1})]),_:1}),n(de,{class:"my-4"}),p("div",ze,[n(C,{color:"primary","prepend-icon":"mdi-connection",disabled:$.value,onClick:oe},{default:t(()=>[...e[19]||(e[19]=[o(" 连接 ",-1)])]),_:1},8,["disabled"]),n(C,{color:"error","prepend-icon":"mdi-connection",disabled:!$.value,onClick:ge},{default:t(()=>[...e[20]||(e[20]=[o(" 断开 ",-1)])]),_:1},8,["disabled"]),n(C,{color:"warning","prepend-icon":"mdi-refresh",onClick:ye},{default:t(()=>[...e[21]||(e[21]=[o(" 重连 ",-1)])]),_:1}),n(C,{color:"info","prepend-icon":"mdi-delete-sweep",onClick:pe},{default:t(()=>[...e[22]||(e[22]=[o(" 清空日志 ",-1)])]),_:1})])]),_:1})]),_:1})]),_:1}),n(m,{cols:"12",md:"6"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,null,{default:t(()=>[...e[23]||(e[23]=[o("统计信息",-1)])]),_:1}),n(k,null,{default:t(()=>[n(X,null,{default:t(()=>[n(m,{cols:"6"},{default:t(()=>[n(g,{variant:"tonal",color:"success"},{default:t(()=>[n(k,{class:"text-center"},{default:t(()=>[p("div",Me,u(d.value.eventsReceived),1),e[24]||(e[24]=p("div",{class:"text-caption"},"接收事件",-1))]),_:1})]),_:1})]),_:1}),n(m,{cols:"6"},{default:t(()=>[n(g,{variant:"tonal",color:"primary"},{default:t(()=>[n(k,{class:"text-center"},{default:t(()=>[p("div",Pe,u(d.value.eventsSent),1),e[25]||(e[25]=p("div",{class:"text-caption"},"发送事件",-1))]),_:1})]),_:1})]),_:1}),n(m,{cols:"6"},{default:t(()=>[n(g,{variant:"tonal",color:"warning"},{default:t(()=>[n(k,{class:"text-center"},{default:t(()=>[p("div",Ne,u(d.value.errors),1),e[26]||(e[26]=p("div",{class:"text-caption"},"错误次数",-1))]),_:1})]),_:1})]),_:1}),n(m,{cols:"6"},{default:t(()=>[n(g,{variant:"tonal",color:"info"},{default:t(()=>[n(k,{class:"text-center"},{default:t(()=>[p("div",Ee,u(d.value.reconnects),1),e[27]||(e[27]=p("div",{class:"text-caption"},"重连次数",-1))]),_:1})]),_:1})]),_:1})]),_:1}),n(de,{class:"my-4"}),n(W,{density:"compact"},{default:t(()=>[n(y,null,{default:t(()=>[n(_,null,{default:t(()=>[...e[28]||(e[28]=[o("平均延迟",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(d.value.avgLatency)+" ms",1)]),_:1})]),_:1}),n(y,null,{default:t(()=>[n(_,null,{default:t(()=>[...e[29]||(e[29]=[o("上次 Ping",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(d.value.lastPing)+" ms",1)]),_:1})]),_:1}),n(y,null,{default:t(()=>[n(_,null,{default:t(()=>[...e[30]||(e[30]=[o("数据传输",-1)])]),_:1}),n(V,null,{default:t(()=>[o(" ↑ "+u(te(d.value.bytesSent))+" / ↓ "+u(te(d.value.bytesReceived)),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),n(m,{cols:"12",md:"6"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,null,{default:t(()=>[e[31]||(e[31]=o(" 事件监控 ",-1)),n(Y,{class:"ml-2",size:"small"},{default:t(()=>[o(u(P.value.size)+" 个监听器",1)]),_:1})]),_:1}),n(k,null,{default:t(()=>[n(W,{density:"compact","max-height":"300",style:{"overflow-y":"auto"}},{default:t(()=>[P.value.size===0?(x(),q(y,{key:0},{default:t(()=>[n(_,{class:"text-center text-disabled"},{default:t(()=>[...e[32]||(e[32]=[o(" 暂无活动监听器 ",-1)])]),_:1})]),_:1})):G("",!0),(x(!0),z(ie,null,ce(Array.from(P.value),a=>(x(),q(y,{key:a},{prepend:t(()=>[n(L,{size:"small"},{default:t(()=>[...e[33]||(e[33]=[o("mdi-eye",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[o(u(a),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1}),n(m,{cols:"12",md:"6"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,null,{default:t(()=>[...e[34]||(e[34]=[o("发送自定义事件",-1)])]),_:1}),n(k,null,{default:t(()=>[n(De,{modelValue:b.value.name,"onUpdate:modelValue":e[0]||(e[0]=a=>b.value.name=a),label:"事件名称","prepend-icon":"mdi-tag",density:"compact",class:"mb-2"},null,8,["modelValue"]),n(Te,{modelValue:b.value.data,"onUpdate:modelValue":e[1]||(e[1]=a=>b.value.data=a),label:"数据 (JSON)","prepend-icon":"mdi-code-json",rows:"4",density:"compact",class:"mb-2"},null,8,["modelValue"]),n(C,{block:"",color:"primary","prepend-icon":"mdi-send",disabled:!$.value||!b.value.name,onClick:_e},{default:t(()=>[...e[35]||(e[35]=[o(" 发送事件 ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1}),n(m,{cols:"12"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,{class:"d-flex align-center"},{default:t(()=>[e[37]||(e[37]=o(" 连接日志 ",-1)),n(ue),n(Ue,{modelValue:Q.value,"onUpdate:modelValue":e[2]||(e[2]=a=>Q.value=a),label:"自动滚动",density:"compact","hide-details":"",class:"mr-4"},null,8,["modelValue"]),n(C,{size:"small",variant:"text","prepend-icon":"mdi-download",onClick:Ve},{default:t(()=>[...e[36]||(e[36]=[o(" 导出 ",-1)])]),_:1})]),_:1}),n(k,null,{default:t(()=>[p("div",{ref_key:"logContainer",ref:N,class:"log-container",style:{height:"400px","overflow-y":"auto",background:"#1e1e1e","border-radius":"4px",padding:"12px"}},[(x(!0),z(ie,null,ce(R.value,(a,i)=>(x(),z("div",{key:i,class:$e(["log-entry",`log-${a.type}`])},[p("span",Oe,"["+u(a.time)+"]",1),p("span",je,"["+u(a.type.toUpperCase())+"]",1),p("span",Ae,u(a.message),1),a.data?(x(),z("pre",Fe,u(a.data),1)):G("",!0)],2))),128)),R.value.length===0?(x(),z("div",Je," 暂无日志 ")):G("",!0)],512)]),_:1})]),_:1})]),_:1}),n(m,{cols:"12"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,null,{default:t(()=>[...e[38]||(e[38]=[o("连接诊断",-1)])]),_:1}),n(k,null,{default:t(()=>[n(X,null,{default:t(()=>[n(m,{cols:"12",md:"4"},{default:t(()=>[n(C,{block:"",color:"info","prepend-icon":"mdi-test-tube",onClick:ke},{default:t(()=>[...e[39]||(e[39]=[o(" 测试连接 ",-1)])]),_:1})]),_:1}),n(m,{cols:"12",md:"4"},{default:t(()=>[n(C,{block:"",color:"success","prepend-icon":"mdi-timer",disabled:!$.value,onClick:be},{default:t(()=>[...e[40]||(e[40]=[o(" 测量延迟 ",-1)])]),_:1},8,["disabled"])]),_:1}),n(m,{cols:"12",md:"4"},{default:t(()=>[n(C,{block:"",color:"warning","prepend-icon":"mdi-alert",onClick:xe},{default:t(()=>[...e[41]||(e[41]=[o(" 模拟错误 ",-1)])]),_:1})]),_:1})]),_:1}),v.value?(x(),q(Ie,{key:0,type:v.value.type,class:"mt-4",closable:"","onClick:close":e[3]||(e[3]=a=>v.value=null)},{default:t(()=>[o(u(v.value.message),1)]),_:1},8,["type"])):G("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}},nt=Se(qe,[["__scopeId","data-v-59f4b407"]]);export{nt as default}; +`),e=new Blob([l],{type:"text/plain"}),a=URL.createObjectURL(e),i=document.createElement("a");i.href=a,i.download=`socket-logs-${Date.now()}.txt`,i.click(),URL.revokeObjectURL(a),s("success","日志已导出")}return we(()=>{ne(),s("info","Socket 调试器已初始化")}),Le(()=>{le(),w&&(clearInterval(w),w=null)}),(l,e)=>(x(),q(Be,{fluid:""},{default:t(()=>[n(X,null,{default:t(()=>[n(m,{cols:"12"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,{class:"d-flex align-center"},{default:t(()=>[n(L,{class:"mr-2",color:"primary"},{default:t(()=>[...e[4]||(e[4]=[o("mdi-network",-1)])]),_:1}),e[5]||(e[5]=o(" Socket.IO 连接调试器 ",-1)),n(ue),n(Y,{color:ee.value.color,size:"small"},{default:t(()=>[o(u(ee.value.text),1)]),_:1},8,["color"])]),_:1})]),_:1})]),_:1}),n(m,{cols:"12",md:"6"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,null,{default:t(()=>[...e[6]||(e[6]=[o("连接信息",-1)])]),_:1}),n(k,null,{default:t(()=>[n(W,{density:"compact"},{default:t(()=>[n(y,null,{prepend:t(()=>[n(L,null,{default:t(()=>[...e[7]||(e[7]=[o("mdi-server",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[...e[8]||(e[8]=[o("服务器地址",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(fe.value),1)]),_:1})]),_:1}),n(y,null,{prepend:t(()=>[n(L,null,{default:t(()=>[...e[9]||(e[9]=[o("mdi-identifier",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[...e[10]||(e[10]=[o("Socket ID",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(H.value||"未连接"),1)]),_:1})]),_:1}),n(y,null,{prepend:t(()=>[n(L,null,{default:t(()=>[...e[11]||(e[11]=[o("mdi-transit-connection-variant",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[...e[12]||(e[12]=[o("传输方式",-1)])]),_:1}),n(V,null,{default:t(()=>[n(Y,{size:"x-small",color:me.value},{default:t(()=>[o(u(S.value||"未知"),1)]),_:1},8,["color"])]),_:1})]),_:1}),n(y,null,{prepend:t(()=>[n(L,null,{default:t(()=>[...e[13]||(e[13]=[o("mdi-clock-outline",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[...e[14]||(e[14]=[o("连接时长",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(K.value),1)]),_:1})]),_:1}),n(y,null,{prepend:t(()=>[n(L,null,{default:t(()=>[...e[15]||(e[15]=[o("mdi-refresh",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[...e[16]||(e[16]=[o("重连次数",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(Z.value),1)]),_:1})]),_:1}),n(y,null,{prepend:t(()=>[n(L,null,{default:t(()=>[...e[17]||(e[17]=[o("mdi-calendar-clock",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[...e[18]||(e[18]=[o("上次连接",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(h.value||"从未连接"),1)]),_:1})]),_:1})]),_:1}),n(de,{class:"my-4"}),p("div",ze,[n(C,{color:"primary","prepend-icon":"mdi-connection",disabled:$.value,onClick:oe},{default:t(()=>[...e[19]||(e[19]=[o(" 连接 ",-1)])]),_:1},8,["disabled"]),n(C,{color:"error","prepend-icon":"mdi-connection",disabled:!$.value,onClick:ge},{default:t(()=>[...e[20]||(e[20]=[o(" 断开 ",-1)])]),_:1},8,["disabled"]),n(C,{color:"warning","prepend-icon":"mdi-refresh",onClick:ye},{default:t(()=>[...e[21]||(e[21]=[o(" 重连 ",-1)])]),_:1}),n(C,{color:"info","prepend-icon":"mdi-delete-sweep",onClick:pe},{default:t(()=>[...e[22]||(e[22]=[o(" 清空日志 ",-1)])]),_:1})])]),_:1})]),_:1})]),_:1}),n(m,{cols:"12",md:"6"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,null,{default:t(()=>[...e[23]||(e[23]=[o("统计信息",-1)])]),_:1}),n(k,null,{default:t(()=>[n(X,null,{default:t(()=>[n(m,{cols:"6"},{default:t(()=>[n(g,{variant:"tonal",color:"success"},{default:t(()=>[n(k,{class:"text-center"},{default:t(()=>[p("div",Me,u(d.value.eventsReceived),1),e[24]||(e[24]=p("div",{class:"text-caption"},"接收事件",-1))]),_:1})]),_:1})]),_:1}),n(m,{cols:"6"},{default:t(()=>[n(g,{variant:"tonal",color:"primary"},{default:t(()=>[n(k,{class:"text-center"},{default:t(()=>[p("div",Pe,u(d.value.eventsSent),1),e[25]||(e[25]=p("div",{class:"text-caption"},"发送事件",-1))]),_:1})]),_:1})]),_:1}),n(m,{cols:"6"},{default:t(()=>[n(g,{variant:"tonal",color:"warning"},{default:t(()=>[n(k,{class:"text-center"},{default:t(()=>[p("div",Ne,u(d.value.errors),1),e[26]||(e[26]=p("div",{class:"text-caption"},"错误次数",-1))]),_:1})]),_:1})]),_:1}),n(m,{cols:"6"},{default:t(()=>[n(g,{variant:"tonal",color:"info"},{default:t(()=>[n(k,{class:"text-center"},{default:t(()=>[p("div",Ee,u(d.value.reconnects),1),e[27]||(e[27]=p("div",{class:"text-caption"},"重连次数",-1))]),_:1})]),_:1})]),_:1})]),_:1}),n(de,{class:"my-4"}),n(W,{density:"compact"},{default:t(()=>[n(y,null,{default:t(()=>[n(_,null,{default:t(()=>[...e[28]||(e[28]=[o("平均延迟",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(d.value.avgLatency)+" ms",1)]),_:1})]),_:1}),n(y,null,{default:t(()=>[n(_,null,{default:t(()=>[...e[29]||(e[29]=[o("上次 Ping",-1)])]),_:1}),n(V,null,{default:t(()=>[o(u(d.value.lastPing)+" ms",1)]),_:1})]),_:1}),n(y,null,{default:t(()=>[n(_,null,{default:t(()=>[...e[30]||(e[30]=[o("数据传输",-1)])]),_:1}),n(V,null,{default:t(()=>[o(" ↑ "+u(te(d.value.bytesSent))+" / ↓ "+u(te(d.value.bytesReceived)),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),n(m,{cols:"12",md:"6"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,null,{default:t(()=>[e[31]||(e[31]=o(" 事件监控 ",-1)),n(Y,{class:"ml-2",size:"small"},{default:t(()=>[o(u(P.value.size)+" 个监听器",1)]),_:1})]),_:1}),n(k,null,{default:t(()=>[n(W,{density:"compact","max-height":"300",style:{"overflow-y":"auto"}},{default:t(()=>[P.value.size===0?(x(),q(y,{key:0},{default:t(()=>[n(_,{class:"text-center text-disabled"},{default:t(()=>[...e[32]||(e[32]=[o(" 暂无活动监听器 ",-1)])]),_:1})]),_:1})):G("",!0),(x(!0),z(ie,null,ce(Array.from(P.value),a=>(x(),q(y,{key:a},{prepend:t(()=>[n(L,{size:"small"},{default:t(()=>[...e[33]||(e[33]=[o("mdi-eye",-1)])]),_:1})]),default:t(()=>[n(_,null,{default:t(()=>[o(u(a),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1}),n(m,{cols:"12",md:"6"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,null,{default:t(()=>[...e[34]||(e[34]=[o("发送自定义事件",-1)])]),_:1}),n(k,null,{default:t(()=>[n(De,{modelValue:b.value.name,"onUpdate:modelValue":e[0]||(e[0]=a=>b.value.name=a),label:"事件名称","prepend-icon":"mdi-tag",density:"compact",class:"mb-2"},null,8,["modelValue"]),n(Te,{modelValue:b.value.data,"onUpdate:modelValue":e[1]||(e[1]=a=>b.value.data=a),label:"数据 (JSON)","prepend-icon":"mdi-code-json",rows:"4",density:"compact",class:"mb-2"},null,8,["modelValue"]),n(C,{block:"",color:"primary","prepend-icon":"mdi-send",disabled:!$.value||!b.value.name,onClick:_e},{default:t(()=>[...e[35]||(e[35]=[o(" 发送事件 ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1}),n(m,{cols:"12"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,{class:"d-flex align-center"},{default:t(()=>[e[37]||(e[37]=o(" 连接日志 ",-1)),n(ue),n(Ie,{modelValue:Q.value,"onUpdate:modelValue":e[2]||(e[2]=a=>Q.value=a),label:"自动滚动",density:"compact","hide-details":"",class:"mr-4"},null,8,["modelValue"]),n(C,{size:"small",variant:"text","prepend-icon":"mdi-download",onClick:Ve},{default:t(()=>[...e[36]||(e[36]=[o(" 导出 ",-1)])]),_:1})]),_:1}),n(k,null,{default:t(()=>[p("div",{ref_key:"logContainer",ref:N,class:"log-container",style:{height:"400px","overflow-y":"auto",background:"#1e1e1e","border-radius":"4px",padding:"12px"}},[(x(!0),z(ie,null,ce(R.value,(a,i)=>(x(),z("div",{key:i,class:$e(["log-entry",`log-${a.type}`])},[p("span",Oe,"["+u(a.time)+"]",1),p("span",je,"["+u(a.type.toUpperCase())+"]",1),p("span",Ae,u(a.message),1),a.data?(x(),z("pre",Fe,u(a.data),1)):G("",!0)],2))),128)),R.value.length===0?(x(),z("div",Je," 暂无日志 ")):G("",!0)],512)]),_:1})]),_:1})]),_:1}),n(m,{cols:"12"},{default:t(()=>[n(g,{border:""},{default:t(()=>[n(D,null,{default:t(()=>[...e[38]||(e[38]=[o("连接诊断",-1)])]),_:1}),n(k,null,{default:t(()=>[n(X,null,{default:t(()=>[n(m,{cols:"12",md:"4"},{default:t(()=>[n(C,{block:"",color:"info","prepend-icon":"mdi-test-tube",onClick:ke},{default:t(()=>[...e[39]||(e[39]=[o(" 测试连接 ",-1)])]),_:1})]),_:1}),n(m,{cols:"12",md:"4"},{default:t(()=>[n(C,{block:"",color:"success","prepend-icon":"mdi-timer",disabled:!$.value,onClick:be},{default:t(()=>[...e[40]||(e[40]=[o(" 测量延迟 ",-1)])]),_:1},8,["disabled"])]),_:1}),n(m,{cols:"12",md:"4"},{default:t(()=>[n(C,{block:"",color:"warning","prepend-icon":"mdi-alert",onClick:xe},{default:t(()=>[...e[41]||(e[41]=[o(" 模拟错误 ",-1)])]),_:1})]),_:1})]),_:1}),v.value?(x(),q(Ue,{key:0,type:v.value.type,class:"mt-4",closable:"","onClick:close":e[3]||(e[3]=a=>v.value=null)},{default:t(()=>[o(u(v.value.message),1)]),_:1},8,["type"])):G("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}},tt=Se(qe,[["__scopeId","data-v-59f4b407"]]);export{tt as default}; diff --git a/assets/socketClient-0mLOmNl0.js b/assets/socketClient-D4dHF2XE.js similarity index 99% rename from assets/socketClient-0mLOmNl0.js rename to assets/socketClient-D4dHF2XE.js index ea225d5..97a0f95 100644 --- a/assets/socketClient-0mLOmNl0.js +++ b/assets/socketClient-D4dHF2XE.js @@ -1 +1 @@ -import{k as pe}from"./index-BBVdlVQD.js";const m=Object.create(null);m.open="0";m.close="1";m.ping="2";m.pong="3";m.message="4";m.upgrade="5";m.noop="6";const O=Object.create(null);Object.keys(m).forEach(n=>{O[m[n]]=n});const U={type:"error",data:"parser error"},ee=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",te=typeof ArrayBuffer=="function",se=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,$=({type:n,data:e},t,s)=>ee&&e instanceof Blob?t?s(e):X(e,s):te&&(e instanceof ArrayBuffer||se(e))?t?s(e):X(new Blob([e]),s):s(m[n]+(e||"")),X=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function Q(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let P;function de(n,e){if(ee&&n.data instanceof Blob)return n.data.arrayBuffer().then(Q).then(e);if(te&&(n.data instanceof ArrayBuffer||se(n.data)))return e(Q(n.data));$(n,!1,t=>{P||(P=new TextEncoder),e(P.encode(t))})}const j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let e=n.length*.75,t=n.length,s,i=0,r,o,c,h;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const g=new ArrayBuffer(e),l=new Uint8Array(g);for(s=0;s>4,l[i++]=(o&15)<<4|c>>2,l[i++]=(c&3)<<6|h&63;return g},me=typeof ArrayBuffer=="function",W=(n,e)=>{if(typeof n!="string")return{type:"message",data:ne(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:ge(n.substring(1),e)}:O[t]?n.length>1?{type:O[t],data:n.substring(1)}:{type:O[t]}:U},ge=(n,e)=>{if(me){const t=ye(n);return ne(t,e)}else return{base64:!0,data:n}},ne=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},ie="",_e=(n,e)=>{const t=n.length,s=new Array(t);let i=0;n.forEach((r,o)=>{$(r,!1,c=>{s[o]=c,++i===t&&e(s.join(ie))})})},be=(n,e)=>{const t=n.split(ie),s=[];for(let i=0;i{const s=t.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const r=new DataView(i.buffer);r.setUint8(0,126),r.setUint16(1,s)}else{i=new Uint8Array(9);const r=new DataView(i.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let q;function A(n){return n.reduce((e,t)=>e+t.length,0)}function R(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let i=0;iMath.pow(2,21)-1){c.enqueue(U);break}i=l*Math.pow(2,32)+g.getUint32(4),s=3}else{if(A(t)n){c.enqueue(U);break}}}})}const re=4;function u(n){if(n)return Ee(n)}function Ee(n){for(var e in u.prototype)n[e]=u.prototype[e];return n}u.prototype.on=u.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};u.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};u.prototype.off=u.prototype.removeListener=u.prototype.removeAllListeners=u.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,i=0;iPromise.resolve().then(e):(e,t)=>t(e,0),p=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),ke="arraybuffer";function oe(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const Te=p.setTimeout,Ae=p.clearTimeout;function N(n,e){e.useNativeTimers?(n.setTimeoutFn=Te.bind(p),n.clearTimeoutFn=Ae.bind(p)):(n.setTimeoutFn=p.setTimeout.bind(p),n.clearTimeoutFn=p.clearTimeout.bind(p))}const Re=1.33;function Oe(n){return typeof n=="string"?Se(n):Math.ceil((n.byteLength||n.size)*Re)}function Se(n){let e=0,t=0;for(let s=0,i=n.length;s=57344?t+=3:(s++,t+=4);return t}function ae(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ce(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function Be(n){let e={},t=n.split("&");for(let s=0,i=t.length;s{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};be(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,_e(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=ae()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let ce=!1;try{ce=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Le=ce;function Pe(){}class qe extends Ne{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,r)=>{this.onError("xhr post error",i,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class y extends u{constructor(e,t,s){super(),this.createRequest=e,N(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=oe(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=y.requestsCount++,y.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Pe,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete y.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}y.requestsCount=0;y.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",G);else if(typeof addEventListener=="function"){const n="onpagehide"in p?"pagehide":"unload";addEventListener(n,G,!1)}}function G(){for(let n in y.requests)y.requests.hasOwnProperty(n)&&y.requests[n].abort()}const De=function(){const n=he({xdomain:!1});return n&&n.responseType!==null}();class Ue extends qe{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=De&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new y(he,this.uri(),e)}}function he(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Le))return new XMLHttpRequest}catch{}if(!e)try{return new p[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ue=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Ie extends Y{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=ue?{}:oe(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.doWrite(s,r)}catch{}i&&x(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=ae()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const D=p.WebSocket||p.MozWebSocket;class Ve extends Ie{createSocket(e,t,s){return ue?new D(e,t,s):t?new D(e,t):new D(e)}doWrite(e,t){this.ws.send(t)}}class Fe extends Y{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=ve(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=we();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const r=()=>{s.read().then(({done:c,value:h})=>{c||(this.onPacket(h),r())}).catch(c=>{})};r();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t{i&&x(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const Me={websocket:Ve,webtransport:Fe,polling:Ue},He=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ke=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function I(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let i=He.exec(n||""),r={},o=14;for(;o--;)r[Ke[o]]=i[o]||"";return t!=-1&&s!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=$e(r,r.path),r.queryKey=We(r,r.query),r}function $e(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function We(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,r){i&&(t[i]=r)}),t}const V=typeof addEventListener=="function"&&typeof removeEventListener=="function",S=[];V&&addEventListener("offline",()=>{S.forEach(n=>n())},!1);class b extends u{constructor(e,t){if(super(),this.binaryType=ke,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=I(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=I(t.host).host);N(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Be(this.opts.query)),V&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},S.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=re,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&b.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",b.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,x(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const r={type:e,data:t,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(b.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),V&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=S.indexOf(this._offlineEventListener);s!==-1&&S.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}b.protocol=re;class Ye extends b{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",_=>{if(!s)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;b.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=t.name,this.emitReserved("upgradeError",v)}}))};function r(){s||(s=!0,l(),t.close(),t=null)}const o=_=>{const v=new Error("probe error: "+_);v.transport=t.name,r(),this.emitReserved("upgradeError",v)};function c(){o("transport closed")}function h(){o("socket closed")}function g(_){t&&_.name!==t.name&&r()}const l=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",c),this.off("close",h),this.off("upgrading",g)};t.once("open",i),t.once("error",o),t.once("close",c),this.once("close",h),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;sMe[i]).filter(i=>!!i)),super(e,s)}};function Je(n,e="",t){let s=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),s=I(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const r=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+r+":"+s.port+e,s.href=s.protocol+"://"+r+(t&&t.port===s.port?"":":"+s.port),s}const Xe=typeof ArrayBuffer=="function",Qe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,fe=Object.prototype.toString,je=typeof Blob=="function"||typeof Blob<"u"&&fe.call(Blob)==="[object BlobConstructor]",Ge=typeof File=="function"||typeof File<"u"&&fe.call(File)==="[object FileConstructor]";function z(n){return Xe&&(n instanceof ArrayBuffer||Qe(n))||je&&n instanceof Blob||Ge&&n instanceof File}function C(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t=0&&n.num{delete this.acks[e];for(let c=0;c{this.io.clearTimeoutFn(r),t.apply(this,c)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,i)=>{const r=(o,c)=>o?i(o):s(c);r.withError=!0,t.push(r),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...r)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...r)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:a.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case a.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case a.EVENT:case a.BINARY_EVENT:this.onevent(e);break;case a.ACK:case a.BINARY_ACK:this.onack(e);break;case a.DISCONNECT:this.ondisconnect();break;case a.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...i){s||(s=!0,t.packet({type:a.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:a.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s0&&n.jitter<=1?n.jitter:0,this.attempts=0}w.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};w.prototype.reset=function(){this.attempts=0};w.prototype.setMin=function(n){this.ms=n};w.prototype.setMax=function(n){this.max=n};w.prototype.setJitter=function(n){this.jitter=n};class H extends u{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,N(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new w({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||rt;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ze(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=d(t,"open",function(){s.onopen(),e&&e()}),r=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),e?e(c):this.maybeReconnectOnOpen()},o=d(t,"error",r);if(this._timeout!==!1){const c=this._timeout,h=this.setTimeoutFn(()=>{i(),r(new Error("timeout")),t.close()},c);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(d(e,"ping",this.onping.bind(this)),d(e,"data",this.ondata.bind(this)),d(e,"error",this.onerror.bind(this)),d(e,"close",this.onclose.bind(this)),d(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){x(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new le(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;se()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const E={};function B(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=Je(n,e.path||"/socket.io"),s=t.source,i=t.id,r=t.path,o=E[i]&&r in E[i].nsps,c=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let h;return c?h=new H(s,e):(E[i]||(E[i]=new H(s,e)),h=E[i]),t.query&&!e.query&&(e.query=t.queryKey),h.socket(t.path,e)}Object.assign(B,{Manager:H,Socket:le,io:B,connect:B});let f=null,K=null;const T=new Set;function at(){var t,s;const n=pe("server.domain"),e=(s=(t=import.meta)==null?void 0:t.env)==null?void 0:s.VITE_SERVER_URL;return n||e||window.location.origin}function L(){const n=at();if(!f||K!==n){if(f){try{f.disconnect()}catch{}f=null}K=n,f=B(n,{transports:["polling","websocket"]}),T.forEach(({event:e,handler:t})=>{f.on(e,t)})}return f}function ft(n,e){return L().on(n,e),T.add({event:n,handler:e}),()=>ct(n,e)}function ct(n,e){if(f){f.off(n,e);for(const t of Array.from(T))t.event===n&&t.handler===e&&T.delete(t)}}function lt(n){const e=L();n&&e.emit("join-token",{token:n})}function pt(n){f&&f.emit("leave-token",{token:n})}function dt(){f&&f.emit("leave-all")}function yt(n){const e=L();return e.on("connect",n),()=>e.off("connect",n)}function mt(n,e=null){L().emit("send-event",{type:n,content:e})}function gt(){if(f){try{f.disconnect()}catch{}f=null,K=null,T.clear()}}export{yt as a,at as b,pt as c,gt as d,L as g,lt as j,dt as l,ft as o,mt as s}; +import{k as pe}from"./index-GyS8nTIx.js";const m=Object.create(null);m.open="0";m.close="1";m.ping="2";m.pong="3";m.message="4";m.upgrade="5";m.noop="6";const O=Object.create(null);Object.keys(m).forEach(n=>{O[m[n]]=n});const U={type:"error",data:"parser error"},ee=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",te=typeof ArrayBuffer=="function",se=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,$=({type:n,data:e},t,s)=>ee&&e instanceof Blob?t?s(e):X(e,s):te&&(e instanceof ArrayBuffer||se(e))?t?s(e):X(new Blob([e]),s):s(m[n]+(e||"")),X=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function Q(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let P;function de(n,e){if(ee&&n.data instanceof Blob)return n.data.arrayBuffer().then(Q).then(e);if(te&&(n.data instanceof ArrayBuffer||se(n.data)))return e(Q(n.data));$(n,!1,t=>{P||(P=new TextEncoder),e(P.encode(t))})}const j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let e=n.length*.75,t=n.length,s,i=0,r,o,c,h;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const g=new ArrayBuffer(e),l=new Uint8Array(g);for(s=0;s>4,l[i++]=(o&15)<<4|c>>2,l[i++]=(c&3)<<6|h&63;return g},me=typeof ArrayBuffer=="function",W=(n,e)=>{if(typeof n!="string")return{type:"message",data:ne(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:ge(n.substring(1),e)}:O[t]?n.length>1?{type:O[t],data:n.substring(1)}:{type:O[t]}:U},ge=(n,e)=>{if(me){const t=ye(n);return ne(t,e)}else return{base64:!0,data:n}},ne=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},ie="",_e=(n,e)=>{const t=n.length,s=new Array(t);let i=0;n.forEach((r,o)=>{$(r,!1,c=>{s[o]=c,++i===t&&e(s.join(ie))})})},be=(n,e)=>{const t=n.split(ie),s=[];for(let i=0;i{const s=t.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const r=new DataView(i.buffer);r.setUint8(0,126),r.setUint16(1,s)}else{i=new Uint8Array(9);const r=new DataView(i.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let q;function A(n){return n.reduce((e,t)=>e+t.length,0)}function R(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let i=0;iMath.pow(2,21)-1){c.enqueue(U);break}i=l*Math.pow(2,32)+g.getUint32(4),s=3}else{if(A(t)n){c.enqueue(U);break}}}})}const re=4;function u(n){if(n)return Ee(n)}function Ee(n){for(var e in u.prototype)n[e]=u.prototype[e];return n}u.prototype.on=u.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};u.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};u.prototype.off=u.prototype.removeListener=u.prototype.removeAllListeners=u.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,i=0;iPromise.resolve().then(e):(e,t)=>t(e,0),p=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),ke="arraybuffer";function oe(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const Te=p.setTimeout,Ae=p.clearTimeout;function N(n,e){e.useNativeTimers?(n.setTimeoutFn=Te.bind(p),n.clearTimeoutFn=Ae.bind(p)):(n.setTimeoutFn=p.setTimeout.bind(p),n.clearTimeoutFn=p.clearTimeout.bind(p))}const Re=1.33;function Oe(n){return typeof n=="string"?Se(n):Math.ceil((n.byteLength||n.size)*Re)}function Se(n){let e=0,t=0;for(let s=0,i=n.length;s=57344?t+=3:(s++,t+=4);return t}function ae(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ce(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function Be(n){let e={},t=n.split("&");for(let s=0,i=t.length;s{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};be(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,_e(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=ae()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let ce=!1;try{ce=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Le=ce;function Pe(){}class qe extends Ne{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,r)=>{this.onError("xhr post error",i,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class y extends u{constructor(e,t,s){super(),this.createRequest=e,N(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=oe(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=y.requestsCount++,y.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Pe,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete y.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}y.requestsCount=0;y.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",G);else if(typeof addEventListener=="function"){const n="onpagehide"in p?"pagehide":"unload";addEventListener(n,G,!1)}}function G(){for(let n in y.requests)y.requests.hasOwnProperty(n)&&y.requests[n].abort()}const De=function(){const n=he({xdomain:!1});return n&&n.responseType!==null}();class Ue extends qe{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=De&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new y(he,this.uri(),e)}}function he(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Le))return new XMLHttpRequest}catch{}if(!e)try{return new p[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ue=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Ie extends Y{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=ue?{}:oe(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.doWrite(s,r)}catch{}i&&x(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=ae()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const D=p.WebSocket||p.MozWebSocket;class Ve extends Ie{createSocket(e,t,s){return ue?new D(e,t,s):t?new D(e,t):new D(e)}doWrite(e,t){this.ws.send(t)}}class Fe extends Y{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=ve(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=we();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const r=()=>{s.read().then(({done:c,value:h})=>{c||(this.onPacket(h),r())}).catch(c=>{})};r();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t{i&&x(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const Me={websocket:Ve,webtransport:Fe,polling:Ue},He=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ke=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function I(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let i=He.exec(n||""),r={},o=14;for(;o--;)r[Ke[o]]=i[o]||"";return t!=-1&&s!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=$e(r,r.path),r.queryKey=We(r,r.query),r}function $e(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function We(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,r){i&&(t[i]=r)}),t}const V=typeof addEventListener=="function"&&typeof removeEventListener=="function",S=[];V&&addEventListener("offline",()=>{S.forEach(n=>n())},!1);class b extends u{constructor(e,t){if(super(),this.binaryType=ke,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=I(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=I(t.host).host);N(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Be(this.opts.query)),V&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},S.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=re,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&b.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",b.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,x(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const r={type:e,data:t,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(b.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),V&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=S.indexOf(this._offlineEventListener);s!==-1&&S.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}b.protocol=re;class Ye extends b{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",_=>{if(!s)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;b.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=t.name,this.emitReserved("upgradeError",v)}}))};function r(){s||(s=!0,l(),t.close(),t=null)}const o=_=>{const v=new Error("probe error: "+_);v.transport=t.name,r(),this.emitReserved("upgradeError",v)};function c(){o("transport closed")}function h(){o("socket closed")}function g(_){t&&_.name!==t.name&&r()}const l=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",c),this.off("close",h),this.off("upgrading",g)};t.once("open",i),t.once("error",o),t.once("close",c),this.once("close",h),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;sMe[i]).filter(i=>!!i)),super(e,s)}};function Je(n,e="",t){let s=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),s=I(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const r=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+r+":"+s.port+e,s.href=s.protocol+"://"+r+(t&&t.port===s.port?"":":"+s.port),s}const Xe=typeof ArrayBuffer=="function",Qe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,fe=Object.prototype.toString,je=typeof Blob=="function"||typeof Blob<"u"&&fe.call(Blob)==="[object BlobConstructor]",Ge=typeof File=="function"||typeof File<"u"&&fe.call(File)==="[object FileConstructor]";function z(n){return Xe&&(n instanceof ArrayBuffer||Qe(n))||je&&n instanceof Blob||Ge&&n instanceof File}function C(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t=0&&n.num{delete this.acks[e];for(let c=0;c{this.io.clearTimeoutFn(r),t.apply(this,c)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,i)=>{const r=(o,c)=>o?i(o):s(c);r.withError=!0,t.push(r),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...r)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...r)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:a.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case a.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case a.EVENT:case a.BINARY_EVENT:this.onevent(e);break;case a.ACK:case a.BINARY_ACK:this.onack(e);break;case a.DISCONNECT:this.ondisconnect();break;case a.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...i){s||(s=!0,t.packet({type:a.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:a.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s0&&n.jitter<=1?n.jitter:0,this.attempts=0}w.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};w.prototype.reset=function(){this.attempts=0};w.prototype.setMin=function(n){this.ms=n};w.prototype.setMax=function(n){this.max=n};w.prototype.setJitter=function(n){this.jitter=n};class H extends u{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,N(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new w({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||rt;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ze(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=d(t,"open",function(){s.onopen(),e&&e()}),r=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),e?e(c):this.maybeReconnectOnOpen()},o=d(t,"error",r);if(this._timeout!==!1){const c=this._timeout,h=this.setTimeoutFn(()=>{i(),r(new Error("timeout")),t.close()},c);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(d(e,"ping",this.onping.bind(this)),d(e,"data",this.ondata.bind(this)),d(e,"error",this.onerror.bind(this)),d(e,"close",this.onclose.bind(this)),d(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){x(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new le(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;se()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const E={};function B(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=Je(n,e.path||"/socket.io"),s=t.source,i=t.id,r=t.path,o=E[i]&&r in E[i].nsps,c=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let h;return c?h=new H(s,e):(E[i]||(E[i]=new H(s,e)),h=E[i]),t.query&&!e.query&&(e.query=t.queryKey),h.socket(t.path,e)}Object.assign(B,{Manager:H,Socket:le,io:B,connect:B});let f=null,K=null;const T=new Set;function at(){var t,s;const n=pe("server.domain"),e=(s=(t=import.meta)==null?void 0:t.env)==null?void 0:s.VITE_SERVER_URL;return n||e||window.location.origin}function L(){const n=at();if(!f||K!==n){if(f){try{f.disconnect()}catch{}f=null}K=n,f=B(n,{transports:["polling","websocket"]}),T.forEach(({event:e,handler:t})=>{f.on(e,t)})}return f}function ft(n,e){return L().on(n,e),T.add({event:n,handler:e}),()=>ct(n,e)}function ct(n,e){if(f){f.off(n,e);for(const t of Array.from(T))t.event===n&&t.handler===e&&T.delete(t)}}function lt(n){const e=L();n&&e.emit("join-token",{token:n})}function pt(n){f&&f.emit("leave-token",{token:n})}function dt(){f&&f.emit("leave-all")}function yt(n){const e=L();return e.on("connect",n),()=>e.off("connect",n)}function mt(n,e=null){L().emit("send-event",{type:n,content:e})}function gt(){if(f){try{f.disconnect()}catch{}f=null,K=null,T.clear()}}export{yt as a,at as b,pt as c,gt as d,L as g,lt as j,dt as l,ft as o,mt as s}; diff --git a/index.html b/index.html index e0b1341..82bba58 100644 --- a/index.html +++ b/index.html @@ -77,7 +77,7 @@ body.app-loaded #app-loader { opacity: 0; pointer-events: none; } - + @@ -88,6 +88,6 @@
- 浙ICP备2024068645号-4 + xICP备x号-4 diff --git a/sw.js b/sw.js index b51bdb9..2fcc10a 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,a={};const s=(s,n)=>(s=new URL(s+".js",n).href,a[s]||new Promise(a=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=a,document.head.appendChild(e)}else e=s,importScripts(s),a()}).then(()=>{let e=a[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e}));self.define=(n,i)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(a[c])return;let r={};const t=e=>s(e,c),f={module:{uri:c},exports:r,require:t};a[c]=Promise.all(n.map(e=>f[e]||t(e))).then(e=>(i(...e),r))}}define(["./workbox-ec372ce3"],function(e){"use strict";importScripts("/sw-cache-manager.js"),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"sw-cache-manager.js",revision:"e1c99eed8d27ad84cb5fc7c56efd223b"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"manifest.webmanifest",revision:"b0b994b429676afc68d0e6f9fe77af13"},{url:"index.html",revision:"d4a745d6a623f371efab840ab2de40f1"},{url:"favicon.ico",revision:"8e3a55390cf66d227f765a6063bb6c31"},{url:"328a0e159cf9b3fb3caacaab9c83bf17.txt",revision:"d06a7b1a4998b04f6c949893fa6b3c3b"},{url:"pwa/image/maskable-icon-512x512.png",revision:"dfa412c4bbe0f716216ac5db7a4c706d"},{url:"pwa/image/pwa-192x192.png",revision:"81802c789e8b735f7f8b181f002932f8"},{url:"pwa/image/pwa-512x512.png",revision:"57cc60501279a6d172b32211b1c67688"},{url:"pwa/image/pwa-64x64.png",revision:"b4ca4c3d8333391f20cddbb3f6cca2df"},{url:"manifest.webmanifest",revision:"b0b994b429676afc68d0e6f9fe77af13"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(({url:e,sameOrigin:a})=>a&&e.pathname.endsWith("/assets/"),new e.CacheFirst({cacheName:"assets-cache",plugins:[new e.ExpirationPlugin({maxEntries:200,maxAgeSeconds:5184e3}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(({url:e,sameOrigin:a})=>a&&e.pathname.startsWith("/pwa/"),new e.StaleWhileRevalidate({cacheName:"pwa-cache",plugins:[new e.ExpirationPlugin({maxEntries:50,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(({url:e,sameOrigin:a})=>{if(!a)return!1;const s=e.pathname;return!(s.includes("/assets/")||s.includes("/pwa/"))},new e.NetworkFirst({cacheName:"other-resources",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:86400}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET")}); +if(!self.define){let e,a={};const s=(s,n)=>(s=new URL(s+".js",n).href,a[s]||new Promise(a=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=a,document.head.appendChild(e)}else e=s,importScripts(s),a()}).then(()=>{let e=a[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e}));self.define=(n,c)=>{const i=e||("document"in self?document.currentScript.src:"")||location.href;if(a[i])return;let r={};const t=e=>s(e,i),o={module:{uri:i},exports:r,require:t};a[i]=Promise.all(n.map(e=>o[e]||t(e))).then(e=>(c(...e),r))}}define(["./workbox-ec372ce3"],function(e){"use strict";importScripts("/sw-cache-manager.js"),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"sw-cache-manager.js",revision:"e1c99eed8d27ad84cb5fc7c56efd223b"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"manifest.webmanifest",revision:"b0b994b429676afc68d0e6f9fe77af13"},{url:"index.html",revision:"2edc370b335fc4c09892ca9e39033baa"},{url:"favicon.ico",revision:"8e3a55390cf66d227f765a6063bb6c31"},{url:"328a0e159cf9b3fb3caacaab9c83bf17.txt",revision:"d06a7b1a4998b04f6c949893fa6b3c3b"},{url:"pwa/image/maskable-icon-512x512.png",revision:"dfa412c4bbe0f716216ac5db7a4c706d"},{url:"pwa/image/pwa-192x192.png",revision:"81802c789e8b735f7f8b181f002932f8"},{url:"pwa/image/pwa-512x512.png",revision:"57cc60501279a6d172b32211b1c67688"},{url:"pwa/image/pwa-64x64.png",revision:"b4ca4c3d8333391f20cddbb3f6cca2df"},{url:"manifest.webmanifest",revision:"b0b994b429676afc68d0e6f9fe77af13"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(({url:e,sameOrigin:a})=>a&&e.pathname.endsWith("/assets/"),new e.CacheFirst({cacheName:"assets-cache",plugins:[new e.ExpirationPlugin({maxEntries:200,maxAgeSeconds:5184e3}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(({url:e,sameOrigin:a})=>a&&e.pathname.startsWith("/pwa/"),new e.StaleWhileRevalidate({cacheName:"pwa-cache",plugins:[new e.ExpirationPlugin({maxEntries:50,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(({url:e,sameOrigin:a})=>{if(!a)return!1;const s=e.pathname;return!(s.includes("/assets/")||s.includes("/pwa/"))},new e.NetworkFirst({cacheName:"other-resources",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:86400}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET")});