1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-07-03 09:49:24 +00:00
Classworks/assets/settings-CpeVfIGW.js

13 lines
94 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{V as Ye,c as Lt,e as At,p as Re,f as Mt,_ as $e,a as Ot,b as jt,d as Fe}from"./VAppBarTitle-BNNBNBux.js";import{_ as Q,aL as Xe,Z as g,an as Ne,aM as Pt,F as L,D as f,k as n,B as z,E as s,J as d,K as N,G as O,A as C,$ as x,V as A,T as Ve,am as Ut,H as oe,aN as ve,ap as Ze,ao as De,I as ye,r as Te,ac as Bt,aO as ze,aP as et,aQ as Rt,g as tt,p as nt,Q as Ft,aR as zt,aS as Qt,aT as Qe,a1 as He,aU as Ht,aV as Kt,j as qt,W as Wt,x as Jt,z as Gt}from"./index-BeUFf4mM.js";import{f as P,g as W,c as J,d as I,e as j,V as Ie,a as fe,i as st}from"./VList-mxXRVYSU.js";import{a as Ee,c as Yt,b as $t}from"./VSwitch-BcDKPi3v.js";import{b as ae,V as it,a as at,g as Xt,h as Zt}from"./VTextarea-iKuPPRV_.js";import{a as re,b as X,i as Le,V as te,l as Ae,g as me,e as R,h as ot,k as rt,f as en,d as tn}from"./VRow-D3TggiFy.js";import{V as nn}from"./VAlert-AXD1S3cp.js";import{V as sn,a as an,b as on,c as rn}from"./VExpansionPanels-BKomIywD.js";import"./ssrBoot-CbpyJ2Nq.js";const 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":{server:"远程服务器",indexedDB:"本地存储"}},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 t=this.settingKey.split(".");return t[t.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=Pt(this.settingKey),!this.definition){console.error(`未找到设置项定义: ${this.settingKey}`);return}if(this.type=this.definition.type,this.localValue=g(this.settingKey),this.type==="string"){if(this.isFontFamily)this.selectOptions=this.fontFamilies,this.hasOptions=!0;else if(this.settingKey in this.displayValueMappings){const t=this.displayValueMappings[this.settingKey];this.selectOptions=Object.entries(t).map(([e,i])=>({title:i,value:e})),this.hasOptions=!0}else if(this.definition.validate){const e=this.definition.validate.toString().match(/\[(.*?)\]/);if(e){const l=e[1].split(",").map(a=>{const u=a.trim().replace(/['"]/g,"");return{title:this.getDisplayValue(u)||u,value:u}});l.length>0&&(this.selectOptions=l,this.hasOptions=!0)}}}if(this.type==="number"&&this.definition.validate){const t=this.definition.validate.toString(),e=t.match(/value\s*>=\s*(\d+)/);e&&(this.minValue=Number(e[1]));const i=t.match(/value\s*<=\s*(\d+)/);i&&(this.maxValue=Number(i[1]));const l=this.maxValue-this.minValue;l>100?this.stepValue=10:l>20?this.stepValue=5:l>10?this.stepValue=2:this.stepValue=1}},getDisplayValue(t){return this.settingKey in this.displayValueMappings&&this.displayValueMappings[this.settingKey][t]||t},updateSetting(t){let e=t;this.type==="boolean"?e=!!t:this.type==="number"&&(e=Number(t),e<this.minValue&&(e=this.minValue),e>this.maxValue&&(e=this.maxValue)),Ne(this.settingKey,e)?this.$emit("update",this.settingKey,e):(this.localValue=g(this.settingKey),this.$emit("error",this.settingKey))},adjustValue(t){if(this.type!=="number")return;const e=this.localValue+t;e>=this.minValue&&e<=this.maxValue&&(this.localValue=e,this.updateSetting(e))},copySettingId(){navigator.clipboard.writeText(this.settingKey).then(()=>{this.showSnackbarMessage("设置ID已复制到剪贴板")}).catch(t=>{console.error("复制失败:",t)})},copySettingValue(){let t="";typeof this.localValue=="object"&&this.localValue!==null?t=JSON.stringify(this.localValue):t=String(this.localValue),navigator.clipboard.writeText(t).then(()=>{this.showSnackbarMessage("设置值已复制到剪贴板")}).catch(e=>{console.error("复制失败:",e)})},resetToDefault(){this.definition&&(Xe(this.settingKey),this.localValue=g(this.settingKey),this.showSnackbarMessage("已重置为默认值"),this.$emit("update",this.settingKey,this.localValue))},showSnackbarMessage(t){this.snackbarText=t,this.showSnackbar=!0}}},ln={class:"text-caption text-grey-darken-1"},dn={class:"d-flex flex-column flex-sm-row align-center"},cn={key:0,class:"me-2"},hn={key:2,class:"d-flex align-center"},wn={key:0,class:"px-4 pb-2 pt-0"};function pn(t,e,i,l,a,u){return f(),L(oe,null,[n(I,{class:"setting-item",disabled:i.disabled},{prepend:s(()=>[n(A,{icon:u.settingIcon},null,8,["icon"])]),append:s(()=>[O("div",dn,[a.type!=="string"||a.hasOptions?(f(),L("div",cn,[a.type==="boolean"?(f(),C(Ee,{key:0,modelValue:a.localValue,"onUpdate:modelValue":[e[0]||(e[0]=r=>a.localValue=r),u.updateSetting],density:"comfortable","hide-details":"",disabled:i.disabled},null,8,["modelValue","disabled","onUpdate:modelValue"])):a.type==="string"&&a.hasOptions?(f(),C(Yt,{key:1,modelValue:a.localValue,"onUpdate:modelValue":[e[1]||(e[1]=r=>a.localValue=r),u.updateSetting],items:a.selectOptions,density:"compact","hide-details":"",disabled:i.disabled,class:"setting-select",variant:"outlined","bg-color":"surface","item-title":"title","item-value":"value"},null,8,["modelValue","items","disabled","onUpdate:modelValue"])):a.type==="number"?(f(),L("div",hn,[n(x,{icon:"mdi-minus",size:"small",variant:"text",disabled:i.disabled||a.localValue<=a.minValue,onClick:e[2]||(e[2]=r=>u.adjustValue(-a.stepValue))},null,8,["disabled"]),n(ae,{modelValue:a.localValue,"onUpdate:modelValue":[e[3]||(e[3]=r=>a.localValue=r),u.updateSetting],modelModifiers:{number:!0},type:"number",density:"compact","hide-details":"",min:a.minValue,max:a.maxValue,step:a.stepValue,disabled:i.disabled,class:"mx-2 setting-number-field",style:{width:"80px"},variant:"outlined","bg-color":"surface"},null,8,["modelValue","min","max","step","disabled","onUpdate:modelValue"]),n(x,{icon:"mdi-plus",size:"small",variant:"text",disabled:i.disabled||a.localValue>=a.maxValue,onClick:e[4]||(e[4]=r=>u.adjustValue(a.stepValue))},null,8,["disabled"])])):z("",!0)])):z("",!0),n(it,{location:"bottom"},{activator:s(({props:r})=>[n(x,Ve({icon:"mdi-dots-vertical",size:"small",variant:"text"},r,{class:"ml-2",disabled:i.disabled}),null,16,["disabled"])]),default:s(()=>[n(J,{density:"compact"},{default:s(()=>[n(I,{onClick:u.copySettingId},{prepend:s(()=>[n(A,{icon:"mdi-key",size:"small"})]),default:s(()=>[n(P,null,{default:s(()=>e[7]||(e[7]=[d("复制设置ID")])),_:1})]),_:1},8,["onClick"]),n(I,{onClick:u.copySettingValue},{prepend:s(()=>[n(A,{icon:"mdi-content-copy",size:"small"})]),default:s(()=>[n(P,null,{default:s(()=>e[8]||(e[8]=[d("复制设置值")])),_:1})]),_:1},8,["onClick"]),n(j),n(I,{onClick:u.resetToDefault,disabled:u.isDefaultValue},{prepend:s(()=>[n(A,{icon:"mdi-restore",size:"small"})]),default:s(()=>[n(P,null,{default:s(()=>e[9]||(e[9]=[d("重置为默认值")])),_:1})]),_:1},8,["onClick","disabled"])]),_:1})]),_:1})])]),default:s(()=>[n(P,{class:"text-wrap"},{default:s(()=>[d(N(u.displayTitle),1)]),_:1}),n(W,{class:"d-flex align-center text-wrap"},{default:s(()=>[O("span",ln,N(i.settingKey),1)]),_:1})]),_:1},8,["disabled"]),a.type==="string"&&!a.hasOptions?(f(),L("div",wn,[n(ae,{modelValue:a.localValue,"onUpdate:modelValue":[e[5]||(e[5]=r=>a.localValue=r),u.updateSetting],density:"compact","hide-details":"",disabled:i.disabled,class:"setting-text-field mt-1",variant:"outlined","bg-color":"surface"},null,8,["modelValue","disabled","onUpdate:modelValue"])])):z("",!0),n(Ut,{modelValue:a.showSnackbar,"onUpdate:modelValue":e[6]||(e[6]=r=>a.showSnackbar=r),timeout:2e3,color:"success",location:"top"},{default:s(()=>[d(N(a.snackbarText),1)]),_:1},8,["modelValue"])],64)}const ue=Q(un,[["render",pn],["__scopeId","data-v-d5f17fb4"]]),fn={name:"SettingsExplorer",components:{SettingItem:ue},data(){return{searchQuery:"",currentSettings:{},unwatchFunction:null}},computed:{isDeveloperMode(){return g("developer.enabled")},allSettings(){var e;const t=[];for(const[i,l]of Object.entries(De))this.searchQuery&&!i.toLowerCase().includes(this.searchQuery.toLowerCase())&&!((e=l.description)!=null&&e.toLowerCase().includes(this.searchQuery.toLowerCase()))||t.push({key:i,...l});return t},formattedSettings(){return JSON.stringify(this.currentSettings,null,2)}},created(){this.updateCurrentSettings(),this.unwatchFunction=Ze(()=>{this.updateCurrentSettings()})},beforeUnmount(){this.unwatchFunction&&this.unwatchFunction()},methods:{updateCurrentSettings(){this.currentSettings=ve()},onSettingUpdate(t,e){this.$emit("update",t,e),this.updateCurrentSettings()},onSettingError(t){this.$emit("error",t)},copySettingsToClipboard(){navigator.clipboard.writeText(JSON.stringify(this.currentSettings)).then(()=>{this.$emit("message",{type:"success",text:"设置已复制到剪贴板"})}).catch(t=>{console.error("复制到剪贴板失败:",t),this.$emit("message",{type:"error",text:"复制到剪贴板失败"})})}}},mn={class:"settings-explorer"},gn={class:"settings-json"};function bn(t,e,i,l,a,u){const r=ue;return f(),L("div",mn,[O("div",null,[n(ae,{modelValue:a.searchQuery,"onUpdate:modelValue":e[0]||(e[0]=c=>a.searchQuery=c),label:"搜索设置","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"comfortable",class:"mb-4"},null,8,["modelValue"]),n(J,null,{default:s(()=>[(f(!0),L(oe,null,ye(u.allSettings,c=>(f(),L("div",{key:c.key},[(f(),C(r,{key:c.key,"setting-key":c.key,disabled:c.requireDeveloper&&!u.isDeveloperMode,onUpdate:u.onSettingUpdate,onError:u.onSettingError},null,8,["setting-key","disabled","onUpdate","onError"])),n(j,{class:"my-2"})]))),128))]),_:1}),n(te,{border:""},{default:s(()=>[n(re,{class:"text-subtitle-1"},{default:s(()=>e[1]||(e[1]=[d("当前配置")])),_:1}),n(X,null,{default:s(()=>[O("pre",gn,N(u.formattedSettings),1)]),_:1}),n(Le,null,{default:s(()=>[n(Ie),n(x,{onClick:u.copySettingsToClipboard},{default:s(()=>[e[3]||(e[3]=d(" 复制到剪贴板 ")),n(A,{right:""},{default:s(()=>e[2]||(e[2]=[d("mdi-content-copy")])),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})])])}const ut=Q(fn,[["render",bn],["__scopeId","data-v-da09fd0e"]]),vn="Classworks",yn="module",xn="0.0.0",Sn={dev:"vite --host",build:"vite build",preview:"vite preview",lint:"eslint . --fix"},kn={"@mdi/font":"7.4.47",axios:"^1.8.4",idb:"^8.0.2","pinyin-pro":"^3.26.0","roboto-fontface":"*","typewriter-effect":"^2.21.0",vue:"^3.4.31",vuetify:"^3.8.0"},_n={"@eslint/js":"^9.14.0","@vite-pwa/assets-generator":"^1.0.0","@vitejs/plugin-vue":"^5.2.3",eslint:"^9.14.0","eslint-plugin-import":"^2.29.1","eslint-plugin-n":"^16.6.2","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^6.4.0","eslint-plugin-vue":"^9.30.0",pinia:"^3.0.1",sass:"1.86.3","sass-embedded":"^1.86.3","unplugin-auto-import":"^19.1.2","unplugin-fonts":"^1.3.1","unplugin-vue-components":"^28.4.1","unplugin-vue-router":"^0.12.0",vite:"^5.4.17","vite-plugin-pwa":"^1.0.0","vite-plugin-vue-layouts":"^0.11.0","vite-plugin-vuetify":"^2.1.1","vue-router":"^4.5.0"},Ke={name:vn,private:!0,type:yn,version:xn,scripts:Sn,dependencies:kn,devDependencies:_n},Cn={name:"AboutCard",setup(){const t=Te([]),e=Te(!1),i=()=>{try{const a={...Ke.dependencies||{},...Ke.devDependencies||{}},u=Object.entries(a).map(([r,c])=>({name:r,version:c.replace(/[\^~]/g,""),description:l(r)}));t.value=u}catch(a){console.error("加载依赖信息失败:",a),t.value=[]}},l=a=>({vue:"渐进式 JavaScript 框架",vuetify:"材料设计组件框架",axios:"Promise 基础的 HTTP 客户端",pinia:"Vue 状态管理库","vue-router":"Vue.js 官方路由管理器","@vitejs/plugin-vue":"Vite 的 Vue 插件"})[a]||"";return Bt(()=>{i()}),{Dependencies:t,showDeps:e}}},Vn={class:"d-flex flex-column align-start"},Dn={class:"d-flex gap-2 flex-wrap mb-6"},Tn={class:"text-caption text-medium-emphasis"};function En(t,e,i,l,a,u){return f(),C(te,{border:""},{default:s(()=>[n(Ae,null,{prepend:s(()=>[n(A,{icon:"mdi-information",size:"large",class:"mr-2"})]),default:s(()=>[n(re,{class:"text-h6"},{default:s(()=>e[3]||(e[3]=[d("关于")])),_:1})]),_:1}),n(X,null,{default:s(()=>[n(me,null,{default:s(()=>[n(R,{cols:"12",md:"8",class:"mx-auto"},{default:s(()=>[O("div",Vn,[n(ot,{size:"120",class:"mb-4"},{default:s(()=>[n(rt,{src:"https://github.com/SunWuyuan.png",alt:"Sunwuyuan"})]),_:1}),e[20]||(e[20]=O("h2",{class:"text-h5 mb-2"},"Classworks",-1)),e[21]||(e[21]=O("p",{class:"text-body-1 mb-4"},"适用于班级大屏的作业板小工具",-1)),O("div",Dn,[n(x,{color:"red",variant:"tonal",href:"https://github.com/ClassworksDev/Classworks/issues",target:"_blank","prepend-icon":"mdi-bug"},{default:s(()=>e[4]||(e[4]=[d(" 报告问题 ")])),_:1}),n(x,{color:"primary",variant:"tonal",href:"https://qm.qq.com/q/qNBX4ZZVeg",target:"_blank","prepend-icon":"mdi-qqchat"},{default:s(()=>e[5]||(e[5]=[d(" QQ 群 ")])),_:1}),n(x,{variant:"text",href:"https://github.com/ClassworksDev/Classworks",target:"_blank","prepend-icon":"mdi-github"},{default:s(()=>e[6]||(e[6]=[d(" 前端 ")])),_:1}),n(x,{variant:"text",href:"https://github.com/ClassworksDev/ClassworksServer",target:"_blank","prepend-icon":"mdi-github"},{default:s(()=>e[7]||(e[7]=[d(" 后端 ")])),_:1})]),n(j,{class:"mb-4 w-100"}),e[22]||(e[22]=O("h3",{class:"text-h6 mb-2"},"备注与致谢",-1)),n(J,{class:"mb-4 bg-transparent"},{default:s(()=>[n(I,{href:"https://github.com/EnderWolf006/HomeworkBoard",target:"_blank","append-icon":"mdi-link"},{default:s(()=>[n(P,null,{default:s(()=>e[8]||(e[8]=[d(" 本项目受到 HomeworkBoard 的启发而开发 ")])),_:1}),n(W,null,{default:s(()=>e[9]||(e[9]=[d(" 感谢 EnderWolf006 (@EnderWolf) fhzit(@Hellofhz) KeyFac 等人的贡献 ")])),_:1})]),_:1}),n(I,{href:"https://hlyun.org",target:"_blank","append-icon":"mdi-link"},{default:s(()=>[n(P,null,{default:s(()=>e[10]||(e[10]=[d(" Classworks 由"),O("strong",null,"厚浪云",-1),d("提供 ")])),_:1}),n(W,null,{default:s(()=>e[11]||(e[11]=[d(" 长江后浪推前浪 浮事新人换旧人 ")])),_:1})]),_:1}),n(I,{href:"https://zerocat.houlangs.com",target:"_blank","append-icon":"mdi-link"},{default:s(()=>[n(P,null,{default:s(()=>e[12]||(e[12]=[d(" 感谢 ZeroCat 社区的开发者们 ")])),_:1}),n(W,null,{default:s(()=>e[13]||(e[13]=[d(" 新一代,开源,编程社区 ")])),_:1})]),_:1}),n(j,{class:"ma-1"}),n(I,{href:"https://github.com/HUSX100/IslandCaller",target:"_blank","append-icon":"mdi-link"},{default:s(()=>[n(P,null,{default:s(()=>e[14]||(e[14]=[d(" 本项目与 IslandCaller 没有从属关系 ")])),_:1}),n(W,null,{default:s(()=>e[15]||(e[15]=[d(" IslandCaller 是由 HUSX100 开发的基于 ClassIsland 提醒服务的轻量级点名器 ")])),_:1})]),_:1}),n(I,{href:"https://classisland.tech",target:"_blank","append-icon":"mdi-link"},{default:s(()=>[n(P,null,{default:s(()=>e[16]||(e[16]=[d(" 本项目与 ClassIsland 没有从属关系 ")])),_:1}),n(W,null,{default:s(()=>e[17]||(e[17]=[d(" ClassIsland 是由 HelloWRC 开发的适用于班级大屏的课表信息显示工具 ")])),_:1})]),_:1})]),_:1}),n(x,{variant:"text",class:"mb-4","prepend-icon":"mdi-package-variant",onClick:e[0]||(e[0]=r=>l.showDeps=!0)},{default:s(()=>e[18]||(e[18]=[d(" 查看使用的第三方库 ")])),_:1}),n(Ye,{modelValue:l.showDeps,"onUpdate:modelValue":e[2]||(e[2]=r=>l.showDeps=r),transition:"dialog-bottom-transition",fullscreen:""},{default:s(()=>[n(te,null,{default:s(()=>[n(Lt,null,{default:s(()=>[n(x,{icon:"mdi-close",onClick:e[1]||(e[1]=r=>l.showDeps=!1)}),n(At,null,{default:s(()=>e[19]||(e[19]=[d("使用的第三方库")])),_:1}),n(Ie)]),_:1}),n(X,null,{default:s(()=>[n(J,null,{default:s(()=>[(f(!0),L(oe,null,ye(l.Dependencies,r=>(f(),C(I,{key:r.name,href:"https://www.npmjs.com/package/"+r.name,target:"_blank","append-icon":"mdi-link"},{default:s(()=>[n(P,null,{default:s(()=>[d(N(r.name),1)]),_:2},1024),n(W,null,{default:s(()=>[d(" v"+N(r.version),1)]),_:2},1024)]),_:2},1032,["href"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),O("p",Tn," Copyright © "+N(new Date().getFullYear())+" Sunwuyuan ",1)])]),_:1})]),_:1})]),_:1})]),_:1})}const lt=Q(Cn,[["render",En]]),Nn={name:"SettingsCard",props:{title:{type:String,required:!0},icon:{type:String,required:!0},loading:{type:Boolean,default:!1}}};function In(t,e,i,l,a,u){return f(),C(te,{elevation:"2",class:"settings-card rounded-lg"},{default:s(()=>[n(Ae,null,{prepend:s(()=>[n(A,{icon:i.icon,size:"large",class:"mr-2"},null,8,["icon"])]),default:s(()=>[n(re,{class:"text-h6"},{default:s(()=>[d(N(i.title),1)]),_:1})]),_:1}),n(X,null,{default:s(()=>[i.loading?(f(),C(et,{key:0,indeterminate:"",color:"primary",class:"mb-4"})):z("",!0),ze(t.$slots,"default",{},void 0,!0)]),_:3}),t.$slots.actions?(f(),C(Le,{key:0,class:"pa-4"},{default:s(()=>[ze(t.$slots,"actions",{},void 0,!0)]),_:3})):z("",!0)]),_:3})}const H=Q(Nn,[["render",In],["__scopeId","data-v-3e8918ff"]]);var Ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function An(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var dt={exports:{}};(function(t,e){(function(i,l){t.exports=l()})(typeof self<"u"?self:Ln,()=>(()=>{var i={75:function(r){(function(){var c,p,k,b,S,M;typeof performance<"u"&&performance!==null&&performance.now?r.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(r.exports=function(){return(c()-S)/1e6},p=process.hrtime,b=(c=function(){var T;return 1e9*(T=p())[0]+T[1]})(),M=1e9*process.uptime(),S=b-M):Date.now?(r.exports=function(){return Date.now()-k},k=Date.now()):(r.exports=function(){return new Date().getTime()-k},k=new Date().getTime())}).call(this)},4087:(r,c,p)=>{for(var k=p(75),b=typeof window>"u"?p.g:window,S=["moz","webkit"],M="AnimationFrame",T=b["request"+M],F=b["cancel"+M]||b["cancelRequest"+M],G=0;!T&&G<S.length;G++)T=b[S[G]+"Request"+M],F=b[S[G]+"Cancel"+M]||b[S[G]+"CancelRequest"+M];if(!T||!F){var ne=0,Z=0,K=[];T=function(E){if(K.length===0){var Y=k(),ce=Math.max(0,16.666666666666668-(Y-ne));ne=ce+Y,setTimeout(function(){var ee=K.slice(0);K.length=0;for(var se=0;se<ee.length;se++)if(!ee[se].cancelled)try{ee[se].callback(ne)}catch(le){setTimeout(function(){throw le},0)}},Math.round(ce))}return K.push({handle:++Z,callback:E,cancelled:!1}),Z},F=function(E){for(var Y=0;Y<K.length;Y++)K[Y].handle===E&&(K[Y].cancelled=!0)}}r.exports=function(E){return T.call(b,E)},r.exports.cancel=function(){F.apply(b,arguments)},r.exports.polyfill=function(E){E||(E=b),E.requestAnimationFrame=T,E.cancelAnimationFrame=F}}},l={};function a(r){var c=l[r];if(c!==void 0)return c.exports;var p=l[r]={exports:{}};return i[r].call(p.exports,p,p.exports,a),p.exports}a.n=r=>{var c=r&&r.__esModule?()=>r.default:()=>r;return a.d(c,{a:c}),c},a.d=(r,c)=>{for(var p in c)a.o(c,p)&&!a.o(r,p)&&Object.defineProperty(r,p,{enumerable:!0,get:c[p]})},a.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),a.o=(r,c)=>Object.prototype.hasOwnProperty.call(r,c);var u={};return(()=>{a.d(u,{default:()=>kt});var r=a(4087),c=a.n(r);const p=function(v){return new RegExp(/<[a-z][\s\S]*>/i).test(v)},k=function(v,h){return Math.floor(Math.random()*(h-v+1))+v};var b="TYPE_CHARACTER",S="REMOVE_CHARACTER",M="REMOVE_ALL",T="REMOVE_LAST_VISIBLE_NODE",F="PAUSE_FOR",G="CALL_FUNCTION",ne="ADD_HTML_TAG_ELEMENT",Z="CHANGE_DELETE_SPEED",K="CHANGE_DELAY",E="CHANGE_CURSOR",Y="PASTE_STRING",ce="HTML_TAG";function ee(v){return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},ee(v)}function se(v,h){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(v);h&&(m=m.filter(function($){return Object.getOwnPropertyDescriptor(v,$).enumerable})),y.push.apply(y,m)}return y}function le(v){for(var h=1;h<arguments.length;h++){var y=arguments[h]!=null?arguments[h]:{};h%2?se(Object(y),!0).forEach(function(m){V(v,m,y[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(y)):se(Object(y)).forEach(function(m){Object.defineProperty(v,m,Object.getOwnPropertyDescriptor(y,m))})}return v}function ie(v){return function(h){if(Array.isArray(h))return xe(h)}(v)||function(h){if(typeof Symbol<"u"&&h[Symbol.iterator]!=null||h["@@iterator"]!=null)return Array.from(h)}(v)||function(h,y){if(h){if(typeof h=="string")return xe(h,y);var m=Object.prototype.toString.call(h).slice(8,-1);return m==="Object"&&h.constructor&&(m=h.constructor.name),m==="Map"||m==="Set"?Array.from(h):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?xe(h,y):void 0}}(v)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function xe(v,h){(h==null||h>v.length)&&(h=v.length);for(var y=0,m=new Array(h);y<h;y++)m[y]=v[y];return m}function St(v,h){for(var y=0;y<h.length;y++){var m=h[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,Me(m.key),m)}}function V(v,h,y){return(h=Me(h))in v?Object.defineProperty(v,h,{value:y,enumerable:!0,configurable:!0,writable:!0}):v[h]=y,v}function Me(v){var h=function(y,m){if(ee(y)!=="object"||y===null)return y;var $=y[Symbol.toPrimitive];if($!==void 0){var o=$.call(y,"string");if(ee(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(y)}(v);return ee(h)==="symbol"?h:String(h)}const kt=function(){function v(m,$){var o=this;if(function(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")}(this,v),V(this,"state",{cursorAnimation:null,lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null,elements:{container:null,wrapper:document.createElement("span"),cursor:document.createElement("span")}}),V(this,"options",{strings:null,cursor:"|",delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,devMode:!1,skipAddStyles:!1,wrapperClassName:"Typewriter__wrapper",cursorClassName:"Typewriter__cursor",stringSplitter:null,onCreateTextNode:null,onRemoveNode:null}),V(this,"setupWrapperElement",function(){o.state.elements.container&&(o.state.elements.wrapper.className=o.options.wrapperClassName,o.state.elements.cursor.className=o.options.cursorClassName,o.state.elements.cursor.innerHTML=o.options.cursor,o.state.elements.container.innerHTML="",o.state.elements.container.appendChild(o.state.elements.wrapper),o.state.elements.container.appendChild(o.state.elements.cursor))}),V(this,"start",function(){return o.state.eventLoopPaused=!1,o.runEventLoop(),o}),V(this,"pause",function(){return o.state.eventLoopPaused=!0,o}),V(this,"stop",function(){return o.state.eventLoop&&((0,r.cancel)(o.state.eventLoop),o.state.eventLoop=null),o}),V(this,"pauseFor",function(w){return o.addEventToQueue(F,{ms:w}),o}),V(this,"typeOutAllStrings",function(){return typeof o.options.strings=="string"?(o.typeString(o.options.strings).pauseFor(o.options.pauseFor),o):(o.options.strings.forEach(function(w){o.typeString(w).pauseFor(o.options.pauseFor).deleteAll(o.options.deleteSpeed)}),o)}),V(this,"typeString",function(w){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(p(w))return o.typeOutHTMLString(w,_);if(w){var U=(o.options||{}).stringSplitter,B=typeof U=="function"?U(w):w.split("");o.typeCharacters(B,_)}return o}),V(this,"pasteString",function(w){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p(w)?o.typeOutHTMLString(w,_,!0):(w&&o.addEventToQueue(Y,{character:w,node:_}),o)}),V(this,"typeOutHTMLString",function(w){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,U=arguments.length>2?arguments[2]:void 0,B=function(he){var we=document.createElement("div");return we.innerHTML=he,we.childNodes}(w);if(B.length>0)for(var D=0;D<B.length;D++){var q=B[D],de=q.innerHTML;q&&q.nodeType!==3?(q.innerHTML="",o.addEventToQueue(ne,{node:q,parentNode:_}),U?o.pasteString(de,q):o.typeString(de,q)):q.textContent&&(U?o.pasteString(q.textContent,_):o.typeString(q.textContent,_))}return o}),V(this,"deleteAll",function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"natural";return o.addEventToQueue(M,{speed:w}),o}),V(this,"changeDeleteSpeed",function(w){if(!w)throw new Error("Must provide new delete speed");return o.addEventToQueue(Z,{speed:w}),o}),V(this,"changeDelay",function(w){if(!w)throw new Error("Must provide new delay");return o.addEventToQueue(K,{delay:w}),o}),V(this,"changeCursor",function(w){if(!w)throw new Error("Must provide new cursor");return o.addEventToQueue(E,{cursor:w}),o}),V(this,"deleteChars",function(w){if(!w)throw new Error("Must provide amount of characters to delete");for(var _=0;_<w;_++)o.addEventToQueue(S);return o}),V(this,"callFunction",function(w,_){if(!w||typeof w!="function")throw new Error("Callback must be a function");return o.addEventToQueue(G,{cb:w,thisArg:_}),o}),V(this,"typeCharacters",function(w){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!w||!Array.isArray(w))throw new Error("Characters must be an array");return w.forEach(function(U){o.addEventToQueue(b,{character:U,node:_})}),o}),V(this,"removeCharacters",function(w){if(!w||!Array.isArray(w))throw new Error("Characters must be an array");return w.forEach(function(){o.addEventToQueue(S)}),o}),V(this,"addEventToQueue",function(w,_){var U=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.addEventToStateProperty(w,_,U,"eventQueue")}),V(this,"addReverseCalledEvent",function(w,_){var U=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.options.loop?o.addEventToStateProperty(w,_,U,"reverseCalledEvents"):o}),V(this,"addEventToStateProperty",function(w,_){var U=arguments.length>2&&arguments[2]!==void 0&&arguments[2],B=arguments.length>3?arguments[3]:void 0,D={eventName:w,eventArgs:_||{}};return o.state[B]=U?[D].concat(ie(o.state[B])):[].concat(ie(o.state[B]),[D]),o}),V(this,"runEventLoop",function(){o.state.lastFrameTime||(o.state.lastFrameTime=Date.now());var w=Date.now(),_=w-o.state.lastFrameTime;if(!o.state.eventQueue.length){if(!o.options.loop)return;o.state.eventQueue=ie(o.state.calledEvents),o.state.calledEvents=[],o.options=le({},o.state.initialOptions)}if(o.state.eventLoop=c()(o.runEventLoop),!o.state.eventLoopPaused){if(o.state.pauseUntil){if(w<o.state.pauseUntil)return;o.state.pauseUntil=null}var U,B=ie(o.state.eventQueue),D=B.shift();if(!(_<=(U=D.eventName===T||D.eventName===S?o.options.deleteSpeed==="natural"?k(40,80):o.options.deleteSpeed:o.options.delay==="natural"?k(120,160):o.options.delay))){var q=D.eventName,de=D.eventArgs;switch(o.logInDevMode({currentEvent:D,state:o.state,delay:U}),q){case Y:case b:var he=de.character,we=de.node,je=document.createTextNode(he),pe=je;o.options.onCreateTextNode&&typeof o.options.onCreateTextNode=="function"&&(pe=o.options.onCreateTextNode(he,je)),pe&&(we?we.appendChild(pe):o.state.elements.wrapper.appendChild(pe)),o.state.visibleNodes=[].concat(ie(o.state.visibleNodes),[{type:"TEXT_NODE",character:he,node:pe}]);break;case S:B.unshift({eventName:T,eventArgs:{removingCharacterNode:!0}});break;case F:var _t=D.eventArgs.ms;o.state.pauseUntil=Date.now()+parseInt(_t);break;case G:var Pe=D.eventArgs,Ct=Pe.cb,Vt=Pe.thisArg;Ct.call(Vt,{elements:o.state.elements});break;case ne:var Ue=D.eventArgs,Se=Ue.node,ke=Ue.parentNode;ke?ke.appendChild(Se):o.state.elements.wrapper.appendChild(Se),o.state.visibleNodes=[].concat(ie(o.state.visibleNodes),[{type:ce,node:Se,parentNode:ke||o.state.elements.wrapper}]);break;case M:var Dt=o.state.visibleNodes,_e=de.speed,ge=[];_e&&ge.push({eventName:Z,eventArgs:{speed:_e,temp:!0}});for(var Be=0,Tt=Dt.length;Be<Tt;Be++)ge.push({eventName:T,eventArgs:{removingCharacterNode:!1}});_e&&ge.push({eventName:Z,eventArgs:{speed:o.options.deleteSpeed,temp:!0}}),B.unshift.apply(B,ge);break;case T:var Et=D.eventArgs.removingCharacterNode;if(o.state.visibleNodes.length){var Ce=o.state.visibleNodes.pop(),Nt=Ce.type,be=Ce.node,It=Ce.character;o.options.onRemoveNode&&typeof o.options.onRemoveNode=="function"&&o.options.onRemoveNode({node:be,character:It}),be&&be.parentNode.removeChild(be),Nt===ce&&Et&&B.unshift({eventName:T,eventArgs:{}})}break;case Z:o.options.deleteSpeed=D.eventArgs.speed;break;case K:o.options.delay=D.eventArgs.delay;break;case E:o.options.cursor=D.eventArgs.cursor,o.state.elements.cursor.innerHTML=D.eventArgs.cursor}o.options.loop&&(D.eventName===T||D.eventArgs&&D.eventArgs.temp||(o.state.calledEvents=[].concat(ie(o.state.calledEvents),[D]))),o.state.eventQueue=B,o.state.lastFrameTime=w}}}),m)if(typeof m=="string"){var Oe=document.querySelector(m);if(!Oe)throw new Error("Could not find container element");this.state.elements.container=Oe}else this.state.elements.container=m;$&&(this.options=le(le({},this.options),$)),this.state.initialOptions=le({},this.options),this.init()}var h,y;return h=v,(y=[{key:"init",value:function(){var m,$;this.setupWrapperElement(),this.addEventToQueue(E,{cursor:this.options.cursor},!0),this.addEventToQueue(M,null,!0),!window||window.___TYPEWRITER_JS_STYLES_ADDED___||this.options.skipAddStyles||(m=".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}",($=document.createElement("style")).appendChild(document.createTextNode(m)),document.head.appendChild($),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),this.options.autoStart===!0&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(m){this.options.devMode&&console.log(m)}}])&&St(h.prototype,y),Object.defineProperty(h,"prototype",{writable:!1}),v}()})(),u.default})())})(dt);var Mn=dt.exports;const qe=An(Mn),On=[{text:"帝高阳之苗裔兮,朕皇考曰伯庸。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"摄提贞于孟陬兮,惟庚寅吾以降。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"皇览揆余初度兮,肇锡余以嘉名。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"名余曰正则兮,字余曰灵均。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"纷吾既有此内美兮,又重之以修能。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"扈江离与辟芷兮,纫秋兰以为佩。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"汩余若将不及兮,恐年岁之不吾与。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"朝搴阰之木兰兮,夕揽洲之宿莽。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"日月忽其不淹兮,春与秋其代序。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"惟草木之零落兮,恐美人之迟暮。(惟 通:唯)",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"不抚壮而弃秽兮,何不改此度?(改此度 一作:改乎此度)",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"乘骐骥以驰骋兮,来吾道夫先路!",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"昔三后之纯粹兮,固众芳之所在。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"杂申椒与菌桂兮,岂惟纫夫蕙茝!",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"彼尧舜之耿介兮,既遵道而得路。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"何桀纣之猖披兮,夫唯捷径以窘步。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"惟夫党人之偷乐兮,路幽昧以险隘。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"岂余身之惮殃兮,恐皇舆之败绩!",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"忽奔走以先后兮,及前王之踵武。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"荃不查余之中情兮,反信谗而齌怒。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"余固知謇謇之为患兮,忍而不能舍也。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"指九天以为正兮,夫唯灵修之故也。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"曰黄昏以为期兮,羌中道而改路!",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"初既与余成言兮,后悔遁而有他。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"余既不难夫离别兮,伤灵修之数化。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"余既滋兰之九畹兮,又树蕙之百亩。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"畦留夷与揭车兮,杂杜衡与芳芷。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"冀枝叶之峻茂兮,愿俟时乎吾将刈。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"虽萎绝其亦何伤兮,哀众芳之芜秽。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"众皆竞进以贪婪兮,凭不厌乎求索。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"羌内恕己以量人兮,各兴心而嫉妒。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"忽驰骛以追逐兮,非余心之所急。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"老冉冉其将至兮,恐修名之不立。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"朝饮木兰之坠露兮,夕餐秋菊之落英。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"苟余情其信姱以练要兮,长顑颔亦何伤。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"掔木根以结茝兮,贯薜荔之落蕊。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"矫菌桂以纫蕙兮,索胡绳之纚纚。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"謇吾法夫前修兮,非世俗之所服。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"虽不周于今之人兮,愿依彭咸之遗则。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"长太息以掩涕兮,哀民生之多艰。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"余虽好修姱以鞿羁兮,謇朝谇而夕替。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"既替余以蕙纕兮,又申之以揽茝。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"亦余心之所善兮,虽九死其犹未悔。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"怨灵修之浩荡兮,终不察夫民心。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"众女嫉余之蛾眉兮,谣诼谓余以善淫。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"固时俗之工巧兮,偭规矩而改错。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"背绳墨以追曲兮,竞周容以为度。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"忳郁邑余侘傺兮,吾独穷困乎此时也。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"宁溘死以流亡兮,余不忍为此态也。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"鸷鸟之不群兮,自前世而固然。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"何方圜之能周兮,夫孰异道而相安?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"屈心而抑志兮,忍尤而攘诟。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"伏清白以死直兮,固前圣之所厚。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"悔相道之不察兮,延伫乎吾将反。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"回朕车以复路兮,及行迷之未远。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"步余马于兰皋兮,驰椒丘且焉止息。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"进不入以离尤兮,退将复修吾初服。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"制芰荷以为衣兮,集芙蓉以为裳。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"不吾知其亦已兮,苟余情其信芳。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"高余冠之岌岌兮,长余佩之陆离。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"芳与泽其杂糅兮,唯昭质其犹未亏。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"忽反顾以游目兮,将往观乎四荒。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"佩缤纷其繁饰兮,芳菲菲其弥章。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"民生各有所乐兮,余独好修以为常。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"虽体解吾犹未变兮,岂余心之可惩。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"女媭之婵媛兮,申申其詈予,曰:",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"鲧婞直以亡身兮,终然夭乎羽之野。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"汝何博謇而好修兮,纷独有此姱节?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"薋菉葹以盈室兮,判独离而不服。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"众不可户说兮,孰云察余之中情?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"世并举而好朋兮,夫何茕独而不予听?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"依前圣以节中兮,喟凭心而历兹。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"济沅湘以南征兮,就重华而陈词:",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"启《九辩》与《九歌》兮,夏康娱以自纵。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"不顾难以图后兮,五子用失乎家衖。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"羿淫游以佚畋兮,又好射夫封狐。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"固乱流其鲜终兮,浞又贪夫厥家。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"浇身被服强圉兮,纵欲而不忍。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"日康娱而自忘兮,厥首用夫颠陨。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"夏桀之常违兮,乃遂焉而逢殃。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"后辛之菹醢兮,殷宗用而不长。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"汤禹俨而祗敬兮,周论道而莫差。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"举贤才而授能兮,循绳墨而不颇。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"皇天无私阿兮,览民德焉错辅。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"夫维圣哲以茂行兮,苟得用此下土。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"瞻前而顾后兮,相观民之计极。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"夫孰非义而可用兮?孰非善而可服?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"阽余身而危死兮,览余初其犹未悔。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"不量凿而正枘兮,固前修以菹醢。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"曾歔欷余郁邑兮,哀朕时之不当。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"揽茹蕙以掩涕兮,沾余襟之浪浪。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"跪敷衽以陈辞兮,耿吾既得此中正。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"驷玉虬以椉鹥兮,溘埃风余上征。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"朝发轫于苍梧兮,夕余至乎县圃。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"欲少留此灵琐兮,日忽忽其将暮。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"吾令羲和弭节兮,望崦嵫而勿迫。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"路曼曼其修远兮,吾将上下而求索。(曼曼 一作:漫漫)",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"饮余马于咸池兮,总余辔乎扶桑。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"折若木以拂日兮,聊逍遥以相羊。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"前望舒使先驱兮,后飞廉使奔属。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"鸾皇为余先戒兮,雷师告余以未具。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"吾令凤鸟飞腾兮,继之以日夜。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"飘风屯其相离兮,帅云霓而来御。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"纷总总其离合兮,斑陆离其上下。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"吾令帝阍开关兮,倚阊阖而望予。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"时暧暧其将罢兮,结幽兰而延伫。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"世溷浊而不分兮,好蔽美而嫉妒。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"朝吾将济于白水兮,登阆风而绁马。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"忽反顾以流涕兮,哀高丘之无女。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"溘吾游此春宫兮,折琼枝以继佩。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"及荣华之未落兮,相下女之可诒。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"吾令丰隆乘云兮,求宓妃之所在。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"解佩纕以结言兮,吾令謇修以为理。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"纷总总其离合兮,忽纬繣其难迁。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"夕归次于穷石兮,朝濯发乎洧盘。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"保厥美以骄傲兮,日康娱以淫游。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"虽信美而无礼兮,来违弃而改求。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"览相观于四极兮,周流乎天余乃下。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"望瑶台之偃蹇兮,见有娀之佚女。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"吾令鸩为媒兮,鸩告余以不好。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"雄鸠之鸣逝兮,余犹恶其佻巧。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"心犹豫而狐疑兮,欲自适而不可。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"凤皇既受诒兮,恐高辛之先我。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"欲远集而无所止兮,聊浮游以逍遥。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"及少康之未家兮,留有虞之二姚。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"理弱而媒拙兮,恐导言之不固。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"世溷浊而嫉贤兮,好蔽美而称恶。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"闺中既以邃远兮,哲王又不寤。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"怀朕情而不发兮,余焉能忍而与此终古?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"索琼茅以筳篿兮,命灵氛为余占之。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"曰:两美其必合兮,孰信修而慕之?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"思九州之博大兮,岂惟是其有女?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"曰:勉远逝而无狐疑兮,孰求美而释女?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"何所独无芳草兮,尔何怀乎故宇?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"世幽昧以昡曜兮,孰云察余之善恶?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"民好恶其不同兮,惟此党人其独异!",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"户服艾以盈要兮,谓幽兰其不可佩。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"览察草木其犹未得兮,岂珵美之能当?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"苏粪壤以充帏兮,谓申椒其不芳。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"欲从灵氛之吉占兮,心犹豫而狐疑。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"巫咸将夕降兮,怀椒糈而要之。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"百神翳其备降兮,九疑缤其并迎。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"皇剡剡其扬灵兮,告余以吉故。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"曰:勉升降以上下兮,求矩矱之所同。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"汤禹俨而求合兮,挚咎繇而能调。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"苟中情其好修兮,又何必用夫行媒?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"说操筑于傅岩兮,武丁用而不疑。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"吕望之鼓刀兮,遭周文而得举。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"宁戚之讴歌兮,齐桓闻以该辅。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"及年岁之未晏兮,时亦犹其未央。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"恐鹈鴂之先鸣兮,使夫百草为之不芳。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"何琼佩之偃蹇兮,众薆然而蔽之。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"惟此党人之不谅兮,恐嫉妒而折之。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"时缤纷其变易兮,又何可以淹留?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"兰芷变而不芳兮,荃蕙化而为茅。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"何昔日之芳草兮,今直为此萧艾也?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"岂其有他故兮,莫好修之害也!",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"余以兰为可恃兮,羌无实而容长。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"委厥美以从俗兮,苟得列乎众芳。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"椒专佞以慢慆兮,樧又欲充夫佩帏。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"既干进而务入兮,又何芳之能祗?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"固时俗之流从兮,又孰能无变化?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"览椒兰其若兹兮,又况揭车与江离?",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"惟兹佩之可贵兮,委厥美而历兹。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"芳菲菲而难亏兮,芬至今犹未沬。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"和调度以自娱兮,聊浮游而求女。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"及余饰之方壮兮,周流观乎上下。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"灵氛既告余以吉占兮,历吉日乎吾将行。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"折琼枝以为羞兮,精琼爢以为粻。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"为余驾飞龙兮,杂瑶象以为车。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"何离心之可同兮?吾将远逝以自疏。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"邅吾道夫昆仑兮,路修远以周流。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"扬云霓之晻蔼兮,鸣玉鸾之啾啾。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"朝发轫于天津兮,夕余至乎西极。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"凤皇翼其承旗兮,高翱翔之翼翼。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"忽吾行此流沙兮,遵赤水而容与。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"麾蛟龙使梁津兮,诏西皇使涉予。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"路修远以多艰兮,腾众车使径待。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"路不周以左转兮,指西海以为期。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"屯余车其千乘兮,齐玉轪而并驰。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"驾八龙之婉婉兮,载云旗之委蛇。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"抑志而弭节兮,神高驰之邈邈。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"奏《九歌》而舞《韶》兮,聊假日以媮乐。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"陟升皇之赫戏兮,忽临睨夫旧乡。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"仆夫悲余马怀兮,蜷局顾而不行。",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"乱曰:已矣哉!",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"国无人莫我知兮,又何怀乎故都!",author:"屈原",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"},{text:"既莫足与为美政兮,吾将从彭咸之所居!",author:"离骚",contributor:"Sunwuyuan",link:"https://www.gushiwen.cn/shiwenv.aspx?id=f5714bcd33e3"}],We={quotes:On},Je={text:"点击此处可以查看 Classworks 用户群里沙雕群友们的发言",author:"点击后会复制当前句子到剪贴板中"},Ge={main:{delay:50,deleteSpeed:100},source:{delay:10,deleteSpeed:10,cursor:""}},jn={name:"EchoChamberCard",components:{SettingsCard:H},data:()=>({typewriter:null,sourceWriter:null,currentQuote:Je,hasClicked:!1}),mounted(){this.initTypewriters()},methods:{initTypewriters(){this.typewriter=new qe(this.$refs.typewriter,Ge.main),this.sourceWriter=new qe(this.$refs.sourceWriter,Ge.source),this.typeQuote(Je)},typeQuote(t){this.typewriter.deleteAll(30).typeString(t.text).start(),t.author&&this.sourceWriter.deleteAll(20).typeString(t.author).start()},async handleClick(){this.hasClicked||(this.hasClicked=!0),await this.copyToClipboard(),this.currentQuote=this.getRandomQuote(),this.typeQuote(this.currentQuote)},getRandomQuote(){return We.quotes[Math.floor(Math.random()*We.quotes.length)]},async copyToClipboard(){if(!this.currentQuote)return;const{text:t,author:e,contributor:i,link:l}=this.currentQuote,a=[t,e&&`作者:${e}`,i&&`贡献者:${i}`,(l||i)&&`来源:${l||`https://github.com/${i}`}`].filter(Boolean);try{await navigator.clipboard.writeText(a.join(`
`))}catch(u){console.error("复制失败:",u)}}},beforeUnmount(){[this.typewriter,this.sourceWriter].forEach(t=>t==null?void 0:t.stop())}},Pn={ref:"typewriter",class:"typewriter-text"},Un={ref:"sourceWriter",class:"source-text"};function Bn(t,e,i,l,a,u){const r=H;return f(),C(r,{border:"",title:"回声洞",icon:"mdi-thought-bubble",onClick:u.handleClick},{default:s(()=>[n(X,null,{default:s(()=>[O("div",Pn,null,512),O("div",Un,null,512)]),_:1}),n(Rt,{name:"fade"},{default:s(()=>{var c;return[(c=t.currentQuote)!=null&&c.contributor?(f(),C(fe,{key:0,class:"contributor"},{default:s(()=>[n(ot,{start:""},{default:s(()=>[n(rt,{src:`https://github.com/${t.currentQuote.contributor}.png`},null,8,["src"])]),_:1}),d(" "+N(t.currentQuote.contributor),1)]),_:1})):z("",!0)]}),_:1})]),_:1},8,["onClick"])}const ct=Q(jn,[["render",Bn],["__scopeId","data-v-5c15976c"]]),Rn={name:"UnsavedWarning",props:{show:Boolean,message:{type:String,default:"未保存"}}},Fn={class:"warning-container"};function zn(t,e,i,l,a,u){return f(),L("div",Fn,[i.show?(f(),C(fe,{key:0,color:"warning",size:"small",class:"warning-chip"},{default:s(()=>[d(N(i.message),1)]),_:1})):z("",!0)])}const ht=Q(Rn,[["render",zn],["__scopeId","data-v-0668f179"]]),Qn=nt({disabled:Boolean,modelValue:{type:Boolean,default:null},...Qt()},"VHover"),Hn=tt()({name:"VHover",props:Qn(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:i}=e;const l=Ft(t,"modelValue"),{runOpenDelay:a,runCloseDelay:u}=zt(t,r=>!t.disabled&&(l.value=r));return()=>{var r;return(r=i.default)==null?void 0:r.call(i,{isHovering:l.value,props:{onMouseenter:a,onMouseleave:u}})}}}),Kn={name:"StudentListCard",components:{UnsavedWarning:ht},props:{modelValue:{type:Object,required:!0,default:()=>({list:[],text:"",advanced:!1})},loading:Boolean,error:String,isMobile:Boolean,unsavedChanges:Boolean},data(){return{newStudentName:"",editState:{index:-1,name:""}}},emits:["update:modelValue","save","reload"],computed:{text:{get(){return this.modelValue.text},set(t){this.handleTextInput(t)}}},methods:{toggleAdvanced(){const t=!this.modelValue.advanced;this.updateModelValue({advanced:t,text:t?this.modelValue.list.join(`
`):this.modelValue.text,list:this.modelValue.list})},updateModelValue(t){this.$emit("update:modelValue",{...this.modelValue,...t})},addStudent(){const t=this.newStudentName.trim();if(!t||this.modelValue.list.includes(t))return;const e=[...this.modelValue.list,t];this.updateModelValue({list:e,text:e.join(`
`)}),this.newStudentName=""},removeStudent(t){const e=this.modelValue.list.filter((i,l)=>l!==t);this.updateModelValue({list:e,text:e.join(`
`)})},moveStudent(t,e){const i=[...this.modelValue.list];let l;if(e==="top"?l=0:e==="up"?l=t-1:l=t+1,l>=0&&l<i.length){const[a]=i.splice(t,1);i.splice(l,0,a),this.updateModelValue({list:i,text:i.join(`
`)})}},startEdit(t,e){this.editState={index:t,name:e}},saveEdit(){const{index:t,name:e}=this.editState;if(t===-1||!e.trim())return;const i=[...this.modelValue.list];i[t]=e.trim(),this.updateModelValue({list:i,text:i.join(`
`)}),this.editState={index:-1,name:""}},handleClick(t,e){this.isMobile&&this.startEdit(t,e)},handleTextInput(t){const e=t.split(`
`).map(i=>i.trim()).filter(i=>i);this.updateModelValue({text:t,list:e})},sortStudentsByPinyin(){const t=[...this.modelValue.list].sort((e,i)=>{const l=Re(e,{toneType:"none",mode:"surname"}),a=Re(i,{toneType:"none",mode:"surname"});return l.localeCompare(a)});this.updateModelValue({list:t,text:t.join(`
`)})}}},qn={key:0},Wn=["onClick"],Jn={key:1,class:"pt-2"};function Gn(t,e,i,l,a,u){const r=ht;return f(),C(te,{border:"",color:i.unsavedChanges?"warning-subtle":void 0,class:He({"unsaved-changes":i.unsavedChanges})},{default:s(()=>[n(Ae,null,{prepend:s(()=>[n(A,{icon:"mdi-account-group",size:"large",class:"mr-2"})]),append:s(()=>[n(r,{show:i.unsavedChanges,message:"有未保存的更改"},null,8,["show"]),n(x,{"prepend-icon":"mdi-sort-alphabetical-variant",variant:"text",class:"mr-2",onClick:u.sortStudentsByPinyin,disabled:i.modelValue.list.length===0},{default:s(()=>e[6]||(e[6]=[d(" 按姓名首字母排序 ")])),_:1},8,["onClick","disabled"]),n(x,{color:i.modelValue.advanced?"primary":void 0,variant:"text","prepend-icon":"mdi-code-braces",onClick:u.toggleAdvanced},{default:s(()=>[d(N(i.modelValue.advanced?"返回基础编辑":"高级编辑"),1)]),_:1},8,["color","onClick"])]),default:s(()=>[n(re,{class:"text-h6"},{default:s(()=>e[5]||(e[5]=[d("学生列表")])),_:1})]),_:1}),n(X,null,{default:s(()=>[i.loading?(f(),C(et,{key:0,indeterminate:"",color:"primary",class:"mb-4"})):z("",!0),i.error?(f(),C(nn,{key:1,type:"error",variant:"tonal",closable:"",class:"mb-4"},{default:s(()=>[d(N(i.error),1)]),_:1})):z("",!0),n(st,null,{default:s(()=>[i.modelValue.advanced?(f(),L("div",Jn,[n(at,{modelValue:u.text,"onUpdate:modelValue":e[2]||(e[2]=c=>u.text=c),label:"批量编辑学生列表",placeholder:"每行输入一个学生姓名",hint:"使用文本编辑模式批量编辑学生名单,保存时会自动去除空行","persistent-hint":"",variant:"outlined",rows:"10",onInput:u.handleTextInput},null,8,["modelValue","onInput"])])):(f(),L("div",qn,[n(me,{class:"mb-6"},{default:s(()=>[n(R,{cols:"12",sm:"6",md:"4"},{default:s(()=>[n(ae,{modelValue:a.newStudentName,"onUpdate:modelValue":e[0]||(e[0]=c=>a.newStudentName=c),label:"添加学生",placeholder:"输入学生姓名后回车添加","prepend-inner-icon":"mdi-account-plus",variant:"outlined","hide-details":"",class:"mb-4",onKeyup:Qe(u.addStudent,["enter"])},{append:s(()=>[n(x,{icon:"mdi-plus",variant:"text",color:"primary",disabled:!a.newStudentName.trim(),onClick:u.addStudent},null,8,["disabled","onClick"])]),_:1},8,["modelValue","onKeyup"])]),_:1})]),_:1}),n(me,null,{default:s(()=>[(f(!0),L(oe,null,ye(i.modelValue.list,(c,p)=>(f(),C(R,{key:p,cols:"12",sm:"6",md:"4",lg:"3"},{default:s(()=>[n(Hn,null,{default:s(({isHovering:k,props:b})=>[n(te,Ve({ref_for:!0},b,{elevation:i.isMobile?1:k?4:1,class:"student-card",border:""}),{default:s(()=>[n(X,{class:"d-flex align-center pa-3"},{default:s(()=>[n(it,{location:"bottom","open-on-hover":!i.isMobile},{activator:s(({props:S})=>[n(x,Ve({variant:"tonal",size:"small",class:"mr-3 font-weight-medium",ref_for:!0},S),{default:s(()=>[d(N(p+1),1)]),_:2},1040)]),default:s(()=>[n(J,{density:"compact",nav:""},{default:s(()=>[n(I,{"prepend-icon":"mdi-arrow-up-bold",disabled:p===0,onClick:S=>u.moveStudent(p,"top")},{default:s(()=>e[7]||(e[7]=[d(" 置顶 ")])),_:2},1032,["disabled","onClick"]),n(j),n(I,{"prepend-icon":"mdi-arrow-up",disabled:p===0,onClick:S=>u.moveStudent(p,"up")},{default:s(()=>e[8]||(e[8]=[d(" 上移 ")])),_:2},1032,["disabled","onClick"]),n(I,{"prepend-icon":"mdi-arrow-down",disabled:p===i.modelValue.list.length-1,onClick:S=>u.moveStudent(p,"down")},{default:s(()=>e[9]||(e[9]=[d(" 下移 ")])),_:2},1032,["disabled","onClick"])]),_:2},1024)]),_:2},1032,["open-on-hover"]),a.editState.index===p?(f(),C(ae,{key:0,modelValue:a.editState.name,"onUpdate:modelValue":e[1]||(e[1]=S=>a.editState.name=S),density:"compact",variant:"underlined","hide-details":"",class:"flex-grow-1",autofocus:"",onKeyup:Qe(u.saveEdit,["enter"]),onBlur:u.saveEdit},null,8,["modelValue","onKeyup","onBlur"])):(f(),L("span",{key:1,class:"text-body-1 flex-grow-1",onClick:S=>u.handleClick(p,c)},N(c),9,Wn)),O("div",{class:He(["d-flex gap-1 action-buttons",{"opacity-100":k||i.isMobile}])},[n(x,{icon:"mdi-pencil",variant:"text",color:"primary",size:"small",onClick:S=>u.startEdit(p,c)},null,8,["onClick"]),n(x,{icon:"mdi-delete",variant:"text",color:"error",size:"small",onClick:S=>u.removeStudent(p)},null,8,["onClick"])],2)]),_:2},1024)]),_:2},1040,["elevation"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]))]),_:1}),n(me,{class:"mt-6"},{default:s(()=>[n(R,{cols:"12",class:"d-flex gap-2"},{default:s(()=>[n(x,{color:"primary","prepend-icon":"mdi-content-save",size:"large",loading:i.loading,disabled:i.loading,onClick:e[3]||(e[3]=c=>t.$emit("save"))},{default:s(()=>e[10]||(e[10]=[d(" 保存名单 ")])),_:1},8,["loading","disabled"]),n(x,{color:"error",variant:"outlined","prepend-icon":"mdi-refresh",size:"large",loading:i.loading,disabled:i.loading,onClick:e[4]||(e[4]=c=>t.$emit("reload"))},{default:s(()=>e[11]||(e[11]=[d(" 重载名单 ")])),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1})]),_:1},8,["color","class"])}const wt=Q(Kn,[["render",Gn],["__scopeId","data-v-9de1f8ce"]]),Yn={name:"SettingsLinkGenerator",data(){return{selectedItems:[],generatedLink:"",linkCopied:!1,search:"",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 t=ve(),e=[];for(const[i,l]of Object.entries(De)){if(l.requireDeveloper&&!t["developer.enabled"])continue;const a=t[i]!==l.default;e.push({key:i,description:l.description||i,value:t[i],icon:l.icon||"mdi-cog",isChanged:a,defaultValue:l.default})}return e.sort((i,l)=>i.key.localeCompare(l.key))},filteredItems(){if(!this.search)return this.settingItems;const t=this.search.toLowerCase();return t==="已修改"?this.settingItems.filter(e=>e.isChanged):t==="是"||t==="否"?this.settingItems.filter(e=>typeof e.value=="boolean"&&(t==="是"?e.value:!e.value)):this.settingItems.filter(e=>{const i=e.description.toLowerCase(),l=e.key.toLowerCase(),a=String(e.value).toLowerCase(),u=e.isChanged?"已修改":"默认";return i.includes(t)||l.includes(t)||a.includes(t)||u.includes(t)})},hasDisplaySettings(){return this.selectedItems.some(t=>t.startsWith("display."))},hasEditSettings(){return this.selectedItems.some(t=>t.startsWith("edit."))},hasServerSettings(){return this.selectedItems.some(t=>t.startsWith("server."))},hasChangedSettings(){const t=ve();return this.selectedItems.some(e=>{const i=De[e];return i&&t[e]!==i.default})}},methods:{handleSelectionChange(t){this.selectedItems=t.map(e=>e.key),this.generateLink()},generateLink(){const t=`${window.location.protocol}//${window.location.host}/`,e=ve(),i={};for(const l of this.selectedItems)i[l]=e[l];if(Object.keys(i).length===0){this.generatedLink=t;return}try{const l=JSON.stringify(i),u=new TextEncoder().encode(l),c={config:btoa(Array.from(u).map(S=>String.fromCharCode(S)).join(""))},k=new URLSearchParams(window.location.search).get("date");k&&(c.date=k);const b=new URLSearchParams(c).toString();this.generatedLink=`${t}?${b}`}catch(l){console.error("生成链接失败:",l),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(t){console.error("复制链接失败:",t)}},resetSelection(){this.selectedItems=[],this.generatedLink="",this.linkCopied=!1},selectAll(){this.selectedItems=this.settingItems.map(t=>t.key),this.generateLink()},selectDataSourceSettings(){const t=this.settingItems.filter(e=>e.key.startsWith("server.")).map(e=>e.key);this.selectedItems=t,this.generateLink()},selectChangedSettings(){const t=this.settingItems.filter(e=>e.isChanged).map(e=>e.key);this.selectedItems=t,this.generateLink()},selectByPrefix(t){const e=this.settingItems.filter(i=>i.key.startsWith(`${t}.`)).map(i=>i.key);this.selectedItems=e},autoGenerateLink(){this.selectedItems.length>0?this.generateLink():this.generatedLink=""},getSettingDescription(t){const e=this.settingItems.find(i=>i.key===t);return e?e.description:t}},watch:{selectedItems:{handler(){this.autoGenerateLink()},deep:!0}}},$n={class:"d-flex mb-3 gap-2 flex-wrap"},Xn={class:"d-flex align-center mt-3 mb-3 flex-wrap gap-2"},Zn={class:"d-flex align-center"},es={key:0},ts={key:1},ns={class:"text-caption text-grey"};function ss(t,e,i,l,a,u){return f(),C(te,{border:"",class:"settings-link-generator mb-4"},{default:s(()=>[n(re,{class:"text-h6"},{default:s(()=>[n(A,{start:"",icon:"mdi-link-variant",class:"mr-2"}),e[3]||(e[3]=d(" 设置分享 "))]),_:1}),n(X,null,{default:s(()=>[O("div",$n,[n(x,{size:"small",variant:"tonal",color:"primary","prepend-icon":"mdi-select-all",onClick:u.selectAll},{default:s(()=>e[4]||(e[4]=[d(" 全选 ")])),_:1},8,["onClick"]),n(x,{size:"small",variant:"tonal",color:"primary","prepend-icon":"mdi-server-network",onClick:u.selectDataSourceSettings},{default:s(()=>e[5]||(e[5]=[d(" 数据源设置 ")])),_:1},8,["onClick"]),n(x,{size:"small",variant:"tonal",color:"primary","prepend-icon":"mdi-compare",onClick:u.selectChangedSettings},{default:s(()=>e[6]||(e[6]=[d(" 已变更设置 ")])),_:1},8,["onClick"]),n(x,{size:"small",variant:"tonal",color:"error","prepend-icon":"mdi-select-remove",onClick:u.resetSelection},{default:s(()=>e[7]||(e[7]=[d(" 取消选择 ")])),_:1},8,["onClick"])]),O("div",Xn,[n(fe,{color:"primary",class:"mr-2"},{default:s(()=>[d(" 已选 "+N(a.selectedItems.length)+" 项设置 ",1)]),_:1}),a.selectedItems.length>0?(f(!0),L(oe,{key:0},ye(a.selectedItems,r=>(f(),C(fe,{key:r,size:"small",class:"mr-1",variant:"text"},{default:s(()=>[d(N(u.getSettingDescription(r)),1)]),_:2},1024))),128)):z("",!0)]),n(ae,{modelValue:a.generatedLink,"onUpdate:modelValue":e[0]||(e[0]=r=>a.generatedLink=r),label:"生成的链接",readonly:"",variant:"outlined",class:"mb-2","append-inner-icon":a.linkCopied?"mdi-check":"mdi-content-copy","onClick:appendInner":u.copyLink},null,8,["modelValue","append-inner-icon","onClick:appendInner"]),n(sn,{variant:"accordion"},{default:s(()=>[n(an,null,{default:s(()=>[n(on,null,{default:s(()=>e[8]||(e[8]=[d(" 显示设置列表详情 ")])),_:1}),n(rn,null,{default:s(()=>[n($t,{"items-per-page":u.settingItems.length,headers:a.headers,items:u.filteredItems,"item-value":"key",modelValue:a.selectedItems,"onUpdate:modelValue":e[2]||(e[2]=r=>a.selectedItems=r),"show-select":"",density:"compact",class:"rounded setting-table","onUpdate:selected":u.handleSelectionChange,"sort-by":[{key:"isChanged",order:"desc"}]},{top:s(()=>[n(ae,{modelValue:a.search,"onUpdate:modelValue":e[1]||(e[1]=r=>a.search=r),label:"搜索设置","prepend-inner-icon":"mdi-magnify","single-line":"","hide-details":"",class:"mb-4"},null,8,["modelValue"])]),"item.description":s(({item:r})=>[O("div",Zn,[n(A,{size:"small",icon:r.icon,class:"mr-2"},null,8,["icon"]),d(" "+N(r.description),1)])]),"item.value":s(({item:r})=>[typeof r.value=="boolean"?(f(),L("span",es,N(r.value?"是":"否"),1)):(f(),L("span",ts,N(r.value),1))]),"item.key":s(({item:r})=>[O("span",ns,N(r.key),1)]),"item.isChanged":s(({item:r})=>[n(fe,{size:"x-small",color:r.isChanged?"warning":"success",text:r.isChanged?"已修改":"默认",density:"compact"},null,8,["color","text"])]),_:2},1032,["items-per-page","headers","items","modelValue","onUpdate:selected"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const pt=Q(Yn,[["render",ss]]),is={name:"ThemeSettingsCard",components:{SettingsCard:H},data(){return{localTheme:g("theme.mode")}},watch:{localTheme(t){Ne("theme.mode",t),this.updateTheme(t)}},setup(){return{theme:Ht()}},methods:{updateTheme(t){this.theme.global.name.value=t}}};function as(t,e,i,l,a,u){const r=H;return f(),C(r,{title:"主题设置",icon:"mdi-palette"},{default:s(()=>[n(J,null,{default:s(()=>[n(I,null,{prepend:s(()=>[n(A,{icon:"mdi-theme-light-dark",class:"mr-3"})]),append:s(()=>[n(Kt,{modelValue:a.localTheme,"onUpdate:modelValue":e[0]||(e[0]=c=>a.localTheme=c),density:"comfortable",color:"primary"},{default:s(()=>[n(x,{value:"light"},{default:s(()=>[n(A,{icon:"mdi-white-balance-sunny",class:"mr-2"}),e[3]||(e[3]=d(" 明亮 "))]),_:1}),n(x,{value:"dark"},{default:s(()=>[n(A,{icon:"mdi-moon-waning-crescent",class:"mr-2"}),e[4]||(e[4]=d(" 暗黑 "))]),_:1})]),_:1},8,["modelValue"])]),default:s(()=>[n(P,null,{default:s(()=>e[1]||(e[1]=[d("主题模式")])),_:1}),n(W,null,{default:s(()=>e[2]||(e[2]=[d("选择明亮或暗黑主题")])),_:1})]),_:1})]),_:1})]),_:1})}const ft=Q(is,[["render",as]]),os={name:"DisplaySettingsCard",components:{SettingsCard:H,SettingItem:ue},data(){return{}}};function rs(t,e,i,l,a,u){const r=ue,c=H;return f(),C(c,{title:"显示设置",icon:"mdi-monitor",border:""},{default:s(()=>[n(J,null,{default:s(()=>[n(r,{"setting-key":"display.emptySubjectDisplay"}),n(j,{class:"my-2"}),n(r,{"setting-key":"display.dynamicSort"}),n(j,{class:"my-2"}),n(r,{"setting-key":"display.showRandomButton"}),n(j,{class:"my-2"}),n(r,{"setting-key":"display.showFullscreenButton"}),n(j,{class:"my-2"}),n(r,{"setting-key":"display.cardHoverEffect"}),n(j,{class:"my-2"}),n(r,{"setting-key":"display.enhancedTouchMode"}),n(j,{class:"my-2"}),n(r,{"setting-key":"display.showAntiScreenBurnCard"})]),_:1})]),_:1})}const mt=Q(os,[["render",rs]]),us=nt({...Jt(),...Zt()},"VForm"),gt=tt()({name:"VForm",props:us(),emits:{"update:modelValue":t=>!0,submit:t=>!0},setup(t,e){let{slots:i,emit:l}=e;const a=Xt(t),u=Te();function r(p){p.preventDefault(),a.reset()}function c(p){const k=p,b=a.validate();k.then=b.then.bind(b),k.catch=b.catch.bind(b),k.finally=b.finally.bind(b),l("submit",k),k.defaultPrevented||b.then(S=>{var T;let{valid:M}=S;M&&((T=u.value)==null||T.submit())}),k.preventDefault()}return qt(()=>{var p;return n("form",{ref:u,class:["v-form",t.class],style:t.style,novalidate:!0,onReset:r,onSubmit:c},[(p=i.default)==null?void 0:p.call(i,a)])}),Wt(a,u)}}),ls={name:"RefreshSettingsCard",components:{SettingsCard:H},data(){return{}}};function ds(t,e,i,l,a,u){const r=ue,c=H;return f(),C(c,{title:"刷新设置",icon:"mdi-refresh-circle"},{default:s(()=>[n(gt,null,{default:s(()=>[n(J,null,{default:s(()=>[n(r,{"setting-key":"refresh.auto",title:"自动刷新"}),e[0]||(e[0]=d()),n(j,{class:"my-2"}),n(r,{"setting-key":"refresh.interval",title:"刷新间隔"})]),_:1})]),_:1})]),_:1})}const bt=Q(ls,[["render",ds]]),cs={};function hs(t,e,i,l,a,u){const r=ue,c=H;return f(),C(c,{title:"编辑设置",icon:"mdi-cog"},{default:s(()=>[n(J,null,{default:s(()=>[n(r,{"setting-key":"edit.autoSave"}),n(j,{class:"my-2"}),n(r,{"setting-key":"edit.blockNonTodayAutoSave"}),n(j,{class:"my-2"}),n(r,{"setting-key":"edit.confirmNonTodaySave"}),n(j,{class:"my-2"}),n(r,{"setting-key":"edit.refreshBeforeEdit"})]),_:1})]),_:1})}const vt=Q(cs,[["render",hs]]),ws={name:"DataProviderSettingsCard",components:{SettingsCard:H},data(){return{loading:!1,serverchecktime:{},confirmDialog:!1,confirmTitle:"",confirmMessage:"",confirmAction:null}},computed:{currentProvider(){return g("server.provider")}},methods:{async checkServerConnection(){this.loading=!0,this.serverchecktime=new Date;try{const t=g("server.domain");if((await Mt.get(`${t}/api/test`,{method:"GET",headers:{Accept:"application/json"}})).data.status==="success")this.$message.success("连接成功","服务器连接正常 延迟"+(new Date-this.serverchecktime)+"ms");else throw new Error("服务器响应异常")}catch(t){this.$message.error("连接失败",t.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(t){this.$message.error("清除失败",t.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}catch(t){this.$message.error("清除失败",t.message)}},async exportData(){try{const t="ClassworksDB",e={indexedDB:{}},i=await new Promise((p,k)=>{const b=window.indexedDB.open(t);b.onerror=()=>k(b.error),b.onsuccess=()=>p(b.result)}),l=Array.from(i.objectStoreNames);for(const p of l){const b=i.transaction(p,"readonly").objectStore(p),S=await new Promise((M,T)=>{const F=b.getAll();F.onerror=()=>T(F.error),F.onsuccess=()=>M(F.result)});e.indexedDB[p]=S}const a=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),u=URL.createObjectURL(a),r=document.createElement("a"),c=new Date().toISOString().split("T")[0];r.href=u,r.download=`homework-indexeddb-${c}.json`,r.click(),URL.revokeObjectURL(u),this.$message.success("导出成功","IndexedDB数据已导出")}catch(t){console.error("导出失败:",t),this.$message.error("导出失败",t.message||"无法导出数据库数据")}},handleConfirm(){this.confirmAction&&this.confirmAction()}}};function ps(t,e,i,l,a,u){const r=H;return f(),C(r,{title:"数据源设置",icon:"mdi-database-cog"},{default:s(()=>[n(J,null,{default:s(()=>[u.currentProvider==="server"?(f(),C(I,{key:0},{prepend:s(()=>[n(A,{icon:"mdi-lan-connect",class:"mr-3"})]),append:s(()=>[n(x,{loading:a.loading,variant:"tonal",onClick:u.checkServerConnection},{default:s(()=>e[3]||(e[3]=[d(" 测试连接 ")])),_:1},8,["loading","onClick"])]),default:s(()=>[n(P,null,{default:s(()=>e[2]||(e[2]=[d("检查服务器连接")])),_:1})]),_:1})):z("",!0),u.currentProvider==="indexedDB"?(f(),L(oe,{key:1},[n(I,null,{prepend:s(()=>[n(A,{icon:"mdi-database",class:"mr-3"})]),append:s(()=>[n(x,{color:"error",variant:"tonal",onClick:u.confirmClearIndexedDB},{default:s(()=>e[6]||(e[6]=[d(" 清除 ")])),_:1},8,["onClick"])]),default:s(()=>[n(P,null,{default:s(()=>e[4]||(e[4]=[d("清除数据库缓存")])),_:1}),n(W,null,{default:s(()=>e[5]||(e[5]=[d("这将清除所有IndexedDB中的数据")])),_:1})]),_:1}),n(I,null,{prepend:s(()=>[n(A,{icon:"mdi-database-export",class:"mr-3"})]),append:s(()=>[n(x,{variant:"tonal",onClick:u.exportData},{default:s(()=>e[8]||(e[8]=[d(" 导出 ")])),_:1},8,["onClick"])]),default:s(()=>[n(P,null,{default:s(()=>e[7]||(e[7]=[d("导出数据库")])),_:1})]),_:1})],64)):z("",!0),n(I,null,{prepend:s(()=>[n(A,{icon:"mdi-lan-connect",class:"mr-3"})]),append:s(()=>[n(x,{variant:"tonal",to:"/cachemanagement"},{default:s(()=>e[10]||(e[10]=[d(" 查看 ")])),_:1})]),default:s(()=>[n(P,null,{default:s(()=>e[9]||(e[9]=[d("查看本地缓存")])),_:1})]),_:1})]),_:1}),n(Ye,{modelValue:a.confirmDialog,"onUpdate:modelValue":e[1]||(e[1]=c=>a.confirmDialog=c),"max-width":"400"},{default:s(()=>[n(te,null,{default:s(()=>[n(re,null,{default:s(()=>[d(N(a.confirmTitle),1)]),_:1}),n(X,null,{default:s(()=>[d(N(a.confirmMessage),1)]),_:1}),n(Le,null,{default:s(()=>[n(Ie),n(x,{color:"grey",variant:"text",onClick:e[0]||(e[0]=c=>a.confirmDialog=!1)},{default:s(()=>e[11]||(e[11]=[d("取消")])),_:1}),n(x,{color:"error",variant:"tonal",onClick:u.handleConfirm},{default:s(()=>e[12]||(e[12]=[d("确认")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const yt=Q(ws,[["render",ps]]),fs={name:"ServerSettingsCard",components:{SettingsCard:H},props:{loading:Boolean},data(){return{}}};function ms(t,e,i,l,a,u){const r=ue,c=H;return f(),C(c,{title:"数据源设置",icon:"mdi-database",loading:i.loading},{default:s(()=>[n(gt,null,{default:s(()=>[n(r,{"setting-key":"server.provider",title:"数据提供者"}),n(j,{class:"my-2"}),n(r,{"setting-key":"server.domain",title:"服务器域名"}),e[0]||(e[0]=d()),n(j,{class:"my-2"}),n(r,{"setting-key":"server.classNumber",title:"班号"})]),_:1})]),_:1},8,["loading"])}const xt=Q(fs,[["render",ms]]),gs={name:"Settings",components:{ServerSettingsCard:xt,EditSettingsCard:vt,RefreshSettingsCard:bt,DisplaySettingsCard:mt,MessageLog:$e,SettingsCard:H,StudentListCard:wt,AboutCard:lt,DataProviderSettingsCard:yt,ThemeSettingsCard:ft,EchoChamberCard:ct,SettingsExplorer:ut,SettingsLinkGenerator:pt},setup(){const{mobile:t}=Gt();return{isMobile:t}},data(){return{settings:{server:{domain:g("server.domain"),classNumber:g("server.classNumber"),provider:g("server.provider")},refresh:{auto:g("refresh.auto"),interval:g("refresh.interval")},font:{size:g("font.size")},edit:{autoSave:g("edit.autoSave"),blockNonTodayAutoSave:g("edit.blockNonTodayAutoSave"),confirmNonTodaySave:g("edit.confirmNonTodaySave"),refreshBeforeEdit:g("edit.refreshBeforeEdit")},display:{emptySubjectDisplay:g("display.emptySubjectDisplay"),dynamicSort:g("display.dynamicSort"),showRandomButton:g("display.showRandomButton"),showFullscreenButton:g("display.showFullscreenButton")},developer:{enabled:g("developer.enabled"),showDebugConfig:g("developer.showDebugConfig")},message:{showSidebar:g("message.showSidebar"),maxActiveMessages:g("message.maxActiveMessages"),timeout:g("message.timeout"),saveHistory:g("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}},watch:{settings:{handler(t){this.handleSettingsChange(t)},deep:!0},studentData:{handler(t){this.lastSavedData&&(this.hasUnsavedChanges=JSON.stringify(t.list)!==JSON.stringify(this.lastSavedData)),this.studentData.text=t.list.join(`
`)},deep:!0}},mounted(){this.loadAllSettings(),this.unwatchSettings=Ze(()=>{this.loadAllSettings()}),this.loadStudentList(),this.refreshDebugConfig(),this.settings.developer.enabled||(this.settings.developer.showDebugConfig=!1,this.handleSettingsChange(this.settings))},beforeUnmount(){this.unwatchSettings&&this.unwatchSettings()},methods:{loadAllSettings(){Object.keys(this.settings).forEach(t=>{Object.keys(this.settings[t]).forEach(e=>{this.settings[t][e]=g(`${t}.${e}`)})})},handleSettingsChange(t){this.settingsChangeTimeout&&clearTimeout(this.settingsChangeTimeout),this.settingsChangeTimeout=setTimeout(()=>{Object.entries(t).forEach(([e,i])=>{Object.entries(i).forEach(([l,a])=>{const u=`${e}.${l}`,r=g(u);a!==r&&(Ne(u,a)?this.showMessage("设置已更新",`${u} 已保存`):(this.showError("保存失败",`${u} 设置失败`),this.settings[e][l]=r))})})},100)},showMessage(t,e="",i="success"){this.$message[i](t,e)},showError(t,e=""){this.$message.error(t,e)},async loadStudentList(){try{this.loading.students=!0,this.studentsError=null;const t=g("server.domain"),e=g("server.classNumber"),i=g("server.provider");if(!e)throw new Error("请先设置班号");const l=i==="server"?`${t}/${e}`:e,a=await Fe.loadConfig(i,l);if(!a.success)throw new Error(a.error.message);a.data&&Array.isArray(a.data.studentList)&&(this.studentData.list=a.data.studentList,this.studentData.text=a.data.studentList.join(`
`),this.lastSavedData=[...a.data.studentList],this.hasUnsavedChanges=!1)}catch(t){console.error("加载学生列表失败:",t),this.studentsError=t.message||"加载失败,请检查设置",this.showError("加载失败",this.studentsError)}finally{this.loading.students=!1}},async saveStudents(){try{const t=g("server.domain"),e=g("server.classNumber"),i=g("server.provider");if(!e)throw new Error("请先设置班号");const l=i==="server"?`${t}/${e}`:e,a=await Fe.saveConfig(i,l,{studentList:this.studentData.list});if(!a.success)throw new Error(a.error.message);this.lastSavedData=[...this.studentData.list],this.hasUnsavedChanges=!1,this.showMessage("保存成功","学生列表已更新")}catch(t){console.error("保存学生列表失败:",t),this.showError("保存失败",t.message||"请重试")}},handleStudentDataChange(t){JSON.stringify(t.list)!==JSON.stringify(this.studentData.list)&&(this.studentData={...t},this.hasUnsavedChanges=!0)},saveEdit(){if(this.editingIndex!==-1){const t=this.editingName.trim();t&&t!==this.studentData.list[this.editingIndex]&&(this.studentData.list[this.editingIndex]=t),this.editingIndex=-1,this.editingName=""}},startEdit(t,e){this.editingIndex=t,this.editingName=e},confirmDelete(t){this.studentToDelete={index:t,name:this.studentData.list[t]},this.deleteDialog=!0},moveStudent(t,e){const i=e==="up"?t-1:t+1;i>=0&&i<this.studentData.list.length&&([this.studentData.list[t],this.studentData.list[i]]=[this.studentData.list[i],this.studentData.list[t]])},setStudentNumber(t){this.studentToMove=t,this.newPosition=String(t+1),this.numberDialog=!0},applyNewPosition(){const t=parseInt(this.newPosition)-1;if(this.studentToMove!==null&&t>=0&&t<this.studentData.list.length&&t!==this.studentToMove){const e=this.studentData.list[this.studentToMove];this.studentData.list.splice(this.studentToMove,1),this.studentData.list.splice(t,0,e)}this.numberDialog=!1,this.studentToMove=null,this.newPosition=""},moveToTop(t){if(t>0){const e=this.studentData.list[t];this.studentData.list.splice(t,1),this.studentData.list.unshift(e)}},addStudent(){const t=this.newStudent.trim();t&&!this.studentData.list.includes(t)&&(this.studentData.list.push(t),this.newStudent="")},removeStudent(t){t!==void 0&&(this.studentData.list.splice(t,1),this.deleteDialog=!1,this.studentToDelete=null)},resetFontSize(){Xe("font.size"),this.settings.font.size=g("font.size"),this.showMessage("字体已重置","字体大小已恢复默认值")},refreshDebugConfig(){const t={};Object.keys(this.settings).forEach(e=>{t[e]={},Object.keys(this.settings[e]).forEach(i=>{t[e][i]=g(`${e}.${i}`)})}),this.debugConfig=JSON.stringify(t,null,2)},async copyDebugConfig(){try{await navigator.clipboard.writeText(this.debugConfig),this.showMessage("复制成功","配置信息已复制到剪贴板")}catch(t){console.error("复制失败:",t),this.showError("复制失败","请手动复制")}},handleDeveloperChange(t){t||(this.settings.developer.showDebugConfig=!1,this.settings.message={showSidebar:!0,maxActiveMessages:5,timeout:5e3,saveHistory:!0})},resetDeveloperSettings(){this.settings.developer={enabled:!1,showDebugConfig:!1},this.settings.message={showSidebar:!0,maxActiveMessages:5,timeout:5e3,saveHistory:!0},this.handleSettingsChange(this.settings),this.showMessage("已重置","开发者设置已重置为默认值","warning")},adjustFontSize(t){const i=this.settings.font.size;t==="up"&&i<100?this.settings.font.size=i+2:t==="down"&&i>16&&(this.settings.font.size=i-2),this.handleSettingsChange(this.settings)},onSettingsSaved(){this.showMessage("设置已更新","您的设置已成功保存")},onSettingUpdate(t,e){this.showMessage("设置已更新",`${t} 已保存为 ${e}`)}}},bs={class:"settings-page"},vs={key:0},ys={class:"d-flex gap-2"};function xs(t,e,i,l,a,u){const r=xt,c=yt,p=vt,k=bt,b=mt,S=ft,M=pt,T=H,F=wt,G=ct,ne=lt,Z=ut,K=$e;return f(),L("div",bs,[n(jt,{elevation:"1"},{prepend:s(()=>[n(x,{icon:"mdi-arrow-left",variant:"text",onClick:e[0]||(e[0]=E=>t.$router.push("/"))})]),default:s(()=>[n(Ot,{class:"text-h6"},{default:s(()=>e[5]||(e[5]=[d("设置")])),_:1})]),_:1}),n(tn,{class:"py-4"},{default:s(()=>[n(me,null,{default:s(()=>[n(R,{cols:"12",md:"6"},{default:s(()=>[n(r,{border:"",loading:a.loading.server,onSaved:u.onSettingsSaved},null,8,["loading","onSaved"])]),_:1}),n(R,{cols:"12",md:"6"},{default:s(()=>[n(c,{border:""})]),_:1}),n(R,{cols:"12",md:"6"},{default:s(()=>[n(p,{onSaved:u.onSettingsSaved,border:""},null,8,["onSaved"])]),_:1}),n(R,{cols:"12",md:"6"},{default:s(()=>[n(k,{onSaved:u.onSettingsSaved,border:""},null,8,["onSaved"])]),_:1}),n(R,{cols:"12",md:"6"},{default:s(()=>[n(b,{onSaved:u.onSettingsSaved,border:""},null,8,["onSaved"])]),_:1}),n(R,{cols:"12",md:"6"},{default:s(()=>[n(S,{border:""})]),_:1}),n(R,{cols:"12"},{default:s(()=>[n(M,{border:""})]),_:1}),n(R,{cols:12,md:a.settings.developer.enabled?12:6},{default:s(()=>[n(T,{border:"",title:"开发者选项",icon:"mdi-developer-board"},{default:s(()=>[n(J,null,{default:s(()=>[n(I,null,{prepend:s(()=>[n(A,{icon:"mdi-code-tags",class:"mr-3"})]),append:s(()=>[n(Ee,{modelValue:a.settings.developer.enabled,"onUpdate:modelValue":e[1]||(e[1]=E=>a.settings.developer.enabled=E),density:"comfortable","hide-details":"",onChange:u.handleDeveloperChange},null,8,["modelValue","onChange"])]),default:s(()=>[n(P,null,{default:s(()=>e[6]||(e[6]=[d("启用开发者选项")])),_:1}),n(W,null,{default:s(()=>e[7]||(e[7]=[d("启用后可以查看和修改开发者设置")])),_:1})]),_:1}),a.settings.developer.enabled?(f(),L(oe,{key:0},[n(j,{class:"my-2"}),n(I,null,{prepend:s(()=>[n(A,{icon:"mdi-file-code",class:"mr-3"})]),append:s(()=>[n(Ee,{modelValue:a.settings.developer.showDebugConfig,"onUpdate:modelValue":e[2]||(e[2]=E=>a.settings.developer.showDebugConfig=E),density:"comfortable","hide-details":""},null,8,["modelValue"])]),default:s(()=>[n(P,null,{default:s(()=>e[8]||(e[8]=[d("显示调试配置")])),_:1}),n(W,null,{default:s(()=>e[9]||(e[9]=[d("显示当前的调试配置信息")])),_:1})]),_:1}),n(st,null,{default:s(()=>[a.settings.developer.showDebugConfig?(f(),L("div",vs,[n(j,{class:"my-2"}),n(at,{modelValue:a.debugConfig,"onUpdate:modelValue":e[3]||(e[3]=E=>a.debugConfig=E),label:"调试配置",readonly:"",rows:"10",class:"font-monospace mt-2"},null,8,["modelValue"]),O("div",ys,[n(x,{"prepend-icon":"mdi-refresh",variant:"text",onClick:u.refreshDebugConfig},{default:s(()=>e[10]||(e[10]=[d(" 刷新 ")])),_:1},8,["onClick"]),n(x,{"prepend-icon":"mdi-content-copy",variant:"text",onClick:u.copyDebugConfig},{default:s(()=>e[11]||(e[11]=[d(" 复制 ")])),_:1},8,["onClick"])])])):z("",!0)]),_:1})],64)):z("",!0)]),_:1})]),_:1})]),_:1},8,["md"]),n(R,{cols:"12"},{default:s(()=>[n(F,{modelValue:a.studentData,"onUpdate:modelValue":[e[4]||(e[4]=E=>a.studentData=E),u.handleStudentDataChange],loading:a.loading.students,error:a.studentsError,"is-mobile":l.isMobile,"unsaved-changes":a.hasUnsavedChanges,onSave:u.saveStudents,onReload:u.loadStudentList},null,8,["modelValue","loading","error","is-mobile","unsaved-changes","onSave","onReload","onUpdate:modelValue"])]),_:1}),n(R,{cols:"12"},{default:s(()=>[n(G,{border:""})]),_:1}),n(R,{cols:"12"},{default:s(()=>[n(ne)]),_:1}),a.settings.developer.enabled?(f(),C(R,{key:0,cols:"12"},{default:s(()=>[n(te,{border:""},{default:s(()=>[n(re,{class:"d-flex align-center"},{default:s(()=>[n(A,{icon:"mdi-cog-outline",class:"mr-2"}),e[12]||(e[12]=d(" 所有设置 "))]),_:1}),n(en,null,{default:s(()=>e[13]||(e[13]=[d(" 浏览和修改所有可用设置 ")])),_:1}),n(X,null,{default:s(()=>[n(Z,{onUpdate:u.onSettingUpdate},null,8,["onUpdate"])]),_:1})]),_:1})]),_:1})):z("",!0)]),_:1})]),_:1}),n(K,{ref:"messageLog"},null,512)])}const Is=Q(gs,[["render",xs]]);export{Is as default};