新增: 自动升级体系 + WorkerW重建检测 + 知识卡片优化
自动升级: - 版本变量注入 (-ldflags -X main.version) - 远程 version.json 检查 + 弹窗提示(非强制右下角/强制居中) - updater.exe 嵌入主程序, 运行时释放到临时目录 - 下载+SHA256校验+备份+替换+回滚 全流程 - 托盘菜单"检查更新" 稳定性: - WorkerW 重建自动检测(每10s)并重新嵌入 - 左键托盘点击防抖 - 设置窗口已打开时正确前置 优化: - 知识卡片prompt改为面向开发者的硬核内容 - 配置目录统一到 ~/.u-desktop/ - 设置窗口WebView2数据目录改为configDir下
This commit is contained in:
1 parent
aee7997195
commit
f5a473c4b8
23 files changed
+859
-90
No files matched your search
@@ -2,6 +2,9 @@
|
||||
*.exe
|
||||
*.exe~
|
||||
|
||||
# Build artifacts (updater.exe at root is build output for embed)
|
||||
updater.exe
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
|
||||
|
||||
@@ -29,6 +29,15 @@ $gitHash = git rev-parse --short HEAD
|
||||
$version = "$(Get-Date -Format 'yyyyMMdd').$gitHash"
|
||||
Write-Host "=== 构建 $project v$version ===" -ForegroundColor Cyan
|
||||
|
||||
# 构建 updater.exe(先编译,主程序需要 embed)
|
||||
Write-Host "=== 构建 updater ===" -ForegroundColor Cyan
|
||||
Push-Location updater
|
||||
go build -ldflags="-s -w -H windowsgui" -o updater.exe .
|
||||
if ($LASTEXITCODE -ne 0) { Write-Host "updater 构建失败" -ForegroundColor Red; exit 1 }
|
||||
Pop-Location
|
||||
Copy-Item "updater/updater.exe" "updater.exe" -Force
|
||||
Write-Host "updater.exe 已复制到根目录" -ForegroundColor Green
|
||||
|
||||
# 构建(隐藏控制台窗口)
|
||||
$env:GOOS = "windows"
|
||||
$env:GOARCH = "amd64"
|
||||
|
||||
@@ -71,6 +71,9 @@ type Config struct {
|
||||
QWeatherKey string `json:"qweatherKey,omitempty"`
|
||||
TianapiKey string `json:"tianapiKey,omitempty"`
|
||||
CPAKey string `json:"cpaKey,omitempty"`
|
||||
UpdateURL string `json:"updateUrl,omitempty"`
|
||||
AutoCheckUpdate bool `json:"autoCheckUpdate"`
|
||||
SkipVersion string `json:"skipVersion,omitempty"`
|
||||
}
|
||||
|
||||
const defaultZodiac = "射手座"
|
||||
|
||||
+38
-16
@@ -17,7 +17,7 @@ import (
|
||||
)
|
||||
|
||||
const cpaURL = "https://cpa.1216.top/v1/chat/completions"
|
||||
const cpaModel = "glm-4.5-air"
|
||||
const cpaModel = "glm-5.1"
|
||||
const minKnowledgeRunes = 80
|
||||
|
||||
type knowledgeData struct {
|
||||
@@ -100,17 +100,28 @@ func fetchKnowledgeFromLLM(keyword string, cfg *Config) string {
|
||||
basePrompt := buildKnowledgePrompt(keyword, cfg.KnowledgePrompt)
|
||||
messages := []map[string]string{
|
||||
{
|
||||
"role": "system",
|
||||
"content": "你是严谨的中文知识卡片作者,输出必须具体、准确、有信息密度。不要写空泛鸡汤,不要只给一句定义。",
|
||||
"role": "system",
|
||||
"content": `你是一位资深技术专家,面向有多年经验的开发者撰写知识卡片。
|
||||
|
||||
内容标准:
|
||||
- 必须包含可直接用于生产的硬核知识:底层原理、性能陷阱、边界条件、源码级细节
|
||||
- 优先讲"为什么"而非"是什么"——机制、权衡、踩坑经验
|
||||
- 用具体数值、代码片段(仅关键词级别)、或真实场景佐证
|
||||
- 读者看完能立刻在项目中应用或避免踩坑
|
||||
|
||||
禁止:
|
||||
- 入门级科普、"是什么"式定义、百科搬运
|
||||
- 空泛鸡汤("很重要"、"提升效率"、"广泛应用")
|
||||
- 标题、序号、Markdown标记、emoji`,
|
||||
},
|
||||
{"role": "user", "content": basePrompt},
|
||||
}
|
||||
|
||||
body := map[string]interface{}{
|
||||
"model": cpaModel,
|
||||
"max_tokens": 512,
|
||||
"temperature": 0.55,
|
||||
"messages": messages,
|
||||
"model": cpaModel,
|
||||
"max_completion_tokens": 2048,
|
||||
"temperature": 0.55,
|
||||
"messages": messages,
|
||||
}
|
||||
content := requestKnowledgeCompletion(body)
|
||||
content = normalizeKnowledgeContent(content)
|
||||
@@ -137,13 +148,13 @@ func fetchKnowledgeFromLLM(keyword string, cfg *Config) string {
|
||||
}
|
||||
|
||||
func buildKnowledgePrompt(keyword, customPrompt string) string {
|
||||
basePrompt := fmt.Sprintf(`围绕关键词「%s」生成一条桌面知识卡片。
|
||||
硬性要求:
|
||||
1. 120-180个中文字符,分成2-3句;
|
||||
2. 必须讲清一个具体机制、原理、权衡或实践经验;
|
||||
3. 必须包含一个具体例子、场景或判断标准;
|
||||
4. 避免“很重要、非常有用、提升效率”这类空泛表述;
|
||||
5. 不要标题、序号、Markdown、表情,直接输出正文。`, keyword)
|
||||
basePrompt := fmt.Sprintf(`围绕「%s」写一条面向资深开发者的技术知识卡片。
|
||||
|
||||
要求:
|
||||
- 100-160字,2-3句连贯正文
|
||||
- 必须触及底层机制、性能细节或生产踩坑经验
|
||||
- 必须包含一个具体场景或数值佐证(如延迟数据、内存阈值、版本差异等)
|
||||
- 直接输出正文,不要标题、编号、Markdown`, keyword)
|
||||
if customPrompt != "" {
|
||||
basePrompt += "\n附加风格要求(不能覆盖上面的字数和质量要求):" + customPrompt
|
||||
}
|
||||
@@ -173,10 +184,16 @@ func requestKnowledgeCompletion(body map[string]interface{}) string {
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
if resp.StatusCode != 200 {
|
||||
log.Printf("知识API返回状态码: %d", resp.StatusCode)
|
||||
return ""
|
||||
}
|
||||
|
||||
var result struct {
|
||||
Choices []struct {
|
||||
Message struct {
|
||||
Content string `json:"content"`
|
||||
Content string `json:"content"`
|
||||
ReasoningContent string `json:"reasoning_content"`
|
||||
} `json:"message"`
|
||||
} `json:"choices"`
|
||||
}
|
||||
@@ -185,7 +202,11 @@ func requestKnowledgeCompletion(body map[string]interface{}) string {
|
||||
return ""
|
||||
}
|
||||
if len(result.Choices) > 0 {
|
||||
return result.Choices[0].Message.Content
|
||||
c := result.Choices[0].Message.Content
|
||||
if c == "" {
|
||||
c = result.Choices[0].Message.ReasoningContent
|
||||
}
|
||||
return c
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@@ -256,6 +277,7 @@ func fetchAndPushKnowledge() {
|
||||
}
|
||||
|
||||
if content == "" {
|
||||
pushKnowledgeJSON("知识卡片加载失败,稍后重试", keyword)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,8 @@ func setupLog() {
|
||||
log.SetFlags(log.Ldate | log.Ltime | log.Lmicroseconds)
|
||||
}
|
||||
|
||||
var version = "dev" // -ldflags "-X main.version=0.6.0"
|
||||
|
||||
func main() {
|
||||
setupLog()
|
||||
|
||||
@@ -57,8 +59,8 @@ func main() {
|
||||
}
|
||||
defer windows.CloseHandle(mutex)
|
||||
|
||||
exePath, _ := os.Executable()
|
||||
cfgDir := filepath.Join(filepath.Dir(exePath), "config")
|
||||
homeDir, _ := os.UserHomeDir()
|
||||
cfgDir := filepath.Join(homeDir, ".u-desktop")
|
||||
os.MkdirAll(cfgDir, 0755)
|
||||
configPath = filepath.Join(cfgDir, "settings.json")
|
||||
procSetProcessDPIAware.Call()
|
||||
|
||||
+18
-16
@@ -104,10 +104,12 @@ func refreshVisibleCards(cfg, oldCfg *Config) {
|
||||
|
||||
func openSettingsWindow() {
|
||||
settingsMu.Lock()
|
||||
if settingsOpen && settingsHwnd != 0 {
|
||||
if settingsOpen {
|
||||
settingsMu.Unlock()
|
||||
procShowWindow.Call(settingsHwnd, 9)
|
||||
procGetForegroundWindow.Call(settingsHwnd)
|
||||
if settingsHwnd != 0 {
|
||||
procShowWindow.Call(settingsHwnd, 9)
|
||||
procGetForegroundWindow.Call(settingsHwnd)
|
||||
}
|
||||
return
|
||||
}
|
||||
settingsOpen = true
|
||||
@@ -123,7 +125,7 @@ func openSettingsWindow() {
|
||||
runtime.UnlockOSThread()
|
||||
}()
|
||||
|
||||
dataDir := filepath.Join(os.TempDir(), "u-desktop-settings")
|
||||
dataDir := filepath.Join(configDir(), "settings-data")
|
||||
os.MkdirAll(dataDir, 0755)
|
||||
|
||||
w := webview2.NewWithOptions(webview2.WebViewOptions{
|
||||
@@ -194,7 +196,7 @@ func openSettingsWindow() {
|
||||
"photoDir": cfg.PhotoDir,
|
||||
"photoInterval": cfg.PhotoInterval,
|
||||
"photoCard": !cfg.HidePhoto,
|
||||
"photoFrameMode": cfg.PhotoFrameMode,
|
||||
"photoFrameMode": cfg.PhotoFrameMode,
|
||||
"autoStart": isAutoStartEnabled(),
|
||||
})
|
||||
return string(data)
|
||||
@@ -252,13 +254,13 @@ func openSettingsWindow() {
|
||||
for _, card := range []string{"time", "weather", "zodiac", "ainews", "knowledge"} {
|
||||
evalJS(fmt.Sprintf("if(window.setCardVisible) setCardVisible('%s',false)", card))
|
||||
}
|
||||
} else {
|
||||
reloadWallpaper()
|
||||
}
|
||||
}
|
||||
if v, ok := data["photoCard"]; ok {
|
||||
cfg.HidePhoto = !v
|
||||
saveConfig(cfg)
|
||||
evalJS(fmt.Sprintf("if(window.setCardVisible) setCardVisible('photo',%v)", v))
|
||||
refreshVisibleCards(cfg, &oldCfg)
|
||||
if cfg.PhotoDir != "" {
|
||||
if v {
|
||||
restartPhotoLoop()
|
||||
@@ -266,10 +268,9 @@ func openSettingsWindow() {
|
||||
stopPhotoLoop()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
saveConfig(cfg)
|
||||
refreshVisibleCards(cfg, &oldCfg)
|
||||
}
|
||||
saveConfig(cfg)
|
||||
refreshVisibleCards(cfg, &oldCfg)
|
||||
return ""
|
||||
})
|
||||
|
||||
@@ -383,15 +384,15 @@ func openSettingsWindow() {
|
||||
|
||||
w.Bind("pickGradientColor", func() string {
|
||||
hwnd := uintptr(w.Window())
|
||||
c1 := colorPickerDialog(hwnd, "")
|
||||
cfg := loadConfig()
|
||||
c1 := colorPickerDialog(hwnd, cfg.Color1)
|
||||
if c1 == "" {
|
||||
return ""
|
||||
}
|
||||
c2 := colorPickerDialog(hwnd, "")
|
||||
c2 := colorPickerDialog(hwnd, cfg.Color2)
|
||||
if c2 == "" {
|
||||
c2 = "#16213e"
|
||||
}
|
||||
cfg := loadConfig()
|
||||
cfg.WallpaperType = WPColor
|
||||
cfg.Color1 = c1
|
||||
cfg.Color2 = c2
|
||||
@@ -494,9 +495,10 @@ func openSettingsWindow() {
|
||||
w.SetHtml(settingsHTML)
|
||||
|
||||
hwnd := uintptr(w.Window())
|
||||
// disable resize
|
||||
style, _, _ := procGetWindowLongPtrW.Call(hwnd, gwlStyle)
|
||||
procSetWindowLongPtrW.Call(hwnd, gwlStyle, style & ^uintptr(wsSizebox|wsMaxbox))
|
||||
// disable resize + hide from taskbar
|
||||
style, _, _ := procGetWindowLongPtrW.Call(hwnd, gwlStyle)
|
||||
procSetWindowLongPtrW.Call(hwnd, gwlStyle, style & ^uintptr(wsSizebox|wsMaxbox))
|
||||
procSetWindowLongPtrW.Call(hwnd, gwlExStyle, wsExToolwindow)
|
||||
|
||||
// resizeToFit: JS measures content, Go adjusts window frame
|
||||
w.Bind("resizeToFit", func(contentW, contentH int) string {
|
||||
|
||||
+52
-2
@@ -18,10 +18,35 @@ func onSystrayReady() {
|
||||
systray.SetIcon(trayIcon)
|
||||
systray.SetTooltip("动态壁纸引擎")
|
||||
|
||||
// 左键点击托盘图标 → 打开设置(防抖: 连续点击只响应一次)
|
||||
go func() {
|
||||
for range systray.TrayClickCh {
|
||||
openSettingsWindow()
|
||||
// 消费后续积压的点击
|
||||
for {
|
||||
select {
|
||||
case <-systray.TrayClickCh:
|
||||
default:
|
||||
goto done
|
||||
}
|
||||
}
|
||||
done:
|
||||
}
|
||||
}()
|
||||
|
||||
mSettings := systray.AddMenuItem("桌面设置", "打开设置窗口")
|
||||
mCheckUpdate := systray.AddMenuItem("检查更新", "检查是否有新版本")
|
||||
mRestart := systray.AddMenuItem("重启", "重启程序")
|
||||
mQuit := systray.AddMenuItem("退出", "退出程序")
|
||||
|
||||
// 检查更新
|
||||
go func() {
|
||||
for {
|
||||
<-mCheckUpdate.ClickedCh
|
||||
manualCheckUpdate()
|
||||
}
|
||||
}()
|
||||
|
||||
// 设置窗口
|
||||
go func() {
|
||||
for {
|
||||
@@ -53,6 +78,7 @@ func onSystrayReady() {
|
||||
go bingWallpaperLoop()
|
||||
go knowledgeLoop()
|
||||
go startPhotoLoop()
|
||||
go runAutoUpdateCheck()
|
||||
}
|
||||
|
||||
func startWebView() {
|
||||
@@ -89,10 +115,10 @@ func startWebView() {
|
||||
wvHwnd = uintptr(wv.Window())
|
||||
procShowWindow.Call(wvHwnd, 0) // SW_HIDE
|
||||
procSetWindowLongPtrW.Call(wvHwnd, gwlStyle, wsPopup|wsVisible|wsChild)
|
||||
procSetWindowLongPtrW.Call(wvHwnd, gwlExStyle, wsExTransparent|wsExLayered)
|
||||
|
||||
// 立即嵌入 WorkerW
|
||||
procSetParent.Call(wvHwnd, workerw)
|
||||
procMoveWindow.Call(wvHwnd, uintptr(^uint(0)), uintptr(^uint(0)), uintptr(screenW+2), uintptr(screenH+2), 1)
|
||||
embedWorkerW(workerw, screenW, screenH)
|
||||
log.Printf("已嵌入 WorkerW: HWND=0x%x, %dx%d", wvHwnd, screenW, screenH)
|
||||
|
||||
wv.Bind("setZodiacFromGo", func(zodiac string) error {
|
||||
@@ -158,11 +184,35 @@ func startWebView() {
|
||||
}
|
||||
}
|
||||
|
||||
func embedWorkerW(workerw uintptr, screenW, screenH int32) {
|
||||
procSetParent.Call(wvHwnd, workerw)
|
||||
procMoveWindow.Call(wvHwnd, uintptr(^uint(0)), uintptr(^uint(0)), uintptr(screenW+2), uintptr(screenH+2), 1)
|
||||
}
|
||||
|
||||
func fullscreenMonitor() {
|
||||
type rect struct{ Left, Top, Right, Bottom int32 }
|
||||
var lastState string
|
||||
var lastParent uintptr
|
||||
var parentTick int
|
||||
for {
|
||||
if atomic.LoadInt32(&paused) == 0 && wv != nil {
|
||||
// 每 5 轮(10s)检测一次父窗口,极轻量系统调用
|
||||
parentTick++
|
||||
if parentTick >= 5 {
|
||||
parentTick = 0
|
||||
parent, _, _ := procGetParent.Call(wvHwnd)
|
||||
if parent != lastParent {
|
||||
lastParent = parent
|
||||
ww := findWorkerW()
|
||||
if ww != 0 && ww != parent {
|
||||
screenW, screenH := getScreenSize()
|
||||
embedWorkerW(ww, screenW, screenH)
|
||||
procShowWindow.Call(wvHwnd, 5)
|
||||
log.Printf("WorkerW 变更,已重新嵌入: 0x%x → 0x%x", parent, ww)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fg, _, _ := procGetForegroundWindow.Call()
|
||||
if fg != 0 {
|
||||
var r rect
|
||||
|
||||
+271
@@ -0,0 +1,271 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/jchv/go-webview2"
|
||||
)
|
||||
|
||||
//go:embed web/update.html
|
||||
var updateHTML string
|
||||
|
||||
//go:embed updater.exe
|
||||
var updaterExe []byte
|
||||
|
||||
type PackageInfo struct {
|
||||
URL string `json:"url"`
|
||||
Size int64 `json:"size"`
|
||||
SHA256 string `json:"sha256"`
|
||||
}
|
||||
|
||||
type UpdateInfo struct {
|
||||
Version string `json:"version"`
|
||||
Force bool `json:"force"`
|
||||
ReleaseNotes string `json:"release_notes"`
|
||||
Package PackageInfo `json:"package"`
|
||||
}
|
||||
|
||||
var (
|
||||
updateMu sync.Mutex
|
||||
updateOpen bool
|
||||
updateInfo *UpdateInfo
|
||||
)
|
||||
|
||||
const defaultUpdateURL = "https://c.1216.top/u-desktop/version.json"
|
||||
|
||||
func getUpdateURL() string {
|
||||
cfg := loadConfig()
|
||||
if cfg.UpdateURL != "" {
|
||||
return cfg.UpdateURL
|
||||
}
|
||||
return defaultUpdateURL
|
||||
}
|
||||
|
||||
func checkUpdate() (*UpdateInfo, error) {
|
||||
resp, err := httpClient.Get(getUpdateURL())
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("请求 version.json 失败: %w", err)
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
if resp.StatusCode != 200 {
|
||||
return nil, fmt.Errorf("version.json 返回状态 %d", resp.StatusCode)
|
||||
}
|
||||
|
||||
var info UpdateInfo
|
||||
if err := json.NewDecoder(resp.Body).Decode(&info); err != nil {
|
||||
return nil, fmt.Errorf("解析 version.json 失败: %w", err)
|
||||
}
|
||||
|
||||
if info.Version == "" || info.Version == version || info.Version == "dev" {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// 用户跳过过此版本且非强制
|
||||
cfg := loadConfig()
|
||||
if !info.Force && cfg.SkipVersion == info.Version {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
return &info, nil
|
||||
}
|
||||
|
||||
func runAutoUpdateCheck() {
|
||||
cfg := loadConfig()
|
||||
if !cfg.AutoCheckUpdate {
|
||||
return
|
||||
}
|
||||
time.Sleep(3 * time.Second)
|
||||
|
||||
info, err := checkUpdate()
|
||||
if err != nil {
|
||||
log.Println("自动更新检查失败:", err)
|
||||
return
|
||||
}
|
||||
if info != nil {
|
||||
showUpdateWindow(info)
|
||||
}
|
||||
}
|
||||
|
||||
func showUpdateWindow(info *UpdateInfo) {
|
||||
updateMu.Lock()
|
||||
if updateOpen {
|
||||
updateMu.Unlock()
|
||||
return
|
||||
}
|
||||
updateOpen = true
|
||||
updateInfo = info
|
||||
updateMu.Unlock()
|
||||
|
||||
go func() {
|
||||
runtime.LockOSThread()
|
||||
defer func() {
|
||||
updateMu.Lock()
|
||||
updateOpen = false
|
||||
updateInfo = nil
|
||||
updateMu.Unlock()
|
||||
runtime.UnlockOSThread()
|
||||
}()
|
||||
|
||||
winW := 340
|
||||
winH := 220
|
||||
if info.Force {
|
||||
winW = 420
|
||||
winH = 260
|
||||
}
|
||||
|
||||
dataDir := filepath.Join(configDir(), "update-data")
|
||||
os.MkdirAll(dataDir, 0755)
|
||||
|
||||
w := webview2.NewWithOptions(webview2.WebViewOptions{
|
||||
AutoFocus: true,
|
||||
DataPath: dataDir,
|
||||
WindowOptions: webview2.WindowOptions{
|
||||
Title: "更新提示",
|
||||
Width: uint(winW),
|
||||
Height: uint(winH),
|
||||
},
|
||||
})
|
||||
if w == nil {
|
||||
log.Println("更新窗口: 创建失败")
|
||||
return
|
||||
}
|
||||
|
||||
hwnd := uintptr(w.Window())
|
||||
|
||||
// 无边框
|
||||
style, _, _ := procGetWindowLongPtrW.Call(hwnd, gwlStyle)
|
||||
procSetWindowLongPtrW.Call(hwnd, gwlStyle, style & ^uintptr(wsSizebox|wsMaxbox|0x00C00000))
|
||||
// 置顶 + 工具窗口
|
||||
procSetWindowLongPtrW.Call(hwnd, gwlExStyle, wsExToolwindow|0x00000008)
|
||||
|
||||
// 定位窗口
|
||||
screenW, screenH := getScreenSize()
|
||||
if info.Force {
|
||||
x := (int(screenW) - winW) / 2
|
||||
y := (int(screenH) - winH) / 2
|
||||
procMoveWindow.Call(hwnd, uintptr(x), uintptr(y), uintptr(winW), uintptr(winH), 1)
|
||||
} else {
|
||||
x := int(screenW) - winW - 20
|
||||
y := int(screenH) - winH - 60
|
||||
procMoveWindow.Call(hwnd, uintptr(x), uintptr(y), uintptr(winW), uintptr(winH), 1)
|
||||
}
|
||||
|
||||
w.Bind("getUpdateInfo", func() string {
|
||||
if updateInfo == nil {
|
||||
return "{}"
|
||||
}
|
||||
data, _ := json.Marshal(map[string]interface{}{
|
||||
"version": updateInfo.Version,
|
||||
"force": updateInfo.Force,
|
||||
"releaseNotes": updateInfo.ReleaseNotes,
|
||||
"size": updateInfo.Package.Size,
|
||||
"currentVersion": version,
|
||||
})
|
||||
return string(data)
|
||||
})
|
||||
|
||||
w.Bind("skipUpdate", func() string {
|
||||
if updateInfo != nil && !updateInfo.Force {
|
||||
cfg := loadConfig()
|
||||
cfg.SkipVersion = updateInfo.Version
|
||||
saveConfig(cfg)
|
||||
}
|
||||
return ""
|
||||
})
|
||||
|
||||
w.Bind("startUpdate", func() string {
|
||||
if updateInfo == nil {
|
||||
return ""
|
||||
}
|
||||
go doStartUpdate(updateInfo)
|
||||
return ""
|
||||
})
|
||||
|
||||
w.SetHtml(updateHTML)
|
||||
log.Println("更新窗口已打开")
|
||||
w.Run()
|
||||
log.Println("更新窗口已关闭")
|
||||
}()
|
||||
}
|
||||
|
||||
func doStartUpdate(info *UpdateInfo) {
|
||||
exePath, err := os.Executable()
|
||||
if err != nil {
|
||||
log.Println("获取自身路径失败:", err)
|
||||
return
|
||||
}
|
||||
exeDir := filepath.Dir(exePath)
|
||||
|
||||
// 释放嵌入的 updater.exe 到临时目录
|
||||
updaterPath := filepath.Join(os.TempDir(), "u-desktop-updater.exe")
|
||||
if err := os.WriteFile(updaterPath, updaterExe, 0755); err != nil {
|
||||
log.Println("释放 updater.exe 失败:", err)
|
||||
showError("释放升级器失败: " + err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
backupDir := filepath.Join(exeDir, "backup")
|
||||
os.MkdirAll(backupDir, 0755)
|
||||
|
||||
args := []string{
|
||||
"--package-url", info.Package.URL,
|
||||
"--sha256", info.Package.SHA256,
|
||||
"--target", exePath,
|
||||
"--version", info.Version,
|
||||
"--backup-dir", backupDir,
|
||||
}
|
||||
if info.Force {
|
||||
args = append(args, "--force")
|
||||
}
|
||||
|
||||
cmd := exec.Command(updaterPath, args...)
|
||||
cmd.Stdout = nil
|
||||
cmd.Stderr = nil
|
||||
if err := cmd.Start(); err != nil {
|
||||
log.Println("启动 updater 失败:", err)
|
||||
return
|
||||
}
|
||||
|
||||
log.Println("updater 已启动, 主程序退出")
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
func manualCheckUpdate() {
|
||||
info, err := checkUpdate()
|
||||
if err != nil {
|
||||
log.Println("手动更新检查失败:", err)
|
||||
showError("检查更新失败: " + err.Error())
|
||||
return
|
||||
}
|
||||
if info == nil {
|
||||
showError("当前已是最新版本 (" + version + ")")
|
||||
return
|
||||
}
|
||||
showUpdateWindow(info)
|
||||
}
|
||||
|
||||
func formatSize(size int64) string {
|
||||
const (
|
||||
KB = 1024
|
||||
MB = KB * 1024
|
||||
)
|
||||
switch {
|
||||
case size >= MB:
|
||||
return strconv.FormatFloat(float64(size)/float64(MB), 'f', 1, 64) + " MB"
|
||||
case size >= KB:
|
||||
return strconv.FormatFloat(float64(size)/float64(KB), 'f', 1, 64) + " KB"
|
||||
default:
|
||||
return strconv.FormatInt(size, 10) + " B"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
module updater
|
||||
|
||||
go 1.26.3
|
||||
+218
@@ -0,0 +1,218 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"crypto/sha256"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
packageURL := flag.String("package-url", "", "下载地址")
|
||||
sha256Hash := flag.String("sha256", "", "SHA256 校验值")
|
||||
target := flag.String("target", "", "目标 exe 路径")
|
||||
ver := flag.String("version", "", "目标版本号")
|
||||
force := flag.Bool("force", false, "强制升级")
|
||||
backupDir := flag.String("backup-dir", "", "备份目录")
|
||||
flag.Parse()
|
||||
|
||||
logPath := filepath.Join(filepath.Dir(*target), "updater.log")
|
||||
logFile, err := os.Create(logPath)
|
||||
if err != nil {
|
||||
fmt.Println("无法创建日志文件:", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
defer logFile.Close()
|
||||
log.SetOutput(logFile)
|
||||
log.SetFlags(log.Ldate | log.Ltime | log.Lmicroseconds)
|
||||
|
||||
log.Printf("updater 启动: version=%s target=%s force=%v", *ver, *target, *force)
|
||||
|
||||
if *packageURL == "" || *target == "" {
|
||||
log.Fatal("缺少必要参数: --package-url, --target")
|
||||
}
|
||||
if *sha256Hash == "" {
|
||||
log.Fatal("缺少 --sha256 参数")
|
||||
}
|
||||
|
||||
// 等待主程序退出
|
||||
time.Sleep(2 * time.Second)
|
||||
|
||||
// 下载
|
||||
tmpFile, err := downloadWithRetry(*packageURL, 3)
|
||||
if err != nil {
|
||||
log.Fatal("下载失败: ", err)
|
||||
}
|
||||
defer os.Remove(tmpFile)
|
||||
log.Println("下载完成:", tmpFile)
|
||||
|
||||
// 校验
|
||||
if err := verifySHA256(tmpFile, *sha256Hash); err != nil {
|
||||
log.Fatal("校验失败: ", err)
|
||||
}
|
||||
log.Println("SHA256 校验通过")
|
||||
|
||||
// 备份
|
||||
if *backupDir == "" {
|
||||
*backupDir = filepath.Join(filepath.Dir(*target), "backup")
|
||||
}
|
||||
os.MkdirAll(*backupDir, 0755)
|
||||
backupPath := filepath.Join(*backupDir, fmt.Sprintf("old-%s.exe", time.Now().Format("20060102-150405")))
|
||||
if err := copyFile(*target, backupPath); err != nil {
|
||||
log.Println("备份失败(继续):", err)
|
||||
} else {
|
||||
log.Println("已备份:", backupPath)
|
||||
}
|
||||
|
||||
// 替换: zip 包解压,exe 直接覆盖
|
||||
if strings.HasSuffix(strings.ToLower(*packageURL), ".zip") {
|
||||
if err := extractAndReplace(tmpFile, *target); err != nil {
|
||||
rollback(backupPath, *target)
|
||||
log.Fatal("解压替换失败: ", err)
|
||||
}
|
||||
} else {
|
||||
if err := copyFile(tmpFile, *target); err != nil {
|
||||
rollback(backupPath, *target)
|
||||
log.Fatal("替换失败: ", err)
|
||||
}
|
||||
}
|
||||
log.Println("替换完成")
|
||||
|
||||
// 启动新版本
|
||||
cmd := exec.Command(*target)
|
||||
if err := cmd.Start(); err != nil {
|
||||
rollback(backupPath, *target)
|
||||
log.Fatal("启动新版本失败: ", err)
|
||||
}
|
||||
|
||||
// 监听新进程 5 秒
|
||||
time.Sleep(5 * time.Second)
|
||||
if cmd.Process == nil {
|
||||
rollback(backupPath, *target)
|
||||
log.Fatal("新进程异常")
|
||||
}
|
||||
|
||||
// 检查新进程是否仍在运行
|
||||
// NOTE: Windows 下无法直接用 cmd.Process.Signals,用简单的进程存活性判断
|
||||
if err := cmd.Process.Release(); err != nil {
|
||||
log.Println("新进程已退出,回滚")
|
||||
rollback(backupPath, *target)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
log.Println("升级成功, updater 退出")
|
||||
}
|
||||
|
||||
func downloadWithRetry(url string, maxRetries int) (string, error) {
|
||||
var lastErr error
|
||||
for i := 0; i < maxRetries; i++ {
|
||||
if i > 0 {
|
||||
log.Printf("重试下载 (%d/%d)...", i+1, maxRetries)
|
||||
time.Sleep(5 * time.Second)
|
||||
}
|
||||
tmpFile, err := os.CreateTemp("", "updater-*.download")
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("创建临时文件失败: %w", err)
|
||||
}
|
||||
tmpPath := tmpFile.Name()
|
||||
|
||||
resp, err := http.Get(url)
|
||||
if err != nil {
|
||||
tmpFile.Close()
|
||||
os.Remove(tmpPath)
|
||||
lastErr = err
|
||||
continue
|
||||
}
|
||||
|
||||
if resp.StatusCode != 200 {
|
||||
tmpFile.Close()
|
||||
os.Remove(tmpPath)
|
||||
resp.Body.Close()
|
||||
lastErr = fmt.Errorf("HTTP %d", resp.StatusCode)
|
||||
continue
|
||||
}
|
||||
|
||||
_, err = io.Copy(tmpFile, resp.Body)
|
||||
resp.Body.Close()
|
||||
tmpFile.Close()
|
||||
if err != nil {
|
||||
os.Remove(tmpPath)
|
||||
lastErr = err
|
||||
continue
|
||||
}
|
||||
return tmpPath, nil
|
||||
}
|
||||
return "", fmt.Errorf("下载失败(重试 %d 次): %w", maxRetries, lastErr)
|
||||
}
|
||||
|
||||
func verifySHA256(path, expected string) error {
|
||||
f, err := os.Open(path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
h := sha256.New()
|
||||
if _, err := io.Copy(h, f); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
actual := fmt.Sprintf("%x", h.Sum(nil))
|
||||
if actual != strings.ToLower(expected) {
|
||||
return fmt.Errorf("SHA256 不匹配: 期望 %s, 实际 %s", expected, actual)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func copyFile(src, dst string) error {
|
||||
in, err := os.Open(src)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer in.Close()
|
||||
|
||||
out, err := os.Create(dst)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer out.Close()
|
||||
|
||||
if _, err := io.Copy(out, in); err != nil {
|
||||
return err
|
||||
}
|
||||
// 复制可执行权限
|
||||
if fi, err := os.Stat(src); err == nil {
|
||||
out.Chmod(fi.Mode())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func extractAndReplace(zipPath, target string) error {
|
||||
// TODO: 如需 zip 解压支持,引入 archive/zip
|
||||
// 初期可直接分发 exe,此路径不执行
|
||||
return fmt.Errorf("zip 解压暂未实现,请使用 exe 分发")
|
||||
}
|
||||
|
||||
func rollback(backupPath, target string) {
|
||||
if backupPath == "" {
|
||||
return
|
||||
}
|
||||
if _, err := os.Stat(backupPath); err != nil {
|
||||
return
|
||||
}
|
||||
log.Println("回滚: 从备份恢复", backupPath)
|
||||
if err := copyFile(backupPath, target); err != nil {
|
||||
log.Println("回滚失败:", err)
|
||||
return
|
||||
}
|
||||
cmd := exec.Command(target)
|
||||
cmd.Start()
|
||||
log.Println("已回滚并启动旧版本")
|
||||
}
|
||||
+1
-1
@@ -44,7 +44,7 @@ var cities = []City{
|
||||
|
||||
var defaultCity = City{"101200101", "武汉", "武汉", "湖北"}
|
||||
|
||||
var httpClient = &http.Client{Timeout: 10 * time.Second}
|
||||
var httpClient = &http.Client{Timeout: 60 * time.Second}
|
||||
|
||||
var weatherIcons = map[string]string{
|
||||
"晴": "☀️", "多云": "⛅", "阴": "☁️",
|
||||
|
||||
@@ -4,28 +4,41 @@ function parseArg(data: any) {
|
||||
return typeof data === 'string' ? JSON.parse(data) : data
|
||||
}
|
||||
|
||||
// JSON 去重:相同数据不触发 Vue 重渲染
|
||||
const lastJSON = new Map<string, string>()
|
||||
function shouldUpdate(key: string, data: any): boolean {
|
||||
const json = JSON.stringify(data)
|
||||
if (lastJSON.get(key) === json) return false
|
||||
lastJSON.set(key, json)
|
||||
return true
|
||||
}
|
||||
|
||||
export function registerGoBridge() {
|
||||
const w = window as any
|
||||
|
||||
w.updateHoroscopeFromGo = (data: any) => {
|
||||
state.horoscope = parseArg(data)
|
||||
const parsed = parseArg(data)
|
||||
if (shouldUpdate('horoscope', parsed)) state.horoscope = parsed
|
||||
}
|
||||
|
||||
w.updateAINewsFromGo = (items: any) => {
|
||||
const parsed = parseArg(items)
|
||||
if (parsed?.length) state.aiNews = parsed
|
||||
if (parsed?.length && shouldUpdate('ainews', parsed)) state.aiNews = parsed
|
||||
}
|
||||
|
||||
w.updateKnowledgeFromGo = (data: any) => {
|
||||
state.knowledge = parseArg(data)
|
||||
const parsed = parseArg(data)
|
||||
if (shouldUpdate('knowledge', parsed)) state.knowledge = parsed
|
||||
}
|
||||
|
||||
w.updateWeatherFromGo = (data: any) => {
|
||||
state.weather = parseArg(data)
|
||||
const parsed = parseArg(data)
|
||||
if (shouldUpdate('weather', parsed)) state.weather = parsed
|
||||
}
|
||||
|
||||
w.updatePhotoFromGo = (data: any) => {
|
||||
state.photo = parseArg(data)
|
||||
const parsed = parseArg(data)
|
||||
if (parsed?.src && shouldUpdate('photo', parsed)) state.photo = parsed
|
||||
}
|
||||
|
||||
w.setCardVisible = (card: string, visible: boolean) => {
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="knowledge-card">
|
||||
<div class="knowledge-header">
|
||||
💡 知识卡片
|
||||
<span class="knowledge-label">知识卡片</span>
|
||||
<span class="knowledge-keyword-tag" v-if="state.knowledge.keyword">#{{ state.knowledge.keyword }}</span>
|
||||
</div>
|
||||
<div class="knowledge-content">{{ state.knowledge.content || '请设置知识关键字' }}</div>
|
||||
<div class="knowledge-divider"></div>
|
||||
<div class="knowledge-body" v-if="state.knowledge.content">
|
||||
<span class="knowledge-quote">"</span>
|
||||
<span class="knowledge-text">{{ state.knowledge.content }}</span>
|
||||
</div>
|
||||
<div class="knowledge-placeholder" v-else>请在设置中配置知识关键字</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -13,19 +18,49 @@ import { state } from '../composables/useOverlayState'
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.knowledge-card {
|
||||
display: flex; flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
.knowledge-header {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.knowledge-label {
|
||||
font-size: 11px; color: var(--text-faint);
|
||||
margin-bottom: 10px; display: flex;
|
||||
align-items: center; gap: 6px;
|
||||
letter-spacing: 0; font-weight: 700;
|
||||
font-weight: 700; letter-spacing: 1px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.knowledge-keyword-tag {
|
||||
background: rgba(255,255,255,0.09);
|
||||
padding: 3px 8px; border-radius: 6px;
|
||||
font-size: 10px; color: var(--text-soft);
|
||||
background: rgba(255,216,107,0.12);
|
||||
color: var(--accent-warm);
|
||||
padding: 2px 9px; border-radius: 4px;
|
||||
font-size: 10px; font-weight: 600;
|
||||
border: 1px solid rgba(255,216,107,0.15);
|
||||
}
|
||||
.knowledge-content {
|
||||
font-size: 16px; color: var(--text-main);
|
||||
line-height: 1.55; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
|
||||
.knowledge-divider {
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, var(--accent-warm), rgba(255,216,107,0.08), transparent);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.knowledge-body {
|
||||
position: relative;
|
||||
padding-left: 4px;
|
||||
}
|
||||
.knowledge-quote {
|
||||
position: absolute; top: -10px; left: -6px;
|
||||
font-size: 52px; line-height: 1;
|
||||
color: var(--accent-warm); opacity: 0.18;
|
||||
font-family: Georgia, serif; pointer-events: none;
|
||||
}
|
||||
.knowledge-text {
|
||||
font-size: 15px; color: var(--text-main);
|
||||
line-height: 1.7; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
|
||||
display: -webkit-box; -webkit-line-clamp: 8;
|
||||
-webkit-box-orient: vertical; overflow: hidden;
|
||||
}
|
||||
.knowledge-placeholder {
|
||||
font-size: 13px; color: var(--text-faint);
|
||||
font-style: italic; padding-top: 8px;
|
||||
}
|
||||
</style>
|
||||
@@ -68,10 +68,7 @@ import PhotoCard from './PhotoCard.vue'
|
||||
width: 100%; min-width: 0; text-align: right;
|
||||
padding: 22px 28px 24px;
|
||||
}
|
||||
#card-knowledge :deep(.knowledge-content) {
|
||||
display: -webkit-box; -webkit-line-clamp: 8;
|
||||
-webkit-box-orient: vertical; overflow: hidden;
|
||||
}
|
||||
#card-knowledge { overflow: hidden; }
|
||||
#layout-multi :deep(#card-photo) {
|
||||
grid-area: photo;
|
||||
position: relative; top: auto; left: auto;
|
||||
|
||||
@@ -35,9 +35,7 @@ html, body {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)), var(--card-bg);
|
||||
backdrop-filter: blur(28px) saturate(1.2);
|
||||
-webkit-backdrop-filter: blur(28px) saturate(1.2);
|
||||
background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)), var(--card-bg-strong);
|
||||
border: 1px solid var(--card-line);
|
||||
border-radius: 8px;
|
||||
padding: 22px 24px;
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
</div>
|
||||
<div class="flex justify-between items-center px-3.5 py-2 border-t border-[var(--card-divider)]">
|
||||
<div><div class="text-xs font-medium text-[var(--text-muted)]">知识关键字</div><div class="text-[10px] text-[var(--text-weak)] mt-px">AI 将根据关键字生成知识小卡片</div></div>
|
||||
<input type="text" v-model="s.knowledgeKeyword" @input="debounced(go.saveKnowledgeKeyword, s.knowledgeKeyword)"
|
||||
<input type="text" v-model="s.knowledgeKeyword" @input="debounced('kw', go.saveKnowledgeKeyword, s.knowledgeKeyword)"
|
||||
placeholder="如: 历史、科学、冷知识"
|
||||
class="bg-[var(--input-bg)] border border-[var(--input-border)] rounded-md text-[var(--text)] text-[11px] py-1 px-2 outline-none w-[140px] focus:border-[var(--input-border-focus)]">
|
||||
</div>
|
||||
<div class="flex justify-between items-center px-3.5 py-2 border-t border-[var(--card-divider)]">
|
||||
<div><div class="text-xs font-medium text-[var(--text-muted)]">知识提示词</div><div class="text-[10px] text-[var(--text-weak)] mt-px">补充风格或方向,系统会保证内容密度</div></div>
|
||||
<input type="text" v-model="s.knowledgePrompt" @input="debounced(go.saveKnowledgePrompt, s.knowledgePrompt)"
|
||||
<input type="text" v-model="s.knowledgePrompt" @input="debounced('kp', go.saveKnowledgePrompt, s.knowledgePrompt)"
|
||||
placeholder="如: 偏实践、给出判断标准"
|
||||
class="bg-[var(--input-bg)] border border-[var(--input-border)] rounded-md text-[var(--text)] text-[11px] py-1 px-2 outline-none w-[140px] focus:border-[var(--input-border-focus)]">
|
||||
</div>
|
||||
@@ -76,12 +76,10 @@ function onDocClick(e: MouseEvent) {
|
||||
|
||||
onMounted(() => {
|
||||
document.addEventListener('click', onDocClick)
|
||||
// Find initial city
|
||||
for (const p of Object.keys(props.s.citiesByProv)) {
|
||||
for (const c of (props.s.citiesByProv as any)[p]) {
|
||||
if (c.id === props.s.city) { activeProv.value = p; selectedCityName.value = c.name; break }
|
||||
}
|
||||
if (activeProv.value) break
|
||||
const entries = Object.entries(props.s.citiesByProv as Record<string, { id: string; name: string }[]>)
|
||||
for (const [p, cs] of entries) {
|
||||
const found = cs.find(c => c.id === props.s.city)
|
||||
if (found) { activeProv.value = p; selectedCityName.value = found.name; break }
|
||||
}
|
||||
})
|
||||
onUnmounted(() => document.removeEventListener('click', onDocClick))
|
||||
|
||||
@@ -29,12 +29,20 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { watch } from 'vue'
|
||||
import { go } from '../composables/useGoBridge'
|
||||
import ToggleSwitch from './ToggleSwitch.vue'
|
||||
import type { SettingsData } from '@shared/types'
|
||||
|
||||
const props = defineProps<{ s: SettingsData }>()
|
||||
|
||||
watch(
|
||||
() => [props.s.photoCard, props.s.photoFrameMode] as [boolean, boolean],
|
||||
([photoCard, photoFrameMode]) => {
|
||||
go.saveToggles({ photoCard, photoFrameMode })
|
||||
}
|
||||
)
|
||||
|
||||
async function onPickDir() {
|
||||
const dir = await go.pickPhotoDir()
|
||||
if (dir) props.s.photoDir = dir
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</div>
|
||||
<div v-if="s.theme === 'text'" class="flex justify-between items-center px-3.5 py-2 border-t border-[var(--card-divider)]">
|
||||
<div class="text-xs font-medium text-[var(--text-muted)]">自定义文字</div>
|
||||
<input type="text" v-model="s.wallpaperText" @input="debounced(go.saveWallpaperText, s.wallpaperText)"
|
||||
<input type="text" v-model="s.wallpaperText" @input="debounced('wt', go.saveWallpaperText, s.wallpaperText)"
|
||||
placeholder="输入显示文字"
|
||||
class="bg-[var(--input-bg)] border border-[var(--input-border)] rounded-md text-[var(--text)] text-[11px] py-1 px-2 outline-none w-[140px] focus:border-[var(--input-border-focus)]">
|
||||
</div>
|
||||
@@ -135,7 +135,10 @@ async function loadBingInfo() {
|
||||
const raw = await go.getBingInfo()
|
||||
const st = JSON.parse(raw) as BingState
|
||||
bing.value = st
|
||||
if (st.url) bingThumb.value = st.url.replace('_1920x1080', '_400x240')
|
||||
if (st.url) {
|
||||
const t = st.url.replace('_1920x1080', '_400x240')
|
||||
bingThumb.value = t !== st.url ? t : await go.bingThumbDataURI(st.url.split('/').pop() || '')
|
||||
}
|
||||
}
|
||||
|
||||
async function onBingPrev() { bing.value = JSON.parse(await go.bingPrev()) }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const timers = new Map<string, ReturnType<typeof setTimeout>>()
|
||||
export function debounced(fn: (v: string) => void, val: string, ms = 500) {
|
||||
clearTimeout(timers.get(fn.name))
|
||||
timers.set(fn.name, setTimeout(() => fn(val), ms))
|
||||
export function debounced(key: string, fn: (v: string) => void, val: string, ms = 500) {
|
||||
clearTimeout(timers.get(key))
|
||||
timers.set(key, setTimeout(() => fn(val), ms))
|
||||
}
|
||||
+5
-5
@@ -7,20 +7,20 @@
|
||||
* @vue/shared v3.5.34
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function Ks(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const J={},at=[],$e=()=>{},Wn=()=>!1,os=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ls=e=>e.startsWith("onUpdate:"),oe=Object.assign,Ws=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},sr=Object.prototype.hasOwnProperty,k=(e,t)=>sr.call(e,t),F=Array.isArray,dt=e=>jt(e)==="[object Map]",Un=e=>jt(e)==="[object Set]",hn=e=>jt(e)==="[object Date]",D=e=>typeof e=="function",ee=e=>typeof e=="string",Fe=e=>typeof e=="symbol",B=e=>e!==null&&typeof e=="object",Bn=e=>(B(e)||D(e))&&D(e.then)&&D(e.catch),zn=Object.prototype.toString,jt=e=>zn.call(e),nr=e=>jt(e).slice(8,-1),qn=e=>jt(e)==="[object Object]",Us=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ot=Ks(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ir=/-\w/g,ye=cs(e=>e.replace(ir,t=>t.slice(1).toUpperCase())),rr=/\B([A-Z])/g,ct=cs(e=>e.replace(rr,"-$1").toLowerCase()),Gn=cs(e=>e.charAt(0).toUpperCase()+e.slice(1)),vs=cs(e=>e?`on${Gn(e)}`:""),Ie=(e,t)=>!Object.is(e,t),xs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Zn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},or=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let pn;const fs=()=>pn||(pn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lt(e){if(F(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=ee(n)?ur(n):lt(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(ee(e)||B(e))return e}const lr=/;(?![^(]*\))/g,cr=/:([^]+)/,fr=/\/\*[^]*?\*\//g;function ur(e){const t={};return e.replace(fr,"").split(lr).forEach(s=>{if(s){const n=s.split(cr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function us(e){let t="";if(ee(e))t=e;else if(F(e))for(let s=0;s<e.length;s++){const n=us(e[s]);n&&(t+=n+" ")}else if(B(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const ar="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",dr=Ks(ar);function Jn(e){return!!e||e===""}function hr(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Bs(e[n],t[n]);return s}function Bs(e,t){if(e===t)return!0;let s=hn(e),n=hn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Fe(e),n=Fe(t),s||n)return e===t;if(s=F(e),n=F(t),s||n)return s&&n?hr(e,t):!1;if(s=B(e),n=B(t),s||n){if(!s||!n)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const o in e){const l=e.hasOwnProperty(o),f=t.hasOwnProperty(o);if(l&&!f||!l&&f||!Bs(e[o],t[o]))return!1}}return String(e)===String(t)}const Yn=e=>!!(e&&e.__v_isRef===!0),K=e=>ee(e)?e:e==null?"":F(e)||B(e)&&(e.toString===zn||!D(e.toString))?Yn(e)?K(e.value):JSON.stringify(e,Xn,2):String(e),Xn=(e,t)=>Yn(t)?Xn(e,t.value):dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[ws(n,r)+" =>"]=i,s),{})}:Un(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ws(s))}:Fe(t)?ws(t):B(t)&&!F(t)&&!qn(t)?String(t):t,ws=(e,t="")=>{var s;return Fe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
||||
**/function Us(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Z={},at=[],Pe=()=>{},Bn=()=>!1,ls=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cs=e=>e.startsWith("onUpdate:"),oe=Object.assign,Ws=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},nr=Object.prototype.hasOwnProperty,j=(e,t)=>nr.call(e,t),R=Array.isArray,dt=e=>jt(e)==="[object Map]",zn=e=>jt(e)==="[object Set]",pn=e=>jt(e)==="[object Date]",D=e=>typeof e=="function",ee=e=>typeof e=="string",Fe=e=>typeof e=="symbol",B=e=>e!==null&&typeof e=="object",qn=e=>(B(e)||D(e))&&D(e.then)&&D(e.catch),Gn=Object.prototype.toString,jt=e=>Gn.call(e),ir=e=>jt(e).slice(8,-1),Jn=e=>jt(e)==="[object Object]",Bs=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mt=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},rr=/-\w/g,ye=fs(e=>e.replace(rr,t=>t.slice(1).toUpperCase())),or=/\B([A-Z])/g,ct=fs(e=>e.replace(or,"-$1").toLowerCase()),Zn=fs(e=>e.charAt(0).toUpperCase()+e.slice(1)),ws=fs(e=>e?`on${Zn(e)}`:""),Ie=(e,t)=>!Object.is(e,t),xs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Yn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},lr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let gn;const us=()=>gn||(gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lt(e){if(R(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=ee(n)?ar(n):lt(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(ee(e)||B(e))return e}const cr=/;(?![^(]*\))/g,fr=/:([^]+)/,ur=/\/\*[^]*?\*\//g;function ar(e){const t={};return e.replace(ur,"").split(cr).forEach(s=>{if(s){const n=s.split(fr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function as(e){let t="";if(ee(e))t=e;else if(R(e))for(let s=0;s<e.length;s++){const n=as(e[s]);n&&(t+=n+" ")}else if(B(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const dr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hr=Us(dr);function Xn(e){return!!e||e===""}function pr(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=zs(e[n],t[n]);return s}function zs(e,t){if(e===t)return!0;let s=pn(e),n=pn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Fe(e),n=Fe(t),s||n)return e===t;if(s=R(e),n=R(t),s||n)return s&&n?pr(e,t):!1;if(s=B(e),n=B(t),s||n){if(!s||!n)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const o in e){const l=e.hasOwnProperty(o),f=t.hasOwnProperty(o);if(l&&!f||!l&&f||!zs(e[o],t[o]))return!1}}return String(e)===String(t)}const Qn=e=>!!(e&&e.__v_isRef===!0),K=e=>ee(e)?e:e==null?"":R(e)||B(e)&&(e.toString===Gn||!D(e.toString))?Qn(e)?K(e.value):JSON.stringify(e,ei,2):String(e),ei=(e,t)=>Qn(t)?ei(e,t.value):dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[Ss(n,r)+" =>"]=i,s),{})}:zn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ss(s))}:Fe(t)?Ss(t):B(t)&&!R(t)&&!Jn(t)?String(t):t,Ss=(e,t="")=>{var s;return Fe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
||||
* @vue/reactivity v3.5.34
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let re;class pr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&re&&(re.active?(this.parent=re,this.index=(re.scopes||(re.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=re;try{return re=this,t()}finally{re=s}}}on(){++this._on===1&&(this.prevScope=re,re=this)}off(){if(this._on>0&&--this._on===0){if(re===this)re=this.prevScope;else{let t=re;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function gr(){return re}let Z;const Ss=new WeakSet;class Qn{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,re&&(re.active?re.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ss.has(this)&&(Ss.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ti(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,gn(this),si(this);const t=Z,s=be;Z=this,be=!0;try{return this.fn()}finally{ni(this),Z=t,be=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Gs(t);this.deps=this.depsTail=void 0,gn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ss.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ps(this)&&this.run()}get dirty(){return Ps(this)}}let ei=0,Mt,It;function ti(e,t=!1){if(e.flags|=8,t){e.next=It,It=e;return}e.next=Mt,Mt=e}function zs(){ei++}function qs(){if(--ei>0)return;if(It){let t=It;for(It=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Mt;){let t=Mt;for(Mt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function si(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ni(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Gs(n),_r(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Ps(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ii(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ii(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ht)||(e.globalVersion=Ht,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ps(e))))return;e.flags|=2;const t=e.dep,s=Z,n=be;Z=e,be=!0;try{si(e);const i=e.fn(e._value);(t.version===0||Ie(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Z=s,be=n,ni(e),e.flags&=-3}}function Gs(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Gs(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function _r(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let be=!0;const ri=[];function je(){ri.push(be),be=!1}function ke(){const e=ri.pop();be=e===void 0?!0:e}function gn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Z;Z=void 0;try{t()}finally{Z=s}}}let Ht=0;class mr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Zs{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(!Z||!be||Z===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Z)s=this.activeLink=new mr(Z,this),Z.deps?(s.prevDep=Z.depsTail,Z.depsTail.nextDep=s,Z.depsTail=s):Z.deps=Z.depsTail=s,oi(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Z.depsTail,s.nextDep=void 0,Z.depsTail.nextDep=s,Z.depsTail=s,Z.deps===s&&(Z.deps=n)}return s}trigger(t){this.version++,Ht++,this.notify(t)}Line truncated
|
||||
**/let re;class gr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&re&&(re.active?(this.parent=re,this.index=(re.scopes||(re.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=re;try{return re=this,t()}finally{re=s}}}on(){++this._on===1&&(this.prevScope=re,re=this)}off(){if(this._on>0&&--this._on===0){if(re===this)re=this.prevScope;else{let t=re;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function _r(){return re}let J;const Ts=new WeakSet;class ti{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,re&&(re.active?re.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ts.has(this)&&(Ts.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ni(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_n(this),ii(this);const t=J,s=be;J=this,be=!0;try{return this.fn()}finally{ri(this),J=t,be=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Js(t);this.deps=this.depsTail=void 0,_n(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ts.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ps(this)&&this.run()}get dirty(){return Ps(this)}}let si=0,It,$t;function ni(e,t=!1){if(e.flags|=8,t){e.next=$t,$t=e;return}e.next=It,It=e}function qs(){si++}function Gs(){if(--si>0)return;if($t){let t=$t;for($t=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;It;){let t=It;for(It=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function ii(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ri(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Js(n),mr(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Ps(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(oi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function oi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Dt)||(e.globalVersion=Dt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ps(e))))return;e.flags|=2;const t=e.dep,s=J,n=be;J=e,be=!0;try{ii(e);const i=e.fn(e._value);(t.version===0||Ie(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{J=s,be=n,ri(e),e.flags&=-3}}function Js(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Js(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function mr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let be=!0;const li=[];function Ve(){li.push(be),be=!1}function je(){const e=li.pop();be=e===void 0?!0:e}function _n(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=J;J=void 0;try{t()}finally{J=s}}}let Dt=0;class yr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Zs{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(!J||!be||J===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==J)s=this.activeLink=new yr(J,this),J.deps?(s.prevDep=J.depsTail,J.depsTail.nextDep=s,J.depsTail=s):J.deps=J.depsTail=s,ci(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=J.depsTail,s.nextDep=void 0,J.depsTail.nextDep=s,J.depsTail=s,J.deps===s&&(J.deps=n)}return s}trigger(t){this.version++,Dt++,this.notify(t)}Line truncated
|
||||
* @vue/runtime-core v3.5.34
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function kt(e,t,s,n){try{return n?e(...n):e()}catch(i){hs(i,t,s)}}function Re(e,t,s,n){if(D(e)){const i=kt(e,t,s,n);return i&&Bn(i)&&i.catch(r=>{hs(r,t,s)}),i}if(F(e)){const i=[];for(let r=0;r<e.length;r++)i.push(Re(e[r],t,s,n));return i}}function hs(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||J;if(t){let l=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,f,d)===!1)return}l=l.parent}if(r){je(),kt(r,null,10,[e,f,d]),ke();return}}Wr(e,s,i,n,o)}function Wr(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const de=[];let Ee=-1;const ht=[];let qe=null,ut=0;const pi=Promise.resolve();let es=null;function Ur(e){const t=es||pi;return e?t.then(this?e.bind(this):e):t}function Br(e){let t=Ee+1,s=de.length;for(;t<s;){const n=t+s>>>1,i=de[n],r=Nt(i);r<e||r===e&&i.flags&2?t=n+1:s=n}return t}function Qs(e){if(!(e.flags&1)){const t=Nt(e),s=de[de.length-1];!s||!(e.flags&2)&&t>=Nt(s)?de.push(e):de.splice(Br(t),0,e),e.flags|=1,gi()}}function gi(){es||(es=pi.then(mi))}function zr(e){F(e)?ht.push(...e):qe&&e.id===-1?qe.splice(ut+1,0,e):e.flags&1||(ht.push(e),e.flags|=1),gi()}function mn(e,t,s=Ee+1){for(;s<de.length;s++){const n=de[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;de.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function _i(e){if(ht.length){const t=[...new Set(ht)].sort((s,n)=>Nt(s)-Nt(n));if(ht.length=0,qe){qe.push(...t);return}for(qe=t,ut=0;ut<qe.length;ut++){const s=qe[ut];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}qe=null,ut=0}}const Nt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function mi(e){try{for(Ee=0;Ee<de.length;Ee++){const t=de[Ee];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),kt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ee<de.length;Ee++){const t=de[Ee];t&&(t.flags&=-2)}Ee=-1,de.length=0,_i(),es=null,(de.length||ht.length)&&mi()}}let Pe=null,yi=null;function ts(e){const t=Pe;return Pe=e,yi=e&&e.type.__scopeId||null,t}function qr(e,t=Pe,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&On(-1);const r=ts(t);let o;try{o=e(...i)}finally{ts(r),n._d&&On(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function st(e,t,s,n){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const l=i[o];r&&(l.oldValue=r[o].value);let f=l.dir[n];f&&(je(),Re(f,s,8,[e.el,l,e,t]),ke())}}function Gr(e,t){if(he){let s=he.provides;const n=he.parent&&he.parent.provides;n===s&&(s=he.provides=Object.create(n)),s[e]=t}}function Yt(e,t,s=!1){const n=qo();if(n||pt){let i=pt?pt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&D(t)?t.call(n&&n.proxy):t}}const Zr=Symbol.for("v-scx"),Jr=()=>Yt(Zr);function Ye(e,t,s){return bi(e,t,s)}function bi(e,t,s=J){const{immediate:n,deep:i,flush:r,once:o}=s,l=oe({},s),f=t&&n||!t&&r!=="post";let d;if(Vt){if(r==="sync"){const C=Jr();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!f){const C=()=>{};return C.stop=$e,C.resume=$e,C.pause=$e,C}}const a=he;l.call=(C,N,I)=>Re(C,a,N,I);let p=!1;r==="post"?l.scheduler=C=>{pe(C,a&&a.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(C,N)=>{N?C():Qs(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const x=Kr(e,t,l);return Vt&&(d?d.push(x):f&&x()),x}function Yr(e,t,s){const n=this.proxy,i=ee(e)?e.includes(".")?vi(n,e):()=>n[e]:e.bind(n,n);let r;D(t)?r=t:(r=t.handler,s=t);const o=Kt(this),l=bi(i,r.bind(n),s);return o(),l}function vi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const Xr=Symbol("_vte"),Qr=e=>e.__isTeleport,eo=Symbol("_leaveCb");function en(e,t){e.shapeFlag&6&&e.component?(e.transition=t,en(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 He(e,t){return D(e)?oe({name:e.name},t,{setup:e}):e}function xi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function yn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ss=new WeakMap;function Pt(e,t,s,n,i=!1){if(F(e)){e.forEach((I,Q)=>Pt(I,t&&(F(t)?t[Q]:t),s,n,i));return}if($t(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Pt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?on(n.component):n.el,o=i?null:r,{i:l,r:f}=e,d=t&&t.r,a=l.refs===J?l.refs={}:l.refs,p=l.setupState,x=j(p),C=p===J?Wn:I=>yn(a,I)?!1:k(x,I),N=(I,Q)=>!(Q&&yn(a,Q));if(d!=null&&d!==f){if(bn(t),ee(d))a[d]=null,C(d)&&(p[d]=null);else if(fe(d)){const I=t;N(d,I.k)&&(d.value=null),I.k&&(a[I.k]=null)}}if(D(f))kt(f,l,12,[o,a]);else{const I=ee(f),Q=fe(f);if(I||Q){const W=()=>{if(e.f){const L=I?C(f)?p[f]:a[f]:N()||!e.k?f.value:a[e.k];if(i)F(L)&&Ws(L,r);else if(F(L))L.includes(r)||L.push(r);else if(I)a[f]=[r],C(f)&&(p[f]=a[f]);else{const Y=[r];N(f,e.k)&&(f.value=Y),e.k&&(a[e.k]=Y)}}else I?(a[f]=o,C(f)Line truncated
|
||||
**/function Kt(e,t,s,n){try{return n?e(...n):e()}catch(i){ps(i,t,s)}}function Re(e,t,s,n){if(D(e)){const i=Kt(e,t,s,n);return i&&qn(i)&&i.catch(r=>{ps(r,t,s)}),i}if(R(e)){const i=[];for(let r=0;r<e.length;r++)i.push(Re(e[r],t,s,n));return i}}function ps(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Z;if(t){let l=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,f,d)===!1)return}l=l.parent}if(r){Ve(),Kt(r,null,10,[e,f,d]),je();return}}Wr(e,s,i,n,o)}function Wr(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const de=[];let Oe=-1;const ht=[];let qe=null,ut=0;const _i=Promise.resolve();let ts=null;function Br(e){const t=ts||_i;return e?t.then(this?e.bind(this):e):t}function zr(e){let t=Oe+1,s=de.length;for(;t<s;){const n=t+s>>>1,i=de[n],r=kt(i);r<e||r===e&&i.flags&2?t=n+1:s=n}return t}function en(e){if(!(e.flags&1)){const t=kt(e),s=de[de.length-1];!s||!(e.flags&2)&&t>=kt(s)?de.push(e):de.splice(zr(t),0,e),e.flags|=1,mi()}}function mi(){ts||(ts=_i.then(bi))}function qr(e){R(e)?ht.push(...e):qe&&e.id===-1?qe.splice(ut+1,0,e):e.flags&1||(ht.push(e),e.flags|=1),mi()}function yn(e,t,s=Oe+1){for(;s<de.length;s++){const n=de[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;de.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function yi(e){if(ht.length){const t=[...new Set(ht)].sort((s,n)=>kt(s)-kt(n));if(ht.length=0,qe){qe.push(...t);return}for(qe=t,ut=0;ut<qe.length;ut++){const s=qe[ut];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}qe=null,ut=0}}const kt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function bi(e){try{for(Oe=0;Oe<de.length;Oe++){const t=de[Oe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Kt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Oe<de.length;Oe++){const t=de[Oe];t&&(t.flags&=-2)}Oe=-1,de.length=0,yi(),ts=null,(de.length||ht.length)&&bi()}}let $e=null,vi=null;function ss(e){const t=$e;return $e=e,vi=e&&e.type.__scopeId||null,t}function Gr(e,t=$e,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&Mn(-1);const r=ss(t);let o;try{o=e(...i)}finally{ss(r),n._d&&Mn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function st(e,t,s,n){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const l=i[o];r&&(l.oldValue=r[o].value);let f=l.dir[n];f&&(Ve(),Re(f,s,8,[e.el,l,e,t]),je())}}function Jr(e,t){if(he){let s=he.provides;const n=he.parent&&he.parent.provides;n===s&&(s=he.provides=Object.create(n)),s[e]=t}}function Xt(e,t,s=!1){const n=Jo();if(n||pt){let i=pt?pt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&D(t)?t.call(n&&n.proxy):t}}const Zr=Symbol.for("v-scx"),Yr=()=>Xt(Zr);function Ye(e,t,s){return wi(e,t,s)}function wi(e,t,s=Z){const{immediate:n,deep:i,flush:r,once:o}=s,l=oe({},s),f=t&&n||!t&&r!=="post";let d;if(Vt){if(r==="sync"){const C=Yr();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!f){const C=()=>{};return C.stop=Pe,C.resume=Pe,C.pause=Pe,C}}const a=he;l.call=(C,N,I)=>Re(C,a,N,I);let p=!1;r==="post"?l.scheduler=C=>{pe(C,a&&a.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(C,N)=>{N?C():en(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const w=Ur(e,t,l);return Vt&&(d?d.push(w):f&&w()),w}function Xr(e,t,s){const n=this.proxy,i=ee(e)?e.includes(".")?xi(n,e):()=>n[e]:e.bind(n,n);let r;D(t)?r=t:(r=t.handler,s=t);const o=Ut(this),l=wi(i,r.bind(n),s);return o(),l}function xi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const Qr=Symbol("_vte"),eo=e=>e.__isTeleport,to=Symbol("_leaveCb");function tn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,tn(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 He(e,t){return D(e)?oe({name:e.name},t,{setup:e}):e}function Si(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function bn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ns=new WeakMap;function Pt(e,t,s,n,i=!1){if(R(e)){e.forEach((I,Q)=>Pt(I,t&&(R(t)?t[Q]:t),s,n,i));return}if(Ft(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Pt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?ln(n.component):n.el,o=i?null:r,{i:l,r:f}=e,d=t&&t.r,a=l.refs===Z?l.refs={}:l.refs,p=l.setupState,w=V(p),C=p===Z?Bn:I=>bn(a,I)?!1:j(w,I),N=(I,Q)=>!(Q&&bn(a,Q));if(d!=null&&d!==f){if(vn(t),ee(d))a[d]=null,C(d)&&(p[d]=null);else if(fe(d)){const I=t;N(d,I.k)&&(d.value=null),I.k&&(a[I.k]=null)}}if(D(f))Kt(f,l,12,[o,a]);else{const I=ee(f),Q=fe(f);if(I||Q){const U=()=>{if(e.f){const k=I?C(f)?p[f]:a[f]:N()||!e.k?f.value:a[e.k];if(i)R(k)&&Ws(k,r);else if(R(k))k.includes(r)||k.push(r);else if(I)a[f]=[r],C(f)&&(p[f]=a[f]);else{const Y=[r];N(f,e.k)&&(f.value=Y),e.k&&(a[e.k]=Y)}}else I?(a[f]=o,C(f)Line truncated
|
||||
* @vue/runtime-dom v3.5.34
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let ks;const Pn=typeof window<"u"&&window.trustedTypes;if(Pn)try{ks=Pn.createPolicy("vue",{createHTML:e=>e})}catch{}const qi=ks?e=>ks.createHTML(e):e=>e,el="http://www.w3.org/2000/svg",tl="http://www.w3.org/1998/Math/MathML",Ne=typeof document<"u"?document:null,$n=Ne&&Ne.createElement("template"),sl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?Ne.createElementNS(el,e):t==="mathml"?Ne.createElementNS(tl,e):s?Ne.createElement(e,{is:s}):Ne.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ne.createTextNode(e),createComment:e=>Ne.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ne.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const o=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{$n.innerHTML=qi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=$n.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},nl=Symbol("_vtc");function il(e,t,s){const n=e[nl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Fn=Symbol("_vod"),rl=Symbol("_vsh"),ol=Symbol(""),ll=/(?:^|;)\s*display\s*:/;function cl(e,t,s){const n=e.style,i=ee(s);let r=!1;if(s&&!i){if(t)if(ee(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Et(n,l,"")}else for(const o in t)s[o]==null&&Et(n,o,"");for(const o in s){o==="display"&&(r=!0);const l=s[o];l!=null?ul(e,o,!ee(t)&&t?t[o]:void 0,l)||Et(n,o,l):Et(n,o,"")}}else if(i){if(t!==s){const o=n[ol];o&&(s+=";"+o),n.cssText=s,r=ll.test(s)}}else t&&e.removeAttribute("style");Fn in e&&(e[Fn]=r?n.display:"",e[rl]&&(n.display="none"))}const Rn=/\s*!important$/;function Et(e,t,s){if(F(s))s.forEach(n=>Et(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=fl(e,t);Rn.test(s)?e.setProperty(ct(n),s.replace(Rn,""),"important"):e[n]=s}}const Hn=["Webkit","Moz","ms"],Ms={};function fl(e,t){const s=Ms[t];if(s)return s;let n=ye(t);if(n!=="filter"&&n in e)return Ms[t]=n;n=Gn(n);for(let i=0;i<Hn.length;i++){const r=Hn[i]+n;if(r in e)return Ms[t]=r}return t}function ul(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ee(n)&&s===n}const Dn="http://www.w3.org/1999/xlink";function Nn(e,t,s,n,i,r=dr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Dn,t.slice(6,t.length)):e.setAttributeNS(Dn,t,s):s==null||r&&!Jn(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Fe(s)?String(s):s)}function Ln(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?qi(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,f=s==null?e.type==="checkbox"?"on":"":String(s);(l!==f||!("_value"in e))&&(e.value=f),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Jn(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(i||t)}function al(e,t,s,n){e.addEventListener(t,s,n)}function dl(e,t,s,n){e.removeEventListener(t,s,n)}const Vn=Symbol("_vei");function hl(e,t,s,n,i=null){const r=e[Vn]||(e[Vn]={}),o=r[t];if(n&&o)o.value=n;else{const[l,f]=pl(t);if(n){const d=r[t]=ml(n,i);al(e,l,d,f)}else o&&(dl(e,l,o,f),r[t]=void 0)}}const jn=/(?:Once|Passive|Capture)$/;function pl(e){let t;if(jn.test(e)){t={};let n;for(;n=e.match(jn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ct(e.slice(2)),t]}let Is=0;const gl=Promise.resolve(),_l=()=>Is||(gl.then(()=>Is=0),Is=Date.now());function ml(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Re(yl(n,s.value),t,5,[n])};return s.value=e,s.attached=_l(),s}function yl(e,t){if(F(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const kn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bl=(e,t,s,n,i,r)=>{const o=i==="svg";t==="class"?il(e,n,o):t==="style"?cl(e,s,n):os(t)?ls(t)||hl(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vl(e,t,n,o))?(Ln(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Nn(e,t,n,o,r,t!=="value")):e._isVueCE&&(xl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ee(n)))?Ln(e,ye(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Nn(e,t,n,o))};function vl(e,t,s,n){if(n)return!!(t==="inLine truncated
|
||||
<style rel="stylesheet" crossorigin>.time[data-v-fc6abe16]{font-size:66px;font-weight:200;text-shadow:0 3px 28px rgba(0,0,0,.42);letter-spacing:0;line-height:1;font-variant-numeric:tabular-nums;color:#fffffff5}.time.hourly-glow[data-v-fc6abe16]{animation:hourlyGlow 6s ease-out forwards}.date[data-v-fc6abe16]{font-size:13px;color:var(--text-soft);margin-bottom:8px;text-shadow:0 1px 6px rgba(0,0,0,.5);letter-spacing:0}@media(max-width:1500px){.time[data-v-fc6abe16]{font-size:64px}}.current-weather[data-v-c377fb97]{font-size:17px;font-weight:600;color:var(--text-main);text-shadow:0 1px 4px rgba(0,0,0,.5);margin-bottom:16px;text-align:right}.forecast-title[data-v-c377fb97]{font-size:11px;font-weight:600;color:var(--text-faint);letter-spacing:0;margin-bottom:9px;text-align:right}.weather-forecast[data-v-c377fb97]{display:grid;grid-template-columns:repeat(8,minmax(60px,1fr));gap:7px;overflow:hidden}.forecast-item[data-v-c377fb97]{background:#ffffff0e;border-radius:8px;padding:9px 8px;text-align:center;min-width:0;font-size:12px;color:var(--text-main);border:1px solid var(--card-line-soft)}.forecast-icon[data-v-c377fb97]{font-size:22px;margin:5px 0}.forecast-time[data-v-c377fb97]{color:var(--text-faint);font-size:10px}.forecast-temp[data-v-c377fb97]{font-weight:700;margin-top:2px;font-size:14px}.forecast-pop[data-v-c377fb97]{font-size:10px;color:var(--text-faint);margin-top:2px}.daily-forecast[data-v-c377fb97]{display:grid;grid-template-columns:repeat(7,minmax(64px,1fr));gap:7px;overflow:hidden}.daily-item[data-v-c377fb97]{background:#ffffff0a;border-radius:8px;padding:9px 8px;text-align:center;min-width:0;font-size:12px;color:var(--text-main);border:1px solid var(--card-line-soft)}.daily-icon[data-v-c377fb97]{font-size:22px;margin:5px 0}.weather-forecast[data-v-c377fb97]::-webkit-scrollbar,.daily-forecast[data-v-c377fb97]::-webkit-scrollbar{display:none}@media(max-width:1500px){.weather-forecast[data-v-c377fb97],.daily-forecast[data-v-c377fb97]{grid-template-columns:repeat(4,1fr)}}.zodiac-text[data-v-bcc0f377]{font-size:14px;color:var(--text-main);line-height:1.6;text-shadow:0 1px 4px rgba(0,0,0,.5)}.zodiac-title[data-v-bcc0f377]{font-size:16px;font-weight:650;margin-bottom:3px}.zodiac-date[data-v-bcc0f377]{font-size:11px;color:var(--text-faint);margin-bottom:12px}.zodiac-bar[data-v-bcc0f377]{display:flex;align-items:center;gap:10px;margin-bottom:7px;font-size:12px}.zodiac-bar-label[data-v-bcc0f377]{width:28px;color:var(--text-soft);flex-shrink:0}.zodiac-bar-track[data-v-bcc0f377]{flex:1;height:5px;background:#ffffff1a;border-radius:999px;overflow:hidden}.zodiac-bar-fill[data-v-bcc0f377]{height:100%;border-radius:999px;transition:width .6s ease}.zodiac-bar-val[data-v-bcc0f377]{width:30px;text-align:right;font-size:11px;color:var(--text-soft);flex-shrink:0}.zodiac-tags[data-v-bcc0f377]{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 9px}.zodiac-tag[data-v-bcc0f377]{font-size:10px;background:#ffffff14;padding:4px 8px;border-radius:6px;color:var(--text-soft);border:1px solid rgba(255,255,255,.05)}.zodiac-summary[data-v-bcc0f377]{font-size:12px;color:var(--text-soft);line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.knowledge-header[data-v-20fd209d]{font-size:11px;color:var(--text-faint);margin-bottom:10px;display:flex;align-items:center;gap:6px;letter-spacing:0;font-weight:700}.knowledge-keyword-tag[data-v-20fd209d]{background:#ffffff17;padding:3px 8px;border-radius:6px;font-size:10px;color:var(--text-soft)}.knowledge-content[data-v-20fd209d]{font-size:16px;color:var(--text-main);line-height:1.55;text-shadow:0 1px 4px rgba(0,0,0,.5)}.ainews-header[data-v-842d17af]{font-size:11px;font-weight:700;color:var(--text-faint);letter-spacing:0;margin-bottom:14px}.ainews-item[data-v-842d17af]{display:flex;gap:14px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--card-line-soft);min-height:58px}.ainews-item[data-v-842d17af]:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.ainews-img[data-v-842d17af]{width:92px;height:58px;border-radius:6px;-o-object-fit:cover;object-fit:cover;flex-shrink:0;opacity:.92;box-shadow:0 8px 22px #00000038}.ainews-body[data-v-842d17af]{flex:1;min-width:0}.ainews-title-row[data-v-842d17af]{display:flex;align-items:baseline;gap:10px}.ainews-title[data-v-842d17af]{font-size:14px;font-weight:650;color:var(--text-main);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.ainews-source[data-v-842d17af]{font-size:10px;color:var(--text-faint);flex-shrink:0}.ainews-desc[data-v-842d17af]{font-size:12px;color:var(--text-soft);line-height:1.5;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#layout-single[data-v-89757d39]{display:block}#info[data-v-89757d39]{position:fixed;top:42px;right:42px;text-align:left;width:min(760px,calc(50vw - 52px));max-height:calc(100vh - 84px);z-index:10}#card-photo[data-v-32718552]{padding:16px}.photoLine truncated
|
||||
**/let Ks;const Pn=typeof window<"u"&&window.trustedTypes;if(Pn)try{Ks=Pn.createPolicy("vue",{createHTML:e=>e})}catch{}const Gi=Ks?e=>Ks.createHTML(e):e=>e,sl="http://www.w3.org/2000/svg",nl="http://www.w3.org/1998/Math/MathML",Ne=typeof document<"u"?document:null,Fn=Ne&&Ne.createElement("template"),il={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?Ne.createElementNS(sl,e):t==="mathml"?Ne.createElementNS(nl,e):s?Ne.createElement(e,{is:s}):Ne.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ne.createTextNode(e),createComment:e=>Ne.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ne.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const o=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{Fn.innerHTML=Gi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Fn.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},rl=Symbol("_vtc");function ol(e,t,s){const n=e[rl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Rn=Symbol("_vod"),ll=Symbol("_vsh"),cl=Symbol(""),fl=/(?:^|;)\s*display\s*:/;function ul(e,t,s){const n=e.style,i=ee(s);let r=!1;if(s&&!i){if(t)if(ee(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Et(n,l,"")}else for(const o in t)s[o]==null&&Et(n,o,"");for(const o in s){o==="display"&&(r=!0);const l=s[o];l!=null?dl(e,o,!ee(t)&&t?t[o]:void 0,l)||Et(n,o,l):Et(n,o,"")}}else if(i){if(t!==s){const o=n[cl];o&&(s+=";"+o),n.cssText=s,r=fl.test(s)}}else t&&e.removeAttribute("style");Rn in e&&(e[Rn]=r?n.display:"",e[ll]&&(n.display="none"))}const Hn=/\s*!important$/;function Et(e,t,s){if(R(s))s.forEach(n=>Et(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=al(e,t);Hn.test(s)?e.setProperty(ct(n),s.replace(Hn,""),"important"):e[n]=s}}const Dn=["Webkit","Moz","ms"],Is={};function al(e,t){const s=Is[t];if(s)return s;let n=ye(t);if(n!=="filter"&&n in e)return Is[t]=n;n=Zn(n);for(let i=0;i<Dn.length;i++){const r=Dn[i]+n;if(r in e)return Is[t]=r}return t}function dl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ee(n)&&s===n}const Nn="http://www.w3.org/1999/xlink";function kn(e,t,s,n,i,r=hr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Nn,t.slice(6,t.length)):e.setAttributeNS(Nn,t,s):s==null||r&&!Xn(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Fe(s)?String(s):s)}function Ln(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Gi(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,f=s==null?e.type==="checkbox"?"on":"":String(s);(l!==f||!("_value"in e))&&(e.value=f),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Xn(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(i||t)}function hl(e,t,s,n){e.addEventListener(t,s,n)}function pl(e,t,s,n){e.removeEventListener(t,s,n)}const Vn=Symbol("_vei");function gl(e,t,s,n,i=null){const r=e[Vn]||(e[Vn]={}),o=r[t];if(n&&o)o.value=n;else{const[l,f]=_l(t);if(n){const d=r[t]=bl(n,i);hl(e,l,d,f)}else o&&(pl(e,l,o,f),r[t]=void 0)}}const jn=/(?:Once|Passive|Capture)$/;function _l(e){let t;if(jn.test(e)){t={};let n;for(;n=e.match(jn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ct(e.slice(2)),t]}let $s=0;const ml=Promise.resolve(),yl=()=>$s||(ml.then(()=>$s=0),$s=Date.now());function bl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Re(vl(n,s.value),t,5,[n])};return s.value=e,s.attached=yl(),s}function vl(e,t){if(R(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Kn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,wl=(e,t,s,n,i,r)=>{const o=i==="svg";t==="class"?ol(e,n,o):t==="style"?ul(e,s,n):ls(t)?cs(t)||gl(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xl(e,t,n,o))?(Ln(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&kn(e,t,n,o,r,t!=="value")):e._isVueCE&&(Sl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ee(n)))?Ln(e,ye(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),kn(e,t,n,o))};function xl(e,t,s,n){if(n)return!!(t==="inLine truncated
|
||||
<style rel="stylesheet" crossorigin>.time[data-v-fc6abe16]{font-size:66px;font-weight:200;text-shadow:0 3px 28px rgba(0,0,0,.42);letter-spacing:0;line-height:1;font-variant-numeric:tabular-nums;color:#fffffff5}.time.hourly-glow[data-v-fc6abe16]{animation:hourlyGlow 6s ease-out forwards}.date[data-v-fc6abe16]{font-size:13px;color:var(--text-soft);margin-bottom:8px;text-shadow:0 1px 6px rgba(0,0,0,.5);letter-spacing:0}@media(max-width:1500px){.time[data-v-fc6abe16]{font-size:64px}}.current-weather[data-v-c377fb97]{font-size:17px;font-weight:600;color:var(--text-main);text-shadow:0 1px 4px rgba(0,0,0,.5);margin-bottom:16px;text-align:right}.forecast-title[data-v-c377fb97]{font-size:11px;font-weight:600;color:var(--text-faint);letter-spacing:0;margin-bottom:9px;text-align:right}.weather-forecast[data-v-c377fb97]{display:grid;grid-template-columns:repeat(8,minmax(60px,1fr));gap:7px;overflow:hidden}.forecast-item[data-v-c377fb97]{background:#ffffff0e;border-radius:8px;padding:9px 8px;text-align:center;min-width:0;font-size:12px;color:var(--text-main);border:1px solid var(--card-line-soft)}.forecast-icon[data-v-c377fb97]{font-size:22px;margin:5px 0}.forecast-time[data-v-c377fb97]{color:var(--text-faint);font-size:10px}.forecast-temp[data-v-c377fb97]{font-weight:700;margin-top:2px;font-size:14px}.forecast-pop[data-v-c377fb97]{font-size:10px;color:var(--text-faint);margin-top:2px}.daily-forecast[data-v-c377fb97]{display:grid;grid-template-columns:repeat(7,minmax(64px,1fr));gap:7px;overflow:hidden}.daily-item[data-v-c377fb97]{background:#ffffff0a;border-radius:8px;padding:9px 8px;text-align:center;min-width:0;font-size:12px;color:var(--text-main);border:1px solid var(--card-line-soft)}.daily-icon[data-v-c377fb97]{font-size:22px;margin:5px 0}.weather-forecast[data-v-c377fb97]::-webkit-scrollbar,.daily-forecast[data-v-c377fb97]::-webkit-scrollbar{display:none}@media(max-width:1500px){.weather-forecast[data-v-c377fb97],.daily-forecast[data-v-c377fb97]{grid-template-columns:repeat(4,1fr)}}.zodiac-text[data-v-bcc0f377]{font-size:14px;color:var(--text-main);line-height:1.6;text-shadow:0 1px 4px rgba(0,0,0,.5)}.zodiac-title[data-v-bcc0f377]{font-size:16px;font-weight:650;margin-bottom:3px}.zodiac-date[data-v-bcc0f377]{font-size:11px;color:var(--text-faint);margin-bottom:12px}.zodiac-bar[data-v-bcc0f377]{display:flex;align-items:center;gap:10px;margin-bottom:7px;font-size:12px}.zodiac-bar-label[data-v-bcc0f377]{width:28px;color:var(--text-soft);flex-shrink:0}.zodiac-bar-track[data-v-bcc0f377]{flex:1;height:5px;background:#ffffff1a;border-radius:999px;overflow:hidden}.zodiac-bar-fill[data-v-bcc0f377]{height:100%;border-radius:999px;transition:width .6s ease}.zodiac-bar-val[data-v-bcc0f377]{width:30px;text-align:right;font-size:11px;color:var(--text-soft);flex-shrink:0}.zodiac-tags[data-v-bcc0f377]{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 9px}.zodiac-tag[data-v-bcc0f377]{font-size:10px;background:#ffffff14;padding:4px 8px;border-radius:6px;color:var(--text-soft);border:1px solid rgba(255,255,255,.05)}.zodiac-summary[data-v-bcc0f377]{font-size:12px;color:var(--text-soft);line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.knowledge-card[data-v-4fb593ad]{display:flex;flex-direction:column;height:100%}.knowledge-header[data-v-4fb593ad]{display:flex;align-items:center;gap:8px;margin-bottom:12px}.knowledge-label[data-v-4fb593ad]{font-size:11px;color:var(--text-faint);font-weight:700;letter-spacing:1px;text-transform:uppercase}.knowledge-keyword-tag[data-v-4fb593ad]{background:#ffd86b1f;color:var(--accent-warm);padding:2px 9px;border-radius:4px;font-size:10px;font-weight:600;border:1px solid rgba(255,216,107,.15)}.knowledge-divider[data-v-4fb593ad]{height:1px;background:linear-gradient(90deg,var(--accent-warm),rgba(255,216,107,.08),transparent);margin-bottom:16px}.knowledge-body[data-v-4fb593ad]{position:relative;padding-left:4px}.knowledge-quote[data-v-4fb593ad]{position:absolute;top:-10px;left:-6px;font-size:52px;line-height:1;color:var(--accent-warm);opacity:.18;font-family:Georgia,serif;pointer-events:none}.knowledge-text[data-v-4fb593ad]{font-size:15px;color:var(--text-main);line-height:1.7;text-shadow:0 1px 4px rgba(0,0,0,.5);display:-webkit-box;-webkit-line-clamp:8;-webkit-box-orient:vertical;overflow:hidden}.knowledge-placeholder[data-v-4fb593ad]{font-size:13px;color:var(--text-faint);font-style:italic;padding-top:8px}.ainews-header[data-v-842d17af]{font-size:11px;font-weight:700;color:var(--text-faint);letter-spacing:0;margin-bottom:14px}.ainews-item[data-v-842d17af]{display:flex;gap:14px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--card-line-soft);min-height:58px}.ainews-item[data-v-842d17af]:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.ainews-img[data-v-842d17af]{width:92px;height:58px;border-radius:6px;-o-object-fit:cover;object-fit:cover;flex-shrink:0;opacity:.92;box-shadow:0 8px 22px #00000038}.ainews-body[data-v-8Line truncated
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
+5
-5
@@ -7,20 +7,20 @@
|
||||
* @vue/shared v3.5.34
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function Qs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const G={},dt=[],Re=()=>{},nr=()=>!1,ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hs=e=>e.startsWith("onUpdate:"),ie=Object.assign,en=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},fi=Object.prototype.hasOwnProperty,H=(e,t)=>fi.call(e,t),R=Array.isArray,pt=e=>Ht(e)==="[object Map]",gs=e=>Ht(e)==="[object Set]",Sn=e=>Ht(e)==="[object Date]",F=e=>typeof e=="function",X=e=>typeof e=="string",ke=e=>typeof e=="symbol",U=e=>e!==null&&typeof e=="object",rr=e=>(U(e)||F(e))&&F(e.then)&&F(e.catch),ir=Object.prototype.toString,Ht=e=>ir.call(e),ui=e=>Ht(e).slice(8,-1),or=e=>Ht(e)==="[object Object]",tn=e=>X(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,At=Qs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ms=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ai=/-\w/g,ye=ms(e=>e.replace(ai,t=>t.slice(1).toUpperCase())),di=/\B([A-Z])/g,ct=ms(e=>e.replace(di,"-$1").toLowerCase()),lr=ms(e=>e.charAt(0).toUpperCase()+e.slice(1)),Es=ms(e=>e?`on${lr(e)}`:""),Me=(e,t)=>!Object.is(e,t),es=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},cr=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},vs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Cn;const bs=()=>Cn||(Cn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ft(e){if(R(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=X(n)?mi(n):Ft(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(X(e)||U(e))return e}const pi=/;(?![^(]*\))/g,hi=/:([^]+)/,gi=/\/\*[^]*?\*\//g;function mi(e){const t={};return e.replace(gi,"").split(pi).forEach(s=>{if(s){const n=s.split(hi);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ze(e){let t="";if(X(e))t=e;else if(R(e))for(let s=0;s<e.length;s++){const n=ze(e[s]);n&&(t+=n+" ")}else if(U(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const vi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",bi=Qs(vi);function fr(e){return!!e||e===""}function xi(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Kt(e[n],t[n]);return s}function Kt(e,t){if(e===t)return!0;let s=Sn(e),n=Sn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=ke(e),n=ke(t),s||n)return e===t;if(s=R(e),n=R(t),s||n)return s&&n?xi(e,t):!1;if(s=U(e),n=U(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),f=t.hasOwnProperty(o);if(l&&!f||!l&&f||!Kt(e[o],t[o]))return!1}}return String(e)===String(t)}function yi(e,t){return e.findIndex(s=>Kt(s,t))}const ur=e=>!!(e&&e.__v_isRef===!0),ue=e=>X(e)?e:e==null?"":R(e)||U(e)&&(e.toString===ir||!F(e.toString))?ur(e)?ue(e.value):JSON.stringify(e,ar,2):String(e),ar=(e,t)=>ur(t)?ar(e,t.value):pt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[Is(n,i)+" =>"]=r,s),{})}:gs(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Is(s))}:ke(t)?Is(t):U(t)&&!R(t)&&!or(t)?String(t):t,Is=(e,t="")=>{var s;return ke(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
||||
**/function Qs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const G={},pt=[],Re=()=>{},nr=()=>!1,ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hs=e=>e.startsWith("onUpdate:"),ie=Object.assign,en=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ui=Object.prototype.hasOwnProperty,K=(e,t)=>ui.call(e,t),R=Array.isArray,ht=e=>Ht(e)==="[object Map]",gs=e=>Ht(e)==="[object Set]",Sn=e=>Ht(e)==="[object Date]",F=e=>typeof e=="function",X=e=>typeof e=="string",ke=e=>typeof e=="symbol",U=e=>e!==null&&typeof e=="object",rr=e=>(U(e)||F(e))&&F(e.then)&&F(e.catch),ir=Object.prototype.toString,Ht=e=>ir.call(e),ai=e=>Ht(e).slice(8,-1),or=e=>Ht(e)==="[object Object]",tn=e=>X(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,At=Qs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ms=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},fi=/-\w/g,ye=ms(e=>e.replace(fi,t=>t.slice(1).toUpperCase())),di=/\B([A-Z])/g,ut=ms(e=>e.replace(di,"-$1").toLowerCase()),lr=ms(e=>e.charAt(0).toUpperCase()+e.slice(1)),Es=ms(e=>e?`on${lr(e)}`:""),Me=(e,t)=>!Object.is(e,t),es=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},cr=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},vs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Cn;const bs=()=>Cn||(Cn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ft(e){if(R(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=X(n)?mi(n):Ft(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(X(e)||U(e))return e}const pi=/;(?![^(]*\))/g,hi=/:([^]+)/,gi=/\/\*[^]*?\*\//g;function mi(e){const t={};return e.replace(gi,"").split(pi).forEach(s=>{if(s){const n=s.split(hi);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ze(e){let t="";if(X(e))t=e;else if(R(e))for(let s=0;s<e.length;s++){const n=ze(e[s]);n&&(t+=n+" ")}else if(U(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const vi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",bi=Qs(vi);function ur(e){return!!e||e===""}function xi(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Kt(e[n],t[n]);return s}function Kt(e,t){if(e===t)return!0;let s=Sn(e),n=Sn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=ke(e),n=ke(t),s||n)return e===t;if(s=R(e),n=R(t),s||n)return s&&n?xi(e,t):!1;if(s=U(e),n=U(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),u=t.hasOwnProperty(o);if(l&&!u||!l&&u||!Kt(e[o],t[o]))return!1}}return String(e)===String(t)}function yi(e,t){return e.findIndex(s=>Kt(s,t))}const ar=e=>!!(e&&e.__v_isRef===!0),ae=e=>X(e)?e:e==null?"":R(e)||U(e)&&(e.toString===ir||!F(e.toString))?ar(e)?ae(e.value):JSON.stringify(e,fr,2):String(e),fr=(e,t)=>ar(t)?fr(e,t.value):ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[Is(n,i)+" =>"]=r,s),{})}:gs(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Is(s))}:ke(t)?Is(t):U(t)&&!R(t)&&!or(t)?String(t):t,Is=(e,t="")=>{var s;return ke(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
||||
* @vue/reactivity v3.5.34
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let re;class _i{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&re&&(re.active?(this.parent=re,this.index=(re.scopes||(re.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=re;try{return re=this,t()}finally{re=s}}}on(){++this._on===1&&(this.prevScope=re,re=this)}off(){if(this._on>0&&--this._on===0){if(re===this)re=this.prevScope;else{let t=re;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function wi(){return re}let Y;const $s=new WeakSet;class dr{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,re&&(re.active?re.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,$s.has(this)&&($s.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||hr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tn(this),gr(this);const t=Y,s=_e;Y=this,_e=!0;try{return this.fn()}finally{mr(this),Y=t,_e=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)rn(t);this.deps=this.depsTail=void 0,Tn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?$s.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Vs(this)&&this.run()}get dirty(){return Vs(this)}}let pr=0,Et,It;function hr(e,t=!1){if(e.flags|=8,t){e.next=It,It=e;return}e.next=Et,Et=e}function sn(){pr++}function nn(){if(--pr>0)return;if(It){let t=It;for(It=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Et;){let t=Et;for(Et=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function gr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function mr(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),rn(n),Si(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(vr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function vr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Dt)||(e.globalVersion=Dt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Vs(e))))return;e.flags|=2;const t=e.dep,s=Y,n=_e;Y=e,_e=!0;try{gr(e);const r=e.fn(e._value);(t.version===0||Me(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Y=s,_e=n,mr(e),e.flags&=-3}}function rn(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)rn(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Si(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let _e=!0;const br=[];function He(){br.push(_e),_e=!1}function Ke(){const e=br.pop();_e=e===void 0?!0:e}function Tn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Y;Y=void 0;try{t()}finally{Y=s}}}let Dt=0;class Ci{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class on{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(!Y||!_e||Y===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Y)s=this.activeLink=new Ci(Y,this),Y.deps?(s.prevDep=Y.depsTail,Y.depsTail.nextDep=s,Y.depsTail=s):Y.deps=Y.depsTail=s,xr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Y.depsTail,s.nextDep=void 0,Y.depsTail.nextDep=s,Y.depsTail=s,Y.deps===s&&(Y.deps=n)}return s}trigger(t){this.version++,Dt++,this.notify(t)}Line truncated
|
||||
**/let re;class _i{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&re&&(re.active?(this.parent=re,this.index=(re.scopes||(re.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=re;try{return re=this,t()}finally{re=s}}}on(){++this._on===1&&(this.prevScope=re,re=this)}off(){if(this._on>0&&--this._on===0){if(re===this)re=this.prevScope;else{let t=re;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function wi(){return re}let Y;const $s=new WeakSet;class dr{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,re&&(re.active?re.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,$s.has(this)&&($s.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||hr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tn(this),gr(this);const t=Y,s=_e;Y=this,_e=!0;try{return this.fn()}finally{mr(this),Y=t,_e=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)rn(t);this.deps=this.depsTail=void 0,Tn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?$s.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Vs(this)&&this.run()}get dirty(){return Vs(this)}}let pr=0,Et,It;function hr(e,t=!1){if(e.flags|=8,t){e.next=It,It=e;return}e.next=Et,Et=e}function sn(){pr++}function nn(){if(--pr>0)return;if(It){let t=It;for(It=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Et;){let t=Et;for(Et=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function gr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function mr(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),rn(n),Si(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(vr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function vr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Dt)||(e.globalVersion=Dt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Vs(e))))return;e.flags|=2;const t=e.dep,s=Y,n=_e;Y=e,_e=!0;try{gr(e);const r=e.fn(e._value);(t.version===0||Me(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Y=s,_e=n,mr(e),e.flags&=-3}}function rn(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)rn(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Si(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let _e=!0;const br=[];function He(){br.push(_e),_e=!1}function Ke(){const e=br.pop();_e=e===void 0?!0:e}function Tn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Y;Y=void 0;try{t()}finally{Y=s}}}let Dt=0;class Ci{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class on{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(!Y||!_e||Y===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Y)s=this.activeLink=new Ci(Y,this),Y.deps?(s.prevDep=Y.depsTail,Y.depsTail.nextDep=s,Y.depsTail=s):Y.deps=Y.depsTail=s,xr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Y.depsTail,s.nextDep=void 0,Y.depsTail.nextDep=s,Y.depsTail=s,Y.deps===s&&(Y.deps=n)}return s}trigger(t){this.version++,Dt++,this.notify(t)}Line truncated
|
||||
* @vue/runtime-core v3.5.34
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function Ut(e,t,s,n){try{return n?e(...n):e()}catch(r){ys(r,t,s)}}function Fe(e,t,s,n){if(F(e)){const r=Ut(e,t,s,n);return r&&rr(r)&&r.catch(i=>{ys(i,t,s)}),r}if(R(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Fe(e[i],t,s,n));return r}}function ys(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||G;if(t){let l=t.parent;const f=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const u=l.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,f,p)===!1)return}l=l.parent}if(i){He(),Ut(i,null,10,[e,f,p]),Ke();return}}Yi(e,s,r,n,o)}function Yi(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const ae=[];let Ee=-1;const ht=[];let qe=null,at=0;const Or=Promise.resolve();let rs=null;function Ar(e){const t=rs||Or;return e?t.then(this?e.bind(this):e):t}function Zi(e){let t=Ee+1,s=ae.length;for(;t<s;){const n=t+s>>>1,r=ae[n],i=Vt(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function un(e){if(!(e.flags&1)){const t=Vt(e),s=ae[ae.length-1];!s||!(e.flags&2)&&t>=Vt(s)?ae.push(e):ae.splice(Zi(t),0,e),e.flags|=1,Er()}}function Er(){rs||(rs=Or.then($r))}function Xi(e){R(e)?ht.push(...e):qe&&e.id===-1?qe.splice(at+1,0,e):e.flags&1||(ht.push(e),e.flags|=1),Er()}function On(e,t,s=Ee+1){for(;s<ae.length;s++){const n=ae[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ae.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ir(e){if(ht.length){const t=[...new Set(ht)].sort((s,n)=>Vt(s)-Vt(n));if(ht.length=0,qe){qe.push(...t);return}for(qe=t,at=0;at<qe.length;at++){const s=qe[at];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}qe=null,at=0}}const Vt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $r(e){try{for(Ee=0;Ee<ae.length;Ee++){const t=ae[Ee];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ut(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ee<ae.length;Ee++){const t=ae[Ee];t&&(t.flags&=-2)}Ee=-1,ae.length=0,Ir(),rs=null,(ae.length||ht.length)&&$r()}}let me=null,Mr=null;function is(e){const t=me;return me=e,Mr=e&&e.type.__scopeId||null,t}function Qi(e,t=me,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&Nn(-1);const i=is(t);let o;try{o=e(...r)}finally{is(i),n._d&&Nn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function lt(e,t){if(me===null)return e;const s=Cs(me),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,f=G]=t[r];i&&(F(i)&&(i={mounted:i,updated:i}),i.deep&&Le(o),n.push({dir:i,instance:s,value:o,oldValue:void 0,arg:l,modifiers:f}))}return e}function et(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let f=l.dir[n];f&&(He(),Fe(f,s,8,[e.el,l,e,t]),Ke())}}function eo(e,t){if(de){let s=de.provides;const n=de.parent&&de.parent.provides;n===s&&(s=de.provides=Object.create(n)),s[e]=t}}function ts(e,t,s=!1){const n=tl();if(n||mt){let r=mt?mt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&F(t)?t.call(n&&n.proxy):t}}const to=Symbol.for("v-scx"),so=()=>ts(to);function gt(e,t,s){return Rr(e,t,s)}function Rr(e,t,s=G){const{immediate:n,deep:r,flush:i,once:o}=s,l=ie({},s),f=t&&n||!t&&i!=="post";let p;if(Bt){if(i==="sync"){const O=so();p=O.__watcherHandles||(O.__watcherHandles=[])}else if(!f){const O=()=>{};return O.stop=Re,O.resume=Re,O.pause=Re,O}}const u=de;l.call=(O,L,k)=>Fe(O,u,L,k);let d=!1;i==="post"?l.scheduler=O=>{pe(O,u&&u.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(O,L)=>{L?O():un(O)}),l.augmentJob=O=>{t&&(O.flags|=4),d&&(O.flags|=2,u&&(O.id=u.uid,O.i=u))};const y=zi(e,t,l);return Bt&&(p?p.push(y):f&&y()),y}function no(e,t,s){const n=this.proxy,r=X(e)?e.includes(".")?kr(n,e):()=>n[e]:e.bind(n,n);let i;F(t)?i=t:(i=t.handler,s=t);const o=Wt(this),l=Rr(r,i.bind(n),s);return o(),l}function kr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const ro=Symbol("_vte"),io=e=>e.__isTeleport,oo=Symbol("_leaveCb");function an(e,t){e.shapeFlag&6&&e.component?(e.transition=t,an(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 ft(e,t){return F(e)?ie({name:e.name},t,{setup:e}):e}function Fr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function An(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const os=new WeakMap;function $t(e,t,s,n,r=!1){if(R(e)){e.forEach((k,$)=>$t(k,t&&(R(t)?t[$]:t),s,n,r));return}if(Mt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&$t(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?Cs(n.component):n.el,o=r?null:i,{i:l,r:f}=e,p=t&&t.r,u=l.refs===G?l.refs={}:l.refs,d=l.setupState,y=B(d),O=d===G?nr:k=>An(u,k)?!1:H(y,k),L=(k,$)=>!($&&An(u,$));if(p!=null&&p!==f){if(En(t),X(p))u[p]=null,O(p)&&(d[p]=null);else if(le(p)){const k=t;L(p,k.k)&&(p.value=null),k.k&&(u[k.k]=null)}}if(F(f))Ut(f,l,12,[o,u]);else{const k=X(f),$=le(f)Line truncated
|
||||
**/function Ut(e,t,s,n){try{return n?e(...n):e()}catch(r){ys(r,t,s)}}function Fe(e,t,s,n){if(F(e)){const r=Ut(e,t,s,n);return r&&rr(r)&&r.catch(i=>{ys(i,t,s)}),r}if(R(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Fe(e[i],t,s,n));return r}}function ys(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||G;if(t){let l=t.parent;const u=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,u,p)===!1)return}l=l.parent}if(i){He(),Ut(i,null,10,[e,u,p]),Ke();return}}Yi(e,s,r,n,o)}function Yi(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const fe=[];let Ee=-1;const gt=[];let qe=null,dt=0;const Or=Promise.resolve();let rs=null;function Ar(e){const t=rs||Or;return e?t.then(this?e.bind(this):e):t}function Zi(e){let t=Ee+1,s=fe.length;for(;t<s;){const n=t+s>>>1,r=fe[n],i=Vt(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function an(e){if(!(e.flags&1)){const t=Vt(e),s=fe[fe.length-1];!s||!(e.flags&2)&&t>=Vt(s)?fe.push(e):fe.splice(Zi(t),0,e),e.flags|=1,Er()}}function Er(){rs||(rs=Or.then($r))}function Xi(e){R(e)?gt.push(...e):qe&&e.id===-1?qe.splice(dt+1,0,e):e.flags&1||(gt.push(e),e.flags|=1),Er()}function On(e,t,s=Ee+1){for(;s<fe.length;s++){const n=fe[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;fe.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ir(e){if(gt.length){const t=[...new Set(gt)].sort((s,n)=>Vt(s)-Vt(n));if(gt.length=0,qe){qe.push(...t);return}for(qe=t,dt=0;dt<qe.length;dt++){const s=qe[dt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}qe=null,dt=0}}const Vt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $r(e){try{for(Ee=0;Ee<fe.length;Ee++){const t=fe[Ee];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ut(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ee<fe.length;Ee++){const t=fe[Ee];t&&(t.flags&=-2)}Ee=-1,fe.length=0,Ir(),rs=null,(fe.length||gt.length)&&$r()}}let me=null,Mr=null;function is(e){const t=me;return me=e,Mr=e&&e.type.__scopeId||null,t}function Qi(e,t=me,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&Nn(-1);const i=is(t);let o;try{o=e(...r)}finally{is(i),n._d&&Nn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function lt(e,t){if(me===null)return e;const s=Cs(me),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,u=G]=t[r];i&&(F(i)&&(i={mounted:i,updated:i}),i.deep&&Le(o),n.push({dir:i,instance:s,value:o,oldValue:void 0,arg:l,modifiers:u}))}return e}function et(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let u=l.dir[n];u&&(He(),Fe(u,s,8,[e.el,l,e,t]),Ke())}}function eo(e,t){if(de){let s=de.provides;const n=de.parent&&de.parent.provides;n===s&&(s=de.provides=Object.create(n)),s[e]=t}}function ts(e,t,s=!1){const n=tl();if(n||mt){let r=mt?mt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&F(t)?t.call(n&&n.proxy):t}}const to=Symbol.for("v-scx"),so=()=>ts(to);function ct(e,t,s){return Rr(e,t,s)}function Rr(e,t,s=G){const{immediate:n,deep:r,flush:i,once:o}=s,l=ie({},s),u=t&&n||!t&&i!=="post";let p;if(Bt){if(i==="sync"){const O=so();p=O.__watcherHandles||(O.__watcherHandles=[])}else if(!u){const O=()=>{};return O.stop=Re,O.resume=Re,O.pause=Re,O}}const a=de;l.call=(O,j,k)=>Fe(O,a,j,k);let d=!1;i==="post"?l.scheduler=O=>{pe(O,a&&a.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(O,j)=>{j?O():an(O)}),l.augmentJob=O=>{t&&(O.flags|=4),d&&(O.flags|=2,a&&(O.id=a.uid,O.i=a))};const y=zi(e,t,l);return Bt&&(p?p.push(y):u&&y()),y}function no(e,t,s){const n=this.proxy,r=X(e)?e.includes(".")?kr(n,e):()=>n[e]:e.bind(n,n);let i;F(t)?i=t:(i=t.handler,s=t);const o=Wt(this),l=Rr(r,i.bind(n),s);return o(),l}function kr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const ro=Symbol("_vte"),io=e=>e.__isTeleport,oo=Symbol("_leaveCb");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 at(e,t){return F(e)?ie({name:e.name},t,{setup:e}):e}function Fr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function An(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const os=new WeakMap;function $t(e,t,s,n,r=!1){if(R(e)){e.forEach((k,$)=>$t(k,t&&(R(t)?t[$]:t),s,n,r));return}if(Mt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&$t(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?Cs(n.component):n.el,o=r?null:i,{i:l,r:u}=e,p=t&&t.r,a=l.refs===G?l.refs={}:l.refs,d=l.setupState,y=H(d),O=d===G?nr:k=>An(a,k)?!1:K(y,k),j=(k,$)=>!($&&An(a,$));if(p!=null&&p!==u){if(En(t),X(p))a[p]=null,O(p)&&(d[p]=null);else if(le(p)){const k=t;j(p,k.k)&&(p.value=null),k.k&&(a[k.k]=null)}}if(F(u))Ut(u,l,12,[o,a]);else{const k=X(u),$=le(u)Line truncated
|
||||
* @vue/runtime-dom v3.5.34
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let zs;const Bn=typeof window<"u"&&window.trustedTypes;if(Bn)try{zs=Bn.createPolicy("vue",{createHTML:e=>e})}catch{}const oi=zs?e=>zs.createHTML(e):e=>e,cl="http://www.w3.org/2000/svg",fl="http://www.w3.org/1998/Math/MathML",je=typeof document<"u"?document:null,Hn=je&&je.createElement("template"),ul={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?je.createElementNS(cl,e):t==="mathml"?je.createElementNS(fl,e):s?je.createElement(e,{is:s}):je.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>je.createTextNode(e),createComment:e=>je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>je.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Hn.innerHTML=oi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Hn.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},al=Symbol("_vtc");function dl(e,t,s){const n=e[al];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Kn=Symbol("_vod"),pl=Symbol("_vsh"),hl=Symbol(""),gl=/(?:^|;)\s*display\s*:/;function ml(e,t,s){const n=e.style,r=X(s);let i=!1;if(s&&!r){if(t)if(X(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Ot(n,l,"")}else for(const o in t)s[o]==null&&Ot(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?bl(e,o,!X(t)&&t?t[o]:void 0,l)||Ot(n,o,l):Ot(n,o,"")}}else if(r){if(t!==s){const o=n[hl];o&&(s+=";"+o),n.cssText=s,i=gl.test(s)}}else t&&e.removeAttribute("style");Kn in e&&(e[Kn]=i?n.display:"",e[pl]&&(n.display="none"))}const Un=/\s*!important$/;function Ot(e,t,s){if(R(s))s.forEach(n=>Ot(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=vl(e,t);Un.test(s)?e.setProperty(ct(n),s.replace(Un,""),"important"):e[n]=s}}const Wn=["Webkit","Moz","ms"],js={};function vl(e,t){const s=js[t];if(s)return s;let n=ye(t);if(n!=="filter"&&n in e)return js[t]=n;n=lr(n);for(let r=0;r<Wn.length;r++){const i=Wn[r]+n;if(i in e)return js[t]=i}return t}function bl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&X(n)&&s===n}const Jn="http://www.w3.org/1999/xlink";function Gn(e,t,s,n,r,i=bi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Jn,t.slice(6,t.length)):e.setAttributeNS(Jn,t,s):s==null||i&&!fr(s)?e.removeAttribute(t):e.setAttribute(t,i?"":ke(s)?String(s):s)}function qn(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?oi(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,f=s==null?e.type==="checkbox"?"on":"":String(s);(l!==f||!("_value"in e))&&(e.value=f),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=fr(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function nt(e,t,s,n){e.addEventListener(t,s,n)}function xl(e,t,s,n){e.removeEventListener(t,s,n)}const zn=Symbol("_vei");function yl(e,t,s,n,r=null){const i=e[zn]||(e[zn]={}),o=i[t];if(n&&o)o.value=n;else{const[l,f]=_l(t);if(n){const p=i[t]=Cl(n,r);nt(e,l,p,f)}else o&&(xl(e,l,o,f),i[t]=void 0)}}const Yn=/(?:Once|Passive|Capture)$/;function _l(e){let t;if(Yn.test(e)){t={};let n;for(;n=e.match(Yn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ct(e.slice(2)),t]}let Ns=0;const wl=Promise.resolve(),Sl=()=>Ns||(wl.then(()=>Ns=0),Ns=Date.now());function Cl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Fe(Tl(n,s.value),t,5,[n])};return s.value=e,s.attached=Sl(),s}function Tl(e,t){if(R(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Pl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?dl(e,n,o):t==="style"?ml(e,s,n):ps(t)?hs(t)||yl(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ol(e,t,n,o))?(qn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Gn(e,t,n,o,i,t!=="value")):e._isVueCE&&(Al(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!X(n)))?qn(e,ye(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Gn(e,t,n,o))};function Ol(e,t,s,n){if(n)return!!(t==="innerHTLine truncated
|
||||
<style rel="stylesheet" crossorigin>.switch[data-v-d838d577]{position:relative;width:36px;height:20px;flex-shrink:0}.switch input[data-v-d838d577]{display:none}.switch .track[data-v-d838d577]{position:absolute;inset:0;background:var(--toggle-track);border-radius:10px;cursor:pointer;transition:background .2s}.switch .thumb[data-v-d838d577]{position:absolute;width:14px;height:14px;top:3px;left:3px;background:var(--toggle-thumb);border-radius:50%;transition:all .2s;pointer-events:none}.switch input:checked+.track[data-v-d838d577]{background:var(--accent)}.switch input:checked+.track .thumb[data-v-d838d577]{transform:translate(16px);background:var(--text-strong)}.btn[data-v-c301f1ac]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:11px;padding:4px 10px;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.btn[data-v-c301f1ac]:hover{background:var(--card-border)}.btn-sm[data-v-c301f1ac]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:10px;padding:3px 8px;font-family:inherit;cursor:pointer;white-space:nowrap}.btn-sm[data-v-c301f1ac]:hover{background:var(--card-border)}.color-swatch[data-v-c301f1ac]{width:28px;height:28px;border-radius:6px;cursor:pointer;border:2px solid transparent;transition:border-color .15s;position:relative}.color-swatch[data-v-c301f1ac]:hover{border-color:var(--accent)}.color-swatch .del[data-v-c301f1ac]{display:none;position:absolute;top:-6px;right:-6px;width:14px;height:14px;border-radius:50%;background:#e53e3e;color:#fff;font-size:9px;line-height:14px;text-align:center;cursor:pointer}.color-swatch:hover .del[data-v-c301f1ac]{display:block}.btn[data-v-b7fb61bb]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:11px;padding:4px 10px;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.btn[data-v-b7fb61bb]:hover{background:var(--card-border)}.btn-sm[data-v-b7fb61bb]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:10px;padding:3px 8px;font-family:inherit;cursor:pointer;white-space:nowrap}.btn-sm[data-v-b7fb61bb]:hover{background:var(--card-border)}.city-picker[data-v-f6ff8e37]{position:relative;background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;padding:4px 24px 4px 8px;cursor:pointer;font-size:11px;min-width:140px;max-width:180px}.city-picker[data-v-f6ff8e37]:focus,.city-picker.open[data-v-f6ff8e37]{border-color:var(--input-border-focus)}.city-panel[data-v-f6ff8e37]{display:none;position:absolute;right:-1px;bottom:calc(100% + 4px);background:var(--option-bg);border:1px solid var(--input-border);border-radius:8px;box-shadow:0 8px 24px #00000040;z-index:1000;width:260px;height:200px;overflow:hidden}.city-picker.open .city-panel[data-v-f6ff8e37]{display:flex}.city-col[data-v-f6ff8e37]{flex:1;overflow-y:auto;border-right:1px solid var(--card-divider)}.city-col[data-v-f6ff8e37]:last-child{border-right:none}.city-col div[data-v-f6ff8e37]{padding:5px 10px;font-size:11px;color:var(--text);cursor:pointer;white-space:nowrap}.city-col div[data-v-f6ff8e37]:hover{background:var(--input-bg)}.city-col div.active[data-v-f6ff8e37]{color:var(--accent);font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-oLine truncated
|
||||
**/let zs;const Bn=typeof window<"u"&&window.trustedTypes;if(Bn)try{zs=Bn.createPolicy("vue",{createHTML:e=>e})}catch{}const oi=zs?e=>zs.createHTML(e):e=>e,cl="http://www.w3.org/2000/svg",ul="http://www.w3.org/1998/Math/MathML",je=typeof document<"u"?document:null,Hn=je&&je.createElement("template"),al={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?je.createElementNS(cl,e):t==="mathml"?je.createElementNS(ul,e):s?je.createElement(e,{is:s}):je.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>je.createTextNode(e),createComment:e=>je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>je.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Hn.innerHTML=oi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Hn.content;if(n==="svg"||n==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},fl=Symbol("_vtc");function dl(e,t,s){const n=e[fl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Kn=Symbol("_vod"),pl=Symbol("_vsh"),hl=Symbol(""),gl=/(?:^|;)\s*display\s*:/;function ml(e,t,s){const n=e.style,r=X(s);let i=!1;if(s&&!r){if(t)if(X(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Ot(n,l,"")}else for(const o in t)s[o]==null&&Ot(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?bl(e,o,!X(t)&&t?t[o]:void 0,l)||Ot(n,o,l):Ot(n,o,"")}}else if(r){if(t!==s){const o=n[hl];o&&(s+=";"+o),n.cssText=s,i=gl.test(s)}}else t&&e.removeAttribute("style");Kn in e&&(e[Kn]=i?n.display:"",e[pl]&&(n.display="none"))}const Un=/\s*!important$/;function Ot(e,t,s){if(R(s))s.forEach(n=>Ot(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=vl(e,t);Un.test(s)?e.setProperty(ut(n),s.replace(Un,""),"important"):e[n]=s}}const Wn=["Webkit","Moz","ms"],js={};function vl(e,t){const s=js[t];if(s)return s;let n=ye(t);if(n!=="filter"&&n in e)return js[t]=n;n=lr(n);for(let r=0;r<Wn.length;r++){const i=Wn[r]+n;if(i in e)return js[t]=i}return t}function bl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&X(n)&&s===n}const Jn="http://www.w3.org/1999/xlink";function Gn(e,t,s,n,r,i=bi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Jn,t.slice(6,t.length)):e.setAttributeNS(Jn,t,s):s==null||i&&!ur(s)?e.removeAttribute(t):e.setAttribute(t,i?"":ke(s)?String(s):s)}function qn(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?oi(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(l!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=ur(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function nt(e,t,s,n){e.addEventListener(t,s,n)}function xl(e,t,s,n){e.removeEventListener(t,s,n)}const zn=Symbol("_vei");function yl(e,t,s,n,r=null){const i=e[zn]||(e[zn]={}),o=i[t];if(n&&o)o.value=n;else{const[l,u]=_l(t);if(n){const p=i[t]=Cl(n,r);nt(e,l,p,u)}else o&&(xl(e,l,o,u),i[t]=void 0)}}const Yn=/(?:Once|Passive|Capture)$/;function _l(e){let t;if(Yn.test(e)){t={};let n;for(;n=e.match(Yn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ut(e.slice(2)),t]}let Ns=0;const wl=Promise.resolve(),Sl=()=>Ns||(wl.then(()=>Ns=0),Ns=Date.now());function Cl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Fe(Tl(n,s.value),t,5,[n])};return s.value=e,s.attached=Sl(),s}function Tl(e,t){if(R(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Pl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?dl(e,n,o):t==="style"?ml(e,s,n):ps(t)?hs(t)||yl(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ol(e,t,n,o))?(qn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Gn(e,t,n,o,i,t!=="value")):e._isVueCE&&(Al(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!X(n)))?qn(e,ye(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Gn(e,t,n,o))};function Ol(e,t,s,n){if(n)return!!(t==="innerHTLine truncated
|
||||
<style rel="stylesheet" crossorigin>.switch[data-v-d838d577]{position:relative;width:36px;height:20px;flex-shrink:0}.switch input[data-v-d838d577]{display:none}.switch .track[data-v-d838d577]{position:absolute;inset:0;background:var(--toggle-track);border-radius:10px;cursor:pointer;transition:background .2s}.switch .thumb[data-v-d838d577]{position:absolute;width:14px;height:14px;top:3px;left:3px;background:var(--toggle-thumb);border-radius:50%;transition:all .2s;pointer-events:none}.switch input:checked+.track[data-v-d838d577]{background:var(--accent)}.switch input:checked+.track .thumb[data-v-d838d577]{transform:translate(16px);background:var(--text-strong)}.btn[data-v-7f42d27c]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:11px;padding:4px 10px;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.btn[data-v-7f42d27c]:hover{background:var(--card-border)}.btn-sm[data-v-7f42d27c]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:10px;padding:3px 8px;font-family:inherit;cursor:pointer;white-space:nowrap}.btn-sm[data-v-7f42d27c]:hover{background:var(--card-border)}.color-swatch[data-v-7f42d27c]{width:28px;height:28px;border-radius:6px;cursor:pointer;border:2px solid transparent;transition:border-color .15s;position:relative}.color-swatch[data-v-7f42d27c]:hover{border-color:var(--accent)}.color-swatch .del[data-v-7f42d27c]{display:none;position:absolute;top:-6px;right:-6px;width:14px;height:14px;border-radius:50%;background:#e53e3e;color:#fff;font-size:9px;line-height:14px;text-align:center;cursor:pointer}.color-swatch:hover .del[data-v-7f42d27c]{display:block}.btn[data-v-bb86a692]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:11px;padding:4px 10px;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.btn[data-v-bb86a692]:hover{background:var(--card-border)}.btn-sm[data-v-bb86a692]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:10px;padding:3px 8px;font-family:inherit;cursor:pointer;white-space:nowrap}.btn-sm[data-v-bb86a692]:hover{background:var(--card-border)}.city-picker[data-v-1a50093a]{position:relative;background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;padding:4px 24px 4px 8px;cursor:pointer;font-size:11px;min-width:140px;max-width:180px}.city-picker[data-v-1a50093a]:focus,.city-picker.open[data-v-1a50093a]{border-color:var(--input-border-focus)}.city-panel[data-v-1a50093a]{display:none;position:absolute;right:-1px;bottom:calc(100% + 4px);background:var(--option-bg);border:1px solid var(--input-border);border-radius:8px;box-shadow:0 8px 24px #00000040;z-index:1000;width:260px;height:200px;overflow:hidden}.city-picker.open .city-panel[data-v-1a50093a]{display:flex}.city-col[data-v-1a50093a]{flex:1;overflow-y:auto;border-right:1px solid var(--card-divider)}.city-col[data-v-1a50093a]:last-child{border-right:none}.city-col div[data-v-1a50093a]{padding:5px 10px;font-size:11px;color:var(--text);cursor:pointer;white-space:nowrap}.city-col div[data-v-1a50093a]:hover{background:var(--input-bg)}.city-col div.active[data-v-1a50093a]{color:var(--accent);font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-oLine truncated
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
font-family: "Microsoft YaHei", sans-serif;
|
||||
background: transparent;
|
||||
color: #e0e0e0;
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
}
|
||||
.container {
|
||||
background: rgba(30, 30, 46, 0.95);
|
||||
backdrop-filter: blur(20px);
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(255,255,255,0.08);
|
||||
padding: 20px 24px;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.version-tag {
|
||||
color: #89b4fa;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.notes {
|
||||
font-size: 13px;
|
||||
color: #a0a0b8;
|
||||
line-height: 1.8;
|
||||
white-space: pre-line;
|
||||
flex: 1;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.meta {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.btn-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.btn {
|
||||
padding: 7px 20px;
|
||||
border-radius: 8px;
|
||||
border: none;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
font-family: inherit;
|
||||
}
|
||||
.btn-primary {
|
||||
background: #89b4fa;
|
||||
color: #1e1e2e;
|
||||
font-weight: 600;
|
||||
}
|
||||
.btn-primary:hover { background: #74c7ec; }
|
||||
.btn-secondary {
|
||||
background: rgba(255,255,255,0.06);
|
||||
color: #a0a0b8;
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
}
|
||||
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
|
||||
.force-layout {
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
.force-layout .version-tag { font-size: 18px; }
|
||||
.force-layout .btn-row { justify-content: center; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" id="app">
|
||||
<div class="version-tag" id="versionTag"></div>
|
||||
<div class="notes" id="notes"></div>
|
||||
<div class="meta" id="meta"></div>
|
||||
<div class="btn-row" id="btnRow"></div>
|
||||
</div>
|
||||
<script>
|
||||
const info = JSON.parse(window.getUpdateInfo());
|
||||
const container = document.getElementById('app');
|
||||
const versionTag = document.getElementById('versionTag');
|
||||
const notes = document.getElementById('notes');
|
||||
const meta = document.getElementById('meta');
|
||||
const btnRow = document.getElementById('btnRow');
|
||||
|
||||
versionTag.textContent = '发现新版本 v' + info.version;
|
||||
notes.textContent = info.releaseNotes || '';
|
||||
|
||||
function formatSize(bytes) {
|
||||
if (!bytes) return '';
|
||||
if (bytes >= 1048576) return (bytes / 1048576).toFixed(1) + 'MB';
|
||||
if (bytes >= 1024) return (bytes / 1024).toFixed(1) + 'KB';
|
||||
return bytes + 'B';
|
||||
}
|
||||
|
||||
if (info.force) {
|
||||
container.classList.add('force-layout');
|
||||
if (info.size) {
|
||||
const sec = info.size > 5242880 ? '~30秒' : '~10秒';
|
||||
meta.textContent = '大小: ' + formatSize(info.size) + ' | 预计用时: ' + sec;
|
||||
}
|
||||
btnRow.innerHTML = '<button class="btn btn-primary" onclick="doUpdate()">立即升级</button>';
|
||||
} else {
|
||||
btnRow.innerHTML =
|
||||
'<button class="btn btn-secondary" onclick="skip()">稍后</button>' +
|
||||
'<button class="btn btn-primary" onclick="doUpdate()">立即升级</button>';
|
||||
}
|
||||
|
||||
function doUpdate() {
|
||||
window.startUpdate();
|
||||
window.close();
|
||||
}
|
||||
|
||||
function skip() {
|
||||
window.skipUpdate();
|
||||
window.close();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -29,6 +29,7 @@ var (
|
||||
procPostMessageW = user32.NewProc("PostMessageW")
|
||||
procTranslateMessage = user32.NewProc("TranslateMessage")
|
||||
procDispatchMessageW = user32.NewProc("DispatchMessageW")
|
||||
procGetParent = user32.NewProc("GetParent")
|
||||
)
|
||||
|
||||
var wv webview2.WebView
|
||||
@@ -42,12 +43,19 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
gwlStyle = uintptr(0xFFFFFFF0) // GWL_STYLE = -16
|
||||
wsPopup = uintptr(0x80000000)
|
||||
wsVisible = uintptr(0x10000000)
|
||||
wsChild = uintptr(0x02000000)
|
||||
wsSizebox = uintptr(0x00040000)
|
||||
wsMaxbox = uintptr(0x00010000)
|
||||
gwlStyle = uintptr(0xFFFFFFF0) // GWL_STYLE = -16
|
||||
gwlExStyle = uintptr(0xFFFFFFFEC) // GWL_EXSTYLE = -20
|
||||
wsPopup = uintptr(0x80000000)
|
||||
wsVisible = uintptr(0x10000000)
|
||||
wsChild = uintptr(0x02000000)
|
||||
wsSizebox = uintptr(0x00040000)
|
||||
wsMaxbox = uintptr(0x00010000)
|
||||
)
|
||||
|
||||
const (
|
||||
wsExTransparent = uintptr(0x00000020)
|
||||
wsExLayered = uintptr(0x00080000)
|
||||
wsExToolwindow = uintptr(0x00000080)
|
||||
)
|
||||
|
||||
var htmlQueue = make(chan string, 1)
|
||||
|
||||
Reference in new issue
Block a user